@almadar/core 10.30.0 → 10.32.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.
@@ -235,4 +235,4 @@ interface LogMeta {
235
235
  [key: string]: LogMetaValue;
236
236
  }
237
237
 
238
- export { CORE_BINDINGS as C, type EventPayload as E, type LogMeta as L, type ParsedBinding as P, type SExpr as S, type Expression as a, type CoreBinding as b, type EvalContext as c, type EventPayloadValue as d, type ExpressionInput as e, ExpressionSchema as f, type SExprAtom as g, SExprAtomSchema as h, type SExprInput as i, SExprSchema as j, collectBindings as k, getArgs as l, getOperator as m, isBinding as n, isEventPayloadValue as o, isSExpr as p, isSExprAtom as q, isSExprCall as r, isValidBinding as s, parseBinding as t, sexpr as u, walkSExpr as w };
238
+ export { CORE_BINDINGS as C, type Expression as E, type LogMeta as L, type ParsedBinding as P, type SExpr as S, type CoreBinding as a, type EvalContext as b, type EventPayload as c, type EventPayloadValue as d, type ExpressionInput as e, ExpressionSchema as f, type LogMetaValue as g, type SExprAtom as h, SExprAtomSchema as i, type SExprInput as j, SExprSchema as k, collectBindings as l, getArgs as m, getOperator as n, isBinding as o, isEventPayloadValue as p, isSExpr as q, isSExprAtom as r, isSExprCall as s, isValidBinding as t, parseBinding as u, sexpr as v, walkSExpr as w };
@@ -1,10 +1,10 @@
1
- import { 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 } from '../types-yW22YNNt.js';
2
- export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-yW22YNNt.js';
3
- import { a as EntityPersistence, E as EntityField } from '../pattern-types-CLcOXOmW.js';
4
- import { a as TraitReference } from '../trait-CwWjkU-1.js';
5
- export { J as JsonValue } from '../json-DOTchoRS.js';
1
+ import { 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 } from '../types-B6IYPXZM.js';
2
+ export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-B6IYPXZM.js';
3
+ import { a as EntityPersistence, E as EntityField } from '../effect-8eas3tpU.js';
4
+ export { J as JsonValue } from '../effect-8eas3tpU.js';
5
+ import { a as TraitReference } from '../trait-CMGaEccZ.js';
6
6
  import 'zod';
7
- import '../expression-CB9R3KWk.js';
7
+ import '../expression-BlFrxmNB.js';
8
8
 
9
9
  /**
10
10
  * Typed questionnaire surface — shapes the studio renders + answers.
@@ -1,8 +1,8 @@
1
- import { O as OrbitalSchema, M as MakeTraitRefOpts, a as OrbitalDefinition } from '../builders-C458pIMW.js';
2
- import { C as CallSiteConfig, b as CallSiteConfigEntry, c as Trait } from '../trait-CwWjkU-1.js';
3
- import { E as EntityField, a as EntityPersistence } from '../pattern-types-CLcOXOmW.js';
1
+ import { O as OrbitalSchema, M as MakeTraitRefOpts, a as OrbitalDefinition } from '../builders-CnPRr1cq.js';
2
+ import { C as CallSiteConfig, b as CallSiteConfigEntry, c as Trait } from '../trait-CMGaEccZ.js';
3
+ import { E as EntityField, a as EntityPersistence } from '../effect-8eas3tpU.js';
4
4
  import 'zod';
5
- import '../expression-CB9R3KWk.js';
5
+ import '../expression-BlFrxmNB.js';
6
6
 
7
7
  /**
8
8
  * Orbital factory manifest types — shared across all packages.
@@ -85,6 +85,11 @@ var IdentityLedgerSchema = z.object({
85
85
  schemaVersion: z.literal(1),
86
86
  entries: z.record(LedgerEntrySchema)
87
87
  });
88
+ var JsonValueSchema = z.lazy(
89
+ () => z.union([z.string(), z.number(), z.boolean(), z.null(), z.array(JsonValueSchema), z.record(JsonValueSchema)])
90
+ );
91
+
92
+ // src/types/field.ts
88
93
  z.enum([
89
94
  "string",
90
95
  "number",
@@ -148,7 +153,7 @@ var EntityFieldSchema = z.lazy(() => {
148
153
  const baseFieldShape = {
149
154
  name: z.string().min(1, "Field name is required").optional(),
150
155
  required: z.boolean().optional(),
151
- default: z.unknown().optional(),
156
+ default: JsonValueSchema.optional(),
152
157
  format: FieldFormatSchema.optional(),
153
158
  min: z.number().optional(),
154
159
  max: z.number().optional(),
@@ -514,7 +519,7 @@ var TraitEntityFieldSchema = z.object({
514
519
  "enum"
515
520
  ]),
516
521
  required: z.boolean().optional(),
517
- default: z.unknown().optional(),
522
+ default: TraitConfigValueSchema.optional(),
518
523
  values: z.array(z.string()).optional(),
519
524
  items: ConfigFieldItemsDeclarationSchema.optional(),
520
525
  properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional()
@@ -649,12 +654,11 @@ z.object({
649
654
  listens: z.array(z.unknown()).optional(),
650
655
  emitsScope: z.enum(["internal", "external"]).optional(),
651
656
  // Phase F.8: per-transition effects override. The keys are event
652
- // names (the transition triggers AFTER renames). Values are arrays
653
- // of SExpression-shaped data; the inliner validates the SExpression
654
- // shape during application, so the schema accepts loose `unknown[]`.
657
+ // names (the transition triggers AFTER renames); values are SExpr
658
+ // effect tuples.
655
659
  effects: z.record(
656
660
  z.string().min(1, "effects override key (event name) must be non-empty"),
657
- z.array(z.unknown())
661
+ z.array(SExprSchema)
658
662
  ).optional()
659
663
  }).refine(
660
664
  (ref2) => {