@almadar/core 9.9.0 → 9.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { U as UISlot, E as Effect, T as Trait, R as RenderBinding, a as RenderUIEffect, b as TraitEventContract, c as Entity, d as TraitEventListener, e as TraitConfig, f as EntityField, g as EntityPersistence, h as EntityRow, i as TraitRef, j as TraitReference } from './trait-C61Wxi3a.js';
2
- import { U as UseDeclaration, E as EntityRef, P as PageRef, O as OrbitalDefinition, a as OrbitalSchema, b as Page, c as PageRefObject } from './schema-DgAnrD1M.js';
2
+ import { U as UseDeclaration, E as EntityRef, P as PageRef, O as OrbitalDefinition, a as OrbitalSchema, b as Page, c as PageRefObject } from './schema-kJUA2M6H.js';
3
3
  import { S as SExpr } from './expression-BVRFm0sV.js';
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-DA8bnafs.js';
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-DpYntG1r.js';
5
5
  import { AnyPatternConfig } from '@almadar/patterns';
6
6
  import 'zod';
7
7
 
@@ -1,4 +1,4 @@
1
- import { O as OrbitalDefinition, a as OrbitalSchema } from './schema-DgAnrD1M.js';
1
+ import { O as OrbitalDefinition, a as OrbitalSchema } from './schema-kJUA2M6H.js';
2
2
 
3
3
  /**
4
4
  * Event Wiring
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as OrbitalSchema, O as OrbitalDefinition } from './schema-DgAnrD1M.js';
2
- export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as CustomPatternDefinition, p as CustomPatternDefinitionInput, q as CustomPatternDefinitionSchema, r as CustomPatternMap, s as CustomPatternMapInput, t as CustomPatternMapSchema, D as DensitySlice, u as DensitySliceSchema, v as DensityTokens, w as DensityTokensSchema, x as DesignPreferences, y as DesignPreferencesInput, z as DesignPreferencesSchema, B as DesignTokens, F as DesignTokensInput, G as DesignTokensSchema, H as DomainCategory, I as DomainCategorySchema, J as DomainContext, K as DomainContextInput, L as DomainContextSchema, M as DomainVocabulary, N as DomainVocabularySchema, Q as ElevationSlice, R as ElevationSliceSchema, S as ElevationTokens, T as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, E as EntityRef, X as EntityRefSchema, Y as EntityRefStringSchema, Z as EntitySemanticRole, _ as EntitySemanticRoleSchema, $ as EventListener, a0 as EventListenerSchema, a1 as EventSemanticRole, a2 as EventSemanticRoleSchema, a3 as EventSource, a4 as EventSourceSchema, a5 as FullOrbitalUnit, a6 as GameSubCategory, a7 as GameSubCategorySchema, a8 as GeometrySlice, a9 as GeometrySliceSchema, aa as GeometryTokens, ab as GeometryTokensSchema, ac as IconFamily, ad as IconFamilySchema, ae as IconographySlice, af as IconographySliceSchema, ag as IconographyTokens, ah as IconographyTokensSchema, ai as IllustrationSlice, aj as IllustrationSliceSchema, ak as IllustrationStyle, al as IllustrationStyleSchema, am as IllustrationTokens, an as IllustrationTokensSchema, ao as MotionDurationKey, ap as MotionDurationKeySchema, aq as MotionDurationPalette, ar as MotionDurationPaletteSchema, as as MotionEasingKey, at as MotionEasingKeySchema, au as MotionEasingPalette, av as MotionEasingPaletteSchema, aw as MotionIntent, ax as MotionIntentMap, ay as MotionIntentMapSchema, az as MotionIntentSchema, aA as MotionSlice, aB as MotionSliceSchema, aC as MotionTokens, aD as MotionTokensSchema, aE as NodeClassification, aF as NodeClassificationSchema, a5 as Orbital, aG as OrbitalConfig, aH as OrbitalConfigInput, aI as OrbitalConfigSchema, aJ as OrbitalDefinitionSchema, aK as OrbitalInput, aL as OrbitalPage, aM as OrbitalPageInput, aN as OrbitalPageSchema, aO as OrbitalPageStrictInput, aP as OrbitalPageStrictSchema, aQ as OrbitalSchemaInput, aR as OrbitalSchemaSchema, aS as OrbitalSchemaWithTraits, aT as OrbitalUnit, aU as OrbitalUnitSchema, aV as OrbitalZodSchema, b as Page, P as PageRef, c as PageRefObject, aW as PageRefObjectSchema, aX as PageRefSchema, aY as PageRefStringSchema, aZ as PageSchema, a_ as PageTraitRef, a$ as PageTraitRefSchema, b0 as RelatedLink, b1 as RelatedLinkSchema, b2 as SkinSpec, b3 as SkinSpecSchema, b4 as SpacingScale, b5 as SpacingScaleSchema, b6 as StateSemanticRole, b7 as StateSemanticRoleSchema, b8 as SuggestedGuard, b9 as SuggestedGuardSchema, ba as ThemeDefinition, bb as ThemeDefinitionSchema, bc as ThemeRef, bd as ThemeRefSchema, be as ThemeRefStringSchema, bf as ThemeTokens, bg as ThemeTokensSchema, bh as ThemeVariant, bi as ThemeVariantSchema, bj as TypeIntent, bk as TypeIntentMap, bl as TypeIntentMapSchema, bm as TypeIntentSchema, bn as TypeScale, bo as TypeScaleEntry, bp as TypeScaleEntrySchema, bq as TypeScaleSchema, br as TypeScaleTokens, bs as TypeScaleTokensSchema, bt as TypeSizeKey, bu as TypeSizeKeySchema, bv as TypeSlice, bw as TypeSliceSchema, bx as TypeSlot, by as TypeSlotSchema, bz as TypeWeight, bA as TypeWeightSchema, bB as UXHints, bC as UXHintsSchema, U as UseDeclaration, bD as UseDeclarationSchema, bE as UserPersona, bF as UserPersonaInput, bG as UserPersonaSchema, bH as ViewType, bI as ViewTypeSchema, bJ as isEntityCall, bK as isEntityReference, bL as isEntityReferenceAny, bM as isImportedTraitRef, bN as isOrbitalDefinition, bO as isPageReference, bP as isPageReferenceObject, bQ as isPageReferenceString, bR as isThemeReference, bS as parseEntityRef, bT as parseImportedTraitRef, bU as parseOrbitalSchema, bV as parsePageRef, bW as safeParseOrbitalSchema } from './schema-DgAnrD1M.js';
1
+ import { O as OrbitalDefinition, a as OrbitalSchema } from './schema-kJUA2M6H.js';
2
+ export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, 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, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, L as DomainContext, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, 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 MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, a7 as Orbital, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, b as Page, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b0 as PageTraitRef, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from './schema-kJUA2M6H.js';
3
3
  import { S as State } from './trait-C61Wxi3a.js';
4
4
  export { A as AgentEffect, k as AnimationDef, l as AnimationDefInput, m as AnimationDefSchema, n as ArrayEntityField, o as AssetMap, p as AssetMapInput, q as AssetMapSchema, r as AssetMapping, s as AssetMappingInput, t as AssetMappingSchema, u as AtomicEffect, C as CallServiceConfig, v as CallServiceEffect, w as CheckpointLoadEffect, x as CheckpointSaveEffect, y as ConfigFieldDeclaration, z as ConfigFieldDeclarationSchema, D as DeclaredTraitConfig, B as DeclaredTraitConfigSchema, F as DerefEffect, G as DespawnEffect, H as DoEffect, I as ENTITY_ROLES, E as Effect, J as EffectInput, K as EffectSchema, L as EmitConfig, M as EmitEffect, c as Entity, N as EntityData, f as EntityField, O as EntityFieldContract, P as EntityFieldContractSchema, Q as EntityFieldInput, V as EntityFieldSchema, g as EntityPersistence, W as EntityPersistenceSchema, X as EntityRole, Y as EntityRoleSchema, h as EntityRow, Z as EntitySchema, _ as EnumEntityField, $ as EvaluateConfig, a0 as EvaluateEffect, a1 as Event, a2 as EventInput, a3 as EventPayloadField, a4 as EventPayloadFieldSchema, a5 as EventSchema, a6 as EventScope, a7 as EventScopeSchema, a8 as FetchEffect, a9 as FetchOptions, aa as FetchResult, ab as Field, ac as FieldFormat, ad as FieldFormatSchema, ae as FieldSchema, af as FieldType, ag as FieldTypeSchema, ah as FieldValue, ai as ForwardConfig, aj as ForwardEffect, ak as GAME_TYPES, al as GameType, am as GameTypeSchema, an as Guard, ao as GuardInput, ap as GuardSchema, aq as ListenSource, ar as ListenSourceSchema, as as LogEffect, at as McpServiceDef, au as McpServiceDefSchema, av as NavigateEffect, aw as NnConfig, ax as NnLayer, ay as NotifyEffect, az as OrbitalEntity, aA as OrbitalEntityInput, aB as OrbitalEntitySchema, aC as OrbitalTraitRef, aD as OrbitalTraitRefSchema, aE as OsEffect, aF as PayloadField, aG as PayloadFieldSchema, aH as PersistData, aI as PersistEffect, aJ as PersistEmitConfig, aK as PresentationType, aL as RefEffect, aM as RelationConfig, aN as RelationConfigSchema, aO as RelationEntityField, R as RenderBinding, aP as RenderItemLambda, aQ as RenderUIConfig, a as RenderUIEffect, aR as RenderUINode, aS as RequiredField, aT as RequiredFieldSchema, aU as ResolvedAsset, aV as ResolvedAssetInput, aW as ResolvedAssetSchema, aX as ResolvedPatternProps, aY as RestAuthConfig, aZ as RestAuthConfigSchema, a_ as RestServiceDef, a$ as RestServiceDefSchema, b0 as SERVICE_TYPES, b1 as ScalarEntityField, b2 as SemanticAssetRef, b3 as SemanticAssetRefInput, b4 as SemanticAssetRefSchema, b5 as ServiceDefinition, b6 as ServiceDefinitionSchema, b7 as ServiceParams, b8 as ServiceParamsValue, b9 as ServiceRef, ba as ServiceRefObject, bb as ServiceRefObjectSchema, bc as ServiceRefSchema, bd as ServiceRefStringSchema, be as ServiceType, bf as ServiceTypeSchema, bg as SetEffect, bh as SocketEvents, bi as SocketEventsSchema, bj as SocketServiceDef, bk as SocketServiceDefSchema, bl as SpawnEffect, bm as StateInput, bn as StateMachine, bo as StateMachineInput, bp as StateMachineSchema, bq as StateSchema, br as SwapEffect, bs as TrainConfig, bt as TrainEffect, T as Trait, bu as TraitCategory, bv as TraitCategorySchema, e as TraitConfig, bw as TraitConfigObject, bx as TraitConfigSchema, by as TraitConfigValue, bz as TraitConfigValueSchema, bA as TraitDataEntity, bB as TraitDataEntitySchema, bC as TraitEntityField, bD as TraitEntityFieldSchema, b as TraitEventContract, bE as TraitEventContractSchema, d as TraitEventListener, bF as TraitEventListenerSchema, bG as TraitInput, i as TraitRef, bH as TraitRefSchema, j as TraitReference, bI as TraitReferenceInput, bJ as TraitReferenceSchema, bK as TraitSchema, bL as TraitTick, bM as TraitTickSchema, bN as TraitUIBinding, bO as Transition, bP as TransitionInput, bQ as TransitionSchema, bR as TypedEffect, U 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-C61Wxi3a.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';
@@ -7,11 +7,98 @@ import { ResolvedIR, ResolvedEntity, ResolvedPage, ResolvedTrait, ChangesetValue
7
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, EntityCollection, EntityInlet, EntityRecord, 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
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-CQF32lJA.js';
9
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
- 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-DA8bnafs.js';
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-DpYntG1r.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';
13
13
  import 'zod';
14
14
 
15
+ /**
16
+ * Render-UI structural editing — the single canonical pattern-tree navigator,
17
+ * mutators, and overlay application. Promoted out of apps/builder so the studio
18
+ * client, rabit's contextual-edit path, and the overlay replay share ONE
19
+ * implementation (no shadow copies).
20
+ *
21
+ * Operates on the SERIALIZABLE structural pattern node — the resolved `.orb`
22
+ * render-ui shape (`{ type, children, ...props }`, props are strings/numbers/
23
+ * booleans/bindings/arrays). It never holds function-typed props: those exist
24
+ * only in the React-component `AnyPatternConfig`, never in resolved IR. A node
25
+ * to insert/swap is built as a structural literal and validated against the
26
+ * pattern registry by the caller — `AnyPatternConfig` is never assigned in.
27
+ */
28
+
29
+ /** A serializable value inside a render-ui pattern node. No functions. */
30
+ type PatternValue = string | number | boolean | Date | null | undefined | PatternNode | readonly PatternValue[];
31
+ /** One node in a render-ui pattern tree as it appears in resolved `.orb`. */
32
+ interface PatternNode {
33
+ type?: string;
34
+ children?: PatternNode[];
35
+ [prop: string]: PatternValue | PatternNode[] | undefined;
36
+ }
37
+ type EditFocusLevel = 'node' | 'slot' | 'field' | 'effect' | 'trait' | 'page' | 'orbital';
38
+ /** A pointed-at element. Plain data — constructible with or without a DOM. */
39
+ interface EditFocus {
40
+ level: EditFocusLevel;
41
+ orbital: string;
42
+ trait?: string;
43
+ transition?: string;
44
+ state?: string;
45
+ slot?: string;
46
+ path?: string;
47
+ patternType?: string;
48
+ entity?: string;
49
+ source?: string;
50
+ label: string;
51
+ }
52
+ type RenderUiPatchOp = 'replace' | 'insert' | 'remove' | 'set-prop' | 'rebind';
53
+ interface RenderUiPatchAddress {
54
+ trait: string;
55
+ transition: string;
56
+ state?: string;
57
+ slot: string;
58
+ /** patternPath, e.g. `root.children.2`. For `insert`, the PARENT path. */
59
+ path: string;
60
+ }
61
+ interface RenderUiPatch {
62
+ op: RenderUiPatchOp;
63
+ address: RenderUiPatchAddress;
64
+ /** Structural fingerprint of the pre-edit node, used to re-anchor the patch
65
+ * if a later factory rebuild shifts `address.path`. */
66
+ fingerprint?: string;
67
+ /** For `replace` / `insert`: the concrete node to place. */
68
+ node?: PatternNode;
69
+ /** For `insert`: index within the parent's children (default: append). */
70
+ index?: number;
71
+ /** For `set-prop` / `rebind`: the prop key. */
72
+ prop?: string;
73
+ /** For `set-prop`: the new value. For `rebind`: pass the binding via `value`. */
74
+ value?: PatternValue;
75
+ }
76
+ /** Navigate a dot-separated path (`root`, `root.children.0`, …) to a node. */
77
+ declare function navigatePatternPath(root: PatternNode, path: string): PatternNode | null;
78
+ /** Set a prop on the node at `path`. Returns false if the path misses. */
79
+ declare function setPropAtPath(root: PatternNode, path: string, prop: string, value: PatternValue): boolean;
80
+ /** Replace the node at a child path (`<parent>.children.<i>`) with `node`. */
81
+ declare function replaceChildAtPath(root: PatternNode, path: string, node: PatternNode): boolean;
82
+ /** Insert `node` into the parent's `children` at `index` (clamped to end). */
83
+ declare function insertChildAtPath(root: PatternNode, parentPath: string, index: number, node: PatternNode): boolean;
84
+ /** Remove the node at a child path. */
85
+ declare function removeChildAtPath(root: PatternNode, path: string): boolean;
86
+ /** Deterministic structural fingerprint of a node (excludes child contents;
87
+ * identifies the base node so a patch can re-anchor after a path shift). */
88
+ declare function fingerprintNode(node: PatternNode): string;
89
+ interface RenderOverlayResult {
90
+ applied: number;
91
+ /** Patches whose target node could not be resolved (path gone + fingerprint
92
+ * unmatched). Surfaced as `patch_stale` — never silently dropped. */
93
+ stale: RenderUiPatch[];
94
+ }
95
+ /**
96
+ * Replay render-ui patches onto a resolved orbital, in place. Deterministic:
97
+ * given the same base + patches, produces the same tree. Patches that cannot be
98
+ * anchored are returned in `stale` (never silently dropped or misapplied).
99
+ */
100
+ declare function applyRenderOverlay(orbital: OrbitalDefinition, patches: readonly RenderUiPatch[]): RenderOverlayResult;
101
+
15
102
  /**
16
103
  * Schema Resolver
17
104
  *
@@ -263,4 +350,4 @@ declare function summarizeOrbital(orbital: OrbitalDefinition): OrbitalDefinition
263
350
  */
264
351
  declare function summarizeSchema(schema: OrbitalSchema): OrbitalSchema;
265
352
 
266
- export { OrbitalSchema as AppSchema, CategorizedRemovals, ChangesetValue, OrbitalDefinition, OrbitalSchema, PageContentReduction, ResolvedEntity, ResolvedIR, ResolvedPage, ResolvedTrait, SchemaChange, type SchemaDiff, type SchemaDiffAuthor, type SchemaDiffChange, type SchemaDiffChangeset, type SchemaDiffMode, type SchemaDiffOptions, type SchemaDiffSource, type SchemaDiffSummary, SemanticSchemaChange, State, OrbitalDefinition as ValidatedOrbital, categorizeRemovals, classifyWorkflow, clearSchemaCache, detectPageContentReduction, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, getEntity, getPage, getPages, getRemovals, getSchemaCacheStats, getTrait, hasSignificantPageReduction, isDestructiveChange, requiresConfirmation, schemaToIR, summarizeOrbital, summarizeSchema };
353
+ export { OrbitalSchema as AppSchema, CategorizedRemovals, ChangesetValue, type EditFocus, type EditFocusLevel, OrbitalDefinition, OrbitalSchema, PageContentReduction, type PatternNode, type PatternValue, type RenderOverlayResult, type RenderUiPatch, type RenderUiPatchAddress, type RenderUiPatchOp, ResolvedEntity, ResolvedIR, ResolvedPage, ResolvedTrait, SchemaChange, type SchemaDiff, type SchemaDiffAuthor, type SchemaDiffChange, type SchemaDiffChangeset, type SchemaDiffMode, type SchemaDiffOptions, type SchemaDiffSource, type SchemaDiffSummary, SemanticSchemaChange, State, OrbitalDefinition as ValidatedOrbital, applyRenderOverlay, categorizeRemovals, classifyWorkflow, clearSchemaCache, detectPageContentReduction, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, fingerprintNode, getEntity, getPage, getPages, getRemovals, getSchemaCacheStats, getTrait, hasSignificantPageReduction, insertChildAtPath, isDestructiveChange, navigatePatternPath, removeChildAtPath, replaceChildAtPath, requiresConfirmation, schemaToIR, setPropAtPath, summarizeOrbital, summarizeSchema };
package/dist/index.js CHANGED
@@ -1445,6 +1445,19 @@ var OrbitalConfigSchema = z.object({
1445
1445
  timeout: z.number().optional()
1446
1446
  }).optional()
1447
1447
  });
1448
+ var ConfigProvenanceRecordSchema = z.object({
1449
+ trait: z.string(),
1450
+ patternPath: z.string().optional(),
1451
+ prop: z.string(),
1452
+ knob: z.string()
1453
+ });
1454
+ var SchemaMetadataSchema = z.object({
1455
+ version: z.number().optional(),
1456
+ createdAt: z.number().optional(),
1457
+ source: z.string().optional(),
1458
+ updatedAt: z.number().optional(),
1459
+ configProvenance: z.record(z.array(ConfigProvenanceRecordSchema)).optional()
1460
+ });
1448
1461
  var OrbitalSchemaSchema = z.object({
1449
1462
  name: z.string().min(1, "Schema name is required"),
1450
1463
  description: z.string().optional(),
@@ -1456,7 +1469,8 @@ var OrbitalSchemaSchema = z.object({
1456
1469
  customPatterns: CustomPatternMapSchema,
1457
1470
  orbitals: z.array(OrbitalSchema).min(1, "At least one orbital is required"),
1458
1471
  services: z.array(ServiceDefinitionSchema).optional(),
1459
- config: OrbitalConfigSchema.optional()
1472
+ config: OrbitalConfigSchema.optional(),
1473
+ _metadata: SchemaMetadataSchema.optional()
1460
1474
  });
1461
1475
  function parseOrbitalSchema(data) {
1462
1476
  return OrbitalSchemaSchema.parse(data);
@@ -1897,6 +1911,186 @@ function widenTier(tier) {
1897
1911
  return tier;
1898
1912
  }
1899
1913
 
1914
+ // src/render-ui-edit.ts
1915
+ function navigatePatternPath(root, path) {
1916
+ if (!path || path === "root") return root;
1917
+ const parts = path.split(".");
1918
+ let current = root;
1919
+ for (const part of parts) {
1920
+ if (current === null || current === void 0 || typeof current !== "object") return null;
1921
+ if (Array.isArray(current)) {
1922
+ const idx = Number.parseInt(part, 10);
1923
+ if (Number.isNaN(idx) || idx < 0 || idx >= current.length) return null;
1924
+ current = current[idx];
1925
+ } else {
1926
+ const record = current;
1927
+ if (part === "children" && Array.isArray(record.children)) {
1928
+ current = record.children;
1929
+ } else {
1930
+ current = record[part];
1931
+ }
1932
+ }
1933
+ }
1934
+ return typeof current === "object" && current !== null && !Array.isArray(current) ? current : null;
1935
+ }
1936
+ function splitChildPath(path) {
1937
+ const lastDot = path.lastIndexOf(".");
1938
+ if (lastDot === -1) return null;
1939
+ const index = Number.parseInt(path.slice(lastDot + 1), 10);
1940
+ if (Number.isNaN(index)) return null;
1941
+ return { parentPath: path.slice(0, lastDot), index };
1942
+ }
1943
+ function setPropAtPath(root, path, prop, value) {
1944
+ const node = navigatePatternPath(root, path);
1945
+ if (!node) return false;
1946
+ node[prop] = value;
1947
+ return true;
1948
+ }
1949
+ function replaceChildAtPath(root, path, node) {
1950
+ const split = splitChildPath(path);
1951
+ if (!split) return false;
1952
+ const parent = navigatePatternPath(root, split.parentPath);
1953
+ if (!parent || !Array.isArray(parent.children)) return false;
1954
+ if (split.index < 0 || split.index >= parent.children.length) return false;
1955
+ parent.children[split.index] = node;
1956
+ return true;
1957
+ }
1958
+ function insertChildAtPath(root, parentPath, index, node) {
1959
+ const parent = navigatePatternPath(root, parentPath);
1960
+ if (!parent) return false;
1961
+ const children = parent.children ?? [];
1962
+ const i = index < 0 || index > children.length ? children.length : index;
1963
+ children.splice(i, 0, node);
1964
+ parent.children = children;
1965
+ return true;
1966
+ }
1967
+ function removeChildAtPath(root, path) {
1968
+ const split = splitChildPath(path);
1969
+ if (!split) return false;
1970
+ const parent = navigatePatternPath(root, split.parentPath);
1971
+ if (!parent || !Array.isArray(parent.children)) return false;
1972
+ if (split.index < 0 || split.index >= parent.children.length) return false;
1973
+ parent.children.splice(split.index, 1);
1974
+ return true;
1975
+ }
1976
+ function replaceNodeInPlace(target, source) {
1977
+ for (const key of Object.keys(target)) {
1978
+ delete target[key];
1979
+ }
1980
+ Object.assign(target, source);
1981
+ }
1982
+ function stableValue(value) {
1983
+ if (value === void 0) return "u";
1984
+ if (value === null) return "n";
1985
+ if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
1986
+ return JSON.stringify(value);
1987
+ }
1988
+ if (value instanceof Date) return value.toISOString();
1989
+ if (Array.isArray(value)) return `[${value.map(stableValue).join(",")}]`;
1990
+ const nodeType = "type" in value ? value.type : void 0;
1991
+ return `{${typeof nodeType === "string" ? nodeType : ""}}`;
1992
+ }
1993
+ function fingerprintNode(node) {
1994
+ const props = Object.keys(node).filter((k) => k !== "children").sort().map((k) => `${k}=${stableValue(node[k])}`).join(",");
1995
+ const childCount = Array.isArray(node.children) ? node.children.length : 0;
1996
+ return `t:${node.type ?? ""}|${props}|c:${childCount}`;
1997
+ }
1998
+ function findByFingerprint(node, path, fp) {
1999
+ if (fingerprintNode(node) === fp) return path;
2000
+ if (Array.isArray(node.children)) {
2001
+ for (let i = 0; i < node.children.length; i++) {
2002
+ const r = findByFingerprint(node.children[i], `${path}.children.${i}`, fp);
2003
+ if (r) return r;
2004
+ }
2005
+ }
2006
+ return null;
2007
+ }
2008
+ function readRenderUi(eff) {
2009
+ if (eff[0] !== "render-ui") return null;
2010
+ const slot = eff[1];
2011
+ const config = eff[2];
2012
+ if (typeof slot !== "string") return null;
2013
+ if (config === null || typeof config !== "object" || Array.isArray(config)) return null;
2014
+ return { slot, node: config };
2015
+ }
2016
+ function asInlineTrait(ref2) {
2017
+ if (typeof ref2 === "object" && ref2 !== null && "stateMachine" in ref2) {
2018
+ return ref2;
2019
+ }
2020
+ return null;
2021
+ }
2022
+ function findRenderUiRoot(orbital, address) {
2023
+ const wantTransition = address.transition !== "";
2024
+ const wantState = address.state !== void 0 && address.state !== "";
2025
+ let fallback = null;
2026
+ for (const ref2 of orbital.traits) {
2027
+ const trait = asInlineTrait(ref2);
2028
+ if (!trait || trait.name !== address.trait) continue;
2029
+ for (const t of trait.stateMachine?.transitions ?? []) {
2030
+ if (wantState && t.from !== address.state) continue;
2031
+ for (const eff of t.effects ?? []) {
2032
+ const ru = readRenderUi(eff);
2033
+ if (!ru || ru.slot !== address.slot) continue;
2034
+ if (wantTransition && t.event === address.transition) return ru.node;
2035
+ fallback ?? (fallback = ru.node);
2036
+ }
2037
+ }
2038
+ }
2039
+ return fallback;
2040
+ }
2041
+ function resolvePath(root, patch) {
2042
+ if (patch.op === "insert") {
2043
+ return navigatePatternPath(root, patch.address.path) ? patch.address.path : null;
2044
+ }
2045
+ const atPath = navigatePatternPath(root, patch.address.path);
2046
+ if (atPath && (patch.fingerprint === void 0 || fingerprintNode(atPath) === patch.fingerprint)) {
2047
+ return patch.address.path;
2048
+ }
2049
+ if (patch.fingerprint !== void 0) {
2050
+ return findByFingerprint(root, "root", patch.fingerprint);
2051
+ }
2052
+ return null;
2053
+ }
2054
+ function applyOnePatch(orbital, patch) {
2055
+ const root = findRenderUiRoot(orbital, patch.address);
2056
+ if (!root) return false;
2057
+ const path = resolvePath(root, patch);
2058
+ if (path === null) return false;
2059
+ switch (patch.op) {
2060
+ case "set-prop":
2061
+ case "rebind":
2062
+ return patch.prop !== void 0 && setPropAtPath(root, path, patch.prop, patch.value);
2063
+ case "remove":
2064
+ return removeChildAtPath(root, path);
2065
+ case "insert":
2066
+ return patch.node !== void 0 && insertChildAtPath(root, path, patch.index ?? Number.MAX_SAFE_INTEGER, patch.node);
2067
+ case "replace": {
2068
+ if (patch.node === void 0) return false;
2069
+ if (path === "root") {
2070
+ const target = navigatePatternPath(root, "root");
2071
+ if (!target) return false;
2072
+ replaceNodeInPlace(target, patch.node);
2073
+ return true;
2074
+ }
2075
+ return replaceChildAtPath(root, path, patch.node);
2076
+ }
2077
+ default:
2078
+ return false;
2079
+ }
2080
+ }
2081
+ function applyRenderOverlay(orbital, patches) {
2082
+ let applied = 0;
2083
+ const stale = [];
2084
+ for (const patch of patches) {
2085
+ if (applyOnePatch(orbital, patch)) {
2086
+ applied += 1;
2087
+ } else {
2088
+ stale.push(patch);
2089
+ }
2090
+ }
2091
+ return { applied, stale };
2092
+ }
2093
+
1900
2094
  // src/resolver.ts
1901
2095
  var schemaCache = /* @__PURE__ */ new WeakMap();
1902
2096
  function clearSchemaCache() {
@@ -4063,6 +4257,6 @@ function buildPayloadForEdge(transition, guardCase) {
4063
4257
  return {};
4064
4258
  }
4065
4259
 
4066
- 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 };
4260
+ 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, ConfigProvenanceRecordSchema, 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, SchemaMetadataSchema, 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, applyRenderOverlay, 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, fingerprintNode, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getEntity, getInteractionModelForDomain, getOperator, getPage, getPages, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, inferTsType, insertChildAtPath, 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, navigatePatternPath, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, ref, removeChildAtPath, renderUI, replaceChildAtPath, requiresConfirmation, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, toBindingRoot, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, walkSExpr, walkStatePairs, watch, widenTier };
4067
4261
  //# sourceMappingURL=index.js.map
4068
4262
  //# sourceMappingURL=index.js.map