@graphrefly/graphrefly 0.37.0 → 0.39.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/budget-gate-CmmVtasH.d.ts +115 -0
- package/dist/budget-gate-DiP_nK0n.d.cts +115 -0
- package/dist/{cascading-BsJ4GbnS.d.ts → cascading-BzuxW0_w.d.cts} +2 -2
- package/dist/{cascading-B25wxpRa.d.cts → cascading-g2_rhhaM.d.ts} +2 -2
- package/dist/chunk-35JTVPOX.js +1 -0
- package/dist/chunk-3G5U5QNE.js +5 -0
- package/dist/chunk-4I45FVQS.js +1 -0
- package/dist/chunk-5LK7XMEV.js +1 -0
- package/dist/chunk-5XRI6RM3.js +1 -0
- package/dist/chunk-73PBQNST.js +1 -0
- package/dist/chunk-7JRF5YEK.js +3 -0
- package/dist/{chunk-YVYSO5CW.js → chunk-7NZMZJMW.js} +1 -1
- package/dist/chunk-7QFRK3N3.js +84 -0
- package/dist/{chunk-K6ZFJ473.js → chunk-7SD73DS6.js} +1 -1
- package/dist/{chunk-LOQRPP4Y.js → chunk-A6ZSKGUG.js} +1 -1
- package/dist/{chunk-KUVDFOJH.js → chunk-AU7YTQX7.js} +1 -1
- package/dist/chunk-C72GO4IZ.js +1 -0
- package/dist/{chunk-Q7EUZ6NN.js → chunk-CGDMTXSY.js} +1 -1
- package/dist/chunk-D27JNOLZ.js +1 -0
- package/dist/chunk-D47YVDR5.js +1 -0
- package/dist/chunk-EWF7KCDJ.js +61 -0
- package/dist/{chunk-PCD2MU7X.js → chunk-GEAO3TL3.js} +1 -1
- package/dist/chunk-GX5LSSRE.js +1 -0
- package/dist/{chunk-2C4NESZE.js → chunk-HAWKGIXM.js} +1 -1
- package/dist/chunk-HX3EGQ5Z.js +1 -0
- package/dist/{chunk-MQZWA3DF.js → chunk-IA7DUNGB.js} +1 -1
- package/dist/{chunk-MYFR67PY.js → chunk-INH6FS2G.js} +2 -2
- package/dist/chunk-INHC33EH.js +1 -0
- package/dist/chunk-IUB4NYI2.js +1 -0
- package/dist/{chunk-TFK4P4CX.js → chunk-JNMC2WJ6.js} +1 -1
- package/dist/{chunk-TLS7M7H4.js → chunk-KD4NHLMU.js} +1 -1
- package/dist/chunk-L6NSJVJZ.js +1 -0
- package/dist/chunk-L7WY6TZS.js +1 -0
- package/dist/chunk-LQNOXGET.js +1 -0
- package/dist/chunk-MC4UYY2X.js +1 -0
- package/dist/{chunk-U3COB5WU.js → chunk-N7UIBZCW.js} +1 -1
- package/dist/chunk-NQI2C36M.js +1 -0
- package/dist/chunk-R75BMDLA.js +1 -0
- package/dist/chunk-RF3QZP6D.js +1 -0
- package/dist/{chunk-MC5LZG3U.js → chunk-S2U57TFC.js} +1 -1
- package/dist/{chunk-QP5TH523.js → chunk-SC7BQDNP.js} +1 -1
- package/dist/{chunk-5CPPC75H.js → chunk-TFPZLQ5H.js} +1 -1
- package/dist/chunk-VJJLIEAL.js +1 -0
- package/dist/chunk-WHIZM6JV.js +1 -0
- package/dist/chunk-XEUANKBO.js +43 -0
- package/dist/chunk-XQ55HO5N.js +1 -0
- package/dist/chunk-ZJ7SM3G2.js +1 -0
- package/dist/{chunk-T4U24DXX.js → chunk-ZOX3LBRV.js} +1 -1
- package/dist/compat/index.cjs +9 -13
- package/dist/compat/index.d.cts +16 -16
- package/dist/compat/index.d.ts +16 -16
- package/dist/compat/index.js +1 -1
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nestjs/index.cjs +8 -12
- package/dist/compat/nestjs/index.d.cts +8 -8
- package/dist/compat/nestjs/index.d.ts +8 -8
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/zustand/index.cjs +3 -7
- package/dist/compat/zustand/index.d.cts +4 -4
- package/dist/compat/zustand/index.d.ts +4 -4
- package/dist/compat/zustand/index.js +1 -1
- package/dist/{composite-_XckYx2e.d.cts → composite-CKd0e2vz.d.cts} +10 -3
- package/dist/{composite-CT_mApQD.d.ts → composite-DGatA-JK.d.ts} +10 -3
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +1 -1
- package/dist/extra/browser.d.cts +1 -1
- package/dist/extra/browser.d.ts +1 -1
- package/dist/extra/index.cjs +17 -21
- package/dist/extra/index.d.cts +11 -9
- package/dist/extra/index.d.ts +11 -9
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +2 -2
- package/dist/extra/node.d.cts +108 -2
- package/dist/extra/node.d.ts +108 -2
- package/dist/extra/node.js +2 -2
- package/dist/extra/operators.cjs +1 -1
- package/dist/extra/operators.d.cts +1 -1
- package/dist/extra/operators.d.ts +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.cjs +1 -1
- package/dist/extra/reactive.d.cts +3 -3
- package/dist/extra/reactive.d.ts +3 -3
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/render/index.cjs +5 -0
- package/dist/extra/render/index.d.cts +183 -0
- package/dist/extra/render/index.d.ts +183 -0
- package/dist/extra/render/index.js +1 -0
- package/dist/extra/sources.cjs +1 -1
- package/dist/extra/sources.d.cts +1 -1
- package/dist/extra/sources.d.ts +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/extra/storage-browser.d.cts +1 -1
- package/dist/extra/storage-browser.d.ts +1 -1
- package/dist/extra/storage-tiers-browser.d.cts +76 -5
- package/dist/extra/storage-tiers-browser.d.ts +76 -5
- package/dist/extra/storage-tiers-node.d.cts +137 -13
- package/dist/extra/storage-tiers-node.d.ts +137 -13
- package/dist/extra/storage-tiers.d.cts +151 -23
- package/dist/extra/storage-tiers.d.ts +151 -23
- package/dist/{fallback-axI2cXwt.d.cts → fallback-8JYU8tlT.d.cts} +1 -1
- package/dist/{fallback-DuEXfA4F.d.ts → fallback-CMZl39L5.d.ts} +1 -1
- package/dist/graph/index.cjs +7 -7
- package/dist/graph/index.d.cts +5 -5
- package/dist/graph/index.d.ts +5 -5
- package/dist/graph/index.js +1 -1
- package/dist/{graph-YQXDndFy.d.ts → graph-30XSgtVX.d.ts} +287 -104
- package/dist/{graph-CaNXUc3c.d.cts → graph-BUwMAxJI.d.cts} +287 -104
- package/dist/{index-CIcu6fIR.d.ts → index-2n8Eai6M.d.ts} +1 -1
- package/dist/{index-BmLkcDlj.d.ts → index-89FczVZ_.d.ts} +47 -71
- package/dist/{index-Ci358GSC.d.cts → index-8R1vzNOx.d.cts} +9 -9
- package/dist/{index-CDvC1m5p.d.ts → index-B2RUoIUz.d.ts} +1 -1
- package/dist/{index-DuhOdNyg.d.ts → index-B41Asm7D.d.ts} +10 -8
- package/dist/{index-CKcnuQ2c.d.ts → index-B9fmw5n2.d.ts} +4 -6
- package/dist/{index-0qOD-421.d.ts → index-BAlaVimV.d.ts} +9 -9
- package/dist/{index-Ae6L8liv.d.ts → index-BC9VybQs.d.ts} +41 -48
- package/dist/{index-CUTHDZ7Q.d.ts → index-BEHmxORq.d.ts} +11 -11
- package/dist/{index-C_qi0WlF.d.cts → index-BJ26eEjs.d.cts} +26 -19
- package/dist/{index-BiomL7AW.d.ts → index-BJSZxSFX.d.ts} +1 -1
- package/dist/{index-DCAuN9u5.d.cts → index-BKMdnYnk.d.ts} +75 -39
- package/dist/{index-DfAo9WKr.d.ts → index-BM9szD8n.d.cts} +14 -6
- package/dist/{index-CajEOoAN.d.ts → index-BUPVld1w.d.ts} +2 -2
- package/dist/{index-C-pFD_FV.d.ts → index-BXd6OMEy.d.ts} +3 -3
- package/dist/index-BhUaMYm_.d.ts +113 -0
- package/dist/{index-DAKm44My.d.cts → index-BndG0cpK.d.cts} +3 -3
- package/dist/{index-Bpzw8hx3.d.ts → index-Br3WnqEn.d.ts} +84 -9
- package/dist/{index-D6tRNEKz.d.cts → index-BskfDoZ_.d.ts} +14 -6
- package/dist/{index-9mbs_PIG.d.ts → index-C19qqa38.d.ts} +4 -4
- package/dist/{index-fHKHdAso.d.ts → index-C7VV_qOs.d.ts} +4 -4
- package/dist/{index-CLPQyYY5.d.cts → index-CIRG8Hxp.d.cts} +11 -11
- package/dist/{index-B3D_z0Z6.d.cts → index-CL7oilfm.d.cts} +1 -1
- package/dist/{index-BOfHwQc1.d.ts → index-CPhBvRJU.d.ts} +1 -1
- package/dist/{index-B9qJmmv3.d.cts → index-CWHtYmSh.d.cts} +1 -1
- package/dist/{index-D_d1erkR.d.ts → index-Cey6VTnX.d.ts} +8 -5
- package/dist/{resilience-BWP2c7Af.d.cts → index-CmqiJZKM.d.ts} +141 -23
- package/dist/{index-JYtN9uqM.d.ts → index-CoM4rzyB.d.ts} +1 -1
- package/dist/{index-DTYIRT_v.d.cts → index-CpLpJb6A.d.cts} +8 -5
- package/dist/{index-BjWZARLy.d.ts → index-Ctb7_2sG.d.ts} +1 -1
- package/dist/index-CusEP3Sv.d.ts +210 -0
- package/dist/{resilience-Bys63Cpd.d.ts → index-CwP_KAMS.d.cts} +141 -23
- package/dist/{index-BFuVcqL8.d.cts → index-D3ayz3hy.d.cts} +1 -1
- package/dist/{index-CrpjECS6.d.cts → index-DCbE8fFM.d.cts} +3 -3
- package/dist/{index-D_DThl_J.d.cts → index-DIHcMLr6.d.cts} +1 -1
- package/dist/index-DINuaZlJ.d.cts +210 -0
- package/dist/{index-9xhIaM-w.d.cts → index-DOBLxOti.d.cts} +1 -1
- package/dist/index-DQUVq1_d.d.ts +374 -0
- package/dist/{index-B1IcU--K.d.cts → index-DTtBpuQy.d.cts} +4 -6
- package/dist/{index-D_QQ_dTD.d.cts → index-DYTBbF8T.d.cts} +1 -1
- package/dist/{index-DqtXA3yX.d.cts → index-DlgHqQxW.d.cts} +84 -9
- package/dist/{index-D1E1tqHT.d.ts → index-DlrWu9Hs.d.cts} +75 -39
- package/dist/{index-DcWbx58m.d.cts → index-DoYc8BWK.d.cts} +41 -48
- package/dist/{index-D0ZxFXYl.d.ts → index-DszPlZzK.d.ts} +3 -3
- package/dist/{index-BECJ8M0T.d.cts → index-DyM4tFAe.d.cts} +10 -8
- package/dist/{index-D11pGlaI.d.cts → index-FVoPvhAu.d.cts} +4 -4
- package/dist/{index-BwtIbzSV.d.cts → index-H_I66pav.d.cts} +2 -2
- package/dist/{index-e1m3ZHgc.d.cts → index-IwFqHxCs.d.cts} +2 -2
- package/dist/index-K-vl_c6A.d.cts +113 -0
- package/dist/{index-C4N-dg5U.d.cts → index-KlZ_ZUip.d.cts} +2 -2
- package/dist/index-L8XI8Zql.d.cts +374 -0
- package/dist/{index-D8IyqHvT.d.cts → index-MxYuWOrf.d.cts} +6 -4
- package/dist/{index-CpZKtdMw.d.cts → index-PgwvGWa1.d.cts} +1 -1
- package/dist/{index-B46GWgk3.d.ts → index-PlJ3MraE.d.ts} +1 -1
- package/dist/{index-DPqR3wdW.d.ts → index-PqbnoScQ.d.ts} +3 -3
- package/dist/{index-CU3z8Cel.d.cts → index-PsVHpPwP.d.cts} +3 -3
- package/dist/{index-C0tga1_x.d.ts → index-WyFKER-c.d.ts} +2 -2
- package/dist/{index-B5UR87KG.d.ts → index-eaQuGJnv.d.ts} +6 -4
- package/dist/{index-CzIWlnPp.d.ts → index-iTX5IqSP.d.ts} +140 -9
- package/dist/{index-CRycrNfn.d.ts → index-jKLph6cu.d.ts} +2 -2
- package/dist/{index-BhLA9feT.d.ts → index-jr6PuSBt.d.ts} +26 -19
- package/dist/{index-4IwO4mH2.d.cts → index-mNwgxC21.d.cts} +140 -9
- package/dist/{index-CkN8CZlT.d.cts → index-pVDQcbar.d.cts} +47 -71
- package/dist/{index-D6pwWiOc.d.cts → index-xZYcDqFH.d.cts} +4 -4
- package/dist/{index-8OxXae3g.d.ts → index-yLt-aPMp.d.ts} +1 -1
- package/dist/{index-CqSJ25A9.d.cts → index-z8WFPVI8.d.cts} +1 -1
- package/dist/index.cjs +64 -60
- package/dist/index.d.cts +48 -47
- package/dist/index.d.ts +48 -47
- package/dist/index.js +1 -1
- package/dist/meta-Ct9nqQS5.d.cts +102 -0
- package/dist/meta-D8OyedKp.d.ts +102 -0
- package/dist/{node-fSc-hCv8.d.cts → node-BYInONRr.d.cts} +3 -3
- package/dist/{node-fSc-hCv8.d.ts → node-BYInONRr.d.ts} +3 -3
- package/dist/{observable-Cqty11jG.d.cts → observable-DMIlYJV1.d.cts} +1 -1
- package/dist/{observable-EAV_rNfM.d.ts → observable-DO8DDEzv.d.ts} +1 -1
- package/dist/patterns/ai/browser.cjs +5 -5
- package/dist/patterns/ai/browser.d.cts +4 -4
- package/dist/patterns/ai/browser.d.ts +4 -4
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +17 -21
- package/dist/patterns/ai/index.d.cts +17 -17
- package/dist/patterns/ai/index.d.ts +17 -17
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.cjs +1 -1
- package/dist/patterns/ai/node.d.cts +4 -4
- package/dist/patterns/ai/node.d.ts +4 -4
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.cjs +3 -7
- package/dist/patterns/audit/index.d.cts +6 -6
- package/dist/patterns/audit/index.d.ts +6 -6
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +3 -7
- package/dist/patterns/cqrs/index.d.cts +6 -6
- package/dist/patterns/cqrs/index.d.ts +6 -6
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +5 -8
- package/dist/patterns/demo-shell/index.d.cts +5 -5
- package/dist/patterns/demo-shell/index.d.ts +5 -5
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +3 -7
- package/dist/patterns/domain-templates/index.d.cts +4 -4
- package/dist/patterns/domain-templates/index.d.ts +4 -4
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +38 -38
- package/dist/patterns/graphspec/index.d.cts +5 -5
- package/dist/patterns/graphspec/index.d.ts +5 -5
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +3 -7
- package/dist/patterns/guarded-execution/index.d.cts +7 -7
- package/dist/patterns/guarded-execution/index.d.ts +7 -7
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +8 -12
- package/dist/patterns/harness/index.d.cts +12 -12
- package/dist/patterns/harness/index.d.ts +12 -12
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +3 -7
- package/dist/patterns/job-queue/index.d.cts +6 -6
- package/dist/patterns/job-queue/index.d.ts +6 -6
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +3 -7
- package/dist/patterns/lens/index.d.cts +6 -6
- package/dist/patterns/lens/index.d.ts +6 -6
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +3 -7
- package/dist/patterns/memory/index.d.cts +7 -5
- package/dist/patterns/memory/index.d.ts +7 -5
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +3 -7
- package/dist/patterns/messaging/index.d.cts +5 -5
- package/dist/patterns/messaging/index.d.ts +5 -5
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +3 -7
- package/dist/patterns/orchestration/index.d.cts +8 -8
- package/dist/patterns/orchestration/index.d.ts +8 -8
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/process/index.cjs +1 -1
- package/dist/patterns/process/index.d.cts +7 -7
- package/dist/patterns/process/index.d.ts +7 -7
- package/dist/patterns/process/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +4 -8
- package/dist/patterns/reactive-layout/index.d.cts +5 -5
- package/dist/patterns/reactive-layout/index.d.ts +5 -5
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +3 -7
- package/dist/patterns/reduction/index.d.cts +4 -4
- package/dist/patterns/reduction/index.d.ts +4 -4
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.cjs +5 -9
- package/dist/patterns/refine-loop/index.d.cts +6 -6
- package/dist/patterns/refine-loop/index.d.ts +6 -6
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +4 -8
- package/dist/patterns/resilient-pipeline/index.d.ts +4 -8
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +13 -17
- package/dist/patterns/surface/index.d.cts +6 -6
- package/dist/patterns/surface/index.d.ts +6 -6
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{pipeline-graph-BrrYGjuZ.d.cts → pipeline-graph-BQPr2Lqs.d.cts} +34 -17
- package/dist/{pipeline-graph-DX2Twdj-.d.ts → pipeline-graph-D8vKcO_p.d.ts} +34 -17
- package/dist/{reactive-layout-DrGjuwyC.d.cts → reactive-layout-8CSc0tiA.d.cts} +2 -2
- package/dist/{reactive-layout-BDdngW56.d.ts → reactive-layout-DkTXxtSy.d.ts} +2 -2
- package/dist/{reactive-log-jirQsxMY.d.ts → reactive-log-BlAsPLl2.d.ts} +30 -3
- package/dist/{reactive-log-ScpWyqny.d.cts → reactive-log-_zeEnB9H.d.cts} +30 -3
- package/dist/{reactive-map-DmgeADH8.d.cts → reactive-map-B2qfD3hb.d.cts} +1 -1
- package/dist/{reactive-map-CHyeCf4D.d.ts → reactive-map-jFIsE6Kt.d.ts} +1 -1
- package/dist/resilience-HTF2LBRS.js +1 -0
- package/dist/{sugar-D13E2M_z.d.ts → sugar-BhfjgetH.d.ts} +1 -1
- package/dist/{sugar-DgaGJcI6.d.cts → sugar-DzePN5-g.d.cts} +1 -1
- package/dist/{topology-tree-BkhmMg2a.d.cts → topology-tree-B5Ngw3j0.d.cts} +1 -1
- package/dist/{topology-tree-BI665P0L.d.ts → topology-tree-BtvbgMXJ.d.ts} +1 -1
- package/dist/{types-BMSGPlpO.d.cts → types-1Dhoi7HM.d.cts} +1 -1
- package/dist/{types-CidcBDuk.d.ts → types-39jk0kaV.d.ts} +1 -1
- package/package.json +11 -1
- package/dist/chunk-4EATTNAE.js +0 -1
- package/dist/chunk-533RQFF6.js +0 -1
- package/dist/chunk-6SVKZ7VI.js +0 -1
- package/dist/chunk-A5HZZYRK.js +0 -1
- package/dist/chunk-B4L5X2QO.js +0 -7
- package/dist/chunk-C5CBVOCB.js +0 -1
- package/dist/chunk-CZIQ6JCE.js +0 -1
- package/dist/chunk-FJ6IEMOS.js +0 -1
- package/dist/chunk-FMI4CWFL.js +0 -1
- package/dist/chunk-G6Q3DUMJ.js +0 -1
- package/dist/chunk-GDDPCDLG.js +0 -1
- package/dist/chunk-GFOT6UBB.js +0 -1
- package/dist/chunk-JJTF75VS.js +0 -1
- package/dist/chunk-K2WYIVHM.js +0 -1
- package/dist/chunk-KTWBUJO5.js +0 -61
- package/dist/chunk-M27MVZCP.js +0 -1
- package/dist/chunk-NKKUUKPD.js +0 -43
- package/dist/chunk-O32GJOUJ.js +0 -1
- package/dist/chunk-QKBCTKH7.js +0 -1
- package/dist/chunk-QWVQIL3T.js +0 -1
- package/dist/chunk-UODQF4EY.js +0 -1
- package/dist/chunk-WGST56ZH.js +0 -80
- package/dist/chunk-WSLN4JFO.js +0 -1
- package/dist/chunk-XIJKEXWR.js +0 -1
- package/dist/imperative-audit-ahAE65a9.d.cts +0 -28
- package/dist/imperative-audit-ahAE65a9.d.ts +0 -28
- package/dist/index-BCq12BqB.d.ts +0 -139
- package/dist/index-BokynmA4.d.cts +0 -186
- package/dist/index-DXz9uwcs.d.ts +0 -186
- package/dist/index-DbWwMWiB.d.cts +0 -139
- package/dist/meta-BGO6C7K9.d.cts +0 -41
- package/dist/meta-CC6EPdpK.d.ts +0 -41
- package/dist/resilience-OBU472D2.js +0 -1
|
@@ -62,7 +62,26 @@ interface Codec<T = unknown> {
|
|
|
62
62
|
* @category extra
|
|
63
63
|
*/
|
|
64
64
|
declare const jsonCodec: Codec<unknown>;
|
|
65
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* Returns the default `jsonCodec` cast to `Codec<T>`.
|
|
67
|
+
*
|
|
68
|
+
* Pure typing helper — no runtime overhead. Use when a generic API requires a
|
|
69
|
+
* `Codec<T>` and the value is known to be JSON-serializable.
|
|
70
|
+
*
|
|
71
|
+
* @returns `Codec<T>` backed by the shared `jsonCodec` (UTF-8 JSON, stable key order).
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* import { memoryBackend, snapshotStorage, jsonCodecFor } from "@graphrefly/graphrefly/extra";
|
|
76
|
+
*
|
|
77
|
+
* type MyState = { count: number; label: string };
|
|
78
|
+
* const tier = snapshotStorage<MyState>(memoryBackend(), {
|
|
79
|
+
* codec: jsonCodecFor<MyState>(),
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @category extra
|
|
84
|
+
*/
|
|
66
85
|
declare function jsonCodecFor<T>(): Codec<T>;
|
|
67
86
|
/**
|
|
68
87
|
* Common tier surface: name + cadence knobs + transaction lifecycle.
|
|
@@ -135,8 +154,21 @@ type AppendLoadResult<T> = {
|
|
|
135
154
|
cursor: AppendCursor | undefined;
|
|
136
155
|
};
|
|
137
156
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
157
|
+
* Creates an in-process bytes backend backed by `Map<string, Uint8Array>`.
|
|
158
|
+
*
|
|
159
|
+
* Useful for tests, hot tiers, and as the default backend for the convenience
|
|
160
|
+
* factories in this module. All operations are synchronous.
|
|
161
|
+
*
|
|
162
|
+
* @returns `StorageBackend` instance backed by an in-memory `Map`.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```ts
|
|
166
|
+
* import { memoryBackend, snapshotStorage } from "@graphrefly/graphrefly/extra";
|
|
167
|
+
*
|
|
168
|
+
* const backend = memoryBackend();
|
|
169
|
+
* const tier = snapshotStorage(backend, { name: "my-graph" });
|
|
170
|
+
* await tier.save({ name: "my-graph", data: { count: 1 } });
|
|
171
|
+
* ```
|
|
140
172
|
*
|
|
141
173
|
* @category extra
|
|
142
174
|
*/
|
|
@@ -150,13 +182,28 @@ type SnapshotStorageOptions<T> = {
|
|
|
150
182
|
keyOf?: (snapshot: T) => string;
|
|
151
183
|
};
|
|
152
184
|
/**
|
|
153
|
-
*
|
|
185
|
+
* Wraps a `StorageBackend` as a typed snapshot tier.
|
|
154
186
|
*
|
|
155
187
|
* Buffer model: `save(snapshot)` accumulates one pending snapshot in memory.
|
|
156
188
|
* `flush()` encodes via codec and writes to the backend under
|
|
157
189
|
* `keyOf(snapshot)` (default `name ?? "snapshot"`). `rollback()` discards
|
|
158
190
|
* the pending write.
|
|
159
191
|
*
|
|
192
|
+
* @param backend - Bytes-level backend to persist snapshots into.
|
|
193
|
+
* @param opts - Optional name, codec, debounce window, compaction interval, pre-save filter, and key extractor.
|
|
194
|
+
* @returns `SnapshotStorageTier<T>` that buffers one pending snapshot and flushes on wave-close.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```ts
|
|
198
|
+
* import { memoryBackend, snapshotStorage } from "@graphrefly/graphrefly/extra";
|
|
199
|
+
*
|
|
200
|
+
* const backend = memoryBackend();
|
|
201
|
+
* const tier = snapshotStorage<{ count: number }>(backend, { name: "counter" });
|
|
202
|
+
* await tier.save({ count: 42 });
|
|
203
|
+
* // Load back:
|
|
204
|
+
* const loaded = await tier.load?.();
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
160
207
|
* @category extra
|
|
161
208
|
*/
|
|
162
209
|
declare function snapshotStorage<T>(backend: StorageBackend, opts?: SnapshotStorageOptions<T>): SnapshotStorageTier<T>;
|
|
@@ -168,7 +215,7 @@ type AppendLogStorageOptions<T> = {
|
|
|
168
215
|
compactEvery?: number;
|
|
169
216
|
};
|
|
170
217
|
/**
|
|
171
|
-
*
|
|
218
|
+
* Wraps a `StorageBackend` as a typed append-log tier.
|
|
172
219
|
*
|
|
173
220
|
* Buffer model: `appendEntries(entries)` accumulates per-key buckets in
|
|
174
221
|
* memory. `flush()` encodes each bucket as a JSON array via codec and writes
|
|
@@ -178,6 +225,20 @@ type AppendLogStorageOptions<T> = {
|
|
|
178
225
|
* partition, growing on every flush. Adapters that need true append semantics
|
|
179
226
|
* (versus rewrite) should layer their own tier impl over the same backend.
|
|
180
227
|
*
|
|
228
|
+
* @param backend - Bytes-level backend to persist log entries into.
|
|
229
|
+
* @param opts - Optional name, codec, per-entry key extractor, debounce window, and compaction interval.
|
|
230
|
+
* @returns `AppendLogStorageTier<T>` that buffers pending entries and flushes per-key buckets on wave-close.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts
|
|
234
|
+
* import { memoryBackend, appendLogStorage } from "@graphrefly/graphrefly/extra";
|
|
235
|
+
*
|
|
236
|
+
* const backend = memoryBackend();
|
|
237
|
+
* const tier = appendLogStorage<{ type: string; payload: unknown }>(backend, { name: "events" });
|
|
238
|
+
* await tier.appendEntries([{ type: "created", payload: { id: 1 } }]);
|
|
239
|
+
* const result = await tier.loadEntries?.();
|
|
240
|
+
* ```
|
|
241
|
+
*
|
|
181
242
|
* @category extra
|
|
182
243
|
*/
|
|
183
244
|
declare function appendLogStorage<T>(backend: StorageBackend, opts?: AppendLogStorageOptions<T>): AppendLogStorageTier<T>;
|
|
@@ -206,17 +267,45 @@ type KvStorageOptions<T> = {
|
|
|
206
267
|
filter?: (key: string, value: T) => boolean;
|
|
207
268
|
};
|
|
208
269
|
/**
|
|
209
|
-
*
|
|
270
|
+
* Wraps a `StorageBackend` as a typed key-value tier.
|
|
210
271
|
*
|
|
211
272
|
* Buffer model: `save(k, v)` encodes via codec and writes to the backend
|
|
212
273
|
* unless debounced. Pending writes are committed on `flush()` and discarded
|
|
213
274
|
* on `rollback()` — the wave-as-transaction model.
|
|
214
275
|
*
|
|
276
|
+
* @param backend - Bytes-level backend to persist records into.
|
|
277
|
+
* @param opts - Optional name, codec, debounce window, compaction interval, and pre-save filter.
|
|
278
|
+
* @returns `KvStorageTier<T>` that supports `save`, `load`, `delete`, and `list` operations.
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* ```ts
|
|
282
|
+
* import { memoryBackend, kvStorage } from "@graphrefly/graphrefly/extra";
|
|
283
|
+
*
|
|
284
|
+
* const backend = memoryBackend();
|
|
285
|
+
* const kv = kvStorage<{ score: number }>(backend, { name: "scores" });
|
|
286
|
+
* await kv.save("player1", { score: 100 });
|
|
287
|
+
* const val = await kv.load("player1");
|
|
288
|
+
* ```
|
|
289
|
+
*
|
|
215
290
|
* @category extra
|
|
216
291
|
*/
|
|
217
292
|
declare function kvStorage<T>(backend: StorageBackend, opts?: KvStorageOptions<T>): KvStorageTier<T>;
|
|
218
293
|
/**
|
|
219
|
-
*
|
|
294
|
+
* Creates an in-memory snapshot tier backed by a fresh `memoryBackend`.
|
|
295
|
+
*
|
|
296
|
+
* Convenience wrapper for `snapshotStorage(memoryBackend(), opts)`. All writes
|
|
297
|
+
* are synchronous and in-process — useful for tests and hot-path caching.
|
|
298
|
+
*
|
|
299
|
+
* @param opts - Optional snapshot storage options (name, codec, filter, keyOf, debounce, compactEvery).
|
|
300
|
+
* @returns `SnapshotStorageTier<T>` backed by an in-memory store.
|
|
301
|
+
*
|
|
302
|
+
* @example
|
|
303
|
+
* ```ts
|
|
304
|
+
* import { memorySnapshot } from "@graphrefly/graphrefly/extra";
|
|
305
|
+
*
|
|
306
|
+
* const tier = memorySnapshot<{ count: number }>({ name: "counter" });
|
|
307
|
+
* await tier.save({ count: 1 });
|
|
308
|
+
* ```
|
|
220
309
|
*
|
|
221
310
|
* @category extra
|
|
222
311
|
*/
|
|
@@ -224,7 +313,21 @@ declare function memorySnapshot<T>(opts?: Omit<SnapshotStorageOptions<T>, "name"
|
|
|
224
313
|
name?: string;
|
|
225
314
|
}): SnapshotStorageTier<T>;
|
|
226
315
|
/**
|
|
227
|
-
*
|
|
316
|
+
* Creates an in-memory append-log tier backed by a fresh `memoryBackend`.
|
|
317
|
+
*
|
|
318
|
+
* Convenience wrapper for `appendLogStorage(memoryBackend(), opts)`. All writes
|
|
319
|
+
* are synchronous and in-process — useful for tests and hot-path event buffering.
|
|
320
|
+
*
|
|
321
|
+
* @param opts - Optional append-log storage options (name, codec, keyOf, debounce, compactEvery).
|
|
322
|
+
* @returns `AppendLogStorageTier<T>` backed by an in-memory store.
|
|
323
|
+
*
|
|
324
|
+
* @example
|
|
325
|
+
* ```ts
|
|
326
|
+
* import { memoryAppendLog } from "@graphrefly/graphrefly/extra";
|
|
327
|
+
*
|
|
328
|
+
* const tier = memoryAppendLog<{ type: string }>({ name: "events" });
|
|
329
|
+
* await tier.appendEntries([{ type: "init" }]);
|
|
330
|
+
* ```
|
|
228
331
|
*
|
|
229
332
|
* @category extra
|
|
230
333
|
*/
|
|
@@ -232,7 +335,22 @@ declare function memoryAppendLog<T>(opts?: Omit<AppendLogStorageOptions<T>, "nam
|
|
|
232
335
|
name?: string;
|
|
233
336
|
}): AppendLogStorageTier<T>;
|
|
234
337
|
/**
|
|
235
|
-
*
|
|
338
|
+
* Creates an in-memory key-value tier backed by a fresh `memoryBackend`.
|
|
339
|
+
*
|
|
340
|
+
* Convenience wrapper for `kvStorage(memoryBackend(), opts)`. All writes are
|
|
341
|
+
* synchronous and in-process — useful for tests and ephemeral record caches.
|
|
342
|
+
*
|
|
343
|
+
* @param opts - Optional kv storage options (name, codec, filter, debounce, compactEvery).
|
|
344
|
+
* @returns `KvStorageTier<T>` backed by an in-memory store.
|
|
345
|
+
*
|
|
346
|
+
* @example
|
|
347
|
+
* ```ts
|
|
348
|
+
* import { memoryKv } from "@graphrefly/graphrefly/extra";
|
|
349
|
+
*
|
|
350
|
+
* const kv = memoryKv<{ value: number }>();
|
|
351
|
+
* await kv.save("key1", { value: 42 });
|
|
352
|
+
* const loaded = await kv.load("key1");
|
|
353
|
+
* ```
|
|
236
354
|
*
|
|
237
355
|
* @category extra
|
|
238
356
|
*/
|
|
@@ -240,19 +358,24 @@ declare function memoryKv<T>(opts?: Omit<KvStorageOptions<T>, "name"> & {
|
|
|
240
358
|
name?: string;
|
|
241
359
|
}): KvStorageTier<T>;
|
|
242
360
|
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
* embedding
|
|
246
|
-
* raw bytes.
|
|
361
|
+
* Creates a kv tier backed by a caller-owned plain object (`Record<string, Uint8Array>`).
|
|
362
|
+
*
|
|
363
|
+
* Useful for embedding storage inside a parent state shape or for tests that
|
|
364
|
+
* need direct access to the raw bytes. The dict stores raw encoded bytes as
|
|
365
|
+
* `Uint8Array`. Use `opts.name` to control the tier's diagnostic name
|
|
366
|
+
* (defaults to `"dict-kv"`).
|
|
247
367
|
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
368
|
+
* @param storage - Caller-owned `Record<string, Uint8Array>` to use as the backing store.
|
|
369
|
+
* @param opts - Optional kv storage options (name, codec, filter, debounce, compactEvery).
|
|
370
|
+
* @returns `KvStorageTier<T>` backed by the provided dict object.
|
|
250
371
|
*
|
|
251
372
|
* @example
|
|
252
373
|
* ```ts
|
|
374
|
+
* import { dictKv } from "@graphrefly/graphrefly/extra";
|
|
375
|
+
*
|
|
253
376
|
* const store: Record<string, Uint8Array> = {};
|
|
254
|
-
* const tier = dictKv<
|
|
255
|
-
* await tier.save("
|
|
377
|
+
* const tier = dictKv<{ score: number }>(store);
|
|
378
|
+
* await tier.save("player1", { score: 100 });
|
|
256
379
|
* ```
|
|
257
380
|
*
|
|
258
381
|
* @category extra
|
|
@@ -261,16 +384,21 @@ declare function dictKv<T>(storage: Record<string, Uint8Array>, opts?: Omit<KvSt
|
|
|
261
384
|
name?: string;
|
|
262
385
|
}): KvStorageTier<T>;
|
|
263
386
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* embedding checkpoints inside a parent state shape or for tests
|
|
267
|
-
* access to the raw bytes.
|
|
387
|
+
* Creates a snapshot tier backed by a caller-owned plain object (`Record<string, Uint8Array>`).
|
|
388
|
+
*
|
|
389
|
+
* Useful for embedding checkpoints inside a parent state shape or for tests
|
|
390
|
+
* that need direct access to the raw bytes. The dict stores raw JSON bytes as
|
|
391
|
+
* `Uint8Array`. Use `opts.name` to control the storage key (defaults to
|
|
392
|
+
* `"snapshot"`).
|
|
268
393
|
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
394
|
+
* @param storage - Caller-owned `Record<string, Uint8Array>` to use as the backing store.
|
|
395
|
+
* @param opts - Optional snapshot storage options (name, codec, filter, keyOf, debounce, compactEvery).
|
|
396
|
+
* @returns `SnapshotStorageTier<T>` backed by the provided dict object.
|
|
271
397
|
*
|
|
272
398
|
* @example
|
|
273
399
|
* ```ts
|
|
400
|
+
* import { dictSnapshot } from "@graphrefly/graphrefly/extra";
|
|
401
|
+
*
|
|
274
402
|
* const store: Record<string, Uint8Array> = {};
|
|
275
403
|
* graph.attachSnapshotStorage([dictSnapshot(store, { name: graph.name })]);
|
|
276
404
|
* ```
|
|
@@ -62,7 +62,26 @@ interface Codec<T = unknown> {
|
|
|
62
62
|
* @category extra
|
|
63
63
|
*/
|
|
64
64
|
declare const jsonCodec: Codec<unknown>;
|
|
65
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* Returns the default `jsonCodec` cast to `Codec<T>`.
|
|
67
|
+
*
|
|
68
|
+
* Pure typing helper — no runtime overhead. Use when a generic API requires a
|
|
69
|
+
* `Codec<T>` and the value is known to be JSON-serializable.
|
|
70
|
+
*
|
|
71
|
+
* @returns `Codec<T>` backed by the shared `jsonCodec` (UTF-8 JSON, stable key order).
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* import { memoryBackend, snapshotStorage, jsonCodecFor } from "@graphrefly/graphrefly/extra";
|
|
76
|
+
*
|
|
77
|
+
* type MyState = { count: number; label: string };
|
|
78
|
+
* const tier = snapshotStorage<MyState>(memoryBackend(), {
|
|
79
|
+
* codec: jsonCodecFor<MyState>(),
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @category extra
|
|
84
|
+
*/
|
|
66
85
|
declare function jsonCodecFor<T>(): Codec<T>;
|
|
67
86
|
/**
|
|
68
87
|
* Common tier surface: name + cadence knobs + transaction lifecycle.
|
|
@@ -135,8 +154,21 @@ type AppendLoadResult<T> = {
|
|
|
135
154
|
cursor: AppendCursor | undefined;
|
|
136
155
|
};
|
|
137
156
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
157
|
+
* Creates an in-process bytes backend backed by `Map<string, Uint8Array>`.
|
|
158
|
+
*
|
|
159
|
+
* Useful for tests, hot tiers, and as the default backend for the convenience
|
|
160
|
+
* factories in this module. All operations are synchronous.
|
|
161
|
+
*
|
|
162
|
+
* @returns `StorageBackend` instance backed by an in-memory `Map`.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```ts
|
|
166
|
+
* import { memoryBackend, snapshotStorage } from "@graphrefly/graphrefly/extra";
|
|
167
|
+
*
|
|
168
|
+
* const backend = memoryBackend();
|
|
169
|
+
* const tier = snapshotStorage(backend, { name: "my-graph" });
|
|
170
|
+
* await tier.save({ name: "my-graph", data: { count: 1 } });
|
|
171
|
+
* ```
|
|
140
172
|
*
|
|
141
173
|
* @category extra
|
|
142
174
|
*/
|
|
@@ -150,13 +182,28 @@ type SnapshotStorageOptions<T> = {
|
|
|
150
182
|
keyOf?: (snapshot: T) => string;
|
|
151
183
|
};
|
|
152
184
|
/**
|
|
153
|
-
*
|
|
185
|
+
* Wraps a `StorageBackend` as a typed snapshot tier.
|
|
154
186
|
*
|
|
155
187
|
* Buffer model: `save(snapshot)` accumulates one pending snapshot in memory.
|
|
156
188
|
* `flush()` encodes via codec and writes to the backend under
|
|
157
189
|
* `keyOf(snapshot)` (default `name ?? "snapshot"`). `rollback()` discards
|
|
158
190
|
* the pending write.
|
|
159
191
|
*
|
|
192
|
+
* @param backend - Bytes-level backend to persist snapshots into.
|
|
193
|
+
* @param opts - Optional name, codec, debounce window, compaction interval, pre-save filter, and key extractor.
|
|
194
|
+
* @returns `SnapshotStorageTier<T>` that buffers one pending snapshot and flushes on wave-close.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```ts
|
|
198
|
+
* import { memoryBackend, snapshotStorage } from "@graphrefly/graphrefly/extra";
|
|
199
|
+
*
|
|
200
|
+
* const backend = memoryBackend();
|
|
201
|
+
* const tier = snapshotStorage<{ count: number }>(backend, { name: "counter" });
|
|
202
|
+
* await tier.save({ count: 42 });
|
|
203
|
+
* // Load back:
|
|
204
|
+
* const loaded = await tier.load?.();
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
160
207
|
* @category extra
|
|
161
208
|
*/
|
|
162
209
|
declare function snapshotStorage<T>(backend: StorageBackend, opts?: SnapshotStorageOptions<T>): SnapshotStorageTier<T>;
|
|
@@ -168,7 +215,7 @@ type AppendLogStorageOptions<T> = {
|
|
|
168
215
|
compactEvery?: number;
|
|
169
216
|
};
|
|
170
217
|
/**
|
|
171
|
-
*
|
|
218
|
+
* Wraps a `StorageBackend` as a typed append-log tier.
|
|
172
219
|
*
|
|
173
220
|
* Buffer model: `appendEntries(entries)` accumulates per-key buckets in
|
|
174
221
|
* memory. `flush()` encodes each bucket as a JSON array via codec and writes
|
|
@@ -178,6 +225,20 @@ type AppendLogStorageOptions<T> = {
|
|
|
178
225
|
* partition, growing on every flush. Adapters that need true append semantics
|
|
179
226
|
* (versus rewrite) should layer their own tier impl over the same backend.
|
|
180
227
|
*
|
|
228
|
+
* @param backend - Bytes-level backend to persist log entries into.
|
|
229
|
+
* @param opts - Optional name, codec, per-entry key extractor, debounce window, and compaction interval.
|
|
230
|
+
* @returns `AppendLogStorageTier<T>` that buffers pending entries and flushes per-key buckets on wave-close.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts
|
|
234
|
+
* import { memoryBackend, appendLogStorage } from "@graphrefly/graphrefly/extra";
|
|
235
|
+
*
|
|
236
|
+
* const backend = memoryBackend();
|
|
237
|
+
* const tier = appendLogStorage<{ type: string; payload: unknown }>(backend, { name: "events" });
|
|
238
|
+
* await tier.appendEntries([{ type: "created", payload: { id: 1 } }]);
|
|
239
|
+
* const result = await tier.loadEntries?.();
|
|
240
|
+
* ```
|
|
241
|
+
*
|
|
181
242
|
* @category extra
|
|
182
243
|
*/
|
|
183
244
|
declare function appendLogStorage<T>(backend: StorageBackend, opts?: AppendLogStorageOptions<T>): AppendLogStorageTier<T>;
|
|
@@ -206,17 +267,45 @@ type KvStorageOptions<T> = {
|
|
|
206
267
|
filter?: (key: string, value: T) => boolean;
|
|
207
268
|
};
|
|
208
269
|
/**
|
|
209
|
-
*
|
|
270
|
+
* Wraps a `StorageBackend` as a typed key-value tier.
|
|
210
271
|
*
|
|
211
272
|
* Buffer model: `save(k, v)` encodes via codec and writes to the backend
|
|
212
273
|
* unless debounced. Pending writes are committed on `flush()` and discarded
|
|
213
274
|
* on `rollback()` — the wave-as-transaction model.
|
|
214
275
|
*
|
|
276
|
+
* @param backend - Bytes-level backend to persist records into.
|
|
277
|
+
* @param opts - Optional name, codec, debounce window, compaction interval, and pre-save filter.
|
|
278
|
+
* @returns `KvStorageTier<T>` that supports `save`, `load`, `delete`, and `list` operations.
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* ```ts
|
|
282
|
+
* import { memoryBackend, kvStorage } from "@graphrefly/graphrefly/extra";
|
|
283
|
+
*
|
|
284
|
+
* const backend = memoryBackend();
|
|
285
|
+
* const kv = kvStorage<{ score: number }>(backend, { name: "scores" });
|
|
286
|
+
* await kv.save("player1", { score: 100 });
|
|
287
|
+
* const val = await kv.load("player1");
|
|
288
|
+
* ```
|
|
289
|
+
*
|
|
215
290
|
* @category extra
|
|
216
291
|
*/
|
|
217
292
|
declare function kvStorage<T>(backend: StorageBackend, opts?: KvStorageOptions<T>): KvStorageTier<T>;
|
|
218
293
|
/**
|
|
219
|
-
*
|
|
294
|
+
* Creates an in-memory snapshot tier backed by a fresh `memoryBackend`.
|
|
295
|
+
*
|
|
296
|
+
* Convenience wrapper for `snapshotStorage(memoryBackend(), opts)`. All writes
|
|
297
|
+
* are synchronous and in-process — useful for tests and hot-path caching.
|
|
298
|
+
*
|
|
299
|
+
* @param opts - Optional snapshot storage options (name, codec, filter, keyOf, debounce, compactEvery).
|
|
300
|
+
* @returns `SnapshotStorageTier<T>` backed by an in-memory store.
|
|
301
|
+
*
|
|
302
|
+
* @example
|
|
303
|
+
* ```ts
|
|
304
|
+
* import { memorySnapshot } from "@graphrefly/graphrefly/extra";
|
|
305
|
+
*
|
|
306
|
+
* const tier = memorySnapshot<{ count: number }>({ name: "counter" });
|
|
307
|
+
* await tier.save({ count: 1 });
|
|
308
|
+
* ```
|
|
220
309
|
*
|
|
221
310
|
* @category extra
|
|
222
311
|
*/
|
|
@@ -224,7 +313,21 @@ declare function memorySnapshot<T>(opts?: Omit<SnapshotStorageOptions<T>, "name"
|
|
|
224
313
|
name?: string;
|
|
225
314
|
}): SnapshotStorageTier<T>;
|
|
226
315
|
/**
|
|
227
|
-
*
|
|
316
|
+
* Creates an in-memory append-log tier backed by a fresh `memoryBackend`.
|
|
317
|
+
*
|
|
318
|
+
* Convenience wrapper for `appendLogStorage(memoryBackend(), opts)`. All writes
|
|
319
|
+
* are synchronous and in-process — useful for tests and hot-path event buffering.
|
|
320
|
+
*
|
|
321
|
+
* @param opts - Optional append-log storage options (name, codec, keyOf, debounce, compactEvery).
|
|
322
|
+
* @returns `AppendLogStorageTier<T>` backed by an in-memory store.
|
|
323
|
+
*
|
|
324
|
+
* @example
|
|
325
|
+
* ```ts
|
|
326
|
+
* import { memoryAppendLog } from "@graphrefly/graphrefly/extra";
|
|
327
|
+
*
|
|
328
|
+
* const tier = memoryAppendLog<{ type: string }>({ name: "events" });
|
|
329
|
+
* await tier.appendEntries([{ type: "init" }]);
|
|
330
|
+
* ```
|
|
228
331
|
*
|
|
229
332
|
* @category extra
|
|
230
333
|
*/
|
|
@@ -232,7 +335,22 @@ declare function memoryAppendLog<T>(opts?: Omit<AppendLogStorageOptions<T>, "nam
|
|
|
232
335
|
name?: string;
|
|
233
336
|
}): AppendLogStorageTier<T>;
|
|
234
337
|
/**
|
|
235
|
-
*
|
|
338
|
+
* Creates an in-memory key-value tier backed by a fresh `memoryBackend`.
|
|
339
|
+
*
|
|
340
|
+
* Convenience wrapper for `kvStorage(memoryBackend(), opts)`. All writes are
|
|
341
|
+
* synchronous and in-process — useful for tests and ephemeral record caches.
|
|
342
|
+
*
|
|
343
|
+
* @param opts - Optional kv storage options (name, codec, filter, debounce, compactEvery).
|
|
344
|
+
* @returns `KvStorageTier<T>` backed by an in-memory store.
|
|
345
|
+
*
|
|
346
|
+
* @example
|
|
347
|
+
* ```ts
|
|
348
|
+
* import { memoryKv } from "@graphrefly/graphrefly/extra";
|
|
349
|
+
*
|
|
350
|
+
* const kv = memoryKv<{ value: number }>();
|
|
351
|
+
* await kv.save("key1", { value: 42 });
|
|
352
|
+
* const loaded = await kv.load("key1");
|
|
353
|
+
* ```
|
|
236
354
|
*
|
|
237
355
|
* @category extra
|
|
238
356
|
*/
|
|
@@ -240,19 +358,24 @@ declare function memoryKv<T>(opts?: Omit<KvStorageOptions<T>, "name"> & {
|
|
|
240
358
|
name?: string;
|
|
241
359
|
}): KvStorageTier<T>;
|
|
242
360
|
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
* embedding
|
|
246
|
-
* raw bytes.
|
|
361
|
+
* Creates a kv tier backed by a caller-owned plain object (`Record<string, Uint8Array>`).
|
|
362
|
+
*
|
|
363
|
+
* Useful for embedding storage inside a parent state shape or for tests that
|
|
364
|
+
* need direct access to the raw bytes. The dict stores raw encoded bytes as
|
|
365
|
+
* `Uint8Array`. Use `opts.name` to control the tier's diagnostic name
|
|
366
|
+
* (defaults to `"dict-kv"`).
|
|
247
367
|
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
368
|
+
* @param storage - Caller-owned `Record<string, Uint8Array>` to use as the backing store.
|
|
369
|
+
* @param opts - Optional kv storage options (name, codec, filter, debounce, compactEvery).
|
|
370
|
+
* @returns `KvStorageTier<T>` backed by the provided dict object.
|
|
250
371
|
*
|
|
251
372
|
* @example
|
|
252
373
|
* ```ts
|
|
374
|
+
* import { dictKv } from "@graphrefly/graphrefly/extra";
|
|
375
|
+
*
|
|
253
376
|
* const store: Record<string, Uint8Array> = {};
|
|
254
|
-
* const tier = dictKv<
|
|
255
|
-
* await tier.save("
|
|
377
|
+
* const tier = dictKv<{ score: number }>(store);
|
|
378
|
+
* await tier.save("player1", { score: 100 });
|
|
256
379
|
* ```
|
|
257
380
|
*
|
|
258
381
|
* @category extra
|
|
@@ -261,16 +384,21 @@ declare function dictKv<T>(storage: Record<string, Uint8Array>, opts?: Omit<KvSt
|
|
|
261
384
|
name?: string;
|
|
262
385
|
}): KvStorageTier<T>;
|
|
263
386
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* embedding checkpoints inside a parent state shape or for tests
|
|
267
|
-
* access to the raw bytes.
|
|
387
|
+
* Creates a snapshot tier backed by a caller-owned plain object (`Record<string, Uint8Array>`).
|
|
388
|
+
*
|
|
389
|
+
* Useful for embedding checkpoints inside a parent state shape or for tests
|
|
390
|
+
* that need direct access to the raw bytes. The dict stores raw JSON bytes as
|
|
391
|
+
* `Uint8Array`. Use `opts.name` to control the storage key (defaults to
|
|
392
|
+
* `"snapshot"`).
|
|
268
393
|
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
394
|
+
* @param storage - Caller-owned `Record<string, Uint8Array>` to use as the backing store.
|
|
395
|
+
* @param opts - Optional snapshot storage options (name, codec, filter, keyOf, debounce, compactEvery).
|
|
396
|
+
* @returns `SnapshotStorageTier<T>` backed by the provided dict object.
|
|
271
397
|
*
|
|
272
398
|
* @example
|
|
273
399
|
* ```ts
|
|
400
|
+
* import { dictSnapshot } from "@graphrefly/graphrefly/extra";
|
|
401
|
+
*
|
|
274
402
|
* const store: Record<string, Uint8Array> = {};
|
|
275
403
|
* graph.attachSnapshotStorage([dictSnapshot(store, { name: graph.name })]);
|
|
276
404
|
* ```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KvStorageTier } from './extra/storage-tiers.cjs';
|
|
2
|
-
import { C as ChatMessage, a as LLMInvokeOptions, L as LLMAdapter, b as LLMResponse, S as StreamDelta } from './types-
|
|
2
|
+
import { C as ChatMessage, a as LLMInvokeOptions, L as LLMAdapter, b as LLMResponse, S as StreamDelta } from './types-1Dhoi7HM.cjs';
|
|
3
3
|
import { d as canonicalJson$1 } from './content-addressed-storage-4-ST1tYk.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KvStorageTier } from './extra/storage-tiers.js';
|
|
2
|
-
import { C as ChatMessage, a as LLMInvokeOptions, L as LLMAdapter, b as LLMResponse, S as StreamDelta } from './types-
|
|
2
|
+
import { C as ChatMessage, a as LLMInvokeOptions, L as LLMAdapter, b as LLMResponse, S as StreamDelta } from './types-39jk0kaV.js';
|
|
3
3
|
import { d as canonicalJson$1 } from './content-addressed-storage-DuYMjV7o.js';
|
|
4
4
|
|
|
5
5
|
/**
|