@damper/cli 0.5.13 → 0.5.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.
- package/dist/index.js +1 -1
- package/dist/services/claude.js +2 -26
- 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.14';
|
|
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
|
@@ -108,35 +108,11 @@ export async function launchClaude(options) {
|
|
|
108
108
|
console.log(pc.cyan('Mode: Plan (will ask for approval)'));
|
|
109
109
|
}
|
|
110
110
|
console.log();
|
|
111
|
-
//
|
|
112
|
-
const mcpConfigPath = path.join(os.tmpdir(), `damper-mcp-${taskId}.json`);
|
|
113
|
-
const mcpConfig = {
|
|
114
|
-
mcpServers: {
|
|
115
|
-
damper: {
|
|
116
|
-
command: 'npx',
|
|
117
|
-
args: ['-y', '@damper/mcp'],
|
|
118
|
-
env: { DAMPER_API_KEY: apiKey },
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
};
|
|
122
|
-
fs.writeFileSync(mcpConfigPath, JSON.stringify(mcpConfig, null, 2));
|
|
123
|
-
// Build Claude args - keep it simple, context is in TASK_CONTEXT.md
|
|
111
|
+
// Build prompt - context is in TASK_CONTEXT.md, MCP is in .claude/settings.json
|
|
124
112
|
const initialPrompt = `Read TASK_CONTEXT.md and work on task #${taskId}: ${taskTitle}`;
|
|
125
|
-
const claudeArgs = [
|
|
126
|
-
'--mcp-config', mcpConfigPath,
|
|
127
|
-
initialPrompt,
|
|
128
|
-
];
|
|
129
113
|
// Launch Claude Code
|
|
130
|
-
// Note: MCP config is set globally via 'setup' command
|
|
131
|
-
// We just pass the API key via environment variable
|
|
132
114
|
const { spawnSync } = await import('node:child_process');
|
|
133
|
-
|
|
134
|
-
try {
|
|
135
|
-
fs.unlinkSync(mcpConfigPath);
|
|
136
|
-
}
|
|
137
|
-
catch {
|
|
138
|
-
// Ignore cleanup errors
|
|
139
|
-
}
|
|
115
|
+
console.log(pc.dim(`Launching Claude in ${cwd}...`));
|
|
140
116
|
const result = spawnSync('claude', [initialPrompt], {
|
|
141
117
|
cwd,
|
|
142
118
|
stdio: 'inherit',
|