@graphrefly/graphrefly 0.41.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cascading-Cxs1eztH.d.cts → cascading-CH-_VwG9.d.cts} +2 -2
- package/dist/{cascading-BNfxffgc.d.ts → cascading-OgKQZjsa.d.ts} +2 -2
- package/dist/chunk-3XDYJRYU.js +1 -0
- package/dist/{chunk-AI7QC7J6.js → chunk-4YAN45KM.js} +1 -1
- package/dist/chunk-626TESAC.js +3 -0
- package/dist/chunk-6HOSXQKF.js +1 -0
- package/dist/{chunk-G3M3IMEV.js → chunk-CUNIRONA.js} +1 -1
- package/dist/chunk-EBW4V6JN.js +1 -0
- package/dist/chunk-FDQGFWLF.js +1 -0
- package/dist/{chunk-33N4TU3X.js → chunk-FG4TKHMC.js} +1 -1
- package/dist/{chunk-YQRN4CIV.js → chunk-I7IGYPSL.js} +1 -1
- package/dist/chunk-INQD2KRQ.js +1 -0
- package/dist/{chunk-7PQLZMOG.js → chunk-JNWRYDJN.js} +1 -1
- package/dist/{chunk-TT4C7DXW.js → chunk-JQFH2DV6.js} +1 -1
- package/dist/{chunk-M3FQSXEW.js → chunk-K2Q24F5T.js} +1 -1
- package/dist/chunk-KVV66NN2.js +1 -0
- package/dist/chunk-NON4NLIC.js +45 -0
- package/dist/{chunk-CYOSWFT2.js → chunk-O2BLLH7M.js} +3 -3
- package/dist/{chunk-OV5AA6HJ.js → chunk-OCKEEPRJ.js} +1 -1
- package/dist/{chunk-X7QKTXXC.js → chunk-OFZG3TB3.js} +3 -3
- package/dist/chunk-OYJKFY7V.js +1 -0
- package/dist/{chunk-SC27WTSG.js → chunk-P6C4WHZO.js} +1 -1
- package/dist/{chunk-VV62MIG4.js → chunk-PT7W5FCD.js} +1 -1
- package/dist/{chunk-UISPDFJ3.js → chunk-Q4U3A3L5.js} +1 -1
- package/dist/chunk-QE4IGY7I.js +61 -0
- package/dist/{chunk-5VEZLQFN.js → chunk-QYVXF7GW.js} +1 -1
- package/dist/{chunk-ZAJ7J7TO.js → chunk-S3EEIPO7.js} +1 -1
- package/dist/{chunk-GI4Q7PNY.js → chunk-SUWT3ZON.js} +1 -1
- package/dist/{chunk-CGNOWGV6.js → chunk-TPKQW72B.js} +1 -1
- package/dist/{chunk-L77I47VU.js → chunk-V5A7M7RJ.js} +1 -1
- package/dist/chunk-VNC3TMVY.js +1 -0
- package/dist/{chunk-AK5RHMC5.js → chunk-VOPGGIL7.js} +1 -1
- package/dist/chunk-VQ4A6T2A.js +1 -0
- package/dist/{chunk-KNVCCBIU.js → chunk-XG62INFA.js} +1 -1
- package/dist/{chunk-F7VUYPP6.js → chunk-Y4NI3X7O.js} +1 -1
- package/dist/compat/index.cjs +5 -5
- package/dist/compat/index.d.cts +16 -16
- package/dist/compat/index.d.ts +16 -16
- package/dist/compat/index.js +1 -1
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nestjs/index.cjs +5 -5
- package/dist/compat/nestjs/index.d.cts +8 -8
- package/dist/compat/nestjs/index.d.ts +8 -8
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/zustand/index.cjs +3 -3
- package/dist/compat/zustand/index.d.cts +4 -4
- package/dist/compat/zustand/index.d.ts +4 -4
- package/dist/compat/zustand/index.js +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/{decay-C25AyNAj.d.cts → decay-2ZukgQ4o.d.cts} +2 -2
- package/dist/{decay-BnrlbxSv.d.ts → decay-CdEBmDIs.d.ts} +2 -2
- package/dist/extra/browser.d.cts +1 -1
- package/dist/extra/browser.d.ts +1 -1
- package/dist/extra/index.cjs +14 -14
- package/dist/extra/index.d.cts +10 -11
- package/dist/extra/index.d.ts +10 -11
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +2 -2
- package/dist/extra/node.d.cts +1 -1
- package/dist/extra/node.d.ts +1 -1
- package/dist/extra/node.js +1 -1
- package/dist/extra/operators.cjs +1 -1
- package/dist/extra/operators.d.cts +1 -1
- package/dist/extra/operators.d.ts +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.d.cts +3 -3
- package/dist/extra/reactive.d.ts +3 -3
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/render/index.d.cts +3 -3
- package/dist/extra/render/index.d.ts +3 -3
- package/dist/extra/sources.cjs +3 -1
- package/dist/extra/sources.d.cts +1 -1
- package/dist/extra/sources.d.ts +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/extra/storage-browser.d.cts +1 -1
- package/dist/extra/storage-browser.d.ts +1 -1
- package/dist/{fallback-CMZl39L5.d.ts → fallback-CqYVLL6X.d.ts} +1 -1
- package/dist/{fallback-8JYU8tlT.d.cts → fallback-Ctlj2tMY.d.cts} +1 -1
- package/dist/graph/index.cjs +7 -7
- package/dist/graph/index.d.cts +5 -5
- package/dist/graph/index.d.ts +5 -5
- package/dist/graph/index.js +1 -1
- package/dist/{graph-BkIkog4h.d.ts → graph-7VguS7a4.d.ts} +3 -3
- package/dist/{graph-E6likq7w.d.cts → graph-C4SHb3Ly.d.cts} +3 -3
- package/dist/{index-DgJc8Zgc.d.cts → index-0rKFCVFp.d.cts} +90 -5
- package/dist/{index-BAQrjuZF.d.ts → index-B-i4_g3k.d.ts} +2 -2
- package/dist/{index-DpiGqtrs.d.cts → index-B5iz82A3.d.cts} +441 -381
- package/dist/{index-Bd91Nmf4.d.cts → index-BAOD98JD.d.cts} +4 -4
- package/dist/{index-2n8Eai6M.d.ts → index-BG0BN3PB.d.ts} +1 -1
- package/dist/{index-z8WFPVI8.d.cts → index-BJX94aud.d.cts} +1 -1
- package/dist/{index-DhLyOHYZ.d.ts → index-BP8a88zx.d.ts} +11 -4
- package/dist/{index-Cnr1WrlX.d.cts → index-BTQtTb_H.d.cts} +14 -3
- package/dist/{index-DOBLxOti.d.cts → index-BVpm6noz.d.cts} +1 -1
- package/dist/{index-Cczxgd2D.d.ts → index-Bc41FuHp.d.cts} +3 -3
- package/dist/{index-BiHUBEKq.d.cts → index-BdGtBX-X.d.cts} +3 -3
- package/dist/{index-da2V5vPy.d.ts → index-Bf7eqeSF.d.ts} +2 -2
- package/dist/{index-DuRsN9ae.d.cts → index-BiX1Nkgx.d.cts} +383 -18
- package/dist/{index-DGTo1yka.d.cts → index-BoLv_OfD.d.cts} +2 -2
- package/dist/{index-DVAlsmEU.d.cts → index-BojK2fwH.d.cts} +3 -3
- package/dist/{index-B72TQQHd.d.cts → index-BsT7F2et.d.ts} +3 -3
- package/dist/{index-DGD4_fj6.d.cts → index-BwLvVVsy.d.cts} +8 -5
- package/dist/{index-CQtWm7jS.d.ts → index-C59mYFKp.d.ts} +9 -9
- package/dist/{index-C6ZUaos7.d.ts → index-C7O6r5fV.d.ts} +1 -1
- package/dist/{index-CL7oilfm.d.cts → index-C9kSENB4.d.cts} +1 -1
- package/dist/{index-DVDapw2k.d.cts → index-C9pjcz3l.d.cts} +35 -36
- package/dist/{index-CG33HeBW.d.ts → index-CAC_rNzm.d.ts} +8 -5
- package/dist/{index-yLt-aPMp.d.ts → index-CCq87F7t.d.ts} +1 -1
- package/dist/{index-D4uimgee.d.cts → index-CDXc9zKM.d.cts} +1 -1
- package/dist/{index-B2RUoIUz.d.ts → index-CJK1JkYy.d.ts} +1 -1
- package/dist/{index-DktLSZOc.d.cts → index-CLon-IWF.d.cts} +4 -4
- package/dist/{index-DQQCOIt8.d.cts → index-COD1kVoS.d.cts} +10 -5
- package/dist/{index-bXXLSvor.d.ts → index-CPT7C_f1.d.ts} +4 -4
- package/dist/{index-CD2dBMet.d.ts → index-CQG3D1cp.d.ts} +10 -5
- package/dist/{index-BQ1fR4li.d.ts → index-CZQXo5tH.d.ts} +35 -36
- package/dist/{index-A3U3CSve.d.cts → index-CZjOhcBy.d.cts} +2 -2
- package/dist/{index-DYTBbF8T.d.cts → index-ChOyVLKm.d.cts} +1 -1
- package/dist/{index-BJSZxSFX.d.ts → index-CvrqGfNS.d.ts} +1 -1
- package/dist/{index-DhnsQfa3.d.ts → index-D-AEQVLo.d.ts} +441 -381
- package/dist/{index-CAP3UGsq.d.ts → index-D4Y1cMG0.d.ts} +1 -1
- package/dist/{index-40ZT4MHj.d.ts → index-DBHK8O6H.d.ts} +14 -3
- package/dist/{index-3k4Gg6-n.d.ts → index-DBevwHj_.d.ts} +3 -3
- package/dist/{index-Ctb7_2sG.d.ts → index-DIOoAZUX.d.ts} +1 -1
- package/dist/{index-WSlcjhQF.d.ts → index-DSZ3ZCHF.d.ts} +124 -13
- package/dist/{index-DH4fm2Ck.d.ts → index-Dgs8zcj7.d.ts} +2 -2
- package/dist/{index-BaA-xpSw.d.ts → index-Dh_HJ82K.d.ts} +3 -3
- package/dist/{index-CtFNGe-m.d.cts → index-Dhc7a7Xo.d.cts} +2 -2
- package/dist/{index-CoM4rzyB.d.ts → index-Dmqp7KjD.d.ts} +1 -1
- package/dist/{index-B6iTqKtJ.d.ts → index-Dn-wI9g4.d.ts} +2 -2
- package/dist/{index-C-dkXOpB.d.cts → index-Du7u1lSf.d.cts} +11 -4
- package/dist/{index-DfOK_oL5.d.ts → index-DwigL4lY.d.ts} +383 -18
- package/dist/index-DyR7eU5S.d.cts +779 -0
- package/dist/index-JZUPJIJy.d.ts +779 -0
- package/dist/{index-I1cCY3ZI.d.ts → index-K0_0eR8g.d.ts} +90 -5
- package/dist/{index-BilOa6AE.d.cts → index-O16yXPK4.d.cts} +124 -13
- package/dist/{index-CRm0YIzC.d.cts → index-O7fucFrU.d.cts} +9 -9
- package/dist/{index-MxYuWOrf.d.cts → index-RV_yDjOX.d.cts} +3 -3
- package/dist/{index-C5cQ7Gfx.d.ts → index-cm1GNcWE.d.ts} +4 -4
- package/dist/{index-CgnCFhr2.d.cts → index-f5IivDUX.d.cts} +1 -1
- package/dist/{index-PgwvGWa1.d.cts → index-hHcaFlJX.d.cts} +1 -1
- package/dist/{index-tV3AA9hI.d.cts → index-tJoTcnHh.d.cts} +2 -2
- package/dist/{index-eaQuGJnv.d.ts → index-wAzD9yVj.d.ts} +3 -3
- package/dist/{index-D3ayz3hy.d.cts → index-z96luz5O.d.cts} +1 -1
- package/dist/index.cjs +48 -48
- package/dist/index.d.cts +45 -50
- package/dist/index.d.ts +45 -50
- package/dist/index.js +1 -1
- package/dist/{meta-D8OyedKp.d.ts → meta-BgVAsg9j.d.ts} +1 -1
- package/dist/{meta-Ct9nqQS5.d.cts → meta-vE8bxW1E.d.cts} +1 -1
- package/dist/{node-BYInONRr.d.cts → node-ClS5yC-B.d.cts} +1 -1
- package/dist/{node-BYInONRr.d.ts → node-ClS5yC-B.d.ts} +1 -1
- package/dist/{observable-DO8DDEzv.d.ts → observable-BsBzUrcI.d.ts} +1 -1
- package/dist/{observable-DMIlYJV1.d.cts → observable-DLGPPtb8.d.cts} +1 -1
- package/dist/patterns/ai/browser.d.cts +4 -4
- package/dist/patterns/ai/browser.d.ts +4 -4
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +17 -17
- package/dist/patterns/ai/index.d.cts +17 -17
- package/dist/patterns/ai/index.d.ts +17 -17
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.d.cts +4 -4
- package/dist/patterns/ai/node.d.ts +4 -4
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/cqrs/index.cjs +3 -3
- package/dist/patterns/cqrs/index.d.cts +6 -6
- package/dist/patterns/cqrs/index.d.ts +6 -6
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +5 -5
- package/dist/patterns/demo-shell/index.d.cts +5 -5
- package/dist/patterns/demo-shell/index.d.ts +5 -5
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +3 -3
- package/dist/patterns/domain-templates/index.d.cts +4 -4
- package/dist/patterns/domain-templates/index.d.ts +4 -4
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +12 -12
- package/dist/patterns/graphspec/index.d.cts +5 -5
- package/dist/patterns/graphspec/index.d.ts +5 -5
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/harness/index.cjs +10 -8
- package/dist/patterns/harness/index.d.cts +11 -12
- package/dist/patterns/harness/index.d.ts +11 -12
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/inspect/index.cjs +3 -0
- package/dist/patterns/inspect/index.d.cts +9 -0
- package/dist/patterns/inspect/index.d.ts +9 -0
- package/dist/patterns/inspect/index.js +1 -0
- package/dist/patterns/job-queue/index.cjs +3 -3
- package/dist/patterns/job-queue/index.d.cts +6 -6
- package/dist/patterns/job-queue/index.d.ts +6 -6
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/memory/index.cjs +3 -3
- package/dist/patterns/memory/index.d.cts +6 -6
- package/dist/patterns/memory/index.d.ts +6 -6
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +3 -3
- package/dist/patterns/messaging/index.d.cts +5 -5
- package/dist/patterns/messaging/index.d.ts +5 -5
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +3 -3
- package/dist/patterns/orchestration/index.d.cts +7 -7
- package/dist/patterns/orchestration/index.d.ts +7 -7
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/process/index.cjs +1 -1
- package/dist/patterns/process/index.d.cts +7 -7
- package/dist/patterns/process/index.d.ts +7 -7
- package/dist/patterns/process/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +4 -4
- package/dist/patterns/reactive-layout/index.d.cts +5 -5
- package/dist/patterns/reactive-layout/index.d.ts +5 -5
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +3 -3
- package/dist/patterns/reduction/index.d.cts +4 -4
- package/dist/patterns/reduction/index.d.ts +4 -4
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/surface/index.cjs +8 -8
- package/dist/patterns/surface/index.d.cts +6 -6
- package/dist/patterns/surface/index.d.ts +6 -6
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{pipeline-graph-MWrQZXCq.d.cts → pipeline-graph-DPqKDk59.d.cts} +5 -5
- package/dist/{pipeline-graph-CB4La-UW.d.ts → pipeline-graph-loP57TBA.d.ts} +5 -5
- package/dist/{reactive-layout-BtZfUKuL.d.cts → reactive-layout-Dsvob4zD.d.cts} +2 -2
- package/dist/{reactive-layout-KJj4E2dT.d.ts → reactive-layout-v7KPvxoc.d.ts} +2 -2
- package/dist/{reactive-log-_zeEnB9H.d.cts → reactive-log-B00laMSQ.d.cts} +1 -1
- package/dist/{reactive-log-BlAsPLl2.d.ts → reactive-log-BezYsbA_.d.ts} +1 -1
- package/dist/{reactive-map-6P_k3AQM.d.cts → reactive-map-48mnZ-nu.d.cts} +1 -1
- package/dist/{reactive-map-CjXByDV-.d.ts → reactive-map-BVVPdvmi.d.ts} +1 -1
- package/dist/resilience-YIWPK4YC.js +1 -0
- package/dist/{sugar-DzePN5-g.d.cts → sugar-DLwvMr3F.d.ts} +24 -4
- package/dist/{sugar-BhfjgetH.d.ts → sugar-DyVGtczU.d.cts} +24 -4
- package/dist/{topology-tree-mF7Emqzm.d.ts → topology-tree-BNGvuG82.d.ts} +1 -1
- package/dist/{topology-tree-3LBKFsUo.d.cts → topology-tree-BSdfSwMi.d.cts} +1 -1
- package/dist/{types-1Dhoi7HM.d.cts → types-B1jDWVsM.d.cts} +1 -1
- package/dist/{types-39jk0kaV.d.ts → types-DkzUUs0H.d.ts} +1 -1
- package/package.json +11 -51
- package/dist/budget-gate-CmmVtasH.d.ts +0 -115
- package/dist/budget-gate-DiP_nK0n.d.cts +0 -115
- package/dist/chunk-2W553JJC.js +0 -1
- package/dist/chunk-4MKL6Q3K.js +0 -1
- package/dist/chunk-5B3JDG5F.js +0 -1
- package/dist/chunk-5QSXEMXG.js +0 -1
- package/dist/chunk-5TEFC2ZX.js +0 -1
- package/dist/chunk-5TOPVRN6.js +0 -1
- package/dist/chunk-EC2WNSZ7.js +0 -1
- package/dist/chunk-ELAASRBT.js +0 -3
- package/dist/chunk-H5SCWHWP.js +0 -1
- package/dist/chunk-OLIKJUKI.js +0 -1
- package/dist/chunk-POXANAJ6.js +0 -3
- package/dist/chunk-RSMEXK53.js +0 -43
- package/dist/chunk-SGS4OJGS.js +0 -1
- package/dist/chunk-URJ2VFNC.js +0 -1
- package/dist/chunk-VXPLLA4P.js +0 -1
- package/dist/chunk-WZYB3JQS.js +0 -1
- package/dist/chunk-Z6X7B6A4.js +0 -61
- package/dist/index-8s-Qm-gz.d.ts +0 -218
- package/dist/index-BgjS2b8N.d.ts +0 -366
- package/dist/index-BmSQLAZo.d.cts +0 -244
- package/dist/index-CGhMJNHb.d.cts +0 -128
- package/dist/index-CUIkE1l9.d.cts +0 -230
- package/dist/index-Ck35nA-T.d.ts +0 -244
- package/dist/index-CuPUehFa.d.cts +0 -218
- package/dist/index-D1Gc7wV5.d.ts +0 -230
- package/dist/index-N2MAxt7_.d.ts +0 -128
- package/dist/index-t6L2qpHh.d.cts +0 -366
- package/dist/patterns/audit/index.cjs +0 -3
- package/dist/patterns/audit/index.d.cts +0 -8
- package/dist/patterns/audit/index.d.ts +0 -8
- package/dist/patterns/audit/index.js +0 -1
- package/dist/patterns/guarded-execution/index.cjs +0 -3
- package/dist/patterns/guarded-execution/index.d.cts +0 -9
- package/dist/patterns/guarded-execution/index.d.ts +0 -9
- package/dist/patterns/guarded-execution/index.js +0 -1
- package/dist/patterns/lens/index.cjs +0 -3
- package/dist/patterns/lens/index.d.cts +0 -7
- package/dist/patterns/lens/index.d.ts +0 -7
- package/dist/patterns/lens/index.js +0 -1
- package/dist/patterns/refine-loop/index.cjs +0 -5
- package/dist/patterns/refine-loop/index.d.cts +0 -9
- package/dist/patterns/refine-loop/index.d.ts +0 -9
- package/dist/patterns/refine-loop/index.js +0 -1
- package/dist/patterns/resilient-pipeline/index.cjs +0 -3
- package/dist/patterns/resilient-pipeline/index.d.cts +0 -8
- package/dist/patterns/resilient-pipeline/index.d.ts +0 -8
- package/dist/patterns/resilient-pipeline/index.js +0 -1
- package/dist/resilience-JISHQD2F.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as index$2 } from './index-
|
|
2
|
-
import { i as index$3 } from './index-
|
|
3
|
-
import { i as index$4 } from './index-
|
|
4
|
-
import { i as index$5 } from './index-
|
|
5
|
-
import { N as Node } from './node-
|
|
6
|
-
import { i as index$6 } from './index-
|
|
7
|
-
import { i as index$7 } from './index-
|
|
8
|
-
import { i as index$8 } from './index-
|
|
9
|
-
import { i as index$9 } from './index-
|
|
1
|
+
import { i as index$2 } from './index-Dmqp7KjD.js';
|
|
2
|
+
import { i as index$3 } from './index-CCq87F7t.js';
|
|
3
|
+
import { i as index$4 } from './index-cm1GNcWE.js';
|
|
4
|
+
import { i as index$5 } from './index-BG0BN3PB.js';
|
|
5
|
+
import { N as Node } from './node-ClS5yC-B.js';
|
|
6
|
+
import { i as index$6 } from './index-CJK1JkYy.js';
|
|
7
|
+
import { i as index$7 } from './index-DIOoAZUX.js';
|
|
8
|
+
import { i as index$8 } from './index-CvrqGfNS.js';
|
|
9
|
+
import { i as index$9 } from './index-C7O6r5fV.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Options for creating signals.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as NodeGuard, N as Node } from './node-
|
|
2
|
-
import { G as Graph } from './graph-
|
|
3
|
-
import { R as ReactiveLogOptions, a as ReactiveLogBundle } from './reactive-log-
|
|
1
|
+
import { b as NodeGuard, N as Node } from './node-ClS5yC-B.cjs';
|
|
2
|
+
import { G as Graph } from './graph-C4SHb3Ly.cjs';
|
|
3
|
+
import { R as ReactiveLogOptions, a as ReactiveLogBundle } from './reactive-log-B00laMSQ.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Audited-mutation framework (Audit 2 — locked 2026-04-24; promoted to
|
|
@@ -81,11 +81,17 @@ type SuccessMeta = {
|
|
|
81
81
|
seq?: number;
|
|
82
82
|
};
|
|
83
83
|
/** Common opts shared by both tiers. */
|
|
84
|
-
type MutationOpts<TArgs extends readonly unknown[], R extends BaseAuditRecord> = {
|
|
85
|
-
/**
|
|
86
|
-
|
|
84
|
+
type MutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = {
|
|
85
|
+
/**
|
|
86
|
+
* Optional audit log. When omitted, the wrapper still provides freeze /
|
|
87
|
+
* seq-advance / rollback-on-throw (`wrapMutation`) but skips audit-record
|
|
88
|
+
* emission entirely — useful for primitives that want centralized mutation
|
|
89
|
+
* semantics without a dedicated audit log surface (e.g. `Topic.publish`).
|
|
90
|
+
* Pair with `onSuccess` / `onFailure` to emit records.
|
|
91
|
+
*/
|
|
92
|
+
audit?: ReactiveLogBundle<R>;
|
|
87
93
|
/** Build the success record from the action's args + result + meta. */
|
|
88
|
-
onSuccess?: (args: TArgs, result:
|
|
94
|
+
onSuccess?: (args: TArgs, result: TResult, meta: SuccessMeta) => R | undefined;
|
|
89
95
|
/** Build the failure record from the args + error + meta. */
|
|
90
96
|
onFailure?: (args: TArgs, error: unknown, meta: FailureMeta) => R | undefined;
|
|
91
97
|
/** Freeze inputs at entry (default `true`). Pass `false` for hot paths. */
|
|
@@ -98,23 +104,8 @@ type MutationOpts<TArgs extends readonly unknown[], R extends BaseAuditRecord> =
|
|
|
98
104
|
version: string | number;
|
|
99
105
|
};
|
|
100
106
|
};
|
|
101
|
-
type WrapMutationOpts<TArgs extends readonly unknown[], R extends BaseAuditRecord> = MutationOpts<TArgs, R>;
|
|
102
|
-
type LightMutationOpts<TArgs extends readonly unknown[], R extends BaseAuditRecord> = MutationOpts<TArgs, R>;
|
|
103
|
-
/**
|
|
104
|
-
* Advance a cursor node and return the new value. Emits `[DIRTY], [DATA, next]`
|
|
105
|
-
* directly on the cursor — atomic outside a batch, rollback-discardable inside.
|
|
106
|
-
*
|
|
107
|
-
* Resets to `0` if the cursor cache is missing, non-numeric, `NaN`, or
|
|
108
|
-
* non-finite (e.g. corrupted by `restore()` from a malformed snapshot, or
|
|
109
|
-
* by a misbehaving codec). `??` alone would let `NaN` and `""` pass through
|
|
110
|
-
* and silently corrupt audit ordering downstream.
|
|
111
|
-
*
|
|
112
|
-
* Works whether or not the cursor has any subscribers — `down` updates the
|
|
113
|
-
* cache regardless, so primitives that bump before consumers attach (e.g.
|
|
114
|
-
* `JobQueueGraph.enqueue`) still see a coherent sequence.
|
|
115
|
-
*
|
|
116
|
-
* @category internal
|
|
117
|
-
*/
|
|
107
|
+
type WrapMutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = MutationOpts<TArgs, TResult, R>;
|
|
108
|
+
type LightMutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = MutationOpts<TArgs, TResult, R>;
|
|
118
109
|
declare function bumpCursor(seq: Node<number>): number;
|
|
119
110
|
/**
|
|
120
111
|
* Build a record via the supplied builder, stamp `handlerVersion` if present,
|
|
@@ -129,9 +120,9 @@ declare function appendAudit<TArgs extends readonly unknown[], TValue, R extends
|
|
|
129
120
|
version: string | number;
|
|
130
121
|
}): void;
|
|
131
122
|
/**
|
|
132
|
-
* Substrate-tier wrapper: run `action`, append a typed audit record
|
|
133
|
-
* success or failure, advance an optional `seq` cursor. No batch frame —
|
|
134
|
-
* is the hot-path-friendly variant for atomic single-write mutations.
|
|
123
|
+
* Substrate-tier wrapper: run `action`, optionally append a typed audit record
|
|
124
|
+
* on success or failure, advance an optional `seq` cursor. No batch frame —
|
|
125
|
+
* this is the hot-path-friendly variant for atomic single-write mutations.
|
|
135
126
|
*
|
|
136
127
|
* Behavior contract:
|
|
137
128
|
* 1. Freeze args at entry (default `true`; opt out with `freeze: false` for
|
|
@@ -140,9 +131,13 @@ declare function appendAudit<TArgs extends readonly unknown[], TValue, R extends
|
|
|
140
131
|
* 2. Bump `seq` (if provided) BEFORE the action runs. There is no batch frame,
|
|
141
132
|
* so the bump persists even on throw — the failure-audit record stamps the
|
|
142
133
|
* same `seq` so audit consumers see a contiguous sequence.
|
|
143
|
-
* 3. Run `action(args)`. On success, `
|
|
144
|
-
*
|
|
145
|
-
*
|
|
134
|
+
* 3. Run `action(args)`. On success, if `audit` is provided AND `onSuccess`
|
|
135
|
+
* is set, `appendAudit(onSuccess, ...)`.
|
|
136
|
+
* 4. On throw, if `audit` is provided AND `onFailure` is set,
|
|
137
|
+
* `appendAudit(onFailure, ...)` then re-throw. When `audit` is omitted the
|
|
138
|
+
* wrapper still provides freeze + seq + re-throw semantics — useful for
|
|
139
|
+
* primitives that want centralized mutation contracts without an audit log
|
|
140
|
+
* surface (e.g. `Topic.publish`).
|
|
146
141
|
*
|
|
147
142
|
* **Distinguish from {@link wrapMutation}:** `wrapMutation` opens a `batch()`
|
|
148
143
|
* frame (rollback-on-throw, seq advance discarded on rollback) and is the
|
|
@@ -164,7 +159,7 @@ declare function appendAudit<TArgs extends readonly unknown[], TValue, R extends
|
|
|
164
159
|
*
|
|
165
160
|
* @category internal
|
|
166
161
|
*/
|
|
167
|
-
declare function lightMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: LightMutationOpts<TArgs, R>): (...args: TArgs) => TResult;
|
|
162
|
+
declare function lightMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: LightMutationOpts<TArgs, TResult, R>): (...args: TArgs) => TResult;
|
|
168
163
|
/**
|
|
169
164
|
* Orchestration-tier wrapper: like {@link lightMutation} but adds a `batch()`
|
|
170
165
|
* frame around the action so an in-flight throw rolls back partial state.
|
|
@@ -175,10 +170,14 @@ declare function lightMutation<TArgs extends readonly unknown[], TResult, R exte
|
|
|
175
170
|
* 3. Bump `seq` INSIDE the batch so a framework-level rollback discards the
|
|
176
171
|
* cursor advance (cursor stays in sync with audit log). M5.
|
|
177
172
|
* 4. Run `action(args)` and capture result.
|
|
178
|
-
* 5. On success: `
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
173
|
+
* 5. On success: if `audit` is provided AND `onSuccess` is set,
|
|
174
|
+
* `appendAudit(onSuccess, ...)` inside the batch.
|
|
175
|
+
* 6. On throw: catch OUTSIDE the batch so the failure record (if any) emits
|
|
176
|
+
* in a fresh transaction after rollback — it persists. Re-throw so callers
|
|
177
|
+
* see the failure. When `audit` is omitted the wrapper still provides
|
|
178
|
+
* batch + freeze + rollback + re-throw semantics — useful for primitives
|
|
179
|
+
* that want orchestration-tier mutation contracts without an audit log
|
|
180
|
+
* surface.
|
|
182
181
|
*
|
|
183
182
|
* **Distinguish from the file-private `wrapMutation` in
|
|
184
183
|
* `src/extra/reactive-map.ts:540`:** that helper is a transactional wrapper
|
|
@@ -188,7 +187,7 @@ declare function lightMutation<TArgs extends readonly unknown[], TResult, R exte
|
|
|
188
187
|
*
|
|
189
188
|
* @category internal
|
|
190
189
|
*/
|
|
191
|
-
declare function wrapMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: WrapMutationOpts<TArgs, R>): (...args: TArgs) => TResult;
|
|
190
|
+
declare function wrapMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: WrapMutationOpts<TArgs, TResult, R>): (...args: TArgs) => TResult;
|
|
192
191
|
/**
|
|
193
192
|
* Promote a closure counter to a state node mounted under `graph`.
|
|
194
193
|
* Replaces ad-hoc `let _seq = 0` patterns with a node observable in
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { N as Node } from './node-
|
|
2
|
-
import { B as BaseAuditRecord } from './index-
|
|
3
|
-
import { a as ReactiveLogBundle } from './reactive-log-
|
|
1
|
+
import { N as Node } from './node-ClS5yC-B.js';
|
|
2
|
+
import { B as BaseAuditRecord } from './index-CZQXo5tH.js';
|
|
3
|
+
import { a as ReactiveLogBundle } from './reactive-log-BezYsbA_.js';
|
|
4
4
|
import { NodeInput } from './extra/sources.js';
|
|
5
5
|
import { AppendLogStorageTier } from './extra/storage-tiers.js';
|
|
6
|
-
import { G as Graph, a as GraphOptions } from './graph-
|
|
6
|
+
import { G as Graph, a as GraphOptions } from './graph-7VguS7a4.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Job queue patterns (roadmap §4.2).
|
|
@@ -47,8 +47,11 @@ declare class JobQueueGraph<T> extends Graph {
|
|
|
47
47
|
readonly events: ReactiveLogBundle<JobEvent<T>>;
|
|
48
48
|
/** Alias for {@link JobQueueGraph.events} — Audit 2 `.audit` duplication. */
|
|
49
49
|
readonly audit: ReactiveLogBundle<JobEvent<T>>;
|
|
50
|
+
private readonly _enqueueImpl;
|
|
51
|
+
private readonly _ackImpl;
|
|
52
|
+
private readonly _nackImpl;
|
|
53
|
+
private readonly _removeByIdImpl;
|
|
50
54
|
constructor(name: string, opts?: JobQueueOptions);
|
|
51
|
-
private _bumpSeq;
|
|
52
55
|
/**
|
|
53
56
|
* Wire append-log storage tiers (Audit 4). Returns a disposer.
|
|
54
57
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CatchOptions, a as ClassifyResult, D as Decision, b as DecisionAction, G as GateController, c as GateOptions, P as PipelineGraph, S as StepRef, T as TerminalCause, d as decisionKeyOf, p as pipelineGraph } from './pipeline-graph-
|
|
1
|
+
import { C as CatchOptions, a as ClassifyResult, D as Decision, b as DecisionAction, G as GateController, c as GateOptions, P as PipelineGraph, S as StepRef, T as TerminalCause, d as decisionKeyOf, p as pipelineGraph } from './pipeline-graph-DPqKDk59.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Orchestration patterns (roadmap §4.1).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { N as Node } from './node-
|
|
2
|
-
import { B as BaseAuditRecord } from './index-
|
|
3
|
-
import { a as ReactiveLogBundle } from './reactive-log-
|
|
4
|
-
import { G as Graph } from './graph-
|
|
1
|
+
import { N as Node } from './node-ClS5yC-B.cjs';
|
|
2
|
+
import { B as BaseAuditRecord } from './index-C9pjcz3l.cjs';
|
|
3
|
+
import { a as ReactiveLogBundle } from './reactive-log-B00laMSQ.cjs';
|
|
4
|
+
import { G as Graph } from './graph-C4SHb3Ly.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Memory patterns (roadmap §4.3) — public-face Phase-4 primitives audited under
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { N as Node } from './node-
|
|
2
|
-
import { B as BaseAuditRecord } from './index-
|
|
3
|
-
import { a as ReactiveLogBundle } from './reactive-log-
|
|
1
|
+
import { N as Node } from './node-ClS5yC-B.cjs';
|
|
2
|
+
import { B as BaseAuditRecord } from './index-C9pjcz3l.cjs';
|
|
3
|
+
import { a as ReactiveLogBundle } from './reactive-log-B00laMSQ.cjs';
|
|
4
4
|
import { AppendLogStorageTier } from './extra/storage-tiers.cjs';
|
|
5
|
-
import { a as GraphOptions, G as Graph } from './graph-
|
|
5
|
+
import { a as GraphOptions, G as Graph } from './graph-C4SHb3Ly.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* CQRS patterns (roadmap §4.5).
|
|
@@ -351,7 +351,6 @@ declare class CqrsGraph<EM extends CqrsEventMap = Record<string, unknown>> exten
|
|
|
351
351
|
attachEventStorage(tiers: readonly AppendLogStorageTier<CqrsEvent>[]): () => void;
|
|
352
352
|
/** Wire newly-created event stream into all currently-attached tier sets. */
|
|
353
353
|
private _autoWireStreamStorage;
|
|
354
|
-
private _bumpDispatchSeq;
|
|
355
354
|
/**
|
|
356
355
|
* Register a named event stream backed by `reactiveLog`.
|
|
357
356
|
* Guard denies external `write` — only commands append internally.
|
|
@@ -382,6 +381,12 @@ declare class CqrsGraph<EM extends CqrsEventMap = Record<string, unknown>> exten
|
|
|
382
381
|
*
|
|
383
382
|
* If the handler throws, `meta.error` on the command node is set to the
|
|
384
383
|
* error and the exception is re-thrown.
|
|
384
|
+
*
|
|
385
|
+
* **Tier 8 / COMPOSITION-GUIDE §35:** dispatch routes through the shared
|
|
386
|
+
* {@link wrapMutation} framework so freeze / rollback-on-throw / seq-cursor
|
|
387
|
+
* advance / audit-record stamping flow through one centralized helper.
|
|
388
|
+
* Failure records emit OUTSIDE the rolled-back batch (M5 / C4 invariants
|
|
389
|
+
* preserved by the framework).
|
|
385
390
|
*/
|
|
386
391
|
dispatch<T = unknown>(commandName: string, payload: T, opts?: DispatchOptions): void;
|
|
387
392
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { N as Node } from './node-
|
|
2
|
-
import { B as BaseAuditRecord } from './index-
|
|
3
|
-
import { a as ReactiveLogBundle } from './reactive-log-
|
|
4
|
-
import { G as Graph } from './graph-
|
|
1
|
+
import { N as Node } from './node-ClS5yC-B.js';
|
|
2
|
+
import { B as BaseAuditRecord } from './index-CZQXo5tH.js';
|
|
3
|
+
import { a as ReactiveLogBundle } from './reactive-log-BezYsbA_.js';
|
|
4
|
+
import { G as Graph } from './graph-7VguS7a4.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Memory patterns (roadmap §4.3) — public-face Phase-4 primitives audited under
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { N as Node } from './node-
|
|
2
|
-
import { B as BaseAuditRecord } from './index-
|
|
3
|
-
import { a as ReactiveLogBundle } from './reactive-log-
|
|
1
|
+
import { N as Node } from './node-ClS5yC-B.js';
|
|
2
|
+
import { B as BaseAuditRecord } from './index-CZQXo5tH.js';
|
|
3
|
+
import { a as ReactiveLogBundle } from './reactive-log-BezYsbA_.js';
|
|
4
4
|
import { AppendLogStorageTier } from './extra/storage-tiers.js';
|
|
5
|
-
import { a as GraphOptions, G as Graph } from './graph-
|
|
5
|
+
import { a as GraphOptions, G as Graph } from './graph-7VguS7a4.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* CQRS patterns (roadmap §4.5).
|
|
@@ -351,7 +351,6 @@ declare class CqrsGraph<EM extends CqrsEventMap = Record<string, unknown>> exten
|
|
|
351
351
|
attachEventStorage(tiers: readonly AppendLogStorageTier<CqrsEvent>[]): () => void;
|
|
352
352
|
/** Wire newly-created event stream into all currently-attached tier sets. */
|
|
353
353
|
private _autoWireStreamStorage;
|
|
354
|
-
private _bumpDispatchSeq;
|
|
355
354
|
/**
|
|
356
355
|
* Register a named event stream backed by `reactiveLog`.
|
|
357
356
|
* Guard denies external `write` — only commands append internally.
|
|
@@ -382,6 +381,12 @@ declare class CqrsGraph<EM extends CqrsEventMap = Record<string, unknown>> exten
|
|
|
382
381
|
*
|
|
383
382
|
* If the handler throws, `meta.error` on the command node is set to the
|
|
384
383
|
* error and the exception is re-thrown.
|
|
384
|
+
*
|
|
385
|
+
* **Tier 8 / COMPOSITION-GUIDE §35:** dispatch routes through the shared
|
|
386
|
+
* {@link wrapMutation} framework so freeze / rollback-on-throw / seq-cursor
|
|
387
|
+
* advance / audit-record stamping flow through one centralized helper.
|
|
388
|
+
* Failure records emit OUTSIDE the rolled-back batch (M5 / C4 invariants
|
|
389
|
+
* preserved by the framework).
|
|
385
390
|
*/
|
|
386
391
|
dispatch<T = unknown>(commandName: string, payload: T, opts?: DispatchOptions): void;
|
|
387
392
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as NodeGuard, N as Node } from './node-
|
|
2
|
-
import { G as Graph } from './graph-
|
|
3
|
-
import { R as ReactiveLogOptions, a as ReactiveLogBundle } from './reactive-log-
|
|
1
|
+
import { b as NodeGuard, N as Node } from './node-ClS5yC-B.js';
|
|
2
|
+
import { G as Graph } from './graph-7VguS7a4.js';
|
|
3
|
+
import { R as ReactiveLogOptions, a as ReactiveLogBundle } from './reactive-log-BezYsbA_.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Audited-mutation framework (Audit 2 — locked 2026-04-24; promoted to
|
|
@@ -81,11 +81,17 @@ type SuccessMeta = {
|
|
|
81
81
|
seq?: number;
|
|
82
82
|
};
|
|
83
83
|
/** Common opts shared by both tiers. */
|
|
84
|
-
type MutationOpts<TArgs extends readonly unknown[], R extends BaseAuditRecord> = {
|
|
85
|
-
/**
|
|
86
|
-
|
|
84
|
+
type MutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = {
|
|
85
|
+
/**
|
|
86
|
+
* Optional audit log. When omitted, the wrapper still provides freeze /
|
|
87
|
+
* seq-advance / rollback-on-throw (`wrapMutation`) but skips audit-record
|
|
88
|
+
* emission entirely — useful for primitives that want centralized mutation
|
|
89
|
+
* semantics without a dedicated audit log surface (e.g. `Topic.publish`).
|
|
90
|
+
* Pair with `onSuccess` / `onFailure` to emit records.
|
|
91
|
+
*/
|
|
92
|
+
audit?: ReactiveLogBundle<R>;
|
|
87
93
|
/** Build the success record from the action's args + result + meta. */
|
|
88
|
-
onSuccess?: (args: TArgs, result:
|
|
94
|
+
onSuccess?: (args: TArgs, result: TResult, meta: SuccessMeta) => R | undefined;
|
|
89
95
|
/** Build the failure record from the args + error + meta. */
|
|
90
96
|
onFailure?: (args: TArgs, error: unknown, meta: FailureMeta) => R | undefined;
|
|
91
97
|
/** Freeze inputs at entry (default `true`). Pass `false` for hot paths. */
|
|
@@ -98,23 +104,8 @@ type MutationOpts<TArgs extends readonly unknown[], R extends BaseAuditRecord> =
|
|
|
98
104
|
version: string | number;
|
|
99
105
|
};
|
|
100
106
|
};
|
|
101
|
-
type WrapMutationOpts<TArgs extends readonly unknown[], R extends BaseAuditRecord> = MutationOpts<TArgs, R>;
|
|
102
|
-
type LightMutationOpts<TArgs extends readonly unknown[], R extends BaseAuditRecord> = MutationOpts<TArgs, R>;
|
|
103
|
-
/**
|
|
104
|
-
* Advance a cursor node and return the new value. Emits `[DIRTY], [DATA, next]`
|
|
105
|
-
* directly on the cursor — atomic outside a batch, rollback-discardable inside.
|
|
106
|
-
*
|
|
107
|
-
* Resets to `0` if the cursor cache is missing, non-numeric, `NaN`, or
|
|
108
|
-
* non-finite (e.g. corrupted by `restore()` from a malformed snapshot, or
|
|
109
|
-
* by a misbehaving codec). `??` alone would let `NaN` and `""` pass through
|
|
110
|
-
* and silently corrupt audit ordering downstream.
|
|
111
|
-
*
|
|
112
|
-
* Works whether or not the cursor has any subscribers — `down` updates the
|
|
113
|
-
* cache regardless, so primitives that bump before consumers attach (e.g.
|
|
114
|
-
* `JobQueueGraph.enqueue`) still see a coherent sequence.
|
|
115
|
-
*
|
|
116
|
-
* @category internal
|
|
117
|
-
*/
|
|
107
|
+
type WrapMutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = MutationOpts<TArgs, TResult, R>;
|
|
108
|
+
type LightMutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = MutationOpts<TArgs, TResult, R>;
|
|
118
109
|
declare function bumpCursor(seq: Node<number>): number;
|
|
119
110
|
/**
|
|
120
111
|
* Build a record via the supplied builder, stamp `handlerVersion` if present,
|
|
@@ -129,9 +120,9 @@ declare function appendAudit<TArgs extends readonly unknown[], TValue, R extends
|
|
|
129
120
|
version: string | number;
|
|
130
121
|
}): void;
|
|
131
122
|
/**
|
|
132
|
-
* Substrate-tier wrapper: run `action`, append a typed audit record
|
|
133
|
-
* success or failure, advance an optional `seq` cursor. No batch frame —
|
|
134
|
-
* is the hot-path-friendly variant for atomic single-write mutations.
|
|
123
|
+
* Substrate-tier wrapper: run `action`, optionally append a typed audit record
|
|
124
|
+
* on success or failure, advance an optional `seq` cursor. No batch frame —
|
|
125
|
+
* this is the hot-path-friendly variant for atomic single-write mutations.
|
|
135
126
|
*
|
|
136
127
|
* Behavior contract:
|
|
137
128
|
* 1. Freeze args at entry (default `true`; opt out with `freeze: false` for
|
|
@@ -140,9 +131,13 @@ declare function appendAudit<TArgs extends readonly unknown[], TValue, R extends
|
|
|
140
131
|
* 2. Bump `seq` (if provided) BEFORE the action runs. There is no batch frame,
|
|
141
132
|
* so the bump persists even on throw — the failure-audit record stamps the
|
|
142
133
|
* same `seq` so audit consumers see a contiguous sequence.
|
|
143
|
-
* 3. Run `action(args)`. On success, `
|
|
144
|
-
*
|
|
145
|
-
*
|
|
134
|
+
* 3. Run `action(args)`. On success, if `audit` is provided AND `onSuccess`
|
|
135
|
+
* is set, `appendAudit(onSuccess, ...)`.
|
|
136
|
+
* 4. On throw, if `audit` is provided AND `onFailure` is set,
|
|
137
|
+
* `appendAudit(onFailure, ...)` then re-throw. When `audit` is omitted the
|
|
138
|
+
* wrapper still provides freeze + seq + re-throw semantics — useful for
|
|
139
|
+
* primitives that want centralized mutation contracts without an audit log
|
|
140
|
+
* surface (e.g. `Topic.publish`).
|
|
146
141
|
*
|
|
147
142
|
* **Distinguish from {@link wrapMutation}:** `wrapMutation` opens a `batch()`
|
|
148
143
|
* frame (rollback-on-throw, seq advance discarded on rollback) and is the
|
|
@@ -164,7 +159,7 @@ declare function appendAudit<TArgs extends readonly unknown[], TValue, R extends
|
|
|
164
159
|
*
|
|
165
160
|
* @category internal
|
|
166
161
|
*/
|
|
167
|
-
declare function lightMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: LightMutationOpts<TArgs, R>): (...args: TArgs) => TResult;
|
|
162
|
+
declare function lightMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: LightMutationOpts<TArgs, TResult, R>): (...args: TArgs) => TResult;
|
|
168
163
|
/**
|
|
169
164
|
* Orchestration-tier wrapper: like {@link lightMutation} but adds a `batch()`
|
|
170
165
|
* frame around the action so an in-flight throw rolls back partial state.
|
|
@@ -175,10 +170,14 @@ declare function lightMutation<TArgs extends readonly unknown[], TResult, R exte
|
|
|
175
170
|
* 3. Bump `seq` INSIDE the batch so a framework-level rollback discards the
|
|
176
171
|
* cursor advance (cursor stays in sync with audit log). M5.
|
|
177
172
|
* 4. Run `action(args)` and capture result.
|
|
178
|
-
* 5. On success: `
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
173
|
+
* 5. On success: if `audit` is provided AND `onSuccess` is set,
|
|
174
|
+
* `appendAudit(onSuccess, ...)` inside the batch.
|
|
175
|
+
* 6. On throw: catch OUTSIDE the batch so the failure record (if any) emits
|
|
176
|
+
* in a fresh transaction after rollback — it persists. Re-throw so callers
|
|
177
|
+
* see the failure. When `audit` is omitted the wrapper still provides
|
|
178
|
+
* batch + freeze + rollback + re-throw semantics — useful for primitives
|
|
179
|
+
* that want orchestration-tier mutation contracts without an audit log
|
|
180
|
+
* surface.
|
|
182
181
|
*
|
|
183
182
|
* **Distinguish from the file-private `wrapMutation` in
|
|
184
183
|
* `src/extra/reactive-map.ts:540`:** that helper is a transactional wrapper
|
|
@@ -188,7 +187,7 @@ declare function lightMutation<TArgs extends readonly unknown[], TResult, R exte
|
|
|
188
187
|
*
|
|
189
188
|
* @category internal
|
|
190
189
|
*/
|
|
191
|
-
declare function wrapMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: WrapMutationOpts<TArgs, R>): (...args: TArgs) => TResult;
|
|
190
|
+
declare function wrapMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: WrapMutationOpts<TArgs, TResult, R>): (...args: TArgs) => TResult;
|
|
192
191
|
/**
|
|
193
192
|
* Promote a closure counter to a state node mounted under `graph`.
|
|
194
193
|
* Replaces ad-hoc `let _seq = 0` patterns with a node observable in
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as Node, a as NodeOptions } from './node-
|
|
2
|
-
import { a as GraphOptions, G as Graph } from './graph-
|
|
1
|
+
import { N as Node, a as NodeOptions } from './node-ClS5yC-B.cjs';
|
|
2
|
+
import { a as GraphOptions, G as Graph } from './graph-C4SHb3Ly.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Reduction primitives (roadmap §8.1).
|