@almadar/core 10.20.0 → 10.22.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 { z } from 'zod';
2
- import { S as SExpr, c as EventPayload, E as Expression } from './expression-BUIi9ezJ.js';
2
+ import { S as SExpr, b as EventPayload, d as Expression } from './expression-BVRFm0sV.js';
3
3
  import { AnyPatternConfig } from '@almadar/patterns';
4
4
 
5
5
  /**
@@ -6622,4 +6622,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
6622
6622
  } | undefined;
6623
6623
  }>]>;
6624
6624
 
6625
- export { CameraSchema as $, ANIMATION_NAMES as A, type Asset as B, type CallSiteConfig as C, type AssetAspect as D, type Effect as E, type FieldValue as F, AssetAspectSchema as G, type AssetCatalog as H, type AssetCatalogEntry as I, type AssetCatalogEntryInput as J, AssetCatalogEntrySchema as K, AssetCatalogSchema as L, type AssetDimension as M, AssetDimensionSchema 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, CAMERA_MODES as V, type CallServiceConfig as W, type CallServiceEffect as X, type Camera as Y, type CameraMode as Z, CameraModeSchema as _, type Trait as a, type PersistData as a$, type CheckpointLoadEffect as a0, type CheckpointSaveEffect as a1, ConfigFieldDeclarationSchema as a2, type DeclaredTraitConfig as a3, DeclaredTraitConfigSchema as a4, type DerefEffect as a5, type DespawnEffect as a6, type DoEffect as a7, ENTITY_ROLES as a8, type EffectInput as a9, type FieldFormat as aA, FieldFormatSchema as aB, FieldSchema as aC, type FieldType as aD, FieldTypeSchema as aE, type ForwardConfig as aF, type ForwardEffect 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_, EffectSchema as aa, type EmitConfig as ab, type EmitEffect as ac, type EntityData as ad, type EntityFieldContract as ae, EntityFieldContractSchema as af, type EntityFieldInput as ag, EntityFieldSchema as ah, EntityPersistenceSchema as ai, type EntityRole as aj, EntityRoleSchema as ak, EntitySchema as al, type EntityWith as am, type EnumEntityField as an, type EvaluateConfig as ao, type EvaluateEffect as ap, type Event as aq, type EventInput as ar, EventPayloadFieldSchema as as, EventSchema as at, type EventScope as au, EventScopeSchema as av, type FetchEffect as aw, type FetchOptions as ax, type FetchResult as ay, type Field as az, type RenderUIEffect as b, TraitDataEntitySchema as b$, type PersistEffect as b0, type PersistEmitConfig as b1, type PresentationType as b2, type RefEffect as b3, RelationConfigSchema as b4, type RelationEntityField as b5, type RenderItemLambda as b6, type RenderUINode as b7, type RequiredField as b8, RequiredFieldSchema as b9, SocketServiceDefSchema as bA, type SpawnEffect as bB, type SpriteDirection as bC, SpriteDirectionSchema as bD, type SpriteSheetAtlas as bE, type SpriteSheetAtlasInput as bF, SpriteSheetAtlasSchema as bG, type StateInput as bH, type StateMachine as bI, type StateMachineInput as bJ, StateMachineSchema as bK, StateSchema as bL, type SubTexture as bM, SubTextureSchema as bN, type SwapEffect as bO, type TextureAtlas as bP, TextureAtlasSchema as bQ, type Tilesheet as bR, TilesheetSchema as bS, type TrainConfig as bT, type TrainEffect as bU, type TraitCategory as bV, TraitCategorySchema as bW, TraitConfigSchema as bX, type TraitConfigValue as bY, TraitConfigValueSchema as bZ, type TraitDataEntity as b_, type ResolvedPatternProps as ba, type RestAuthConfig as bb, RestAuthConfigSchema as bc, type RestServiceDef as bd, RestServiceDefSchema as be, SERVICE_TYPES as bf, SPRITE_DIRECTIONS as bg, type ScalarEntityField as bh, type ScenePos as bi, ScenePosSchema as bj, type SemanticAssetRef as bk, type SemanticAssetRefInput as bl, SemanticAssetRefSchema as bm, ServiceDefinitionSchema as bn, type ServiceParams as bo, type ServiceParamsValue as bp, type ServiceRefObject as bq, ServiceRefObjectSchema as br, ServiceRefSchema as bs, ServiceRefStringSchema as bt, type ServiceType as bu, ServiceTypeSchema as bv, type SetEffect as bw, type SocketEvents as bx, SocketEventsSchema as by, type SocketServiceDef as bz, type TraitEventContract as c, type TraitEntityField as c0, TraitEntityFieldSchema as c1, TraitEventContractSchema as c2, TraitEventListenerSchema as c3, type TraitInput as c4, TraitRefSchema as c5, type TraitReferenceInput as c6, TraitReferenceSchema as c7, TraitSchema as c8, type TraitTick as c9, hasService as cA, isCallSiteConfigDeclaration as cB, isCircuitEvent as cC, isEffect as cD, isInlineTrait as cE, isMcpService as cF, isRestService as cG, isRuntimeEntity as cH, isSExprEffect as cI, isServiceReference as cJ, isServiceReferenceObject as cK, isSocketService as cL, navigate as cM, normalizeTraitRef as cN, notify as cO, parseAssetKey as cP, parseServiceRef as cQ, persist as cR, persistenceModeAllowsOverrides as cS, ref as cT, renderUI as cU, set as cV, spawn as cW, swap as cX, validateAssetAnimations as cY, watch as cZ, type TraitScope as c_, TraitTickSchema as ca, type TraitUIBinding as cb, type Transition as cc, type TransitionInput as cd, TransitionSchema as ce, type TypedEffect as cf, UISlotSchema as cg, UI_SLOTS as ch, VISUAL_STYLES as ci, type VisualStyle as cj, VisualStyleSchema as ck, type WatchEffect as cl, type WatchOptions as cm, atomic as cn, callService as co, createAssetKey as cp, deref as cq, deriveCollection as cr, despawn as cs, doEffects as ct, emit as cu, findService as cv, getDefaultAnimationsForRole as cw, getServiceNames as cx, getTraitConfig as cy, getTraitName as cz, type 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 CallSiteConfigEntry as p, type State as q, ASSET_ASPECTS as r, ASSET_DIMENSIONS as s, type AgentEffect as t, type AnimationDef as u, type AnimationDefInput as v, AnimationDefSchema as w, type AnimationName as x, AnimationNameSchema as y, type ArrayEntityField as z };
6625
+ export { EffectSchema as $, ANIMATION_NAMES as A, type AtomicEffect as B, type CallSiteConfig as C, CAMERA_MODES as D, type EntityField as E, type FieldValue as F, type CallServiceConfig as G, type CallServiceEffect as H, type Camera as I, type CameraMode as J, CameraModeSchema as K, CameraSchema as L, type CheckpointLoadEffect as M, type CheckpointSaveEffect as N, type ConfigFieldDeclaration as O, ConfigFieldDeclarationSchema as P, type DeclaredTraitConfig as Q, type RelationConfig as R, type State as S, type TraitEventListener as T, DeclaredTraitConfigSchema as U, type DerefEffect as V, type DespawnEffect as W, type DoEffect as X, ENTITY_ROLES as Y, type Effect as Z, type EffectInput as _, type EntityPersistence as a, type RenderUIEffect as a$, type EmitConfig as a0, type EmitEffect as a1, type Entity as a2, type EntityData as a3, type EntityFieldContract as a4, EntityFieldContractSchema as a5, type EntityFieldInput as a6, EntityFieldSchema as a7, EntityPersistenceSchema as a8, type EntityRole as a9, GuardSchema as aA, type ListenSource as aB, ListenSourceSchema as aC, type LogEffect as aD, type McpServiceDef as aE, McpServiceDefSchema as aF, type NavigateEffect as aG, type NnConfig as aH, type NnLayer as aI, type NotifyEffect as aJ, type OrbitalEntity as aK, type OrbitalEntityInput as aL, OrbitalEntitySchema as aM, type OrbitalTraitRef as aN, OrbitalTraitRefSchema as aO, type OsEffect as aP, type PayloadField as aQ, PayloadFieldSchema as aR, type PersistData as aS, type PersistEffect as aT, type PersistEmitConfig as aU, type PresentationType as aV, type RefEffect as aW, RelationConfigSchema as aX, type RelationEntityField as aY, type RenderBinding as aZ, type RenderItemLambda as a_, EntityRoleSchema as aa, EntitySchema as ab, type EntityWith as ac, type EnumEntityField as ad, type EvaluateConfig as ae, type EvaluateEffect as af, type Event as ag, type EventInput as ah, type EventPayloadField as ai, EventPayloadFieldSchema as aj, EventSchema as ak, type EventScope as al, EventScopeSchema as am, type FetchEffect as an, type FetchOptions as ao, type FetchResult as ap, type Field as aq, type FieldFormat as ar, FieldFormatSchema as as, FieldSchema as at, type FieldType as au, FieldTypeSchema as av, type ForwardConfig as aw, type ForwardEffect as ax, type Guard as ay, type GuardInput as az, type TraitReference as b, type TraitEventContract as b$, type RenderUINode as b0, type RequiredField as b1, RequiredFieldSchema as b2, type ResolvedPatternProps as b3, type RestAuthConfig as b4, RestAuthConfigSchema as b5, type RestServiceDef as b6, RestServiceDefSchema as b7, SERVICE_TYPES as b8, SPRITE_DIRECTIONS as b9, type SpriteSheetAtlasInput as bA, SpriteSheetAtlasSchema as bB, type StateInput as bC, type StateMachine as bD, type StateMachineInput as bE, StateMachineSchema as bF, StateSchema as bG, type SubTexture as bH, SubTextureSchema as bI, type SwapEffect as bJ, type TextureAtlas as bK, TextureAtlasSchema as bL, type Tilesheet as bM, TilesheetSchema as bN, type TrainConfig as bO, type TrainEffect as bP, type TraitCategory as bQ, TraitCategorySchema as bR, type TraitConfig as bS, type TraitConfigObject as bT, TraitConfigSchema as bU, type TraitConfigValue as bV, TraitConfigValueSchema as bW, type TraitDataEntity as bX, TraitDataEntitySchema as bY, type TraitEntityField as bZ, TraitEntityFieldSchema as b_, type ScalarEntityField as ba, type ScenePos as bb, ScenePosSchema as bc, type SemanticAssetRef as bd, type SemanticAssetRefInput as be, SemanticAssetRefSchema as bf, type ServiceDefinition as bg, ServiceDefinitionSchema as bh, type ServiceParams as bi, type ServiceParamsValue as bj, type ServiceRef as bk, type ServiceRefObject as bl, ServiceRefObjectSchema as bm, ServiceRefSchema as bn, ServiceRefStringSchema as bo, type ServiceType as bp, ServiceTypeSchema as bq, type SetEffect as br, type SocketEvents as bs, SocketEventsSchema as bt, type SocketServiceDef as bu, SocketServiceDefSchema as bv, type SpawnEffect as bw, type SpriteDirection as bx, SpriteDirectionSchema as by, type SpriteSheetAtlas as bz, type CallSiteConfigEntry as c, TraitEventContractSchema as c0, TraitEventListenerSchema as c1, type TraitInput as c2, type TraitRef as c3, TraitRefSchema as c4, type TraitReferenceInput as c5, TraitReferenceSchema as c6, TraitSchema as c7, type TraitTick as c8, TraitTickSchema as c9, hasService as cA, isCallSiteConfigDeclaration as cB, isCircuitEvent as cC, isEffect as cD, isInlineTrait as cE, isMcpService as cF, isRestService as cG, isRuntimeEntity as cH, isSExprEffect as cI, isServiceReference as cJ, isServiceReferenceObject as cK, isSocketService as cL, navigate as cM, normalizeTraitRef as cN, notify as cO, parseAssetKey as cP, parseServiceRef as cQ, persist as cR, persistenceModeAllowsOverrides as cS, ref as cT, renderUI as cU, set as cV, spawn as cW, swap as cX, validateAssetAnimations as cY, watch as cZ, type TraitScope as c_, type TraitUIBinding as ca, type Transition as cb, type TransitionInput as cc, TransitionSchema as cd, type TypedEffect as ce, type UISlot as cf, UISlotSchema as cg, UI_SLOTS as ch, VISUAL_STYLES as ci, type VisualStyle as cj, VisualStyleSchema as ck, type WatchEffect as cl, type WatchOptions as cm, atomic as cn, callService as co, createAssetKey as cp, deref as cq, deriveCollection as cr, despawn as cs, doEffects as ct, emit as cu, findService as cv, getDefaultAnimationsForRole as cw, getServiceNames as cx, getTraitConfig as cy, getTraitName as cz, type Trait as d, type EntityRow as e, ASSET_ASPECTS as f, ASSET_DIMENSIONS as g, type AgentEffect as h, type AnimationDef as i, type AnimationDefInput as j, AnimationDefSchema as k, type AnimationName as l, AnimationNameSchema as m, type ArrayEntityField as n, type Asset as o, type AssetAspect as p, AssetAspectSchema as q, type AssetCatalog as r, type AssetCatalogEntry as s, type AssetCatalogEntryInput as t, AssetCatalogEntrySchema as u, AssetCatalogSchema as v, type AssetDimension as w, AssetDimensionSchema as x, AssetSchema as y, type AssetUrl as z };
@@ -1,12 +1,12 @@
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
- import { d as EventPayloadValue, c as EventPayload, L as LogMeta, S as SExpr, b as EvalContext } from '../expression-BUIi9ezJ.js';
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';
1
+ import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-BjButZdb.js';
2
+ export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, E as DesignPreferencesSchema, F as DesignTokens, G as DesignTokensInput, H as DesignTokensSchema, I as DomainCategory, J as DomainCategorySchema, L as DomainContextInput, N as DomainContextSchema, P as DomainVocabulary, Q as DomainVocabularySchema, R as ElevationSlice, S as ElevationSliceSchema, T as ElevationTokens, U as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, X as EntityRef, Y as EntityRefSchema, Z as EntityRefStringSchema, _ as EntitySemanticRole, $ as EntitySemanticRoleSchema, a0 as EventListener, a1 as EventListenerSchema, a2 as EventSemanticRole, a3 as EventSemanticRoleSchema, a4 as EventSource, a5 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, ar as MotionDurationKey, as as MotionDurationKeySchema, at as MotionDurationPalette, au as MotionDurationPaletteSchema, av as MotionEasingKey, aw as MotionEasingKeySchema, ax as MotionEasingPalette, ay as MotionEasingPaletteSchema, az as MotionIntent, aA as MotionIntentMap, aB as MotionIntentMapSchema, aC as MotionIntentSchema, aD as MotionSlice, aE as MotionSliceSchema, aF as MotionTokens, aG as MotionTokensSchema, aH as NodeClassification, aI as NodeClassificationSchema, aJ as OrbitalConfig, aK as OrbitalConfigInput, aL as OrbitalConfigSchema, aM as OrbitalDefinitionSchema, aN as OrbitalInput, aO as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalSchemaInput, aU as OrbitalSchemaSchema, aV as OrbitalSchemaWithTraits, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, b5 as PageTraitRefSchema, b6 as RelatedLink, b7 as RelatedLinkSchema, b8 as SchemaMetadata, b9 as SchemaMetadataSchema, ba as SkinSpec, bb as SkinSpecSchema, bc as SpacingScale, bd as SpacingScaleSchema, be as StateSemanticRole, bf as StateSemanticRoleSchema, bg as SuggestedGuard, bh as SuggestedGuardSchema, bj as ThemeDefinitionSchema, bk as ThemeRef, bl as ThemeRefSchema, bm as ThemeRefStringSchema, bn as ThemeTokens, bo as ThemeTokensSchema, bp as ThemeVariant, bq as ThemeVariantSchema, br as TypeIntent, bs as TypeIntentMap, bt as TypeIntentMapSchema, bu as TypeIntentSchema, bv as TypeScale, bw as TypeScaleEntry, bx as TypeScaleEntrySchema, by as TypeScaleSchema, bz as TypeScaleTokens, bA as TypeScaleTokensSchema, bB as TypeSizeKey, bC as TypeSizeKeySchema, bD as TypeSlice, bE as TypeSliceSchema, bF as TypeSlot, bG as TypeSlotSchema, bH as TypeWeight, bI as TypeWeightSchema, bJ as UXHints, bK as UXHintsSchema, bL as UseDeclaration, bM as UseDeclarationSchema, bN as UserPersona, bO as UserPersonaInput, bP as UserPersonaSchema, bQ as ViewType, bR as ViewTypeSchema, bV as isEntityCall, bW as isEntityReference, bX as isEntityReferenceAny, bY as isImportedTraitRef, bZ as isOrbitalDefinition, b_ as isPageReference, b$ as isPageReferenceObject, c0 as isPageReferenceString, c1 as isThemeReference, c2 as parseEntityRef, c3 as parseImportedTraitRef, c4 as parseOrbitalSchema, c5 as parsePageRef, c6 as safeParseOrbitalSchema } from '../builders-BjButZdb.js';
3
+ import { E as EntityField, a as EntityPersistence, b as TraitReference, bi as ServiceParams, F as FieldValue, d as Trait, a2 as Entity, e as EntityRow, Q as DeclaredTraitConfig, bS as TraitConfig, Z as Effect, O as ConfigFieldDeclaration, S as State, cb as Transition, ag as Event, bV as TraitConfigValue, bQ as TraitCategory, c_ as TraitScope } from '../trait-Cs8Mrdw9.js';
4
+ export { A as ANIMATION_NAMES, f as ASSET_ASPECTS, g as ASSET_DIMENSIONS, h as AgentEffect, i as AnimationDef, j as AnimationDefInput, k as AnimationDefSchema, l as AnimationName, m as AnimationNameSchema, n as ArrayEntityField, o as Asset, p as AssetAspect, q as AssetAspectSchema, r as AssetCatalog, s as AssetCatalogEntry, t as AssetCatalogEntryInput, u as AssetCatalogEntrySchema, v as AssetCatalogSchema, w as AssetDimension, x as AssetDimensionSchema, y as AssetSchema, z as AssetUrl, B as AtomicEffect, D as CAMERA_MODES, G as CallServiceConfig, H as CallServiceEffect, C as CallSiteConfig, c as CallSiteConfigEntry, I as Camera, J as CameraMode, K as CameraModeSchema, L as CameraSchema, M as CheckpointLoadEffect, N as CheckpointSaveEffect, P as ConfigFieldDeclarationSchema, U as DeclaredTraitConfigSchema, V as DerefEffect, W as DespawnEffect, X as DoEffect, Y as ENTITY_ROLES, _ as EffectInput, $ as EffectSchema, a0 as EmitConfig, a1 as EmitEffect, a3 as EntityData, a4 as EntityFieldContract, a5 as EntityFieldContractSchema, a6 as EntityFieldInput, a7 as EntityFieldSchema, a8 as EntityPersistenceSchema, a9 as EntityRole, aa as EntityRoleSchema, ab as EntitySchema, ac as EntityWith, ad as EnumEntityField, ae as EvaluateConfig, af as EvaluateEffect, ah as EventInput, ai as EventPayloadField, aj as EventPayloadFieldSchema, ak as EventSchema, al as EventScope, am as EventScopeSchema, an as FetchEffect, ao as FetchOptions, ap as FetchResult, aq as Field, ar as FieldFormat, as as FieldFormatSchema, at as FieldSchema, au as FieldType, av as FieldTypeSchema, aw as ForwardConfig, ax as ForwardEffect, ay as Guard, az as GuardInput, aA as GuardSchema, aB as ListenSource, aC as ListenSourceSchema, aD as LogEffect, aE as McpServiceDef, aF as McpServiceDefSchema, aG as NavigateEffect, aH as NnConfig, aI as NnLayer, aJ as NotifyEffect, aK as OrbitalEntity, aL as OrbitalEntityInput, aM as OrbitalEntitySchema, aN as OrbitalTraitRef, aO as OrbitalTraitRefSchema, aP as OsEffect, aQ as PayloadField, aR as PayloadFieldSchema, aS as PersistData, aT as PersistEffect, aU as PersistEmitConfig, aV as PresentationType, aW as RefEffect, R as RelationConfig, aX as RelationConfigSchema, aY as RelationEntityField, aZ as RenderBinding, a_ as RenderItemLambda, a$ as RenderUIEffect, b0 as RenderUINode, b1 as RequiredField, b2 as RequiredFieldSchema, b3 as ResolvedPatternProps, b4 as RestAuthConfig, b5 as RestAuthConfigSchema, b6 as RestServiceDef, b7 as RestServiceDefSchema, b8 as SERVICE_TYPES, b9 as SPRITE_DIRECTIONS, ba as ScalarEntityField, bb as ScenePos, bc as ScenePosSchema, bd as SemanticAssetRef, be as SemanticAssetRefInput, bf as SemanticAssetRefSchema, bg as ServiceDefinition, bh as ServiceDefinitionSchema, bj as ServiceParamsValue, bk as ServiceRef, bl as ServiceRefObject, bm as ServiceRefObjectSchema, bn as ServiceRefSchema, bo as ServiceRefStringSchema, bp as ServiceType, bq as ServiceTypeSchema, br as SetEffect, bs as SocketEvents, bt as SocketEventsSchema, bu as SocketServiceDef, bv as SocketServiceDefSchema, bw as SpawnEffect, bx as SpriteDirection, by as SpriteDirectionSchema, bz as SpriteSheetAtlas, bA as SpriteSheetAtlasInput, bB as SpriteSheetAtlasSchema, bC as StateInput, bD as StateMachine, bE as StateMachineInput, bF as StateMachineSchema, bG as StateSchema, bH as SubTexture, bI as SubTextureSchema, bJ as SwapEffect, bK as TextureAtlas, bL as TextureAtlasSchema, bM as Tilesheet, bN as TilesheetSchema, bO as TrainConfig, bP as TrainEffect, bR as TraitCategorySchema, bT as TraitConfigObject, bU as TraitConfigSchema, bW as TraitConfigValueSchema, bX as TraitDataEntity, bY as TraitDataEntitySchema, bZ as TraitEntityField, b_ as TraitEntityFieldSchema, b$ as TraitEventContract, c0 as TraitEventContractSchema, T as TraitEventListener, c1 as TraitEventListenerSchema, c2 as TraitInput, c3 as TraitRef, c4 as TraitRefSchema, c5 as TraitReferenceInput, c6 as TraitReferenceSchema, c7 as TraitSchema, c8 as TraitTick, c9 as TraitTickSchema, ca as TraitUIBinding, cc as TransitionInput, cd as TransitionSchema, ce as TypedEffect, cf as UISlot, cg as UISlotSchema, ch as UI_SLOTS, ci as VISUAL_STYLES, cj as VisualStyle, ck as VisualStyleSchema, cl as WatchEffect, cm as WatchOptions, cn as atomic, co as callService, cp as createAssetKey, cq as deref, cr as deriveCollection, cs as despawn, ct as doEffects, cu as emit, cv as findService, cw as getDefaultAnimationsForRole, cx as getServiceNames, cy as getTraitConfig, cz as getTraitName, cA as hasService, cB as isCallSiteConfigDeclaration, cC as isCircuitEvent, cD as isEffect, cE as isInlineTrait, cF as isMcpService, cG as isRestService, cH as isRuntimeEntity, cI as isSExprEffect, cJ as isServiceReference, cK as isServiceReferenceObject, cL as isSocketService, cM as navigate, cN as normalizeTraitRef, cO as notify, cP as parseAssetKey, cQ as parseServiceRef, cR as persist, cS as persistenceModeAllowsOverrides, cT as ref, cU as renderUI, cV as set, cW as spawn, cX as swap, cY as validateAssetAnimations, cZ as watch } from '../trait-Cs8Mrdw9.js';
5
+ import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr, E as EvalContext } from '../expression-BVRFm0sV.js';
6
+ export { C as CORE_BINDINGS, a as CoreBinding, d as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-BVRFm0sV.js';
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
+ import { s as TraitOverlay, R as RuleOverlay, J as JsonValue, o as JsonSchema, n as JsonObject, T as ToolArgs, c as FactoryConfigTier } from '../types-DpBetrYc.js';
9
+ export { v as isJsonArray, w as isJsonObject, x as isJsonPrimitive } from '../types-DpBetrYc.js';
10
10
  import { AnyPatternConfig } from '@almadar/patterns';
11
11
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
12
12
 
@@ -423,6 +423,156 @@ type KnownValidationErrorCode = typeof KNOWN_VALIDATION_ERROR_CODES[keyof typeof
423
423
  */
424
424
  declare function isKnownValidationErrorCode(code: ValidationErrorCode): boolean;
425
425
 
426
+ /**
427
+ * Plan & Analysis Types
428
+ *
429
+ * Lifted from @almadar-io/rabit's coordinator types. These are the
430
+ * language-level contracts for the planner/analysis pipeline — the
431
+ * session/* and workspace/* substrate operators produce and consume
432
+ * these shapes. Defined here (not in rabit) so both the compiled path
433
+ * (orbital-rust codegen → @almadar/server) and the interpreted path
434
+ * (@almadar/runtime) reference the same types without depending on rabit.
435
+ *
436
+ * @packageDocumentation
437
+ */
438
+
439
+ type ClarificationLevel = 'organism' | 'molecule' | 'atom_trait';
440
+ interface ClarificationCandidate {
441
+ id: string;
442
+ label: string;
443
+ description: string;
444
+ whyThisFits: string;
445
+ }
446
+ interface Clarification {
447
+ level: ClarificationLevel;
448
+ scope: {
449
+ orbitalName?: string;
450
+ traitName?: string;
451
+ };
452
+ question: string;
453
+ candidates: ClarificationCandidate[];
454
+ skipDefault: string;
455
+ skippable: true;
456
+ }
457
+ interface AnalysisPageOverride {
458
+ name: string;
459
+ path?: string;
460
+ linkedEntity?: string;
461
+ traits?: PageTraitRef[];
462
+ }
463
+ interface ExtraTraitRef extends Pick<TraitReference, 'ref' | 'name' | 'linkedEntity' | 'config' | 'events' | 'listens' | 'emitsScope'> {
464
+ from: string;
465
+ as: string;
466
+ }
467
+ interface AnalysisOrbitalParams {
468
+ fields?: EntityField[];
469
+ pagePath?: string;
470
+ persistence?: EntityPersistence;
471
+ entityName?: string;
472
+ collection?: string;
473
+ traitOverrides?: Record<string, Pick<MakeTraitRefOpts, 'config' | 'linkedEntity' | 'events' | 'name' | 'emitsScope' | 'listens'>>;
474
+ extraTraits?: ExtraTraitRef[];
475
+ pages?: AnalysisPageOverride[];
476
+ }
477
+ interface AnalysisOrbital {
478
+ orbitalName: string;
479
+ suggestedBehavior: string | null;
480
+ entityName?: string;
481
+ pageNames?: ReadonlyArray<string>;
482
+ params?: AnalysisOrbitalParams;
483
+ traitOverlay?: TraitOverlay;
484
+ paletteTopics?: string[];
485
+ primitiveHints?: string[];
486
+ }
487
+ interface AnalysisRename {
488
+ oldName: string;
489
+ newName: string;
490
+ }
491
+ interface ComplexityAssessment {
492
+ score: number;
493
+ category: 'simple' | 'moderate' | 'complex';
494
+ reasoning: string;
495
+ detectedEntities?: string[];
496
+ detectedFeatures?: string[];
497
+ }
498
+ interface AnalysisResult {
499
+ userRequest: string;
500
+ complexity: ComplexityAssessment;
501
+ route: 'direct' | 'direct_with_questions' | 'decompose';
502
+ organism: string;
503
+ appName: string;
504
+ organismReason: string;
505
+ orbitals: AnalysisOrbital[];
506
+ renames?: AnalysisRename[];
507
+ deletedOrbitals?: string[];
508
+ ruleOverlay?: RuleOverlay;
509
+ estimatedMinutes?: number;
510
+ schema: OrbitalSchema;
511
+ wiring?: EventWiringEntry[];
512
+ layout?: LayoutStrategy | 'detect';
513
+ themeOverrides?: Partial<ThemeDefinition>;
514
+ pendingClarifications?: Clarification[];
515
+ }
516
+ interface SpawnResult {
517
+ orbitalName: string;
518
+ ok: boolean;
519
+ traitNames: ReadonlyArray<string>;
520
+ error?: string;
521
+ durationMs: number;
522
+ }
523
+ type PlanSnapshotStatus = 'proposed' | 'confirmed' | 'built' | 'failed';
524
+ interface PlanSnapshot {
525
+ schemaVersion: 1;
526
+ status: PlanSnapshotStatus;
527
+ builtAt: string;
528
+ organism: string | null;
529
+ appName: string | null;
530
+ organismReason: string | null;
531
+ complexity: ComplexityAssessment | null;
532
+ themeOverrides: Partial<ThemeDefinition>;
533
+ ruleOverlay: RuleOverlay | null;
534
+ orbitals: ReadonlyArray<AnalysisOrbital>;
535
+ renames: ReadonlyArray<AnalysisRename>;
536
+ deletedOrbitals: ReadonlyArray<string>;
537
+ priorBuiltOrbitals: ReadonlyArray<AnalysisOrbital>;
538
+ spawnedOrbitalResults: ReadonlyArray<SpawnResult>;
539
+ skippedOrbitalNames: ReadonlyArray<string>;
540
+ pendingClarifications: ReadonlyArray<Clarification>;
541
+ paletteTopics?: string[];
542
+ }
543
+ interface ComposeOptions {
544
+ appName?: string;
545
+ wiring?: EventWiringEntry[];
546
+ layout?: LayoutStrategy | 'auto';
547
+ themeOverrides?: Partial<ThemeDefinition>;
548
+ }
549
+ interface GitHubRepo {
550
+ id: number;
551
+ name: string;
552
+ full_name: string;
553
+ owner: {
554
+ login: string;
555
+ };
556
+ private: boolean;
557
+ html_url: string;
558
+ description: string | null;
559
+ default_branch: string;
560
+ clone_url: string;
561
+ }
562
+ interface GitHubIssue {
563
+ id: number;
564
+ number: number;
565
+ title: string;
566
+ body: string | null;
567
+ state: 'open' | 'closed';
568
+ html_url: string;
569
+ user: {
570
+ login: string;
571
+ };
572
+ created_at: string;
573
+ updated_at: string;
574
+ }
575
+
426
576
  /**
427
577
  * Agent Types
428
578
  *
@@ -617,6 +767,15 @@ interface DispatchUpdatesResult {
617
767
  }
618
768
  /** Discriminated union of all substrate service-call results. */
619
769
  type ServiceCallResult = BuilderResult | ValidateResult | ComposeAllResult | ComposeChildrenResult | RepairResult | LoloEmitResult | PlannerResult | ExecutePlanResult | DispatchUpdatesResult;
770
+ /** A single entry in an orbital's session history (build/conversation log). */
771
+ interface SessionHistoryEntry {
772
+ /** Role of the entry's author (e.g. 'user', 'assistant', 'system') */
773
+ role: string;
774
+ /** Entry content (natural language or structured description) */
775
+ content: string;
776
+ /** Epoch milliseconds when the entry was recorded */
777
+ timestamp: number;
778
+ }
620
779
  /**
621
780
  * AgentContext is the runtime contract for agent/* operators.
622
781
  *
@@ -651,6 +810,66 @@ interface AgentContext {
651
810
  label(text: string): void;
652
811
  searchCode(query: string, language?: string): Promise<AgentCodeSearchResult[]>;
653
812
  }
813
+ /** Backs the llm/* operators (6 ops). */
814
+ interface LlmContext {
815
+ generate(prompt: string, options?: {
816
+ json?: boolean;
817
+ maxTokens?: number;
818
+ provider?: string;
819
+ model?: string;
820
+ }): Promise<string>;
821
+ callTools(messages: LlmMessage[], tools: LlmToolDef[]): Promise<LlmCallToolsResult>;
822
+ embed(texts: string[]): Promise<number[][]>;
823
+ tokenCount(): number;
824
+ switchProvider(provider: string, model?: string): void;
825
+ compact(strategy?: string): Promise<{
826
+ before: number;
827
+ after: number;
828
+ }>;
829
+ }
830
+ /** Backs the workspace/* operators (11 ops). */
831
+ interface WorkspaceContext {
832
+ readOrbital(name: string): Promise<Orbital>;
833
+ writeOrbital(name: string, content: Orbital): Promise<void>;
834
+ readFile(path: string): Promise<string>;
835
+ writeFile(path: string, content: string): Promise<void>;
836
+ exists(path: string): boolean;
837
+ listOrbitals(): string[];
838
+ readSchema(): Promise<OrbitalSchema>;
839
+ writeSchema(schema: OrbitalSchema): Promise<void>;
840
+ readPlan(): Promise<PlanSnapshot>;
841
+ writePlan(plan: PlanSnapshot): Promise<void>;
842
+ archiveOrbital(name: string): Promise<void>;
843
+ }
844
+ /** Backs the session/* operators (9 ops). */
845
+ interface SessionContext {
846
+ readSpec(orbitalName: string): Promise<Orbital>;
847
+ writeSpec(orbitalName: string, spec: Orbital): Promise<void>;
848
+ readMemory(orbitalName: string): Promise<AgentMemoryRecord[]>;
849
+ writeMemory(orbitalName: string, memory: AgentMemoryRecord[]): Promise<void>;
850
+ readHistory(orbitalName: string): Promise<SessionHistoryEntry[]>;
851
+ appendHistory(orbitalName: string, entry: SessionHistoryEntry): Promise<void>;
852
+ readErrors(orbitalName: string): Promise<string[]>;
853
+ writeErrors(orbitalName: string, errors: string[]): Promise<void>;
854
+ readAnalysis(orbitalName: string): Promise<AnalysisResult>;
855
+ }
856
+ /** Backs the memory/* operators (3 ops). */
857
+ interface MemoryContext {
858
+ recall(query: string, limit?: number): AgentMemoryRecord[];
859
+ store(content: string, category?: string, strength?: number): Promise<string>;
860
+ list(category?: string): AgentMemoryRecord[];
861
+ }
862
+ /** Backs the trace/* operators (2 ops). */
863
+ interface TraceContext {
864
+ emit(event: string, payload?: EventPayloadValue): void;
865
+ log(message: string, level?: 'log' | 'warn' | 'error', data?: EventPayloadValue): void;
866
+ }
867
+ /** Backs the integration/* operators (3 ops). */
868
+ interface IntegrationContext {
869
+ http(method: string, url: string, body?: FieldValue, headers?: Record<string, string>): Promise<JsonValue>;
870
+ githubGetRepo(owner: string, repo: string): Promise<GitHubRepo>;
871
+ githubCreateIssue(owner: string, repo: string, title: string, body?: string): Promise<GitHubIssue>;
872
+ }
654
873
 
655
874
  /**
656
875
  * Interaction Model Types
@@ -2582,4 +2801,4 @@ interface ParsedDesign {
2582
2801
  };
2583
2802
  }
2584
2803
 
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 };
2804
+ export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LazyService, type LineageEntry, type ListInteraction, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, type RepairResult, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
@@ -1,4 +1,4 @@
1
- import { e as TraitEventListener, f as EntityField, g as EntityPersistence, j as TraitReference, k as RelationConfig } from './trait-BcRvHKLW.js';
1
+ import { T as TraitEventListener, E as EntityField, a as EntityPersistence, b as TraitReference, R as RelationConfig } from './trait-Cs8Mrdw9.js';
2
2
 
3
3
  /**
4
4
  * Cross-cutting presentation knobs that don't live per orbital
@@ -357,6 +357,18 @@ interface FactoryPageSignature {
357
357
  defaultPath: string;
358
358
  primaryEntity: string;
359
359
  }
360
+ /**
361
+ * Which coordinator surface may see this entry: `'app'` = pickable factory
362
+ * organism catalog, `'palette'` = free-lolo compose palette, `'both'`,
363
+ * `'internal'` = neither.
364
+ */
365
+ type FactoryExposure = 'app' | 'palette' | 'both' | 'internal';
366
+ /**
367
+ * `'generated'` = machine-emitted 1:1 wrapper (lolo-ui), `'authored'` =
368
+ * hand-authored (`.hand-authored.json` membership), `'promoted'` = landed
369
+ * through the cache-fill promotion pipeline.
370
+ */
371
+ type FactoryProvenance = 'generated' | 'authored' | 'promoted';
360
372
  interface FactorySignature {
361
373
  /** Organism the factory belongs to (e.g. `"std-realtime-chat"`). */
362
374
  organism: string;
@@ -397,6 +409,33 @@ interface FactorySignature {
397
409
  * back to a loose schema + post-hoc validation.
398
410
  */
399
411
  paramsSchema?: JsonSchema;
412
+ /**
413
+ * Which coordinator surface may see this entry: `'app'` = pickable
414
+ * factory organism catalog, `'palette'` = free-lolo compose palette,
415
+ * `'both'`, `'internal'` = neither. Stamped at generation time by
416
+ * `tools/almadar-pattern-sync` (std-ts) from the `.lolo` `@exposure`
417
+ * header tag with per-topic defaults; consumers treat a missing field
418
+ * as "pre-V3 signature" and fall back to their legacy filters. An
419
+ * entry may carry `'app'`/`'both'` only if its factory is registered
420
+ * in the package's dispatch registry — enforced at generation time.
421
+ */
422
+ exposure?: FactoryExposure;
423
+ /**
424
+ * `'generated'` = machine-emitted 1:1 wrapper (lolo-ui), `'authored'` =
425
+ * hand-authored (`.hand-authored.json` membership), `'promoted'` =
426
+ * landed through the cache-fill promotion pipeline.
427
+ */
428
+ provenance?: FactoryProvenance;
429
+ /**
430
+ * Deterministic hash of the ui-substrate surface the behavior composes,
431
+ * stamped for `authored`/`promoted` (blessed) entries: sha256 (16 hex
432
+ * chars) over the sorted union of the registry .orb's `uses[].from`
433
+ * basenames and each trait `ref`'s imported trait name. A substrate
434
+ * change (what the entry composes) flips it — drift against the current
435
+ * substrate flags the entry for review. Stamped by pattern-sync std-ts
436
+ * (`computeSubstrateSignature`); recomputed every generation run.
437
+ */
438
+ substrateSignature?: string;
400
439
  }
401
440
  /**
402
441
  * Aggregate catalog written to
@@ -460,4 +499,4 @@ type FactoryParamValue = string | number | boolean | ReadonlyArray<FactoryParamV
460
499
  readonly [key: string]: FactoryParamValue;
461
500
  };
462
501
 
463
- export { type FactoryCallSite as F, type JsonValue as J, type OwnershipOverlayEntry as O, type PresentationNavItem as P, type RuleOverlay as R, type SchemaFieldType as S, type ToolArgs as T, type FactoryCallSiteParams as a, type FactoryConfigParam as b, type FactoryConfigTier as c, type FactoryEntitySignature as d, type FactoryEventSignature as e, type FactoryPageSignature as f, type FactoryParamValue as g, type FactorySignature as h, type FactorySignatureCatalog as i, type FactorySignatureEntityField as j, type FactoryTraitSignature as k, type JsonObject as l, type JsonSchema as m, type JsonSchemaType as n, type PresentationOverlay as o, type RuleOverlayEntry as p, type TraitOverlay as q, type TraitOverlayEntry as r, type TraitOverlayListener as s, isJsonArray as t, isJsonObject as u, isJsonPrimitive as v };
502
+ export { type FactoryCallSite as F, type JsonValue as J, type OwnershipOverlayEntry as O, type PresentationNavItem as P, type RuleOverlay as R, type SchemaFieldType as S, type ToolArgs as T, type FactoryCallSiteParams as a, type FactoryConfigParam as b, type FactoryConfigTier as c, type FactoryEntitySignature as d, type FactoryEventSignature as e, type FactoryExposure as f, type FactoryPageSignature as g, type FactoryParamValue as h, type FactoryProvenance as i, type FactorySignature as j, type FactorySignatureCatalog as k, type FactorySignatureEntityField as l, type FactoryTraitSignature as m, type JsonObject as n, type JsonSchema as o, type JsonSchemaType as p, type PresentationOverlay as q, type RuleOverlayEntry as r, type TraitOverlay as s, type TraitOverlayEntry as t, type TraitOverlayListener as u, isJsonArray as v, isJsonObject as w, isJsonPrimitive as x };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/core",
3
- "version": "10.20.0",
3
+ "version": "10.22.0",
4
4
  "description": "Core schema types and definitions for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,119 +0,0 @@
1
- import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-BEL2Gr4v.js';
2
-
3
- /**
4
- * Event Wiring
5
- *
6
- * Applies cross-orbital event wiring to orbital definitions.
7
- * Adds emits/listens declarations to traits so they can communicate
8
- * across orbital boundaries.
9
- *
10
- * @packageDocumentation
11
- */
12
-
13
- /**
14
- * A single event wiring entry connecting two traits across orbitals.
15
- */
16
- interface EventWiringEntry {
17
- /** Source trait name or orbital name */
18
- from: string;
19
- /** Event name (UPPER_SNAKE_CASE) */
20
- event: string;
21
- /** Target trait name or orbital name */
22
- to: string;
23
- /** Event to trigger on the listener side */
24
- triggers: string;
25
- }
26
- /**
27
- * Apply event wiring to orbital definitions.
28
- *
29
- * For each wiring entry:
30
- * 1. Find the source trait and add an external emit (if not already present)
31
- * 2. Find the target trait and add an external listen (if not already present)
32
- *
33
- * Returns a new array of orbitals with wiring applied (deep-cloned).
34
- */
35
- declare function applyEventWiring(orbitals: OrbitalDefinition[], wiring: EventWiringEntry[]): OrbitalDefinition[];
36
-
37
- /**
38
- * Layout Strategy Detection
39
- *
40
- * Auto-detects the best layout strategy for a composed application
41
- * based on the number of orbitals and their event wiring topology.
42
- *
43
- * @packageDocumentation
44
- */
45
-
46
- /**
47
- * Layout strategy for the composed application.
48
- *
49
- * - 'single': One orbital, one page
50
- * - 'tabs': 2-4 orbitals with no sequential chain
51
- * - 'sidebar': 5+ orbitals (navigation-heavy)
52
- * - 'dashboard': Single page with all orbitals visible
53
- * - 'wizard-flow': Sequential event chain detected (A -> B -> C)
54
- */
55
- type LayoutStrategy = 'sidebar' | 'tabs' | 'dashboard' | 'wizard-flow' | 'single';
56
- /**
57
- * Detect the best layout strategy based on orbital count and event wiring.
58
- *
59
- * Heuristic:
60
- * 1. Sequential event chain detected -> 'wizard-flow'
61
- * 2. 1 orbital -> 'single'
62
- * 3. 2-4 orbitals -> 'tabs'
63
- * 4. 5+ orbitals -> 'sidebar'
64
- */
65
- declare function detectLayoutStrategy(orbitals: OrbitalDefinition[], eventWiring?: EventWiringEntry[]): LayoutStrategy;
66
-
67
- /**
68
- * Compose Behaviors
69
- *
70
- * Main entry point for composing multiple orbital definitions into
71
- * a single OrbitalSchema application. Handles event wiring, layout
72
- * strategy detection, and page generation.
73
- *
74
- * @packageDocumentation
75
- */
76
-
77
- /**
78
- * Input for composing behaviors into an application.
79
- */
80
- interface ComposeBehaviorsInput {
81
- /** Application name */
82
- appName: string;
83
- /** Orbital definitions (or schemas) to compose */
84
- orbitals: (OrbitalDefinition | OrbitalSchema)[];
85
- /** Layout strategy override, or 'auto' to detect */
86
- layoutStrategy?: LayoutStrategy | 'auto';
87
- /** Cross-orbital event wiring */
88
- eventWiring?: EventWiringEntry[];
89
- /** Optional entity name mappings (original -> renamed) */
90
- entityMappings?: Record<string, string>;
91
- }
92
- /**
93
- * Result of composing behaviors.
94
- */
95
- interface ComposeBehaviorsResult {
96
- /** The composed OrbitalSchema */
97
- schema: OrbitalSchema;
98
- /** Layout metadata */
99
- layout: {
100
- strategy: LayoutStrategy;
101
- pageCount: number;
102
- };
103
- /** Wiring metadata */
104
- wiring: {
105
- connections: number;
106
- };
107
- }
108
- /**
109
- * Compose multiple orbital definitions into a single application schema.
110
- *
111
- * Steps:
112
- * 1. Apply event wiring (adds emits/listens to traits)
113
- * 2. Detect or use provided layout strategy
114
- * 3. Generate pages based on the strategy
115
- * 4. Build the final OrbitalSchema
116
- */
117
- declare function composeBehaviors(input: ComposeBehaviorsInput): ComposeBehaviorsResult;
118
-
119
- export { type ComposeBehaviorsInput as C, type EventWiringEntry as E, type LayoutStrategy as L, type ComposeBehaviorsResult as a, applyEventWiring as b, composeBehaviors as c, detectLayoutStrategy as d };