@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/inlets.js
CHANGED
|
@@ -25,20 +25,21 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
25
25
|
// Display only, both keys: stripped from the content hash, refreshed on
|
|
26
26
|
// existing rows by the boot sync β so copyediting this is never a bump.
|
|
27
27
|
i18n: {
|
|
28
|
-
|
|
28
|
+
// π§ Was "Chat" until 2026-10-19 β the word is the assistant genre's now (R1).
|
|
29
|
+
name: { en: 'User message' },
|
|
29
30
|
description: {
|
|
30
|
-
en: '
|
|
31
|
+
en: "A person's message in a session: what they wrote, who answers it, and everything the turn reads about the session.",
|
|
31
32
|
},
|
|
32
33
|
},
|
|
33
34
|
/**
|
|
34
|
-
* The standard chat's shape
|
|
35
|
-
* This block is what makes the input type a **chat mode** (the
|
|
35
|
+
* The standard chat's shape β today's behaviour, *stated*.
|
|
36
|
+
* This block is what makes the input type a **chat mode** (the
|
|
36
37
|
* floor: always present, special in availability and nothing else).
|
|
37
38
|
* Both participant systems are optional and unbounded above, lorebooks
|
|
38
39
|
* attach when wanted, the composer is a text box, and the seed line
|
|
39
40
|
* carries the speaking character's name. Duties and triggers are not
|
|
40
41
|
* here on purpose: the shape is owner-only, and the narrate button is
|
|
41
|
-
* the narrate spec's contribution, not this type's knowledge
|
|
42
|
+
* the narrate spec's contribution, not this type's knowledge.
|
|
42
43
|
*/
|
|
43
44
|
sessionShape: {
|
|
44
45
|
characters: { min: 0 },
|
|
@@ -54,7 +55,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
54
55
|
},
|
|
55
56
|
slots: {
|
|
56
57
|
/**
|
|
57
|
-
* The input hook
|
|
58
|
+
* The input hook: user chains over the triggering text,
|
|
58
59
|
* phase `after` on what this node publishes β which is what
|
|
59
60
|
* lorebook scanning and the prompt's seed see. The stored user
|
|
60
61
|
* message was written before the turn began and stays untouched
|
|
@@ -69,6 +70,20 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
69
70
|
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.',
|
|
70
71
|
},
|
|
71
72
|
},
|
|
73
|
+
/**
|
|
74
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
75
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
76
|
+
*/
|
|
77
|
+
entities: {
|
|
78
|
+
sessionScope: 'session',
|
|
79
|
+
sessionId: 'session',
|
|
80
|
+
session: 'session',
|
|
81
|
+
fields: 'session',
|
|
82
|
+
speaker: 'speaker',
|
|
83
|
+
characterId: 'speaker',
|
|
84
|
+
presser: 'actor',
|
|
85
|
+
recipients: 'cast-member',
|
|
86
|
+
},
|
|
72
87
|
ports: {
|
|
73
88
|
out: {
|
|
74
89
|
main: S.json,
|
|
@@ -76,13 +91,13 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
76
91
|
sessionScope: S.sessionScope,
|
|
77
92
|
sessionId: S.rowIds,
|
|
78
93
|
/**
|
|
79
|
-
* Whose turn it is, as a **participant reference
|
|
94
|
+
* Whose turn it is, as a **participant reference**:
|
|
80
95
|
* `character:<id>` for a library character, `envoy:<slug>` for
|
|
81
96
|
* a speaker the genre brings with it. Null on a narrator turn β
|
|
82
97
|
* nobody in particular is speaking. One port answers "who is
|
|
83
98
|
* speaking" for both kinds, so nothing downstream branches on
|
|
84
99
|
* which it received; who *portrays* them this turn is the
|
|
85
|
-
* host's resolver's answer, pinned on the receipt
|
|
100
|
+
* host's resolver's answer, pinned on the receipt.
|
|
86
101
|
*/
|
|
87
102
|
speaker: S.participantRef,
|
|
88
103
|
/**
|
|
@@ -95,7 +110,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
95
110
|
characterId: S.rowIds,
|
|
96
111
|
/**
|
|
97
112
|
* Who **pressed** β the reference of whoever sent the message
|
|
98
|
-
* or fired the action this run answers (
|
|
113
|
+
* or fired the action this run answers (2026-09-17).
|
|
99
114
|
*
|
|
100
115
|
* `user:<id>` for a person with no presence in the session,
|
|
101
116
|
* `character:<id>` when they hold a persona here β their
|
|
@@ -114,7 +129,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
114
129
|
* the path (`speaker: 'user:<id>'` writes a user-role row) and
|
|
115
130
|
* no inlet carried the reference to put in it, so a plugin that
|
|
116
131
|
* wanted the player's own line had to ride it on the model's
|
|
117
|
-
* reply as a block (Battleship
|
|
132
|
+
* reply as a block (as the Battleship plugin did).
|
|
118
133
|
*
|
|
119
134
|
* Never null on a turn or a fire: a run has an owner, and the
|
|
120
135
|
* owner is a person. Absent only where the inlet is resolved
|
|
@@ -122,8 +137,8 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
122
137
|
*/
|
|
123
138
|
presser: S.participantRef,
|
|
124
139
|
/**
|
|
125
|
-
* The cast members a press collected
|
|
126
|
-
* 2026-09-28): `character:<id>` references, for an action
|
|
140
|
+
* The cast members a press collected
|
|
141
|
+
* (2026-09-28): `character:<id>` references, for an action
|
|
127
142
|
* declaring `collects.recipients` β picked in the collect
|
|
128
143
|
* modal, and validated by the host (seated and enabled, no
|
|
129
144
|
* duplicates, within the declared `min` and `max`) before
|
|
@@ -132,7 +147,18 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
132
147
|
*/
|
|
133
148
|
recipients: S.participantRefs,
|
|
134
149
|
/**
|
|
135
|
-
*
|
|
150
|
+
* π§ The **clock step** a press collected (2026-10-13):
|
|
151
|
+
* `{ by, unit }` β a whole number other than zero, signed
|
|
152
|
+
* (back is negative), and one of the story-time units β for
|
|
153
|
+
* an action declaring `collects.clockStep`, picked on the
|
|
154
|
+
* collect modal's stepper and checked by the host before the
|
|
155
|
+
* run starts. Absent on a turn and on every press of an
|
|
156
|
+
* action that collects none. Core's *Time passesβ¦* hands it
|
|
157
|
+
* to `core:task/clock-step@1`.
|
|
158
|
+
*/
|
|
159
|
+
clockStep: S.json,
|
|
160
|
+
/**
|
|
161
|
+
* Values for the mode's declared `fields`, filtered to
|
|
136
162
|
* the declared schema keys β the supply side of the round
|
|
137
163
|
* trip: declaration β chat settings β chat row β this port β
|
|
138
164
|
* every downstream node.
|
|
@@ -140,7 +166,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
140
166
|
fields: S.json,
|
|
141
167
|
/**
|
|
142
168
|
* Text an in-progress reply has already produced, when this turn
|
|
143
|
-
* is an **extend** (ruling 2026-09-08
|
|
169
|
+
* is an **extend** (ruling 2026-09-08; the verb was `continue`
|
|
144
170
|
* until 2026-09-28).
|
|
145
171
|
*
|
|
146
172
|
* Empty on every other turn, which is nearly all of them. It is
|
|
@@ -163,7 +189,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
163
189
|
* swipe or an extend of a message that already exists. Null on
|
|
164
190
|
* a fresh turn, which is nearly all of them.
|
|
165
191
|
*
|
|
166
|
-
* The pipeline owns its reply row
|
|
192
|
+
* The pipeline owns its reply row: a fresh turn's row is
|
|
167
193
|
* created by the spec's own placeholder outlet, and a verb that
|
|
168
194
|
* re-drives an existing message hands that message to the same
|
|
169
195
|
* outlet through this port β so the outlet claims it as the
|
|
@@ -174,7 +200,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
174
200
|
messageId: S.rowIds,
|
|
175
201
|
/**
|
|
176
202
|
* What the built-ins did to this session since the last reply
|
|
177
|
-
* (
|
|
203
|
+
* (2026-09-16): a list of session changes β `[{ event:
|
|
178
204
|
* 'core:event/message-deleted@1', messageId, at, lost }, β¦]`,
|
|
179
205
|
* oldest first, capped at the newest fifty β so a pipeline
|
|
180
206
|
* knows the history it is about to read has moved: a line
|
|
@@ -189,15 +215,28 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
189
215
|
* 'core:event/session-changes-truncated@1', dropped }` says
|
|
190
216
|
* how many older ones did not.
|
|
191
217
|
*
|
|
192
|
-
* Was `changes` until 2026-09-16
|
|
218
|
+
* Was `changes` until 2026-09-16: that word is
|
|
193
219
|
* the state ledger's on `resolve-state-changes@1` and
|
|
194
220
|
* `set-state@1` β a list of value changes β and a session
|
|
195
|
-
* change is about a message, never a value (
|
|
221
|
+
* change is about a message, never a value (one word, one meaning).
|
|
196
222
|
*/
|
|
197
223
|
sessionChanges: S.json,
|
|
198
224
|
/**
|
|
199
|
-
*
|
|
200
|
-
*
|
|
225
|
+
* π§ The **ruleset the session plays** (2026-10-17, PLAN-sheet
|
|
226
|
+
* Β§15 C): `{ id, rigour, settings }` β the ruleset's id
|
|
227
|
+
* (`core:ruleset/freeform@1`), the rigour in force (`prose`,
|
|
228
|
+
* `mechanics`, `scripts`) and π§ (2026-10-18) its `settings`,
|
|
229
|
+
* every setting at the session's value or its default (Vis
|
|
230
|
+
* Itineris's `casting: 'points'`). Always supplied, for the reason
|
|
231
|
+
* `channel` is: a junction compares against it. A genre that
|
|
232
|
+
* recommends a ruleset branches here instead of assuming it β
|
|
233
|
+
* the Dungeon Crawler's interview writes a kit as plain pieces
|
|
234
|
+
* under Freeform and as the library's rows under Vis Itineris.
|
|
235
|
+
*/
|
|
236
|
+
ruleset: S.json,
|
|
237
|
+
/**
|
|
238
|
+
* What an action's fire sent along
|
|
239
|
+
* (2026-09-17): a form's answer β `{ choice }` for a choices
|
|
201
240
|
* block, the entered values for a form block β or a widget's
|
|
202
241
|
* `invoke(key, args)` arguments. Absent on a turn and on a
|
|
203
242
|
* bare press. A press on an **addressed** block arrives with
|
|
@@ -217,7 +256,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
217
256
|
form: S.json,
|
|
218
257
|
/**
|
|
219
258
|
* Which channel the message that triggered this turn is on
|
|
220
|
-
* (
|
|
259
|
+
* (2026-09-17) β the stored string, lane included:
|
|
221
260
|
* `main`, `manuscript`, `phone:3`.
|
|
222
261
|
*
|
|
223
262
|
* `main` when the trigger named none, which is every session
|
|
@@ -236,10 +275,10 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
236
275
|
* what a port carries.
|
|
237
276
|
*/
|
|
238
277
|
/**
|
|
239
|
-
* The session's **settings document
|
|
240
|
-
*
|
|
278
|
+
* The session's **settings document**:
|
|
279
|
+
* every setting a person can see in session settings,
|
|
241
280
|
* resolved once per run by the host and handed in here β
|
|
242
|
-
* title, guests, genre fields (cascade applied
|
|
281
|
+
* title, guests, genre fields (cascade applied),
|
|
243
282
|
* scenario, lorebook, tags, channels, the cast with its
|
|
244
283
|
* envoys, the session-scope rebinds and param overrides per
|
|
245
284
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -249,7 +288,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
249
288
|
session: S.sessionSettings,
|
|
250
289
|
channel: S.text,
|
|
251
290
|
/**
|
|
252
|
-
* **How this turn was reached** (
|
|
291
|
+
* **How this turn was reached** (2026-09-28) β
|
|
253
292
|
* the fired turn entry's `via`: `strategy`, `script` or
|
|
254
293
|
* `voice` for a prepared turn, `pick` for one a person chose,
|
|
255
294
|
* and **`narrate`** when the press was the `core#narrate` turn
|
|
@@ -265,7 +304,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
265
304
|
},
|
|
266
305
|
}));
|
|
267
306
|
/**
|
|
268
|
-
* A built-in write's request (
|
|
307
|
+
* A built-in write's request (2026-09-16) β what a person asked core to
|
|
269
308
|
* do to a message or a session: delete, hide, edit, swipe, branch.
|
|
270
309
|
*
|
|
271
310
|
* Core implements every state-altering write and runs each as its own
|
|
@@ -278,6 +317,15 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
278
317
|
*/
|
|
279
318
|
export const builtInRequest = pin(describeInletDefinition({
|
|
280
319
|
id: 'core:inlet/built-in-request@1',
|
|
320
|
+
/**
|
|
321
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
322
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
323
|
+
*/
|
|
324
|
+
entities: {
|
|
325
|
+
sessionScope: 'session',
|
|
326
|
+
sessionId: 'session',
|
|
327
|
+
session: 'session',
|
|
328
|
+
},
|
|
281
329
|
ports: {
|
|
282
330
|
out: {
|
|
283
331
|
main: S.json,
|
|
@@ -294,10 +342,10 @@ export const builtInRequest = pin(describeInletDefinition({
|
|
|
294
342
|
/** A branch's fork point β the last message the copy keeps. */
|
|
295
343
|
fromMessage: S.rowIds,
|
|
296
344
|
/**
|
|
297
|
-
* The session's **settings document
|
|
298
|
-
*
|
|
345
|
+
* The session's **settings document**:
|
|
346
|
+
* every setting a person can see in session settings,
|
|
299
347
|
* resolved once per run by the host and handed in here β
|
|
300
|
-
* title, guests, genre fields (cascade applied
|
|
348
|
+
* title, guests, genre fields (cascade applied),
|
|
301
349
|
* scenario, lorebook, tags, channels, the cast with its
|
|
302
350
|
* envoys, the session-scope rebinds and param overrides per
|
|
303
351
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -309,7 +357,7 @@ export const builtInRequest = pin(describeInletDefinition({
|
|
|
309
357
|
title: S.text,
|
|
310
358
|
/**
|
|
311
359
|
* A person's sprite for the line: `{ set, label }`, or null to
|
|
312
|
-
* clear it
|
|
360
|
+
* clear it β a `sprite-pick@1`, the shape a
|
|
313
361
|
* picker publishes, so `core:outlet/show-sprite@1` takes one
|
|
314
362
|
* shape from both. Read by `core:spec/show-sprite`.
|
|
315
363
|
*/
|
|
@@ -321,7 +369,7 @@ export const builtInRequest = pin(describeInletDefinition({
|
|
|
321
369
|
// event emitted (plans/29 Β§4c 4.1). Culled 2026-09-16 (R-4): an existing
|
|
322
370
|
// message's id arrives on `core:inlet/user-message@1`'s `messageId` port.
|
|
323
371
|
/**
|
|
324
|
-
* A session was just created β the create pipeline's trigger
|
|
372
|
+
* A session was just created β the create pipeline's trigger.
|
|
325
373
|
*
|
|
326
374
|
* The genre's one required pipeline answers this event and seeds the
|
|
327
375
|
* session's initial data: greetings per the genre's shape, initial channels,
|
|
@@ -330,7 +378,7 @@ export const builtInRequest = pin(describeInletDefinition({
|
|
|
330
378
|
* create pipeline does is *finish* what the request began.
|
|
331
379
|
*
|
|
332
380
|
* Not `user-message`: reusing the turn input here welded creation to the
|
|
333
|
-
* chat turn's shape and was wrong
|
|
381
|
+
* chat turn's shape and was wrong. A create run has no triggering
|
|
334
382
|
* text and no speaker; it has a request.
|
|
335
383
|
* @public
|
|
336
384
|
*/
|
|
@@ -342,6 +390,16 @@ export const sessionCreated = pin(describeInletDefinition({
|
|
|
342
390
|
en: 'Fires once, when a session of this genre is created β the pipeline that answers it seeds greetings, channels and initial state.',
|
|
343
391
|
},
|
|
344
392
|
},
|
|
393
|
+
/**
|
|
394
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
395
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
396
|
+
*/
|
|
397
|
+
entities: {
|
|
398
|
+
sessionScope: 'session',
|
|
399
|
+
sessionId: 'session',
|
|
400
|
+
session: 'session',
|
|
401
|
+
fields: 'session',
|
|
402
|
+
},
|
|
345
403
|
ports: {
|
|
346
404
|
out: {
|
|
347
405
|
main: S.json,
|
|
@@ -354,10 +412,10 @@ export const sessionCreated = pin(describeInletDefinition({
|
|
|
354
412
|
*/
|
|
355
413
|
request: S.json,
|
|
356
414
|
/**
|
|
357
|
-
* The session's **settings document
|
|
358
|
-
*
|
|
415
|
+
* The session's **settings document**:
|
|
416
|
+
* every setting a person can see in session settings,
|
|
359
417
|
* resolved once per run by the host and handed in here β
|
|
360
|
-
* title, guests, genre fields (cascade applied
|
|
418
|
+
* title, guests, genre fields (cascade applied),
|
|
361
419
|
* scenario, lorebook, tags, channels, the cast with its
|
|
362
420
|
* envoys, the session-scope rebinds and param overrides per
|
|
363
421
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -371,7 +429,7 @@ export const sessionCreated = pin(describeInletDefinition({
|
|
|
371
429
|
},
|
|
372
430
|
}));
|
|
373
431
|
/**
|
|
374
|
-
* A session event happened
|
|
432
|
+
* A session event happened: the inlet every
|
|
375
433
|
* event-driven spec enters through, and the one core's turn-order spec
|
|
376
434
|
* uses.
|
|
377
435
|
*
|
|
@@ -384,7 +442,7 @@ export const sessionCreated = pin(describeInletDefinition({
|
|
|
384
442
|
* `cause` is why it fired (`EventCause`: user Β· run Β· edit Β· settings Β·
|
|
385
443
|
* system), and it is load-bearing beyond this node β the write this spec
|
|
386
444
|
* ends in carries it into `turn-order-changed`, where the auto-advance
|
|
387
|
-
* listener reads it to decide whether to fire the head turn
|
|
445
|
+
* listener reads it to decide whether to fire the head turn. A spec
|
|
388
446
|
* that drops it makes every recompute look like a system event.
|
|
389
447
|
* @experimental
|
|
390
448
|
*/
|
|
@@ -404,6 +462,16 @@ export const sessionEvent = pin(describeInletDefinition({
|
|
|
404
462
|
* payload is the envelope's `payload`.
|
|
405
463
|
*/
|
|
406
464
|
payloads: [S.sessionChange, S.castChange, S.annexChange, S.recordedEvent],
|
|
465
|
+
/**
|
|
466
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
467
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
468
|
+
*/
|
|
469
|
+
entities: {
|
|
470
|
+
sessionId: 'session',
|
|
471
|
+
sessionScope: 'session',
|
|
472
|
+
session: 'session',
|
|
473
|
+
cast: 'session',
|
|
474
|
+
},
|
|
407
475
|
ports: {
|
|
408
476
|
out: {
|
|
409
477
|
/** The event id that fired β `core:event/message-completed@1`. */
|
|
@@ -417,20 +485,20 @@ export const sessionEvent = pin(describeInletDefinition({
|
|
|
417
485
|
at: S.json,
|
|
418
486
|
sessionScope: S.sessionScope,
|
|
419
487
|
/**
|
|
420
|
-
* The session's **settings document
|
|
488
|
+
* The session's **settings document**, resolved
|
|
421
489
|
* once per run by the host after the write that caused this
|
|
422
490
|
* event β so the cast below is the cast as it is now, and no
|
|
423
491
|
* node needs a cast read of its own.
|
|
424
492
|
*/
|
|
425
493
|
session: S.sessionSettings,
|
|
426
494
|
/**
|
|
427
|
-
* The settings document's **cast**, on its own port
|
|
428
|
-
*
|
|
495
|
+
* The settings document's **cast**, on its own port:
|
|
496
|
+
* what `core:query/session-cast@1` publishes,
|
|
429
497
|
* envoys included, projected from `session` by the host.
|
|
430
498
|
*
|
|
431
499
|
* A port rather than a path, because an edge is `{ node,
|
|
432
500
|
* port }` and nothing in the graph addresses a field inside
|
|
433
|
-
* a port's value.
|
|
501
|
+
* a port's value. Core's turn-order spec wires the pool's `cast` from the
|
|
434
502
|
* document; this is that wire, with the shape the pool's
|
|
435
503
|
* in-port declares.
|
|
436
504
|
*/
|
|
@@ -482,13 +550,13 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
482
550
|
},
|
|
483
551
|
slots: {
|
|
484
552
|
/**
|
|
485
|
-
* The input hook
|
|
553
|
+
* The input hook, on the same terms as `user-message@1`:
|
|
486
554
|
* user chains over the triggering text, phase `after` on what this
|
|
487
555
|
* node publishes, which is what retrieval and the prompt see.
|
|
488
556
|
*
|
|
489
557
|
* β `extras` is what makes this the **new-name hook**. The three
|
|
490
558
|
* names below are read-only context supplied by the host at the
|
|
491
|
-
* hook
|
|
559
|
+
* hook and are part of the fixed choice set the script
|
|
492
560
|
* editor offers β so "this name is new" is a declared read rather
|
|
493
561
|
* than a name typed on faith. `speakerIsKnown` is `false` exactly
|
|
494
562
|
* when a free-form name matched nothing in the session's lorebook.
|
|
@@ -502,6 +570,18 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
502
570
|
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.',
|
|
503
571
|
},
|
|
504
572
|
},
|
|
573
|
+
/**
|
|
574
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
575
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
576
|
+
*/
|
|
577
|
+
entities: {
|
|
578
|
+
sessionScope: 'session',
|
|
579
|
+
sessionId: 'session',
|
|
580
|
+
session: 'session',
|
|
581
|
+
fields: 'session',
|
|
582
|
+
speaker: 'speaker',
|
|
583
|
+
characterId: 'speaker',
|
|
584
|
+
},
|
|
505
585
|
ports: {
|
|
506
586
|
out: {
|
|
507
587
|
main: S.json,
|
|
@@ -509,7 +589,7 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
509
589
|
sessionScope: S.sessionScope,
|
|
510
590
|
sessionId: S.rowIds,
|
|
511
591
|
/**
|
|
512
|
-
* Who is speaking, as a **participant reference
|
|
592
|
+
* Who is speaking, as a **participant reference**:
|
|
513
593
|
* `character:<id>` when the pick was a library character, null
|
|
514
594
|
* for a free-form name β a name is not a participant reference,
|
|
515
595
|
* and the fact below is where the name lives. On the same
|
|
@@ -538,15 +618,15 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
538
618
|
* run afterwards rather than from the trigger that started it.
|
|
539
619
|
*
|
|
540
620
|
* Was `speaker` until 2026-09-16: that name is the participant
|
|
541
|
-
* reference now (
|
|
621
|
+
* reference now (one word, one meaning), and a fact
|
|
542
622
|
* carrying a free-form name is not a reference to anybody.
|
|
543
623
|
*/
|
|
544
624
|
sideCharacter: S.json,
|
|
545
625
|
/**
|
|
546
|
-
* The session's **settings document
|
|
547
|
-
*
|
|
626
|
+
* The session's **settings document**:
|
|
627
|
+
* every setting a person can see in session settings,
|
|
548
628
|
* resolved once per run by the host and handed in here β
|
|
549
|
-
* title, guests, genre fields (cascade applied
|
|
629
|
+
* title, guests, genre fields (cascade applied),
|
|
550
630
|
* scenario, lorebook, tags, channels, the cast with its
|
|
551
631
|
* envoys, the session-scope rebinds and param overrides per
|
|
552
632
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -568,7 +648,7 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
568
648
|
/**
|
|
569
649
|
* The built-ins' session changes since the last reply, on the
|
|
570
650
|
* same terms as `user-message@1`'s port of this name (was
|
|
571
|
-
* `changes` until 2026-09-16
|
|
651
|
+
* `changes` until 2026-09-16).
|
|
572
652
|
*/
|
|
573
653
|
sessionChanges: S.json,
|
|
574
654
|
},
|
|
@@ -605,16 +685,32 @@ export const formAddressed = pin(describeInletDefinition({
|
|
|
605
685
|
en: 'A question or form in a message was put to a participant the AI portrays this turn β the pipeline that answers it reads the addressee\'s card and the conversation, and answers against the form\'s schema.',
|
|
606
686
|
},
|
|
607
687
|
},
|
|
688
|
+
/**
|
|
689
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
690
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
691
|
+
*/
|
|
692
|
+
entities: {
|
|
693
|
+
sessionScope: 'session',
|
|
694
|
+
sessionId: 'session',
|
|
695
|
+
session: 'session',
|
|
696
|
+
fields: 'session',
|
|
697
|
+
messageId: 'message',
|
|
698
|
+
blockId: 'form',
|
|
699
|
+
form: 'form',
|
|
700
|
+
action: 'form',
|
|
701
|
+
addressee: 'cast-member',
|
|
702
|
+
characterId: 'cast-member',
|
|
703
|
+
},
|
|
608
704
|
ports: {
|
|
609
705
|
out: {
|
|
610
706
|
main: S.formAddressed,
|
|
611
707
|
sessionScope: S.sessionScope,
|
|
612
708
|
sessionId: S.rowIds,
|
|
613
709
|
/**
|
|
614
|
-
* The session's **settings document
|
|
615
|
-
*
|
|
710
|
+
* The session's **settings document**:
|
|
711
|
+
* every setting a person can see in session settings,
|
|
616
712
|
* resolved once per run by the host and handed in here β
|
|
617
|
-
* title, guests, genre fields (cascade applied
|
|
713
|
+
* title, guests, genre fields (cascade applied),
|
|
618
714
|
* scenario, lorebook, tags, channels, the cast with its
|
|
619
715
|
* envoys, the session-scope rebinds and param overrides per
|
|
620
716
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -639,6 +735,121 @@ export const formAddressed = pin(describeInletDefinition({
|
|
|
639
735
|
},
|
|
640
736
|
},
|
|
641
737
|
}));
|
|
738
|
+
// ββ A person's message (owner ruling 2026-10-15) ββββββββββββββββββββββββββββ
|
|
739
|
+
/**
|
|
740
|
+
* π§ A person sent a message: the save pipeline's trigger. **A person's
|
|
741
|
+
* message is always saved through the pipeline** β the host checks the door
|
|
742
|
+
* (access, the genre, the persona, the length, the channel) and dispatches
|
|
743
|
+
* `core:event/message-offered@1`; the bound spec writes the row. Core's
|
|
744
|
+
* default, `core:spec/save-message`, is this inlet and one
|
|
745
|
+
* `create-message@1` with `role: 'user'`.
|
|
746
|
+
*
|
|
747
|
+
* The payload is `core:shape/message-offered@1`; the ports below are it
|
|
748
|
+
* taken apart. No shape and no lock here: core's default serves every genre,
|
|
749
|
+
* and a genre's own save declares its own `(genre, event)`.
|
|
750
|
+
* @experimental
|
|
751
|
+
*/
|
|
752
|
+
export const messageOffered = pin(describeInletDefinition({
|
|
753
|
+
id: 'core:inlet/message-offered@1',
|
|
754
|
+
i18n: {
|
|
755
|
+
name: { en: 'Message sent' },
|
|
756
|
+
description: {
|
|
757
|
+
en: 'A person sent a message. The pipeline that answers it saves the message β or refuses it with a sentence, and the person keeps their text.',
|
|
758
|
+
},
|
|
759
|
+
},
|
|
760
|
+
/**
|
|
761
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
762
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
763
|
+
*/
|
|
764
|
+
entities: {
|
|
765
|
+
sessionScope: 'session',
|
|
766
|
+
sessionId: 'session',
|
|
767
|
+
session: 'session',
|
|
768
|
+
person: 'actor',
|
|
769
|
+
speaker: 'speaker',
|
|
770
|
+
},
|
|
771
|
+
ports: {
|
|
772
|
+
out: {
|
|
773
|
+
main: S.messageOffered,
|
|
774
|
+
sessionScope: S.sessionScope,
|
|
775
|
+
sessionId: S.rowIds,
|
|
776
|
+
/** The session's **settings document**, as on every session inlet. */
|
|
777
|
+
session: S.sessionSettings,
|
|
778
|
+
/** The message as written. */
|
|
779
|
+
text: S.text,
|
|
780
|
+
/** The person sending β `user:<id>`, the run's owner. */
|
|
781
|
+
person: S.participantRef,
|
|
782
|
+
/**
|
|
783
|
+
* Who the message speaks as: `character:<id>` (the person's
|
|
784
|
+
* persona), `player-seat:<id>` (their card-less seat), or null β
|
|
785
|
+
* the person as themselves. Wired to `create-message@1`'s
|
|
786
|
+
* `speaker`.
|
|
787
|
+
*/
|
|
788
|
+
speaker: S.participantRef,
|
|
789
|
+
/** The channel it was written on, canonical. */
|
|
790
|
+
channel: S.text,
|
|
791
|
+
/** The person's ready tray items, sent as its attachments β `create-message@1`'s `trayItems`. */
|
|
792
|
+
trayItemIds: S.json,
|
|
793
|
+
/** The message it answers, when the composer named one; null otherwise. */
|
|
794
|
+
replyTo: S.rowIds,
|
|
795
|
+
/** Why it fired (`EventCause`) β a person's send, `{ kind: 'user', userId }`. */
|
|
796
|
+
cause: S.json,
|
|
797
|
+
},
|
|
798
|
+
},
|
|
799
|
+
}));
|
|
800
|
+
// ββ A deletion asked (owner ruling 2026-10-23) ββββββββββββββββββββββββββββββ
|
|
801
|
+
/**
|
|
802
|
+
* π§ A person asked for a message to be deleted: a **deletion pipeline**'s
|
|
803
|
+
* trigger (RF fix 5). Deletion requires a pipeline, so the genre manages it:
|
|
804
|
+
* the host checks the door (the message is the session's, the person may act
|
|
805
|
+
* on it) and dispatches `core:event/message-deletion-asked@1`; the pipeline
|
|
806
|
+
* registered there ends in `core:outlet/delete-message@1`, handed the
|
|
807
|
+
* deletion whole on its `asked` port
|
|
808
|
+
* (`C.deleteMessage.v1({ asked: $.input.main })`): it deletes THE message
|
|
809
|
+
* the event carried and takes back everything it changed β and the pipeline
|
|
810
|
+
* may put steps of its own around it. Core ships no such pipeline: with none
|
|
811
|
+
* registered, no message offers Delete.
|
|
812
|
+
*
|
|
813
|
+
* The payload is `core:shape/deletion-asked@1`, published whole on `main`
|
|
814
|
+
* (the delete's `asked`); the ports beside it are it taken apart, for the
|
|
815
|
+
* steps around the delete. No lock: registrations mount a pipeline on its
|
|
816
|
+
* event.
|
|
817
|
+
* @experimental
|
|
818
|
+
*/
|
|
819
|
+
export const messageDeletionAsked = pin(describeInletDefinition({
|
|
820
|
+
id: 'core:inlet/message-deletion-asked@1',
|
|
821
|
+
i18n: {
|
|
822
|
+
name: { en: 'Deletion asked' },
|
|
823
|
+
description: {
|
|
824
|
+
en: 'A person asked for a message to be deleted. The pipeline that answers it deletes the message, and what it changed goes with it.',
|
|
825
|
+
},
|
|
826
|
+
},
|
|
827
|
+
/** π§ What each port stands for β fit (PLAN-layering D3, R4). */
|
|
828
|
+
entities: {
|
|
829
|
+
sessionScope: 'session',
|
|
830
|
+
sessionId: 'session',
|
|
831
|
+
session: 'session',
|
|
832
|
+
messageId: 'message',
|
|
833
|
+
person: 'actor',
|
|
834
|
+
},
|
|
835
|
+
ports: {
|
|
836
|
+
out: {
|
|
837
|
+
main: S.deletionAsked,
|
|
838
|
+
sessionScope: S.sessionScope,
|
|
839
|
+
sessionId: S.rowIds,
|
|
840
|
+
/** The session's **settings document**, as on every session inlet. */
|
|
841
|
+
session: S.sessionSettings,
|
|
842
|
+
/** The message the person asked to delete (the delete itself reads it off `main`). */
|
|
843
|
+
messageId: S.rowIds,
|
|
844
|
+
/** Its channel, canonical. */
|
|
845
|
+
channel: S.text,
|
|
846
|
+
/** Who asked β `user:<id>`, the run's owner. */
|
|
847
|
+
person: S.participantRef,
|
|
848
|
+
/** Why it fired (`EventCause`) β a person's press, `{ kind: 'user', userId }`. */
|
|
849
|
+
cause: S.json,
|
|
850
|
+
},
|
|
851
|
+
},
|
|
852
|
+
}));
|
|
642
853
|
// ββ Summarization βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
643
854
|
//
|
|
644
855
|
// Two phases, and the split is the whole design (see `utils/summarizer`):
|
|
@@ -656,15 +867,23 @@ export const formAddressed = pin(describeInletDefinition({
|
|
|
656
867
|
/** @internal */
|
|
657
868
|
export const summarizeRequest = pin(describeInletDefinition({
|
|
658
869
|
id: 'core:inlet/summarize-request@1',
|
|
870
|
+
/**
|
|
871
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
872
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
873
|
+
*/
|
|
874
|
+
entities: {
|
|
875
|
+
scope: 'session',
|
|
876
|
+
session: 'session',
|
|
877
|
+
},
|
|
659
878
|
ports: {
|
|
660
879
|
out: {
|
|
661
880
|
main: S.summarizeRequest,
|
|
662
881
|
scope: S.sessionScope,
|
|
663
882
|
/**
|
|
664
|
-
* The session's **settings document
|
|
665
|
-
*
|
|
883
|
+
* The session's **settings document**:
|
|
884
|
+
* every setting a person can see in session settings,
|
|
666
885
|
* resolved once per run by the host and handed in here β
|
|
667
|
-
* title, guests, genre fields (cascade applied
|
|
886
|
+
* title, guests, genre fields (cascade applied),
|
|
668
887
|
* scenario, lorebook, tags, channels, the cast with its
|
|
669
888
|
* envoys, the session-scope rebinds and param overrides per
|
|
670
889
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -676,4 +895,198 @@ export const summarizeRequest = pin(describeInletDefinition({
|
|
|
676
895
|
},
|
|
677
896
|
},
|
|
678
897
|
}));
|
|
898
|
+
// ββ A card's own action (image generation I5, 2026-10-12) ββββββββββββββββββ
|
|
899
|
+
/**
|
|
900
|
+
* π§ A person pressed an action on a **card** β the Characters view, not a
|
|
901
|
+
* session: *Fill empty sprites* on the
|
|
902
|
+
* Sprites tab, and *Generate portrait* on the Gallery tab (`count`, widened
|
|
903
|
+
* in place 2026-10-12).
|
|
904
|
+
*
|
|
905
|
+
* ## No session
|
|
906
|
+
*
|
|
907
|
+
* A card action runs with no session in scope: nothing here is a session's,
|
|
908
|
+
* no live row is filled, no session event is written. The host checks the
|
|
909
|
+
* person may act on the card (its owner, or an admin) before the run starts,
|
|
910
|
+
* and resolves the card ONCE, here β its likeness as text and as the
|
|
911
|
+
* reference image β so no node re-reads the character for a setting.
|
|
912
|
+
*
|
|
913
|
+
* ## The form's answers
|
|
914
|
+
*
|
|
915
|
+
* `fields` is the whole of what the action's form collected. The fields a
|
|
916
|
+
* core action asks are also their own ports (`setName`, `labels`) because a
|
|
917
|
+
* data edge addresses a port, never a field inside one; another card action
|
|
918
|
+
* widens this in place with its own, every one optional.
|
|
919
|
+
*
|
|
920
|
+
* No lock and no shape: a card action is not a session mode, and no genre
|
|
921
|
+
* owns a card.
|
|
922
|
+
* @experimental
|
|
923
|
+
*/
|
|
924
|
+
export const cardAction = pin(describeInletDefinition({
|
|
925
|
+
id: 'core:inlet/card-action@1',
|
|
926
|
+
/**
|
|
927
|
+
* π§ What each port stands for β fit (PLAN-layering D3, R4). Only the
|
|
928
|
+
* ports whose reads need the entity: an optional port is left out.
|
|
929
|
+
*/
|
|
930
|
+
entities: {
|
|
931
|
+
characterId: 'subject',
|
|
932
|
+
},
|
|
933
|
+
ports: {
|
|
934
|
+
out: {
|
|
935
|
+
main: S.json,
|
|
936
|
+
/** The card the action was pressed on. */
|
|
937
|
+
characterId: S.rowIds,
|
|
938
|
+
/** The card's likeness prompt β its look as a tag line; empty when unset. */
|
|
939
|
+
likeness: S.text,
|
|
940
|
+
/** The card's likeness negative; empty when unset. */
|
|
941
|
+
likenessNegative: S.text,
|
|
942
|
+
/**
|
|
943
|
+
* The likeness image as a one-item media list (the likeness
|
|
944
|
+
* image, else the avatar); empty when the card has neither.
|
|
945
|
+
* What a picture step's `references` port takes.
|
|
946
|
+
*/
|
|
947
|
+
likenessImage: S.mediaList,
|
|
948
|
+
/** The form's answers, whole. */
|
|
949
|
+
fields: S.json,
|
|
950
|
+
/** Sprite set fill: the sprite set to fill, by name. */
|
|
951
|
+
setName: S.text,
|
|
952
|
+
/** Sprite set fill: the sprite labels to draw. */
|
|
953
|
+
labels: S.json,
|
|
954
|
+
/** π§ Portrait: how many pictures to offer (a whole number, 1β4 on the form). */
|
|
955
|
+
count: S.json,
|
|
956
|
+
},
|
|
957
|
+
},
|
|
958
|
+
}));
|
|
959
|
+
// ββ π§ Routines (PLAN-layering D2, R9; 2026-10-20) βββββββββββββββββββββββββ
|
|
960
|
+
/**
|
|
961
|
+
* π§ Where a **routine** enters β a pipeline registered on a cadence
|
|
962
|
+
* (`register(everyNTurns({ n: 5 }), storySweep)`), run when the cadence says
|
|
963
|
+
* so. Nothing opinionated (R9): a routine's pipeline gets the session, the
|
|
964
|
+
* metadata of where the routine resides, and the parameters of the moment
|
|
965
|
+
* its cadence listened to β and queries everything else through the SDK.
|
|
966
|
+
*
|
|
967
|
+
* Β· `session` / `sessionScope` / `sessionId` β the session, always: routines
|
|
968
|
+
* live in sessions (R9).
|
|
969
|
+
* Β· `routine` β `RoutineFiring`: the registration key, the preset, the
|
|
970
|
+
* cadence and its option values, the mode, the turn / round / scene it
|
|
971
|
+
* fired on, and room for a note (Β§11-5).
|
|
972
|
+
* Β· `cause` β `RoutineCause`: what the moment carries, whole.
|
|
973
|
+
* Β· `ruleset` β the ruleset the session plays, `{ id, rigour, settings }`,
|
|
974
|
+
* as the user-message inlet carries it (2026-10-20, lane 3): where the
|
|
975
|
+
* session resides, not what the moment carried β a reckoning branches on
|
|
976
|
+
* `rigour` (`scripts` routes the deltas to the ruleset handler).
|
|
977
|
+
* Β· `message` Β· `speaker` Β· `actor` Β· `castMember` Β· `subject` Β· `user` Β·
|
|
978
|
+
* `slot` Β· `clock` Β· `scene` β the same moment's entities, one port each,
|
|
979
|
+
* filled when the moment carries them. Ports are flat (a reference cannot
|
|
980
|
+
* reach into `cause`), so these are what fit reads: a routine whose steps
|
|
981
|
+
* read `subject` takes only a cadence whose moment carries one (R12).
|
|
982
|
+
* @experimental
|
|
983
|
+
* @ruling R9, R12, Β§11-5
|
|
984
|
+
*/
|
|
985
|
+
export const routine = pin(describeInletDefinition({
|
|
986
|
+
id: 'core:inlet/routine@1',
|
|
987
|
+
i18n: {
|
|
988
|
+
name: { en: 'Routine' },
|
|
989
|
+
description: {
|
|
990
|
+
en: 'A routine came due β every few turns, after a scene, on a schedule. The pipeline that runs reads the session and what the moment carried, and queries the rest.',
|
|
991
|
+
},
|
|
992
|
+
},
|
|
993
|
+
entities: {
|
|
994
|
+
session: 'session',
|
|
995
|
+
sessionScope: 'session',
|
|
996
|
+
sessionId: 'session',
|
|
997
|
+
ruleset: 'session',
|
|
998
|
+
message: 'message',
|
|
999
|
+
speaker: 'speaker',
|
|
1000
|
+
actor: 'actor',
|
|
1001
|
+
castMember: 'cast-member',
|
|
1002
|
+
subject: 'subject',
|
|
1003
|
+
user: 'user',
|
|
1004
|
+
slot: 'slot',
|
|
1005
|
+
clock: 'clock',
|
|
1006
|
+
scene: 'scene',
|
|
1007
|
+
},
|
|
1008
|
+
ports: {
|
|
1009
|
+
out: {
|
|
1010
|
+
main: S.json,
|
|
1011
|
+
session: S.sessionSettings,
|
|
1012
|
+
sessionScope: S.sessionScope,
|
|
1013
|
+
sessionId: S.rowIds,
|
|
1014
|
+
routine: S.json,
|
|
1015
|
+
cause: S.json,
|
|
1016
|
+
ruleset: S.json,
|
|
1017
|
+
message: S.rowIds,
|
|
1018
|
+
speaker: S.participantRef,
|
|
1019
|
+
actor: S.participantRef,
|
|
1020
|
+
castMember: S.participantRef,
|
|
1021
|
+
subject: S.participantRef,
|
|
1022
|
+
user: S.participantRef,
|
|
1023
|
+
slot: S.text,
|
|
1024
|
+
clock: S.json,
|
|
1025
|
+
scene: S.rowIds,
|
|
1026
|
+
},
|
|
1027
|
+
},
|
|
1028
|
+
}));
|
|
1029
|
+
// ββ π§ A ruleset's action (PLAN-rulesets-functions D6; 2026-10-23) ββββββββββ
|
|
1030
|
+
/**
|
|
1031
|
+
* π§ Where the one generic **rules-action** pipeline enters
|
|
1032
|
+
* (`core:spec/rules-action`): a person invoked one of the functions the
|
|
1033
|
+
* session's ruleset uses β an **invokable** function, which the host offers
|
|
1034
|
+
* as an action registration of that pipeline, its label and form the
|
|
1035
|
+
* function header's (`jsonSchemaOf(fn, { part: 'invokable' })`).
|
|
1036
|
+
*
|
|
1037
|
+
* Β· `function` β the function's key in the ruleset (`rest`, `draw`), as
|
|
1038
|
+
* its reference names it;
|
|
1039
|
+
* Β· `answer` β what its form collected (null when it asks nothing);
|
|
1040
|
+
* Β· `actor` β who invokes it; `aimedAt` β at whom, when anyone;
|
|
1041
|
+
* Β· `mode` β the action registration's mode in force: `full` applies what
|
|
1042
|
+
* the function changes, `review` holds each change for the session's
|
|
1043
|
+
* owner (absent: `full`);
|
|
1044
|
+
* Β· `session` / `sessionScope` / `sessionId` / `ruleset` β the session, as
|
|
1045
|
+
* the routine inlet carries it;
|
|
1046
|
+
* Β· `main` β the payload whole (`{ session, actor, function, answer,
|
|
1047
|
+
* aimedAt }`): what `ruleset-resolve`'s `actions` port takes to run the
|
|
1048
|
+
* function with its answer.
|
|
1049
|
+
*
|
|
1050
|
+
* No lock and no shape: every genre's session may play a ruleset with
|
|
1051
|
+
* actions, and the pipeline is the same for all of them.
|
|
1052
|
+
* @experimental
|
|
1053
|
+
* @ruling PLAN-rulesets-functions D6
|
|
1054
|
+
*/
|
|
1055
|
+
export const rulesAction = pin(describeInletDefinition({
|
|
1056
|
+
id: 'core:inlet/rules-action@1',
|
|
1057
|
+
i18n: {
|
|
1058
|
+
name: { en: 'A ruleset action' },
|
|
1059
|
+
description: {
|
|
1060
|
+
en: "Someone used one of the rules' actions β rested, drew a card, gave a gift. The pipeline runs the rule with what they chose, then applies or proposes what it changed.",
|
|
1061
|
+
},
|
|
1062
|
+
},
|
|
1063
|
+
/** π§ What each port stands for β fit (PLAN-layering D3, R4). Only the ports whose reads need the entity. */
|
|
1064
|
+
entities: {
|
|
1065
|
+
session: 'session',
|
|
1066
|
+
sessionScope: 'session',
|
|
1067
|
+
sessionId: 'session',
|
|
1068
|
+
ruleset: 'session',
|
|
1069
|
+
actor: 'actor',
|
|
1070
|
+
},
|
|
1071
|
+
ports: {
|
|
1072
|
+
out: {
|
|
1073
|
+
main: S.json,
|
|
1074
|
+
session: S.sessionSettings,
|
|
1075
|
+
sessionScope: S.sessionScope,
|
|
1076
|
+
sessionId: S.rowIds,
|
|
1077
|
+
/** The ruleset the session plays, `{ id, rigour, settings }`. */
|
|
1078
|
+
ruleset: S.json,
|
|
1079
|
+
/** Who invokes the function. */
|
|
1080
|
+
actor: S.participantRef,
|
|
1081
|
+
/** The function's key in the session's ruleset. */
|
|
1082
|
+
function: S.text,
|
|
1083
|
+
/** What the function's form collected; null when it asks nothing. */
|
|
1084
|
+
answer: S.json,
|
|
1085
|
+
/** Whom it is aimed at, when anyone. */
|
|
1086
|
+
aimedAt: S.participantRef,
|
|
1087
|
+
/** The action registration's mode: `full` or `review`. */
|
|
1088
|
+
mode: S.text,
|
|
1089
|
+
},
|
|
1090
|
+
},
|
|
1091
|
+
}));
|
|
679
1092
|
//# sourceMappingURL=inlets.js.map
|