@almadar/core 10.99.0 → 10.101.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 +2 -0
- package/dist/builders.js.map +1 -1
- package/dist/{bus-BGDM3Xot.d.ts → bus-B8evi8AZ.d.ts} +34 -2
- package/dist/{effect-CW_IT0Jn.d.ts → effect-Hm_QDaSI.d.ts} +8 -2
- package/dist/{entityAccess-BLpOMojb.d.ts → entityAccess-DdcKps16.d.ts} +2 -2
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +14 -1
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +14 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/fixtures.d.ts +2 -2
- package/dist/fixtures.js +12 -0
- package/dist/fixtures.js.map +1 -1
- package/dist/{index-CHHuux4I.d.ts → index-1b2JJVYl.d.ts} +30 -6
- package/dist/index.d.ts +12 -12
- package/dist/index.js +56 -5
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- 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 +37 -6
- package/dist/patterns/index.js +17 -4
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +15 -2
- package/dist/patterns/registry.json +15 -2
- package/dist/{schema-BVjtoRYf.d.ts → schema-TqLV2wlK.d.ts} +174 -2
- package/dist/{trait-C9lr222u.d.ts → trait-YlNXc4H3.d.ts} +37 -1
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +31 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-BoyvM79n.d.ts → types-Ug92oza4.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-TqLV2wlK.js';
|
|
2
|
+
import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-YlNXc4H3.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-Hm_QDaSI.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../json-D8gmyK3l.js';
|
|
6
6
|
import '../expression-DRwzVnMu.js';
|
|
@@ -936,6 +936,8 @@ var TraitSchema = z.object({
|
|
|
936
936
|
ticks: z.array(TraitTickSchema).optional(),
|
|
937
937
|
emits: z.array(TraitEventContractSchema).optional(),
|
|
938
938
|
listens: z.array(TraitEventListenerSchema).optional(),
|
|
939
|
+
/** Call-site rename map (`events { ACTION: CONFIRM_VOID }`) — mirrors `Trait.events`. */
|
|
940
|
+
events: z.record(z.string().min(1), z.string().min(1)).optional(),
|
|
939
941
|
ui: TraitUIBindingSchema.optional(),
|
|
940
942
|
config: DeclaredTraitConfigSchema.optional(),
|
|
941
943
|
sourceBehavior: SourceBehaviorMetadataSchema.optional(),
|
|
@@ -1785,6 +1787,18 @@ z.object({
|
|
|
1785
1787
|
clientEffectsByTrait: z.array(z.object({ traitName: z.string(), effect: ClientEffectTupleSchema })).optional(),
|
|
1786
1788
|
effectResults: z.array(ServerEffectResultSchema).optional(),
|
|
1787
1789
|
guardFailed: z.string().optional(),
|
|
1790
|
+
rejections: z.array(
|
|
1791
|
+
z.object({
|
|
1792
|
+
code: z.enum(["no-matching-transition", "guard-rejected", "no-dispatchable-traits"]),
|
|
1793
|
+
trait: z.string().optional(),
|
|
1794
|
+
from: z.string().optional(),
|
|
1795
|
+
event: z.string().optional(),
|
|
1796
|
+
statesDeclaringEvent: z.array(z.string()).optional(),
|
|
1797
|
+
transition: z.string().optional(),
|
|
1798
|
+
guard: z.unknown().optional()
|
|
1799
|
+
})
|
|
1800
|
+
).optional(),
|
|
1801
|
+
cascadeTruncated: z.array(z.string()).optional(),
|
|
1788
1802
|
error: z.string().optional()
|
|
1789
1803
|
});
|
|
1790
1804
|
z.object({
|