@damper/cli 0.5.3 → 0.5.4
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 +8 -15
- 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.4';
|
|
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,22 +126,15 @@ export async function launchClaude(options) {
|
|
|
126
126
|
'--mcp-config', mcpConfigPath,
|
|
127
127
|
initialPrompt,
|
|
128
128
|
];
|
|
129
|
-
//
|
|
130
|
-
if (process.env.DEBUG) {
|
|
131
|
-
console.log(pc.dim(`Debug: claude ${claudeArgs.join(' ')}`));
|
|
132
|
-
console.log(pc.dim(`Debug: MCP config at ${mcpConfigPath}`));
|
|
133
|
-
}
|
|
134
|
-
// Launch Claude Code in interactive mode
|
|
129
|
+
// Launch Claude Code - just use execa which handles this well
|
|
135
130
|
try {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
//
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
execSync(cmd, {
|
|
131
|
+
console.log(pc.dim('Launching Claude...'));
|
|
132
|
+
// Simple approach: just launch claude in the directory
|
|
133
|
+
// MCP config is passed, prompt is simple
|
|
134
|
+
await execa('claude', [
|
|
135
|
+
'--mcp-config', mcpConfigPath,
|
|
136
|
+
initialPrompt
|
|
137
|
+
], {
|
|
145
138
|
cwd,
|
|
146
139
|
stdio: 'inherit',
|
|
147
140
|
env: {
|