@almadar/core 10.33.0 → 10.35.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.
@@ -379,6 +379,36 @@
379
379
  }
380
380
  ]
381
381
  },
382
+ "ml": {
383
+ "name": "ml",
384
+ "description": "ML service - model inference on a trained or off-the-shelf checkpoint, reached via a deployed serving orbital",
385
+ "category": "ai",
386
+ "actions": [
387
+ {
388
+ "name": "infer",
389
+ "description": "Run inference against a deployed model checkpoint",
390
+ "params": [
391
+ {
392
+ "name": "model",
393
+ "type": "string",
394
+ "required": true,
395
+ "description": "hf:<id> for off-the-shelf weights, or a masar checkpoint id"
396
+ },
397
+ {
398
+ "name": "input",
399
+ "type": "any",
400
+ "required": true,
401
+ "description": "JSON-safe model input (object, array, or primitive tensor payload)"
402
+ }
403
+ ],
404
+ "responseShape": {
405
+ "output": "object",
406
+ "confidence": "number",
407
+ "violations": "string[]"
408
+ }
409
+ }
410
+ ]
411
+ },
382
412
  "deepagent": {
383
413
  "name": "deepagent",
384
414
  "description": "AI code generation agent with tool use - generates schemas, code, and manages projects",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-07-24T05:10:33.187Z",
3
+ "exportedAt": "2026-07-25T06:32:53.902Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -16320,6 +16320,63 @@
16320
16320
  "auto"
16321
16321
  ],
16322
16322
  "default": "auto"
16323
+ },
16324
+ "titleField": {
16325
+ "types": [
16326
+ "string"
16327
+ ],
16328
+ "description": "Row field holding the chip label. Defaults to `title`. Lets a host bound to its own entity name the column instead of being forced to rename its fields to this grid's contract (same accessor idiom as `DataList`'s `senderField` / `DataGrid`'s `imageField`).",
16329
+ "default": "title"
16330
+ },
16331
+ "startField": {
16332
+ "types": [
16333
+ "string"
16334
+ ],
16335
+ "description": "Row field holding the start timestamp (ISO or epoch). Defaults to `startTime`.",
16336
+ "default": "startTime"
16337
+ },
16338
+ "colorField": {
16339
+ "types": [
16340
+ "string"
16341
+ ],
16342
+ "description": "Row field holding the chip's Tailwind colour class. Defaults to `color`.",
16343
+ "default": "color"
16344
+ },
16345
+ "children": {
16346
+ "types": [
16347
+ "function"
16348
+ ],
16349
+ "description": "Render function for one event chip's content. Receives the row and its index in the materialised events array. The grid keeps ownership of placement, colour and the click target; this replaces only what is drawn INSIDE the chip, so a host can show a time + instructor + badge stack instead of the default single label.",
16350
+ "kind": "callback",
16351
+ "callbackArgs": [
16352
+ {
16353
+ "name": "item",
16354
+ "type": "object"
16355
+ },
16356
+ {
16357
+ "name": "index",
16358
+ "type": "number"
16359
+ }
16360
+ ],
16361
+ "renderCallback": true
16362
+ },
16363
+ "renderItem": {
16364
+ "types": [
16365
+ "function"
16366
+ ],
16367
+ "description": "Per-event render function (schema-level alias for the children render prop). In `.orb`: `[\"fn\", \"item\", { pattern tree with @item.field bindings }]`. In `.lolo`: `renderItem: (fn item <Component …={@item.field}/>)` — the same contract `data-list` / `data-grid` / `carousel` already use.",
16368
+ "kind": "callback",
16369
+ "callbackArgs": [
16370
+ {
16371
+ "name": "item",
16372
+ "type": "object"
16373
+ },
16374
+ {
16375
+ "name": "index",
16376
+ "type": "number"
16377
+ }
16378
+ ],
16379
+ "renderCallback": true
16323
16380
  }
16324
16381
  }
16325
16382
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-07-24T05:10:33.187Z",
3
+ "exportedAt": "2026-07-25T06:32:53.902Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -16320,6 +16320,63 @@
16320
16320
  "auto"
16321
16321
  ],
16322
16322
  "default": "auto"
16323
+ },
16324
+ "titleField": {
16325
+ "types": [
16326
+ "string"
16327
+ ],
16328
+ "description": "Row field holding the chip label. Defaults to `title`. Lets a host bound to its own entity name the column instead of being forced to rename its fields to this grid's contract (same accessor idiom as `DataList`'s `senderField` / `DataGrid`'s `imageField`).",
16329
+ "default": "title"
16330
+ },
16331
+ "startField": {
16332
+ "types": [
16333
+ "string"
16334
+ ],
16335
+ "description": "Row field holding the start timestamp (ISO or epoch). Defaults to `startTime`.",
16336
+ "default": "startTime"
16337
+ },
16338
+ "colorField": {
16339
+ "types": [
16340
+ "string"
16341
+ ],
16342
+ "description": "Row field holding the chip's Tailwind colour class. Defaults to `color`.",
16343
+ "default": "color"
16344
+ },
16345
+ "children": {
16346
+ "types": [
16347
+ "function"
16348
+ ],
16349
+ "description": "Render function for one event chip's content. Receives the row and its index in the materialised events array. The grid keeps ownership of placement, colour and the click target; this replaces only what is drawn INSIDE the chip, so a host can show a time + instructor + badge stack instead of the default single label.",
16350
+ "kind": "callback",
16351
+ "callbackArgs": [
16352
+ {
16353
+ "name": "item",
16354
+ "type": "object"
16355
+ },
16356
+ {
16357
+ "name": "index",
16358
+ "type": "number"
16359
+ }
16360
+ ],
16361
+ "renderCallback": true
16362
+ },
16363
+ "renderItem": {
16364
+ "types": [
16365
+ "function"
16366
+ ],
16367
+ "description": "Per-event render function (schema-level alias for the children render prop). In `.orb`: `[\"fn\", \"item\", { pattern tree with @item.field bindings }]`. In `.lolo`: `renderItem: (fn item <Component …={@item.field}/>)` — the same contract `data-list` / `data-grid` / `carousel` already use.",
16368
+ "kind": "callback",
16369
+ "callbackArgs": [
16370
+ {
16371
+ "name": "item",
16372
+ "type": "object"
16373
+ },
16374
+ {
16375
+ "name": "index",
16376
+ "type": "number"
16377
+ }
16378
+ ],
16379
+ "renderCallback": true
16323
16380
  }
16324
16381
  }
16325
16382
  },
@@ -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-D9WY6JgN.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-Cd6ibbZc.js';
2
2
  import { E as Expression, S as SExpr } from './expression-DpAj1RzP.js';
3
3
  import { z } from 'zod';
4
4
 
@@ -886,8 +886,13 @@ type TraitEventListener = {
886
886
  * - 'external': Listen to events from other orbitals
887
887
  */
888
888
  scope?: EventScope;
889
- /** Map event payload fields to transition payload */
890
- payloadMapping?: Record<string, string>;
889
+ /**
890
+ * `with { ... }` payload rewrite: `{ targetField: SExpr }`. Each value is a
891
+ * full s-expression evaluated against the source payload — a `@payload.<field>`
892
+ * read, a literal, or an operator list. Apply it with
893
+ * `applyListenPayloadMapping`.
894
+ */
895
+ payloadMapping?: Record<string, SExpr>;
891
896
  /**
892
897
  * Source scoping (see `ListenSource`). Undefined when the listen entry is
893
898
  * a local payload declaration rather than a bus subscription.
@@ -904,7 +909,7 @@ declare const TraitEventListenerSchema: z.ZodObject<{
904
909
  tier: z.ZodOptional<z.ZodString>;
905
910
  guard: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
906
911
  scope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
907
- payloadMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
912
+ payloadMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SExpr, z.ZodTypeDef, SExpr>>>;
908
913
  source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
909
914
  kind: z.ZodLiteral<"any">;
910
915
  }, "strip", z.ZodTypeAny, {
@@ -965,7 +970,7 @@ declare const TraitEventListenerSchema: z.ZodObject<{
965
970
  eventId?: EventId | undefined;
966
971
  guard?: SExpr | undefined;
967
972
  triggersId?: EventId | undefined;
968
- payloadMapping?: Record<string, string> | undefined;
973
+ payloadMapping?: Record<string, SExpr> | undefined;
969
974
  }, {
970
975
  event: string;
971
976
  triggers: string;
@@ -989,7 +994,7 @@ declare const TraitEventListenerSchema: z.ZodObject<{
989
994
  eventId?: string | undefined;
990
995
  guard?: SExpr | undefined;
991
996
  triggersId?: string | undefined;
992
- payloadMapping?: Record<string, string> | undefined;
997
+ payloadMapping?: Record<string, SExpr> | undefined;
993
998
  }>;
994
999
  /**
995
1000
  * Field required by a trait from its linkedEntity
@@ -1705,7 +1710,7 @@ declare const TraitSchema: z.ZodObject<{
1705
1710
  tier: z.ZodOptional<z.ZodString>;
1706
1711
  guard: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
1707
1712
  scope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
1708
- payloadMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1713
+ payloadMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SExpr, z.ZodTypeDef, SExpr>>>;
1709
1714
  source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1710
1715
  kind: z.ZodLiteral<"any">;
1711
1716
  }, "strip", z.ZodTypeAny, {
@@ -1766,7 +1771,7 @@ declare const TraitSchema: z.ZodObject<{
1766
1771
  eventId?: EventId | undefined;
1767
1772
  guard?: SExpr | undefined;
1768
1773
  triggersId?: EventId | undefined;
1769
- payloadMapping?: Record<string, string> | undefined;
1774
+ payloadMapping?: Record<string, SExpr> | undefined;
1770
1775
  }, {
1771
1776
  event: string;
1772
1777
  triggers: string;
@@ -1790,7 +1795,7 @@ declare const TraitSchema: z.ZodObject<{
1790
1795
  eventId?: string | undefined;
1791
1796
  guard?: SExpr | undefined;
1792
1797
  triggersId?: string | undefined;
1793
- payloadMapping?: Record<string, string> | undefined;
1798
+ payloadMapping?: Record<string, SExpr> | undefined;
1794
1799
  }>, "many">>;
1795
1800
  ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1796
1801
  config: z.ZodOptional<z.ZodType<Readonly<Record<string, ConfigFieldDeclaration>>, z.ZodTypeDef, Readonly<Record<string, ConfigFieldDeclaration>>>>;
@@ -1973,7 +1978,7 @@ declare const TraitSchema: z.ZodObject<{
1973
1978
  eventId?: EventId | undefined;
1974
1979
  guard?: SExpr | undefined;
1975
1980
  triggersId?: EventId | undefined;
1976
- payloadMapping?: Record<string, string> | undefined;
1981
+ payloadMapping?: Record<string, SExpr> | undefined;
1977
1982
  }[] | undefined;
1978
1983
  description_visual_prompt?: string | undefined;
1979
1984
  entityRebindable?: boolean | undefined;
@@ -2119,7 +2124,7 @@ declare const TraitSchema: z.ZodObject<{
2119
2124
  eventId?: string | undefined;
2120
2125
  guard?: SExpr | undefined;
2121
2126
  triggersId?: string | undefined;
2122
- payloadMapping?: Record<string, string> | undefined;
2127
+ payloadMapping?: Record<string, SExpr> | undefined;
2123
2128
  }[] | undefined;
2124
2129
  description_visual_prompt?: string | undefined;
2125
2130
  entityRebindable?: boolean | undefined;
@@ -2509,7 +2514,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
2509
2514
  tier: z.ZodOptional<z.ZodString>;
2510
2515
  guard: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
2511
2516
  scope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
2512
- payloadMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2517
+ payloadMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SExpr, z.ZodTypeDef, SExpr>>>;
2513
2518
  source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2514
2519
  kind: z.ZodLiteral<"any">;
2515
2520
  }, "strip", z.ZodTypeAny, {
@@ -2570,7 +2575,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
2570
2575
  eventId?: EventId | undefined;
2571
2576
  guard?: SExpr | undefined;
2572
2577
  triggersId?: EventId | undefined;
2573
- payloadMapping?: Record<string, string> | undefined;
2578
+ payloadMapping?: Record<string, SExpr> | undefined;
2574
2579
  }, {
2575
2580
  event: string;
2576
2581
  triggers: string;
@@ -2594,7 +2599,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
2594
2599
  eventId?: string | undefined;
2595
2600
  guard?: SExpr | undefined;
2596
2601
  triggersId?: string | undefined;
2597
- payloadMapping?: Record<string, string> | undefined;
2602
+ payloadMapping?: Record<string, SExpr> | undefined;
2598
2603
  }>, "many">>;
2599
2604
  ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2600
2605
  config: z.ZodOptional<z.ZodType<Readonly<Record<string, ConfigFieldDeclaration>>, z.ZodTypeDef, Readonly<Record<string, ConfigFieldDeclaration>>>>;
@@ -2777,7 +2782,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
2777
2782
  eventId?: EventId | undefined;
2778
2783
  guard?: SExpr | undefined;
2779
2784
  triggersId?: EventId | undefined;
2780
- payloadMapping?: Record<string, string> | undefined;
2785
+ payloadMapping?: Record<string, SExpr> | undefined;
2781
2786
  }[] | undefined;
2782
2787
  description_visual_prompt?: string | undefined;
2783
2788
  entityRebindable?: boolean | undefined;
@@ -2923,7 +2928,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
2923
2928
  eventId?: string | undefined;
2924
2929
  guard?: SExpr | undefined;
2925
2930
  triggersId?: string | undefined;
2926
- payloadMapping?: Record<string, string> | undefined;
2931
+ payloadMapping?: Record<string, SExpr> | undefined;
2927
2932
  }[] | undefined;
2928
2933
  description_visual_prompt?: string | undefined;
2929
2934
  entityRebindable?: boolean | undefined;
@@ -3383,7 +3388,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
3383
3388
  tier: z.ZodOptional<z.ZodString>;
3384
3389
  guard: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
3385
3390
  scope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
3386
- payloadMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3391
+ payloadMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SExpr, z.ZodTypeDef, SExpr>>>;
3387
3392
  source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3388
3393
  kind: z.ZodLiteral<"any">;
3389
3394
  }, "strip", z.ZodTypeAny, {
@@ -3444,7 +3449,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
3444
3449
  eventId?: EventId | undefined;
3445
3450
  guard?: SExpr | undefined;
3446
3451
  triggersId?: EventId | undefined;
3447
- payloadMapping?: Record<string, string> | undefined;
3452
+ payloadMapping?: Record<string, SExpr> | undefined;
3448
3453
  }, {
3449
3454
  event: string;
3450
3455
  triggers: string;
@@ -3468,7 +3473,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
3468
3473
  eventId?: string | undefined;
3469
3474
  guard?: SExpr | undefined;
3470
3475
  triggersId?: string | undefined;
3471
- payloadMapping?: Record<string, string> | undefined;
3476
+ payloadMapping?: Record<string, SExpr> | undefined;
3472
3477
  }>, "many">>;
3473
3478
  ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3474
3479
  config: z.ZodOptional<z.ZodType<Readonly<Record<string, ConfigFieldDeclaration>>, z.ZodTypeDef, Readonly<Record<string, ConfigFieldDeclaration>>>>;
@@ -3651,7 +3656,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
3651
3656
  eventId?: EventId | undefined;
3652
3657
  guard?: SExpr | undefined;
3653
3658
  triggersId?: EventId | undefined;
3654
- payloadMapping?: Record<string, string> | undefined;
3659
+ payloadMapping?: Record<string, SExpr> | undefined;
3655
3660
  }[] | undefined;
3656
3661
  description_visual_prompt?: string | undefined;
3657
3662
  entityRebindable?: boolean | undefined;
@@ -3797,7 +3802,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
3797
3802
  eventId?: string | undefined;
3798
3803
  guard?: SExpr | undefined;
3799
3804
  triggersId?: string | undefined;
3800
- payloadMapping?: Record<string, string> | undefined;
3805
+ payloadMapping?: Record<string, SExpr> | undefined;
3801
3806
  }[] | undefined;
3802
3807
  description_visual_prompt?: string | undefined;
3803
3808
  entityRebindable?: boolean | undefined;
@@ -1,13 +1,13 @@
1
- import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-DFOj9_N8.js';
2
- export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, E as DesignPreferencesSchema, F as DesignTokens, G as DesignTokensInput, H as DesignTokensSchema, I as DomainCategory, J as DomainCategorySchema, L as DomainContextInput, N as DomainContextSchema, P as DomainVocabulary, Q as DomainVocabularySchema, R as ElevationSlice, S as ElevationSliceSchema, T as ElevationTokens, U as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, X as EntityRef, Y as EntityRefSchema, Z as EntityRefStringSchema, _ as EntitySemanticRole, $ as EntitySemanticRoleSchema, a0 as EventListener, a1 as EventListenerSchema, a2 as EventSemanticRole, a3 as EventSemanticRoleSchema, a4 as EventSource, a5 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, ar as MotionDurationKey, as as MotionDurationKeySchema, at as MotionDurationPalette, au as MotionDurationPaletteSchema, av as MotionEasingKey, aw as MotionEasingKeySchema, ax as MotionEasingPalette, ay as MotionEasingPaletteSchema, az as MotionIntent, aA as MotionIntentMap, aB as MotionIntentMapSchema, aC as MotionIntentSchema, aD as MotionSlice, aE as MotionSliceSchema, aF as MotionTokens, aG as MotionTokensSchema, aH as NodeClassification, aI as NodeClassificationSchema, aJ as OrbitalConfig, aK as OrbitalConfigInput, aL as OrbitalConfigSchema, aM as OrbitalDefinitionSchema, aN as OrbitalInput, aO as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalSchemaInput, aU as OrbitalSchemaSchema, aV as OrbitalSchemaWithTraits, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, b5 as PageTraitRefSchema, b6 as RelatedLink, b7 as RelatedLinkSchema, b8 as SchemaMetadata, b9 as SchemaMetadataSchema, ba as SkinSpec, bb as SkinSpecSchema, bc as SpacingScale, bd as SpacingScaleSchema, be as StateSemanticRole, bf as StateSemanticRoleSchema, bg as SuggestedGuard, bh as SuggestedGuardSchema, bj as ThemeDefinitionSchema, bk as ThemeRef, bl as ThemeRefSchema, bm as ThemeRefStringSchema, bn as ThemeTokens, bo as ThemeTokensSchema, bp as ThemeVariant, bq as ThemeVariantSchema, br as TypeIntent, bs as TypeIntentMap, bt as TypeIntentMapSchema, bu as TypeIntentSchema, bv as TypeScale, bw as TypeScaleEntry, bx as TypeScaleEntrySchema, by as TypeScaleSchema, bz as TypeScaleTokens, bA as TypeScaleTokensSchema, bB as TypeSizeKey, bC as TypeSizeKeySchema, bD as TypeSlice, bE as TypeSliceSchema, bF as TypeSlot, bG as TypeSlotSchema, bH as TypeWeight, bI as TypeWeightSchema, bJ as UXHints, bK as UXHintsSchema, bL as UseDeclaration, bM as UseDeclarationSchema, bN as UserPersona, bO as UserPersonaInput, bP as UserPersonaSchema, bQ as ViewType, bR as ViewTypeSchema, bV as isEntityCall, bW as isEntityReference, bX as isEntityReferenceAny, bY as isImportedTraitRef, bZ as isOrbitalDefinition, b_ as isPageReference, b$ as isPageReferenceObject, c0 as isPageReferenceString, c1 as isThemeReference, c2 as parseEntityRef, c3 as parseImportedTraitRef, c4 as parseOrbitalSchema, c5 as parsePageRef, c6 as safeParseOrbitalSchema } from '../builders-DFOj9_N8.js';
3
- import { E as EntityField, a as EntityPersistence, bn as ServiceParams, F as FieldValue, J as JsonValue, e as Entity, g as EntityRow, A as AnyPatternConfig, O as OrbitalId, T as TraitId, b as EventId, aw as JsonObject, f as ToolArgs, c as Effect } from '../effect-D9WY6JgN.js';
4
- export { h as ANIMATION_NAMES, i as ASSET_ASPECTS, j as ASSET_DIMENSIONS, k as AgentEffect, l as AnimationDef, m as AnimationDefInput, n as AnimationDefSchema, o as AnimationName, p as AnimationNameSchema, q as ApplicationEffect, r as ArrayEntityField, s as Asset, t as AssetAspect, u as AssetAspectSchema, v as AssetCatalog, w as AssetCatalogEntry, x as AssetCatalogEntryInput, y as AssetCatalogEntrySchema, z as AssetCatalogSchema, B as AssetDimension, C as AssetDimensionSchema, D as AssetSchema, G as AssetUrl, H as AtomicEffect, I as BehaviorEffect, K as CAMERA_MODES, L as CallServiceConfig, M as CallServiceEffect, N as Camera, Q as CameraMode, S as CameraModeSchema, U as CameraSchema, V as CheckpointLoadEffect, W as CheckpointSaveEffect, X as ComposeEffect, Y as DerefEffect, Z as DespawnEffect, _ as DoEffect, $ as ENTITY_ROLES, a0 as EffectInput, a1 as EffectSchema, a2 as EmitConfig, a3 as EmitEffect, a4 as EntityData, a5 as EntityFieldInput, a6 as EntityFieldSchema, d as EntityId, a7 as EntityIdSchema, a8 as EntityPersistenceSchema, a9 as EntityRole, aa as EntityRoleSchema, ab as EntitySchema, ac as EntityWith, ad as EnumEntityField, ae as EvaluateConfig, af as EvaluateEffect, ag as EventIdSchema, ah as FetchEffect, ai as FetchOptions, aj as FetchResult, ak as Field, al as FieldFormat, am as FieldFormatSchema, an as FieldSchema, ao as FieldType, ap as FieldTypeSchema, aq as ForwardConfig, ar as ForwardEffect, as as IdForKind, at as IdKind, au as IdentityLedger, av as IdentityLedgerSchema, ax as LedgerEntry, ay as LedgerEntrySchema, az as LedgerKind, aA as LedgerKindSchema, aB as LlmEffect, aC as LogEffect, aD as McpServiceDef, aE as McpServiceDefSchema, aF as MemoryEffect, aG as NavigateEffect, aH as NnConfig, aI as NnLayer, aJ as NotifyEffect, aK as OrbitalEntity, aL as OrbitalEntityInput, aM as OrbitalEntitySchema, aN as OrbitalIdSchema, aO as OsEffect, aP as PATTERN_TYPES, P as PageId, aQ as PageIdSchema, aR as PaletteEntryId, aS as PaletteEntryIdSchema, aT as PatternConfig, aW as PatternType, aX as PersistData, aY as PersistEffect, aZ as PersistEmitConfig, a_ as RefEffect, R as RelationConfig, a$ as RelationConfigSchema, b0 as RelationEntityField, b1 as RenderBinding, b2 as RenderChildrenMap, b3 as RenderItemLambda, b4 as RenderUIEffect, b5 as RenderUINode, b6 as ResolvedPatternProps, b7 as RestAuthConfig, b8 as RestAuthConfigSchema, b9 as RestServiceDef, ba as RestServiceDefSchema, bb as SERVICE_TYPES, bc as SPRITE_DIRECTIONS, bd as ScalarEntityField, be as ScenePos, bf as ScenePosSchema, bg as SemanticAssetRef, bh as SemanticAssetRefInput, bi as SemanticAssetRefSchema, bj as ServiceDefinition, bk as ServiceDefinitionSchema, bl as ServiceId, bm as ServiceIdSchema, bo as ServiceParamsValue, bp 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, bW as UISlot, bX as UISlotSchema, bY as UI_SLOTS, bZ as VISUAL_STYLES, b_ as ValidateEffect, b$ as VisualStyle, c0 as VisualStyleSchema, c1 as WatchEffect, c2 as WatchOptions, c3 as asEntityId, c4 as asEventId, c5 as asOrbitalId, c6 as asPageId, c7 as asPaletteEntryId, c8 as asServiceId, c9 as asThemeId, ca as asTraitId, cb as atomic, cc as callService, cd as createAssetKey, ce as deref, cf as deriveCollection, cg as despawn, ch as doEffects, ci as emit, cj as findService, ck as getDefaultAnimationsForRole, cl as getServiceNames, cm as hasService, cn as idKindOf, co as idPrefix, cp as isEffect, cq as isEntityId, cr as isEventId, cs as isFieldValue, ct as isJsonArray, cu as isJsonObject, cv as isJsonPrimitive, cw as isMcpService, cx as isOrbitalId, cy as isPageId, cz as isPaletteEntryId, cA as isRestService, cB as isRuntimeEntity, cC as isSExprEffect, cD as isServiceId, cE as isServiceReference, cF as isServiceReferenceObject, cG as isSocketService, cH as isThemeId, cI as isTraitId, cJ as isValidPatternType, cK as ledgerCurName, cL as ledgerRename, cM as ledgerResolveName, cN as mintId, cO as navigate, cP as notify, cQ as parseAssetKey, cR as parseServiceRef, cS as persist, cT as persistenceModeAllowsOverrides, cU as ref, cV as renderUI, cW as set, cX as spawn, cY as swap, cZ as validateAssetAnimations, c_ as watch } from '../effect-D9WY6JgN.js';
1
+ import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-CBL9rED-.js';
2
+ export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, E as DesignPreferencesSchema, F as DesignTokens, G as DesignTokensInput, H as DesignTokensSchema, I as DomainCategory, J as DomainCategorySchema, L as DomainContextInput, N as DomainContextSchema, P as DomainVocabulary, Q as DomainVocabularySchema, R as ElevationSlice, S as ElevationSliceSchema, T as ElevationTokens, U as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, X as EntityRef, Y as EntityRefSchema, Z as EntityRefStringSchema, _ as EntitySemanticRole, $ as EntitySemanticRoleSchema, a0 as EventListener, a1 as EventListenerSchema, a2 as EventSemanticRole, a3 as EventSemanticRoleSchema, a4 as EventSource, a5 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, ar as MotionDurationKey, as as MotionDurationKeySchema, at as MotionDurationPalette, au as MotionDurationPaletteSchema, av as MotionEasingKey, aw as MotionEasingKeySchema, ax as MotionEasingPalette, ay as MotionEasingPaletteSchema, az as MotionIntent, aA as MotionIntentMap, aB as MotionIntentMapSchema, aC as MotionIntentSchema, aD as MotionSlice, aE as MotionSliceSchema, aF as MotionTokens, aG as MotionTokensSchema, aH as NodeClassification, aI as NodeClassificationSchema, aJ as OrbitalConfig, aK as OrbitalConfigInput, aL as OrbitalConfigSchema, aM as OrbitalDefinitionSchema, aN as OrbitalInput, aO as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalSchemaInput, aU as OrbitalSchemaSchema, aV as OrbitalSchemaWithTraits, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, b5 as PageTraitRefSchema, b6 as RelatedLink, b7 as RelatedLinkSchema, b8 as SchemaMetadata, b9 as SchemaMetadataSchema, ba as SkinSpec, bb as SkinSpecSchema, bc as SpacingScale, bd as SpacingScaleSchema, be as StateSemanticRole, bf as StateSemanticRoleSchema, bg as SuggestedGuard, bh as SuggestedGuardSchema, bj as ThemeDefinitionSchema, bk as ThemeRef, bl as ThemeRefSchema, bm as ThemeRefStringSchema, bn as ThemeTokens, bo as ThemeTokensSchema, bp as ThemeVariant, bq as ThemeVariantSchema, br as TypeIntent, bs as TypeIntentMap, bt as TypeIntentMapSchema, bu as TypeIntentSchema, bv as TypeScale, bw as TypeScaleEntry, bx as TypeScaleEntrySchema, by as TypeScaleSchema, bz as TypeScaleTokens, bA as TypeScaleTokensSchema, bB as TypeSizeKey, bC as TypeSizeKeySchema, bD as TypeSlice, bE as TypeSliceSchema, bF as TypeSlot, bG as TypeSlotSchema, bH as TypeWeight, bI as TypeWeightSchema, bJ as UXHints, bK as UXHintsSchema, bL as UseDeclaration, bM as UseDeclarationSchema, bN as UserPersona, bO as UserPersonaInput, bP as UserPersonaSchema, bQ as ViewType, bR as ViewTypeSchema, bV as isEntityCall, bW as isEntityReference, bX as isEntityReferenceAny, bY as isImportedTraitRef, bZ as isOrbitalDefinition, b_ as isPageReference, b$ as isPageReferenceObject, c0 as isPageReferenceString, c1 as isThemeReference, c2 as parseEntityRef, c3 as parseImportedTraitRef, c4 as parseOrbitalSchema, c5 as parsePageRef, c6 as safeParseOrbitalSchema } from '../builders-CBL9rED-.js';
3
+ import { E as EntityField, a as EntityPersistence, bn as ServiceParams, F as FieldValue, J as JsonValue, e as Entity, g as EntityRow, A as AnyPatternConfig, O as OrbitalId, T as TraitId, b as EventId, aw as JsonObject, f as ToolArgs, c as Effect } from '../effect-Cd6ibbZc.js';
4
+ export { h as ANIMATION_NAMES, i as ASSET_ASPECTS, j as ASSET_DIMENSIONS, k as AgentEffect, l as AnimationDef, m as AnimationDefInput, n as AnimationDefSchema, o as AnimationName, p as AnimationNameSchema, q as ApplicationEffect, r as ArrayEntityField, s as Asset, t as AssetAspect, u as AssetAspectSchema, v as AssetCatalog, w as AssetCatalogEntry, x as AssetCatalogEntryInput, y as AssetCatalogEntrySchema, z as AssetCatalogSchema, B as AssetDimension, C as AssetDimensionSchema, D as AssetSchema, G as AssetUrl, H as AtomicEffect, I as BehaviorEffect, K as CAMERA_MODES, L as CallServiceConfig, M as CallServiceEffect, N as Camera, Q as CameraMode, S as CameraModeSchema, U as CameraSchema, V as CheckpointLoadEffect, W as CheckpointSaveEffect, X as ComposeEffect, Y as DerefEffect, Z as DespawnEffect, _ as DoEffect, $ as ENTITY_ROLES, a0 as EffectInput, a1 as EffectSchema, a2 as EmitConfig, a3 as EmitEffect, a4 as EntityData, a5 as EntityFieldInput, a6 as EntityFieldSchema, d as EntityId, a7 as EntityIdSchema, a8 as EntityPersistenceSchema, a9 as EntityRole, aa as EntityRoleSchema, ab as EntitySchema, ac as EntityWith, ad as EnumEntityField, ae as EvaluateConfig, af as EvaluateEffect, ag as EventIdSchema, ah as FetchEffect, ai as FetchOptions, aj as FetchResult, ak as Field, al as FieldFormat, am as FieldFormatSchema, an as FieldSchema, ao as FieldType, ap as FieldTypeSchema, aq as ForwardConfig, ar as ForwardEffect, as as IdForKind, at as IdKind, au as IdentityLedger, av as IdentityLedgerSchema, ax as LedgerEntry, ay as LedgerEntrySchema, az as LedgerKind, aA as LedgerKindSchema, aB as LlmEffect, aC as LogEffect, aD as McpServiceDef, aE as McpServiceDefSchema, aF as MemoryEffect, aG as NavigateEffect, aH as NnConfig, aI as NnLayer, aJ as NotifyEffect, aK as OrbitalEntity, aL as OrbitalEntityInput, aM as OrbitalEntitySchema, aN as OrbitalIdSchema, aO as OsEffect, aP as PATTERN_TYPES, P as PageId, aQ as PageIdSchema, aR as PaletteEntryId, aS as PaletteEntryIdSchema, aT as PatternConfig, aW as PatternType, aX as PersistData, aY as PersistEffect, aZ as PersistEmitConfig, a_ as RefEffect, R as RelationConfig, a$ as RelationConfigSchema, b0 as RelationEntityField, b1 as RenderBinding, b2 as RenderChildrenMap, b3 as RenderItemLambda, b4 as RenderUIEffect, b5 as RenderUINode, b6 as ResolvedPatternProps, b7 as RestAuthConfig, b8 as RestAuthConfigSchema, b9 as RestServiceDef, ba as RestServiceDefSchema, bb as SERVICE_TYPES, bc as SPRITE_DIRECTIONS, bd as ScalarEntityField, be as ScenePos, bf as ScenePosSchema, bg as SemanticAssetRef, bh as SemanticAssetRefInput, bi as SemanticAssetRefSchema, bj as ServiceDefinition, bk as ServiceDefinitionSchema, bl as ServiceId, bm as ServiceIdSchema, bo as ServiceParamsValue, bp 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, bW as UISlot, bX as UISlotSchema, bY as UI_SLOTS, bZ as VISUAL_STYLES, b_ as ValidateEffect, b$ as VisualStyle, c0 as VisualStyleSchema, c1 as WatchEffect, c2 as WatchOptions, c3 as asEntityId, c4 as asEventId, c5 as asOrbitalId, c6 as asPageId, c7 as asPaletteEntryId, c8 as asServiceId, c9 as asThemeId, ca as asTraitId, cb as atomic, cc as callService, cd as createAssetKey, ce as deref, cf as deriveCollection, cg as despawn, ch as doEffects, ci as emit, cj as findService, ck as getDefaultAnimationsForRole, cl as getServiceNames, cm as hasService, cn as idKindOf, co as idPrefix, cp as isEffect, cq as isEntityId, cr as isEventId, cs as isFieldValue, ct as isJsonArray, cu as isJsonObject, cv as isJsonPrimitive, cw as isMcpService, cx as isOrbitalId, cy as isPageId, cz as isPaletteEntryId, cA as isRestService, cB as isRuntimeEntity, cC as isSExprEffect, cD as isServiceId, cE as isServiceReference, cF as isServiceReferenceObject, cG as isSocketService, cH as isThemeId, cI as isTraitId, cJ as isValidPatternType, cK as ledgerCurName, cL as ledgerRename, cM as ledgerResolveName, cN as mintId, cO as navigate, cP as notify, cQ as parseAssetKey, cR as parseServiceRef, cS as persist, cT as persistenceModeAllowsOverrides, cU as ref, cV as renderUI, cW as set, cX as spawn, cY as swap, cZ as validateAssetAnimations, c_ as watch } from '../effect-Cd6ibbZc.js';
5
5
  import { d as EventPayloadValue, a as EventPayload, L as LogMeta, S as SExpr, c as EvalContext } from '../expression-DpAj1RzP.js';
6
6
  export { C as CORE_BINDINGS, b as CoreBinding, E as Expression, e as ExpressionInput, f as ExpressionSchema, g as LogMetaValue, P as ParsedBinding, h as SExprAtom, i as SExprAtomSchema, j as SExprInput, k as SExprSchema, l as collectBindings, m as getArgs, n as getOperator, o as isBinding, p as isEventPayloadValue, q as isSExpr, r as isSExprAtom, s as isSExprCall, t as isValidBinding, u as parseBinding, v as sexpr, w as walkSExpr } from '../expression-DpAj1RzP.js';
7
7
  import { z } from 'zod';
8
- import { a as TraitReference, c as Trait, L as ListenSource, D as DeclaredTraitConfig, d as TraitConfig, f as ConfigFieldDeclaration, S as State, aa as Transition, l as Event, U as TraitConfigValue, K as TraitCategory, an as TraitScope } from '../trait-6_gs33fs.js';
9
- export { e as CONFIG_REF_EVENT_PATTERN, C as CallSiteConfig, b as CallSiteConfigEntry, g as ConfigFieldDeclarationSchema, h as ConfigFieldItemsDeclaration, i as ConfigRefEventError, j as DeclaredTraitConfigSchema, E as EntityFieldContract, k as EntityFieldContractSchema, m as EventInput, n as EventPayloadField, o as EventPayloadFieldSchema, p as EventSchema, q as EventScope, r as EventScopeSchema, G as Guard, s as GuardInput, t as GuardSchema, u as ListenSourceSchema, O as OrbitalTraitRef, v as OrbitalTraitRefSchema, P as PayloadField, w as PayloadFieldSchema, x as PresentationType, R as REFERENCE_CONFIG_TYPES, y as ReferenceConfigType, z as RequiredField, A as RequiredFieldSchema, B as StateInput, F as StateMachine, H as StateMachineInput, I as StateMachineSchema, J as StateSchema, M as TraitCategorySchema, N as TraitConfigObject, Q as TraitConfigSchema, V as TraitConfigValueSchema, W as TraitDataEntity, X as TraitDataEntitySchema, Y as TraitEntityField, Z as TraitEntityFieldSchema, _ as TraitEventContract, $ as TraitEventContractSchema, T as TraitEventListener, a0 as TraitEventListenerSchema, a1 as TraitInput, a2 as TraitRef, a3 as TraitRefSchema, a4 as TraitReferenceInput, a5 as TraitReferenceSchema, a6 as TraitSchema, a7 as TraitTick, a8 as TraitTickSchema, a9 as TraitUIBinding, ab as TransitionInput, ac as TransitionSchema, ad as configRefEventKnob, ae as getTraitConfig, af as getTraitName, ag as isCallSiteConfigDeclaration, ah as isCircuitEvent, ai as isInlineTrait, aj as isReferenceConfigType, ak as normalizeCallSiteConfigToValues, al as normalizeTraitRef, am as resolveConfigRefEventName } from '../trait-6_gs33fs.js';
10
- import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-CeGT3YB1.js';
8
+ import { a as TraitReference, c as Trait, L as ListenSource, D as DeclaredTraitConfig, d as TraitConfig, f as ConfigFieldDeclaration, S as State, aa as Transition, l as Event, U as TraitConfigValue, K as TraitCategory, an as TraitScope } from '../trait-X5mQAMtW.js';
9
+ export { e as CONFIG_REF_EVENT_PATTERN, C as CallSiteConfig, b as CallSiteConfigEntry, g as ConfigFieldDeclarationSchema, h as ConfigFieldItemsDeclaration, i as ConfigRefEventError, j as DeclaredTraitConfigSchema, E as EntityFieldContract, k as EntityFieldContractSchema, m as EventInput, n as EventPayloadField, o as EventPayloadFieldSchema, p as EventSchema, q as EventScope, r as EventScopeSchema, G as Guard, s as GuardInput, t as GuardSchema, u as ListenSourceSchema, O as OrbitalTraitRef, v as OrbitalTraitRefSchema, P as PayloadField, w as PayloadFieldSchema, x as PresentationType, R as REFERENCE_CONFIG_TYPES, y as ReferenceConfigType, z as RequiredField, A as RequiredFieldSchema, B as StateInput, F as StateMachine, H as StateMachineInput, I as StateMachineSchema, J as StateSchema, M as TraitCategorySchema, N as TraitConfigObject, Q as TraitConfigSchema, V as TraitConfigValueSchema, W as TraitDataEntity, X as TraitDataEntitySchema, Y as TraitEntityField, Z as TraitEntityFieldSchema, _ as TraitEventContract, $ as TraitEventContractSchema, T as TraitEventListener, a0 as TraitEventListenerSchema, a1 as TraitInput, a2 as TraitRef, a3 as TraitRefSchema, a4 as TraitReferenceInput, a5 as TraitReferenceSchema, a6 as TraitSchema, a7 as TraitTick, a8 as TraitTickSchema, a9 as TraitUIBinding, ab as TransitionInput, ac as TransitionSchema, ad as configRefEventKnob, ae as getTraitConfig, af as getTraitName, ag as isCallSiteConfigDeclaration, ah as isCircuitEvent, ai as isInlineTrait, aj as isReferenceConfigType, ak as normalizeCallSiteConfigToValues, al as normalizeTraitRef, am as resolveConfigRefEventName } from '../trait-X5mQAMtW.js';
10
+ import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-DujRcijG.js';
11
11
 
12
12
  /**
13
13
  * S-Expression Bindings
@@ -1535,8 +1535,8 @@ interface ResolvedTraitListener {
1535
1535
  event: string;
1536
1536
  triggers: string;
1537
1537
  guard?: SExpr;
1538
- /** `with { ... }` payload rewrite: `{ targetField: "@payload.<sourceField>" | literal }` */
1539
- payloadMapping?: Record<string, string>;
1538
+ /** `with { ... }` payload rewrite: `{ targetField: SExpr }`, evaluated against the source payload. */
1539
+ payloadMapping?: Record<string, SExpr>;
1540
1540
  /** Source scoping (see `ListenSource` in types/trait). */
1541
1541
  source?: ListenSource;
1542
1542
  }
@@ -2800,7 +2800,7 @@ interface ParsedListenDeclaration {
2800
2800
  triggers?: string;
2801
2801
  scope?: 'internal' | 'external';
2802
2802
  payloadMapping?: {
2803
- [key: string]: string;
2803
+ [key: string]: SExpr;
2804
2804
  };
2805
2805
  }
2806
2806
  /**
@@ -922,7 +922,7 @@ var TraitEventListenerSchema = z.object({
922
922
  tier: z.string().optional(),
923
923
  guard: ExpressionSchema.optional(),
924
924
  scope: EventScopeSchema.optional(),
925
- payloadMapping: z.record(z.string()).optional(),
925
+ payloadMapping: z.record(SExprSchema).optional(),
926
926
  source: ListenSourceSchema.optional()
927
927
  });
928
928
  var RequiredFieldSchema = z.object({
@@ -1731,7 +1731,7 @@ var ComputedEventListenerSchema = z.object({
1731
1731
  source: EventSourceSchema,
1732
1732
  triggers: z.string().min(1),
1733
1733
  guard: ExpressionSchema.optional(),
1734
- payloadMapping: z.record(z.string()).optional()
1734
+ payloadMapping: z.record(SExprSchema).optional()
1735
1735
  });
1736
1736
  var OrbitalDefinitionSchema = z.object({
1737
1737
  id: OrbitalIdSchema.optional(),