@almadar/core 10.34.0 → 10.36.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 { F as FieldValue, E as EntityField, a as EntityPersistence, bn as ServiceParams, 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
@@ -179,6 +179,111 @@ declare function isTraitFieldRef(value: unknown): value is TraitFieldRef;
179
179
  * JSON or recipe overrides at runtime boundaries. */
180
180
  declare const TraitFieldRefSchema: z.ZodString;
181
181
 
182
+ /**
183
+ * Authenticated user context — what `@user.x` resolves against.
184
+ *
185
+ * The canonical shape for the `user` binding root, shared by both execution
186
+ * paths: the JS interpreter resolves `@user.id` through
187
+ * `EvaluationContext.user`, and the compiled shell emits `user?.id` against the
188
+ * `UserContext` its `@app/shared` re-exports from here.
189
+ *
190
+ * `id` is the field the behavior library reads for ownership scoping and `role`
191
+ * the field it reads for capability gating. Auth providers that name the subject
192
+ * `uid` must normalize at their boundary — {@link normalizeUserContext} does that.
193
+ *
194
+ * @packageDocumentation
195
+ */
196
+
197
+ /** Authenticated user / agent identity behind `@user.x` bindings. */
198
+ interface UserContext {
199
+ /** Stable subject identifier. `@user.id` — the ownership key. */
200
+ id: string;
201
+ /** `@user.email` */
202
+ email?: string;
203
+ /** `@user.name` — display name. */
204
+ name?: string;
205
+ /** `@user.role` — single role string, compared against a policy's allowed list. */
206
+ role?: string;
207
+ /** `@user.permissions` — fine-grained capability strings. */
208
+ permissions?: string[];
209
+ /** Additional provider claims, readable as `@user.<claim>`. */
210
+ [key: string]: FieldValue | undefined;
211
+ }
212
+ /**
213
+ * The identity of an unauthenticated viewer. A resolvable object rather than
214
+ * `undefined` so a role predicate evaluates to a definite `false` instead of
215
+ * comparing against nothing.
216
+ */
217
+ declare const ANONYMOUS_USER: UserContext;
218
+ /** Provider-shaped identity claims, before normalization. */
219
+ interface RawUserClaims {
220
+ id?: string;
221
+ uid?: string;
222
+ email?: string | null;
223
+ name?: string;
224
+ displayName?: string | null;
225
+ role?: string;
226
+ permissions?: string[];
227
+ [key: string]: FieldValue | undefined;
228
+ }
229
+ /**
230
+ * Normalize provider claims into a {@link UserContext}.
231
+ *
232
+ * Firebase (and most OIDC providers) name the subject `uid` and the display name
233
+ * `displayName`, while every `.lolo` behavior reads `@user.id` / `@user.name`.
234
+ * Without this normalization `@user.id` is `undefined` against a fully
235
+ * authenticated request and every ownership filter silently matches no rows.
236
+ * `uid` is preserved so `@user.uid` keeps working.
237
+ *
238
+ * Returns `undefined` for absent or subject-less claims so callers can
239
+ * distinguish "no auth ran" from "anonymous"; use {@link ANONYMOUS_USER} where a
240
+ * definite identity is required.
241
+ */
242
+ declare function normalizeUserContext(claims: RawUserClaims | null | undefined): UserContext | undefined;
243
+ /**
244
+ * Dev persona roster — seeded identities for local runs, previews and mocked
245
+ * sign-in. NOT production data: nothing authenticates against this. It exists so
246
+ * an app can be viewed as each persona its domain implies before real auth is
247
+ * wired.
248
+ *
249
+ * A domain whose end-user role is named differently (`patient`, `student`) adds
250
+ * its own persona at the call site; these are defaults, not an allow-list.
251
+ */
252
+ declare const MOCK_PERSONAS: readonly UserContext[];
253
+ /** Look a dev persona up by id, or by role when no id matches. */
254
+ declare function findMockPersona(idOrRole: string): UserContext | undefined;
255
+ /**
256
+ * Resolve a persona spec — a bare seeded id/role (`member-1`, `member`) or a full
257
+ * JSON `UserContext` — into a viewer. This is the `ALMADAR_PERSONA` contract,
258
+ * shared by every host that presents an app as somebody.
259
+ *
260
+ * Throws on anything unresolvable rather than returning `undefined`: "no persona"
261
+ * and "persona silently ignored" look identical on screen, so a bad spec must
262
+ * fail at boot instead of rendering as nobody.
263
+ */
264
+ declare function resolvePersonaSpec(spec: string): UserContext;
265
+ /**
266
+ * Marks a bearer token as a mocked dev identity rather than a real ID token.
267
+ * The prefix is deliberately unmistakable: a server accepts these ONLY behind an
268
+ * explicit dev opt-in, so a production deployment rejects them like any other
269
+ * malformed token.
270
+ */
271
+ declare const DEV_TOKEN_PREFIX = "almadar-dev.";
272
+ /**
273
+ * Encode a viewer as a dev bearer token.
274
+ *
275
+ * Carries the WHOLE identity, not just the subject: real Firebase claims have no
276
+ * `role`, so a server that only reads `uid` leaves every `@user.role` gate inert
277
+ * even for a signed-in user. URI-encoded JSON keeps the token header-safe (no
278
+ * spaces or delimiters) and works unchanged in Node and the browser.
279
+ */
280
+ declare function encodeDevIdentityToken(user: UserContext): string;
281
+ /**
282
+ * Decode a dev bearer token back into a viewer, or `undefined` if it is not one
283
+ * / is malformed — callers fail closed rather than inventing an identity.
284
+ */
285
+ declare function decodeDevIdentityToken(token: string): UserContext | undefined;
286
+
182
287
  /**
183
288
  * Validation error types — the shape emitted by every
184
289
  * `.orb` / `.lolo` validator pass.
@@ -1535,8 +1640,8 @@ interface ResolvedTraitListener {
1535
1640
  event: string;
1536
1641
  triggers: string;
1537
1642
  guard?: SExpr;
1538
- /** `with { ... }` payload rewrite: `{ targetField: "@payload.<sourceField>" | literal }` */
1539
- payloadMapping?: Record<string, string>;
1643
+ /** `with { ... }` payload rewrite: `{ targetField: SExpr }`, evaluated against the source payload. */
1644
+ payloadMapping?: Record<string, SExpr>;
1540
1645
  /** Source scoping (see `ListenSource` in types/trait). */
1541
1646
  source?: ListenSource;
1542
1647
  }
@@ -2800,7 +2905,7 @@ interface ParsedListenDeclaration {
2800
2905
  triggers?: string;
2801
2906
  scope?: 'internal' | 'external';
2802
2907
  payloadMapping?: {
2803
- [key: string]: string;
2908
+ [key: string]: SExpr;
2804
2909
  };
2805
2910
  }
2806
2911
  /**
@@ -2839,4 +2944,4 @@ interface ParsedDesign {
2839
2944
  };
2840
2945
  }
2841
2946
 
2842
- export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, EventId, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LazyService, type LineageEntry, type ListInteraction, ListenSource, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalId, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, type RepairResult, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitId, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
2947
+ export { ANONYMOUS_USER, type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DEV_TOKEN_PREFIX, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, EventId, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LazyService, type LineageEntry, type ListInteraction, ListenSource, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, MOCK_PERSONAS, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalId, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, type RawUserClaims, type RepairResult, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitId, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type UserContext, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, encodeDevIdentityToken, findMockPersona, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, normalizeUserContext, resolvePersonaSpec, toBindingRoot, validateBindingInContext, widenTier };