@serene-pub/core-catalog 0.6.0-pr-2 → 0.6.0-pr-4

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 (243) hide show
  1. package/README.md +21 -1
  2. package/components/{sessions → genres/chat}/authors-note/AuthorsNote.svelte +1 -1
  3. package/components/{sessions → genres/chat}/authors-note/AuthorsNoteWidget.svelte +1 -1
  4. package/components/{sessions → shared}/lore-entries/LoreEntries.svelte +1 -1
  5. package/components/{sessions → shared}/lore-entries/LoreEntriesWidget.svelte +1 -1
  6. package/components/{sessions → shared}/messages/MessageComposer.svelte +1 -1
  7. package/components/{sessions → shared}/messages/Messages.svelte +1 -1
  8. package/components/{sessions → shared}/messages/MessagesWidget.svelte +1 -1
  9. package/components/{sessions → shared}/messages/SessionComposer.svelte +1 -1
  10. package/components/{sessions → shared}/messages/SessionMessage.svelte +1 -1
  11. package/components/{sessions → shared}/messages/conversation.svelte.ts +1 -1
  12. package/components/{sessions → shared}/scene-portraits/ScenePortraits.svelte +1 -1
  13. package/components/{sessions → shared}/scene-portraits/ScenePortraitsWidget.svelte +1 -1
  14. package/components/{sessions → shared}/stats/Stats.svelte +1 -1
  15. package/components/{sessions → shared}/stats/StatsWidget.svelte +1 -1
  16. package/components/{sessions → shared}/world-state/WorldState.svelte +1 -1
  17. package/components/{sessions → shared}/world-state/WorldStateWidget.svelte +1 -1
  18. package/dist/components/authors-note.js +5 -5
  19. package/dist/components/authors-note.source.json +1 -1
  20. package/dist/components/core-ui.json +1 -1
  21. package/dist/components/lore-entries.js +5 -5
  22. package/dist/components/lore-entries.source.json +1 -1
  23. package/dist/components/messages.js +26 -26
  24. package/dist/components/messages.source.json +1 -1
  25. package/dist/components/scene-portraits.js +7 -7
  26. package/dist/components/scene-portraits.source.json +1 -1
  27. package/dist/components/{shared-TCQZXBE3.js → shared-3FGURYVS.js} +2 -2
  28. package/dist/components/{shared-AINANAIA.js → shared-FXYLABGF.js} +6 -6
  29. package/dist/components/{shared-UAQVMZZK.js → shared-U3UU5V7L.js} +3 -3
  30. package/dist/components/stats.js +6 -6
  31. package/dist/components/stats.source.json +1 -1
  32. package/dist/components/world-state.js +6 -6
  33. package/dist/components/world-state.source.json +1 -1
  34. package/dist/{answerForm.d.ts → factories/answerForm.d.ts} +4 -30
  35. package/dist/{answerForm.js → factories/answerForm.js} +4 -37
  36. package/dist/factories/once.d.ts +7 -0
  37. package/dist/factories/once.js +9 -0
  38. package/dist/{turnOrder.d.ts → factories/turnOrder.d.ts} +0 -22
  39. package/dist/{turnOrder.js → factories/turnOrder.js} +4 -104
  40. package/dist/genres/adventure/advanceTime.d.ts +11 -0
  41. package/dist/genres/adventure/advanceTime.js +17 -0
  42. package/dist/genres/adventure/answer.d.ts +23 -0
  43. package/dist/genres/adventure/answer.js +59 -0
  44. package/dist/genres/adventure/answerForm.d.ts +9 -0
  45. package/dist/genres/adventure/answerForm.js +11 -0
  46. package/dist/genres/adventure/ask.d.ts +73 -0
  47. package/dist/genres/adventure/ask.js +157 -0
  48. package/dist/genres/adventure/create.d.ts +36 -0
  49. package/dist/genres/adventure/create.js +62 -0
  50. package/dist/genres/adventure/index.d.ts +43 -0
  51. package/dist/genres/adventure/index.js +43 -0
  52. package/dist/genres/adventure/keeperAction.d.ts +24 -0
  53. package/dist/genres/adventure/keeperAction.js +150 -0
  54. package/dist/genres/adventure/look.d.ts +45 -0
  55. package/dist/genres/adventure/look.js +209 -0
  56. package/dist/{adventure.d.ts → genres/adventure/respond.d.ts} +10 -34
  57. package/dist/{adventure.js → genres/adventure/respond.js} +34 -60
  58. package/dist/genres/adventure/rest.d.ts +10 -0
  59. package/dist/genres/adventure/rest.js +16 -0
  60. package/dist/genres/adventure/turnOrder.d.ts +10 -0
  61. package/dist/genres/adventure/turnOrder.js +27 -0
  62. package/dist/genres/chat/answerForm.d.ts +9 -0
  63. package/dist/genres/chat/answerForm.js +11 -0
  64. package/dist/genres/chat/create.d.ts +7 -0
  65. package/dist/{createChat.js → genres/chat/create.js} +6 -6
  66. package/dist/genres/chat/generateImage.d.ts +7 -0
  67. package/dist/{generateImage.js → genres/chat/generateImage.js} +5 -5
  68. package/dist/genres/chat/index.d.ts +15 -0
  69. package/dist/genres/chat/index.js +15 -0
  70. package/dist/{narrate.d.ts → genres/chat/narrate.d.ts} +3 -3
  71. package/dist/{narrate.js → genres/chat/narrate.js} +34 -12
  72. package/dist/{narrateCharacter.d.ts → genres/chat/narrateCharacter.d.ts} +2 -2
  73. package/dist/{narrateCharacter.js → genres/chat/narrateCharacter.js} +35 -16
  74. package/dist/genres/chat/respond.d.ts +25 -0
  75. package/dist/{respond.js → genres/chat/respond.js} +48 -22
  76. package/dist/genres/chat/turnOrder.d.ts +9 -0
  77. package/dist/genres/chat/turnOrder.js +28 -0
  78. package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.d.ts +1 -1
  79. package/dist/genres/guide/answerForm.d.ts +9 -0
  80. package/dist/genres/guide/answerForm.js +11 -0
  81. package/dist/genres/guide/create.d.ts +24 -0
  82. package/dist/genres/guide/create.js +58 -0
  83. package/dist/genres/guide/index.d.ts +9 -0
  84. package/dist/genres/guide/index.js +9 -0
  85. package/dist/{guide.d.ts → genres/guide/respond.d.ts} +1 -20
  86. package/dist/{guide.js → genres/guide/respond.js} +29 -60
  87. package/dist/genres/guide/turnOrder.d.ts +10 -0
  88. package/dist/genres/guide/turnOrder.js +27 -0
  89. package/dist/genres/index.d.ts +14 -0
  90. package/dist/genres/index.js +41 -0
  91. package/dist/genres/lair/answerForm.d.ts +17 -0
  92. package/dist/genres/lair/answerForm.js +19 -0
  93. package/dist/genres/lair/buildRoom.d.ts +64 -0
  94. package/dist/genres/lair/buildRoom.js +244 -0
  95. package/dist/genres/lair/castellanAction.d.ts +27 -0
  96. package/dist/genres/lair/castellanAction.js +177 -0
  97. package/dist/genres/lair/create.d.ts +28 -0
  98. package/dist/genres/lair/create.js +69 -0
  99. package/dist/genres/lair/fileRoom.d.ts +53 -0
  100. package/dist/genres/lair/fileRoom.js +288 -0
  101. package/dist/genres/lair/index.d.ts +60 -0
  102. package/dist/genres/lair/index.js +60 -0
  103. package/dist/genres/lair/nudge.d.ts +25 -0
  104. package/dist/genres/lair/nudge.js +78 -0
  105. package/dist/{lair.d.ts → genres/lair/respond.d.ts} +15 -28
  106. package/dist/{lair.js → genres/lair/respond.js} +45 -76
  107. package/dist/genres/lair/reveal.d.ts +10 -0
  108. package/dist/genres/lair/reveal.js +18 -0
  109. package/dist/genres/lair/roomAnswer.d.ts +86 -0
  110. package/dist/genres/lair/roomAnswer.js +378 -0
  111. package/dist/genres/lair/trap.d.ts +11 -0
  112. package/dist/genres/lair/trap.js +24 -0
  113. package/dist/genres/lair/turnOrder.d.ts +9 -0
  114. package/dist/genres/lair/turnOrder.js +36 -0
  115. package/dist/genres/lair/whisper.d.ts +35 -0
  116. package/dist/genres/lair/whisper.js +90 -0
  117. package/dist/index.d.ts +47 -29
  118. package/dist/index.js +117 -88
  119. package/dist/{genres.js → registry/genres.js} +4 -4
  120. package/dist/{ui/sessions → registry}/widgets.js +6 -6
  121. package/dist/{presets.js → seed/presets.js} +28 -13
  122. package/dist/{prompts.js → seed/prompts.js} +27 -56
  123. package/dist/{annexField.d.ts → shared/annexField.d.ts} +3 -2
  124. package/dist/{annexField.js → shared/annexField.js} +6 -8
  125. package/dist/shared/builtins/branch.d.ts +8 -0
  126. package/dist/shared/builtins/branch.js +13 -0
  127. package/dist/{builtins.d.ts → shared/builtins/builtIn.d.ts} +16 -21
  128. package/dist/{builtins.js → shared/builtins/builtIn.js} +3 -37
  129. package/dist/shared/builtins/delete.d.ts +8 -0
  130. package/dist/shared/builtins/delete.js +13 -0
  131. package/dist/shared/builtins/edit.d.ts +8 -0
  132. package/dist/shared/builtins/edit.js +13 -0
  133. package/dist/shared/builtins/hide.d.ts +8 -0
  134. package/dist/shared/builtins/hide.js +13 -0
  135. package/dist/shared/builtins/index.d.ts +11 -0
  136. package/dist/shared/builtins/index.js +11 -0
  137. package/dist/shared/builtins/swipe.d.ts +8 -0
  138. package/dist/shared/builtins/swipe.js +17 -0
  139. package/dist/shared/sprites.d.ts +34 -0
  140. package/dist/shared/sprites.js +98 -0
  141. package/dist/shared/summarize/character.d.ts +9 -0
  142. package/dist/shared/summarize/character.js +10 -0
  143. package/dist/shared/summarize/history.d.ts +9 -0
  144. package/dist/shared/summarize/history.js +10 -0
  145. package/dist/shared/summarize/index.d.ts +10 -0
  146. package/dist/shared/summarize/index.js +10 -0
  147. package/dist/shared/summarize/scene.d.ts +38 -0
  148. package/dist/shared/summarize/scene.js +42 -0
  149. package/dist/shared/summarize/summarizeSpec.d.ts +54 -0
  150. package/dist/{summarize.js → shared/summarize/summarizeSpec.js} +8 -53
  151. package/dist/shared/summarize/world.d.ts +8 -0
  152. package/dist/shared/summarize/world.js +9 -0
  153. package/dist/{toolLoop.d.ts → shared/toolLoop.d.ts} +25 -3
  154. package/dist/{toolLoop.js → shared/toolLoop.js} +67 -14
  155. package/dist/{ui/sessions → shared/ui}/conversation/index.d.ts +1 -1
  156. package/dist/{ui/sessions → shared/ui}/conversation/index.js +1 -1
  157. package/dist/{ui/sessions → shared/ui}/coreWidgetsEntry.d.ts +1 -1
  158. package/dist/{ui/sessions → shared/ui}/coreWidgetsEntry.js +1 -1
  159. package/dist/{ui/sessions → shared/ui}/lore-entries/index.d.ts +1 -1
  160. package/dist/{ui/sessions → shared/ui}/scene-portraits/index.d.ts +1 -1
  161. package/dist/{ui/sessions → shared/ui}/scene-portraits/index.js +1 -1
  162. package/dist/{ui/sessions → shared/ui}/session-state/index.d.ts +1 -1
  163. package/dist/{ui/sessions → shared/ui}/session-state/index.js +1 -1
  164. package/package.json +28 -28
  165. package/dist/adventureActions.d.ts +0 -169
  166. package/dist/adventureActions.js +0 -599
  167. package/dist/createChat.d.ts +0 -7
  168. package/dist/generateImage.d.ts +0 -7
  169. package/dist/lairActions.d.ts +0 -296
  170. package/dist/lairActions.js +0 -1287
  171. package/dist/respond.d.ts +0 -24
  172. package/dist/sprites.d.ts +0 -24
  173. package/dist/sprites.js +0 -102
  174. package/dist/summarize.d.ts +0 -76
  175. /package/components/{sessions → genres/chat}/authors-note/authors-note.ts +0 -0
  176. /package/components/{sessions/shared → shared}/context.ts +0 -0
  177. /package/components/{sessions → shared}/lore-entries/lore-entries.ts +0 -0
  178. /package/components/{sessions → shared}/messages/MessageBlocksView.svelte +0 -0
  179. /package/components/{sessions → shared}/messages/MessageControls.svelte +0 -0
  180. /package/components/{sessions → shared}/messages/MessageMediaStrip.svelte +0 -0
  181. /package/components/{sessions → shared}/messages/MessagePartsView.svelte +0 -0
  182. /package/components/{sessions → shared}/messages/MessageStateLedger.svelte +0 -0
  183. /package/components/{sessions → shared}/messages/NextCharacterBlock.svelte +0 -0
  184. /package/components/{sessions → shared}/messages/SessionContainer.svelte +0 -0
  185. /package/components/{sessions → shared}/messages/StateProposalList.svelte +0 -0
  186. /package/components/{sessions → shared}/messages/mediaStrip.ts +0 -0
  187. /package/components/{sessions → shared}/messages/messages.ts +0 -0
  188. /package/components/{sessions → shared}/scene-portraits/StatBars.svelte +0 -0
  189. /package/components/{sessions → shared}/scene-portraits/scene-portraits.ts +0 -0
  190. /package/components/{sessions → shared}/state/SlotControl.svelte +0 -0
  191. /package/components/{sessions → shared}/state/entryFinder.ts +0 -0
  192. /package/components/{sessions → shared}/state/slotWriter.svelte.ts +0 -0
  193. /package/components/{sessions → shared}/stats/stats.ts +0 -0
  194. /package/components/{sessions/shared → shared}/widgetRef.svelte.ts +0 -0
  195. /package/components/{sessions → shared}/world-state/world-state.ts +0 -0
  196. /package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.js +0 -0
  197. /package/dist/{entries.d.ts → registry/entries.d.ts} +0 -0
  198. /package/dist/{entries.js → registry/entries.js} +0 -0
  199. /package/dist/{genres.d.ts → registry/genres.d.ts} +0 -0
  200. /package/dist/{ui/sessions → registry}/layouts.d.ts +0 -0
  201. /package/dist/{ui/sessions → registry}/layouts.js +0 -0
  202. /package/dist/{slots.d.ts → registry/slots.d.ts} +0 -0
  203. /package/dist/{slots.js → registry/slots.js} +0 -0
  204. /package/dist/{statShapes.d.ts → registry/statShapes.d.ts} +0 -0
  205. /package/dist/{statShapes.js → registry/statShapes.js} +0 -0
  206. /package/dist/{ui/sessions → registry}/widgets.d.ts +0 -0
  207. /package/dist/{guideMascotImage.d.ts → seed/guideMascotImage.d.ts} +0 -0
  208. /package/dist/{guideMascotImage.js → seed/guideMascotImage.js} +0 -0
  209. /package/dist/{presets.d.ts → seed/presets.d.ts} +0 -0
  210. /package/dist/{prompts.d.ts → seed/prompts.d.ts} +0 -0
  211. /package/dist/{graphBuild.d.ts → shared/graphBuild.d.ts} +0 -0
  212. /package/dist/{graphBuild.js → shared/graphBuild.js} +0 -0
  213. /package/dist/{ui/sessions → shared/ui}/conversation/actionsDisclosure.d.ts +0 -0
  214. /package/dist/{ui/sessions → shared/ui}/conversation/actionsDisclosure.js +0 -0
  215. /package/dist/{ui/sessions → shared/ui}/conversation/composerTray.d.ts +0 -0
  216. /package/dist/{ui/sessions → shared/ui}/conversation/composerTray.js +0 -0
  217. /package/dist/{ui/sessions → shared/ui}/conversation/dossier.d.ts +0 -0
  218. /package/dist/{ui/sessions → shared/ui}/conversation/dossier.js +0 -0
  219. /package/dist/{ui/sessions → shared/ui}/conversation/formAnswer.d.ts +0 -0
  220. /package/dist/{ui/sessions → shared/ui}/conversation/formAnswer.js +0 -0
  221. /package/dist/{ui/sessions → shared/ui}/conversation/itemValues.d.ts +0 -0
  222. /package/dist/{ui/sessions → shared/ui}/conversation/itemValues.js +0 -0
  223. /package/dist/{ui/sessions → shared/ui}/conversation/messageOrder.d.ts +0 -0
  224. /package/dist/{ui/sessions → shared/ui}/conversation/messageOrder.js +0 -0
  225. /package/dist/{ui/sessions → shared/ui}/conversation/messageSpeaker.d.ts +0 -0
  226. /package/dist/{ui/sessions → shared/ui}/conversation/messageSpeaker.js +0 -0
  227. /package/dist/{ui/sessions → shared/ui}/conversation/messageVerbState.d.ts +0 -0
  228. /package/dist/{ui/sessions → shared/ui}/conversation/messageVerbState.js +0 -0
  229. /package/dist/{ui/sessions → shared/ui}/conversation/slashPalette.d.ts +0 -0
  230. /package/dist/{ui/sessions → shared/ui}/conversation/slashPalette.js +0 -0
  231. /package/dist/{ui/sessions → shared/ui}/conversation/text.d.ts +0 -0
  232. /package/dist/{ui/sessions → shared/ui}/conversation/text.js +0 -0
  233. /package/dist/{ui/sessions → shared/ui}/lore-entries/index.js +0 -0
  234. /package/dist/{ui/sessions → shared/ui}/scene-portraits/portraits.d.ts +0 -0
  235. /package/dist/{ui/sessions → shared/ui}/scene-portraits/portraits.js +0 -0
  236. /package/dist/{ui/sessions → shared/ui}/session-state/barMath.d.ts +0 -0
  237. /package/dist/{ui/sessions → shared/ui}/session-state/barMath.js +0 -0
  238. /package/dist/{ui/sessions → shared/ui}/session-state/shapes.d.ts +0 -0
  239. /package/dist/{ui/sessions → shared/ui}/session-state/shapes.js +0 -0
  240. /package/dist/{ui/sessions → shared/ui}/session-state/stateView.d.ts +0 -0
  241. /package/dist/{ui/sessions → shared/ui}/session-state/stateView.js +0 -0
  242. /package/dist/{ui/sessions → shared/ui}/widgetContext.d.ts +0 -0
  243. /package/dist/{ui/sessions → shared/ui}/widgetContext.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serene-pub/core-catalog",
3
- "version": "0.6.0-pr-2",
3
+ "version": "0.6.0-pr-4",
4
4
  "description": "The genres, pipelines, hook declarations and core components Serene Pub ships. Serene Pub seeds from it at boot, conformance uses it as fixtures, and plugin authors import it for typed references.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/SerenePub/serene-pub-sdk/tree/main/core-catalog#readme",
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "sideEffects": [
20
20
  "./dist/index.js",
21
- "./dist/entries.js",
22
- "./dist/statShapes.js",
23
- "./dist/slots.js",
24
- "./dist/genres.js",
25
- "./dist/annexField.js",
26
- "./dist/ui/sessions/widgets.js"
21
+ "./dist/registry/entries.js",
22
+ "./dist/registry/statShapes.js",
23
+ "./dist/registry/slots.js",
24
+ "./dist/registry/genres.js",
25
+ "./dist/shared/annexField.js",
26
+ "./dist/registry/widgets.js"
27
27
  ],
28
28
  "files": [
29
29
  "dist",
@@ -40,40 +40,40 @@
40
40
  "import": "./dist/index.js"
41
41
  },
42
42
  "./conversation": {
43
- "types": "./dist/ui/sessions/conversation/index.d.ts",
44
- "import": "./dist/ui/sessions/conversation/index.js"
43
+ "types": "./dist/shared/ui/conversation/index.d.ts",
44
+ "import": "./dist/shared/ui/conversation/index.js"
45
45
  },
46
46
  "./session-state": {
47
- "types": "./dist/ui/sessions/session-state/index.d.ts",
48
- "import": "./dist/ui/sessions/session-state/index.js"
47
+ "types": "./dist/shared/ui/session-state/index.d.ts",
48
+ "import": "./dist/shared/ui/session-state/index.js"
49
49
  },
50
50
  "./widgets": {
51
- "types": "./dist/ui/sessions/widgetContext.d.ts",
52
- "import": "./dist/ui/sessions/widgetContext.js"
51
+ "types": "./dist/shared/ui/widgetContext.d.ts",
52
+ "import": "./dist/shared/ui/widgetContext.js"
53
53
  },
54
54
  "./core-widgets": {
55
- "types": "./dist/ui/sessions/coreWidgetsEntry.d.ts",
56
- "import": "./dist/ui/sessions/coreWidgetsEntry.js"
55
+ "types": "./dist/shared/ui/coreWidgetsEntry.d.ts",
56
+ "import": "./dist/shared/ui/coreWidgetsEntry.js"
57
57
  },
58
58
  "./lore-entries": {
59
- "types": "./dist/ui/sessions/lore-entries/index.d.ts",
60
- "import": "./dist/ui/sessions/lore-entries/index.js"
59
+ "types": "./dist/shared/ui/lore-entries/index.d.ts",
60
+ "import": "./dist/shared/ui/lore-entries/index.js"
61
61
  },
62
62
  "./authors-note": {
63
- "types": "./dist/ui/sessions/authors-note/index.d.ts",
64
- "import": "./dist/ui/sessions/authors-note/index.js"
63
+ "types": "./dist/genres/chat/ui/authors-note/index.d.ts",
64
+ "import": "./dist/genres/chat/ui/authors-note/index.js"
65
65
  },
66
66
  "./scene-portraits": {
67
- "types": "./dist/ui/sessions/scene-portraits/index.d.ts",
68
- "import": "./dist/ui/sessions/scene-portraits/index.js"
67
+ "types": "./dist/shared/ui/scene-portraits/index.d.ts",
68
+ "import": "./dist/shared/ui/scene-portraits/index.js"
69
69
  },
70
70
  "./components/*": "./dist/components/*",
71
71
  "./package.json": "./package.json"
72
72
  },
73
73
  "peerDependencies": {
74
- "@serene-pub/sdk": "^0.6.0-pr-2",
75
- "@serene-pub/contracts": "^0.6.0-pr-2",
76
- "@serene-pub/component-client": "^0.6.0-pr-2",
74
+ "@serene-pub/sdk": "^0.6.0-pr-4",
75
+ "@serene-pub/contracts": "^0.6.0-pr-4",
76
+ "@serene-pub/component-client": "^0.6.0-pr-4",
77
77
  "svelte": ">=5"
78
78
  },
79
79
  "peerDependenciesMeta": {
@@ -88,10 +88,10 @@
88
88
  "build": "tsc -p tsconfig.build.json && node scripts/buildComponents.mjs"
89
89
  },
90
90
  "devDependencies": {
91
- "@serene-pub/sdk": "0.6.0-pr-2",
92
- "@serene-pub/contracts": "0.6.0-pr-2",
93
- "@serene-pub/cli": "0.6.0-pr-2",
94
- "@serene-pub/component-client": "0.6.0-pr-2",
91
+ "@serene-pub/sdk": "0.6.0-pr-4",
92
+ "@serene-pub/contracts": "0.6.0-pr-4",
93
+ "@serene-pub/cli": "0.6.0-pr-4",
94
+ "@serene-pub/component-client": "0.6.0-pr-4",
95
95
  "svelte": "^5.56.0"
96
96
  },
97
97
  "publishConfig": {
@@ -1,169 +0,0 @@
1
- /**
2
- * The Adventure genre's actions — the small pipelines a player fires from the
3
- * composer (DESIGN-adventure-genre.md, "Actions").
4
- *
5
- * `session-action` is an OPEN event: any number of pipelines may serve it, and
6
- * which ones a session offers is the preset's `actions.include`. So these are
7
- * the E-series "events are all optional" made concrete — each is two or three
8
- * nodes, each contributes its own button, and removing one from a preset takes
9
- * the button with it and breaks nothing.
10
- *
11
- * ## Two shapes, three specs
12
- *
13
- * `adventure-look` writes a message and changes nothing. The other two change
14
- * state and write no message at all, which is worth stating plainly because it
15
- * looks like a bug the first time you see a run with no reply: pressing Rest
16
- * produces a ledger under the last message, not a new one. A pipeline may
17
- * write as often as it likes and is not obliged to write at all (F7).
18
- *
19
- * ## Why `adventure-inventory` is not here
20
- *
21
- * The design lists a fourth action: a prose inventory check with no model call.
22
- * Two things say it should not be a pipeline. What somebody carries is their
23
- * `inventory` stat (phase 3b), already in the state block every prompt reads,
24
- * so a pipeline would only restate it. And the question it answers was the one
25
- * the **Inventory widget** answered continuously, in the session, with the item
26
- * prose on hover. A button that writes a worse copy of a panel already on
27
- * screen is a feature competing with itself. (R79 removed that widget for now;
28
- * the first reason still stands on its own, so the action stays out.)
29
- */
30
- /** @internal */
31
- export declare const ADVENTURE_LOOK_SPEC_ID = "core:spec/adventure-look";
32
- /**
33
- * 1.0.0, edited in place (lorebooks C2, 2026-10-02): a `presences` read and an
34
- * `eligible` step before `rank`. Content-addressed; `specHashes.test.ts`
35
- * records the move.
36
- *
37
- * Edited in place again (owner ruling 2026-10-03): the context step is the
38
- * SCENE builder, with the places listing — see `adventureLookSpec`.
39
- *
40
- * And again (history window, 2026-10-03): `contextBudget` runs before the
41
- * reads and `gather.history.read` takes its `budget`, so the transcript fit,
42
- * not the newest 100 rows, decides where the conversation starts.
43
- * @internal
44
- */
45
- export declare const ADVENTURE_LOOK_VERSION = "1.0.0";
46
- /**
47
- * The narrator describes where you are, from the lore and the world state, and
48
- * changes nothing.
49
- *
50
- * It is also the opening scene: the create pipeline deliberately makes no model
51
- * call, so this is the button a new Adventure session is meant to start with.
52
- *
53
- * **Built on the scene builder** (`core:task/build-scene-context@1`, owner
54
- * ruling 2026-10-03), the context Adventure's own narrator reads, so Look is
55
- * shown what the narrator is shown: `{{location}}`, the clock and the weather,
56
- * the place the scene is in with its ways on (`{{locationEntry}}`) and every
57
- * place the world holds (`{{knownLocations}}`), off the same `rooms` listing
58
- * and the same room rule as `adventure-respond`. It was built on
59
- * `build-template-context@1`, which computes no scene variables, so Look
60
- * described a place it had never been shown. No `plan`: nothing is planned,
61
- * so `{{beats}}` is empty and the builder anchors on the world state alone.
62
- * The builder also resolves the step as nobody, so the line the model
63
- * continues is the narrator's rather than the session's last speaker's.
64
- *
65
- * Its prompt row moved with it, from the `build-template-context` pool into
66
- * the `build-scene-context` pool (migration `0111` re-keys the row in place,
67
- * so a configuration pointing at it keeps pointing at it).
68
- * @internal
69
- */
70
- export declare const adventureLookSpec: () => import("@serene-pub/sdk").SpecDocument;
71
- /** @internal */
72
- export declare const ADVENTURE_REST_SPEC_ID = "core:spec/adventure-rest";
73
- /** @internal */
74
- export declare const ADVENTURE_REST_VERSION = "1.0.0";
75
- /** Stop and recover: stamina and health back, and the clock moves on. @internal */
76
- export declare const adventureRestSpec: () => import("@serene-pub/sdk").SpecDocument;
77
- /** @internal */
78
- export declare const ADVENTURE_ADVANCE_TIME_SPEC_ID = "core:spec/adventure-advance-time";
79
- /** @internal */
80
- export declare const ADVENTURE_ADVANCE_TIME_VERSION = "1.0.0";
81
- /** Let time pass: the world clock steps on, and the weather may turn with it. @internal */
82
- export declare const adventureAdvanceTimeSpec: () => import("@serene-pub/sdk").SpecDocument;
83
- /** @internal */
84
- export declare const ADVENTURE_ASK_SPEC_ID = "core:spec/adventure-ask";
85
- /** @internal */
86
- export declare const ADVENTURE_ASK_VERSION = "1.0.0";
87
- /** @internal */
88
- export declare const ADVENTURE_ANSWER_SPEC_ID = "core:spec/adventure-answer";
89
- /** @internal */
90
- export declare const ADVENTURE_ANSWER_VERSION = "1.0.0";
91
- /**
92
- * What the narrator's question comes back as, from `generate-json@1`.
93
- *
94
- * The addressee is a **name** rather than a participant reference: the
95
- * model reads names off the transcript, and `make-choices@1` resolves
96
- * the name — against the cast first, then the members' presences, by
97
- * name or nickname — into `character:<id>` at the write. A name that
98
- * resolves to nobody leaves the block unaddressed; a press on an
99
- * unaddressed block is answered as the presser (their presence when
100
- * they hold one, else their own line).
101
- * @internal
102
- */
103
- export declare const ADVENTURE_ASK_SCHEMA: {
104
- readonly type: 'object';
105
- readonly properties: {
106
- readonly addressee: {
107
- readonly type: 'string';
108
- };
109
- readonly question: {
110
- readonly type: 'string';
111
- };
112
- readonly options: {
113
- readonly type: 'array';
114
- readonly minItems: 2;
115
- readonly maxItems: 4;
116
- readonly items: {
117
- readonly type: 'object';
118
- readonly properties: {
119
- readonly key: {
120
- readonly type: 'string';
121
- };
122
- readonly label: {
123
- readonly type: 'string';
124
- };
125
- };
126
- readonly required: readonly ['key', 'label'];
127
- readonly additionalProperties: false;
128
- };
129
- };
130
- };
131
- readonly required: readonly ['addressee', 'question', 'options'];
132
- readonly additionalProperties: false;
133
- };
134
- /**
135
- * **Ask**: the narrator puts a question with options to one of the cast.
136
- *
137
- * The worked form of R-15: the oracle writes `{ addressee, question, options }`,
138
- * `make-choices` turns it into a `choices` block addressed to that cast
139
- * member (`character:<id>`) whose options fire `answer`, and the narration
140
- * row carries it. The host stamps the block with this spec's `answer` action
141
- * and an id at the write; if the run's pinned portrayals say the AI portrays
142
- * the addressee, it records `form-addressed` and the genre's answer pipeline
143
- * (`core:spec/answer-form-adventure`) answers as them — else the block waits
144
- * for the person portraying them to click. Either way the click, real or
145
- * committed, runs `adventure-answer` below.
146
- *
147
- * Two actions on one spec, each its own thing to the venue model: `ask` is
148
- * the composer's chip and `/ask`; `answer` is what the block's options fire,
149
- * declared here so the block has an identity to be stamped with. `answer`
150
- * is offered to any participant — the form's **addressee** is who may
151
- * actually press it, decided per block at the fire.
152
- * @internal
153
- */
154
- export declare const adventureAskSpec: () => import("@serene-pub/sdk").SpecDocument;
155
- /**
156
- * **Answer**: what a form's option fires — the addressee's line, as the
157
- * addressee. `read-answer` takes the press apart (the chosen option's label,
158
- * who answered and their character row) and `create-message` posts the
159
- * label as that participant's message. A person portraying the addressee
160
- * clicks and the row is theirs; the answer pipeline commits an oracle's
161
- * choice and the row is the AI's — same spec, same row, either way, which
162
- * is the whole of "exactly as a click would".
163
- *
164
- * Declared on its own spec rather than folded into `ask`: a spec has one
165
- * inlet and one graph, and asking and answering are two graphs.
166
- * @internal
167
- */
168
- export declare const adventureAnswerSpec: () => import("@serene-pub/sdk").SpecDocument;
169
- //# sourceMappingURL=adventureActions.d.ts.map