dotmd-cli 0.39.7 → 0.39.8
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/bin/dotmd.mjs +16 -10
- package/package.json +1 -1
package/bin/dotmd.mjs
CHANGED
|
@@ -581,10 +581,16 @@ Types and their default destinations:
|
|
|
581
581
|
\`<name>\` is slugified for the filename.
|
|
582
582
|
|
|
583
583
|
Body input (all built-in types — required for prompt, optional for plan/doc):
|
|
584
|
-
|
|
585
|
-
--message "<text>" Explicit inline body
|
|
584
|
+
@path Read body from a file (preferred for multi-line bodies)
|
|
586
585
|
- Read body from stdin (heredoc-friendly for agents)
|
|
587
|
-
|
|
586
|
+
--message "<text>" Explicit inline body
|
|
587
|
+
<text> Inline body as 3rd positional
|
|
588
|
+
|
|
589
|
+
Tip for agents: prefer \`@path\` or \`-\` for multi-line bodies. Inline bodies
|
|
590
|
+
put the entire content on the bash command line, which (a) breaks under shell
|
|
591
|
+
quoting for backticks/dollar-signs and (b) trips PreToolUse hooks that scan
|
|
592
|
+
command strings for forbidden literals (destructive-git patterns, etc.).
|
|
593
|
+
\`@/tmp/foo.md\` sidesteps both.
|
|
588
594
|
|
|
589
595
|
For plan/doc, a single-section body lands under the type's first scaffolded
|
|
590
596
|
section (e.g. \`## Problem\` for plans). If the body already authors
|
|
@@ -594,19 +600,19 @@ the title + your body is emitted — no duplicated empty outline below
|
|
|
594
600
|
|
|
595
601
|
Examples:
|
|
596
602
|
dotmd new plan auth-revamp
|
|
597
|
-
dotmd new
|
|
603
|
+
dotmd new prompt resume-foo @/tmp/draft.md
|
|
604
|
+
dotmd new prompt resume-foo - <<'EOF'
|
|
605
|
+
multi-line
|
|
606
|
+
prompt body
|
|
607
|
+
EOF
|
|
608
|
+
dotmd new prompt cleanup-tomorrow "look at remaining lint warnings"
|
|
598
609
|
dotmd new plan full-spec - <<'EOF'
|
|
599
610
|
## Problem
|
|
600
611
|
…
|
|
601
612
|
## Phases
|
|
602
613
|
…
|
|
603
614
|
EOF
|
|
604
|
-
dotmd new
|
|
605
|
-
dotmd new prompt resume-foo - <<'EOF'
|
|
606
|
-
multi-line
|
|
607
|
-
prompt body
|
|
608
|
-
EOF
|
|
609
|
-
dotmd new prompt from-file @/tmp/draft.md
|
|
615
|
+
dotmd new plan auth-revamp "Investigation findings before scoping…"
|
|
610
616
|
|
|
611
617
|
Other options:
|
|
612
618
|
--status <s> Set initial status (defaults to first valid status for the type)
|
package/package.json
CHANGED