software-engineer 0.1.13 → 0.1.14

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 +6 -20
  2. package/package.json +1 -1
package/dist/claude.js CHANGED
@@ -21,29 +21,15 @@ export async function runClaude(options, config) {
21
21
  }
22
22
  logInfo('Calling Claude...');
23
23
  return new Promise((resolve) => {
24
- let capturedOutput = '';
25
24
  // Spawn Claude using child_process
26
- // Use 'inherit' for stdin to allow interactive input
27
- // Use 'pipe' for stdout/stderr to capture output while passing through
25
+ // Use 'inherit' for all stdio to allow Claude's interactive UI to work properly
26
+ // Claude CLI requires a TTY for its rich terminal features (spinners, progress, etc.)
27
+ // Piping stdout/stderr causes Claude to detect non-TTY and buffer/disable output
28
28
  const child = spawn('claude', args, {
29
29
  cwd: process.cwd(),
30
30
  env: process.env,
31
- stdio: ['inherit', 'pipe', 'pipe'],
31
+ stdio: 'inherit',
32
32
  });
33
- // Capture and pass through stdout
34
- if (child.stdout) {
35
- child.stdout.on('data', (data) => {
36
- const text = data.toString();
37
- process.stdout.write(text);
38
- capturedOutput += text;
39
- });
40
- }
41
- // Capture and pass through stderr
42
- if (child.stderr) {
43
- child.stderr.on('data', (data) => {
44
- process.stderr.write(data.toString());
45
- });
46
- }
47
33
  // Handle process exit
48
34
  child.on('close', (exitCode) => {
49
35
  if (exitCode === EXIT_INTERRUPTED || exitCode === 2) {
@@ -52,11 +38,11 @@ export async function runClaude(options, config) {
52
38
  }
53
39
  else if (exitCode === EXIT_SUCCESS) {
54
40
  logSuccess('Claude completed');
55
- resolve({ success: true, output: capturedOutput });
41
+ resolve({ success: true, output: '' });
56
42
  }
57
43
  else {
58
44
  logError(`Claude exited with code ${exitCode}`);
59
- resolve({ success: false, output: capturedOutput });
45
+ resolve({ success: false, output: '' });
60
46
  }
61
47
  });
62
48
  // Handle spawn errors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "software-engineer",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
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",