@almadar/core 10.37.0 → 10.39.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-D6d2ErNo.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-BqPofdgp.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 +468 -25
- 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 +910 -10
- package/dist/patterns/index.js +403 -8
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +21 -1
- package/dist/patterns/patterns-registry.json +362 -5
- package/dist/patterns/registry.json +362 -5
- package/dist/patterns/services-registry.json +104 -0
- package/dist/{trait-CEO7o8Ne.d.ts → trait-BCpJvo8I.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-DIIZXx8y.d.ts} +3 -3
- package/package.json +6 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as EventId, T as TraitId, O as OrbitalId, d as EntityId, P as PageId, e as Entity, a as EntityField } from './entity-CVylqnAf.js';
|
|
2
2
|
import { E as Expression, S as SExpr } from './expression-DpAj1RzP.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import { E as Effect, A as AnyPatternConfig } from './effect-BqPofdgp.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Represents a state in the state machine
|
|
@@ -496,6 +497,21 @@ declare const REFERENCE_CONFIG_TYPES: readonly ["entity", "trait", "event"];
|
|
|
496
497
|
type ReferenceConfigType = (typeof REFERENCE_CONFIG_TYPES)[number];
|
|
497
498
|
/** True when a config field's `type` marks its value as an entity/trait/event reference. */
|
|
498
499
|
declare function isReferenceConfigType(type: string): type is ReferenceConfigType;
|
|
500
|
+
/**
|
|
501
|
+
* The secret config-field types. A config knob typed `secret` holds a
|
|
502
|
+
* CREDENTIAL (or a reference to one): it must never flow into spec.json,
|
|
503
|
+
* traces, plan snapshots, or factory bakes in cleartext — consumers mask it
|
|
504
|
+
* in UI (password-rendered input) and exclude it from serialization. The
|
|
505
|
+
* `.lolo` language does not yet accept `secret` as a config-field type
|
|
506
|
+
* (orbital-lolo parser gate); this contract is the single deterministic
|
|
507
|
+
* source downstream consumers (studio, verifiers, rabit bakes) key on once
|
|
508
|
+
* it lands — until then hosts use a `string` knob plus a password-rendered
|
|
509
|
+
* `ui-input` (the std-service-custom-bearer pattern).
|
|
510
|
+
*/
|
|
511
|
+
declare const SECRET_CONFIG_TYPES: readonly ["secret"];
|
|
512
|
+
type SecretConfigType = (typeof SECRET_CONFIG_TYPES)[number];
|
|
513
|
+
/** True when a config field's `type` marks its value as a credential to be masked. */
|
|
514
|
+
declare function isSecretConfigType(type: string): type is SecretConfigType;
|
|
499
515
|
type ConfigFieldDeclaration = {
|
|
500
516
|
readonly type: string;
|
|
501
517
|
readonly default?: TraitConfigValue;
|
|
@@ -546,7 +562,7 @@ declare const TraitCategorySchema: z.ZodEnum<["lifecycle", "temporal", "validati
|
|
|
546
562
|
/**
|
|
547
563
|
* Field types for trait data entities
|
|
548
564
|
*/
|
|
549
|
-
type TraitFieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'timestamp' | 'datetime' | 'enum';
|
|
565
|
+
type TraitFieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'timestamp' | 'datetime' | 'enum' | 'email' | 'url' | 'phone' | 'uuid' | 'image';
|
|
550
566
|
/**
|
|
551
567
|
* Simplified field for trait data entities
|
|
552
568
|
*/
|
|
@@ -1014,19 +1030,19 @@ declare const TraitEventListenerSchema: z.ZodObject<{
|
|
|
1014
1030
|
*/
|
|
1015
1031
|
type RequiredField = {
|
|
1016
1032
|
name: string;
|
|
1017
|
-
type:
|
|
1033
|
+
type: TraitFieldType;
|
|
1018
1034
|
description?: string;
|
|
1019
1035
|
};
|
|
1020
1036
|
declare const RequiredFieldSchema: z.ZodObject<{
|
|
1021
1037
|
name: z.ZodString;
|
|
1022
|
-
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]>;
|
|
1038
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]>;
|
|
1023
1039
|
description: z.ZodOptional<z.ZodString>;
|
|
1024
1040
|
}, "strip", z.ZodTypeAny, {
|
|
1025
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
1041
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
1026
1042
|
name: string;
|
|
1027
1043
|
description?: string | undefined;
|
|
1028
1044
|
}, {
|
|
1029
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
1045
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
1030
1046
|
name: string;
|
|
1031
1047
|
description?: string | undefined;
|
|
1032
1048
|
}>;
|
|
@@ -1436,14 +1452,14 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
1436
1452
|
traitEmbedIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, TraitId, string>>>;
|
|
1437
1453
|
requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1438
1454
|
name: z.ZodString;
|
|
1439
|
-
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]>;
|
|
1455
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]>;
|
|
1440
1456
|
description: z.ZodOptional<z.ZodString>;
|
|
1441
1457
|
}, "strip", z.ZodTypeAny, {
|
|
1442
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
1458
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
1443
1459
|
name: string;
|
|
1444
1460
|
description?: string | undefined;
|
|
1445
1461
|
}, {
|
|
1446
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
1462
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
1447
1463
|
name: string;
|
|
1448
1464
|
description?: string | undefined;
|
|
1449
1465
|
}>, "many">>;
|
|
@@ -2004,7 +2020,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
2004
2020
|
entityRefIds?: Record<string, EntityId> | undefined;
|
|
2005
2021
|
traitEmbedIds?: Record<string, TraitId> | undefined;
|
|
2006
2022
|
requiredFields?: {
|
|
2007
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2023
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2008
2024
|
name: string;
|
|
2009
2025
|
description?: string | undefined;
|
|
2010
2026
|
}[] | undefined;
|
|
@@ -2150,7 +2166,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
2150
2166
|
entityRefIds?: Record<string, string> | undefined;
|
|
2151
2167
|
traitEmbedIds?: Record<string, string> | undefined;
|
|
2152
2168
|
requiredFields?: {
|
|
2153
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2169
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2154
2170
|
name: string;
|
|
2155
2171
|
description?: string | undefined;
|
|
2156
2172
|
}[] | undefined;
|
|
@@ -2240,14 +2256,14 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2240
2256
|
traitEmbedIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, TraitId, string>>>;
|
|
2241
2257
|
requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2242
2258
|
name: z.ZodString;
|
|
2243
|
-
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]>;
|
|
2259
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]>;
|
|
2244
2260
|
description: z.ZodOptional<z.ZodString>;
|
|
2245
2261
|
}, "strip", z.ZodTypeAny, {
|
|
2246
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2262
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2247
2263
|
name: string;
|
|
2248
2264
|
description?: string | undefined;
|
|
2249
2265
|
}, {
|
|
2250
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2266
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2251
2267
|
name: string;
|
|
2252
2268
|
description?: string | undefined;
|
|
2253
2269
|
}>, "many">>;
|
|
@@ -2808,7 +2824,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2808
2824
|
entityRefIds?: Record<string, EntityId> | undefined;
|
|
2809
2825
|
traitEmbedIds?: Record<string, TraitId> | undefined;
|
|
2810
2826
|
requiredFields?: {
|
|
2811
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2827
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2812
2828
|
name: string;
|
|
2813
2829
|
description?: string | undefined;
|
|
2814
2830
|
}[] | undefined;
|
|
@@ -2954,7 +2970,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2954
2970
|
entityRefIds?: Record<string, string> | undefined;
|
|
2955
2971
|
traitEmbedIds?: Record<string, string> | undefined;
|
|
2956
2972
|
requiredFields?: {
|
|
2957
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2973
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2958
2974
|
name: string;
|
|
2959
2975
|
description?: string | undefined;
|
|
2960
2976
|
}[] | undefined;
|
|
@@ -3114,14 +3130,14 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3114
3130
|
traitEmbedIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, TraitId, string>>>;
|
|
3115
3131
|
requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3116
3132
|
name: z.ZodString;
|
|
3117
|
-
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]>;
|
|
3133
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]>;
|
|
3118
3134
|
description: z.ZodOptional<z.ZodString>;
|
|
3119
3135
|
}, "strip", z.ZodTypeAny, {
|
|
3120
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
3136
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
3121
3137
|
name: string;
|
|
3122
3138
|
description?: string | undefined;
|
|
3123
3139
|
}, {
|
|
3124
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
3140
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
3125
3141
|
name: string;
|
|
3126
3142
|
description?: string | undefined;
|
|
3127
3143
|
}>, "many">>;
|
|
@@ -3682,7 +3698,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3682
3698
|
entityRefIds?: Record<string, EntityId> | undefined;
|
|
3683
3699
|
traitEmbedIds?: Record<string, TraitId> | undefined;
|
|
3684
3700
|
requiredFields?: {
|
|
3685
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
3701
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
3686
3702
|
name: string;
|
|
3687
3703
|
description?: string | undefined;
|
|
3688
3704
|
}[] | undefined;
|
|
@@ -3828,7 +3844,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3828
3844
|
entityRefIds?: Record<string, string> | undefined;
|
|
3829
3845
|
traitEmbedIds?: Record<string, string> | undefined;
|
|
3830
3846
|
requiredFields?: {
|
|
3831
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
3847
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
3832
3848
|
name: string;
|
|
3833
3849
|
description?: string | undefined;
|
|
3834
3850
|
}[] | undefined;
|
|
@@ -3874,4 +3890,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3874
3890
|
} | undefined;
|
|
3875
3891
|
}>]>;
|
|
3876
3892
|
|
|
3877
|
-
export { type
|
|
3893
|
+
export { type TraitEntityField as $, RequiredFieldSchema as A, SECRET_CONFIG_TYPES as B, type CallSiteConfig as C, type DeclaredTraitConfig as D, type EntityFieldContract as E, type SecretConfigType as F, type Guard as G, type StateInput as H, type StateMachine as I, type StateMachineInput as J, StateMachineSchema as K, type ListenSource as L, StateSchema as M, TickIntervalSchema as N, type OrbitalTraitRef as O, type PayloadField as P, type TraitCategory as Q, REFERENCE_CONFIG_TYPES as R, type State as S, type TraitEventListener as T, TraitCategorySchema as U, type TraitConfigObject as V, TraitConfigSchema as W, type TraitConfigValue as X, TraitConfigValueSchema as Y, type TraitDataEntity as Z, TraitDataEntitySchema as _, type TraitReference as a, TraitEntityFieldSchema as a0, type TraitEventContract as a1, TraitEventContractSchema as a2, TraitEventListenerSchema as a3, type TraitInput as a4, type TraitRef as a5, TraitRefSchema as a6, type TraitReferenceInput as a7, TraitReferenceSchema as a8, TraitSchema as a9, type TraitTick as aa, TraitTickSchema as ab, type TraitUIBinding as ac, type Transition as ad, type TransitionInput as ae, TransitionSchema as af, configRefEventKnob as ag, getTraitConfig as ah, getTraitName as ai, isCallSiteConfigDeclaration as aj, isCircuitEvent as ak, isInlineTrait as al, isReferenceConfigType as am, isSecretConfigType as an, normalizeCallSiteConfigToValues as ao, normalizeTraitRef as ap, resolveConfigRefEventName as aq, type TraitScope as ar, type CallSiteConfigEntry as b, type Trait as c, type TraitConfig as d, CONFIG_REF_EVENT_PATTERN as e, type ConfigFieldDeclaration as f, ConfigFieldDeclarationSchema as g, type ConfigFieldItemsDeclaration as h, type ConfigRefEventError as i, DeclaredTraitConfigSchema as j, EntityFieldContractSchema as k, type Event as l, type EventInput as m, type EventPayloadField as n, EventPayloadFieldSchema as o, EventSchema as p, type EventScope as q, EventScopeSchema as r, type GuardInput as s, GuardSchema as t, ListenSourceSchema as u, OrbitalTraitRefSchema as v, PayloadFieldSchema as w, type PresentationType as x, type ReferenceConfigType as y, type RequiredField as z };
|
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-D6d2ErNo.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-D6d2ErNo.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-BCpJvo8I.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-BCpJvo8I.js';
|
|
10
|
+
import { a3 as ServiceParams, A as AnyPatternConfig, E as Effect } from '../effect-BqPofdgp.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-BqPofdgp.js';
|
|
12
|
+
import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-DIIZXx8y.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
|