@almadar/core 10.4.0 → 10.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-JNr7Yzww.js';
1
+ import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-Cq9DUnFw.js';
2
2
 
3
3
  /**
4
4
  * Event Wiring
@@ -227,4 +227,4 @@ interface LogMeta {
227
227
  [key: string]: LogMetaValue;
228
228
  }
229
229
 
230
- export { CORE_BINDINGS as C, type EvalContext as E, type LogMeta as L, type ParsedBinding as P, type SExpr as S, type CoreBinding as a, type EventPayload as b, type EventPayloadValue as c, type Expression as d, type ExpressionInput as e, ExpressionSchema as f, type SExprAtom as g, SExprAtomSchema as h, type SExprInput as i, SExprSchema as j, collectBindings as k, getArgs as l, getOperator as m, isBinding as n, isSExpr as o, isSExprAtom as p, isSExprCall as q, isValidBinding as r, parseBinding as s, sexpr as t, walkSExpr as w };
230
+ export { CORE_BINDINGS as C, type Expression as E, type LogMeta as L, type ParsedBinding as P, type SExpr as S, type CoreBinding as a, type EvalContext as b, type EventPayload as c, type EventPayloadValue as d, type ExpressionInput as e, ExpressionSchema as f, type SExprAtom as g, SExprAtomSchema as h, type SExprInput as i, SExprSchema as j, collectBindings as k, getArgs as l, getOperator as m, isBinding as n, isSExpr as o, isSExprAtom as p, isSExprCall as q, isValidBinding as r, parseBinding as s, sexpr as t, walkSExpr as w };
@@ -1,8 +1,8 @@
1
- import { g as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, h as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, q as TraitOverlay } from '../types-CVzLocjv.js';
2
- export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, l as JsonSchema, m as JsonSchemaType, n as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, r as TraitOverlayEntry, s as TraitOverlayListener } from '../types-CVzLocjv.js';
3
- import { g as EntityPersistence, f as EntityField, j as TraitReference } from '../trait-C7cTBoi5.js';
1
+ import { g as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, h as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, q as TraitOverlay } from '../types-CdXuGm8S.js';
2
+ export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, m as JsonSchema, n as JsonSchemaType, J as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, r as TraitOverlayEntry, s as TraitOverlayListener } from '../types-CdXuGm8S.js';
3
+ import { g as EntityPersistence, f as EntityField, j as TraitReference } from '../trait-BsnLnedq.js';
4
4
  import 'zod';
5
- import '../expression-BVRFm0sV.js';
5
+ import '../expression-BUIi9ezJ.js';
6
6
  import '@almadar/patterns';
7
7
 
8
8
  /**
package/dist/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-JNr7Yzww.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, L as DomainContext, 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, a7 as FullOrbitalUnit, 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, a7 as Orbital, 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, b as Page, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b0 as PageTraitRef, 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-JNr7Yzww.js';
3
- import { S as State } from './trait-C7cTBoi5.js';
4
- export { A as AgentEffect, k as AnimationDef, l as AnimationDefInput, m as AnimationDefSchema, n as ArrayEntityField, o as AssetCatalog, p as AssetCatalogEntry, q as AssetCatalogEntryInput, r as AssetCatalogEntrySchema, s as AssetCatalogSchema, t as AssetMap, u as AssetMapInput, v as AssetMapSchema, w as AssetMapping, x as AssetMappingInput, y as AssetMappingSchema, z as AssetUrl, B as AtomicEffect, C as CallServiceConfig, D as CallServiceEffect, F as CheckpointLoadEffect, G as CheckpointSaveEffect, H as ConfigFieldDeclaration, I as ConfigFieldDeclarationSchema, J as DeclaredTraitConfig, K as DeclaredTraitConfigSchema, L as DerefEffect, M as DespawnEffect, N as DoEffect, O as ENTITY_ROLES, E as Effect, P as EffectInput, Q as EffectSchema, V as EmitConfig, W as EmitEffect, d as Entity, X as EntityData, f as EntityField, Y as EntityFieldContract, Z as EntityFieldContractSchema, _ as EntityFieldInput, $ as EntityFieldSchema, g as EntityPersistence, a0 as EntityPersistenceSchema, a1 as EntityRole, a2 as EntityRoleSchema, h as EntityRow, a3 as EntitySchema, a4 as EntityWith, a5 as EnumEntityField, a6 as EvaluateConfig, a7 as EvaluateEffect, a8 as Event, a9 as EventInput, aa as EventPayloadField, ab as EventPayloadFieldSchema, ac as EventSchema, ad as EventScope, ae as EventScopeSchema, af as FetchEffect, ag as FetchOptions, ah as FetchResult, ai as Field, aj as FieldFormat, ak as FieldFormatSchema, al as FieldSchema, am as FieldType, an as FieldTypeSchema, ao as FieldValue, ap as ForwardConfig, aq as ForwardEffect, ar as GAME_TYPES, as as GameType, at as GameTypeSchema, au as Guard, av as GuardInput, aw as GuardSchema, ax as ListenSource, ay as ListenSourceSchema, az as LogEffect, aA as McpServiceDef, aB as McpServiceDefSchema, aC as NavigateEffect, aD as NnConfig, aE as NnLayer, aF as NotifyEffect, aG as OrbitalEntity, aH as OrbitalEntityInput, aI as OrbitalEntitySchema, aJ as OrbitalTraitRef, aK as OrbitalTraitRefSchema, aL as OsEffect, aM as PayloadField, aN as PayloadFieldSchema, aO as PersistData, aP as PersistEffect, aQ as PersistEmitConfig, aR as PresentationType, aS as RefEffect, aT as RelationConfig, aU as RelationConfigSchema, aV as RelationEntityField, R as RenderBinding, aW as RenderItemLambda, aX as RenderUIConfig, b as RenderUIEffect, aY as RenderUINode, aZ as RequiredField, a_ as RequiredFieldSchema, a$ as ResolvedAsset, b0 as ResolvedAssetInput, b1 as ResolvedAssetSchema, b2 as ResolvedPatternProps, b3 as RestAuthConfig, b4 as RestAuthConfigSchema, b5 as RestServiceDef, b6 as RestServiceDefSchema, b7 as SERVICE_TYPES, b8 as ScalarEntityField, b9 as SemanticAssetRef, ba as SemanticAssetRefInput, bb as SemanticAssetRefSchema, bc as ServiceDefinition, bd as ServiceDefinitionSchema, be as ServiceParams, bf as ServiceParamsValue, bg as ServiceRef, bh as ServiceRefObject, bi as ServiceRefObjectSchema, bj as ServiceRefSchema, bk as ServiceRefStringSchema, bl as ServiceType, bm as ServiceTypeSchema, bn as SetEffect, bo as SocketEvents, bp as SocketEventsSchema, bq as SocketServiceDef, br as SocketServiceDefSchema, bs as SpawnEffect, bt as StateInput, bu as StateMachine, bv as StateMachineInput, bw as StateMachineSchema, bx as StateSchema, by as SwapEffect, bz as TrainConfig, bA as TrainEffect, a as Trait, bB as TraitCategory, bC as TraitCategorySchema, T as TraitConfig, bD as TraitConfigObject, bE as TraitConfigSchema, bF as TraitConfigValue, bG as TraitConfigValueSchema, bH as TraitDataEntity, bI as TraitDataEntitySchema, bJ as TraitEntityField, bK as TraitEntityFieldSchema, c as TraitEventContract, bL as TraitEventContractSchema, e as TraitEventListener, bM as TraitEventListenerSchema, bN as TraitInput, i as TraitRef, bO as TraitRefSchema, j as TraitReference, bP as TraitReferenceInput, bQ as TraitReferenceSchema, bR as TraitSchema, bS as TraitTick, bT as TraitTickSchema, bU as TraitUIBinding, bV as Transition, bW as TransitionInput, bX as TransitionSchema, bY as TypedEffect, U as UISlot, bZ as UISlotSchema, b_ as UI_SLOTS, b$ as VISUAL_STYLES, c0 as VisualStyle, c1 as VisualStyleSchema, c2 as WatchEffect, c3 as WatchOptions, c4 as atomic, c5 as callService, c6 as createAssetKey, c7 as deref, c8 as deriveCollection, c9 as despawn, ca as doEffects, cb as emit, cc as findService, cd as getDefaultAnimationsForRole, ce as getServiceNames, cf as getTraitConfig, cg as getTraitName, ch as hasService, ci as isCircuitEvent, cj as isEffect, ck as isInlineTrait, cl as isMcpService, cm as isRestService, cn as isRuntimeEntity, co as isSExprEffect, cp as isServiceReference, cq as isServiceReferenceObject, cr as isSingletonEntity, cs as isSocketService, ct as navigate, cu as normalizeTraitRef, cv as notify, cw as parseAssetKey, cx as parseServiceRef, cy as persist, cz as ref, cA as renderUI, cB as set, cC as spawn, cD as swap, cE as validateAssetAnimations, cF as watch } from './trait-C7cTBoi5.js';
5
- export { C as CORE_BINDINGS, a as CoreBinding, E as EvalContext, b as EventPayload, c as EventPayloadValue, d as Expression, e as ExpressionInput, f as ExpressionSchema, L as LogMeta, P as ParsedBinding, S as SExpr, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from './expression-BVRFm0sV.js';
1
+ import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-Cq9DUnFw.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, L as DomainContext, 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, a7 as FullOrbitalUnit, 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, a7 as Orbital, 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, b as Page, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b0 as PageTraitRef, 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-Cq9DUnFw.js';
3
+ import { n as State } from './trait-BsnLnedq.js';
4
+ export { A as AgentEffect, o as AnimationDef, p as AnimationDefInput, q as AnimationDefSchema, r as ArrayEntityField, s as AssetCatalog, t as AssetCatalogEntry, u as AssetCatalogEntryInput, v as AssetCatalogEntrySchema, w as AssetCatalogSchema, x as AssetMap, y as AssetMapInput, z as AssetMapSchema, B as AssetMapping, D as AssetMappingInput, F as AssetMappingSchema, G as AssetUrl, H as AtomicEffect, I as CallServiceConfig, J as CallServiceEffect, K as CheckpointLoadEffect, L as CheckpointSaveEffect, C as ConfigFieldDeclaration, M as ConfigFieldDeclarationSchema, N as DeclaredTraitConfig, O as DeclaredTraitConfigSchema, P as DerefEffect, Q as DespawnEffect, V as DoEffect, W as ENTITY_ROLES, E as Effect, X as EffectInput, Y as EffectSchema, Z as EmitConfig, _ as EmitEffect, d as Entity, $ as EntityData, f as EntityField, a0 as EntityFieldContract, a1 as EntityFieldContractSchema, a2 as EntityFieldInput, a3 as EntityFieldSchema, g as EntityPersistence, a4 as EntityPersistenceSchema, a5 as EntityRole, a6 as EntityRoleSchema, h as EntityRow, a7 as EntitySchema, a8 as EntityWith, a9 as EnumEntityField, aa as EvaluateConfig, ab as EvaluateEffect, ac as Event, ad as EventInput, l as EventPayloadField, ae as EventPayloadFieldSchema, af as EventSchema, ag as EventScope, ah as EventScopeSchema, ai as FetchEffect, aj as FetchOptions, ak as FetchResult, al as Field, am as FieldFormat, an as FieldFormatSchema, ao as FieldSchema, ap as FieldType, aq as FieldTypeSchema, ar as FieldValue, as as ForwardConfig, at as ForwardEffect, au as GAME_TYPES, av as GameType, aw as GameTypeSchema, ax as Guard, ay as GuardInput, az as GuardSchema, aA as ListenSource, aB as ListenSourceSchema, aC as LogEffect, aD as McpServiceDef, aE as McpServiceDefSchema, aF as NavigateEffect, aG as NnConfig, aH as NnLayer, aI as NotifyEffect, aJ as OrbitalEntity, aK as OrbitalEntityInput, aL as OrbitalEntitySchema, aM as OrbitalTraitRef, aN as OrbitalTraitRefSchema, aO as OsEffect, aP as PayloadField, aQ as PayloadFieldSchema, aR as PersistData, aS as PersistEffect, aT as PersistEmitConfig, aU as PresentationType, aV as RefEffect, aW as RelationConfig, aX as RelationConfigSchema, aY as RelationEntityField, R as RenderBinding, aZ as RenderItemLambda, a_ as RenderUIConfig, b as RenderUIEffect, a$ as RenderUINode, b0 as RequiredField, b1 as RequiredFieldSchema, b2 as ResolvedAsset, b3 as ResolvedAssetInput, b4 as ResolvedAssetSchema, b5 as ResolvedPatternProps, b6 as RestAuthConfig, b7 as RestAuthConfigSchema, b8 as RestServiceDef, b9 as RestServiceDefSchema, ba as SERVICE_TYPES, bb as ScalarEntityField, bc as SemanticAssetRef, bd as SemanticAssetRefInput, be as SemanticAssetRefSchema, m as ServiceDefinition, bf as ServiceDefinitionSchema, bg as ServiceParams, bh as ServiceParamsValue, S as ServiceRef, bi as ServiceRefObject, bj as ServiceRefObjectSchema, bk as ServiceRefSchema, bl as ServiceRefStringSchema, bm as ServiceType, bn as ServiceTypeSchema, bo as SetEffect, bp as SocketEvents, bq as SocketEventsSchema, br as SocketServiceDef, bs as SocketServiceDefSchema, bt as SpawnEffect, bu as StateInput, bv as StateMachine, bw as StateMachineInput, bx as StateMachineSchema, by as StateSchema, bz as SwapEffect, bA as TrainConfig, bB as TrainEffect, a as Trait, bC as TraitCategory, bD as TraitCategorySchema, T as TraitConfig, k as TraitConfigObject, bE as TraitConfigSchema, bF as TraitConfigValue, bG as TraitConfigValueSchema, bH as TraitDataEntity, bI as TraitDataEntitySchema, bJ as TraitEntityField, bK as TraitEntityFieldSchema, c as TraitEventContract, bL as TraitEventContractSchema, e as TraitEventListener, bM as TraitEventListenerSchema, bN as TraitInput, i as TraitRef, bO as TraitRefSchema, j as TraitReference, bP as TraitReferenceInput, bQ as TraitReferenceSchema, bR as TraitSchema, bS as TraitTick, bT as TraitTickSchema, bU as TraitUIBinding, bV as Transition, bW as TransitionInput, bX as TransitionSchema, bY as TypedEffect, U as UISlot, bZ as UISlotSchema, b_ as UI_SLOTS, b$ as VISUAL_STYLES, c0 as VisualStyle, c1 as VisualStyleSchema, c2 as WatchEffect, c3 as WatchOptions, c4 as atomic, c5 as callService, c6 as createAssetKey, c7 as deref, c8 as deriveCollection, c9 as despawn, ca as doEffects, cb as emit, cc as findService, cd as getDefaultAnimationsForRole, ce as getServiceNames, cf as getTraitConfig, cg as getTraitName, ch as hasService, ci as isCircuitEvent, cj as isEffect, ck as isInlineTrait, cl as isMcpService, cm as isRestService, cn as isRuntimeEntity, co as isSExprEffect, cp as isServiceReference, cq as isServiceReferenceObject, cr as isSingletonEntity, cs as isSocketService, ct as navigate, cu as normalizeTraitRef, cv as notify, cw as parseAssetKey, cx as parseServiceRef, cy as persist, cz as ref, cA as renderUI, cB as set, cC as spawn, cD as swap, cE as validateAssetAnimations, cF as watch } from './trait-BsnLnedq.js';
5
+ export { C as CORE_BINDINGS, a as CoreBinding, b as EvalContext, c as EventPayload, d as EventPayloadValue, E as Expression, e as ExpressionInput, f as ExpressionSchema, L as LogMeta, P as ParsedBinding, S as SExpr, 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';
6
6
  import { ResolvedIR, ResolvedEntity, ResolvedPage, ResolvedTrait, ChangesetValue, SchemaChange, CategorizedRemovals, PageContentReduction, SemanticSchemaChange } from './types/index.js';
7
7
  export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AnnotationTier, AppSummary, AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingContext, BindingRoot, BindingSchema, BridgeHealth, BusEvent, BusEventListener, BusEventSource, ChangeAuthor, ChangeSetDocument, ChangeSummary, CheckStatus, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EdgeType, EditFlow, EffectPayload, EffectResult, EffectTrace, EventEmit, EventKey, EventListen, EventLogEntry, EvolutionDelta, GateState, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, KnobPayload, KnownValidationErrorCode, LazyService, LineageEntry, ListInteraction, LivingEdge, LivingEffect, LivingEntity, LivingEvent, LivingField, LivingOrbital, LivingOrbitalSchema, LivingPage, LivingState, LivingTrait, LivingTransition, LivingValue, LivingVertex, OrbitalVerificationAPI, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, Probability, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SaveOptions, SaveResult, SemanticAnnotation, SemanticChangeKind, SemanticVector, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotDocument, StatsView, StoreContract, StoreFilter, StoreFilterOp, TraitFieldRef, TraitFieldRefSchema, TraitStateSnapshot, TransitionFrom, TransitionTrace, Unsubscribe, ValidationDocument, ValidationError, ValidationErrorCode, ValidationIssue, ValidationMeta, ValidationResult, ValidationResults, VerificationCheck, VerificationSnapshot, VerificationSummary, VertexId, VertexPayload, VertexType, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier } from './types/index.js';
8
- export { F as FactoryCallSite, a as FactoryCallSiteParams, b as FactoryConfigParam, c as FactoryConfigTier, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, g as FactoryParamValue, h as FactorySignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, J as JsonObject, l as JsonSchema, m as JsonSchemaType, n as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, o as PresentationOverlay, R as RuleOverlay, p as RuleOverlayEntry, S as SchemaFieldType, T as ToolArgs, q as TraitOverlay, r as TraitOverlayEntry, s as TraitOverlayListener, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from './types-CVzLocjv.js';
8
+ import { T as ToolArgs, J as JsonValue } from './types-CdXuGm8S.js';
9
+ export { F as FactoryCallSite, a as FactoryCallSiteParams, b as FactoryConfigParam, c as FactoryConfigTier, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, g as FactoryParamValue, h as FactorySignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, l as JsonObject, m as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, o as PresentationOverlay, R as RuleOverlay, p as RuleOverlayEntry, S as SchemaFieldType, q as TraitOverlay, r as TraitOverlayEntry, s as TraitOverlayListener, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from './types-CdXuGm8S.js';
9
10
  export { CallSiteDiff, DomainQuestion, DomainQuestionAnswer, DomainQuestionAnswers, DomainQuestionInputType, FactoryCallPlanMutation, FactoryCallPlanMutationTemplate, FactoryCallPlanState, OrbitalCallInput, TranslationBinding, TranslationResult, TranslationWarning, answerToMutations, answersToMutations, applyFactoryCallPlanMutation, deriveInputType, diffFactoryCalls, generateQuestions, translateOverlaysToParams } from './factory/index.js';
10
- export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-C0O7EloG.js';
11
+ export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-CJgreUHY.js';
11
12
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
12
13
  export { BFSNode, BFSPathNode, EdgeWalkTransition, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, WalkStep, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, constTruth, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
13
14
  import 'zod';
@@ -99,6 +100,200 @@ interface RenderOverlayResult {
99
100
  */
100
101
  declare function applyRenderOverlay(orbital: OrbitalDefinition, patches: readonly RenderUiPatch[]): RenderOverlayResult;
101
102
 
103
+ /**
104
+ * Agent-trace view-model — the canonical render shapes for the studio's
105
+ * agent-trace UI (ChatBar, SubagentTracePanel and their sub-components).
106
+ *
107
+ * Promoted out of apps/builder so the trace components can move into
108
+ * `@almadar/ui` without depending on `@almadar-io/agent-trace`,
109
+ * `@almadar-io/rabit`, or apps/builder-local hooks. These are pure
110
+ * presentation shapes — what the components read, nothing the runtime
111
+ * produces. Arbitrary tool payloads use core's `JsonValue` / `ToolArgs`
112
+ * (see `./types/json`), never `unknown`.
113
+ *
114
+ * @packageDocumentation
115
+ */
116
+
117
+ /** Conversational role rendered with an avatar/icon in the trace stream. */
118
+ type TraceAvatarRole = 'user' | 'assistant' | 'system';
119
+ /** File-mutation kind surfaced by a `file_operation` trace activity. */
120
+ type TraceFileOperation = 'ls' | 'read_file' | 'write_file' | 'edit_file';
121
+ /** A single line within a unified-diff hunk. */
122
+ interface TraceDiffLine {
123
+ type: 'add' | 'remove' | 'context';
124
+ content: string;
125
+ }
126
+ /** A unified-diff hunk rendered by a `schema_diff` trace activity. */
127
+ interface TraceDiffHunk {
128
+ oldStart: number;
129
+ oldLines: number;
130
+ newStart: number;
131
+ newLines: number;
132
+ lines: TraceDiffLine[];
133
+ }
134
+ /**
135
+ * Page-level agent activity. Discriminated by `type`; each variant carries
136
+ * only the fields the trace components read. Mirrors apps/builder's local
137
+ * `Activity` union (useAgentChat.ts). Tool args are `ToolArgs`, tool results
138
+ * are `JsonValue` — no `unknown`.
139
+ */
140
+ type TraceActivity = {
141
+ type: 'message';
142
+ role: TraceAvatarRole;
143
+ content: string;
144
+ timestamp: number;
145
+ isStreaming?: boolean;
146
+ } | {
147
+ type: 'tool_call';
148
+ tool: string;
149
+ args: ToolArgs;
150
+ timestamp: number;
151
+ isExecuting?: boolean;
152
+ } | {
153
+ type: 'tool_result';
154
+ tool: string;
155
+ result: JsonValue;
156
+ success: boolean;
157
+ timestamp: number;
158
+ } | {
159
+ type: 'file_operation';
160
+ operation: TraceFileOperation;
161
+ path: string;
162
+ success?: boolean;
163
+ timestamp: number;
164
+ } | {
165
+ type: 'schema_diff';
166
+ filePath: string;
167
+ hunks: TraceDiffHunk[];
168
+ timestamp: number;
169
+ } | {
170
+ type: 'error';
171
+ message: string;
172
+ code?: string;
173
+ timestamp: number;
174
+ } | {
175
+ type: 'coordinator_decision';
176
+ organism: string;
177
+ reason: string;
178
+ priorOrganism: string | null;
179
+ timestamp: number;
180
+ } | {
181
+ type: 'plan_committed';
182
+ orbitals: string[];
183
+ timestamp: number;
184
+ } | {
185
+ type: 'pending_question';
186
+ questionId: string;
187
+ question: string;
188
+ orbitalName?: string;
189
+ timestamp: number;
190
+ } | {
191
+ type: 'clarification_question';
192
+ level: 'organism' | 'molecule' | 'atom_trait';
193
+ scope: {
194
+ orbitalName?: string;
195
+ traitName?: string;
196
+ };
197
+ question: string;
198
+ candidates: Array<{
199
+ id: string;
200
+ label: string;
201
+ description: string;
202
+ whyThisFits: string;
203
+ }>;
204
+ skipDefault: string;
205
+ timestamp: number;
206
+ };
207
+ /**
208
+ * Trace-stream activity item, the shape `InlineActivityRow` /
209
+ * `InlineActivityStream` render. Mirrors `@almadar-io/agent-trace`'s
210
+ * `ActivityItem`. Distinct from `TraceActivity`: `message.role` includes
211
+ * `'tool'` and an optional `label`; it omits the coordinator/plan/question
212
+ * variants. Tool args are `ToolArgs`, results are `JsonValue`.
213
+ */
214
+ type TraceActivityItem = {
215
+ type: 'message';
216
+ role: TraceAvatarRole | 'tool';
217
+ content: string;
218
+ timestamp: number;
219
+ isStreaming?: boolean;
220
+ label?: string;
221
+ } | {
222
+ type: 'tool_call';
223
+ tool: string;
224
+ args: ToolArgs;
225
+ timestamp: number;
226
+ isExecuting?: boolean;
227
+ } | {
228
+ type: 'tool_result';
229
+ tool: string;
230
+ result: JsonValue;
231
+ success: boolean;
232
+ timestamp: number;
233
+ } | {
234
+ type: 'file_operation';
235
+ operation: TraceFileOperation;
236
+ path: string;
237
+ success?: boolean;
238
+ timestamp: number;
239
+ } | {
240
+ type: 'schema_diff';
241
+ filePath: string;
242
+ hunks: TraceDiffHunk[];
243
+ timestamp: number;
244
+ } | {
245
+ type: 'error';
246
+ message: string;
247
+ code?: string;
248
+ timestamp: number;
249
+ };
250
+ /** One progress entry within a subagent's running log. */
251
+ interface TraceSubagentMessage {
252
+ message: string;
253
+ tool?: string;
254
+ timestamp: number;
255
+ }
256
+ /**
257
+ * Live subagent state rendered by `SubagentRow` / `SubagentRichCard` /
258
+ * `OrbitalGroup`. Mirrors apps/builder's `SubagentState`. `orbitalName` is
259
+ * the canvas-focus filter key.
260
+ */
261
+ interface TraceSubagent {
262
+ id: string;
263
+ name: string;
264
+ role: string;
265
+ orbitalName?: string;
266
+ parentId?: string;
267
+ status: 'running' | 'complete' | 'error';
268
+ task: string;
269
+ messages: TraceSubagentMessage[];
270
+ durationMs?: number;
271
+ }
272
+ /** A tool call emitted by an assistant `TraceChatMessage`. */
273
+ interface TraceChatMessageToolCall {
274
+ id: string;
275
+ name: string;
276
+ /** Parsed JSON arguments (the LLM emits a JSON string; stored parsed). */
277
+ args: ToolArgs;
278
+ }
279
+ /**
280
+ * Canonical coordinator conversation message rendered by `ChatMessageRow` /
281
+ * `CoordinatorConversation`. Mirrors rabit's tool-loop `ChatMessage`
282
+ * (role/content/toolCalls/toolCallId/toolName/reasoningContent).
283
+ */
284
+ interface TraceChatMessage {
285
+ role: 'system' | 'user' | 'assistant' | 'tool';
286
+ content: string;
287
+ /** Present on assistant messages that called tools. */
288
+ toolCalls?: ReadonlyArray<TraceChatMessageToolCall>;
289
+ /** Present on tool messages — matches the `id` of the corresponding tool_call. */
290
+ toolCallId?: string;
291
+ /** Tool name on tool messages (cosmetic — helps tracing). */
292
+ toolName?: string;
293
+ /** Thinking-mode chain-of-thought (DeepSeek), echoed back on tool round-trips. */
294
+ reasoningContent?: string;
295
+ }
296
+
102
297
  /**
103
298
  * Schema Resolver
104
299
  *
@@ -350,4 +545,4 @@ declare function summarizeOrbital(orbital: OrbitalDefinition): OrbitalDefinition
350
545
  */
351
546
  declare function summarizeSchema(schema: OrbitalSchema): OrbitalSchema;
352
547
 
353
- export { OrbitalSchema as AppSchema, CategorizedRemovals, ChangesetValue, type EditFocus, type EditFocusLevel, OrbitalDefinition, OrbitalSchema, PageContentReduction, type PatternNode, type PatternValue, type RenderOverlayResult, type RenderUiPatch, type RenderUiPatchAddress, type RenderUiPatchOp, ResolvedEntity, ResolvedIR, ResolvedPage, ResolvedTrait, SchemaChange, type SchemaDiff, type SchemaDiffAuthor, type SchemaDiffChange, type SchemaDiffChangeset, type SchemaDiffMode, type SchemaDiffOptions, type SchemaDiffSource, type SchemaDiffSummary, SemanticSchemaChange, State, OrbitalDefinition as ValidatedOrbital, applyRenderOverlay, categorizeRemovals, classifyWorkflow, clearSchemaCache, detectPageContentReduction, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, fingerprintNode, getEntity, getPage, getPages, getRemovals, getSchemaCacheStats, getTrait, hasSignificantPageReduction, insertChildAtPath, isDestructiveChange, navigatePatternPath, removeChildAtPath, replaceChildAtPath, requiresConfirmation, schemaToIR, setPropAtPath, summarizeOrbital, summarizeSchema };
548
+ export { OrbitalSchema as AppSchema, CategorizedRemovals, ChangesetValue, type EditFocus, type EditFocusLevel, JsonValue, OrbitalDefinition, OrbitalSchema, PageContentReduction, type PatternNode, type PatternValue, type RenderOverlayResult, type RenderUiPatch, type RenderUiPatchAddress, type RenderUiPatchOp, ResolvedEntity, ResolvedIR, ResolvedPage, ResolvedTrait, SchemaChange, type SchemaDiff, type SchemaDiffAuthor, type SchemaDiffChange, type SchemaDiffChangeset, type SchemaDiffMode, type SchemaDiffOptions, type SchemaDiffSource, type SchemaDiffSummary, SemanticSchemaChange, State, ToolArgs, type TraceActivity, type TraceActivityItem, type TraceAvatarRole, type TraceChatMessage, type TraceChatMessageToolCall, type TraceDiffHunk, type TraceDiffLine, type TraceFileOperation, type TraceSubagent, type TraceSubagentMessage, OrbitalDefinition as ValidatedOrbital, applyRenderOverlay, categorizeRemovals, classifyWorkflow, clearSchemaCache, detectPageContentReduction, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, fingerprintNode, getEntity, getPage, getPages, getRemovals, getSchemaCacheStats, getTrait, hasSignificantPageReduction, insertChildAtPath, isDestructiveChange, navigatePatternPath, removeChildAtPath, replaceChildAtPath, requiresConfirmation, schemaToIR, setPropAtPath, summarizeOrbital, summarizeSchema };