@almadar/core 10.74.0 → 10.76.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.
@@ -1,6 +1,6 @@
1
- import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-C0MRXCwF.js';
2
- import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-DJY7OUOM.js';
3
- import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-D1zKrxnf.js';
1
+ import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-wTKhHDhB.js';
2
+ import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-ZPExOj0F.js';
3
+ import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-B9VCCiUM.js';
4
4
  import { S as SExpr } from './expression-Fk8bQWef.js';
5
5
  import 'zod';
6
6
 
package/dist/builders.js CHANGED
@@ -101,7 +101,8 @@ var FIELD_TYPES = [
101
101
  "trait",
102
102
  "slot",
103
103
  "pattern",
104
- "node"
104
+ "node",
105
+ "event"
105
106
  ];
106
107
  z.enum(FIELD_TYPES);
107
108
  var RelationCardinalitySchema = z.enum([
@@ -194,6 +195,7 @@ var EntityFieldSchema = z.lazy(() => {
194
195
  scalarVariant("slot"),
195
196
  scalarVariant("pattern"),
196
197
  scalarVariant("node"),
198
+ scalarVariant("event"),
197
199
  scalarVariant("money"),
198
200
  scalarVariant("file"),
199
201
  // Enum variant — REQUIRES non-empty values.
@@ -559,7 +561,11 @@ var TraitEntityFieldSchema = z.object({
559
561
  "image",
560
562
  "trait",
561
563
  "slot",
562
- "pattern"
564
+ "pattern",
565
+ // `node` was missing here while being a real `TraitFieldType` member
566
+ // — the same latent-drift trap `event` would otherwise repeat.
567
+ "node",
568
+ "event"
563
569
  ]),
564
570
  required: z.boolean().optional(),
565
571
  default: TraitConfigValueSchema.optional(),
@@ -669,7 +675,8 @@ var TraitEventListenerSchema = z.object({
669
675
  });
670
676
  var RequiredFieldSchema = z.object({
671
677
  name: z.string().min(1),
672
- type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image", "trait", "slot", "pattern"]),
678
+ // `node` was missing here too (same drift as TraitEntityFieldSchema above).
679
+ type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image", "trait", "slot", "pattern", "node", "event"]),
673
680
  description: z.string().optional()
674
681
  });
675
682
  var TraitReferenceSchema = z.object({
@@ -1306,6 +1313,10 @@ var ExpectDeclarationSchema = z.discriminatedUnion("kind", [
1306
1313
  kind: z.literal("event"),
1307
1314
  traitName: z.string().min(1, "Expected event trait name is required"),
1308
1315
  event: z.string().min(1, "Expected event name is required")
1316
+ }),
1317
+ z.object({
1318
+ kind: z.literal("page"),
1319
+ path: z.string().min(1, "Expected page path is required")
1309
1320
  })
1310
1321
  ]);
1311
1322
  function isEntityReference(entity) {