@almadar/core 10.90.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.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +4 -2
- package/dist/builders.js.map +1 -1
- package/dist/{effect-7jQQxiIt.d.ts → effect-DGa2ixo7.d.ts} +13 -1
- package/dist/{entityAccess-CpHfCQA3.d.ts → entityAccess-CXennIKj.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +437 -101
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +8 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/i18n/index.js +6 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-BresfHJy.d.ts → index-BFortVj8.d.ts} +39 -10
- package/dist/index.d.ts +11 -72
- package/dist/index.js +829 -209
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +11 -5
- package/dist/mock/index.js +3 -2
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1570 -181
- package/dist/patterns/index.js +771 -109
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +333 -6
- package/dist/patterns/patterns-registry.json +436 -101
- package/dist/patterns/registry.json +436 -101
- package/dist/patterns/services-registry.json +400 -68
- package/dist/{schema-C52juBr8.d.ts → schema-DIL07Bmv.d.ts} +25 -25
- package/dist/state-machine/index.js +19 -4
- package/dist/state-machine/index.js.map +1 -1
- package/dist/{trait-CFiL1YUN.d.ts → trait-DHb48lyx.d.ts} +10 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +32 -3
- package/dist/types/index.js.map +1 -1
- package/dist/{types-BgC8ETnl.d.ts → types-F5EPwMor.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
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';
|
|
@@ -167,7 +167,8 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
167
167
|
properties: z.record(EntityFieldSchema).optional(),
|
|
168
168
|
intrinsic: z.boolean().optional(),
|
|
169
169
|
description: z.string().optional(),
|
|
170
|
-
synonyms: z.string().optional()
|
|
170
|
+
synonyms: z.string().optional(),
|
|
171
|
+
mergedFrom: z.string().optional()
|
|
171
172
|
};
|
|
172
173
|
function scalarVariant(t) {
|
|
173
174
|
return z.object({
|
|
@@ -579,6 +580,9 @@ var TraitConfigSchema = z.record(TraitConfigValueSchema);
|
|
|
579
580
|
function isCallSiteConfigDeclaration(entry) {
|
|
580
581
|
return typeof entry === "object" && entry !== null && !Array.isArray(entry) && "type" in entry && typeof entry.type === "string" && "default" in entry;
|
|
581
582
|
}
|
|
583
|
+
function canonicalizeUnboundTraitOverride(fieldType, value) {
|
|
584
|
+
return fieldType === "trait" && value === "none" ? null : value;
|
|
585
|
+
}
|
|
582
586
|
function overrideDeclaredKnobs(declared, overrides) {
|
|
583
587
|
const out = { ...declared };
|
|
584
588
|
for (const key of Object.keys(overrides)) {
|
|
@@ -588,7 +592,7 @@ function overrideDeclaredKnobs(declared, overrides) {
|
|
|
588
592
|
`overrideDeclaredKnobs: config override "${key}" is not a declared knob (ORB_O_CONFIG_UNKNOWN_KEY). Declared: ${Object.keys(declared).join(", ") || "(none)"}`
|
|
589
593
|
);
|
|
590
594
|
}
|
|
591
|
-
out[key] = { ...field, default: overrides[key] };
|
|
595
|
+
out[key] = { ...field, default: canonicalizeUnboundTraitOverride(field.type, overrides[key]) };
|
|
592
596
|
}
|
|
593
597
|
return out;
|
|
594
598
|
}
|
|
@@ -612,7 +616,8 @@ var ConfigFieldDeclarationSchema = z.object({
|
|
|
612
616
|
synonyms: z.string().optional(),
|
|
613
617
|
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
614
618
|
properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional(),
|
|
615
|
-
forwardedFrom: z.string().optional()
|
|
619
|
+
forwardedFrom: z.string().optional(),
|
|
620
|
+
payloadFor: z.string().optional()
|
|
616
621
|
});
|
|
617
622
|
var DeclaredTraitConfigSchema = z.record(
|
|
618
623
|
ConfigFieldDeclarationSchema
|