dotmd-cli 0.64.1 → 0.64.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/README.md CHANGED
@@ -9,6 +9,7 @@ Index, query, validate, and lifecycle-manage any collection of `.md` files — p
9
9
  ```bash
10
10
  npm install -g dotmd-cli # global — use `dotmd` anywhere
11
11
  npm install -D dotmd-cli # project devDep — use via npm scripts
12
+ npx dotmd-cli init # try it without installing — scaffold a repo first
12
13
  # requires Node.js >= 20
13
14
  ```
14
15
 
@@ -27,6 +28,19 @@ The plugin bundles the hooks (`SessionStart`/`SubagentStart` priming, a `PreTool
27
28
 
28
29
  > **Upgrading to 0.57.0+:** per-repo `.claude/commands/{plans,docs,baton}.md` scaffolding is retired — that guidance now ships via the plugin's workflow skill and `/plans`, `/docs`, `/prompts`, `/baton` commands. On the next `dotmd hud` (SessionStart), dotmd removes those generated files (only banner-stamped `<!-- dotmd-generated -->` ones — your hand-authored command files are never touched). If you'd committed them, you'll see deletions to commit — that's expected. Run `claude plugin update dotmd@dotmd` to pick up `/baton`.
29
30
 
31
+ ### Updating
32
+
33
+ The CLI and the Claude Code plugin are versioned in lockstep but ship as separate artifacts, so upgrading one can leave the other behind. `dotmd update` keeps them aligned:
34
+
35
+ ```bash
36
+ dotmd update # update both: npm CLI + the plugin
37
+ dotmd update --check # report CLI vs plugin versions, change nothing (no network)
38
+ dotmd update --cli-only # just the npm CLI
39
+ dotmd update --plugin-only # just the plugin (what to run after a plain npm upgrade)
40
+ ```
41
+
42
+ `--plugin-only` is the usual fixup: after `npm i -g dotmd-cli@latest` the CLI is fresh but the plugin is stale, so run `dotmd update --plugin-only`, then restart the session (or `/reload-plugins`).
43
+
30
44
  ## Quick Start
31
45
 
32
46
  ```bash
package/bin/dotmd.mjs CHANGED
@@ -255,6 +255,7 @@ Create & Export:
255
255
 
256
256
  Setup:
257
257
  init Create starter config + docs directory
258
+ update [--check|--cli-only|--plugin-only] Update the CLI + Claude Code plugin (--check reports skew, no network)
258
259
  statuses [list|add|set|remove|migrate] Manage per-project status taxonomy
259
260
  help statuses Full status vocabulary + unstuck-actions + transitions
260
261
  watch [command] Re-run a command on file changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotmd-cli",
3
- "version": "0.64.1",
3
+ "version": "0.64.2",
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",
package/src/init.mjs CHANGED
@@ -190,9 +190,15 @@ function generateDetectedConfig(scan, rootPath) {
190
190
  lines.push('');
191
191
  }
192
192
 
193
- if (scan.surfaces.size > 0) {
193
+ if (scan.surfaces.size > 0 || scan.modules.size > 0) {
194
194
  lines.push('export const taxonomy = {');
195
- lines.push(` surfaces: [${[...scan.surfaces].sort().map(s => `'${s}'`).join(', ')}],`);
195
+ // Emit the full detected set so every existing doc passes — taxonomy
196
+ // enforcement only flags values outside the list, and the scan collected
197
+ // all of them. New surfaces/modules added later warn until appended here.
198
+ if (scan.surfaces.size > 0)
199
+ lines.push(` surfaces: [${[...scan.surfaces].sort().map(s => `'${s}'`).join(', ')}],`);
200
+ if (scan.modules.size > 0)
201
+ lines.push(` modules: [${[...scan.modules].sort().map(m => `'${m}'`).join(', ')}],`);
196
202
  lines.push('};');
197
203
  lines.push('');
198
204
  }