@serene-pub/core-catalog 0.6.0-pr-7 → 0.6.0-pr-9

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 (276) hide show
  1. package/README.md +1 -1
  2. package/components/genres/story/authors-note/AuthorsNote.svelte +2 -1
  3. package/components/genres/story/authors-note/AuthorsNoteWidget.svelte +177 -58
  4. package/components/shared/WidgetBoundary.svelte +37 -0
  5. package/components/shared/actions/Actions.svelte +2 -1
  6. package/components/shared/actions/ActionsWidget.svelte +31 -38
  7. package/components/shared/album/Album.svelte +2 -1
  8. package/components/shared/album/AlbumWidget.svelte +1 -7
  9. package/components/shared/annex/Annex.svelte +2 -1
  10. package/components/shared/annex/AnnexWidget.svelte +1 -1
  11. package/components/shared/attendance/Attendance.svelte +2 -1
  12. package/components/shared/attendance/AttendanceWidget.svelte +5 -8
  13. package/components/shared/backdrop/Backdrop.svelte +2 -1
  14. package/components/shared/backdrop/BackdropWidget.svelte +28 -22
  15. package/components/shared/chronicle/Chronicle.svelte +2 -1
  16. package/components/shared/chronicle/ChronicleWidget.svelte +211 -99
  17. package/components/shared/composer/Composer.svelte +25 -0
  18. package/components/shared/composer/ComposerWidget.svelte +146 -0
  19. package/components/shared/composer/composer.ts +10 -0
  20. package/components/shared/composer/settings.ts +59 -0
  21. package/components/shared/composer/target.ts +79 -0
  22. package/components/shared/dialogue-box/DialogueBoxMount.svelte +25 -0
  23. package/components/shared/dialogue-box/DialogueBoxWidget.svelte +207 -0
  24. package/components/shared/dialogue-box/dialogue-box.ts +10 -0
  25. package/components/shared/dialogue-box/settings.ts +25 -0
  26. package/components/shared/lore-entries/LoreEntries.svelte +2 -1
  27. package/components/shared/lore-entries/LoreEntriesWidget.svelte +44 -41
  28. package/components/shared/messages/MessageBlocksView.svelte +1 -1
  29. package/components/shared/messages/MessageControls.svelte +23 -5
  30. package/components/shared/messages/Messages.svelte +2 -1
  31. package/components/shared/messages/MessagesWidget.svelte +82 -191
  32. package/components/shared/messages/NextCharacterBlock.svelte +35 -20
  33. package/components/shared/messages/SceneDivider.svelte +40 -14
  34. package/components/shared/messages/SessionComposer.svelte +178 -123
  35. package/components/shared/messages/SessionContainer.svelte +89 -38
  36. package/components/shared/messages/SessionMessage.svelte +157 -54
  37. package/components/shared/messages/SpokenLine.svelte +57 -16
  38. package/components/shared/messages/StateProposalList.svelte +30 -20
  39. package/components/shared/messages/TurnLine.svelte +258 -66
  40. package/components/shared/messages/conversation.svelte.ts +83 -5
  41. package/components/shared/messages/readingPace.ts +101 -0
  42. package/components/shared/messages/rowFacts.ts +44 -0
  43. package/components/shared/messages/sceneMarks.ts +54 -0
  44. package/components/shared/messages/spokenLine.ts +63 -14
  45. package/components/shared/places/Places.svelte +2 -1
  46. package/components/shared/places/PlacesWidget.svelte +42 -33
  47. package/components/shared/routine-log/RoutineLog.svelte +2 -1
  48. package/components/shared/routine-log/RoutineLogWidget.svelte +0 -4
  49. package/components/shared/routine-log/routineLog.ts +5 -21
  50. package/components/shared/scene-portraits/ScenePortraits.svelte +2 -1
  51. package/components/shared/scene-portraits/ScenePortraitsWidget.svelte +54 -32
  52. package/components/shared/session-runs/SessionRuns.svelte +26 -0
  53. package/components/shared/session-runs/SessionRunsWidget.svelte +270 -0
  54. package/components/shared/session-runs/session-runs.ts +11 -0
  55. package/components/shared/state/PieceCard.svelte +36 -25
  56. package/components/shared/state/SlotControl.svelte +18 -5
  57. package/components/shared/stats/Stats.svelte +2 -1
  58. package/components/shared/stats/StatsWidget.svelte +104 -72
  59. package/components/shared/turn-line/TurnLineMount.svelte +25 -0
  60. package/components/shared/turn-line/TurnLineWidget.svelte +25 -0
  61. package/components/shared/turn-line/settings.ts +31 -0
  62. package/components/shared/turn-line/turn-line.ts +10 -0
  63. package/components/shared/turn-order/TurnOrder.svelte +2 -1
  64. package/components/shared/turn-order/TurnOrderWidget.svelte +1 -6
  65. package/dist/components/actions.js +71 -88
  66. package/dist/components/actions.source.json +1 -1
  67. package/dist/components/album.js +39 -44
  68. package/dist/components/album.source.json +1 -1
  69. package/dist/components/annex.js +17 -8
  70. package/dist/components/annex.source.json +1 -1
  71. package/dist/components/attendance.js +39 -48
  72. package/dist/components/attendance.source.json +1 -1
  73. package/dist/components/authors-note.js +329 -162
  74. package/dist/components/authors-note.source.json +1 -1
  75. package/dist/components/backdrop.js +52 -55
  76. package/dist/components/backdrop.source.json +1 -1
  77. package/dist/components/chronicle.js +798 -559
  78. package/dist/components/chronicle.source.json +1 -1
  79. package/dist/components/composer.js +1639 -0
  80. package/dist/components/composer.source.json +1 -0
  81. package/dist/components/core-ui.json +1 -1
  82. package/dist/components/dialogue-box.js +373 -0
  83. package/dist/components/dialogue-box.source.json +1 -0
  84. package/dist/components/lore-entries.js +134 -122
  85. package/dist/components/lore-entries.source.json +1 -1
  86. package/dist/components/messages.js +1517 -8930
  87. package/dist/components/messages.source.json +1 -1
  88. package/dist/components/places.js +267 -244
  89. package/dist/components/places.source.json +1 -1
  90. package/dist/components/routine-log.js +35 -51
  91. package/dist/components/routine-log.source.json +1 -1
  92. package/dist/components/scene-portraits.js +118 -59
  93. package/dist/components/scene-portraits.source.json +1 -1
  94. package/dist/components/session-runs.js +488 -0
  95. package/dist/components/session-runs.source.json +1 -0
  96. package/dist/components/{shared-7VDIXYAL.js → shared-47J4TNSF.js} +1 -1
  97. package/dist/components/{shared-W3XS5FEL.js → shared-5E4RQYRX.js} +3 -2
  98. package/dist/components/{shared-YDS7HYL6.js → shared-EFMMT76D.js} +57 -4
  99. package/dist/components/{shared-BIWKZFUU.js → shared-FOVKPMSK.js} +3 -3
  100. package/dist/components/{shared-JPG5DQO7.js → shared-HEAKNNZB.js} +92 -17
  101. package/dist/components/shared-JXP6SHKF.js +159 -0
  102. package/dist/components/{shared-XBDUENRA.js → shared-JXYPKSTQ.js} +1 -1
  103. package/dist/components/shared-KJIOSSE3.js +257 -0
  104. package/dist/components/{shared-WV3QTKZT.js → shared-KLURQFWI.js} +13 -9
  105. package/dist/components/shared-MHCNUDUT.js +1680 -0
  106. package/dist/components/{shared-QXF5CJVN.js → shared-NICRJ4Z2.js} +1 -1
  107. package/dist/components/{shared-BBF64YGL.js → shared-W2BBJCNE.js} +22 -16
  108. package/dist/components/shared-YYYXFDZU.js +4354 -0
  109. package/dist/components/stats.js +828 -678
  110. package/dist/components/stats.source.json +1 -1
  111. package/dist/components/turn-line.js +856 -0
  112. package/dist/components/turn-line.source.json +1 -0
  113. package/dist/components/turn-order.js +62 -67
  114. package/dist/components/turn-order.source.json +1 -1
  115. package/dist/factories/answerForm.d.ts +6 -0
  116. package/dist/factories/answerForm.js +104 -96
  117. package/dist/factories/turnOrder.d.ts +98 -105
  118. package/dist/factories/turnOrder.js +120 -136
  119. package/dist/functions/pieces.js +1 -0
  120. package/dist/functions/time.js +2 -0
  121. package/dist/genres/chat/create.js +2 -0
  122. package/dist/genres/chat/memory.js +64 -43
  123. package/dist/genres/chat/respond.d.ts +7 -6
  124. package/dist/genres/chat/respond.js +13 -4
  125. package/dist/genres/chat/turnOrder.d.ts +2 -2
  126. package/dist/genres/chat/turnOrder.js +28 -12
  127. package/dist/genres/defaults.d.ts +28 -6
  128. package/dist/genres/defaults.js +84 -26
  129. package/dist/genres/dungeon-crawler/calls.d.ts +3 -1
  130. package/dist/genres/dungeon-crawler/calls.js +5 -0
  131. package/dist/genres/dungeon-crawler/create.d.ts +9 -6
  132. package/dist/genres/dungeon-crawler/create.js +18 -8
  133. package/dist/genres/dungeon-crawler/death.d.ts +13 -6
  134. package/dist/genres/dungeon-crawler/death.js +26 -12
  135. package/dist/genres/dungeon-crawler/index.d.ts +1 -0
  136. package/dist/genres/dungeon-crawler/index.js +1 -0
  137. package/dist/genres/dungeon-crawler/journal.d.ts +1 -1
  138. package/dist/genres/dungeon-crawler/journal.js +1 -1
  139. package/dist/genres/dungeon-crawler/lore.d.ts +13 -12
  140. package/dist/genres/dungeon-crawler/lore.js +16 -25
  141. package/dist/genres/dungeon-crawler/names.d.ts +10 -3
  142. package/dist/genres/dungeon-crawler/names.js +10 -3
  143. package/dist/genres/dungeon-crawler/preamble.d.ts +5 -4
  144. package/dist/genres/dungeon-crawler/preamble.js +75 -33
  145. package/dist/genres/dungeon-crawler/respond.js +4 -2
  146. package/dist/genres/dungeon-crawler/rest.d.ts +8 -7
  147. package/dist/genres/dungeon-crawler/rest.js +39 -15
  148. package/dist/genres/dungeon-crawler/reveal.js +2 -2
  149. package/dist/genres/dungeon-crawler/roundScript.d.ts +2 -1
  150. package/dist/genres/dungeon-crawler/roundScript.js +23 -5
  151. package/dist/genres/dungeon-crawler/scripts.js +4 -5
  152. package/dist/genres/dungeon-crawler/shape.d.ts +16 -0
  153. package/dist/genres/dungeon-crawler/shape.js +5 -1
  154. package/dist/genres/dungeon-crawler/sheet.d.ts +20 -20
  155. package/dist/genres/dungeon-crawler/story.d.ts +27 -16
  156. package/dist/genres/dungeon-crawler/story.js +175 -46
  157. package/dist/genres/dungeon-crawler/storyScripts.d.ts +2 -2
  158. package/dist/genres/dungeon-crawler/storyScripts.js +109 -14
  159. package/dist/genres/dungeon-crawler/summarizeScene.d.ts +13 -0
  160. package/dist/genres/dungeon-crawler/summarizeScene.js +21 -0
  161. package/dist/genres/dungeon-crawler/turnOrder.d.ts +8 -9
  162. package/dist/genres/dungeon-crawler/turnOrder.js +33 -23
  163. package/dist/genres/guide/create.js +2 -0
  164. package/dist/genres/guide/turnOrder.d.ts +3 -3
  165. package/dist/genres/guide/turnOrder.js +29 -13
  166. package/dist/genres/lair/answerForm.js +4 -1
  167. package/dist/genres/lair/buildRoom.js +4 -3
  168. package/dist/genres/lair/castellanAction.js +160 -154
  169. package/dist/genres/lair/create.js +2 -0
  170. package/dist/genres/lair/fileCurrentRoom.js +13 -10
  171. package/dist/genres/lair/fileRoom.js +4 -3
  172. package/dist/genres/lair/keeper.js +6 -2
  173. package/dist/genres/lair/names.d.ts +2 -0
  174. package/dist/genres/lair/names.js +2 -0
  175. package/dist/genres/lair/reply.js +16 -6
  176. package/dist/genres/lair/roomAnswer.js +4 -3
  177. package/dist/genres/lair/scratchpad.js +9 -7
  178. package/dist/genres/lair/scripts.js +8 -6
  179. package/dist/genres/lair/turnOrder.d.ts +3 -2
  180. package/dist/genres/lair/turnOrder.js +45 -16
  181. package/dist/genres/story/ask.d.ts +4 -0
  182. package/dist/genres/story/ask.js +4 -0
  183. package/dist/genres/story/create.js +15 -0
  184. package/dist/genres/story/index.d.ts +1 -1
  185. package/dist/genres/story/index.js +1 -1
  186. package/dist/genres/story/narrate.js +8 -0
  187. package/dist/genres/story/narrateCharacter.js +8 -0
  188. package/dist/genres/story/reckon.d.ts +5 -19
  189. package/dist/genres/story/reckon.js +53 -40
  190. package/dist/genres/story/reckoning.js +3 -0
  191. package/dist/genres/story/respond.js +17 -28
  192. package/dist/genres/story/sweep.d.ts +1 -1
  193. package/dist/genres/story/sweep.js +1 -1
  194. package/dist/genres/story/turnOrder.d.ts +21 -3
  195. package/dist/genres/story/turnOrder.js +87 -21
  196. package/dist/index.d.ts +3 -0
  197. package/dist/index.js +23 -9
  198. package/dist/loadouts.d.ts +1 -0
  199. package/dist/loadouts.js +17 -1
  200. package/dist/primers/ninth-mile.d.ts +3 -4
  201. package/dist/registry/entries.d.ts +2 -0
  202. package/dist/registry/entries.js +18 -5
  203. package/dist/registry/genres.d.ts +146 -40
  204. package/dist/registry/genres.js +373 -101
  205. package/dist/registry/hostState.d.ts +1 -2
  206. package/dist/registry/hostState.js +2 -4
  207. package/dist/registry/layouts.d.ts +141 -111
  208. package/dist/registry/layouts.js +302 -141
  209. package/dist/registry/slots.d.ts +4 -3
  210. package/dist/registry/slots.js +4 -3
  211. package/dist/registry/widgets.d.ts +12 -2
  212. package/dist/registry/widgets.js +259 -106
  213. package/dist/rulesets/vis-itineris/ruleset.js +8 -5
  214. package/dist/rulesets/wherewithal/ruleset.js +2 -1
  215. package/dist/seed/presets.js +15 -9
  216. package/dist/seed/prompts.js +24 -5
  217. package/dist/seed/scripts.js +3 -0
  218. package/dist/shared/annexField.js +23 -3
  219. package/dist/shared/illustrateScene.d.ts +1 -0
  220. package/dist/shared/illustrateScene.js +29 -1
  221. package/dist/shared/lore.d.ts +13 -0
  222. package/dist/shared/lore.js +37 -1
  223. package/dist/shared/portrait.js +13 -4
  224. package/dist/shared/reckoning.d.ts +8 -2
  225. package/dist/shared/reckoning.js +47 -30
  226. package/dist/shared/roundTick.d.ts +20 -0
  227. package/dist/shared/roundTick.js +76 -0
  228. package/dist/shared/sceneBoundaries.d.ts +7 -0
  229. package/dist/shared/sceneBoundaries.js +62 -0
  230. package/dist/shared/sceneSummaries.d.ts +7 -0
  231. package/dist/shared/sceneSummaries.js +49 -0
  232. package/dist/shared/speakMessage.d.ts +9 -2
  233. package/dist/shared/speakMessage.js +32 -9
  234. package/dist/shared/speechFields.js +4 -0
  235. package/dist/shared/summarize/character.d.ts +1 -1
  236. package/dist/shared/summarize/history.d.ts +1 -1
  237. package/dist/shared/summarize/scene.d.ts +1 -1
  238. package/dist/shared/summarize/summarizeScene.js +1 -0
  239. package/dist/shared/summarize/summarizeSpec.d.ts +1 -1
  240. package/dist/shared/summarize/world.d.ts +1 -1
  241. package/dist/shared/ui/attendance/index.d.ts +3 -2
  242. package/dist/shared/ui/attendance/index.js +3 -7
  243. package/dist/shared/ui/chronicle/index.d.ts +24 -2
  244. package/dist/shared/ui/chronicle/index.js +58 -29
  245. package/dist/shared/ui/conversation/formAnswer.d.ts +16 -2
  246. package/dist/shared/ui/conversation/formAnswer.js +23 -9
  247. package/dist/shared/ui/conversation/index.d.ts +2 -0
  248. package/dist/shared/ui/conversation/index.js +4 -0
  249. package/dist/shared/ui/conversation/itemValues.d.ts +16 -3
  250. package/dist/shared/ui/conversation/itemValues.js +15 -5
  251. package/dist/shared/ui/conversation/messageVerbState.d.ts +17 -2
  252. package/dist/shared/ui/conversation/messageVerbState.js +5 -4
  253. package/dist/shared/ui/conversation/readingPlace.d.ts +40 -0
  254. package/dist/shared/ui/conversation/readingPlace.js +119 -0
  255. package/dist/shared/ui/conversation/rewindStrip.d.ts +13 -4
  256. package/dist/shared/ui/conversation/rewindStrip.js +29 -7
  257. package/dist/shared/ui/conversation/runsInProgress.d.ts +30 -0
  258. package/dist/shared/ui/conversation/runsInProgress.js +47 -0
  259. package/dist/shared/ui/conversation/storyDays.d.ts +7 -1
  260. package/dist/shared/ui/conversation/storyDays.js +8 -0
  261. package/dist/shared/ui/conversation/tableChannel.d.ts +8 -11
  262. package/dist/shared/ui/conversation/tableChannel.js +8 -9
  263. package/dist/shared/ui/places/index.d.ts +3 -2
  264. package/dist/shared/ui/places/index.js +4 -5
  265. package/dist/shared/ui/routine-log/index.d.ts +3 -0
  266. package/dist/shared/ui/routine-log/index.js +22 -0
  267. package/dist/shared/ui/scene-portraits/portraits.d.ts +50 -16
  268. package/dist/shared/ui/scene-portraits/portraits.js +84 -21
  269. package/dist/shared/ui/session-runs/index.d.ts +90 -0
  270. package/dist/shared/ui/session-runs/index.js +143 -0
  271. package/dist/shared/ui/session-state/stateView.d.ts +18 -5
  272. package/dist/shared/ui/session-state/stateView.js +29 -8
  273. package/dist/shared/ui/turn-order/index.d.ts +0 -9
  274. package/dist/shared/ui/turn-order/index.js +1 -2
  275. package/package.json +12 -8
  276. /package/dist/components/{shared-4ME6NFDK.js → shared-LUIF6DW7.js} +0 -0
@@ -102,6 +102,8 @@
102
102
  // is never drawn here, not even hidden.
103
103
  const messages = $derived(conv.rows)
104
104
  const sceneList = $derived(conv.dossier?.scenes ?? [])
105
+ /** The session's notes are the owner's: a guest's dates and scene names are text, not links into them. */
106
+ const isOwner = $derived(!!conv.dossier?.isOwner)
105
107
  const loadingOlderMessages = $derived(!!conv.dossier?.loadingOlder)
106
108
  const loaded = $derived(!!conv.dossier)
107
109
  /**
@@ -165,6 +167,21 @@
165
167
  messages.map((m) => (m.isHidden ? `${m.id}h` : m.id)).join(",")
166
168
  )
167
169
 
170
+ /**
171
+ * What the lane-and-order deriveds below read off a row — its id (order),
172
+ * its channel (`cueAt`, `lanePlaces`, `laneById`, `shownOnLane`), whether
173
+ * the copy draws it inline (`conv.isInterleaved`) and the line it is
174
+ * anchored to (`anchorOf`) — and nothing else, so a streamed token that
175
+ * changes none of them reruns none of those deriveds. Each reads the key,
176
+ * then does its work under `untrack`. `drawnMessages` and the like hand
177
+ * rows to the template, so they are never keyed this way.
178
+ */
179
+ let laneKey = $derived(
180
+ messages
181
+ .map((m) => `${m.id}|${m.channel ?? ""}|${conv.isInterleaved(m) ? 1 : 0}|${anchorOf(m) ?? ""}`)
182
+ .join(",")
183
+ )
184
+
168
185
  const NO_MARKS: SceneMarks = {
169
186
  sceneOf: new Map(),
170
187
  dividers: new Map(),
@@ -195,11 +212,15 @@
195
212
  let cueAt = $derived.by(() => {
196
213
  const out = new Map<number, { id: number; reason: string }>()
197
214
  if (!showSceneMarkers) return out
198
- const lanes = new Map(messages.map((m) => [m.id, laneOf(m.channel)]))
199
- for (const c of conv.scenes.cues)
200
- if (lanes.get(c.messageId) === laneOf(c.channel) && !out.has(c.messageId))
201
- out.set(c.messageId, { id: c.id, reason: c.reason })
202
- return out
215
+ void laneKey
216
+ const cues = conv.scenes.cues
217
+ return untrack(() => {
218
+ const lanes = new Map(messages.map((m) => [m.id, laneOf(m.channel)]))
219
+ for (const c of cues)
220
+ if (lanes.get(c.messageId) === laneOf(c.channel) && !out.has(c.messageId))
221
+ out.set(c.messageId, { id: c.id, reason: c.reason })
222
+ return out
223
+ })
203
224
  })
204
225
 
205
226
  let entryMarks = $derived.by((): Map<number, EntryMarks> => {
@@ -228,15 +249,32 @@
228
249
  orderedMessages(messages, order)
229
250
  )
230
251
 
252
+ /** 🚧 ★ The settle line a channel reads (CP10): its own, when the dossier carries one for
253
+ * its lane; otherwise `main`'s (a line on no story channel rides `main`). */
254
+ function settledLineOn(channel: unknown): number | null {
255
+ const lane = laneOf(channel)
256
+ const by = conv.dossier?.settledThroughBy
257
+ if (by && typeof by === "object" && Object.prototype.hasOwnProperty.call(by, lane)) {
258
+ const own = by[lane]
259
+ return typeof own === "number" ? own : null
260
+ }
261
+ return conv.settledThrough ?? null
262
+ }
263
+
231
264
  /** 🚧 The settle line's one mark (pr-6 R-a/R-b, sprint 2): after the newest settled
232
265
  * line this copy shows, on its lane. */
233
266
  let settledMarkAfter = $derived.by((): number | null => {
234
- const line = conv.settledThrough
267
+ void conv.dossier?.settledThroughBy
268
+ void conv.settledThrough
269
+ const line = settledLineOn(conv.lane.current)
235
270
  if (line === null) return null
236
- let best: number | null = null
237
- for (const m of messages.filter((m) => shownOnLane(m)))
238
- if (m.id <= line && (best === null || m.id > best)) best = m.id
239
- return best
271
+ void laneKey
272
+ return untrack(() => {
273
+ let best: number | null = null
274
+ for (const m of messages.filter((m) => shownOnLane(m)))
275
+ if (m.id <= line && (best === null || m.id > best)) best = m.id
276
+ return best
277
+ })
240
278
  })
241
279
 
242
280
  /**
@@ -245,8 +283,12 @@
245
283
  * what the reader can reach here, never every channel's rows.
246
284
  */
247
285
  let lanePlaces = $derived.by(() => {
248
- const shown = messages.filter((m) => shownOnLane(m))
249
- return new Map(shown.map((m, i) => [m.id, { n: i + 1, of: shown.length }]))
286
+ void laneKey
287
+ void conv.lane.current
288
+ return untrack(() => {
289
+ const shown = messages.filter((m) => shownOnLane(m))
290
+ return new Map(shown.map((m, i) => [m.id, { n: i + 1, of: shown.length }]))
291
+ })
250
292
  })
251
293
 
252
294
  /**
@@ -254,7 +296,10 @@
254
296
  * where its anchor is — on the anchor's lane — and none is ever the
255
297
  * log's last line, so the anchor keeps the newest line's controls.
256
298
  */
257
- const laneById = $derived(new Map(messages.map((m) => [m.id, m.channel || "main"])))
299
+ const laneById = $derived.by(() => {
300
+ void laneKey
301
+ return untrack(() => new Map(messages.map((m) => [m.id, m.channel || "main"])))
302
+ })
258
303
  /**
259
304
  * 🚧 The **dice fold** (PLAN-sheet-widget §16, `interleaveAs: fold`): an
260
305
  * interleaved row is one head line — the host's summary, else its first
@@ -266,9 +311,12 @@
266
311
  const openFolds = new SvelteSet<number>()
267
312
  const folded = (msg: MessageV1) => conv.interleaveAs === "fold" && conv.isInterleaved(msg)
268
313
  const lastOwnId = $derived.by((): number | null => {
269
- for (let i = messages.length - 1; i >= 0; i--)
270
- if (!conv.isInterleaved(messages[i]!)) return messages[i]!.id
271
- return null
314
+ void laneKey
315
+ return untrack(() => {
316
+ for (let i = messages.length - 1; i >= 0; i--)
317
+ if (!conv.isInterleaved(messages[i]!)) return messages[i]!.id
318
+ return null
319
+ })
272
320
  })
273
321
  function shownOnLane(msg: MessageV1): boolean {
274
322
  const lane = conv.lane.current
@@ -430,7 +478,7 @@
430
478
  onreach-start={loadOlder}
431
479
  >
432
480
  <!-- The region spans the panel; the rows (the stage, `messages.stage`)
433
- take a centred measure under Line width: Column (the default) or
481
+ take a centred measure under Line width: Column or
434
482
  Comfortable, or its full width under Full. -->
435
483
  <!-- Folio (PLAN-core-widgets §3.7) adds `messages.folio` to the stage: the
436
484
  lines read as one block of prose, and every rule keyed on it (the
@@ -491,7 +539,7 @@
491
539
  <!-- History-entry marker: the date this stretch of the story is set
492
540
  on, once before the entry's first scene message. -->
493
541
  <li data-widget-part="messages.log-item" role="presentation" hidden={!onThisChannel}>
494
- {#if entry.scene.historyEntryId}
542
+ {#if entry.scene.historyEntryId && isOwner}
495
543
  <button
496
544
  data-widget-part="messages.history-marker"
497
545
  onclick={() =>
@@ -549,7 +597,7 @@
549
597
  {#snippet dayMarkItem(msg: MessageV1, label: string)}
550
598
  {@const filed = dayMarkEntry(msg.id)}
551
599
  <li data-widget-part="messages.log-item" role="presentation">
552
- {#if filed}
600
+ {#if filed && isOwner}
553
601
  <button
554
602
  data-widget-part="messages.history-marker messages.day-mark"
555
603
  onclick={() =>
@@ -669,7 +717,7 @@
669
717
  {/if}
670
718
  <!-- The message row. It carries the scene's colour as
671
719
  `--sp-scene`, which the style pack draws the scene's
672
- edge with and the message's own scene badge inherits.
720
+ edge with.
673
721
 
674
722
  Opacity-only fade, no height/transform — autoscroll
675
723
  reads scrollHeight synchronously on insert, so an
@@ -697,7 +745,7 @@
697
745
  ? undefined
698
746
  : "")}
699
747
  data-row-kind={conv.rowKind(msg) ?? undefined}
700
- data-history-settled={conv.settledThrough !== null && msg.id <= conv.settledThrough ? "" : undefined}
748
+ data-history-settled={(settledLineOn(msg.channel) ?? -1) >= msg.id ? "" : undefined}
701
749
  >
702
750
  {#if folded(msg)}
703
751
  {@const isOpen = openFolds.has(msg.id)}
@@ -732,14 +780,10 @@
732
780
  </div>
733
781
  </div>
734
782
  {:else}
735
- <!-- The scene's name rides each of its lines but the
736
- first: that one sits right under (newest-first,
737
- over) the divider that names it (polish parity L1). -->
738
783
  <SessionMessage
739
784
  {msg}
740
785
  {index}
741
786
  {isLastMessage}
742
- sceneName={at && !marks.dividers.has(msg.id) ? at.name : null}
743
787
  {folio}
744
788
  place={lanePlaces.get(msg.id)}
745
789
  />
@@ -777,19 +821,26 @@
777
821
  {#if entry?.isLastOfEntry && entry.historyEntry?.isCompleted && entry.historyEntry.nextEntry}
778
822
  {@const next = entry.historyEntry.nextEntry}
779
823
  <li data-widget-part="messages.log-item" role="presentation" hidden={!onThisChannel}>
780
- <button
781
- data-widget-part="messages.history-marker"
782
- onclick={() =>
783
- openLore({
784
- scope: "history",
785
- entryId: next.id,
786
- lorebookId: entry.scene.lorebookId
787
- })}
788
- title="Open next history entry in lorebook"
789
- >
790
- <sp-icon name="calendar" size="12"></sp-icon>
791
- Next: {formatEntryDate(next)}
792
- </button>
824
+ {#if isOwner}
825
+ <button
826
+ data-widget-part="messages.history-marker"
827
+ onclick={() =>
828
+ openLore({
829
+ scope: "history",
830
+ entryId: next.id,
831
+ lorebookId: entry.scene.lorebookId
832
+ })}
833
+ title="Open next history entry in lorebook"
834
+ >
835
+ <sp-icon name="calendar" size="12"></sp-icon>
836
+ Next: {formatEntryDate(next)}
837
+ </button>
838
+ {:else}
839
+ <span data-widget-part="messages.history-marker">
840
+ <sp-icon name="calendar" size="12"></sp-icon>
841
+ Next: {formatEntryDate(next)}
842
+ </span>
843
+ {/if}
793
844
  </li>
794
845
  {/if}
795
846
  {/each}
@@ -15,10 +15,13 @@
15
15
  import { mediaSrc, mediaStripItems, viewImageParams } from "./mediaStrip"
16
16
  import MessageStateLedger from "./MessageStateLedger.svelte"
17
17
  import SpokenLine from "./SpokenLine.svelte"
18
- import { isSpeaking, readAloudOf, spokenAudioItem, spokenOf, spokenPendingOf, spokenPlaybackOf } from "./spokenLine"
18
+ import { isSpeaking, readAloudOf, playlistOf, spokenAudioItems, spokenOf, spokenPendingOf, spokenPlaybackOf } from "./spokenLine"
19
19
  import { useWidgetContext } from "../context"
20
- import { isDiceLine, staleOf } from "@serene-pub/core-catalog/conversation"
20
+ import { isDiceLine, staleOf, storyDayText, storyTimeText } from "@serene-pub/core-catalog/conversation"
21
+ import { formatStoryTimeAs, storyTimePartsOf } from "@serene-pub/core-catalog/session-state"
22
+ import { messageStoryTime, type StoryTimeSpelling } from "./sceneMarks"
21
23
  import { untrack } from "svelte"
24
+ import { composerSendShownOf } from "../composer/target"
22
25
  import { useConversation } from "./conversation.svelte"
23
26
  import type { MessageV1, WidgetAction } from "@serene-pub/sdk/component"
24
27
 
@@ -32,12 +35,6 @@
32
35
  msg: MessageV1
33
36
  index: number
34
37
  isLastMessage: boolean
35
- /**
36
- * The scene this message belongs to, when it belongs to one — the log
37
- * reads it off its scene map. The row also carries the scene's colour
38
- * as `--sp-scene`, which the badge below inherits.
39
- */
40
- sceneName?: string | null
41
38
  /**
42
39
  * Folio (PLAN-core-widgets §3.7): the line is a paragraph of one
43
40
  * block of prose. Only its content is drawn — no avatar, identity
@@ -54,18 +51,28 @@
54
51
  * of 15" counted every channel's rows). Absent: every row the log holds.
55
52
  */
56
53
  place?: { n: number; of: number }
54
+ /** 🚧 Dialogue box only: passed to the spoken line (`SpokenLine`'s `atReadingPlace`). Messages never sets it. */
55
+ atReadingPlace?: boolean
57
56
  }
58
57
 
59
- let { msg, index, isLastMessage, sceneName = null, folio = false, place }: Props = $props()
58
+ let { msg, index, isLastMessage, folio = false, place, atReadingPlace = false }: Props = $props()
60
59
 
61
60
  const conv = useConversation()
62
61
  const line = $derived(conv.line(msg.id))
63
62
  const allMessages = $derived(conv.ctx.messages.v1)
64
- const hasGeneratingMessage = $derived(allMessages.some((m) => m.isGenerating))
63
+ const hasGeneratingMessage = $derived(conv.anyGenerating)
64
+ /**
65
+ * One Stop for a reply: the composer offers it for the newest row while
66
+ * it shows Send, so that row draws none of its own. An older row still
67
+ * generating keeps its pill; so does any row when Send is hidden, no
68
+ * composer follows this log, or the host has not said (a missing answer
69
+ * reads as not shown).
70
+ */
71
+ const composerStops = $derived(isLastMessage && composerSendShownOf(conv.dossier) === true)
65
72
  const extendRefusal = $derived(conv.dossier?.extendRefusal)
66
73
  const isSummarizationMode = $derived(conv.select.active)
67
74
  const isSelected = $derived(conv.select.ids.has(msg.id))
68
- const scened = $derived(conv.dossier?.scened.includes(msg.id) ?? false)
75
+ const scened = $derived(conv.isScened(msg.id))
69
76
 
70
77
  /**
71
78
  * The unified widget envelope (PLAN 25, ruled 2026-08-30). Present at the
@@ -124,7 +131,7 @@
124
131
  conv.ctx.action(fn, m.id, payload, action, blockId)
125
132
  }
126
133
 
127
- const messageCount = $derived(allMessages.length)
134
+ const messageCount = $derived(conv.messageCount)
128
135
 
129
136
  /**
130
137
  * The face beside this line (DESIGN-sprites §7). With the messages widget's
@@ -161,6 +168,22 @@
161
168
  displayName.trim().charAt(0).toUpperCase() || "?"
162
169
  )
163
170
  const isGreeting = $derived(!!msg.metadata?.isGreeting)
171
+
172
+ /** The narrator's own turn: `every` rounds when the host stamped it, else 0. */
173
+ const turnCauseEvery = $derived.by(() => {
174
+ const cause = msg.metadata?.turnCause
175
+ return cause?.via === "unprompted" && Number.isInteger(cause.every) && cause.every > 0
176
+ ? cause.every
177
+ : 0
178
+ })
179
+ const causeText = $derived.by(() => {
180
+ const n = turnCauseEvery
181
+ if (n === 1) return "Narrator's turn (every round)"
182
+ const tens = n % 100
183
+ const suffix =
184
+ tens >= 11 && tens <= 13 ? "th" : ({ 1: "st", 2: "nd", 3: "rd" } as Record<number, string>)[n % 10] ?? "th"
185
+ return `Narrator's turn (every ${n}${suffix} round)`
186
+ })
164
187
  /**
165
188
  * 🚧 A **table line**: the table's own line — a Dungeon Crawler roll line
166
189
  * — said in no voice. Drawn as its content alone, as a folio paragraph
@@ -195,7 +218,9 @@
195
218
  * `data-msg-dice-line` is what the widget stylesheet and a pack key the
196
219
  * look off. ⚠ Not a table line, which is drawn in no voice.
197
220
  */
198
- const diceLine = $derived(!tableLine && isDiceLine(msg as never, allMessages as never))
221
+ // `isDiceLine` only ever finds the row this line answers: hand it that one.
222
+ const diceAsked = $derived(conv.rowById(Number(msg.metadata?.answersForm?.messageId)))
223
+ const diceLine = $derived(!tableLine && isDiceLine(msg as never, (diceAsked ? [diceAsked] : []) as never))
199
224
  /** Only the content cell is drawn: a folio's paragraph, or a table line. */
200
225
  const contentOnly = $derived(folio || tableLine)
201
226
  // Two independent classifications the style packs (sessionLayout skins) key
@@ -243,6 +268,9 @@
243
268
  * open to the item rule alone.
244
269
  */
245
270
  const swipeWhen = $derived.by(() => {
271
+ // 🚧 A run that holds re-runs greys the arrow with its sentence, as the verb is.
272
+ const waitFor = conv.dossier?.rerunWaitsFor
273
+ if (waitFor) return [true, waitFor] as const
246
274
  const listed = [
247
275
  ...(venueActions?.primary ?? []),
248
276
  ...(venueActions?.overflow ?? [])
@@ -252,6 +280,7 @@
252
280
  msg,
253
281
  isLastMessage,
254
282
  canControl: canRerun,
283
+ refOfMember: conv.refOfMember,
255
284
  ...verdictOf(listed)
256
285
  })
257
286
  })
@@ -307,25 +336,63 @@
307
336
  /** A `date` column carries the day only; a time of day needs a timestamp. */
308
337
  const DAY_ONLY = /^\d{4}-\d{2}-\d{2}$/
309
338
 
339
+ /** The forward arrow's name on a reply with one version: a swipe keeps the version it leaves. */
340
+ const LONE_SWIPE_TITLE = "Write another version; this one is kept"
341
+
310
342
  /**
311
- * The clock beside the name, in the reader's own locale. `createdAt` is a
312
- * day-precision `date` column on this row (20 §5), so a value with no time
313
- * of day in it reads `updatedAt`, which is a timestamp.
343
+ * The line's real time, in the reader's own locale. A reply reads the
344
+ * `replyWrittenAt` stamp its last finishing write left in the metadata;
345
+ * a row without one (an older reply, any non-reply) reads `createdAt`,
346
+ * which is a day-precision `date` column on this row (20 §5), so a value
347
+ * with no time of day in it reads `updatedAt`, which is a timestamp.
314
348
  */
315
- const messageTime = $derived.by(() => {
349
+ const realAt = $derived.by((): Date | null => {
350
+ const written = msg.metadata?.replyWrittenAt
351
+ if (typeof written === "string") {
352
+ const w = new Date(written)
353
+ if (!Number.isNaN(w.getTime())) return w
354
+ }
316
355
  const created: unknown = msg.createdAt
317
356
  const stamp =
318
357
  typeof created === "string" && DAY_ONLY.test(created)
319
358
  ? (msg.updatedAt ?? created)
320
359
  : (created ?? msg.updatedAt)
321
- if (!stamp) return ""
360
+ if (!stamp) return null
322
361
  const at =
323
362
  stamp instanceof Date ? stamp : new Date(stamp as string | number)
324
- if (Number.isNaN(at.getTime())) return ""
325
- return at.toLocaleTimeString([], {
326
- hour: "numeric",
327
- minute: "2-digit"
328
- })
363
+ return Number.isNaN(at.getTime()) ? null : at
364
+ })
365
+
366
+ /**
367
+ * 🚧 The line's time in the story, when it has one: the stamp the row was
368
+ * written with, through the book's calendar (the dossier's
369
+ * `storyCalendar`) and the copy's `timeFormat`. Null on an unstamped row,
370
+ * which keeps its real time.
371
+ */
372
+ const storyTime = $derived.by(() => {
373
+ const calendar = conv.dossier?.storyCalendar ?? null
374
+ const format = (widget?.current.settings.v1 as Record<string, unknown> | undefined)
375
+ ?.timeFormat
376
+ const spell: StoryTimeSpelling = {
377
+ full: (t) => storyTimeText(t, calendar),
378
+ as: (t, f) => formatStoryTimeAs(storyTimePartsOf(t, calendar), f),
379
+ day: (t) => storyDayText(t, calendar)
380
+ }
381
+ return messageStoryTime(msg, spell, typeof format === "string" ? format : null)
382
+ })
383
+
384
+ /** The clock beside the name: the story's time, else the real one. */
385
+ const messageTime = $derived(
386
+ storyTime?.text ??
387
+ realAt?.toLocaleTimeString([], { hour: "numeric", minute: "2-digit" }) ??
388
+ ""
389
+ )
390
+
391
+ /** The hover: the story time with when it was written, else the full real time. */
392
+ const messageTimeTitle = $derived.by(() => {
393
+ const real = realAt?.toLocaleString([], { dateStyle: "medium", timeStyle: "short" })
394
+ if (storyTime) return real ? `${storyTime.full} · written ${real}` : storyTime.full
395
+ return real
329
396
  })
330
397
 
331
398
  /**
@@ -369,6 +436,7 @@
369
436
  canRerun,
370
437
  // 🚧 A kept turn's row the host would refuse to delete (★9).
371
438
  canDelete: line.deletable ?? true,
439
+ waitFor: conv.dossier?.rerunWaitsFor,
372
440
  extendRefusal,
373
441
  speechReason: speechReason
374
442
  }, (a) => SPEAK_VERB_KEYS.includes(verbKeyOf(a)))
@@ -428,12 +496,16 @@
428
496
  // leaves that one file out (a gone file reads "Not spoken yet" there,
429
497
  // never a broken player).
430
498
  const spoken = $derived(spokenOf(msg.metadata))
431
- const spokenAudio = $derived(spoken ? spokenAudioItem(allMediaItems) : null)
499
+ const spokenItems = $derived(spoken ? spokenAudioItems(allMediaItems, spoken) : [])
500
+ /** The take's first file: what the line's key, Say it again and a gone file read. */
501
+ const spokenAudio = $derived(spokenItems[0] ?? null)
432
502
  // A speak run in flight (`metadata.spoken.pending`) mounts the spoken line
433
503
  // even before the line has audio: it reads *Speaking…* with a Stop.
434
504
  const spokenPending = $derived(spokenPendingOf(msg.metadata))
435
505
  const mediaItems = $derived(
436
- spokenAudio ? allMediaItems.filter((i) => i.partId !== spokenAudio.partId) : allMediaItems
506
+ spokenItems.length
507
+ ? allMediaItems.filter((i) => !spokenItems.some((s) => s.partId === i.partId))
508
+ : allMediaItems
437
509
  )
438
510
  /**
439
511
  * The speak verbs the message venue lists — `core:spec/speak-message`'s
@@ -497,6 +569,7 @@
497
569
  /** What the ⋮ menu's speech group and ⋮ › Speech need, passed as one object rather than recomputed there. */
498
570
  const speechForMenu = $derived({
499
571
  src: hasAudio && spokenAudio ? mediaSrc(spokenAudio.assetId) : null,
572
+ playlist: hasAudio ? playlistOf(spokenItems) : null,
500
573
  hasAudio,
501
574
  // The line has a take on file (whatever the viewer's playback): Read aloud reads Say it again.
502
575
  sayItAgain: !!spokenAudio && spokenAudio.partId !== goneSpokenPart,
@@ -643,15 +716,31 @@
643
716
  <span data-widget-part="messages.message-badge-text">Hidden from the story</span>
644
717
  </span>
645
718
  {/if}
646
- {#if sceneName}
647
- <!-- Colour comes from `--sp-scene` on the row this message
648
- sits in, so the badge and the pack's scene bar are the
649
- same colour by construction. -->
650
- <span data-widget-part="messages.message-badge messages.message-badge-scene">
651
- <sp-icon name="film" size="14"></sp-icon>
652
- <span data-widget-part="messages.message-badge-label">In scene:</span>
653
- <span data-widget-part="messages.message-badge-text">{sceneName}</span>
654
- </span>
719
+ {#if turnCauseEvery}
720
+ <!-- The narrator's own turn (P1): the line says why it was written
721
+ unasked. The press opens the turn picker, which holds the
722
+ setting — and is the owner's alone (owner 2026-11-04: "the press
723
+ is theirs only if they may change the setting"); a member sees
724
+ the words, not a button. -->
725
+ {#if conv.dossier?.isOwner}
726
+ <button
727
+ type="button"
728
+ data-widget-part="messages.message-badge messages.message-badge-cause"
729
+ title={`The narrator takes a turn of its own ${causeText.replace(/^Narrator's turn \(|\)$/g, "")}; press to change how often.`}
730
+ onclick={() => void conv.request("pick-turn", {})}
731
+ >
732
+ <sp-icon name="book-open-text" size="14"></sp-icon>
733
+ <span data-widget-part="messages.message-badge-text">{causeText}</span>
734
+ </button>
735
+ {:else}
736
+ <span
737
+ data-widget-part="messages.message-badge messages.message-badge-cause"
738
+ title={`The narrator takes a turn of its own ${causeText.replace(/^Narrator's turn \(|\)$/g, "")}; the session's owner changes how often.`}
739
+ >
740
+ <sp-icon name="book-open-text" size="14"></sp-icon>
741
+ <span data-widget-part="messages.message-badge-text">{causeText}</span>
742
+ </span>
743
+ {/if}
655
744
  {/if}
656
745
  <!-- The line's vectors against the active embedding model: nothing
657
746
  at all while that is hidden (the common case); which it is
@@ -717,7 +806,11 @@
717
806
  {@render editButtons()}
718
807
  {:else}
719
808
  {#if messageTime}
720
- <span data-widget-part="messages.message-time">{messageTime}</span>
809
+ <span
810
+ data-widget-part="messages.message-time"
811
+ data-story-time={storyTime ? "" : undefined}
812
+ title={messageTimeTitle}>{messageTime}</span
813
+ >
721
814
  {/if}
722
815
 
723
816
  {#if showSwipes}
@@ -726,11 +819,13 @@
726
819
  <button
727
820
  data-widget-part="messages.message-swipe-previous messages.message-icon-button"
728
821
  aria-label="Previous swipe"
822
+ title={conv.dossier?.rerunWaitsFor ? `Previous swipe — ${conv.dossier.rerunWaitsFor}` : undefined}
729
823
  onclick={() => conv.swipe(msg, "left")}
730
824
  disabled={conv.edit.id !== null ||
731
825
  !swipes!.currentIdx ||
732
826
  swipes!.history.length <= 1 ||
733
827
  msg.isGenerating ||
828
+ !!conv.dossier?.rerunWaitsFor ||
734
829
  !canRerun}
735
830
  >
736
831
  <sp-icon name="chevron-left" size="14"></sp-icon>
@@ -744,8 +839,12 @@
744
839
  {/if}
745
840
  <button
746
841
  data-widget-part="messages.message-swipe-next messages.message-icon-button"
747
- aria-label="Next swipe"
748
- title={swipeWhen[1] ? `Next swipe — ${swipeWhen[1]}` : undefined}
842
+ aria-label={hasSwipeHistory ? "Next swipe" : LONE_SWIPE_TITLE}
843
+ title={swipeWhen[1]
844
+ ? `Next swipe — ${swipeWhen[1]}`
845
+ : hasSwipeHistory
846
+ ? undefined
847
+ : LONE_SWIPE_TITLE}
749
848
  onclick={() => conv.swipe(msg, "right")}
750
849
  disabled={conv.edit.id !== null || swipeWhen[0] || !canRerun}
751
850
  >
@@ -889,7 +988,7 @@
889
988
  {/snippet}
890
989
 
891
990
  {#snippet stopButton()}
892
- {#if msg.isGenerating}
991
+ {#if msg.isGenerating && !composerStops}
893
992
  <button
894
993
  data-widget-part="messages.message-stop"
895
994
  onclick={() => conv.invoke("stop", msg)}
@@ -1055,19 +1154,19 @@
1055
1154
  </span>
1056
1155
  </p>
1057
1156
  <!--
1157
+ An administrator reads which connection failed and what
1158
+ it said in Inspect run, in the reply's ⋮ menu; a line
1159
+ Inspect run is not offered on (no character, not the
1160
+ Narrator) keeps that detail here.
1161
+
1058
1162
  Presence IS permission. `error.connection` is connection
1059
1163
  identity, and the server removes that key from every
1060
1164
  payload a non-admin receives (connections/visibility.ts),
1061
- so a client that renders it whenever it arrives shows it
1062
- only to administrators — no role check here to drift out
1063
- of step with the one on the server.
1064
-
1065
- The sentence above names no connection by construction,
1066
- which is what lets it be stored and shown to anybody; this
1067
- is where an administrator gets back the half it left out —
1068
- which connection, and what the service actually said.
1165
+ so rendering it whenever it arrives shows it only to
1166
+ administrators — no role check here to drift out of step
1167
+ with the one on the server.
1069
1168
  -->
1070
- {#if msg.error.connection?.name || msg.error.connection?.detail}
1169
+ {#if !msg.characterId && !msg.isNarratorResponse && (msg.error.connection?.name || msg.error.connection?.detail)}
1071
1170
  <p data-widget-part="messages.message-error-detail">
1072
1171
  {[
1073
1172
  msg.error.connection.name,
@@ -1083,12 +1182,15 @@
1083
1182
  <!-- 🚧 Where the genre retakes a whole turn (Dungeon Crawler), the
1084
1183
  row's press regenerates the turn and says so (the 100-turn
1085
1184
  walk, B7: a Retry the genre then refused). -->
1086
- <button
1087
- data-widget-part="messages.message-retry"
1088
- onclick={() => conv.invoke("retry", msg)}
1089
- >
1090
- {retakes ? "Regenerate" : "Retry"}
1091
- </button>
1185
+ <!-- Absent unless the viewer may rerun this line (`rerunnable`); a line with no verdict keeps it. -->
1186
+ {#if line.rerunnable !== false}
1187
+ <button
1188
+ data-widget-part="messages.message-retry"
1189
+ onclick={() => conv.invoke("retry", msg)}
1190
+ >
1191
+ {retakes ? "Regenerate" : "Retry"}
1192
+ </button>
1193
+ {/if}
1092
1194
  </div>
1093
1195
  </div>
1094
1196
  {:else if isEditing}
@@ -1195,13 +1297,14 @@
1195
1297
  pending={spokenPending}
1196
1298
  liveRunIds={conv.dossier?.liveRunIds}
1197
1299
  onStop={stopSpoken}
1198
- item={spokenAudio}
1300
+ items={spokenItems}
1199
1301
  onGone={(partId) => (goneSpokenPart = partId)}
1200
1302
  playing={conv.speech.isPlaying(msg.id, "line")}
1201
1303
  take={conv.speech.take(msg.id, "line")}
1202
1304
  menuAt={conv.speech.menuAt(msg.id)}
1203
1305
  onPlayback={(paused) => conv.speech.heard(msg.id, "line", paused)}
1204
1306
  {isLastMessage}
1307
+ {atReadingPlace}
1205
1308
  readAloud={readAloudOf(conv.dossier)}
1206
1309
  spokenPlayback={spokenPlaybackOf(conv.dossier)}
1207
1310
  speakerFace={line.speaker.face}