snow-flow 1.3.9 → 1.3.10

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 CHANGED
@@ -399,29 +399,29 @@ async function executeClaudeCode(prompt) {
399
399
  // Check for MCP config
400
400
  const mcpConfigPath = (0, path_1.join)(process.cwd(), '.mcp.json');
401
401
  const hasMcpConfig = (0, fs_2.existsSync)(mcpConfigPath);
402
- // Launch Claude Code with MCP config
402
+ // Launch Claude Code with MCP config and skip permissions to avoid raw mode issues
403
403
  const claudeArgs = hasMcpConfig
404
- ? ['--mcp-config', '.mcp.json', '.']
405
- : ['.'];
404
+ ? ['--mcp-config', '.mcp.json', '.', '--dangerously-skip-permissions']
405
+ : ['--dangerously-skip-permissions'];
406
406
  cliLogger.info('šŸš€ Launching Claude Code automatically...');
407
407
  if (hasMcpConfig) {
408
408
  cliLogger.info('šŸ”§ Starting Claude Code with ServiceNow MCP servers...');
409
409
  }
410
- // Start Claude Code process in interactive mode
410
+ // Start Claude Code process in interactive mode with stdin piping
411
411
  const claudeProcess = (0, child_process_1.spawn)('claude', claudeArgs, {
412
- stdio: ['pipe', 'inherit', 'inherit'],
413
- shell: true,
412
+ stdio: ['pipe', 'inherit', 'inherit'], // pipe stdin, inherit stdout/stderr
413
+ cwd: process.cwd(),
414
414
  env: { ...process.env }
415
415
  });
416
- // Send the prompt to Claude Code
416
+ // Send the prompt via stdin
417
417
  cliLogger.info('šŸ“ Sending orchestration prompt to Claude Code...');
418
418
  cliLogger.info('šŸš€ Claude Code interface opening...\n');
419
- // Write prompt and close stdin to trigger execution
419
+ // Write prompt to stdin
420
420
  claudeProcess.stdin.write(prompt);
421
421
  claudeProcess.stdin.end();
422
422
  // Set up process monitoring
423
423
  return new Promise((resolve) => {
424
- claudeProcess.on('close', (code) => {
424
+ claudeProcess.on('close', async (code) => {
425
425
  if (code === 0) {
426
426
  cliLogger.info('\nāœ… Claude Code session completed successfully!');
427
427
  resolve(true);
package/dist/version.js CHANGED
@@ -7,12 +7,18 @@ exports.VERSION_INFO = exports.VERSION = void 0;
7
7
  exports.getVersionString = getVersionString;
8
8
  exports.getLatestFeatures = getLatestFeatures;
9
9
  exports.isLatestVersion = isLatestVersion;
10
- exports.VERSION = '1.3.9';
10
+ exports.VERSION = '1.3.10';
11
11
  exports.VERSION_INFO = {
12
12
  version: exports.VERSION,
13
13
  name: 'Snow-Flow',
14
14
  description: 'ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development',
15
15
  features: {
16
+ '1.3.10': [
17
+ 'šŸ”„ RAW MODE FIX: Used --dangerously-skip-permissions flag',
18
+ 'šŸ“ STDIN RESTORED: Proper prompt injection via stdin',
19
+ 'āœ… FULLY AUTOMATIC: No manual input required anymore',
20
+ 'šŸš€ LIKE OLD VERSIONS: Works exactly like v1.0-1.2 did'
21
+ ],
16
22
  '1.3.9': [
17
23
  'šŸš€ CLAUDE CODE AUTO-LAUNCH: Restored automatic Claude Code launching',
18
24
  'šŸ¤– PROCESS SPAWNING: Claude CLI detection and proper process spawning',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development inspired by claude-flow. Transform complex workflows into elegant one-command orchestration.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",