@almadar/core 10.37.0 → 10.38.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-CBdyt_gd.d.ts → builders-BoyWDFfH.d.ts} +89 -88
- package/dist/builders.d.ts +4 -3
- package/dist/builders.js +20 -16
- package/dist/builders.js.map +1 -1
- package/dist/{effect-Cd6ibbZc.d.ts → effect-5kg4MCeB.d.ts} +33 -1561
- package/dist/entity-CVylqnAf.d.ts +1559 -0
- package/dist/factory/index.d.ts +6 -5
- package/dist/factory/index.js +7 -0
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +4 -3
- package/dist/factory-runtime/index.js +20 -16
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +461 -21
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +119 -0
- package/dist/mock/index.js +695 -0
- package/dist/mock/index.js.map +1 -0
- package/dist/patterns/component-mapping.json +16 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +897 -6
- package/dist/patterns/index.js +396 -4
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +21 -1
- package/dist/patterns/patterns-registry.json +355 -1
- package/dist/patterns/registry.json +355 -1
- package/dist/patterns/services-registry.json +104 -0
- package/dist/{trait-CEO7o8Ne.d.ts → trait-Bnd3i_2G.d.ts} +38 -22
- package/dist/types/index.d.ts +11 -9
- package/dist/types/index.js +61 -17
- package/dist/types/index.js.map +1 -1
- package/dist/{types-1YGQKdbm.d.ts → types-BE598tvP.d.ts} +3 -3
- package/package.json +6 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
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 { F as FieldValue,
|
|
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-BoyWDFfH.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-BoyWDFfH.js';
|
|
3
|
+
import { F as FieldValue, a as EntityField, E as EntityPersistence, J as JsonValue, e as Entity, b as EntityRow, O as OrbitalId, T as TraitId, c as EventId, a6 as JsonObject, f as ToolArgs } from '../entity-CVylqnAf.js';
|
|
4
|
+
export { A as ANIMATION_NAMES, g as ASSET_ASPECTS, h as ASSET_DIMENSIONS, i as AnimationDef, j as AnimationDefInput, k as AnimationDefSchema, l as AnimationName, m as AnimationNameSchema, n as ArrayEntityField, o as Asset, p as AssetAspect, q as AssetAspectSchema, r as AssetCatalog, s as AssetCatalogEntry, t as AssetCatalogEntryInput, u as AssetCatalogEntrySchema, v as AssetCatalogSchema, w as AssetDimension, x as AssetDimensionSchema, y as AssetSchema, z as AssetUrl, C as CAMERA_MODES, B as Camera, D as CameraMode, G as CameraModeSchema, H as CameraSchema, I as ENTITY_ROLES, K as EntityData, L as EntityFieldInput, M as EntityFieldSchema, d as EntityId, N as EntityIdSchema, Q as EntityPersistenceSchema, S as EntityRole, U as EntityRoleSchema, V as EntitySchema, W as EntityWith, X as EnumEntityField, Y as EventIdSchema, Z as FIELD_TYPES, _ as Field, $ as FieldSchema, a0 as FieldType, a1 as FieldTypeSchema, a2 as IdForKind, a3 as IdKind, a4 as IdentityLedger, a5 as IdentityLedgerSchema, a7 as LedgerEntry, a8 as LedgerEntrySchema, a9 as LedgerKind, aa as LedgerKindSchema, ab as ObjectEntityField, ac as OrbitalEntity, ad as OrbitalEntityInput, ae as OrbitalEntitySchema, af as OrbitalIdSchema, P as PageId, ag as PageIdSchema, ah as PaletteEntryId, ai as PaletteEntryIdSchema, R as RelationConfig, aj as RelationConfigSchema, ak as RelationEntityField, al as SEMANTIC_STRING_TYPES, am as SPRITE_DIRECTIONS, an as ScalarEntityField, ao as ScenePos, ap as ScenePosSchema, aq as SemanticAssetRef, ar as SemanticAssetRefInput, as as SemanticAssetRefSchema, at as SemanticStringType, au as ServiceId, av as ServiceIdSchema, aw as SpriteDirection, ax as SpriteDirectionSchema, ay as SpriteSheetAtlas, az as SpriteSheetAtlasInput, aA as SpriteSheetAtlasSchema, aB as SubTexture, aC as SubTextureSchema, aD as TextureAtlas, aE as TextureAtlasSchema, aF as ThemeId, aG as ThemeIdSchema, aH as Tilesheet, aI as TilesheetSchema, aJ as TraitIdSchema, aK as VISUAL_STYLES, aL as VisualStyle, aM as VisualStyleSchema, aN as asEntityId, aO as asEventId, aP as asOrbitalId, aQ as asPageId, aR as asPaletteEntryId, aS as asServiceId, aT as asThemeId, aU as asTraitId, aV as createAssetKey, aW as deriveCollection, aX as getDefaultAnimationsForRole, aY as idKindOf, aZ as idPrefix, a_ as isEmailValue, a$ as isEntityId, b0 as isEventId, b1 as isFieldValue, b2 as isJsonArray, b3 as isJsonObject, b4 as isJsonPrimitive, b5 as isOrbitalId, b6 as isPageId, b7 as isPaletteEntryId, b8 as isPhoneValue, b9 as isRuntimeEntity, ba as isSemanticStringType, bb as isSemanticStringValue, bc as isServiceId, bd as isThemeId, be as isTraitId, bf as isUrlValue, bg as isUuidValue, bh as ledgerCurName, bi as ledgerRename, bj as ledgerResolveName, bk as mintId, bl as parseAssetKey, bm as persistenceModeAllowsOverrides, bn as validateAssetAnimations } from '../entity-CVylqnAf.js';
|
|
5
5
|
import { d as EventPayloadValue, a as EventPayload, L as LogMeta, S as SExpr, c as EvalContext } from '../expression-DpAj1RzP.js';
|
|
6
6
|
export { C as CORE_BINDINGS, b as CoreBinding, E as Expression, e as ExpressionInput, f as ExpressionSchema, g as LogMetaValue, P as ParsedBinding, h as SExprAtom, i as SExprAtomSchema, j as SExprInput, k as SExprSchema, l as collectBindings, m as getArgs, n as getOperator, o as isBinding, p as isEventPayloadValue, q as isSExpr, r as isSExprAtom, s as isSExprCall, t as isValidBinding, u as parseBinding, v as sexpr, w as walkSExpr } from '../expression-DpAj1RzP.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { a as TraitReference, c as Trait, L as ListenSource, D as DeclaredTraitConfig, d as TraitConfig, f as ConfigFieldDeclaration, S as State,
|
|
9
|
-
export { e as CONFIG_REF_EVENT_PATTERN, C as CallSiteConfig, b as CallSiteConfigEntry, g as ConfigFieldDeclarationSchema, h as ConfigFieldItemsDeclaration, i as ConfigRefEventError, j as DeclaredTraitConfigSchema, E as EntityFieldContract, k as EntityFieldContractSchema, m as EventInput, n as EventPayloadField, o as EventPayloadFieldSchema, p as EventSchema, q as EventScope, r as EventScopeSchema, G as Guard, s as GuardInput, t as GuardSchema, u as ListenSourceSchema, O as OrbitalTraitRef, v as OrbitalTraitRefSchema, P as PayloadField, w as PayloadFieldSchema, x as PresentationType, R as REFERENCE_CONFIG_TYPES, y as ReferenceConfigType, z as RequiredField, A as RequiredFieldSchema, B as
|
|
10
|
-
import {
|
|
8
|
+
import { a as TraitReference, c as Trait, L as ListenSource, D as DeclaredTraitConfig, d as TraitConfig, f as ConfigFieldDeclaration, S as State, ad as Transition, l as Event, X as TraitConfigValue, Q as TraitCategory, ar as TraitScope } from '../trait-Bnd3i_2G.js';
|
|
9
|
+
export { e as CONFIG_REF_EVENT_PATTERN, C as CallSiteConfig, b as CallSiteConfigEntry, g as ConfigFieldDeclarationSchema, h as ConfigFieldItemsDeclaration, i as ConfigRefEventError, j as DeclaredTraitConfigSchema, E as EntityFieldContract, k as EntityFieldContractSchema, m as EventInput, n as EventPayloadField, o as EventPayloadFieldSchema, p as EventSchema, q as EventScope, r as EventScopeSchema, G as Guard, s as GuardInput, t as GuardSchema, u as ListenSourceSchema, O as OrbitalTraitRef, v as OrbitalTraitRefSchema, P as PayloadField, w as PayloadFieldSchema, x as PresentationType, R as REFERENCE_CONFIG_TYPES, y as ReferenceConfigType, z as RequiredField, A as RequiredFieldSchema, B as SECRET_CONFIG_TYPES, F as SecretConfigType, H as StateInput, I as StateMachine, J as StateMachineInput, K as StateMachineSchema, M as StateSchema, N as TickIntervalSchema, U as TraitCategorySchema, V as TraitConfigObject, W as TraitConfigSchema, Y as TraitConfigValueSchema, Z as TraitDataEntity, _ as TraitDataEntitySchema, $ as TraitEntityField, a0 as TraitEntityFieldSchema, a1 as TraitEventContract, a2 as TraitEventContractSchema, T as TraitEventListener, a3 as TraitEventListenerSchema, a4 as TraitInput, a5 as TraitRef, a6 as TraitRefSchema, a7 as TraitReferenceInput, a8 as TraitReferenceSchema, a9 as TraitSchema, aa as TraitTick, ab as TraitTickSchema, ac as TraitUIBinding, ae as TransitionInput, af as TransitionSchema, ag as configRefEventKnob, ah as getTraitConfig, ai as getTraitName, aj as isCallSiteConfigDeclaration, ak as isCircuitEvent, al as isInlineTrait, am as isReferenceConfigType, an as isSecretConfigType, ao as normalizeCallSiteConfigToValues, ap as normalizeTraitRef, aq as resolveConfigRefEventName } from '../trait-Bnd3i_2G.js';
|
|
10
|
+
import { a3 as ServiceParams, A as AnyPatternConfig, E as Effect } from '../effect-5kg4MCeB.js';
|
|
11
|
+
export { a as AgentEffect, b as ApplicationEffect, c as AtomicEffect, B as BehaviorEffect, C as CallServiceConfig, d as CallServiceEffect, e as CheckpointLoadEffect, f as CheckpointSaveEffect, g as ComposeEffect, D as DerefEffect, h as DespawnEffect, i as DoEffect, j as EffectInput, k as EffectSchema, l as EmitConfig, m as EmitEffect, n as EvaluateConfig, o as EvaluateEffect, F as FetchEffect, p as FetchOptions, q as FetchResult, r as ForwardConfig, s as ForwardEffect, L as LlmEffect, t as LogEffect, M as McpServiceDef, u as McpServiceDefSchema, v as MemoryEffect, N as NavigateEffect, w as NnConfig, x as NnLayer, y as NotifyEffect, O as OsEffect, P as PATTERN_TYPES, z as PatternConfig, I as PatternType, J as PersistData, K as PersistEffect, Q as PersistEmitConfig, R as RefEffect, S as RenderBinding, T as RenderChildrenMap, U as RenderItemLambda, V as RenderUIEffect, W as RenderUINode, X as ResolvedPatternProps, Y as RestAuthConfig, Z as RestAuthConfigSchema, _ as RestServiceDef, $ as RestServiceDefSchema, a0 as SERVICE_TYPES, a1 as ServiceDefinition, a2 as ServiceDefinitionSchema, a4 as ServiceParamsValue, a5 as ServiceRef, a6 as ServiceRefObject, a7 as ServiceRefObjectSchema, a8 as ServiceRefSchema, a9 as ServiceRefStringSchema, aa as ServiceType, ab as ServiceTypeSchema, ac as SessionEffect, ad as SetEffect, ae as SocketEvents, af as SocketEventsSchema, ag as SocketServiceDef, ah as SocketServiceDefSchema, ai as SpawnEffect, aj as SwapEffect, ak as TraceEffect, al as TrainConfig, am as TrainEffect, an as TypedEffect, ao as UISlot, ap as UISlotSchema, aq as UI_SLOTS, ar as ValidateEffect, as as WatchEffect, at as WatchOptions, au as atomic, av as callService, aw as deref, ax as despawn, ay as doEffects, az as emit, aA as findService, aB as getServiceNames, aC as hasService, aD as isEffect, aE as isMcpService, aF as isRestService, aG as isSExprEffect, aH as isServiceReference, aI as isServiceReferenceObject, aJ as isSocketService, aK as isValidPatternType, aL as navigate, aM as notify, aN as parseServiceRef, aO as persist, aP as ref, aQ as renderUI, aR as set, aS as spawn, aT as swap, aU as watch } from '../effect-5kg4MCeB.js';
|
|
12
|
+
import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-BE598tvP.js';
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* S-Expression Bindings
|
|
@@ -1371,9 +1373,9 @@ interface ValidationDocument {
|
|
|
1371
1373
|
*/
|
|
1372
1374
|
type PersistActionName = "create" | "update" | "delete" | "list" | "query";
|
|
1373
1375
|
/**
|
|
1374
|
-
* Union of all service action names across
|
|
1376
|
+
* Union of all service action names across the registered service contracts.
|
|
1375
1377
|
*/
|
|
1376
|
-
type ServiceActionName = PersistActionName | "get" | "getById" | "set" | "remove" | "size" | "generate" | "classify" | "extract" | "summarize" | "send" | "sendMessage" | "sendSMS" | "sendWhatsApp" | "authorize" | "revoke" | "token" | "refresh" | "userinfo" | "register" | "cloneRepo" | "commit" | "createBranch" | "createPR" | "getPRComments" | "pull" | "push" | "build" | "compile" | "compileSchema" | "run" | "validate" | "validateSchema" | "publish" | "enqueue" | "dequeue" | "cancel" | "upload" | "download" | "getSignedUrl" | "search" | "getIssue" | "listIssues" | "generateAll" | "generateDomainLanguage" | "generateFix" | "generateOrbitals" | "cancelGeneration" | "getGenerationHistory" | "recordGeneration" | "startSpan" | "endSpan" | "getSpan" | "recordMetric" | "getMetrics" | "increment" | "logs" | "addEvent" | "emit" | "findEmitters" | "findListeners" | "getListenerCounts" | "getChannel" | "subscribe" | "getUserPreferences" | "updateUserPreferences" | "getThreadHistory" | "getVideo" | "createPaymentIntent" | "confirmPayment" | "refund" | "complete" | "fail" | "expire" | "resume" | "status" | "stop" | "lock" | "unlock" | "clear";
|
|
1378
|
+
type ServiceActionName = PersistActionName | "get" | "getById" | "set" | "remove" | "size" | "generate" | "classify" | "extract" | "summarize" | "send" | "sendMessage" | "sendSMS" | "sendWhatsApp" | "authorize" | "revoke" | "token" | "refresh" | "userinfo" | "register" | "cloneRepo" | "commit" | "createBranch" | "createPR" | "getPRComments" | "pull" | "push" | "build" | "compile" | "compileSchema" | "run" | "validate" | "validateSchema" | "publish" | "enqueue" | "dequeue" | "cancel" | "upload" | "download" | "getSignedUrl" | "search" | "getIssue" | "listIssues" | "generateAll" | "generateDomainLanguage" | "generateFix" | "generateOrbitals" | "cancelGeneration" | "getGenerationHistory" | "recordGeneration" | "startSpan" | "endSpan" | "getSpan" | "recordMetric" | "getMetrics" | "increment" | "logs" | "addEvent" | "emit" | "findEmitters" | "findListeners" | "getListenerCounts" | "getChannel" | "subscribe" | "getUserPreferences" | "updateUserPreferences" | "getThreadHistory" | "listDocuments" | "fetchDocument" | "getVideo" | "createPaymentIntent" | "confirmPayment" | "refund" | "complete" | "fail" | "expire" | "resume" | "status" | "stop" | "lock" | "unlock" | "clear";
|
|
1377
1379
|
/**
|
|
1378
1380
|
* Action definition for a service contract.
|
|
1379
1381
|
*
|
package/dist/types/index.js
CHANGED
|
@@ -160,13 +160,18 @@ function isJsonArray(value) {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
// src/types/field.ts
|
|
163
|
-
var
|
|
163
|
+
var FIELD_TYPES = [
|
|
164
164
|
"string",
|
|
165
165
|
"number",
|
|
166
166
|
"boolean",
|
|
167
167
|
"date",
|
|
168
168
|
"timestamp",
|
|
169
169
|
"datetime",
|
|
170
|
+
"email",
|
|
171
|
+
"url",
|
|
172
|
+
"phone",
|
|
173
|
+
"uuid",
|
|
174
|
+
"image",
|
|
170
175
|
"array",
|
|
171
176
|
"object",
|
|
172
177
|
"enum",
|
|
@@ -174,7 +179,12 @@ var FieldTypeSchema = z.enum([
|
|
|
174
179
|
"trait",
|
|
175
180
|
"slot",
|
|
176
181
|
"pattern"
|
|
177
|
-
]
|
|
182
|
+
];
|
|
183
|
+
var SEMANTIC_STRING_TYPES = ["email", "url", "phone", "uuid", "image"];
|
|
184
|
+
function isSemanticStringType(type) {
|
|
185
|
+
return SEMANTIC_STRING_TYPES.includes(type);
|
|
186
|
+
}
|
|
187
|
+
var FieldTypeSchema = z.enum(FIELD_TYPES);
|
|
178
188
|
var RelationCardinalitySchema = z.enum([
|
|
179
189
|
"one",
|
|
180
190
|
"many",
|
|
@@ -202,17 +212,35 @@ var RelationConfigSchema = z.object({
|
|
|
202
212
|
};
|
|
203
213
|
return normalized;
|
|
204
214
|
});
|
|
205
|
-
var
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
var EMAIL_RE = /^[^\s@]+@[^\s@.]+\.[^\s@]+$/;
|
|
216
|
+
var URL_RE = /^https?:\/\/[^\s]+$/;
|
|
217
|
+
var PHONE_RE = /^[+]?[\d\s().-]{7,}$/;
|
|
218
|
+
var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
219
|
+
function isEmailValue(value) {
|
|
220
|
+
return EMAIL_RE.test(value);
|
|
221
|
+
}
|
|
222
|
+
function isUrlValue(value) {
|
|
223
|
+
return URL_RE.test(value);
|
|
224
|
+
}
|
|
225
|
+
function isPhoneValue(value) {
|
|
226
|
+
return PHONE_RE.test(value);
|
|
227
|
+
}
|
|
228
|
+
function isUuidValue(value) {
|
|
229
|
+
return UUID_RE.test(value);
|
|
230
|
+
}
|
|
231
|
+
function isSemanticStringValue(type, value) {
|
|
232
|
+
switch (type) {
|
|
233
|
+
case "email":
|
|
234
|
+
return isEmailValue(value);
|
|
235
|
+
case "url":
|
|
236
|
+
case "image":
|
|
237
|
+
return isUrlValue(value);
|
|
238
|
+
case "phone":
|
|
239
|
+
return isPhoneValue(value);
|
|
240
|
+
case "uuid":
|
|
241
|
+
return isUuidValue(value);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
216
244
|
var FIELD_TYPE_ALIASES = {
|
|
217
245
|
text: "string",
|
|
218
246
|
int: "number",
|
|
@@ -224,7 +252,6 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
224
252
|
name: z.string().min(1, "Field name is required").optional(),
|
|
225
253
|
required: z.boolean().optional(),
|
|
226
254
|
default: JsonValueSchema.optional(),
|
|
227
|
-
format: FieldFormatSchema.optional(),
|
|
228
255
|
min: z.number().optional(),
|
|
229
256
|
max: z.number().optional(),
|
|
230
257
|
properties: z.record(EntityFieldSchema).optional(),
|
|
@@ -261,6 +288,11 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
261
288
|
scalarVariant("date"),
|
|
262
289
|
scalarVariant("timestamp"),
|
|
263
290
|
scalarVariant("datetime"),
|
|
291
|
+
scalarVariant("email"),
|
|
292
|
+
scalarVariant("url"),
|
|
293
|
+
scalarVariant("phone"),
|
|
294
|
+
scalarVariant("uuid"),
|
|
295
|
+
scalarVariant("image"),
|
|
264
296
|
scalarVariant("trait"),
|
|
265
297
|
scalarVariant("slot"),
|
|
266
298
|
scalarVariant("pattern"),
|
|
@@ -760,6 +792,10 @@ var REFERENCE_CONFIG_TYPES = ["entity", "trait", "event"];
|
|
|
760
792
|
function isReferenceConfigType(type) {
|
|
761
793
|
return REFERENCE_CONFIG_TYPES.includes(type);
|
|
762
794
|
}
|
|
795
|
+
var SECRET_CONFIG_TYPES = ["secret"];
|
|
796
|
+
function isSecretConfigType(type) {
|
|
797
|
+
return SECRET_CONFIG_TYPES.includes(type);
|
|
798
|
+
}
|
|
763
799
|
var ConfigFieldItemsDeclarationSchema = z.lazy(
|
|
764
800
|
() => z.object({
|
|
765
801
|
type: z.string().optional(),
|
|
@@ -811,7 +847,12 @@ var TraitEntityFieldSchema = z.object({
|
|
|
811
847
|
"object",
|
|
812
848
|
"timestamp",
|
|
813
849
|
"datetime",
|
|
814
|
-
"enum"
|
|
850
|
+
"enum",
|
|
851
|
+
"email",
|
|
852
|
+
"url",
|
|
853
|
+
"phone",
|
|
854
|
+
"uuid",
|
|
855
|
+
"image"
|
|
815
856
|
]),
|
|
816
857
|
required: z.boolean().optional(),
|
|
817
858
|
default: TraitConfigValueSchema.optional(),
|
|
@@ -936,7 +977,7 @@ var TraitEventListenerSchema = z.object({
|
|
|
936
977
|
});
|
|
937
978
|
var RequiredFieldSchema = z.object({
|
|
938
979
|
name: z.string().min(1),
|
|
939
|
-
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]),
|
|
980
|
+
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]),
|
|
940
981
|
description: z.string().optional()
|
|
941
982
|
});
|
|
942
983
|
var TraitReferenceSchema = z.object({
|
|
@@ -2188,6 +2229,9 @@ var PATTERN_TYPES = [
|
|
|
2188
2229
|
"hero-section",
|
|
2189
2230
|
"hstack",
|
|
2190
2231
|
"icon",
|
|
2232
|
+
"import-preview-tree",
|
|
2233
|
+
"import-progress",
|
|
2234
|
+
"import-source-picker",
|
|
2191
2235
|
"infinite-scroll-sentinel",
|
|
2192
2236
|
"input",
|
|
2193
2237
|
"input-group",
|
|
@@ -2614,6 +2658,6 @@ function widenTier(tier) {
|
|
|
2614
2658
|
return tier;
|
|
2615
2659
|
}
|
|
2616
2660
|
|
|
2617
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, 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, 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, ExpressionSchema,
|
|
2661
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, 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, 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, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, MOCK_PERSONAS, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, 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, 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, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, despawn, doEffects, emit, encodeDevIdentityToken, findMockPersona, 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, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPhoneValue, isPlanSnapshot, isReferenceConfigType, 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, mintId, navigate, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, resolveConfigRefEventName, resolvePersonaSpec, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
|
|
2618
2662
|
//# sourceMappingURL=index.js.map
|
|
2619
2663
|
//# sourceMappingURL=index.js.map
|