dotmd-cli 0.39.0 → 0.39.1
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/package.json +1 -1
- package/src/claude-commands.mjs +9 -5
package/package.json
CHANGED
package/src/claude-commands.mjs
CHANGED
|
@@ -20,7 +20,7 @@ const VERSION_REGEX = /<!-- dotmd-generated: ([\d.]+) -->/;
|
|
|
20
20
|
const SLASH_DESCRIPTIONS = {
|
|
21
21
|
plans: "dotmd-managed plan briefing for this repo. Use when the user asks what's on the plate, references a plan slug, queues work, or wants to pick up / release / archive a plan.",
|
|
22
22
|
docs: "dotmd-managed docs briefing for this repo. Use when the user asks to list, scaffold, query, validate, archive, or rename non-plan docs (reference docs, ADRs, RFCs, design notes), or asks how the dotmd doc lifecycle works here.",
|
|
23
|
-
baton: "
|
|
23
|
+
baton: "Save a resume prompt for the held plan and release the lease — the minimum handoff. Use when the user says hand off / save a resume / wrap up, or when context is getting tight.",
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
function frontmatterFor(name) {
|
|
@@ -67,13 +67,17 @@ function generatePlansCommand(config) {
|
|
|
67
67
|
|
|
68
68
|
function generateBatonCommand() {
|
|
69
69
|
const lines = [...frontmatterFor('baton'), VERSION_MARKER, ''];
|
|
70
|
-
lines.push('
|
|
70
|
+
lines.push('Wrap this session. Minimum required (two commands):');
|
|
71
71
|
lines.push('');
|
|
72
|
-
lines.push('1. **
|
|
72
|
+
lines.push('1. **Save the resume prompt.** `dotmd new prompt resume-<plan-slug>` with a 10-20 line body via heredoc: the next concrete decision plus any gotchas. NOT a recap of the plan body. The saved prompt IS the handoff — never print it into chat for copy-paste.');
|
|
73
73
|
lines.push('');
|
|
74
|
-
lines.push('2. **
|
|
74
|
+
lines.push('2. **Release the lease.** `dotmd release` — or `dotmd archive <file>` if the work is fully shipped (archive auto-releases).');
|
|
75
75
|
lines.push('');
|
|
76
|
-
lines.push('
|
|
76
|
+
lines.push('Optional, only when genuinely needed:');
|
|
77
|
+
lines.push('- Status really changed (paused / awaiting / partial / blocked): `dotmd status <file> <status>` BEFORE `dotmd release`.');
|
|
78
|
+
lines.push('- Plan dashboard text is misleading the user: edit `next_step:` in the plan frontmatter. Cosmetic — the next session reads the resume prompt, not the plan frontmatter.');
|
|
79
|
+
lines.push('');
|
|
80
|
+
lines.push('If you don\'t already know which plan you hold: `dotmd hud --json` and read `.owned`. Do NOT use `dotmd plans --status in-session` — that lists every session\'s holdings, not just yours.');
|
|
77
81
|
lines.push('');
|
|
78
82
|
lines.push('The next session\'s `dotmd hud` (SessionStart hook) surfaces the pending prompt automatically.');
|
|
79
83
|
lines.push('');
|