@logixjs/core 0.0.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/{Action-mqVvtEHt.d.ts → Action-DYl88bwj.d.ts} +1 -1
- package/dist/{Action-BkRHy2vg.d.cts → Action-DkxsI_DK.d.cts} +1 -1
- package/dist/Action.cjs.map +1 -1
- package/dist/Action.d.cts +1 -1
- package/dist/Action.d.ts +1 -1
- package/dist/Action.js +2 -2
- package/dist/{Actions-AsQ07yTP.d.cts → Actions-Dicm7jdc.d.cts} +2 -2
- package/dist/{Actions-AsQ07yTP.d.ts → Actions-Dicm7jdc.d.ts} +2 -2
- package/dist/Actions.cjs.map +1 -1
- package/dist/Actions.d.cts +1 -1
- package/dist/Actions.d.ts +1 -1
- package/dist/Actions.js +1 -1
- package/dist/{Bound-BN1DQ_lM.d.ts → Bound-1OJLzVIS.d.ts} +2 -2
- package/dist/{Bound-BPIfH9SS.d.cts → Bound-BMLrtQ1V.d.cts} +2 -2
- package/dist/Bound.cjs +1737 -399
- package/dist/Bound.cjs.map +1 -1
- package/dist/Bound.d.cts +5 -5
- package/dist/Bound.d.ts +5 -5
- package/dist/Bound.js +19 -17
- package/dist/{Debug-B5q5Bkzx.d.ts → Debug-DKrWP5H1.d.ts} +40 -22
- package/dist/{Debug-Bq8Sqjcr.d.cts → Debug-hIT44XsY.d.cts} +40 -22
- package/dist/Debug.cjs +1348 -318
- package/dist/Debug.cjs.map +1 -1
- package/dist/Debug.d.cts +12 -11
- package/dist/Debug.d.ts +12 -11
- package/dist/Debug.js +20 -11
- package/dist/EffectOp.cjs +15 -6
- package/dist/EffectOp.cjs.map +1 -1
- package/dist/EffectOp.js +3 -3
- package/dist/Env.cjs +772 -6
- package/dist/Env.cjs.map +1 -1
- package/dist/Env.js +5 -2
- package/dist/ExternalStore-DqJKKRJ4.d.ts +61 -0
- package/dist/ExternalStore-JC-gAgEI.d.cts +61 -0
- package/dist/ExternalStore.cjs +774 -0
- package/dist/ExternalStore.cjs.map +1 -0
- package/dist/ExternalStore.d.cts +8 -0
- package/dist/ExternalStore.d.ts +8 -0
- package/dist/ExternalStore.js +19 -0
- package/dist/ExternalStore.js.map +1 -0
- package/dist/{Flow-BhpjE22E.d.ts → Flow-CZmXRDqp.d.cts} +13 -4
- package/dist/{Flow-1fZT8MpX.d.cts → Flow-DIVDxz7R.d.ts} +13 -4
- package/dist/Flow.cjs +765 -148
- package/dist/Flow.cjs.map +1 -1
- package/dist/Flow.d.cts +6 -6
- package/dist/Flow.d.ts +6 -6
- package/dist/Flow.js +9 -8
- package/dist/{Handle-D_cLW1Z3.d.ts → Handle-Bo6cAFut.d.ts} +1 -1
- package/dist/{Handle-D8D1zPb_.d.cts → Handle-CfDvSqN7.d.cts} +1 -1
- package/dist/Handle.d.cts +5 -5
- package/dist/Handle.d.ts +5 -5
- package/dist/{Kernel-8kC-jOda.d.cts → Kernel-CuXBF9S_.d.cts} +16 -7
- package/dist/{Kernel-CnGE1Fyk.d.ts → Kernel-D9guNwRL.d.ts} +16 -7
- package/dist/Kernel.cjs +814 -26
- package/dist/Kernel.cjs.map +1 -1
- package/dist/Kernel.d.cts +13 -12
- package/dist/Kernel.d.ts +13 -12
- package/dist/Kernel.js +7 -4
- package/dist/{Link-Db7975nU.d.ts → Link-CUM0yUCH.d.ts} +10 -3
- package/dist/{Link-fX8x1eCK.d.cts → Link-NAfR6uGD.d.cts} +10 -3
- package/dist/Link.cjs +1294 -121
- package/dist/Link.cjs.map +1 -1
- package/dist/Link.d.cts +5 -5
- package/dist/Link.d.ts +5 -5
- package/dist/Link.js +37 -29
- package/dist/{Logic-DRh4sDZj.d.cts → Logic-09VQpIj3.d.cts} +7 -4
- package/dist/{Logic-BRjEMr-W.d.ts → Logic-DKg7ghGy.d.ts} +7 -4
- package/dist/Logic.cjs +2 -1
- package/dist/Logic.cjs.map +1 -1
- package/dist/Logic.d.cts +5 -5
- package/dist/Logic.d.ts +5 -5
- package/dist/Logic.js +1 -1
- package/dist/{MatchBuilder-CJk5oCkR.d.cts → MatchBuilder-CsW5jgrL.d.ts} +1 -1
- package/dist/{MatchBuilder-0QOc-nlU.d.ts → MatchBuilder-Dksk07F4.d.cts} +1 -1
- package/dist/MatchBuilder.cjs +2 -2
- package/dist/MatchBuilder.cjs.map +1 -1
- package/dist/MatchBuilder.d.cts +6 -6
- package/dist/MatchBuilder.d.ts +6 -6
- package/dist/MatchBuilder.js +2 -2
- package/dist/Middleware-D8tUDLv_.d.cts +100 -0
- package/dist/Middleware-DS7CbTTN.d.ts +100 -0
- package/dist/Middleware.cjs +678 -58
- 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 +15 -12
- package/dist/{Module-DnzluX2J.d.ts → Module-B_Cntyms.d.ts} +54 -25
- package/dist/{Module-B_0xRDMR.d.cts → Module-CmNOVXzf.d.cts} +54 -25
- package/dist/Module.cjs +9331 -3317
- package/dist/Module.cjs.map +1 -1
- package/dist/Module.d.cts +7 -6
- package/dist/Module.d.ts +7 -6
- package/dist/Module.js +39 -31
- package/dist/ModuleTag-CGho_InD.d.ts +113 -0
- package/dist/ModuleTag-CITb8L_G.d.cts +113 -0
- package/dist/ModuleTag.cjs +7248 -2847
- package/dist/ModuleTag.cjs.map +1 -1
- package/dist/ModuleTag.d.cts +6 -6
- package/dist/ModuleTag.d.ts +6 -6
- package/dist/ModuleTag.js +35 -29
- package/dist/Observability-Bdhnx2Dv.d.ts +385 -0
- package/dist/Observability-DXGAFBIT.d.cts +385 -0
- package/dist/Observability.cjs +5093 -1556
- package/dist/Observability.cjs.map +1 -1
- package/dist/Observability.d.cts +6 -7
- package/dist/Observability.d.ts +6 -7
- package/dist/Observability.js +28 -23
- package/dist/{Platform-CHX8o-U4.d.ts → Platform-B4s8tg6C.d.cts} +4 -5
- package/dist/{Platform-C49Pv956.d.cts → Platform-BV_0MW7g.d.cts} +5 -2
- package/dist/{Platform-C49Pv956.d.ts → Platform-BV_0MW7g.d.ts} +5 -2
- package/dist/{Platform-CVlv0xLQ.d.cts → Platform-W0Mefy_e.d.ts} +4 -5
- package/dist/Platform.cjs +2 -1
- package/dist/Platform.cjs.map +1 -1
- package/dist/Platform.d.cts +2 -3
- package/dist/Platform.d.ts +2 -3
- package/dist/Platform.js +2 -2
- package/dist/{Process-CM9xbMdP.d.ts → Process-CO8G7HO9.d.cts} +30 -5
- package/dist/{Process-mL8fHDSB.d.cts → Process-Cyf6VNDR.d.ts} +30 -5
- package/dist/Process.cjs +1288 -120
- package/dist/Process.cjs.map +1 -1
- package/dist/Process.d.cts +6 -6
- package/dist/Process.d.ts +6 -6
- package/dist/Process.js +34 -26
- package/dist/ReadQuery-C_or5nLC.d.ts +128 -0
- package/dist/ReadQuery-DXLzCE0E.d.cts +614 -0
- package/dist/ReadQuery-DXLzCE0E.d.ts +614 -0
- package/dist/ReadQuery-Yve1lmUo.d.cts +128 -0
- package/dist/ReadQuery.cjs +290 -5
- package/dist/ReadQuery.cjs.map +1 -1
- package/dist/ReadQuery.d.cts +3 -2
- package/dist/ReadQuery.d.ts +3 -2
- package/dist/ReadQuery.js +23 -5
- package/dist/{Reflection-CQnKwPXj.d.ts → Reflection-B2Xi1e4Q.d.ts} +89 -7
- package/dist/{Reflection-Kabo1mlU.d.cts → Reflection-DNB4V4_e.d.cts} +89 -7
- package/dist/Reflection.cjs +3227 -1617
- package/dist/Reflection.cjs.map +1 -1
- package/dist/Reflection.d.cts +17 -15
- package/dist/Reflection.d.ts +17 -15
- package/dist/Reflection.js +33 -25
- package/dist/{Resource-Dy1xD_DG.d.cts → Resource-pKvQQ4x5.d.cts} +3 -3
- package/dist/{Resource-Dy1xD_DG.d.ts → Resource-pKvQQ4x5.d.ts} +3 -3
- package/dist/Resource.cjs +781 -15
- package/dist/Resource.cjs.map +1 -1
- package/dist/Resource.d.cts +1 -1
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +6 -3
- package/dist/{Root-7ADUMk4t.d.cts → Root-CCVuFHB6.d.cts} +3 -3
- package/dist/{Root-7ADUMk4t.d.ts → Root-CCVuFHB6.d.ts} +3 -3
- package/dist/Root.cjs +786 -20
- package/dist/Root.cjs.map +1 -1
- package/dist/Root.d.cts +2 -2
- package/dist/Root.d.ts +2 -2
- package/dist/Root.js +7 -3
- package/dist/{Runtime-CtyzZG4i.d.ts → Runtime-CRmvwK4I.d.ts} +70 -14
- package/dist/{Runtime-B-aL-f29.d.cts → Runtime-C_wJM9mN.d.cts} +70 -14
- package/dist/Runtime.cjs +4942 -1601
- package/dist/Runtime.cjs.map +1 -1
- package/dist/Runtime.d.cts +17 -15
- package/dist/Runtime.d.ts +17 -15
- package/dist/Runtime.js +44 -32
- package/dist/{ScopeRegistry-D1owDNSm.d.cts → ScopeRegistry-BhYzqWri.d.cts} +6 -6
- package/dist/{ScopeRegistry-D1owDNSm.d.ts → ScopeRegistry-BhYzqWri.d.ts} +6 -6
- package/dist/ScopeRegistry.cjs +776 -10
- package/dist/ScopeRegistry.cjs.map +1 -1
- package/dist/ScopeRegistry.d.cts +1 -1
- package/dist/ScopeRegistry.d.ts +1 -1
- package/dist/ScopeRegistry.js +6 -3
- package/dist/{State-CU50R26M.d.cts → State-rNFsFPTl.d.cts} +2 -2
- package/dist/{State-CU50R26M.d.ts → State-rNFsFPTl.d.ts} +2 -2
- package/dist/State.cjs.map +1 -1
- package/dist/State.d.cts +1 -1
- package/dist/State.d.ts +1 -1
- package/dist/State.js +1 -1
- package/dist/{StateTrait-BGsZghTz.d.ts → StateTrait-CijdwNb6.d.ts} +25 -8
- package/dist/{StateTrait-OWhbj12c.d.cts → StateTrait-Dltto6PU.d.cts} +25 -8
- package/dist/StateTrait.cjs +1890 -528
- package/dist/StateTrait.cjs.map +1 -1
- package/dist/StateTrait.d.cts +9 -7
- package/dist/StateTrait.d.ts +9 -7
- package/dist/StateTrait.js +18 -14
- package/dist/{TraitLifecycle-CwV5WPFX.d.cts → TraitLifecycle-BKzDqzLu.d.cts} +2 -2
- package/dist/{TraitLifecycle-LdIWmKlg.d.ts → TraitLifecycle-Cvo94uDB.d.ts} +2 -2
- package/dist/TraitLifecycle.cjs +630 -67
- package/dist/TraitLifecycle.cjs.map +1 -1
- package/dist/TraitLifecycle.d.cts +6 -6
- package/dist/TraitLifecycle.d.ts +6 -6
- package/dist/TraitLifecycle.js +8 -7
- package/dist/Workflow-C_OWr4dV.d.ts +415 -0
- package/dist/Workflow-DmydkHO8.d.cts +415 -0
- package/dist/Workflow.cjs +3150 -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 +58 -0
- package/dist/Workflow.js.map +1 -0
- package/dist/{action-DiMDD_0v.d.cts → action-BQxjPFEw.d.cts} +5 -5
- package/dist/{action-DiMDD_0v.d.ts → action-BQxjPFEw.d.ts} +5 -5
- package/dist/chunk-2XRLXDWR.js +276 -0
- package/dist/chunk-2XRLXDWR.js.map +1 -0
- package/dist/chunk-3L6QGFMM.js +701 -0
- package/dist/chunk-3L6QGFMM.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-3IYZ5IGG.js → chunk-5WKUGEBY.js} +2 -2
- package/dist/{chunk-3RMKLXHX.js → chunk-63ZQ5RIN.js} +2 -2
- package/dist/{chunk-M3WTHJHJ.js → chunk-67DIEA53.js} +385 -148
- package/dist/chunk-67DIEA53.js.map +1 -0
- package/dist/{chunk-YS3AZQ2G.js → chunk-6HFAW2MH.js} +1 -1
- package/dist/chunk-6HFAW2MH.js.map +1 -0
- package/dist/{chunk-EY4NZKDR.js → chunk-6Y2TKCNY.js} +2 -2
- package/dist/{chunk-76WT3HOR.js → chunk-6YZOXFPQ.js} +25 -24
- package/dist/chunk-6YZOXFPQ.js.map +1 -0
- package/dist/{chunk-G5ZBFPNU.js → chunk-A2RQOJC7.js} +2 -2
- package/dist/{chunk-AUIR5O6W.js → chunk-AFSB6NKM.js} +13 -19
- package/dist/chunk-AFSB6NKM.js.map +1 -0
- package/dist/{chunk-JCXGZRMU.js → chunk-AO4JEOKD.js} +22 -23
- package/dist/chunk-AO4JEOKD.js.map +1 -0
- package/dist/{chunk-TAAPQVZN.js → chunk-AYELIQXR.js} +2 -2
- package/dist/{chunk-QMM6O4CD.js → chunk-BLHZW7DG.js} +15 -3
- package/dist/{chunk-QMM6O4CD.js.map → chunk-BLHZW7DG.js.map} +1 -1
- package/dist/{chunk-TQOBJYDP.js → chunk-CD4N74YC.js} +1 -1
- package/dist/chunk-CD4N74YC.js.map +1 -0
- package/dist/{chunk-ANLBCBDC.js → chunk-CGE2HBTH.js} +11 -11
- package/dist/chunk-CGE2HBTH.js.map +1 -0
- package/dist/{chunk-OFADUJWJ.js → chunk-CYYSQMLO.js} +5 -5
- package/dist/chunk-CYYSQMLO.js.map +1 -0
- package/dist/{chunk-66ALHVEX.js → chunk-EB46EYI7.js} +3 -3
- package/dist/{chunk-NZJKFF45.js → chunk-EKCDHWRK.js} +4 -4
- package/dist/chunk-EKCDHWRK.js.map +1 -0
- package/dist/{chunk-BABLDP24.js → chunk-EPQFNJU3.js} +152 -7
- package/dist/chunk-EPQFNJU3.js.map +1 -0
- package/dist/{chunk-OGWBVHB3.js → chunk-ESR6HGOY.js} +73 -14
- package/dist/chunk-ESR6HGOY.js.map +1 -0
- package/dist/{chunk-NBD3KUOZ.js → chunk-F6RP62H3.js} +150 -98
- package/dist/chunk-F6RP62H3.js.map +1 -0
- package/dist/chunk-FBYW3QDI.js +252 -0
- package/dist/chunk-FBYW3QDI.js.map +1 -0
- package/dist/{chunk-IPF7E66P.js → chunk-FYAODKVP.js} +2 -2
- package/dist/chunk-GNEN7NKO.js +908 -0
- package/dist/chunk-GNEN7NKO.js.map +1 -0
- package/dist/chunk-GWSM4KLB.js +763 -0
- package/dist/chunk-GWSM4KLB.js.map +1 -0
- package/dist/{chunk-4SO6JMZL.js → chunk-HDMXCUZL.js} +1 -1
- package/dist/chunk-HDMXCUZL.js.map +1 -0
- package/dist/{chunk-ZFY7U2FR.js → chunk-HJM5Y5NU.js} +43 -3
- package/dist/chunk-HJM5Y5NU.js.map +1 -0
- package/dist/{chunk-ZGDVUPTM.js → chunk-IOZ3VKPK.js} +129 -68
- package/dist/chunk-IOZ3VKPK.js.map +1 -0
- package/dist/{chunk-PYOE4VSI.js → chunk-IVXSVHO4.js} +303 -247
- package/dist/chunk-IVXSVHO4.js.map +1 -0
- package/dist/chunk-J3CWXIPV.js +242 -0
- package/dist/chunk-J3CWXIPV.js.map +1 -0
- package/dist/chunk-K6JQW266.js +42 -0
- package/dist/chunk-K6JQW266.js.map +1 -0
- package/dist/chunk-KMZYQF6Q.js +202 -0
- package/dist/chunk-KMZYQF6Q.js.map +1 -0
- package/dist/{chunk-JWOYLO27.js → chunk-LPPZDFTD.js} +22 -12
- package/dist/chunk-LPPZDFTD.js.map +1 -0
- package/dist/{chunk-PAYXCY6A.js → chunk-MYB2B5WX.js} +997 -576
- package/dist/chunk-MYB2B5WX.js.map +1 -0
- package/dist/chunk-MYKNINNN.js +228 -0
- package/dist/chunk-MYKNINNN.js.map +1 -0
- package/dist/chunk-NSQIRMVF.js +27 -0
- package/dist/{chunk-QCHIQWAJ.js.map → chunk-NSQIRMVF.js.map} +1 -1
- package/dist/chunk-NUDBM4MM.js +30 -0
- package/dist/chunk-NUDBM4MM.js.map +1 -0
- package/dist/chunk-NZMWWDAY.js +23 -0
- package/dist/chunk-NZMWWDAY.js.map +1 -0
- package/dist/{chunk-RNFE3ML2.js → chunk-OCUV2Y25.js} +4 -3
- package/dist/chunk-OCUV2Y25.js.map +1 -0
- package/dist/chunk-P4ZJOQA7.js +271 -0
- package/dist/chunk-P4ZJOQA7.js.map +1 -0
- package/dist/chunk-P6C5EZ3D.js +342 -0
- package/dist/chunk-P6C5EZ3D.js.map +1 -0
- package/dist/{chunk-CW6T36TN.js → chunk-PBD7BJUN.js} +62 -4
- package/dist/chunk-PBD7BJUN.js.map +1 -0
- package/dist/chunk-PBIUCQY3.js +696 -0
- package/dist/chunk-PBIUCQY3.js.map +1 -0
- package/dist/chunk-PD6YECQH.js +845 -0
- package/dist/chunk-PD6YECQH.js.map +1 -0
- package/dist/{chunk-M7IYCTJV.js → chunk-R4LFQGP3.js} +2 -2
- package/dist/chunk-RHJIGDUE.js +21 -0
- package/dist/chunk-RHJIGDUE.js.map +1 -0
- package/dist/{chunk-KP7MUZNX.js → chunk-RLXO27MW.js} +30 -8
- package/dist/chunk-RLXO27MW.js.map +1 -0
- package/dist/{chunk-DFNM3WX2.js → chunk-S44BEV4B.js} +168 -45
- package/dist/chunk-S44BEV4B.js.map +1 -0
- package/dist/chunk-S4S5N4BJ.js +1461 -0
- package/dist/chunk-S4S5N4BJ.js.map +1 -0
- package/dist/{chunk-BZ2SHDN2.js → chunk-SGTRAXXX.js} +3 -3
- package/dist/chunk-SGTRAXXX.js.map +1 -0
- package/dist/{chunk-M2RGJPXX.js → chunk-SJAE5PB5.js} +3 -3
- package/dist/{chunk-JGIWG6SR.js → chunk-SNPNHU3H.js} +3937 -1776
- package/dist/chunk-SNPNHU3H.js.map +1 -0
- package/dist/{chunk-IHVBV5C2.js → chunk-SOOBFXRR.js} +94 -71
- package/dist/chunk-SOOBFXRR.js.map +1 -0
- package/dist/{chunk-ZDTRWK5F.js → chunk-TAHFWKS6.js} +2 -2
- package/dist/chunk-UEFFTVPY.js +9 -0
- package/dist/chunk-UEFFTVPY.js.map +1 -0
- package/dist/{chunk-24VULZ7A.js → chunk-UR5BXLBP.js} +3 -3
- package/dist/chunk-UR5BXLBP.js.map +1 -0
- package/dist/{chunk-DMBALCE2.js → chunk-V2SBGVDO.js} +471 -186
- package/dist/chunk-V2SBGVDO.js.map +1 -0
- package/dist/chunk-VJLWD47W.js +23 -0
- package/dist/chunk-VJLWD47W.js.map +1 -0
- package/dist/{chunk-4CQAV7YB.js → chunk-W647DX5Z.js} +2 -2
- package/dist/{chunk-THATMZXD.js → chunk-WFIIU3YZ.js} +2 -2
- package/dist/{chunk-THATMZXD.js.map → chunk-WFIIU3YZ.js.map} +1 -1
- package/dist/chunk-YZDJMAKL.js +82 -0
- package/dist/chunk-YZDJMAKL.js.map +1 -0
- package/dist/{chunk-3TMODYZV.js → chunk-Z5XH6VHY.js} +5 -5
- package/dist/chunk-Z5XH6VHY.js.map +1 -0
- package/dist/{chunk-BE3HW4FY.js → chunk-ZBBMZMA6.js} +377 -170
- package/dist/chunk-ZBBMZMA6.js.map +1 -0
- package/dist/index.cjs +21224 -11714
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +195 -49
- package/dist/index.d.ts +195 -49
- package/dist/index.js +150 -74
- package/dist/index.js.map +1 -1
- package/dist/{ir-BMP7yxJJ.d.cts → ir-BSosEwc8.d.cts} +1 -1
- package/dist/{ir-DUOz6H-5.d.ts → ir-D-uqwL_4.d.ts} +1 -1
- package/dist/{module-B8CBqIZ_.d.cts → module-Ds4tarcI.d.cts} +230 -140
- package/dist/{module-k7m3txak.d.ts → module-Zd1Gn-Nj.d.ts} +230 -140
- package/package.json +20 -4
- package/dist/ModuleTag-C8FHY_sY.d.ts +0 -93
- package/dist/ModuleTag-EGbgBMpZ.d.cts +0 -93
- package/dist/Observability-COqEvp2C.d.cts +0 -713
- package/dist/Observability-cY4kLn0S.d.ts +0 -713
- package/dist/ReadQuery-BlMwhe-F.d.ts +0 -30
- package/dist/ReadQuery-CL5XlXts.d.cts +0 -30
- package/dist/ReadQuery-SinbStGF.d.cts +0 -38
- package/dist/ReadQuery-SinbStGF.d.ts +0 -38
- package/dist/chunk-24VULZ7A.js.map +0 -1
- package/dist/chunk-3QMIVH35.js +0 -43
- package/dist/chunk-3QMIVH35.js.map +0 -1
- package/dist/chunk-3TMODYZV.js.map +0 -1
- package/dist/chunk-4SO6JMZL.js.map +0 -1
- package/dist/chunk-76WT3HOR.js.map +0 -1
- package/dist/chunk-ANLBCBDC.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-BZ2SHDN2.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 +0 -406
- 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-KL5ACTCT.js +0 -8
- package/dist/chunk-KL5ACTCT.js.map +0 -1
- package/dist/chunk-KP7MUZNX.js.map +0 -1
- package/dist/chunk-M3BFQ7HK.js +0 -13
- package/dist/chunk-M3BFQ7HK.js.map +0 -1
- package/dist/chunk-M3WTHJHJ.js.map +0 -1
- package/dist/chunk-NBD3KUOZ.js.map +0 -1
- package/dist/chunk-NQZ2OSGR.js +0 -151
- package/dist/chunk-NQZ2OSGR.js.map +0 -1
- package/dist/chunk-NZJKFF45.js.map +0 -1
- package/dist/chunk-OFADUJWJ.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-RNFE3ML2.js.map +0 -1
- package/dist/chunk-TKZ7MEIA.js +0 -27
- package/dist/chunk-TKZ7MEIA.js.map +0 -1
- package/dist/chunk-TQOBJYDP.js.map +0 -1
- 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-YS3AZQ2G.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-ZGDVUPTM.js.map +0 -1
- package/dist/protocol-g_1897M2.d.cts +0 -127
- package/dist/protocol-g_1897M2.d.ts +0 -127
- /package/dist/{chunk-3IYZ5IGG.js.map → chunk-5WKUGEBY.js.map} +0 -0
- /package/dist/{chunk-3RMKLXHX.js.map → chunk-63ZQ5RIN.js.map} +0 -0
- /package/dist/{chunk-EY4NZKDR.js.map → chunk-6Y2TKCNY.js.map} +0 -0
- /package/dist/{chunk-G5ZBFPNU.js.map → chunk-A2RQOJC7.js.map} +0 -0
- /package/dist/{chunk-TAAPQVZN.js.map → chunk-AYELIQXR.js.map} +0 -0
- /package/dist/{chunk-66ALHVEX.js.map → chunk-EB46EYI7.js.map} +0 -0
- /package/dist/{chunk-IPF7E66P.js.map → chunk-FYAODKVP.js.map} +0 -0
- /package/dist/{chunk-M7IYCTJV.js.map → chunk-R4LFQGP3.js.map} +0 -0
- /package/dist/{chunk-M2RGJPXX.js.map → chunk-SJAE5PB5.js.map} +0 -0
- /package/dist/{chunk-ZDTRWK5F.js.map → chunk-TAHFWKS6.js.map} +0 -0
- /package/dist/{chunk-4CQAV7YB.js.map → chunk-W647DX5Z.js.map} +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { w as ReadQueryCompiled$1, n as ReadQueryFallbackReason$1, x as ReadQueryStrictGateRule$1, y as ReadQueryStrictGateDecision$1, z as ReadQueryInput$1, A as ReadLane$1, B as ReadProducer$1, C as EqualsKind$1, F as ReadsDigest$1, G as ReadQueryQualityMeta$1, H as ReadQueryStrictGateGrade$1, I as ReadQueryStaticIr$1, K as ReadQuery$2, L as ReadQueryStrictGateConfig$1, M as isReadQuery$1, N as isReadQueryCompiled$1 } from './ReadQuery-DXLzCE0E.cjs';
|
|
2
|
+
|
|
3
|
+
interface SelectorQualityEntry$1 {
|
|
4
|
+
readonly moduleId: string;
|
|
5
|
+
readonly selectorId: string;
|
|
6
|
+
readonly debugKey?: string;
|
|
7
|
+
readonly lane: ReadQueryCompiled$1<any, any>['lane'];
|
|
8
|
+
readonly producer: ReadQueryCompiled$1<any, any>['producer'];
|
|
9
|
+
readonly readsDigest?: ReadQueryCompiled$1<any, any>['readsDigest'];
|
|
10
|
+
readonly fallbackReason?: ReadQueryFallbackReason$1;
|
|
11
|
+
readonly strictGateVerdict: 'PASS' | 'WARN' | 'FAIL';
|
|
12
|
+
readonly strictGateRule?: ReadQueryStrictGateRule$1;
|
|
13
|
+
readonly diagnosticCode?: 'read_query::strict_gate';
|
|
14
|
+
}
|
|
15
|
+
interface SelectorQualitySummary$1 {
|
|
16
|
+
readonly total: number;
|
|
17
|
+
readonly staticCount: number;
|
|
18
|
+
readonly dynamicCount: number;
|
|
19
|
+
readonly warnCount: number;
|
|
20
|
+
readonly failCount: number;
|
|
21
|
+
readonly fallbackBreakdown: Readonly<Record<string, number>>;
|
|
22
|
+
}
|
|
23
|
+
interface SelectorQualityReport$1 {
|
|
24
|
+
readonly reportId: string;
|
|
25
|
+
readonly moduleId: string;
|
|
26
|
+
readonly generatedAt: string;
|
|
27
|
+
readonly entries: ReadonlyArray<SelectorQualityEntry$1>;
|
|
28
|
+
readonly summary: SelectorQualitySummary$1;
|
|
29
|
+
}
|
|
30
|
+
interface BuildReadQueryGradeResult$1<S, V> {
|
|
31
|
+
readonly compiled: ReadQueryCompiled$1<S, V>;
|
|
32
|
+
readonly entry: SelectorQualityEntry$1;
|
|
33
|
+
readonly strictGateDecision: ReadQueryStrictGateDecision$1;
|
|
34
|
+
}
|
|
35
|
+
interface SelectorQualityReportResult$1 {
|
|
36
|
+
readonly report: SelectorQualityReport$1;
|
|
37
|
+
readonly graded: ReadonlyArray<BuildReadQueryGradeResult$1<any, any>>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type ReadLane = ReadLane$1;
|
|
41
|
+
type ReadProducer = ReadProducer$1;
|
|
42
|
+
type EqualsKind = EqualsKind$1;
|
|
43
|
+
type ReadsDigest = ReadsDigest$1;
|
|
44
|
+
type ReadQueryStrictGateRule = ReadQueryStrictGateRule$1;
|
|
45
|
+
type ReadQueryFallbackReason = ReadQueryFallbackReason$1;
|
|
46
|
+
type ReadQueryQualityMeta = ReadQueryQualityMeta$1;
|
|
47
|
+
type ReadQueryStrictGateGrade = ReadQueryStrictGateGrade$1;
|
|
48
|
+
type ReadQueryStaticIr = ReadQueryStaticIr$1;
|
|
49
|
+
type ReadQuery<S, V> = ReadQuery$2<S, V>;
|
|
50
|
+
type ReadQueryCompiled<S, V> = ReadQueryCompiled$1<S, V>;
|
|
51
|
+
type ReadQueryInput<S, V> = ReadQueryInput$1<S, V>;
|
|
52
|
+
type ReadQueryStrictGateConfig = ReadQueryStrictGateConfig$1;
|
|
53
|
+
type ReadQueryStrictGateDecision = ReadQueryStrictGateDecision$1;
|
|
54
|
+
declare const isReadQuery: typeof isReadQuery$1;
|
|
55
|
+
declare const isReadQueryCompiled: typeof isReadQueryCompiled$1;
|
|
56
|
+
declare const hasBuildQualityGrade: (compiled: ReadQueryCompiled$1<any, any>) => boolean;
|
|
57
|
+
declare const shouldEvaluateStrictGateAtRuntime: (compiled: ReadQueryCompiled$1<any, any>) => boolean;
|
|
58
|
+
declare const markRuntimeMissingBuildGrade: <S, V>(compiled: ReadQueryCompiled$1<S, V>) => ReadQueryCompiled$1<S, V>;
|
|
59
|
+
declare const resolveBuildGradeStrictGateDecision: (args: {
|
|
60
|
+
readonly moduleId: string;
|
|
61
|
+
readonly instanceId: string;
|
|
62
|
+
readonly txnSeq: number;
|
|
63
|
+
readonly compiled: ReadQueryCompiled$1<any, any>;
|
|
64
|
+
}) => ReadQueryStrictGateDecision$1 | undefined;
|
|
65
|
+
declare const make: <S, V>(spec: ReadQuery$2<S, V>) => ReadQuery$2<S, V>;
|
|
66
|
+
declare const compile: <S, V>(input: ReadQueryInput$1<S, V>) => ReadQueryCompiled$1<S, V>;
|
|
67
|
+
declare const evaluateStrictGate: (args: {
|
|
68
|
+
readonly config: ReadQueryStrictGateConfig$1;
|
|
69
|
+
readonly moduleId: string;
|
|
70
|
+
readonly instanceId: string;
|
|
71
|
+
readonly txnSeq: number;
|
|
72
|
+
readonly compiled: ReadQueryCompiled$1<any, any>;
|
|
73
|
+
}) => ReadQueryStrictGateDecision$1;
|
|
74
|
+
type SelectorQualityEntry = SelectorQualityEntry$1;
|
|
75
|
+
type SelectorQualitySummary = SelectorQualitySummary$1;
|
|
76
|
+
type SelectorQualityReport = SelectorQualityReport$1;
|
|
77
|
+
type SelectorQualityReportResult = SelectorQualityReportResult$1;
|
|
78
|
+
type BuildReadQueryGradeResult<S, V> = BuildReadQueryGradeResult$1<S, V>;
|
|
79
|
+
declare const gradeReadQueryAtBuild: <S, V>(args: {
|
|
80
|
+
readonly moduleId: string;
|
|
81
|
+
readonly input: ReadQueryInput$1<S, V> | ReadQueryCompiled$1<S, V>;
|
|
82
|
+
readonly strictGate?: ReadQueryStrictGateConfig$1;
|
|
83
|
+
readonly reportId?: string;
|
|
84
|
+
}) => BuildReadQueryGradeResult$1<S, V>;
|
|
85
|
+
declare const buildSelectorQualityReport: (args: {
|
|
86
|
+
readonly moduleId: string;
|
|
87
|
+
readonly selectors: ReadonlyArray<ReadQueryInput$1<any, any> | ReadQueryCompiled$1<any, any>>;
|
|
88
|
+
readonly strictGate?: ReadQueryStrictGateConfig$1;
|
|
89
|
+
readonly generatedAt?: string;
|
|
90
|
+
}) => SelectorQualityReportResult$1;
|
|
91
|
+
declare const hasBuildGateFailure: (report: SelectorQualityReport$1) => boolean;
|
|
92
|
+
|
|
93
|
+
type ReadQuery$1_BuildReadQueryGradeResult<S, V> = BuildReadQueryGradeResult<S, V>;
|
|
94
|
+
type ReadQuery$1_EqualsKind = EqualsKind;
|
|
95
|
+
type ReadQuery$1_ReadLane = ReadLane;
|
|
96
|
+
type ReadQuery$1_ReadProducer = ReadProducer;
|
|
97
|
+
type ReadQuery$1_ReadQuery<S, V> = ReadQuery<S, V>;
|
|
98
|
+
type ReadQuery$1_ReadQueryCompiled<S, V> = ReadQueryCompiled<S, V>;
|
|
99
|
+
type ReadQuery$1_ReadQueryFallbackReason = ReadQueryFallbackReason;
|
|
100
|
+
type ReadQuery$1_ReadQueryInput<S, V> = ReadQueryInput<S, V>;
|
|
101
|
+
type ReadQuery$1_ReadQueryQualityMeta = ReadQueryQualityMeta;
|
|
102
|
+
type ReadQuery$1_ReadQueryStaticIr = ReadQueryStaticIr;
|
|
103
|
+
type ReadQuery$1_ReadQueryStrictGateConfig = ReadQueryStrictGateConfig;
|
|
104
|
+
type ReadQuery$1_ReadQueryStrictGateDecision = ReadQueryStrictGateDecision;
|
|
105
|
+
type ReadQuery$1_ReadQueryStrictGateGrade = ReadQueryStrictGateGrade;
|
|
106
|
+
type ReadQuery$1_ReadQueryStrictGateRule = ReadQueryStrictGateRule;
|
|
107
|
+
type ReadQuery$1_ReadsDigest = ReadsDigest;
|
|
108
|
+
type ReadQuery$1_SelectorQualityEntry = SelectorQualityEntry;
|
|
109
|
+
type ReadQuery$1_SelectorQualityReport = SelectorQualityReport;
|
|
110
|
+
type ReadQuery$1_SelectorQualityReportResult = SelectorQualityReportResult;
|
|
111
|
+
type ReadQuery$1_SelectorQualitySummary = SelectorQualitySummary;
|
|
112
|
+
declare const ReadQuery$1_buildSelectorQualityReport: typeof buildSelectorQualityReport;
|
|
113
|
+
declare const ReadQuery$1_compile: typeof compile;
|
|
114
|
+
declare const ReadQuery$1_evaluateStrictGate: typeof evaluateStrictGate;
|
|
115
|
+
declare const ReadQuery$1_gradeReadQueryAtBuild: typeof gradeReadQueryAtBuild;
|
|
116
|
+
declare const ReadQuery$1_hasBuildGateFailure: typeof hasBuildGateFailure;
|
|
117
|
+
declare const ReadQuery$1_hasBuildQualityGrade: typeof hasBuildQualityGrade;
|
|
118
|
+
declare const ReadQuery$1_isReadQuery: typeof isReadQuery;
|
|
119
|
+
declare const ReadQuery$1_isReadQueryCompiled: typeof isReadQueryCompiled;
|
|
120
|
+
declare const ReadQuery$1_make: typeof make;
|
|
121
|
+
declare const ReadQuery$1_markRuntimeMissingBuildGrade: typeof markRuntimeMissingBuildGrade;
|
|
122
|
+
declare const ReadQuery$1_resolveBuildGradeStrictGateDecision: typeof resolveBuildGradeStrictGateDecision;
|
|
123
|
+
declare const ReadQuery$1_shouldEvaluateStrictGateAtRuntime: typeof shouldEvaluateStrictGateAtRuntime;
|
|
124
|
+
declare namespace ReadQuery$1 {
|
|
125
|
+
export { type ReadQuery$1_BuildReadQueryGradeResult as BuildReadQueryGradeResult, type ReadQuery$1_EqualsKind as EqualsKind, type ReadQuery$1_ReadLane as ReadLane, type ReadQuery$1_ReadProducer as ReadProducer, type ReadQuery$1_ReadQuery as ReadQuery, type ReadQuery$1_ReadQueryCompiled as ReadQueryCompiled, type ReadQuery$1_ReadQueryFallbackReason as ReadQueryFallbackReason, type ReadQuery$1_ReadQueryInput as ReadQueryInput, type ReadQuery$1_ReadQueryQualityMeta as ReadQueryQualityMeta, type ReadQuery$1_ReadQueryStaticIr as ReadQueryStaticIr, type ReadQuery$1_ReadQueryStrictGateConfig as ReadQueryStrictGateConfig, type ReadQuery$1_ReadQueryStrictGateDecision as ReadQueryStrictGateDecision, type ReadQuery$1_ReadQueryStrictGateGrade as ReadQueryStrictGateGrade, type ReadQuery$1_ReadQueryStrictGateRule as ReadQueryStrictGateRule, type ReadQuery$1_ReadsDigest as ReadsDigest, type ReadQuery$1_SelectorQualityEntry as SelectorQualityEntry, type ReadQuery$1_SelectorQualityReport as SelectorQualityReport, type ReadQuery$1_SelectorQualityReportResult as SelectorQualityReportResult, type ReadQuery$1_SelectorQualitySummary as SelectorQualitySummary, ReadQuery$1_buildSelectorQualityReport as buildSelectorQualityReport, ReadQuery$1_compile as compile, ReadQuery$1_evaluateStrictGate as evaluateStrictGate, ReadQuery$1_gradeReadQueryAtBuild as gradeReadQueryAtBuild, ReadQuery$1_hasBuildGateFailure as hasBuildGateFailure, ReadQuery$1_hasBuildQualityGrade as hasBuildQualityGrade, ReadQuery$1_isReadQuery as isReadQuery, ReadQuery$1_isReadQueryCompiled as isReadQueryCompiled, ReadQuery$1_make as make, ReadQuery$1_markRuntimeMissingBuildGrade as markRuntimeMissingBuildGrade, ReadQuery$1_resolveBuildGradeStrictGateDecision as resolveBuildGradeStrictGateDecision, ReadQuery$1_shouldEvaluateStrictGateAtRuntime as shouldEvaluateStrictGateAtRuntime };
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { buildSelectorQualityReport as A, type BuildReadQueryGradeResult as B, hasBuildGateFailure as C, type EqualsKind as E, ReadQuery$1 as R, type SelectorQualityEntry as S, type ReadQueryInput as a, type ReadQueryCompiled as b, type ReadLane as c, type ReadProducer as d, type ReadsDigest as e, type ReadQueryStrictGateRule as f, type ReadQueryFallbackReason as g, type ReadQueryQualityMeta as h, type ReadQueryStrictGateGrade as i, type ReadQueryStaticIr as j, type ReadQuery as k, type ReadQueryStrictGateConfig as l, type ReadQueryStrictGateDecision as m, isReadQuery as n, isReadQueryCompiled as o, hasBuildQualityGrade as p, markRuntimeMissingBuildGrade as q, resolveBuildGradeStrictGateDecision as r, shouldEvaluateStrictGateAtRuntime as s, make as t, compile as u, evaluateStrictGate as v, type SelectorQualitySummary as w, type SelectorQualityReport as x, type SelectorQualityReportResult as y, gradeReadQueryAtBuild as z };
|
package/dist/ReadQuery.cjs
CHANGED
|
@@ -20,9 +20,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/ReadQuery.ts
|
|
21
21
|
var ReadQuery_exports = {};
|
|
22
22
|
__export(ReadQuery_exports, {
|
|
23
|
+
buildSelectorQualityReport: () => buildSelectorQualityReport2,
|
|
23
24
|
compile: () => compile2,
|
|
25
|
+
evaluateStrictGate: () => evaluateStrictGate2,
|
|
26
|
+
gradeReadQueryAtBuild: () => gradeReadQueryAtBuild2,
|
|
27
|
+
hasBuildGateFailure: () => hasBuildGateFailure2,
|
|
28
|
+
hasBuildQualityGrade: () => hasBuildQualityGrade2,
|
|
24
29
|
isReadQuery: () => isReadQuery2,
|
|
25
|
-
|
|
30
|
+
isReadQueryCompiled: () => isReadQueryCompiled2,
|
|
31
|
+
make: () => make2,
|
|
32
|
+
markRuntimeMissingBuildGrade: () => markRuntimeMissingBuildGrade2,
|
|
33
|
+
resolveBuildGradeStrictGateDecision: () => resolveBuildGradeStrictGateDecision2,
|
|
34
|
+
shouldEvaluateStrictGateAtRuntime: () => shouldEvaluateStrictGateAtRuntime2
|
|
26
35
|
});
|
|
27
36
|
module.exports = __toCommonJS(ReadQuery_exports);
|
|
28
37
|
|
|
@@ -38,7 +47,7 @@ var stableStringify = (value) => {
|
|
|
38
47
|
}
|
|
39
48
|
if (t === "object") {
|
|
40
49
|
const record = value;
|
|
41
|
-
const keys = Object.keys(record).sort(
|
|
50
|
+
const keys = Object.keys(record).sort();
|
|
42
51
|
return `{${keys.map((k) => `${JSON.stringify(k)}:${stableStringify(record[k])}`).join(",")}}`;
|
|
43
52
|
}
|
|
44
53
|
return "null";
|
|
@@ -58,6 +67,30 @@ function isReadQuery(input) {
|
|
|
58
67
|
const maybe = input;
|
|
59
68
|
return typeof maybe.selectorId === "string" && typeof maybe.select === "function" && Array.isArray(maybe.reads);
|
|
60
69
|
}
|
|
70
|
+
function isReadQueryCompiled(input) {
|
|
71
|
+
if (!input || typeof input !== "object") return false;
|
|
72
|
+
const maybe = input;
|
|
73
|
+
return typeof maybe.selectorId === "string" && typeof maybe.select === "function" && Array.isArray(maybe.reads) && maybe.staticIr != null && typeof maybe.lane === "string" && typeof maybe.producer === "string";
|
|
74
|
+
}
|
|
75
|
+
var hasBuildQualityGrade = (compiled) => compiled.quality?.source === "build" && compiled.quality.strictGate?.evaluatedAt === "build";
|
|
76
|
+
var shouldEvaluateStrictGateAtRuntime = (compiled) => compiled.lane === "dynamic" && !hasBuildQualityGrade(compiled);
|
|
77
|
+
var markRuntimeMissingBuildGrade = (compiled) => {
|
|
78
|
+
if (compiled.lane !== "dynamic" || hasBuildQualityGrade(compiled)) return compiled;
|
|
79
|
+
if (compiled.quality?.missingBuildGrade === true && compiled.fallbackReason === "missingBuildGrade") return compiled;
|
|
80
|
+
return {
|
|
81
|
+
...compiled,
|
|
82
|
+
fallbackReason: "missingBuildGrade",
|
|
83
|
+
staticIr: {
|
|
84
|
+
...compiled.staticIr,
|
|
85
|
+
fallbackReason: "missingBuildGrade"
|
|
86
|
+
},
|
|
87
|
+
quality: {
|
|
88
|
+
...compiled.quality ?? {},
|
|
89
|
+
source: "runtime_dynamic_fallback",
|
|
90
|
+
missingBuildGrade: true
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
};
|
|
61
94
|
var normalizeReads = (reads) => {
|
|
62
95
|
const unique = [];
|
|
63
96
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -67,7 +100,7 @@ var normalizeReads = (reads) => {
|
|
|
67
100
|
seen.add(key);
|
|
68
101
|
unique.push(r);
|
|
69
102
|
}
|
|
70
|
-
return unique.slice().sort(
|
|
103
|
+
return unique.slice().sort();
|
|
71
104
|
};
|
|
72
105
|
var toHash32Number = (hex) => Number.parseInt(hex, 16);
|
|
73
106
|
var makeReadsDigest = (reads) => {
|
|
@@ -151,7 +184,7 @@ var tryParseSelectorSource = (source) => {
|
|
|
151
184
|
if (!m) return void 0;
|
|
152
185
|
entries.push([key, m[1]]);
|
|
153
186
|
}
|
|
154
|
-
entries.sort((a, b) => a[0]
|
|
187
|
+
entries.sort((a, b) => a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0);
|
|
155
188
|
return { kind: "struct", entries };
|
|
156
189
|
}
|
|
157
190
|
return void 0;
|
|
@@ -363,15 +396,267 @@ var compile = (input) => {
|
|
|
363
396
|
staticIr
|
|
364
397
|
};
|
|
365
398
|
};
|
|
399
|
+
var filterNonEmpty = (values) => {
|
|
400
|
+
if (!values || values.length === 0) return void 0;
|
|
401
|
+
const next = values.map((v) => v.trim()).filter((v) => v.length > 0);
|
|
402
|
+
return next.length > 0 ? next : void 0;
|
|
403
|
+
};
|
|
404
|
+
var makeStrictGateDiagnostic = (args) => {
|
|
405
|
+
const severity = args.config.mode === "warn" ? "warning" : "error";
|
|
406
|
+
return {
|
|
407
|
+
type: "diagnostic",
|
|
408
|
+
moduleId: args.details.moduleId,
|
|
409
|
+
instanceId: args.details.instanceId,
|
|
410
|
+
txnSeq: args.details.txnSeq,
|
|
411
|
+
code: "read_query::strict_gate",
|
|
412
|
+
severity,
|
|
413
|
+
message: `ReadQuery strict gate violated: selector entered dynamic lane (selectorId=${args.details.selectorId}, reason=${args.details.fallbackReason}).`,
|
|
414
|
+
hint: "Fix: make the selector statically compilable (AOT/JIT) or pass an explicit ReadQuery; or disable/narrow the gate via RuntimeOptions.readQuery.strictGate.requireStatic / denyFallbackReasons.",
|
|
415
|
+
kind: "read_query:strict_gate",
|
|
416
|
+
trigger: {
|
|
417
|
+
kind: "read_query",
|
|
418
|
+
name: "strict_gate",
|
|
419
|
+
details: args.details
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
var makeStrictGateError = (args) => Object.assign(
|
|
424
|
+
new Error(
|
|
425
|
+
`[ReadQueryStrictGateError] selector entered dynamic lane (selectorId=${args.details.selectorId}, reason=${args.details.fallbackReason}).`
|
|
426
|
+
),
|
|
427
|
+
{
|
|
428
|
+
_tag: "ReadQueryStrictGateError",
|
|
429
|
+
details: args.details
|
|
430
|
+
}
|
|
431
|
+
);
|
|
432
|
+
var resolveBuildGradeStrictGateDecision = (args) => {
|
|
433
|
+
if (args.compiled.quality?.source !== "build") return void 0;
|
|
434
|
+
const grade = args.compiled.quality.strictGate;
|
|
435
|
+
if (!grade || grade.evaluatedAt !== "build") return void 0;
|
|
436
|
+
if (grade.verdict === "PASS") return void 0;
|
|
437
|
+
const fallbackReason = grade.fallbackReason ?? args.compiled.fallbackReason ?? "missingDeps";
|
|
438
|
+
const details = {
|
|
439
|
+
moduleId: args.moduleId,
|
|
440
|
+
instanceId: args.instanceId,
|
|
441
|
+
txnSeq: args.txnSeq,
|
|
442
|
+
selectorId: args.compiled.selectorId,
|
|
443
|
+
debugKey: args.compiled.debugKey,
|
|
444
|
+
fallbackReason,
|
|
445
|
+
rule: grade.rule ?? "requireStatic:global"
|
|
446
|
+
};
|
|
447
|
+
const config = {
|
|
448
|
+
mode: grade.verdict === "WARN" ? "warn" : "error"
|
|
449
|
+
};
|
|
450
|
+
const diagnostic = makeStrictGateDiagnostic({ config, details });
|
|
451
|
+
if (grade.verdict === "WARN") {
|
|
452
|
+
return { verdict: "WARN", diagnostic, details };
|
|
453
|
+
}
|
|
454
|
+
return {
|
|
455
|
+
verdict: "FAIL",
|
|
456
|
+
diagnostic,
|
|
457
|
+
error: makeStrictGateError({ details }),
|
|
458
|
+
details
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
var evaluateStrictGate = (args) => {
|
|
462
|
+
if (args.config.mode === "off") {
|
|
463
|
+
return { verdict: "PASS" };
|
|
464
|
+
}
|
|
465
|
+
if (args.compiled.lane !== "dynamic") {
|
|
466
|
+
return { verdict: "PASS" };
|
|
467
|
+
}
|
|
468
|
+
const fallbackReason = args.compiled.fallbackReason ?? "missingDeps";
|
|
469
|
+
const denyFallbackReasons = args.config.denyFallbackReasons;
|
|
470
|
+
const denied = !!denyFallbackReasons?.includes(fallbackReason);
|
|
471
|
+
const selectorIds = filterNonEmpty(args.config.requireStatic?.selectorIds);
|
|
472
|
+
const modules = filterNonEmpty(args.config.requireStatic?.modules);
|
|
473
|
+
const hasCoverageFilter = !!selectorIds || !!modules;
|
|
474
|
+
const matchedSelectorId = !!selectorIds?.includes(args.compiled.selectorId);
|
|
475
|
+
const matchedModule = !!modules?.includes(args.moduleId);
|
|
476
|
+
const coveredByRequireStatic = !hasCoverageFilter || matchedSelectorId || matchedModule;
|
|
477
|
+
if (!denied && !coveredByRequireStatic) {
|
|
478
|
+
return { verdict: "PASS" };
|
|
479
|
+
}
|
|
480
|
+
const rule = denied ? "denyFallbackReason" : !hasCoverageFilter ? "requireStatic:global" : matchedSelectorId ? "requireStatic:selectorId" : "requireStatic:module";
|
|
481
|
+
const details = {
|
|
482
|
+
moduleId: args.moduleId,
|
|
483
|
+
instanceId: args.instanceId,
|
|
484
|
+
txnSeq: args.txnSeq,
|
|
485
|
+
selectorId: args.compiled.selectorId,
|
|
486
|
+
debugKey: args.compiled.debugKey,
|
|
487
|
+
fallbackReason,
|
|
488
|
+
rule
|
|
489
|
+
};
|
|
490
|
+
const diagnostic = makeStrictGateDiagnostic({ config: args.config, details });
|
|
491
|
+
if (args.config.mode === "warn") {
|
|
492
|
+
return { verdict: "WARN", diagnostic, details };
|
|
493
|
+
}
|
|
494
|
+
const error = makeStrictGateError({ details });
|
|
495
|
+
return { verdict: "FAIL", diagnostic, error, details };
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
// src/internal/runtime/core/ReadQueryBuildGate.ts
|
|
499
|
+
var toVerdict = (decision) => decision.verdict;
|
|
500
|
+
var toRule = (decision) => {
|
|
501
|
+
if (decision.verdict === "PASS") return void 0;
|
|
502
|
+
return decision.details.rule;
|
|
503
|
+
};
|
|
504
|
+
var toFallbackReason = (decision, compiled) => {
|
|
505
|
+
if (decision.verdict !== "PASS") return decision.details.fallbackReason;
|
|
506
|
+
return compiled.fallbackReason;
|
|
507
|
+
};
|
|
508
|
+
var gradeReadQueryAtBuild = (args) => {
|
|
509
|
+
const compiled = isReadQueryCompiled(args.input) ? args.input : compile(args.input);
|
|
510
|
+
const strictGateDecision = args.strictGate && args.strictGate.mode !== "off" ? evaluateStrictGate({
|
|
511
|
+
config: args.strictGate,
|
|
512
|
+
moduleId: args.moduleId,
|
|
513
|
+
instanceId: "build",
|
|
514
|
+
txnSeq: 0,
|
|
515
|
+
compiled
|
|
516
|
+
}) : { verdict: "PASS" };
|
|
517
|
+
const strictGateVerdict = toVerdict(strictGateDecision);
|
|
518
|
+
const strictGateRule = toRule(strictGateDecision);
|
|
519
|
+
const fallbackReason = toFallbackReason(strictGateDecision, compiled);
|
|
520
|
+
const entry = {
|
|
521
|
+
moduleId: args.moduleId,
|
|
522
|
+
selectorId: compiled.selectorId,
|
|
523
|
+
debugKey: compiled.debugKey,
|
|
524
|
+
lane: compiled.lane,
|
|
525
|
+
producer: compiled.producer,
|
|
526
|
+
readsDigest: compiled.readsDigest,
|
|
527
|
+
fallbackReason,
|
|
528
|
+
strictGateVerdict,
|
|
529
|
+
strictGateRule,
|
|
530
|
+
diagnosticCode: strictGateVerdict === "PASS" ? void 0 : "read_query::strict_gate"
|
|
531
|
+
};
|
|
532
|
+
const graded = {
|
|
533
|
+
...compiled,
|
|
534
|
+
quality: {
|
|
535
|
+
source: "build",
|
|
536
|
+
reportId: args.reportId,
|
|
537
|
+
strictGate: {
|
|
538
|
+
evaluatedAt: "build",
|
|
539
|
+
verdict: strictGateVerdict,
|
|
540
|
+
rule: strictGateRule,
|
|
541
|
+
fallbackReason
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
return {
|
|
546
|
+
compiled: graded,
|
|
547
|
+
entry,
|
|
548
|
+
strictGateDecision
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
var summarizeEntries = (entries) => {
|
|
552
|
+
let staticCount = 0;
|
|
553
|
+
let dynamicCount = 0;
|
|
554
|
+
let warnCount = 0;
|
|
555
|
+
let failCount = 0;
|
|
556
|
+
const fallbackBreakdown = {};
|
|
557
|
+
for (const entry of entries) {
|
|
558
|
+
if (entry.lane === "static") {
|
|
559
|
+
staticCount += 1;
|
|
560
|
+
} else {
|
|
561
|
+
dynamicCount += 1;
|
|
562
|
+
}
|
|
563
|
+
if (entry.strictGateVerdict === "WARN") warnCount += 1;
|
|
564
|
+
if (entry.strictGateVerdict === "FAIL") failCount += 1;
|
|
565
|
+
if (entry.fallbackReason) {
|
|
566
|
+
fallbackBreakdown[entry.fallbackReason] = (fallbackBreakdown[entry.fallbackReason] ?? 0) + 1;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
return {
|
|
570
|
+
total: entries.length,
|
|
571
|
+
staticCount,
|
|
572
|
+
dynamicCount,
|
|
573
|
+
warnCount,
|
|
574
|
+
failCount,
|
|
575
|
+
fallbackBreakdown
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
var makeReportId = (moduleId, entries) => {
|
|
579
|
+
const digestInput = entries.map((entry) => ({
|
|
580
|
+
selectorId: entry.selectorId,
|
|
581
|
+
lane: entry.lane,
|
|
582
|
+
producer: entry.producer,
|
|
583
|
+
fallbackReason: entry.fallbackReason,
|
|
584
|
+
strictGateVerdict: entry.strictGateVerdict,
|
|
585
|
+
strictGateRule: entry.strictGateRule,
|
|
586
|
+
readsDigest: entry.readsDigest
|
|
587
|
+
}));
|
|
588
|
+
return `rq_report_${fnv1a32(stableStringify({ moduleId, entries: digestInput }))}`;
|
|
589
|
+
};
|
|
590
|
+
var buildSelectorQualityReport = (args) => {
|
|
591
|
+
const gradedWithoutReportId = args.selectors.map(
|
|
592
|
+
(input) => gradeReadQueryAtBuild({
|
|
593
|
+
moduleId: args.moduleId,
|
|
594
|
+
input,
|
|
595
|
+
strictGate: args.strictGate
|
|
596
|
+
})
|
|
597
|
+
);
|
|
598
|
+
const reportId = makeReportId(
|
|
599
|
+
args.moduleId,
|
|
600
|
+
gradedWithoutReportId.map((it) => it.entry)
|
|
601
|
+
);
|
|
602
|
+
const graded = gradedWithoutReportId.map((result) => {
|
|
603
|
+
const quality = result.compiled.quality;
|
|
604
|
+
if (!quality) {
|
|
605
|
+
throw new Error("gradeReadQueryAtBuild must attach quality metadata");
|
|
606
|
+
}
|
|
607
|
+
return {
|
|
608
|
+
...result,
|
|
609
|
+
compiled: {
|
|
610
|
+
...result.compiled,
|
|
611
|
+
quality: {
|
|
612
|
+
...quality,
|
|
613
|
+
reportId
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
});
|
|
618
|
+
const entries = graded.map((it) => it.entry);
|
|
619
|
+
const summary = summarizeEntries(entries);
|
|
620
|
+
const report = {
|
|
621
|
+
reportId,
|
|
622
|
+
moduleId: args.moduleId,
|
|
623
|
+
generatedAt: args.generatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
624
|
+
entries,
|
|
625
|
+
summary
|
|
626
|
+
};
|
|
627
|
+
return {
|
|
628
|
+
report,
|
|
629
|
+
graded
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
var hasBuildGateFailure = (report) => report.summary.failCount > 0;
|
|
366
633
|
|
|
367
634
|
// src/ReadQuery.ts
|
|
368
635
|
var isReadQuery2 = isReadQuery;
|
|
636
|
+
var isReadQueryCompiled2 = isReadQueryCompiled;
|
|
637
|
+
var hasBuildQualityGrade2 = hasBuildQualityGrade;
|
|
638
|
+
var shouldEvaluateStrictGateAtRuntime2 = shouldEvaluateStrictGateAtRuntime;
|
|
639
|
+
var markRuntimeMissingBuildGrade2 = markRuntimeMissingBuildGrade;
|
|
640
|
+
var resolveBuildGradeStrictGateDecision2 = resolveBuildGradeStrictGateDecision;
|
|
369
641
|
var make2 = make;
|
|
370
642
|
var compile2 = compile;
|
|
643
|
+
var evaluateStrictGate2 = evaluateStrictGate;
|
|
644
|
+
var gradeReadQueryAtBuild2 = gradeReadQueryAtBuild;
|
|
645
|
+
var buildSelectorQualityReport2 = buildSelectorQualityReport;
|
|
646
|
+
var hasBuildGateFailure2 = hasBuildGateFailure;
|
|
371
647
|
// Annotate the CommonJS export names for ESM import in node:
|
|
372
648
|
0 && (module.exports = {
|
|
649
|
+
buildSelectorQualityReport,
|
|
373
650
|
compile,
|
|
651
|
+
evaluateStrictGate,
|
|
652
|
+
gradeReadQueryAtBuild,
|
|
653
|
+
hasBuildGateFailure,
|
|
654
|
+
hasBuildQualityGrade,
|
|
374
655
|
isReadQuery,
|
|
375
|
-
|
|
656
|
+
isReadQueryCompiled,
|
|
657
|
+
make,
|
|
658
|
+
markRuntimeMissingBuildGrade,
|
|
659
|
+
resolveBuildGradeStrictGateDecision,
|
|
660
|
+
shouldEvaluateStrictGateAtRuntime
|
|
376
661
|
});
|
|
377
662
|
//# sourceMappingURL=ReadQuery.cjs.map
|