@milehimikey/em 1.22.1 → 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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: event-modeling
3
- em-version: 1.22.1
3
+ em-version: 1.22.2
4
4
  description: >-
5
5
  Use when the user runs `/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: event-modeling-conform
3
- em-version: 1.22.1
3
+ em-version: 1.22.2
4
4
  description: >-
5
5
  Use when checking a ratified event model (and its slice docs) for drift against the codebase
6
6
  that implements it — advisory only, never a gate, never an unprompted edit — or when walking
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: event-modeling-design
3
- em-version: 1.22.1
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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: event-modeling-discover
3
- em-version: 1.22.1
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: event-modeling-engagement
3
- em-version: 1.22.1
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-implement
3
- em-version: 1.22.1
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: event-modeling-review
3
- em-version: 1.22.1
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
@@ -369,6 +369,11 @@ enum Name { member, ... } # closed named value set, reusable from any
369
369
  - **Tags:** `@Persona` only on `ui`; `@Context` only on `event`. Undeclared tags auto-create a
370
370
  row. Multi-word tags need no quoting — the tag captures everything after `@` to end of line
371
371
  (`ui Ticket Queue @Customer Service` matches `persona Customer Service`).
372
+ - **Optional fields:** a trailing `?` on a field name marks it optional (it may be absent);
373
+ fields are required by default (MIL-237). `note?: text`, typeless `note?` and quoted
374
+ `"display name"?: text` all work, and the `?` is never part of the name. `em export` carries
375
+ `optional: true|false`, `em api generate` emits `name?: T`, the slice-doc table shows
376
+ Required `no`, and `em diff` / `em api check` report a required<->optional flip.
372
377
  - **`from "X"`** on views/automations declares the source(s); names are quoted, comma-separated.
373
378
  Matching is case-insensitive and whitespace-normalized. A `from` may never point at an event or
374
379
  view that first appears in a LATER slice (forward-only timeline — validation error).
@@ -1,9 +1,9 @@
1
1
  {
2
- "name": "em-1-22-1",
2
+ "name": "em-1-22-2",
3
3
  "owner": {
4
4
  "name": "Mike Key"
5
5
  },
6
- "description": "em v1.22.1: the Event Modeling skill bundle and MCP server as a Claude Code plugin.",
6
+ "description": "em v1.22.2: the Event Modeling skill bundle and MCP server as a Claude Code plugin.",
7
7
  "plugins": [
8
8
  {
9
9
  "name": "em",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milehimikey/em",
3
- "version": "1.22.1",
3
+ "version": "1.22.2",
4
4
  "description": "AI-friendly Event Modeling — a slice-first text DSL rendered to a strict, self-contained Graphviz grid (SVG/PNG)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "em",
3
- "version": "1.22.1",
3
+ "version": "1.22.2",
4
4
  "description": "Event Modeling with em: discover, design, implement, conform, review and engagement skills over a slice-first text DSL, plus the em MCP server.",
5
5
  "author": {
6
6
  "name": "Mike Key"
@@ -10,7 +10,7 @@
10
10
  "command": "npx",
11
11
  "args": [
12
12
  "-y",
13
- "@milehimikey/em@1.22.1",
13
+ "@milehimikey/em@1.22.2",
14
14
  "mcp"
15
15
  ]
16
16
  }
@@ -370,6 +370,11 @@ enum Name { member, ... } # closed named value set, reusable from any
370
370
  - **Tags:** `@Persona` only on `ui`; `@Context` only on `event`. Undeclared tags auto-create a
371
371
  row. Multi-word tags need no quoting — the tag captures everything after `@` to end of line
372
372
  (`ui Ticket Queue @Customer Service` matches `persona Customer Service`).
373
+ - **Optional fields:** a trailing `?` on a field name marks it optional (it may be absent);
374
+ fields are required by default (MIL-237). `note?: text`, typeless `note?` and quoted
375
+ `"display name"?: text` all work, and the `?` is never part of the name. `em export` carries
376
+ `optional: true|false`, `em api generate` emits `name?: T`, the slice-doc table shows
377
+ Required `no`, and `em diff` / `em api check` report a required<->optional flip.
373
378
  - **`from "X"`** on views/automations declares the source(s); names are quoted, comma-separated.
374
379
  Matching is case-insensitive and whitespace-normalized. A `from` may never point at an event or
375
380
  view that first appears in a LATER slice (forward-only timeline — validation error).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: conform
3
- em-version: 1.22.1
3
+ em-version: 1.22.2
4
4
  description: >-
5
5
  Use when checking a ratified event model (and its slice docs) for drift against the codebase
6
6
  that implements it — advisory only, never a gate, never an unprompted edit — or when walking
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: design
3
- em-version: 1.22.1
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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: discover
3
- em-version: 1.22.1
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.1
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.1
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.1
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.1
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