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

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 (360) 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/world-state/WorldState.svelte → shared/actions/Actions.svelte} +5 -5
  5. package/components/shared/actions/ActionsWidget.svelte +118 -0
  6. package/components/shared/actions/actions.ts +11 -0
  7. package/components/shared/album/Album.svelte +24 -0
  8. package/components/shared/album/AlbumWidget.svelte +163 -0
  9. package/components/shared/album/album.ts +10 -0
  10. package/components/shared/annex/Annex.svelte +24 -0
  11. package/components/shared/annex/AnnexWidget.svelte +151 -0
  12. package/components/shared/annex/annex.ts +10 -0
  13. package/components/shared/attendance/Attendance.svelte +24 -0
  14. package/components/shared/attendance/AttendanceWidget.svelte +136 -0
  15. package/components/shared/attendance/attendance.ts +12 -0
  16. package/components/shared/backdrop/Backdrop.svelte +24 -0
  17. package/components/shared/backdrop/BackdropWidget.svelte +345 -0
  18. package/components/shared/backdrop/backdrop.ts +10 -0
  19. package/components/shared/chronicle/Chronicle.svelte +36 -0
  20. package/components/shared/chronicle/ChronicleWidget.svelte +569 -0
  21. package/components/shared/chronicle/chronicle.ts +11 -0
  22. package/components/{sessions → shared}/lore-entries/LoreEntries.svelte +1 -1
  23. package/components/{sessions → shared}/lore-entries/LoreEntriesWidget.svelte +3 -3
  24. package/components/shared/map-canvas/MapCanvas.svelte +171 -0
  25. package/components/shared/map-canvas/index.ts +390 -0
  26. package/components/{sessions → shared}/messages/MessageComposer.svelte +1 -1
  27. package/components/{sessions → shared}/messages/MessageControls.svelte +42 -0
  28. package/components/{sessions → shared}/messages/MessageStateLedger.svelte +19 -8
  29. package/components/{sessions → shared}/messages/Messages.svelte +1 -1
  30. package/components/{sessions → shared}/messages/MessagesWidget.svelte +126 -40
  31. package/components/{sessions → shared}/messages/NextCharacterBlock.svelte +17 -14
  32. package/components/shared/messages/SceneCueChip.svelte +82 -0
  33. package/components/shared/messages/SceneDivider.svelte +399 -0
  34. package/components/{sessions → shared}/messages/SessionComposer.svelte +33 -9
  35. package/components/shared/messages/SessionContainer.svelte +651 -0
  36. package/components/{sessions → shared}/messages/SessionMessage.svelte +52 -7
  37. package/components/shared/messages/TurnLine.svelte +254 -0
  38. package/components/{sessions → shared}/messages/conversation.svelte.ts +191 -2
  39. package/components/shared/messages/sceneMarks.ts +397 -0
  40. package/components/shared/places/Places.svelte +24 -0
  41. package/components/shared/places/PlacesWidget.svelte +290 -0
  42. package/components/shared/places/places.ts +11 -0
  43. package/components/{sessions → shared}/scene-portraits/ScenePortraits.svelte +1 -1
  44. package/components/shared/scene-portraits/ScenePortraitsWidget.svelte +404 -0
  45. package/components/{sessions → shared}/state/SlotControl.svelte +9 -1
  46. package/components/{sessions → shared}/stats/Stats.svelte +1 -1
  47. package/components/shared/stats/StatsWidget.svelte +350 -0
  48. package/components/{sessions → shared}/stats/stats.ts +3 -2
  49. package/components/shared/turn-order/TurnOrder.svelte +24 -0
  50. package/components/shared/turn-order/TurnOrderWidget.svelte +167 -0
  51. package/components/shared/turn-order/turn-order.ts +11 -0
  52. package/components/{sessions/shared → shared}/widgetRef.svelte.ts +9 -2
  53. package/components/shared/world-state/WorldState.svelte +33 -0
  54. package/components/shared/world-state/world-state.ts +10 -0
  55. package/components/tsconfig.json +2 -2
  56. package/dist/components/actions.js +294 -0
  57. package/dist/components/actions.source.json +1 -0
  58. package/dist/components/album.js +386 -0
  59. package/dist/components/album.source.json +1 -0
  60. package/dist/components/annex.js +457 -0
  61. package/dist/components/annex.source.json +1 -0
  62. package/dist/components/attendance.js +353 -0
  63. package/dist/components/attendance.source.json +1 -0
  64. package/dist/components/authors-note.js +5 -5
  65. package/dist/components/authors-note.source.json +1 -1
  66. package/dist/components/backdrop.js +561 -0
  67. package/dist/components/backdrop.source.json +1 -0
  68. package/dist/components/chronicle.js +1141 -0
  69. package/dist/components/chronicle.source.json +1 -0
  70. package/dist/components/core-ui.json +1 -1
  71. package/dist/components/lore-entries.js +5 -5
  72. package/dist/components/lore-entries.source.json +1 -1
  73. package/dist/components/messages.js +3014 -2489
  74. package/dist/components/messages.source.json +1 -1
  75. package/dist/components/places.js +1133 -0
  76. package/dist/components/places.source.json +1 -0
  77. package/dist/components/scene-portraits.js +514 -345
  78. package/dist/components/scene-portraits.source.json +1 -1
  79. package/dist/components/shared-3K7SOGH7.js +16 -0
  80. package/dist/components/shared-452PIS46.js +156 -0
  81. package/dist/components/shared-GEDAMORM.js +45 -0
  82. package/dist/components/{shared-TCQZXBE3.js → shared-GXTL5G2H.js} +4 -3
  83. package/dist/components/shared-ITSLBJB5.js +478 -0
  84. package/dist/components/shared-NK7QSVMU.js +400 -0
  85. package/dist/components/shared-TDWKI2QV.js +58 -0
  86. package/dist/components/{shared-UAQVMZZK.js → shared-XBPH6USH.js} +586 -18
  87. package/dist/components/{shared-AINANAIA.js → shared-XISPHAKY.js} +502 -98
  88. package/dist/components/stats.js +8 -208
  89. package/dist/components/stats.source.json +1 -1
  90. package/dist/components/turn-order.js +461 -0
  91. package/dist/components/turn-order.source.json +1 -0
  92. package/dist/components/world-state.js +14 -202
  93. package/dist/components/world-state.source.json +1 -1
  94. package/dist/{answerForm.d.ts → factories/answerForm.d.ts} +4 -30
  95. package/dist/{answerForm.js → factories/answerForm.js} +10 -39
  96. package/dist/factories/once.d.ts +7 -0
  97. package/dist/factories/once.js +9 -0
  98. package/dist/{turnOrder.d.ts → factories/turnOrder.d.ts} +0 -22
  99. package/dist/{turnOrder.js → factories/turnOrder.js} +4 -104
  100. package/dist/genres/adventure/advanceTime.d.ts +18 -0
  101. package/dist/genres/adventure/advanceTime.js +24 -0
  102. package/dist/genres/adventure/answer.d.ts +23 -0
  103. package/dist/genres/adventure/answer.js +59 -0
  104. package/dist/genres/adventure/answerForm.d.ts +9 -0
  105. package/dist/genres/adventure/answerForm.js +11 -0
  106. package/dist/genres/adventure/ask.d.ts +73 -0
  107. package/dist/genres/adventure/ask.js +157 -0
  108. package/dist/genres/adventure/create.d.ts +36 -0
  109. package/dist/genres/adventure/create.js +62 -0
  110. package/dist/genres/adventure/illustrateScene.d.ts +7 -0
  111. package/dist/genres/adventure/illustrateScene.js +19 -0
  112. package/dist/genres/adventure/index.d.ts +45 -0
  113. package/dist/genres/adventure/index.js +45 -0
  114. package/dist/genres/adventure/keeperAction.d.ts +43 -0
  115. package/dist/genres/adventure/keeperAction.js +217 -0
  116. package/dist/genres/adventure/look.d.ts +45 -0
  117. package/dist/genres/adventure/look.js +209 -0
  118. package/dist/{adventure.d.ts → genres/adventure/respond.d.ts} +74 -65
  119. package/dist/{adventure.js → genres/adventure/respond.js} +125 -65
  120. package/dist/genres/adventure/rest.d.ts +10 -0
  121. package/dist/genres/adventure/rest.js +16 -0
  122. package/dist/genres/adventure/summarizeScene.d.ts +7 -0
  123. package/dist/genres/adventure/summarizeScene.js +14 -0
  124. package/dist/genres/adventure/turnOrder.d.ts +10 -0
  125. package/dist/genres/adventure/turnOrder.js +27 -0
  126. package/dist/genres/chat/advanceTime.d.ts +7 -0
  127. package/dist/genres/chat/advanceTime.js +17 -0
  128. package/dist/genres/chat/answerForm.d.ts +9 -0
  129. package/dist/genres/chat/answerForm.js +11 -0
  130. package/dist/genres/chat/create.d.ts +7 -0
  131. package/dist/{createChat.js → genres/chat/create.js} +6 -6
  132. package/dist/genres/chat/generateImage.d.ts +7 -0
  133. package/dist/{generateImage.js → genres/chat/generateImage.js} +26 -22
  134. package/dist/genres/chat/illustrateScene.d.ts +8 -0
  135. package/dist/genres/chat/illustrateScene.js +19 -0
  136. package/dist/genres/chat/index.d.ts +18 -0
  137. package/dist/genres/chat/index.js +19 -0
  138. package/dist/{narrate.d.ts → genres/chat/narrate.d.ts} +3 -3
  139. package/dist/{narrate.js → genres/chat/narrate.js} +37 -12
  140. package/dist/{narrateCharacter.d.ts → genres/chat/narrateCharacter.d.ts} +2 -2
  141. package/dist/{narrateCharacter.js → genres/chat/narrateCharacter.js} +39 -17
  142. package/dist/genres/chat/respond.d.ts +25 -0
  143. package/dist/{respond.js → genres/chat/respond.js} +91 -23
  144. package/dist/genres/chat/summarizeScene.d.ts +7 -0
  145. package/dist/genres/chat/summarizeScene.js +14 -0
  146. package/dist/genres/chat/turnOrder.d.ts +9 -0
  147. package/dist/genres/chat/turnOrder.js +28 -0
  148. package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.d.ts +1 -1
  149. package/dist/genres/guide/answerForm.d.ts +9 -0
  150. package/dist/genres/guide/answerForm.js +11 -0
  151. package/dist/genres/guide/create.d.ts +24 -0
  152. package/dist/genres/guide/create.js +58 -0
  153. package/dist/genres/guide/index.d.ts +10 -0
  154. package/dist/genres/guide/index.js +10 -0
  155. package/dist/{guide.d.ts → genres/guide/respond.d.ts} +1 -20
  156. package/dist/{guide.js → genres/guide/respond.js} +32 -61
  157. package/dist/genres/guide/summarizeScene.d.ts +7 -0
  158. package/dist/genres/guide/summarizeScene.js +14 -0
  159. package/dist/genres/guide/turnOrder.d.ts +10 -0
  160. package/dist/genres/guide/turnOrder.js +27 -0
  161. package/dist/genres/index.d.ts +14 -0
  162. package/dist/genres/index.js +41 -0
  163. package/dist/genres/lair/advanceTime.d.ts +7 -0
  164. package/dist/genres/lair/advanceTime.js +17 -0
  165. package/dist/genres/lair/answerForm.d.ts +17 -0
  166. package/dist/genres/lair/answerForm.js +19 -0
  167. package/dist/genres/lair/buildRoom.d.ts +64 -0
  168. package/dist/genres/lair/buildRoom.js +244 -0
  169. package/dist/genres/lair/castellanAction.d.ts +27 -0
  170. package/dist/genres/lair/castellanAction.js +177 -0
  171. package/dist/genres/lair/create.d.ts +28 -0
  172. package/dist/genres/lair/create.js +69 -0
  173. package/dist/genres/lair/fileRoom.d.ts +53 -0
  174. package/dist/genres/lair/fileRoom.js +288 -0
  175. package/dist/genres/lair/index.d.ts +62 -0
  176. package/dist/genres/lair/index.js +63 -0
  177. package/dist/genres/lair/nudge.d.ts +25 -0
  178. package/dist/genres/lair/nudge.js +78 -0
  179. package/dist/{lair.d.ts → genres/lair/respond.d.ts} +46 -59
  180. package/dist/{lair.js → genres/lair/respond.js} +55 -76
  181. package/dist/genres/lair/reveal.d.ts +10 -0
  182. package/dist/genres/lair/reveal.js +18 -0
  183. package/dist/genres/lair/roomAnswer.d.ts +86 -0
  184. package/dist/genres/lair/roomAnswer.js +378 -0
  185. package/dist/genres/lair/summarizeScene.d.ts +39 -0
  186. package/dist/genres/lair/summarizeScene.js +51 -0
  187. package/dist/genres/lair/trap.d.ts +11 -0
  188. package/dist/genres/lair/trap.js +24 -0
  189. package/dist/genres/lair/turnOrder.d.ts +9 -0
  190. package/dist/genres/lair/turnOrder.js +36 -0
  191. package/dist/genres/lair/whisper.d.ts +35 -0
  192. package/dist/genres/lair/whisper.js +90 -0
  193. package/dist/index.d.ts +52 -29
  194. package/dist/index.js +192 -86
  195. package/dist/loadouts.d.ts +37 -0
  196. package/dist/loadouts.js +105 -0
  197. package/dist/{entries.d.ts → registry/entries.d.ts} +1 -1
  198. package/dist/{genres.js → registry/genres.js} +40 -6
  199. package/dist/{ui/sessions → registry}/layouts.d.ts +41 -27
  200. package/dist/{ui/sessions → registry}/layouts.js +90 -49
  201. package/dist/{ui/sessions → registry}/widgets.d.ts +22 -0
  202. package/dist/registry/widgets.js +1294 -0
  203. package/dist/{presets.js → seed/presets.js} +28 -13
  204. package/dist/{prompts.d.ts → seed/prompts.d.ts} +10 -5
  205. package/dist/{prompts.js → seed/prompts.js} +225 -176
  206. package/dist/{annexField.d.ts → shared/annexField.d.ts} +12 -8
  207. package/dist/{annexField.js → shared/annexField.js} +16 -15
  208. package/dist/shared/builtins/branch.d.ts +8 -0
  209. package/dist/shared/builtins/branch.js +13 -0
  210. package/dist/{builtins.d.ts → shared/builtins/builtIn.d.ts} +16 -21
  211. package/dist/{builtins.js → shared/builtins/builtIn.js} +3 -37
  212. package/dist/shared/builtins/delete.d.ts +8 -0
  213. package/dist/shared/builtins/delete.js +13 -0
  214. package/dist/shared/builtins/edit.d.ts +8 -0
  215. package/dist/shared/builtins/edit.js +13 -0
  216. package/dist/shared/builtins/hide.d.ts +8 -0
  217. package/dist/shared/builtins/hide.js +13 -0
  218. package/dist/shared/builtins/index.d.ts +11 -0
  219. package/dist/shared/builtins/index.js +11 -0
  220. package/dist/shared/builtins/swipe.d.ts +8 -0
  221. package/dist/shared/builtins/swipe.js +17 -0
  222. package/dist/shared/describeLikeness.d.ts +14 -0
  223. package/dist/shared/describeLikeness.js +65 -0
  224. package/dist/shared/illustrateScene.d.ts +28 -0
  225. package/dist/shared/illustrateScene.js +181 -0
  226. package/dist/shared/portrait.d.ts +21 -0
  227. package/dist/shared/portrait.js +101 -0
  228. package/dist/shared/spriteFill.d.ts +14 -0
  229. package/dist/shared/spriteFill.js +107 -0
  230. package/dist/shared/sprites.d.ts +34 -0
  231. package/dist/shared/sprites.js +98 -0
  232. package/dist/shared/summarize/character.d.ts +9 -0
  233. package/dist/shared/summarize/character.js +10 -0
  234. package/dist/shared/summarize/history.d.ts +9 -0
  235. package/dist/shared/summarize/history.js +10 -0
  236. package/dist/shared/summarize/index.d.ts +12 -0
  237. package/dist/shared/summarize/index.js +12 -0
  238. package/dist/shared/summarize/scene.d.ts +38 -0
  239. package/dist/shared/summarize/scene.js +42 -0
  240. package/dist/shared/summarize/sceneIds.d.ts +17 -0
  241. package/dist/shared/summarize/sceneIds.js +17 -0
  242. package/dist/shared/summarize/summarizeScene.d.ts +113 -0
  243. package/dist/shared/summarize/summarizeScene.js +234 -0
  244. package/dist/shared/summarize/summarizeSpec.d.ts +54 -0
  245. package/dist/{summarize.js → shared/summarize/summarizeSpec.js} +23 -53
  246. package/dist/shared/summarize/world.d.ts +8 -0
  247. package/dist/shared/summarize/world.js +9 -0
  248. package/dist/shared/timePasses.d.ts +56 -0
  249. package/dist/shared/timePasses.js +86 -0
  250. package/dist/{toolLoop.d.ts → shared/toolLoop.d.ts} +25 -3
  251. package/dist/{toolLoop.js → shared/toolLoop.js} +70 -14
  252. package/dist/shared/ui/actions/index.d.ts +117 -0
  253. package/dist/shared/ui/actions/index.js +154 -0
  254. package/dist/shared/ui/album/index.d.ts +115 -0
  255. package/dist/shared/ui/album/index.js +178 -0
  256. package/dist/shared/ui/annex/index.d.ts +163 -0
  257. package/dist/shared/ui/annex/index.js +273 -0
  258. package/dist/shared/ui/attendance/index.d.ts +97 -0
  259. package/dist/shared/ui/attendance/index.js +89 -0
  260. package/dist/shared/ui/backdrop/index.d.ts +78 -0
  261. package/dist/shared/ui/backdrop/index.js +98 -0
  262. package/dist/shared/ui/chronicle/index.d.ts +230 -0
  263. package/dist/shared/ui/chronicle/index.js +249 -0
  264. package/dist/shared/ui/conversation/dossier.d.ts +33 -0
  265. package/dist/shared/ui/conversation/dossier.js +31 -0
  266. package/dist/{ui/sessions → shared/ui}/conversation/index.d.ts +2 -1
  267. package/dist/{ui/sessions → shared/ui}/conversation/index.js +3 -1
  268. package/dist/{ui/sessions → shared/ui}/conversation/messageVerbState.d.ts +1 -1
  269. package/dist/shared/ui/conversation/storyDays.d.ts +21 -0
  270. package/dist/shared/ui/conversation/storyDays.js +23 -0
  271. package/dist/{ui/sessions → shared/ui}/coreWidgetsEntry.d.ts +1 -1
  272. package/dist/{ui/sessions → shared/ui}/coreWidgetsEntry.js +1 -1
  273. package/dist/{ui/sessions → shared/ui}/lore-entries/index.d.ts +2 -2
  274. package/dist/shared/ui/places/index.d.ts +148 -0
  275. package/dist/shared/ui/places/index.js +249 -0
  276. package/dist/{ui/sessions → shared/ui}/scene-portraits/index.d.ts +1 -1
  277. package/dist/{ui/sessions → shared/ui}/scene-portraits/index.js +1 -1
  278. package/dist/shared/ui/scene-portraits/portraits.d.ts +191 -0
  279. package/dist/shared/ui/scene-portraits/portraits.js +223 -0
  280. package/dist/shared/ui/session-state/index.d.ts +16 -0
  281. package/dist/shared/ui/session-state/index.js +16 -0
  282. package/dist/{ui/sessions → shared/ui}/session-state/shapes.d.ts +2 -2
  283. package/dist/shared/ui/session-state/stateView.d.ts +249 -0
  284. package/dist/shared/ui/session-state/stateView.js +247 -0
  285. package/dist/shared/ui/turn-order/index.d.ts +146 -0
  286. package/dist/shared/ui/turn-order/index.js +257 -0
  287. package/dist/{ui/sessions → shared/ui}/widgetContext.d.ts +19 -10
  288. package/package.json +69 -30
  289. package/components/sessions/messages/SessionContainer.svelte +0 -459
  290. package/components/sessions/scene-portraits/ScenePortraitsWidget.svelte +0 -249
  291. package/components/sessions/stats/StatsWidget.svelte +0 -112
  292. package/components/sessions/world-state/WorldStateWidget.svelte +0 -112
  293. package/components/sessions/world-state/world-state.ts +0 -10
  294. package/dist/adventureActions.d.ts +0 -169
  295. package/dist/adventureActions.js +0 -599
  296. package/dist/createChat.d.ts +0 -7
  297. package/dist/generateImage.d.ts +0 -7
  298. package/dist/lairActions.d.ts +0 -296
  299. package/dist/lairActions.js +0 -1287
  300. package/dist/respond.d.ts +0 -24
  301. package/dist/sprites.d.ts +0 -24
  302. package/dist/sprites.js +0 -102
  303. package/dist/summarize.d.ts +0 -76
  304. package/dist/ui/sessions/conversation/dossier.d.ts +0 -328
  305. package/dist/ui/sessions/conversation/dossier.js +0 -31
  306. package/dist/ui/sessions/scene-portraits/portraits.d.ts +0 -95
  307. package/dist/ui/sessions/scene-portraits/portraits.js +0 -115
  308. package/dist/ui/sessions/session-state/index.d.ts +0 -15
  309. package/dist/ui/sessions/session-state/index.js +0 -15
  310. package/dist/ui/sessions/session-state/stateView.d.ts +0 -155
  311. package/dist/ui/sessions/session-state/stateView.js +0 -141
  312. package/dist/ui/sessions/widgets.js +0 -567
  313. package/components/{sessions → genres/chat}/authors-note/authors-note.ts +0 -0
  314. package/components/{sessions/shared → shared}/context.ts +0 -0
  315. package/components/{sessions → shared}/lore-entries/lore-entries.ts +0 -0
  316. package/components/{sessions → shared}/messages/MessageBlocksView.svelte +0 -0
  317. package/components/{sessions → shared}/messages/MessageMediaStrip.svelte +0 -0
  318. package/components/{sessions → shared}/messages/MessagePartsView.svelte +0 -0
  319. package/components/{sessions → shared}/messages/StateProposalList.svelte +0 -0
  320. package/components/{sessions → shared}/messages/mediaStrip.ts +0 -0
  321. package/components/{sessions → shared}/messages/messages.ts +0 -0
  322. package/components/{sessions → shared}/scene-portraits/StatBars.svelte +0 -0
  323. package/components/{sessions → shared}/scene-portraits/scene-portraits.ts +0 -0
  324. package/components/{sessions → shared}/state/entryFinder.ts +0 -0
  325. package/components/{sessions → shared}/state/slotWriter.svelte.ts +0 -0
  326. package/dist/components/{shared-RJDGOAVC.js → shared-FTRGUE7G.js} +78 -78
  327. /package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.js +0 -0
  328. /package/dist/{entries.js → registry/entries.js} +0 -0
  329. /package/dist/{genres.d.ts → registry/genres.d.ts} +0 -0
  330. /package/dist/{slots.d.ts → registry/slots.d.ts} +0 -0
  331. /package/dist/{slots.js → registry/slots.js} +0 -0
  332. /package/dist/{statShapes.d.ts → registry/statShapes.d.ts} +0 -0
  333. /package/dist/{statShapes.js → registry/statShapes.js} +0 -0
  334. /package/dist/{guideMascotImage.d.ts → seed/guideMascotImage.d.ts} +0 -0
  335. /package/dist/{guideMascotImage.js → seed/guideMascotImage.js} +0 -0
  336. /package/dist/{presets.d.ts → seed/presets.d.ts} +0 -0
  337. /package/dist/{graphBuild.d.ts → shared/graphBuild.d.ts} +0 -0
  338. /package/dist/{graphBuild.js → shared/graphBuild.js} +0 -0
  339. /package/dist/{ui/sessions → shared/ui}/conversation/actionsDisclosure.d.ts +0 -0
  340. /package/dist/{ui/sessions → shared/ui}/conversation/actionsDisclosure.js +0 -0
  341. /package/dist/{ui/sessions → shared/ui}/conversation/composerTray.d.ts +0 -0
  342. /package/dist/{ui/sessions → shared/ui}/conversation/composerTray.js +0 -0
  343. /package/dist/{ui/sessions → shared/ui}/conversation/formAnswer.d.ts +0 -0
  344. /package/dist/{ui/sessions → shared/ui}/conversation/formAnswer.js +0 -0
  345. /package/dist/{ui/sessions → shared/ui}/conversation/itemValues.d.ts +0 -0
  346. /package/dist/{ui/sessions → shared/ui}/conversation/itemValues.js +0 -0
  347. /package/dist/{ui/sessions → shared/ui}/conversation/messageOrder.d.ts +0 -0
  348. /package/dist/{ui/sessions → shared/ui}/conversation/messageOrder.js +0 -0
  349. /package/dist/{ui/sessions → shared/ui}/conversation/messageSpeaker.d.ts +0 -0
  350. /package/dist/{ui/sessions → shared/ui}/conversation/messageSpeaker.js +0 -0
  351. /package/dist/{ui/sessions → shared/ui}/conversation/messageVerbState.js +0 -0
  352. /package/dist/{ui/sessions → shared/ui}/conversation/slashPalette.d.ts +0 -0
  353. /package/dist/{ui/sessions → shared/ui}/conversation/slashPalette.js +0 -0
  354. /package/dist/{ui/sessions → shared/ui}/conversation/text.d.ts +0 -0
  355. /package/dist/{ui/sessions → shared/ui}/conversation/text.js +0 -0
  356. /package/dist/{ui/sessions → shared/ui}/lore-entries/index.js +0 -0
  357. /package/dist/{ui/sessions → shared/ui}/session-state/barMath.d.ts +0 -0
  358. /package/dist/{ui/sessions → shared/ui}/session-state/barMath.js +0 -0
  359. /package/dist/{ui/sessions → shared/ui}/session-state/shapes.js +0 -0
  360. /package/dist/{ui/sessions → shared/ui}/widgetContext.js +0 -0
@@ -0,0 +1,90 @@
1
+ /**
2
+ * The Lair's **Whisper** action. The genre's actions are introduced in
3
+ * `index.ts`.
4
+ */
5
+ import { compile, slot, spec, sessionEvents } from '@serene-pub/sdk';
6
+ import * as C from '@serene-pub/contracts';
7
+ import { lairGenre } from '../../registry/genres.js';
8
+ /** @internal */
9
+ export const LAIR_WHISPER_SPEC_ID = 'core:spec/lair-whisper';
10
+ /** @internal */
11
+ export const LAIR_WHISPER_VERSION = '1.0.0';
12
+ /**
13
+ * **Whisper**: a private instruction to the delvers the master picks, which
14
+ * writes no message (lair re-plan R10, owner ruling 5, 2026-09-28).
15
+ *
16
+ * The press collects **who hears it** (`collects.recipients`, the session's
17
+ * enabled cast, validated by the host) and **what it says**
18
+ * (`collects.text`), and the run writes that line on
19
+ * `core:slot/whisper@1` of each recipient — `resolve-state-changes@1`'s
20
+ * `owners` port makes the one change once per recipient. **Pure:** no model
21
+ * call. The model step that read a name off the typed line ("Verity: hold
22
+ * the line") and its "Lair whisper" prompt row are retired: the modal asks
23
+ * who, so nothing has to guess.
24
+ *
25
+ * **Heard by the recipients alone** (earshot, lair pass R1): the slot
26
+ * declares `earshot: 'holder'`, so each recipient's own voice reads it and no
27
+ * other prompt does — not another delver's, and none of the Castellan's
28
+ * (planner, keeper, narration, Sanctum talk). A whispered delver acts on it
29
+ * when they next speak; **Pick who speaks** gives them the floor now.
30
+ *
31
+ * ⚠ One standing note per delver, not a queue: a slot holds one value, so a
32
+ * new whisper REPLACES a recipient's old one, and a delver it does not name
33
+ * keeps theirs. The modal shows each delver's current whisper
34
+ * (`recipients.overwrites`), so the overwrite is visible before it happens.
35
+ * @internal
36
+ */
37
+ export const lairWhisperSpec = () => compile(spec(LAIR_WHISPER_SPEC_ID, {
38
+ version: LAIR_WHISPER_VERSION,
39
+ taxonomy: { role: 'action' },
40
+ contributes: {
41
+ actions: [
42
+ {
43
+ key: 'whisper',
44
+ venue: { kind: 'composer' },
45
+ quick: true,
46
+ icon: 'ear',
47
+ /** Who hears it and what it says (R3, R10): nothing to do without either. */
48
+ collects: {
49
+ recipients: {
50
+ label: { en: 'Who hears it' },
51
+ min: 1,
52
+ overwrites: 'core:slot/whisper@1',
53
+ },
54
+ text: { need: 'required', label: { en: 'What do you whisper?' } },
55
+ },
56
+ label: { en: 'Whisper' },
57
+ description: {
58
+ en: 'Tell the delvers you pick something only they hear. Nobody else does — not the rest of the party, and not the Castellan.',
59
+ },
60
+ },
61
+ ],
62
+ },
63
+ })
64
+ .inlet('input', C.userMessage.v1(), {
65
+ genre: lairGenre,
66
+ event: sessionEvents.sessionAction,
67
+ })
68
+ .query('state', ($) => C.sessionState.v1({ scope: $.input.sessionScope }))
69
+ /**
70
+ * One change naming no owner, made once per recipient: the
71
+ * `owners` port is what turns `character:<id>` into that seated
72
+ * delver's row, and the slot's own validation is what refuses a
73
+ * line longer than it accepts, with a sentence.
74
+ */
75
+ .query('resolve', ($) => C.resolveStateChanges.v1({
76
+ changes: [{ slot: 'whisper', value: $.input.text }],
77
+ owners: $.input.recipients,
78
+ scope: $.input.sessionScope,
79
+ base: $.state.version,
80
+ }))
81
+ /** Applied rather than proposed — the master's own instruction; see Nudge. */
82
+ .task('apply', ($) => C.setState.v1({
83
+ changes: $.resolve.changes,
84
+ scope: $.input.sessionScope,
85
+ base: $.state.version,
86
+ params: slot.params(),
87
+ }))
88
+ .preset('lair', { label: 'Lair', default: true }, (p) => p.params('apply', { mode: 'apply' }))
89
+ .build());
90
+ //# sourceMappingURL=whisper.js.map
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * publishable package: SP core boot-seeds from it (the app's
6
6
  * `src/lib/server/pipelines/specs/*` are thin re-exports of this package),
7
7
  * conformance consumes it as fixtures, and modders import it for typed
8
- * references — `import { respond, chatGenre } from "@serene-pub/core-catalog"`.
8
+ * references — `import { chatGenre, chatTurnOrder } from "@serene-pub/core-catalog"`.
9
9
  *
10
10
  * Moving the documents here is what makes core the first consumer of the
11
11
  * announce path rather than a special case: one validator, one document
@@ -13,20 +13,38 @@
13
13
  * shipped prompts and the default preset ride the announcement too (T6b);
14
14
  * the shipped default configs stay derived (declarations + default author
15
15
  * preset + ref defaults) — there is no hand-authored config data to carry.
16
+ *
17
+ * ## Where things live
18
+ *
19
+ * - `genres/<genre>/` — every pipeline locked to that genre (create, reply,
20
+ * actions, answer form, turn order), one per file, and any widget only that
21
+ * genre offers (Chat's Author's note, under `genres/chat/ui/`).
22
+ * - `shared/` — what more than one genre uses: the built-in writes, sprites,
23
+ * the annex field write, summarize, the story-graph build, and the shared
24
+ * widgets' typed sections (`shared/ui/`). Also the tool-loop reference,
25
+ * exported as an example and test fixture but not in `CORE_SPECS`.
26
+ * - `factories/` — the builders a genre calls once per genre (answer form,
27
+ * turn order), core's genres and a plugin's alike.
28
+ * - `registry/` — the modules that register on import (genres, slots, stat
29
+ * shapes, entry types, core's widgets) and the layouts the genres name.
30
+ * - `seed/` — the shipped prompts, presets and the guide's mascot image.
31
+ *
32
+ * The widgets' Svelte sources mirror it under `../components/` (`genres/chat/`,
33
+ * `shared/`).
16
34
  */
17
35
  import { type AnnouncementDocument, type CoverageReport, type Extension, type I18n } from '@serene-pub/sdk';
18
- export * from './genres.js';
36
+ export * from './registry/genres.js';
19
37
  /**
20
38
  * The attribute slots core's genres bring.
21
39
  *
22
- * ⚠ A load-bearing re-export, on the same terms as `./entries.js` below:
40
+ * ⚠ A load-bearing re-export, on the same terms as `./registry/entries.js` below:
23
41
  * declaring a slot REGISTERS it, and nothing imports these by value. Without
24
42
  * the module being reached, the Adventure genre would name seven declarations
25
43
  * that this process has never heard of.
26
44
  */
27
45
  /** Core's catalogue of stat shapes — declared before the slots that name them. */
28
- export * from './statShapes.js';
29
- export * from './slots.js';
46
+ export * from './registry/statShapes.js';
47
+ export * from './registry/slots.js';
30
48
  /**
31
49
  * Core's entry types (Part 1). Declaring one **registers** it, which is the
32
50
  * fact-about-the-code route node types take — so this re-export is what puts
@@ -41,29 +59,28 @@ export * from './slots.js';
41
59
  * coreCatalogSideEffects.test.ts` fails when a registering module is missing
42
60
  * from the list.
43
61
  */
44
- export * from './entries.js';
45
- export * from './prompts.js';
46
- export * from './presets.js';
47
- export * from './createChat.js';
48
- export * from './guide.js';
49
- export * from './adventure.js';
50
- export * from './adventureActions.js';
51
- export * from './lair.js';
52
- export * from './lairActions.js';
53
- export * from './answerForm.js';
54
- export * from './respond.js';
55
- export * from './turnOrder.js';
56
- export * from './narrate.js';
57
- export * from './narrateCharacter.js';
58
- export * from './annexField.js';
59
- export * from './builtins.js';
60
- export * from './sprites.js';
61
- export * from './toolLoop.js';
62
- export * from './generateImage.js';
63
- export * from './graphBuild.js';
64
- export * from './summarize.js';
65
- export * from './ui/sessions/widgets.js';
66
- export * from './ui/sessions/layouts.js';
62
+ export * from './registry/entries.js';
63
+ export * from './seed/prompts.js';
64
+ export * from './seed/presets.js';
65
+ export * from './loadouts.js';
66
+ /** Every genre's pipelines, a folder each, and the lists that span them. */
67
+ export * from './genres/index.js';
68
+ /** The builders a genre calls once per genre — core's and a plugin genre's alike. */
69
+ export * from './factories/answerForm.js';
70
+ export * from './factories/turnOrder.js';
71
+ /** What more than one genre runs. */
72
+ export * from './shared/annexField.js';
73
+ export * from './shared/builtins/index.js';
74
+ export * from './shared/sprites.js';
75
+ export * from './shared/spriteFill.js';
76
+ export * from './shared/portrait.js';
77
+ export * from './shared/describeLikeness.js';
78
+ export * from './shared/timePasses.js';
79
+ export * from './shared/toolLoop.js';
80
+ export * from './shared/graphBuild.js';
81
+ export * from './shared/summarize/index.js';
82
+ export * from './registry/widgets.js';
83
+ export * from './registry/layouts.js';
67
84
  /** @experimental */
68
85
  export interface CoreSpec {
69
86
  slug: string;
@@ -80,8 +97,14 @@ export interface CoreSpec {
80
97
  /**
81
98
  * The pipelines core ships — one registry rather than a list of builders
82
99
  * beside a map of display names (two collections that had to agree). `name`
83
- * is what a person calls the thing; a list showing `core:spec/respond` is a
100
+ * is what a person calls the thing; a list showing `core:spec/chat-respond` is a
84
101
  * list of identifiers, not of things.
102
+ *
103
+ * A name says what the pipeline does and never which genre it serves (ruled
104
+ * 2026-10-05): every list of several genres' pipelines shows the genre beside
105
+ * it, so the four create pipelines are each "Create session" and the four
106
+ * replies each "Reply". The slug is genre first, `core:spec/<genre>-<what>`;
107
+ * one that serves every genre is `core:spec/<what>`.
85
108
  * @experimental
86
109
  */
87
110
  export declare const CORE_SPECS: CoreSpec[];
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * publishable package: SP core boot-seeds from it (the app's
6
6
  * `src/lib/server/pipelines/specs/*` are thin re-exports of this package),
7
7
  * conformance consumes it as fixtures, and modders import it for typed
8
- * references — `import { respond, chatGenre } from "@serene-pub/core-catalog"`.
8
+ * references — `import { chatGenre, chatTurnOrder } from "@serene-pub/core-catalog"`.
9
9
  *
10
10
  * Moving the documents here is what makes core the first consumer of the
11
11
  * announce path rather than a special case: one validator, one document
@@ -13,42 +13,94 @@
13
13
  * shipped prompts and the default preset ride the announcement too (T6b);
14
14
  * the shipped default configs stay derived (declarations + default author
15
15
  * preset + ref defaults) — there is no hand-authored config data to carry.
16
+ *
17
+ * ## Where things live
18
+ *
19
+ * - `genres/<genre>/` — every pipeline locked to that genre (create, reply,
20
+ * actions, answer form, turn order), one per file, and any widget only that
21
+ * genre offers (Chat's Author's note, under `genres/chat/ui/`).
22
+ * - `shared/` — what more than one genre uses: the built-in writes, sprites,
23
+ * the annex field write, summarize, the story-graph build, and the shared
24
+ * widgets' typed sections (`shared/ui/`). Also the tool-loop reference,
25
+ * exported as an example and test fixture but not in `CORE_SPECS`.
26
+ * - `factories/` — the builders a genre calls once per genre (answer form,
27
+ * turn order), core's genres and a plugin's alike.
28
+ * - `registry/` — the modules that register on import (genres, slots, stat
29
+ * shapes, entry types, core's widgets) and the layouts the genres name.
30
+ * - `seed/` — the shipped prompts, presets and the guide's mascot image.
31
+ *
32
+ * The widgets' Svelte sources mirror it under `../components/` (`genres/chat/`,
33
+ * `shared/`).
16
34
  */
17
35
  import { announcementOf, defineExtension, } from '@serene-pub/sdk';
18
- import { CORE_PROMPTS } from './prompts.js';
19
- import { corePresetInputs } from './presets.js';
20
- import { adventureGenre, chatGenre, guideGenre } from './genres.js';
21
- import { lairGenre } from './genres.js';
22
- import { CREATE_CHAT_SPEC_ID, createChatSpec } from './createChat.js';
23
- import { CREATE_GUIDE_SPEC_ID, createGuideSpec, GUIDE_RESPOND_SPEC_ID, guideRespondSpec, } from './guide.js';
24
- import { ADVENTURE_CREATE_SPEC_ID, ADVENTURE_RESPOND_SPEC_ID, adventureCreateSpec, adventureRespondSpec, } from './adventure.js';
25
- import { ADVENTURE_ADVANCE_TIME_SPEC_ID, ADVENTURE_ANSWER_SPEC_ID, ADVENTURE_ASK_SPEC_ID, ADVENTURE_LOOK_SPEC_ID, ADVENTURE_REST_SPEC_ID, adventureAdvanceTimeSpec, adventureAnswerSpec, adventureAskSpec, adventureLookSpec, adventureRestSpec, } from './adventureActions.js';
26
- import { ANSWER_FORM_ADVENTURE_SPEC_ID, ANSWER_FORM_CHAT_SPEC_ID, ANSWER_FORM_GUIDE_SPEC_ID, ANSWER_FORM_LAIR_SPEC_ID, answerFormAdventureSpec, answerFormChatSpec, answerFormGuideSpec, answerFormLairSpec, } from './answerForm.js';
27
- import { LAIR_CREATE_SPEC_ID, LAIR_RESPOND_SPEC_ID, lairCreateSpec, lairRespondSpec, } from './lair.js';
28
- import { LAIR_BUILD_ROOM_SPEC_ID, LAIR_FILE_ROOM_SPEC_ID, LAIR_NUDGE_SPEC_ID, LAIR_REVEAL_SPEC_ID, LAIR_ROOM_ANSWER_SPEC_ID, LAIR_TRAP_SPEC_ID, LAIR_WHISPER_SPEC_ID, lairBuildRoomSpec, lairFileRoomSpec, lairNudgeSpec, lairRevealSpec, lairRoomAnswerSpec, lairTrapSpec, lairWhisperSpec, } from './lairActions.js';
29
- import { RESPOND_SPEC_ID, respondSpec } from './respond.js';
30
- import { TURN_ORDER_BY_GENRE } from './turnOrder.js';
31
- import { NARRATE_SPEC_ID, narrateSpec } from './narrate.js';
32
- import { NARRATE_CHARACTER_SPEC_ID, narrateCharacterSpec } from './narrateCharacter.js';
33
- import { CORE_ANNEX_FIELDS, SET_ANNEX_FIELD_SPEC_ID, setAnnexFieldSpec } from './annexField.js';
34
- import { BUILTIN_BRANCH_SPEC_ID, BUILTIN_DELETE_SPEC_ID, BUILTIN_EDIT_SPEC_ID, BUILTIN_HIDE_SPEC_ID, BUILTIN_SWIPE_SPEC_ID, builtinBranchSpec, builtinDeleteSpec, builtinEditSpec, builtinHideSpec, builtinSwipeSpec, } from './builtins.js';
35
- import { TOOL_LOOP_SPEC_ID, toolLoopSpec } from './toolLoop.js';
36
- import { SHOW_SPRITE_SPEC_ID, showSpriteSpec } from './sprites.js';
37
- import { GENERATE_IMAGE_SPEC_ID, generateImageSpec } from './generateImage.js';
38
- import { GRAPH_BUILD_SPEC_ID, graphBuildSpec } from './graphBuild.js';
39
- import { SUMMARIZE_CHARACTER_SPEC_ID, SUMMARIZE_HISTORY_SPEC_ID, SUMMARIZE_SCENE_SPEC_ID, SUMMARIZE_WORLD_SPEC_ID, summarizeCharacterSpec, summarizeHistorySpec, summarizeSceneSpec, summarizeWorldSpec, } from './summarize.js';
40
- export * from './genres.js';
36
+ import { CORE_PROMPTS } from './seed/prompts.js';
37
+ import { corePresetInputs } from './seed/presets.js';
38
+ import { adventureGenre, chatGenre, guideGenre } from './registry/genres.js';
39
+ import { lairGenre } from './registry/genres.js';
40
+ import { CHAT_CREATE_SPEC_ID, createChatSpec } from './genres/chat/create.js';
41
+ import { GUIDE_CREATE_SPEC_ID, createGuideSpec } from './genres/guide/create.js';
42
+ import { GUIDE_RESPOND_SPEC_ID, guideRespondSpec } from './genres/guide/respond.js';
43
+ import { ADVENTURE_CREATE_SPEC_ID, adventureCreateSpec } from './genres/adventure/create.js';
44
+ import { ADVENTURE_RESPOND_SPEC_ID, adventureRespondSpec } from './genres/adventure/respond.js';
45
+ import { ADVENTURE_LOOK_SPEC_ID, adventureLookSpec } from './genres/adventure/look.js';
46
+ import { ADVENTURE_REST_SPEC_ID, adventureRestSpec } from './genres/adventure/rest.js';
47
+ import { ADVENTURE_ADVANCE_TIME_SPEC_ID, adventureAdvanceTimeSpec } from './genres/adventure/advanceTime.js';
48
+ import { ADVENTURE_ASK_SPEC_ID, adventureAskSpec } from './genres/adventure/ask.js';
49
+ import { ADVENTURE_ANSWER_SPEC_ID, adventureAnswerSpec } from './genres/adventure/answer.js';
50
+ import { CHAT_ANSWER_FORM_SPEC_ID, answerFormChatSpec } from './genres/chat/answerForm.js';
51
+ import { ADVENTURE_ANSWER_FORM_SPEC_ID, answerFormAdventureSpec } from './genres/adventure/answerForm.js';
52
+ import { GUIDE_ANSWER_FORM_SPEC_ID, answerFormGuideSpec } from './genres/guide/answerForm.js';
53
+ import { LAIR_ANSWER_FORM_SPEC_ID, answerFormLairSpec } from './genres/lair/answerForm.js';
54
+ import { LAIR_CREATE_SPEC_ID, lairCreateSpec } from './genres/lair/create.js';
55
+ import { LAIR_RESPOND_SPEC_ID, lairRespondSpec } from './genres/lair/respond.js';
56
+ import { LAIR_BUILD_ROOM_SPEC_ID, lairBuildRoomSpec } from './genres/lair/buildRoom.js';
57
+ import { LAIR_ROOM_ANSWER_SPEC_ID, lairRoomAnswerSpec } from './genres/lair/roomAnswer.js';
58
+ import { LAIR_FILE_ROOM_SPEC_ID, lairFileRoomSpec } from './genres/lair/fileRoom.js';
59
+ import { LAIR_NUDGE_SPEC_ID, lairNudgeSpec } from './genres/lair/nudge.js';
60
+ import { LAIR_WHISPER_SPEC_ID, lairWhisperSpec } from './genres/lair/whisper.js';
61
+ import { LAIR_TRAP_SPEC_ID, lairTrapSpec } from './genres/lair/trap.js';
62
+ import { LAIR_REVEAL_SPEC_ID, lairRevealSpec } from './genres/lair/reveal.js';
63
+ import { CHAT_RESPOND_SPEC_ID, respondSpec } from './genres/chat/respond.js';
64
+ import { TURN_ORDER_BY_GENRE } from './genres/index.js';
65
+ import { CHAT_NARRATE_SPEC_ID, narrateSpec } from './genres/chat/narrate.js';
66
+ import { CHAT_SIDE_CHARACTER_SPEC_ID, narrateCharacterSpec } from './genres/chat/narrateCharacter.js';
67
+ import { CORE_ANNEX_FIELDS, SET_ANNEX_FIELD_SPEC_ID, setAnnexFieldSpec } from './shared/annexField.js';
68
+ import { BUILTIN_DELETE_SPEC_ID, builtinDeleteSpec } from './shared/builtins/delete.js';
69
+ import { BUILTIN_HIDE_SPEC_ID, builtinHideSpec } from './shared/builtins/hide.js';
70
+ import { BUILTIN_EDIT_SPEC_ID, builtinEditSpec } from './shared/builtins/edit.js';
71
+ import { BUILTIN_SWIPE_SPEC_ID, builtinSwipeSpec } from './shared/builtins/swipe.js';
72
+ import { BUILTIN_BRANCH_SPEC_ID, builtinBranchSpec } from './shared/builtins/branch.js';
73
+ import { SHOW_SPRITE_SPEC_ID, showSpriteSpec } from './shared/sprites.js';
74
+ import { SPRITE_SET_FILL_SPEC_ID, spriteSetFillSpec } from './shared/spriteFill.js';
75
+ import { CHARACTER_PORTRAIT_SPEC_ID, characterPortraitSpec } from './shared/portrait.js';
76
+ import { DESCRIBE_LIKENESS_SPEC_ID, describeLikenessSpec } from './shared/describeLikeness.js';
77
+ import { CHAT_GENERATE_IMAGE_SPEC_ID, generateImageSpec } from './genres/chat/generateImage.js';
78
+ import { CHAT_ILLUSTRATE_SCENE_SPEC_ID, illustrateSceneSpec } from './genres/chat/illustrateScene.js';
79
+ import { ADVENTURE_ILLUSTRATE_SCENE_SPEC_ID, adventureIllustrateSceneSpec } from './genres/adventure/illustrateScene.js';
80
+ import { CHAT_ADVANCE_TIME_SPEC_ID, chatAdvanceTimeSpec } from './genres/chat/advanceTime.js';
81
+ import { LAIR_ADVANCE_TIME_SPEC_ID, lairAdvanceTimeSpec } from './genres/lair/advanceTime.js';
82
+ import { GRAPH_BUILD_SPEC_ID, graphBuildSpec } from './shared/graphBuild.js';
83
+ import { SUMMARIZE_WORLD_SPEC_ID, summarizeWorldSpec } from './shared/summarize/world.js';
84
+ import { SUMMARIZE_CHARACTER_SPEC_ID, summarizeCharacterSpec } from './shared/summarize/character.js';
85
+ import { SUMMARIZE_SCENE_SPEC_ID, summarizeSceneSpec } from './shared/summarize/scene.js';
86
+ import { SUMMARIZE_HISTORY_SPEC_ID, summarizeHistorySpec } from './shared/summarize/history.js';
87
+ import { ADVENTURE_SUMMARIZE_SCENE_SPEC_ID, CHAT_SUMMARIZE_SCENE_SPEC_ID, GUIDE_SUMMARIZE_SCENE_SPEC_ID, LAIR_SUMMARIZE_SCENE_SPEC_ID, } from './shared/summarize/sceneIds.js';
88
+ import { chatSummarizeSceneSpec } from './genres/chat/summarizeScene.js';
89
+ import { adventureSummarizeSceneSpec } from './genres/adventure/summarizeScene.js';
90
+ import { guideSummarizeSceneSpec } from './genres/guide/summarizeScene.js';
91
+ import { lairSummarizeSceneSpec } from './genres/lair/summarizeScene.js';
92
+ export * from './registry/genres.js';
41
93
  /**
42
94
  * The attribute slots core's genres bring.
43
95
  *
44
- * ⚠ A load-bearing re-export, on the same terms as `./entries.js` below:
96
+ * ⚠ A load-bearing re-export, on the same terms as `./registry/entries.js` below:
45
97
  * declaring a slot REGISTERS it, and nothing imports these by value. Without
46
98
  * the module being reached, the Adventure genre would name seven declarations
47
99
  * that this process has never heard of.
48
100
  */
49
101
  /** Core's catalogue of stat shapes — declared before the slots that name them. */
50
- export * from './statShapes.js';
51
- export * from './slots.js';
102
+ export * from './registry/statShapes.js';
103
+ export * from './registry/slots.js';
52
104
  /**
53
105
  * Core's entry types (Part 1). Declaring one **registers** it, which is the
54
106
  * fact-about-the-code route node types take — so this re-export is what puts
@@ -63,52 +115,58 @@ export * from './slots.js';
63
115
  * coreCatalogSideEffects.test.ts` fails when a registering module is missing
64
116
  * from the list.
65
117
  */
66
- export * from './entries.js';
67
- export * from './prompts.js';
68
- export * from './presets.js';
69
- export * from './createChat.js';
70
- export * from './guide.js';
71
- export * from './adventure.js';
72
- export * from './adventureActions.js';
73
- export * from './lair.js';
74
- export * from './lairActions.js';
75
- export * from './answerForm.js';
76
- export * from './respond.js';
77
- export * from './turnOrder.js';
78
- export * from './narrate.js';
79
- export * from './narrateCharacter.js';
80
- export * from './annexField.js';
81
- export * from './builtins.js';
82
- export * from './sprites.js';
83
- export * from './toolLoop.js';
84
- export * from './generateImage.js';
85
- export * from './graphBuild.js';
86
- export * from './summarize.js';
87
- export * from './ui/sessions/widgets.js';
88
- export * from './ui/sessions/layouts.js';
118
+ export * from './registry/entries.js';
119
+ export * from './seed/prompts.js';
120
+ export * from './seed/presets.js';
121
+ // The core loadouts (I12): declarations the instance seeds unfilled by id.
122
+ export * from './loadouts.js';
123
+ /** Every genre's pipelines, a folder each, and the lists that span them. */
124
+ export * from './genres/index.js';
125
+ /** The builders a genre calls once per genre — core's and a plugin genre's alike. */
126
+ export * from './factories/answerForm.js';
127
+ export * from './factories/turnOrder.js';
128
+ /** What more than one genre runs. */
129
+ export * from './shared/annexField.js';
130
+ export * from './shared/builtins/index.js';
131
+ export * from './shared/sprites.js';
132
+ export * from './shared/spriteFill.js';
133
+ export * from './shared/portrait.js';
134
+ export * from './shared/describeLikeness.js';
135
+ export * from './shared/timePasses.js';
136
+ export * from './shared/toolLoop.js';
137
+ export * from './shared/graphBuild.js';
138
+ export * from './shared/summarize/index.js';
139
+ export * from './registry/widgets.js';
140
+ export * from './registry/layouts.js';
89
141
  /**
90
142
  * The pipelines core ships — one registry rather than a list of builders
91
143
  * beside a map of display names (two collections that had to agree). `name`
92
- * is what a person calls the thing; a list showing `core:spec/respond` is a
144
+ * is what a person calls the thing; a list showing `core:spec/chat-respond` is a
93
145
  * list of identifiers, not of things.
146
+ *
147
+ * A name says what the pipeline does and never which genre it serves (ruled
148
+ * 2026-10-05): every list of several genres' pipelines shows the genre beside
149
+ * it, so the four create pipelines are each "Create session" and the four
150
+ * replies each "Reply". The slug is genre first, `core:spec/<genre>-<what>`;
151
+ * one that serves every genre is `core:spec/<what>`.
94
152
  * @experimental
95
153
  */
96
154
  export const CORE_SPECS = [
97
155
  // First, deliberately: the genre's create pipeline must exist before
98
156
  // anything that declares itself for the genre (24 §3).
99
- { slug: CREATE_CHAT_SPEC_ID, name: 'Create chat', build: createChatSpec },
157
+ { slug: CHAT_CREATE_SPEC_ID, name: 'Create session', build: createChatSpec },
100
158
  /**
101
159
  * The Adventure genre, in the same order and for the same reason: its
102
160
  * create pipeline exists before anything that declares itself for it.
103
161
  */
104
162
  {
105
163
  slug: ADVENTURE_CREATE_SPEC_ID,
106
- name: 'Create adventure',
164
+ name: 'Create session',
107
165
  build: adventureCreateSpec,
108
166
  },
109
167
  {
110
168
  slug: ADVENTURE_RESPOND_SPEC_ID,
111
- name: 'Adventure turn',
169
+ name: 'Reply',
112
170
  build: adventureRespondSpec,
113
171
  },
114
172
  { slug: ADVENTURE_LOOK_SPEC_ID, name: 'Look', build: adventureLookSpec },
@@ -127,10 +185,10 @@ export const CORE_SPECS = [
127
185
  * so nothing that declares itself for the genre can be published before the
128
186
  * genre exists.
129
187
  */
130
- { slug: LAIR_CREATE_SPEC_ID, name: 'Create lair', build: lairCreateSpec },
131
- { slug: LAIR_RESPOND_SPEC_ID, name: 'Lair turn', build: lairRespondSpec },
188
+ { slug: LAIR_CREATE_SPEC_ID, name: 'Create session', build: lairCreateSpec },
189
+ { slug: LAIR_RESPOND_SPEC_ID, name: 'Reply', build: lairRespondSpec },
132
190
  { slug: LAIR_BUILD_ROOM_SPEC_ID, name: 'Build room', build: lairBuildRoomSpec },
133
- /** What the knock's options fire — in no listing; see `lairActions.ts`. */
191
+ /** What the knock's options fire — in no listing; see `genres/lair/roomAnswer.ts`. */
134
192
  { slug: LAIR_ROOM_ANSWER_SPEC_ID, name: 'Answer the door', build: lairRoomAnswerSpec },
135
193
  /** A room described in a message, filed through review (R11) — on a message's ⋮. */
136
194
  { slug: LAIR_FILE_ROOM_SPEC_ID, name: 'File as a room', build: lairFileRoomSpec },
@@ -142,29 +200,29 @@ export const CORE_SPECS = [
142
200
  * The guide genre (R-18, U5g): create first, for the reason above; its
143
201
  * reply answers as the genre's envoy.
144
202
  */
145
- { slug: CREATE_GUIDE_SPEC_ID, name: 'Create guide session', build: createGuideSpec },
146
- { slug: GUIDE_RESPOND_SPEC_ID, name: 'Guide reply', build: guideRespondSpec },
147
- { slug: RESPOND_SPEC_ID, name: 'Session reply', build: respondSpec },
203
+ { slug: GUIDE_CREATE_SPEC_ID, name: 'Create session', build: createGuideSpec },
204
+ { slug: GUIDE_RESPOND_SPEC_ID, name: 'Reply', build: guideRespondSpec },
205
+ { slug: CHAT_RESPOND_SPEC_ID, name: 'Reply', build: respondSpec },
148
206
  /**
149
207
  * The answer pipelines (R-15 *Forms*; U5d): one graph, published once
150
208
  * per shipped genre because a preset binds a spec locked to its genre.
151
209
  * After every genre's create spec, for the reason those come first.
152
210
  */
153
- { slug: ANSWER_FORM_CHAT_SPEC_ID, name: 'Answer a form (chat)', build: answerFormChatSpec },
211
+ { slug: CHAT_ANSWER_FORM_SPEC_ID, name: 'Answer a form', build: answerFormChatSpec },
154
212
  {
155
- slug: ANSWER_FORM_ADVENTURE_SPEC_ID,
156
- name: 'Answer a form (adventure)',
213
+ slug: ADVENTURE_ANSWER_FORM_SPEC_ID,
214
+ name: 'Answer a form',
157
215
  build: answerFormAdventureSpec,
158
216
  },
159
- { slug: ANSWER_FORM_GUIDE_SPEC_ID, name: 'Answer a form (guide)', build: answerFormGuideSpec },
160
- { slug: ANSWER_FORM_LAIR_SPEC_ID, name: 'Answer a form (lair)', build: answerFormLairSpec },
161
- { slug: NARRATE_SPEC_ID, name: 'World narration', build: narrateSpec },
217
+ { slug: GUIDE_ANSWER_FORM_SPEC_ID, name: 'Answer a form', build: answerFormGuideSpec },
218
+ { slug: LAIR_ANSWER_FORM_SPEC_ID, name: 'Answer a form', build: answerFormLairSpec },
219
+ { slug: CHAT_NARRATE_SPEC_ID, name: 'Narrate', build: narrateSpec },
162
220
  // The other half of the narrator split (ruling 2026-09-07). A NEW spec,
163
221
  // not a bump: the 0.6 freeze forbids moving an existing semver and says
164
222
  // nothing about publishing a new slug.
165
223
  {
166
- slug: NARRATE_CHARACTER_SPEC_ID,
167
- name: 'Side character narration',
224
+ slug: CHAT_SIDE_CHARACTER_SPEC_ID,
225
+ name: 'Side character',
168
226
  build: narrateCharacterSpec,
169
227
  },
170
228
  /** Every annex field's write (2026-09-26) — contributes no action; the host's door runs it. */
@@ -185,45 +243,93 @@ export const CORE_SPECS = [
185
243
  * same way: one receipted action per press, emitting `sprite-shown`.
186
244
  */
187
245
  { slug: SHOW_SPRITE_SPEC_ID, name: 'Change sprite', build: showSpriteSpec },
246
+ {
247
+ slug: CHAT_GENERATE_IMAGE_SPEC_ID,
248
+ name: 'Generate image',
249
+ build: generateImageSpec,
250
+ },
188
251
  /**
189
- * The tool-loop reference (20 §9). Published like the others so the
190
- * integration suite runs it against a seeded database — an example nobody
191
- * runs is an example that is already wrong — and bound to no genre, so it
192
- * is never offered in a person's composer.
252
+ * 🚧 The Scene action (DESIGN-image-generation §6.4, I9): a picture of
253
+ * the session as it stands, posted and/or set as the backdrop.
193
254
  */
194
255
  {
195
- slug: TOOL_LOOP_SPEC_ID,
196
- name: 'Tool loop (reference)',
197
- build: toolLoopSpec,
256
+ slug: CHAT_ILLUSTRATE_SCENE_SPEC_ID,
257
+ name: 'Illustrate scene',
258
+ build: illustrateSceneSpec,
198
259
  },
260
+ /** 🚧 The same Scene graph with Adventure's inlet (§16 follow-up D3). */
199
261
  {
200
- slug: GENERATE_IMAGE_SPEC_ID,
201
- name: 'Generate image',
202
- build: generateImageSpec,
262
+ slug: ADVENTURE_ILLUSTRATE_SCENE_SPEC_ID,
263
+ name: 'Illustrate scene',
264
+ build: adventureIllustrateSceneSpec,
265
+ },
266
+ /**
267
+ * 🚧 Time passes… (live scenes §6): the story clock moved by an amount
268
+ * the person picks, no model. One graph (`shared/timePasses.ts`), one
269
+ * spec per genre; Adventure's is its keeper action above.
270
+ */
271
+ { slug: CHAT_ADVANCE_TIME_SPEC_ID, name: 'Time passes', build: chatAdvanceTimeSpec },
272
+ { slug: LAIR_ADVANCE_TIME_SPEC_ID, name: 'Time passes', build: lairAdvanceTimeSpec },
273
+ /**
274
+ * 🚧 Draw a card's sprites from its likeness (image generation I5) — a
275
+ * card action from the Sprites tab, bound to no genre and no session.
276
+ */
277
+ {
278
+ slug: SPRITE_SET_FILL_SPEC_ID,
279
+ name: 'Fill sprites',
280
+ build: spriteSetFillSpec,
281
+ },
282
+ /**
283
+ * 🚧 Portrait (DESIGN-image-generation §6.2, I8): a few pictures of a
284
+ * card offered to its gallery — a card action from the Gallery tab.
285
+ */
286
+ {
287
+ slug: CHARACTER_PORTRAIT_SPEC_ID,
288
+ name: 'Portrait',
289
+ build: characterPortraitSpec,
290
+ },
291
+ /**
292
+ * 🚧 Describe a likeness (§5, follow-up D1): a card's likeness prompt
293
+ * written from its likeness image — a card action from the Likeness tab.
294
+ */
295
+ {
296
+ slug: DESCRIBE_LIKENESS_SPEC_ID,
297
+ name: 'Describe a likeness',
298
+ build: describeLikenessSpec,
203
299
  },
204
300
  {
205
301
  slug: SUMMARIZE_WORLD_SPEC_ID,
206
- name: 'Summarize: world lore',
302
+ name: 'Summarize world lore',
207
303
  build: summarizeWorldSpec,
208
304
  },
209
305
  {
210
306
  slug: SUMMARIZE_CHARACTER_SPEC_ID,
211
- name: 'Summarize: character lore',
307
+ name: 'Summarize character lore',
212
308
  build: summarizeCharacterSpec,
213
309
  },
214
310
  {
215
311
  slug: SUMMARIZE_SCENE_SPEC_ID,
216
- name: 'Summarize: scene',
312
+ name: 'Summarize scene',
217
313
  build: summarizeSceneSpec,
218
314
  },
219
315
  {
220
316
  slug: SUMMARIZE_HISTORY_SPEC_ID,
221
- name: 'Summarize: history entry',
317
+ name: 'Summarize history entry',
222
318
  build: summarizeHistorySpec,
223
319
  },
320
+ /**
321
+ * 🚧 The genre-owned summarize-scene specs (live scenes §13–§14): each
322
+ * core genre's, built by `summarizeScene()` and named by the genre's
323
+ * `summarize.scene`. `core:spec/summarize-scene` above stays the
324
+ * fallback for a genre that names none.
325
+ */
326
+ { slug: CHAT_SUMMARIZE_SCENE_SPEC_ID, name: 'Summarize scene', build: chatSummarizeSceneSpec },
327
+ { slug: ADVENTURE_SUMMARIZE_SCENE_SPEC_ID, name: 'Summarize scene', build: adventureSummarizeSceneSpec },
328
+ { slug: GUIDE_SUMMARIZE_SCENE_SPEC_ID, name: 'Summarize scene', build: guideSummarizeSceneSpec },
329
+ { slug: LAIR_SUMMARIZE_SCENE_SPEC_ID, name: 'Summarize scene', build: lairSummarizeSceneSpec },
224
330
  {
225
331
  slug: GRAPH_BUILD_SPEC_ID,
226
- name: 'Narrative graph build',
332
+ name: 'Build the story graph',
227
333
  build: graphBuildSpec,
228
334
  },
229
335
  /**
@@ -234,9 +340,9 @@ export const CORE_SPECS = [
234
340
  * what they wrote. Last, because each one's lock names its genre and a
235
341
  * spec cannot be published before its genre's create pipeline (24 §3).
236
342
  */
237
- ...TURN_ORDER_BY_GENRE.map(({ spec, genre, build }) => ({
343
+ ...TURN_ORDER_BY_GENRE.map(({ spec, build }) => ({
238
344
  slug: spec,
239
- name: `Turn order (${typeof genre.name === 'string' ? genre.name : genre.name.en})`,
345
+ name: 'Turn order',
240
346
  build,
241
347
  })),
242
348
  ];
@@ -284,7 +390,7 @@ export const coreExtension = () => defineExtension({
284
390
  nodeType: p.nodeType,
285
391
  slot: p.slot,
286
392
  // The announcement-level identity is the bare slug; the seed
287
- // pass's idempotence key wraps it (see prompts.ts). Unique
393
+ // pass's idempotence key wraps it (see seed/prompts.ts). Unique
288
394
  // within a pool, not globally — `summarize-scene-default`
289
395
  // names a row in three of them.
290
396
  slug: p.seedKey.split(':').at(-1),