@serene-pub/contracts 0.6.0-pr-2 → 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.
@@ -0,0 +1,628 @@
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**:
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.
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 (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 (as the Battleship plugin did).
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
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
+ * 🚧 The **clock step** a press collected (2026-10-13):
83
+ * `{ by, unit }` — a whole number other than zero, signed
84
+ * (back is negative), and one of the story-time units — for
85
+ * an action declaring `collects.clockStep`, picked on the
86
+ * collect modal's stepper and checked by the host before the
87
+ * run starts. Absent on a turn and on every press of an
88
+ * action that collects none. Core's *Time passes…* hands it
89
+ * to `core:task/clock-step@1`.
90
+ */
91
+ clockStep: string;
92
+ /**
93
+ * Values for the mode's declared `fields`, filtered to
94
+ * the declared schema keys — the supply side of the round
95
+ * trip: declaration → chat settings → chat row → this port →
96
+ * every downstream node.
97
+ */
98
+ fields: string;
99
+ /**
100
+ * Text an in-progress reply has already produced, when this turn
101
+ * is an **extend** (ruling 2026-09-08; the verb was `continue`
102
+ * until 2026-09-28).
103
+ *
104
+ * Empty on every other turn, which is nearly all of them. It is
105
+ * here rather than on an `extend`-only input type because an
106
+ * extend is the standard chat's own verb — it answers the same
107
+ * event, in the same session, from the same cast — and a second
108
+ * input type would restate this one's `sessionShape`, which is
109
+ * the thing `side-character-turn@1`'s note says a shape-bearing
110
+ * mode must never have copied.
111
+ *
112
+ * ⚠ It is not the triggering text and it is not a message. `text`
113
+ * stays what it would be on an ordinary turn, the row carrying
114
+ * this is excluded from every message read while it generates,
115
+ * and only `core:task/process-messages@1` consumes it — as the
116
+ * body of the seed line the model continues from.
117
+ */
118
+ continuationPrefill: string;
119
+ /**
120
+ * The reply row this turn re-drives, when it is a regenerate, a
121
+ * swipe or an extend of a message that already exists. Null on
122
+ * a fresh turn, which is nearly all of them.
123
+ *
124
+ * The pipeline owns its reply row: a fresh turn's row is
125
+ * created by the spec's own placeholder outlet, and a verb that
126
+ * re-drives an existing message hands that message to the same
127
+ * outlet through this port — so the outlet claims it as the
128
+ * run's live row instead of inserting a second one. It is data,
129
+ * recorded on the receipt, and never a scope read: "which row
130
+ * did this turn write" is answerable from the run afterwards.
131
+ */
132
+ messageId: string;
133
+ /**
134
+ * What the built-ins did to this session since the last reply
135
+ * (2026-09-16): a list of session changes — `[{ event:
136
+ * 'core:event/message-deleted@1', messageId, at, lost }, …]`,
137
+ * oldest first, capped at the newest fifty — so a pipeline
138
+ * knows the history it is about to read has moved: a line
139
+ * deleted with its content, a rewrite with the previous text,
140
+ * an alternative swiped in, a reply stopped short. Read once:
141
+ * the run that receives them consumes them — marked read
142
+ * after the run, and only when it produced a reply, so a run
143
+ * that fails leaves them for the next — and a preview sees
144
+ * them without consuming. Empty when nothing changed, which
145
+ * is nearly every turn. Past fifty, the newest fifty arrive
146
+ * and a last entry `{ event:
147
+ * 'core:event/session-changes-truncated@1', dropped }` says
148
+ * how many older ones did not.
149
+ *
150
+ * Was `changes` until 2026-09-16: that word is
151
+ * the state ledger's on `resolve-state-changes@1` and
152
+ * `set-state@1` — a list of value changes — and a session
153
+ * change is about a message, never a value (one word, one meaning).
154
+ */
155
+ sessionChanges: string;
156
+ /**
157
+ * What an action's fire sent along
158
+ * (2026-09-17): a form's answer — `{ choice }` for a choices
159
+ * block, the entered values for a form block — or a widget's
160
+ * `invoke(key, args)` arguments. Absent on a turn and on a
161
+ * bare press. A press on an **addressed** block arrives with
162
+ * `form` beside it (`core:task/read-answer@1` takes both and
163
+ * publishes the answer port by port). The host always
164
+ * supplied this under `payload`; declared 2026-09-17 so a
165
+ * spec can wire it.
166
+ */
167
+ payload: string;
168
+ /**
169
+ * The form a press answered, when it answered one — the block
170
+ * itself as stored, its id, the message and the addressee,
171
+ * read off the row by the host (never off the client):
172
+ * `{ blockId, messageId, kind, question, addressee, characterId,
173
+ * choice?, label? }`. Absent on every other fire.
174
+ */
175
+ form: string;
176
+ /**
177
+ * Which channel the message that triggered this turn is on
178
+ * (2026-09-17) — the stored string, lane included:
179
+ * `main`, `manuscript`, `phone:3`.
180
+ *
181
+ * `main` when the trigger named none, which is every session
182
+ * whose genre declares no channel of its own. It is never a
183
+ * selector: `*` spans every channel for a *read* and is not
184
+ * somewhere a message can be, so it never appears here.
185
+ *
186
+ * ⚠ The run had no way to ask this before, and that is what
187
+ * kept a channel's declared `voice` half-wired: `voice: 'none'`
188
+ * could be read off the newest row, but `voice: 'narrator'`
189
+ * needs the channel the turn was triggered on even when that
190
+ * channel has no rows yet. It is a port rather than a scope
191
+ * read for the other half of the same reason — a genre that
192
+ * answers the manuscript differently from the conversation
193
+ * branches on it at a junction, and a junction can only read
194
+ * what a port carries.
195
+ */
196
+ /**
197
+ * The session's **settings document**:
198
+ * every setting a person can see in session settings,
199
+ * resolved once per run by the host and handed in here —
200
+ * title, guests, genre fields (cascade applied),
201
+ * scenario, lorebook, tags, channels, the cast with its
202
+ * envoys, the session-scope rebinds and param overrides per
203
+ * bound spec, the turn-order state, `metadata` (read-only)
204
+ * and the annex. `$.input.session.fields.tone` reads in any
205
+ * spec, and no node re-queries a table for a setting.
206
+ */
207
+ session: string;
208
+ channel: string;
209
+ /**
210
+ * **How this turn was reached** (2026-09-28) —
211
+ * the fired turn entry's `via`: `strategy`, `script` or
212
+ * `voice` for a prepared turn, `pick` for one a person chose,
213
+ * and **`narrate`** when the press was the `core#narrate` turn
214
+ * control (the genre's own voice asked to narrate what happens
215
+ * next). A verb re-driving a row carries the `via` of the run
216
+ * that created it, so a regenerated narration narrates again.
217
+ * Empty when nothing says (an action's fire). A genre routes
218
+ * on it at a junction — the Lair narrates on `narrate` ahead
219
+ * of every other branch.
220
+ */
221
+ via: string;
222
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/user-message@1"> & {
223
+ kind: 'inlet';
224
+ slots?: {
225
+ /**
226
+ * The input hook: user chains over the triggering text,
227
+ * phase `after` on what this node publishes — which is what
228
+ * lorebook scanning and the prompt's seed see. The stored user
229
+ * message was written before the turn began and stays untouched
230
+ * by construction; the slot description says so because that is
231
+ * the question the control raises.
232
+ */
233
+ readonly scripts: {
234
+ readonly kind: "scripts";
235
+ readonly accepts: ["core:script:text/transform@1"];
236
+ readonly port: "text";
237
+ readonly phase: "after";
238
+ 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.";
239
+ };
240
+ } | undefined;
241
+ }>;
242
+ /**
243
+ * A built-in write's request (2026-09-16) — what a person asked core to
244
+ * do to a message or a session: delete, hide, edit, swipe, branch.
245
+ *
246
+ * Core implements every state-altering write and runs each as its own
247
+ * one-node spec (`core:spec/builtin-delete` …) through the executor, so the
248
+ * write is receipted, gate-eligible and always emits what changed. This is
249
+ * that spec's inlet: the person's request, as the venue's handler shaped it
250
+ * after the permission checks it alone can make. No lock — a built-in serves
251
+ * every genre — and no shape: a request is not a session mode.
252
+ * @internal
253
+ */
254
+ export declare const builtInRequest: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
255
+ main: string;
256
+ sessionScope: string;
257
+ sessionId: string;
258
+ /** The message the write is about. Absent on a branch. */
259
+ target: string;
260
+ /** An edit's new text; a swipe's alternative to record. */
261
+ text: string;
262
+ /** A hide's direction: hidden, or shown again. */
263
+ hidden: string;
264
+ /** A swipe's alternative to select, by index. */
265
+ index: string;
266
+ /** A branch's fork point — the last message the copy keeps. */
267
+ fromMessage: string;
268
+ /**
269
+ * The session's **settings document**:
270
+ * every setting a person can see in session settings,
271
+ * resolved once per run by the host and handed in here —
272
+ * title, guests, genre fields (cascade applied),
273
+ * scenario, lorebook, tags, channels, the cast with its
274
+ * envoys, the session-scope rebinds and param overrides per
275
+ * bound spec, the turn-order state, `metadata` (read-only)
276
+ * and the annex. `$.input.session.fields.tone` reads in any
277
+ * spec, and no node re-queries a table for a setting.
278
+ */
279
+ session: string;
280
+ /** A branch's name. */
281
+ title: string;
282
+ /**
283
+ * A person's sprite for the line: `{ set, label }`, or null to
284
+ * clear it — a `sprite-pick@1`, the shape a
285
+ * picker publishes, so `core:outlet/show-sprite@1` takes one
286
+ * shape from both. Read by `core:spec/show-sprite`.
287
+ */
288
+ sprite: string;
289
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/built-in-request@1"> & {
290
+ kind: 'inlet';
291
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
292
+ }>;
293
+ /**
294
+ * A session was just created — the create pipeline's trigger.
295
+ *
296
+ * The genre's one required pipeline answers this event and seeds the
297
+ * session's initial data: greetings per the genre's shape, initial channels,
298
+ * initial state. The payload is the create request itself — the genre, the
299
+ * chosen preset, the participants and initial field values — because what a
300
+ * create pipeline does is *finish* what the request began.
301
+ *
302
+ * Not `user-message`: reusing the turn input here welded creation to the
303
+ * chat turn's shape and was wrong. A create run has no triggering
304
+ * text and no speaker; it has a request.
305
+ * @public
306
+ */
307
+ export declare const sessionCreated: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
308
+ main: string;
309
+ sessionScope: string;
310
+ sessionId: string;
311
+ /**
312
+ * The create request: genre id, preset id, participant ids,
313
+ * lorebook, initial field values — everything the person chose
314
+ * before the session existed.
315
+ */
316
+ request: string;
317
+ /**
318
+ * The session's **settings document**:
319
+ * every setting a person can see in session settings,
320
+ * resolved once per run by the host and handed in here —
321
+ * title, guests, genre fields (cascade applied),
322
+ * scenario, lorebook, tags, channels, the cast with its
323
+ * envoys, the session-scope rebinds and param overrides per
324
+ * bound spec, the turn-order state, `metadata` (read-only)
325
+ * and the annex. `$.input.session.fields.tone` reads in any
326
+ * spec, and no node re-queries a table for a setting.
327
+ */
328
+ session: string;
329
+ /** Values for the genre's declared fields, filtered to the schema. */
330
+ fields: string;
331
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/session-created@1"> & {
332
+ kind: 'inlet';
333
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
334
+ }>;
335
+ /**
336
+ * A session event happened: the inlet every
337
+ * event-driven spec enters through, and the one core's turn-order spec
338
+ * uses.
339
+ *
340
+ * Locked over **several** events at once — `.inlet(key, node, { genre,
341
+ * events: [...] })` — because one spec answers nine of them identically:
342
+ * a send, an edit, a delete, a hide, a member change, a cast change, a
343
+ * settings save, a branch. A spec bound to N events has N binding rows and
344
+ * one document.
345
+ *
346
+ * `cause` is why it fired (`EventCause`: user · run · edit · settings ·
347
+ * system), and it is load-bearing beyond this node — the write this spec
348
+ * ends in carries it into `turn-order-changed`, where the auto-advance
349
+ * listener reads it to decide whether to fire the head turn. A spec
350
+ * that drops it makes every recompute look like a system event.
351
+ * @experimental
352
+ */
353
+ export declare const sessionEvent: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
354
+ /** The event id that fired — `core:event/message-completed@1`. */
355
+ event: string;
356
+ sessionId: string;
357
+ /** The event's own payload, as its registry entry's shape declares it. */
358
+ payload: string;
359
+ /** Why it fired (`EventCause`). Carried through to the write. */
360
+ cause: string;
361
+ /** When, as epoch milliseconds — what an order `basedOnAt` answers. */
362
+ at: string;
363
+ sessionScope: string;
364
+ /**
365
+ * The session's **settings document**, resolved
366
+ * once per run by the host after the write that caused this
367
+ * event — so the cast below is the cast as it is now, and no
368
+ * node needs a cast read of its own.
369
+ */
370
+ session: string;
371
+ /**
372
+ * The settings document's **cast**, on its own port:
373
+ * what `core:query/session-cast@1` publishes,
374
+ * envoys included, projected from `session` by the host.
375
+ *
376
+ * A port rather than a path, because an edge is `{ node,
377
+ * port }` and nothing in the graph addresses a field inside
378
+ * a port's value. Core's turn-order spec wires the pool's `cast` from the
379
+ * document; this is that wire, with the shape the pool's
380
+ * in-port declares.
381
+ */
382
+ cast: string;
383
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/session-event@1"> & {
384
+ kind: 'inlet';
385
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
386
+ }>;
387
+ /**
388
+ * Who is about to speak, when the trigger picked somebody who is **not** in
389
+ * the cast — the side-character narration turn (ruling 2026-09-07).
390
+ *
391
+ * ## participant ≠ character
392
+ *
393
+ * A side character is a **participant without a turn slot**. The trigger's
394
+ * first step accepts either an existing character (`characterId`) or a name
395
+ * somebody typed (`speakerName` alone), and both are full participants *for
396
+ * that turn* — the prompt is written from their perspective and the seed line
397
+ * carries their name. Neither joins the session cast, and nothing here writes
398
+ * a `session_characters` row: this input publishes a fact about one turn, and
399
+ * a fact is not a membership.
400
+ *
401
+ * Its own type rather than a flag on `user-message@1`, for the reason that type
402
+ * already gives about the narrator: the type is the unit that declares a
403
+ * configurable surface, and `user-message` is the standard chat's **mode** —
404
+ * it carries the genre's `sessionShape`, which is exactly what a side-character
405
+ * turn must not restate. This one declares no shape, so it is an action input
406
+ * and never a session mode.
407
+ *
408
+ * ## The new-name hook (the fact, and only the fact)
409
+ *
410
+ * `sideCharacter` carries `known` — whether the chosen name matches anything in
411
+ * the session's lorebook — and the scripts hook below declares it as an **extra**,
412
+ * so a script attached there reads it through the one dispatch core scripts and
413
+ * extension hooks already share. Core states the fact and offers the hook; what
414
+ * a script *does* about an unknown name (suggest adding them, stay quiet, add a
415
+ * note to the prompt) is the script's business, not this declaration's. There is
416
+ * deliberately no second path: nothing here notifies, writes, or prompts.
417
+ * @experimental
418
+ */
419
+ export declare const sideCharacterTurn: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
420
+ main: string;
421
+ text: string;
422
+ sessionScope: string;
423
+ sessionId: string;
424
+ /**
425
+ * Who is speaking, as a **participant reference**:
426
+ * `character:<id>` when the pick was a library character, null
427
+ * for a free-form name — a name is not a participant reference,
428
+ * and the fact below is where the name lives. On the same
429
+ * terms as `user-message@1`'s port of this name.
430
+ */
431
+ speaker: string;
432
+ /**
433
+ * @deprecated The chosen character as a bare id, or null for a
434
+ * free-form name (one release, from 2026-09-16) — read
435
+ * `speaker`.
436
+ *
437
+ * ⚠ It is **not** a turn slot. It reaches character lore's
438
+ * visibility rule (an entry bound to this character becomes
439
+ * readable for this turn) and the prompt's perspective, and
440
+ * nothing else — round-robin selection reads the session's
441
+ * cast and its messages, neither of which this touches.
442
+ */
443
+ characterId: string;
444
+ /**
445
+ * The side character as a whole fact: `{ name, characterId,
446
+ * known, character }`.
447
+ *
448
+ * A port rather than only an extra, because it is what the
449
+ * context builder is wired to and what the receipt records —
450
+ * "why did this turn sound like Vell" is answerable from the
451
+ * run afterwards rather than from the trigger that started it.
452
+ *
453
+ * Was `speaker` until 2026-09-16: that name is the participant
454
+ * reference now (one word, one meaning), and a fact
455
+ * carrying a free-form name is not a reference to anybody.
456
+ */
457
+ sideCharacter: string;
458
+ /**
459
+ * The session's **settings document**:
460
+ * every setting a person can see in session settings,
461
+ * resolved once per run by the host and handed in here —
462
+ * title, guests, genre fields (cascade applied),
463
+ * scenario, lorebook, tags, channels, the cast with its
464
+ * envoys, the session-scope rebinds and param overrides per
465
+ * bound spec, the turn-order state, `metadata` (read-only)
466
+ * and the annex. `$.input.session.fields.tone` reads in any
467
+ * spec, and no node re-queries a table for a setting.
468
+ */
469
+ session: string;
470
+ /** Values for the genre's declared fields, filtered to the schema. */
471
+ fields: string;
472
+ /**
473
+ * The row this turn re-drives, on the same terms as
474
+ * `user-message@1`'s port of the same name: a regenerate, swipe
475
+ * or extend of a side character's line routes back to the
476
+ * narrate-character spec, and its placeholder claims the verb's
477
+ * row through this instead of inserting a second one. Null on
478
+ * a fresh turn.
479
+ */
480
+ messageId: string;
481
+ /**
482
+ * The built-ins' session changes since the last reply, on the
483
+ * same terms as `user-message@1`'s port of this name (was
484
+ * `changes` until 2026-09-16).
485
+ */
486
+ sessionChanges: string;
487
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/side-character-turn@1"> & {
488
+ kind: 'inlet';
489
+ slots?: {
490
+ /**
491
+ * The input hook, on the same terms as `user-message@1`:
492
+ * user chains over the triggering text, phase `after` on what this
493
+ * node publishes, which is what retrieval and the prompt see.
494
+ *
495
+ * ⚠ `extras` is what makes this the **new-name hook**. The three
496
+ * names below are read-only context supplied by the host at the
497
+ * hook and are part of the fixed choice set the script
498
+ * editor offers — so "this name is new" is a declared read rather
499
+ * than a name typed on faith. `speakerIsKnown` is `false` exactly
500
+ * when a free-form name matched nothing in the session's lorebook.
501
+ */
502
+ readonly scripts: {
503
+ readonly kind: "scripts";
504
+ readonly accepts: ["core:script:text/transform@1"];
505
+ readonly port: "text";
506
+ readonly phase: "after";
507
+ readonly extras: ["speakerName", "speakerCharacterId", "speakerIsKnown", "castNames"];
508
+ 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.";
509
+ };
510
+ } | undefined;
511
+ }>;
512
+ /**
513
+ * A form was addressed to a participant the AI portrays — the answer
514
+ * pipeline's trigger. The payload is `core:shape/form-addressed@1`; the
515
+ * ports below are it taken apart, with the block itself (`form`) and the
516
+ * addressee's character id (`characterId`, null for an envoy) beside them so
517
+ * the context builder can compile the addressee's card the way it compiles a
518
+ * speaker's. No shape — an event's inlet is never a session mode — and no
519
+ * lock here: the genre's answer spec declares its own `(genre, event)`.
520
+ * @experimental
521
+ */
522
+ export declare const formAddressed: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
523
+ main: string;
524
+ sessionScope: string;
525
+ sessionId: string;
526
+ /**
527
+ * The session's **settings document**:
528
+ * every setting a person can see in session settings,
529
+ * resolved once per run by the host and handed in here —
530
+ * title, guests, genre fields (cascade applied),
531
+ * scenario, lorebook, tags, channels, the cast with its
532
+ * envoys, the session-scope rebinds and param overrides per
533
+ * bound spec, the turn-order state, `metadata` (read-only)
534
+ * and the annex. `$.input.session.fields.tone` reads in any
535
+ * spec, and no node re-queries a table for a setting.
536
+ */
537
+ session: string;
538
+ /** The message carrying the block. */
539
+ messageId: string;
540
+ /** The block's id within the message. */
541
+ blockId: string;
542
+ /** The block itself — a `choices` or `form` `MessageBlock`, as stored. */
543
+ form: string;
544
+ /** The identity of the action the form answers with — `<spec slug>#<key>`. */
545
+ action: string;
546
+ /** Who the form is put to, as a participant reference the resolver answered `ai` for. */
547
+ addressee: string;
548
+ /** The addressee's character row, for the context builder; null for an envoy. */
549
+ characterId: string;
550
+ /** Values for the genre's declared fields, as on a turn. */
551
+ fields: string;
552
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/form-addressed@1"> & {
553
+ kind: 'inlet';
554
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
555
+ }>;
556
+ /** @internal */
557
+ export declare const summarizeRequest: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
558
+ main: string;
559
+ scope: string;
560
+ /**
561
+ * The session's **settings document**:
562
+ * every setting a person can see in session settings,
563
+ * resolved once per run by the host and handed in here —
564
+ * title, guests, genre fields (cascade applied),
565
+ * scenario, lorebook, tags, channels, the cast with its
566
+ * envoys, the session-scope rebinds and param overrides per
567
+ * bound spec, the turn-order state, `metadata` (read-only)
568
+ * and the annex. `$.input.session.fields.tone` reads in any
569
+ * spec, and no node re-queries a table for a setting.
570
+ */
571
+ session: string;
572
+ request: string;
573
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/summarize-request@1"> & {
574
+ kind: 'inlet';
575
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
576
+ }>;
577
+ /**
578
+ * 🚧 A person pressed an action on a **card** — the Characters view, not a
579
+ * session: *Fill empty sprites* on the
580
+ * Sprites tab, and *Generate portrait* on the Gallery tab (`count`, widened
581
+ * in place 2026-10-12).
582
+ *
583
+ * ## No session
584
+ *
585
+ * A card action runs with no session in scope: nothing here is a session's,
586
+ * no live row is filled, no session event is written. The host checks the
587
+ * person may act on the card (its owner, or an admin) before the run starts,
588
+ * and resolves the card ONCE, here — its likeness as text and as the
589
+ * reference image — so no node re-reads the character for a setting.
590
+ *
591
+ * ## The form's answers
592
+ *
593
+ * `fields` is the whole of what the action's form collected. The fields a
594
+ * core action asks are also their own ports (`setName`, `labels`) because a
595
+ * data edge addresses a port, never a field inside one; another card action
596
+ * widens this in place with its own, every one optional.
597
+ *
598
+ * No lock and no shape: a card action is not a session mode, and no genre
599
+ * owns a card.
600
+ * @experimental
601
+ */
602
+ export declare const cardAction: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
603
+ main: string;
604
+ /** The card the action was pressed on. */
605
+ characterId: string;
606
+ /** The card's likeness prompt — its look as a tag line; empty when unset. */
607
+ likeness: string;
608
+ /** The card's likeness negative; empty when unset. */
609
+ likenessNegative: string;
610
+ /**
611
+ * The likeness image as a one-item media list (the likeness
612
+ * image, else the avatar); empty when the card has neither.
613
+ * What a picture step's `references` port takes.
614
+ */
615
+ likenessImage: string;
616
+ /** The form's answers, whole. */
617
+ fields: string;
618
+ /** Sprite set fill: the sprite set to fill, by name. */
619
+ setName: string;
620
+ /** Sprite set fill: the sprite labels to draw. */
621
+ labels: string;
622
+ /** 🚧 Portrait: how many pictures to offer (a whole number, 1–4 on the form). */
623
+ count: string;
624
+ }, import("@serene-pub/sdk").PortDecl, "core:inlet/card-action@1"> & {
625
+ kind: 'inlet';
626
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
627
+ }>;
628
+ //# sourceMappingURL=inlets.d.ts.map