@almadar/core 10.97.0 → 10.100.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 (101) hide show
  1. package/README.md +25 -0
  2. package/dist/builders.d.ts +5 -4
  3. package/dist/builders.js +62 -34
  4. package/dist/builders.js.map +1 -1
  5. package/dist/bus-D69s_77B.d.ts +588 -0
  6. package/dist/domain-Ds_7wZIL.d.ts +16213 -0
  7. package/dist/{effect-Bw8T4qh5.d.ts → effect-Hm_QDaSI.d.ts} +65 -4
  8. package/dist/{entityAccess-DfoXs9mc.d.ts → entityAccess-DdcKps16.d.ts} +3 -3
  9. package/dist/{expression-WfTp2arD.d.ts → expression-DRwzVnMu.d.ts} +5 -1
  10. package/dist/factory/index.d.ts +5 -5
  11. package/dist/factory/index.js +36 -1
  12. package/dist/factory/index.js.map +1 -1
  13. package/dist/factory-runtime/index.d.ts +5 -4
  14. package/dist/factory-runtime/index.js +189 -34
  15. package/dist/factory-runtime/index.js.map +1 -1
  16. package/dist/fixtures.d.ts +45 -0
  17. package/dist/fixtures.js +704 -0
  18. package/dist/fixtures.js.map +1 -0
  19. package/dist/{index-H0bOi9oP.d.ts → index-DPdJPQZe.d.ts} +8 -375
  20. package/dist/index.d.ts +19 -15
  21. package/dist/index.js +9112 -45
  22. package/dist/index.js.map +1 -1
  23. package/dist/mock/index.d.ts +6 -5
  24. package/dist/mock/index.js +14 -0
  25. package/dist/mock/index.js.map +1 -1
  26. package/dist/patterns/component-mapping.json +1 -1
  27. package/dist/patterns/event-contracts.json +1 -1
  28. package/dist/patterns/index.d.ts +44 -9
  29. package/dist/patterns/index.js +29 -5
  30. package/dist/patterns/index.js.map +1 -1
  31. package/dist/patterns/patterns-registry.json +15 -2
  32. package/dist/patterns/registry.json +15 -2
  33. package/dist/{schema-DPpES4qj.d.ts → schema-TqLV2wlK.d.ts} +411 -21713
  34. package/dist/state-machine/index.d.ts +1 -1
  35. package/dist/themes/index.d.ts +19 -0
  36. package/dist/themes/index.js +9251 -0
  37. package/dist/themes/index.js.map +1 -0
  38. package/dist/{trait-DXXRrRMP.d.ts → trait-YlNXc4H3.d.ts} +62 -26
  39. package/dist/types/index.d.ts +8 -6
  40. package/dist/types/index.js +236 -41
  41. package/dist/types/index.js.map +1 -1
  42. package/dist/{types-BMaTUGyk.d.ts → types-Ug92oza4.d.ts} +2 -2
  43. package/fixtures/events-wire/cascade-emitted-events/request.json +9 -0
  44. package/fixtures/events-wire/cascade-emitted-events/response.json +30 -0
  45. package/fixtures/events-wire/client-effects-by-trait/request.json +4 -0
  46. package/fixtures/events-wire/client-effects-by-trait/response.json +52 -0
  47. package/fixtures/events-wire/effect-results/request.json +9 -0
  48. package/fixtures/events-wire/effect-results/response.json +42 -0
  49. package/fixtures/events-wire/effect-results-every-kind/request.json +9 -0
  50. package/fixtures/events-wire/effect-results-every-kind/response.json +70 -0
  51. package/fixtures/events-wire/guard-rejected/request.json +6 -0
  52. package/fixtures/events-wire/guard-rejected/response.json +11 -0
  53. package/fixtures/events-wire/live-push/live-push.json +12 -0
  54. package/fixtures/events-wire/live-push/request.json +9 -0
  55. package/fixtures/events-wire/live-push/response.json +33 -0
  56. package/fixtures/events-wire/navigate-1/request.json +5 -0
  57. package/fixtures/events-wire/navigate-1/response.json +16 -0
  58. package/fixtures/events-wire/navigate-2/request.json +8 -0
  59. package/fixtures/events-wire/navigate-2/response.json +19 -0
  60. package/fixtures/events-wire/navigate-3/request.json +8 -0
  61. package/fixtures/events-wire/navigate-3/response.json +22 -0
  62. package/fixtures/events-wire/navigate-back/request.json +5 -0
  63. package/fixtures/events-wire/navigate-back/response.json +15 -0
  64. package/fixtures/events-wire/render-ui-3/request.json +5 -0
  65. package/fixtures/events-wire/render-ui-3/response.json +20 -0
  66. package/fixtures/events-wire/render-ui-4/request.json +5 -0
  67. package/fixtures/events-wire/render-ui-4/response.json +41 -0
  68. package/fixtures/events-wire/render-ui-5/request.json +9 -0
  69. package/fixtures/events-wire/render-ui-5/response.json +52 -0
  70. package/fixtures/events-wire/render-ui-clear/request.json +5 -0
  71. package/fixtures/events-wire/render-ui-clear/response.json +27 -0
  72. package/fixtures/events-wire/sse-stream/request.json +9 -0
  73. package/fixtures/events-wire/sse-stream/response.json +79 -0
  74. package/fixtures/events-wire/sse-stream/stream.json +131 -0
  75. package/fixtures/events-wire/stateless-traits/request.json +27 -0
  76. package/fixtures/events-wire/stateless-traits/response.json +15 -0
  77. package/fixtures/theme-tokens/every-key.json +43 -0
  78. package/package.json +18 -3
  79. package/themes/almadar-website.json +207 -0
  80. package/themes/almadar.json +203 -0
  81. package/themes/atelier.json +459 -0
  82. package/themes/bloomberg-dense.json +459 -0
  83. package/themes/clay.json +445 -0
  84. package/themes/comic.json +457 -0
  85. package/themes/corporate.json +445 -0
  86. package/themes/game-adventure.json +229 -0
  87. package/themes/game-rpg.json +230 -0
  88. package/themes/game-sci-fi.json +229 -0
  89. package/themes/game-ui-pack.json +230 -0
  90. package/themes/gazette.json +445 -0
  91. package/themes/glass.json +445 -0
  92. package/themes/kiosk.json +441 -0
  93. package/themes/linear-clean.json +459 -0
  94. package/themes/minimalist.json +445 -0
  95. package/themes/neon.json +445 -0
  96. package/themes/notion-editorial.json +459 -0
  97. package/themes/prism.json +203 -0
  98. package/themes/retro.json +445 -0
  99. package/themes/terminal.json +457 -0
  100. package/themes/trait-wars.json +493 -0
  101. package/themes/wireframe.json +445 -0
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { S as SExpr, a as EventPayload, E as Expression } from './expression-WfTp2arD.js';
2
+ import { S as SExpr, b as EventPayload, E as Expression } from './expression-DRwzVnMu.js';
3
3
  import { J as JsonValue, R as RuntimeValue } from './json-D8gmyK3l.js';
4
4
 
5
5
  /**
@@ -1029,6 +1029,12 @@ type SemanticStringType = (typeof SEMANTIC_STRING_TYPES)[number];
1029
1029
  /** Is this a semantic string domain (as opposed to a bare `string`)? */
1030
1030
  declare function isSemanticStringType(type: FieldType): type is SemanticStringType;
1031
1031
  declare const FieldTypeSchema: z.ZodEnum<["string", "number", "boolean", "date", "timestamp", "datetime", "email", "url", "phone", "uuid", "image", "money", "file", "array", "object", "enum", "relation", "trait", "slot", "pattern", "node", "event", "scalar", "union"]>;
1032
+ /** Words legal in a `.lolo`/`.orb` TYPE POSITION that are not entity field
1033
+ * types (config/param/return annotations, primitives with no field-level
1034
+ * meaning, etc.) — declared so the i18n `types` vocabulary section is
1035
+ * `FIELD_TYPES ∪ TYPE_POSITION_ONLY` exactly, not a hand-maintained superset
1036
+ * held together by a one-directional pinned test (see G-i18n-5). */
1037
+ declare const TYPE_POSITION_ONLY: readonly ["Map", "SExpr", "any", "asset", "bool", "component", "duration", "entity", "float", "icon", "int", "null", "secret", "void"];
1032
1038
  /**
1033
1039
  * Cardinality for relation fields.
1034
1040
  * Matches Rust compiler's Cardinality enum.
@@ -2791,6 +2797,8 @@ declare function isFieldValue(value: RuntimeValue): value is FieldValue;
2791
2797
  type EntityRow = {
2792
2798
  id?: string;
2793
2799
  } & Record<string, FieldValue | undefined>;
2800
+ /** Zod twin of `EntityRow` — the one runtime validator for an `@entity` wire row. */
2801
+ declare const EntityRowSchema: z.ZodType<EntityRow>;
2794
2802
  /**
2795
2803
  * A field-TYPED `EntityRow` — the SINGLE entity type, refined with a concrete
2796
2804
  * field SHAPE `S`. Non-optional members of `S` are REQUIRED, each with its real
@@ -2832,7 +2840,7 @@ type EntityData = Record<string, EntityRow[]>;
2832
2840
  *
2833
2841
  * DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
2834
2842
  *
2835
- * Generated: 2026-09-16T03:44:41.528Z
2843
+ * Generated: 2026-09-21T16:53:17.038Z
2836
2844
  * Pattern count: 281
2837
2845
  */
2838
2846
 
@@ -6836,6 +6844,16 @@ type PersistRowInput = {
6836
6844
  id?: string | SExpr;
6837
6845
  } & Record<string, FieldValue | SExpr | undefined>;
6838
6846
  type PersistData = EntityRow | PersistRowInput | string | SExpr[];
6847
+ /**
6848
+ * One EVALUATED operation of the runtime path's `["persist", "batch", [...ops]]`
6849
+ * form, as `EffectExecutor` hands it to `handlers.persist('batch', '', { operations })`
6850
+ * and both server persist handlers execute it. The row is optional on
6851
+ * create/update (an absent row persists `{}`), exactly as the handlers always
6852
+ * tolerated. The compiled path has no batch persist — ledger §169.
6853
+ */
6854
+ type PersistBatchOperation = ['create', string, EntityRow?] | ['update', string, string, EntityRow?] | ['delete', string, string];
6855
+ /** The ONE structural check for a batch operation — every consumer narrows through it. */
6856
+ declare function isPersistBatchOperation(value: RuntimeValue): value is PersistBatchOperation;
6839
6857
  /**
6840
6858
  * Persist effect - creates, updates, deletes, or clears entities.
6841
6859
  *
@@ -6914,6 +6932,25 @@ type FetchOptions = {
6914
6932
  * @example ['fetch', 'User'] or ['fetch', 'User', { id: '@payload.userId' }]
6915
6933
  */
6916
6934
  type FetchEffect = ['fetch', string] | ['fetch', string, FetchOptions];
6935
+ /** Options for `fetch-stream` — mirror of the compiler's `OirEffect::FetchStream`
6936
+ * (`orbital-core/src/ir/effects.rs`) and the runtime's `fetchStream` handler. */
6937
+ type FetchStreamOptions = {
6938
+ id?: string | SExpr;
6939
+ filter?: SExpr;
6940
+ /** `on_message` fires per chunk; `success` on completion. */
6941
+ emit?: {
6942
+ on_message?: string;
6943
+ success?: string;
6944
+ failure?: string;
6945
+ };
6946
+ };
6947
+ /**
6948
+ * Fetch-stream effect - streams entity rows (server-side), one `on_message`
6949
+ * emit per chunk. The compiled path (`OirEffect::FetchStream`) and the
6950
+ * runtime (`EffectExecutor` `'fetch-stream'`) both execute it.
6951
+ * @example ['fetch-stream', 'Message', { filter: ['=', '@entity.roomId', '@payload.roomId'], emit: { on_message: 'CHUNK' } }]
6952
+ */
6953
+ type FetchStreamEffect = ['fetch-stream', string] | ['fetch-stream', string, FetchStreamOptions];
6917
6954
  /**
6918
6955
  * Result returned by a fetch / ref / deref handler.
6919
6956
  *
@@ -7176,7 +7213,7 @@ type AsyncSequenceEffect = ['async/sequence', ...Effect[]];
7176
7213
  * Union of all typed effects.
7177
7214
  * Provides compile-time validation for common effect types.
7178
7215
  */
7179
- type TypedEffect = RenderUIEffect | NavigateEffect | NavigateBackEffect | EmitEffect | SetEffect | PersistEffect | CallServiceEffect | SpawnEffect | DespawnEffect | DoEffect | FetchEffect | IfEffect | WhenEffect | LetEffect | LogEffect | WaitEffect | RefEffect | DerefEffect | SwapEffect | WatchEffect | AtomicEffect | AsyncDelayEffect | AsyncDebounceEffect | AsyncThrottleEffect | AsyncIntervalEffect | AsyncRaceEffect | AsyncAllEffect | AsyncSequenceEffect | ForwardEffect | TrainEffect | EvaluateEffect | CheckpointSaveEffect | CheckpointLoadEffect | AgentEffect | OsEffect | BrowserEffect | LlmEffect | BehaviorEffect | ValidateEffect | SessionEffect | ComposeEffect | TraceEffect | MemoryEffect | ApplicationEffect;
7216
+ type TypedEffect = RenderUIEffect | NavigateEffect | NavigateBackEffect | EmitEffect | SetEffect | PersistEffect | CallServiceEffect | SpawnEffect | DespawnEffect | DoEffect | FetchEffect | FetchStreamEffect | IfEffect | WhenEffect | LetEffect | LogEffect | WaitEffect | RefEffect | DerefEffect | SwapEffect | WatchEffect | AtomicEffect | AsyncDelayEffect | AsyncDebounceEffect | AsyncThrottleEffect | AsyncIntervalEffect | AsyncRaceEffect | AsyncAllEffect | AsyncSequenceEffect | ForwardEffect | TrainEffect | EvaluateEffect | CheckpointSaveEffect | CheckpointLoadEffect | AgentEffect | OsEffect | BrowserEffect | LlmEffect | BehaviorEffect | ValidateEffect | SessionEffect | ComposeEffect | TraceEffect | MemoryEffect | ApplicationEffect;
7180
7217
  /**
7181
7218
  * Effect type - typed S-expression format.
7182
7219
  *
@@ -7203,6 +7240,19 @@ type TypedEffect = RenderUIEffect | NavigateEffect | NavigateBackEffect | EmitEf
7203
7240
  * ["persist", "create", "Task", { "title": "@payload.title" }]
7204
7241
  */
7205
7242
  type Effect = TypedEffect;
7243
+ /**
7244
+ * The effects a server reports an outcome for on
7245
+ * `OrbitalEventResponse.effectResults` (`ServerEffectResult.effect`). Every
7246
+ * member is checked against the effect heads above at compile time, so a
7247
+ * name that is not an effect cannot be listed and a new server-reported
7248
+ * effect is added HERE only — the wire type, its zod twin and the
7249
+ * `events-wire` fixture case all derive from this array.
7250
+ */
7251
+ declare const SERVER_REPORTED_EFFECTS: readonly ["set", "persist", "call-service", "fetch", "fetch-stream", "ref", "deref", "swap!", "atomic", "emit"];
7252
+ type ServerReportedEffect = (typeof SERVER_REPORTED_EFFECTS)[number];
7253
+ /** A namespaced effect head (`trace/emit`, `memory/store`, `llm/…`) — what a
7254
+ * `substrate` result's `name` carries. Derived from the union, never listed. */
7255
+ type NamespacedEffectName = Extract<Effect[0], `${string}/${string}`>;
7206
7256
  /**
7207
7257
  * Schema for Effect - validates S-expression format. Arguments validate as
7208
7258
  * s-expr-shaped DATA (`SExprDataSchema`) — literal data arrays (empty or
@@ -7385,6 +7435,17 @@ declare function atomic(...effects: SExpr[]): AtomicEffect;
7385
7435
  type ResolvedPatternProps = {
7386
7436
  [prop: string]: string | number | boolean | null | undefined | ResolvedPatternProps | RenderChildrenMap | Array<ResolvedPatternProps | RenderChildrenMap>;
7387
7437
  };
7438
+ /**
7439
+ * Zod twin of `PatternConfig`/`AnyPatternConfig` — validates the WIRE SHAPE
7440
+ * (a plain object, or `null` for an unset render-ui target) only. Per-pattern
7441
+ * prop shape (the hundreds of generated `PatternPropsMap` variants) is
7442
+ * enforced by the patterns registry at `orb validate` / lolo parse time, not
7443
+ * re-validated here — a second, drifting copy of that registry is exactly
7444
+ * the duplicate this schema must not become.
7445
+ */
7446
+ declare const PatternConfigSchema: z.ZodType<AnyPatternConfig | null>;
7447
+ /** Zod twin of `ResolvedPatternProps` — validates the wire shape (a plain object) only, see {@link PatternConfigSchema}. */
7448
+ declare const ResolvedPatternPropsSchema: z.ZodType<ResolvedPatternProps>;
7388
7449
  /** A node in a render-ui effect tree. */
7389
7450
  interface RenderUINode {
7390
7451
  type: string;
@@ -7398,4 +7459,4 @@ interface RenderUINode {
7398
7459
  renderItem?: RenderUINode;
7399
7460
  }
7400
7461
 
7401
- 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 OrbitalEntity 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, type ManifestSourceCatalog 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, FileValueSchema as aA, type ForwardConfig as aB, type ForwardEffect as aC, type IdForKind as aD, type IdKind as aE, IdentityLedgerSchema as aF, type LedgerEntry as aG, LedgerEntrySchema as aH, type LedgerKind as aI, LedgerKindSchema as aJ, type LlmEffect as aK, type LogEffect as aL, MANIFEST_ASSET_LICENSES as aM, MANIFEST_CANVAS_AFFINITIES as aN, MANIFEST_ENTRY_KINDS as aO, MANIFEST_SOURCE_CATALOGS as aP, type ManifestAssetLicense as aQ, ManifestAssetLicenseSchema as aR, type ManifestCanvasAffinity as aS, ManifestCanvasAffinitySchema as aT, type ManifestEntry as aU, type ManifestEntryInput as aV, type ManifestEntryKind as aW, ManifestEntryKindSchema as aX, ManifestEntrySchema as aY, type ManifestFrameSpec as aZ, ManifestFrameSpecSchema 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, FieldValueSchema as ay, type FileValue as az, type EventId as b, type SocketEvents as b$, ManifestSourceCatalogSchema as b0, type McpServiceDef as b1, McpServiceDefSchema as b2, type MemoryEffect as b3, type NavigateBackEffect as b4, type NavigateEffect as b5, type NavigateOptions as b6, type NnConfig as b7, type NnLayer 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 OrbitalId 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, set as dA, spawn as dB, swap as dC, validateAssetAnimations as dD, watch as dE, 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, parseAssetKey as dt, parseAssetQuery as du, parseServiceRef as dv, persist as dw, persistenceModeAllowsOverrides as dx, ref as dy, renderUI as dz, type EntityId as e, type Entity 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 };
7462
+ export { type CallServiceEffect as $, type AnyPatternConfig as A, AssetAspectSchema as B, type AssetCatalog as C, type AssetCatalogEntry as D, type EntityField as E, type FieldValue as F, type AssetCatalogEntryInput as G, AssetCatalogEntrySchema as H, type IdentityLedger as I, AssetCatalogSchema as J, type AssetDimension as K, AssetDimensionSchema as L, AssetSchema as M, type NamespacedEffectName as N, type OrbitalEntity as O, type PageId as P, type AssetUrl as Q, type RelationConfig as R, type ServerReportedEffect as S, type TraitId as T, type UISlot as U, type AtomicEffect as V, type AudioManifest as W, AudioManifestSchema as X, type BehaviorEffect as Y, CAMERA_MODES as Z, type CallServiceConfig as _, type EntityPersistence as a, type ManifestEntry as a$, type Camera as a0, type CameraMode as a1, CameraModeSchema as a2, CameraSchema as a3, type CheckpointLoadEffect as a4, type CheckpointSaveEffect as a5, type ComposeEffect as a6, type ControlValue as a7, DEFAULT_UNIT_ANIMATION_ROWS as a8, type DerefEffect as a9, type FetchStreamOptions as aA, type Field as aB, FieldSchema as aC, type FieldType as aD, FieldTypeSchema as aE, FieldValueSchema as aF, type FileValue as aG, FileValueSchema as aH, type ForwardConfig as aI, type ForwardEffect as aJ, type IdForKind as aK, type IdKind as aL, IdentityLedgerSchema as aM, type LedgerEntry as aN, LedgerEntrySchema as aO, type LedgerKind as aP, LedgerKindSchema as aQ, type LlmEffect as aR, type LogEffect as aS, MANIFEST_ASSET_LICENSES as aT, MANIFEST_CANVAS_AFFINITIES as aU, MANIFEST_ENTRY_KINDS as aV, MANIFEST_SOURCE_CATALOGS as aW, type ManifestAssetLicense as aX, ManifestAssetLicenseSchema as aY, type ManifestCanvasAffinity as aZ, ManifestCanvasAffinitySchema as a_, type DespawnEffect as aa, type DoEffect as ab, ENTITY_ROLES as ac, type EffectInput as ad, EffectSchema as ae, type EmitConfig as af, type EmitEffect as ag, type EntityData as ah, type EntityFieldInput as ai, EntityFieldSchema as aj, EntityIdSchema as ak, EntityPersistenceSchema as al, type EntityRole as am, EntityRoleSchema as an, EntityRowSchema as ao, EntitySchema as ap, type EntityWith as aq, type EnumEntityField as ar, type EvaluateConfig as as, type EvaluateEffect as at, EventIdSchema as au, FIELD_TYPES as av, type FetchEffect as aw, type FetchOptions as ax, type FetchResult as ay, type FetchStreamEffect as az, type EventId as b, ServiceRefObjectSchema as b$, type ManifestEntryInput as b0, type ManifestEntryKind as b1, ManifestEntryKindSchema as b2, ManifestEntrySchema as b3, type ManifestFrameSpec as b4, ManifestFrameSpecSchema as b5, type ManifestSourceCatalog as b6, ManifestSourceCatalogSchema as b7, type McpServiceDef as b8, McpServiceDefSchema as b9, type RenderChildrenMap as bA, type RenderItemLambda as bB, type RenderUINode as bC, ResolvedPatternPropsSchema as bD, type RestAuthConfig as bE, RestAuthConfigSchema as bF, type RestServiceDef as bG, RestServiceDefSchema as bH, SEMANTIC_STRING_TYPES as bI, SERVER_REPORTED_EFFECTS as bJ, SERVICE_TYPES as bK, SHEET_PROJECTIONS as bL, SPRITE_DIRECTIONS as bM, SPRITE_SHEET_LAYOUT as bN, type ScalarEntityField as bO, type ScenePos as bP, ScenePosSchema as bQ, type SemanticAssetRef as bR, type SemanticAssetRefInput as bS, SemanticAssetRefSchema as bT, type SemanticStringType as bU, ServiceDefinitionSchema as bV, type ServiceId as bW, ServiceIdSchema as bX, type ServiceParams as bY, type ServiceParamsValue as bZ, type ServiceRefObject as b_, type MemoryEffect as ba, type NavigateBackEffect as bb, type NavigateEffect as bc, type NavigateOptions as bd, type NnConfig as be, type NnLayer as bf, type ObjectEntityField as bg, type OrbitalEntityInput as bh, OrbitalEntitySchema as bi, OrbitalIdSchema as bj, type OsEffect as bk, PATTERN_TYPES as bl, PageIdSchema as bm, type PaletteEntryId as bn, PaletteEntryIdSchema as bo, PatternConfigSchema as bp, type PatternProps as bq, type PatternPropsMap as br, type PatternType as bs, type PersistBatchOperation as bt, type PersistData as bu, type PersistEffect as bv, type PersistEmitConfig as bw, type RefEffect as bx, RelationConfigSchema as by, type RelationEntityField as bz, type Effect as c, findService as c$, ServiceRefSchema as c0, ServiceRefStringSchema as c1, type ServiceType as c2, ServiceTypeSchema as c3, type SessionEffect as c4, type SetEffect as c5, type SheetProjection as c6, SheetProjectionSchema as c7, type SocketEvents as c8, SocketEventsSchema as c9, type TypedEffect as cA, UISlotSchema as cB, UI_SLOTS as cC, VISUAL_STYLES as cD, type ValidateEffect as cE, type VisualStyle as cF, VisualStyleSchema as cG, type WatchEffect as cH, type WatchOptions as cI, asEntityId as cJ, asEventId as cK, asOrbitalId as cL, asPageId as cM, asPaletteEntryId as cN, asServiceId as cO, asThemeId as cP, asTraitId as cQ, atomic as cR, callService as cS, createAssetKey as cT, defaultUnitAtlas as cU, deref as cV, deriveCollection as cW, deriveId as cX, despawn as cY, doEffects as cZ, emit as c_, type SocketServiceDef as ca, SocketServiceDefSchema as cb, type SoundEntry as cc, SoundEntrySchema as cd, type SpawnEffect as ce, type SpriteDirection as cf, SpriteDirectionSchema as cg, type SpriteSheetAtlas as ch, type SpriteSheetAtlasInput as ci, SpriteSheetAtlasSchema as cj, type SpriteSheetLayout as ck, type SubTexture as cl, SubTextureSchema as cm, type SwapEffect as cn, TYPE_POSITION_ONLY as co, type TemplatePatternConfig as cp, type TextureAtlas as cq, TextureAtlasSchema as cr, type ThemeId as cs, ThemeIdSchema as ct, type Tilesheet as cu, TilesheetSchema as cv, type TraceEffect as cw, type TrainConfig as cx, type TrainEffect as cy, TraitIdSchema as cz, type OrbitalId as d, getDefaultAnimationsForRole as d0, getServiceNames as d1, hasService as d2, idKindOf as d3, idPrefix as d4, isEffect as d5, isEmailValue as d6, isEntityId as d7, isEventId as d8, isFieldValue as d9, matchAssetQuery as dA, mintId as dB, navigate as dC, navigateBack as dD, parseAssetKey as dE, parseAssetQuery as dF, parseServiceRef as dG, persist as dH, persistenceModeAllowsOverrides as dI, ref as dJ, renderUI as dK, set as dL, spawn as dM, swap as dN, validateAssetAnimations as dO, watch as dP, isFileValue as da, isMcpService as db, isOrbitalId as dc, isPageId as dd, isPaletteEntryId as de, isPersistBatchOperation as df, isPhoneValue as dg, isRestService as dh, isRuntimeEntity as di, isSExprEffect as dj, isSemanticStringType as dk, isSemanticStringValue as dl, isServiceId as dm, isServiceReference as dn, isServiceReferenceObject as dp, isSocketService as dq, isThemeId as dr, isTraitId as ds, isUrlValue as dt, isUuidValue as du, isValidPatternType as dv, ledgerCurName as dw, ledgerRename as dx, ledgerResolveName as dy, manifestToAssetCatalog as dz, type EntityId as e, type Entity as f, type EntityRow as g, type PatternConfig as h, type ResolvedPatternProps as i, type ServiceRef as j, type ServiceDefinition as k, type RenderBinding as l, type RenderUIEffect as m, ANIMATION_NAMES as n, ASSET_ASPECTS as o, ASSET_DIMENSIONS as p, type AgentEffect as q, type AnimationDef as r, type AnimationDefInput as s, AnimationDefSchema as t, type AnimationName as u, AnimationNameSchema as v, type ApplicationEffect as w, type ArrayEntityField as x, type Asset as y, type AssetAspect as z };
@@ -1,6 +1,6 @@
1
- import { O as OrbitalEntity } from './effect-Bw8T4qh5.js';
2
- import { O as OrbitalSchema, a as OrbitalDefinition } from './schema-DPpES4qj.js';
3
- import { S as SExpr } from './expression-WfTp2arD.js';
1
+ import { O as OrbitalEntity } from './effect-Hm_QDaSI.js';
2
+ import { O as OrbitalSchema, a as OrbitalDefinition } from './schema-TqLV2wlK.js';
3
+ import { S as SExpr } from './expression-DRwzVnMu.js';
4
4
 
5
5
  /**
6
6
  * Entity access policies — the declared `@read`/`@create`/`@update`/`@delete`
@@ -241,6 +241,10 @@ interface EventPayload {
241
241
  * `unknown` values at typed substrate boundaries (e.g. `TraceContext.emit`).
242
242
  */
243
243
  declare function isEventPayloadValue(value: RuntimeValue): value is EventPayloadValue;
244
+ /** Zod twin of `EventPayloadValue` — the one runtime validator for a bus-emit payload slot. */
245
+ declare const EventPayloadValueSchema: z.ZodType<EventPayloadValue>;
246
+ /** Zod twin of `EventPayload` — the wire shape of a bus event's `payload`. */
247
+ declare const EventPayloadSchema: z.ZodType<EventPayload>;
244
248
  /**
245
249
  * Allowed leaf value for `LogMeta`. Mirrors `EventPayloadValue` shape so
246
250
  * the same row/list data flows through logs without manual flattening,
@@ -252,4 +256,4 @@ interface LogMeta {
252
256
  [key: string]: LogMetaValue;
253
257
  }
254
258
 
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 };
259
+ export { walkSExpr as A, CORE_BINDINGS as C, type Expression as E, type LogMeta as L, type ParsedBinding as P, type SExpr as S, type EventPayloadValue as a, type EventPayload as b, type CoreBinding as c, type EvalContext as d, EventPayloadSchema as e, EventPayloadValueSchema as f, type ExpressionInput as g, ExpressionSchema as h, type LogMetaValue as i, type SExprAtom as j, SExprAtomSchema as k, SExprDataSchema as l, type SExprInput as m, type SExprObject as n, SExprSchema as o, collectBindings as p, getArgs as q, getOperator as r, isBinding as s, isEventPayloadValue as t, isSExpr as u, isSExprAtom as v, isSExprCall as w, isValidBinding as x, parseBinding as y, sexpr as z };
@@ -1,10 +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-BMaTUGyk.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-BMaTUGyk.js';
3
- import { a as EntityPersistence, E as EntityField } from '../effect-Bw8T4qh5.js';
4
- import { a as TraitReference } from '../trait-DXXRrRMP.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-Ug92oza4.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-Ug92oza4.js';
3
+ import { a as EntityPersistence, E as EntityField } from '../effect-Hm_QDaSI.js';
4
+ import { a as TraitReference } from '../trait-YlNXc4H3.js';
5
5
  export { J as JsonValue } from '../json-D8gmyK3l.js';
6
6
  import 'zod';
7
- import '../expression-WfTp2arD.js';
7
+ import '../expression-DRwzVnMu.js';
8
8
 
9
9
  /**
10
10
  * Rehydrate `overridableConfigKeys` from a catalog's `knobDefs` table,
@@ -9532,7 +9532,14 @@ var patterns_registry_default = {
9532
9532
  "string"
9533
9533
  ],
9534
9534
  description: "Declarative event: fires on \u2318/Ctrl+Enter with `{ value }`.",
9535
- kind: "event"
9535
+ kind: "event-ref",
9536
+ emitPayloadSchema: [
9537
+ {
9538
+ name: "value",
9539
+ type: "string",
9540
+ required: true
9541
+ }
9542
+ ]
9536
9543
  },
9537
9544
  error: {
9538
9545
  types: [
@@ -19486,6 +19493,7 @@ var patterns_registry_default = {
19486
19493
  "line-chart": {
19487
19494
  type: "line-chart",
19488
19495
  category: "display",
19496
+ sourceFile: "components/core/molecules/LineChart.tsx",
19489
19497
  tier: "molecules",
19490
19498
  family: "core",
19491
19499
  description: "LineChart component",
@@ -19513,6 +19521,11 @@ var patterns_registry_default = {
19513
19521
  "date"
19514
19522
  ]
19515
19523
  },
19524
+ x: {
19525
+ types: [
19526
+ "number"
19527
+ ]
19528
+ },
19516
19529
  value: {
19517
19530
  types: [
19518
19531
  "number"
@@ -56035,6 +56048,19 @@ var SExprSchema = z.lazy(
56035
56048
  )
56036
56049
  ])
56037
56050
  );
56051
+ var EventPayloadValueSchema = z.lazy(
56052
+ () => z.union([
56053
+ z.string(),
56054
+ z.number(),
56055
+ z.boolean(),
56056
+ z.date(),
56057
+ z.null(),
56058
+ z.undefined(),
56059
+ EventPayloadSchema,
56060
+ z.array(EventPayloadValueSchema)
56061
+ ])
56062
+ );
56063
+ var EventPayloadSchema = z.lazy(() => z.record(EventPayloadValueSchema));
56038
56064
 
56039
56065
  // src/types/entity.ts
56040
56066
  var EntityPersistenceSchema = z.enum([
@@ -56085,6 +56111,7 @@ function persistenceModeAllowsOverrides(persistence) {
56085
56111
  var FieldValueSchema = z.lazy(
56086
56112
  () => z.union([z.string(), z.number(), z.boolean(), z.date(), z.null(), z.array(FieldValueSchema), z.record(FieldValueSchema.optional())])
56087
56113
  );
56114
+ z.object({ id: z.string().optional() }).catchall(FieldValueSchema.optional());
56088
56115
  var UI_SLOTS = [
56089
56116
  // App slots
56090
56117
  "main",
@@ -56118,6 +56145,14 @@ z.array(SExprDataSchema).min(1).refine(
56118
56145
  (arr) => typeof arr[0] === "string",
56119
56146
  { message: "Effect must be an S-expression with a string operator as first element" }
56120
56147
  );
56148
+ z.custom(
56149
+ (value) => value === null || typeof value === "object" && value !== null && !Array.isArray(value),
56150
+ { message: "Expected a pattern config object or null" }
56151
+ );
56152
+ z.custom(
56153
+ (value) => typeof value === "object" && value !== null && !Array.isArray(value),
56154
+ { message: "Expected a resolved pattern props object" }
56155
+ );
56121
56156
 
56122
56157
  // src/factory/params-schema.ts
56123
56158
  function signatureToParamsSchema(signature, options) {