@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.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-7NS0qVIh.d.ts → compose-behaviors-p4gl4sp1.d.ts} +1 -1
- package/dist/domain-language/index.d.ts +2 -2
- package/dist/domain-language/index.js.map +1 -1
- package/dist/{expression-CkBbMSmB.d.ts → expression-BVRFm0sV.d.ts} +5 -2
- package/dist/index.d.ts +14 -6
- package/dist/index.js +19 -17
- package/dist/index.js.map +1 -1
- package/dist/{schema-BAT_cYlE.d.ts → schema-B-92HhgX.d.ts} +12 -12
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/types/index.d.ts +15 -10
- package/dist/types/index.js +12 -7
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SExpr, b as EventPayload, d as Expression } from './expression-
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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 {
|
|
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 };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES,
|
|
3
|
-
import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr } from '../expression-
|
|
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-
|
|
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,
|
|
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,
|
|
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,
|
|
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;
|
package/dist/types/index.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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) {
|