@serene-pub/contracts 0.6.0-pr-1 → 0.6.0-pr-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,566 @@
1
+ /**
2
+ * Core's **inlet** node definitions — where a run enters.
3
+ *
4
+ * One file per node kind, with the helpers only that kind uses; `index.ts`
5
+ * re-exports them all.
6
+ */
7
+ /**
8
+ * What a turn is *about*: this chat, and whose turn it is.
9
+ *
10
+ * `sessionScope` bundles both and is what the queries take, but neither was
11
+ * readable on its own — so a node that needs only the speaker had to accept the
12
+ * whole scope and reach into it, and `currentCharacterId` ended up travelling
13
+ * on `HostScope` instead of through the graph because there was no port to
14
+ * carry it. Hidden state in a run that otherwise records everything.
15
+ *
16
+ * The two scalars are ports now. `sessionScope` stays: a query wanting both should
17
+ * take one thing, not reassemble it.
18
+ * @public
19
+ */
20
+ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
21
+ main: string;
22
+ text: string;
23
+ sessionScope: string;
24
+ sessionId: string;
25
+ /**
26
+ * Whose turn it is, as a **participant reference** (R-18 (3)):
27
+ * `character:<id>` for a library character, `envoy:<slug>` for
28
+ * a speaker the genre brings with it. Null on a narrator turn —
29
+ * nobody in particular is speaking. One port answers "who is
30
+ * speaking" for both kinds, so nothing downstream branches on
31
+ * which it received; who *portrays* them this turn is the
32
+ * host's resolver's answer, pinned on the receipt (R-21 (4)).
33
+ */
34
+ speaker: string;
35
+ /**
36
+ * @deprecated The same speaker as a bare character id (one
37
+ * release, from 2026-09-16). Null on a narrator turn, and null
38
+ * for an envoy — which is why it cannot stay the port: a
39
+ * reader keyed on it sees a genre's speaker as nobody. Read
40
+ * `speaker`; the turn strategies publish both meanwhile.
41
+ */
42
+ characterId: string;
43
+ /**
44
+ * Who **pressed** — the reference of whoever sent the message
45
+ * or fired the action this run answers (G9, 2026-09-17).
46
+ *
47
+ * `user:<id>` for a person with no presence in the session,
48
+ * `character:<id>` when they hold a persona here — their
49
+ * persona is a character (0132), so a line written as them is
50
+ * written as that character — and, when an answer pipeline
51
+ * pressed on a participant's behalf, that participant's own
52
+ * reference, so the AI-portrayed presser is named rather than
53
+ * the machinery that spoke for them.
54
+ *
55
+ * ⚠ **Not `speaker`.** `speaker` is whose turn it is — who the
56
+ * reply comes out as — and on nearly every turn the two differ:
57
+ * a person types and a character answers. This is the other
58
+ * end of that sentence, and the port a spec wires into
59
+ * `core:outlet/create-message@1`'s `speaker` when it wants to
60
+ * write a line AS the person who pressed: the host already had
61
+ * the path (`speaker: 'user:<id>'` writes a user-role row) and
62
+ * no inlet carried the reference to put in it, so a plugin that
63
+ * wanted the player's own line had to ride it on the model's
64
+ * reply as a block (Battleship, plan §12).
65
+ *
66
+ * Never null on a turn or a fire: a run has an owner, and the
67
+ * owner is a person. Absent only where the inlet is resolved
68
+ * without one, which no shipped path does.
69
+ */
70
+ presser: string;
71
+ /**
72
+ * The cast members a press collected (lair pass R3,
73
+ * 2026-09-28): `character:<id>` references, for an action
74
+ * declaring `collects.recipients` — picked in the collect
75
+ * modal, and validated by the host (seated and enabled, no
76
+ * duplicates, within the declared `min` and `max`) before
77
+ * the run starts. Absent on a turn and on every press of an
78
+ * action that collects none.
79
+ */
80
+ recipients: string;
81
+ /**
82
+ * Values for the mode's declared `fields` (19 §1), filtered to
83
+ * the declared schema keys — the supply side of the round
84
+ * trip: declaration → chat settings → chat row → this port →
85
+ * every downstream node.
86
+ */
87
+ fields: string;
88
+ /**
89
+ * Text an in-progress reply has already produced, when this turn
90
+ * is an **extend** (ruling 2026-09-08, D-2; the verb was `continue`
91
+ * until 2026-09-28).
92
+ *
93
+ * Empty on every other turn, which is nearly all of them. It is
94
+ * here rather than on an `extend`-only input type because an
95
+ * extend is the standard chat's own verb — it answers the same
96
+ * event, in the same session, from the same cast — and a second
97
+ * input type would restate this one's `sessionShape`, which is
98
+ * the thing `side-character-turn@1`'s note says a shape-bearing
99
+ * mode must never have copied.
100
+ *
101
+ * ⚠ It is not the triggering text and it is not a message. `text`
102
+ * stays what it would be on an ordinary turn, the row carrying
103
+ * this is excluded from every message read while it generates,
104
+ * and only `core:task/process-messages@1` consumes it — as the
105
+ * body of the seed line the model continues from.
106
+ */
107
+ continuationPrefill: string;
108
+ /**
109
+ * The reply row this turn re-drives, when it is a regenerate, a
110
+ * swipe or an extend of a message that already exists. Null on
111
+ * a fresh turn, which is nearly all of them.
112
+ *
113
+ * The pipeline owns its reply row (R-17): a fresh turn's row is
114
+ * created by the spec's own placeholder outlet, and a verb that
115
+ * re-drives an existing message hands that message to the same
116
+ * outlet through this port — so the outlet claims it as the
117
+ * run's live row instead of inserting a second one. It is data,
118
+ * recorded on the receipt, and never a scope read: "which row
119
+ * did this turn write" is answerable from the run afterwards.
120
+ */
121
+ messageId: string;
122
+ /**
123
+ * What the built-ins did to this session since the last reply
124
+ * (R-15, 2026-09-16): a list of session changes — `[{ event:
125
+ * 'core:event/message-deleted@1', messageId, at, lost }, …]`,
126
+ * oldest first, capped at the newest fifty — so a pipeline
127
+ * knows the history it is about to read has moved: a line
128
+ * deleted with its content, a rewrite with the previous text,
129
+ * an alternative swiped in, a reply stopped short. Read once:
130
+ * the run that receives them consumes them — marked read
131
+ * after the run, and only when it produced a reply, so a run
132
+ * that fails leaves them for the next — and a preview sees
133
+ * them without consuming. Empty when nothing changed, which
134
+ * is nearly every turn. Past fifty, the newest fifty arrive
135
+ * and a last entry `{ event:
136
+ * 'core:event/session-changes-truncated@1', dropped }` says
137
+ * how many older ones did not.
138
+ *
139
+ * Was `changes` until 2026-09-16 (U5b review S4): that word is
140
+ * the state ledger's on `resolve-state-changes@1` and
141
+ * `set-state@1` — a list of value changes — and a session
142
+ * change is about a message, never a value (R1).
143
+ */
144
+ sessionChanges: string;
145
+ /**
146
+ * What an action's fire sent along (R-15 *Forms*; U5d,
147
+ * 2026-09-17): a form's answer — `{ choice }` for a choices
148
+ * block, the entered values for a form block — or a widget's
149
+ * `invoke(key, args)` arguments. Absent on a turn and on a
150
+ * bare press. A press on an **addressed** block arrives with
151
+ * `form` beside it (`core:task/read-answer@1` takes both and
152
+ * publishes the answer port by port). The host always
153
+ * supplied this under `payload`; declared 2026-09-17 so a
154
+ * spec can wire it.
155
+ */
156
+ payload: string;
157
+ /**
158
+ * The form a press answered, when it answered one — the block
159
+ * itself as stored, its id, the message and the addressee,
160
+ * read off the row by the host (never off the client):
161
+ * `{ blockId, messageId, kind, question, addressee, characterId,
162
+ * choice?, label? }`. Absent on every other fire.
163
+ */
164
+ form: string;
165
+ /**
166
+ * Which channel the message that triggered this turn is on
167
+ * (R-C, 2026-09-17) — the stored string, lane included:
168
+ * `main`, `manuscript`, `phone:3`.
169
+ *
170
+ * `main` when the trigger named none, which is every session
171
+ * whose genre declares no channel of its own. It is never a
172
+ * selector: `*` spans every channel for a *read* and is not
173
+ * somewhere a message can be, so it never appears here.
174
+ *
175
+ * ⚠ The run had no way to ask this before, and that is what
176
+ * kept a channel's declared `voice` half-wired: `voice: 'none'`
177
+ * could be read off the newest row, but `voice: 'narrator'`
178
+ * needs the channel the turn was triggered on even when that
179
+ * channel has no rows yet. It is a port rather than a scope
180
+ * read for the other half of the same reason — a genre that
181
+ * answers the manuscript differently from the conversation
182
+ * branches on it at a junction, and a junction can only read
183
+ * what a port carries.
184
+ */
185
+ /**
186
+ * The session's **settings document** (PLAN-turn-order §4.12,
187
+ * R13): every setting a person can see in session settings,
188
+ * resolved once per run by the host and handed in here —
189
+ * title, guests, genre fields (cascade applied, §4.13),
190
+ * scenario, lorebook, tags, channels, the cast with its
191
+ * envoys, the session-scope rebinds and param overrides per
192
+ * bound spec, the turn-order state, `metadata` (read-only)
193
+ * and the annex. `$.input.session.fields.tone` reads in any
194
+ * spec, and no node re-queries a table for a setting.
195
+ */
196
+ session: string;
197
+ channel: string;
198
+ /**
199
+ * **How this turn was reached** (lair pass R8, 2026-09-28) —
200
+ * the fired turn entry's `via`: `strategy`, `script` or
201
+ * `voice` for a prepared turn, `pick` for one a person chose,
202
+ * and **`narrate`** when the press was the `core#narrate` turn
203
+ * control (the genre's own voice asked to narrate what happens
204
+ * next). A verb re-driving a row carries the `via` of the run
205
+ * that created it, so a regenerated narration narrates again.
206
+ * Empty when nothing says (an action's fire). A genre routes
207
+ * on it at a junction — the Lair narrates on `narrate` ahead
208
+ * of every other branch.
209
+ */
210
+ via: string;
211
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/user-message@1"> & {
212
+ kind: 'inlet';
213
+ slots?: {
214
+ /**
215
+ * The input hook (18 §4a): user chains over the triggering text,
216
+ * phase `after` on what this node publishes — which is what
217
+ * lorebook scanning and the prompt's seed see. The stored user
218
+ * message was written before the turn began and stays untouched
219
+ * by construction; the slot description says so because that is
220
+ * the question the control raises.
221
+ */
222
+ readonly scripts: {
223
+ readonly kind: "scripts";
224
+ readonly accepts: ["core:script:text/transform@1"];
225
+ readonly port: "text";
226
+ readonly phase: "after";
227
+ readonly description: "Scripts over the message that triggered this turn — expand shorthand, resolve dice notation — as retrieval and the prompt will see it. The stored message is not changed.";
228
+ };
229
+ } | undefined;
230
+ }>;
231
+ /**
232
+ * A built-in write's request (R-15, 2026-09-16) — what a person asked core to
233
+ * do to a message or a session: delete, hide, edit, swipe, branch.
234
+ *
235
+ * Core implements every state-altering write and runs each as its own
236
+ * one-node spec (`core:spec/builtin-delete` …) through the executor, so the
237
+ * write is receipted, gate-eligible and always emits what changed. This is
238
+ * that spec's inlet: the person's request, as the venue's handler shaped it
239
+ * after the permission checks it alone can make. No lock — a built-in serves
240
+ * every genre — and no shape: a request is not a session mode.
241
+ * @internal
242
+ */
243
+ export declare const builtInRequest: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
244
+ main: string;
245
+ sessionScope: string;
246
+ sessionId: string;
247
+ /** The message the write is about. Absent on a branch. */
248
+ target: string;
249
+ /** An edit's new text; a swipe's alternative to record. */
250
+ text: string;
251
+ /** A hide's direction: hidden, or shown again. */
252
+ hidden: string;
253
+ /** A swipe's alternative to select, by index. */
254
+ index: string;
255
+ /** A branch's fork point — the last message the copy keeps. */
256
+ fromMessage: string;
257
+ /**
258
+ * The session's **settings document** (PLAN-turn-order §4.12,
259
+ * R13): every setting a person can see in session settings,
260
+ * resolved once per run by the host and handed in here —
261
+ * title, guests, genre fields (cascade applied, §4.13),
262
+ * scenario, lorebook, tags, channels, the cast with its
263
+ * envoys, the session-scope rebinds and param overrides per
264
+ * bound spec, the turn-order state, `metadata` (read-only)
265
+ * and the annex. `$.input.session.fields.tone` reads in any
266
+ * spec, and no node re-queries a table for a setting.
267
+ */
268
+ session: string;
269
+ /** A branch's name. */
270
+ title: string;
271
+ /**
272
+ * A person's sprite for the line: `{ set, label }`, or null to
273
+ * clear it (DESIGN-sprites §6) — a `sprite-pick@1`, the shape a
274
+ * picker publishes, so `core:outlet/show-sprite@1` takes one
275
+ * shape from both. Read by `core:spec/show-sprite`.
276
+ */
277
+ sprite: string;
278
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/built-in-request@1"> & {
279
+ kind: 'inlet';
280
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
281
+ }>;
282
+ /**
283
+ * A session was just created — the create pipeline's trigger (24 §5, §12).
284
+ *
285
+ * The genre's one required pipeline answers this event and seeds the
286
+ * session's initial data: greetings per the genre's shape, initial channels,
287
+ * initial state. The payload is the create request itself — the genre, the
288
+ * chosen preset, the participants and initial field values — because what a
289
+ * create pipeline does is *finish* what the request began.
290
+ *
291
+ * Not `user-message`: reusing the turn input here welded creation to the
292
+ * chat turn's shape and was wrong (24 §12). A create run has no triggering
293
+ * text and no speaker; it has a request.
294
+ * @public
295
+ */
296
+ export declare const sessionCreated: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
297
+ main: string;
298
+ sessionScope: string;
299
+ sessionId: string;
300
+ /**
301
+ * The create request: genre id, preset id, participant ids,
302
+ * lorebook, initial field values — everything the person chose
303
+ * before the session existed.
304
+ */
305
+ request: string;
306
+ /**
307
+ * The session's **settings document** (PLAN-turn-order §4.12,
308
+ * R13): every setting a person can see in session settings,
309
+ * resolved once per run by the host and handed in here —
310
+ * title, guests, genre fields (cascade applied, §4.13),
311
+ * scenario, lorebook, tags, channels, the cast with its
312
+ * envoys, the session-scope rebinds and param overrides per
313
+ * bound spec, the turn-order state, `metadata` (read-only)
314
+ * and the annex. `$.input.session.fields.tone` reads in any
315
+ * spec, and no node re-queries a table for a setting.
316
+ */
317
+ session: string;
318
+ /** Values for the genre's declared fields, filtered to the schema. */
319
+ fields: string;
320
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/session-created@1"> & {
321
+ kind: 'inlet';
322
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
323
+ }>;
324
+ /**
325
+ * A session event happened (PLAN-turn-order §4.1/§4.4, R1): the inlet every
326
+ * event-driven spec enters through, and the one core's turn-order spec
327
+ * uses.
328
+ *
329
+ * Locked over **several** events at once — `.inlet(key, node, { genre,
330
+ * events: [...] })` — because one spec answers nine of them identically:
331
+ * a send, an edit, a delete, a hide, a member change, a cast change, a
332
+ * settings save, a branch. A spec bound to N events has N binding rows and
333
+ * one document.
334
+ *
335
+ * `cause` is why it fired (`EventCause`: user · run · edit · settings ·
336
+ * system), and it is load-bearing beyond this node — the write this spec
337
+ * ends in carries it into `turn-order-changed`, where the auto-advance
338
+ * listener reads it to decide whether to fire the head turn (§4.6). A spec
339
+ * that drops it makes every recompute look like a system event.
340
+ * @experimental
341
+ */
342
+ export declare const sessionEvent: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
343
+ /** The event id that fired — `core:event/message-completed@1`. */
344
+ event: string;
345
+ sessionId: string;
346
+ /** The event's own payload, as its registry entry's shape declares it. */
347
+ payload: string;
348
+ /** Why it fired (`EventCause`). Carried through to the write. */
349
+ cause: string;
350
+ /** When, as epoch milliseconds — what an order `basedOnAt` answers. */
351
+ at: string;
352
+ sessionScope: string;
353
+ /**
354
+ * The session's **settings document** (§4.12, R13), resolved
355
+ * once per run by the host after the write that caused this
356
+ * event — so the cast below is the cast as it is now, and no
357
+ * node needs a cast read of its own.
358
+ */
359
+ session: string;
360
+ /**
361
+ * The settings document's **cast**, on its own port (PLAN
362
+ * §8 (17)): what `core:query/session-cast@1` publishes,
363
+ * envoys included, projected from `session` by the host.
364
+ *
365
+ * A port rather than a path, because an edge is `{ node,
366
+ * port }` and nothing in the graph addresses a field inside
367
+ * a port's value. §4.5 wires the pool's `cast` from the
368
+ * document; this is that wire, with the shape the pool's
369
+ * in-port declares.
370
+ */
371
+ cast: string;
372
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/session-event@1"> & {
373
+ kind: 'inlet';
374
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
375
+ }>;
376
+ /**
377
+ * Who is about to speak, when the trigger picked somebody who is **not** in
378
+ * the cast — the side-character narration turn (ruling 2026-09-07).
379
+ *
380
+ * ## participant ≠ character
381
+ *
382
+ * A side character is a **participant without a turn slot**. The trigger's
383
+ * first step accepts either an existing character (`characterId`) or a name
384
+ * somebody typed (`speakerName` alone), and both are full participants *for
385
+ * that turn* — the prompt is written from their perspective and the seed line
386
+ * carries their name. Neither joins the session cast, and nothing here writes
387
+ * a `session_characters` row: this input publishes a fact about one turn, and
388
+ * a fact is not a membership.
389
+ *
390
+ * Its own type rather than a flag on `user-message@1`, for the reason that type
391
+ * already gives about the narrator: the type is the unit that declares a
392
+ * configurable surface, and `user-message` is the standard chat's **mode** —
393
+ * it carries the genre's `sessionShape`, which is exactly what a side-character
394
+ * turn must not restate. This one declares no shape, so it is an action input
395
+ * and never a session mode.
396
+ *
397
+ * ## The new-name hook (the fact, and only the fact)
398
+ *
399
+ * `sideCharacter` carries `known` — whether the chosen name matches anything in
400
+ * the session's lorebook — and the scripts hook below declares it as an **extra**,
401
+ * so a script attached there reads it through the one dispatch core scripts and
402
+ * extension hooks already share. Core states the fact and offers the hook; what
403
+ * a script *does* about an unknown name (suggest adding them, stay quiet, add a
404
+ * note to the prompt) is the script's business, not this declaration's. There is
405
+ * deliberately no second path: nothing here notifies, writes, or prompts.
406
+ * @experimental
407
+ */
408
+ export declare const sideCharacterTurn: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
409
+ main: string;
410
+ text: string;
411
+ sessionScope: string;
412
+ sessionId: string;
413
+ /**
414
+ * Who is speaking, as a **participant reference** (R-18 (3)):
415
+ * `character:<id>` when the pick was a library character, null
416
+ * for a free-form name — a name is not a participant reference,
417
+ * and the fact below is where the name lives. On the same
418
+ * terms as `user-message@1`'s port of this name.
419
+ */
420
+ speaker: string;
421
+ /**
422
+ * @deprecated The chosen character as a bare id, or null for a
423
+ * free-form name (one release, from 2026-09-16) — read
424
+ * `speaker`.
425
+ *
426
+ * ⚠ It is **not** a turn slot. It reaches character lore's
427
+ * visibility rule (an entry bound to this character becomes
428
+ * readable for this turn) and the prompt's perspective, and
429
+ * nothing else — round-robin selection reads the session's
430
+ * cast and its messages, neither of which this touches.
431
+ */
432
+ characterId: string;
433
+ /**
434
+ * The side character as a whole fact: `{ name, characterId,
435
+ * known, character }`.
436
+ *
437
+ * A port rather than only an extra, because it is what the
438
+ * context builder is wired to and what the receipt records —
439
+ * "why did this turn sound like Vell" is answerable from the
440
+ * run afterwards rather than from the trigger that started it.
441
+ *
442
+ * Was `speaker` until 2026-09-16: that name is the participant
443
+ * reference now (R-18 (3), one word one meaning), and a fact
444
+ * carrying a free-form name is not a reference to anybody.
445
+ */
446
+ sideCharacter: string;
447
+ /**
448
+ * The session's **settings document** (PLAN-turn-order §4.12,
449
+ * R13): every setting a person can see in session settings,
450
+ * resolved once per run by the host and handed in here —
451
+ * title, guests, genre fields (cascade applied, §4.13),
452
+ * scenario, lorebook, tags, channels, the cast with its
453
+ * envoys, the session-scope rebinds and param overrides per
454
+ * bound spec, the turn-order state, `metadata` (read-only)
455
+ * and the annex. `$.input.session.fields.tone` reads in any
456
+ * spec, and no node re-queries a table for a setting.
457
+ */
458
+ session: string;
459
+ /** Values for the genre's declared fields, filtered to the schema. */
460
+ fields: string;
461
+ /**
462
+ * The row this turn re-drives, on the same terms as
463
+ * `user-message@1`'s port of the same name: a regenerate, swipe
464
+ * or extend of a side character's line routes back to the
465
+ * narrate-character spec, and its placeholder claims the verb's
466
+ * row through this instead of inserting a second one. Null on
467
+ * a fresh turn.
468
+ */
469
+ messageId: string;
470
+ /**
471
+ * The built-ins' session changes since the last reply, on the
472
+ * same terms as `user-message@1`'s port of this name (was
473
+ * `changes` until 2026-09-16, U5b review S4).
474
+ */
475
+ sessionChanges: string;
476
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/side-character-turn@1"> & {
477
+ kind: 'inlet';
478
+ slots?: {
479
+ /**
480
+ * The input hook (18 §4a), on the same terms as `user-message@1`:
481
+ * user chains over the triggering text, phase `after` on what this
482
+ * node publishes, which is what retrieval and the prompt see.
483
+ *
484
+ * ⚠ `extras` is what makes this the **new-name hook**. The three
485
+ * names below are read-only context supplied by the host at the
486
+ * hook (18 §6a) and are part of the fixed choice set the script
487
+ * editor offers — so "this name is new" is a declared read rather
488
+ * than a name typed on faith. `speakerIsKnown` is `false` exactly
489
+ * when a free-form name matched nothing in the session's lorebook.
490
+ */
491
+ readonly scripts: {
492
+ readonly kind: "scripts";
493
+ readonly accepts: ["core:script:text/transform@1"];
494
+ readonly port: "text";
495
+ readonly phase: "after";
496
+ readonly extras: ["speakerName", "speakerCharacterId", "speakerIsKnown", "castNames"];
497
+ readonly description: "Scripts over the instructions this turn was triggered with, as retrieval and the prompt will see them. The speaker rides along read-only — including whether the lorebook already knows them, so a script can offer to add somebody new.";
498
+ };
499
+ } | undefined;
500
+ }>;
501
+ /**
502
+ * A form was addressed to a participant the AI portrays — the answer
503
+ * pipeline's trigger. The payload is `core:shape/form-addressed@1`; the
504
+ * ports below are it taken apart, with the block itself (`form`) and the
505
+ * addressee's character id (`characterId`, null for an envoy) beside them so
506
+ * the context builder can compile the addressee's card the way it compiles a
507
+ * speaker's. No shape — an event's inlet is never a session mode — and no
508
+ * lock here: the genre's answer spec declares its own `(genre, event)`.
509
+ * @experimental
510
+ */
511
+ export declare const formAddressed: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
512
+ main: string;
513
+ sessionScope: string;
514
+ sessionId: string;
515
+ /**
516
+ * The session's **settings document** (PLAN-turn-order §4.12,
517
+ * R13): every setting a person can see in session settings,
518
+ * resolved once per run by the host and handed in here —
519
+ * title, guests, genre fields (cascade applied, §4.13),
520
+ * scenario, lorebook, tags, channels, the cast with its
521
+ * envoys, the session-scope rebinds and param overrides per
522
+ * bound spec, the turn-order state, `metadata` (read-only)
523
+ * and the annex. `$.input.session.fields.tone` reads in any
524
+ * spec, and no node re-queries a table for a setting.
525
+ */
526
+ session: string;
527
+ /** The message carrying the block. */
528
+ messageId: string;
529
+ /** The block's id within the message. */
530
+ blockId: string;
531
+ /** The block itself — a `choices` or `form` `MessageBlock`, as stored. */
532
+ form: string;
533
+ /** The identity of the action the form answers with — `<spec slug>#<key>`. */
534
+ action: string;
535
+ /** Who the form is put to, as a participant reference the resolver answered `ai` for. */
536
+ addressee: string;
537
+ /** The addressee's character row, for the context builder; null for an envoy. */
538
+ characterId: string;
539
+ /** Values for the genre's declared fields, as on a turn. */
540
+ fields: string;
541
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/form-addressed@1"> & {
542
+ kind: 'inlet';
543
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
544
+ }>;
545
+ /** @internal */
546
+ export declare const summarizeRequest: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
547
+ main: string;
548
+ scope: string;
549
+ /**
550
+ * The session's **settings document** (PLAN-turn-order §4.12,
551
+ * R13): every setting a person can see in session settings,
552
+ * resolved once per run by the host and handed in here —
553
+ * title, guests, genre fields (cascade applied, §4.13),
554
+ * scenario, lorebook, tags, channels, the cast with its
555
+ * envoys, the session-scope rebinds and param overrides per
556
+ * bound spec, the turn-order state, `metadata` (read-only)
557
+ * and the annex. `$.input.session.fields.tone` reads in any
558
+ * spec, and no node re-queries a table for a setting.
559
+ */
560
+ session: string;
561
+ request: string;
562
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/summarize-request@1"> & {
563
+ kind: 'inlet';
564
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
565
+ }>;
566
+ //# sourceMappingURL=inlets.d.ts.map