@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,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's **Whisper** action. The genre's actions are introduced in
|
|
3
|
+
* `index.ts`.
|
|
4
|
+
*/
|
|
5
|
+
import { compile, slot, spec, sessionEvents } from '@serene-pub/sdk';
|
|
6
|
+
import * as C from '@serene-pub/contracts';
|
|
7
|
+
import { lairGenre } from '../../registry/genres.js';
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const LAIR_WHISPER_SPEC_ID = 'core:spec/lair-whisper';
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const LAIR_WHISPER_VERSION = '1.0.0';
|
|
12
|
+
/**
|
|
13
|
+
* **Whisper**: a private instruction to the delvers the master picks, which
|
|
14
|
+
* writes no message (lair re-plan R10, owner ruling 5, 2026-09-28).
|
|
15
|
+
*
|
|
16
|
+
* The press collects **who hears it** (`collects.recipients`, the session's
|
|
17
|
+
* enabled cast, validated by the host) and **what it says**
|
|
18
|
+
* (`collects.text`), and the run writes that line on
|
|
19
|
+
* `core:slot/whisper@1` of each recipient — `resolve-state-changes@1`'s
|
|
20
|
+
* `owners` port makes the one change once per recipient. **Pure:** no model
|
|
21
|
+
* call. The model step that read a name off the typed line ("Verity: hold
|
|
22
|
+
* the line") and its "Lair whisper" prompt row are retired: the modal asks
|
|
23
|
+
* who, so nothing has to guess.
|
|
24
|
+
*
|
|
25
|
+
* **Heard by the recipients alone** (earshot, lair pass R1): the slot
|
|
26
|
+
* declares `earshot: 'holder'`, so each recipient's own voice reads it and no
|
|
27
|
+
* other prompt does — not another delver's, and none of the Castellan's
|
|
28
|
+
* (planner, keeper, narration, Sanctum talk). A whispered delver acts on it
|
|
29
|
+
* when they next speak; **Pick who speaks** gives them the floor now.
|
|
30
|
+
*
|
|
31
|
+
* ⚠ One standing note per delver, not a queue: a slot holds one value, so a
|
|
32
|
+
* new whisper REPLACES a recipient's old one, and a delver it does not name
|
|
33
|
+
* keeps theirs. The modal shows each delver's current whisper
|
|
34
|
+
* (`recipients.overwrites`), so the overwrite is visible before it happens.
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export const lairWhisperSpec = () => compile(spec(LAIR_WHISPER_SPEC_ID, {
|
|
38
|
+
version: LAIR_WHISPER_VERSION,
|
|
39
|
+
taxonomy: { role: 'action' },
|
|
40
|
+
contributes: {
|
|
41
|
+
actions: [
|
|
42
|
+
{
|
|
43
|
+
key: 'whisper',
|
|
44
|
+
venue: { kind: 'composer' },
|
|
45
|
+
quick: true,
|
|
46
|
+
icon: 'ear',
|
|
47
|
+
/** Who hears it and what it says (R3, R10): nothing to do without either. */
|
|
48
|
+
collects: {
|
|
49
|
+
recipients: {
|
|
50
|
+
label: { en: 'Who hears it' },
|
|
51
|
+
min: 1,
|
|
52
|
+
overwrites: 'core:slot/whisper@1',
|
|
53
|
+
},
|
|
54
|
+
text: { need: 'required', label: { en: 'What do you whisper?' } },
|
|
55
|
+
},
|
|
56
|
+
label: { en: 'Whisper' },
|
|
57
|
+
description: {
|
|
58
|
+
en: 'Tell the delvers you pick something only they hear. Nobody else does — not the rest of the party, and not the Castellan.',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
})
|
|
64
|
+
.inlet('input', C.userMessage.v1(), {
|
|
65
|
+
genre: lairGenre,
|
|
66
|
+
event: sessionEvents.sessionAction,
|
|
67
|
+
})
|
|
68
|
+
.query('state', ($) => C.sessionState.v1({ scope: $.input.sessionScope }))
|
|
69
|
+
/**
|
|
70
|
+
* One change naming no owner, made once per recipient: the
|
|
71
|
+
* `owners` port is what turns `character:<id>` into that seated
|
|
72
|
+
* delver's row, and the slot's own validation is what refuses a
|
|
73
|
+
* line longer than it accepts, with a sentence.
|
|
74
|
+
*/
|
|
75
|
+
.query('resolve', ($) => C.resolveStateChanges.v1({
|
|
76
|
+
changes: [{ slot: 'whisper', value: $.input.text }],
|
|
77
|
+
owners: $.input.recipients,
|
|
78
|
+
scope: $.input.sessionScope,
|
|
79
|
+
base: $.state.version,
|
|
80
|
+
}))
|
|
81
|
+
/** Applied rather than proposed — the master's own instruction; see Nudge. */
|
|
82
|
+
.task('apply', ($) => C.setState.v1({
|
|
83
|
+
changes: $.resolve.changes,
|
|
84
|
+
scope: $.input.sessionScope,
|
|
85
|
+
base: $.state.version,
|
|
86
|
+
params: slot.params(),
|
|
87
|
+
}))
|
|
88
|
+
.preset('lair', { label: 'Lair', default: true }, (p) => p.params('apply', { mode: 'apply' }))
|
|
89
|
+
.build());
|
|
90
|
+
//# sourceMappingURL=whisper.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* publishable package: SP core boot-seeds from it (the app's
|
|
6
6
|
* `src/lib/server/pipelines/specs/*` are thin re-exports of this package),
|
|
7
7
|
* conformance consumes it as fixtures, and modders import it for typed
|
|
8
|
-
* references — `import {
|
|
8
|
+
* references — `import { chatGenre, chatTurnOrder } from "@serene-pub/core-catalog"`.
|
|
9
9
|
*
|
|
10
10
|
* Moving the documents here is what makes core the first consumer of the
|
|
11
11
|
* announce path rather than a special case: one validator, one document
|
|
@@ -13,20 +13,38 @@
|
|
|
13
13
|
* shipped prompts and the default preset ride the announcement too (T6b);
|
|
14
14
|
* the shipped default configs stay derived (declarations + default author
|
|
15
15
|
* preset + ref defaults) — there is no hand-authored config data to carry.
|
|
16
|
+
*
|
|
17
|
+
* ## Where things live
|
|
18
|
+
*
|
|
19
|
+
* - `genres/<genre>/` — every pipeline locked to that genre (create, reply,
|
|
20
|
+
* actions, answer form, turn order), one per file, and any widget only that
|
|
21
|
+
* genre offers (Chat's Author's note, under `genres/chat/ui/`).
|
|
22
|
+
* - `shared/` — what more than one genre uses: the built-in writes, sprites,
|
|
23
|
+
* the annex field write, summarize, the story-graph build, and the shared
|
|
24
|
+
* widgets' typed sections (`shared/ui/`). Also the tool-loop reference,
|
|
25
|
+
* exported as an example and test fixture but not in `CORE_SPECS`.
|
|
26
|
+
* - `factories/` — the builders a genre calls once per genre (answer form,
|
|
27
|
+
* turn order), core's genres and a plugin's alike.
|
|
28
|
+
* - `registry/` — the modules that register on import (genres, slots, stat
|
|
29
|
+
* shapes, entry types, core's widgets) and the layouts the genres name.
|
|
30
|
+
* - `seed/` — the shipped prompts, presets and the guide's mascot image.
|
|
31
|
+
*
|
|
32
|
+
* The widgets' Svelte sources mirror it under `../components/` (`genres/chat/`,
|
|
33
|
+
* `shared/`).
|
|
16
34
|
*/
|
|
17
35
|
import { type AnnouncementDocument, type CoverageReport, type Extension, type I18n } from '@serene-pub/sdk';
|
|
18
|
-
export * from './genres.js';
|
|
36
|
+
export * from './registry/genres.js';
|
|
19
37
|
/**
|
|
20
38
|
* The attribute slots core's genres bring.
|
|
21
39
|
*
|
|
22
|
-
* ⚠ A load-bearing re-export, on the same terms as `./entries.js` below:
|
|
40
|
+
* ⚠ A load-bearing re-export, on the same terms as `./registry/entries.js` below:
|
|
23
41
|
* declaring a slot REGISTERS it, and nothing imports these by value. Without
|
|
24
42
|
* the module being reached, the Adventure genre would name seven declarations
|
|
25
43
|
* that this process has never heard of.
|
|
26
44
|
*/
|
|
27
45
|
/** Core's catalogue of stat shapes — declared before the slots that name them. */
|
|
28
|
-
export * from './statShapes.js';
|
|
29
|
-
export * from './slots.js';
|
|
46
|
+
export * from './registry/statShapes.js';
|
|
47
|
+
export * from './registry/slots.js';
|
|
30
48
|
/**
|
|
31
49
|
* Core's entry types (Part 1). Declaring one **registers** it, which is the
|
|
32
50
|
* fact-about-the-code route node types take — so this re-export is what puts
|
|
@@ -41,29 +59,28 @@ export * from './slots.js';
|
|
|
41
59
|
* coreCatalogSideEffects.test.ts` fails when a registering module is missing
|
|
42
60
|
* from the list.
|
|
43
61
|
*/
|
|
44
|
-
export * from './entries.js';
|
|
45
|
-
export * from './prompts.js';
|
|
46
|
-
export * from './presets.js';
|
|
47
|
-
export * from './
|
|
48
|
-
|
|
49
|
-
export * from './
|
|
50
|
-
|
|
51
|
-
export * from './
|
|
52
|
-
export * from './
|
|
53
|
-
|
|
54
|
-
export * from './
|
|
55
|
-
export * from './
|
|
56
|
-
export * from './
|
|
57
|
-
export * from './
|
|
58
|
-
export * from './
|
|
59
|
-
export * from './
|
|
60
|
-
export * from './
|
|
61
|
-
export * from './toolLoop.js';
|
|
62
|
-
export * from './
|
|
63
|
-
export * from './
|
|
64
|
-
export * from './
|
|
65
|
-
export * from './
|
|
66
|
-
export * from './ui/sessions/layouts.js';
|
|
62
|
+
export * from './registry/entries.js';
|
|
63
|
+
export * from './seed/prompts.js';
|
|
64
|
+
export * from './seed/presets.js';
|
|
65
|
+
export * from './loadouts.js';
|
|
66
|
+
/** Every genre's pipelines, a folder each, and the lists that span them. */
|
|
67
|
+
export * from './genres/index.js';
|
|
68
|
+
/** The builders a genre calls once per genre — core's and a plugin genre's alike. */
|
|
69
|
+
export * from './factories/answerForm.js';
|
|
70
|
+
export * from './factories/turnOrder.js';
|
|
71
|
+
/** What more than one genre runs. */
|
|
72
|
+
export * from './shared/annexField.js';
|
|
73
|
+
export * from './shared/builtins/index.js';
|
|
74
|
+
export * from './shared/sprites.js';
|
|
75
|
+
export * from './shared/spriteFill.js';
|
|
76
|
+
export * from './shared/portrait.js';
|
|
77
|
+
export * from './shared/describeLikeness.js';
|
|
78
|
+
export * from './shared/timePasses.js';
|
|
79
|
+
export * from './shared/toolLoop.js';
|
|
80
|
+
export * from './shared/graphBuild.js';
|
|
81
|
+
export * from './shared/summarize/index.js';
|
|
82
|
+
export * from './registry/widgets.js';
|
|
83
|
+
export * from './registry/layouts.js';
|
|
67
84
|
/** @experimental */
|
|
68
85
|
export interface CoreSpec {
|
|
69
86
|
slug: string;
|
|
@@ -80,8 +97,14 @@ export interface CoreSpec {
|
|
|
80
97
|
/**
|
|
81
98
|
* The pipelines core ships — one registry rather than a list of builders
|
|
82
99
|
* beside a map of display names (two collections that had to agree). `name`
|
|
83
|
-
* is what a person calls the thing; a list showing `core:spec/respond` is a
|
|
100
|
+
* is what a person calls the thing; a list showing `core:spec/chat-respond` is a
|
|
84
101
|
* list of identifiers, not of things.
|
|
102
|
+
*
|
|
103
|
+
* A name says what the pipeline does and never which genre it serves (ruled
|
|
104
|
+
* 2026-10-05): every list of several genres' pipelines shows the genre beside
|
|
105
|
+
* it, so the four create pipelines are each "Create session" and the four
|
|
106
|
+
* replies each "Reply". The slug is genre first, `core:spec/<genre>-<what>`;
|
|
107
|
+
* one that serves every genre is `core:spec/<what>`.
|
|
85
108
|
* @experimental
|
|
86
109
|
*/
|
|
87
110
|
export declare const CORE_SPECS: CoreSpec[];
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* publishable package: SP core boot-seeds from it (the app's
|
|
6
6
|
* `src/lib/server/pipelines/specs/*` are thin re-exports of this package),
|
|
7
7
|
* conformance consumes it as fixtures, and modders import it for typed
|
|
8
|
-
* references — `import {
|
|
8
|
+
* references — `import { chatGenre, chatTurnOrder } from "@serene-pub/core-catalog"`.
|
|
9
9
|
*
|
|
10
10
|
* Moving the documents here is what makes core the first consumer of the
|
|
11
11
|
* announce path rather than a special case: one validator, one document
|
|
@@ -13,42 +13,94 @@
|
|
|
13
13
|
* shipped prompts and the default preset ride the announcement too (T6b);
|
|
14
14
|
* the shipped default configs stay derived (declarations + default author
|
|
15
15
|
* preset + ref defaults) — there is no hand-authored config data to carry.
|
|
16
|
+
*
|
|
17
|
+
* ## Where things live
|
|
18
|
+
*
|
|
19
|
+
* - `genres/<genre>/` — every pipeline locked to that genre (create, reply,
|
|
20
|
+
* actions, answer form, turn order), one per file, and any widget only that
|
|
21
|
+
* genre offers (Chat's Author's note, under `genres/chat/ui/`).
|
|
22
|
+
* - `shared/` — what more than one genre uses: the built-in writes, sprites,
|
|
23
|
+
* the annex field write, summarize, the story-graph build, and the shared
|
|
24
|
+
* widgets' typed sections (`shared/ui/`). Also the tool-loop reference,
|
|
25
|
+
* exported as an example and test fixture but not in `CORE_SPECS`.
|
|
26
|
+
* - `factories/` — the builders a genre calls once per genre (answer form,
|
|
27
|
+
* turn order), core's genres and a plugin's alike.
|
|
28
|
+
* - `registry/` — the modules that register on import (genres, slots, stat
|
|
29
|
+
* shapes, entry types, core's widgets) and the layouts the genres name.
|
|
30
|
+
* - `seed/` — the shipped prompts, presets and the guide's mascot image.
|
|
31
|
+
*
|
|
32
|
+
* The widgets' Svelte sources mirror it under `../components/` (`genres/chat/`,
|
|
33
|
+
* `shared/`).
|
|
16
34
|
*/
|
|
17
35
|
import { announcementOf, defineExtension, } from '@serene-pub/sdk';
|
|
18
|
-
import { CORE_PROMPTS } from './prompts.js';
|
|
19
|
-
import { corePresetInputs } from './presets.js';
|
|
20
|
-
import { adventureGenre, chatGenre, guideGenre } from './genres.js';
|
|
21
|
-
import { lairGenre } from './genres.js';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
|
|
36
|
+
import { CORE_PROMPTS } from './seed/prompts.js';
|
|
37
|
+
import { corePresetInputs } from './seed/presets.js';
|
|
38
|
+
import { adventureGenre, chatGenre, guideGenre } from './registry/genres.js';
|
|
39
|
+
import { lairGenre } from './registry/genres.js';
|
|
40
|
+
import { CHAT_CREATE_SPEC_ID, createChatSpec } from './genres/chat/create.js';
|
|
41
|
+
import { GUIDE_CREATE_SPEC_ID, createGuideSpec } from './genres/guide/create.js';
|
|
42
|
+
import { GUIDE_RESPOND_SPEC_ID, guideRespondSpec } from './genres/guide/respond.js';
|
|
43
|
+
import { ADVENTURE_CREATE_SPEC_ID, adventureCreateSpec } from './genres/adventure/create.js';
|
|
44
|
+
import { ADVENTURE_RESPOND_SPEC_ID, adventureRespondSpec } from './genres/adventure/respond.js';
|
|
45
|
+
import { ADVENTURE_LOOK_SPEC_ID, adventureLookSpec } from './genres/adventure/look.js';
|
|
46
|
+
import { ADVENTURE_REST_SPEC_ID, adventureRestSpec } from './genres/adventure/rest.js';
|
|
47
|
+
import { ADVENTURE_ADVANCE_TIME_SPEC_ID, adventureAdvanceTimeSpec } from './genres/adventure/advanceTime.js';
|
|
48
|
+
import { ADVENTURE_ASK_SPEC_ID, adventureAskSpec } from './genres/adventure/ask.js';
|
|
49
|
+
import { ADVENTURE_ANSWER_SPEC_ID, adventureAnswerSpec } from './genres/adventure/answer.js';
|
|
50
|
+
import { CHAT_ANSWER_FORM_SPEC_ID, answerFormChatSpec } from './genres/chat/answerForm.js';
|
|
51
|
+
import { ADVENTURE_ANSWER_FORM_SPEC_ID, answerFormAdventureSpec } from './genres/adventure/answerForm.js';
|
|
52
|
+
import { GUIDE_ANSWER_FORM_SPEC_ID, answerFormGuideSpec } from './genres/guide/answerForm.js';
|
|
53
|
+
import { LAIR_ANSWER_FORM_SPEC_ID, answerFormLairSpec } from './genres/lair/answerForm.js';
|
|
54
|
+
import { LAIR_CREATE_SPEC_ID, lairCreateSpec } from './genres/lair/create.js';
|
|
55
|
+
import { LAIR_RESPOND_SPEC_ID, lairRespondSpec } from './genres/lair/respond.js';
|
|
56
|
+
import { LAIR_BUILD_ROOM_SPEC_ID, lairBuildRoomSpec } from './genres/lair/buildRoom.js';
|
|
57
|
+
import { LAIR_ROOM_ANSWER_SPEC_ID, lairRoomAnswerSpec } from './genres/lair/roomAnswer.js';
|
|
58
|
+
import { LAIR_FILE_ROOM_SPEC_ID, lairFileRoomSpec } from './genres/lair/fileRoom.js';
|
|
59
|
+
import { LAIR_NUDGE_SPEC_ID, lairNudgeSpec } from './genres/lair/nudge.js';
|
|
60
|
+
import { LAIR_WHISPER_SPEC_ID, lairWhisperSpec } from './genres/lair/whisper.js';
|
|
61
|
+
import { LAIR_TRAP_SPEC_ID, lairTrapSpec } from './genres/lair/trap.js';
|
|
62
|
+
import { LAIR_REVEAL_SPEC_ID, lairRevealSpec } from './genres/lair/reveal.js';
|
|
63
|
+
import { CHAT_RESPOND_SPEC_ID, respondSpec } from './genres/chat/respond.js';
|
|
64
|
+
import { TURN_ORDER_BY_GENRE } from './genres/index.js';
|
|
65
|
+
import { CHAT_NARRATE_SPEC_ID, narrateSpec } from './genres/chat/narrate.js';
|
|
66
|
+
import { CHAT_SIDE_CHARACTER_SPEC_ID, narrateCharacterSpec } from './genres/chat/narrateCharacter.js';
|
|
67
|
+
import { CORE_ANNEX_FIELDS, SET_ANNEX_FIELD_SPEC_ID, setAnnexFieldSpec } from './shared/annexField.js';
|
|
68
|
+
import { BUILTIN_DELETE_SPEC_ID, builtinDeleteSpec } from './shared/builtins/delete.js';
|
|
69
|
+
import { BUILTIN_HIDE_SPEC_ID, builtinHideSpec } from './shared/builtins/hide.js';
|
|
70
|
+
import { BUILTIN_EDIT_SPEC_ID, builtinEditSpec } from './shared/builtins/edit.js';
|
|
71
|
+
import { BUILTIN_SWIPE_SPEC_ID, builtinSwipeSpec } from './shared/builtins/swipe.js';
|
|
72
|
+
import { BUILTIN_BRANCH_SPEC_ID, builtinBranchSpec } from './shared/builtins/branch.js';
|
|
73
|
+
import { SHOW_SPRITE_SPEC_ID, showSpriteSpec } from './shared/sprites.js';
|
|
74
|
+
import { SPRITE_SET_FILL_SPEC_ID, spriteSetFillSpec } from './shared/spriteFill.js';
|
|
75
|
+
import { CHARACTER_PORTRAIT_SPEC_ID, characterPortraitSpec } from './shared/portrait.js';
|
|
76
|
+
import { DESCRIBE_LIKENESS_SPEC_ID, describeLikenessSpec } from './shared/describeLikeness.js';
|
|
77
|
+
import { CHAT_GENERATE_IMAGE_SPEC_ID, generateImageSpec } from './genres/chat/generateImage.js';
|
|
78
|
+
import { CHAT_ILLUSTRATE_SCENE_SPEC_ID, illustrateSceneSpec } from './genres/chat/illustrateScene.js';
|
|
79
|
+
import { ADVENTURE_ILLUSTRATE_SCENE_SPEC_ID, adventureIllustrateSceneSpec } from './genres/adventure/illustrateScene.js';
|
|
80
|
+
import { CHAT_ADVANCE_TIME_SPEC_ID, chatAdvanceTimeSpec } from './genres/chat/advanceTime.js';
|
|
81
|
+
import { LAIR_ADVANCE_TIME_SPEC_ID, lairAdvanceTimeSpec } from './genres/lair/advanceTime.js';
|
|
82
|
+
import { GRAPH_BUILD_SPEC_ID, graphBuildSpec } from './shared/graphBuild.js';
|
|
83
|
+
import { SUMMARIZE_WORLD_SPEC_ID, summarizeWorldSpec } from './shared/summarize/world.js';
|
|
84
|
+
import { SUMMARIZE_CHARACTER_SPEC_ID, summarizeCharacterSpec } from './shared/summarize/character.js';
|
|
85
|
+
import { SUMMARIZE_SCENE_SPEC_ID, summarizeSceneSpec } from './shared/summarize/scene.js';
|
|
86
|
+
import { SUMMARIZE_HISTORY_SPEC_ID, summarizeHistorySpec } from './shared/summarize/history.js';
|
|
87
|
+
import { ADVENTURE_SUMMARIZE_SCENE_SPEC_ID, CHAT_SUMMARIZE_SCENE_SPEC_ID, GUIDE_SUMMARIZE_SCENE_SPEC_ID, LAIR_SUMMARIZE_SCENE_SPEC_ID, } from './shared/summarize/sceneIds.js';
|
|
88
|
+
import { chatSummarizeSceneSpec } from './genres/chat/summarizeScene.js';
|
|
89
|
+
import { adventureSummarizeSceneSpec } from './genres/adventure/summarizeScene.js';
|
|
90
|
+
import { guideSummarizeSceneSpec } from './genres/guide/summarizeScene.js';
|
|
91
|
+
import { lairSummarizeSceneSpec } from './genres/lair/summarizeScene.js';
|
|
92
|
+
export * from './registry/genres.js';
|
|
41
93
|
/**
|
|
42
94
|
* The attribute slots core's genres bring.
|
|
43
95
|
*
|
|
44
|
-
* ⚠ A load-bearing re-export, on the same terms as `./entries.js` below:
|
|
96
|
+
* ⚠ A load-bearing re-export, on the same terms as `./registry/entries.js` below:
|
|
45
97
|
* declaring a slot REGISTERS it, and nothing imports these by value. Without
|
|
46
98
|
* the module being reached, the Adventure genre would name seven declarations
|
|
47
99
|
* that this process has never heard of.
|
|
48
100
|
*/
|
|
49
101
|
/** Core's catalogue of stat shapes — declared before the slots that name them. */
|
|
50
|
-
export * from './statShapes.js';
|
|
51
|
-
export * from './slots.js';
|
|
102
|
+
export * from './registry/statShapes.js';
|
|
103
|
+
export * from './registry/slots.js';
|
|
52
104
|
/**
|
|
53
105
|
* Core's entry types (Part 1). Declaring one **registers** it, which is the
|
|
54
106
|
* fact-about-the-code route node types take — so this re-export is what puts
|
|
@@ -63,52 +115,58 @@ export * from './slots.js';
|
|
|
63
115
|
* coreCatalogSideEffects.test.ts` fails when a registering module is missing
|
|
64
116
|
* from the list.
|
|
65
117
|
*/
|
|
66
|
-
export * from './entries.js';
|
|
67
|
-
export * from './prompts.js';
|
|
68
|
-
export * from './presets.js';
|
|
69
|
-
|
|
70
|
-
export * from './
|
|
71
|
-
|
|
72
|
-
export * from './
|
|
73
|
-
|
|
74
|
-
export * from './
|
|
75
|
-
export * from './
|
|
76
|
-
|
|
77
|
-
export * from './
|
|
78
|
-
export * from './
|
|
79
|
-
export * from './
|
|
80
|
-
export * from './
|
|
81
|
-
export * from './
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
84
|
-
export * from './
|
|
85
|
-
export * from './graphBuild.js';
|
|
86
|
-
export * from './summarize.js';
|
|
87
|
-
export * from './
|
|
88
|
-
export * from './
|
|
118
|
+
export * from './registry/entries.js';
|
|
119
|
+
export * from './seed/prompts.js';
|
|
120
|
+
export * from './seed/presets.js';
|
|
121
|
+
// The core loadouts (I12): declarations the instance seeds unfilled by id.
|
|
122
|
+
export * from './loadouts.js';
|
|
123
|
+
/** Every genre's pipelines, a folder each, and the lists that span them. */
|
|
124
|
+
export * from './genres/index.js';
|
|
125
|
+
/** The builders a genre calls once per genre — core's and a plugin genre's alike. */
|
|
126
|
+
export * from './factories/answerForm.js';
|
|
127
|
+
export * from './factories/turnOrder.js';
|
|
128
|
+
/** What more than one genre runs. */
|
|
129
|
+
export * from './shared/annexField.js';
|
|
130
|
+
export * from './shared/builtins/index.js';
|
|
131
|
+
export * from './shared/sprites.js';
|
|
132
|
+
export * from './shared/spriteFill.js';
|
|
133
|
+
export * from './shared/portrait.js';
|
|
134
|
+
export * from './shared/describeLikeness.js';
|
|
135
|
+
export * from './shared/timePasses.js';
|
|
136
|
+
export * from './shared/toolLoop.js';
|
|
137
|
+
export * from './shared/graphBuild.js';
|
|
138
|
+
export * from './shared/summarize/index.js';
|
|
139
|
+
export * from './registry/widgets.js';
|
|
140
|
+
export * from './registry/layouts.js';
|
|
89
141
|
/**
|
|
90
142
|
* The pipelines core ships — one registry rather than a list of builders
|
|
91
143
|
* beside a map of display names (two collections that had to agree). `name`
|
|
92
|
-
* is what a person calls the thing; a list showing `core:spec/respond` is a
|
|
144
|
+
* is what a person calls the thing; a list showing `core:spec/chat-respond` is a
|
|
93
145
|
* list of identifiers, not of things.
|
|
146
|
+
*
|
|
147
|
+
* A name says what the pipeline does and never which genre it serves (ruled
|
|
148
|
+
* 2026-10-05): every list of several genres' pipelines shows the genre beside
|
|
149
|
+
* it, so the four create pipelines are each "Create session" and the four
|
|
150
|
+
* replies each "Reply". The slug is genre first, `core:spec/<genre>-<what>`;
|
|
151
|
+
* one that serves every genre is `core:spec/<what>`.
|
|
94
152
|
* @experimental
|
|
95
153
|
*/
|
|
96
154
|
export const CORE_SPECS = [
|
|
97
155
|
// First, deliberately: the genre's create pipeline must exist before
|
|
98
156
|
// anything that declares itself for the genre (24 §3).
|
|
99
|
-
{ slug:
|
|
157
|
+
{ slug: CHAT_CREATE_SPEC_ID, name: 'Create session', build: createChatSpec },
|
|
100
158
|
/**
|
|
101
159
|
* The Adventure genre, in the same order and for the same reason: its
|
|
102
160
|
* create pipeline exists before anything that declares itself for it.
|
|
103
161
|
*/
|
|
104
162
|
{
|
|
105
163
|
slug: ADVENTURE_CREATE_SPEC_ID,
|
|
106
|
-
name: 'Create
|
|
164
|
+
name: 'Create session',
|
|
107
165
|
build: adventureCreateSpec,
|
|
108
166
|
},
|
|
109
167
|
{
|
|
110
168
|
slug: ADVENTURE_RESPOND_SPEC_ID,
|
|
111
|
-
name: '
|
|
169
|
+
name: 'Reply',
|
|
112
170
|
build: adventureRespondSpec,
|
|
113
171
|
},
|
|
114
172
|
{ slug: ADVENTURE_LOOK_SPEC_ID, name: 'Look', build: adventureLookSpec },
|
|
@@ -127,10 +185,10 @@ export const CORE_SPECS = [
|
|
|
127
185
|
* so nothing that declares itself for the genre can be published before the
|
|
128
186
|
* genre exists.
|
|
129
187
|
*/
|
|
130
|
-
{ slug: LAIR_CREATE_SPEC_ID, name: 'Create
|
|
131
|
-
{ slug: LAIR_RESPOND_SPEC_ID, name: '
|
|
188
|
+
{ slug: LAIR_CREATE_SPEC_ID, name: 'Create session', build: lairCreateSpec },
|
|
189
|
+
{ slug: LAIR_RESPOND_SPEC_ID, name: 'Reply', build: lairRespondSpec },
|
|
132
190
|
{ slug: LAIR_BUILD_ROOM_SPEC_ID, name: 'Build room', build: lairBuildRoomSpec },
|
|
133
|
-
/** What the knock's options fire — in no listing; see `
|
|
191
|
+
/** What the knock's options fire — in no listing; see `genres/lair/roomAnswer.ts`. */
|
|
134
192
|
{ slug: LAIR_ROOM_ANSWER_SPEC_ID, name: 'Answer the door', build: lairRoomAnswerSpec },
|
|
135
193
|
/** A room described in a message, filed through review (R11) — on a message's ⋮. */
|
|
136
194
|
{ slug: LAIR_FILE_ROOM_SPEC_ID, name: 'File as a room', build: lairFileRoomSpec },
|
|
@@ -142,29 +200,29 @@ export const CORE_SPECS = [
|
|
|
142
200
|
* The guide genre (R-18, U5g): create first, for the reason above; its
|
|
143
201
|
* reply answers as the genre's envoy.
|
|
144
202
|
*/
|
|
145
|
-
{ slug:
|
|
146
|
-
{ slug: GUIDE_RESPOND_SPEC_ID, name: '
|
|
147
|
-
{ slug:
|
|
203
|
+
{ slug: GUIDE_CREATE_SPEC_ID, name: 'Create session', build: createGuideSpec },
|
|
204
|
+
{ slug: GUIDE_RESPOND_SPEC_ID, name: 'Reply', build: guideRespondSpec },
|
|
205
|
+
{ slug: CHAT_RESPOND_SPEC_ID, name: 'Reply', build: respondSpec },
|
|
148
206
|
/**
|
|
149
207
|
* The answer pipelines (R-15 *Forms*; U5d): one graph, published once
|
|
150
208
|
* per shipped genre because a preset binds a spec locked to its genre.
|
|
151
209
|
* After every genre's create spec, for the reason those come first.
|
|
152
210
|
*/
|
|
153
|
-
{ slug:
|
|
211
|
+
{ slug: CHAT_ANSWER_FORM_SPEC_ID, name: 'Answer a form', build: answerFormChatSpec },
|
|
154
212
|
{
|
|
155
|
-
slug:
|
|
156
|
-
name: 'Answer a form
|
|
213
|
+
slug: ADVENTURE_ANSWER_FORM_SPEC_ID,
|
|
214
|
+
name: 'Answer a form',
|
|
157
215
|
build: answerFormAdventureSpec,
|
|
158
216
|
},
|
|
159
|
-
{ slug:
|
|
160
|
-
{ slug:
|
|
161
|
-
{ slug:
|
|
217
|
+
{ slug: GUIDE_ANSWER_FORM_SPEC_ID, name: 'Answer a form', build: answerFormGuideSpec },
|
|
218
|
+
{ slug: LAIR_ANSWER_FORM_SPEC_ID, name: 'Answer a form', build: answerFormLairSpec },
|
|
219
|
+
{ slug: CHAT_NARRATE_SPEC_ID, name: 'Narrate', build: narrateSpec },
|
|
162
220
|
// The other half of the narrator split (ruling 2026-09-07). A NEW spec,
|
|
163
221
|
// not a bump: the 0.6 freeze forbids moving an existing semver and says
|
|
164
222
|
// nothing about publishing a new slug.
|
|
165
223
|
{
|
|
166
|
-
slug:
|
|
167
|
-
name: 'Side character
|
|
224
|
+
slug: CHAT_SIDE_CHARACTER_SPEC_ID,
|
|
225
|
+
name: 'Side character',
|
|
168
226
|
build: narrateCharacterSpec,
|
|
169
227
|
},
|
|
170
228
|
/** Every annex field's write (2026-09-26) — contributes no action; the host's door runs it. */
|
|
@@ -185,45 +243,93 @@ export const CORE_SPECS = [
|
|
|
185
243
|
* same way: one receipted action per press, emitting `sprite-shown`.
|
|
186
244
|
*/
|
|
187
245
|
{ slug: SHOW_SPRITE_SPEC_ID, name: 'Change sprite', build: showSpriteSpec },
|
|
246
|
+
{
|
|
247
|
+
slug: CHAT_GENERATE_IMAGE_SPEC_ID,
|
|
248
|
+
name: 'Generate image',
|
|
249
|
+
build: generateImageSpec,
|
|
250
|
+
},
|
|
188
251
|
/**
|
|
189
|
-
* The
|
|
190
|
-
*
|
|
191
|
-
* runs is an example that is already wrong — and bound to no genre, so it
|
|
192
|
-
* is never offered in a person's composer.
|
|
252
|
+
* 🚧 The Scene action (DESIGN-image-generation §6.4, I9): a picture of
|
|
253
|
+
* the session as it stands, posted and/or set as the backdrop.
|
|
193
254
|
*/
|
|
194
255
|
{
|
|
195
|
-
slug:
|
|
196
|
-
name: '
|
|
197
|
-
build:
|
|
256
|
+
slug: CHAT_ILLUSTRATE_SCENE_SPEC_ID,
|
|
257
|
+
name: 'Illustrate scene',
|
|
258
|
+
build: illustrateSceneSpec,
|
|
198
259
|
},
|
|
260
|
+
/** 🚧 The same Scene graph with Adventure's inlet (§16 follow-up D3). */
|
|
199
261
|
{
|
|
200
|
-
slug:
|
|
201
|
-
name: '
|
|
202
|
-
build:
|
|
262
|
+
slug: ADVENTURE_ILLUSTRATE_SCENE_SPEC_ID,
|
|
263
|
+
name: 'Illustrate scene',
|
|
264
|
+
build: adventureIllustrateSceneSpec,
|
|
265
|
+
},
|
|
266
|
+
/**
|
|
267
|
+
* 🚧 Time passes… (live scenes §6): the story clock moved by an amount
|
|
268
|
+
* the person picks, no model. One graph (`shared/timePasses.ts`), one
|
|
269
|
+
* spec per genre; Adventure's is its keeper action above.
|
|
270
|
+
*/
|
|
271
|
+
{ slug: CHAT_ADVANCE_TIME_SPEC_ID, name: 'Time passes', build: chatAdvanceTimeSpec },
|
|
272
|
+
{ slug: LAIR_ADVANCE_TIME_SPEC_ID, name: 'Time passes', build: lairAdvanceTimeSpec },
|
|
273
|
+
/**
|
|
274
|
+
* 🚧 Draw a card's sprites from its likeness (image generation I5) — a
|
|
275
|
+
* card action from the Sprites tab, bound to no genre and no session.
|
|
276
|
+
*/
|
|
277
|
+
{
|
|
278
|
+
slug: SPRITE_SET_FILL_SPEC_ID,
|
|
279
|
+
name: 'Fill sprites',
|
|
280
|
+
build: spriteSetFillSpec,
|
|
281
|
+
},
|
|
282
|
+
/**
|
|
283
|
+
* 🚧 Portrait (DESIGN-image-generation §6.2, I8): a few pictures of a
|
|
284
|
+
* card offered to its gallery — a card action from the Gallery tab.
|
|
285
|
+
*/
|
|
286
|
+
{
|
|
287
|
+
slug: CHARACTER_PORTRAIT_SPEC_ID,
|
|
288
|
+
name: 'Portrait',
|
|
289
|
+
build: characterPortraitSpec,
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* 🚧 Describe a likeness (§5, follow-up D1): a card's likeness prompt
|
|
293
|
+
* written from its likeness image — a card action from the Likeness tab.
|
|
294
|
+
*/
|
|
295
|
+
{
|
|
296
|
+
slug: DESCRIBE_LIKENESS_SPEC_ID,
|
|
297
|
+
name: 'Describe a likeness',
|
|
298
|
+
build: describeLikenessSpec,
|
|
203
299
|
},
|
|
204
300
|
{
|
|
205
301
|
slug: SUMMARIZE_WORLD_SPEC_ID,
|
|
206
|
-
name: 'Summarize
|
|
302
|
+
name: 'Summarize world lore',
|
|
207
303
|
build: summarizeWorldSpec,
|
|
208
304
|
},
|
|
209
305
|
{
|
|
210
306
|
slug: SUMMARIZE_CHARACTER_SPEC_ID,
|
|
211
|
-
name: 'Summarize
|
|
307
|
+
name: 'Summarize character lore',
|
|
212
308
|
build: summarizeCharacterSpec,
|
|
213
309
|
},
|
|
214
310
|
{
|
|
215
311
|
slug: SUMMARIZE_SCENE_SPEC_ID,
|
|
216
|
-
name: 'Summarize
|
|
312
|
+
name: 'Summarize scene',
|
|
217
313
|
build: summarizeSceneSpec,
|
|
218
314
|
},
|
|
219
315
|
{
|
|
220
316
|
slug: SUMMARIZE_HISTORY_SPEC_ID,
|
|
221
|
-
name: 'Summarize
|
|
317
|
+
name: 'Summarize history entry',
|
|
222
318
|
build: summarizeHistorySpec,
|
|
223
319
|
},
|
|
320
|
+
/**
|
|
321
|
+
* 🚧 The genre-owned summarize-scene specs (live scenes §13–§14): each
|
|
322
|
+
* core genre's, built by `summarizeScene()` and named by the genre's
|
|
323
|
+
* `summarize.scene`. `core:spec/summarize-scene` above stays the
|
|
324
|
+
* fallback for a genre that names none.
|
|
325
|
+
*/
|
|
326
|
+
{ slug: CHAT_SUMMARIZE_SCENE_SPEC_ID, name: 'Summarize scene', build: chatSummarizeSceneSpec },
|
|
327
|
+
{ slug: ADVENTURE_SUMMARIZE_SCENE_SPEC_ID, name: 'Summarize scene', build: adventureSummarizeSceneSpec },
|
|
328
|
+
{ slug: GUIDE_SUMMARIZE_SCENE_SPEC_ID, name: 'Summarize scene', build: guideSummarizeSceneSpec },
|
|
329
|
+
{ slug: LAIR_SUMMARIZE_SCENE_SPEC_ID, name: 'Summarize scene', build: lairSummarizeSceneSpec },
|
|
224
330
|
{
|
|
225
331
|
slug: GRAPH_BUILD_SPEC_ID,
|
|
226
|
-
name: '
|
|
332
|
+
name: 'Build the story graph',
|
|
227
333
|
build: graphBuildSpec,
|
|
228
334
|
},
|
|
229
335
|
/**
|
|
@@ -234,9 +340,9 @@ export const CORE_SPECS = [
|
|
|
234
340
|
* what they wrote. Last, because each one's lock names its genre and a
|
|
235
341
|
* spec cannot be published before its genre's create pipeline (24 §3).
|
|
236
342
|
*/
|
|
237
|
-
...TURN_ORDER_BY_GENRE.map(({ spec,
|
|
343
|
+
...TURN_ORDER_BY_GENRE.map(({ spec, build }) => ({
|
|
238
344
|
slug: spec,
|
|
239
|
-
name:
|
|
345
|
+
name: 'Turn order',
|
|
240
346
|
build,
|
|
241
347
|
})),
|
|
242
348
|
];
|
|
@@ -284,7 +390,7 @@ export const coreExtension = () => defineExtension({
|
|
|
284
390
|
nodeType: p.nodeType,
|
|
285
391
|
slot: p.slot,
|
|
286
392
|
// The announcement-level identity is the bare slug; the seed
|
|
287
|
-
// pass's idempotence key wraps it (see prompts.ts). Unique
|
|
393
|
+
// pass's idempotence key wraps it (see seed/prompts.ts). Unique
|
|
288
394
|
// within a pool, not globally — `summarize-scene-default`
|
|
289
395
|
// names a row in three of them.
|
|
290
396
|
slug: p.seedKey.split(':').at(-1),
|