@serene-pub/contracts 0.6.0-pr-4 → 0.6.0-pr-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/inlets.d.ts +112 -50
- package/dist/inlets.js +118 -53
- package/dist/oracles.d.ts +308 -19
- package/dist/oracles.js +288 -40
- package/dist/outlets.d.ts +194 -44
- package/dist/outlets.js +231 -55
- package/dist/queries.d.ts +253 -79
- package/dist/queries.js +248 -88
- package/dist/tasks.d.ts +920 -176
- package/dist/tasks.js +788 -145
- package/package.json +3 -3
package/dist/inlets.js
CHANGED
|
@@ -31,14 +31,14 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
/**
|
|
34
|
-
* The standard chat's shape
|
|
35
|
-
* This block is what makes the input type a **chat mode** (the
|
|
34
|
+
* The standard chat's shape — today's behaviour, *stated*.
|
|
35
|
+
* This block is what makes the input type a **chat mode** (the
|
|
36
36
|
* floor: always present, special in availability and nothing else).
|
|
37
37
|
* Both participant systems are optional and unbounded above, lorebooks
|
|
38
38
|
* attach when wanted, the composer is a text box, and the seed line
|
|
39
39
|
* carries the speaking character's name. Duties and triggers are not
|
|
40
40
|
* here on purpose: the shape is owner-only, and the narrate button is
|
|
41
|
-
* the narrate spec's contribution, not this type's knowledge
|
|
41
|
+
* the narrate spec's contribution, not this type's knowledge.
|
|
42
42
|
*/
|
|
43
43
|
sessionShape: {
|
|
44
44
|
characters: { min: 0 },
|
|
@@ -54,7 +54,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
54
54
|
},
|
|
55
55
|
slots: {
|
|
56
56
|
/**
|
|
57
|
-
* The input hook
|
|
57
|
+
* The input hook: user chains over the triggering text,
|
|
58
58
|
* phase `after` on what this node publishes — which is what
|
|
59
59
|
* lorebook scanning and the prompt's seed see. The stored user
|
|
60
60
|
* message was written before the turn began and stays untouched
|
|
@@ -76,13 +76,13 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
76
76
|
sessionScope: S.sessionScope,
|
|
77
77
|
sessionId: S.rowIds,
|
|
78
78
|
/**
|
|
79
|
-
* Whose turn it is, as a **participant reference
|
|
79
|
+
* Whose turn it is, as a **participant reference**:
|
|
80
80
|
* `character:<id>` for a library character, `envoy:<slug>` for
|
|
81
81
|
* a speaker the genre brings with it. Null on a narrator turn —
|
|
82
82
|
* nobody in particular is speaking. One port answers "who is
|
|
83
83
|
* speaking" for both kinds, so nothing downstream branches on
|
|
84
84
|
* which it received; who *portrays* them this turn is the
|
|
85
|
-
* host's resolver's answer, pinned on the receipt
|
|
85
|
+
* host's resolver's answer, pinned on the receipt.
|
|
86
86
|
*/
|
|
87
87
|
speaker: S.participantRef,
|
|
88
88
|
/**
|
|
@@ -95,7 +95,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
95
95
|
characterId: S.rowIds,
|
|
96
96
|
/**
|
|
97
97
|
* Who **pressed** — the reference of whoever sent the message
|
|
98
|
-
* or fired the action this run answers (
|
|
98
|
+
* or fired the action this run answers (2026-09-17).
|
|
99
99
|
*
|
|
100
100
|
* `user:<id>` for a person with no presence in the session,
|
|
101
101
|
* `character:<id>` when they hold a persona here — their
|
|
@@ -114,7 +114,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
114
114
|
* the path (`speaker: 'user:<id>'` writes a user-role row) and
|
|
115
115
|
* no inlet carried the reference to put in it, so a plugin that
|
|
116
116
|
* wanted the player's own line had to ride it on the model's
|
|
117
|
-
* reply as a block (Battleship
|
|
117
|
+
* reply as a block (as the Battleship plugin did).
|
|
118
118
|
*
|
|
119
119
|
* Never null on a turn or a fire: a run has an owner, and the
|
|
120
120
|
* owner is a person. Absent only where the inlet is resolved
|
|
@@ -122,8 +122,8 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
122
122
|
*/
|
|
123
123
|
presser: S.participantRef,
|
|
124
124
|
/**
|
|
125
|
-
* The cast members a press collected
|
|
126
|
-
* 2026-09-28): `character:<id>` references, for an action
|
|
125
|
+
* The cast members a press collected
|
|
126
|
+
* (2026-09-28): `character:<id>` references, for an action
|
|
127
127
|
* declaring `collects.recipients` — picked in the collect
|
|
128
128
|
* modal, and validated by the host (seated and enabled, no
|
|
129
129
|
* duplicates, within the declared `min` and `max`) before
|
|
@@ -132,7 +132,18 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
132
132
|
*/
|
|
133
133
|
recipients: S.participantRefs,
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* 🚧 The **clock step** a press collected (2026-10-13):
|
|
136
|
+
* `{ by, unit }` — a whole number other than zero, signed
|
|
137
|
+
* (back is negative), and one of the story-time units — for
|
|
138
|
+
* an action declaring `collects.clockStep`, picked on the
|
|
139
|
+
* collect modal's stepper and checked by the host before the
|
|
140
|
+
* run starts. Absent on a turn and on every press of an
|
|
141
|
+
* action that collects none. Core's *Time passes…* hands it
|
|
142
|
+
* to `core:task/clock-step@1`.
|
|
143
|
+
*/
|
|
144
|
+
clockStep: S.json,
|
|
145
|
+
/**
|
|
146
|
+
* Values for the mode's declared `fields`, filtered to
|
|
136
147
|
* the declared schema keys — the supply side of the round
|
|
137
148
|
* trip: declaration → chat settings → chat row → this port →
|
|
138
149
|
* every downstream node.
|
|
@@ -140,7 +151,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
140
151
|
fields: S.json,
|
|
141
152
|
/**
|
|
142
153
|
* Text an in-progress reply has already produced, when this turn
|
|
143
|
-
* is an **extend** (ruling 2026-09-08
|
|
154
|
+
* is an **extend** (ruling 2026-09-08; the verb was `continue`
|
|
144
155
|
* until 2026-09-28).
|
|
145
156
|
*
|
|
146
157
|
* Empty on every other turn, which is nearly all of them. It is
|
|
@@ -163,7 +174,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
163
174
|
* swipe or an extend of a message that already exists. Null on
|
|
164
175
|
* a fresh turn, which is nearly all of them.
|
|
165
176
|
*
|
|
166
|
-
* The pipeline owns its reply row
|
|
177
|
+
* The pipeline owns its reply row: a fresh turn's row is
|
|
167
178
|
* created by the spec's own placeholder outlet, and a verb that
|
|
168
179
|
* re-drives an existing message hands that message to the same
|
|
169
180
|
* outlet through this port — so the outlet claims it as the
|
|
@@ -174,7 +185,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
174
185
|
messageId: S.rowIds,
|
|
175
186
|
/**
|
|
176
187
|
* What the built-ins did to this session since the last reply
|
|
177
|
-
* (
|
|
188
|
+
* (2026-09-16): a list of session changes — `[{ event:
|
|
178
189
|
* 'core:event/message-deleted@1', messageId, at, lost }, …]`,
|
|
179
190
|
* oldest first, capped at the newest fifty — so a pipeline
|
|
180
191
|
* knows the history it is about to read has moved: a line
|
|
@@ -189,15 +200,15 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
189
200
|
* 'core:event/session-changes-truncated@1', dropped }` says
|
|
190
201
|
* how many older ones did not.
|
|
191
202
|
*
|
|
192
|
-
* Was `changes` until 2026-09-16
|
|
203
|
+
* Was `changes` until 2026-09-16: that word is
|
|
193
204
|
* the state ledger's on `resolve-state-changes@1` and
|
|
194
205
|
* `set-state@1` — a list of value changes — and a session
|
|
195
|
-
* change is about a message, never a value (
|
|
206
|
+
* change is about a message, never a value (one word, one meaning).
|
|
196
207
|
*/
|
|
197
208
|
sessionChanges: S.json,
|
|
198
209
|
/**
|
|
199
|
-
* What an action's fire sent along
|
|
200
|
-
* 2026-09-17): a form's answer — `{ choice }` for a choices
|
|
210
|
+
* What an action's fire sent along
|
|
211
|
+
* (2026-09-17): a form's answer — `{ choice }` for a choices
|
|
201
212
|
* block, the entered values for a form block — or a widget's
|
|
202
213
|
* `invoke(key, args)` arguments. Absent on a turn and on a
|
|
203
214
|
* bare press. A press on an **addressed** block arrives with
|
|
@@ -217,7 +228,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
217
228
|
form: S.json,
|
|
218
229
|
/**
|
|
219
230
|
* Which channel the message that triggered this turn is on
|
|
220
|
-
* (
|
|
231
|
+
* (2026-09-17) — the stored string, lane included:
|
|
221
232
|
* `main`, `manuscript`, `phone:3`.
|
|
222
233
|
*
|
|
223
234
|
* `main` when the trigger named none, which is every session
|
|
@@ -236,10 +247,10 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
236
247
|
* what a port carries.
|
|
237
248
|
*/
|
|
238
249
|
/**
|
|
239
|
-
* The session's **settings document
|
|
240
|
-
*
|
|
250
|
+
* The session's **settings document**:
|
|
251
|
+
* every setting a person can see in session settings,
|
|
241
252
|
* resolved once per run by the host and handed in here —
|
|
242
|
-
* title, guests, genre fields (cascade applied
|
|
253
|
+
* title, guests, genre fields (cascade applied),
|
|
243
254
|
* scenario, lorebook, tags, channels, the cast with its
|
|
244
255
|
* envoys, the session-scope rebinds and param overrides per
|
|
245
256
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -249,7 +260,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
249
260
|
session: S.sessionSettings,
|
|
250
261
|
channel: S.text,
|
|
251
262
|
/**
|
|
252
|
-
* **How this turn was reached** (
|
|
263
|
+
* **How this turn was reached** (2026-09-28) —
|
|
253
264
|
* the fired turn entry's `via`: `strategy`, `script` or
|
|
254
265
|
* `voice` for a prepared turn, `pick` for one a person chose,
|
|
255
266
|
* and **`narrate`** when the press was the `core#narrate` turn
|
|
@@ -265,7 +276,7 @@ export const userMessage = pin(describeInletDefinition({
|
|
|
265
276
|
},
|
|
266
277
|
}));
|
|
267
278
|
/**
|
|
268
|
-
* A built-in write's request (
|
|
279
|
+
* A built-in write's request (2026-09-16) — what a person asked core to
|
|
269
280
|
* do to a message or a session: delete, hide, edit, swipe, branch.
|
|
270
281
|
*
|
|
271
282
|
* Core implements every state-altering write and runs each as its own
|
|
@@ -294,10 +305,10 @@ export const builtInRequest = pin(describeInletDefinition({
|
|
|
294
305
|
/** A branch's fork point — the last message the copy keeps. */
|
|
295
306
|
fromMessage: S.rowIds,
|
|
296
307
|
/**
|
|
297
|
-
* The session's **settings document
|
|
298
|
-
*
|
|
308
|
+
* The session's **settings document**:
|
|
309
|
+
* every setting a person can see in session settings,
|
|
299
310
|
* resolved once per run by the host and handed in here —
|
|
300
|
-
* title, guests, genre fields (cascade applied
|
|
311
|
+
* title, guests, genre fields (cascade applied),
|
|
301
312
|
* scenario, lorebook, tags, channels, the cast with its
|
|
302
313
|
* envoys, the session-scope rebinds and param overrides per
|
|
303
314
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -309,7 +320,7 @@ export const builtInRequest = pin(describeInletDefinition({
|
|
|
309
320
|
title: S.text,
|
|
310
321
|
/**
|
|
311
322
|
* A person's sprite for the line: `{ set, label }`, or null to
|
|
312
|
-
* clear it
|
|
323
|
+
* clear it — a `sprite-pick@1`, the shape a
|
|
313
324
|
* picker publishes, so `core:outlet/show-sprite@1` takes one
|
|
314
325
|
* shape from both. Read by `core:spec/show-sprite`.
|
|
315
326
|
*/
|
|
@@ -321,7 +332,7 @@ export const builtInRequest = pin(describeInletDefinition({
|
|
|
321
332
|
// event emitted (plans/29 §4c 4.1). Culled 2026-09-16 (R-4): an existing
|
|
322
333
|
// message's id arrives on `core:inlet/user-message@1`'s `messageId` port.
|
|
323
334
|
/**
|
|
324
|
-
* A session was just created — the create pipeline's trigger
|
|
335
|
+
* A session was just created — the create pipeline's trigger.
|
|
325
336
|
*
|
|
326
337
|
* The genre's one required pipeline answers this event and seeds the
|
|
327
338
|
* session's initial data: greetings per the genre's shape, initial channels,
|
|
@@ -330,7 +341,7 @@ export const builtInRequest = pin(describeInletDefinition({
|
|
|
330
341
|
* create pipeline does is *finish* what the request began.
|
|
331
342
|
*
|
|
332
343
|
* Not `user-message`: reusing the turn input here welded creation to the
|
|
333
|
-
* chat turn's shape and was wrong
|
|
344
|
+
* chat turn's shape and was wrong. A create run has no triggering
|
|
334
345
|
* text and no speaker; it has a request.
|
|
335
346
|
* @public
|
|
336
347
|
*/
|
|
@@ -354,10 +365,10 @@ export const sessionCreated = pin(describeInletDefinition({
|
|
|
354
365
|
*/
|
|
355
366
|
request: S.json,
|
|
356
367
|
/**
|
|
357
|
-
* The session's **settings document
|
|
358
|
-
*
|
|
368
|
+
* The session's **settings document**:
|
|
369
|
+
* every setting a person can see in session settings,
|
|
359
370
|
* resolved once per run by the host and handed in here —
|
|
360
|
-
* title, guests, genre fields (cascade applied
|
|
371
|
+
* title, guests, genre fields (cascade applied),
|
|
361
372
|
* scenario, lorebook, tags, channels, the cast with its
|
|
362
373
|
* envoys, the session-scope rebinds and param overrides per
|
|
363
374
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -371,7 +382,7 @@ export const sessionCreated = pin(describeInletDefinition({
|
|
|
371
382
|
},
|
|
372
383
|
}));
|
|
373
384
|
/**
|
|
374
|
-
* A session event happened
|
|
385
|
+
* A session event happened: the inlet every
|
|
375
386
|
* event-driven spec enters through, and the one core's turn-order spec
|
|
376
387
|
* uses.
|
|
377
388
|
*
|
|
@@ -384,7 +395,7 @@ export const sessionCreated = pin(describeInletDefinition({
|
|
|
384
395
|
* `cause` is why it fired (`EventCause`: user · run · edit · settings ·
|
|
385
396
|
* system), and it is load-bearing beyond this node — the write this spec
|
|
386
397
|
* ends in carries it into `turn-order-changed`, where the auto-advance
|
|
387
|
-
* listener reads it to decide whether to fire the head turn
|
|
398
|
+
* listener reads it to decide whether to fire the head turn. A spec
|
|
388
399
|
* that drops it makes every recompute look like a system event.
|
|
389
400
|
* @experimental
|
|
390
401
|
*/
|
|
@@ -417,20 +428,20 @@ export const sessionEvent = pin(describeInletDefinition({
|
|
|
417
428
|
at: S.json,
|
|
418
429
|
sessionScope: S.sessionScope,
|
|
419
430
|
/**
|
|
420
|
-
* The session's **settings document
|
|
431
|
+
* The session's **settings document**, resolved
|
|
421
432
|
* once per run by the host after the write that caused this
|
|
422
433
|
* event — so the cast below is the cast as it is now, and no
|
|
423
434
|
* node needs a cast read of its own.
|
|
424
435
|
*/
|
|
425
436
|
session: S.sessionSettings,
|
|
426
437
|
/**
|
|
427
|
-
* The settings document's **cast**, on its own port
|
|
428
|
-
*
|
|
438
|
+
* The settings document's **cast**, on its own port:
|
|
439
|
+
* what `core:query/session-cast@1` publishes,
|
|
429
440
|
* envoys included, projected from `session` by the host.
|
|
430
441
|
*
|
|
431
442
|
* A port rather than a path, because an edge is `{ node,
|
|
432
443
|
* port }` and nothing in the graph addresses a field inside
|
|
433
|
-
* a port's value.
|
|
444
|
+
* a port's value. Core's turn-order spec wires the pool's `cast` from the
|
|
434
445
|
* document; this is that wire, with the shape the pool's
|
|
435
446
|
* in-port declares.
|
|
436
447
|
*/
|
|
@@ -482,13 +493,13 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
482
493
|
},
|
|
483
494
|
slots: {
|
|
484
495
|
/**
|
|
485
|
-
* The input hook
|
|
496
|
+
* The input hook, on the same terms as `user-message@1`:
|
|
486
497
|
* user chains over the triggering text, phase `after` on what this
|
|
487
498
|
* node publishes, which is what retrieval and the prompt see.
|
|
488
499
|
*
|
|
489
500
|
* ⚠ `extras` is what makes this the **new-name hook**. The three
|
|
490
501
|
* names below are read-only context supplied by the host at the
|
|
491
|
-
* hook
|
|
502
|
+
* hook and are part of the fixed choice set the script
|
|
492
503
|
* editor offers — so "this name is new" is a declared read rather
|
|
493
504
|
* than a name typed on faith. `speakerIsKnown` is `false` exactly
|
|
494
505
|
* when a free-form name matched nothing in the session's lorebook.
|
|
@@ -509,7 +520,7 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
509
520
|
sessionScope: S.sessionScope,
|
|
510
521
|
sessionId: S.rowIds,
|
|
511
522
|
/**
|
|
512
|
-
* Who is speaking, as a **participant reference
|
|
523
|
+
* Who is speaking, as a **participant reference**:
|
|
513
524
|
* `character:<id>` when the pick was a library character, null
|
|
514
525
|
* for a free-form name — a name is not a participant reference,
|
|
515
526
|
* and the fact below is where the name lives. On the same
|
|
@@ -538,15 +549,15 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
538
549
|
* run afterwards rather than from the trigger that started it.
|
|
539
550
|
*
|
|
540
551
|
* Was `speaker` until 2026-09-16: that name is the participant
|
|
541
|
-
* reference now (
|
|
552
|
+
* reference now (one word, one meaning), and a fact
|
|
542
553
|
* carrying a free-form name is not a reference to anybody.
|
|
543
554
|
*/
|
|
544
555
|
sideCharacter: S.json,
|
|
545
556
|
/**
|
|
546
|
-
* The session's **settings document
|
|
547
|
-
*
|
|
557
|
+
* The session's **settings document**:
|
|
558
|
+
* every setting a person can see in session settings,
|
|
548
559
|
* resolved once per run by the host and handed in here —
|
|
549
|
-
* title, guests, genre fields (cascade applied
|
|
560
|
+
* title, guests, genre fields (cascade applied),
|
|
550
561
|
* scenario, lorebook, tags, channels, the cast with its
|
|
551
562
|
* envoys, the session-scope rebinds and param overrides per
|
|
552
563
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -568,7 +579,7 @@ export const sideCharacterTurn = pin(describeInletDefinition({
|
|
|
568
579
|
/**
|
|
569
580
|
* The built-ins' session changes since the last reply, on the
|
|
570
581
|
* same terms as `user-message@1`'s port of this name (was
|
|
571
|
-
* `changes` until 2026-09-16
|
|
582
|
+
* `changes` until 2026-09-16).
|
|
572
583
|
*/
|
|
573
584
|
sessionChanges: S.json,
|
|
574
585
|
},
|
|
@@ -611,10 +622,10 @@ export const formAddressed = pin(describeInletDefinition({
|
|
|
611
622
|
sessionScope: S.sessionScope,
|
|
612
623
|
sessionId: S.rowIds,
|
|
613
624
|
/**
|
|
614
|
-
* The session's **settings document
|
|
615
|
-
*
|
|
625
|
+
* The session's **settings document**:
|
|
626
|
+
* every setting a person can see in session settings,
|
|
616
627
|
* resolved once per run by the host and handed in here —
|
|
617
|
-
* title, guests, genre fields (cascade applied
|
|
628
|
+
* title, guests, genre fields (cascade applied),
|
|
618
629
|
* scenario, lorebook, tags, channels, the cast with its
|
|
619
630
|
* envoys, the session-scope rebinds and param overrides per
|
|
620
631
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -661,10 +672,10 @@ export const summarizeRequest = pin(describeInletDefinition({
|
|
|
661
672
|
main: S.summarizeRequest,
|
|
662
673
|
scope: S.sessionScope,
|
|
663
674
|
/**
|
|
664
|
-
* The session's **settings document
|
|
665
|
-
*
|
|
675
|
+
* The session's **settings document**:
|
|
676
|
+
* every setting a person can see in session settings,
|
|
666
677
|
* resolved once per run by the host and handed in here —
|
|
667
|
-
* title, guests, genre fields (cascade applied
|
|
678
|
+
* title, guests, genre fields (cascade applied),
|
|
668
679
|
* scenario, lorebook, tags, channels, the cast with its
|
|
669
680
|
* envoys, the session-scope rebinds and param overrides per
|
|
670
681
|
* bound spec, the turn-order state, `metadata` (read-only)
|
|
@@ -676,4 +687,58 @@ export const summarizeRequest = pin(describeInletDefinition({
|
|
|
676
687
|
},
|
|
677
688
|
},
|
|
678
689
|
}));
|
|
690
|
+
// ── A card's own action (image generation I5, 2026-10-12) ──────────────────
|
|
691
|
+
/**
|
|
692
|
+
* 🚧 A person pressed an action on a **card** — the Characters view, not a
|
|
693
|
+
* session: *Fill empty sprites* on the
|
|
694
|
+
* Sprites tab, and *Generate portrait* on the Gallery tab (`count`, widened
|
|
695
|
+
* in place 2026-10-12).
|
|
696
|
+
*
|
|
697
|
+
* ## No session
|
|
698
|
+
*
|
|
699
|
+
* A card action runs with no session in scope: nothing here is a session's,
|
|
700
|
+
* no live row is filled, no session event is written. The host checks the
|
|
701
|
+
* person may act on the card (its owner, or an admin) before the run starts,
|
|
702
|
+
* and resolves the card ONCE, here — its likeness as text and as the
|
|
703
|
+
* reference image — so no node re-reads the character for a setting.
|
|
704
|
+
*
|
|
705
|
+
* ## The form's answers
|
|
706
|
+
*
|
|
707
|
+
* `fields` is the whole of what the action's form collected. The fields a
|
|
708
|
+
* core action asks are also their own ports (`setName`, `labels`) because a
|
|
709
|
+
* data edge addresses a port, never a field inside one; another card action
|
|
710
|
+
* widens this in place with its own, every one optional.
|
|
711
|
+
*
|
|
712
|
+
* No lock and no shape: a card action is not a session mode, and no genre
|
|
713
|
+
* owns a card.
|
|
714
|
+
* @experimental
|
|
715
|
+
*/
|
|
716
|
+
export const cardAction = pin(describeInletDefinition({
|
|
717
|
+
id: 'core:inlet/card-action@1',
|
|
718
|
+
ports: {
|
|
719
|
+
out: {
|
|
720
|
+
main: S.json,
|
|
721
|
+
/** The card the action was pressed on. */
|
|
722
|
+
characterId: S.rowIds,
|
|
723
|
+
/** The card's likeness prompt — its look as a tag line; empty when unset. */
|
|
724
|
+
likeness: S.text,
|
|
725
|
+
/** The card's likeness negative; empty when unset. */
|
|
726
|
+
likenessNegative: S.text,
|
|
727
|
+
/**
|
|
728
|
+
* The likeness image as a one-item media list (the likeness
|
|
729
|
+
* image, else the avatar); empty when the card has neither.
|
|
730
|
+
* What a picture step's `references` port takes.
|
|
731
|
+
*/
|
|
732
|
+
likenessImage: S.mediaList,
|
|
733
|
+
/** The form's answers, whole. */
|
|
734
|
+
fields: S.json,
|
|
735
|
+
/** Sprite set fill: the sprite set to fill, by name. */
|
|
736
|
+
setName: S.text,
|
|
737
|
+
/** Sprite set fill: the sprite labels to draw. */
|
|
738
|
+
labels: S.json,
|
|
739
|
+
/** 🚧 Portrait: how many pictures to offer (a whole number, 1–4 on the form). */
|
|
740
|
+
count: S.json,
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
}));
|
|
679
744
|
//# sourceMappingURL=inlets.js.map
|