@almadar/core 10.85.0 → 10.87.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.
Files changed (41) hide show
  1. package/dist/builders.d.ts +5 -4
  2. package/dist/builders.js +68 -29
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{effect-BgDiw_bG.d.ts → effect-DMA97JxX.d.ts} +22 -6
  5. package/dist/{entityAccess-DK5S_2cT.d.ts → entityAccess-DNDEF75i.d.ts} +2 -2
  6. package/dist/{expression-Fk8bQWef.d.ts → expression-WfTp2arD.d.ts} +2 -65
  7. package/dist/factory/index.d.ts +6 -5
  8. package/dist/factory/index.js +1194 -401
  9. package/dist/factory/index.js.map +1 -1
  10. package/dist/factory-runtime/index.d.ts +35 -5
  11. package/dist/factory-runtime/index.js +127 -52
  12. package/dist/factory-runtime/index.js.map +1 -1
  13. package/dist/i18n/index.d.ts +179 -0
  14. package/dist/i18n/index.js +2391 -0
  15. package/dist/i18n/index.js.map +1 -0
  16. package/dist/{index-ChYsqVJj.d.ts → index-xZP_Ajx3.d.ts} +18 -5
  17. package/dist/index.d.ts +82 -13
  18. package/dist/index.js +3765 -315
  19. package/dist/index.js.map +1 -1
  20. package/dist/json-D8gmyK3l.d.ts +65 -0
  21. package/dist/mock/index.d.ts +129 -12
  22. package/dist/mock/index.js +192 -61
  23. package/dist/mock/index.js.map +1 -1
  24. package/dist/patterns/component-mapping.json +1 -1
  25. package/dist/patterns/event-contracts.json +1 -1
  26. package/dist/patterns/index.d.ts +2525 -609
  27. package/dist/patterns/index.js +1238 -384
  28. package/dist/patterns/index.js.map +1 -1
  29. package/dist/patterns/integrators-registry.json +107 -23
  30. package/dist/patterns/patterns-registry.json +1170 -400
  31. package/dist/patterns/registry.json +1170 -400
  32. package/dist/patterns/services-registry.json +170 -35
  33. package/dist/{schema-BhfQb1oe.d.ts → schema-_SPrm5Ic.d.ts} +46381 -21335
  34. package/dist/state-machine/index.d.ts +2 -1
  35. package/dist/trait-9tfq2tQb.d.ts +10554 -0
  36. package/dist/types/index.d.ts +7 -6
  37. package/dist/types/index.js +132 -43
  38. package/dist/types/index.js.map +1 -1
  39. package/dist/{types-CCAmdxcH.d.ts → types-CjRjhiaO.d.ts} +19 -3
  40. package/package.json +7 -2
  41. package/dist/trait-pavNlGqm.d.ts +0 -5385
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { J as JsonValue, S as SExpr, R as RuntimeValue, a as EventPayload, E as Expression } from './expression-Fk8bQWef.js';
2
+ import { S as SExpr, a as EventPayload, E as Expression } from './expression-WfTp2arD.js';
3
+ import { J as JsonValue, R as RuntimeValue } from './json-D8gmyK3l.js';
3
4
 
4
5
  /**
5
6
  * Service Types for Orbital Schema
@@ -820,6 +821,14 @@ declare function idPrefix(kind: IdKind): string;
820
821
  declare function idKindOf(id: string): IdKind | null;
821
822
  /** Mint a fresh, opaque, kind-tagged id: `<prefix><ULID>`. */
822
823
  declare function mintId<K extends IdKind>(kind: K): IdForKind[K];
824
+ /**
825
+ * Deterministically derive a child id rooted in `parentId` — no entropy, no
826
+ * clock, so re-deriving from the same inputs never churns. JS twin of the
827
+ * Rust `derive_id` in `orbital-core/src/identity.rs`; used ONLY for synthetic
828
+ * nodes produced by deterministic materialization (orbital-import
829
+ * prefixing), never for author-facing fresh ids (use {@link mintId} there).
830
+ */
831
+ declare function deriveId(parentId: string, discriminator: string): string;
823
832
  /** Ledger row kind. `palette` entries are manifest ids, not name-ledger rows. */
824
833
  type LedgerKind = 'orbital' | 'entity' | 'trait' | 'event' | 'page' | 'service' | 'theme';
825
834
  /**
@@ -1010,7 +1019,7 @@ declare const IdentityLedgerSchema: z.ZodObject<{
1010
1019
  * { name: 'status', type: 'enum', values: ['draft', 'published'] }
1011
1020
  * { name: 'authorId', type: 'relation', relation: { entity: 'User', cardinality: 'one' } }
1012
1021
  */
1013
- type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'money' | 'file' | 'array' | 'object' | 'enum' | 'relation' | 'trait' | 'slot' | 'pattern' | 'node' | 'event' | 'scalar' | 'union' | 'opaque';
1022
+ type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'money' | 'file' | 'array' | 'object' | 'enum' | 'relation' | 'trait' | 'slot' | 'pattern' | 'node' | 'event' | 'scalar' | 'union';
1014
1023
  /** Every `FieldType`, as a runtime array. Downstream imports this instead of
1015
1024
  * re-listing the union — five copies had already drifted apart. */
1016
1025
  declare const FIELD_TYPES: readonly ["string", "number", "boolean", "date", "timestamp", "datetime", "email", "url", "phone", "uuid", "image", "money", "file", "array", "object", "enum", "relation", "trait", "slot", "pattern", "node", "event", "scalar", "union"];
@@ -1135,7 +1144,7 @@ declare function isSemanticStringValue(type: SemanticStringType, value: string):
1135
1144
  * Field-type tags that don't carry a type-dependent payload. The base
1136
1145
  * `EntityField` shape applies as-is.
1137
1146
  */
1138
- type ScalarFieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'money' | 'file' | 'trait' | 'slot' | 'pattern' | 'node' | 'event' | 'scalar' | 'opaque';
1147
+ type ScalarFieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'money' | 'file' | 'trait' | 'slot' | 'pattern' | 'node' | 'event' | 'scalar';
1139
1148
  /** Fields shared across every variant. */
1140
1149
  type EntityFieldBase = {
1141
1150
  /**
@@ -2410,6 +2419,7 @@ type OrbitalEntity = {
2410
2419
  };
2411
2420
  declare const OrbitalEntitySchema: z.ZodObject<{
2412
2421
  name: z.ZodString;
2422
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
2413
2423
  persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
2414
2424
  shared: z.ZodOptional<z.ZodBoolean>;
2415
2425
  identity: z.ZodOptional<z.ZodBoolean>;
@@ -2469,6 +2479,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
2469
2479
  name: string;
2470
2480
  persistence: "persistent" | "runtime";
2471
2481
  fields: EntityField[];
2482
+ id?: EntityId | undefined;
2472
2483
  description?: string | undefined;
2473
2484
  shared?: boolean | undefined;
2474
2485
  identity?: boolean | undefined;
@@ -2499,6 +2510,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
2499
2510
  }, {
2500
2511
  name: string;
2501
2512
  fields: unknown[];
2513
+ id?: string | undefined;
2502
2514
  description?: string | undefined;
2503
2515
  persistence?: "persistent" | "runtime" | undefined;
2504
2516
  shared?: boolean | undefined;
@@ -2534,6 +2546,7 @@ type Entity = OrbitalEntity;
2534
2546
  /** Alias for OrbitalEntitySchema - preferred name */
2535
2547
  declare const EntitySchema: z.ZodObject<{
2536
2548
  name: z.ZodString;
2549
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
2537
2550
  persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
2538
2551
  shared: z.ZodOptional<z.ZodBoolean>;
2539
2552
  identity: z.ZodOptional<z.ZodBoolean>;
@@ -2593,6 +2606,7 @@ declare const EntitySchema: z.ZodObject<{
2593
2606
  name: string;
2594
2607
  persistence: "persistent" | "runtime";
2595
2608
  fields: EntityField[];
2609
+ id?: EntityId | undefined;
2596
2610
  description?: string | undefined;
2597
2611
  shared?: boolean | undefined;
2598
2612
  identity?: boolean | undefined;
@@ -2623,6 +2637,7 @@ declare const EntitySchema: z.ZodObject<{
2623
2637
  }, {
2624
2638
  name: string;
2625
2639
  fields: unknown[];
2640
+ id?: string | undefined;
2626
2641
  description?: string | undefined;
2627
2642
  persistence?: "persistent" | "runtime" | undefined;
2628
2643
  shared?: boolean | undefined;
@@ -2790,7 +2805,7 @@ type EntityData = Record<string, EntityRow[]>;
2790
2805
  *
2791
2806
  * DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
2792
2807
  *
2793
- * Generated: 2026-09-05T01:37:56.433Z
2808
+ * Generated: 2026-09-07T02:55:20.579Z
2794
2809
  * Pattern count: 279
2795
2810
  */
2796
2811
 
@@ -3452,6 +3467,7 @@ interface PatternPropsMap {
3452
3467
  showLineNumbers?: boolean | string | SExpr;
3453
3468
  wordWrap?: boolean | string | SExpr;
3454
3469
  files?: unknown[] | string | SExpr;
3470
+ naturalLanguages?: unknown[] | string | SExpr;
3455
3471
  actions?: unknown[] | string | SExpr;
3456
3472
  isLoading?: boolean | string | SExpr;
3457
3473
  error?: PatternPropValue | string | SExpr;
@@ -7313,7 +7329,7 @@ declare function watch(binding: string, event: string, options: WatchOptions): W
7313
7329
  declare function atomic(...effects: SExpr[]): AtomicEffect;
7314
7330
  /** Resolved pattern props for render-ui effects at runtime. Recursive for nested pattern configs. */
7315
7331
  type ResolvedPatternProps = {
7316
- [prop: string]: string | number | boolean | null | undefined | ResolvedPatternProps | ResolvedPatternProps[];
7332
+ [prop: string]: string | number | boolean | null | undefined | ResolvedPatternProps | RenderChildrenMap | Array<ResolvedPatternProps | RenderChildrenMap>;
7317
7333
  };
7318
7334
  /** A node in a render-ui effect tree. */
7319
7335
  interface RenderUINode {
@@ -7328,4 +7344,4 @@ interface RenderUINode {
7328
7344
  renderItem?: RenderUINode;
7329
7345
  }
7330
7346
 
7331
- export { type CheckpointLoadEffect as $, type AnyPatternConfig as A, AssetCatalogEntrySchema as B, AssetCatalogSchema as C, type AssetDimension as D, type EntityField as E, type FieldValue as F, AssetDimensionSchema as G, AssetSchema as H, type IdentityLedger as I, type AssetUrl as J, type AtomicEffect as K, type AudioManifest as L, AudioManifestSchema as M, type BehaviorEffect as N, type OrbitalId as O, type PageId as P, CAMERA_MODES as Q, type RelationConfig as R, type ServiceRef as S, type TraitId as T, type UISlot as U, type CallServiceConfig as V, type CallServiceEffect as W, type Camera as X, type CameraMode as Y, CameraModeSchema as Z, CameraSchema as _, type EntityPersistence as a, type McpServiceDef as a$, type CheckpointSaveEffect as a0, type ComposeEffect as a1, type ControlValue as a2, DEFAULT_UNIT_ANIMATION_ROWS as a3, type DerefEffect as a4, type DespawnEffect as a5, type DoEffect as a6, ENTITY_ROLES as a7, type EffectInput as a8, EffectSchema as a9, type ForwardEffect as aA, type IdForKind as aB, type IdKind as aC, IdentityLedgerSchema as aD, type LedgerEntry as aE, LedgerEntrySchema as aF, type LedgerKind as aG, LedgerKindSchema as aH, type LlmEffect as aI, type LogEffect as aJ, MANIFEST_ASSET_LICENSES as aK, MANIFEST_CANVAS_AFFINITIES as aL, MANIFEST_ENTRY_KINDS as aM, MANIFEST_SOURCE_CATALOGS as aN, type ManifestAssetLicense as aO, ManifestAssetLicenseSchema as aP, type ManifestCanvasAffinity as aQ, ManifestCanvasAffinitySchema as aR, type ManifestEntry as aS, type ManifestEntryInput as aT, type ManifestEntryKind as aU, ManifestEntryKindSchema as aV, ManifestEntrySchema as aW, type ManifestFrameSpec as aX, ManifestFrameSpecSchema as aY, type ManifestSourceCatalog as aZ, ManifestSourceCatalogSchema as a_, type EmitConfig as aa, type EmitEffect as ab, type EntityData as ac, type EntityFieldInput as ad, EntityFieldSchema as ae, EntityIdSchema as af, EntityPersistenceSchema as ag, type EntityRole as ah, EntityRoleSchema as ai, EntitySchema as aj, type EntityWith as ak, type EnumEntityField as al, type EvaluateConfig as am, type EvaluateEffect as an, EventIdSchema as ao, FIELD_TYPES as ap, type FetchEffect as aq, type FetchOptions as ar, type FetchResult as as, type Field as at, FieldSchema as au, type FieldType as av, FieldTypeSchema as aw, type FileValue as ax, FileValueSchema as ay, type ForwardConfig as az, type EventId as b, type SocketEvents as b$, McpServiceDefSchema as b0, type MemoryEffect as b1, type NavigateBackEffect as b2, type NavigateEffect as b3, type NavigateOptions as b4, type NnConfig as b5, type NnLayer as b6, type NotifyEffect as b7, type ObjectEntityField as b8, type OrbitalEntity as b9, SEMANTIC_STRING_TYPES as bA, SERVICE_TYPES as bB, SHEET_PROJECTIONS as bC, SPRITE_DIRECTIONS as bD, SPRITE_SHEET_LAYOUT as bE, type ScalarEntityField as bF, type ScenePos as bG, ScenePosSchema as bH, type SemanticAssetRef as bI, type SemanticAssetRefInput as bJ, SemanticAssetRefSchema as bK, type SemanticStringType as bL, ServiceDefinitionSchema as bM, type ServiceId as bN, ServiceIdSchema as bO, type ServiceParams as bP, type ServiceParamsValue as bQ, type ServiceRefObject as bR, ServiceRefObjectSchema as bS, ServiceRefSchema as bT, ServiceRefStringSchema as bU, type ServiceType as bV, ServiceTypeSchema as bW, type SessionEffect as bX, type SetEffect as bY, type SheetProjection as bZ, SheetProjectionSchema as b_, type OrbitalEntityInput as ba, OrbitalEntitySchema as bb, OrbitalIdSchema as bc, type OsEffect as bd, PATTERN_TYPES as be, PageIdSchema as bf, type PaletteEntryId as bg, PaletteEntryIdSchema as bh, type PatternConfig as bi, type PatternProps as bj, type PatternPropsMap as bk, type PatternType as bl, type PersistData as bm, type PersistEffect as bn, type PersistEmitConfig as bo, type RefEffect as bp, RelationConfigSchema as bq, type RelationEntityField as br, type RenderChildrenMap as bs, type RenderItemLambda as bt, type RenderUINode as bu, type ResolvedPatternProps as bv, type RestAuthConfig as bw, RestAuthConfigSchema as bx, type RestServiceDef as by, RestServiceDefSchema as bz, type Effect as c, isFileValue as c$, SocketEventsSchema as c0, type SocketServiceDef as c1, SocketServiceDefSchema as c2, type SoundEntry as c3, SoundEntrySchema as c4, type SpawnEffect as c5, type SpriteDirection as c6, SpriteDirectionSchema as c7, type SpriteSheetAtlas as c8, type SpriteSheetAtlasInput as c9, asEventId as cA, asOrbitalId as cB, asPageId as cC, asPaletteEntryId as cD, asServiceId as cE, asThemeId as cF, asTraitId as cG, atomic as cH, callService as cI, createAssetKey as cJ, defaultUnitAtlas as cK, deref as cL, deriveCollection as cM, despawn as cN, doEffects as cO, emit as cP, findService as cQ, getDefaultAnimationsForRole as cR, getServiceNames as cS, hasService as cT, idKindOf as cU, idPrefix as cV, isEffect as cW, isEmailValue as cX, isEntityId as cY, isEventId as cZ, isFieldValue as c_, SpriteSheetAtlasSchema as ca, type SpriteSheetLayout as cb, type SubTexture as cc, SubTextureSchema as cd, type SwapEffect as ce, type TemplatePatternConfig as cf, type TextureAtlas as cg, TextureAtlasSchema as ch, type ThemeId as ci, ThemeIdSchema as cj, type Tilesheet as ck, TilesheetSchema as cl, type TraceEffect as cm, type TrainConfig as cn, type TrainEffect as co, TraitIdSchema as cp, type TypedEffect as cq, UISlotSchema as cr, UI_SLOTS as cs, VISUAL_STYLES as ct, type ValidateEffect as cu, type VisualStyle as cv, VisualStyleSchema as cw, type WatchEffect as cx, type WatchOptions as cy, asEntityId as cz, type EntityId as d, isMcpService as d0, isOrbitalId as d1, isPageId as d2, isPaletteEntryId as d3, isPhoneValue as d4, isRestService as d5, isRuntimeEntity as d6, isSExprEffect as d7, isSemanticStringType as d8, isSemanticStringValue as d9, set as dA, spawn as dB, swap as dC, validateAssetAnimations as dD, watch as dE, isServiceId as da, isServiceReference as db, isServiceReferenceObject as dc, isSocketService as dd, isThemeId as de, isTraitId as df, isUrlValue as dg, isUuidValue as dh, isValidPatternType as di, ledgerCurName as dj, ledgerRename as dk, ledgerResolveName as dl, manifestToAssetCatalog as dm, matchAssetQuery as dn, mintId as dp, navigate as dq, navigateBack as dr, notify as ds, parseAssetKey as dt, parseAssetQuery as du, parseServiceRef as dv, persist as dw, persistenceModeAllowsOverrides as dx, ref as dy, renderUI as dz, type Entity as e, type EntityRow as f, type ServiceDefinition as g, type RenderBinding as h, type RenderUIEffect as i, ANIMATION_NAMES as j, ASSET_ASPECTS as k, ASSET_DIMENSIONS as l, type AgentEffect as m, type AnimationDef as n, type AnimationDefInput as o, AnimationDefSchema as p, type AnimationName as q, AnimationNameSchema as r, type ApplicationEffect as s, type ArrayEntityField as t, type Asset as u, type AssetAspect as v, AssetAspectSchema as w, type AssetCatalog as x, type AssetCatalogEntry as y, type AssetCatalogEntryInput as z };
7347
+ export { CameraSchema as $, type AnyPatternConfig as A, type AssetCatalogEntryInput as B, AssetCatalogEntrySchema as C, AssetCatalogSchema as D, type EntityField as E, type FieldValue as F, type AssetDimension as G, AssetDimensionSchema as H, type IdentityLedger as I, AssetSchema as J, type AssetUrl as K, type AtomicEffect as L, type AudioManifest as M, AudioManifestSchema as N, type OrbitalId as O, type PageId as P, type BehaviorEffect as Q, type RelationConfig as R, type ServiceRef as S, type TraitId as T, type UISlot as U, CAMERA_MODES as V, type CallServiceConfig as W, type CallServiceEffect as X, type Camera as Y, type CameraMode as Z, CameraModeSchema as _, type EntityPersistence as a, ManifestSourceCatalogSchema as a$, type CheckpointLoadEffect as a0, type CheckpointSaveEffect as a1, type ComposeEffect as a2, type ControlValue as a3, DEFAULT_UNIT_ANIMATION_ROWS as a4, type DerefEffect as a5, type DespawnEffect as a6, type DoEffect as a7, ENTITY_ROLES as a8, type EffectInput as a9, type ForwardConfig as aA, type ForwardEffect as aB, type IdForKind as aC, type IdKind as aD, IdentityLedgerSchema as aE, type LedgerEntry as aF, LedgerEntrySchema as aG, type LedgerKind as aH, LedgerKindSchema as aI, type LlmEffect as aJ, type LogEffect as aK, MANIFEST_ASSET_LICENSES as aL, MANIFEST_CANVAS_AFFINITIES as aM, MANIFEST_ENTRY_KINDS as aN, MANIFEST_SOURCE_CATALOGS as aO, type ManifestAssetLicense as aP, ManifestAssetLicenseSchema as aQ, type ManifestCanvasAffinity as aR, ManifestCanvasAffinitySchema as aS, type ManifestEntry as aT, type ManifestEntryInput as aU, type ManifestEntryKind as aV, ManifestEntryKindSchema as aW, ManifestEntrySchema as aX, type ManifestFrameSpec as aY, ManifestFrameSpecSchema as aZ, type ManifestSourceCatalog as a_, EffectSchema as aa, type EmitConfig as ab, type EmitEffect as ac, type EntityData as ad, type EntityFieldInput as ae, EntityFieldSchema as af, EntityIdSchema as ag, EntityPersistenceSchema as ah, type EntityRole as ai, EntityRoleSchema as aj, EntitySchema as ak, type EntityWith as al, type EnumEntityField as am, type EvaluateConfig as an, type EvaluateEffect as ao, EventIdSchema as ap, FIELD_TYPES as aq, type FetchEffect as ar, type FetchOptions as as, type FetchResult as at, type Field as au, FieldSchema as av, type FieldType as aw, FieldTypeSchema as ax, type FileValue as ay, FileValueSchema as az, type EventId as b, type SocketEvents as b$, type McpServiceDef as b0, McpServiceDefSchema as b1, type MemoryEffect as b2, type NavigateBackEffect as b3, type NavigateEffect as b4, type NavigateOptions as b5, type NnConfig as b6, type NnLayer as b7, type NotifyEffect as b8, type ObjectEntityField as b9, SEMANTIC_STRING_TYPES as bA, SERVICE_TYPES as bB, SHEET_PROJECTIONS as bC, SPRITE_DIRECTIONS as bD, SPRITE_SHEET_LAYOUT as bE, type ScalarEntityField as bF, type ScenePos as bG, ScenePosSchema as bH, type SemanticAssetRef as bI, type SemanticAssetRefInput as bJ, SemanticAssetRefSchema as bK, type SemanticStringType as bL, ServiceDefinitionSchema as bM, type ServiceId as bN, ServiceIdSchema as bO, type ServiceParams as bP, type ServiceParamsValue as bQ, type ServiceRefObject as bR, ServiceRefObjectSchema as bS, ServiceRefSchema as bT, ServiceRefStringSchema as bU, type ServiceType as bV, ServiceTypeSchema as bW, type SessionEffect as bX, type SetEffect as bY, type SheetProjection as bZ, SheetProjectionSchema as b_, type OrbitalEntityInput as ba, OrbitalEntitySchema as bb, OrbitalIdSchema as bc, type OsEffect as bd, PATTERN_TYPES as be, PageIdSchema as bf, type PaletteEntryId as bg, PaletteEntryIdSchema as bh, type PatternConfig as bi, type PatternProps as bj, type PatternPropsMap as bk, type PatternType as bl, type PersistData as bm, type PersistEffect as bn, type PersistEmitConfig as bo, type RefEffect as bp, RelationConfigSchema as bq, type RelationEntityField as br, type RenderChildrenMap as bs, type RenderItemLambda as bt, type RenderUINode as bu, type ResolvedPatternProps as bv, type RestAuthConfig as bw, RestAuthConfigSchema as bx, type RestServiceDef as by, RestServiceDefSchema as bz, type Effect as c, isFieldValue as c$, SocketEventsSchema as c0, type SocketServiceDef as c1, SocketServiceDefSchema as c2, type SoundEntry as c3, SoundEntrySchema as c4, type SpawnEffect as c5, type SpriteDirection as c6, SpriteDirectionSchema as c7, type SpriteSheetAtlas as c8, type SpriteSheetAtlasInput as c9, asEventId as cA, asOrbitalId as cB, asPageId as cC, asPaletteEntryId as cD, asServiceId as cE, asThemeId as cF, asTraitId as cG, atomic as cH, callService as cI, createAssetKey as cJ, defaultUnitAtlas as cK, deref as cL, deriveCollection as cM, deriveId as cN, despawn as cO, doEffects as cP, emit as cQ, findService as cR, getDefaultAnimationsForRole as cS, getServiceNames as cT, hasService as cU, idKindOf as cV, idPrefix as cW, isEffect as cX, isEmailValue as cY, isEntityId as cZ, isEventId as c_, SpriteSheetAtlasSchema as ca, type SpriteSheetLayout as cb, type SubTexture as cc, SubTextureSchema as cd, type SwapEffect as ce, type TemplatePatternConfig as cf, type TextureAtlas as cg, TextureAtlasSchema as ch, type ThemeId as ci, ThemeIdSchema as cj, type Tilesheet as ck, TilesheetSchema as cl, type TraceEffect as cm, type TrainConfig as cn, type TrainEffect as co, TraitIdSchema as cp, type TypedEffect as cq, UISlotSchema as cr, UI_SLOTS as cs, VISUAL_STYLES as ct, type ValidateEffect as cu, type VisualStyle as cv, VisualStyleSchema as cw, type WatchEffect as cx, type WatchOptions as cy, asEntityId as cz, type EntityId as d, isFileValue as d0, isMcpService as d1, isOrbitalId as d2, isPageId as d3, isPaletteEntryId as d4, isPhoneValue as d5, isRestService as d6, isRuntimeEntity as d7, isSExprEffect as d8, isSemanticStringType as d9, renderUI as dA, set as dB, spawn as dC, swap as dD, validateAssetAnimations as dE, watch as dF, isSemanticStringValue as da, isServiceId as db, isServiceReference as dc, isServiceReferenceObject as dd, isSocketService as de, isThemeId as df, isTraitId as dg, isUrlValue as dh, isUuidValue as di, isValidPatternType as dj, ledgerCurName as dk, ledgerRename as dl, ledgerResolveName as dm, manifestToAssetCatalog as dn, matchAssetQuery as dp, mintId as dq, navigate as dr, navigateBack as ds, notify as dt, parseAssetKey as du, parseAssetQuery as dv, parseServiceRef as dw, persist as dx, persistenceModeAllowsOverrides as dy, ref as dz, type Entity as e, type OrbitalEntity as f, type EntityRow as g, type ServiceDefinition as h, type RenderBinding as i, type RenderUIEffect as j, ANIMATION_NAMES as k, ASSET_ASPECTS as l, ASSET_DIMENSIONS as m, type AgentEffect as n, type AnimationDef as o, type AnimationDefInput as p, AnimationDefSchema as q, type AnimationName as r, AnimationNameSchema as s, type ApplicationEffect as t, type ArrayEntityField as u, type Asset as v, type AssetAspect as w, AssetAspectSchema as x, type AssetCatalog as y, type AssetCatalogEntry as z };
@@ -1,5 +1,5 @@
1
- import { O as OrbitalSchema } from './schema-BhfQb1oe.js';
2
- import { S as SExpr } from './expression-Fk8bQWef.js';
1
+ import { O as OrbitalSchema } from './schema-_SPrm5Ic.js';
2
+ import { S as SExpr } from './expression-WfTp2arD.js';
3
3
 
4
4
  /**
5
5
  * Entity access policies — the declared `@read`/`@create`/`@update`/`@delete`
@@ -1,68 +1,5 @@
1
1
  import { z } from 'zod';
2
-
3
- /**
4
- * JSON primitives — the universal "data crossed a boundary" type.
5
- *
6
- * Every value that arrives over the wire from an LLM (tool-call args),
7
- * from disk (workspace files), or from an HTTP body before
8
- * domain-specific validation is a `JsonValue`. Narrow with a typed
9
- * predicate (`is`-guard) at the boundary; don't widen back to `unknown`.
10
- *
11
- * `JsonObject` and `ToolArgs` are aliases for the common
12
- * `Record<string, JsonValue>` shape. `ToolArgs` is the name the
13
- * agent surface uses for LLM-emitted tool-call arguments; `JsonObject`
14
- * is the general-purpose alias. They are the same type — the alias
15
- * exists so call sites read at the right semantic level.
16
- *
17
- * Why not `Record<string, unknown>`? Two reasons. (1) `unknown` widens
18
- * back to anything, which defeats the purpose of typing the boundary.
19
- * (2) The `@almadar/eslint-plugin/no-record-string-unknown` rule blocks
20
- * the wider form — `JsonValue`-based records are the typed answer.
21
- *
22
- * @packageDocumentation
23
- */
24
-
25
- /**
26
- * Recursive JSON value union — every shape JSON can carry.
27
- */
28
- type JsonValue = string | number | boolean | null | JsonValue[] | {
29
- [key: string]: JsonValue;
30
- };
31
- /**
32
- * JSON object — keyed string→JsonValue. The wire form of arbitrary
33
- * structured data. Replaces `Record<string, unknown>` at typed
34
- * boundaries (LLM emits, file reads, HTTP bodies).
35
- */
36
- type JsonObject = {
37
- [key: string]: JsonValue;
38
- };
39
- /**
40
- * LLM tool-call arguments — same shape as `JsonObject`, named for the
41
- * agent-surface call site. Each tool's `execute(args: ToolArgs)`
42
- * receives this and narrows via an `is`-guard predicate before any
43
- * field access.
44
- */
45
- type ToolArgs = JsonObject;
46
- /**
47
- * Universal type-guard input — every runtime value shape a predicate can
48
- * be handed, enumerated instead of `unknown` (the repo bans `unknown`
49
- * even at guard boundaries). Primitives cover every `typeof` result;
50
- * `object` covers arrays, records, class instances, and functions.
51
- */
52
- type RuntimeValue = string | number | bigint | boolean | symbol | Date | null | undefined | object;
53
- /**
54
- * Type guard: is the given value a JSON primitive (non-array,
55
- * non-object)? Used by walkers that decide whether to recurse.
56
- */
57
- declare function isJsonPrimitive(value: JsonValue): value is string | number | boolean | null;
58
- /**
59
- * Type guard: is the given value a JSON object (non-array, non-null)?
60
- */
61
- declare function isJsonObject(value: JsonValue): value is JsonObject;
62
- /**
63
- * Type guard: is the given value a JSON array?
64
- */
65
- declare function isJsonArray(value: JsonValue): value is JsonValue[];
2
+ import { R as RuntimeValue } from './json-D8gmyK3l.js';
66
3
 
67
4
  /**
68
5
  * S-Expression Types
@@ -315,4 +252,4 @@ interface LogMeta {
315
252
  [key: string]: LogMetaValue;
316
253
  }
317
254
 
318
- export { parseBinding as A, sexpr as B, CORE_BINDINGS as C, walkSExpr as D, type Expression as E, type JsonValue as J, type LogMeta as L, type ParsedBinding as P, type RuntimeValue as R, type SExpr as S, type ToolArgs as T, type EventPayload as a, type CoreBinding as b, type EvalContext as c, type EventPayloadValue as d, type ExpressionInput as e, ExpressionSchema as f, type JsonObject as g, type LogMetaValue as h, type SExprAtom as i, SExprAtomSchema as j, SExprDataSchema as k, type SExprInput as l, type SExprObject as m, SExprSchema as n, collectBindings as o, getArgs as p, getOperator as q, isBinding as r, isEventPayloadValue as s, isJsonArray as t, isJsonObject as u, isJsonPrimitive as v, isSExpr as w, isSExprAtom as x, isSExprCall as y, isValidBinding as z };
255
+ export { CORE_BINDINGS as C, type Expression as E, type LogMeta as L, type ParsedBinding as P, type SExpr as S, type EventPayload as a, type EventPayloadValue as b, type CoreBinding as c, type EvalContext as d, type ExpressionInput as e, ExpressionSchema as f, type LogMetaValue as g, type SExprAtom as h, SExprAtomSchema as i, SExprDataSchema as j, type SExprInput as k, type SExprObject as l, SExprSchema as m, collectBindings as n, getArgs as o, getOperator as p, isBinding as q, isEventPayloadValue as r, isSExpr as s, isSExprAtom as t, isSExprCall as u, isValidBinding as v, parseBinding as w, sexpr as x, walkSExpr as y };
@@ -1,9 +1,10 @@
1
- import { k as FactorySignatureCatalog, h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay, J as JsonSchema } from '../types-CCAmdxcH.js';
2
- export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-CCAmdxcH.js';
3
- import { a as EntityPersistence, E as EntityField } from '../effect-BgDiw_bG.js';
4
- import { a as TraitReference } from '../trait-pavNlGqm.js';
5
- export { J as JsonValue } from '../expression-Fk8bQWef.js';
1
+ import { k as FactorySignatureCatalog, h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay, J as JsonSchema } from '../types-CjRjhiaO.js';
2
+ export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-CjRjhiaO.js';
3
+ import { a as EntityPersistence, E as EntityField } from '../effect-DMA97JxX.js';
4
+ import { a as TraitReference } from '../trait-9tfq2tQb.js';
5
+ export { J as JsonValue } from '../json-D8gmyK3l.js';
6
6
  import 'zod';
7
+ import '../expression-WfTp2arD.js';
7
8
 
8
9
  /**
9
10
  * Rehydrate `overridableConfigKeys` from a catalog's `knobDefs` table,