@almadar/core 10.30.0 → 10.31.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-C458pIMW.d.ts → builders-DDcCVboe.d.ts} +687 -687
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +10 -6
- package/dist/builders.js.map +1 -1
- package/dist/factory/index.d.ts +5 -5
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +10 -6
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +7 -9
- package/dist/index.js +894 -549
- package/dist/index.js.map +1 -1
- package/dist/{pattern-types-CLcOXOmW.d.ts → pattern-types-VDIr2TkX.d.ts} +104 -37
- package/dist/patterns/component-mapping.json +13 -3
- package/dist/patterns/event-contracts.json +10 -3
- package/dist/patterns/index.d.ts +1971 -870
- package/dist/patterns/index.js +1041 -695
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +917 -593
- package/dist/patterns/registry.json +917 -593
- package/dist/{trait-CwWjkU-1.d.ts → trait-DE6VU4Cd.d.ts} +85 -84
- package/dist/types/index.d.ts +7 -9
- package/dist/types/index.js +21 -17
- package/dist/types/index.js.map +1 -1
- package/dist/{types-yW22YNNt.d.ts → types-DSfz2mr5.d.ts} +2 -3
- package/package.json +1 -1
- package/dist/json-DOTchoRS.d.ts +0 -57
package/dist/types/index.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h 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, E as DesignPreferencesSchema, F as DesignTokens, G as DesignTokensInput, H as DesignTokensSchema, I as DomainCategory, J as DomainCategorySchema, L as DomainContextInput, N as DomainContextSchema, P as DomainVocabulary, Q as DomainVocabularySchema, R as ElevationSlice, S as ElevationSliceSchema, T as ElevationTokens, U as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, X as EntityRef, Y as EntityRefSchema, Z as EntityRefStringSchema, _ as EntitySemanticRole, $ as EntitySemanticRoleSchema, a0 as EventListener, a1 as EventListenerSchema, a2 as EventSemanticRole, a3 as EventSemanticRoleSchema, a4 as EventSource, a5 as EventSourceSchema, 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, ar as MotionDurationKey, as as MotionDurationKeySchema, at as MotionDurationPalette, au as MotionDurationPaletteSchema, av as MotionEasingKey, aw as MotionEasingKeySchema, ax as MotionEasingPalette, ay as MotionEasingPaletteSchema, az as MotionIntent, aA as MotionIntentMap, aB as MotionIntentMapSchema, aC as MotionIntentSchema, aD as MotionSlice, aE as MotionSliceSchema, aF as MotionTokens, aG as MotionTokensSchema, aH as NodeClassification, aI as NodeClassificationSchema, aJ as OrbitalConfig, aK as OrbitalConfigInput, aL as OrbitalConfigSchema, aM as OrbitalDefinitionSchema, aN as OrbitalInput, aO as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalSchemaInput, aU as OrbitalSchemaSchema, aV as OrbitalSchemaWithTraits, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, 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, 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, bL as UseDeclaration, bM as UseDeclarationSchema, bN as UserPersona, bO as UserPersonaInput, bP as UserPersonaSchema, bQ as ViewType, bR as ViewTypeSchema, bV as isEntityCall, bW as isEntityReference, bX as isEntityReferenceAny, bY as isImportedTraitRef, bZ as isOrbitalDefinition, b_ as isPageReference, b$ as isPageReferenceObject, c0 as isPageReferenceString, c1 as isThemeReference, c2 as parseEntityRef, c3 as parseImportedTraitRef, c4 as parseOrbitalSchema, c5 as parsePageRef, c6 as safeParseOrbitalSchema } from '../builders-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence, F as FieldValue, e as Entity, b as EntityRow, A as AnyPatternConfig, O as OrbitalId, T as TraitId, c as EventId } from '../pattern-types-
|
|
4
|
-
export {
|
|
1
|
+
import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-DDcCVboe.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h 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, E as DesignPreferencesSchema, F as DesignTokens, G as DesignTokensInput, H as DesignTokensSchema, I as DomainCategory, J as DomainCategorySchema, L as DomainContextInput, N as DomainContextSchema, P as DomainVocabulary, Q as DomainVocabularySchema, R as ElevationSlice, S as ElevationSliceSchema, T as ElevationTokens, U as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, X as EntityRef, Y as EntityRefSchema, Z as EntityRefStringSchema, _ as EntitySemanticRole, $ as EntitySemanticRoleSchema, a0 as EventListener, a1 as EventListenerSchema, a2 as EventSemanticRole, a3 as EventSemanticRoleSchema, a4 as EventSource, a5 as EventSourceSchema, 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, ar as MotionDurationKey, as as MotionDurationKeySchema, at as MotionDurationPalette, au as MotionDurationPaletteSchema, av as MotionEasingKey, aw as MotionEasingKeySchema, ax as MotionEasingPalette, ay as MotionEasingPaletteSchema, az as MotionIntent, aA as MotionIntentMap, aB as MotionIntentMapSchema, aC as MotionIntentSchema, aD as MotionSlice, aE as MotionSliceSchema, aF as MotionTokens, aG as MotionTokensSchema, aH as NodeClassification, aI as NodeClassificationSchema, aJ as OrbitalConfig, aK as OrbitalConfigInput, aL as OrbitalConfigSchema, aM as OrbitalDefinitionSchema, aN as OrbitalInput, aO as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalSchemaInput, aU as OrbitalSchemaSchema, aV as OrbitalSchemaWithTraits, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, 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, 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, bL as UseDeclaration, bM as UseDeclarationSchema, bN as UserPersona, bO as UserPersonaInput, bP as UserPersonaSchema, bQ as ViewType, bR as ViewTypeSchema, bV as isEntityCall, bW as isEntityReference, bX as isEntityReferenceAny, bY as isImportedTraitRef, bZ as isOrbitalDefinition, b_ as isPageReference, b$ as isPageReferenceObject, c0 as isPageReferenceString, c1 as isThemeReference, c2 as parseEntityRef, c3 as parseImportedTraitRef, c4 as parseOrbitalSchema, c5 as parsePageRef, c6 as safeParseOrbitalSchema } from '../builders-DDcCVboe.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence, F as FieldValue, J as JsonValue, e as Entity, b as EntityRow, A as AnyPatternConfig, O as OrbitalId, T as TraitId, c as EventId, a8 as JsonObject, f as ToolArgs } from '../pattern-types-VDIr2TkX.js';
|
|
4
|
+
export { g as ANIMATION_NAMES, h as ASSET_ASPECTS, i as ASSET_DIMENSIONS, j as AnimationDef, k as AnimationDefInput, l as AnimationDefSchema, m as AnimationName, n as AnimationNameSchema, o as ArrayEntityField, p as Asset, q as AssetAspect, r as AssetAspectSchema, s as AssetCatalog, t as AssetCatalogEntry, u as AssetCatalogEntryInput, v as AssetCatalogEntrySchema, w as AssetCatalogSchema, x as AssetDimension, y as AssetDimensionSchema, z as AssetSchema, B as AssetUrl, C as CAMERA_MODES, D as Camera, G as CameraMode, H as CameraModeSchema, I as CameraSchema, K as ENTITY_ROLES, L as EntityData, M as EntityFieldInput, N as EntityFieldSchema, d as EntityId, Q as EntityIdSchema, S as EntityPersistenceSchema, U as EntityRole, V as EntityRoleSchema, W as EntitySchema, X as EntityWith, Y as EnumEntityField, Z as EventIdSchema, _ as Field, $ as FieldFormat, a0 as FieldFormatSchema, a1 as FieldSchema, a2 as FieldType, a3 as FieldTypeSchema, a4 as IdForKind, a5 as IdKind, a6 as IdentityLedger, a7 as IdentityLedgerSchema, a9 as LedgerEntry, aa as LedgerEntrySchema, ab as LedgerKind, ac as LedgerKindSchema, ad as OrbitalEntity, ae as OrbitalEntityInput, af as OrbitalEntitySchema, ag as OrbitalIdSchema, ah as PATTERN_TYPES, P as PageId, ai as PageIdSchema, aj as PaletteEntryId, ak as PaletteEntryIdSchema, al as PatternConfig, ao as PatternType, R as RelationConfig, ap as RelationConfigSchema, aq as RelationEntityField, ar as SPRITE_DIRECTIONS, as as ScalarEntityField, at as ScenePos, au as ScenePosSchema, av as SemanticAssetRef, aw as SemanticAssetRefInput, ax as SemanticAssetRefSchema, ay as ServiceId, az as ServiceIdSchema, aA as SpriteDirection, aB as SpriteDirectionSchema, aC as SpriteSheetAtlas, aD as SpriteSheetAtlasInput, aE as SpriteSheetAtlasSchema, aF as SubTexture, aG as SubTextureSchema, aH as TextureAtlas, aI as TextureAtlasSchema, aJ as ThemeId, aK as ThemeIdSchema, aL as Tilesheet, aM as TilesheetSchema, aN as TraitIdSchema, aO as VISUAL_STYLES, aP as VisualStyle, aQ as VisualStyleSchema, aR as asEntityId, aS as asEventId, aT as asOrbitalId, aU as asPageId, aV as asPaletteEntryId, aW as asServiceId, aX as asThemeId, aY as asTraitId, aZ as createAssetKey, a_ as deriveCollection, a$ as getDefaultAnimationsForRole, b0 as idKindOf, b1 as idPrefix, b2 as isEntityId, b3 as isEventId, b4 as isFieldValue, b5 as isJsonArray, b6 as isJsonObject, b7 as isJsonPrimitive, b8 as isOrbitalId, b9 as isPageId, ba as isPaletteEntryId, bb as isRuntimeEntity, bc as isServiceId, bd as isThemeId, be as isTraitId, bf as isValidPatternType, bg as ledgerCurName, bh as ledgerRename, bi as ledgerResolveName, bj as mintId, bk as parseAssetKey, bl as persistenceModeAllowsOverrides, bm as validateAssetAnimations } from '../pattern-types-VDIr2TkX.js';
|
|
5
5
|
import { d as EventPayloadValue, E as EventPayload, L as LogMeta, S as SExpr, c as EvalContext } from '../expression-CB9R3KWk.js';
|
|
6
6
|
export { C as CORE_BINDINGS, b as CoreBinding, a as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, 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 isEventPayloadValue, p as isSExpr, q as isSExprAtom, r as isSExprCall, s as isValidBinding, t as parseBinding, u as sexpr, w as walkSExpr } from '../expression-CB9R3KWk.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { a as TraitReference, ay as ServiceParams, c as Trait, D as DeclaredTraitConfig, d as TraitConfig, E as Effect, m as ConfigFieldDeclaration, S as State, bh as Transition, H as Event, a$ as TraitConfigValue, aX as TraitCategory, b$ as TraitScope } from '../trait-
|
|
9
|
-
export { A as AgentEffect, e as ApplicationEffect, f as AtomicEffect, B as BehaviorEffect, g as CONFIG_REF_EVENT_PATTERN, h as CallServiceConfig, i as CallServiceEffect, C as CallSiteConfig, b as CallSiteConfigEntry, j as CheckpointLoadEffect, k as CheckpointSaveEffect, l as ComposeEffect, n as ConfigFieldDeclarationSchema, o as ConfigFieldItemsDeclaration, p as ConfigRefEventError, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, u as EffectInput, v as EffectSchema, w as EmitConfig, x as EmitEffect, y as EntityFieldContract, z as EntityFieldContractSchema, F as EvaluateConfig, G as EvaluateEffect, I as EventInput, J as EventPayloadField, K as EventPayloadFieldSchema, L as EventSchema, M as EventScope, N as EventScopeSchema, O as FetchEffect, P as FetchOptions, Q as FetchResult, R as ForwardConfig, U as ForwardEffect, V as Guard, W as GuardInput, X as GuardSchema, Y as ListenSource, Z as ListenSourceSchema, _ as LlmEffect, $ as LogEffect, a0 as McpServiceDef, a1 as McpServiceDefSchema, a2 as MemoryEffect, a3 as NavigateEffect, a4 as NnConfig, a5 as NnLayer, a6 as NotifyEffect, a7 as OrbitalTraitRef, a8 as OrbitalTraitRefSchema, a9 as OsEffect, aa as PayloadField, ab as PayloadFieldSchema, ac as PersistData, ad as PersistEffect, ae as PersistEmitConfig, af as PresentationType, ag as REFERENCE_CONFIG_TYPES, ah as RefEffect, ai as ReferenceConfigType, aj as RenderBinding, ak as RenderChildrenMap, al as RenderItemLambda, am as RenderUIEffect, an as RenderUINode, ao as RequiredField, ap as RequiredFieldSchema, aq as ResolvedPatternProps, ar as RestAuthConfig, as as RestAuthConfigSchema, at as RestServiceDef, au as RestServiceDefSchema, av as SERVICE_TYPES, aw as ServiceDefinition, ax as ServiceDefinitionSchema, az as ServiceParamsValue, aA as ServiceRef, aB as ServiceRefObject, aC as ServiceRefObjectSchema, aD as ServiceRefSchema, aE as ServiceRefStringSchema, aF as ServiceType, aG as ServiceTypeSchema, aH as SessionEffect, aI as SetEffect, aJ as SocketEvents, aK as SocketEventsSchema, aL as SocketServiceDef, aM as SocketServiceDefSchema, aN as SpawnEffect, aO as StateInput, aP as StateMachine, aQ as StateMachineInput, aR as StateMachineSchema, aS as StateSchema, aT as SwapEffect, aU as TraceEffect, aV as TrainConfig, aW as TrainEffect, aY as TraitCategorySchema, aZ as TraitConfigObject, a_ as TraitConfigSchema, b0 as TraitConfigValueSchema, b1 as TraitDataEntity, b2 as TraitDataEntitySchema, b3 as TraitEntityField, b4 as TraitEntityFieldSchema, b5 as TraitEventContract, b6 as TraitEventContractSchema, T as TraitEventListener, b7 as TraitEventListenerSchema, b8 as TraitInput, b9 as TraitRef, ba as TraitRefSchema, bb as TraitReferenceInput, bc as TraitReferenceSchema, bd as TraitSchema, be as TraitTick, bf as TraitTickSchema, bg as TraitUIBinding, bi as TransitionInput, bj as TransitionSchema, bk as TypedEffect, bl as UISlot, bm as UISlotSchema, bn as UI_SLOTS, bo as ValidateEffect, bp as WatchEffect, bq as WatchOptions, br as atomic, bs as callService, bt as configRefEventKnob, bu as deref, bv as despawn, bw as doEffects, bx as emit, by as findService, bz as getServiceNames, bA as getTraitConfig, bB as getTraitName, bC as hasService, bD as isCallSiteConfigDeclaration, bE as isCircuitEvent, bF as isEffect, bG as isInlineTrait, bH as isMcpService, bI as isReferenceConfigType, bJ as isRestService, bK as isSExprEffect, bL as isServiceReference, bM as isServiceReferenceObject, bN as isSocketService, bO as navigate, bP as normalizeCallSiteConfigToValues, bQ as normalizeTraitRef, bR as notify, bS as parseServiceRef, bT as persist, bU as ref, bV as renderUI, bW as resolveConfigRefEventName, bX as set, bY as spawn, bZ as swap, b_ as watch } from '../trait-
|
|
10
|
-
import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-
|
|
11
|
-
import { J as JsonValue, a as JsonObject, T as ToolArgs } from '../json-DOTchoRS.js';
|
|
12
|
-
export { i as isJsonArray, b as isJsonObject, c as isJsonPrimitive } from '../json-DOTchoRS.js';
|
|
8
|
+
import { a as TraitReference, ay as ServiceParams, c as Trait, D as DeclaredTraitConfig, d as TraitConfig, E as Effect, m as ConfigFieldDeclaration, S as State, bh as Transition, H as Event, a$ as TraitConfigValue, aX as TraitCategory, b$ as TraitScope } from '../trait-DE6VU4Cd.js';
|
|
9
|
+
export { A as AgentEffect, e as ApplicationEffect, f as AtomicEffect, B as BehaviorEffect, g as CONFIG_REF_EVENT_PATTERN, h as CallServiceConfig, i as CallServiceEffect, C as CallSiteConfig, b as CallSiteConfigEntry, j as CheckpointLoadEffect, k as CheckpointSaveEffect, l as ComposeEffect, n as ConfigFieldDeclarationSchema, o as ConfigFieldItemsDeclaration, p as ConfigRefEventError, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, u as EffectInput, v as EffectSchema, w as EmitConfig, x as EmitEffect, y as EntityFieldContract, z as EntityFieldContractSchema, F as EvaluateConfig, G as EvaluateEffect, I as EventInput, J as EventPayloadField, K as EventPayloadFieldSchema, L as EventSchema, M as EventScope, N as EventScopeSchema, O as FetchEffect, P as FetchOptions, Q as FetchResult, R as ForwardConfig, U as ForwardEffect, V as Guard, W as GuardInput, X as GuardSchema, Y as ListenSource, Z as ListenSourceSchema, _ as LlmEffect, $ as LogEffect, a0 as McpServiceDef, a1 as McpServiceDefSchema, a2 as MemoryEffect, a3 as NavigateEffect, a4 as NnConfig, a5 as NnLayer, a6 as NotifyEffect, a7 as OrbitalTraitRef, a8 as OrbitalTraitRefSchema, a9 as OsEffect, aa as PayloadField, ab as PayloadFieldSchema, ac as PersistData, ad as PersistEffect, ae as PersistEmitConfig, af as PresentationType, ag as REFERENCE_CONFIG_TYPES, ah as RefEffect, ai as ReferenceConfigType, aj as RenderBinding, ak as RenderChildrenMap, al as RenderItemLambda, am as RenderUIEffect, an as RenderUINode, ao as RequiredField, ap as RequiredFieldSchema, aq as ResolvedPatternProps, ar as RestAuthConfig, as as RestAuthConfigSchema, at as RestServiceDef, au as RestServiceDefSchema, av as SERVICE_TYPES, aw as ServiceDefinition, ax as ServiceDefinitionSchema, az as ServiceParamsValue, aA as ServiceRef, aB as ServiceRefObject, aC as ServiceRefObjectSchema, aD as ServiceRefSchema, aE as ServiceRefStringSchema, aF as ServiceType, aG as ServiceTypeSchema, aH as SessionEffect, aI as SetEffect, aJ as SocketEvents, aK as SocketEventsSchema, aL as SocketServiceDef, aM as SocketServiceDefSchema, aN as SpawnEffect, aO as StateInput, aP as StateMachine, aQ as StateMachineInput, aR as StateMachineSchema, aS as StateSchema, aT as SwapEffect, aU as TraceEffect, aV as TrainConfig, aW as TrainEffect, aY as TraitCategorySchema, aZ as TraitConfigObject, a_ as TraitConfigSchema, b0 as TraitConfigValueSchema, b1 as TraitDataEntity, b2 as TraitDataEntitySchema, b3 as TraitEntityField, b4 as TraitEntityFieldSchema, b5 as TraitEventContract, b6 as TraitEventContractSchema, T as TraitEventListener, b7 as TraitEventListenerSchema, b8 as TraitInput, b9 as TraitRef, ba as TraitRefSchema, bb as TraitReferenceInput, bc as TraitReferenceSchema, bd as TraitSchema, be as TraitTick, bf as TraitTickSchema, bg as TraitUIBinding, bi as TransitionInput, bj as TransitionSchema, bk as TypedEffect, bl as UISlot, bm as UISlotSchema, bn as UI_SLOTS, bo as ValidateEffect, bp as WatchEffect, bq as WatchOptions, br as atomic, bs as callService, bt as configRefEventKnob, bu as deref, bv as despawn, bw as doEffects, bx as emit, by as findService, bz as getServiceNames, bA as getTraitConfig, bB as getTraitName, bC as hasService, bD as isCallSiteConfigDeclaration, bE as isCircuitEvent, bF as isEffect, bG as isInlineTrait, bH as isMcpService, bI as isReferenceConfigType, bJ as isRestService, bK as isSExprEffect, bL as isServiceReference, bM as isServiceReferenceObject, bN as isSocketService, bO as navigate, bP as normalizeCallSiteConfigToValues, bQ as normalizeTraitRef, bR as notify, bS as parseServiceRef, bT as persist, bU as ref, bV as renderUI, bW as resolveConfigRefEventName, bX as set, bY as spawn, bZ as swap, b_ as watch } from '../trait-DE6VU4Cd.js';
|
|
10
|
+
import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-DSfz2mr5.js';
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
13
|
* S-Expression Bindings
|
package/dist/types/index.js
CHANGED
|
@@ -146,6 +146,20 @@ var IdentityLedgerSchema = z.object({
|
|
|
146
146
|
schemaVersion: z.literal(1),
|
|
147
147
|
entries: z.record(LedgerEntrySchema)
|
|
148
148
|
});
|
|
149
|
+
var JsonValueSchema = z.lazy(
|
|
150
|
+
() => z.union([z.string(), z.number(), z.boolean(), z.null(), z.array(JsonValueSchema), z.record(JsonValueSchema)])
|
|
151
|
+
);
|
|
152
|
+
function isJsonPrimitive(value) {
|
|
153
|
+
return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
154
|
+
}
|
|
155
|
+
function isJsonObject(value) {
|
|
156
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
157
|
+
}
|
|
158
|
+
function isJsonArray(value) {
|
|
159
|
+
return Array.isArray(value);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// src/types/field.ts
|
|
149
163
|
var FieldTypeSchema = z.enum([
|
|
150
164
|
"string",
|
|
151
165
|
"number",
|
|
@@ -209,7 +223,7 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
209
223
|
const baseFieldShape = {
|
|
210
224
|
name: z.string().min(1, "Field name is required").optional(),
|
|
211
225
|
required: z.boolean().optional(),
|
|
212
|
-
default:
|
|
226
|
+
default: JsonValueSchema.optional(),
|
|
213
227
|
format: FieldFormatSchema.optional(),
|
|
214
228
|
min: z.number().optional(),
|
|
215
229
|
max: z.number().optional(),
|
|
@@ -800,7 +814,7 @@ var TraitEntityFieldSchema = z.object({
|
|
|
800
814
|
"enum"
|
|
801
815
|
]),
|
|
802
816
|
required: z.boolean().optional(),
|
|
803
|
-
default:
|
|
817
|
+
default: TraitConfigValueSchema.optional(),
|
|
804
818
|
values: z.array(z.string()).optional(),
|
|
805
819
|
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
806
820
|
properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional()
|
|
@@ -950,12 +964,11 @@ var TraitReferenceSchema = z.object({
|
|
|
950
964
|
listens: z.array(z.unknown()).optional(),
|
|
951
965
|
emitsScope: z.enum(["internal", "external"]).optional(),
|
|
952
966
|
// Phase F.8: per-transition effects override. The keys are event
|
|
953
|
-
// names (the transition triggers AFTER renames)
|
|
954
|
-
//
|
|
955
|
-
// shape during application, so the schema accepts loose `unknown[]`.
|
|
967
|
+
// names (the transition triggers AFTER renames); values are SExpr
|
|
968
|
+
// effect tuples.
|
|
956
969
|
effects: z.record(
|
|
957
970
|
z.string().min(1, "effects override key (event name) must be non-empty"),
|
|
958
|
-
z.array(
|
|
971
|
+
z.array(SExprSchema)
|
|
959
972
|
).optional()
|
|
960
973
|
}).refine(
|
|
961
974
|
(ref2) => {
|
|
@@ -2131,11 +2144,13 @@ var PATTERN_TYPES = [
|
|
|
2131
2144
|
"orbital-visualization",
|
|
2132
2145
|
"overlay",
|
|
2133
2146
|
"page-header",
|
|
2147
|
+
"page-transition",
|
|
2134
2148
|
"pagination",
|
|
2135
2149
|
"pattern-tile",
|
|
2136
2150
|
"physics-canvas",
|
|
2137
2151
|
"popover",
|
|
2138
2152
|
"positioned-canvas",
|
|
2153
|
+
"presence",
|
|
2139
2154
|
"pricing-card",
|
|
2140
2155
|
"pricing-grid",
|
|
2141
2156
|
"pricing-organism",
|
|
@@ -2240,17 +2255,6 @@ function isValidPatternType(type) {
|
|
|
2240
2255
|
return PATTERN_TYPES.includes(type);
|
|
2241
2256
|
}
|
|
2242
2257
|
|
|
2243
|
-
// src/types/json.ts
|
|
2244
|
-
function isJsonPrimitive(value) {
|
|
2245
|
-
return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
2246
|
-
}
|
|
2247
|
-
function isJsonObject(value) {
|
|
2248
|
-
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
2249
|
-
}
|
|
2250
|
-
function isJsonArray(value) {
|
|
2251
|
-
return Array.isArray(value);
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
2258
|
// src/types/pattern.ts
|
|
2255
2259
|
var PatternTypeSchema = z.string();
|
|
2256
2260
|
|