@almadar/core 10.75.0 → 10.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1748,6 +1748,17 @@ var UseDeclarationSchema = z.object({
1748
1748
  'Alias must be PascalCase (e.g., "Health", "GameCore")'
1749
1749
  )
1750
1750
  });
1751
+ function expectedEntityName(decl) {
1752
+ switch (decl.kind) {
1753
+ case "entity":
1754
+ return decl.name;
1755
+ case "identity":
1756
+ return decl.name;
1757
+ case "event":
1758
+ case "page":
1759
+ return void 0;
1760
+ }
1761
+ }
1751
1762
  var ExpectDeclarationSchema = z.discriminatedUnion("kind", [
1752
1763
  z.object({
1753
1764
  kind: z.literal("identity"),
@@ -1763,6 +1774,10 @@ var ExpectDeclarationSchema = z.discriminatedUnion("kind", [
1763
1774
  kind: z.literal("event"),
1764
1775
  traitName: z.string().min(1, "Expected event trait name is required"),
1765
1776
  event: z.string().min(1, "Expected event name is required")
1777
+ }),
1778
+ z.object({
1779
+ kind: z.literal("page"),
1780
+ path: z.string().min(1, "Expected page path is required")
1766
1781
  })
1767
1782
  ]);
1768
1783
  function isEntityReference(entity) {
@@ -2257,7 +2272,7 @@ function getInteractionModelForDomain(domain) {
2257
2272
  // src/patterns/patterns-registry.json
2258
2273
  var patterns_registry_default = {
2259
2274
  version: "1.0.0",
2260
- exportedAt: "2026-08-29T18:15:51.642Z",
2275
+ exportedAt: "2026-08-31T09:49:17.624Z",
2261
2276
  patterns: {
2262
2277
  "entity-table": {
2263
2278
  type: "entity-table",
@@ -2493,6 +2508,8 @@ var patterns_registry_default = {
2493
2508
  "array"
2494
2509
  ],
2495
2510
  description: "Item actions from generated code - maps to rowActions",
2511
+ kind: "event-list",
2512
+ eventField: "event",
2496
2513
  items: {
2497
2514
  types: [
2498
2515
  "object"
@@ -2513,11 +2530,6 @@ var patterns_registry_default = {
2513
2530
  "string"
2514
2531
  ]
2515
2532
  },
2516
- action: {
2517
- types: [
2518
- "string"
2519
- ]
2520
- },
2521
2533
  placement: {
2522
2534
  types: [
2523
2535
  "string"
@@ -2621,6 +2633,8 @@ var patterns_registry_default = {
2621
2633
  "array"
2622
2634
  ],
2623
2635
  description: "Row actions",
2636
+ kind: "event-list",
2637
+ eventField: "event",
2624
2638
  items: {
2625
2639
  types: [
2626
2640
  "object"
@@ -2672,6 +2686,8 @@ var patterns_registry_default = {
2672
2686
  "array"
2673
2687
  ],
2674
2688
  description: "Bulk actions",
2689
+ kind: "event-list",
2690
+ eventField: "event",
2675
2691
  items: {
2676
2692
  types: [
2677
2693
  "object"
@@ -2890,6 +2906,8 @@ var patterns_registry_default = {
2890
2906
  "array"
2891
2907
  ],
2892
2908
  description: "Item actions - schema-driven or function-based",
2909
+ kind: "event-list",
2910
+ eventField: "event",
2893
2911
  items: {
2894
2912
  types: [
2895
2913
  "object"
@@ -2921,11 +2939,6 @@ var patterns_registry_default = {
2921
2939
  "footer"
2922
2940
  ]
2923
2941
  },
2924
- action: {
2925
- types: [
2926
- "string"
2927
- ]
2928
- },
2929
2942
  variant: {
2930
2943
  types: [
2931
2944
  "string"
@@ -3428,11 +3441,6 @@ var patterns_registry_default = {
3428
3441
  "function"
3429
3442
  ]
3430
3443
  },
3431
- action: {
3432
- types: [
3433
- "string"
3434
- ]
3435
- },
3436
3444
  placement: {
3437
3445
  types: [
3438
3446
  "string"
@@ -3745,6 +3753,8 @@ var patterns_registry_default = {
3745
3753
  "array"
3746
3754
  ],
3747
3755
  description: "Unified actions array - first action with variant='primary' is the main action",
3756
+ kind: "event-list",
3757
+ eventField: "event",
3748
3758
  items: {
3749
3759
  types: [
3750
3760
  "object"
@@ -4137,6 +4147,8 @@ var patterns_registry_default = {
4137
4147
  "array"
4138
4148
  ],
4139
4149
  description: "Actions array - first action with variant='primary' (or first action) is the main action",
4150
+ kind: "event-list",
4151
+ eventField: "event",
4140
4152
  items: {
4141
4153
  types: [
4142
4154
  "object"
@@ -6340,6 +6352,8 @@ var patterns_registry_default = {
6340
6352
  "array"
6341
6353
  ],
6342
6354
  description: "Tab items",
6355
+ kind: "event-list",
6356
+ eventField: "event",
6343
6357
  items: {
6344
6358
  types: [
6345
6359
  "object"
@@ -6497,6 +6511,8 @@ var patterns_registry_default = {
6497
6511
  "array"
6498
6512
  ],
6499
6513
  description: "Tab items (alias for items - used by generated code)",
6514
+ kind: "event-list",
6515
+ eventField: "event",
6500
6516
  items: {
6501
6517
  types: [
6502
6518
  "object"
@@ -11228,6 +11244,8 @@ var patterns_registry_default = {
11228
11244
  ],
11229
11245
  description: "Menu items",
11230
11246
  required: true,
11247
+ kind: "event-list",
11248
+ eventField: "event",
11231
11249
  items: {
11232
11250
  types: [
11233
11251
  "object"
@@ -12624,6 +12642,8 @@ var patterns_registry_default = {
12624
12642
  "array"
12625
12643
  ],
12626
12644
  description: "Secondary action buttons config (for form-actions pattern) Accepts readonly array for compatibility with generated const arrays",
12645
+ kind: "event-list",
12646
+ eventField: "event",
12627
12647
  items: {
12628
12648
  types: [
12629
12649
  "object"
@@ -12958,6 +12978,8 @@ var patterns_registry_default = {
12958
12978
  "array"
12959
12979
  ],
12960
12980
  description: "Multiple actions. When provided, the button expands to show all of them.",
12981
+ kind: "event-list",
12982
+ eventField: "event",
12961
12983
  items: {
12962
12984
  types: [
12963
12985
  "object"
@@ -16187,6 +16209,8 @@ var patterns_registry_default = {
16187
16209
  "array"
16188
16210
  ],
16189
16211
  description: "Top-level chart actions (export, refresh, etc.)",
16212
+ kind: "event-list",
16213
+ eventField: "event",
16190
16214
  items: {
16191
16215
  types: [
16192
16216
  "object"
@@ -16391,6 +16415,8 @@ var patterns_registry_default = {
16391
16415
  "array"
16392
16416
  ],
16393
16417
  description: "Actions",
16418
+ kind: "event-list",
16419
+ eventField: "event",
16394
16420
  items: {
16395
16421
  types: [
16396
16422
  "object"
@@ -16928,6 +16954,8 @@ var patterns_registry_default = {
16928
16954
  "array"
16929
16955
  ],
16930
16956
  description: "Actions",
16957
+ kind: "event-list",
16958
+ eventField: "event",
16931
16959
  items: {
16932
16960
  types: [
16933
16961
  "object"
@@ -17210,6 +17238,8 @@ var patterns_registry_default = {
17210
17238
  "array"
17211
17239
  ],
17212
17240
  description: "Actions",
17241
+ kind: "event-list",
17242
+ eventField: "event",
17213
17243
  items: {
17214
17244
  types: [
17215
17245
  "object"
@@ -17581,6 +17611,8 @@ var patterns_registry_default = {
17581
17611
  "array"
17582
17612
  ],
17583
17613
  description: "Actions",
17614
+ kind: "event-list",
17615
+ eventField: "event",
17584
17616
  items: {
17585
17617
  types: [
17586
17618
  "object"
@@ -18494,6 +18526,8 @@ var patterns_registry_default = {
18494
18526
  "array"
18495
18527
  ],
18496
18528
  description: "Action badges in the toolbar",
18529
+ kind: "event-list",
18530
+ eventField: "event",
18497
18531
  items: {
18498
18532
  types: [
18499
18533
  "object"
@@ -28162,9 +28196,19 @@ var patterns_registry_default = {
28162
28196
  kind: "event-ref",
28163
28197
  emitPayloadSchema: [
28164
28198
  {
28165
- name: "_payload",
28166
- type: "object",
28167
- required: false
28199
+ name: "text",
28200
+ type: "string",
28201
+ required: true
28202
+ },
28203
+ {
28204
+ name: "format",
28205
+ type: "string",
28206
+ required: true
28207
+ },
28208
+ {
28209
+ name: "timestamp",
28210
+ type: "number",
28211
+ required: true
28168
28212
  }
28169
28213
  ]
28170
28214
  },
@@ -32217,6 +32261,8 @@ var patterns_registry_default = {
32217
32261
  "array"
32218
32262
  ],
32219
32263
  description: "Menu options - accepts readonly for compatibility with generated const arrays",
32264
+ kind: "event-list",
32265
+ eventField: "event",
32220
32266
  items: {
32221
32267
  types: [
32222
32268
  "object"
@@ -32261,11 +32307,6 @@ var patterns_registry_default = {
32261
32307
  types: [
32262
32308
  "string"
32263
32309
  ]
32264
- },
32265
- action: {
32266
- types: [
32267
- "string"
32268
- ]
32269
32310
  }
32270
32311
  },
32271
32312
  required: [
@@ -32278,6 +32319,8 @@ var patterns_registry_default = {
32278
32319
  "array"
32279
32320
  ],
32280
32321
  description: "Alias for options (schema compatibility)",
32322
+ kind: "event-list",
32323
+ eventField: "event",
32281
32324
  items: {
32282
32325
  types: [
32283
32326
  "object"
@@ -32322,11 +32365,6 @@ var patterns_registry_default = {
32322
32365
  types: [
32323
32366
  "string"
32324
32367
  ]
32325
- },
32326
- action: {
32327
- types: [
32328
- "string"
32329
- ]
32330
32368
  }
32331
32369
  },
32332
32370
  required: [
@@ -32388,11 +32426,6 @@ var patterns_registry_default = {
32388
32426
  types: [
32389
32427
  "string"
32390
32428
  ]
32391
- },
32392
- action: {
32393
- types: [
32394
- "string"
32395
- ]
32396
32429
  }
32397
32430
  },
32398
32431
  required: [
@@ -53346,7 +53379,7 @@ var integrators_registry_default = {
53346
53379
  // src/patterns/component-mapping.json
53347
53380
  var component_mapping_default = {
53348
53381
  version: "1.0.0",
53349
- exportedAt: "2026-08-29T18:15:51.642Z",
53382
+ exportedAt: "2026-08-31T09:49:17.624Z",
53350
53383
  mappings: {
53351
53384
  "page-header": {
53352
53385
  component: "PageHeader",
@@ -54766,7 +54799,7 @@ var component_mapping_default = {
54766
54799
  // src/patterns/event-contracts.json
54767
54800
  var event_contracts_default = {
54768
54801
  version: "1.0.0",
54769
- exportedAt: "2026-08-29T18:15:51.642Z",
54802
+ exportedAt: "2026-08-31T09:49:17.624Z",
54770
54803
  contracts: {
54771
54804
  form: {
54772
54805
  emits: [
@@ -60004,7 +60037,66 @@ function collectPersistPayloadKeys(data, out) {
60004
60037
  function isPlainString(value) {
60005
60038
  return typeof value === "string" && !value.startsWith("@");
60006
60039
  }
60007
- function deriveExpectations(schema, orbitalName) {
60040
+ function pathMatchesPattern(path, pattern) {
60041
+ const pathParts = path.split("/").filter((s) => s.length > 0);
60042
+ const patternParts = pattern.split("/").filter((s) => s.length > 0);
60043
+ if (pathParts.length !== patternParts.length) return false;
60044
+ return patternParts.every((seg, i) => seg.startsWith(":") || seg === pathParts[i]);
60045
+ }
60046
+ function findMatchingPagePath(navPath, pagePaths) {
60047
+ if (pagePaths.has(navPath)) return navPath;
60048
+ const sorted = [...pagePaths].sort();
60049
+ if (navPath.endsWith("/")) {
60050
+ const prefixParts = navPath.split("/").filter((s) => s.length > 0);
60051
+ const parameterised = sorted.find((p) => {
60052
+ const parts = p.split("/").filter((s) => s.length > 0);
60053
+ return parts.length === prefixParts.length + 1 && parts[parts.length - 1]?.startsWith(":") === true && prefixParts.every((seg, i) => parts[i] === seg);
60054
+ });
60055
+ if (parameterised !== void 0) return parameterised;
60056
+ }
60057
+ return sorted.find((p) => pathMatchesPattern(navPath, p)) ?? sorted.find((p) => p.startsWith(navPath.replace(/\/+$/, ""))) ?? null;
60058
+ }
60059
+ function navigateTargetOf(node) {
60060
+ if (!Array.isArray(node) || node.length < 2 || node[0] !== "navigate") return null;
60061
+ const target = node[1];
60062
+ if (typeof target === "string") return target.startsWith("@") ? null : target;
60063
+ if (Array.isArray(target) && target.length >= 2) {
60064
+ const op = target[0];
60065
+ const first = target[1];
60066
+ if ((op === "str/concat" || op === "concat") && typeof first === "string") return first;
60067
+ }
60068
+ return null;
60069
+ }
60070
+ function behaviorNameOf(from) {
60071
+ const segments = from.split("/");
60072
+ return (segments[segments.length - 1] ?? from).replace(/\.orb$/, "");
60073
+ }
60074
+ function traitRefString(t) {
60075
+ if (typeof t === "string") return t;
60076
+ return isInlineTrait(t) ? void 0 : t.ref;
60077
+ }
60078
+ function contributedEntitiesOf(behavior, traitName) {
60079
+ for (const o of behavior.orbitals) {
60080
+ for (const t of o.traits ?? []) {
60081
+ if (typeof t !== "object" || t === null || !isInlineTrait(t)) continue;
60082
+ if (t.name !== traitName) continue;
60083
+ const primary = asOrbitalEntity(o.entity);
60084
+ const bound = t.linkedEntity ?? primary?.name;
60085
+ const aux = [];
60086
+ for (const ref2 of o.auxiliaryEntities ?? []) {
60087
+ const def = asOrbitalEntity(ref2);
60088
+ if (def !== void 0) aux.push(def.name);
60089
+ }
60090
+ return { ...bound !== void 0 ? { bound } : {}, aux };
60091
+ }
60092
+ }
60093
+ return void 0;
60094
+ }
60095
+ function asOrbitalEntity(ref2) {
60096
+ if (typeof ref2 === "object" && ref2 !== null && "fields" in ref2) return ref2;
60097
+ return void 0;
60098
+ }
60099
+ function deriveExpectations(schema, orbitalName, options = {}) {
60008
60100
  const diagnostics = [];
60009
60101
  const orbital = schema.orbitals.find((o) => o.name === orbitalName);
60010
60102
  if (orbital === void 0) {
@@ -60021,6 +60113,34 @@ function deriveExpectations(schema, orbitalName) {
60021
60113
  }
60022
60114
  }
60023
60115
  }
60116
+ const contributedNames = /* @__PURE__ */ new Set();
60117
+ const { loadBehavior } = options;
60118
+ if (loadBehavior !== void 0) {
60119
+ for (const o of schema.orbitals) {
60120
+ const behaviorByAlias = /* @__PURE__ */ new Map();
60121
+ for (const use of o.uses ?? []) behaviorByAlias.set(use.as, behaviorNameOf(use.from));
60122
+ if (behaviorByAlias.size === 0) continue;
60123
+ for (const t of o.traits ?? []) {
60124
+ const ref2 = traitRefString(t);
60125
+ if (ref2 === void 0) continue;
60126
+ const parsed = parseImportedTraitRef(ref2);
60127
+ if (parsed === null) continue;
60128
+ const behaviorName = behaviorByAlias.get(parsed.alias);
60129
+ if (behaviorName === void 0) continue;
60130
+ const behavior = loadBehavior(behaviorName);
60131
+ if (behavior === null) continue;
60132
+ const contributed = contributedEntitiesOf(behavior, parsed.traitName);
60133
+ if (contributed === void 0) continue;
60134
+ const rebound = typeof t === "object" && t !== null && !isInlineTrait(t) ? t.linkedEntity !== void 0 : false;
60135
+ const names = rebound ? contributed.aux : [...contributed.bound !== void 0 ? [contributed.bound] : [], ...contributed.aux];
60136
+ for (const name of names) {
60137
+ if (ownerByEntity.has(name)) continue;
60138
+ ownerByEntity.set(name, o.name);
60139
+ contributedNames.add(name);
60140
+ }
60141
+ }
60142
+ }
60143
+ }
60024
60144
  for (const o of schema.orbitals) {
60025
60145
  const primary = o.entity;
60026
60146
  if (typeof primary === "object" && primary !== null && "fields" in primary && primary.identity === true) {
@@ -60038,6 +60158,24 @@ function deriveExpectations(schema, orbitalName) {
60038
60158
  const ownEntityNames = new Set(ownDefs.map((d) => d.name));
60039
60159
  const userFields = /* @__PURE__ */ new Set();
60040
60160
  const entityRefs = /* @__PURE__ */ new Map();
60161
+ const pageRefs = /* @__PURE__ */ new Set();
60162
+ const ownerByPagePath = /* @__PURE__ */ new Map();
60163
+ for (const o of schema.orbitals) {
60164
+ for (const page of o.pages ?? []) {
60165
+ if (typeof page === "string") continue;
60166
+ const path = page.path;
60167
+ if (typeof path === "string" && path.length > 0 && !ownerByPagePath.has(path)) {
60168
+ ownerByPagePath.set(path, o.name);
60169
+ }
60170
+ }
60171
+ }
60172
+ const organismPagePaths = new Set(ownerByPagePath.keys());
60173
+ const addPageRef = (navPath) => {
60174
+ const matched = findMatchingPagePath(navPath, organismPagePaths);
60175
+ if (matched === null) return;
60176
+ if (ownerByPagePath.get(matched) === orbitalName) return;
60177
+ pageRefs.add(matched);
60178
+ };
60041
60179
  const addEntityRef = (name, field) => {
60042
60180
  if (ownEntityNames.has(name)) return;
60043
60181
  const owner = ownerByEntity.get(name);
@@ -60074,6 +60212,11 @@ function deriveExpectations(schema, orbitalName) {
60074
60212
  }
60075
60213
  return;
60076
60214
  }
60215
+ const navTarget = navigateTargetOf(node);
60216
+ if (navTarget !== null) {
60217
+ addPageRef(navTarget);
60218
+ return;
60219
+ }
60077
60220
  if (Array.isArray(node) && node.length > 0 && node[0] === "persist") {
60078
60221
  const target = node[2];
60079
60222
  if (target !== void 0 && isPlainString(target)) {
@@ -60091,9 +60234,9 @@ function deriveExpectations(schema, orbitalName) {
60091
60234
  const target = node[1];
60092
60235
  if (target !== void 0 && isPlainString(target)) {
60093
60236
  addEntityRef(target);
60094
- const options = node[2];
60095
- if (options !== void 0 && !Array.isArray(options) && typeof options === "object" && options !== null) {
60096
- const include = options["include"];
60237
+ const options2 = node[2];
60238
+ if (options2 !== void 0 && !Array.isArray(options2) && typeof options2 === "object" && options2 !== null) {
60239
+ const include = options2["include"];
60097
60240
  if (Array.isArray(include)) {
60098
60241
  for (const item of include) {
60099
60242
  if (typeof item === "string") addEntityRef(target, item);
@@ -60184,15 +60327,19 @@ function deriveExpectations(schema, orbitalName) {
60184
60327
  ...shape.length > 0 ? { shape } : {}
60185
60328
  });
60186
60329
  }
60330
+ for (const path of [...pageRefs].sort()) {
60331
+ expectations.push({ kind: "page", path });
60332
+ }
60187
60333
  for (const name of [...entityRefs.keys()].sort()) {
60188
60334
  const referenced = entityRefs.get(name) ?? /* @__PURE__ */ new Set();
60189
60335
  const provider = defByEntity.get(name);
60190
60336
  const shape = [];
60337
+ const contributed = contributedNames.has(name);
60191
60338
  for (const field of [...referenced].sort()) {
60192
60339
  const declared = provider?.fields.find((f) => f.name === field);
60193
60340
  if (declared !== void 0) {
60194
60341
  shape.push({ ...declared });
60195
- } else {
60342
+ } else if (!contributed) {
60196
60343
  diagnostics.push({
60197
60344
  kind: "entity-field-not-declared",
60198
60345
  orbital: orbitalName,
@@ -60220,6 +60367,6 @@ function mergeEntityFrame(current, orderedWrites) {
60220
60367
  return next;
60221
60368
  }
60222
60369
 
60223
- 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, COMPONENT_MAPPING, 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, EVENT_CONTRACTS, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpectDeclarationSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, FileValueSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, INTEGRATORS_REGISTRY, 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_REGISTRY, 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, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SheetProjectionSchema, 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, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, containsEntityBinding, containsPayloadBinding, contractFieldName, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, deriveExpectations, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, entityAccessPolicies, entityAccessTable, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, extractPayloadFieldRef, findCompatiblePatterns, findPersonaInRoster, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, idKindOf, idPrefix, inferTsType, insertChildAtPath, integrators_registry_default as integratorsRegistry, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isContentBodyPattern, isContentBodyPatternType, isContentMainWriter, isDestructiveChange, isDrawHostPattern, isDrawablePattern, isEffect, isEmailValue, isEntityAwarePattern, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isFileValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMainSlotRenderUi, 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, isTensorValue, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, isValueInputPattern, ledgerCurName, ledgerRename, ledgerResolveName, mapTensorLastDim, maskSecretConfigValues, mergeEntityFrame, mintId, navigate, navigateBack, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, recommendPatterns, reduceToOwners, ref, registry, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, requiresConfirmation, resolveConfigRefEventName, resolveContentOwners, resolveDefaultViewer, resolvePageContentOwner, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, traitDeclaresConfigForward, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
60370
+ 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, COMPONENT_MAPPING, 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, EVENT_CONTRACTS, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpectDeclarationSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, FileValueSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, INTEGRATORS_REGISTRY, 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_REGISTRY, 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, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SheetProjectionSchema, 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, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, containsEntityBinding, containsPayloadBinding, contractFieldName, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, deriveExpectations, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, entityAccessPolicies, entityAccessTable, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, expectedEntityName, extractPayloadFieldRef, findCompatiblePatterns, findPersonaInRoster, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, idKindOf, idPrefix, inferTsType, insertChildAtPath, integrators_registry_default as integratorsRegistry, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isContentBodyPattern, isContentBodyPatternType, isContentMainWriter, isDestructiveChange, isDrawHostPattern, isDrawablePattern, isEffect, isEmailValue, isEntityAwarePattern, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isFileValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMainSlotRenderUi, 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, isTensorValue, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, isValueInputPattern, ledgerCurName, ledgerRename, ledgerResolveName, mapTensorLastDim, maskSecretConfigValues, mergeEntityFrame, mintId, navigate, navigateBack, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, recommendPatterns, reduceToOwners, ref, registry, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, requiresConfirmation, resolveConfigRefEventName, resolveContentOwners, resolveDefaultViewer, resolvePageContentOwner, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, traitDeclaresConfigForward, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
60224
60371
  //# sourceMappingURL=index.js.map
60225
60372
  //# sourceMappingURL=index.js.map