@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.
@@ -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.4';
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
@@ -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 initialPrompt = `IMPORTANT: Start by reading TASK_CONTEXT.md completely. It contains the task description, implementation plan, critical rules, and architecture context. Follow the implementation plan if one exists - do NOT start exploring the codebase until you've read it. Task #${taskId}: ${taskTitle}`;
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
@@ -3,6 +3,7 @@ export interface BootstrapOptions {
3
3
  api: DamperApi;
4
4
  taskId: string;
5
5
  worktreePath: string;
6
+ yolo?: boolean;
6
7
  }
7
8
  export interface BootstrapResult {
8
9
  taskContextPath: string;
@@ -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,6 +1,7 @@
1
1
  interface ClaudeAppendOptions {
2
2
  taskId: string;
3
3
  taskTitle: string;
4
+ yolo?: boolean;
4
5
  }
5
6
  export declare function generateClaudeAppend(options: ClaudeAppendOptions): string;
6
7
  export {};
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@damper/cli",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "CLI tool for orchestrating Damper task workflows with Claude Code",
5
5
  "author": "Damper <hello@usedamper.com>",
6
6
  "repository": {