@serene-pub/core-catalog 0.6.0-pr-2 → 0.6.0-pr-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/components/{sessions → genres/chat}/authors-note/AuthorsNote.svelte +1 -1
- package/components/{sessions → genres/chat}/authors-note/AuthorsNoteWidget.svelte +1 -1
- package/components/{sessions/world-state/WorldState.svelte → shared/actions/Actions.svelte} +5 -5
- package/components/shared/actions/ActionsWidget.svelte +118 -0
- package/components/shared/actions/actions.ts +11 -0
- package/components/shared/album/Album.svelte +24 -0
- package/components/shared/album/AlbumWidget.svelte +163 -0
- package/components/shared/album/album.ts +10 -0
- package/components/shared/annex/Annex.svelte +24 -0
- package/components/shared/annex/AnnexWidget.svelte +151 -0
- package/components/shared/annex/annex.ts +10 -0
- package/components/shared/attendance/Attendance.svelte +24 -0
- package/components/shared/attendance/AttendanceWidget.svelte +136 -0
- package/components/shared/attendance/attendance.ts +12 -0
- package/components/shared/backdrop/Backdrop.svelte +24 -0
- package/components/shared/backdrop/BackdropWidget.svelte +345 -0
- package/components/shared/backdrop/backdrop.ts +10 -0
- package/components/shared/chronicle/Chronicle.svelte +36 -0
- package/components/shared/chronicle/ChronicleWidget.svelte +569 -0
- package/components/shared/chronicle/chronicle.ts +11 -0
- package/components/{sessions → shared}/lore-entries/LoreEntries.svelte +1 -1
- package/components/{sessions → shared}/lore-entries/LoreEntriesWidget.svelte +3 -3
- package/components/shared/map-canvas/MapCanvas.svelte +171 -0
- package/components/shared/map-canvas/index.ts +390 -0
- package/components/{sessions → shared}/messages/MessageComposer.svelte +1 -1
- package/components/{sessions → shared}/messages/MessageControls.svelte +42 -0
- package/components/{sessions → shared}/messages/MessageStateLedger.svelte +19 -8
- package/components/{sessions → shared}/messages/Messages.svelte +1 -1
- package/components/{sessions → shared}/messages/MessagesWidget.svelte +126 -40
- package/components/{sessions → shared}/messages/NextCharacterBlock.svelte +17 -14
- package/components/shared/messages/SceneCueChip.svelte +82 -0
- package/components/shared/messages/SceneDivider.svelte +399 -0
- package/components/{sessions → shared}/messages/SessionComposer.svelte +33 -9
- package/components/shared/messages/SessionContainer.svelte +651 -0
- package/components/{sessions → shared}/messages/SessionMessage.svelte +52 -7
- package/components/shared/messages/TurnLine.svelte +254 -0
- package/components/{sessions → shared}/messages/conversation.svelte.ts +191 -2
- package/components/shared/messages/sceneMarks.ts +397 -0
- package/components/shared/places/Places.svelte +24 -0
- package/components/shared/places/PlacesWidget.svelte +290 -0
- package/components/shared/places/places.ts +11 -0
- package/components/{sessions → shared}/scene-portraits/ScenePortraits.svelte +1 -1
- package/components/shared/scene-portraits/ScenePortraitsWidget.svelte +404 -0
- package/components/{sessions → shared}/state/SlotControl.svelte +9 -1
- package/components/{sessions → shared}/stats/Stats.svelte +1 -1
- package/components/shared/stats/StatsWidget.svelte +350 -0
- package/components/{sessions → shared}/stats/stats.ts +3 -2
- package/components/shared/turn-order/TurnOrder.svelte +24 -0
- package/components/shared/turn-order/TurnOrderWidget.svelte +167 -0
- package/components/shared/turn-order/turn-order.ts +11 -0
- package/components/{sessions/shared → shared}/widgetRef.svelte.ts +9 -2
- package/components/shared/world-state/WorldState.svelte +33 -0
- package/components/shared/world-state/world-state.ts +10 -0
- package/components/tsconfig.json +2 -2
- package/dist/components/actions.js +294 -0
- package/dist/components/actions.source.json +1 -0
- package/dist/components/album.js +386 -0
- package/dist/components/album.source.json +1 -0
- package/dist/components/annex.js +457 -0
- package/dist/components/annex.source.json +1 -0
- package/dist/components/attendance.js +353 -0
- package/dist/components/attendance.source.json +1 -0
- package/dist/components/authors-note.js +5 -5
- package/dist/components/authors-note.source.json +1 -1
- package/dist/components/backdrop.js +561 -0
- package/dist/components/backdrop.source.json +1 -0
- package/dist/components/chronicle.js +1141 -0
- package/dist/components/chronicle.source.json +1 -0
- package/dist/components/core-ui.json +1 -1
- package/dist/components/lore-entries.js +5 -5
- package/dist/components/lore-entries.source.json +1 -1
- package/dist/components/messages.js +3014 -2489
- package/dist/components/messages.source.json +1 -1
- package/dist/components/places.js +1133 -0
- package/dist/components/places.source.json +1 -0
- package/dist/components/scene-portraits.js +514 -345
- package/dist/components/scene-portraits.source.json +1 -1
- package/dist/components/shared-3K7SOGH7.js +16 -0
- package/dist/components/shared-452PIS46.js +156 -0
- package/dist/components/shared-GEDAMORM.js +45 -0
- package/dist/components/{shared-TCQZXBE3.js → shared-GXTL5G2H.js} +4 -3
- package/dist/components/shared-ITSLBJB5.js +478 -0
- package/dist/components/shared-NK7QSVMU.js +400 -0
- package/dist/components/shared-TDWKI2QV.js +58 -0
- package/dist/components/{shared-UAQVMZZK.js → shared-XBPH6USH.js} +586 -18
- package/dist/components/{shared-AINANAIA.js → shared-XISPHAKY.js} +502 -98
- package/dist/components/stats.js +8 -208
- package/dist/components/stats.source.json +1 -1
- package/dist/components/turn-order.js +461 -0
- package/dist/components/turn-order.source.json +1 -0
- package/dist/components/world-state.js +14 -202
- package/dist/components/world-state.source.json +1 -1
- package/dist/{answerForm.d.ts → factories/answerForm.d.ts} +4 -30
- package/dist/{answerForm.js → factories/answerForm.js} +10 -39
- package/dist/factories/once.d.ts +7 -0
- package/dist/factories/once.js +9 -0
- package/dist/{turnOrder.d.ts → factories/turnOrder.d.ts} +0 -22
- package/dist/{turnOrder.js → factories/turnOrder.js} +4 -104
- package/dist/genres/adventure/advanceTime.d.ts +18 -0
- package/dist/genres/adventure/advanceTime.js +24 -0
- package/dist/genres/adventure/answer.d.ts +23 -0
- package/dist/genres/adventure/answer.js +59 -0
- package/dist/genres/adventure/answerForm.d.ts +9 -0
- package/dist/genres/adventure/answerForm.js +11 -0
- package/dist/genres/adventure/ask.d.ts +73 -0
- package/dist/genres/adventure/ask.js +157 -0
- package/dist/genres/adventure/create.d.ts +36 -0
- package/dist/genres/adventure/create.js +62 -0
- package/dist/genres/adventure/illustrateScene.d.ts +7 -0
- package/dist/genres/adventure/illustrateScene.js +19 -0
- package/dist/genres/adventure/index.d.ts +45 -0
- package/dist/genres/adventure/index.js +45 -0
- package/dist/genres/adventure/keeperAction.d.ts +43 -0
- package/dist/genres/adventure/keeperAction.js +217 -0
- package/dist/genres/adventure/look.d.ts +45 -0
- package/dist/genres/adventure/look.js +209 -0
- package/dist/{adventure.d.ts → genres/adventure/respond.d.ts} +74 -65
- package/dist/{adventure.js → genres/adventure/respond.js} +125 -65
- package/dist/genres/adventure/rest.d.ts +10 -0
- package/dist/genres/adventure/rest.js +16 -0
- package/dist/genres/adventure/summarizeScene.d.ts +7 -0
- package/dist/genres/adventure/summarizeScene.js +14 -0
- package/dist/genres/adventure/turnOrder.d.ts +10 -0
- package/dist/genres/adventure/turnOrder.js +27 -0
- package/dist/genres/chat/advanceTime.d.ts +7 -0
- package/dist/genres/chat/advanceTime.js +17 -0
- package/dist/genres/chat/answerForm.d.ts +9 -0
- package/dist/genres/chat/answerForm.js +11 -0
- package/dist/genres/chat/create.d.ts +7 -0
- package/dist/{createChat.js → genres/chat/create.js} +6 -6
- package/dist/genres/chat/generateImage.d.ts +7 -0
- package/dist/{generateImage.js → genres/chat/generateImage.js} +26 -22
- package/dist/genres/chat/illustrateScene.d.ts +8 -0
- package/dist/genres/chat/illustrateScene.js +19 -0
- package/dist/genres/chat/index.d.ts +18 -0
- package/dist/genres/chat/index.js +19 -0
- package/dist/{narrate.d.ts → genres/chat/narrate.d.ts} +3 -3
- package/dist/{narrate.js → genres/chat/narrate.js} +37 -12
- package/dist/{narrateCharacter.d.ts → genres/chat/narrateCharacter.d.ts} +2 -2
- package/dist/{narrateCharacter.js → genres/chat/narrateCharacter.js} +39 -17
- package/dist/genres/chat/respond.d.ts +25 -0
- package/dist/{respond.js → genres/chat/respond.js} +91 -23
- package/dist/genres/chat/summarizeScene.d.ts +7 -0
- package/dist/genres/chat/summarizeScene.js +14 -0
- package/dist/genres/chat/turnOrder.d.ts +9 -0
- package/dist/genres/chat/turnOrder.js +28 -0
- package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.d.ts +1 -1
- package/dist/genres/guide/answerForm.d.ts +9 -0
- package/dist/genres/guide/answerForm.js +11 -0
- package/dist/genres/guide/create.d.ts +24 -0
- package/dist/genres/guide/create.js +58 -0
- package/dist/genres/guide/index.d.ts +10 -0
- package/dist/genres/guide/index.js +10 -0
- package/dist/{guide.d.ts → genres/guide/respond.d.ts} +1 -20
- package/dist/{guide.js → genres/guide/respond.js} +32 -61
- package/dist/genres/guide/summarizeScene.d.ts +7 -0
- package/dist/genres/guide/summarizeScene.js +14 -0
- package/dist/genres/guide/turnOrder.d.ts +10 -0
- package/dist/genres/guide/turnOrder.js +27 -0
- package/dist/genres/index.d.ts +14 -0
- package/dist/genres/index.js +41 -0
- package/dist/genres/lair/advanceTime.d.ts +7 -0
- package/dist/genres/lair/advanceTime.js +17 -0
- package/dist/genres/lair/answerForm.d.ts +17 -0
- package/dist/genres/lair/answerForm.js +19 -0
- package/dist/genres/lair/buildRoom.d.ts +64 -0
- package/dist/genres/lair/buildRoom.js +244 -0
- package/dist/genres/lair/castellanAction.d.ts +27 -0
- package/dist/genres/lair/castellanAction.js +177 -0
- package/dist/genres/lair/create.d.ts +28 -0
- package/dist/genres/lair/create.js +69 -0
- package/dist/genres/lair/fileRoom.d.ts +53 -0
- package/dist/genres/lair/fileRoom.js +288 -0
- package/dist/genres/lair/index.d.ts +62 -0
- package/dist/genres/lair/index.js +63 -0
- package/dist/genres/lair/nudge.d.ts +25 -0
- package/dist/genres/lair/nudge.js +78 -0
- package/dist/{lair.d.ts → genres/lair/respond.d.ts} +46 -59
- package/dist/{lair.js → genres/lair/respond.js} +55 -76
- package/dist/genres/lair/reveal.d.ts +10 -0
- package/dist/genres/lair/reveal.js +18 -0
- package/dist/genres/lair/roomAnswer.d.ts +86 -0
- package/dist/genres/lair/roomAnswer.js +378 -0
- package/dist/genres/lair/summarizeScene.d.ts +39 -0
- package/dist/genres/lair/summarizeScene.js +51 -0
- package/dist/genres/lair/trap.d.ts +11 -0
- package/dist/genres/lair/trap.js +24 -0
- package/dist/genres/lair/turnOrder.d.ts +9 -0
- package/dist/genres/lair/turnOrder.js +36 -0
- package/dist/genres/lair/whisper.d.ts +35 -0
- package/dist/genres/lair/whisper.js +90 -0
- package/dist/index.d.ts +52 -29
- package/dist/index.js +192 -86
- package/dist/loadouts.d.ts +37 -0
- package/dist/loadouts.js +105 -0
- package/dist/{entries.d.ts → registry/entries.d.ts} +1 -1
- package/dist/{genres.js → registry/genres.js} +40 -6
- package/dist/{ui/sessions → registry}/layouts.d.ts +41 -27
- package/dist/{ui/sessions → registry}/layouts.js +90 -49
- package/dist/{ui/sessions → registry}/widgets.d.ts +22 -0
- package/dist/registry/widgets.js +1294 -0
- package/dist/{presets.js → seed/presets.js} +28 -13
- package/dist/{prompts.d.ts → seed/prompts.d.ts} +10 -5
- package/dist/{prompts.js → seed/prompts.js} +225 -176
- package/dist/{annexField.d.ts → shared/annexField.d.ts} +12 -8
- package/dist/{annexField.js → shared/annexField.js} +16 -15
- package/dist/shared/builtins/branch.d.ts +8 -0
- package/dist/shared/builtins/branch.js +13 -0
- package/dist/{builtins.d.ts → shared/builtins/builtIn.d.ts} +16 -21
- package/dist/{builtins.js → shared/builtins/builtIn.js} +3 -37
- package/dist/shared/builtins/delete.d.ts +8 -0
- package/dist/shared/builtins/delete.js +13 -0
- package/dist/shared/builtins/edit.d.ts +8 -0
- package/dist/shared/builtins/edit.js +13 -0
- package/dist/shared/builtins/hide.d.ts +8 -0
- package/dist/shared/builtins/hide.js +13 -0
- package/dist/shared/builtins/index.d.ts +11 -0
- package/dist/shared/builtins/index.js +11 -0
- package/dist/shared/builtins/swipe.d.ts +8 -0
- package/dist/shared/builtins/swipe.js +17 -0
- package/dist/shared/describeLikeness.d.ts +14 -0
- package/dist/shared/describeLikeness.js +65 -0
- package/dist/shared/illustrateScene.d.ts +28 -0
- package/dist/shared/illustrateScene.js +181 -0
- package/dist/shared/portrait.d.ts +21 -0
- package/dist/shared/portrait.js +101 -0
- package/dist/shared/spriteFill.d.ts +14 -0
- package/dist/shared/spriteFill.js +107 -0
- package/dist/shared/sprites.d.ts +34 -0
- package/dist/shared/sprites.js +98 -0
- package/dist/shared/summarize/character.d.ts +9 -0
- package/dist/shared/summarize/character.js +10 -0
- package/dist/shared/summarize/history.d.ts +9 -0
- package/dist/shared/summarize/history.js +10 -0
- package/dist/shared/summarize/index.d.ts +12 -0
- package/dist/shared/summarize/index.js +12 -0
- package/dist/shared/summarize/scene.d.ts +38 -0
- package/dist/shared/summarize/scene.js +42 -0
- package/dist/shared/summarize/sceneIds.d.ts +17 -0
- package/dist/shared/summarize/sceneIds.js +17 -0
- package/dist/shared/summarize/summarizeScene.d.ts +113 -0
- package/dist/shared/summarize/summarizeScene.js +234 -0
- package/dist/shared/summarize/summarizeSpec.d.ts +54 -0
- package/dist/{summarize.js → shared/summarize/summarizeSpec.js} +23 -53
- package/dist/shared/summarize/world.d.ts +8 -0
- package/dist/shared/summarize/world.js +9 -0
- package/dist/shared/timePasses.d.ts +56 -0
- package/dist/shared/timePasses.js +86 -0
- package/dist/{toolLoop.d.ts → shared/toolLoop.d.ts} +25 -3
- package/dist/{toolLoop.js → shared/toolLoop.js} +70 -14
- package/dist/shared/ui/actions/index.d.ts +117 -0
- package/dist/shared/ui/actions/index.js +154 -0
- package/dist/shared/ui/album/index.d.ts +115 -0
- package/dist/shared/ui/album/index.js +178 -0
- package/dist/shared/ui/annex/index.d.ts +163 -0
- package/dist/shared/ui/annex/index.js +273 -0
- package/dist/shared/ui/attendance/index.d.ts +97 -0
- package/dist/shared/ui/attendance/index.js +89 -0
- package/dist/shared/ui/backdrop/index.d.ts +78 -0
- package/dist/shared/ui/backdrop/index.js +98 -0
- package/dist/shared/ui/chronicle/index.d.ts +230 -0
- package/dist/shared/ui/chronicle/index.js +249 -0
- package/dist/shared/ui/conversation/dossier.d.ts +33 -0
- package/dist/shared/ui/conversation/dossier.js +31 -0
- package/dist/{ui/sessions → shared/ui}/conversation/index.d.ts +2 -1
- package/dist/{ui/sessions → shared/ui}/conversation/index.js +3 -1
- package/dist/{ui/sessions → shared/ui}/conversation/messageVerbState.d.ts +1 -1
- package/dist/shared/ui/conversation/storyDays.d.ts +21 -0
- package/dist/shared/ui/conversation/storyDays.js +23 -0
- package/dist/{ui/sessions → shared/ui}/coreWidgetsEntry.d.ts +1 -1
- package/dist/{ui/sessions → shared/ui}/coreWidgetsEntry.js +1 -1
- package/dist/{ui/sessions → shared/ui}/lore-entries/index.d.ts +2 -2
- package/dist/shared/ui/places/index.d.ts +148 -0
- package/dist/shared/ui/places/index.js +249 -0
- package/dist/{ui/sessions → shared/ui}/scene-portraits/index.d.ts +1 -1
- package/dist/{ui/sessions → shared/ui}/scene-portraits/index.js +1 -1
- package/dist/shared/ui/scene-portraits/portraits.d.ts +191 -0
- package/dist/shared/ui/scene-portraits/portraits.js +223 -0
- package/dist/shared/ui/session-state/index.d.ts +16 -0
- package/dist/shared/ui/session-state/index.js +16 -0
- package/dist/{ui/sessions → shared/ui}/session-state/shapes.d.ts +2 -2
- package/dist/shared/ui/session-state/stateView.d.ts +249 -0
- package/dist/shared/ui/session-state/stateView.js +247 -0
- package/dist/shared/ui/turn-order/index.d.ts +146 -0
- package/dist/shared/ui/turn-order/index.js +257 -0
- package/dist/{ui/sessions → shared/ui}/widgetContext.d.ts +19 -10
- package/package.json +69 -30
- package/components/sessions/messages/SessionContainer.svelte +0 -459
- package/components/sessions/scene-portraits/ScenePortraitsWidget.svelte +0 -249
- package/components/sessions/stats/StatsWidget.svelte +0 -112
- package/components/sessions/world-state/WorldStateWidget.svelte +0 -112
- package/components/sessions/world-state/world-state.ts +0 -10
- package/dist/adventureActions.d.ts +0 -169
- package/dist/adventureActions.js +0 -599
- package/dist/createChat.d.ts +0 -7
- package/dist/generateImage.d.ts +0 -7
- package/dist/lairActions.d.ts +0 -296
- package/dist/lairActions.js +0 -1287
- package/dist/respond.d.ts +0 -24
- package/dist/sprites.d.ts +0 -24
- package/dist/sprites.js +0 -102
- package/dist/summarize.d.ts +0 -76
- package/dist/ui/sessions/conversation/dossier.d.ts +0 -328
- package/dist/ui/sessions/conversation/dossier.js +0 -31
- package/dist/ui/sessions/scene-portraits/portraits.d.ts +0 -95
- package/dist/ui/sessions/scene-portraits/portraits.js +0 -115
- package/dist/ui/sessions/session-state/index.d.ts +0 -15
- package/dist/ui/sessions/session-state/index.js +0 -15
- package/dist/ui/sessions/session-state/stateView.d.ts +0 -155
- package/dist/ui/sessions/session-state/stateView.js +0 -141
- package/dist/ui/sessions/widgets.js +0 -567
- package/components/{sessions → genres/chat}/authors-note/authors-note.ts +0 -0
- package/components/{sessions/shared → shared}/context.ts +0 -0
- package/components/{sessions → shared}/lore-entries/lore-entries.ts +0 -0
- package/components/{sessions → shared}/messages/MessageBlocksView.svelte +0 -0
- package/components/{sessions → shared}/messages/MessageMediaStrip.svelte +0 -0
- package/components/{sessions → shared}/messages/MessagePartsView.svelte +0 -0
- package/components/{sessions → shared}/messages/StateProposalList.svelte +0 -0
- package/components/{sessions → shared}/messages/mediaStrip.ts +0 -0
- package/components/{sessions → shared}/messages/messages.ts +0 -0
- package/components/{sessions → shared}/scene-portraits/StatBars.svelte +0 -0
- package/components/{sessions → shared}/scene-portraits/scene-portraits.ts +0 -0
- package/components/{sessions → shared}/state/entryFinder.ts +0 -0
- package/components/{sessions → shared}/state/slotWriter.svelte.ts +0 -0
- package/dist/components/{shared-RJDGOAVC.js → shared-FTRGUE7G.js} +78 -78
- /package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.js +0 -0
- /package/dist/{entries.js → registry/entries.js} +0 -0
- /package/dist/{genres.d.ts → registry/genres.d.ts} +0 -0
- /package/dist/{slots.d.ts → registry/slots.d.ts} +0 -0
- /package/dist/{slots.js → registry/slots.js} +0 -0
- /package/dist/{statShapes.d.ts → registry/statShapes.d.ts} +0 -0
- /package/dist/{statShapes.js → registry/statShapes.js} +0 -0
- /package/dist/{guideMascotImage.d.ts → seed/guideMascotImage.d.ts} +0 -0
- /package/dist/{guideMascotImage.js → seed/guideMascotImage.js} +0 -0
- /package/dist/{presets.d.ts → seed/presets.d.ts} +0 -0
- /package/dist/{graphBuild.d.ts → shared/graphBuild.d.ts} +0 -0
- /package/dist/{graphBuild.js → shared/graphBuild.js} +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/actionsDisclosure.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/actionsDisclosure.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/composerTray.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/composerTray.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/formAnswer.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/formAnswer.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/itemValues.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/itemValues.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/messageOrder.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/messageOrder.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/messageSpeaker.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/messageSpeaker.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/messageVerbState.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/slashPalette.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/slashPalette.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/text.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/text.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/lore-entries/index.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/session-state/barMath.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/session-state/barMath.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/session-state/shapes.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/widgetContext.js +0 -0
package/dist/respond.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core's answer-a-message pipeline.
|
|
3
|
-
*
|
|
4
|
-
* One file per spec, because a pipeline is content and content grows: the
|
|
5
|
-
* summarize and graph-build specs are several nodes each with their own step
|
|
6
|
-
* prompts, and a single module holding all of them would be a merge conflict
|
|
7
|
-
* waiting for the first person to add a sixth.
|
|
8
|
-
*/
|
|
9
|
-
/** The spec a session turn runs. @experimental */
|
|
10
|
-
export declare const RESPOND_SPEC_ID = "core:spec/respond";
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const RESPOND_VERSION = "1.21.0";
|
|
13
|
-
/**
|
|
14
|
-
* Core's answer-a-message pipeline.
|
|
15
|
-
*
|
|
16
|
-
* All five mechanisms since 1.20.0 — keys, names the scene said, meaning,
|
|
17
|
-
* names the scene *described*, and the structural signals that order what they
|
|
18
|
-
* find. Three of the five need nothing installed; the two that read embeddings
|
|
19
|
-
* need a model and both ship switched off, so a first boot runs exactly the
|
|
20
|
-
* zero-cost path it always did.
|
|
21
|
-
* @experimental
|
|
22
|
-
*/
|
|
23
|
-
export declare const respondSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
24
|
-
//# sourceMappingURL=respond.d.ts.map
|
package/dist/sprites.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @internal */
|
|
2
|
-
export declare const SPRITES_VERSION = "1.0.0";
|
|
3
|
-
/** A person's pick from the message menu, run as an action (§6). @experimental */
|
|
4
|
-
export declare const SHOW_SPRITE_SPEC_ID = "core:spec/show-sprite";
|
|
5
|
-
/** The picker's node key inside the tail — the address a rebind names. @internal */
|
|
6
|
-
export declare const SPRITE_PICKER_NODE_KEY = "spriteTail.show.spritePick";
|
|
7
|
-
/** Core's pickers. One today; a plugin's pure task publishing `sprite-pick@1` joins it. @internal */
|
|
8
|
-
export declare const SPRITE_PICKER_IDS: readonly ['core:task/pick-sprite-similarity@1'];
|
|
9
|
-
/**
|
|
10
|
-
* Append the sprite tail to a reply spec's builder. The builder must already
|
|
11
|
-
* hold an inlet keyed `input` publishing `sessionScope` and an outlet keyed
|
|
12
|
-
* `save` publishing `messageId` — every reply spec in the catalog does.
|
|
13
|
-
* @experimental
|
|
14
|
-
*/
|
|
15
|
-
export declare function withSpriteTail<B>(builder: B): B;
|
|
16
|
-
/**
|
|
17
|
-
* A person's pick (§6): the message menu's **Change sprite**, run as an
|
|
18
|
-
* action so the write is receipted and emits `sprite-shown` like any other.
|
|
19
|
-
* The host records `source: 'person'` for THIS spec and no other, and checks
|
|
20
|
-
* the person may act on the line (the `item` rule), as it does for an edit.
|
|
21
|
-
* @experimental
|
|
22
|
-
*/
|
|
23
|
-
export declare const showSpriteSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
24
|
-
//# sourceMappingURL=sprites.d.ts.map
|
package/dist/sprites.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sprites in the reply road (DESIGN-sprites §5, 2026-09-24).
|
|
3
|
-
*
|
|
4
|
-
* ## The tail
|
|
5
|
-
*
|
|
6
|
-
* `withSpriteTail(builder)` appends the same few nodes to every reply spec,
|
|
7
|
-
* after its `save` has committed the line — so choosing a face never delays
|
|
8
|
-
* the reply, and one definition serves every genre:
|
|
9
|
-
*
|
|
10
|
-
* sprites (query sprites-for) what the speaker can show, and the
|
|
11
|
-
* line's and labels' vectors
|
|
12
|
-
* spriteTail (junction on `has`) nothing to choose → stop quietly
|
|
13
|
-
* show.spritePick (task, REBINDABLE) the sprite picker
|
|
14
|
-
* show.spriteShow (outlet show-sprite) record it on the line
|
|
15
|
-
*
|
|
16
|
-
* The vectors come from the install's embedding model inside `sprites-for`
|
|
17
|
-
* (as `entity-link` embeds names) — no `embed-text` node is placed, which
|
|
18
|
-
* would add a connection control to every reply spec that nothing reads.
|
|
19
|
-
* With no embedding model loaded the vectors are null and the default picker
|
|
20
|
-
* picks nothing, which leaves the line showing the speaker's last face.
|
|
21
|
-
*
|
|
22
|
-
* ⚠ **Not free in API mode** (corrected 2026-09-29, genre uplift C3). This
|
|
23
|
-
* once said "the local embedding lane … so the one-model-call-per-turn rule
|
|
24
|
-
* holds", and that is true only of a local ONNX model. The host embeds
|
|
25
|
-
* through the same `batchEmbed` retrieval uses, and with an API embedding
|
|
26
|
-
* connection starred that is a **provider call**: one per reply whose
|
|
27
|
-
* speaker has sprites, after the reply is saved (so it never delays it). A
|
|
28
|
-
* speaker with no sprites costs nothing — `has` is false before anything is
|
|
29
|
-
* embedded. Turning sprites off is the picker's `enabled`, which sits after
|
|
30
|
-
* `sprites-for`; the host reads that parameter for the run and makes no embed
|
|
31
|
-
* when it is off, so "Choose sprites" off costs nothing either.
|
|
32
|
-
*
|
|
33
|
-
* ## Why a tail and not a spec of its own
|
|
34
|
-
*
|
|
35
|
-
* The natural home — a spec answering `message-completed` — does not fit:
|
|
36
|
-
* dispatch resolves ONE spec per (preset, event), and every genre already
|
|
37
|
-
* binds `message-completed` to its turn-order spec. A tail on each reply spec
|
|
38
|
-
* keeps the choice in the reply's own run and receipt without changing the
|
|
39
|
-
* dispatch rule (§5.1, option A).
|
|
40
|
-
*
|
|
41
|
-
* ## The picker is a rebind
|
|
42
|
-
*
|
|
43
|
-
* `SPRITE_PICKER_NODE_KEY` is rebound per session exactly as the Turn order
|
|
44
|
-
* control rebinds a turn-order spec's strategy: every picker publishes
|
|
45
|
-
* `core:shape/sprite-pick@1` on `main`, so the shape-based swap list offers
|
|
46
|
-
* them — core's `pick-sprite-similarity` and any plugin's pure task
|
|
47
|
-
* publishing the same shape. Turning sprites off is that picker's `enabled`
|
|
48
|
-
* parameter, not a second node.
|
|
49
|
-
*/
|
|
50
|
-
import { compile, spec, slot } from '@serene-pub/sdk';
|
|
51
|
-
import * as C from '@serene-pub/contracts';
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const SPRITES_VERSION = '1.0.0';
|
|
54
|
-
/** A person's pick from the message menu, run as an action (§6). @experimental */
|
|
55
|
-
export const SHOW_SPRITE_SPEC_ID = 'core:spec/show-sprite';
|
|
56
|
-
/** The picker's node key inside the tail — the address a rebind names. @internal */
|
|
57
|
-
export const SPRITE_PICKER_NODE_KEY = 'spriteTail.show.spritePick';
|
|
58
|
-
/** Core's pickers. One today; a plugin's pure task publishing `sprite-pick@1` joins it. @internal */
|
|
59
|
-
export const SPRITE_PICKER_IDS = ['core:task/pick-sprite-similarity@1'];
|
|
60
|
-
/**
|
|
61
|
-
* Append the sprite tail to a reply spec's builder. The builder must already
|
|
62
|
-
* hold an inlet keyed `input` publishing `sessionScope` and an outlet keyed
|
|
63
|
-
* `save` publishing `messageId` — every reply spec in the catalog does.
|
|
64
|
-
* @experimental
|
|
65
|
-
*/
|
|
66
|
-
export function withSpriteTail(builder) {
|
|
67
|
-
return builder
|
|
68
|
-
.query('sprites', ($) => C.spritesFor.v1({
|
|
69
|
-
scope: $.input.sessionScope,
|
|
70
|
-
message: $.save.messageId,
|
|
71
|
-
}))
|
|
72
|
-
.junction('spriteTail', { on: ($) => $.sprites.main }, (r) => r.when('show', { path: 'has', truthy: true }, (c) => c
|
|
73
|
-
.task('spritePick', ($) => C.pickSpriteSimilarity.v1({
|
|
74
|
-
choices: $.sprites.choices,
|
|
75
|
-
lineVector: $.sprites.lineVector,
|
|
76
|
-
labelVectors: $.sprites.labelVectors,
|
|
77
|
-
params: slot.params(),
|
|
78
|
-
}),
|
|
79
|
-
// A declared session setting (§4.11): "Choose sprites",
|
|
80
|
-
// stickiness and the floor are the session's to set, in
|
|
81
|
-
// session settings beside the turn controls.
|
|
82
|
-
{ expose: { session: true } })
|
|
83
|
-
.outlet('spriteShow', ($) => C.showSprite.v1({
|
|
84
|
-
target: $.save.messageId,
|
|
85
|
-
pick: $.spriteTail.show.spritePick.main,
|
|
86
|
-
}))));
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* A person's pick (§6): the message menu's **Change sprite**, run as an
|
|
90
|
-
* action so the write is receipted and emits `sprite-shown` like any other.
|
|
91
|
-
* The host records `source: 'person'` for THIS spec and no other, and checks
|
|
92
|
-
* the person may act on the line (the `item` rule), as it does for an edit.
|
|
93
|
-
* @experimental
|
|
94
|
-
*/
|
|
95
|
-
export const showSpriteSpec = () => compile(spec(SHOW_SPRITE_SPEC_ID, {
|
|
96
|
-
version: SPRITES_VERSION,
|
|
97
|
-
taxonomy: { role: 'action' },
|
|
98
|
-
})
|
|
99
|
-
.inlet('input', C.builtInRequest.v1())
|
|
100
|
-
.outlet('write', ($) => C.showSprite.v1({ target: $.input.target, pick: $.input.sprite }))
|
|
101
|
-
.build());
|
|
102
|
-
//# sourceMappingURL=sprites.js.map
|
package/dist/summarize.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The four summarize pipelines: world lore, character lore, scene, history entry.
|
|
3
|
-
*
|
|
4
|
-
* ## Why four specs and not one with a `loreType` parameter
|
|
5
|
-
*
|
|
6
|
-
* They are four *namespaces*. Each has its own prompts, its own connection and
|
|
7
|
-
* sampling choices per step, and its own configs a user swaps between — which is
|
|
8
|
-
* exactly what `world_summarize_configs`, `character_summarize_configs` and
|
|
9
|
-
* `scene_summarize_configs` already are. One spec with a discriminator would put
|
|
10
|
-
* that difference in a condition somebody has to find, and would give all four a
|
|
11
|
-
* single shared prompt set, which is the thing the three tables exist to avoid.
|
|
12
|
-
*
|
|
13
|
-
* History entry summarization gets the fourth. Today it is a `loreType` the
|
|
14
|
-
* summarizer already supports (`"world" | "history" | "character" | "scene"`)
|
|
15
|
-
* that falls through to the **scene** config in `sockets/summarize.ts` — so a
|
|
16
|
-
* user tuning scene summaries silently retunes history entries. That is a defect
|
|
17
|
-
* this split fixes rather than a feature it adds.
|
|
18
|
-
*
|
|
19
|
-
* ## The two phases, and why the first is a `map`
|
|
20
|
-
*
|
|
21
|
-
* Messages are cut into token-sized batches and each is drafted *without sight
|
|
22
|
-
* of any other*; the ordered drafts are then merged into one narrative. Drafting
|
|
23
|
-
* in isolation is what makes a long session summarizable at all — the model never
|
|
24
|
-
* holds more than one batch — and the batches genuinely do not depend on each
|
|
25
|
-
* other, so `map` states that and lets the connection's own queue decide the
|
|
26
|
-
* ordering. A loop would impose a sequence the work does not have.
|
|
27
|
-
*/
|
|
28
|
-
/** @experimental */
|
|
29
|
-
export declare const SUMMARIZE_WORLD_SPEC_ID = "core:spec/summarize-world";
|
|
30
|
-
/** @experimental */
|
|
31
|
-
export declare const SUMMARIZE_CHARACTER_SPEC_ID = "core:spec/summarize-character";
|
|
32
|
-
/** @experimental */
|
|
33
|
-
export declare const SUMMARIZE_SCENE_SPEC_ID = "core:spec/summarize-scene";
|
|
34
|
-
/** @experimental */
|
|
35
|
-
export declare const SUMMARIZE_HISTORY_SPEC_ID = "core:spec/summarize-history";
|
|
36
|
-
/** @internal */
|
|
37
|
-
export declare const SUMMARIZE_VERSION = "1.3.0";
|
|
38
|
-
/** @experimental */
|
|
39
|
-
export declare const summarizeWorldSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
40
|
-
/** @experimental */
|
|
41
|
-
export declare const summarizeCharacterSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
42
|
-
/**
|
|
43
|
-
* ⚠ **The cast extraction is ON ICE, not deleted** (plan §2, ruled 2026-09-08).
|
|
44
|
-
*
|
|
45
|
-
* `extractsCast` is deliberately absent rather than removed: the branch above,
|
|
46
|
-
* `core:oracle/extract-cast@1` and its shipped prompt all stay exactly where
|
|
47
|
-
* they are, so reviving the step is restoring this one property.
|
|
48
|
-
*
|
|
49
|
-
* Why it is off. The measured replacement for the *participant* half — the
|
|
50
|
-
* roster unioned with speech-gated textual extraction — scored 100% precision
|
|
51
|
-
* at 88.5% recall from the sender side and 96.2% recall from the roster side,
|
|
52
|
-
* with **zero fabricated people in any configuration**, over 40,000 turns in
|
|
53
|
-
* ~661 ms and no model at all. Its failure profile is omission, categorically
|
|
54
|
-
* unlike the 24% fabrication that got the acts layer rejected. Until that
|
|
55
|
-
* pre-fill has been used in anger the LLM step is disabled rather than dropped.
|
|
56
|
-
*
|
|
57
|
-
* The *mentioned* half is not coming back at all in this shape: it is derived
|
|
58
|
-
* from `message_annotations` now (plan §1) — exactly (scene text × vocabulary),
|
|
59
|
-
* invalidated by the freshness triple — rather than asked of a model and stored.
|
|
60
|
-
*
|
|
61
|
-
* Participants keep coming from where they always did on this path: every
|
|
62
|
-
* distinct sender in the scene's span is made a participant by
|
|
63
|
-
* `sockets/scenes.ts` and `sockets/summarize.ts` regardless of what any
|
|
64
|
-
* extraction said, so turning this off narrows the proposal, it does not empty
|
|
65
|
-
* it. The graph build keeps its own Pass 1 extraction for scenes that have no
|
|
66
|
-
* stored cast at all.
|
|
67
|
-
*
|
|
68
|
-
* ⚠ Editing this document does not reach a database that has already seeded —
|
|
69
|
-
* publishing is idempotent by `(slug, semver)` — so this ships with a migration
|
|
70
|
-
* deleting the `pipeline_spec_versions` row, precedent `0095`/`0100`.
|
|
71
|
-
* @experimental
|
|
72
|
-
*/
|
|
73
|
-
export declare const summarizeSceneSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
74
|
-
/** @experimental */
|
|
75
|
-
export declare const summarizeHistorySpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
76
|
-
//# sourceMappingURL=summarize.d.ts.map
|
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 🚧 The conversation **dossier**: what core's conversation widget is told
|
|
3
|
-
* about its session, beyond the
|
|
4
|
-
* envelope's base sections (C0b) — the `session_full.v1` its host projects,
|
|
5
|
-
* core's own widget being granted `session:full`.
|
|
6
|
-
*
|
|
7
|
-
* The page answers here what only the page can: who the viewer controls, who
|
|
8
|
-
* spoke each line and with what face, where scenes and history entries fall,
|
|
9
|
-
* whether older messages remain. The widget judges nothing it is not told,
|
|
10
|
-
* and acts only through its verbs (`invoke`, `request`) — so the same widget
|
|
11
|
-
* runs as a remote in the page's UI worker, where there is no page to ask.
|
|
12
|
-
*
|
|
13
|
-
* A plugin's widget sees it only when it declares the `session:full` scope
|
|
14
|
-
* and an admin grants that permission (`widget:session:full`) at review —
|
|
15
|
-
* never by default; the grant shows the whole conversation as the viewer
|
|
16
|
-
* sees it (the cast, their personas, their unsent draft, the session's
|
|
17
|
-
* state). Provisional: its shape settles with the C7 cutover.
|
|
18
|
-
*/
|
|
19
|
-
/** A participant as a line names them: display name, reference, face. @experimental */
|
|
20
|
-
export interface ConversationSpeakerV1 {
|
|
21
|
-
name: string;
|
|
22
|
-
/** `character:3` — what `sp-avatar` and `view-avatar` take; null for narration. */
|
|
23
|
-
ref: string | null;
|
|
24
|
-
/** The speaker's avatar. */
|
|
25
|
-
face: string | null;
|
|
26
|
-
/** The sprite this line was shown with — what `avatarFace: sprite` draws instead. */
|
|
27
|
-
sprite: string | null;
|
|
28
|
-
/**
|
|
29
|
-
* 🚧 The session member a `name` that is a role belongs to (R4): on a
|
|
30
|
-
* person's persona-less line named by the genre's `playerLabel`, the
|
|
31
|
-
* member's own name, present only when the session has more than one
|
|
32
|
-
* member — shown after the name in muted text ("Dungeon Master · jody").
|
|
33
|
-
* Absent everywhere else.
|
|
34
|
-
*/
|
|
35
|
-
member?: string;
|
|
36
|
-
}
|
|
37
|
-
/** What the page decided about one message. @experimental */
|
|
38
|
-
export interface ConversationLineV1 {
|
|
39
|
-
/** The viewer may press this line's own verbs (edit, hide, delete). */
|
|
40
|
-
controllable: boolean;
|
|
41
|
-
speaker: ConversationSpeakerV1;
|
|
42
|
-
/** Swipe arrows: shown at all, and whether there is a newer reply to take. */
|
|
43
|
-
swipes: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
right: boolean;
|
|
46
|
-
};
|
|
47
|
-
/** The line's vectors against the active embedding model (hidden when retrieval is off). */
|
|
48
|
-
embedding: 'current' | 'stale' | 'none' | 'hidden';
|
|
49
|
-
/**
|
|
50
|
-
* The host holds this line's compiled prompt and the viewer may read it
|
|
51
|
-
* (`prompt-details`: admins, with context debugging on). The prompt itself
|
|
52
|
-
* never rides the row — `debugMeta` is host bookkeeping (`MESSAGE_HOST_FIELDS`).
|
|
53
|
-
* Absent reads as false.
|
|
54
|
-
*/
|
|
55
|
-
promptDetails?: boolean;
|
|
56
|
-
}
|
|
57
|
-
/** A scene over some of the log, with the history entry it sits in. @experimental */
|
|
58
|
-
export interface ConversationSceneV1 {
|
|
59
|
-
id: number;
|
|
60
|
-
name: string | null;
|
|
61
|
-
lorebookId: number;
|
|
62
|
-
historyEntryId: number | null;
|
|
63
|
-
selectedMessageIds: number[];
|
|
64
|
-
historyEntry: {
|
|
65
|
-
id: number;
|
|
66
|
-
year: number;
|
|
67
|
-
month: number | null;
|
|
68
|
-
day: number | null;
|
|
69
|
-
isCompleted: boolean;
|
|
70
|
-
nextEntry: {
|
|
71
|
-
id: number;
|
|
72
|
-
year: number;
|
|
73
|
-
month: number | null;
|
|
74
|
-
day: number | null;
|
|
75
|
-
} | null;
|
|
76
|
-
} | null;
|
|
77
|
-
}
|
|
78
|
-
/** The cast, as far as answering a form needs it (`canAnswerForm`). @experimental */
|
|
79
|
-
export interface ConversationCastV1 {
|
|
80
|
-
sessionPersonas: Array<{
|
|
81
|
-
personaId: number | null;
|
|
82
|
-
persona: {
|
|
83
|
-
userId: number | null;
|
|
84
|
-
} | null;
|
|
85
|
-
}>;
|
|
86
|
-
sessionCharacters: Array<{
|
|
87
|
-
characterId: number | null;
|
|
88
|
-
}>;
|
|
89
|
-
}
|
|
90
|
-
/** @experimental */
|
|
91
|
-
export interface ConversationDossierV1 {
|
|
92
|
-
sessionId: number;
|
|
93
|
-
/** Per message, by id. */
|
|
94
|
-
lines: Record<number, ConversationLineV1>;
|
|
95
|
-
scenes: ConversationSceneV1[];
|
|
96
|
-
/** Messages already captured in a scene (not selectable for another). */
|
|
97
|
-
scened: number[];
|
|
98
|
-
/** Older messages remain to load, and a load is under way. */
|
|
99
|
-
hasOlder: boolean;
|
|
100
|
-
loadingOlder: boolean;
|
|
101
|
-
/** Why Extend is unavailable in this session, when it is. */
|
|
102
|
-
extendRefusal?: string;
|
|
103
|
-
/** The viewer owns the session (not a guest) — a form to the owner is theirs. */
|
|
104
|
-
isOwner: boolean;
|
|
105
|
-
cast: ConversationCastV1;
|
|
106
|
-
/** What the session may write beyond messages (R-B): a scene, lore. */
|
|
107
|
-
writes: {
|
|
108
|
-
scenes: boolean;
|
|
109
|
-
lore: boolean;
|
|
110
|
-
};
|
|
111
|
-
/** Admins with context debugging on may open a line's prompt. */
|
|
112
|
-
debugPrompts: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Bumped when a host view (the workflow tab) asks the conversation to
|
|
115
|
-
* start selecting lines for a summary — the widget starts on a change.
|
|
116
|
-
*/
|
|
117
|
-
selectForSummary: number;
|
|
118
|
-
/** Bumped when the host's summary finished: the selection it was handed ends. */
|
|
119
|
-
summaryEnded: number;
|
|
120
|
-
/** What the composer is told. */
|
|
121
|
-
composer: ConversationComposerV1;
|
|
122
|
-
/** Who is due next, from the session's stored turn order. */
|
|
123
|
-
turn: {
|
|
124
|
-
order: Array<{
|
|
125
|
-
ref: string | null;
|
|
126
|
-
[k: string]: unknown;
|
|
127
|
-
}>;
|
|
128
|
-
candidates: Array<{
|
|
129
|
-
ref: string;
|
|
130
|
-
kind: string;
|
|
131
|
-
name: string;
|
|
132
|
-
nickname?: string;
|
|
133
|
-
ownerUserId?: number;
|
|
134
|
-
}>;
|
|
135
|
-
/** The nudge applies now (a turn is due, nothing is generating or drafted). */
|
|
136
|
-
show: boolean;
|
|
137
|
-
/** Anyone else could take the turn. */
|
|
138
|
-
canChoose: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* 🚧 What the pipeline's own voice — an entry with `ref: null` — is
|
|
141
|
-
* called (lair re-plan R5): the genre's fallback envoy (the Lair's
|
|
142
|
-
* "Castellan"), else the session's narrator name, else
|
|
143
|
-
* `UNCLAIMED_LINE_NAME`, as the page resolves it. Absent reads as
|
|
144
|
-
* "The narrator".
|
|
145
|
-
*/
|
|
146
|
-
ownVoiceName?: string;
|
|
147
|
-
};
|
|
148
|
-
/** The session's mode is not installed: the log is read-only (19 §6). */
|
|
149
|
-
readOnly: {
|
|
150
|
-
genreId: string | null;
|
|
151
|
-
} | null;
|
|
152
|
-
/** The session state's ledger under each line, and what waits for the viewer. */
|
|
153
|
-
state: ConversationStateV1;
|
|
154
|
-
/** A backdrop image is painted behind the shell: the conversation gets its glass panel. */
|
|
155
|
-
backdrop: boolean;
|
|
156
|
-
}
|
|
157
|
-
/** One proposed change, described. @experimental */
|
|
158
|
-
export interface ConversationProposalV1 {
|
|
159
|
-
id: number;
|
|
160
|
-
status: string;
|
|
161
|
-
messageId: number | null;
|
|
162
|
-
/** The change, in words. */
|
|
163
|
-
text: string;
|
|
164
|
-
proposedBy: string | null;
|
|
165
|
-
/** For a superseded proposal: what moved since. */
|
|
166
|
-
moved: string | null;
|
|
167
|
-
}
|
|
168
|
-
/** 🚧 The session state's ledger, as the conversation draws it (C0b). @experimental */
|
|
169
|
-
export interface ConversationStateV1 {
|
|
170
|
-
/** Per message id: the changes it made, grouped by whose they are. */
|
|
171
|
-
ledgers: Record<number, Array<{
|
|
172
|
-
ownerKey: string;
|
|
173
|
-
ownerLabel: string;
|
|
174
|
-
lines: Array<{
|
|
175
|
-
key: string;
|
|
176
|
-
text: string;
|
|
177
|
-
updatedBy: string;
|
|
178
|
-
}>;
|
|
179
|
-
}>>;
|
|
180
|
-
/** Per message id: proposals anchored to it. */
|
|
181
|
-
pending: Record<number, ConversationProposalV1[]>;
|
|
182
|
-
/** Every proposal waiting for the viewer (the Review panel). */
|
|
183
|
-
waiting: ConversationProposalV1[];
|
|
184
|
-
}
|
|
185
|
-
/** A tab of the composer's More panel: one of the host's own views. @experimental */
|
|
186
|
-
export interface ConversationTabV1 {
|
|
187
|
-
view: string;
|
|
188
|
-
title: string;
|
|
189
|
-
icon: string;
|
|
190
|
-
}
|
|
191
|
-
/** 🚧 What core's composer is told (C0b): the page's half of writing a line. @experimental */
|
|
192
|
-
export interface ConversationComposerV1 {
|
|
193
|
-
/**
|
|
194
|
-
* The host's last write to the draft: the one it kept, when the session
|
|
195
|
-
* opens; an empty one when an action spent it. The composer owns the
|
|
196
|
-
* draft between writes (and reports it back, `draft`); a new `write`
|
|
197
|
-
* number replaces the field, whatever it holds — the same `write` never
|
|
198
|
-
* does, so a re-posted dossier leaves the person's typing alone.
|
|
199
|
-
*/
|
|
200
|
-
draft: {
|
|
201
|
-
content: string;
|
|
202
|
-
write: number;
|
|
203
|
-
};
|
|
204
|
-
/** Whom the viewer may write as, and whom they are writing as. */
|
|
205
|
-
personas: Array<{
|
|
206
|
-
personaId: number;
|
|
207
|
-
name: string;
|
|
208
|
-
}>;
|
|
209
|
-
personaId: number | null;
|
|
210
|
-
/**
|
|
211
|
-
* 🚧 What the viewer's persona-less lines are called (lair pass R4, the
|
|
212
|
-
* page's `sessionPlayerLabel`): the composer, writing as no persona, says
|
|
213
|
-
* "Write as the Dungeon Master…" (S2). Absent when the genre declares none.
|
|
214
|
-
*/
|
|
215
|
-
playerLabel?: string;
|
|
216
|
-
/** A guest with no persona: the composer offers to add one instead. */
|
|
217
|
-
addPersona: boolean;
|
|
218
|
-
/** A genre with no field (`composer: 'none'`): triggers only. */
|
|
219
|
-
hidden: boolean;
|
|
220
|
-
/**
|
|
221
|
-
* The lanes a line may be written on, `main` first — THIS copy's: the
|
|
222
|
-
* host narrows them per mount (lair re-plan S1), so a Messages widget
|
|
223
|
-
* pinned to one channel is told that channel alone, and the primary log
|
|
224
|
-
* the channels no pinned copy claims. The log shows these channels' rows
|
|
225
|
-
* and nothing else.
|
|
226
|
-
*/
|
|
227
|
-
channels: string[];
|
|
228
|
-
/**
|
|
229
|
-
* 🚧 What each channel is called, by slug, in the viewer's language
|
|
230
|
-
* (`ChannelDecl.label`, lair re-plan R6/S1): the Lair's `sanctum` reads
|
|
231
|
-
* _Sanctum_. A channel absent here is named by its slug, title-cased.
|
|
232
|
-
*/
|
|
233
|
-
channelLabels?: Record<string, string>;
|
|
234
|
-
/** The draft's share of the context window, when counted. */
|
|
235
|
-
usage: {
|
|
236
|
-
total: number;
|
|
237
|
-
limit: number;
|
|
238
|
-
} | null;
|
|
239
|
-
/** The More panel's tabs, and the turn controls' own (`session-controls`). */
|
|
240
|
-
tabs: ConversationTabV1[];
|
|
241
|
-
/** The session's action chips (`session-actions`) have something to show. */
|
|
242
|
-
actions: boolean;
|
|
243
|
-
/** The retrieval notice (`retrieval-notice`) applies to this session. */
|
|
244
|
-
notice: boolean;
|
|
245
|
-
/** The composer venue's overflow and `/` palette rows, and the newest line's values. */
|
|
246
|
-
overflow: unknown[];
|
|
247
|
-
palette: unknown[];
|
|
248
|
-
newest: unknown | null;
|
|
249
|
-
/** Someone is due next: Send takes the quieter look. */
|
|
250
|
-
sendTonal: boolean;
|
|
251
|
-
/**
|
|
252
|
-
* 🚧 The viewer's **tray** (composer attachments §3.3): the files they
|
|
253
|
-
* added to this composer and have not sent yet, in tray order — uploading,
|
|
254
|
-
* ready or refused. The host keeps it; the composer draws the tiles and
|
|
255
|
-
* asks (`attach-files`, `remove-tray-item`). Absent, the host
|
|
256
|
-
* offers no attachments and the composer draws no Attach button.
|
|
257
|
-
*/
|
|
258
|
-
tray?: TrayItemV1[];
|
|
259
|
-
/**
|
|
260
|
-
* 🚧 What this session's reply can read (**attachment readers**, §3.2):
|
|
261
|
-
* per attachment kind whether it may be attached and why not, and per
|
|
262
|
-
* model call what it reads. Null until the host has asked.
|
|
263
|
-
*/
|
|
264
|
-
attachments?: AttachmentReadersV1 | null;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* 🚧 What kind of attachment a file is (composer attachments D5) — an
|
|
268
|
-
* **attachment kind**. Decided from the file's bytes, never its name.
|
|
269
|
-
* @experimental
|
|
270
|
-
*/
|
|
271
|
-
export type AttachmentKindV1 = 'image' | 'text' | 'pdf';
|
|
272
|
-
/**
|
|
273
|
-
* 🚧 One **tray item** as the composer draws it: a file uploaded into the
|
|
274
|
-
* session's composer and not yet sent. ⚠ Not a held import.
|
|
275
|
-
* @experimental
|
|
276
|
-
*/
|
|
277
|
-
export interface TrayItemV1 {
|
|
278
|
-
id: string;
|
|
279
|
-
/** `uploading` (with `progress`), `ready`, or `refused` (with `refusal`). */
|
|
280
|
-
status: 'uploading' | 'ready' | 'refused';
|
|
281
|
-
/** 0–1 while uploading. */
|
|
282
|
-
progress: number;
|
|
283
|
-
/** The sentence a refused tile shows. */
|
|
284
|
-
refusal: string | null;
|
|
285
|
-
filename: string;
|
|
286
|
-
bytes: number;
|
|
287
|
-
/** Null until the server has sniffed it. */
|
|
288
|
-
kind: AttachmentKindV1 | null;
|
|
289
|
-
/** The square thumbnail (`/media/<id>?v=thumb`) of a stored image, else null. */
|
|
290
|
-
thumbSrc: string | null;
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* 🚧 The session's **attachment readers** as the composer reads them (§3.2).
|
|
294
|
-
* @experimental
|
|
295
|
-
*/
|
|
296
|
-
export interface AttachmentReadersV1 {
|
|
297
|
-
/** Per kind: may it be attached (the union over reading calls, D1), and why not. */
|
|
298
|
-
kinds: Record<AttachmentKindV1, {
|
|
299
|
-
allowed: boolean;
|
|
300
|
-
reason?: string;
|
|
301
|
-
}>;
|
|
302
|
-
/**
|
|
303
|
-
* Each **reading call** — a model call of the reply that is handed
|
|
304
|
-
* attachments — with what it reads and what it gets as a placeholder
|
|
305
|
-
* (`[image: cat.png]`, D3). `model` names its model for an administrator
|
|
306
|
-
* only.
|
|
307
|
-
*/
|
|
308
|
-
calls: Array<{
|
|
309
|
-
key: string;
|
|
310
|
-
label: string;
|
|
311
|
-
reads: AttachmentKindV1[];
|
|
312
|
-
placeholderFor: AttachmentKindV1[];
|
|
313
|
-
model?: string;
|
|
314
|
-
}>;
|
|
315
|
-
/** The file picker's filter for every kind that may be attached (`image/png,.md`). */
|
|
316
|
-
accept: string;
|
|
317
|
-
/** Files one message may carry (D6). */
|
|
318
|
-
filesPerMessage: number;
|
|
319
|
-
/** The byte cap per kind (D6), so a file is refused before it uploads. */
|
|
320
|
-
bytesPerKind: Record<AttachmentKindV1, number>;
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* What a line reads as when the dossier names it not. Named, never "Unknown"
|
|
324
|
-
* (ruled 2026-09-26): the SDK's generic name for a line nobody claims.
|
|
325
|
-
* @experimental
|
|
326
|
-
*/
|
|
327
|
-
export declare const NO_LINE: ConversationLineV1;
|
|
328
|
-
//# sourceMappingURL=dossier.d.ts.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 🚧 The conversation **dossier**: what core's conversation widget is told
|
|
3
|
-
* about its session, beyond the
|
|
4
|
-
* envelope's base sections (C0b) — the `session_full.v1` its host projects,
|
|
5
|
-
* core's own widget being granted `session:full`.
|
|
6
|
-
*
|
|
7
|
-
* The page answers here what only the page can: who the viewer controls, who
|
|
8
|
-
* spoke each line and with what face, where scenes and history entries fall,
|
|
9
|
-
* whether older messages remain. The widget judges nothing it is not told,
|
|
10
|
-
* and acts only through its verbs (`invoke`, `request`) — so the same widget
|
|
11
|
-
* runs as a remote in the page's UI worker, where there is no page to ask.
|
|
12
|
-
*
|
|
13
|
-
* A plugin's widget sees it only when it declares the `session:full` scope
|
|
14
|
-
* and an admin grants that permission (`widget:session:full`) at review —
|
|
15
|
-
* never by default; the grant shows the whole conversation as the viewer
|
|
16
|
-
* sees it (the cast, their personas, their unsent draft, the session's
|
|
17
|
-
* state). Provisional: its shape settles with the C7 cutover.
|
|
18
|
-
*/
|
|
19
|
-
import { UNCLAIMED_LINE_NAME } from '@serene-pub/sdk';
|
|
20
|
-
/**
|
|
21
|
-
* What a line reads as when the dossier names it not. Named, never "Unknown"
|
|
22
|
-
* (ruled 2026-09-26): the SDK's generic name for a line nobody claims.
|
|
23
|
-
* @experimental
|
|
24
|
-
*/
|
|
25
|
-
export const NO_LINE = {
|
|
26
|
-
controllable: false,
|
|
27
|
-
speaker: { name: UNCLAIMED_LINE_NAME.en, ref: null, face: null, sprite: null },
|
|
28
|
-
swipes: { show: false, right: false },
|
|
29
|
-
embedding: 'hidden',
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=dossier.js.map
|