@sharpee/if-domain 5.4.0 → 5.4.1

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/endings.d.ts CHANGED
@@ -1,19 +1,19 @@
1
1
  /**
2
2
  * @file Story ending contract (ADR-210 Platform Prerequisite 3).
3
3
  *
4
- * Purpose: bless the existing story-ending convention as a stable wire
5
- * contract — the event types stories/loaders emit when a story ends and the
6
- * world-state key the generic `isComplete()` reads. No behavior lives here;
7
- * emitters build the events with existing primitives.
4
+ * Purpose: bless the story-ending convention as a stable wire contract — the
5
+ * event types stories/loaders emit when a story ends, and the shape of the
6
+ * Ending the world carries (ADR-347 D2a). No behavior lives here; emitters
7
+ * build the events with existing primitives.
8
8
  *
9
- * Public interface: `StoryEndingEvents`, `STORY_ENDING_FLAG`,
10
- * `StoryEndingKind`, `IStoryEndingData`, `IStoryEnding`.
9
+ * Public interface: `StoryEndingEvents`, `StoryEndingKind`,
10
+ * `IStoryEndingData`, `IStoryEnding`.
11
11
  *
12
12
  * Owner context: `@sharpee/if-domain` — shared by the story-loader (emits on
13
13
  * `win`/`lose`), the engine/clients (react to endings), and transcript tests
14
14
  * (assert on the event types), so per the co-located wire-type rule it lives
15
- * here. INVARIANT: values are frozen contract — changing them breaks saved
16
- * games and golden transcripts; additions only.
15
+ * here. INVARIANT: the event-type values are frozen contract — changing them
16
+ * breaks golden transcripts; additions only.
17
17
  */
18
18
  /** Semantic event types emitted when a story ends. */
19
19
  export declare const StoryEndingEvents: {
@@ -24,17 +24,6 @@ export declare const StoryEndingEvents: {
24
24
  };
25
25
  /** How a story ended. */
26
26
  export type StoryEndingKind = 'victory' | 'defeat';
27
- /**
28
- * World-state key that once held the ending.
29
- *
30
- * **Superseded by {@link IStoryEnding}** (ADR-347 D2a), which is a real
31
- * `WorldModel` member rather than a key in an untyped state bag. Nothing
32
- * reads or writes this key any more — the constant survives only because
33
- * this file's values are frozen contract. Do not reach for it: an ending
34
- * recorded here is invisible to the engine, the scheduler and every
35
- * client.
36
- */
37
- export declare const STORY_ENDING_FLAG = "story.ending";
38
27
  /** Payload carried by a `StoryEndingEvents` event. */
39
28
  export interface IStoryEndingData {
40
29
  ending: StoryEndingKind;
package/endings.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"endings.d.ts","sourceRoot":"","sources":["../../../../../../work/sharpee/sharpee/packages/if-domain/src/endings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,sDAAsD;AACtD,eAAO,MAAM,iBAAiB;IAC5B,0EAA0E;;IAE1E,2EAA2E;;CAEnE,CAAC;AAEX,yBAAyB;AACzB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnD;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,eAAe,CAAC;IACxB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAE/B;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,gEAAgE;IAChE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"endings.d.ts","sourceRoot":"","sources":["../../../../../../work/sharpee/sharpee/packages/if-domain/src/endings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,sDAAsD;AACtD,eAAO,MAAM,iBAAiB;IAC5B,0EAA0E;;IAE1E,2EAA2E;;CAEnE,CAAC;AAEX,yBAAyB;AACzB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnD,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,eAAe,CAAC;IACxB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAE/B;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,gEAAgE;IAChE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB"}
package/endings.js CHANGED
@@ -2,22 +2,22 @@
2
2
  /**
3
3
  * @file Story ending contract (ADR-210 Platform Prerequisite 3).
4
4
  *
5
- * Purpose: bless the existing story-ending convention as a stable wire
6
- * contract — the event types stories/loaders emit when a story ends and the
7
- * world-state key the generic `isComplete()` reads. No behavior lives here;
8
- * emitters build the events with existing primitives.
5
+ * Purpose: bless the story-ending convention as a stable wire contract — the
6
+ * event types stories/loaders emit when a story ends, and the shape of the
7
+ * Ending the world carries (ADR-347 D2a). No behavior lives here; emitters
8
+ * build the events with existing primitives.
9
9
  *
10
- * Public interface: `StoryEndingEvents`, `STORY_ENDING_FLAG`,
11
- * `StoryEndingKind`, `IStoryEndingData`, `IStoryEnding`.
10
+ * Public interface: `StoryEndingEvents`, `StoryEndingKind`,
11
+ * `IStoryEndingData`, `IStoryEnding`.
12
12
  *
13
13
  * Owner context: `@sharpee/if-domain` — shared by the story-loader (emits on
14
14
  * `win`/`lose`), the engine/clients (react to endings), and transcript tests
15
15
  * (assert on the event types), so per the co-located wire-type rule it lives
16
- * here. INVARIANT: values are frozen contract — changing them breaks saved
17
- * games and golden transcripts; additions only.
16
+ * here. INVARIANT: the event-type values are frozen contract — changing them
17
+ * breaks golden transcripts; additions only.
18
18
  */
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.STORY_ENDING_FLAG = exports.StoryEndingEvents = void 0;
20
+ exports.StoryEndingEvents = void 0;
21
21
  /** Semantic event types emitted when a story ends. */
22
22
  exports.StoryEndingEvents = {
23
23
  /** The player has won (`win` in Chord; `story.victory` by convention). */
@@ -25,15 +25,4 @@ exports.StoryEndingEvents = {
25
25
  /** The player has lost (`lose` in Chord; `story.defeat` by convention). */
26
26
  DEFEAT: 'story.defeat',
27
27
  };
28
- /**
29
- * World-state key that once held the ending.
30
- *
31
- * **Superseded by {@link IStoryEnding}** (ADR-347 D2a), which is a real
32
- * `WorldModel` member rather than a key in an untyped state bag. Nothing
33
- * reads or writes this key any more — the constant survives only because
34
- * this file's values are frozen contract. Do not reach for it: an ending
35
- * recorded here is invisible to the engine, the scheduler and every
36
- * client.
37
- */
38
- exports.STORY_ENDING_FLAG = 'story.ending';
39
28
  //# sourceMappingURL=endings.js.map
package/endings.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"endings.js","sourceRoot":"","sources":["../../../../../../work/sharpee/sharpee/packages/if-domain/src/endings.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,sDAAsD;AACzC,QAAA,iBAAiB,GAAG;IAC/B,0EAA0E;IAC1E,OAAO,EAAE,eAAe;IACxB,2EAA2E;IAC3E,MAAM,EAAE,cAAc;CACd,CAAC;AAKX;;;;;;;;;GASG;AACU,QAAA,iBAAiB,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"endings.js","sourceRoot":"","sources":["../../../../../../work/sharpee/sharpee/packages/if-domain/src/endings.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,sDAAsD;AACzC,QAAA,iBAAiB,GAAG;IAC/B,0EAA0E;IAC1E,OAAO,EAAE,eAAe;IACxB,2EAA2E;IAC3E,MAAM,EAAE,cAAc;CACd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharpee/if-domain",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "Core domain model and contracts for Sharpee Interactive Fiction Platform",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -12,8 +12,8 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@sharpee/core": "^5.4.0",
16
- "@sharpee/text-blocks": "^5.4.0"
15
+ "@sharpee/core": "^5.4.1",
16
+ "@sharpee/text-blocks": "^5.4.1"
17
17
  },
18
18
  "keywords": [
19
19
  "interactive-fiction",