@serene-pub/core-catalog 0.6.0-pr-4 → 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 (193) hide show
  1. package/components/shared/actions/Actions.svelte +24 -0
  2. package/components/shared/actions/ActionsWidget.svelte +118 -0
  3. package/components/shared/actions/actions.ts +11 -0
  4. package/components/shared/album/Album.svelte +24 -0
  5. package/components/shared/album/AlbumWidget.svelte +163 -0
  6. package/components/shared/album/album.ts +10 -0
  7. package/components/shared/annex/Annex.svelte +24 -0
  8. package/components/shared/annex/AnnexWidget.svelte +151 -0
  9. package/components/shared/annex/annex.ts +10 -0
  10. package/components/shared/attendance/Attendance.svelte +24 -0
  11. package/components/shared/attendance/AttendanceWidget.svelte +136 -0
  12. package/components/shared/attendance/attendance.ts +12 -0
  13. package/components/shared/backdrop/Backdrop.svelte +24 -0
  14. package/components/shared/backdrop/BackdropWidget.svelte +345 -0
  15. package/components/shared/backdrop/backdrop.ts +10 -0
  16. package/components/shared/chronicle/Chronicle.svelte +36 -0
  17. package/components/shared/chronicle/ChronicleWidget.svelte +569 -0
  18. package/components/shared/chronicle/chronicle.ts +11 -0
  19. package/components/shared/lore-entries/LoreEntriesWidget.svelte +2 -2
  20. package/components/shared/map-canvas/MapCanvas.svelte +171 -0
  21. package/components/shared/map-canvas/index.ts +390 -0
  22. package/components/shared/messages/MessageControls.svelte +42 -0
  23. package/components/shared/messages/MessageStateLedger.svelte +19 -8
  24. package/components/shared/messages/MessagesWidget.svelte +125 -39
  25. package/components/shared/messages/NextCharacterBlock.svelte +17 -14
  26. package/components/shared/messages/SceneCueChip.svelte +82 -0
  27. package/components/shared/messages/SceneDivider.svelte +399 -0
  28. package/components/shared/messages/SessionComposer.svelte +32 -8
  29. package/components/shared/messages/SessionContainer.svelte +356 -164
  30. package/components/shared/messages/SessionMessage.svelte +51 -6
  31. package/components/shared/messages/TurnLine.svelte +254 -0
  32. package/components/shared/messages/conversation.svelte.ts +190 -1
  33. package/components/shared/messages/sceneMarks.ts +397 -0
  34. package/components/shared/places/Places.svelte +24 -0
  35. package/components/shared/places/PlacesWidget.svelte +290 -0
  36. package/components/shared/places/places.ts +11 -0
  37. package/components/shared/scene-portraits/ScenePortraitsWidget.svelte +308 -153
  38. package/components/shared/state/SlotControl.svelte +9 -1
  39. package/components/shared/stats/StatsWidget.svelte +291 -53
  40. package/components/shared/stats/stats.ts +3 -2
  41. package/components/shared/turn-order/TurnOrder.svelte +24 -0
  42. package/components/shared/turn-order/TurnOrderWidget.svelte +167 -0
  43. package/components/shared/turn-order/turn-order.ts +11 -0
  44. package/components/shared/widgetRef.svelte.ts +9 -2
  45. package/components/shared/world-state/WorldState.svelte +13 -4
  46. package/components/shared/world-state/world-state.ts +4 -4
  47. package/components/tsconfig.json +2 -2
  48. package/dist/components/actions.js +294 -0
  49. package/dist/components/actions.source.json +1 -0
  50. package/dist/components/album.js +386 -0
  51. package/dist/components/album.source.json +1 -0
  52. package/dist/components/annex.js +457 -0
  53. package/dist/components/annex.source.json +1 -0
  54. package/dist/components/attendance.js +353 -0
  55. package/dist/components/attendance.source.json +1 -0
  56. package/dist/components/authors-note.js +1 -1
  57. package/dist/components/authors-note.source.json +1 -1
  58. package/dist/components/backdrop.js +561 -0
  59. package/dist/components/backdrop.source.json +1 -0
  60. package/dist/components/chronicle.js +1141 -0
  61. package/dist/components/chronicle.source.json +1 -0
  62. package/dist/components/core-ui.json +1 -1
  63. package/dist/components/lore-entries.js +1 -1
  64. package/dist/components/lore-entries.source.json +1 -1
  65. package/dist/components/messages.js +2994 -2469
  66. package/dist/components/messages.source.json +1 -1
  67. package/dist/components/places.js +1133 -0
  68. package/dist/components/places.source.json +1 -0
  69. package/dist/components/scene-portraits.js +509 -340
  70. package/dist/components/scene-portraits.source.json +1 -1
  71. package/dist/components/shared-3K7SOGH7.js +16 -0
  72. package/dist/components/shared-452PIS46.js +156 -0
  73. package/dist/components/shared-GEDAMORM.js +45 -0
  74. package/dist/components/{shared-3FGURYVS.js → shared-GXTL5G2H.js} +2 -1
  75. package/dist/components/shared-ITSLBJB5.js +478 -0
  76. package/dist/components/shared-NK7QSVMU.js +400 -0
  77. package/dist/components/shared-TDWKI2QV.js +58 -0
  78. package/dist/components/{shared-U3UU5V7L.js → shared-XBPH6USH.js} +583 -15
  79. package/dist/components/{shared-FXYLABGF.js → shared-XISPHAKY.js} +499 -95
  80. package/dist/components/stats.js +6 -206
  81. package/dist/components/stats.source.json +1 -1
  82. package/dist/components/turn-order.js +461 -0
  83. package/dist/components/turn-order.source.json +1 -0
  84. package/dist/components/world-state.js +12 -200
  85. package/dist/components/world-state.source.json +1 -1
  86. package/dist/factories/answerForm.js +6 -2
  87. package/dist/genres/adventure/advanceTime.d.ts +9 -2
  88. package/dist/genres/adventure/advanceTime.js +12 -5
  89. package/dist/genres/adventure/ask.d.ts +9 -9
  90. package/dist/genres/adventure/illustrateScene.d.ts +7 -0
  91. package/dist/genres/adventure/illustrateScene.js +19 -0
  92. package/dist/genres/adventure/index.d.ts +2 -0
  93. package/dist/genres/adventure/index.js +2 -0
  94. package/dist/genres/adventure/keeperAction.d.ts +19 -0
  95. package/dist/genres/adventure/keeperAction.js +194 -127
  96. package/dist/genres/adventure/respond.d.ts +64 -31
  97. package/dist/genres/adventure/respond.js +91 -5
  98. package/dist/genres/adventure/summarizeScene.d.ts +7 -0
  99. package/dist/genres/adventure/summarizeScene.js +14 -0
  100. package/dist/genres/chat/advanceTime.d.ts +7 -0
  101. package/dist/genres/chat/advanceTime.js +17 -0
  102. package/dist/genres/chat/generateImage.d.ts +1 -1
  103. package/dist/genres/chat/generateImage.js +22 -18
  104. package/dist/genres/chat/illustrateScene.d.ts +8 -0
  105. package/dist/genres/chat/illustrateScene.js +19 -0
  106. package/dist/genres/chat/index.d.ts +3 -0
  107. package/dist/genres/chat/index.js +4 -0
  108. package/dist/genres/chat/narrate.js +3 -0
  109. package/dist/genres/chat/narrateCharacter.js +4 -1
  110. package/dist/genres/chat/respond.js +43 -1
  111. package/dist/genres/chat/summarizeScene.d.ts +7 -0
  112. package/dist/genres/chat/summarizeScene.js +14 -0
  113. package/dist/genres/guide/index.d.ts +1 -0
  114. package/dist/genres/guide/index.js +1 -0
  115. package/dist/genres/guide/respond.js +3 -1
  116. package/dist/genres/guide/summarizeScene.d.ts +7 -0
  117. package/dist/genres/guide/summarizeScene.js +14 -0
  118. package/dist/genres/lair/advanceTime.d.ts +7 -0
  119. package/dist/genres/lair/advanceTime.js +17 -0
  120. package/dist/genres/lair/index.d.ts +2 -0
  121. package/dist/genres/lair/index.js +3 -0
  122. package/dist/genres/lair/respond.d.ts +31 -31
  123. package/dist/genres/lair/respond.js +10 -0
  124. package/dist/genres/lair/summarizeScene.d.ts +39 -0
  125. package/dist/genres/lair/summarizeScene.js +51 -0
  126. package/dist/index.d.ts +5 -0
  127. package/dist/index.js +77 -0
  128. package/dist/loadouts.d.ts +37 -0
  129. package/dist/loadouts.js +105 -0
  130. package/dist/registry/entries.d.ts +1 -1
  131. package/dist/registry/genres.js +36 -2
  132. package/dist/registry/layouts.d.ts +41 -27
  133. package/dist/registry/layouts.js +90 -49
  134. package/dist/registry/widgets.d.ts +22 -0
  135. package/dist/registry/widgets.js +795 -68
  136. package/dist/seed/prompts.d.ts +10 -5
  137. package/dist/seed/prompts.js +215 -137
  138. package/dist/shared/annexField.d.ts +9 -6
  139. package/dist/shared/annexField.js +10 -7
  140. package/dist/shared/describeLikeness.d.ts +14 -0
  141. package/dist/shared/describeLikeness.js +65 -0
  142. package/dist/shared/illustrateScene.d.ts +28 -0
  143. package/dist/shared/illustrateScene.js +181 -0
  144. package/dist/shared/portrait.d.ts +21 -0
  145. package/dist/shared/portrait.js +101 -0
  146. package/dist/shared/spriteFill.d.ts +14 -0
  147. package/dist/shared/spriteFill.js +107 -0
  148. package/dist/shared/sprites.d.ts +1 -1
  149. package/dist/shared/summarize/index.d.ts +2 -0
  150. package/dist/shared/summarize/index.js +2 -0
  151. package/dist/shared/summarize/sceneIds.d.ts +17 -0
  152. package/dist/shared/summarize/sceneIds.js +17 -0
  153. package/dist/shared/summarize/summarizeScene.d.ts +113 -0
  154. package/dist/shared/summarize/summarizeScene.js +234 -0
  155. package/dist/shared/summarize/summarizeSpec.js +15 -0
  156. package/dist/shared/timePasses.d.ts +56 -0
  157. package/dist/shared/timePasses.js +86 -0
  158. package/dist/shared/toolLoop.js +4 -1
  159. package/dist/shared/ui/actions/index.d.ts +117 -0
  160. package/dist/shared/ui/actions/index.js +154 -0
  161. package/dist/shared/ui/album/index.d.ts +115 -0
  162. package/dist/shared/ui/album/index.js +178 -0
  163. package/dist/shared/ui/annex/index.d.ts +163 -0
  164. package/dist/shared/ui/annex/index.js +273 -0
  165. package/dist/shared/ui/attendance/index.d.ts +97 -0
  166. package/dist/shared/ui/attendance/index.js +89 -0
  167. package/dist/shared/ui/backdrop/index.d.ts +78 -0
  168. package/dist/shared/ui/backdrop/index.js +98 -0
  169. package/dist/shared/ui/chronicle/index.d.ts +230 -0
  170. package/dist/shared/ui/chronicle/index.js +249 -0
  171. package/dist/shared/ui/conversation/dossier.d.ts +16 -311
  172. package/dist/shared/ui/conversation/dossier.js +11 -11
  173. package/dist/shared/ui/conversation/index.d.ts +1 -0
  174. package/dist/shared/ui/conversation/index.js +2 -0
  175. package/dist/shared/ui/conversation/messageVerbState.d.ts +1 -1
  176. package/dist/shared/ui/conversation/storyDays.d.ts +21 -0
  177. package/dist/shared/ui/conversation/storyDays.js +23 -0
  178. package/dist/shared/ui/lore-entries/index.d.ts +1 -1
  179. package/dist/shared/ui/places/index.d.ts +148 -0
  180. package/dist/shared/ui/places/index.js +249 -0
  181. package/dist/shared/ui/scene-portraits/portraits.d.ts +113 -17
  182. package/dist/shared/ui/scene-portraits/portraits.js +149 -41
  183. package/dist/shared/ui/session-state/index.d.ts +7 -6
  184. package/dist/shared/ui/session-state/index.js +7 -6
  185. package/dist/shared/ui/session-state/shapes.d.ts +2 -2
  186. package/dist/shared/ui/session-state/stateView.d.ts +125 -31
  187. package/dist/shared/ui/session-state/stateView.js +132 -26
  188. package/dist/shared/ui/turn-order/index.d.ts +146 -0
  189. package/dist/shared/ui/turn-order/index.js +257 -0
  190. package/dist/shared/ui/widgetContext.d.ts +19 -10
  191. package/package.json +49 -10
  192. package/components/shared/world-state/WorldStateWidget.svelte +0 -112
  193. package/dist/components/{shared-RJDGOAVC.js → shared-FTRGUE7G.js} +78 -78
@@ -118,6 +118,40 @@ export const CORE_WIDGETS = [
118
118
  ],
119
119
  default: 'full',
120
120
  },
121
+ /**
122
+ * How the lines are drawn (PLAN-core-widgets §3.7, Q7: a setting,
123
+ * not a widget — the data, the channel claim and the composer are
124
+ * the same; only the drawing changes). `rows` is the log as it has
125
+ * always been; `folio` reads the lines as one block of prose: each
126
+ * line's body a paragraph, a thin rule naming the speaker where the
127
+ * speaker changes, no avatar, name row, time or swipes, scene
128
+ * markers off, and the composer on the page line unless the copy
129
+ * chose another skin.
130
+ *
131
+ * The default is `auto`, **Follow the channel** (PLAN-core-widgets
132
+ * §3.16): settings arrive complete (defaults filled in), so a
133
+ * declared `rows` would be indistinguishable from a person's
134
+ * `rows`, and an undeclared default left the settings sheet's
135
+ * select empty. `auto` says "unset" out loud: a copy whose `channel`
136
+ * claim names a `folio`-role channel (`ChannelDecl.role`, the
137
+ * Writing Room's manuscript) draws as Folio, every other copy as
138
+ * Rows. A stored `rows` or `folio` wins either way.
139
+ */
140
+ presentation: {
141
+ type: 'enum',
142
+ label: 'Presentation',
143
+ description: 'Rows draws each line with its avatar and controls; Folio ' +
144
+ 'reads the lines as one block of prose, the way a manuscript ' +
145
+ 'reads. Follow the channel reads a manuscript-style channel ' +
146
+ 'as Folio and any other as Rows.',
147
+ of: ['auto', 'rows', 'folio'],
148
+ members: [
149
+ { key: 'auto', label: 'Follow the channel' },
150
+ { key: 'rows', label: 'Rows' },
151
+ { key: 'folio', label: 'Folio' },
152
+ ],
153
+ default: 'auto',
154
+ },
121
155
  order: {
122
156
  type: 'enum',
123
157
  label: 'Message order',
@@ -231,51 +265,124 @@ export const CORE_WIDGETS = [
231
265
  {
232
266
  id: 'scene-portraits',
233
267
  title: 'Scene Portraits',
268
+ // Its own glyph since W6 (2026-10-11): a framed face. `Users` is the
269
+ // accounts' — Who's here holds it (NOMENCLATURE §22).
270
+ icon: 'SquareUserRound',
234
271
  component: 'scene-portraits',
272
+ layout: { span: { ideal: 1 }, minInline: 200 },
235
273
  /**
236
- * The cast, cast over card, and the pinned images (`characters`,
237
- * R76), and the state its stat bars draw (`session:state`, R72).
274
+ * The cast, cast over card (`characters`, R76) — each member's
275
+ * current sprite and last line's time resolved, its gallery paged by
276
+ * `character-images` — and the state its stat bars draw
277
+ * (`session:state`, R72).
238
278
  */
239
279
  scopes: ['characters', 'session:state'],
240
280
  /**
241
281
  * Its settings alone — never the log: each member's current sprite
242
- * arrives resolved on `characters` (`SessionCharacterV1.sprite`).
282
+ * and when it last spoke arrive on `characters`.
243
283
  */
244
284
  reads: ['settings'],
245
285
  presets: [DEFAULT_PRESET],
286
+ /**
287
+ * Three questions, one setting each (PLAN-core-widgets W6, ruled
288
+ * 2026-10-10 Q8): **who** (`who`), **which picture** (`face`) and
289
+ * **how laid out** (`arrangement`). The old one-axis `source`
290
+ * squashed two of them into one: ⏳ it and `sprites` are still read
291
+ * (a stored `source: pinned` is `who: pick` · `face: chosen` ·
292
+ * `arrangement: stage`; `sprites: false` is `face: avatar`), are
293
+ * never shown, and go at the 0.7 squash.
294
+ */
246
295
  settings: {
296
+ who: {
297
+ type: 'enum',
298
+ label: 'Show',
299
+ description: 'Everyone in the scene; whoever spoke last, newest first; or only the ' +
300
+ 'members you name.',
301
+ of: ['scene', 'recent', 'pick'],
302
+ members: [
303
+ { key: 'scene', label: 'Everyone in the scene' },
304
+ { key: 'recent', label: 'Whoever spoke last' },
305
+ { key: 'pick', label: 'Members you pick' },
306
+ ],
307
+ default: 'scene',
308
+ },
309
+ recentTurns: {
310
+ type: 'integer',
311
+ label: 'How many',
312
+ description: 'Show up to this many of the members who spoke most recently.',
313
+ min: 1,
314
+ max: 20,
315
+ default: 3,
316
+ showIf: { field: 'who', equals: 'recent' },
317
+ },
318
+ /** One member per line, as Stats' `pickOwners` is: a name as the session shows it, or `character:<id>`. */
319
+ pickMembers: {
320
+ type: 'string[]',
321
+ label: 'Members',
322
+ description: 'One per line, by the name the session shows. They are drawn in this order.',
323
+ default: [],
324
+ showIf: { field: 'who', equals: 'pick' },
325
+ },
247
326
  /**
248
- * Where the faces come from. `pinned` is the two portraits a person
249
- * pins from the chat, which is the only thing a Chat session has to
250
- * show; `scene` is the cast itself, which is what a genre that docks
251
- * this widget beside the conversation means by "who is here".
252
- *
253
- * `pinned` is the default because it is what every existing session
254
- * shows, and a preset that wants the cast says so.
327
+ * Faces follow the conversation by default (DESIGN-sprites §7):
328
+ * each member's CURRENT sprite — the one on the newest line it
329
+ * spoke — and its avatar when it has none. ⚠ The setting is which
330
+ * picture a face shows; `SessionCharacterV1.face` is the avatar's
331
+ * URL.
255
332
  */
256
- source: {
333
+ face: {
257
334
  type: 'enum',
258
- label: 'Show',
259
- description: 'Pinned shows the portraits you pin from the chat; Scene ' +
260
- 'shows everyone in the session.',
261
- of: ['pinned', 'scene'],
335
+ label: 'Picture',
336
+ description: "Each character's avatar; its current sprite, which follows the " +
337
+ "conversation; or an image chosen from the character's gallery.",
338
+ of: ['avatar', 'sprite', 'chosen'],
262
339
  members: [
263
- { key: 'pinned', label: 'Pinned' },
264
- { key: 'scene', label: 'Scene' },
340
+ { key: 'avatar', label: 'Avatar' },
341
+ { key: 'sprite', label: 'Current sprite' },
342
+ { key: 'chosen', label: 'Chosen image' },
343
+ ],
344
+ default: 'sprite',
345
+ },
346
+ /**
347
+ * 🚧 Each member's **chosen image**, `character:<id>=<image ref>`
348
+ * per entry — the settings language has no map. The ref is what
349
+ * `character-images` answers each image with. Behaviour: the face's
350
+ * own chooser is where an image is picked, and writes it here
351
+ * (`set-chosen-image`, F2).
352
+ */
353
+ chosenImages: {
354
+ type: 'string[]',
355
+ label: 'Chosen images',
356
+ description: 'One per line: the character, then = and the image (character:3=…). ' +
357
+ 'A character with none shows its avatar.',
358
+ default: [],
359
+ showIf: { field: 'face', equals: 'chosen' },
360
+ group: 'behaviour',
361
+ },
362
+ arrangement: {
363
+ type: 'enum',
364
+ label: 'Arrangement',
365
+ description: 'A row, a grid that wraps, a column, or a stage: the first two, large, side by side.',
366
+ of: ['row', 'grid', 'column', 'stage'],
367
+ members: [
368
+ { key: 'row', label: 'Row' },
369
+ { key: 'grid', label: 'Grid' },
370
+ { key: 'column', label: 'Column' },
371
+ { key: 'stage', label: 'Stage' },
265
372
  ],
266
- default: 'pinned',
373
+ default: 'grid',
267
374
  },
268
375
  /**
269
376
  * The persona is in the scene but is not cast: it carries no state
270
377
  * of its own, so it draws a face and no bars. Off by default — a
271
378
  * player looking at the party is usually looking at the others.
379
+ * Read by `scene` and `recent`; `pick` shows whomever it names.
272
380
  */
273
381
  persona: {
274
382
  type: 'boolean',
275
383
  label: 'Include your persona',
276
384
  description: 'Put the persona you play beside the cast.',
277
385
  default: false,
278
- showIf: { field: 'source', equals: 'scene' },
279
386
  },
280
387
  /**
281
388
  * The common case for stats is one row of bars under a face, so it
@@ -290,18 +397,31 @@ export const CORE_WIDGETS = [
290
397
  default: false,
291
398
  },
292
399
  /**
293
- * Faces follow the conversation (DESIGN-sprites §7): each member
294
- * shows its CURRENT sprite — the one on the newest line it spoke —
295
- * instead of its avatar. On by default; a member with no sprites
296
- * shows its avatar either way. Scene only: a pinned portrait is an
297
- * image a person chose, not a cast member.
400
+ * ⏳ The old `source`. No default, so a value is only ever one a
401
+ * layout or a person stored: `scene` stays stored as the mark of an
402
+ * instance that never drew pins (the page seeds chosen images only
403
+ * into one that did, or that stored nothing); `pinned` is moved to
404
+ * the three axes by every prune, so the `showIf` on its own value
405
+ * keeps it off the settings sheet. REMOVE in 0.7.0.
406
+ */
407
+ source: {
408
+ type: 'enum',
409
+ label: 'Show (old setting)',
410
+ description: 'Replaced by Show, Picture and Arrangement.',
411
+ of: ['pinned', 'scene'],
412
+ showIf: { field: 'source', equals: 'pinned' },
413
+ group: 'behaviour',
414
+ },
415
+ /**
416
+ * ⏳ The old sprites switch, moved to `face` by every prune (`false`
417
+ * is `avatar`), so never shown. REMOVE in 0.7.0.
298
418
  */
299
419
  sprites: {
300
420
  type: 'boolean',
301
- label: 'Show sprites',
302
- description: "Show each character's current sprite instead of its avatar.",
303
- default: true,
304
- showIf: { field: 'source', equals: 'scene' },
421
+ label: 'Show sprites (old setting)',
422
+ description: 'Replaced by Picture.',
423
+ showIf: { field: 'sprites', equals: false },
424
+ group: 'behaviour',
305
425
  },
306
426
  },
307
427
  },
@@ -318,6 +438,7 @@ export const CORE_WIDGETS = [
318
438
  title: 'Lore entries',
319
439
  icon: 'BookOpen',
320
440
  component: 'lore-entries',
441
+ layout: { span: { ideal: 1 }, minInline: 260 },
321
442
  /** The grant `session-entries` pages the book with — nothing is pushed. */
322
443
  scopes: ['lore'],
323
444
  /**
@@ -352,70 +473,89 @@ export const CORE_WIDGETS = [
352
473
  },
353
474
  },
354
475
  /**
355
- * Stats and world state — the two session surfaces over the attribute
356
- * slots (`docs/stats-and-states.md`). R79 removed the Inventory widget for
357
- * now; since phase 3b what somebody carries is the `inventory` list stat,
358
- * drawn here like any list. Its id is retired (`RETIRED_WIDGET_IDS`), so a stored layout that
359
- * still places it draws nothing there.
476
+ * Stats — the session surface over the attribute slots
477
+ * (`docs/stats-and-states.md`), for every owner that holds them: the
478
+ * world, the cast, the places. One widget with three axes since the Stats
479
+ * uplift (PLAN-core-widgets W7, 2026-10-11): `owners` (whose), `slots`
480
+ * (which) and `arrangement` (how — cards, a list down a rail, a strip
481
+ * across the top). World State was this widget drawn for the world as a
482
+ * strip, so its id is now an alias (`WIDGET_ID_ALIASES`): a layout that
483
+ * places `world-state` draws Stats with `owners: world, arrangement:
484
+ * strip` under its own settings. A layout that wants both the world strip
485
+ * and the party's cards places Stats twice (`stats#world`).
360
486
  *
361
- * Each is a core remote component (R21): it reads the `session_state`
362
- * section, and every edit it offers is the USER's, which applies
363
- * immediately. Nothing here is a review gate — the gate is in the
364
- * transcript, where the model's proposals wait, because the gate exists for
365
- * the writer with no authority.
487
+ * R79 removed the Inventory widget for now; what somebody carries is the
488
+ * `inventory` list stat, drawn here like any list. Its id is retired
489
+ * (`RETIRED_WIDGET_IDS`), so a stored layout that still places it draws
490
+ * nothing there.
366
491
  *
367
- * A genre that declares no slots gives both an empty state, so adding
368
- * one to a chat session costs nothing and says so.
492
+ * A core remote component (R21): it reads the `session_state` section,
493
+ * and every edit it offers is the USER's, which applies immediately.
494
+ * Nothing here is a review gate — the gate is in the transcript, where the
495
+ * model's proposals wait, because the gate exists for the writer with no
496
+ * authority. A genre that declares no slots gives it an empty state, so
497
+ * adding one to a chat session costs nothing and says so.
369
498
  */
370
499
  {
371
500
  id: 'stats',
372
501
  title: 'Stats',
373
502
  icon: 'HeartPulse',
374
503
  component: 'stats',
375
- /** The session's state (R72): its cast owners, slots and values — never the log. */
504
+ layout: { span: { ideal: 1 }, minInline: 220 },
505
+ /** The session's state (R72): its owners, slots and values — never the log. */
376
506
  scopes: ['session:state'],
377
507
  reads: ['settings'],
378
508
  presets: [DEFAULT_PRESET],
379
509
  settings: {
380
- members: {
510
+ owners: {
381
511
  type: 'enum',
382
- label: 'Members',
383
- description: 'Scene shows whoever has state in play; All shows every ' +
384
- 'cast member; Pick shows the ones you name.',
385
- of: ['scene', 'all', 'pick'],
512
+ label: 'Whose stats',
513
+ description: "Cast draws the cast's; World the world's, with any place that " +
514
+ 'has a stat in play under it; Places every place in play; All ' +
515
+ 'draws the world, the cast and the places, each under its own ' +
516
+ 'heading; Pick draws the ones you name.',
517
+ of: ['cast', 'world', 'places', 'all', 'pick'],
386
518
  members: [
387
- { key: 'scene', label: 'Scene' },
519
+ { key: 'cast', label: 'Cast' },
520
+ { key: 'world', label: 'World' },
521
+ { key: 'places', label: 'Places' },
388
522
  { key: 'all', label: 'All' },
389
523
  { key: 'pick', label: 'Pick' },
390
524
  ],
391
- default: 'scene',
525
+ default: 'cast',
392
526
  },
393
- pickMembers: {
527
+ pickOwners: {
394
528
  type: 'string[]',
395
- label: 'Which members',
396
- description: 'One name per line.',
529
+ label: 'Which owners',
530
+ description: "One name per line: a cast member, a place, or 'World'.",
397
531
  default: [],
398
- showIf: { field: 'members', equals: 'pick' },
532
+ showIf: { field: 'owners', equals: 'pick' },
399
533
  },
400
- density: {
534
+ /**
535
+ * Read when `owners` is Cast or All. Always shown: `showIf` holds one
536
+ * `equals`, and hiding it under All would hide what All reads.
537
+ */
538
+ castScope: {
401
539
  type: 'enum',
402
- label: 'Density',
403
- description: 'Full draws a labelled row per stat; Compact fits them on ' +
404
- 'as few lines as the card allows.',
405
- of: ['compact', 'full'],
540
+ label: 'Which cast members',
541
+ description: 'With Cast or All: Scene shows whoever has a stat in play; All ' +
542
+ 'shows every cast member.',
543
+ of: ['scene', 'all'],
406
544
  members: [
407
- { key: 'compact', label: 'Compact' },
408
- { key: 'full', label: 'Full' },
545
+ { key: 'scene', label: 'Scene' },
546
+ { key: 'all', label: 'All' },
409
547
  ],
410
- default: 'full',
548
+ default: 'scene',
411
549
  },
412
550
  slots: {
413
551
  type: 'enum',
414
552
  label: 'Stats',
415
- description: 'Every stat a member carries, or the ones you name.',
416
- of: ['all', 'pick'],
553
+ description: 'Every stat an owner carries; Bars, only the numbers with a ' +
554
+ 'floor and a ceiling (a HUD); or the ones you name.',
555
+ of: ['all', 'bars', 'pick'],
417
556
  members: [
418
557
  { key: 'all', label: 'All' },
558
+ { key: 'bars', label: 'Bars' },
419
559
  { key: 'pick', label: 'Pick' },
420
560
  ],
421
561
  default: 'all',
@@ -427,19 +567,65 @@ export const CORE_WIDGETS = [
427
567
  default: [],
428
568
  showIf: { field: 'slots', equals: 'pick' },
429
569
  },
570
+ arrangement: {
571
+ type: 'enum',
572
+ label: 'Arrangement',
573
+ description: 'Cards draws a card per owner; List one labelled row per stat ' +
574
+ 'down a column; Strip one line across the top of the messages.',
575
+ of: ['cards', 'list', 'strip'],
576
+ members: [
577
+ { key: 'cards', label: 'Cards' },
578
+ { key: 'list', label: 'List' },
579
+ { key: 'strip', label: 'Strip' },
580
+ ],
581
+ default: 'cards',
582
+ },
583
+ density: {
584
+ type: 'enum',
585
+ label: 'Density',
586
+ description: 'Full draws a labelled row per stat; Compact fits them on ' +
587
+ 'as few lines as the card allows.',
588
+ of: ['compact', 'full'],
589
+ members: [
590
+ { key: 'compact', label: 'Compact' },
591
+ { key: 'full', label: 'Full' },
592
+ ],
593
+ default: 'full',
594
+ },
595
+ /**
596
+ * 🚧 The **stat trail** (PLAN-core-widgets §3.10, F2): a button
597
+ * beside each stat opens the changes that led to its value, by
598
+ * message (`stat-trail`). Anyone in the session may read it.
599
+ */
600
+ trail: {
601
+ type: 'boolean',
602
+ label: 'Show changes',
603
+ description: 'A button beside each stat lists how it changed in this ' +
604
+ 'session: what it was, what it became, and who changed it.',
605
+ default: true,
606
+ group: 'behaviour',
607
+ },
430
608
  },
431
609
  },
610
+ /**
611
+ * ⏳ World State — Stats drawn for the world as a strip, now an ALIAS of
612
+ * `stats` (`WIDGET_ID_ALIASES`, W7 2026-10-11): every reader resolves a
613
+ * placed `world-state` to Stats with `owners: world, arrangement: strip`,
614
+ * so nothing mounts this declaration, and no tray offers it. It stays
615
+ * declared for one release only so its `widget_styles` rows are not
616
+ * pruned as undeclared (`syncWidgetStyles`' `pruneUndeclared`) and its
617
+ * module still serves at `/core-ui/world-state` (a thin wrapper of
618
+ * Stats). Its settings are the ones a stored row may still hold; the
619
+ * settings reader reads `layout` as Stats' `arrangement`.
620
+ * @deprecated REMOVE in 0.7.0 — place `stats#world` with `owners: 'world'`
621
+ * and `arrangement: 'strip'`.
622
+ */
432
623
  {
433
624
  id: 'world-state',
434
- /**
435
- * A strip by default (its own `layout` setting): this is the one piece
436
- * of state that is about the SCENE rather than about a person, so a
437
- * layout sets it where the scene is — Adventure's, above the
438
- * conversation.
439
- */
440
625
  title: 'World State',
441
626
  icon: 'CloudSun',
442
627
  component: 'world-state',
628
+ layout: { span: { ideal: 2 }, minInline: 240, minBlock: 60 },
443
629
  /** The session's state (R72): the world owner's slots and values — never the log. */
444
630
  scopes: ['session:state'],
445
631
  reads: ['settings'],
@@ -477,6 +663,474 @@ export const CORE_WIDGETS = [
477
663
  },
478
664
  },
479
665
  },
666
+ /**
667
+ * 🚧 Turn order (PLAN-core-widgets W1, 2026-10-10): whose turn it is, who
668
+ * follows, and — where the viewer may — Continue and Pick who speaks. The
669
+ * session's stored order (`turnOrder.v1`) drawn as a list to look at:
670
+ * the head line means what the composer's *Who is due next* line means
671
+ * (the same `order[0]`, the same words), then a row per prepared turn
672
+ * with its chip (*Due* · *Then* · *You*), then the two controls and the
673
+ * strategy in force. Unlike the composer's line it never hides while a
674
+ * draft exists — it is for looking while someone else writes.
675
+ *
676
+ * Faces and "you" come from the cast (`characters`); who may press comes
677
+ * from the session's own turn controls (`actions.v1`, `core#advance` /
678
+ * `core#pick`) where the genre lists them, else from `viewer.v1`. A
679
+ * control the viewer may not press is greyed with its reason, never
680
+ * hidden. One per layout: a second copy would show the same thing.
681
+ */
682
+ {
683
+ id: 'turn-order',
684
+ title: 'Turn order',
685
+ icon: 'ListOrdered',
686
+ component: 'turn-order',
687
+ layout: { span: { ideal: 1 }, minInline: 220 },
688
+ /** Faces, names and `mine` — the cast, cascaded (R76). */
689
+ scopes: ['characters'],
690
+ reads: ['turnOrder', 'viewer', 'actions', 'settings', 'locale'],
691
+ maxInstances: 1,
692
+ presets: [DEFAULT_PRESET],
693
+ settings: {
694
+ faces: {
695
+ type: 'boolean',
696
+ label: 'Faces',
697
+ description: "Draw each speaker's face beside their name.",
698
+ default: true,
699
+ },
700
+ showStrategy: {
701
+ type: 'boolean',
702
+ label: 'Show the strategy',
703
+ description: 'Name the strategy that set the order (Round robin, Manual, …) under the controls.',
704
+ default: true,
705
+ group: 'behaviour',
706
+ },
707
+ /**
708
+ * 🚧 W6 (2026-10-11): `characters.v1` lists a benched character
709
+ * (`benched: true`) since the Scene Portraits uplift, so the
710
+ * plan's setting is drawable now.
711
+ */
712
+ showBenched: {
713
+ type: 'boolean',
714
+ label: 'Show benched characters',
715
+ description: 'List the characters switched off in Participants under the order.',
716
+ default: false,
717
+ group: 'behaviour',
718
+ },
719
+ },
720
+ },
721
+ /**
722
+ * 🚧 Actions (PLAN-core-widgets W8, 2026-10-11): what can I do right now.
723
+ * The session's listed actions (`actions.v1`) as real buttons, each with
724
+ * its icon and name, in three groups taken from fields the listing
725
+ * carries — the **turn controls** (the `extra` venue: Continue, Pick who
726
+ * speaks, Regenerate, …), then the **genre's** own (the `composer`
727
+ * venue), then the **added** ones (`origin: 'foreign'` — another
728
+ * namespace's, switched on for this genre). A press is `invoke`, so an
729
+ * action that collects text or recipients opens the page's collect modal
730
+ * exactly as its chip does. A greyed action keeps its reason as its
731
+ * title, in the chips' words (`paletteRowState`), never hidden.
732
+ *
733
+ * Not the composer's Actions disclosure: that row is about the line being
734
+ * written and folds away; this stays up while someone else writes, and
735
+ * `size: large` is the tile grid a phone needs for a long list.
736
+ *
737
+ * ⚠ `showWaiting` is declared, not drawn: the questions put to the
738
+ * viewer's characters (a message's forms) reach no section this widget
739
+ * reads — the forms ride `messages.v1` and who may answer one is the
740
+ * conversation dossier's word.
741
+ */
742
+ {
743
+ id: 'actions',
744
+ title: 'Actions',
745
+ icon: 'MousePointerClick',
746
+ component: 'actions',
747
+ layout: { span: { ideal: 1 }, minInline: 220 },
748
+ reads: ['actions', 'settings', 'locale'],
749
+ maxInstances: 1,
750
+ presets: [DEFAULT_PRESET],
751
+ settings: {
752
+ groups: {
753
+ type: 'enum',
754
+ label: 'Show',
755
+ description: 'Every group, or one alone: the turn controls, the genre\'s own ' +
756
+ 'actions, or the actions added to it from outside.',
757
+ of: ['all', 'turn', 'genre', 'foreign'],
758
+ members: [
759
+ { key: 'all', label: 'All' },
760
+ { key: 'turn', label: 'Turn controls' },
761
+ { key: 'genre', label: 'Genre actions' },
762
+ { key: 'foreign', label: 'Added actions' },
763
+ ],
764
+ default: 'all',
765
+ },
766
+ size: {
767
+ type: 'enum',
768
+ label: 'Size',
769
+ description: 'Compact draws chips that wrap; Large draws a grid of tiles ' +
770
+ 'a finger lands on easily.',
771
+ of: ['compact', 'large'],
772
+ members: [
773
+ { key: 'compact', label: 'Compact' },
774
+ { key: 'large', label: 'Large' },
775
+ ],
776
+ default: 'compact',
777
+ },
778
+ showWaiting: {
779
+ type: 'boolean',
780
+ label: 'Show what waits on you',
781
+ description: 'List the questions put to your characters that wait for your ' +
782
+ 'answer. Not drawn yet: the widget cannot see them.',
783
+ default: true,
784
+ group: 'behaviour',
785
+ },
786
+ },
787
+ },
788
+ /**
789
+ * 🚧 Annex (PLAN-core-widgets W9, 2026-10-11): what the pipeline knows
790
+ * that the viewer may see — one declared annex key, by its label, in the
791
+ * shape it was declared in. The `key` setting names it as a template
792
+ * does, `<owner>.<key>`. It draws the viewer's own view of the annex
793
+ * (`annex.v1`), never the annex itself, so a key whose `see` audience
794
+ * leaves the viewer out is never drawn. Text is prose, a number or a
795
+ * choice one row, a list chips, an object a row per member.
796
+ *
797
+ * The field's label and whether the viewer may set it are the host's,
798
+ * from its listing (`actions.v1`): a settable field is one action at the
799
+ * `widget` venue, `<owner>:annex#<key>`, named by its label and judged
800
+ * for the viewer. A text field the viewer may set has the Session data
801
+ * list's Edit, which presses that action with `{ value }` — the same
802
+ * door, the same write.
803
+ *
804
+ * ⚠ Neither the declared shape nor the `see` verdict reaches a widget
805
+ * yet: a field nobody may set is titled by its key and drawn by its
806
+ * value's own form, and a key the viewer may not see reads as *Nothing
807
+ * written yet*. The settings sheet offers no list of the keys (the
808
+ * field language has no options-from-the-session); the key is typed.
809
+ */
810
+ {
811
+ id: 'annex',
812
+ title: 'Annex',
813
+ icon: 'ClipboardList',
814
+ component: 'annex',
815
+ layout: { span: { ideal: 1 }, minInline: 220 },
816
+ reads: ['annex', 'actions', 'viewer', 'settings', 'locale'],
817
+ presets: [DEFAULT_PRESET],
818
+ settings: {
819
+ key: {
820
+ type: 'string',
821
+ label: 'Key',
822
+ description: 'The annex key to show, written as its owner, a dot, then the key: ' +
823
+ "core.retake-quietly, or a plugin's acme.dice.last-roll. Edit session › " +
824
+ 'Settings › Session data lists every key under its owner.',
825
+ default: '',
826
+ },
827
+ showLabel: {
828
+ type: 'boolean',
829
+ label: 'Show the label',
830
+ description: "Draw the field's label above its value.",
831
+ default: false,
832
+ },
833
+ },
834
+ },
835
+ /**
836
+ * 🚧 Album (PLAN-core-widgets W2, 2026-10-11): what has this session
837
+ * shown me — every picture on its lines (`messages.v1` rows' `core:image`
838
+ * parts, the shown revision), newest line first, each a square tile with
839
+ * a corner glyph for where it came from: **attached** by a person (a
840
+ * person's line) or **generated** by a run (any other line). Hover or
841
+ * focus names who showed it and when; a press opens the page's lightbox
842
+ * (`view-image`) with the whole album as its pages, in the order drawn.
843
+ * `arrangement: latest` draws the newest large and the rest as a strip,
844
+ * so an illustrated scene sits beside the log as it is generated.
845
+ *
846
+ * ⚠ Not a **gallery** (a character's or persona's own image set) — the
847
+ * word stays theirs (R1) — not the **media strip** (one message's files,
848
+ * under its card), and not the **Media** collection. Its tile is its own
849
+ * (`album.tile`), drawn like the strip's: the strip's tile is markup
850
+ * inside the conversation, not yet a shared control.
851
+ *
852
+ * ⚠ The caption does not jump to its line: a fragment link from this box
853
+ * is prefixed into the box (`guardedConnection`, every box but the
854
+ * conversation holding the page's ids), so `#message-<id>` cannot reach
855
+ * the log's anchor, and `selection:changed` has no producer yet.
856
+ */
857
+ {
858
+ id: 'album',
859
+ title: 'Album',
860
+ icon: 'BookImage',
861
+ component: 'album',
862
+ layout: { span: { ideal: 1 }, minInline: 200 },
863
+ reads: ['messages', 'settings', 'locale'],
864
+ presets: [DEFAULT_PRESET],
865
+ settings: {
866
+ source: {
867
+ type: 'enum',
868
+ label: 'Show',
869
+ description: 'Every picture, or only what people attached, or only what was generated.',
870
+ of: ['all', 'attached', 'generated'],
871
+ members: [
872
+ { key: 'all', label: 'Everything' },
873
+ { key: 'attached', label: 'Attached' },
874
+ { key: 'generated', label: 'Generated' },
875
+ ],
876
+ default: 'all',
877
+ },
878
+ tile: {
879
+ type: 'enum',
880
+ label: 'Tile size',
881
+ of: ['small', 'medium', 'large'],
882
+ members: [
883
+ { key: 'small', label: 'Small' },
884
+ { key: 'medium', label: 'Medium' },
885
+ { key: 'large', label: 'Large' },
886
+ ],
887
+ default: 'medium',
888
+ },
889
+ arrangement: {
890
+ type: 'enum',
891
+ label: 'Arrangement',
892
+ description: 'Grid draws every picture the same size; Newest large draws the ' +
893
+ 'newest picture big, with the rest as a strip beneath it.',
894
+ of: ['grid', 'latest'],
895
+ members: [
896
+ { key: 'grid', label: 'Grid' },
897
+ { key: 'latest', label: 'Newest large' },
898
+ ],
899
+ default: 'grid',
900
+ },
901
+ /**
902
+ * One channel's pictures (the Messages widget's `channel`, read
903
+ * the same way: a slug, every lane of it). Empty is every
904
+ * channel: an album takes no line from a log, so no copy's claim
905
+ * narrows it.
906
+ */
907
+ channel: {
908
+ type: 'string',
909
+ label: 'Channel',
910
+ description: "Show one channel's pictures only, by its slug (the Lair's is sanctum). " +
911
+ 'Empty shows every channel.',
912
+ group: 'behaviour',
913
+ },
914
+ },
915
+ },
916
+ /**
917
+ * 🚧 Backdrop (DESIGN-image-generation §6.4, ruling §9.4; 2026-10-12):
918
+ * the session's **backdrop** — one picture, session state
919
+ * (`sessions.backdropMediaId`), set by a pipeline
920
+ * (`core:outlet/set-backdrop@1`) or by a person here. It reads the
921
+ * `session` section (`SessionV1.backdrop`, the host's `fitted` address),
922
+ * draws it fitted under a darkening overlay, and offers the session's
923
+ * owner or an admin **Change** (a cast member's gallery, paged by
924
+ * `character-images` — Scene Portraits' chooser request, so it holds
925
+ * `characters`) and **Clear** (`set-backdrop`). **Illustrate** fires
926
+ * the Scene action (`actions`) with `{ placement: 'backdrop' }` (I9).
927
+ *
928
+ * ⚠ Not the app background (a person's own, behind every screen), not a
929
+ * message attachment, and not the retired *scene image* pins.
930
+ */
931
+ {
932
+ id: 'backdrop',
933
+ title: 'Backdrop',
934
+ icon: 'MountainSnow',
935
+ component: 'backdrop',
936
+ layout: { span: { ideal: 1 }, minInline: 200 },
937
+ scopes: ['characters'],
938
+ // `actions`: the Scene action, for **Illustrate** (I9).
939
+ reads: ['session', 'settings', 'locale', 'viewer', 'actions'],
940
+ presets: [DEFAULT_PRESET],
941
+ settings: {
942
+ fit: {
943
+ type: 'enum',
944
+ label: 'Fit',
945
+ description: 'Fill the box and crop the edges, or show the whole picture.',
946
+ of: ['cover', 'contain'],
947
+ members: [
948
+ { key: 'cover', label: 'Fill' },
949
+ { key: 'contain', label: 'Whole picture' },
950
+ ],
951
+ default: 'cover',
952
+ },
953
+ /** A darkening overlay, so text laid over the picture stays legible. */
954
+ dim: {
955
+ type: 'integer',
956
+ label: 'Dim',
957
+ description: 'Darken the picture so text over it is easier to read. 0 is none, 100 is black.',
958
+ min: 0,
959
+ max: 100,
960
+ default: 0,
961
+ },
962
+ },
963
+ },
964
+ /**
965
+ * 🚧 Chronicle (PLAN-core-widgets W3, 2026-10-11): when are we in the
966
+ * story, and what has the lorebook recorded of this session. Top to
967
+ * bottom: the session's **story clock** (its own, or its line's present
968
+ * it follows — with **Next day** / **Move the clock…** / **Follow the
969
+ * line's present** for the session's owner, and a chip when its own
970
+ * clock stands before its line's present); **Now**, the history entry
971
+ * the session reads on its line up to its clock, with **Open in
972
+ * lorebook** and **Start new history entry**; that entry's scenes from
973
+ * this session, with **Summarize scene** and **Extend graph (N)**; and
974
+ * **Earlier**, the entries before it, folded. It is the composer's Lore
975
+ * pane's history half, moved (Q3): the pane keeps what the next reply
976
+ * would pull in and the entries that have come up.
977
+ *
978
+ * Everything is asked of the page (`history-entries`, `set-story-clock`,
979
+ * `start-history-entry`, `extend-graph`, `summarize`, `open-lore`); the
980
+ * declared `lore` scope is the grant for the read, and `story:moved`
981
+ * tells it to ask again. A guest reads the clock alone: the entries and
982
+ * scenes are the lorebook owner's.
983
+ *
984
+ * ⚠ Not a **history entry** (one dated row it lists), not a **scene**,
985
+ * and not the **story clock** (the value its head shows). A genre with
986
+ * no lorebook omits it (Dungeon Crawler, when it lands).
987
+ */
988
+ {
989
+ id: 'chronicle',
990
+ title: 'Chronicle',
991
+ icon: 'Calendar',
992
+ component: 'chronicle',
993
+ layout: { span: { ideal: 1 }, minInline: 260 },
994
+ /** The grant `history-entries` reads with — nothing is pushed. */
995
+ scopes: ['lore'],
996
+ reads: ['settings', 'viewer', 'session'],
997
+ presets: [DEFAULT_PRESET],
998
+ settings: {
999
+ clock: {
1000
+ type: 'boolean',
1001
+ label: 'Show the story clock',
1002
+ description: "Draw where the session stands in its story, and its owner's controls to move it.",
1003
+ default: true,
1004
+ },
1005
+ earlierCount: {
1006
+ type: 'integer',
1007
+ label: 'Earlier entries shown',
1008
+ description: 'How many history entries before the current one the Earlier list shows.',
1009
+ default: 10,
1010
+ min: 5,
1011
+ max: 50,
1012
+ group: 'behaviour',
1013
+ },
1014
+ },
1015
+ },
1016
+ /**
1017
+ * 🚧 Places (PLAN-core-widgets W4, 2026-10-11): where are we, what is
1018
+ * around us, where can we go. The session's places — its lorebook's
1019
+ * `core:entry/location` entries on its line, at its story clock, a place
1020
+ * switched off or archived by then left out, a renamed one by its name
1021
+ * then — as a **list** (name, category tint, the faces of the cast who
1022
+ * stand there, its ways out; the world's `location` marked **Here**; a
1023
+ * press opens the entry) or a **map** (the shared **map canvas**:
1024
+ * squares tinted by category, arrows for ways — an arrowhead at each end
1025
+ * when a way reads both ways — faces on squares, **Here** ringed; a
1026
+ * press opens the place's detail: its ways said from it, what the book
1027
+ * links to it, who is here, its stats, **Open entry**).
1028
+ *
1029
+ * The places and ways are asked of the page (`session-places`, under the
1030
+ * `lore` grant); who stands where is the session's state, read from
1031
+ * `session_state.v1` (each owner's `location`). The Lair's right column
1032
+ * (list, both picked out) and Adventure's tray place it; every core
1033
+ * genre with a lorebook offers it.
1034
+ *
1035
+ * ⚠ Not the lorebook's **Places lens** (where places and ways are made),
1036
+ * not **Stats** (which draws a place's stats as cards), and never titled
1037
+ * *Map*: Dungeon Crawler's `crawl-map` is *Map* in its genre.
1038
+ */
1039
+ {
1040
+ id: 'places',
1041
+ title: 'Places',
1042
+ icon: 'Map',
1043
+ component: 'places',
1044
+ layout: { span: { ideal: 2 }, minInline: 260, minBlock: 120 },
1045
+ /** The grant `session-places` reads with, and the state who stands where is read from. */
1046
+ scopes: ['lore', 'session:state'],
1047
+ reads: ['settings'],
1048
+ presets: [DEFAULT_PRESET],
1049
+ settings: {
1050
+ view: {
1051
+ type: 'enum',
1052
+ label: 'View',
1053
+ description: 'A list of the places, or a map of them with their ways drawn between.',
1054
+ of: ['list', 'map'],
1055
+ members: [
1056
+ { key: 'list', label: 'List' },
1057
+ { key: 'map', label: 'Map' },
1058
+ ],
1059
+ default: 'list',
1060
+ },
1061
+ highlight: {
1062
+ type: 'enum',
1063
+ label: 'Pick out',
1064
+ description: "Where the scene is (the world's location, marked Here), where the " +
1065
+ 'cast stand (their faces on the place), or both.',
1066
+ of: ['world', 'cast', 'both'],
1067
+ members: [
1068
+ { key: 'world', label: 'Where the scene is' },
1069
+ { key: 'cast', label: 'Where the cast stand' },
1070
+ { key: 'both', label: 'Both' },
1071
+ ],
1072
+ default: 'both',
1073
+ },
1074
+ categories: {
1075
+ type: 'string[]',
1076
+ label: 'Categories',
1077
+ description: "One category per line, as the places are filed ('Upper floor'). Empty shows every place.",
1078
+ default: [],
1079
+ group: 'behaviour',
1080
+ },
1081
+ showWays: {
1082
+ type: 'boolean',
1083
+ label: 'Show ways out',
1084
+ description: "Write each place's ways out under its name in the list, and in a place's detail.",
1085
+ default: true,
1086
+ group: 'behaviour',
1087
+ },
1088
+ },
1089
+ },
1090
+ /**
1091
+ * 🚧 Who's here (PLAN-core-widgets W10, 2026-10-11): which people have
1092
+ * this session open now, as whom each writes, and who is typing. The
1093
+ * session's **attendance** (`attendance.v1`, a base section) drawn as two
1094
+ * groups: **Here** — a row per person with the session open (their
1095
+ * name, *you* on the viewer's own, the persona each writes as with its
1096
+ * face, a typing pulse, and *Owner* / *Guest* as a quiet chip) — and
1097
+ * **Away** — the session's other members, with when they were last here.
1098
+ * A press on a persona opens its sheet (`open-character`).
1099
+ *
1100
+ * Who is here is the host's word: a person whose tab holds the session
1101
+ * open, in any tab. The faces come from the cast (`characters`). One per
1102
+ * layout: a second copy would show the same people. Every genre offers it.
1103
+ *
1104
+ * ⚠ Not a cast **presence** (a cast member's dated span in the world):
1105
+ * these are the session's people — its owner and guests — not its cast.
1106
+ */
1107
+ {
1108
+ id: 'attendance',
1109
+ title: "Who's here",
1110
+ icon: 'Users',
1111
+ component: 'attendance',
1112
+ layout: { span: { ideal: 1 }, minInline: 220 },
1113
+ /** The personas' faces and names, by the refs the attendance names (R76). */
1114
+ scopes: ['characters'],
1115
+ reads: ['attendance', 'viewer', 'settings'],
1116
+ maxInstances: 1,
1117
+ presets: [DEFAULT_PRESET],
1118
+ settings: {
1119
+ showAway: {
1120
+ type: 'boolean',
1121
+ label: 'Show who is away',
1122
+ description: 'List the people with a seat who do not have the session open, with when they were last here.',
1123
+ default: true,
1124
+ group: 'behaviour',
1125
+ },
1126
+ faces: {
1127
+ type: 'boolean',
1128
+ label: 'Faces',
1129
+ description: "Draw each persona's face beside its name.",
1130
+ default: true,
1131
+ },
1132
+ },
1133
+ },
480
1134
  /**
481
1135
  * 🚧 The author's note (2026-10-02, AN1; owner ruling: Chat only): the
482
1136
  * session's own note to the model, edited and saved here, with what the
@@ -492,6 +1146,7 @@ export const CORE_WIDGETS = [
492
1146
  title: "Author's note",
493
1147
  icon: 'NotebookPen',
494
1148
  component: 'authors-note',
1149
+ layout: { span: { ideal: 1 }, minInline: 240 },
495
1150
  reads: [],
496
1151
  presets: [DEFAULT_PRESET],
497
1152
  },
@@ -514,10 +1169,32 @@ export const coreWidgets = {
514
1169
  conversation: coreWidget('messages'),
515
1170
  scenePortraits: coreWidget('scene-portraits'),
516
1171
  loreEntries: coreWidget('lore-entries'),
1172
+ /** Stats (W7): the world's, the cast's and the places' stats — as cards, a list or a strip. */
517
1173
  stats: coreWidget('stats'),
1174
+ /**
1175
+ * ⏳ World State is Stats now (`WIDGET_ID_ALIASES`): a layout naming it
1176
+ * draws Stats with `owners: 'world', arrangement: 'strip'`.
1177
+ * @deprecated REMOVE in 0.7.0 — place `stats#world` with those settings.
1178
+ */
518
1179
  worldState: coreWidget('world-state'),
519
1180
  /** 🚧 The author's note (AN1) — Chat's; the other core genres omit it. */
520
1181
  authorsNote: coreWidget('authors-note'),
1182
+ /** 🚧 Turn order (W1): whose turn it is, who follows, Continue and Pick who speaks. */
1183
+ turnOrder: coreWidget('turn-order'),
1184
+ /** 🚧 Actions (W8): the session's actions as buttons — turn controls, the genre's, the added. */
1185
+ actions: coreWidget('actions'),
1186
+ /** 🚧 Annex (W9): one declared annex key, by its label, as the viewer may see it. */
1187
+ annex: coreWidget('annex'),
1188
+ /** 🚧 Album (W2): every picture on the session's lines, newest first; the lightbox pages them all. */
1189
+ album: coreWidget('album'),
1190
+ /** 🚧 Backdrop: the session's backdrop picture, with Change and Clear for its owner. */
1191
+ backdrop: coreWidget('backdrop'),
1192
+ /** 🚧 Chronicle (W3): the session's story clock, the history entry it reads now with its scenes, and the entries before. */
1193
+ chronicle: coreWidget('chronicle'),
1194
+ /** 🚧 Places (W4): the session's places as a list or a map — where the scene is, who stands where, the ways between. */
1195
+ places: coreWidget('places'),
1196
+ /** 🚧 Who's here (W10): the session's people — who has it open, as whom each writes, who is typing, who is away. */
1197
+ attendance: coreWidget('attendance'),
521
1198
  };
522
1199
  /**
523
1200
  * Core's components (C6 P1), declared through the public API as a package
@@ -531,6 +1208,8 @@ export const coreWidgets = {
531
1208
  */
532
1209
  export const CORE_COMPONENTS = [
533
1210
  component({ slug: 'messages', label: 'Messages', entry: 'components/shared/messages/messages.ts', framework: 'svelte' }),
1211
+ // ⏳ REMOVE in 0.7.0 with the `world-state` declaration: a thin wrapper of
1212
+ // Stats in World State's settings, kept so `/core-ui/world-state` serves.
534
1213
  component({
535
1214
  slug: 'world-state',
536
1215
  label: 'World State',
@@ -556,6 +1235,54 @@ export const CORE_COMPONENTS = [
556
1235
  entry: 'components/genres/chat/authors-note/authors-note.ts',
557
1236
  framework: 'svelte',
558
1237
  }),
1238
+ component({
1239
+ slug: 'turn-order',
1240
+ label: 'Turn order',
1241
+ entry: 'components/shared/turn-order/turn-order.ts',
1242
+ framework: 'svelte',
1243
+ }),
1244
+ component({
1245
+ slug: 'actions',
1246
+ label: 'Actions',
1247
+ entry: 'components/shared/actions/actions.ts',
1248
+ framework: 'svelte',
1249
+ }),
1250
+ component({
1251
+ slug: 'annex',
1252
+ label: 'Annex',
1253
+ entry: 'components/shared/annex/annex.ts',
1254
+ framework: 'svelte',
1255
+ }),
1256
+ component({
1257
+ slug: 'album',
1258
+ label: 'Album',
1259
+ entry: 'components/shared/album/album.ts',
1260
+ framework: 'svelte',
1261
+ }),
1262
+ component({
1263
+ slug: 'backdrop',
1264
+ label: 'Backdrop',
1265
+ entry: 'components/shared/backdrop/backdrop.ts',
1266
+ framework: 'svelte',
1267
+ }),
1268
+ component({
1269
+ slug: 'chronicle',
1270
+ label: 'Chronicle',
1271
+ entry: 'components/shared/chronicle/chronicle.ts',
1272
+ framework: 'svelte',
1273
+ }),
1274
+ component({
1275
+ slug: 'places',
1276
+ label: 'Places',
1277
+ entry: 'components/shared/places/places.ts',
1278
+ framework: 'svelte',
1279
+ }),
1280
+ component({
1281
+ slug: 'attendance',
1282
+ label: "Who's here",
1283
+ entry: 'components/shared/attendance/attendance.ts',
1284
+ framework: 'svelte',
1285
+ }),
559
1286
  ];
560
1287
  /**
561
1288
  * Core components an admin may read but not clone (C6 Q3): `messages` runs