@damper/cli 0.3.1 → 0.3.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/claude.js +11 -8
- 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.2';
|
|
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
|
@@ -93,23 +93,26 @@ export async function launchClaude(options) {
|
|
|
93
93
|
}
|
|
94
94
|
console.log(pc.dim(`Directory: ${cwd}\n`));
|
|
95
95
|
// Build initial prompt
|
|
96
|
+
const planModeNote = yolo ? '' : `
|
|
97
|
+
You're in PLAN MODE. First, read TASK_CONTEXT.md and create an implementation plan.
|
|
98
|
+
Do NOT log anything to Damper (no add_commit, add_note) until your plan is approved.
|
|
99
|
+
Once approved, switch to implementation and start logging your work.
|
|
100
|
+
`;
|
|
96
101
|
const initialPrompt = [
|
|
97
102
|
`I'm working on task #${taskId}: ${taskTitle}`,
|
|
98
|
-
|
|
103
|
+
planModeNote,
|
|
99
104
|
'Please read TASK_CONTEXT.md for full context, critical rules, and the implementation plan.',
|
|
100
105
|
'',
|
|
101
|
-
'Task workflow:',
|
|
106
|
+
'Task workflow (after plan approval):',
|
|
102
107
|
'1. Use `add_commit` after each git commit',
|
|
103
108
|
'2. Use `add_note` for important decisions',
|
|
104
109
|
'3. Call `complete_task` when done or `abandon_task` if stopping early',
|
|
105
110
|
'',
|
|
106
|
-
'About this session: You were launched by @damper/cli
|
|
107
|
-
'The CLI created this worktree, bootstrapped TASK_CONTEXT.md, and
|
|
111
|
+
'About this session: You were launched by @damper/cli.',
|
|
112
|
+
'The CLI created this worktree, bootstrapped TASK_CONTEXT.md, and configured Damper MCP.',
|
|
108
113
|
'',
|
|
109
|
-
'Self-improvement:
|
|
110
|
-
'
|
|
111
|
-
'- Ideas to improve: task context format, worktree setup, MCP tools, agent prompts - all welcome as feature_request',
|
|
112
|
-
'- Your feedback directly improves the tooling for future tasks',
|
|
114
|
+
'Self-improvement: If you encounter friction, bugs, or have ideas to improve the CLI/workflow,',
|
|
115
|
+
'use `report_issue` to log them. Your feedback improves tooling for all future tasks.',
|
|
113
116
|
].join('\n');
|
|
114
117
|
// Build Claude args
|
|
115
118
|
const claudeArgs = [
|