@graphrefly/graphrefly 0.26.0 → 0.28.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-B-5zmAUv.d.cts +180 -0
- package/dist/cascading-D9WG1-9L.d.ts +180 -0
- package/dist/chunk-2FOAM3OR.js +1 -0
- package/dist/chunk-2PMCKKRK.js +1 -0
- package/dist/chunk-3JXNEPCD.js +2 -0
- package/dist/chunk-3R5HFPX7.js +78 -0
- package/dist/chunk-4GKB4OUJ.js +1 -0
- package/dist/chunk-4VVTGLXJ.js +1 -0
- package/dist/chunk-5QDBSZBV.js +1 -0
- package/dist/chunk-6QZNQS5B.js +1 -0
- package/dist/chunk-6V3SEX2I.js +1 -0
- package/dist/chunk-76A3HVQE.js +9 -0
- package/dist/chunk-7H6LGFUG.js +64 -0
- package/dist/chunk-CK2E7BTU.js +1 -0
- package/dist/chunk-CKCSDI7T.js +6 -0
- package/dist/chunk-CRXTH3SH.js +1 -0
- package/dist/chunk-CWLN3X3N.js +1 -0
- package/dist/chunk-D7A7DBE4.js +1 -0
- package/dist/chunk-DBGGMN3D.js +1 -0
- package/dist/chunk-DQA3UIQ2.js +1 -0
- package/dist/chunk-ERLIRFPA.js +1 -0
- package/dist/chunk-ESMPEKEV.js +1 -0
- package/dist/chunk-ETWTCCJI.js +1 -0
- package/dist/chunk-FNYWM6JC.js +1 -0
- package/dist/chunk-GHJJR5P4.js +1 -0
- package/dist/chunk-GPW2V3RE.js +1 -0
- package/dist/chunk-I6VIH3VA.js +1 -0
- package/dist/chunk-K2GNMCQT.js +1 -0
- package/dist/chunk-LBTDSCCO.js +3 -0
- package/dist/chunk-LQ3Y5NJS.js +1 -0
- package/dist/chunk-MIQTDPY4.js +5 -0
- package/dist/chunk-MTTAAPCK.js +1 -0
- package/dist/chunk-OAWLCNJJ.js +1 -0
- package/dist/chunk-OBKQQA5I.js +1 -0
- package/dist/chunk-OYHGKYQM.js +1 -0
- package/dist/chunk-PIOGHC63.js +1 -0
- package/dist/chunk-QWAPKG3O.js +2 -0
- package/dist/chunk-QYADASLV.js +1 -0
- package/dist/chunk-RHESUC3V.js +43 -0
- package/dist/chunk-S35VARIR.js +1 -0
- package/dist/chunk-SC3U7ETD.js +1 -0
- package/dist/chunk-U3AICJKU.js +1 -0
- package/dist/chunk-UMBIDLJ4.js +1 -0
- package/dist/chunk-UPHHLMHE.js +1 -0
- package/dist/chunk-UPXUCFMX.js +1 -0
- package/dist/chunk-UWJE5FQA.js +18 -0
- package/dist/chunk-V6YQICXZ.js +1 -0
- package/dist/chunk-VIMF6LGM.js +1 -0
- package/dist/chunk-VJLMUKOI.js +1 -0
- package/dist/chunk-VPYBOXVT.js +1 -0
- package/dist/chunk-VTPVOGHH.js +1 -0
- package/dist/chunk-WQ2BN6X6.js +1 -0
- package/dist/chunk-XAUNPIMX.js +1 -0
- package/dist/chunk-Y2EMPB3I.js +1 -0
- package/dist/chunk-Z4HDAS2Q.js +1 -0
- package/dist/chunk-ZB5EHBIO.js +1 -0
- package/dist/chunk-ZV2DXV5A.js +23 -0
- package/dist/compat/index.cjs +14 -7656
- package/dist/compat/index.d.cts +15 -14
- package/dist/compat/index.d.ts +15 -14
- package/dist/compat/index.js +1 -49
- 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 +14 -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 -82
- 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 +6 -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-B-xqw4Kk.d.cts +69 -0
- package/dist/composite-BhbKHbOS.d.ts +69 -0
- package/dist/core/index.cjs +1 -2271
- package/dist/core/index.d.cts +4 -3
- package/dist/core/index.d.ts +4 -3
- 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 +23 -9971
- package/dist/extra/index.d.cts +13 -5
- package/dist/extra/index.d.ts +13 -5
- package/dist/extra/index.js +1 -375
- 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 +6 -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-6tZ5jEzr.d.cts → graph-BZGRXwOm.d.ts} +134 -31
- package/dist/{graph-DQ69XU0g.d.ts → graph-D48Qw9Cg.d.cts} +134 -31
- package/dist/index-8FSVk4Uf.d.ts +135 -0
- package/dist/index-9oDeHH2u.d.cts +291 -0
- package/dist/index-B0c4cmIO.d.ts +207 -0
- package/dist/{index-CDAjUFIv.d.ts → index-B1AmmSlb.d.ts} +1 -1
- package/dist/{index-Bd_fwmLf.d.cts → index-B2pwesl9.d.cts} +1 -1
- package/dist/index-BHvIquRZ.d.ts +1957 -0
- package/dist/{index-CPgZ5wRl.d.ts → index-BVHOrDwO.d.ts} +1 -1
- package/dist/{index-DrISNAOm.d.ts → index-BWJV63ti.d.ts} +1 -1
- package/dist/{index-B_IP40nB.d.cts → index-B_agccPe.d.cts} +1 -1
- package/dist/index-BgyGlizc.d.ts +163 -0
- package/dist/index-BpA5c4G9.d.ts +357 -0
- package/dist/index-BpIFjILY.d.cts +357 -0
- package/dist/{index-qldRdbQw.d.ts → index-Bqachn9_.d.ts} +1 -1
- package/dist/index-Btib9rsU.d.ts +607 -0
- package/dist/{index-BYOHF0zP.d.ts → index-BwM9BEkt.d.ts} +1 -1
- package/dist/index-BxJ86YZZ.d.cts +105 -0
- package/dist/index-C73n7lo-.d.cts +251 -0
- package/dist/index-CEXXwWVH.d.cts +192 -0
- package/dist/index-CHEswufn.d.cts +163 -0
- package/dist/{index-xdGjv0nO.d.ts → index-CMn8S8Hw.d.ts} +1 -1
- package/dist/{index-QBpffFW-.d.cts → index-CRO83MmV.d.cts} +1 -1
- package/dist/{index-BjI6ty9z.d.ts → index-CloUk1kY.d.ts} +9 -9
- package/dist/index-CpgYhnrG.d.ts +291 -0
- package/dist/{index-CUyrtuOf.d.cts → index-Cyojz0AE.d.cts} +1 -1
- package/dist/{demo-shell-DEp-nMTl.d.ts → index-CzobVSMr.d.ts} +14 -14
- package/dist/index-Czq6ynh8.d.ts +143 -0
- package/dist/index-D-YB-Vl3.d.ts +195 -0
- package/dist/index-DAlweici.d.ts +231 -0
- package/dist/index-DEwTb_fm.d.cts +1957 -0
- package/dist/{index-DFhjO4Gg.d.cts → index-DL-rYJrx.d.cts} +1 -1
- package/dist/index-DP4ZTkdw.d.ts +139 -0
- package/dist/{index-BeIdBfcb.d.cts → index-DUqMOlKZ.d.cts} +200 -2366
- package/dist/{index-Bxb5ZYc9.d.cts → index-D_NwnRYS.d.cts} +1 -1
- package/dist/index-DaLJvH8Z.d.ts +105 -0
- package/dist/index-DcXZBF5a.d.cts +135 -0
- package/dist/index-DfyOkTvs.d.ts +321 -0
- package/dist/{index-CmnuOibw.d.ts → index-DiOXyAwt.d.ts} +1 -1
- package/dist/index-DpHe5e0Q.d.ts +186 -0
- package/dist/index-DraikLjn.d.ts +86 -0
- package/dist/{index-BEfE8H_G.d.cts → index-DxsnAMWD.d.cts} +9 -9
- package/dist/index-DyxjtScX.d.cts +207 -0
- package/dist/index-HDpJe9hX.d.ts +251 -0
- package/dist/index-O6TgGUBV.d.cts +195 -0
- package/dist/{index-B4MP_8V_.d.cts → index-Oi8d8w4R.d.cts} +1 -1
- package/dist/{index-BW1z3BN9.d.ts → index-ROpQmGjE.d.ts} +30 -6
- package/dist/index-RukJ4DLS.d.cts +607 -0
- package/dist/{index-DdD5MVDL.d.ts → index-ZftwfxJM.d.ts} +200 -2366
- package/dist/{index-CuYwdKO-.d.ts → index-cByzxQIC.d.cts} +10 -195
- package/dist/index-dtN7YA2x.d.cts +143 -0
- package/dist/{index-C8mdwMXc.d.cts → index-fM6y00vT.d.cts} +30 -6
- package/dist/{index-_oMEWlDq.d.cts → index-m-yHof5p.d.ts} +10 -195
- package/dist/index-pXrDMpRO.d.cts +231 -0
- package/dist/index-rHJSKsU8.d.cts +186 -0
- package/dist/index-rX8HBM5h.d.cts +321 -0
- package/dist/{index-CUwyr1Kk.d.cts → index-rnwQly8X.d.cts} +147 -20
- package/dist/index-sm373fsH.d.ts +192 -0
- package/dist/index-tbf2gKHd.d.cts +139 -0
- package/dist/{demo-shell-26p5fVxn.d.cts → index-u15meRxL.d.cts} +14 -14
- package/dist/{index-eJ6T_qGM.d.ts → index-umtoWT8K.d.ts} +147 -20
- package/dist/index-vscRDkjW.d.cts +86 -0
- package/dist/index.cjs +150 -24142
- package/dist/index.d.cts +69 -3756
- package/dist/index.d.ts +69 -3756
- package/dist/index.js +1 -7292
- package/dist/{meta-C0-8XW6Q.d.cts → meta-Cgj6zeji.d.cts} +5 -5
- package/dist/{meta-BGqSZ7mt.d.ts → meta-CwesDrMD.d.ts} +5 -5
- package/dist/{node-C_IBuvX2.d.cts → node-Cc1TniY8.d.cts} +36 -9
- package/dist/{node-C_IBuvX2.d.ts → node-Cc1TniY8.d.ts} +36 -9
- package/dist/{observable-DCk45RH5.d.ts → observable-Ct-gJ9jI.d.ts} +1 -1
- package/dist/{observable-Crr1jgzx.d.cts → observable-glXQoGj2.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 +91 -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 +6 -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 +6 -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 +7 -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 +6 -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 +83 -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 +6 -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 +48 -0
- package/dist/patterns/harness/index.d.cts +8 -0
- package/dist/patterns/harness/index.d.ts +8 -0
- package/dist/patterns/harness/index.js +1 -0
- package/dist/patterns/job-queue/index.cjs +6 -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 +6 -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 +6 -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 +6 -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 +6 -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 +7 -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 +6 -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 +8 -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 +14 -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-BaOQefHu.d.cts → reactive-layout-CpYb5qLP.d.cts} +2 -2
- package/dist/{reactive-layout-D9gejYXE.d.ts → reactive-layout-D8u4wuUR.d.ts} +2 -2
- package/dist/reactive-log-DPzuUDj5.d.cts +190 -0
- package/dist/reactive-log-YuH9VYN8.d.ts +190 -0
- package/dist/reactive-map-CdbNoSgP.d.ts +238 -0
- package/dist/reactive-map-DUeRmb9d.d.cts +238 -0
- package/dist/resilience-Ba5-b4WD.d.cts +493 -0
- package/dist/resilience-CGRzhnD3.d.ts +493 -0
- package/dist/resilience-QAHKANT5.js +1 -0
- package/dist/sugar-BV0htudb.d.cts +205 -0
- package/dist/sugar-Dtyrq2_q.d.ts +205 -0
- package/dist/topology-tree-CYHOwQZ_.d.ts +25 -0
- package/dist/topology-tree-DROUdq5B.d.cts +25 -0
- package/dist/types-O3GzJY2U.d.cts +401 -0
- package/dist/types-u64Ose53.d.ts +401 -0
- package/package.json +267 -7
- package/dist/chunk-3ZWCKRHX.js +0 -117
- package/dist/chunk-3ZWCKRHX.js.map +0 -1
- package/dist/chunk-6LDQFTYS.js +0 -102
- package/dist/chunk-6LDQFTYS.js.map +0 -1
- package/dist/chunk-7TAQJHQV.js +0 -103
- package/dist/chunk-7TAQJHQV.js.map +0 -1
- package/dist/chunk-AMCG74RZ.js +0 -7000
- package/dist/chunk-AMCG74RZ.js.map +0 -1
- package/dist/chunk-BVZYTZ5H.js +0 -599
- package/dist/chunk-BVZYTZ5H.js.map +0 -1
- package/dist/chunk-FQMKGR6L.js +0 -330
- package/dist/chunk-FQMKGR6L.js.map +0 -1
- package/dist/chunk-HXZEYDUR.js +0 -94
- package/dist/chunk-HXZEYDUR.js.map +0 -1
- package/dist/chunk-IZYUSJC7.js +0 -1369
- package/dist/chunk-IZYUSJC7.js.map +0 -1
- package/dist/chunk-J22W6HV3.js +0 -107
- package/dist/chunk-J22W6HV3.js.map +0 -1
- package/dist/chunk-JSCT3CR4.js +0 -38
- package/dist/chunk-JSCT3CR4.js.map +0 -1
- package/dist/chunk-JYXEWPH4.js +0 -62
- package/dist/chunk-JYXEWPH4.js.map +0 -1
- package/dist/chunk-LCE3GF5P.js +0 -866
- package/dist/chunk-LCE3GF5P.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-OHISZPOJ.js +0 -97
- package/dist/chunk-OHISZPOJ.js.map +0 -1
- package/dist/chunk-PHOUUNK7.js +0 -2291
- package/dist/chunk-PHOUUNK7.js.map +0 -1
- package/dist/chunk-RB6QPHJ7.js +0 -393
- package/dist/chunk-RB6QPHJ7.js.map +0 -1
- package/dist/chunk-SN4YWWYO.js +0 -171
- package/dist/chunk-SN4YWWYO.js.map +0 -1
- package/dist/chunk-SX52TAR4.js +0 -110
- package/dist/chunk-SX52TAR4.js.map +0 -1
- package/dist/chunk-THTWHNU4.js +0 -2712
- package/dist/chunk-THTWHNU4.js.map +0 -1
- package/dist/chunk-VYPWMZ6H.js +0 -98
- package/dist/chunk-VYPWMZ6H.js.map +0 -1
- package/dist/chunk-XGPU467M.js +0 -136
- package/dist/chunk-XGPU467M.js.map +0 -1
- package/dist/chunk-ZQMEI34O.js +0 -713
- package/dist/chunk-ZQMEI34O.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-C0ZXMaXO.d.cts +0 -392
- package/dist/index-CY2TljO4.d.ts +0 -392
- package/dist/index.cjs.map +0 -1
- package/dist/index.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/reactive-layout/index.cjs.map +0 -1
- package/dist/patterns/reactive-layout/index.js.map +0 -1
- package/dist/storage-BMycWEh2.d.ts +0 -190
- package/dist/storage-DiqWHzVI.d.cts +0 -190
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { a as Node } from './node-Cc1TniY8.cjs';
|
|
2
|
+
import { R as ReactiveMapBundle } from './reactive-map-DUeRmb9d.cjs';
|
|
3
|
+
import { a as GraphOptions, G as Graph, C as CausalChain } from './graph-D48Qw9Cg.cjs';
|
|
4
|
+
import { w as watchTopologyTree } from './topology-tree-DROUdq5B.cjs';
|
|
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,12 +1,12 @@
|
|
|
1
|
-
import { i as index$2 } from './index-
|
|
2
|
-
import { i as index$3 } from './index-
|
|
3
|
-
import { i as index$4 } from './index-
|
|
4
|
-
import { i as index$5 } from './index-
|
|
5
|
-
import {
|
|
6
|
-
import { i as index$6 } from './index-
|
|
7
|
-
import { i as index$7 } from './index-
|
|
8
|
-
import { i as index$8 } from './index-
|
|
9
|
-
import { i as index$9 } from './index-
|
|
1
|
+
import { i as index$2 } from './index-Bqachn9_.js';
|
|
2
|
+
import { i as index$3 } from './index-CMn8S8Hw.js';
|
|
3
|
+
import { i as index$4 } from './index-m-yHof5p.js';
|
|
4
|
+
import { i as index$5 } from './index-BVHOrDwO.js';
|
|
5
|
+
import { a as Node } from './node-Cc1TniY8.js';
|
|
6
|
+
import { i as index$6 } from './index-B1AmmSlb.js';
|
|
7
|
+
import { i as index$7 } from './index-BWJV63ti.js';
|
|
8
|
+
import { i as index$8 } from './index-BwM9BEkt.js';
|
|
9
|
+
import { i as index$9 } from './index-DiOXyAwt.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Options for creating signals.
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { j as CompileSpecOptions, G as GraphSpec, c as GraphSpecCatalog, C as CatalogFnEntry, a as CatalogSourceEntry, b as ConfigFieldSchema, F as FnFactory, d as GraphSpecFeedbackEdge, e as GraphSpecNode, f as GraphSpecTemplate, g as GraphSpecTemplateRef, h as GraphSpecValidation, S as SourceFactory } from './index-DfyOkTvs.js';
|
|
2
|
+
import { G as Graph, o as GraphNodeFactory, m as GraphDiffResult } from './graph-BZGRXwOm.js';
|
|
3
|
+
import { StorageTier } from './extra/storage-core.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Surface: create a graph from a {@link GraphSpec} (§9.3-core).
|
|
7
|
+
*
|
|
8
|
+
* Thin wrapper over {@link compileSpec} that converts the two failure modes
|
|
9
|
+
* ({@link validateSpec} structural errors, and catalog-aware validation
|
|
10
|
+
* errors) into typed {@link SurfaceError} throws. Consumers are MCP/CLI
|
|
11
|
+
* wrappers, not end-user graph code — those should import `compileSpec`
|
|
12
|
+
* directly.
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** Options for {@link createGraph}. Same shape as {@link CompileSpecOptions}. */
|
|
18
|
+
type CreateGraphOptions = CompileSpecOptions;
|
|
19
|
+
/**
|
|
20
|
+
* Build a {@link Graph} from a parsed {@link GraphSpec} with surface-layer
|
|
21
|
+
* error typing.
|
|
22
|
+
*
|
|
23
|
+
* @throws {SurfaceError} `invalid-spec` for structural errors;
|
|
24
|
+
* `catalog-error` when fn/source names or config don't match the catalog.
|
|
25
|
+
*/
|
|
26
|
+
declare function createGraph(spec: GraphSpec, opts?: CreateGraphOptions): Graph;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Typed errors for the surface layer (§9.3-core).
|
|
30
|
+
*
|
|
31
|
+
* The surface layer is consumed by `@graphrefly/mcp-server` and
|
|
32
|
+
* `@graphrefly/cli`. Both have native error channels (MCP's `isError` flag,
|
|
33
|
+
* CLI's exit codes), so surface functions throw a {@link SurfaceError}
|
|
34
|
+
* carrying a structured code + details payload that wrappers can map to
|
|
35
|
+
* their native shape. No `Result` envelope — keep the callsite idiom
|
|
36
|
+
* `try/catch` and let each wrapper surface the error its own way.
|
|
37
|
+
*
|
|
38
|
+
* @module
|
|
39
|
+
*/
|
|
40
|
+
/** Structured error codes emitted by the surface layer. JSON-safe. */
|
|
41
|
+
type SurfaceErrorCode = "invalid-spec" | "graph-not-found" | "graph-exists" | "snapshot-not-found" | "node-not-found" | "reduce-timeout" | "catalog-error" | "restore-failed" | "snapshot-failed" | "tier-no-list" | "compose-not-configured" | "compose-failed" | "internal-error";
|
|
42
|
+
/** JSON-safe shape surfaces should echo back through the wrapper. */
|
|
43
|
+
interface SurfaceErrorPayload {
|
|
44
|
+
code: SurfaceErrorCode;
|
|
45
|
+
message: string;
|
|
46
|
+
/** Optional structured detail; must be JSON-safe. */
|
|
47
|
+
details?: Readonly<Record<string, unknown>>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Thrown by surface layer functions on failure. `code` is the stable
|
|
51
|
+
* machine-readable identifier; `details` carries structured context
|
|
52
|
+
* (e.g. `validateSpec` errors, missing path name). Both fields round-trip
|
|
53
|
+
* through `toJSON()` for wrappers that serialize errors over the wire.
|
|
54
|
+
*/
|
|
55
|
+
declare class SurfaceError extends Error {
|
|
56
|
+
readonly code: SurfaceErrorCode;
|
|
57
|
+
readonly details?: Readonly<Record<string, unknown>>;
|
|
58
|
+
constructor(code: SurfaceErrorCode, message: string, details?: Readonly<Record<string, unknown>>);
|
|
59
|
+
/**
|
|
60
|
+
* JSON-safe payload for wire serialization. Defensively validates
|
|
61
|
+
* `details` — if it can't be round-tripped through `JSON.stringify`
|
|
62
|
+
* (cyclic refs, `BigInt`, `Error` instance not pre-toJSON'd), the
|
|
63
|
+
* payload falls back to `{code, message}` only rather than crashing
|
|
64
|
+
* the MCP/CLI wrapper when it serializes this error onto the wire.
|
|
65
|
+
*/
|
|
66
|
+
toJSON(): SurfaceErrorPayload;
|
|
67
|
+
}
|
|
68
|
+
/** Wrap any thrown value as a SurfaceError. Idempotent on existing SurfaceError. */
|
|
69
|
+
declare function asSurfaceError(err: unknown, fallbackCode?: SurfaceErrorCode): SurfaceError;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Surface: one-shot `input → pipeline → output` (§9.3-core).
|
|
73
|
+
*
|
|
74
|
+
* `runReduction` compiles a {@link GraphSpec}, pushes an input value to a
|
|
75
|
+
* named state node, awaits the first post-push DATA emission on a named
|
|
76
|
+
* output, then disposes the graph. Stateless per call — no graphId, no
|
|
77
|
+
* registry.
|
|
78
|
+
*
|
|
79
|
+
* Named `runReduction` (not `reduce`) to avoid collision with the
|
|
80
|
+
* reactive {@link reduce} operator in `extra/operators.ts`. The MCP tool
|
|
81
|
+
* name (`graphrefly_reduce`) and CLI subcommand (`graphrefly reduce`) use
|
|
82
|
+
* the short form; the library export carries the verb.
|
|
83
|
+
*
|
|
84
|
+
* The subscribe-before-push ordering is deliberate. `graph.set` propagates
|
|
85
|
+
* synchronously for sync derived/operator chains; for async sources
|
|
86
|
+
* (`fromPromise`, `fromAsyncIter`, LLM adapters) the first post-push DATA
|
|
87
|
+
* arrives on a later tick. Subscribing before the push catches both, and
|
|
88
|
+
* skipping the priming push-on-subscribe emission avoids resolving with the
|
|
89
|
+
* stale pre-push cache (spec §2.2).
|
|
90
|
+
*
|
|
91
|
+
* @module
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/** Options for {@link reduce}. */
|
|
95
|
+
interface ReduceOptions {
|
|
96
|
+
/** Fn/source catalog for {@link createGraph}. */
|
|
97
|
+
catalog?: GraphSpecCatalog;
|
|
98
|
+
/** Path of the state node that receives the input. Default `"input"`. */
|
|
99
|
+
inputPath?: string;
|
|
100
|
+
/** Path of the node whose first post-push DATA is the result. Default `"output"`. */
|
|
101
|
+
outputPath?: string;
|
|
102
|
+
/** Hard deadline in milliseconds. Default `30_000`. */
|
|
103
|
+
timeoutMs?: number;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Run a spec as a one-shot reduction: `input → graph → output`.
|
|
107
|
+
*
|
|
108
|
+
* Resolves on the first `[DATA, v]` **or** `[RESOLVED]` emitted by
|
|
109
|
+
* `outputPath` after the input push. The RESOLVED path handles spec
|
|
110
|
+
* §1.3.3 equals-substitution (output recomputed to a value equal to its
|
|
111
|
+
* cache, so the graph skips the DATA push) by returning `outputNode.cache`
|
|
112
|
+
* — the caller always gets the settled value, never hangs on idempotent
|
|
113
|
+
* inputs.
|
|
114
|
+
*
|
|
115
|
+
* @throws {SurfaceError} `invalid-spec` / `catalog-error` (propagated from
|
|
116
|
+
* {@link createGraph}), `node-not-found` when `inputPath`/`outputPath`
|
|
117
|
+
* can't be resolved, `reduce-timeout` when `timeoutMs` elapses without
|
|
118
|
+
* a post-push emission, or the ERROR payload from the graph re-thrown
|
|
119
|
+
* as `internal-error`.
|
|
120
|
+
*/
|
|
121
|
+
declare function runReduction(spec: GraphSpec, input: unknown, opts?: ReduceOptions): Promise<unknown>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Surface: snapshot save/restore/diff/list over {@link StorageTier} (§9.3-core).
|
|
125
|
+
*
|
|
126
|
+
* One-shot snapshot management for stateless callers (MCP tools, CLI
|
|
127
|
+
* commands) layered on the existing multi-tier auto-checkpoint substrate.
|
|
128
|
+
* A saved snapshot is a `mode: "full"` {@link GraphCheckpointRecord} with
|
|
129
|
+
* `seq: 0` — byte-identical to the baseline anchor
|
|
130
|
+
* {@link Graph.attachStorage} writes on its first flush. An
|
|
131
|
+
* auto-checkpointed graph can therefore be restored through this surface,
|
|
132
|
+
* and a surface-saved snapshot can be picked up by `attachStorage({
|
|
133
|
+
* autoRestore: true })`.
|
|
134
|
+
*
|
|
135
|
+
* The wire envelope stays at {@link SNAPSHOT_WIRE_VERSION}; no new format.
|
|
136
|
+
*
|
|
137
|
+
* @module
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Current envelope version. Re-exported from `graph.ts` so the one-shot
|
|
142
|
+
* surface path and `Graph.attachStorage` write byte-identical
|
|
143
|
+
* `format_version` fields — no silent wire drift.
|
|
144
|
+
*/
|
|
145
|
+
declare const SNAPSHOT_WIRE_VERSION = 1;
|
|
146
|
+
/** Shape returned by {@link saveSnapshot}. */
|
|
147
|
+
interface SaveSnapshotResult {
|
|
148
|
+
snapshotId: string;
|
|
149
|
+
timestamp_ns: number;
|
|
150
|
+
}
|
|
151
|
+
/** Options for {@link restoreSnapshot}. */
|
|
152
|
+
interface RestoreSnapshotOptions {
|
|
153
|
+
/** Passthrough to `Graph.fromSnapshot`. First matching pattern wins. */
|
|
154
|
+
factories?: Record<string, GraphNodeFactory>;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Write a graph's current state as a one-shot `mode: "full"` record.
|
|
158
|
+
*
|
|
159
|
+
* Uses the same {@link GraphCheckpointRecord} envelope as
|
|
160
|
+
* {@link Graph.attachStorage} so the two persistence paths interoperate.
|
|
161
|
+
*
|
|
162
|
+
* @throws {SurfaceError} `snapshot-failed` when the tier's `save` throws.
|
|
163
|
+
*/
|
|
164
|
+
declare function saveSnapshot(graph: Graph, snapshotId: string, tier: StorageTier): Promise<SaveSnapshotResult>;
|
|
165
|
+
/**
|
|
166
|
+
* Load a snapshot from a tier and materialize it as a new {@link Graph}.
|
|
167
|
+
*
|
|
168
|
+
* Uses {@link Graph.fromSnapshot} to reconstruct topology; pass
|
|
169
|
+
* `factories` when the graph includes non-state nodes that the default
|
|
170
|
+
* hydrator can't rebuild on its own.
|
|
171
|
+
*
|
|
172
|
+
* **Requires a `mode: "full"` record.** Surface-written snapshots from
|
|
173
|
+
* {@link saveSnapshot} always qualify. Records written by
|
|
174
|
+
* {@link Graph.attachStorage} with `compactEvery > 1` may be
|
|
175
|
+
* `mode: "diff"` between compacts — those throw `restore-failed` until
|
|
176
|
+
* the tier's next compact flush (or until Phase 8.7 WAL replay lands).
|
|
177
|
+
* If you need interop during development, either call
|
|
178
|
+
* {@link saveSnapshot} explicitly (always full) or configure
|
|
179
|
+
* `attachStorage({compactEvery: 1})`.
|
|
180
|
+
*
|
|
181
|
+
* @throws {SurfaceError} `snapshot-not-found` on miss; `restore-failed`
|
|
182
|
+
* when the payload shape doesn't match, when the record is
|
|
183
|
+
* `mode: "diff"`, or when `Graph.fromSnapshot` rejects.
|
|
184
|
+
*/
|
|
185
|
+
declare function restoreSnapshot(snapshotId: string, tier: StorageTier, opts?: RestoreSnapshotOptions): Promise<Graph>;
|
|
186
|
+
/**
|
|
187
|
+
* Load two snapshots and compute a {@link GraphDiffResult} via static
|
|
188
|
+
* {@link Graph.diff}. Returns the audit shape (structural + value diff,
|
|
189
|
+
* no payload); use {@link diffForWAL} directly for WAL-oriented diffs.
|
|
190
|
+
*
|
|
191
|
+
* @throws {SurfaceError} `snapshot-not-found` on either miss.
|
|
192
|
+
*/
|
|
193
|
+
declare function diffSnapshots(snapshotIdA: string, snapshotIdB: string, tier: StorageTier): Promise<GraphDiffResult>;
|
|
194
|
+
/**
|
|
195
|
+
* Enumerate snapshot ids on a tier.
|
|
196
|
+
*
|
|
197
|
+
* Only keys written by {@link saveSnapshot} are returned. Surface-written
|
|
198
|
+
* records are stored under the `"snapshot:"` key prefix and decoded back to
|
|
199
|
+
* the caller-visible id before being returned — other keys on the same tier
|
|
200
|
+
* (notably `attachStorage` baseline/WAL keys written under `graph.name`) are
|
|
201
|
+
* filtered out automatically. This lets a single tier back both the surface
|
|
202
|
+
* and `attachStorage` without leaking graph names through `listSnapshots`.
|
|
203
|
+
*
|
|
204
|
+
* @param tier — the storage tier to enumerate.
|
|
205
|
+
* @param opts.includeUnprefixed — when `true`, also return keys that are
|
|
206
|
+
* NOT under the namespacing prefix. Off by default; set this when reading
|
|
207
|
+
* pre-namespacing snapshot sets.
|
|
208
|
+
*
|
|
209
|
+
* **Caveat:** when a tier is shared with {@link Graph.attachStorage}, its
|
|
210
|
+
* auto-checkpoint baseline + WAL keys (written under `graph.name`) are
|
|
211
|
+
* unprefixed. Calling with `includeUnprefixed: true` returns those keys
|
|
212
|
+
* alongside surface snapshots — and subsequent `restoreSnapshot` /
|
|
213
|
+
* `deleteSnapshot` will operate on them via the fallback-lookup path,
|
|
214
|
+
* potentially overwriting or deleting live auto-checkpoint state. Use
|
|
215
|
+
* `includeUnprefixed` only against tiers you know are NOT shared with
|
|
216
|
+
* `attachStorage`, or follow up with a predicate filter to separate
|
|
217
|
+
* ids you own from ones owned by other subsystems.
|
|
218
|
+
*
|
|
219
|
+
* @throws {SurfaceError} `tier-no-list` when the tier does not implement
|
|
220
|
+
* the optional `list()` method. Check `typeof tier.list === "function"`
|
|
221
|
+
* before calling if you want to branch on capability.
|
|
222
|
+
*/
|
|
223
|
+
declare function listSnapshots(tier: StorageTier, opts?: {
|
|
224
|
+
includeUnprefixed?: boolean;
|
|
225
|
+
}): Promise<readonly string[]>;
|
|
226
|
+
/**
|
|
227
|
+
* Delete a snapshot from a tier.
|
|
228
|
+
*
|
|
229
|
+
* Silent on miss (clear semantics). `tier.clear` is optional — throws
|
|
230
|
+
* `snapshot-failed` when the tier is append-only.
|
|
231
|
+
*
|
|
232
|
+
* @throws {SurfaceError} `snapshot-failed` when `clear` is unsupported
|
|
233
|
+
* or throws.
|
|
234
|
+
*/
|
|
235
|
+
declare function deleteSnapshot(snapshotId: string, tier: StorageTier): Promise<void>;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Surface layer (§9.3-core) — shared, JSON-safe operations consumed by
|
|
239
|
+
* `@graphrefly/mcp-server` and `@graphrefly/cli`.
|
|
240
|
+
*
|
|
241
|
+
* The surface is a thin projection of existing Graph APIs (`describe`,
|
|
242
|
+
* `observe`, `explain`, `snapshot`, `restore`, static `diff`), plus two
|
|
243
|
+
* genuinely new operations:
|
|
244
|
+
*
|
|
245
|
+
* 1. {@link createGraph} — `compileSpec` wrapped with typed surface errors.
|
|
246
|
+
* 2. {@link reduce} — one-shot `input → pipeline → output`.
|
|
247
|
+
*
|
|
248
|
+
* Snapshot persistence reuses the {@link StorageTier} substrate introduced
|
|
249
|
+
* for `Graph.attachStorage`, so one-shot snapshots and auto-checkpoints
|
|
250
|
+
* share the {@link GraphCheckpointRecord} envelope. No new wire format.
|
|
251
|
+
*
|
|
252
|
+
* Errors throw as {@link SurfaceError} — wrappers map to their native
|
|
253
|
+
* error channel (MCP `isError`, CLI exit code). No `Result<T, E>` wrapper.
|
|
254
|
+
*
|
|
255
|
+
* @module
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
declare const index_CatalogFnEntry: typeof CatalogFnEntry;
|
|
259
|
+
declare const index_CatalogSourceEntry: typeof CatalogSourceEntry;
|
|
260
|
+
declare const index_ConfigFieldSchema: typeof ConfigFieldSchema;
|
|
261
|
+
type index_CreateGraphOptions = CreateGraphOptions;
|
|
262
|
+
declare const index_FnFactory: typeof FnFactory;
|
|
263
|
+
declare const index_GraphSpec: typeof GraphSpec;
|
|
264
|
+
declare const index_GraphSpecCatalog: typeof GraphSpecCatalog;
|
|
265
|
+
declare const index_GraphSpecFeedbackEdge: typeof GraphSpecFeedbackEdge;
|
|
266
|
+
declare const index_GraphSpecNode: typeof GraphSpecNode;
|
|
267
|
+
declare const index_GraphSpecTemplate: typeof GraphSpecTemplate;
|
|
268
|
+
declare const index_GraphSpecTemplateRef: typeof GraphSpecTemplateRef;
|
|
269
|
+
declare const index_GraphSpecValidation: typeof GraphSpecValidation;
|
|
270
|
+
type index_ReduceOptions = ReduceOptions;
|
|
271
|
+
type index_RestoreSnapshotOptions = RestoreSnapshotOptions;
|
|
272
|
+
declare const index_SNAPSHOT_WIRE_VERSION: typeof SNAPSHOT_WIRE_VERSION;
|
|
273
|
+
type index_SaveSnapshotResult = SaveSnapshotResult;
|
|
274
|
+
declare const index_SourceFactory: typeof SourceFactory;
|
|
275
|
+
type index_SurfaceError = SurfaceError;
|
|
276
|
+
declare const index_SurfaceError: typeof SurfaceError;
|
|
277
|
+
type index_SurfaceErrorCode = SurfaceErrorCode;
|
|
278
|
+
type index_SurfaceErrorPayload = SurfaceErrorPayload;
|
|
279
|
+
declare const index_asSurfaceError: typeof asSurfaceError;
|
|
280
|
+
declare const index_createGraph: typeof createGraph;
|
|
281
|
+
declare const index_deleteSnapshot: typeof deleteSnapshot;
|
|
282
|
+
declare const index_diffSnapshots: typeof diffSnapshots;
|
|
283
|
+
declare const index_listSnapshots: typeof listSnapshots;
|
|
284
|
+
declare const index_restoreSnapshot: typeof restoreSnapshot;
|
|
285
|
+
declare const index_runReduction: typeof runReduction;
|
|
286
|
+
declare const index_saveSnapshot: typeof saveSnapshot;
|
|
287
|
+
declare namespace index {
|
|
288
|
+
export { index_CatalogFnEntry as CatalogFnEntry, index_CatalogSourceEntry as CatalogSourceEntry, index_ConfigFieldSchema as ConfigFieldSchema, type index_CreateGraphOptions as CreateGraphOptions, index_FnFactory as FnFactory, index_GraphSpec as GraphSpec, index_GraphSpecCatalog as GraphSpecCatalog, index_GraphSpecFeedbackEdge as GraphSpecFeedbackEdge, index_GraphSpecNode as GraphSpecNode, index_GraphSpecTemplate as GraphSpecTemplate, index_GraphSpecTemplateRef as GraphSpecTemplateRef, index_GraphSpecValidation as GraphSpecValidation, type index_ReduceOptions as ReduceOptions, type index_RestoreSnapshotOptions as RestoreSnapshotOptions, index_SNAPSHOT_WIRE_VERSION as SNAPSHOT_WIRE_VERSION, type index_SaveSnapshotResult as SaveSnapshotResult, index_SourceFactory as SourceFactory, index_SurfaceError as SurfaceError, type index_SurfaceErrorCode as SurfaceErrorCode, type index_SurfaceErrorPayload as SurfaceErrorPayload, index_asSurfaceError as asSurfaceError, index_createGraph as createGraph, index_deleteSnapshot as deleteSnapshot, index_diffSnapshots as diffSnapshots, index_listSnapshots as listSnapshots, index_restoreSnapshot as restoreSnapshot, index_runReduction as runReduction, index_saveSnapshot as saveSnapshot };
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export { type CreateGraphOptions as C, type ReduceOptions as R, SNAPSHOT_WIRE_VERSION as S, type RestoreSnapshotOptions as a, type SaveSnapshotResult as b, SurfaceError as c, type SurfaceErrorCode as d, type SurfaceErrorPayload as e, asSurfaceError as f, createGraph as g, deleteSnapshot as h, diffSnapshots as i, runReduction as j, index as k, listSnapshots as l, restoreSnapshot as r, saveSnapshot as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as Graph } from './graph-
|
|
2
|
-
import { M as MeasurementAdapter } from './reactive-layout-
|
|
1
|
+
import { G as Graph } from './graph-BZGRXwOm.js';
|
|
2
|
+
import { M as MeasurementAdapter } from './reactive-layout-D8u4wuUR.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Three-pane demo shell (roadmap §7.2).
|
|
@@ -86,17 +86,17 @@ type DemoShellHandle = {
|
|
|
86
86
|
*/
|
|
87
87
|
declare function demoShell(opts?: DemoShellOptions): DemoShellHandle;
|
|
88
88
|
|
|
89
|
-
type
|
|
90
|
-
type
|
|
91
|
-
type
|
|
92
|
-
type
|
|
93
|
-
type
|
|
94
|
-
type
|
|
95
|
-
type
|
|
96
|
-
type
|
|
97
|
-
declare const
|
|
98
|
-
declare namespace
|
|
99
|
-
export { type
|
|
89
|
+
type index_DemoShellHandle = DemoShellHandle;
|
|
90
|
+
type index_DemoShellOptions = DemoShellOptions;
|
|
91
|
+
type index_FullscreenPane = FullscreenPane;
|
|
92
|
+
type index_GraphLabelSize = GraphLabelSize;
|
|
93
|
+
type index_HighlightCallbacks = HighlightCallbacks;
|
|
94
|
+
type index_HoverPaneType = HoverPaneType;
|
|
95
|
+
type index_HoverTarget = HoverTarget;
|
|
96
|
+
type index_NodeRegistry = NodeRegistry;
|
|
97
|
+
declare const index_demoShell: typeof demoShell;
|
|
98
|
+
declare namespace index {
|
|
99
|
+
export { type index_DemoShellHandle as DemoShellHandle, type index_DemoShellOptions as DemoShellOptions, type index_FullscreenPane as FullscreenPane, type index_GraphLabelSize as GraphLabelSize, type index_HighlightCallbacks as HighlightCallbacks, type index_HoverPaneType as HoverPaneType, type index_HoverTarget as HoverTarget, type index_NodeRegistry as NodeRegistry, index_demoShell as demoShell };
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export { type DemoShellHandle as D, type FullscreenPane as F, type GraphLabelSize as G, type HighlightCallbacks as H, type NodeRegistry as N, type DemoShellOptions as a, type HoverPaneType as b, type HoverTarget as c, demoShell
|
|
102
|
+
export { type DemoShellHandle as D, type FullscreenPane as F, type GraphLabelSize as G, type HighlightCallbacks as H, type NodeRegistry as N, type DemoShellOptions as a, type HoverPaneType as b, type HoverTarget as c, demoShell as d, index as i };
|