@damper/cli 0.6.0 → 0.6.2
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/worktree.js +14 -0
- 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.6.
|
|
8
|
+
const VERSION = '0.6.2';
|
|
9
9
|
function showHelp() {
|
|
10
10
|
console.log(`
|
|
11
11
|
${pc.bold('@damper/cli')} - Agent orchestration for Damper tasks
|
|
@@ -268,6 +268,20 @@ export async function createWorktree(options) {
|
|
|
268
268
|
};
|
|
269
269
|
fs.writeFileSync(path.join(worktreePath, '.mcp.json'), JSON.stringify(mcpConfig, null, 2));
|
|
270
270
|
console.log(pc.dim('Created .mcp.json with Damper MCP'));
|
|
271
|
+
// Create .claude/settings.local.json with permissions for Damper MCP tools
|
|
272
|
+
const claudeDir = path.join(worktreePath, '.claude');
|
|
273
|
+
if (!fs.existsSync(claudeDir)) {
|
|
274
|
+
fs.mkdirSync(claudeDir, { recursive: true });
|
|
275
|
+
}
|
|
276
|
+
const claudeSettings = {
|
|
277
|
+
permissions: {
|
|
278
|
+
allow: [
|
|
279
|
+
'mcp__damper__*',
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
};
|
|
283
|
+
fs.writeFileSync(path.join(claudeDir, 'settings.local.json'), JSON.stringify(claudeSettings, null, 2));
|
|
284
|
+
console.log(pc.dim('Created .claude/settings.local.json with MCP permissions'));
|
|
271
285
|
// Save to state
|
|
272
286
|
const worktreeState = {
|
|
273
287
|
taskId,
|