@almadar/core 10.22.0 → 10.24.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,4 +1,4 @@
1
- import { b as EventPayload, S as SExpr } from '../expression-BVRFm0sV.js';
1
+ import { b as EventPayload, S as SExpr } from '../expression-BgReMVoL.js';
2
2
  import 'zod';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { S as SExpr, b as EventPayload, d as Expression } from './expression-BVRFm0sV.js';
2
+ import { S as SExpr, b as EventPayload, d as Expression } from './expression-BgReMVoL.js';
3
3
  import { AnyPatternConfig } from '@almadar/patterns';
4
4
 
5
5
  /**
@@ -1937,6 +1937,11 @@ declare function persistenceModeAllowsOverrides(persistence: EntityPersistence |
1937
1937
  type FieldValue = string | number | boolean | Date | null | string[] | FieldValue[] | {
1938
1938
  [key: string]: FieldValue | undefined;
1939
1939
  };
1940
+ /**
1941
+ * Runtime guard for `FieldValue` — narrows interpreter-produced `unknown`
1942
+ * values at typed substrate boundaries (e.g. `IntegrationContext.http` body).
1943
+ */
1944
+ declare function isFieldValue(value: unknown): value is FieldValue;
1940
1945
  /**
1941
1946
  * One instance of an entity with actual field values.
1942
1947
  * The shape is determined by the Entity definition at schema time.
@@ -6622,4 +6627,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
6622
6627
  } | undefined;
6623
6628
  }>]>;
6624
6629
 
6625
- export { EffectSchema as $, ANIMATION_NAMES as A, type AtomicEffect as B, type CallSiteConfig as C, CAMERA_MODES as D, type EntityField as E, type FieldValue as F, type CallServiceConfig as G, type CallServiceEffect as H, type Camera as I, type CameraMode as J, CameraModeSchema as K, CameraSchema as L, type CheckpointLoadEffect as M, type CheckpointSaveEffect as N, type ConfigFieldDeclaration as O, ConfigFieldDeclarationSchema as P, type DeclaredTraitConfig as Q, type RelationConfig as R, type State as S, type TraitEventListener as T, DeclaredTraitConfigSchema as U, type DerefEffect as V, type DespawnEffect as W, type DoEffect as X, ENTITY_ROLES as Y, type Effect as Z, type EffectInput as _, type EntityPersistence as a, type RenderUIEffect as a$, type EmitConfig as a0, type EmitEffect as a1, type Entity as a2, type EntityData as a3, type EntityFieldContract as a4, EntityFieldContractSchema as a5, type EntityFieldInput as a6, EntityFieldSchema as a7, EntityPersistenceSchema as a8, type EntityRole as a9, GuardSchema as aA, type ListenSource as aB, ListenSourceSchema as aC, type LogEffect as aD, type McpServiceDef as aE, McpServiceDefSchema as aF, type NavigateEffect as aG, type NnConfig as aH, type NnLayer as aI, type NotifyEffect as aJ, type OrbitalEntity as aK, type OrbitalEntityInput as aL, OrbitalEntitySchema as aM, type OrbitalTraitRef as aN, OrbitalTraitRefSchema as aO, type OsEffect as aP, type PayloadField as aQ, PayloadFieldSchema as aR, type PersistData as aS, type PersistEffect as aT, type PersistEmitConfig as aU, type PresentationType as aV, type RefEffect as aW, RelationConfigSchema as aX, type RelationEntityField as aY, type RenderBinding as aZ, type RenderItemLambda as a_, EntityRoleSchema as aa, EntitySchema as ab, type EntityWith as ac, type EnumEntityField as ad, type EvaluateConfig as ae, type EvaluateEffect as af, type Event as ag, type EventInput as ah, type EventPayloadField as ai, EventPayloadFieldSchema as aj, EventSchema as ak, type EventScope as al, EventScopeSchema as am, type FetchEffect as an, type FetchOptions as ao, type FetchResult as ap, type Field as aq, type FieldFormat as ar, FieldFormatSchema as as, FieldSchema as at, type FieldType as au, FieldTypeSchema as av, type ForwardConfig as aw, type ForwardEffect as ax, type Guard as ay, type GuardInput as az, type TraitReference as b, type TraitEventContract as b$, type RenderUINode as b0, type RequiredField as b1, RequiredFieldSchema as b2, type ResolvedPatternProps as b3, type RestAuthConfig as b4, RestAuthConfigSchema as b5, type RestServiceDef as b6, RestServiceDefSchema as b7, SERVICE_TYPES as b8, SPRITE_DIRECTIONS as b9, type SpriteSheetAtlasInput as bA, SpriteSheetAtlasSchema as bB, type StateInput as bC, type StateMachine as bD, type StateMachineInput as bE, StateMachineSchema as bF, StateSchema as bG, type SubTexture as bH, SubTextureSchema as bI, type SwapEffect as bJ, type TextureAtlas as bK, TextureAtlasSchema as bL, type Tilesheet as bM, TilesheetSchema as bN, type TrainConfig as bO, type TrainEffect as bP, type TraitCategory as bQ, TraitCategorySchema as bR, type TraitConfig as bS, type TraitConfigObject as bT, TraitConfigSchema as bU, type TraitConfigValue as bV, TraitConfigValueSchema as bW, type TraitDataEntity as bX, TraitDataEntitySchema as bY, type TraitEntityField as bZ, TraitEntityFieldSchema as b_, type ScalarEntityField as ba, type ScenePos as bb, ScenePosSchema as bc, type SemanticAssetRef as bd, type SemanticAssetRefInput as be, SemanticAssetRefSchema as bf, type ServiceDefinition as bg, ServiceDefinitionSchema as bh, type ServiceParams as bi, type ServiceParamsValue as bj, type ServiceRef as bk, type ServiceRefObject as bl, ServiceRefObjectSchema as bm, ServiceRefSchema as bn, ServiceRefStringSchema as bo, type ServiceType as bp, ServiceTypeSchema as bq, type SetEffect as br, type SocketEvents as bs, SocketEventsSchema as bt, type SocketServiceDef as bu, SocketServiceDefSchema as bv, type SpawnEffect as bw, type SpriteDirection as bx, SpriteDirectionSchema as by, type SpriteSheetAtlas as bz, type CallSiteConfigEntry as c, TraitEventContractSchema as c0, TraitEventListenerSchema as c1, type TraitInput as c2, type TraitRef as c3, TraitRefSchema as c4, type TraitReferenceInput as c5, TraitReferenceSchema as c6, TraitSchema as c7, type TraitTick as c8, TraitTickSchema as c9, hasService as cA, isCallSiteConfigDeclaration as cB, isCircuitEvent as cC, isEffect as cD, isInlineTrait as cE, isMcpService as cF, isRestService as cG, isRuntimeEntity as cH, isSExprEffect as cI, isServiceReference as cJ, isServiceReferenceObject as cK, isSocketService as cL, navigate as cM, normalizeTraitRef as cN, notify as cO, parseAssetKey as cP, parseServiceRef as cQ, persist as cR, persistenceModeAllowsOverrides as cS, ref as cT, renderUI as cU, set as cV, spawn as cW, swap as cX, validateAssetAnimations as cY, watch as cZ, type TraitScope as c_, type TraitUIBinding as ca, type Transition as cb, type TransitionInput as cc, TransitionSchema as cd, type TypedEffect as ce, type UISlot as cf, UISlotSchema as cg, UI_SLOTS as ch, VISUAL_STYLES as ci, type VisualStyle as cj, VisualStyleSchema as ck, type WatchEffect as cl, type WatchOptions as cm, atomic as cn, callService as co, createAssetKey as cp, deref as cq, deriveCollection as cr, despawn as cs, doEffects as ct, emit as cu, findService as cv, getDefaultAnimationsForRole as cw, getServiceNames as cx, getTraitConfig as cy, getTraitName as cz, type Trait as d, type EntityRow as e, ASSET_ASPECTS as f, ASSET_DIMENSIONS as g, type AgentEffect as h, type AnimationDef as i, type AnimationDefInput as j, AnimationDefSchema as k, type AnimationName as l, AnimationNameSchema as m, type ArrayEntityField as n, type Asset as o, type AssetAspect as p, AssetAspectSchema as q, type AssetCatalog as r, type AssetCatalogEntry as s, type AssetCatalogEntryInput as t, AssetCatalogEntrySchema as u, AssetCatalogSchema as v, type AssetDimension as w, AssetDimensionSchema as x, AssetSchema as y, type AssetUrl as z };
6630
+ export { EffectSchema as $, ANIMATION_NAMES as A, type AtomicEffect as B, type CallSiteConfig as C, CAMERA_MODES as D, type EntityField as E, type FieldValue as F, type CallServiceConfig as G, type CallServiceEffect as H, type Camera as I, type CameraMode as J, CameraModeSchema as K, CameraSchema as L, type CheckpointLoadEffect as M, type CheckpointSaveEffect as N, type ConfigFieldDeclaration as O, ConfigFieldDeclarationSchema as P, type DeclaredTraitConfig as Q, type RelationConfig as R, type State as S, type TraitEventListener as T, DeclaredTraitConfigSchema as U, type DerefEffect as V, type DespawnEffect as W, type DoEffect as X, ENTITY_ROLES as Y, type Effect as Z, type EffectInput as _, type EntityPersistence as a, type RenderUIEffect as a$, type EmitConfig as a0, type EmitEffect as a1, type Entity as a2, type EntityData as a3, type EntityFieldContract as a4, EntityFieldContractSchema as a5, type EntityFieldInput as a6, EntityFieldSchema as a7, EntityPersistenceSchema as a8, type EntityRole as a9, GuardSchema as aA, type ListenSource as aB, ListenSourceSchema as aC, type LogEffect as aD, type McpServiceDef as aE, McpServiceDefSchema as aF, type NavigateEffect as aG, type NnConfig as aH, type NnLayer as aI, type NotifyEffect as aJ, type OrbitalEntity as aK, type OrbitalEntityInput as aL, OrbitalEntitySchema as aM, type OrbitalTraitRef as aN, OrbitalTraitRefSchema as aO, type OsEffect as aP, type PayloadField as aQ, PayloadFieldSchema as aR, type PersistData as aS, type PersistEffect as aT, type PersistEmitConfig as aU, type PresentationType as aV, type RefEffect as aW, RelationConfigSchema as aX, type RelationEntityField as aY, type RenderBinding as aZ, type RenderItemLambda as a_, EntityRoleSchema as aa, EntitySchema as ab, type EntityWith as ac, type EnumEntityField as ad, type EvaluateConfig as ae, type EvaluateEffect as af, type Event as ag, type EventInput as ah, type EventPayloadField as ai, EventPayloadFieldSchema as aj, EventSchema as ak, type EventScope as al, EventScopeSchema as am, type FetchEffect as an, type FetchOptions as ao, type FetchResult as ap, type Field as aq, type FieldFormat as ar, FieldFormatSchema as as, FieldSchema as at, type FieldType as au, FieldTypeSchema as av, type ForwardConfig as aw, type ForwardEffect as ax, type Guard as ay, type GuardInput as az, type TraitReference as b, type TraitEventContract as b$, type RenderUINode as b0, type RequiredField as b1, RequiredFieldSchema as b2, type ResolvedPatternProps as b3, type RestAuthConfig as b4, RestAuthConfigSchema as b5, type RestServiceDef as b6, RestServiceDefSchema as b7, SERVICE_TYPES as b8, SPRITE_DIRECTIONS as b9, type SpriteSheetAtlasInput as bA, SpriteSheetAtlasSchema as bB, type StateInput as bC, type StateMachine as bD, type StateMachineInput as bE, StateMachineSchema as bF, StateSchema as bG, type SubTexture as bH, SubTextureSchema as bI, type SwapEffect as bJ, type TextureAtlas as bK, TextureAtlasSchema as bL, type Tilesheet as bM, TilesheetSchema as bN, type TrainConfig as bO, type TrainEffect as bP, type TraitCategory as bQ, TraitCategorySchema as bR, type TraitConfig as bS, type TraitConfigObject as bT, TraitConfigSchema as bU, type TraitConfigValue as bV, TraitConfigValueSchema as bW, type TraitDataEntity as bX, TraitDataEntitySchema as bY, type TraitEntityField as bZ, TraitEntityFieldSchema as b_, type ScalarEntityField as ba, type ScenePos as bb, ScenePosSchema as bc, type SemanticAssetRef as bd, type SemanticAssetRefInput as be, SemanticAssetRefSchema as bf, type ServiceDefinition as bg, ServiceDefinitionSchema as bh, type ServiceParams as bi, type ServiceParamsValue as bj, type ServiceRef as bk, type ServiceRefObject as bl, ServiceRefObjectSchema as bm, ServiceRefSchema as bn, ServiceRefStringSchema as bo, type ServiceType as bp, ServiceTypeSchema as bq, type SetEffect as br, type SocketEvents as bs, SocketEventsSchema as bt, type SocketServiceDef as bu, SocketServiceDefSchema as bv, type SpawnEffect as bw, type SpriteDirection as bx, SpriteDirectionSchema as by, type SpriteSheetAtlas as bz, type CallSiteConfigEntry as c, type TraitScope as c$, TraitEventContractSchema as c0, TraitEventListenerSchema as c1, type TraitInput as c2, type TraitRef as c3, TraitRefSchema as c4, type TraitReferenceInput as c5, TraitReferenceSchema as c6, TraitSchema as c7, type TraitTick as c8, TraitTickSchema as c9, hasService as cA, isCallSiteConfigDeclaration as cB, isCircuitEvent as cC, isEffect as cD, isFieldValue as cE, isInlineTrait as cF, isMcpService as cG, isRestService as cH, isRuntimeEntity as cI, isSExprEffect as cJ, isServiceReference as cK, isServiceReferenceObject as cL, isSocketService as cM, navigate as cN, normalizeTraitRef as cO, notify as cP, parseAssetKey as cQ, parseServiceRef as cR, persist as cS, persistenceModeAllowsOverrides as cT, ref as cU, renderUI as cV, set as cW, spawn as cX, swap as cY, validateAssetAnimations as cZ, watch as c_, type TraitUIBinding as ca, type Transition as cb, type TransitionInput as cc, TransitionSchema as cd, type TypedEffect as ce, type UISlot as cf, UISlotSchema as cg, UI_SLOTS as ch, VISUAL_STYLES as ci, type VisualStyle as cj, VisualStyleSchema as ck, type WatchEffect as cl, type WatchOptions as cm, atomic as cn, callService as co, createAssetKey as cp, deref as cq, deriveCollection as cr, despawn as cs, doEffects as ct, emit as cu, findService as cv, getDefaultAnimationsForRole as cw, getServiceNames as cx, getTraitConfig as cy, getTraitName as cz, type Trait as d, type EntityRow as e, ASSET_ASPECTS as f, ASSET_DIMENSIONS as g, type AgentEffect as h, type AnimationDef as i, type AnimationDefInput as j, AnimationDefSchema as k, type AnimationName as l, AnimationNameSchema as m, type ArrayEntityField as n, type Asset as o, type AssetAspect as p, AssetAspectSchema as q, type AssetCatalog as r, type AssetCatalogEntry as s, type AssetCatalogEntryInput as t, AssetCatalogEntrySchema as u, AssetCatalogSchema as v, type AssetDimension as w, AssetDimensionSchema as x, AssetSchema as y, type AssetUrl as z };
@@ -1,12 +1,12 @@
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-BjButZdb.js';
2
- export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h as ColorTokensSchema, 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-BjButZdb.js';
3
- import { E as EntityField, a as EntityPersistence, b as TraitReference, bi as ServiceParams, F as FieldValue, d as Trait, a2 as Entity, e as EntityRow, Q as DeclaredTraitConfig, bS as TraitConfig, Z as Effect, O as ConfigFieldDeclaration, S as State, cb as Transition, ag as Event, bV as TraitConfigValue, bQ as TraitCategory, c_ as TraitScope } from '../trait-Cs8Mrdw9.js';
4
- export { A as ANIMATION_NAMES, f as ASSET_ASPECTS, g as ASSET_DIMENSIONS, h as AgentEffect, i as AnimationDef, j as AnimationDefInput, k as AnimationDefSchema, l as AnimationName, m as AnimationNameSchema, n as ArrayEntityField, o as Asset, p as AssetAspect, q as AssetAspectSchema, r as AssetCatalog, s as AssetCatalogEntry, t as AssetCatalogEntryInput, u as AssetCatalogEntrySchema, v as AssetCatalogSchema, w as AssetDimension, x as AssetDimensionSchema, y as AssetSchema, z as AssetUrl, B as AtomicEffect, D as CAMERA_MODES, G as CallServiceConfig, H as CallServiceEffect, C as CallSiteConfig, c as CallSiteConfigEntry, I as Camera, J as CameraMode, K as CameraModeSchema, L as CameraSchema, M as CheckpointLoadEffect, N as CheckpointSaveEffect, P as ConfigFieldDeclarationSchema, U as DeclaredTraitConfigSchema, V as DerefEffect, W as DespawnEffect, X as DoEffect, Y as ENTITY_ROLES, _ as EffectInput, $ as EffectSchema, a0 as EmitConfig, a1 as EmitEffect, a3 as EntityData, a4 as EntityFieldContract, a5 as EntityFieldContractSchema, a6 as EntityFieldInput, a7 as EntityFieldSchema, a8 as EntityPersistenceSchema, a9 as EntityRole, aa as EntityRoleSchema, ab as EntitySchema, ac as EntityWith, ad as EnumEntityField, ae as EvaluateConfig, af as EvaluateEffect, ah as EventInput, ai as EventPayloadField, aj as EventPayloadFieldSchema, ak as EventSchema, al as EventScope, am as EventScopeSchema, an as FetchEffect, ao as FetchOptions, ap as FetchResult, aq as Field, ar as FieldFormat, as as FieldFormatSchema, at as FieldSchema, au as FieldType, av as FieldTypeSchema, aw as ForwardConfig, ax as ForwardEffect, ay as Guard, az as GuardInput, aA as GuardSchema, aB as ListenSource, aC as ListenSourceSchema, aD as LogEffect, aE as McpServiceDef, aF as McpServiceDefSchema, aG as NavigateEffect, aH as NnConfig, aI as NnLayer, aJ as NotifyEffect, aK as OrbitalEntity, aL as OrbitalEntityInput, aM as OrbitalEntitySchema, aN as OrbitalTraitRef, aO as OrbitalTraitRefSchema, aP as OsEffect, aQ as PayloadField, aR as PayloadFieldSchema, aS as PersistData, aT as PersistEffect, aU as PersistEmitConfig, aV as PresentationType, aW as RefEffect, R as RelationConfig, aX as RelationConfigSchema, aY as RelationEntityField, aZ as RenderBinding, a_ as RenderItemLambda, a$ as RenderUIEffect, b0 as RenderUINode, b1 as RequiredField, b2 as RequiredFieldSchema, b3 as ResolvedPatternProps, b4 as RestAuthConfig, b5 as RestAuthConfigSchema, b6 as RestServiceDef, b7 as RestServiceDefSchema, b8 as SERVICE_TYPES, b9 as SPRITE_DIRECTIONS, ba as ScalarEntityField, bb as ScenePos, bc as ScenePosSchema, bd as SemanticAssetRef, be as SemanticAssetRefInput, bf as SemanticAssetRefSchema, bg as ServiceDefinition, bh as ServiceDefinitionSchema, bj as ServiceParamsValue, bk as ServiceRef, bl as ServiceRefObject, bm as ServiceRefObjectSchema, bn as ServiceRefSchema, bo as ServiceRefStringSchema, bp as ServiceType, bq as ServiceTypeSchema, br as SetEffect, bs as SocketEvents, bt as SocketEventsSchema, bu as SocketServiceDef, bv as SocketServiceDefSchema, bw as SpawnEffect, bx as SpriteDirection, by as SpriteDirectionSchema, bz as SpriteSheetAtlas, bA as SpriteSheetAtlasInput, bB as SpriteSheetAtlasSchema, bC as StateInput, bD as StateMachine, bE as StateMachineInput, bF as StateMachineSchema, bG as StateSchema, bH as SubTexture, bI as SubTextureSchema, bJ as SwapEffect, bK as TextureAtlas, bL as TextureAtlasSchema, bM as Tilesheet, bN as TilesheetSchema, bO as TrainConfig, bP as TrainEffect, bR as TraitCategorySchema, bT as TraitConfigObject, bU as TraitConfigSchema, bW as TraitConfigValueSchema, bX as TraitDataEntity, bY as TraitDataEntitySchema, bZ as TraitEntityField, b_ as TraitEntityFieldSchema, b$ as TraitEventContract, c0 as TraitEventContractSchema, T as TraitEventListener, c1 as TraitEventListenerSchema, c2 as TraitInput, c3 as TraitRef, c4 as TraitRefSchema, c5 as TraitReferenceInput, c6 as TraitReferenceSchema, c7 as TraitSchema, c8 as TraitTick, c9 as TraitTickSchema, ca as TraitUIBinding, cc as TransitionInput, cd as TransitionSchema, ce as TypedEffect, cf as UISlot, cg as UISlotSchema, ch as UI_SLOTS, ci as VISUAL_STYLES, cj as VisualStyle, ck as VisualStyleSchema, cl as WatchEffect, cm as WatchOptions, cn as atomic, co as callService, cp as createAssetKey, cq as deref, cr as deriveCollection, cs as despawn, ct as doEffects, cu as emit, cv as findService, cw as getDefaultAnimationsForRole, cx as getServiceNames, cy as getTraitConfig, cz as getTraitName, cA as hasService, cB as isCallSiteConfigDeclaration, cC as isCircuitEvent, cD as isEffect, cE as isInlineTrait, cF as isMcpService, cG as isRestService, cH as isRuntimeEntity, cI as isSExprEffect, cJ as isServiceReference, cK as isServiceReferenceObject, cL as isSocketService, cM as navigate, cN as normalizeTraitRef, cO as notify, cP as parseAssetKey, cQ as parseServiceRef, cR as persist, cS as persistenceModeAllowsOverrides, cT as ref, cU as renderUI, cV as set, cW as spawn, cX as swap, cY as validateAssetAnimations, cZ as watch } from '../trait-Cs8Mrdw9.js';
5
- import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr, E as EvalContext } from '../expression-BVRFm0sV.js';
6
- export { C as CORE_BINDINGS, a as CoreBinding, d 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 isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-BVRFm0sV.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-C4TdM6zi.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-C4TdM6zi.js';
3
+ import { E as EntityField, a as EntityPersistence, b as TraitReference, bi as ServiceParams, F as FieldValue, d as Trait, a2 as Entity, e as EntityRow, Q as DeclaredTraitConfig, bS as TraitConfig, Z as Effect, O as ConfigFieldDeclaration, S as State, cb as Transition, ag as Event, bV as TraitConfigValue, bQ as TraitCategory, c$ as TraitScope } from '../trait-fVtC5pP9.js';
4
+ export { A as ANIMATION_NAMES, f as ASSET_ASPECTS, g as ASSET_DIMENSIONS, h as AgentEffect, i as AnimationDef, j as AnimationDefInput, k as AnimationDefSchema, l as AnimationName, m as AnimationNameSchema, n as ArrayEntityField, o as Asset, p as AssetAspect, q as AssetAspectSchema, r as AssetCatalog, s as AssetCatalogEntry, t as AssetCatalogEntryInput, u as AssetCatalogEntrySchema, v as AssetCatalogSchema, w as AssetDimension, x as AssetDimensionSchema, y as AssetSchema, z as AssetUrl, B as AtomicEffect, D as CAMERA_MODES, G as CallServiceConfig, H as CallServiceEffect, C as CallSiteConfig, c as CallSiteConfigEntry, I as Camera, J as CameraMode, K as CameraModeSchema, L as CameraSchema, M as CheckpointLoadEffect, N as CheckpointSaveEffect, P as ConfigFieldDeclarationSchema, U as DeclaredTraitConfigSchema, V as DerefEffect, W as DespawnEffect, X as DoEffect, Y as ENTITY_ROLES, _ as EffectInput, $ as EffectSchema, a0 as EmitConfig, a1 as EmitEffect, a3 as EntityData, a4 as EntityFieldContract, a5 as EntityFieldContractSchema, a6 as EntityFieldInput, a7 as EntityFieldSchema, a8 as EntityPersistenceSchema, a9 as EntityRole, aa as EntityRoleSchema, ab as EntitySchema, ac as EntityWith, ad as EnumEntityField, ae as EvaluateConfig, af as EvaluateEffect, ah as EventInput, ai as EventPayloadField, aj as EventPayloadFieldSchema, ak as EventSchema, al as EventScope, am as EventScopeSchema, an as FetchEffect, ao as FetchOptions, ap as FetchResult, aq as Field, ar as FieldFormat, as as FieldFormatSchema, at as FieldSchema, au as FieldType, av as FieldTypeSchema, aw as ForwardConfig, ax as ForwardEffect, ay as Guard, az as GuardInput, aA as GuardSchema, aB as ListenSource, aC as ListenSourceSchema, aD as LogEffect, aE as McpServiceDef, aF as McpServiceDefSchema, aG as NavigateEffect, aH as NnConfig, aI as NnLayer, aJ as NotifyEffect, aK as OrbitalEntity, aL as OrbitalEntityInput, aM as OrbitalEntitySchema, aN as OrbitalTraitRef, aO as OrbitalTraitRefSchema, aP as OsEffect, aQ as PayloadField, aR as PayloadFieldSchema, aS as PersistData, aT as PersistEffect, aU as PersistEmitConfig, aV as PresentationType, aW as RefEffect, R as RelationConfig, aX as RelationConfigSchema, aY as RelationEntityField, aZ as RenderBinding, a_ as RenderItemLambda, a$ as RenderUIEffect, b0 as RenderUINode, b1 as RequiredField, b2 as RequiredFieldSchema, b3 as ResolvedPatternProps, b4 as RestAuthConfig, b5 as RestAuthConfigSchema, b6 as RestServiceDef, b7 as RestServiceDefSchema, b8 as SERVICE_TYPES, b9 as SPRITE_DIRECTIONS, ba as ScalarEntityField, bb as ScenePos, bc as ScenePosSchema, bd as SemanticAssetRef, be as SemanticAssetRefInput, bf as SemanticAssetRefSchema, bg as ServiceDefinition, bh as ServiceDefinitionSchema, bj as ServiceParamsValue, bk as ServiceRef, bl as ServiceRefObject, bm as ServiceRefObjectSchema, bn as ServiceRefSchema, bo as ServiceRefStringSchema, bp as ServiceType, bq as ServiceTypeSchema, br as SetEffect, bs as SocketEvents, bt as SocketEventsSchema, bu as SocketServiceDef, bv as SocketServiceDefSchema, bw as SpawnEffect, bx as SpriteDirection, by as SpriteDirectionSchema, bz as SpriteSheetAtlas, bA as SpriteSheetAtlasInput, bB as SpriteSheetAtlasSchema, bC as StateInput, bD as StateMachine, bE as StateMachineInput, bF as StateMachineSchema, bG as StateSchema, bH as SubTexture, bI as SubTextureSchema, bJ as SwapEffect, bK as TextureAtlas, bL as TextureAtlasSchema, bM as Tilesheet, bN as TilesheetSchema, bO as TrainConfig, bP as TrainEffect, bR as TraitCategorySchema, bT as TraitConfigObject, bU as TraitConfigSchema, bW as TraitConfigValueSchema, bX as TraitDataEntity, bY as TraitDataEntitySchema, bZ as TraitEntityField, b_ as TraitEntityFieldSchema, b$ as TraitEventContract, c0 as TraitEventContractSchema, T as TraitEventListener, c1 as TraitEventListenerSchema, c2 as TraitInput, c3 as TraitRef, c4 as TraitRefSchema, c5 as TraitReferenceInput, c6 as TraitReferenceSchema, c7 as TraitSchema, c8 as TraitTick, c9 as TraitTickSchema, ca as TraitUIBinding, cc as TransitionInput, cd as TransitionSchema, ce as TypedEffect, cf as UISlot, cg as UISlotSchema, ch as UI_SLOTS, ci as VISUAL_STYLES, cj as VisualStyle, ck as VisualStyleSchema, cl as WatchEffect, cm as WatchOptions, cn as atomic, co as callService, cp as createAssetKey, cq as deref, cr as deriveCollection, cs as despawn, ct as doEffects, cu as emit, cv as findService, cw as getDefaultAnimationsForRole, cx as getServiceNames, cy as getTraitConfig, cz as getTraitName, cA as hasService, cB as isCallSiteConfigDeclaration, cC as isCircuitEvent, cD as isEffect, cE as isFieldValue, cF as isInlineTrait, cG as isMcpService, cH as isRestService, cI as isRuntimeEntity, cJ as isSExprEffect, cK as isServiceReference, cL as isServiceReferenceObject, cM as isSocketService, cN as navigate, cO as normalizeTraitRef, cP as notify, cQ as parseAssetKey, cR as parseServiceRef, cS as persist, cT as persistenceModeAllowsOverrides, cU as ref, cV as renderUI, cW as set, cX as spawn, cY as swap, cZ as validateAssetAnimations, c_ as watch } from '../trait-fVtC5pP9.js';
5
+ import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr, E as EvalContext } from '../expression-BgReMVoL.js';
6
+ export { C as CORE_BINDINGS, a as CoreBinding, d 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-BgReMVoL.js';
7
7
  import { z } from 'zod';
8
- import { s as TraitOverlay, R as RuleOverlay, J as JsonValue, o as JsonSchema, n as JsonObject, T as ToolArgs, c as FactoryConfigTier } from '../types-DpBetrYc.js';
9
- export { v as isJsonArray, w as isJsonObject, x as isJsonPrimitive } from '../types-DpBetrYc.js';
8
+ import { s as TraitOverlay, R as RuleOverlay, J as JsonValue, o as JsonSchema, n as JsonObject, T as ToolArgs, c as FactoryConfigTier } from '../types-DPA1IF-T.js';
9
+ export { v as isJsonArray, w as isJsonObject, x as isJsonPrimitive } from '../types-DPA1IF-T.js';
10
10
  import { AnyPatternConfig } from '@almadar/patterns';
11
11
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
12
12
 
@@ -540,6 +540,12 @@ interface PlanSnapshot {
540
540
  pendingClarifications: ReadonlyArray<Clarification>;
541
541
  paletteTopics?: string[];
542
542
  }
543
+ /**
544
+ * Runtime guard for `PlanSnapshot` — narrows interpreter-produced `unknown`
545
+ * values at the `WorkspaceContext.writePlan` boundary. Discriminates on the
546
+ * snapshot envelope (schemaVersion, status, roster arrays), not deep contents.
547
+ */
548
+ declare function isPlanSnapshot(value: unknown): value is PlanSnapshot;
543
549
  interface ComposeOptions {
544
550
  appName?: string;
545
551
  wiring?: EventWiringEntry[];
@@ -776,6 +782,11 @@ interface SessionHistoryEntry {
776
782
  /** Epoch milliseconds when the entry was recorded */
777
783
  timestamp: number;
778
784
  }
785
+ /**
786
+ * Runtime guard for `SessionHistoryEntry` — narrows interpreter-produced
787
+ * `unknown` values at the `SessionContext.appendHistory` boundary.
788
+ */
789
+ declare function isSessionHistoryEntry(value: unknown): value is SessionHistoryEntry;
779
790
  /**
780
791
  * AgentContext is the runtime contract for agent/* operators.
781
792
  *
@@ -2801,4 +2812,4 @@ interface ParsedDesign {
2801
2812
  };
2802
2813
  }
2803
2814
 
2804
- 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, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
2815
+ 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, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
@@ -310,6 +310,17 @@ function isRuntimeEntity(entity) {
310
310
  function persistenceModeAllowsOverrides(persistence) {
311
311
  return persistence === "persistent" || persistence === void 0;
312
312
  }
313
+ function isFieldValue(value) {
314
+ if (value === null) return true;
315
+ const kind = typeof value;
316
+ if (kind === "string" || kind === "number" || kind === "boolean") return true;
317
+ if (value instanceof Date) return true;
318
+ if (Array.isArray(value)) return value.every((item) => isFieldValue(item));
319
+ if (kind === "object" && value !== null && typeof value === "object") {
320
+ return Object.values(value).every((item) => item === void 0 || isFieldValue(item));
321
+ }
322
+ return false;
323
+ }
313
324
  var UI_SLOTS = [
314
325
  // App slots
315
326
  "main",
@@ -487,6 +498,17 @@ function collectBindings(expr) {
487
498
  });
488
499
  return bindings;
489
500
  }
501
+ function isEventPayloadValue(value) {
502
+ if (value === null || value === void 0) return true;
503
+ const kind = typeof value;
504
+ if (kind === "string" || kind === "number" || kind === "boolean") return true;
505
+ if (value instanceof Date) return true;
506
+ if (Array.isArray(value)) return value.every((item) => isEventPayloadValue(item));
507
+ if (kind === "object" && value !== null && typeof value === "object") {
508
+ return Object.values(value).every((item) => isEventPayloadValue(item));
509
+ }
510
+ return false;
511
+ }
490
512
 
491
513
  // src/types/state-machine.ts
492
514
  var StateSchema = z.object({
@@ -1644,6 +1666,19 @@ function isTraitFieldRef(value) {
1644
1666
  return typeof value === "string" && TRAIT_REF_PATTERN.test(value);
1645
1667
  }
1646
1668
  var TraitFieldRefSchema = z.string().regex(TRAIT_REF_PATTERN, "expected `@trait.<TraitName>` reference");
1669
+
1670
+ // src/types/agent.ts
1671
+ function isSessionHistoryEntry(value) {
1672
+ if (typeof value !== "object" || value === null) return false;
1673
+ return "role" in value && typeof value.role === "string" && "content" in value && typeof value.content === "string" && "timestamp" in value && typeof value.timestamp === "number";
1674
+ }
1675
+
1676
+ // src/types/plan.ts
1677
+ function isPlanSnapshot(value) {
1678
+ if (typeof value !== "object" || value === null) return false;
1679
+ const statuses = ["proposed", "confirmed", "built", "failed"];
1680
+ return "schemaVersion" in value && value.schemaVersion === 1 && "status" in value && statuses.some((s) => s === value.status) && "builtAt" in value && typeof value.builtAt === "string" && "orbitals" in value && Array.isArray(value.orbitals) && "renames" in value && Array.isArray(value.renames) && "deletedOrbitals" in value && Array.isArray(value.deletedOrbitals);
1681
+ }
1647
1682
  var InteractionModelSchema = z.object({
1648
1683
  createFlow: z.enum(["modal", "page", "inline", "none"]),
1649
1684
  editFlow: z.enum(["modal", "page", "inline", "none"]),
@@ -1981,6 +2016,6 @@ function widenTier(tier) {
1981
2016
  return tier;
1982
2017
  }
1983
2018
 
1984
- 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, 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, 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, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSocketService, isThemeReference, isTraitFieldRef, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
2019
+ 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, 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, 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, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getAllPatternTypes, 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, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
1985
2020
  //# sourceMappingURL=index.js.map
1986
2021
  //# sourceMappingURL=index.js.map