@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,19 @@
|
|
|
1
|
+
import 'effect';
|
|
2
|
+
import './module-B8CBqIZ_.cjs';
|
|
3
|
+
import './Module-B_0xRDMR.cjs';
|
|
4
|
+
import './Debug-Bq8Sqjcr.cjs';
|
|
5
|
+
import './EffectOp.cjs';
|
|
6
|
+
import './ReadQuery-SinbStGF.cjs';
|
|
7
|
+
import './Middleware.cjs';
|
|
8
|
+
export { B as BootError, D as DevtoolsRuntimeOptions, k as DisposeError, l as DisposeTimeoutError, M as MainError, O as OpenProgramOptions, n as ProgramIdentity, P as ProgramRunContext, p as ProgramRunnerErrorTag, c as ReadQueryFallbackReason, a as RunProgramOptions, f as RuntimeOptions, e as RuntimeReadQueryOptions, d as RuntimeReadQueryStrictGateOptions, b as RuntimeStateTransactionOptions, j as applyTransactionSnapshot, g as concurrencyPolicyOverridesLayer, m as make, o as openProgram, r as runProgram, i as setConcurrencyPolicyOverride, h as setTraitConvergeOverride, s as stateTransactionOverridesLayer } from './Runtime-B-aL-f29.cjs';
|
|
9
|
+
import 'mutative';
|
|
10
|
+
import './Platform-C49Pv956.cjs';
|
|
11
|
+
import './action-DiMDD_0v.cjs';
|
|
12
|
+
import './Logic-DRh4sDZj.cjs';
|
|
13
|
+
import 'effect/FiberRef';
|
|
14
|
+
import './Observability-COqEvp2C.cjs';
|
|
15
|
+
import './protocol-g_1897M2.cjs';
|
|
16
|
+
import './ir-BMP7yxJJ.cjs';
|
|
17
|
+
import './StateTrait-OWhbj12c.cjs';
|
|
18
|
+
import './Bound-BPIfH9SS.cjs';
|
|
19
|
+
import 'effect/Effect';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import 'effect';
|
|
2
|
+
import './module-k7m3txak.js';
|
|
3
|
+
import './Module-DnzluX2J.js';
|
|
4
|
+
import './Debug-B5q5Bkzx.js';
|
|
5
|
+
import './EffectOp.js';
|
|
6
|
+
import './ReadQuery-SinbStGF.js';
|
|
7
|
+
import './Middleware.js';
|
|
8
|
+
export { B as BootError, D as DevtoolsRuntimeOptions, k as DisposeError, l as DisposeTimeoutError, M as MainError, O as OpenProgramOptions, n as ProgramIdentity, P as ProgramRunContext, p as ProgramRunnerErrorTag, c as ReadQueryFallbackReason, a as RunProgramOptions, f as RuntimeOptions, e as RuntimeReadQueryOptions, d as RuntimeReadQueryStrictGateOptions, b as RuntimeStateTransactionOptions, j as applyTransactionSnapshot, g as concurrencyPolicyOverridesLayer, m as make, o as openProgram, r as runProgram, i as setConcurrencyPolicyOverride, h as setTraitConvergeOverride, s as stateTransactionOverridesLayer } from './Runtime-CtyzZG4i.js';
|
|
9
|
+
import 'mutative';
|
|
10
|
+
import './Platform-C49Pv956.js';
|
|
11
|
+
import './action-DiMDD_0v.js';
|
|
12
|
+
import './Logic-BRjEMr-W.js';
|
|
13
|
+
import 'effect/FiberRef';
|
|
14
|
+
import './Observability-cY4kLn0S.js';
|
|
15
|
+
import './protocol-g_1897M2.js';
|
|
16
|
+
import './ir-DUOz6H-5.js';
|
|
17
|
+
import './StateTrait-BGsZghTz.js';
|
|
18
|
+
import './Bound-BN1DQ_lM.js';
|
|
19
|
+
import 'effect/Effect';
|
package/dist/Runtime.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
applyTransactionSnapshot,
|
|
3
|
+
concurrencyPolicyOverridesLayer,
|
|
4
|
+
make,
|
|
5
|
+
openProgram,
|
|
6
|
+
runProgram,
|
|
7
|
+
setConcurrencyPolicyOverride,
|
|
8
|
+
setTraitConvergeOverride,
|
|
9
|
+
stateTransactionOverridesLayer
|
|
10
|
+
} from "./chunk-NBD3KUOZ.js";
|
|
11
|
+
import "./chunk-3TMODYZV.js";
|
|
12
|
+
import "./chunk-QMM6O4CD.js";
|
|
13
|
+
import "./chunk-JGIWG6SR.js";
|
|
14
|
+
import "./chunk-PYOE4VSI.js";
|
|
15
|
+
import "./chunk-BABLDP24.js";
|
|
16
|
+
import "./chunk-NZJKFF45.js";
|
|
17
|
+
import "./chunk-KP7MUZNX.js";
|
|
18
|
+
import {
|
|
19
|
+
BootError,
|
|
20
|
+
DisposeError,
|
|
21
|
+
DisposeTimeoutError,
|
|
22
|
+
MainError
|
|
23
|
+
} from "./chunk-EGK3KN7B.js";
|
|
24
|
+
import "./chunk-PAYXCY6A.js";
|
|
25
|
+
import "./chunk-ZGDVUPTM.js";
|
|
26
|
+
import "./chunk-BE3HW4FY.js";
|
|
27
|
+
import "./chunk-ZFLHVFUC.js";
|
|
28
|
+
import "./chunk-KL5ACTCT.js";
|
|
29
|
+
import "./chunk-AUIR5O6W.js";
|
|
30
|
+
import "./chunk-BZ2SHDN2.js";
|
|
31
|
+
import "./chunk-YS3AZQ2G.js";
|
|
32
|
+
import "./chunk-W3TEWHLO.js";
|
|
33
|
+
import "./chunk-66ALHVEX.js";
|
|
34
|
+
import "./chunk-ZFY7U2FR.js";
|
|
35
|
+
import "./chunk-M3BFQ7HK.js";
|
|
36
|
+
import "./chunk-IHVBV5C2.js";
|
|
37
|
+
import "./chunk-3RMKLXHX.js";
|
|
38
|
+
import "./chunk-TAAPQVZN.js";
|
|
39
|
+
import "./chunk-3QMIVH35.js";
|
|
40
|
+
import "./chunk-NQZ2OSGR.js";
|
|
41
|
+
import "./chunk-CW6T36TN.js";
|
|
42
|
+
import "./chunk-DMBALCE2.js";
|
|
43
|
+
import "./chunk-GMPEOUP2.js";
|
|
44
|
+
import "./chunk-OFADUJWJ.js";
|
|
45
|
+
import "./chunk-M7IYCTJV.js";
|
|
46
|
+
import "./chunk-JWOYLO27.js";
|
|
47
|
+
import "./chunk-PZ5AY32C.js";
|
|
48
|
+
export {
|
|
49
|
+
BootError,
|
|
50
|
+
DisposeError,
|
|
51
|
+
DisposeTimeoutError,
|
|
52
|
+
MainError,
|
|
53
|
+
applyTransactionSnapshot,
|
|
54
|
+
concurrencyPolicyOverridesLayer,
|
|
55
|
+
make,
|
|
56
|
+
openProgram,
|
|
57
|
+
runProgram,
|
|
58
|
+
setConcurrencyPolicyOverride,
|
|
59
|
+
setTraitConvergeOverride,
|
|
60
|
+
stateTransactionOverridesLayer
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=Runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Context, ManagedRuntime, Layer } from 'effect';
|
|
2
|
+
|
|
3
|
+
type ScopeId = string;
|
|
4
|
+
type AnyTag = Context.Tag<any, any>;
|
|
5
|
+
interface ScopeRegistry {
|
|
6
|
+
/**
|
|
7
|
+
* Registers a scope-bound value (multi-party registration supported; the last registration wins for get()).
|
|
8
|
+
*
|
|
9
|
+
* Returns a release function that revokes this registration.
|
|
10
|
+
*/
|
|
11
|
+
readonly register: <A>(scopeId: ScopeId, token: Context.Tag<any, A>, value: A) => {
|
|
12
|
+
readonly release: () => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Reads the current value for a token under a scope (the last registered value).
|
|
16
|
+
*/
|
|
17
|
+
readonly get: <A>(scopeId: ScopeId, token: Context.Tag<any, A>) => A | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Deletes all registrations of a token under a scope (regardless of who registered them).
|
|
20
|
+
*/
|
|
21
|
+
readonly clearToken: (scopeId: ScopeId, token: AnyTag) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Clears all tokens under a scope.
|
|
24
|
+
*/
|
|
25
|
+
readonly clearScope: (scopeId: ScopeId) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Clears the entire registry.
|
|
28
|
+
*/
|
|
29
|
+
readonly clearAll: () => void;
|
|
30
|
+
}
|
|
31
|
+
declare const ScopeRegistryTag_base: Context.TagClass<ScopeRegistryTag, "@logixjs/core/ScopeRegistry", ScopeRegistry>;
|
|
32
|
+
declare class ScopeRegistryTag extends ScopeRegistryTag_base {
|
|
33
|
+
}
|
|
34
|
+
declare const ScopedRuntimeTag_base: Context.TagClass<ScopedRuntimeTag, "@logixjs/core/ScopeRegistry/ScopedRuntime", ManagedRuntime.ManagedRuntime<any, any>>;
|
|
35
|
+
/**
|
|
36
|
+
* Stores a "ManagedRuntime handle for a scope" in ScopeRegistry.
|
|
37
|
+
*
|
|
38
|
+
* Typical use case: reusing the same runtime scope (Env/Scope/FiberRef) across React subtrees / independent roots
|
|
39
|
+
* by registering the runtime under a scopeId and retrieving it elsewhere.
|
|
40
|
+
*/
|
|
41
|
+
declare class ScopedRuntimeTag extends ScopedRuntimeTag_base {
|
|
42
|
+
}
|
|
43
|
+
declare const internal: {
|
|
44
|
+
ScopeRegistryTag: typeof ScopeRegistryTag;
|
|
45
|
+
ScopedRuntimeTag: typeof ScopedRuntimeTag;
|
|
46
|
+
};
|
|
47
|
+
declare const layer: () => Layer.Layer<ScopeRegistryTag, never, never>;
|
|
48
|
+
|
|
49
|
+
type ScopeRegistry$1_ScopeId = ScopeId;
|
|
50
|
+
type ScopeRegistry$1_ScopeRegistry = ScopeRegistry;
|
|
51
|
+
type ScopeRegistry$1_ScopeRegistryTag = ScopeRegistryTag;
|
|
52
|
+
declare const ScopeRegistry$1_ScopeRegistryTag: typeof ScopeRegistryTag;
|
|
53
|
+
type ScopeRegistry$1_ScopedRuntimeTag = ScopedRuntimeTag;
|
|
54
|
+
declare const ScopeRegistry$1_ScopedRuntimeTag: typeof ScopedRuntimeTag;
|
|
55
|
+
declare const ScopeRegistry$1_internal: typeof internal;
|
|
56
|
+
declare const ScopeRegistry$1_layer: typeof layer;
|
|
57
|
+
declare namespace ScopeRegistry$1 {
|
|
58
|
+
export { type ScopeRegistry$1_ScopeId as ScopeId, type ScopeRegistry$1_ScopeRegistry as ScopeRegistry, ScopeRegistry$1_ScopeRegistryTag as ScopeRegistryTag, ScopeRegistry$1_ScopedRuntimeTag as ScopedRuntimeTag, ScopeRegistry$1_internal as internal, ScopeRegistry$1_layer as layer };
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { ScopeRegistry$1 as S, type ScopeId as a, type ScopeRegistry as b, ScopeRegistryTag as c, ScopedRuntimeTag as d, internal as i, layer as l };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Context, ManagedRuntime, Layer } from 'effect';
|
|
2
|
+
|
|
3
|
+
type ScopeId = string;
|
|
4
|
+
type AnyTag = Context.Tag<any, any>;
|
|
5
|
+
interface ScopeRegistry {
|
|
6
|
+
/**
|
|
7
|
+
* Registers a scope-bound value (multi-party registration supported; the last registration wins for get()).
|
|
8
|
+
*
|
|
9
|
+
* Returns a release function that revokes this registration.
|
|
10
|
+
*/
|
|
11
|
+
readonly register: <A>(scopeId: ScopeId, token: Context.Tag<any, A>, value: A) => {
|
|
12
|
+
readonly release: () => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Reads the current value for a token under a scope (the last registered value).
|
|
16
|
+
*/
|
|
17
|
+
readonly get: <A>(scopeId: ScopeId, token: Context.Tag<any, A>) => A | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Deletes all registrations of a token under a scope (regardless of who registered them).
|
|
20
|
+
*/
|
|
21
|
+
readonly clearToken: (scopeId: ScopeId, token: AnyTag) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Clears all tokens under a scope.
|
|
24
|
+
*/
|
|
25
|
+
readonly clearScope: (scopeId: ScopeId) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Clears the entire registry.
|
|
28
|
+
*/
|
|
29
|
+
readonly clearAll: () => void;
|
|
30
|
+
}
|
|
31
|
+
declare const ScopeRegistryTag_base: Context.TagClass<ScopeRegistryTag, "@logixjs/core/ScopeRegistry", ScopeRegistry>;
|
|
32
|
+
declare class ScopeRegistryTag extends ScopeRegistryTag_base {
|
|
33
|
+
}
|
|
34
|
+
declare const ScopedRuntimeTag_base: Context.TagClass<ScopedRuntimeTag, "@logixjs/core/ScopeRegistry/ScopedRuntime", ManagedRuntime.ManagedRuntime<any, any>>;
|
|
35
|
+
/**
|
|
36
|
+
* Stores a "ManagedRuntime handle for a scope" in ScopeRegistry.
|
|
37
|
+
*
|
|
38
|
+
* Typical use case: reusing the same runtime scope (Env/Scope/FiberRef) across React subtrees / independent roots
|
|
39
|
+
* by registering the runtime under a scopeId and retrieving it elsewhere.
|
|
40
|
+
*/
|
|
41
|
+
declare class ScopedRuntimeTag extends ScopedRuntimeTag_base {
|
|
42
|
+
}
|
|
43
|
+
declare const internal: {
|
|
44
|
+
ScopeRegistryTag: typeof ScopeRegistryTag;
|
|
45
|
+
ScopedRuntimeTag: typeof ScopedRuntimeTag;
|
|
46
|
+
};
|
|
47
|
+
declare const layer: () => Layer.Layer<ScopeRegistryTag, never, never>;
|
|
48
|
+
|
|
49
|
+
type ScopeRegistry$1_ScopeId = ScopeId;
|
|
50
|
+
type ScopeRegistry$1_ScopeRegistry = ScopeRegistry;
|
|
51
|
+
type ScopeRegistry$1_ScopeRegistryTag = ScopeRegistryTag;
|
|
52
|
+
declare const ScopeRegistry$1_ScopeRegistryTag: typeof ScopeRegistryTag;
|
|
53
|
+
type ScopeRegistry$1_ScopedRuntimeTag = ScopedRuntimeTag;
|
|
54
|
+
declare const ScopeRegistry$1_ScopedRuntimeTag: typeof ScopedRuntimeTag;
|
|
55
|
+
declare const ScopeRegistry$1_internal: typeof internal;
|
|
56
|
+
declare const ScopeRegistry$1_layer: typeof layer;
|
|
57
|
+
declare namespace ScopeRegistry$1 {
|
|
58
|
+
export { type ScopeRegistry$1_ScopeId as ScopeId, type ScopeRegistry$1_ScopeRegistry as ScopeRegistry, ScopeRegistry$1_ScopeRegistryTag as ScopeRegistryTag, ScopeRegistry$1_ScopedRuntimeTag as ScopedRuntimeTag, ScopeRegistry$1_internal as internal, ScopeRegistry$1_layer as layer };
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { ScopeRegistry$1 as S, type ScopeId as a, type ScopeRegistry as b, ScopeRegistryTag as c, ScopedRuntimeTag as d, internal as i, layer as l };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/ScopeRegistry.ts
|
|
21
|
+
var ScopeRegistry_exports = {};
|
|
22
|
+
__export(ScopeRegistry_exports, {
|
|
23
|
+
ScopeRegistryTag: () => ScopeRegistryTag,
|
|
24
|
+
ScopedRuntimeTag: () => ScopedRuntimeTag,
|
|
25
|
+
internal: () => internal,
|
|
26
|
+
layer: () => layer
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(ScopeRegistry_exports);
|
|
29
|
+
var import_effect2 = require("effect");
|
|
30
|
+
|
|
31
|
+
// src/internal/runtime/core/env.ts
|
|
32
|
+
var import_effect = require("effect");
|
|
33
|
+
var getNodeEnv = () => {
|
|
34
|
+
try {
|
|
35
|
+
const env = globalThis?.process?.env;
|
|
36
|
+
return typeof env?.NODE_ENV === "string" ? env.NODE_ENV : void 0;
|
|
37
|
+
} catch {
|
|
38
|
+
return void 0;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var isDevEnv = () => getNodeEnv() !== "production";
|
|
42
|
+
var StateTransactionConfigTagImpl = class extends import_effect.Context.Tag("@logixjs/core/StateTransactionRuntimeConfig")() {
|
|
43
|
+
};
|
|
44
|
+
var ReadQueryStrictGateConfigTagImpl = class extends import_effect.Context.Tag("@logixjs/core/ReadQueryStrictGateRuntimeConfig")() {
|
|
45
|
+
};
|
|
46
|
+
var ReplayModeConfigTagImpl = class extends import_effect.Context.Tag("@logixjs/core/ReplayModeConfig")() {
|
|
47
|
+
};
|
|
48
|
+
var StateTransactionOverridesTagImpl = class extends import_effect.Context.Tag("@logixjs/core/StateTransactionOverrides")() {
|
|
49
|
+
};
|
|
50
|
+
var ConcurrencyPolicyTagImpl = class extends import_effect.Context.Tag("@logixjs/core/ConcurrencyPolicy")() {
|
|
51
|
+
};
|
|
52
|
+
var ConcurrencyPolicyOverridesTagImpl = class extends import_effect.Context.Tag("@logixjs/core/ConcurrencyPolicyOverrides")() {
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/Env.ts
|
|
56
|
+
var isDevEnv2 = () => isDevEnv();
|
|
57
|
+
|
|
58
|
+
// src/ScopeRegistry.ts
|
|
59
|
+
var ScopeRegistryTag = class extends import_effect2.Context.Tag("@logixjs/core/ScopeRegistry")() {
|
|
60
|
+
};
|
|
61
|
+
var ScopedRuntimeTag = class extends import_effect2.Context.Tag("@logixjs/core/ScopeRegistry/ScopedRuntime")() {
|
|
62
|
+
};
|
|
63
|
+
var internal = {
|
|
64
|
+
ScopeRegistryTag,
|
|
65
|
+
ScopedRuntimeTag
|
|
66
|
+
};
|
|
67
|
+
var makeRegistry = () => {
|
|
68
|
+
let nextLeaseId = 0;
|
|
69
|
+
const scopes = /* @__PURE__ */ new Map();
|
|
70
|
+
const getStack = (scopeId, token) => {
|
|
71
|
+
const byToken = scopes.get(scopeId);
|
|
72
|
+
if (byToken) {
|
|
73
|
+
const stack = byToken.get(token);
|
|
74
|
+
if (stack) return stack;
|
|
75
|
+
const created2 = [];
|
|
76
|
+
byToken.set(token, created2);
|
|
77
|
+
return created2;
|
|
78
|
+
}
|
|
79
|
+
const created = [];
|
|
80
|
+
const createdByToken = /* @__PURE__ */ new Map();
|
|
81
|
+
createdByToken.set(token, created);
|
|
82
|
+
scopes.set(scopeId, createdByToken);
|
|
83
|
+
return created;
|
|
84
|
+
};
|
|
85
|
+
const tryDeleteEmpty = (scopeId, token) => {
|
|
86
|
+
const byToken = scopes.get(scopeId);
|
|
87
|
+
if (!byToken) return;
|
|
88
|
+
const stack = byToken.get(token);
|
|
89
|
+
if (stack && stack.length === 0) {
|
|
90
|
+
byToken.delete(token);
|
|
91
|
+
}
|
|
92
|
+
if (byToken.size === 0) {
|
|
93
|
+
scopes.delete(scopeId);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const register = (scopeId, token, value) => {
|
|
97
|
+
nextLeaseId += 1;
|
|
98
|
+
const leaseId = nextLeaseId;
|
|
99
|
+
const stack = getStack(scopeId, token);
|
|
100
|
+
if (isDevEnv2() && stack.length > 0) {
|
|
101
|
+
console.debug(
|
|
102
|
+
`[ScopeRegistry] Multiple registrations detected for scopeId="${scopeId}". This is allowed (LIFO), but usually indicates scopeId collisions or missing cleanup.`
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
stack.push({ leaseId, value });
|
|
106
|
+
const release = () => {
|
|
107
|
+
const stack2 = scopes.get(scopeId)?.get(token);
|
|
108
|
+
if (!stack2 || stack2.length === 0) return;
|
|
109
|
+
const last = stack2[stack2.length - 1];
|
|
110
|
+
if (last && last.leaseId === leaseId) {
|
|
111
|
+
stack2.pop();
|
|
112
|
+
tryDeleteEmpty(scopeId, token);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const idx = stack2.findIndex((e) => e.leaseId === leaseId);
|
|
116
|
+
if (idx >= 0) {
|
|
117
|
+
stack2.splice(idx, 1);
|
|
118
|
+
tryDeleteEmpty(scopeId, token);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
return { release };
|
|
122
|
+
};
|
|
123
|
+
const get = (scopeId, token) => {
|
|
124
|
+
const stack = scopes.get(scopeId)?.get(token);
|
|
125
|
+
if (!stack || stack.length === 0) return void 0;
|
|
126
|
+
return stack[stack.length - 1].value;
|
|
127
|
+
};
|
|
128
|
+
const clearToken = (scopeId, token) => {
|
|
129
|
+
const byToken = scopes.get(scopeId);
|
|
130
|
+
if (!byToken) return;
|
|
131
|
+
byToken.delete(token);
|
|
132
|
+
if (byToken.size === 0) {
|
|
133
|
+
scopes.delete(scopeId);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const clearScope = (scopeId) => {
|
|
137
|
+
scopes.delete(scopeId);
|
|
138
|
+
};
|
|
139
|
+
const clearAll = () => {
|
|
140
|
+
scopes.clear();
|
|
141
|
+
};
|
|
142
|
+
return { register, get, clearToken, clearScope, clearAll };
|
|
143
|
+
};
|
|
144
|
+
var layer = () => import_effect2.Layer.succeed(ScopeRegistryTag, makeRegistry());
|
|
145
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
146
|
+
0 && (module.exports = {
|
|
147
|
+
ScopeRegistryTag,
|
|
148
|
+
ScopedRuntimeTag,
|
|
149
|
+
internal,
|
|
150
|
+
layer
|
|
151
|
+
});
|
|
152
|
+
//# sourceMappingURL=ScopeRegistry.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ScopeRegistry.ts","../src/internal/runtime/core/env.ts","../src/Env.ts"],"sourcesContent":["import { Context, Layer, ManagedRuntime } from 'effect'\nimport { isDevEnv } from './Env.js'\n\nexport type ScopeId = string\n\ntype AnyTag = Context.Tag<any, any>\n\ntype LeaseId = number\n\ntype Entry = {\n readonly leaseId: LeaseId\n readonly value: unknown\n}\n\nexport interface ScopeRegistry {\n /**\n * Registers a scope-bound value (multi-party registration supported; the last registration wins for get()).\n *\n * Returns a release function that revokes this registration.\n */\n readonly register: <A>(scopeId: ScopeId, token: Context.Tag<any, A>, value: A) => { readonly release: () => void }\n\n /**\n * Reads the current value for a token under a scope (the last registered value).\n */\n readonly get: <A>(scopeId: ScopeId, token: Context.Tag<any, A>) => A | undefined\n\n /**\n * Deletes all registrations of a token under a scope (regardless of who registered them).\n */\n readonly clearToken: (scopeId: ScopeId, token: AnyTag) => void\n\n /**\n * Clears all tokens under a scope.\n */\n readonly clearScope: (scopeId: ScopeId) => void\n\n /**\n * Clears the entire registry.\n */\n readonly clearAll: () => void\n}\n\nexport class ScopeRegistryTag extends Context.Tag('@logixjs/core/ScopeRegistry')<ScopeRegistryTag, ScopeRegistry>() {}\n\n/**\n * Stores a \"ManagedRuntime handle for a scope\" in ScopeRegistry.\n *\n * Typical use case: reusing the same runtime scope (Env/Scope/FiberRef) across React subtrees / independent roots\n * by registering the runtime under a scopeId and retrieving it elsewhere.\n */\nexport class ScopedRuntimeTag extends Context.Tag('@logixjs/core/ScopeRegistry/ScopedRuntime')<\n ScopedRuntimeTag,\n ManagedRuntime.ManagedRuntime<any, any>\n>() {}\n\nexport const internal = {\n ScopeRegistryTag,\n ScopedRuntimeTag,\n}\n\nconst makeRegistry = (): ScopeRegistry => {\n let nextLeaseId: LeaseId = 0\n\n // scopeId -> (token -> stack(entries))\n const scopes = new Map<ScopeId, Map<AnyTag, Array<Entry>>>()\n\n const getStack = (scopeId: ScopeId, token: AnyTag): Array<Entry> => {\n const byToken = scopes.get(scopeId)\n if (byToken) {\n const stack = byToken.get(token)\n if (stack) return stack\n const created: Array<Entry> = []\n byToken.set(token, created)\n return created\n }\n const created: Array<Entry> = []\n const createdByToken = new Map<AnyTag, Array<Entry>>()\n createdByToken.set(token, created)\n scopes.set(scopeId, createdByToken)\n return created\n }\n\n const tryDeleteEmpty = (scopeId: ScopeId, token: AnyTag): void => {\n const byToken = scopes.get(scopeId)\n if (!byToken) return\n const stack = byToken.get(token)\n if (stack && stack.length === 0) {\n byToken.delete(token)\n }\n if (byToken.size === 0) {\n scopes.delete(scopeId)\n }\n }\n\n const register: ScopeRegistry['register'] = (scopeId, token, value) => {\n nextLeaseId += 1\n const leaseId = nextLeaseId\n const stack = getStack(scopeId, token as AnyTag)\n\n // dev: multiple registrations for the same scopeId+token often indicate scopeId collisions or lifecycle leaks.\n // React / concurrent rendering / Provider rebuilds may cause short re-entrancy, so this is a soft warning.\n if (isDevEnv() && stack.length > 0) {\n // eslint-disable-next-line no-console\n console.debug(\n `[ScopeRegistry] Multiple registrations detected for scopeId=\"${scopeId}\". ` +\n `This is allowed (LIFO), but usually indicates scopeId collisions or missing cleanup.`,\n )\n }\n\n stack.push({ leaseId, value })\n\n const release = () => {\n const stack2 = scopes.get(scopeId)?.get(token as AnyTag)\n if (!stack2 || stack2.length === 0) return\n\n // Common case: LIFO release\n const last = stack2[stack2.length - 1]\n if (last && last.leaseId === leaseId) {\n stack2.pop()\n tryDeleteEmpty(scopeId, token as AnyTag)\n return\n }\n\n // Fallback: releasing from the middle (linear scan)\n const idx = stack2.findIndex((e) => e.leaseId === leaseId)\n if (idx >= 0) {\n stack2.splice(idx, 1)\n tryDeleteEmpty(scopeId, token as AnyTag)\n }\n }\n\n return { release }\n }\n\n const get: ScopeRegistry['get'] = (scopeId, token) => {\n const stack = scopes.get(scopeId)?.get(token as AnyTag)\n if (!stack || stack.length === 0) return undefined\n return stack[stack.length - 1]!.value as any\n }\n\n const clearToken: ScopeRegistry['clearToken'] = (scopeId, token) => {\n const byToken = scopes.get(scopeId)\n if (!byToken) return\n byToken.delete(token)\n if (byToken.size === 0) {\n scopes.delete(scopeId)\n }\n }\n\n const clearScope: ScopeRegistry['clearScope'] = (scopeId) => {\n scopes.delete(scopeId)\n }\n\n const clearAll: ScopeRegistry['clearAll'] = () => {\n scopes.clear()\n }\n\n return { register, get, clearToken, clearScope, clearAll }\n}\n\nexport const layer = (): Layer.Layer<ScopeRegistryTag, never, never> => Layer.succeed(ScopeRegistryTag, makeRegistry())\n","import { Context, Layer } from 'effect'\nimport type { TraitConvergeRequestedMode } from '../../state-trait/model.js'\nimport type { ReadQueryStrictGateConfig } from './ReadQuery.js'\n\n// Unified runtime env detection, avoiding bundlers inlining NODE_ENV at build time.\nexport const getNodeEnv = (): string | undefined => {\n try {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const env = (globalThis as any)?.process?.env\n return typeof env?.NODE_ENV === 'string' ? env.NODE_ENV : undefined\n } catch {\n return undefined\n }\n}\n\nexport const isDevEnv = (): boolean => getNodeEnv() !== 'production'\n\nexport type StateTransactionInstrumentation = 'full' | 'light'\n\n/**\n * getDefaultStateTxnInstrumentation:\n * - Currently chooses default instrumentation by NODE_ENV:\n * - dev / test: full (keep patches and snapshots for debugging).\n * - production: light (keep minimal semantics to reduce overhead).\n * - May evolve with finer-grained overrides in Runtime.make / Module.make.\n */\nexport const getDefaultStateTxnInstrumentation = (): StateTransactionInstrumentation => (isDevEnv() ? 'full' : 'light')\n\n/**\n * Runtime-level StateTransaction config Service:\n * - Provided at the app layer by Logix.Runtime.make / AppRuntime.makeApp.\n * - ModuleRuntime.make can read runtime-level defaults from Env.\n *\n * Notes:\n * - instrumentation is only a runtime-level default.\n * - Explicit instrumentation in ModuleImpl / ModuleRuntimeOptions has higher priority.\n */\nexport interface StateTransactionRuntimeConfig {\n readonly instrumentation?: StateTransactionInstrumentation\n /**\n * StateTrait derived converge budget (ms):\n * - Exceeding the budget triggers a soft degrade (freeze derived fields, preserve base writes and 0/1 commit semantics).\n * - Default is 200ms (aligned with the 007 spec threshold).\n */\n readonly traitConvergeBudgetMs?: number\n /**\n * Auto-mode decision budget (ms):\n * - Only used during the decision phase when requestedMode=\"auto\".\n * - Exceeding the budget must immediately fall back to full (and record evidence).\n */\n readonly traitConvergeDecisionBudgetMs?: number\n /**\n * StateTrait converge scheduling strategy:\n * - full: full topo execution (current default; safest).\n * - dirty: minimal triggering based on dirtyPaths + deps in the txn window (requires accurate deps).\n */\n readonly traitConvergeMode?: TraitConvergeRequestedMode\n /**\n * 043: Trait converge time-slicing (explicit opt-in). Disabled by default.\n */\n readonly traitConvergeTimeSlicing?: TraitConvergeTimeSlicingPatch\n /**\n * 060: Txn Lanes (priority scheduling for transaction follow-up work). Enabled by default since 062.\n */\n readonly txnLanes?: TxnLanesPatch\n /**\n * Runtime-level per-module overrides (hotfix path):\n * - Only affects converge behavior for the specified moduleId.\n * - Lower priority than Provider overrides.\n */\n readonly traitConvergeOverridesByModuleId?: Readonly<Record<string, StateTransactionTraitConvergeOverrides>>\n /**\n * 060: Txn Lanes runtime_module overrides (hotfix / gradual tuning).\n * - Only affects the specified moduleId.\n * - Lower priority than Provider overrides.\n */\n readonly txnLanesOverridesByModuleId?: Readonly<Record<string, TxnLanesPatch>>\n}\n\nclass StateTransactionConfigTagImpl extends Context.Tag('@logixjs/core/StateTransactionRuntimeConfig')<\n StateTransactionConfigTagImpl,\n StateTransactionRuntimeConfig\n>() {}\n\nexport const StateTransactionConfigTag = StateTransactionConfigTagImpl\n\nexport type ReadQueryStrictGateRuntimeConfig = ReadQueryStrictGateConfig\n\nclass ReadQueryStrictGateConfigTagImpl extends Context.Tag('@logixjs/core/ReadQueryStrictGateRuntimeConfig')<\n ReadQueryStrictGateConfigTagImpl,\n ReadQueryStrictGateRuntimeConfig\n>() {}\n\nexport const ReadQueryStrictGateConfigTag = ReadQueryStrictGateConfigTagImpl\n\nexport type ReplayMode = 'live' | 'replay'\n\nexport interface ReplayModeConfig {\n readonly mode: ReplayMode\n}\n\nclass ReplayModeConfigTagImpl extends Context.Tag('@logixjs/core/ReplayModeConfig')<\n ReplayModeConfigTagImpl,\n ReplayModeConfig\n>() {}\n\nexport const ReplayModeConfigTag = ReplayModeConfigTagImpl\n\nexport const replayModeLayer = (mode: ReplayMode): Layer.Layer<ReplayModeConfigTagImpl, never, never> =>\n Layer.succeed(ReplayModeConfigTag, { mode })\n\nexport interface StateTransactionTraitConvergeOverrides {\n readonly traitConvergeMode?: TraitConvergeRequestedMode\n readonly traitConvergeBudgetMs?: number\n readonly traitConvergeDecisionBudgetMs?: number\n readonly traitConvergeTimeSlicing?: TraitConvergeTimeSlicingPatch\n}\n\nexport interface TxnLanesPatch {\n /**\n * enabled: whether Txn Lanes is enabled (default on since 062).\n * - undefined: default enabled (when not explicitly configured)\n * - false: disabled (returns to baseline behavior)\n * - true: enabled (only affects scheduling of follow-up work outside the transaction; transactions remain synchronous)\n */\n readonly enabled?: boolean\n /**\n * overrideMode: runtime temporary override (for debugging/rollback/comparison).\n * - forced_off: forcibly disables Txn Lanes (returns to baseline behavior).\n * - forced_sync: forces fully synchronous execution (ignores non-urgent deferral and time-slicing; used for comparisons).\n *\n * Notes:\n * - Override precedence follows StateTransactionOverrides: provider > runtime_module > runtime_default > builtin.\n * - Overrides must be explainable by evidence (see 060 LaneEvidence reasons).\n */\n readonly overrideMode?: 'forced_off' | 'forced_sync'\n /** non-urgent work loop slice budget (ms). */\n readonly budgetMs?: number\n /** Non-urgent backlog coalescing window (ms). */\n readonly debounceMs?: number\n /** Max lag upper bound (ms): exceeding it triggers an explainable starvation protection (forced catch-up). */\n readonly maxLagMs?: number\n /** Whether to allow coalescing/canceling intermediate non-urgent work (must preserve eventual consistency). */\n readonly allowCoalesce?: boolean\n /**\n * Yield strategy for the non-urgent work loop (progressive enhancement).\n * - baseline: uses only time budget + hard upper bound\n * - inputPending: when supported by browsers, also consults `navigator.scheduling.isInputPending`\n */\n readonly yieldStrategy?: 'baseline' | 'inputPending'\n}\n\nexport interface TraitConvergeTimeSlicingPatch {\n /**\n * enabled:\n * - false/undefined: disabled (default)\n * - true: enables time-slicing (only affects computed/link explicitly marked as deferred)\n */\n readonly enabled?: boolean\n /**\n * debounceMs: coalescing interval (ms) for the deferral window; merges high-frequency inputs into one deferred flush.\n */\n readonly debounceMs?: number\n /**\n * maxLagMs: max lag upper bound (ms); exceeding it triggers an explainable forced flush (starvation protection).\n */\n readonly maxLagMs?: number\n}\n\n/**\n * Provider-scoped StateTransactionOverrides (delta overrides):\n * - Used to inject more local overrides into a Provider subtree on top of inherited global runtime config.\n * - Override precedence: provider > runtime_module > runtime_default > builtin.\n */\nexport interface StateTransactionOverrides {\n readonly traitConvergeMode?: TraitConvergeRequestedMode\n readonly traitConvergeBudgetMs?: number\n readonly traitConvergeDecisionBudgetMs?: number\n readonly traitConvergeTimeSlicing?: TraitConvergeTimeSlicingPatch\n readonly traitConvergeOverridesByModuleId?: Readonly<Record<string, StateTransactionTraitConvergeOverrides>>\n /** 060: Txn Lanes provider-level overrides (delta overrides). */\n readonly txnLanes?: TxnLanesPatch\n /** 060: Txn Lanes provider_module overrides (by moduleId). */\n readonly txnLanesOverridesByModuleId?: Readonly<Record<string, TxnLanesPatch>>\n}\n\nclass StateTransactionOverridesTagImpl extends Context.Tag('@logixjs/core/StateTransactionOverrides')<\n StateTransactionOverridesTagImpl,\n StateTransactionOverrides\n>() {}\n\nexport const StateTransactionOverridesTag = StateTransactionOverridesTagImpl\n\nexport type ConcurrencyLimit = number | 'unbounded'\n\nexport interface ConcurrencyPolicyPatch {\n readonly concurrencyLimit?: ConcurrencyLimit\n readonly losslessBackpressureCapacity?: number\n readonly allowUnbounded?: boolean\n readonly pressureWarningThreshold?: {\n readonly backlogCount?: number\n readonly backlogDurationMs?: number\n }\n readonly warningCooldownMs?: number\n}\n\n/**\n * Runtime-level ConcurrencyPolicy:\n * - Provided at the app layer by Logix.Runtime.make / AppRuntime.makeApp.\n * - ModuleRuntime merges sources via a resolver (builtin/runtime_module/provider, etc.).\n *\n * Notes:\n * - overridesByModuleId is used for runtime_module hot-switching (hotfix / gradual tuning) and is lower priority than provider overrides.\n */\nexport interface ConcurrencyPolicy extends ConcurrencyPolicyPatch {\n readonly overridesByModuleId?: Readonly<Record<string, ConcurrencyPolicyPatch>>\n}\n\nclass ConcurrencyPolicyTagImpl extends Context.Tag('@logixjs/core/ConcurrencyPolicy')<\n ConcurrencyPolicyTagImpl,\n ConcurrencyPolicy\n>() {}\n\nexport const ConcurrencyPolicyTag = ConcurrencyPolicyTagImpl\n\n/**\n * Provider-scoped ConcurrencyPolicyOverrides (delta overrides):\n * - Used to inject more local overrides into a Provider subtree on top of inherited global runtime config.\n * - Override precedence: provider > runtime_module > runtime_default > builtin.\n */\nexport interface ConcurrencyPolicyOverrides extends ConcurrencyPolicyPatch {\n readonly overridesByModuleId?: Readonly<Record<string, ConcurrencyPolicyPatch>>\n}\n\nclass ConcurrencyPolicyOverridesTagImpl extends Context.Tag('@logixjs/core/ConcurrencyPolicyOverrides')<\n ConcurrencyPolicyOverridesTagImpl,\n ConcurrencyPolicyOverrides\n>() {}\n\nexport const ConcurrencyPolicyOverridesTag = ConcurrencyPolicyOverridesTagImpl\n","// Shared env helpers (@logixjs/core/Env):\n// - getNodeEnv: reads the caller environment from globalThis.process.env.NODE_ENV.\n// - isDevEnv: treats NODE_ENV !== \"production\" as a dev environment.\n// The implementation lives in internal/runtime/core/env.ts to avoid duplication across packages.\n\nimport * as Internal from './internal/runtime/core/env.js'\n\nexport const getNodeEnv = (): string | undefined => Internal.getNodeEnv()\n\nexport const isDevEnv = (): boolean => Internal.isDevEnv()\n"],"mappings":"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","names":["import_effect","isDevEnv","created","isDevEnv"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ScopeRegistryTag,
|
|
3
|
+
ScopedRuntimeTag,
|
|
4
|
+
internal,
|
|
5
|
+
layer
|
|
6
|
+
} from "./chunk-3TMODYZV.js";
|
|
7
|
+
import "./chunk-TAAPQVZN.js";
|
|
8
|
+
import "./chunk-3QMIVH35.js";
|
|
9
|
+
import "./chunk-PZ5AY32C.js";
|
|
10
|
+
export {
|
|
11
|
+
ScopeRegistryTag,
|
|
12
|
+
ScopedRuntimeTag,
|
|
13
|
+
internal,
|
|
14
|
+
layer
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=ScopeRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Context, Layer as Layer$1 } from 'effect';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* State namespace (module-level):
|
|
5
|
+
* - Provides State.Tag<S>: marks a state type in Env.
|
|
6
|
+
* - Provides State.Layer<S>: builds a Layer that only carries State.Tag<S>.
|
|
7
|
+
*
|
|
8
|
+
* Type-level only; no additional runtime dependency.
|
|
9
|
+
*/
|
|
10
|
+
type Tag<S> = Context.Tag<any, S>;
|
|
11
|
+
type Layer<S> = Layer$1.Layer<Tag<S>, never, never>;
|
|
12
|
+
|
|
13
|
+
type State_Layer<S> = Layer<S>;
|
|
14
|
+
type State_Tag<S> = Tag<S>;
|
|
15
|
+
declare namespace State {
|
|
16
|
+
export type { State_Layer as Layer, State_Tag as Tag };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { type Layer as L, State as S, type Tag as T };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Context, Layer as Layer$1 } from 'effect';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* State namespace (module-level):
|
|
5
|
+
* - Provides State.Tag<S>: marks a state type in Env.
|
|
6
|
+
* - Provides State.Layer<S>: builds a Layer that only carries State.Tag<S>.
|
|
7
|
+
*
|
|
8
|
+
* Type-level only; no additional runtime dependency.
|
|
9
|
+
*/
|
|
10
|
+
type Tag<S> = Context.Tag<any, S>;
|
|
11
|
+
type Layer<S> = Layer$1.Layer<Tag<S>, never, never>;
|
|
12
|
+
|
|
13
|
+
type State_Layer<S> = Layer<S>;
|
|
14
|
+
type State_Tag<S> = Tag<S>;
|
|
15
|
+
declare namespace State {
|
|
16
|
+
export type { State_Layer as Layer, State_Tag as Tag };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { type Layer as L, State as S, type Tag as T };
|
package/dist/State.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/State.ts
|
|
17
|
+
var State_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(State_exports);
|
|
19
|
+
//# sourceMappingURL=State.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/State.ts"],"sourcesContent":["import type { Context, Layer as EffectLayer } from 'effect'\n\n/**\n * State namespace (module-level):\n * - Provides State.Tag<S>: marks a state type in Env.\n * - Provides State.Layer<S>: builds a Layer that only carries State.Tag<S>.\n *\n * Type-level only; no additional runtime dependency.\n */\nexport type Tag<S> = Context.Tag<any, S>\nexport type Layer<S> = EffectLayer.Layer<Tag<S>, never, never>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/State.d.cts
ADDED
package/dist/State.d.ts
ADDED
package/dist/State.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|