@damper/cli 0.5.6 → 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 +13 -1
- 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
|
@@ -126,9 +126,18 @@ export async function launchClaude(options) {
|
|
|
126
126
|
'--mcp-config', mcpConfigPath,
|
|
127
127
|
initialPrompt,
|
|
128
128
|
];
|
|
129
|
-
// Launch Claude Code
|
|
129
|
+
// Launch Claude Code
|
|
130
130
|
try {
|
|
131
131
|
const { spawnSync } = await import('node:child_process');
|
|
132
|
+
// Check if stdin is a TTY - if not, we may need special handling
|
|
133
|
+
const isTTY = process.stdin.isTTY;
|
|
134
|
+
if (process.env.DEBUG) {
|
|
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...`));
|
|
139
|
+
}
|
|
140
|
+
// Simple spawn - no script wrapper
|
|
132
141
|
const result = spawnSync('claude', [
|
|
133
142
|
'--mcp-config', mcpConfigPath,
|
|
134
143
|
initialPrompt
|
|
@@ -140,6 +149,9 @@ export async function launchClaude(options) {
|
|
|
140
149
|
DAMPER_API_KEY: apiKey,
|
|
141
150
|
},
|
|
142
151
|
});
|
|
152
|
+
if (process.env.DEBUG) {
|
|
153
|
+
console.log(pc.dim(`Debug: spawnSync returned, status = ${result.status}`));
|
|
154
|
+
}
|
|
143
155
|
if (result.error) {
|
|
144
156
|
const error = result.error;
|
|
145
157
|
if (error.code === 'ENOENT') {
|