@serene-pub/contracts 0.6.0-pr-4 → 0.6.0-pr-6
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 +295 -50
- package/dist/inlets.js +468 -55
- package/dist/oracles.d.ts +440 -19
- package/dist/oracles.js +425 -42
- package/dist/outlets.d.ts +583 -44
- package/dist/outlets.js +641 -60
- package/dist/queries.d.ts +323 -80
- package/dist/queries.js +330 -90
- package/dist/tasks.d.ts +1425 -179
- package/dist/tasks.js +1169 -148
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Every entry is a descriptor plus a pinned constructor. Note that the LLM, TTS and
|
|
5
5
|
* image-gen providers are structurally identical: `params` is declared per type, so
|
|
6
|
-
* nothing anywhere switches on modality
|
|
6
|
+
* nothing anywhere switches on modality.
|
|
7
7
|
*
|
|
8
8
|
* Split by node kind (2026-10-05): `inlets.ts`, `queries.ts`, `tasks.ts`,
|
|
9
9
|
* `oracles.ts` and `outlets.ts`, each holding its kind's definitions and the
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Every entry is a descriptor plus a pinned constructor. Note that the LLM, TTS and
|
|
5
5
|
* image-gen providers are structurally identical: `params` is declared per type, so
|
|
6
|
-
* nothing anywhere switches on modality
|
|
6
|
+
* nothing anywhere switches on modality.
|
|
7
7
|
*
|
|
8
8
|
* Split by node kind (2026-10-05): `inlets.ts`, `queries.ts`, `tasks.ts`,
|
|
9
9
|
* `oracles.ts` and `outlets.ts`, each holding its kind's definitions and the
|
package/dist/inlets.d.ts
CHANGED
|
@@ -23,13 +23,13 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
23
23
|
sessionScope: string;
|
|
24
24
|
sessionId: string;
|
|
25
25
|
/**
|
|
26
|
-
* Whose turn it is, as a **participant reference
|
|
26
|
+
* Whose turn it is, as a **participant reference**:
|
|
27
27
|
* `character:<id>` for a library character, `envoy:<slug>` for
|
|
28
28
|
* a speaker the genre brings with it. Null on a narrator turn —
|
|
29
29
|
* nobody in particular is speaking. One port answers "who is
|
|
30
30
|
* speaking" for both kinds, so nothing downstream branches on
|
|
31
31
|
* which it received; who *portrays* them this turn is the
|
|
32
|
-
* host's resolver's answer, pinned on the receipt
|
|
32
|
+
* host's resolver's answer, pinned on the receipt.
|
|
33
33
|
*/
|
|
34
34
|
speaker: string;
|
|
35
35
|
/**
|
|
@@ -42,7 +42,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
42
42
|
characterId: string;
|
|
43
43
|
/**
|
|
44
44
|
* Who **pressed** — the reference of whoever sent the message
|
|
45
|
-
* or fired the action this run answers (
|
|
45
|
+
* or fired the action this run answers (2026-09-17).
|
|
46
46
|
*
|
|
47
47
|
* `user:<id>` for a person with no presence in the session,
|
|
48
48
|
* `character:<id>` when they hold a persona here — their
|
|
@@ -61,7 +61,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
61
61
|
* the path (`speaker: 'user:<id>'` writes a user-role row) and
|
|
62
62
|
* no inlet carried the reference to put in it, so a plugin that
|
|
63
63
|
* wanted the player's own line had to ride it on the model's
|
|
64
|
-
* reply as a block (Battleship
|
|
64
|
+
* reply as a block (as the Battleship plugin did).
|
|
65
65
|
*
|
|
66
66
|
* Never null on a turn or a fire: a run has an owner, and the
|
|
67
67
|
* owner is a person. Absent only where the inlet is resolved
|
|
@@ -69,8 +69,8 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
69
69
|
*/
|
|
70
70
|
presser: string;
|
|
71
71
|
/**
|
|
72
|
-
* The cast members a press collected
|
|
73
|
-
* 2026-09-28): `character:<id>` references, for an action
|
|
72
|
+
* The cast members a press collected
|
|
73
|
+
* (2026-09-28): `character:<id>` references, for an action
|
|
74
74
|
* declaring `collects.recipients` — picked in the collect
|
|
75
75
|
* modal, and validated by the host (seated and enabled, no
|
|
76
76
|
* duplicates, within the declared `min` and `max`) before
|
|
@@ -79,7 +79,18 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
79
79
|
*/
|
|
80
80
|
recipients: string;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
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
|
|
83
94
|
* the declared schema keys — the supply side of the round
|
|
84
95
|
* trip: declaration → chat settings → chat row → this port →
|
|
85
96
|
* every downstream node.
|
|
@@ -87,7 +98,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
87
98
|
fields: string;
|
|
88
99
|
/**
|
|
89
100
|
* Text an in-progress reply has already produced, when this turn
|
|
90
|
-
* is an **extend** (ruling 2026-09-08
|
|
101
|
+
* is an **extend** (ruling 2026-09-08; the verb was `continue`
|
|
91
102
|
* until 2026-09-28).
|
|
92
103
|
*
|
|
93
104
|
* Empty on every other turn, which is nearly all of them. It is
|
|
@@ -110,7 +121,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
110
121
|
* swipe or an extend of a message that already exists. Null on
|
|
111
122
|
* a fresh turn, which is nearly all of them.
|
|
112
123
|
*
|
|
113
|
-
* The pipeline owns its reply row
|
|
124
|
+
* The pipeline owns its reply row: a fresh turn's row is
|
|
114
125
|
* created by the spec's own placeholder outlet, and a verb that
|
|
115
126
|
* re-drives an existing message hands that message to the same
|
|
116
127
|
* outlet through this port — so the outlet claims it as the
|
|
@@ -121,7 +132,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
121
132
|
messageId: string;
|
|
122
133
|
/**
|
|
123
134
|
* What the built-ins did to this session since the last reply
|
|
124
|
-
* (
|
|
135
|
+
* (2026-09-16): a list of session changes — `[{ event:
|
|
125
136
|
* 'core:event/message-deleted@1', messageId, at, lost }, …]`,
|
|
126
137
|
* oldest first, capped at the newest fifty — so a pipeline
|
|
127
138
|
* knows the history it is about to read has moved: a line
|
|
@@ -136,15 +147,28 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
136
147
|
* 'core:event/session-changes-truncated@1', dropped }` says
|
|
137
148
|
* how many older ones did not.
|
|
138
149
|
*
|
|
139
|
-
* Was `changes` until 2026-09-16
|
|
150
|
+
* Was `changes` until 2026-09-16: that word is
|
|
140
151
|
* the state ledger's on `resolve-state-changes@1` and
|
|
141
152
|
* `set-state@1` — a list of value changes — and a session
|
|
142
|
-
* change is about a message, never a value (
|
|
153
|
+
* change is about a message, never a value (one word, one meaning).
|
|
143
154
|
*/
|
|
144
155
|
sessionChanges: string;
|
|
145
156
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
157
|
+
* 🚧 The **ruleset the session plays** (2026-10-17, PLAN-sheet
|
|
158
|
+
* §15 C): `{ id, rigour, settings }` — the ruleset's id
|
|
159
|
+
* (`core:ruleset/freeform@1`), the rigour in force (`prose`,
|
|
160
|
+
* `mechanics`, `scripts`) and 🚧 (2026-10-18) its `settings`,
|
|
161
|
+
* every setting at the session's value or its default (Vis
|
|
162
|
+
* Itineris's `casting: 'points'`). Always supplied, for the reason
|
|
163
|
+
* `channel` is: a junction compares against it. A genre that
|
|
164
|
+
* recommends a ruleset branches here instead of assuming it —
|
|
165
|
+
* the Dungeon Crawler's interview writes a kit as plain pieces
|
|
166
|
+
* under Freeform and as the library's rows under Vis Itineris.
|
|
167
|
+
*/
|
|
168
|
+
ruleset: string;
|
|
169
|
+
/**
|
|
170
|
+
* What an action's fire sent along
|
|
171
|
+
* (2026-09-17): a form's answer — `{ choice }` for a choices
|
|
148
172
|
* block, the entered values for a form block — or a widget's
|
|
149
173
|
* `invoke(key, args)` arguments. Absent on a turn and on a
|
|
150
174
|
* bare press. A press on an **addressed** block arrives with
|
|
@@ -164,7 +188,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
164
188
|
form: string;
|
|
165
189
|
/**
|
|
166
190
|
* Which channel the message that triggered this turn is on
|
|
167
|
-
* (
|
|
191
|
+
* (2026-09-17) — the stored string, lane included:
|
|
168
192
|
* `main`, `manuscript`, `phone:3`.
|
|
169
193
|
*
|
|
170
194
|
* `main` when the trigger named none, which is every session
|
|
@@ -183,10 +207,10 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
183
207
|
* what a port carries.
|
|
184
208
|
*/
|
|
185
209
|
/**
|
|
186
|
-
* The session's **settings document
|
|
187
|
-
*
|
|
210
|
+
* The session's **settings document**:
|
|
211
|
+
* every setting a person can see in session settings,
|
|
188
212
|
* resolved once per run by the host and handed in here —
|
|
189
|
-
* title, guests, genre fields (cascade applied
|
|
213
|
+
* title, guests, genre fields (cascade applied),
|
|
190
214
|
* scenario, lorebook, tags, channels, the cast with its
|
|
191
215
|
* envoys, the session-scope rebinds and param overrides per
|
|
192
216
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -196,7 +220,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
196
220
|
session: string;
|
|
197
221
|
channel: string;
|
|
198
222
|
/**
|
|
199
|
-
* **How this turn was reached** (
|
|
223
|
+
* **How this turn was reached** (2026-09-28) —
|
|
200
224
|
* the fired turn entry's `via`: `strategy`, `script` or
|
|
201
225
|
* `voice` for a prepared turn, `pick` for one a person chose,
|
|
202
226
|
* and **`narrate`** when the press was the `core#narrate` turn
|
|
@@ -212,7 +236,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
212
236
|
kind: 'inlet';
|
|
213
237
|
slots?: {
|
|
214
238
|
/**
|
|
215
|
-
* The input hook
|
|
239
|
+
* The input hook: user chains over the triggering text,
|
|
216
240
|
* phase `after` on what this node publishes — which is what
|
|
217
241
|
* lorebook scanning and the prompt's seed see. The stored user
|
|
218
242
|
* message was written before the turn began and stays untouched
|
|
@@ -229,7 +253,7 @@ export declare const userMessage: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
229
253
|
} | undefined;
|
|
230
254
|
}>;
|
|
231
255
|
/**
|
|
232
|
-
* A built-in write's request (
|
|
256
|
+
* A built-in write's request (2026-09-16) — what a person asked core to
|
|
233
257
|
* do to a message or a session: delete, hide, edit, swipe, branch.
|
|
234
258
|
*
|
|
235
259
|
* Core implements every state-altering write and runs each as its own
|
|
@@ -255,10 +279,10 @@ export declare const builtInRequest: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
255
279
|
/** A branch's fork point — the last message the copy keeps. */
|
|
256
280
|
fromMessage: string;
|
|
257
281
|
/**
|
|
258
|
-
* The session's **settings document
|
|
259
|
-
*
|
|
282
|
+
* The session's **settings document**:
|
|
283
|
+
* every setting a person can see in session settings,
|
|
260
284
|
* resolved once per run by the host and handed in here —
|
|
261
|
-
* title, guests, genre fields (cascade applied
|
|
285
|
+
* title, guests, genre fields (cascade applied),
|
|
262
286
|
* scenario, lorebook, tags, channels, the cast with its
|
|
263
287
|
* envoys, the session-scope rebinds and param overrides per
|
|
264
288
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -270,7 +294,7 @@ export declare const builtInRequest: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
270
294
|
title: string;
|
|
271
295
|
/**
|
|
272
296
|
* A person's sprite for the line: `{ set, label }`, or null to
|
|
273
|
-
* clear it
|
|
297
|
+
* clear it — a `sprite-pick@1`, the shape a
|
|
274
298
|
* picker publishes, so `core:outlet/show-sprite@1` takes one
|
|
275
299
|
* shape from both. Read by `core:spec/show-sprite`.
|
|
276
300
|
*/
|
|
@@ -280,7 +304,7 @@ export declare const builtInRequest: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
280
304
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
281
305
|
}>;
|
|
282
306
|
/**
|
|
283
|
-
* A session was just created — the create pipeline's trigger
|
|
307
|
+
* A session was just created — the create pipeline's trigger.
|
|
284
308
|
*
|
|
285
309
|
* The genre's one required pipeline answers this event and seeds the
|
|
286
310
|
* session's initial data: greetings per the genre's shape, initial channels,
|
|
@@ -289,7 +313,7 @@ export declare const builtInRequest: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
289
313
|
* create pipeline does is *finish* what the request began.
|
|
290
314
|
*
|
|
291
315
|
* Not `user-message`: reusing the turn input here welded creation to the
|
|
292
|
-
* chat turn's shape and was wrong
|
|
316
|
+
* chat turn's shape and was wrong. A create run has no triggering
|
|
293
317
|
* text and no speaker; it has a request.
|
|
294
318
|
* @public
|
|
295
319
|
*/
|
|
@@ -304,10 +328,10 @@ export declare const sessionCreated: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
304
328
|
*/
|
|
305
329
|
request: string;
|
|
306
330
|
/**
|
|
307
|
-
* The session's **settings document
|
|
308
|
-
*
|
|
331
|
+
* The session's **settings document**:
|
|
332
|
+
* every setting a person can see in session settings,
|
|
309
333
|
* resolved once per run by the host and handed in here —
|
|
310
|
-
* title, guests, genre fields (cascade applied
|
|
334
|
+
* title, guests, genre fields (cascade applied),
|
|
311
335
|
* scenario, lorebook, tags, channels, the cast with its
|
|
312
336
|
* envoys, the session-scope rebinds and param overrides per
|
|
313
337
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -322,7 +346,7 @@ export declare const sessionCreated: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
322
346
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
323
347
|
}>;
|
|
324
348
|
/**
|
|
325
|
-
* A session event happened
|
|
349
|
+
* A session event happened: the inlet every
|
|
326
350
|
* event-driven spec enters through, and the one core's turn-order spec
|
|
327
351
|
* uses.
|
|
328
352
|
*
|
|
@@ -335,7 +359,7 @@ export declare const sessionCreated: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
335
359
|
* `cause` is why it fired (`EventCause`: user · run · edit · settings ·
|
|
336
360
|
* system), and it is load-bearing beyond this node — the write this spec
|
|
337
361
|
* ends in carries it into `turn-order-changed`, where the auto-advance
|
|
338
|
-
* listener reads it to decide whether to fire the head turn
|
|
362
|
+
* listener reads it to decide whether to fire the head turn. A spec
|
|
339
363
|
* that drops it makes every recompute look like a system event.
|
|
340
364
|
* @experimental
|
|
341
365
|
*/
|
|
@@ -351,20 +375,20 @@ export declare const sessionEvent: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
351
375
|
at: string;
|
|
352
376
|
sessionScope: string;
|
|
353
377
|
/**
|
|
354
|
-
* The session's **settings document
|
|
378
|
+
* The session's **settings document**, resolved
|
|
355
379
|
* once per run by the host after the write that caused this
|
|
356
380
|
* event — so the cast below is the cast as it is now, and no
|
|
357
381
|
* node needs a cast read of its own.
|
|
358
382
|
*/
|
|
359
383
|
session: string;
|
|
360
384
|
/**
|
|
361
|
-
* The settings document's **cast**, on its own port
|
|
362
|
-
*
|
|
385
|
+
* The settings document's **cast**, on its own port:
|
|
386
|
+
* what `core:query/session-cast@1` publishes,
|
|
363
387
|
* envoys included, projected from `session` by the host.
|
|
364
388
|
*
|
|
365
389
|
* A port rather than a path, because an edge is `{ node,
|
|
366
390
|
* port }` and nothing in the graph addresses a field inside
|
|
367
|
-
* a port's value.
|
|
391
|
+
* a port's value. Core's turn-order spec wires the pool's `cast` from the
|
|
368
392
|
* document; this is that wire, with the shape the pool's
|
|
369
393
|
* in-port declares.
|
|
370
394
|
*/
|
|
@@ -411,7 +435,7 @@ export declare const sideCharacterTurn: import("@serene-pub/sdk").Pinned<import(
|
|
|
411
435
|
sessionScope: string;
|
|
412
436
|
sessionId: string;
|
|
413
437
|
/**
|
|
414
|
-
* Who is speaking, as a **participant reference
|
|
438
|
+
* Who is speaking, as a **participant reference**:
|
|
415
439
|
* `character:<id>` when the pick was a library character, null
|
|
416
440
|
* for a free-form name — a name is not a participant reference,
|
|
417
441
|
* and the fact below is where the name lives. On the same
|
|
@@ -440,15 +464,15 @@ export declare const sideCharacterTurn: import("@serene-pub/sdk").Pinned<import(
|
|
|
440
464
|
* run afterwards rather than from the trigger that started it.
|
|
441
465
|
*
|
|
442
466
|
* Was `speaker` until 2026-09-16: that name is the participant
|
|
443
|
-
* reference now (
|
|
467
|
+
* reference now (one word, one meaning), and a fact
|
|
444
468
|
* carrying a free-form name is not a reference to anybody.
|
|
445
469
|
*/
|
|
446
470
|
sideCharacter: string;
|
|
447
471
|
/**
|
|
448
|
-
* The session's **settings document
|
|
449
|
-
*
|
|
472
|
+
* The session's **settings document**:
|
|
473
|
+
* every setting a person can see in session settings,
|
|
450
474
|
* resolved once per run by the host and handed in here —
|
|
451
|
-
* title, guests, genre fields (cascade applied
|
|
475
|
+
* title, guests, genre fields (cascade applied),
|
|
452
476
|
* scenario, lorebook, tags, channels, the cast with its
|
|
453
477
|
* envoys, the session-scope rebinds and param overrides per
|
|
454
478
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -470,20 +494,20 @@ export declare const sideCharacterTurn: import("@serene-pub/sdk").Pinned<import(
|
|
|
470
494
|
/**
|
|
471
495
|
* The built-ins' session changes since the last reply, on the
|
|
472
496
|
* same terms as `user-message@1`'s port of this name (was
|
|
473
|
-
* `changes` until 2026-09-16
|
|
497
|
+
* `changes` until 2026-09-16).
|
|
474
498
|
*/
|
|
475
499
|
sessionChanges: string;
|
|
476
500
|
}, import("@serene-pub/sdk").PortDecl, "core:inlet/side-character-turn@1"> & {
|
|
477
501
|
kind: 'inlet';
|
|
478
502
|
slots?: {
|
|
479
503
|
/**
|
|
480
|
-
* The input hook
|
|
504
|
+
* The input hook, on the same terms as `user-message@1`:
|
|
481
505
|
* user chains over the triggering text, phase `after` on what this
|
|
482
506
|
* node publishes, which is what retrieval and the prompt see.
|
|
483
507
|
*
|
|
484
508
|
* ⚠ `extras` is what makes this the **new-name hook**. The three
|
|
485
509
|
* names below are read-only context supplied by the host at the
|
|
486
|
-
* hook
|
|
510
|
+
* hook and are part of the fixed choice set the script
|
|
487
511
|
* editor offers — so "this name is new" is a declared read rather
|
|
488
512
|
* than a name typed on faith. `speakerIsKnown` is `false` exactly
|
|
489
513
|
* when a free-form name matched nothing in the session's lorebook.
|
|
@@ -513,10 +537,10 @@ export declare const formAddressed: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
513
537
|
sessionScope: string;
|
|
514
538
|
sessionId: string;
|
|
515
539
|
/**
|
|
516
|
-
* The session's **settings document
|
|
517
|
-
*
|
|
540
|
+
* The session's **settings document**:
|
|
541
|
+
* every setting a person can see in session settings,
|
|
518
542
|
* resolved once per run by the host and handed in here —
|
|
519
|
-
* title, guests, genre fields (cascade applied
|
|
543
|
+
* title, guests, genre fields (cascade applied),
|
|
520
544
|
* scenario, lorebook, tags, channels, the cast with its
|
|
521
545
|
* envoys, the session-scope rebinds and param overrides per
|
|
522
546
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -542,15 +566,93 @@ export declare const formAddressed: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
542
566
|
kind: 'inlet';
|
|
543
567
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
544
568
|
}>;
|
|
569
|
+
/**
|
|
570
|
+
* 🚧 A person sent a message: the save pipeline's trigger. **A person's
|
|
571
|
+
* message is always saved through the pipeline** — the host checks the door
|
|
572
|
+
* (access, the genre, the persona, the length, the channel) and dispatches
|
|
573
|
+
* `core:event/message-offered@1`; the bound spec writes the row. Core's
|
|
574
|
+
* default, `core:spec/save-message`, is this inlet and one
|
|
575
|
+
* `create-message@1` with `role: 'user'`.
|
|
576
|
+
*
|
|
577
|
+
* The payload is `core:shape/message-offered@1`; the ports below are it
|
|
578
|
+
* taken apart. No shape and no lock here: core's default serves every genre,
|
|
579
|
+
* and a genre's own save declares its own `(genre, event)`.
|
|
580
|
+
* @experimental
|
|
581
|
+
*/
|
|
582
|
+
export declare const messageOffered: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
583
|
+
main: string;
|
|
584
|
+
sessionScope: string;
|
|
585
|
+
sessionId: string;
|
|
586
|
+
/** The session's **settings document**, as on every session inlet. */
|
|
587
|
+
session: string;
|
|
588
|
+
/** The message as written. */
|
|
589
|
+
text: string;
|
|
590
|
+
/** The person sending — `user:<id>`, the run's owner. */
|
|
591
|
+
person: string;
|
|
592
|
+
/**
|
|
593
|
+
* Who the message speaks as: `character:<id>` (the person's
|
|
594
|
+
* persona), `player-seat:<id>` (their card-less seat), or null —
|
|
595
|
+
* the person as themselves. Wired to `create-message@1`'s
|
|
596
|
+
* `speaker`.
|
|
597
|
+
*/
|
|
598
|
+
speaker: string;
|
|
599
|
+
/** The channel it was written on, canonical. */
|
|
600
|
+
channel: string;
|
|
601
|
+
/** The person's ready tray items, sent as its attachments — `create-message@1`'s `trayItems`. */
|
|
602
|
+
trayItemIds: string;
|
|
603
|
+
/** The message it answers, when the composer named one; null otherwise. */
|
|
604
|
+
replyTo: string;
|
|
605
|
+
/** Why it fired (`EventCause`) — a person's send, `{ kind: 'user', userId }`. */
|
|
606
|
+
cause: string;
|
|
607
|
+
}, import("@serene-pub/sdk").PortDecl, "core:inlet/message-offered@1"> & {
|
|
608
|
+
kind: 'inlet';
|
|
609
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
610
|
+
}>;
|
|
611
|
+
/**
|
|
612
|
+
* 🚧 A person asked for a message to be deleted: a **deletion pipeline**'s
|
|
613
|
+
* trigger (RF fix 5). Deletion requires a pipeline, so the genre manages it:
|
|
614
|
+
* the host checks the door (the message is the session's, the person may act
|
|
615
|
+
* on it) and dispatches `core:event/message-deletion-asked@1`; the pipeline
|
|
616
|
+
* registered there ends in `core:outlet/delete-message@1`, handed the
|
|
617
|
+
* deletion whole on its `asked` port
|
|
618
|
+
* (`C.deleteMessage.v1({ asked: $.input.main })`): it deletes THE message
|
|
619
|
+
* the event carried and takes back everything it changed — and the pipeline
|
|
620
|
+
* may put steps of its own around it. Core ships no such pipeline: with none
|
|
621
|
+
* registered, no message offers Delete.
|
|
622
|
+
*
|
|
623
|
+
* The payload is `core:shape/deletion-asked@1`, published whole on `main`
|
|
624
|
+
* (the delete's `asked`); the ports beside it are it taken apart, for the
|
|
625
|
+
* steps around the delete. No lock: registrations mount a pipeline on its
|
|
626
|
+
* event.
|
|
627
|
+
* @experimental
|
|
628
|
+
*/
|
|
629
|
+
export declare const messageDeletionAsked: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
630
|
+
main: string;
|
|
631
|
+
sessionScope: string;
|
|
632
|
+
sessionId: string;
|
|
633
|
+
/** The session's **settings document**, as on every session inlet. */
|
|
634
|
+
session: string;
|
|
635
|
+
/** The message the person asked to delete (the delete itself reads it off `main`). */
|
|
636
|
+
messageId: string;
|
|
637
|
+
/** Its channel, canonical. */
|
|
638
|
+
channel: string;
|
|
639
|
+
/** Who asked — `user:<id>`, the run's owner. */
|
|
640
|
+
person: string;
|
|
641
|
+
/** Why it fired (`EventCause`) — a person's press, `{ kind: 'user', userId }`. */
|
|
642
|
+
cause: string;
|
|
643
|
+
}, import("@serene-pub/sdk").PortDecl, "core:inlet/message-deletion-asked@1"> & {
|
|
644
|
+
kind: 'inlet';
|
|
645
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
646
|
+
}>;
|
|
545
647
|
/** @internal */
|
|
546
648
|
export declare const summarizeRequest: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
547
649
|
main: string;
|
|
548
650
|
scope: string;
|
|
549
651
|
/**
|
|
550
|
-
* The session's **settings document
|
|
551
|
-
*
|
|
652
|
+
* The session's **settings document**:
|
|
653
|
+
* every setting a person can see in session settings,
|
|
552
654
|
* resolved once per run by the host and handed in here —
|
|
553
|
-
* title, guests, genre fields (cascade applied
|
|
655
|
+
* title, guests, genre fields (cascade applied),
|
|
554
656
|
* scenario, lorebook, tags, channels, the cast with its
|
|
555
657
|
* envoys, the session-scope rebinds and param overrides per
|
|
556
658
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -563,4 +665,147 @@ export declare const summarizeRequest: import("@serene-pub/sdk").Pinned<import("
|
|
|
563
665
|
kind: 'inlet';
|
|
564
666
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
565
667
|
}>;
|
|
668
|
+
/**
|
|
669
|
+
* 🚧 A person pressed an action on a **card** — the Characters view, not a
|
|
670
|
+
* session: *Fill empty sprites* on the
|
|
671
|
+
* Sprites tab, and *Generate portrait* on the Gallery tab (`count`, widened
|
|
672
|
+
* in place 2026-10-12).
|
|
673
|
+
*
|
|
674
|
+
* ## No session
|
|
675
|
+
*
|
|
676
|
+
* A card action runs with no session in scope: nothing here is a session's,
|
|
677
|
+
* no live row is filled, no session event is written. The host checks the
|
|
678
|
+
* person may act on the card (its owner, or an admin) before the run starts,
|
|
679
|
+
* and resolves the card ONCE, here — its likeness as text and as the
|
|
680
|
+
* reference image — so no node re-reads the character for a setting.
|
|
681
|
+
*
|
|
682
|
+
* ## The form's answers
|
|
683
|
+
*
|
|
684
|
+
* `fields` is the whole of what the action's form collected. The fields a
|
|
685
|
+
* core action asks are also their own ports (`setName`, `labels`) because a
|
|
686
|
+
* data edge addresses a port, never a field inside one; another card action
|
|
687
|
+
* widens this in place with its own, every one optional.
|
|
688
|
+
*
|
|
689
|
+
* No lock and no shape: a card action is not a session mode, and no genre
|
|
690
|
+
* owns a card.
|
|
691
|
+
* @experimental
|
|
692
|
+
*/
|
|
693
|
+
export declare const cardAction: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
694
|
+
main: string;
|
|
695
|
+
/** The card the action was pressed on. */
|
|
696
|
+
characterId: string;
|
|
697
|
+
/** The card's likeness prompt — its look as a tag line; empty when unset. */
|
|
698
|
+
likeness: string;
|
|
699
|
+
/** The card's likeness negative; empty when unset. */
|
|
700
|
+
likenessNegative: string;
|
|
701
|
+
/**
|
|
702
|
+
* The likeness image as a one-item media list (the likeness
|
|
703
|
+
* image, else the avatar); empty when the card has neither.
|
|
704
|
+
* What a picture step's `references` port takes.
|
|
705
|
+
*/
|
|
706
|
+
likenessImage: string;
|
|
707
|
+
/** The form's answers, whole. */
|
|
708
|
+
fields: string;
|
|
709
|
+
/** Sprite set fill: the sprite set to fill, by name. */
|
|
710
|
+
setName: string;
|
|
711
|
+
/** Sprite set fill: the sprite labels to draw. */
|
|
712
|
+
labels: string;
|
|
713
|
+
/** 🚧 Portrait: how many pictures to offer (a whole number, 1–4 on the form). */
|
|
714
|
+
count: string;
|
|
715
|
+
}, import("@serene-pub/sdk").PortDecl, "core:inlet/card-action@1"> & {
|
|
716
|
+
kind: 'inlet';
|
|
717
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
718
|
+
}>;
|
|
719
|
+
/**
|
|
720
|
+
* 🚧 Where a **routine** enters — a pipeline registered on a cadence
|
|
721
|
+
* (`register(everyNTurns({ n: 5 }), storySweep)`), run when the cadence says
|
|
722
|
+
* so. Nothing opinionated (R9): a routine's pipeline gets the session, the
|
|
723
|
+
* metadata of where the routine resides, and the parameters of the moment
|
|
724
|
+
* its cadence listened to — and queries everything else through the SDK.
|
|
725
|
+
*
|
|
726
|
+
* · `session` / `sessionScope` / `sessionId` — the session, always: routines
|
|
727
|
+
* live in sessions (R9).
|
|
728
|
+
* · `routine` — `RoutineFiring`: the registration key, the preset, the
|
|
729
|
+
* cadence and its option values, the mode, the turn / round / scene it
|
|
730
|
+
* fired on, and room for a note (§11-5).
|
|
731
|
+
* · `cause` — `RoutineCause`: what the moment carries, whole.
|
|
732
|
+
* · `ruleset` — the ruleset the session plays, `{ id, rigour, settings }`,
|
|
733
|
+
* as the user-message inlet carries it (2026-10-20, lane 3): where the
|
|
734
|
+
* session resides, not what the moment carried — a reckoning branches on
|
|
735
|
+
* `rigour` (`scripts` routes the deltas to the ruleset handler).
|
|
736
|
+
* · `message` · `speaker` · `actor` · `castMember` · `subject` · `user` ·
|
|
737
|
+
* `slot` · `clock` · `scene` — the same moment's entities, one port each,
|
|
738
|
+
* filled when the moment carries them. Ports are flat (a reference cannot
|
|
739
|
+
* reach into `cause`), so these are what fit reads: a routine whose steps
|
|
740
|
+
* read `subject` takes only a cadence whose moment carries one (R12).
|
|
741
|
+
* @experimental
|
|
742
|
+
* @ruling R9, R12, §11-5
|
|
743
|
+
*/
|
|
744
|
+
export declare const routine: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
745
|
+
main: string;
|
|
746
|
+
session: string;
|
|
747
|
+
sessionScope: string;
|
|
748
|
+
sessionId: string;
|
|
749
|
+
routine: string;
|
|
750
|
+
cause: string;
|
|
751
|
+
ruleset: string;
|
|
752
|
+
message: string;
|
|
753
|
+
speaker: string;
|
|
754
|
+
actor: string;
|
|
755
|
+
castMember: string;
|
|
756
|
+
subject: string;
|
|
757
|
+
user: string;
|
|
758
|
+
slot: string;
|
|
759
|
+
clock: string;
|
|
760
|
+
scene: string;
|
|
761
|
+
}, import("@serene-pub/sdk").PortDecl, "core:inlet/routine@1"> & {
|
|
762
|
+
kind: 'inlet';
|
|
763
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
764
|
+
}>;
|
|
765
|
+
/**
|
|
766
|
+
* 🚧 Where the one generic **rules-action** pipeline enters
|
|
767
|
+
* (`core:spec/rules-action`): a person invoked one of the functions the
|
|
768
|
+
* session's ruleset uses — an **invokable** function, which the host offers
|
|
769
|
+
* as an action registration of that pipeline, its label and form the
|
|
770
|
+
* function header's (`jsonSchemaOf(fn, { part: 'invokable' })`).
|
|
771
|
+
*
|
|
772
|
+
* · `function` — the function's key in the ruleset (`rest`, `draw`), as
|
|
773
|
+
* its reference names it;
|
|
774
|
+
* · `answer` — what its form collected (null when it asks nothing);
|
|
775
|
+
* · `actor` — who invokes it; `aimedAt` — at whom, when anyone;
|
|
776
|
+
* · `mode` — the action registration's mode in force: `full` applies what
|
|
777
|
+
* the function changes, `review` holds each change for the session's
|
|
778
|
+
* owner (absent: `full`);
|
|
779
|
+
* · `session` / `sessionScope` / `sessionId` / `ruleset` — the session, as
|
|
780
|
+
* the routine inlet carries it;
|
|
781
|
+
* · `main` — the payload whole (`{ session, actor, function, answer,
|
|
782
|
+
* aimedAt }`): what `ruleset-resolve`'s `actions` port takes to run the
|
|
783
|
+
* function with its answer.
|
|
784
|
+
*
|
|
785
|
+
* No lock and no shape: every genre's session may play a ruleset with
|
|
786
|
+
* actions, and the pipeline is the same for all of them.
|
|
787
|
+
* @experimental
|
|
788
|
+
* @ruling PLAN-rulesets-functions D6
|
|
789
|
+
*/
|
|
790
|
+
export declare const rulesAction: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
791
|
+
main: string;
|
|
792
|
+
session: string;
|
|
793
|
+
sessionScope: string;
|
|
794
|
+
sessionId: string;
|
|
795
|
+
/** The ruleset the session plays, `{ id, rigour, settings }`. */
|
|
796
|
+
ruleset: string;
|
|
797
|
+
/** Who invokes the function. */
|
|
798
|
+
actor: string;
|
|
799
|
+
/** The function's key in the session's ruleset. */
|
|
800
|
+
function: string;
|
|
801
|
+
/** What the function's form collected; null when it asks nothing. */
|
|
802
|
+
answer: string;
|
|
803
|
+
/** Whom it is aimed at, when anyone. */
|
|
804
|
+
aimedAt: string;
|
|
805
|
+
/** The action registration's mode: `full` or `review`. */
|
|
806
|
+
mode: string;
|
|
807
|
+
}, import("@serene-pub/sdk").PortDecl, "core:inlet/rules-action@1"> & {
|
|
808
|
+
kind: 'inlet';
|
|
809
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
810
|
+
}>;
|
|
566
811
|
//# sourceMappingURL=inlets.d.ts.map
|