@serene-pub/sdk 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/README.md +23 -19
- package/dist/actions.d.ts +149 -67
- package/dist/actions.js +89 -35
- package/dist/annexFields.d.ts +8 -4
- package/dist/annexFields.js +5 -2
- package/dist/announce.d.ts +78 -28
- package/dist/announce.js +14 -5
- package/dist/attributes.d.ts +9 -6
- package/dist/attributes.js +9 -5
- package/dist/bands.d.ts +41 -6
- package/dist/bands.js +83 -33
- package/dist/builder.d.ts +161 -58
- package/dist/builder.js +128 -22
- package/dist/candidates.d.ts +5 -3
- package/dist/candidates.js +3 -2
- package/dist/clauses.d.ts +2 -1
- package/dist/clauses.js +2 -1
- package/dist/component.d.ts +24 -7
- package/dist/component.js +16 -6
- package/dist/componentBuild.d.ts +16 -5
- package/dist/componentBuild.js +14 -5
- package/dist/componentClient.d.ts +61 -30
- package/dist/componentClient.js +11 -1
- package/dist/componentImports.d.ts +8 -5
- package/dist/componentImports.js +23 -4
- package/dist/componentModule.js +2 -1
- package/dist/componentWire.d.ts +2 -1
- package/dist/componentWire.js +34 -2
- package/dist/config.d.ts +28 -14
- package/dist/config.js +20 -10
- package/dist/connections.d.ts +9 -4
- package/dist/connections.js +7 -4
- package/dist/declarations.d.ts +46 -17
- package/dist/declarations.js +46 -15
- package/dist/descriptors.d.ts +242 -97
- package/dist/descriptors.js +145 -41
- package/dist/dev.d.ts +6 -5
- package/dist/dev.js +6 -5
- package/dist/document.d.ts +74 -25
- package/dist/document.js +32 -11
- package/dist/dowry.d.ts +241 -0
- package/dist/dowry.js +315 -0
- package/dist/engines.d.ts +16 -7
- package/dist/engines.js +6 -4
- package/dist/eventMapLaws.d.ts +19 -8
- package/dist/eventMapLaws.js +9 -6
- package/dist/events.d.ts +101 -39
- package/dist/events.js +106 -33
- package/dist/executor.d.ts +122 -41
- package/dist/executor.js +188 -95
- package/dist/extension.d.ts +99 -35
- package/dist/extension.js +43 -9
- package/dist/facets.d.ts +2 -1
- package/dist/facets.js +4 -2
- package/dist/foldedSections.d.ts +4 -2
- package/dist/foldedSections.js +2 -1
- package/dist/genres.d.ts +123 -41
- package/dist/genres.js +127 -22
- package/dist/guardedConnection.d.ts +4 -3
- package/dist/guardedConnection.js +4 -3
- package/dist/handlebarsReach.d.ts +1 -1
- package/dist/handlebarsReach.js +1 -1
- package/dist/hash.d.ts +16 -5
- package/dist/hash.js +14 -4
- package/dist/hookGrants.d.ts +3 -2
- package/dist/hookGrants.js +6 -4
- package/dist/hooks.d.ts +21 -16
- package/dist/hooks.js +12 -10
- package/dist/hostElements.d.ts +41 -17
- package/dist/hostElements.js +49 -17
- package/dist/i18n.d.ts +5 -3
- package/dist/i18n.js +5 -3
- package/dist/identity.d.ts +4 -3
- package/dist/identity.js +4 -3
- package/dist/index.d.ts +5 -0
- package/dist/index.js +15 -0
- package/dist/layout.d.ts +36 -15
- package/dist/layout.js +2 -2
- package/dist/loadouts.d.ts +97 -0
- package/dist/loadouts.js +81 -0
- package/dist/media.d.ts +26 -4
- package/dist/media.js +2 -1
- package/dist/messageBlocks.d.ts +44 -32
- package/dist/messageBlocks.js +23 -18
- package/dist/migration.d.ts +16 -8
- package/dist/migration.js +14 -8
- package/dist/names.d.ts +2 -1
- package/dist/names.js +2 -1
- package/dist/nodeInput.d.ts +2 -1
- package/dist/nodeInput.js +2 -1
- package/dist/participants.d.ts +22 -15
- package/dist/participants.js +14 -12
- package/dist/personGate.d.ts +2 -1
- package/dist/personGate.js +2 -1
- package/dist/pluginHarness.d.ts +8 -3
- package/dist/pluginHarness.js +4 -2
- package/dist/pluginPermissions.d.ts +2 -1
- package/dist/pluginPermissions.js +12 -1
- package/dist/pluginRuleRef.d.ts +2 -2
- package/dist/pluginRuleRef.js +1 -1
- package/dist/predicates.d.ts +16 -11
- package/dist/predicates.js +7 -6
- package/dist/preview.d.ts +8 -3
- package/dist/preview.js +2 -1
- package/dist/promptBlocks.d.ts +5 -3
- package/dist/promptBlocks.js +5 -3
- package/dist/rankingDecisions.d.ts +2 -1
- package/dist/rankingDecisions.js +2 -1
- package/dist/receipt.d.ts +65 -29
- package/dist/receipt.js +9 -4
- package/dist/receiverRules.js +3 -2
- package/dist/refs.d.ts +34 -9
- package/dist/refs.js +33 -13
- package/dist/registry.d.ts +42 -23
- package/dist/registry.js +7 -5
- package/dist/review.d.ts +16 -5
- package/dist/review.js +11 -4
- package/dist/sampling.d.ts +54 -0
- package/dist/sampling.js +95 -3
- package/dist/sceneSettings.d.ts +312 -0
- package/dist/sceneSettings.js +425 -0
- package/dist/scope.d.ts +6 -4
- package/dist/scope.js +4 -3
- package/dist/scripts.d.ts +81 -14
- package/dist/scripts.js +90 -11
- package/dist/sessionDossier.d.ts +521 -0
- package/dist/sessionDossier.js +33 -0
- package/dist/sessionLayout.d.ts +303 -19
- package/dist/sessionLayout.js +354 -40
- package/dist/sessionSettings.d.ts +8 -5
- package/dist/settings.d.ts +45 -20
- package/dist/settings.js +19 -12
- package/dist/settingsSlot.d.ts +11 -8
- package/dist/settingsSlot.js +11 -8
- package/dist/shapes.d.ts +99 -36
- package/dist/shapes.js +101 -35
- package/dist/sheets.d.ts +4 -2
- package/dist/sheets.js +6 -3
- package/dist/statShapes.d.ts +2 -1
- package/dist/statShapes.js +2 -1
- package/dist/status.d.ts +13 -9
- package/dist/status.js +8 -6
- package/dist/storage.d.ts +2 -1
- package/dist/storage.js +2 -1
- package/dist/storyTime.d.ts +13 -7
- package/dist/storyTime.js +11 -6
- package/dist/strokes.d.ts +176 -0
- package/dist/strokes.js +281 -0
- package/dist/surfaces.d.ts +54 -25
- package/dist/surfaces.js +3 -3
- package/dist/template.d.ts +9 -5
- package/dist/template.js +5 -3
- package/dist/templateCheck.d.ts +2 -2
- package/dist/templateCheck.js +2 -2
- package/dist/templateFit.d.ts +37 -8
- package/dist/templateFit.js +92 -8
- package/dist/templateIds.d.ts +3 -3
- package/dist/templateIds.js +3 -3
- package/dist/templateScopeAt.d.ts +21 -11
- package/dist/templateScopeAt.js +21 -11
- package/dist/testing.d.ts +11 -4
- package/dist/testing.js +13 -5
- package/dist/tokenizers.d.ts +2 -2
- package/dist/tokenizers.js +2 -2
- package/dist/turnLock.d.ts +4 -2
- package/dist/turnLock.js +2 -1
- package/dist/turnOrder.d.ts +17 -11
- package/dist/turnOrder.js +9 -5
- package/dist/validate.d.ts +11 -8
- package/dist/validate.js +81 -10
- package/dist/values.d.ts +17 -8
- package/dist/values.js +11 -6
- package/dist/variables.d.ts +46 -7
- package/dist/variables.js +87 -6
- package/dist/verdicts.d.ts +20 -13
- package/dist/verdicts.js +17 -11
- package/dist/widgetDecls.d.ts +8 -4
- package/dist/widgetDecls.js +4 -2
- package/dist/widgets.d.ts +987 -94
- package/dist/widgets.js +93 -18
- package/dist/wire.d.ts +13 -6
- package/dist/wire.js +3 -3
- package/dist/worldinfo.d.ts +11 -6
- package/dist/worldinfo.js +8 -4
- package/host-elements.d.ts +13 -0
- package/package.json +1 -1
package/dist/shapes.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shapes — versioned edge/payload contracts
|
|
2
|
+
* Shapes — versioned edge/payload contracts.
|
|
3
3
|
*
|
|
4
4
|
* A shape is the unit of compatibility. Two nodes connect if the upstream port's
|
|
5
5
|
* shape is assignable to the downstream port's. Shapes are also connection kinds
|
|
6
|
-
* and sampling-config kinds
|
|
6
|
+
* and sampling-config kinds, which is what makes the system modality-agnostic:
|
|
7
7
|
* nothing anywhere switches on "is this an LLM".
|
|
8
8
|
* @public
|
|
9
|
+
* @ruling 01 §1, §3, F17
|
|
9
10
|
*/
|
|
10
11
|
export type ShapeId = string;
|
|
11
12
|
/** @experimental */
|
|
@@ -13,19 +14,36 @@ export interface ShapeDef {
|
|
|
13
14
|
id: ShapeId;
|
|
14
15
|
/** Shapes this one may be assigned to. A stream is assignable to its settled form. */
|
|
15
16
|
assignableTo?: ShapeId[];
|
|
16
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* True if a downstream node may begin consuming before the value settles.
|
|
19
|
+
* @ruling F22
|
|
20
|
+
*/
|
|
17
21
|
streaming?: boolean;
|
|
18
22
|
}
|
|
19
23
|
/** @experimental */
|
|
20
24
|
export declare function defineShape(def: ShapeDef): ShapeId;
|
|
21
25
|
/** @experimental */
|
|
22
26
|
export declare function getShape(id: ShapeId): ShapeDef | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Every registered shape, in registration order — core's and any a package
|
|
29
|
+
* declared in this process. The packager reads it to carry a package's own
|
|
30
|
+
* shapes (`<slug>:shape/…`) in the manifest, so an instance can register
|
|
31
|
+
* them from data before the events and ports that name them.
|
|
32
|
+
* @experimental
|
|
33
|
+
*/
|
|
34
|
+
export declare function listShapes(): ShapeDef[];
|
|
23
35
|
/** @experimental */
|
|
24
36
|
export declare function isStreaming(id: ShapeId): boolean;
|
|
25
37
|
/** The permissive sink: anything serializable may flow into a json port. @internal */
|
|
26
38
|
export declare const JSON_SHAPE = "core:shape/json@1";
|
|
27
39
|
/** Assignability: identical, into json, or declared assignable (transitively). @internal */
|
|
28
40
|
export declare function assignable(from: ShapeId, to: ShapeId, seen?: Set<string>): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Withdraw one shape — a host's uninstall of the package that declared it,
|
|
43
|
+
* so a reinstall may declare it afresh. Never a core shape.
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export declare function _withdrawShape(id: ShapeId): void;
|
|
29
47
|
/** Reset — test isolation only. @internal */
|
|
30
48
|
export declare function _clearShapes(): void;
|
|
31
49
|
/** @public */
|
|
@@ -36,12 +54,12 @@ export declare const S: {
|
|
|
36
54
|
/**
|
|
37
55
|
* Transcript rows — what `session-history@1` publishes on `main` and
|
|
38
56
|
* `messages` and what `process-messages@1` / `prose-transcript@1` read
|
|
39
|
-
* (declared so since 2026-09-17
|
|
57
|
+
* (declared so since 2026-09-17; the port had said
|
|
40
58
|
* `context-candidates@1` since the SDK was vendored while the value was
|
|
41
59
|
* always rows, and `validate()` never ran over the catalog to say so).
|
|
42
60
|
*
|
|
43
|
-
* **Not assignable to `context-candidates@1`** (
|
|
44
|
-
*
|
|
61
|
+
* **Not assignable to `context-candidates@1`** (decided the same day; the
|
|
62
|
+
* first declaration had made it one way). A transcript wired into a candidates
|
|
45
63
|
* port is a wiring the host silently drops: `concat-candidates` keys a
|
|
46
64
|
* row that is not a candidate as `undefined:<id>`, the ranker's `select`
|
|
47
65
|
* excludes it as `excluded_unknown_source`, and `assemble` handed rows
|
|
@@ -53,19 +71,21 @@ export declare const S: {
|
|
|
53
71
|
* rather than refusing, so a document built from the older corpus still
|
|
54
72
|
* compiles. The reverse was never declared either: a ranked candidates
|
|
55
73
|
* list is not a transcript, and a port that reads rows is handed rows.
|
|
74
|
+
* @ruling U5d review W9, U5d review R-a
|
|
56
75
|
*/
|
|
57
76
|
readonly messages: string;
|
|
58
77
|
readonly candidates: string;
|
|
59
78
|
readonly renderedBlocks: string;
|
|
60
79
|
readonly assembled: string;
|
|
61
80
|
/**
|
|
62
|
-
* What Assemble publishes after the allocation/formatting split
|
|
81
|
+
* What Assemble publishes after the allocation/formatting split: ordered
|
|
63
82
|
* **blocks** with role, source, token count and a `why` trail — not prose. The
|
|
64
83
|
* Provider's `wire` slot turns it into whatever its connection actually wants.
|
|
65
84
|
*
|
|
66
85
|
* Assignable to `assembled-context@1` so existing specs keep connecting while core
|
|
67
86
|
* migrates; the reverse is not assignable, because a rendered string has already
|
|
68
87
|
* thrown away everything the panel and the budget need.
|
|
88
|
+
* @ruling 16 §7
|
|
69
89
|
*/
|
|
70
90
|
readonly allocated: string;
|
|
71
91
|
/**
|
|
@@ -85,11 +105,12 @@ export declare const S: {
|
|
|
85
105
|
*/
|
|
86
106
|
readonly sessionCast: string;
|
|
87
107
|
/**
|
|
88
|
-
* The MCP connection kind
|
|
108
|
+
* The MCP connection kind. A connection whose shape is `mcp` is a
|
|
89
109
|
* Model Context Protocol server core talks to — foreign code SP speaks
|
|
90
110
|
* JSON-RPC with, never code SP loads. The shape doubles as the connection
|
|
91
|
-
* kind
|
|
111
|
+
* kind, so only MCP connections are offerable on an MCP provider's
|
|
92
112
|
* connection slot.
|
|
113
|
+
* @ruling 14 §1, F17
|
|
93
114
|
*/
|
|
94
115
|
readonly mcp: string;
|
|
95
116
|
readonly templateContext: string;
|
|
@@ -97,20 +118,21 @@ export declare const S: {
|
|
|
97
118
|
readonly budget: string;
|
|
98
119
|
readonly rowIds: string;
|
|
99
120
|
/**
|
|
100
|
-
* The output of an async block or a map
|
|
121
|
+
* The output of an async block or a map. An ordered list in
|
|
101
122
|
* **declaration order**, one entry per branch — never a merged object, because
|
|
102
123
|
* merging needs a field-collision policy and every such policy is wrong for
|
|
103
124
|
* somebody. `async` and `map` produce the same shape, so one equivalence
|
|
104
|
-
* harness covers both
|
|
125
|
+
* harness covers both.
|
|
126
|
+
* @ruling 01 §1, 13 §1, F26
|
|
105
127
|
*/
|
|
106
128
|
readonly branchResults: string;
|
|
107
129
|
/**
|
|
108
|
-
* What a **gate-eligible** Consumer publishes
|
|
130
|
+
* What a **gate-eligible** Consumer publishes. Discriminated, because
|
|
109
131
|
* a write may in principle land as a proposal rather than a row — and a
|
|
110
132
|
* proposal id in a shared id space is indistinguishable from a real row id
|
|
111
133
|
* right up until the foreign key dangles.
|
|
112
134
|
*
|
|
113
|
-
* **Assignable to `row-ids@1`** since the 2026-09-15 rulings
|
|
135
|
+
* **Assignable to `row-ids@1`** since the 2026-09-15 rulings.
|
|
114
136
|
* It was deliberately not, and the reason was the `async` review position:
|
|
115
137
|
* a row proposed under it might never exist. That position is gone
|
|
116
138
|
* (`review.ts` — on or off, nothing between): `on` parks the run until the
|
|
@@ -119,15 +141,17 @@ export declare const S: {
|
|
|
119
141
|
* a create → update pair on one row inside one run legal, and it is how a
|
|
120
142
|
* pipeline owns its reply: a placeholder outlet straight after the inlet,
|
|
121
143
|
* and an `update-message` at the end that fills it.
|
|
144
|
+
* @ruling 13 §7j-b, 09-B B4, R-17
|
|
122
145
|
*/
|
|
123
146
|
readonly writeResult: string;
|
|
124
147
|
/**
|
|
125
148
|
* A request to summarize something into a lore entry.
|
|
126
149
|
*
|
|
127
150
|
* Its own shape rather than `json@1` because it is what the summarize
|
|
128
|
-
* pipelines take as *input*, and
|
|
151
|
+
* pipelines take as *input*, and core matches an event's payload against a
|
|
129
152
|
* pipeline's Input contract by shape. A request typed as bare json would make
|
|
130
153
|
* every pipeline compatible with every event.
|
|
154
|
+
* @ruling 11 §2
|
|
131
155
|
*/
|
|
132
156
|
readonly summarizeRequest: string;
|
|
133
157
|
/**
|
|
@@ -138,6 +162,19 @@ export declare const S: {
|
|
|
138
162
|
* that permitted reordering would turn a narrative into a pile of events.
|
|
139
163
|
*/
|
|
140
164
|
readonly drafts: string;
|
|
165
|
+
/**
|
|
166
|
+
* 🚧 A scene's transcript, rendered — one **transcript unit** per message:
|
|
167
|
+
* `{ messageId, text, tokens }[]`, in reading order, from
|
|
168
|
+
* `core:task/render-transcript@1` (live scenes, 2026-10-13).
|
|
169
|
+
*
|
|
170
|
+
* Its own shape rather than `messages@1` because a unit is already TEXT —
|
|
171
|
+
* the genre's transcript template has laid the line out — and the batch
|
|
172
|
+
* cut counts it as it stands. Every unit names the message it was
|
|
173
|
+
* rendered from, so a batch can always be traced back to its rows.
|
|
174
|
+
* Not a transcript *line* of the prompt (Assemble's `sessionMessages`):
|
|
175
|
+
* a unit is what a summarizer drafts from, never what a reply is sent.
|
|
176
|
+
*/
|
|
177
|
+
readonly transcriptUnits: string;
|
|
141
178
|
/** Scenes with their messages, as the graph builder walks them. */
|
|
142
179
|
readonly graphScenes: string;
|
|
143
180
|
/**
|
|
@@ -149,19 +186,20 @@ export declare const S: {
|
|
|
149
186
|
*/
|
|
150
187
|
readonly graphProposal: string;
|
|
151
188
|
/**
|
|
152
|
-
* Who speaks next, and how that was decided
|
|
189
|
+
* Who speaks next, and how that was decided.
|
|
153
190
|
*
|
|
154
191
|
* Its own shape rather than `row-ids@1` because it is the swap-list
|
|
155
192
|
* membership test: a task whose `main` publishes this shape *is* a
|
|
156
193
|
* next-speaker strategy, and the dropdown is a SELECT over such rows — an
|
|
157
194
|
* extension's strategy appears beside core's by existing, the same way a
|
|
158
195
|
* chat mode does. The bundle carries `{speaker, characterId, strategy, via}`
|
|
159
|
-
* — the speaker as a participant reference beside the bare id
|
|
196
|
+
* — the speaker as a participant reference beside the bare id —
|
|
160
197
|
* and each rides its own port for wiring.
|
|
198
|
+
* @ruling 19 §5, R-18 (3)
|
|
161
199
|
*/
|
|
162
200
|
readonly speakerSelection: string;
|
|
163
201
|
/**
|
|
164
|
-
* A participant reference
|
|
202
|
+
* A participant reference: `character:<id>`,
|
|
165
203
|
* `envoy:<slug>`, `user:<id>`, or a role — see `participants.ts`.
|
|
166
204
|
*
|
|
167
205
|
* The inlet's `speaker` port and a turn strategy's carry this, so one
|
|
@@ -169,19 +207,21 @@ export declare const S: {
|
|
|
169
207
|
* envoy alike. Not assignable to `row-ids@1` on purpose: a reference is a
|
|
170
208
|
* name, and a node that wants the bare character id keeps reading
|
|
171
209
|
* `characterId` until every reader speaks references.
|
|
210
|
+
* @ruling R-15, R-18 (3)
|
|
172
211
|
*/
|
|
173
212
|
readonly participantRef: string;
|
|
174
213
|
/**
|
|
175
|
-
* An ordered list of participant references, no duplicates
|
|
176
|
-
*
|
|
214
|
+
* An ordered list of participant references, no duplicates: the inlet's
|
|
215
|
+
* `recipients` — the cast members a press
|
|
177
216
|
* collected (`CollectedRecipients`). Its own id rather than `json@1` so a
|
|
178
217
|
* port that wants people is not handed any list. Consumed by
|
|
179
|
-
* `core:query/resolve-state-changes@1`'s `owners
|
|
218
|
+
* `core:query/resolve-state-changes@1`'s `owners`: the Whisper's
|
|
180
219
|
* one change, made on each recipient.
|
|
220
|
+
* @ruling lair pass R3 (2026-09-28), R10
|
|
181
221
|
*/
|
|
182
222
|
readonly participantRefs: string;
|
|
183
223
|
/**
|
|
184
|
-
* One **session change** (
|
|
224
|
+
* One **session change** (built 2026-09-16): the payload every
|
|
185
225
|
* built-in write's event carries — `{ event, sessionId, messageId, at,
|
|
186
226
|
* … }` plus what was lost or replaced (`lost` on a delete, `previous` on
|
|
187
227
|
* an edit or a swipe). The next reply's inlet publishes the changes since
|
|
@@ -191,75 +231,84 @@ export declare const S: {
|
|
|
191
231
|
* Its own id rather than `json@1`, for the reason `summarize-request@1`
|
|
192
232
|
* gives: `pipeline_event_registry.payload_shape` names it, and an event
|
|
193
233
|
* whose payload was bare json would match every inlet.
|
|
234
|
+
* @ruling R-15
|
|
194
235
|
*/
|
|
195
236
|
readonly sessionChange: string;
|
|
196
237
|
/**
|
|
197
|
-
* A **form addressed** to a participant the AI portrays
|
|
198
|
-
*
|
|
238
|
+
* A **form addressed** to a participant the AI portrays: the payload of
|
|
239
|
+
* `core:event/form-addressed@1` — `{ sessionId,
|
|
199
240
|
* messageId, blockId, action, addressee }` (`FormAddressedPayload`,
|
|
200
241
|
* events.ts) — and what `core:inlet/form-addressed@1` publishes, port by
|
|
201
242
|
* port, with the block itself beside them. Its own id for the reason
|
|
202
243
|
* `session-change@1` has: the registry's `payload_shape` names it.
|
|
244
|
+
* @ruling R-15 *Forms*, 30 §U5d
|
|
203
245
|
*/
|
|
204
246
|
readonly formAddressed: string;
|
|
205
247
|
/**
|
|
206
|
-
* A **cast change
|
|
248
|
+
* A **cast change**: the payload of
|
|
207
249
|
* `core:event/cast-changed@1` — `{ event, sessionId, at, cause, ref,
|
|
208
250
|
* change, value }` (`CastChangePayload`, events.ts). A seated
|
|
209
251
|
* participant was switched on or off, or its `position` or portrayal moved;
|
|
210
252
|
* a seat added or removed is `member-added` / `member-removed`, not
|
|
211
253
|
* this. Its own id for the reason `session-change@1` has.
|
|
254
|
+
* @ruling PLAN-turn-order §4.1
|
|
212
255
|
*/
|
|
213
256
|
readonly castChange: string;
|
|
214
257
|
/**
|
|
215
|
-
* **Annex changed
|
|
258
|
+
* **Annex changed**: the payload of
|
|
216
259
|
* `core:event/annex-changed@1` — `{ event, sessionId, at, cause, owner }`
|
|
217
260
|
* (`AnnexChangePayload`, events.ts). Names whose entry moved, never the
|
|
218
261
|
* value.
|
|
262
|
+
* @ruling PLAN-turn-order §4.14, R30
|
|
219
263
|
*/
|
|
220
264
|
readonly annexChange: string;
|
|
221
265
|
/** What a listener receives for an event a pipeline recorded: the envelope, the author's payload inside. */
|
|
222
266
|
readonly recordedEvent: string;
|
|
223
267
|
/**
|
|
224
|
-
* **Turn order changed
|
|
268
|
+
* **Turn order changed**: the payload of
|
|
225
269
|
* `core:event/turn-order-changed@1` — `{ event, sessionId, at, cause,
|
|
226
270
|
* runId, turnOrder }` (`TurnOrderChangedPayload`, events.ts), the
|
|
227
271
|
* document as `core:outlet/set-turn-order@1` wrote it. Core-internal:
|
|
228
272
|
* the auto-advance listener and the `sessions:turnOrder` push read it;
|
|
229
273
|
* a genre may not bind a spec to it.
|
|
274
|
+
* @ruling §4.1
|
|
230
275
|
*/
|
|
231
276
|
readonly turnOrderChanged: string;
|
|
232
277
|
/**
|
|
233
|
-
* The session's **turn order** as state
|
|
278
|
+
* The session's **turn order** as state: `TurnOrderV1` —
|
|
234
279
|
* `{ v, order, candidates, basedOnAt, computedAt, runId, event,
|
|
235
280
|
* strategy }`, stored at `sessions.metadata.turnOrder` and written by
|
|
236
281
|
* `core:outlet/set-turn-order@1` alone. Not the entries alone and not
|
|
237
282
|
* the candidates alone: the whole answer, with what it answered.
|
|
283
|
+
* @ruling §4.2
|
|
238
284
|
*/
|
|
239
285
|
readonly turnOrder: string;
|
|
240
286
|
/**
|
|
241
|
-
* **Turn candidates
|
|
287
|
+
* **Turn candidates**: `TurnCandidateV1[]` — the participants the
|
|
242
288
|
* pool admitted this run, in pool order. What `core:task/turn-pool@1`
|
|
243
289
|
* publishes, an orderer rewrites, and a strategy reads. Open objects:
|
|
244
290
|
* an orderer or a plugin may add keys and core passes them through.
|
|
291
|
+
* @ruling §4.2
|
|
245
292
|
*/
|
|
246
293
|
readonly turnCandidates: string;
|
|
247
294
|
/**
|
|
248
|
-
* **Turn entries
|
|
295
|
+
* **Turn entries**: `TurnEntryV1[]` — prepared turns, each
|
|
249
296
|
* `{ ref, channel?, subject?, via }`. What a strategy publishes on
|
|
250
297
|
* `main` and `order`; the shape-based swap list keys a strategy on it,
|
|
251
298
|
* as it keyed one on `speaker-selection@1` before (that shape stays
|
|
252
299
|
* until the strategies are re-ported).
|
|
300
|
+
* @ruling §4.2
|
|
253
301
|
*/
|
|
254
302
|
readonly turnEntries: string;
|
|
255
303
|
/**
|
|
256
|
-
* **Sprite choices
|
|
304
|
+
* **Sprite choices**: what a line's speaker can show
|
|
257
305
|
* — `{ characterId, set, defaultSet, labels, last, recent, decidedBy }`.
|
|
258
306
|
* `set` is the sprite set in force for the line (a session override, the
|
|
259
307
|
* cast member's amendment, or the card's default — `decidedBy` says
|
|
260
308
|
* which); `labels` are that set's sprite labels with an image; `last` is
|
|
261
309
|
* the speaker's previous shown sprite, for stickiness. What
|
|
262
310
|
* `core:oracle/pick-sprite@1` publishes beside its pick, for the receipt.
|
|
311
|
+
* @ruling DESIGN-sprites §5.2
|
|
263
312
|
*/
|
|
264
313
|
readonly spriteChoices: string;
|
|
265
314
|
/**
|
|
@@ -269,11 +318,12 @@ export declare const S: {
|
|
|
269
318
|
*/
|
|
270
319
|
readonly spritePick: string;
|
|
271
320
|
/**
|
|
272
|
-
* The **settings document
|
|
321
|
+
* The **settings document**: `SessionSettingsV1` — every
|
|
273
322
|
* setting a person can see in session settings, resolved once per run
|
|
274
323
|
* with the cascade applied (session > genre > core), and handed to the
|
|
275
324
|
* inlet as `session`. A spec reads `$.input.session.fields.tone` and
|
|
276
325
|
* never learns which table it came from.
|
|
326
|
+
* @ruling §4.12
|
|
277
327
|
*/
|
|
278
328
|
readonly sessionSettings: string;
|
|
279
329
|
/**
|
|
@@ -290,29 +340,42 @@ export declare const S: {
|
|
|
290
340
|
* as its attachments. */
|
|
291
341
|
readonly mediaList: string;
|
|
292
342
|
/**
|
|
293
|
-
* 🚧 **
|
|
294
|
-
*
|
|
343
|
+
* 🚧 **An image series**: `ImageSeriesItemV1[]` (media.ts) — the pictures
|
|
344
|
+
* one image step is asked for, each `{ key, vars }`. The prompt rows
|
|
345
|
+
* render once per item with `vars` in scope; every media item the step
|
|
346
|
+
* returns carries the `key` of the item it was drawn for. A spec says
|
|
347
|
+
* WHAT pictures it wants; how many calls that costs is the host's packing,
|
|
348
|
+
* never the spec's. Absent on the port = one item, key `"1"`.
|
|
349
|
+
* @ruling DESIGN-image-generation §4.7
|
|
350
|
+
*/
|
|
351
|
+
readonly imageSeries: string;
|
|
352
|
+
/**
|
|
353
|
+
* 🚧 **A transcript's attachments, by message**:
|
|
354
|
+
* `Record<messageId, HistoryAttachmentV1[]>` (media.ts) — each
|
|
295
355
|
* message's `core:image` / `core:file` parts, in part order. What
|
|
296
356
|
* `core:query/history-attachments@1` publishes and
|
|
297
357
|
* `core:task/place-attachments@1` reads, so each line's files travel with
|
|
298
358
|
* that line's own turn rather than with the request as a whole.
|
|
359
|
+
* @ruling PLAN-composer-attachments §3.5
|
|
299
360
|
*/
|
|
300
361
|
readonly mediaByMessage: string;
|
|
301
362
|
/**
|
|
302
|
-
* A reply's **folded sections
|
|
363
|
+
* A reply's **folded sections**: `FoldedSectionV1[]`
|
|
303
364
|
* (widgets.ts) — each `{ kind, label, content }` or `{ kind, label, items }`,
|
|
304
365
|
* shown collapsed beside the body and never read into the prompt. What the
|
|
305
366
|
* message outlets' `sections` in-port takes.
|
|
367
|
+
* @ruling B4, D5 (2026-09-27)
|
|
306
368
|
*/
|
|
307
369
|
readonly foldedSections: string;
|
|
308
370
|
readonly audio: string;
|
|
309
371
|
readonly image: string;
|
|
310
372
|
readonly json: string;
|
|
311
373
|
/**
|
|
312
|
-
* What a ranker judged
|
|
374
|
+
* What a ranker judged: one `RankingDecisionV1`
|
|
313
375
|
* per candidate. A node whose out-port carries this shape is RECORDED by
|
|
314
376
|
* the host — core's rankers and a plugin's alike — into the ranking store.
|
|
315
|
-
*
|
|
377
|
+
* It carries `S`'s own tag.
|
|
378
|
+
* @ruling PLAN-sdk-1.0 §3.9, R64, L1, PLAN-sdk-1.0 §4 ✓
|
|
316
379
|
*/
|
|
317
380
|
readonly decisions: string;
|
|
318
381
|
/**
|