@almadar/core 10.20.0 → 10.22.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/{schema-BEL2Gr4v.d.ts → builders-BjButZdb.d.ts} +582 -3
- package/dist/builders.d.ts +4 -469
- package/dist/{expression-BUIi9ezJ.d.ts → expression-BVRFm0sV.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -5
- package/dist/index.d.ts +8 -9
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/{trait-BcRvHKLW.d.ts → trait-Cs8Mrdw9.d.ts} +2 -2
- package/dist/types/index.d.ts +228 -9
- package/dist/{types-DBzaYmuJ.d.ts → types-DpBetrYc.d.ts} +41 -2
- package/package.json +1 -1
- package/dist/compose-behaviors-mP-vUG61.d.ts +0 -119
package/dist/builders.d.ts
CHANGED
|
@@ -1,470 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
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-mP-vUG61.js';
|
|
5
|
-
import { AnyPatternConfig } from '@almadar/patterns';
|
|
1
|
+
import './trait-Cs8Mrdw9.js';
|
|
2
|
+
export { i as ComposeBehaviorsInput, j as ComposeBehaviorsResult, c7 as ComposeConnection, c8 as ComposePage, a6 as EventWiringEntry, aq as LayoutStrategy, c9 as MakeAtomOrbitalOpts, ca as MakeAtomOrbitalTraitOverrides, cb as MakeEntityOpts, cc as MakeLayoutTraitOpts, cd as MakeOrbitalWithUsesOpts, ce as MakePageOpts, cf as MakePageRefOpts, cg as MakePageRefOptsTyped, M as MakeTraitRefOpts, ch as MakeTraitRefOptsTyped, bS as applyEventWiring, ci as applyTraitConfigOverrides, cj as compose, bT as composeBehaviors, ck as connect, bU as detectLayoutStrategy, cl as ensureIdField, cm as extractTrait, cn as makeAtomOrbital, co as makeEntity, cp as makeLayoutTrait, cq as makeOrbital, cr as makeOrbitalWithUses, cs as makePage, ct as makePageRef, cu as makeRenderUI, cv as makeSchema, cw as makeSlot, cx as makeTraitRef, cy as mergeOrbitals, cz as pipe, cA as plural, cB as wire } from './builders-BjButZdb.js';
|
|
3
|
+
import './expression-BVRFm0sV.js';
|
|
6
4
|
import 'zod';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Apply trait config overrides to a schema — pure, returns a new schema.
|
|
10
|
-
*
|
|
11
|
-
* Used by config-driven preview surfaces (the playground property inspector and
|
|
12
|
-
* the verify config-sweep) to render a behavior with different `config` values
|
|
13
|
-
* WITHOUT recompiling: the override is written onto the matching trait, then the
|
|
14
|
-
* schema is re-registered and re-rendered.
|
|
15
|
-
*
|
|
16
|
-
* The resolved schema's traits are inlined `Trait`s whose `config` is the
|
|
17
|
-
* DECLARED schema (`{ field: { type, default, ... } }`), so an override patches
|
|
18
|
-
* each field's `default`. A trait that instead carries call-site value config
|
|
19
|
-
* (a `{ ref, config }` reference) gets the values merged directly.
|
|
20
|
-
*
|
|
21
|
-
* @packageDocumentation
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Return a new schema with `config` overrides applied to traits whose identity
|
|
26
|
-
* (`name`, falling back to `ref`) matches a key in `overrides`. Fields not
|
|
27
|
-
* declared on the trait are ignored — overrides never invent config.
|
|
28
|
-
*/
|
|
29
|
-
declare function applyTraitConfigOverrides(schema: OrbitalSchema, overrides: Readonly<Record<string, TraitConfig>>): OrbitalSchema;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Layout-Trait Builders
|
|
33
|
-
*
|
|
34
|
-
* Helpers for constructing the canonical inline LayoutTrait pattern that
|
|
35
|
-
* std layout-shell molecules (`std-filtered-list`, `std-master-detail-layout`,
|
|
36
|
-
* etc.) use to wrap a set of atom trait references in a `(render-ui main)`
|
|
37
|
-
* effect with `@trait.X` slot embeds.
|
|
38
|
-
*
|
|
39
|
-
* The canonical LayoutTrait is stateless: ONE state (`composing`, initial),
|
|
40
|
-
* ONE transition (`INIT` self-loop) carrying two effects — `(fetch Entity
|
|
41
|
-
* {emit: {success, failure}})` and `(render-ui "main" <pattern-tree>)`. Atoms
|
|
42
|
-
* embedded via `@trait.X` slot references react to the bus events the fetch
|
|
43
|
-
* emits; the LayoutTrait owns no further state.
|
|
44
|
-
*
|
|
45
|
-
* Usage from a std layout-shell molecule:
|
|
46
|
-
*
|
|
47
|
-
* ```ts
|
|
48
|
-
* import { makeSlot, makeLayoutTrait } from '@almadar/core/builders';
|
|
49
|
-
*
|
|
50
|
-
* const layout = makeLayoutTrait({
|
|
51
|
-
* name: 'DashboardLayout',
|
|
52
|
-
* linkedEntity: 'Metric',
|
|
53
|
-
* fetchEntity: 'Metric',
|
|
54
|
-
* loadedEvent: 'MetricLoaded',
|
|
55
|
-
* loadFailedEvent: 'MetricLoadFailed',
|
|
56
|
-
* renderUI: {
|
|
57
|
-
* type: 'stack',
|
|
58
|
-
* direction: 'vertical',
|
|
59
|
-
* children: [
|
|
60
|
-
* makeSlot('StatsRow'),
|
|
61
|
-
* makeSlot('ChartsRow'),
|
|
62
|
-
* makeSlot('FeedRow'),
|
|
63
|
-
* ],
|
|
64
|
-
* },
|
|
65
|
-
* });
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* @packageDocumentation
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Build a `@trait.<name>` slot reference string. Used as a child entry in a
|
|
73
|
-
* pattern tree to embed another trait's render-ui at that position. The
|
|
74
|
-
* runtime resolves `@trait.X` to the matching trait's render-ui inline.
|
|
75
|
-
*
|
|
76
|
-
* @example makeSlot('FilteredItemSearch') // "@trait.FilteredItemSearch"
|
|
77
|
-
*/
|
|
78
|
-
declare function makeSlot(traitName: string): string;
|
|
79
|
-
/**
|
|
80
|
-
* Build a `(render-ui <slot> <root>)` effect tuple. Pattern-typed sugar over
|
|
81
|
-
* the raw `RenderUIEffect` literal so callers don't have to spell out the
|
|
82
|
-
* three-element tuple form.
|
|
83
|
-
*
|
|
84
|
-
* @param slot - Canonical UI slot name (`'main'`, `'header'`, etc. — see UI_SLOTS).
|
|
85
|
-
* @param root - The pattern config for this slot's content, OR a `@`-binding
|
|
86
|
-
* string ({@link RenderBinding}) pointing at a render tree in `config` /
|
|
87
|
-
* `payload` (e.g. `'@config.bodyContent'`). Pass `null` to clear.
|
|
88
|
-
*/
|
|
89
|
-
declare function makeRenderUI(slot: UISlot, root: AnyPatternConfig | RenderBinding | null): RenderUIEffect;
|
|
90
|
-
/**
|
|
91
|
-
* Options for {@link makeLayoutTrait}.
|
|
92
|
-
*/
|
|
93
|
-
interface MakeLayoutTraitOpts {
|
|
94
|
-
/** Trait name, e.g. `"DashboardGridLayout"`. */
|
|
95
|
-
name: string;
|
|
96
|
-
/** Entity this layout's emits/listens bind to. */
|
|
97
|
-
linkedEntity: string;
|
|
98
|
-
/** Optional human-readable description (carried through to `Trait.description`). */
|
|
99
|
-
description?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Entity name to fetch on INIT. When set, a `(fetch <Entity> {emit:
|
|
102
|
-
* {success, failure}})` effect is prepended to the INIT transition. Omit
|
|
103
|
-
* for purely-presentational layouts that don't load data themselves.
|
|
104
|
-
*/
|
|
105
|
-
fetchEntity?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Event name emitted on successful fetch. Required when `fetchEntity` is
|
|
108
|
-
* set; the LayoutTrait declares this event in its `emits` and uses it as
|
|
109
|
-
* the `success` emit-name in the fetch effect.
|
|
110
|
-
* Convention: `"<Entity>Loaded"`.
|
|
111
|
-
*/
|
|
112
|
-
loadedEvent?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Event name emitted on fetch failure. Required when `fetchEntity` is
|
|
115
|
-
* set. Convention: `"<Entity>LoadFailed"`.
|
|
116
|
-
*/
|
|
117
|
-
loadFailedEvent?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Payload schema for the loaded event. Defaults to `[{ name: "data", type:
|
|
120
|
-
* "[<Entity>]" }]` when `fetchEntity` is set. Provide explicitly when the
|
|
121
|
-
* payload should carry additional fields.
|
|
122
|
-
*/
|
|
123
|
-
loadedPayloadSchema?: Array<{
|
|
124
|
-
name: string;
|
|
125
|
-
type: string;
|
|
126
|
-
required?: boolean;
|
|
127
|
-
}>;
|
|
128
|
-
/**
|
|
129
|
-
* The pattern tree for the layout's main slot. Children may include
|
|
130
|
-
* `@trait.X` slot strings (built via {@link makeSlot}) interleaved with
|
|
131
|
-
* inline pattern configs (`{ type: 'stack', ... }`). The shape conforms to
|
|
132
|
-
* `AnyPatternConfig` from `@almadar/patterns`.
|
|
133
|
-
*/
|
|
134
|
-
renderUI: AnyPatternConfig;
|
|
135
|
-
/**
|
|
136
|
-
* Override the slot the render-ui effect targets. Defaults to `'main'`.
|
|
137
|
-
* Specify when the layout shell should render into a sub-slot (rare).
|
|
138
|
-
*/
|
|
139
|
-
slot?: UISlot;
|
|
140
|
-
/**
|
|
141
|
-
* Additional effects appended to the INIT transition AFTER the fetch +
|
|
142
|
-
* render-ui pair. Most layouts don't need this; provided for advanced
|
|
143
|
-
* cases (analytics emit, persistence seed, etc.).
|
|
144
|
-
*/
|
|
145
|
-
extraEffects?: Effect[];
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Build the canonical stateless LayoutTrait used by std layout-shell molecules.
|
|
149
|
-
*
|
|
150
|
-
* Result shape:
|
|
151
|
-
* - `category: 'interaction'`, `scope: 'instance'`
|
|
152
|
-
* - `linkedEntity` set per the option
|
|
153
|
-
* - `emits` declares the loaded + loadFailed events when `fetchEntity` is set
|
|
154
|
-
* - One state: `'composing'` (`isInitial: true`)
|
|
155
|
-
* - One transition: `composing → composing` on `INIT`, with effects:
|
|
156
|
-
* - (when `fetchEntity` set) `['fetch', '<Entity>', { emit: { success, failure } }]`
|
|
157
|
-
* - `['render-ui', slot, renderUI]`
|
|
158
|
-
* - …`extraEffects` if provided
|
|
159
|
-
*
|
|
160
|
-
* Atoms whose trait names appear as `@trait.<name>` strings inside `renderUI`
|
|
161
|
-
* get embedded by the runtime when the orbital instantiates. The LayoutTrait
|
|
162
|
-
* itself stays stateless — all reactive behaviour lives in the embedded atoms.
|
|
163
|
-
*/
|
|
164
|
-
declare function makeLayoutTrait(opts: MakeLayoutTraitOpts): Trait;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Orbital Builders
|
|
168
|
-
*
|
|
169
|
-
* Pure functions for constructing and composing Orbitals.
|
|
170
|
-
* No new types. Everything uses existing core types:
|
|
171
|
-
* Entity, Trait, Page, OrbitalDefinition, OrbitalSchema.
|
|
172
|
-
*
|
|
173
|
-
* Three categories:
|
|
174
|
-
* 1. Builders: construct Entity, Page from common params
|
|
175
|
-
* 2. Utilities: ensureIdField, resolveDefaults
|
|
176
|
-
* 3. Composition: connect, compose, pipe
|
|
177
|
-
*
|
|
178
|
-
* @packageDocumentation
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Ensure the fields array has an `id` field. Prepends one if missing.
|
|
183
|
-
*/
|
|
184
|
-
declare function ensureIdField(fields?: EntityField[]): EntityField[];
|
|
185
|
-
/**
|
|
186
|
-
* Simple pluralization: append 's'.
|
|
187
|
-
*/
|
|
188
|
-
declare function plural(name: string): string;
|
|
189
|
-
interface MakeEntityOpts {
|
|
190
|
-
name: string;
|
|
191
|
-
fields: EntityField[];
|
|
192
|
-
persistence?: EntityPersistence;
|
|
193
|
-
collection?: string;
|
|
194
|
-
/** Pre-authored seed data instances */
|
|
195
|
-
instances?: EntityRow[];
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Build an Entity from options. Auto-adds id field, auto-derives collection.
|
|
199
|
-
*/
|
|
200
|
-
declare function makeEntity(opts: MakeEntityOpts): Entity;
|
|
201
|
-
interface MakePageOpts {
|
|
202
|
-
name: string;
|
|
203
|
-
path: string;
|
|
204
|
-
traitName: string;
|
|
205
|
-
isInitial?: boolean;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Build a Page that binds to a single trait.
|
|
209
|
-
*/
|
|
210
|
-
declare function makePage(opts: MakePageOpts): Page;
|
|
211
|
-
/**
|
|
212
|
-
* Build an OrbitalDefinition from its three components.
|
|
213
|
-
*/
|
|
214
|
-
declare function makeOrbital(name: string, entity: Entity, traits: Trait[], pages: Page[]): OrbitalDefinition;
|
|
215
|
-
/**
|
|
216
|
-
* Options for {@link makeTraitRef}.
|
|
217
|
-
*/
|
|
218
|
-
interface MakeTraitRefOpts {
|
|
219
|
-
/**
|
|
220
|
-
* Optional registry path disambiguator that pairs with {@link ref}
|
|
221
|
-
* (see {@link TraitReference.from}).
|
|
222
|
-
*/
|
|
223
|
-
from?: string;
|
|
224
|
-
/** Trait reference string, e.g. "Browse.traits.BrowseItemBrowse". */
|
|
225
|
-
ref: string;
|
|
226
|
-
/** Rename the inlined trait at the call site. */
|
|
227
|
-
name?: string;
|
|
228
|
-
/** Rebind the trait to a different linkedEntity. */
|
|
229
|
-
linkedEntity?: string;
|
|
230
|
-
/** Per-key rename map, e.g. `{ OPEN: "ADD_ITEM" }`. */
|
|
231
|
-
events?: Record<string, string>;
|
|
232
|
-
/**
|
|
233
|
-
* Entity-field remap, e.g. `{ name: "title", folder: "parentId" }`. Rewrites
|
|
234
|
-
* the inlined trait's canonical `@entity.X` / `@payload.row.X` references to
|
|
235
|
-
* the consumer entity's field names. Mirrors {@link TraitReference.fields}.
|
|
236
|
-
*/
|
|
237
|
-
fields?: Record<string, string>;
|
|
238
|
-
/**
|
|
239
|
-
* Per-event SExpression effect replacement. Keys are POST-rename event
|
|
240
|
-
* names. See {@link TraitReference.effects} for the full contract.
|
|
241
|
-
*/
|
|
242
|
-
effects?: Record<string, SExpr[]>;
|
|
243
|
-
/** Replace the imported trait's `listens` array entirely. */
|
|
244
|
-
listens?: TraitEventListener[];
|
|
245
|
-
/** Set every emit's scope. */
|
|
246
|
-
emitsScope?: 'internal' | 'external';
|
|
247
|
-
/**
|
|
248
|
-
* Call-site config overrides. Each entry is either a plain wiring value
|
|
249
|
-
* (`TraitConfigValue`) or a fully-annotated re-declaration
|
|
250
|
-
* (`ConfigFieldDeclaration`). Matches {@link TraitReference.config}.
|
|
251
|
-
*/
|
|
252
|
-
config?: CallSiteConfig;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Typed-narrowing variant of {@link MakeTraitRefOpts} for callers that know
|
|
256
|
-
* the imported atom's overridable surfaces — its event-key set, listen-key
|
|
257
|
-
* set, and config shape. Generated std factories use this variant so an LLM
|
|
258
|
-
* tool consumer (orbital-agent) sees the closed event-name set and the
|
|
259
|
-
* config field schema instead of the un-narrowed `Record<string, string>` /
|
|
260
|
-
* `TraitConfig` defaults.
|
|
261
|
-
*
|
|
262
|
-
* Type parameters:
|
|
263
|
-
* - `EventKey` — string union of the atom's emit event names. Narrows the
|
|
264
|
-
* `events` rename map's keys to legal originals only.
|
|
265
|
-
* - `ConfigShape` — typed shape of the trait's `config { ... }` block (literal
|
|
266
|
-
* unions intact). Narrows the `config` override to the atom's actual fields.
|
|
267
|
-
* Extends `CallSiteConfig` to allow both plain wiring values and annotated
|
|
268
|
-
* declarations. Existing callers using plain `TraitConfig` shapes are
|
|
269
|
-
* unaffected (TraitConfig ⊆ CallSiteConfig).
|
|
270
|
-
* - `ListenKey` — string union of the atom's listen-key contract. Narrows
|
|
271
|
-
* each listens entry's `event` against the atom's real subscription set.
|
|
272
|
-
*
|
|
273
|
-
* Runtime behavior is unchanged — {@link makeTraitRef} accepts both the
|
|
274
|
-
* narrow and wide forms via the standard structural-typing rules. This is
|
|
275
|
-
* a type-level narrowing only; widening at the call boundary is intentional.
|
|
276
|
-
*/
|
|
277
|
-
interface MakeTraitRefOptsTyped<EventKey extends string = string, ConfigShape extends CallSiteConfig = Record<string, never>, ListenKey extends string = string> extends Omit<MakeTraitRefOpts, 'events' | 'effects' | 'listens' | 'config'> {
|
|
278
|
-
/** Per-key rename map, narrowed to the atom's actual event keys. */
|
|
279
|
-
events?: Partial<Record<EventKey, string>>;
|
|
280
|
-
/**
|
|
281
|
-
* Per-event SExpression effect replacement. Keys are POST-rename event
|
|
282
|
-
* names so they're caller-defined (no narrowing here); values stay typed
|
|
283
|
-
* as `SExpr[]`.
|
|
284
|
-
*/
|
|
285
|
-
effects?: Partial<Record<string, SExpr[]>>;
|
|
286
|
-
/**
|
|
287
|
-
* Replace the imported trait's `listens` array entirely. Each entry's
|
|
288
|
-
* `event` field is narrowed to {@link ListenKey} where the atom's
|
|
289
|
-
* subscription set is fixed; otherwise this widens to plain string.
|
|
290
|
-
*/
|
|
291
|
-
listens?: Array<TraitEventListener & {
|
|
292
|
-
event?: ListenKey;
|
|
293
|
-
}>;
|
|
294
|
-
/** Typed call-site config overrides — narrowed to {@link ConfigShape}. */
|
|
295
|
-
config?: ConfigShape;
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Build a {@link TraitReference} from options.
|
|
299
|
-
*
|
|
300
|
-
* Pass-through factory: copies only the fields that are actually provided,
|
|
301
|
-
* so optionals stay absent (no `key: undefined` slots) and the emitted
|
|
302
|
-
* object matches the inliner's expectation that "present = override".
|
|
303
|
-
*/
|
|
304
|
-
declare function makeTraitRef(opts: MakeTraitRefOpts): TraitReference;
|
|
305
|
-
/**
|
|
306
|
-
* Options for {@link makePageRef}.
|
|
307
|
-
*/
|
|
308
|
-
interface MakePageRefOpts {
|
|
309
|
-
/**
|
|
310
|
-
* Optional registry path disambiguator that pairs with {@link ref}
|
|
311
|
-
* (see {@link PageRefObject.from}).
|
|
312
|
-
*/
|
|
313
|
-
from?: string;
|
|
314
|
-
/** Page reference string, e.g. "Browse.pages.BrowseItemPage". */
|
|
315
|
-
ref: string;
|
|
316
|
-
/** URL path override. */
|
|
317
|
-
path?: string;
|
|
318
|
-
/** Rebind the page's primary entity. */
|
|
319
|
-
linkedEntity?: string;
|
|
320
|
-
/** Replace the page's trait list. */
|
|
321
|
-
traits?: TraitRef[];
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Typed-narrowing variant of {@link MakePageRefOpts}. Narrows the `traits`
|
|
325
|
-
* override array's entries to the orbital's known trait-name union — so the
|
|
326
|
-
* agent can't pass a trait name that doesn't exist on the page's owning
|
|
327
|
-
* orbital. Generated std page-helpers use this variant to surface the
|
|
328
|
-
* trait set in the tool schema; un-narrowed call sites stay compatible.
|
|
329
|
-
*
|
|
330
|
-
* Type parameter:
|
|
331
|
-
* - `TraitName` — string union of trait names the page may reference.
|
|
332
|
-
*/
|
|
333
|
-
interface MakePageRefOptsTyped<TraitName extends string = string> extends Omit<MakePageRefOpts, 'traits'> {
|
|
334
|
-
traits?: Array<{
|
|
335
|
-
ref: TraitName;
|
|
336
|
-
} | TraitRef>;
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* Build a {@link PageRefObject} from options. Pass-through factory — omits
|
|
340
|
-
* optional keys that are `undefined`.
|
|
341
|
-
*/
|
|
342
|
-
declare function makePageRef(opts: MakePageRefOpts): PageRefObject;
|
|
343
|
-
/**
|
|
344
|
-
* Options for {@link makeOrbitalWithUses}.
|
|
345
|
-
*/
|
|
346
|
-
interface MakeOrbitalWithUsesOpts {
|
|
347
|
-
/** Orbital name. */
|
|
348
|
-
name: string;
|
|
349
|
-
/**
|
|
350
|
-
* Per-orbital `uses:` header entries (see CLAUDE.md "uses: lives inside
|
|
351
|
-
* the orbital").
|
|
352
|
-
*/
|
|
353
|
-
uses: UseDeclaration[];
|
|
354
|
-
/** Entity (inline or reference form). */
|
|
355
|
-
entity: EntityRef;
|
|
356
|
-
/** Trait references. */
|
|
357
|
-
traits: TraitRef[];
|
|
358
|
-
/** Optional page references (omitted entirely when not provided). */
|
|
359
|
-
pages?: PageRef[];
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* Build an {@link OrbitalDefinition} with the `uses:` header set. Follows
|
|
363
|
-
* the convention that `uses:` lives on the orbital (not the schema).
|
|
364
|
-
*
|
|
365
|
-
* When `pages` is omitted, the result has no `pages` property (matches the
|
|
366
|
-
* existing {@link OrbitalDefinition.pages} optionality in descriptors that
|
|
367
|
-
* carry trait-only atoms).
|
|
368
|
-
*/
|
|
369
|
-
declare function makeOrbitalWithUses(opts: MakeOrbitalWithUsesOpts): OrbitalDefinition;
|
|
370
|
-
/**
|
|
371
|
-
* Options for {@link makeAtomOrbital}.
|
|
372
|
-
*
|
|
373
|
-
* Overrides for the single trait reference. Mirrors the {@link MakeTraitRefOpts}
|
|
374
|
-
* subset that is meaningful at the atom-wrapping call site.
|
|
375
|
-
*/
|
|
376
|
-
interface MakeAtomOrbitalTraitOverrides {
|
|
377
|
-
name?: string;
|
|
378
|
-
events?: Record<string, string>;
|
|
379
|
-
effects?: Record<string, SExpr[]>;
|
|
380
|
-
listens?: TraitEventListener[];
|
|
381
|
-
emitsScope?: 'internal' | 'external';
|
|
382
|
-
config?: CallSiteConfig;
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* Options for {@link makeAtomOrbital}.
|
|
386
|
-
*/
|
|
387
|
-
interface MakeAtomOrbitalOpts {
|
|
388
|
-
/** Orbital name, e.g. `${entityName}Orbital`. */
|
|
389
|
-
name: string;
|
|
390
|
-
/** Atom registry path, e.g. `std/behaviors/atoms/std-browse`. */
|
|
391
|
-
atomPath: string;
|
|
392
|
-
/** Import alias (PascalCase), e.g. `Browse`. */
|
|
393
|
-
alias: string;
|
|
394
|
-
/** Entity definition to attach to the orbital. */
|
|
395
|
-
entity: Entity;
|
|
396
|
-
/** Trait reference string, e.g. `Browse.traits.BrowseItemBrowse`. */
|
|
397
|
-
traitRef: string;
|
|
398
|
-
/** Optional trait-level overrides applied at the call site. */
|
|
399
|
-
traitOverrides?: MakeAtomOrbitalTraitOverrides;
|
|
400
|
-
/** Optional page reference string, e.g. `Browse.pages.BrowseItemPage`. */
|
|
401
|
-
pageRef?: string;
|
|
402
|
-
/** Optional page-level overrides applied at the call site. */
|
|
403
|
-
pageOverrides?: {
|
|
404
|
-
path?: string;
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Build a single-atom {@link OrbitalDefinition}.
|
|
409
|
-
*
|
|
410
|
-
* The common atom shape: one entity + one trait reference + (optionally) one
|
|
411
|
-
* page reference, all under a single `uses:` import. Wraps
|
|
412
|
-
* {@link makeTraitRef}, {@link makePageRef}, and {@link makeOrbitalWithUses}.
|
|
413
|
-
*
|
|
414
|
-
* The trait reference is linkedEntity-bound to `entity.name` by default so
|
|
415
|
-
* that the inliner's entity-substitution pass rewrites every `["ref", X]`
|
|
416
|
-
* and `@X.path` reference inside the atom.
|
|
417
|
-
*/
|
|
418
|
-
declare function makeAtomOrbital(opts: MakeAtomOrbitalOpts): OrbitalDefinition;
|
|
419
|
-
/**
|
|
420
|
-
* Wrap one or more OrbitalDefinitions into an OrbitalSchema.
|
|
421
|
-
* Every .orb file should be a full OrbitalSchema — this is the builder for that.
|
|
422
|
-
*/
|
|
423
|
-
declare function makeSchema(name: string, ...definitions: OrbitalDefinition[]): OrbitalSchema;
|
|
424
|
-
/**
|
|
425
|
-
* Merge multiple OrbitalDefinitions into one.
|
|
426
|
-
* Collects all traits from all sources into a single orbital with a shared entity.
|
|
427
|
-
* Pure: clones all traits, no mutation.
|
|
428
|
-
*/
|
|
429
|
-
declare function mergeOrbitals(name: string, entity: Entity, sources: OrbitalDefinition[], pages: Page[]): OrbitalDefinition;
|
|
430
|
-
/**
|
|
431
|
-
* Wire an intra-orbital event between two traits.
|
|
432
|
-
* Adds emits to the source trait, listens to the target trait.
|
|
433
|
-
* Pure: returns cloned traits, no mutation.
|
|
434
|
-
*/
|
|
435
|
-
declare function wire(source: Trait, target: Trait, event: TraitEventContract, triggers: string): [Trait, Trait];
|
|
436
|
-
/**
|
|
437
|
-
* Extract the first trait from an OrbitalDefinition or OrbitalSchema.
|
|
438
|
-
* If given an OrbitalSchema, unwraps to the first orbital inside it.
|
|
439
|
-
*/
|
|
440
|
-
declare function extractTrait(input: OrbitalDefinition | OrbitalSchema): Trait;
|
|
441
|
-
/**
|
|
442
|
-
* Wire a cross-orbital event between two orbitals.
|
|
443
|
-
* Adds emits to a's first trait, listens to b's first trait.
|
|
444
|
-
* Pure: returns new orbitals, no mutation.
|
|
445
|
-
*/
|
|
446
|
-
declare function connect(a: OrbitalDefinition | OrbitalSchema, b: OrbitalDefinition | OrbitalSchema, event: TraitEventContract, triggers?: string): [OrbitalDefinition, OrbitalDefinition];
|
|
447
|
-
interface ComposeConnection {
|
|
448
|
-
from: string;
|
|
449
|
-
to: string;
|
|
450
|
-
event: TraitEventContract;
|
|
451
|
-
triggers?: string;
|
|
452
|
-
}
|
|
453
|
-
interface ComposePage {
|
|
454
|
-
name: string;
|
|
455
|
-
path: string;
|
|
456
|
-
traits: string[];
|
|
457
|
-
isInitial?: boolean;
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Compose multiple orbitals into a single OrbitalSchema (application).
|
|
461
|
-
* Applies connections (cross-orbital event wiring) and page assignments.
|
|
462
|
-
*/
|
|
463
|
-
declare function compose(orbitals: (OrbitalDefinition | OrbitalSchema)[], pages: ComposePage[], connections: ComposeConnection[], appName?: string): OrbitalSchema;
|
|
464
|
-
/**
|
|
465
|
-
* Chain orbitals in sequence with automatic event wiring.
|
|
466
|
-
* Sugar over connect + compose: wires events[0] from orbital[0] to orbital[1], etc.
|
|
467
|
-
*/
|
|
468
|
-
declare function pipe(orbitals: (OrbitalDefinition | OrbitalSchema)[], events: TraitEventContract[], appName?: string): OrbitalSchema;
|
|
469
|
-
|
|
470
|
-
export { type ComposeConnection, type ComposePage, type MakeAtomOrbitalOpts, type MakeAtomOrbitalTraitOverrides, type MakeEntityOpts, type MakeLayoutTraitOpts, type MakeOrbitalWithUsesOpts, type MakePageOpts, type MakePageRefOpts, type MakePageRefOptsTyped, type MakeTraitRefOpts, type MakeTraitRefOptsTyped, applyTraitConfigOverrides, compose, connect, ensureIdField, extractTrait, makeAtomOrbital, makeEntity, makeLayoutTrait, makeOrbital, makeOrbitalWithUses, makePage, makePageRef, makeRenderUI, makeSchema, makeSlot, makeTraitRef, mergeOrbitals, pipe, plural, wire };
|
|
5
|
+
import '@almadar/patterns';
|
|
@@ -227,4 +227,4 @@ interface LogMeta {
|
|
|
227
227
|
[key: string]: LogMetaValue;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
export { CORE_BINDINGS as C, type
|
|
230
|
+
export { CORE_BINDINGS as C, type EvalContext as E, type LogMeta as L, type ParsedBinding as P, type SExpr as S, type CoreBinding as a, type EventPayload as b, type EventPayloadValue as c, type Expression as d, type ExpressionInput as e, ExpressionSchema as f, type SExprAtom as g, SExprAtomSchema as h, type SExprInput as i, SExprSchema as j, collectBindings as k, getArgs as l, getOperator as m, isBinding as n, isSExpr as o, isSExprAtom as p, isSExprCall as q, isValidBinding as r, parseBinding as s, sexpr as t, walkSExpr as w };
|
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, i as FactorySignatureCatalog,
|
|
3
|
-
import {
|
|
1
|
+
import { h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, r as RuleOverlayEntry, q as PresentationOverlay, s as TraitOverlay } from '../types-DpBetrYc.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, o as JsonSchema, p as JsonSchemaType, J as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, t as TraitOverlayEntry, u as TraitOverlayListener } from '../types-DpBetrYc.js';
|
|
3
|
+
import { a as EntityPersistence, E as EntityField, b as TraitReference } from '../trait-Cs8Mrdw9.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../expression-
|
|
5
|
+
import '../expression-BVRFm0sV.js';
|
|
6
6
|
import '@almadar/patterns';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../
|
|
2
|
-
import {
|
|
3
|
-
import { MakeTraitRefOpts } from '../builders.js';
|
|
4
|
-
import '../expression-BUIi9ezJ.js';
|
|
1
|
+
import { O as OrbitalSchema, M as MakeTraitRefOpts, a as OrbitalDefinition } from '../builders-BjButZdb.js';
|
|
2
|
+
import { E as EntityField, a as EntityPersistence, C as CallSiteConfig, c as CallSiteConfigEntry, d as Trait } from '../trait-Cs8Mrdw9.js';
|
|
5
3
|
import 'zod';
|
|
4
|
+
import '../expression-BVRFm0sV.js';
|
|
6
5
|
import '@almadar/patterns';
|
|
7
|
-
import '../compose-behaviors-mP-vUG61.js';
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* Orbital factory manifest types — shared across all packages.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { a as OrbitalDefinition, O as OrbitalSchema } from './
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES,
|
|
3
|
-
import {
|
|
4
|
-
export { A as ANIMATION_NAMES,
|
|
5
|
-
export { C as CORE_BINDINGS, a as CoreBinding,
|
|
1
|
+
import { a as OrbitalDefinition, O as OrbitalSchema } from './builders-BjButZdb.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h as ColorTokensSchema, i as ComposeBehaviorsInput, j as ComposeBehaviorsResult, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, E as DesignPreferencesSchema, F as DesignTokens, G as DesignTokensInput, H as DesignTokensSchema, I as DomainCategory, J as DomainCategorySchema, K as DomainContext, L as DomainContextInput, N as DomainContextSchema, P as DomainVocabulary, Q as DomainVocabularySchema, R as ElevationSlice, S as ElevationSliceSchema, T as ElevationTokens, U as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, X as EntityRef, Y as EntityRefSchema, Z as EntityRefStringSchema, _ as EntitySemanticRole, $ as EntitySemanticRoleSchema, a0 as EventListener, a1 as EventListenerSchema, a2 as EventSemanticRole, a3 as EventSemanticRoleSchema, a4 as EventSource, a5 as EventSourceSchema, a6 as EventWiringEntry, a7 as FullOrbitalUnit, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as LayoutStrategy, ar as MotionDurationKey, as as MotionDurationKeySchema, at as MotionDurationPalette, au as MotionDurationPaletteSchema, av as MotionEasingKey, aw as MotionEasingKeySchema, ax as MotionEasingPalette, ay as MotionEasingPaletteSchema, az as MotionIntent, aA as MotionIntentMap, aB as MotionIntentMapSchema, aC as MotionIntentSchema, aD as MotionSlice, aE as MotionSliceSchema, aF as MotionTokens, aG as MotionTokensSchema, aH as NodeClassification, aI as NodeClassificationSchema, a7 as Orbital, aJ as OrbitalConfig, aK as OrbitalConfigInput, aL as OrbitalConfigSchema, aM as OrbitalDefinitionSchema, aN as OrbitalInput, aO as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalSchemaInput, aU as OrbitalSchemaSchema, aV as OrbitalSchemaWithTraits, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, aZ as Page, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, b4 as PageTraitRef, b5 as PageTraitRefSchema, b6 as RelatedLink, b7 as RelatedLinkSchema, b8 as SchemaMetadata, b9 as SchemaMetadataSchema, ba as SkinSpec, bb as SkinSpecSchema, bc as SpacingScale, bd as SpacingScaleSchema, be as StateSemanticRole, bf as StateSemanticRoleSchema, bg as SuggestedGuard, bh as SuggestedGuardSchema, bi as ThemeDefinition, bj as ThemeDefinitionSchema, bk as ThemeRef, bl as ThemeRefSchema, bm as ThemeRefStringSchema, bn as ThemeTokens, bo as ThemeTokensSchema, bp as ThemeVariant, bq as ThemeVariantSchema, br as TypeIntent, bs as TypeIntentMap, bt as TypeIntentMapSchema, bu as TypeIntentSchema, bv as TypeScale, bw as TypeScaleEntry, bx as TypeScaleEntrySchema, by as TypeScaleSchema, bz as TypeScaleTokens, bA as TypeScaleTokensSchema, bB as TypeSizeKey, bC as TypeSizeKeySchema, bD as TypeSlice, bE as TypeSliceSchema, bF as TypeSlot, bG as TypeSlotSchema, bH as TypeWeight, bI as TypeWeightSchema, bJ as UXHints, bK as UXHintsSchema, bL as UseDeclaration, bM as UseDeclarationSchema, bN as UserPersona, bO as UserPersonaInput, bP as UserPersonaSchema, bQ as ViewType, bR as ViewTypeSchema, bS as applyEventWiring, bT as composeBehaviors, bU as detectLayoutStrategy, bV as isEntityCall, bW as isEntityReference, bX as isEntityReferenceAny, bY as isImportedTraitRef, bZ as isOrbitalDefinition, b_ as isPageReference, b$ as isPageReferenceObject, c0 as isPageReferenceString, c1 as isThemeReference, c2 as parseEntityRef, c3 as parseImportedTraitRef, c4 as parseOrbitalSchema, c5 as parsePageRef, c6 as safeParseOrbitalSchema } from './builders-BjButZdb.js';
|
|
3
|
+
import { S as State, F as FieldValue, e as EntityRow } from './trait-Cs8Mrdw9.js';
|
|
4
|
+
export { A as ANIMATION_NAMES, f as ASSET_ASPECTS, g as ASSET_DIMENSIONS, h as AgentEffect, i as AnimationDef, j as AnimationDefInput, k as AnimationDefSchema, l as AnimationName, m as AnimationNameSchema, n as ArrayEntityField, o as Asset, p as AssetAspect, q as AssetAspectSchema, r as AssetCatalog, s as AssetCatalogEntry, t as AssetCatalogEntryInput, u as AssetCatalogEntrySchema, v as AssetCatalogSchema, w as AssetDimension, x as AssetDimensionSchema, y as AssetSchema, z as AssetUrl, B as AtomicEffect, D as CAMERA_MODES, G as CallServiceConfig, H as CallServiceEffect, C as CallSiteConfig, c as CallSiteConfigEntry, I as Camera, J as CameraMode, K as CameraModeSchema, L as CameraSchema, M as CheckpointLoadEffect, N as CheckpointSaveEffect, O as ConfigFieldDeclaration, P as ConfigFieldDeclarationSchema, Q as DeclaredTraitConfig, U as DeclaredTraitConfigSchema, V as DerefEffect, W as DespawnEffect, X as DoEffect, Y as ENTITY_ROLES, Z as Effect, _ as EffectInput, $ as EffectSchema, a0 as EmitConfig, a1 as EmitEffect, a2 as Entity, a3 as EntityData, E as EntityField, a4 as EntityFieldContract, a5 as EntityFieldContractSchema, a6 as EntityFieldInput, a7 as EntityFieldSchema, a as EntityPersistence, a8 as EntityPersistenceSchema, a9 as EntityRole, aa as EntityRoleSchema, ab as EntitySchema, ac as EntityWith, ad as EnumEntityField, ae as EvaluateConfig, af as EvaluateEffect, ag as Event, ah as EventInput, ai as EventPayloadField, aj as EventPayloadFieldSchema, ak as EventSchema, al as EventScope, am as EventScopeSchema, an as FetchEffect, ao as FetchOptions, ap as FetchResult, aq as Field, ar as FieldFormat, as as FieldFormatSchema, at as FieldSchema, au as FieldType, av as FieldTypeSchema, aw as ForwardConfig, ax as ForwardEffect, ay as Guard, az as GuardInput, aA as GuardSchema, aB as ListenSource, aC as ListenSourceSchema, aD as LogEffect, aE as McpServiceDef, aF as McpServiceDefSchema, aG as NavigateEffect, aH as NnConfig, aI as NnLayer, aJ as NotifyEffect, aK as OrbitalEntity, aL as OrbitalEntityInput, aM as OrbitalEntitySchema, aN as OrbitalTraitRef, aO as OrbitalTraitRefSchema, aP as OsEffect, aQ as PayloadField, aR as PayloadFieldSchema, aS as PersistData, aT as PersistEffect, aU as PersistEmitConfig, aV as PresentationType, aW as RefEffect, R as RelationConfig, aX as RelationConfigSchema, aY as RelationEntityField, aZ as RenderBinding, a_ as RenderItemLambda, a$ as RenderUIEffect, b0 as RenderUINode, b1 as RequiredField, b2 as RequiredFieldSchema, b3 as ResolvedPatternProps, b4 as RestAuthConfig, b5 as RestAuthConfigSchema, b6 as RestServiceDef, b7 as RestServiceDefSchema, b8 as SERVICE_TYPES, b9 as SPRITE_DIRECTIONS, ba as ScalarEntityField, bb as ScenePos, bc as ScenePosSchema, bd as SemanticAssetRef, be as SemanticAssetRefInput, bf as SemanticAssetRefSchema, bg as ServiceDefinition, bh as ServiceDefinitionSchema, bi as ServiceParams, bj as ServiceParamsValue, bk as ServiceRef, bl as ServiceRefObject, bm as ServiceRefObjectSchema, bn as ServiceRefSchema, bo as ServiceRefStringSchema, bp as ServiceType, bq as ServiceTypeSchema, br as SetEffect, bs as SocketEvents, bt as SocketEventsSchema, bu as SocketServiceDef, bv as SocketServiceDefSchema, bw as SpawnEffect, bx as SpriteDirection, by as SpriteDirectionSchema, bz as SpriteSheetAtlas, bA as SpriteSheetAtlasInput, bB as SpriteSheetAtlasSchema, bC as StateInput, bD as StateMachine, bE as StateMachineInput, bF as StateMachineSchema, bG as StateSchema, bH as SubTexture, bI as SubTextureSchema, bJ as SwapEffect, bK as TextureAtlas, bL as TextureAtlasSchema, bM as Tilesheet, bN as TilesheetSchema, bO as TrainConfig, bP as TrainEffect, d as Trait, bQ as TraitCategory, bR as TraitCategorySchema, bS as TraitConfig, bT as TraitConfigObject, bU as TraitConfigSchema, bV as TraitConfigValue, bW as TraitConfigValueSchema, bX as TraitDataEntity, bY as TraitDataEntitySchema, bZ as TraitEntityField, b_ as TraitEntityFieldSchema, b$ as TraitEventContract, c0 as TraitEventContractSchema, T as TraitEventListener, c1 as TraitEventListenerSchema, c2 as TraitInput, c3 as TraitRef, c4 as TraitRefSchema, b as TraitReference, c5 as TraitReferenceInput, c6 as TraitReferenceSchema, c7 as TraitSchema, c8 as TraitTick, c9 as TraitTickSchema, ca as TraitUIBinding, cb as Transition, cc as TransitionInput, cd as TransitionSchema, ce as TypedEffect, cf as UISlot, cg as UISlotSchema, ch as UI_SLOTS, ci as VISUAL_STYLES, cj as VisualStyle, ck as VisualStyleSchema, cl as WatchEffect, cm as WatchOptions, cn as atomic, co as callService, cp as createAssetKey, cq as deref, cr as deriveCollection, cs as despawn, ct as doEffects, cu as emit, cv as findService, cw as getDefaultAnimationsForRole, cx as getServiceNames, cy as getTraitConfig, cz as getTraitName, cA as hasService, cB as isCallSiteConfigDeclaration, cC as isCircuitEvent, cD as isEffect, cE as isInlineTrait, cF as isMcpService, cG as isRestService, cH as isRuntimeEntity, cI as isSExprEffect, cJ as isServiceReference, cK as isServiceReferenceObject, cL as isSocketService, cM as navigate, cN as normalizeTraitRef, cO as notify, cP as parseAssetKey, cQ as parseServiceRef, cR as persist, cS as persistenceModeAllowsOverrides, cT as ref, cU as renderUI, cV as set, cW as spawn, cX as swap, cY as validateAssetAnimations, cZ as watch } from './trait-Cs8Mrdw9.js';
|
|
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, AnnotationTier, AppCreatedEvent, AppSummary, AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingContext, BindingRoot, BindingSchema, BridgeHealth, BuilderResult, BusEvent, BusEventListener, BusEventSource, CancelledEvent, ChangeAuthor, ChangeSetDocument, ChangeSummary, ChangesetRecordedEvent, CheckStatus, CompleteEvent, ComposeAllResult, ComposeChildrenResult, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, DispatchUpdatesResult, EdgeType, EditFlow, EffectPayload, EffectResult, EffectTrace, ErrorEvent, EventEmit, EventKey, EventListen, EventLogEntry, EvolutionDelta, ExecutePlanResult, FileOperationEvent, FileWrittenEvent, GateState, GenerationLogEvent, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, InterruptEvent, KNOWN_VALIDATION_ERROR_CODES, KnobPayload, KnownValidationErrorCode, LazyService, LineageEntry, ListInteraction, LivingEdge, LivingEffect, LivingEntity, LivingEvent, LivingField, LivingOrbital, LivingOrbitalSchema, LivingPage, LivingState, LivingTrait, LivingTransition, LivingValue, LivingVertex, LlmCallToolsResult, LlmMessage, LlmTokenUsage, LlmToolCall, LlmToolDef, LoloEmitResult, MessageEvent, OrbitalAddedEvent, OrbitalSchemaCompleteEvent, OrbitalVerificationAPI, ParamsRepairEmittedEvent, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, PlannerResult, Probability, ProcessCompleteEvent, ProcessErrorEvent, ProcessRepairCompleteEvent, ProcessRepairEvent, ProcessStartEvent, RepairResult, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SSEEvent, SSEEventBase, SSEEventType, SaveOptions, SaveResult, SchemaPhaseUpdateEvent, SchemaPhaseValidatedEvent, SchemaUpdateEvent, SemanticAnnotation, SemanticChangeKind, SemanticVector, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceCallResult, ServiceContract, ServiceEvents, SnapshotCreatedEvent, SnapshotDocument, StartEvent, StatsView, StoreContract, StoreFilter, StoreFilterOp, SubagentCompleteEvent, SubagentEvent, SubagentProgressEvent, SubagentStartEvent, TodoActivityType, TodoDetailEvent, TodoUpdateEvent, ToolCallEvent, ToolResultEvent, TraitFieldRef, TraitFieldRefSchema, TraitStateSnapshot, TransitionFrom, TransitionTrace, Unsubscribe, ValidateResult, 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
|
-
import { T as ToolArgs, J as JsonValue } from './types-
|
|
9
|
-
export { F as FactoryCallSite, a as FactoryCallSiteParams, b as FactoryConfigParam, c as FactoryConfigTier, d as FactoryEntitySignature, e as FactoryEventSignature, f as
|
|
7
|
+
export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AnalysisOrbital, AnalysisOrbitalParams, AnalysisPageOverride, AnalysisRename, AnalysisResult, AnnotationTier, AppCreatedEvent, AppSummary, AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingContext, BindingRoot, BindingSchema, BridgeHealth, BuilderResult, BusEvent, BusEventListener, BusEventSource, CancelledEvent, ChangeAuthor, ChangeSetDocument, ChangeSummary, ChangesetRecordedEvent, CheckStatus, Clarification, ClarificationCandidate, ClarificationLevel, CompleteEvent, ComplexityAssessment, ComposeAllResult, ComposeChildrenResult, ComposeOptions, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, DispatchUpdatesResult, EdgeType, EditFlow, EffectPayload, EffectResult, EffectTrace, ErrorEvent, EventEmit, EventKey, EventListen, EventLogEntry, EvolutionDelta, ExecutePlanResult, ExtraTraitRef, FileOperationEvent, FileWrittenEvent, GateState, GenerationLogEvent, GitHubIssue, GitHubLink, GitHubRepo, HistoryMeta, IntegrationContext, InteractionModel, InteractionModelInput, InteractionModelSchema, InterruptEvent, KNOWN_VALIDATION_ERROR_CODES, KnobPayload, KnownValidationErrorCode, LazyService, LineageEntry, ListInteraction, LivingEdge, LivingEffect, LivingEntity, LivingEvent, LivingField, LivingOrbital, LivingOrbitalSchema, LivingPage, LivingState, LivingTrait, LivingTransition, LivingValue, LivingVertex, LlmCallToolsResult, LlmContext, LlmMessage, LlmTokenUsage, LlmToolCall, LlmToolDef, LoloEmitResult, MemoryContext, MessageEvent, OrbitalAddedEvent, OrbitalSchemaCompleteEvent, OrbitalVerificationAPI, ParamsRepairEmittedEvent, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, PlanSnapshot, PlanSnapshotStatus, PlannerResult, Probability, ProcessCompleteEvent, ProcessErrorEvent, ProcessRepairCompleteEvent, ProcessRepairEvent, ProcessStartEvent, RepairResult, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SSEEvent, SSEEventBase, SSEEventType, SaveOptions, SaveResult, SchemaPhaseUpdateEvent, SchemaPhaseValidatedEvent, SchemaUpdateEvent, SemanticAnnotation, SemanticChangeKind, SemanticVector, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceCallResult, ServiceContract, ServiceEvents, SessionContext, SessionHistoryEntry, SnapshotCreatedEvent, SnapshotDocument, SpawnResult, StartEvent, StatsView, StoreContract, StoreFilter, StoreFilterOp, SubagentCompleteEvent, SubagentEvent, SubagentProgressEvent, SubagentStartEvent, TodoActivityType, TodoDetailEvent, TodoUpdateEvent, ToolCallEvent, ToolResultEvent, TraceContext, TraitFieldRef, TraitFieldRefSchema, TraitStateSnapshot, TransitionFrom, TransitionTrace, Unsubscribe, ValidateResult, ValidationDocument, ValidationError, ValidationErrorCode, ValidationIssue, ValidationMeta, ValidationResult, ValidationResults, VerificationCheck, VerificationSnapshot, VerificationSummary, VertexId, VertexPayload, VertexType, ViewFlow, WorkspaceContext, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier } from './types/index.js';
|
|
8
|
+
import { T as ToolArgs, J as JsonValue } from './types-DpBetrYc.js';
|
|
9
|
+
export { F as FactoryCallSite, a as FactoryCallSiteParams, b as FactoryConfigParam, c as FactoryConfigTier, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, h as FactoryParamValue, i as FactoryProvenance, j as FactorySignature, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonObject, o as JsonSchema, p as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, q as PresentationOverlay, R as RuleOverlay, r as RuleOverlayEntry, S as SchemaFieldType, s as TraitOverlay, t as TraitOverlayEntry, u as TraitOverlayListener, v as isJsonArray, w as isJsonObject, x as isJsonPrimitive } from './types-DpBetrYc.js';
|
|
10
10
|
export { CallSiteDiff, DomainQuestion, DomainQuestionAnswer, DomainQuestionAnswers, DomainQuestionInputType, FactoryCallPlanMutation, FactoryCallPlanMutationTemplate, FactoryCallPlanState, OrbitalCallInput, TranslationBinding, TranslationResult, TranslationWarning, answerToMutations, answersToMutations, applyFactoryCallPlanMutation, deriveInputType, diffFactoryCalls, generateQuestions, translateOverlaysToParams } from './factory/index.js';
|
|
11
|
-
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-mP-vUG61.js';
|
|
12
11
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
|
13
12
|
export { BFSNode, BFSPathNode, EdgeWalkTransition, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, WalkStep, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, constTruth, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
|
|
14
13
|
import 'zod';
|