@serene-pub/contracts 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/dist/inlets.d.ts +16 -8
- package/dist/inlets.js +17 -8
- package/dist/oracles.d.ts +18 -2
- package/dist/oracles.js +18 -2
- package/dist/outlets.d.ts +358 -44
- package/dist/outlets.js +376 -47
- package/dist/queries.d.ts +906 -2
- package/dist/queries.js +697 -6
- package/dist/tasks.d.ts +37 -25
- package/dist/tasks.js +40 -16
- package/package.json +3 -3
package/dist/queries.d.ts
CHANGED
|
@@ -79,6 +79,69 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
79
79
|
* The Dungeon Crawler's Planner reads its player's lane so.
|
|
80
80
|
*/
|
|
81
81
|
channelLane: string;
|
|
82
|
+
/**
|
|
83
|
+
* 🚧 **Firsthand** (opt-in, 2026-11-15) — wired
|
|
84
|
+
* `$.input.characterId`, the character a reply is spoken by on
|
|
85
|
+
* its own turn, the rows this node returns leave out what that
|
|
86
|
+
* member was not there for. Unwired: no filter, the node reads
|
|
87
|
+
* as it always did. A card-less character seat's turn is read
|
|
88
|
+
* from the session scope's `currentCastMemberId`, so wire
|
|
89
|
+
* `scope` too. Wired to anything that is not one character id
|
|
90
|
+
* (a narrator's turn, an envoy's, several characters, null)
|
|
91
|
+
* on a turn whose scope names no such member: nothing is left
|
|
92
|
+
* out, and the run's receipt says so.
|
|
93
|
+
*
|
|
94
|
+
* The rule, for one cast member on its own turn:
|
|
95
|
+
* 1. By scene — a member was there for a scene if it spoke at
|
|
96
|
+
* least once in it (hidden, rewound and swiped-away lines do
|
|
97
|
+
* not count). Its own lines are always kept; messages in no
|
|
98
|
+
* scene are kept; the open scene is kept for its speaker.
|
|
99
|
+
* 2. By place, when `firsthandBy` names a cast-level state slot
|
|
100
|
+
* — a member was there for a message when its value of that
|
|
101
|
+
* slot in force at that message equals the message speaker's
|
|
102
|
+
* value in force at it (references compare by `entryId`;
|
|
103
|
+
* words trimmed and case-folded). Only values set in the
|
|
104
|
+
* session count; a value known only from the lorebook's
|
|
105
|
+
* timeline counts as missing. A message whose speaker has
|
|
106
|
+
* no value falls under rule 1. With a slot named, rule 2
|
|
107
|
+
* decides wherever both values exist.
|
|
108
|
+
* 3. The receipt says how many rows were left out and why.
|
|
109
|
+
*
|
|
110
|
+
* ⚠ Not Bench (a benched member is still in the scene), not a
|
|
111
|
+
* scene's cast. A port, not a parameter: a spec writes the slot name as
|
|
112
|
+
* a literal in the node's config (as `generating` on the reply
|
|
113
|
+
* outlets); a `params` field would put a structural fact of the
|
|
114
|
+
* document in the panel as a knob.
|
|
115
|
+
*
|
|
116
|
+
* ⏳ transitional: superseded for scenes and days by the
|
|
117
|
+
* `speakerInCast` param; kept because a pipeline of a user's own
|
|
118
|
+
* may wire it.
|
|
119
|
+
* @experimental
|
|
120
|
+
*/
|
|
121
|
+
firsthandFor: string;
|
|
122
|
+
/**
|
|
123
|
+
* 🚧 **Firsthand, by place** (opt-in, 2026-11-15) — the
|
|
124
|
+
* cast-level stat, by full id or local name (as
|
|
125
|
+
* `stat-trail@1`'s `slotId`), that rule 2 of `firsthandFor`
|
|
126
|
+
* compares. Read only with `firsthandFor`; unwired, the rule is
|
|
127
|
+
* by scene alone. Same ⚠ as `firsthandFor`.
|
|
128
|
+
*
|
|
129
|
+
* ⏳ transitional: superseded for scenes and days by the
|
|
130
|
+
* `speakerInCast` param; kept because a pipeline of a user's own
|
|
131
|
+
* may wire it.
|
|
132
|
+
* @experimental
|
|
133
|
+
*/
|
|
134
|
+
firsthandBy: string;
|
|
135
|
+
/**
|
|
136
|
+
* 🚧 **Outcome numbers** — wired, the genre's own Show outcomes
|
|
137
|
+
* field: `false` reads each outcome row as its result in words
|
|
138
|
+
* with no number (`metadata.diceWords`, stamped on every
|
|
139
|
+
* outcome row); anything else reads rows as written. Unwired:
|
|
140
|
+
* ⏳ the host reads the session's `showDice` field for that
|
|
141
|
+
* read (to retire with 0.7). Each read's own wiring decides.
|
|
142
|
+
* The rows themselves are never changed.
|
|
143
|
+
*/
|
|
144
|
+
outcomeNumbers: string;
|
|
82
145
|
}, "core:query/session-history@1"> & {
|
|
83
146
|
kind: 'query';
|
|
84
147
|
slots?: {
|
|
@@ -542,6 +605,47 @@ export declare const lorebookTriggers: import("@serene-pub/sdk").Pinned<import("
|
|
|
542
605
|
readonly en: "How much more a word in an entry's title counts than the same word among its keywords. 1 treats them alike.";
|
|
543
606
|
};
|
|
544
607
|
};
|
|
608
|
+
/**
|
|
609
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
610
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
611
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
612
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
613
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
614
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
615
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
616
|
+
* step writing for several characters) has no speaker and the read returns
|
|
617
|
+
* everything. `false` turns it off for this node.
|
|
618
|
+
*/
|
|
619
|
+
readonly knownToSpeaker: {
|
|
620
|
+
readonly type: "boolean";
|
|
621
|
+
readonly default: true;
|
|
622
|
+
readonly label: {
|
|
623
|
+
readonly en: "Only what the speaker knows";
|
|
624
|
+
};
|
|
625
|
+
readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
629
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
630
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
631
|
+
* read. `false` turns it off for this node.
|
|
632
|
+
*/
|
|
633
|
+
readonly speakerInCast: {
|
|
634
|
+
type: 'boolean';
|
|
635
|
+
default: boolean;
|
|
636
|
+
label: {
|
|
637
|
+
en: string;
|
|
638
|
+
};
|
|
639
|
+
description: string;
|
|
640
|
+
};
|
|
641
|
+
readonly speakerMemory: {
|
|
642
|
+
type: 'boolean';
|
|
643
|
+
default: boolean;
|
|
644
|
+
label: {
|
|
645
|
+
en: string;
|
|
646
|
+
};
|
|
647
|
+
description: string;
|
|
648
|
+
};
|
|
545
649
|
readonly characterLoreMaxEntries: {
|
|
546
650
|
type: 'integer';
|
|
547
651
|
min: number;
|
|
@@ -874,6 +978,47 @@ export declare const worldLore: import("@serene-pub/sdk").Pinned<import("@serene
|
|
|
874
978
|
};
|
|
875
979
|
shared: boolean;
|
|
876
980
|
};
|
|
981
|
+
/**
|
|
982
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
983
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
984
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
985
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
986
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
987
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
988
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
989
|
+
* step writing for several characters) has no speaker and the read returns
|
|
990
|
+
* everything. `false` turns it off for this node.
|
|
991
|
+
*/
|
|
992
|
+
knownToSpeaker: {
|
|
993
|
+
type: 'boolean';
|
|
994
|
+
default: boolean;
|
|
995
|
+
label: {
|
|
996
|
+
en: string;
|
|
997
|
+
};
|
|
998
|
+
description: string;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
1002
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
1003
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
1004
|
+
* read. `false` turns it off for this node.
|
|
1005
|
+
*/
|
|
1006
|
+
speakerInCast: {
|
|
1007
|
+
type: 'boolean';
|
|
1008
|
+
default: boolean;
|
|
1009
|
+
label: {
|
|
1010
|
+
en: string;
|
|
1011
|
+
};
|
|
1012
|
+
description: string;
|
|
1013
|
+
};
|
|
1014
|
+
speakerMemory: {
|
|
1015
|
+
type: 'boolean';
|
|
1016
|
+
default: boolean;
|
|
1017
|
+
label: {
|
|
1018
|
+
en: string;
|
|
1019
|
+
};
|
|
1020
|
+
description: string;
|
|
1021
|
+
};
|
|
877
1022
|
};
|
|
878
1023
|
};
|
|
879
1024
|
} | undefined;
|
|
@@ -1099,6 +1244,47 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
1099
1244
|
};
|
|
1100
1245
|
shared: boolean;
|
|
1101
1246
|
};
|
|
1247
|
+
/**
|
|
1248
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
1249
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
1250
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
1251
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
1252
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
1253
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
1254
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
1255
|
+
* step writing for several characters) has no speaker and the read returns
|
|
1256
|
+
* everything. `false` turns it off for this node.
|
|
1257
|
+
*/
|
|
1258
|
+
knownToSpeaker: {
|
|
1259
|
+
type: 'boolean';
|
|
1260
|
+
default: boolean;
|
|
1261
|
+
label: {
|
|
1262
|
+
en: string;
|
|
1263
|
+
};
|
|
1264
|
+
description: string;
|
|
1265
|
+
};
|
|
1266
|
+
/**
|
|
1267
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
1268
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
1269
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
1270
|
+
* read. `false` turns it off for this node.
|
|
1271
|
+
*/
|
|
1272
|
+
speakerInCast: {
|
|
1273
|
+
type: 'boolean';
|
|
1274
|
+
default: boolean;
|
|
1275
|
+
label: {
|
|
1276
|
+
en: string;
|
|
1277
|
+
};
|
|
1278
|
+
description: string;
|
|
1279
|
+
};
|
|
1280
|
+
speakerMemory: {
|
|
1281
|
+
type: 'boolean';
|
|
1282
|
+
default: boolean;
|
|
1283
|
+
label: {
|
|
1284
|
+
en: string;
|
|
1285
|
+
};
|
|
1286
|
+
description: string;
|
|
1287
|
+
};
|
|
1102
1288
|
};
|
|
1103
1289
|
};
|
|
1104
1290
|
} | undefined;
|
|
@@ -1121,6 +1307,20 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
1121
1307
|
* a comment in that file warns about. The corpus mirrors the three lanes now.
|
|
1122
1308
|
*
|
|
1123
1309
|
* Same retrieval as its two siblings: one scan, one filter.
|
|
1310
|
+
*
|
|
1311
|
+
* 🚧 Opting in to the firsthand option is wiring `firsthandFor` (⏳ transitional,
|
|
1312
|
+
* see `speakerInCast`).
|
|
1313
|
+
*
|
|
1314
|
+
* 🚧 `speakerInCast` (param, on by default; name provisional): for a compiled
|
|
1315
|
+
* day, if the speaker is in the stored cast (`scene_characters`, role
|
|
1316
|
+
* participant) of every scene of this session compiled into it, the day's own
|
|
1317
|
+
* text; if it misses any, the summaries of the scenes whose cast lists it, in
|
|
1318
|
+
* story order, under the day's date, every one of them. A day it is in none of, or
|
|
1319
|
+
* whose kept scenes have no summary, is left out of the read itself. The host's
|
|
1320
|
+
* lore read judges it, so it holds however the day is found. A day with none
|
|
1321
|
+
* of this session's scenes is untouched. The speaker is the character the
|
|
1322
|
+
* run speaks as; a run that speaks as nobody, or a card in no seat, reads
|
|
1323
|
+
* everything. `false` turns it off for this node.
|
|
1124
1324
|
* @experimental
|
|
1125
1325
|
*/
|
|
1126
1326
|
export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
@@ -1138,6 +1338,38 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
1138
1338
|
exclusions: string;
|
|
1139
1339
|
}, {
|
|
1140
1340
|
scope: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* 🚧 **Firsthand** (opt-in, 2026-11-15) — wired
|
|
1343
|
+
* `$.input.characterId`, an entry is left out when a scene of
|
|
1344
|
+
* this session compiled into it is one that member was not
|
|
1345
|
+
* there for. The rule, the unwired and not-one-character cases,
|
|
1346
|
+
* and the ⚠ are those of `core:query/session-history@1`'s
|
|
1347
|
+
* `firsthandFor`, plus: a scene counts as "was there for" by
|
|
1348
|
+
* `core:query/earlier-scenes@1`'s rule, and an entry with none
|
|
1349
|
+
* of this session's scenes is kept. A left-out entry is
|
|
1350
|
+
* published on `exclusions` with the reason, so
|
|
1351
|
+
* `core:task/eligibility@1` marks it ineligible whichever
|
|
1352
|
+
* mechanism found it; `main` and `hits` are unchanged. Unwired,
|
|
1353
|
+
* nothing changes.
|
|
1354
|
+
*
|
|
1355
|
+
* ⏳ transitional: superseded for scenes and days by the
|
|
1356
|
+
* `speakerInCast` param; kept because a pipeline of a user's own
|
|
1357
|
+
* may wire it.
|
|
1358
|
+
* @experimental
|
|
1359
|
+
*/
|
|
1360
|
+
firsthandFor: string;
|
|
1361
|
+
/**
|
|
1362
|
+
* 🚧 **Firsthand, by place** (opt-in, 2026-11-15) — as
|
|
1363
|
+
* `core:query/session-history@1`'s `firsthandBy`: the
|
|
1364
|
+
* cast-level stat rule 2 compares, read only with
|
|
1365
|
+
* `firsthandFor`.
|
|
1366
|
+
*
|
|
1367
|
+
* ⏳ transitional: superseded for scenes and days by the
|
|
1368
|
+
* `speakerInCast` param; kept because a pipeline of a user's own
|
|
1369
|
+
* may wire it.
|
|
1370
|
+
* @experimental
|
|
1371
|
+
*/
|
|
1372
|
+
firsthandBy: string;
|
|
1141
1373
|
}, "core:query/history-entries@1"> & {
|
|
1142
1374
|
kind: 'query';
|
|
1143
1375
|
slots?: {
|
|
@@ -1321,6 +1553,47 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
1321
1553
|
};
|
|
1322
1554
|
shared: boolean;
|
|
1323
1555
|
};
|
|
1556
|
+
/**
|
|
1557
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
1558
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
1559
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
1560
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
1561
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
1562
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
1563
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
1564
|
+
* step writing for several characters) has no speaker and the read returns
|
|
1565
|
+
* everything. `false` turns it off for this node.
|
|
1566
|
+
*/
|
|
1567
|
+
knownToSpeaker: {
|
|
1568
|
+
type: 'boolean';
|
|
1569
|
+
default: boolean;
|
|
1570
|
+
label: {
|
|
1571
|
+
en: string;
|
|
1572
|
+
};
|
|
1573
|
+
description: string;
|
|
1574
|
+
};
|
|
1575
|
+
/**
|
|
1576
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
1577
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
1578
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
1579
|
+
* read. `false` turns it off for this node.
|
|
1580
|
+
*/
|
|
1581
|
+
speakerInCast: {
|
|
1582
|
+
type: 'boolean';
|
|
1583
|
+
default: boolean;
|
|
1584
|
+
label: {
|
|
1585
|
+
en: string;
|
|
1586
|
+
};
|
|
1587
|
+
description: string;
|
|
1588
|
+
};
|
|
1589
|
+
speakerMemory: {
|
|
1590
|
+
type: 'boolean';
|
|
1591
|
+
default: boolean;
|
|
1592
|
+
label: {
|
|
1593
|
+
en: string;
|
|
1594
|
+
};
|
|
1595
|
+
description: string;
|
|
1596
|
+
};
|
|
1324
1597
|
};
|
|
1325
1598
|
};
|
|
1326
1599
|
} | undefined;
|
|
@@ -1368,6 +1641,406 @@ export declare const castPresences: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
1368
1641
|
kind: 'query';
|
|
1369
1642
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
1370
1643
|
}>;
|
|
1644
|
+
/**
|
|
1645
|
+
* 🚧 **Minutes a round is worth** — the session's round worth, as a whole
|
|
1646
|
+
* number and as a clock step.
|
|
1647
|
+
*
|
|
1648
|
+
* It reads the session's `roundWorth` genre field from the settings document
|
|
1649
|
+
* (the cascade applied: the session's value, else its preset's, else the
|
|
1650
|
+
* genre's, else the field's default). `minutes` is a whole number ≥ 0; `step`
|
|
1651
|
+
* is `{ by: minutes, unit: 'minutes' }`, exactly what `core:task/clock-step@1`'s
|
|
1652
|
+
* `step` in-port takes; `main` is `{ minutes, step }`. All of it is 0 when the
|
|
1653
|
+
* genre places no `roundWorth` field (it has not opted in) or the session sets
|
|
1654
|
+
* 0 (off).
|
|
1655
|
+
*
|
|
1656
|
+
* It never reads or moves the clock and does not say whether one is set: gate
|
|
1657
|
+
* on `core:query/cast-presences@1`'s `at` for that.
|
|
1658
|
+
*
|
|
1659
|
+
* ⚠ Not the Dungeon Crawler Planner's round minutes (the time one round took,
|
|
1660
|
+
* judged), and not `core:task/clock-step@1`.
|
|
1661
|
+
* @experimental
|
|
1662
|
+
*/
|
|
1663
|
+
export declare const roundWorth: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1664
|
+
/** `{ minutes, step }`. */
|
|
1665
|
+
main: string;
|
|
1666
|
+
/** The round worth as a whole number of minutes, ≥ 0. */
|
|
1667
|
+
minutes: string;
|
|
1668
|
+
/** `{ by: minutes, unit: 'minutes' }`: what `clock-step@1`'s `step` in-port takes. */
|
|
1669
|
+
step: string;
|
|
1670
|
+
}, {
|
|
1671
|
+
scope: string;
|
|
1672
|
+
}, "core:query/round-worth@1"> & {
|
|
1673
|
+
kind: 'query';
|
|
1674
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
1675
|
+
}>;
|
|
1676
|
+
/**
|
|
1677
|
+
* 🚧 One scene boundary the scenes routine found: the line it begins at, the boundary trigger that fired there, and its words. @experimental
|
|
1678
|
+
*/
|
|
1679
|
+
export interface SceneBoundary {
|
|
1680
|
+
/** The message id the new scene begins at. */
|
|
1681
|
+
at: number;
|
|
1682
|
+
/** The boundary trigger that fired there: a core trigger key (`dayCrossed`, `placeChanged`, `timeAction`, `opening`, …) or a genre's declared one. */
|
|
1683
|
+
trigger: string;
|
|
1684
|
+
/** What the boundary trigger says, as the chip and the divider say it ("the day changed"). */
|
|
1685
|
+
reason: string;
|
|
1686
|
+
/** 🚧 The story lane the line is on (`main`, or a story channel's slug). */
|
|
1687
|
+
channel: string;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* 🚧 **Where scenes begin** — the scenes routine's code-only look back over
|
|
1691
|
+
* each of the session's story lanes (every name here is provisional): `main`,
|
|
1692
|
+
* and each channel the genre declares with `lore: 'story'`, each with its own
|
|
1693
|
+
* rounds, anchor, open scene and boundary triggers.
|
|
1694
|
+
*
|
|
1695
|
+
* It walks a lane's standing lines up to the newest line that is at least
|
|
1696
|
+
* `depth` rounds old (a round as the turn order counts it), evaluates the
|
|
1697
|
+
* session's enabled boundary triggers line by line, and returns
|
|
1698
|
+
* `SceneBoundary[]` with `main`'s first, then each other lane's, each in line
|
|
1699
|
+
* order. **A query writes nothing.**
|
|
1700
|
+
*
|
|
1701
|
+
* Where the walk starts is derived, never stored: after the latest of the
|
|
1702
|
+
* channel's latest scene boundary, its latest decided or offered scene cue, and
|
|
1703
|
+
* a branch's last copied line. `routine` is the routine inlet's `routine` port
|
|
1704
|
+
* (the firing); its cadence's `n` bounds how far back a session with none of
|
|
1705
|
+
* those looks. `depth` keeps a line that is swiped, retaken or taken back from
|
|
1706
|
+
* ever being read.
|
|
1707
|
+
*
|
|
1708
|
+
* ⚠ Not the judged scene check (the sweep's model question) and not
|
|
1709
|
+
* `core:outlet/propose-scene-cue@1` (which places).
|
|
1710
|
+
* @experimental
|
|
1711
|
+
*/
|
|
1712
|
+
export declare const sceneBoundaries: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1713
|
+
main: string;
|
|
1714
|
+
}, {
|
|
1715
|
+
scope: string;
|
|
1716
|
+
routine: string;
|
|
1717
|
+
}, "core:query/scene-boundaries@1"> & {
|
|
1718
|
+
kind: 'query';
|
|
1719
|
+
slots?: {
|
|
1720
|
+
readonly params: {
|
|
1721
|
+
readonly kind: "parameters";
|
|
1722
|
+
readonly facet: "behavior";
|
|
1723
|
+
readonly schema: {
|
|
1724
|
+
readonly depth: {
|
|
1725
|
+
readonly type: "integer";
|
|
1726
|
+
readonly default: 2;
|
|
1727
|
+
readonly min: 1;
|
|
1728
|
+
readonly max: 50;
|
|
1729
|
+
readonly label: {
|
|
1730
|
+
readonly en: "Rounds it waits";
|
|
1731
|
+
};
|
|
1732
|
+
readonly description: {
|
|
1733
|
+
readonly en: "Only lines at least this many rounds old are read, so a line that is swiped, retaken or taken back is never read.";
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
} | undefined;
|
|
1739
|
+
}>;
|
|
1740
|
+
/**
|
|
1741
|
+
* 🚧 **The scene due a summary** — the scene summaries routine's code-only look
|
|
1742
|
+
* at the session's `main` channel (every name here is provisional).
|
|
1743
|
+
*
|
|
1744
|
+
* `main` is **the oldest** finished scene on `main` that is due a summary, as
|
|
1745
|
+
* its scene id (a number), or `null` when none is due. Due: it closed at least
|
|
1746
|
+
* `depth` rounds ago (a round as the turn order counts it), it is not
|
|
1747
|
+
* summarized, and nobody has decided about it — a summary a person saved, a
|
|
1748
|
+
* review a person discarded, a failed run, a run going or a review waiting are
|
|
1749
|
+
* never taken; the session's **Summaries** is not *Never*; and no turns are
|
|
1750
|
+
* taken back. At most one scene per run. **A query writes nothing.**
|
|
1751
|
+
*
|
|
1752
|
+
* ⚠ Not *Summarize all* (the app's `scenesToSummarize`: every unsummarized
|
|
1753
|
+
* scene, a person's press) and not `core:outlet/summarize-finished-scene@1`
|
|
1754
|
+
* (which starts the summary).
|
|
1755
|
+
* @experimental
|
|
1756
|
+
*/
|
|
1757
|
+
export declare const sceneSummaryDue: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1758
|
+
main: string;
|
|
1759
|
+
}, {
|
|
1760
|
+
scope: string;
|
|
1761
|
+
}, "core:query/scene-summary-due@1"> & {
|
|
1762
|
+
kind: 'query';
|
|
1763
|
+
slots?: {
|
|
1764
|
+
readonly params: {
|
|
1765
|
+
readonly kind: "parameters";
|
|
1766
|
+
readonly facet: "behavior";
|
|
1767
|
+
readonly schema: {
|
|
1768
|
+
readonly depth: {
|
|
1769
|
+
readonly type: "integer";
|
|
1770
|
+
readonly default: 6;
|
|
1771
|
+
readonly min: 1;
|
|
1772
|
+
readonly max: 50;
|
|
1773
|
+
readonly label: {
|
|
1774
|
+
readonly en: "Rounds after it ends";
|
|
1775
|
+
};
|
|
1776
|
+
readonly description: {
|
|
1777
|
+
readonly en: "A scene is summarized once it ended at least this many rounds ago, so its lines have stopped changing.";
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
};
|
|
1782
|
+
} | undefined;
|
|
1783
|
+
}>;
|
|
1784
|
+
/**
|
|
1785
|
+
* 🚧 **Earlier scenes** — the summaries of this session's finished scenes, for
|
|
1786
|
+
* the block *Earlier in the story* (every name here is provisional).
|
|
1787
|
+
*
|
|
1788
|
+
* `main` is `{ maxTokens: number | null, scenes: Array<{ sceneId: number,
|
|
1789
|
+
* name: string, summary: string, firstLineId: number }> }`: the session's
|
|
1790
|
+
* closed `main`-channel scenes with a usable summary (`summaryStatus =
|
|
1791
|
+
* 'done'`, a person's or the routine's) that are not compiled into a history
|
|
1792
|
+
* entry, in story order (oldest first, by where each scene starts: its opening
|
|
1793
|
+
* line, else its smallest selected line), at most the newest 200. `name` is
|
|
1794
|
+
* the scene's name as shown; `firstLineId` is its first line's message id.
|
|
1795
|
+
* Each scene also carries `openedStoryClock: { year, month, day, hour, minute } | null`:
|
|
1796
|
+
* the session's story clock when the scene opened (columns `opened_story_clock_*`),
|
|
1797
|
+
* `null` when it opened with no clock, and `null` when the lorebook keeps no
|
|
1798
|
+
* timeline, whatever is stored.
|
|
1799
|
+
* `maxTokens` is `floor(share × budget.total)`, or `null` when `budget` is
|
|
1800
|
+
* unwired (then the block is not capped).
|
|
1801
|
+
*
|
|
1802
|
+
* Opt-in: wire `firsthandFor` (and `firsthandBy`) and the scenes the speaking
|
|
1803
|
+
* cast member was not there for are left out of `scenes` (⏳ transitional,
|
|
1804
|
+
* see `speakerInCast`).
|
|
1805
|
+
*
|
|
1806
|
+
* 🚧 `speakerInCast` (param, on by default; name provisional): only the scenes
|
|
1807
|
+
* whose stored cast (`scene_characters`, role participant) lists the speaker
|
|
1808
|
+
* are returned. An open scene is kept; a scene whose cast was never worked out
|
|
1809
|
+
* (no stored cast at all) is kept; so is one whose worked-out cast lists
|
|
1810
|
+
* nobody. The speaker is the character the run speaks
|
|
1811
|
+
* as (`scope`); a run that speaks as nobody, or a card in no seat, reads
|
|
1812
|
+
* everything. `false` turns it off for this node.
|
|
1813
|
+
*
|
|
1814
|
+
* It reads the story channel named by `channel` (`main` when absent).
|
|
1815
|
+
*
|
|
1816
|
+
* It returns data, never rendered text: `core:task/assemble@2` decides which
|
|
1817
|
+
* scenes show (only those whose first line is older than the first line the
|
|
1818
|
+
* prompt keeps) and fits them to `maxTokens`.
|
|
1819
|
+
*
|
|
1820
|
+
* ⚠ Not `core:query/scene-summary-due@1` (the routine's look, one scene), not
|
|
1821
|
+
* `core:spec/scene-summaries` (the routine that writes the summaries) and not
|
|
1822
|
+
* `core:query/session-history@1`. **A query writes nothing.**
|
|
1823
|
+
* @experimental
|
|
1824
|
+
*/
|
|
1825
|
+
export declare const earlierScenes: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1826
|
+
main: string;
|
|
1827
|
+
}, {
|
|
1828
|
+
scope: string;
|
|
1829
|
+
budget: string;
|
|
1830
|
+
/**
|
|
1831
|
+
* 🚧 **Firsthand** (opt-in, 2026-11-15) — wired
|
|
1832
|
+
* `$.input.characterId`, the summaries this node returns leave
|
|
1833
|
+
* out the scenes that member was not there for. The rule, the
|
|
1834
|
+
* unwired and not-one-character cases, and the ⚠ are those of
|
|
1835
|
+
* `core:query/session-history@1`'s `firsthandFor`, plus: a
|
|
1836
|
+
* summary is kept for a member that was there for the scene's last
|
|
1837
|
+
* message or more than half of its messages, else left out. The
|
|
1838
|
+
* receipt says how many summaries were left out and why.
|
|
1839
|
+
*
|
|
1840
|
+
* ⏳ transitional: superseded for scenes and days by the
|
|
1841
|
+
* `speakerInCast` param; kept because a pipeline of a user's own
|
|
1842
|
+
* may wire it.
|
|
1843
|
+
* @experimental
|
|
1844
|
+
*/
|
|
1845
|
+
firsthandFor: string;
|
|
1846
|
+
/**
|
|
1847
|
+
* 🚧 **Firsthand, by place** (opt-in, 2026-11-15) — as
|
|
1848
|
+
* `core:query/session-history@1`'s `firsthandBy`: the
|
|
1849
|
+
* cast-level stat rule 2 compares, read only with
|
|
1850
|
+
* `firsthandFor`.
|
|
1851
|
+
*
|
|
1852
|
+
* ⏳ transitional: superseded for scenes and days by the
|
|
1853
|
+
* `speakerInCast` param; kept because a pipeline of a user's own
|
|
1854
|
+
* may wire it.
|
|
1855
|
+
* @experimental
|
|
1856
|
+
*/
|
|
1857
|
+
firsthandBy: string;
|
|
1858
|
+
/**
|
|
1859
|
+
* 🚧 The story channel whose earlier scenes are read; absent: `main`.
|
|
1860
|
+
* A summary of one story channel never enters another channel's block (CP8).
|
|
1861
|
+
* @experimental
|
|
1862
|
+
*/
|
|
1863
|
+
channel: string;
|
|
1864
|
+
}, "core:query/earlier-scenes@1"> & {
|
|
1865
|
+
kind: 'query';
|
|
1866
|
+
slots?: {
|
|
1867
|
+
readonly params: {
|
|
1868
|
+
readonly kind: "parameters";
|
|
1869
|
+
readonly facet: "weights";
|
|
1870
|
+
readonly schema: {
|
|
1871
|
+
readonly share: {
|
|
1872
|
+
readonly type: "number";
|
|
1873
|
+
readonly min: 0;
|
|
1874
|
+
readonly max: 1;
|
|
1875
|
+
readonly default: 0.15;
|
|
1876
|
+
readonly label: {
|
|
1877
|
+
readonly en: "Share — earlier scenes";
|
|
1878
|
+
};
|
|
1879
|
+
readonly description: {
|
|
1880
|
+
readonly en: "How much of the context window the summaries of earlier scenes may take. When they do not fit, the oldest are left out first.";
|
|
1881
|
+
};
|
|
1882
|
+
};
|
|
1883
|
+
readonly speakerInCast: {
|
|
1884
|
+
readonly type: "boolean";
|
|
1885
|
+
readonly default: true;
|
|
1886
|
+
readonly label: {
|
|
1887
|
+
readonly en: "Only scenes the speaker was in";
|
|
1888
|
+
};
|
|
1889
|
+
readonly description: "Leaves out the earlier scenes whose cast does not list the speaking character (an open scene, and one whose cast was never worked out, are kept), and does nothing on a turn no single character speaks, such as the narrator’s.";
|
|
1890
|
+
};
|
|
1891
|
+
readonly speakerMemory: {
|
|
1892
|
+
type: 'boolean';
|
|
1893
|
+
default: boolean;
|
|
1894
|
+
label: {
|
|
1895
|
+
en: string;
|
|
1896
|
+
};
|
|
1897
|
+
description: string;
|
|
1898
|
+
};
|
|
1899
|
+
};
|
|
1900
|
+
};
|
|
1901
|
+
} | undefined;
|
|
1902
|
+
}>;
|
|
1903
|
+
/**
|
|
1904
|
+
* 🚧 **Entries the lines name** — the entries the session already has whose
|
|
1905
|
+
* name or key appears in the lines a step read (every name here is
|
|
1906
|
+
* provisional).
|
|
1907
|
+
*
|
|
1908
|
+
* `main` is `Array<{ entryId: number, entryType: string, name: string,
|
|
1909
|
+
* content: string, byPerson: boolean }>`: the entries of `entryTypes` the
|
|
1910
|
+
* session reads (its own book first, then the attached lorebook, each as the
|
|
1911
|
+
* session reads it, held changes included; switched-off, archived and unseen
|
|
1912
|
+
* entries left out), whose name or one of whose keys appears as whole words
|
|
1913
|
+
* in one of `messages` (the SDK's `namesName`), in that order, at most
|
|
1914
|
+
* `maxEntries`, and within `floor(share × budget.total)` tokens when `budget`
|
|
1915
|
+
* is wired (an entry too long for what is left is left out, the next one
|
|
1916
|
+
* still tried). `content` is the whole text as the session reads it.
|
|
1917
|
+
* `byPerson` is true for an entry a person wrote (`provenance: "human"`).
|
|
1918
|
+
* `ids` is the `entryId` of each row of `main`, in order: what a write passes
|
|
1919
|
+
* as `create-lore-entry@1`'s `shown`. Deterministic, no model.
|
|
1920
|
+
*
|
|
1921
|
+
* ⚠ Not `core:query/entity-search@1` (ranked retrieval by annotated entities
|
|
1922
|
+
* over its own window), not `core:query/lorebook-entries@1` (the listing).
|
|
1923
|
+
* **A query writes nothing.**
|
|
1924
|
+
* @experimental
|
|
1925
|
+
*/
|
|
1926
|
+
export declare const entriesNamed: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1927
|
+
main: string;
|
|
1928
|
+
ids: string;
|
|
1929
|
+
}, {
|
|
1930
|
+
scope: string;
|
|
1931
|
+
messages: string;
|
|
1932
|
+
budget: string;
|
|
1933
|
+
}, "core:query/entries-named@1"> & {
|
|
1934
|
+
kind: 'query';
|
|
1935
|
+
slots?: {
|
|
1936
|
+
readonly params: {
|
|
1937
|
+
readonly kind: "parameters";
|
|
1938
|
+
readonly schema: {
|
|
1939
|
+
readonly entryTypes: {
|
|
1940
|
+
readonly type: "list";
|
|
1941
|
+
readonly item: {
|
|
1942
|
+
readonly type: "text";
|
|
1943
|
+
};
|
|
1944
|
+
readonly label: {
|
|
1945
|
+
readonly en: "Entry types looked for";
|
|
1946
|
+
};
|
|
1947
|
+
readonly description: {
|
|
1948
|
+
readonly en: "Which kinds of entry to look for, by type id. Leave it empty for world lore.";
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
readonly maxEntries: {
|
|
1952
|
+
readonly type: "integer";
|
|
1953
|
+
readonly min: 0;
|
|
1954
|
+
readonly default: 12;
|
|
1955
|
+
readonly label: {
|
|
1956
|
+
readonly en: "Entries shown at most";
|
|
1957
|
+
};
|
|
1958
|
+
readonly description: {
|
|
1959
|
+
readonly en: "How many existing entries the model is shown before it writes. 0 shows none.";
|
|
1960
|
+
};
|
|
1961
|
+
};
|
|
1962
|
+
readonly share: {
|
|
1963
|
+
readonly type: "number";
|
|
1964
|
+
readonly min: 0;
|
|
1965
|
+
readonly max: 1;
|
|
1966
|
+
readonly default: 0.2;
|
|
1967
|
+
readonly label: {
|
|
1968
|
+
readonly en: "Share — entries shown";
|
|
1969
|
+
};
|
|
1970
|
+
readonly description: {
|
|
1971
|
+
readonly en: "How much of the context window the entries shown may take. An entry too long to show whole is left out.";
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1974
|
+
/**
|
|
1975
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
1976
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
1977
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
1978
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
1979
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
1980
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
1981
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
1982
|
+
* step writing for several characters) has no speaker and the read returns
|
|
1983
|
+
* everything. `false` turns it off for this node.
|
|
1984
|
+
*/
|
|
1985
|
+
readonly knownToSpeaker: {
|
|
1986
|
+
readonly type: "boolean";
|
|
1987
|
+
readonly default: true;
|
|
1988
|
+
readonly label: {
|
|
1989
|
+
readonly en: "Only what the speaker knows";
|
|
1990
|
+
};
|
|
1991
|
+
readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
|
|
1992
|
+
};
|
|
1993
|
+
/**
|
|
1994
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
1995
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
1996
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
1997
|
+
* read. `false` turns it off for this node.
|
|
1998
|
+
*/
|
|
1999
|
+
readonly speakerInCast: {
|
|
2000
|
+
type: 'boolean';
|
|
2001
|
+
default: boolean;
|
|
2002
|
+
label: {
|
|
2003
|
+
en: string;
|
|
2004
|
+
};
|
|
2005
|
+
description: string;
|
|
2006
|
+
};
|
|
2007
|
+
readonly speakerMemory: {
|
|
2008
|
+
type: 'boolean';
|
|
2009
|
+
default: boolean;
|
|
2010
|
+
label: {
|
|
2011
|
+
en: string;
|
|
2012
|
+
};
|
|
2013
|
+
description: string;
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
};
|
|
2017
|
+
} | undefined;
|
|
2018
|
+
}>;
|
|
2019
|
+
/**
|
|
2020
|
+
* 🚧 **One cast member**, as the scope session reads them — their line, their
|
|
2021
|
+
* clock, the session's own notes over the book.
|
|
2022
|
+
*
|
|
2023
|
+
* `member` is `seated-member:<castMemberId>`, `player-seat:<seatId>` (that
|
|
2024
|
+
* seat's cast member), or a cast member id (a number) of the session's
|
|
2025
|
+
* lorebook or its own. Anything else, a seat with no cast member, or a member
|
|
2026
|
+
* the session doesn't read is refused with a sentence.
|
|
2027
|
+
*
|
|
2028
|
+
* `main` is `CastMemberV1` (`@serene-pub/sdk`): the member, the card version
|
|
2029
|
+
* they follow, which fields they follow, and the character profile as the
|
|
2030
|
+
* session reads it.
|
|
2031
|
+
* @experimental
|
|
2032
|
+
*/
|
|
2033
|
+
export declare const castMember: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
2034
|
+
/** `CastMemberV1`. */
|
|
2035
|
+
main: string;
|
|
2036
|
+
}, {
|
|
2037
|
+
scope: string;
|
|
2038
|
+
/** `seated-member:<id>`, `player-seat:<id>`, or a cast member id. */
|
|
2039
|
+
member: string;
|
|
2040
|
+
}, "core:query/cast-member@1"> & {
|
|
2041
|
+
kind: 'query';
|
|
2042
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
2043
|
+
}>;
|
|
1371
2044
|
/** @experimental */
|
|
1372
2045
|
export declare const vectorSearch: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1373
2046
|
main: string;
|
|
@@ -1514,6 +2187,47 @@ export declare const vectorSearch: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
1514
2187
|
};
|
|
1515
2188
|
readonly description: "How sharply a loose resemblance counts for less than a close one. 1 takes the similarity as it comes; higher pushes vague matches down without ever removing them, so they can still be found by a keyword or a name.";
|
|
1516
2189
|
};
|
|
2190
|
+
/**
|
|
2191
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
2192
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
2193
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
2194
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
2195
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
2196
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
2197
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
2198
|
+
* step writing for several characters) has no speaker and the read returns
|
|
2199
|
+
* everything. `false` turns it off for this node.
|
|
2200
|
+
*/
|
|
2201
|
+
readonly knownToSpeaker: {
|
|
2202
|
+
readonly type: "boolean";
|
|
2203
|
+
readonly default: true;
|
|
2204
|
+
readonly label: {
|
|
2205
|
+
readonly en: "Only what the speaker knows";
|
|
2206
|
+
};
|
|
2207
|
+
readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
|
|
2208
|
+
};
|
|
2209
|
+
/**
|
|
2210
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
2211
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
2212
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
2213
|
+
* read. `false` turns it off for this node.
|
|
2214
|
+
*/
|
|
2215
|
+
readonly speakerInCast: {
|
|
2216
|
+
type: 'boolean';
|
|
2217
|
+
default: boolean;
|
|
2218
|
+
label: {
|
|
2219
|
+
en: string;
|
|
2220
|
+
};
|
|
2221
|
+
description: string;
|
|
2222
|
+
};
|
|
2223
|
+
readonly speakerMemory: {
|
|
2224
|
+
type: 'boolean';
|
|
2225
|
+
default: boolean;
|
|
2226
|
+
label: {
|
|
2227
|
+
en: string;
|
|
2228
|
+
};
|
|
2229
|
+
description: string;
|
|
2230
|
+
};
|
|
1517
2231
|
};
|
|
1518
2232
|
};
|
|
1519
2233
|
} | undefined;
|
|
@@ -1666,6 +2380,47 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
1666
2380
|
};
|
|
1667
2381
|
readonly description: "How much weight a shared name carries against the other ways an entry can be found. 0 leaves the arm finding things and ranking them last.";
|
|
1668
2382
|
};
|
|
2383
|
+
/**
|
|
2384
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
2385
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
2386
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
2387
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
2388
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
2389
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
2390
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
2391
|
+
* step writing for several characters) has no speaker and the read returns
|
|
2392
|
+
* everything. `false` turns it off for this node.
|
|
2393
|
+
*/
|
|
2394
|
+
readonly knownToSpeaker: {
|
|
2395
|
+
readonly type: "boolean";
|
|
2396
|
+
readonly default: true;
|
|
2397
|
+
readonly label: {
|
|
2398
|
+
readonly en: "Only what the speaker knows";
|
|
2399
|
+
};
|
|
2400
|
+
readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
|
|
2401
|
+
};
|
|
2402
|
+
/**
|
|
2403
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
2404
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
2405
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
2406
|
+
* read. `false` turns it off for this node.
|
|
2407
|
+
*/
|
|
2408
|
+
readonly speakerInCast: {
|
|
2409
|
+
type: 'boolean';
|
|
2410
|
+
default: boolean;
|
|
2411
|
+
label: {
|
|
2412
|
+
en: string;
|
|
2413
|
+
};
|
|
2414
|
+
description: string;
|
|
2415
|
+
};
|
|
2416
|
+
readonly speakerMemory: {
|
|
2417
|
+
type: 'boolean';
|
|
2418
|
+
default: boolean;
|
|
2419
|
+
label: {
|
|
2420
|
+
en: string;
|
|
2421
|
+
};
|
|
2422
|
+
description: string;
|
|
2423
|
+
};
|
|
1669
2424
|
};
|
|
1670
2425
|
};
|
|
1671
2426
|
} | undefined;
|
|
@@ -1928,6 +2683,47 @@ export declare const entityLink: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
1928
2683
|
};
|
|
1929
2684
|
readonly description: "A ceiling on how many entries one turn may have matched to a description. The best matches are kept; this never brings in an entry nothing else found, it only changes where one comes in the order.";
|
|
1930
2685
|
};
|
|
2686
|
+
/**
|
|
2687
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
2688
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
2689
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
2690
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
2691
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
2692
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
2693
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
2694
|
+
* step writing for several characters) has no speaker and the read returns
|
|
2695
|
+
* everything. `false` turns it off for this node.
|
|
2696
|
+
*/
|
|
2697
|
+
readonly knownToSpeaker: {
|
|
2698
|
+
readonly type: "boolean";
|
|
2699
|
+
readonly default: true;
|
|
2700
|
+
readonly label: {
|
|
2701
|
+
readonly en: "Only what the speaker knows";
|
|
2702
|
+
};
|
|
2703
|
+
readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
|
|
2704
|
+
};
|
|
2705
|
+
/**
|
|
2706
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
2707
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
2708
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
2709
|
+
* read. `false` turns it off for this node.
|
|
2710
|
+
*/
|
|
2711
|
+
readonly speakerInCast: {
|
|
2712
|
+
type: 'boolean';
|
|
2713
|
+
default: boolean;
|
|
2714
|
+
label: {
|
|
2715
|
+
en: string;
|
|
2716
|
+
};
|
|
2717
|
+
description: string;
|
|
2718
|
+
};
|
|
2719
|
+
readonly speakerMemory: {
|
|
2720
|
+
type: 'boolean';
|
|
2721
|
+
default: boolean;
|
|
2722
|
+
label: {
|
|
2723
|
+
en: string;
|
|
2724
|
+
};
|
|
2725
|
+
description: string;
|
|
2726
|
+
};
|
|
1931
2727
|
};
|
|
1932
2728
|
};
|
|
1933
2729
|
} | undefined;
|
|
@@ -2048,6 +2844,14 @@ export declare const relationshipsPerspectives: import("@serene-pub/sdk").Pinned
|
|
|
2048
2844
|
en: string;
|
|
2049
2845
|
};
|
|
2050
2846
|
};
|
|
2847
|
+
speakerMemory?: {
|
|
2848
|
+
type: 'boolean';
|
|
2849
|
+
default: boolean;
|
|
2850
|
+
label: {
|
|
2851
|
+
en: string;
|
|
2852
|
+
};
|
|
2853
|
+
description: string;
|
|
2854
|
+
} | undefined;
|
|
2051
2855
|
};
|
|
2052
2856
|
};
|
|
2053
2857
|
} | undefined;
|
|
@@ -2120,6 +2924,14 @@ export declare const relationshipsKnown: import("@serene-pub/sdk").Pinned<import
|
|
|
2120
2924
|
en: string;
|
|
2121
2925
|
};
|
|
2122
2926
|
};
|
|
2927
|
+
speakerMemory?: {
|
|
2928
|
+
type: 'boolean';
|
|
2929
|
+
default: boolean;
|
|
2930
|
+
label: {
|
|
2931
|
+
en: string;
|
|
2932
|
+
};
|
|
2933
|
+
description: string;
|
|
2934
|
+
} | undefined;
|
|
2123
2935
|
};
|
|
2124
2936
|
};
|
|
2125
2937
|
} | undefined;
|
|
@@ -2311,6 +3123,47 @@ export declare const relationshipSearch: import("@serene-pub/sdk").Pinned<import
|
|
|
2311
3123
|
readonly en: "Also offer the links one step from the lore this turn found — a room’s ways out, what an item belongs to. Off keeps the band to relationships between characters.";
|
|
2312
3124
|
};
|
|
2313
3125
|
};
|
|
3126
|
+
/**
|
|
3127
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
3128
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
3129
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
3130
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
3131
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
3132
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
3133
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
3134
|
+
* step writing for several characters) has no speaker and the read returns
|
|
3135
|
+
* everything. `false` turns it off for this node.
|
|
3136
|
+
*/
|
|
3137
|
+
readonly knownToSpeaker: {
|
|
3138
|
+
readonly type: "boolean";
|
|
3139
|
+
readonly default: true;
|
|
3140
|
+
readonly label: {
|
|
3141
|
+
readonly en: "Only what the speaker knows";
|
|
3142
|
+
};
|
|
3143
|
+
readonly description: "Leaves out the entries the speaking character does not know, and the links that lead to them (an entry marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
|
|
3144
|
+
};
|
|
3145
|
+
/**
|
|
3146
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
3147
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
3148
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
3149
|
+
* read. `false` turns it off for this node.
|
|
3150
|
+
*/
|
|
3151
|
+
readonly speakerInCast: {
|
|
3152
|
+
type: 'boolean';
|
|
3153
|
+
default: boolean;
|
|
3154
|
+
label: {
|
|
3155
|
+
en: string;
|
|
3156
|
+
};
|
|
3157
|
+
description: string;
|
|
3158
|
+
};
|
|
3159
|
+
readonly speakerMemory: {
|
|
3160
|
+
type: 'boolean';
|
|
3161
|
+
default: boolean;
|
|
3162
|
+
label: {
|
|
3163
|
+
en: string;
|
|
3164
|
+
};
|
|
3165
|
+
description: string;
|
|
3166
|
+
};
|
|
2314
3167
|
};
|
|
2315
3168
|
};
|
|
2316
3169
|
} | undefined;
|
|
@@ -2926,6 +3779,14 @@ export declare const graphScenes: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
2926
3779
|
* declaration default, with absence meaning **inherit** rather than zero, and
|
|
2927
3780
|
* derived slots computed rather than read.
|
|
2928
3781
|
*
|
|
3782
|
+
* 🚧 Each `cast.byId` entry carries `ref` (the seat's participant reference,
|
|
3783
|
+
* as the host fills it), `castMemberId` (the seat's cast member) and `cardId`
|
|
3784
|
+
* (the member's active card on the timeline; null when card-less). A reader
|
|
3785
|
+
* looks an entry up by `ref` or `castMemberId` (or takes the owner's `key` off
|
|
3786
|
+
* `session-state@1`'s owners), never by building or parsing the key: it is an
|
|
3787
|
+
* opaque owner key — `player_seat:<id>`, 🚧 `seated_member:<id>` from the
|
|
3788
|
+
* flip, ⏳ the card id before it.
|
|
3789
|
+
*
|
|
2929
3790
|
* A Query, and a plain one: what it is is a read. There is no as-of parameter
|
|
2930
3791
|
* — this is the `current` view, and the temporal registry that would give the
|
|
2931
3792
|
* other one is not built (see docs/stats-and-states.md).
|
|
@@ -3045,7 +3906,8 @@ export declare const lorebookState: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
3045
3906
|
/**
|
|
3046
3907
|
* One owner: `"world"`, `{ kind: 'cast_member', id }` or
|
|
3047
3908
|
* `{ kind: 'location', id }` (the session kinds `session`,
|
|
3048
|
-
* `session_cast`, `session_location` are
|
|
3909
|
+
* 🚧 `seated_member`, ⏳ `session_cast`, `session_location` are
|
|
3910
|
+
* translated). Optional.
|
|
3049
3911
|
*/
|
|
3050
3912
|
owner: string;
|
|
3051
3913
|
/** 🚧 `'main'`, `'mostRecent'`, `'session'` or a branch id of this book. Optional. */
|
|
@@ -3123,7 +3985,8 @@ export declare const channelLane: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
3123
3985
|
* recorded is dropped here, since it is already one of its points.
|
|
3124
3986
|
*
|
|
3125
3987
|
* Each point: `{ value, layer: 'session' | 'timeline', anchor, provenance }` —
|
|
3126
|
-
* `anchor` is `{ messageId }` or `{ historyEntryId, date }
|
|
3988
|
+
* `anchor` is `{ messageId }` or `{ historyEntryId, date }` (`date` is `null` when
|
|
3989
|
+
* the lorebook keeps no timeline, whatever is stored); `provenance` is
|
|
3127
3990
|
* `{ updatedBy, sessionId, messageId, sceneId, note, createdAt }` (who wrote
|
|
3128
3991
|
* it: `user`, `run:<id>`, or `session:<id>` for write-back). The document is
|
|
3129
3992
|
* `{ lorebookId, sessionId, branchId, owner, slotId, mode, tracked, points }`;
|
|
@@ -3603,6 +4466,47 @@ export declare const lorebookEntries: import("@serene-pub/sdk").Pinned<import("@
|
|
|
3603
4466
|
};
|
|
3604
4467
|
readonly description: "Also list, on each entry, the links that lead from it to other entries — a room’s ways out, what it is inside — each said from that entry.";
|
|
3605
4468
|
};
|
|
4469
|
+
/**
|
|
4470
|
+
* 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
|
|
4471
|
+
* knowledge* is left out unless the speaker has a knowledge tie to it (any active
|
|
4472
|
+
* tie from its cast binding that reads on the reply's line at the reply's date and
|
|
4473
|
+
* is not *kept from*) or it is the place the speaker stands in; an entry a *kept
|
|
4474
|
+
* from* tie wins for is left out, marked or not. The speaker is this read's own
|
|
4475
|
+
* `speaker` in-port when wired, else the character the run speaks as (`scope`); a
|
|
4476
|
+
* run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
|
|
4477
|
+
* step writing for several characters) has no speaker and the read returns
|
|
4478
|
+
* everything. `false` turns it off for this node.
|
|
4479
|
+
*/
|
|
4480
|
+
readonly knownToSpeaker: {
|
|
4481
|
+
readonly type: "boolean";
|
|
4482
|
+
readonly default: true;
|
|
4483
|
+
readonly label: {
|
|
4484
|
+
readonly en: "Only what the speaker knows";
|
|
4485
|
+
};
|
|
4486
|
+
readonly description: "Leaves out the entries the speaking character does not know, and the links that name them (an entry marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
|
|
4487
|
+
};
|
|
4488
|
+
/**
|
|
4489
|
+
* 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
|
|
4490
|
+
* host's lore read judges every history day against the stored cast of the scenes compiled
|
|
4491
|
+
* into it, for the read that asked, so a pipeline that turns it off must turn it off on every
|
|
4492
|
+
* read. `false` turns it off for this node.
|
|
4493
|
+
*/
|
|
4494
|
+
readonly speakerInCast: {
|
|
4495
|
+
type: 'boolean';
|
|
4496
|
+
default: boolean;
|
|
4497
|
+
label: {
|
|
4498
|
+
en: string;
|
|
4499
|
+
};
|
|
4500
|
+
description: string;
|
|
4501
|
+
};
|
|
4502
|
+
readonly speakerMemory: {
|
|
4503
|
+
type: 'boolean';
|
|
4504
|
+
default: boolean;
|
|
4505
|
+
label: {
|
|
4506
|
+
en: string;
|
|
4507
|
+
};
|
|
4508
|
+
description: string;
|
|
4509
|
+
};
|
|
3606
4510
|
};
|
|
3607
4511
|
};
|
|
3608
4512
|
} | undefined;
|