@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,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core's shipped **loadouts** (I12; DESIGN-image-generation §13).
|
|
3
|
+
*
|
|
4
|
+
* Declarations, never pairs: the instance seeds each as a row by its id (the
|
|
5
|
+
* seed key) with an empty pair — **unfilled** — and a node naming an unfilled
|
|
6
|
+
* loadout runs on its transform's default loadout. Everything runs on one
|
|
7
|
+
* model until somebody specialises; the wizard fills Reply and Images.
|
|
8
|
+
*
|
|
9
|
+
* `sampling` names a seeded sampling preset by seed key, never by id.
|
|
10
|
+
*/
|
|
11
|
+
import type { LoadoutDecl } from '@serene-pub/sdk';
|
|
12
|
+
/** Core's loadout ids, as values — what a spec's Default config names. @experimental */
|
|
13
|
+
export declare const CORE_LOADOUT: {
|
|
14
|
+
readonly reply: "core:loadout/reply@1";
|
|
15
|
+
readonly toolCalling: "core:loadout/tool-calling@1";
|
|
16
|
+
readonly extraction: "core:loadout/extraction@1";
|
|
17
|
+
readonly scenePrompt: "core:loadout/scene-prompt@1";
|
|
18
|
+
readonly images: "core:loadout/images@1";
|
|
19
|
+
readonly portrait: "core:loadout/portrait@1";
|
|
20
|
+
readonly sprites: "core:loadout/sprites@1";
|
|
21
|
+
readonly scene: "core:loadout/scene@1";
|
|
22
|
+
readonly tts: "core:loadout/tts@1";
|
|
23
|
+
readonly embeddings: "core:loadout/embeddings@1";
|
|
24
|
+
readonly entities: "core:loadout/entities@1";
|
|
25
|
+
};
|
|
26
|
+
/** @experimental */
|
|
27
|
+
export type CoreLoadoutId = (typeof CORE_LOADOUT)[keyof typeof CORE_LOADOUT];
|
|
28
|
+
/**
|
|
29
|
+
* The core set. `defaultFor` marks the five that become their transform's
|
|
30
|
+
* default the first time that default is set (a fresh install has none set).
|
|
31
|
+
* @experimental
|
|
32
|
+
*/
|
|
33
|
+
export declare const CORE_LOADOUTS: ReadonlyArray<LoadoutDecl & {
|
|
34
|
+
id: CoreLoadoutId;
|
|
35
|
+
defaultFor?: true;
|
|
36
|
+
}>;
|
|
37
|
+
//# sourceMappingURL=loadouts.d.ts.map
|
package/dist/loadouts.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/** Core's loadout ids, as values — what a spec's Default config names. @experimental */
|
|
2
|
+
export const CORE_LOADOUT = {
|
|
3
|
+
reply: 'core:loadout/reply@1',
|
|
4
|
+
toolCalling: 'core:loadout/tool-calling@1',
|
|
5
|
+
extraction: 'core:loadout/extraction@1',
|
|
6
|
+
scenePrompt: 'core:loadout/scene-prompt@1',
|
|
7
|
+
images: 'core:loadout/images@1',
|
|
8
|
+
portrait: 'core:loadout/portrait@1',
|
|
9
|
+
sprites: 'core:loadout/sprites@1',
|
|
10
|
+
scene: 'core:loadout/scene@1',
|
|
11
|
+
tts: 'core:loadout/tts@1',
|
|
12
|
+
embeddings: 'core:loadout/embeddings@1',
|
|
13
|
+
entities: 'core:loadout/entities@1',
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The core set. `defaultFor` marks the five that become their transform's
|
|
17
|
+
* default the first time that default is set (a fresh install has none set).
|
|
18
|
+
* @experimental
|
|
19
|
+
*/
|
|
20
|
+
export const CORE_LOADOUTS = [
|
|
21
|
+
{
|
|
22
|
+
id: CORE_LOADOUT.reply,
|
|
23
|
+
name: 'Reply',
|
|
24
|
+
description: 'Writes replies in sessions and answers forms. The model most people pick first.',
|
|
25
|
+
transform: 'text->text',
|
|
26
|
+
sampling: 'sampling-default',
|
|
27
|
+
defaultFor: true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: CORE_LOADOUT.toolCalling,
|
|
31
|
+
name: 'Tool calling',
|
|
32
|
+
description: 'Runs the tool loop. Best on a model with native tool calls.',
|
|
33
|
+
transform: 'text->text',
|
|
34
|
+
sampling: 'sampling-default',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: CORE_LOADOUT.extraction,
|
|
38
|
+
name: 'Extraction',
|
|
39
|
+
description: 'Summaries and the state keeper: reads a passage and answers in a fixed shape. ' +
|
|
40
|
+
'Best on a model with a schema door, at low temperature.',
|
|
41
|
+
transform: 'text->text',
|
|
42
|
+
sampling: 'sampling-extraction',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: CORE_LOADOUT.scenePrompt,
|
|
46
|
+
name: 'Scene prompt',
|
|
47
|
+
description: "Writes the picture description for Scene. Short answers at low temperature.",
|
|
48
|
+
transform: 'text->text',
|
|
49
|
+
sampling: 'sampling-extraction',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: CORE_LOADOUT.images,
|
|
53
|
+
name: 'Images',
|
|
54
|
+
description: 'Draws pictures for the Image action.',
|
|
55
|
+
transform: 'text->image',
|
|
56
|
+
sampling: 'sampling-image-default',
|
|
57
|
+
defaultFor: true,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: CORE_LOADOUT.portrait,
|
|
61
|
+
name: 'Portrait',
|
|
62
|
+
description: "Draws a character's portrait. Best on a model that takes reference pictures.",
|
|
63
|
+
transform: 'text->image',
|
|
64
|
+
sampling: 'sampling-image-default',
|
|
65
|
+
tier: 'best',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: CORE_LOADOUT.sprites,
|
|
69
|
+
name: 'Sprites',
|
|
70
|
+
description: "Fills a character's sprite set. Best on a model that takes reference pictures and draws " +
|
|
71
|
+
'on a transparent background.',
|
|
72
|
+
transform: 'text->image',
|
|
73
|
+
sampling: 'sampling-image-default',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: CORE_LOADOUT.scene,
|
|
77
|
+
name: 'Scene',
|
|
78
|
+
description: "Draws Scene's picture. A fast model is enough.",
|
|
79
|
+
transform: 'text->image',
|
|
80
|
+
sampling: 'sampling-image-default',
|
|
81
|
+
tier: 'fast',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: CORE_LOADOUT.tts,
|
|
85
|
+
name: 'Narration',
|
|
86
|
+
description: 'Reads text aloud.',
|
|
87
|
+
transform: 'text->audio',
|
|
88
|
+
defaultFor: true,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: CORE_LOADOUT.embeddings,
|
|
92
|
+
name: 'Embeddings',
|
|
93
|
+
description: 'Turns text into vectors for retrieval and the sprite picker.',
|
|
94
|
+
transform: 'text->embedding',
|
|
95
|
+
defaultFor: true,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: CORE_LOADOUT.entities,
|
|
99
|
+
name: 'Entities',
|
|
100
|
+
description: 'Finds the people, places and things a passage names, for lorebook indexing.',
|
|
101
|
+
transform: 'text->entities',
|
|
102
|
+
defaultFor: true,
|
|
103
|
+
},
|
|
104
|
+
];
|
|
105
|
+
//# sourceMappingURL=loadouts.js.map
|
|
@@ -176,5 +176,5 @@ export declare const remainingItemSupply: (supply: ItemSupply, held: number) =>
|
|
|
176
176
|
* module loaded, which is the same fact-about-the-code route node types take.
|
|
177
177
|
* @experimental
|
|
178
178
|
*/
|
|
179
|
-
export declare const CORE_ENTRY_TYPES: (import("@serene-pub/sdk").EntryDescriptor<"core:entry/
|
|
179
|
+
export declare const CORE_ENTRY_TYPES: (import("@serene-pub/sdk").EntryDescriptor<"core:entry/world-lore@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/character-lore@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/history@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/location@1"> | import("@serene-pub/sdk").EntryDescriptor<"core:entry/item@1">)[];
|
|
180
180
|
//# sourceMappingURL=entries.d.ts.map
|
|
@@ -8,11 +8,22 @@
|
|
|
8
8
|
* the in-repo half of that package.
|
|
9
9
|
*/
|
|
10
10
|
import { genre, layout, sessionEvents } from "@serene-pub/sdk";
|
|
11
|
-
import { ADVENTURE_LAYOUT, CHAT_LAYOUT, LAIR_LAYOUT } from "./
|
|
11
|
+
import { ADVENTURE_LAYOUT, CHAT_LAYOUT, LAIR_LAYOUT } from "./layouts.js";
|
|
12
12
|
import { ADVENTURE_SHEET, ADVENTURE_SLOTS } from "./slots.js";
|
|
13
13
|
import { LAIR_SHEET, LAIR_SLOTS } from "./slots.js";
|
|
14
|
-
import { GUIDE_MASCOT_IMAGE } from "
|
|
15
|
-
import { coreWidgets } from "./
|
|
14
|
+
import { GUIDE_MASCOT_IMAGE } from "../seed/guideMascotImage.js";
|
|
15
|
+
import { coreWidgets } from "./widgets.js";
|
|
16
|
+
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";
|
|
17
|
+
/*
|
|
18
|
+
* Widgets that read a lorebook — Chronicle, Places and Lore entries — are
|
|
19
|
+
* offered wherever a session may have one (`lorebook` in the genre's shape),
|
|
20
|
+
* which is every core genre today: optional in Chat and the Guide, required
|
|
21
|
+
* in Adventure and the Lair. So none omits them, and each genre's
|
|
22
|
+
* `omitWidgets` stays the Author's note alone (Chat's own). A genre with no
|
|
23
|
+
* lorebook omits all three — Dungeon Crawler, when it lands
|
|
24
|
+
* (PLAN-core-widgets §4), declares `omitWidgets: [coreWidgets.chronicle,
|
|
25
|
+
* coreWidgets.places, coreWidgets.loreEntries, …]`.
|
|
26
|
+
*/
|
|
16
27
|
/**
|
|
17
28
|
* Auto-advance (PLAN-turn-order §4.6, R16): whether the head turn fires by
|
|
18
29
|
* itself after a send, and how far.
|
|
@@ -198,7 +209,7 @@ export const chatGenre = genre(CHAT_GENRE_ID, {
|
|
|
198
209
|
greeting: { enabled: true, channel: "main" },
|
|
199
210
|
// No `turnOrder` here (retired 2026-09-23, R28): the Turn order
|
|
200
211
|
// control is `core:spec/chat-turn-order`'s `strategy` node and the
|
|
201
|
-
// swaps it declares (turnOrder.ts), like any other swappable node.
|
|
212
|
+
// swaps it declares (genres/chat/turnOrder.ts), like any other swappable node.
|
|
202
213
|
/** The session settings form's own sections (§4.11): declared, never automatic. */
|
|
203
214
|
scenario: true,
|
|
204
215
|
tags: true,
|
|
@@ -246,7 +257,9 @@ export const chatGenre = genre(CHAT_GENRE_ID, {
|
|
|
246
257
|
* The layout this genre ships (R71): its default — the conversation, and
|
|
247
258
|
* the Author's note tucked in the right rail (owner ruling 2026-10-03).
|
|
248
259
|
*/
|
|
249
|
-
layouts: [layout({ slug: "default", name: { en: "Chat" }, preset: CHAT_LAYOUT })]
|
|
260
|
+
layouts: [layout({ slug: "default", name: { en: "Chat" }, preset: CHAT_LAYOUT })],
|
|
261
|
+
/** 🚧 The spec this genre's scenes are summarized with (live scenes §13). */
|
|
262
|
+
summarize: { scene: CHAT_SUMMARIZE_SCENE_SPEC_ID }
|
|
250
263
|
});
|
|
251
264
|
/* ── Adventure ──────────────────────────────────────────────────────────── */
|
|
252
265
|
/**
|
|
@@ -293,6 +306,14 @@ export const adventureGenre = genre(ADVENTURE_GENRE_ID, {
|
|
|
293
306
|
*/
|
|
294
307
|
voice: "narrator",
|
|
295
308
|
greeting: { enabled: true, channel: "main" },
|
|
309
|
+
/**
|
|
310
|
+
* 🚧 Where the story is (live scenes §15 G2): the world's `location`
|
|
311
|
+
* (`core:slot/location@1`, on the world by this genre's sheet). A
|
|
312
|
+
* scene is named `Scene N · <place>` and *the place changed* fires
|
|
313
|
+
* when the party move. The rest of the scene settings are the
|
|
314
|
+
* defaults (Suggested; on request).
|
|
315
|
+
*/
|
|
316
|
+
scenes: { place: { stateKey: "location" } },
|
|
296
317
|
// No turn-order swaps: the planner decides who speaks, so no Turn order
|
|
297
318
|
// control renders (PLAN-turn-order §4.5) — the narrator turn-order
|
|
298
319
|
// spec seats one narrator entry per send.
|
|
@@ -393,6 +414,8 @@ export const adventureGenre = genre(ADVENTURE_GENRE_ID, {
|
|
|
393
414
|
/** The author's note is Chat's alone (owner ruling 2026-10-02, AN1). */
|
|
394
415
|
omitWidgets: [coreWidgets.authorsNote],
|
|
395
416
|
layouts: [layout({ slug: "default", name: { en: "Adventure" }, preset: ADVENTURE_LAYOUT })],
|
|
417
|
+
/** 🚧 The spec this genre's scenes are summarized with (live scenes §13). */
|
|
418
|
+
summarize: { scene: ADVENTURE_SUMMARIZE_SCENE_SPEC_ID }
|
|
396
419
|
});
|
|
397
420
|
/* ── Guide ──────────────────────────────────────────────────────────────── */
|
|
398
421
|
/**
|
|
@@ -514,7 +537,9 @@ export const guideGenre = genre(GUIDE_GENRE_ID, {
|
|
|
514
537
|
[sessionEvents.formAddressed]: {}
|
|
515
538
|
},
|
|
516
539
|
/** The author's note is Chat's alone (owner ruling 2026-10-02, AN1). */
|
|
517
|
-
omitWidgets: [coreWidgets.authorsNote]
|
|
540
|
+
omitWidgets: [coreWidgets.authorsNote],
|
|
541
|
+
/** 🚧 The spec this genre's scenes are summarized with (live scenes §13). */
|
|
542
|
+
summarize: { scene: GUIDE_SUMMARIZE_SCENE_SPEC_ID }
|
|
518
543
|
});
|
|
519
544
|
/* ── Lair ───────────────────────────────────────────────────────────────── */
|
|
520
545
|
/**
|
|
@@ -714,6 +739,13 @@ export const lairGenre = genre(LAIR_GENRE_ID, {
|
|
|
714
739
|
* `lair-create`.
|
|
715
740
|
*/
|
|
716
741
|
greeting: { enabled: false },
|
|
742
|
+
/**
|
|
743
|
+
* 🚧 Where the story is (live scenes §15 G2): the room the party stand
|
|
744
|
+
* in, the world's `location` — Adventure's place, for the same reason.
|
|
745
|
+
* The Lair's own boundary trigger (a new floor) rides its
|
|
746
|
+
* summarize-scene spec (`genres/lair/summarizeScene.ts`, ★9).
|
|
747
|
+
*/
|
|
748
|
+
scenes: { place: { stateKey: "location" } },
|
|
717
749
|
// No turn-order swaps: the planner decides who speaks — see Adventure's note.
|
|
718
750
|
fields: {
|
|
719
751
|
/**
|
|
@@ -872,5 +904,7 @@ export const lairGenre = genre(LAIR_GENRE_ID, {
|
|
|
872
904
|
/** The author's note is Chat's alone (owner ruling 2026-10-02, AN1). */
|
|
873
905
|
omitWidgets: [coreWidgets.authorsNote],
|
|
874
906
|
layouts: [layout({ slug: "default", name: { en: "Lair" }, preset: LAIR_LAYOUT })],
|
|
907
|
+
/** 🚧 The spec this genre's scenes are summarized with — the one that reads the Sanctum (live scenes §13). */
|
|
908
|
+
summarize: { scene: LAIR_SUMMARIZE_SCENE_SPEC_ID }
|
|
875
909
|
});
|
|
876
910
|
//# sourceMappingURL=genres.js.map
|
|
@@ -34,25 +34,33 @@ export declare const CHAT_LAYOUT: SessionLayoutV1;
|
|
|
34
34
|
* Adventure: the world above the conversation, the party down the right, the
|
|
35
35
|
* lore within reach on the left.
|
|
36
36
|
*
|
|
37
|
-
* **Middle.**
|
|
38
|
-
* time it is, what the sky is doing — because
|
|
39
|
-
* is about the scene rather than about a person, and
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
37
|
+
* **Middle.** The world's stats are a strip above the messages — where you
|
|
38
|
+
* are, what time it is, what the sky is doing — because they are the one
|
|
39
|
+
* piece of state that is about the scene rather than about a person, and they
|
|
40
|
+
* belong where the scene is. It is a copy of Stats, `stats#world`, set to the
|
|
41
|
+
* world as a strip and titled as World State was (PLAN-core-widgets W7: World
|
|
42
|
+
* State became Stats drawn for the world; `world-state` is now an alias a
|
|
43
|
+
* stored layout may still place). `messages` — the log and the field you
|
|
44
|
+
* write into, one widget — fills everything under it, anchored to all four
|
|
45
|
+
* edges. Placement is free, so a person may move it to a side; a session
|
|
46
|
+
* always keeps one (the primary floor).
|
|
43
47
|
*
|
|
44
|
-
* **Right, docked and pinned.** Scene Portraits
|
|
45
|
-
*
|
|
46
|
-
* under it — the common case needs no second widget for that. Stats below it
|
|
47
|
-
* (Inventory sat under Stats until R79 removed that widget
|
|
48
|
+
* **Right, docked and pinned.** Scene Portraits showing who is in the SCENE,
|
|
49
|
+
* each as their sprite, with `bars: true` so each face carries its own health
|
|
50
|
+
* under it — the common case needs no second widget for that. Stats below it,
|
|
51
|
+
* the cast's cards. (Inventory sat under Stats until R79 removed that widget
|
|
52
|
+
* for now.)
|
|
48
53
|
*
|
|
49
54
|
* **Left, unpinned.** An unpinned rail is an icon strip that pops over the
|
|
50
55
|
* conversation when you click it, which is what "collapsed to the rail" means:
|
|
51
|
-
* the lore is one click away and costs no width until you want it. It
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
+
* the lore is one click away and costs no width until you want it. It holds
|
|
57
|
+
* the Chronicle (the story's history and its clock) and Lore entries (what
|
|
58
|
+
* the book has, and what was read) — an adventure's lorebook is required, so
|
|
59
|
+
* both always have a book to read.
|
|
60
|
+
*
|
|
61
|
+
* Places, Turn order, Album, Actions and Who's here are left to the tray: an
|
|
62
|
+
* adventure has room for them, but none is what every adventure needs on its
|
|
63
|
+
* first paint.
|
|
56
64
|
* @internal
|
|
57
65
|
*/
|
|
58
66
|
export declare const ADVENTURE_LAYOUT: SessionLayoutV1;
|
|
@@ -64,20 +72,26 @@ export declare const ADVENTURE_LAYOUT: SessionLayoutV1;
|
|
|
64
72
|
* adventure the player asks *what shape am I in*, so the party is on the right
|
|
65
73
|
* where a reader's eye rests; in a Lair the party is somebody else's — a set of
|
|
66
74
|
* bars the master WATCHES rather than owns — so Stats goes left, where a thing
|
|
67
|
-
* being monitored belongs, and the dungeon
|
|
75
|
+
* being monitored belongs, and the dungeon itself takes the right.
|
|
76
|
+
*
|
|
77
|
+
* **The rooms, at the top** (PLAN-core-widgets W4, Q4). Places as a list: the
|
|
78
|
+
* dungeon's places from the lorebook, the world's location and the party's
|
|
79
|
+
* picked out (`highlight: "both"`), the ways out of each under it. It
|
|
80
|
+
* replaces World State, which stood in for a room list by showing
|
|
81
|
+
* `location`, `floor` and `gold` in one line; those stay one tray pick away
|
|
82
|
+
* (Stats, set to the world). Both settings are Places' defaults, written so a
|
|
83
|
+
* changed default never moves the Lair. Its `map` view draws the same rooms
|
|
84
|
+
* as a graph of their ways.
|
|
68
85
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* closest thing that exists: it shows `location`, `floor` and `gold`, which is
|
|
75
|
-
* the same question answered in one line instead of a map. **Map widget pending
|
|
76
|
-
* Mermaid**; swapping it is one id in this file.
|
|
86
|
+
* **The Castellan's scratchpad, under it.** An Annex copy reading the
|
|
87
|
+
* Castellan's running notes (`core.castellan-scratchpad`), which the owner may
|
|
88
|
+
* see and correct (the field's `see` names `owner`); small, because the notes
|
|
89
|
+
* are a reference and the talk is the work. Titled with the field's label,
|
|
90
|
+
* since an Annex panel's head otherwise reads "Annex".
|
|
77
91
|
*
|
|
78
|
-
* **The Sanctum,
|
|
79
|
-
* Castellan is its own channel, so it gets its own panel: a second
|
|
80
|
-
* `messages` widget, placed under the **widget instance id**
|
|
92
|
+
* **The Sanctum, at the bottom** (lair re-plan S1). The master's side-talk
|
|
93
|
+
* with the Castellan is its own channel, so it gets its own panel: a second
|
|
94
|
+
* copy of the `messages` widget, placed under the **widget instance id**
|
|
81
95
|
* `messages#sanctum` and pinned to the channel by its `channel` setting. It
|
|
82
96
|
* opens on the Castellan's greeting (the channel's first row), writes on the
|
|
83
97
|
* Sanctum, and draws the Sanctum's turn controls — Continue and Narrate; Pick
|
|
@@ -38,32 +38,45 @@ export const CHAT_LAYOUT = {
|
|
|
38
38
|
* Adventure: the world above the conversation, the party down the right, the
|
|
39
39
|
* lore within reach on the left.
|
|
40
40
|
*
|
|
41
|
-
* **Middle.**
|
|
42
|
-
* time it is, what the sky is doing — because
|
|
43
|
-
* is about the scene rather than about a person, and
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
41
|
+
* **Middle.** The world's stats are a strip above the messages — where you
|
|
42
|
+
* are, what time it is, what the sky is doing — because they are the one
|
|
43
|
+
* piece of state that is about the scene rather than about a person, and they
|
|
44
|
+
* belong where the scene is. It is a copy of Stats, `stats#world`, set to the
|
|
45
|
+
* world as a strip and titled as World State was (PLAN-core-widgets W7: World
|
|
46
|
+
* State became Stats drawn for the world; `world-state` is now an alias a
|
|
47
|
+
* stored layout may still place). `messages` — the log and the field you
|
|
48
|
+
* write into, one widget — fills everything under it, anchored to all four
|
|
49
|
+
* edges. Placement is free, so a person may move it to a side; a session
|
|
50
|
+
* always keeps one (the primary floor).
|
|
47
51
|
*
|
|
48
|
-
* **Right, docked and pinned.** Scene Portraits
|
|
49
|
-
*
|
|
50
|
-
* under it — the common case needs no second widget for that. Stats below it
|
|
51
|
-
* (Inventory sat under Stats until R79 removed that widget
|
|
52
|
+
* **Right, docked and pinned.** Scene Portraits showing who is in the SCENE,
|
|
53
|
+
* each as their sprite, with `bars: true` so each face carries its own health
|
|
54
|
+
* under it — the common case needs no second widget for that. Stats below it,
|
|
55
|
+
* the cast's cards. (Inventory sat under Stats until R79 removed that widget
|
|
56
|
+
* for now.)
|
|
52
57
|
*
|
|
53
58
|
* **Left, unpinned.** An unpinned rail is an icon strip that pops over the
|
|
54
59
|
* conversation when you click it, which is what "collapsed to the rail" means:
|
|
55
|
-
* the lore is one click away and costs no width until you want it. It
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
+
* the lore is one click away and costs no width until you want it. It holds
|
|
61
|
+
* the Chronicle (the story's history and its clock) and Lore entries (what
|
|
62
|
+
* the book has, and what was read) — an adventure's lorebook is required, so
|
|
63
|
+
* both always have a book to read.
|
|
64
|
+
*
|
|
65
|
+
* Places, Turn order, Album, Actions and Who's here are left to the tray: an
|
|
66
|
+
* adventure has room for them, but none is what every adventure needs on its
|
|
67
|
+
* first paint.
|
|
60
68
|
* @internal
|
|
61
69
|
*/
|
|
62
70
|
export const ADVENTURE_LAYOUT = {
|
|
63
71
|
zoneLayout: {
|
|
64
72
|
version: 1,
|
|
65
73
|
zones: {
|
|
66
|
-
left: {
|
|
74
|
+
left: {
|
|
75
|
+
kind: "side",
|
|
76
|
+
side: "left",
|
|
77
|
+
pinned: false,
|
|
78
|
+
widgets: ["chronicle", "lore-entries"]
|
|
79
|
+
},
|
|
67
80
|
right: {
|
|
68
81
|
kind: "side",
|
|
69
82
|
side: "right",
|
|
@@ -77,7 +90,7 @@ export const ADVENTURE_LAYOUT = {
|
|
|
77
90
|
cell: 44,
|
|
78
91
|
widgets: [
|
|
79
92
|
{
|
|
80
|
-
id: "world
|
|
93
|
+
id: "stats#world",
|
|
81
94
|
zone: "middle",
|
|
82
95
|
order: 0,
|
|
83
96
|
size: { w: "grow", h: "fixed" },
|
|
@@ -98,30 +111,44 @@ export const ADVENTURE_LAYOUT = {
|
|
|
98
111
|
]
|
|
99
112
|
},
|
|
100
113
|
/**
|
|
101
|
-
* Per-widget settings the layout
|
|
102
|
-
* settings, so a person who turns the bars off keeps
|
|
114
|
+
* Per-widget settings the layout brings. Copied into the session's own
|
|
115
|
+
* settings when the layout is, so a person who turns the bars off keeps
|
|
116
|
+
* them off.
|
|
103
117
|
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
118
|
+
* Scene Portraits' values are its defaults, written anyway so a changed
|
|
119
|
+
* default never moves Adventure — and because an instance with nothing
|
|
120
|
+
* stored about who it shows is read as a 0.6 pinned one by the page's
|
|
121
|
+
* one-time seed of old pinned images: `who: "scene"` is what keeps it off.
|
|
122
|
+
* The world strip's `owners` and `arrangement` are what make the copy of
|
|
123
|
+
* Stats the world's; its `title` keeps the strip's name.
|
|
108
124
|
*/
|
|
109
125
|
widgetSettings: {
|
|
110
|
-
"scene-portraits": {
|
|
126
|
+
"scene-portraits": {
|
|
127
|
+
who: "scene",
|
|
128
|
+
face: "sprite",
|
|
129
|
+
arrangement: "grid",
|
|
130
|
+
bars: true
|
|
131
|
+
},
|
|
132
|
+
"stats#world": { owners: "world", arrangement: "strip", title: "World State" }
|
|
111
133
|
},
|
|
112
134
|
/**
|
|
113
135
|
* The right column, ARRANGED — which is what makes it open on the first
|
|
114
136
|
* paint rather than a strip of icons the player has to click.
|
|
115
137
|
*
|
|
138
|
+
* The left is NOT arranged: its zone's `pinned: false` makes it an icon
|
|
139
|
+
* strip on the width ladder, which costs no width, and the layout
|
|
140
|
+
* editor's Done keeps a side it was opened on un-arranged unless a hand
|
|
141
|
+
* moves something in it. (An arrangement whose cards are all unpinned
|
|
142
|
+
* would draw the same: a rail-only side counts a rail's width, never a
|
|
143
|
+
* column's — `sideFlowPx` in the app's `sessionLayout/sideSlot`.)
|
|
144
|
+
*
|
|
116
145
|
* A side is drawn from its arrangement when it has one, and a group in an
|
|
117
146
|
* arrangement is expanded by default exactly when it is PINNED: `pinned` is
|
|
118
|
-
* a field on these items and absent means pinned (`
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* docked-or-icons state was left to whatever the session box happened to
|
|
124
|
-
* measure.
|
|
147
|
+
* a field on these items and absent means pinned (`pinnedOf`, the SDK's
|
|
148
|
+
* one pin rule), so two items with no `pinned` field is two panels open,
|
|
149
|
+
* in this order, with nothing transient deciding it. A side with NO
|
|
150
|
+
* arrangement falls back to the width ladder instead, which leaves its
|
|
151
|
+
* docked-or-icons state to whatever the session box happens to measure.
|
|
125
152
|
*
|
|
126
153
|
* One column and twelve rows because a rail is one column; the two
|
|
127
154
|
* heights are the share each panel takes of it, and `seedPositions` clamps
|
|
@@ -147,20 +174,26 @@ export const ADVENTURE_LAYOUT = {
|
|
|
147
174
|
* adventure the player asks *what shape am I in*, so the party is on the right
|
|
148
175
|
* where a reader's eye rests; in a Lair the party is somebody else's — a set of
|
|
149
176
|
* bars the master WATCHES rather than owns — so Stats goes left, where a thing
|
|
150
|
-
* being monitored belongs, and the dungeon
|
|
177
|
+
* being monitored belongs, and the dungeon itself takes the right.
|
|
178
|
+
*
|
|
179
|
+
* **The rooms, at the top** (PLAN-core-widgets W4, Q4). Places as a list: the
|
|
180
|
+
* dungeon's places from the lorebook, the world's location and the party's
|
|
181
|
+
* picked out (`highlight: "both"`), the ways out of each under it. It
|
|
182
|
+
* replaces World State, which stood in for a room list by showing
|
|
183
|
+
* `location`, `floor` and `gold` in one line; those stay one tray pick away
|
|
184
|
+
* (Stats, set to the world). Both settings are Places' defaults, written so a
|
|
185
|
+
* changed default never moves the Lair. Its `map` view draws the same rooms
|
|
186
|
+
* as a graph of their ways.
|
|
151
187
|
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* closest thing that exists: it shows `location`, `floor` and `gold`, which is
|
|
158
|
-
* the same question answered in one line instead of a map. **Map widget pending
|
|
159
|
-
* Mermaid**; swapping it is one id in this file.
|
|
188
|
+
* **The Castellan's scratchpad, under it.** An Annex copy reading the
|
|
189
|
+
* Castellan's running notes (`core.castellan-scratchpad`), which the owner may
|
|
190
|
+
* see and correct (the field's `see` names `owner`); small, because the notes
|
|
191
|
+
* are a reference and the talk is the work. Titled with the field's label,
|
|
192
|
+
* since an Annex panel's head otherwise reads "Annex".
|
|
160
193
|
*
|
|
161
|
-
* **The Sanctum,
|
|
162
|
-
* Castellan is its own channel, so it gets its own panel: a second
|
|
163
|
-
* `messages` widget, placed under the **widget instance id**
|
|
194
|
+
* **The Sanctum, at the bottom** (lair re-plan S1). The master's side-talk
|
|
195
|
+
* with the Castellan is its own channel, so it gets its own panel: a second
|
|
196
|
+
* copy of the `messages` widget, placed under the **widget instance id**
|
|
164
197
|
* `messages#sanctum` and pinned to the channel by its `channel` setting. It
|
|
165
198
|
* opens on the Castellan's greeting (the channel's first row), writes on the
|
|
166
199
|
* Sanctum, and draws the Sanctum's turn controls — Continue and Narrate; Pick
|
|
@@ -181,8 +214,7 @@ export const LAIR_LAYOUT = {
|
|
|
181
214
|
kind: "side",
|
|
182
215
|
side: "right",
|
|
183
216
|
pinned: true,
|
|
184
|
-
|
|
185
|
-
widgets: ["world-state", "messages#sanctum"]
|
|
217
|
+
widgets: ["places", "annex#castellan", "messages#sanctum"]
|
|
186
218
|
}
|
|
187
219
|
}
|
|
188
220
|
},
|
|
@@ -213,15 +245,24 @@ export const LAIR_LAYOUT = {
|
|
|
213
245
|
right: {
|
|
214
246
|
cols: 1,
|
|
215
247
|
rows: 12,
|
|
216
|
-
// The
|
|
248
|
+
// The rooms, a short note, and the talk taking the most.
|
|
217
249
|
items: [
|
|
218
|
-
{ id: "
|
|
219
|
-
{ id: "
|
|
250
|
+
{ id: "places", x: 0, y: 0, w: 1, h: 4 },
|
|
251
|
+
{ id: "annex#castellan", x: 0, y: 4, w: 1, h: 2 },
|
|
252
|
+
{ id: "messages#sanctum", x: 0, y: 6, w: 1, h: 6 }
|
|
220
253
|
]
|
|
221
254
|
}
|
|
222
255
|
},
|
|
223
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* The right column's settings: the room list's, the note's key, and the
|
|
258
|
+
* Sanctum copy's claim that makes it the Sanctum.
|
|
259
|
+
*/
|
|
224
260
|
widgetSettings: {
|
|
261
|
+
places: { view: "list", highlight: "both" },
|
|
262
|
+
"annex#castellan": {
|
|
263
|
+
key: "core.castellan-scratchpad",
|
|
264
|
+
title: "Castellan's scratchpad"
|
|
265
|
+
},
|
|
225
266
|
"messages#sanctum": { channel: "sanctum", composer: "minimal" }
|
|
226
267
|
}
|
|
227
268
|
};
|
|
@@ -36,10 +36,32 @@ export declare const coreWidgets: {
|
|
|
36
36
|
readonly conversation: WidgetDecl;
|
|
37
37
|
readonly scenePortraits: WidgetDecl;
|
|
38
38
|
readonly loreEntries: WidgetDecl;
|
|
39
|
+
/** Stats (W7): the world's, the cast's and the places' stats — as cards, a list or a strip. */
|
|
39
40
|
readonly stats: WidgetDecl;
|
|
41
|
+
/**
|
|
42
|
+
* ⏳ World State is Stats now (`WIDGET_ID_ALIASES`): a layout naming it
|
|
43
|
+
* draws Stats with `owners: 'world', arrangement: 'strip'`.
|
|
44
|
+
* @deprecated REMOVE in 0.7.0 — place `stats#world` with those settings.
|
|
45
|
+
*/
|
|
40
46
|
readonly worldState: WidgetDecl;
|
|
41
47
|
/** 🚧 The author's note (AN1) — Chat's; the other core genres omit it. */
|
|
42
48
|
readonly authorsNote: WidgetDecl;
|
|
49
|
+
/** 🚧 Turn order (W1): whose turn it is, who follows, Continue and Pick who speaks. */
|
|
50
|
+
readonly turnOrder: WidgetDecl;
|
|
51
|
+
/** 🚧 Actions (W8): the session's actions as buttons — turn controls, the genre's, the added. */
|
|
52
|
+
readonly actions: WidgetDecl;
|
|
53
|
+
/** 🚧 Annex (W9): one declared annex key, by its label, as the viewer may see it. */
|
|
54
|
+
readonly annex: WidgetDecl;
|
|
55
|
+
/** 🚧 Album (W2): every picture on the session's lines, newest first; the lightbox pages them all. */
|
|
56
|
+
readonly album: WidgetDecl;
|
|
57
|
+
/** 🚧 Backdrop: the session's backdrop picture, with Change and Clear for its owner. */
|
|
58
|
+
readonly backdrop: WidgetDecl;
|
|
59
|
+
/** 🚧 Chronicle (W3): the session's story clock, the history entry it reads now with its scenes, and the entries before. */
|
|
60
|
+
readonly chronicle: WidgetDecl;
|
|
61
|
+
/** 🚧 Places (W4): the session's places as a list or a map — where the scene is, who stands where, the ways between. */
|
|
62
|
+
readonly places: WidgetDecl;
|
|
63
|
+
/** 🚧 Who's here (W10): the session's people — who has it open, as whom each writes, who is typing, who is away. */
|
|
64
|
+
readonly attendance: WidgetDecl;
|
|
43
65
|
};
|
|
44
66
|
/**
|
|
45
67
|
* Core's components (C6 P1), declared through the public API as a package
|