@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
package/dist/lairActions.d.ts
DELETED
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The **Lair** genre's actions — what the dungeon's master does between turns
|
|
3
|
-
* (plans/genres-and-showcase-plugins §3, "Room building").
|
|
4
|
-
*
|
|
5
|
-
* `session-action` is an OPEN event, so each of these is its own small
|
|
6
|
-
* pipeline contributing its own button, and removing one from a preset takes
|
|
7
|
-
* the button with it and breaks nothing. Three shapes:
|
|
8
|
-
*
|
|
9
|
-
* - **Build room**, **Answer the door** and **File as a room** write a
|
|
10
|
-
* *lorebook entry*. They are the three actions here that reach outside the
|
|
11
|
-
* story, so they are the three declared `effects: 'world'` — owner-only,
|
|
12
|
-
* and never named by a block. *File as a room* lives on a message's ⋮ (the
|
|
13
|
-
* row it files is its subject, R11); the other two live in the composer
|
|
14
|
-
* and are nameable only by a message block **addressed to the owner**
|
|
15
|
-
* (R-15 *The line*; L1, ruled 2026-09-17). The knock's block is exactly
|
|
16
|
-
* that block, which is what makes its options real writes rather than
|
|
17
|
-
* narration.
|
|
18
|
-
* - **Whisper** and **Nudge** write *state* and no message: a standing
|
|
19
|
-
* instruction for the delvers the master picks (R10), and one for the
|
|
20
|
-
* Castellan. Neither calls a model. Pressing Nudge
|
|
21
|
-
* produces nothing visible in the log, which looks like a bug the first
|
|
22
|
-
* time you see it and is the same thing Adventure's Rest does.
|
|
23
|
-
* - **Trigger trap** and **Reveal** write a *message* and change nothing:
|
|
24
|
-
* the Castellan's turns with a fixed instruction, Adventure's Look with a
|
|
25
|
-
* different sentence in its prompt — one streamed row under the
|
|
26
|
-
* Castellan's name (lair pass B17, owner D7a; R8).
|
|
27
|
-
*
|
|
28
|
-
* ## Why the two steering actions write slots rather than messages
|
|
29
|
-
*
|
|
30
|
-
* A directive that produces no message still has to reach the next turn, and a
|
|
31
|
-
* session has exactly three places a fact can live: the transcript, the
|
|
32
|
-
* lorebook and the state. A nudge is not a line anybody said and not a fact
|
|
33
|
-
* about the world, so it is state — `core:slot/direction@1` for the Castellan,
|
|
34
|
-
* `core:slot/whisper@1` per delver — and the planner and the voices already
|
|
35
|
-
* take `state` on a port, which makes the note a control something *reads*
|
|
36
|
-
* rather than a second store nothing walks. (The planner reads the direction;
|
|
37
|
-
* a whisper is heard by its holder's voice alone — earshot, R1.)
|
|
38
|
-
*
|
|
39
|
-
* ⚠ **The channel route was the other candidate and does not work.** A hidden
|
|
40
|
-
* message on a `whispers` channel is one node to write and unreadable
|
|
41
|
-
* afterwards: `core:query/session-history@1` reads exactly one channel, and no
|
|
42
|
-
* core node merges two transcripts into the one `messages` port `assemble`
|
|
43
|
-
* takes. It would have been a button wired to nothing.
|
|
44
|
-
*/
|
|
45
|
-
/** @internal */
|
|
46
|
-
export declare const LAIR_BUILD_ROOM_SPEC_ID = "core:spec/lair-build-room";
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare const LAIR_BUILD_ROOM_VERSION = "1.0.0";
|
|
49
|
-
/**
|
|
50
|
-
* The layout a drafted room's body takes — its `Exits:` line among it — and
|
|
51
|
-
* why that line is still prose beside the graph.
|
|
52
|
-
*
|
|
53
|
-
* **The ways between rooms are relationships now** (places plan, 2026-09-29):
|
|
54
|
-
* one `narrative_relationships` row per way, read both ways when it has a
|
|
55
|
-
* reverse wording, drawn on the Places lens or in a place's own Links, and
|
|
56
|
-
* written by a pipeline through `core:outlet/link-lore-entries@1`. The Lair's
|
|
57
|
-
* rooms listing asks for them (`withLinks`), so `{{locationEntry}}` says a
|
|
58
|
-
* room's ways out under its body as "From here:" — that, not this line, is
|
|
59
|
-
* what the planner reads the ways on from. *Answer the door* links the room it
|
|
60
|
-
* writes to the room the party stand in (B6).
|
|
61
|
-
*
|
|
62
|
-
* ⚠ **The drafted `Exits:` line stays** (plan §11; how the map should grow is
|
|
63
|
-
* the owner's open Q4). A draft names ways out to rooms that may not exist
|
|
64
|
-
* yet, and nothing in the bound catalogue turns a line of prose into a list
|
|
65
|
-
* of names; parsing it at write time, with stub rooms for the names nothing
|
|
66
|
-
* answers, would change what a knock means. So the line is the room's own
|
|
67
|
-
* words — a reader still reads it, and an older room has only it — and the
|
|
68
|
-
* master turns it into links by hand, or with the place editor's *Read links
|
|
69
|
-
* from the Exits line* (B7). It stays a fixed line so a parser can take it
|
|
70
|
-
* apart.
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
export declare const LAIR_ROOM_CONTENT_SHAPE: string;
|
|
74
|
-
/**
|
|
75
|
-
* **Build room**: the master writes a room into the dungeon.
|
|
76
|
-
*
|
|
77
|
-
* The collected text (R3) is the room's **name** — the one thing a person always
|
|
78
|
-
* knows when they press this — and the model writes the body against the lore,
|
|
79
|
-
* the party's position and the fixed layout above. The name reaches the draft
|
|
80
|
-
* as `{{turnDirection}}`, and every room the dungeon already has as
|
|
81
|
-
* `{{knownLocations}}` (the rooms listing, plan A28) — the prompt's "name only
|
|
82
|
-
* rooms this dungeon already has" with the rooms in front of it. The world
|
|
83
|
-
* lore it reads carries no private entries. The write then parks at the
|
|
84
|
-
* review gate: `core:outlet/create-lore-entry@1` declares
|
|
85
|
-
* `review: { fields: ['name', 'content'] }`, and the preset below turns the
|
|
86
|
-
* gate ON — without that line `resolvePosition` defaults an undeclared position
|
|
87
|
-
* to `off` and this docblock's promise would be false, which it was until
|
|
88
|
-
* 2026-09-17. The gate IS the Build room form, with the name and the whole body
|
|
89
|
-
* editable before anything lands.
|
|
90
|
-
*
|
|
91
|
-
* **The entry is a location** (L3, contracts batch 2, 2026-09-17): the preset
|
|
92
|
-
* sets `entryType: 'core:entry/location'`, so a room files as a place rather
|
|
93
|
-
* than as world lore whose content happens to be laid out, and "which rows are
|
|
94
|
-
* the map" becomes a question a reader can ask. It is written with no links:
|
|
95
|
-
* a room built ahead of the party stands nowhere yet, and its drafted `Exits:`
|
|
96
|
-
* line is prose the master links by hand — see `LAIR_ROOM_CONTENT_SHAPE`.
|
|
97
|
-
*
|
|
98
|
-
* ⚠ **`effects: 'world'`** (R-15 *The line*): the result is lorebook data, so
|
|
99
|
-
* this action is the owner's, lives in the composer, and no message block may
|
|
100
|
-
* name it. That last rule is why the knock's form cannot save a room itself.
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
|
-
export declare const lairBuildRoomSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
104
|
-
/** @internal */
|
|
105
|
-
export declare const LAIR_ROOM_ANSWER_SPEC_ID = "core:spec/lair-room-answer";
|
|
106
|
-
/** @internal */
|
|
107
|
-
export declare const LAIR_ROOM_ANSWER_VERSION = "1.0.0";
|
|
108
|
-
/**
|
|
109
|
-
* **What the knock's option fires** — the other half of the respond spec's
|
|
110
|
-
* `door.knock` branch (R-15 *Forms*), and the composer's *Answer the door*
|
|
111
|
-
* (`/room`) while a knock is open.
|
|
112
|
-
*
|
|
113
|
-
* **The knock asks for a description** (lair re-plan R9, owner rulings 2 + 6,
|
|
114
|
-
* 2026-09-28). The action collects optional text (R3's collect modal, or S2's
|
|
115
|
-
* slash argument — `/room <text>`), and a junction on it decides:
|
|
116
|
-
*
|
|
117
|
-
* - **typed** — the text IS the room: a location entry named after the door
|
|
118
|
-
* the party knocked at, its content **the typed text, verbatim**, and **no
|
|
119
|
-
* review gate**. It is the master's own words; a gate would ask them to
|
|
120
|
-
* approve what they just typed.
|
|
121
|
-
* - **drafted** — nothing typed: the Castellan drafts the room in the
|
|
122
|
-
* dungeon's layout (`LAIR_ROOM_CONTENT_SHAPE`, the form *Build room* drafts
|
|
123
|
-
* into, the `lair-knock-build` prompt), and the master edits it at
|
|
124
|
-
* `create-lore-entry`'s **review gate** before it lands.
|
|
125
|
-
*
|
|
126
|
-
* Retired with the two-option knock: *I will build it* and *Let the Castellan
|
|
127
|
-
* improvise it* (`KNOCK_OPTIONS`), and the improvise branch's narration
|
|
128
|
-
* (its `lair-improvise` prompt row). An empty answer drafts and gates exactly
|
|
129
|
-
* as either used to.
|
|
130
|
-
*
|
|
131
|
-
* **A rejected draft re-opens the knock** (owner F5; R9). Not this spec's
|
|
132
|
-
* rule: a core one in the app's review gate — an answer rejected at review
|
|
133
|
-
* that wrote nothing is no answer, so the form is not marked answered, its
|
|
134
|
-
* row is re-announced and its open-form notification raised again. The room
|
|
135
|
-
* is still undescribed, the story still waits, and *Describe <room>…* and
|
|
136
|
-
* `/room` are offered again.
|
|
137
|
-
*
|
|
138
|
-
* Writing a lore entry is `effects: 'world'`, and the rule that used to stop a
|
|
139
|
-
* block naming one is the effects line's one exception (L1, ruled 2026-09-17):
|
|
140
|
-
* `worldBlockFunctions` refuses any block naming a world action **unless the
|
|
141
|
-
* block is addressed to the owner**, and the knock's block is addressed to
|
|
142
|
-
* `owner` precisely because the dungeon's master is the only person it could
|
|
143
|
-
* sensibly be put to. So this action is declared `world` and lives in the
|
|
144
|
-
* `composer` venue — the `form` venue stays fiction-only, because a venue is
|
|
145
|
-
* declared and an addressee is decided at run time (see `sdk/src/actions.ts`).
|
|
146
|
-
*
|
|
147
|
-
* **The room's name travels on the block** (lair pass B12, 2026-09-27). The
|
|
148
|
-
* knock's `choices` block carries the checked name as its `referent`,
|
|
149
|
-
* `read-answer@1` hands it back, and it is the entry's `name`. A press that
|
|
150
|
-
* carries no form never gets that far: `answer` halts (*nothing to answer*),
|
|
151
|
-
* which is why the action is present only while a knock is open (W-GATE D3,
|
|
152
|
-
* `presentWhen`), and a composer press while it is open is addressed to that
|
|
153
|
-
* knock by the host.
|
|
154
|
-
*
|
|
155
|
-
* **The new room joins the room the party stand in** (places plan B6,
|
|
156
|
-
* 2026-09-29). The party knocked from somewhere: the world's `location` stat,
|
|
157
|
-
* else the room the knock's planner named (the block's `vantage`, plan A27).
|
|
158
|
-
* `here` resolves it against the rooms the dungeon lists — the Lair's name
|
|
159
|
-
* rule, `undescribed-name@1` reading the name at `world.location` inside the
|
|
160
|
-
* session's state (a location set to a place entry is that entry, by id) —
|
|
161
|
-
* and, once the room has landed, the `link` junction writes ONE relationship
|
|
162
|
-
* from the new room to that one, `leads to` both ways
|
|
163
|
-
* (`core:outlet/link-lore-entries@1`). The next turn's planner reads it under
|
|
164
|
-
* the room as "From here:".
|
|
165
|
-
*
|
|
166
|
-
* ⚠ **Invariant: the door never fails because the party's location names no
|
|
167
|
-
* room** (plan §3 #11). The location is usually words, and `create-lore-entry`'s
|
|
168
|
-
* own `links` refuses a name nothing answers to inside the entry's transaction
|
|
169
|
-
* — which would fail the room with it. So the link is its own write, after the
|
|
170
|
-
* room's, in a junction that fires only when `here` found a room: otherwise
|
|
171
|
-
* the room is saved unlinked. A rejected draft ends the run before either. The
|
|
172
|
-
* link is not gated (the master judged the room; the way back to where the
|
|
173
|
-
* party stand is not a second question) and the outlet is idempotent, so a
|
|
174
|
-
* repeat stacks nothing.
|
|
175
|
-
*
|
|
176
|
-
* **Then the story goes on.** Once the room lands, the master's own line —
|
|
177
|
-
* *The party go on into The Drowned Hall* — is written under their name, the
|
|
178
|
-
* way a send is: the turn order prepares the Castellan's turn, auto-advance
|
|
179
|
-
* fires it as it would after any send, and the planner, which now lists the
|
|
180
|
-
* room, walks the party in. A rejected draft ends the run at the gate, so
|
|
181
|
-
* nothing is said and the knock is open again.
|
|
182
|
-
* @internal
|
|
183
|
-
*/
|
|
184
|
-
export declare const lairRoomAnswerSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
185
|
-
/** @internal */
|
|
186
|
-
export declare const LAIR_FILE_ROOM_SPEC_ID = "core:spec/lair-file-room";
|
|
187
|
-
/** @internal */
|
|
188
|
-
export declare const LAIR_FILE_ROOM_VERSION = "1.0.0";
|
|
189
|
-
/**
|
|
190
|
-
* **File as a room** — a room described in a message reaches the lorebook
|
|
191
|
-
* (lair re-plan R11, 2026-09-28; owner ruling 1: the Sanctum is where the map
|
|
192
|
-
* is laid out ahead of time, and a planned room reaches the lorebook only
|
|
193
|
-
* through a review-gated write).
|
|
194
|
-
*
|
|
195
|
-
* The rooms worth filing are written in prose first: the master narrates the
|
|
196
|
-
* party into one on `main` (the person is the narrator, F2), plans one with the
|
|
197
|
-
* Castellan in the Sanctum, or the Castellan narrates one when it is fired. So
|
|
198
|
-
* this lives on the **message** — a row's ⋮ — and acts on that row: its text is
|
|
199
|
-
* read by id (`session-history@1`'s `messageId`, the inlet's), never sent by
|
|
200
|
-
* the client.
|
|
201
|
-
*
|
|
202
|
-
* **Whose rows.** The person's and the Castellan's — any row that is not a
|
|
203
|
-
* character's line (`item.characterLine equals false`, the grammar's one
|
|
204
|
-
* condition: *the person's or the Castellan's* is exactly *not a delver's*). A
|
|
205
|
-
* delver naming a door is not the dungeon's plan, which is the same rule the
|
|
206
|
-
* room check applies to prose (`undescribed-name@1`, R7). Greyed there with
|
|
207
|
-
* the sentence, and refused at the door with the same one.
|
|
208
|
-
*
|
|
209
|
-
* **The name is collected** (R3's collect modal): required, because it is what
|
|
210
|
-
* the person can find the room by again (*Build room*'s rule), because a
|
|
211
|
-
* message may describe more than one room and the name says which, and
|
|
212
|
-
* because it is what the duplicate check runs on — before any model call, so
|
|
213
|
-
* a room already in the book costs nothing. It stays editable at the review
|
|
214
|
-
* gate, where the draft is.
|
|
215
|
-
*
|
|
216
|
-
* **Then, R9's drafted path.** A room already in the book by the SDK's name
|
|
217
|
-
* rule (`undescribed-name@1` over the location entries, then the whole book;
|
|
218
|
-
* no prose read — the row itself is prose) is not filed twice: the Castellan
|
|
219
|
-
* says so on the Sanctum, and nothing is written. Otherwise the Castellan
|
|
220
|
-
* drafts the entry from that one row in *Build room*'s layout
|
|
221
|
-
* (`LAIR_ROOM_CONTENT_SHAPE`, `Exits:` when the message names them) and
|
|
222
|
-
* `create-lore-entry`'s **review gate** holds it — even from the person's own
|
|
223
|
-
* row, because the row may say more than the room. Approved, it lands as a
|
|
224
|
-
* **location**; rejected, nothing is written.
|
|
225
|
-
*
|
|
226
|
-
* ⚠ **`effects: 'world'` in the `message` venue.** A row's ⋮ is the owner's
|
|
227
|
-
* side of the effects line since this action (`WORLD_ACTION_VENUES`, R11):
|
|
228
|
-
* the owner's own press, the row its subject. `act` stays `owner`; no block
|
|
229
|
-
* names it; no answer pipeline presses it.
|
|
230
|
-
* @internal
|
|
231
|
-
*/
|
|
232
|
-
export declare const lairFileRoomSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
233
|
-
/** @internal */
|
|
234
|
-
export declare const LAIR_NUDGE_SPEC_ID = "core:spec/lair-nudge";
|
|
235
|
-
/** @internal */
|
|
236
|
-
export declare const LAIR_NUDGE_VERSION = "1.0.0";
|
|
237
|
-
/**
|
|
238
|
-
* **Nudge**: a directive to the Castellan's planner that produces no message.
|
|
239
|
-
*
|
|
240
|
-
* The shortest pipeline in the catalog that does anything: no model call, no
|
|
241
|
-
* retrieval, no transcript. The collected text (R3) becomes
|
|
242
|
-
* `core:slot/direction@1` on the world, the planner takes `state` on its own
|
|
243
|
-
* port, and the note is in the next turn's prompt.
|
|
244
|
-
*
|
|
245
|
-
* ⚠ **`apply`, not `propose`** — the one place in this genre where a state
|
|
246
|
-
* write skips the review the state-keeper's changes get. The argument for
|
|
247
|
-
* `propose` is that a *model* is not authoritative about the fiction
|
|
248
|
-
* (`set-state`'s own header). Here the writer is the person who owns the
|
|
249
|
-
* session, typing into their own composer, and asking them to accept their own
|
|
250
|
-
* instruction would be a dialog asking "did you mean what you just typed".
|
|
251
|
-
* @internal
|
|
252
|
-
*/
|
|
253
|
-
export declare const lairNudgeSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
254
|
-
/** @internal */
|
|
255
|
-
export declare const LAIR_WHISPER_SPEC_ID = "core:spec/lair-whisper";
|
|
256
|
-
/** @internal */
|
|
257
|
-
export declare const LAIR_WHISPER_VERSION = "1.0.0";
|
|
258
|
-
/**
|
|
259
|
-
* **Whisper**: a private instruction to the delvers the master picks, which
|
|
260
|
-
* writes no message (lair re-plan R10, owner ruling 5, 2026-09-28).
|
|
261
|
-
*
|
|
262
|
-
* The press collects **who hears it** (`collects.recipients`, the session's
|
|
263
|
-
* enabled cast, validated by the host) and **what it says**
|
|
264
|
-
* (`collects.text`), and the run writes that line on
|
|
265
|
-
* `core:slot/whisper@1` of each recipient — `resolve-state-changes@1`'s
|
|
266
|
-
* `owners` port makes the one change once per recipient. **Pure:** no model
|
|
267
|
-
* call. The model step that read a name off the typed line ("Verity: hold
|
|
268
|
-
* the line") and its "Lair whisper" prompt row are retired: the modal asks
|
|
269
|
-
* who, so nothing has to guess.
|
|
270
|
-
*
|
|
271
|
-
* **Heard by the recipients alone** (earshot, lair pass R1): the slot
|
|
272
|
-
* declares `earshot: 'holder'`, so each recipient's own voice reads it and no
|
|
273
|
-
* other prompt does — not another delver's, and none of the Castellan's
|
|
274
|
-
* (planner, keeper, narration, Sanctum talk). A whispered delver acts on it
|
|
275
|
-
* when they next speak; **Pick who speaks** gives them the floor now.
|
|
276
|
-
*
|
|
277
|
-
* ⚠ One standing note per delver, not a queue: a slot holds one value, so a
|
|
278
|
-
* new whisper REPLACES a recipient's old one, and a delver it does not name
|
|
279
|
-
* keeps theirs. The modal shows each delver's current whisper
|
|
280
|
-
* (`recipients.overwrites`), so the overwrite is visible before it happens.
|
|
281
|
-
* @internal
|
|
282
|
-
*/
|
|
283
|
-
export declare const lairWhisperSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
284
|
-
/** @internal */
|
|
285
|
-
export declare const LAIR_TRAP_SPEC_ID = "core:spec/lair-trap";
|
|
286
|
-
/** @internal */
|
|
287
|
-
export declare const LAIR_TRAP_VERSION = "1.0.0";
|
|
288
|
-
/** Spring something the party walked into. The Castellan tells them what it cost. @internal */
|
|
289
|
-
export declare const lairTrapSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
290
|
-
/** @internal */
|
|
291
|
-
export declare const LAIR_REVEAL_SPEC_ID = "core:spec/lair-reveal";
|
|
292
|
-
/** @internal */
|
|
293
|
-
export declare const LAIR_REVEAL_VERSION = "1.0.0";
|
|
294
|
-
/** Show the party something that was already there. @internal */
|
|
295
|
-
export declare const lairRevealSpec: () => import("@serene-pub/sdk").SpecDocument;
|
|
296
|
-
//# sourceMappingURL=lairActions.d.ts.map
|