@serene-pub/core-catalog 0.6.0-pr-4 → 0.6.0-pr-6
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/components/shared/{world-state/WorldState.svelte → actions/Actions.svelte} +4 -4
- 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 +165 -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 +572 -0
- package/components/shared/chronicle/chronicle.ts +11 -0
- package/components/shared/lore-entries/LoreEntriesWidget.svelte +2 -2
- package/components/shared/map-canvas/MapCanvas.svelte +171 -0
- package/components/shared/map-canvas/index.ts +390 -0
- package/components/shared/messages/MessageBlocksView.svelte +294 -0
- package/components/shared/messages/MessageControls.svelte +64 -0
- package/components/shared/messages/MessageMediaStrip.svelte +38 -1
- package/components/shared/messages/MessagePartsView.svelte +8 -2
- package/components/shared/messages/MessageStateLedger.svelte +45 -46
- package/components/shared/messages/MessagesWidget.svelte +296 -52
- package/components/shared/messages/NextCharacterBlock.svelte +74 -20
- package/components/shared/messages/SceneCueChip.svelte +82 -0
- package/components/shared/messages/SceneDivider.svelte +435 -0
- package/components/shared/messages/SessionComposer.svelte +269 -157
- package/components/shared/messages/SessionContainer.svelte +542 -198
- package/components/shared/messages/SessionMessage.svelte +120 -17
- package/components/shared/messages/StateProposalList.svelte +45 -0
- package/components/shared/messages/TurnLine.svelte +257 -0
- package/components/shared/messages/conversation.svelte.ts +335 -13
- package/components/shared/messages/interleave.ts +178 -0
- package/components/shared/messages/mediaStrip.ts +29 -5
- 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/shared/routine-log/RoutineLog.svelte +33 -0
- package/components/shared/routine-log/RoutineLogWidget.svelte +168 -0
- package/components/shared/routine-log/routine-log.ts +12 -0
- package/components/shared/routine-log/routineLog.ts +111 -0
- package/components/shared/scene-portraits/ScenePortraitsWidget.svelte +341 -153
- package/components/shared/state/ListEditor.svelte +128 -0
- package/components/shared/state/LorePicker.svelte +163 -0
- package/components/shared/state/PieceCard.svelte +257 -0
- package/components/shared/state/PieceForm.svelte +199 -0
- package/components/shared/state/PieceList.svelte +143 -0
- package/components/shared/state/SlotControl.svelte +303 -393
- package/components/shared/state/StoryTimeEditor.svelte +108 -0
- package/components/shared/state/slotWriter.svelte.ts +30 -20
- package/components/shared/stats/StatsWidget.svelte +957 -64
- package/components/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/shared/widgetRef.svelte.ts +9 -2
- package/components/tsconfig.json +2 -2
- package/dist/components/actions.js +295 -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 +503 -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 +562 -0
- package/dist/components/backdrop.source.json +1 -0
- package/dist/components/chronicle.js +1156 -0
- package/dist/components/chronicle.source.json +1 -0
- package/dist/components/core-ui.json +1 -1
- package/dist/components/lore-entries.js +1 -1
- package/dist/components/lore-entries.source.json +1 -1
- package/dist/components/messages.js +5325 -3319
- package/dist/components/messages.source.json +1 -1
- package/dist/components/places.js +1135 -0
- package/dist/components/places.source.json +1 -0
- package/dist/components/routine-log.js +382 -0
- package/dist/components/routine-log.source.json +1 -0
- package/dist/components/scene-portraits.js +610 -339
- package/dist/components/scene-portraits.source.json +1 -1
- package/dist/components/shared-3QXBXWVS.js +16 -0
- package/dist/components/shared-4RLNEXUH.js +479 -0
- package/dist/components/{shared-U3UU5V7L.js → shared-53LSB5XW.js} +612 -16
- package/dist/components/shared-5YNCLFKM.js +379 -0
- package/dist/components/shared-E2Y4ILGR.js +106 -0
- package/dist/components/shared-KYLSTWAJ.js +584 -0
- package/dist/components/shared-QCE7JYD3.js +101 -0
- package/dist/components/shared-W3XS5FEL.js +59 -0
- package/dist/components/shared-WWDBUSJ5.js +402 -0
- package/dist/components/shared-XKA5BV4M.js +51 -0
- package/dist/components/{shared-RJDGOAVC.js → shared-YMBM3PBR.js} +346 -87
- package/dist/components/stats.js +4157 -139
- package/dist/components/stats.source.json +1 -1
- package/dist/components/turn-order.js +466 -0
- package/dist/components/turn-order.source.json +1 -0
- package/dist/factories/answerForm.d.ts +1 -1
- package/dist/factories/answerForm.js +10 -9
- package/dist/factories/turnOrder.d.ts +41 -2
- package/dist/factories/turnOrder.js +67 -20
- package/dist/functions/asking.d.ts +10 -0
- package/dist/functions/asking.js +22 -0
- package/dist/functions/atZeroHealth.d.ts +60 -0
- package/dist/functions/atZeroHealth.js +155 -0
- package/dist/functions/body.d.ts +207 -0
- package/dist/functions/body.js +259 -0
- package/dist/functions/changing.d.ts +62 -0
- package/dist/functions/changing.js +332 -0
- package/dist/functions/deciding.d.ts +90 -0
- package/dist/functions/deciding.js +542 -0
- package/dist/functions/index.d.ts +55 -0
- package/dist/functions/index.js +39 -0
- package/dist/functions/outcomeMoves.d.ts +3 -0
- package/dist/functions/outcomeMoves.js +71 -0
- package/dist/functions/pieces.d.ts +46 -0
- package/dist/functions/pieces.js +191 -0
- package/dist/functions/progression.d.ts +31 -0
- package/dist/functions/progression.js +162 -0
- package/dist/functions/scopes.d.ts +27 -0
- package/dist/functions/scopes.js +111 -0
- package/dist/functions/time.d.ts +47 -0
- package/dist/functions/time.js +229 -0
- package/dist/functions/values.d.ts +59 -0
- package/dist/functions/values.js +216 -0
- package/dist/genres/chat/answerForm.d.ts +6 -4
- package/dist/genres/chat/answerForm.js +6 -4
- package/dist/genres/chat/create.d.ts +3 -3
- package/dist/genres/chat/create.js +28 -49
- package/dist/genres/chat/index.d.ts +5 -8
- package/dist/genres/chat/index.js +6 -8
- package/dist/genres/chat/memory.d.ts +36 -0
- package/dist/genres/chat/memory.js +117 -0
- package/dist/genres/chat/respond.d.ts +46 -17
- package/dist/genres/chat/respond.js +343 -1046
- package/dist/genres/chat/turnOrder.d.ts +7 -4
- package/dist/genres/chat/turnOrder.js +13 -12
- package/dist/genres/defaults.d.ts +432 -0
- package/dist/genres/defaults.js +349 -0
- package/dist/genres/dungeon-crawler/answerForm.d.ts +11 -0
- package/dist/genres/dungeon-crawler/answerForm.js +13 -0
- package/dist/genres/dungeon-crawler/calls.d.ts +32 -0
- package/dist/genres/dungeon-crawler/calls.js +77 -0
- package/dist/genres/dungeon-crawler/create.d.ts +71 -0
- package/dist/genres/dungeon-crawler/create.js +213 -0
- package/dist/genres/dungeon-crawler/death.d.ts +50 -0
- package/dist/genres/dungeon-crawler/death.js +168 -0
- package/dist/genres/dungeon-crawler/dice.d.ts +53 -0
- package/dist/genres/dungeon-crawler/dice.js +270 -0
- package/dist/genres/dungeon-crawler/fromRuleset.d.ts +147 -0
- package/dist/genres/dungeon-crawler/fromRuleset.js +162 -0
- package/dist/genres/dungeon-crawler/genesis.d.ts +38 -0
- package/dist/genres/dungeon-crawler/genesis.js +155 -0
- package/dist/genres/dungeon-crawler/goal.d.ts +76 -0
- package/dist/genres/dungeon-crawler/goal.js +321 -0
- package/dist/genres/dungeon-crawler/index.d.ts +59 -0
- package/dist/genres/dungeon-crawler/index.js +69 -0
- package/dist/genres/dungeon-crawler/interview.d.ts +874 -0
- package/dist/genres/dungeon-crawler/interview.js +404 -0
- package/dist/genres/dungeon-crawler/journal.d.ts +71 -0
- package/dist/genres/dungeon-crawler/journal.js +160 -0
- package/dist/genres/dungeon-crawler/kits.d.ts +153 -0
- package/dist/genres/dungeon-crawler/kits.js +228 -0
- package/dist/genres/dungeon-crawler/lore.d.ts +158 -0
- package/dist/genres/dungeon-crawler/lore.js +321 -0
- package/dist/genres/dungeon-crawler/names.d.ts +166 -0
- package/dist/genres/dungeon-crawler/names.js +160 -0
- package/dist/genres/dungeon-crawler/parley.d.ts +36 -0
- package/dist/genres/dungeon-crawler/parley.js +171 -0
- package/dist/genres/dungeon-crawler/preamble.d.ts +66 -0
- package/dist/genres/dungeon-crawler/preamble.js +648 -0
- package/dist/genres/dungeon-crawler/respond.d.ts +86 -0
- package/dist/genres/dungeon-crawler/respond.js +78 -0
- package/dist/genres/dungeon-crawler/rest.d.ts +82 -0
- package/dist/genres/dungeon-crawler/rest.js +287 -0
- package/dist/genres/dungeon-crawler/reveal.d.ts +38 -0
- package/dist/genres/dungeon-crawler/reveal.js +129 -0
- package/dist/genres/dungeon-crawler/round.d.ts +56 -0
- package/dist/genres/dungeon-crawler/round.js +45 -0
- package/dist/genres/dungeon-crawler/roundScript.d.ts +80 -0
- package/dist/genres/dungeon-crawler/roundScript.js +148 -0
- package/dist/genres/dungeon-crawler/scripts.d.ts +211 -0
- package/dist/genres/dungeon-crawler/scripts.js +946 -0
- package/dist/genres/dungeon-crawler/secrets.d.ts +63 -0
- package/dist/genres/dungeon-crawler/secrets.js +125 -0
- package/dist/genres/dungeon-crawler/shape.d.ts +257 -0
- package/dist/genres/dungeon-crawler/shape.js +268 -0
- package/dist/genres/dungeon-crawler/sheet.d.ts +504 -0
- package/dist/genres/dungeon-crawler/sheet.js +154 -0
- package/dist/genres/dungeon-crawler/story.d.ts +222 -0
- package/dist/genres/dungeon-crawler/story.js +1230 -0
- package/dist/genres/dungeon-crawler/storyScripts.d.ts +41 -0
- package/dist/genres/dungeon-crawler/storyScripts.js +158 -0
- package/dist/genres/dungeon-crawler/turnOrder.d.ts +31 -0
- package/dist/genres/dungeon-crawler/turnOrder.js +59 -0
- package/dist/genres/guide/answerForm.d.ts +1 -1
- package/dist/genres/guide/create.d.ts +1 -1
- package/dist/genres/guide/create.js +3 -6
- package/dist/genres/guide/index.d.ts +1 -0
- package/dist/genres/guide/index.js +1 -0
- package/dist/genres/guide/respond.d.ts +1 -1
- package/dist/genres/guide/respond.js +29 -12
- package/dist/genres/guide/summarizeScene.d.ts +7 -0
- package/dist/genres/guide/summarizeScene.js +14 -0
- package/dist/genres/index.d.ts +7 -3
- package/dist/genres/index.js +28 -18
- package/dist/genres/lair/answerForm.d.ts +4 -4
- package/dist/genres/lair/answerForm.js +3 -3
- package/dist/genres/lair/buildRoom.d.ts +18 -49
- package/dist/genres/lair/buildRoom.js +183 -216
- package/dist/genres/lair/castellanAction.d.ts +1 -1
- package/dist/genres/lair/castellanAction.js +7 -8
- package/dist/genres/lair/create.d.ts +1 -1
- package/dist/genres/lair/create.js +3 -6
- package/dist/genres/lair/fileCurrentRoom.d.ts +7 -0
- package/dist/genres/lair/fileCurrentRoom.js +118 -0
- package/dist/genres/lair/fileRoom.d.ts +5 -3
- package/dist/genres/lair/fileRoom.js +236 -221
- package/dist/genres/lair/index.d.ts +40 -40
- package/dist/genres/lair/index.js +40 -40
- package/dist/genres/lair/keeper.d.ts +7 -0
- package/dist/genres/lair/keeper.js +52 -0
- package/dist/genres/lair/names.d.ts +112 -0
- package/dist/genres/lair/names.js +203 -0
- package/dist/genres/lair/nudge.d.ts +1 -1
- package/dist/genres/lair/nudge.js +3 -7
- package/dist/genres/lair/reply.d.ts +53 -0
- package/dist/genres/lair/reply.js +887 -0
- package/dist/genres/lair/reveal.d.ts +1 -1
- package/dist/genres/lair/roll.d.ts +24 -0
- package/dist/genres/lair/roll.js +85 -0
- package/dist/genres/lair/rollAnswer.d.ts +37 -0
- package/dist/genres/lair/rollAnswer.js +107 -0
- package/dist/genres/lair/roomAnswer.d.ts +7 -5
- package/dist/genres/lair/roomAnswer.js +318 -292
- package/dist/genres/lair/scratchpad.d.ts +7 -0
- package/dist/genres/lair/scratchpad.js +79 -0
- package/dist/genres/lair/scripts.d.ts +128 -0
- package/dist/genres/lair/scripts.js +439 -0
- package/dist/genres/lair/summarizeScene.d.ts +18 -0
- package/dist/genres/lair/summarizeScene.js +40 -0
- package/dist/genres/lair/trap.d.ts +1 -1
- package/dist/genres/lair/turnOrder.js +9 -1
- package/dist/genres/lair/welcome.d.ts +7 -0
- package/dist/genres/lair/welcome.js +38 -0
- package/dist/genres/lair/whisper.d.ts +1 -1
- package/dist/genres/lair/whisper.js +5 -8
- package/dist/genres/story/advanceTime.d.ts +7 -0
- package/dist/genres/story/advanceTime.js +17 -0
- package/dist/genres/story/afterRest.d.ts +7 -0
- package/dist/genres/story/afterRest.js +53 -0
- package/dist/genres/{adventure → story}/answer.d.ts +4 -4
- package/dist/genres/{adventure → story}/answer.js +7 -11
- package/dist/genres/story/answerForm.d.ts +9 -0
- package/dist/genres/story/answerForm.js +11 -0
- package/dist/genres/{adventure → story}/ask.d.ts +16 -16
- package/dist/genres/{adventure → story}/ask.js +14 -18
- package/dist/genres/story/create.d.ts +7 -0
- package/dist/genres/story/create.js +65 -0
- package/dist/genres/story/generateImage.d.ts +7 -0
- package/dist/genres/{chat → story}/generateImage.js +25 -27
- package/dist/genres/story/illustrateScene.d.ts +23 -0
- package/dist/genres/story/illustrateScene.js +38 -0
- package/dist/genres/story/index.d.ts +35 -0
- package/dist/genres/story/index.js +38 -0
- package/dist/genres/story/keeperAction.d.ts +144 -0
- package/dist/genres/story/keeperAction.js +301 -0
- package/dist/genres/{adventure → story}/look.d.ts +5 -5
- package/dist/genres/{adventure → story}/look.js +17 -17
- package/dist/genres/{chat → story}/narrate.d.ts +4 -4
- package/dist/genres/{chat → story}/narrate.js +32 -15
- package/dist/genres/{chat → story}/narrateCharacter.d.ts +3 -3
- package/dist/genres/{chat → story}/narrateCharacter.js +34 -16
- package/dist/genres/story/reckon.d.ts +265 -0
- package/dist/genres/story/reckon.js +433 -0
- package/dist/genres/story/reckoning.d.ts +8 -0
- package/dist/genres/story/reckoning.js +40 -0
- package/dist/genres/story/respond.d.ts +27 -0
- package/dist/genres/story/respond.js +1331 -0
- package/dist/genres/story/rest.d.ts +10 -0
- package/dist/genres/story/rest.js +16 -0
- package/dist/genres/story/summarizeScene.d.ts +7 -0
- package/dist/genres/story/summarizeScene.js +14 -0
- package/dist/genres/story/sweep.d.ts +70 -0
- package/dist/genres/story/sweep.js +58 -0
- package/dist/genres/story/turnOrder.d.ts +10 -0
- package/dist/genres/story/turnOrder.js +33 -0
- package/dist/genres/{chat → story}/ui/authors-note/index.d.ts +1 -1
- package/dist/index.d.ts +70 -9
- package/dist/index.js +238 -65
- package/dist/loadouts.d.ts +39 -0
- package/dist/loadouts.js +130 -0
- package/dist/registry/entries.d.ts +47 -9
- package/dist/registry/entries.js +93 -31
- package/dist/registry/genres.d.ts +230 -49
- package/dist/registry/genres.js +861 -315
- package/dist/registry/hostState.d.ts +39 -0
- package/dist/registry/hostState.js +58 -0
- package/dist/registry/layouts.d.ts +156 -46
- package/dist/registry/layouts.js +287 -179
- package/dist/registry/primers.d.ts +8 -0
- package/dist/registry/primers.js +31 -0
- package/dist/registry/retired.d.ts +43 -0
- package/dist/registry/retired.js +81 -0
- package/dist/registry/rulesets.d.ts +1508 -0
- package/dist/registry/rulesets.js +271 -0
- package/dist/registry/slots.d.ts +504 -43
- package/dist/registry/slots.js +243 -79
- package/dist/registry/widgets.d.ts +25 -1
- package/dist/registry/widgets.js +1114 -104
- package/dist/rulesets/archetypes/cardGame.d.ts +5 -0
- package/dist/rulesets/archetypes/cardGame.js +49 -0
- package/dist/rulesets/archetypes/functionIds.d.ts +48 -0
- package/dist/rulesets/archetypes/functionIds.js +35 -0
- package/dist/rulesets/archetypes/index.d.ts +16 -0
- package/dist/rulesets/archetypes/index.js +12 -0
- package/dist/rulesets/archetypes/romance.d.ts +5 -0
- package/dist/rulesets/archetypes/romance.js +54 -0
- package/dist/rulesets/archetypes/sliceOfLife.d.ts +5 -0
- package/dist/rulesets/archetypes/sliceOfLife.js +45 -0
- package/dist/rulesets/archetypes/workplace.d.ts +5 -0
- package/dist/rulesets/archetypes/workplace.js +52 -0
- package/dist/rulesets/rulesAction.d.ts +7 -0
- package/dist/rulesets/rulesAction.js +51 -0
- package/dist/rulesets/sections.d.ts +74 -0
- package/dist/rulesets/sections.js +137 -0
- package/dist/rulesets/templates/d20Style.d.ts +4 -0
- package/dist/rulesets/templates/d20Style.js +60 -0
- package/dist/rulesets/templates/dicePool.d.ts +4 -0
- package/dist/rulesets/templates/dicePool.js +58 -0
- package/dist/rulesets/templates/dicelessPools.d.ts +4 -0
- package/dist/rulesets/templates/dicelessPools.js +59 -0
- package/dist/rulesets/templates/index.d.ts +25 -0
- package/dist/rulesets/templates/index.js +17 -0
- package/dist/rulesets/templates/slots.d.ts +137 -0
- package/dist/rulesets/templates/slots.js +33 -0
- package/dist/rulesets/vis-itineris/compendium/LICENSE-CC-BY-4.0.md +3 -0
- package/dist/rulesets/vis-itineris/compendium/armour.json +108 -0
- package/dist/rulesets/vis-itineris/compendium/classes.json +401 -0
- package/dist/rulesets/vis-itineris/compendium/conditions.json +100 -0
- package/dist/rulesets/vis-itineris/compendium/consumables.json +85 -0
- package/dist/rulesets/vis-itineris/compendium/feats.json +71 -0
- package/dist/rulesets/vis-itineris/compendium/gear.json +138 -0
- package/dist/rulesets/vis-itineris/compendium/index.d.ts +31 -0
- package/dist/rulesets/vis-itineris/compendium/index.js +31 -0
- package/dist/rulesets/vis-itineris/compendium/spells.json +429 -0
- package/dist/rulesets/vis-itineris/compendium/weapons.json +331 -0
- package/dist/rulesets/vis-itineris/conventions.d.ts +92 -0
- package/dist/rulesets/vis-itineris/conventions.js +325 -0
- package/dist/rulesets/vis-itineris/index.d.ts +29 -0
- package/dist/rulesets/vis-itineris/index.js +27 -0
- package/dist/rulesets/vis-itineris/primer/calendar.json +71 -0
- package/dist/rulesets/vis-itineris/primer/cast.json +375 -0
- package/dist/rulesets/vis-itineris/primer/entries.json +154 -0
- package/dist/rulesets/vis-itineris/primer/index.d.ts +17 -0
- package/dist/rulesets/vis-itineris/primer/index.js +27 -0
- package/dist/rulesets/vis-itineris/primer/leads.json +54 -0
- package/dist/rulesets/vis-itineris/primer/places.json +347 -0
- package/dist/rulesets/vis-itineris/primer/relationships.json +54 -0
- package/dist/rulesets/vis-itineris/repertoires.d.ts +49 -0
- package/dist/rulesets/vis-itineris/repertoires.js +491 -0
- package/dist/rulesets/vis-itineris/rules.d.ts +62 -0
- package/dist/rulesets/vis-itineris/rules.js +67 -0
- package/dist/rulesets/vis-itineris/ruleset.d.ts +27 -0
- package/dist/rulesets/vis-itineris/ruleset.js +136 -0
- package/dist/rulesets/vis-itineris/slots.d.ts +600 -0
- package/dist/rulesets/vis-itineris/slots.js +247 -0
- package/dist/rulesets/wherewithal/index.d.ts +79 -0
- package/dist/rulesets/wherewithal/index.js +252 -0
- package/dist/rulesets/wherewithal/ruleset.d.ts +23 -0
- package/dist/rulesets/wherewithal/ruleset.js +75 -0
- package/dist/rulesets/wherewithal/slots.d.ts +69 -0
- package/dist/rulesets/wherewithal/slots.js +31 -0
- package/dist/seed/presets.d.ts +25 -14
- package/dist/seed/presets.js +233 -188
- package/dist/seed/prompts.d.ts +68 -5
- package/dist/seed/prompts.js +585 -333
- package/dist/seed/scripts.d.ts +5 -0
- package/dist/seed/scripts.js +60 -0
- package/dist/seed/visItinerisScripts.d.ts +65 -0
- package/dist/seed/visItinerisScripts.js +241 -0
- package/dist/seed/wherewithalScripts.d.ts +26 -0
- package/dist/seed/wherewithalScripts.js +90 -0
- package/dist/shared/annexField.d.ts +19 -9
- package/dist/shared/annexField.js +169 -10
- package/dist/shared/builtins/branch.d.ts +1 -1
- package/dist/shared/builtins/builtIn.d.ts +1 -1
- package/dist/shared/builtins/delete.d.ts +1 -1
- package/dist/shared/builtins/edit.d.ts +1 -1
- package/dist/shared/builtins/hide.d.ts +1 -1
- package/dist/shared/builtins/swipe.d.ts +1 -1
- package/dist/shared/calls.d.ts +135 -0
- package/dist/shared/calls.js +187 -0
- package/dist/shared/chains.d.ts +112 -0
- package/dist/shared/chains.js +65 -0
- package/dist/shared/deltas.d.ts +17 -0
- package/dist/shared/deltas.js +45 -0
- package/dist/shared/describeLikeness.d.ts +14 -0
- package/dist/shared/describeLikeness.js +65 -0
- package/dist/shared/graphBuild.d.ts +1 -1
- package/dist/shared/graphBuild.js +4 -4
- package/dist/shared/illustrateScene.d.ts +36 -0
- package/dist/shared/illustrateScene.js +183 -0
- package/dist/shared/lore.d.ts +62 -0
- package/dist/shared/lore.js +56 -0
- package/dist/shared/portrait.d.ts +21 -0
- package/dist/shared/portrait.js +99 -0
- package/dist/shared/reckoning.d.ts +338 -0
- package/dist/shared/reckoning.js +677 -0
- package/dist/shared/saveMessage.d.ts +29 -0
- package/dist/shared/saveMessage.js +42 -0
- package/dist/shared/scriptSeed.d.ts +34 -0
- package/dist/shared/scriptSeed.js +43 -0
- package/dist/shared/spriteFill.d.ts +14 -0
- package/dist/shared/spriteFill.js +105 -0
- package/dist/shared/sprites.d.ts +4 -4
- package/dist/shared/sprites.js +5 -4
- package/dist/shared/summarize/character.d.ts +1 -1
- package/dist/shared/summarize/history.d.ts +1 -1
- package/dist/shared/summarize/index.d.ts +2 -0
- package/dist/shared/summarize/index.js +2 -0
- package/dist/shared/summarize/scene.d.ts +1 -1
- package/dist/shared/summarize/sceneIds.d.ts +15 -0
- package/dist/shared/summarize/sceneIds.js +15 -0
- package/dist/shared/summarize/summarizeScene.d.ts +113 -0
- package/dist/shared/summarize/summarizeScene.js +251 -0
- package/dist/shared/summarize/summarizeSpec.d.ts +30 -1
- package/dist/shared/summarize/summarizeSpec.js +90 -25
- package/dist/shared/summarize/world.d.ts +1 -1
- package/dist/shared/timePasses.d.ts +55 -0
- package/dist/shared/timePasses.js +82 -0
- package/dist/shared/toolLoop.d.ts +1 -1
- package/dist/shared/toolLoop.js +17 -10
- 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 +170 -0
- package/dist/shared/ui/annex/index.js +277 -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 +232 -0
- package/dist/shared/ui/chronicle/index.js +250 -0
- package/dist/shared/ui/conversation/channelLanes.d.ts +24 -0
- package/dist/shared/ui/conversation/channelLanes.js +58 -0
- package/dist/shared/ui/conversation/channelTabs.d.ts +34 -0
- package/dist/shared/ui/conversation/channelTabs.js +79 -0
- package/dist/shared/ui/conversation/composerTray.d.ts +2 -2
- package/dist/shared/ui/conversation/composerTray.js +35 -5
- package/dist/shared/ui/conversation/diceLine.d.ts +36 -0
- package/dist/shared/ui/conversation/diceLine.js +70 -0
- package/dist/shared/ui/conversation/dossier.d.ts +16 -311
- package/dist/shared/ui/conversation/dossier.js +11 -11
- package/dist/shared/ui/conversation/formAnswer.d.ts +12 -2
- package/dist/shared/ui/conversation/formAnswer.js +14 -3
- package/dist/shared/ui/conversation/index.d.ts +7 -0
- package/dist/shared/ui/conversation/index.js +15 -0
- package/dist/shared/ui/conversation/itemValues.d.ts +6 -4
- package/dist/shared/ui/conversation/itemValues.js +5 -6
- package/dist/shared/ui/conversation/messageVerbState.d.ts +14 -2
- package/dist/shared/ui/conversation/messageVerbState.js +8 -4
- package/dist/shared/ui/conversation/rewindStrip.d.ts +59 -0
- package/dist/shared/ui/conversation/rewindStrip.js +33 -0
- package/dist/shared/ui/conversation/storyDays.d.ts +21 -0
- package/dist/shared/ui/conversation/storyDays.js +23 -0
- package/dist/shared/ui/conversation/tableChannel.d.ts +12 -0
- package/dist/shared/ui/conversation/tableChannel.js +10 -0
- package/dist/shared/ui/lore-entries/index.d.ts +1 -1
- package/dist/shared/ui/places/index.d.ts +148 -0
- package/dist/shared/ui/places/index.js +249 -0
- package/dist/shared/ui/scene-portraits/portraits.d.ts +164 -18
- package/dist/shared/ui/scene-portraits/portraits.js +189 -42
- package/dist/shared/ui/session-state/barMath.js +5 -2
- package/dist/shared/ui/session-state/index.d.ts +9 -6
- package/dist/shared/ui/session-state/index.js +9 -6
- package/dist/shared/ui/session-state/pieces.d.ts +153 -0
- package/dist/shared/ui/session-state/pieces.js +468 -0
- package/dist/shared/ui/session-state/shapes.d.ts +46 -4
- package/dist/shared/ui/session-state/shapes.js +77 -5
- package/dist/shared/ui/session-state/stateView.d.ts +328 -75
- package/dist/shared/ui/session-state/stateView.js +482 -51
- package/dist/shared/ui/session-state/timeFormat.d.ts +88 -0
- package/dist/shared/ui/session-state/timeFormat.js +144 -0
- package/dist/shared/ui/turn-order/index.d.ts +146 -0
- package/dist/shared/ui/turn-order/index.js +273 -0
- package/dist/shared/ui/widgetContext.d.ts +19 -10
- package/package.json +74 -12
- package/components/shared/world-state/WorldStateWidget.svelte +0 -112
- package/components/shared/world-state/world-state.ts +0 -10
- package/dist/components/shared-3FGURYVS.js +0 -208
- package/dist/components/shared-FXYLABGF.js +0 -974
- package/dist/components/world-state.js +0 -226
- package/dist/components/world-state.source.json +0 -1
- package/dist/genres/adventure/advanceTime.d.ts +0 -11
- package/dist/genres/adventure/advanceTime.js +0 -17
- package/dist/genres/adventure/answerForm.d.ts +0 -9
- package/dist/genres/adventure/answerForm.js +0 -11
- package/dist/genres/adventure/create.d.ts +0 -36
- package/dist/genres/adventure/create.js +0 -62
- package/dist/genres/adventure/index.d.ts +0 -43
- package/dist/genres/adventure/index.js +0 -43
- package/dist/genres/adventure/keeperAction.d.ts +0 -24
- package/dist/genres/adventure/keeperAction.js +0 -150
- package/dist/genres/adventure/respond.d.ts +0 -199
- package/dist/genres/adventure/respond.js +0 -1108
- package/dist/genres/adventure/rest.d.ts +0 -10
- package/dist/genres/adventure/rest.js +0 -16
- package/dist/genres/adventure/turnOrder.d.ts +0 -10
- package/dist/genres/adventure/turnOrder.js +0 -27
- package/dist/genres/chat/generateImage.d.ts +0 -7
- package/dist/genres/lair/respond.d.ts +0 -310
- package/dist/genres/lair/respond.js +0 -1774
- /package/components/genres/{chat → story}/authors-note/AuthorsNote.svelte +0 -0
- /package/components/genres/{chat → story}/authors-note/AuthorsNoteWidget.svelte +0 -0
- /package/components/genres/{chat → story}/authors-note/authors-note.ts +0 -0
- /package/dist/genres/{chat → story}/ui/authors-note/index.js +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 The typed chain helpers core's specs share (A18, derive-don't-spell;
|
|
3
|
+
* lane 4, 2026-10-20): the scope a chain's callbacks receive, a chain with a
|
|
4
|
+
* node added, the chain a junction hands an arm written for several
|
|
5
|
+
* branches, a node named on its chain (its full key read off that chain's
|
|
6
|
+
* scope, never spelled), a step written only when a condition holds, and the
|
|
7
|
+
* session document a genre's pipelines read. Types only, but for `on`,
|
|
8
|
+
* `keyOf`, `heldForReview` and `chainIf` — so a graph built through them is
|
|
9
|
+
* byte-identical to one written by hand.
|
|
10
|
+
*/
|
|
11
|
+
import type { ChainBuilder, JunctionBuilder, NodesOf, PortDecl, PresetBuilder, Scope, SessionOf, SpecBuilder } from '@serene-pub/sdk';
|
|
12
|
+
/**
|
|
13
|
+
* Any chain a helper extends — a spec's spine (`SpecBuilder`, whose clause
|
|
14
|
+
* methods take no qualifier, so it is not a `ChainBuilder<any, any>` to the
|
|
15
|
+
* compiler), a branch, an each's item. @internal
|
|
16
|
+
*/
|
|
17
|
+
export type Chain = ChainBuilder<any, any> | SpecBuilder<any, any>;
|
|
18
|
+
/** A chain, read as the one class both kinds are — for a helper that only adds nodes. @internal */
|
|
19
|
+
export declare const chainOf: (c: Chain) => ChainBuilder<any, any>;
|
|
20
|
+
/** The `$` a callback on chain `B` receives: the nodes declared so far, its own by short key. @internal */
|
|
21
|
+
export type ScopeOf<B> = B extends SpecBuilder<infer N, any> ? Scope<N> : B extends ChainBuilder<infer N, infer P> ? Scope<N, P> : never;
|
|
22
|
+
/** A read off chain `B`'s scope — `($) => $.crib.main` — handed to a helper in place of a dotted path. @internal */
|
|
23
|
+
export type ReadOn<B> = ($: ScopeOf<B>) => unknown;
|
|
24
|
+
type Qualified<P extends string, K extends string> = P extends '' ? K : `${P}.${K}`;
|
|
25
|
+
/**
|
|
26
|
+
* Chain `B` with node `K` added, publishing `Ports` — a spine stays a spine
|
|
27
|
+
* (its `.defaults()` and `.build()` still offered). @internal
|
|
28
|
+
*/
|
|
29
|
+
export type Plus<B, K extends string, Ports extends PortDecl> = B extends SpecBuilder<infer N, infer A> ? SpecBuilder<N & {
|
|
30
|
+
[X in K]: Ports;
|
|
31
|
+
}, A> : B extends ChainBuilder<infer N, infer P> ? ChainBuilder<N & {
|
|
32
|
+
[X in Qualified<P, K>]: Ports;
|
|
33
|
+
}, P> : never;
|
|
34
|
+
/**
|
|
35
|
+
* The node map a chain has built — a spine's too (`NodesOf` reads chains, and
|
|
36
|
+
* a spine is not one to the compiler). @internal
|
|
37
|
+
*/
|
|
38
|
+
export type ChainNodes<B> = B extends SpecBuilder<infer N, any> ? N : NodesOf<B>;
|
|
39
|
+
/**
|
|
40
|
+
* The chain a junction `J` hands its branch `Name` — for an arm written once
|
|
41
|
+
* and mounted on several branches (`BranchOf<typeof j, 'full' | 'review'>`):
|
|
42
|
+
* the nodes before the junction stay concrete, so the arm's `$` is typed. @internal
|
|
43
|
+
*/
|
|
44
|
+
export type BranchOf<J, Name extends string> = J extends JunctionBuilder<infer N, infer Id, any> ? ChainBuilder<N, `${Id}.${Name}`> : never;
|
|
45
|
+
/**
|
|
46
|
+
* 🚧 A node named on the chain that declares it (A18): its full key —
|
|
47
|
+
* `reckon.on.crib` for `on(r, 'crib')` — is read off that chain's own scope
|
|
48
|
+
* when the defaults are written, never spelled as a prefix and a key. Named
|
|
49
|
+
* before the node exists, so a `Wiring` keeps the order the graph was built
|
|
50
|
+
* in. @internal
|
|
51
|
+
*/
|
|
52
|
+
export interface NodeOn {
|
|
53
|
+
readonly chain: Chain;
|
|
54
|
+
readonly key: string;
|
|
55
|
+
}
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const on: (chain: Chain, key: string) => NodeOn;
|
|
58
|
+
/**
|
|
59
|
+
* 🚧 A node named BEFORE the chain that declares it exists (A18) — a `Wiring`
|
|
60
|
+
* entry whose place among the declared defaults comes ahead of the step
|
|
61
|
+
* (their order is the document's). `.on(chain)` binds it once the chain is
|
|
62
|
+
* built, and hands the chain back; its key is read off that chain's scope as
|
|
63
|
+
* `on`'s is. Resolving one never bound throws. @internal
|
|
64
|
+
*/
|
|
65
|
+
export interface NodeLater extends NodeOn {
|
|
66
|
+
on<B extends Chain>(chain: B): B;
|
|
67
|
+
}
|
|
68
|
+
/** @internal */
|
|
69
|
+
export declare const later: (key: string) => NodeLater;
|
|
70
|
+
/**
|
|
71
|
+
* The full key of a node this chain declares LATER, beside one it already
|
|
72
|
+
* has — `sibling($.resolve, 'planWrite')` — for a config reference to a step
|
|
73
|
+
* not yet in scope (`slot.connectionOf`, `slot.samplingOf`): the chain's own
|
|
74
|
+
* qualifier, read off a node of it, never spelled. @internal
|
|
75
|
+
*/
|
|
76
|
+
export declare const sibling: (ref: {
|
|
77
|
+
readonly node: string;
|
|
78
|
+
}, key: string) => string;
|
|
79
|
+
/**
|
|
80
|
+
* The full key of a node named on its chain — the chain's scope resolves the
|
|
81
|
+
* short key exactly as `$.crib` does, so it is the key the row carries. A key
|
|
82
|
+
* the chain never declared throws (the scope's own refusal). @internal
|
|
83
|
+
*/
|
|
84
|
+
export declare const keyOf: (n: NodeOn | string) => string;
|
|
85
|
+
/** Every write `review` named, held at the review gate in the declared defaults. @internal */
|
|
86
|
+
export declare const heldForReview: <P extends PresetBuilder<any>>(p: P, review: ReadonlyArray<NodeOn | string>) => P;
|
|
87
|
+
/**
|
|
88
|
+
* References read off a chain's scope as it stands — `readOn(named, ($) =>
|
|
89
|
+
* $.setSeat)` — for the steps deeper down (a junction's branches) of a
|
|
90
|
+
* helper mounted on more than one chain, where no full path names them. A
|
|
91
|
+
* reference is the same `{ node, port }` wherever it is used. @internal
|
|
92
|
+
*/
|
|
93
|
+
export declare const readOn: <B extends Chain, R>(chain: B, read: ($: ScopeOf<B>) => R) => R;
|
|
94
|
+
/**
|
|
95
|
+
* A step (or several) written only when `cond` holds — the chain typed as if
|
|
96
|
+
* it were, so what follows reads the step by name where the same `cond`
|
|
97
|
+
* guards the read. A read of a step that was not written is still refused, at
|
|
98
|
+
* build, by the scope. @internal
|
|
99
|
+
*/
|
|
100
|
+
export declare const chainIf: <B extends Chain, R extends Chain>(cond: boolean, chain: B, fn: (chain: B) => R) => R;
|
|
101
|
+
/**
|
|
102
|
+
* The session document an inlet hands a pipeline (`$.input.session`), its
|
|
103
|
+
* `fields` keyed as genre `G` declares them — what a junction reads by a
|
|
104
|
+
* typed path: `(v: SessionDocOf<typeof storyGenre>) => v.fields.turnMode`. @internal
|
|
105
|
+
*/
|
|
106
|
+
export interface SessionDocOf<G> {
|
|
107
|
+
readonly fields: SessionOf<G>['fields'];
|
|
108
|
+
/** 🚧 Each routine in force's mode, by the pipeline it runs (R55) — `SessionSettingsV1.routineModes`. */
|
|
109
|
+
readonly routineModes?: Readonly<Record<string, 'off' | 'review' | 'full'>>;
|
|
110
|
+
}
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=chains.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 The typed chain helpers core's specs share (A18, derive-don't-spell;
|
|
3
|
+
* lane 4, 2026-10-20): the scope a chain's callbacks receive, a chain with a
|
|
4
|
+
* node added, the chain a junction hands an arm written for several
|
|
5
|
+
* branches, a node named on its chain (its full key read off that chain's
|
|
6
|
+
* scope, never spelled), a step written only when a condition holds, and the
|
|
7
|
+
* session document a genre's pipelines read. Types only, but for `on`,
|
|
8
|
+
* `keyOf`, `heldForReview` and `chainIf` — so a graph built through them is
|
|
9
|
+
* byte-identical to one written by hand.
|
|
10
|
+
*/
|
|
11
|
+
/** A chain, read as the one class both kinds are — for a helper that only adds nodes. @internal */
|
|
12
|
+
export const chainOf = (c) => c;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const on = (chain, key) => ({ chain, key });
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const later = (key) => {
|
|
17
|
+
let bound;
|
|
18
|
+
return {
|
|
19
|
+
key,
|
|
20
|
+
get chain() {
|
|
21
|
+
if (!bound)
|
|
22
|
+
throw new Error(`later('${key}'): named in the wiring, never bound to the chain that declares it`);
|
|
23
|
+
return bound;
|
|
24
|
+
},
|
|
25
|
+
on(chain) {
|
|
26
|
+
bound = chain;
|
|
27
|
+
return chain;
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The full key of a node this chain declares LATER, beside one it already
|
|
33
|
+
* has — `sibling($.resolve, 'planWrite')` — for a config reference to a step
|
|
34
|
+
* not yet in scope (`slot.connectionOf`, `slot.samplingOf`): the chain's own
|
|
35
|
+
* qualifier, read off a node of it, never spelled. @internal
|
|
36
|
+
*/
|
|
37
|
+
export const sibling = (ref, key) => `${ref.node.slice(0, ref.node.lastIndexOf('.') + 1)}${key}`;
|
|
38
|
+
/**
|
|
39
|
+
* The full key of a node named on its chain — the chain's scope resolves the
|
|
40
|
+
* short key exactly as `$.crib` does, so it is the key the row carries. A key
|
|
41
|
+
* the chain never declared throws (the scope's own refusal). @internal
|
|
42
|
+
*/
|
|
43
|
+
export const keyOf = (n) => typeof n === 'string' ? n : chainOf(n.chain).resolvePublic((s) => s[n.key]).node;
|
|
44
|
+
/** Every write `review` named, held at the review gate in the declared defaults. @internal */
|
|
45
|
+
export const heldForReview = (p, review) => {
|
|
46
|
+
let out = p;
|
|
47
|
+
for (const node of review)
|
|
48
|
+
out = out.settings(keyOf(node), { review: 'on' });
|
|
49
|
+
return out;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* References read off a chain's scope as it stands — `readOn(named, ($) =>
|
|
53
|
+
* $.setSeat)` — for the steps deeper down (a junction's branches) of a
|
|
54
|
+
* helper mounted on more than one chain, where no full path names them. A
|
|
55
|
+
* reference is the same `{ node, port }` wherever it is used. @internal
|
|
56
|
+
*/
|
|
57
|
+
export const readOn = (chain, read) => chainOf(chain).resolvePublic(read);
|
|
58
|
+
/**
|
|
59
|
+
* A step (or several) written only when `cond` holds — the chain typed as if
|
|
60
|
+
* it were, so what follows reads the step by name where the same `cond`
|
|
61
|
+
* guards the read. A read of a step that was not written is still refused, at
|
|
62
|
+
* build, by the scope. @internal
|
|
63
|
+
*/
|
|
64
|
+
export const chainIf = (cond, chain, fn) => cond ? fn(chain) : chain;
|
|
65
|
+
//# sourceMappingURL=chains.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 **One delta, read one way** (moved from Dungeon Crawler's script
|
|
3
|
+
* preamble on 2026-10-19, when the Story genre's reckoning became its second
|
|
4
|
+
* reader): `deltaOf(raw)` turns a delta as a model writes it — every member
|
|
5
|
+
* present, empty text and `0` saying "none" (the grammar-compiling
|
|
6
|
+
* families) — into the ruleset handler's shape (`core:task/ruleset-resolve@1`'s
|
|
7
|
+
* `deltas`), or `null` when it names nothing to change.
|
|
8
|
+
*
|
|
9
|
+
* ES5 source, spliced into a script preamble; the preamble supplies `own`,
|
|
10
|
+
* `text`, `num`, `ucSlotName` and `NOT_FOR_DELTAS` (the slots no delta may
|
|
11
|
+
* touch — an empty list where every slot may move). Byte for byte the text
|
|
12
|
+
* Dungeon Crawler's preamble always carried, so its seeded scripts are the
|
|
13
|
+
* sources they were.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare const DELTA_OF_JS = "// \u2500\u2500 A delta, as the story turn's Planner and the Planner's talk propose it\n// (`DUNGEON_CRAWLER_DELTA_SCHEMA`), in the ruleset handler's shape, or null\n// when it names nothing to change. The schema's enums say which ops, slots\n// and repertoires there are (AUDIT C7: none is re-validated here); empty\n// members are dropped. \u2500\u2500\nvar CHECK_OPS = [\"hit\", \"use\", \"traverse\"];\nfunction deltaOf(raw) {\n\tvar d = own(raw);\n\tvar owner = text(d.owner), op = text(d.op);\n\tif (!owner || !op) return null;\n\tvar out = { owner: owner, op: op };\n\t// The slots no delta may touch (the standing order, the fate, the\n\t// clock, the table's rules) are left out of the schema's enum \u2014 and\n\t// refused here too, since a backend that ignores the grammar is still a\n\t// backend (AUDIT C7 kept one guard, not two).\n\tif (text(d.slot) && NOT_FOR_DELTAS.indexOf(ucSlotName(text(d.slot))) >= 0) return null;\n\tif (text(d.slot)) out.slot = text(d.slot);\n\tif (text(d.repertoire)) out.repertoire = text(d.repertoire);\n\tif (text(d.piece)) out.piece = text(d.piece);\n\tif (text(d.value)) out.value = /^-?\\d+(\\.\\d+)?$/.test(text(d.value)) ? Number(text(d.value)) : text(d.value);\n\tif (text(d.check)) out.check = text(d.check);\n\tif (num(d.against, 0) > 0) out.against = Math.round(num(d.against, 0));\n\t// \uD83D\uDEA7 Who a hit or a use is aimed at (P2-1).\n\tif (text(d.aimedAt)) out.aimedAt = text(d.aimedAt);\n\tif (text(d.reason)) out.reason = text(d.reason);\n\tif (!out.slot && !out.repertoire && !out.check && CHECK_OPS.indexOf(op) < 0) return null;\n\treturn out;\n}\n";
|
|
17
|
+
//# sourceMappingURL=deltas.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 **One delta, read one way** (moved from Dungeon Crawler's script
|
|
3
|
+
* preamble on 2026-10-19, when the Story genre's reckoning became its second
|
|
4
|
+
* reader): `deltaOf(raw)` turns a delta as a model writes it — every member
|
|
5
|
+
* present, empty text and `0` saying "none" (the grammar-compiling
|
|
6
|
+
* families) — into the ruleset handler's shape (`core:task/ruleset-resolve@1`'s
|
|
7
|
+
* `deltas`), or `null` when it names nothing to change.
|
|
8
|
+
*
|
|
9
|
+
* ES5 source, spliced into a script preamble; the preamble supplies `own`,
|
|
10
|
+
* `text`, `num`, `ucSlotName` and `NOT_FOR_DELTAS` (the slots no delta may
|
|
11
|
+
* touch — an empty list where every slot may move). Byte for byte the text
|
|
12
|
+
* Dungeon Crawler's preamble always carried, so its seeded scripts are the
|
|
13
|
+
* sources they were.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export const DELTA_OF_JS = `// ── A delta, as the story turn's Planner and the Planner's talk propose it
|
|
17
|
+
// (\`DUNGEON_CRAWLER_DELTA_SCHEMA\`), in the ruleset handler's shape, or null
|
|
18
|
+
// when it names nothing to change. The schema's enums say which ops, slots
|
|
19
|
+
// and repertoires there are (AUDIT C7: none is re-validated here); empty
|
|
20
|
+
// members are dropped. ──
|
|
21
|
+
var CHECK_OPS = ["hit", "use", "traverse"];
|
|
22
|
+
function deltaOf(raw) {
|
|
23
|
+
var d = own(raw);
|
|
24
|
+
var owner = text(d.owner), op = text(d.op);
|
|
25
|
+
if (!owner || !op) return null;
|
|
26
|
+
var out = { owner: owner, op: op };
|
|
27
|
+
// The slots no delta may touch (the standing order, the fate, the
|
|
28
|
+
// clock, the table's rules) are left out of the schema's enum — and
|
|
29
|
+
// refused here too, since a backend that ignores the grammar is still a
|
|
30
|
+
// backend (AUDIT C7 kept one guard, not two).
|
|
31
|
+
if (text(d.slot) && NOT_FOR_DELTAS.indexOf(ucSlotName(text(d.slot))) >= 0) return null;
|
|
32
|
+
if (text(d.slot)) out.slot = text(d.slot);
|
|
33
|
+
if (text(d.repertoire)) out.repertoire = text(d.repertoire);
|
|
34
|
+
if (text(d.piece)) out.piece = text(d.piece);
|
|
35
|
+
if (text(d.value)) out.value = /^-?\\d+(\\.\\d+)?$/.test(text(d.value)) ? Number(text(d.value)) : text(d.value);
|
|
36
|
+
if (text(d.check)) out.check = text(d.check);
|
|
37
|
+
if (num(d.against, 0) > 0) out.against = Math.round(num(d.against, 0));
|
|
38
|
+
// 🚧 Who a hit or a use is aimed at (P2-1).
|
|
39
|
+
if (text(d.aimedAt)) out.aimedAt = text(d.aimedAt);
|
|
40
|
+
if (text(d.reason)) out.reason = text(d.reason);
|
|
41
|
+
if (!out.slot && !out.repertoire && !out.check && CHECK_OPS.indexOf(op) < 0) return null;
|
|
42
|
+
return out;
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
//# sourceMappingURL=deltas.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @experimental */
|
|
2
|
+
export declare const DESCRIBE_LIKENESS_SPEC_ID = "core:spec/describe-likeness";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare const DESCRIBE_LIKENESS_VERSION = "1.0.0";
|
|
5
|
+
/** The step keys a host reads by name. @internal */
|
|
6
|
+
export declare const DESCRIBE_LIKENESS_NODES: {
|
|
7
|
+
readonly describe: "generate";
|
|
8
|
+
readonly clean: "clean";
|
|
9
|
+
};
|
|
10
|
+
/** The shipped row's seed key. @internal */
|
|
11
|
+
export declare const DESCRIBE_LIKENESS_PROMPT_SEED_KEY = "pipeline-prompt:core:oracle/describe-image:prompts:describe-likeness";
|
|
12
|
+
/** @experimental */
|
|
13
|
+
export declare const describeLikenessSpec: () => import("@serene-pub/sdk").CompiledSpec<string>;
|
|
14
|
+
//# sourceMappingURL=describeLikeness.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 **Describe a likeness** — a card's likeness prompt written from its
|
|
3
|
+
* likeness image (DESIGN-image-generation §5, *Describe from image*;
|
|
4
|
+
* follow-up D1, 2026-10-12).
|
|
5
|
+
*
|
|
6
|
+
* Pressed on the card's Likeness tab: a card action, so it runs with no
|
|
7
|
+
* session. Three steps, every input written out:
|
|
8
|
+
*
|
|
9
|
+
* input (card action) the card's likeness image (else its avatar)
|
|
10
|
+
* generate (oracle describe-image) a model that reads pictures, asked the
|
|
11
|
+
* **Describe a likeness** row's question
|
|
12
|
+
* clean (clean-image-prompt) the answer as one tag line
|
|
13
|
+
*
|
|
14
|
+
* No outlet: nothing is written. The host reads `clean`'s prompt off the
|
|
15
|
+
* receipt and hands it to the Likeness tab, which fills the **Likeness
|
|
16
|
+
* prompt** field; the person saves it with the rest of the form, or not.
|
|
17
|
+
*
|
|
18
|
+
* No loadout either: the describe step's connection requires
|
|
19
|
+
* `text+image->text`, so an unset slot runs on that job's default — the
|
|
20
|
+
* model the pub reads pictures with — and the tab shows the button only
|
|
21
|
+
* when one is set. The step is keyed `generate` because that is the oracle
|
|
22
|
+
* the host's config world projects a job default onto by what its slot
|
|
23
|
+
* `requires` (`config/world.ts`, `ORACLE_NODE_KEY`); any other key would
|
|
24
|
+
* fall back by SHAPE, and this node's shape is text's.
|
|
25
|
+
*
|
|
26
|
+
* Genre-less (`core:spec/<what>`, NOMENCLATURE §24 rule 7): a card belongs to
|
|
27
|
+
* no genre.
|
|
28
|
+
*/
|
|
29
|
+
import { compile, spec, slot } from '@serene-pub/sdk';
|
|
30
|
+
import * as C from '@serene-pub/contracts';
|
|
31
|
+
/** @experimental */
|
|
32
|
+
export const DESCRIBE_LIKENESS_SPEC_ID = 'core:spec/describe-likeness';
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const DESCRIBE_LIKENESS_VERSION = '1.0.0';
|
|
35
|
+
/** The step keys a host reads by name. @internal */
|
|
36
|
+
export const DESCRIBE_LIKENESS_NODES = {
|
|
37
|
+
describe: 'generate',
|
|
38
|
+
clean: 'clean',
|
|
39
|
+
};
|
|
40
|
+
/** The shipped row's seed key. @internal */
|
|
41
|
+
export const DESCRIBE_LIKENESS_PROMPT_SEED_KEY = 'pipeline-prompt:core:oracle/describe-image:prompts:describe-likeness';
|
|
42
|
+
/** @experimental */
|
|
43
|
+
export const describeLikenessSpec = () => compile(spec(DESCRIBE_LIKENESS_SPEC_ID, {
|
|
44
|
+
version: DESCRIBE_LIKENESS_VERSION,
|
|
45
|
+
taxonomy: { role: 'action' },
|
|
46
|
+
})
|
|
47
|
+
/** The card action: the card's likeness image, resolved once by the host. */
|
|
48
|
+
.inlet('input', C.cardAction.v1())
|
|
49
|
+
/** The picture, read by a model that sees images, against the prompt row. */
|
|
50
|
+
.oracle('generate', ($) => C.describeImage.v1({
|
|
51
|
+
images: $.input.likenessImage,
|
|
52
|
+
connection: slot.connection(),
|
|
53
|
+
sampling: slot.sampling(),
|
|
54
|
+
prompts: slot.prompts(),
|
|
55
|
+
}), {
|
|
56
|
+
expose: {
|
|
57
|
+
status: 'Looking at the picture',
|
|
58
|
+
label: 'Describe',
|
|
59
|
+
purpose: "Writes the likeness prompt from the character's picture.",
|
|
60
|
+
},
|
|
61
|
+
})
|
|
62
|
+
/** Quotes, labels and line breaks out: one comma-separated line. */
|
|
63
|
+
.task('clean', ($) => C.cleanImagePrompt.v1({ text: $.generate.text }))
|
|
64
|
+
.build());
|
|
65
|
+
//# sourceMappingURL=describeLikeness.js.map
|
|
@@ -37,5 +37,5 @@ export declare const GRAPH_BUILD_SPEC_ID = "core:spec/graph-build";
|
|
|
37
37
|
/** @internal */
|
|
38
38
|
export declare const GRAPH_BUILD_VERSION = "1.2.0";
|
|
39
39
|
/** @experimental */
|
|
40
|
-
export declare const graphBuildSpec: () => import("@serene-pub/sdk").
|
|
40
|
+
export declare const graphBuildSpec: () => import("@serene-pub/sdk").CompiledSpec<string>;
|
|
41
41
|
//# sourceMappingURL=graphBuild.d.ts.map
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* health probe then reads as a dead server. The steps therefore default to the
|
|
33
33
|
* same config, and diverging is a deliberate act rather than the starting state.
|
|
34
34
|
*/
|
|
35
|
-
import { compile, spec, slot } from "@serene-pub/sdk";
|
|
35
|
+
import { compile, spec, slot, ITEM } from "@serene-pub/sdk";
|
|
36
36
|
import * as C from "@serene-pub/contracts";
|
|
37
37
|
/** @experimental */
|
|
38
38
|
export const GRAPH_BUILD_SPEC_ID = "core:spec/graph-build";
|
|
@@ -42,9 +42,9 @@ export const GRAPH_BUILD_SPEC_ID = "core:spec/graph-build";
|
|
|
42
42
|
// because a published version is immutable.
|
|
43
43
|
/** @internal */
|
|
44
44
|
export const GRAPH_BUILD_VERSION = "1.2.0";
|
|
45
|
-
/** Every step takes the scene it is working on and its own three slots. */
|
|
45
|
+
/** Every step takes the scene it is working on (the iteration's item) and its own three slots. */
|
|
46
46
|
const step = ($) => ({
|
|
47
|
-
scenes:
|
|
47
|
+
scenes: $[ITEM],
|
|
48
48
|
connection: slot.connection(),
|
|
49
49
|
sampling: slot.sampling(),
|
|
50
50
|
prompts: slot.prompts()
|
|
@@ -109,6 +109,6 @@ export const graphBuildSpec = () => compile(spec(GRAPH_BUILD_SPEC_ID, {
|
|
|
109
109
|
purpose: 'Notices when a character dies, goes missing or leaves the story during a scene.',
|
|
110
110
|
},
|
|
111
111
|
}))
|
|
112
|
-
.outlet("propose", ($) => C.graphProposal.v1({ proposal: $.building.main }))
|
|
112
|
+
.outlet("propose", ($) => C.graphProposal.v1({ proposal: $.building.main, sources: $.scenes.scenes }))
|
|
113
113
|
.build());
|
|
114
114
|
//# sourceMappingURL=graphBuild.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { GenreDecl } from '@serene-pub/sdk';
|
|
2
|
+
/** The action's key — `<scene spec>#illustrate-scene`. @experimental */
|
|
3
|
+
export declare const ILLUSTRATE_SCENE_ACTION_KEY = "illustrate-scene";
|
|
4
|
+
/** The step keys a host or a test reads by name. @internal */
|
|
5
|
+
export declare const STORY_ILLUSTRATE_SCENE_NODES: {
|
|
6
|
+
readonly history: "gather.history.read";
|
|
7
|
+
readonly likeness: "likeness";
|
|
8
|
+
readonly write: "write";
|
|
9
|
+
readonly clean: "clean";
|
|
10
|
+
readonly draw: "draw";
|
|
11
|
+
readonly placement: "placement";
|
|
12
|
+
readonly post: "toMessage.yes.post";
|
|
13
|
+
readonly backdrop: "toBackdrop.yes.set";
|
|
14
|
+
};
|
|
15
|
+
/** The scene prompt's two rows' seed keys. @internal */
|
|
16
|
+
export declare const STORY_ILLUSTRATE_SCENE_PROMPT_SEED_KEYS: {
|
|
17
|
+
readonly tags: "pipeline-prompt:core:task/build-narrator-context:prompts:scene-prompt-tags";
|
|
18
|
+
readonly prose: "pipeline-prompt:core:task/build-narrator-context:prompts:scene-prompt-prose";
|
|
19
|
+
};
|
|
20
|
+
/** What a genre's Scene spec passes in: its identity, and how it is fired. @internal */
|
|
21
|
+
export interface IllustrateSceneOptions {
|
|
22
|
+
id: string;
|
|
23
|
+
version: string;
|
|
24
|
+
/** ⏳ Kept for callers; a pipeline names no genre since 2026-10-20 (`{ suits }`). */
|
|
25
|
+
genre?: GenreDecl;
|
|
26
|
+
/**
|
|
27
|
+
* 🚧 `action` (the default): the Scene action, a person's press. `routine`
|
|
28
|
+
* (2026-10-20): the same graph as a routine — *Picture each new scene*,
|
|
29
|
+
* fired when a scene opens (`core:inlet/routine@1`), with no action and no
|
|
30
|
+
* payload, so the step's own `placement` decides.
|
|
31
|
+
*/
|
|
32
|
+
fired?: 'action' | 'routine';
|
|
33
|
+
}
|
|
34
|
+
/** The Scene action's graph, for one genre's spec. @internal */
|
|
35
|
+
export declare const illustrateSceneGraph: ({ id, version, fired }: IllustrateSceneOptions) => import("@serene-pub/sdk").CompiledSpec<string>;
|
|
36
|
+
//# sourceMappingURL=illustrateScene.d.ts.map
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 The **Scene action** — illustrate the scene as it stands
|
|
3
|
+
* (DESIGN-image-generation §6.4, unit I9, 2026-10-12).
|
|
4
|
+
*
|
|
5
|
+
* Not the §9 *scene* (a bounded stretch of a session that a summary files):
|
|
6
|
+
* this pipeline draws ONE picture of where the session is right now. Every
|
|
7
|
+
* word for it is qualified — *the Scene action*, *illustrate scene*.
|
|
8
|
+
*
|
|
9
|
+
* input (session action) one press; no form
|
|
10
|
+
* gather (history + cast) the last few lines, who is here
|
|
11
|
+
* likeness (likeness-images) everyone on stage's likeness image
|
|
12
|
+
* context (narrator builder) the **scene prompt** row, `{{likenesses}}`
|
|
13
|
+
* write (generate-text) a quiet call: a tag list, not a line
|
|
14
|
+
* clean (clean-image-prompt) the reply as one prompt line
|
|
15
|
+
* draw (generate-image) landscape, the likenesses as references
|
|
16
|
+
* placement (picture-placement) message, backdrop or both
|
|
17
|
+
* post / set (create-message, set-backdrop), each behind its own junction
|
|
18
|
+
*
|
|
19
|
+
* ## The quiet call
|
|
20
|
+
*
|
|
21
|
+
* Adventure's Ask, without its JSON: the narrator builder (no speaker, so no
|
|
22
|
+
* seed line a character would continue), a prose transcript of the last
|
|
23
|
+
* `limit` lines (6), and the shipped row **Scene prompt from the last lines**
|
|
24
|
+
* asking for a comma-separated tag list — setting, time of day, weather, who
|
|
25
|
+
* is present by their likeness tags, composition, no names. **Scene prompt,
|
|
26
|
+
* prose** is the second row, for a
|
|
27
|
+
* hosted picture model that reads sentences. Nothing it writes reaches the
|
|
28
|
+
* transcript; the run's card shows it.
|
|
29
|
+
*
|
|
30
|
+
* ## Placement
|
|
31
|
+
*
|
|
32
|
+
* `placement` (`message` · `backdrop` · `both`, default `both`) is a
|
|
33
|
+
* parameter on its own step, so an admin changes it in Admin › Pipelines;
|
|
34
|
+
* the Backdrop widget's *Illustrate* fires this action with
|
|
35
|
+
* `{ placement: 'backdrop' }` in its payload, which wins.
|
|
36
|
+
*
|
|
37
|
+
* ## Review: off
|
|
38
|
+
*
|
|
39
|
+
* Ruled 2026-10-12: one press, one picture. The *review-on* author preset
|
|
40
|
+
* retired with configurations (R38, 2026-10-20): a registration's values
|
|
41
|
+
* park the picture step (`{ draw: { settings: { review: 'on' } } }`).
|
|
42
|
+
*
|
|
43
|
+
* ## Loadouts
|
|
44
|
+
*
|
|
45
|
+
* The quiet call runs on **Scene prompt**, the picture on **Scene**; each
|
|
46
|
+
* falls back to Reply and Images when unfilled.
|
|
47
|
+
*
|
|
48
|
+
* ## One graph, two ways to fire it
|
|
49
|
+
*
|
|
50
|
+
* The Scene action (`core:spec/story-illustrate-scene`, a press) and, since
|
|
51
|
+
* 2026-10-20, *Picture each new scene* (`core:spec/story-illustrate-new-scene`,
|
|
52
|
+
* a routine fired when a scene opens) both call `illustrateSceneGraph` with
|
|
53
|
+
* their own id and version; the graph is written once, and the two differ
|
|
54
|
+
* only in identity and inlet. Neither names a genre: the Story genre's
|
|
55
|
+
* defaults register them.
|
|
56
|
+
* Both use the narrator builder (the scene prompt rows live in its pool and
|
|
57
|
+
* it lays out `{{likenesses}}`), not Adventure Look's scene builder: the
|
|
58
|
+
* picture is drawn from the last lines and the cast's looks, not the lore.
|
|
59
|
+
*/
|
|
60
|
+
import { compile, spec, slot, coreEvents } from '@serene-pub/sdk';
|
|
61
|
+
import * as C from '@serene-pub/contracts';
|
|
62
|
+
import { CORE_LOADOUT } from '../loadouts.js';
|
|
63
|
+
/** The action's key — `<scene spec>#illustrate-scene`. @experimental */
|
|
64
|
+
export const ILLUSTRATE_SCENE_ACTION_KEY = 'illustrate-scene';
|
|
65
|
+
/** The step keys a host or a test reads by name. @internal */
|
|
66
|
+
export const STORY_ILLUSTRATE_SCENE_NODES = {
|
|
67
|
+
history: 'gather.history.read',
|
|
68
|
+
likeness: 'likeness',
|
|
69
|
+
write: 'write',
|
|
70
|
+
clean: 'clean',
|
|
71
|
+
draw: 'draw',
|
|
72
|
+
placement: 'placement',
|
|
73
|
+
post: 'toMessage.yes.post',
|
|
74
|
+
backdrop: 'toBackdrop.yes.set',
|
|
75
|
+
};
|
|
76
|
+
/** The scene prompt's two rows' seed keys. @internal */
|
|
77
|
+
export const STORY_ILLUSTRATE_SCENE_PROMPT_SEED_KEYS = {
|
|
78
|
+
tags: 'pipeline-prompt:core:task/build-narrator-context:prompts:scene-prompt-tags',
|
|
79
|
+
prose: 'pipeline-prompt:core:task/build-narrator-context:prompts:scene-prompt-prose',
|
|
80
|
+
};
|
|
81
|
+
/** How many recent lines the scene prompt reads. */
|
|
82
|
+
const LOOKBACK = 6;
|
|
83
|
+
/** The picture step's parameters, in both presets. */
|
|
84
|
+
const DRAW_PARAMS = {
|
|
85
|
+
orientation: 'landscape',
|
|
86
|
+
references: 'preferred',
|
|
87
|
+
};
|
|
88
|
+
/** The Scene action's graph, for one genre's spec. @internal */
|
|
89
|
+
export const illustrateSceneGraph = ({ id, version, fired = 'action' }) => {
|
|
90
|
+
const routine = fired === 'routine';
|
|
91
|
+
const head = (routine
|
|
92
|
+
? spec(id, { version, taxonomy: { role: 'maintenance' } }).inlet('input', C.routine.v1(), {
|
|
93
|
+
suits: [coreEvents.sceneOpened],
|
|
94
|
+
})
|
|
95
|
+
: spec(id, {
|
|
96
|
+
version,
|
|
97
|
+
taxonomy: { role: 'action' },
|
|
98
|
+
contributes: {
|
|
99
|
+
actions: [
|
|
100
|
+
{
|
|
101
|
+
key: ILLUSTRATE_SCENE_ACTION_KEY,
|
|
102
|
+
venue: { kind: 'composer' },
|
|
103
|
+
quick: true,
|
|
104
|
+
icon: 'mountain',
|
|
105
|
+
label: { en: 'Scene' },
|
|
106
|
+
description: {
|
|
107
|
+
en: 'Draw the scene as it stands, from the last few lines, and set it as the backdrop.',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
})
|
|
113
|
+
.inlet('input', C.userMessage.v1(), { suits: [] }));
|
|
114
|
+
return compile(head
|
|
115
|
+
.gather('gather', { mode: 'parallel' }, (b) => b
|
|
116
|
+
.chain('history', (c) => c.query('read', ($) => C.sessionHistory.v1({
|
|
117
|
+
scope: $.input.sessionScope,
|
|
118
|
+
params: slot.params(),
|
|
119
|
+
})))
|
|
120
|
+
.chain('cast', (c) => c.query('read', ($) => C.sessionCast.v1({ scope: $.input.sessionScope }))))
|
|
121
|
+
/** Everyone on stage's likeness image, in the order `{{likenesses}}` lists them. */
|
|
122
|
+
.query('likeness', ($) => C.likenessImages.v1({ scope: $.input.sessionScope }))
|
|
123
|
+
.task('contextBudget', ($) => C.contextBudget.v1({
|
|
124
|
+
sampling: slot.samplingOf('write'),
|
|
125
|
+
connection: slot.connectionOf('write'),
|
|
126
|
+
params: slot.params(),
|
|
127
|
+
}))
|
|
128
|
+
/** The narrator builder: no speaker, and `{{likenesses}}` for the cast's looks. */
|
|
129
|
+
.task('context', ($) => C.buildNarratorContext.v1({
|
|
130
|
+
cast: $.gather.cast.read.cast,
|
|
131
|
+
prompts: slot.prompts(),
|
|
132
|
+
variables: slot.variables(),
|
|
133
|
+
}))
|
|
134
|
+
/** Prose and no seed — a description is asked for, not a turn taken. */
|
|
135
|
+
.task('lines', ($) => C.proseTranscript.v1({
|
|
136
|
+
messages: $.gather.history.read.messages,
|
|
137
|
+
cast: $.gather.cast.read.cast,
|
|
138
|
+
templateContext: $.context.templateContext,
|
|
139
|
+
}))
|
|
140
|
+
.task('prompt', ($) => C.assemble.v2({
|
|
141
|
+
budget: $.contextBudget.available,
|
|
142
|
+
messages: $.lines.messages,
|
|
143
|
+
templateContext: $.context.templateContext,
|
|
144
|
+
template: slot.template(),
|
|
145
|
+
prompts: slot.prompts($.context),
|
|
146
|
+
variables: slot.variables(),
|
|
147
|
+
params: slot.params(),
|
|
148
|
+
connection: slot.connectionOf('write'),
|
|
149
|
+
}))
|
|
150
|
+
/** The **scene prompt**: a quiet call, never a line of the session. */
|
|
151
|
+
.oracle('write', ($) => C.generateText.v1({
|
|
152
|
+
context: $.prompt.context,
|
|
153
|
+
connection: slot.connection(),
|
|
154
|
+
sampling: slot.sampling(),
|
|
155
|
+
params: slot.params(),
|
|
156
|
+
// 🚧 O7: the voice a spoken reply speaks in, when `outputs` ask for audio.
|
|
157
|
+
speechSampling: slot.speechSampling(),
|
|
158
|
+
}), { expose: { status: 'Describing the scene', label: 'Scene prompt', purpose: 'Turns the last few lines into a picture description.' } })
|
|
159
|
+
.task('clean', ($) => C.cleanImagePrompt.v1({ text: $.write.text }))
|
|
160
|
+
.oracle('draw', ($) => C.generateImage.v1({
|
|
161
|
+
prompt: $.clean.prompt,
|
|
162
|
+
references: $.likeness.references,
|
|
163
|
+
connection: slot.connection(),
|
|
164
|
+
sampling: slot.sampling(),
|
|
165
|
+
workflow: slot.workflow(),
|
|
166
|
+
prompts: slot.prompts(),
|
|
167
|
+
params: slot.params(),
|
|
168
|
+
}), { expose: { status: 'Drawing the scene', label: 'Picture', purpose: 'Draws the described scene, with the cast as reference.' } })
|
|
169
|
+
.task('placement', ($) => C.picturePlacement.v1({ ...(routine ? {} : { payload: $.input.payload }), params: slot.params() }))
|
|
170
|
+
.junction('toMessage', { on: ($) => $.placement.message }, (j) => j.when('yes', { truthy: true }, (c) => c.outlet('post', ($) => C.createMessage.v1({
|
|
171
|
+
text: $.draw.caption,
|
|
172
|
+
media: $.draw.media,
|
|
173
|
+
}))))
|
|
174
|
+
.junction('toBackdrop', { on: ($) => $.placement.backdrop }, (j) => j.when('yes', { truthy: true }, (c) => c.outlet('set', ($) => C.setBackdrop.v1({ media: $.draw.media }))))
|
|
175
|
+
/** Review OFF (ruled 2026-10-12): one press, one picture. */
|
|
176
|
+
.defaults((p) => p
|
|
177
|
+
.params('gather.history.read', { limit: LOOKBACK })
|
|
178
|
+
.params('draw', { ...DRAW_PARAMS })
|
|
179
|
+
.loadout('write', slot.loadout(CORE_LOADOUT.scenePrompt))
|
|
180
|
+
.loadout('draw', slot.loadout(CORE_LOADOUT.scene)))
|
|
181
|
+
.build());
|
|
182
|
+
};
|
|
183
|
+
//# sourceMappingURL=illustrateScene.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🚧 **The lore builders** (pass 8 §2, pass 6): `fileLore` and `rememberNote`,
|
|
3
|
+
* the two shapes core's pipelines file lore by. Each expands to the explicit
|
|
4
|
+
* `C.createLoreEntry.v1(...)` outlet (house rule: helpers expand to explicit
|
|
5
|
+
* specs) and writes `{ entryType }` into the pipeline's declared defaults.
|
|
6
|
+
*
|
|
7
|
+
* ⚠ The app's tool-loop `ToolCtx.fileLore` (runtime/tools/writeTools.ts) is the
|
|
8
|
+
* same act reached from a tool call; the builder is the pipeline step.
|
|
9
|
+
*/
|
|
10
|
+
import { type EntryDescriptor } from '@serene-pub/sdk';
|
|
11
|
+
import type { LoreMatch } from '@serene-pub/contracts';
|
|
12
|
+
import { type Chain, type NodeOn, type ReadOn, type Wiring } from './calls.js';
|
|
13
|
+
/**
|
|
14
|
+
* 🚧 One lore entry per item of a list a step produced (sweep lore/people/places, DC places/people/cairns, Remember
|
|
15
|
+
* things' notes): `jsonPart(list)` → `.each(each)` → `textPart(name)` → `textPart(content)` → [`jsonPart(links)`] → outlet `write`.
|
|
16
|
+
* Returns what that `.each(…)` returns, as the call sites return it from their arm. @experimental
|
|
17
|
+
*/
|
|
18
|
+
export declare function fileLore<B extends Chain>(c: B, w: Wiring, opts: {
|
|
19
|
+
/** The step whose JSON output holds the list, read by its FULL path. */
|
|
20
|
+
from: ReadOn<B>;
|
|
21
|
+
/** The list's member in that output (`places`, `notes`, `loreFull`). */
|
|
22
|
+
member: string;
|
|
23
|
+
/** The list step's label — "The places", "The notes", "The lore entrys" (today's words, kept). */
|
|
24
|
+
listLabel: string;
|
|
25
|
+
/** The `each` key — `entry`, `note`, `place`, `person`, `cairn`. */
|
|
26
|
+
each: string;
|
|
27
|
+
/** What one item is called: "The <noun>'s name", "What the <noun> says". */
|
|
28
|
+
noun: string;
|
|
29
|
+
/** The name step's label when it is not "The <noun>'s name" — Remember things says "The note's title". */
|
|
30
|
+
nameLabel?: string;
|
|
31
|
+
/** At most this many per run (the `each` max). */
|
|
32
|
+
max: number;
|
|
33
|
+
/** The declared entry type every item is filed as. */
|
|
34
|
+
entryType: EntryDescriptor<string>;
|
|
35
|
+
/** The outlet's `expose.label` — "File the note", "Hold the note for review", "Write a place". */
|
|
36
|
+
writeLabel: string;
|
|
37
|
+
/** Items carry `links` (a place's ways out), labelled "Its ways out". Default false. */
|
|
38
|
+
links?: boolean;
|
|
39
|
+
/** A Review arm: the outlet is pushed onto this list, and " (for review)" is appended to the list, name and content labels. Absent: Full. */
|
|
40
|
+
review?: NodeOn[];
|
|
41
|
+
/** 🚧 The messages the list was written from — a generated write. Absent: a change in the story. */
|
|
42
|
+
sources?: ReadOn<B>;
|
|
43
|
+
/** 🚧 Find-or-update by the item's own name within `entryType`. Default off. */
|
|
44
|
+
matchByName?: boolean;
|
|
45
|
+
}): any;
|
|
46
|
+
/** 🚧 One lore entry from a name and content already on the chain (the summarisers' save, the sweep's summary). @experimental */
|
|
47
|
+
export declare function rememberNote<B extends Chain>(c: B, w: Wiring, opts: {
|
|
48
|
+
/** The outlet's node key — `save` for the summarisers. */
|
|
49
|
+
key: string;
|
|
50
|
+
name: ReadOn<B>;
|
|
51
|
+
content: ReadOn<B>;
|
|
52
|
+
entryType: EntryDescriptor<string>;
|
|
53
|
+
review?: NodeOn[];
|
|
54
|
+
/** 🚧 The messages it was written from — required by C39 in a pipeline that reads a span (§C-7). */
|
|
55
|
+
sources?: ReadOn<B>;
|
|
56
|
+
/** 🚧 Find-or-update (`LoreMatch`), e.g. one running summary per session. */
|
|
57
|
+
match?: LoreMatch;
|
|
58
|
+
expose?: {
|
|
59
|
+
label: string;
|
|
60
|
+
};
|
|
61
|
+
}): B;
|
|
62
|
+
//# sourceMappingURL=lore.d.ts.map
|