@graphrefly/graphrefly 0.27.0 → 0.29.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/backoff-HPZMEZNF.js +1 -0
- package/dist/cascading-Bp99ckMJ.d.ts +180 -0
- package/dist/cascading-CcAgRacD.d.cts +180 -0
- package/dist/chunk-22F4K3G7.js +1 -0
- package/dist/chunk-22SVXUPB.js +64 -0
- package/dist/chunk-2GQREQ6C.js +1 -0
- package/dist/chunk-3JXNEPCD.js +2 -0
- package/dist/chunk-4JJCCD5S.js +2 -0
- package/dist/chunk-4OFIQ66T.js +1 -0
- package/dist/chunk-4V4C7K56.js +1 -0
- package/dist/chunk-4VVTGLXJ.js +1 -0
- package/dist/chunk-567NWZ3T.js +1 -0
- package/dist/chunk-5JDE5JHE.js +1 -0
- package/dist/chunk-5QDBSZBV.js +1 -0
- package/dist/chunk-5Z4HDCO6.js +1 -0
- package/dist/chunk-63FFOHLA.js +1 -0
- package/dist/chunk-6QZNQS5B.js +1 -0
- package/dist/chunk-7JDLFI6N.js +1 -0
- package/dist/chunk-7TDOES3L.js +1 -0
- package/dist/chunk-A7IAQQ63.js +1 -0
- package/dist/chunk-AMG5VBHW.js +1 -0
- package/dist/chunk-AUY2YKCO.js +1 -0
- package/dist/chunk-AV3PIDFQ.js +1 -0
- package/dist/chunk-BA5URFYW.js +1 -0
- package/dist/chunk-BKPLTBL5.js +1 -0
- package/dist/chunk-BZP5T4X6.js +1 -0
- package/dist/chunk-CK2E7BTU.js +1 -0
- package/dist/chunk-CSJE2EKV.js +1 -0
- package/dist/chunk-E3AXATVZ.js +9 -0
- package/dist/chunk-ESMPEKEV.js +1 -0
- package/dist/chunk-GJR3P6JG.js +1 -0
- package/dist/chunk-GNCBXARM.js +1 -0
- package/dist/chunk-GPW2V3RE.js +1 -0
- package/dist/chunk-HSIEYSDY.js +1 -0
- package/dist/chunk-I6VIH3VA.js +1 -0
- package/dist/chunk-ISCENNXS.js +1 -0
- package/dist/chunk-JYOUF6UQ.js +1 -0
- package/dist/chunk-KASHOCF5.js +1 -0
- package/dist/chunk-LGSNR4LU.js +5 -0
- package/dist/chunk-LVGBLZM2.js +1 -0
- package/dist/chunk-MGKAO4EK.js +7 -0
- package/dist/chunk-NSG4C6BF.js +23 -0
- package/dist/chunk-OL33ZI6R.js +1 -0
- package/dist/chunk-PCZ35NXD.js +78 -0
- package/dist/chunk-PGMUCUHG.js +43 -0
- package/dist/chunk-QYADASLV.js +1 -0
- package/dist/chunk-RD52SNH2.js +1 -0
- package/dist/chunk-SLMYTGTU.js +1 -0
- package/dist/chunk-TWMEGG45.js +1 -0
- package/dist/chunk-UVJQ35G2.js +1 -0
- package/dist/chunk-VGTCGNRX.js +18 -0
- package/dist/chunk-VIMF6LGM.js +1 -0
- package/dist/chunk-VJLMUKOI.js +1 -0
- package/dist/chunk-VWPRPPKR.js +1 -0
- package/dist/chunk-W4TSQ6RJ.js +1 -0
- package/dist/chunk-WM7H7WTY.js +3 -0
- package/dist/chunk-Y32RJO24.js +1 -0
- package/dist/chunk-Y53B6NS4.js +1 -0
- package/dist/compat/index.cjs +15 -7656
- package/dist/compat/index.d.cts +15 -14
- package/dist/compat/index.d.ts +15 -14
- package/dist/compat/index.js +1 -50
- package/dist/compat/jotai/index.cjs +1 -2048
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/jotai/index.js +1 -9
- package/dist/compat/nanostores/index.cjs +1 -2175
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nanostores/index.js +1 -23
- package/dist/compat/nestjs/index.cjs +15 -6782
- package/dist/compat/nestjs/index.d.cts +7 -6
- package/dist/compat/nestjs/index.d.ts +7 -6
- package/dist/compat/nestjs/index.js +1 -83
- package/dist/compat/react/index.cjs +1 -141
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/react/index.js +1 -12
- package/dist/compat/solid/index.cjs +1 -128
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/solid/index.js +1 -12
- package/dist/compat/svelte/index.cjs +1 -131
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/svelte/index.js +1 -12
- package/dist/compat/vue/index.cjs +1 -146
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/vue/index.js +1 -12
- package/dist/compat/zustand/index.cjs +7 -4931
- package/dist/compat/zustand/index.d.cts +5 -5
- package/dist/compat/zustand/index.d.ts +5 -5
- package/dist/compat/zustand/index.js +1 -12
- package/dist/composite-BL-llbnE.d.ts +69 -0
- package/dist/composite-Dze--DaA.d.cts +69 -0
- package/dist/core/index.cjs +1 -2271
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +1 -110
- package/dist/extra/browser.cjs +1 -0
- package/dist/extra/browser.d.cts +3 -0
- package/dist/extra/browser.d.ts +3 -0
- package/dist/extra/browser.js +1 -0
- package/dist/extra/index.cjs +24 -9971
- package/dist/extra/index.d.cts +13 -6
- package/dist/extra/index.d.ts +13 -6
- package/dist/extra/index.js +1 -381
- package/dist/extra/node.cjs +3 -0
- package/dist/extra/node.d.cts +81 -0
- package/dist/extra/node.d.ts +81 -0
- package/dist/extra/node.js +2 -0
- package/dist/extra/operators.cjs +1 -0
- package/dist/extra/operators.d.cts +910 -0
- package/dist/extra/operators.d.ts +910 -0
- package/dist/extra/operators.js +1 -0
- package/dist/extra/reactive.cjs +1 -0
- package/dist/extra/reactive.d.cts +352 -0
- package/dist/extra/reactive.d.ts +352 -0
- package/dist/extra/reactive.js +1 -0
- package/dist/extra/sources.cjs +1 -2486
- package/dist/extra/sources.d.cts +6 -2
- package/dist/extra/sources.d.ts +6 -2
- package/dist/extra/sources.js +1 -57
- package/dist/extra/storage-browser.cjs +1 -0
- package/dist/extra/storage-browser.d.cts +71 -0
- package/dist/extra/storage-browser.d.ts +71 -0
- package/dist/extra/storage-browser.js +1 -0
- package/dist/extra/storage-core.cjs +1 -0
- package/dist/extra/storage-core.d.cts +98 -0
- package/dist/extra/storage-core.d.ts +98 -0
- package/dist/extra/storage-core.js +1 -0
- package/dist/extra/storage-node.cjs +2 -0
- package/dist/extra/storage-node.d.cts +60 -0
- package/dist/extra/storage-node.d.ts +60 -0
- package/dist/extra/storage-node.js +1 -0
- package/dist/fallback-BaTS7vVY.d.cts +258 -0
- package/dist/fallback-eOm3LNxP.d.ts +258 -0
- package/dist/graph/index.cjs +7 -5030
- package/dist/graph/index.d.cts +6 -5
- package/dist/graph/index.d.ts +6 -5
- package/dist/graph/index.js +1 -50
- package/dist/{graph-DNCrvZSn.d.cts → graph-DgohqXK-.d.cts} +151 -32
- package/dist/{graph-CCwGKLCm.d.ts → graph-Qjg9gWHI.d.ts} +151 -32
- package/dist/{index-BwfLUNw4.d.ts → index-2BVuRCI4.d.ts} +173 -2040
- package/dist/{index-BPVt8kqc.d.ts → index-2NvguqQA.d.ts} +10 -195
- package/dist/index-A65LZhoM.d.ts +186 -0
- package/dist/{index-DlLp-2Xn.d.cts → index-B-8FCEua.d.cts} +10 -195
- package/dist/index-B-gqvYel.d.ts +135 -0
- package/dist/index-B2PRuolf.d.cts +86 -0
- package/dist/index-BJqt9EwW.d.ts +231 -0
- package/dist/{index-BHlKbUwO.d.cts → index-BKjT5DiZ.d.cts} +173 -2040
- package/dist/{index-C0svESO4.d.ts → index-BM8BU4q6.d.ts} +1 -1
- package/dist/{index-VdHQMPy1.d.ts → index-BQaEnxBf.d.ts} +1 -1
- package/dist/index-BSfwiy5B.d.ts +192 -0
- package/dist/index-BTSkeCZs.d.cts +291 -0
- package/dist/index-BUVtw1Ay.d.cts +186 -0
- package/dist/index-BUi57v_p.d.ts +163 -0
- package/dist/{messaging-Gt4LPbyA.d.cts → index-BanNUILp.d.cts} +31 -93
- package/dist/{audit-DRlSzBu9.d.ts → index-BayHDRx6.d.cts} +27 -21
- package/dist/{index-B6D3QNSA.d.ts → index-BiyjsZ0m.d.ts} +148 -20
- package/dist/index-BqZ6vB2A.d.ts +2057 -0
- package/dist/{memory-li6FL5RM.d.ts → index-BuVidq3D.d.cts} +26 -26
- package/dist/index-Byh-xTyp.d.ts +105 -0
- package/dist/index-C08QPDcV.d.cts +321 -0
- package/dist/{demo-shell-BDkOptd6.d.ts → index-C66RJiX8.d.ts} +14 -14
- package/dist/index-C8RfjffH.d.ts +291 -0
- package/dist/index-CA1Cu7Ud.d.ts +873 -0
- package/dist/{index-ByQxazQJ.d.cts → index-CABbltIu.d.cts} +1 -1
- package/dist/{index-VHqptjhu.d.cts → index-CHEBsnYv.d.cts} +1 -1
- package/dist/{index-BuEoe-Qu.d.ts → index-CI0yDnLp.d.ts} +9 -9
- package/dist/{index-B9B7_HEY.d.ts → index-CJ45TW-h.d.ts} +1 -1
- package/dist/{index-CO8uBlUh.d.cts → index-CJZKZoo4.d.cts} +148 -20
- package/dist/{index-wEn0eFe8.d.ts → index-CX2tFJL1.d.ts} +1 -1
- package/dist/{index-BaSM3aYt.d.ts → index-CcWOJ6F0.d.ts} +3 -3
- package/dist/{audit-ClmqGOCx.d.cts → index-CiaVoZGo.d.ts} +27 -21
- package/dist/{index-Dzk2hrlR.d.ts → index-Ct5CWc4E.d.ts} +1 -1
- package/dist/index-D38duMCv.d.cts +357 -0
- package/dist/{index-C8oil6M6.d.ts → index-D5XJ2tSx.d.ts} +30 -6
- package/dist/{index-DO_6JN9Z.d.cts → index-D80do5jX.d.cts} +1 -1
- package/dist/index-D9HKAH_-.d.cts +231 -0
- package/dist/index-DBe_8XW5.d.cts +143 -0
- package/dist/{memory-C6Z2tGpC.d.cts → index-DCeTyFlB.d.ts} +26 -26
- package/dist/index-DDy8eeXS.d.ts +321 -0
- package/dist/index-DJ5oNBc8.d.ts +143 -0
- package/dist/{index-CI3DprxP.d.cts → index-DP0_O3ls.d.cts} +30 -6
- package/dist/{demo-shell-Crid1WdR.d.cts → index-DX8xS-yB.d.cts} +14 -14
- package/dist/index-DiZejfCI.d.cts +2057 -0
- package/dist/index-DknyJ2Fu.d.cts +163 -0
- package/dist/index-DoWMs-Kk.d.cts +135 -0
- package/dist/{messaging-XDoYablx.d.ts → index-DuB5aO4-.d.ts} +31 -93
- package/dist/index-DwjJGKxV.d.ts +357 -0
- package/dist/{index-B6EhDnjH.d.cts → index-H_oxVec5.d.cts} +1 -1
- package/dist/{index-3lsddbbS.d.ts → index-IMAHq-ia.d.ts} +1 -1
- package/dist/{index-B1tloyhO.d.cts → index-U1nir7MX.d.cts} +1 -1
- package/dist/index-Vg7tORgk.d.ts +86 -0
- package/dist/index-dig-r2tQ.d.cts +873 -0
- package/dist/{index-CxFrXH4m.d.ts → index-gsT79Xu9.d.ts} +1 -1
- package/dist/{index-D8wS_PeY.d.cts → index-i99Ka8s7.d.cts} +9 -9
- package/dist/index-iKkyJosF.d.cts +105 -0
- package/dist/{index-Xi3u0HCQ.d.cts → index-jleeotBT.d.cts} +1 -1
- package/dist/{index-DVGiGFGT.d.cts → index-kykKWwV-.d.cts} +3 -3
- package/dist/index-vgcLF5TH.d.cts +192 -0
- package/dist/{index-DYme44FM.d.cts → index-y1RllPn4.d.cts} +1 -1
- package/dist/index.cjs +151 -24142
- package/dist/index.d.cts +69 -2099
- package/dist/index.d.ts +69 -2099
- package/dist/index.js +1 -3868
- package/dist/{meta-CbznRPYJ.d.ts → meta-CX7YsOzp.d.cts} +5 -5
- package/dist/{meta-BxCA7rcr.d.cts → meta-CckhhFRd.d.ts} +5 -5
- package/dist/{node-BmerH3kS.d.cts → node-Dd6wHSib.d.cts} +71 -11
- package/dist/{node-BmerH3kS.d.ts → node-Dd6wHSib.d.ts} +71 -11
- package/dist/{observable-BgGUwcqp.d.ts → observable-BZJgo616.d.ts} +1 -1
- package/dist/{observable-DJt_AxzQ.d.cts → observable-kwzpLvbi.d.cts} +1 -1
- package/dist/patterns/ai/browser.cjs +25 -0
- package/dist/patterns/ai/browser.d.cts +127 -0
- package/dist/patterns/ai/browser.d.ts +127 -0
- package/dist/patterns/ai/browser.js +3 -0
- package/dist/patterns/ai/index.cjs +92 -0
- package/dist/patterns/ai/index.d.cts +17 -0
- package/dist/patterns/ai/index.d.ts +17 -0
- package/dist/patterns/ai/index.js +1 -0
- package/dist/patterns/ai/node.cjs +2 -0
- package/dist/patterns/ai/node.d.cts +58 -0
- package/dist/patterns/ai/node.d.ts +58 -0
- package/dist/patterns/ai/node.js +1 -0
- package/dist/patterns/audit/index.cjs +7 -0
- package/dist/patterns/audit/index.d.cts +6 -0
- package/dist/patterns/audit/index.d.ts +6 -0
- package/dist/patterns/audit/index.js +1 -0
- package/dist/patterns/cqrs/index.cjs +7 -0
- package/dist/patterns/cqrs/index.d.cts +5 -0
- package/dist/patterns/cqrs/index.d.ts +5 -0
- package/dist/patterns/cqrs/index.js +1 -0
- package/dist/patterns/demo-shell/index.cjs +8 -0
- package/dist/patterns/demo-shell/index.d.cts +6 -0
- package/dist/patterns/demo-shell/index.d.ts +6 -0
- package/dist/patterns/demo-shell/index.js +1 -0
- package/dist/patterns/domain-templates/index.cjs +7 -0
- package/dist/patterns/domain-templates/index.d.cts +5 -0
- package/dist/patterns/domain-templates/index.d.ts +5 -0
- package/dist/patterns/domain-templates/index.js +1 -0
- package/dist/patterns/graphspec/index.cjs +84 -0
- package/dist/patterns/graphspec/index.d.cts +7 -0
- package/dist/patterns/graphspec/index.d.ts +7 -0
- package/dist/patterns/graphspec/index.js +1 -0
- package/dist/patterns/guarded-execution/index.cjs +7 -0
- package/dist/patterns/guarded-execution/index.d.cts +7 -0
- package/dist/patterns/guarded-execution/index.d.ts +7 -0
- package/dist/patterns/guarded-execution/index.js +1 -0
- package/dist/patterns/harness/index.cjs +49 -0
- package/dist/patterns/harness/index.d.cts +11 -0
- package/dist/patterns/harness/index.d.ts +11 -0
- package/dist/patterns/harness/index.js +1 -0
- package/dist/patterns/job-queue/index.cjs +7 -0
- package/dist/patterns/job-queue/index.d.cts +5 -0
- package/dist/patterns/job-queue/index.d.ts +5 -0
- package/dist/patterns/job-queue/index.js +1 -0
- package/dist/patterns/lens/index.cjs +7 -0
- package/dist/patterns/lens/index.d.cts +7 -0
- package/dist/patterns/lens/index.d.ts +7 -0
- package/dist/patterns/lens/index.js +1 -0
- package/dist/patterns/memory/index.cjs +7 -0
- package/dist/patterns/memory/index.d.cts +5 -0
- package/dist/patterns/memory/index.d.ts +5 -0
- package/dist/patterns/memory/index.js +1 -0
- package/dist/patterns/messaging/index.cjs +7 -0
- package/dist/patterns/messaging/index.d.cts +5 -0
- package/dist/patterns/messaging/index.d.ts +5 -0
- package/dist/patterns/messaging/index.js +1 -0
- package/dist/patterns/orchestration/index.cjs +7 -0
- package/dist/patterns/orchestration/index.d.cts +6 -0
- package/dist/patterns/orchestration/index.d.ts +6 -0
- package/dist/patterns/orchestration/index.js +1 -0
- package/dist/patterns/reactive-layout/index.cjs +8 -6444
- package/dist/patterns/reactive-layout/index.d.cts +6 -6
- package/dist/patterns/reactive-layout/index.d.ts +6 -6
- package/dist/patterns/reactive-layout/index.js +1 -56
- package/dist/patterns/reduction/index.cjs +7 -0
- package/dist/patterns/reduction/index.d.cts +5 -0
- package/dist/patterns/reduction/index.d.ts +5 -0
- package/dist/patterns/reduction/index.js +1 -0
- package/dist/patterns/refine-loop/index.cjs +9 -0
- package/dist/patterns/refine-loop/index.d.cts +7 -0
- package/dist/patterns/refine-loop/index.d.ts +7 -0
- package/dist/patterns/refine-loop/index.js +1 -0
- package/dist/patterns/resilient-pipeline/index.cjs +1 -0
- package/dist/patterns/resilient-pipeline/index.d.cts +7 -0
- package/dist/patterns/resilient-pipeline/index.d.ts +7 -0
- package/dist/patterns/resilient-pipeline/index.js +1 -0
- package/dist/patterns/surface/index.cjs +15 -0
- package/dist/patterns/surface/index.d.cts +8 -0
- package/dist/patterns/surface/index.d.ts +8 -0
- package/dist/patterns/surface/index.js +1 -0
- package/dist/{reactive-layout-u5Ulnqag.d.ts → reactive-layout-BkBwVvwm.d.ts} +2 -2
- package/dist/{reactive-layout-MQP--J3F.d.cts → reactive-layout-PiFwVaWS.d.cts} +2 -2
- package/dist/reactive-log-1QTyx10a.d.ts +190 -0
- package/dist/reactive-log-BiVoSxke.d.cts +190 -0
- package/dist/{composite-aUCvjZVR.d.ts → reactive-map-CwO_COHy.d.cts} +2 -67
- package/dist/{composite-C7PcQvcs.d.cts → reactive-map-FeuTVAJb.d.ts} +2 -67
- package/dist/resilience-CBfYJW5C.d.ts +493 -0
- package/dist/resilience-XRUF267O.js +1 -0
- package/dist/resilience-uBz4yvYB.d.cts +493 -0
- package/dist/{sugar-CCOxXK1e.d.ts → sugar-CY-MCfZ9.d.ts} +17 -15
- package/dist/{sugar-D02n5JjF.d.cts → sugar-DHttV0LX.d.cts} +17 -15
- package/dist/topology-tree-CVjt2gp7.d.cts +25 -0
- package/dist/topology-tree-one6oSKY.d.ts +25 -0
- package/dist/types-O3GzJY2U.d.cts +401 -0
- package/dist/types-u64Ose53.d.ts +401 -0
- package/package.json +252 -22
- package/dist/ai-CaR_912Q.d.cts +0 -1033
- package/dist/ai-WlRltJV7.d.ts +0 -1033
- package/dist/chunk-3ZWCKRHX.js +0 -117
- package/dist/chunk-3ZWCKRHX.js.map +0 -1
- package/dist/chunk-7TAQJHQV.js +0 -103
- package/dist/chunk-7TAQJHQV.js.map +0 -1
- package/dist/chunk-APFNLIRG.js +0 -62
- package/dist/chunk-APFNLIRG.js.map +0 -1
- package/dist/chunk-AT5LKYNL.js +0 -395
- package/dist/chunk-AT5LKYNL.js.map +0 -1
- package/dist/chunk-BQ6RQQFF.js +0 -5087
- package/dist/chunk-BQ6RQQFF.js.map +0 -1
- package/dist/chunk-BVZYTZ5H.js +0 -599
- package/dist/chunk-BVZYTZ5H.js.map +0 -1
- package/dist/chunk-DST5DKZS.js +0 -1371
- package/dist/chunk-DST5DKZS.js.map +0 -1
- package/dist/chunk-GTE6PWRZ.js +0 -866
- package/dist/chunk-GTE6PWRZ.js.map +0 -1
- package/dist/chunk-HXZEYDUR.js +0 -94
- package/dist/chunk-HXZEYDUR.js.map +0 -1
- package/dist/chunk-J22W6HV3.js +0 -107
- package/dist/chunk-J22W6HV3.js.map +0 -1
- package/dist/chunk-J2VBW3DZ.js +0 -302
- package/dist/chunk-J2VBW3DZ.js.map +0 -1
- package/dist/chunk-JSCT3CR4.js +0 -38
- package/dist/chunk-JSCT3CR4.js.map +0 -1
- package/dist/chunk-JWBCY4NC.js +0 -330
- package/dist/chunk-JWBCY4NC.js.map +0 -1
- package/dist/chunk-K2AUJHVP.js +0 -2251
- package/dist/chunk-K2AUJHVP.js.map +0 -1
- package/dist/chunk-MJ2NKQQL.js +0 -119
- package/dist/chunk-MJ2NKQQL.js.map +0 -1
- package/dist/chunk-N6UR7YVY.js +0 -198
- package/dist/chunk-N6UR7YVY.js.map +0 -1
- package/dist/chunk-NC6S43JJ.js +0 -456
- package/dist/chunk-NC6S43JJ.js.map +0 -1
- package/dist/chunk-OFVJBJXR.js +0 -98
- package/dist/chunk-OFVJBJXR.js.map +0 -1
- package/dist/chunk-OHISZPOJ.js +0 -97
- package/dist/chunk-OHISZPOJ.js.map +0 -1
- package/dist/chunk-OU5CQKNW.js +0 -102
- package/dist/chunk-OU5CQKNW.js.map +0 -1
- package/dist/chunk-PF7GRZMW.js +0 -2712
- package/dist/chunk-PF7GRZMW.js.map +0 -1
- package/dist/chunk-PHOUUNK7.js +0 -2291
- package/dist/chunk-PHOUUNK7.js.map +0 -1
- package/dist/chunk-RNHBMHKA.js +0 -1665
- package/dist/chunk-RNHBMHKA.js.map +0 -1
- package/dist/chunk-SX52TAR4.js +0 -110
- package/dist/chunk-SX52TAR4.js.map +0 -1
- package/dist/chunk-VYPWMZ6H.js +0 -98
- package/dist/chunk-VYPWMZ6H.js.map +0 -1
- package/dist/chunk-WBZOVTYK.js +0 -171
- package/dist/chunk-WBZOVTYK.js.map +0 -1
- package/dist/chunk-WKNUIZOY.js +0 -354
- package/dist/chunk-WKNUIZOY.js.map +0 -1
- package/dist/chunk-X3VMZYBT.js +0 -713
- package/dist/chunk-X3VMZYBT.js.map +0 -1
- package/dist/chunk-X5R3GL6H.js +0 -525
- package/dist/chunk-X5R3GL6H.js.map +0 -1
- package/dist/chunk-XGPU467M.js +0 -136
- package/dist/chunk-XGPU467M.js.map +0 -1
- package/dist/compat/index.cjs.map +0 -1
- package/dist/compat/index.js.map +0 -1
- package/dist/compat/jotai/index.cjs.map +0 -1
- package/dist/compat/jotai/index.js.map +0 -1
- package/dist/compat/nanostores/index.cjs.map +0 -1
- package/dist/compat/nanostores/index.js.map +0 -1
- package/dist/compat/nestjs/index.cjs.map +0 -1
- package/dist/compat/nestjs/index.js.map +0 -1
- package/dist/compat/react/index.cjs.map +0 -1
- package/dist/compat/react/index.js.map +0 -1
- package/dist/compat/solid/index.cjs.map +0 -1
- package/dist/compat/solid/index.js.map +0 -1
- package/dist/compat/svelte/index.cjs.map +0 -1
- package/dist/compat/svelte/index.js.map +0 -1
- package/dist/compat/vue/index.cjs.map +0 -1
- package/dist/compat/vue/index.js.map +0 -1
- package/dist/compat/zustand/index.cjs.map +0 -1
- package/dist/compat/zustand/index.js.map +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/extra/index.cjs.map +0 -1
- package/dist/extra/index.js.map +0 -1
- package/dist/extra/sources.cjs.map +0 -1
- package/dist/extra/sources.js.map +0 -1
- package/dist/graph/index.cjs.map +0 -1
- package/dist/graph/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/patterns/ai.cjs +0 -7930
- package/dist/patterns/ai.cjs.map +0 -1
- package/dist/patterns/ai.d.cts +0 -10
- package/dist/patterns/ai.d.ts +0 -10
- package/dist/patterns/ai.js +0 -71
- package/dist/patterns/ai.js.map +0 -1
- package/dist/patterns/audit.cjs +0 -5805
- package/dist/patterns/audit.cjs.map +0 -1
- package/dist/patterns/audit.d.cts +0 -6
- package/dist/patterns/audit.d.ts +0 -6
- package/dist/patterns/audit.js +0 -29
- package/dist/patterns/audit.js.map +0 -1
- package/dist/patterns/demo-shell.cjs +0 -5604
- package/dist/patterns/demo-shell.cjs.map +0 -1
- package/dist/patterns/demo-shell.d.cts +0 -6
- package/dist/patterns/demo-shell.d.ts +0 -6
- package/dist/patterns/demo-shell.js +0 -15
- package/dist/patterns/demo-shell.js.map +0 -1
- package/dist/patterns/memory.cjs +0 -5283
- package/dist/patterns/memory.cjs.map +0 -1
- package/dist/patterns/memory.d.cts +0 -5
- package/dist/patterns/memory.d.ts +0 -5
- package/dist/patterns/memory.js +0 -20
- package/dist/patterns/memory.js.map +0 -1
- package/dist/patterns/reactive-layout/index.cjs.map +0 -1
- package/dist/patterns/reactive-layout/index.js.map +0 -1
- package/dist/storage-CMjUUuxn.d.ts +0 -190
- package/dist/storage-DdWlZo6U.d.cts +0 -190
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { T as ToObservableOptions, t as toObservable } from './observable-
|
|
1
|
+
import { T as ToObservableOptions, t as toObservable } from './observable-kwzpLvbi.cjs';
|
|
2
2
|
import { OnModuleInit, OnModuleDestroy, ExecutionContext, CanActivate, DynamicModule } from '@nestjs/common';
|
|
3
3
|
import { ModuleRef } from '@nestjs/core';
|
|
4
|
-
import {
|
|
5
|
-
import { A as Actor
|
|
4
|
+
import { G as Graph, d as GraphPersistSnapshot } from './graph-DgohqXK-.cjs';
|
|
5
|
+
import { A as Actor } from './node-Dd6wHSib.cjs';
|
|
6
|
+
import { C as CqrsOptions, a as CqrsGraph, E as EventStoreAdapter } from './index-vgcLF5TH.cjs';
|
|
6
7
|
|
|
7
8
|
/** Class constructor key for decorator registries and Nest `ModuleRef.get()`. */
|
|
8
9
|
type DecoratorHostConstructor = abstract new (...args: unknown[]) => unknown;
|
|
@@ -192,7 +193,7 @@ declare function GraphCron(expr: string): (value: DecoratorBoundMethod, context:
|
|
|
192
193
|
* }
|
|
193
194
|
* ```
|
|
194
195
|
*/
|
|
195
|
-
declare function CommandHandler
|
|
196
|
+
declare function CommandHandler(cqrsName: string, commandName: string): (value: DecoratorBoundMethod, context: ClassMethodDecoratorContext) => void;
|
|
196
197
|
/**
|
|
197
198
|
* Subscribe a method to CQRS event stream DATA — replaces `@EventsHandler()` from `@nestjs/cqrs`.
|
|
198
199
|
*
|
|
@@ -256,7 +257,7 @@ declare function QueryHandler(cqrsName: string, projectionName: string): (value:
|
|
|
256
257
|
* }
|
|
257
258
|
* ```
|
|
258
259
|
*/
|
|
259
|
-
declare function SagaHandler
|
|
260
|
+
declare function SagaHandler(cqrsName: string, sagaName: string, eventNames: readonly string[]): (value: DecoratorBoundMethod, context: ClassMethodDecoratorContext) => void;
|
|
260
261
|
|
|
261
262
|
declare class GraphReflyEventExplorer implements OnModuleInit, OnModuleDestroy {
|
|
262
263
|
private readonly graph;
|
|
@@ -579,194 +580,6 @@ declare class GraphReflyGuardImpl implements CanActivate {
|
|
|
579
580
|
*/
|
|
580
581
|
declare function GraphReflyGuard(extractor?: ActorExtractor): GraphReflyGuardImpl;
|
|
581
582
|
|
|
582
|
-
/**
|
|
583
|
-
* CQRS patterns (roadmap §4.5).
|
|
584
|
-
*
|
|
585
|
-
* Composition layer over reactiveLog (3.2), pipeline/sagas (4.1), event bus (4.2),
|
|
586
|
-
* projections (4.3). Guards (1.5) enforce command/query boundary.
|
|
587
|
-
*
|
|
588
|
-
* - `cqrs(name, opts?)` → `CqrsGraph` — top-level factory
|
|
589
|
-
* - `CqrsGraph.command(name, handler)` — write-only node; guard rejects `observe`
|
|
590
|
-
* - `CqrsGraph.event(name)` — backed by `reactiveLog`; append-only
|
|
591
|
-
* - `CqrsGraph.projection(name, events, reducer, initial)` — read-only derived; guard rejects `write`
|
|
592
|
-
* - `CqrsGraph.saga(name, events, handler)` — event-driven side effects
|
|
593
|
-
*/
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* Immutable envelope for events emitted by command handlers.
|
|
597
|
-
*
|
|
598
|
-
* `seq` is a per-graph monotonic counter that provides stable ordering when
|
|
599
|
-
* multiple events share the same `timestampNs` (same wall-clock tick).
|
|
600
|
-
*/
|
|
601
|
-
type CqrsEvent<T = unknown> = {
|
|
602
|
-
type: string;
|
|
603
|
-
payload: T;
|
|
604
|
-
/** Wall-clock nanoseconds (via `wallClockNs()`). */
|
|
605
|
-
timestampNs: number;
|
|
606
|
-
/** Monotonic sequence within this CqrsGraph instance. */
|
|
607
|
-
seq: number;
|
|
608
|
-
/** V0 identity of the event log node at append time (§6.0b). */
|
|
609
|
-
v0?: {
|
|
610
|
-
id: string;
|
|
611
|
-
version: number;
|
|
612
|
-
};
|
|
613
|
-
};
|
|
614
|
-
/**
|
|
615
|
-
* Opaque replay cursor returned by `loadEvents`. Pass it back to
|
|
616
|
-
* `loadEvents` to resume from the last position.
|
|
617
|
-
*/
|
|
618
|
-
type EventStoreCursor = {
|
|
619
|
-
readonly __brand?: "EventStoreCursor";
|
|
620
|
-
[key: string]: unknown;
|
|
621
|
-
};
|
|
622
|
-
/**
|
|
623
|
-
* Result of `loadEvents` — events plus an opaque cursor for resumption.
|
|
624
|
-
*/
|
|
625
|
-
type LoadEventsResult = {
|
|
626
|
-
events: CqrsEvent[];
|
|
627
|
-
cursor: EventStoreCursor | undefined;
|
|
628
|
-
};
|
|
629
|
-
/**
|
|
630
|
-
* Pluggable persistence for CQRS events.
|
|
631
|
-
*
|
|
632
|
-
* **`persist`:** Must be synchronous. Called from the dispatch path inside
|
|
633
|
-
* `batch()`. Adapters that need async I/O should buffer internally and
|
|
634
|
-
* expose a `flush()` method for explicit drain.
|
|
635
|
-
*/
|
|
636
|
-
interface EventStoreAdapter {
|
|
637
|
-
persist(event: CqrsEvent): void;
|
|
638
|
-
/**
|
|
639
|
-
* Load persisted events. When `cursor` is provided, returns only events
|
|
640
|
-
* after that position. The returned `cursor` should be passed to the next
|
|
641
|
-
* `loadEvents` call for incremental replay.
|
|
642
|
-
*/
|
|
643
|
-
loadEvents(eventType: string, cursor?: EventStoreCursor): LoadEventsResult | Promise<LoadEventsResult>;
|
|
644
|
-
/** Optional explicit flush for adapters with async I/O. */
|
|
645
|
-
flush?(): Promise<void>;
|
|
646
|
-
}
|
|
647
|
-
declare class MemoryEventStore implements EventStoreAdapter {
|
|
648
|
-
private readonly _store;
|
|
649
|
-
persist(event: CqrsEvent): void;
|
|
650
|
-
loadEvents(eventType: string, cursor?: EventStoreCursor): LoadEventsResult;
|
|
651
|
-
clear(): void;
|
|
652
|
-
}
|
|
653
|
-
type CommandActions = {
|
|
654
|
-
/** Append an event to a named event log (bypasses event guard). */
|
|
655
|
-
emit: (eventName: string, payload: unknown) => void;
|
|
656
|
-
};
|
|
657
|
-
/**
|
|
658
|
-
* Command handler receives the dispatch payload and actions to emit events.
|
|
659
|
-
*
|
|
660
|
-
* **Purity:** Handlers should not mutate the payload. Event emission via
|
|
661
|
-
* `actions.emit()` is the only sanctioned side effect.
|
|
662
|
-
*/
|
|
663
|
-
type CommandHandler<T = unknown> = (payload: T, actions: CommandActions) => void;
|
|
664
|
-
/**
|
|
665
|
-
* Projection reducer folds events into a read model.
|
|
666
|
-
*
|
|
667
|
-
* **Purity contract:** Reducers MUST be pure — return a new state value
|
|
668
|
-
* without mutating `state` or any event. The `state` parameter is the
|
|
669
|
-
* original `initial` value on every invocation (full event-sourcing replay),
|
|
670
|
-
* so mutation would corrupt future recomputations.
|
|
671
|
-
*/
|
|
672
|
-
type ProjectionReducer<TState = unknown, TEvent = unknown> = (state: TState, events: readonly CqrsEvent<TEvent>[]) => TState;
|
|
673
|
-
type SagaHandler<T = unknown> = (event: CqrsEvent<T>) => void;
|
|
674
|
-
type CqrsOptions = {
|
|
675
|
-
graph?: GraphOptions;
|
|
676
|
-
};
|
|
677
|
-
declare class CqrsGraph extends Graph {
|
|
678
|
-
private readonly _eventLogs;
|
|
679
|
-
private readonly _commandHandlers;
|
|
680
|
-
private readonly _projections;
|
|
681
|
-
private readonly _sagas;
|
|
682
|
-
private readonly _keepaliveDisposers;
|
|
683
|
-
private _eventStore;
|
|
684
|
-
private _seq;
|
|
685
|
-
constructor(name: string, opts?: CqrsOptions);
|
|
686
|
-
destroy(): void;
|
|
687
|
-
/**
|
|
688
|
-
* Register a named event stream backed by `reactiveLog`.
|
|
689
|
-
* Guard denies external `write` — only commands append internally.
|
|
690
|
-
*/
|
|
691
|
-
event(name: string): Node<readonly CqrsEvent[]>;
|
|
692
|
-
/** Internal: append to an event log, auto-registering if needed. */
|
|
693
|
-
private _appendEvent;
|
|
694
|
-
/**
|
|
695
|
-
* Register a command with its handler. Guard denies `observe` (write-only).
|
|
696
|
-
* Use `dispatch(name, payload)` to execute.
|
|
697
|
-
*
|
|
698
|
-
* The command node carries dynamic `meta.error` — a reactive companion
|
|
699
|
-
* that holds the last handler error (or `null` on success).
|
|
700
|
-
*/
|
|
701
|
-
command<T = unknown>(name: string, handler: CommandHandler<T>): Node<T>;
|
|
702
|
-
/**
|
|
703
|
-
* Execute a registered command. Wraps the entire dispatch in `batch()` so
|
|
704
|
-
* the command node DATA and all emitted events settle atomically.
|
|
705
|
-
*
|
|
706
|
-
* If the handler throws, `meta.error` on the command node is set to the
|
|
707
|
-
* error and the exception is re-thrown.
|
|
708
|
-
*/
|
|
709
|
-
dispatch<T = unknown>(commandName: string, payload: T): void;
|
|
710
|
-
/**
|
|
711
|
-
* Register a read-only projection derived from event streams.
|
|
712
|
-
* Guard denies `write` — value is computed from events only.
|
|
713
|
-
*
|
|
714
|
-
* **Purity contract:** The `reducer` must be a pure function — it receives
|
|
715
|
-
* the original `initial` on every invocation (full event-sourcing replay).
|
|
716
|
-
* Never mutate `initial`; always return a new value.
|
|
717
|
-
*/
|
|
718
|
-
projection<TState>(name: string, eventNames: readonly string[], reducer: ProjectionReducer<TState>, initial: TState): Node<TState>;
|
|
719
|
-
/**
|
|
720
|
-
* Register an event-driven side effect. Runs handler for each **new** event
|
|
721
|
-
* from the specified streams (tracks last-processed entry count per stream).
|
|
722
|
-
*
|
|
723
|
-
* The saga node carries dynamic `meta.error` — a reactive companion that
|
|
724
|
-
* holds the last handler error (or `null` on success). Handler errors do
|
|
725
|
-
* not propagate out of the saga run (the event cursor still advances so
|
|
726
|
-
* the same entry is not delivered twice).
|
|
727
|
-
*/
|
|
728
|
-
saga<T = unknown>(name: string, eventNames: readonly string[], handler: SagaHandler<T>): Node<unknown>;
|
|
729
|
-
useEventStore(adapter: EventStoreAdapter): void;
|
|
730
|
-
/**
|
|
731
|
-
* Replay persisted events through a reducer to rebuild a read model.
|
|
732
|
-
* Requires an event store adapter wired via `useEventStore()`.
|
|
733
|
-
*/
|
|
734
|
-
rebuildProjection<TState>(eventNames: readonly string[], reducer: ProjectionReducer<TState>, initial: TState): Promise<TState>;
|
|
735
|
-
}
|
|
736
|
-
/**
|
|
737
|
-
* Create a CQRS graph container.
|
|
738
|
-
*
|
|
739
|
-
* @example
|
|
740
|
-
* ```ts
|
|
741
|
-
* const app = cqrs("orders");
|
|
742
|
-
* app.event("orderPlaced");
|
|
743
|
-
* app.command("placeOrder", (payload, { emit }) => {
|
|
744
|
-
* emit("orderPlaced", { orderId: payload.id, amount: payload.amount });
|
|
745
|
-
* });
|
|
746
|
-
* app.projection("orderCount", ["orderPlaced"], (_s, events) => events.length, 0);
|
|
747
|
-
* app.dispatch("placeOrder", { id: "1", amount: 100 });
|
|
748
|
-
* ```
|
|
749
|
-
*/
|
|
750
|
-
declare function cqrs(name: string, opts?: CqrsOptions): CqrsGraph;
|
|
751
|
-
|
|
752
|
-
type cqrs$1_CommandActions = CommandActions;
|
|
753
|
-
type cqrs$1_CommandHandler<T = unknown> = CommandHandler<T>;
|
|
754
|
-
type cqrs$1_CqrsEvent<T = unknown> = CqrsEvent<T>;
|
|
755
|
-
type cqrs$1_CqrsGraph = CqrsGraph;
|
|
756
|
-
declare const cqrs$1_CqrsGraph: typeof CqrsGraph;
|
|
757
|
-
type cqrs$1_CqrsOptions = CqrsOptions;
|
|
758
|
-
type cqrs$1_EventStoreAdapter = EventStoreAdapter;
|
|
759
|
-
type cqrs$1_EventStoreCursor = EventStoreCursor;
|
|
760
|
-
type cqrs$1_LoadEventsResult = LoadEventsResult;
|
|
761
|
-
type cqrs$1_MemoryEventStore = MemoryEventStore;
|
|
762
|
-
declare const cqrs$1_MemoryEventStore: typeof MemoryEventStore;
|
|
763
|
-
type cqrs$1_ProjectionReducer<TState = unknown, TEvent = unknown> = ProjectionReducer<TState, TEvent>;
|
|
764
|
-
type cqrs$1_SagaHandler<T = unknown> = SagaHandler<T>;
|
|
765
|
-
declare const cqrs$1_cqrs: typeof cqrs;
|
|
766
|
-
declare namespace cqrs$1 {
|
|
767
|
-
export { type cqrs$1_CommandActions as CommandActions, type cqrs$1_CommandHandler as CommandHandler, type cqrs$1_CqrsEvent as CqrsEvent, cqrs$1_CqrsGraph as CqrsGraph, type cqrs$1_CqrsOptions as CqrsOptions, type cqrs$1_EventStoreAdapter as EventStoreAdapter, type cqrs$1_EventStoreCursor as EventStoreCursor, type cqrs$1_LoadEventsResult as LoadEventsResult, cqrs$1_MemoryEventStore as MemoryEventStore, type cqrs$1_ProjectionReducer as ProjectionReducer, type cqrs$1_SagaHandler as SagaHandler, cqrs$1_cqrs as cqrs };
|
|
768
|
-
}
|
|
769
|
-
|
|
770
583
|
interface GraphReflyRootOptions {
|
|
771
584
|
/** Root graph name (default: `"root"`). */
|
|
772
585
|
name?: string;
|
|
@@ -884,6 +697,7 @@ type index_ActorExtractor = ActorExtractor;
|
|
|
884
697
|
declare const index_COMMAND_HANDLERS: typeof COMMAND_HANDLERS;
|
|
885
698
|
declare const index_CQRS_EVENT_HANDLERS: typeof CQRS_EVENT_HANDLERS;
|
|
886
699
|
declare const index_CRON_HANDLERS: typeof CRON_HANDLERS;
|
|
700
|
+
declare const index_CommandHandler: typeof CommandHandler;
|
|
887
701
|
type index_CommandHandlerMeta = CommandHandlerMeta;
|
|
888
702
|
declare const index_EVENT_HANDLERS: typeof EVENT_HANDLERS;
|
|
889
703
|
declare const index_EventHandler: typeof EventHandler;
|
|
@@ -921,6 +735,7 @@ declare const index_QUERY_HANDLERS: typeof QUERY_HANDLERS;
|
|
|
921
735
|
declare const index_QueryHandler: typeof QueryHandler;
|
|
922
736
|
type index_QueryHandlerMeta = QueryHandlerMeta;
|
|
923
737
|
declare const index_SAGA_HANDLERS: typeof SAGA_HANDLERS;
|
|
738
|
+
declare const index_SagaHandler: typeof SagaHandler;
|
|
924
739
|
type index_SagaHandlerMeta = SagaHandlerMeta;
|
|
925
740
|
declare const index_ToObservableOptions: typeof ToObservableOptions;
|
|
926
741
|
declare const index_fromHeader: typeof fromHeader;
|
|
@@ -932,7 +747,7 @@ declare const index_observeSSE: typeof observeSSE;
|
|
|
932
747
|
declare const index_observeSubscription: typeof observeSubscription;
|
|
933
748
|
declare const index_toObservable: typeof toObservable;
|
|
934
749
|
declare namespace index {
|
|
935
|
-
export { index_ACTOR_KEY as ACTOR_KEY, type index_ActorExtractor as ActorExtractor, index_COMMAND_HANDLERS as COMMAND_HANDLERS, index_CQRS_EVENT_HANDLERS as CQRS_EVENT_HANDLERS, index_CRON_HANDLERS as CRON_HANDLERS,
|
|
750
|
+
export { index_ACTOR_KEY as ACTOR_KEY, type index_ActorExtractor as ActorExtractor, index_COMMAND_HANDLERS as COMMAND_HANDLERS, index_CQRS_EVENT_HANDLERS as CQRS_EVENT_HANDLERS, index_CRON_HANDLERS as CRON_HANDLERS, index_CommandHandler as CommandHandler, type index_CommandHandlerMeta as CommandHandlerMeta, index_EVENT_HANDLERS as EVENT_HANDLERS, index_EventHandler as EventHandler, type index_EventHandlerMeta as EventHandlerMeta, index_GRAPHREFLY_REQUEST_GRAPH as GRAPHREFLY_REQUEST_GRAPH, index_GRAPHREFLY_ROOT_GRAPH as GRAPHREFLY_ROOT_GRAPH, index_GraphCron as GraphCron, type index_GraphCronMeta as GraphCronMeta, index_GraphInterval as GraphInterval, type index_GraphIntervalMeta as GraphIntervalMeta, type index_GraphReflyCqrsOptions as GraphReflyCqrsOptions, index_GraphReflyEventExplorer as GraphReflyEventExplorer, type index_GraphReflyFeatureOptions as GraphReflyFeatureOptions, index_GraphReflyGuard as GraphReflyGuard, index_GraphReflyGuardImpl as GraphReflyGuardImpl, index_GraphReflyModule as GraphReflyModule, type index_GraphReflyRootOptions as GraphReflyRootOptions, index_INTERVAL_HANDLERS as INTERVAL_HANDLERS, index_InjectCqrsGraph as InjectCqrsGraph, index_InjectGraph as InjectGraph, index_InjectNode as InjectNode, index_ObserveGateway as ObserveGateway, type index_ObserveGatewayOptions as ObserveGatewayOptions, type index_ObserveSSEOptions as ObserveSSEOptions, type index_ObserveSubscriptionOptions as ObserveSubscriptionOptions, type index_ObserveWsCommand as ObserveWsCommand, type index_ObserveWsMessage as ObserveWsMessage, index_OnGraphEvent as OnGraphEvent, type index_OnGraphEventMeta as OnGraphEventMeta, index_QUERY_HANDLERS as QUERY_HANDLERS, index_QueryHandler as QueryHandler, type index_QueryHandlerMeta as QueryHandlerMeta, index_SAGA_HANDLERS as SAGA_HANDLERS, index_SagaHandler as SagaHandler, type index_SagaHandlerMeta as SagaHandlerMeta, index_ToObservableOptions as ToObservableOptions, index_fromHeader as fromHeader, index_fromJwtPayload as fromJwtPayload, index_getActor as getActor, index_getGraphToken as getGraphToken, index_getNodeToken as getNodeToken, index_observeSSE as observeSSE, index_observeSubscription as observeSubscription, index_toObservable as toObservable };
|
|
936
751
|
}
|
|
937
752
|
|
|
938
|
-
export { ACTOR_KEY as A, type
|
|
753
|
+
export { ACTOR_KEY as A, type ObserveWsCommand as B, COMMAND_HANDLERS as C, type ObserveWsMessage as D, EVENT_HANDLERS as E, OnGraphEvent as F, GRAPHREFLY_REQUEST_GRAPH as G, type OnGraphEventMeta as H, INTERVAL_HANDLERS as I, QueryHandler as J, type QueryHandlerMeta as K, SagaHandler as L, type SagaHandlerMeta as M, fromHeader as N, ObserveGateway as O, fromJwtPayload as P, QUERY_HANDLERS as Q, getActor as R, SAGA_HANDLERS as S, getGraphToken as T, getNodeToken as U, observeSSE as V, observeSubscription as W, type ActorExtractor as a, CQRS_EVENT_HANDLERS as b, CRON_HANDLERS as c, CommandHandler as d, type CommandHandlerMeta as e, EventHandler as f, type EventHandlerMeta as g, GRAPHREFLY_ROOT_GRAPH as h, index as i, GraphCron as j, type GraphCronMeta as k, GraphInterval as l, type GraphIntervalMeta as m, type GraphReflyCqrsOptions as n, GraphReflyEventExplorer as o, type GraphReflyFeatureOptions as p, GraphReflyGuard as q, GraphReflyGuardImpl as r, GraphReflyModule as s, type GraphReflyRootOptions as t, InjectCqrsGraph as u, InjectGraph as v, InjectNode as w, type ObserveGatewayOptions as x, type ObserveSSEOptions as y, type ObserveSubscriptionOptions as z };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { P as PolicyRuleData, a as Node, A as Actor } from './node-Dd6wHSib.js';
|
|
2
|
+
import { G as Graph, a as GraphOptions, b as GraphDescribeOptions, c as GraphDescribeOutput, D as DescribeFilter } from './graph-Qjg9gWHI.js';
|
|
3
|
+
import { P as PolicyEnforcerGraph, a as PolicyViolation } from './index-CiaVoZGo.js';
|
|
4
|
+
import { T as TopicGraph } from './index-DuB5aO4-.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Composable safety layer (roadmap §9.0b).
|
|
8
|
+
*
|
|
9
|
+
* {@link guardedExecution} wraps any {@link Graph} with:
|
|
10
|
+
*
|
|
11
|
+
* - {@link policyEnforcer} — reactive ABAC, policies stored as a `Node` so
|
|
12
|
+
* LLMs / humans can update them at runtime. Now with full transitive
|
|
13
|
+
* dynamic coverage via `watchTopologyTree`.
|
|
14
|
+
* - Scoped {@link GuardedExecutionGraph.scopedDescribe} — delegates to
|
|
15
|
+
* `target.describe({actor})` so callers see only what the actor is
|
|
16
|
+
* allowed to see.
|
|
17
|
+
* - The enforcer's `violations` topic is republished as `violations` on
|
|
18
|
+
* the wrapper, composable with {@link graphLens}.`health` alerts.
|
|
19
|
+
*
|
|
20
|
+
* V1 scope: policies + actor + scoped describe. Budget-as-option is NOT
|
|
21
|
+
* in V1 — it requires a cost-tracking design that hasn't landed yet.
|
|
22
|
+
* Callers who need a budget limit today append a budget-aware
|
|
23
|
+
* {@link PolicyRuleData} to the policies list (check current cost and
|
|
24
|
+
* `deny` when exhausted).
|
|
25
|
+
*
|
|
26
|
+
* @module
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/** Options for {@link guardedExecution}. */
|
|
30
|
+
interface GuardedExecutionOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Policies enforced against every guarded write. Static list or a live
|
|
33
|
+
* `Node<readonly PolicyRuleData[]>` (LLM-updatable).
|
|
34
|
+
*
|
|
35
|
+
* **Deny-by-default gotcha:** the underlying `policyFromRules()` denies any
|
|
36
|
+
* action that matches no rule. An empty policies list in `mode: "enforce"`
|
|
37
|
+
* therefore blocks EVERY write AND every `observe` through the stacked
|
|
38
|
+
* guard — including `scopedDescribe()`. If you want a permissive base, add
|
|
39
|
+
* at least `{ effect: "allow", action: "*" }` and layer deny rules on top.
|
|
40
|
+
* In `mode: "audit"` no guards are stacked, so empty policies are safe.
|
|
41
|
+
*/
|
|
42
|
+
policies: readonly PolicyRuleData[] | Node<readonly PolicyRuleData[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Actor whose perspective drives {@link GuardedExecutionGraph.scopedDescribe}
|
|
45
|
+
* and {@link GuardedExecutionGraph.describe} — when omitted, callers must
|
|
46
|
+
* pass `{actor}` explicitly or they get the target's raw describe.
|
|
47
|
+
*/
|
|
48
|
+
actor?: Actor;
|
|
49
|
+
/**
|
|
50
|
+
* `"enforce"` (default) — push guards onto target nodes so disallowed
|
|
51
|
+
* writes throw {@link GuardDenied}.
|
|
52
|
+
* `"audit"` — record would-be denials to the `violations` topic without
|
|
53
|
+
* blocking writes.
|
|
54
|
+
*/
|
|
55
|
+
mode?: "audit" | "enforce";
|
|
56
|
+
/** Ring-buffer cap for the `violations` topic. Default 1000 (inherited from policyEnforcer). */
|
|
57
|
+
violationsLimit?: number;
|
|
58
|
+
/** Wrapper graph name. Default `${target.name}_guarded`. */
|
|
59
|
+
name?: string;
|
|
60
|
+
/** Wrapper graph options. */
|
|
61
|
+
graph?: GraphOptions;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Wrapper over a target {@link Graph} providing reactive ABAC + scoped
|
|
65
|
+
* describe. Mounts a {@link PolicyEnforcerGraph} under `enforcer`.
|
|
66
|
+
*
|
|
67
|
+
* @category patterns
|
|
68
|
+
*/
|
|
69
|
+
declare class GuardedExecutionGraph extends Graph {
|
|
70
|
+
readonly enforcer: PolicyEnforcerGraph;
|
|
71
|
+
readonly violations: TopicGraph<PolicyViolation>;
|
|
72
|
+
private readonly _target;
|
|
73
|
+
private readonly _defaultActor;
|
|
74
|
+
constructor(target: Graph, opts: GuardedExecutionOptions);
|
|
75
|
+
/**
|
|
76
|
+
* Describe the **target** graph scoped to the configured actor. Returns
|
|
77
|
+
* only nodes the actor is permitted to see (via the target's node guards
|
|
78
|
+
* filtering `describe()` via `actor`).
|
|
79
|
+
*
|
|
80
|
+
* Pass `{actor}` in opts to override the configured actor for this call.
|
|
81
|
+
* Pass any standard {@link GraphDescribeOptions} fields (`detail`,
|
|
82
|
+
* `fields`, `filter`) — they apply to the target's describe.
|
|
83
|
+
*
|
|
84
|
+
* **Mode interaction:**
|
|
85
|
+
* - In `mode: "enforce"` (default), the enforcer stacks a policy-derived
|
|
86
|
+
* guard on every target node. `scopedDescribe({actor})` then filters by
|
|
87
|
+
* the AND of per-node guards AND the stacked policy guard.
|
|
88
|
+
* - In `mode: "audit"`, NO guards are stacked — `scopedDescribe` filters
|
|
89
|
+
* purely by the target's pre-existing per-node guards. If a target has
|
|
90
|
+
* no node-level guards, the policy rules you pass have no effect on
|
|
91
|
+
* visibility (they only populate the `violations` topic on writes).
|
|
92
|
+
*/
|
|
93
|
+
scopedDescribe(opts?: Omit<GraphDescribeOptions, "actor"> & {
|
|
94
|
+
actor?: Actor;
|
|
95
|
+
}): GraphDescribeOutput;
|
|
96
|
+
/** The wrapped graph (escape hatch for tooling). */
|
|
97
|
+
get target(): Graph;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Wrap a {@link Graph} with {@link policyEnforcer} plus a scoped describe
|
|
101
|
+
* lens. Returns a {@link GuardedExecutionGraph} that can be mounted, diffed,
|
|
102
|
+
* or composed with {@link graphLens}.
|
|
103
|
+
*
|
|
104
|
+
* @param target - The graph to guard.
|
|
105
|
+
* @param opts - See {@link GuardedExecutionOptions}.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const guarded = guardedExecution(app, {
|
|
110
|
+
* actor: { type: "human", id: "alice" },
|
|
111
|
+
* policies: [
|
|
112
|
+
* { effect: "allow", action: "read", actorType: "human" },
|
|
113
|
+
* { effect: "deny", action: "write", pathPattern: "system::*" },
|
|
114
|
+
* ],
|
|
115
|
+
* mode: "enforce",
|
|
116
|
+
* });
|
|
117
|
+
*
|
|
118
|
+
* const view = guarded.scopedDescribe({ detail: "standard" });
|
|
119
|
+
* guarded.violations.events.subscribe(msgs => console.log("violations:", msgs));
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* @category patterns
|
|
123
|
+
*/
|
|
124
|
+
declare function guardedExecution(target: Graph, opts: GuardedExecutionOptions): GuardedExecutionGraph;
|
|
125
|
+
|
|
126
|
+
declare const index_DescribeFilter: typeof DescribeFilter;
|
|
127
|
+
type index_GuardedExecutionGraph = GuardedExecutionGraph;
|
|
128
|
+
declare const index_GuardedExecutionGraph: typeof GuardedExecutionGraph;
|
|
129
|
+
type index_GuardedExecutionOptions = GuardedExecutionOptions;
|
|
130
|
+
declare const index_guardedExecution: typeof guardedExecution;
|
|
131
|
+
declare namespace index {
|
|
132
|
+
export { index_DescribeFilter as DescribeFilter, index_GuardedExecutionGraph as GuardedExecutionGraph, type index_GuardedExecutionOptions as GuardedExecutionOptions, index_guardedExecution as guardedExecution };
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export { GuardedExecutionGraph as G, type GuardedExecutionOptions as a, guardedExecution as g, index as i };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { a as Node } from './node-Dd6wHSib.cjs';
|
|
2
|
+
import { G as Graph, a as GraphOptions } from './graph-DgohqXK-.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Job queue patterns (roadmap §4.2).
|
|
6
|
+
*
|
|
7
|
+
* Queue / flow primitives modeled as graph factories:
|
|
8
|
+
* - `jobQueue()` — claim/ack/nack workflow with reactive depth.
|
|
9
|
+
* - `jobFlow()` — multi-stage queue chain.
|
|
10
|
+
*
|
|
11
|
+
* Topic / subscription / hub primitives live in `patterns/messaging`.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
type JobState = "queued" | "inflight";
|
|
15
|
+
type JobEnvelope<T> = {
|
|
16
|
+
id: string;
|
|
17
|
+
payload: T;
|
|
18
|
+
attempts: number;
|
|
19
|
+
metadata: Readonly<Record<string, unknown>>;
|
|
20
|
+
state: JobState;
|
|
21
|
+
};
|
|
22
|
+
type JobQueueOptions = {
|
|
23
|
+
graph?: GraphOptions;
|
|
24
|
+
};
|
|
25
|
+
declare class JobQueueGraph<T> extends Graph {
|
|
26
|
+
private readonly _pending;
|
|
27
|
+
private readonly _jobs;
|
|
28
|
+
private _seq;
|
|
29
|
+
readonly pending: Node<readonly string[]>;
|
|
30
|
+
readonly jobs: Node<ReadonlyMap<string, JobEnvelope<T>>>;
|
|
31
|
+
readonly depth: Node<number>;
|
|
32
|
+
constructor(name: string, opts?: JobQueueOptions);
|
|
33
|
+
enqueue(payload: T, opts?: {
|
|
34
|
+
id?: string;
|
|
35
|
+
metadata?: Record<string, unknown>;
|
|
36
|
+
}): string;
|
|
37
|
+
claim(limit?: number): readonly JobEnvelope<T>[];
|
|
38
|
+
ack(id: string): boolean;
|
|
39
|
+
nack(id: string, opts?: {
|
|
40
|
+
requeue?: boolean;
|
|
41
|
+
}): boolean;
|
|
42
|
+
}
|
|
43
|
+
type JobFlowOptions = {
|
|
44
|
+
graph?: GraphOptions;
|
|
45
|
+
stages?: readonly string[];
|
|
46
|
+
maxPerPump?: number;
|
|
47
|
+
};
|
|
48
|
+
declare class JobFlowGraph<T> extends Graph {
|
|
49
|
+
private readonly _stageNames;
|
|
50
|
+
private readonly _queues;
|
|
51
|
+
private readonly _completed;
|
|
52
|
+
readonly completed: Node<readonly JobEnvelope<T>[]>;
|
|
53
|
+
readonly completedCount: Node<number>;
|
|
54
|
+
constructor(name: string, opts?: JobFlowOptions);
|
|
55
|
+
stages(): readonly string[];
|
|
56
|
+
queue(stage: string): JobQueueGraph<T>;
|
|
57
|
+
enqueue(payload: T, opts?: {
|
|
58
|
+
id?: string;
|
|
59
|
+
metadata?: Record<string, unknown>;
|
|
60
|
+
}): string;
|
|
61
|
+
retainedCompleted(): readonly JobEnvelope<T>[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Creates a Pulsar-inspired job queue graph with claim/ack/nack workflow.
|
|
65
|
+
*/
|
|
66
|
+
declare function jobQueue<T>(name: string, opts?: JobQueueOptions): JobQueueGraph<T>;
|
|
67
|
+
/**
|
|
68
|
+
* Creates an autonomous multi-stage queue chain graph.
|
|
69
|
+
*/
|
|
70
|
+
declare function jobFlow<T>(name: string, opts?: JobFlowOptions): JobFlowGraph<T>;
|
|
71
|
+
|
|
72
|
+
type index_JobEnvelope<T> = JobEnvelope<T>;
|
|
73
|
+
type index_JobFlowGraph<T> = JobFlowGraph<T>;
|
|
74
|
+
declare const index_JobFlowGraph: typeof JobFlowGraph;
|
|
75
|
+
type index_JobFlowOptions = JobFlowOptions;
|
|
76
|
+
type index_JobQueueGraph<T> = JobQueueGraph<T>;
|
|
77
|
+
declare const index_JobQueueGraph: typeof JobQueueGraph;
|
|
78
|
+
type index_JobQueueOptions = JobQueueOptions;
|
|
79
|
+
type index_JobState = JobState;
|
|
80
|
+
declare const index_jobFlow: typeof jobFlow;
|
|
81
|
+
declare const index_jobQueue: typeof jobQueue;
|
|
82
|
+
declare namespace index {
|
|
83
|
+
export { type index_JobEnvelope as JobEnvelope, index_JobFlowGraph as JobFlowGraph, type index_JobFlowOptions as JobFlowOptions, index_JobQueueGraph as JobQueueGraph, type index_JobQueueOptions as JobQueueOptions, type index_JobState as JobState, index_jobFlow as jobFlow, index_jobQueue as jobQueue };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { type JobEnvelope as J, JobFlowGraph as a, type JobFlowOptions as b, JobQueueGraph as c, type JobQueueOptions as d, type JobState as e, jobQueue as f, index as i, jobFlow as j };
|