@milehimikey/em 1.22.0 → 1.22.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.
Files changed (62) hide show
  1. package/.claude/skills/event-modeling/SKILL.md +1 -1
  2. package/.claude/skills/event-modeling-conform/SKILL.md +1 -1
  3. package/.claude/skills/event-modeling-design/SKILL.md +5 -2
  4. package/.claude/skills/event-modeling-discover/SKILL.md +1 -1
  5. package/.claude/skills/event-modeling-engagement/SKILL.md +1 -1
  6. package/.claude/skills/event-modeling-implement/SKILL.md +1 -1
  7. package/.claude/skills/event-modeling-review/SKILL.md +1 -1
  8. package/.claude/skills/event-modeling-shared/reference/em-dsl.md +41 -0
  9. package/.claude-plugin/marketplace.json +2 -2
  10. package/dist/cli/api.d.ts +60 -17
  11. package/dist/cli/api.js +154 -34
  12. package/dist/cli/api.js.map +1 -1
  13. package/dist/cli/scopeInputs.js +2 -2
  14. package/dist/cli/scopeInputs.js.map +1 -1
  15. package/dist/emit/api.d.ts +18 -0
  16. package/dist/emit/api.js +117 -3
  17. package/dist/emit/api.js.map +1 -1
  18. package/dist/emit/apiSurfaceJson.d.ts +1 -1
  19. package/dist/emit/apiSurfaceJson.js +18 -1
  20. package/dist/emit/apiSurfaceJson.js.map +1 -1
  21. package/dist/emit/diffJson.d.ts +1 -1
  22. package/dist/emit/diffJson.js +20 -1
  23. package/dist/emit/diffJson.js.map +1 -1
  24. package/dist/emit/json.d.ts +42 -1
  25. package/dist/emit/json.js +65 -6
  26. package/dist/emit/json.js.map +1 -1
  27. package/dist/mcp/server.js +7 -6
  28. package/dist/mcp/server.js.map +1 -1
  29. package/dist/model/diff.d.ts +19 -1
  30. package/dist/model/diff.js +99 -0
  31. package/dist/model/diff.js.map +1 -1
  32. package/dist/model/model.d.ts +88 -4
  33. package/dist/model/model.js +98 -3
  34. package/dist/model/model.js.map +1 -1
  35. package/dist/model/refs.d.ts +4 -0
  36. package/dist/model/refs.js +35 -1
  37. package/dist/model/refs.js.map +1 -1
  38. package/dist/model/rules.d.ts +61 -0
  39. package/dist/model/rules.js +72 -0
  40. package/dist/model/rules.js.map +1 -1
  41. package/dist/model/validate.js +137 -4
  42. package/dist/model/validate.js.map +1 -1
  43. package/dist/parser/ast.d.ts +30 -0
  44. package/dist/parser/parser.js +67 -1
  45. package/dist/parser/parser.js.map +1 -1
  46. package/dist/render/sliceDiagram.js +6 -0
  47. package/dist/render/sliceDiagram.js.map +1 -1
  48. package/dist/render/storylineDiagram.js +6 -0
  49. package/dist/render/storylineDiagram.js.map +1 -1
  50. package/dist/system/adaptation.d.ts +5 -2
  51. package/dist/system/adaptation.js +5 -3
  52. package/dist/system/adaptation.js.map +1 -1
  53. package/package.json +2 -1
  54. package/plugin/.claude-plugin/plugin.json +2 -2
  55. package/plugin/shared/reference/em-dsl.md +41 -0
  56. package/plugin/skills/conform/SKILL.md +1 -1
  57. package/plugin/skills/design/SKILL.md +5 -2
  58. package/plugin/skills/discover/SKILL.md +1 -1
  59. package/plugin/skills/engagement/SKILL.md +1 -1
  60. package/plugin/skills/event-modeling/SKILL.md +1 -1
  61. package/plugin/skills/implement/SKILL.md +1 -1
  62. package/plugin/skills/review/SKILL.md +1 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: design
3
- em-version: 1.22.0
3
+ em-version: 1.22.2
4
4
  description: >-
5
5
  Use when structuring a draft event model into swimlanes and the four patterns (State Change,
6
6
  State View, Automation, Translation), evaluating a model's structural completeness, or writing
@@ -235,7 +235,10 @@ For each slice:
235
235
  1. Hold a Socratic deep-dive to fill every section of `${CLAUDE_PLUGIN_ROOT}/shared/templates/slice.md`:
236
236
  intent, trigger/actor,
237
237
  command fields (types & rules), event(s) + payload (mark immutable facts) — field names and
238
- types go into the `.em`, the doc's tables are generated from it — invariants
238
+ types go into the `.em`, the doc's tables are generated from it (on a `public` element, a
239
+ field's type must be the fixed scalar table, a declared `type`, a declared identity `scalar`,
240
+ or a declared `enum` — see `em-dsl.md`'s Strict public types/Identity scalars/Enums
241
+ sections) — invariants
239
242
  (give each a stable ID — see **Invariants live in the model** below), Given/When/Then scenarios (happy path + rule boundaries + edge cases),
240
243
  alternate/error flows (retries, idempotency, compensations), non-functional requirements
241
244
  (security/authz, PII/compliance, performance/SLA), read models affected, open questions. Park
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: discover
3
- em-version: 1.22.0
3
+ em-version: 1.22.2
4
4
  description: >-
5
5
  Use when starting a brand-new event model from scratch — greenfield discovery: brainstorming
6
6
  past-tense events, storyboarding the happy path, finding the commands and read models — or when
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: engagement
3
- em-version: 1.22.0
3
+ em-version: 1.22.2
4
4
  description: >-
5
5
  Use when leading an engagement: building a named set of ratified event-modeling slices
6
6
  (`em engagement`) into one independent PR per slice, each against main, by dispatching the
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: event-modeling
3
- em-version: 1.22.0
3
+ em-version: 1.22.2
4
4
  description: >-
5
5
  Use when the user runs `/em:event-modeling` (with or without a phase name), or wants to resume an
6
6
  event-modeling session without specifying which part of the process applies. Reads the model's
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: implement
3
- em-version: 1.22.0
3
+ em-version: 1.22.2
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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: review
3
- em-version: 1.22.0
3
+ em-version: 1.22.2
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