@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,290 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The checks a package's declarations get, whichever surface declared them (D-1).
|
|
3
|
+
*
|
|
4
|
+
* A package says the same things in two places. `announce()` collects them as a
|
|
5
|
+
* builder and compiles the announcement document; `defineExtension()` carries
|
|
6
|
+
* them as literals the packager reads without executing the author's code. Both
|
|
7
|
+
* are declaring one package, so both get **one set of checks** — the functions
|
|
8
|
+
* here — rather than two that drift and answer the same mistake with two
|
|
9
|
+
* different sentences.
|
|
10
|
+
*
|
|
11
|
+
* Every function returns findings rather than throwing, because the caller owns
|
|
12
|
+
* the refusal: `announce()` collects them into an `AnnouncementError` with the
|
|
13
|
+
* coverage report attached, `defineExtension()` into an `ExtensionError`, and
|
|
14
|
+
* the packager into `CompileFinding`s with a file and a line. A thrown error
|
|
15
|
+
* would let the first mistake hide the other nine.
|
|
16
|
+
*
|
|
17
|
+
* What is deliberately NOT here: the pipeline-namespace rule, which both
|
|
18
|
+
* callers already enforce in their own words (one names the package namespace,
|
|
19
|
+
* the other the plugin slug), and the identity display text, which only an
|
|
20
|
+
* announcement has.
|
|
21
|
+
*/
|
|
22
|
+
import type { WidgetDecl } from './layout.js';
|
|
23
|
+
import type { AnnouncedSpec, ExternalRef, StoredEventDeclaration, ConfigDecl, CoverageReport, PresetDecl, PromptDecl } from './announce.js';
|
|
24
|
+
import { type ComponentDecl } from './extension.js';
|
|
25
|
+
import { type GenreDecl } from './genres.js';
|
|
26
|
+
import { type SurfacesDecl } from './surfaces.js';
|
|
27
|
+
import { type AnnexFieldDecl } from './annexFields.js';
|
|
28
|
+
/**
|
|
29
|
+
* Everything a package declares, as either surface holds it. Every field
|
|
30
|
+
* optional: a package that ships only pipelines and a package that ships only a
|
|
31
|
+
* genre are both real, and the checks that need two of them say so themselves.
|
|
32
|
+
* @experimental
|
|
33
|
+
*/
|
|
34
|
+
export interface DeclaredPackage {
|
|
35
|
+
/** The namespace every declared id sits under — a package's `ns`, a plugin's `slug`. */
|
|
36
|
+
ns: string;
|
|
37
|
+
genres?: readonly GenreDecl[];
|
|
38
|
+
pipelines?: readonly AnnouncedSpec[];
|
|
39
|
+
prompts?: readonly PromptDecl[];
|
|
40
|
+
configs?: readonly ConfigDecl[];
|
|
41
|
+
presets?: readonly PresetDecl[];
|
|
42
|
+
surfaces?: SurfacesDecl;
|
|
43
|
+
components?: readonly ComponentDecl[];
|
|
44
|
+
/** The widgets this package declares (R71). */
|
|
45
|
+
widgets?: readonly WidgetDecl[];
|
|
46
|
+
/** Definitions this package offers on another package's swappable nodes (R29). */
|
|
47
|
+
swaps?: readonly (SwapContribution | StoredSwapContribution)[];
|
|
48
|
+
/** Events this package declares, with who may record them. */
|
|
49
|
+
events?: readonly StoredEventDeclaration[];
|
|
50
|
+
/**
|
|
51
|
+
* The package's annex declaration (owner ruling 2026-09-26): every key its
|
|
52
|
+
* pipelines keep in its annex document. Undefined is "not stated here" —
|
|
53
|
+
* the pass does not judge annex writes; `[]` declares nothing, so a
|
|
54
|
+
* `set-session-annex` step naming a key is refused.
|
|
55
|
+
*/
|
|
56
|
+
annexFields?: readonly AnnexFieldDecl[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* One swap a package contributes (R29): its own definition, offered on a node
|
|
60
|
+
* another package (usually core) exposes — `{ spec: chatTurnOrder, node:
|
|
61
|
+
* 'decide.rules.strategy', definition: myStrategy }`. The spec is a value
|
|
62
|
+
* — the spec you imported, or `use('<id>')` for one you cannot import.
|
|
63
|
+
* With a value, the node key is checked here; the instance checks exposure and
|
|
64
|
+
* port fit at install. Stored with ids (`StoredSwapContribution`).
|
|
65
|
+
* @experimental
|
|
66
|
+
*/
|
|
67
|
+
export interface SwapContribution {
|
|
68
|
+
/** The spec whose node this is offered on — never this package's own. */
|
|
69
|
+
spec: AnnouncedSpec | ExternalRef;
|
|
70
|
+
/** The node key, as the spec declares it. */
|
|
71
|
+
node: string;
|
|
72
|
+
/** The definition's pin. Stored as its id. */
|
|
73
|
+
definition: {
|
|
74
|
+
readonly id: string;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/** A contribution as stored: ids throughout. @experimental */
|
|
78
|
+
export interface StoredSwapContribution {
|
|
79
|
+
spec: string;
|
|
80
|
+
node: string;
|
|
81
|
+
definition: string;
|
|
82
|
+
}
|
|
83
|
+
/** The stored form of a contribution — the spec and the pin read down to their ids. @experimental */
|
|
84
|
+
export declare const storedSwap: (c: SwapContribution | StoredSwapContribution) => StoredSwapContribution;
|
|
85
|
+
/**
|
|
86
|
+
* Swaps as authored: the spec is a value and the definition a pin. A
|
|
87
|
+
* string is refused here, at the entry — the shared pass below also reads the
|
|
88
|
+
* stored form, where both are rightly ids. With a spec value, the node key is
|
|
89
|
+
* checked against the spec's nodes.
|
|
90
|
+
* @experimental
|
|
91
|
+
*/
|
|
92
|
+
export declare function swapInputFindings(swaps: readonly SwapContribution[]): string[];
|
|
93
|
+
/**
|
|
94
|
+
* Swap contributions (R29): a package offers only its own definitions, never
|
|
95
|
+
* on its own specs (those list swaps on the node with `expose.swaps` — one
|
|
96
|
+
* way to do each thing, R26), and each once.
|
|
97
|
+
* @experimental
|
|
98
|
+
*/
|
|
99
|
+
export declare function swapContributionFindings(swaps: readonly (SwapContribution | StoredSwapContribution)[], ns: string, declaredSpecs: ReadonlyMap<string, unknown>): string[];
|
|
100
|
+
/** What one pass over a package's declarations produces. @experimental */
|
|
101
|
+
export interface DeclarationFindings {
|
|
102
|
+
errors: string[];
|
|
103
|
+
/** What is declared as written but draws otherwise — a layout over a widget's `maxInstances`. Never refuses. */
|
|
104
|
+
warnings: string[];
|
|
105
|
+
/** The preset coverage report and the `todo()` holes — useful even on a refusal. */
|
|
106
|
+
coverage: CoverageReport;
|
|
107
|
+
/** Ids referenced but not declared here; the instance enforces these at install. */
|
|
108
|
+
requires: string[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The display text of one labelled declaration (R-20): `label` is required
|
|
112
|
+
* — a config, a preset and a prompt are all listed by it — `description` is
|
|
113
|
+
* not.
|
|
114
|
+
* @experimental
|
|
115
|
+
*/
|
|
116
|
+
export declare function labelFindings(at: string, meta: {
|
|
117
|
+
label?: unknown;
|
|
118
|
+
description?: unknown;
|
|
119
|
+
}): string[];
|
|
120
|
+
/**
|
|
121
|
+
* A package declares only its own genres. Referencing another's is done from a
|
|
122
|
+
* spec's input binding, which is a reference rather than a claim of ownership.
|
|
123
|
+
* @experimental
|
|
124
|
+
*/
|
|
125
|
+
export declare function genreOwnershipFindings(genres: readonly GenreDecl[], ns: string): string[];
|
|
126
|
+
/**
|
|
127
|
+
* A compiled document's `expose.swaps` (R28), checked as the builder checks
|
|
128
|
+
* them: known ids that do not fit are refused; ids this SDK does not know are
|
|
129
|
+
* the instance's to check at install.
|
|
130
|
+
* @experimental
|
|
131
|
+
*/
|
|
132
|
+
export declare function exposeSwapFindings(pipelines: readonly AnnouncedSpec[]): string[];
|
|
133
|
+
/**
|
|
134
|
+
* The input lock (24 §4): a spec that answers a session event names the genre it
|
|
135
|
+
* serves, and the event is one core declares or one this package namespaced.
|
|
136
|
+
* A genre the package does not declare is recorded as a requirement.
|
|
137
|
+
* @experimental
|
|
138
|
+
*/
|
|
139
|
+
export declare function inputLockFindings(pipelines: readonly AnnouncedSpec[], declaredGenres: ReadonlySet<string>, ns: string, requires: Set<string>): string[];
|
|
140
|
+
/**
|
|
141
|
+
* The events an inlet lock answers: the one `event`, or the `events` list
|
|
142
|
+
* (PLAN-turn-order §4.1) — as one list, so every reader of the lock asks
|
|
143
|
+
* one question. Empty for a spec with no lock.
|
|
144
|
+
* @experimental
|
|
145
|
+
*/
|
|
146
|
+
export declare function lockedEvents(input: {
|
|
147
|
+
event?: string;
|
|
148
|
+
events?: string[];
|
|
149
|
+
} | undefined): string[];
|
|
150
|
+
/** Does this lock answer `event` — as its one `event`, or one of its `events`? @experimental */
|
|
151
|
+
export declare const lockAnswers: (input: {
|
|
152
|
+
event?: string;
|
|
153
|
+
events?: string[];
|
|
154
|
+
} | undefined, event: string) => boolean;
|
|
155
|
+
/** Exactly one create pipeline per declared genre (24 §3). @experimental */
|
|
156
|
+
export declare function createPipelineFindings(genres: readonly GenreDecl[], pipelines: readonly AnnouncedSpec[]): string[];
|
|
157
|
+
/**
|
|
158
|
+
* **A custom pipeline must include a default preset** (owner ruling,
|
|
159
|
+
* 2026-10-02, notes 27/28). The Pipelines view is Genre → Preset →
|
|
160
|
+
* pipelines, and a genre's pipelines are reached only through a session
|
|
161
|
+
* preset: a package that declares a genre and no preset for it ships
|
|
162
|
+
* pipelines nobody can start a session on or find under their genre. The
|
|
163
|
+
* first preset a package declares for its genre is the one an instance makes
|
|
164
|
+
* that genre's default when it has none (`registrySync`); a package that
|
|
165
|
+
* contributes to another package's genre needs none of its own.
|
|
166
|
+
* @experimental
|
|
167
|
+
*/
|
|
168
|
+
export declare function genrePresetFindings(genres: readonly GenreDecl[], presets: readonly PresetDecl[]): string[];
|
|
169
|
+
/**
|
|
170
|
+
* Contributed actions (R-15, U5c): each declaration sound, and one slash name
|
|
171
|
+
* meaning one function across the whole package — the per-document check cannot
|
|
172
|
+
* see two specs of one package claiming `/acme.roll` for two different things,
|
|
173
|
+
* so the package is the first place the collision rule runs across documents;
|
|
174
|
+
* the install is the second.
|
|
175
|
+
* @experimental
|
|
176
|
+
*/
|
|
177
|
+
export declare function contributedActionFindings(pipelines: readonly AnnouncedSpec[]): string[];
|
|
178
|
+
/**
|
|
179
|
+
* Prompts: slugs unique per POOL, which is `(node type, slot)`.
|
|
180
|
+
*
|
|
181
|
+
* Uniqueness is per pool and not global: `summarize-scene-default` names a row
|
|
182
|
+
* in the batch, synth and naming pools, and they are three different prompts
|
|
183
|
+
* that happen to have been split out of one bundle.
|
|
184
|
+
*
|
|
185
|
+
* A prompt for a node this package does not announce is deliberately NOT
|
|
186
|
+
* recorded as a requirement. It is the whole point of node scoping that a
|
|
187
|
+
* package may ship prose for somebody else's node, and a node type is neither a
|
|
188
|
+
* genre nor a spec slug — the only two shapes an instance can check. Listing one
|
|
189
|
+
* would make every install fail permanently on a requirement nothing can ever
|
|
190
|
+
* satisfy, where the real failure mode is mild and self-announcing: the row
|
|
191
|
+
* seeds into a pool no installed pipeline offers, and is simply never shown.
|
|
192
|
+
* @experimental
|
|
193
|
+
*/
|
|
194
|
+
export declare function promptFindings(prompts: readonly PromptDecl[]): string[];
|
|
195
|
+
/** Configs: node keys verified for declared specs; slugs unique per spec. @experimental */
|
|
196
|
+
export declare function configFindings(configs: readonly ConfigDecl[], declaredSpecs: ReadonlyMap<string, AnnouncedSpec>, requires: Set<string>): string[];
|
|
197
|
+
/** Presets: validated against the genre's event surface, with the coverage (24 §7). @experimental */
|
|
198
|
+
export declare function presetFindings(presets: readonly PresetDecl[], declaredGenres: ReadonlyMap<string, GenreDecl>, declaredSpecs: ReadonlyMap<string, AnnouncedSpec>, configs: readonly ConfigDecl[], requires: Set<string>): {
|
|
199
|
+
errors: string[];
|
|
200
|
+
coverage: CoverageReport['presets'];
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Surfaces: an entry that does not exist at install is a blank panel nobody can
|
|
204
|
+
* debug, so the shape is checked where the author can still fix it. What is *at*
|
|
205
|
+
* the path is the packager's business.
|
|
206
|
+
* @experimental
|
|
207
|
+
*/
|
|
208
|
+
export declare function surfaceFindings(surfaces: SurfacesDecl | undefined): string[];
|
|
209
|
+
/** A component's slug: it names the built module (`components/<slug>.js`), so never a path. @experimental */
|
|
210
|
+
export declare const COMPONENT_SLUG: RegExp;
|
|
211
|
+
/**
|
|
212
|
+
* Components (§3.5, R25): one slug, a label, a servable entry and a
|
|
213
|
+
* framework SDK 1.0 ships. There is no mount point on the declaration — a
|
|
214
|
+
* widget names the component, and that is where it mounts.
|
|
215
|
+
* @experimental
|
|
216
|
+
*/
|
|
217
|
+
export declare function componentFindings(components: readonly ComponentDecl[]): string[];
|
|
218
|
+
/**
|
|
219
|
+
* A package's widgets name its own components (R25): every genre panel with
|
|
220
|
+
* a `component` must name a `ComponentDecl` this package declares — a plugin
|
|
221
|
+
* cannot mount core's or another plugin's component by slug.
|
|
222
|
+
* @experimental
|
|
223
|
+
*/
|
|
224
|
+
export declare function widgetComponentFindings(genres: readonly GenreDecl[], components: readonly ComponentDecl[]): string[];
|
|
225
|
+
/**
|
|
226
|
+
* A package's widgets (R71): each names a component the package declares
|
|
227
|
+
* (core's own widgets name core components — a plugin's cannot), and each id
|
|
228
|
+
* is unique in the package, because the package's namespace plus the id is
|
|
229
|
+
* the id every layout row keys on.
|
|
230
|
+
* @experimental
|
|
231
|
+
*/
|
|
232
|
+
export declare function packageWidgetFindings(widgets: readonly WidgetDecl[], components: readonly ComponentDecl[]): string[];
|
|
233
|
+
/**
|
|
234
|
+
* The layouts a package's genres ship, read as a whole package — what
|
|
235
|
+
* `genre()` and `layout()` cannot see, since a layout names widgets by id and
|
|
236
|
+
* only the package holds their declarations:
|
|
237
|
+
*
|
|
238
|
+
* - **The primary floor** (an error). A genre that withholds the
|
|
239
|
+
* conversation draws, in the layout it ships first, a widget of this
|
|
240
|
+
* package declared `role: 'primary'` — the one standing in the
|
|
241
|
+
* conversation's place. `genre()` asks only that the layout draws
|
|
242
|
+
* something. A widget of another package (a namespaced id) is that
|
|
243
|
+
* package's to declare, and is taken as written. Needs the package's
|
|
244
|
+
* widgets, so a package that states none is not judged.
|
|
245
|
+
* - **What draws, but not as written** (warnings): every warning
|
|
246
|
+
* `validateSessionLayout` has for a shipped layout — an id placed but never
|
|
247
|
+
* drawn, two items on one cell, and one of the package's widgets placed
|
|
248
|
+
* more often than its `maxInstances`.
|
|
249
|
+
* @experimental
|
|
250
|
+
*/
|
|
251
|
+
export declare function genreLayoutFindings(genres: readonly GenreDecl[], widgets: readonly WidgetDecl[] | undefined, ns: string): {
|
|
252
|
+
errors: string[];
|
|
253
|
+
warnings: string[];
|
|
254
|
+
};
|
|
255
|
+
/** Deliberate holes: `todo()` sentinels found in config values, with their paths (24 §7). @experimental */
|
|
256
|
+
export declare function todoHoles(configs: readonly ConfigDecl[]): CoverageReport['todos'];
|
|
257
|
+
/**
|
|
258
|
+
* Every check above, over one package's declarations — what both authoring
|
|
259
|
+
* surfaces run so that one mistake gets one sentence wherever it was written.
|
|
260
|
+
* @experimental
|
|
261
|
+
*/
|
|
262
|
+
export declare function declarationFindings(p: DeclaredPackage): DeclarationFindings;
|
|
263
|
+
/**
|
|
264
|
+
* The binding subjects a spec serves: its inlet lock's events, or — on
|
|
265
|
+
* the action event — its actions' identities (`<spec slug>#<key>`).
|
|
266
|
+
* @internal
|
|
267
|
+
*/
|
|
268
|
+
export declare const subjectsOf: (spec: AnnouncedSpec) => string[];
|
|
269
|
+
/**
|
|
270
|
+
* A package's events: each under the package's namespace, declared for a
|
|
271
|
+
* genre (once per genre), recordable by at least one subject or by any spec.
|
|
272
|
+
* Every pipeline of this package that records one of them is locked to a
|
|
273
|
+
* genre the event is declared for and serves a subject in that genre's
|
|
274
|
+
* scope; a lock or a preset naming one uses a genre it is declared for. An
|
|
275
|
+
* event under this package's namespace that `events` does not list is
|
|
276
|
+
* refused — it has no scope. Another package's event is a requirement: its
|
|
277
|
+
* scope is that package's, and the instance checks it.
|
|
278
|
+
* @experimental
|
|
279
|
+
*/
|
|
280
|
+
export declare function eventDeclarationFindings(events: readonly StoredEventDeclaration[], ns: string, pipelines: readonly AnnouncedSpec[], declaredGenres: ReadonlyMap<string, unknown>, requires: Set<string>, presets?: readonly PresetDecl[]): string[];
|
|
281
|
+
/**
|
|
282
|
+
* Every `set-session-annex` step of the package's pipelines writes only keys
|
|
283
|
+
* its owner declares (owner ruling 2026-09-26) — the package's own
|
|
284
|
+
* `annexFields`, or, for a step that names another owner, that owner's
|
|
285
|
+
* declaration where this process knows it. Judged where the keys are
|
|
286
|
+
* literal; a wired `value` is the host's to judge at the write.
|
|
287
|
+
* @internal
|
|
288
|
+
*/
|
|
289
|
+
export declare function annexDeclarationFindings(ns: string, pipelines: readonly AnnouncedSpec[], fields: readonly AnnexFieldDecl[] | undefined): string[];
|
|
290
|
+
//# sourceMappingURL=declarations.d.ts.map
|