@serene-pub/sdk 0.6.0-pr-1
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/LICENSE +202 -0
- package/NOTICE +17 -0
- package/README.md +368 -0
- package/dist/actions.d.ts +572 -0
- package/dist/actions.js +829 -0
- package/dist/annexFields.d.ts +234 -0
- package/dist/annexFields.js +413 -0
- package/dist/announce.d.ts +464 -0
- package/dist/announce.js +426 -0
- package/dist/attributes.d.ts +670 -0
- package/dist/attributes.js +904 -0
- package/dist/bands.d.ts +125 -0
- package/dist/bands.js +256 -0
- package/dist/builder.d.ts +683 -0
- package/dist/builder.js +677 -0
- package/dist/candidates.d.ts +109 -0
- package/dist/candidates.js +118 -0
- package/dist/capabilities.d.ts +744 -0
- package/dist/capabilities.js +679 -0
- package/dist/channels.d.ts +106 -0
- package/dist/channels.js +129 -0
- package/dist/clauses.d.ts +40 -0
- package/dist/clauses.js +43 -0
- package/dist/component.d.ts +33 -0
- package/dist/component.js +27 -0
- package/dist/componentBuild.d.ts +48 -0
- package/dist/componentBuild.js +84 -0
- package/dist/componentClient.d.ts +100 -0
- package/dist/componentClient.js +13 -0
- package/dist/componentImports.d.ts +51 -0
- package/dist/componentImports.js +106 -0
- package/dist/componentModule.d.ts +8 -0
- package/dist/componentModule.js +270 -0
- package/dist/componentWire.d.ts +130 -0
- package/dist/componentWire.js +280 -0
- package/dist/config.d.ts +295 -0
- package/dist/config.js +231 -0
- package/dist/connections.d.ts +89 -0
- package/dist/connections.js +131 -0
- package/dist/declarations.d.ts +290 -0
- package/dist/declarations.js +794 -0
- package/dist/descriptors.d.ts +1774 -0
- package/dist/descriptors.js +1329 -0
- package/dist/dev.d.ts +136 -0
- package/dist/dev.js +161 -0
- package/dist/document.d.ts +202 -0
- package/dist/document.js +312 -0
- package/dist/engines.d.ts +117 -0
- package/dist/engines.js +203 -0
- package/dist/eventMapLaws.d.ts +63 -0
- package/dist/eventMapLaws.js +128 -0
- package/dist/events.d.ts +554 -0
- package/dist/events.js +633 -0
- package/dist/executor.d.ts +771 -0
- package/dist/executor.js +1829 -0
- package/dist/extension.d.ts +448 -0
- package/dist/extension.js +315 -0
- package/dist/facets.d.ts +53 -0
- package/dist/facets.js +60 -0
- package/dist/foldedSections.d.ts +74 -0
- package/dist/foldedSections.js +161 -0
- package/dist/genres.d.ts +507 -0
- package/dist/genres.js +633 -0
- package/dist/guardedConnection.d.ts +138 -0
- package/dist/guardedConnection.js +341 -0
- package/dist/handlebarsReach.d.ts +122 -0
- package/dist/handlebarsReach.js +222 -0
- package/dist/hash.d.ts +146 -0
- package/dist/hash.js +166 -0
- package/dist/hookGrants.d.ts +47 -0
- package/dist/hookGrants.js +68 -0
- package/dist/hooks.d.ts +290 -0
- package/dist/hooks.js +113 -0
- package/dist/hostElements.d.ts +447 -0
- package/dist/hostElements.js +702 -0
- package/dist/i18n.d.ts +94 -0
- package/dist/i18n.js +123 -0
- package/dist/identity.d.ts +93 -0
- package/dist/identity.js +135 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +176 -0
- package/dist/layout.d.ts +194 -0
- package/dist/layout.js +40 -0
- package/dist/media.d.ts +202 -0
- package/dist/media.js +70 -0
- package/dist/messageBlocks.d.ts +487 -0
- package/dist/messageBlocks.js +683 -0
- package/dist/migration.d.ts +128 -0
- package/dist/migration.js +261 -0
- package/dist/names.d.ts +78 -0
- package/dist/names.js +136 -0
- package/dist/nodeInput.d.ts +399 -0
- package/dist/nodeInput.js +178 -0
- package/dist/participants.d.ts +291 -0
- package/dist/participants.js +252 -0
- package/dist/personGate.d.ts +62 -0
- package/dist/personGate.js +77 -0
- package/dist/pick.d.ts +84 -0
- package/dist/pick.js +103 -0
- package/dist/pluginHarness.d.ts +235 -0
- package/dist/pluginHarness.js +558 -0
- package/dist/pluginPermissions.d.ts +25 -0
- package/dist/pluginPermissions.js +97 -0
- package/dist/pluginRuleRef.d.ts +13 -0
- package/dist/pluginRuleRef.js +10 -0
- package/dist/predicates.d.ts +182 -0
- package/dist/predicates.js +249 -0
- package/dist/preview.d.ts +120 -0
- package/dist/preview.js +82 -0
- package/dist/promptBlocks.d.ts +130 -0
- package/dist/promptBlocks.js +197 -0
- package/dist/rankingDecisions.d.ts +60 -0
- package/dist/rankingDecisions.js +48 -0
- package/dist/receipt.d.ts +313 -0
- package/dist/receipt.js +60 -0
- package/dist/receiverRules.d.ts +24 -0
- package/dist/receiverRules.js +94 -0
- package/dist/refs.d.ts +117 -0
- package/dist/refs.js +137 -0
- package/dist/registry.d.ts +230 -0
- package/dist/registry.js +273 -0
- package/dist/review.d.ts +108 -0
- package/dist/review.js +97 -0
- package/dist/sampling.d.ts +152 -0
- package/dist/sampling.js +712 -0
- package/dist/scope.d.ts +65 -0
- package/dist/scope.js +128 -0
- package/dist/scripts.d.ts +243 -0
- package/dist/scripts.js +326 -0
- package/dist/sessionLayout.d.ts +339 -0
- package/dist/sessionLayout.js +503 -0
- package/dist/sessionSettings.d.ts +70 -0
- package/dist/sessionSettings.js +2 -0
- package/dist/settings.d.ts +501 -0
- package/dist/settings.js +604 -0
- package/dist/settingsSlot.d.ts +108 -0
- package/dist/settingsSlot.js +166 -0
- package/dist/shapes.d.ts +373 -0
- package/dist/shapes.js +408 -0
- package/dist/sheets.d.ts +165 -0
- package/dist/sheets.js +251 -0
- package/dist/statShapes.d.ts +96 -0
- package/dist/statShapes.js +112 -0
- package/dist/status.d.ts +103 -0
- package/dist/status.js +125 -0
- package/dist/storage.d.ts +145 -0
- package/dist/storage.js +33 -0
- package/dist/storyTime.d.ts +308 -0
- package/dist/storyTime.js +560 -0
- package/dist/surfaces.d.ts +501 -0
- package/dist/surfaces.js +292 -0
- package/dist/template.d.ts +312 -0
- package/dist/template.js +554 -0
- package/dist/templateCheck.d.ts +60 -0
- package/dist/templateCheck.js +516 -0
- package/dist/templateFit.d.ts +157 -0
- package/dist/templateFit.js +349 -0
- package/dist/templateIds.d.ts +138 -0
- package/dist/templateIds.js +144 -0
- package/dist/templateScopeAt.d.ts +131 -0
- package/dist/templateScopeAt.js +354 -0
- package/dist/testing.d.ts +177 -0
- package/dist/testing.js +383 -0
- package/dist/tokenizers.d.ts +113 -0
- package/dist/tokenizers.js +184 -0
- package/dist/turnLock.d.ts +96 -0
- package/dist/turnLock.js +79 -0
- package/dist/turnOrder.d.ts +143 -0
- package/dist/turnOrder.js +128 -0
- package/dist/validate.d.ts +74 -0
- package/dist/validate.js +1399 -0
- package/dist/values.d.ts +212 -0
- package/dist/values.js +390 -0
- package/dist/variables.d.ts +493 -0
- package/dist/variables.js +662 -0
- package/dist/verdicts.d.ts +275 -0
- package/dist/verdicts.js +348 -0
- package/dist/widgetDecls.d.ts +88 -0
- package/dist/widgetDecls.js +119 -0
- package/dist/widgets.d.ts +1527 -0
- package/dist/widgets.js +208 -0
- package/dist/wire.d.ts +126 -0
- package/dist/wire.js +140 -0
- package/dist/worldinfo.d.ts +150 -0
- package/dist/worldinfo.js +212 -0
- package/host-elements.d.ts +914 -0
- package/package.json +67 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `settings` slot — the one slot the substrate declares (R-9, ruled
|
|
3
|
+
* 2026-09-15; 01 §1, 12 §2).
|
|
4
|
+
*
|
|
5
|
+
* Three switches have always been read by the executor off `config[key]
|
|
6
|
+
* .settings.*` — `enabled` to skip an optional node, `review` to park a gated
|
|
7
|
+
* one, `mode` to run a gather clause in turn — and until 2026-09-16 nothing
|
|
8
|
+
* *declared* them: `settings` was not a `SlotKind`, and the configuration
|
|
9
|
+
* panel synthesised the three controls by hand, wording and defaults included.
|
|
10
|
+
* A control the executor honours and no declaration names is the shape 01
|
|
11
|
+
* calls a substrate key and 12 §2 calls a slot; this file makes the second
|
|
12
|
+
* word true.
|
|
13
|
+
*
|
|
14
|
+
* What is declared here is derived, never authored. A definition says
|
|
15
|
+
* `optional: true` or `effects: 'write'` and the slot follows from that; a
|
|
16
|
+
* clause says `gather` and its `mode` follows. The projection
|
|
17
|
+
* (`snapshotRegistry`) writes the slot onto the registry row so the panel
|
|
18
|
+
* reads it from rows like every other slot (F6), and the content hash leaves it
|
|
19
|
+
* out — see `authoredSlots` — because a slot nobody authored cannot be a change
|
|
20
|
+
* to what somebody authored; `optional` and `effects` are hashed already.
|
|
21
|
+
*
|
|
22
|
+
* The addresses are unchanged: `<nodeKey>.settings.enabled`,
|
|
23
|
+
* `<nodeKey>.settings.review`, `<clauseId>.settings.mode`. Every stored row at
|
|
24
|
+
* one of them is exactly as valid as it was.
|
|
25
|
+
*/
|
|
26
|
+
import type { FieldDecl } from './settings.js';
|
|
27
|
+
import type { SlotDecl } from './descriptors.js';
|
|
28
|
+
import { type ReviewPosition } from './review.js';
|
|
29
|
+
/** The reserved slot name. `register` refuses a descriptor that authors it. @experimental */
|
|
30
|
+
export declare const SETTINGS_SLOT: 'settings';
|
|
31
|
+
/**
|
|
32
|
+
* `enabled` — may this optional node be switched off (`Descriptor.optional`).
|
|
33
|
+
*
|
|
34
|
+
* Off skips the node before its binding runs, which is the point: a starved
|
|
35
|
+
* source is still queried; a switched-off one costs nothing. Only a node whose
|
|
36
|
+
* contract says an empty result is fine may carry it — offering it anywhere
|
|
37
|
+
* else would let somebody turn off a node whose output the next one requires.
|
|
38
|
+
* @experimental
|
|
39
|
+
*/
|
|
40
|
+
export declare const ENABLED_FIELD: FieldDecl;
|
|
41
|
+
/**
|
|
42
|
+
* `enabled` on an optional node that is not a source — a model call such as
|
|
43
|
+
* the planner or the state keeper, or a task. The same switch at the same
|
|
44
|
+
* address; only the words differ, because *Use this source* over a model call
|
|
45
|
+
* says something untrue about it.
|
|
46
|
+
* @experimental
|
|
47
|
+
*/
|
|
48
|
+
export declare const ENABLED_STEP_FIELD: FieldDecl;
|
|
49
|
+
/**
|
|
50
|
+
* `review` — the gate's position on a node whose `effects` gate (01 §7).
|
|
51
|
+
*
|
|
52
|
+
* Declared per gated node from its `reviewDefault`, which an author may set
|
|
53
|
+
* **on** and can never set to *never* — the declaration's `of` has no such
|
|
54
|
+
* value, which is F14 enforced by the field language rather than by a check.
|
|
55
|
+
* The two retired spellings (`sync`, `async`) are folded to `on` here exactly
|
|
56
|
+
* as `resolvePosition` folds them at run time, so the panel's default and the
|
|
57
|
+
* gate's agree.
|
|
58
|
+
* @experimental
|
|
59
|
+
*/
|
|
60
|
+
export declare function reviewField(reviewDefault: ReviewPosition | undefined): FieldDecl;
|
|
61
|
+
/**
|
|
62
|
+
* The substrate's `settings` slot for a definition, or nothing when the
|
|
63
|
+
* definition has no switch to declare.
|
|
64
|
+
*
|
|
65
|
+
* `enabled` when the node is `optional` — worded as a source for a query, as a
|
|
66
|
+
* step for anything else; `review` when its `effects` gate. A
|
|
67
|
+
* node that is both (`embed-text`, `generate-json`) carries both fields on
|
|
68
|
+
* the one slot — one address prefix, as the executor has always read it.
|
|
69
|
+
* @experimental
|
|
70
|
+
*/
|
|
71
|
+
export declare function settingsSlotFor(d: {
|
|
72
|
+
kind?: string;
|
|
73
|
+
optional?: boolean;
|
|
74
|
+
effects?: string;
|
|
75
|
+
reviewDefault?: ReviewPosition;
|
|
76
|
+
}): SlotDecl | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* The substrate's `settings` slot for a clause, or nothing.
|
|
79
|
+
*
|
|
80
|
+
* A clause is not a node and has no registry row — it is a construct of the
|
|
81
|
+
* substrate itself, the same in every document — so its declaration's home
|
|
82
|
+
* is this function rather than a column: the row supplies `kind` and `mode`,
|
|
83
|
+
* which are the document's, and the wording is `CLAUSE_MODE_DECL`'s. Only a
|
|
84
|
+
* `gather` clause carries one: `each` and `loop` have a mode too, but theirs
|
|
85
|
+
* is a property of what they iterate rather than a choice about concurrency,
|
|
86
|
+
* and a junction's is the same story one construct over. The author's
|
|
87
|
+
* declared mode is the default; the person's setting wins (`resolveClauseMode`).
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
export declare function clauseSettingsSlotFor(clause: {
|
|
91
|
+
kind: string;
|
|
92
|
+
mode?: string | null;
|
|
93
|
+
}): SlotDecl | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* A row's slots minus the substrate's — what the content hash digests
|
|
96
|
+
* (`definitionContract`).
|
|
97
|
+
*
|
|
98
|
+
* Not hashed, and deliberately: the slot is derived from `optional`,
|
|
99
|
+
* `effects` and `reviewDefault`. The first two are contract and hashed on
|
|
100
|
+
* their own terms, so digesting the slot again would move every optional and
|
|
101
|
+
* every gated definition's pin for a projection change nobody authored;
|
|
102
|
+
* `reviewDefault` is policy (plans/31 V6) and hashed nowhere. The name is
|
|
103
|
+
* reserved (`checkNoAuthoredSettings`), so stripping by name can never strip
|
|
104
|
+
* something an author wrote.
|
|
105
|
+
* @experimental
|
|
106
|
+
*/
|
|
107
|
+
export declare function authoredSlots<T>(slots: Record<string, T> | undefined): Record<string, T>;
|
|
108
|
+
//# sourceMappingURL=settingsSlot.d.ts.map
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `settings` slot — the one slot the substrate declares (R-9, ruled
|
|
3
|
+
* 2026-09-15; 01 §1, 12 §2).
|
|
4
|
+
*
|
|
5
|
+
* Three switches have always been read by the executor off `config[key]
|
|
6
|
+
* .settings.*` — `enabled` to skip an optional node, `review` to park a gated
|
|
7
|
+
* one, `mode` to run a gather clause in turn — and until 2026-09-16 nothing
|
|
8
|
+
* *declared* them: `settings` was not a `SlotKind`, and the configuration
|
|
9
|
+
* panel synthesised the three controls by hand, wording and defaults included.
|
|
10
|
+
* A control the executor honours and no declaration names is the shape 01
|
|
11
|
+
* calls a substrate key and 12 §2 calls a slot; this file makes the second
|
|
12
|
+
* word true.
|
|
13
|
+
*
|
|
14
|
+
* What is declared here is derived, never authored. A definition says
|
|
15
|
+
* `optional: true` or `effects: 'write'` and the slot follows from that; a
|
|
16
|
+
* clause says `gather` and its `mode` follows. The projection
|
|
17
|
+
* (`snapshotRegistry`) writes the slot onto the registry row so the panel
|
|
18
|
+
* reads it from rows like every other slot (F6), and the content hash leaves it
|
|
19
|
+
* out — see `authoredSlots` — because a slot nobody authored cannot be a change
|
|
20
|
+
* to what somebody authored; `optional` and `effects` are hashed already.
|
|
21
|
+
*
|
|
22
|
+
* The addresses are unchanged: `<nodeKey>.settings.enabled`,
|
|
23
|
+
* `<nodeKey>.settings.review`, `<clauseId>.settings.mode`. Every stored row at
|
|
24
|
+
* one of them is exactly as valid as it was.
|
|
25
|
+
*/
|
|
26
|
+
import { CLAUSE_MODE_DECL } from './clauses.js';
|
|
27
|
+
import { POSITIONS, resolvePosition } from './review.js';
|
|
28
|
+
/** The reserved slot name. `register` refuses a descriptor that authors it. @experimental */
|
|
29
|
+
export const SETTINGS_SLOT = 'settings';
|
|
30
|
+
/**
|
|
31
|
+
* `enabled` — may this optional node be switched off (`Descriptor.optional`).
|
|
32
|
+
*
|
|
33
|
+
* Off skips the node before its binding runs, which is the point: a starved
|
|
34
|
+
* source is still queried; a switched-off one costs nothing. Only a node whose
|
|
35
|
+
* contract says an empty result is fine may carry it — offering it anywhere
|
|
36
|
+
* else would let somebody turn off a node whose output the next one requires.
|
|
37
|
+
* @experimental
|
|
38
|
+
*/
|
|
39
|
+
export const ENABLED_FIELD = Object.freeze({
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
default: true,
|
|
42
|
+
quick: true,
|
|
43
|
+
label: { en: 'Use this source' },
|
|
44
|
+
description: {
|
|
45
|
+
en: 'Off skips the step entirely rather than fetching and discarding it — cheaper than starving it with a zero share.',
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* `enabled` on an optional node that is not a source — a model call such as
|
|
50
|
+
* the planner or the state keeper, or a task. The same switch at the same
|
|
51
|
+
* address; only the words differ, because *Use this source* over a model call
|
|
52
|
+
* says something untrue about it.
|
|
53
|
+
* @experimental
|
|
54
|
+
*/
|
|
55
|
+
export const ENABLED_STEP_FIELD = Object.freeze({
|
|
56
|
+
type: 'boolean',
|
|
57
|
+
default: true,
|
|
58
|
+
quick: true,
|
|
59
|
+
label: { en: 'Run this step' },
|
|
60
|
+
description: {
|
|
61
|
+
en: 'Off skips the step entirely: nothing is called or charged, and the steps after it go on without what it would have made.',
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* `review` — the gate's position on a node whose `effects` gate (01 §7).
|
|
66
|
+
*
|
|
67
|
+
* Declared per gated node from its `reviewDefault`, which an author may set
|
|
68
|
+
* **on** and can never set to *never* — the declaration's `of` has no such
|
|
69
|
+
* value, which is F14 enforced by the field language rather than by a check.
|
|
70
|
+
* The two retired spellings (`sync`, `async`) are folded to `on` here exactly
|
|
71
|
+
* as `resolvePosition` folds them at run time, so the panel's default and the
|
|
72
|
+
* gate's agree.
|
|
73
|
+
* @experimental
|
|
74
|
+
*/
|
|
75
|
+
export function reviewField(reviewDefault) {
|
|
76
|
+
return {
|
|
77
|
+
type: 'enum',
|
|
78
|
+
of: POSITIONS,
|
|
79
|
+
members: [
|
|
80
|
+
{ key: 'off', label: { en: 'Off' }, description: { en: 'Takes effect without stopping.' } },
|
|
81
|
+
{ key: 'on', label: { en: 'On' }, description: { en: 'Waits for approval before it takes effect.' } },
|
|
82
|
+
],
|
|
83
|
+
default: resolvePosition(reviewDefault, undefined),
|
|
84
|
+
label: { en: 'Review' },
|
|
85
|
+
description: { en: 'Pause this step for approval before it takes effect.' },
|
|
86
|
+
facet: 'review',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The substrate's `settings` slot for a definition, or nothing when the
|
|
91
|
+
* definition has no switch to declare.
|
|
92
|
+
*
|
|
93
|
+
* `enabled` when the node is `optional` — worded as a source for a query, as a
|
|
94
|
+
* step for anything else; `review` when its `effects` gate. A
|
|
95
|
+
* node that is both (`embed-text`, `generate-json`) carries both fields on
|
|
96
|
+
* the one slot — one address prefix, as the executor has always read it.
|
|
97
|
+
* @experimental
|
|
98
|
+
*/
|
|
99
|
+
export function settingsSlotFor(d) {
|
|
100
|
+
const schema = {};
|
|
101
|
+
if (d.optional === true)
|
|
102
|
+
schema.enabled = d.kind === 'query' ? ENABLED_FIELD : ENABLED_STEP_FIELD;
|
|
103
|
+
if (d.effects === 'write' || d.effects === 'external')
|
|
104
|
+
schema.review = reviewField(d.reviewDefault);
|
|
105
|
+
if (!Object.keys(schema).length)
|
|
106
|
+
return undefined;
|
|
107
|
+
return { kind: 'settings', facet: 'settings', schema };
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* The substrate's `settings` slot for a clause, or nothing.
|
|
111
|
+
*
|
|
112
|
+
* A clause is not a node and has no registry row — it is a construct of the
|
|
113
|
+
* substrate itself, the same in every document — so its declaration's home
|
|
114
|
+
* is this function rather than a column: the row supplies `kind` and `mode`,
|
|
115
|
+
* which are the document's, and the wording is `CLAUSE_MODE_DECL`'s. Only a
|
|
116
|
+
* `gather` clause carries one: `each` and `loop` have a mode too, but theirs
|
|
117
|
+
* is a property of what they iterate rather than a choice about concurrency,
|
|
118
|
+
* and a junction's is the same story one construct over. The author's
|
|
119
|
+
* declared mode is the default; the person's setting wins (`resolveClauseMode`).
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
export function clauseSettingsSlotFor(clause) {
|
|
123
|
+
if (clause.kind !== 'gather')
|
|
124
|
+
return undefined;
|
|
125
|
+
return {
|
|
126
|
+
kind: 'settings',
|
|
127
|
+
facet: 'settings',
|
|
128
|
+
schema: {
|
|
129
|
+
[CLAUSE_MODE_DECL.path]: {
|
|
130
|
+
type: 'enum',
|
|
131
|
+
of: CLAUSE_MODE_DECL.of,
|
|
132
|
+
members: [
|
|
133
|
+
{ key: 'parallel', label: { en: 'Together' }, description: { en: 'Every step at the same time — faster.' } },
|
|
134
|
+
{
|
|
135
|
+
key: 'sequential',
|
|
136
|
+
label: { en: 'One at a time' },
|
|
137
|
+
description: { en: 'Each step after the last — gentler on a rate-limited provider.' },
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
default: clause.mode === 'sequential' ? 'sequential' : 'parallel',
|
|
141
|
+
label: CLAUSE_MODE_DECL.i18n,
|
|
142
|
+
description: CLAUSE_MODE_DECL.description,
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* A row's slots minus the substrate's — what the content hash digests
|
|
149
|
+
* (`definitionContract`).
|
|
150
|
+
*
|
|
151
|
+
* Not hashed, and deliberately: the slot is derived from `optional`,
|
|
152
|
+
* `effects` and `reviewDefault`. The first two are contract and hashed on
|
|
153
|
+
* their own terms, so digesting the slot again would move every optional and
|
|
154
|
+
* every gated definition's pin for a projection change nobody authored;
|
|
155
|
+
* `reviewDefault` is policy (plans/31 V6) and hashed nowhere. The name is
|
|
156
|
+
* reserved (`checkNoAuthoredSettings`), so stripping by name can never strip
|
|
157
|
+
* something an author wrote.
|
|
158
|
+
* @experimental
|
|
159
|
+
*/
|
|
160
|
+
export function authoredSlots(slots) {
|
|
161
|
+
if (!slots || !(SETTINGS_SLOT in slots))
|
|
162
|
+
return slots ?? {};
|
|
163
|
+
const { [SETTINGS_SLOT]: _substrate, ...authored } = slots;
|
|
164
|
+
return authored;
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=settingsSlot.js.map
|
package/dist/shapes.d.ts
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shapes — versioned edge/payload contracts (01 §1, §3).
|
|
3
|
+
*
|
|
4
|
+
* A shape is the unit of compatibility. Two nodes connect if the upstream port's
|
|
5
|
+
* shape is assignable to the downstream port's. Shapes are also connection kinds
|
|
6
|
+
* and sampling-config kinds (F17), which is what makes the system modality-agnostic:
|
|
7
|
+
* nothing anywhere switches on "is this an LLM".
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export type ShapeId = string;
|
|
11
|
+
/** @experimental */
|
|
12
|
+
export interface ShapeDef {
|
|
13
|
+
id: ShapeId;
|
|
14
|
+
/** Shapes this one may be assigned to. A stream is assignable to its settled form. */
|
|
15
|
+
assignableTo?: ShapeId[];
|
|
16
|
+
/** True if a downstream node may begin consuming before the value settles (F22). */
|
|
17
|
+
streaming?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** @experimental */
|
|
20
|
+
export declare function defineShape(def: ShapeDef): ShapeId;
|
|
21
|
+
/** @experimental */
|
|
22
|
+
export declare function getShape(id: ShapeId): ShapeDef | undefined;
|
|
23
|
+
/** @experimental */
|
|
24
|
+
export declare function isStreaming(id: ShapeId): boolean;
|
|
25
|
+
/** The permissive sink: anything serializable may flow into a json port. @internal */
|
|
26
|
+
export declare const JSON_SHAPE = "core:shape/json@1";
|
|
27
|
+
/** Assignability: identical, into json, or declared assignable (transitively). @internal */
|
|
28
|
+
export declare function assignable(from: ShapeId, to: ShapeId, seen?: Set<string>): boolean;
|
|
29
|
+
/** Reset — test isolation only. @internal */
|
|
30
|
+
export declare function _clearShapes(): void;
|
|
31
|
+
/** @public */
|
|
32
|
+
export declare const S: {
|
|
33
|
+
readonly text: string;
|
|
34
|
+
readonly textStream: string;
|
|
35
|
+
readonly sessionScope: string;
|
|
36
|
+
/**
|
|
37
|
+
* Transcript rows — what `session-history@1` publishes on `main` and
|
|
38
|
+
* `messages` and what `process-messages@1` / `prose-transcript@1` read
|
|
39
|
+
* (declared so since 2026-09-17, U5d review W9; the port had said
|
|
40
|
+
* `context-candidates@1` since the SDK was vendored while the value was
|
|
41
|
+
* always rows, and `validate()` never ran over the catalog to say so).
|
|
42
|
+
*
|
|
43
|
+
* **Not assignable to `context-candidates@1`** (U5d review R-a, the same
|
|
44
|
+
* day; W9 had declared it one way). A transcript wired into a candidates
|
|
45
|
+
* port is a wiring the host silently drops: `concat-candidates` keys a
|
|
46
|
+
* row that is not a candidate as `undefined:<id>`, the ranker's `select`
|
|
47
|
+
* excludes it as `excluded_unknown_source`, and `assemble` handed rows
|
|
48
|
+
* as candidates halts on "no ranking decisions". The transcript's place
|
|
49
|
+
* in the window rides the **`band`** port — one intent element, which a
|
|
50
|
+
* spec concatenates in with the lore so the ranker reserves the
|
|
51
|
+
* conversation's slice — and the rows themselves go to
|
|
52
|
+
* `process-messages`. `validate()` says so (a warning naming the fix)
|
|
53
|
+
* rather than refusing, so a document built from the older corpus still
|
|
54
|
+
* compiles. The reverse was never declared either: a ranked candidates
|
|
55
|
+
* list is not a transcript, and a port that reads rows is handed rows.
|
|
56
|
+
*/
|
|
57
|
+
readonly messages: string;
|
|
58
|
+
readonly candidates: string;
|
|
59
|
+
readonly renderedBlocks: string;
|
|
60
|
+
readonly assembled: string;
|
|
61
|
+
/**
|
|
62
|
+
* What Assemble publishes after the allocation/formatting split (16 §7): ordered
|
|
63
|
+
* **blocks** with role, source, token count and a `why` trail — not prose. The
|
|
64
|
+
* Provider's `wire` slot turns it into whatever its connection actually wants.
|
|
65
|
+
*
|
|
66
|
+
* Assignable to `assembled-context@1` so existing specs keep connecting while core
|
|
67
|
+
* migrates; the reverse is not assignable, because a rendered string has already
|
|
68
|
+
* thrown away everything the panel and the budget need.
|
|
69
|
+
*/
|
|
70
|
+
readonly allocated: string;
|
|
71
|
+
/**
|
|
72
|
+
* The object a context template renders against: characters, personas,
|
|
73
|
+
* scenario, the prompt texts, the resolved names.
|
|
74
|
+
*
|
|
75
|
+
* Its own shape rather than `json@1` so that a plugin supplying an alternative
|
|
76
|
+
* context builder has something to publish, and so a spec that wires the wrong
|
|
77
|
+
* node into Assemble's context port fails at publish rather than rendering a
|
|
78
|
+
* template full of blanks — which reads as a broken template, and sends the
|
|
79
|
+
* user to the wrong screen.
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* The chat's cast and prompt config, as rows — before any decision about who
|
|
83
|
+
* is shown or named. The input to the context builder, kept distinct from the
|
|
84
|
+
* built context so the two can be replaced independently.
|
|
85
|
+
*/
|
|
86
|
+
readonly sessionCast: string;
|
|
87
|
+
/**
|
|
88
|
+
* The MCP connection kind (14 §1). A connection whose shape is `mcp` is a
|
|
89
|
+
* Model Context Protocol server core talks to — foreign code SP speaks
|
|
90
|
+
* JSON-RPC with, never code SP loads. The shape doubles as the connection
|
|
91
|
+
* kind (F17), so only MCP connections are offerable on an MCP provider's
|
|
92
|
+
* connection slot.
|
|
93
|
+
*/
|
|
94
|
+
readonly mcp: string;
|
|
95
|
+
readonly templateContext: string;
|
|
96
|
+
readonly vector: string;
|
|
97
|
+
readonly budget: string;
|
|
98
|
+
readonly rowIds: string;
|
|
99
|
+
/**
|
|
100
|
+
* The output of an async block or a map (01 §1, 13 §1). An ordered list in
|
|
101
|
+
* **declaration order**, one entry per branch — never a merged object, because
|
|
102
|
+
* merging needs a field-collision policy and every such policy is wrong for
|
|
103
|
+
* somebody. `async` and `map` produce the same shape, so one equivalence
|
|
104
|
+
* harness covers both (F26).
|
|
105
|
+
*/
|
|
106
|
+
readonly branchResults: string;
|
|
107
|
+
/**
|
|
108
|
+
* What a **gate-eligible** Consumer publishes (13 §7j-b). Discriminated, because
|
|
109
|
+
* a write may in principle land as a proposal rather than a row — and a
|
|
110
|
+
* proposal id in a shared id space is indistinguishable from a real row id
|
|
111
|
+
* right up until the foreign key dangles.
|
|
112
|
+
*
|
|
113
|
+
* **Assignable to `row-ids@1`** since the 2026-09-15 rulings (09-B B4, R-17).
|
|
114
|
+
* It was deliberately not, and the reason was the `async` review position:
|
|
115
|
+
* a row proposed under it might never exist. That position is gone
|
|
116
|
+
* (`review.ts` — on or off, nothing between): `on` parks the run until the
|
|
117
|
+
* decision and a rejection halts it, so by the time any downstream node
|
|
118
|
+
* runs, the ids a committed result carries ARE row ids. That is what makes
|
|
119
|
+
* a create → update pair on one row inside one run legal, and it is how a
|
|
120
|
+
* pipeline owns its reply: a placeholder outlet straight after the inlet,
|
|
121
|
+
* and an `update-message` at the end that fills it.
|
|
122
|
+
*/
|
|
123
|
+
readonly writeResult: string;
|
|
124
|
+
/**
|
|
125
|
+
* A request to summarize something into a lore entry.
|
|
126
|
+
*
|
|
127
|
+
* Its own shape rather than `json@1` because it is what the summarize
|
|
128
|
+
* pipelines take as *input*, and 11 §2 matches an event's payload against a
|
|
129
|
+
* pipeline's Input contract by shape. A request typed as bare json would make
|
|
130
|
+
* every pipeline compatible with every event.
|
|
131
|
+
*/
|
|
132
|
+
readonly summarizeRequest: string;
|
|
133
|
+
/**
|
|
134
|
+
* The ordered batch drafts phase 1 produces, before synthesis merges them.
|
|
135
|
+
*
|
|
136
|
+
* Ordered, and the order is load-bearing: the drafts are chronological
|
|
137
|
+
* slices of a conversation and synthesis reads them as a sequence. A shape
|
|
138
|
+
* that permitted reordering would turn a narrative into a pile of events.
|
|
139
|
+
*/
|
|
140
|
+
readonly drafts: string;
|
|
141
|
+
/** Scenes with their messages, as the graph builder walks them. */
|
|
142
|
+
readonly graphScenes: string;
|
|
143
|
+
/**
|
|
144
|
+
* A proposed set of graph nodes and relationships, before a person approves it.
|
|
145
|
+
*
|
|
146
|
+
* Distinct from anything holding row ids, for the reason `write-result@1`
|
|
147
|
+
* exists: a proposal is not yet a row, and a downstream node that treated it
|
|
148
|
+
* as one would wire a foreign key to something a reviewer may still reject.
|
|
149
|
+
*/
|
|
150
|
+
readonly graphProposal: string;
|
|
151
|
+
/**
|
|
152
|
+
* Who speaks next, and how that was decided (19 §5).
|
|
153
|
+
*
|
|
154
|
+
* Its own shape rather than `row-ids@1` because it is the swap-list
|
|
155
|
+
* membership test: a task whose `main` publishes this shape *is* a
|
|
156
|
+
* next-speaker strategy, and the dropdown is a SELECT over such rows — an
|
|
157
|
+
* extension's strategy appears beside core's by existing, the same way a
|
|
158
|
+
* chat mode does. The bundle carries `{speaker, characterId, strategy, via}`
|
|
159
|
+
* — the speaker as a participant reference beside the bare id (R-18 (3)) —
|
|
160
|
+
* and each rides its own port for wiring.
|
|
161
|
+
*/
|
|
162
|
+
readonly speakerSelection: string;
|
|
163
|
+
/**
|
|
164
|
+
* A participant reference (R-15, R-18 (3)): `character:<id>`,
|
|
165
|
+
* `envoy:<slug>`, `user:<id>`, or a role — see `participants.ts`.
|
|
166
|
+
*
|
|
167
|
+
* The inlet's `speaker` port and a turn strategy's carry this, so one
|
|
168
|
+
* port answers "who is speaking" for a library character and a genre's
|
|
169
|
+
* envoy alike. Not assignable to `row-ids@1` on purpose: a reference is a
|
|
170
|
+
* name, and a node that wants the bare character id keeps reading
|
|
171
|
+
* `characterId` until every reader speaks references.
|
|
172
|
+
*/
|
|
173
|
+
readonly participantRef: string;
|
|
174
|
+
/**
|
|
175
|
+
* An ordered list of participant references, no duplicates (lair pass R3,
|
|
176
|
+
* 2026-09-28): the inlet's `recipients` — the cast members a press
|
|
177
|
+
* collected (`CollectedRecipients`). Its own id rather than `json@1` so a
|
|
178
|
+
* port that wants people is not handed any list. Consumed by
|
|
179
|
+
* `core:query/resolve-state-changes@1`'s `owners` (R10): the Whisper's
|
|
180
|
+
* one change, made on each recipient.
|
|
181
|
+
*/
|
|
182
|
+
readonly participantRefs: string;
|
|
183
|
+
/**
|
|
184
|
+
* One **session change** (R-15, built 2026-09-16): the payload every
|
|
185
|
+
* built-in write's event carries — `{ event, sessionId, messageId, at,
|
|
186
|
+
* … }` plus what was lost or replaced (`lost` on a delete, `previous` on
|
|
187
|
+
* an edit or a swipe). The next reply's inlet publishes the changes since
|
|
188
|
+
* the last one as a list on its `sessionChanges` port, so a pipeline knows the
|
|
189
|
+
* history it sees has moved. See `SessionChangePayload` in events.ts.
|
|
190
|
+
*
|
|
191
|
+
* Its own id rather than `json@1`, for the reason `summarize-request@1`
|
|
192
|
+
* gives: `pipeline_event_registry.payload_shape` names it, and an event
|
|
193
|
+
* whose payload was bare json would match every inlet.
|
|
194
|
+
*/
|
|
195
|
+
readonly sessionChange: string;
|
|
196
|
+
/**
|
|
197
|
+
* A **form addressed** to a participant the AI portrays (R-15 *Forms*;
|
|
198
|
+
* 30 §U5d): the payload of `core:event/form-addressed@1` — `{ sessionId,
|
|
199
|
+
* messageId, blockId, action, addressee }` (`FormAddressedPayload`,
|
|
200
|
+
* events.ts) — and what `core:inlet/form-addressed@1` publishes, port by
|
|
201
|
+
* port, with the block itself beside them. Its own id for the reason
|
|
202
|
+
* `session-change@1` has: the registry's `payload_shape` names it.
|
|
203
|
+
*/
|
|
204
|
+
readonly formAddressed: string;
|
|
205
|
+
/**
|
|
206
|
+
* A **cast change** (PLAN-turn-order §4.1): the payload of
|
|
207
|
+
* `core:event/cast-changed@1` — `{ event, sessionId, at, cause, ref,
|
|
208
|
+
* change, value }` (`CastChangePayload`, events.ts). A seated
|
|
209
|
+
* participant was switched on or off, or its `position` or portrayal moved;
|
|
210
|
+
* a seat added or removed is `member-added` / `member-removed`, not
|
|
211
|
+
* this. Its own id for the reason `session-change@1` has.
|
|
212
|
+
*/
|
|
213
|
+
readonly castChange: string;
|
|
214
|
+
/**
|
|
215
|
+
* **Annex changed** (PLAN-turn-order §4.14, R30): the payload of
|
|
216
|
+
* `core:event/annex-changed@1` — `{ event, sessionId, at, cause, owner }`
|
|
217
|
+
* (`AnnexChangePayload`, events.ts). Names whose entry moved, never the
|
|
218
|
+
* value.
|
|
219
|
+
*/
|
|
220
|
+
readonly annexChange: string;
|
|
221
|
+
/** What a listener receives for an event a pipeline recorded: the envelope, the author's payload inside. */
|
|
222
|
+
readonly recordedEvent: string;
|
|
223
|
+
/**
|
|
224
|
+
* **Turn order changed** (§4.1): the payload of
|
|
225
|
+
* `core:event/turn-order-changed@1` — `{ event, sessionId, at, cause,
|
|
226
|
+
* runId, turnOrder }` (`TurnOrderChangedPayload`, events.ts), the
|
|
227
|
+
* document as `core:outlet/set-turn-order@1` wrote it. Core-internal:
|
|
228
|
+
* the auto-advance listener and the `sessions:turnOrder` push read it;
|
|
229
|
+
* a genre may not bind a spec to it.
|
|
230
|
+
*/
|
|
231
|
+
readonly turnOrderChanged: string;
|
|
232
|
+
/**
|
|
233
|
+
* The session's **turn order** as state (§4.2): `TurnOrderV1` —
|
|
234
|
+
* `{ v, order, candidates, basedOnAt, computedAt, runId, event,
|
|
235
|
+
* strategy }`, stored at `sessions.metadata.turnOrder` and written by
|
|
236
|
+
* `core:outlet/set-turn-order@1` alone. Not the entries alone and not
|
|
237
|
+
* the candidates alone: the whole answer, with what it answered.
|
|
238
|
+
*/
|
|
239
|
+
readonly turnOrder: string;
|
|
240
|
+
/**
|
|
241
|
+
* **Turn candidates** (§4.2): `TurnCandidateV1[]` — the participants the
|
|
242
|
+
* pool admitted this run, in pool order. What `core:task/turn-pool@1`
|
|
243
|
+
* publishes, an orderer rewrites, and a strategy reads. Open objects:
|
|
244
|
+
* an orderer or a plugin may add keys and core passes them through.
|
|
245
|
+
*/
|
|
246
|
+
readonly turnCandidates: string;
|
|
247
|
+
/**
|
|
248
|
+
* **Turn entries** (§4.2): `TurnEntryV1[]` — prepared turns, each
|
|
249
|
+
* `{ ref, channel?, subject?, via }`. What a strategy publishes on
|
|
250
|
+
* `main` and `order`; the shape-based swap list keys a strategy on it,
|
|
251
|
+
* as it keyed one on `speaker-selection@1` before (that shape stays
|
|
252
|
+
* until the strategies are re-ported).
|
|
253
|
+
*/
|
|
254
|
+
readonly turnEntries: string;
|
|
255
|
+
/**
|
|
256
|
+
* **Sprite choices** (DESIGN-sprites §5.2): what a line's speaker can show
|
|
257
|
+
* — `{ characterId, set, defaultSet, labels, last, decidedBy, text }`.
|
|
258
|
+
* `set` is the sprite set in force for the line (a session override, the
|
|
259
|
+
* cast member's amendment, or the card's default — `decidedBy` says
|
|
260
|
+
* which); `labels` are that set's sprite labels with an image; `last` is
|
|
261
|
+
* the speaker's previous shown sprite, for stickiness. What
|
|
262
|
+
* `core:query/sprites-for@1` publishes and every sprite picker reads.
|
|
263
|
+
*/
|
|
264
|
+
readonly spriteChoices: string;
|
|
265
|
+
/**
|
|
266
|
+
* **A sprite pick**: `{ set, label, score?, runnerUp?, held? } | null` — the
|
|
267
|
+
* sprite a picker chose for a line, or null for none. What every sprite
|
|
268
|
+
* picker publishes on `main`, so the shape-based swap list keys a picker on
|
|
269
|
+
* it exactly as it keys a turn strategy on `turn-entries@1`.
|
|
270
|
+
*/
|
|
271
|
+
readonly spritePick: string;
|
|
272
|
+
/**
|
|
273
|
+
* The **settings document** (§4.12): `SessionSettingsV1` — every
|
|
274
|
+
* setting a person can see in session settings, resolved once per run
|
|
275
|
+
* with the cascade applied (session > genre > core), and handed to the
|
|
276
|
+
* inlet as `session`. A spec reads `$.input.session.fields.tone` and
|
|
277
|
+
* never learns which table it came from.
|
|
278
|
+
*/
|
|
279
|
+
readonly sessionSettings: string;
|
|
280
|
+
/**
|
|
281
|
+
* A reference to stored media of any kind — the general port type.
|
|
282
|
+
*
|
|
283
|
+
* `image@1` and `audio@1` stay, and are assignable **to** this, so every
|
|
284
|
+
* spec wired to them keeps connecting while the general ports arrive. The
|
|
285
|
+
* reverse is not assignable: a port that accepts any media cannot be handed
|
|
286
|
+
* to one that has declared it only understands images. Same rule, and the
|
|
287
|
+
* same reason, as `allocated-context` → `assembled-context`.
|
|
288
|
+
*/
|
|
289
|
+
readonly media: string;
|
|
290
|
+
/** An ordered list of media references — what a multimodal request carries
|
|
291
|
+
* as its attachments. */
|
|
292
|
+
readonly mediaList: string;
|
|
293
|
+
/**
|
|
294
|
+
* 🚧 **A transcript's attachments, by message** (PLAN-composer-attachments
|
|
295
|
+
* §3.5): `Record<messageId, HistoryAttachmentV1[]>` (media.ts) — each
|
|
296
|
+
* message's `core:image` / `core:file` parts, in part order. What
|
|
297
|
+
* `core:query/history-attachments@1` publishes and
|
|
298
|
+
* `core:task/place-attachments@1` reads, so each line's files travel with
|
|
299
|
+
* that line's own turn rather than with the request as a whole.
|
|
300
|
+
*/
|
|
301
|
+
readonly mediaByMessage: string;
|
|
302
|
+
/**
|
|
303
|
+
* A reply's **folded sections** (B4; D5, 2026-09-27): `FoldedSectionV1[]`
|
|
304
|
+
* (widgets.ts) — each `{ kind, label, content }` or `{ kind, label, items }`,
|
|
305
|
+
* shown collapsed beside the body and never read into the prompt. What the
|
|
306
|
+
* message outlets' `sections` in-port takes.
|
|
307
|
+
*/
|
|
308
|
+
readonly foldedSections: string;
|
|
309
|
+
readonly audio: string;
|
|
310
|
+
readonly image: string;
|
|
311
|
+
readonly json: string;
|
|
312
|
+
/**
|
|
313
|
+
* What a ranker judged (PLAN-sdk-1.0 §3.9, R64): one `RankingDecisionV1`
|
|
314
|
+
* per candidate. A node whose out-port carries this shape is RECORDED by
|
|
315
|
+
* the host — core's rankers and a plugin's alike — into the ranking store.
|
|
316
|
+
* Reviewed with L1 (PLAN-sdk-1.0 §4 ✓); it carries `S`'s own tag.
|
|
317
|
+
*/
|
|
318
|
+
readonly decisions: string;
|
|
319
|
+
/**
|
|
320
|
+
* A model reply as an ordered list of typed parts (text, reasoning, media,
|
|
321
|
+
* tool calls) rather than a string — see `OutputPart` in media.ts for why
|
|
322
|
+
* that is now the honest shape of a completion.
|
|
323
|
+
*
|
|
324
|
+
* Assignable **to** `text-stream@1`, so a provider may start emitting parts
|
|
325
|
+
* without breaking a single spec wired to its text output: the degrade
|
|
326
|
+
* concatenates the prose and drops the rest. Not assignable in reverse,
|
|
327
|
+
* because by then the ordering and the media are gone — the same
|
|
328
|
+
* richer-to-poorer rule the allocated/assembled pair established.
|
|
329
|
+
*/
|
|
330
|
+
readonly partStream: string;
|
|
331
|
+
readonly textGen: string;
|
|
332
|
+
/**
|
|
333
|
+
* Vector embedding — the connection kind, and deliberately **not** a
|
|
334
|
+
* sampling vocabulary (yet).
|
|
335
|
+
*
|
|
336
|
+
* It is absent from `SAMPLING_SCHEMAS` on purpose, and the reason is
|
|
337
|
+
* structural rather than unfinished work: every parameter an embedding call
|
|
338
|
+
* would take — input truncation, pooling, normalisation, output dimensions,
|
|
339
|
+
* the asymmetric query/passage prefixes E5/BGE/GTE want — changes what a
|
|
340
|
+
* *stored* vector means, and nothing records which setting produced the
|
|
341
|
+
* vectors already in the table. A text sampler affects one reply; an
|
|
342
|
+
* embedding parameter silently re-defines a whole persistent index against
|
|
343
|
+
* rows that will never be recomputed. That is the same re-index story the
|
|
344
|
+
* prefixes are held back for, so none of them ship until it is decided.
|
|
345
|
+
*
|
|
346
|
+
* What is left after removing those is either not per-invocation at all
|
|
347
|
+
* (model identity, transport, residency TTL — those belong to the
|
|
348
|
+
* connection) or has no consumer (nothing chunks a batch). An empty
|
|
349
|
+
* vocabulary is worse than no vocabulary here: `isKnownSamplingShape` in
|
|
350
|
+
* core admits any shape this record has a key for, so registering `{}`
|
|
351
|
+
* would let the write path accept a config that exists, looks saved, and
|
|
352
|
+
* can never send anything — the exact state that guard was written to
|
|
353
|
+
* refuse.
|
|
354
|
+
*/
|
|
355
|
+
readonly embeddings: string;
|
|
356
|
+
/**
|
|
357
|
+
* Named-entity recognition — the connection kind for a mention detector.
|
|
358
|
+
*
|
|
359
|
+
* Declared ahead of its adapter so the model side has a stable noun to
|
|
360
|
+
* name; core's extractor is dictionary-based and model-free today
|
|
361
|
+
* (`core:extract/entities-heuristic@1`), and takes no parameters at all
|
|
362
|
+
* beyond the text and the gazetteer.
|
|
363
|
+
*
|
|
364
|
+
* Like `embeddings`, and for the same two reasons, it has no entry in
|
|
365
|
+
* `SAMPLING_SCHEMAS`: its one real knob (how much of a passage the
|
|
366
|
+
* extractor is handed) is part of the annotation freshness triple, and an
|
|
367
|
+
* empty vocabulary would defeat core's do-nothing-config guard.
|
|
368
|
+
*/
|
|
369
|
+
readonly ner: string;
|
|
370
|
+
readonly tts: string;
|
|
371
|
+
readonly imageGen: string;
|
|
372
|
+
};
|
|
373
|
+
//# sourceMappingURL=shapes.d.ts.map
|