@almadar/core 9.6.1 → 9.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/factory/index.d.ts +4 -398
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +214 -8
- package/dist/types/index.js +6 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types-CBb2iBAY.d.ts +454 -0
- package/package.json +1 -1
- package/dist/json-lCu3FWzv.d.ts +0 -57
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,404 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { g as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, h as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, q as TraitOverlay } from '../types-CBb2iBAY.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, l as JsonSchema, m as JsonSchemaType, n as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, r as TraitOverlayEntry, s as TraitOverlayListener } from '../types-CBb2iBAY.js';
|
|
3
|
+
import { K as EntityPersistence, F as EntityField, bF as TraitReference } from '../trait-BjSJtFXv.js';
|
|
3
4
|
import 'zod';
|
|
4
5
|
import '../expression-BVRFm0sV.js';
|
|
5
6
|
import '@almadar/patterns';
|
|
6
7
|
|
|
7
|
-
/**
|
|
8
|
-
* Cross-cutting presentation knobs that don't live per orbital
|
|
9
|
-
* because they're factory-layer concerns (nav items live on a layout
|
|
10
|
-
* trait; theme is a separate `ThemeRef`). The translator reads these
|
|
11
|
-
* and threads them into the matching factory params.
|
|
12
|
-
*/
|
|
13
|
-
interface PresentationOverlay {
|
|
14
|
-
/** Nav items to add to the orbital's layout trait. The translator
|
|
15
|
-
* looks for a `signature.traits[i]` with `overridableConfigKeys`
|
|
16
|
-
* including `navItems` and writes into `traitOverrides[name].config.navItems`. */
|
|
17
|
-
navAdditions?: ReadonlyArray<PresentationNavItem>;
|
|
18
|
-
/** Optional theme ref override for the orbital. */
|
|
19
|
-
themeRef?: string;
|
|
20
|
-
}
|
|
21
|
-
interface PresentationNavItem {
|
|
22
|
-
label: string;
|
|
23
|
-
path: string;
|
|
24
|
-
icon?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* LLM-authored trait-level overrides keyed by trait name (matches
|
|
28
|
-
* `signature.traits[].name`). Each entry's `config` keys are validated
|
|
29
|
-
* against `signature.traits[i].overridableConfigKeys`.
|
|
30
|
-
*/
|
|
31
|
-
type TraitOverlay = Readonly<Record<string, TraitOverlayEntry>>;
|
|
32
|
-
interface TraitOverlayEntry {
|
|
33
|
-
config?: Readonly<Record<string, FactoryParamValue>>;
|
|
34
|
-
linkedEntity?: string;
|
|
35
|
-
events?: Readonly<Record<string, string>>;
|
|
36
|
-
name?: string;
|
|
37
|
-
emitsScope?: 'internal' | 'external';
|
|
38
|
-
listens?: ReadonlyArray<TraitEventListener>;
|
|
39
|
-
}
|
|
40
|
-
type TraitOverlayListener = TraitEventListener;
|
|
41
|
-
/**
|
|
42
|
-
* Rules carry a free-form `capability: string` that the translator
|
|
43
|
-
* matches against `signature.traits[].capabilities` (source-tagged
|
|
44
|
-
* in `.lolo`).
|
|
45
|
-
*/
|
|
46
|
-
interface RuleOverlay {
|
|
47
|
-
rules: ReadonlyArray<RuleOverlayEntry>;
|
|
48
|
-
/** Entity-level ownership signal. The translator threads it into
|
|
49
|
-
* the matched trait's `config.ownerField` (when the matched trait
|
|
50
|
-
* advertises that key in `overridableConfigKeys`). */
|
|
51
|
-
ownership?: ReadonlyArray<OwnershipOverlayEntry>;
|
|
52
|
-
}
|
|
53
|
-
interface RuleOverlayEntry {
|
|
54
|
-
id: string;
|
|
55
|
-
/** Free-form capability label, matched against
|
|
56
|
-
* `signature.traits[].capabilities` by exact set membership. */
|
|
57
|
-
capability: string;
|
|
58
|
-
description: string;
|
|
59
|
-
/** Entity names this rule binds to. Empty array = cross-cutting. */
|
|
60
|
-
appliesTo: ReadonlyArray<string>;
|
|
61
|
-
/** Optional role name (e.g. `"admin"`) when the rule is role-scoped. */
|
|
62
|
-
role?: string;
|
|
63
|
-
/** Optional extra config knobs threaded into the matched trait's
|
|
64
|
-
* `config`. Validated against the trait's `overridableConfigKeys`. */
|
|
65
|
-
config?: Readonly<Record<string, FactoryParamValue>>;
|
|
66
|
-
}
|
|
67
|
-
interface OwnershipOverlayEntry {
|
|
68
|
-
/** Entity name (matches the orbital's bound entity name). */
|
|
69
|
-
entity: string;
|
|
70
|
-
/** Field name on the entity that carries the owner identifier. */
|
|
71
|
-
ownerField: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Recursive JSON Schema. Intentionally narrow — only the keywords V2's
|
|
76
|
-
* signature → schema generator emits. Custom `x-*` extensions carry
|
|
77
|
-
* descriptive metadata (synonyms, label) that doesn't shape validation
|
|
78
|
-
* but stays in the schema for prompt rendering / studio UIs.
|
|
79
|
-
*/
|
|
80
|
-
interface JsonSchema {
|
|
81
|
-
type?: JsonSchemaType | ReadonlyArray<JsonSchemaType>;
|
|
82
|
-
description?: string;
|
|
83
|
-
properties?: Readonly<{
|
|
84
|
-
[key: string]: JsonSchema;
|
|
85
|
-
}>;
|
|
86
|
-
required?: ReadonlyArray<string>;
|
|
87
|
-
additionalProperties?: boolean | JsonSchema;
|
|
88
|
-
items?: JsonSchema;
|
|
89
|
-
enum?: ReadonlyArray<string | number | boolean>;
|
|
90
|
-
oneOf?: ReadonlyArray<JsonSchema>;
|
|
91
|
-
anyOf?: ReadonlyArray<JsonSchema>;
|
|
92
|
-
default?: JsonValue;
|
|
93
|
-
/**
|
|
94
|
-
* Reference to a shared definition under `$defs` at the schema root.
|
|
95
|
-
* Lets consumers DRY large repeated subschemas (e.g. a 300-entry enum
|
|
96
|
-
* of std-behavior paths reused across every orbital branch of a tool
|
|
97
|
-
* schema). Per JSON Schema 2020-12: absolute reference starting with
|
|
98
|
-
* `#`. Standard OpenAI / DeepSeek strict-mode tool calling resolves
|
|
99
|
-
* `$ref` against `$defs` defined on the tool's parameters root.
|
|
100
|
-
*/
|
|
101
|
-
$ref?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Inline subschema definitions referenced from elsewhere via `$ref`.
|
|
104
|
-
* Lives at the schema root so all `$ref` paths can resolve. Values are
|
|
105
|
-
* full `JsonSchema` (can be referenced recursively).
|
|
106
|
-
*/
|
|
107
|
-
$defs?: Readonly<{
|
|
108
|
-
[key: string]: JsonSchema;
|
|
109
|
-
}>;
|
|
110
|
-
/** Knob's `@synonyms` from the source `.lolo`. */
|
|
111
|
-
'x-synonyms'?: string;
|
|
112
|
-
/** Knob's `@label` from the source `.lolo`. */
|
|
113
|
-
'x-label'?: string;
|
|
114
|
-
/** Knob's `@tier` from the source `.lolo` (`domain`/`presentation`/`internal`). */
|
|
115
|
-
'x-tier'?: string;
|
|
116
|
-
}
|
|
117
|
-
type JsonSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object' | 'null';
|
|
118
|
-
/**
|
|
119
|
-
* OrbitalSchema field type tags. The factory-signature extractor lifts
|
|
120
|
-
* these directly from the resolved `.orb`; consumers narrow further at
|
|
121
|
-
* dispatch time.
|
|
122
|
-
*/
|
|
123
|
-
type SchemaFieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'array' | 'object' | 'enum' | 'relation';
|
|
124
|
-
interface FactorySignatureEntityField {
|
|
125
|
-
name: string;
|
|
126
|
-
type: SchemaFieldType;
|
|
127
|
-
required: boolean;
|
|
128
|
-
/** Runtime-managed widget state (`@intrinsic`). A composer must NOT remap an
|
|
129
|
-
* intrinsic slot onto a domain field — it rides along via `extends`. */
|
|
130
|
-
intrinsic?: boolean;
|
|
131
|
-
/** Human/semantic description (`@description "..."`). Slot-side signal for the
|
|
132
|
-
* curation field matcher + catalog search. */
|
|
133
|
-
description?: string;
|
|
134
|
-
/** User-vocabulary synonyms (`@synonyms "..."`). */
|
|
135
|
-
synonyms?: string;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* The canonical entity a factory produces. Almost always one entity
|
|
139
|
-
* per orbital; modeled as an array to keep the door open for orbitals
|
|
140
|
-
* that compose multiple entities.
|
|
141
|
-
*/
|
|
142
|
-
interface FactoryEntitySignature {
|
|
143
|
-
/** Canonical entity name the factory's params build (e.g. `"ChatMessage"`). */
|
|
144
|
-
name: string;
|
|
145
|
-
/** Fields the factory emits, post-auto-field stripping. */
|
|
146
|
-
fields: ReadonlyArray<FactorySignatureEntityField>;
|
|
147
|
-
/** Persistence mode declared on the canonical entity in the `.orb`. */
|
|
148
|
-
persistence: EntityPersistence;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* One overridable config knob a trait advertises. Lifted directly from
|
|
152
|
-
* the source `.lolo` `config { }` block (which carries typed
|
|
153
|
-
* declarations + defaults). Consumers (the questionnaire generator,
|
|
154
|
-
* the studio) pick a widget from `type` and pre-fill from `default`.
|
|
155
|
-
*
|
|
156
|
-
* `label` is reserved for a future `.lolo` grammar extension that
|
|
157
|
-
* lets atom authors author a human-friendly question prompt; today
|
|
158
|
-
* it's always undefined and the questionnaire derives a fallback
|
|
159
|
-
* from the key name.
|
|
160
|
-
*/
|
|
161
|
-
interface FactoryConfigParam {
|
|
162
|
-
/** Key name as advertised by the trait. Matches the override path
|
|
163
|
-
* `traitOverrides.<traitName>.config.<key>`. */
|
|
164
|
-
key: string;
|
|
165
|
-
/** Type tag lifted from the `.lolo` config declaration. Drives the
|
|
166
|
-
* question widget selection. Free-form to admit array/object
|
|
167
|
-
* brackets (`[object]`, `[string]`) and atom-defined custom tags. */
|
|
168
|
-
type: string;
|
|
169
|
-
/** Canonical default value the factory uses when no override is
|
|
170
|
-
* supplied. Pre-fills the form widget so users see what they're
|
|
171
|
-
* about to change. */
|
|
172
|
-
default?: FactoryParamValue;
|
|
173
|
-
/** Optional human-friendly question prompt. Lifted from the source
|
|
174
|
-
* `.lolo` `@label "..."` annotation. */
|
|
175
|
-
label?: string;
|
|
176
|
-
/** Optional help-text. Lifted from `.lolo` `@description "..."`. */
|
|
177
|
-
description?: string;
|
|
178
|
-
/** Optional closed-enum value set. Lifted from `.lolo` enum syntax. */
|
|
179
|
-
enumValues?: ReadonlyArray<string>;
|
|
180
|
-
/** Array element schema when the slot's type is `[T]`. Mirrors the
|
|
181
|
-
* `.orb` `ConfigField.items` carrier (`FieldDefinition`-shaped). Lets
|
|
182
|
-
* consumers see the per-element typing — e.g. `metrics : [MetricSpec]`
|
|
183
|
-
* exposes `items.properties` with every MetricSpec field + its own
|
|
184
|
-
* `values: [...]` enum constraints. */
|
|
185
|
-
items?: EntityField;
|
|
186
|
-
/** Object property schemas keyed by property name when the slot's type
|
|
187
|
-
* is an inline `{ ... }` or a named struct alias. Mirrors the `.orb`
|
|
188
|
-
* `ConfigField.properties` carrier. */
|
|
189
|
-
properties?: Readonly<Record<string, EntityField>>;
|
|
190
|
-
/** Comma-separated user-vocabulary synonyms. Authored in `.lolo` as
|
|
191
|
-
* `@synonyms "..."` next to the knob declaration. Used by the agent's
|
|
192
|
-
* catalog-summary prompt (so the LLM connects user phrases to knob
|
|
193
|
-
* names) and by the publish-time knob-embeddings bake (so cosine
|
|
194
|
-
* narrowing recalls knobs voiced via synonym).
|
|
195
|
-
*
|
|
196
|
-
* Example for the `height` knob on `std-graphs`:
|
|
197
|
-
* `@synonyms "taller, shorter, vertical size, pixel height"`
|
|
198
|
-
*
|
|
199
|
-
* Stays a single free-form string; consumers decide their own
|
|
200
|
-
* splitting/formatting policy. */
|
|
201
|
-
synonyms?: string;
|
|
202
|
-
/** Decision-kind tier authored in `.lolo` as `@tier "..."` next to the
|
|
203
|
-
* knob declaration. Drives the studio Questionnaire's filter +
|
|
204
|
-
* disclosure: `internal` knobs are hidden entirely, `presentation`
|
|
205
|
-
* knobs collapse under the "Polish wording" panel, `domain` knobs
|
|
206
|
-
* render inline. Untagged knobs are treated as `presentation` by the
|
|
207
|
-
* studio (safe default — most un-audited knobs are presentation polish). */
|
|
208
|
-
tier?: FactoryConfigTier;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Decision-kind tier for a `FactoryConfigParam`. Source-tagged via the
|
|
212
|
-
* `@tier "..."` annotation in `.lolo` — no heuristic inference on the
|
|
213
|
-
* consumer side. Missing tag = author did not tag = treat as
|
|
214
|
-
* `presentation` at render time.
|
|
215
|
-
*
|
|
216
|
-
* - `domain` — changes how the BUSINESS behaves (currency, retention
|
|
217
|
-
* days, approver roles, SLA hours, lifecycle rules, recipient map,
|
|
218
|
-
* GDPR erasure window). The user MUST own these decisions.
|
|
219
|
-
* - `presentation` — changes how the same business meaning is RENDERED
|
|
220
|
-
* (labels, placeholders, titles, copy, column lists, action lists,
|
|
221
|
-
* layout fidelity like cols/gap/chartType). LLM picks defaults;
|
|
222
|
-
* user can edit post-generation.
|
|
223
|
-
* - `internal` — framework primitives (trait/slot/pattern types,
|
|
224
|
-
* *Event keys, layoutMode); the studio never surfaces these.
|
|
225
|
-
*/
|
|
226
|
-
type FactoryConfigTier = 'domain' | 'presentation' | 'internal';
|
|
227
|
-
/**
|
|
228
|
-
* One trait the factory composes into the orbital. The projector reads
|
|
229
|
-
* these to determine which factory's trait stack covers a given
|
|
230
|
-
* orbital + which override knobs a presentation overlay can target.
|
|
231
|
-
*/
|
|
232
|
-
interface FactoryTraitSignature {
|
|
233
|
-
/** Canonical trait name post-rename (e.g. `"ChatMessageList"`). */
|
|
234
|
-
name: string;
|
|
235
|
-
/** Upstream trait reference path when this trait is a call-site override
|
|
236
|
-
* of an imported atom — e.g. `"Stats.traits.StatsItemStats"`. Absent
|
|
237
|
-
* when the trait is inline-defined (atom-tier traits). The catalog
|
|
238
|
-
* inheritance pass uses this to resolve the upstream atom signature
|
|
239
|
-
* so each call-site `overridableConfigKeys` entry gets `type` /
|
|
240
|
-
* `items` / `properties` filled in from the canonical declaration. */
|
|
241
|
-
ref?: string;
|
|
242
|
-
/** Event keys this trait emits (post-rename). */
|
|
243
|
-
emittedEvents: ReadonlyArray<string>;
|
|
244
|
-
/** Event keys this trait listens for. */
|
|
245
|
-
listenedEvents: ReadonlyArray<string>;
|
|
246
|
-
/** Structured emit + listen events with their `@description`/`@synonyms`/`@tier`
|
|
247
|
-
* annotations. Parallel to `emittedEvents`/`listenedEvents` (kept as bare-key
|
|
248
|
-
* back-compat); the curation event matcher reads this. */
|
|
249
|
-
events?: ReadonlyArray<FactoryEventSignature>;
|
|
250
|
-
/** Config knobs overridable via `traitOverrides.<name>.config.<key>`.
|
|
251
|
-
* Each entry carries the key name plus the typed declaration lifted
|
|
252
|
-
* from the source `.lolo` `config { }` block. */
|
|
253
|
-
overridableConfigKeys: ReadonlyArray<FactoryConfigParam>;
|
|
254
|
-
/** Capability tags lifted directly from the source `.lolo` trait's
|
|
255
|
-
* header annotations. Free-form strings — the translator overlay
|
|
256
|
-
* matches rules to traits by exact set membership. */
|
|
257
|
-
capabilities: ReadonlyArray<string>;
|
|
258
|
-
/** `true` when the source trait's entity binding was authored
|
|
259
|
-
* `-> @rebindable Entity`. Only then may a consumer rebind it via
|
|
260
|
-
* `traitOverrides.<name>.linkedEntity`; rabit enum-constrains that
|
|
261
|
-
* override to the organism's entities and the validator enforces the
|
|
262
|
-
* field contract. Absent/false = fixed binding. */
|
|
263
|
-
entityRebindable?: boolean;
|
|
264
|
-
/** Inferred field contract a rebind target must satisfy. `requires` =
|
|
265
|
-
* fields the trait reads via `@entity.X`; `provides` = fields it writes.
|
|
266
|
-
* Present only alongside `entityRebindable`. */
|
|
267
|
-
entityContract?: {
|
|
268
|
-
requires: ReadonlyArray<string>;
|
|
269
|
-
provides: ReadonlyArray<string>;
|
|
270
|
-
};
|
|
271
|
-
/** `@description` / `@synonyms` authored on the `@rebindable` binding —
|
|
272
|
-
* fed to catalog prose + knob-embeddings for binding-discovery. */
|
|
273
|
-
entityBindingDescription?: string;
|
|
274
|
-
entityBindingSynonyms?: string;
|
|
275
|
-
}
|
|
276
|
-
/** One event a trait emits or listens for, with its authored annotations — the
|
|
277
|
-
* per-event analogue of `FactorySignatureEntityField` / `FactoryConfigParam`.
|
|
278
|
-
* Feeds the curation event matcher (embedding-wire a composed style atom's
|
|
279
|
-
* actions to a domain lifecycle's events). */
|
|
280
|
-
interface FactoryEventSignature {
|
|
281
|
-
/** Event key (post-rename). */
|
|
282
|
-
name: string;
|
|
283
|
-
/** Whether the trait emits the event or listens for it. */
|
|
284
|
-
direction: 'emit' | 'listen';
|
|
285
|
-
/** Authored `@description` on the emit/listen. */
|
|
286
|
-
description?: string;
|
|
287
|
-
/** Authored `@synonyms` (comma-separated user vocabulary). */
|
|
288
|
-
synonyms?: string;
|
|
289
|
-
/** Authoring `@tier` (`essential`/`customization`/`advanced`/`internal`). */
|
|
290
|
-
tier?: string;
|
|
291
|
-
}
|
|
292
|
-
/** One page the factory emits. The path is the factory default; the
|
|
293
|
-
* projector may override via `params.pagePaths`. */
|
|
294
|
-
interface FactoryPageSignature {
|
|
295
|
-
name: string;
|
|
296
|
-
defaultPath: string;
|
|
297
|
-
primaryEntity: string;
|
|
298
|
-
}
|
|
299
|
-
interface FactorySignature {
|
|
300
|
-
/** Organism the factory belongs to (e.g. `"std-realtime-chat"`). */
|
|
301
|
-
organism: string;
|
|
302
|
-
/** Orbital this factory builds within that organism. */
|
|
303
|
-
orbital: string;
|
|
304
|
-
/** Tier the factory sits in (informational). */
|
|
305
|
-
tier: 'atoms' | 'molecules' | 'organisms';
|
|
306
|
-
/** Path of the generated factory source (relative to the std root). */
|
|
307
|
-
factoryPath: string;
|
|
308
|
-
/** Canonical entity surface(s) the factory produces. */
|
|
309
|
-
entities: ReadonlyArray<FactoryEntitySignature>;
|
|
310
|
-
/** Trait stack the factory composes. */
|
|
311
|
-
traits: ReadonlyArray<FactoryTraitSignature>;
|
|
312
|
-
/** Pages the factory emits. */
|
|
313
|
-
pages: ReadonlyArray<FactoryPageSignature>;
|
|
314
|
-
/** Union of all `traits[].emittedEvents`. */
|
|
315
|
-
emittedEvents: ReadonlyArray<string>;
|
|
316
|
-
/** Union of all `traits[].listenedEvents`. */
|
|
317
|
-
listenedEvents: ReadonlyArray<string>;
|
|
318
|
-
/**
|
|
319
|
-
* JSON Schema for the orbital's `AnalysisOrbitalParams` shape. Walks
|
|
320
|
-
* `traitOverrides.<TraitName>.config.<knob>` with the exact type
|
|
321
|
-
* (string/number/boolean/array/object) lifted from each knob's
|
|
322
|
-
* declaration, `enum` from `enumValues`, recursive `items` for array
|
|
323
|
-
* slots, recursive `properties` for struct slots. Every level carries
|
|
324
|
-
* `additionalProperties: false` so the LLM cannot emit unknown trait
|
|
325
|
-
* names, invented knob keys, or out-of-set enum values.
|
|
326
|
-
*
|
|
327
|
-
* Pre-computed at signature extraction time by
|
|
328
|
-
* `tools/almadar-pattern-sync/src/std-ts/signatures/`. V2 tool-calling
|
|
329
|
-
* (`@almadar-io/agent`'s coordinator + per-orbital subagent) feeds this
|
|
330
|
-
* directly to OpenAI's `tool.parameters` with `strict: true` — the
|
|
331
|
-
* LLM is physically constrained by the schema instead of relying on
|
|
332
|
-
* post-hoc validation.
|
|
333
|
-
*
|
|
334
|
-
* Optional for backward compatibility: signatures emitted by older
|
|
335
|
-
* pattern-sync versions don't carry it, in which case V2 tools fall
|
|
336
|
-
* back to a loose schema + post-hoc validation.
|
|
337
|
-
*/
|
|
338
|
-
paramsSchema?: JsonSchema;
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Aggregate catalog written to
|
|
342
|
-
* `packages/almadar-std/behaviors/registry/factory-signatures.json`.
|
|
343
|
-
* Sorted by organism then orbital.
|
|
344
|
-
*/
|
|
345
|
-
interface FactorySignatureCatalog {
|
|
346
|
-
/** Generated-by version stamp (the `@almadar/std` minor it shipped in). */
|
|
347
|
-
generatedFromStdVersion: string;
|
|
348
|
-
/** Sorted list of factory signatures. */
|
|
349
|
-
signatures: ReadonlyArray<FactorySignature>;
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* A single factory invocation, as the typed result of the translator.
|
|
353
|
-
* Lower into runtime by calling the factory at `factoryPath` with
|
|
354
|
-
* these `params`. Stable identity for downstream diffing is
|
|
355
|
-
* `(organism, orbital)`.
|
|
356
|
-
*/
|
|
357
|
-
interface FactoryCallSite {
|
|
358
|
-
organism: string;
|
|
359
|
-
orbital: string;
|
|
360
|
-
factoryPath: string;
|
|
361
|
-
params: FactoryCallSiteParams;
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* The typed param surface every factory's call site populates. Each
|
|
365
|
-
* field corresponds to one row in the translator's overlay → factory
|
|
366
|
-
* mapping table.
|
|
367
|
-
*/
|
|
368
|
-
interface FactoryCallSiteParams {
|
|
369
|
-
/** Override `signature.entities[0].name` (entity rename). */
|
|
370
|
-
entityName?: string;
|
|
371
|
-
/** Additional or overriding entity fields. Caller wins on collision. */
|
|
372
|
-
entityFields?: ReadonlyArray<EntityField>;
|
|
373
|
-
/** Override `signature.entities[0].persistence`. */
|
|
374
|
-
persistence?: EntityPersistence;
|
|
375
|
-
/** Override the entity's storage collection key. */
|
|
376
|
-
collection?: string;
|
|
377
|
-
/** Per-page path overrides keyed by `signature.pages[i].name`. */
|
|
378
|
-
pagePaths?: Readonly<Record<string, string>>;
|
|
379
|
-
/** Trait-level overrides keyed by `signature.traits[i].name`. Each value
|
|
380
|
-
* is a {@link TraitOverlayEntry} — the canonical override surface that
|
|
381
|
-
* admits the full documented set (`config`, `linkedEntity`, `events`,
|
|
382
|
-
* `name`, `emitsScope`, `listens`) and mirrors what `TraitOverlay` (the
|
|
383
|
-
* LLM-facing input) and {@link MakeTraitRefOpts} (the builder input)
|
|
384
|
-
* both accept. The translator threads each field from the overlay
|
|
385
|
-
* through to here verbatim; the factory applies them via the same
|
|
386
|
-
* `TraitReference` override semantics the inliner uses on hand-authored
|
|
387
|
-
* `.orb` traits. Pre-unification this carried only `{ config? }`, which
|
|
388
|
-
* silently dropped every other override field even though both the
|
|
389
|
-
* overlay layer above and the factory builders below accepted them. */
|
|
390
|
-
traitOverrides?: Readonly<Record<string, TraitOverlayEntry>>;
|
|
391
|
-
/** Extra traits to compose into the orbital that aren't part of the
|
|
392
|
-
* canonical signature trait stack. */
|
|
393
|
-
extraTraits?: ReadonlyArray<TraitReference>;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Allowed leaf values for the typed factory-param surface.
|
|
397
|
-
*/
|
|
398
|
-
type FactoryParamValue = string | number | boolean | ReadonlyArray<FactoryParamValue> | {
|
|
399
|
-
readonly [key: string]: FactoryParamValue;
|
|
400
|
-
};
|
|
401
|
-
|
|
402
8
|
/**
|
|
403
9
|
* Typed questionnaire surface — shapes the studio renders + answers.
|
|
404
10
|
*
|
|
@@ -737,4 +343,4 @@ type CallSiteDiff = {
|
|
|
737
343
|
};
|
|
738
344
|
declare function diffFactoryCalls(prior: ReadonlyArray<FactoryCallSite>, next: ReadonlyArray<FactoryCallSite>): ReadonlyArray<CallSiteDiff>;
|
|
739
345
|
|
|
740
|
-
export { type CallSiteDiff, type DomainQuestion, type DomainQuestionAnswer, type DomainQuestionAnswers, type DomainQuestionInputType, type FactoryCallPlanMutation, type FactoryCallPlanMutationTemplate, type FactoryCallPlanState,
|
|
346
|
+
export { type CallSiteDiff, type DomainQuestion, type DomainQuestionAnswer, type DomainQuestionAnswers, type DomainQuestionInputType, type FactoryCallPlanMutation, type FactoryCallPlanMutationTemplate, type FactoryCallPlanState, FactoryCallSite, FactoryConfigParam, FactoryConfigTier, FactoryParamValue, FactorySignature, type OrbitalCallInput, PresentationOverlay, RuleOverlay, RuleOverlayEntry, TraitOverlay, type TranslationBinding, type TranslationResult, type TranslationWarning, answerToMutations, answersToMutations, applyFactoryCallPlanMutation, deriveInputType, diffFactoryCalls, generateQuestions, translateOverlaysToParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { bd as State } from './trait-BjSJtFXv.js';
|
|
|
4
4
|
export { A as AgentEffect, a as AnimationDef, b as AnimationDefInput, c as AnimationDefSchema, d as ArrayEntityField, e as AssetMap, f as AssetMapInput, g as AssetMapSchema, h as AssetMapping, i as AssetMappingInput, j as AssetMappingSchema, k as AtomicEffect, C as CallServiceConfig, l as CallServiceEffect, m as CheckpointLoadEffect, n as CheckpointSaveEffect, o as ConfigFieldDeclaration, p as ConfigFieldDeclarationSchema, D as DeclaredTraitConfig, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, E as ENTITY_ROLES, u as Effect, v as EffectInput, w as EffectSchema, x as EmitConfig, y as EmitEffect, z as Entity, B as EntityData, F as EntityField, G as EntityFieldContract, H as EntityFieldContractSchema, I as EntityFieldInput, J as EntityFieldSchema, K as EntityPersistence, L as EntityPersistenceSchema, M as EntityRole, N as EntityRoleSchema, O as EntityRow, P as EntitySchema, Q as EnumEntityField, R as EvaluateConfig, S as EvaluateEffect, T as Event, U as EventInput, V as EventPayloadField, W as EventPayloadFieldSchema, X as EventSchema, Y as EventScope, Z as EventScopeSchema, _ as FetchEffect, $ as FetchOptions, a0 as FetchResult, a1 as Field, a2 as FieldFormat, a3 as FieldFormatSchema, a4 as FieldSchema, a5 as FieldType, a6 as FieldTypeSchema, a7 as FieldValue, a8 as ForwardConfig, a9 as ForwardEffect, aa as GAME_TYPES, ab as GameType, ac as GameTypeSchema, ad as Guard, ae as GuardInput, af as GuardSchema, ag as ListenSource, ah as ListenSourceSchema, ai as LogEffect, aj as McpServiceDef, ak as McpServiceDefSchema, al as NavigateEffect, am as NnConfig, an as NnLayer, ao as NotifyEffect, ap as OrbitalEntity, aq as OrbitalEntityInput, ar as OrbitalEntitySchema, as as OrbitalTraitRef, at as OrbitalTraitRefSchema, au as OsEffect, av as PayloadField, aw as PayloadFieldSchema, ax as PersistData, ay as PersistEffect, az as PersistEmitConfig, aA as PresentationType, aB as RefEffect, aC as RelationConfig, aD as RelationConfigSchema, aE as RelationEntityField, aF as RenderItemLambda, aG as RenderUIConfig, aH as RenderUIEffect, aI as RenderUINode, aJ as RequiredField, aK as RequiredFieldSchema, aL as ResolvedAsset, aM as ResolvedAssetInput, aN as ResolvedAssetSchema, aO as ResolvedPatternProps, aP as RestAuthConfig, aQ as RestAuthConfigSchema, aR as RestServiceDef, aS as RestServiceDefSchema, aT as SERVICE_TYPES, aU as ScalarEntityField, aV as SemanticAssetRef, aW as SemanticAssetRefInput, aX as SemanticAssetRefSchema, aY as ServiceDefinition, aZ as ServiceDefinitionSchema, a_ as ServiceParams, a$ as ServiceParamsValue, b0 as ServiceRef, b1 as ServiceRefObject, b2 as ServiceRefObjectSchema, b3 as ServiceRefSchema, b4 as ServiceRefStringSchema, b5 as ServiceType, b6 as ServiceTypeSchema, b7 as SetEffect, b8 as SocketEvents, b9 as SocketEventsSchema, ba as SocketServiceDef, bb as SocketServiceDefSchema, bc as SpawnEffect, be as StateInput, bf as StateMachine, bg as StateMachineInput, bh as StateMachineSchema, bi as StateSchema, bj as SwapEffect, bk as TrainConfig, bl as TrainEffect, bm as Trait, bn as TraitCategory, bo as TraitCategorySchema, bp as TraitConfig, bq as TraitConfigObject, br as TraitConfigSchema, bs as TraitConfigValue, bt as TraitConfigValueSchema, bu as TraitDataEntity, bv as TraitDataEntitySchema, bw as TraitEntityField, bx as TraitEntityFieldSchema, by as TraitEventContract, bz as TraitEventContractSchema, bA as TraitEventListener, bB as TraitEventListenerSchema, bC as TraitInput, bD as TraitRef, bE as TraitRefSchema, bF as TraitReference, bG as TraitReferenceInput, bH as TraitReferenceSchema, bI as TraitSchema, bK as TraitTick, bL as TraitTickSchema, bM as TraitUIBinding, bN as Transition, bO as TransitionInput, bP as TransitionSchema, bQ as TypedEffect, bR as UISlot, bS as UISlotSchema, bT as UI_SLOTS, bU as VISUAL_STYLES, bV as VisualStyle, bW as VisualStyleSchema, bX as WatchEffect, bY as WatchOptions, bZ as atomic, b_ as callService, b$ as createAssetKey, c0 as deref, c1 as deriveCollection, c2 as despawn, c3 as doEffects, c4 as emit, c5 as findService, c6 as getDefaultAnimationsForRole, c7 as getServiceNames, c8 as getTraitConfig, c9 as getTraitName, ca as hasService, cb as isCircuitEvent, cc as isEffect, cd as isInlineTrait, ce as isMcpService, cf as isRestService, cg as isRuntimeEntity, ch as isSExprEffect, ci as isServiceReference, cj as isServiceReferenceObject, ck as isSingletonEntity, cl as isSocketService, cm as navigate, cn as normalizeTraitRef, co as notify, cp as parseAssetKey, cq as parseServiceRef, cr as persist, cs as ref, ct as renderUI, cu as set, cv as spawn, cw as swap, cx as validateAssetAnimations, cy as watch } from './trait-BjSJtFXv.js';
|
|
5
5
|
export { C as CORE_BINDINGS, a as CoreBinding, E as EvalContext, b as EventPayload, c as EventPayloadValue, d as Expression, e as ExpressionInput, f as ExpressionSchema, L as LogMeta, P as ParsedBinding, S as SExpr, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from './expression-BVRFm0sV.js';
|
|
6
6
|
import { ResolvedIR, ResolvedEntity, ResolvedPage, ResolvedTrait, ChangesetValue, SchemaChange, CategorizedRemovals, PageContentReduction, SemanticSchemaChange } from './types/index.js';
|
|
7
|
-
export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AppSummary, AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingContext, BindingRoot, BindingSchema, BridgeHealth, BusEvent, BusEventListener, BusEventSource, ChangeAuthor, ChangeSetDocument, ChangeSummary, CheckStatus, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EditFlow, EffectTrace, EventEmit, EventKey, EventListen, EventLogEntry, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, KnownValidationErrorCode, LazyService, ListInteraction, OrbitalVerificationAPI, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SaveOptions, SaveResult, SemanticChangeKind, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotDocument, StatsView, StoreContract, StoreFilter, StoreFilterOp, TraitFieldRef, TraitFieldRefSchema, TraitStateSnapshot, TransitionFrom, TransitionTrace, Unsubscribe, ValidationDocument, ValidationError, ValidationErrorCode, ValidationIssue, ValidationMeta, ValidationResults, VerificationCheck, VerificationSnapshot, VerificationSummary, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext } from './types/index.js';
|
|
8
|
-
export { J as JsonObject,
|
|
9
|
-
export { CallSiteDiff, DomainQuestion, DomainQuestionAnswer, DomainQuestionAnswers, DomainQuestionInputType, FactoryCallPlanMutation, FactoryCallPlanMutationTemplate, FactoryCallPlanState,
|
|
7
|
+
export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AnnotationTier, AppSummary, AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingContext, BindingRoot, BindingSchema, BridgeHealth, BusEvent, BusEventListener, BusEventSource, ChangeAuthor, ChangeSetDocument, ChangeSummary, CheckStatus, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EdgeType, EditFlow, EffectPayload, EffectResult, EffectTrace, EventEmit, EventKey, EventListen, EventLogEntry, EvolutionDelta, GateState, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, KnobPayload, KnownValidationErrorCode, LazyService, LineageEntry, ListInteraction, LivingEdge, LivingEffect, LivingEntity, LivingEvent, LivingField, LivingOrbital, LivingOrbitalSchema, LivingPage, LivingState, LivingTrait, LivingTransition, LivingValue, LivingVertex, OrbitalVerificationAPI, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, Probability, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SaveOptions, SaveResult, SemanticAnnotation, SemanticChangeKind, SemanticVector, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotDocument, StatsView, StoreContract, StoreFilter, StoreFilterOp, TraitFieldRef, TraitFieldRefSchema, TraitStateSnapshot, TransitionFrom, TransitionTrace, Unsubscribe, ValidationDocument, ValidationError, ValidationErrorCode, ValidationIssue, ValidationMeta, ValidationResult, ValidationResults, VerificationCheck, VerificationSnapshot, VerificationSummary, VertexId, VertexPayload, VertexType, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier } from './types/index.js';
|
|
8
|
+
export { F as FactoryCallSite, a as FactoryCallSiteParams, b as FactoryConfigParam, c as FactoryConfigTier, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, g as FactoryParamValue, h as FactorySignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, J as JsonObject, l as JsonSchema, m as JsonSchemaType, n as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, o as PresentationOverlay, R as RuleOverlay, p as RuleOverlayEntry, S as SchemaFieldType, T as ToolArgs, q as TraitOverlay, r as TraitOverlayEntry, s as TraitOverlayListener, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from './types-CBb2iBAY.js';
|
|
9
|
+
export { CallSiteDiff, DomainQuestion, DomainQuestionAnswer, DomainQuestionAnswers, DomainQuestionInputType, FactoryCallPlanMutation, FactoryCallPlanMutationTemplate, FactoryCallPlanState, OrbitalCallInput, TranslationBinding, TranslationResult, TranslationWarning, answerToMutations, answersToMutations, applyFactoryCallPlanMutation, deriveInputType, diffFactoryCalls, generateQuestions, translateOverlaysToParams } from './factory/index.js';
|
|
10
10
|
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-BLCis28r.js';
|
|
11
11
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
|
12
12
|
export { BFSNode, BFSPathNode, EdgeWalkTransition, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, WalkStep, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1892,6 +1892,11 @@ function isKnownValidationErrorCode(code) {
|
|
|
1892
1892
|
return code in KNOWN_VALIDATION_ERROR_CODES;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
|
+
// src/types/living.ts
|
|
1896
|
+
function widenTier(tier) {
|
|
1897
|
+
return tier;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1895
1900
|
// src/resolver.ts
|
|
1896
1901
|
var schemaCache = /* @__PURE__ */ new WeakMap();
|
|
1897
1902
|
function clearSchemaCache() {
|
|
@@ -4035,6 +4040,6 @@ function buildPayloadForEdge(transition, guardCase) {
|
|
|
4035
4040
|
return {};
|
|
4036
4041
|
}
|
|
4037
4042
|
|
|
4038
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CORE_BINDINGS, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectReachableStates, composeBehaviors, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, deriveInputType, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, extractPayloadFieldRef, findService, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getEntity, getInteractionModelForDomain, getOperator, getPage, getPages, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, inferTsType, isBinding, isCircuitEvent, isDestructiveChange, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isTraitFieldRef, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, ref, renderUI, requiresConfirmation, safeParseOrbitalSchema, schemaToIR, set, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, toBindingRoot, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, walkSExpr, walkStatePairs, watch };
|
|
4043
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CORE_BINDINGS, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectReachableStates, composeBehaviors, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, deriveInputType, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, extractPayloadFieldRef, findService, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getEntity, getInteractionModelForDomain, getOperator, getPage, getPages, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, inferTsType, isBinding, isCircuitEvent, isDestructiveChange, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isTraitFieldRef, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, ref, renderUI, requiresConfirmation, safeParseOrbitalSchema, schemaToIR, set, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, toBindingRoot, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, walkSExpr, walkStatePairs, watch, widenTier };
|
|
4039
4044
|
//# sourceMappingURL=index.js.map
|
|
4040
4045
|
//# sourceMappingURL=index.js.map
|