@milehimikey/em 1.16.0 → 1.17.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 (99) hide show
  1. package/.claude/skills/event-modeling/SKILL.md +1 -1
  2. package/.claude/skills/event-modeling-conform/SKILL.md +3 -2
  3. package/.claude/skills/event-modeling-conform/reference/conform.md +7 -0
  4. package/.claude/skills/event-modeling-design/SKILL.md +1 -1
  5. package/.claude/skills/event-modeling-discover/SKILL.md +1 -1
  6. package/.claude/skills/event-modeling-engagement/SKILL.md +22 -5
  7. package/.claude/skills/event-modeling-engagement/reference/engagement.md +5 -4
  8. package/.claude/skills/event-modeling-implement/SKILL.md +1 -1
  9. package/.claude/skills/event-modeling-implement/reference/implement.md +10 -8
  10. package/.claude/skills/event-modeling-review/SKILL.md +1 -1
  11. package/.claude/skills/event-modeling-shared/reference/em-dsl.md +17 -5
  12. package/.claude/skills/event-modeling-shared/reference/slice-doc-schema.md +26 -13
  13. package/.claude-plugin/marketplace.json +2 -2
  14. package/dist/catalog/docJoin.d.ts +13 -5
  15. package/dist/catalog/docJoin.js +6 -1
  16. package/dist/catalog/docJoin.js.map +1 -1
  17. package/dist/catalog/signedBodyValidate.d.ts +7 -0
  18. package/dist/catalog/signedBodyValidate.js +29 -0
  19. package/dist/catalog/signedBodyValidate.js.map +1 -0
  20. package/dist/catalog/sliceDoc.d.ts +53 -7
  21. package/dist/catalog/sliceDoc.js +89 -10
  22. package/dist/catalog/sliceDoc.js.map +1 -1
  23. package/dist/catalog/sliceReadyValidate.d.ts +15 -2
  24. package/dist/catalog/sliceReadyValidate.js +19 -19
  25. package/dist/catalog/sliceReadyValidate.js.map +1 -1
  26. package/dist/cli/defer.d.ts +32 -17
  27. package/dist/cli/defer.js +100 -82
  28. package/dist/cli/defer.js.map +1 -1
  29. package/dist/cli/engagement.d.ts +46 -0
  30. package/dist/cli/engagement.js +133 -1
  31. package/dist/cli/engagement.js.map +1 -1
  32. package/dist/cli/engagementFoundation.d.ts +47 -0
  33. package/dist/cli/engagementFoundation.js +164 -0
  34. package/dist/cli/engagementFoundation.js.map +1 -0
  35. package/dist/cli/frontmatterSurgery.d.ts +5 -0
  36. package/dist/cli/frontmatterSurgery.js +15 -0
  37. package/dist/cli/frontmatterSurgery.js.map +1 -1
  38. package/dist/cli/ledgerCheck.d.ts +5 -1
  39. package/dist/cli/ledgerCheck.js +50 -20
  40. package/dist/cli/ledgerCheck.js.map +1 -1
  41. package/dist/cli/ratify.d.ts +14 -2
  42. package/dist/cli/ratify.js +34 -6
  43. package/dist/cli/ratify.js.map +1 -1
  44. package/dist/cli/refsCheck.d.ts +78 -0
  45. package/dist/cli/refsCheck.js +153 -0
  46. package/dist/cli/refsCheck.js.map +1 -0
  47. package/dist/cli/revise.d.ts +10 -3
  48. package/dist/cli/revise.js +36 -8
  49. package/dist/cli/revise.js.map +1 -1
  50. package/dist/cli/sliceConform.js +9 -0
  51. package/dist/cli/sliceConform.js.map +1 -1
  52. package/dist/cli/status.d.ts +5 -4
  53. package/dist/cli/status.js +3 -3
  54. package/dist/cli/status.js.map +1 -1
  55. package/dist/cli/upgrade.d.ts +1 -1
  56. package/dist/cli/upgrade.js +113 -3
  57. package/dist/cli/upgrade.js.map +1 -1
  58. package/dist/cli.js +151 -33
  59. package/dist/cli.js.map +1 -1
  60. package/dist/emit/engagementJson.d.ts +4 -1
  61. package/dist/emit/engagementJson.js +25 -1
  62. package/dist/emit/engagementJson.js.map +1 -1
  63. package/dist/emit/json.d.ts +1 -1
  64. package/dist/emit/json.js +4 -1
  65. package/dist/emit/json.js.map +1 -1
  66. package/dist/emit/ledgerJson.d.ts +1 -1
  67. package/dist/emit/ledgerJson.js +6 -1
  68. package/dist/emit/ledgerJson.js.map +1 -1
  69. package/dist/emit/refsJson.d.ts +4 -0
  70. package/dist/emit/refsJson.js +19 -0
  71. package/dist/emit/refsJson.js.map +1 -0
  72. package/dist/emit/validateJson.d.ts +2 -2
  73. package/dist/emit/validateJson.js +7 -2
  74. package/dist/emit/validateJson.js.map +1 -1
  75. package/dist/mcp/server.js +37 -7
  76. package/dist/mcp/server.js.map +1 -1
  77. package/dist/model/rules.d.ts +18 -1
  78. package/dist/model/rules.js +20 -3
  79. package/dist/model/rules.js.map +1 -1
  80. package/dist/parser/lexer.d.ts +7 -1
  81. package/dist/parser/lexer.js +13 -2
  82. package/dist/parser/lexer.js.map +1 -1
  83. package/dist/render/watch.d.ts +2 -2
  84. package/dist/render/watch.js +9 -5
  85. package/dist/render/watch.js.map +1 -1
  86. package/package.json +2 -2
  87. package/plugin/.claude-plugin/plugin.json +2 -2
  88. package/plugin/shared/reference/em-dsl.md +17 -5
  89. package/plugin/shared/reference/slice-doc-schema.md +26 -13
  90. package/plugin/skills/conform/SKILL.md +3 -2
  91. package/plugin/skills/conform/reference/conform.md +7 -0
  92. package/plugin/skills/design/SKILL.md +1 -1
  93. package/plugin/skills/discover/SKILL.md +1 -1
  94. package/plugin/skills/engagement/SKILL.md +22 -5
  95. package/plugin/skills/engagement/reference/engagement.md +5 -4
  96. package/plugin/skills/event-modeling/SKILL.md +1 -1
  97. package/plugin/skills/implement/SKILL.md +1 -1
  98. package/plugin/skills/implement/reference/implement.md +10 -8
  99. package/plugin/skills/review/SKILL.md +1 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: implement
3
- em-version: 1.16.0
3
+ em-version: 1.17.0
4
4
  description: >-
5
5
  Use when building a single ratified event-modeling slice (status: ready-to-implement) into
6
6
  merged, tested code — the one phase where the agent builds rather than facilitates. Gates on
@@ -160,12 +160,14 @@ undocumented ordering, a contradiction with adjacent code. The discipline:
160
160
  your recommendation. The human resolves it — at the model, where the resolution lands as an
161
161
  answered open question or a small ratified delta alongside your fix, so the decision is
162
162
  recorded instead of buried in an implementation diff.
163
- - **A question this build will not wait on is queued, never written into the doc** (GH #236). On a
164
- ratified doc the body is the signed spec: `em slice defer <model>.em <slice-key> "<question>"
165
- --until v<n> --decision "<what this version does>"` records it in `.event-modeling.md` as queued
166
- for `<key>@v<N+1>` and leaves the doc — and `ratifiedHash`, and `--slice-ready` — untouched. When
167
- the slice merges (`mark-implemented`) or is revised, the queued question is injected into the
168
- v<N+1> draft's Open Questions. Never add the `- [ ]` item to the ratified doc yourself.
163
+ - **A question this build will not wait on is deferred through `em slice defer`, never written
164
+ into the doc by hand** (GH #253). On a ratified doc the body is the signed spec, but a deferral
165
+ sits outside `ratifiedHash`: `em slice defer <model>.em <slice-key> "<question>" --until v<n>
166
+ --decision "<what this version does>"` appends the already-deferred `- [x]` item to the doc's
167
+ Open Questions — visible to the next reader — and `ratifiedHash` and `--slice-ready` stay
168
+ untouched. When the slice merges (`mark-implemented`) or is revised, the item is reopened as
169
+ `- [ ]` in the v<n> draft. Never add a `- [ ]` item to the ratified doc yourself: that does
170
+ move the hash.
169
171
  - **How a delta is ratified on a doc that never shipped** (it is `ready-to-implement` with
170
172
  `ratifiedBy` set) when the spec itself must change: once the human has answered, the doc changes
171
173
  by `em slice revise <model>.em <slice-key> --withdraw` (MIL-283: opens the next version as a
@@ -249,8 +251,8 @@ Prefer it over hand-editing the doc's frontmatter. It also writes the **shipped
249
251
  (`shippedVersion:`/`shippedRef:`/`shippedOn:`, MIL-284) — what every reader decides "has this
250
252
  shipped?" on since 1.15.0 — and, when the ratified doc deferred a question to the next version,
251
253
  **opens that version as a `draft` on the same write** (MIL-283: `status: draft`, `version` bumped,
252
- the question back to `- [ ]`; the version you built stays shipped) — questions queued with `em slice
253
- defer` while the doc was ratified (GH #236) are injected into that draft too. If it prints `opened draft
254
+ the question back to `- [ ]`; the version you built stays shipped) — a question deferred with `em
255
+ slice defer` while the doc was ratified (GH #253) is one of those. If it prints `opened draft
254
256
  v<N+1>`, say so in your report: the slice has known work, and a design session, not you, decides it.
255
257
 
256
258
  Then, if the project keeps a model README (from `../../../shared/templates/model-readme.md`), run
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: review
3
- em-version: 1.16.0
3
+ em-version: 1.17.0
4
4
  description: >-
5
5
  Use when starting em's live browser viewer (`em watch --serve`) so a team can watch a model
6
6
  update in real time, or facilitating a SCHEDULED stakeholder walkthrough that steps through