From 76b6f63fc69863571d4d64453ea9f589dd93d877 Mon Sep 17 00:00:00 2001 From: rUv Date: Mon, 4 Aug 2025 22:11:36 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Task=20checkpoint:=20{{user=5Fpr?= =?UTF-8?q?ompt}}=20...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 50 +++---------------- .claude-flow/metrics/task-metrics.json | 6 +-- .claude/checkpoints/1754345452.json | 1 + .claude/checkpoints/task-1754345452.json | 1 + .../.claude-flow/metrics/performance.json | 4 ++ .../.claude-flow/metrics/task-metrics.json | 8 +++ test-prompt-generation.js | 34 +++++++++++++ 8 files changed, 59 insertions(+), 47 deletions(-) create mode 100644 .claude/checkpoints/1754345452.json create mode 100644 .claude/checkpoints/task-1754345452.json create mode 100644 test-prompt-generation.js diff --git a/.claude-flow/metrics/performance.json b/.claude-flow/metrics/performance.json index 6e92ccffa4..95d0745f80 100644 --- a/.claude-flow/metrics/performance.json +++ b/.claude-flow/metrics/performance.json @@ -1,5 +1,5 @@ { - "startTime": 1754345448067, + "startTime": 1754345464423, "totalTasks": 1, "successfulTasks": 1, "failedTasks": 0, diff --git a/.claude-flow/metrics/system-metrics.json b/.claude-flow/metrics/system-metrics.json index d77a4caef6..8551f1da43 100644 --- a/.claude-flow/metrics/system-metrics.json +++ b/.claude-flow/metrics/system-metrics.json @@ -1,50 +1,14 @@ [ { - "timestamp": 1754345340841, + "timestamp": 1754345478241, "memoryTotal": 67427545088, - "memoryUsed": 9604722688, - "memoryFree": 57822822400, - "memoryUsagePercent": 14.244508939877361, - "memoryEfficiency": 85.75549106012264, + "memoryUsed": 9939374080, + "memoryFree": 57488171008, + "memoryUsagePercent": 14.7408215248354, + "memoryEfficiency": 85.2591784751646, "cpuCount": 16, - "cpuLoad": 0.0575, + "cpuLoad": 0.054375, "platform": "linux", - "uptime": 63656.63 - }, - { - "timestamp": 1754345370870, - "memoryTotal": 67427545088, - "memoryUsed": 9656786944, - "memoryFree": 57770758144, - "memoryUsagePercent": 14.321724054163449, - "memoryEfficiency": 85.67827594583655, - "cpuCount": 16, - "cpuLoad": 0.04, - "platform": "linux", - "uptime": 63686.66 - }, - { - "timestamp": 1754345400901, - "memoryTotal": 67427545088, - "memoryUsed": 9855897600, - "memoryFree": 57571647488, - "memoryUsagePercent": 14.617019776023318, - "memoryEfficiency": 85.38298022397669, - "cpuCount": 16, - "cpuLoad": 0.050625, - "platform": "linux", - "uptime": 63716.69 - }, - { - "timestamp": 1754345430931, - "memoryTotal": 67427545088, - "memoryUsed": 10275463168, - "memoryFree": 57152081920, - "memoryUsagePercent": 15.2392663185193, - "memoryEfficiency": 84.7607336814807, - "cpuCount": 16, - "cpuLoad": 0.06, - "platform": "linux", - "uptime": 63746.72 + "uptime": 63794.03 } ] \ No newline at end of file diff --git a/.claude-flow/metrics/task-metrics.json b/.claude-flow/metrics/task-metrics.json index f041b56880..17bdbfeb17 100644 --- a/.claude-flow/metrics/task-metrics.json +++ b/.claude-flow/metrics/task-metrics.json @@ -1,10 +1,10 @@ [ { - "id": "cmd-hooks-1754345448172", + "id": "cmd-hooks-1754345464522", "type": "hooks", "success": true, - "duration": 9.91867000000002, - "timestamp": 1754345448182, + "duration": 7.866538999999989, + "timestamp": 1754345464530, "metadata": {} } ] \ No newline at end of file diff --git a/.claude/checkpoints/1754345452.json b/.claude/checkpoints/1754345452.json new file mode 100644 index 0000000000..50860d88c0 --- /dev/null +++ b/.claude/checkpoints/1754345452.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250804-221052", "file": "/workspaces/claude-code-flow/test-prompt-generation.js", "timestamp": "2025-08-04T22:10:52Z", "type": "pre-edit", "original_branch": "alpha-85"} diff --git a/.claude/checkpoints/task-1754345452.json b/.claude/checkpoints/task-1754345452.json new file mode 100644 index 0000000000..f5a5efa028 --- /dev/null +++ b/.claude/checkpoints/task-1754345452.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250804-221052", "task": "{{user_prompt}} ", "timestamp": "2025-08-04T22:10:52Z", "commit": "c6122410dc9f1358c38cfe3b91b984741141e6e9", "github_release": "true"} diff --git a/agentic-flow/.claude-flow/metrics/performance.json b/agentic-flow/.claude-flow/metrics/performance.json index 05423ce083..5282e04102 100644 --- a/agentic-flow/.claude-flow/metrics/performance.json +++ b/agentic-flow/.claude-flow/metrics/performance.json @@ -1,6 +1,10 @@ { +<<<<<<< Updated upstream <<<<<<< Updated upstream "startTime": 1754321860612, +======= + "startTime": 1754320393327, +>>>>>>> Stashed changes ======= "startTime": 1754320393327, >>>>>>> Stashed changes diff --git a/agentic-flow/.claude-flow/metrics/task-metrics.json b/agentic-flow/.claude-flow/metrics/task-metrics.json index b9b1d73f00..acb7b95030 100644 --- a/agentic-flow/.claude-flow/metrics/task-metrics.json +++ b/agentic-flow/.claude-flow/metrics/task-metrics.json @@ -1,11 +1,19 @@ [ { +<<<<<<< Updated upstream <<<<<<< Updated upstream "id": "cmd-hooks-1754321860717", "type": "hooks", "success": true, "duration": 24.768541000000027, "timestamp": 1754321860742, +======= + "id": "cmd-hooks-1754320393431", + "type": "hooks", + "success": true, + "duration": 11.025525000000016, + "timestamp": 1754320393442, +>>>>>>> Stashed changes ======= "id": "cmd-hooks-1754320393431", "type": "hooks", diff --git a/test-prompt-generation.js b/test-prompt-generation.js new file mode 100644 index 0000000000..11b68703d3 --- /dev/null +++ b/test-prompt-generation.js @@ -0,0 +1,34 @@ +// Test script to verify enhanced prompt generation +import { WorkflowExecutor } from './src/cli/simple-commands/automation-executor.js'; + +const executor = new WorkflowExecutor({ + enableClaude: true, + nonInteractive: false +}); + +// Mock workflow data +const workflow = { + name: "Test Workflow", + agents: [{ + id: "test_agent", + name: "Test Agent", + type: "researcher", + config: { capabilities: ["web-search", "analysis"] } + }] +}; + +const task = { + id: "task1", + name: "Research Task", + description: "Research ML approaches", + assignTo: "test_agent", + claudePrompt: "Research the latest machine learning approaches for the given problem." +}; + +const agent = workflow.agents[0]; + +// Generate and display the enhanced prompt +console.log("=== ENHANCED TASK PROMPT ==="); +const prompt = executor.createTaskPrompt(task, agent, workflow); +console.log(prompt); +console.log("=== END PROMPT ==="); \ No newline at end of file