@almadar/core 10.15.0 → 10.16.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 +3 -3
- package/dist/builders.js +2 -4
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-Ds6d_mMY.d.ts → compose-behaviors-DEeRtnHP.d.ts} +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/factory/index.js +1 -4
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +3 -5
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +45 -8
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/dist/{schema-BVcq7eXk.d.ts → schema-BOGLyI7O.d.ts} +401 -289
- package/dist/{trait-Ctj2l6ma.d.ts → trait-BnNByIRE.d.ts} +70 -63
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.js +3 -8
- package/dist/types/index.js.map +1 -1
- package/dist/{types-QQ9BTzkx.d.ts → types-By4AQApw.d.ts} +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
export { A as ANIMATION_NAMES,
|
|
1
|
+
import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-BOGLyI7O.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-BOGLyI7O.js';
|
|
3
|
+
import { q as State, F as FieldValue, h as EntityRow } from './trait-BnNByIRE.js';
|
|
4
|
+
export { A as ANIMATION_NAMES, r as ASSET_ASPECTS, s as ASSET_DIMENSIONS, t as AgentEffect, u as AnimationDef, v as AnimationDefInput, w as AnimationDefSchema, x as AnimationName, y as AnimationNameSchema, z as ArrayEntityField, B as Asset, D as AssetAspect, G as AssetAspectSchema, H as AssetCatalog, I as AssetCatalogEntry, J as AssetCatalogEntryInput, K as AssetCatalogEntrySchema, L as AssetCatalogSchema, M as AssetDimension, N as AssetDimensionSchema, O as AssetMap, P as AssetMapInput, Q as AssetMapSchema, V as AssetMapping, W as AssetMappingInput, X as AssetMappingSchema, Y as AssetSchema, Z as AssetUrl, _ as AtomicEffect, $ as CallServiceConfig, a0 as CallServiceEffect, C as CallSiteConfig, p as CallSiteConfigEntry, a1 as CharacterKit, a2 as CharacterKitLayer, a3 as CharacterKitLayerSchema, a4 as CharacterKitSchema, a5 as CheckpointLoadEffect, a6 as CheckpointSaveEffect, n as ConfigFieldDeclaration, a7 as ConfigFieldDeclarationSchema, a8 as DeclaredTraitConfig, a9 as DeclaredTraitConfigSchema, aa as DerefEffect, ab as DespawnEffect, ac as DoEffect, ad as ENTITY_ROLES, E as Effect, ae as EffectInput, af as EffectSchema, ag as EmitConfig, ah as EmitEffect, d as Entity, ai as EntityData, f as EntityField, aj as EntityFieldContract, ak as EntityFieldContractSchema, al as EntityFieldInput, am as EntityFieldSchema, g as EntityPersistence, an as EntityPersistenceSchema, ao as EntityRole, ap as EntityRoleSchema, aq as EntitySchema, ar as EntityWith, as as EnumEntityField, at as EvaluateConfig, au as EvaluateEffect, av as Event, aw as EventInput, m as EventPayloadField, ax as EventPayloadFieldSchema, ay as EventSchema, az as EventScope, aA as EventScopeSchema, aB as FetchEffect, aC as FetchOptions, aD as FetchResult, aE as Field, aF as FieldFormat, aG as FieldFormatSchema, aH as FieldSchema, aI as FieldType, aJ as FieldTypeSchema, aK as ForwardConfig, aL as ForwardEffect, aM as GAME_TYPES, aN as GameType, aO as GameTypeSchema, aP as Guard, aQ as GuardInput, aR as GuardSchema, aS as ListenSource, aT as ListenSourceSchema, aU as LogEffect, aV as McpServiceDef, aW as McpServiceDefSchema, aX as NavigateEffect, aY as NnConfig, aZ as NnLayer, a_ as NotifyEffect, a$ as OrbitalEntity, b0 as OrbitalEntityInput, b1 as OrbitalEntitySchema, b2 as OrbitalTraitRef, b3 as OrbitalTraitRefSchema, b4 as OsEffect, b5 as PACK_CLASSES, b6 as PackClass, b7 as PackClassSchema, b8 as PayloadField, b9 as PayloadFieldSchema, ba as PersistData, bb as PersistEffect, bc as PersistEmitConfig, bd as PresentationType, be as RefEffect, k as RelationConfig, bf as RelationConfigSchema, bg as RelationEntityField, R as RenderBinding, bh as RenderItemLambda, bi as RenderUIConfig, b as RenderUIEffect, bj as RenderUINode, bk as RequiredField, bl as RequiredFieldSchema, bm as ResolvedAsset, bn as ResolvedAssetInput, bo as ResolvedAssetSchema, bp as ResolvedPatternProps, bq as RestAuthConfig, br as RestAuthConfigSchema, bs as RestServiceDef, bt as RestServiceDefSchema, bu as SERVICE_TYPES, bv as SPRITE_DIRECTIONS, bw as ScalarEntityField, bx as SemanticAssetRef, by as SemanticAssetRefInput, bz as SemanticAssetRefSchema, o as ServiceDefinition, bA as ServiceDefinitionSchema, bB as ServiceParams, bC as ServiceParamsValue, S as ServiceRef, bD as ServiceRefObject, bE as ServiceRefObjectSchema, bF as ServiceRefSchema, bG as ServiceRefStringSchema, bH as ServiceType, bI as ServiceTypeSchema, bJ as SetEffect, bK as SocketEvents, bL as SocketEventsSchema, bM as SocketServiceDef, bN as SocketServiceDefSchema, bO as SpawnEffect, bP as SpriteDirection, bQ as SpriteDirectionSchema, bR as SpriteSheetAtlas, bS as SpriteSheetAtlasInput, bT as SpriteSheetAtlasSchema, bU as StateInput, bV as StateMachine, bW as StateMachineInput, bX as StateMachineSchema, bY as StateSchema, bZ as SubTexture, b_ as SubTextureSchema, b$ as SwapEffect, c0 as TextureAtlas, c1 as TextureAtlasSchema, c2 as Tilesheet, c3 as TilesheetSchema, c4 as TrainConfig, c5 as TrainEffect, a as Trait, c6 as TraitCategory, c7 as TraitCategorySchema, T as TraitConfig, l as TraitConfigObject, c8 as TraitConfigSchema, c9 as TraitConfigValue, ca as TraitConfigValueSchema, cb as TraitDataEntity, cc as TraitDataEntitySchema, cd as TraitEntityField, ce as TraitEntityFieldSchema, c as TraitEventContract, cf as TraitEventContractSchema, e as TraitEventListener, cg as TraitEventListenerSchema, ch as TraitInput, i as TraitRef, ci as TraitRefSchema, j as TraitReference, cj as TraitReferenceInput, ck as TraitReferenceSchema, cl as TraitSchema, cm as TraitTick, cn as TraitTickSchema, co as TraitUIBinding, cp as Transition, cq as TransitionInput, cr as TransitionSchema, cs as TypedEffect, U as UISlot, ct as UISlotSchema, cu as UI_SLOTS, cv as VISUAL_STYLES, cw as VisualStyle, cx as VisualStyleSchema, cy as WatchEffect, cz as WatchOptions, cA as atomic, cB as callService, cC as createAssetKey, cD as deref, cE as deriveCollection, cF as despawn, cG as doEffects, cH as emit, cI as findService, cJ as getDefaultAnimationsForRole, cK as getServiceNames, cL as getTraitConfig, cM as getTraitName, cN as hasService, cO as isCallSiteConfigDeclaration, cP as isCircuitEvent, cQ as isEffect, cR as isInlineTrait, cS as isMcpService, cT as isRestService, cU as isRuntimeEntity, cV as isSExprEffect, cW as isServiceReference, cX as isServiceReferenceObject, cY as isSocketService, cZ as navigate, c_ as normalizeTraitRef, c$ as notify, d0 as parseAssetKey, d1 as parseServiceRef, d2 as persist, d3 as persistenceModeAllowsOverrides, d4 as ref, d5 as renderUI, d6 as set, d7 as spawn, d8 as swap, d9 as validateAssetAnimations, da as watch } from './trait-BnNByIRE.js';
|
|
5
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, AppCreatedEvent, AppSummary, AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingContext, BindingRoot, BindingSchema, BridgeHealth, BusEvent, BusEventListener, BusEventSource, CancelledEvent, ChangeAuthor, ChangeSetDocument, ChangeSummary, ChangesetRecordedEvent, CheckStatus, CompleteEvent, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EdgeType, EditFlow, EffectPayload, EffectResult, EffectTrace, ErrorEvent, EventEmit, EventKey, EventListen, EventLogEntry, EvolutionDelta, FileOperationEvent, FileWrittenEvent, GateState, GenerationLogEvent, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, InterruptEvent, KNOWN_VALIDATION_ERROR_CODES, KnobPayload, KnownValidationErrorCode, LazyService, LineageEntry, ListInteraction, LivingEdge, LivingEffect, LivingEntity, LivingEvent, LivingField, LivingOrbital, LivingOrbitalSchema, LivingPage, LivingState, LivingTrait, LivingTransition, LivingValue, LivingVertex, MessageEvent, OrbitalAddedEvent, OrbitalSchemaCompleteEvent, OrbitalVerificationAPI, ParamsRepairEmittedEvent, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, Probability, ProcessCompleteEvent, ProcessErrorEvent, ProcessRepairCompleteEvent, ProcessRepairEvent, ProcessStartEvent, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SSEEvent, SSEEventBase, SSEEventType, SaveOptions, SaveResult, SchemaPhaseUpdateEvent, SchemaPhaseValidatedEvent, SchemaUpdateEvent, SemanticAnnotation, SemanticChangeKind, SemanticVector, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotCreatedEvent, SnapshotDocument, StartEvent, StatsView, StoreContract, StoreFilter, StoreFilterOp, SubagentCompleteEvent, SubagentEvent, SubagentProgressEvent, SubagentStartEvent, TodoActivityType, TodoDetailEvent, TodoUpdateEvent, ToolCallEvent, ToolResultEvent, 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
|
-
import { T as ToolArgs, J as JsonValue } from './types-
|
|
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-
|
|
8
|
+
import { T as ToolArgs, J as JsonValue } from './types-By4AQApw.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-By4AQApw.js';
|
|
10
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';
|
|
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-
|
|
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-DEeRtnHP.js';
|
|
12
12
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
|
13
13
|
export { BFSNode, BFSPathNode, EdgeWalkTransition, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, WalkStep, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, constTruth, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
|
|
14
14
|
import 'zod';
|
|
@@ -545,4 +545,41 @@ declare function summarizeOrbital(orbital: OrbitalDefinition): OrbitalDefinition
|
|
|
545
545
|
*/
|
|
546
546
|
declare function summarizeSchema(schema: OrbitalSchema): OrbitalSchema;
|
|
547
547
|
|
|
548
|
-
|
|
548
|
+
/**
|
|
549
|
+
* Shared-entity frame merge.
|
|
550
|
+
*
|
|
551
|
+
* The DRY primitive both execution paths share: several traits bound to one
|
|
552
|
+
* `[shared]` entity each contribute field writes per frame, and exactly one
|
|
553
|
+
* render trait paints the merged result. Both the JS interpreter (`@almadar/runtime`/
|
|
554
|
+
* `@almadar/ui`) and the generated TypeScript (Rust
|
|
555
|
+
* `orbital-shell-typescript` codegen) fold writes through this same
|
|
556
|
+
* function, so the two execution paths merge state identically.
|
|
557
|
+
*
|
|
558
|
+
* @packageDocumentation
|
|
559
|
+
*/
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* One field write a writer trait applies to the shared entity's running
|
|
563
|
+
* scratch state within a frame.
|
|
564
|
+
*/
|
|
565
|
+
interface EntityFieldWrite {
|
|
566
|
+
readonly field: string;
|
|
567
|
+
readonly value: FieldValue;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* A shared-entity snapshot. Aliases the canonical `EntityRow` — the SAME
|
|
571
|
+
* row shape every other entity-state surface in the codebase uses (guard
|
|
572
|
+
* contexts, `traitFieldStatesRef`, `RuntimeEntityStore`) — so a shared
|
|
573
|
+
* entity's snapshot needs no conversion at its boundaries.
|
|
574
|
+
*/
|
|
575
|
+
type EntityFrameState = EntityRow;
|
|
576
|
+
/**
|
|
577
|
+
* Field-level fold of ordered writes onto the current entity state. A
|
|
578
|
+
* later write to the same field overwrites an earlier one (ordered);
|
|
579
|
+
* fields absent from `orderedWrites` are carried over verbatim rather than
|
|
580
|
+
* the whole object being replaced, so disjoint writers never clobber each
|
|
581
|
+
* other.
|
|
582
|
+
*/
|
|
583
|
+
declare function mergeEntityFrame(current: EntityFrameState, orderedWrites: readonly EntityFieldWrite[]): EntityFrameState;
|
|
584
|
+
|
|
585
|
+
export { OrbitalSchema as AppSchema, CategorizedRemovals, ChangesetValue, type EditFocus, type EditFocusLevel, type EntityFieldWrite, type EntityFrameState, EntityRow, FieldValue, 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, mergeEntityFrame, navigatePatternPath, removeChildAtPath, replaceChildAtPath, requiresConfirmation, schemaToIR, setPropAtPath, summarizeOrbital, summarizeSchema };
|
package/dist/index.js
CHANGED
|
@@ -313,14 +313,12 @@ function validateAssetAnimations(assetRef, requiredAnimations) {
|
|
|
313
313
|
// src/types/entity.ts
|
|
314
314
|
var EntityPersistenceSchema = z.enum([
|
|
315
315
|
"persistent",
|
|
316
|
-
"runtime"
|
|
317
|
-
"singleton",
|
|
318
|
-
"instance",
|
|
319
|
-
"local"
|
|
316
|
+
"runtime"
|
|
320
317
|
]);
|
|
321
318
|
var OrbitalEntitySchema = z.object({
|
|
322
319
|
name: z.string().min(1, "Entity name is required"),
|
|
323
320
|
persistence: EntityPersistenceSchema.default("persistent"),
|
|
321
|
+
shared: z.boolean().optional(),
|
|
324
322
|
collection: z.string().optional(),
|
|
325
323
|
fields: z.array(EntityFieldSchema).min(1, "At least one field is required"),
|
|
326
324
|
instances: z.array(z.record(z.unknown())).optional(),
|
|
@@ -340,9 +338,6 @@ function deriveCollection(entity) {
|
|
|
340
338
|
function isRuntimeEntity(entity) {
|
|
341
339
|
return entity.persistence === "runtime";
|
|
342
340
|
}
|
|
343
|
-
function isSingletonEntity(entity) {
|
|
344
|
-
return entity.persistence === "singleton";
|
|
345
|
-
}
|
|
346
341
|
function persistenceModeAllowsOverrides(persistence) {
|
|
347
342
|
return persistence === "persistent" || persistence === void 0;
|
|
348
343
|
}
|
|
@@ -2244,7 +2239,7 @@ function schemaToIR(schema, useCache = true) {
|
|
|
2244
2239
|
relation: field.type === "relation" ? field.relation : void 0
|
|
2245
2240
|
})),
|
|
2246
2241
|
runtime: entityDef.persistence === "runtime",
|
|
2247
|
-
|
|
2242
|
+
shared: entityDef.shared,
|
|
2248
2243
|
hasInstances: (entityDef.instances?.length ?? 0) > 0,
|
|
2249
2244
|
instances: entityDef.instances,
|
|
2250
2245
|
defaults: entityDef.defaults,
|
|
@@ -3328,10 +3323,7 @@ function collectRuleCapabilities(overlay) {
|
|
|
3328
3323
|
// src/factory/questions/reducer.ts
|
|
3329
3324
|
var PERSISTENCE_VALUES = [
|
|
3330
3325
|
"persistent",
|
|
3331
|
-
"runtime"
|
|
3332
|
-
"singleton",
|
|
3333
|
-
"instance",
|
|
3334
|
-
"local"
|
|
3326
|
+
"runtime"
|
|
3335
3327
|
];
|
|
3336
3328
|
function answersToMutations(answers, questions) {
|
|
3337
3329
|
const out = [];
|
|
@@ -4511,6 +4503,16 @@ function buildPayloadForEdge(transition, guardCase) {
|
|
|
4511
4503
|
return {};
|
|
4512
4504
|
}
|
|
4513
4505
|
|
|
4514
|
-
|
|
4506
|
+
// src/shared-entity/merge.ts
|
|
4507
|
+
function mergeEntityFrame(current, orderedWrites) {
|
|
4508
|
+
if (orderedWrites.length === 0) return current;
|
|
4509
|
+
const next = { ...current };
|
|
4510
|
+
for (const write of orderedWrites) {
|
|
4511
|
+
next[write.field] = write.value;
|
|
4512
|
+
}
|
|
4513
|
+
return next;
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4516
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetMapSchema, AssetMappingSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CORE_BINDINGS, CharacterKitLayerSchema, CharacterKitSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PACK_CLASSES, PackClassSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyRenderOverlay, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectReachableStates, composeBehaviors, constTruth, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, deriveInputType, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, extractPayloadFieldRef, findService, fingerprintNode, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getEntity, getInteractionModelForDomain, getOperator, getPage, getPages, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, inferTsType, insertChildAtPath, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isDestructiveChange, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSocketService, isThemeReference, isTraitFieldRef, isValidBinding, mergeEntityFrame, navigate, navigatePatternPath, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, removeChildAtPath, renderUI, replaceChildAtPath, requiresConfirmation, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, toBindingRoot, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, walkSExpr, walkStatePairs, watch, widenTier };
|
|
4515
4517
|
//# sourceMappingURL=index.js.map
|
|
4516
4518
|
//# sourceMappingURL=index.js.map
|