@almadar/core 10.35.0 → 10.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builders-CBL9rED-.d.ts → builders-CBdyt_gd.d.ts} +87 -87
- package/dist/builders.d.ts +2 -2
- package/dist/builders.js +10 -1
- package/dist/builders.js.map +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/factory-runtime/index.d.ts +2 -2
- package/dist/factory-runtime/index.js +10 -1
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +78 -7
- package/dist/index.js +154 -2
- package/dist/index.js.map +1 -1
- package/dist/{trait-X5mQAMtW.d.ts → trait-CEO7o8Ne.d.ts} +32 -19
- package/dist/types/index.d.ts +112 -7
- package/dist/types/index.js +80 -2
- package/dist/types/index.js.map +1 -1
- package/dist/{types-DujRcijG.d.ts → types-1YGQKdbm.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -631,11 +631,24 @@ type TraitTick = {
|
|
|
631
631
|
/** V4 dual-carry id sibling of `emits` — optional until the Phase-7 flip. */
|
|
632
632
|
emitIds?: EventId[];
|
|
633
633
|
};
|
|
634
|
+
/**
|
|
635
|
+
* A tick's cadence: `"frame"`, a positive number of milliseconds, a duration
|
|
636
|
+
* string, or a cron expression.
|
|
637
|
+
*
|
|
638
|
+
* This schema previously accepted only `"frame"` or a number, while `TraitTick`
|
|
639
|
+
* declared `string | number` and BOTH schedulers already parsed durations and cron
|
|
640
|
+
* (`OrbitalServerRuntime.registerTick` → `isValidCronExpression`/
|
|
641
|
+
* `parseDurationString`; Rust `TickScheduler::parse_interval` → `cron::parse_cron`).
|
|
642
|
+
* The gate therefore rejected every cron/duration tick before its runtime could
|
|
643
|
+
* run it — `std-data-erasure`'s hourly `executionScan` made the whole orbital
|
|
644
|
+
* unloadable in the interpreter with only `traits.N: Invalid input` to go on.
|
|
645
|
+
*/
|
|
646
|
+
declare const TickIntervalSchema: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber, z.ZodEffects<z.ZodString, string, string>]>;
|
|
634
647
|
declare const TraitTickSchema: z.ZodObject<{
|
|
635
648
|
name: z.ZodString;
|
|
636
649
|
description: z.ZodOptional<z.ZodString>;
|
|
637
650
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
638
|
-
interval: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber]>;
|
|
651
|
+
interval: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber, z.ZodEffects<z.ZodString, string, string>]>;
|
|
639
652
|
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
640
653
|
pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
641
654
|
pageIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PageId, string>, "many">>;
|
|
@@ -646,7 +659,7 @@ declare const TraitTickSchema: z.ZodObject<{
|
|
|
646
659
|
}, "strip", z.ZodTypeAny, {
|
|
647
660
|
name: string;
|
|
648
661
|
effects: unknown[][];
|
|
649
|
-
interval:
|
|
662
|
+
interval: string | number;
|
|
650
663
|
description?: string | undefined;
|
|
651
664
|
pages?: string[] | undefined;
|
|
652
665
|
guard?: SExpr | undefined;
|
|
@@ -658,7 +671,7 @@ declare const TraitTickSchema: z.ZodObject<{
|
|
|
658
671
|
}, {
|
|
659
672
|
name: string;
|
|
660
673
|
effects: unknown[][];
|
|
661
|
-
interval:
|
|
674
|
+
interval: string | number;
|
|
662
675
|
description?: string | undefined;
|
|
663
676
|
pages?: string[] | undefined;
|
|
664
677
|
guard?: SExpr | undefined;
|
|
@@ -1633,7 +1646,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
1633
1646
|
name: z.ZodString;
|
|
1634
1647
|
description: z.ZodOptional<z.ZodString>;
|
|
1635
1648
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1636
|
-
interval: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber]>;
|
|
1649
|
+
interval: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber, z.ZodEffects<z.ZodString, string, string>]>;
|
|
1637
1650
|
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1638
1651
|
pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1639
1652
|
pageIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PageId, string>, "many">>;
|
|
@@ -1644,7 +1657,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
1644
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1645
1658
|
name: string;
|
|
1646
1659
|
effects: unknown[][];
|
|
1647
|
-
interval:
|
|
1660
|
+
interval: string | number;
|
|
1648
1661
|
description?: string | undefined;
|
|
1649
1662
|
pages?: string[] | undefined;
|
|
1650
1663
|
guard?: SExpr | undefined;
|
|
@@ -1656,7 +1669,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
1656
1669
|
}, {
|
|
1657
1670
|
name: string;
|
|
1658
1671
|
effects: unknown[][];
|
|
1659
|
-
interval:
|
|
1672
|
+
interval: string | number;
|
|
1660
1673
|
description?: string | undefined;
|
|
1661
1674
|
pages?: string[] | undefined;
|
|
1662
1675
|
guard?: SExpr | undefined;
|
|
@@ -1999,7 +2012,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
1999
2012
|
ticks?: {
|
|
2000
2013
|
name: string;
|
|
2001
2014
|
effects: unknown[][];
|
|
2002
|
-
interval:
|
|
2015
|
+
interval: string | number;
|
|
2003
2016
|
description?: string | undefined;
|
|
2004
2017
|
pages?: string[] | undefined;
|
|
2005
2018
|
guard?: SExpr | undefined;
|
|
@@ -2145,7 +2158,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
2145
2158
|
ticks?: {
|
|
2146
2159
|
name: string;
|
|
2147
2160
|
effects: unknown[][];
|
|
2148
|
-
interval:
|
|
2161
|
+
interval: string | number;
|
|
2149
2162
|
description?: string | undefined;
|
|
2150
2163
|
pages?: string[] | undefined;
|
|
2151
2164
|
guard?: SExpr | undefined;
|
|
@@ -2437,7 +2450,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2437
2450
|
name: z.ZodString;
|
|
2438
2451
|
description: z.ZodOptional<z.ZodString>;
|
|
2439
2452
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
2440
|
-
interval: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber]>;
|
|
2453
|
+
interval: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber, z.ZodEffects<z.ZodString, string, string>]>;
|
|
2441
2454
|
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2442
2455
|
pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2443
2456
|
pageIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PageId, string>, "many">>;
|
|
@@ -2448,7 +2461,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2448
2461
|
}, "strip", z.ZodTypeAny, {
|
|
2449
2462
|
name: string;
|
|
2450
2463
|
effects: unknown[][];
|
|
2451
|
-
interval:
|
|
2464
|
+
interval: string | number;
|
|
2452
2465
|
description?: string | undefined;
|
|
2453
2466
|
pages?: string[] | undefined;
|
|
2454
2467
|
guard?: SExpr | undefined;
|
|
@@ -2460,7 +2473,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2460
2473
|
}, {
|
|
2461
2474
|
name: string;
|
|
2462
2475
|
effects: unknown[][];
|
|
2463
|
-
interval:
|
|
2476
|
+
interval: string | number;
|
|
2464
2477
|
description?: string | undefined;
|
|
2465
2478
|
pages?: string[] | undefined;
|
|
2466
2479
|
guard?: SExpr | undefined;
|
|
@@ -2803,7 +2816,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2803
2816
|
ticks?: {
|
|
2804
2817
|
name: string;
|
|
2805
2818
|
effects: unknown[][];
|
|
2806
|
-
interval:
|
|
2819
|
+
interval: string | number;
|
|
2807
2820
|
description?: string | undefined;
|
|
2808
2821
|
pages?: string[] | undefined;
|
|
2809
2822
|
guard?: SExpr | undefined;
|
|
@@ -2949,7 +2962,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2949
2962
|
ticks?: {
|
|
2950
2963
|
name: string;
|
|
2951
2964
|
effects: unknown[][];
|
|
2952
|
-
interval:
|
|
2965
|
+
interval: string | number;
|
|
2953
2966
|
description?: string | undefined;
|
|
2954
2967
|
pages?: string[] | undefined;
|
|
2955
2968
|
guard?: SExpr | undefined;
|
|
@@ -3311,7 +3324,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3311
3324
|
name: z.ZodString;
|
|
3312
3325
|
description: z.ZodOptional<z.ZodString>;
|
|
3313
3326
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
3314
|
-
interval: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber]>;
|
|
3327
|
+
interval: z.ZodUnion<[z.ZodLiteral<"frame">, z.ZodNumber, z.ZodEffects<z.ZodString, string, string>]>;
|
|
3315
3328
|
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3316
3329
|
pages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3317
3330
|
pageIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PageId, string>, "many">>;
|
|
@@ -3322,7 +3335,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3322
3335
|
}, "strip", z.ZodTypeAny, {
|
|
3323
3336
|
name: string;
|
|
3324
3337
|
effects: unknown[][];
|
|
3325
|
-
interval:
|
|
3338
|
+
interval: string | number;
|
|
3326
3339
|
description?: string | undefined;
|
|
3327
3340
|
pages?: string[] | undefined;
|
|
3328
3341
|
guard?: SExpr | undefined;
|
|
@@ -3334,7 +3347,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3334
3347
|
}, {
|
|
3335
3348
|
name: string;
|
|
3336
3349
|
effects: unknown[][];
|
|
3337
|
-
interval:
|
|
3350
|
+
interval: string | number;
|
|
3338
3351
|
description?: string | undefined;
|
|
3339
3352
|
pages?: string[] | undefined;
|
|
3340
3353
|
guard?: SExpr | undefined;
|
|
@@ -3677,7 +3690,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3677
3690
|
ticks?: {
|
|
3678
3691
|
name: string;
|
|
3679
3692
|
effects: unknown[][];
|
|
3680
|
-
interval:
|
|
3693
|
+
interval: string | number;
|
|
3681
3694
|
description?: string | undefined;
|
|
3682
3695
|
pages?: string[] | undefined;
|
|
3683
3696
|
guard?: SExpr | undefined;
|
|
@@ -3823,7 +3836,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3823
3836
|
ticks?: {
|
|
3824
3837
|
name: string;
|
|
3825
3838
|
effects: unknown[][];
|
|
3826
|
-
interval:
|
|
3839
|
+
interval: string | number;
|
|
3827
3840
|
description?: string | undefined;
|
|
3828
3841
|
pages?: string[] | undefined;
|
|
3829
3842
|
guard?: SExpr | undefined;
|
|
@@ -3861,4 +3874,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3861
3874
|
} | undefined;
|
|
3862
3875
|
}>]>;
|
|
3863
3876
|
|
|
3864
|
-
export {
|
|
3877
|
+
export { type TraitEventContract as $, RequiredFieldSchema as A, type StateInput as B, type CallSiteConfig as C, type DeclaredTraitConfig as D, type EntityFieldContract as E, type StateMachine as F, type Guard as G, type StateMachineInput as H, StateMachineSchema as I, StateSchema as J, TickIntervalSchema as K, type ListenSource as L, type TraitCategory as M, TraitCategorySchema as N, type OrbitalTraitRef as O, type PayloadField as P, type TraitConfigObject as Q, REFERENCE_CONFIG_TYPES as R, type State as S, type TraitEventListener as T, TraitConfigSchema as U, type TraitConfigValue as V, TraitConfigValueSchema as W, type TraitDataEntity as X, TraitDataEntitySchema as Y, type TraitEntityField as Z, TraitEntityFieldSchema as _, type TraitReference as a, TraitEventContractSchema as a0, TraitEventListenerSchema as a1, type TraitInput as a2, type TraitRef as a3, TraitRefSchema as a4, type TraitReferenceInput as a5, TraitReferenceSchema as a6, TraitSchema as a7, type TraitTick as a8, TraitTickSchema as a9, type TraitUIBinding as aa, type Transition as ab, type TransitionInput as ac, TransitionSchema as ad, configRefEventKnob as ae, getTraitConfig as af, getTraitName as ag, isCallSiteConfigDeclaration as ah, isCircuitEvent as ai, isInlineTrait as aj, isReferenceConfigType as ak, normalizeCallSiteConfigToValues as al, normalizeTraitRef as am, resolveConfigRefEventName as an, type TraitScope as ao, type CallSiteConfigEntry as b, type Trait as c, type TraitConfig as d, CONFIG_REF_EVENT_PATTERN as e, type ConfigFieldDeclaration as f, ConfigFieldDeclarationSchema as g, type ConfigFieldItemsDeclaration as h, type ConfigRefEventError as i, DeclaredTraitConfigSchema as j, EntityFieldContractSchema as k, type Event as l, type EventInput as m, type EventPayloadField as n, EventPayloadFieldSchema as o, EventSchema as p, type EventScope as q, EventScopeSchema as r, type GuardInput as s, GuardSchema as t, ListenSourceSchema as u, OrbitalTraitRefSchema as v, PayloadFieldSchema as w, type PresentationType as x, type ReferenceConfigType as y, type RequiredField as z };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence, bn as ServiceParams,
|
|
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-CBdyt_gd.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-CBdyt_gd.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
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,
|
|
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,
|
|
10
|
-
import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-
|
|
8
|
+
import { a as TraitReference, c as Trait, L as ListenSource, D as DeclaredTraitConfig, d as TraitConfig, f as ConfigFieldDeclaration, S as State, ab as Transition, l as Event, V as TraitConfigValue, M as TraitCategory, ao as TraitScope } from '../trait-CEO7o8Ne.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, K as TickIntervalSchema, N as TraitCategorySchema, Q as TraitConfigObject, U as TraitConfigSchema, W as TraitConfigValueSchema, X as TraitDataEntity, Y as TraitDataEntitySchema, Z as TraitEntityField, _ as TraitEntityFieldSchema, $ as TraitEventContract, a0 as TraitEventContractSchema, T as TraitEventListener, a1 as TraitEventListenerSchema, a2 as TraitInput, a3 as TraitRef, a4 as TraitRefSchema, a5 as TraitReferenceInput, a6 as TraitReferenceSchema, a7 as TraitSchema, a8 as TraitTick, a9 as TraitTickSchema, aa as TraitUIBinding, ac as TransitionInput, ad as TransitionSchema, ae as configRefEventKnob, af as getTraitConfig, ag as getTraitName, ah as isCallSiteConfigDeclaration, ai as isCircuitEvent, aj as isInlineTrait, ak as isReferenceConfigType, al as normalizeCallSiteConfigToValues, am as normalizeTraitRef, an as resolveConfigRefEventName } from '../trait-CEO7o8Ne.js';
|
|
10
|
+
import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-1YGQKdbm.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.
|
|
@@ -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 };
|
package/dist/types/index.js
CHANGED
|
@@ -829,11 +829,20 @@ var TraitDataEntitySchema = z.object({
|
|
|
829
829
|
singleton: z.boolean().optional(),
|
|
830
830
|
pages: z.array(z.string()).optional()
|
|
831
831
|
});
|
|
832
|
+
var DURATION_INTERVAL = /^\d+(ms|s|m|h|d)$/;
|
|
833
|
+
var CRON_INTERVAL = /^\S+(\s+\S+){4}$/;
|
|
834
|
+
var TickIntervalSchema = z.union([
|
|
835
|
+
z.literal("frame"),
|
|
836
|
+
z.number().positive(),
|
|
837
|
+
z.string().refine((v) => DURATION_INTERVAL.test(v) || CRON_INTERVAL.test(v), {
|
|
838
|
+
message: 'interval must be "frame", a positive number of milliseconds, a duration ("500ms"/"5s"/"1m"/"1h"/"1d"), or a 5-field cron expression ("0 9 * * *")'
|
|
839
|
+
})
|
|
840
|
+
]);
|
|
832
841
|
var TraitTickSchema = z.object({
|
|
833
842
|
name: z.string().min(1),
|
|
834
843
|
description: z.string().optional(),
|
|
835
844
|
priority: z.number().optional(),
|
|
836
|
-
interval:
|
|
845
|
+
interval: TickIntervalSchema,
|
|
837
846
|
appliesTo: z.array(z.string()).optional(),
|
|
838
847
|
pages: z.array(z.string()).optional(),
|
|
839
848
|
pageIds: z.array(PageIdSchema).optional(),
|
|
@@ -1923,6 +1932,75 @@ function isTraitFieldRef(value) {
|
|
|
1923
1932
|
}
|
|
1924
1933
|
var TraitFieldRefSchema = z.string().regex(TRAIT_REF_PATTERN, "expected `@trait.<TraitName>` reference");
|
|
1925
1934
|
|
|
1935
|
+
// src/types/user.ts
|
|
1936
|
+
var ANONYMOUS_USER = {
|
|
1937
|
+
id: "anonymous",
|
|
1938
|
+
role: "anonymous",
|
|
1939
|
+
permissions: []
|
|
1940
|
+
};
|
|
1941
|
+
var DERIVED_CLAIM_KEYS = ["id", "name", "displayName", "email"];
|
|
1942
|
+
function normalizeUserContext(claims) {
|
|
1943
|
+
if (!claims) return void 0;
|
|
1944
|
+
const id = claims.id ?? claims.uid;
|
|
1945
|
+
if (typeof id !== "string" || id.length === 0) return void 0;
|
|
1946
|
+
const user = { id };
|
|
1947
|
+
for (const [key, value] of Object.entries(claims)) {
|
|
1948
|
+
if (value === void 0 || DERIVED_CLAIM_KEYS.includes(key)) continue;
|
|
1949
|
+
user[key] = value;
|
|
1950
|
+
}
|
|
1951
|
+
const name = claims.name ?? claims.displayName;
|
|
1952
|
+
if (typeof name === "string" && name.length > 0) user.name = name;
|
|
1953
|
+
if (typeof claims.email === "string" && claims.email.length > 0) user.email = claims.email;
|
|
1954
|
+
return user;
|
|
1955
|
+
}
|
|
1956
|
+
var MOCK_PERSONAS = [
|
|
1957
|
+
{ id: "admin-1", name: "Ada Admin", email: "ada@example.com", role: "admin", permissions: ["read", "write", "delete"] },
|
|
1958
|
+
{ id: "staff-1", name: "Sam Staff", email: "sam@example.com", role: "staff", permissions: ["read", "write"] },
|
|
1959
|
+
{ id: "member-1", name: "Maya Member", email: "maya@example.com", role: "member", permissions: ["read"] },
|
|
1960
|
+
{ id: "customer-1", name: "Cai Customer", email: "cai@example.com", role: "customer", permissions: ["read"] }
|
|
1961
|
+
];
|
|
1962
|
+
function findMockPersona(idOrRole) {
|
|
1963
|
+
return MOCK_PERSONAS.find((p) => p.id === idOrRole) ?? MOCK_PERSONAS.find((p) => p.role === idOrRole);
|
|
1964
|
+
}
|
|
1965
|
+
function resolvePersonaSpec(spec) {
|
|
1966
|
+
const raw = spec.trim();
|
|
1967
|
+
if (!raw.startsWith("{")) {
|
|
1968
|
+
const seeded = findMockPersona(raw);
|
|
1969
|
+
if (!seeded) {
|
|
1970
|
+
throw new Error(
|
|
1971
|
+
`Persona "${raw}" is not a seeded persona id or role. Known: ${MOCK_PERSONAS.map((p) => `${p.id}/${p.role}`).join(", ")}`
|
|
1972
|
+
);
|
|
1973
|
+
}
|
|
1974
|
+
return seeded;
|
|
1975
|
+
}
|
|
1976
|
+
let claims;
|
|
1977
|
+
try {
|
|
1978
|
+
claims = JSON.parse(raw);
|
|
1979
|
+
} catch {
|
|
1980
|
+
throw new Error(`Persona is not valid JSON: ${raw}`);
|
|
1981
|
+
}
|
|
1982
|
+
const user = normalizeUserContext(claims);
|
|
1983
|
+
if (!user) {
|
|
1984
|
+
throw new Error(`Persona needs an "id" (or "uid"): ${raw}`);
|
|
1985
|
+
}
|
|
1986
|
+
return user;
|
|
1987
|
+
}
|
|
1988
|
+
var DEV_TOKEN_PREFIX = "almadar-dev.";
|
|
1989
|
+
function encodeDevIdentityToken(user) {
|
|
1990
|
+
return DEV_TOKEN_PREFIX + encodeURIComponent(JSON.stringify(user));
|
|
1991
|
+
}
|
|
1992
|
+
function decodeDevIdentityToken(token) {
|
|
1993
|
+
if (!token.startsWith(DEV_TOKEN_PREFIX)) return void 0;
|
|
1994
|
+
try {
|
|
1995
|
+
const claims = JSON.parse(
|
|
1996
|
+
decodeURIComponent(token.slice(DEV_TOKEN_PREFIX.length))
|
|
1997
|
+
);
|
|
1998
|
+
return normalizeUserContext(claims);
|
|
1999
|
+
} catch {
|
|
2000
|
+
return void 0;
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
|
|
1926
2004
|
// src/types/agent.ts
|
|
1927
2005
|
function isSessionHistoryEntry(value) {
|
|
1928
2006
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -2536,6 +2614,6 @@ function widenTier(tier) {
|
|
|
2536
2614
|
return tier;
|
|
2537
2615
|
}
|
|
2538
2616
|
|
|
2539
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, callService, collectBindings, configRefEventKnob, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, idKindOf, idPrefix, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPlanSnapshot, isReferenceConfigType, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mintId, navigate, normalizeCallSiteConfigToValues, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, resolveConfigRefEventName, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
|
|
2617
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, MOCK_PERSONAS, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TickIntervalSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, callService, collectBindings, configRefEventKnob, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, despawn, doEffects, emit, encodeDevIdentityToken, findMockPersona, findService, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, idKindOf, idPrefix, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPlanSnapshot, isReferenceConfigType, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mintId, navigate, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, resolveConfigRefEventName, resolvePersonaSpec, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
|
|
2540
2618
|
//# sourceMappingURL=index.js.map
|
|
2541
2619
|
//# sourceMappingURL=index.js.map
|