🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js

This commit is contained in:
rUv committed 2025-08-12 19:00:24 +00:00
1 parent 0d35637d05
commit 62188addf1
2 files changed
+4 -4

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"checkpoint": "task-20250812-190007", "task": "Hello, test ", "timestamp": "2025-08-12T19:00:08Z", "commit": "2802d6bdb0343d5f7141c37f836d76ae411fa36a", "github_release": "true"}
+3 -4
View File
@@ -42,11 +42,10 @@ async function executeClaudeCommand(prompt, timeout = 20000, useStreamJson = fal
args.push('--output-format', 'stream-json', '--verbose');
}
// Properly quote the prompt to handle spaces and special characters
const quotedPrompt = `"${prompt.replace(/"/g, '\\"')}"`;
args.push(quotedPrompt);
// Add the prompt as the last argument (exec will handle proper escaping)
args.push(prompt);
const command = `claude ${args.join(' ')}`;
const command = `claude ${args.slice(0, -1).join(' ')} "${prompt.replace(/"/g, '\\"')}"`;
console.log(`🔄 Executing: ${command}`);