@logixjs/core 0.0.1 → 0.0.2
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/LICENSE +201 -0
- package/dist/{Bound-BN1DQ_lM.d.ts → Bound-CEa1ihvH.d.ts} +2 -2
- package/dist/{Bound-BPIfH9SS.d.cts → Bound-CNLNkC7c.d.cts} +2 -2
- package/dist/Bound.cjs +620 -163
- package/dist/Bound.cjs.map +1 -1
- package/dist/Bound.d.cts +3 -3
- package/dist/Bound.d.ts +3 -3
- package/dist/Bound.js +14 -14
- package/dist/{Debug-Bq8Sqjcr.d.cts → Debug-BhMYr-1i.d.cts} +3 -3
- package/dist/{Debug-B5q5Bkzx.d.ts → Debug-ByM7m4Ft.d.ts} +3 -3
- package/dist/Debug.cjs +553 -32
- package/dist/Debug.cjs.map +1 -1
- package/dist/Debug.d.cts +10 -8
- package/dist/Debug.d.ts +10 -8
- package/dist/Debug.js +12 -10
- package/dist/EffectOp.cjs.map +1 -1
- package/dist/EffectOp.js +2 -3
- package/dist/EffectOp.js.map +1 -1
- package/dist/Env.cjs +664 -6
- package/dist/Env.cjs.map +1 -1
- package/dist/Env.js +5 -2
- package/dist/ExternalStore-BAz83PVq.d.cts +60 -0
- package/dist/ExternalStore-BYWPbYs8.d.ts +60 -0
- package/dist/ExternalStore.cjs +746 -0
- package/dist/ExternalStore.cjs.map +1 -0
- package/dist/ExternalStore.d.cts +4 -0
- package/dist/ExternalStore.d.ts +4 -0
- package/dist/ExternalStore.js +19 -0
- package/dist/ExternalStore.js.map +1 -0
- package/dist/{Flow-1fZT8MpX.d.cts → Flow-BlSoMmhV.d.cts} +2 -2
- package/dist/{Flow-BhpjE22E.d.ts → Flow-CQSGve5c.d.ts} +2 -2
- package/dist/Flow.cjs +2 -2
- package/dist/Flow.cjs.map +1 -1
- package/dist/Flow.d.cts +4 -4
- package/dist/Flow.d.ts +4 -4
- package/dist/Flow.js +7 -8
- package/dist/{Handle-D_cLW1Z3.d.ts → Handle-B7PSmsrY.d.ts} +1 -1
- package/dist/{Handle-D8D1zPb_.d.cts → Handle-ByovhL-c.d.cts} +1 -1
- package/dist/Handle.d.cts +3 -3
- package/dist/Handle.d.ts +3 -3
- package/dist/{Kernel-CnGE1Fyk.d.ts → Kernel-DGSpS4GM.d.ts} +2 -2
- package/dist/{Kernel-8kC-jOda.d.cts → Kernel-DZAk-Mrn.d.cts} +2 -2
- package/dist/Kernel.cjs +680 -22
- package/dist/Kernel.cjs.map +1 -1
- package/dist/Kernel.d.cts +10 -8
- package/dist/Kernel.d.ts +10 -8
- package/dist/Kernel.js +7 -4
- package/dist/{Link-Db7975nU.d.ts → Link-Cm4eR9n0.d.ts} +10 -3
- package/dist/{Link-fX8x1eCK.d.cts → Link-DF8i8iWR.d.cts} +10 -3
- package/dist/Link.cjs +1128 -86
- package/dist/Link.cjs.map +1 -1
- package/dist/Link.d.cts +3 -3
- package/dist/Link.d.ts +3 -3
- package/dist/Link.js +30 -25
- package/dist/{Logic-DRh4sDZj.d.cts → Logic-BcQA0AvE.d.cts} +1 -1
- package/dist/{Logic-BRjEMr-W.d.ts → Logic-OotSE1xw.d.ts} +1 -1
- package/dist/Logic.d.cts +3 -3
- package/dist/Logic.d.ts +3 -3
- package/dist/{MatchBuilder-CJk5oCkR.d.cts → MatchBuilder-BNDJ8waF.d.ts} +1 -1
- package/dist/{MatchBuilder-0QOc-nlU.d.ts → MatchBuilder-CvZ5WY1B.d.cts} +1 -1
- package/dist/MatchBuilder.d.cts +4 -4
- package/dist/MatchBuilder.d.ts +4 -4
- package/dist/Middleware-D8tUDLv_.d.cts +100 -0
- package/dist/Middleware-DS7CbTTN.d.ts +100 -0
- package/dist/Middleware.cjs +461 -13
- package/dist/Middleware.cjs.map +1 -1
- package/dist/Middleware.d.cts +2 -86
- package/dist/Middleware.d.ts +2 -86
- package/dist/Middleware.js +13 -11
- package/dist/{Module-DnzluX2J.d.ts → Module-CFj0I2yE.d.ts} +45 -18
- package/dist/{Module-B_0xRDMR.d.cts → Module-DpXPW9EQ.d.cts} +45 -18
- package/dist/Module.cjs +8583 -5741
- package/dist/Module.cjs.map +1 -1
- package/dist/Module.d.cts +5 -4
- package/dist/Module.d.ts +5 -4
- package/dist/Module.js +32 -27
- package/dist/ModuleTag-BcVF6z7B.d.ts +113 -0
- package/dist/ModuleTag-DuZXo_NS.d.cts +113 -0
- package/dist/ModuleTag.cjs +2609 -1232
- package/dist/ModuleTag.cjs.map +1 -1
- package/dist/ModuleTag.d.cts +4 -4
- package/dist/ModuleTag.d.ts +4 -4
- package/dist/ModuleTag.js +28 -25
- package/dist/{Observability-cY4kLn0S.d.ts → Observability-D-ZWeEVb.d.ts} +22 -15
- package/dist/{Observability-COqEvp2C.d.cts → Observability-V7sRMYTh.d.cts} +22 -15
- package/dist/Observability.cjs +1938 -640
- package/dist/Observability.cjs.map +1 -1
- package/dist/Observability.d.cts +4 -4
- package/dist/Observability.d.ts +4 -4
- package/dist/Observability.js +21 -19
- package/dist/{Process-mL8fHDSB.d.cts → Process-B55aJMFk.d.cts} +29 -4
- package/dist/{Process-CM9xbMdP.d.ts → Process-DvhFEwUS.d.ts} +29 -4
- package/dist/Process.cjs +1122 -85
- package/dist/Process.cjs.map +1 -1
- package/dist/Process.d.cts +4 -3
- package/dist/Process.d.ts +4 -3
- package/dist/Process.js +27 -22
- package/dist/{ReadQuery-BlMwhe-F.d.ts → ReadQuery-C4vZ8Prc.d.ts} +2 -2
- package/dist/{ReadQuery-SinbStGF.d.ts → ReadQuery-CafjlJQo.d.cts} +1 -1
- package/dist/{ReadQuery-SinbStGF.d.cts → ReadQuery-CafjlJQo.d.ts} +1 -1
- package/dist/{ReadQuery-CL5XlXts.d.cts → ReadQuery-mc0NgrFV.d.cts} +2 -2
- package/dist/ReadQuery.cjs +3 -3
- package/dist/ReadQuery.cjs.map +1 -1
- package/dist/ReadQuery.d.cts +2 -2
- package/dist/ReadQuery.d.ts +2 -2
- package/dist/ReadQuery.js +3 -3
- package/dist/{Reflection-CQnKwPXj.d.ts → Reflection-C8xZ267q.d.ts} +88 -7
- package/dist/{Reflection-Kabo1mlU.d.cts → Reflection-DP7Vsv3f.d.cts} +88 -7
- package/dist/Reflection.cjs +2934 -1553
- package/dist/Reflection.cjs.map +1 -1
- package/dist/Reflection.d.cts +14 -11
- package/dist/Reflection.d.ts +14 -11
- package/dist/Reflection.js +26 -21
- package/dist/Resource.cjs +670 -12
- package/dist/Resource.cjs.map +1 -1
- package/dist/Resource.js +6 -3
- package/dist/Root.cjs +675 -17
- package/dist/Root.cjs.map +1 -1
- package/dist/Root.js +7 -3
- package/dist/{Runtime-CtyzZG4i.d.ts → Runtime-BWc9YfUB.d.ts} +37 -7
- package/dist/{Runtime-B-aL-f29.d.cts → Runtime-PShIC4DW.d.cts} +37 -7
- package/dist/Runtime.cjs +1899 -809
- package/dist/Runtime.cjs.map +1 -1
- package/dist/Runtime.d.cts +14 -11
- package/dist/Runtime.d.ts +14 -11
- package/dist/Runtime.js +33 -28
- package/dist/ScopeRegistry.cjs +668 -10
- package/dist/ScopeRegistry.cjs.map +1 -1
- package/dist/ScopeRegistry.js +6 -3
- package/dist/{StateTrait-OWhbj12c.d.cts → StateTrait-CQsDlXJm.d.cts} +23 -6
- package/dist/{StateTrait-BGsZghTz.d.ts → StateTrait-YvJzVDKl.d.ts} +23 -6
- package/dist/StateTrait.cjs +1475 -370
- package/dist/StateTrait.cjs.map +1 -1
- package/dist/StateTrait.d.cts +7 -5
- package/dist/StateTrait.d.ts +7 -5
- package/dist/StateTrait.js +17 -14
- package/dist/{TraitLifecycle-LdIWmKlg.d.ts → TraitLifecycle-CjIBICAA.d.ts} +2 -2
- package/dist/{TraitLifecycle-CwV5WPFX.d.cts → TraitLifecycle-NmqGiXPC.d.cts} +2 -2
- package/dist/TraitLifecycle.cjs +489 -32
- package/dist/TraitLifecycle.cjs.map +1 -1
- package/dist/TraitLifecycle.d.cts +4 -4
- package/dist/TraitLifecycle.d.ts +4 -4
- package/dist/TraitLifecycle.js +7 -7
- package/dist/Workflow-BlFG_20_.d.cts +414 -0
- package/dist/Workflow-CW9S_aAP.d.ts +414 -0
- package/dist/Workflow.cjs +2977 -0
- package/dist/Workflow.cjs.map +1 -0
- package/dist/Workflow.d.cts +7 -0
- package/dist/Workflow.d.ts +7 -0
- package/dist/Workflow.js +55 -0
- package/dist/Workflow.js.map +1 -0
- package/dist/{chunk-G5ZBFPNU.js → chunk-2A4UKO2D.js} +2 -2
- package/dist/chunk-2DE6D42I.js +248 -0
- package/dist/chunk-2DE6D42I.js.map +1 -0
- package/dist/{chunk-ANLBCBDC.js → chunk-2DVLMSOE.js} +6 -6
- package/dist/{chunk-BE3HW4FY.js → chunk-34CF6OGE.js} +14 -16
- package/dist/chunk-34CF6OGE.js.map +1 -0
- package/dist/{chunk-ZFY7U2FR.js → chunk-3LPIXG56.js} +43 -3
- package/dist/chunk-3LPIXG56.js.map +1 -0
- package/dist/chunk-3VZYDNXZ.js +10 -0
- package/dist/chunk-3VZYDNXZ.js.map +1 -0
- package/dist/{chunk-3TMODYZV.js → chunk-3XO4HR6V.js} +2 -2
- package/dist/chunk-46FGVWRF.js +817 -0
- package/dist/chunk-46FGVWRF.js.map +1 -0
- package/dist/chunk-4LODUXFI.js +288 -0
- package/dist/chunk-4LODUXFI.js.map +1 -0
- package/dist/{chunk-GMPEOUP2.js → chunk-4MZ7BT3R.js} +2 -2
- package/dist/chunk-4MZ7BT3R.js.map +1 -0
- package/dist/{chunk-TKZ7MEIA.js → chunk-53GVPGSM.js} +2 -2
- package/dist/{chunk-KP7MUZNX.js → chunk-5W2V2NVJ.js} +2 -2
- package/dist/chunk-5W2V2NVJ.js.map +1 -0
- package/dist/chunk-6DACKW3D.js +613 -0
- package/dist/chunk-6DACKW3D.js.map +1 -0
- package/dist/chunk-AQ7L2QZ5.js +1395 -0
- package/dist/chunk-AQ7L2QZ5.js.map +1 -0
- package/dist/{chunk-NZJKFF45.js → chunk-C2UZZQ76.js} +2 -2
- package/dist/chunk-CCKP5Z6F.js +701 -0
- package/dist/chunk-CCKP5Z6F.js.map +1 -0
- package/dist/chunk-CUKM2XUW.js +27 -0
- package/dist/{chunk-QCHIQWAJ.js.map → chunk-CUKM2XUW.js.map} +1 -1
- package/dist/{chunk-M2RGJPXX.js → chunk-DBD6Q6JH.js} +3 -3
- package/dist/{chunk-ZGDVUPTM.js → chunk-EB4RGQO3.js} +2 -2
- package/dist/{chunk-PAYXCY6A.js → chunk-G7ESIQTI.js} +12 -14
- package/dist/chunk-G7ESIQTI.js.map +1 -0
- package/dist/chunk-GPBAZQ23.js +348 -0
- package/dist/chunk-GPBAZQ23.js.map +1 -0
- package/dist/{chunk-OFADUJWJ.js → chunk-I4LCE5OY.js} +3 -5
- package/dist/{chunk-OFADUJWJ.js.map → chunk-I4LCE5OY.js.map} +1 -1
- package/dist/{chunk-DFNM3WX2.js → chunk-IMCC6TBN.js} +158 -39
- package/dist/chunk-IMCC6TBN.js.map +1 -0
- package/dist/{chunk-76WT3HOR.js → chunk-IROZNQAF.js} +22 -21
- package/dist/chunk-IROZNQAF.js.map +1 -0
- package/dist/{chunk-TAAPQVZN.js → chunk-ISKNULNH.js} +2 -2
- package/dist/chunk-J3CWXIPV.js +242 -0
- package/dist/chunk-J3CWXIPV.js.map +1 -0
- package/dist/{chunk-PYOE4VSI.js → chunk-JBKYRTCS.js} +224 -161
- package/dist/chunk-JBKYRTCS.js.map +1 -0
- package/dist/{chunk-66ALHVEX.js → chunk-KKIAYH4X.js} +3 -3
- package/dist/{chunk-3RMKLXHX.js → chunk-KLDVG3SY.js} +2 -2
- package/dist/{chunk-BABLDP24.js → chunk-KSZQYSEH.js} +3 -3
- package/dist/chunk-KSZQYSEH.js.map +1 -0
- package/dist/{chunk-CW6T36TN.js → chunk-M3M7JFAH.js} +4 -4
- package/dist/chunk-M3M7JFAH.js.map +1 -0
- package/dist/{chunk-THATMZXD.js → chunk-MLB253V2.js} +2 -2
- package/dist/{chunk-THATMZXD.js.map → chunk-MLB253V2.js.map} +1 -1
- package/dist/{chunk-JGIWG6SR.js → chunk-MS77U77X.js} +664 -550
- package/dist/chunk-MS77U77X.js.map +1 -0
- package/dist/chunk-MW4FA3MW.js +23 -0
- package/dist/chunk-MW4FA3MW.js.map +1 -0
- package/dist/chunk-MYKNINNN.js +228 -0
- package/dist/chunk-MYKNINNN.js.map +1 -0
- package/dist/{chunk-4CQAV7YB.js → chunk-O6TTQXTY.js} +2 -2
- package/dist/{chunk-NBD3KUOZ.js → chunk-OJDJ4VDQ.js} +35 -24
- package/dist/chunk-OJDJ4VDQ.js.map +1 -0
- package/dist/{chunk-NQZ2OSGR.js → chunk-PVZEMNJY.js} +9 -9
- package/dist/chunk-PVZEMNJY.js.map +1 -0
- package/dist/chunk-RN26DV2M.js +271 -0
- package/dist/chunk-RN26DV2M.js.map +1 -0
- package/dist/{chunk-JCXGZRMU.js → chunk-RQQW3IQC.js} +3 -3
- package/dist/chunk-RQQW3IQC.js.map +1 -0
- package/dist/{chunk-24VULZ7A.js → chunk-TKOGZDD6.js} +3 -3
- package/dist/{chunk-EGK3KN7B.js → chunk-TQYLVXGY.js} +70 -39
- package/dist/chunk-TQYLVXGY.js.map +1 -0
- package/dist/{chunk-QMM6O4CD.js → chunk-UACD2CL2.js} +15 -3
- package/dist/{chunk-QMM6O4CD.js.map → chunk-UACD2CL2.js.map} +1 -1
- package/dist/{chunk-M3WTHJHJ.js → chunk-VH575UTV.js} +30 -34
- package/dist/chunk-VH575UTV.js.map +1 -0
- package/dist/{chunk-AUIR5O6W.js → chunk-WWBMC24F.js} +9 -15
- package/dist/chunk-WWBMC24F.js.map +1 -0
- package/dist/{chunk-JWOYLO27.js → chunk-WYJUJV4L.js} +80 -7
- package/dist/chunk-WYJUJV4L.js.map +1 -0
- package/dist/{chunk-EY4NZKDR.js → chunk-XFMMPYNU.js} +2 -2
- package/dist/chunk-Y4VRBIS6.js +35 -0
- package/dist/chunk-Y4VRBIS6.js.map +1 -0
- package/dist/{chunk-DMBALCE2.js → chunk-ZC7MSQ5U.js} +77 -4
- package/dist/chunk-ZC7MSQ5U.js.map +1 -0
- package/dist/{chunk-OGWBVHB3.js → chunk-ZCK6SCOE.js} +67 -8
- package/dist/chunk-ZCK6SCOE.js.map +1 -0
- package/dist/{chunk-IHVBV5C2.js → chunk-ZTFTABXV.js} +2 -1
- package/dist/chunk-ZTFTABXV.js.map +1 -0
- package/dist/index.cjs +9532 -5017
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +163 -27
- package/dist/index.d.ts +163 -27
- package/dist/index.js +119 -56
- package/dist/index.js.map +1 -1
- package/dist/{ir-BMP7yxJJ.d.cts → ir-C-Zm_GlZ.d.cts} +1 -1
- package/dist/{ir-DUOz6H-5.d.ts → ir-DGyGiwVe.d.ts} +1 -1
- package/dist/{module-k7m3txak.d.ts → module-DqQ1U-Me.d.ts} +129 -100
- package/dist/{module-B8CBqIZ_.d.cts → module-doenaCsZ.d.cts} +129 -100
- package/package.json +12 -1
- package/dist/ModuleTag-C8FHY_sY.d.ts +0 -93
- package/dist/ModuleTag-EGbgBMpZ.d.cts +0 -93
- package/dist/chunk-3QMIVH35.js +0 -43
- package/dist/chunk-3QMIVH35.js.map +0 -1
- package/dist/chunk-76WT3HOR.js.map +0 -1
- package/dist/chunk-AUIR5O6W.js.map +0 -1
- package/dist/chunk-BABLDP24.js.map +0 -1
- package/dist/chunk-BE3HW4FY.js.map +0 -1
- package/dist/chunk-CW6T36TN.js.map +0 -1
- package/dist/chunk-DFNM3WX2.js.map +0 -1
- package/dist/chunk-DMBALCE2.js.map +0 -1
- package/dist/chunk-EGK3KN7B.js.map +0 -1
- package/dist/chunk-GMPEOUP2.js.map +0 -1
- package/dist/chunk-IHVBV5C2.js.map +0 -1
- package/dist/chunk-JCXGZRMU.js.map +0 -1
- package/dist/chunk-JGIWG6SR.js.map +0 -1
- package/dist/chunk-JWOYLO27.js.map +0 -1
- package/dist/chunk-KIXAU3GM.js +0 -137
- package/dist/chunk-KIXAU3GM.js.map +0 -1
- package/dist/chunk-KP7MUZNX.js.map +0 -1
- package/dist/chunk-M3WTHJHJ.js.map +0 -1
- package/dist/chunk-M7IYCTJV.js +0 -79
- package/dist/chunk-M7IYCTJV.js.map +0 -1
- package/dist/chunk-NBD3KUOZ.js.map +0 -1
- package/dist/chunk-NQZ2OSGR.js.map +0 -1
- package/dist/chunk-OGWBVHB3.js.map +0 -1
- package/dist/chunk-PAYXCY6A.js.map +0 -1
- package/dist/chunk-PYOE4VSI.js.map +0 -1
- package/dist/chunk-QCHIQWAJ.js +0 -21
- package/dist/chunk-VZB726PE.js +0 -93
- package/dist/chunk-VZB726PE.js.map +0 -1
- package/dist/chunk-W3TEWHLO.js +0 -568
- package/dist/chunk-W3TEWHLO.js.map +0 -1
- package/dist/chunk-ZFLHVFUC.js +0 -192
- package/dist/chunk-ZFLHVFUC.js.map +0 -1
- package/dist/chunk-ZFY7U2FR.js.map +0 -1
- /package/dist/{chunk-G5ZBFPNU.js.map → chunk-2A4UKO2D.js.map} +0 -0
- /package/dist/{chunk-ANLBCBDC.js.map → chunk-2DVLMSOE.js.map} +0 -0
- /package/dist/{chunk-3TMODYZV.js.map → chunk-3XO4HR6V.js.map} +0 -0
- /package/dist/{chunk-TKZ7MEIA.js.map → chunk-53GVPGSM.js.map} +0 -0
- /package/dist/{chunk-NZJKFF45.js.map → chunk-C2UZZQ76.js.map} +0 -0
- /package/dist/{chunk-M2RGJPXX.js.map → chunk-DBD6Q6JH.js.map} +0 -0
- /package/dist/{chunk-ZGDVUPTM.js.map → chunk-EB4RGQO3.js.map} +0 -0
- /package/dist/{chunk-TAAPQVZN.js.map → chunk-ISKNULNH.js.map} +0 -0
- /package/dist/{chunk-66ALHVEX.js.map → chunk-KKIAYH4X.js.map} +0 -0
- /package/dist/{chunk-3RMKLXHX.js.map → chunk-KLDVG3SY.js.map} +0 -0
- /package/dist/{chunk-4CQAV7YB.js.map → chunk-O6TTQXTY.js.map} +0 -0
- /package/dist/{chunk-24VULZ7A.js.map → chunk-TKOGZDD6.js.map} +0 -0
- /package/dist/{chunk-EY4NZKDR.js.map → chunk-XFMMPYNU.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as effect from 'effect';
|
|
2
2
|
import { Scope, ManagedRuntime, Layer, Effect } from 'effect';
|
|
3
|
-
import {
|
|
4
|
-
import { A as AnyModule } from './Module-
|
|
5
|
-
import { z as DebugLayerOptions, b as DiagnosticsLevel, T as TraitConvergeDiagnosticsSamplingConfig } from './Debug-
|
|
3
|
+
import { j as AnyModuleShape, o as ModuleRuntime, r as StateOf, s as ActionOf, B as BoundApi, b as StateTransactionInstrumentation, Z as TraitConvergeTimeSlicingPatch, _ as TxnLanesPatch, $ as StateTransactionTraitConvergeOverrides, g as ConcurrencyPolicy, m as ModuleImpl, a0 as StateTransactionOverrides, h as ConcurrencyPolicyOverrides, i as ConcurrencyPolicyPatch } from './module-DqQ1U-Me.js';
|
|
4
|
+
import { A as AnyModule } from './Module-CFj0I2yE.js';
|
|
5
|
+
import { z as DebugLayerOptions, b as DiagnosticsLevel, T as TraitConvergeDiagnosticsSamplingConfig } from './Debug-ByM7m4Ft.js';
|
|
6
6
|
import { MiddlewareStack } from './EffectOp.js';
|
|
7
|
-
import {
|
|
8
|
-
import { DebugObserverConfig } from './Middleware.js';
|
|
7
|
+
import { R as ReadQueryFallbackReason$1 } from './ReadQuery-CafjlJQo.js';
|
|
8
|
+
import { D as DebugObserverConfig } from './Middleware-DS7CbTTN.js';
|
|
9
9
|
|
|
10
10
|
interface ProgramRunContext<Sh extends AnyModuleShape> {
|
|
11
11
|
readonly scope: Scope.CloseableScope;
|
|
@@ -81,6 +81,14 @@ interface RunProgramOptions<Args = unknown> extends OpenProgramOptions {
|
|
|
81
81
|
readonly exitCode?: boolean;
|
|
82
82
|
readonly reportError?: boolean;
|
|
83
83
|
}
|
|
84
|
+
type HostSchedulerCancel = () => void;
|
|
85
|
+
type HostScheduler = {
|
|
86
|
+
readonly nowMs: () => number;
|
|
87
|
+
readonly scheduleMicrotask: (cb: () => void) => void;
|
|
88
|
+
readonly scheduleMacrotask: (cb: () => void) => HostSchedulerCancel;
|
|
89
|
+
readonly scheduleAnimationFrame: (cb: () => void) => HostSchedulerCancel;
|
|
90
|
+
readonly scheduleTimeout: (ms: number, cb: () => void) => HostSchedulerCancel;
|
|
91
|
+
};
|
|
84
92
|
/**
|
|
85
93
|
* Runtime-level StateTransaction defaults.
|
|
86
94
|
*
|
|
@@ -132,6 +140,17 @@ interface RuntimeOptions {
|
|
|
132
140
|
* Optional runtime label (e.g. `AppDemoRuntime`) for Debug / DevTools grouping.
|
|
133
141
|
*/
|
|
134
142
|
readonly label?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Optional HostScheduler override for this Runtime.
|
|
145
|
+
*
|
|
146
|
+
* Use it when you need deterministic host scheduling (tests) or a custom host integration.
|
|
147
|
+
*
|
|
148
|
+
* NOTE:
|
|
149
|
+
* - TickScheduler captures HostScheduler at Layer build-time (073); overriding HostScheduler via `options.layer`
|
|
150
|
+
* is not sufficient unless the dependent layer is built under that override.
|
|
151
|
+
* - This option avoids the pitfall by injecting HostScheduler into the runtime tick services build pipeline.
|
|
152
|
+
*/
|
|
153
|
+
readonly hostScheduler?: HostScheduler;
|
|
135
154
|
/**
|
|
136
155
|
* Optional Debug console output configuration.
|
|
137
156
|
*
|
|
@@ -198,6 +217,16 @@ interface DevtoolsRuntimeOptions {
|
|
|
198
217
|
* - Exposes a ManagedRuntime; the full Env is provided by `root.layer + options.layer`.
|
|
199
218
|
*/
|
|
200
219
|
declare const make: (root: ModuleImpl<any, AnyModuleShape, any> | AnyModule, options?: RuntimeOptions) => ManagedRuntime.ManagedRuntime<any, never>;
|
|
220
|
+
/**
|
|
221
|
+
* Runtime.batch:
|
|
222
|
+
* - Provides a stronger "tick boundary" for RuntimeStore/TickScheduler than the default microtask boundary.
|
|
223
|
+
* - Sync-only: nested batches flatten; only the outermost batch triggers the flush boundary.
|
|
224
|
+
* - NOT a transaction: no rollback; errors may result in partial commits, but the flush boundary is still released in finally.
|
|
225
|
+
*
|
|
226
|
+
* WARNING:
|
|
227
|
+
* - Do not `await` inside the batch callback expecting mid-flush; batch only establishes a synchronous boundary.
|
|
228
|
+
*/
|
|
229
|
+
declare const batch: <A>(fn: () => A) => A;
|
|
201
230
|
/**
|
|
202
231
|
* Resourceful entry: returns a scope-bound ProgramRunContext (booted and ready).
|
|
203
232
|
*/
|
|
@@ -260,6 +289,7 @@ type Runtime_RuntimeReadQueryOptions = RuntimeReadQueryOptions;
|
|
|
260
289
|
type Runtime_RuntimeReadQueryStrictGateOptions = RuntimeReadQueryStrictGateOptions;
|
|
261
290
|
type Runtime_RuntimeStateTransactionOptions = RuntimeStateTransactionOptions;
|
|
262
291
|
declare const Runtime_applyTransactionSnapshot: typeof applyTransactionSnapshot;
|
|
292
|
+
declare const Runtime_batch: typeof batch;
|
|
263
293
|
declare const Runtime_concurrencyPolicyOverridesLayer: typeof concurrencyPolicyOverridesLayer;
|
|
264
294
|
declare const Runtime_make: typeof make;
|
|
265
295
|
declare const Runtime_openProgram: typeof openProgram;
|
|
@@ -268,7 +298,7 @@ declare const Runtime_setConcurrencyPolicyOverride: typeof setConcurrencyPolicyO
|
|
|
268
298
|
declare const Runtime_setTraitConvergeOverride: typeof setTraitConvergeOverride;
|
|
269
299
|
declare const Runtime_stateTransactionOverridesLayer: typeof stateTransactionOverridesLayer;
|
|
270
300
|
declare namespace Runtime {
|
|
271
|
-
export { Runtime_BootError as BootError, type Runtime_DevtoolsRuntimeOptions as DevtoolsRuntimeOptions, Runtime_DisposeError as DisposeError, Runtime_DisposeTimeoutError as DisposeTimeoutError, Runtime_MainError as MainError, type Runtime_OpenProgramOptions as OpenProgramOptions, type Runtime_ProgramIdentity as ProgramIdentity, type Runtime_ProgramRunContext as ProgramRunContext, type Runtime_ProgramRunnerErrorTag as ProgramRunnerErrorTag, type Runtime_ReadQueryFallbackReason as ReadQueryFallbackReason, type Runtime_RunProgramOptions as RunProgramOptions, type Runtime_RuntimeOptions as RuntimeOptions, type Runtime_RuntimeReadQueryOptions as RuntimeReadQueryOptions, type Runtime_RuntimeReadQueryStrictGateOptions as RuntimeReadQueryStrictGateOptions, type Runtime_RuntimeStateTransactionOptions as RuntimeStateTransactionOptions, Runtime_applyTransactionSnapshot as applyTransactionSnapshot, Runtime_concurrencyPolicyOverridesLayer as concurrencyPolicyOverridesLayer, Runtime_make as make, Runtime_openProgram as openProgram, Runtime_runProgram as runProgram, Runtime_setConcurrencyPolicyOverride as setConcurrencyPolicyOverride, Runtime_setTraitConvergeOverride as setTraitConvergeOverride, Runtime_stateTransactionOverridesLayer as stateTransactionOverridesLayer };
|
|
301
|
+
export { Runtime_BootError as BootError, type Runtime_DevtoolsRuntimeOptions as DevtoolsRuntimeOptions, Runtime_DisposeError as DisposeError, Runtime_DisposeTimeoutError as DisposeTimeoutError, Runtime_MainError as MainError, type Runtime_OpenProgramOptions as OpenProgramOptions, type Runtime_ProgramIdentity as ProgramIdentity, type Runtime_ProgramRunContext as ProgramRunContext, type Runtime_ProgramRunnerErrorTag as ProgramRunnerErrorTag, type Runtime_ReadQueryFallbackReason as ReadQueryFallbackReason, type Runtime_RunProgramOptions as RunProgramOptions, type Runtime_RuntimeOptions as RuntimeOptions, type Runtime_RuntimeReadQueryOptions as RuntimeReadQueryOptions, type Runtime_RuntimeReadQueryStrictGateOptions as RuntimeReadQueryStrictGateOptions, type Runtime_RuntimeStateTransactionOptions as RuntimeStateTransactionOptions, Runtime_applyTransactionSnapshot as applyTransactionSnapshot, Runtime_batch as batch, Runtime_concurrencyPolicyOverridesLayer as concurrencyPolicyOverridesLayer, Runtime_make as make, Runtime_openProgram as openProgram, Runtime_runProgram as runProgram, Runtime_setConcurrencyPolicyOverride as setConcurrencyPolicyOverride, Runtime_setTraitConvergeOverride as setTraitConvergeOverride, Runtime_stateTransactionOverridesLayer as stateTransactionOverridesLayer };
|
|
272
302
|
}
|
|
273
303
|
|
|
274
|
-
export { BootError as B, type DevtoolsRuntimeOptions as D, MainError as M, type OpenProgramOptions as O, type ProgramRunContext as P, Runtime as R, type RunProgramOptions as a, type RuntimeStateTransactionOptions as b, type ReadQueryFallbackReason as c, type RuntimeReadQueryStrictGateOptions as d, type RuntimeReadQueryOptions as e, type RuntimeOptions as f,
|
|
304
|
+
export { BootError as B, type DevtoolsRuntimeOptions as D, MainError as M, type OpenProgramOptions as O, type ProgramRunContext as P, Runtime as R, type RunProgramOptions as a, type RuntimeStateTransactionOptions as b, type ReadQueryFallbackReason as c, type RuntimeReadQueryStrictGateOptions as d, type RuntimeReadQueryOptions as e, type RuntimeOptions as f, batch as g, concurrencyPolicyOverridesLayer as h, setTraitConvergeOverride as i, setConcurrencyPolicyOverride as j, applyTransactionSnapshot as k, DisposeError as l, make as m, DisposeTimeoutError as n, openProgram as o, type ProgramIdentity as p, type ProgramRunnerErrorTag as q, runProgram as r, stateTransactionOverridesLayer as s };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as effect from 'effect';
|
|
2
2
|
import { Scope, ManagedRuntime, Layer, Effect } from 'effect';
|
|
3
|
-
import {
|
|
4
|
-
import { A as AnyModule } from './Module-
|
|
5
|
-
import { z as DebugLayerOptions, b as DiagnosticsLevel, T as TraitConvergeDiagnosticsSamplingConfig } from './Debug-
|
|
3
|
+
import { j as AnyModuleShape, o as ModuleRuntime, r as StateOf, s as ActionOf, B as BoundApi, b as StateTransactionInstrumentation, Z as TraitConvergeTimeSlicingPatch, _ as TxnLanesPatch, $ as StateTransactionTraitConvergeOverrides, g as ConcurrencyPolicy, m as ModuleImpl, a0 as StateTransactionOverrides, h as ConcurrencyPolicyOverrides, i as ConcurrencyPolicyPatch } from './module-doenaCsZ.cjs';
|
|
4
|
+
import { A as AnyModule } from './Module-DpXPW9EQ.cjs';
|
|
5
|
+
import { z as DebugLayerOptions, b as DiagnosticsLevel, T as TraitConvergeDiagnosticsSamplingConfig } from './Debug-BhMYr-1i.cjs';
|
|
6
6
|
import { MiddlewareStack } from './EffectOp.cjs';
|
|
7
|
-
import {
|
|
8
|
-
import { DebugObserverConfig } from './Middleware.cjs';
|
|
7
|
+
import { R as ReadQueryFallbackReason$1 } from './ReadQuery-CafjlJQo.cjs';
|
|
8
|
+
import { D as DebugObserverConfig } from './Middleware-D8tUDLv_.cjs';
|
|
9
9
|
|
|
10
10
|
interface ProgramRunContext<Sh extends AnyModuleShape> {
|
|
11
11
|
readonly scope: Scope.CloseableScope;
|
|
@@ -81,6 +81,14 @@ interface RunProgramOptions<Args = unknown> extends OpenProgramOptions {
|
|
|
81
81
|
readonly exitCode?: boolean;
|
|
82
82
|
readonly reportError?: boolean;
|
|
83
83
|
}
|
|
84
|
+
type HostSchedulerCancel = () => void;
|
|
85
|
+
type HostScheduler = {
|
|
86
|
+
readonly nowMs: () => number;
|
|
87
|
+
readonly scheduleMicrotask: (cb: () => void) => void;
|
|
88
|
+
readonly scheduleMacrotask: (cb: () => void) => HostSchedulerCancel;
|
|
89
|
+
readonly scheduleAnimationFrame: (cb: () => void) => HostSchedulerCancel;
|
|
90
|
+
readonly scheduleTimeout: (ms: number, cb: () => void) => HostSchedulerCancel;
|
|
91
|
+
};
|
|
84
92
|
/**
|
|
85
93
|
* Runtime-level StateTransaction defaults.
|
|
86
94
|
*
|
|
@@ -132,6 +140,17 @@ interface RuntimeOptions {
|
|
|
132
140
|
* Optional runtime label (e.g. `AppDemoRuntime`) for Debug / DevTools grouping.
|
|
133
141
|
*/
|
|
134
142
|
readonly label?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Optional HostScheduler override for this Runtime.
|
|
145
|
+
*
|
|
146
|
+
* Use it when you need deterministic host scheduling (tests) or a custom host integration.
|
|
147
|
+
*
|
|
148
|
+
* NOTE:
|
|
149
|
+
* - TickScheduler captures HostScheduler at Layer build-time (073); overriding HostScheduler via `options.layer`
|
|
150
|
+
* is not sufficient unless the dependent layer is built under that override.
|
|
151
|
+
* - This option avoids the pitfall by injecting HostScheduler into the runtime tick services build pipeline.
|
|
152
|
+
*/
|
|
153
|
+
readonly hostScheduler?: HostScheduler;
|
|
135
154
|
/**
|
|
136
155
|
* Optional Debug console output configuration.
|
|
137
156
|
*
|
|
@@ -198,6 +217,16 @@ interface DevtoolsRuntimeOptions {
|
|
|
198
217
|
* - Exposes a ManagedRuntime; the full Env is provided by `root.layer + options.layer`.
|
|
199
218
|
*/
|
|
200
219
|
declare const make: (root: ModuleImpl<any, AnyModuleShape, any> | AnyModule, options?: RuntimeOptions) => ManagedRuntime.ManagedRuntime<any, never>;
|
|
220
|
+
/**
|
|
221
|
+
* Runtime.batch:
|
|
222
|
+
* - Provides a stronger "tick boundary" for RuntimeStore/TickScheduler than the default microtask boundary.
|
|
223
|
+
* - Sync-only: nested batches flatten; only the outermost batch triggers the flush boundary.
|
|
224
|
+
* - NOT a transaction: no rollback; errors may result in partial commits, but the flush boundary is still released in finally.
|
|
225
|
+
*
|
|
226
|
+
* WARNING:
|
|
227
|
+
* - Do not `await` inside the batch callback expecting mid-flush; batch only establishes a synchronous boundary.
|
|
228
|
+
*/
|
|
229
|
+
declare const batch: <A>(fn: () => A) => A;
|
|
201
230
|
/**
|
|
202
231
|
* Resourceful entry: returns a scope-bound ProgramRunContext (booted and ready).
|
|
203
232
|
*/
|
|
@@ -260,6 +289,7 @@ type Runtime_RuntimeReadQueryOptions = RuntimeReadQueryOptions;
|
|
|
260
289
|
type Runtime_RuntimeReadQueryStrictGateOptions = RuntimeReadQueryStrictGateOptions;
|
|
261
290
|
type Runtime_RuntimeStateTransactionOptions = RuntimeStateTransactionOptions;
|
|
262
291
|
declare const Runtime_applyTransactionSnapshot: typeof applyTransactionSnapshot;
|
|
292
|
+
declare const Runtime_batch: typeof batch;
|
|
263
293
|
declare const Runtime_concurrencyPolicyOverridesLayer: typeof concurrencyPolicyOverridesLayer;
|
|
264
294
|
declare const Runtime_make: typeof make;
|
|
265
295
|
declare const Runtime_openProgram: typeof openProgram;
|
|
@@ -268,7 +298,7 @@ declare const Runtime_setConcurrencyPolicyOverride: typeof setConcurrencyPolicyO
|
|
|
268
298
|
declare const Runtime_setTraitConvergeOverride: typeof setTraitConvergeOverride;
|
|
269
299
|
declare const Runtime_stateTransactionOverridesLayer: typeof stateTransactionOverridesLayer;
|
|
270
300
|
declare namespace Runtime {
|
|
271
|
-
export { Runtime_BootError as BootError, type Runtime_DevtoolsRuntimeOptions as DevtoolsRuntimeOptions, Runtime_DisposeError as DisposeError, Runtime_DisposeTimeoutError as DisposeTimeoutError, Runtime_MainError as MainError, type Runtime_OpenProgramOptions as OpenProgramOptions, type Runtime_ProgramIdentity as ProgramIdentity, type Runtime_ProgramRunContext as ProgramRunContext, type Runtime_ProgramRunnerErrorTag as ProgramRunnerErrorTag, type Runtime_ReadQueryFallbackReason as ReadQueryFallbackReason, type Runtime_RunProgramOptions as RunProgramOptions, type Runtime_RuntimeOptions as RuntimeOptions, type Runtime_RuntimeReadQueryOptions as RuntimeReadQueryOptions, type Runtime_RuntimeReadQueryStrictGateOptions as RuntimeReadQueryStrictGateOptions, type Runtime_RuntimeStateTransactionOptions as RuntimeStateTransactionOptions, Runtime_applyTransactionSnapshot as applyTransactionSnapshot, Runtime_concurrencyPolicyOverridesLayer as concurrencyPolicyOverridesLayer, Runtime_make as make, Runtime_openProgram as openProgram, Runtime_runProgram as runProgram, Runtime_setConcurrencyPolicyOverride as setConcurrencyPolicyOverride, Runtime_setTraitConvergeOverride as setTraitConvergeOverride, Runtime_stateTransactionOverridesLayer as stateTransactionOverridesLayer };
|
|
301
|
+
export { Runtime_BootError as BootError, type Runtime_DevtoolsRuntimeOptions as DevtoolsRuntimeOptions, Runtime_DisposeError as DisposeError, Runtime_DisposeTimeoutError as DisposeTimeoutError, Runtime_MainError as MainError, type Runtime_OpenProgramOptions as OpenProgramOptions, type Runtime_ProgramIdentity as ProgramIdentity, type Runtime_ProgramRunContext as ProgramRunContext, type Runtime_ProgramRunnerErrorTag as ProgramRunnerErrorTag, type Runtime_ReadQueryFallbackReason as ReadQueryFallbackReason, type Runtime_RunProgramOptions as RunProgramOptions, type Runtime_RuntimeOptions as RuntimeOptions, type Runtime_RuntimeReadQueryOptions as RuntimeReadQueryOptions, type Runtime_RuntimeReadQueryStrictGateOptions as RuntimeReadQueryStrictGateOptions, type Runtime_RuntimeStateTransactionOptions as RuntimeStateTransactionOptions, Runtime_applyTransactionSnapshot as applyTransactionSnapshot, Runtime_batch as batch, Runtime_concurrencyPolicyOverridesLayer as concurrencyPolicyOverridesLayer, Runtime_make as make, Runtime_openProgram as openProgram, Runtime_runProgram as runProgram, Runtime_setConcurrencyPolicyOverride as setConcurrencyPolicyOverride, Runtime_setTraitConvergeOverride as setTraitConvergeOverride, Runtime_stateTransactionOverridesLayer as stateTransactionOverridesLayer };
|
|
272
302
|
}
|
|
273
303
|
|
|
274
|
-
export { BootError as B, type DevtoolsRuntimeOptions as D, MainError as M, type OpenProgramOptions as O, type ProgramRunContext as P, Runtime as R, type RunProgramOptions as a, type RuntimeStateTransactionOptions as b, type ReadQueryFallbackReason as c, type RuntimeReadQueryStrictGateOptions as d, type RuntimeReadQueryOptions as e, type RuntimeOptions as f,
|
|
304
|
+
export { BootError as B, type DevtoolsRuntimeOptions as D, MainError as M, type OpenProgramOptions as O, type ProgramRunContext as P, Runtime as R, type RunProgramOptions as a, type RuntimeStateTransactionOptions as b, type ReadQueryFallbackReason as c, type RuntimeReadQueryStrictGateOptions as d, type RuntimeReadQueryOptions as e, type RuntimeOptions as f, batch as g, concurrencyPolicyOverridesLayer as h, setTraitConvergeOverride as i, setConcurrencyPolicyOverride as j, applyTransactionSnapshot as k, DisposeError as l, make as m, DisposeTimeoutError as n, openProgram as o, type ProgramIdentity as p, type ProgramRunnerErrorTag as q, runProgram as r, stateTransactionOverridesLayer as s };
|