@sharpee/engine 2.0.0 → 2.1.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.
Files changed (47) hide show
  1. package/capability-dispatch-helper.d.ts +5 -3
  2. package/capability-dispatch-helper.d.ts.map +1 -1
  3. package/capability-dispatch-helper.js +6 -4
  4. package/capability-dispatch-helper.js.map +1 -1
  5. package/command-executor.d.ts.map +1 -1
  6. package/command-executor.js +2 -2
  7. package/command-executor.js.map +1 -1
  8. package/game-engine.d.ts +8 -0
  9. package/game-engine.d.ts.map +1 -1
  10. package/game-engine.js +62 -4
  11. package/game-engine.js.map +1 -1
  12. package/package.json +12 -12
  13. package/prose-pipeline/handlers/banner.d.ts +5 -6
  14. package/prose-pipeline/handlers/banner.d.ts.map +1 -1
  15. package/prose-pipeline/handlers/banner.js +4 -4
  16. package/prose-pipeline/handlers/banner.js.map +1 -1
  17. package/prose-pipeline/handlers/domain-message.d.ts +5 -0
  18. package/prose-pipeline/handlers/domain-message.d.ts.map +1 -1
  19. package/prose-pipeline/handlers/domain-message.js +14 -2
  20. package/prose-pipeline/handlers/domain-message.js.map +1 -1
  21. package/prose-pipeline/handlers/index.d.ts +1 -2
  22. package/prose-pipeline/handlers/index.d.ts.map +1 -1
  23. package/prose-pipeline/handlers/index.js +3 -5
  24. package/prose-pipeline/handlers/index.js.map +1 -1
  25. package/prose-pipeline/handlers/platform.d.ts +25 -0
  26. package/prose-pipeline/handlers/platform.d.ts.map +1 -0
  27. package/prose-pipeline/handlers/platform.js +48 -0
  28. package/prose-pipeline/handlers/platform.js.map +1 -0
  29. package/prose-pipeline/index.d.ts +1 -1
  30. package/prose-pipeline/index.d.ts.map +1 -1
  31. package/prose-pipeline/index.js +1 -3
  32. package/prose-pipeline/index.js.map +1 -1
  33. package/prose-pipeline/pipeline.d.ts.map +1 -1
  34. package/prose-pipeline/pipeline.js +11 -6
  35. package/prose-pipeline/pipeline.js.map +1 -1
  36. package/prose-pipeline/stages/filter.d.ts +9 -2
  37. package/prose-pipeline/stages/filter.d.ts.map +1 -1
  38. package/prose-pipeline/stages/filter.js +10 -3
  39. package/prose-pipeline/stages/filter.js.map +1 -1
  40. package/prose-pipeline/handlers/about.d.ts +0 -31
  41. package/prose-pipeline/handlers/about.d.ts.map +0 -1
  42. package/prose-pipeline/handlers/about.js +0 -50
  43. package/prose-pipeline/handlers/about.js.map +0 -1
  44. package/prose-pipeline/handlers/help.d.ts +0 -21
  45. package/prose-pipeline/handlers/help.d.ts.map +0 -1
  46. package/prose-pipeline/handlers/help.js +0 -68
  47. package/prose-pipeline/handlers/help.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGhE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/D,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGrE,YAAY,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGhE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/D,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGrE,YAAY,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
@@ -11,7 +11,7 @@
11
11
  * @see ADR-174 §Engine-internal prose pipeline
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.handleClientQuery = exports.handleCommandFailed = exports.handleImplicitTake = exports.tryProcessDomainEventMessage = exports.handleAudibilityHeard = exports.handleAboutDisplayed = exports.handleHelpDisplayed = exports.handleGameStarted = exports.handleGenericEvent = exports.handleGameMessage = exports.handleRevealed = exports.handleRoomDescription = exports.extractValue = exports.createBlocks = exports.createBlock = exports.getChainMetadata = exports.sortEventsForProse = exports.filterEvents = exports.PLATFORM_VOCABULARY_NAMES = exports.PLATFORM_VOCABULARY = exports.resolveClassName = exports.parseDecorations = exports.createRenderContextFactory = exports.createRenderWorld = exports.createProsePipeline = exports.ProsePipeline = void 0;
14
+ exports.handleClientQuery = exports.handleCommandFailed = exports.handleImplicitTake = exports.tryProcessDomainEventMessage = exports.handleAudibilityHeard = exports.handleGameStarted = exports.handleGenericEvent = exports.handleGameMessage = exports.handleRevealed = exports.handleRoomDescription = exports.extractValue = exports.createBlocks = exports.createBlock = exports.getChainMetadata = exports.sortEventsForProse = exports.filterEvents = exports.PLATFORM_VOCABULARY_NAMES = exports.PLATFORM_VOCABULARY = exports.resolveClassName = exports.parseDecorations = exports.createRenderContextFactory = exports.createRenderWorld = exports.createProsePipeline = exports.ProsePipeline = void 0;
15
15
  // Pipeline class and factory.
16
16
  var pipeline_1 = require("./pipeline");
17
17
  Object.defineProperty(exports, "ProsePipeline", { enumerable: true, get: function () { return pipeline_1.ProsePipeline; } });
@@ -44,8 +44,6 @@ Object.defineProperty(exports, "handleRevealed", { enumerable: true, get: functi
44
44
  Object.defineProperty(exports, "handleGameMessage", { enumerable: true, get: function () { return handlers_1.handleGameMessage; } });
45
45
  Object.defineProperty(exports, "handleGenericEvent", { enumerable: true, get: function () { return handlers_1.handleGenericEvent; } });
46
46
  Object.defineProperty(exports, "handleGameStarted", { enumerable: true, get: function () { return handlers_1.handleGameStarted; } });
47
- Object.defineProperty(exports, "handleHelpDisplayed", { enumerable: true, get: function () { return handlers_1.handleHelpDisplayed; } });
48
- Object.defineProperty(exports, "handleAboutDisplayed", { enumerable: true, get: function () { return handlers_1.handleAboutDisplayed; } });
49
47
  Object.defineProperty(exports, "handleAudibilityHeard", { enumerable: true, get: function () { return handlers_1.handleAudibilityHeard; } });
50
48
  Object.defineProperty(exports, "tryProcessDomainEventMessage", { enumerable: true, get: function () { return handlers_1.tryProcessDomainEventMessage; } });
51
49
  Object.defineProperty(exports, "handleImplicitTake", { enumerable: true, get: function () { return handlers_1.handleImplicitTake; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,8BAA8B;AAC9B,uCAAgE;AAAvD,yGAAA,aAAa,OAAA;AAAE,+GAAA,mBAAmB,OAAA;AAK3C,gEAAgE;AAChE,mDAK0B;AAJxB,mHAAA,iBAAiB,OAAA;AACjB,4HAAA,0BAA0B,OAAA;AAK5B,oEAAoE;AACpE,oEAAoE;AACpE,8BAA8B;AAC9B,6CAQuB;AAPrB,+GAAA,gBAAgB,OAAA;AAChB,+GAAA,gBAAgB,OAAA;AAChB,kHAAA,mBAAmB,OAAA;AACnB,wHAAA,yBAAyB,OAAA;AAM3B,oCAAoC;AACpC,0CAA+C;AAAtC,sGAAA,YAAY,OAAA;AACrB,sCAGuB;AAFrB,0GAAA,kBAAkB,OAAA;AAClB,wGAAA,gBAAgB,OAAA;AAElB,uCAAqE;AAA5D,uGAAA,WAAW,OAAA;AAAE,wGAAA,YAAY,OAAA;AAAE,wGAAA,YAAY,OAAA;AAShD,uCAaoB;AAZlB,iHAAA,qBAAqB,OAAA;AACrB,0GAAA,cAAc,OAAA;AACd,6GAAA,iBAAiB,OAAA;AACjB,8GAAA,kBAAkB,OAAA;AAClB,6GAAA,iBAAiB,OAAA;AACjB,+GAAA,mBAAmB,OAAA;AACnB,gHAAA,oBAAoB,OAAA;AACpB,iHAAA,qBAAqB,OAAA;AACrB,wHAAA,4BAA4B,OAAA;AAC5B,8GAAA,kBAAkB,OAAA;AAClB,+GAAA,mBAAmB,OAAA;AACnB,6GAAA,iBAAiB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,8BAA8B;AAC9B,uCAAgE;AAAvD,yGAAA,aAAa,OAAA;AAAE,+GAAA,mBAAmB,OAAA;AAK3C,gEAAgE;AAChE,mDAK0B;AAJxB,mHAAA,iBAAiB,OAAA;AACjB,4HAAA,0BAA0B,OAAA;AAK5B,oEAAoE;AACpE,oEAAoE;AACpE,8BAA8B;AAC9B,6CAQuB;AAPrB,+GAAA,gBAAgB,OAAA;AAChB,+GAAA,gBAAgB,OAAA;AAChB,kHAAA,mBAAmB,OAAA;AACnB,wHAAA,yBAAyB,OAAA;AAM3B,oCAAoC;AACpC,0CAA+C;AAAtC,sGAAA,YAAY,OAAA;AACrB,sCAGuB;AAFrB,0GAAA,kBAAkB,OAAA;AAClB,wGAAA,gBAAgB,OAAA;AAElB,uCAAqE;AAA5D,uGAAA,WAAW,OAAA;AAAE,wGAAA,YAAY,OAAA;AAAE,wGAAA,YAAY,OAAA;AAShD,uCAWoB;AAVlB,iHAAA,qBAAqB,OAAA;AACrB,0GAAA,cAAc,OAAA;AACd,6GAAA,iBAAiB,OAAA;AACjB,8GAAA,kBAAkB,OAAA;AAClB,6GAAA,iBAAiB,OAAA;AACjB,iHAAA,qBAAqB,OAAA;AACrB,wHAAA,4BAA4B,OAAA;AAC5B,8GAAA,kBAAkB,OAAA;AAClB,+GAAA,mBAAmB,OAAA;AACnB,6GAAA,iBAAiB,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;A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c,EACpB,MAAM,kBAAkB,CAAC;AAiB1B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/D;;;;;;;;GAQG;AACH,qBAAa,aAAc,YAAW,cAAc;IAClD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;IACpD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAiB;IACxC,wFAAwF;IACxF,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAyB;IAE1D;;;;;OAKG;gBACS,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,cAAc;IAUtE;;;;;;OAMG;IACH,uBAAuB,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI;IAI3D,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,UAAU,EAAE;IA2CnD;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;CAkDvB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,CAAC,EAAE,cAAc,GACrB,cAAc,CAEhB"}
@@ -32,8 +32,7 @@ const room_1 = require("./handlers/room");
32
32
  const revealed_1 = require("./handlers/revealed");
33
33
  const generic_1 = require("./handlers/generic");
34
34
  const game_1 = require("./handlers/game");
35
- const help_1 = require("./handlers/help");
36
- const about_1 = require("./handlers/about");
35
+ const platform_1 = require("./handlers/platform");
37
36
  const audibility_1 = require("./handlers/audibility");
38
37
  const domain_message_1 = require("./handlers/domain-message");
39
38
  const implicit_take_1 = require("./handlers/implicit-take");
@@ -131,10 +130,11 @@ class ProsePipeline {
131
130
  return (0, generic_1.handleGameMessage)(event, context);
132
131
  case 'if.event.revealed':
133
132
  return (0, revealed_1.handleRevealed)(event, context);
134
- case 'if.event.help_displayed':
135
- return (0, help_1.handleHelpDisplayed)(event, context);
136
- case 'if.event.about_displayed':
137
- return (0, about_1.handleAboutDisplayed)(event, context);
133
+ // if.event.help_displayed / if.event.about_displayed carry messageIds
134
+ // with lang-en-us templates (if.action.help.*, if.action.about.success)
135
+ // and render via tryProcessDomainEventMessage above; their dedicated
136
+ // handlers (help.text/about.text blocks MAIN_KEYS never routed) were
137
+ // removed 2026-07-02 (dungeo regression findings P3).
138
138
  case 'sound.audibility.heard':
139
139
  return (0, audibility_1.handleAudibilityHeard)(event, context);
140
140
  case 'if.event.implicit_take':
@@ -144,6 +144,11 @@ class ProsePipeline {
144
144
  case 'client.query':
145
145
  return (0, client_query_1.handleClientQuery)(event, context);
146
146
  default:
147
+ // Platform lifecycle events carry `payload` (not `data`) and render
148
+ // via the message registered under the event type itself.
149
+ if (event.type.startsWith('platform.')) {
150
+ return (0, platform_1.handlePlatformEvent)(event, context);
151
+ }
147
152
  return (0, generic_1.handleGenericEvent)(event, context);
148
153
  }
149
154
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/pipeline.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;AAmLH,kDAKC;AAlLD,4CAA+C;AAC/C,wCAAmD;AACnD,qDAK0B;AAG1B,0CAAwD;AACxD,kDAAqD;AACrD,gDAG4B;AAC5B,0CAAoD;AACpD,0CAAsD;AACtD,4CAAwD;AACxD,sDAA8D;AAC9D,8DAAyE;AACzE,4DAA8D;AAC9D,8DAAgE;AAChE,0DAA4D;AAI5D;;;;;;;;GAQG;AACH,MAAa,aAAa;IACP,gBAAgB,CAAmB;IACnC,KAAK,CAAkB;IACxC,wFAAwF;IACvE,gBAAgB,GAAsB,EAAE,CAAC;IAE1D;;;;;OAKG;IACH,YAAY,gBAAkC,EAAE,KAAsB;QACpE,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAA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C;YAE7C,KAAK,cAAc;gBACjB,OAAO,IAAA,gCAAiB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YAE3C;gBACE,OAAO,IAAA,4BAAkB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;CACF;AAhID,sCAgIC;AAED;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,gBAAkC,EAClC,KAAsB;IAEtB,OAAO,IAAI,aAAa,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/pipeline.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;AAuLH,kDAKC;AAtLD,4CAA+C;AAC/C,wCAAmD;AACnD,qDAK0B;AAG1B,0CAAwD;AACxD,kDAAqD;AACrD,gDAG4B;AAC5B,0CAAoD;AACpD,kDAA0D;AAC1D,sDAA8D;AAC9D,8DAAyE;AACzE,4DAA8D;AAC9D,8DAAgE;AAChE,0DAA4D;AAI5D;;;;;;;;GAQG;AACH,MAAa,aAAa;IACP,gBAAgB,CAAmB;IACnC,KAAK,CAAkB;IACxC,wFAAwF;IACvE,gBAAgB,GAAsB,EAAE,CAAC;IAE1D;;;;;OAKG;IACH,YAAY,gBAAkC,EAAE,KAAsB;QACpE,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;;;OAMG;IACH,uBAAuB,CAAC,WAA4B;QAClD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC1C,CAAC;IAED,WAAW,CAAC,MAAwB;QAClC,MAAM,Q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BAAkB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;CACF;AArID,sCAqIC;AAED;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,gBAAkC,EAClC,KAAsB;IAEtB,OAAO,IAAI,aAAa,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Event filtering stage — drops events that should not produce
3
- * text output (system.* and platform.*).
3
+ * text output (system.* and platform request-phase events).
4
4
  *
5
5
  * Public interface: `filterEvents`. Used internally by the prose
6
6
  * pipeline as the first per-turn stage.
@@ -17,7 +17,14 @@ import type { ISemanticEvent } from '@sharpee/core';
17
17
  *
18
18
  * Drops:
19
19
  * - `system.*` — internal turn-cycle bookkeeping the player never sees.
20
- * - `platform.*`save/restore/quit/restart requests and completions.
20
+ * - `platform.*_requested`request-phase platform events are control
21
+ * flow, never narration.
22
+ *
23
+ * Platform OUTCOME events (`platform.save_completed`,
24
+ * `platform.undo_failed`, ...) pass through to the handlers stage, where
25
+ * `handlePlatformEvent` renders the lang message registered under the
26
+ * event type (silent when none is registered — quit/restart outcomes stay
27
+ * quiet by default).
21
28
  *
22
29
  * Pass-through for everything else (domain events, action results,
23
30
  * lifecycle events, sound, etc.) — they reach the handlers stage.
@@ -1 +1 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/stages/filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAUvE"}
1
+ {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/stages/filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAUvE"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Event filtering stage — drops events that should not produce
4
- * text output (system.* and platform.*).
4
+ * text output (system.* and platform request-phase events).
5
5
  *
6
6
  * Public interface: `filterEvents`. Used internally by the prose
7
7
  * pipeline as the first per-turn stage.
@@ -19,7 +19,14 @@ exports.filterEvents = filterEvents;
19
19
  *
20
20
  * Drops:
21
21
  * - `system.*` — internal turn-cycle bookkeeping the player never sees.
22
- * - `platform.*`save/restore/quit/restart requests and completions.
22
+ * - `platform.*_requested`request-phase platform events are control
23
+ * flow, never narration.
24
+ *
25
+ * Platform OUTCOME events (`platform.save_completed`,
26
+ * `platform.undo_failed`, ...) pass through to the handlers stage, where
27
+ * `handlePlatformEvent` renders the lang message registered under the
28
+ * event type (silent when none is registered — quit/restart outcomes stay
29
+ * quiet by default).
23
30
  *
24
31
  * Pass-through for everything else (domain events, action results,
25
32
  * lifecycle events, sound, etc.) — they reach the handlers stage.
@@ -30,7 +37,7 @@ function filterEvents(events) {
30
37
  return false;
31
38
  }
32
39
  if (event.type.startsWith('platform.')) {
33
- return false;
40
+ return !event.type.endsWith('_requested');
34
41
  }
35
42
  return true;
36
43
  });
@@ -1 +1 @@
1
- {"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/stages/filter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAcH,oCAUC;AApBD;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAAC,MAAwB;IACnD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7B,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YACrC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;YACvC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/stages/filter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAqBH,oCAUC;AA3BD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,YAAY,CAAC,MAAwB;IACnD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7B,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YACrC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;YACvC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,31 +0,0 @@
1
- /**
2
- * About event handler — `if.event.about_displayed`.
3
- *
4
- * Produces the same structured banner as `handleGameStarted`, via the
5
- * shared `buildBannerBlocks` helper. The ABOUT action gives us a
6
- * flat `params: Record<string, string>` that mirrors `event.data.story`
7
- * — we project it into the `BannerStoryInfo` shape and reuse the
8
- * builder.
9
- *
10
- * Public interface: `handleAboutDisplayed`. Used by the pipeline's
11
- * event-type dispatch.
12
- *
13
- * Owner context: `@sharpee/engine` — internal prose pipeline.
14
- *
15
- * @see ADR-174 §Engine-internal prose pipeline (port from text-service)
16
- */
17
- import type { ITextBlock } from '@sharpee/text-blocks';
18
- import type { ISemanticEvent } from '@sharpee/core';
19
- import type { HandlerContext } from './types';
20
- /**
21
- * Handle `if.event.about_displayed` by showing the structured banner.
22
- *
23
- * Reads the about action's `params` payload (title, author, version,
24
- * description, engineVersion, buildDate, portedBy). The ABOUT action
25
- * does not currently pass `credits` directly; when present, the
26
- * builder falls back to `By {author}` for a single author-list line.
27
- * Stories that want richer ABOUT credit blocks should propagate
28
- * `credits` through the about action's params.
29
- */
30
- export declare function handleAboutDisplayed(event: ISemanticEvent, context: HandlerContext): ITextBlock[];
31
- //# sourceMappingURL=about.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"about.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/about.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAoBd"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /**
3
- * About event handler — `if.event.about_displayed`.
4
- *
5
- * Produces the same structured banner as `handleGameStarted`, via the
6
- * shared `buildBannerBlocks` helper. The ABOUT action gives us a
7
- * flat `params: Record<string, string>` that mirrors `event.data.story`
8
- * — we project it into the `BannerStoryInfo` shape and reuse the
9
- * builder.
10
- *
11
- * Public interface: `handleAboutDisplayed`. Used by the pipeline's
12
- * event-type dispatch.
13
- *
14
- * Owner context: `@sharpee/engine` — internal prose pipeline.
15
- *
16
- * @see ADR-174 §Engine-internal prose pipeline (port from text-service)
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.handleAboutDisplayed = handleAboutDisplayed;
20
- const banner_1 = require("./banner");
21
- /**
22
- * Handle `if.event.about_displayed` by showing the structured banner.
23
- *
24
- * Reads the about action's `params` payload (title, author, version,
25
- * description, engineVersion, buildDate, portedBy). The ABOUT action
26
- * does not currently pass `credits` directly; when present, the
27
- * builder falls back to `By {author}` for a single author-list line.
28
- * Stories that want richer ABOUT credit blocks should propagate
29
- * `credits` through the about action's params.
30
- */
31
- function handleAboutDisplayed(event, context) {
32
- const data = event.data;
33
- const params = (data?.params ?? {});
34
- const story = {
35
- title: stringOrUndef(params.title),
36
- version: stringOrUndef(params.version),
37
- buildDate: stringOrUndef(params.buildDate),
38
- description: stringOrUndef(params.description),
39
- author: stringOrUndef(params.author),
40
- credits: Array.isArray(params.credits)
41
- ? params.credits.filter((s) => typeof s === 'string' && s.length > 0)
42
- : undefined,
43
- };
44
- const engineVersion = stringOrUndef(params.engineVersion);
45
- return (0, banner_1.buildBannerBlocks)('about.text', story, engineVersion, context);
46
- }
47
- function stringOrUndef(value) {
48
- return typeof value === 'string' && value.length > 0 ? value : undefined;
49
- }
50
- //# sourceMappingURL=about.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"about.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/about.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAiBH,oDAuBC;AAnCD,qCAAmE;AAEnE;;;;;;;;;GASG;AACH,SAAgB,oBAAoB,CAClC,KAAqB,EACrB,OAAuB;IAEvB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAwD,CAAC;IAC5E,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAA4B,CAAC;IAE/D,MAAM,KAAK,GAAoB;QAC7B,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC;QAClC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;QACtC,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC;QAC1C,WAAW,EAAE,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC;QAC9C,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;YACpC,CAAC,CAAE,MAAM,CAAC,OAAqB,CAAC,MAAM,CAClC,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAC1D;YACH,CAAC,CAAC,SAAS;KACd,CAAC;IAEF,MAAM,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAE1D,OAAO,IAAA,0BAAiB,EAAC,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Help event handler — `if.event.help_displayed`.
3
- *
4
- * Produces the canonical "HOW TO PLAY INTERACTIVE FICTION" block.
5
- * Content based on the PR-IF "How to Play" reference card.
6
- *
7
- * Public interface: `handleHelpDisplayed`. Used by the pipeline's
8
- * event-type dispatch.
9
- *
10
- * Owner context: `@sharpee/engine` — internal prose pipeline.
11
- *
12
- * @see ADR-174 §Engine-internal prose pipeline (port from text-service)
13
- */
14
- import type { ITextBlock } from '@sharpee/text-blocks';
15
- import type { ISemanticEvent } from '@sharpee/core';
16
- import type { HandlerContext } from './types';
17
- /**
18
- * Handle `if.event.help_displayed` to produce the help text block.
19
- */
20
- export declare function handleHelpDisplayed(_event: ISemanticEvent, _context: HandlerContext): ITextBlock[];
21
- //# sourceMappingURL=help.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/help.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAgD9C;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,cAAc,GACvB,UAAU,EAAE,CAEd"}
@@ -1,68 +0,0 @@
1
- "use strict";
2
- /**
3
- * Help event handler — `if.event.help_displayed`.
4
- *
5
- * Produces the canonical "HOW TO PLAY INTERACTIVE FICTION" block.
6
- * Content based on the PR-IF "How to Play" reference card.
7
- *
8
- * Public interface: `handleHelpDisplayed`. Used by the pipeline's
9
- * event-type dispatch.
10
- *
11
- * Owner context: `@sharpee/engine` — internal prose pipeline.
12
- *
13
- * @see ADR-174 §Engine-internal prose pipeline (port from text-service)
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.handleHelpDisplayed = handleHelpDisplayed;
17
- const assemble_1 = require("../assemble");
18
- const HELP_TEXT = `HOW TO PLAY INTERACTIVE FICTION
19
-
20
- Interactive fiction is a conversation between you and the game. You type commands; the game describes what happens.
21
-
22
- MOVING AROUND
23
- Type a direction to move: NORTH (N), SOUTH (S), EAST (E), WEST (W),
24
- NORTHEAST (NE), NORTHWEST (NW), SOUTHEAST (SE), SOUTHWEST (SW),
25
- UP (U), DOWN (D), IN, OUT, ENTER, EXIT.
26
-
27
- LOOKING AND EXAMINING
28
- LOOK (L) - Describe your surroundings.
29
- EXAMINE (X) something - Look closely at an object.
30
-
31
- INTERACTING WITH OBJECTS
32
- TAKE (GET) something - Pick it up.
33
- DROP something - Put it down.
34
- OPEN / CLOSE something - Open or close a door, container, etc.
35
- PUT something IN / ON something - Place an object in a container or on a surface.
36
- LOCK / UNLOCK something WITH something - Lock or unlock with a key.
37
- TURN ON / TURN OFF something - Operate a switch or device.
38
- WEAR / TAKE OFF something - Put on or remove clothing.
39
- EAT / DRINK something - Consume food or drink.
40
- READ something - Read text on an object.
41
- SEARCH something - Search a container or area.
42
- LOOK UNDER / LOOK BEHIND something - Check hidden spots.
43
-
44
- TALKING TO CHARACTERS
45
- TALK TO someone - Start a conversation.
46
- ASK someone ABOUT something - Ask about a topic.
47
- TELL someone ABOUT something - Tell them something.
48
- GIVE something TO someone - Hand over an item.
49
- SHOW something TO someone - Display an item.
50
-
51
- OTHER COMMANDS
52
- INVENTORY (I) - List what you're carrying.
53
- WAIT (Z) - Let time pass.
54
- AGAIN (G) - Repeat your last command.
55
- SCORE - Check your progress.
56
- SAVE / RESTORE - Save or load your game.
57
- UNDO - Take back your last move.
58
- QUIT - End the game.
59
- ABOUT - Information about this game.
60
-
61
- When in doubt, EXAMINE everything.`;
62
- /**
63
- * Handle `if.event.help_displayed` to produce the help text block.
64
- */
65
- function handleHelpDisplayed(_event, _context) {
66
- return (0, assemble_1.createBlocks)('help.text', HELP_TEXT);
67
- }
68
- //# sourceMappingURL=help.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/help.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAuDH,kDAKC;AAvDD,0CAA2C;AAE3C,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA2CiB,CAAC;AAEpC;;GAEG;AACH,SAAgB,mBAAmB,CACjC,MAAsB,EACtB,QAAwB;IAExB,OAAO,IAAA,uBAAY,EAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAC9C,CAAC"}