@damper/cli 0.3.2 → 0.3.3
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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { startCommand } from './commands/start.js';
|
|
|
4
4
|
import { statusCommand } from './commands/status.js';
|
|
5
5
|
import { cleanupCommand } from './commands/cleanup.js';
|
|
6
6
|
import { setupCommand } from './commands/setup.js';
|
|
7
|
-
const VERSION = '0.3.
|
|
7
|
+
const VERSION = '0.3.3';
|
|
8
8
|
function showHelp() {
|
|
9
9
|
console.log(`
|
|
10
10
|
${pc.bold('@damper/cli')} - Agent orchestration for Damper tasks
|
package/dist/services/claude.js
CHANGED
|
@@ -114,13 +114,21 @@ Once approved, switch to implementation and start logging your work.
|
|
|
114
114
|
'Self-improvement: If you encounter friction, bugs, or have ideas to improve the CLI/workflow,',
|
|
115
115
|
'use `report_issue` to log them. Your feedback improves tooling for all future tasks.',
|
|
116
116
|
].join('\n');
|
|
117
|
+
// Build MCP config with API key so the Damper MCP server can authenticate
|
|
118
|
+
const mcpConfig = JSON.stringify({
|
|
119
|
+
damper: {
|
|
120
|
+
command: 'npx',
|
|
121
|
+
args: ['-y', '@damper/mcp'],
|
|
122
|
+
env: { DAMPER_API_KEY: apiKey },
|
|
123
|
+
},
|
|
124
|
+
});
|
|
117
125
|
// Build Claude args
|
|
118
126
|
const claudeArgs = [
|
|
119
127
|
'--permission-mode', yolo ? 'acceptEdits' : 'plan',
|
|
128
|
+
'--mcp-config', mcpConfig,
|
|
120
129
|
initialPrompt,
|
|
121
130
|
];
|
|
122
131
|
// Launch Claude Code in interactive mode
|
|
123
|
-
// Pass API key so MCP server gets it
|
|
124
132
|
try {
|
|
125
133
|
await execa('claude', claudeArgs, {
|
|
126
134
|
cwd,
|