@almadar/core 4.8.2 → 4.9.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,39 +1,8 @@
1
1
  import { d as EntityRow, aS as FieldValue, S as SExpr } from '../schema-BCEjl1a1.js';
2
2
  export { A as AGENT_DOMAIN_CATEGORIES, m as ALLOWED_CUSTOM_COMPONENTS, n as AgentDomainCategory, o as AgentDomainCategorySchema, p as AgentEffect, q as AllowedCustomComponent, r as AnimationDef, s as AnimationDefInput, t as AnimationDefSchema, g as AppSchema, u as AssetMap, v as AssetMapInput, w as AssetMapSchema, x as AssetMapping, y as AssetMappingInput, z as AssetMappingSchema, B as AtomicEffect, C as CORE_BINDINGS, D as CallServiceConfig, F as CallServiceEffect, G as ComputedEventContract, H as ComputedEventContractSchema, I as ComputedEventListener, J as ComputedEventListenerSchema, K as CoreBinding, L as CustomPatternDefinition, M as CustomPatternDefinitionInput, N as CustomPatternDefinitionSchema, Q as CustomPatternMap, R as CustomPatternMapInput, V as CustomPatternMapSchema, W as DerefEffect, X as DesignPreferences, Y as DesignPreferencesInput, Z as DesignPreferencesSchema, _ as DesignTokens, $ as DesignTokensInput, a0 as DesignTokensSchema, a1 as DespawnEffect, a2 as DoEffect, a3 as DomainCategory, a4 as DomainCategorySchema, a5 as DomainContext, a6 as DomainContextInput, a7 as DomainContextSchema, a8 as DomainVocabulary, a9 as DomainVocabularySchema, aa as ENTITY_ROLES, ab as Effect, ac as EffectInput, ad as EffectSchema, ae as EmitConfig, af as EmitEffect, E as Entity, ag as EntityCall, ah as EntityCallSchema, ai as EntityData, b as EntityField, aj as EntityFieldInput, ak as EntityFieldSchema, c as EntityPersistence, al as EntityPersistenceSchema, e as EntityRef, am as EntityRefSchema, an as EntityRefStringSchema, ao as EntityRole, ap as EntityRoleSchema, aq as EntitySchema, ar as EntitySemanticRole, as as EntitySemanticRoleSchema, at as EvalContext, au as Event, av as EventInput, aw as EventListener, ax as EventListenerSchema, ay as EventPayload, az as EventPayloadField, aA as EventPayloadFieldSchema, aB as EventSchema, aC as EventScope, aD as EventScopeSchema, aE as EventSemanticRole, aF as EventSemanticRoleSchema, aG as EventSource, aH as EventSourceSchema, aI as Expression, aJ as ExpressionInput, aK as ExpressionSchema, aL as FetchEffect, aM as Field, aN as FieldFormat, aO as FieldFormatSchema, aP as FieldSchema, aQ as FieldType, aR as FieldTypeSchema, aT as FullOrbitalUnit, aU as GAME_TYPES, aV as GameSubCategory, aW as GameSubCategorySchema, aX as GameType, aY as GameTypeSchema, aZ as Guard, a_ as GuardInput, a$ as GuardSchema, b0 as LogEffect, b1 as LogMeta, b2 as McpServiceDef, b3 as McpServiceDefSchema, b4 as NavigateEffect, b5 as NodeClassification, b6 as NodeClassificationSchema, b7 as NotifyEffect, aT as Orbital, b8 as OrbitalConfig, b9 as OrbitalConfigInput, ba as OrbitalConfigSchema, O as OrbitalDefinition, bb as OrbitalDefinitionSchema, bc as OrbitalEntity, bd as OrbitalEntityInput, be as OrbitalEntitySchema, bf as OrbitalInput, bg as OrbitalPage, bh as OrbitalPageInput, bi as OrbitalPageSchema, bj as OrbitalPageStrictInput, bk as OrbitalPageStrictSchema, g as OrbitalSchema, bl as OrbitalSchemaInput, bm as OrbitalSchemaSchema, bn as OrbitalTraitRef, bo as OrbitalTraitRefSchema, bp as OrbitalUnit, bq as OrbitalUnitSchema, br as OrbitalZodSchema, i as Page, P as PageRef, j as PageRefObject, bs as PageRefObjectSchema, bt as PageRefSchema, bu as PageRefStringSchema, bv as PageSchema, bw as PageTraitRef, bx as PageTraitRefSchema, by as ParsedBinding, bz as PayloadField, bA as PayloadFieldSchema, bB as PersistEffect, bC as PresentationType, bD as RefEffect, bE as RelatedLink, bF as RelatedLinkSchema, bG as RelationConfig, bH as RelationConfigSchema, bI as RenderItemLambda, bJ as RenderUIConfig, bK as RenderUIEffect, bL as RenderUINode, bM as RequiredField, bN as RequiredFieldSchema, bO as ResolvedAsset, bP as ResolvedAssetInput, bQ as ResolvedAssetSchema, bR as ResolvedPatternProps, bS as RestAuthConfig, bT as RestAuthConfigSchema, bU as RestServiceDef, bV as RestServiceDefSchema, bW as SERVICE_TYPES, bX as SExprAtom, bY as SExprAtomSchema, bZ as SExprInput, b_ as SExprSchema, b$ as SemanticAssetRef, c0 as SemanticAssetRefInput, c1 as SemanticAssetRefSchema, c2 as ServiceDefinition, c3 as ServiceDefinitionSchema, c4 as ServiceParams, c5 as ServiceRef, c6 as ServiceRefObject, c7 as ServiceRefObjectSchema, c8 as ServiceRefSchema, c9 as ServiceRefStringSchema, ca as ServiceType, cb as ServiceTypeSchema, cc as SetEffect, cd as SocketEvents, ce as SocketEventsSchema, cf as SocketServiceDef, cg as SocketServiceDefSchema, ch as SpawnEffect, l as State, ci as StateInput, cj as StateMachine, ck as StateMachineInput, cl as StateMachineSchema, cm as StateSchema, cn as StateSemanticRole, co as StateSemanticRoleSchema, cp as SuggestedGuard, cq as SuggestedGuardSchema, cr as SwapEffect, cs as ThemeDefinition, ct as ThemeDefinitionSchema, cu as ThemeRef, cv as ThemeRefSchema, cw as ThemeRefStringSchema, cx as ThemeTokens, cy as ThemeTokensSchema, cz as ThemeVariant, cA as ThemeVariantSchema, h as Trait, cB as TraitCategory, cC as TraitCategorySchema, cD as TraitDataEntity, cE as TraitDataEntitySchema, cF as TraitEntityField, cG as TraitEntityFieldSchema, T as TraitEventContract, cH as TraitEventContractSchema, a as TraitEventListener, cI as TraitEventListenerSchema, cJ as TraitInput, f as TraitRef, cK as TraitRefSchema, k as TraitReference, cL as TraitReferenceInput, cM as TraitReferenceSchema, cN as TraitSchema, cO as TraitTick, cP as TraitTickSchema, cQ as TraitUIBinding, cR as Transition, cS as TransitionInput, cT as TransitionSchema, cU as TypedEffect, cV as UISlot, cW as UISlotSchema, cX as UI_SLOTS, cY as UXHints, cZ as UXHintsSchema, U as UseDeclaration, c_ as UseDeclarationSchema, c$ as UserPersona, d0 as UserPersonaInput, d1 as UserPersonaSchema, d2 as VISUAL_STYLES, d3 as ViewType, d4 as ViewTypeSchema, d5 as VisualStyle, d6 as VisualStyleSchema, d7 as WatchEffect, d8 as WatchOptions, d9 as atomic, da as callService, db as collectBindings, dc as createAssetKey, dd as deref, de as deriveCollection, df as despawn, dg as doEffects, dh as emit, di as findService, dj as getArgs, dk as getDefaultAnimationsForRole, dl as getOperator, dm as getServiceNames, dn as getTraitConfig, dp as getTraitName, dq as hasService, dr as isBinding, ds as isCircuitEvent, dt as isEffect, du as isEntityCall, dv as isEntityReference, dw as isEntityReferenceAny, dx as isImportedTraitRef, dy as isInlineTrait, dz as isMcpService, dA as isOrbitalDefinition, dB as isPageReference, dC as isPageReferenceObject, dD as isPageReferenceString, dE as isRestService, dF as isRuntimeEntity, dG as isSExpr, dH as isSExprAtom, dI as isSExprCall, dJ as isSExprEffect, dK as isServiceReference, dL as isServiceReferenceObject, dM as isSingletonEntity, dN as isSocketService, dO as isThemeReference, dP as isValidBinding, dQ as navigate, dR as normalizeTraitRef, dS as notify, dT as parseAssetKey, dU as parseBinding, dV as parseEntityRef, dW as parseImportedTraitRef, dX as parseOrbitalSchema, dY as parsePageRef, dZ as parseServiceRef, d_ as persist, d$ as ref, e0 as renderUI, e1 as safeParseOrbitalSchema, e2 as set, e3 as sexpr, e4 as spawn, e5 as swap, e6 as validateAssetAnimations, e7 as walkSExpr, e8 as watch } from '../schema-BCEjl1a1.js';
3
3
  import { z } from 'zod';
4
- export { CATEGORIES, CategoryMeta, OPERATORS, OPERATORS_SCHEMA, OPERATOR_NAMES, OperatorCategory, OperatorMeta, OperatorStats, OperatorsSchema, TargetPlatform, getOperatorMeta, getOperatorStats, getOperatorsByCategory, getOperatorsForTarget, isEffectOperator, isGuardOperator, isKnownOperator, validateOperatorArity } from '@almadar/operators';
5
4
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
6
5
 
7
- /**
8
- * S-Expression Operators
9
- *
10
- * Re-exports operator types and data from the canonical @almadar/operators package.
11
- * This ensures almadar-core stays in sync with the single source of truth.
12
- *
13
- * @packageDocumentation
14
- */
15
-
16
- /**
17
- * Get all operator names.
18
- *
19
- * Returns a list of all registered S-expression operator names.
20
- * This is a legacy alias - prefer importing OPERATOR_NAMES directly
21
- * from @almadar/operators for new code.
22
- *
23
- * @returns {string[]} Array of operator names
24
- *
25
- * @example
26
- * const operators = getAllOperators();
27
- * // Returns: ['set', 'emit', 'navigate', 'renderUI', ...]
28
- */
29
- declare const getAllOperators: () => string[];
30
- /**
31
- * Operator name type.
32
- *
33
- * Represents a valid operator name string.
34
- */
35
- type OperatorName = string;
36
-
37
6
  /**
38
7
  * S-Expression Bindings
39
8
  *
@@ -1064,4 +1033,4 @@ declare function createResolvedField(field: {
1064
1033
  */
1065
1034
  declare function isResolvedIR(ir: unknown): ir is ResolvedIR;
1066
1035
 
1067
- export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AppSummary, BINDING_CONTEXT_RULES, BINDING_DOCS, type BindingContext, BindingSchema, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type CreateFlow, DEFAULT_INTERACTION_MODELS, type DeleteFlow, type EditFlow, EntityRow, FieldValue, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type LazyService, type ListInteraction, type OperatorName, type PageContentReduction, PatternTypeSchema, type PersistActionName, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SaveOptions, type SaveResult, type SchemaChange, type SemanticChangeKind, type SemanticSchemaChange, type ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, type SnapshotDocument, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type TransitionFrom, type ValidationDocument, type ValidationIssue, type ValidationMeta, type ValidationResults, type ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllOperators, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isResolvedIR, validateBindingInContext };
1036
+ export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AppSummary, BINDING_CONTEXT_RULES, BINDING_DOCS, type BindingContext, BindingSchema, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type CreateFlow, DEFAULT_INTERACTION_MODELS, type DeleteFlow, type EditFlow, EntityRow, FieldValue, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type LazyService, type ListInteraction, type PageContentReduction, PatternTypeSchema, type PersistActionName, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SaveOptions, type SaveResult, type SchemaChange, type SemanticChangeKind, type SemanticSchemaChange, type ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, type SnapshotDocument, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type TransitionFrom, type ValidationDocument, type ValidationIssue, type ValidationMeta, type ValidationResults, type ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isResolvedIR, validateBindingInContext };
@@ -1,6 +1,4 @@
1
1
  import { z } from 'zod';
2
- import { OPERATOR_NAMES } from '@almadar/operators';
3
- export { CATEGORIES, OPERATORS, OPERATORS_SCHEMA, OPERATOR_NAMES, getOperatorMeta, getOperatorStats, getOperatorsByCategory, getOperatorsForTarget, isEffectOperator, isGuardOperator, isKnownOperator, validateOperatorArity } from '@almadar/operators';
4
2
  import { PATTERN_TYPES } from '@almadar/patterns';
5
3
  export { PATTERN_TYPES, isValidPatternType } from '@almadar/patterns';
6
4
 
@@ -1138,7 +1136,6 @@ function parseOrbitalSchema(data) {
1138
1136
  function safeParseOrbitalSchema(data) {
1139
1137
  return OrbitalSchemaSchema.safeParse(data);
1140
1138
  }
1141
- var getAllOperators = () => OPERATOR_NAMES;
1142
1139
  var BindingSchema = z.string().refine(
1143
1140
  (val) => {
1144
1141
  if (!val.startsWith("@")) return false;
@@ -1360,6 +1357,6 @@ function isResolvedIR(ir) {
1360
1357
  return typeof r.appName === "string" && r.traits instanceof Map && r.pages instanceof Map;
1361
1358
  }
1362
1359
 
1363
- export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingSchema, CORE_BINDINGS, ComputedEventContractSchema, ComputedEventListenerSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, EntityCallSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GuardSchema, InteractionModelSchema, McpServiceDefSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, atomic, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getAllOperators, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCircuitEvent, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, ref, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, swap, validateAssetAnimations, validateBindingInContext, walkSExpr, watch };
1360
+ export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingSchema, CORE_BINDINGS, ComputedEventContractSchema, ComputedEventListenerSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, EntityCallSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GuardSchema, InteractionModelSchema, McpServiceDefSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, atomic, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCircuitEvent, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, ref, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, swap, validateAssetAnimations, validateBindingInContext, walkSExpr, watch };
1364
1361
  //# sourceMappingURL=index.js.map
1365
1362
  //# sourceMappingURL=index.js.map