mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js
This commit is contained in:
1 parent
0d35637d05
commit
62188addf1
2 files changed
+4
-4
No files matched your search
@@ -0,0 +1 @@
|
||||
{"checkpoint": "task-20250812-190007", "task": "Hello, test ", "timestamp": "2025-08-12T19:00:08Z", "commit": "2802d6bdb0343d5f7141c37f836d76ae411fa36a", "github_release": "true"}
|
||||
@@ -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}`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user