@almadar/core 10.85.0 → 10.87.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 -4
- package/dist/builders.js +68 -29
- package/dist/builders.js.map +1 -1
- package/dist/{effect-BgDiw_bG.d.ts → effect-DMA97JxX.d.ts} +22 -6
- package/dist/{entityAccess-DK5S_2cT.d.ts → entityAccess-DNDEF75i.d.ts} +2 -2
- package/dist/{expression-Fk8bQWef.d.ts → expression-WfTp2arD.d.ts} +2 -65
- package/dist/factory/index.d.ts +6 -5
- package/dist/factory/index.js +1194 -401
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +35 -5
- package/dist/factory-runtime/index.js +127 -52
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/i18n/index.d.ts +179 -0
- package/dist/i18n/index.js +2391 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/{index-ChYsqVJj.d.ts → index-xZP_Ajx3.d.ts} +18 -5
- package/dist/index.d.ts +82 -13
- package/dist/index.js +3765 -315
- package/dist/index.js.map +1 -1
- package/dist/json-D8gmyK3l.d.ts +65 -0
- package/dist/mock/index.d.ts +129 -12
- package/dist/mock/index.js +192 -61
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +2525 -609
- package/dist/patterns/index.js +1238 -384
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +107 -23
- package/dist/patterns/patterns-registry.json +1170 -400
- package/dist/patterns/registry.json +1170 -400
- package/dist/patterns/services-registry.json +170 -35
- package/dist/{schema-BhfQb1oe.d.ts → schema-_SPrm5Ic.d.ts} +46381 -21335
- package/dist/state-machine/index.d.ts +2 -1
- package/dist/trait-9tfq2tQb.d.ts +10554 -0
- package/dist/types/index.d.ts +7 -6
- package/dist/types/index.js +132 -43
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CCAmdxcH.d.ts → types-CjRjhiaO.d.ts} +19 -3
- package/package.json +7 -2
- package/dist/trait-pavNlGqm.d.ts +0 -5385
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { A as AGENT_DOMAIN_CATEGORIES, f as ALLOWED_CUSTOM_COMPONENTS, g as AgentDomainCategory, h as AgentDomainCategorySchema, i as AllowedCustomComponent, O as AppSchema, C as ColorSlice, j as ColorSliceSchema, k as ColorTokens, l as ColorTokensSchema, m as ComputedEventContract, n as ComputedEventContractSchema, o as ComputedEventListener, p as ComputedEventListenerSchema, q as ConfigProvenanceRecord, r as ConfigProvenanceRecordSchema, s as CustomPatternDefinition, t as CustomPatternDefinitionInput, u as CustomPatternDefinitionSchema, v as CustomPatternMap, w as CustomPatternMapInput, x as CustomPatternMapSchema, D as DensitySlice, y as DensitySliceSchema, z as DensityTokens, B as DensityTokensSchema, F as DesignPreferences, G as DesignPreferencesInput, H as DesignPreferencesSchema, I as DesignTokens, J as DesignTokensInput, K as DesignTokensSchema, L as DomainCategory, M as DomainCategorySchema, N as DomainContext, Q as DomainContextInput, R as DomainContextSchema, S as DomainVocabulary, T as DomainVocabularySchema, V as ElevationSlice, W as ElevationSliceSchema, X as ElevationTokens, Y as ElevationTokensSchema, Z as EntityCall, _ as EntityCallSchema, E as EntityRef, $ as EntityRefSchema, a0 as EntityRefStringSchema, a1 as EntitySemanticRole, a2 as EntitySemanticRoleSchema, a3 as EventListener, a4 as EventListenerSchema, a5 as EventSemanticRole, a6 as EventSemanticRoleSchema, a7 as EventSource, a8 as EventSourceSchema, b as ExpectDeclaration, a9 as ExpectDeclarationSchema, aa as FullOrbitalUnit, ab as GameSubCategory, ac as GameSubCategorySchema, ad as GeometrySlice, ae as GeometrySliceSchema, af as GeometryTokens, ag as GeometryTokensSchema, ah as IconFamily, ai as IconFamilySchema, aj as IconographySlice, ak as IconographySliceSchema, al as IconographyTokens, am as IconographyTokensSchema, an as IllustrationSlice, ao as IllustrationSliceSchema, ap as IllustrationStyle, aq as IllustrationStyleSchema, ar as IllustrationTokens, as as IllustrationTokensSchema, at as MotionDurationKey, au as MotionDurationKeySchema, av as MotionDurationPalette, aw as MotionDurationPaletteSchema, ax as MotionEasingKey, ay as MotionEasingKeySchema, az as MotionEasingPalette, aA as MotionEasingPaletteSchema, aB as MotionIntent, aC as MotionIntentMap, aD as MotionIntentMapSchema, aE as MotionIntentSchema, aF as MotionSlice, aG as MotionSliceSchema, aH as MotionTokens, aI as MotionTokensSchema, aJ as NavItem, aK as NavStackEntry, aL as NodeClassification, aM as NodeClassificationSchema, aa as Orbital,
|
|
2
|
-
export {
|
|
3
|
-
export { C as CORE_BINDINGS,
|
|
4
|
-
export { A as ANONYMOUS_USER, f as AgentCodeSearchResult, g as AgentCompactResult, h as AgentCompactStrategy, i as AgentContext, j as AgentGenerateOptions, k as AgentMemoryCategory, l as AgentMemoryRecord, m as AnalysisOrbital, n as AnalysisOrbitalParams, o as AnalysisPageOverride, p as AnalysisRename, q as AnalysisResult, r as AnnotationTier, s as AppCreatedEvent, t as AppSummary, u as AssetLoadStatus, B as BINDING_CONTEXT_RULES, v as BINDING_DOCS, w as BINDING_ROOTS, x as BindingContext, y as BindingRoot, z as BindingSchema, D as BridgeHealth, E as BuilderResult, F as BusEvent, G as BusEventListener, H as BusEventSource, I as CancelledEvent, d as CategorizedRemovals, J as ChangeAuthor, K as ChangeSetDocument, L as ChangeSummary, M as ChangesetRecordedEvent, C as ChangesetValue, N as CheckStatus, O as Clarification, Q as ClarificationCandidate, T as ClarificationLevel, U as CompleteEvent, V as ComplexityAssessment, W as ComposeAllResult, X as ComposeChildrenResult, Y as ComposeOptions, Z as ContextExtensions, _ as CreateFlow, $ as DEFAULT_INTERACTION_MODELS, a0 as DEFAULT_VIEWER, a1 as DEV_TOKEN_PREFIX, a2 as DeleteFlow, a3 as DispatchUpdatesResult, a4 as DrawableDescriptor, a5 as EdgeType, a6 as EditFlow, a9 as EffectPayload, aa as EffectResult, ab as EffectTrace, ac as ErrorEvent, ad as EventEmit, ae as EventKey, af as EventListen, ag as EventLogEntry, ah as EvolutionDelta, ai as ExecutePlanResult, aj as ExtraTraitRef, ak as FileOperationEvent, al as FileWrittenEvent, am as GateState, an as GenerationLogEvent, ao as GitHubIssue, ap as GitHubLink, aq as GitHubRepo, ar as HistoryMeta, as as IntegrationContext, at as InteractionModel, au as InteractionModelInput, av as InteractionModelSchema, aw as InterruptEvent, ax as KNOWN_VALIDATION_ERROR_CODES, ay as KnobPayload, az as KnownValidationErrorCode, aA as LLMErrorContext, aB as LazyService, aC as LineageEntry, aD as ListInteraction, aE as LivingEdge, aF as LivingEffect, aG as LivingEntity, aH as LivingEvent, aI as LivingField, aJ as LivingOrbital, aK as LivingOrbitalSchema, aL as LivingPage, aM as LivingState, aN as LivingTrait, aO as LivingTransition, aP as LivingValue, aQ as LivingVertex, aR as LlmCallToolsResult, aS as LlmContext, aT as LlmMessage, aU as LlmTokenUsage, aV as LlmToolCall, aW as LlmToolDef, aX as LoloEmitResult, aY as MemoryContext, aZ as MessageEvent, a_ as OrbitalAddedEvent, a$ as OrbitalSchemaCompleteEvent, b0 as OrbitalVerificationAPI, P as PageContentReduction, b1 as ParamsRepairEmittedEvent, b2 as ParsedDesign, b3 as ParsedDomainContext, b4 as ParsedEmitDeclaration, b5 as ParsedEntity, b6 as ParsedEvent, b7 as ParsedListenDeclaration, b8 as ParsedOrbital, b9 as ParsedPage, ba as ParsedState, bb as ParsedStateMachine, bc as ParsedTrait, bd as ParsedTraitConfig, be as ParsedTransition, bf as PatternNode, bg as PatternTypeSchema, bh as PatternValue, bi as PersistActionName, bj as PlanSnapshot, bk as PlanSnapshotStatus, bl as PlannerResult, bm as Probability, bn as ProcessCompleteEvent, bo as ProcessErrorEvent, bp as ProcessRepairCompleteEvent, bq as ProcessRepairEvent, br as ProcessStartEvent, bs as RENDER_BINDING_MARKER, bt as RawUserClaims, bu as RenderBindingMarker, bz as RepairResult, a as ResolvedEntity, bA as ResolvedEntityBinding, bB as ResolvedField, R as ResolvedIR, bC as ResolvedNavigation, b as ResolvedPage, bD as ResolvedPattern, bE as ResolvedSection, bF as ResolvedSectionEvent, c as ResolvedTrait, bG as ResolvedTraitBinding, bH as ResolvedTraitDataEntity, bI as ResolvedTraitEvent, bJ as ResolvedTraitGuard, bK as ResolvedTraitListener, bL as ResolvedTraitState, bM as ResolvedTraitTick, bN as ResolvedTraitTransition, bO as ResolvedTraitUIBinding, bP as SSEEvent, bQ as SSEEventBase, bR as SSEEventType, bS as SaveOptions, bT as SaveResult, S as SchemaChange, bU as SchemaPhaseUpdateEvent, bV as SchemaPhaseValidatedEvent, bW as SchemaUpdateEvent, bX as SemanticAnnotation, bY as SemanticChangeKind, e as SemanticSchemaChange, bZ as SemanticVector, b_ as ServerResponseTrace, b$ as ServiceAction, c0 as ServiceActionName, c1 as ServiceCallResult, c2 as ServiceContract, c3 as ServiceEvents, c4 as SessionContext, c5 as SessionHistoryEntry, c6 as SnapshotCreatedEvent, c7 as SnapshotDocument, c8 as SpawnResult, c9 as StartEvent, ca as StatsView, cb as StoreContract, cc as StoreFilter, cd as StoreFilterOp, ce as SubagentCompleteEvent, cf as SubagentEvent, cg as SubagentProgressEvent, ch as SubagentStartEvent, ci as TodoActivityType, cj as TodoDetailEvent, ck as TodoUpdateEvent, cl as ToolCallEvent, cm as ToolResultEvent, cn as TraceContext, co as TraitFieldRef, cp as TraitFieldRefSchema, cq as TraitStateSnapshot, cr as TransitionFrom, cs as TransitionTrace, ct as Unsubscribe, cu as UserContext, cv as ValidateResult, cw as ValidationDocument, cx as ValidationError, cy as ValidationErrorCode, cz as ValidationIssue, cA as ValidationMeta, cB as ValidationResult, cC as ValidationResults, cD as VerificationCheck, cE as VerificationSnapshot, cF as VerificationSummary, cG as VertexId, cH as VertexPayload, cI as VertexType, cJ as ViewFlow, cK as WorkspaceContext, cM as containsEntityBinding, cN as containsPayloadBinding, cO as createEmptyResolvedPage, cP as createEmptyResolvedTrait, cQ as createLazyService, cR as createResolvedField, cS as createTypedEventBus, cT as decodeDevIdentityToken, cU as encodeDevIdentityToken, cV as findPersonaInRoster, cX as getBindingExamples, cY as getInteractionModelForDomain, cZ as inferTsType, c$ as isKnownValidationErrorCode, d0 as isPlanSnapshot, d1 as isRenderBindingMarker, d2 as isResolvedIR, d3 as isSessionHistoryEntry, d4 as isTraitFieldRef, d6 as normalizeUserContext, d7 as personaFromIdentityRow, da as resolveDefaultViewer, db as resolvePersonaSpec, dd as toBindingRoot, de as validateBindingInContext, df as widenTier } from '../index-
|
|
5
|
-
export { l as CONFIG_REF_EVENT_PATTERN, i as CallSiteConfig, j as CallSiteConfigEntry, C as ConfigFieldDeclaration, m as ConfigFieldDeclarationSchema, n as ConfigFieldItemsDeclaration, o as ConfigRefEventError, D as DeclaredTraitConfig, p as DeclaredTraitConfigSchema, q as EntityFieldContract, r as EntityFieldContractSchema, s as Event, t as EventInput, E as EventPayloadField, u as EventPayloadFieldSchema, v as EventSchema, w as EventScope, x as EventScopeSchema, G as Guard, y as GuardInput, z as GuardSchema, L as ListenSource, A as ListenSourceSchema, O as OrbitalTraitRef, B as OrbitalTraitRefSchema, P as PayloadField, F as PayloadFieldSchema, H as PayloadTypeWhen, I as PayloadTypeWhenSchema, J as PresentationType, R as REFERENCE_CONFIG_TYPES, K as ReferenceConfigType, M as RequiredField, N as RequiredFieldSchema, Q as SECRET_CONFIG_TYPES, U as SecretConfigType, S as State, V as StateInput, W as StateMachine, X as StateMachineInput, Y as StateMachineSchema, Z as StateSchema, _ as TickIntervalSchema, h as Trait, $ as TraitCategory, a0 as TraitCategorySchema, b as TraitConfig, c as TraitConfigObject, a1 as TraitConfigSchema,
|
|
1
|
+
export { A as AGENT_DOMAIN_CATEGORIES, f as ALLOWED_CUSTOM_COMPONENTS, g as AgentDomainCategory, h as AgentDomainCategorySchema, i as AllowedCustomComponent, O as AppSchema, C as ColorSlice, j as ColorSliceSchema, k as ColorTokens, l as ColorTokensSchema, m as ComputedEventContract, n as ComputedEventContractSchema, o as ComputedEventListener, p as ComputedEventListenerSchema, q as ConfigProvenanceRecord, r as ConfigProvenanceRecordSchema, s as CustomPatternDefinition, t as CustomPatternDefinitionInput, u as CustomPatternDefinitionSchema, v as CustomPatternMap, w as CustomPatternMapInput, x as CustomPatternMapSchema, D as DensitySlice, y as DensitySliceSchema, z as DensityTokens, B as DensityTokensSchema, F as DesignPreferences, G as DesignPreferencesInput, H as DesignPreferencesSchema, I as DesignTokens, J as DesignTokensInput, K as DesignTokensSchema, L as DomainCategory, M as DomainCategorySchema, N as DomainContext, Q as DomainContextInput, R as DomainContextSchema, S as DomainVocabulary, T as DomainVocabularySchema, V as ElevationSlice, W as ElevationSliceSchema, X as ElevationTokens, Y as ElevationTokensSchema, Z as EntityCall, _ as EntityCallSchema, E as EntityRef, $ as EntityRefSchema, a0 as EntityRefStringSchema, a1 as EntitySemanticRole, a2 as EntitySemanticRoleSchema, a3 as EventListener, a4 as EventListenerSchema, a5 as EventSemanticRole, a6 as EventSemanticRoleSchema, a7 as EventSource, a8 as EventSourceSchema, b as ExpectDeclaration, a9 as ExpectDeclarationSchema, aa as FullOrbitalUnit, ab as GameSubCategory, ac as GameSubCategorySchema, ad as GeometrySlice, ae as GeometrySliceSchema, af as GeometryTokens, ag as GeometryTokensSchema, ah as IconFamily, ai as IconFamilySchema, aj as IconographySlice, ak as IconographySliceSchema, al as IconographyTokens, am as IconographyTokensSchema, an as IllustrationSlice, ao as IllustrationSliceSchema, ap as IllustrationStyle, aq as IllustrationStyleSchema, ar as IllustrationTokens, as as IllustrationTokensSchema, at as MotionDurationKey, au as MotionDurationKeySchema, av as MotionDurationPalette, aw as MotionDurationPaletteSchema, ax as MotionEasingKey, ay as MotionEasingKeySchema, az as MotionEasingPalette, aA as MotionEasingPaletteSchema, aB as MotionIntent, aC as MotionIntentMap, aD as MotionIntentMapSchema, aE as MotionIntentSchema, aF as MotionSlice, aG as MotionSliceSchema, aH as MotionTokens, aI as MotionTokensSchema, aJ as NavItem, aK as NavStackEntry, aL as NodeClassification, aM as NodeClassificationSchema, aa as Orbital, a as OrbitalDefinition, aN as OrbitalDefinitionSchema, aO as OrbitalInput, e as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalRefObject, aU as OrbitalRefObjectSchema, aV as OrbitalRefStringSchema, O as OrbitalSchema, aW as OrbitalSchemaInput, aX as OrbitalSchemaSchema, aY as OrbitalSchemaWithTraits, aZ as OrbitalUnit, a_ as OrbitalUnitSchema, a$ as OrbitalZodSchema, c as Page, P as PageRef, d as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, b4 as PageTraitRef, b5 as PageTraitRefSchema, b6 as RelatedLink, b7 as RelatedLinkSchema, b8 as SchemaMetadata, b9 as SchemaMetadataSchema, ba as SkinSpec, bb as SkinSpecSchema, bc as SpacingScale, bd as SpacingScaleSchema, be as StateSemanticRole, bf as StateSemanticRoleSchema, bg as SuggestedGuard, bh as SuggestedGuardSchema, bi as ThemeDefinition, bj as ThemeDefinitionSchema, bk as ThemeRef, bl as ThemeRefSchema, bm as ThemeRefStringSchema, bn as ThemeTokens, bo as ThemeTokensSchema, bp as ThemeVariant, bq as ThemeVariantSchema, br as TypeIntent, bs as TypeIntentMap, bt as TypeIntentMapSchema, bu as TypeIntentSchema, bv as TypeScale, bw as TypeScaleEntry, bx as TypeScaleEntrySchema, by as TypeScaleSchema, bz as TypeScaleTokens, bA as TypeScaleTokensSchema, bB as TypeSizeKey, bC as TypeSizeKeySchema, bD as TypeSlice, bE as TypeSliceSchema, bF as TypeSlot, bG as TypeSlotSchema, bH as TypeWeight, bI as TypeWeightSchema, bJ as UXHints, bK as UXHintsSchema, U as UseDeclaration, bL as UseDeclarationSchema, bM as UserPersona, bN as UserPersonaInput, bO as UserPersonaSchema, a as ValidatedOrbital, bP as ViewType, bQ as ViewTypeSchema, bR as expectedEntityName, bS as isEntityCall, bT as isEntityReference, bU as isEntityReferenceAny, bV as isImportedTraitRef, bW as isOrbitalDefinition, bX as isPageReference, bY as isPageReferenceObject, bZ as isPageReferenceString, b_ as isThemeReference, b$ as parseEntityRef, c0 as parseImportedTraitRef, c1 as parseOrbitalRef, c2 as parseOrbitalSchema, c3 as parsePageRef, c4 as safeParseOrbitalSchema } from '../schema-_SPrm5Ic.js';
|
|
2
|
+
export { k as ANIMATION_NAMES, l as ASSET_ASPECTS, m as ASSET_DIMENSIONS, n as AgentEffect, o as AnimationDef, p as AnimationDefInput, q as AnimationDefSchema, r as AnimationName, s as AnimationNameSchema, t as ApplicationEffect, u as ArrayEntityField, v as Asset, w as AssetAspect, x as AssetAspectSchema, y as AssetCatalog, z as AssetCatalogEntry, B as AssetCatalogEntryInput, C as AssetCatalogEntrySchema, D as AssetCatalogSchema, G as AssetDimension, H as AssetDimensionSchema, J as AssetSchema, K as AssetUrl, L as AtomicEffect, M as AudioManifest, N as AudioManifestSchema, Q as BehaviorEffect, V as CAMERA_MODES, W as CallServiceConfig, X as CallServiceEffect, Y as Camera, Z as CameraMode, _ as CameraModeSchema, $ as CameraSchema, a0 as CheckpointLoadEffect, a1 as CheckpointSaveEffect, a2 as ComposeEffect, a3 as ControlValue, a4 as DEFAULT_UNIT_ANIMATION_ROWS, a5 as DerefEffect, a6 as DespawnEffect, a7 as DoEffect, a8 as ENTITY_ROLES, c as Effect, a9 as EffectInput, aa as EffectSchema, ab as EmitConfig, ac as EmitEffect, e as Entity, ad as EntityData, E as EntityField, ae as EntityFieldInput, af as EntityFieldSchema, d as EntityId, ag as EntityIdSchema, a as EntityPersistence, ah as EntityPersistenceSchema, ai as EntityRole, aj as EntityRoleSchema, g as EntityRow, ak as EntitySchema, al as EntityWith, am as EnumEntityField, an as EvaluateConfig, ao as EvaluateEffect, b as EventId, ap as EventIdSchema, aq as FIELD_TYPES, ar as FetchEffect, as as FetchOptions, at as FetchResult, au as Field, av as FieldSchema, aw as FieldType, ax as FieldTypeSchema, F as FieldValue, ay as FileValue, az as FileValueSchema, aA as ForwardConfig, aB as ForwardEffect, aC as IdForKind, aD as IdKind, I as IdentityLedger, aE as IdentityLedgerSchema, aF as LedgerEntry, aG as LedgerEntrySchema, aH as LedgerKind, aI as LedgerKindSchema, aJ as LlmEffect, aK as LogEffect, aL as MANIFEST_ASSET_LICENSES, aM as MANIFEST_CANVAS_AFFINITIES, aN as MANIFEST_ENTRY_KINDS, aO as MANIFEST_SOURCE_CATALOGS, aP as ManifestAssetLicense, aQ as ManifestAssetLicenseSchema, aR as ManifestCanvasAffinity, aS as ManifestCanvasAffinitySchema, aT as ManifestEntry, aU as ManifestEntryInput, aV as ManifestEntryKind, aW as ManifestEntryKindSchema, aX as ManifestEntrySchema, aY as ManifestFrameSpec, aZ as ManifestFrameSpecSchema, a_ as ManifestSourceCatalog, a$ as ManifestSourceCatalogSchema, b0 as McpServiceDef, b1 as McpServiceDefSchema, b2 as MemoryEffect, b3 as NavigateBackEffect, b4 as NavigateEffect, b5 as NavigateOptions, b6 as NnConfig, b7 as NnLayer, b8 as NotifyEffect, b9 as ObjectEntityField, f as OrbitalEntity, ba as OrbitalEntityInput, bb as OrbitalEntitySchema, O as OrbitalId, bc as OrbitalIdSchema, bd as OsEffect, be as PATTERN_TYPES, P as PageId, bf as PageIdSchema, bg as PaletteEntryId, bh as PaletteEntryIdSchema, bi as PatternConfig, bl as PatternType, bm as PersistData, bn as PersistEffect, bo as PersistEmitConfig, bp as RefEffect, R as RelationConfig, bq as RelationConfigSchema, br as RelationEntityField, i as RenderBinding, bs as RenderChildrenMap, bt as RenderItemLambda, j as RenderUIEffect, bu as RenderUINode, bv as ResolvedPatternProps, bw as RestAuthConfig, bx as RestAuthConfigSchema, by as RestServiceDef, bz as RestServiceDefSchema, bA as SEMANTIC_STRING_TYPES, bB as SERVICE_TYPES, bC as SHEET_PROJECTIONS, bD as SPRITE_DIRECTIONS, bE as SPRITE_SHEET_LAYOUT, bF as ScalarEntityField, bG as ScenePos, bH as ScenePosSchema, bI as SemanticAssetRef, bJ as SemanticAssetRefInput, bK as SemanticAssetRefSchema, bL as SemanticStringType, h as ServiceDefinition, bM as ServiceDefinitionSchema, bN as ServiceId, bO as ServiceIdSchema, bP as ServiceParams, bQ as ServiceParamsValue, S as ServiceRef, bR as ServiceRefObject, bS as ServiceRefObjectSchema, bT as ServiceRefSchema, bU as ServiceRefStringSchema, bV as ServiceType, bW as ServiceTypeSchema, bX as SessionEffect, bY as SetEffect, bZ as SheetProjection, b_ as SheetProjectionSchema, b$ as SocketEvents, c0 as SocketEventsSchema, c1 as SocketServiceDef, c2 as SocketServiceDefSchema, c3 as SoundEntry, c4 as SoundEntrySchema, c5 as SpawnEffect, c6 as SpriteDirection, c7 as SpriteDirectionSchema, c8 as SpriteSheetAtlas, c9 as SpriteSheetAtlasInput, ca as SpriteSheetAtlasSchema, cb as SpriteSheetLayout, cc as SubTexture, cd as SubTextureSchema, ce as SwapEffect, cf as TemplatePatternConfig, cg as TextureAtlas, ch as TextureAtlasSchema, ci as ThemeId, cj as ThemeIdSchema, ck as Tilesheet, cl as TilesheetSchema, cm as TraceEffect, cn as TrainConfig, co as TrainEffect, T as TraitId, cp as TraitIdSchema, cq as TypedEffect, U as UISlot, cr as UISlotSchema, cs as UI_SLOTS, ct as VISUAL_STYLES, cu as ValidateEffect, cv as VisualStyle, cw as VisualStyleSchema, cx as WatchEffect, cy as WatchOptions, cz as asEntityId, cA as asEventId, cB as asOrbitalId, cC as asPageId, cD as asPaletteEntryId, cE as asServiceId, cF as asThemeId, cG as asTraitId, cH as atomic, cI as callService, cJ as createAssetKey, cK as defaultUnitAtlas, cL as deref, cM as deriveCollection, cN as deriveId, cO as despawn, cP as doEffects, cQ as emit, cR as findService, cS as getDefaultAnimationsForRole, cT as getServiceNames, cU as hasService, cV as idKindOf, cW as idPrefix, cX as isEffect, cY as isEmailValue, cZ as isEntityId, c_ as isEventId, c$ as isFieldValue, d0 as isFileValue, d1 as isMcpService, d2 as isOrbitalId, d3 as isPageId, d4 as isPaletteEntryId, d5 as isPhoneValue, d6 as isRestService, d7 as isRuntimeEntity, d8 as isSExprEffect, d9 as isSemanticStringType, da as isSemanticStringValue, db as isServiceId, dc as isServiceReference, dd as isServiceReferenceObject, de as isSocketService, df as isThemeId, dg as isTraitId, dh as isUrlValue, di as isUuidValue, dj as isValidPatternType, dk as ledgerCurName, dl as ledgerRename, dm as ledgerResolveName, dn as manifestToAssetCatalog, dp as matchAssetQuery, dq as mintId, dr as navigate, ds as navigateBack, dt as notify, du as parseAssetKey, dv as parseAssetQuery, dw as parseServiceRef, dx as persist, dy as persistenceModeAllowsOverrides, dz as ref, dA as renderUI, dB as set, dC as spawn, dD as swap, dE as validateAssetAnimations, dF as watch } from '../effect-DMA97JxX.js';
|
|
3
|
+
export { C as CORE_BINDINGS, c as CoreBinding, d as EvalContext, a as EventPayload, b as EventPayloadValue, E as Expression, e as ExpressionInput, f as ExpressionSchema, L as LogMeta, g as LogMetaValue, P as ParsedBinding, S as SExpr, h as SExprAtom, i as SExprAtomSchema, j as SExprDataSchema, k as SExprInput, l as SExprObject, m as SExprSchema, n as collectBindings, o as getArgs, p as getOperator, q as isBinding, r as isEventPayloadValue, s as isSExpr, t as isSExprAtom, u as isSExprCall, v as isValidBinding, w as parseBinding, x as sexpr, y as walkSExpr } from '../expression-WfTp2arD.js';
|
|
4
|
+
export { A as ANONYMOUS_USER, f as AgentCodeSearchResult, g as AgentCompactResult, h as AgentCompactStrategy, i as AgentContext, j as AgentGenerateOptions, k as AgentMemoryCategory, l as AgentMemoryRecord, m as AnalysisOrbital, n as AnalysisOrbitalParams, o as AnalysisPageOverride, p as AnalysisRename, q as AnalysisResult, r as AnnotationTier, s as AppCreatedEvent, t as AppSummary, u as AssetLoadStatus, B as BINDING_CONTEXT_RULES, v as BINDING_DOCS, w as BINDING_ROOTS, x as BindingContext, y as BindingRoot, z as BindingSchema, D as BridgeHealth, E as BuilderResult, F as BusEvent, G as BusEventListener, H as BusEventSource, I as CancelledEvent, d as CategorizedRemovals, J as ChangeAuthor, K as ChangeSetDocument, L as ChangeSummary, M as ChangesetRecordedEvent, C as ChangesetValue, N as CheckStatus, O as Clarification, Q as ClarificationCandidate, T as ClarificationLevel, U as CompleteEvent, V as ComplexityAssessment, W as ComposeAllResult, X as ComposeChildrenResult, Y as ComposeOptions, Z as ContextExtensions, _ as CreateFlow, $ as DEFAULT_INTERACTION_MODELS, a0 as DEFAULT_VIEWER, a1 as DEV_TOKEN_PREFIX, a2 as DeleteFlow, a3 as DispatchUpdatesResult, a4 as DrawableDescriptor, a5 as EdgeType, a6 as EditFlow, a9 as EffectPayload, aa as EffectResult, ab as EffectTrace, ac as ErrorEvent, ad as EventEmit, ae as EventKey, af as EventListen, ag as EventLogEntry, ah as EvolutionDelta, ai as ExecutePlanResult, aj as ExtraTraitRef, ak as FileOperationEvent, al as FileWrittenEvent, am as GateState, an as GenerationLogEvent, ao as GitHubIssue, ap as GitHubLink, aq as GitHubRepo, ar as HistoryMeta, as as IntegrationContext, at as InteractionModel, au as InteractionModelInput, av as InteractionModelSchema, aw as InterruptEvent, ax as KNOWN_VALIDATION_ERROR_CODES, ay as KnobPayload, az as KnownValidationErrorCode, aA as LLMErrorContext, aB as LazyService, aC as LineageEntry, aD as ListInteraction, aE as LivingEdge, aF as LivingEffect, aG as LivingEntity, aH as LivingEvent, aI as LivingField, aJ as LivingOrbital, aK as LivingOrbitalSchema, aL as LivingPage, aM as LivingState, aN as LivingTrait, aO as LivingTransition, aP as LivingValue, aQ as LivingVertex, aR as LlmCallToolsResult, aS as LlmContext, aT as LlmMessage, aU as LlmTokenUsage, aV as LlmToolCall, aW as LlmToolDef, aX as LoloEmitResult, aY as MemoryContext, aZ as MessageEvent, a_ as OrbitalAddedEvent, a$ as OrbitalSchemaCompleteEvent, b0 as OrbitalVerificationAPI, P as PageContentReduction, b1 as ParamsRepairEmittedEvent, b2 as ParsedDesign, b3 as ParsedDomainContext, b4 as ParsedEmitDeclaration, b5 as ParsedEntity, b6 as ParsedEvent, b7 as ParsedListenDeclaration, b8 as ParsedOrbital, b9 as ParsedPage, ba as ParsedState, bb as ParsedStateMachine, bc as ParsedTrait, bd as ParsedTraitConfig, be as ParsedTransition, bf as PatternNode, bg as PatternTypeSchema, bh as PatternValue, bi as PersistActionName, bj as PlanSnapshot, bk as PlanSnapshotStatus, bl as PlannerResult, bm as Probability, bn as ProcessCompleteEvent, bo as ProcessErrorEvent, bp as ProcessRepairCompleteEvent, bq as ProcessRepairEvent, br as ProcessStartEvent, bs as RENDER_BINDING_MARKER, bt as RawUserClaims, bu as RenderBindingMarker, bz as RepairResult, a as ResolvedEntity, bA as ResolvedEntityBinding, bB as ResolvedField, R as ResolvedIR, bC as ResolvedNavigation, b as ResolvedPage, bD as ResolvedPattern, bE as ResolvedSection, bF as ResolvedSectionEvent, c as ResolvedTrait, bG as ResolvedTraitBinding, bH as ResolvedTraitDataEntity, bI as ResolvedTraitEvent, bJ as ResolvedTraitGuard, bK as ResolvedTraitListener, bL as ResolvedTraitState, bM as ResolvedTraitTick, bN as ResolvedTraitTransition, bO as ResolvedTraitUIBinding, bP as SSEEvent, bQ as SSEEventBase, bR as SSEEventType, bS as SaveOptions, bT as SaveResult, S as SchemaChange, bU as SchemaPhaseUpdateEvent, bV as SchemaPhaseValidatedEvent, bW as SchemaUpdateEvent, bX as SemanticAnnotation, bY as SemanticChangeKind, e as SemanticSchemaChange, bZ as SemanticVector, b_ as ServerResponseTrace, b$ as ServiceAction, c0 as ServiceActionName, c1 as ServiceCallResult, c2 as ServiceContract, c3 as ServiceEvents, c4 as SessionContext, c5 as SessionHistoryEntry, c6 as SnapshotCreatedEvent, c7 as SnapshotDocument, c8 as SpawnResult, c9 as StartEvent, ca as StatsView, cb as StoreContract, cc as StoreFilter, cd as StoreFilterOp, ce as SubagentCompleteEvent, cf as SubagentEvent, cg as SubagentProgressEvent, ch as SubagentStartEvent, ci as TodoActivityType, cj as TodoDetailEvent, ck as TodoUpdateEvent, cl as ToolCallEvent, cm as ToolResultEvent, cn as TraceContext, co as TraitFieldRef, cp as TraitFieldRefSchema, cq as TraitStateSnapshot, cr as TransitionFrom, cs as TransitionTrace, ct as Unsubscribe, cu as UserContext, cv as ValidateResult, cw as ValidationDocument, cx as ValidationError, cy as ValidationErrorCode, cz as ValidationIssue, cA as ValidationMeta, cB as ValidationResult, cC as ValidationResults, cD as VerificationCheck, cE as VerificationSnapshot, cF as VerificationSummary, cG as VertexId, cH as VertexPayload, cI as VertexType, cJ as ViewFlow, cK as WorkspaceContext, cM as containsEntityBinding, cN as containsPayloadBinding, cO as createEmptyResolvedPage, cP as createEmptyResolvedTrait, cQ as createLazyService, cR as createResolvedField, cS as createTypedEventBus, cT as decodeDevIdentityToken, cU as encodeDevIdentityToken, cV as findPersonaInRoster, cX as getBindingExamples, cY as getInteractionModelForDomain, cZ as inferTsType, c$ as isKnownValidationErrorCode, d0 as isPlanSnapshot, d1 as isRenderBindingMarker, d2 as isResolvedIR, d3 as isSessionHistoryEntry, d4 as isTraitFieldRef, d6 as normalizeUserContext, d7 as personaFromIdentityRow, da as resolveDefaultViewer, db as resolvePersonaSpec, dd as toBindingRoot, de as validateBindingInContext, df as widenTier } from '../index-xZP_Ajx3.js';
|
|
5
|
+
export { l as CONFIG_REF_EVENT_PATTERN, i as CallSiteConfig, j as CallSiteConfigEntry, C as ConfigFieldDeclaration, m as ConfigFieldDeclarationSchema, n as ConfigFieldItemsDeclaration, o as ConfigRefEventError, D as DeclaredTraitConfig, p as DeclaredTraitConfigSchema, q as EntityFieldContract, r as EntityFieldContractSchema, s as Event, t as EventInput, E as EventPayloadField, u as EventPayloadFieldSchema, v as EventSchema, w as EventScope, x as EventScopeSchema, G as Guard, y as GuardInput, z as GuardSchema, L as ListenSource, A as ListenSourceSchema, O as OrbitalTraitRef, B as OrbitalTraitRefSchema, P as PayloadField, F as PayloadFieldSchema, H as PayloadTypeWhen, I as PayloadTypeWhenSchema, J as PresentationType, R as REFERENCE_CONFIG_TYPES, K as ReferenceConfigType, M as RequiredField, N as RequiredFieldSchema, Q as SECRET_CONFIG_TYPES, U as SecretConfigType, S as State, V as StateInput, W as StateMachine, X as StateMachineInput, Y as StateMachineSchema, Z as StateSchema, _ as TickIntervalSchema, h as Trait, $ as TraitCategory, a0 as TraitCategorySchema, b as TraitConfig, c as TraitConfigObject, a1 as TraitConfigSchema, g as TraitConfigValue, a2 as TraitConfigValueSchema, a3 as TraitDataEntity, a4 as TraitDataEntitySchema, e as TraitEntityField, a5 as TraitEntityFieldSchema, k as TraitEventContract, a6 as TraitEventContractSchema, T as TraitEventListener, a7 as TraitEventListenerSchema, a8 as TraitInput, d as TraitRef, a9 as TraitRefSchema, a as TraitReference, aa as TraitReferenceInput, ab as TraitReferenceSchema, ac as TraitSchema, ad as TraitTick, ae as TraitTickSchema, af as TraitUIBinding, ag as TraitUIBindingSchema, ah as Transition, ai as TransitionInput, aj as TransitionSchema, ak as configRefEventKnob, al as getTraitConfig, am as getTraitName, an as isCallSiteConfigDeclaration, ao as isCircuitEvent, ap as isInlineTrait, aq as isReferenceConfigType, ar as isSecretConfigType, as as maskSecretConfigValues, at as normalizeCallSiteConfigToValues, au as normalizeTraitRef, av as overrideDeclaredKnobs, aw as resolveConfigRefEventName } from '../trait-9tfq2tQb.js';
|
|
6
|
+
export { a as JsonObject, J as JsonValue, R as RuntimeValue, T as ToolArgs, i as isJsonArray, b as isJsonObject, c as isJsonPrimitive } from '../json-D8gmyK3l.js';
|
|
6
7
|
import 'zod';
|
|
7
|
-
import '../types-
|
|
8
|
+
import '../types-CjRjhiaO.js';
|
|
8
9
|
import '../builders.js';
|
package/dist/types/index.js
CHANGED
|
@@ -95,6 +95,50 @@ function ulid() {
|
|
|
95
95
|
function mintId(kind) {
|
|
96
96
|
return brand(ID_PREFIXES[kind] + ulid());
|
|
97
97
|
}
|
|
98
|
+
var U64_MASK = (1n << 64n) - 1n;
|
|
99
|
+
var BODY_TIME_MASK = (1n << 50n) - 1n;
|
|
100
|
+
var BODY_RANDOM_MASK = (1n << 80n) - 1n;
|
|
101
|
+
var FNV_PRIME_64 = 0x100000001b3n;
|
|
102
|
+
var FNV_OFFSET_1 = 0xcbf29ce484222325n;
|
|
103
|
+
var FNV_OFFSET_2 = (0x100000001b3n ^ 0xdeadbeefn) & U64_MASK;
|
|
104
|
+
function splitmix64(x) {
|
|
105
|
+
let z19 = x + 0x9e3779b97f4a7c15n & U64_MASK;
|
|
106
|
+
z19 = (z19 ^ z19 >> 30n) * 0xbf58476d1ce4e5b9n & U64_MASK;
|
|
107
|
+
z19 = (z19 ^ z19 >> 27n) * 0x94d049bb133111ebn & U64_MASK;
|
|
108
|
+
return (z19 ^ z19 >> 31n) & U64_MASK;
|
|
109
|
+
}
|
|
110
|
+
function fnv1a64(data, offset) {
|
|
111
|
+
let h = offset & U64_MASK;
|
|
112
|
+
for (const b of data) {
|
|
113
|
+
h = (h ^ BigInt(b)) & U64_MASK;
|
|
114
|
+
h = h * FNV_PRIME_64 & U64_MASK;
|
|
115
|
+
}
|
|
116
|
+
return h;
|
|
117
|
+
}
|
|
118
|
+
function pushBase32(value, nChars) {
|
|
119
|
+
let v = value;
|
|
120
|
+
const chars = new Array(nChars);
|
|
121
|
+
for (let i = nChars - 1; i >= 0; i--) {
|
|
122
|
+
chars[i] = CROCKFORD[Number(v & 0x1fn)];
|
|
123
|
+
v >>= 5n;
|
|
124
|
+
}
|
|
125
|
+
return chars.join("");
|
|
126
|
+
}
|
|
127
|
+
function deriveId(parentId, discriminator) {
|
|
128
|
+
const kind = idKindOf(parentId) ?? "trait";
|
|
129
|
+
const encoder = new TextEncoder();
|
|
130
|
+
const parentBytes = encoder.encode(parentId);
|
|
131
|
+
const discBytes = encoder.encode(discriminator);
|
|
132
|
+
const data = new Uint8Array(parentBytes.length + 1 + discBytes.length);
|
|
133
|
+
data.set(parentBytes, 0);
|
|
134
|
+
data[parentBytes.length] = 31;
|
|
135
|
+
data.set(discBytes, parentBytes.length + 1);
|
|
136
|
+
const h1 = splitmix64(fnv1a64(data, FNV_OFFSET_1));
|
|
137
|
+
const h2 = splitmix64(fnv1a64(data, FNV_OFFSET_2));
|
|
138
|
+
const timeBits = (h1 << 64n | h2) & BODY_TIME_MASK;
|
|
139
|
+
const randBits = (h2 << 64n | h1) & BODY_RANDOM_MASK;
|
|
140
|
+
return ID_PREFIXES[kind] + pushBase32(timeBits, 10) + pushBase32(randBits, 16);
|
|
141
|
+
}
|
|
98
142
|
function ledgerResolveName(ledger, kind, name) {
|
|
99
143
|
for (const [id, entry] of Object.entries(ledger.entries)) {
|
|
100
144
|
if (entry.kind === kind && entry.curName === name) return id;
|
|
@@ -793,6 +837,9 @@ var EntityPersistenceSchema = z.enum([
|
|
|
793
837
|
]);
|
|
794
838
|
var OrbitalEntitySchema = z.object({
|
|
795
839
|
name: z.string().min(1, "Entity name is required"),
|
|
840
|
+
// V4 arena id (`EntityDefinition.id`); declared so the strip-mode zod gate
|
|
841
|
+
// carries an imported entity's id through instead of erasing it.
|
|
842
|
+
id: EntityIdSchema.optional(),
|
|
796
843
|
persistence: EntityPersistenceSchema.default("persistent"),
|
|
797
844
|
shared: z.boolean().optional(),
|
|
798
845
|
// Must stay in step with the Rust serde field (`EntityDefinition.identity`,
|
|
@@ -960,7 +1007,8 @@ var PayloadFieldSchema = z.object({
|
|
|
960
1007
|
type: z.string().min(1),
|
|
961
1008
|
required: z.boolean().optional(),
|
|
962
1009
|
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional(),
|
|
963
|
-
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
1010
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional(),
|
|
1011
|
+
entity: z.string().min(1).optional()
|
|
964
1012
|
});
|
|
965
1013
|
var EventSchema = z.object({
|
|
966
1014
|
key: z.string().min(1, "Event key is required"),
|
|
@@ -1053,6 +1101,19 @@ function maskSecretConfigValues(config, values) {
|
|
|
1053
1101
|
}
|
|
1054
1102
|
return masked;
|
|
1055
1103
|
}
|
|
1104
|
+
function overrideDeclaredKnobs(declared, overrides) {
|
|
1105
|
+
const out = { ...declared };
|
|
1106
|
+
for (const key of Object.keys(overrides)) {
|
|
1107
|
+
const field = declared[key];
|
|
1108
|
+
if (field === void 0) {
|
|
1109
|
+
throw new Error(
|
|
1110
|
+
`overrideDeclaredKnobs: config override "${key}" is not a declared knob (ORB_O_CONFIG_UNKNOWN_KEY). Declared: ${Object.keys(declared).join(", ") || "(none)"}`
|
|
1111
|
+
);
|
|
1112
|
+
}
|
|
1113
|
+
out[key] = { ...field, default: overrides[key] };
|
|
1114
|
+
}
|
|
1115
|
+
return out;
|
|
1116
|
+
}
|
|
1056
1117
|
var ConfigFieldItemsDeclarationSchema = z.lazy(
|
|
1057
1118
|
() => z.object({
|
|
1058
1119
|
type: z.string().optional(),
|
|
@@ -1072,7 +1133,8 @@ var ConfigFieldDeclarationSchema = z.object({
|
|
|
1072
1133
|
values: z.array(z.string()).optional(),
|
|
1073
1134
|
synonyms: z.string().optional(),
|
|
1074
1135
|
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
1075
|
-
properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional()
|
|
1136
|
+
properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional(),
|
|
1137
|
+
forwardedFrom: z.string().optional()
|
|
1076
1138
|
});
|
|
1077
1139
|
var DeclaredTraitConfigSchema = z.record(
|
|
1078
1140
|
ConfigFieldDeclarationSchema
|
|
@@ -1094,31 +1156,32 @@ var TraitCategorySchema = z.enum([
|
|
|
1094
1156
|
"game-board",
|
|
1095
1157
|
"game-puzzle"
|
|
1096
1158
|
]);
|
|
1159
|
+
var TRAIT_FIELD_TYPES = [
|
|
1160
|
+
"string",
|
|
1161
|
+
"number",
|
|
1162
|
+
"boolean",
|
|
1163
|
+
"date",
|
|
1164
|
+
"array",
|
|
1165
|
+
"object",
|
|
1166
|
+
"timestamp",
|
|
1167
|
+
"datetime",
|
|
1168
|
+
"enum",
|
|
1169
|
+
"email",
|
|
1170
|
+
"url",
|
|
1171
|
+
"phone",
|
|
1172
|
+
"uuid",
|
|
1173
|
+
"image",
|
|
1174
|
+
"trait",
|
|
1175
|
+
"slot",
|
|
1176
|
+
"pattern",
|
|
1177
|
+
"node",
|
|
1178
|
+
"event",
|
|
1179
|
+
"scalar",
|
|
1180
|
+
"union"
|
|
1181
|
+
];
|
|
1097
1182
|
var TraitEntityFieldSchema = z.object({
|
|
1098
1183
|
name: z.string().min(1),
|
|
1099
|
-
type: z.enum(
|
|
1100
|
-
"string",
|
|
1101
|
-
"number",
|
|
1102
|
-
"boolean",
|
|
1103
|
-
"date",
|
|
1104
|
-
"array",
|
|
1105
|
-
"object",
|
|
1106
|
-
"timestamp",
|
|
1107
|
-
"datetime",
|
|
1108
|
-
"enum",
|
|
1109
|
-
"email",
|
|
1110
|
-
"url",
|
|
1111
|
-
"phone",
|
|
1112
|
-
"uuid",
|
|
1113
|
-
"image",
|
|
1114
|
-
"trait",
|
|
1115
|
-
"slot",
|
|
1116
|
-
"pattern",
|
|
1117
|
-
// `node` was missing here while being a real `TraitFieldType` member
|
|
1118
|
-
// — the same latent-drift trap `event` would otherwise repeat.
|
|
1119
|
-
"node",
|
|
1120
|
-
"event"
|
|
1121
|
-
]),
|
|
1184
|
+
type: z.enum(TRAIT_FIELD_TYPES),
|
|
1122
1185
|
required: z.boolean().optional(),
|
|
1123
1186
|
default: TraitConfigValueSchema.optional(),
|
|
1124
1187
|
values: z.array(z.string()).optional(),
|
|
@@ -1173,7 +1236,7 @@ var EventPayloadFieldSchema = z.object({
|
|
|
1173
1236
|
type: z.string().min(1),
|
|
1174
1237
|
required: z.boolean().optional(),
|
|
1175
1238
|
description: z.string().optional(),
|
|
1176
|
-
|
|
1239
|
+
entity: z.string().optional(),
|
|
1177
1240
|
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional(),
|
|
1178
1241
|
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
1179
1242
|
});
|
|
@@ -1245,8 +1308,7 @@ var TraitEventListenerSchema = z.object({
|
|
|
1245
1308
|
});
|
|
1246
1309
|
var RequiredFieldSchema = z.object({
|
|
1247
1310
|
name: z.string().min(1),
|
|
1248
|
-
|
|
1249
|
-
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image", "trait", "slot", "pattern", "node", "event"]),
|
|
1311
|
+
type: z.enum(TRAIT_FIELD_TYPES),
|
|
1250
1312
|
description: z.string().optional()
|
|
1251
1313
|
});
|
|
1252
1314
|
var TraitReferenceSchema = z.object({
|
|
@@ -1265,6 +1327,7 @@ var TraitReferenceSchema = z.object({
|
|
|
1265
1327
|
z.string().min(1, "events value (caller event name) must be non-empty")
|
|
1266
1328
|
).optional(),
|
|
1267
1329
|
eventIds: z.record(z.string().min(1), EventIdSchema).optional(),
|
|
1330
|
+
_resolved: z.lazy(() => TraitSchema).optional(),
|
|
1268
1331
|
// 3-II type-parameter arguments (see `TraitReference.typeArgs`).
|
|
1269
1332
|
typeArgs: z.record(
|
|
1270
1333
|
z.string().min(1, "typeArgs key (declared param name) must be non-empty"),
|
|
@@ -1957,7 +2020,8 @@ var UseDeclarationSchema = z.object({
|
|
|
1957
2020
|
as: z.string().min(1, "Alias is required").regex(
|
|
1958
2021
|
/^[A-Z][a-zA-Z0-9]*$/,
|
|
1959
2022
|
'Alias must be PascalCase (e.g., "Health", "GameCore")'
|
|
1960
|
-
)
|
|
2023
|
+
),
|
|
2024
|
+
config: DeclaredTraitConfigSchema.optional()
|
|
1961
2025
|
});
|
|
1962
2026
|
function expectedEntityName(decl) {
|
|
1963
2027
|
switch (decl.kind) {
|
|
@@ -2063,6 +2127,30 @@ var PageRefSchema = z.union([
|
|
|
2063
2127
|
PageRefStringSchema,
|
|
2064
2128
|
PageRefObjectSchema
|
|
2065
2129
|
]);
|
|
2130
|
+
var OrbitalRefStringSchema = z.string().regex(
|
|
2131
|
+
/^[A-Z][a-zA-Z0-9]*\.orbitals\.[A-Z][a-zA-Z0-9]*$/,
|
|
2132
|
+
'Orbital reference must be "Alias.orbitals.OrbitalName"'
|
|
2133
|
+
);
|
|
2134
|
+
var OrbitalRefObjectSchema = z.object({
|
|
2135
|
+
ref: OrbitalRefStringSchema,
|
|
2136
|
+
refId: OrbitalIdSchema.optional(),
|
|
2137
|
+
entity: z.string().optional(),
|
|
2138
|
+
fields: z.record(z.string()).optional(),
|
|
2139
|
+
pages: z.record(z.string()).optional(),
|
|
2140
|
+
omit: z.array(z.string()).optional(),
|
|
2141
|
+
only: z.array(z.string()).optional(),
|
|
2142
|
+
config: DeclaredTraitConfigSchema.optional(),
|
|
2143
|
+
events: z.record(z.string()).optional(),
|
|
2144
|
+
roles: z.record(z.string(), z.array(z.string())).optional(),
|
|
2145
|
+
entities: z.record(z.string(), z.string()).optional(),
|
|
2146
|
+
mounts: z.record(z.string(), z.array(z.string())).optional(),
|
|
2147
|
+
extend: z.array(EntityFieldSchema).optional()
|
|
2148
|
+
});
|
|
2149
|
+
function parseOrbitalRef(ref2) {
|
|
2150
|
+
const match = ref2.match(/^([A-Z][a-zA-Z0-9]*)\.orbitals\.([A-Z][a-zA-Z0-9]*)$/);
|
|
2151
|
+
if (!match) return null;
|
|
2152
|
+
return { alias: match[1], orbitalName: match[2] };
|
|
2153
|
+
}
|
|
2066
2154
|
z.string().regex(
|
|
2067
2155
|
/^([A-Z][a-zA-Z0-9]*\.traits\.)?[A-Z][a-zA-Z0-9]*$/,
|
|
2068
2156
|
'Trait reference must be "TraitName" or "Alias.traits.TraitName"'
|
|
@@ -2123,6 +2211,15 @@ var OrbitalDefinitionSchema = z.object({
|
|
|
2123
2211
|
services: z.array(ServiceRefSchema).optional(),
|
|
2124
2212
|
// Components (inline or reference)
|
|
2125
2213
|
entity: EntityRefSchema,
|
|
2214
|
+
// Mirrors the `OrbitalDefinition.auxiliaryEntities` type field — WAS
|
|
2215
|
+
// undeclared here, so `OrbitalSchemaSchema.safeParse` (every load through
|
|
2216
|
+
// `external-loader.ts`) silently stripped it on every externally-loaded
|
|
2217
|
+
// orbital (zod drops unrecognized keys by default), while a schema parsed
|
|
2218
|
+
// directly via `JSON.parse` kept it. Found via the entity-field auto-merge
|
|
2219
|
+
// rebind-target fallback landing on the wrong entity for any RECURSIVELY
|
|
2220
|
+
// loaded `uses` file (`packages/almadar-runtime/src/resolver/
|
|
2221
|
+
// reference-resolver.ts`'s `mergeImportedEntityFieldsIntoOrbital`).
|
|
2222
|
+
auxiliaryEntities: z.array(EntityRefSchema).optional(),
|
|
2126
2223
|
traits: z.array(TraitRefSchema),
|
|
2127
2224
|
pages: z.array(PageRefSchema),
|
|
2128
2225
|
// Event interface (trait-centric model) - computed by resolver
|
|
@@ -2130,6 +2227,10 @@ var OrbitalDefinitionSchema = z.object({
|
|
|
2130
2227
|
listens: z.array(ComputedEventListenerSchema).optional(),
|
|
2131
2228
|
// Filter for exposed events (trait-centric model)
|
|
2132
2229
|
exposes: z.array(z.string()).optional(),
|
|
2230
|
+
// This orbital's own declared knobs (§4.5)
|
|
2231
|
+
config: DeclaredTraitConfigSchema.optional(),
|
|
2232
|
+
// Transient — set by lowering, cleared by inline/resolve
|
|
2233
|
+
reference: OrbitalRefObjectSchema.optional(),
|
|
2133
2234
|
// Context fields - persisted throughout orbital lifecycle
|
|
2134
2235
|
domainContext: DomainContextSchema.optional(),
|
|
2135
2236
|
design: DesignPreferencesSchema.optional(),
|
|
@@ -2141,18 +2242,6 @@ function isOrbitalDefinition(orbital) {
|
|
|
2141
2242
|
return "entity" in orbital;
|
|
2142
2243
|
}
|
|
2143
2244
|
var OrbitalUnitSchema = OrbitalSchema;
|
|
2144
|
-
var OrbitalConfigSchema = z.object({
|
|
2145
|
-
theme: z.object({
|
|
2146
|
-
primary: z.string().optional(),
|
|
2147
|
-
secondary: z.string().optional(),
|
|
2148
|
-
mode: z.enum(["light", "dark", "system"]).optional()
|
|
2149
|
-
}).optional(),
|
|
2150
|
-
features: z.record(z.boolean()).optional(),
|
|
2151
|
-
api: z.object({
|
|
2152
|
-
baseUrl: z.string().optional(),
|
|
2153
|
-
timeout: z.number().optional()
|
|
2154
|
-
}).optional()
|
|
2155
|
-
});
|
|
2156
2245
|
var ConfigProvenanceRecordSchema = z.object({
|
|
2157
2246
|
trait: z.string(),
|
|
2158
2247
|
patternPath: z.string().optional(),
|
|
@@ -2178,7 +2267,7 @@ var OrbitalSchemaSchema = z.object({
|
|
|
2178
2267
|
customPatterns: CustomPatternMapSchema,
|
|
2179
2268
|
orbitals: z.array(OrbitalSchema).min(1, "At least one orbital is required"),
|
|
2180
2269
|
services: z.array(ServiceDefinitionSchema).optional(),
|
|
2181
|
-
config:
|
|
2270
|
+
config: DeclaredTraitConfigSchema.optional(),
|
|
2182
2271
|
_metadata: SchemaMetadataSchema.optional(),
|
|
2183
2272
|
// V4 identity — optional/dual-carry until the Phase-7 flip. Present on
|
|
2184
2273
|
// id-carrying `.orb` files so `parseOrbitalSchema` preserves them instead
|
|
@@ -3052,6 +3141,6 @@ function widenTier(tier) {
|
|
|
3052
3141
|
return tier;
|
|
3053
3142
|
}
|
|
3054
3143
|
|
|
3055
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, AudioManifestSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEFAULT_UNIT_ANIMATION_ROWS, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpectDeclarationSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, FileValueSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, MANIFEST_ASSET_LICENSES, MANIFEST_CANVAS_AFFINITIES, MANIFEST_ENTRY_KINDS, MANIFEST_SOURCE_CATALOGS, ManifestAssetLicenseSchema, ManifestCanvasAffinitySchema, ManifestEntryKindSchema, ManifestEntrySchema, ManifestFrameSpecSchema, ManifestSourceCatalogSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema,
|
|
3144
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, AudioManifestSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEFAULT_UNIT_ANIMATION_ROWS, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpectDeclarationSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, FileValueSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, MANIFEST_ASSET_LICENSES, MANIFEST_CANVAS_AFFINITIES, MANIFEST_ENTRY_KINDS, MANIFEST_SOURCE_CATALOGS, ManifestAssetLicenseSchema, ManifestCanvasAffinitySchema, ManifestEntryKindSchema, ManifestEntrySchema, ManifestFrameSpecSchema, ManifestSourceCatalogSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalRefObjectSchema, OrbitalRefStringSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, PayloadTypeWhenSchema, REFERENCE_CONFIG_TYPES, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, SExprSchema, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, SPRITE_SHEET_LAYOUT, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SheetProjectionSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SoundEntrySchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TickIntervalSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TraitUIBindingSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, callService, collectBindings, configRefEventKnob, containsEntityBinding, containsPayloadBinding, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, defaultUnitAtlas, deref, deriveCollection, deriveId, despawn, doEffects, emit, encodeDevIdentityToken, expectedEntityName, findPersonaInRoster, findService, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, idKindOf, idPrefix, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEmailValue, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isFileValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPhoneValue, isPlanSnapshot, isReferenceConfigType, isRenderBindingMarker, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isSecretConfigType, isSemanticStringType, isSemanticStringValue, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, manifestToAssetCatalog, maskSecretConfigValues, matchAssetQuery, mintId, navigate, navigateBack, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, overrideDeclaredKnobs, parseAssetKey, parseAssetQuery, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, ref, renderUI, resolveConfigRefEventName, resolveDefaultViewer, resolvePersonaSpec, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
|
|
3056
3145
|
//# sourceMappingURL=index.js.map
|
|
3057
3146
|
//# sourceMappingURL=index.js.map
|