@damper/cli 0.5.7 → 0.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.
- package/dist/index.js +1 -1
- package/dist/services/claude.js +17 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { statusCommand } from './commands/status.js';
|
|
|
5
5
|
import { cleanupCommand } from './commands/cleanup.js';
|
|
6
6
|
import { setupCommand } from './commands/setup.js';
|
|
7
7
|
import { releaseCommand } from './commands/release.js';
|
|
8
|
-
const VERSION = '0.5.
|
|
8
|
+
const VERSION = '0.5.8';
|
|
9
9
|
function showHelp() {
|
|
10
10
|
console.log(`
|
|
11
11
|
${pc.bold('@damper/cli')} - Agent orchestration for Damper tasks
|
package/dist/services/claude.js
CHANGED
|
@@ -133,39 +133,24 @@ export async function launchClaude(options) {
|
|
|
133
133
|
const isTTY = process.stdin.isTTY;
|
|
134
134
|
if (process.env.DEBUG) {
|
|
135
135
|
console.log(pc.dim(`Debug: stdin.isTTY = ${isTTY}`));
|
|
136
|
+
console.log(pc.dim(`Debug: MCP config exists = ${fs.existsSync(mcpConfigPath)}`));
|
|
137
|
+
console.log(pc.dim(`Debug: cwd = ${cwd}`));
|
|
138
|
+
console.log(pc.dim(`Debug: About to spawn claude...`));
|
|
136
139
|
}
|
|
137
|
-
//
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
env: {
|
|
152
|
-
...process.env,
|
|
153
|
-
DAMPER_API_KEY: apiKey,
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
result = spawnSync('claude', [
|
|
159
|
-
'--mcp-config', mcpConfigPath,
|
|
160
|
-
initialPrompt
|
|
161
|
-
], {
|
|
162
|
-
cwd,
|
|
163
|
-
stdio: 'inherit',
|
|
164
|
-
env: {
|
|
165
|
-
...process.env,
|
|
166
|
-
DAMPER_API_KEY: apiKey,
|
|
167
|
-
},
|
|
168
|
-
});
|
|
140
|
+
// Simple spawn - no script wrapper
|
|
141
|
+
const result = spawnSync('claude', [
|
|
142
|
+
'--mcp-config', mcpConfigPath,
|
|
143
|
+
initialPrompt
|
|
144
|
+
], {
|
|
145
|
+
cwd,
|
|
146
|
+
stdio: 'inherit',
|
|
147
|
+
env: {
|
|
148
|
+
...process.env,
|
|
149
|
+
DAMPER_API_KEY: apiKey,
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
if (process.env.DEBUG) {
|
|
153
|
+
console.log(pc.dim(`Debug: spawnSync returned, status = ${result.status}`));
|
|
169
154
|
}
|
|
170
155
|
if (result.error) {
|
|
171
156
|
const error = result.error;
|