@almadar/core 10.90.0 → 10.92.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.
Files changed (38) hide show
  1. package/dist/builders.d.ts +3 -3
  2. package/dist/builders.js +4 -2
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{effect-7jQQxiIt.d.ts → effect-DGa2ixo7.d.ts} +13 -1
  5. package/dist/{entityAccess-CpHfCQA3.d.ts → entityAccess-CXennIKj.d.ts} +1 -1
  6. package/dist/factory/index.d.ts +4 -4
  7. package/dist/factory/index.js +437 -101
  8. package/dist/factory/index.js.map +1 -1
  9. package/dist/factory-runtime/index.d.ts +3 -3
  10. package/dist/factory-runtime/index.js +8 -3
  11. package/dist/factory-runtime/index.js.map +1 -1
  12. package/dist/i18n/index.js +6 -0
  13. package/dist/i18n/index.js.map +1 -1
  14. package/dist/{index-BresfHJy.d.ts → index-BFortVj8.d.ts} +39 -10
  15. package/dist/index.d.ts +11 -72
  16. package/dist/index.js +829 -209
  17. package/dist/index.js.map +1 -1
  18. package/dist/mock/index.d.ts +11 -5
  19. package/dist/mock/index.js +3 -2
  20. package/dist/mock/index.js.map +1 -1
  21. package/dist/patterns/component-mapping.json +1 -1
  22. package/dist/patterns/event-contracts.json +1 -1
  23. package/dist/patterns/index.d.ts +1570 -181
  24. package/dist/patterns/index.js +771 -109
  25. package/dist/patterns/index.js.map +1 -1
  26. package/dist/patterns/integrators-registry.json +333 -6
  27. package/dist/patterns/patterns-registry.json +436 -101
  28. package/dist/patterns/registry.json +436 -101
  29. package/dist/patterns/services-registry.json +400 -68
  30. package/dist/{schema-C52juBr8.d.ts → schema-DIL07Bmv.d.ts} +25 -25
  31. package/dist/state-machine/index.js +19 -4
  32. package/dist/state-machine/index.js.map +1 -1
  33. package/dist/{trait-CFiL1YUN.d.ts → trait-DHb48lyx.d.ts} +10 -1
  34. package/dist/types/index.d.ts +5 -5
  35. package/dist/types/index.js +32 -3
  36. package/dist/types/index.js.map +1 -1
  37. package/dist/{types-BgC8ETnl.d.ts → types-F5EPwMor.d.ts} +2 -2
  38. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { b as TraitConfig, c as TraitConfigObject, D as DeclaredTraitConfig, d as TraitRef, E as EventPayloadField, C as ConfigFieldDeclaration, e as TraitEntityField, P as PayloadField, f as TraitTypeParamDef, g as TraitConfigValue, h as Trait } from './trait-CFiL1YUN.js';
1
+ import { b as TraitConfig, c as TraitConfigObject, D as DeclaredTraitConfig, d as TraitRef, E as EventPayloadField, C as ConfigFieldDeclaration, e as TraitEntityField, P as PayloadField, f as TraitTypeParamDef, g as TraitConfigValue, h as Trait } from './trait-DHb48lyx.js';
2
2
  import { J as JsonValue, R as RuntimeValue } from './json-D8gmyK3l.js';
3
3
  import { E as Expression, S as SExpr } from './expression-WfTp2arD.js';
4
- import { T as TraitId, d as EntityId, P as PageId, O as OrbitalId, E as EntityField, S as ServiceRef, e as Entity, a as EntityPersistence, b as EventId, h as ServiceDefinition, I as IdentityLedger } from './effect-7jQQxiIt.js';
4
+ import { T as TraitId, d as EntityId, P as PageId, O as OrbitalId, E as EntityField, S as ServiceRef, e as Entity, a as EntityPersistence, b as EventId, h as ServiceDefinition, I as IdentityLedger } from './effect-DGa2ixo7.js';
5
5
  import { z } from 'zod';
6
6
 
7
7
  /**
@@ -26757,9 +26757,9 @@ declare const OrbitalRefObjectSchema: z.ZodObject<{
26757
26757
  pages?: Record<string, string> | undefined;
26758
26758
  fields?: Record<string, string> | undefined;
26759
26759
  events?: Record<string, string> | undefined;
26760
+ roles?: Record<string, string[]> | undefined;
26760
26761
  refId?: OrbitalId | undefined;
26761
26762
  only?: string[] | undefined;
26762
- roles?: Record<string, string[]> | undefined;
26763
26763
  entities?: Record<string, string> | undefined;
26764
26764
  mounts?: Record<string, string[]> | undefined;
26765
26765
  }, {
@@ -26771,9 +26771,9 @@ declare const OrbitalRefObjectSchema: z.ZodObject<{
26771
26771
  pages?: Record<string, string> | undefined;
26772
26772
  fields?: Record<string, string> | undefined;
26773
26773
  events?: Record<string, string> | undefined;
26774
+ roles?: Record<string, string[]> | undefined;
26774
26775
  refId?: string | undefined;
26775
26776
  only?: string[] | undefined;
26776
- roles?: Record<string, string[]> | undefined;
26777
26777
  entities?: Record<string, string> | undefined;
26778
26778
  mounts?: Record<string, string[]> | undefined;
26779
26779
  }>;
@@ -38565,9 +38565,9 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
38565
38565
  pages?: Record<string, string> | undefined;
38566
38566
  fields?: Record<string, string> | undefined;
38567
38567
  events?: Record<string, string> | undefined;
38568
+ roles?: Record<string, string[]> | undefined;
38568
38569
  refId?: OrbitalId | undefined;
38569
38570
  only?: string[] | undefined;
38570
- roles?: Record<string, string[]> | undefined;
38571
38571
  entities?: Record<string, string> | undefined;
38572
38572
  mounts?: Record<string, string[]> | undefined;
38573
38573
  }, {
@@ -38579,9 +38579,9 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
38579
38579
  pages?: Record<string, string> | undefined;
38580
38580
  fields?: Record<string, string> | undefined;
38581
38581
  events?: Record<string, string> | undefined;
38582
+ roles?: Record<string, string[]> | undefined;
38582
38583
  refId?: string | undefined;
38583
38584
  only?: string[] | undefined;
38584
- roles?: Record<string, string[]> | undefined;
38585
38585
  entities?: Record<string, string> | undefined;
38586
38586
  mounts?: Record<string, string[]> | undefined;
38587
38587
  }>>;
@@ -40065,9 +40065,9 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
40065
40065
  pages?: Record<string, string> | undefined;
40066
40066
  fields?: Record<string, string> | undefined;
40067
40067
  events?: Record<string, string> | undefined;
40068
+ roles?: Record<string, string[]> | undefined;
40068
40069
  refId?: OrbitalId | undefined;
40069
40070
  only?: string[] | undefined;
40070
- roles?: Record<string, string[]> | undefined;
40071
40071
  entities?: Record<string, string> | undefined;
40072
40072
  mounts?: Record<string, string[]> | undefined;
40073
40073
  } | undefined;
@@ -41578,9 +41578,9 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
41578
41578
  pages?: Record<string, string> | undefined;
41579
41579
  fields?: Record<string, string> | undefined;
41580
41580
  events?: Record<string, string> | undefined;
41581
+ roles?: Record<string, string[]> | undefined;
41581
41582
  refId?: string | undefined;
41582
41583
  only?: string[] | undefined;
41583
- roles?: Record<string, string[]> | undefined;
41584
41584
  entities?: Record<string, string> | undefined;
41585
41585
  mounts?: Record<string, string[]> | undefined;
41586
41586
  } | undefined;
@@ -53119,9 +53119,9 @@ declare const OrbitalSchema$1: z.ZodObject<{
53119
53119
  pages?: Record<string, string> | undefined;
53120
53120
  fields?: Record<string, string> | undefined;
53121
53121
  events?: Record<string, string> | undefined;
53122
+ roles?: Record<string, string[]> | undefined;
53122
53123
  refId?: OrbitalId | undefined;
53123
53124
  only?: string[] | undefined;
53124
- roles?: Record<string, string[]> | undefined;
53125
53125
  entities?: Record<string, string> | undefined;
53126
53126
  mounts?: Record<string, string[]> | undefined;
53127
53127
  }, {
@@ -53133,9 +53133,9 @@ declare const OrbitalSchema$1: z.ZodObject<{
53133
53133
  pages?: Record<string, string> | undefined;
53134
53134
  fields?: Record<string, string> | undefined;
53135
53135
  events?: Record<string, string> | undefined;
53136
+ roles?: Record<string, string[]> | undefined;
53136
53137
  refId?: string | undefined;
53137
53138
  only?: string[] | undefined;
53138
- roles?: Record<string, string[]> | undefined;
53139
53139
  entities?: Record<string, string> | undefined;
53140
53140
  mounts?: Record<string, string[]> | undefined;
53141
53141
  }>>;
@@ -54619,9 +54619,9 @@ declare const OrbitalSchema$1: z.ZodObject<{
54619
54619
  pages?: Record<string, string> | undefined;
54620
54620
  fields?: Record<string, string> | undefined;
54621
54621
  events?: Record<string, string> | undefined;
54622
+ roles?: Record<string, string[]> | undefined;
54622
54623
  refId?: OrbitalId | undefined;
54623
54624
  only?: string[] | undefined;
54624
- roles?: Record<string, string[]> | undefined;
54625
54625
  entities?: Record<string, string> | undefined;
54626
54626
  mounts?: Record<string, string[]> | undefined;
54627
54627
  } | undefined;
@@ -56132,9 +56132,9 @@ declare const OrbitalSchema$1: z.ZodObject<{
56132
56132
  pages?: Record<string, string> | undefined;
56133
56133
  fields?: Record<string, string> | undefined;
56134
56134
  events?: Record<string, string> | undefined;
56135
+ roles?: Record<string, string[]> | undefined;
56135
56136
  refId?: string | undefined;
56136
56137
  only?: string[] | undefined;
56137
- roles?: Record<string, string[]> | undefined;
56138
56138
  entities?: Record<string, string> | undefined;
56139
56139
  mounts?: Record<string, string[]> | undefined;
56140
56140
  } | undefined;
@@ -67680,9 +67680,9 @@ declare const OrbitalUnitSchema: z.ZodObject<{
67680
67680
  pages?: Record<string, string> | undefined;
67681
67681
  fields?: Record<string, string> | undefined;
67682
67682
  events?: Record<string, string> | undefined;
67683
+ roles?: Record<string, string[]> | undefined;
67683
67684
  refId?: OrbitalId | undefined;
67684
67685
  only?: string[] | undefined;
67685
- roles?: Record<string, string[]> | undefined;
67686
67686
  entities?: Record<string, string> | undefined;
67687
67687
  mounts?: Record<string, string[]> | undefined;
67688
67688
  }, {
@@ -67694,9 +67694,9 @@ declare const OrbitalUnitSchema: z.ZodObject<{
67694
67694
  pages?: Record<string, string> | undefined;
67695
67695
  fields?: Record<string, string> | undefined;
67696
67696
  events?: Record<string, string> | undefined;
67697
+ roles?: Record<string, string[]> | undefined;
67697
67698
  refId?: string | undefined;
67698
67699
  only?: string[] | undefined;
67699
- roles?: Record<string, string[]> | undefined;
67700
67700
  entities?: Record<string, string> | undefined;
67701
67701
  mounts?: Record<string, string[]> | undefined;
67702
67702
  }>>;
@@ -69180,9 +69180,9 @@ declare const OrbitalUnitSchema: z.ZodObject<{
69180
69180
  pages?: Record<string, string> | undefined;
69181
69181
  fields?: Record<string, string> | undefined;
69182
69182
  events?: Record<string, string> | undefined;
69183
+ roles?: Record<string, string[]> | undefined;
69183
69184
  refId?: OrbitalId | undefined;
69184
69185
  only?: string[] | undefined;
69185
- roles?: Record<string, string[]> | undefined;
69186
69186
  entities?: Record<string, string> | undefined;
69187
69187
  mounts?: Record<string, string[]> | undefined;
69188
69188
  } | undefined;
@@ -70693,9 +70693,9 @@ declare const OrbitalUnitSchema: z.ZodObject<{
70693
70693
  pages?: Record<string, string> | undefined;
70694
70694
  fields?: Record<string, string> | undefined;
70695
70695
  events?: Record<string, string> | undefined;
70696
+ roles?: Record<string, string[]> | undefined;
70696
70697
  refId?: string | undefined;
70697
70698
  only?: string[] | undefined;
70698
- roles?: Record<string, string[]> | undefined;
70699
70699
  entities?: Record<string, string> | undefined;
70700
70700
  mounts?: Record<string, string[]> | undefined;
70701
70701
  } | undefined;
@@ -86412,9 +86412,9 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
86412
86412
  pages?: Record<string, string> | undefined;
86413
86413
  fields?: Record<string, string> | undefined;
86414
86414
  events?: Record<string, string> | undefined;
86415
+ roles?: Record<string, string[]> | undefined;
86415
86416
  refId?: OrbitalId | undefined;
86416
86417
  only?: string[] | undefined;
86417
- roles?: Record<string, string[]> | undefined;
86418
86418
  entities?: Record<string, string> | undefined;
86419
86419
  mounts?: Record<string, string[]> | undefined;
86420
86420
  }, {
@@ -86426,9 +86426,9 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
86426
86426
  pages?: Record<string, string> | undefined;
86427
86427
  fields?: Record<string, string> | undefined;
86428
86428
  events?: Record<string, string> | undefined;
86429
+ roles?: Record<string, string[]> | undefined;
86429
86430
  refId?: string | undefined;
86430
86431
  only?: string[] | undefined;
86431
- roles?: Record<string, string[]> | undefined;
86432
86432
  entities?: Record<string, string> | undefined;
86433
86433
  mounts?: Record<string, string[]> | undefined;
86434
86434
  }>>;
@@ -87912,9 +87912,9 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
87912
87912
  pages?: Record<string, string> | undefined;
87913
87913
  fields?: Record<string, string> | undefined;
87914
87914
  events?: Record<string, string> | undefined;
87915
+ roles?: Record<string, string[]> | undefined;
87915
87916
  refId?: OrbitalId | undefined;
87916
87917
  only?: string[] | undefined;
87917
- roles?: Record<string, string[]> | undefined;
87918
87918
  entities?: Record<string, string> | undefined;
87919
87919
  mounts?: Record<string, string[]> | undefined;
87920
87920
  } | undefined;
@@ -89425,9 +89425,9 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
89425
89425
  pages?: Record<string, string> | undefined;
89426
89426
  fields?: Record<string, string> | undefined;
89427
89427
  events?: Record<string, string> | undefined;
89428
+ roles?: Record<string, string[]> | undefined;
89428
89429
  refId?: string | undefined;
89429
89430
  only?: string[] | undefined;
89430
- roles?: Record<string, string[]> | undefined;
89431
89431
  entities?: Record<string, string> | undefined;
89432
89432
  mounts?: Record<string, string[]> | undefined;
89433
89433
  } | undefined;
@@ -91192,9 +91192,9 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
91192
91192
  pages?: Record<string, string> | undefined;
91193
91193
  fields?: Record<string, string> | undefined;
91194
91194
  events?: Record<string, string> | undefined;
91195
+ roles?: Record<string, string[]> | undefined;
91195
91196
  refId?: OrbitalId | undefined;
91196
91197
  only?: string[] | undefined;
91197
- roles?: Record<string, string[]> | undefined;
91198
91198
  entities?: Record<string, string> | undefined;
91199
91199
  mounts?: Record<string, string[]> | undefined;
91200
91200
  } | undefined;
@@ -93262,9 +93262,9 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
93262
93262
  pages?: Record<string, string> | undefined;
93263
93263
  fields?: Record<string, string> | undefined;
93264
93264
  events?: Record<string, string> | undefined;
93265
+ roles?: Record<string, string[]> | undefined;
93265
93266
  refId?: string | undefined;
93266
93267
  only?: string[] | undefined;
93267
- roles?: Record<string, string[]> | undefined;
93268
93268
  entities?: Record<string, string> | undefined;
93269
93269
  mounts?: Record<string, string[]> | undefined;
93270
93270
  } | undefined;
@@ -95397,9 +95397,9 @@ declare function safeParseOrbitalSchema(data: RuntimeValue): z.SafeParseReturnTy
95397
95397
  pages?: Record<string, string> | undefined;
95398
95398
  fields?: Record<string, string> | undefined;
95399
95399
  events?: Record<string, string> | undefined;
95400
+ roles?: Record<string, string[]> | undefined;
95400
95401
  refId?: string | undefined;
95401
95402
  only?: string[] | undefined;
95402
- roles?: Record<string, string[]> | undefined;
95403
95403
  entities?: Record<string, string> | undefined;
95404
95404
  mounts?: Record<string, string[]> | undefined;
95405
95405
  } | undefined;
@@ -97467,9 +97467,9 @@ declare function safeParseOrbitalSchema(data: RuntimeValue): z.SafeParseReturnTy
97467
97467
  pages?: Record<string, string> | undefined;
97468
97468
  fields?: Record<string, string> | undefined;
97469
97469
  events?: Record<string, string> | undefined;
97470
+ roles?: Record<string, string[]> | undefined;
97470
97471
  refId?: OrbitalId | undefined;
97471
97472
  only?: string[] | undefined;
97472
- roles?: Record<string, string[]> | undefined;
97473
97473
  entities?: Record<string, string> | undefined;
97474
97474
  mounts?: Record<string, string[]> | undefined;
97475
97475
  } | undefined;
@@ -98191,4 +98191,4 @@ declare function safeParseOrbitalSchema(data: RuntimeValue): z.SafeParseReturnTy
98191
98191
  }>;
98192
98192
  type OrbitalSchemaInput = z.input<typeof OrbitalSchemaSchema>;
98193
98193
 
98194
- export { EntityRefSchema as $, AGENT_DOMAIN_CATEGORIES as A, DensityTokensSchema as B, type ColorSlice as C, type DensitySlice as D, type EntityRef as E, type DesignPreferences as F, type DesignPreferencesInput as G, DesignPreferencesSchema as H, type DesignTokens as I, type DesignTokensInput as J, DesignTokensSchema as K, type DomainCategory as L, DomainCategorySchema as M, type DomainContext as N, type OrbitalSchema as O, type PageRef as P, type DomainContextInput as Q, DomainContextSchema as R, type DomainVocabulary as S, DomainVocabularySchema as T, type UseDeclaration as U, type ElevationSlice as V, ElevationSliceSchema as W, type ElevationTokens as X, ElevationTokensSchema as Y, type EntityCall as Z, EntityCallSchema as _, type OrbitalDefinition as a, OrbitalSchema$1 as a$, EntityRefStringSchema as a0, type EntitySemanticRole as a1, EntitySemanticRoleSchema as a2, type EventListener as a3, EventListenerSchema as a4, type EventSemanticRole as a5, EventSemanticRoleSchema as a6, type EventSource as a7, EventSourceSchema as a8, ExpectDeclarationSchema as a9, MotionEasingPaletteSchema as aA, type MotionIntent as aB, type MotionIntentMap as aC, MotionIntentMapSchema as aD, MotionIntentSchema as aE, type MotionSlice as aF, MotionSliceSchema as aG, type MotionTokens as aH, MotionTokensSchema as aI, type NavItem as aJ, type NavStackEntry as aK, type NodeClassification as aL, NodeClassificationSchema as aM, OrbitalDefinitionSchema as aN, type OrbitalInput as aO, type OrbitalPageInput as aP, OrbitalPageSchema as aQ, type OrbitalPageStrictInput as aR, OrbitalPageStrictSchema as aS, type OrbitalRefObject as aT, OrbitalRefObjectSchema as aU, OrbitalRefStringSchema as aV, type OrbitalSchemaInput as aW, OrbitalSchemaSchema as aX, type OrbitalSchemaWithTraits as aY, type OrbitalUnit as aZ, OrbitalUnitSchema as a_, type Orbital as aa, type GameSubCategory as ab, GameSubCategorySchema as ac, type GeometrySlice as ad, GeometrySliceSchema as ae, type GeometryTokens as af, GeometryTokensSchema as ag, type IconFamily as ah, IconFamilySchema as ai, type IconographySlice as aj, IconographySliceSchema as ak, type IconographyTokens as al, IconographyTokensSchema as am, type IllustrationSlice as an, IllustrationSliceSchema as ao, type IllustrationStyle as ap, IllustrationStyleSchema as aq, type IllustrationTokens as ar, IllustrationTokensSchema as as, type MotionDurationKey as at, MotionDurationKeySchema as au, type MotionDurationPalette as av, MotionDurationPaletteSchema as aw, type MotionEasingKey as ax, MotionEasingKeySchema as ay, type MotionEasingPalette as az, type ExpectDeclaration as b, parseEntityRef as b$, PageRefObjectSchema as b0, PageRefSchema as b1, PageRefStringSchema as b2, PageSchema as b3, type PageTraitRef as b4, PageTraitRefSchema as b5, type RelatedLink as b6, RelatedLinkSchema as b7, type SchemaMetadata as b8, SchemaMetadataSchema as b9, TypeScaleTokensSchema as bA, type TypeSizeKey as bB, TypeSizeKeySchema as bC, type TypeSlice as bD, TypeSliceSchema as bE, type TypeSlot as bF, TypeSlotSchema as bG, type TypeWeight as bH, TypeWeightSchema as bI, type UXHints as bJ, UXHintsSchema as bK, UseDeclarationSchema as bL, type UserPersona as bM, type UserPersonaInput as bN, UserPersonaSchema as bO, type ViewType as bP, ViewTypeSchema as bQ, expectedEntityName as bR, isEntityCall as bS, isEntityReference as bT, isEntityReferenceAny as bU, isImportedTraitRef as bV, isOrbitalDefinition as bW, isPageReference as bX, isPageReferenceObject as bY, isPageReferenceString as bZ, isThemeReference as b_, type SkinSpec as ba, SkinSpecSchema as bb, type SpacingScale as bc, SpacingScaleSchema as bd, type StateSemanticRole as be, StateSemanticRoleSchema as bf, type SuggestedGuard as bg, SuggestedGuardSchema as bh, type ThemeDefinition as bi, ThemeDefinitionSchema as bj, type ThemeRef as bk, ThemeRefSchema as bl, ThemeRefStringSchema as bm, type ThemeTokens as bn, ThemeTokensSchema as bo, type ThemeVariant as bp, ThemeVariantSchema as bq, type TypeIntent as br, type TypeIntentMap as bs, TypeIntentMapSchema as bt, TypeIntentSchema as bu, type TypeScale as bv, type TypeScaleEntry as bw, TypeScaleEntrySchema as bx, TypeScaleSchema as by, type TypeScaleTokens as bz, type Page as c, parseImportedTraitRef as c0, parseOrbitalRef as c1, parseOrbitalSchema as c2, parsePageRef as c3, safeParseOrbitalSchema as c4, type PageRefObject as d, type OrbitalPage as e, ALLOWED_CUSTOM_COMPONENTS as f, type AgentDomainCategory as g, AgentDomainCategorySchema as h, type AllowedCustomComponent as i, ColorSliceSchema as j, type ColorTokens as k, ColorTokensSchema as l, type ComputedEventContract as m, ComputedEventContractSchema as n, type ComputedEventListener as o, ComputedEventListenerSchema as p, type ConfigProvenanceRecord as q, ConfigProvenanceRecordSchema as r, type CustomPatternDefinition as s, type CustomPatternDefinitionInput as t, CustomPatternDefinitionSchema as u, type CustomPatternMap as v, type CustomPatternMapInput as w, CustomPatternMapSchema as x, DensitySliceSchema as y, type DensityTokens as z };
98194
+ export { EntityRefStringSchema as $, AGENT_DOMAIN_CATEGORIES as A, type DesignPreferences as B, type ColorSlice as C, type DensitySlice as D, type EntityRef as E, type DesignPreferencesInput as F, DesignPreferencesSchema as G, type DesignTokens as H, type DesignTokensInput as I, DesignTokensSchema as J, type DomainCategory as K, DomainCategorySchema as L, type DomainContext as M, type DomainContextInput as N, type OrbitalSchema as O, type PageRef as P, DomainContextSchema as Q, type DomainVocabulary as R, DomainVocabularySchema as S, type ElevationSlice as T, type UseDeclaration as U, ElevationSliceSchema as V, type ElevationTokens as W, ElevationTokensSchema as X, type EntityCall as Y, EntityCallSchema as Z, EntityRefSchema as _, type OrbitalDefinition as a, OrbitalSchema$1 as a$, type EntitySemanticRole as a0, EntitySemanticRoleSchema as a1, type EventListener as a2, EventListenerSchema as a3, type EventSemanticRole as a4, EventSemanticRoleSchema as a5, type EventSource as a6, EventSourceSchema as a7, ExpectDeclarationSchema as a8, type Orbital as a9, type MotionIntent as aA, type MotionIntentMap as aB, MotionIntentMapSchema as aC, MotionIntentSchema as aD, type MotionSlice as aE, MotionSliceSchema as aF, type MotionTokens as aG, MotionTokensSchema as aH, type NavItem as aI, type NavStackEntry as aJ, type NodeClassification as aK, NodeClassificationSchema as aL, OrbitalDefinitionSchema as aM, type OrbitalInput as aN, type OrbitalPage as aO, type OrbitalPageInput as aP, OrbitalPageSchema as aQ, type OrbitalPageStrictInput as aR, OrbitalPageStrictSchema as aS, type OrbitalRefObject as aT, OrbitalRefObjectSchema as aU, OrbitalRefStringSchema as aV, type OrbitalSchemaInput as aW, OrbitalSchemaSchema as aX, type OrbitalSchemaWithTraits as aY, type OrbitalUnit as aZ, OrbitalUnitSchema as a_, type GameSubCategory as aa, GameSubCategorySchema as ab, type GeometrySlice as ac, GeometrySliceSchema as ad, type GeometryTokens as ae, GeometryTokensSchema as af, type IconFamily as ag, IconFamilySchema as ah, type IconographySlice as ai, IconographySliceSchema as aj, type IconographyTokens as ak, IconographyTokensSchema as al, type IllustrationSlice as am, IllustrationSliceSchema as an, type IllustrationStyle as ao, IllustrationStyleSchema as ap, type IllustrationTokens as aq, IllustrationTokensSchema as ar, type MotionDurationKey as as, MotionDurationKeySchema as at, type MotionDurationPalette as au, MotionDurationPaletteSchema as av, type MotionEasingKey as aw, MotionEasingKeySchema as ax, type MotionEasingPalette as ay, MotionEasingPaletteSchema as az, type ExpectDeclaration as b, parseEntityRef as b$, PageRefObjectSchema as b0, PageRefSchema as b1, PageRefStringSchema as b2, PageSchema as b3, type PageTraitRef as b4, PageTraitRefSchema as b5, type RelatedLink as b6, RelatedLinkSchema as b7, type SchemaMetadata as b8, SchemaMetadataSchema as b9, TypeScaleTokensSchema as bA, type TypeSizeKey as bB, TypeSizeKeySchema as bC, type TypeSlice as bD, TypeSliceSchema as bE, type TypeSlot as bF, TypeSlotSchema as bG, type TypeWeight as bH, TypeWeightSchema as bI, type UXHints as bJ, UXHintsSchema as bK, UseDeclarationSchema as bL, type UserPersona as bM, type UserPersonaInput as bN, UserPersonaSchema as bO, type ViewType as bP, ViewTypeSchema as bQ, expectedEntityName as bR, isEntityCall as bS, isEntityReference as bT, isEntityReferenceAny as bU, isImportedTraitRef as bV, isOrbitalDefinition as bW, isPageReference as bX, isPageReferenceObject as bY, isPageReferenceString as bZ, isThemeReference as b_, type SkinSpec as ba, SkinSpecSchema as bb, type SpacingScale as bc, SpacingScaleSchema as bd, type StateSemanticRole as be, StateSemanticRoleSchema as bf, type SuggestedGuard as bg, SuggestedGuardSchema as bh, type ThemeDefinition as bi, ThemeDefinitionSchema as bj, type ThemeRef as bk, ThemeRefSchema as bl, ThemeRefStringSchema as bm, type ThemeTokens as bn, ThemeTokensSchema as bo, type ThemeVariant as bp, ThemeVariantSchema as bq, type TypeIntent as br, type TypeIntentMap as bs, TypeIntentMapSchema as bt, TypeIntentSchema as bu, type TypeScale as bv, type TypeScaleEntry as bw, TypeScaleEntrySchema as bx, TypeScaleSchema as by, type TypeScaleTokens as bz, type Page as c, parseImportedTraitRef as c0, parseOrbitalRef as c1, parseOrbitalSchema as c2, parsePageRef as c3, safeParseOrbitalSchema as c4, type PageRefObject as d, ALLOWED_CUSTOM_COMPONENTS as e, type AgentDomainCategory as f, AgentDomainCategorySchema as g, type AllowedCustomComponent as h, ColorSliceSchema as i, type ColorTokens as j, ColorTokensSchema as k, type ComputedEventContract as l, ComputedEventContractSchema as m, type ComputedEventListener as n, ComputedEventListenerSchema as o, type ConfigProvenanceRecord as p, ConfigProvenanceRecordSchema as q, type CustomPatternDefinition as r, type CustomPatternDefinitionInput as s, CustomPatternDefinitionSchema as t, type CustomPatternMap as u, type CustomPatternMapInput as v, CustomPatternMapSchema as w, DensitySliceSchema as x, type DensityTokens as y, DensityTokensSchema as z };
@@ -74,6 +74,13 @@ function nestedPayload(path, leaf) {
74
74
  function isPayloadObject(v) {
75
75
  return typeof v === "object" && v !== null && !Array.isArray(v) && !(v instanceof Date);
76
76
  }
77
+ function extractArrayLenPath(ref) {
78
+ if (!Array.isArray(ref) || ref.length !== 2 || ref[0] !== "array/len") return null;
79
+ return extractPayloadFieldPath(ref[1]);
80
+ }
81
+ function arrayOfLength(n) {
82
+ return Array.from({ length: Math.max(0, n) }, (_, i) => ({ id: `mock-test-id-${i}` }));
83
+ }
77
84
  var SYNTHESIZED_GUARD_OPERATORS = /* @__PURE__ */ new Set([
78
85
  "not-nil",
79
86
  "not_nil",
@@ -298,23 +305,31 @@ function buildGuardPayloads(guard) {
298
305
  if (objectGetPayload) return objectGetPayload;
299
306
  }
300
307
  if (op === "gt" || op === ">") {
301
- const path = extractPayloadFieldPath(guard[1]);
308
+ const arrayPath = extractArrayLenPath(guard[1]);
302
309
  const n = typeof guard[2] === "number" ? guard[2] : 0;
310
+ if (arrayPath) return { pass: nestedPayload(arrayPath, arrayOfLength(n + 1)), fail: nestedPayload(arrayPath, arrayOfLength(n)) };
311
+ const path = extractPayloadFieldPath(guard[1]);
303
312
  if (path) return { pass: nestedPayload(path, n + 1), fail: nestedPayload(path, n - 1) };
304
313
  }
305
314
  if (op === "gte" || op === ">=") {
306
- const path = extractPayloadFieldPath(guard[1]);
315
+ const arrayPath = extractArrayLenPath(guard[1]);
307
316
  const n = typeof guard[2] === "number" ? guard[2] : 0;
317
+ if (arrayPath) return { pass: nestedPayload(arrayPath, arrayOfLength(n)), fail: nestedPayload(arrayPath, arrayOfLength(n - 1)) };
318
+ const path = extractPayloadFieldPath(guard[1]);
308
319
  if (path) return { pass: nestedPayload(path, n), fail: nestedPayload(path, n - 1) };
309
320
  }
310
321
  if (op === "lt" || op === "<") {
311
- const path = extractPayloadFieldPath(guard[1]);
322
+ const arrayPath = extractArrayLenPath(guard[1]);
312
323
  const n = typeof guard[2] === "number" ? guard[2] : 0;
324
+ if (arrayPath) return { pass: nestedPayload(arrayPath, arrayOfLength(n - 1)), fail: nestedPayload(arrayPath, arrayOfLength(n + 1)) };
325
+ const path = extractPayloadFieldPath(guard[1]);
313
326
  if (path) return { pass: nestedPayload(path, n - 1), fail: nestedPayload(path, n + 1) };
314
327
  }
315
328
  if (op === "lte" || op === "<=") {
316
- const path = extractPayloadFieldPath(guard[1]);
329
+ const arrayPath = extractArrayLenPath(guard[1]);
317
330
  const n = typeof guard[2] === "number" ? guard[2] : 0;
331
+ if (arrayPath) return { pass: nestedPayload(arrayPath, arrayOfLength(n)), fail: nestedPayload(arrayPath, arrayOfLength(n + 1)) };
332
+ const path = extractPayloadFieldPath(guard[1]);
318
333
  if (path) return { pass: nestedPayload(path, n), fail: nestedPayload(path, n + 1) };
319
334
  }
320
335
  if (op === "and") {