@almadar/core 10.91.0 → 10.92.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.
Files changed (34) hide show
  1. package/dist/builders.d.ts +3 -3
  2. package/dist/builders.js +2 -1
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{effect-Bt8vKHwd.d.ts → effect-DGa2ixo7.d.ts} +5 -1
  5. package/dist/{entityAccess-BdDX85rM.d.ts → entityAccess-CXennIKj.d.ts} +1 -1
  6. package/dist/factory/index.d.ts +4 -4
  7. package/dist/factory/index.js +212 -31
  8. package/dist/factory/index.js.map +1 -1
  9. package/dist/factory-runtime/index.d.ts +3 -3
  10. package/dist/factory-runtime/index.js +6 -2
  11. package/dist/factory-runtime/index.js.map +1 -1
  12. package/dist/{index-rOBf1Oag.d.ts → index-BFortVj8.d.ts} +19 -10
  13. package/dist/index.d.ts +11 -72
  14. package/dist/index.js +401 -134
  15. package/dist/index.js.map +1 -1
  16. package/dist/mock/index.d.ts +4 -4
  17. package/dist/patterns/component-mapping.json +1 -1
  18. package/dist/patterns/event-contracts.json +1 -1
  19. package/dist/patterns/index.d.ts +791 -78
  20. package/dist/patterns/index.js +351 -35
  21. package/dist/patterns/index.js.map +1 -1
  22. package/dist/patterns/integrators-registry.json +136 -1
  23. package/dist/patterns/patterns-registry.json +213 -32
  24. package/dist/patterns/registry.json +213 -32
  25. package/dist/patterns/services-registry.json +136 -1
  26. package/dist/{schema-ovDTDQz9.d.ts → schema-DIL07Bmv.d.ts} +25 -25
  27. package/dist/state-machine/index.js +19 -4
  28. package/dist/state-machine/index.js.map +1 -1
  29. package/dist/{trait-C3e3btfn.d.ts → trait-DHb48lyx.d.ts} +10 -1
  30. package/dist/types/index.d.ts +5 -5
  31. package/dist/types/index.js +30 -2
  32. package/dist/types/index.js.map +1 -1
  33. package/dist/{types-rh0naR6C.d.ts → types-F5EPwMor.d.ts} +2 -2
  34. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-ovDTDQz9.js';
2
- import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-C3e3btfn.js';
3
- import { E as EntityField, a as EntityPersistence } from '../effect-Bt8vKHwd.js';
1
+ import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-DIL07Bmv.js';
2
+ import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-DHb48lyx.js';
3
+ import { E as EntityField, a as EntityPersistence } from '../effect-DGa2ixo7.js';
4
4
  import { MakeTraitRefOpts } from '../builders.js';
5
5
  import '../json-D8gmyK3l.js';
6
6
  import '../expression-WfTp2arD.js';
@@ -580,6 +580,9 @@ var TraitConfigSchema = z.record(TraitConfigValueSchema);
580
580
  function isCallSiteConfigDeclaration(entry) {
581
581
  return typeof entry === "object" && entry !== null && !Array.isArray(entry) && "type" in entry && typeof entry.type === "string" && "default" in entry;
582
582
  }
583
+ function canonicalizeUnboundTraitOverride(fieldType, value) {
584
+ return fieldType === "trait" && value === "none" ? null : value;
585
+ }
583
586
  function overrideDeclaredKnobs(declared, overrides) {
584
587
  const out = { ...declared };
585
588
  for (const key of Object.keys(overrides)) {
@@ -589,7 +592,7 @@ function overrideDeclaredKnobs(declared, overrides) {
589
592
  `overrideDeclaredKnobs: config override "${key}" is not a declared knob (ORB_O_CONFIG_UNKNOWN_KEY). Declared: ${Object.keys(declared).join(", ") || "(none)"}`
590
593
  );
591
594
  }
592
- out[key] = { ...field, default: overrides[key] };
595
+ out[key] = { ...field, default: canonicalizeUnboundTraitOverride(field.type, overrides[key]) };
593
596
  }
594
597
  return out;
595
598
  }
@@ -613,7 +616,8 @@ var ConfigFieldDeclarationSchema = z.object({
613
616
  synonyms: z.string().optional(),
614
617
  items: ConfigFieldItemsDeclarationSchema.optional(),
615
618
  properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional(),
616
- forwardedFrom: z.string().optional()
619
+ forwardedFrom: z.string().optional(),
620
+ payloadFor: z.string().optional()
617
621
  });
618
622
  var DeclaredTraitConfigSchema = z.record(
619
623
  ConfigFieldDeclarationSchema