@almadar/core 10.9.0 → 10.11.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,5 +1,5 @@
1
1
  import { E as Expression, S as SExpr } from './expression-BUIi9ezJ.js';
2
- import { T as TraitConfig, k as TraitConfigObject, S as ServiceRef, d as Entity, f as EntityField, g as EntityPersistence, i as TraitRef, l as EventPayloadField, m as ConfigFieldDeclaration, n as ServiceDefinition, a as Trait } from './trait-CWjT0yBO.js';
2
+ import { T as TraitConfig, l as TraitConfigObject, S as ServiceRef, d as Entity, f as EntityField, g as EntityPersistence, i as TraitRef, m as EventPayloadField, n as ConfigFieldDeclaration, o as ServiceDefinition, a as Trait } from './trait-BB1dc5A_.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -2926,7 +2926,17 @@ type CallSiteConfigEntry = TraitConfigValue | ConfigFieldDeclaration;
2926
2926
  type CallSiteConfig = Readonly<Record<string, CallSiteConfigEntry>>;
2927
2927
  /**
2928
2928
  * Type guard: returns `true` when `entry` is an annotated `ConfigFieldDeclaration`
2929
- * (has a `"type"` string key) rather than a plain wiring value.
2929
+ * (a config-field SCHEMA: a `"type"` string key AND a `"default"` value slot)
2930
+ * rather than a plain wiring value or a render value object.
2931
+ *
2932
+ * The `"default"` requirement disambiguates a declaration from a `render-ui`
2933
+ * VALUE object (e.g. `{ type: "tabs", items: "@entity.items", ... }`) that
2934
+ * coincidentally carries a UI-component `type` key — such a value has no
2935
+ * `default` slot and is a `TraitConfigValue`, not a schema declaration. Every
2936
+ * annotated config field lowered from `.lolo` carries a `default`; misreading a
2937
+ * render value as a declaration drops it straight into the `config` map where
2938
+ * Rust's `serde` rejects its inner fields (e.g. `items` is a binding string,
2939
+ * not a `FieldDefinition`).
2930
2940
  */
2931
2941
  declare function isCallSiteConfigDeclaration(entry: CallSiteConfigEntry): entry is ConfigFieldDeclaration;
2932
2942
  /**
@@ -6408,4 +6418,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
6408
6418
  } | undefined;
6409
6419
  }>]>;
6410
6420
 
6411
- export { type DeclaredTraitConfig as $, ASSET_ASPECTS as A, type AssetCatalogEntryInput as B, type CallSiteConfig as C, AssetCatalogEntrySchema as D, type Effect as E, AssetCatalogSchema as F, type AssetDimension as G, AssetDimensionSchema as H, type AssetMap as I, type AssetMapInput as J, AssetMapSchema as K, type AssetMapping as L, type AssetMappingInput as M, AssetMappingSchema as N, AssetSchema as O, type AssetUrl as P, type AtomicEffect as Q, type RenderBinding as R, type ServiceRef as S, type TraitConfig as T, type UISlot as U, type CallServiceConfig as V, type CallServiceEffect as W, type CallSiteConfigEntry as X, type CheckpointLoadEffect as Y, type CheckpointSaveEffect as Z, ConfigFieldDeclarationSchema as _, type Trait as a, type PersistData as a$, DeclaredTraitConfigSchema as a0, type DerefEffect as a1, type DespawnEffect as a2, type DoEffect as a3, ENTITY_ROLES as a4, type EffectInput as a5, EffectSchema as a6, type EmitConfig as a7, type EmitEffect as a8, type EntityData as a9, FieldTypeSchema as aA, type FieldValue as aB, type ForwardConfig as aC, type ForwardEffect as aD, GAME_TYPES as aE, type GameType as aF, GameTypeSchema as aG, type Guard as aH, type GuardInput as aI, GuardSchema as aJ, type ListenSource as aK, ListenSourceSchema as aL, type LogEffect as aM, type McpServiceDef as aN, McpServiceDefSchema as aO, type NavigateEffect as aP, type NnConfig as aQ, type NnLayer as aR, type NotifyEffect as aS, type OrbitalEntity as aT, type OrbitalEntityInput as aU, OrbitalEntitySchema as aV, type OrbitalTraitRef as aW, OrbitalTraitRefSchema as aX, type OsEffect as aY, type PayloadField as aZ, PayloadFieldSchema as a_, type EntityFieldContract as aa, EntityFieldContractSchema as ab, type EntityFieldInput as ac, EntityFieldSchema as ad, EntityPersistenceSchema as ae, type EntityRole as af, EntityRoleSchema as ag, EntitySchema as ah, type EntityWith as ai, type EnumEntityField as aj, type EvaluateConfig as ak, type EvaluateEffect as al, type Event as am, type EventInput as an, EventPayloadFieldSchema as ao, EventSchema as ap, type EventScope as aq, EventScopeSchema as ar, type FetchEffect as as, type FetchOptions as at, type FetchResult as au, type Field as av, type FieldFormat as aw, FieldFormatSchema as ax, FieldSchema as ay, type FieldType as az, type RenderUIEffect as b, TraitSchema as b$, type PersistEffect as b0, type PersistEmitConfig as b1, type PresentationType as b2, type RefEffect as b3, type RelationConfig as b4, RelationConfigSchema as b5, type RelationEntityField as b6, type RenderItemLambda as b7, type RenderUIConfig as b8, type RenderUINode as b9, SocketEventsSchema as bA, type SocketServiceDef as bB, SocketServiceDefSchema as bC, type SpawnEffect as bD, type StateInput as bE, type StateMachine as bF, type StateMachineInput as bG, StateMachineSchema as bH, StateSchema as bI, type SwapEffect as bJ, type TrainConfig as bK, type TrainEffect as bL, type TraitCategory as bM, TraitCategorySchema as bN, TraitConfigSchema as bO, type TraitConfigValue as bP, TraitConfigValueSchema as bQ, type TraitDataEntity as bR, TraitDataEntitySchema as bS, type TraitEntityField as bT, TraitEntityFieldSchema as bU, TraitEventContractSchema as bV, TraitEventListenerSchema as bW, type TraitInput as bX, TraitRefSchema as bY, type TraitReferenceInput as bZ, TraitReferenceSchema as b_, type RequiredField as ba, RequiredFieldSchema as bb, type ResolvedAsset as bc, type ResolvedAssetInput as bd, ResolvedAssetSchema as be, type ResolvedPatternProps as bf, type RestAuthConfig as bg, RestAuthConfigSchema as bh, type RestServiceDef as bi, RestServiceDefSchema as bj, SERVICE_TYPES as bk, type ScalarEntityField as bl, type SemanticAssetRef as bm, type SemanticAssetRefInput as bn, SemanticAssetRefSchema as bo, ServiceDefinitionSchema as bp, type ServiceParams as bq, type ServiceParamsValue as br, type ServiceRefObject as bs, ServiceRefObjectSchema as bt, ServiceRefSchema as bu, ServiceRefStringSchema as bv, type ServiceType as bw, ServiceTypeSchema as bx, type SetEffect as by, type SocketEvents as bz, type TraitEventContract as c, type TraitTick as c0, TraitTickSchema as c1, type TraitUIBinding as c2, type Transition as c3, type TransitionInput as c4, TransitionSchema as c5, type TypedEffect as c6, UISlotSchema as c7, UI_SLOTS as c8, VISUAL_STYLES as c9, isServiceReference as cA, isServiceReferenceObject as cB, isSingletonEntity as cC, isSocketService as cD, navigate as cE, normalizeTraitRef as cF, notify as cG, parseAssetKey as cH, parseServiceRef as cI, persist as cJ, ref as cK, renderUI as cL, set as cM, spawn as cN, swap as cO, validateAssetAnimations as cP, watch as cQ, type TraitScope as cR, type VisualStyle as ca, VisualStyleSchema as cb, type WatchEffect as cc, type WatchOptions as cd, atomic as ce, callService as cf, createAssetKey as cg, deref as ch, deriveCollection as ci, despawn as cj, doEffects as ck, emit as cl, findService as cm, getDefaultAnimationsForRole as cn, getServiceNames as co, getTraitConfig as cp, getTraitName as cq, hasService as cr, isCallSiteConfigDeclaration as cs, isCircuitEvent as ct, isEffect as cu, isInlineTrait as cv, isMcpService as cw, isRestService as cx, isRuntimeEntity as cy, isSExprEffect as cz, type Entity as d, type TraitEventListener as e, type EntityField as f, type EntityPersistence as g, type EntityRow as h, type TraitRef as i, type TraitReference as j, type TraitConfigObject as k, type EventPayloadField as l, type ConfigFieldDeclaration as m, type ServiceDefinition as n, type State as o, ASSET_DIMENSIONS as p, type AgentEffect as q, type AnimationDef as r, type AnimationDefInput as s, AnimationDefSchema as t, type ArrayEntityField as u, type Asset as v, type AssetAspect as w, AssetAspectSchema as x, type AssetCatalog as y, type AssetCatalogEntry as z };
6421
+ export { ConfigFieldDeclarationSchema as $, ASSET_ASPECTS as A, type AssetCatalogEntry as B, type CallSiteConfig as C, type AssetCatalogEntryInput as D, type Effect as E, AssetCatalogEntrySchema as F, AssetCatalogSchema as G, type AssetDimension as H, AssetDimensionSchema as I, type AssetMap as J, type AssetMapInput as K, AssetMapSchema as L, type AssetMapping as M, type AssetMappingInput as N, AssetMappingSchema as O, AssetSchema as P, type AssetUrl as Q, type RenderBinding as R, type ServiceRef as S, type TraitConfig as T, type UISlot as U, type AtomicEffect as V, type CallServiceConfig as W, type CallServiceEffect as X, type CallSiteConfigEntry as Y, type CheckpointLoadEffect as Z, type CheckpointSaveEffect as _, type Trait as a, PayloadFieldSchema as a$, type DeclaredTraitConfig as a0, DeclaredTraitConfigSchema as a1, type DerefEffect as a2, type DespawnEffect as a3, type DoEffect as a4, ENTITY_ROLES as a5, type EffectInput as a6, EffectSchema as a7, type EmitConfig as a8, type EmitEffect as a9, type FieldType as aA, FieldTypeSchema as aB, type FieldValue as aC, type ForwardConfig as aD, type ForwardEffect as aE, GAME_TYPES as aF, type GameType as aG, GameTypeSchema as aH, type Guard as aI, type GuardInput as aJ, GuardSchema as aK, type ListenSource as aL, ListenSourceSchema as aM, type LogEffect as aN, type McpServiceDef as aO, McpServiceDefSchema as aP, type NavigateEffect as aQ, type NnConfig as aR, type NnLayer as aS, type NotifyEffect as aT, type OrbitalEntity as aU, type OrbitalEntityInput as aV, OrbitalEntitySchema as aW, type OrbitalTraitRef as aX, OrbitalTraitRefSchema as aY, type OsEffect as aZ, type PayloadField as a_, type EntityData as aa, type EntityFieldContract as ab, EntityFieldContractSchema as ac, type EntityFieldInput as ad, EntityFieldSchema as ae, EntityPersistenceSchema as af, type EntityRole as ag, EntityRoleSchema as ah, EntitySchema as ai, type EntityWith as aj, type EnumEntityField as ak, type EvaluateConfig as al, type EvaluateEffect as am, type Event as an, type EventInput as ao, EventPayloadFieldSchema as ap, EventSchema as aq, type EventScope as ar, EventScopeSchema as as, type FetchEffect as at, type FetchOptions as au, type FetchResult as av, type Field as aw, type FieldFormat as ax, FieldFormatSchema as ay, FieldSchema as az, type RenderUIEffect as b, TraitSchema as b$, type PersistData as b0, type PersistEffect as b1, type PersistEmitConfig as b2, type PresentationType as b3, type RefEffect as b4, RelationConfigSchema as b5, type RelationEntityField as b6, type RenderItemLambda as b7, type RenderUIConfig as b8, type RenderUINode as b9, SocketEventsSchema as bA, type SocketServiceDef as bB, SocketServiceDefSchema as bC, type SpawnEffect as bD, type StateInput as bE, type StateMachine as bF, type StateMachineInput as bG, StateMachineSchema as bH, StateSchema as bI, type SwapEffect as bJ, type TrainConfig as bK, type TrainEffect as bL, type TraitCategory as bM, TraitCategorySchema as bN, TraitConfigSchema as bO, type TraitConfigValue as bP, TraitConfigValueSchema as bQ, type TraitDataEntity as bR, TraitDataEntitySchema as bS, type TraitEntityField as bT, TraitEntityFieldSchema as bU, TraitEventContractSchema as bV, TraitEventListenerSchema as bW, type TraitInput as bX, TraitRefSchema as bY, type TraitReferenceInput as bZ, TraitReferenceSchema as b_, type RequiredField as ba, RequiredFieldSchema as bb, type ResolvedAsset as bc, type ResolvedAssetInput as bd, ResolvedAssetSchema as be, type ResolvedPatternProps as bf, type RestAuthConfig as bg, RestAuthConfigSchema as bh, type RestServiceDef as bi, RestServiceDefSchema as bj, SERVICE_TYPES as bk, type ScalarEntityField as bl, type SemanticAssetRef as bm, type SemanticAssetRefInput as bn, SemanticAssetRefSchema as bo, ServiceDefinitionSchema as bp, type ServiceParams as bq, type ServiceParamsValue as br, type ServiceRefObject as bs, ServiceRefObjectSchema as bt, ServiceRefSchema as bu, ServiceRefStringSchema as bv, type ServiceType as bw, ServiceTypeSchema as bx, type SetEffect as by, type SocketEvents as bz, type TraitEventContract as c, type TraitTick as c0, TraitTickSchema as c1, type TraitUIBinding as c2, type Transition as c3, type TransitionInput as c4, TransitionSchema as c5, type TypedEffect as c6, UISlotSchema as c7, UI_SLOTS as c8, VISUAL_STYLES as c9, isServiceReference as cA, isServiceReferenceObject as cB, isSingletonEntity as cC, isSocketService as cD, navigate as cE, normalizeTraitRef as cF, notify as cG, parseAssetKey as cH, parseServiceRef as cI, persist as cJ, ref as cK, renderUI as cL, set as cM, spawn as cN, swap as cO, validateAssetAnimations as cP, watch as cQ, type TraitScope as cR, type VisualStyle as ca, VisualStyleSchema as cb, type WatchEffect as cc, type WatchOptions as cd, atomic as ce, callService as cf, createAssetKey as cg, deref as ch, deriveCollection as ci, despawn as cj, doEffects as ck, emit as cl, findService as cm, getDefaultAnimationsForRole as cn, getServiceNames as co, getTraitConfig as cp, getTraitName as cq, hasService as cr, isCallSiteConfigDeclaration as cs, isCircuitEvent as ct, isEffect as cu, isInlineTrait as cv, isMcpService as cw, isRestService as cx, isRuntimeEntity as cy, isSExprEffect as cz, type Entity as d, type TraitEventListener as e, type EntityField as f, type EntityPersistence as g, type EntityRow as h, type TraitRef as i, type TraitReference as j, type RelationConfig as k, type TraitConfigObject as l, type EventPayloadField as m, type ConfigFieldDeclaration as n, type ServiceDefinition as o, type State as p, ASSET_DIMENSIONS as q, type AgentEffect as r, type AnimationDef as s, type AnimationDefInput as t, AnimationDefSchema as u, type ArrayEntityField as v, type Asset as w, type AssetAspect as x, AssetAspectSchema as y, type AssetCatalog as z };
@@ -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-DAc5czBW.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-DAc5czBW.js';
3
- import { bq as ServiceParams, a as Trait, d as Entity, h as EntityRow, aB as FieldValue, $ as DeclaredTraitConfig, T as TraitConfig, E as Effect, m as ConfigFieldDeclaration, o as State, c3 as Transition, f as EntityField, am as Event, bP as TraitConfigValue, g as EntityPersistence, bM as TraitCategory, cR as TraitScope } from '../trait-CWjT0yBO.js';
4
- export { A as ASSET_ASPECTS, p as ASSET_DIMENSIONS, q as AgentEffect, r as AnimationDef, s as AnimationDefInput, t as AnimationDefSchema, u as ArrayEntityField, v as Asset, w as AssetAspect, x as AssetAspectSchema, y as AssetCatalog, z as AssetCatalogEntry, B as AssetCatalogEntryInput, D as AssetCatalogEntrySchema, F as AssetCatalogSchema, G as AssetDimension, H as AssetDimensionSchema, I as AssetMap, J as AssetMapInput, K as AssetMapSchema, L as AssetMapping, M as AssetMappingInput, N as AssetMappingSchema, O as AssetSchema, P as AssetUrl, Q as AtomicEffect, V as CallServiceConfig, W as CallServiceEffect, C as CallSiteConfig, X as CallSiteConfigEntry, Y as CheckpointLoadEffect, Z as CheckpointSaveEffect, _ as ConfigFieldDeclarationSchema, a0 as DeclaredTraitConfigSchema, a1 as DerefEffect, a2 as DespawnEffect, a3 as DoEffect, a4 as ENTITY_ROLES, a5 as EffectInput, a6 as EffectSchema, a7 as EmitConfig, a8 as EmitEffect, a9 as EntityData, aa as EntityFieldContract, ab as EntityFieldContractSchema, ac as EntityFieldInput, ad as EntityFieldSchema, ae as EntityPersistenceSchema, af as EntityRole, ag as EntityRoleSchema, ah as EntitySchema, ai as EntityWith, aj as EnumEntityField, ak as EvaluateConfig, al as EvaluateEffect, an as EventInput, l as EventPayloadField, ao as EventPayloadFieldSchema, ap as EventSchema, aq as EventScope, ar as EventScopeSchema, as as FetchEffect, at as FetchOptions, au as FetchResult, av as Field, aw as FieldFormat, ax as FieldFormatSchema, ay as FieldSchema, az as FieldType, aA as FieldTypeSchema, aC as ForwardConfig, aD as ForwardEffect, aE as GAME_TYPES, aF as GameType, aG as GameTypeSchema, 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, b4 as RelationConfig, b5 as RelationConfigSchema, b6 as RelationEntityField, R as RenderBinding, b7 as RenderItemLambda, b8 as RenderUIConfig, b as RenderUIEffect, b9 as RenderUINode, ba as RequiredField, bb as RequiredFieldSchema, bc as ResolvedAsset, bd as ResolvedAssetInput, be as ResolvedAssetSchema, bf as ResolvedPatternProps, bg as RestAuthConfig, bh as RestAuthConfigSchema, bi as RestServiceDef, bj as RestServiceDefSchema, bk as SERVICE_TYPES, bl as ScalarEntityField, bm as SemanticAssetRef, bn as SemanticAssetRefInput, bo as SemanticAssetRefSchema, n as ServiceDefinition, bp as ServiceDefinitionSchema, br as ServiceParamsValue, S as ServiceRef, bs as ServiceRefObject, bt as ServiceRefObjectSchema, bu as ServiceRefSchema, bv as ServiceRefStringSchema, bw as ServiceType, bx as ServiceTypeSchema, by as SetEffect, bz as SocketEvents, bA as SocketEventsSchema, bB as SocketServiceDef, bC as SocketServiceDefSchema, bD as SpawnEffect, bE as StateInput, bF as StateMachine, bG as StateMachineInput, bH as StateMachineSchema, bI as StateSchema, bJ as SwapEffect, bK as TrainConfig, bL as TrainEffect, bN as TraitCategorySchema, k as TraitConfigObject, bO as TraitConfigSchema, bQ as TraitConfigValueSchema, bR as TraitDataEntity, bS as TraitDataEntitySchema, bT as TraitEntityField, bU as TraitEntityFieldSchema, c as TraitEventContract, bV as TraitEventContractSchema, e as TraitEventListener, bW as TraitEventListenerSchema, bX as TraitInput, i as TraitRef, bY as TraitRefSchema, j as TraitReference, bZ as TraitReferenceInput, b_ as TraitReferenceSchema, b$ as TraitSchema, c0 as TraitTick, c1 as TraitTickSchema, c2 as TraitUIBinding, c4 as TransitionInput, c5 as TransitionSchema, c6 as TypedEffect, U as UISlot, c7 as UISlotSchema, c8 as UI_SLOTS, c9 as VISUAL_STYLES, ca as VisualStyle, cb as VisualStyleSchema, cc as WatchEffect, cd as WatchOptions, ce as atomic, cf as callService, cg as createAssetKey, ch as deref, ci as deriveCollection, cj as despawn, ck as doEffects, cl as emit, cm as findService, cn as getDefaultAnimationsForRole, co as getServiceNames, cp as getTraitConfig, cq as getTraitName, cr as hasService, cs as isCallSiteConfigDeclaration, ct as isCircuitEvent, cu as isEffect, cv as isInlineTrait, cw as isMcpService, cx as isRestService, cy as isRuntimeEntity, cz as isSExprEffect, cA as isServiceReference, cB as isServiceReferenceObject, cC as isSingletonEntity, cD as isSocketService, cE as navigate, cF as normalizeTraitRef, cG as notify, cH as parseAssetKey, cI as parseServiceRef, cJ as persist, cK as ref, cL as renderUI, cM as set, cN as spawn, cO as swap, cP as validateAssetAnimations, cQ as watch } from '../trait-CWjT0yBO.js';
1
+ import { O as OrbitalSchema, a7 as Orbital, b as Page, L as DomainContext, a as OrbitalDefinition, b0 as PageTraitRef } from '../schema-CtOoanon.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-CtOoanon.js';
3
+ import { bq as ServiceParams, a as Trait, d as Entity, h as EntityRow, aC as FieldValue, a0 as DeclaredTraitConfig, T as TraitConfig, E as Effect, n as ConfigFieldDeclaration, p as State, c3 as Transition, f as EntityField, an as Event, bP as TraitConfigValue, g as EntityPersistence, bM as TraitCategory, cR as TraitScope } from '../trait-BB1dc5A_.js';
4
+ export { A as ASSET_ASPECTS, q as ASSET_DIMENSIONS, r as AgentEffect, s as AnimationDef, t as AnimationDefInput, u as AnimationDefSchema, v as ArrayEntityField, w as Asset, x as AssetAspect, y as AssetAspectSchema, z as AssetCatalog, B as AssetCatalogEntry, D as AssetCatalogEntryInput, F as AssetCatalogEntrySchema, G as AssetCatalogSchema, H as AssetDimension, I as AssetDimensionSchema, J as AssetMap, K as AssetMapInput, L as AssetMapSchema, M as AssetMapping, N as AssetMappingInput, O as AssetMappingSchema, P as AssetSchema, Q as AssetUrl, V as AtomicEffect, W as CallServiceConfig, X as CallServiceEffect, C as CallSiteConfig, Y as CallSiteConfigEntry, Z as CheckpointLoadEffect, _ as CheckpointSaveEffect, $ as ConfigFieldDeclarationSchema, a1 as DeclaredTraitConfigSchema, a2 as DerefEffect, a3 as DespawnEffect, a4 as DoEffect, a5 as ENTITY_ROLES, a6 as EffectInput, a7 as EffectSchema, a8 as EmitConfig, a9 as EmitEffect, aa as EntityData, ab as EntityFieldContract, ac as EntityFieldContractSchema, ad as EntityFieldInput, ae as EntityFieldSchema, af as EntityPersistenceSchema, ag as EntityRole, ah as EntityRoleSchema, ai as EntitySchema, aj as EntityWith, ak as EnumEntityField, al as EvaluateConfig, am as EvaluateEffect, ao as EventInput, m as EventPayloadField, ap as EventPayloadFieldSchema, aq as EventSchema, ar as EventScope, as as EventScopeSchema, at as FetchEffect, au as FetchOptions, av as FetchResult, aw as Field, ax as FieldFormat, ay as FieldFormatSchema, az as FieldSchema, aA as FieldType, aB as FieldTypeSchema, aD as ForwardConfig, aE as ForwardEffect, aF as GAME_TYPES, aG as GameType, aH as GameTypeSchema, aI as Guard, aJ as GuardInput, aK as GuardSchema, aL as ListenSource, aM as ListenSourceSchema, aN as LogEffect, aO as McpServiceDef, aP as McpServiceDefSchema, aQ as NavigateEffect, aR as NnConfig, aS as NnLayer, aT as NotifyEffect, aU as OrbitalEntity, aV as OrbitalEntityInput, aW as OrbitalEntitySchema, aX as OrbitalTraitRef, aY as OrbitalTraitRefSchema, aZ as OsEffect, a_ as PayloadField, a$ as PayloadFieldSchema, b0 as PersistData, b1 as PersistEffect, b2 as PersistEmitConfig, b3 as PresentationType, b4 as RefEffect, k as RelationConfig, b5 as RelationConfigSchema, b6 as RelationEntityField, R as RenderBinding, b7 as RenderItemLambda, b8 as RenderUIConfig, b as RenderUIEffect, b9 as RenderUINode, ba as RequiredField, bb as RequiredFieldSchema, bc as ResolvedAsset, bd as ResolvedAssetInput, be as ResolvedAssetSchema, bf as ResolvedPatternProps, bg as RestAuthConfig, bh as RestAuthConfigSchema, bi as RestServiceDef, bj as RestServiceDefSchema, bk as SERVICE_TYPES, bl as ScalarEntityField, bm as SemanticAssetRef, bn as SemanticAssetRefInput, bo as SemanticAssetRefSchema, o as ServiceDefinition, bp as ServiceDefinitionSchema, br as ServiceParamsValue, S as ServiceRef, bs as ServiceRefObject, bt as ServiceRefObjectSchema, bu as ServiceRefSchema, bv as ServiceRefStringSchema, bw as ServiceType, bx as ServiceTypeSchema, by as SetEffect, bz as SocketEvents, bA as SocketEventsSchema, bB as SocketServiceDef, bC as SocketServiceDefSchema, bD as SpawnEffect, bE as StateInput, bF as StateMachine, bG as StateMachineInput, bH as StateMachineSchema, bI as StateSchema, bJ as SwapEffect, bK as TrainConfig, bL as TrainEffect, bN as TraitCategorySchema, l as TraitConfigObject, bO as TraitConfigSchema, bQ as TraitConfigValueSchema, bR as TraitDataEntity, bS as TraitDataEntitySchema, bT as TraitEntityField, bU as TraitEntityFieldSchema, c as TraitEventContract, bV as TraitEventContractSchema, e as TraitEventListener, bW as TraitEventListenerSchema, bX as TraitInput, i as TraitRef, bY as TraitRefSchema, j as TraitReference, bZ as TraitReferenceInput, b_ as TraitReferenceSchema, b$ as TraitSchema, c0 as TraitTick, c1 as TraitTickSchema, c2 as TraitUIBinding, c4 as TransitionInput, c5 as TransitionSchema, c6 as TypedEffect, U as UISlot, c7 as UISlotSchema, c8 as UI_SLOTS, c9 as VISUAL_STYLES, ca as VisualStyle, cb as VisualStyleSchema, cc as WatchEffect, cd as WatchOptions, ce as atomic, cf as callService, cg as createAssetKey, ch as deref, ci as deriveCollection, cj as despawn, ck as doEffects, cl as emit, cm as findService, cn as getDefaultAnimationsForRole, co as getServiceNames, cp as getTraitConfig, cq as getTraitName, cr as hasService, cs as isCallSiteConfigDeclaration, ct as isCircuitEvent, cu as isEffect, cv as isInlineTrait, cw as isMcpService, cx as isRestService, cy as isRuntimeEntity, cz as isSExprEffect, cA as isServiceReference, cB as isServiceReferenceObject, cC as isSingletonEntity, cD as isSocketService, cE as navigate, cF as normalizeTraitRef, cG as notify, cH as parseAssetKey, cI as parseServiceRef, cJ as persist, cK as ref, cL as renderUI, cM as set, cN as spawn, cO as swap, cP as validateAssetAnimations, cQ as watch } from '../trait-BB1dc5A_.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
8
  import { AnyPatternConfig } from '@almadar/patterns';
9
9
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
10
- import { c as FactoryConfigTier } from '../types-CQvAbsEc.js';
11
- export { l as JsonObject, J as JsonValue, T as ToolArgs, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-CQvAbsEc.js';
10
+ import { l as JsonObject, T as ToolArgs, J as JsonValue, c as FactoryConfigTier } from '../types-COc0mLs1.js';
11
+ export { t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-COc0mLs1.js';
12
12
 
13
13
  /**
14
14
  * S-Expression Bindings
@@ -1517,6 +1517,317 @@ interface OrbitalVerificationAPI {
1517
1517
  clearEventLog?: () => void;
1518
1518
  }
1519
1519
 
1520
+ /**
1521
+ * Canonical SSE event types for the Almadar agent wire.
1522
+ *
1523
+ * These events are emitted by the rabit runtime (internal package
1524
+ * `@almadar-io/rabit`) and consumed by public SDK clients. Because the rabit
1525
+ * package is private, the SDK-relevant subset of the event surface is hoisted
1526
+ * here into `@almadar/core` so public consumers can type their `onEvent`
1527
+ * callbacks without depending on a private package.
1528
+ *
1529
+ * Rules for this file:
1530
+ * - Use only types already exported by `@almadar/core`.
1531
+ * - Do not import from `@almadar-io/rabit` or any other private package.
1532
+ * - Keep the discriminated union exhaustive over the included event types.
1533
+ */
1534
+
1535
+ type SSEEventType = 'start' | 'message' | 'tool_call' | 'tool_result' | 'todo_update' | 'todo_detail' | 'file_operation' | 'file_written' | 'schema_update' | 'generation_log' | 'subagent_event' | 'subagent_start' | 'subagent_progress' | 'subagent_complete' | 'interrupt' | 'error' | 'cancelled' | 'complete' | 'app_created' | 'schema_phase_validated' | 'schema_phase_update' | 'orbital_added' | 'orbital_schema_complete' | 'process_start' | 'process_complete' | 'process_error' | 'process_repair' | 'process_repair_complete' | 'params_repair_emitted' | 'changeset_recorded' | 'snapshot_created';
1536
+ interface SSEEventBase {
1537
+ type: SSEEventType;
1538
+ timestamp: number;
1539
+ }
1540
+ interface StartEvent extends SSEEventBase {
1541
+ type: 'start';
1542
+ data: {
1543
+ threadId: string;
1544
+ skill: string;
1545
+ workDir: string;
1546
+ };
1547
+ }
1548
+ interface MessageEvent extends SSEEventBase {
1549
+ type: 'message';
1550
+ data: {
1551
+ content: string;
1552
+ role: 'assistant' | 'user' | 'system';
1553
+ isComplete: boolean;
1554
+ };
1555
+ }
1556
+ interface ToolCallEvent extends SSEEventBase {
1557
+ type: 'tool_call';
1558
+ data: {
1559
+ tool: string;
1560
+ args: ToolArgs;
1561
+ };
1562
+ }
1563
+ interface ToolResultEvent extends SSEEventBase {
1564
+ type: 'tool_result';
1565
+ data: {
1566
+ tool: string;
1567
+ result: JsonValue;
1568
+ success: boolean;
1569
+ };
1570
+ }
1571
+ interface TodoUpdateEvent extends SSEEventBase {
1572
+ type: 'todo_update';
1573
+ data: {
1574
+ todos: Array<{
1575
+ id: string;
1576
+ task: string;
1577
+ status: 'pending' | 'in_progress' | 'completed';
1578
+ }>;
1579
+ };
1580
+ }
1581
+ type TodoActivityType = 'thinking' | 'tool_call' | 'tool_result' | 'code_change';
1582
+ interface TodoDetailEvent extends SSEEventBase {
1583
+ type: 'todo_detail';
1584
+ data: {
1585
+ todoId: string;
1586
+ activityType: TodoActivityType;
1587
+ content: string;
1588
+ tool?: string;
1589
+ args?: ToolArgs;
1590
+ success?: boolean;
1591
+ filePath?: string;
1592
+ diff?: string;
1593
+ };
1594
+ }
1595
+ interface FileOperationEvent extends SSEEventBase {
1596
+ type: 'file_operation';
1597
+ data: {
1598
+ operation: 'ls' | 'read_file' | 'write_file' | 'edit_file';
1599
+ path: string;
1600
+ success: boolean;
1601
+ };
1602
+ }
1603
+ interface FileWrittenEvent extends SSEEventBase {
1604
+ type: 'file_written';
1605
+ data: {
1606
+ path: string;
1607
+ fileType: 'schema' | 'orbital' | 'memory' | 'domain' | 'other';
1608
+ orbitalName?: string;
1609
+ };
1610
+ }
1611
+ interface SchemaUpdateEvent extends SSEEventBase {
1612
+ type: 'schema_update';
1613
+ data: {
1614
+ appId: string;
1615
+ version: number;
1616
+ schema: OrbitalSchema;
1617
+ isNew: boolean;
1618
+ snapshotId?: string;
1619
+ changesetId?: string;
1620
+ };
1621
+ }
1622
+ interface GenerationLogEvent extends SSEEventBase {
1623
+ type: 'generation_log';
1624
+ data: {
1625
+ level: 'info' | 'warn' | 'error' | 'debug';
1626
+ message: string;
1627
+ data?: JsonObject;
1628
+ orbitalName?: string;
1629
+ };
1630
+ }
1631
+ interface SubagentEvent extends SSEEventBase {
1632
+ type: 'subagent_event';
1633
+ data: {
1634
+ orbitalName: string;
1635
+ orbitalIndex: number;
1636
+ totalOrbitals: number;
1637
+ event: {
1638
+ type: Exclude<SSEEventType, 'subagent_event'>;
1639
+ data: JsonObject;
1640
+ timestamp: number;
1641
+ };
1642
+ };
1643
+ }
1644
+ interface SubagentStartEvent extends SSEEventBase {
1645
+ type: 'subagent_start';
1646
+ data: {
1647
+ subagentId: string;
1648
+ name: string;
1649
+ role: string;
1650
+ orbitalName?: string;
1651
+ parentId?: string;
1652
+ task: string;
1653
+ };
1654
+ }
1655
+ interface SubagentProgressEvent extends SSEEventBase {
1656
+ type: 'subagent_progress';
1657
+ data: {
1658
+ subagentId: string;
1659
+ orbitalName?: string;
1660
+ message: string;
1661
+ toolCall?: {
1662
+ tool: string;
1663
+ argsPreview?: string;
1664
+ };
1665
+ };
1666
+ }
1667
+ interface SubagentCompleteEvent extends SSEEventBase {
1668
+ type: 'subagent_complete';
1669
+ data: {
1670
+ subagentId: string;
1671
+ orbitalName?: string;
1672
+ success: boolean;
1673
+ durationMs: number;
1674
+ summary?: string;
1675
+ };
1676
+ }
1677
+ interface InterruptEvent extends SSEEventBase {
1678
+ type: 'interrupt';
1679
+ data: {
1680
+ threadId: string;
1681
+ actionRequests: Array<{
1682
+ tool: string;
1683
+ args: ToolArgs;
1684
+ allowedDecisions: ('approve' | 'edit' | 'reject')[];
1685
+ description?: string;
1686
+ }>;
1687
+ };
1688
+ }
1689
+ interface ErrorEvent extends SSEEventBase {
1690
+ type: 'error';
1691
+ data: {
1692
+ error: string;
1693
+ code?: string;
1694
+ };
1695
+ }
1696
+ interface CancelledEvent extends SSEEventBase {
1697
+ type: 'cancelled';
1698
+ data: {
1699
+ threadId: string;
1700
+ message: string;
1701
+ };
1702
+ }
1703
+ interface CompleteEvent extends SSEEventBase {
1704
+ type: 'complete';
1705
+ data: {
1706
+ threadId: string;
1707
+ skill: string;
1708
+ workDir: string;
1709
+ schemaGenerated: boolean;
1710
+ appCompiled: boolean;
1711
+ schema?: OrbitalSchema;
1712
+ appId?: string;
1713
+ schemaPersisted?: boolean;
1714
+ snapshotId?: string;
1715
+ changesetId?: string;
1716
+ };
1717
+ }
1718
+ interface AppCreatedEvent extends SSEEventBase {
1719
+ type: 'app_created';
1720
+ data: {
1721
+ appId: string;
1722
+ name?: string;
1723
+ orbitalCount?: number;
1724
+ fromOrbitalPersistence?: boolean;
1725
+ };
1726
+ }
1727
+ interface SchemaPhaseValidatedEvent extends SSEEventBase {
1728
+ type: 'schema_phase_validated';
1729
+ data: {
1730
+ appId: string;
1731
+ success: boolean;
1732
+ errors?: JsonValue[];
1733
+ };
1734
+ }
1735
+ interface SchemaPhaseUpdateEvent extends SSEEventBase {
1736
+ type: 'schema_phase_update';
1737
+ data: JsonObject;
1738
+ }
1739
+ interface OrbitalAddedEvent extends SSEEventBase {
1740
+ type: 'orbital_added';
1741
+ data: {
1742
+ appId: string;
1743
+ orbitalName: string;
1744
+ orbitalIndex: number;
1745
+ totalOrbitals: number;
1746
+ isNew?: boolean;
1747
+ orbitalSchema?: OrbitalDefinition;
1748
+ };
1749
+ }
1750
+ interface OrbitalSchemaCompleteEvent extends SSEEventBase {
1751
+ type: 'orbital_schema_complete';
1752
+ data: {
1753
+ appId: string;
1754
+ totalOrbitals: number;
1755
+ orbitalNames: string[];
1756
+ };
1757
+ }
1758
+ interface ProcessStartEvent extends SSEEventBase {
1759
+ type: 'process_start';
1760
+ data: {
1761
+ orbitalName: string;
1762
+ method: 'deterministic' | 'llm';
1763
+ behavior?: string;
1764
+ };
1765
+ }
1766
+ interface ProcessCompleteEvent extends SSEEventBase {
1767
+ type: 'process_complete';
1768
+ data: {
1769
+ orbitalName: string;
1770
+ method: 'deterministic' | 'llm';
1771
+ traitCount?: number;
1772
+ transitionCount?: number;
1773
+ duration?: number;
1774
+ };
1775
+ }
1776
+ interface ProcessErrorEvent extends SSEEventBase {
1777
+ type: 'process_error';
1778
+ data: {
1779
+ orbitalName: string;
1780
+ method: 'deterministic' | 'llm';
1781
+ error: string;
1782
+ };
1783
+ }
1784
+ interface ProcessRepairEvent extends SSEEventBase {
1785
+ type: 'process_repair';
1786
+ data: {
1787
+ orbitalName: string;
1788
+ errorCount: number;
1789
+ attempt: number;
1790
+ };
1791
+ }
1792
+ interface ProcessRepairCompleteEvent extends SSEEventBase {
1793
+ type: 'process_repair_complete';
1794
+ data: {
1795
+ orbitalName: string;
1796
+ };
1797
+ }
1798
+ interface ParamsRepairEmittedEvent extends SSEEventBase {
1799
+ type: 'params_repair_emitted';
1800
+ data: {
1801
+ orbitalName: string;
1802
+ attempt: number;
1803
+ };
1804
+ }
1805
+ interface ChangesetRecordedEvent extends SSEEventBase {
1806
+ type: 'changeset_recorded';
1807
+ data: {
1808
+ appId: string;
1809
+ changesetId: string;
1810
+ version: number;
1811
+ trackingMode: 'initial' | 'update';
1812
+ summary: {
1813
+ added: number;
1814
+ modified: number;
1815
+ removed: number;
1816
+ };
1817
+ source?: string;
1818
+ };
1819
+ }
1820
+ interface SnapshotCreatedEvent extends SSEEventBase {
1821
+ type: 'snapshot_created';
1822
+ data: {
1823
+ appId: string;
1824
+ snapshotId: string;
1825
+ version: number;
1826
+ reason: string;
1827
+ };
1828
+ }
1829
+ 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;
1830
+
1520
1831
  /**
1521
1832
  * Validation error types — the shape emitted by every
1522
1833
  * `.orb` / `.lolo` validator pass.
@@ -2141,4 +2452,4 @@ interface ParsedDesign {
2141
2452
  };
2142
2453
  }
2143
2454
 
2144
- export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnnotationTier, 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 CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetValue, type CheckStatus, 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, EvalContext, Event, type EventEmit, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, FieldValue, Orbital as FullOrbitalUnit, type GateState, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, 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, Orbital, OrbitalDefinition, OrbitalSchema, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, 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 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 SaveOptions, type SaveResult, type SchemaChange, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, ServiceParams, type SnapshotDocument, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, 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 };
2455
+ 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 };
@@ -528,7 +528,7 @@ var TraitConfigValueSchema = z.lazy(
528
528
  );
529
529
  var TraitConfigSchema = z.record(TraitConfigValueSchema);
530
530
  function isCallSiteConfigDeclaration(entry) {
531
- return typeof entry === "object" && entry !== null && !Array.isArray(entry) && "type" in entry && typeof entry.type === "string";
531
+ return typeof entry === "object" && entry !== null && !Array.isArray(entry) && "type" in entry && typeof entry.type === "string" && "default" in entry;
532
532
  }
533
533
  var ConfigFieldDeclarationSchema = z.object({
534
534
  type: z.string(),