@almadar/core 2.1.3 → 2.2.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.
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as Agen
3
3
  import { ResolvedIR, ResolvedEntity, ResolvedPage, ResolvedTrait, SchemaChange, CategorizedRemovals, PageContentReduction } from './types/index.js';
4
4
  export { AppSummary, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingContext, BindingSchema, ChangeAuthor, ChangeSetDocument, ChangeSummary, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EditFlow, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, LazyService, ListInteraction, OperatorName, PatternTypeSchema, PersistActionName, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SaveOptions, SaveResult, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotDocument, StatsView, StoreContract, StoreFilter, StoreFilterOp, TransitionFrom, ValidationDocument, ValidationIssue, ValidationMeta, ValidationResults, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllOperators, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isResolvedIR, validateBindingInContext } from './types/index.js';
5
5
  export { ASTNode, ComparisonCondition, ComparisonOperator, DomainBehavior, DomainChunk, DomainDocument, DomainEffect, DomainEntity, DomainField, DomainFieldType, DomainGuard, DomainPage, DomainPageAction, DomainPageSection, DomainRelationship, DomainTick, DomainToSchemaResult, DomainTransition, EFFECT_REGISTRY, EffectMapping, EffectType, FIELD_TYPE_REGISTRY, FieldCheckCondition, FieldReference, FieldTypeMapping, GUARD_REGISTRY, GuardCondition, GuardMapping, KEYWORDS, Lexer, LogicalCondition, LogicalOperator, MULTI_WORD_KEYWORDS, MappingStore, MergeResult, ParseError, ParseResult, RelationshipType, SchemaToDomainResult, SectionMapping, SourceLocation, SourceRange, Token, TokenType, UserCheckCondition, applySectionUpdate, computeSchemaHash, convertDomainToSchema, convertEntitiesToDomain, convertPagesToDomain, convertSchemaToDomain, convertTraitsToDomain, createMappingStore, deleteSection, detectChanges, domainKeywordToSchemaType, findMapping, findMappingByPath, findMappingsByType, formatBehaviorToDomain, formatBehaviorToSchema, formatDomainGuardToSchema, formatEntityToDomain, formatEntityToSchema, formatGuardConditionToDomain, formatGuardToDomain, formatGuardToSchema, formatMergeSummary, formatPageToDomain, formatPageToSchema, formatSchemaEntityToDomain, formatSchemaGuardToDomain, formatSchemaPageToDomain, formatSchemaTraitToDomain, generateDomainLanguageReference, generateSectionId, getEffectMapping, getFieldTypeMapping, getGuardMapping, getRegisteredEffects, getRegisteredFieldTypes, getRegisteredGuards, getRegistryStats, getSchemaPath, hasSchemaChanged, isEffectRegistered, isFieldTypeRegistered, isGuardRegistered, mergeDomainChunks, parseBehavior, parseDomainEffect, parseDomainEffects, parseDomainGuard, parseEntity, parseGuard, parsePage, parseSectionId, removeMapping, resolveConflict, schemaEntityToDomainEntity, schemaPageToDomainPage, schemaTraitToDomainBehavior, schemaTypeToDomainKeyword, tokenize, updateMappingRange, updateSchemaHash, upsertMapping, validateDomainChunk } from './domain-language/index.js';
6
+ export { BFSNode, BFSPathNode, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
6
7
  export { CATEGORIES, CategoryMeta, OPERATORS, OPERATORS_SCHEMA, OPERATOR_NAMES, OperatorCategory, OperatorMeta, OperatorStats, OperatorsSchema, TargetPlatform, getOperatorMeta, getOperatorStats, getOperatorsByCategory, getOperatorsForTarget, isEffectOperator, isGuardOperator, isKnownOperator, validateOperatorArity } from '@almadar/operators';
7
8
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
8
9
  import 'zod';
package/dist/index.js CHANGED
@@ -1281,9 +1281,9 @@ function schemaToIR(schema, useCache = true) {
1281
1281
  isFinal: s.isFinal ?? s.isTerminal ?? false
1282
1282
  })),
1283
1283
  events: (trait.stateMachine?.events || []).map((e) => ({
1284
- key: typeof e === "string" ? e : e.key || e.name,
1285
- name: typeof e === "string" ? e : e.name,
1286
- payload: typeof e === "object" && "payloadSchema" in e ? e.payloadSchema : void 0
1284
+ key: e.key,
1285
+ name: e.name,
1286
+ payload: e.payloadSchema
1287
1287
  })),
1288
1288
  transitions: (trait.stateMachine?.transitions || []).map((t) => ({
1289
1289
  from: t.from,
@@ -1311,10 +1311,10 @@ function schemaToIR(schema, useCache = true) {
1311
1311
  viewType: page.viewType && ["list", "detail", "create", "edit", "dashboard"].includes(page.viewType) ? page.viewType : void 0,
1312
1312
  sections: [],
1313
1313
  traits: (page.traits || []).map((traitRef) => ({
1314
- ref: typeof traitRef === "string" ? traitRef : traitRef.ref,
1314
+ ref: traitRef.ref,
1315
1315
  trait: resolveTraitRef(traitRef, ir.traits, orbital.traits || []),
1316
- linkedEntity: typeof traitRef === "object" && "linkedEntity" in traitRef ? traitRef.linkedEntity : orbital.entity ? typeof orbital.entity === "string" ? orbital.entity.replace(".entity", "") : orbital.entity.name : void 0,
1317
- config: typeof traitRef === "object" && "config" in traitRef ? traitRef.config : void 0
1316
+ linkedEntity: traitRef.linkedEntity ?? (orbital.entity ? typeof orbital.entity === "string" ? orbital.entity.replace(".entity", "") : orbital.entity.name : void 0),
1317
+ config: traitRef.config
1318
1318
  })),
1319
1319
  entityBindings: [],
1320
1320
  navigation: [],
@@ -7699,6 +7699,174 @@ function generateDomainLanguageReference() {
7699
7699
  return lines.join("\n");
7700
7700
  }
7701
7701
 
7702
- 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, EFFECT_REGISTRY, ENTITY_ROLES, EffectSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FIELD_TYPE_REGISTRY, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GUARD_REGISTRY, GameSubCategorySchema, GameTypeSchema, GuardSchema, InteractionModelSchema, KEYWORDS, Lexer, MULTI_WORD_KEYWORDS, 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, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TokenType, TraitCategorySchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, applySectionUpdate, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, computeSchemaHash, convertDomainToSchema, convertEntitiesToDomain, convertPagesToDomain, convertSchemaToDomain, convertTraitsToDomain, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createMappingStore, createResolvedField, createTypedEventBus, deleteSection, deriveCollection, despawn, detectChanges, detectPageContentReduction, diffSchemas, doEffects, domainKeywordToSchemaType, emit, findMapping, findMappingByPath, findMappingsByType, findService, formatBehaviorToDomain, formatBehaviorToSchema, formatDomainGuardToSchema, formatEntityToDomain, formatEntityToSchema, formatGuardConditionToDomain, formatGuardToDomain, formatGuardToSchema, formatMergeSummary, formatPageToDomain, formatPageToSchema, formatSchemaEntityToDomain, formatSchemaGuardToDomain, formatSchemaPageToDomain, formatSchemaTraitToDomain, generateDomainLanguageReference, generateSectionId, getAllOperators, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getEffectMapping, getEntity, getFieldTypeMapping, getGuardMapping, getInteractionModelForDomain, getOperator, getPage, getPages, getRegisteredEffects, getRegisteredFieldTypes, getRegisteredGuards, getRegistryStats, getRemovals, getSchemaCacheStats, getSchemaPath, getServiceNames, getTrait, getTraitConfig, getTraitName, hasSchemaChanged, hasService, hasSignificantPageReduction, inferTsType, isBinding, isCircuitEvent, isDestructiveChange, isEffect, isEffectRegistered, isEntityReference, isFieldTypeRegistered, isGuardRegistered, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, mergeDomainChunks, navigate, normalizeTraitRef, notify, parseAssetKey, parseBehavior, parseBinding, parseDomainEffect, parseDomainEffects, parseDomainGuard, parseEntity, parseEntityRef, parseGuard, parseImportedTraitRef, parseOrbitalSchema, parsePage, parsePageRef, parseSectionId, parseServiceRef, persist, removeMapping, renderUI, requiresConfirmation, resolveConflict, safeParseOrbitalSchema, schemaEntityToDomainEntity, schemaPageToDomainPage, schemaToIR, schemaTraitToDomainBehavior, schemaTypeToDomainKeyword, set, sexpr, spawn, summarizeOrbital, summarizeSchema, tokenize, updateMappingRange, updateSchemaHash, upsertMapping, validateAssetAnimations, validateBindingInContext, validateDomainChunk, walkSExpr };
7702
+ // src/state-machine/graph.ts
7703
+ function buildStateGraph(transitions) {
7704
+ const graph = /* @__PURE__ */ new Map();
7705
+ for (const t of transitions) {
7706
+ if (t.from === "*") continue;
7707
+ if (!graph.has(t.from)) graph.set(t.from, []);
7708
+ graph.get(t.from).push({ event: t.event, to: t.to });
7709
+ }
7710
+ return graph;
7711
+ }
7712
+
7713
+ // src/state-machine/bfs.ts
7714
+ function collectReachableStates(transitions, initialState, maxDepth = 5) {
7715
+ const graph = buildStateGraph(transitions);
7716
+ const visited = /* @__PURE__ */ new Set([initialState]);
7717
+ const queue = [{ state: initialState, depth: 0 }];
7718
+ while (queue.length > 0) {
7719
+ const current = queue.shift();
7720
+ if (current.depth >= maxDepth) continue;
7721
+ const edges = graph.get(current.state) ?? [];
7722
+ for (const edge of edges) {
7723
+ if (!visited.has(edge.to)) {
7724
+ visited.add(edge.to);
7725
+ queue.push({ state: edge.to, depth: current.depth + 1 });
7726
+ }
7727
+ }
7728
+ }
7729
+ return visited;
7730
+ }
7731
+ async function walkStatePairs(transitions, initialState, maxDepth, visitor) {
7732
+ const graph = buildStateGraph(transitions);
7733
+ const visitedPairs = /* @__PURE__ */ new Set();
7734
+ const queue = [{ state: initialState, depth: 0 }];
7735
+ let walkedEdges = 0;
7736
+ while (queue.length > 0) {
7737
+ const current = queue.shift();
7738
+ if (current.depth >= maxDepth) continue;
7739
+ const edges = graph.get(current.state) ?? [];
7740
+ for (const edge of edges) {
7741
+ const pairKey = `${current.state}:${edge.event}`;
7742
+ if (visitedPairs.has(pairKey)) continue;
7743
+ visitedPairs.add(pairKey);
7744
+ const shouldEnqueue = await visitor(current.state, edge, current.depth);
7745
+ walkedEdges++;
7746
+ if (shouldEnqueue) {
7747
+ const stateVisited = [...visitedPairs].some((k) => k.startsWith(`${edge.to}:`));
7748
+ if (!stateVisited) {
7749
+ queue.push({ state: edge.to, depth: current.depth + 1 });
7750
+ }
7751
+ }
7752
+ }
7753
+ }
7754
+ return { visitedPairs, walkedEdges };
7755
+ }
7756
+
7757
+ // src/state-machine/guard-payloads.ts
7758
+ function extractPayloadFieldRef(ref) {
7759
+ if (typeof ref !== "string") return null;
7760
+ const match = ref.match(/^@payload\.([A-Za-z0-9_]+)/);
7761
+ return match ? match[1] : null;
7762
+ }
7763
+ function buildGuardPayloads(guard) {
7764
+ if (!Array.isArray(guard) || guard.length === 0) {
7765
+ return { pass: {}, fail: {} };
7766
+ }
7767
+ const op = String(guard[0]);
7768
+ if (op === "not-nil" || op === "not_nil") {
7769
+ const field = extractPayloadFieldRef(guard[1]);
7770
+ if (field) return { pass: { [field]: "mock-test-value" }, fail: { [field]: null } };
7771
+ }
7772
+ if (op === "nil") {
7773
+ const field = extractPayloadFieldRef(guard[1]);
7774
+ if (field) return { pass: {}, fail: { [field]: "mock-test-value" } };
7775
+ }
7776
+ if (op === "eq" || op === "==" || op === "=") {
7777
+ const field = extractPayloadFieldRef(guard[1]);
7778
+ const val = guard[2];
7779
+ if (field && val !== void 0) {
7780
+ const failVal = typeof val === "number" ? val + 1 : typeof val === "string" ? `not-${val}` : null;
7781
+ return { pass: { [field]: val }, fail: { [field]: failVal } };
7782
+ }
7783
+ }
7784
+ if (op === "not-eq" || op === "!=" || op === "neq") {
7785
+ const field = extractPayloadFieldRef(guard[1]);
7786
+ const val = guard[2];
7787
+ if (field && val !== void 0) {
7788
+ const passVal = typeof val === "number" ? val + 1 : typeof val === "string" ? `not-${val}` : "other";
7789
+ return { pass: { [field]: passVal }, fail: { [field]: val } };
7790
+ }
7791
+ }
7792
+ if (op === "gt" || op === ">") {
7793
+ const field = extractPayloadFieldRef(guard[1]);
7794
+ const n = typeof guard[2] === "number" ? guard[2] : 0;
7795
+ if (field) return { pass: { [field]: n + 1 }, fail: { [field]: n - 1 } };
7796
+ }
7797
+ if (op === "gte" || op === ">=") {
7798
+ const field = extractPayloadFieldRef(guard[1]);
7799
+ const n = typeof guard[2] === "number" ? guard[2] : 0;
7800
+ if (field) return { pass: { [field]: n }, fail: { [field]: n - 1 } };
7801
+ }
7802
+ if (op === "lt" || op === "<") {
7803
+ const field = extractPayloadFieldRef(guard[1]);
7804
+ const n = typeof guard[2] === "number" ? guard[2] : 0;
7805
+ if (field) return { pass: { [field]: n - 1 }, fail: { [field]: n + 1 } };
7806
+ }
7807
+ if (op === "lte" || op === "<=") {
7808
+ const field = extractPayloadFieldRef(guard[1]);
7809
+ const n = typeof guard[2] === "number" ? guard[2] : 0;
7810
+ if (field) return { pass: { [field]: n }, fail: { [field]: n + 1 } };
7811
+ }
7812
+ if (op === "and") {
7813
+ const subs = guard.slice(1).filter(Array.isArray);
7814
+ if (subs.length >= 2) {
7815
+ const s1 = buildGuardPayloads(subs[0]);
7816
+ const s2 = buildGuardPayloads(subs[1]);
7817
+ return { pass: { ...s1.pass, ...s2.pass }, fail: s1.fail };
7818
+ }
7819
+ if (subs.length === 1) return buildGuardPayloads(subs[0]);
7820
+ }
7821
+ if (op === "or") {
7822
+ const subs = guard.slice(1).filter(Array.isArray);
7823
+ if (subs.length >= 2) {
7824
+ const s1 = buildGuardPayloads(subs[0]);
7825
+ const s2 = buildGuardPayloads(subs[1]);
7826
+ return { pass: s1.pass, fail: { ...s1.fail, ...s2.fail } };
7827
+ }
7828
+ if (subs.length === 1) return buildGuardPayloads(subs[0]);
7829
+ }
7830
+ if (op === "not") {
7831
+ const inner = buildGuardPayloads(guard[1]);
7832
+ return { pass: inner.fail, fail: inner.pass };
7833
+ }
7834
+ return { pass: {}, fail: {} };
7835
+ }
7836
+
7837
+ // src/state-machine/replay-paths.ts
7838
+ var ENTITY_PAYLOAD_FIELDS = /* @__PURE__ */ new Set(["data", "row", "item", "id"]);
7839
+ function buildReplayPaths(transitions, initialState, maxDepth = 3) {
7840
+ const queue = [{ state: initialState, path: [] }];
7841
+ const replayPaths = /* @__PURE__ */ new Map();
7842
+ replayPaths.set(initialState, []);
7843
+ while (queue.length > 0) {
7844
+ const { state, path } = queue.shift();
7845
+ if (path.length >= maxDepth) continue;
7846
+ const fromHere = transitions.filter(
7847
+ (t) => t.from === state && t.event !== "INIT"
7848
+ );
7849
+ for (const transition of fromHere) {
7850
+ if (replayPaths.has(transition.to)) continue;
7851
+ const renderEffect = transition.renderEffects.find((re) => re.patternType !== null);
7852
+ const stepNeedsEntityData = transition.hasGuard || transition.payloadFields.some((f) => ENTITY_PAYLOAD_FIELDS.has(f));
7853
+ const step = {
7854
+ event: transition.event,
7855
+ fromState: state,
7856
+ toState: transition.to,
7857
+ slot: renderEffect?.slot ?? "main",
7858
+ expectedPattern: renderEffect?.patternType ?? void 0,
7859
+ needsEntityData: stepNeedsEntityData,
7860
+ payloadSchema: transition.payloadSchema.length > 0 ? transition.payloadSchema : void 0
7861
+ };
7862
+ const newPath = [...path, step];
7863
+ replayPaths.set(transition.to, newPath);
7864
+ queue.push({ state: transition.to, path: newPath });
7865
+ }
7866
+ }
7867
+ return replayPaths;
7868
+ }
7869
+
7870
+ 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, EFFECT_REGISTRY, ENTITY_ROLES, EffectSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FIELD_TYPE_REGISTRY, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GUARD_REGISTRY, GameSubCategorySchema, GameTypeSchema, GuardSchema, InteractionModelSchema, KEYWORDS, Lexer, MULTI_WORD_KEYWORDS, 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, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TokenType, TraitCategorySchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, applySectionUpdate, buildGuardPayloads, buildReplayPaths, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectReachableStates, computeSchemaHash, convertDomainToSchema, convertEntitiesToDomain, convertPagesToDomain, convertSchemaToDomain, convertTraitsToDomain, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createMappingStore, createResolvedField, createTypedEventBus, deleteSection, deriveCollection, despawn, detectChanges, detectPageContentReduction, diffSchemas, doEffects, domainKeywordToSchemaType, emit, extractPayloadFieldRef, findMapping, findMappingByPath, findMappingsByType, findService, formatBehaviorToDomain, formatBehaviorToSchema, formatDomainGuardToSchema, formatEntityToDomain, formatEntityToSchema, formatGuardConditionToDomain, formatGuardToDomain, formatGuardToSchema, formatMergeSummary, formatPageToDomain, formatPageToSchema, formatSchemaEntityToDomain, formatSchemaGuardToDomain, formatSchemaPageToDomain, formatSchemaTraitToDomain, generateDomainLanguageReference, generateSectionId, getAllOperators, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getEffectMapping, getEntity, getFieldTypeMapping, getGuardMapping, getInteractionModelForDomain, getOperator, getPage, getPages, getRegisteredEffects, getRegisteredFieldTypes, getRegisteredGuards, getRegistryStats, getRemovals, getSchemaCacheStats, getSchemaPath, getServiceNames, getTrait, getTraitConfig, getTraitName, hasSchemaChanged, hasService, hasSignificantPageReduction, inferTsType, isBinding, isCircuitEvent, isDestructiveChange, isEffect, isEffectRegistered, isEntityReference, isFieldTypeRegistered, isGuardRegistered, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, mergeDomainChunks, navigate, normalizeTraitRef, notify, parseAssetKey, parseBehavior, parseBinding, parseDomainEffect, parseDomainEffects, parseDomainGuard, parseEntity, parseEntityRef, parseGuard, parseImportedTraitRef, parseOrbitalSchema, parsePage, parsePageRef, parseSectionId, parseServiceRef, persist, removeMapping, renderUI, requiresConfirmation, resolveConflict, safeParseOrbitalSchema, schemaEntityToDomainEntity, schemaPageToDomainPage, schemaToIR, schemaTraitToDomainBehavior, schemaTypeToDomainKeyword, set, sexpr, spawn, summarizeOrbital, summarizeSchema, tokenize, updateMappingRange, updateSchemaHash, upsertMapping, validateAssetAnimations, validateBindingInContext, validateDomainChunk, walkSExpr, walkStatePairs };
7703
7871
  //# sourceMappingURL=index.js.map
7704
7872
  //# sourceMappingURL=index.js.map