@sharpee/engine 3.1.0 → 3.5.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 (126) hide show
  1. package/action-context-factory.d.ts +9 -2
  2. package/action-context-factory.d.ts.map +1 -1
  3. package/action-context-factory.js +15 -5
  4. package/action-context-factory.js.map +1 -1
  5. package/command-executor.d.ts +10 -4
  6. package/command-executor.d.ts.map +1 -1
  7. package/command-executor.js +27 -20
  8. package/command-executor.js.map +1 -1
  9. package/game-engine.d.ts +49 -11
  10. package/game-engine.d.ts.map +1 -1
  11. package/game-engine.js +133 -87
  12. package/game-engine.js.map +1 -1
  13. package/index.d.ts +20 -18
  14. package/index.d.ts.map +1 -1
  15. package/index.js +26 -23
  16. package/index.js.map +1 -1
  17. package/language-provider-interface.d.ts +1 -1
  18. package/language-provider-interface.d.ts.map +1 -1
  19. package/narrative/index.d.ts +1 -1
  20. package/narrative/index.d.ts.map +1 -1
  21. package/narrative/index.js +3 -3
  22. package/narrative/index.js.map +1 -1
  23. package/package.json +12 -12
  24. package/platform-operations.d.ts +2 -2
  25. package/platform-operations.d.ts.map +1 -1
  26. package/platform-operations.js +4 -4
  27. package/platform-operations.js.map +1 -1
  28. package/prose-pipeline/assemble.js +2 -2
  29. package/prose-pipeline/assemble.js.map +1 -1
  30. package/prose-pipeline/decorations/index.d.ts +4 -4
  31. package/prose-pipeline/decorations/index.d.ts.map +1 -1
  32. package/prose-pipeline/decorations/index.js +7 -7
  33. package/prose-pipeline/decorations/index.js.map +1 -1
  34. package/prose-pipeline/decorations/parser.d.ts +1 -1
  35. package/prose-pipeline/decorations/parser.d.ts.map +1 -1
  36. package/prose-pipeline/decorations/parser.js +6 -6
  37. package/prose-pipeline/decorations/parser.js.map +1 -1
  38. package/prose-pipeline/decorations/resolver.js +2 -2
  39. package/prose-pipeline/decorations/resolver.js.map +1 -1
  40. package/prose-pipeline/handlers/audibility.d.ts +1 -1
  41. package/prose-pipeline/handlers/audibility.d.ts.map +1 -1
  42. package/prose-pipeline/handlers/audibility.js +7 -7
  43. package/prose-pipeline/handlers/audibility.js.map +1 -1
  44. package/prose-pipeline/handlers/banner.d.ts +1 -1
  45. package/prose-pipeline/handlers/banner.d.ts.map +1 -1
  46. package/prose-pipeline/handlers/banner.js +8 -8
  47. package/prose-pipeline/handlers/banner.js.map +1 -1
  48. package/prose-pipeline/handlers/client-query.d.ts +1 -1
  49. package/prose-pipeline/handlers/client-query.d.ts.map +1 -1
  50. package/prose-pipeline/handlers/client-query.js +2 -2
  51. package/prose-pipeline/handlers/client-query.js.map +1 -1
  52. package/prose-pipeline/handlers/command-failed.d.ts +1 -1
  53. package/prose-pipeline/handlers/command-failed.d.ts.map +1 -1
  54. package/prose-pipeline/handlers/command-failed.js +4 -4
  55. package/prose-pipeline/handlers/command-failed.js.map +1 -1
  56. package/prose-pipeline/handlers/domain-message.d.ts +1 -1
  57. package/prose-pipeline/handlers/domain-message.d.ts.map +1 -1
  58. package/prose-pipeline/handlers/domain-message.js +15 -8
  59. package/prose-pipeline/handlers/domain-message.js.map +1 -1
  60. package/prose-pipeline/handlers/game.d.ts +1 -1
  61. package/prose-pipeline/handlers/game.d.ts.map +1 -1
  62. package/prose-pipeline/handlers/game.js +2 -2
  63. package/prose-pipeline/handlers/game.js.map +1 -1
  64. package/prose-pipeline/handlers/generic.d.ts +1 -1
  65. package/prose-pipeline/handlers/generic.d.ts.map +1 -1
  66. package/prose-pipeline/handlers/generic.js +12 -12
  67. package/prose-pipeline/handlers/generic.js.map +1 -1
  68. package/prose-pipeline/handlers/implicit-take.d.ts +1 -1
  69. package/prose-pipeline/handlers/implicit-take.d.ts.map +1 -1
  70. package/prose-pipeline/handlers/implicit-take.js +2 -2
  71. package/prose-pipeline/handlers/implicit-take.js.map +1 -1
  72. package/prose-pipeline/handlers/index.d.ts +11 -11
  73. package/prose-pipeline/handlers/index.d.ts.map +1 -1
  74. package/prose-pipeline/handlers/index.js +21 -21
  75. package/prose-pipeline/handlers/index.js.map +1 -1
  76. package/prose-pipeline/handlers/platform.d.ts +1 -1
  77. package/prose-pipeline/handlers/platform.d.ts.map +1 -1
  78. package/prose-pipeline/handlers/platform.js +5 -5
  79. package/prose-pipeline/handlers/platform.js.map +1 -1
  80. package/prose-pipeline/handlers/revealed.d.ts +1 -1
  81. package/prose-pipeline/handlers/revealed.d.ts.map +1 -1
  82. package/prose-pipeline/handlers/revealed.js +4 -4
  83. package/prose-pipeline/handlers/revealed.js.map +1 -1
  84. package/prose-pipeline/handlers/room.d.ts +1 -1
  85. package/prose-pipeline/handlers/room.d.ts.map +1 -1
  86. package/prose-pipeline/handlers/room.js +9 -9
  87. package/prose-pipeline/handlers/room.js.map +1 -1
  88. package/prose-pipeline/handlers/types.d.ts +7 -1
  89. package/prose-pipeline/handlers/types.d.ts.map +1 -1
  90. package/prose-pipeline/index.d.ts +11 -9
  91. package/prose-pipeline/index.d.ts.map +1 -1
  92. package/prose-pipeline/index.js +36 -32
  93. package/prose-pipeline/index.js.map +1 -1
  94. package/prose-pipeline/phrase-render.d.ts +28 -1
  95. package/prose-pipeline/phrase-render.d.ts.map +1 -1
  96. package/prose-pipeline/phrase-render.js +29 -2
  97. package/prose-pipeline/phrase-render.js.map +1 -1
  98. package/prose-pipeline/pipeline.d.ts +4 -5
  99. package/prose-pipeline/pipeline.d.ts.map +1 -1
  100. package/prose-pipeline/pipeline.js +31 -31
  101. package/prose-pipeline/pipeline.js.map +1 -1
  102. package/prose-pipeline/render-context.d.ts +2 -0
  103. package/prose-pipeline/render-context.d.ts.map +1 -1
  104. package/prose-pipeline/render-context.js.map +1 -1
  105. package/prose-pipeline/stages/index.d.ts +2 -2
  106. package/prose-pipeline/stages/index.d.ts.map +1 -1
  107. package/prose-pipeline/stages/index.js +5 -5
  108. package/prose-pipeline/stages/index.js.map +1 -1
  109. package/save-restore-service.d.ts +9 -3
  110. package/save-restore-service.d.ts.map +1 -1
  111. package/save-restore-service.js +15 -1
  112. package/save-restore-service.js.map +1 -1
  113. package/sound/dispatcher.js +2 -2
  114. package/sound/dispatcher.js.map +1 -1
  115. package/sound/index.d.ts +2 -2
  116. package/sound/index.d.ts.map +1 -1
  117. package/sound/index.js +6 -6
  118. package/sound/index.js.map +1 -1
  119. package/story.d.ts +10 -3
  120. package/story.d.ts.map +1 -1
  121. package/story.js +2 -2
  122. package/story.js.map +1 -1
  123. package/test-helpers/mock-prose-pipeline.d.ts +1 -1
  124. package/test-helpers/mock-prose-pipeline.d.ts.map +1 -1
  125. package/turn-event-processor.d.ts +1 -1
  126. package/turn-event-processor.d.ts.map +1 -1
@@ -14,8 +14,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.handleGameMessage = handleGameMessage;
15
15
  exports.handleGenericEvent = handleGenericEvent;
16
16
  const text_blocks_1 = require("@sharpee/text-blocks");
17
- const assemble_1 = require("../assemble");
18
- const phrase_render_1 = require("../phrase-render");
17
+ const assemble_js_1 = require("../assemble.js");
18
+ const phrase_render_js_1 = require("../phrase-render.js");
19
19
  /**
20
20
  * Handle `game.message` events.
21
21
  */
@@ -26,21 +26,21 @@ function handleGameMessage(event, context) {
26
26
  // event-data top level rather than under `params` (the same shape
27
27
  // handleGenericEvent accepts). Fall back to `data` so those bind.
28
28
  const params = (data.params ?? data);
29
- if ((0, phrase_render_1.phraseAvailable)(context)) {
30
- const blocks = (0, phrase_render_1.renderViaPhrase)(context, data.messageId, params, text_blocks_1.BLOCK_KEYS.GAME_MESSAGE);
29
+ if ((0, phrase_render_js_1.phraseAvailable)(context)) {
30
+ const blocks = (0, phrase_render_js_1.renderViaPhrase)(context, data.messageId, params, text_blocks_1.BLOCK_KEYS.GAME_MESSAGE);
31
31
  if (blocks)
32
32
  return blocks;
33
33
  }
34
34
  else {
35
35
  const message = context.languageProvider.getMessage(data.messageId, params);
36
36
  if (message && message !== data.messageId) {
37
- return (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.GAME_MESSAGE, message);
37
+ return (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.GAME_MESSAGE, message);
38
38
  }
39
39
  }
40
40
  }
41
41
  const text = data.text ?? data.message;
42
42
  if (text) {
43
- return (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.GAME_MESSAGE, text);
43
+ return (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.GAME_MESSAGE, text);
44
44
  }
45
45
  return [];
46
46
  }
@@ -59,18 +59,18 @@ function handleGenericEvent(event, context) {
59
59
  if (data.message || data.text) {
60
60
  const text = data.message ?? data.text ?? '';
61
61
  if (text) {
62
- return (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, text);
62
+ return (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, text);
63
63
  }
64
64
  }
65
65
  if (context.languageProvider) {
66
66
  const params = data;
67
67
  // Phrase path: try the event type as a template key, then the messageId.
68
- if ((0, phrase_render_1.phraseAvailable)(context)) {
69
- const byType = (0, phrase_render_1.renderViaPhrase)(context, event.type, params, text_blocks_1.BLOCK_KEYS.ACTION_RESULT);
68
+ if ((0, phrase_render_js_1.phraseAvailable)(context)) {
69
+ const byType = (0, phrase_render_js_1.renderViaPhrase)(context, event.type, params, text_blocks_1.BLOCK_KEYS.ACTION_RESULT);
70
70
  if (byType)
71
71
  return byType;
72
72
  if (data.messageId) {
73
- const byId = (0, phrase_render_1.renderViaPhrase)(context, data.messageId, params, text_blocks_1.BLOCK_KEYS.ACTION_RESULT);
73
+ const byId = (0, phrase_render_js_1.renderViaPhrase)(context, data.messageId, params, text_blocks_1.BLOCK_KEYS.ACTION_RESULT);
74
74
  if (byId)
75
75
  return byId;
76
76
  }
@@ -78,12 +78,12 @@ function handleGenericEvent(event, context) {
78
78
  }
79
79
  const message = context.languageProvider.getMessage(event.type, data);
80
80
  if (message && message !== event.type) {
81
- return (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, message);
81
+ return (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, message);
82
82
  }
83
83
  if (data.messageId) {
84
84
  const msgFromId = context.languageProvider.getMessage(data.messageId, data);
85
85
  if (msgFromId && msgFromId !== data.messageId) {
86
- return (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, msgFromId);
86
+ return (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, msgFromId);
87
87
  }
88
88
  }
89
89
  }
@@ -1 +1 @@
1
- {"version":3,"file":"generic.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/generic.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAmBH,8CA4BC;AASD,gDA6CC;AAlGD,sDAAkD;AAGlD,0CAA2C;AAC3C,oDAAoE;AASpE;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,KAAqB,EACrB,OAAuB;IAEvB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAuB,CAAC;IAE3C,IAAI,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC/C,yEAAyE;QACzE,kEAAkE;QAClE,kEAAkE;QAClE,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAA4B,CAAC;QAChE,IAAI,IAAA,+BAAe,EAAC,OAAO,CAAC,EAAE,CAAC;YAC7B,MAAM,MAAM,GAAG,IAAA,+BAAe,EAAC,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,wBAAU,CAAC,YAAY,CAAC,CAAC;YACzF,IAAI,MAAM;gBAAE,OAAO,MAAM,CAAC;QAC5B,CAAC;aAAM,CAAC;YACN,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAC5E,IAAI,OAAO,IAAI,OAAO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Ae,EAAC,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,wBAAU,CAAC,aAAa,CAAC,CAAC;gBACxF,IAAI,IAAI;oBAAE,OAAO,IAAI,CAAC;YACxB,CAAC;YACD,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtE,IAAI,OAAO,IAAI,OAAO,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC;YACtC,OAAO,IAAA,uBAAY,EAAC,wBAAU,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACzD,CAAC;QAED,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACnB,MAAM,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAC5E,IAAI,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC9C,OAAO,IAAA,uBAAY,EAAC,wBAAU,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;YAC3D,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"}
1
+ {"version":3,"file":"generic.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/generic.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAmBH,8CA4BC;AASD,gDA6CC;AAlGD,sDAAkD;AAGlD,gDAA8C;AAC9C,0DAAuE;AASvE;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,KAAqB,EACrB,OAAuB;IAEvB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAuB,CAAC;IAE3C,IAAI,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC/C,yEAAyE;QACzE,kEAAkE;QAClE,kEAAkE;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,CAAC;AACZ,CAAC"}
@@ -15,6 +15,6 @@
15
15
  */
16
16
  import type { ITextBlock } from '@sharpee/text-blocks';
17
17
  import type { ISemanticEvent } from '@sharpee/core';
18
- import type { HandlerContext } from './types';
18
+ import type { HandlerContext } from './types.js';
19
19
  export declare function handleImplicitTake(event: ISemanticEvent, _context: HandlerContext): ITextBlock[];
20
20
  //# sourceMappingURL=implicit-take.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"implicit-take.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/implicit-take.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAO9C,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,cAAc,GACvB,UAAU,EAAE,CAId"}
1
+ {"version":3,"file":"implicit-take.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/implicit-take.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAOjD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,cAAc,GACvB,UAAU,EAAE,CAId"}
@@ -17,10 +17,10 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.handleImplicitTake = handleImplicitTake;
19
19
  const text_blocks_1 = require("@sharpee/text-blocks");
20
- const assemble_1 = require("../assemble");
20
+ const assemble_js_1 = require("../assemble.js");
21
21
  function handleImplicitTake(event, _context) {
22
22
  const data = event.data;
23
23
  const itemName = data?.itemName || 'something';
24
- return [(0, assemble_1.createBlock)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, `(first taking the ${itemName})`)];
24
+ return [(0, assemble_js_1.createBlock)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, `(first taking the ${itemName})`)];
25
25
  }
26
26
  //# sourceMappingURL=implicit-take.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"implicit-take.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/implicit-take.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAYH,gDAOC;AAhBD,sDAAkD;AAGlD,0CAA0C;AAM1C,SAAgB,kBAAkB,CAChC,KAAqB,EACrB,QAAwB;IAExB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAwB,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAI,EAAE,QAAQ,IAAI,WAAW,CAAC;IAC/C,OAAO,CAAC,IAAA,sBAAW,EAAC,wBAAU,CAAC,aAAa,EAAE,qBAAqB,QAAQ,GAAG,CAAC,CAAC,CAAC;AACnF,CAAC"}
1
+ {"version":3,"file":"implicit-take.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/implicit-take.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAYH,gDAOC;AAhBD,sDAAkD;AAGlD,gDAA6C;AAM7C,SAAgB,kBAAkB,CAChC,KAAqB,EACrB,QAAwB;IAExB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAwB,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAI,EAAE,QAAQ,IAAI,WAAW,CAAC;IAC/C,OAAO,CAAC,IAAA,yBAAW,EAAC,wBAAU,CAAC,aAAa,EAAE,qBAAqB,QAAQ,GAAG,CAAC,CAAC,CAAC;AACnF,CAAC"}
@@ -9,15 +9,15 @@
9
9
  *
10
10
  * @see ADR-174 §Engine-internal prose pipeline
11
11
  */
12
- export type { EventHandler, HandlerContext, ChainableEventData, GenericEventData, } from './types';
13
- export { handleRoomDescription } from './room';
14
- export { handleRevealed } from './revealed';
15
- export { handleGameMessage, handleGenericEvent } from './generic';
16
- export { handleGameStarted } from './game';
17
- export { handleAudibilityHeard } from './audibility';
18
- export { handlePlatformEvent } from './platform';
19
- export { tryProcessDomainEventMessage } from './domain-message';
20
- export { handleImplicitTake } from './implicit-take';
21
- export { handleCommandFailed } from './command-failed';
22
- export { handleClientQuery } from './client-query';
12
+ export type { EventHandler, HandlerContext, ChainableEventData, GenericEventData, } from './types.js';
13
+ export { handleRoomDescription } from './room.js';
14
+ export { handleRevealed } from './revealed.js';
15
+ export { handleGameMessage, handleGenericEvent } from './generic.js';
16
+ export { handleGameStarted } from './game.js';
17
+ export { handleAudibilityHeard } from './audibility.js';
18
+ export { handlePlatformEvent } from './platform.js';
19
+ export { tryProcessDomainEventMessage } from './domain-message.js';
20
+ export { handleImplicitTake } from './implicit-take.js';
21
+ export { handleCommandFailed } from './command-failed.js';
22
+ export { handleClientQuery } from './client-query.js';
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,YAAY,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,YAAY,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -13,26 +13,26 @@
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.handleClientQuery = exports.handleCommandFailed = exports.handleImplicitTake = exports.tryProcessDomainEventMessage = exports.handlePlatformEvent = exports.handleAudibilityHeard = exports.handleGameStarted = exports.handleGenericEvent = exports.handleGameMessage = exports.handleRevealed = exports.handleRoomDescription = void 0;
15
15
  // Type-keyed handlers (former text-service handlers/*.ts).
16
- var room_1 = require("./room");
17
- Object.defineProperty(exports, "handleRoomDescription", { enumerable: true, get: function () { return room_1.handleRoomDescription; } });
18
- var revealed_1 = require("./revealed");
19
- Object.defineProperty(exports, "handleRevealed", { enumerable: true, get: function () { return revealed_1.handleRevealed; } });
20
- var generic_1 = require("./generic");
21
- Object.defineProperty(exports, "handleGameMessage", { enumerable: true, get: function () { return generic_1.handleGameMessage; } });
22
- Object.defineProperty(exports, "handleGenericEvent", { enumerable: true, get: function () { return generic_1.handleGenericEvent; } });
23
- var game_1 = require("./game");
24
- Object.defineProperty(exports, "handleGameStarted", { enumerable: true, get: function () { return game_1.handleGameStarted; } });
25
- var audibility_1 = require("./audibility");
26
- Object.defineProperty(exports, "handleAudibilityHeard", { enumerable: true, get: function () { return audibility_1.handleAudibilityHeard; } });
27
- var platform_1 = require("./platform");
28
- Object.defineProperty(exports, "handlePlatformEvent", { enumerable: true, get: function () { return platform_1.handlePlatformEvent; } });
16
+ var room_js_1 = require("./room.js");
17
+ Object.defineProperty(exports, "handleRoomDescription", { enumerable: true, get: function () { return room_js_1.handleRoomDescription; } });
18
+ var revealed_js_1 = require("./revealed.js");
19
+ Object.defineProperty(exports, "handleRevealed", { enumerable: true, get: function () { return revealed_js_1.handleRevealed; } });
20
+ var generic_js_1 = require("./generic.js");
21
+ Object.defineProperty(exports, "handleGameMessage", { enumerable: true, get: function () { return generic_js_1.handleGameMessage; } });
22
+ Object.defineProperty(exports, "handleGenericEvent", { enumerable: true, get: function () { return generic_js_1.handleGenericEvent; } });
23
+ var game_js_1 = require("./game.js");
24
+ Object.defineProperty(exports, "handleGameStarted", { enumerable: true, get: function () { return game_js_1.handleGameStarted; } });
25
+ var audibility_js_1 = require("./audibility.js");
26
+ Object.defineProperty(exports, "handleAudibilityHeard", { enumerable: true, get: function () { return audibility_js_1.handleAudibilityHeard; } });
27
+ var platform_js_1 = require("./platform.js");
28
+ Object.defineProperty(exports, "handlePlatformEvent", { enumerable: true, get: function () { return platform_js_1.handlePlatformEvent; } });
29
29
  // Inline handlers extracted from text-service.ts in this sub-phase.
30
- var domain_message_1 = require("./domain-message");
31
- Object.defineProperty(exports, "tryProcessDomainEventMessage", { enumerable: true, get: function () { return domain_message_1.tryProcessDomainEventMessage; } });
32
- var implicit_take_1 = require("./implicit-take");
33
- Object.defineProperty(exports, "handleImplicitTake", { enumerable: true, get: function () { return implicit_take_1.handleImplicitTake; } });
34
- var command_failed_1 = require("./command-failed");
35
- Object.defineProperty(exports, "handleCommandFailed", { enumerable: true, get: function () { return command_failed_1.handleCommandFailed; } });
36
- var client_query_1 = require("./client-query");
37
- Object.defineProperty(exports, "handleClientQuery", { enumerable: true, get: function () { return client_query_1.handleClientQuery; } });
30
+ var domain_message_js_1 = require("./domain-message.js");
31
+ Object.defineProperty(exports, "tryProcessDomainEventMessage", { enumerable: true, get: function () { return domain_message_js_1.tryProcessDomainEventMessage; } });
32
+ var implicit_take_js_1 = require("./implicit-take.js");
33
+ Object.defineProperty(exports, "handleImplicitTake", { enumerable: true, get: function () { return implicit_take_js_1.handleImplicitTake; } });
34
+ var command_failed_js_1 = require("./command-failed.js");
35
+ Object.defineProperty(exports, "handleCommandFailed", { enumerable: true, get: function () { return command_failed_js_1.handleCommandFailed; } });
36
+ var client_query_js_1 = require("./client-query.js");
37
+ Object.defineProperty(exports, "handleClientQuery", { enumerable: true, get: function () { return client_query_js_1.handleClientQuery; } });
38
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AASH,2DAA2D;AAC3D,+BAA+C;AAAtC,6GAAA,qBAAqB,OAAA;AAC9B,uCAA4C;AAAnC,0GAAA,cAAc,OAAA;AACvB,qCAAkE;AAAzD,4GAAA,iBAAiB,OAAA;AAAE,6GAAA,kBAAkB,OAAA;AAC9C,+BAA2C;AAAlC,yGAAA,iBAAiB,OAAA;AAC1B,2CAAqD;AAA5C,mHAAA,qBAAqB,OAAA;AAC9B,uCAAiD;AAAxC,+GAAA,mBAAmB,OAAA;AAE5B,oEAAoE;AACpE,mDAAgE;AAAvD,8HAAA,4BAA4B,OAAA;AACrC,iDAAqD;AAA5C,mHAAA,kBAAkB,OAAA;AAC3B,mDAAuD;AAA9C,qHAAA,mBAAmB,OAAA;AAC5B,+CAAmD;AAA1C,iHAAA,iBAAiB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AASH,2DAA2D;AAC3D,qCAAkD;AAAzC,gHAAA,qBAAqB,OAAA;AAC9B,6CAA+C;AAAtC,6GAAA,cAAc,OAAA;AACvB,2CAAqE;AAA5D,+GAAA,iBAAiB,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAC9C,qCAA8C;AAArC,4GAAA,iBAAiB,OAAA;AAC1B,iDAAwD;AAA/C,sHAAA,qBAAqB,OAAA;AAC9B,6CAAoD;AAA3C,kHAAA,mBAAmB,OAAA;AAE5B,oEAAoE;AACpE,yDAAmE;AAA1D,iIAAA,4BAA4B,OAAA;AACrC,uDAAwD;AAA/C,sHAAA,kBAAkB,OAAA;AAC3B,yDAA0D;AAAjD,wHAAA,mBAAmB,OAAA;AAC5B,qDAAsD;AAA7C,oHAAA,iBAAiB,OAAA"}
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import type { ITextBlock } from '@sharpee/text-blocks';
18
18
  import type { ISemanticEvent } from '@sharpee/core';
19
- import type { HandlerContext } from './types';
19
+ import type { HandlerContext } from './types.js';
20
20
  /**
21
21
  * Render a `platform.*` event via the message registered under its event
22
22
  * type. Returns [] when no message is registered (silent by design).
@@ -1 +1 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/platform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CA0Bd"}
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/platform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CA0Bd"}
@@ -18,8 +18,8 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.handlePlatformEvent = handlePlatformEvent;
20
20
  const text_blocks_1 = require("@sharpee/text-blocks");
21
- const assemble_1 = require("../assemble");
22
- const phrase_render_1 = require("../phrase-render");
21
+ const assemble_js_1 = require("../assemble.js");
22
+ const phrase_render_js_1 = require("../phrase-render.js");
23
23
  /**
24
24
  * Render a `platform.*` event via the message registered under its event
25
25
  * type. Returns [] when no message is registered (silent by design).
@@ -35,14 +35,14 @@ function handlePlatformEvent(event, context) {
35
35
  ? text_blocks_1.BLOCK_KEYS.ACTION_BLOCKED
36
36
  : text_blocks_1.BLOCK_KEYS.ACTION_RESULT;
37
37
  // Phrase path (ADR-192).
38
- if ((0, phrase_render_1.phraseAvailable)(context)) {
39
- return (0, phrase_render_1.renderViaPhrase)(context, event.type, payload, blockKey) ?? [];
38
+ if ((0, phrase_render_js_1.phraseAvailable)(context)) {
39
+ return (0, phrase_render_js_1.renderViaPhrase)(context, event.type, payload, blockKey) ?? [];
40
40
  }
41
41
  // Legacy string path — only when the pipeline has no world (unit tests).
42
42
  const message = context.languageProvider.getMessage(event.type, payload);
43
43
  if (!message || message === event.type) {
44
44
  return [];
45
45
  }
46
- return (0, assemble_1.createBlocks)(blockKey, message);
46
+ return (0, assemble_js_1.createBlocks)(blockKey, message);
47
47
  }
48
48
  //# sourceMappingURL=platform.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/platform.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAaH,kDA6BC;AAvCD,sDAAkD;AAGlD,0CAA2C;AAC3C,oDAAoE;AAEpE;;;GAGG;AACH,SAAgB,mBAAmB,CACjC,KAAqB,EACrB,OAAuB;IAEvB,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,OAAO,GACV,KAA+C,CAAC,OAAO,IAAI,EAAE,CAAC;IAEjE,0EAA0E;IAC1E,+DAA+D;IAC/D,MAAM,QAAQ,GACZ,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;QAC/D,CAAC,CAAC,wBAAU,CAAC,cAAc;QAC3B,CAAC,CAAC,wBAAU,CAAC,aAAa,CAAC;IAE/B,yBAAyB;IACzB,IAAI,IAAA,+BAAe,EAAC,OAAO,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAA,+BAAe,EAAC,OAAO,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IACvE,CAAC;IAED,yEAAyE;IACzE,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzE,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAA,uBAAY,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACzC,CAAC"}
1
+ {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/platform.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAaH,kDA6BC;AAvCD,sDAAkD;AAGlD,gDAA8C;AAC9C,0DAAuE;AAEvE;;;GAGG;AACH,SAAgB,mBAAmB,CACjC,KAAqB,EACrB,OAAuB;IAEvB,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,OAAO,GACV,KAA+C,CAAC,OAAO,IAAI,EAAE,CAAC;IAEjE,0EAA0E;IAC1E,+DAA+D;IAC/D,MAAM,QAAQ,GACZ,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;QAC/D,CAAC,CAAC,wBAAU,CAAC,cAAc;QAC3B,CAAC,CAAC,wBAAU,CAAC,aAAa,CAAC;IAE/B,yBAAyB;IACzB,IAAI,IAAA,kCAAe,EAAC,OAAO,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAA,kCAAe,EAAC,OAAO,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IACvE,CAAC;IAED,yEAAyE;IACzE,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzE,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAA,0BAAY,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACzC,CAAC"}
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import type { ITextBlock } from '@sharpee/text-blocks';
18
18
  import type { ISemanticEvent } from '@sharpee/core';
19
- import type { HandlerContext } from './types';
19
+ import type { HandlerContext } from './types.js';
20
20
  /**
21
21
  * Handle `if.event.revealed` events.
22
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"revealed.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/revealed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,SAAS,CAAC;AAelE;;GAEG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAkCd"}
1
+ {"version":3,"file":"revealed.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/revealed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,YAAY,CAAC;AAerE;;GAEG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAkCd"}
@@ -18,7 +18,7 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.handleRevealed = handleRevealed;
20
20
  const text_blocks_1 = require("@sharpee/text-blocks");
21
- const assemble_1 = require("../assemble");
21
+ const assemble_js_1 = require("../assemble.js");
22
22
  /**
23
23
  * Handle `if.event.revealed` events.
24
24
  */
@@ -27,7 +27,7 @@ function handleRevealed(event, context) {
27
27
  if (data.message || data.text) {
28
28
  const text = data.message ?? data.text ?? '';
29
29
  if (text) {
30
- return (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, text);
30
+ return (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, text);
31
31
  }
32
32
  }
33
33
  if (context.languageProvider) {
@@ -38,7 +38,7 @@ function handleRevealed(event, context) {
38
38
  items: data.items,
39
39
  });
40
40
  if (message && message !== event.type) {
41
- return (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, message);
41
+ return (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, message);
42
42
  }
43
43
  }
44
44
  if (data.items && data.items.length > 0) {
@@ -47,7 +47,7 @@ function handleRevealed(event, context) {
47
47
  .join(', ');
48
48
  const container = data.containerName ?? 'it';
49
49
  const text = `Inside the ${container} you see ${itemNames}.`;
50
- return (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, text);
50
+ return (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ACTION_RESULT, text);
51
51
  }
52
52
  return [];
53
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"revealed.js","sourceRoot":"","sources":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,CAAC,QAAQ,CAAC;aAC3D,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC;QAC7C,MAAM,IAAI,GAAG,cAAc,SAAS,YAAY,SAAS,GAAG,CAAC;QAC7D,OAAO,IAAA,uBAAY,EAAC,wBAAU,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"}
1
+ {"version":3,"file":"revealed.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/revealed.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAuBH,wCAqCC;AAzDD,sDAAkD;AAGlD,gDAA8C;AAc9C;;GAEG;AACH,SAAgB,cAAc,CAC5B,KAAqB,EACrB,OAAuB;IAEvB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAyB,CAAC;IAE7C,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QAC9B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;QAC7C,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,IAAA,0BAAY,EAAC,wBAAU,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE;YAC9D,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,SAAS,EAAE,IAAI,CAAC,aAAa;YAC7B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;QAEH,IAAI,OAAO,IAAI,OAAO,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC;YACtC,OAAO,IAAA,0BAAY,EAAC,wBAAU,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IAED,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK;aACzB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC;aAC3D,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC;QAC7C,MAAM,IAAI,GAAG,cAAc,SAAS,YAAY,SAAS,GAAG,CAAC;QAC7D,OAAO,IAAA,0BAAY,EAAC,wBAAU,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -17,7 +17,7 @@
17
17
  */
18
18
  import type { ITextBlock } from '@sharpee/text-blocks';
19
19
  import type { ISemanticEvent } from '@sharpee/core';
20
- import type { HandlerContext } from './types';
20
+ import type { HandlerContext } from './types.js';
21
21
  /**
22
22
  * Handle room description events.
23
23
  */
@@ -1 +1 @@
1
- {"version":3,"file":"room.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/room.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAoC9C;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAiGd"}
1
+ {"version":3,"file":"room.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/room.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAoCjD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAiGd"}
@@ -20,8 +20,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
20
20
  exports.handleRoomDescription = handleRoomDescription;
21
21
  const text_blocks_1 = require("@sharpee/text-blocks");
22
22
  const stdlib_1 = require("@sharpee/stdlib");
23
- const assemble_1 = require("../assemble");
24
- const phrase_render_1 = require("../phrase-render");
23
+ const assemble_js_1 = require("../assemble.js");
24
+ const phrase_render_js_1 = require("../phrase-render.js");
25
25
  /**
26
26
  * Core template id for the room description body (ADR-195). Realized through the
27
27
  * phrase pipeline so its `{slot:here}` room-occupant channel fills with the
@@ -49,9 +49,9 @@ function handleRoomDescription(event, context) {
49
49
  name = data.room?.name ?? data.roomName;
50
50
  }
51
51
  if (name) {
52
- const resolvedName = (0, assemble_1.extractValue)(name);
52
+ const resolvedName = (0, assemble_js_1.extractValue)(name);
53
53
  if (resolvedName) {
54
- blocks.push((0, assemble_1.createBlock)(text_blocks_1.BLOCK_KEYS.ROOM_NAME, `[room:${resolvedName}]`));
54
+ blocks.push((0, assemble_js_1.createBlock)(text_blocks_1.BLOCK_KEYS.ROOM_NAME, `[room:${resolvedName}]`));
55
55
  }
56
56
  }
57
57
  }
@@ -68,7 +68,7 @@ function handleRoomDescription(event, context) {
68
68
  description = data.room?.description ?? data.roomDescription;
69
69
  }
70
70
  if (description) {
71
- const resolvedDesc = (0, assemble_1.extractValue)(description);
71
+ const resolvedDesc = (0, assemble_js_1.extractValue)(description);
72
72
  if (resolvedDesc) {
73
73
  // ADR-209: a snippet-bearing room's description is spliced before binding —
74
74
  // stdlib's resolver (scan/gate) turns the text into a Sequence of the
@@ -78,7 +78,7 @@ function handleRoomDescription(event, context) {
78
78
  // no map bind the plain string exactly as before (AC-7).
79
79
  let descriptionParam = resolvedDesc;
80
80
  const roomId = data.roomId ?? data.room?.id;
81
- if (data.roomSnippets && roomId && (0, phrase_render_1.phraseAvailable)(context)) {
81
+ if (data.roomSnippets && roomId && (0, phrase_render_js_1.phraseAvailable)(context)) {
82
82
  const lp = context.languageProvider;
83
83
  descriptionParam = (0, stdlib_1.resolveSnippetDescription)(resolvedDesc, roomId, data.roomSnippets, context.makeRenderContext({}).world, lp
84
84
  ? (id) => {
@@ -92,9 +92,9 @@ function handleRoomDescription(event, context) {
92
92
  // this turn. The room's prose is bound as a `{verbatim:description}` param;
93
93
  // the slot owns the connective grammar. Degrade to literal blocks only when
94
94
  // the pipeline has no world (the legacy string path, e.g. some unit tests).
95
- const descBlocks = (0, phrase_render_1.phraseAvailable)(context)
96
- ? (0, phrase_render_1.renderViaPhrase)(context, ROOM_DESCRIPTION_BODY_ID, { description: descriptionParam }, text_blocks_1.BLOCK_KEYS.ROOM_DESCRIPTION) ?? (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ROOM_DESCRIPTION, resolvedDesc)
97
- : (0, assemble_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ROOM_DESCRIPTION, resolvedDesc);
95
+ const descBlocks = (0, phrase_render_js_1.phraseAvailable)(context)
96
+ ? (0, phrase_render_js_1.renderViaPhrase)(context, ROOM_DESCRIPTION_BODY_ID, { description: descriptionParam }, text_blocks_1.BLOCK_KEYS.ROOM_DESCRIPTION) ?? (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ROOM_DESCRIPTION, resolvedDesc)
97
+ : (0, assemble_js_1.createBlocks)(text_blocks_1.BLOCK_KEYS.ROOM_DESCRIPTION, resolvedDesc);
98
98
  // When the room name was emitted in this packet, the description's
99
99
  // first block continues the room "heading" visually — mark it tight
100
100
  // so the renderer collapses the inter-paragraph margin and the
@@ -1 +1 @@
1
- {"version":3,"file":"room.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/room.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AA8CH,sDAoGC;AA/ID,sDAAkD;AAGlD,4CAA4D;AAE5D,0CAAsE;AACtE,oDAAoE;AAEpE;;;;GAIG;AACH,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AA2B5D;;GAEG;AACH,SAAgB,qBAAqB,CACnC,KAAqB,EACrB,OAAuB;IAEvB,MAAM,IAAI,GAAG,KAAK,CAAC,IAA2B,CAAC;IAC/C,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEhC,0BAA0B;IAC1B,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,IAAI,IAAwB,CAAC;QAE7B,wCAAwC;QACxC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC;QACpD,IAAI,MAAM,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YACjE,IAAI,QAAQ,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;gBACpC,IAAI,GAAG,QAAQ,CAAC;YAClB,CAAC;QACH,CAAC;QAED,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC;QAC1C,CAAC;QAED,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,YAAY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AAC,UAAU,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;wBAClC,OAAO,GAAG,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC7C,CAAC;oBACH,CAAC,CAAC,SAAS,CACd,CAAC;YACJ,CAAC;YACD,2EAA2E;YAC3E,4EAA4E;YAC5E,4EAA4E;YAC5E,4EAA4E;YAC5E,4EAA4E;YAC5E,MAAM,UAAU,GAAG,IAAA,kCAAe,EAAC,OAAO,CAAC;gBACzC,CAAC,CAAC,IAAA,kCAAe,EACb,OAAO,EACP,wBAAwB,EACxB,EAAE,WAAW,EAAE,gBAAgB,EAAE,EACjC,wBAAU,CAAC,gBAAgB,CAC5B,IAAI,IAAA,0BAAY,EAAC,wBAAU,CAAC,gBAAgB,EAAE,YAAY,CAAC;gBAC9D,CAAC,CAAC,IAAA,0BAAY,EAAC,wBAAU,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;YAC5D,mEAAmE;YACnE,oEAAoE;YACpE,+DAA+D;YAC/D,mDAAmD;YACnD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC/C,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;YACpD,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -13,13 +13,19 @@
13
13
  import type { ITextBlock } from '@sharpee/text-blocks';
14
14
  import type { LanguageProvider } from '@sharpee/if-domain';
15
15
  import type { ISemanticEvent } from '@sharpee/core';
16
- import type { RenderContextFactory } from '../render-context';
16
+ import type { RenderContextFactory, WorldModelLike } from '../render-context.js';
17
17
  /**
18
18
  * Context passed to event handlers.
19
19
  */
20
20
  export interface HandlerContext {
21
21
  /** Language provider for template resolution. */
22
22
  languageProvider?: LanguageProvider;
23
+ /**
24
+ * The world, when the pipeline was constructed with one — the phrasebook
25
+ * read point consults `world.evaluate` for book-resolved templates
26
+ * (ADR-250 D4) before the registry lookup.
27
+ */
28
+ world?: WorldModelLike;
23
29
  /**
24
30
  * Per-turn render-context factory for the phrase pipeline (ADR-192, W2).
25
31
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;CAC1C;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CACzB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,KACpB,UAAU,EAAE,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/handlers/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;;;OAIG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;CAC1C;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CACzB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,KACpB,UAAU,EAAE,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -9,13 +9,15 @@
9
9
  *
10
10
  * @see ADR-174 §Engine-internal prose pipeline
11
11
  */
12
- export { ProsePipeline, createProsePipeline } from './pipeline';
13
- export type { IProsePipeline, SlotContributor, SlotEntry, SlotEntryGate, } from './types';
14
- export { createRenderWorld, createRenderContextFactory, type RenderContextFactory, type WorldModelLike, } from './render-context';
15
- export { parseDecorations, resolveClassName, PLATFORM_VOCABULARY, PLATFORM_VOCABULARY_NAMES, type PlatformVocabularyName, type IDecoration, type TextContent, } from './decorations';
16
- export { filterEvents } from './stages/filter';
17
- export { sortEventsForProse, getChainMetadata, } from './stages/sort';
18
- export { createBlock, createBlocks, extractValue } from './assemble';
19
- export type { EventHandler, HandlerContext, ChainableEventData, GenericEventData, } from './handlers/types';
20
- export { handleRoomDescription, handleRevealed, handleGameMessage, handleGenericEvent, handleGameStarted, handleAudibilityHeard, tryProcessDomainEventMessage, handleImplicitTake, handleCommandFailed, handleClientQuery, } from './handlers';
12
+ export { ProsePipeline, createProsePipeline } from './pipeline.js';
13
+ export type { IProsePipeline, SlotContributor, SlotEntry, SlotEntryGate, } from './types.js';
14
+ export { createRenderWorld, createRenderContextFactory, type RenderContextFactory, type WorldModelLike, } from './render-context.js';
15
+ export { parseDecorations, resolveClassName, PLATFORM_VOCABULARY, PLATFORM_VOCABULARY_NAMES, type PlatformVocabularyName, type IDecoration, type TextContent, } from './decorations/index.js';
16
+ export { filterEvents } from './stages/filter.js';
17
+ export { sortEventsForProse, getChainMetadata, } from './stages/sort.js';
18
+ export { createBlock, createBlocks, extractValue } from './assemble.js';
19
+ export type { EventHandler, HandlerContext, ChainableEventData, GenericEventData, } from './handlers/types.js';
20
+ export { phrasebookTemplateKey } from './phrase-render.js';
21
+ export type { PhrasebookResolution } from './phrase-render.js';
22
+ export { handleRoomDescription, handleRevealed, handleGameMessage, handleGenericEvent, handleGameStarted, handleAudibilityHeard, tryProcessDomainEventMessage, handleImplicitTake, handleCommandFailed, handleClientQuery, } from './handlers/index.js';
21
23
  //# sourceMappingURL=index.d.ts.map
@@ -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,EACV,cAAc,EACd,eAAe,EACf,SAAS,EACT,aAAa,GACd,MAAM,SAAS,CAAC;AAGjB,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"}
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,eAAe,CAAC;AAGnE,YAAY,EACV,cAAc,EACd,eAAe,EACf,SAAS,EACT,aAAa,GACd,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,cAAc,GACpB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGxE,YAAY,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC"}
@@ -11,42 +11,46 @@
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.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.phrasebookTemplateKey = 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
- var pipeline_1 = require("./pipeline");
17
- Object.defineProperty(exports, "ProsePipeline", { enumerable: true, get: function () { return pipeline_1.ProsePipeline; } });
18
- Object.defineProperty(exports, "createProsePipeline", { enumerable: true, get: function () { return pipeline_1.createProsePipeline; } });
16
+ var pipeline_js_1 = require("./pipeline.js");
17
+ Object.defineProperty(exports, "ProsePipeline", { enumerable: true, get: function () { return pipeline_js_1.ProsePipeline; } });
18
+ Object.defineProperty(exports, "createProsePipeline", { enumerable: true, get: function () { return pipeline_js_1.createProsePipeline; } });
19
19
  // Render-context runtime for the phrase pipeline (ADR-192, W2).
20
- var render_context_1 = require("./render-context");
21
- Object.defineProperty(exports, "createRenderWorld", { enumerable: true, get: function () { return render_context_1.createRenderWorld; } });
22
- Object.defineProperty(exports, "createRenderContextFactory", { enumerable: true, get: function () { return render_context_1.createRenderContextFactory; } });
20
+ var render_context_js_1 = require("./render-context.js");
21
+ Object.defineProperty(exports, "createRenderWorld", { enumerable: true, get: function () { return render_context_js_1.createRenderWorld; } });
22
+ Object.defineProperty(exports, "createRenderContextFactory", { enumerable: true, get: function () { return render_context_js_1.createRenderContextFactory; } });
23
23
  // Decoration primitives (re-exported for convenience to engine code
24
24
  // outside the prose-pipeline subdirectory; the canonical types live
25
25
  // in `@sharpee/text-blocks`).
26
- var decorations_1 = require("./decorations");
27
- Object.defineProperty(exports, "parseDecorations", { enumerable: true, get: function () { return decorations_1.parseDecorations; } });
28
- Object.defineProperty(exports, "resolveClassName", { enumerable: true, get: function () { return decorations_1.resolveClassName; } });
29
- Object.defineProperty(exports, "PLATFORM_VOCABULARY", { enumerable: true, get: function () { return decorations_1.PLATFORM_VOCABULARY; } });
30
- Object.defineProperty(exports, "PLATFORM_VOCABULARY_NAMES", { enumerable: true, get: function () { return decorations_1.PLATFORM_VOCABULARY_NAMES; } });
26
+ var index_js_1 = require("./decorations/index.js");
27
+ Object.defineProperty(exports, "parseDecorations", { enumerable: true, get: function () { return index_js_1.parseDecorations; } });
28
+ Object.defineProperty(exports, "resolveClassName", { enumerable: true, get: function () { return index_js_1.resolveClassName; } });
29
+ Object.defineProperty(exports, "PLATFORM_VOCABULARY", { enumerable: true, get: function () { return index_js_1.PLATFORM_VOCABULARY; } });
30
+ Object.defineProperty(exports, "PLATFORM_VOCABULARY_NAMES", { enumerable: true, get: function () { return index_js_1.PLATFORM_VOCABULARY_NAMES; } });
31
31
  // Stage utilities (handy in tests).
32
- var filter_1 = require("./stages/filter");
33
- Object.defineProperty(exports, "filterEvents", { enumerable: true, get: function () { return filter_1.filterEvents; } });
34
- var sort_1 = require("./stages/sort");
35
- Object.defineProperty(exports, "sortEventsForProse", { enumerable: true, get: function () { return sort_1.sortEventsForProse; } });
36
- Object.defineProperty(exports, "getChainMetadata", { enumerable: true, get: function () { return sort_1.getChainMetadata; } });
37
- var assemble_1 = require("./assemble");
38
- Object.defineProperty(exports, "createBlock", { enumerable: true, get: function () { return assemble_1.createBlock; } });
39
- Object.defineProperty(exports, "createBlocks", { enumerable: true, get: function () { return assemble_1.createBlocks; } });
40
- Object.defineProperty(exports, "extractValue", { enumerable: true, get: function () { return assemble_1.extractValue; } });
41
- var handlers_1 = require("./handlers");
42
- Object.defineProperty(exports, "handleRoomDescription", { enumerable: true, get: function () { return handlers_1.handleRoomDescription; } });
43
- Object.defineProperty(exports, "handleRevealed", { enumerable: true, get: function () { return handlers_1.handleRevealed; } });
44
- Object.defineProperty(exports, "handleGameMessage", { enumerable: true, get: function () { return handlers_1.handleGameMessage; } });
45
- Object.defineProperty(exports, "handleGenericEvent", { enumerable: true, get: function () { return handlers_1.handleGenericEvent; } });
46
- Object.defineProperty(exports, "handleGameStarted", { enumerable: true, get: function () { return handlers_1.handleGameStarted; } });
47
- Object.defineProperty(exports, "handleAudibilityHeard", { enumerable: true, get: function () { return handlers_1.handleAudibilityHeard; } });
48
- Object.defineProperty(exports, "tryProcessDomainEventMessage", { enumerable: true, get: function () { return handlers_1.tryProcessDomainEventMessage; } });
49
- Object.defineProperty(exports, "handleImplicitTake", { enumerable: true, get: function () { return handlers_1.handleImplicitTake; } });
50
- Object.defineProperty(exports, "handleCommandFailed", { enumerable: true, get: function () { return handlers_1.handleCommandFailed; } });
51
- Object.defineProperty(exports, "handleClientQuery", { enumerable: true, get: function () { return handlers_1.handleClientQuery; } });
32
+ var filter_js_1 = require("./stages/filter.js");
33
+ Object.defineProperty(exports, "filterEvents", { enumerable: true, get: function () { return filter_js_1.filterEvents; } });
34
+ var sort_js_1 = require("./stages/sort.js");
35
+ Object.defineProperty(exports, "sortEventsForProse", { enumerable: true, get: function () { return sort_js_1.sortEventsForProse; } });
36
+ Object.defineProperty(exports, "getChainMetadata", { enumerable: true, get: function () { return sort_js_1.getChainMetadata; } });
37
+ var assemble_js_1 = require("./assemble.js");
38
+ Object.defineProperty(exports, "createBlock", { enumerable: true, get: function () { return assemble_js_1.createBlock; } });
39
+ Object.defineProperty(exports, "createBlocks", { enumerable: true, get: function () { return assemble_js_1.createBlocks; } });
40
+ Object.defineProperty(exports, "extractValue", { enumerable: true, get: function () { return assemble_js_1.extractValue; } });
41
+ // ADR-250 D4: the phrasebook read point's key builder + evaluator contract —
42
+ // imported by the story-loader registrar (the only other key-builder site).
43
+ var phrase_render_js_1 = require("./phrase-render.js");
44
+ Object.defineProperty(exports, "phrasebookTemplateKey", { enumerable: true, get: function () { return phrase_render_js_1.phrasebookTemplateKey; } });
45
+ var index_js_2 = require("./handlers/index.js");
46
+ Object.defineProperty(exports, "handleRoomDescription", { enumerable: true, get: function () { return index_js_2.handleRoomDescription; } });
47
+ Object.defineProperty(exports, "handleRevealed", { enumerable: true, get: function () { return index_js_2.handleRevealed; } });
48
+ Object.defineProperty(exports, "handleGameMessage", { enumerable: true, get: function () { return index_js_2.handleGameMessage; } });
49
+ Object.defineProperty(exports, "handleGenericEvent", { enumerable: true, get: function () { return index_js_2.handleGenericEvent; } });
50
+ Object.defineProperty(exports, "handleGameStarted", { enumerable: true, get: function () { return index_js_2.handleGameStarted; } });
51
+ Object.defineProperty(exports, "handleAudibilityHeard", { enumerable: true, get: function () { return index_js_2.handleAudibilityHeard; } });
52
+ Object.defineProperty(exports, "tryProcessDomainEventMessage", { enumerable: true, get: function () { return index_js_2.tryProcessDomainEventMessage; } });
53
+ Object.defineProperty(exports, "handleImplicitTake", { enumerable: true, get: function () { return index_js_2.handleImplicitTake; } });
54
+ Object.defineProperty(exports, "handleCommandFailed", { enumerable: true, get: function () { return index_js_2.handleCommandFailed; } });
55
+ Object.defineProperty(exports, "handleClientQuery", { enumerable: true, get: function () { return index_js_2.handleClientQuery; } });
52
56
  //# sourceMappingURL=index.js.map
@@ -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;AAU3C,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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/engine/src/prose-pipeline/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,8BAA8B;AAC9B,6CAAmE;AAA1D,4GAAA,aAAa,OAAA;AAAE,kHAAA,mBAAmB,OAAA;AAU3C,gEAAgE;AAChE,yDAK6B;AAJ3B,sHAAA,iBAAiB,OAAA;AACjB,+HAAA,0BAA0B,OAAA;AAK5B,oEAAoE;AACpE,oEAAoE;AACpE,8BAA8B;AAC9B,mDAQgC;AAP9B,4GAAA,gBAAgB,OAAA;AAChB,4GAAA,gBAAgB,OAAA;AAChB,+GAAA,mBAAmB,OAAA;AACnB,qHAAA,yBAAyB,OAAA;AAM3B,oCAAoC;AACpC,gDAAkD;AAAzC,yGAAA,YAAY,OAAA;AACrB,4CAG0B;AAFxB,6GAAA,kBAAkB,OAAA;AAClB,2GAAA,gBAAgB,OAAA;AAElB,6CAAwE;AAA/D,0GAAA,WAAW,OAAA;AAAE,2GAAA,YAAY,OAAA;AAAE,2GAAA,YAAY,OAAA;AAShD,6EAA6E;AAC7E,4EAA4E;AAC5E,uDAA2D;AAAlD,yHAAA,qBAAqB,OAAA;AAE9B,gDAW6B;AAV3B,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"}