@almadar/core 4.4.0 → 4.4.2

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.
@@ -1,4 +1,4 @@
1
- import { O as OrbitalDefinition, c as OrbitalSchema } from './schema-BoAH6cRd.js';
1
+ import { O as OrbitalDefinition, c as OrbitalSchema } from './schema-B0Yin-RM.js';
2
2
 
3
3
  /**
4
4
  * Event Wiring
@@ -1,4 +1,4 @@
1
- import { bG as SExpr, e as Entity, P as Page, c as OrbitalSchema, d as Trait } from '../schema-BoAH6cRd.js';
1
+ import { bR as SExpr, e as Entity, P as Page, c as OrbitalSchema, d as Trait } from '../schema-B0Yin-RM.js';
2
2
  import 'zod';
3
3
  import '@almadar/patterns';
4
4
 
@@ -3372,6 +3372,18 @@ var EntityFieldSchema = z.lazy(
3372
3372
  }).refine(
3373
3373
  (field) => field.type !== "relation" || field.relation !== void 0,
3374
3374
  { message: 'Relation config is required when type is "relation"', path: ["relation"] }
3375
+ ).refine(
3376
+ // Enum fields must carry their allowed values. Without this refine,
3377
+ // the type was lying about what's valid — bare `type: 'enum'` without
3378
+ // `values` passed zod but failed `orb validate` downstream with
3379
+ // ORB_E_EMPTY_ENUM_VALUES, stalling the agent pipeline for 20 minutes.
3380
+ // `enum` is the legacy field-name alias; accept either.
3381
+ (field) => {
3382
+ if (field.type !== "enum") return true;
3383
+ const vals = field.values ?? field.enum;
3384
+ return Array.isArray(vals) && vals.length > 0;
3385
+ },
3386
+ { message: "Enum field requires a non-empty `values` array", path: ["values"] }
3375
3387
  )
3376
3388
  );
3377
3389
  var ENTITY_ROLES = [