software-engineer 0.1.17 → 0.1.20

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/claude.js +4 -5
  2. package/package.json +4 -2
package/dist/claude.js CHANGED
@@ -1,4 +1,4 @@
1
- import { spawn } from 'child_process';
1
+ import spawn from 'cross-spawn';
2
2
  import { logInfo, logSuccess, logError, logDryRun } from './logger.js';
3
3
  // Exit codes
4
4
  const EXIT_SUCCESS = 0;
@@ -24,10 +24,9 @@ export async function runClaude(options, config) {
24
24
  }
25
25
  logInfo('Calling Claude...');
26
26
  return new Promise((resolve) => {
27
- // Spawn Claude using child_process
28
- // Use 'inherit' for all stdio to allow Claude's interactive UI to work properly
29
- // Claude CLI requires a TTY for its rich terminal features (spinners, progress, etc.)
30
- // Piping stdout/stderr causes Claude to detect non-TTY and buffer/disable output
27
+ // Spawn Claude using cross-spawn for cross-platform compatibility
28
+ // cross-spawn handles Windows .cmd/.bat files automatically without shell:true
29
+ // Use 'inherit' for stdio to allow Claude's interactive UI to work properly
31
30
  const child = spawn('claude', args, {
32
31
  cwd: process.cwd(),
33
32
  env: process.env,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "software-engineer",
3
- "version": "0.1.17",
3
+ "version": "0.1.20",
4
4
  "description": "CLI that automates the full dev workflow with Claude AI - implement, review, test, and commit code with a single command",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,9 +32,11 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "chalk": "^5.3.0",
35
- "commander": "^12.1.0"
35
+ "commander": "^12.1.0",
36
+ "cross-spawn": "^7.0.6"
36
37
  },
37
38
  "devDependencies": {
39
+ "@types/cross-spawn": "^6.0.6",
38
40
  "@types/node": "^20.11.0",
39
41
  "typescript": "^5.3.3"
40
42
  },