dotmd-cli 0.13.1 → 0.14.0

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.
Files changed (3) hide show
  1. package/README.md +51 -0
  2. package/bin/dotmd.mjs +43 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -41,6 +41,9 @@ eval "$(dotmd completions zsh)" # add to ~/.zshrc
41
41
  - **Stats** — health dashboard with staleness, completeness, audit coverage
42
42
  - **Graph** — visualize document relationships as text, Graphviz DOT, or JSON
43
43
  - **Deps** — dependency tree or overview of what blocks what
44
+ - **Unblocks** — impact analysis: what depends on a doc
45
+ - **Health** — plan velocity, aging, pipeline status
46
+ - **Glossary** — domain term lookup with related docs
44
47
  - **Lifecycle** — transition statuses, auto-archive with `git mv` and reference updates
45
48
  - **Doctor** — auto-fix broken refs, lint issues, date drift, and stale indexes in one pass
46
49
  - **Scaffold** — create new docs from templates (plan, ADR, RFC, audit, design)
@@ -113,6 +116,8 @@ dotmd coverage [--json] Metadata coverage report
113
116
  dotmd stats [--json] Doc health dashboard
114
117
  dotmd graph [--dot|--json] Visualize document relationships
115
118
  dotmd deps [file] Dependency tree or overview
119
+ dotmd unblocks <file> Show what depends on this doc
120
+ dotmd health [--json] Plan velocity, aging, and pipeline
116
121
  dotmd briefing Compact summary for session start
117
122
  dotmd context [--summarize] Full briefing (LLM-oriented)
118
123
  dotmd focus [status] Detailed view for one status group
@@ -125,6 +130,7 @@ dotmd pickup <file> Pick up a plan (in-session + print)
125
130
  dotmd finish <file> Finish a plan (done or active)
126
131
  dotmd status <file> <status> Transition document status
127
132
  dotmd archive <file> Archive (status + move + update refs)
133
+ dotmd bulk archive <files> Archive multiple files at once
128
134
  dotmd touch <file> Bump updated date
129
135
  dotmd touch --git Bulk-sync dates from git history
130
136
  dotmd doctor Auto-fix everything in one pass
@@ -135,6 +141,7 @@ dotmd migrate <f> <old> <new> Batch update a frontmatter field
135
141
  dotmd notion <sub> [db-id] Notion import/export/sync
136
142
  dotmd export [file] Export docs as md, html, or json
137
143
  dotmd summary <file> AI summary of a document
144
+ dotmd glossary <term> Look up domain terms + related docs
138
145
  dotmd watch [command] Re-run a command on file changes
139
146
  dotmd diff [file] Show changes since last updated date
140
147
  dotmd new <name> Create a new document from template
@@ -238,6 +245,27 @@ dotmd deps docs/plan-a.md --depth 2 # limit tree depth
238
245
  dotmd deps --json # machine-readable
239
246
  ```
240
247
 
248
+ ### Unblocks
249
+
250
+ ```bash
251
+ dotmd unblocks docs/plan-a.md # what depends on this plan
252
+ dotmd unblocks docs/plan-a.md --json # machine-readable
253
+ ```
254
+
255
+ ### Health
256
+
257
+ ```bash
258
+ dotmd health # plan pipeline and aging
259
+ dotmd health --json # machine-readable
260
+ ```
261
+
262
+ ### Briefing
263
+
264
+ ```bash
265
+ dotmd briefing # compact 5-10 line summary
266
+ dotmd briefing --json # machine-readable
267
+ ```
268
+
241
269
  ### AI Summaries
242
270
 
243
271
  ```bash
@@ -249,6 +277,14 @@ dotmd context --summarize # AI-enhanced briefing
249
277
 
250
278
  Uses a local model by default. Override with `--model <name>` or the `summarizeDoc` hook.
251
279
 
280
+ ### Glossary
281
+
282
+ ```bash
283
+ dotmd glossary "auth token" # look up a term
284
+ dotmd glossary --list # list all terms
285
+ dotmd glossary --json # machine-readable
286
+ ```
287
+
252
288
  ### Export
253
289
 
254
290
  ```bash
@@ -309,6 +345,21 @@ dotmd archive docs/old-plan.md # move + update refs + regen index
309
345
  dotmd archive docs/old-plan.md -n # preview
310
346
  ```
311
347
 
348
+ ### Bulk Archive
349
+
350
+ ```bash
351
+ dotmd bulk archive docs/old-a.md docs/old-b.md # archive multiple
352
+ dotmd bulk archive docs/old-*.md -n # preview
353
+ ```
354
+
355
+ ### Pickup & Finish
356
+
357
+ ```bash
358
+ dotmd pickup docs/plans/my-plan.md # set in-session + print content
359
+ dotmd finish docs/plans/my-plan.md # set done + bump date
360
+ dotmd finish docs/plans/my-plan.md active # back to active for more work
361
+ ```
362
+
312
363
  ### Touch
313
364
 
314
365
  ```bash
package/bin/dotmd.mjs CHANGED
@@ -15,23 +15,24 @@ const HELP = {
15
15
 
16
16
  View & Query:
17
17
  list [--verbose] [--json] List docs grouped by status (default command)
18
- json Full index as JSON
19
- briefing [--json] Compact summary for session start (5-10 lines)
18
+ briefing [--json] Compact summary for session start
20
19
  context [--summarize] [--json] Full briefing (LLM-oriented)
21
20
  focus [status] [--json] Detailed view for one status group
22
21
  query [filters] [--json] Filtered search (--status, --keyword, --stale, etc.)
23
- coverage [--json] Metadata coverage report
22
+ plans All plans (preset)
23
+ stale Stale docs (preset)
24
+ actionable Docs with next steps (preset)
25
+
26
+ Analyze:
24
27
  stats [--json] Doc health dashboard
28
+ health [--json] Plan velocity, aging, and pipeline health
29
+ coverage [--json] Metadata coverage report
25
30
  graph [--dot] [--json] Visualize document relationships
26
31
  deps [file] [--json] Dependency tree or overview
27
32
  unblocks <file> [--json] Show what completes when this doc ships
28
- health [--json] Plan velocity, aging, and pipeline health
29
- glossary <term> [--list] [--json] Look up domain terms + related docs
30
33
  diff [file] [--summarize] Show changes since last updated date
31
- plans List all plans (shortcut for query --type plan)
32
- stale List stale docs across all statuses
33
- actionable List docs with a next step ready to act on
34
34
  summary <file> [--json] AI summary of a document
35
+ glossary <term> [--list] [--json] Look up domain terms + related docs
35
36
 
36
37
  Validate & Fix:
37
38
  check [--fix] [--errors-only] [--json] Validate frontmatter and references
@@ -380,6 +381,38 @@ Supports all query flags (--status, --json, --sort, etc.)`,
380
381
 
381
382
  Shows active/ready docs that have a next_step defined.
382
383
  Supports all query flags (--status, --json, --sort, etc.)`,
384
+
385
+ unblocks: `dotmd unblocks <file> — show what completes when this doc ships
386
+
387
+ Shows documents that reference or depend on the given file.
388
+ Useful for impact analysis before archiving or changing a plan.
389
+
390
+ Options:
391
+ --json Output as JSON`,
392
+
393
+ health: `dotmd health — plan velocity, aging, and pipeline health
394
+
395
+ Shows plan pipeline status, active plan aging, recently archived
396
+ plans, and checklist progress. Plans-only view.
397
+
398
+ Options:
399
+ --json Output as JSON`,
400
+
401
+ glossary: `dotmd glossary <term> — look up domain terms and related docs
402
+
403
+ Searches the glossary table in your docs for matching terms.
404
+ Shows definition, related docs, and see-also entries.
405
+
406
+ Options:
407
+ --list List all glossary terms
408
+ --json Output as JSON`,
409
+
410
+ bulk: `dotmd bulk archive <f1> <f2> ... — archive multiple files at once
411
+
412
+ Archives each file: sets status to archived, moves to archive
413
+ directory, updates references, and regenerates the index.
414
+
415
+ Use --dry-run (-n) to preview changes without writing anything.`,
383
416
  };
384
417
 
385
418
  async function main() {
@@ -741,7 +774,8 @@ async function main() {
741
774
  // Unknown command — suggest closest match
742
775
  const allCommands = [
743
776
  'list', 'json', 'check', 'coverage', 'stats', 'graph', 'deps', 'briefing', 'context',
744
- 'focus', 'query', 'plans', 'stale', 'actionable', 'index', 'pickup', 'finish', 'status', 'archive', 'touch', 'doctor',
777
+ 'focus', 'query', 'plans', 'stale', 'actionable', 'index', 'pickup', 'finish', 'status', 'archive', 'bulk', 'touch', 'doctor',
778
+ 'unblocks', 'health', 'glossary',
745
779
  'fix-refs', 'lint', 'rename', 'migrate', 'notion', 'export', 'summary',
746
780
  'watch', 'diff', 'new', 'init', 'completions',
747
781
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotmd-cli",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "CLI for managing markdown documents with YAML frontmatter — index, query, validate, graph, export, Notion sync, AI summaries.",
5
5
  "type": "module",
6
6
  "license": "MIT",