@almadar/core 10.43.0 → 10.45.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.
@@ -1,4 +1,4 @@
1
- import { b as EventId, c as Effect, T as TraitId, O as OrbitalId, d as EntityId, P as PageId, A as AnyPatternConfig, e as Entity, E as EntityField } from './effect-NbTgX2yB.js';
1
+ import { b as EventId, c as Effect, T as TraitId, O as OrbitalId, d as EntityId, P as PageId, A as AnyPatternConfig, e as Entity, E as EntityField } from './effect-BZ1nzN3q.js';
2
2
  import { E as Expression, S as SExpr, J as JsonValue } from './expression-Yf7qvvOs.js';
3
3
  import { z } from 'zod';
4
4
 
@@ -1260,8 +1260,8 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1260
1260
  id?: TraitId | undefined;
1261
1261
  from?: string | undefined;
1262
1262
  name?: string | undefined;
1263
- fields?: Record<string, string> | undefined;
1264
1263
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
1264
+ fields?: Record<string, string> | undefined;
1265
1265
  events?: Record<string, string> | undefined;
1266
1266
  effects?: Record<string, SExpr[]> | undefined;
1267
1267
  refId?: TraitId | undefined;
@@ -1300,8 +1300,8 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1300
1300
  id?: string | undefined;
1301
1301
  from?: string | undefined;
1302
1302
  name?: string | undefined;
1303
- fields?: Record<string, string> | undefined;
1304
1303
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
1304
+ fields?: Record<string, string> | undefined;
1305
1305
  events?: Record<string, string> | undefined;
1306
1306
  effects?: Record<string, SExpr[]> | undefined;
1307
1307
  refId?: string | undefined;
@@ -1340,8 +1340,8 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1340
1340
  id?: TraitId | undefined;
1341
1341
  from?: string | undefined;
1342
1342
  name?: string | undefined;
1343
- fields?: Record<string, string> | undefined;
1344
1343
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
1344
+ fields?: Record<string, string> | undefined;
1345
1345
  events?: Record<string, string> | undefined;
1346
1346
  effects?: Record<string, SExpr[]> | undefined;
1347
1347
  refId?: TraitId | undefined;
@@ -1380,8 +1380,8 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1380
1380
  id?: string | undefined;
1381
1381
  from?: string | undefined;
1382
1382
  name?: string | undefined;
1383
- fields?: Record<string, string> | undefined;
1384
1383
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
1384
+ fields?: Record<string, string> | undefined;
1385
1385
  events?: Record<string, string> | undefined;
1386
1386
  effects?: Record<string, SExpr[]> | undefined;
1387
1387
  refId?: string | undefined;
@@ -2158,6 +2158,10 @@ declare const TraitSchema: z.ZodObject<{
2158
2158
  persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
2159
2159
  shared: z.ZodOptional<z.ZodBoolean>;
2160
2160
  identity: z.ZodOptional<z.ZodBoolean>;
2161
+ read_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
2162
+ create_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
2163
+ update_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
2164
+ delete_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
2161
2165
  collection: z.ZodOptional<z.ZodString>;
2162
2166
  fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
2163
2167
  instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>, "many">>;
@@ -2197,6 +2201,10 @@ declare const TraitSchema: z.ZodObject<{
2197
2201
  description?: string | undefined;
2198
2202
  shared?: boolean | undefined;
2199
2203
  identity?: boolean | undefined;
2204
+ read_policy?: SExpr | undefined;
2205
+ create_policy?: SExpr | undefined;
2206
+ update_policy?: SExpr | undefined;
2207
+ delete_policy?: SExpr | undefined;
2200
2208
  collection?: string | undefined;
2201
2209
  instances?: Record<string, JsonValue>[] | undefined;
2202
2210
  timestamps?: boolean | undefined;
@@ -2218,6 +2226,10 @@ declare const TraitSchema: z.ZodObject<{
2218
2226
  persistence?: "persistent" | "runtime" | undefined;
2219
2227
  shared?: boolean | undefined;
2220
2228
  identity?: boolean | undefined;
2229
+ read_policy?: SExpr | undefined;
2230
+ create_policy?: SExpr | undefined;
2231
+ update_policy?: SExpr | undefined;
2232
+ delete_policy?: SExpr | undefined;
2221
2233
  collection?: string | undefined;
2222
2234
  instances?: Record<string, JsonValue>[] | undefined;
2223
2235
  timestamps?: boolean | undefined;
@@ -2378,6 +2390,10 @@ declare const TraitSchema: z.ZodObject<{
2378
2390
  description?: string | undefined;
2379
2391
  shared?: boolean | undefined;
2380
2392
  identity?: boolean | undefined;
2393
+ read_policy?: SExpr | undefined;
2394
+ create_policy?: SExpr | undefined;
2395
+ update_policy?: SExpr | undefined;
2396
+ delete_policy?: SExpr | undefined;
2381
2397
  collection?: string | undefined;
2382
2398
  instances?: Record<string, JsonValue>[] | undefined;
2383
2399
  timestamps?: boolean | undefined;
@@ -2538,6 +2554,10 @@ declare const TraitSchema: z.ZodObject<{
2538
2554
  persistence?: "persistent" | "runtime" | undefined;
2539
2555
  shared?: boolean | undefined;
2540
2556
  identity?: boolean | undefined;
2557
+ read_policy?: SExpr | undefined;
2558
+ create_policy?: SExpr | undefined;
2559
+ update_policy?: SExpr | undefined;
2560
+ delete_policy?: SExpr | undefined;
2541
2561
  collection?: string | undefined;
2542
2562
  instances?: Record<string, JsonValue>[] | undefined;
2543
2563
  timestamps?: boolean | undefined;
@@ -2671,8 +2691,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2671
2691
  id?: TraitId | undefined;
2672
2692
  from?: string | undefined;
2673
2693
  name?: string | undefined;
2674
- fields?: Record<string, string> | undefined;
2675
2694
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
2695
+ fields?: Record<string, string> | undefined;
2676
2696
  events?: Record<string, string> | undefined;
2677
2697
  effects?: Record<string, SExpr[]> | undefined;
2678
2698
  refId?: TraitId | undefined;
@@ -2711,8 +2731,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2711
2731
  id?: string | undefined;
2712
2732
  from?: string | undefined;
2713
2733
  name?: string | undefined;
2714
- fields?: Record<string, string> | undefined;
2715
2734
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
2735
+ fields?: Record<string, string> | undefined;
2716
2736
  events?: Record<string, string> | undefined;
2717
2737
  effects?: Record<string, SExpr[]> | undefined;
2718
2738
  refId?: string | undefined;
@@ -2751,8 +2771,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2751
2771
  id?: TraitId | undefined;
2752
2772
  from?: string | undefined;
2753
2773
  name?: string | undefined;
2754
- fields?: Record<string, string> | undefined;
2755
2774
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
2775
+ fields?: Record<string, string> | undefined;
2756
2776
  events?: Record<string, string> | undefined;
2757
2777
  effects?: Record<string, SExpr[]> | undefined;
2758
2778
  refId?: TraitId | undefined;
@@ -2791,8 +2811,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2791
2811
  id?: string | undefined;
2792
2812
  from?: string | undefined;
2793
2813
  name?: string | undefined;
2794
- fields?: Record<string, string> | undefined;
2795
2814
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
2815
+ fields?: Record<string, string> | undefined;
2796
2816
  events?: Record<string, string> | undefined;
2797
2817
  effects?: Record<string, SExpr[]> | undefined;
2798
2818
  refId?: string | undefined;
@@ -3304,6 +3324,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3304
3324
  persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
3305
3325
  shared: z.ZodOptional<z.ZodBoolean>;
3306
3326
  identity: z.ZodOptional<z.ZodBoolean>;
3327
+ read_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
3328
+ create_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
3329
+ update_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
3330
+ delete_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
3307
3331
  collection: z.ZodOptional<z.ZodString>;
3308
3332
  fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
3309
3333
  instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>, "many">>;
@@ -3343,6 +3367,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3343
3367
  description?: string | undefined;
3344
3368
  shared?: boolean | undefined;
3345
3369
  identity?: boolean | undefined;
3370
+ read_policy?: SExpr | undefined;
3371
+ create_policy?: SExpr | undefined;
3372
+ update_policy?: SExpr | undefined;
3373
+ delete_policy?: SExpr | undefined;
3346
3374
  collection?: string | undefined;
3347
3375
  instances?: Record<string, JsonValue>[] | undefined;
3348
3376
  timestamps?: boolean | undefined;
@@ -3364,6 +3392,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3364
3392
  persistence?: "persistent" | "runtime" | undefined;
3365
3393
  shared?: boolean | undefined;
3366
3394
  identity?: boolean | undefined;
3395
+ read_policy?: SExpr | undefined;
3396
+ create_policy?: SExpr | undefined;
3397
+ update_policy?: SExpr | undefined;
3398
+ delete_policy?: SExpr | undefined;
3367
3399
  collection?: string | undefined;
3368
3400
  instances?: Record<string, JsonValue>[] | undefined;
3369
3401
  timestamps?: boolean | undefined;
@@ -3524,6 +3556,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3524
3556
  description?: string | undefined;
3525
3557
  shared?: boolean | undefined;
3526
3558
  identity?: boolean | undefined;
3559
+ read_policy?: SExpr | undefined;
3560
+ create_policy?: SExpr | undefined;
3561
+ update_policy?: SExpr | undefined;
3562
+ delete_policy?: SExpr | undefined;
3527
3563
  collection?: string | undefined;
3528
3564
  instances?: Record<string, JsonValue>[] | undefined;
3529
3565
  timestamps?: boolean | undefined;
@@ -3684,6 +3720,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3684
3720
  persistence?: "persistent" | "runtime" | undefined;
3685
3721
  shared?: boolean | undefined;
3686
3722
  identity?: boolean | undefined;
3723
+ read_policy?: SExpr | undefined;
3724
+ create_policy?: SExpr | undefined;
3725
+ update_policy?: SExpr | undefined;
3726
+ delete_policy?: SExpr | undefined;
3687
3727
  collection?: string | undefined;
3688
3728
  instances?: Record<string, JsonValue>[] | undefined;
3689
3729
  timestamps?: boolean | undefined;
@@ -3887,8 +3927,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
3887
3927
  id?: TraitId | undefined;
3888
3928
  from?: string | undefined;
3889
3929
  name?: string | undefined;
3890
- fields?: Record<string, string> | undefined;
3891
3930
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
3931
+ fields?: Record<string, string> | undefined;
3892
3932
  events?: Record<string, string> | undefined;
3893
3933
  effects?: Record<string, SExpr[]> | undefined;
3894
3934
  refId?: TraitId | undefined;
@@ -3927,8 +3967,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
3927
3967
  id?: string | undefined;
3928
3968
  from?: string | undefined;
3929
3969
  name?: string | undefined;
3930
- fields?: Record<string, string> | undefined;
3931
3970
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
3971
+ fields?: Record<string, string> | undefined;
3932
3972
  events?: Record<string, string> | undefined;
3933
3973
  effects?: Record<string, SExpr[]> | undefined;
3934
3974
  refId?: string | undefined;
@@ -3967,8 +4007,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
3967
4007
  id?: TraitId | undefined;
3968
4008
  from?: string | undefined;
3969
4009
  name?: string | undefined;
3970
- fields?: Record<string, string> | undefined;
3971
4010
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
4011
+ fields?: Record<string, string> | undefined;
3972
4012
  events?: Record<string, string> | undefined;
3973
4013
  effects?: Record<string, SExpr[]> | undefined;
3974
4014
  refId?: TraitId | undefined;
@@ -4007,8 +4047,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4007
4047
  id?: string | undefined;
4008
4048
  from?: string | undefined;
4009
4049
  name?: string | undefined;
4010
- fields?: Record<string, string> | undefined;
4011
4050
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
4051
+ fields?: Record<string, string> | undefined;
4012
4052
  events?: Record<string, string> | undefined;
4013
4053
  effects?: Record<string, SExpr[]> | undefined;
4014
4054
  refId?: string | undefined;
@@ -4520,6 +4560,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4520
4560
  persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
4521
4561
  shared: z.ZodOptional<z.ZodBoolean>;
4522
4562
  identity: z.ZodOptional<z.ZodBoolean>;
4563
+ read_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
4564
+ create_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
4565
+ update_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
4566
+ delete_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
4523
4567
  collection: z.ZodOptional<z.ZodString>;
4524
4568
  fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
4525
4569
  instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>, "many">>;
@@ -4559,6 +4603,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4559
4603
  description?: string | undefined;
4560
4604
  shared?: boolean | undefined;
4561
4605
  identity?: boolean | undefined;
4606
+ read_policy?: SExpr | undefined;
4607
+ create_policy?: SExpr | undefined;
4608
+ update_policy?: SExpr | undefined;
4609
+ delete_policy?: SExpr | undefined;
4562
4610
  collection?: string | undefined;
4563
4611
  instances?: Record<string, JsonValue>[] | undefined;
4564
4612
  timestamps?: boolean | undefined;
@@ -4580,6 +4628,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4580
4628
  persistence?: "persistent" | "runtime" | undefined;
4581
4629
  shared?: boolean | undefined;
4582
4630
  identity?: boolean | undefined;
4631
+ read_policy?: SExpr | undefined;
4632
+ create_policy?: SExpr | undefined;
4633
+ update_policy?: SExpr | undefined;
4634
+ delete_policy?: SExpr | undefined;
4583
4635
  collection?: string | undefined;
4584
4636
  instances?: Record<string, JsonValue>[] | undefined;
4585
4637
  timestamps?: boolean | undefined;
@@ -4740,6 +4792,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4740
4792
  description?: string | undefined;
4741
4793
  shared?: boolean | undefined;
4742
4794
  identity?: boolean | undefined;
4795
+ read_policy?: SExpr | undefined;
4796
+ create_policy?: SExpr | undefined;
4797
+ update_policy?: SExpr | undefined;
4798
+ delete_policy?: SExpr | undefined;
4743
4799
  collection?: string | undefined;
4744
4800
  instances?: Record<string, JsonValue>[] | undefined;
4745
4801
  timestamps?: boolean | undefined;
@@ -4900,6 +4956,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4900
4956
  persistence?: "persistent" | "runtime" | undefined;
4901
4957
  shared?: boolean | undefined;
4902
4958
  identity?: boolean | undefined;
4959
+ read_policy?: SExpr | undefined;
4960
+ create_policy?: SExpr | undefined;
4961
+ update_policy?: SExpr | undefined;
4962
+ delete_policy?: SExpr | undefined;
4903
4963
  collection?: string | undefined;
4904
4964
  instances?: Record<string, JsonValue>[] | undefined;
4905
4965
  timestamps?: boolean | undefined;
@@ -1,13 +1,13 @@
1
- import { b0 as PageTraitRef, O as OrbitalSchema, be as ThemeDefinition, a7 as Orbital, b as Page, L as DomainContext, a as OrbitalDefinition } from '../schema-DdcBBHkb.js';
2
- export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j 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, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 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, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from '../schema-DdcBBHkb.js';
3
- import { F as FieldValue, E as EntityField, a as EntityPersistence, bo as ServiceParams, e as Entity, f as EntityRow, A as AnyPatternConfig, O as OrbitalId, T as TraitId, b as EventId, c as Effect } from '../effect-NbTgX2yB.js';
4
- export { j as ANIMATION_NAMES, k as ASSET_ASPECTS, l as ASSET_DIMENSIONS, m as AgentEffect, n as AnimationDef, o as AnimationDefInput, p as AnimationDefSchema, q as AnimationName, r as AnimationNameSchema, s as ApplicationEffect, t as ArrayEntityField, u as Asset, v as AssetAspect, w as AssetAspectSchema, x as AssetCatalog, y as AssetCatalogEntry, z as AssetCatalogEntryInput, B as AssetCatalogEntrySchema, C as AssetCatalogSchema, D as AssetDimension, G as AssetDimensionSchema, H as AssetSchema, J as AssetUrl, K as AtomicEffect, L as BehaviorEffect, M as CAMERA_MODES, N as CallServiceConfig, Q as CallServiceEffect, V as Camera, W as CameraMode, X as CameraModeSchema, Y as CameraSchema, Z as CheckpointLoadEffect, _ as CheckpointSaveEffect, $ as ComposeEffect, a0 as DerefEffect, a1 as DespawnEffect, a2 as DoEffect, a3 as ENTITY_ROLES, a4 as EffectInput, a5 as EffectSchema, a6 as EmitConfig, a7 as EmitEffect, a8 as EntityData, a9 as EntityFieldInput, aa as EntityFieldSchema, d as EntityId, ab as EntityIdSchema, ac as EntityPersistenceSchema, ad as EntityRole, ae as EntityRoleSchema, af as EntitySchema, ag as EntityWith, ah as EnumEntityField, ai as EvaluateConfig, aj as EvaluateEffect, ak as EventIdSchema, al as FIELD_TYPES, am as FetchEffect, an as FetchOptions, ao as FetchResult, ap as Field, aq as FieldSchema, ar as FieldType, as as FieldTypeSchema, at as ForwardConfig, au as ForwardEffect, av as IdForKind, aw as IdKind, I as IdentityLedger, ax as IdentityLedgerSchema, ay as LedgerEntry, az as LedgerEntrySchema, aA as LedgerKind, aB as LedgerKindSchema, aC as LlmEffect, aD as LogEffect, aE as McpServiceDef, aF as McpServiceDefSchema, aG as MemoryEffect, aH as NavigateEffect, aI as NnConfig, aJ as NnLayer, aK as NotifyEffect, aL as ObjectEntityField, aM as OrbitalEntity, aN as OrbitalEntityInput, aO as OrbitalEntitySchema, aP as OrbitalIdSchema, aQ as OsEffect, aR as PATTERN_TYPES, P as PageId, aS as PageIdSchema, aT as PaletteEntryId, aU as PaletteEntryIdSchema, aV as PatternConfig, aY as PatternType, aZ as PersistData, a_ as PersistEffect, a$ as PersistEmitConfig, b0 as RefEffect, R as RelationConfig, b1 as RelationConfigSchema, b2 as RelationEntityField, h as RenderBinding, b3 as RenderChildrenMap, b4 as RenderItemLambda, i as RenderUIEffect, b5 as RenderUINode, b6 as ResolvedPatternProps, b7 as RestAuthConfig, b8 as RestAuthConfigSchema, b9 as RestServiceDef, ba as RestServiceDefSchema, bb as SEMANTIC_STRING_TYPES, bc as SERVICE_TYPES, bd as SPRITE_DIRECTIONS, be as ScalarEntityField, bf as ScenePos, bg as ScenePosSchema, bh as SemanticAssetRef, bi as SemanticAssetRefInput, bj as SemanticAssetRefSchema, bk as SemanticStringType, g as ServiceDefinition, bl as ServiceDefinitionSchema, bm as ServiceId, bn as ServiceIdSchema, bp as ServiceParamsValue, S as ServiceRef, bq as ServiceRefObject, br as ServiceRefObjectSchema, bs as ServiceRefSchema, bt as ServiceRefStringSchema, bu as ServiceType, bv as ServiceTypeSchema, bw as SessionEffect, bx as SetEffect, by as SocketEvents, bz as SocketEventsSchema, bA as SocketServiceDef, bB as SocketServiceDefSchema, bC as SpawnEffect, bD as SpriteDirection, bE as SpriteDirectionSchema, bF as SpriteSheetAtlas, bG as SpriteSheetAtlasInput, bH as SpriteSheetAtlasSchema, bI as SubTexture, bJ as SubTextureSchema, bK as SwapEffect, bL as TextureAtlas, bM as TextureAtlasSchema, bN as ThemeId, bO as ThemeIdSchema, bP as Tilesheet, bQ as TilesheetSchema, bR as TraceEffect, bS as TrainConfig, bT as TrainEffect, bU as TraitIdSchema, bV as TypedEffect, U as UISlot, bW as UISlotSchema, bX as UI_SLOTS, bY as VISUAL_STYLES, bZ as ValidateEffect, b_ as VisualStyle, b$ as VisualStyleSchema, c0 as WatchEffect, c1 as WatchOptions, c2 as asEntityId, c3 as asEventId, c4 as asOrbitalId, c5 as asPageId, c6 as asPaletteEntryId, c7 as asServiceId, c8 as asThemeId, c9 as asTraitId, ca as atomic, cb as callService, cc as createAssetKey, cd as deref, ce as deriveCollection, cf as despawn, cg as doEffects, ch as emit, ci as findService, cj as getDefaultAnimationsForRole, ck as getServiceNames, cl as hasService, cm as idKindOf, cn as idPrefix, co as isEffect, cp as isEmailValue, cq as isEntityId, cr as isEventId, cs as isFieldValue, ct as isMcpService, cu as isOrbitalId, cv as isPageId, cw as isPaletteEntryId, cx as isPhoneValue, cy as isRestService, cz as isRuntimeEntity, cA as isSExprEffect, cB as isSemanticStringType, cC as isSemanticStringValue, cD as isServiceId, cE as isServiceReference, cF as isServiceReferenceObject, cG as isSocketService, cH as isThemeId, cI as isTraitId, cJ as isUrlValue, cK as isUuidValue, cL as isValidPatternType, cM as ledgerCurName, cN as ledgerRename, cO as ledgerResolveName, cP as mintId, cQ as navigate, cR as notify, cS as parseAssetKey, cT as parseServiceRef, cU as persist, cV as persistenceModeAllowsOverrides, cW as ref, cX as renderUI, cY as set, cZ as spawn, c_ as swap, c$ as validateAssetAnimations, d0 as watch } from '../effect-NbTgX2yB.js';
1
+ import { b0 as PageTraitRef, O as OrbitalSchema, be as ThemeDefinition, a7 as Orbital, b as Page, L as DomainContext, a as OrbitalDefinition } from '../schema-CZNILCHD.js';
2
+ export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j 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, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 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, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from '../schema-CZNILCHD.js';
3
+ import { F as FieldValue, E as EntityField, a as EntityPersistence, bo as ServiceParams, e as Entity, f as EntityRow, A as AnyPatternConfig, O as OrbitalId, T as TraitId, b as EventId, c as Effect } from '../effect-BZ1nzN3q.js';
4
+ export { j as ANIMATION_NAMES, k as ASSET_ASPECTS, l as ASSET_DIMENSIONS, m as AgentEffect, n as AnimationDef, o as AnimationDefInput, p as AnimationDefSchema, q as AnimationName, r as AnimationNameSchema, s as ApplicationEffect, t as ArrayEntityField, u as Asset, v as AssetAspect, w as AssetAspectSchema, x as AssetCatalog, y as AssetCatalogEntry, z as AssetCatalogEntryInput, B as AssetCatalogEntrySchema, C as AssetCatalogSchema, D as AssetDimension, G as AssetDimensionSchema, H as AssetSchema, J as AssetUrl, K as AtomicEffect, L as BehaviorEffect, M as CAMERA_MODES, N as CallServiceConfig, Q as CallServiceEffect, V as Camera, W as CameraMode, X as CameraModeSchema, Y as CameraSchema, Z as CheckpointLoadEffect, _ as CheckpointSaveEffect, $ as ComposeEffect, a0 as DerefEffect, a1 as DespawnEffect, a2 as DoEffect, a3 as ENTITY_ROLES, a4 as EffectInput, a5 as EffectSchema, a6 as EmitConfig, a7 as EmitEffect, a8 as EntityData, a9 as EntityFieldInput, aa as EntityFieldSchema, d as EntityId, ab as EntityIdSchema, ac as EntityPersistenceSchema, ad as EntityRole, ae as EntityRoleSchema, af as EntitySchema, ag as EntityWith, ah as EnumEntityField, ai as EvaluateConfig, aj as EvaluateEffect, ak as EventIdSchema, al as FIELD_TYPES, am as FetchEffect, an as FetchOptions, ao as FetchResult, ap as Field, aq as FieldSchema, ar as FieldType, as as FieldTypeSchema, at as ForwardConfig, au as ForwardEffect, av as IdForKind, aw as IdKind, I as IdentityLedger, ax as IdentityLedgerSchema, ay as LedgerEntry, az as LedgerEntrySchema, aA as LedgerKind, aB as LedgerKindSchema, aC as LlmEffect, aD as LogEffect, aE as McpServiceDef, aF as McpServiceDefSchema, aG as MemoryEffect, aH as NavigateEffect, aI as NnConfig, aJ as NnLayer, aK as NotifyEffect, aL as ObjectEntityField, aM as OrbitalEntity, aN as OrbitalEntityInput, aO as OrbitalEntitySchema, aP as OrbitalIdSchema, aQ as OsEffect, aR as PATTERN_TYPES, P as PageId, aS as PageIdSchema, aT as PaletteEntryId, aU as PaletteEntryIdSchema, aV as PatternConfig, aY as PatternType, aZ as PersistData, a_ as PersistEffect, a$ as PersistEmitConfig, b0 as RefEffect, R as RelationConfig, b1 as RelationConfigSchema, b2 as RelationEntityField, h as RenderBinding, b3 as RenderChildrenMap, b4 as RenderItemLambda, i as RenderUIEffect, b5 as RenderUINode, b6 as ResolvedPatternProps, b7 as RestAuthConfig, b8 as RestAuthConfigSchema, b9 as RestServiceDef, ba as RestServiceDefSchema, bb as SEMANTIC_STRING_TYPES, bc as SERVICE_TYPES, bd as SPRITE_DIRECTIONS, be as ScalarEntityField, bf as ScenePos, bg as ScenePosSchema, bh as SemanticAssetRef, bi as SemanticAssetRefInput, bj as SemanticAssetRefSchema, bk as SemanticStringType, g as ServiceDefinition, bl as ServiceDefinitionSchema, bm as ServiceId, bn as ServiceIdSchema, bp as ServiceParamsValue, S as ServiceRef, bq as ServiceRefObject, br as ServiceRefObjectSchema, bs as ServiceRefSchema, bt as ServiceRefStringSchema, bu as ServiceType, bv as ServiceTypeSchema, bw as SessionEffect, bx as SetEffect, by as SocketEvents, bz as SocketEventsSchema, bA as SocketServiceDef, bB as SocketServiceDefSchema, bC as SpawnEffect, bD as SpriteDirection, bE as SpriteDirectionSchema, bF as SpriteSheetAtlas, bG as SpriteSheetAtlasInput, bH as SpriteSheetAtlasSchema, bI as SubTexture, bJ as SubTextureSchema, bK as SwapEffect, bL as TextureAtlas, bM as TextureAtlasSchema, bN as ThemeId, bO as ThemeIdSchema, bP as Tilesheet, bQ as TilesheetSchema, bR as TraceEffect, bS as TrainConfig, bT as TrainEffect, bU as TraitIdSchema, bV as TypedEffect, U as UISlot, bW as UISlotSchema, bX as UI_SLOTS, bY as VISUAL_STYLES, bZ as ValidateEffect, b_ as VisualStyle, b$ as VisualStyleSchema, c0 as WatchEffect, c1 as WatchOptions, c2 as asEntityId, c3 as asEventId, c4 as asOrbitalId, c5 as asPageId, c6 as asPaletteEntryId, c7 as asServiceId, c8 as asThemeId, c9 as asTraitId, ca as atomic, cb as callService, cc as createAssetKey, cd as deref, ce as deriveCollection, cf as despawn, cg as doEffects, ch as emit, ci as findService, cj as getDefaultAnimationsForRole, ck as getServiceNames, cl as hasService, cm as idKindOf, cn as idPrefix, co as isEffect, cp as isEmailValue, cq as isEntityId, cr as isEventId, cs as isFieldValue, ct as isMcpService, cu as isOrbitalId, cv as isPageId, cw as isPaletteEntryId, cx as isPhoneValue, cy as isRestService, cz as isRuntimeEntity, cA as isSExprEffect, cB as isSemanticStringType, cC as isSemanticStringValue, cD as isServiceId, cE as isServiceReference, cF as isServiceReferenceObject, cG as isSocketService, cH as isThemeId, cI as isTraitId, cJ as isUrlValue, cK as isUuidValue, cL as isValidPatternType, cM as ledgerCurName, cN as ledgerRename, cO as ledgerResolveName, cP as mintId, cQ as navigate, cR as notify, cS as parseAssetKey, cT as parseServiceRef, cU as persist, cV as persistenceModeAllowsOverrides, cW as ref, cX as renderUI, cY as set, cZ as spawn, c_ as swap, c$ as validateAssetAnimations, d0 as watch } from '../effect-BZ1nzN3q.js';
5
5
  import { S as SExpr, R as RuntimeValue, d as EventPayloadValue, J as JsonValue, a as EventPayload, L as LogMeta, g as JsonObject, T as ToolArgs, c as EvalContext } from '../expression-Yf7qvvOs.js';
6
6
  export { C as CORE_BINDINGS, b as CoreBinding, E as Expression, e as ExpressionInput, f as ExpressionSchema, h as LogMetaValue, P as ParsedBinding, i as SExprAtom, j as SExprAtomSchema, k as SExprDataSchema, l as SExprInput, m as SExprObject, n as SExprSchema, o as collectBindings, p as getArgs, q as getOperator, r as isBinding, s as isEventPayloadValue, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive, w as isSExpr, x as isSExprAtom, y as isSExprCall, z as isValidBinding, A as parseBinding, B as sexpr, D as walkSExpr } from '../expression-Yf7qvvOs.js';
7
7
  import { z } from 'zod';
8
- import { a as TraitReference, g as Trait, L as ListenSource, D as DeclaredTraitConfig, b as TraitConfig, C as ConfigFieldDeclaration, S as State, ae as Transition, r as Event, e as TraitConfigValue, Y as TraitCategory, as as TraitScope } from '../trait-DdBiEffx.js';
9
- export { k as CONFIG_REF_EVENT_PATTERN, h as CallSiteConfig, i as CallSiteConfigEntry, l as ConfigFieldDeclarationSchema, m as ConfigFieldItemsDeclaration, n as ConfigRefEventError, o as DeclaredTraitConfigSchema, p as EntityFieldContract, q as EntityFieldContractSchema, s as EventInput, E as EventPayloadField, t as EventPayloadFieldSchema, u as EventSchema, v as EventScope, w as EventScopeSchema, G as Guard, x as GuardInput, y as GuardSchema, z as ListenSourceSchema, O as OrbitalTraitRef, A as OrbitalTraitRefSchema, P as PayloadField, B as PayloadFieldSchema, F as PresentationType, R as REFERENCE_CONFIG_TYPES, H as ReferenceConfigType, I as RequiredField, J as RequiredFieldSchema, K as SECRET_CONFIG_TYPES, M as SecretConfigType, N as StateInput, Q as StateMachine, U as StateMachineInput, V as StateMachineSchema, W as StateSchema, X as TickIntervalSchema, Z as TraitCategorySchema, c as TraitConfigObject, _ as TraitConfigSchema, $ as TraitConfigValueSchema, a0 as TraitDataEntity, a1 as TraitDataEntitySchema, f as TraitEntityField, a2 as TraitEntityFieldSchema, j as TraitEventContract, a3 as TraitEventContractSchema, T as TraitEventListener, a4 as TraitEventListenerSchema, a5 as TraitInput, d as TraitRef, a6 as TraitRefSchema, a7 as TraitReferenceInput, a8 as TraitReferenceSchema, a9 as TraitSchema, aa as TraitTick, ab as TraitTickSchema, ac as TraitUIBinding, ad as TraitUIBindingSchema, af as TransitionInput, ag as TransitionSchema, ah as configRefEventKnob, ai as getTraitConfig, aj as getTraitName, ak as isCallSiteConfigDeclaration, al as isCircuitEvent, am as isInlineTrait, an as isReferenceConfigType, ao as isSecretConfigType, ap as normalizeCallSiteConfigToValues, aq as normalizeTraitRef, ar as resolveConfigRefEventName } from '../trait-DdBiEffx.js';
10
- import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-B4NVh8V9.js';
8
+ import { a as TraitReference, g as Trait, L as ListenSource, D as DeclaredTraitConfig, b as TraitConfig, C as ConfigFieldDeclaration, S as State, ae as Transition, r as Event, e as TraitConfigValue, Y as TraitCategory, as as TraitScope } from '../trait-1V3odk0y.js';
9
+ export { k as CONFIG_REF_EVENT_PATTERN, h as CallSiteConfig, i as CallSiteConfigEntry, l as ConfigFieldDeclarationSchema, m as ConfigFieldItemsDeclaration, n as ConfigRefEventError, o as DeclaredTraitConfigSchema, p as EntityFieldContract, q as EntityFieldContractSchema, s as EventInput, E as EventPayloadField, t as EventPayloadFieldSchema, u as EventSchema, v as EventScope, w as EventScopeSchema, G as Guard, x as GuardInput, y as GuardSchema, z as ListenSourceSchema, O as OrbitalTraitRef, A as OrbitalTraitRefSchema, P as PayloadField, B as PayloadFieldSchema, F as PresentationType, R as REFERENCE_CONFIG_TYPES, H as ReferenceConfigType, I as RequiredField, J as RequiredFieldSchema, K as SECRET_CONFIG_TYPES, M as SecretConfigType, N as StateInput, Q as StateMachine, U as StateMachineInput, V as StateMachineSchema, W as StateSchema, X as TickIntervalSchema, Z as TraitCategorySchema, c as TraitConfigObject, _ as TraitConfigSchema, $ as TraitConfigValueSchema, a0 as TraitDataEntity, a1 as TraitDataEntitySchema, f as TraitEntityField, a2 as TraitEntityFieldSchema, j as TraitEventContract, a3 as TraitEventContractSchema, T as TraitEventListener, a4 as TraitEventListenerSchema, a5 as TraitInput, d as TraitRef, a6 as TraitRefSchema, a7 as TraitReferenceInput, a8 as TraitReferenceSchema, a9 as TraitSchema, aa as TraitTick, ab as TraitTickSchema, ac as TraitUIBinding, ad as TraitUIBindingSchema, af as TransitionInput, ag as TransitionSchema, ah as configRefEventKnob, ai as getTraitConfig, aj as getTraitName, ak as isCallSiteConfigDeclaration, al as isCircuitEvent, am as isInlineTrait, an as isReferenceConfigType, ao as isSecretConfigType, ap as normalizeCallSiteConfigToValues, aq as normalizeTraitRef, ar as resolveConfigRefEventName } from '../trait-1V3odk0y.js';
10
+ import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-GAiRTtkp.js';
11
11
  import { MakeTraitRefOpts, EventWiringEntry, LayoutStrategy } from '../builders.js';
12
12
 
13
13
  /**
@@ -281,15 +281,15 @@ interface RawUserClaims {
281
281
  */
282
282
  declare function normalizeUserContext(claims: RawUserClaims | null | undefined): UserContext | undefined;
283
283
  /**
284
- * Dev persona roster seeded identities for local runs, previews and mocked
285
- * sign-in. NOT production data: nothing authenticates against this. It exists so
286
- * an app can be viewed as each persona its domain implies before real auth is
287
- * wired.
284
+ * Turn a row of an app's `[identity]` entity into a viewer.
288
285
  *
289
- * A domain whose end-user role is named differently (`patient`, `student`) adds
290
- * its own persona at the call site; these are defaults, not an allow-list.
286
+ * There is no separate persona shape: an identity row IS the persona
287
+ * (`Almadar_LOLO_Identity.md` §4.3), so this only guards the one field the
288
+ * behavior library requires — a non-empty string `id` — and passes every other
289
+ * declared field through as a `@user.<field>` claim. Rows without a usable id
290
+ * yield `undefined` rather than a persona nobody can own rows as.
291
291
  */
292
- declare const MOCK_PERSONAS: readonly UserContext[];
292
+ declare function personaFromIdentityRow(row: Record<string, FieldValue | undefined>): UserContext | undefined;
293
293
  /**
294
294
  * The viewer a host presents when nothing named one.
295
295
  *
@@ -304,18 +304,24 @@ declare const MOCK_PERSONAS: readonly UserContext[];
304
304
  * "undefined at runtime" without changing a single guard outcome.
305
305
  */
306
306
  declare const DEFAULT_VIEWER: UserContext;
307
- /** Look a dev persona up by id, or by role when no id matches. */
308
- declare function findMockPersona(idOrRole: string): UserContext | undefined;
307
+ /** Look a persona up in a roster by id, or by role when no id matches. */
308
+ declare function findPersonaInRoster(roster: readonly UserContext[], idOrRole: string): UserContext | undefined;
309
309
  /**
310
- * Resolve a persona spec — a bare seeded id/role (`member-1`, `member`) or a full
310
+ * Resolve a persona spec — a bare id/role (`Person Id 3`, `moderator`) or a full
311
311
  * JSON `UserContext` — into a viewer. This is the `ALMADAR_PERSONA` contract,
312
312
  * shared by every host that presents an app as somebody.
313
313
  *
314
+ * The roster is the app's OWN declared personas — the seeded rows of its
315
+ * `[identity]` entity (`Almadar_LOLO_Identity.md` §4.3) — supplied by the host
316
+ * that has them in hand (the runtime's live store on the interpreter path, the
317
+ * schema-derived seed rows on the compiled path). There is no global roster:
318
+ * an app without an `[identity]` entity resolves only JSON-form specs.
319
+ *
314
320
  * Throws on anything unresolvable rather than returning `undefined`: "no persona"
315
321
  * and "persona silently ignored" look identical on screen, so a bad spec must
316
322
  * fail at boot instead of rendering as nobody.
317
323
  */
318
- declare function resolvePersonaSpec(spec: string): UserContext;
324
+ declare function resolvePersonaSpec(spec: string, roster: readonly UserContext[]): UserContext;
319
325
  /**
320
326
  * Marks a bearer token as a mocked dev identity rather than a real ID token.
321
327
  * The prefix is deliberately unmistakable: a server accepts these ONLY behind an
@@ -3059,4 +3065,4 @@ interface ParsedDesign {
3059
3065
  };
3060
3066
  }
3061
3067
 
3062
- export { ANONYMOUS_USER, type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type DrawableDescriptor, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, EventId, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LLMErrorContext, type LazyService, type LineageEntry, type ListInteraction, ListenSource, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, MOCK_PERSONAS, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalId, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, RENDER_BINDING_MARKER, type RawUserClaims, type RenderBindingMarker, type RepairResult, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, RuntimeValue, SExpr, type SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitId, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type UserContext, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, containsEntityBinding, containsPayloadBinding, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, encodeDevIdentityToken, findMockPersona, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isRenderBindingMarker, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, normalizeUserContext, resolvePersonaSpec, toBindingRoot, validateBindingInContext, widenTier };
3068
+ export { ANONYMOUS_USER, type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type DrawableDescriptor, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, EventId, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LLMErrorContext, type LazyService, type LineageEntry, type ListInteraction, ListenSource, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalId, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, RENDER_BINDING_MARKER, type RawUserClaims, type RenderBindingMarker, type RepairResult, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, RuntimeValue, SExpr, type SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitId, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type UserContext, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, containsEntityBinding, containsPayloadBinding, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, encodeDevIdentityToken, findPersonaInRoster, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isRenderBindingMarker, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, normalizeUserContext, personaFromIdentityRow, resolvePersonaSpec, toBindingRoot, validateBindingInContext, widenTier };
@@ -469,54 +469,6 @@ function validateAssetAnimations(assetRef, requiredAnimations) {
469
469
  const missing = requiredAnimations.filter((anim) => !provided.includes(anim));
470
470
  return { valid: missing.length === 0, missing };
471
471
  }
472
-
473
- // src/types/entity.ts
474
- var EntityPersistenceSchema = z.enum([
475
- "persistent",
476
- "runtime"
477
- ]);
478
- var OrbitalEntitySchema = z.object({
479
- name: z.string().min(1, "Entity name is required"),
480
- persistence: EntityPersistenceSchema.default("persistent"),
481
- shared: z.boolean().optional(),
482
- // Must stay in step with the Rust serde field (`EntityDefinition.identity`,
483
- // orbital-core/src/schema/types.rs). `z.object()` STRIPS unknown keys rather
484
- // than rejecting them, so a Rust-only field works on the compiled path and
485
- // silently vanishes on the interpreter path.
486
- identity: z.boolean().optional(),
487
- collection: z.string().optional(),
488
- fields: z.array(EntityFieldSchema).min(1, "At least one field is required"),
489
- instances: z.array(z.record(JsonValueSchema)).optional(),
490
- timestamps: z.boolean().optional(),
491
- softDelete: z.boolean().optional(),
492
- description: z.string().optional(),
493
- visual_prompt: z.string().optional(),
494
- assetRef: SemanticAssetRefSchema.optional()
495
- });
496
- var EntitySchema = OrbitalEntitySchema;
497
- function deriveCollection(entity) {
498
- if (entity.persistence !== "persistent") {
499
- return void 0;
500
- }
501
- return entity.name.toLowerCase() + "s";
502
- }
503
- function isRuntimeEntity(entity) {
504
- return entity.persistence === "runtime";
505
- }
506
- function persistenceModeAllowsOverrides(persistence) {
507
- return persistence === "persistent" || persistence === void 0;
508
- }
509
- function isFieldValue(value) {
510
- if (value === null) return true;
511
- const kind = typeof value;
512
- if (kind === "string" || kind === "number" || kind === "boolean") return true;
513
- if (value instanceof Date) return true;
514
- if (Array.isArray(value)) return value.every((item) => isFieldValue(item));
515
- if (kind === "object" && value !== null && typeof value === "object") {
516
- return Object.values(value).every((item) => item === void 0 || isFieldValue(item));
517
- }
518
- return false;
519
- }
520
472
  var SExprDataSchema = z.lazy(
521
473
  () => z.union([SExprAtomSchema, z.array(SExprDataSchema)])
522
474
  );
@@ -624,7 +576,63 @@ function isEventPayloadValue(value) {
624
576
  return false;
625
577
  }
626
578
 
627
- // src/types/effect.ts
579
+ // src/types/entity.ts
580
+ var EntityPersistenceSchema = z.enum([
581
+ "persistent",
582
+ "runtime"
583
+ ]);
584
+ var OrbitalEntitySchema = z.object({
585
+ name: z.string().min(1, "Entity name is required"),
586
+ persistence: EntityPersistenceSchema.default("persistent"),
587
+ shared: z.boolean().optional(),
588
+ // Must stay in step with the Rust serde field (`EntityDefinition.identity`,
589
+ // orbital-core/src/schema/types.rs). `z.object()` STRIPS unknown keys rather
590
+ // than rejecting them, so a Rust-only field works on the compiled path and
591
+ // silently vanishes on the interpreter path.
592
+ identity: z.boolean().optional(),
593
+ // Same "must stay in step with Rust serde" hazard as `identity` above —
594
+ // these four mirror `EntityDefinition.{read,create,update,delete}_policy`.
595
+ // Rust has no `rename_all` on this struct, so the wire key IS snake_case
596
+ // (unlike this file's other camelCase fields, which are Rust-side-absent
597
+ // and so never hit this cross-language constraint — see `visual_prompt`
598
+ // just below for the existing precedent).
599
+ read_policy: SExprSchema.optional(),
600
+ create_policy: SExprSchema.optional(),
601
+ update_policy: SExprSchema.optional(),
602
+ delete_policy: SExprSchema.optional(),
603
+ collection: z.string().optional(),
604
+ fields: z.array(EntityFieldSchema).min(1, "At least one field is required"),
605
+ instances: z.array(z.record(JsonValueSchema)).optional(),
606
+ timestamps: z.boolean().optional(),
607
+ softDelete: z.boolean().optional(),
608
+ description: z.string().optional(),
609
+ visual_prompt: z.string().optional(),
610
+ assetRef: SemanticAssetRefSchema.optional()
611
+ });
612
+ var EntitySchema = OrbitalEntitySchema;
613
+ function deriveCollection(entity) {
614
+ if (entity.persistence !== "persistent") {
615
+ return void 0;
616
+ }
617
+ return entity.name.toLowerCase() + "s";
618
+ }
619
+ function isRuntimeEntity(entity) {
620
+ return entity.persistence === "runtime";
621
+ }
622
+ function persistenceModeAllowsOverrides(persistence) {
623
+ return persistence === "persistent" || persistence === void 0;
624
+ }
625
+ function isFieldValue(value) {
626
+ if (value === null) return true;
627
+ const kind = typeof value;
628
+ if (kind === "string" || kind === "number" || kind === "boolean") return true;
629
+ if (value instanceof Date) return true;
630
+ if (Array.isArray(value)) return value.every((item) => isFieldValue(item));
631
+ if (kind === "object" && value !== null && typeof value === "object") {
632
+ return Object.values(value).every((item) => item === void 0 || isFieldValue(item));
633
+ }
634
+ return false;
635
+ }
628
636
  var UI_SLOTS = [
629
637
  // App slots
630
638
  "main",
@@ -2028,31 +2036,36 @@ function normalizeUserContext(claims) {
2028
2036
  if (typeof claims.email === "string" && claims.email.length > 0) user.email = claims.email;
2029
2037
  return user;
2030
2038
  }
2031
- var MOCK_PERSONAS = [
2032
- { id: "admin-1", name: "Ada Admin", email: "ada@example.com", role: "admin", permissions: ["read", "write", "delete"] },
2033
- { id: "staff-1", name: "Sam Staff", email: "sam@example.com", role: "staff", permissions: ["read", "write"] },
2034
- { id: "member-1", name: "Maya Member", email: "maya@example.com", role: "member", permissions: ["read"] },
2035
- { id: "customer-1", name: "Cai Customer", email: "cai@example.com", role: "customer", permissions: ["read"] }
2036
- ];
2039
+ function personaFromIdentityRow(row) {
2040
+ const id = row["id"];
2041
+ if (typeof id !== "string" || id.length === 0) return void 0;
2042
+ const persona = { id };
2043
+ for (const [key, value] of Object.entries(row)) {
2044
+ if (key === "id" || value === void 0) continue;
2045
+ persona[key] = value;
2046
+ }
2047
+ return persona;
2048
+ }
2037
2049
  var DEFAULT_VIEWER = {
2038
2050
  id: "viewer-1",
2039
2051
  name: "Dev Viewer",
2040
2052
  email: "viewer@example.com",
2041
2053
  role: ""
2042
2054
  };
2043
- function findMockPersona(idOrRole) {
2044
- return MOCK_PERSONAS.find((p) => p.id === idOrRole) ?? MOCK_PERSONAS.find((p) => p.role === idOrRole);
2055
+ function findPersonaInRoster(roster, idOrRole) {
2056
+ return roster.find((p) => p.id === idOrRole) ?? roster.find((p) => p.role === idOrRole);
2045
2057
  }
2046
- function resolvePersonaSpec(spec) {
2058
+ function resolvePersonaSpec(spec, roster) {
2047
2059
  const raw = spec.trim();
2048
2060
  if (!raw.startsWith("{")) {
2049
- const seeded = findMockPersona(raw);
2050
- if (!seeded) {
2061
+ const declared = findPersonaInRoster(roster, raw);
2062
+ if (!declared) {
2063
+ const known = roster.map((p) => `${p.id}/${p.role ?? "-"}`).join(", ");
2051
2064
  throw new Error(
2052
- `Persona "${raw}" is not a seeded persona id or role. Known: ${MOCK_PERSONAS.map((p) => `${p.id}/${p.role}`).join(", ")}`
2065
+ `Persona "${raw}" is not a declared persona id or role. ` + (roster.length > 0 ? `Known: ${known}` : "This app declares no [identity] entity, so only the JSON persona form is accepted.")
2053
2066
  );
2054
2067
  }
2055
- return seeded;
2068
+ return declared;
2056
2069
  }
2057
2070
  let claims;
2058
2071
  try {
@@ -2700,6 +2713,6 @@ function widenTier(tier) {
2700
2713
  return tier;
2701
2714
  }
2702
2715
 
2703
- 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, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, 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, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, 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, TraitUIBindingSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, callService, collectBindings, configRefEventKnob, containsEntityBinding, containsPayloadBinding, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, 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, isRenderBindingMarker, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isSecretConfigType, isSemanticStringType, isSemanticStringValue, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, 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 };
2716
+ 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, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, 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, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, 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, TraitUIBindingSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, callService, collectBindings, configRefEventKnob, containsEntityBinding, containsPayloadBinding, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, despawn, doEffects, emit, encodeDevIdentityToken, findPersonaInRoster, findService, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, idKindOf, idPrefix, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEmailValue, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPhoneValue, isPlanSnapshot, isReferenceConfigType, isRenderBindingMarker, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isSecretConfigType, isSemanticStringType, isSemanticStringValue, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mintId, navigate, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, ref, renderUI, resolveConfigRefEventName, resolvePersonaSpec, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
2704
2717
  //# sourceMappingURL=index.js.map
2705
2718
  //# sourceMappingURL=index.js.map