@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
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { a as Node, N as NodeOptions } from './node-Dd6wHSib.cjs';
|
|
2
|
+
import { a as GraphOptions, G as Graph } from './graph-DgohqXK-.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reduction primitives (roadmap §8.1).
|
|
6
|
+
*
|
|
7
|
+
* Composable building blocks for taking heterogeneous massive inputs and producing
|
|
8
|
+
* prioritized, auditable, human-actionable output. Each primitive is either a Graph
|
|
9
|
+
* factory or a Node factory, built on top of core + extra primitives.
|
|
10
|
+
*
|
|
11
|
+
* @module
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
type StepRef = string | Node<unknown>;
|
|
15
|
+
/** A named stage for {@link funnel}. */
|
|
16
|
+
type FunnelStage = {
|
|
17
|
+
/** Stage name (mounted as subgraph). */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Builder: receives a sub-graph, should add an `"input"` and `"output"` node. */
|
|
20
|
+
build: (sub: Graph) => void;
|
|
21
|
+
};
|
|
22
|
+
/** Options for {@link funnel}. */
|
|
23
|
+
type FunnelOptions = GraphOptions & {
|
|
24
|
+
meta?: Record<string, unknown>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Multi-source merge with sequential reduction stages.
|
|
28
|
+
*
|
|
29
|
+
* Sources are merged into a single stream. Each stage is a named subgraph
|
|
30
|
+
* (mounted via `graph.mount()`). Stages connect linearly:
|
|
31
|
+
* `merged → stage[0].input → stage[0].output → stage[1].input → ...`
|
|
32
|
+
*
|
|
33
|
+
* @param name - Graph name.
|
|
34
|
+
* @param sources - Input nodes to merge.
|
|
35
|
+
* @param stages - Sequential reduction stages.
|
|
36
|
+
* @param opts - Optional graph/meta options.
|
|
37
|
+
* @returns Graph with `"merged"` and mounted stage subgraphs.
|
|
38
|
+
*
|
|
39
|
+
* @category patterns
|
|
40
|
+
*/
|
|
41
|
+
declare function funnel<T>(name: string, sources: ReadonlyArray<Node<T>>, stages: ReadonlyArray<FunnelStage>, opts?: FunnelOptions): Graph;
|
|
42
|
+
/** Options for {@link feedback}. */
|
|
43
|
+
type FeedbackOptions = {
|
|
44
|
+
/** Maximum feedback iterations before stopping (default: 10). */
|
|
45
|
+
maxIterations?: number;
|
|
46
|
+
/** Optional budget gate node path for cost-bounded iteration. */
|
|
47
|
+
budgetNode?: StepRef;
|
|
48
|
+
meta?: Record<string, unknown>;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Introduce a bounded reactive cycle into an existing graph.
|
|
52
|
+
*
|
|
53
|
+
* When `condition` emits a non-null DATA value, the feedback effect routes it
|
|
54
|
+
* back to the `reentry` state node — creating a cycle. Bounded by
|
|
55
|
+
* `maxIterations` (default 10). The counter node (`__feedback_<condition>`)
|
|
56
|
+
* is the source of truth — reset it to 0 to allow more iterations.
|
|
57
|
+
*
|
|
58
|
+
* To remove the feedback cycle, call `graph.remove("__feedback_<condition>")`.
|
|
59
|
+
*
|
|
60
|
+
* @param graph - Existing graph to augment with a feedback cycle.
|
|
61
|
+
* @param condition - Path to a node whose DATA triggers feedback.
|
|
62
|
+
* @param reentry - Path to a state node that receives the feedback value.
|
|
63
|
+
* @param opts - Iteration bounds and metadata.
|
|
64
|
+
* @returns The same graph (mutated with feedback nodes added).
|
|
65
|
+
*
|
|
66
|
+
* @category patterns
|
|
67
|
+
*/
|
|
68
|
+
declare function feedback(graph: Graph, condition: string, reentry: string, opts?: FeedbackOptions): Graph;
|
|
69
|
+
/** A reactive constraint for {@link budgetGate}. */
|
|
70
|
+
type BudgetConstraint<T = unknown> = {
|
|
71
|
+
/** Constraint node whose value is checked. */
|
|
72
|
+
node: Node<T>;
|
|
73
|
+
/** Returns `true` when the constraint is satisfied (budget available). */
|
|
74
|
+
check: (value: T) => boolean;
|
|
75
|
+
};
|
|
76
|
+
/** Options for {@link budgetGate}. */
|
|
77
|
+
type BudgetGateOptions = Omit<NodeOptions<unknown>, "describeKind" | "name" | "meta"> & {
|
|
78
|
+
meta?: Record<string, unknown>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Pass-through that respects reactive constraint nodes.
|
|
82
|
+
*
|
|
83
|
+
* DATA flows through when all constraints are satisfied. When any constraint
|
|
84
|
+
* is exceeded, PAUSE is sent upstream and DATA is buffered. When constraints
|
|
85
|
+
* relax, RESUME is sent and buffered DATA flushes.
|
|
86
|
+
*
|
|
87
|
+
* @param source - Input node.
|
|
88
|
+
* @param constraints - Reactive constraint checks.
|
|
89
|
+
* @param opts - Optional node options.
|
|
90
|
+
* @returns Gated node.
|
|
91
|
+
*
|
|
92
|
+
* @category patterns
|
|
93
|
+
*/
|
|
94
|
+
declare function budgetGate<T>(source: Node<T>, constraints: ReadonlyArray<BudgetConstraint>, opts?: BudgetGateOptions): Node<T>;
|
|
95
|
+
/** A scored item with full breakdown. */
|
|
96
|
+
type ScoredItem<T = unknown> = {
|
|
97
|
+
/** Original value. */
|
|
98
|
+
value: T;
|
|
99
|
+
/** Final weighted score. */
|
|
100
|
+
score: number;
|
|
101
|
+
/** Per-signal breakdown: signal index → weighted contribution. */
|
|
102
|
+
breakdown: number[];
|
|
103
|
+
};
|
|
104
|
+
/** Options for {@link scorer}. */
|
|
105
|
+
type ScorerOptions = Omit<NodeOptions<unknown>, "describeKind" | "name" | "meta"> & {
|
|
106
|
+
meta?: Record<string, unknown>;
|
|
107
|
+
/** Custom scoring function per signal. Default: identity (signal value IS the score). */
|
|
108
|
+
scoreFns?: ReadonlyArray<(value: unknown) => number>;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Reactive multi-signal scoring with live weights.
|
|
112
|
+
*
|
|
113
|
+
* Each source emits items to score. Weights are reactive state nodes that
|
|
114
|
+
* LLM or human can adjust live. Output is sorted scored items with full
|
|
115
|
+
* breakdown.
|
|
116
|
+
*
|
|
117
|
+
* @param sources - Signal nodes (each emits a numeric score dimension).
|
|
118
|
+
* @param weights - Reactive weight nodes (one per source).
|
|
119
|
+
* @param opts - Optional node/meta options.
|
|
120
|
+
* @returns Node emitting scored output.
|
|
121
|
+
*
|
|
122
|
+
* @category patterns
|
|
123
|
+
*/
|
|
124
|
+
declare function scorer(sources: ReadonlyArray<Node<number>>, weights: ReadonlyArray<Node<number>>, opts?: ScorerOptions): Node<ScoredItem<number[]>>;
|
|
125
|
+
/** A single effectiveness record for an action×context pair. */
|
|
126
|
+
type EffectivenessEntry = {
|
|
127
|
+
readonly key: string;
|
|
128
|
+
readonly attempts: number;
|
|
129
|
+
readonly successes: number;
|
|
130
|
+
readonly successRate: number;
|
|
131
|
+
};
|
|
132
|
+
/** Snapshot shape for the effectiveness tracker node. */
|
|
133
|
+
type EffectivenessSnapshot = ReadonlyMap<string, EffectivenessEntry>;
|
|
134
|
+
/** Bundle returned by {@link effectivenessTracker}. */
|
|
135
|
+
interface EffectivenessTrackerBundle {
|
|
136
|
+
/** Reactive node — current effectiveness map snapshot. */
|
|
137
|
+
readonly node: Node<EffectivenessSnapshot>;
|
|
138
|
+
/** Record a completed action (success or failure). */
|
|
139
|
+
record(key: string, success: boolean): void;
|
|
140
|
+
/** Look up effectiveness for a specific key. */
|
|
141
|
+
lookup(key: string): EffectivenessEntry | undefined;
|
|
142
|
+
/** Tear down internal keepalive subscriptions. */
|
|
143
|
+
dispose(): void;
|
|
144
|
+
}
|
|
145
|
+
/** Options for {@link effectivenessTracker}. */
|
|
146
|
+
type EffectivenessTrackerOptions = {
|
|
147
|
+
/** Name for the reactive map (default "effectiveness-entries"). */
|
|
148
|
+
name?: string;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Generic action×context → success rate tracker.
|
|
152
|
+
*
|
|
153
|
+
* Generalized from the harness `strategyModel` pattern. Tracks attempts and
|
|
154
|
+
* successes per string key, exposes a reactive snapshot node, and provides
|
|
155
|
+
* `record()` / `lookup()` methods.
|
|
156
|
+
*
|
|
157
|
+
* Use cases: A/B testing, routing optimization, cache policy tuning, retry
|
|
158
|
+
* strategy selection — any domain that tracks effectiveness per action.
|
|
159
|
+
*
|
|
160
|
+
* @param opts - Optional configuration.
|
|
161
|
+
* @returns Bundle with reactive node, record(), lookup(), dispose().
|
|
162
|
+
*/
|
|
163
|
+
declare function effectivenessTracker(opts?: EffectivenessTrackerOptions): EffectivenessTrackerBundle;
|
|
164
|
+
|
|
165
|
+
type index_BudgetConstraint<T = unknown> = BudgetConstraint<T>;
|
|
166
|
+
type index_BudgetGateOptions = BudgetGateOptions;
|
|
167
|
+
type index_EffectivenessEntry = EffectivenessEntry;
|
|
168
|
+
type index_EffectivenessSnapshot = EffectivenessSnapshot;
|
|
169
|
+
type index_EffectivenessTrackerBundle = EffectivenessTrackerBundle;
|
|
170
|
+
type index_EffectivenessTrackerOptions = EffectivenessTrackerOptions;
|
|
171
|
+
type index_FeedbackOptions = FeedbackOptions;
|
|
172
|
+
type index_FunnelOptions = FunnelOptions;
|
|
173
|
+
type index_FunnelStage = FunnelStage;
|
|
174
|
+
type index_ScoredItem<T = unknown> = ScoredItem<T>;
|
|
175
|
+
type index_ScorerOptions = ScorerOptions;
|
|
176
|
+
type index_StepRef = StepRef;
|
|
177
|
+
declare const index_budgetGate: typeof budgetGate;
|
|
178
|
+
declare const index_effectivenessTracker: typeof effectivenessTracker;
|
|
179
|
+
declare const index_feedback: typeof feedback;
|
|
180
|
+
declare const index_funnel: typeof funnel;
|
|
181
|
+
declare const index_scorer: typeof scorer;
|
|
182
|
+
declare namespace index {
|
|
183
|
+
export { type index_BudgetConstraint as BudgetConstraint, type index_BudgetGateOptions as BudgetGateOptions, type index_EffectivenessEntry as EffectivenessEntry, type index_EffectivenessSnapshot as EffectivenessSnapshot, type index_EffectivenessTrackerBundle as EffectivenessTrackerBundle, type index_EffectivenessTrackerOptions as EffectivenessTrackerOptions, type index_FeedbackOptions as FeedbackOptions, type index_FunnelOptions as FunnelOptions, type index_FunnelStage as FunnelStage, type index_ScoredItem as ScoredItem, type index_ScorerOptions as ScorerOptions, type index_StepRef as StepRef, index_budgetGate as budgetGate, index_effectivenessTracker as effectivenessTracker, index_feedback as feedback, index_funnel as funnel, index_scorer as scorer };
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export { type BudgetConstraint as B, type EffectivenessEntry as E, type FeedbackOptions as F, type ScoredItem as S, type BudgetGateOptions as a, type EffectivenessSnapshot as b, type EffectivenessTrackerBundle as c, type EffectivenessTrackerOptions as d, type FunnelOptions as e, type FunnelStage as f, type ScorerOptions as g, type StepRef as h, index as i, budgetGate as j, effectivenessTracker as k, feedback as l, funnel as m, scorer as s };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { a as Node } from './node-Dd6wHSib.js';
|
|
2
|
+
import { R as ReactiveMapBundle } from './reactive-map-FeuTVAJb.js';
|
|
3
|
+
import { a as GraphOptions, G as Graph, C as CausalChain } from './graph-Qjg9gWHI.js';
|
|
4
|
+
import { w as watchTopologyTree } from './topology-tree-one6oSKY.js';
|
|
5
|
+
|
|
6
|
+
/** Aggregate topology stats emitted by {@link LensGraph.stats}. */
|
|
7
|
+
interface TopologyStats {
|
|
8
|
+
/** Total primary nodes across this graph and all transitively mounted subgraphs. */
|
|
9
|
+
nodeCount: number;
|
|
10
|
+
/** Total directed edges (derived from deps; no duplicates). */
|
|
11
|
+
edgeCount: number;
|
|
12
|
+
/** Count of mounted subgraphs (transitive). */
|
|
13
|
+
subgraphCount: number;
|
|
14
|
+
/** Qualified paths with no upstream deps (source nodes). Sorted. */
|
|
15
|
+
sources: readonly string[];
|
|
16
|
+
/** Qualified paths with no downstream consumers in-graph (sink nodes). Sorted. */
|
|
17
|
+
sinks: readonly string[];
|
|
18
|
+
/** Longest path from any source to any sink (in edges). `0` for empty graphs. */
|
|
19
|
+
depth: number;
|
|
20
|
+
/** `true` if the dep DAG contains a cycle (feedback edge). */
|
|
21
|
+
hasCycles: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** A single health problem entry. */
|
|
24
|
+
interface HealthProblem {
|
|
25
|
+
path: string;
|
|
26
|
+
/** V1 only reports `"errored"`. Future versions may add `"completed"`, `"disconnected"`. */
|
|
27
|
+
status: "errored";
|
|
28
|
+
/** First errored upstream ancestor along the dep chain, when one exists and is distinct from `path`. */
|
|
29
|
+
upstreamCause?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Aggregate health snapshot. `ok=true` iff `problems.length === 0`. */
|
|
32
|
+
interface HealthReport {
|
|
33
|
+
ok: boolean;
|
|
34
|
+
problems: readonly HealthProblem[];
|
|
35
|
+
}
|
|
36
|
+
/** One per-path flow entry stored in {@link LensGraph.flow}. */
|
|
37
|
+
interface FlowEntry {
|
|
38
|
+
path: string;
|
|
39
|
+
/** Cumulative DATA emissions observed since the lens activated. */
|
|
40
|
+
count: number;
|
|
41
|
+
/** `monotonicNs()` at the most recent DATA emission, or `null` if none yet. */
|
|
42
|
+
lastUpdate_ns: number | null;
|
|
43
|
+
}
|
|
44
|
+
/** Options for {@link graphLens}. */
|
|
45
|
+
interface GraphLensOptions {
|
|
46
|
+
name?: string;
|
|
47
|
+
graph?: GraphOptions;
|
|
48
|
+
/**
|
|
49
|
+
* Limit which node paths `flow` tracks. When omitted, every path in
|
|
50
|
+
* `target.describe()` is observed. Recommended for graphs with hundreds
|
|
51
|
+
* of nodes since each tracked path adds one observe-event dispatch per
|
|
52
|
+
* DATA emission.
|
|
53
|
+
*/
|
|
54
|
+
pathFilter?: (path: string) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* LRU cap on the {@link LensGraph.flow} map. When set, the flow tracker
|
|
57
|
+
* evicts least-recently-used paths (by insertion / set order) once the
|
|
58
|
+
* entry count exceeds this bound. Omit for unbounded (not recommended
|
|
59
|
+
* for long-running graphs with churning paths). Passed through to the
|
|
60
|
+
* underlying {@link reactiveMap}'s `maxSize`.
|
|
61
|
+
*/
|
|
62
|
+
maxFlowPaths?: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Reactive observability surface for a target {@link Graph}.
|
|
66
|
+
* See {@link graphLens}.
|
|
67
|
+
*
|
|
68
|
+
* @category observability
|
|
69
|
+
*/
|
|
70
|
+
declare class LensGraph extends Graph {
|
|
71
|
+
/**
|
|
72
|
+
* Aggregate structural stats — `nodeCount`, `edgeCount`, `sources`,
|
|
73
|
+
* `sinks`, `depth`, `hasCycles`, `subgraphCount`. Recomputes on every
|
|
74
|
+
* structural change via {@link watchTopologyTree} (transitive).
|
|
75
|
+
*
|
|
76
|
+
* Named `stats` (not `topology`) because `Graph.topology` already names
|
|
77
|
+
* the raw `TopologyEvent` stream on every graph including `LensGraph`;
|
|
78
|
+
* giving the lens its own `topology` accessor with an incompatible
|
|
79
|
+
* `Node<TopologyStats>` type would break Liskov substitutability.
|
|
80
|
+
*/
|
|
81
|
+
readonly stats: Node<TopologyStats>;
|
|
82
|
+
readonly health: Node<HealthReport>;
|
|
83
|
+
/**
|
|
84
|
+
* Per-path flow tracker — a live {@link ReactiveMapBundle} keyed by
|
|
85
|
+
* qualified path. Use `.get(path)` / `.has(path)` / `.size` for O(1)
|
|
86
|
+
* sync queries; subscribe to `.entries` for a reactive snapshot of the
|
|
87
|
+
* whole map. Lazy — the snapshot is materialized only while `.entries`
|
|
88
|
+
* has subscribers.
|
|
89
|
+
*
|
|
90
|
+
* Shape intentionally differs from `stats` / `health` (which are plain
|
|
91
|
+
* `Node<Report>`) because `flow` is a keyed collection, not a single
|
|
92
|
+
* aggregate value. The map shape exposes cheaper queries than any
|
|
93
|
+
* snapshot-based design.
|
|
94
|
+
*/
|
|
95
|
+
readonly flow: ReactiveMapBundle<string, FlowEntry>;
|
|
96
|
+
private readonly _target;
|
|
97
|
+
constructor(target: Graph, opts?: GraphLensOptions);
|
|
98
|
+
/**
|
|
99
|
+
* Live causal chain from `from` to `to`. Recomputes whenever the target
|
|
100
|
+
* mutates. Disposed automatically when the lens is destroyed.
|
|
101
|
+
*
|
|
102
|
+
* **Lifetime note:** every call to `why()` registers a lens-owned disposer
|
|
103
|
+
* that runs on `lens.destroy()`. The returned `dispose` function releases
|
|
104
|
+
* the internal subscription but does NOT remove the lens-owned disposer —
|
|
105
|
+
* so heavy calling (e.g. per render frame) accumulates no-op disposers
|
|
106
|
+
* until lens teardown. Cache the returned handle for long-lived queries.
|
|
107
|
+
*
|
|
108
|
+
* @param from - Qualified path of the upstream endpoint.
|
|
109
|
+
* @param to - Qualified path of the downstream endpoint.
|
|
110
|
+
* @param opts - See {@link reactiveExplainPath}.
|
|
111
|
+
*/
|
|
112
|
+
why(from: string, to: string, opts?: {
|
|
113
|
+
maxDepth?: number;
|
|
114
|
+
name?: string;
|
|
115
|
+
findCycle?: boolean;
|
|
116
|
+
}): {
|
|
117
|
+
node: Node<CausalChain>;
|
|
118
|
+
dispose: () => void;
|
|
119
|
+
};
|
|
120
|
+
/** Reference to the lensed graph. */
|
|
121
|
+
get target(): Graph;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Create a reactive observability lens over a {@link Graph}. Returns a
|
|
125
|
+
* {@link LensGraph} with three reactive surfaces (`stats`, `health`, `flow`)
|
|
126
|
+
* plus the `why(from, to)` method.
|
|
127
|
+
*
|
|
128
|
+
* The returned graph is detached. Mount it via `target.mount("lens", lens)`
|
|
129
|
+
* if you want it to appear in the target's `describe()`, or keep it standalone.
|
|
130
|
+
*
|
|
131
|
+
* @param target - The graph to observe.
|
|
132
|
+
* @param opts - See {@link GraphLensOptions}.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const g = new Graph("app");
|
|
137
|
+
* g.add(state(0, { name: "counter" }));
|
|
138
|
+
* const lens = graphLens(g);
|
|
139
|
+
* lens.stats.subscribe((msgs) => console.log(msgs[0]?.[1])); // TopologyStats
|
|
140
|
+
* // Flow queries — O(1) without subscribing to snapshots:
|
|
141
|
+
* lens.flow.get("counter"); // FlowEntry | undefined
|
|
142
|
+
* lens.flow.size; // number
|
|
143
|
+
* lens.flow.entries.subscribe(...); // reactive snapshot, lazy-materialized
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* @category observability
|
|
147
|
+
*/
|
|
148
|
+
declare function graphLens(target: Graph, opts?: GraphLensOptions): LensGraph;
|
|
149
|
+
|
|
150
|
+
type index_FlowEntry = FlowEntry;
|
|
151
|
+
type index_GraphLensOptions = GraphLensOptions;
|
|
152
|
+
type index_HealthProblem = HealthProblem;
|
|
153
|
+
type index_HealthReport = HealthReport;
|
|
154
|
+
type index_LensGraph = LensGraph;
|
|
155
|
+
declare const index_LensGraph: typeof LensGraph;
|
|
156
|
+
type index_TopologyStats = TopologyStats;
|
|
157
|
+
declare const index_graphLens: typeof graphLens;
|
|
158
|
+
declare const index_watchTopologyTree: typeof watchTopologyTree;
|
|
159
|
+
declare namespace index {
|
|
160
|
+
export { type index_FlowEntry as FlowEntry, type index_GraphLensOptions as GraphLensOptions, type index_HealthProblem as HealthProblem, type index_HealthReport as HealthReport, index_LensGraph as LensGraph, type index_TopologyStats as TopologyStats, index_graphLens as graphLens, index_watchTopologyTree as watchTopologyTree };
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export { type FlowEntry as F, type GraphLensOptions as G, type HealthProblem as H, LensGraph as L, type TopologyStats as T, type HealthReport as a, graphLens as g, index as i };
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as Node } from './node-Dd6wHSib.cjs';
|
|
2
|
+
import { G as Graph, a as GraphOptions } from './graph-DgohqXK-.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Messaging patterns (roadmap §4.2).
|
|
6
6
|
*
|
|
7
|
-
* Pulsar-inspired messaging
|
|
8
|
-
* - `topic()` for append-only topic streams
|
|
9
|
-
* - `subscription()` for cursor-based consumers
|
|
10
|
-
* - `
|
|
7
|
+
* Pulsar-inspired messaging primitives modeled as graph factories:
|
|
8
|
+
* - `topic()` for append-only topic streams with a retained window.
|
|
9
|
+
* - `subscription()` for cursor-based consumers.
|
|
10
|
+
* - `topicBridge()` for autonomous topic-to-topic relay.
|
|
11
|
+
* - `messagingHub()` for a lazy topic registry.
|
|
12
|
+
*
|
|
13
|
+
* Job queue / job flow primitives live in `patterns/job-queue` — they are a
|
|
14
|
+
* distinct domain that happens to share reactive-log / reactive-map
|
|
15
|
+
* infrastructure with topics.
|
|
11
16
|
*/
|
|
12
17
|
|
|
13
18
|
type TopicOptions = {
|
|
@@ -62,55 +67,6 @@ declare class SubscriptionGraph<T> extends Graph {
|
|
|
62
67
|
ack?: boolean;
|
|
63
68
|
}): readonly T[];
|
|
64
69
|
}
|
|
65
|
-
type JobState = "queued" | "inflight";
|
|
66
|
-
type JobEnvelope<T> = {
|
|
67
|
-
id: string;
|
|
68
|
-
payload: T;
|
|
69
|
-
attempts: number;
|
|
70
|
-
metadata: Readonly<Record<string, unknown>>;
|
|
71
|
-
state: JobState;
|
|
72
|
-
};
|
|
73
|
-
type JobQueueOptions = {
|
|
74
|
-
graph?: GraphOptions;
|
|
75
|
-
};
|
|
76
|
-
declare class JobQueueGraph<T> extends Graph {
|
|
77
|
-
private readonly _pending;
|
|
78
|
-
private readonly _jobs;
|
|
79
|
-
private _seq;
|
|
80
|
-
readonly pending: Node<readonly string[]>;
|
|
81
|
-
readonly jobs: Node<ReadonlyMap<string, JobEnvelope<T>>>;
|
|
82
|
-
readonly depth: Node<number>;
|
|
83
|
-
constructor(name: string, opts?: JobQueueOptions);
|
|
84
|
-
enqueue(payload: T, opts?: {
|
|
85
|
-
id?: string;
|
|
86
|
-
metadata?: Record<string, unknown>;
|
|
87
|
-
}): string;
|
|
88
|
-
claim(limit?: number): readonly JobEnvelope<T>[];
|
|
89
|
-
ack(id: string): boolean;
|
|
90
|
-
nack(id: string, opts?: {
|
|
91
|
-
requeue?: boolean;
|
|
92
|
-
}): boolean;
|
|
93
|
-
}
|
|
94
|
-
type JobFlowOptions = {
|
|
95
|
-
graph?: GraphOptions;
|
|
96
|
-
stages?: readonly string[];
|
|
97
|
-
maxPerPump?: number;
|
|
98
|
-
};
|
|
99
|
-
declare class JobFlowGraph<T> extends Graph {
|
|
100
|
-
private readonly _stageNames;
|
|
101
|
-
private readonly _queues;
|
|
102
|
-
private readonly _completed;
|
|
103
|
-
readonly completed: Node<readonly JobEnvelope<T>[]>;
|
|
104
|
-
readonly completedCount: Node<number>;
|
|
105
|
-
constructor(name: string, opts?: JobFlowOptions);
|
|
106
|
-
stages(): readonly string[];
|
|
107
|
-
queue(stage: string): JobQueueGraph<T>;
|
|
108
|
-
enqueue(payload: T, opts?: {
|
|
109
|
-
id?: string;
|
|
110
|
-
metadata?: Record<string, unknown>;
|
|
111
|
-
}): string;
|
|
112
|
-
retainedCompleted(): readonly JobEnvelope<T>[];
|
|
113
|
-
}
|
|
114
70
|
type TopicBridgeOptions<TIn, TOut> = {
|
|
115
71
|
graph?: GraphOptions;
|
|
116
72
|
cursor?: number;
|
|
@@ -210,7 +166,7 @@ declare function topic<T>(name: string, opts?: TopicOptions): TopicGraph<T>;
|
|
|
210
166
|
*
|
|
211
167
|
* @example
|
|
212
168
|
* ```ts
|
|
213
|
-
* import { messagingHub } from "@graphrefly/graphrefly
|
|
169
|
+
* import { messagingHub } from "@graphrefly/graphrefly/patterns/messaging";
|
|
214
170
|
*
|
|
215
171
|
* const hub = messagingHub("main", { defaultTopicOptions: { retainedLimit: 256 } });
|
|
216
172
|
* hub.publish("orders", { id: 1 });
|
|
@@ -223,47 +179,29 @@ declare function messagingHub(name: string, opts?: MessagingHubOptions): Messagi
|
|
|
223
179
|
* Creates a cursor-based subscription graph over a topic.
|
|
224
180
|
*/
|
|
225
181
|
declare function subscription<T>(name: string, topicGraph: TopicGraph<T>, opts?: SubscriptionOptions): SubscriptionGraph<T>;
|
|
226
|
-
/**
|
|
227
|
-
* Creates a Pulsar-inspired job queue graph with claim/ack/nack workflow.
|
|
228
|
-
*/
|
|
229
|
-
declare function jobQueue<T>(name: string, opts?: JobQueueOptions): JobQueueGraph<T>;
|
|
230
|
-
/**
|
|
231
|
-
* Creates an autonomous multi-stage queue chain graph.
|
|
232
|
-
*/
|
|
233
|
-
declare function jobFlow<T>(name: string, opts?: JobFlowOptions): JobFlowGraph<T>;
|
|
234
182
|
/**
|
|
235
183
|
* Creates an autonomous cursor-based topic relay graph.
|
|
236
184
|
*/
|
|
237
185
|
declare function topicBridge<TIn, TOut = TIn>(name: string, sourceTopic: TopicGraph<TIn>, targetTopic: TopicGraph<TOut>, opts?: TopicBridgeOptions<TIn, TOut>): TopicBridgeGraph<TIn, TOut>;
|
|
238
186
|
|
|
239
|
-
type
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
type
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
type
|
|
246
|
-
|
|
247
|
-
type
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
type
|
|
251
|
-
declare const
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
declare const
|
|
255
|
-
|
|
256
|
-
type
|
|
257
|
-
declare const messaging_TopicGraph: typeof TopicGraph;
|
|
258
|
-
type messaging_TopicOptions = TopicOptions;
|
|
259
|
-
declare const messaging_jobFlow: typeof jobFlow;
|
|
260
|
-
declare const messaging_jobQueue: typeof jobQueue;
|
|
261
|
-
declare const messaging_messagingHub: typeof messagingHub;
|
|
262
|
-
declare const messaging_subscription: typeof subscription;
|
|
263
|
-
declare const messaging_topic: typeof topic;
|
|
264
|
-
declare const messaging_topicBridge: typeof topicBridge;
|
|
265
|
-
declare namespace messaging {
|
|
266
|
-
export { type messaging_JobEnvelope as JobEnvelope, messaging_JobFlowGraph as JobFlowGraph, type messaging_JobFlowOptions as JobFlowOptions, messaging_JobQueueGraph as JobQueueGraph, type messaging_JobQueueOptions as JobQueueOptions, type messaging_JobState as JobState, messaging_MessagingHubGraph as MessagingHubGraph, type messaging_MessagingHubOptions as MessagingHubOptions, messaging_SubscriptionGraph as SubscriptionGraph, type messaging_SubscriptionOptions as SubscriptionOptions, messaging_TopicBridgeGraph as TopicBridgeGraph, type messaging_TopicBridgeOptions as TopicBridgeOptions, messaging_TopicGraph as TopicGraph, type messaging_TopicOptions as TopicOptions, messaging_jobFlow as jobFlow, messaging_jobQueue as jobQueue, messaging_messagingHub as messagingHub, messaging_subscription as subscription, messaging_topic as topic, messaging_topicBridge as topicBridge };
|
|
187
|
+
type index_MessagingHubGraph = MessagingHubGraph;
|
|
188
|
+
declare const index_MessagingHubGraph: typeof MessagingHubGraph;
|
|
189
|
+
type index_MessagingHubOptions = MessagingHubOptions;
|
|
190
|
+
type index_SubscriptionGraph<T> = SubscriptionGraph<T>;
|
|
191
|
+
declare const index_SubscriptionGraph: typeof SubscriptionGraph;
|
|
192
|
+
type index_SubscriptionOptions = SubscriptionOptions;
|
|
193
|
+
type index_TopicBridgeGraph<TIn, TOut = TIn> = TopicBridgeGraph<TIn, TOut>;
|
|
194
|
+
declare const index_TopicBridgeGraph: typeof TopicBridgeGraph;
|
|
195
|
+
type index_TopicBridgeOptions<TIn, TOut> = TopicBridgeOptions<TIn, TOut>;
|
|
196
|
+
type index_TopicGraph<T> = TopicGraph<T>;
|
|
197
|
+
declare const index_TopicGraph: typeof TopicGraph;
|
|
198
|
+
type index_TopicOptions = TopicOptions;
|
|
199
|
+
declare const index_messagingHub: typeof messagingHub;
|
|
200
|
+
declare const index_subscription: typeof subscription;
|
|
201
|
+
declare const index_topic: typeof topic;
|
|
202
|
+
declare const index_topicBridge: typeof topicBridge;
|
|
203
|
+
declare namespace index {
|
|
204
|
+
export { index_MessagingHubGraph as MessagingHubGraph, type index_MessagingHubOptions as MessagingHubOptions, index_SubscriptionGraph as SubscriptionGraph, type index_SubscriptionOptions as SubscriptionOptions, index_TopicBridgeGraph as TopicBridgeGraph, type index_TopicBridgeOptions as TopicBridgeOptions, index_TopicGraph as TopicGraph, type index_TopicOptions as TopicOptions, index_messagingHub as messagingHub, index_subscription as subscription, index_topic as topic, index_topicBridge as topicBridge };
|
|
267
205
|
}
|
|
268
206
|
|
|
269
|
-
export { TopicGraph as T,
|
|
207
|
+
export { MessagingHubGraph as M, SubscriptionGraph as S, TopicGraph as T, type MessagingHubOptions as a, type SubscriptionOptions as b, TopicBridgeGraph as c, type TopicBridgeOptions as d, type TopicOptions as e, topicBridge as f, index as i, messagingHub as m, subscription as s, topic as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Actor,
|
|
2
|
-
import {
|
|
3
|
-
import { T as TopicGraph } from './
|
|
1
|
+
import { A as Actor, a as Node, P as PolicyRuleData, G as GuardAction } from './node-Dd6wHSib.cjs';
|
|
2
|
+
import { G as Graph, a as GraphOptions, d as GraphPersistSnapshot, C as CausalChain } from './graph-DgohqXK-.cjs';
|
|
3
|
+
import { T as TopicGraph } from './index-BanNUILp.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Audit, policy enforcement, and compliance export (roadmap §9.2).
|
|
@@ -29,7 +29,7 @@ interface AuditEntry {
|
|
|
29
29
|
actor?: Actor;
|
|
30
30
|
value?: unknown;
|
|
31
31
|
error?: unknown;
|
|
32
|
-
|
|
32
|
+
annotation?: string;
|
|
33
33
|
}
|
|
34
34
|
/** Options for {@link auditTrail}. */
|
|
35
35
|
interface AuditTrailOptions {
|
|
@@ -170,6 +170,12 @@ declare function policyEnforcer(target: Graph, policies: readonly PolicyRuleData
|
|
|
170
170
|
* `data`, `error`, `complete`, and `teardown` bump the version (matching the
|
|
171
171
|
* audit defaults).
|
|
172
172
|
*/
|
|
173
|
+
/**
|
|
174
|
+
* @deprecated Use `graph.explain(from, to, { reactive: true, ... })` directly.
|
|
175
|
+
* This free-function wrapper now dispatches to the consolidated
|
|
176
|
+
* {@link Graph.explain} overload for mental-model consistency with
|
|
177
|
+
* `describe` / `observe`. Will be removed pre-1.0.
|
|
178
|
+
*/
|
|
173
179
|
declare function reactiveExplainPath(target: Graph, from: string, to: string, opts?: {
|
|
174
180
|
maxDepth?: number;
|
|
175
181
|
name?: string;
|
|
@@ -224,22 +230,22 @@ interface ComplianceSnapshotResult {
|
|
|
224
230
|
*/
|
|
225
231
|
declare function complianceSnapshot(target: Graph, opts?: ComplianceSnapshotOptions): ComplianceSnapshotResult;
|
|
226
232
|
|
|
227
|
-
type
|
|
228
|
-
type
|
|
229
|
-
declare const
|
|
230
|
-
type
|
|
231
|
-
type
|
|
232
|
-
type
|
|
233
|
-
type
|
|
234
|
-
declare const
|
|
235
|
-
type
|
|
236
|
-
type
|
|
237
|
-
declare const
|
|
238
|
-
declare const
|
|
239
|
-
declare const
|
|
240
|
-
declare const
|
|
241
|
-
declare namespace
|
|
242
|
-
export { type
|
|
233
|
+
type index_AuditEntry = AuditEntry;
|
|
234
|
+
type index_AuditTrailGraph = AuditTrailGraph;
|
|
235
|
+
declare const index_AuditTrailGraph: typeof AuditTrailGraph;
|
|
236
|
+
type index_AuditTrailOptions = AuditTrailOptions;
|
|
237
|
+
type index_ComplianceSnapshotOptions = ComplianceSnapshotOptions;
|
|
238
|
+
type index_ComplianceSnapshotResult = ComplianceSnapshotResult;
|
|
239
|
+
type index_PolicyEnforcerGraph = PolicyEnforcerGraph;
|
|
240
|
+
declare const index_PolicyEnforcerGraph: typeof PolicyEnforcerGraph;
|
|
241
|
+
type index_PolicyEnforcerOptions = PolicyEnforcerOptions;
|
|
242
|
+
type index_PolicyViolation = PolicyViolation;
|
|
243
|
+
declare const index_auditTrail: typeof auditTrail;
|
|
244
|
+
declare const index_complianceSnapshot: typeof complianceSnapshot;
|
|
245
|
+
declare const index_policyEnforcer: typeof policyEnforcer;
|
|
246
|
+
declare const index_reactiveExplainPath: typeof reactiveExplainPath;
|
|
247
|
+
declare namespace index {
|
|
248
|
+
export { type index_AuditEntry as AuditEntry, index_AuditTrailGraph as AuditTrailGraph, type index_AuditTrailOptions as AuditTrailOptions, type index_ComplianceSnapshotOptions as ComplianceSnapshotOptions, type index_ComplianceSnapshotResult as ComplianceSnapshotResult, index_PolicyEnforcerGraph as PolicyEnforcerGraph, type index_PolicyEnforcerOptions as PolicyEnforcerOptions, type index_PolicyViolation as PolicyViolation, index_auditTrail as auditTrail, index_complianceSnapshot as complianceSnapshot, index_policyEnforcer as policyEnforcer, index_reactiveExplainPath as reactiveExplainPath };
|
|
243
249
|
}
|
|
244
250
|
|
|
245
|
-
export { type AuditEntry as A, type ComplianceSnapshotOptions as C, PolicyEnforcerGraph as P, type PolicyViolation as a,
|
|
251
|
+
export { type AuditEntry as A, type ComplianceSnapshotOptions as C, PolicyEnforcerGraph as P, type PolicyViolation as a, AuditTrailGraph as b, type AuditTrailOptions as c, type ComplianceSnapshotResult as d, type PolicyEnforcerOptions as e, auditTrail as f, complianceSnapshot as g, index as i, policyEnforcer as p, reactiveExplainPath as r };
|