@almadar/core 10.29.0 → 10.30.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.
@@ -1,14 +1,15 @@
1
- import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-DcBjE_Uw.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, 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, 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, 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, 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, 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, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, 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, 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, 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-DcBjE_Uw.js';
3
- import { E as EntityField, a as EntityPersistence, F as FieldValue, c as Entity, b as EntityRow, A as AnyPatternConfig } from '../pattern-types-JZordBZv.js';
4
- export { d as ANIMATION_NAMES, e as ASSET_ASPECTS, f as ASSET_DIMENSIONS, g as AnimationDef, h as AnimationDefInput, i as AnimationDefSchema, j as AnimationName, k as AnimationNameSchema, l as ArrayEntityField, m as Asset, n as AssetAspect, o as AssetAspectSchema, p as AssetCatalog, q as AssetCatalogEntry, r as AssetCatalogEntryInput, s as AssetCatalogEntrySchema, t as AssetCatalogSchema, u as AssetDimension, v as AssetDimensionSchema, w as AssetSchema, x as AssetUrl, C as CAMERA_MODES, y as Camera, z as CameraMode, B as CameraModeSchema, D as CameraSchema, G as ENTITY_ROLES, H as EntityData, I as EntityFieldInput, J as EntityFieldSchema, K as EntityPersistenceSchema, L as EntityRole, M as EntityRoleSchema, N as EntitySchema, O as EntityWith, P as EnumEntityField, Q as Field, S as FieldFormat, T as FieldFormatSchema, U as FieldSchema, V as FieldType, W as FieldTypeSchema, X as OrbitalEntity, Y as OrbitalEntityInput, Z as OrbitalEntitySchema, _ as PATTERN_TYPES, $ as PatternConfig, a2 as PatternType, R as RelationConfig, a3 as RelationConfigSchema, a4 as RelationEntityField, a5 as SPRITE_DIRECTIONS, a6 as ScalarEntityField, a7 as ScenePos, a8 as ScenePosSchema, a9 as SemanticAssetRef, aa as SemanticAssetRefInput, ab as SemanticAssetRefSchema, ac as SpriteDirection, ad as SpriteDirectionSchema, ae as SpriteSheetAtlas, af as SpriteSheetAtlasInput, ag as SpriteSheetAtlasSchema, ah as SubTexture, ai as SubTextureSchema, aj as TextureAtlas, ak as TextureAtlasSchema, al as Tilesheet, am as TilesheetSchema, an as VISUAL_STYLES, ao as VisualStyle, ap as VisualStyleSchema, aq as createAssetKey, ar as deriveCollection, as as getDefaultAnimationsForRole, at as isFieldValue, au as isRuntimeEntity, av as isValidPatternType, aw as parseAssetKey, ax as persistenceModeAllowsOverrides, ay as validateAssetAnimations } from '../pattern-types-JZordBZv.js';
1
+ import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-C458pIMW.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, 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, 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, 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, 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, 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, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, 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, 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, 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-C458pIMW.js';
3
+ import { E as EntityField, a as EntityPersistence, F as FieldValue, e as Entity, b as EntityRow, A as AnyPatternConfig, O as OrbitalId, T as TraitId, c as EventId } from '../pattern-types-CLcOXOmW.js';
4
+ export { f as ANIMATION_NAMES, g as ASSET_ASPECTS, h as ASSET_DIMENSIONS, 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, C as CAMERA_MODES, B as Camera, D as CameraMode, G as CameraModeSchema, H as CameraSchema, I as ENTITY_ROLES, J as EntityData, K as EntityFieldInput, L as EntityFieldSchema, d as EntityId, M as EntityIdSchema, N as EntityPersistenceSchema, Q as EntityRole, S as EntityRoleSchema, U as EntitySchema, V as EntityWith, W as EnumEntityField, X as EventIdSchema, Y as Field, Z as FieldFormat, _ as FieldFormatSchema, $ as FieldSchema, a0 as FieldType, a1 as FieldTypeSchema, a2 as IdForKind, a3 as IdKind, a4 as IdentityLedger, a5 as IdentityLedgerSchema, a6 as LedgerEntry, a7 as LedgerEntrySchema, a8 as LedgerKind, a9 as LedgerKindSchema, aa as OrbitalEntity, ab as OrbitalEntityInput, ac as OrbitalEntitySchema, ad as OrbitalIdSchema, ae as PATTERN_TYPES, P as PageId, af as PageIdSchema, ag as PaletteEntryId, ah as PaletteEntryIdSchema, ai as PatternConfig, al as PatternType, R as RelationConfig, am as RelationConfigSchema, an as RelationEntityField, ao as SPRITE_DIRECTIONS, ap as ScalarEntityField, aq as ScenePos, ar as ScenePosSchema, as as SemanticAssetRef, at as SemanticAssetRefInput, au as SemanticAssetRefSchema, av as ServiceId, aw as ServiceIdSchema, ax as SpriteDirection, ay as SpriteDirectionSchema, az as SpriteSheetAtlas, aA as SpriteSheetAtlasInput, aB as SpriteSheetAtlasSchema, aC as SubTexture, aD as SubTextureSchema, aE as TextureAtlas, aF as TextureAtlasSchema, aG as ThemeId, aH as ThemeIdSchema, aI as Tilesheet, aJ as TilesheetSchema, aK as TraitIdSchema, aL as VISUAL_STYLES, aM as VisualStyle, aN as VisualStyleSchema, aO as asEntityId, aP as asEventId, aQ as asOrbitalId, aR as asPageId, aS as asPaletteEntryId, aT as asServiceId, aU as asThemeId, aV as asTraitId, aW as createAssetKey, aX as deriveCollection, aY as getDefaultAnimationsForRole, aZ as idKindOf, a_ as idPrefix, a$ as isEntityId, b0 as isEventId, b1 as isFieldValue, b2 as isOrbitalId, b3 as isPageId, b4 as isPaletteEntryId, b5 as isRuntimeEntity, b6 as isServiceId, b7 as isThemeId, b8 as isTraitId, b9 as isValidPatternType, ba as ledgerCurName, bb as ledgerRename, bc as ledgerResolveName, bd as mintId, be as parseAssetKey, bf as persistenceModeAllowsOverrides, bg as validateAssetAnimations } from '../pattern-types-CLcOXOmW.js';
5
5
  import { d as EventPayloadValue, E as EventPayload, L as LogMeta, S as SExpr, c as EvalContext } from '../expression-CB9R3KWk.js';
6
6
  export { C as CORE_BINDINGS, b as CoreBinding, a as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, 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 isEventPayloadValue, p as isSExpr, q as isSExprAtom, r as isSExprCall, s as isValidBinding, t as parseBinding, u as sexpr, w as walkSExpr } from '../expression-CB9R3KWk.js';
7
7
  import { z } from 'zod';
8
- import { a as TraitReference, av as ServiceParams, c as Trait, D as DeclaredTraitConfig, d as TraitConfig, E as Effect, m as ConfigFieldDeclaration, S as State, be as Transition, H as Event, aY as TraitConfigValue, aU as TraitCategory, bX as TraitScope } from '../trait-B_CzfDSi.js';
9
- export { A as AgentEffect, e as ApplicationEffect, f as AtomicEffect, B as BehaviorEffect, g as CONFIG_REF_EVENT_PATTERN, h as CallServiceConfig, i as CallServiceEffect, C as CallSiteConfig, b as CallSiteConfigEntry, j as CheckpointLoadEffect, k as CheckpointSaveEffect, l as ComposeEffect, n as ConfigFieldDeclarationSchema, o as ConfigFieldItemsDeclaration, p as ConfigRefEventError, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, u as EffectInput, v as EffectSchema, w as EmitConfig, x as EmitEffect, y as EntityFieldContract, z as EntityFieldContractSchema, F as EvaluateConfig, G as EvaluateEffect, I as EventInput, J as EventPayloadField, K as EventPayloadFieldSchema, L as EventSchema, M as EventScope, N as EventScopeSchema, O as FetchEffect, P as FetchOptions, Q as FetchResult, R as ForwardConfig, U as ForwardEffect, V as Guard, W as GuardInput, X as GuardSchema, Y as ListenSource, Z as ListenSourceSchema, _ as LlmEffect, $ as LogEffect, a0 as McpServiceDef, a1 as McpServiceDefSchema, a2 as MemoryEffect, a3 as NavigateEffect, a4 as NnConfig, a5 as NnLayer, a6 as NotifyEffect, a7 as OrbitalTraitRef, a8 as OrbitalTraitRefSchema, a9 as OsEffect, aa as PayloadField, ab as PayloadFieldSchema, ac as PersistData, ad as PersistEffect, ae as PersistEmitConfig, af as PresentationType, ag as RefEffect, ah as RenderBinding, ai as RenderItemLambda, aj as RenderUIEffect, ak as RenderUINode, al as RequiredField, am as RequiredFieldSchema, an as ResolvedPatternProps, ao as RestAuthConfig, ap as RestAuthConfigSchema, aq as RestServiceDef, ar as RestServiceDefSchema, as as SERVICE_TYPES, at as ServiceDefinition, au as ServiceDefinitionSchema, aw as ServiceParamsValue, ax as ServiceRef, ay as ServiceRefObject, az as ServiceRefObjectSchema, aA as ServiceRefSchema, aB as ServiceRefStringSchema, aC as ServiceType, aD as ServiceTypeSchema, aE as SessionEffect, aF as SetEffect, aG as SocketEvents, aH as SocketEventsSchema, aI as SocketServiceDef, aJ as SocketServiceDefSchema, aK as SpawnEffect, aL as StateInput, aM as StateMachine, aN as StateMachineInput, aO as StateMachineSchema, aP as StateSchema, aQ as SwapEffect, aR as TraceEffect, aS as TrainConfig, aT as TrainEffect, aV as TraitCategorySchema, aW as TraitConfigObject, aX as TraitConfigSchema, aZ as TraitConfigValueSchema, a_ as TraitDataEntity, a$ as TraitDataEntitySchema, b0 as TraitEntityField, b1 as TraitEntityFieldSchema, b2 as TraitEventContract, b3 as TraitEventContractSchema, T as TraitEventListener, b4 as TraitEventListenerSchema, b5 as TraitInput, b6 as TraitRef, b7 as TraitRefSchema, b8 as TraitReferenceInput, b9 as TraitReferenceSchema, ba as TraitSchema, bb as TraitTick, bc as TraitTickSchema, bd as TraitUIBinding, bf as TransitionInput, bg as TransitionSchema, bh as TypedEffect, bi as UISlot, bj as UISlotSchema, bk as UI_SLOTS, bl as ValidateEffect, bm as WatchEffect, bn as WatchOptions, bo as atomic, bp as callService, bq as configRefEventKnob, br as deref, bs as despawn, bt as doEffects, bu as emit, bv as findService, bw as getServiceNames, bx as getTraitConfig, by as getTraitName, bz as hasService, bA as isCallSiteConfigDeclaration, bB as isCircuitEvent, bC as isEffect, bD as isInlineTrait, bE as isMcpService, bF as isRestService, bG as isSExprEffect, bH as isServiceReference, bI as isServiceReferenceObject, bJ as isSocketService, bK as navigate, bL as normalizeCallSiteConfigToValues, bM as normalizeTraitRef, bN as notify, bO as parseServiceRef, bP as persist, bQ as ref, bR as renderUI, bS as resolveConfigRefEventName, bT as set, bU as spawn, bV as swap, bW as watch } from '../trait-B_CzfDSi.js';
10
- import { s as TraitOverlay, R as RuleOverlay, J as JsonValue, o as JsonSchema, n as JsonObject, T as ToolArgs, c as FactoryConfigTier } from '../types-CGC5A1-T.js';
11
- export { v as isJsonArray, w as isJsonObject, x as isJsonPrimitive } from '../types-CGC5A1-T.js';
8
+ import { a as TraitReference, ay as ServiceParams, c as Trait, D as DeclaredTraitConfig, d as TraitConfig, E as Effect, m as ConfigFieldDeclaration, S as State, bh as Transition, H as Event, a$ as TraitConfigValue, aX as TraitCategory, b$ as TraitScope } from '../trait-CwWjkU-1.js';
9
+ export { A as AgentEffect, e as ApplicationEffect, f as AtomicEffect, B as BehaviorEffect, g as CONFIG_REF_EVENT_PATTERN, h as CallServiceConfig, i as CallServiceEffect, C as CallSiteConfig, b as CallSiteConfigEntry, j as CheckpointLoadEffect, k as CheckpointSaveEffect, l as ComposeEffect, n as ConfigFieldDeclarationSchema, o as ConfigFieldItemsDeclaration, p as ConfigRefEventError, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, u as EffectInput, v as EffectSchema, w as EmitConfig, x as EmitEffect, y as EntityFieldContract, z as EntityFieldContractSchema, F as EvaluateConfig, G as EvaluateEffect, I as EventInput, J as EventPayloadField, K as EventPayloadFieldSchema, L as EventSchema, M as EventScope, N as EventScopeSchema, O as FetchEffect, P as FetchOptions, Q as FetchResult, R as ForwardConfig, U as ForwardEffect, V as Guard, W as GuardInput, X as GuardSchema, Y as ListenSource, Z as ListenSourceSchema, _ as LlmEffect, $ as LogEffect, a0 as McpServiceDef, a1 as McpServiceDefSchema, a2 as MemoryEffect, a3 as NavigateEffect, a4 as NnConfig, a5 as NnLayer, a6 as NotifyEffect, a7 as OrbitalTraitRef, a8 as OrbitalTraitRefSchema, a9 as OsEffect, aa as PayloadField, ab as PayloadFieldSchema, ac as PersistData, ad as PersistEffect, ae as PersistEmitConfig, af as PresentationType, ag as REFERENCE_CONFIG_TYPES, ah as RefEffect, ai as ReferenceConfigType, aj as RenderBinding, ak as RenderChildrenMap, al as RenderItemLambda, am as RenderUIEffect, an as RenderUINode, ao as RequiredField, ap as RequiredFieldSchema, aq as ResolvedPatternProps, ar as RestAuthConfig, as as RestAuthConfigSchema, at as RestServiceDef, au as RestServiceDefSchema, av as SERVICE_TYPES, aw as ServiceDefinition, ax as ServiceDefinitionSchema, az as ServiceParamsValue, aA as ServiceRef, aB as ServiceRefObject, aC as ServiceRefObjectSchema, aD as ServiceRefSchema, aE as ServiceRefStringSchema, aF as ServiceType, aG as ServiceTypeSchema, aH as SessionEffect, aI as SetEffect, aJ as SocketEvents, aK as SocketEventsSchema, aL as SocketServiceDef, aM as SocketServiceDefSchema, aN as SpawnEffect, aO as StateInput, aP as StateMachine, aQ as StateMachineInput, aR as StateMachineSchema, aS as StateSchema, aT as SwapEffect, aU as TraceEffect, aV as TrainConfig, aW as TrainEffect, aY as TraitCategorySchema, aZ as TraitConfigObject, a_ as TraitConfigSchema, b0 as TraitConfigValueSchema, b1 as TraitDataEntity, b2 as TraitDataEntitySchema, b3 as TraitEntityField, b4 as TraitEntityFieldSchema, b5 as TraitEventContract, b6 as TraitEventContractSchema, T as TraitEventListener, b7 as TraitEventListenerSchema, b8 as TraitInput, b9 as TraitRef, ba as TraitRefSchema, bb as TraitReferenceInput, bc as TraitReferenceSchema, bd as TraitSchema, be as TraitTick, bf as TraitTickSchema, bg as TraitUIBinding, bi as TransitionInput, bj as TransitionSchema, bk as TypedEffect, bl as UISlot, bm as UISlotSchema, bn as UI_SLOTS, bo as ValidateEffect, bp as WatchEffect, bq as WatchOptions, br as atomic, bs as callService, bt as configRefEventKnob, bu as deref, bv as despawn, bw as doEffects, bx as emit, by as findService, bz as getServiceNames, bA as getTraitConfig, bB as getTraitName, bC as hasService, bD as isCallSiteConfigDeclaration, bE as isCircuitEvent, bF as isEffect, bG as isInlineTrait, bH as isMcpService, bI as isReferenceConfigType, bJ as isRestService, bK as isSExprEffect, bL as isServiceReference, bM as isServiceReferenceObject, bN as isSocketService, bO as navigate, bP as normalizeCallSiteConfigToValues, bQ as normalizeTraitRef, bR as notify, bS as parseServiceRef, bT as persist, bU as ref, bV as renderUI, bW as resolveConfigRefEventName, bX as set, bY as spawn, bZ as swap, b_ as watch } from '../trait-CwWjkU-1.js';
10
+ import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-yW22YNNt.js';
11
+ import { J as JsonValue, a as JsonObject, T as ToolArgs } from '../json-DOTchoRS.js';
12
+ export { i as isJsonArray, b as isJsonObject, c as isJsonPrimitive } from '../json-DOTchoRS.js';
12
13
 
13
14
  /**
14
15
  * S-Expression Bindings
@@ -261,6 +262,8 @@ interface ValidationResult {
261
262
  * - `ORB_SLOT_*` — UI-slot conflict / contention
262
263
  * - `ORB_SVC_*` / `ORB_UI_*` — service / UI primitives
263
264
  * - `ORB_X_*` — cross-orbital constraints (listens, emits, IDs)
265
+ * - `ORB_ID_*` — V4 dual-carry id integrity (unknown ref, name/kind
266
+ * mismatch, ledger orphan)
264
267
  */
265
268
  declare const KNOWN_VALIDATION_ERROR_CODES: {
266
269
  readonly ORB_BINDING_ENTITY_FIELD_NEVER_SET: "ORB_BINDING_ENTITY_FIELD_NEVER_SET";
@@ -412,6 +415,10 @@ declare const KNOWN_VALIDATION_ERROR_CODES: {
412
415
  readonly ORB_X_RENDER_UI_EVENT_LITERAL_STALE: "ORB_X_RENDER_UI_EVENT_LITERAL_STALE";
413
416
  readonly ORB_X_UNRESOLVED_PATTERN_FIELD_REF: "ORB_X_UNRESOLVED_PATTERN_FIELD_REF";
414
417
  readonly ORB_X_UNUSED_EMISSION: "ORB_X_UNUSED_EMISSION";
418
+ readonly ORB_ID_UNKNOWN_REF: "ORB_ID_UNKNOWN_REF";
419
+ readonly ORB_ID_NAME_MISMATCH: "ORB_ID_NAME_MISMATCH";
420
+ readonly ORB_ID_KIND_MISMATCH: "ORB_ID_KIND_MISMATCH";
421
+ readonly ORB_ID_LEDGER_ORPHAN: "ORB_ID_LEDGER_ORPHAN";
415
422
  };
416
423
  /**
417
424
  * Narrow union of the codes documented in `KNOWN_VALIDATION_ERROR_CODES`.
@@ -949,17 +956,17 @@ declare const InteractionModelSchema: z.ZodObject<{
949
956
  bulkActions: z.ZodOptional<z.ZodBoolean>;
950
957
  realtime: z.ZodOptional<z.ZodBoolean>;
951
958
  }, "strip", z.ZodTypeAny, {
952
- createFlow: "modal" | "none" | "inline" | "page";
953
- editFlow: "modal" | "none" | "inline" | "page";
954
- viewFlow: "drawer" | "modal" | "none" | "inline" | "page";
959
+ createFlow: "page" | "modal" | "none" | "inline";
960
+ editFlow: "page" | "modal" | "none" | "inline";
961
+ viewFlow: "page" | "drawer" | "modal" | "none" | "inline";
955
962
  deleteFlow: "none" | "instant" | "confirm";
956
963
  bulkActions?: boolean | undefined;
957
964
  listInteraction?: "click-to-view" | "click-to-edit" | "inline-edit" | undefined;
958
965
  realtime?: boolean | undefined;
959
966
  }, {
960
- createFlow: "modal" | "none" | "inline" | "page";
961
- editFlow: "modal" | "none" | "inline" | "page";
962
- viewFlow: "drawer" | "modal" | "none" | "inline" | "page";
967
+ createFlow: "page" | "modal" | "none" | "inline";
968
+ editFlow: "page" | "modal" | "none" | "inline";
969
+ viewFlow: "page" | "drawer" | "modal" | "none" | "inline";
963
970
  deleteFlow: "none" | "instant" | "confirm";
964
971
  bulkActions?: boolean | undefined;
965
972
  listInteraction?: "click-to-view" | "click-to-edit" | "inline-edit" | undefined;
@@ -1870,7 +1877,13 @@ type EventListen<P> = string & {
1870
1877
  */
1871
1878
  interface BusEventSource {
1872
1879
  orbital?: string;
1880
+ /** V4 dual-carry id sibling of `orbital` — stable across an orbital rename. */
1881
+ orbitalId?: OrbitalId;
1873
1882
  trait?: string;
1883
+ /** V4 dual-carry id sibling of `trait` — stable across a trait rename. */
1884
+ traitId?: TraitId;
1885
+ /** V4 dual-carry id of the emitted event — stable across an event rename. */
1886
+ eventId?: EventId;
1874
1887
  transition?: string;
1875
1888
  tick?: string;
1876
1889
  /**
@@ -2064,9 +2077,10 @@ interface VerificationSnapshot {
2064
2077
  /** Asset load status exposed for canvas-based game verification. */
2065
2078
  type AssetLoadStatus = "loaded" | "failed" | "pending";
2066
2079
  /**
2067
- * Entry recorded on the verification event log. The registry clamps
2068
- * the log size (see `verificationRegistry`'s internal `MAX_EVENT_LOG`)
2069
- * so long runs don't grow unbounded.
2080
+ * Entry recorded on the verification event log. The registry ring-buffers
2081
+ * the log to the last `MAX_EVENT_LOG` entries (evicting the oldest, never
2082
+ * the recent tail) so long runs don't grow unbounded — see
2083
+ * `verificationRegistry` and `eventLogDropped`.
2070
2084
  */
2071
2085
  interface EventLogEntry {
2072
2086
  type: string;
@@ -2114,7 +2128,23 @@ interface OrbitalVerificationAPI {
2114
2128
  assetStatus?: Record<string, AssetLoadStatus>;
2115
2129
  /** Rolling event bus log. Populated by `bindEventBus`. */
2116
2130
  eventLog?: EventLogEntry[];
2117
- /** Clear the event log in place. */
2131
+ /**
2132
+ * Per-page-load nonce, set once when `bindEventBus` creates the log
2133
+ * (and bumped by `clearEventLog`). A verifier reading the log across
2134
+ * hermetic page reloads uses this — not the array length — to detect a
2135
+ * reset: the length can coincidentally refill to the same count after a
2136
+ * reload, which silently drops the post-reload delta. The epoch changing
2137
+ * is the only reliable reset signal.
2138
+ */
2139
+ eventLogEpoch?: string;
2140
+ /**
2141
+ * Count of entries evicted from the FRONT of the ring-buffered log this
2142
+ * page (see `MAX_EVENT_LOG`). The absolute index of `eventLog[i]` is
2143
+ * `eventLogDropped + i`, so a verifier can cursor by absolute position
2144
+ * even after eviction — the recent (driven) tail is never silently lost.
2145
+ */
2146
+ eventLogDropped?: number;
2147
+ /** Clear the event log in place (also bumps `eventLogEpoch`). */
2118
2148
  clearEventLog?: () => void;
2119
2149
  }
2120
2150
 
@@ -2805,4 +2835,4 @@ interface ParsedDesign {
2805
2835
  };
2806
2836
  }
2807
2837
 
2808
- export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LazyService, type LineageEntry, type ListInteraction, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, type RepairResult, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
2838
+ export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, EventId, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LazyService, type LineageEntry, type ListInteraction, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalId, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, type RepairResult, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitId, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
@@ -1,6 +1,151 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  // src/types/orbital.ts
4
+ var ID_PREFIXES = {
5
+ orbital: "orb_",
6
+ entity: "ent_",
7
+ trait: "trt_",
8
+ event: "evt_",
9
+ page: "pag_",
10
+ service: "svc_",
11
+ theme: "thm_",
12
+ palette: "pal_"
13
+ };
14
+ function brand(value) {
15
+ return value;
16
+ }
17
+ function makeIdKind(kind) {
18
+ const prefix = ID_PREFIXES[kind];
19
+ const is = (value) => value.startsWith(prefix) && value.length > prefix.length;
20
+ const as = (value) => {
21
+ if (!is(value)) {
22
+ throw new Error(
23
+ `Expected ${kind} id (prefix "${prefix}"), got: ${JSON.stringify(value)}`
24
+ );
25
+ }
26
+ return brand(value);
27
+ };
28
+ return { prefix, is, as };
29
+ }
30
+ var orbitalKind = makeIdKind("orbital");
31
+ var entityKind = makeIdKind("entity");
32
+ var traitKind = makeIdKind("trait");
33
+ var eventKind = makeIdKind("event");
34
+ var pageKind = makeIdKind("page");
35
+ var serviceKind = makeIdKind("service");
36
+ var themeKind = makeIdKind("theme");
37
+ var paletteKind = makeIdKind("palette");
38
+ var isOrbitalId = orbitalKind.is;
39
+ var asOrbitalId = orbitalKind.as;
40
+ var isEntityId = entityKind.is;
41
+ var asEntityId = entityKind.as;
42
+ var isTraitId = traitKind.is;
43
+ var asTraitId = traitKind.as;
44
+ var isEventId = eventKind.is;
45
+ var asEventId = eventKind.as;
46
+ var isPageId = pageKind.is;
47
+ var asPageId = pageKind.as;
48
+ var isServiceId = serviceKind.is;
49
+ var asServiceId = serviceKind.as;
50
+ var isThemeId = themeKind.is;
51
+ var asThemeId = themeKind.as;
52
+ var isPaletteEntryId = paletteKind.is;
53
+ var asPaletteEntryId = paletteKind.as;
54
+ function idPrefix(kind) {
55
+ return ID_PREFIXES[kind];
56
+ }
57
+ function idKindOf(id) {
58
+ for (const kind of Object.keys(ID_PREFIXES)) {
59
+ const prefix = ID_PREFIXES[kind];
60
+ if (id.startsWith(prefix) && id.length > prefix.length) return kind;
61
+ }
62
+ return null;
63
+ }
64
+ var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
65
+ var TIME_LEN = 10;
66
+ var RANDOM_LEN = 16;
67
+ function randomBytes(len) {
68
+ const g = globalThis;
69
+ if (g.crypto?.getRandomValues) {
70
+ return g.crypto.getRandomValues(new Uint8Array(len));
71
+ }
72
+ throw new Error("mintId: no crypto.getRandomValues available in this runtime");
73
+ }
74
+ function encodeTime(now) {
75
+ let value = now;
76
+ let out = "";
77
+ for (let i = 0; i < TIME_LEN; i++) {
78
+ const mod = value % 32;
79
+ out = CROCKFORD[mod] + out;
80
+ value = (value - mod) / 32;
81
+ }
82
+ return out;
83
+ }
84
+ function encodeRandom() {
85
+ const bytes = randomBytes(RANDOM_LEN);
86
+ let out = "";
87
+ for (let i = 0; i < RANDOM_LEN; i++) {
88
+ out += CROCKFORD[bytes[i] & 31];
89
+ }
90
+ return out;
91
+ }
92
+ function ulid() {
93
+ return encodeTime(Date.now()) + encodeRandom();
94
+ }
95
+ function mintId(kind) {
96
+ return brand(ID_PREFIXES[kind] + ulid());
97
+ }
98
+ function ledgerResolveName(ledger, kind, name) {
99
+ for (const [id, entry] of Object.entries(ledger.entries)) {
100
+ if (entry.kind === kind && entry.curName === name) return id;
101
+ }
102
+ return null;
103
+ }
104
+ function ledgerRename(ledger, id, to, at) {
105
+ const entry = ledger.entries[id];
106
+ if (entry === void 0) return ledger;
107
+ const updated = {
108
+ ...entry,
109
+ curName: to,
110
+ renames: [...entry.renames, { from: entry.curName, to, at }]
111
+ };
112
+ return { ...ledger, entries: { ...ledger.entries, [id]: updated } };
113
+ }
114
+ function ledgerCurName(ledger, id) {
115
+ return ledger.entries[id]?.curName ?? null;
116
+ }
117
+ var OrbitalIdSchema = z.string().refine(isOrbitalId, { message: `Expected an orbital id (prefix "${ID_PREFIXES.orbital}")` });
118
+ var EntityIdSchema = z.string().refine(isEntityId, { message: `Expected an entity id (prefix "${ID_PREFIXES.entity}")` });
119
+ var TraitIdSchema = z.string().refine(isTraitId, { message: `Expected a trait id (prefix "${ID_PREFIXES.trait}")` });
120
+ var EventIdSchema = z.string().refine(isEventId, { message: `Expected an event id (prefix "${ID_PREFIXES.event}")` });
121
+ var PageIdSchema = z.string().refine(isPageId, { message: `Expected a page id (prefix "${ID_PREFIXES.page}")` });
122
+ var ServiceIdSchema = z.string().refine(isServiceId, { message: `Expected a service id (prefix "${ID_PREFIXES.service}")` });
123
+ var ThemeIdSchema = z.string().refine(isThemeId, { message: `Expected a theme id (prefix "${ID_PREFIXES.theme}")` });
124
+ var PaletteEntryIdSchema = z.string().refine(isPaletteEntryId, { message: `Expected a palette-entry id (prefix "${ID_PREFIXES.palette}")` });
125
+ var LedgerKindSchema = z.enum([
126
+ "orbital",
127
+ "entity",
128
+ "trait",
129
+ "event",
130
+ "page",
131
+ "service",
132
+ "theme"
133
+ ]);
134
+ var LedgerEntrySchema = z.object({
135
+ id: z.string(),
136
+ kind: LedgerKindSchema,
137
+ bakedName: z.string(),
138
+ curName: z.string(),
139
+ renames: z.array(
140
+ z.object({ from: z.string(), to: z.string(), at: z.string() })
141
+ ),
142
+ owner: z.enum(["std", "io", "workspace"]),
143
+ parent: TraitIdSchema.optional()
144
+ });
145
+ var IdentityLedgerSchema = z.object({
146
+ schemaVersion: z.literal(1),
147
+ entries: z.record(LedgerEntrySchema)
148
+ });
4
149
  var FieldTypeSchema = z.enum([
5
150
  "string",
6
151
  "number",
@@ -25,6 +170,7 @@ var RelationCardinalitySchema = z.enum([
25
170
  ]);
26
171
  var RelationConfigSchema = z.object({
27
172
  entity: z.string().min(1, "Target entity is required"),
173
+ entityId: EntityIdSchema.optional(),
28
174
  field: z.string().optional(),
29
175
  cardinality: RelationCardinalitySchema.optional(),
30
176
  onDelete: z.enum(["cascade", "nullify", "restrict"]).optional(),
@@ -35,6 +181,7 @@ var RelationConfigSchema = z.object({
35
181
  }).transform((data) => {
36
182
  const normalized = {
37
183
  entity: data.entity || data.target || "",
184
+ entityId: data.entityId,
38
185
  cardinality: data.cardinality || data.type,
39
186
  field: data.field,
40
187
  onDelete: data.onDelete
@@ -526,6 +673,7 @@ var PayloadFieldSchema = z.object({
526
673
  });
527
674
  var EventSchema = z.object({
528
675
  key: z.string().min(1, "Event key is required"),
676
+ id: EventIdSchema.optional(),
529
677
  name: z.string().min(1, "Event name is required"),
530
678
  description: z.string().optional(),
531
679
  synonyms: z.string().optional(),
@@ -543,6 +691,7 @@ var TransitionSchema = z.object({
543
691
  from: z.string().min(1, "Transition source state is required"),
544
692
  to: z.string().min(1, "Transition target state is required"),
545
693
  event: z.string().min(1, "Transition event is required"),
694
+ eventId: EventIdSchema.optional(),
546
695
  guard: ExpressionSchema.nullish(),
547
696
  effects: z.array(EffectSchema).optional(),
548
697
  description: z.string().nullish()
@@ -593,6 +742,10 @@ function normalizeCallSiteConfigToValues(config) {
593
742
  }
594
743
  return hasAny ? out : void 0;
595
744
  }
745
+ var REFERENCE_CONFIG_TYPES = ["entity", "trait", "event"];
746
+ function isReferenceConfigType(type) {
747
+ return REFERENCE_CONFIG_TYPES.includes(type);
748
+ }
596
749
  var ConfigFieldItemsDeclarationSchema = z.lazy(
597
750
  () => z.object({
598
751
  type: z.string().optional(),
@@ -603,6 +756,7 @@ var ConfigFieldItemsDeclarationSchema = z.lazy(
603
756
  var ConfigFieldDeclarationSchema = z.object({
604
757
  type: z.string(),
605
758
  default: TraitConfigValueSchema.optional(),
759
+ refId: z.string().optional(),
606
760
  required: z.boolean().optional(),
607
761
  label: z.string().optional(),
608
762
  description: z.string().optional(),
@@ -668,9 +822,11 @@ var TraitTickSchema = z.object({
668
822
  interval: z.union([z.literal("frame"), z.number().positive()]),
669
823
  appliesTo: z.array(z.string()).optional(),
670
824
  pages: z.array(z.string()).optional(),
825
+ pageIds: z.array(PageIdSchema).optional(),
671
826
  guard: ExpressionSchema.optional(),
672
827
  effects: z.array(EffectSchema).min(1),
673
- emits: z.array(z.string()).optional()
828
+ emits: z.array(z.string()).optional(),
829
+ emitIds: z.array(EventIdSchema).optional()
674
830
  });
675
831
  var EventScopeSchema = z.enum(["internal", "external"]);
676
832
  var EventPayloadFieldSchema = z.object({
@@ -720,6 +876,7 @@ var TraitEventContractSchema = z.object({
720
876
  /^([A-Za-z][A-Za-z0-9_]*|@config\.[A-Za-z_][A-Za-z0-9_]*)$/,
721
877
  "Event name must start with a letter and contain only letters, digits, and underscores, or be a `@config.<knob>` reference"
722
878
  ),
879
+ eventId: EventIdSchema.optional(),
723
880
  description: z.string().optional(),
724
881
  synonyms: z.string().optional(),
725
882
  tier: z.string().optional(),
@@ -728,16 +885,24 @@ var TraitEventContractSchema = z.object({
728
885
  });
729
886
  var ListenSourceSchema = z.union([
730
887
  z.object({ kind: z.literal("any") }),
731
- z.object({ kind: z.literal("trait"), trait: z.string().min(1) }),
888
+ z.object({
889
+ kind: z.literal("trait"),
890
+ trait: z.string().min(1),
891
+ traitId: TraitIdSchema.optional()
892
+ }),
732
893
  z.object({
733
894
  kind: z.literal("orbital"),
734
895
  orbital: z.string().min(1),
735
- trait: z.string().min(1)
896
+ trait: z.string().min(1),
897
+ orbitalId: OrbitalIdSchema.optional(),
898
+ traitId: TraitIdSchema.optional()
736
899
  })
737
900
  ]);
738
901
  var TraitEventListenerSchema = z.object({
739
902
  event: z.string().min(1),
903
+ eventId: EventIdSchema.optional(),
740
904
  triggers: z.string().min(1),
905
+ triggersId: EventIdSchema.optional(),
741
906
  description: z.string().optional(),
742
907
  synonyms: z.string().optional(),
743
908
  tier: z.string().optional(),
@@ -753,14 +918,20 @@ var RequiredFieldSchema = z.object({
753
918
  });
754
919
  var TraitReferenceSchema = z.object({
755
920
  ref: z.string().min(1),
921
+ refId: TraitIdSchema.optional(),
922
+ // V4 local declaration id (see the interface doc) — declared so the
923
+ // strip-mode zod gate carries it through instead of dropping it.
924
+ id: TraitIdSchema.optional(),
756
925
  // Phase 1.2: optional registry path disambiguator, pairs with `ref`.
757
926
  from: z.string().optional(),
758
927
  linkedEntity: z.string().optional(),
928
+ linkedEntityId: EntityIdSchema.optional(),
759
929
  name: z.string().optional(),
760
930
  events: z.record(
761
931
  z.string().min(1, "events key (atom event name) must be non-empty"),
762
932
  z.string().min(1, "events value (caller event name) must be non-empty")
763
933
  ).optional(),
934
+ eventIds: z.record(z.string().min(1), EventIdSchema).optional(),
764
935
  fields: z.record(
765
936
  z.string().min(1, "fields key (canonical field name) must be non-empty"),
766
937
  z.string().min(1, "fields value (consumer field name) must be non-empty")
@@ -810,6 +981,7 @@ var SourceBehaviorMetadataSchema = z.object({
810
981
  originalName: z.string().min(1)
811
982
  });
812
983
  var TraitSchema = z.object({
984
+ id: TraitIdSchema.optional(),
813
985
  name: z.string().min(1),
814
986
  description: z.string().optional(),
815
987
  description_visual_prompt: z.string().optional(),
@@ -821,6 +993,9 @@ var TraitSchema = z.object({
821
993
  capabilities: z.array(z.string()).optional(),
822
994
  scope: TraitScopeSchema,
823
995
  linkedEntity: z.string().optional(),
996
+ linkedEntityId: EntityIdSchema.optional(),
997
+ entityRefIds: z.record(z.string().min(1), EntityIdSchema).optional(),
998
+ traitEmbedIds: z.record(z.string().min(1), TraitIdSchema).optional(),
824
999
  requiredFields: z.array(RequiredFieldSchema).optional(),
825
1000
  dataEntities: z.array(TraitDataEntitySchema).optional(),
826
1001
  stateMachine: StateMachineSchema.optional(),
@@ -894,10 +1069,13 @@ var ViewTypeSchema = z.enum([
894
1069
  ]);
895
1070
  var PageTraitRefSchema = z.object({
896
1071
  ref: z.string().min(1, "Trait ref is required"),
1072
+ refId: TraitIdSchema.optional(),
897
1073
  linkedEntity: z.string().optional(),
1074
+ linkedEntityId: EntityIdSchema.optional(),
898
1075
  config: TraitConfigSchema.optional()
899
1076
  });
900
1077
  var OrbitalPageStrictSchema = z.object({
1078
+ id: PageIdSchema.optional(),
901
1079
  name: z.string().min(1, "Page name is required"),
902
1080
  path: z.string().min(1, "Page path is required").startsWith("/", "Path must start with /"),
903
1081
  primaryEntity: z.string().min(1, "Primary entity is required"),
@@ -905,6 +1083,7 @@ var OrbitalPageStrictSchema = z.object({
905
1083
  title: z.string().optional()
906
1084
  }).strict();
907
1085
  var OrbitalPageSchema = z.object({
1086
+ id: PageIdSchema.optional(),
908
1087
  name: z.string().min(1, "Page name is required"),
909
1088
  path: z.string().min(1, "Page path is required").startsWith("/", "Path must start with /"),
910
1089
  viewType: ViewTypeSchema.optional(),
@@ -1481,11 +1660,14 @@ var PageRefStringSchema = z.string().regex(
1481
1660
  );
1482
1661
  var PageRefObjectSchema = z.object({
1483
1662
  ref: PageRefStringSchema,
1663
+ refId: PageIdSchema.optional(),
1484
1664
  // Phase 1.2: optional registry path disambiguator, pairs with `ref`.
1485
1665
  from: z.string().optional(),
1486
1666
  path: z.string().startsWith("/").optional(),
1487
1667
  linkedEntity: z.string().optional(),
1488
- traits: z.array(TraitRefSchema).optional()
1668
+ linkedEntityId: EntityIdSchema.optional(),
1669
+ traits: z.array(TraitRefSchema).optional(),
1670
+ traitRefIds: z.array(TraitIdSchema).optional()
1489
1671
  });
1490
1672
  var PageRefSchema = z.union([
1491
1673
  PageSchema,
@@ -1539,6 +1721,7 @@ var ComputedEventListenerSchema = z.object({
1539
1721
  payloadMapping: z.record(z.string()).optional()
1540
1722
  });
1541
1723
  var OrbitalDefinitionSchema = z.object({
1724
+ id: OrbitalIdSchema.optional(),
1542
1725
  name: z.string().min(1, "Orbital name is required"),
1543
1726
  description: z.string().optional(),
1544
1727
  visual_prompt: z.string().optional(),
@@ -1603,7 +1786,12 @@ var OrbitalSchemaSchema = z.object({
1603
1786
  orbitals: z.array(OrbitalSchema).min(1, "At least one orbital is required"),
1604
1787
  services: z.array(ServiceDefinitionSchema).optional(),
1605
1788
  config: OrbitalConfigSchema.optional(),
1606
- _metadata: SchemaMetadataSchema.optional()
1789
+ _metadata: SchemaMetadataSchema.optional(),
1790
+ // V4 identity — optional/dual-carry until the Phase-7 flip. Present on
1791
+ // id-carrying `.orb` files so `parseOrbitalSchema` preserves them instead
1792
+ // of stripping unknown keys.
1793
+ schemaVersion: z.number().optional(),
1794
+ ledger: IdentityLedgerSchema.optional()
1607
1795
  });
1608
1796
  function parseOrbitalSchema(data) {
1609
1797
  return OrbitalSchemaSchema.parse(data);
@@ -2052,6 +2240,17 @@ function isValidPatternType(type) {
2052
2240
  return PATTERN_TYPES.includes(type);
2053
2241
  }
2054
2242
 
2243
+ // src/types/json.ts
2244
+ function isJsonPrimitive(value) {
2245
+ return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
2246
+ }
2247
+ function isJsonObject(value) {
2248
+ return value !== null && typeof value === "object" && !Array.isArray(value);
2249
+ }
2250
+ function isJsonArray(value) {
2251
+ return Array.isArray(value);
2252
+ }
2253
+
2055
2254
  // src/types/pattern.ts
2056
2255
  var PatternTypeSchema = z.string();
2057
2256
 
@@ -2152,17 +2351,6 @@ function isResolvedIR(ir) {
2152
2351
  return typeof r.appName === "string" && r.traits instanceof Map && r.pages instanceof Map;
2153
2352
  }
2154
2353
 
2155
- // src/types/json.ts
2156
- function isJsonPrimitive(value) {
2157
- return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
2158
- }
2159
- function isJsonObject(value) {
2160
- return value !== null && typeof value === "object" && !Array.isArray(value);
2161
- }
2162
- function isJsonArray(value) {
2163
- return Array.isArray(value);
2164
- }
2165
-
2166
2354
  // src/types/validation.ts
2167
2355
  var KNOWN_VALIDATION_ERROR_CODES = {
2168
2356
  // Binding (`@entity.X`, `@payload.Y`, `@state.Z`, `@now`, ...)
@@ -2327,7 +2515,13 @@ var KNOWN_VALIDATION_ERROR_CODES = {
2327
2515
  ORB_X_PAYLOAD_MISMATCH: "ORB_X_PAYLOAD_MISMATCH",
2328
2516
  ORB_X_RENDER_UI_EVENT_LITERAL_STALE: "ORB_X_RENDER_UI_EVENT_LITERAL_STALE",
2329
2517
  ORB_X_UNRESOLVED_PATTERN_FIELD_REF: "ORB_X_UNRESOLVED_PATTERN_FIELD_REF",
2330
- ORB_X_UNUSED_EMISSION: "ORB_X_UNUSED_EMISSION"
2518
+ ORB_X_UNUSED_EMISSION: "ORB_X_UNUSED_EMISSION",
2519
+ // Identity — V4 dual-carry id integrity (`ORB_ID_*`). Mirrors
2520
+ // `orbital-compiler/src/phases/validation/id_integrity.rs`.
2521
+ ORB_ID_UNKNOWN_REF: "ORB_ID_UNKNOWN_REF",
2522
+ ORB_ID_NAME_MISMATCH: "ORB_ID_NAME_MISMATCH",
2523
+ ORB_ID_KIND_MISMATCH: "ORB_ID_KIND_MISMATCH",
2524
+ ORB_ID_LEDGER_ORPHAN: "ORB_ID_LEDGER_ORPHAN"
2331
2525
  };
2332
2526
  function isKnownValidationErrorCode(code) {
2333
2527
  return code in KNOWN_VALIDATION_ERROR_CODES;
@@ -2338,6 +2532,6 @@ function widenTier(tier) {
2338
2532
  return tier;
2339
2533
  }
2340
2534
 
2341
- export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, 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, GameSubCategorySchema, 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, PATTERN_TYPES, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TilesheetSchema, 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, atomic, callService, collectBindings, configRefEventKnob, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isPlanSnapshot, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isThemeReference, isTraitFieldRef, isValidBinding, isValidPatternType, navigate, normalizeCallSiteConfigToValues, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, resolveConfigRefEventName, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
2535
+ export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, 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, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, callService, collectBindings, configRefEventKnob, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, idKindOf, idPrefix, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPlanSnapshot, isReferenceConfigType, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mintId, navigate, normalizeCallSiteConfigToValues, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, resolveConfigRefEventName, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
2342
2536
  //# sourceMappingURL=index.js.map
2343
2537
  //# sourceMappingURL=index.js.map