@damper/cli 0.6.4 → 0.6.5
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/commands/start.js +2 -0
- package/dist/index.js +1 -1
- package/dist/services/claude.js +4 -1
- package/dist/services/context-bootstrap.d.ts +1 -0
- package/dist/services/context-bootstrap.js +1 -0
- package/dist/templates/CLAUDE_APPEND.md.d.ts +1 -0
- package/dist/templates/CLAUDE_APPEND.md.js +9 -2
- package/package.json +1 -1
package/dist/commands/start.js
CHANGED
|
@@ -103,6 +103,7 @@ export async function startCommand(options) {
|
|
|
103
103
|
api,
|
|
104
104
|
taskId,
|
|
105
105
|
worktreePath,
|
|
106
|
+
yolo: options.yolo,
|
|
106
107
|
});
|
|
107
108
|
console.log(pc.green('✓ Updated TASK_CONTEXT.md with latest notes'));
|
|
108
109
|
}
|
|
@@ -144,6 +145,7 @@ export async function startCommand(options) {
|
|
|
144
145
|
api,
|
|
145
146
|
taskId,
|
|
146
147
|
worktreePath,
|
|
148
|
+
yolo: options.yolo,
|
|
147
149
|
});
|
|
148
150
|
console.log(pc.green(`✓ Created ${bootstrapResult.taskContextPath}`));
|
|
149
151
|
if (bootstrapResult.claudeMdUpdated) {
|
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.5';
|
|
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
|
@@ -110,7 +110,10 @@ export async function launchClaude(options) {
|
|
|
110
110
|
}
|
|
111
111
|
console.log();
|
|
112
112
|
// Build prompt - context is in TASK_CONTEXT.md, MCP is in .claude/settings.json
|
|
113
|
-
const
|
|
113
|
+
const planInstruction = yolo
|
|
114
|
+
? ''
|
|
115
|
+
: ' After reading TASK_CONTEXT.md, use the EnterPlanMode tool to create an implementation plan for user approval before making any code changes.';
|
|
116
|
+
const initialPrompt = `IMPORTANT: Start by reading TASK_CONTEXT.md completely. It contains the task description, implementation plan, critical rules, and architecture context.${planInstruction} Task #${taskId}: ${taskTitle}`;
|
|
114
117
|
console.log(pc.dim(`Launching Claude in ${cwd}...`));
|
|
115
118
|
// Launch Claude Code
|
|
116
119
|
// Use spawn with stdio: 'inherit' for proper TTY passthrough
|
|
@@ -75,6 +75,7 @@ export async function bootstrapContext(options) {
|
|
|
75
75
|
const taskSection = generateClaudeAppend({
|
|
76
76
|
taskId,
|
|
77
77
|
taskTitle: task.title,
|
|
78
|
+
yolo: options.yolo,
|
|
78
79
|
});
|
|
79
80
|
claudeMd = `${claudeMd}\n\n${taskSection}\n`;
|
|
80
81
|
await fs.promises.writeFile(claudeMdPath, claudeMd, 'utf-8');
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
export function generateClaudeAppend(options) {
|
|
2
|
-
const { taskId, taskTitle } = options;
|
|
2
|
+
const { taskId, taskTitle, yolo } = options;
|
|
3
|
+
const planSection = yolo
|
|
4
|
+
? ''
|
|
5
|
+
: `
|
|
6
|
+
**MANDATORY: Plan Mode**
|
|
7
|
+
Before making ANY code changes, you MUST enter plan mode using the EnterPlanMode tool.
|
|
8
|
+
Read TASK_CONTEXT.md first, then create a plan for user approval. Do NOT write code until the plan is approved.
|
|
9
|
+
`;
|
|
3
10
|
return `
|
|
4
11
|
## Current Task: #${taskId} ${taskTitle}
|
|
5
12
|
|
|
6
13
|
**IMPORTANT**: Read TASK_CONTEXT.md for full task details and architecture context.
|
|
7
14
|
If you feel you've lost context, re-read that file.
|
|
8
|
-
|
|
15
|
+
${planSection}
|
|
9
16
|
**Your responsibilities (via Damper MCP):**
|
|
10
17
|
1. Use \`add_commit\` after each git commit
|
|
11
18
|
2. Use \`add_note\` for important decisions
|