gekto 0.0.1 → 0.0.2

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.
@@ -11,7 +11,9 @@ export class ClaudeAgent {
11
11
  this.readyPromise = new Promise((resolve) => {
12
12
  this.resolveReady = resolve;
13
13
  });
14
- this.pty = pty.spawn('claude', [], {
14
+ // Use shell to resolve claude from PATH (needed for Homebrew on macOS)
15
+ const shell = process.env.SHELL || '/bin/bash';
16
+ this.pty = pty.spawn(shell, ['-i', '-c', 'claude'], {
15
17
  name: 'xterm-256color',
16
18
  cols: 120,
17
19
  rows: 40,
@@ -42,6 +42,7 @@ export class HeadlessAgent {
42
42
  cwd: this.config.workingDir || process.cwd(),
43
43
  env: process.env,
44
44
  stdio: ['pipe', 'pipe', 'pipe'],
45
+ shell: true,
45
46
  });
46
47
  this.currentProc = proc;
47
48
  // Close stdin immediately - we pass everything via args
@@ -127,6 +127,7 @@ function runClaudeOnce(prompt, systemPrompt, workingDir) {
127
127
  cwd: workingDir,
128
128
  env: process.env,
129
129
  stdio: ['pipe', 'pipe', 'pipe'],
130
+ shell: true,
130
131
  });
131
132
  proc.stdin?.end();
132
133
  let buffer = '';
@@ -55,6 +55,7 @@ function spawnOpus() {
55
55
  cwd: workingDir,
56
56
  env: process.env,
57
57
  stdio: ['pipe', 'pipe', 'pipe'],
58
+ shell: true,
58
59
  });
59
60
  opusProcess.stdout.on('data', (data) => {
60
61
  opusBuffer += data.toString();
@@ -63,6 +63,7 @@ function runHaiku(prompt, systemPrompt, workingDir) {
63
63
  cwd: workingDir,
64
64
  env: process.env,
65
65
  stdio: ['pipe', 'pipe', 'pipe'],
66
+ shell: true,
66
67
  });
67
68
  proc.stdin?.end();
68
69
  let buffer = '';
@@ -146,6 +146,7 @@ function runClaudeOnce(prompt, systemPrompt, workingDir, callbacks) {
146
146
  cwd: workingDir,
147
147
  env: process.env,
148
148
  stdio: ['pipe', 'pipe', 'pipe'],
149
+ shell: true,
149
150
  });
150
151
  proc.stdin?.end();
151
152
  let buffer = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gekto",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "AI coding assistant widget - inject into any web app",
5
5
  "type": "module",
6
6
  "bin": {