@almadar/core 10.56.0 → 10.57.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-DxD-XTI8.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-Nk1usPv6.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-WnYkvPdZ.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-D-_fm4No.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-CrUFqWXN.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-A4_OlY_l.js';
4
4
  import { S as SExpr } from './expression-Fk8bQWef.js';
5
5
  import 'zod';
6
6
 
@@ -486,6 +486,12 @@ interface MakeOrbitalWithUsesOpts {
486
486
  * compute it. Omitted from the result when not provided.
487
487
  */
488
488
  expects?: ExpectDeclaration[];
489
+ /**
490
+ * Auxiliary entities (name-resolution side channel for un-rebound atom
491
+ * imports — see {@link OrbitalDefinition.auxiliaryEntities}). Threaded
492
+ * verbatim; omitted from the result when not provided.
493
+ */
494
+ auxiliaryEntities?: EntityRef[];
489
495
  /** Trait references. */
490
496
  traits: TraitRef[];
491
497
  /** Optional page references (omitted entirely when not provided). */
package/dist/builders.js CHANGED
@@ -138,6 +138,7 @@ var EntityFieldSchema = z.lazy(() => {
138
138
  const baseFieldShape = {
139
139
  name: z.string().min(1, "Field name is required").optional(),
140
140
  required: z.boolean().optional(),
141
+ primaryKey: z.boolean().optional(),
141
142
  default: JsonValueSchema.optional(),
142
143
  min: z.number().optional(),
143
144
  max: z.number().optional(),
@@ -542,7 +543,10 @@ var TraitEntityFieldSchema = z.object({
542
543
  "url",
543
544
  "phone",
544
545
  "uuid",
545
- "image"
546
+ "image",
547
+ "trait",
548
+ "slot",
549
+ "pattern"
546
550
  ]),
547
551
  required: z.boolean().optional(),
548
552
  default: TraitConfigValueSchema.optional(),
@@ -652,7 +656,7 @@ var TraitEventListenerSchema = z.object({
652
656
  });
653
657
  var RequiredFieldSchema = z.object({
654
658
  name: z.string().min(1),
655
- type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]),
659
+ type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image", "trait", "slot", "pattern"]),
656
660
  description: z.string().optional()
657
661
  });
658
662
  var TraitReferenceSchema = z.object({
@@ -1842,6 +1846,7 @@ function makeOrbitalWithUses(opts) {
1842
1846
  uses: opts.uses,
1843
1847
  ...opts.expects !== void 0 ? { expects: opts.expects } : {},
1844
1848
  entity: opts.entity,
1849
+ ...opts.auxiliaryEntities !== void 0 ? { auxiliaryEntities: opts.auxiliaryEntities } : {},
1845
1850
  traits: opts.traits,
1846
1851
  pages: opts.pages ?? []
1847
1852
  };