@serene-pub/core-catalog 0.6.0-pr-7 → 0.6.0-pr-9
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 +1 -1
- package/components/genres/story/authors-note/AuthorsNote.svelte +2 -1
- package/components/genres/story/authors-note/AuthorsNoteWidget.svelte +177 -58
- package/components/shared/WidgetBoundary.svelte +37 -0
- package/components/shared/actions/Actions.svelte +2 -1
- package/components/shared/actions/ActionsWidget.svelte +31 -38
- package/components/shared/album/Album.svelte +2 -1
- package/components/shared/album/AlbumWidget.svelte +1 -7
- package/components/shared/annex/Annex.svelte +2 -1
- package/components/shared/annex/AnnexWidget.svelte +1 -1
- package/components/shared/attendance/Attendance.svelte +2 -1
- package/components/shared/attendance/AttendanceWidget.svelte +5 -8
- package/components/shared/backdrop/Backdrop.svelte +2 -1
- package/components/shared/backdrop/BackdropWidget.svelte +28 -22
- package/components/shared/chronicle/Chronicle.svelte +2 -1
- package/components/shared/chronicle/ChronicleWidget.svelte +211 -99
- package/components/shared/composer/Composer.svelte +25 -0
- package/components/shared/composer/ComposerWidget.svelte +146 -0
- package/components/shared/composer/composer.ts +10 -0
- package/components/shared/composer/settings.ts +59 -0
- package/components/shared/composer/target.ts +79 -0
- package/components/shared/dialogue-box/DialogueBoxMount.svelte +25 -0
- package/components/shared/dialogue-box/DialogueBoxWidget.svelte +207 -0
- package/components/shared/dialogue-box/dialogue-box.ts +10 -0
- package/components/shared/dialogue-box/settings.ts +25 -0
- package/components/shared/lore-entries/LoreEntries.svelte +2 -1
- package/components/shared/lore-entries/LoreEntriesWidget.svelte +44 -41
- package/components/shared/messages/MessageBlocksView.svelte +1 -1
- package/components/shared/messages/MessageControls.svelte +23 -5
- package/components/shared/messages/Messages.svelte +2 -1
- package/components/shared/messages/MessagesWidget.svelte +82 -191
- package/components/shared/messages/NextCharacterBlock.svelte +35 -20
- package/components/shared/messages/SceneDivider.svelte +40 -14
- package/components/shared/messages/SessionComposer.svelte +178 -123
- package/components/shared/messages/SessionContainer.svelte +89 -38
- package/components/shared/messages/SessionMessage.svelte +157 -54
- package/components/shared/messages/SpokenLine.svelte +57 -16
- package/components/shared/messages/StateProposalList.svelte +30 -20
- package/components/shared/messages/TurnLine.svelte +258 -66
- package/components/shared/messages/conversation.svelte.ts +83 -5
- package/components/shared/messages/readingPace.ts +101 -0
- package/components/shared/messages/rowFacts.ts +44 -0
- package/components/shared/messages/sceneMarks.ts +54 -0
- package/components/shared/messages/spokenLine.ts +63 -14
- package/components/shared/places/Places.svelte +2 -1
- package/components/shared/places/PlacesWidget.svelte +42 -33
- package/components/shared/routine-log/RoutineLog.svelte +2 -1
- package/components/shared/routine-log/RoutineLogWidget.svelte +0 -4
- package/components/shared/routine-log/routineLog.ts +5 -21
- package/components/shared/scene-portraits/ScenePortraits.svelte +2 -1
- package/components/shared/scene-portraits/ScenePortraitsWidget.svelte +54 -32
- package/components/shared/session-runs/SessionRuns.svelte +26 -0
- package/components/shared/session-runs/SessionRunsWidget.svelte +270 -0
- package/components/shared/session-runs/session-runs.ts +11 -0
- package/components/shared/state/PieceCard.svelte +36 -25
- package/components/shared/state/SlotControl.svelte +18 -5
- package/components/shared/stats/Stats.svelte +2 -1
- package/components/shared/stats/StatsWidget.svelte +104 -72
- package/components/shared/turn-line/TurnLineMount.svelte +25 -0
- package/components/shared/turn-line/TurnLineWidget.svelte +25 -0
- package/components/shared/turn-line/settings.ts +31 -0
- package/components/shared/turn-line/turn-line.ts +10 -0
- package/components/shared/turn-order/TurnOrder.svelte +2 -1
- package/components/shared/turn-order/TurnOrderWidget.svelte +1 -6
- package/dist/components/actions.js +71 -88
- package/dist/components/actions.source.json +1 -1
- package/dist/components/album.js +39 -44
- package/dist/components/album.source.json +1 -1
- package/dist/components/annex.js +17 -8
- package/dist/components/annex.source.json +1 -1
- package/dist/components/attendance.js +39 -48
- package/dist/components/attendance.source.json +1 -1
- package/dist/components/authors-note.js +329 -162
- package/dist/components/authors-note.source.json +1 -1
- package/dist/components/backdrop.js +52 -55
- package/dist/components/backdrop.source.json +1 -1
- package/dist/components/chronicle.js +798 -559
- package/dist/components/chronicle.source.json +1 -1
- package/dist/components/composer.js +1639 -0
- package/dist/components/composer.source.json +1 -0
- package/dist/components/core-ui.json +1 -1
- package/dist/components/dialogue-box.js +373 -0
- package/dist/components/dialogue-box.source.json +1 -0
- package/dist/components/lore-entries.js +134 -122
- package/dist/components/lore-entries.source.json +1 -1
- package/dist/components/messages.js +1517 -8930
- package/dist/components/messages.source.json +1 -1
- package/dist/components/places.js +267 -244
- package/dist/components/places.source.json +1 -1
- package/dist/components/routine-log.js +35 -51
- package/dist/components/routine-log.source.json +1 -1
- package/dist/components/scene-portraits.js +118 -59
- package/dist/components/scene-portraits.source.json +1 -1
- package/dist/components/session-runs.js +488 -0
- package/dist/components/session-runs.source.json +1 -0
- package/dist/components/{shared-7VDIXYAL.js → shared-47J4TNSF.js} +1 -1
- package/dist/components/{shared-W3XS5FEL.js → shared-5E4RQYRX.js} +3 -2
- package/dist/components/{shared-YDS7HYL6.js → shared-EFMMT76D.js} +57 -4
- package/dist/components/{shared-BIWKZFUU.js → shared-FOVKPMSK.js} +3 -3
- package/dist/components/{shared-JPG5DQO7.js → shared-HEAKNNZB.js} +92 -17
- package/dist/components/shared-JXP6SHKF.js +159 -0
- package/dist/components/{shared-XBDUENRA.js → shared-JXYPKSTQ.js} +1 -1
- package/dist/components/shared-KJIOSSE3.js +257 -0
- package/dist/components/{shared-WV3QTKZT.js → shared-KLURQFWI.js} +13 -9
- package/dist/components/shared-MHCNUDUT.js +1680 -0
- package/dist/components/{shared-QXF5CJVN.js → shared-NICRJ4Z2.js} +1 -1
- package/dist/components/{shared-BBF64YGL.js → shared-W2BBJCNE.js} +22 -16
- package/dist/components/shared-YYYXFDZU.js +4354 -0
- package/dist/components/stats.js +828 -678
- package/dist/components/stats.source.json +1 -1
- package/dist/components/turn-line.js +856 -0
- package/dist/components/turn-line.source.json +1 -0
- package/dist/components/turn-order.js +62 -67
- package/dist/components/turn-order.source.json +1 -1
- package/dist/factories/answerForm.d.ts +6 -0
- package/dist/factories/answerForm.js +104 -96
- package/dist/factories/turnOrder.d.ts +98 -105
- package/dist/factories/turnOrder.js +120 -136
- package/dist/functions/pieces.js +1 -0
- package/dist/functions/time.js +2 -0
- package/dist/genres/chat/create.js +2 -0
- package/dist/genres/chat/memory.js +64 -43
- package/dist/genres/chat/respond.d.ts +7 -6
- package/dist/genres/chat/respond.js +13 -4
- package/dist/genres/chat/turnOrder.d.ts +2 -2
- package/dist/genres/chat/turnOrder.js +28 -12
- package/dist/genres/defaults.d.ts +28 -6
- package/dist/genres/defaults.js +84 -26
- package/dist/genres/dungeon-crawler/calls.d.ts +3 -1
- package/dist/genres/dungeon-crawler/calls.js +5 -0
- package/dist/genres/dungeon-crawler/create.d.ts +9 -6
- package/dist/genres/dungeon-crawler/create.js +18 -8
- package/dist/genres/dungeon-crawler/death.d.ts +13 -6
- package/dist/genres/dungeon-crawler/death.js +26 -12
- package/dist/genres/dungeon-crawler/index.d.ts +1 -0
- package/dist/genres/dungeon-crawler/index.js +1 -0
- package/dist/genres/dungeon-crawler/journal.d.ts +1 -1
- package/dist/genres/dungeon-crawler/journal.js +1 -1
- package/dist/genres/dungeon-crawler/lore.d.ts +13 -12
- package/dist/genres/dungeon-crawler/lore.js +16 -25
- package/dist/genres/dungeon-crawler/names.d.ts +10 -3
- package/dist/genres/dungeon-crawler/names.js +10 -3
- package/dist/genres/dungeon-crawler/preamble.d.ts +5 -4
- package/dist/genres/dungeon-crawler/preamble.js +75 -33
- package/dist/genres/dungeon-crawler/respond.js +4 -2
- package/dist/genres/dungeon-crawler/rest.d.ts +8 -7
- package/dist/genres/dungeon-crawler/rest.js +39 -15
- package/dist/genres/dungeon-crawler/reveal.js +2 -2
- package/dist/genres/dungeon-crawler/roundScript.d.ts +2 -1
- package/dist/genres/dungeon-crawler/roundScript.js +23 -5
- package/dist/genres/dungeon-crawler/scripts.js +4 -5
- package/dist/genres/dungeon-crawler/shape.d.ts +16 -0
- package/dist/genres/dungeon-crawler/shape.js +5 -1
- package/dist/genres/dungeon-crawler/sheet.d.ts +20 -20
- package/dist/genres/dungeon-crawler/story.d.ts +27 -16
- package/dist/genres/dungeon-crawler/story.js +175 -46
- package/dist/genres/dungeon-crawler/storyScripts.d.ts +2 -2
- package/dist/genres/dungeon-crawler/storyScripts.js +109 -14
- package/dist/genres/dungeon-crawler/summarizeScene.d.ts +13 -0
- package/dist/genres/dungeon-crawler/summarizeScene.js +21 -0
- package/dist/genres/dungeon-crawler/turnOrder.d.ts +8 -9
- package/dist/genres/dungeon-crawler/turnOrder.js +33 -23
- package/dist/genres/guide/create.js +2 -0
- package/dist/genres/guide/turnOrder.d.ts +3 -3
- package/dist/genres/guide/turnOrder.js +29 -13
- package/dist/genres/lair/answerForm.js +4 -1
- package/dist/genres/lair/buildRoom.js +4 -3
- package/dist/genres/lair/castellanAction.js +160 -154
- package/dist/genres/lair/create.js +2 -0
- package/dist/genres/lair/fileCurrentRoom.js +13 -10
- package/dist/genres/lair/fileRoom.js +4 -3
- package/dist/genres/lair/keeper.js +6 -2
- package/dist/genres/lair/names.d.ts +2 -0
- package/dist/genres/lair/names.js +2 -0
- package/dist/genres/lair/reply.js +16 -6
- package/dist/genres/lair/roomAnswer.js +4 -3
- package/dist/genres/lair/scratchpad.js +9 -7
- package/dist/genres/lair/scripts.js +8 -6
- package/dist/genres/lair/turnOrder.d.ts +3 -2
- package/dist/genres/lair/turnOrder.js +45 -16
- package/dist/genres/story/ask.d.ts +4 -0
- package/dist/genres/story/ask.js +4 -0
- package/dist/genres/story/create.js +15 -0
- package/dist/genres/story/index.d.ts +1 -1
- package/dist/genres/story/index.js +1 -1
- package/dist/genres/story/narrate.js +8 -0
- package/dist/genres/story/narrateCharacter.js +8 -0
- package/dist/genres/story/reckon.d.ts +5 -19
- package/dist/genres/story/reckon.js +53 -40
- package/dist/genres/story/reckoning.js +3 -0
- package/dist/genres/story/respond.js +17 -28
- package/dist/genres/story/sweep.d.ts +1 -1
- package/dist/genres/story/sweep.js +1 -1
- package/dist/genres/story/turnOrder.d.ts +21 -3
- package/dist/genres/story/turnOrder.js +87 -21
- package/dist/index.d.ts +3 -0
- package/dist/index.js +23 -9
- package/dist/loadouts.d.ts +1 -0
- package/dist/loadouts.js +17 -1
- package/dist/primers/ninth-mile.d.ts +3 -4
- package/dist/registry/entries.d.ts +2 -0
- package/dist/registry/entries.js +18 -5
- package/dist/registry/genres.d.ts +146 -40
- package/dist/registry/genres.js +373 -101
- package/dist/registry/hostState.d.ts +1 -2
- package/dist/registry/hostState.js +2 -4
- package/dist/registry/layouts.d.ts +141 -111
- package/dist/registry/layouts.js +302 -141
- package/dist/registry/slots.d.ts +4 -3
- package/dist/registry/slots.js +4 -3
- package/dist/registry/widgets.d.ts +12 -2
- package/dist/registry/widgets.js +259 -106
- package/dist/rulesets/vis-itineris/ruleset.js +8 -5
- package/dist/rulesets/wherewithal/ruleset.js +2 -1
- package/dist/seed/presets.js +15 -9
- package/dist/seed/prompts.js +24 -5
- package/dist/seed/scripts.js +3 -0
- package/dist/shared/annexField.js +23 -3
- package/dist/shared/illustrateScene.d.ts +1 -0
- package/dist/shared/illustrateScene.js +29 -1
- package/dist/shared/lore.d.ts +13 -0
- package/dist/shared/lore.js +37 -1
- package/dist/shared/portrait.js +13 -4
- package/dist/shared/reckoning.d.ts +8 -2
- package/dist/shared/reckoning.js +47 -30
- package/dist/shared/roundTick.d.ts +20 -0
- package/dist/shared/roundTick.js +76 -0
- package/dist/shared/sceneBoundaries.d.ts +7 -0
- package/dist/shared/sceneBoundaries.js +62 -0
- package/dist/shared/sceneSummaries.d.ts +7 -0
- package/dist/shared/sceneSummaries.js +49 -0
- package/dist/shared/speakMessage.d.ts +9 -2
- package/dist/shared/speakMessage.js +32 -9
- package/dist/shared/speechFields.js +4 -0
- package/dist/shared/summarize/character.d.ts +1 -1
- package/dist/shared/summarize/history.d.ts +1 -1
- package/dist/shared/summarize/scene.d.ts +1 -1
- package/dist/shared/summarize/summarizeScene.js +1 -0
- package/dist/shared/summarize/summarizeSpec.d.ts +1 -1
- package/dist/shared/summarize/world.d.ts +1 -1
- package/dist/shared/ui/attendance/index.d.ts +3 -2
- package/dist/shared/ui/attendance/index.js +3 -7
- package/dist/shared/ui/chronicle/index.d.ts +24 -2
- package/dist/shared/ui/chronicle/index.js +58 -29
- package/dist/shared/ui/conversation/formAnswer.d.ts +16 -2
- package/dist/shared/ui/conversation/formAnswer.js +23 -9
- package/dist/shared/ui/conversation/index.d.ts +2 -0
- package/dist/shared/ui/conversation/index.js +4 -0
- package/dist/shared/ui/conversation/itemValues.d.ts +16 -3
- package/dist/shared/ui/conversation/itemValues.js +15 -5
- package/dist/shared/ui/conversation/messageVerbState.d.ts +17 -2
- package/dist/shared/ui/conversation/messageVerbState.js +5 -4
- package/dist/shared/ui/conversation/readingPlace.d.ts +40 -0
- package/dist/shared/ui/conversation/readingPlace.js +119 -0
- package/dist/shared/ui/conversation/rewindStrip.d.ts +13 -4
- package/dist/shared/ui/conversation/rewindStrip.js +29 -7
- package/dist/shared/ui/conversation/runsInProgress.d.ts +30 -0
- package/dist/shared/ui/conversation/runsInProgress.js +47 -0
- package/dist/shared/ui/conversation/storyDays.d.ts +7 -1
- package/dist/shared/ui/conversation/storyDays.js +8 -0
- package/dist/shared/ui/conversation/tableChannel.d.ts +8 -11
- package/dist/shared/ui/conversation/tableChannel.js +8 -9
- package/dist/shared/ui/places/index.d.ts +3 -2
- package/dist/shared/ui/places/index.js +4 -5
- package/dist/shared/ui/routine-log/index.d.ts +3 -0
- package/dist/shared/ui/routine-log/index.js +22 -0
- package/dist/shared/ui/scene-portraits/portraits.d.ts +50 -16
- package/dist/shared/ui/scene-portraits/portraits.js +84 -21
- package/dist/shared/ui/session-runs/index.d.ts +90 -0
- package/dist/shared/ui/session-runs/index.js +143 -0
- package/dist/shared/ui/session-state/stateView.d.ts +18 -5
- package/dist/shared/ui/session-state/stateView.js +29 -8
- package/dist/shared/ui/turn-order/index.d.ts +0 -9
- package/dist/shared/ui/turn-order/index.js +1 -2
- package/package.json +12 -8
- /package/dist/components/{shared-4ME6NFDK.js → shared-LUIF6DW7.js} +0 -0
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
* max, `state.configs` — the number its bar is drawn to), and
|
|
27
27
|
* one **taken out** is back on their feet (`fate` → `alive`); the dead
|
|
28
28
|
* stay dead;
|
|
29
|
-
* - the
|
|
30
|
-
* raised, else their longest (`
|
|
29
|
+
* - the session's story clock moves on by the rest's length — the rest the
|
|
30
|
+
* rules raised, else their longest (`advance-story-clock@1`); 🚧 rules that keep
|
|
31
31
|
* no rest say none, and the night is told without its length;
|
|
32
32
|
* - 🚧 every spent spell slot comes back (`spell-slots` pieces, `used` 0);
|
|
33
33
|
* at a table playing spell points (P2-4) the night's `advance` refills
|
|
@@ -67,10 +67,11 @@ export const DUNGEON_CRAWLER_AFTER_REST_SPEC_ID = 'core:spec/dungeon-crawler-aft
|
|
|
67
67
|
export const DUNGEON_CRAWLER_AFTER_REST_VERSION = '1.0.0';
|
|
68
68
|
/**
|
|
69
69
|
* `core:script/dungeon-crawler-rest`: what a night's rest changes. Handed
|
|
70
|
-
* `{ session, state, ruleset, cause? }` — `cause` the event that woke the
|
|
71
|
-
* routine (its `values.rest`, the rest the rules raised)
|
|
72
|
-
*
|
|
73
|
-
*
|
|
70
|
+
* `{ session, state, ruleset, cast, cause? }` — `cause` the event that woke the
|
|
71
|
+
* routine (its `values.rest`, the rest the rules raised), `cast` the session's
|
|
72
|
+
* cast read (it carries the story time). Returns `{ changes, owners, deltas,
|
|
73
|
+
* progress, elapsed, clock, line, journal }` (`elapsed` null where the rules
|
|
74
|
+
* keep no rest; `clock` the minutes the session's story clock moves, else null).
|
|
74
75
|
* @experimental
|
|
75
76
|
*/
|
|
76
77
|
export const DUNGEON_CRAWLER_REST_SCRIPT = storySeed('core:script/dungeon-crawler-rest', 'Dungeon Crawler: rest', `${DUNGEON_CRAWLER_STORY_PREAMBLE}
|
|
@@ -95,7 +96,7 @@ if (v.cause !== undefined && v.cause !== null) {
|
|
|
95
96
|
var restedBy = text(raisedBy.owner) || text(own(own(v.cause).values).owner) || text(own(v.cause).owner);
|
|
96
97
|
for (var rb = 0; rb < seats.length; rb++)
|
|
97
98
|
if (seats[rb].ref === restedBy && seats[rb].user != null && doc.ownerUserId != null && Number(seats[rb].user) !== Number(doc.ownerUserId))
|
|
98
|
-
return { changes: [], owners: [], deltas: null, elapsed: null, progress: null, line: null, journal: null };
|
|
99
|
+
return { changes: [], owners: [], deltas: null, elapsed: null, progress: null, clock: null, line: null, journal: null };
|
|
99
100
|
}
|
|
100
101
|
var changes = [];
|
|
101
102
|
var healed = [];
|
|
@@ -109,9 +110,12 @@ for (var i = 0; i < seats.length; i++) {
|
|
|
109
110
|
if (s.tally) changes.push({ owner: s.ref, slot: SL.deathSaves, value: "" });
|
|
110
111
|
if (mended) healed.push(s.name);
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
// The session's story now, as the cast read carries it (2026-11-10): the
|
|
114
|
+
// story clock moves by the night through \`advance-story-clock@1\`.
|
|
115
|
+
var was = storyNowClock(own(own(v.cast).storyTime).now) || ${JSON.stringify(DUNGEON_CRAWLER_EPOCH)};
|
|
116
|
+
var start = storyStartClock(own(own(v.cast).storyTime).sessionStart) || was;
|
|
117
|
+
var calendar = own(own(v.cast).storyTime).calendar || null;
|
|
118
|
+
var now = minutes > 0 ? addMinutes(was, minutes, calendar) || was : was;
|
|
115
119
|
var hadFates = JSON.stringify([progress.fates || null, progress.deathSaves || null]);
|
|
116
120
|
keepFates(progress, seats, changes);
|
|
117
121
|
// 🚧 Nobody is dying after a night's rest (★7): the death-save tallies go.
|
|
@@ -126,7 +130,7 @@ var deltas = [];
|
|
|
126
130
|
var byId = own(own(state.cast).byId);
|
|
127
131
|
for (var si = 0; si < seats.length; si++) {
|
|
128
132
|
if (seats[si].fate === "dead") continue;
|
|
129
|
-
var slots = own(byId[stateKeyOf(seats[si].ref)])["crawl-spell-slots"];
|
|
133
|
+
var slots = own(byId[stateKeyOf(seats[si].ref, byId)])["crawl-spell-slots"];
|
|
130
134
|
slots = Array.isArray(slots) ? slots : [];
|
|
131
135
|
for (var sp = 0; sp < slots.length; sp++) {
|
|
132
136
|
var piece = own(slots[sp]);
|
|
@@ -143,10 +147,12 @@ return {
|
|
|
143
147
|
deltas: deltas.length ? deltas : null,
|
|
144
148
|
// The night's time, for the handler's advance — none where the rules keep no rest.
|
|
145
149
|
elapsed: minutes > 0 ? { minutes: minutes } : null,
|
|
150
|
+
// The minutes the session's story clock moves by.
|
|
151
|
+
clock: now !== was ? Math.round(minutes) : null,
|
|
146
152
|
// The round script's mirror of who is out, when the rest changed it.
|
|
147
153
|
progress: JSON.stringify([progress.fates || null, progress.deathSaves || null]) !== hadFates ? progress : null,
|
|
148
|
-
line: "The party rests" + (minutes > 0 ? " for " + restWords(minutes) : "") + "." + (healed.length ? " " + healed.join(", ") + (healed.length === 1 ? " recovers." : " recover.") : "") + (now !== was ? " It is now " + clockLabel(now) + "." : ""),
|
|
149
|
-
journal: "The party rests." + (now !== was ? " " + clockLabel(was) + " → " + clockLabel(now) + "." : "")
|
|
154
|
+
line: "The party rests" + (minutes > 0 ? " for " + restWords(minutes) : "") + "." + (healed.length ? " " + healed.join(", ") + (healed.length === 1 ? " recovers." : " recover.") : "") + (now !== was ? " It is now " + clockLabel(now, start, calendar) + "." : ""),
|
|
155
|
+
journal: "The party rests." + (now !== was ? " " + clockLabel(was, start, calendar) + " → " + clockLabel(now, start, calendar) + "." : "")
|
|
150
156
|
};
|
|
151
157
|
`);
|
|
152
158
|
/**
|
|
@@ -164,6 +170,8 @@ const restBody = (head, w, applied, routine) => {
|
|
|
164
170
|
state: $.state.state,
|
|
165
171
|
// 🚧 The session's ruleset (S4): how long its rest takes.
|
|
166
172
|
ruleset: $.input.ruleset,
|
|
173
|
+
// The session's story time rides on the cast read (2026-11-10).
|
|
174
|
+
cast: $.cast.main,
|
|
167
175
|
// The routine's moment: the rest the rules raised (`rest-taken`'s payload).
|
|
168
176
|
...(routine ? { cause: $.input.cause } : {}),
|
|
169
177
|
}), 'Rest');
|
|
@@ -185,7 +193,7 @@ const restBody = (head, w, applied, routine) => {
|
|
|
185
193
|
base: $.state.version,
|
|
186
194
|
worldRow: $.write.messageId,
|
|
187
195
|
params: slot.params(),
|
|
188
|
-
}), { expose: { label: 'Heal
|
|
196
|
+
}), { expose: { label: 'Heal the party' } }))
|
|
189
197
|
/**
|
|
190
198
|
* The ruleset's **advance** (PLAN-rulesets §25): the night's time
|
|
191
199
|
* passed to every mechanic that runs on time — what wears off,
|
|
@@ -201,6 +209,18 @@ const restBody = (head, w, applied, routine) => {
|
|
|
201
209
|
// The routine's moment: the event that woke it, the functions' `ctx.event` (D3).
|
|
202
210
|
...(routine ? { event: $.input.cause } : {}),
|
|
203
211
|
}), { expose: { label: 'Pass the night under the rules' } }))
|
|
212
|
+
/**
|
|
213
|
+
* The session's story clock moves by the night (2026-11-10: the crawl
|
|
214
|
+
* keeps no clock of its own). A move the story cannot take moves
|
|
215
|
+
* nothing (`onRefusal: 'skip'`).
|
|
216
|
+
*/
|
|
217
|
+
.when('clock', { path: (v) => v.clock, truthy: true }, (c) => jsonPart(c, w, 'minutes', ($) => $.rest.main, 'clock', "The night's minutes").outlet('advance', ($) => C.advanceStoryClock.v1({
|
|
218
|
+
by: $.minutes.main,
|
|
219
|
+
unit: 'minutes',
|
|
220
|
+
cause: 'action',
|
|
221
|
+
onRefusal: 'skip',
|
|
222
|
+
params: slot.params(),
|
|
223
|
+
}), { expose: { label: 'Move the story clock by the night' } }))
|
|
204
224
|
/** The journal's line for the rest, on the folio — as a round's is (`journal.ts`). */
|
|
205
225
|
.when('logged', { path: (v) => v.journal, truthy: true }, (c) => jsonPart(textPart(c, w, 'line', ($) => $.rest.main, 'journal', "The rest's journal line"), w, 'anchor', ($) => $.head.messages, '0.id', 'The Story line the journal line follows').outlet('write', ($) => C.createMessage.v1({
|
|
206
226
|
text: $.line.text,
|
|
@@ -252,6 +272,8 @@ export const dungeonCrawlerRestSpec = () => {
|
|
|
252
272
|
})
|
|
253
273
|
.inlet('input', C.userMessage.v1(), { suits: [] })
|
|
254
274
|
.query('state', ($) => C.sessionState.v1({ scope: $.input.sessionScope }))
|
|
275
|
+
/** The session's cast: it carries the story time the night starts from. */
|
|
276
|
+
.query('cast', ($) => C.sessionCast.v1({ scope: $.input.sessionScope }))
|
|
255
277
|
/** Story's newest line: the one the rest's table row belongs to. */
|
|
256
278
|
.query('head', ($) => C.sessionHistory.v1({ scope: $.input.sessionScope, params: slot.params() }), {
|
|
257
279
|
expose: { status: 'Resting' },
|
|
@@ -262,7 +284,7 @@ export const dungeonCrawlerRestSpec = () => {
|
|
|
262
284
|
* 🚧 **After a rest** — the routine on `core:event/rest-taken@1` (S3): when the
|
|
263
285
|
* session's rules' Rest has been taken (the rules action Rest), the night's
|
|
264
286
|
* effects that are the crawl's own — the party healed and back on their
|
|
265
|
-
* feet, the death-save tallies gone, the spell slots back, the clock moved
|
|
287
|
+
* feet, the death-save tallies gone, the spell slots back, the story clock moved
|
|
266
288
|
* by the rest the rules raised, the night under the rules, and the journal's
|
|
267
289
|
* line. The rules' own restoring is theirs (`core:function/rest@1`).
|
|
268
290
|
* @experimental
|
|
@@ -278,6 +300,8 @@ export const dungeonCrawlerAfterRestSpec = () => {
|
|
|
278
300
|
/** A routine (D2): the session, and the rest the rules raised (`cause`). */
|
|
279
301
|
.inlet('input', C.routine.v1(), { suits: [coreEvents.restTaken] })
|
|
280
302
|
.query('state', ($) => C.sessionState.v1({ scope: $.input.sessionScope }))
|
|
303
|
+
/** The session's cast: it carries the story time the night starts from. */
|
|
304
|
+
.query('cast', ($) => C.sessionCast.v1({ scope: $.input.sessionScope }))
|
|
281
305
|
/** Story's newest line: the one the rest's table row belongs to. */
|
|
282
306
|
.query('head', ($) => C.sessionHistory.v1({ scope: $.input.sessionScope, params: slot.params() }), {
|
|
283
307
|
expose: { status: 'Resting' },
|
|
@@ -88,13 +88,13 @@ export const dungeonCrawlerRevealSpec = () => {
|
|
|
88
88
|
icon: 'scroll-text',
|
|
89
89
|
label: { en: 'Reveal the planning notes' },
|
|
90
90
|
description: {
|
|
91
|
-
en: "Shows everyone the Planner's secret notes
|
|
91
|
+
en: "Shows everyone the Planner's secret notes. Going Back past it hides them again.",
|
|
92
92
|
},
|
|
93
93
|
// 🚧 Asked first (P4-10, 2026-10-18): one press revealed them for good.
|
|
94
94
|
confirm: {
|
|
95
95
|
question: { en: 'Reveal the planning notes?' },
|
|
96
96
|
description: {
|
|
97
|
-
en: "Everyone at the table reads the Planner's secret notes from now on: the goal, what is hidden and what the world will do next.
|
|
97
|
+
en: "Everyone at the table reads the Planner's secret notes from now on: the goal, what is hidden and what the world will do next. Going Back past this hides them again.",
|
|
98
98
|
},
|
|
99
99
|
confirmLabel: { en: 'Reveal' },
|
|
100
100
|
},
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
* one of them has **declared** — has a visible line on Story since the
|
|
12
12
|
* Story's newest reply (`selection.sentSinceReply.main`, the host's
|
|
13
13
|
* reading of the rows: the seat's `player-seat:<id>`, or `character:<id>`
|
|
14
|
-
* for a seat with a card
|
|
14
|
+
* for a seat with a card — ⏳ a line stamped with the card still counts
|
|
15
|
+
* after the seat's `ref` changes form, until S5). The hand-marked `round` annex key is gone
|
|
15
16
|
* (AUDIT C7): nothing ever wrote it but its own reset;
|
|
16
17
|
*
|
|
17
18
|
* ⚠ **Why the rows, not the annex** (multiplayer lane, 2026-10-15): a
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
* one of them has **declared** — has a visible line on Story since the
|
|
12
12
|
* Story's newest reply (`selection.sentSinceReply.main`, the host's
|
|
13
13
|
* reading of the rows: the seat's `player-seat:<id>`, or `character:<id>`
|
|
14
|
-
* for a seat with a card
|
|
14
|
+
* for a seat with a card — ⏳ a line stamped with the card still counts
|
|
15
|
+
* after the seat's `ref` changes form, until S5). The hand-marked `round` annex key is gone
|
|
15
16
|
* (AUDIT C7): nothing ever wrote it but its own reset;
|
|
16
17
|
*
|
|
17
18
|
* ⚠ **Why the rows, not the annex** (multiplayer lane, 2026-10-15): a
|
|
@@ -77,11 +78,23 @@ var state = ctx && ctx.state && typeof ctx.state === "object" ? ctx.state : null
|
|
|
77
78
|
var byId = state && state.cast && state.cast.byId ? state.cast.byId : null;
|
|
78
79
|
var progress = core[${JSON.stringify(DUNGEON_CRAWLER_ANNEX_KEYS.progress)}] || core[${JSON.stringify(DUNGEON_CRAWLER_ANNEX_KEYS.legacyWorld)}] || {};
|
|
79
80
|
var mirror = (progress.fates && typeof progress.fates === "object") ? progress.fates : {};
|
|
80
|
-
|
|
81
|
+
// The seat's participant ref: the host's, else ⏳ today's card form.
|
|
82
|
+
function refOf(s) { return typeof s.ref === "string" && s.ref ? s.ref : s.persona && s.persona.id != null ? "character:" + s.persona.id : "player-seat:" + s.seatId; }
|
|
83
|
+
// The state.cast.byId key a participant reference reads under: the entry
|
|
84
|
+
// whose host-filled \`ref\` is this ref (look up, never parse). ⏳ A host
|
|
85
|
+
// before S3 fills no \`ref\`: then today's card-form key — only when the entry
|
|
86
|
+
// under it carries no \`ref\` of its own (card and member ids share one range).
|
|
87
|
+
function stateKeyOf(ref, byId) {
|
|
88
|
+
var r = String(ref), b = byId && typeof byId === "object" ? byId : {};
|
|
89
|
+
for (var k in b) { var e = b[k]; if (e && typeof e === "object" && e.ref === r) return k; }
|
|
90
|
+
var m = /^player-seat:(\\d+)$/.exec(r), c = /^character:(\\d+)$/.exec(r);
|
|
91
|
+
var key = m ? "player_seat:" + m[1] : c ? c[1] : r;
|
|
92
|
+
var at = b[key];
|
|
93
|
+
return at && typeof at === "object" && at.ref !== undefined ? r : key;
|
|
94
|
+
}
|
|
81
95
|
function fateOf(s) {
|
|
82
96
|
if (byId) {
|
|
83
|
-
var
|
|
84
|
-
var row = byId[key];
|
|
97
|
+
var row = byId[stateKeyOf(refOf(s), byId)];
|
|
85
98
|
return row && typeof row.fate === "string" ? row.fate : "alive";
|
|
86
99
|
}
|
|
87
100
|
return mirror[refOf(s)];
|
|
@@ -102,7 +115,7 @@ function made(s) {
|
|
|
102
115
|
return !!h && (h.made === true || (h.backstory !== undefined && String(h.name || "").trim() !== ""));
|
|
103
116
|
}
|
|
104
117
|
var named = ((doc.cast && doc.cast.sessionPersonas) || []).filter(function (s) {
|
|
105
|
-
if (!s || s.removedAt) return false;
|
|
118
|
+
if (!s || s.removedAt || s.enabled === false) return false;
|
|
106
119
|
var name = s.seatName || (s.persona && s.persona.name) || "";
|
|
107
120
|
return String(name).trim() !== "" && made(s);
|
|
108
121
|
});
|
|
@@ -113,6 +126,11 @@ var seats = named.filter(function (s) {
|
|
|
113
126
|
function hasDeclared(s) {
|
|
114
127
|
var user = userOfSeat(s);
|
|
115
128
|
if (user != null && declared.indexOf("user:" + user) >= 0) return true;
|
|
129
|
+
if (typeof s.ref === "string" && s.ref) {
|
|
130
|
+
if (declared.indexOf(s.ref) >= 0) return true;
|
|
131
|
+
// ⏳ A line stamped before the flip, with the card: still counts until S5.
|
|
132
|
+
return !!s.persona && s.persona.id != null && declared.indexOf("character:" + s.persona.id) >= 0;
|
|
133
|
+
}
|
|
116
134
|
if (s.persona && s.persona.id != null && declared.indexOf("character:" + s.persona.id) >= 0) return true;
|
|
117
135
|
return declared.indexOf("player-seat:" + s.seatId) >= 0;
|
|
118
136
|
}
|
|
@@ -253,7 +253,7 @@ function keepHero() { heroes[who] = hero; world.heroes = heroes; plan.world = wo
|
|
|
253
253
|
function said(words) { var t0 = text(words); if (t0) plan.echo = /[.!?…]$/.test(t0) ? t0 : t0 + "."; }
|
|
254
254
|
// 🚧 The seat's character is dead (by its fate row): the next name is a NEW
|
|
255
255
|
// character, on a new seat (P3-1).
|
|
256
|
-
var seatFate = seatRef ? text(own(own(own(state.cast).byId)[stateKeyOf(seatRef)]).fate) : "";
|
|
256
|
+
var seatFate = seatRef ? text(own(own(own(state.cast).byId)[stateKeyOf(seatRef, own(own(state.cast).byId))]).fate) : "";
|
|
257
257
|
// 🚧 A seat with a card is named by it (P3-6, the walk's #26): the name
|
|
258
258
|
// question is not asked of a persona — unless that character is the one
|
|
259
259
|
// who died, and a new one is being made.
|
|
@@ -369,7 +369,7 @@ if (WORLD_QUESTIONS.indexOf(referent) >= 0 && !isOwner && choice !== JUST_PLAY)
|
|
|
369
369
|
plan.sheetBrief = sheetBrief(hero.told ? "told" : "surprise");
|
|
370
370
|
} else if (referent === Q.newCharacter) {
|
|
371
371
|
// The fate row decides, never the form still standing in the lane.
|
|
372
|
-
var fateNow = seatRef ? text(own(own(own(state.cast).byId)[stateKeyOf(seatRef)]).fate) : "";
|
|
372
|
+
var fateNow = seatRef ? text(own(own(own(state.cast).byId)[stateKeyOf(seatRef, own(own(state.cast).byId))]).fate) : "";
|
|
373
373
|
if (seatRef && fateNow !== "dead") plan.refusal = (name || "Your character") + " is alive and still in the story: there is no new character to make.";
|
|
374
374
|
else { said(label); ask("A new face, then. What is your new character called?", [nameBlock(who)]); }
|
|
375
375
|
} else if (referent === STANDING_Q) {
|
|
@@ -526,14 +526,14 @@ var pointsConfig = null;
|
|
|
526
526
|
if (rulesNow.casting === "points" && rulesNow.pointsSlot) {
|
|
527
527
|
var pool = kitSpellPoints(kitKey);
|
|
528
528
|
changes.push({ slot: rulesNow.pointsSlot, value: pool });
|
|
529
|
-
var poolNow = sheetRef ? own(own(own(state).configs)[stateKeyOf(sheetRef)])[rulesNow.pointsSlot] : null;
|
|
529
|
+
var poolNow = sheetRef ? own(own(own(state).configs)[stateKeyOf(sheetRef, own(own(own(state).cast).byId))])[rulesNow.pointsSlot] : null;
|
|
530
530
|
if (!poolNow || poolNow.max !== pool) pointsConfig = { max: pool };
|
|
531
531
|
}
|
|
532
532
|
if (justPlay && cls) changes.push({ slot: SL.characterClass, value: cls });
|
|
533
533
|
var kitOut = null;
|
|
534
534
|
var drop = [];
|
|
535
535
|
if (sheetRef) {
|
|
536
|
-
var heldBag = own(own(own(state).cast).byId)[stateKeyOf(sheetRef)] || {};
|
|
536
|
+
var heldBag = own(own(own(state).cast).byId)[stateKeyOf(sheetRef, own(own(own(state).cast).byId))] || {};
|
|
537
537
|
for (var rk in HELD) {
|
|
538
538
|
var heldList = Array.isArray(heldBag[rk]) ? heldBag[rk] : [];
|
|
539
539
|
for (var hi = 0; hi < heldList.length; hi++) {
|
|
@@ -743,7 +743,6 @@ return {
|
|
|
743
743
|
placements: placements.length ? placements : null,
|
|
744
744
|
places: writes.places.length ? writes.places : null,
|
|
745
745
|
people: writes.people.length ? writes.people : null,
|
|
746
|
-
fallen: null,
|
|
747
746
|
startedLanes: started.length ? started : null,
|
|
748
747
|
startedLine: "The story has started: open the Story tab and say what you do."
|
|
749
748
|
};
|
|
@@ -46,6 +46,8 @@ export declare const DUNGEON_CRAWLER_GENRE_FIELDS: readonly string[];
|
|
|
46
46
|
* minutes, the Narrator's brief, the round's summary and the secrets. Who
|
|
47
47
|
* stands at death's door is not the Planner's to say (AUDIT A7): every seat
|
|
48
48
|
* the turn leaves at 0 health stands there, and no other.
|
|
49
|
+
* 🚧 \`fallenCompanions\` / \`revivedCompanions\` (bench-L3, owner ★4 2026-11-10): the
|
|
50
|
+
* companions the story killed or brought back this round, by name.
|
|
49
51
|
* @experimental
|
|
50
52
|
*/
|
|
51
53
|
export declare const DUNGEON_CRAWLER_TURN_FRAME: Readonly<{
|
|
@@ -140,6 +142,20 @@ export declare const DUNGEON_CRAWLER_TURN_FRAME: Readonly<{
|
|
|
140
142
|
readonly additionalProperties: false;
|
|
141
143
|
};
|
|
142
144
|
}>;
|
|
145
|
+
fallenCompanions: {
|
|
146
|
+
type: string;
|
|
147
|
+
maxItems: number;
|
|
148
|
+
items: {
|
|
149
|
+
type: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
revivedCompanions: {
|
|
153
|
+
type: string;
|
|
154
|
+
maxItems: number;
|
|
155
|
+
items: {
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
143
159
|
};
|
|
144
160
|
required: string[];
|
|
145
161
|
additionalProperties: false;
|
|
@@ -54,6 +54,8 @@ export const DUNGEON_CRAWLER_GENRE_FIELDS = Object.freeze([hpSlot.id, levelSlot.
|
|
|
54
54
|
* minutes, the Narrator's brief, the round's summary and the secrets. Who
|
|
55
55
|
* stands at death's door is not the Planner's to say (AUDIT A7): every seat
|
|
56
56
|
* the turn leaves at 0 health stands there, and no other.
|
|
57
|
+
* 🚧 \`fallenCompanions\` / \`revivedCompanions\` (bench-L3, owner ★4 2026-11-10): the
|
|
58
|
+
* companions the story killed or brought back this round, by name.
|
|
57
59
|
* @experimental
|
|
58
60
|
*/
|
|
59
61
|
export const DUNGEON_CRAWLER_TURN_FRAME = Object.freeze({
|
|
@@ -95,8 +97,10 @@ export const DUNGEON_CRAWLER_TURN_FRAME = Object.freeze({
|
|
|
95
97
|
narratorBrief: { type: 'string' },
|
|
96
98
|
roundSummary: { type: 'string' },
|
|
97
99
|
secrets: DUNGEON_CRAWLER_SECRETS_SCHEMA,
|
|
100
|
+
fallenCompanions: { type: 'array', maxItems: 4, items: { type: 'string' } },
|
|
101
|
+
revivedCompanions: { type: 'array', maxItems: 4, items: { type: 'string' } },
|
|
98
102
|
},
|
|
99
|
-
required: ['deltas', 'world', 'clock', 'narratorBrief', 'roundSummary', 'secrets'],
|
|
103
|
+
required: ['deltas', 'world', 'clock', 'narratorBrief', 'roundSummary', 'secrets', 'fallenCompanions', 'revivedCompanions'],
|
|
100
104
|
additionalProperties: false,
|
|
101
105
|
});
|
|
102
106
|
/**
|
|
@@ -33,7 +33,7 @@ export declare const crawlWeaponsSlot: import("@serene-pub/sdk").DeclaredAttribu
|
|
|
33
33
|
readonly en: string;
|
|
34
34
|
};
|
|
35
35
|
readonly descriptor: string;
|
|
36
|
-
readonly appliesTo: readonly ("
|
|
36
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
37
37
|
readonly config: {
|
|
38
38
|
readonly repertoire: string;
|
|
39
39
|
};
|
|
@@ -53,7 +53,7 @@ export declare const crawlArmourSlot: import("@serene-pub/sdk").DeclaredAttribut
|
|
|
53
53
|
readonly en: string;
|
|
54
54
|
};
|
|
55
55
|
readonly descriptor: string;
|
|
56
|
-
readonly appliesTo: readonly ("
|
|
56
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
57
57
|
readonly config: {
|
|
58
58
|
readonly repertoire: string;
|
|
59
59
|
};
|
|
@@ -73,7 +73,7 @@ export declare const crawlGearSlot: import("@serene-pub/sdk").DeclaredAttributeS
|
|
|
73
73
|
readonly en: string;
|
|
74
74
|
};
|
|
75
75
|
readonly descriptor: string;
|
|
76
|
-
readonly appliesTo: readonly ("
|
|
76
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
77
77
|
readonly config: {
|
|
78
78
|
readonly repertoire: string;
|
|
79
79
|
};
|
|
@@ -93,7 +93,7 @@ export declare const crawlConsumablesSlot: import("@serene-pub/sdk").DeclaredAtt
|
|
|
93
93
|
readonly en: string;
|
|
94
94
|
};
|
|
95
95
|
readonly descriptor: string;
|
|
96
|
-
readonly appliesTo: readonly ("
|
|
96
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
97
97
|
readonly config: {
|
|
98
98
|
readonly repertoire: string;
|
|
99
99
|
};
|
|
@@ -113,7 +113,7 @@ export declare const crawlSpellsSlot: import("@serene-pub/sdk").DeclaredAttribut
|
|
|
113
113
|
readonly en: string;
|
|
114
114
|
};
|
|
115
115
|
readonly descriptor: string;
|
|
116
|
-
readonly appliesTo: readonly ("
|
|
116
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
117
117
|
readonly config: {
|
|
118
118
|
readonly repertoire: string;
|
|
119
119
|
};
|
|
@@ -142,7 +142,7 @@ export declare const crawlSpellSlotsSlot: import("@serene-pub/sdk").DeclaredAttr
|
|
|
142
142
|
readonly en: string;
|
|
143
143
|
};
|
|
144
144
|
readonly descriptor: string;
|
|
145
|
-
readonly appliesTo: readonly ("
|
|
145
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
146
146
|
readonly config: {
|
|
147
147
|
readonly repertoire: string;
|
|
148
148
|
};
|
|
@@ -162,7 +162,7 @@ export declare const crawlFeaturesSlot: import("@serene-pub/sdk").DeclaredAttrib
|
|
|
162
162
|
readonly en: string;
|
|
163
163
|
};
|
|
164
164
|
readonly descriptor: string;
|
|
165
|
-
readonly appliesTo: readonly ("
|
|
165
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
166
166
|
readonly config: {
|
|
167
167
|
readonly repertoire: string;
|
|
168
168
|
};
|
|
@@ -182,7 +182,7 @@ export declare const crawlConditionsSlot: import("@serene-pub/sdk").DeclaredAttr
|
|
|
182
182
|
readonly en: string;
|
|
183
183
|
};
|
|
184
184
|
readonly descriptor: string;
|
|
185
|
-
readonly appliesTo: readonly ("
|
|
185
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
186
186
|
readonly config: {
|
|
187
187
|
readonly repertoire: string;
|
|
188
188
|
};
|
|
@@ -202,7 +202,7 @@ export declare const crawlExitsSlot: import("@serene-pub/sdk").DeclaredAttribute
|
|
|
202
202
|
readonly en: string;
|
|
203
203
|
};
|
|
204
204
|
readonly descriptor: string;
|
|
205
|
-
readonly appliesTo: readonly ("
|
|
205
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
206
206
|
readonly config: {
|
|
207
207
|
readonly repertoire: string;
|
|
208
208
|
};
|
|
@@ -227,7 +227,7 @@ export declare const crawlFusesSlot: import("@serene-pub/sdk").DeclaredAttribute
|
|
|
227
227
|
readonly en: string;
|
|
228
228
|
};
|
|
229
229
|
readonly descriptor: string;
|
|
230
|
-
readonly appliesTo: readonly ("
|
|
230
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
231
231
|
readonly config: {
|
|
232
232
|
readonly repertoire: string;
|
|
233
233
|
};
|
|
@@ -247,7 +247,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
247
247
|
readonly en: string;
|
|
248
248
|
};
|
|
249
249
|
readonly descriptor: string;
|
|
250
|
-
readonly appliesTo: readonly ("
|
|
250
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
251
251
|
readonly config: {
|
|
252
252
|
readonly repertoire: string;
|
|
253
253
|
};
|
|
@@ -265,7 +265,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
265
265
|
readonly en: string;
|
|
266
266
|
};
|
|
267
267
|
readonly descriptor: string;
|
|
268
|
-
readonly appliesTo: readonly ("
|
|
268
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
269
269
|
readonly config: {
|
|
270
270
|
readonly repertoire: string;
|
|
271
271
|
};
|
|
@@ -283,7 +283,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
283
283
|
readonly en: string;
|
|
284
284
|
};
|
|
285
285
|
readonly descriptor: string;
|
|
286
|
-
readonly appliesTo: readonly ("
|
|
286
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
287
287
|
readonly config: {
|
|
288
288
|
readonly repertoire: string;
|
|
289
289
|
};
|
|
@@ -301,7 +301,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
301
301
|
readonly en: string;
|
|
302
302
|
};
|
|
303
303
|
readonly descriptor: string;
|
|
304
|
-
readonly appliesTo: readonly ("
|
|
304
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
305
305
|
readonly config: {
|
|
306
306
|
readonly repertoire: string;
|
|
307
307
|
};
|
|
@@ -319,7 +319,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
319
319
|
readonly en: string;
|
|
320
320
|
};
|
|
321
321
|
readonly descriptor: string;
|
|
322
|
-
readonly appliesTo: readonly ("
|
|
322
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
323
323
|
readonly config: {
|
|
324
324
|
readonly repertoire: string;
|
|
325
325
|
};
|
|
@@ -337,7 +337,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
337
337
|
readonly en: string;
|
|
338
338
|
};
|
|
339
339
|
readonly descriptor: string;
|
|
340
|
-
readonly appliesTo: readonly ("
|
|
340
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
341
341
|
readonly config: {
|
|
342
342
|
readonly repertoire: string;
|
|
343
343
|
};
|
|
@@ -355,7 +355,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
355
355
|
readonly en: string;
|
|
356
356
|
};
|
|
357
357
|
readonly descriptor: string;
|
|
358
|
-
readonly appliesTo: readonly ("
|
|
358
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
359
359
|
readonly config: {
|
|
360
360
|
readonly repertoire: string;
|
|
361
361
|
};
|
|
@@ -373,7 +373,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
373
373
|
readonly en: string;
|
|
374
374
|
};
|
|
375
375
|
readonly descriptor: string;
|
|
376
|
-
readonly appliesTo: readonly ("
|
|
376
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
377
377
|
readonly config: {
|
|
378
378
|
readonly repertoire: string;
|
|
379
379
|
};
|
|
@@ -391,7 +391,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
391
391
|
readonly en: string;
|
|
392
392
|
};
|
|
393
393
|
readonly descriptor: string;
|
|
394
|
-
readonly appliesTo: readonly ("
|
|
394
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
395
395
|
readonly config: {
|
|
396
396
|
readonly repertoire: string;
|
|
397
397
|
};
|
|
@@ -409,7 +409,7 @@ export declare const DUNGEON_CRAWLER_RULESET_SLOTS: readonly [import("@serene-pu
|
|
|
409
409
|
readonly en: string;
|
|
410
410
|
};
|
|
411
411
|
readonly descriptor: string;
|
|
412
|
-
readonly appliesTo: readonly ("
|
|
412
|
+
readonly appliesTo: readonly ("cast" | "world" | "location")[];
|
|
413
413
|
readonly config: {
|
|
414
414
|
readonly repertoire: string;
|
|
415
415
|
};
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
* a reply and declares for the next round, never lost between the last
|
|
16
16
|
* reply and this one; every write of the turn is anchored to it, so a
|
|
17
17
|
* retake or a delete takes it back;
|
|
18
|
-
* 1. `
|
|
19
|
-
* Journal folio) and `core:script/dungeon-crawler-books`: the Planner's
|
|
18
|
+
* 1. `log`, `books` — the story turn's own reads (the Journal folio) and `core:script/dungeon-crawler-books`: the Planner's
|
|
20
19
|
* crib (the preamble's one crib builder — the world as the session's own
|
|
21
20
|
* lorebook holds it, the goal, the leads, the notes and their Asks, the
|
|
22
21
|
* story so far) and this round's brief (each player seat, what they
|
|
@@ -52,7 +51,7 @@
|
|
|
52
51
|
* **table** channel (`stakes.shown.write`), anchored to the Narrator's
|
|
53
52
|
* row, in no voice;
|
|
54
53
|
* 7. `ledger` — `core:script/dungeon-crawler-ledger`: the genre's own
|
|
55
|
-
* bookkeeping — its fields (fate,
|
|
54
|
+
* bookkeeping — its fields (fate, where a newcomer stands, a
|
|
56
55
|
* level's new full health), death (`death.ts`), the goal (`goal.ts`), the
|
|
57
56
|
* leads, the journal line and its kinds (`journal.ts`), the world's new
|
|
58
57
|
* places and people for the session's lorebook (`lore.ts`), the
|
|
@@ -60,8 +59,15 @@
|
|
|
60
59
|
* 8. `raise.levels.*`, `sheet.changed.*` — the genre fields written, filed at
|
|
61
60
|
* the Narrator's row (the revealed notes kept in step, A24);
|
|
62
61
|
* `time.passed.advance` — the handler's **advance** with the turn's
|
|
63
|
-
* minutes (A4: durations tick every turn); `
|
|
64
|
-
* the
|
|
62
|
+
* minutes (A4: durations tick every turn); `time.clock.advance` — the
|
|
63
|
+
* clock is the session's story clock (2026-11-10), moved by the turn's
|
|
64
|
+
* minutes through `advance-story-clock@1`; `lorePlaces`, `lorePeople` —
|
|
65
|
+
* the world written; `deaths` — each seat that died marked `deceased` in
|
|
66
|
+
* the cast (`core:outlet/update-cast-member@1`, tied to the row;
|
|
67
|
+
* 2026-11-10: no lore is written for a death); `companions.fates.*` — a
|
|
68
|
+
* companion's death or revival (bench-L3, ★4 2026-11-10): the seat benched
|
|
69
|
+
* or brought back and its cast member marked, tied to the row;
|
|
70
|
+
* `filed.kept.write` — the bookkeeping and the
|
|
65
71
|
* journal, one annex write;
|
|
66
72
|
* 9. `outcomes`, `context` … `say` → `save` — the Narrator, streamed, under
|
|
67
73
|
* its own prompt row with the brief as `{{turnDirection}}` and the
|
|
@@ -78,10 +84,11 @@ import { type Wiring } from './calls.js';
|
|
|
78
84
|
import type { StoryOn } from './respond.js';
|
|
79
85
|
/**
|
|
80
86
|
* 🚧 `core:script/dungeon-crawler-books`: what a story turn starts from.
|
|
81
|
-
* Handed `{ session, state, story, messageId, places, people,
|
|
87
|
+
* Handed `{ session, state, story, messageId, places, people, log, cast }`
|
|
82
88
|
* — the settings document, the session's state, the Story's newest rows, the
|
|
83
|
-
* inlet's re-driven row, the
|
|
84
|
-
*
|
|
89
|
+
* inlet's re-driven row, the two listings of the session's lorebook, the
|
|
90
|
+
* Journal folio's newest lines and the session's cast read (it carries the
|
|
91
|
+
* session's story time). Returns:
|
|
85
92
|
*
|
|
86
93
|
* - `fresh` — plan this turn (not a re-telling, not ended); `redo` — the row
|
|
87
94
|
* being re-driven is the last turn's, whose `told` brief and outcomes
|
|
@@ -91,8 +98,9 @@ import type { StoryOn } from './respond.js';
|
|
|
91
98
|
* reference, and `location:<entry id>` for each place one stands in;
|
|
92
99
|
* `actions` — `[{ owner, text }]`, each live seat's declared lines, else
|
|
93
100
|
* its standing order;
|
|
94
|
-
* - `clockBase
|
|
95
|
-
*
|
|
101
|
+
* - `clockBase` (the session's story now, as the cast read carries it), `clockStart` (the crawl's first day, the same way),
|
|
102
|
+
* `clockCalendar` (its calendar, `null` for a free-form book — the Day count runs through it),
|
|
103
|
+
* `rules` (`difficulty`), `seats`, `places`, `people` — as read; `log` — the Journal's newest lines; `crib` (the preamble's one
|
|
96
104
|
* crib builder), `brief`;
|
|
97
105
|
* - `rigour` — the session's, as its document carries it (empty when it
|
|
98
106
|
* carries none: the ruleset handler then reads the stored one);
|
|
@@ -173,10 +181,11 @@ export declare const DUNGEON_CRAWLER_TURN_SCRIPT: import("./preamble.js").CoreSc
|
|
|
173
181
|
* the state it left (`state`, the turn's own, when it applied nothing),
|
|
174
182
|
* `row` the Narrator's row. Returns `{ changes, progress, journal, notes,
|
|
175
183
|
* notesRevealed, brief, narrator, travelogue, journalLines, secrets,
|
|
176
|
-
* laneLines, raises, places, people,
|
|
177
|
-
* file header, step 8. `advance` is the turn's minutes for the
|
|
178
|
-
* `advance` (AUDIT A4: durations tick on every story turn, not only
|
|
179
|
-
* Rest).
|
|
184
|
+
* laneLines, raises, places, people, deceased, companionFates, replay, advance, clock }` —
|
|
185
|
+
* see the file header, step 8. `advance` is the turn's minutes for the
|
|
186
|
+
* handler's `advance` (AUDIT A4: durations tick on every story turn, not only
|
|
187
|
+
* on Rest). `clock` is the minutes the session's story clock moves
|
|
188
|
+
* (`advance-story-clock@1`), or null when the turn moves none. On a re-telling (a swipe), the brief and the outcomes as the turn
|
|
180
189
|
* first told them, and what it files again (`changes`, `raises`, `replay`:
|
|
181
190
|
* the host took back what was anchored to the row).
|
|
182
191
|
* @experimental
|
|
@@ -198,9 +207,11 @@ export interface Ledger {
|
|
|
198
207
|
readonly raises: unknown;
|
|
199
208
|
readonly places: unknown;
|
|
200
209
|
readonly people: unknown;
|
|
201
|
-
readonly
|
|
210
|
+
readonly deceased: unknown;
|
|
211
|
+
readonly companionFates: unknown;
|
|
202
212
|
readonly replay: unknown;
|
|
203
213
|
readonly advance: unknown;
|
|
214
|
+
readonly clock: unknown;
|
|
204
215
|
}
|
|
205
216
|
/**
|
|
206
217
|
* What the story turn's writers read off its chain (`lore.ts`, `journal.ts`,
|
|
@@ -215,7 +226,7 @@ export type StoryKept<P extends string = 'channel.story', Own extends Record<str
|
|
|
215
226
|
/**
|
|
216
227
|
* The `channel.story` branch (see the header): the spec's reads — the cast,
|
|
217
228
|
* the Story's newest rows, the session's lorebook — are the respond spec's
|
|
218
|
-
* head (`respond.ts`); the
|
|
229
|
+
* head (`respond.ts`); the Journal folio is its own.
|
|
219
230
|
* @internal
|
|
220
231
|
*/
|
|
221
232
|
export declare const storyBranch: (s: StoryOn, w: Wiring) => StoryOn;
|