@damper/cli 0.3.0 → 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 +13 -2
- package/dist/templates/TASK_CONTEXT.md.js +16 -0
- 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,15 +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
|
-
'
|
|
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',
|
|
110
|
+
'',
|
|
111
|
+
'About this session: You were launched by @damper/cli.',
|
|
112
|
+
'The CLI created this worktree, bootstrapped TASK_CONTEXT.md, and configured Damper MCP.',
|
|
113
|
+
'',
|
|
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.',
|
|
105
116
|
].join('\n');
|
|
106
117
|
// Build Claude args
|
|
107
118
|
const claudeArgs = [
|
|
@@ -25,6 +25,22 @@ export function generateTaskContext(options) {
|
|
|
25
25
|
lines.push('');
|
|
26
26
|
lines.push(damperInstructions);
|
|
27
27
|
lines.push('');
|
|
28
|
+
// CLI & Tooling Info
|
|
29
|
+
lines.push('## About This Session');
|
|
30
|
+
lines.push('');
|
|
31
|
+
lines.push('You were launched by `@damper/cli` (npm package). The CLI:');
|
|
32
|
+
lines.push('- Created this git worktree for isolated work');
|
|
33
|
+
lines.push('- Generated this TASK_CONTEXT.md from Damper API');
|
|
34
|
+
lines.push('- Configured Damper MCP tools for task lifecycle');
|
|
35
|
+
lines.push('');
|
|
36
|
+
lines.push('**Help improve the tooling:** As you work, if you encounter:');
|
|
37
|
+
lines.push('- Friction or bugs in the CLI or MCP tools');
|
|
38
|
+
lines.push('- Missing context that would help future agents');
|
|
39
|
+
lines.push('- Ideas to improve the workflow or prompts');
|
|
40
|
+
lines.push('');
|
|
41
|
+
lines.push('Use `report_issue` (category: error, feature_request, or improvement) to log them.');
|
|
42
|
+
lines.push('Your feedback directly improves the tooling for all future tasks.');
|
|
43
|
+
lines.push('');
|
|
28
44
|
// Task Description
|
|
29
45
|
if (task.description) {
|
|
30
46
|
lines.push('## Task Description');
|