@almadar/core 5.1.0 → 5.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/builders.d.ts +5 -24
- package/dist/builders.js +56 -33
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-vE2bU7TB.d.ts → compose-behaviors-BOy-gFQn.d.ts} +1 -1
- package/dist/domain-language/index.d.ts +1 -1
- package/dist/domain-language/index.js +56 -33
- package/dist/domain-language/index.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +62 -35
- package/dist/index.js.map +1 -1
- package/dist/{schema-CsX_xlhO.d.ts → schema-ks5fDpzp.d.ts} +4932 -3580
- package/dist/types/index.d.ts +36 -14
- package/dist/types/index.js +57 -34
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES,
|
|
1
|
+
import { h as OrbitalSchema, m as State, O as OrbitalDefinition } from './schema-ks5fDpzp.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, n as ALLOWED_CUSTOM_COMPONENTS, o as AgentDomainCategory, p as AgentDomainCategorySchema, q as AgentEffect, r as AllowedCustomComponent, s as AnimationDef, t as AnimationDefInput, u as AnimationDefSchema, v as AssetMap, w as AssetMapInput, x as AssetMapSchema, y as AssetMapping, z as AssetMappingInput, B as AssetMappingSchema, C as AtomicEffect, D as CORE_BINDINGS, F as CallServiceConfig, G as CallServiceEffect, H as ComputedEventContract, I as ComputedEventContractSchema, J as ComputedEventListener, K as ComputedEventListenerSchema, L as CoreBinding, M as CustomPatternDefinition, N as CustomPatternDefinitionInput, Q as CustomPatternDefinitionSchema, R as CustomPatternMap, V as CustomPatternMapInput, W as CustomPatternMapSchema, X as DerefEffect, Y as DesignPreferences, Z as DesignPreferencesInput, _ as DesignPreferencesSchema, $ as DesignTokens, a0 as DesignTokensInput, a1 as DesignTokensSchema, a2 as DespawnEffect, a3 as DoEffect, a4 as DomainCategory, a5 as DomainCategorySchema, a6 as DomainContext, a7 as DomainContextInput, a8 as DomainContextSchema, a9 as DomainVocabulary, aa as DomainVocabularySchema, ab as ENTITY_ROLES, ac as Effect, ad as EffectInput, ae as EffectSchema, af as EmitConfig, ag as EmitEffect, E as Entity, ah as EntityCall, ai as EntityCallSchema, aj as EntityData, c as EntityField, ak as EntityFieldInput, al as EntityFieldSchema, d as EntityPersistence, am as EntityPersistenceSchema, f as EntityRef, an as EntityRefSchema, ao as EntityRefStringSchema, ap as EntityRole, aq as EntityRoleSchema, e as EntityRow, ar as EntitySchema, as as EntitySemanticRole, at as EntitySemanticRoleSchema, au as EvalContext, av as Event, aw as EventInput, ax as EventListener, ay as EventListenerSchema, az as EventPayload, aA as EventPayloadField, aB as EventPayloadFieldSchema, aC as EventSchema, aD as EventScope, aE as EventScopeSchema, aF as EventSemanticRole, aG as EventSemanticRoleSchema, aH as EventSource, aI as EventSourceSchema, aJ as Expression, aK as ExpressionInput, aL as ExpressionSchema, aM as FetchEffect, aN as Field, aO as FieldFormat, aP as FieldFormatSchema, aQ as FieldSchema, aR as FieldType, aS as FieldTypeSchema, aT as FieldValue, aU as FullOrbitalUnit, aV as GAME_TYPES, aW as GameSubCategory, aX as GameSubCategorySchema, aY as GameType, aZ as GameTypeSchema, a_ as Guard, a$ as GuardInput, b0 as GuardSchema, b1 as ListenSource, b2 as ListenSourceSchema, b3 as LogEffect, b4 as LogMeta, b5 as McpServiceDef, b6 as McpServiceDefSchema, b7 as NavigateEffect, b8 as NodeClassification, b9 as NodeClassificationSchema, ba as NotifyEffect, aU as Orbital, bb as OrbitalConfig, bc as OrbitalConfigInput, bd as OrbitalConfigSchema, be as OrbitalDefinitionSchema, bf as OrbitalEntity, bg as OrbitalEntityInput, bh as OrbitalEntitySchema, bi as OrbitalInput, bj as OrbitalPage, bk as OrbitalPageInput, bl as OrbitalPageSchema, bm as OrbitalPageStrictInput, bn as OrbitalPageStrictSchema, bo as OrbitalSchemaInput, bp as OrbitalSchemaSchema, bq as OrbitalTraitRef, br as OrbitalTraitRefSchema, bs as OrbitalUnit, bt as OrbitalUnitSchema, bu as OrbitalZodSchema, j as Page, P as PageRef, k as PageRefObject, bv as PageRefObjectSchema, bw as PageRefSchema, bx as PageRefStringSchema, by as PageSchema, bz as PageTraitRef, bA as PageTraitRefSchema, bB as ParsedBinding, bC as PayloadField, bD as PayloadFieldSchema, bE as PersistEffect, bF as PresentationType, bG as RefEffect, bH as RelatedLink, bI as RelatedLinkSchema, bJ as RelationConfig, bK as RelationConfigSchema, bL as RenderItemLambda, bM as RenderUIConfig, bN as RenderUIEffect, bO as RenderUINode, bP as RequiredField, bQ as RequiredFieldSchema, bR as ResolvedAsset, bS as ResolvedAssetInput, bT as ResolvedAssetSchema, bU as ResolvedPatternProps, bV as RestAuthConfig, bW as RestAuthConfigSchema, bX as RestServiceDef, bY as RestServiceDefSchema, bZ as SERVICE_TYPES, S as SExpr, b_ as SExprAtom, b$ as SExprAtomSchema, c0 as SExprInput, c1 as SExprSchema, c2 as SemanticAssetRef, c3 as SemanticAssetRefInput, c4 as SemanticAssetRefSchema, c5 as ServiceDefinition, c6 as ServiceDefinitionSchema, c7 as ServiceParams, c8 as ServiceRef, c9 as ServiceRefObject, ca as ServiceRefObjectSchema, cb as ServiceRefSchema, cc as ServiceRefStringSchema, cd as ServiceType, ce as ServiceTypeSchema, cf as SetEffect, cg as SocketEvents, ch as SocketEventsSchema, ci as SocketServiceDef, cj as SocketServiceDefSchema, ck as SpawnEffect, cl as StateInput, cm as StateMachine, cn as StateMachineInput, co as StateMachineSchema, cp as StateSchema, cq as StateSemanticRole, cr as StateSemanticRoleSchema, cs as SuggestedGuard, ct as SuggestedGuardSchema, cu as SwapEffect, cv as ThemeDefinition, cw as ThemeDefinitionSchema, cx as ThemeRef, cy as ThemeRefSchema, cz as ThemeRefStringSchema, cA as ThemeTokens, cB as ThemeTokensSchema, cC as ThemeVariant, cD as ThemeVariantSchema, i as Trait, cE as TraitCategory, cF as TraitCategorySchema, b as TraitConfig, cG as TraitConfigObject, cH as TraitConfigSchema, cI as TraitConfigValue, cJ as TraitConfigValueSchema, cK as TraitDataEntity, cL as TraitDataEntitySchema, cM as TraitEntityField, cN as TraitEntityFieldSchema, T as TraitEventContract, cO as TraitEventContractSchema, a as TraitEventListener, cP as TraitEventListenerSchema, cQ as TraitInput, g as TraitRef, cR as TraitRefSchema, l as TraitReference, cS as TraitReferenceInput, cT as TraitReferenceSchema, cU as TraitSchema, cV as TraitTick, cW as TraitTickSchema, cX as TraitUIBinding, cY as Transition, cZ as TransitionInput, c_ as TransitionSchema, c$ as TypedEffect, d0 as UISlot, d1 as UISlotSchema, d2 as UI_SLOTS, d3 as UXHints, d4 as UXHintsSchema, U as UseDeclaration, d5 as UseDeclarationSchema, d6 as UserPersona, d7 as UserPersonaInput, d8 as UserPersonaSchema, d9 as VISUAL_STYLES, da as ViewType, db as ViewTypeSchema, dc as VisualStyle, dd as VisualStyleSchema, de as WatchEffect, df as WatchOptions, dg as atomic, dh as callService, di as collectBindings, dj as createAssetKey, dk as deref, dl as deriveCollection, dm as despawn, dn as doEffects, dp as emit, dq as findService, dr as getArgs, ds as getDefaultAnimationsForRole, dt as getOperator, du as getServiceNames, dv as getTraitConfig, dw as getTraitName, dx as hasService, dy as isBinding, dz as isCircuitEvent, dA as isEffect, dB as isEntityCall, dC as isEntityReference, dD as isEntityReferenceAny, dE as isImportedTraitRef, dF as isInlineTrait, dG as isMcpService, dH as isOrbitalDefinition, dI as isPageReference, dJ as isPageReferenceObject, dK as isPageReferenceString, dL as isRestService, dM as isRuntimeEntity, dN as isSExpr, dO as isSExprAtom, dP as isSExprCall, dQ as isSExprEffect, dR as isServiceReference, dS as isServiceReferenceObject, dT as isSingletonEntity, dU as isSocketService, dV as isThemeReference, dW as isValidBinding, dX as navigate, dY as normalizeTraitRef, dZ as notify, d_ as parseAssetKey, d$ as parseBinding, e0 as parseEntityRef, e1 as parseImportedTraitRef, e2 as parseOrbitalSchema, e3 as parsePageRef, e4 as parseServiceRef, e5 as persist, e6 as ref, e7 as renderUI, e8 as safeParseOrbitalSchema, e9 as set, ea as sexpr, eb as spawn, ec as swap, ed as validateAssetAnimations, ee as walkSExpr, ef as watch } from './schema-ks5fDpzp.js';
|
|
3
3
|
import { ResolvedIR, ResolvedEntity, ResolvedPage, ResolvedTrait, SchemaChange, CategorizedRemovals, PageContentReduction, SemanticSchemaChange } from './types/index.js';
|
|
4
|
-
export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AppSummary, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingContext, BindingSchema, ChangeAuthor, ChangeSetDocument, ChangeSummary, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EditFlow, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, LazyService, ListInteraction, PatternTypeSchema, PersistActionName, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SaveOptions, SaveResult, SemanticChangeKind, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotDocument, StatsView, StoreContract, StoreFilter, StoreFilterOp, TransitionFrom, ValidationDocument, ValidationIssue, ValidationMeta, ValidationResults, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isResolvedIR, validateBindingInContext } from './types/index.js';
|
|
4
|
+
export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AppSummary, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingContext, BindingSchema, ChangeAuthor, ChangeSetDocument, ChangeSummary, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EditFlow, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, LazyService, ListInteraction, PatternTypeSchema, PersistActionName, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SaveOptions, SaveResult, SemanticChangeKind, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotDocument, StatsView, StoreContract, StoreFilter, StoreFilterOp, TransitionFrom, ValidationDocument, ValidationIssue, ValidationMeta, ValidationResults, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, 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 { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-
|
|
6
|
+
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-BOy-gFQn.js';
|
|
7
7
|
export { BFSNode, BFSPathNode, EdgeWalkTransition, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, WalkStep, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
|
|
8
8
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
|
9
9
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -239,36 +239,6 @@ function isRuntimeEntity(entity) {
|
|
|
239
239
|
function isSingletonEntity(entity) {
|
|
240
240
|
return entity.persistence === "singleton";
|
|
241
241
|
}
|
|
242
|
-
var ViewTypeSchema = z.enum([
|
|
243
|
-
"list",
|
|
244
|
-
"detail",
|
|
245
|
-
"create",
|
|
246
|
-
"edit",
|
|
247
|
-
"dashboard",
|
|
248
|
-
"custom"
|
|
249
|
-
]);
|
|
250
|
-
var PageTraitRefSchema = z.object({
|
|
251
|
-
ref: z.string().min(1, "Trait ref is required"),
|
|
252
|
-
linkedEntity: z.string().optional(),
|
|
253
|
-
config: z.record(z.unknown()).optional()
|
|
254
|
-
});
|
|
255
|
-
var OrbitalPageStrictSchema = z.object({
|
|
256
|
-
name: z.string().min(1, "Page name is required"),
|
|
257
|
-
path: z.string().min(1, "Page path is required").startsWith("/", "Path must start with /"),
|
|
258
|
-
primaryEntity: z.string().min(1, "Primary entity is required"),
|
|
259
|
-
traits: z.array(PageTraitRefSchema).min(1, "Page must have at least one trait"),
|
|
260
|
-
title: z.string().optional()
|
|
261
|
-
}).strict();
|
|
262
|
-
var OrbitalPageSchema = z.object({
|
|
263
|
-
name: z.string().min(1, "Page name is required"),
|
|
264
|
-
path: z.string().min(1, "Page path is required").startsWith("/", "Path must start with /"),
|
|
265
|
-
viewType: ViewTypeSchema.optional(),
|
|
266
|
-
title: z.string().optional(),
|
|
267
|
-
primaryEntity: z.string().optional(),
|
|
268
|
-
traits: z.array(PageTraitRefSchema).optional(),
|
|
269
|
-
isInitial: z.boolean().optional()
|
|
270
|
-
}).strict();
|
|
271
|
-
var PageSchema = OrbitalPageSchema;
|
|
272
242
|
var UI_SLOTS = [
|
|
273
243
|
// App slots
|
|
274
244
|
"main",
|
|
@@ -494,6 +464,17 @@ function isCircuitEvent(event) {
|
|
|
494
464
|
}
|
|
495
465
|
|
|
496
466
|
// src/types/trait.ts
|
|
467
|
+
var TraitConfigValueSchema = z.lazy(
|
|
468
|
+
() => z.union([
|
|
469
|
+
z.string(),
|
|
470
|
+
z.number(),
|
|
471
|
+
z.boolean(),
|
|
472
|
+
z.null(),
|
|
473
|
+
z.array(TraitConfigValueSchema),
|
|
474
|
+
z.record(TraitConfigValueSchema)
|
|
475
|
+
])
|
|
476
|
+
);
|
|
477
|
+
var TraitConfigSchema = z.record(TraitConfigValueSchema);
|
|
497
478
|
var TraitCategorySchema = z.enum([
|
|
498
479
|
"lifecycle",
|
|
499
480
|
"temporal",
|
|
@@ -566,12 +547,22 @@ var TraitEventContractSchema = z.object({
|
|
|
566
547
|
payload: z.array(EventPayloadFieldSchema).optional(),
|
|
567
548
|
scope: EventScopeSchema.optional()
|
|
568
549
|
});
|
|
550
|
+
var ListenSourceSchema = z.union([
|
|
551
|
+
z.object({ kind: z.literal("any") }),
|
|
552
|
+
z.object({ kind: z.literal("trait"), trait: z.string().min(1) }),
|
|
553
|
+
z.object({
|
|
554
|
+
kind: z.literal("orbital"),
|
|
555
|
+
orbital: z.string().min(1),
|
|
556
|
+
trait: z.string().min(1)
|
|
557
|
+
})
|
|
558
|
+
]);
|
|
569
559
|
var TraitEventListenerSchema = z.object({
|
|
570
560
|
event: z.string().min(1),
|
|
571
561
|
triggers: z.string().min(1),
|
|
572
562
|
guard: ExpressionSchema.optional(),
|
|
573
563
|
scope: EventScopeSchema.optional(),
|
|
574
|
-
payloadMapping: z.record(z.string()).optional()
|
|
564
|
+
payloadMapping: z.record(z.string()).optional(),
|
|
565
|
+
source: ListenSourceSchema.optional()
|
|
575
566
|
});
|
|
576
567
|
var RequiredFieldSchema = z.object({
|
|
577
568
|
name: z.string().min(1),
|
|
@@ -588,7 +579,7 @@ var TraitReferenceSchema = z.object({
|
|
|
588
579
|
z.string().min(1, "events key (atom event name) must be non-empty"),
|
|
589
580
|
z.string().min(1, "events value (caller event name) must be non-empty")
|
|
590
581
|
).optional(),
|
|
591
|
-
config:
|
|
582
|
+
config: TraitConfigSchema.optional(),
|
|
592
583
|
appliesTo: z.array(z.string()).optional(),
|
|
593
584
|
// Phase F.7: zod accepts an array (the inliner validates element
|
|
594
585
|
// shape). The full ListenDefinition shape isn't recursively encoded
|
|
@@ -639,7 +630,7 @@ var TraitRefSchema = z.union([
|
|
|
639
630
|
z.string().min(1),
|
|
640
631
|
z.object({
|
|
641
632
|
ref: z.string().min(1),
|
|
642
|
-
config:
|
|
633
|
+
config: TraitConfigSchema.optional(),
|
|
643
634
|
linkedEntity: z.string().optional(),
|
|
644
635
|
name: z.string().optional(),
|
|
645
636
|
// Phase F.4: same non-empty refine as TraitReferenceSchema.events.
|
|
@@ -684,6 +675,38 @@ function normalizeTraitRef(traitRef) {
|
|
|
684
675
|
return traitRef;
|
|
685
676
|
}
|
|
686
677
|
var OrbitalTraitRefSchema = TraitRefSchema;
|
|
678
|
+
|
|
679
|
+
// src/types/page.ts
|
|
680
|
+
var ViewTypeSchema = z.enum([
|
|
681
|
+
"list",
|
|
682
|
+
"detail",
|
|
683
|
+
"create",
|
|
684
|
+
"edit",
|
|
685
|
+
"dashboard",
|
|
686
|
+
"custom"
|
|
687
|
+
]);
|
|
688
|
+
var PageTraitRefSchema = z.object({
|
|
689
|
+
ref: z.string().min(1, "Trait ref is required"),
|
|
690
|
+
linkedEntity: z.string().optional(),
|
|
691
|
+
config: TraitConfigSchema.optional()
|
|
692
|
+
});
|
|
693
|
+
var OrbitalPageStrictSchema = z.object({
|
|
694
|
+
name: z.string().min(1, "Page name is required"),
|
|
695
|
+
path: z.string().min(1, "Page path is required").startsWith("/", "Path must start with /"),
|
|
696
|
+
primaryEntity: z.string().min(1, "Primary entity is required"),
|
|
697
|
+
traits: z.array(PageTraitRefSchema).min(1, "Page must have at least one trait"),
|
|
698
|
+
title: z.string().optional()
|
|
699
|
+
}).strict();
|
|
700
|
+
var OrbitalPageSchema = z.object({
|
|
701
|
+
name: z.string().min(1, "Page name is required"),
|
|
702
|
+
path: z.string().min(1, "Page path is required").startsWith("/", "Path must start with /"),
|
|
703
|
+
viewType: ViewTypeSchema.optional(),
|
|
704
|
+
title: z.string().optional(),
|
|
705
|
+
primaryEntity: z.string().optional(),
|
|
706
|
+
traits: z.array(PageTraitRefSchema).optional(),
|
|
707
|
+
isInitial: z.boolean().optional()
|
|
708
|
+
}).strict();
|
|
709
|
+
var PageSchema = OrbitalPageSchema;
|
|
687
710
|
var DomainCategorySchema = z.enum([
|
|
688
711
|
"healthcare",
|
|
689
712
|
"education",
|
|
@@ -1416,7 +1439,11 @@ function schemaToIR(schema, useCache = true) {
|
|
|
1416
1439
|
};
|
|
1417
1440
|
ir.entities.set(entity.name, entity);
|
|
1418
1441
|
}
|
|
1419
|
-
for (const
|
|
1442
|
+
for (const rawTrait of orbital.traits || []) {
|
|
1443
|
+
const wrap = rawTrait;
|
|
1444
|
+
const maybeResolved = wrap["_resolved"];
|
|
1445
|
+
const trait = maybeResolved && maybeResolved.stateMachine ? maybeResolved : rawTrait;
|
|
1446
|
+
if (!trait.name) continue;
|
|
1420
1447
|
const resolvedTrait = {
|
|
1421
1448
|
name: trait.name,
|
|
1422
1449
|
description: trait.description,
|
|
@@ -8568,6 +8595,6 @@ function buildPayloadForEdge(transition, guardCase) {
|
|
|
8568
8595
|
return {};
|
|
8569
8596
|
}
|
|
8570
8597
|
|
|
8571
|
-
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, EntityCallSchema, 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, ServiceRefObjectSchema, 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, applyEventWiring, applySectionUpdate, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectReachableStates, composeBehaviors, computeSchemaHash, convertDomainToSchema, convertEntitiesToDomain, convertPagesToDomain, convertSchemaToDomain, convertTraitsToDomain, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createMappingStore, createResolvedField, createTypedEventBus, deleteSection, deref, deriveCollection, despawn, detectChanges, detectLayoutStrategy, detectPageContentReduction, diffSchemaSemantics, 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, 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, isEntityCall, isEntityReference, isEntityReferenceAny, isFieldTypeRegistered, isGuardRegistered, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, mergeDomainChunks, navigate, normalizeTraitRef, notify, parseAssetKey, parseBehavior, parseBinding, parseDomainEffect, parseDomainEffects, parseDomainGuard, parseEntity, parseEntityRef, parseGuard, parseImportedTraitRef, parseOrbitalSchema, parsePage, parsePageRef, parseSectionId, parseServiceRef, persist, ref, removeMapping, renderUI, requiresConfirmation, resolveConflict, safeParseOrbitalSchema, schemaEntityToDomainEntity, schemaPageToDomainPage, schemaToIR, schemaTraitToDomainBehavior, schemaTypeToDomainKeyword, set, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tokenize, updateMappingRange, updateSchemaHash, upsertMapping, validateAssetAnimations, validateBindingInContext, validateDomainChunk, walkSExpr, walkStatePairs, watch };
|
|
8598
|
+
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, EntityCallSchema, 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, ListenSourceSchema, 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, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TokenType, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, applyEventWiring, applySectionUpdate, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectReachableStates, composeBehaviors, computeSchemaHash, convertDomainToSchema, convertEntitiesToDomain, convertPagesToDomain, convertSchemaToDomain, convertTraitsToDomain, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createMappingStore, createResolvedField, createTypedEventBus, deleteSection, deref, deriveCollection, despawn, detectChanges, detectLayoutStrategy, detectPageContentReduction, diffSchemaSemantics, 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, 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, isEntityCall, isEntityReference, isEntityReferenceAny, isFieldTypeRegistered, isGuardRegistered, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, mergeDomainChunks, navigate, normalizeTraitRef, notify, parseAssetKey, parseBehavior, parseBinding, parseDomainEffect, parseDomainEffects, parseDomainGuard, parseEntity, parseEntityRef, parseGuard, parseImportedTraitRef, parseOrbitalSchema, parsePage, parsePageRef, parseSectionId, parseServiceRef, persist, ref, removeMapping, renderUI, requiresConfirmation, resolveConflict, safeParseOrbitalSchema, schemaEntityToDomainEntity, schemaPageToDomainPage, schemaToIR, schemaTraitToDomainBehavior, schemaTypeToDomainKeyword, set, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tokenize, updateMappingRange, updateSchemaHash, upsertMapping, validateAssetAnimations, validateBindingInContext, validateDomainChunk, walkSExpr, walkStatePairs, watch };
|
|
8572
8599
|
//# sourceMappingURL=index.js.map
|
|
8573
8600
|
//# sourceMappingURL=index.js.map
|