@almadar/core 7.14.2 → 7.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { S as SExpr, b as EventPayload, d as Expression } from './expression-CkBbMSmB.js';
1
+ import { S as SExpr, b as EventPayload, d as Expression } from './expression-BVRFm0sV.js';
2
2
  import { z } from 'zod';
3
3
  import { AnyPatternConfig } from '@almadar/patterns';
4
4
 
@@ -6159,13 +6159,13 @@ declare const CustomPatternDefinitionSchema: z.ZodObject<{
6159
6159
  props: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6160
6160
  }, "strip", z.ZodTypeAny, {
6161
6161
  type: "custom";
6162
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
6162
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
6163
6163
  className: string;
6164
6164
  slots?: string[] | undefined;
6165
6165
  props?: string[] | undefined;
6166
6166
  }, {
6167
6167
  type: "custom";
6168
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
6168
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
6169
6169
  className: string;
6170
6170
  slots?: string[] | undefined;
6171
6171
  props?: string[] | undefined;
@@ -6182,13 +6182,13 @@ declare const CustomPatternMapSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.Z
6182
6182
  props: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6183
6183
  }, "strip", z.ZodTypeAny, {
6184
6184
  type: "custom";
6185
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
6185
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
6186
6186
  className: string;
6187
6187
  slots?: string[] | undefined;
6188
6188
  props?: string[] | undefined;
6189
6189
  }, {
6190
6190
  type: "custom";
6191
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
6191
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
6192
6192
  className: string;
6193
6193
  slots?: string[] | undefined;
6194
6194
  props?: string[] | undefined;
@@ -17803,13 +17803,13 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
17803
17803
  props: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17804
17804
  }, "strip", z.ZodTypeAny, {
17805
17805
  type: "custom";
17806
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
17806
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
17807
17807
  className: string;
17808
17808
  slots?: string[] | undefined;
17809
17809
  props?: string[] | undefined;
17810
17810
  }, {
17811
17811
  type: "custom";
17812
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
17812
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
17813
17813
  className: string;
17814
17814
  slots?: string[] | undefined;
17815
17815
  props?: string[] | undefined;
@@ -21397,7 +21397,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
21397
21397
  designTokens?: Record<string, Record<string, string>> | undefined;
21398
21398
  customPatterns?: Record<string, {
21399
21399
  type: "custom";
21400
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
21400
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
21401
21401
  className: string;
21402
21402
  slots?: string[] | undefined;
21403
21403
  props?: string[] | undefined;
@@ -21887,7 +21887,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
21887
21887
  designTokens?: Record<string, Record<string, string>> | undefined;
21888
21888
  customPatterns?: Record<string, {
21889
21889
  type: "custom";
21890
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
21890
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
21891
21891
  className: string;
21892
21892
  slots?: string[] | undefined;
21893
21893
  props?: string[] | undefined;
@@ -22442,7 +22442,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
22442
22442
  designTokens?: Record<string, Record<string, string>> | undefined;
22443
22443
  customPatterns?: Record<string, {
22444
22444
  type: "custom";
22445
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
22445
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
22446
22446
  className: string;
22447
22447
  slots?: string[] | undefined;
22448
22448
  props?: string[] | undefined;
@@ -22932,7 +22932,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
22932
22932
  designTokens?: Record<string, Record<string, string>> | undefined;
22933
22933
  customPatterns?: Record<string, {
22934
22934
  type: "custom";
22935
- component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "div" | "span" | "a" | "p" | "footer" | "aside" | "ul" | "ol" | "li" | "img";
22935
+ component: "header" | "main" | "button" | "form" | "input" | "label" | "section" | "article" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "nav" | "aside" | "div" | "span" | "a" | "p" | "footer" | "ul" | "ol" | "li" | "img";
22936
22936
  className: string;
22937
22937
  slots?: string[] | undefined;
22938
22938
  props?: string[] | undefined;
@@ -22941,4 +22941,4 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
22941
22941
  type OrbitalSchemaInput = z.input<typeof OrbitalSchemaSchema>;
22942
22942
  type OrbitalConfigInput = z.input<typeof OrbitalConfigSchema>;
22943
22943
 
22944
- export { type DeclaredTraitConfig as $, AGENT_DOMAIN_CATEGORIES as A, type AssetMappingInput as B, AssetMappingSchema as C, type AtomicEffect as D, type Effect as E, type CallServiceConfig as F, type CallServiceEffect as G, type CheckpointLoadEffect as H, type CheckpointSaveEffect as I, type ComputedEventContract as J, ComputedEventContractSchema as K, type ComputedEventListener as L, ComputedEventListenerSchema as M, type ConfigFieldDeclaration as N, type OrbitalDefinition as O, type PageRef as P, ConfigFieldDeclarationSchema as Q, type RenderUIEffect as R, type State as S, type Trait as T, type UISlot as U, type CustomPatternDefinition as V, type CustomPatternDefinitionInput as W, CustomPatternDefinitionSchema as X, type CustomPatternMap as Y, type CustomPatternMapInput as Z, CustomPatternMapSchema as _, type TraitEventContract as a, GAME_TYPES as a$, DeclaredTraitConfigSchema as a0, type DerefEffect as a1, type DesignPreferences as a2, type DesignPreferencesInput as a3, DesignPreferencesSchema as a4, type DesignTokens as a5, type DesignTokensInput as a6, DesignTokensSchema as a7, type DespawnEffect as a8, type DoEffect as a9, type EvaluateEffect as aA, type Event as aB, type EventInput as aC, type EventListener as aD, EventListenerSchema as aE, type EventPayloadField as aF, EventPayloadFieldSchema as aG, EventSchema as aH, type EventScope as aI, EventScopeSchema as aJ, type EventSemanticRole as aK, EventSemanticRoleSchema as aL, type EventSource as aM, EventSourceSchema as aN, type FetchEffect as aO, type FetchOptions as aP, type FetchResult as aQ, type Field as aR, type FieldFormat as aS, FieldFormatSchema as aT, FieldSchema as aU, type FieldType as aV, FieldTypeSchema as aW, type FieldValue as aX, type ForwardConfig as aY, type ForwardEffect as aZ, type Orbital as a_, type DomainCategory as aa, DomainCategorySchema as ab, type DomainContext as ac, type DomainContextInput as ad, DomainContextSchema as ae, type DomainVocabulary as af, DomainVocabularySchema as ag, ENTITY_ROLES as ah, type EffectInput as ai, EffectSchema as aj, type EmitConfig as ak, type EmitEffect as al, type EntityCall as am, EntityCallSchema as an, type EntityData as ao, type EntityFieldInput as ap, EntityFieldSchema as aq, EntityPersistenceSchema as ar, EntityRefSchema as as, EntityRefStringSchema as at, type EntityRole as au, EntityRoleSchema as av, EntitySchema as aw, type EntitySemanticRole as ax, EntitySemanticRoleSchema as ay, type EvaluateConfig as az, type Entity as b, type ResolvedAssetInput as b$, type GameSubCategory as b0, GameSubCategorySchema as b1, type GameType as b2, GameTypeSchema as b3, type Guard as b4, type GuardInput as b5, GuardSchema as b6, type ListenSource as b7, ListenSourceSchema as b8, type LogEffect as b9, type OrbitalUnit as bA, OrbitalUnitSchema as bB, OrbitalSchema$1 as bC, type OsEffect as bD, PageRefObjectSchema as bE, PageRefSchema as bF, PageRefStringSchema as bG, PageSchema as bH, type PageTraitRef as bI, PageTraitRefSchema as bJ, type PayloadField as bK, PayloadFieldSchema as bL, type PersistData as bM, type PersistEffect as bN, type PersistEmitConfig as bO, type PresentationType as bP, type RefEffect as bQ, type RelatedLink as bR, RelatedLinkSchema as bS, type RelationConfig as bT, RelationConfigSchema as bU, type RenderItemLambda as bV, type RenderUIConfig as bW, type RenderUINode as bX, type RequiredField as bY, RequiredFieldSchema as bZ, type ResolvedAsset as b_, type McpServiceDef as ba, McpServiceDefSchema as bb, type NavigateEffect as bc, type NnConfig as bd, type NnLayer as be, type NodeClassification as bf, NodeClassificationSchema as bg, type NotifyEffect as bh, type OrbitalConfig as bi, type OrbitalConfigInput as bj, OrbitalConfigSchema as bk, OrbitalDefinitionSchema as bl, type OrbitalEntity as bm, type OrbitalEntityInput as bn, OrbitalEntitySchema as bo, type OrbitalInput as bp, type OrbitalPage as bq, type OrbitalPageInput as br, OrbitalPageSchema as bs, type OrbitalPageStrictInput as bt, OrbitalPageStrictSchema as bu, type OrbitalSchemaInput as bv, OrbitalSchemaSchema as bw, type OrbitalSchemaWithTraits as bx, type OrbitalTraitRef as by, OrbitalTraitRefSchema as bz, type TraitEventListener as c, TraitReferenceSchema as c$, ResolvedAssetSchema as c0, type ResolvedPatternProps as c1, type RestAuthConfig as c2, RestAuthConfigSchema as c3, type RestServiceDef as c4, RestServiceDefSchema as c5, SERVICE_TYPES as c6, type SemanticAssetRef as c7, type SemanticAssetRefInput as c8, SemanticAssetRefSchema as c9, type SwapEffect as cA, type ThemeDefinition as cB, ThemeDefinitionSchema as cC, type ThemeRef as cD, ThemeRefSchema as cE, ThemeRefStringSchema as cF, type ThemeTokens as cG, ThemeTokensSchema as cH, type ThemeVariant as cI, ThemeVariantSchema as cJ, type TrainConfig as cK, type TrainEffect as cL, type TraitCategory as cM, TraitCategorySchema as cN, type TraitConfigObject as cO, TraitConfigSchema as cP, type TraitConfigValue as cQ, TraitConfigValueSchema as cR, type TraitDataEntity as cS, TraitDataEntitySchema as cT, type TraitEntityField as cU, TraitEntityFieldSchema as cV, TraitEventContractSchema as cW, TraitEventListenerSchema as cX, type TraitInput as cY, TraitRefSchema as cZ, type TraitReferenceInput as c_, type ServiceDefinition as ca, ServiceDefinitionSchema as cb, type ServiceParams as cc, type ServiceParamsValue as cd, type ServiceRef as ce, type ServiceRefObject as cf, ServiceRefObjectSchema as cg, ServiceRefSchema as ch, ServiceRefStringSchema as ci, type ServiceType as cj, ServiceTypeSchema as ck, type SetEffect as cl, type SocketEvents as cm, SocketEventsSchema as cn, type SocketServiceDef as co, SocketServiceDefSchema as cp, type SpawnEffect as cq, type StateInput as cr, type StateMachine as cs, type StateMachineInput as ct, StateMachineSchema as cu, StateSchema as cv, type StateSemanticRole as cw, StateSemanticRoleSchema as cx, type SuggestedGuard as cy, SuggestedGuardSchema as cz, type TraitConfig as d, parseImportedTraitRef as d$, TraitSchema as d0, type TraitTick as d1, TraitTickSchema as d2, type TraitUIBinding as d3, type Transition as d4, type TransitionInput as d5, TransitionSchema as d6, type TypedEffect as d7, UISlotSchema as d8, UI_SLOTS as d9, getTraitName as dA, hasService as dB, isCircuitEvent as dC, isEffect as dD, isEntityCall as dE, isEntityReference as dF, isEntityReferenceAny as dG, isImportedTraitRef as dH, isInlineTrait as dI, isMcpService as dJ, isOrbitalDefinition as dK, isPageReference as dL, isPageReferenceObject as dM, isPageReferenceString as dN, isRestService as dO, isRuntimeEntity as dP, isSExprEffect as dQ, isServiceReference as dR, isServiceReferenceObject as dS, isSingletonEntity as dT, isSocketService as dU, isThemeReference as dV, navigate as dW, normalizeTraitRef as dX, notify as dY, parseAssetKey as dZ, parseEntityRef as d_, type UXHints as da, UXHintsSchema as db, UseDeclarationSchema as dc, type UserPersona as dd, type UserPersonaInput as de, UserPersonaSchema as df, VISUAL_STYLES as dg, type ViewType as dh, ViewTypeSchema as di, type VisualStyle as dj, VisualStyleSchema as dk, type WatchEffect as dl, type WatchOptions as dm, atomic as dn, callService as dp, createAssetKey as dq, deref as dr, deriveCollection as ds, despawn as dt, doEffects as du, emit as dv, findService as dw, getDefaultAnimationsForRole as dx, getServiceNames as dy, getTraitConfig as dz, type EntityField as e, parseOrbitalSchema as e0, parsePageRef as e1, parseServiceRef as e2, persist as e3, ref as e4, renderUI as e5, safeParseOrbitalSchema as e6, set as e7, spawn as e8, swap as e9, validateAssetAnimations as ea, watch as eb, type EntityPersistence as f, type EntityRow as g, type UseDeclaration as h, type EntityRef as i, type TraitRef as j, type OrbitalSchema as k, type Page as l, type PageRefObject as m, type TraitReference as n, ALLOWED_CUSTOM_COMPONENTS as o, type AgentDomainCategory as p, AgentDomainCategorySchema as q, type AgentEffect as r, type AllowedCustomComponent as s, type AnimationDef as t, type AnimationDefInput as u, AnimationDefSchema as v, type AssetMap as w, type AssetMapInput as x, AssetMapSchema as y, type AssetMapping as z };
22944
+ export { EffectSchema as $, AGENT_DOMAIN_CATEGORIES as A, CustomPatternDefinitionSchema as B, type CallServiceConfig as C, type CustomPatternMap as D, type CustomPatternMapInput as E, CustomPatternMapSchema as F, type DeclaredTraitConfig as G, DeclaredTraitConfigSchema as H, type DerefEffect as I, type DesignPreferences as J, type DesignPreferencesInput as K, DesignPreferencesSchema as L, type DesignTokens as M, type DesignTokensInput as N, DesignTokensSchema as O, type DespawnEffect as P, type DoEffect as Q, type DomainCategory as R, DomainCategorySchema as S, type DomainContext as T, type DomainContextInput as U, DomainContextSchema as V, type DomainVocabulary as W, DomainVocabularySchema as X, ENTITY_ROLES as Y, type Effect as Z, type EffectInput as _, ALLOWED_CUSTOM_COMPONENTS as a, type NodeClassification as a$, type EmitConfig as a0, type EmitEffect as a1, type Entity as a2, type EntityCall as a3, EntityCallSchema as a4, type EntityData as a5, type EntityField as a6, type EntityFieldInput as a7, EntityFieldSchema as a8, type EntityPersistence as a9, type FetchOptions as aA, type FetchResult as aB, type Field as aC, type FieldFormat as aD, FieldFormatSchema as aE, FieldSchema as aF, type FieldType as aG, FieldTypeSchema as aH, type FieldValue as aI, type ForwardConfig as aJ, type ForwardEffect as aK, GAME_TYPES as aL, type GameSubCategory as aM, GameSubCategorySchema as aN, type GameType as aO, GameTypeSchema as aP, type Guard as aQ, type GuardInput as aR, GuardSchema as aS, type ListenSource as aT, ListenSourceSchema as aU, type LogEffect as aV, type McpServiceDef as aW, McpServiceDefSchema as aX, type NavigateEffect as aY, type NnConfig as aZ, type NnLayer as a_, EntityPersistenceSchema as aa, type EntityRef as ab, EntityRefSchema as ac, EntityRefStringSchema as ad, type EntityRole as ae, EntityRoleSchema as af, type EntityRow as ag, EntitySchema as ah, type EntitySemanticRole as ai, EntitySemanticRoleSchema as aj, type EvaluateConfig as ak, type EvaluateEffect as al, type Event as am, type EventInput as an, type EventListener as ao, EventListenerSchema as ap, type EventPayloadField as aq, EventPayloadFieldSchema as ar, EventSchema as as, type EventScope as at, EventScopeSchema as au, type EventSemanticRole as av, EventSemanticRoleSchema as aw, type EventSource as ax, EventSourceSchema as ay, type FetchEffect as az, type AgentDomainCategory as b, type SemanticAssetRefInput as b$, NodeClassificationSchema as b0, type NotifyEffect as b1, type Orbital as b2, type OrbitalConfig as b3, type OrbitalConfigInput as b4, OrbitalConfigSchema as b5, type OrbitalDefinition as b6, OrbitalDefinitionSchema as b7, type OrbitalEntity as b8, type OrbitalEntityInput as b9, type PayloadField as bA, PayloadFieldSchema as bB, type PersistData as bC, type PersistEffect as bD, type PersistEmitConfig as bE, type PresentationType as bF, type RefEffect as bG, type RelatedLink as bH, RelatedLinkSchema as bI, type RelationConfig as bJ, RelationConfigSchema as bK, type RenderItemLambda as bL, type RenderUIConfig as bM, type RenderUIEffect as bN, type RenderUINode as bO, type RequiredField as bP, RequiredFieldSchema as bQ, type ResolvedAsset as bR, type ResolvedAssetInput as bS, ResolvedAssetSchema as bT, type ResolvedPatternProps as bU, type RestAuthConfig as bV, RestAuthConfigSchema as bW, type RestServiceDef as bX, RestServiceDefSchema as bY, SERVICE_TYPES as bZ, type SemanticAssetRef as b_, OrbitalEntitySchema as ba, type OrbitalInput as bb, type OrbitalPage as bc, type OrbitalPageInput as bd, OrbitalPageSchema as be, type OrbitalPageStrictInput as bf, OrbitalPageStrictSchema as bg, type OrbitalSchema as bh, OrbitalSchema$1 as bi, type OrbitalSchemaInput as bj, OrbitalSchemaSchema as bk, type OrbitalSchemaWithTraits as bl, type OrbitalTraitRef as bm, OrbitalTraitRefSchema as bn, type OrbitalUnit as bo, OrbitalUnitSchema as bp, type OsEffect as bq, type Page as br, type PageRef as bs, type PageRefObject as bt, PageRefObjectSchema as bu, PageRefSchema as bv, PageRefStringSchema as bw, PageSchema as bx, type PageTraitRef as by, PageTraitRefSchema as bz, AgentDomainCategorySchema as c, type TraitTick as c$, SemanticAssetRefSchema as c0, type ServiceDefinition as c1, ServiceDefinitionSchema as c2, type ServiceParams as c3, type ServiceParamsValue as c4, type ServiceRef as c5, type ServiceRefObject as c6, ServiceRefObjectSchema as c7, ServiceRefSchema as c8, ServiceRefStringSchema as c9, type ThemeVariant as cA, ThemeVariantSchema as cB, type TrainConfig as cC, type TrainEffect as cD, type Trait as cE, type TraitCategory as cF, TraitCategorySchema as cG, type TraitConfig as cH, type TraitConfigObject as cI, TraitConfigSchema as cJ, type TraitConfigValue as cK, TraitConfigValueSchema as cL, type TraitDataEntity as cM, TraitDataEntitySchema as cN, type TraitEntityField as cO, TraitEntityFieldSchema as cP, type TraitEventContract as cQ, TraitEventContractSchema as cR, type TraitEventListener as cS, TraitEventListenerSchema as cT, type TraitInput as cU, type TraitRef as cV, TraitRefSchema as cW, type TraitReference as cX, type TraitReferenceInput as cY, TraitReferenceSchema as cZ, TraitSchema as c_, type ServiceType as ca, ServiceTypeSchema as cb, type SetEffect as cc, type SocketEvents as cd, SocketEventsSchema as ce, type SocketServiceDef as cf, SocketServiceDefSchema as cg, type SpawnEffect as ch, type State as ci, type StateInput as cj, type StateMachine as ck, type StateMachineInput as cl, StateMachineSchema as cm, StateSchema as cn, type StateSemanticRole as co, StateSemanticRoleSchema as cp, type SuggestedGuard as cq, SuggestedGuardSchema as cr, type SwapEffect as cs, type ThemeDefinition as ct, ThemeDefinitionSchema as cu, type ThemeRef as cv, ThemeRefSchema as cw, ThemeRefStringSchema as cx, type ThemeTokens as cy, ThemeTokensSchema as cz, type AgentEffect as d, parseImportedTraitRef as d$, TraitTickSchema as d0, type TraitUIBinding as d1, type Transition as d2, type TransitionInput as d3, TransitionSchema as d4, type TypedEffect as d5, type UISlot as d6, UISlotSchema as d7, UI_SLOTS as d8, type UXHints as d9, getTraitName as dA, hasService as dB, isCircuitEvent as dC, isEffect as dD, isEntityCall as dE, isEntityReference as dF, isEntityReferenceAny as dG, isImportedTraitRef as dH, isInlineTrait as dI, isMcpService as dJ, isOrbitalDefinition as dK, isPageReference as dL, isPageReferenceObject as dM, isPageReferenceString as dN, isRestService as dO, isRuntimeEntity as dP, isSExprEffect as dQ, isServiceReference as dR, isServiceReferenceObject as dS, isSingletonEntity as dT, isSocketService as dU, isThemeReference as dV, navigate as dW, normalizeTraitRef as dX, notify as dY, parseAssetKey as dZ, parseEntityRef as d_, UXHintsSchema as da, type UseDeclaration as db, UseDeclarationSchema as dc, type UserPersona as dd, type UserPersonaInput as de, UserPersonaSchema as df, VISUAL_STYLES as dg, type ViewType as dh, ViewTypeSchema as di, type VisualStyle as dj, VisualStyleSchema as dk, type WatchEffect as dl, type WatchOptions as dm, atomic as dn, callService as dp, createAssetKey as dq, deref as dr, deriveCollection as ds, despawn as dt, doEffects as du, emit as dv, findService as dw, getDefaultAnimationsForRole as dx, getServiceNames as dy, getTraitConfig as dz, type AllowedCustomComponent as e, parseOrbitalSchema as e0, parsePageRef as e1, parseServiceRef as e2, persist as e3, ref as e4, renderUI as e5, safeParseOrbitalSchema as e6, set as e7, spawn as e8, swap as e9, validateAssetAnimations as ea, watch as eb, type AnimationDef as f, type AnimationDefInput as g, AnimationDefSchema as h, type AssetMap as i, type AssetMapInput as j, AssetMapSchema as k, type AssetMapping as l, type AssetMappingInput as m, AssetMappingSchema as n, type AtomicEffect as o, type CallServiceEffect as p, type CheckpointLoadEffect as q, type CheckpointSaveEffect as r, type ComputedEventContract as s, ComputedEventContractSchema as t, type ComputedEventListener as u, ComputedEventListenerSchema as v, type ConfigFieldDeclaration as w, ConfigFieldDeclarationSchema as x, type CustomPatternDefinition as y, type CustomPatternDefinitionInput as z };
@@ -1,4 +1,4 @@
1
- import { b as EventPayload, S as SExpr } from '../expression-CkBbMSmB.js';
1
+ import { b as EventPayload, S as SExpr } from '../expression-BVRFm0sV.js';
2
2
  import 'zod';
3
3
 
4
4
  /**
@@ -1,7 +1,7 @@
1
- import { cc as ServiceParams, k as OrbitalSchema, a_ as Orbital, T as Trait, b as Entity, l as Page, ac as DomainContext, g as EntityRow, aX as FieldValue, $ as DeclaredTraitConfig, d as TraitConfig } from '../schema-BAT_cYlE.js';
2
- export { A as AGENT_DOMAIN_CATEGORIES, o as ALLOWED_CUSTOM_COMPONENTS, p as AgentDomainCategory, q as AgentDomainCategorySchema, r as AgentEffect, s as AllowedCustomComponent, t as AnimationDef, u as AnimationDefInput, v as AnimationDefSchema, w as AssetMap, x as AssetMapInput, y as AssetMapSchema, z as AssetMapping, B as AssetMappingInput, C as AssetMappingSchema, D as AtomicEffect, F as CallServiceConfig, G as CallServiceEffect, H as CheckpointLoadEffect, I as CheckpointSaveEffect, J as ComputedEventContract, K as ComputedEventContractSchema, L as ComputedEventListener, M as ComputedEventListenerSchema, N as ConfigFieldDeclaration, Q as ConfigFieldDeclarationSchema, V as CustomPatternDefinition, W as CustomPatternDefinitionInput, X as CustomPatternDefinitionSchema, Y as CustomPatternMap, Z as CustomPatternMapInput, _ as CustomPatternMapSchema, a0 as DeclaredTraitConfigSchema, a1 as DerefEffect, a2 as DesignPreferences, a3 as DesignPreferencesInput, a4 as DesignPreferencesSchema, a5 as DesignTokens, a6 as DesignTokensInput, a7 as DesignTokensSchema, a8 as DespawnEffect, a9 as DoEffect, aa as DomainCategory, ab as DomainCategorySchema, ad as DomainContextInput, ae as DomainContextSchema, af as DomainVocabulary, ag as DomainVocabularySchema, ah as ENTITY_ROLES, E as Effect, ai as EffectInput, aj as EffectSchema, ak as EmitConfig, al as EmitEffect, am as EntityCall, an as EntityCallSchema, ao as EntityData, e as EntityField, ap as EntityFieldInput, aq as EntityFieldSchema, f as EntityPersistence, ar as EntityPersistenceSchema, i as EntityRef, as as EntityRefSchema, at as EntityRefStringSchema, au as EntityRole, av as EntityRoleSchema, aw as EntitySchema, ax as EntitySemanticRole, ay as EntitySemanticRoleSchema, az as EvaluateConfig, aA as EvaluateEffect, aB as Event, aC as EventInput, aD as EventListener, aE as EventListenerSchema, aF as EventPayloadField, aG as EventPayloadFieldSchema, aH as EventSchema, aI as EventScope, aJ as EventScopeSchema, aK as EventSemanticRole, aL as EventSemanticRoleSchema, aM as EventSource, aN as EventSourceSchema, aO as FetchEffect, aP as FetchOptions, aQ as FetchResult, aR as Field, aS as FieldFormat, aT as FieldFormatSchema, aU as FieldSchema, aV as FieldType, aW as FieldTypeSchema, aY as ForwardConfig, aZ as ForwardEffect, a$ as GAME_TYPES, b0 as GameSubCategory, b1 as GameSubCategorySchema, b2 as GameType, b3 as GameTypeSchema, b4 as Guard, b5 as GuardInput, b6 as GuardSchema, b7 as ListenSource, b8 as ListenSourceSchema, b9 as LogEffect, ba as McpServiceDef, bb as McpServiceDefSchema, bc as NavigateEffect, bd as NnConfig, be as NnLayer, bf as NodeClassification, bg as NodeClassificationSchema, bh as NotifyEffect, bi as OrbitalConfig, bj as OrbitalConfigInput, bk as OrbitalConfigSchema, O as OrbitalDefinition, bl as OrbitalDefinitionSchema, bm as OrbitalEntity, bn as OrbitalEntityInput, bo as OrbitalEntitySchema, bp as OrbitalInput, bq as OrbitalPage, br as OrbitalPageInput, bs as OrbitalPageSchema, bt as OrbitalPageStrictInput, bu as OrbitalPageStrictSchema, bv as OrbitalSchemaInput, bw as OrbitalSchemaSchema, bx as OrbitalSchemaWithTraits, by as OrbitalTraitRef, bz as OrbitalTraitRefSchema, bA as OrbitalUnit, bB as OrbitalUnitSchema, bC as OrbitalZodSchema, bD as OsEffect, P as PageRef, m as PageRefObject, bE as PageRefObjectSchema, bF as PageRefSchema, bG as PageRefStringSchema, bH as PageSchema, bI as PageTraitRef, bJ as PageTraitRefSchema, bK as PayloadField, bL as PayloadFieldSchema, bM as PersistData, bN as PersistEffect, bO as PersistEmitConfig, bP as PresentationType, bQ as RefEffect, bR as RelatedLink, bS as RelatedLinkSchema, bT as RelationConfig, bU as RelationConfigSchema, bV as RenderItemLambda, bW as RenderUIConfig, R as RenderUIEffect, bX as RenderUINode, bY as RequiredField, bZ as RequiredFieldSchema, b_ as ResolvedAsset, b$ as ResolvedAssetInput, c0 as ResolvedAssetSchema, c1 as ResolvedPatternProps, c2 as RestAuthConfig, c3 as RestAuthConfigSchema, c4 as RestServiceDef, c5 as RestServiceDefSchema, c6 as SERVICE_TYPES, c7 as SemanticAssetRef, c8 as SemanticAssetRefInput, c9 as SemanticAssetRefSchema, ca as ServiceDefinition, cb as ServiceDefinitionSchema, cd as ServiceParamsValue, ce as ServiceRef, cf as ServiceRefObject, cg as ServiceRefObjectSchema, ch as ServiceRefSchema, ci as ServiceRefStringSchema, cj as ServiceType, ck as ServiceTypeSchema, cl as SetEffect, cm as SocketEvents, cn as SocketEventsSchema, co as SocketServiceDef, cp as SocketServiceDefSchema, cq as SpawnEffect, S as State, cr as StateInput, cs as StateMachine, ct as StateMachineInput, cu as StateMachineSchema, cv as StateSchema, cw as StateSemanticRole, cx as StateSemanticRoleSchema, cy as SuggestedGuard, cz as SuggestedGuardSchema, cA as SwapEffect, cB as ThemeDefinition, cC as ThemeDefinitionSchema, cD as ThemeRef, cE as ThemeRefSchema, cF as ThemeRefStringSchema, cG as ThemeTokens, cH as ThemeTokensSchema, cI as ThemeVariant, cJ as ThemeVariantSchema, cK as TrainConfig, cL as TrainEffect, cM as TraitCategory, cN as TraitCategorySchema, cO as TraitConfigObject, cP as TraitConfigSchema, cQ as TraitConfigValue, cR as TraitConfigValueSchema, cS as TraitDataEntity, cT as TraitDataEntitySchema, cU as TraitEntityField, cV as TraitEntityFieldSchema, a as TraitEventContract, cW as TraitEventContractSchema, c as TraitEventListener, cX as TraitEventListenerSchema, cY as TraitInput, j as TraitRef, cZ as TraitRefSchema, n as TraitReference, c_ as TraitReferenceInput, c$ as TraitReferenceSchema, d0 as TraitSchema, d1 as TraitTick, d2 as TraitTickSchema, d3 as TraitUIBinding, d4 as Transition, d5 as TransitionInput, d6 as TransitionSchema, d7 as TypedEffect, U as UISlot, d8 as UISlotSchema, d9 as UI_SLOTS, da as UXHints, db as UXHintsSchema, h as UseDeclaration, dc as UseDeclarationSchema, dd as UserPersona, de as UserPersonaInput, df as UserPersonaSchema, dg as VISUAL_STYLES, dh as ViewType, di as ViewTypeSchema, dj as VisualStyle, dk as VisualStyleSchema, dl as WatchEffect, dm as WatchOptions, dn as atomic, dp as callService, dq as createAssetKey, dr as deref, ds as deriveCollection, dt as despawn, du as doEffects, dv as emit, dw as findService, dx as getDefaultAnimationsForRole, dy as getServiceNames, dz as getTraitConfig, dA as getTraitName, dB as hasService, dC as isCircuitEvent, dD as isEffect, dE as isEntityCall, dF as isEntityReference, dG as isEntityReferenceAny, dH as isImportedTraitRef, dI as isInlineTrait, dJ as isMcpService, dK as isOrbitalDefinition, dL as isPageReference, dM as isPageReferenceObject, dN as isPageReferenceString, dO as isRestService, dP as isRuntimeEntity, dQ as isSExprEffect, dR as isServiceReference, dS as isServiceReferenceObject, dT as isSingletonEntity, dU as isSocketService, dV as isThemeReference, dW as navigate, dX as normalizeTraitRef, dY as notify, dZ as parseAssetKey, d_ as parseEntityRef, d$ as parseImportedTraitRef, e0 as parseOrbitalSchema, e1 as parsePageRef, e2 as parseServiceRef, e3 as persist, e4 as ref, e5 as renderUI, e6 as safeParseOrbitalSchema, e7 as set, e8 as spawn, e9 as swap, ea as validateAssetAnimations, eb as watch } from '../schema-BAT_cYlE.js';
3
- import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr } from '../expression-CkBbMSmB.js';
4
- export { C as CORE_BINDINGS, a as CoreBinding, E as EvalContext, d as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-CkBbMSmB.js';
1
+ import { c3 as ServiceParams, bh as OrbitalSchema, b2 as Orbital, cE as Trait, a2 as Entity, br as Page, T as DomainContext, ag as EntityRow, aI as FieldValue, G as DeclaredTraitConfig, cH as TraitConfig } from '../schema-B-92HhgX.js';
2
+ export { A as AGENT_DOMAIN_CATEGORIES, a as ALLOWED_CUSTOM_COMPONENTS, b as AgentDomainCategory, c as AgentDomainCategorySchema, d as AgentEffect, e as AllowedCustomComponent, f as AnimationDef, g as AnimationDefInput, h as AnimationDefSchema, i as AssetMap, j as AssetMapInput, k as AssetMapSchema, l as AssetMapping, m as AssetMappingInput, n as AssetMappingSchema, o as AtomicEffect, C as CallServiceConfig, p as CallServiceEffect, q as CheckpointLoadEffect, r as CheckpointSaveEffect, s as ComputedEventContract, t as ComputedEventContractSchema, u as ComputedEventListener, v as ComputedEventListenerSchema, w as ConfigFieldDeclaration, x as ConfigFieldDeclarationSchema, y as CustomPatternDefinition, z as CustomPatternDefinitionInput, B as CustomPatternDefinitionSchema, D as CustomPatternMap, E as CustomPatternMapInput, F as CustomPatternMapSchema, H as DeclaredTraitConfigSchema, I as DerefEffect, J as DesignPreferences, K as DesignPreferencesInput, L as DesignPreferencesSchema, M as DesignTokens, N as DesignTokensInput, O as DesignTokensSchema, P as DespawnEffect, Q as DoEffect, R as DomainCategory, S as DomainCategorySchema, U as DomainContextInput, V as DomainContextSchema, W as DomainVocabulary, X as DomainVocabularySchema, Y as ENTITY_ROLES, Z as Effect, _ as EffectInput, $ as EffectSchema, a0 as EmitConfig, a1 as EmitEffect, a3 as EntityCall, a4 as EntityCallSchema, a5 as EntityData, a6 as EntityField, a7 as EntityFieldInput, a8 as EntityFieldSchema, a9 as EntityPersistence, aa as EntityPersistenceSchema, ab as EntityRef, ac as EntityRefSchema, ad as EntityRefStringSchema, ae as EntityRole, af as EntityRoleSchema, ah as EntitySchema, ai as EntitySemanticRole, aj as EntitySemanticRoleSchema, ak as EvaluateConfig, al as EvaluateEffect, am as Event, an as EventInput, ao as EventListener, ap as EventListenerSchema, aq as EventPayloadField, ar as EventPayloadFieldSchema, as as EventSchema, at as EventScope, au as EventScopeSchema, av as EventSemanticRole, aw as EventSemanticRoleSchema, ax as EventSource, ay as EventSourceSchema, az as FetchEffect, aA as FetchOptions, aB as FetchResult, aC as Field, aD as FieldFormat, aE as FieldFormatSchema, aF as FieldSchema, aG as FieldType, aH as FieldTypeSchema, aJ as ForwardConfig, aK as ForwardEffect, aL as GAME_TYPES, aM as GameSubCategory, aN as GameSubCategorySchema, aO as GameType, aP as GameTypeSchema, aQ as Guard, aR as GuardInput, aS as GuardSchema, aT as ListenSource, aU as ListenSourceSchema, aV as LogEffect, aW as McpServiceDef, aX as McpServiceDefSchema, aY as NavigateEffect, aZ as NnConfig, a_ as NnLayer, a$ as NodeClassification, b0 as NodeClassificationSchema, b1 as NotifyEffect, b3 as OrbitalConfig, b4 as OrbitalConfigInput, b5 as OrbitalConfigSchema, b6 as OrbitalDefinition, b7 as OrbitalDefinitionSchema, b8 as OrbitalEntity, b9 as OrbitalEntityInput, ba as OrbitalEntitySchema, bb as OrbitalInput, bc as OrbitalPage, bd as OrbitalPageInput, be as OrbitalPageSchema, bf as OrbitalPageStrictInput, bg as OrbitalPageStrictSchema, bj as OrbitalSchemaInput, bk as OrbitalSchemaSchema, bl as OrbitalSchemaWithTraits, bm as OrbitalTraitRef, bn as OrbitalTraitRefSchema, bo as OrbitalUnit, bp as OrbitalUnitSchema, bi as OrbitalZodSchema, bq as OsEffect, bs as PageRef, bt as PageRefObject, bu as PageRefObjectSchema, bv as PageRefSchema, bw as PageRefStringSchema, bx as PageSchema, by as PageTraitRef, bz as PageTraitRefSchema, bA as PayloadField, bB as PayloadFieldSchema, bC as PersistData, bD as PersistEffect, bE as PersistEmitConfig, bF as PresentationType, bG as RefEffect, bH as RelatedLink, bI as RelatedLinkSchema, bJ as RelationConfig, bK as RelationConfigSchema, bL as RenderItemLambda, bM as RenderUIConfig, bN as RenderUIEffect, bO as RenderUINode, bP as RequiredField, bQ as RequiredFieldSchema, bR as ResolvedAsset, bS as ResolvedAssetInput, bT as ResolvedAssetSchema, bU as ResolvedPatternProps, bV as RestAuthConfig, bW as RestAuthConfigSchema, bX as RestServiceDef, bY as RestServiceDefSchema, bZ as SERVICE_TYPES, b_ as SemanticAssetRef, b$ as SemanticAssetRefInput, c0 as SemanticAssetRefSchema, c1 as ServiceDefinition, c2 as ServiceDefinitionSchema, c4 as ServiceParamsValue, c5 as ServiceRef, c6 as ServiceRefObject, c7 as ServiceRefObjectSchema, c8 as ServiceRefSchema, c9 as ServiceRefStringSchema, ca as ServiceType, cb as ServiceTypeSchema, cc as SetEffect, cd as SocketEvents, ce as SocketEventsSchema, cf as SocketServiceDef, cg as SocketServiceDefSchema, ch as SpawnEffect, ci as State, cj as StateInput, ck as StateMachine, cl as StateMachineInput, cm as StateMachineSchema, cn as StateSchema, co as StateSemanticRole, cp as StateSemanticRoleSchema, cq as SuggestedGuard, cr as SuggestedGuardSchema, cs as SwapEffect, ct as ThemeDefinition, cu as ThemeDefinitionSchema, cv as ThemeRef, cw as ThemeRefSchema, cx as ThemeRefStringSchema, cy as ThemeTokens, cz as ThemeTokensSchema, cA as ThemeVariant, cB as ThemeVariantSchema, cC as TrainConfig, cD as TrainEffect, cF as TraitCategory, cG as TraitCategorySchema, cI as TraitConfigObject, cJ as TraitConfigSchema, cK as TraitConfigValue, cL as TraitConfigValueSchema, cM as TraitDataEntity, cN as TraitDataEntitySchema, cO as TraitEntityField, cP as TraitEntityFieldSchema, cQ as TraitEventContract, cR as TraitEventContractSchema, cS as TraitEventListener, cT as TraitEventListenerSchema, cU as TraitInput, cV as TraitRef, cW as TraitRefSchema, cX as TraitReference, cY as TraitReferenceInput, cZ as TraitReferenceSchema, c_ as TraitSchema, c$ as TraitTick, d0 as TraitTickSchema, d1 as TraitUIBinding, d2 as Transition, d3 as TransitionInput, d4 as TransitionSchema, d5 as TypedEffect, d6 as UISlot, d7 as UISlotSchema, d8 as UI_SLOTS, d9 as UXHints, da as UXHintsSchema, db as UseDeclaration, dc as UseDeclarationSchema, dd as UserPersona, de as UserPersonaInput, df as UserPersonaSchema, dg as VISUAL_STYLES, dh as ViewType, di as ViewTypeSchema, dj as VisualStyle, dk as VisualStyleSchema, dl as WatchEffect, dm as WatchOptions, dn as atomic, dp as callService, dq as createAssetKey, dr as deref, ds as deriveCollection, dt as despawn, du as doEffects, dv as emit, dw as findService, dx as getDefaultAnimationsForRole, dy as getServiceNames, dz as getTraitConfig, dA as getTraitName, dB as hasService, dC as isCircuitEvent, dD as isEffect, dE as isEntityCall, dF as isEntityReference, dG as isEntityReferenceAny, dH as isImportedTraitRef, dI as isInlineTrait, dJ as isMcpService, dK as isOrbitalDefinition, dL as isPageReference, dM as isPageReferenceObject, dN as isPageReferenceString, dO as isRestService, dP as isRuntimeEntity, dQ as isSExprEffect, dR as isServiceReference, dS as isServiceReferenceObject, dT as isSingletonEntity, dU as isSocketService, dV as isThemeReference, dW as navigate, dX as normalizeTraitRef, dY as notify, dZ as parseAssetKey, d_ as parseEntityRef, d$ as parseImportedTraitRef, e0 as parseOrbitalSchema, e1 as parsePageRef, e2 as parseServiceRef, e3 as persist, e4 as ref, e5 as renderUI, e6 as safeParseOrbitalSchema, e7 as set, e8 as spawn, e9 as swap, ea as validateAssetAnimations, eb as watch } from '../schema-B-92HhgX.js';
3
+ import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr } from '../expression-BVRFm0sV.js';
4
+ export { C as CORE_BINDINGS, a as CoreBinding, E as EvalContext, d as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-BVRFm0sV.js';
5
5
  import { z } from 'zod';
6
6
  import { AnyPatternConfig } from '@almadar/patterns';
7
7
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
@@ -70,22 +70,27 @@ declare const BINDING_DOCS: {
70
70
  readonly examples: readonly ["@trait.name", "@trait.category"];
71
71
  readonly requiresPath: true;
72
72
  };
73
+ readonly user: {
74
+ readonly description: "Authenticated user / agent context for ownership and role-based gating";
75
+ readonly examples: readonly ["@user.id", "@user.role"];
76
+ readonly requiresPath: true;
77
+ };
73
78
  };
74
79
  /**
75
80
  * Validation rules for bindings in different contexts.
76
81
  */
77
82
  declare const BINDING_CONTEXT_RULES: {
78
83
  readonly guard: {
79
- readonly allowed: readonly ["entity", "payload", "state", "now", "config"];
80
- readonly description: "Guards can access entity fields, event payload, current state, time, and the call-site trait config (@config.X). Config access lets atoms write mode-aware guards — e.g. std-modal's OPEN can require @payload.row only when @config.mode equals \"edit\", letting create-mode legitimately fire OPEN with no row. Like effects, @config.X is substituted at molecule/organism inline time with the literal call-site value; at atom-scope validate, @config is allowed-but-unresolved.";
84
+ readonly allowed: readonly ["entity", "payload", "state", "now", "config", "user"];
85
+ readonly description: "Guards can access entity fields, event payload, current state, time, the call-site trait config (@config.X), and the authenticated user context (@user.id, @user.role) for ownership / role gates. Config access lets atoms write mode-aware guards — e.g. std-modal's OPEN can require @payload.row only when @config.mode equals \"edit\", letting create-mode legitimately fire OPEN with no row. Like effects, @config.X is substituted at molecule/organism inline time with the literal call-site value; at atom-scope validate, @config is allowed-but-unresolved.";
81
86
  };
82
87
  readonly effect: {
83
- readonly allowed: readonly ["entity", "payload", "state", "now", "trait", "config"];
84
- readonly description: "Effects can access and modify entity fields, use payload data, embed another trait's live frame via @trait.X inside render-ui children, and read trait config values (@config.X) for atoms parameterized by their call-site. At molecule/organism inline time, @config.X is substituted with the literal value from the call-site config block; at atom-scope validate, @config is allowed-but-unresolved.";
88
+ readonly allowed: readonly ["entity", "payload", "state", "now", "trait", "config", "user"];
89
+ readonly description: "Effects can access and modify entity fields, use payload data, embed another trait's live frame via @trait.X inside render-ui children, read trait config values (@config.X) for atoms parameterized by their call-site, and read the authenticated user context (@user.id, @user.role). At molecule/organism inline time, @config.X is substituted with the literal value from the call-site config block; at atom-scope validate, @config is allowed-but-unresolved.";
85
90
  };
86
91
  readonly tick: {
87
- readonly allowed: readonly ["entity", "state", "now", "config"];
88
- readonly description: "Ticks can access entity fields, current state, time, and trait config (@config.X) for parameterized atoms. Same substitution semantics as guards/effects.";
92
+ readonly allowed: readonly ["entity", "state", "now", "config", "user"];
93
+ readonly description: "Ticks can access entity fields, current state, time, trait config (@config.X) for parameterized atoms, and the authenticated user context (@user.id, @user.role). Same substitution semantics as guards/effects.";
89
94
  };
90
95
  };
91
96
  type BindingContext = keyof typeof BINDING_CONTEXT_RULES;
@@ -358,7 +358,7 @@ function isBinding(value) {
358
358
  function isSExprCall(value) {
359
359
  return isSExpr(value);
360
360
  }
361
- var CORE_BINDINGS = ["entity", "payload", "state", "now", "config", "computed", "trait"];
361
+ var CORE_BINDINGS = ["entity", "payload", "state", "now", "config", "computed", "trait", "user"];
362
362
  function parseBinding(binding) {
363
363
  if (!binding.startsWith("@")) {
364
364
  return null;
@@ -1233,20 +1233,25 @@ var BINDING_DOCS = {
1233
1233
  description: "Trait context data",
1234
1234
  examples: ["@trait.name", "@trait.category"],
1235
1235
  requiresPath: true
1236
+ },
1237
+ user: {
1238
+ description: "Authenticated user / agent context for ownership and role-based gating",
1239
+ examples: ["@user.id", "@user.role"],
1240
+ requiresPath: true
1236
1241
  }
1237
1242
  };
1238
1243
  var BINDING_CONTEXT_RULES = {
1239
1244
  guard: {
1240
- allowed: ["entity", "payload", "state", "now", "config"],
1241
- description: `Guards can access entity fields, event payload, current state, time, and the call-site trait config (@config.X). Config access lets atoms write mode-aware guards \u2014 e.g. std-modal's OPEN can require @payload.row only when @config.mode equals "edit", letting create-mode legitimately fire OPEN with no row. Like effects, @config.X is substituted at molecule/organism inline time with the literal call-site value; at atom-scope validate, @config is allowed-but-unresolved.`
1245
+ allowed: ["entity", "payload", "state", "now", "config", "user"],
1246
+ description: `Guards can access entity fields, event payload, current state, time, the call-site trait config (@config.X), and the authenticated user context (@user.id, @user.role) for ownership / role gates. Config access lets atoms write mode-aware guards \u2014 e.g. std-modal's OPEN can require @payload.row only when @config.mode equals "edit", letting create-mode legitimately fire OPEN with no row. Like effects, @config.X is substituted at molecule/organism inline time with the literal call-site value; at atom-scope validate, @config is allowed-but-unresolved.`
1242
1247
  },
1243
1248
  effect: {
1244
- allowed: ["entity", "payload", "state", "now", "trait", "config"],
1245
- description: "Effects can access and modify entity fields, use payload data, embed another trait's live frame via @trait.X inside render-ui children, and read trait config values (@config.X) for atoms parameterized by their call-site. At molecule/organism inline time, @config.X is substituted with the literal value from the call-site config block; at atom-scope validate, @config is allowed-but-unresolved."
1249
+ allowed: ["entity", "payload", "state", "now", "trait", "config", "user"],
1250
+ description: "Effects can access and modify entity fields, use payload data, embed another trait's live frame via @trait.X inside render-ui children, read trait config values (@config.X) for atoms parameterized by their call-site, and read the authenticated user context (@user.id, @user.role). At molecule/organism inline time, @config.X is substituted with the literal value from the call-site config block; at atom-scope validate, @config is allowed-but-unresolved."
1246
1251
  },
1247
1252
  tick: {
1248
- allowed: ["entity", "state", "now", "config"],
1249
- description: "Ticks can access entity fields, current state, time, and trait config (@config.X) for parameterized atoms. Same substitution semantics as guards/effects."
1253
+ allowed: ["entity", "state", "now", "config", "user"],
1254
+ description: "Ticks can access entity fields, current state, time, trait config (@config.X) for parameterized atoms, and the authenticated user context (@user.id, @user.role). Same substitution semantics as guards/effects."
1250
1255
  }
1251
1256
  };
1252
1257
  function validateBindingInContext(binding, context) {