@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 Chat's **summarize-scene** (live scenes §13): the shared builder with
|
|
3
|
+
* the Default transcript template, the story on `main` and no asides.
|
|
4
|
+
*/
|
|
5
|
+
import { summarizeScene } from '../../shared/summarize/summarizeScene.js';
|
|
6
|
+
import { CHAT_SUMMARIZE_SCENE_SPEC_ID, GENRE_SUMMARIZE_SCENE_VERSION, } from '../../shared/summarize/sceneIds.js';
|
|
7
|
+
import { chatGenre } from '../../registry/genres.js';
|
|
8
|
+
/** @experimental */
|
|
9
|
+
export const chatSummarizeSceneSpec = () => summarizeScene(CHAT_SUMMARIZE_SCENE_SPEC_ID, {
|
|
10
|
+
version: GENRE_SUMMARIZE_SCENE_VERSION,
|
|
11
|
+
genre: chatGenre,
|
|
12
|
+
channels: { story: 'main' },
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=summarizeScene.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat's turn order: `turnOrderSpec` (`factories/turnOrder.ts`) for Chat.
|
|
3
|
+
*/
|
|
4
|
+
import { type TurnOrderHandle } from '../../factories/turnOrder.js';
|
|
5
|
+
/** @experimental */
|
|
6
|
+
export declare const CHAT_TURN_ORDER_SPEC_ID = "core:spec/chat-turn-order";
|
|
7
|
+
/** Chat's turn order, by value — hand `build()` and `strategyNode` to `swaps` (R26). @experimental */
|
|
8
|
+
export declare const chatTurnOrder: TurnOrderHandle;
|
|
9
|
+
//# sourceMappingURL=turnOrder.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat's turn order: `turnOrderSpec` (`factories/turnOrder.ts`) for Chat.
|
|
3
|
+
*/
|
|
4
|
+
import * as C from '@serene-pub/contracts';
|
|
5
|
+
import { chatGenre } from '../../registry/genres.js';
|
|
6
|
+
import { TURN_ORDER_EVENTS, turnOrderSpec, turnStrategyNode } from '../../factories/turnOrder.js';
|
|
7
|
+
import { once } from '../../factories/once.js';
|
|
8
|
+
/** @experimental */
|
|
9
|
+
export const CHAT_TURN_ORDER_SPEC_ID = 'core:spec/chat-turn-order';
|
|
10
|
+
/** Every core turn strategy but round robin, in the order chat's control lists them. */
|
|
11
|
+
const CHAT_SWAPS = [C.turnUserSplit, C.turnRandom, C.turnScripted, C.turnManual, C.turnNarrator];
|
|
12
|
+
/** Chat's turn order, by value — hand `build()` and `strategyNode` to `swaps` (R26). @experimental */
|
|
13
|
+
export const chatTurnOrder = {
|
|
14
|
+
genre: chatGenre,
|
|
15
|
+
spec: CHAT_TURN_ORDER_SPEC_ID,
|
|
16
|
+
events: TURN_ORDER_EVENTS,
|
|
17
|
+
build: once(() => turnOrderSpec({
|
|
18
|
+
id: CHAT_TURN_ORDER_SPEC_ID,
|
|
19
|
+
genre: chatGenre,
|
|
20
|
+
events: TURN_ORDER_EVENTS,
|
|
21
|
+
strategy: C.turnRoundRobin,
|
|
22
|
+
swaps: CHAT_SWAPS,
|
|
23
|
+
// The optional model path (R41, M4): chat declares `turnMode`.
|
|
24
|
+
advise: C.turnAdvise,
|
|
25
|
+
})),
|
|
26
|
+
strategyNode: turnStrategyNode({ advise: C.turnAdvise }),
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=turnOrder.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* core's Author's note widget (2026-10-02, AN1): reading a stored note into
|
|
4
4
|
* the shape the form edits, whether a draft differs from what is saved, and
|
|
5
5
|
* the line that says what the newest reply did with the note. The widget's
|
|
6
|
-
* Svelte source lives in `components/
|
|
6
|
+
* Svelte source lives in `components/genres/chat/authors-note/` and ships built
|
|
7
7
|
* (`dist/components/authors-note.js`); a host imports only this half, which
|
|
8
8
|
* carries no Svelte runtime.
|
|
9
9
|
*
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The guide's answer pipeline: `answerFormSpec` (`factories/answerForm.ts`),
|
|
3
|
+
* published for the guide genre.
|
|
4
|
+
*/
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare const GUIDE_ANSWER_FORM_SPEC_ID = "core:spec/guide-answer-form";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const answerFormGuideSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
9
|
+
//# sourceMappingURL=answerForm.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The guide's answer pipeline: `answerFormSpec` (`factories/answerForm.ts`),
|
|
3
|
+
* published for the guide genre.
|
|
4
|
+
*/
|
|
5
|
+
import { guideGenre } from '../../registry/genres.js';
|
|
6
|
+
import { answerFormSpec } from '../../factories/answerForm.js';
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GUIDE_ANSWER_FORM_SPEC_ID = 'core:spec/guide-answer-form';
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const answerFormGuideSpec = () => answerFormSpec(GUIDE_ANSWER_FORM_SPEC_ID, guideGenre);
|
|
11
|
+
//# sourceMappingURL=answerForm.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The guide genre's create pipeline — the genre's required member. Its reply,
|
|
3
|
+
* and the notes on both, are `respond.ts`'s.
|
|
4
|
+
*/
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare const GUIDE_CREATE_SPEC_ID = "core:spec/guide-create";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const GUIDE_CREATE_VERSION = "1.1.0";
|
|
9
|
+
/**
|
|
10
|
+
* The guide's create pipeline — the genre's one required member (24 §3).
|
|
11
|
+
*
|
|
12
|
+
* The same two nodes as `chat-create` — which, with no characters to greet
|
|
13
|
+
* with, write nothing — then Serene's declared greeting (`EnvoyDecl.greeting`),
|
|
14
|
+
* read through `core:query/envoy-greeting@1` and interpolated for this
|
|
15
|
+
* session, written on `main` under her name: only when it has text, which it
|
|
16
|
+
* lacks when she is not seated. No model call: a person is waiting on a
|
|
17
|
+
* create, so the welcome is declared, instant and translatable.
|
|
18
|
+
* The genre's declaration — envoys included — rides `meta.genre` on the
|
|
19
|
+
* version row, which is where the host reads "which speakers does this genre
|
|
20
|
+
* bring" from (`listSessionGenres`).
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const createGuideSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
24
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The guide genre's create pipeline — the genre's required member. Its reply,
|
|
3
|
+
* and the notes on both, are `respond.ts`'s.
|
|
4
|
+
*/
|
|
5
|
+
import { compile, slot, spec, sessionEvents } from '@serene-pub/sdk';
|
|
6
|
+
import * as C from '@serene-pub/contracts';
|
|
7
|
+
import { GUIDE_MASCOT_KEY, guideGenre } from '../../registry/genres.js';
|
|
8
|
+
/** Where Serene's greeting lands: the channel her declaration names. */
|
|
9
|
+
const SERENE_GREETING_CHANNEL = guideGenre.envoys?.find((e) => e.key === GUIDE_MASCOT_KEY)?.greeting?.channel ?? 'main';
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const GUIDE_CREATE_SPEC_ID = 'core:spec/guide-create';
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const GUIDE_CREATE_VERSION = '1.1.0';
|
|
14
|
+
/**
|
|
15
|
+
* The guide's create pipeline — the genre's one required member (24 §3).
|
|
16
|
+
*
|
|
17
|
+
* The same two nodes as `chat-create` — which, with no characters to greet
|
|
18
|
+
* with, write nothing — then Serene's declared greeting (`EnvoyDecl.greeting`),
|
|
19
|
+
* read through `core:query/envoy-greeting@1` and interpolated for this
|
|
20
|
+
* session, written on `main` under her name: only when it has text, which it
|
|
21
|
+
* lacks when she is not seated. No model call: a person is waiting on a
|
|
22
|
+
* create, so the welcome is declared, instant and translatable.
|
|
23
|
+
* The genre's declaration — envoys included — rides `meta.genre` on the
|
|
24
|
+
* version row, which is where the host reads "which speakers does this genre
|
|
25
|
+
* bring" from (`listSessionGenres`).
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export const createGuideSpec = () => compile(spec(GUIDE_CREATE_SPEC_ID, {
|
|
29
|
+
version: GUIDE_CREATE_VERSION,
|
|
30
|
+
taxonomy: { role: 'create' },
|
|
31
|
+
genre: {
|
|
32
|
+
name: guideGenre.name,
|
|
33
|
+
family: guideGenre.family,
|
|
34
|
+
description: guideGenre.description,
|
|
35
|
+
shape: guideGenre.shape,
|
|
36
|
+
events: guideGenre.events,
|
|
37
|
+
envoys: guideGenre.envoys,
|
|
38
|
+
},
|
|
39
|
+
})
|
|
40
|
+
.inlet('input', C.sessionCreated.v1(), {
|
|
41
|
+
genre: guideGenre,
|
|
42
|
+
event: sessionEvents.sessionCreated,
|
|
43
|
+
})
|
|
44
|
+
.query('collect', ($) => C.sessionGreetings.v1({ scope: $.input.sessionScope }))
|
|
45
|
+
.outlet('seed', ($) => C.seedGreetings.v1({
|
|
46
|
+
greetings: $.collect.greetings,
|
|
47
|
+
channel: guideGenre.shape?.greeting?.channel ?? 'main',
|
|
48
|
+
}))
|
|
49
|
+
/** Serene's greeting, interpolated — empty when she is not seated. */
|
|
50
|
+
.query('welcome', ($) => C.envoyGreeting.v1({ scope: $.input.sessionScope, params: slot.params() }))
|
|
51
|
+
.junction('greet', { on: ($) => $.welcome.text }, (g) => g.when('greets', { truthy: true }, (c) => c.outlet('write', ($) => C.createMessage.v1({
|
|
52
|
+
text: $.welcome.text,
|
|
53
|
+
channel: SERENE_GREETING_CHANNEL,
|
|
54
|
+
speaker: `envoy:${GUIDE_MASCOT_KEY}`,
|
|
55
|
+
}))))
|
|
56
|
+
.preset('guide', { label: 'Guide', default: true }, (p) => p.params('welcome', { envoy: GUIDE_MASCOT_KEY }))
|
|
57
|
+
.build());
|
|
58
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The guide genre's pipelines, one per file: its create pipeline and reply
|
|
3
|
+
* (`create.ts`, `respond.ts`), and its answer form and turn order.
|
|
4
|
+
*/
|
|
5
|
+
export * from './create.js';
|
|
6
|
+
export * from './respond.js';
|
|
7
|
+
export * from './answerForm.js';
|
|
8
|
+
export * from './turnOrder.js';
|
|
9
|
+
export * from './summarizeScene.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The guide genre's pipelines, one per file: its create pipeline and reply
|
|
3
|
+
* (`create.ts`, `respond.ts`), and its answer form and turn order.
|
|
4
|
+
*/
|
|
5
|
+
export * from './create.js';
|
|
6
|
+
export * from './respond.js';
|
|
7
|
+
export * from './answerForm.js';
|
|
8
|
+
export * from './turnOrder.js';
|
|
9
|
+
export * from './summarizeScene.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
/** @internal */
|
|
2
|
-
export declare const CREATE_GUIDE_SPEC_ID = "core:spec/create-guide";
|
|
3
|
-
/** @internal */
|
|
4
|
-
export declare const CREATE_GUIDE_VERSION = "1.1.0";
|
|
5
|
-
/**
|
|
6
|
-
* The guide's create pipeline — the genre's one required member (24 §3).
|
|
7
|
-
*
|
|
8
|
-
* The same two nodes as `create-chat` — which, with no characters to greet
|
|
9
|
-
* with, write nothing — then Serene's declared greeting (`EnvoyDecl.greeting`),
|
|
10
|
-
* read through `core:query/envoy-greeting@1` and interpolated for this
|
|
11
|
-
* session, written on `main` under her name: only when it has text, which it
|
|
12
|
-
* lacks when she is not seated. No model call: a person is waiting on a
|
|
13
|
-
* create, so the welcome is declared, instant and translatable.
|
|
14
|
-
* The genre's declaration — envoys included — rides `meta.genre` on the
|
|
15
|
-
* version row, which is where the host reads "which speakers does this genre
|
|
16
|
-
* bring" from (`listSessionGenres`).
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
export declare const createGuideSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
20
|
-
/** @internal */
|
|
21
2
|
export declare const GUIDE_RESPOND_SPEC_ID = "core:spec/guide-respond";
|
|
22
3
|
/** @internal */
|
|
23
4
|
export declare const GUIDE_RESPOND_VERSION = "1.2.0";
|
|
@@ -47,4 +28,4 @@ export declare const GUIDE_RESPOND_VERSION = "1.2.0";
|
|
|
47
28
|
export declare const GUIDE_RESPOND_TEMPLATE = "{{#systemBlock}}\n{{#if instructions}}\n{{{instructions}}}\n{{/if}}\n\n{{#if characters}}\n{{{characters}}}\n{{/if}}\n\n{{#if personas}}\n{{{personas}}}\n{{/if}}\n\n{{#if docsExcerpts}}\nDocumentation excerpts retrieved for the person's latest question. These are the only Serene Pub documentation you have. Each key is the page and section; each value starts with the page's path.\n{{{docsExcerpts}}}\nAnswer only from these excerpts{{#if worldLore}} and the lorebook entries below{{/if}}, and end with the path of the page you used, copied exactly. If they do not answer the question, say \"I couldn't find that in the docs.\"\n{{else if worldLore}}\nNo documentation excerpts matched the person's latest question. Answer only from the lorebook entries below; if they do not answer it either, say \"I couldn't find that in the docs.\" and suggest rephrasing the question or browsing /docs. Do not answer from memory.\n{{else}}\nNo documentation excerpts matched the person's latest question. You have no documentation for it: say \"I couldn't find that in the docs.\" and suggest rephrasing the question or browsing /docs. Do not answer from memory.\n{{/if}}\n{{#if worldLore}}\n\nFrom the lorebook attached to this session: reference notes the person keeps, retrieved for their latest question. Each key is the entry's name. When you answer from one, say which entry you used.\n{{{worldLore}}}\n{{/if}}\n{{/systemBlock}}\n\n{{#each sessionMessages as |sessionMessage msgIndex|}}\n{{#each (lookup ../injectionsByIndex msgIndex)}}\n{{#if (eq this.role \"assistant\")}}\n{{#assistantBlock}}\n{{{this.content}}}\n{{/assistantBlock}}\n{{else if (eq this.role \"user\")}}\n{{#userBlock}}\n{{{this.content}}}\n{{/userBlock}}\n{{else}}\n{{#systemBlock}}\n{{{this.content}}}\n{{/systemBlock}}\n{{/if}}\n{{/each}}\n{{#with ../postHistory}}\n{{#if (and (eq msgIndex targetIndex) hasContent)}}\n{{#systemBlock}}\n{{#if instructions}}\nResponse reminder:\n```text\n{{{instructions}}}\n```\n{{/if}}\n{{#if charInstructions}}\nCharacter reminder:\n```text\n{{{charInstructions}}}\n```\n{{/if}}\n{{/systemBlock}}\n{{/if}}\n{{/with}}\n{{#if (eq role \"assistant\")}}\n{{#assistantBlock}}\n{{{name}}}: {{{message}}}{{{attachments}}}\n{{/assistantBlock}}\n{{/if}}\n{{#if (eq role \"user\")}}\n{{#userBlock}}\n{{{name}}}: {{{message}}}{{{attachments}}}\n{{/userBlock}}\n{{/if}}\n{{/each}}";
|
|
48
29
|
/** The guide's reply: the envoy answers, grounded in the docs. @internal */
|
|
49
30
|
export declare const guideRespondSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
50
|
-
//# sourceMappingURL=
|
|
31
|
+
//# sourceMappingURL=respond.d.ts.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The **guide** genre's two pipelines (plans/29 R-18; 09-B B10; built
|
|
3
3
|
* 2026-09-16 as U5g): the create pipeline that is the genre's required
|
|
4
|
-
* member, and the reply that answers as the genre's envoy
|
|
4
|
+
* member (`create.ts`), and the reply that answers as the genre's envoy (this
|
|
5
|
+
* file).
|
|
5
6
|
*
|
|
6
7
|
* ## What `guide-respond` is
|
|
7
8
|
*
|
|
8
|
-
* `core:spec/respond` with the lore machinery replaced by one mechanism. A
|
|
9
|
+
* `core:spec/chat-respond` with the lore machinery replaced by one mechanism. A
|
|
9
10
|
* reply here is inlet → placeholder → (history, cast, docs) → speaker →
|
|
10
11
|
* budget → rank → context → lines → assemble → generate → save: the same
|
|
11
12
|
* spine, the same nodes, the same story string — so the parity of a reply
|
|
@@ -43,63 +44,13 @@
|
|
|
43
44
|
* capped at one call per turn the way Chat's reply is.
|
|
44
45
|
*/
|
|
45
46
|
import { compile, handlebars, slot, spec, sessionEvents } from '@serene-pub/sdk';
|
|
47
|
+
import { CORE_LOADOUT } from '../../loadouts.js';
|
|
46
48
|
import * as C from '@serene-pub/contracts';
|
|
47
|
-
import {
|
|
48
|
-
import { GUIDE_MASCOT_KEY, guideGenre, POST_HISTORY_TOKEN_TRIGGER } from './genres.js';
|
|
49
|
-
/** Where Serene's greeting lands: the channel her declaration names. */
|
|
50
|
-
const SERENE_GREETING_CHANNEL = guideGenre.envoys?.find((e) => e.key === GUIDE_MASCOT_KEY)?.greeting?.channel ?? 'main';
|
|
51
|
-
/** @internal */
|
|
52
|
-
export const CREATE_GUIDE_SPEC_ID = 'core:spec/create-guide';
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const CREATE_GUIDE_VERSION = '1.1.0';
|
|
55
|
-
/**
|
|
56
|
-
* The guide's create pipeline — the genre's one required member (24 §3).
|
|
57
|
-
*
|
|
58
|
-
* The same two nodes as `create-chat` — which, with no characters to greet
|
|
59
|
-
* with, write nothing — then Serene's declared greeting (`EnvoyDecl.greeting`),
|
|
60
|
-
* read through `core:query/envoy-greeting@1` and interpolated for this
|
|
61
|
-
* session, written on `main` under her name: only when it has text, which it
|
|
62
|
-
* lacks when she is not seated. No model call: a person is waiting on a
|
|
63
|
-
* create, so the welcome is declared, instant and translatable.
|
|
64
|
-
* The genre's declaration — envoys included — rides `meta.genre` on the
|
|
65
|
-
* version row, which is where the host reads "which speakers does this genre
|
|
66
|
-
* bring" from (`listSessionGenres`).
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
export const createGuideSpec = () => compile(spec(CREATE_GUIDE_SPEC_ID, {
|
|
70
|
-
version: CREATE_GUIDE_VERSION,
|
|
71
|
-
taxonomy: { role: 'create' },
|
|
72
|
-
genre: {
|
|
73
|
-
name: guideGenre.name,
|
|
74
|
-
family: guideGenre.family,
|
|
75
|
-
description: guideGenre.description,
|
|
76
|
-
shape: guideGenre.shape,
|
|
77
|
-
events: guideGenre.events,
|
|
78
|
-
envoys: guideGenre.envoys,
|
|
79
|
-
},
|
|
80
|
-
})
|
|
81
|
-
.inlet('input', C.sessionCreated.v1(), {
|
|
82
|
-
genre: guideGenre,
|
|
83
|
-
event: sessionEvents.sessionCreated,
|
|
84
|
-
})
|
|
85
|
-
.query('collect', ($) => C.sessionGreetings.v1({ scope: $.input.sessionScope }))
|
|
86
|
-
.outlet('seed', ($) => C.seedGreetings.v1({
|
|
87
|
-
greetings: $.collect.greetings,
|
|
88
|
-
channel: guideGenre.shape?.greeting?.channel ?? 'main',
|
|
89
|
-
}))
|
|
90
|
-
/** Serene's greeting, interpolated — empty when she is not seated. */
|
|
91
|
-
.query('welcome', ($) => C.envoyGreeting.v1({ scope: $.input.sessionScope, params: slot.params() }))
|
|
92
|
-
.junction('greet', { on: ($) => $.welcome.text }, (g) => g.when('greets', { truthy: true }, (c) => c.outlet('write', ($) => C.createMessage.v1({
|
|
93
|
-
text: $.welcome.text,
|
|
94
|
-
channel: SERENE_GREETING_CHANNEL,
|
|
95
|
-
speaker: `envoy:${GUIDE_MASCOT_KEY}`,
|
|
96
|
-
}))))
|
|
97
|
-
.preset('guide', { label: 'Guide', default: true }, (p) => p.params('welcome', { envoy: GUIDE_MASCOT_KEY }))
|
|
98
|
-
.build());
|
|
49
|
+
import { GUIDE_MASCOT_KEY, guideGenre, POST_HISTORY_TOKEN_TRIGGER } from '../../registry/genres.js';
|
|
99
50
|
/** @internal */
|
|
100
51
|
export const GUIDE_RESPOND_SPEC_ID = 'core:spec/guide-respond';
|
|
101
52
|
// 1.1.0: the `speaker` node moved to `core:spec/turn-order` — see
|
|
102
|
-
// `
|
|
53
|
+
// `CHAT_RESPOND_VERSION`, same change, same reason.
|
|
103
54
|
// 1.2.0 (2026-09-27): the guide's own template, as the spec's default preset
|
|
104
55
|
// — the docs arrive in their declared `docsExcerpts` band, framed as the only
|
|
105
56
|
// source of truth, with an explicit line for a turn nothing matched. The
|
|
@@ -112,6 +63,10 @@ export const GUIDE_RESPOND_SPEC_ID = 'core:spec/guide-respond';
|
|
|
112
63
|
// reads and the history read takes its `budget`: about twice the window's
|
|
113
64
|
// worth of the newest rows (never more than 2000) instead of the newest 100,
|
|
114
65
|
// so the transcript fit decides where the conversation starts.
|
|
66
|
+
// ⚠ Edited in place (2026-10-05, sprites in-pipeline) — content-addressed;
|
|
67
|
+
// `specHashes.test.ts` records the move. The sprite step is written out after
|
|
68
|
+
// `save` (`spritePick`, `spriteShow`) where the retired `withSpriteTail`
|
|
69
|
+
// wrapper appended nodes this source never named.
|
|
115
70
|
/** @internal */
|
|
116
71
|
export const GUIDE_RESPOND_VERSION = '1.2.0';
|
|
117
72
|
/**
|
|
@@ -212,9 +167,7 @@ Character reminder:
|
|
|
212
167
|
{{/if}}
|
|
213
168
|
{{/each}}`;
|
|
214
169
|
/** The guide's reply: the envoy answers, grounded in the docs. @internal */
|
|
215
|
-
export const guideRespondSpec = () => compile(
|
|
216
|
-
// The sprite tail (DESIGN-sprites §5): after `save`, choose the line's face.
|
|
217
|
-
withSpriteTail(spec(GUIDE_RESPOND_SPEC_ID, {
|
|
170
|
+
export const guideRespondSpec = () => compile(spec(GUIDE_RESPOND_SPEC_ID, {
|
|
218
171
|
version: GUIDE_RESPOND_VERSION,
|
|
219
172
|
taxonomy: { role: 'primary' },
|
|
220
173
|
})
|
|
@@ -374,13 +327,31 @@ withSpriteTail(spec(GUIDE_RESPOND_SPEC_ID, {
|
|
|
374
327
|
target: $.placeholder.messageId,
|
|
375
328
|
text: $.generate.text,
|
|
376
329
|
reasoning: $.generate.reasoning,
|
|
377
|
-
}))
|
|
330
|
+
}))
|
|
331
|
+
/**
|
|
332
|
+
* The line's face (DESIGN-sprites §5) — see `respond`. The Guide
|
|
333
|
+
* seats no characters and its mascot is an envoy with no card, so
|
|
334
|
+
* today this picks nothing: the step is written in like every reply
|
|
335
|
+
* spec's, and costs nothing until a speaker has sprites.
|
|
336
|
+
*/
|
|
337
|
+
.oracle('spritePick', ($) => C.pickSprite.v1({
|
|
338
|
+
text: $.generate.text,
|
|
339
|
+
speaker: $.input.speaker,
|
|
340
|
+
scope: $.input.sessionScope,
|
|
341
|
+
params: slot.params(),
|
|
342
|
+
}), { expose: { session: true } })
|
|
343
|
+
.outlet('spriteShow', ($) => C.showSprite.v1({
|
|
344
|
+
target: $.save.messageId,
|
|
345
|
+
pick: $.spritePick.main,
|
|
346
|
+
source: 'picker',
|
|
347
|
+
}))
|
|
378
348
|
/** The guide's own template (1.2.0) — see `GUIDE_RESPOND_TEMPLATE`. */
|
|
379
349
|
.preset('guide', { label: 'Guide', default: true }, (p) => p
|
|
380
350
|
.template('prompt', {
|
|
381
351
|
source: GUIDE_RESPOND_TEMPLATE,
|
|
382
352
|
engine: handlebars.id,
|
|
383
353
|
})
|
|
384
|
-
.params('prompt', { postHistoryTokenTrigger: POST_HISTORY_TOKEN_TRIGGER })
|
|
354
|
+
.params('prompt', { postHistoryTokenTrigger: POST_HISTORY_TOKEN_TRIGGER })
|
|
355
|
+
.loadout('generate', slot.loadout(CORE_LOADOUT.reply)))
|
|
385
356
|
.build());
|
|
386
|
-
//# sourceMappingURL=
|
|
357
|
+
//# sourceMappingURL=respond.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 Guide's **summarize-scene** (live scenes §13): the shared builder with
|
|
3
|
+
* the Default transcript template, the story on `main` and no asides.
|
|
4
|
+
*/
|
|
5
|
+
/** @experimental */
|
|
6
|
+
export declare const guideSummarizeSceneSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
7
|
+
//# sourceMappingURL=summarizeScene.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 Guide's **summarize-scene** (live scenes §13): the shared builder with
|
|
3
|
+
* the Default transcript template, the story on `main` and no asides.
|
|
4
|
+
*/
|
|
5
|
+
import { summarizeScene } from '../../shared/summarize/summarizeScene.js';
|
|
6
|
+
import { GUIDE_SUMMARIZE_SCENE_SPEC_ID, GENRE_SUMMARIZE_SCENE_VERSION, } from '../../shared/summarize/sceneIds.js';
|
|
7
|
+
import { guideGenre } from '../../registry/genres.js';
|
|
8
|
+
/** @experimental */
|
|
9
|
+
export const guideSummarizeSceneSpec = () => summarizeScene(GUIDE_SUMMARIZE_SCENE_SPEC_ID, {
|
|
10
|
+
version: GENRE_SUMMARIZE_SCENE_VERSION,
|
|
11
|
+
genre: guideGenre,
|
|
12
|
+
channels: { story: 'main' },
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=summarizeScene.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The guide's turn order: `turnOrderSpec` (`factories/turnOrder.ts`) for the
|
|
3
|
+
* guide genre.
|
|
4
|
+
*/
|
|
5
|
+
import { type TurnOrderHandle } from '../../factories/turnOrder.js';
|
|
6
|
+
/** @experimental */
|
|
7
|
+
export declare const GUIDE_TURN_ORDER_SPEC_ID = "core:spec/guide-turn-order";
|
|
8
|
+
/** Guide's turn order, by value — hand `build()` and `strategyNode` to `swaps` (R26). @experimental */
|
|
9
|
+
export declare const guideTurnOrder: TurnOrderHandle;
|
|
10
|
+
//# sourceMappingURL=turnOrder.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The guide's turn order: `turnOrderSpec` (`factories/turnOrder.ts`) for the
|
|
3
|
+
* guide genre.
|
|
4
|
+
*/
|
|
5
|
+
import * as C from '@serene-pub/contracts';
|
|
6
|
+
import { guideGenre } from '../../registry/genres.js';
|
|
7
|
+
import { TURN_ORDER_EVENTS, turnOrderSpec, turnStrategyNode } from '../../factories/turnOrder.js';
|
|
8
|
+
import { once } from '../../factories/once.js';
|
|
9
|
+
/** @experimental */
|
|
10
|
+
export const GUIDE_TURN_ORDER_SPEC_ID = 'core:spec/guide-turn-order';
|
|
11
|
+
/** Guide: its one in-turn envoy is the whole order. */
|
|
12
|
+
const ENVOY_ONLY = { characters: 'none', envoys: 'in-turn' };
|
|
13
|
+
/** Guide's turn order, by value — hand `build()` and `strategyNode` to `swaps` (R26). @experimental */
|
|
14
|
+
export const guideTurnOrder = {
|
|
15
|
+
genre: guideGenre,
|
|
16
|
+
spec: GUIDE_TURN_ORDER_SPEC_ID,
|
|
17
|
+
events: TURN_ORDER_EVENTS,
|
|
18
|
+
build: once(() => turnOrderSpec({
|
|
19
|
+
id: GUIDE_TURN_ORDER_SPEC_ID,
|
|
20
|
+
genre: guideGenre,
|
|
21
|
+
events: TURN_ORDER_EVENTS,
|
|
22
|
+
strategy: C.turnRoundRobin,
|
|
23
|
+
pool: ENVOY_ONLY,
|
|
24
|
+
})),
|
|
25
|
+
strategyNode: turnStrategyNode({}),
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=turnOrder.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TurnOrderHandle } from '../factories/turnOrder.js';
|
|
2
|
+
export * from './chat/index.js';
|
|
3
|
+
export * from './guide/index.js';
|
|
4
|
+
export * from './adventure/index.js';
|
|
5
|
+
export * from './lair/index.js';
|
|
6
|
+
/** Every answer pipeline core ships, by the genre it serves. @internal */
|
|
7
|
+
export declare const ANSWER_FORM_SPEC_IDS: Readonly<Record<string, string>>;
|
|
8
|
+
/**
|
|
9
|
+
* Core's four (§4.14's table): which genre gets which spec, on which events —
|
|
10
|
+
* what the presets bind and what `CORE_SPECS` publishes.
|
|
11
|
+
* @experimental
|
|
12
|
+
*/
|
|
13
|
+
export declare const TURN_ORDER_BY_GENRE: ReadonlyArray<TurnOrderHandle>;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core's four genres, a folder each (`chat`, `adventure`, `guide`, `lair`):
|
|
3
|
+
* every pipeline a genre is locked to, one per file, and any widget only that
|
|
4
|
+
* genre offers. What more than one genre uses lives in `../shared`; the
|
|
5
|
+
* builders a genre calls (answer form, turn order) in `../factories`; the
|
|
6
|
+
* genres' declarations themselves in `../registry`.
|
|
7
|
+
*
|
|
8
|
+
* Below, the two lists that span the four.
|
|
9
|
+
*/
|
|
10
|
+
import { adventureGenre, chatGenre, guideGenre, lairGenre } from '../registry/genres.js';
|
|
11
|
+
import { CHAT_ANSWER_FORM_SPEC_ID } from './chat/answerForm.js';
|
|
12
|
+
import { ADVENTURE_ANSWER_FORM_SPEC_ID } from './adventure/answerForm.js';
|
|
13
|
+
import { GUIDE_ANSWER_FORM_SPEC_ID } from './guide/answerForm.js';
|
|
14
|
+
import { LAIR_ANSWER_FORM_SPEC_ID } from './lair/answerForm.js';
|
|
15
|
+
import { chatTurnOrder } from './chat/turnOrder.js';
|
|
16
|
+
import { guideTurnOrder } from './guide/turnOrder.js';
|
|
17
|
+
import { adventureTurnOrder } from './adventure/turnOrder.js';
|
|
18
|
+
import { lairTurnOrder } from './lair/turnOrder.js';
|
|
19
|
+
export * from './chat/index.js';
|
|
20
|
+
export * from './guide/index.js';
|
|
21
|
+
export * from './adventure/index.js';
|
|
22
|
+
export * from './lair/index.js';
|
|
23
|
+
/** Every answer pipeline core ships, by the genre it serves. @internal */
|
|
24
|
+
export const ANSWER_FORM_SPEC_IDS = Object.freeze({
|
|
25
|
+
[chatGenre.id]: CHAT_ANSWER_FORM_SPEC_ID,
|
|
26
|
+
[adventureGenre.id]: ADVENTURE_ANSWER_FORM_SPEC_ID,
|
|
27
|
+
[guideGenre.id]: GUIDE_ANSWER_FORM_SPEC_ID,
|
|
28
|
+
[lairGenre.id]: LAIR_ANSWER_FORM_SPEC_ID,
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Core's four (§4.14's table): which genre gets which spec, on which events —
|
|
32
|
+
* what the presets bind and what `CORE_SPECS` publishes.
|
|
33
|
+
* @experimental
|
|
34
|
+
*/
|
|
35
|
+
export const TURN_ORDER_BY_GENRE = [
|
|
36
|
+
chatTurnOrder,
|
|
37
|
+
guideTurnOrder,
|
|
38
|
+
adventureTurnOrder,
|
|
39
|
+
lairTurnOrder,
|
|
40
|
+
];
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @experimental */
|
|
2
|
+
export declare const LAIR_ADVANCE_TIME_SPEC_ID = "core:spec/lair-advance-time";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare const LAIR_ADVANCE_TIME_VERSION = "1.0.0";
|
|
5
|
+
/** Move the story clock by an amount the person picks. @experimental */
|
|
6
|
+
export declare const lairAdvanceTimeSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
7
|
+
//# sourceMappingURL=advanceTime.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 The Lair's **Time passes…** — `core:spec/lair-advance-time` (live scenes
|
|
3
|
+
* §6, 2026-10-13). The graph is `shared/timePasses.ts`, shared with Chat's.
|
|
4
|
+
*/
|
|
5
|
+
import { lairGenre } from '../../registry/genres.js';
|
|
6
|
+
import { timePassesGraph } from '../../shared/timePasses.js';
|
|
7
|
+
/** @experimental */
|
|
8
|
+
export const LAIR_ADVANCE_TIME_SPEC_ID = 'core:spec/lair-advance-time';
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const LAIR_ADVANCE_TIME_VERSION = '1.0.0';
|
|
11
|
+
/** Move the story clock by an amount the person picks. @experimental */
|
|
12
|
+
export const lairAdvanceTimeSpec = () => timePassesGraph({
|
|
13
|
+
id: LAIR_ADVANCE_TIME_SPEC_ID,
|
|
14
|
+
version: LAIR_ADVANCE_TIME_VERSION,
|
|
15
|
+
genre: lairGenre,
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=advanceTime.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's answer pipeline: `answerFormSpec` (`factories/answerForm.ts`),
|
|
3
|
+
* published for the Lair.
|
|
4
|
+
*/
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare const LAIR_ANSWER_FORM_SPEC_ID = "core:spec/lair-answer-form";
|
|
7
|
+
/**
|
|
8
|
+
* Lair's, on the same terms as the other three (one graph, published once per
|
|
9
|
+
* shipped genre because a preset binds a spec whose inlet lock names its
|
|
10
|
+
* genre). Its forms are addressed to the **owner**, which is a person, so this
|
|
11
|
+
* pipeline is what waits for the day a Lair session seats an AI in a seat a
|
|
12
|
+
* form is put to — core records `form-addressed` only when the resolver says
|
|
13
|
+
* the AI portrays the addressee, and `owner` never resolves that way.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare const answerFormLairSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
17
|
+
//# sourceMappingURL=answerForm.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's answer pipeline: `answerFormSpec` (`factories/answerForm.ts`),
|
|
3
|
+
* published for the Lair.
|
|
4
|
+
*/
|
|
5
|
+
import { lairGenre } from '../../registry/genres.js';
|
|
6
|
+
import { answerFormSpec } from '../../factories/answerForm.js';
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const LAIR_ANSWER_FORM_SPEC_ID = 'core:spec/lair-answer-form';
|
|
9
|
+
/**
|
|
10
|
+
* Lair's, on the same terms as the other three (one graph, published once per
|
|
11
|
+
* shipped genre because a preset binds a spec whose inlet lock names its
|
|
12
|
+
* genre). Its forms are addressed to the **owner**, which is a person, so this
|
|
13
|
+
* pipeline is what waits for the day a Lair session seats an AI in a seat a
|
|
14
|
+
* form is put to — core records `form-addressed` only when the resolver says
|
|
15
|
+
* the AI portrays the addressee, and `owner` never resolves that way.
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export const answerFormLairSpec = () => answerFormSpec(LAIR_ANSWER_FORM_SPEC_ID, lairGenre);
|
|
19
|
+
//# sourceMappingURL=answerForm.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's **Build room** action. The genre's actions are introduced in
|
|
3
|
+
* `index.ts`.
|
|
4
|
+
*/
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare const LAIR_BUILD_ROOM_SPEC_ID = "core:spec/lair-build-room";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const LAIR_BUILD_ROOM_VERSION = "1.0.0";
|
|
9
|
+
/**
|
|
10
|
+
* The layout a drafted room's body takes — its `Exits:` line among it — and
|
|
11
|
+
* why that line is still prose beside the graph.
|
|
12
|
+
*
|
|
13
|
+
* **The ways between rooms are relationships now** (places plan, 2026-09-29):
|
|
14
|
+
* one `narrative_relationships` row per way, read both ways when it has a
|
|
15
|
+
* reverse wording, drawn on the Places lens or in a place's own Links, and
|
|
16
|
+
* written by a pipeline through `core:outlet/link-lore-entries@1`. The Lair's
|
|
17
|
+
* rooms listing asks for them (`withLinks`), so `{{locationEntry}}` says a
|
|
18
|
+
* room's ways out under its body as "From here:" — that, not this line, is
|
|
19
|
+
* what the planner reads the ways on from. *Answer the door* links the room it
|
|
20
|
+
* writes to the room the party stand in (B6).
|
|
21
|
+
*
|
|
22
|
+
* ⚠ **The drafted `Exits:` line stays** (plan §11; how the map should grow is
|
|
23
|
+
* the owner's open Q4). A draft names ways out to rooms that may not exist
|
|
24
|
+
* yet, and nothing in the bound catalogue turns a line of prose into a list
|
|
25
|
+
* of names; parsing it at write time, with stub rooms for the names nothing
|
|
26
|
+
* answers, would change what a knock means. So the line is the room's own
|
|
27
|
+
* words — a reader still reads it, and an older room has only it — and the
|
|
28
|
+
* master turns it into links by hand, or with the place editor's *Read links
|
|
29
|
+
* from the Exits line* (B7). It stays a fixed line so a parser can take it
|
|
30
|
+
* apart.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare const LAIR_ROOM_CONTENT_SHAPE: string;
|
|
34
|
+
/**
|
|
35
|
+
* **Build room**: the master writes a room into the dungeon.
|
|
36
|
+
*
|
|
37
|
+
* The collected text (R3) is the room's **name** — the one thing a person always
|
|
38
|
+
* knows when they press this — and the model writes the body against the lore,
|
|
39
|
+
* the party's position and the fixed layout above. The name reaches the draft
|
|
40
|
+
* as `{{turnDirection}}`, and every room the dungeon already has as
|
|
41
|
+
* `{{knownLocations}}` (the rooms listing, plan A28) — the prompt's "name only
|
|
42
|
+
* rooms this dungeon already has" with the rooms in front of it. The world
|
|
43
|
+
* lore it reads carries no private entries. The write then parks at the
|
|
44
|
+
* review gate: `core:outlet/create-lore-entry@1` declares
|
|
45
|
+
* `review: { fields: ['name', 'content'] }`, and the preset below turns the
|
|
46
|
+
* gate ON — without that line `resolvePosition` defaults an undeclared position
|
|
47
|
+
* to `off` and this docblock's promise would be false, which it was until
|
|
48
|
+
* 2026-09-17. The gate IS the Build room form, with the name and the whole body
|
|
49
|
+
* editable before anything lands.
|
|
50
|
+
*
|
|
51
|
+
* **The entry is a location** (L3, contracts batch 2, 2026-09-17): the preset
|
|
52
|
+
* sets `entryType: 'core:entry/location'`, so a room files as a place rather
|
|
53
|
+
* than as world lore whose content happens to be laid out, and "which rows are
|
|
54
|
+
* the map" becomes a question a reader can ask. It is written with no links:
|
|
55
|
+
* a room built ahead of the party stands nowhere yet, and its drafted `Exits:`
|
|
56
|
+
* line is prose the master links by hand — see `LAIR_ROOM_CONTENT_SHAPE`.
|
|
57
|
+
*
|
|
58
|
+
* ⚠ **`effects: 'world'`** (R-15 *The line*): the result is lorebook data, so
|
|
59
|
+
* this action is the owner's, lives in the composer, and no message block may
|
|
60
|
+
* name it. That last rule is why the knock's form cannot save a room itself.
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
export declare const lairBuildRoomSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
64
|
+
//# sourceMappingURL=buildRoom.d.ts.map
|