@damper/cli 0.6.5 → 0.6.6
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
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.6';
|
|
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
|
@@ -103,15 +103,16 @@ export async function launchClaude(options) {
|
|
|
103
103
|
console.log(pc.dim(' (removes worktree and branch)'));
|
|
104
104
|
console.log();
|
|
105
105
|
if (yolo) {
|
|
106
|
-
console.log(pc.yellow('Mode: YOLO (auto-
|
|
106
|
+
console.log(pc.yellow('Mode: YOLO (plan then auto-execute)'));
|
|
107
107
|
}
|
|
108
108
|
else {
|
|
109
109
|
console.log(pc.cyan('Mode: Plan (will ask for approval)'));
|
|
110
110
|
}
|
|
111
111
|
console.log();
|
|
112
112
|
// Build prompt - context is in TASK_CONTEXT.md, MCP is in .claude/settings.json
|
|
113
|
+
// Always enter plan mode first. In yolo mode, execute without waiting for approval.
|
|
113
114
|
const planInstruction = yolo
|
|
114
|
-
? ''
|
|
115
|
+
? ' After reading TASK_CONTEXT.md, use the EnterPlanMode tool to create an implementation plan, then execute it without waiting for user approval.'
|
|
115
116
|
: ' After reading TASK_CONTEXT.md, use the EnterPlanMode tool to create an implementation plan for user approval before making any code changes.';
|
|
116
117
|
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}`;
|
|
117
118
|
console.log(pc.dim(`Launching Claude in ${cwd}...`));
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export function generateClaudeAppend(options) {
|
|
2
2
|
const { taskId, taskTitle, yolo } = options;
|
|
3
3
|
const planSection = yolo
|
|
4
|
-
?
|
|
4
|
+
? `
|
|
5
|
+
**MANDATORY: Plan First, Then Execute**
|
|
6
|
+
Before making ANY code changes, you MUST enter plan mode using the EnterPlanMode tool.
|
|
7
|
+
Read TASK_CONTEXT.md first, then create a plan. Once the plan is ready, execute it without waiting for user approval.
|
|
8
|
+
`
|
|
5
9
|
: `
|
|
6
10
|
**MANDATORY: Plan Mode**
|
|
7
11
|
Before making ANY code changes, you MUST enter plan mode using the EnterPlanMode tool.
|