@serene-pub/core-catalog 0.6.0-pr-2 → 0.6.0-pr-4
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 → shared}/lore-entries/LoreEntries.svelte +1 -1
- package/components/{sessions → shared}/lore-entries/LoreEntriesWidget.svelte +1 -1
- package/components/{sessions → shared}/messages/MessageComposer.svelte +1 -1
- package/components/{sessions → shared}/messages/Messages.svelte +1 -1
- package/components/{sessions → shared}/messages/MessagesWidget.svelte +1 -1
- package/components/{sessions → shared}/messages/SessionComposer.svelte +1 -1
- package/components/{sessions → shared}/messages/SessionMessage.svelte +1 -1
- package/components/{sessions → shared}/messages/conversation.svelte.ts +1 -1
- package/components/{sessions → shared}/scene-portraits/ScenePortraits.svelte +1 -1
- package/components/{sessions → shared}/scene-portraits/ScenePortraitsWidget.svelte +1 -1
- package/components/{sessions → shared}/stats/Stats.svelte +1 -1
- package/components/{sessions → shared}/stats/StatsWidget.svelte +1 -1
- package/components/{sessions → shared}/world-state/WorldState.svelte +1 -1
- package/components/{sessions → shared}/world-state/WorldStateWidget.svelte +1 -1
- package/dist/components/authors-note.js +5 -5
- package/dist/components/authors-note.source.json +1 -1
- 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 +26 -26
- package/dist/components/messages.source.json +1 -1
- package/dist/components/scene-portraits.js +7 -7
- package/dist/components/scene-portraits.source.json +1 -1
- package/dist/components/{shared-TCQZXBE3.js → shared-3FGURYVS.js} +2 -2
- package/dist/components/{shared-AINANAIA.js → shared-FXYLABGF.js} +6 -6
- package/dist/components/{shared-UAQVMZZK.js → shared-U3UU5V7L.js} +3 -3
- package/dist/components/stats.js +6 -6
- package/dist/components/stats.source.json +1 -1
- package/dist/components/world-state.js +6 -6
- 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} +4 -37
- 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 +11 -0
- package/dist/genres/adventure/advanceTime.js +17 -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/index.d.ts +43 -0
- package/dist/genres/adventure/index.js +43 -0
- package/dist/genres/adventure/keeperAction.d.ts +24 -0
- package/dist/genres/adventure/keeperAction.js +150 -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} +10 -34
- package/dist/{adventure.js → genres/adventure/respond.js} +34 -60
- package/dist/genres/adventure/rest.d.ts +10 -0
- package/dist/genres/adventure/rest.js +16 -0
- package/dist/genres/adventure/turnOrder.d.ts +10 -0
- package/dist/genres/adventure/turnOrder.js +27 -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} +5 -5
- package/dist/genres/chat/index.d.ts +15 -0
- package/dist/genres/chat/index.js +15 -0
- package/dist/{narrate.d.ts → genres/chat/narrate.d.ts} +3 -3
- package/dist/{narrate.js → genres/chat/narrate.js} +34 -12
- package/dist/{narrateCharacter.d.ts → genres/chat/narrateCharacter.d.ts} +2 -2
- package/dist/{narrateCharacter.js → genres/chat/narrateCharacter.js} +35 -16
- package/dist/genres/chat/respond.d.ts +25 -0
- package/dist/{respond.js → genres/chat/respond.js} +48 -22
- 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 +9 -0
- package/dist/genres/guide/index.js +9 -0
- package/dist/{guide.d.ts → genres/guide/respond.d.ts} +1 -20
- package/dist/{guide.js → genres/guide/respond.js} +29 -60
- 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/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 +60 -0
- package/dist/genres/lair/index.js +60 -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} +15 -28
- package/dist/{lair.js → genres/lair/respond.js} +45 -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/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 +47 -29
- package/dist/index.js +117 -88
- package/dist/{genres.js → registry/genres.js} +4 -4
- package/dist/{ui/sessions → registry}/widgets.js +6 -6
- package/dist/{presets.js → seed/presets.js} +28 -13
- package/dist/{prompts.js → seed/prompts.js} +27 -56
- package/dist/{annexField.d.ts → shared/annexField.d.ts} +3 -2
- package/dist/{annexField.js → shared/annexField.js} +6 -8
- 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/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 +10 -0
- package/dist/shared/summarize/index.js +10 -0
- package/dist/shared/summarize/scene.d.ts +38 -0
- package/dist/shared/summarize/scene.js +42 -0
- package/dist/shared/summarize/summarizeSpec.d.ts +54 -0
- package/dist/{summarize.js → shared/summarize/summarizeSpec.js} +8 -53
- package/dist/shared/summarize/world.d.ts +8 -0
- package/dist/shared/summarize/world.js +9 -0
- package/dist/{toolLoop.d.ts → shared/toolLoop.d.ts} +25 -3
- package/dist/{toolLoop.js → shared/toolLoop.js} +67 -14
- package/dist/{ui/sessions → shared/ui}/conversation/index.d.ts +1 -1
- package/dist/{ui/sessions → shared/ui}/conversation/index.js +1 -1
- 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 +1 -1
- 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/{ui/sessions → shared/ui}/session-state/index.d.ts +1 -1
- package/dist/{ui/sessions → shared/ui}/session-state/index.js +1 -1
- package/package.json +28 -28
- 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/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/MessageControls.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/MessageStateLedger.svelte +0 -0
- /package/components/{sessions → shared}/messages/NextCharacterBlock.svelte +0 -0
- /package/components/{sessions → shared}/messages/SessionContainer.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/SlotControl.svelte +0 -0
- /package/components/{sessions → shared}/state/entryFinder.ts +0 -0
- /package/components/{sessions → shared}/state/slotWriter.svelte.ts +0 -0
- /package/components/{sessions → shared}/stats/stats.ts +0 -0
- /package/components/{sessions/shared → shared}/widgetRef.svelte.ts +0 -0
- /package/components/{sessions → shared}/world-state/world-state.ts +0 -0
- /package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.js +0 -0
- /package/dist/{entries.d.ts → registry/entries.d.ts} +0 -0
- /package/dist/{entries.js → registry/entries.js} +0 -0
- /package/dist/{genres.d.ts → registry/genres.d.ts} +0 -0
- /package/dist/{ui/sessions → registry}/layouts.d.ts +0 -0
- /package/dist/{ui/sessions → registry}/layouts.js +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/{ui/sessions → registry}/widgets.d.ts +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/{prompts.d.ts → seed/prompts.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/dossier.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/conversation/dossier.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.d.ts +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}/scene-portraits/portraits.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/scene-portraits/portraits.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.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/session-state/shapes.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/session-state/stateView.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/session-state/stateView.js +0 -0
- /package/dist/{ui/sessions → shared/ui}/widgetContext.d.ts +0 -0
- /package/dist/{ui/sessions → shared/ui}/widgetContext.js +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair genre's pipelines, one per file: its two required pipelines
|
|
3
|
+
* (`create.ts`, `respond.ts`), its actions, and its answer form and turn order.
|
|
4
|
+
*/
|
|
5
|
+
export * from './create.js';
|
|
6
|
+
export * from './respond.js';
|
|
7
|
+
/**
|
|
8
|
+
* The **Lair** genre's actions — what the dungeon's master does between turns
|
|
9
|
+
* (plans/genres-and-showcase-plugins §3, "Room building").
|
|
10
|
+
*
|
|
11
|
+
* `session-action` is an OPEN event, so each of these is its own small
|
|
12
|
+
* pipeline contributing its own button, and removing one from a preset takes
|
|
13
|
+
* the button with it and breaks nothing. Three shapes:
|
|
14
|
+
*
|
|
15
|
+
* - **Build room**, **Answer the door** and **File as a room** write a
|
|
16
|
+
* *lorebook entry*. They are the three actions here that reach outside the
|
|
17
|
+
* story, so they are the three declared `effects: 'world'` — owner-only,
|
|
18
|
+
* and never named by a block. *File as a room* lives on a message's ⋮ (the
|
|
19
|
+
* row it files is its subject, R11); the other two live in the composer
|
|
20
|
+
* and are nameable only by a message block **addressed to the owner**
|
|
21
|
+
* (R-15 *The line*; L1, ruled 2026-09-17). The knock's block is exactly
|
|
22
|
+
* that block, which is what makes its options real writes rather than
|
|
23
|
+
* narration.
|
|
24
|
+
* - **Whisper** and **Nudge** write *state* and no message: a standing
|
|
25
|
+
* instruction for the delvers the master picks (R10), and one for the
|
|
26
|
+
* Castellan. Neither calls a model. Pressing Nudge
|
|
27
|
+
* produces nothing visible in the log, which looks like a bug the first
|
|
28
|
+
* time you see it and is the same thing Adventure's Rest does.
|
|
29
|
+
* - **Trigger trap** and **Reveal** write a *message* and change nothing:
|
|
30
|
+
* the Castellan's turns with a fixed instruction, Adventure's Look with a
|
|
31
|
+
* different sentence in its prompt — one streamed row under the
|
|
32
|
+
* Castellan's name (lair pass B17, owner D7a; R8).
|
|
33
|
+
*
|
|
34
|
+
* ## Why the two steering actions write slots rather than messages
|
|
35
|
+
*
|
|
36
|
+
* A directive that produces no message still has to reach the next turn, and a
|
|
37
|
+
* session has exactly three places a fact can live: the transcript, the
|
|
38
|
+
* lorebook and the state. A nudge is not a line anybody said and not a fact
|
|
39
|
+
* about the world, so it is state — `core:slot/direction@1` for the Castellan,
|
|
40
|
+
* `core:slot/whisper@1` per delver — and the planner and the voices already
|
|
41
|
+
* take `state` on a port, which makes the note a control something *reads*
|
|
42
|
+
* rather than a second store nothing walks. (The planner reads the direction;
|
|
43
|
+
* a whisper is heard by its holder's voice alone — earshot, R1.)
|
|
44
|
+
*
|
|
45
|
+
* ⚠ **The channel route was the other candidate and does not work.** A hidden
|
|
46
|
+
* message on a `whispers` channel is one node to write and unreadable
|
|
47
|
+
* afterwards: `core:query/session-history@1` reads exactly one channel, and no
|
|
48
|
+
* core node merges two transcripts into the one `messages` port `assemble`
|
|
49
|
+
* takes. It would have been a button wired to nothing.
|
|
50
|
+
*/
|
|
51
|
+
export * from './buildRoom.js';
|
|
52
|
+
export * from './roomAnswer.js';
|
|
53
|
+
export * from './fileRoom.js';
|
|
54
|
+
export * from './nudge.js';
|
|
55
|
+
export * from './whisper.js';
|
|
56
|
+
export * from './trap.js';
|
|
57
|
+
export * from './reveal.js';
|
|
58
|
+
export * from './answerForm.js';
|
|
59
|
+
export * from './turnOrder.js';
|
|
60
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair genre's pipelines, one per file: its two required pipelines
|
|
3
|
+
* (`create.ts`, `respond.ts`), its actions, and its answer form and turn order.
|
|
4
|
+
*/
|
|
5
|
+
export * from './create.js';
|
|
6
|
+
export * from './respond.js';
|
|
7
|
+
/**
|
|
8
|
+
* The **Lair** genre's actions — what the dungeon's master does between turns
|
|
9
|
+
* (plans/genres-and-showcase-plugins §3, "Room building").
|
|
10
|
+
*
|
|
11
|
+
* `session-action` is an OPEN event, so each of these is its own small
|
|
12
|
+
* pipeline contributing its own button, and removing one from a preset takes
|
|
13
|
+
* the button with it and breaks nothing. Three shapes:
|
|
14
|
+
*
|
|
15
|
+
* - **Build room**, **Answer the door** and **File as a room** write a
|
|
16
|
+
* *lorebook entry*. They are the three actions here that reach outside the
|
|
17
|
+
* story, so they are the three declared `effects: 'world'` — owner-only,
|
|
18
|
+
* and never named by a block. *File as a room* lives on a message's ⋮ (the
|
|
19
|
+
* row it files is its subject, R11); the other two live in the composer
|
|
20
|
+
* and are nameable only by a message block **addressed to the owner**
|
|
21
|
+
* (R-15 *The line*; L1, ruled 2026-09-17). The knock's block is exactly
|
|
22
|
+
* that block, which is what makes its options real writes rather than
|
|
23
|
+
* narration.
|
|
24
|
+
* - **Whisper** and **Nudge** write *state* and no message: a standing
|
|
25
|
+
* instruction for the delvers the master picks (R10), and one for the
|
|
26
|
+
* Castellan. Neither calls a model. Pressing Nudge
|
|
27
|
+
* produces nothing visible in the log, which looks like a bug the first
|
|
28
|
+
* time you see it and is the same thing Adventure's Rest does.
|
|
29
|
+
* - **Trigger trap** and **Reveal** write a *message* and change nothing:
|
|
30
|
+
* the Castellan's turns with a fixed instruction, Adventure's Look with a
|
|
31
|
+
* different sentence in its prompt — one streamed row under the
|
|
32
|
+
* Castellan's name (lair pass B17, owner D7a; R8).
|
|
33
|
+
*
|
|
34
|
+
* ## Why the two steering actions write slots rather than messages
|
|
35
|
+
*
|
|
36
|
+
* A directive that produces no message still has to reach the next turn, and a
|
|
37
|
+
* session has exactly three places a fact can live: the transcript, the
|
|
38
|
+
* lorebook and the state. A nudge is not a line anybody said and not a fact
|
|
39
|
+
* about the world, so it is state — `core:slot/direction@1` for the Castellan,
|
|
40
|
+
* `core:slot/whisper@1` per delver — and the planner and the voices already
|
|
41
|
+
* take `state` on a port, which makes the note a control something *reads*
|
|
42
|
+
* rather than a second store nothing walks. (The planner reads the direction;
|
|
43
|
+
* a whisper is heard by its holder's voice alone — earshot, R1.)
|
|
44
|
+
*
|
|
45
|
+
* ⚠ **The channel route was the other candidate and does not work.** A hidden
|
|
46
|
+
* message on a `whispers` channel is one node to write and unreadable
|
|
47
|
+
* afterwards: `core:query/session-history@1` reads exactly one channel, and no
|
|
48
|
+
* core node merges two transcripts into the one `messages` port `assemble`
|
|
49
|
+
* takes. It would have been a button wired to nothing.
|
|
50
|
+
*/
|
|
51
|
+
export * from './buildRoom.js';
|
|
52
|
+
export * from './roomAnswer.js';
|
|
53
|
+
export * from './fileRoom.js';
|
|
54
|
+
export * from './nudge.js';
|
|
55
|
+
export * from './whisper.js';
|
|
56
|
+
export * from './trap.js';
|
|
57
|
+
export * from './reveal.js';
|
|
58
|
+
export * from './answerForm.js';
|
|
59
|
+
export * from './turnOrder.js';
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's **Nudge** action. The genre's actions are introduced in `index.ts`.
|
|
3
|
+
*/
|
|
4
|
+
/** @internal */
|
|
5
|
+
export declare const LAIR_NUDGE_SPEC_ID = "core:spec/lair-nudge";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare const LAIR_NUDGE_VERSION = "1.0.0";
|
|
8
|
+
/**
|
|
9
|
+
* **Nudge**: a directive to the Castellan's planner that produces no message.
|
|
10
|
+
*
|
|
11
|
+
* The shortest pipeline in the catalog that does anything: no model call, no
|
|
12
|
+
* retrieval, no transcript. The collected text (R3) becomes
|
|
13
|
+
* `core:slot/direction@1` on the world, the planner takes `state` on its own
|
|
14
|
+
* port, and the note is in the next turn's prompt.
|
|
15
|
+
*
|
|
16
|
+
* ⚠ **`apply`, not `propose`** — the one place in this genre where a state
|
|
17
|
+
* write skips the review the state-keeper's changes get. The argument for
|
|
18
|
+
* `propose` is that a *model* is not authoritative about the fiction
|
|
19
|
+
* (`set-state`'s own header). Here the writer is the person who owns the
|
|
20
|
+
* session, typing into their own composer, and asking them to accept their own
|
|
21
|
+
* instruction would be a dialog asking "did you mean what you just typed".
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare const lairNudgeSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
25
|
+
//# sourceMappingURL=nudge.d.ts.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's **Nudge** action. The genre's actions are introduced in `index.ts`.
|
|
3
|
+
*/
|
|
4
|
+
import { compile, slot, spec, sessionEvents } from '@serene-pub/sdk';
|
|
5
|
+
import * as C from '@serene-pub/contracts';
|
|
6
|
+
import { lairGenre } from '../../registry/genres.js';
|
|
7
|
+
/* ── The two steering actions that write state ──────────────────────────── */
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const LAIR_NUDGE_SPEC_ID = 'core:spec/lair-nudge';
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const LAIR_NUDGE_VERSION = '1.0.0';
|
|
12
|
+
/**
|
|
13
|
+
* **Nudge**: a directive to the Castellan's planner that produces no message.
|
|
14
|
+
*
|
|
15
|
+
* The shortest pipeline in the catalog that does anything: no model call, no
|
|
16
|
+
* retrieval, no transcript. The collected text (R3) becomes
|
|
17
|
+
* `core:slot/direction@1` on the world, the planner takes `state` on its own
|
|
18
|
+
* port, and the note is in the next turn's prompt.
|
|
19
|
+
*
|
|
20
|
+
* ⚠ **`apply`, not `propose`** — the one place in this genre where a state
|
|
21
|
+
* write skips the review the state-keeper's changes get. The argument for
|
|
22
|
+
* `propose` is that a *model* is not authoritative about the fiction
|
|
23
|
+
* (`set-state`'s own header). Here the writer is the person who owns the
|
|
24
|
+
* session, typing into their own composer, and asking them to accept their own
|
|
25
|
+
* instruction would be a dialog asking "did you mean what you just typed".
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export const lairNudgeSpec = () => compile(spec(LAIR_NUDGE_SPEC_ID, {
|
|
29
|
+
version: LAIR_NUDGE_VERSION,
|
|
30
|
+
taxonomy: { role: 'action' },
|
|
31
|
+
contributes: {
|
|
32
|
+
actions: [
|
|
33
|
+
{
|
|
34
|
+
key: 'nudge',
|
|
35
|
+
venue: { kind: 'composer' },
|
|
36
|
+
quick: true,
|
|
37
|
+
icon: 'compass',
|
|
38
|
+
/** The direction is the whole instruction (R3): nothing to do without it. */
|
|
39
|
+
collects: {
|
|
40
|
+
text: { need: 'required', label: { en: 'Direction the party should feel' } },
|
|
41
|
+
},
|
|
42
|
+
label: { en: 'Nudge' },
|
|
43
|
+
description: {
|
|
44
|
+
en: 'Tell the Castellan what you want next. It writes no message — the next turn just follows it.',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
.inlet('input', C.userMessage.v1(), {
|
|
51
|
+
genre: lairGenre,
|
|
52
|
+
event: sessionEvents.sessionAction,
|
|
53
|
+
})
|
|
54
|
+
.query('state', ($) => C.sessionState.v1({ scope: $.input.sessionScope }))
|
|
55
|
+
/**
|
|
56
|
+
* A literal change with the collected text in it. A nested literal
|
|
57
|
+
* is how one port takes a reference (`concat-candidates`' `sources`
|
|
58
|
+
* is the same construction), and this node is here rather than
|
|
59
|
+
* `set-state` alone because it is what turns the word `world` into
|
|
60
|
+
* a row and `direction` into `core:slot/direction@1` — and what
|
|
61
|
+
* refuses a note longer than the slot accepts, with a sentence.
|
|
62
|
+
*/
|
|
63
|
+
.query('resolve', ($) => C.resolveStateChanges.v1({
|
|
64
|
+
changes: [
|
|
65
|
+
{ owner: 'world', slot: 'direction', value: $.input.text },
|
|
66
|
+
],
|
|
67
|
+
scope: $.input.sessionScope,
|
|
68
|
+
base: $.state.version,
|
|
69
|
+
}))
|
|
70
|
+
.task('apply', ($) => C.setState.v1({
|
|
71
|
+
changes: $.resolve.changes,
|
|
72
|
+
scope: $.input.sessionScope,
|
|
73
|
+
base: $.state.version,
|
|
74
|
+
params: slot.params(),
|
|
75
|
+
}))
|
|
76
|
+
.preset('lair', { label: 'Lair', default: true }, (p) => p.params('apply', { mode: 'apply' }))
|
|
77
|
+
.build());
|
|
78
|
+
//# sourceMappingURL=nudge.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The **Lair** genre's two required pipelines: make a dungeon, and
|
|
3
|
-
* inside it (plans/genres-and-showcase-plugins §3).
|
|
2
|
+
* The **Lair** genre's two required pipelines: make a dungeon (`create.ts`), and
|
|
3
|
+
* take a turn inside it (this file; plans/genres-and-showcase-plugins §3).
|
|
4
4
|
*
|
|
5
5
|
* ## The one idea
|
|
6
6
|
*
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
* answer is the Castellan's draft, which the master edits at
|
|
114
114
|
* `create-lore-entry`'s review gate before it lands. A draft **rejected** at
|
|
115
115
|
* review re-opens the knock — a core rule in the app's review gate: an answer
|
|
116
|
-
* rejected at review that wrote nothing is no answer. See `
|
|
116
|
+
* rejected at review that wrote nothing is no answer. See `roomAnswer.ts`.
|
|
117
117
|
*
|
|
118
118
|
* Writing a lore entry is a `world` effect (R-15 *The line*) and
|
|
119
119
|
* `worldBlockFunctions` refuses any block that names a `world` action —
|
|
@@ -134,29 +134,6 @@
|
|
|
134
134
|
* nothing when the room is described, and one question when it is not.
|
|
135
135
|
*/
|
|
136
136
|
/** @internal */
|
|
137
|
-
export declare const LAIR_CREATE_SPEC_ID = "core:spec/lair-create";
|
|
138
|
-
/** @internal */
|
|
139
|
-
export declare const LAIR_CREATE_VERSION = "1.0.0";
|
|
140
|
-
/**
|
|
141
|
-
* The genre's required member (24 §3): what happens when a Lair session is
|
|
142
|
-
* created.
|
|
143
|
-
*
|
|
144
|
-
* **The dungeon welcomes nobody, but its steward welcomes its master** (R6,
|
|
145
|
-
* owner F1 2026-09-28). The cards' greetings are off — the party are delvers
|
|
146
|
-
* who have not arrived yet — so `collect` and `seed` still write nothing,
|
|
147
|
-
* as the guide's do. Then the Castellan's declared greeting
|
|
148
|
-
* (`EnvoyDecl.greeting`), read through `core:query/envoy-greeting@1` and
|
|
149
|
-
* interpolated for this session, is written on the Sanctum under its name —
|
|
150
|
-
* only when it has text, which it lacks when the Castellan is not seated.
|
|
151
|
-
*
|
|
152
|
-
* No model call, deliberately: creation is a synchronous action a person is
|
|
153
|
-
* waiting on (see `adventure-create` for the argument at length). The
|
|
154
|
-
* welcome is declared, so it is instant, translatable and reviewable; the
|
|
155
|
-
* Castellan's first *reply* is where it tailors itself to the dungeon.
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
export declare const lairCreateSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
159
|
-
/** @internal */
|
|
160
137
|
export declare const LAIR_RESPOND_SPEC_ID = "core:spec/lair-respond";
|
|
161
138
|
/**
|
|
162
139
|
* 1.0.0, edited in place (lorebooks C2/C3, 2026-10-02): the vector and entity
|
|
@@ -173,6 +150,16 @@ export declare const LAIR_RESPOND_SPEC_ID = "core:spec/lair-respond";
|
|
|
173
150
|
* each conversation starts. The story's background rows, the unplayed talk
|
|
174
151
|
* and the room check keep their counts. Content-addressed;
|
|
175
152
|
* `specHashes.test.ts` records the move.
|
|
153
|
+
*
|
|
154
|
+
* Edited in place again (sprites in-pipeline, 2026-10-05): a character turn
|
|
155
|
+
* chooses its delver's face after its `save` — `spritePick`
|
|
156
|
+
* (`core:oracle/pick-sprite@1`, handed the delver's line and the delver) and
|
|
157
|
+
* `spriteShow` — the one branch where a single delver speaks as themselves
|
|
158
|
+
* (owner ruling D-a). The Castellan's narration, its Sanctum talk, the knock
|
|
159
|
+
* and its lines for the party speak as nobody's card, and choose none. And
|
|
160
|
+
* `semantic.arm.queries` wires its own embedding connection, since
|
|
161
|
+
* `embed-text` declares none. Content-addressed; `specHashes.test.ts` records
|
|
162
|
+
* the move.
|
|
176
163
|
* @internal
|
|
177
164
|
*/
|
|
178
165
|
export declare const LAIR_RESPOND_VERSION = "1.0.0";
|
|
@@ -183,7 +170,7 @@ export declare const LAIR_RESPOND_VERSION = "1.0.0";
|
|
|
183
170
|
* property is required and every one is a string, an array or an object of
|
|
184
171
|
* those, because the llama.cpp family compiles this to a GBNF grammar and
|
|
185
172
|
* refuses anything outside that set rather than loosening it — see
|
|
186
|
-
*
|
|
173
|
+
* `../adventure/respond.ts` for the full argument.
|
|
187
174
|
*
|
|
188
175
|
* `unknownExit` and `knockQuestion` are the halt: the first is the predicate
|
|
189
176
|
* the `turn` junction reads, the second is what the master is asked. Both are
|
|
@@ -320,4 +307,4 @@ export declare const LAIR_SCRATCHPAD_SCHEMA: {
|
|
|
320
307
|
};
|
|
321
308
|
/** @internal */
|
|
322
309
|
export declare const lairRespondSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
323
|
-
//# sourceMappingURL=
|
|
310
|
+
//# sourceMappingURL=respond.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The **Lair** genre's two required pipelines: make a dungeon, and
|
|
3
|
-
* inside it (plans/genres-and-showcase-plugins §3).
|
|
2
|
+
* The **Lair** genre's two required pipelines: make a dungeon (`create.ts`), and
|
|
3
|
+
* take a turn inside it (this file; plans/genres-and-showcase-plugins §3).
|
|
4
4
|
*
|
|
5
5
|
* ## The one idea
|
|
6
6
|
*
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
* answer is the Castellan's draft, which the master edits at
|
|
114
114
|
* `create-lore-entry`'s review gate before it lands. A draft **rejected** at
|
|
115
115
|
* review re-opens the knock — a core rule in the app's review gate: an answer
|
|
116
|
-
* rejected at review that wrote nothing is no answer. See `
|
|
116
|
+
* rejected at review that wrote nothing is no answer. See `roomAnswer.ts`.
|
|
117
117
|
*
|
|
118
118
|
* Writing a lore entry is a `world` effect (R-15 *The line*) and
|
|
119
119
|
* `worldBlockFunctions` refuses any block that names a `world` action —
|
|
@@ -135,70 +135,9 @@
|
|
|
135
135
|
*/
|
|
136
136
|
import { compile, slot, spec, sessionEvents } from '@serene-pub/sdk';
|
|
137
137
|
import * as C from '@serene-pub/contracts';
|
|
138
|
-
import { LAIR_CASTELLAN_KEY, lairGenre, POST_HISTORY_TOKEN_TRIGGER, SANCTUM_CHANNEL } from '
|
|
139
|
-
import { LAIR_ROOM_ANSWER_SPEC_ID } from './
|
|
140
|
-
import { CASTELLAN_SCRATCHPAD_KEY } from '
|
|
141
|
-
/* ── create ─────────────────────────────────────────────────────────────── */
|
|
142
|
-
/** @internal */
|
|
143
|
-
export const LAIR_CREATE_SPEC_ID = 'core:spec/lair-create';
|
|
144
|
-
/** @internal */
|
|
145
|
-
export const LAIR_CREATE_VERSION = '1.0.0';
|
|
146
|
-
/** Where the Castellan's greeting lands — its declaration's channel, read at build like the cards' greeting channel. */
|
|
147
|
-
const CASTELLAN_GREETING_CHANNEL = lairGenre.envoys?.find((e) => e.key === LAIR_CASTELLAN_KEY)?.greeting?.channel ?? 'main';
|
|
148
|
-
/**
|
|
149
|
-
* The genre's required member (24 §3): what happens when a Lair session is
|
|
150
|
-
* created.
|
|
151
|
-
*
|
|
152
|
-
* **The dungeon welcomes nobody, but its steward welcomes its master** (R6,
|
|
153
|
-
* owner F1 2026-09-28). The cards' greetings are off — the party are delvers
|
|
154
|
-
* who have not arrived yet — so `collect` and `seed` still write nothing,
|
|
155
|
-
* as the guide's do. Then the Castellan's declared greeting
|
|
156
|
-
* (`EnvoyDecl.greeting`), read through `core:query/envoy-greeting@1` and
|
|
157
|
-
* interpolated for this session, is written on the Sanctum under its name —
|
|
158
|
-
* only when it has text, which it lacks when the Castellan is not seated.
|
|
159
|
-
*
|
|
160
|
-
* No model call, deliberately: creation is a synchronous action a person is
|
|
161
|
-
* waiting on (see `adventure-create` for the argument at length). The
|
|
162
|
-
* welcome is declared, so it is instant, translatable and reviewable; the
|
|
163
|
-
* Castellan's first *reply* is where it tailors itself to the dungeon.
|
|
164
|
-
* @internal
|
|
165
|
-
*/
|
|
166
|
-
export const lairCreateSpec = () => compile(spec(LAIR_CREATE_SPEC_ID, {
|
|
167
|
-
version: LAIR_CREATE_VERSION,
|
|
168
|
-
taxonomy: {
|
|
169
|
-
role: 'create',
|
|
170
|
-
},
|
|
171
|
-
genre: {
|
|
172
|
-
name: lairGenre.name,
|
|
173
|
-
family: lairGenre.family,
|
|
174
|
-
description: lairGenre.description,
|
|
175
|
-
shape: lairGenre.shape,
|
|
176
|
-
events: lairGenre.events,
|
|
177
|
-
// R4: the host names the person's lines off this row.
|
|
178
|
-
playerLabel: lairGenre.playerLabel,
|
|
179
|
-
// R6: the Castellan — which speakers this genre brings is
|
|
180
|
-
// read off this row, as the writing room's scribe is.
|
|
181
|
-
envoys: lairGenre.envoys,
|
|
182
|
-
},
|
|
183
|
-
})
|
|
184
|
-
.inlet('input', C.sessionCreated.v1(), {
|
|
185
|
-
genre: lairGenre,
|
|
186
|
-
event: sessionEvents.sessionCreated,
|
|
187
|
-
})
|
|
188
|
-
.query('collect', ($) => C.sessionGreetings.v1({ scope: $.input.sessionScope }))
|
|
189
|
-
.outlet('seed', ($) => C.seedGreetings.v1({
|
|
190
|
-
greetings: $.collect.greetings,
|
|
191
|
-
channel: lairGenre.shape?.greeting?.channel ?? 'main',
|
|
192
|
-
}))
|
|
193
|
-
/** The Castellan's greeting, interpolated — empty when it is not seated. */
|
|
194
|
-
.query('welcome', ($) => C.envoyGreeting.v1({ scope: $.input.sessionScope, params: slot.params() }))
|
|
195
|
-
.junction('greet', { on: ($) => $.welcome.text }, (g) => g.when('greets', { truthy: true }, (c) => c.outlet('write', ($) => C.createMessage.v1({
|
|
196
|
-
text: $.welcome.text,
|
|
197
|
-
channel: CASTELLAN_GREETING_CHANNEL,
|
|
198
|
-
speaker: `envoy:${LAIR_CASTELLAN_KEY}`,
|
|
199
|
-
}))))
|
|
200
|
-
.preset('lair', { label: 'Lair', default: true }, (p) => p.params('welcome', { envoy: LAIR_CASTELLAN_KEY }))
|
|
201
|
-
.build());
|
|
138
|
+
import { LAIR_CASTELLAN_KEY, lairGenre, POST_HISTORY_TOKEN_TRIGGER, SANCTUM_CHANNEL } from '../../registry/genres.js';
|
|
139
|
+
import { LAIR_ROOM_ANSWER_SPEC_ID } from './roomAnswer.js';
|
|
140
|
+
import { CASTELLAN_SCRATCHPAD_KEY } from '../../shared/annexField.js';
|
|
202
141
|
/* ── respond ────────────────────────────────────────────────────────────── */
|
|
203
142
|
/** @internal */
|
|
204
143
|
export const LAIR_RESPOND_SPEC_ID = 'core:spec/lair-respond';
|
|
@@ -217,6 +156,16 @@ export const LAIR_RESPOND_SPEC_ID = 'core:spec/lair-respond';
|
|
|
217
156
|
* each conversation starts. The story's background rows, the unplayed talk
|
|
218
157
|
* and the room check keep their counts. Content-addressed;
|
|
219
158
|
* `specHashes.test.ts` records the move.
|
|
159
|
+
*
|
|
160
|
+
* Edited in place again (sprites in-pipeline, 2026-10-05): a character turn
|
|
161
|
+
* chooses its delver's face after its `save` — `spritePick`
|
|
162
|
+
* (`core:oracle/pick-sprite@1`, handed the delver's line and the delver) and
|
|
163
|
+
* `spriteShow` — the one branch where a single delver speaks as themselves
|
|
164
|
+
* (owner ruling D-a). The Castellan's narration, its Sanctum talk, the knock
|
|
165
|
+
* and its lines for the party speak as nobody's card, and choose none. And
|
|
166
|
+
* `semantic.arm.queries` wires its own embedding connection, since
|
|
167
|
+
* `embed-text` declares none. Content-addressed; `specHashes.test.ts` records
|
|
168
|
+
* the move.
|
|
220
169
|
* @internal
|
|
221
170
|
*/
|
|
222
171
|
export const LAIR_RESPOND_VERSION = '1.0.0';
|
|
@@ -229,7 +178,7 @@ const TRACKED_SLOTS = ['hp', 'stamina', 'mood', 'trust', 'location', 'floor', 'g
|
|
|
229
178
|
* property is required and every one is a string, an array or an object of
|
|
230
179
|
* those, because the llama.cpp family compiles this to a GBNF grammar and
|
|
231
180
|
* refuses anything outside that set rather than loosening it — see
|
|
232
|
-
*
|
|
181
|
+
* `../adventure/respond.ts` for the full argument.
|
|
233
182
|
*
|
|
234
183
|
* `unknownExit` and `knockQuestion` are the halt: the first is the predicate
|
|
235
184
|
* the `turn` junction reads, the second is what the master is asked. Both are
|
|
@@ -720,7 +669,7 @@ const knockBranch = (c) => c
|
|
|
720
669
|
*
|
|
721
670
|
* **One option** (R9): describe the room. Its press opens the collect
|
|
722
671
|
* modal; typed text is the room, verbatim, and an empty answer is
|
|
723
|
-
* the Castellan's draft behind review (`
|
|
672
|
+
* the Castellan's draft behind review (`roomAnswer.ts`).
|
|
724
673
|
*/
|
|
725
674
|
.task('choices', ($) => C.makeChoices.v1({
|
|
726
675
|
json: {
|
|
@@ -911,6 +860,24 @@ const characterTurn = (e) => e.junction('character', { on: ($) => $.input.charac
|
|
|
911
860
|
text: $.via.turn.channel.story.door.play.speech.each.character.turn.say.text,
|
|
912
861
|
reasoning: $.via.turn.channel.story.door.play.speech.each.character.turn.say.reasoning,
|
|
913
862
|
}), { expose: { label: "Fill the delver's line" } })
|
|
863
|
+
/* ── this delver's face ──────────────────────────────────── */
|
|
864
|
+
/**
|
|
865
|
+
* The sprite picker (DESIGN-sprites §5), handed the delver's
|
|
866
|
+
* line and the delver — the one place in the Lair where a
|
|
867
|
+
* single character speaks as themselves. Before the keeper, so
|
|
868
|
+
* the face lands while the books are still being kept.
|
|
869
|
+
*/
|
|
870
|
+
.oracle('spritePick', ($) => C.pickSprite.v1({
|
|
871
|
+
text: $.via.turn.channel.story.door.play.speech.each.character.turn.say.text,
|
|
872
|
+
speaker: $.via.turn.channel.story.door.play.speech.each.character.turn.context.speaker,
|
|
873
|
+
scope: $.input.sessionScope,
|
|
874
|
+
params: slot.params(),
|
|
875
|
+
}), { expose: { session: true, status: 'Choosing a sprite', label: "Choose the delver's sprite" } })
|
|
876
|
+
.outlet('spriteShow', ($) => C.showSprite.v1({
|
|
877
|
+
target: $.via.turn.channel.story.door.play.speech.each.character.turn.save.messageId,
|
|
878
|
+
pick: $.via.turn.channel.story.door.play.speech.each.character.turn.spritePick.main,
|
|
879
|
+
source: 'picker',
|
|
880
|
+
}), { expose: { label: "Show the delver's sprite" } })
|
|
914
881
|
/* ── this delver's own books ─────────────────────────────── */
|
|
915
882
|
.task('keeperContext', ($) => C.buildKeeperContext.v1({
|
|
916
883
|
cast: $.gather.cast.read.cast,
|
|
@@ -1264,7 +1231,7 @@ const storyBranch = (st) => st
|
|
|
1264
1231
|
prompts: slot.prompts(),
|
|
1265
1232
|
variables: slot.variables(),
|
|
1266
1233
|
}))
|
|
1267
|
-
/** Prose, and no turn to continue — see
|
|
1234
|
+
/** Prose, and no turn to continue — see `../adventure/respond.ts`. */
|
|
1268
1235
|
.task('lines', ($) => C.proseTranscript.v1({
|
|
1269
1236
|
messages: $.gather.history.read.messages,
|
|
1270
1237
|
cast: $.gather.cast.read.cast,
|
|
@@ -1377,7 +1344,7 @@ export const lairRespondSpec = () => compile(spec(LAIR_RESPOND_SPEC_ID, {
|
|
|
1377
1344
|
connection: slot.connectionOf(`${CHARACTER_TURN}.say`),
|
|
1378
1345
|
params: slot.params(),
|
|
1379
1346
|
}))
|
|
1380
|
-
/** One retrieval pass, shared by every agent below. See
|
|
1347
|
+
/** One retrieval pass, shared by every agent below. See `../adventure/respond.ts`. */
|
|
1381
1348
|
.gather('gather', { mode: 'parallel' }, (b) => b
|
|
1382
1349
|
.chain('history', (c) => c
|
|
1383
1350
|
.query('read', ($) => C.sessionHistory.v1({
|
|
@@ -1481,7 +1448,9 @@ export const lairRespondSpec = () => compile(spec(LAIR_RESPOND_SPEC_ID, {
|
|
|
1481
1448
|
.task('queries', ($) => C.queryWindows.v1({
|
|
1482
1449
|
messages: $.gather.history.read.messages,
|
|
1483
1450
|
cast: $.gather.cast.read.cast,
|
|
1484
|
-
|
|
1451
|
+
// The install's embedding connection, for whether
|
|
1452
|
+
// one is set up (Search by meaning's Automatic).
|
|
1453
|
+
connection: slot.connection(),
|
|
1485
1454
|
params: slot.params(),
|
|
1486
1455
|
}))
|
|
1487
1456
|
.oracle('embed', ($) => C.embedText.v1({
|
|
@@ -1665,7 +1634,7 @@ export const lairRespondSpec = () => compile(spec(LAIR_RESPOND_SPEC_ID, {
|
|
|
1665
1634
|
.query('itemSupply', ($) => C.itemSupply.v1({
|
|
1666
1635
|
scope: $.input.sessionScope,
|
|
1667
1636
|
}))
|
|
1668
|
-
/** Names into rows — see
|
|
1637
|
+
/** Names into rows — see `../adventure/respond.ts`'s `keeperResolve`. */
|
|
1669
1638
|
.query('keeperResolve', ($) => C.resolveStateChanges.v1({
|
|
1670
1639
|
changes: $.keep.played.keeperWrite.items,
|
|
1671
1640
|
base: $.gather.state.read.version,
|
|
@@ -1704,7 +1673,7 @@ export const lairRespondSpec = () => compile(spec(LAIR_RESPOND_SPEC_ID, {
|
|
|
1704
1673
|
/**
|
|
1705
1674
|
* What the pipeline ships with — selections a person can change in
|
|
1706
1675
|
* the panel, never literals welded into the document. See
|
|
1707
|
-
*
|
|
1676
|
+
* `../adventure/respond.ts` for the three warnings that govern this block.
|
|
1708
1677
|
*/
|
|
1709
1678
|
.preset('lair', { label: 'Lair', default: true }, (p) => p
|
|
1710
1679
|
// Who speaks (the planner's speakers — a knock plays no
|
|
@@ -1791,7 +1760,7 @@ export const lairRespondSpec = () => compile(spec(LAIR_RESPOND_SPEC_ID, {
|
|
|
1791
1760
|
.params(`${CHARACTER_TURN}.keeperPrompt`, { postHistoryTokenTrigger: POST_HISTORY_TOKEN_TRIGGER })
|
|
1792
1761
|
.params('keep.played.keeperPrompt', { postHistoryTokenTrigger: POST_HISTORY_TOKEN_TRIGGER })
|
|
1793
1762
|
// The two steps nobody reads run on Background — see
|
|
1794
|
-
//
|
|
1763
|
+
// `../adventure/respond.ts` (a character turn's own books read the
|
|
1795
1764
|
// keeper's). The narration and the character turn are
|
|
1796
1765
|
// deliberately absent: those are the prose somebody is
|
|
1797
1766
|
// waiting for.
|
|
@@ -1802,4 +1771,4 @@ export const lairRespondSpec = () => compile(spec(LAIR_RESPOND_SPEC_ID, {
|
|
|
1802
1771
|
// The scratchpad rewrite: nobody waits on it either (R13).
|
|
1803
1772
|
.sampling(`${SANCTUM}.padWrite`, { seedKey: 'sampling-background' }))
|
|
1804
1773
|
.build());
|
|
1805
|
-
//# sourceMappingURL=
|
|
1774
|
+
//# sourceMappingURL=respond.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's **Reveal** action. The genre's actions are introduced in `index.ts`.
|
|
3
|
+
*/
|
|
4
|
+
/** @internal */
|
|
5
|
+
export declare const LAIR_REVEAL_SPEC_ID = "core:spec/lair-reveal";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare const LAIR_REVEAL_VERSION = "1.0.0";
|
|
8
|
+
/** Show the party something that was already there. @internal */
|
|
9
|
+
export declare const lairRevealSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
10
|
+
//# sourceMappingURL=reveal.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's **Reveal** action. The genre's actions are introduced in `index.ts`.
|
|
3
|
+
*/
|
|
4
|
+
import { castellanAction } from './castellanAction.js';
|
|
5
|
+
/** @internal */
|
|
6
|
+
export const LAIR_REVEAL_SPEC_ID = 'core:spec/lair-reveal';
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const LAIR_REVEAL_VERSION = '1.0.0';
|
|
9
|
+
/** Show the party something that was already there. @internal */
|
|
10
|
+
export const lairRevealSpec = () => castellanAction(LAIR_REVEAL_SPEC_ID, LAIR_REVEAL_VERSION, {
|
|
11
|
+
key: 'reveal',
|
|
12
|
+
icon: 'eye',
|
|
13
|
+
label: 'Reveal',
|
|
14
|
+
description: 'Uncovers something hidden in the room the party are in — a detail that was there all along. Say what they notice, or leave it to the room.',
|
|
15
|
+
status: 'Revealing',
|
|
16
|
+
ask: 'What do they notice?',
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=reveal.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Lair's **Answer the door**: what the knock's option fires. The genre's
|
|
3
|
+
* actions are introduced in `index.ts`.
|
|
4
|
+
*/
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare const LAIR_ROOM_ANSWER_SPEC_ID = "core:spec/lair-room-answer";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const LAIR_ROOM_ANSWER_VERSION = "1.0.0";
|
|
9
|
+
/**
|
|
10
|
+
* **What the knock's option fires** — the other half of the respond spec's
|
|
11
|
+
* `door.knock` branch (R-15 *Forms*), and the composer's *Answer the door*
|
|
12
|
+
* (`/room`) while a knock is open.
|
|
13
|
+
*
|
|
14
|
+
* **The knock asks for a description** (lair re-plan R9, owner rulings 2 + 6,
|
|
15
|
+
* 2026-09-28). The action collects optional text (R3's collect modal, or S2's
|
|
16
|
+
* slash argument — `/room <text>`), and a junction on it decides:
|
|
17
|
+
*
|
|
18
|
+
* - **typed** — the text IS the room: a location entry named after the door
|
|
19
|
+
* the party knocked at, its content **the typed text, verbatim**, and **no
|
|
20
|
+
* review gate**. It is the master's own words; a gate would ask them to
|
|
21
|
+
* approve what they just typed.
|
|
22
|
+
* - **drafted** — nothing typed: the Castellan drafts the room in the
|
|
23
|
+
* dungeon's layout (`LAIR_ROOM_CONTENT_SHAPE`, the form *Build room* drafts
|
|
24
|
+
* into, the `lair-knock-build` prompt), and the master edits it at
|
|
25
|
+
* `create-lore-entry`'s **review gate** before it lands.
|
|
26
|
+
*
|
|
27
|
+
* Retired with the two-option knock: *I will build it* and *Let the Castellan
|
|
28
|
+
* improvise it* (`KNOCK_OPTIONS`), and the improvise branch's narration
|
|
29
|
+
* (its `lair-improvise` prompt row). An empty answer drafts and gates exactly
|
|
30
|
+
* as either used to.
|
|
31
|
+
*
|
|
32
|
+
* **A rejected draft re-opens the knock** (owner F5; R9). Not this spec's
|
|
33
|
+
* rule: a core one in the app's review gate — an answer rejected at review
|
|
34
|
+
* that wrote nothing is no answer, so the form is not marked answered, its
|
|
35
|
+
* row is re-announced and its open-form notification raised again. The room
|
|
36
|
+
* is still undescribed, the story still waits, and *Describe <room>…* and
|
|
37
|
+
* `/room` are offered again.
|
|
38
|
+
*
|
|
39
|
+
* Writing a lore entry is `effects: 'world'`, and the rule that used to stop a
|
|
40
|
+
* block naming one is the effects line's one exception (L1, ruled 2026-09-17):
|
|
41
|
+
* `worldBlockFunctions` refuses any block naming a world action **unless the
|
|
42
|
+
* block is addressed to the owner**, and the knock's block is addressed to
|
|
43
|
+
* `owner` precisely because the dungeon's master is the only person it could
|
|
44
|
+
* sensibly be put to. So this action is declared `world` and lives in the
|
|
45
|
+
* `composer` venue — the `form` venue stays fiction-only, because a venue is
|
|
46
|
+
* declared and an addressee is decided at run time (see `sdk/src/actions.ts`).
|
|
47
|
+
*
|
|
48
|
+
* **The room's name travels on the block** (lair pass B12, 2026-09-27). The
|
|
49
|
+
* knock's `choices` block carries the checked name as its `referent`,
|
|
50
|
+
* `read-answer@1` hands it back, and it is the entry's `name`. A press that
|
|
51
|
+
* carries no form never gets that far: `answer` halts (*nothing to answer*),
|
|
52
|
+
* which is why the action is present only while a knock is open (W-GATE D3,
|
|
53
|
+
* `presentWhen`), and a composer press while it is open is addressed to that
|
|
54
|
+
* knock by the host.
|
|
55
|
+
*
|
|
56
|
+
* **The new room joins the room the party stand in** (places plan B6,
|
|
57
|
+
* 2026-09-29). The party knocked from somewhere: the world's `location` stat,
|
|
58
|
+
* else the room the knock's planner named (the block's `vantage`, plan A27).
|
|
59
|
+
* `here` resolves it against the rooms the dungeon lists — the Lair's name
|
|
60
|
+
* rule, `undescribed-name@1` reading the name at `world.location` inside the
|
|
61
|
+
* session's state (a location set to a place entry is that entry, by id) —
|
|
62
|
+
* and, once the room has landed, the `link` junction writes ONE relationship
|
|
63
|
+
* from the new room to that one, `leads to` both ways
|
|
64
|
+
* (`core:outlet/link-lore-entries@1`). The next turn's planner reads it under
|
|
65
|
+
* the room as "From here:".
|
|
66
|
+
*
|
|
67
|
+
* ⚠ **Invariant: the door never fails because the party's location names no
|
|
68
|
+
* room** (plan §3 #11). The location is usually words, and `create-lore-entry`'s
|
|
69
|
+
* own `links` refuses a name nothing answers to inside the entry's transaction
|
|
70
|
+
* — which would fail the room with it. So the link is its own write, after the
|
|
71
|
+
* room's, in a junction that fires only when `here` found a room: otherwise
|
|
72
|
+
* the room is saved unlinked. A rejected draft ends the run before either. The
|
|
73
|
+
* link is not gated (the master judged the room; the way back to where the
|
|
74
|
+
* party stand is not a second question) and the outlet is idempotent, so a
|
|
75
|
+
* repeat stacks nothing.
|
|
76
|
+
*
|
|
77
|
+
* **Then the story goes on.** Once the room lands, the master's own line —
|
|
78
|
+
* *The party go on into The Drowned Hall* — is written under their name, the
|
|
79
|
+
* way a send is: the turn order prepares the Castellan's turn, auto-advance
|
|
80
|
+
* fires it as it would after any send, and the planner, which now lists the
|
|
81
|
+
* room, walks the party in. A rejected draft ends the run at the gate, so
|
|
82
|
+
* nothing is said and the knock is open again.
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
export declare const lairRoomAnswerSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
86
|
+
//# sourceMappingURL=roomAnswer.d.ts.map
|