@logixjs/core 0.0.1
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/Action-BkRHy2vg.d.cts +10 -0
- package/dist/Action-mqVvtEHt.d.ts +10 -0
- package/dist/Action.cjs +57 -0
- package/dist/Action.cjs.map +1 -0
- package/dist/Action.d.cts +2 -0
- package/dist/Action.d.ts +2 -0
- package/dist/Action.js +9 -0
- package/dist/Action.js.map +1 -0
- package/dist/Actions-AsQ07yTP.d.cts +22 -0
- package/dist/Actions-AsQ07yTP.d.ts +22 -0
- package/dist/Actions.cjs +19 -0
- package/dist/Actions.cjs.map +1 -0
- package/dist/Actions.d.cts +2 -0
- package/dist/Actions.d.ts +2 -0
- package/dist/Actions.js +2 -0
- package/dist/Actions.js.map +1 -0
- package/dist/Bound-BN1DQ_lM.d.ts +23 -0
- package/dist/Bound-BPIfH9SS.d.cts +23 -0
- package/dist/Bound.cjs +1532 -0
- package/dist/Bound.cjs.map +1 -0
- package/dist/Bound.d.cts +7 -0
- package/dist/Bound.d.ts +7 -0
- package/dist/Bound.js +25 -0
- package/dist/Bound.js.map +1 -0
- package/dist/Debug-B5q5Bkzx.d.ts +320 -0
- package/dist/Debug-Bq8Sqjcr.d.cts +320 -0
- package/dist/Debug.cjs +1821 -0
- package/dist/Debug.cjs.map +1 -0
- package/dist/Debug.d.cts +13 -0
- package/dist/Debug.d.ts +13 -0
- package/dist/Debug.js +76 -0
- package/dist/Debug.js.map +1 -0
- package/dist/EffectOp.cjs +169 -0
- package/dist/EffectOp.cjs.map +1 -0
- package/dist/EffectOp.d.cts +118 -0
- package/dist/EffectOp.d.ts +118 -0
- package/dist/EffectOp.js +28 -0
- package/dist/EffectOp.js.map +1 -0
- package/dist/Env-DuJ6JrU2.d.cts +10 -0
- package/dist/Env-DuJ6JrU2.d.ts +10 -0
- package/dist/Env.cjs +60 -0
- package/dist/Env.cjs.map +1 -0
- package/dist/Env.d.cts +1 -0
- package/dist/Env.d.ts +1 -0
- package/dist/Env.js +11 -0
- package/dist/Env.js.map +1 -0
- package/dist/Flow-1fZT8MpX.d.cts +152 -0
- package/dist/Flow-BhpjE22E.d.ts +152 -0
- package/dist/Flow.cjs +504 -0
- package/dist/Flow.cjs.map +1 -0
- package/dist/Flow.d.cts +8 -0
- package/dist/Flow.d.ts +8 -0
- package/dist/Flow.js +15 -0
- package/dist/Flow.js.map +1 -0
- package/dist/Handle-D8D1zPb_.d.cts +30 -0
- package/dist/Handle-D_cLW1Z3.d.ts +30 -0
- package/dist/Handle.cjs +42 -0
- package/dist/Handle.cjs.map +1 -0
- package/dist/Handle.d.cts +7 -0
- package/dist/Handle.d.ts +7 -0
- package/dist/Handle.js +10 -0
- package/dist/Handle.js.map +1 -0
- package/dist/Kernel-8kC-jOda.d.cts +171 -0
- package/dist/Kernel-CnGE1Fyk.d.ts +171 -0
- package/dist/Kernel.cjs +284 -0
- package/dist/Kernel.cjs.map +1 -0
- package/dist/Kernel.d.cts +14 -0
- package/dist/Kernel.d.ts +14 -0
- package/dist/Kernel.js +36 -0
- package/dist/Kernel.js.map +1 -0
- package/dist/Link-Db7975nU.d.ts +45 -0
- package/dist/Link-fX8x1eCK.d.cts +45 -0
- package/dist/Link.cjs +542 -0
- package/dist/Link.cjs.map +1 -0
- package/dist/Link.d.cts +7 -0
- package/dist/Link.d.ts +7 -0
- package/dist/Link.js +35 -0
- package/dist/Link.js.map +1 -0
- package/dist/Logic-BRjEMr-W.d.ts +38 -0
- package/dist/Logic-DRh4sDZj.d.cts +38 -0
- package/dist/Logic.cjs +37 -0
- package/dist/Logic.cjs.map +1 -0
- package/dist/Logic.d.cts +7 -0
- package/dist/Logic.d.ts +7 -0
- package/dist/Logic.js +10 -0
- package/dist/Logic.js.map +1 -0
- package/dist/MatchBuilder-0QOc-nlU.d.ts +14 -0
- package/dist/MatchBuilder-CJk5oCkR.d.cts +14 -0
- package/dist/MatchBuilder.cjs +85 -0
- package/dist/MatchBuilder.cjs.map +1 -0
- package/dist/MatchBuilder.d.cts +8 -0
- package/dist/MatchBuilder.d.ts +8 -0
- package/dist/MatchBuilder.js +11 -0
- package/dist/MatchBuilder.js.map +1 -0
- package/dist/Middleware.cjs +411 -0
- package/dist/Middleware.cjs.map +1 -0
- package/dist/Middleware.d.cts +88 -0
- package/dist/Middleware.d.ts +88 -0
- package/dist/Middleware.js +27 -0
- package/dist/Middleware.js.map +1 -0
- package/dist/Module-B_0xRDMR.d.cts +203 -0
- package/dist/Module-DnzluX2J.d.ts +203 -0
- package/dist/Module.cjs +13512 -0
- package/dist/Module.cjs.map +1 -0
- package/dist/Module.d.cts +8 -0
- package/dist/Module.d.ts +8 -0
- package/dist/Module.js +53 -0
- package/dist/Module.js.map +1 -0
- package/dist/ModuleTag-C8FHY_sY.d.ts +93 -0
- package/dist/ModuleTag-EGbgBMpZ.d.cts +93 -0
- package/dist/ModuleTag.cjs +12231 -0
- package/dist/ModuleTag.cjs.map +1 -0
- package/dist/ModuleTag.d.cts +8 -0
- package/dist/ModuleTag.d.ts +8 -0
- package/dist/ModuleTag.js +39 -0
- package/dist/ModuleTag.js.map +1 -0
- package/dist/Observability-COqEvp2C.d.cts +713 -0
- package/dist/Observability-cY4kLn0S.d.ts +713 -0
- package/dist/Observability.cjs +5865 -0
- package/dist/Observability.cjs.map +1 -0
- package/dist/Observability.d.cts +9 -0
- package/dist/Observability.d.ts +9 -0
- package/dist/Observability.js +41 -0
- package/dist/Observability.js.map +1 -0
- package/dist/Platform-C49Pv956.d.cts +21 -0
- package/dist/Platform-C49Pv956.d.ts +21 -0
- package/dist/Platform-CHX8o-U4.d.ts +51 -0
- package/dist/Platform-CVlv0xLQ.d.cts +51 -0
- package/dist/Platform.cjs +58 -0
- package/dist/Platform.cjs.map +1 -0
- package/dist/Platform.d.cts +4 -0
- package/dist/Platform.d.ts +4 -0
- package/dist/Platform.js +15 -0
- package/dist/Platform.js.map +1 -0
- package/dist/Process-CM9xbMdP.d.ts +92 -0
- package/dist/Process-mL8fHDSB.d.cts +92 -0
- package/dist/Process.cjs +575 -0
- package/dist/Process.cjs.map +1 -0
- package/dist/Process.d.cts +8 -0
- package/dist/Process.d.ts +8 -0
- package/dist/Process.js +42 -0
- package/dist/Process.js.map +1 -0
- package/dist/ReadQuery-BlMwhe-F.d.ts +30 -0
- package/dist/ReadQuery-CL5XlXts.d.cts +30 -0
- package/dist/ReadQuery-SinbStGF.d.cts +38 -0
- package/dist/ReadQuery-SinbStGF.d.ts +38 -0
- package/dist/ReadQuery.cjs +377 -0
- package/dist/ReadQuery.cjs.map +1 -0
- package/dist/ReadQuery.d.cts +2 -0
- package/dist/ReadQuery.d.ts +2 -0
- package/dist/ReadQuery.js +14 -0
- package/dist/ReadQuery.js.map +1 -0
- package/dist/Reflection-CQnKwPXj.d.ts +182 -0
- package/dist/Reflection-Kabo1mlU.d.cts +182 -0
- package/dist/Reflection.cjs +2954 -0
- package/dist/Reflection.cjs.map +1 -0
- package/dist/Reflection.d.cts +17 -0
- package/dist/Reflection.d.ts +17 -0
- package/dist/Reflection.js +40 -0
- package/dist/Reflection.js.map +1 -0
- package/dist/Resource-Dy1xD_DG.d.cts +75 -0
- package/dist/Resource-Dy1xD_DG.d.ts +75 -0
- package/dist/Resource.cjs +166 -0
- package/dist/Resource.cjs.map +1 -0
- package/dist/Resource.d.cts +3 -0
- package/dist/Resource.d.ts +3 -0
- package/dist/Resource.js +21 -0
- package/dist/Resource.js.map +1 -0
- package/dist/Root-7ADUMk4t.d.cts +29 -0
- package/dist/Root-7ADUMk4t.d.ts +29 -0
- package/dist/Root.cjs +125 -0
- package/dist/Root.cjs.map +1 -0
- package/dist/Root.d.cts +4 -0
- package/dist/Root.d.ts +4 -0
- package/dist/Root.js +12 -0
- package/dist/Root.js.map +1 -0
- package/dist/Runtime-B-aL-f29.d.cts +274 -0
- package/dist/Runtime-CtyzZG4i.d.ts +274 -0
- package/dist/Runtime.cjs +5740 -0
- package/dist/Runtime.cjs.map +1 -0
- package/dist/Runtime.d.cts +19 -0
- package/dist/Runtime.d.ts +19 -0
- package/dist/Runtime.js +62 -0
- package/dist/Runtime.js.map +1 -0
- package/dist/ScopeRegistry-D1owDNSm.d.cts +61 -0
- package/dist/ScopeRegistry-D1owDNSm.d.ts +61 -0
- package/dist/ScopeRegistry.cjs +152 -0
- package/dist/ScopeRegistry.cjs.map +1 -0
- package/dist/ScopeRegistry.d.cts +2 -0
- package/dist/ScopeRegistry.d.ts +2 -0
- package/dist/ScopeRegistry.js +16 -0
- package/dist/ScopeRegistry.js.map +1 -0
- package/dist/State-CU50R26M.d.cts +19 -0
- package/dist/State-CU50R26M.d.ts +19 -0
- package/dist/State.cjs +19 -0
- package/dist/State.cjs.map +1 -0
- package/dist/State.d.cts +2 -0
- package/dist/State.d.ts +2 -0
- package/dist/State.js +2 -0
- package/dist/State.js.map +1 -0
- package/dist/StateTrait-BGsZghTz.d.ts +122 -0
- package/dist/StateTrait-OWhbj12c.d.cts +122 -0
- package/dist/StateTrait.cjs +2737 -0
- package/dist/StateTrait.cjs.map +1 -0
- package/dist/StateTrait.d.cts +9 -0
- package/dist/StateTrait.d.ts +9 -0
- package/dist/StateTrait.js +39 -0
- package/dist/StateTrait.js.map +1 -0
- package/dist/TraitLifecycle-CwV5WPFX.d.cts +88 -0
- package/dist/TraitLifecycle-LdIWmKlg.d.ts +88 -0
- package/dist/TraitLifecycle.cjs +581 -0
- package/dist/TraitLifecycle.cjs.map +1 -0
- package/dist/TraitLifecycle.d.cts +8 -0
- package/dist/TraitLifecycle.d.ts +8 -0
- package/dist/TraitLifecycle.js +24 -0
- package/dist/TraitLifecycle.js.map +1 -0
- package/dist/action-DiMDD_0v.d.cts +35 -0
- package/dist/action-DiMDD_0v.d.ts +35 -0
- package/dist/chunk-24VULZ7A.js +76 -0
- package/dist/chunk-24VULZ7A.js.map +1 -0
- package/dist/chunk-3IYZ5IGG.js +17 -0
- package/dist/chunk-3IYZ5IGG.js.map +1 -0
- package/dist/chunk-3QMIVH35.js +43 -0
- package/dist/chunk-3QMIVH35.js.map +1 -0
- package/dist/chunk-3RMKLXHX.js +83 -0
- package/dist/chunk-3RMKLXHX.js.map +1 -0
- package/dist/chunk-3TMODYZV.js +111 -0
- package/dist/chunk-3TMODYZV.js.map +1 -0
- package/dist/chunk-3VG5TWQR.js +27 -0
- package/dist/chunk-3VG5TWQR.js.map +1 -0
- package/dist/chunk-4CQAV7YB.js +37 -0
- package/dist/chunk-4CQAV7YB.js.map +1 -0
- package/dist/chunk-4SO6JMZL.js +7 -0
- package/dist/chunk-4SO6JMZL.js.map +1 -0
- package/dist/chunk-66ALHVEX.js +40 -0
- package/dist/chunk-66ALHVEX.js.map +1 -0
- package/dist/chunk-76WT3HOR.js +397 -0
- package/dist/chunk-76WT3HOR.js.map +1 -0
- package/dist/chunk-ANLBCBDC.js +285 -0
- package/dist/chunk-ANLBCBDC.js.map +1 -0
- package/dist/chunk-AUIR5O6W.js +75 -0
- package/dist/chunk-AUIR5O6W.js.map +1 -0
- package/dist/chunk-BABLDP24.js +445 -0
- package/dist/chunk-BABLDP24.js.map +1 -0
- package/dist/chunk-BE3HW4FY.js +1099 -0
- package/dist/chunk-BE3HW4FY.js.map +1 -0
- package/dist/chunk-BZ2SHDN2.js +54 -0
- package/dist/chunk-BZ2SHDN2.js.map +1 -0
- package/dist/chunk-CW6T36TN.js +393 -0
- package/dist/chunk-CW6T36TN.js.map +1 -0
- package/dist/chunk-DFNM3WX2.js +632 -0
- package/dist/chunk-DFNM3WX2.js.map +1 -0
- package/dist/chunk-DMBALCE2.js +1034 -0
- package/dist/chunk-DMBALCE2.js.map +1 -0
- package/dist/chunk-EGK3KN7B.js +406 -0
- package/dist/chunk-EGK3KN7B.js.map +1 -0
- package/dist/chunk-EY4NZKDR.js +19 -0
- package/dist/chunk-EY4NZKDR.js.map +1 -0
- package/dist/chunk-G5ZBFPNU.js +23 -0
- package/dist/chunk-G5ZBFPNU.js.map +1 -0
- package/dist/chunk-GMPEOUP2.js +31 -0
- package/dist/chunk-GMPEOUP2.js.map +1 -0
- package/dist/chunk-IHVBV5C2.js +279 -0
- package/dist/chunk-IHVBV5C2.js.map +1 -0
- package/dist/chunk-IPF7E66P.js +23 -0
- package/dist/chunk-IPF7E66P.js.map +1 -0
- package/dist/chunk-JCXGZRMU.js +204 -0
- package/dist/chunk-JCXGZRMU.js.map +1 -0
- package/dist/chunk-JGIWG6SR.js +6359 -0
- package/dist/chunk-JGIWG6SR.js.map +1 -0
- package/dist/chunk-JWOYLO27.js +241 -0
- package/dist/chunk-JWOYLO27.js.map +1 -0
- package/dist/chunk-KIXAU3GM.js +137 -0
- package/dist/chunk-KIXAU3GM.js.map +1 -0
- package/dist/chunk-KL5ACTCT.js +8 -0
- package/dist/chunk-KL5ACTCT.js.map +1 -0
- package/dist/chunk-KP7MUZNX.js +83 -0
- package/dist/chunk-KP7MUZNX.js.map +1 -0
- package/dist/chunk-LEU6UA5J.js +1 -0
- package/dist/chunk-LEU6UA5J.js.map +1 -0
- package/dist/chunk-M2RGJPXX.js +35 -0
- package/dist/chunk-M2RGJPXX.js.map +1 -0
- package/dist/chunk-M3BFQ7HK.js +13 -0
- package/dist/chunk-M3BFQ7HK.js.map +1 -0
- package/dist/chunk-M3WTHJHJ.js +1051 -0
- package/dist/chunk-M3WTHJHJ.js.map +1 -0
- package/dist/chunk-M7IYCTJV.js +79 -0
- package/dist/chunk-M7IYCTJV.js.map +1 -0
- package/dist/chunk-NBD3KUOZ.js +838 -0
- package/dist/chunk-NBD3KUOZ.js.map +1 -0
- package/dist/chunk-NQZ2OSGR.js +151 -0
- package/dist/chunk-NQZ2OSGR.js.map +1 -0
- package/dist/chunk-NZJKFF45.js +106 -0
- package/dist/chunk-NZJKFF45.js.map +1 -0
- package/dist/chunk-OFADUJWJ.js +175 -0
- package/dist/chunk-OFADUJWJ.js.map +1 -0
- package/dist/chunk-OGWBVHB3.js +461 -0
- package/dist/chunk-OGWBVHB3.js.map +1 -0
- package/dist/chunk-PAYXCY6A.js +1696 -0
- package/dist/chunk-PAYXCY6A.js.map +1 -0
- package/dist/chunk-PYOE4VSI.js +1924 -0
- package/dist/chunk-PYOE4VSI.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-QCHIQWAJ.js +21 -0
- package/dist/chunk-QCHIQWAJ.js.map +1 -0
- package/dist/chunk-QMM6O4CD.js +71 -0
- package/dist/chunk-QMM6O4CD.js.map +1 -0
- package/dist/chunk-RNFE3ML2.js +22 -0
- package/dist/chunk-RNFE3ML2.js.map +1 -0
- package/dist/chunk-TAAPQVZN.js +23 -0
- package/dist/chunk-TAAPQVZN.js.map +1 -0
- package/dist/chunk-THATMZXD.js +21 -0
- package/dist/chunk-THATMZXD.js.map +1 -0
- package/dist/chunk-TKZ7MEIA.js +27 -0
- package/dist/chunk-TKZ7MEIA.js.map +1 -0
- package/dist/chunk-TQOBJYDP.js +7 -0
- package/dist/chunk-TQOBJYDP.js.map +1 -0
- package/dist/chunk-VZB726PE.js +93 -0
- package/dist/chunk-VZB726PE.js.map +1 -0
- package/dist/chunk-W3TEWHLO.js +568 -0
- package/dist/chunk-W3TEWHLO.js.map +1 -0
- package/dist/chunk-YS3AZQ2G.js +52 -0
- package/dist/chunk-YS3AZQ2G.js.map +1 -0
- package/dist/chunk-ZDTRWK5F.js +40 -0
- package/dist/chunk-ZDTRWK5F.js.map +1 -0
- package/dist/chunk-ZFLHVFUC.js +192 -0
- package/dist/chunk-ZFLHVFUC.js.map +1 -0
- package/dist/chunk-ZFY7U2FR.js +133 -0
- package/dist/chunk-ZFY7U2FR.js.map +1 -0
- package/dist/chunk-ZGDVUPTM.js +270 -0
- package/dist/chunk-ZGDVUPTM.js.map +1 -0
- package/dist/index.cjs +19700 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +195 -0
- package/dist/index.d.ts +195 -0
- package/dist/index.js +286 -0
- package/dist/index.js.map +1 -0
- package/dist/ir-BMP7yxJJ.d.cts +39 -0
- package/dist/ir-DUOz6H-5.d.ts +39 -0
- package/dist/module-B8CBqIZ_.d.cts +1191 -0
- package/dist/module-k7m3txak.d.ts +1191 -0
- package/dist/protocol-g_1897M2.d.cts +127 -0
- package/dist/protocol-g_1897M2.d.ts +127 -0
- package/package.json +162 -0
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
import { Effect, Context, Layer, ConfigProvider, Exit } from 'effect';
|
|
2
|
+
import { a0 as SerializableErrorSummary$1, h as AnyModuleShape, k as ModuleImpl } from './module-k7m3txak.js';
|
|
3
|
+
import { h as ProcessInstanceIdentity, j as ProcessTrigger, S as SerializableErrorSummary } from './protocol-g_1897M2.js';
|
|
4
|
+
import { S as StaticIr } from './ir-DUOz6H-5.js';
|
|
5
|
+
|
|
6
|
+
type JsonValue = null | boolean | number | string | ReadonlyArray<JsonValue> | {
|
|
7
|
+
readonly [key: string]: JsonValue;
|
|
8
|
+
};
|
|
9
|
+
type DowngradeReason = 'non_serializable' | 'oversized' | 'unknown';
|
|
10
|
+
interface JsonValueProjectionStats {
|
|
11
|
+
readonly dropped: number;
|
|
12
|
+
readonly oversized: number;
|
|
13
|
+
readonly nonSerializable: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type ResourceSnapshotPhase = 'idle' | 'loading' | 'success' | 'error';
|
|
17
|
+
type ReplayLogEvent = {
|
|
18
|
+
readonly _tag: 'ResourceSnapshot';
|
|
19
|
+
readonly resourceId: string;
|
|
20
|
+
readonly fieldPath: string;
|
|
21
|
+
readonly keyHash?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Optional: source concurrency policy (e.g. "switch" / "exhaust-trailing").
|
|
24
|
+
* - Must remain slim & serializable.
|
|
25
|
+
* - Used by Devtools/replay to explain why old results are dropped / why trailing happens.
|
|
26
|
+
*/
|
|
27
|
+
readonly concurrency?: string;
|
|
28
|
+
readonly phase: ResourceSnapshotPhase;
|
|
29
|
+
readonly snapshot: unknown;
|
|
30
|
+
readonly timestamp: number;
|
|
31
|
+
readonly moduleId?: string;
|
|
32
|
+
readonly instanceId?: string;
|
|
33
|
+
} | {
|
|
34
|
+
readonly _tag: 'InvalidateRequest';
|
|
35
|
+
readonly timestamp: number;
|
|
36
|
+
readonly moduleId?: string;
|
|
37
|
+
readonly instanceId?: string;
|
|
38
|
+
readonly kind: 'resource' | 'query';
|
|
39
|
+
readonly target: string;
|
|
40
|
+
readonly meta?: unknown;
|
|
41
|
+
};
|
|
42
|
+
type ResourceSnapshotEvent = Extract<ReplayLogEvent, {
|
|
43
|
+
readonly _tag: 'ResourceSnapshot';
|
|
44
|
+
}>;
|
|
45
|
+
interface ReplayLogService {
|
|
46
|
+
readonly record: (event: ReplayLogEvent) => Effect.Effect<void>;
|
|
47
|
+
readonly snapshot: Effect.Effect<ReadonlyArray<ReplayLogEvent>>;
|
|
48
|
+
readonly resetCursor: Effect.Effect<void>;
|
|
49
|
+
readonly consumeNext: (predicate: (event: ReplayLogEvent) => boolean) => Effect.Effect<ReplayLogEvent | undefined>;
|
|
50
|
+
readonly consumeNextResourceSnapshot: (params: {
|
|
51
|
+
readonly resourceId: string;
|
|
52
|
+
readonly fieldPath: string;
|
|
53
|
+
readonly keyHash?: string;
|
|
54
|
+
readonly phase?: ResourceSnapshotPhase;
|
|
55
|
+
}) => Effect.Effect<ResourceSnapshotEvent | undefined>;
|
|
56
|
+
}
|
|
57
|
+
declare const ReplayLog_base: Context.TagClass<ReplayLog, "@logixjs/core/ReplayLog", ReplayLogService>;
|
|
58
|
+
declare class ReplayLog extends ReplayLog_base {
|
|
59
|
+
}
|
|
60
|
+
declare const make$1: (initial?: ReadonlyArray<ReplayLogEvent>) => ReplayLogService;
|
|
61
|
+
declare const layer$2: (initial?: ReadonlyArray<ReplayLogEvent>) => Layer.Layer<ReplayLog, never, never>;
|
|
62
|
+
declare const record: (event: ReplayLogEvent) => Effect.Effect<void, never, ReplayLog>;
|
|
63
|
+
declare const snapshot: Effect.Effect<ReadonlyArray<ReplayLogEvent>, never, ReplayLog>;
|
|
64
|
+
declare const resetCursor: Effect.Effect<void, never, ReplayLog>;
|
|
65
|
+
declare const consumeNextResourceSnapshot: (params: {
|
|
66
|
+
readonly resourceId: string;
|
|
67
|
+
readonly fieldPath: string;
|
|
68
|
+
readonly keyHash?: string;
|
|
69
|
+
readonly phase?: ResourceSnapshotPhase;
|
|
70
|
+
}) => Effect.Effect<ResourceSnapshotEvent | undefined, never, ReplayLog>;
|
|
71
|
+
|
|
72
|
+
type ReplayLog$1_ReplayLog = ReplayLog;
|
|
73
|
+
declare const ReplayLog$1_ReplayLog: typeof ReplayLog;
|
|
74
|
+
type ReplayLog$1_ReplayLogEvent = ReplayLogEvent;
|
|
75
|
+
type ReplayLog$1_ReplayLogService = ReplayLogService;
|
|
76
|
+
type ReplayLog$1_ResourceSnapshotEvent = ResourceSnapshotEvent;
|
|
77
|
+
type ReplayLog$1_ResourceSnapshotPhase = ResourceSnapshotPhase;
|
|
78
|
+
declare const ReplayLog$1_consumeNextResourceSnapshot: typeof consumeNextResourceSnapshot;
|
|
79
|
+
declare const ReplayLog$1_record: typeof record;
|
|
80
|
+
declare const ReplayLog$1_resetCursor: typeof resetCursor;
|
|
81
|
+
declare const ReplayLog$1_snapshot: typeof snapshot;
|
|
82
|
+
declare namespace ReplayLog$1 {
|
|
83
|
+
export { ReplayLog$1_ReplayLog as ReplayLog, type ReplayLog$1_ReplayLogEvent as ReplayLogEvent, type ReplayLog$1_ReplayLogService as ReplayLogService, type ReplayLog$1_ResourceSnapshotEvent as ResourceSnapshotEvent, type ReplayLog$1_ResourceSnapshotPhase as ResourceSnapshotPhase, ReplayLog$1_consumeNextResourceSnapshot as consumeNextResourceSnapshot, layer$2 as layer, make$1 as make, ReplayLog$1_record as record, ReplayLog$1_resetCursor as resetCursor, ReplayLog$1_snapshot as snapshot };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface TriggerRef {
|
|
87
|
+
readonly kind: string;
|
|
88
|
+
readonly name?: string;
|
|
89
|
+
readonly details?: unknown;
|
|
90
|
+
}
|
|
91
|
+
type TraceEventType = `trace:${string}`;
|
|
92
|
+
type GenericTraceEventType = Exclude<TraceEventType, 'trace:trait:converge' | 'trace:trait:check' | 'trace:trait:validate'>;
|
|
93
|
+
/**
|
|
94
|
+
* ReplayEventRef:
|
|
95
|
+
* - Replay event structure referenced from Debug events.
|
|
96
|
+
* - Based on ReplayLog.Event, enriched with txn/trigger association fields for Devtools aggregation and explanation.
|
|
97
|
+
*/
|
|
98
|
+
type ReplayEventRef = ReplayLogEvent & {
|
|
99
|
+
readonly txnId?: string;
|
|
100
|
+
readonly trigger?: TriggerRef;
|
|
101
|
+
};
|
|
102
|
+
type Event = {
|
|
103
|
+
readonly type: 'module:init';
|
|
104
|
+
readonly moduleId?: string;
|
|
105
|
+
readonly instanceId?: string;
|
|
106
|
+
readonly runtimeLabel?: string;
|
|
107
|
+
readonly timestamp?: number;
|
|
108
|
+
} | {
|
|
109
|
+
readonly type: 'module:destroy';
|
|
110
|
+
readonly moduleId?: string;
|
|
111
|
+
readonly instanceId?: string;
|
|
112
|
+
readonly runtimeLabel?: string;
|
|
113
|
+
readonly timestamp?: number;
|
|
114
|
+
} | {
|
|
115
|
+
readonly type: 'lifecycle:phase';
|
|
116
|
+
readonly moduleId?: string;
|
|
117
|
+
readonly instanceId?: string;
|
|
118
|
+
readonly phase: 'init' | 'run' | 'destroy' | 'platform';
|
|
119
|
+
readonly name: string;
|
|
120
|
+
readonly payload?: unknown;
|
|
121
|
+
readonly runtimeLabel?: string;
|
|
122
|
+
readonly timestamp?: number;
|
|
123
|
+
} | {
|
|
124
|
+
readonly type: 'action:dispatch';
|
|
125
|
+
readonly moduleId?: string;
|
|
126
|
+
readonly instanceId?: string;
|
|
127
|
+
readonly action: unknown;
|
|
128
|
+
readonly actionTag?: string;
|
|
129
|
+
readonly unknownAction?: boolean;
|
|
130
|
+
readonly txnSeq?: number;
|
|
131
|
+
readonly txnId?: string;
|
|
132
|
+
readonly runtimeLabel?: string;
|
|
133
|
+
readonly timestamp?: number;
|
|
134
|
+
} | {
|
|
135
|
+
readonly type: 'state:update';
|
|
136
|
+
readonly moduleId?: string;
|
|
137
|
+
readonly instanceId?: string;
|
|
138
|
+
readonly state: unknown;
|
|
139
|
+
readonly txnSeq?: number;
|
|
140
|
+
readonly txnId?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Optional: Static IR digest aligned with FieldPathId/StepId (for consumer-side reverse-mapping & alignment).
|
|
143
|
+
* - When missing or mismatched, consumers must not attempt to reverse-map rootIds -> rootPaths (avoid wrong UI).
|
|
144
|
+
* - Allowed to be omitted on near-zero-cost diagnostics=off paths.
|
|
145
|
+
*/
|
|
146
|
+
readonly staticIrDigest?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Optional: the affected scope aggregated by this commit (field-level dirty-set).
|
|
149
|
+
* - Populated by Runtime at commit time;
|
|
150
|
+
* - Must stay slim and serializable;
|
|
151
|
+
* - Devtools can use it to explain "why converge/validate ran / why it degraded to full".
|
|
152
|
+
*/
|
|
153
|
+
readonly dirtySet?: unknown;
|
|
154
|
+
/**
|
|
155
|
+
* Optional: patch count aggregated by this commit (from StateTransaction).
|
|
156
|
+
* - Populated by Runtime only on transaction paths.
|
|
157
|
+
* - Devtools can use it as a lightweight transaction summary metric.
|
|
158
|
+
*/
|
|
159
|
+
readonly patchCount?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Optional: whether patch records were truncated (bounded) under full instrumentation.
|
|
162
|
+
*/
|
|
163
|
+
readonly patchesTruncated?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Optional: truncation reason code (stable enum).
|
|
166
|
+
*/
|
|
167
|
+
readonly patchesTruncatedReason?: 'max_patches';
|
|
168
|
+
/**
|
|
169
|
+
* Optional: commit mode (normal/batched/low-priority, etc).
|
|
170
|
+
* - Populated by Runtime;
|
|
171
|
+
* - Default is chosen by the caller (typically "normal").
|
|
172
|
+
*/
|
|
173
|
+
readonly commitMode?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Optional: external visibility priority (normal/low).
|
|
176
|
+
* - Populated by Runtime.
|
|
177
|
+
* - Mainly used by React external subscription scheduling (avoid unnecessary renders).
|
|
178
|
+
*/
|
|
179
|
+
readonly priority?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Optional: transaction origin kind (origin.kind) that triggered this state commit:
|
|
182
|
+
* - e.g. "action" / "source-refresh" / "service-callback" / "devtools".
|
|
183
|
+
* - Populated by Runtime only on StateTransaction-based paths.
|
|
184
|
+
* - Devtools can distinguish app transactions vs devtools time-travel operations.
|
|
185
|
+
*/
|
|
186
|
+
readonly originKind?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Optional: transaction origin name (origin.name) that triggered this state commit:
|
|
189
|
+
* - e.g. action dispatch / fieldPath / task:success/task:failure, etc.
|
|
190
|
+
* - Populated by Runtime only on StateTransaction-based paths.
|
|
191
|
+
*/
|
|
192
|
+
readonly originName?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Reserved: Trait converge summary (for Devtools window-level stats / TopN costs / degrade reasons, etc.).
|
|
195
|
+
* - Phase 2: field slot only; structure is not fixed.
|
|
196
|
+
* - Later phases will align with the Trait/Replay event model into an explainable structure.
|
|
197
|
+
*/
|
|
198
|
+
readonly traitSummary?: unknown;
|
|
199
|
+
/**
|
|
200
|
+
* Reserved: replay event associated with this transaction (re-emit source of truth from ReplayLog).
|
|
201
|
+
* - Phase 2: field slot only.
|
|
202
|
+
* - Later phases will align with ReplayLog.Event structure.
|
|
203
|
+
*/
|
|
204
|
+
readonly replayEvent?: ReplayEventRef;
|
|
205
|
+
readonly runtimeLabel?: string;
|
|
206
|
+
readonly timestamp?: number;
|
|
207
|
+
} | {
|
|
208
|
+
readonly type: 'process:start' | 'process:stop' | 'process:restart' | 'process:trigger' | 'process:dispatch' | 'process:error';
|
|
209
|
+
readonly moduleId?: string;
|
|
210
|
+
readonly instanceId?: string;
|
|
211
|
+
readonly identity: ProcessInstanceIdentity;
|
|
212
|
+
readonly severity: 'info' | 'warning' | 'error';
|
|
213
|
+
readonly eventSeq: number;
|
|
214
|
+
readonly timestampMs: number;
|
|
215
|
+
readonly trigger?: ProcessTrigger;
|
|
216
|
+
readonly dispatch?: {
|
|
217
|
+
readonly moduleId: string;
|
|
218
|
+
readonly instanceId: string;
|
|
219
|
+
readonly actionId: string;
|
|
220
|
+
};
|
|
221
|
+
readonly error?: SerializableErrorSummary;
|
|
222
|
+
readonly txnSeq?: number;
|
|
223
|
+
readonly txnId?: string;
|
|
224
|
+
readonly runtimeLabel?: string;
|
|
225
|
+
readonly timestamp?: number;
|
|
226
|
+
} | {
|
|
227
|
+
readonly type: 'lifecycle:error';
|
|
228
|
+
readonly moduleId?: string;
|
|
229
|
+
readonly instanceId?: string;
|
|
230
|
+
readonly cause: unknown;
|
|
231
|
+
readonly phase?: 'init' | 'run' | 'destroy' | 'platform';
|
|
232
|
+
readonly hook?: 'initRequired' | 'start' | 'destroy' | 'suspend' | 'resume' | 'reset' | 'unknown';
|
|
233
|
+
readonly taskId?: string;
|
|
234
|
+
readonly opSeq?: number;
|
|
235
|
+
readonly origin?: string;
|
|
236
|
+
readonly txnSeq?: number;
|
|
237
|
+
readonly runtimeLabel?: string;
|
|
238
|
+
readonly timestamp?: number;
|
|
239
|
+
} | {
|
|
240
|
+
readonly type: 'diagnostic';
|
|
241
|
+
readonly moduleId?: string;
|
|
242
|
+
readonly instanceId?: string;
|
|
243
|
+
readonly code: string;
|
|
244
|
+
readonly severity: 'error' | 'warning' | 'info';
|
|
245
|
+
readonly message: string;
|
|
246
|
+
readonly hint?: string;
|
|
247
|
+
readonly actionTag?: string;
|
|
248
|
+
readonly kind?: string;
|
|
249
|
+
readonly txnSeq?: number;
|
|
250
|
+
readonly txnId?: string;
|
|
251
|
+
readonly trigger?: TriggerRef;
|
|
252
|
+
readonly runtimeLabel?: string;
|
|
253
|
+
readonly timestamp?: number;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* trace:* events:
|
|
257
|
+
* - Extension hook for runtime tracing / Playground / Alignment Lab.
|
|
258
|
+
* - Only the type prefix and moduleId are standardized; payload shape is defined by higher layers (e.g. spanId/attributes in data).
|
|
259
|
+
*/
|
|
260
|
+
| {
|
|
261
|
+
readonly type: 'trace:trait:converge';
|
|
262
|
+
readonly moduleId?: string;
|
|
263
|
+
readonly instanceId?: string;
|
|
264
|
+
readonly data: JsonValue;
|
|
265
|
+
readonly txnSeq?: number;
|
|
266
|
+
readonly txnId?: string;
|
|
267
|
+
readonly runtimeLabel?: string;
|
|
268
|
+
readonly timestamp?: number;
|
|
269
|
+
} | {
|
|
270
|
+
readonly type: 'trace:trait:check';
|
|
271
|
+
readonly moduleId?: string;
|
|
272
|
+
readonly instanceId?: string;
|
|
273
|
+
readonly data: JsonValue;
|
|
274
|
+
readonly txnSeq?: number;
|
|
275
|
+
readonly txnId?: string;
|
|
276
|
+
readonly runtimeLabel?: string;
|
|
277
|
+
readonly timestamp?: number;
|
|
278
|
+
} | {
|
|
279
|
+
readonly type: 'trace:trait:validate';
|
|
280
|
+
readonly moduleId?: string;
|
|
281
|
+
readonly instanceId?: string;
|
|
282
|
+
readonly data: JsonValue;
|
|
283
|
+
readonly txnSeq?: number;
|
|
284
|
+
readonly txnId?: string;
|
|
285
|
+
readonly runtimeLabel?: string;
|
|
286
|
+
readonly timestamp?: number;
|
|
287
|
+
} | {
|
|
288
|
+
readonly type: GenericTraceEventType;
|
|
289
|
+
readonly moduleId?: string;
|
|
290
|
+
readonly instanceId?: string;
|
|
291
|
+
readonly data?: unknown;
|
|
292
|
+
readonly txnSeq?: number;
|
|
293
|
+
readonly txnId?: string;
|
|
294
|
+
readonly runtimeLabel?: string;
|
|
295
|
+
readonly timestamp?: number;
|
|
296
|
+
};
|
|
297
|
+
interface Sink {
|
|
298
|
+
readonly record: (event: Event) => Effect.Effect<void>;
|
|
299
|
+
}
|
|
300
|
+
type DiagnosticsLevel = 'off' | 'light' | 'sampled' | 'full';
|
|
301
|
+
interface TraitConvergeDiagnosticsSamplingConfig {
|
|
302
|
+
/**
|
|
303
|
+
* Sample once every N txns (deterministic, based on stable txnSeq).
|
|
304
|
+
* - 1: sample every txn (timing granularity similar to full, while keeping payload slim)
|
|
305
|
+
*/
|
|
306
|
+
readonly sampleEveryN: number;
|
|
307
|
+
/**
|
|
308
|
+
* Max number of TopK hotspots to output (recommended ≤ 3).
|
|
309
|
+
*/
|
|
310
|
+
readonly topK: number;
|
|
311
|
+
}
|
|
312
|
+
type RuntimeDebugEventKind = 'action' | 'state' | 'service' | 'process' | 'trait-computed' | 'trait-link' | 'trait-source' | 'lifecycle' | 'react-render' | 'devtools' | 'diagnostic' | (string & {});
|
|
313
|
+
interface RuntimeDebugEventRef {
|
|
314
|
+
readonly eventId: string;
|
|
315
|
+
readonly eventSeq: number;
|
|
316
|
+
readonly moduleId: string;
|
|
317
|
+
readonly instanceId: string;
|
|
318
|
+
readonly runtimeLabel?: string;
|
|
319
|
+
readonly txnSeq: number;
|
|
320
|
+
readonly txnId?: string;
|
|
321
|
+
/**
|
|
322
|
+
* linkId:
|
|
323
|
+
* - Current operation chain id (shared by boundary ops in the same chain).
|
|
324
|
+
* - Created by Runtime at the boundary root and propagated via FiberRef across nested/cross-module chains.
|
|
325
|
+
*/
|
|
326
|
+
readonly linkId?: string;
|
|
327
|
+
readonly timestamp: number;
|
|
328
|
+
readonly kind: RuntimeDebugEventKind;
|
|
329
|
+
readonly label: string;
|
|
330
|
+
readonly meta?: JsonValue;
|
|
331
|
+
readonly errorSummary?: SerializableErrorSummary$1;
|
|
332
|
+
readonly downgrade?: {
|
|
333
|
+
readonly reason?: 'non_serializable' | 'oversized' | 'unknown';
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
interface ObservationEnvelope$1 {
|
|
338
|
+
readonly protocolVersion: string;
|
|
339
|
+
readonly runId: string;
|
|
340
|
+
readonly seq: number;
|
|
341
|
+
readonly timestamp: number;
|
|
342
|
+
readonly type: string;
|
|
343
|
+
readonly payload: JsonValue;
|
|
344
|
+
}
|
|
345
|
+
interface EvidencePackageSource$1 {
|
|
346
|
+
readonly host: string;
|
|
347
|
+
readonly label?: string;
|
|
348
|
+
}
|
|
349
|
+
interface EvidencePackage$1 {
|
|
350
|
+
readonly protocolVersion: string;
|
|
351
|
+
readonly runId: string;
|
|
352
|
+
readonly createdAt: number;
|
|
353
|
+
readonly source: EvidencePackageSource$1;
|
|
354
|
+
readonly events: ReadonlyArray<ObservationEnvelope$1>;
|
|
355
|
+
readonly summary?: JsonValue;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
type RunId = string;
|
|
359
|
+
interface RunSessionLocalState {
|
|
360
|
+
/**
|
|
361
|
+
* once: a de-dup key set for "emit only once" behavior (must be isolated per session to avoid cross-session pollution).
|
|
362
|
+
* Returns true if it's the first occurrence, false if the key has been seen before.
|
|
363
|
+
*/
|
|
364
|
+
readonly once: (key: string) => boolean;
|
|
365
|
+
/**
|
|
366
|
+
* seq: allocate monotonic sequences by key (e.g. opSeq/eventSeq), must be isolated per session.
|
|
367
|
+
*/
|
|
368
|
+
readonly nextSeq: (namespace: string, key: string) => number;
|
|
369
|
+
/** Tests/reset only: clear this session's local state. */
|
|
370
|
+
readonly clear: () => void;
|
|
371
|
+
}
|
|
372
|
+
interface RunSession {
|
|
373
|
+
readonly runId: RunId;
|
|
374
|
+
readonly source: EvidencePackageSource$1;
|
|
375
|
+
readonly startedAt: number;
|
|
376
|
+
readonly local: RunSessionLocalState;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
type OverrideScope = 'builtin' | 'runtime_default' | 'runtime_module' | 'provider' | 'instance';
|
|
380
|
+
type RuntimeServiceOverride = {
|
|
381
|
+
readonly implId?: string;
|
|
382
|
+
readonly notes?: string;
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* RuntimeServicesOverrides: a serializable override for runtime service implementation selection.
|
|
386
|
+
*
|
|
387
|
+
* - The key is a stable serviceId.
|
|
388
|
+
* - The value may only contain serializable fields (no functions/closures) so evidence can be produced and explained.
|
|
389
|
+
*/
|
|
390
|
+
type RuntimeServicesOverrides = Readonly<Record<string, RuntimeServiceOverride>>;
|
|
391
|
+
interface RuntimeServiceBinding {
|
|
392
|
+
readonly serviceId: string;
|
|
393
|
+
readonly implId?: string;
|
|
394
|
+
readonly implVersion?: string;
|
|
395
|
+
readonly scope: OverrideScope;
|
|
396
|
+
readonly overridden: boolean;
|
|
397
|
+
readonly notes?: string;
|
|
398
|
+
}
|
|
399
|
+
interface RuntimeServicesEvidence {
|
|
400
|
+
readonly moduleId?: string;
|
|
401
|
+
readonly instanceId: string;
|
|
402
|
+
readonly scope: OverrideScope;
|
|
403
|
+
readonly bindings: ReadonlyArray<RuntimeServiceBinding>;
|
|
404
|
+
readonly overridesApplied: ReadonlyArray<string>;
|
|
405
|
+
}
|
|
406
|
+
interface RuntimeServiceImpl<Service> {
|
|
407
|
+
readonly implId: string;
|
|
408
|
+
readonly implVersion: string;
|
|
409
|
+
readonly make: Effect.Effect<Service, never, any>;
|
|
410
|
+
readonly notes?: string;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* RuntimeServicesRegistry:
|
|
414
|
+
* - Used to inject additional serviceId → impls (e.g. implementations provided by core-ng).
|
|
415
|
+
* - A non-serializable contract used only during assembly; selection evidence is still carried by
|
|
416
|
+
* RuntimeServicesOverrides + RuntimeServicesEvidence.
|
|
417
|
+
*/
|
|
418
|
+
interface RuntimeServicesRegistry {
|
|
419
|
+
readonly implsByServiceId: Readonly<Record<string, ReadonlyArray<RuntimeServiceImpl<any>>>>;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
interface ConstructionGuardError extends Error {
|
|
423
|
+
readonly _tag: 'ConstructionGuardError';
|
|
424
|
+
readonly kind: 'missing_service' | 'unknown_defect';
|
|
425
|
+
readonly missingService?: string;
|
|
426
|
+
readonly hint?: string;
|
|
427
|
+
}
|
|
428
|
+
declare const makeConstructionGuardError: (options: {
|
|
429
|
+
readonly kind: ConstructionGuardError["kind"];
|
|
430
|
+
readonly message: string;
|
|
431
|
+
readonly missingService?: string;
|
|
432
|
+
readonly hint?: string;
|
|
433
|
+
}) => ConstructionGuardError;
|
|
434
|
+
/**
|
|
435
|
+
* guardBuildTime:
|
|
436
|
+
* - During Build Env/Reflection, catch "missing service" defects and convert them into actionable errors.
|
|
437
|
+
* - Preserve other failures/defects as-is (do not swallow business error semantics).
|
|
438
|
+
*/
|
|
439
|
+
declare const guardBuildTime: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E | ConstructionGuardError, R>;
|
|
440
|
+
|
|
441
|
+
type ConstructionGuard_ConstructionGuardError = ConstructionGuardError;
|
|
442
|
+
declare const ConstructionGuard_guardBuildTime: typeof guardBuildTime;
|
|
443
|
+
declare const ConstructionGuard_makeConstructionGuardError: typeof makeConstructionGuardError;
|
|
444
|
+
declare namespace ConstructionGuard {
|
|
445
|
+
export { type ConstructionGuard_ConstructionGuardError as ConstructionGuardError, ConstructionGuard_guardBuildTime as guardBuildTime, ConstructionGuard_makeConstructionGuardError as makeConstructionGuardError };
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
type RuntimeHostKind = 'node' | 'browser' | 'unknown';
|
|
449
|
+
interface RuntimeHostService {
|
|
450
|
+
readonly kind: RuntimeHostKind;
|
|
451
|
+
readonly isNode: boolean;
|
|
452
|
+
readonly isBrowser: boolean;
|
|
453
|
+
}
|
|
454
|
+
declare const make: (kind: RuntimeHostKind) => RuntimeHostService;
|
|
455
|
+
declare const RuntimeHost_base: Context.TagClass<RuntimeHost, "@logixjs/RuntimeHost", RuntimeHostService>;
|
|
456
|
+
declare class RuntimeHost extends RuntimeHost_base {
|
|
457
|
+
}
|
|
458
|
+
declare const layer$1: (service: RuntimeHostService) => Layer.Layer<RuntimeHost, never, never>;
|
|
459
|
+
declare const mock: (kind: RuntimeHostKind) => Layer.Layer<RuntimeHost, never, never>;
|
|
460
|
+
declare const defaultLayer: Layer.Layer<RuntimeHost, never, never>;
|
|
461
|
+
|
|
462
|
+
type RuntimeHost$1_RuntimeHost = RuntimeHost;
|
|
463
|
+
declare const RuntimeHost$1_RuntimeHost: typeof RuntimeHost;
|
|
464
|
+
type RuntimeHost$1_RuntimeHostKind = RuntimeHostKind;
|
|
465
|
+
type RuntimeHost$1_RuntimeHostService = RuntimeHostService;
|
|
466
|
+
declare const RuntimeHost$1_defaultLayer: typeof defaultLayer;
|
|
467
|
+
declare const RuntimeHost$1_make: typeof make;
|
|
468
|
+
declare const RuntimeHost$1_mock: typeof mock;
|
|
469
|
+
declare namespace RuntimeHost$1 {
|
|
470
|
+
export { RuntimeHost$1_RuntimeHost as RuntimeHost, type RuntimeHost$1_RuntimeHostKind as RuntimeHostKind, type RuntimeHost$1_RuntimeHostService as RuntimeHostService, RuntimeHost$1_defaultLayer as defaultLayer, layer$1 as layer, RuntimeHost$1_make as make, RuntimeHost$1_mock as mock };
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
type BuildEnvConfigValue = string | number | boolean;
|
|
474
|
+
interface BuildEnvOptions {
|
|
475
|
+
readonly runtimeHost?: RuntimeHostService;
|
|
476
|
+
readonly runtimeHostKind?: RuntimeHostKind;
|
|
477
|
+
/**
|
|
478
|
+
* Flat key/value config for mocking feature flags / env variables (values are coerced to string).
|
|
479
|
+
*/
|
|
480
|
+
readonly config?: Record<string, BuildEnvConfigValue | undefined>;
|
|
481
|
+
/**
|
|
482
|
+
* Advanced: inject a ConfigProvider directly (higher priority than config).
|
|
483
|
+
*/
|
|
484
|
+
readonly configProvider?: ConfigProvider.ConfigProvider;
|
|
485
|
+
}
|
|
486
|
+
declare const layer: (options?: BuildEnvOptions) => Layer.Layer<RuntimeHost, never, never>;
|
|
487
|
+
declare const run: <A, E>(builder: Effect.Effect<A, E, RuntimeHost>, options?: BuildEnvOptions) => Effect.Effect<A, E | ConstructionGuardError, never>;
|
|
488
|
+
|
|
489
|
+
type BuildEnv_BuildEnvConfigValue = BuildEnvConfigValue;
|
|
490
|
+
type BuildEnv_BuildEnvOptions = BuildEnvOptions;
|
|
491
|
+
declare const BuildEnv_layer: typeof layer;
|
|
492
|
+
declare const BuildEnv_run: typeof run;
|
|
493
|
+
declare namespace BuildEnv {
|
|
494
|
+
export { type BuildEnv_BuildEnvConfigValue as BuildEnvConfigValue, type BuildEnv_BuildEnvOptions as BuildEnvOptions, BuildEnv_layer as layer, BuildEnv_run as run };
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Stable identifier for a kernel variant (requested kernel family).
|
|
499
|
+
*
|
|
500
|
+
* - Recommended: `[a-z0-9-]+` (lower-kebab).
|
|
501
|
+
* - Recommended reserved names: `core` (builtin semantics), `core-ng` (history/comparison).
|
|
502
|
+
*/
|
|
503
|
+
type KernelId = 'core' | 'core-ng' | (string & {});
|
|
504
|
+
interface KernelImplementationRef {
|
|
505
|
+
/**
|
|
506
|
+
* Requested kernel family id (not a version number).
|
|
507
|
+
* Actual activation / fallback must be interpreted via RuntimeServicesEvidence.
|
|
508
|
+
*/
|
|
509
|
+
readonly kernelId: KernelId;
|
|
510
|
+
/** The npm package that provides the kernel implementation. */
|
|
511
|
+
readonly packageName: string;
|
|
512
|
+
/** Optional semver for explainability (not used as a semantic anchor). */
|
|
513
|
+
readonly packageVersion?: string;
|
|
514
|
+
/** Optional build hash/id for evidence diff explainability. */
|
|
515
|
+
readonly buildId?: string;
|
|
516
|
+
/** Explainability-only labels; must not become semantic switches. */
|
|
517
|
+
readonly capabilities?: ReadonlyArray<string>;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
declare const exportStaticIr: (module: unknown) => StaticIr | undefined;
|
|
521
|
+
|
|
522
|
+
interface ManifestBudgets {
|
|
523
|
+
readonly maxBytes?: number;
|
|
524
|
+
}
|
|
525
|
+
interface ExtractManifestOptions {
|
|
526
|
+
readonly includeStaticIr?: boolean;
|
|
527
|
+
readonly budgets?: ManifestBudgets;
|
|
528
|
+
}
|
|
529
|
+
interface ModuleManifestLogicUnit {
|
|
530
|
+
readonly kind: string;
|
|
531
|
+
readonly id: string;
|
|
532
|
+
readonly derived?: boolean;
|
|
533
|
+
readonly name?: string;
|
|
534
|
+
}
|
|
535
|
+
interface ModuleManifestAction {
|
|
536
|
+
readonly actionTag: string;
|
|
537
|
+
readonly payload: {
|
|
538
|
+
readonly kind: 'void' | 'nonVoid' | 'unknown';
|
|
539
|
+
};
|
|
540
|
+
readonly primaryReducer?: {
|
|
541
|
+
readonly kind: 'declared' | 'registered';
|
|
542
|
+
};
|
|
543
|
+
readonly source?: {
|
|
544
|
+
readonly file: string;
|
|
545
|
+
readonly line: number;
|
|
546
|
+
readonly column: number;
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
interface ModuleManifestEffect {
|
|
550
|
+
readonly actionTag: string;
|
|
551
|
+
readonly sourceKey: string;
|
|
552
|
+
readonly kind: 'declared' | 'registered';
|
|
553
|
+
readonly source?: {
|
|
554
|
+
readonly file: string;
|
|
555
|
+
readonly line: number;
|
|
556
|
+
readonly column: number;
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
interface ModuleManifest {
|
|
560
|
+
readonly manifestVersion: string;
|
|
561
|
+
readonly moduleId: string;
|
|
562
|
+
readonly actionKeys: ReadonlyArray<string>;
|
|
563
|
+
readonly actions: ReadonlyArray<ModuleManifestAction>;
|
|
564
|
+
readonly effects?: ReadonlyArray<ModuleManifestEffect>;
|
|
565
|
+
readonly schemaKeys?: ReadonlyArray<string>;
|
|
566
|
+
readonly logicUnits?: ReadonlyArray<ModuleManifestLogicUnit>;
|
|
567
|
+
readonly source?: {
|
|
568
|
+
readonly file: string;
|
|
569
|
+
readonly line: number;
|
|
570
|
+
readonly column: number;
|
|
571
|
+
};
|
|
572
|
+
readonly meta?: Record<string, JsonValue>;
|
|
573
|
+
readonly staticIr?: ReturnType<typeof exportStaticIr>;
|
|
574
|
+
readonly digest: string;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
type ArtifactKey = string;
|
|
578
|
+
type EnvelopeBase = {
|
|
579
|
+
readonly artifactKey: ArtifactKey;
|
|
580
|
+
readonly truncated?: boolean;
|
|
581
|
+
readonly budgetBytes?: number;
|
|
582
|
+
readonly actualBytes?: number;
|
|
583
|
+
readonly digest?: string;
|
|
584
|
+
readonly notes?: JsonValue;
|
|
585
|
+
};
|
|
586
|
+
type ArtifactEnvelope = (EnvelopeBase & {
|
|
587
|
+
readonly ok: true;
|
|
588
|
+
readonly value: JsonValue;
|
|
589
|
+
readonly error?: never;
|
|
590
|
+
}) | (EnvelopeBase & {
|
|
591
|
+
readonly ok: false;
|
|
592
|
+
readonly error: SerializableErrorSummary$1;
|
|
593
|
+
readonly value?: never;
|
|
594
|
+
});
|
|
595
|
+
type TrialRunArtifacts = Readonly<Record<ArtifactKey, ArtifactEnvelope>>;
|
|
596
|
+
|
|
597
|
+
type RootLike<Sh extends AnyModuleShape> = ModuleImpl<any, Sh, any> | {
|
|
598
|
+
readonly impl: ModuleImpl<any, Sh, any>;
|
|
599
|
+
};
|
|
600
|
+
interface TrialRunReportBudgets {
|
|
601
|
+
readonly maxBytes?: number;
|
|
602
|
+
}
|
|
603
|
+
interface TrialRunReport {
|
|
604
|
+
readonly runId: string;
|
|
605
|
+
readonly ok: boolean;
|
|
606
|
+
readonly manifest?: ModuleManifest;
|
|
607
|
+
readonly staticIr?: ReturnType<typeof exportStaticIr>;
|
|
608
|
+
readonly artifacts?: TrialRunArtifacts;
|
|
609
|
+
readonly environment?: EnvironmentIr;
|
|
610
|
+
readonly evidence?: EvidencePackage$1;
|
|
611
|
+
readonly summary?: unknown;
|
|
612
|
+
readonly error?: SerializableErrorSummary$1;
|
|
613
|
+
}
|
|
614
|
+
interface EnvironmentIr {
|
|
615
|
+
readonly tagIds: ReadonlyArray<string>;
|
|
616
|
+
readonly configKeys: ReadonlyArray<string>;
|
|
617
|
+
readonly missingServices: ReadonlyArray<string>;
|
|
618
|
+
readonly missingConfigKeys: ReadonlyArray<string>;
|
|
619
|
+
readonly kernelImplementationRef?: KernelImplementationRef;
|
|
620
|
+
readonly runtimeServicesEvidence?: RuntimeServicesEvidence;
|
|
621
|
+
readonly notes?: unknown;
|
|
622
|
+
}
|
|
623
|
+
interface TrialRunModuleOptions {
|
|
624
|
+
readonly runId?: RunId;
|
|
625
|
+
readonly source?: EvidencePackageSource$1;
|
|
626
|
+
readonly startedAt?: number;
|
|
627
|
+
readonly diagnosticsLevel?: DiagnosticsLevel;
|
|
628
|
+
readonly maxEvents?: number;
|
|
629
|
+
readonly layer?: Layer.Layer<any, any, any>;
|
|
630
|
+
readonly buildEnv?: {
|
|
631
|
+
readonly config?: Record<string, BuildEnvConfigValue | undefined>;
|
|
632
|
+
readonly hostKind?: BuildEnvOptions['runtimeHostKind'];
|
|
633
|
+
readonly configProvider?: BuildEnvOptions['configProvider'];
|
|
634
|
+
};
|
|
635
|
+
readonly trialRunTimeoutMs?: number;
|
|
636
|
+
readonly closeScopeTimeout?: number;
|
|
637
|
+
readonly budgets?: TrialRunReportBudgets;
|
|
638
|
+
}
|
|
639
|
+
declare const trialRunModule: <Sh extends AnyModuleShape>(root: RootLike<Sh>, options?: TrialRunModuleOptions) => Effect.Effect<TrialRunReport, never, never>;
|
|
640
|
+
|
|
641
|
+
interface TrialRunOptions {
|
|
642
|
+
readonly runId?: RunId;
|
|
643
|
+
readonly source?: EvidencePackageSource$1;
|
|
644
|
+
readonly startedAt?: number;
|
|
645
|
+
readonly diagnosticsLevel?: DiagnosticsLevel;
|
|
646
|
+
readonly maxEvents?: number;
|
|
647
|
+
readonly layer?: Layer.Layer<any, any, any>;
|
|
648
|
+
readonly runtimeServicesInstanceOverrides?: RuntimeServicesOverrides;
|
|
649
|
+
}
|
|
650
|
+
interface TrialRunResult<A, E> {
|
|
651
|
+
readonly session: RunSession;
|
|
652
|
+
readonly exit: Exit.Exit<A, E>;
|
|
653
|
+
readonly evidence: EvidencePackage$1;
|
|
654
|
+
}
|
|
655
|
+
declare const trialRun: <A, E, R>(program: Effect.Effect<A, E, R>, options?: TrialRunOptions) => Effect.Effect<TrialRunResult<A, E>, never, R>;
|
|
656
|
+
|
|
657
|
+
interface TrialRunArtifactInspectionContext {
|
|
658
|
+
readonly moduleId: string;
|
|
659
|
+
readonly manifest?: ModuleManifest;
|
|
660
|
+
readonly staticIr?: ReturnType<typeof exportStaticIr>;
|
|
661
|
+
readonly environment?: EnvironmentIr;
|
|
662
|
+
}
|
|
663
|
+
interface TrialRunArtifactExporter {
|
|
664
|
+
readonly exporterId: string;
|
|
665
|
+
readonly artifactKey: ArtifactKey;
|
|
666
|
+
readonly export: (ctx: TrialRunArtifactInspectionContext) => JsonValue | undefined;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
declare const registerTrialRunArtifactExporter: (tag: unknown, exporter: TrialRunArtifactExporter) => void;
|
|
670
|
+
|
|
671
|
+
declare const protocolVersion = "v1";
|
|
672
|
+
interface ObservationEnvelope extends ObservationEnvelope$1 {
|
|
673
|
+
}
|
|
674
|
+
interface EvidencePackageSource extends EvidencePackageSource$1 {
|
|
675
|
+
}
|
|
676
|
+
interface EvidencePackage extends EvidencePackage$1 {
|
|
677
|
+
}
|
|
678
|
+
declare const exportEvidencePackage: (options: {
|
|
679
|
+
readonly runId: string;
|
|
680
|
+
readonly source: EvidencePackageSource$1;
|
|
681
|
+
readonly events: ReadonlyArray<ObservationEnvelope$1>;
|
|
682
|
+
readonly createdAt?: number;
|
|
683
|
+
readonly protocolVersion?: string;
|
|
684
|
+
readonly summary?: JsonValue;
|
|
685
|
+
}) => EvidencePackage$1;
|
|
686
|
+
declare const importEvidencePackage: (input: unknown) => EvidencePackage$1;
|
|
687
|
+
|
|
688
|
+
type Observability_ArtifactEnvelope = ArtifactEnvelope;
|
|
689
|
+
type Observability_ArtifactKey = ArtifactKey;
|
|
690
|
+
type Observability_EnvironmentIr = EnvironmentIr;
|
|
691
|
+
type Observability_EvidencePackage = EvidencePackage;
|
|
692
|
+
type Observability_EvidencePackageSource = EvidencePackageSource;
|
|
693
|
+
type Observability_JsonValue = JsonValue;
|
|
694
|
+
type Observability_ObservationEnvelope = ObservationEnvelope;
|
|
695
|
+
type Observability_TrialRunArtifactExporter = TrialRunArtifactExporter;
|
|
696
|
+
type Observability_TrialRunArtifactInspectionContext = TrialRunArtifactInspectionContext;
|
|
697
|
+
type Observability_TrialRunArtifacts = TrialRunArtifacts;
|
|
698
|
+
type Observability_TrialRunModuleOptions = TrialRunModuleOptions;
|
|
699
|
+
type Observability_TrialRunOptions = TrialRunOptions;
|
|
700
|
+
type Observability_TrialRunReport = TrialRunReport;
|
|
701
|
+
type Observability_TrialRunReportBudgets = TrialRunReportBudgets;
|
|
702
|
+
type Observability_TrialRunResult<A, E> = TrialRunResult<A, E>;
|
|
703
|
+
declare const Observability_exportEvidencePackage: typeof exportEvidencePackage;
|
|
704
|
+
declare const Observability_importEvidencePackage: typeof importEvidencePackage;
|
|
705
|
+
declare const Observability_protocolVersion: typeof protocolVersion;
|
|
706
|
+
declare const Observability_registerTrialRunArtifactExporter: typeof registerTrialRunArtifactExporter;
|
|
707
|
+
declare const Observability_trialRun: typeof trialRun;
|
|
708
|
+
declare const Observability_trialRunModule: typeof trialRunModule;
|
|
709
|
+
declare namespace Observability {
|
|
710
|
+
export { type Observability_ArtifactEnvelope as ArtifactEnvelope, type Observability_ArtifactKey as ArtifactKey, type Observability_EnvironmentIr as EnvironmentIr, type Observability_EvidencePackage as EvidencePackage, type Observability_EvidencePackageSource as EvidencePackageSource, type Observability_JsonValue as JsonValue, type Observability_ObservationEnvelope as ObservationEnvelope, type Observability_TrialRunArtifactExporter as TrialRunArtifactExporter, type Observability_TrialRunArtifactInspectionContext as TrialRunArtifactInspectionContext, type Observability_TrialRunArtifacts as TrialRunArtifacts, type Observability_TrialRunModuleOptions as TrialRunModuleOptions, type Observability_TrialRunOptions as TrialRunOptions, type Observability_TrialRunReport as TrialRunReport, type Observability_TrialRunReportBudgets as TrialRunReportBudgets, type Observability_TrialRunResult as TrialRunResult, Observability_exportEvidencePackage as exportEvidencePackage, Observability_importEvidencePackage as importEvidencePackage, Observability_protocolVersion as protocolVersion, Observability_registerTrialRunArtifactExporter as registerTrialRunArtifactExporter, Observability_trialRun as trialRun, Observability_trialRunModule as trialRunModule };
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export { type ArtifactEnvelope as A, BuildEnv as B, ConstructionGuard as C, type DiagnosticsLevel as D, type ExtractManifestOptions as E, trialRun as F, type TrialRunReportBudgets as G, type TrialRunReport as H, type EnvironmentIr as I, type JsonValue as J, type KernelImplementationRef as K, type TrialRunModuleOptions as L, type ModuleManifest as M, trialRunModule as N, Observability as O, ReplayLog$1 as R, type Sink as S, type TriggerRef as T, RuntimeHost$1 as a, type RuntimeServicesOverrides as b, type KernelId as c, type RuntimeServiceBinding as d, type RuntimeServiceOverride as e, type RuntimeServicesEvidence as f, type RuntimeServiceImpl as g, type RuntimeServicesRegistry as h, type RuntimeDebugEventRef as i, type Event as j, type TraitConvergeDiagnosticsSamplingConfig as k, type JsonValueProjectionStats as l, type DowngradeReason as m, type EvidencePackageSource as n, type EvidencePackage as o, protocolVersion as p, type ObservationEnvelope as q, exportEvidencePackage as r, importEvidencePackage as s, type ArtifactKey as t, type TrialRunArtifacts as u, type TrialRunArtifactExporter as v, type TrialRunArtifactInspectionContext as w, registerTrialRunArtifactExporter as x, type TrialRunOptions as y, type TrialRunResult as z };
|