@serene-pub/contracts 0.6.0-pr-4 → 0.6.0-pr-5
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/inlets.d.ts +112 -50
- package/dist/inlets.js +118 -53
- package/dist/oracles.d.ts +308 -19
- package/dist/oracles.js +288 -40
- package/dist/outlets.d.ts +194 -44
- package/dist/outlets.js +231 -55
- package/dist/queries.d.ts +253 -79
- package/dist/queries.js +248 -88
- package/dist/tasks.d.ts +920 -176
- package/dist/tasks.js +788 -145
- package/package.json +3 -3
package/dist/outlets.d.ts
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { WriteResult } from '@serene-pub/sdk';
|
|
9
9
|
/**
|
|
10
|
-
* An author defaulting review ON for their own consumer — and unable to forbid it
|
|
10
|
+
* An author defaulting review ON for their own consumer — and unable to forbid it.
|
|
11
11
|
*
|
|
12
|
-
* Bound 2026-09-17
|
|
12
|
+
* Bound 2026-09-17: the host's commit for it existed and no
|
|
13
13
|
* binding reached it. `target` is the row the part lands on — the same port
|
|
14
14
|
* `update-message` takes, fed from an earlier write in the document (the reply's
|
|
15
|
-
* placeholder
|
|
15
|
+
* placeholder) or from the inlet's `messageId`. An update whose target is
|
|
16
16
|
* an earlier write is the same row, so placing this after `create-message` is
|
|
17
|
-
* one live row, not two
|
|
17
|
+
* one live row, not two. The host reads the id off `target`, or off the
|
|
18
18
|
* media reference's own `messageId` where a caller outside the graph set one.
|
|
19
19
|
* @experimental
|
|
20
20
|
*/
|
|
@@ -28,7 +28,7 @@ export declare const attachImage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
28
28
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
29
29
|
}>;
|
|
30
30
|
/**
|
|
31
|
-
* The create pipeline's write
|
|
31
|
+
* The create pipeline's write: seed the collected greetings as
|
|
32
32
|
* the session's first messages — one assistant message per entry, the full
|
|
33
33
|
* list as its swipe history, redirected to the genre's declared greeting
|
|
34
34
|
* channel when that is not `main`.
|
|
@@ -40,10 +40,10 @@ export declare const seedGreetings: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
40
40
|
}, {
|
|
41
41
|
greetings: string;
|
|
42
42
|
/**
|
|
43
|
-
* The channel the greetings land on
|
|
43
|
+
* The channel the greetings land on — the genre's
|
|
44
44
|
* declared greeting channel, written by the create specs as a
|
|
45
45
|
* literal (`createChat.ts`, `adventure.ts`). Absent is `main`.
|
|
46
|
-
* Declared 2026-09-16
|
|
46
|
+
* Declared 2026-09-16: the host read it off the
|
|
47
47
|
* payload while no declaration supplied it.
|
|
48
48
|
*/
|
|
49
49
|
channel: string;
|
|
@@ -52,22 +52,22 @@ export declare const seedGreetings: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
52
52
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
/**
|
|
55
|
-
* Write a message — complete, or as the run's **placeholder
|
|
55
|
+
* Write a message — complete, or as the run's **placeholder**.
|
|
56
56
|
*
|
|
57
57
|
* A pipeline that wants a message creates it itself. The reply specs put this
|
|
58
58
|
* node straight after the inlet with `generating: true`: the row it inserts is
|
|
59
59
|
* empty and generating, it is the run's live row (`liveRow` — an oracle's
|
|
60
60
|
* stream lands in it, and Stop finalises it), and the spec's last node is an
|
|
61
61
|
* `update-message` that fills it. That create → update pair on one row inside
|
|
62
|
-
* one run is the run's **one live row
|
|
62
|
+
* one run is the run's **one live row**. Without `generating` (or a
|
|
63
63
|
* claimed `row`) the message is complete, and an ordinary write — a pipeline
|
|
64
64
|
* may write as many as it likes, just never a second on the live row's
|
|
65
65
|
* channel. `message-created` fires on the create, which is now genuinely the
|
|
66
66
|
* moment the row exists.
|
|
67
67
|
*
|
|
68
68
|
* `reviewDefault: 'off'` — review of a reply, when an admin enables it, lands
|
|
69
|
-
* on the *update* of the primary row and never on this create by default
|
|
70
|
-
*
|
|
69
|
+
* on the *update* of the primary row and never on this create by default:
|
|
70
|
+
* a placeholder is a write, and an admin who gates this node gets
|
|
71
71
|
* a run that shows nothing until approved, which is honest and rarely wanted.
|
|
72
72
|
* Turning it on is still the admin's to do.
|
|
73
73
|
* @public
|
|
@@ -98,18 +98,18 @@ export declare const createMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
98
98
|
* cast row — the side-character fact `{ name, characterId, known }`
|
|
99
99
|
* off `side-character-turn@1`'s `sideCharacter` port. Stored
|
|
100
100
|
* beside the message under `metadata.sideCharacter` (was
|
|
101
|
-
* `metadata.speaker` until
|
|
102
|
-
* participant reference now, on the row as on the inlet
|
|
101
|
+
* `metadata.speaker` until 2026-09-16 — that key is the
|
|
102
|
+
* participant reference now, on the row as on the inlet),
|
|
103
103
|
* where the run and the receipt read it from; it never writes a
|
|
104
104
|
* cast row and never enters the rotation.
|
|
105
105
|
*
|
|
106
106
|
* Was `speaker` until 2026-09-16 — the inlet's port of that
|
|
107
|
-
* name is a participant reference now
|
|
107
|
+
* name is a participant reference now.
|
|
108
108
|
*/
|
|
109
109
|
sideCharacter: string;
|
|
110
110
|
/**
|
|
111
|
-
* Who is speaking, as a **participant reference**
|
|
112
|
-
*
|
|
111
|
+
* Who is speaking, as a **participant reference**
|
|
112
|
+
* (2026-09-16) — `character:<id>` or `envoy:<slug>`, the
|
|
113
113
|
* inlet's `speaker`. Stored beside the message as
|
|
114
114
|
* `metadata.speaker`; it is the only identity an envoy's turn
|
|
115
115
|
* carries, since an envoy has no row for `characterId` to name.
|
|
@@ -148,10 +148,10 @@ export declare const createMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
148
148
|
*/
|
|
149
149
|
instructions: string;
|
|
150
150
|
/**
|
|
151
|
-
* The channel the row lands on
|
|
151
|
+
* The channel the row lands on. Absent is `main`, so a
|
|
152
152
|
* pipeline that has never heard of channels writes where it
|
|
153
153
|
* always did; a channel the session's genre never declared is
|
|
154
|
-
* refused at the write. Declared 2026-09-16
|
|
154
|
+
* refused at the write. Declared 2026-09-16 for
|
|
155
155
|
* the same reason `seed-greetings` declares its own.
|
|
156
156
|
*/
|
|
157
157
|
channel: string;
|
|
@@ -164,8 +164,8 @@ export declare const createMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
164
164
|
*/
|
|
165
165
|
row: string;
|
|
166
166
|
/**
|
|
167
|
-
* Message **blocks** to post with the row
|
|
168
|
-
*
|
|
167
|
+
* Message **blocks** to post with the row
|
|
168
|
+
* (2026-09-17): a list of `MessageBlock` — text,
|
|
169
169
|
* tables, meters, and the two interactive kinds, `choices` and
|
|
170
170
|
* `form`, which are **forms** when they carry an `addressee`.
|
|
171
171
|
* The host validates the tree (`checkMessageBlocks`), refuses
|
|
@@ -210,12 +210,12 @@ export declare const createMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
210
210
|
kind: 'outlet';
|
|
211
211
|
slots?: {
|
|
212
212
|
/**
|
|
213
|
-
* The write hook
|
|
213
|
+
* The write hook: one chain rewrites the final output, the
|
|
214
214
|
* other decides where a streamed reply stops. Stop is a verdict —
|
|
215
215
|
* min-reduction across every attached script, and the connection's
|
|
216
|
-
* own guards join the same union at dispatch
|
|
216
|
+
* own guards join the same union at dispatch, which is why
|
|
217
217
|
* order never needs ruling. `speakerName` and `castNames` are
|
|
218
|
-
* extras: readable, never writable, by construction
|
|
218
|
+
* extras: readable, never writable, by construction.
|
|
219
219
|
*/
|
|
220
220
|
readonly scripts: {
|
|
221
221
|
readonly kind: "scripts";
|
|
@@ -231,7 +231,7 @@ export declare const createMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
231
231
|
* Update an existing message — finish a placeholder, or edit a settled row.
|
|
232
232
|
*
|
|
233
233
|
* `target` takes `row-ids@1`, and a `write-result@1` from earlier in the same
|
|
234
|
-
* run is assignable to it
|
|
234
|
+
* run is assignable to it: the reply specs wire `$.placeholder.messageId`
|
|
235
235
|
* here, which is the create → update pair that makes the pipeline own its row.
|
|
236
236
|
* The other case is unchanged — the id comes from outside the run because the
|
|
237
237
|
* user clicked a message, so it is on the inlet.
|
|
@@ -242,7 +242,7 @@ export declare const createMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
242
242
|
* target is edited and marked so. That is the row's own state, not a flag a
|
|
243
243
|
* spec could get wrong.
|
|
244
244
|
*
|
|
245
|
-
* Where review lands on a reply
|
|
245
|
+
* Where review lands on a reply: when an admin turns review on
|
|
246
246
|
* for a reply's message writes, it is THIS node that parks — the placeholder
|
|
247
247
|
* ships `reviewDefault: 'off'` and declares no default here either, so nothing
|
|
248
248
|
* gates by default and a reviewer who asks for one sees the content, not an
|
|
@@ -261,7 +261,7 @@ export declare const updateMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
261
261
|
* the model produced one. Stored beside the message as the
|
|
262
262
|
* reasoning fold reads it; absent means none. Shown folded,
|
|
263
263
|
* and never re-sent to the model: the prompt transcript reads
|
|
264
|
-
* a row's text alone (
|
|
264
|
+
* a row's text alone (decided 2026-09-27).
|
|
265
265
|
*/
|
|
266
266
|
reasoning: string;
|
|
267
267
|
/**
|
|
@@ -312,7 +312,7 @@ export declare const deleteMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
312
312
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
313
313
|
}>;
|
|
314
314
|
/**
|
|
315
|
-
* Write the session's turn order
|
|
315
|
+
* Write the session's turn order — the ONE
|
|
316
316
|
* write path for `sessions.metadata.turnOrder`, and the only outlet that
|
|
317
317
|
* writes `metadata` at all.
|
|
318
318
|
*
|
|
@@ -347,14 +347,14 @@ export declare const setTurnOrder: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
347
347
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
348
348
|
}>;
|
|
349
349
|
/**
|
|
350
|
-
* Write one owner's document into the session's annex
|
|
350
|
+
* Write one owner's document into the session's annex.
|
|
351
351
|
*
|
|
352
352
|
* Merged into what is there by default — a spec that keeps one key does not
|
|
353
353
|
* have to carry the rest — and written under
|
|
354
354
|
* `pg_advisory_xact_lock(hashtext('annex'), sessionId)` through `jsonb_set`,
|
|
355
355
|
* so two specs writing two owners' documents at once cannot lose each
|
|
356
|
-
* other's. Causes `core:event/annex-changed@1` (
|
|
357
|
-
* reversing
|
|
356
|
+
* other's. Causes `core:event/annex-changed@1` (a later
|
|
357
|
+
* ruling, reversing the original "no causesEvent"): a package's state is the annex, and a
|
|
358
358
|
* genre that wants its turn order to answer that state binds the event in
|
|
359
359
|
* the open, where the event map draws it — not through a back door.
|
|
360
360
|
* @experimental
|
|
@@ -530,6 +530,36 @@ export declare const branchSession: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
530
530
|
kind: 'outlet';
|
|
531
531
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
532
532
|
}>;
|
|
533
|
+
/**
|
|
534
|
+
* 🚧 Set the session's **backdrop**: `sessions.backdropMediaId`, the picture
|
|
535
|
+
* the Backdrop widget shows behind or beside the Stage — session state, a
|
|
536
|
+
* role pointer like a card's avatar, never a message part.
|
|
537
|
+
*
|
|
538
|
+
* `media` is a media list (what `core:oracle/generate-image@1` publishes);
|
|
539
|
+
* the host takes the FIRST image in it, keyed or not, and refuses a file
|
|
540
|
+
* that belongs to neither this session nor the user the run acts as (the
|
|
541
|
+
* rule `create-message`'s media keeps). A list with no image in it writes
|
|
542
|
+
* nothing, causes no event and publishes a null `mediaId` — it never
|
|
543
|
+
* clears: a person clears a backdrop, a pipeline replaces it. Runs in the
|
|
544
|
+
* session scope the run was started in.
|
|
545
|
+
*
|
|
546
|
+
* Causes `core:event/backdrop-set@1` when the pointer moved. Publishes the
|
|
547
|
+
* write result on `main` and the file id now set on `mediaId` (null when
|
|
548
|
+
* nothing was written).
|
|
549
|
+
*
|
|
550
|
+
* ⚠ Not the app background (`user_settings.background_media_id`), not a
|
|
551
|
+
* message attachment, and not the retired *scene image* pins.
|
|
552
|
+
* @experimental
|
|
553
|
+
*/
|
|
554
|
+
export declare const setBackdrop: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
555
|
+
main: string;
|
|
556
|
+
mediaId: string;
|
|
557
|
+
}, {
|
|
558
|
+
media: string;
|
|
559
|
+
}, "core:outlet/set-backdrop@1"> & {
|
|
560
|
+
kind: 'outlet';
|
|
561
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
562
|
+
}>;
|
|
533
563
|
/**
|
|
534
564
|
* Record a line's **shown sprite**. Writes it on the line's ACTIVE swipe
|
|
535
565
|
* (`metadata.swipes.spriteHistory[currentIdx]`, mirrored to
|
|
@@ -578,6 +608,80 @@ export declare const showSprite: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
578
608
|
kind: 'outlet';
|
|
579
609
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
580
610
|
}>;
|
|
611
|
+
/**
|
|
612
|
+
* 🚧 File pictures as a card's **sprites** — the end of the Sprite set fill.
|
|
613
|
+
*
|
|
614
|
+
* For every item of `media` that carries a series `key`: a `sprites` row in
|
|
615
|
+
* the set named `setName` (the card's default set when the name is blank or
|
|
616
|
+
* gone), under the sprite label that key was drawn for, with
|
|
617
|
+
* `source: 'generated'` and the picture as its file. The label comes from
|
|
618
|
+
* `series` (each item's `vars.label`); with no series the key is the label.
|
|
619
|
+
*
|
|
620
|
+
* - An **empty sprite** waiting under the label is filled first.
|
|
621
|
+
* - Otherwise the picture is added beside what is there — a **variant** —
|
|
622
|
+
* so a second picture under one key, or a run that redraws a label, never
|
|
623
|
+
* replaces a sprite.
|
|
624
|
+
* - An item with **no key** (surplus the host kept) is ignored.
|
|
625
|
+
* - A key in `series` that brought no picture is reported on `missing`.
|
|
626
|
+
*
|
|
627
|
+
* The picture becomes the card's file (provenance: `files.character_id`), so
|
|
628
|
+
* it carries the card's visibility and stays out of the card's gallery like
|
|
629
|
+
* every sprite. Refused unless the run's person owns the card or is an admin.
|
|
630
|
+
*
|
|
631
|
+
* Causes `core:event/sprites-attached@1` when at least one row was written.
|
|
632
|
+
* About a card, not a session: it writes no session row.
|
|
633
|
+
* @experimental
|
|
634
|
+
*/
|
|
635
|
+
export declare const attachSprite: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
636
|
+
main: string;
|
|
637
|
+
/** `[{ label, spriteId }]`, one per row written, in media order. */
|
|
638
|
+
attached: string;
|
|
639
|
+
/** Sprite labels the series asked for that came back with no picture. */
|
|
640
|
+
missing: string;
|
|
641
|
+
}, {
|
|
642
|
+
media: string;
|
|
643
|
+
characterId: string;
|
|
644
|
+
setName: string;
|
|
645
|
+
/** The series the pictures were drawn for — the key → sprite label map. */
|
|
646
|
+
series: string;
|
|
647
|
+
}, "core:outlet/attach-sprite@1"> & {
|
|
648
|
+
kind: 'outlet';
|
|
649
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
650
|
+
}>;
|
|
651
|
+
/**
|
|
652
|
+
* 🚧 **Offer** pictures to a card — put them in the card's **gallery** for a
|
|
653
|
+
* person to pick from (the end of Portrait).
|
|
654
|
+
*
|
|
655
|
+
* Each image in `media` becomes a picture of the card's gallery, after the
|
|
656
|
+
* pictures already there, in media order. Nothing is chosen for the person:
|
|
657
|
+
* the avatar and the likeness image are left as they are. *Use as avatar*
|
|
658
|
+
* and *Use as likeness image* on the gallery tile are the person's, later.
|
|
659
|
+
*
|
|
660
|
+
* - An item that is not an image is skipped.
|
|
661
|
+
* - A picture must be the run person's own file or already the card's — a
|
|
662
|
+
* media reference is an address anyone could type, and the gallery would
|
|
663
|
+
* re-publish whatever it names under the card's visibility.
|
|
664
|
+
* - A picture that is already one of the card's files stays where it is.
|
|
665
|
+
*
|
|
666
|
+
* `offered` is `[{ mediaId, key }]`, one per picture placed, with the series
|
|
667
|
+
* key it was drawn for (`null` for surplus the host kept unkeyed). Refused
|
|
668
|
+
* unless the run's person owns the card or is an admin.
|
|
669
|
+
*
|
|
670
|
+
* Causes `core:event/media-offered@1` when at least one picture was placed.
|
|
671
|
+
* About a card, not a session: it writes no session row.
|
|
672
|
+
* @experimental
|
|
673
|
+
*/
|
|
674
|
+
export declare const offerMedia: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
675
|
+
main: string;
|
|
676
|
+
/** `[{ mediaId, key }]`, one per picture placed, in media order. */
|
|
677
|
+
offered: string;
|
|
678
|
+
}, {
|
|
679
|
+
media: string;
|
|
680
|
+
characterId: string;
|
|
681
|
+
}, "core:outlet/offer-media@1"> & {
|
|
682
|
+
kind: 'outlet';
|
|
683
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
684
|
+
}>;
|
|
581
685
|
/**
|
|
582
686
|
* Move a session's **story clock** — the session's own story now — by `by` of
|
|
583
687
|
* `unit`, through its lorebook's calendar (`advanceStoryTime`): carried by a
|
|
@@ -586,20 +690,33 @@ export declare const showSprite: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
586
690
|
*
|
|
587
691
|
* Moves the session's clock only, never the book's or its line's present. A
|
|
588
692
|
* session with no clock of its own starts from its line's present. Refused
|
|
589
|
-
* with a sentence — the run halts
|
|
590
|
-
*
|
|
591
|
-
* the book's calendar; never
|
|
693
|
+
* with a sentence — the run halts, unless the spec says `onRefusal: 'skip'`
|
|
694
|
+
* — when the session has no lorebook, when there is no present to start
|
|
695
|
+
* from, and when the result does not land in the book's calendar; never
|
|
696
|
+
* clamped, never a silent no-op.
|
|
592
697
|
*
|
|
593
698
|
* `by` and `unit` in-ports, when wired, win over the parameters. To advance
|
|
594
699
|
* once per reply, place it in a spec bound to the reply's event, which runs
|
|
595
700
|
* after the reply is saved. (No ordering-only in-port: an unread port is a
|
|
596
701
|
* declared control no run consults — `declaredReads`.)
|
|
702
|
+
*
|
|
703
|
+
* 🚧 Every move it makes is written to the session's state ledger, anchored
|
|
704
|
+
* where the world's changes are (live scenes §15 G5, 2026-10-13): the person
|
|
705
|
+
* reads it under the message ("Time passes: 3 hours (… → …)"), and a delete,
|
|
706
|
+
* swipe or regenerate of that message takes it back as it takes values back.
|
|
707
|
+
* Why the clock moved is the spec's to say (`cause`), never inferred from
|
|
708
|
+
* the run's inlet.
|
|
597
709
|
* @experimental
|
|
598
710
|
*/
|
|
599
711
|
export declare const advanceStoryClock: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
600
712
|
main: string;
|
|
601
713
|
/** The session's story clock as it now stands: `{ year, month?, day?, hour?, minute? }`. */
|
|
602
714
|
clock: string;
|
|
715
|
+
/**
|
|
716
|
+
* 🚧 Why the clock did not move, under `onRefusal: 'skip'` —
|
|
717
|
+
* the sentence the person reads; empty when it moved.
|
|
718
|
+
*/
|
|
719
|
+
skipped: string;
|
|
603
720
|
/** It spelled through the book's calendar. */
|
|
604
721
|
label: string;
|
|
605
722
|
}, {
|
|
@@ -607,6 +724,39 @@ export declare const advanceStoryClock: import("@serene-pub/sdk").Pinned<import(
|
|
|
607
724
|
by: string;
|
|
608
725
|
/** One of the units; wins over the `unit` parameter when wired. */
|
|
609
726
|
unit: string;
|
|
727
|
+
/**
|
|
728
|
+
* 🚧 **Why the clock moves** (live scenes §15 G4, 2026-10-13),
|
|
729
|
+
* a literal: `'action'` — a person's press (*Time passes…*);
|
|
730
|
+
* `'keeper'` — the state-keeper's move under Trust the
|
|
731
|
+
* narrator; `'tick'` — a reply's fixed tick. An action's and
|
|
732
|
+
* the keeper's move are **time actions** the boundary watcher
|
|
733
|
+
* may begin a new scene at; a tick never is. Unwired reads as
|
|
734
|
+
* `'action'`.
|
|
735
|
+
*
|
|
736
|
+
* ## A port, not a parameter, and the call site is what decides
|
|
737
|
+
*
|
|
738
|
+
* As `show-sprite@1`'s `source`: a literal in the node's
|
|
739
|
+
* config, because why a step moves the clock is a structural
|
|
740
|
+
* fact of the document, not a knob for the panel. It was the
|
|
741
|
+
* host's to infer from the run's inlet until 2026-10-13, and a
|
|
742
|
+
* keeper's move on a reply turn was then never a time action.
|
|
743
|
+
* It also decides what a swipe or a regenerate takes back: a
|
|
744
|
+
* tick stands (the re-driven reply never ticks again), every
|
|
745
|
+
* other move goes with the reply.
|
|
746
|
+
*/
|
|
747
|
+
cause: string;
|
|
748
|
+
/**
|
|
749
|
+
* 🚧 **What a refusal does** (live scenes §15 G7), a literal:
|
|
750
|
+
* `'halt'` (unwired) stops the run with the sentence;
|
|
751
|
+
* `'skip'` moves nothing, puts the sentence on `skipped` and
|
|
752
|
+
* on the session's state ledger, and lets the run finish — for
|
|
753
|
+
* a step that runs after other changes already landed, which
|
|
754
|
+
* a halt would leave looking like a failed turn. Every core
|
|
755
|
+
* spec's skips: Adventure's keeper steps and its *Time
|
|
756
|
+
* passes…*, Chat's reply tick, and Chat's and the Lair's *Time
|
|
757
|
+
* passes…* (live scenes §15 G12).
|
|
758
|
+
*/
|
|
759
|
+
onRefusal: string;
|
|
610
760
|
}, "core:outlet/advance-story-clock@1"> & {
|
|
611
761
|
kind: 'outlet';
|
|
612
762
|
slots?: {
|
|
@@ -715,7 +865,7 @@ export declare const attachAudio: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
715
865
|
/**
|
|
716
866
|
* Write the finished entry. Gate-eligible, so it publishes a write result.
|
|
717
867
|
*
|
|
718
|
-
* ## Which kind of entry — the pipeline's decision, at last (
|
|
868
|
+
* ## Which kind of entry — the pipeline's decision, at last (2026-09-17)
|
|
719
869
|
*
|
|
720
870
|
* The host's commit case has said since the four summarize namespaces were
|
|
721
871
|
* written that *which kind of entry comes from the pipeline that ran*. It did
|
|
@@ -739,7 +889,7 @@ export declare const attachAudio: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
739
889
|
* ## `links`, or a second write
|
|
740
890
|
*
|
|
741
891
|
* Linking a new entry takes one of two shapes, and both exist on purpose.
|
|
742
|
-
* (A pipeline may write many times —
|
|
892
|
+
* (A pipeline may write many times — only the live row is limited to one — so
|
|
743
893
|
* `core:outlet/link-lore-entries@1` may also follow this outlet in the same
|
|
744
894
|
* run, each its own transaction.)
|
|
745
895
|
*
|
|
@@ -754,7 +904,7 @@ export declare const attachAudio: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
754
904
|
*
|
|
755
905
|
* Each entry of `links` is a name or an entry id, or a `LoreLinkInput` —
|
|
756
906
|
* `{ to, linkType?, reverseLinkType?, name?, description? }` — for one that
|
|
757
|
-
* says more (
|
|
907
|
+
* says more (2026-09-29). Absent on nearly every write, and an
|
|
758
908
|
* empty list is the same as none. A link the list states twice, or one the
|
|
759
909
|
* session already reads, is written once: see `linkLoreEntries` on idempotence.
|
|
760
910
|
* @internal
|
|
@@ -767,7 +917,7 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
|
|
|
767
917
|
content: string;
|
|
768
918
|
/**
|
|
769
919
|
* Links to write from this entry in the same commit — see the
|
|
770
|
-
* note above on
|
|
920
|
+
* note above on the live row. Names, entry ids, or `LoreLinkInput`s.
|
|
771
921
|
*/
|
|
772
922
|
links: string;
|
|
773
923
|
}, "core:outlet/create-lore-entry@1"> & {
|
|
@@ -790,7 +940,7 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
|
|
|
790
940
|
} | undefined;
|
|
791
941
|
}>;
|
|
792
942
|
/**
|
|
793
|
-
* Link two lore entries (
|
|
943
|
+
* Link two lore entries (2026-09-17).
|
|
794
944
|
*
|
|
795
945
|
* ## The gap it closes
|
|
796
946
|
*
|
|
@@ -805,7 +955,7 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
|
|
|
805
955
|
* ## Both ends, and the one scope
|
|
806
956
|
*
|
|
807
957
|
* `from` is an entry id — or, straight off `create-lore-entry@1`, its
|
|
808
|
-
* `entryId` write result, which is assignable to `row-ids@1
|
|
958
|
+
* `entryId` write result, which is assignable to `row-ids@1`. `to`
|
|
809
959
|
* is an id **or a name**, resolved within the session's own lorebook, case
|
|
810
960
|
* and surrounding space ignored. A name is the half that makes the law below
|
|
811
961
|
* survivable, and it is also the half that can be wrong in two ways, so both
|
|
@@ -820,14 +970,14 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
|
|
|
820
970
|
*
|
|
821
971
|
* ## After a create
|
|
822
972
|
*
|
|
823
|
-
* It may follow `core:outlet/create-lore-entry@1` in the same run (
|
|
824
|
-
*
|
|
973
|
+
* It may follow `core:outlet/create-lore-entry@1` in the same run (only the
|
|
974
|
+
* live row is limited to one), linking by name what that write created — which is why
|
|
825
975
|
* `to` takes one; a later run can do the same. Each write is its own
|
|
826
976
|
* transaction, so a failed link leaves the entry behind. When the entry and
|
|
827
977
|
* its links are one thought, `create-lore-entry`'s own `links` in-port writes
|
|
828
978
|
* the edges in the row's transaction instead — the shape a room-builder wants.
|
|
829
979
|
*
|
|
830
|
-
* ## What the link says (
|
|
980
|
+
* ## What the link says (2026-09-29)
|
|
831
981
|
*
|
|
832
982
|
* The row is a **relationship**, and it carries the relationship's whole
|
|
833
983
|
* descriptor — the same four words the lorebook's own link form edits:
|
|
@@ -914,7 +1064,7 @@ export declare const linkLoreEntries: import("@serene-pub/sdk").Pinned<import("@
|
|
|
914
1064
|
}>;
|
|
915
1065
|
/**
|
|
916
1066
|
* One lore link a spec asks for — an element of
|
|
917
|
-
* `core:outlet/create-lore-entry@1`'s `links` (
|
|
1067
|
+
* `core:outlet/create-lore-entry@1`'s `links` (2026-09-29).
|
|
918
1068
|
*
|
|
919
1069
|
* The same four words as `core:outlet/link-lore-entries@1`'s ports and
|
|
920
1070
|
* parameters, and as the `LoreLinkRow` a listing reads back: what you write is
|
|
@@ -940,7 +1090,7 @@ export interface LoreLinkInput {
|
|
|
940
1090
|
}
|
|
941
1091
|
/**
|
|
942
1092
|
* One lore link on a `core:query/lorebook-entries@1` row, listed when the
|
|
943
|
-
* spec asks for `withLinks` (
|
|
1093
|
+
* spec asks for `withLinks` (2026-09-29).
|
|
944
1094
|
*
|
|
945
1095
|
* **Said from the listed entry**: `to` is the far end, whichever end of the
|
|
946
1096
|
* relationship the listed entry is. A relationship drawn from here reads by
|