@thedecipherist/mdd 1.3.5 → 1.3.7

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.
@@ -232,6 +232,9 @@ Any service still failing → append entry to `known_issues` in the doc.
232
232
 
233
233
  ### Phase RO5 — Summary
234
234
 
235
+ **Update the runbook frontmatter** — write this field before displaying the summary:
236
+ - `last_synced: <today>`
237
+
235
238
  ```
236
239
  runop complete — <slug>
237
240
 
@@ -251,6 +251,10 @@ When all features are `complete`:
251
251
  2. User confirms → flip wave `status: complete` in both `waves/<slug>.md` AND the waves table in `initiatives/<slug>.md`.
252
252
  3. Recompute hashes for both files.
253
253
  4. If all waves in initiative are `complete` → ask: *"All waves done. Mark initiative complete? (yes / no)"*
254
+ - If yes → **Update initiative frontmatter** — write these fields now:
255
+ - `status: complete`
256
+ - `last_synced: <today>`
257
+ - `mdd_version: <current from mdd.md frontmatter>`
254
258
  5. Rebuild `.mdd/.startup.md`.
255
259
 
256
260
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thedecipherist/mdd",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "MDD — Manual-Driven Development workflow for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,12 +8,14 @@
8
8
  },
9
9
  "files": [
10
10
  "dist/",
11
- "commands/"
11
+ "commands/",
12
+ "scripts/"
12
13
  ],
13
14
  "scripts": {
14
15
  "build": "tsc",
15
16
  "dev": "tsc --watch",
16
- "prepublishOnly": "pnpm build"
17
+ "prepublishOnly": "pnpm build",
18
+ "postinstall": "node scripts/postinstall.mjs"
17
19
  },
18
20
  "keywords": [
19
21
  "mdd",
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from 'child_process';
3
+ import { join, dirname } from 'path';
4
+ import { fileURLToPath } from 'url';
5
+
6
+ const __dirname = dirname(fileURLToPath(import.meta.url));
7
+
8
+ // Only auto-deploy on global installs — skip during local dev `npm install`
9
+ if (process.env.npm_config_global === 'true') {
10
+ const result = spawnSync(
11
+ 'node',
12
+ [join(__dirname, '../dist/cli.js'), 'install'],
13
+ { stdio: 'inherit' }
14
+ );
15
+ process.exit(result.status ?? 0);
16
+ }