snow-flow 4.5.7 → 4.5.8

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.
Files changed (2) hide show
  1. package/dist/cli.js +15 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -555,16 +555,26 @@ async function executeClaudeCode(prompt) {
555
555
  cliLogger.info(`🔍 Working Directory: ${process.cwd()}`);
556
556
  cliLogger.info(`🔍 MCP Config: ${mcpConfigPath}`);
557
557
  }
558
- // Start Claude Code process - inherit all stdio to prevent raw mode issues
558
+ // Start Claude Code process with stdin pipe for prompt, but handle raw mode gracefully
559
559
  const claudeProcess = (0, child_process_1.spawn)('claude', claudeArgs, {
560
- stdio: 'inherit', // inherit all streams to prevent raw mode errors in Codespaces
560
+ stdio: ['pipe', 'inherit', 'inherit'], // pipe stdin to send prompt, inherit stdout/stderr
561
561
  cwd: process.cwd(),
562
- env: { ...process.env }
562
+ env: {
563
+ ...process.env,
564
+ // Prevent raw mode issues in non-interactive environments
565
+ FORCE_COLOR: '0',
566
+ NO_COLOR: '1'
567
+ }
563
568
  });
564
- // Claude Code will open with MCP servers ready
569
+ // Send the prompt via stdin
570
+ cliLogger.info('📝 Sending orchestration prompt to Claude Code...');
565
571
  cliLogger.info('🚀 Claude Code interface opening with Snow-Flow MCP servers...\n');
566
- cliLogger.info('💡 Tell Claude Code: ' + chalk_1.default.green(`"${prompt.slice(0, 100)}..."`));
567
572
  cliLogger.info('🛠️ All 20+ MCP servers with 235+ tools are now available!');
573
+ // Write prompt to stdin
574
+ if (claudeProcess.stdin) {
575
+ claudeProcess.stdin.write(prompt);
576
+ claudeProcess.stdin.end();
577
+ }
568
578
  // Set up process monitoring
569
579
  return new Promise((resolve) => {
570
580
  claudeProcess.on('close', async (code) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "4.5.7",
3
+ "version": "4.5.8",
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",