snow-flow 4.5.9 ā 4.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -24
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -555,36 +555,18 @@ async function executeClaudeCode(prompt) {
|
|
|
555
555
|
cliLogger.info(`š Working Directory: ${process.cwd()}`);
|
|
556
556
|
cliLogger.info(`š MCP Config: ${mcpConfigPath}`);
|
|
557
557
|
}
|
|
558
|
-
//
|
|
559
|
-
const isInteractive = process.stdin.isTTY && process.stdout.isTTY && !process.env.CI && !process.env.CODESPACES;
|
|
560
|
-
if (!isInteractive) {
|
|
561
|
-
// Non-interactive environment (Codespaces, CI) - provide manual instructions
|
|
562
|
-
cliLogger.info('ā ļø Non-interactive environment detected (Codespaces/CI)');
|
|
563
|
-
cliLogger.info('š Manual Claude Code instructions:');
|
|
564
|
-
cliLogger.info('1. Ensure Claude Code is running: ' + chalk_1.default.cyan('claude --dangerously-skip-permissions'));
|
|
565
|
-
cliLogger.info('2. In Claude Code conversation, tell it:');
|
|
566
|
-
cliLogger.info('\n' + chalk_1.default.green(`"${objective}"`));
|
|
567
|
-
cliLogger.info('\nš ļø All 20+ MCP servers with 235+ Snow-Flow tools are available!');
|
|
568
|
-
return true;
|
|
569
|
-
}
|
|
570
|
-
// Interactive environment - try to start Claude Code
|
|
558
|
+
// Start Claude Code process in interactive mode with stdin piping
|
|
571
559
|
const claudeProcess = (0, child_process_1.spawn)('claude', claudeArgs, {
|
|
572
|
-
stdio: ['pipe', 'inherit', 'inherit'], // pipe stdin
|
|
560
|
+
stdio: ['pipe', 'inherit', 'inherit'], // pipe stdin, inherit stdout/stderr
|
|
573
561
|
cwd: process.cwd(),
|
|
574
|
-
env: {
|
|
575
|
-
...process.env,
|
|
576
|
-
FORCE_COLOR: '0',
|
|
577
|
-
NO_COLOR: '1'
|
|
578
|
-
}
|
|
562
|
+
env: { ...process.env }
|
|
579
563
|
});
|
|
580
564
|
// Send the prompt via stdin
|
|
581
565
|
cliLogger.info('š Sending orchestration prompt to Claude Code...');
|
|
582
|
-
cliLogger.info('š Claude Code interface opening
|
|
566
|
+
cliLogger.info('š Claude Code interface opening...\n');
|
|
583
567
|
// Write prompt to stdin
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
claudeProcess.stdin.end();
|
|
587
|
-
}
|
|
568
|
+
claudeProcess.stdin.write(prompt);
|
|
569
|
+
claudeProcess.stdin.end();
|
|
588
570
|
// Set up process monitoring
|
|
589
571
|
return new Promise((resolve) => {
|
|
590
572
|
claudeProcess.on('close', async (code) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.12",
|
|
4
4
|
"description": "Conversational ServiceNow development platform using Claude Code. Multi-agent orchestration with 20+ MCP servers providing 200+ ServiceNow tools for comprehensive platform development.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|