@almadar/core 10.78.0 → 10.79.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 { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-BG7mDO7m.js';
2
- import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-jWk0BInU.js';
3
- import { E as EntityField, a as EntityPersistence } from '../effect-CW3s399G.js';
1
+ import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-CkTuSx6F.js';
2
+ import { i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-B1fI0lTU.js';
3
+ import { E as EntityField, a as EntityPersistence } from '../effect-Mx_niZdY.js';
4
4
  import { MakeTraitRefOpts } from '../builders.js';
5
5
  import '../expression-Fk8bQWef.js';
6
6
  import 'zod';
@@ -666,6 +666,7 @@ var TraitEventContractSchema = z.object({
666
666
  synonyms: z.string().optional(),
667
667
  tier: z.string().optional(),
668
668
  definerKnob: z.string().optional(),
669
+ scopeOverridden: z.boolean().optional(),
669
670
  payloadSchema: z.array(EventPayloadFieldSchema).optional(),
670
671
  scope: EventScopeSchema.optional()
671
672
  });
@@ -719,6 +720,11 @@ var TraitReferenceSchema = z.object({
719
720
  z.string().min(1, "events value (caller event name) must be non-empty")
720
721
  ).optional(),
721
722
  eventIds: z.record(z.string().min(1), EventIdSchema).optional(),
723
+ // 3-II type-parameter arguments (see `TraitReference.typeArgs`).
724
+ typeArgs: z.record(
725
+ z.string().min(1, "typeArgs key (declared param name) must be non-empty"),
726
+ z.string().min(1, "typeArgs value (type name) must be non-empty")
727
+ ).optional(),
722
728
  fields: z.record(
723
729
  z.string().min(1, "fields key (canonical field name) must be non-empty"),
724
730
  z.string().min(1, "fields value (consumer field name) must be non-empty")
@@ -779,6 +785,11 @@ var SourceBehaviorMetadataSchema = z.object({
779
785
  alias: z.string().min(1),
780
786
  originalName: z.string().min(1)
781
787
  });
788
+ var TraitTypeParamDefSchema = z.object({
789
+ name: z.string().min(1),
790
+ kind: z.string().min(1),
791
+ default: z.string().optional()
792
+ });
782
793
  var TraitSchema = z.object({
783
794
  id: TraitIdSchema.optional(),
784
795
  name: z.string().min(1),
@@ -805,7 +816,8 @@ var TraitSchema = z.object({
805
816
  ui: TraitUIBindingSchema.optional(),
806
817
  config: DeclaredTraitConfigSchema.optional(),
807
818
  sourceBehavior: SourceBehaviorMetadataSchema.optional(),
808
- sourceEntityDefinition: EntitySchema.optional()
819
+ sourceEntityDefinition: EntitySchema.optional(),
820
+ typeParams: z.array(TraitTypeParamDefSchema).optional()
809
821
  });
810
822
  var TraitRefSchema = z.union([
811
823
  z.string().min(1),
@@ -1446,7 +1458,8 @@ var OrbitalDefinitionSchema = z.object({
1446
1458
  // Context fields - persisted throughout orbital lifecycle
1447
1459
  domainContext: DomainContextSchema.optional(),
1448
1460
  design: DesignPreferencesSchema.optional(),
1449
- suggestedGuards: z.array(SuggestedGuardSchema).optional()
1461
+ suggestedGuards: z.array(SuggestedGuardSchema).optional(),
1462
+ types: z.record(z.string(), z.array(EventPayloadFieldSchema)).optional()
1450
1463
  });
1451
1464
  var OrbitalSchema = OrbitalDefinitionSchema;
1452
1465
  var OrbitalConfigSchema = z.object({
@@ -1611,6 +1624,7 @@ function makeTraitRef(opts) {
1611
1624
  if (opts.linkedEntity !== void 0) ref2.linkedEntity = opts.linkedEntity;
1612
1625
  if (opts.linkedEntityId !== void 0) ref2.linkedEntityId = opts.linkedEntityId;
1613
1626
  if (opts.events !== void 0) ref2.events = opts.events;
1627
+ if (opts.typeArgs !== void 0) ref2.typeArgs = opts.typeArgs;
1614
1628
  if (opts.fields !== void 0) ref2.fields = opts.fields;
1615
1629
  if (opts.effects !== void 0) ref2.effects = opts.effects;
1616
1630
  if (opts.listens !== void 0) ref2.listens = opts.listens;