@almadar/core 10.101.0 → 10.103.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 +5 -5
- package/dist/builders.js +6 -2
- package/dist/builders.js.map +1 -1
- package/dist/{bus-B8evi8AZ.d.ts → bus-BGojNDOE.d.ts} +52 -7
- package/dist/{domain-Ds_7wZIL.d.ts → domain-OgMkN3WN.d.ts} +13 -1
- package/dist/{effect-Hm_QDaSI.d.ts → effect-Xn3LIyL7.d.ts} +1 -1
- package/dist/{entityAccess-DdcKps16.d.ts → entityAccess-z5HA0P7P.d.ts} +3 -3
- package/dist/{expression-DRwzVnMu.d.ts → expression-CfeHdS-f.d.ts} +10 -1
- package/dist/factory/index.d.ts +5 -5
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +5 -5
- package/dist/factory-runtime/index.js +42 -8
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/fixtures.d.ts +3 -3
- package/dist/fixtures.js +27 -2
- package/dist/fixtures.js.map +1 -1
- package/dist/i18n/index.js +27 -6
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-1b2JJVYl.d.ts → index-CVYZ3GcI.d.ts} +122 -23
- package/dist/index.d.ts +74 -17
- package/dist/index.js +417 -72
- package/dist/index.js.map +1 -1
- package/dist/lolo-document/index.d.ts +166 -0
- package/dist/lolo-document/index.js +615 -0
- package/dist/lolo-document/index.js.map +1 -0
- package/dist/mock/index.d.ts +6 -6
- package/dist/mock/index.js +12 -1
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/index.d.ts +22 -4
- package/dist/patterns/index.js +41 -1
- package/dist/patterns/index.js.map +1 -1
- package/dist/{schema-TqLV2wlK.d.ts → schema-sHVqe8Kb.d.ts} +1307 -4
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/index.js +2 -1
- package/dist/themes/index.js.map +1 -1
- package/dist/{trait-YlNXc4H3.d.ts → trait-BSe6oDBd.d.ts} +79 -3
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.js +227 -12
- package/dist/types/index.js.map +1 -1
- package/dist/{types-Ug92oza4.d.ts → types-DK29MMOQ.d.ts} +2 -2
- package/fixtures/events-wire/client-effects-provenance/request.json +5 -0
- package/fixtures/events-wire/client-effects-provenance/response.json +57 -0
- package/package.json +6 -1
- package/src/types/bindings.ts +28 -3
package/dist/fixtures.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OrbitalEventRequest, a as OrbitalEventResponse, E as EmittedEvent, C as ClientEffectTuple, L as LiveBroadcastItem } from './bus-
|
|
3
|
-
import './effect-
|
|
4
|
-
import './expression-
|
|
2
|
+
import { O as OrbitalEventRequest, a as OrbitalEventResponse, E as EmittedEvent, C as ClientEffectTuple, L as LiveBroadcastItem } from './bus-BGojNDOE.js';
|
|
3
|
+
import './effect-Xn3LIyL7.js';
|
|
4
|
+
import './expression-CfeHdS-f.js';
|
|
5
5
|
import './json-D8gmyK3l.js';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/fixtures.js
CHANGED
|
@@ -570,6 +570,15 @@ var BusEventSourceSchema = z.object({
|
|
|
570
570
|
dispatched: z.boolean().optional(),
|
|
571
571
|
originClientId: z.string().optional()
|
|
572
572
|
});
|
|
573
|
+
var DeliveryRecordSchema = z.object({
|
|
574
|
+
event: z.string(),
|
|
575
|
+
payload: EventPayloadSchema.optional(),
|
|
576
|
+
source: BusEventSourceSchema
|
|
577
|
+
});
|
|
578
|
+
var DispatchLogSchema = z.object({
|
|
579
|
+
prevEvents: z.array(DeliveryRecordSchema),
|
|
580
|
+
prevStates: z.array(z.string())
|
|
581
|
+
});
|
|
573
582
|
var EmittedEventSchema = z.object({
|
|
574
583
|
event: z.string(),
|
|
575
584
|
payload: EventPayloadSchema.optional(),
|
|
@@ -614,7 +623,9 @@ var OrbitalEventRequestSchema = z.object({
|
|
|
614
623
|
sourceTrait: z.string().optional(),
|
|
615
624
|
traits: z.array(z.object({ trait: z.string(), from: z.string() })).optional(),
|
|
616
625
|
entityByTrait: z.record(EntityRowSchema).optional(),
|
|
617
|
-
behavior: z.string().optional()
|
|
626
|
+
behavior: z.string().optional(),
|
|
627
|
+
delivery: DeliveryRecordSchema.optional(),
|
|
628
|
+
dispatchLog: DispatchLogSchema.optional()
|
|
618
629
|
});
|
|
619
630
|
var OrbitalEventResponseSchema = z.object({
|
|
620
631
|
success: z.boolean(),
|
|
@@ -624,7 +635,12 @@ var OrbitalEventResponseSchema = z.object({
|
|
|
624
635
|
data: z.record(z.array(EntityRowSchema)).optional(),
|
|
625
636
|
entityByTrait: z.record(EntityRowSchema).optional(),
|
|
626
637
|
clientEffects: z.array(ClientEffectTupleSchema).optional(),
|
|
627
|
-
clientEffectsByTrait: z.array(z.object({
|
|
638
|
+
clientEffectsByTrait: z.array(z.object({
|
|
639
|
+
traitName: z.string(),
|
|
640
|
+
effect: ClientEffectTupleSchema,
|
|
641
|
+
event: z.string().optional(),
|
|
642
|
+
fromState: z.string().optional()
|
|
643
|
+
})).optional(),
|
|
628
644
|
effectResults: z.array(ServerEffectResultSchema).optional(),
|
|
629
645
|
guardFailed: z.string().optional(),
|
|
630
646
|
rejections: z.array(
|
|
@@ -641,6 +657,14 @@ var OrbitalEventResponseSchema = z.object({
|
|
|
641
657
|
cascadeTruncated: z.array(z.string()).optional(),
|
|
642
658
|
error: z.string().optional()
|
|
643
659
|
});
|
|
660
|
+
var ServerTopologySchema = z.enum(["stateless", "stateful"]);
|
|
661
|
+
z.object({
|
|
662
|
+
success: z.boolean(),
|
|
663
|
+
topology: ServerTopologySchema.optional(),
|
|
664
|
+
message: z.string().optional(),
|
|
665
|
+
orbitals: z.array(z.string()).optional(),
|
|
666
|
+
error: z.string().optional()
|
|
667
|
+
});
|
|
644
668
|
var LiveBroadcastItemSchema = z.object({
|
|
645
669
|
event: z.string(),
|
|
646
670
|
payload: EventPayloadSchema.optional(),
|
|
@@ -658,6 +682,7 @@ var SSEStreamItemSchema = z.union([
|
|
|
658
682
|
var EVENT_WIRE_FIXTURE_CASES = [
|
|
659
683
|
"cascade-emitted-events",
|
|
660
684
|
"client-effects-by-trait",
|
|
685
|
+
"client-effects-provenance",
|
|
661
686
|
"effect-results",
|
|
662
687
|
"effect-results-every-kind",
|
|
663
688
|
"guard-rejected",
|