@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,37 @@
1
+ /**
2
+ * Core's shipped **loadouts** (I12; DESIGN-image-generation §13).
3
+ *
4
+ * Declarations, never pairs: the instance seeds each as a row by its id (the
5
+ * seed key) with an empty pair — **unfilled** — and a node naming an unfilled
6
+ * loadout runs on its transform's default loadout. Everything runs on one
7
+ * model until somebody specialises; the wizard fills Reply and Images.
8
+ *
9
+ * `sampling` names a seeded sampling preset by seed key, never by id.
10
+ */
11
+ import type { LoadoutDecl } from '@serene-pub/sdk';
12
+ /** Core's loadout ids, as values — what a spec's Default config names. @experimental */
13
+ export declare const CORE_LOADOUT: {
14
+ readonly reply: "core:loadout/reply@1";
15
+ readonly toolCalling: "core:loadout/tool-calling@1";
16
+ readonly extraction: "core:loadout/extraction@1";
17
+ readonly scenePrompt: "core:loadout/scene-prompt@1";
18
+ readonly images: "core:loadout/images@1";
19
+ readonly portrait: "core:loadout/portrait@1";
20
+ readonly sprites: "core:loadout/sprites@1";
21
+ readonly scene: "core:loadout/scene@1";
22
+ readonly tts: "core:loadout/tts@1";
23
+ readonly embeddings: "core:loadout/embeddings@1";
24
+ readonly entities: "core:loadout/entities@1";
25
+ };
26
+ /** @experimental */
27
+ export type CoreLoadoutId = (typeof CORE_LOADOUT)[keyof typeof CORE_LOADOUT];
28
+ /**
29
+ * The core set. `defaultFor` marks the five that become their transform's
30
+ * default the first time that default is set (a fresh install has none set).
31
+ * @experimental
32
+ */
33
+ export declare const CORE_LOADOUTS: ReadonlyArray<LoadoutDecl & {
34
+ id: CoreLoadoutId;
35
+ defaultFor?: true;
36
+ }>;
37
+ //# sourceMappingURL=loadouts.d.ts.map
@@ -0,0 +1,105 @@
1
+ /** Core's loadout ids, as values — what a spec's Default config names. @experimental */
2
+ export const CORE_LOADOUT = {
3
+ reply: 'core:loadout/reply@1',
4
+ toolCalling: 'core:loadout/tool-calling@1',
5
+ extraction: 'core:loadout/extraction@1',
6
+ scenePrompt: 'core:loadout/scene-prompt@1',
7
+ images: 'core:loadout/images@1',
8
+ portrait: 'core:loadout/portrait@1',
9
+ sprites: 'core:loadout/sprites@1',
10
+ scene: 'core:loadout/scene@1',
11
+ tts: 'core:loadout/tts@1',
12
+ embeddings: 'core:loadout/embeddings@1',
13
+ entities: 'core:loadout/entities@1',
14
+ };
15
+ /**
16
+ * The core set. `defaultFor` marks the five that become their transform's
17
+ * default the first time that default is set (a fresh install has none set).
18
+ * @experimental
19
+ */
20
+ export const CORE_LOADOUTS = [
21
+ {
22
+ id: CORE_LOADOUT.reply,
23
+ name: 'Reply',
24
+ description: 'Writes replies in sessions and answers forms. The model most people pick first.',
25
+ transform: 'text->text',
26
+ sampling: 'sampling-default',
27
+ defaultFor: true,
28
+ },
29
+ {
30
+ id: CORE_LOADOUT.toolCalling,
31
+ name: 'Tool calling',
32
+ description: 'Runs the tool loop. Best on a model with native tool calls.',
33
+ transform: 'text->text',
34
+ sampling: 'sampling-default',
35
+ },
36
+ {
37
+ id: CORE_LOADOUT.extraction,
38
+ name: 'Extraction',
39
+ description: 'Summaries and the state keeper: reads a passage and answers in a fixed shape. ' +
40
+ 'Best on a model with a schema door, at low temperature.',
41
+ transform: 'text->text',
42
+ sampling: 'sampling-extraction',
43
+ },
44
+ {
45
+ id: CORE_LOADOUT.scenePrompt,
46
+ name: 'Scene prompt',
47
+ description: "Writes the picture description for Scene. Short answers at low temperature.",
48
+ transform: 'text->text',
49
+ sampling: 'sampling-extraction',
50
+ },
51
+ {
52
+ id: CORE_LOADOUT.images,
53
+ name: 'Images',
54
+ description: 'Draws pictures for the Image action.',
55
+ transform: 'text->image',
56
+ sampling: 'sampling-image-default',
57
+ defaultFor: true,
58
+ },
59
+ {
60
+ id: CORE_LOADOUT.portrait,
61
+ name: 'Portrait',
62
+ description: "Draws a character's portrait. Best on a model that takes reference pictures.",
63
+ transform: 'text->image',
64
+ sampling: 'sampling-image-default',
65
+ tier: 'best',
66
+ },
67
+ {
68
+ id: CORE_LOADOUT.sprites,
69
+ name: 'Sprites',
70
+ description: "Fills a character's sprite set. Best on a model that takes reference pictures and draws " +
71
+ 'on a transparent background.',
72
+ transform: 'text->image',
73
+ sampling: 'sampling-image-default',
74
+ },
75
+ {
76
+ id: CORE_LOADOUT.scene,
77
+ name: 'Scene',
78
+ description: "Draws Scene's picture. A fast model is enough.",
79
+ transform: 'text->image',
80
+ sampling: 'sampling-image-default',
81
+ tier: 'fast',
82
+ },
83
+ {
84
+ id: CORE_LOADOUT.tts,
85
+ name: 'Narration',
86
+ description: 'Reads text aloud.',
87
+ transform: 'text->audio',
88
+ defaultFor: true,
89
+ },
90
+ {
91
+ id: CORE_LOADOUT.embeddings,
92
+ name: 'Embeddings',
93
+ description: 'Turns text into vectors for retrieval and the sprite picker.',
94
+ transform: 'text->embedding',
95
+ defaultFor: true,
96
+ },
97
+ {
98
+ id: CORE_LOADOUT.entities,
99
+ name: 'Entities',
100
+ description: 'Finds the people, places and things a passage names, for lorebook indexing.',
101
+ transform: 'text->entities',
102
+ defaultFor: true,
103
+ },
104
+ ];
105
+ //# sourceMappingURL=loadouts.js.map
@@ -176,5 +176,5 @@ export declare const remainingItemSupply: (supply: ItemSupply, held: number) =>
176
176
  * module loaded, which is the same fact-about-the-code route node types take.
177
177
  * @experimental
178
178
  */
179
- export declare const CORE_ENTRY_TYPES: (import("@serene-pub/sdk").EntryDescriptor<"core:entry/character-lore@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/history@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/item@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/location@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/world-lore@1">)[];
179
+ export declare const CORE_ENTRY_TYPES: (import("@serene-pub/sdk").EntryDescriptor<"core:entry/world-lore@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/character-lore@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/history@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/location@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/item@1">)[];
180
180
  //# sourceMappingURL=entries.d.ts.map
@@ -8,11 +8,22 @@
8
8
  * the in-repo half of that package.
9
9
  */
10
10
  import { genre, layout, sessionEvents } from "@serene-pub/sdk";
11
- import { ADVENTURE_LAYOUT, CHAT_LAYOUT, LAIR_LAYOUT } from "./ui/sessions/layouts.js";
11
+ import { ADVENTURE_LAYOUT, CHAT_LAYOUT, LAIR_LAYOUT } from "./layouts.js";
12
12
  import { ADVENTURE_SHEET, ADVENTURE_SLOTS } from "./slots.js";
13
13
  import { LAIR_SHEET, LAIR_SLOTS } from "./slots.js";
14
- import { GUIDE_MASCOT_IMAGE } from "./guideMascotImage.js";
15
- import { coreWidgets } from "./ui/sessions/widgets.js";
14
+ import { GUIDE_MASCOT_IMAGE } from "../seed/guideMascotImage.js";
15
+ import { coreWidgets } from "./widgets.js";
16
+ 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";
17
+ /*
18
+ * Widgets that read a lorebook — Chronicle, Places and Lore entries — are
19
+ * offered wherever a session may have one (`lorebook` in the genre's shape),
20
+ * which is every core genre today: optional in Chat and the Guide, required
21
+ * in Adventure and the Lair. So none omits them, and each genre's
22
+ * `omitWidgets` stays the Author's note alone (Chat's own). A genre with no
23
+ * lorebook omits all three — Dungeon Crawler, when it lands
24
+ * (PLAN-core-widgets §4), declares `omitWidgets: [coreWidgets.chronicle,
25
+ * coreWidgets.places, coreWidgets.loreEntries, …]`.
26
+ */
16
27
  /**
17
28
  * Auto-advance (PLAN-turn-order §4.6, R16): whether the head turn fires by
18
29
  * itself after a send, and how far.
@@ -198,7 +209,7 @@ export const chatGenre = genre(CHAT_GENRE_ID, {
198
209
  greeting: { enabled: true, channel: "main" },
199
210
  // No `turnOrder` here (retired 2026-09-23, R28): the Turn order
200
211
  // control is `core:spec/chat-turn-order`'s `strategy` node and the
201
- // swaps it declares (turnOrder.ts), like any other swappable node.
212
+ // swaps it declares (genres/chat/turnOrder.ts), like any other swappable node.
202
213
  /** The session settings form's own sections (§4.11): declared, never automatic. */
203
214
  scenario: true,
204
215
  tags: true,
@@ -246,7 +257,9 @@ export const chatGenre = genre(CHAT_GENRE_ID, {
246
257
  * The layout this genre ships (R71): its default — the conversation, and
247
258
  * the Author's note tucked in the right rail (owner ruling 2026-10-03).
248
259
  */
249
- layouts: [layout({ slug: "default", name: { en: "Chat" }, preset: CHAT_LAYOUT })]
260
+ layouts: [layout({ slug: "default", name: { en: "Chat" }, preset: CHAT_LAYOUT })],
261
+ /** 🚧 The spec this genre's scenes are summarized with (live scenes §13). */
262
+ summarize: { scene: CHAT_SUMMARIZE_SCENE_SPEC_ID }
250
263
  });
251
264
  /* ── Adventure ──────────────────────────────────────────────────────────── */
252
265
  /**
@@ -293,6 +306,14 @@ export const adventureGenre = genre(ADVENTURE_GENRE_ID, {
293
306
  */
294
307
  voice: "narrator",
295
308
  greeting: { enabled: true, channel: "main" },
309
+ /**
310
+ * 🚧 Where the story is (live scenes §15 G2): the world's `location`
311
+ * (`core:slot/location@1`, on the world by this genre's sheet). A
312
+ * scene is named `Scene N · <place>` and *the place changed* fires
313
+ * when the party move. The rest of the scene settings are the
314
+ * defaults (Suggested; on request).
315
+ */
316
+ scenes: { place: { stateKey: "location" } },
296
317
  // No turn-order swaps: the planner decides who speaks, so no Turn order
297
318
  // control renders (PLAN-turn-order §4.5) — the narrator turn-order
298
319
  // spec seats one narrator entry per send.
@@ -393,6 +414,8 @@ export const adventureGenre = genre(ADVENTURE_GENRE_ID, {
393
414
  /** The author's note is Chat's alone (owner ruling 2026-10-02, AN1). */
394
415
  omitWidgets: [coreWidgets.authorsNote],
395
416
  layouts: [layout({ slug: "default", name: { en: "Adventure" }, preset: ADVENTURE_LAYOUT })],
417
+ /** 🚧 The spec this genre's scenes are summarized with (live scenes §13). */
418
+ summarize: { scene: ADVENTURE_SUMMARIZE_SCENE_SPEC_ID }
396
419
  });
397
420
  /* ── Guide ──────────────────────────────────────────────────────────────── */
398
421
  /**
@@ -514,7 +537,9 @@ export const guideGenre = genre(GUIDE_GENRE_ID, {
514
537
  [sessionEvents.formAddressed]: {}
515
538
  },
516
539
  /** The author's note is Chat's alone (owner ruling 2026-10-02, AN1). */
517
- omitWidgets: [coreWidgets.authorsNote]
540
+ omitWidgets: [coreWidgets.authorsNote],
541
+ /** 🚧 The spec this genre's scenes are summarized with (live scenes §13). */
542
+ summarize: { scene: GUIDE_SUMMARIZE_SCENE_SPEC_ID }
518
543
  });
519
544
  /* ── Lair ───────────────────────────────────────────────────────────────── */
520
545
  /**
@@ -714,6 +739,13 @@ export const lairGenre = genre(LAIR_GENRE_ID, {
714
739
  * `lair-create`.
715
740
  */
716
741
  greeting: { enabled: false },
742
+ /**
743
+ * 🚧 Where the story is (live scenes §15 G2): the room the party stand
744
+ * in, the world's `location` — Adventure's place, for the same reason.
745
+ * The Lair's own boundary trigger (a new floor) rides its
746
+ * summarize-scene spec (`genres/lair/summarizeScene.ts`, ★9).
747
+ */
748
+ scenes: { place: { stateKey: "location" } },
717
749
  // No turn-order swaps: the planner decides who speaks — see Adventure's note.
718
750
  fields: {
719
751
  /**
@@ -872,5 +904,7 @@ export const lairGenre = genre(LAIR_GENRE_ID, {
872
904
  /** The author's note is Chat's alone (owner ruling 2026-10-02, AN1). */
873
905
  omitWidgets: [coreWidgets.authorsNote],
874
906
  layouts: [layout({ slug: "default", name: { en: "Lair" }, preset: LAIR_LAYOUT })],
907
+ /** 🚧 The spec this genre's scenes are summarized with — the one that reads the Sanctum (live scenes §13). */
908
+ summarize: { scene: LAIR_SUMMARIZE_SCENE_SPEC_ID }
875
909
  });
876
910
  //# sourceMappingURL=genres.js.map
@@ -34,25 +34,33 @@ export declare const CHAT_LAYOUT: SessionLayoutV1;
34
34
  * Adventure: the world above the conversation, the party down the right, the
35
35
  * lore within reach on the left.
36
36
  *
37
- * **Middle.** `world-state` is a strip above the messages — where you are, what
38
- * time it is, what the sky is doing — because it is the one piece of state that
39
- * is about the scene rather than about a person, and it belongs where the scene
40
- * is. `messages` — the log and the field you write into, one widget — fills
41
- * everything under it, anchored to all four edges. Placement is free, so a
42
- * person may move it to a side; a session always keeps one (the primary floor).
37
+ * **Middle.** The world's stats are a strip above the messages — where you
38
+ * are, what time it is, what the sky is doing — because they are the one
39
+ * piece of state that is about the scene rather than about a person, and they
40
+ * belong where the scene is. It is a copy of Stats, `stats#world`, set to the
41
+ * world as a strip and titled as World State was (PLAN-core-widgets W7: World
42
+ * State became Stats drawn for the world; `world-state` is now an alias a
43
+ * stored layout may still place). `messages` — the log and the field you
44
+ * write into, one widget — fills everything under it, anchored to all four
45
+ * edges. Placement is free, so a person may move it to a side; a session
46
+ * always keeps one (the primary floor).
43
47
  *
44
- * **Right, docked and pinned.** Scene Portraits sourced from the SCENE rather
45
- * than from pinned images, with `bars: true` so each face carries its own health
46
- * under it — the common case needs no second widget for that. Stats below it.
47
- * (Inventory sat under Stats until R79 removed that widget for now.)
48
+ * **Right, docked and pinned.** Scene Portraits showing who is in the SCENE,
49
+ * each as their sprite, with `bars: true` so each face carries its own health
50
+ * under it — the common case needs no second widget for that. Stats below it,
51
+ * the cast's cards. (Inventory sat under Stats until R79 removed that widget
52
+ * for now.)
48
53
  *
49
54
  * **Left, unpinned.** An unpinned rail is an icon strip that pops over the
50
55
  * conversation when you click it, which is what "collapsed to the rail" means:
51
- * the lore is one click away and costs no width until you want it. It carries
52
- * no widget ids, and that absence is deliberate rather than an omission — core
53
- * ships no lore panel yet, and naming one would put a labelled placeholder in
54
- * every Adventure session until it does. The rail is declared so that the panel
55
- * lands collapsed on the day it exists.
56
+ * the lore is one click away and costs no width until you want it. It holds
57
+ * the Chronicle (the story's history and its clock) and Lore entries (what
58
+ * the book has, and what was read) — an adventure's lorebook is required, so
59
+ * both always have a book to read.
60
+ *
61
+ * Places, Turn order, Album, Actions and Who's here are left to the tray: an
62
+ * adventure has room for them, but none is what every adventure needs on its
63
+ * first paint.
56
64
  * @internal
57
65
  */
58
66
  export declare const ADVENTURE_LAYOUT: SessionLayoutV1;
@@ -64,20 +72,26 @@ export declare const ADVENTURE_LAYOUT: SessionLayoutV1;
64
72
  * adventure the player asks *what shape am I in*, so the party is on the right
65
73
  * where a reader's eye rests; in a Lair the party is somebody else's — a set of
66
74
  * bars the master WATCHES rather than owns — so Stats goes left, where a thing
67
- * being monitored belongs, and the dungeon's own state takes the right.
75
+ * being monitored belongs, and the dungeon itself takes the right.
76
+ *
77
+ * **The rooms, at the top** (PLAN-core-widgets W4, Q4). Places as a list: the
78
+ * dungeon's places from the lorebook, the world's location and the party's
79
+ * picked out (`highlight: "both"`), the ways out of each under it. It
80
+ * replaces World State, which stood in for a room list by showing
81
+ * `location`, `floor` and `gold` in one line; those stay one tray pick away
82
+ * (Stats, set to the world). Both settings are Places' defaults, written so a
83
+ * changed default never moves the Lair. Its `map` view draws the same rooms
84
+ * as a graph of their ways.
68
85
  *
69
- * ⚠ **The room list is `world-state`, and that is a stand-in.** What this genre
70
- * wants on the right is a list of the dungeon's location entries with the
71
- * party's `location` picked out — and beyond it the room graph drawn from the
72
- * exits, which is the first customer for the Mermaid renderer (memory
73
- * `project_mermaid_for_maps`). Core ships neither widget. `world-state` is the
74
- * closest thing that exists: it shows `location`, `floor` and `gold`, which is
75
- * the same question answered in one line instead of a map. **Map widget pending
76
- * Mermaid**; swapping it is one id in this file.
86
+ * **The Castellan's scratchpad, under it.** An Annex copy reading the
87
+ * Castellan's running notes (`core.castellan-scratchpad`), which the owner may
88
+ * see and correct (the field's `see` names `owner`); small, because the notes
89
+ * are a reference and the talk is the work. Titled with the field's label,
90
+ * since an Annex panel's head otherwise reads "Annex".
77
91
  *
78
- * **The Sanctum, under it** (lair re-plan S1). The master's side-talk with the
79
- * Castellan is its own channel, so it gets its own panel: a second copy of the
80
- * `messages` widget, placed under the **widget instance id**
92
+ * **The Sanctum, at the bottom** (lair re-plan S1). The master's side-talk
93
+ * with the Castellan is its own channel, so it gets its own panel: a second
94
+ * copy of the `messages` widget, placed under the **widget instance id**
81
95
  * `messages#sanctum` and pinned to the channel by its `channel` setting. It
82
96
  * opens on the Castellan's greeting (the channel's first row), writes on the
83
97
  * Sanctum, and draws the Sanctum's turn controls — Continue and Narrate; Pick
@@ -38,32 +38,45 @@ export const CHAT_LAYOUT = {
38
38
  * Adventure: the world above the conversation, the party down the right, the
39
39
  * lore within reach on the left.
40
40
  *
41
- * **Middle.** `world-state` is a strip above the messages — where you are, what
42
- * time it is, what the sky is doing — because it is the one piece of state that
43
- * is about the scene rather than about a person, and it belongs where the scene
44
- * is. `messages` — the log and the field you write into, one widget — fills
45
- * everything under it, anchored to all four edges. Placement is free, so a
46
- * person may move it to a side; a session always keeps one (the primary floor).
41
+ * **Middle.** The world's stats are a strip above the messages — where you
42
+ * are, what time it is, what the sky is doing — because they are the one
43
+ * piece of state that is about the scene rather than about a person, and they
44
+ * belong where the scene is. It is a copy of Stats, `stats#world`, set to the
45
+ * world as a strip and titled as World State was (PLAN-core-widgets W7: World
46
+ * State became Stats drawn for the world; `world-state` is now an alias a
47
+ * stored layout may still place). `messages` — the log and the field you
48
+ * write into, one widget — fills everything under it, anchored to all four
49
+ * edges. Placement is free, so a person may move it to a side; a session
50
+ * always keeps one (the primary floor).
47
51
  *
48
- * **Right, docked and pinned.** Scene Portraits sourced from the SCENE rather
49
- * than from pinned images, with `bars: true` so each face carries its own health
50
- * under it — the common case needs no second widget for that. Stats below it.
51
- * (Inventory sat under Stats until R79 removed that widget for now.)
52
+ * **Right, docked and pinned.** Scene Portraits showing who is in the SCENE,
53
+ * each as their sprite, with `bars: true` so each face carries its own health
54
+ * under it — the common case needs no second widget for that. Stats below it,
55
+ * the cast's cards. (Inventory sat under Stats until R79 removed that widget
56
+ * for now.)
52
57
  *
53
58
  * **Left, unpinned.** An unpinned rail is an icon strip that pops over the
54
59
  * conversation when you click it, which is what "collapsed to the rail" means:
55
- * the lore is one click away and costs no width until you want it. It carries
56
- * no widget ids, and that absence is deliberate rather than an omission — core
57
- * ships no lore panel yet, and naming one would put a labelled placeholder in
58
- * every Adventure session until it does. The rail is declared so that the panel
59
- * lands collapsed on the day it exists.
60
+ * the lore is one click away and costs no width until you want it. It holds
61
+ * the Chronicle (the story's history and its clock) and Lore entries (what
62
+ * the book has, and what was read) — an adventure's lorebook is required, so
63
+ * both always have a book to read.
64
+ *
65
+ * Places, Turn order, Album, Actions and Who's here are left to the tray: an
66
+ * adventure has room for them, but none is what every adventure needs on its
67
+ * first paint.
60
68
  * @internal
61
69
  */
62
70
  export const ADVENTURE_LAYOUT = {
63
71
  zoneLayout: {
64
72
  version: 1,
65
73
  zones: {
66
- left: { kind: "side", side: "left", pinned: false, widgets: [] },
74
+ left: {
75
+ kind: "side",
76
+ side: "left",
77
+ pinned: false,
78
+ widgets: ["chronicle", "lore-entries"]
79
+ },
67
80
  right: {
68
81
  kind: "side",
69
82
  side: "right",
@@ -77,7 +90,7 @@ export const ADVENTURE_LAYOUT = {
77
90
  cell: 44,
78
91
  widgets: [
79
92
  {
80
- id: "world-state",
93
+ id: "stats#world",
81
94
  zone: "middle",
82
95
  order: 0,
83
96
  size: { w: "grow", h: "fixed" },
@@ -98,30 +111,44 @@ export const ADVENTURE_LAYOUT = {
98
111
  ]
99
112
  },
100
113
  /**
101
- * Per-widget settings the layout pins. Merged under the user's own stored
102
- * settings, so a person who turns the bars off keeps them off.
114
+ * Per-widget settings the layout brings. Copied into the session's own
115
+ * settings when the layout is, so a person who turns the bars off keeps
116
+ * them off.
103
117
  *
104
- * `source: "scene"` is the half that makes the docked portraits mean
105
- * anything on a fresh session: pinning is a gesture nobody has made yet, and
106
- * an adventure's portrait rail is about who is in the scene rather than
107
- * about two images somebody chose.
118
+ * Scene Portraits' values are its defaults, written anyway so a changed
119
+ * default never moves Adventure — and because an instance with nothing
120
+ * stored about who it shows is read as a 0.6 pinned one by the page's
121
+ * one-time seed of old pinned images: `who: "scene"` is what keeps it off.
122
+ * The world strip's `owners` and `arrangement` are what make the copy of
123
+ * Stats the world's; its `title` keeps the strip's name.
108
124
  */
109
125
  widgetSettings: {
110
- "scene-portraits": { source: "scene", bars: true }
126
+ "scene-portraits": {
127
+ who: "scene",
128
+ face: "sprite",
129
+ arrangement: "grid",
130
+ bars: true
131
+ },
132
+ "stats#world": { owners: "world", arrangement: "strip", title: "World State" }
111
133
  },
112
134
  /**
113
135
  * The right column, ARRANGED — which is what makes it open on the first
114
136
  * paint rather than a strip of icons the player has to click.
115
137
  *
138
+ * The left is NOT arranged: its zone's `pinned: false` makes it an icon
139
+ * strip on the width ladder, which costs no width, and the layout
140
+ * editor's Done keeps a side it was opened on un-arranged unless a hand
141
+ * moves something in it. (An arrangement whose cards are all unpinned
142
+ * would draw the same: a rail-only side counts a rail's width, never a
143
+ * column's — `sideFlowPx` in the app's `sessionLayout/sideSlot`.)
144
+ *
116
145
  * A side is drawn from its arrangement when it has one, and a group in an
117
146
  * arrangement is expanded by default exactly when it is PINNED: `pinned` is
118
- * a field on these items and absent means pinned (`unitPinned` in
119
- * `sessionLayout/arrangedGeometry`), so two items with no `pinned` field
120
- * is two panels open, in this order, with nothing transient deciding it.
121
- * A side with NO arrangement falls back to the width ladder instead, and
122
- * that is what shipped: the widgets were listed in the zone and their
123
- * docked-or-icons state was left to whatever the session box happened to
124
- * measure.
147
+ * a field on these items and absent means pinned (`pinnedOf`, the SDK's
148
+ * one pin rule), so two items with no `pinned` field is two panels open,
149
+ * in this order, with nothing transient deciding it. A side with NO
150
+ * arrangement falls back to the width ladder instead, which leaves its
151
+ * docked-or-icons state to whatever the session box happens to measure.
125
152
  *
126
153
  * One column and twelve rows because a rail is one column; the two
127
154
  * heights are the share each panel takes of it, and `seedPositions` clamps
@@ -147,20 +174,26 @@ export const ADVENTURE_LAYOUT = {
147
174
  * adventure the player asks *what shape am I in*, so the party is on the right
148
175
  * where a reader's eye rests; in a Lair the party is somebody else's — a set of
149
176
  * bars the master WATCHES rather than owns — so Stats goes left, where a thing
150
- * being monitored belongs, and the dungeon's own state takes the right.
177
+ * being monitored belongs, and the dungeon itself takes the right.
178
+ *
179
+ * **The rooms, at the top** (PLAN-core-widgets W4, Q4). Places as a list: the
180
+ * dungeon's places from the lorebook, the world's location and the party's
181
+ * picked out (`highlight: "both"`), the ways out of each under it. It
182
+ * replaces World State, which stood in for a room list by showing
183
+ * `location`, `floor` and `gold` in one line; those stay one tray pick away
184
+ * (Stats, set to the world). Both settings are Places' defaults, written so a
185
+ * changed default never moves the Lair. Its `map` view draws the same rooms
186
+ * as a graph of their ways.
151
187
  *
152
- * ⚠ **The room list is `world-state`, and that is a stand-in.** What this genre
153
- * wants on the right is a list of the dungeon's location entries with the
154
- * party's `location` picked out — and beyond it the room graph drawn from the
155
- * exits, which is the first customer for the Mermaid renderer (memory
156
- * `project_mermaid_for_maps`). Core ships neither widget. `world-state` is the
157
- * closest thing that exists: it shows `location`, `floor` and `gold`, which is
158
- * the same question answered in one line instead of a map. **Map widget pending
159
- * Mermaid**; swapping it is one id in this file.
188
+ * **The Castellan's scratchpad, under it.** An Annex copy reading the
189
+ * Castellan's running notes (`core.castellan-scratchpad`), which the owner may
190
+ * see and correct (the field's `see` names `owner`); small, because the notes
191
+ * are a reference and the talk is the work. Titled with the field's label,
192
+ * since an Annex panel's head otherwise reads "Annex".
160
193
  *
161
- * **The Sanctum, under it** (lair re-plan S1). The master's side-talk with the
162
- * Castellan is its own channel, so it gets its own panel: a second copy of the
163
- * `messages` widget, placed under the **widget instance id**
194
+ * **The Sanctum, at the bottom** (lair re-plan S1). The master's side-talk
195
+ * with the Castellan is its own channel, so it gets its own panel: a second
196
+ * copy of the `messages` widget, placed under the **widget instance id**
164
197
  * `messages#sanctum` and pinned to the channel by its `channel` setting. It
165
198
  * opens on the Castellan's greeting (the channel's first row), writes on the
166
199
  * Sanctum, and draws the Sanctum's turn controls — Continue and Narrate; Pick
@@ -181,8 +214,7 @@ export const LAIR_LAYOUT = {
181
214
  kind: "side",
182
215
  side: "right",
183
216
  pinned: true,
184
- // Inventory sat under it until R79 removed that widget for now.
185
- widgets: ["world-state", "messages#sanctum"]
217
+ widgets: ["places", "annex#castellan", "messages#sanctum"]
186
218
  }
187
219
  }
188
220
  },
@@ -213,15 +245,24 @@ export const LAIR_LAYOUT = {
213
245
  right: {
214
246
  cols: 1,
215
247
  rows: 12,
216
- // The dungeon's state is a strip; the talk takes the rest.
248
+ // The rooms, a short note, and the talk taking the most.
217
249
  items: [
218
- { id: "world-state", x: 0, y: 0, w: 1, h: 2 },
219
- { id: "messages#sanctum", x: 0, y: 2, w: 1, h: 10 }
250
+ { id: "places", x: 0, y: 0, w: 1, h: 4 },
251
+ { id: "annex#castellan", x: 0, y: 4, w: 1, h: 2 },
252
+ { id: "messages#sanctum", x: 0, y: 6, w: 1, h: 6 }
220
253
  ]
221
254
  }
222
255
  },
223
- /** The Sanctum copy's settings: the claim that makes it the Sanctum. */
256
+ /**
257
+ * The right column's settings: the room list's, the note's key, and the
258
+ * Sanctum copy's claim that makes it the Sanctum.
259
+ */
224
260
  widgetSettings: {
261
+ places: { view: "list", highlight: "both" },
262
+ "annex#castellan": {
263
+ key: "core.castellan-scratchpad",
264
+ title: "Castellan's scratchpad"
265
+ },
225
266
  "messages#sanctum": { channel: "sanctum", composer: "minimal" }
226
267
  }
227
268
  };
@@ -36,10 +36,32 @@ export declare const coreWidgets: {
36
36
  readonly conversation: WidgetDecl;
37
37
  readonly scenePortraits: WidgetDecl;
38
38
  readonly loreEntries: WidgetDecl;
39
+ /** Stats (W7): the world's, the cast's and the places' stats — as cards, a list or a strip. */
39
40
  readonly stats: WidgetDecl;
41
+ /**
42
+ * ⏳ World State is Stats now (`WIDGET_ID_ALIASES`): a layout naming it
43
+ * draws Stats with `owners: 'world', arrangement: 'strip'`.
44
+ * @deprecated REMOVE in 0.7.0 — place `stats#world` with those settings.
45
+ */
40
46
  readonly worldState: WidgetDecl;
41
47
  /** 🚧 The author's note (AN1) — Chat's; the other core genres omit it. */
42
48
  readonly authorsNote: WidgetDecl;
49
+ /** 🚧 Turn order (W1): whose turn it is, who follows, Continue and Pick who speaks. */
50
+ readonly turnOrder: WidgetDecl;
51
+ /** 🚧 Actions (W8): the session's actions as buttons — turn controls, the genre's, the added. */
52
+ readonly actions: WidgetDecl;
53
+ /** 🚧 Annex (W9): one declared annex key, by its label, as the viewer may see it. */
54
+ readonly annex: WidgetDecl;
55
+ /** 🚧 Album (W2): every picture on the session's lines, newest first; the lightbox pages them all. */
56
+ readonly album: WidgetDecl;
57
+ /** 🚧 Backdrop: the session's backdrop picture, with Change and Clear for its owner. */
58
+ readonly backdrop: WidgetDecl;
59
+ /** 🚧 Chronicle (W3): the session's story clock, the history entry it reads now with its scenes, and the entries before. */
60
+ readonly chronicle: WidgetDecl;
61
+ /** 🚧 Places (W4): the session's places as a list or a map — where the scene is, who stands where, the ways between. */
62
+ readonly places: WidgetDecl;
63
+ /** 🚧 Who's here (W10): the session's people — who has it open, as whom each writes, who is typing, who is away. */
64
+ readonly attendance: WidgetDecl;
43
65
  };
44
66
  /**
45
67
  * Core's components (C6 P1), declared through the public API as a package