@almadar/core 9.1.1 → 9.3.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 +9 -3
- package/dist/builders.js +9 -1
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-Bn9WPGfr.d.ts → compose-behaviors-BuJL_Mv8.d.ts} +1 -1
- package/dist/factory/index.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/{schema-B6gRJD4J.d.ts → schema-BdATnYqq.d.ts} +1 -1
- package/dist/{trait-DvvM-71c.d.ts → trait-DmoY7UHh.d.ts} +22 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +8 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as Expression, S as SExpr } from './expression-BVRFm0sV.js';
|
|
2
|
-
import { bp as TraitConfig, bq as TraitConfigObject, b0 as ServiceRef, z as Entity, F as EntityField, K as EntityPersistence, bD as TraitRef, V as EventPayloadField, o as ConfigFieldDeclaration, aY as ServiceDefinition, bm as Trait } from './trait-
|
|
2
|
+
import { bp as TraitConfig, bq as TraitConfigObject, b0 as ServiceRef, z as Entity, F as EntityField, K as EntityPersistence, bD as TraitRef, V as EventPayloadField, o as ConfigFieldDeclaration, aY as ServiceDefinition, bm as Trait } from './trait-DmoY7UHh.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -93,8 +93,16 @@ declare const RelationConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
93
93
|
/**
|
|
94
94
|
* Field format validators for string fields.
|
|
95
95
|
*/
|
|
96
|
-
type FieldFormat = 'email' | 'url' | 'phone' | 'date' | 'datetime' | 'uuid'
|
|
97
|
-
|
|
96
|
+
type FieldFormat = 'email' | 'url' | 'phone' | 'date' | 'datetime' | 'uuid'
|
|
97
|
+
/** Render hint: this string field stores an image URL. Mock adapters
|
|
98
|
+
* generate a deterministic picsum.photos URL; UI patterns can branch
|
|
99
|
+
* to an `<img>` instead of a `<typography>`. */
|
|
100
|
+
| 'image'
|
|
101
|
+
/** Render hint: avatar-shaped image (square, small). */
|
|
102
|
+
| 'avatar'
|
|
103
|
+
/** Render hint: thumbnail image (small landscape). */
|
|
104
|
+
| 'thumbnail';
|
|
105
|
+
declare const FieldFormatSchema: z.ZodEnum<["email", "url", "phone", "date", "datetime", "uuid", "image", "avatar", "thumbnail"]>;
|
|
98
106
|
/**
|
|
99
107
|
* Field-type tags that don't carry a type-dependent payload. The base
|
|
100
108
|
* `EntityField` shape applies as-is.
|
|
@@ -3155,6 +3163,13 @@ interface TraitReference {
|
|
|
3155
3163
|
name?: string;
|
|
3156
3164
|
/** Phase F: rename atom event keys at the call site, e.g. {OPEN: "ADD_ITEM"} */
|
|
3157
3165
|
events?: Record<string, string>;
|
|
3166
|
+
/**
|
|
3167
|
+
* Entity-field remap: rewrite the inlined trait's canonical `@entity.X` /
|
|
3168
|
+
* `@payload.row.X` field references to the consumer entity's field names,
|
|
3169
|
+
* e.g. `{ name: "title", folder: "parentId" }`. Mirrors `events` for
|
|
3170
|
+
* fields. Applied during inline substitution alongside `linkedEntity`.
|
|
3171
|
+
*/
|
|
3172
|
+
fields?: Record<string, string>;
|
|
3158
3173
|
config?: TraitConfig;
|
|
3159
3174
|
appliesTo?: string[];
|
|
3160
3175
|
/**
|
|
@@ -3205,6 +3220,7 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3205
3220
|
linkedEntity: z.ZodOptional<z.ZodString>;
|
|
3206
3221
|
name: z.ZodOptional<z.ZodString>;
|
|
3207
3222
|
events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3223
|
+
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3208
3224
|
config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
|
|
3209
3225
|
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3210
3226
|
listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -3213,6 +3229,7 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3213
3229
|
}, "strip", z.ZodTypeAny, {
|
|
3214
3230
|
ref: string;
|
|
3215
3231
|
name?: string | undefined;
|
|
3232
|
+
fields?: Record<string, string> | undefined;
|
|
3216
3233
|
config?: TraitConfigObject | undefined;
|
|
3217
3234
|
events?: Record<string, string> | undefined;
|
|
3218
3235
|
from?: string | undefined;
|
|
@@ -3224,6 +3241,7 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3224
3241
|
}, {
|
|
3225
3242
|
ref: string;
|
|
3226
3243
|
name?: string | undefined;
|
|
3244
|
+
fields?: Record<string, string> | undefined;
|
|
3227
3245
|
config?: TraitConfigObject | undefined;
|
|
3228
3246
|
events?: Record<string, string> | undefined;
|
|
3229
3247
|
from?: string | undefined;
|
|
@@ -3235,6 +3253,7 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3235
3253
|
}>, {
|
|
3236
3254
|
ref: string;
|
|
3237
3255
|
name?: string | undefined;
|
|
3256
|
+
fields?: Record<string, string> | undefined;
|
|
3238
3257
|
config?: TraitConfigObject | undefined;
|
|
3239
3258
|
events?: Record<string, string> | undefined;
|
|
3240
3259
|
from?: string | undefined;
|
|
@@ -3246,6 +3265,7 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3246
3265
|
}, {
|
|
3247
3266
|
ref: string;
|
|
3248
3267
|
name?: string | undefined;
|
|
3268
|
+
fields?: Record<string, string> | undefined;
|
|
3249
3269
|
config?: TraitConfigObject | undefined;
|
|
3250
3270
|
events?: Record<string, string> | undefined;
|
|
3251
3271
|
from?: string | undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aL as OrbitalSchema, az as Orbital, aS as Page, F as DomainContext, aZ as PageTraitRef } from '../schema-
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES, a as ALLOWED_CUSTOM_COMPONENTS, b as AgentDomainCategory, c as AgentDomainCategorySchema, d as AllowedCustomComponent, C as ColorSlice, e as ColorSliceSchema, f as ColorTokens, g as ColorTokensSchema, h as ComputedEventContract, i as ComputedEventContractSchema, j as ComputedEventListener, k as ComputedEventListenerSchema, l as CustomPatternDefinition, m as CustomPatternDefinitionInput, n as CustomPatternDefinitionSchema, o as CustomPatternMap, p as CustomPatternMapInput, q as CustomPatternMapSchema, D as DensitySlice, r as DensitySliceSchema, s as DensityTokens, t as DensityTokensSchema, u as DesignPreferences, v as DesignPreferencesInput, w as DesignPreferencesSchema, x as DesignTokens, y as DesignTokensInput, z as DesignTokensSchema, B as DomainCategory, E as DomainCategorySchema, G as DomainContextInput, H as DomainContextSchema, I as DomainVocabulary, J as DomainVocabularySchema, K as ElevationSlice, L as ElevationSliceSchema, M as ElevationTokens, N as ElevationTokensSchema, O as EntityCall, P as EntityCallSchema, Q as EntityRef, R as EntityRefSchema, S as EntityRefStringSchema, T as EntitySemanticRole, U as EntitySemanticRoleSchema, V as EventListener, W as EventListenerSchema, X as EventSemanticRole, Y as EventSemanticRoleSchema, Z as EventSource, _ as EventSourceSchema, $ as GameSubCategory, a0 as GameSubCategorySchema, a1 as GeometrySlice, a2 as GeometrySliceSchema, a3 as GeometryTokens, a4 as GeometryTokensSchema, a5 as IconFamily, a6 as IconFamilySchema, a7 as IconographySlice, a8 as IconographySliceSchema, a9 as IconographyTokens, aa as IconographyTokensSchema, ab as IllustrationSlice, ac as IllustrationSliceSchema, ad as IllustrationStyle, ae as IllustrationStyleSchema, af as IllustrationTokens, ag as IllustrationTokensSchema, ah as MotionDurationKey, ai as MotionDurationKeySchema, aj as MotionDurationPalette, ak as MotionDurationPaletteSchema, al as MotionEasingKey, am as MotionEasingKeySchema, an as MotionEasingPalette, ao as MotionEasingPaletteSchema, ap as MotionIntent, aq as MotionIntentMap, ar as MotionIntentMapSchema, as as MotionIntentSchema, at as MotionSlice, au as MotionSliceSchema, av as MotionTokens, aw as MotionTokensSchema, ax as NodeClassification, ay as NodeClassificationSchema, aA as OrbitalConfig, aB as OrbitalConfigInput, aC as OrbitalConfigSchema, aD as OrbitalDefinition, aE as OrbitalDefinitionSchema, aF as OrbitalInput, aG as OrbitalPage, aH as OrbitalPageInput, aI as OrbitalPageSchema, aJ as OrbitalPageStrictInput, aK as OrbitalPageStrictSchema, aN as OrbitalSchemaInput, aO as OrbitalSchemaSchema, aP as OrbitalSchemaWithTraits, aQ as OrbitalUnit, aR as OrbitalUnitSchema, aM as OrbitalZodSchema, aT as PageRef, aU as PageRefObject, aV as PageRefObjectSchema, aW as PageRefSchema, aX as PageRefStringSchema, aY as PageSchema, a_ as PageTraitRefSchema, a$ as RelatedLink, b0 as RelatedLinkSchema, b1 as SkinSpec, b2 as SkinSpecSchema, b3 as SpacingScale, b4 as SpacingScaleSchema, b5 as StateSemanticRole, b6 as StateSemanticRoleSchema, b7 as SuggestedGuard, b8 as SuggestedGuardSchema, b9 as ThemeDefinition, ba as ThemeDefinitionSchema, bb as ThemeRef, bc as ThemeRefSchema, bd as ThemeRefStringSchema, be as ThemeTokens, bf as ThemeTokensSchema, bg as ThemeVariant, bh as ThemeVariantSchema, bi as TypeIntent, bj as TypeIntentMap, bk as TypeIntentMapSchema, bl as TypeIntentSchema, bm as TypeScale, bn as TypeScaleEntry, bo as TypeScaleEntrySchema, bp as TypeScaleSchema, bq as TypeScaleTokens, br as TypeScaleTokensSchema, bs as TypeSizeKey, bt as TypeSizeKeySchema, bu as TypeSlice, bv as TypeSliceSchema, bw as TypeSlot, bx as TypeSlotSchema, by as TypeWeight, bz as TypeWeightSchema, bA as UXHints, bB as UXHintsSchema, bC as UseDeclaration, bD as UseDeclarationSchema, bE as UserPersona, bF as UserPersonaInput, bG as UserPersonaSchema, aD as ValidatedOrbital, bH as ViewType, bI as ViewTypeSchema, bJ as isEntityCall, bK as isEntityReference, bL as isEntityReferenceAny, bM as isImportedTraitRef, bN as isOrbitalDefinition, bO as isPageReference, bP as isPageReferenceObject, bQ as isPageReferenceString, bR as isThemeReference, bS as parseEntityRef, bT as parseImportedTraitRef, bU as parseOrbitalSchema, bV as parsePageRef, bW as safeParseOrbitalSchema } from '../schema-
|
|
3
|
-
import { a_ as ServiceParams, bm as Trait, z as Entity, O as EntityRow, a7 as FieldValue, D as DeclaredTraitConfig, bp as TraitConfig, F as EntityField, K as EntityPersistence, bn as TraitCategory, bJ as TraitScope } from '../trait-
|
|
4
|
-
export { A as AgentEffect, a as AnimationDef, b as AnimationDefInput, c as AnimationDefSchema, d as ArrayEntityField, e as AssetMap, f as AssetMapInput, g as AssetMapSchema, h as AssetMapping, i as AssetMappingInput, j as AssetMappingSchema, k as AtomicEffect, C as CallServiceConfig, l as CallServiceEffect, m as CheckpointLoadEffect, n as CheckpointSaveEffect, o as ConfigFieldDeclaration, p as ConfigFieldDeclarationSchema, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, E as ENTITY_ROLES, u as Effect, v as EffectInput, w as EffectSchema, x as EmitConfig, y as EmitEffect, B as EntityData, G as EntityFieldContract, H as EntityFieldContractSchema, I as EntityFieldInput, J as EntityFieldSchema, L as EntityPersistenceSchema, M as EntityRole, N as EntityRoleSchema, P as EntitySchema, Q as EnumEntityField, R as EvaluateConfig, S as EvaluateEffect, T as Event, U as EventInput, V as EventPayloadField, W as EventPayloadFieldSchema, X as EventSchema, Y as EventScope, Z as EventScopeSchema, _ as FetchEffect, $ as FetchOptions, a0 as FetchResult, a1 as Field, a2 as FieldFormat, a3 as FieldFormatSchema, a4 as FieldSchema, a5 as FieldType, a6 as FieldTypeSchema, a8 as ForwardConfig, a9 as ForwardEffect, aa as GAME_TYPES, ab as GameType, ac as GameTypeSchema, ad as Guard, ae as GuardInput, af as GuardSchema, ag as ListenSource, ah as ListenSourceSchema, ai as LogEffect, aj as McpServiceDef, ak as McpServiceDefSchema, al as NavigateEffect, am as NnConfig, an as NnLayer, ao as NotifyEffect, ap as OrbitalEntity, aq as OrbitalEntityInput, ar as OrbitalEntitySchema, as as OrbitalTraitRef, at as OrbitalTraitRefSchema, au as OsEffect, av as PayloadField, aw as PayloadFieldSchema, ax as PersistData, ay as PersistEffect, az as PersistEmitConfig, aA as PresentationType, aB as RefEffect, aC as RelationConfig, aD as RelationConfigSchema, aE as RelationEntityField, aF as RenderItemLambda, aG as RenderUIConfig, aH as RenderUIEffect, aI as RenderUINode, aJ as RequiredField, aK as RequiredFieldSchema, aL as ResolvedAsset, aM as ResolvedAssetInput, aN as ResolvedAssetSchema, aO as ResolvedPatternProps, aP as RestAuthConfig, aQ as RestAuthConfigSchema, aR as RestServiceDef, aS as RestServiceDefSchema, aT as SERVICE_TYPES, aU as ScalarEntityField, aV as SemanticAssetRef, aW as SemanticAssetRefInput, aX as SemanticAssetRefSchema, aY as ServiceDefinition, aZ as ServiceDefinitionSchema, a$ as ServiceParamsValue, b0 as ServiceRef, b1 as ServiceRefObject, b2 as ServiceRefObjectSchema, b3 as ServiceRefSchema, b4 as ServiceRefStringSchema, b5 as ServiceType, b6 as ServiceTypeSchema, b7 as SetEffect, b8 as SocketEvents, b9 as SocketEventsSchema, ba as SocketServiceDef, bb as SocketServiceDefSchema, bc as SpawnEffect, bd as State, be as StateInput, bf as StateMachine, bg as StateMachineInput, bh as StateMachineSchema, bi as StateSchema, bj as SwapEffect, bk as TrainConfig, bl as TrainEffect, bo as TraitCategorySchema, bq as TraitConfigObject, br as TraitConfigSchema, bs as TraitConfigValue, bt as TraitConfigValueSchema, bu as TraitDataEntity, bv as TraitDataEntitySchema, bw as TraitEntityField, bx as TraitEntityFieldSchema, by as TraitEventContract, bz as TraitEventContractSchema, bA as TraitEventListener, bB as TraitEventListenerSchema, bC as TraitInput, bD as TraitRef, bE as TraitRefSchema, bF as TraitReference, bG as TraitReferenceInput, bH as TraitReferenceSchema, bI as TraitSchema, bK as TraitTick, bL as TraitTickSchema, bM as TraitUIBinding, bN as Transition, bO as TransitionInput, bP as TransitionSchema, bQ as TypedEffect, bR as UISlot, bS as UISlotSchema, bT as UI_SLOTS, bU as VISUAL_STYLES, bV as VisualStyle, bW as VisualStyleSchema, bX as WatchEffect, bY as WatchOptions, bZ as atomic, b_ as callService, b$ as createAssetKey, c0 as deref, c1 as deriveCollection, c2 as despawn, c3 as doEffects, c4 as emit, c5 as findService, c6 as getDefaultAnimationsForRole, c7 as getServiceNames, c8 as getTraitConfig, c9 as getTraitName, ca as hasService, cb as isCircuitEvent, cc as isEffect, cd as isInlineTrait, ce as isMcpService, cf as isRestService, cg as isRuntimeEntity, ch as isSExprEffect, ci as isServiceReference, cj as isServiceReferenceObject, ck as isSingletonEntity, cl as isSocketService, cm as navigate, cn as normalizeTraitRef, co as notify, cp as parseAssetKey, cq as parseServiceRef, cr as persist, cs as ref, ct as renderUI, cu as set, cv as spawn, cw as swap, cx as validateAssetAnimations, cy as watch } from '../trait-
|
|
1
|
+
import { aL as OrbitalSchema, az as Orbital, aS as Page, F as DomainContext, aZ as PageTraitRef } from '../schema-BdATnYqq.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, a as ALLOWED_CUSTOM_COMPONENTS, b as AgentDomainCategory, c as AgentDomainCategorySchema, d as AllowedCustomComponent, C as ColorSlice, e as ColorSliceSchema, f as ColorTokens, g as ColorTokensSchema, h as ComputedEventContract, i as ComputedEventContractSchema, j as ComputedEventListener, k as ComputedEventListenerSchema, l as CustomPatternDefinition, m as CustomPatternDefinitionInput, n as CustomPatternDefinitionSchema, o as CustomPatternMap, p as CustomPatternMapInput, q as CustomPatternMapSchema, D as DensitySlice, r as DensitySliceSchema, s as DensityTokens, t as DensityTokensSchema, u as DesignPreferences, v as DesignPreferencesInput, w as DesignPreferencesSchema, x as DesignTokens, y as DesignTokensInput, z as DesignTokensSchema, B as DomainCategory, E as DomainCategorySchema, G as DomainContextInput, H as DomainContextSchema, I as DomainVocabulary, J as DomainVocabularySchema, K as ElevationSlice, L as ElevationSliceSchema, M as ElevationTokens, N as ElevationTokensSchema, O as EntityCall, P as EntityCallSchema, Q as EntityRef, R as EntityRefSchema, S as EntityRefStringSchema, T as EntitySemanticRole, U as EntitySemanticRoleSchema, V as EventListener, W as EventListenerSchema, X as EventSemanticRole, Y as EventSemanticRoleSchema, Z as EventSource, _ as EventSourceSchema, $ as GameSubCategory, a0 as GameSubCategorySchema, a1 as GeometrySlice, a2 as GeometrySliceSchema, a3 as GeometryTokens, a4 as GeometryTokensSchema, a5 as IconFamily, a6 as IconFamilySchema, a7 as IconographySlice, a8 as IconographySliceSchema, a9 as IconographyTokens, aa as IconographyTokensSchema, ab as IllustrationSlice, ac as IllustrationSliceSchema, ad as IllustrationStyle, ae as IllustrationStyleSchema, af as IllustrationTokens, ag as IllustrationTokensSchema, ah as MotionDurationKey, ai as MotionDurationKeySchema, aj as MotionDurationPalette, ak as MotionDurationPaletteSchema, al as MotionEasingKey, am as MotionEasingKeySchema, an as MotionEasingPalette, ao as MotionEasingPaletteSchema, ap as MotionIntent, aq as MotionIntentMap, ar as MotionIntentMapSchema, as as MotionIntentSchema, at as MotionSlice, au as MotionSliceSchema, av as MotionTokens, aw as MotionTokensSchema, ax as NodeClassification, ay as NodeClassificationSchema, aA as OrbitalConfig, aB as OrbitalConfigInput, aC as OrbitalConfigSchema, aD as OrbitalDefinition, aE as OrbitalDefinitionSchema, aF as OrbitalInput, aG as OrbitalPage, aH as OrbitalPageInput, aI as OrbitalPageSchema, aJ as OrbitalPageStrictInput, aK as OrbitalPageStrictSchema, aN as OrbitalSchemaInput, aO as OrbitalSchemaSchema, aP as OrbitalSchemaWithTraits, aQ as OrbitalUnit, aR as OrbitalUnitSchema, aM as OrbitalZodSchema, aT as PageRef, aU as PageRefObject, aV as PageRefObjectSchema, aW as PageRefSchema, aX as PageRefStringSchema, aY as PageSchema, a_ as PageTraitRefSchema, a$ as RelatedLink, b0 as RelatedLinkSchema, b1 as SkinSpec, b2 as SkinSpecSchema, b3 as SpacingScale, b4 as SpacingScaleSchema, b5 as StateSemanticRole, b6 as StateSemanticRoleSchema, b7 as SuggestedGuard, b8 as SuggestedGuardSchema, b9 as ThemeDefinition, ba as ThemeDefinitionSchema, bb as ThemeRef, bc as ThemeRefSchema, bd as ThemeRefStringSchema, be as ThemeTokens, bf as ThemeTokensSchema, bg as ThemeVariant, bh as ThemeVariantSchema, bi as TypeIntent, bj as TypeIntentMap, bk as TypeIntentMapSchema, bl as TypeIntentSchema, bm as TypeScale, bn as TypeScaleEntry, bo as TypeScaleEntrySchema, bp as TypeScaleSchema, bq as TypeScaleTokens, br as TypeScaleTokensSchema, bs as TypeSizeKey, bt as TypeSizeKeySchema, bu as TypeSlice, bv as TypeSliceSchema, bw as TypeSlot, bx as TypeSlotSchema, by as TypeWeight, bz as TypeWeightSchema, bA as UXHints, bB as UXHintsSchema, bC as UseDeclaration, bD as UseDeclarationSchema, bE as UserPersona, bF as UserPersonaInput, bG as UserPersonaSchema, aD as ValidatedOrbital, bH as ViewType, bI as ViewTypeSchema, bJ as isEntityCall, bK as isEntityReference, bL as isEntityReferenceAny, bM as isImportedTraitRef, bN as isOrbitalDefinition, bO as isPageReference, bP as isPageReferenceObject, bQ as isPageReferenceString, bR as isThemeReference, bS as parseEntityRef, bT as parseImportedTraitRef, bU as parseOrbitalSchema, bV as parsePageRef, bW as safeParseOrbitalSchema } from '../schema-BdATnYqq.js';
|
|
3
|
+
import { a_ as ServiceParams, bm as Trait, z as Entity, O as EntityRow, a7 as FieldValue, D as DeclaredTraitConfig, bp as TraitConfig, F as EntityField, K as EntityPersistence, bn as TraitCategory, bJ as TraitScope } from '../trait-DmoY7UHh.js';
|
|
4
|
+
export { A as AgentEffect, a as AnimationDef, b as AnimationDefInput, c as AnimationDefSchema, d as ArrayEntityField, e as AssetMap, f as AssetMapInput, g as AssetMapSchema, h as AssetMapping, i as AssetMappingInput, j as AssetMappingSchema, k as AtomicEffect, C as CallServiceConfig, l as CallServiceEffect, m as CheckpointLoadEffect, n as CheckpointSaveEffect, o as ConfigFieldDeclaration, p as ConfigFieldDeclarationSchema, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, E as ENTITY_ROLES, u as Effect, v as EffectInput, w as EffectSchema, x as EmitConfig, y as EmitEffect, B as EntityData, G as EntityFieldContract, H as EntityFieldContractSchema, I as EntityFieldInput, J as EntityFieldSchema, L as EntityPersistenceSchema, M as EntityRole, N as EntityRoleSchema, P as EntitySchema, Q as EnumEntityField, R as EvaluateConfig, S as EvaluateEffect, T as Event, U as EventInput, V as EventPayloadField, W as EventPayloadFieldSchema, X as EventSchema, Y as EventScope, Z as EventScopeSchema, _ as FetchEffect, $ as FetchOptions, a0 as FetchResult, a1 as Field, a2 as FieldFormat, a3 as FieldFormatSchema, a4 as FieldSchema, a5 as FieldType, a6 as FieldTypeSchema, a8 as ForwardConfig, a9 as ForwardEffect, aa as GAME_TYPES, ab as GameType, ac as GameTypeSchema, ad as Guard, ae as GuardInput, af as GuardSchema, ag as ListenSource, ah as ListenSourceSchema, ai as LogEffect, aj as McpServiceDef, ak as McpServiceDefSchema, al as NavigateEffect, am as NnConfig, an as NnLayer, ao as NotifyEffect, ap as OrbitalEntity, aq as OrbitalEntityInput, ar as OrbitalEntitySchema, as as OrbitalTraitRef, at as OrbitalTraitRefSchema, au as OsEffect, av as PayloadField, aw as PayloadFieldSchema, ax as PersistData, ay as PersistEffect, az as PersistEmitConfig, aA as PresentationType, aB as RefEffect, aC as RelationConfig, aD as RelationConfigSchema, aE as RelationEntityField, aF as RenderItemLambda, aG as RenderUIConfig, aH as RenderUIEffect, aI as RenderUINode, aJ as RequiredField, aK as RequiredFieldSchema, aL as ResolvedAsset, aM as ResolvedAssetInput, aN as ResolvedAssetSchema, aO as ResolvedPatternProps, aP as RestAuthConfig, aQ as RestAuthConfigSchema, aR as RestServiceDef, aS as RestServiceDefSchema, aT as SERVICE_TYPES, aU as ScalarEntityField, aV as SemanticAssetRef, aW as SemanticAssetRefInput, aX as SemanticAssetRefSchema, aY as ServiceDefinition, aZ as ServiceDefinitionSchema, a$ as ServiceParamsValue, b0 as ServiceRef, b1 as ServiceRefObject, b2 as ServiceRefObjectSchema, b3 as ServiceRefSchema, b4 as ServiceRefStringSchema, b5 as ServiceType, b6 as ServiceTypeSchema, b7 as SetEffect, b8 as SocketEvents, b9 as SocketEventsSchema, ba as SocketServiceDef, bb as SocketServiceDefSchema, bc as SpawnEffect, bd as State, be as StateInput, bf as StateMachine, bg as StateMachineInput, bh as StateMachineSchema, bi as StateSchema, bj as SwapEffect, bk as TrainConfig, bl as TrainEffect, bo as TraitCategorySchema, bq as TraitConfigObject, br as TraitConfigSchema, bs as TraitConfigValue, bt as TraitConfigValueSchema, bu as TraitDataEntity, bv as TraitDataEntitySchema, bw as TraitEntityField, bx as TraitEntityFieldSchema, by as TraitEventContract, bz as TraitEventContractSchema, bA as TraitEventListener, bB as TraitEventListenerSchema, bC as TraitInput, bD as TraitRef, bE as TraitRefSchema, bF as TraitReference, bG as TraitReferenceInput, bH as TraitReferenceSchema, bI as TraitSchema, bK as TraitTick, bL as TraitTickSchema, bM as TraitUIBinding, bN as Transition, bO as TransitionInput, bP as TransitionSchema, bQ as TypedEffect, bR as UISlot, bS as UISlotSchema, bT as UI_SLOTS, bU as VISUAL_STYLES, bV as VisualStyle, bW as VisualStyleSchema, bX as WatchEffect, bY as WatchOptions, bZ as atomic, b_ as callService, b$ as createAssetKey, c0 as deref, c1 as deriveCollection, c2 as despawn, c3 as doEffects, c4 as emit, c5 as findService, c6 as getDefaultAnimationsForRole, c7 as getServiceNames, c8 as getTraitConfig, c9 as getTraitName, ca as hasService, cb as isCircuitEvent, cc as isEffect, cd as isInlineTrait, ce as isMcpService, cf as isRestService, cg as isRuntimeEntity, ch as isSExprEffect, ci as isServiceReference, cj as isServiceReferenceObject, ck as isSingletonEntity, cl as isSocketService, cm as navigate, cn as normalizeTraitRef, co as notify, cp as parseAssetKey, cq as parseServiceRef, cr as persist, cs as ref, ct as renderUI, cu as set, cv as spawn, cw as swap, cx as validateAssetAnimations, cy as watch } from '../trait-DmoY7UHh.js';
|
|
5
5
|
import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr } from '../expression-BVRFm0sV.js';
|
|
6
6
|
export { C as CORE_BINDINGS, a as CoreBinding, E as EvalContext, d 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 isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-BVRFm0sV.js';
|
|
7
7
|
import { z } from 'zod';
|
package/dist/types/index.js
CHANGED
|
@@ -49,7 +49,10 @@ var FieldFormatSchema = z.enum([
|
|
|
49
49
|
"phone",
|
|
50
50
|
"date",
|
|
51
51
|
"datetime",
|
|
52
|
-
"uuid"
|
|
52
|
+
"uuid",
|
|
53
|
+
"image",
|
|
54
|
+
"avatar",
|
|
55
|
+
"thumbnail"
|
|
53
56
|
]);
|
|
54
57
|
var FIELD_TYPE_ALIASES = {
|
|
55
58
|
text: "string",
|
|
@@ -619,6 +622,10 @@ var TraitReferenceSchema = z.object({
|
|
|
619
622
|
z.string().min(1, "events key (atom event name) must be non-empty"),
|
|
620
623
|
z.string().min(1, "events value (caller event name) must be non-empty")
|
|
621
624
|
).optional(),
|
|
625
|
+
fields: z.record(
|
|
626
|
+
z.string().min(1, "fields key (canonical field name) must be non-empty"),
|
|
627
|
+
z.string().min(1, "fields value (consumer field name) must be non-empty")
|
|
628
|
+
).optional(),
|
|
622
629
|
config: TraitConfigSchema.optional(),
|
|
623
630
|
appliesTo: z.array(z.string()).optional(),
|
|
624
631
|
// Phase F.7: zod accepts an array (the inliner validates element
|