@almadar/core 10.18.0 → 10.20.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,14 @@
1
- import { O as OrbitalSchema, a7 as Orbital, b as Page, L as DomainContext, a as OrbitalDefinition, b0 as PageTraitRef } from '../schema-BOGLyI7O.js';
2
- export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from '../schema-BOGLyI7O.js';
3
- import { bB as ServiceParams, a as Trait, d as Entity, h as EntityRow, F as FieldValue, a8 as DeclaredTraitConfig, T as TraitConfig, E as Effect, n as ConfigFieldDeclaration, q as State, cp as Transition, f as EntityField, av as Event, c9 as TraitConfigValue, g as EntityPersistence, c6 as TraitCategory, db as TraitScope } from '../trait-BnNByIRE.js';
4
- export { A as ANIMATION_NAMES, r as ASSET_ASPECTS, s as ASSET_DIMENSIONS, t as AgentEffect, u as AnimationDef, v as AnimationDefInput, w as AnimationDefSchema, x as AnimationName, y as AnimationNameSchema, z as ArrayEntityField, B as Asset, D as AssetAspect, G as AssetAspectSchema, H as AssetCatalog, I as AssetCatalogEntry, J as AssetCatalogEntryInput, K as AssetCatalogEntrySchema, L as AssetCatalogSchema, M as AssetDimension, N as AssetDimensionSchema, O as AssetMap, P as AssetMapInput, Q as AssetMapSchema, V as AssetMapping, W as AssetMappingInput, X as AssetMappingSchema, Y as AssetSchema, Z as AssetUrl, _ as AtomicEffect, $ as CallServiceConfig, a0 as CallServiceEffect, C as CallSiteConfig, p as CallSiteConfigEntry, a1 as CharacterKit, a2 as CharacterKitLayer, a3 as CharacterKitLayerSchema, a4 as CharacterKitSchema, a5 as CheckpointLoadEffect, a6 as CheckpointSaveEffect, a7 as ConfigFieldDeclarationSchema, a9 as DeclaredTraitConfigSchema, aa as DerefEffect, ab as DespawnEffect, ac as DoEffect, ad as ENTITY_ROLES, ae as EffectInput, af as EffectSchema, ag as EmitConfig, ah as EmitEffect, ai as EntityData, aj as EntityFieldContract, ak as EntityFieldContractSchema, al as EntityFieldInput, am as EntityFieldSchema, an as EntityPersistenceSchema, ao as EntityRole, ap as EntityRoleSchema, aq as EntitySchema, ar as EntityWith, as as EnumEntityField, at as EvaluateConfig, au as EvaluateEffect, aw as EventInput, m as EventPayloadField, ax as EventPayloadFieldSchema, ay as EventSchema, az as EventScope, aA as EventScopeSchema, aB as FetchEffect, aC as FetchOptions, aD as FetchResult, aE as Field, aF as FieldFormat, aG as FieldFormatSchema, aH as FieldSchema, aI as FieldType, aJ as FieldTypeSchema, aK as ForwardConfig, aL as ForwardEffect, aM as GAME_TYPES, aN as GameType, aO as GameTypeSchema, aP as Guard, aQ as GuardInput, aR as GuardSchema, aS as ListenSource, aT as ListenSourceSchema, aU as LogEffect, aV as McpServiceDef, aW as McpServiceDefSchema, aX as NavigateEffect, aY as NnConfig, aZ as NnLayer, a_ as NotifyEffect, a$ as OrbitalEntity, b0 as OrbitalEntityInput, b1 as OrbitalEntitySchema, b2 as OrbitalTraitRef, b3 as OrbitalTraitRefSchema, b4 as OsEffect, b5 as PACK_CLASSES, b6 as PackClass, b7 as PackClassSchema, b8 as PayloadField, b9 as PayloadFieldSchema, ba as PersistData, bb as PersistEffect, bc as PersistEmitConfig, bd as PresentationType, be as RefEffect, k as RelationConfig, bf as RelationConfigSchema, bg as RelationEntityField, R as RenderBinding, bh as RenderItemLambda, bi as RenderUIConfig, b as RenderUIEffect, bj as RenderUINode, bk as RequiredField, bl as RequiredFieldSchema, bm as ResolvedAsset, bn as ResolvedAssetInput, bo as ResolvedAssetSchema, bp as ResolvedPatternProps, bq as RestAuthConfig, br as RestAuthConfigSchema, bs as RestServiceDef, bt as RestServiceDefSchema, bu as SERVICE_TYPES, bv as SPRITE_DIRECTIONS, bw as ScalarEntityField, bx as SemanticAssetRef, by as SemanticAssetRefInput, bz as SemanticAssetRefSchema, o as ServiceDefinition, bA as ServiceDefinitionSchema, bC as ServiceParamsValue, S as ServiceRef, bD as ServiceRefObject, bE as ServiceRefObjectSchema, bF as ServiceRefSchema, bG as ServiceRefStringSchema, bH as ServiceType, bI as ServiceTypeSchema, bJ as SetEffect, bK as SocketEvents, bL as SocketEventsSchema, bM as SocketServiceDef, bN as SocketServiceDefSchema, bO as SpawnEffect, bP as SpriteDirection, bQ as SpriteDirectionSchema, bR as SpriteSheetAtlas, bS as SpriteSheetAtlasInput, bT as SpriteSheetAtlasSchema, bU as StateInput, bV as StateMachine, bW as StateMachineInput, bX as StateMachineSchema, bY as StateSchema, bZ as SubTexture, b_ as SubTextureSchema, b$ as SwapEffect, c0 as TextureAtlas, c1 as TextureAtlasSchema, c2 as Tilesheet, c3 as TilesheetSchema, c4 as TrainConfig, c5 as TrainEffect, c7 as TraitCategorySchema, l as TraitConfigObject, c8 as TraitConfigSchema, ca as TraitConfigValueSchema, cb as TraitDataEntity, cc as TraitDataEntitySchema, cd as TraitEntityField, ce as TraitEntityFieldSchema, c as TraitEventContract, cf as TraitEventContractSchema, e as TraitEventListener, cg as TraitEventListenerSchema, ch as TraitInput, i as TraitRef, ci as TraitRefSchema, j as TraitReference, cj as TraitReferenceInput, ck as TraitReferenceSchema, cl as TraitSchema, cm as TraitTick, cn as TraitTickSchema, co as TraitUIBinding, cq as TransitionInput, cr as TransitionSchema, cs as TypedEffect, U as UISlot, ct as UISlotSchema, cu as UI_SLOTS, cv as VISUAL_STYLES, cw as VisualStyle, cx as VisualStyleSchema, cy as WatchEffect, cz as WatchOptions, cA as atomic, cB as callService, cC as createAssetKey, cD as deref, cE as deriveCollection, cF as despawn, cG as doEffects, cH as emit, cI as findService, cJ as getDefaultAnimationsForRole, cK as getServiceNames, cL as getTraitConfig, cM as getTraitName, cN as hasService, cO as isCallSiteConfigDeclaration, cP as isCircuitEvent, cQ as isEffect, cR as isInlineTrait, cS as isMcpService, cT as isRestService, cU as isRuntimeEntity, cV as isSExprEffect, cW as isServiceReference, cX as isServiceReferenceObject, cY as isSocketService, cZ as navigate, c_ as normalizeTraitRef, c$ as notify, d0 as parseAssetKey, d1 as parseServiceRef, d2 as persist, d3 as persistenceModeAllowsOverrides, d4 as ref, d5 as renderUI, d6 as set, d7 as spawn, d8 as swap, d9 as validateAssetAnimations, da as watch } from '../trait-BnNByIRE.js';
1
+ import { O as OrbitalSchema, a7 as Orbital, b as Page, L as DomainContext, a as OrbitalDefinition, b0 as PageTraitRef } from '../schema-BEL2Gr4v.js';
2
+ export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from '../schema-BEL2Gr4v.js';
3
+ import { bo as ServiceParams, a as Trait, d as Entity, h as EntityRow, F as FieldValue, a3 as DeclaredTraitConfig, T as TraitConfig, E as Effect, n as ConfigFieldDeclaration, q as State, cc as Transition, f as EntityField, aq as Event, bY as TraitConfigValue, g as EntityPersistence, bV as TraitCategory, c_ as TraitScope } from '../trait-BcRvHKLW.js';
4
+ export { A as ANIMATION_NAMES, r as ASSET_ASPECTS, s as ASSET_DIMENSIONS, t as AgentEffect, u as AnimationDef, v as AnimationDefInput, w as AnimationDefSchema, x as AnimationName, y as AnimationNameSchema, z as ArrayEntityField, B as Asset, D as AssetAspect, G as AssetAspectSchema, H as AssetCatalog, I as AssetCatalogEntry, J as AssetCatalogEntryInput, K as AssetCatalogEntrySchema, L as AssetCatalogSchema, M as AssetDimension, N as AssetDimensionSchema, O as AssetSchema, P as AssetUrl, Q as AtomicEffect, V as CAMERA_MODES, W as CallServiceConfig, X as CallServiceEffect, C as CallSiteConfig, p as CallSiteConfigEntry, Y as Camera, Z as CameraMode, _ as CameraModeSchema, $ as CameraSchema, a0 as CheckpointLoadEffect, a1 as CheckpointSaveEffect, a2 as ConfigFieldDeclarationSchema, a4 as DeclaredTraitConfigSchema, a5 as DerefEffect, a6 as DespawnEffect, a7 as DoEffect, a8 as ENTITY_ROLES, a9 as EffectInput, aa as EffectSchema, ab as EmitConfig, ac as EmitEffect, ad as EntityData, ae as EntityFieldContract, af as EntityFieldContractSchema, ag as EntityFieldInput, ah as EntityFieldSchema, ai as EntityPersistenceSchema, aj as EntityRole, ak as EntityRoleSchema, al as EntitySchema, am as EntityWith, an as EnumEntityField, ao as EvaluateConfig, ap as EvaluateEffect, ar as EventInput, m as EventPayloadField, as as EventPayloadFieldSchema, at as EventSchema, au as EventScope, av as EventScopeSchema, aw as FetchEffect, ax as FetchOptions, ay as FetchResult, az as Field, aA as FieldFormat, aB as FieldFormatSchema, aC as FieldSchema, aD as FieldType, aE as FieldTypeSchema, aF as ForwardConfig, aG as ForwardEffect, aH as Guard, aI as GuardInput, aJ as GuardSchema, aK as ListenSource, aL as ListenSourceSchema, aM as LogEffect, aN as McpServiceDef, aO as McpServiceDefSchema, aP as NavigateEffect, aQ as NnConfig, aR as NnLayer, aS as NotifyEffect, aT as OrbitalEntity, aU as OrbitalEntityInput, aV as OrbitalEntitySchema, aW as OrbitalTraitRef, aX as OrbitalTraitRefSchema, aY as OsEffect, aZ as PayloadField, a_ as PayloadFieldSchema, a$ as PersistData, b0 as PersistEffect, b1 as PersistEmitConfig, b2 as PresentationType, b3 as RefEffect, k as RelationConfig, b4 as RelationConfigSchema, b5 as RelationEntityField, R as RenderBinding, b6 as RenderItemLambda, b as RenderUIEffect, b7 as RenderUINode, b8 as RequiredField, b9 as RequiredFieldSchema, ba as ResolvedPatternProps, bb as RestAuthConfig, bc as RestAuthConfigSchema, bd as RestServiceDef, be as RestServiceDefSchema, bf as SERVICE_TYPES, bg as SPRITE_DIRECTIONS, bh as ScalarEntityField, bi as ScenePos, bj as ScenePosSchema, bk as SemanticAssetRef, bl as SemanticAssetRefInput, bm as SemanticAssetRefSchema, o as ServiceDefinition, bn as ServiceDefinitionSchema, bp as ServiceParamsValue, S as ServiceRef, bq as ServiceRefObject, br as ServiceRefObjectSchema, bs as ServiceRefSchema, bt as ServiceRefStringSchema, bu as ServiceType, bv as ServiceTypeSchema, bw as SetEffect, bx as SocketEvents, by as SocketEventsSchema, bz as SocketServiceDef, bA as SocketServiceDefSchema, bB as SpawnEffect, bC as SpriteDirection, bD as SpriteDirectionSchema, bE as SpriteSheetAtlas, bF as SpriteSheetAtlasInput, bG as SpriteSheetAtlasSchema, bH as StateInput, bI as StateMachine, bJ as StateMachineInput, bK as StateMachineSchema, bL as StateSchema, bM as SubTexture, bN as SubTextureSchema, bO as SwapEffect, bP as TextureAtlas, bQ as TextureAtlasSchema, bR as Tilesheet, bS as TilesheetSchema, bT as TrainConfig, bU as TrainEffect, bW as TraitCategorySchema, l as TraitConfigObject, bX as TraitConfigSchema, bZ as TraitConfigValueSchema, b_ as TraitDataEntity, b$ as TraitDataEntitySchema, c0 as TraitEntityField, c1 as TraitEntityFieldSchema, c as TraitEventContract, c2 as TraitEventContractSchema, e as TraitEventListener, c3 as TraitEventListenerSchema, c4 as TraitInput, i as TraitRef, c5 as TraitRefSchema, j as TraitReference, c6 as TraitReferenceInput, c7 as TraitReferenceSchema, c8 as TraitSchema, c9 as TraitTick, ca as TraitTickSchema, cb as TraitUIBinding, cd as TransitionInput, ce as TransitionSchema, cf as TypedEffect, U 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-BcRvHKLW.js';
5
5
  import { d as EventPayloadValue, c as EventPayload, L as LogMeta, S as SExpr, b as EvalContext } from '../expression-BUIi9ezJ.js';
6
6
  export { C as CORE_BINDINGS, a as CoreBinding, E 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-BUIi9ezJ.js';
7
7
  import { z } from 'zod';
8
+ import { m as JsonSchema, l as JsonObject, T as ToolArgs, J as JsonValue, c as FactoryConfigTier } from '../types-DBzaYmuJ.js';
9
+ export { t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-DBzaYmuJ.js';
8
10
  import { AnyPatternConfig } from '@almadar/patterns';
9
11
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
10
- import { l as JsonObject, T as ToolArgs, J as JsonValue, c as FactoryConfigTier } from '../types-By4AQApw.js';
11
- export { t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-By4AQApw.js';
12
12
 
13
13
  /**
14
14
  * S-Expression Bindings
@@ -175,6 +175,254 @@ declare function isTraitFieldRef(value: unknown): value is TraitFieldRef;
175
175
  * JSON or recipe overrides at runtime boundaries. */
176
176
  declare const TraitFieldRefSchema: z.ZodString;
177
177
 
178
+ /**
179
+ * Validation error types — the shape emitted by every
180
+ * `.orb` / `.lolo` validator pass.
181
+ *
182
+ * `ValidationError` is the wire shape: `{ code, path, message, suggestion? }`.
183
+ * `code` is `ValidationErrorCode`, which is an OPEN `string` to let the
184
+ * Rust validator emit new codes without an `@almadar/core` rev. The
185
+ * `KNOWN_VALIDATION_ERROR_CODES` const documents the codes currently
186
+ * emitted by the validator + lolo lower pipeline (extracted from
187
+ * `orbital-rust/crates/orbital-compiler/src/phases/validation/` +
188
+ * `orbital-rust/crates/orbital-lolo/src/`).
189
+ *
190
+ * Consumers that want to narrow a code to the closed known set use
191
+ * `KnownValidationErrorCode`:
192
+ *
193
+ * ```ts
194
+ * if (err.code in KNOWN_VALIDATION_ERROR_CODES) {
195
+ * // err.code is now narrowable to KnownValidationErrorCode for
196
+ * // exhaustive switch handling.
197
+ * }
198
+ * ```
199
+ *
200
+ * @packageDocumentation
201
+ */
202
+ /**
203
+ * One validation diagnostic emitted by the validator / lolo lower pipeline.
204
+ *
205
+ * - `code`: machine-readable identifier (see `KNOWN_VALIDATION_ERROR_CODES`).
206
+ * - `path`: JSON pointer-like path into the failing schema location,
207
+ * e.g. `'orbitals[0].traits[2].stateMachine.transitions[1].effects[0]'`.
208
+ * - `message`: human-readable description of the failure.
209
+ * - `suggestion`: optional hint the validator may add to help the
210
+ * author / LLM fix the issue.
211
+ */
212
+ interface ValidationError {
213
+ code: ValidationErrorCode;
214
+ path: string;
215
+ message: string;
216
+ suggestion?: string;
217
+ }
218
+ /**
219
+ * Validation error code — open `string` for forward-compat with the
220
+ * Rust validator's evolving code set. Narrow to the closed known set
221
+ * via `KnownValidationErrorCode` when exhaustive handling is needed.
222
+ */
223
+ type ValidationErrorCode = string;
224
+ /**
225
+ * The result of a single validator pass: a boolean verdict plus the errors
226
+ * and warnings (the validator wire shape, `ValidationError`).
227
+ *
228
+ * Distinct from `ValidationResults` (app.ts): that is the Firestore-persisted
229
+ * app-document shape keyed on `ValidationIssue` (with `severity` + array path
230
+ * + `validatedAt`). This `ValidationResult` is the in-process pass result keyed
231
+ * on `ValidationError` (code + JSON-pointer string path + `suggestion`).
232
+ * `ok === true` iff there are zero errors AND zero warnings.
233
+ */
234
+ interface ValidationResult {
235
+ ok: boolean;
236
+ errors: ValidationError[];
237
+ warnings: ValidationError[];
238
+ }
239
+ /**
240
+ * Closed set of validation codes the Rust validator + lolo lower
241
+ * pipeline currently emit. Source-tagged: codes are extracted from
242
+ * `orbital-rust/crates/orbital-compiler/src/phases/validation/**.rs`
243
+ * and `orbital-rust/crates/orbital-lolo/src/**.rs`. Keep this in sync
244
+ * with the Rust side; mismatches are caught by the Rust validator's
245
+ * own unit tests, which assert the emitted code-set matches an
246
+ * exported manifest.
247
+ *
248
+ * Categories (prefix → meaning):
249
+ * - `ORB_BINDING_*` — binding (`@entity.X`, `@payload.Y`, ...) issues
250
+ * - `ORB_E_*` / `ORB_EFF_*` / `ORB_EMIT_*` — entity / effect / emit
251
+ * - `ORB_GEN_*` — generic / cross-cutting structure
252
+ * - `ORB_O_*` / `ORB_P_*` / `ORB_S_*` / `ORB_SM_*` / `ORB_T_*` —
253
+ * orbital / page / schema / state-machine / trait
254
+ * - `ORB_QUERY_*` — query / search behaviors
255
+ * - `ORB_RUI_*` — render-UI binding + prop validation
256
+ * - `ORB_SLOT_*` — UI-slot conflict / contention
257
+ * - `ORB_SVC_*` / `ORB_UI_*` — service / UI primitives
258
+ * - `ORB_X_*` — cross-orbital constraints (listens, emits, IDs)
259
+ */
260
+ declare const KNOWN_VALIDATION_ERROR_CODES: {
261
+ readonly ORB_BINDING_ENTITY_FIELD_NEVER_SET: "ORB_BINDING_ENTITY_FIELD_NEVER_SET";
262
+ readonly ORB_BINDING_ENTITY_FIELD_NOT_FOUND: "ORB_BINDING_ENTITY_FIELD_NOT_FOUND";
263
+ readonly ORB_BINDING_INVALID_FIELD_NAME: "ORB_BINDING_INVALID_FIELD_NAME";
264
+ readonly ORB_BINDING_INVALID_FORMAT: "ORB_BINDING_INVALID_FORMAT";
265
+ readonly ORB_BINDING_INVALID_PATH: "ORB_BINDING_INVALID_PATH";
266
+ readonly ORB_BINDING_NOW_NO_PATH: "ORB_BINDING_NOW_NO_PATH";
267
+ readonly ORB_BINDING_PAYLOAD_FIELD_UNDECLARED: "ORB_BINDING_PAYLOAD_FIELD_UNDECLARED";
268
+ readonly ORB_BINDING_PAYLOAD_IN_TICK: "ORB_BINDING_PAYLOAD_IN_TICK";
269
+ readonly ORB_BINDING_PAYLOAD_TYPE_INCOMPATIBLE: "ORB_BINDING_PAYLOAD_TYPE_INCOMPATIBLE";
270
+ readonly ORB_BINDING_SET_TARGET_MISSING_PATH: "ORB_BINDING_SET_TARGET_MISSING_PATH";
271
+ readonly ORB_BINDING_STATE_NO_PATH: "ORB_BINDING_STATE_NO_PATH";
272
+ readonly ORB_BINDING_TRAIT_CYCLE: "ORB_BINDING_TRAIT_CYCLE";
273
+ readonly ORB_BINDING_TRAIT_INVALID_FORMAT: "ORB_BINDING_TRAIT_INVALID_FORMAT";
274
+ readonly ORB_BINDING_TRAIT_INVALID_POSITION: "ORB_BINDING_TRAIT_INVALID_POSITION";
275
+ readonly ORB_BINDING_TRAIT_MISSING_NAME: "ORB_BINDING_TRAIT_MISSING_NAME";
276
+ readonly ORB_BINDING_TRAIT_SELF_REFERENCE: "ORB_BINDING_TRAIT_SELF_REFERENCE";
277
+ readonly ORB_BINDING_TRAIT_UNKNOWN: "ORB_BINDING_TRAIT_UNKNOWN";
278
+ readonly ORB_BINDING_UNKNOWN_ENTITY: "ORB_BINDING_UNKNOWN_ENTITY";
279
+ readonly ORB_BINDING_UNKNOWN_ROOT: "ORB_BINDING_UNKNOWN_ROOT";
280
+ readonly ORB_E_DUPLICATE_FIELD: "ORB_E_DUPLICATE_FIELD";
281
+ readonly ORB_E_EMPTY_ENUM_VALUES: "ORB_E_EMPTY_ENUM_VALUES";
282
+ readonly ORB_E_INVALID_FIELD_NAME: "ORB_E_INVALID_FIELD_NAME";
283
+ readonly ORB_E_INVALID_FIELD_TYPE: "ORB_E_INVALID_FIELD_TYPE";
284
+ readonly ORB_E_INVALID_RELATION: "ORB_E_INVALID_RELATION";
285
+ readonly ORB_E_LITERAL_UNION_DEFAULT_MISMATCH: "ORB_E_LITERAL_UNION_DEFAULT_MISMATCH";
286
+ readonly ORB_E_MISSING_COLLECTION: "ORB_E_MISSING_COLLECTION";
287
+ readonly ORB_E_MISSING_NAME: "ORB_E_MISSING_NAME";
288
+ readonly ORB_E_NO_FIELDS: "ORB_E_NO_FIELDS";
289
+ readonly ORB_EFF_CALL_SERVICE_MISSING_ACTION: "ORB_EFF_CALL_SERVICE_MISSING_ACTION";
290
+ readonly ORB_EFF_CALL_SERVICE_MISSING_HANDLERS: "ORB_EFF_CALL_SERVICE_MISSING_HANDLERS";
291
+ readonly ORB_EFF_CALL_SERVICE_MISSING_SERVICE: "ORB_EFF_CALL_SERVICE_MISSING_SERVICE";
292
+ readonly ORB_EFF_EMIT_INVALID_NAME: "ORB_EFF_EMIT_INVALID_NAME";
293
+ readonly ORB_EFF_EMIT_KEY_INVALID: "ORB_EFF_EMIT_KEY_INVALID";
294
+ readonly ORB_EFF_EMIT_UNDECLARED_EVENT: "ORB_EFF_EMIT_UNDECLARED_EVENT";
295
+ readonly ORB_EFF_FETCH_INVALID_ENTITY: "ORB_EFF_FETCH_INVALID_ENTITY";
296
+ readonly ORB_EFF_FETCH_INVALID_INCLUDE: "ORB_EFF_FETCH_INVALID_INCLUDE";
297
+ readonly ORB_EFF_MISSING_FETCH_FOR_ENTITY: "ORB_EFF_MISSING_FETCH_FOR_ENTITY";
298
+ readonly ORB_EFF_MISSING_REQUIRED_EMIT: "ORB_EFF_MISSING_REQUIRED_EMIT";
299
+ readonly ORB_EFF_NAVIGATE_MISSING_PAYLOAD: "ORB_EFF_NAVIGATE_MISSING_PAYLOAD";
300
+ readonly ORB_EFF_NAVIGATE_TARGET_UNREACHABLE: "ORB_EFF_NAVIGATE_TARGET_UNREACHABLE";
301
+ readonly ORB_EFF_SET_INVALID_BINDING: "ORB_EFF_SET_INVALID_BINDING";
302
+ readonly ORB_EFF_SET_PAYLOAD_NOT_ALLOWED: "ORB_EFF_SET_PAYLOAD_NOT_ALLOWED";
303
+ readonly ORB_EFF_SLOT_CONFLICT: "ORB_EFF_SLOT_CONFLICT";
304
+ readonly ORB_EFF_UNKNOWN_TYPE: "ORB_EFF_UNKNOWN_TYPE";
305
+ readonly ORB_EMIT_DECLARED_BUT_UNFIRED: "ORB_EMIT_DECLARED_BUT_UNFIRED";
306
+ readonly ORB_EMIT_PAYLOAD_EXTRA_FIELD: "ORB_EMIT_PAYLOAD_EXTRA_FIELD";
307
+ readonly ORB_EMIT_PAYLOAD_FIELD_TYPE_MISMATCH: "ORB_EMIT_PAYLOAD_FIELD_TYPE_MISMATCH";
308
+ readonly ORB_EMIT_PAYLOAD_MISSING_REQUIRED: "ORB_EMIT_PAYLOAD_MISSING_REQUIRED";
309
+ readonly ORB_EMIT_SUCCESS_PAYLOAD_RETURN_MISMATCH: "ORB_EMIT_SUCCESS_PAYLOAD_RETURN_MISMATCH";
310
+ readonly ORB_GEN_DUPLICATE: "ORB_GEN_DUPLICATE";
311
+ readonly ORB_GEN_INVALID_REFERENCE: "ORB_GEN_INVALID_REFERENCE";
312
+ readonly ORB_GEN_INVALID_VALUE: "ORB_GEN_INVALID_VALUE";
313
+ readonly ORB_GEN_MISSING_FIELD: "ORB_GEN_MISSING_FIELD";
314
+ readonly ORB_O_MISSING_PAGES: "ORB_O_MISSING_PAGES";
315
+ readonly ORB_P_DUPLICATE_PATH: "ORB_P_DUPLICATE_PATH";
316
+ readonly ORB_P_EMPTY_TRAITS: "ORB_P_EMPTY_TRAITS";
317
+ readonly ORB_P_INVALID_PATH: "ORB_P_INVALID_PATH";
318
+ readonly ORB_P_INVALID_TRAIT_REF: "ORB_P_INVALID_TRAIT_REF";
319
+ readonly ORB_P_INVALID_VIEW_TYPE: "ORB_P_INVALID_VIEW_TYPE";
320
+ readonly ORB_P_MISSING_NAME: "ORB_P_MISSING_NAME";
321
+ readonly ORB_P_MISSING_PATH: "ORB_P_MISSING_PATH";
322
+ readonly ORB_P_MISSING_TRAITS: "ORB_P_MISSING_TRAITS";
323
+ readonly ORB_P_SECTIONS_FORBIDDEN: "ORB_P_SECTIONS_FORBIDDEN";
324
+ readonly ORB_QUERY_MISSING_RECOMMENDED: "ORB_QUERY_MISSING_RECOMMENDED";
325
+ readonly ORB_QUERY_MISSING_SEARCH: "ORB_QUERY_MISSING_SEARCH";
326
+ readonly ORB_QUERY_UNKNOWN_SINGLETON: "ORB_QUERY_UNKNOWN_SINGLETON";
327
+ readonly ORB_QUERY_UNSUPPORTED_PATTERN: "ORB_QUERY_UNSUPPORTED_PATTERN";
328
+ readonly ORB_QUERY_UNUSED_SINGLETON: "ORB_QUERY_UNUSED_SINGLETON";
329
+ readonly ORB_RUI_BINDING_TYPE_MISMATCH: "ORB_RUI_BINDING_TYPE_MISMATCH";
330
+ readonly ORB_RUI_ELEMENT_SHAPE_MISMATCH: "ORB_RUI_ELEMENT_SHAPE_MISMATCH";
331
+ readonly ORB_RUI_EVENT_BINDING_PAYLOAD_MISMATCH: "ORB_RUI_EVENT_BINDING_PAYLOAD_MISMATCH";
332
+ readonly ORB_RUI_INVALID_FIELD_PATH: "ORB_RUI_INVALID_FIELD_PATH";
333
+ readonly ORB_RUI_INVALID_ITEM_ACTION: "ORB_RUI_INVALID_ITEM_ACTION";
334
+ readonly ORB_RUI_INVALID_PATTERN: "ORB_RUI_INVALID_PATTERN";
335
+ readonly ORB_RUI_INVALID_PROP: "ORB_RUI_INVALID_PROP";
336
+ readonly ORB_RUI_INVALID_SLOT: "ORB_RUI_INVALID_SLOT";
337
+ readonly ORB_RUI_MISSING_ACTION: "ORB_RUI_MISSING_ACTION";
338
+ readonly ORB_RUI_MISSING_PATTERN_TYPE: "ORB_RUI_MISSING_PATTERN_TYPE";
339
+ readonly ORB_RUI_MISSING_REQUIRED_PROP: "ORB_RUI_MISSING_REQUIRED_PROP";
340
+ readonly ORB_RUI_PROP_TYPE_MISMATCH: "ORB_RUI_PROP_TYPE_MISMATCH";
341
+ readonly ORB_RUI_UNKNOWN_ITEM_ACTION_PROP: "ORB_RUI_UNKNOWN_ITEM_ACTION_PROP";
342
+ readonly ORB_S_EMPTY_VERSION: "ORB_S_EMPTY_VERSION";
343
+ readonly ORB_S_MISSING_NAME: "ORB_S_MISSING_NAME";
344
+ readonly ORB_S_NO_ORBITALS: "ORB_S_NO_ORBITALS";
345
+ readonly ORB_SLOT_CONTENTION: "ORB_SLOT_CONTENTION";
346
+ readonly ORB_SLOT_CONTENTION_RUNTIME: "ORB_SLOT_CONTENTION_RUNTIME";
347
+ readonly ORB_SLOT_HUD_NON_GAME: "ORB_SLOT_HUD_NON_GAME";
348
+ readonly ORB_SLOT_INVALID_NAME: "ORB_SLOT_INVALID_NAME";
349
+ readonly ORB_SLOT_INVALID_NESTING: "ORB_SLOT_INVALID_NESTING";
350
+ readonly ORB_SLOT_MAIN_NOT_COVERED: "ORB_SLOT_MAIN_NOT_COVERED";
351
+ readonly ORB_SLOT_PRIORITY_CONFLICT: "ORB_SLOT_PRIORITY_CONFLICT";
352
+ readonly ORB_SVC_DUPLICATE_NAME: "ORB_SVC_DUPLICATE_NAME";
353
+ readonly ORB_SVC_INVALID_INTEGRATOR: "ORB_SVC_INVALID_INTEGRATOR";
354
+ readonly ORB_SVC_INVALID_URL: "ORB_SVC_INVALID_URL";
355
+ readonly ORB_SVC_MISSING_BASE_URL: "ORB_SVC_MISSING_BASE_URL";
356
+ readonly ORB_SVC_MISSING_CAPABILITIES: "ORB_SVC_MISSING_CAPABILITIES";
357
+ readonly ORB_SVC_MISSING_EVENTS: "ORB_SVC_MISSING_EVENTS";
358
+ readonly ORB_SVC_MISSING_SERVER_PATH: "ORB_SVC_MISSING_SERVER_PATH";
359
+ readonly ORB_SVC_RESERVED_EVENT: "ORB_SVC_RESERVED_EVENT";
360
+ readonly ORB_SVC_UNKNOWN_TYPE: "ORB_SVC_UNKNOWN_TYPE";
361
+ readonly ORB_T_CONFIG_OBJECT_ARRAY_FORBIDDEN: "ORB_T_CONFIG_OBJECT_ARRAY_FORBIDDEN";
362
+ readonly ORB_T_CONFIG_SHAPE_MISMATCH: "ORB_T_CONFIG_SHAPE_MISMATCH";
363
+ readonly ORB_T_CONFIG_TIER_INVALID: "ORB_T_CONFIG_TIER_INVALID";
364
+ readonly ORB_T_DEPRECATED_UI: "ORB_T_DEPRECATED_UI";
365
+ readonly ORB_T_DUPLICATE_NAME: "ORB_T_DUPLICATE_NAME";
366
+ readonly ORB_T_DUPLICATE_STATE: "ORB_T_DUPLICATE_STATE";
367
+ readonly ORB_T_DUPLICATE_TRANSITION: "ORB_T_DUPLICATE_TRANSITION";
368
+ readonly ORB_T_ENTITY_NAME_SHADOWS_TRAIT_UNION: "ORB_T_ENTITY_NAME_SHADOWS_TRAIT_UNION";
369
+ readonly ORB_T_EVENT_TYPE_WRONG_KIND: "ORB_T_EVENT_TYPE_WRONG_KIND";
370
+ readonly ORB_T_EVT_DUPLICATE: "ORB_T_EVT_DUPLICATE";
371
+ readonly ORB_T_EVT_EXTERNAL_MISSING_PAYLOAD: "ORB_T_EVT_EXTERNAL_MISSING_PAYLOAD";
372
+ readonly ORB_T_EVT_INVALID_NAME: "ORB_T_EVT_INVALID_NAME";
373
+ readonly ORB_T_EVT_SCOPE_MISMATCH: "ORB_T_EVT_SCOPE_MISMATCH";
374
+ readonly ORB_T_EVT_TICK_UNDECLARED: "ORB_T_EVT_TICK_UNDECLARED";
375
+ readonly ORB_T_EVT_UNDECLARED: "ORB_T_EVT_UNDECLARED";
376
+ readonly ORB_T_INIT_MISSING_FETCH: "ORB_T_INIT_MISSING_FETCH";
377
+ readonly ORB_T_INVALID_CATEGORY: "ORB_T_INVALID_CATEGORY";
378
+ readonly ORB_T_INVALID_FORMAT: "ORB_T_INVALID_FORMAT";
379
+ readonly ORB_T_INVALID_PATTERN_DEFAULT: "ORB_T_INVALID_PATTERN_DEFAULT";
380
+ readonly ORB_T_INVALID_SLOT_DEFAULT: "ORB_T_INVALID_SLOT_DEFAULT";
381
+ readonly ORB_T_INVALID_TRANSITION: "ORB_T_INVALID_TRANSITION";
382
+ readonly ORB_T_MISSING_INIT_TRANSITION: "ORB_T_MISSING_INIT_TRANSITION";
383
+ readonly ORB_T_MISSING_RENDER_UI: "ORB_T_MISSING_RENDER_UI";
384
+ readonly ORB_T_MULTIPLE_INITIAL_STATES: "ORB_T_MULTIPLE_INITIAL_STATES";
385
+ readonly ORB_T_NO_INITIAL_STATE: "ORB_T_NO_INITIAL_STATE";
386
+ readonly ORB_T_TYPE_ANNOTATION_MISMATCH: "ORB_T_TYPE_ANNOTATION_MISMATCH";
387
+ readonly ORB_T_TYPE_COMPOSITION_CONFLICT: "ORB_T_TYPE_COMPOSITION_CONFLICT";
388
+ readonly ORB_T_TYPE_CYCLE: "ORB_T_TYPE_CYCLE";
389
+ readonly ORB_T_TYPE_KIND_MISMATCH: "ORB_T_TYPE_KIND_MISMATCH";
390
+ readonly ORB_T_TYPE_UNKNOWN: "ORB_T_TYPE_UNKNOWN";
391
+ readonly ORB_T_TYPE_UNKNOWN_PARAM: "ORB_T_TYPE_UNKNOWN_PARAM";
392
+ readonly ORB_T_TYPE_WRONG_ARG_COUNT: "ORB_T_TYPE_WRONG_ARG_COUNT";
393
+ readonly ORB_T_UNDEFINED_EVENT: "ORB_T_UNDEFINED_EVENT";
394
+ readonly ORB_T_UNDEFINED_TRAIT: "ORB_T_UNDEFINED_TRAIT";
395
+ readonly ORB_UI_ICON_EMPTY: "ORB_UI_ICON_EMPTY";
396
+ readonly ORB_UI_ICON_INVALID_FORMAT: "ORB_UI_ICON_INVALID_FORMAT";
397
+ readonly ORB_UI_ICON_NOT_FOUND: "ORB_UI_ICON_NOT_FOUND";
398
+ readonly ORB_X_CIRCULAR_DEPENDENCY: "ORB_X_CIRCULAR_DEPENDENCY";
399
+ readonly ORB_X_CROSS_EMITTER_DECLARED_PAYLOAD_MISMATCH: "ORB_X_CROSS_EMITTER_DECLARED_PAYLOAD_MISMATCH";
400
+ readonly ORB_X_DUPLICATE_ENTITY: "ORB_X_DUPLICATE_ENTITY";
401
+ readonly ORB_X_EVENT_COLLISION: "ORB_X_EVENT_COLLISION";
402
+ readonly ORB_X_INTERNAL_EVENT_EXPOSED: "ORB_X_INTERNAL_EVENT_EXPOSED";
403
+ readonly ORB_X_LISTEN_SOURCE_UNRESOLVED: "ORB_X_LISTEN_SOURCE_UNRESOLVED";
404
+ readonly ORB_X_MISSING_ORBITAL_NAME: "ORB_X_MISSING_ORBITAL_NAME";
405
+ readonly ORB_X_ORPHAN_LISTENER: "ORB_X_ORPHAN_LISTENER";
406
+ readonly ORB_X_PAYLOAD_MISMATCH: "ORB_X_PAYLOAD_MISMATCH";
407
+ readonly ORB_X_RENDER_UI_EVENT_LITERAL_STALE: "ORB_X_RENDER_UI_EVENT_LITERAL_STALE";
408
+ readonly ORB_X_UNRESOLVED_PATTERN_FIELD_REF: "ORB_X_UNRESOLVED_PATTERN_FIELD_REF";
409
+ readonly ORB_X_UNUSED_EMISSION: "ORB_X_UNUSED_EMISSION";
410
+ };
411
+ /**
412
+ * Narrow union of the codes documented in `KNOWN_VALIDATION_ERROR_CODES`.
413
+ * Use this in exhaustive `switch` handlers; use the broader
414
+ * `ValidationErrorCode` (open `string`) anywhere a fresh validator-side
415
+ * code could plausibly arrive.
416
+ */
417
+ type KnownValidationErrorCode = typeof KNOWN_VALIDATION_ERROR_CODES[keyof typeof KNOWN_VALIDATION_ERROR_CODES];
418
+ /**
419
+ * Type guard: is the given code a known one? After the guard returns
420
+ * true, the code can be narrowed to `KnownValidationErrorCode` via a
421
+ * separate cast, because the type system can't track `in` against
422
+ * `as const` records without an explicit narrowing helper.
423
+ */
424
+ declare function isKnownValidationErrorCode(code: ValidationErrorCode): boolean;
425
+
178
426
  /**
179
427
  * Agent Types
180
428
  *
@@ -237,6 +485,54 @@ interface AgentGenerateOptions {
237
485
  /** Maximum tokens to generate */
238
486
  maxTokens?: number;
239
487
  }
488
+ /**
489
+ * A message in an LLM tool-calling conversation.
490
+ */
491
+ interface LlmMessage {
492
+ role: 'system' | 'user' | 'assistant' | 'tool';
493
+ content: string;
494
+ /** Present on assistant messages that called tools. */
495
+ toolCalls?: ReadonlyArray<LlmToolCall>;
496
+ /** Present on tool-role messages — matches the preceding toolCall's id. */
497
+ toolCallId?: string;
498
+ }
499
+ /**
500
+ * A tool call requested by the assistant.
501
+ */
502
+ interface LlmToolCall {
503
+ id: string;
504
+ name: string;
505
+ /** JSON-encoded arguments string (as returned by the LLM). */
506
+ arguments: string;
507
+ }
508
+ /**
509
+ * A tool definition passed to llm/call-tools.
510
+ */
511
+ interface LlmToolDef {
512
+ name: string;
513
+ description: string;
514
+ /** JSON Schema describing the tool's parameters. */
515
+ parameters: JsonSchema;
516
+ }
517
+ /**
518
+ * Result of llm/call-tools.
519
+ */
520
+ interface LlmCallToolsResult {
521
+ /** The assistant's text response (may be empty when only tool_calls fired). */
522
+ content: string;
523
+ /** Tool calls the assistant requested, if any. */
524
+ toolCalls?: ReadonlyArray<LlmToolCall>;
525
+ /** Token usage from the call. */
526
+ usage: LlmTokenUsage;
527
+ }
528
+ /**
529
+ * Token usage from an LLM call.
530
+ */
531
+ interface LlmTokenUsage {
532
+ prompt: number;
533
+ completion: number;
534
+ total: number;
535
+ }
240
536
  /**
241
537
  * Result from agent/search-code.
242
538
  */
@@ -248,6 +544,79 @@ interface AgentCodeSearchResult {
248
544
  /** URL to the file */
249
545
  url: string;
250
546
  }
547
+ /** Result of behavior/instantiate (factory path) or subagent build. */
548
+ interface BuilderResult {
549
+ method: string;
550
+ orbitalName: string;
551
+ success: boolean;
552
+ orbitalPath?: string;
553
+ traitCount?: number;
554
+ traitNames?: string[];
555
+ transitionCount?: number;
556
+ childCount?: number;
557
+ error?: string;
558
+ }
559
+ /** Result of validate/validate for a single orbital or the composed schema. */
560
+ interface ValidateResult {
561
+ valid: boolean;
562
+ errorCount: number;
563
+ errors: ValidationError[];
564
+ orbitalName?: string;
565
+ }
566
+ /** Result of compose/compose-all. */
567
+ interface ComposeAllResult {
568
+ orbitalCount: number;
569
+ composedPath: string;
570
+ success: boolean;
571
+ layout?: string;
572
+ wiringConnections?: number;
573
+ }
574
+ /** Result of compose/compose-children (recursive builds). */
575
+ interface ComposeChildrenResult {
576
+ parentName: string;
577
+ childCount: number;
578
+ orbitalName: string;
579
+ success: boolean;
580
+ }
581
+ /** Result of the repair service. */
582
+ interface RepairResult {
583
+ orbitalName: string;
584
+ success: boolean;
585
+ attempt: number;
586
+ paramsChanged: boolean;
587
+ error?: string;
588
+ }
589
+ /** Result of lolo/emit-body (free-lolo path). */
590
+ interface LoloEmitResult {
591
+ orbitalName: string;
592
+ success: boolean;
593
+ loloSource: string;
594
+ error?: string;
595
+ }
596
+ /** Result of the planner service. */
597
+ interface PlannerResult {
598
+ organism: string;
599
+ operationCount: number;
600
+ pendingQuestions: boolean;
601
+ cached: boolean;
602
+ success: boolean;
603
+ error?: string;
604
+ }
605
+ /** Result of the executor (spawn-subagents). */
606
+ interface ExecutePlanResult {
607
+ dispatchedOrbitals: string[];
608
+ noopForBuild: boolean;
609
+ success: boolean;
610
+ error?: string;
611
+ }
612
+ /** Result of dispatch-updates. */
613
+ interface DispatchUpdatesResult {
614
+ updatedOrbitals: string[];
615
+ updateCount: number;
616
+ success: boolean;
617
+ }
618
+ /** Discriminated union of all substrate service-call results. */
619
+ type ServiceCallResult = BuilderResult | ValidateResult | ComposeAllResult | ComposeChildrenResult | RepairResult | LoloEmitResult | PlannerResult | ExecutePlanResult | DispatchUpdatesResult;
251
620
  /**
252
621
  * AgentContext is the runtime contract for agent/* operators.
253
622
  *
@@ -1837,254 +2206,6 @@ interface SnapshotCreatedEvent extends SSEEventBase {
1837
2206
  }
1838
2207
  type SSEEvent = StartEvent | MessageEvent | ToolCallEvent | ToolResultEvent | TodoUpdateEvent | TodoDetailEvent | FileOperationEvent | FileWrittenEvent | SchemaUpdateEvent | GenerationLogEvent | SubagentEvent | SubagentStartEvent | SubagentProgressEvent | SubagentCompleteEvent | InterruptEvent | ErrorEvent | CancelledEvent | CompleteEvent | AppCreatedEvent | SchemaPhaseValidatedEvent | SchemaPhaseUpdateEvent | OrbitalAddedEvent | OrbitalSchemaCompleteEvent | ProcessStartEvent | ProcessCompleteEvent | ProcessErrorEvent | ProcessRepairEvent | ProcessRepairCompleteEvent | ParamsRepairEmittedEvent | ChangesetRecordedEvent | SnapshotCreatedEvent;
1839
2208
 
1840
- /**
1841
- * Validation error types — the shape emitted by every
1842
- * `.orb` / `.lolo` validator pass.
1843
- *
1844
- * `ValidationError` is the wire shape: `{ code, path, message, suggestion? }`.
1845
- * `code` is `ValidationErrorCode`, which is an OPEN `string` to let the
1846
- * Rust validator emit new codes without an `@almadar/core` rev. The
1847
- * `KNOWN_VALIDATION_ERROR_CODES` const documents the codes currently
1848
- * emitted by the validator + lolo lower pipeline (extracted from
1849
- * `orbital-rust/crates/orbital-compiler/src/phases/validation/` +
1850
- * `orbital-rust/crates/orbital-lolo/src/`).
1851
- *
1852
- * Consumers that want to narrow a code to the closed known set use
1853
- * `KnownValidationErrorCode`:
1854
- *
1855
- * ```ts
1856
- * if (err.code in KNOWN_VALIDATION_ERROR_CODES) {
1857
- * // err.code is now narrowable to KnownValidationErrorCode for
1858
- * // exhaustive switch handling.
1859
- * }
1860
- * ```
1861
- *
1862
- * @packageDocumentation
1863
- */
1864
- /**
1865
- * One validation diagnostic emitted by the validator / lolo lower pipeline.
1866
- *
1867
- * - `code`: machine-readable identifier (see `KNOWN_VALIDATION_ERROR_CODES`).
1868
- * - `path`: JSON pointer-like path into the failing schema location,
1869
- * e.g. `'orbitals[0].traits[2].stateMachine.transitions[1].effects[0]'`.
1870
- * - `message`: human-readable description of the failure.
1871
- * - `suggestion`: optional hint the validator may add to help the
1872
- * author / LLM fix the issue.
1873
- */
1874
- interface ValidationError {
1875
- code: ValidationErrorCode;
1876
- path: string;
1877
- message: string;
1878
- suggestion?: string;
1879
- }
1880
- /**
1881
- * Validation error code — open `string` for forward-compat with the
1882
- * Rust validator's evolving code set. Narrow to the closed known set
1883
- * via `KnownValidationErrorCode` when exhaustive handling is needed.
1884
- */
1885
- type ValidationErrorCode = string;
1886
- /**
1887
- * The result of a single validator pass: a boolean verdict plus the errors
1888
- * and warnings (the validator wire shape, `ValidationError`).
1889
- *
1890
- * Distinct from `ValidationResults` (app.ts): that is the Firestore-persisted
1891
- * app-document shape keyed on `ValidationIssue` (with `severity` + array path
1892
- * + `validatedAt`). This `ValidationResult` is the in-process pass result keyed
1893
- * on `ValidationError` (code + JSON-pointer string path + `suggestion`).
1894
- * `ok === true` iff there are zero errors AND zero warnings.
1895
- */
1896
- interface ValidationResult {
1897
- ok: boolean;
1898
- errors: ValidationError[];
1899
- warnings: ValidationError[];
1900
- }
1901
- /**
1902
- * Closed set of validation codes the Rust validator + lolo lower
1903
- * pipeline currently emit. Source-tagged: codes are extracted from
1904
- * `orbital-rust/crates/orbital-compiler/src/phases/validation/**.rs`
1905
- * and `orbital-rust/crates/orbital-lolo/src/**.rs`. Keep this in sync
1906
- * with the Rust side; mismatches are caught by the Rust validator's
1907
- * own unit tests, which assert the emitted code-set matches an
1908
- * exported manifest.
1909
- *
1910
- * Categories (prefix → meaning):
1911
- * - `ORB_BINDING_*` — binding (`@entity.X`, `@payload.Y`, ...) issues
1912
- * - `ORB_E_*` / `ORB_EFF_*` / `ORB_EMIT_*` — entity / effect / emit
1913
- * - `ORB_GEN_*` — generic / cross-cutting structure
1914
- * - `ORB_O_*` / `ORB_P_*` / `ORB_S_*` / `ORB_SM_*` / `ORB_T_*` —
1915
- * orbital / page / schema / state-machine / trait
1916
- * - `ORB_QUERY_*` — query / search behaviors
1917
- * - `ORB_RUI_*` — render-UI binding + prop validation
1918
- * - `ORB_SLOT_*` — UI-slot conflict / contention
1919
- * - `ORB_SVC_*` / `ORB_UI_*` — service / UI primitives
1920
- * - `ORB_X_*` — cross-orbital constraints (listens, emits, IDs)
1921
- */
1922
- declare const KNOWN_VALIDATION_ERROR_CODES: {
1923
- readonly ORB_BINDING_ENTITY_FIELD_NEVER_SET: "ORB_BINDING_ENTITY_FIELD_NEVER_SET";
1924
- readonly ORB_BINDING_ENTITY_FIELD_NOT_FOUND: "ORB_BINDING_ENTITY_FIELD_NOT_FOUND";
1925
- readonly ORB_BINDING_INVALID_FIELD_NAME: "ORB_BINDING_INVALID_FIELD_NAME";
1926
- readonly ORB_BINDING_INVALID_FORMAT: "ORB_BINDING_INVALID_FORMAT";
1927
- readonly ORB_BINDING_INVALID_PATH: "ORB_BINDING_INVALID_PATH";
1928
- readonly ORB_BINDING_NOW_NO_PATH: "ORB_BINDING_NOW_NO_PATH";
1929
- readonly ORB_BINDING_PAYLOAD_FIELD_UNDECLARED: "ORB_BINDING_PAYLOAD_FIELD_UNDECLARED";
1930
- readonly ORB_BINDING_PAYLOAD_IN_TICK: "ORB_BINDING_PAYLOAD_IN_TICK";
1931
- readonly ORB_BINDING_PAYLOAD_TYPE_INCOMPATIBLE: "ORB_BINDING_PAYLOAD_TYPE_INCOMPATIBLE";
1932
- readonly ORB_BINDING_SET_TARGET_MISSING_PATH: "ORB_BINDING_SET_TARGET_MISSING_PATH";
1933
- readonly ORB_BINDING_STATE_NO_PATH: "ORB_BINDING_STATE_NO_PATH";
1934
- readonly ORB_BINDING_TRAIT_CYCLE: "ORB_BINDING_TRAIT_CYCLE";
1935
- readonly ORB_BINDING_TRAIT_INVALID_FORMAT: "ORB_BINDING_TRAIT_INVALID_FORMAT";
1936
- readonly ORB_BINDING_TRAIT_INVALID_POSITION: "ORB_BINDING_TRAIT_INVALID_POSITION";
1937
- readonly ORB_BINDING_TRAIT_MISSING_NAME: "ORB_BINDING_TRAIT_MISSING_NAME";
1938
- readonly ORB_BINDING_TRAIT_SELF_REFERENCE: "ORB_BINDING_TRAIT_SELF_REFERENCE";
1939
- readonly ORB_BINDING_TRAIT_UNKNOWN: "ORB_BINDING_TRAIT_UNKNOWN";
1940
- readonly ORB_BINDING_UNKNOWN_ENTITY: "ORB_BINDING_UNKNOWN_ENTITY";
1941
- readonly ORB_BINDING_UNKNOWN_ROOT: "ORB_BINDING_UNKNOWN_ROOT";
1942
- readonly ORB_E_DUPLICATE_FIELD: "ORB_E_DUPLICATE_FIELD";
1943
- readonly ORB_E_EMPTY_ENUM_VALUES: "ORB_E_EMPTY_ENUM_VALUES";
1944
- readonly ORB_E_INVALID_FIELD_NAME: "ORB_E_INVALID_FIELD_NAME";
1945
- readonly ORB_E_INVALID_FIELD_TYPE: "ORB_E_INVALID_FIELD_TYPE";
1946
- readonly ORB_E_INVALID_RELATION: "ORB_E_INVALID_RELATION";
1947
- readonly ORB_E_LITERAL_UNION_DEFAULT_MISMATCH: "ORB_E_LITERAL_UNION_DEFAULT_MISMATCH";
1948
- readonly ORB_E_MISSING_COLLECTION: "ORB_E_MISSING_COLLECTION";
1949
- readonly ORB_E_MISSING_NAME: "ORB_E_MISSING_NAME";
1950
- readonly ORB_E_NO_FIELDS: "ORB_E_NO_FIELDS";
1951
- readonly ORB_EFF_CALL_SERVICE_MISSING_ACTION: "ORB_EFF_CALL_SERVICE_MISSING_ACTION";
1952
- readonly ORB_EFF_CALL_SERVICE_MISSING_HANDLERS: "ORB_EFF_CALL_SERVICE_MISSING_HANDLERS";
1953
- readonly ORB_EFF_CALL_SERVICE_MISSING_SERVICE: "ORB_EFF_CALL_SERVICE_MISSING_SERVICE";
1954
- readonly ORB_EFF_EMIT_INVALID_NAME: "ORB_EFF_EMIT_INVALID_NAME";
1955
- readonly ORB_EFF_EMIT_KEY_INVALID: "ORB_EFF_EMIT_KEY_INVALID";
1956
- readonly ORB_EFF_EMIT_UNDECLARED_EVENT: "ORB_EFF_EMIT_UNDECLARED_EVENT";
1957
- readonly ORB_EFF_FETCH_INVALID_ENTITY: "ORB_EFF_FETCH_INVALID_ENTITY";
1958
- readonly ORB_EFF_FETCH_INVALID_INCLUDE: "ORB_EFF_FETCH_INVALID_INCLUDE";
1959
- readonly ORB_EFF_MISSING_FETCH_FOR_ENTITY: "ORB_EFF_MISSING_FETCH_FOR_ENTITY";
1960
- readonly ORB_EFF_MISSING_REQUIRED_EMIT: "ORB_EFF_MISSING_REQUIRED_EMIT";
1961
- readonly ORB_EFF_NAVIGATE_MISSING_PAYLOAD: "ORB_EFF_NAVIGATE_MISSING_PAYLOAD";
1962
- readonly ORB_EFF_NAVIGATE_TARGET_UNREACHABLE: "ORB_EFF_NAVIGATE_TARGET_UNREACHABLE";
1963
- readonly ORB_EFF_SET_INVALID_BINDING: "ORB_EFF_SET_INVALID_BINDING";
1964
- readonly ORB_EFF_SET_PAYLOAD_NOT_ALLOWED: "ORB_EFF_SET_PAYLOAD_NOT_ALLOWED";
1965
- readonly ORB_EFF_SLOT_CONFLICT: "ORB_EFF_SLOT_CONFLICT";
1966
- readonly ORB_EFF_UNKNOWN_TYPE: "ORB_EFF_UNKNOWN_TYPE";
1967
- readonly ORB_EMIT_DECLARED_BUT_UNFIRED: "ORB_EMIT_DECLARED_BUT_UNFIRED";
1968
- readonly ORB_EMIT_PAYLOAD_EXTRA_FIELD: "ORB_EMIT_PAYLOAD_EXTRA_FIELD";
1969
- readonly ORB_EMIT_PAYLOAD_FIELD_TYPE_MISMATCH: "ORB_EMIT_PAYLOAD_FIELD_TYPE_MISMATCH";
1970
- readonly ORB_EMIT_PAYLOAD_MISSING_REQUIRED: "ORB_EMIT_PAYLOAD_MISSING_REQUIRED";
1971
- readonly ORB_EMIT_SUCCESS_PAYLOAD_RETURN_MISMATCH: "ORB_EMIT_SUCCESS_PAYLOAD_RETURN_MISMATCH";
1972
- readonly ORB_GEN_DUPLICATE: "ORB_GEN_DUPLICATE";
1973
- readonly ORB_GEN_INVALID_REFERENCE: "ORB_GEN_INVALID_REFERENCE";
1974
- readonly ORB_GEN_INVALID_VALUE: "ORB_GEN_INVALID_VALUE";
1975
- readonly ORB_GEN_MISSING_FIELD: "ORB_GEN_MISSING_FIELD";
1976
- readonly ORB_O_MISSING_PAGES: "ORB_O_MISSING_PAGES";
1977
- readonly ORB_P_DUPLICATE_PATH: "ORB_P_DUPLICATE_PATH";
1978
- readonly ORB_P_EMPTY_TRAITS: "ORB_P_EMPTY_TRAITS";
1979
- readonly ORB_P_INVALID_PATH: "ORB_P_INVALID_PATH";
1980
- readonly ORB_P_INVALID_TRAIT_REF: "ORB_P_INVALID_TRAIT_REF";
1981
- readonly ORB_P_INVALID_VIEW_TYPE: "ORB_P_INVALID_VIEW_TYPE";
1982
- readonly ORB_P_MISSING_NAME: "ORB_P_MISSING_NAME";
1983
- readonly ORB_P_MISSING_PATH: "ORB_P_MISSING_PATH";
1984
- readonly ORB_P_MISSING_TRAITS: "ORB_P_MISSING_TRAITS";
1985
- readonly ORB_P_SECTIONS_FORBIDDEN: "ORB_P_SECTIONS_FORBIDDEN";
1986
- readonly ORB_QUERY_MISSING_RECOMMENDED: "ORB_QUERY_MISSING_RECOMMENDED";
1987
- readonly ORB_QUERY_MISSING_SEARCH: "ORB_QUERY_MISSING_SEARCH";
1988
- readonly ORB_QUERY_UNKNOWN_SINGLETON: "ORB_QUERY_UNKNOWN_SINGLETON";
1989
- readonly ORB_QUERY_UNSUPPORTED_PATTERN: "ORB_QUERY_UNSUPPORTED_PATTERN";
1990
- readonly ORB_QUERY_UNUSED_SINGLETON: "ORB_QUERY_UNUSED_SINGLETON";
1991
- readonly ORB_RUI_BINDING_TYPE_MISMATCH: "ORB_RUI_BINDING_TYPE_MISMATCH";
1992
- readonly ORB_RUI_ELEMENT_SHAPE_MISMATCH: "ORB_RUI_ELEMENT_SHAPE_MISMATCH";
1993
- readonly ORB_RUI_EVENT_BINDING_PAYLOAD_MISMATCH: "ORB_RUI_EVENT_BINDING_PAYLOAD_MISMATCH";
1994
- readonly ORB_RUI_INVALID_FIELD_PATH: "ORB_RUI_INVALID_FIELD_PATH";
1995
- readonly ORB_RUI_INVALID_ITEM_ACTION: "ORB_RUI_INVALID_ITEM_ACTION";
1996
- readonly ORB_RUI_INVALID_PATTERN: "ORB_RUI_INVALID_PATTERN";
1997
- readonly ORB_RUI_INVALID_PROP: "ORB_RUI_INVALID_PROP";
1998
- readonly ORB_RUI_INVALID_SLOT: "ORB_RUI_INVALID_SLOT";
1999
- readonly ORB_RUI_MISSING_ACTION: "ORB_RUI_MISSING_ACTION";
2000
- readonly ORB_RUI_MISSING_PATTERN_TYPE: "ORB_RUI_MISSING_PATTERN_TYPE";
2001
- readonly ORB_RUI_MISSING_REQUIRED_PROP: "ORB_RUI_MISSING_REQUIRED_PROP";
2002
- readonly ORB_RUI_PROP_TYPE_MISMATCH: "ORB_RUI_PROP_TYPE_MISMATCH";
2003
- readonly ORB_RUI_UNKNOWN_ITEM_ACTION_PROP: "ORB_RUI_UNKNOWN_ITEM_ACTION_PROP";
2004
- readonly ORB_S_EMPTY_VERSION: "ORB_S_EMPTY_VERSION";
2005
- readonly ORB_S_MISSING_NAME: "ORB_S_MISSING_NAME";
2006
- readonly ORB_S_NO_ORBITALS: "ORB_S_NO_ORBITALS";
2007
- readonly ORB_SLOT_CONTENTION: "ORB_SLOT_CONTENTION";
2008
- readonly ORB_SLOT_CONTENTION_RUNTIME: "ORB_SLOT_CONTENTION_RUNTIME";
2009
- readonly ORB_SLOT_HUD_NON_GAME: "ORB_SLOT_HUD_NON_GAME";
2010
- readonly ORB_SLOT_INVALID_NAME: "ORB_SLOT_INVALID_NAME";
2011
- readonly ORB_SLOT_INVALID_NESTING: "ORB_SLOT_INVALID_NESTING";
2012
- readonly ORB_SLOT_MAIN_NOT_COVERED: "ORB_SLOT_MAIN_NOT_COVERED";
2013
- readonly ORB_SLOT_PRIORITY_CONFLICT: "ORB_SLOT_PRIORITY_CONFLICT";
2014
- readonly ORB_SVC_DUPLICATE_NAME: "ORB_SVC_DUPLICATE_NAME";
2015
- readonly ORB_SVC_INVALID_INTEGRATOR: "ORB_SVC_INVALID_INTEGRATOR";
2016
- readonly ORB_SVC_INVALID_URL: "ORB_SVC_INVALID_URL";
2017
- readonly ORB_SVC_MISSING_BASE_URL: "ORB_SVC_MISSING_BASE_URL";
2018
- readonly ORB_SVC_MISSING_CAPABILITIES: "ORB_SVC_MISSING_CAPABILITIES";
2019
- readonly ORB_SVC_MISSING_EVENTS: "ORB_SVC_MISSING_EVENTS";
2020
- readonly ORB_SVC_MISSING_SERVER_PATH: "ORB_SVC_MISSING_SERVER_PATH";
2021
- readonly ORB_SVC_RESERVED_EVENT: "ORB_SVC_RESERVED_EVENT";
2022
- readonly ORB_SVC_UNKNOWN_TYPE: "ORB_SVC_UNKNOWN_TYPE";
2023
- readonly ORB_T_CONFIG_OBJECT_ARRAY_FORBIDDEN: "ORB_T_CONFIG_OBJECT_ARRAY_FORBIDDEN";
2024
- readonly ORB_T_CONFIG_SHAPE_MISMATCH: "ORB_T_CONFIG_SHAPE_MISMATCH";
2025
- readonly ORB_T_CONFIG_TIER_INVALID: "ORB_T_CONFIG_TIER_INVALID";
2026
- readonly ORB_T_DEPRECATED_UI: "ORB_T_DEPRECATED_UI";
2027
- readonly ORB_T_DUPLICATE_NAME: "ORB_T_DUPLICATE_NAME";
2028
- readonly ORB_T_DUPLICATE_STATE: "ORB_T_DUPLICATE_STATE";
2029
- readonly ORB_T_DUPLICATE_TRANSITION: "ORB_T_DUPLICATE_TRANSITION";
2030
- readonly ORB_T_ENTITY_NAME_SHADOWS_TRAIT_UNION: "ORB_T_ENTITY_NAME_SHADOWS_TRAIT_UNION";
2031
- readonly ORB_T_EVENT_TYPE_WRONG_KIND: "ORB_T_EVENT_TYPE_WRONG_KIND";
2032
- readonly ORB_T_EVT_DUPLICATE: "ORB_T_EVT_DUPLICATE";
2033
- readonly ORB_T_EVT_EXTERNAL_MISSING_PAYLOAD: "ORB_T_EVT_EXTERNAL_MISSING_PAYLOAD";
2034
- readonly ORB_T_EVT_INVALID_NAME: "ORB_T_EVT_INVALID_NAME";
2035
- readonly ORB_T_EVT_SCOPE_MISMATCH: "ORB_T_EVT_SCOPE_MISMATCH";
2036
- readonly ORB_T_EVT_TICK_UNDECLARED: "ORB_T_EVT_TICK_UNDECLARED";
2037
- readonly ORB_T_EVT_UNDECLARED: "ORB_T_EVT_UNDECLARED";
2038
- readonly ORB_T_INIT_MISSING_FETCH: "ORB_T_INIT_MISSING_FETCH";
2039
- readonly ORB_T_INVALID_CATEGORY: "ORB_T_INVALID_CATEGORY";
2040
- readonly ORB_T_INVALID_FORMAT: "ORB_T_INVALID_FORMAT";
2041
- readonly ORB_T_INVALID_PATTERN_DEFAULT: "ORB_T_INVALID_PATTERN_DEFAULT";
2042
- readonly ORB_T_INVALID_SLOT_DEFAULT: "ORB_T_INVALID_SLOT_DEFAULT";
2043
- readonly ORB_T_INVALID_TRANSITION: "ORB_T_INVALID_TRANSITION";
2044
- readonly ORB_T_MISSING_INIT_TRANSITION: "ORB_T_MISSING_INIT_TRANSITION";
2045
- readonly ORB_T_MISSING_RENDER_UI: "ORB_T_MISSING_RENDER_UI";
2046
- readonly ORB_T_MULTIPLE_INITIAL_STATES: "ORB_T_MULTIPLE_INITIAL_STATES";
2047
- readonly ORB_T_NO_INITIAL_STATE: "ORB_T_NO_INITIAL_STATE";
2048
- readonly ORB_T_TYPE_ANNOTATION_MISMATCH: "ORB_T_TYPE_ANNOTATION_MISMATCH";
2049
- readonly ORB_T_TYPE_COMPOSITION_CONFLICT: "ORB_T_TYPE_COMPOSITION_CONFLICT";
2050
- readonly ORB_T_TYPE_CYCLE: "ORB_T_TYPE_CYCLE";
2051
- readonly ORB_T_TYPE_KIND_MISMATCH: "ORB_T_TYPE_KIND_MISMATCH";
2052
- readonly ORB_T_TYPE_UNKNOWN: "ORB_T_TYPE_UNKNOWN";
2053
- readonly ORB_T_TYPE_UNKNOWN_PARAM: "ORB_T_TYPE_UNKNOWN_PARAM";
2054
- readonly ORB_T_TYPE_WRONG_ARG_COUNT: "ORB_T_TYPE_WRONG_ARG_COUNT";
2055
- readonly ORB_T_UNDEFINED_EVENT: "ORB_T_UNDEFINED_EVENT";
2056
- readonly ORB_T_UNDEFINED_TRAIT: "ORB_T_UNDEFINED_TRAIT";
2057
- readonly ORB_UI_ICON_EMPTY: "ORB_UI_ICON_EMPTY";
2058
- readonly ORB_UI_ICON_INVALID_FORMAT: "ORB_UI_ICON_INVALID_FORMAT";
2059
- readonly ORB_UI_ICON_NOT_FOUND: "ORB_UI_ICON_NOT_FOUND";
2060
- readonly ORB_X_CIRCULAR_DEPENDENCY: "ORB_X_CIRCULAR_DEPENDENCY";
2061
- readonly ORB_X_CROSS_EMITTER_DECLARED_PAYLOAD_MISMATCH: "ORB_X_CROSS_EMITTER_DECLARED_PAYLOAD_MISMATCH";
2062
- readonly ORB_X_DUPLICATE_ENTITY: "ORB_X_DUPLICATE_ENTITY";
2063
- readonly ORB_X_EVENT_COLLISION: "ORB_X_EVENT_COLLISION";
2064
- readonly ORB_X_INTERNAL_EVENT_EXPOSED: "ORB_X_INTERNAL_EVENT_EXPOSED";
2065
- readonly ORB_X_LISTEN_SOURCE_UNRESOLVED: "ORB_X_LISTEN_SOURCE_UNRESOLVED";
2066
- readonly ORB_X_MISSING_ORBITAL_NAME: "ORB_X_MISSING_ORBITAL_NAME";
2067
- readonly ORB_X_ORPHAN_LISTENER: "ORB_X_ORPHAN_LISTENER";
2068
- readonly ORB_X_PAYLOAD_MISMATCH: "ORB_X_PAYLOAD_MISMATCH";
2069
- readonly ORB_X_RENDER_UI_EVENT_LITERAL_STALE: "ORB_X_RENDER_UI_EVENT_LITERAL_STALE";
2070
- readonly ORB_X_UNRESOLVED_PATTERN_FIELD_REF: "ORB_X_UNRESOLVED_PATTERN_FIELD_REF";
2071
- readonly ORB_X_UNUSED_EMISSION: "ORB_X_UNUSED_EMISSION";
2072
- };
2073
- /**
2074
- * Narrow union of the codes documented in `KNOWN_VALIDATION_ERROR_CODES`.
2075
- * Use this in exhaustive `switch` handlers; use the broader
2076
- * `ValidationErrorCode` (open `string`) anywhere a fresh validator-side
2077
- * code could plausibly arrive.
2078
- */
2079
- type KnownValidationErrorCode = typeof KNOWN_VALIDATION_ERROR_CODES[keyof typeof KNOWN_VALIDATION_ERROR_CODES];
2080
- /**
2081
- * Type guard: is the given code a known one? After the guard returns
2082
- * true, the code can be narrowed to `KnownValidationErrorCode` via a
2083
- * separate cast, because the type system can't track `in` against
2084
- * `as const` records without an explicit narrowing helper.
2085
- */
2086
- declare function isKnownValidationErrorCode(code: ValidationErrorCode): boolean;
2087
-
2088
2209
  /**
2089
2210
  * Living Orbital Schema — Golden Data Structure type system.
2090
2211
  *
@@ -2461,4 +2582,4 @@ interface ParsedDesign {
2461
2582
  };
2462
2583
  }
2463
2584
 
2464
- export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, 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 BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type CompleteEvent, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, 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, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubLink, type HistoryMeta, 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, LogMeta, 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 Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, 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 ServiceContract, type ServiceEvents, ServiceParams, type SnapshotCreatedEvent, type SnapshotDocument, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, 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, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
2585
+ export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, 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 CompleteEvent, type ComposeAllResult, type ComposeChildrenResult, 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, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubLink, type HistoryMeta, 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 LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, 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 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 SnapshotCreatedEvent, type SnapshotDocument, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, 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, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };