@graphrefly/graphrefly 0.44.0 → 0.45.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/README.md +21 -17
- package/dist/compat/index.cjs +20 -10
- package/dist/compat/index.cjs.map +1 -0
- package/dist/compat/index.d.cts +1 -22
- package/dist/compat/index.d.ts +1 -22
- package/dist/compat/index.js +3 -1
- package/dist/compat/index.js.map +1 -0
- package/dist/compat/jotai/index.cjs +21 -1
- package/dist/compat/jotai/index.cjs.map +1 -0
- package/dist/compat/jotai/index.d.cts +1 -2
- package/dist/compat/jotai/index.d.ts +1 -2
- package/dist/compat/jotai/index.js +3 -1
- package/dist/compat/jotai/index.js.map +1 -0
- package/dist/compat/nanostores/index.cjs +21 -1
- package/dist/compat/nanostores/index.cjs.map +1 -0
- package/dist/compat/nanostores/index.d.cts +1 -2
- package/dist/compat/nanostores/index.d.ts +1 -2
- package/dist/compat/nanostores/index.js +3 -1
- package/dist/compat/nanostores/index.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +20 -10
- package/dist/compat/nestjs/index.cjs.map +1 -0
- package/dist/compat/nestjs/index.d.cts +1 -13
- package/dist/compat/nestjs/index.d.ts +1 -13
- package/dist/compat/nestjs/index.js +3 -1
- package/dist/compat/nestjs/index.js.map +1 -0
- package/dist/compat/react/index.cjs +21 -1
- package/dist/compat/react/index.cjs.map +1 -0
- package/dist/compat/react/index.d.cts +1 -2
- package/dist/compat/react/index.d.ts +1 -2
- package/dist/compat/react/index.js +3 -1
- package/dist/compat/react/index.js.map +1 -0
- package/dist/compat/solid/index.cjs +21 -1
- package/dist/compat/solid/index.cjs.map +1 -0
- package/dist/compat/solid/index.d.cts +1 -2
- package/dist/compat/solid/index.d.ts +1 -2
- package/dist/compat/solid/index.js +3 -1
- package/dist/compat/solid/index.js.map +1 -0
- package/dist/compat/svelte/index.cjs +21 -1
- package/dist/compat/svelte/index.cjs.map +1 -0
- package/dist/compat/svelte/index.d.cts +1 -2
- package/dist/compat/svelte/index.d.ts +1 -2
- package/dist/compat/svelte/index.js +3 -1
- package/dist/compat/svelte/index.js.map +1 -0
- package/dist/compat/vue/index.cjs +21 -1
- package/dist/compat/vue/index.cjs.map +1 -0
- package/dist/compat/vue/index.d.cts +1 -3
- package/dist/compat/vue/index.d.ts +1 -3
- package/dist/compat/vue/index.js +3 -1
- package/dist/compat/vue/index.js.map +1 -0
- package/dist/compat/zustand/index.cjs +21 -3
- package/dist/compat/zustand/index.cjs.map +1 -0
- package/dist/compat/zustand/index.d.cts +1 -6
- package/dist/compat/zustand/index.d.ts +1 -6
- package/dist/compat/zustand/index.js +3 -1
- package/dist/compat/zustand/index.js.map +1 -0
- package/dist/core/index.cjs +21 -1
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +1 -3
- package/dist/core/index.d.ts +1 -3
- package/dist/core/index.js +3 -1
- package/dist/core/index.js.map +1 -0
- package/dist/extra/browser.cjs +21 -1
- package/dist/extra/browser.cjs.map +1 -0
- package/dist/extra/browser.d.cts +1 -4
- package/dist/extra/browser.d.ts +1 -4
- package/dist/extra/browser.js +3 -1
- package/dist/extra/browser.js.map +1 -0
- package/dist/extra/index.cjs +20 -19
- package/dist/extra/index.cjs.map +1 -0
- package/dist/extra/index.d.cts +1 -17
- package/dist/extra/index.d.ts +1 -17
- package/dist/extra/index.js +3 -1
- package/dist/extra/index.js.map +1 -0
- package/dist/extra/node.cjs +21 -2
- package/dist/extra/node.cjs.map +1 -0
- package/dist/extra/node.d.cts +1 -187
- package/dist/extra/node.d.ts +1 -187
- package/dist/extra/node.js +3 -2
- package/dist/extra/node.js.map +1 -0
- package/dist/extra/operators.cjs +21 -1
- package/dist/extra/operators.cjs.map +1 -0
- package/dist/extra/operators.d.cts +1 -958
- package/dist/extra/operators.d.ts +1 -958
- package/dist/extra/operators.js +3 -1
- package/dist/extra/operators.js.map +1 -0
- package/dist/extra/reactive.cjs +21 -1
- package/dist/extra/reactive.cjs.map +1 -0
- package/dist/extra/reactive.d.cts +1 -353
- package/dist/extra/reactive.d.ts +1 -353
- package/dist/extra/reactive.js +3 -1
- package/dist/extra/reactive.js.map +1 -0
- package/dist/extra/render/index.cjs +21 -5
- package/dist/extra/render/index.cjs.map +1 -0
- package/dist/extra/render/index.d.cts +1 -183
- package/dist/extra/render/index.d.ts +1 -183
- package/dist/extra/render/index.js +3 -1
- package/dist/extra/render/index.js.map +1 -0
- package/dist/extra/sources.cjs +21 -3
- package/dist/extra/sources.cjs.map +1 -0
- package/dist/extra/sources.d.cts +1 -584
- package/dist/extra/sources.d.ts +1 -584
- package/dist/extra/sources.js +3 -1
- package/dist/extra/sources.js.map +1 -0
- package/dist/extra/storage-browser.cjs +21 -1
- package/dist/extra/storage-browser.cjs.map +1 -0
- package/dist/extra/storage-browser.d.cts +1 -37
- package/dist/extra/storage-browser.d.ts +1 -37
- package/dist/extra/storage-browser.js +3 -1
- package/dist/extra/storage-browser.js.map +1 -0
- package/dist/extra/storage-core.cjs +21 -1
- package/dist/extra/storage-core.cjs.map +1 -0
- package/dist/extra/storage-core.d.cts +1 -28
- package/dist/extra/storage-core.d.ts +1 -28
- package/dist/extra/storage-core.js +3 -1
- package/dist/extra/storage-core.js.map +1 -0
- package/dist/extra/storage-node.cjs +20 -0
- package/dist/extra/storage-node.cjs.map +1 -0
- package/dist/extra/storage-node.d.cts +1 -2
- package/dist/extra/storage-node.d.ts +1 -2
- package/dist/extra/storage-node.js +3 -0
- package/dist/extra/storage-node.js.map +1 -0
- package/dist/extra/storage-tiers-browser.cjs +21 -1
- package/dist/extra/storage-tiers-browser.cjs.map +1 -0
- package/dist/extra/storage-tiers-browser.d.cts +1 -120
- package/dist/extra/storage-tiers-browser.d.ts +1 -120
- package/dist/extra/storage-tiers-browser.js +3 -1
- package/dist/extra/storage-tiers-browser.js.map +1 -0
- package/dist/extra/storage-tiers-node.cjs +21 -1
- package/dist/extra/storage-tiers-node.cjs.map +1 -0
- package/dist/extra/storage-tiers-node.d.cts +1 -210
- package/dist/extra/storage-tiers-node.d.ts +1 -210
- package/dist/extra/storage-tiers-node.js +3 -1
- package/dist/extra/storage-tiers-node.js.map +1 -0
- package/dist/extra/storage-tiers.cjs +21 -1
- package/dist/extra/storage-tiers.cjs.map +1 -0
- package/dist/extra/storage-tiers.d.cts +1 -412
- package/dist/extra/storage-tiers.d.ts +1 -412
- package/dist/extra/storage-tiers.js +3 -1
- package/dist/extra/storage-tiers.js.map +1 -0
- package/dist/extra/storage-wal.cjs +21 -0
- package/dist/extra/storage-wal.cjs.map +1 -0
- package/dist/extra/storage-wal.d.cts +1 -0
- package/dist/extra/storage-wal.d.ts +1 -0
- package/dist/extra/storage-wal.js +3 -0
- package/dist/extra/storage-wal.js.map +1 -0
- package/dist/graph/index.cjs +21 -7
- package/dist/graph/index.cjs.map +1 -0
- package/dist/graph/index.d.cts +1 -7
- package/dist/graph/index.d.ts +1 -7
- package/dist/graph/index.js +3 -1
- package/dist/graph/index.js.map +1 -0
- package/dist/index.cjs +20 -227
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +45 -95
- package/dist/index.d.ts +45 -95
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -0
- package/dist/patterns/ai/browser.cjs +20 -7
- package/dist/patterns/ai/browser.cjs.map +1 -0
- package/dist/patterns/ai/browser.d.cts +1 -127
- package/dist/patterns/ai/browser.d.ts +1 -127
- package/dist/patterns/ai/browser.js +3 -3
- package/dist/patterns/ai/browser.js.map +1 -0
- package/dist/patterns/ai/index.cjs +20 -73
- package/dist/patterns/ai/index.cjs.map +1 -0
- package/dist/patterns/ai/index.d.cts +1 -20
- package/dist/patterns/ai/index.d.ts +1 -20
- package/dist/patterns/ai/index.js +3 -1
- package/dist/patterns/ai/index.js.map +1 -0
- package/dist/patterns/ai/node.cjs +21 -1
- package/dist/patterns/ai/node.cjs.map +1 -0
- package/dist/patterns/ai/node.d.cts +1 -59
- package/dist/patterns/ai/node.d.ts +1 -59
- package/dist/patterns/ai/node.js +3 -1
- package/dist/patterns/ai/node.js.map +1 -0
- package/dist/patterns/cqrs/index.cjs +21 -3
- package/dist/patterns/cqrs/index.cjs.map +1 -0
- package/dist/patterns/cqrs/index.d.cts +1 -8
- package/dist/patterns/cqrs/index.d.ts +1 -8
- package/dist/patterns/cqrs/index.js +3 -1
- package/dist/patterns/cqrs/index.js.map +1 -0
- package/dist/patterns/demo-shell/index.cjs +21 -5
- package/dist/patterns/demo-shell/index.cjs.map +1 -0
- package/dist/patterns/demo-shell/index.d.cts +1 -7
- package/dist/patterns/demo-shell/index.d.ts +1 -7
- package/dist/patterns/demo-shell/index.js +3 -1
- package/dist/patterns/demo-shell/index.js.map +1 -0
- package/dist/patterns/domain-templates/index.cjs +21 -3
- package/dist/patterns/domain-templates/index.cjs.map +1 -0
- package/dist/patterns/domain-templates/index.d.cts +1 -6
- package/dist/patterns/domain-templates/index.d.ts +1 -6
- package/dist/patterns/domain-templates/index.js +3 -1
- package/dist/patterns/domain-templates/index.js.map +1 -0
- package/dist/patterns/graphspec/index.cjs +21 -86
- package/dist/patterns/graphspec/index.cjs.map +1 -0
- package/dist/patterns/graphspec/index.d.cts +1 -8
- package/dist/patterns/graphspec/index.d.ts +1 -8
- package/dist/patterns/graphspec/index.js +3 -1
- package/dist/patterns/graphspec/index.js.map +1 -0
- package/dist/patterns/harness/index.cjs +21 -48
- package/dist/patterns/harness/index.cjs.map +1 -0
- package/dist/patterns/harness/index.d.cts +1 -13
- package/dist/patterns/harness/index.d.ts +1 -13
- package/dist/patterns/harness/index.js +3 -1
- package/dist/patterns/harness/index.js.map +1 -0
- package/dist/patterns/inspect/index.cjs +21 -3
- package/dist/patterns/inspect/index.cjs.map +1 -0
- package/dist/patterns/inspect/index.d.cts +1 -9
- package/dist/patterns/inspect/index.d.ts +1 -9
- package/dist/patterns/inspect/index.js +3 -1
- package/dist/patterns/inspect/index.js.map +1 -0
- package/dist/patterns/job-queue/index.cjs +21 -3
- package/dist/patterns/job-queue/index.cjs.map +1 -0
- package/dist/patterns/job-queue/index.d.cts +1 -9
- package/dist/patterns/job-queue/index.d.ts +1 -9
- package/dist/patterns/job-queue/index.js +3 -1
- package/dist/patterns/job-queue/index.js.map +1 -0
- package/dist/patterns/memory/index.cjs +21 -3
- package/dist/patterns/memory/index.cjs.map +1 -0
- package/dist/patterns/memory/index.d.cts +1 -8
- package/dist/patterns/memory/index.d.ts +1 -8
- package/dist/patterns/memory/index.js +3 -1
- package/dist/patterns/memory/index.js.map +1 -0
- package/dist/patterns/messaging/index.cjs +21 -3
- package/dist/patterns/messaging/index.cjs.map +1 -0
- package/dist/patterns/messaging/index.d.cts +1 -7
- package/dist/patterns/messaging/index.d.ts +1 -7
- package/dist/patterns/messaging/index.js +3 -1
- package/dist/patterns/messaging/index.js.map +1 -0
- package/dist/patterns/orchestration/index.cjs +21 -3
- package/dist/patterns/orchestration/index.cjs.map +1 -0
- package/dist/patterns/orchestration/index.d.cts +1 -8
- package/dist/patterns/orchestration/index.d.ts +1 -8
- package/dist/patterns/orchestration/index.js +3 -1
- package/dist/patterns/orchestration/index.js.map +1 -0
- package/dist/patterns/process/index.cjs +21 -3
- package/dist/patterns/process/index.cjs.map +1 -0
- package/dist/patterns/process/index.d.cts +1 -10
- package/dist/patterns/process/index.d.ts +1 -10
- package/dist/patterns/process/index.js +3 -1
- package/dist/patterns/process/index.js.map +1 -0
- package/dist/patterns/reactive-layout/index.cjs +21 -4
- package/dist/patterns/reactive-layout/index.cjs.map +1 -0
- package/dist/patterns/reactive-layout/index.d.cts +1 -7
- package/dist/patterns/reactive-layout/index.d.ts +1 -7
- package/dist/patterns/reactive-layout/index.js +3 -1
- package/dist/patterns/reactive-layout/index.js.map +1 -0
- package/dist/patterns/reduction/index.cjs +21 -3
- package/dist/patterns/reduction/index.cjs.map +1 -0
- package/dist/patterns/reduction/index.d.cts +1 -6
- package/dist/patterns/reduction/index.d.ts +1 -6
- package/dist/patterns/reduction/index.js +3 -1
- package/dist/patterns/reduction/index.js.map +1 -0
- package/dist/patterns/surface/index.cjs +21 -13
- package/dist/patterns/surface/index.cjs.map +1 -0
- package/dist/patterns/surface/index.d.cts +1 -9
- package/dist/patterns/surface/index.d.ts +1 -9
- package/dist/patterns/surface/index.js +3 -1
- package/dist/patterns/surface/index.js.map +1 -0
- package/dist/patterns/topology-view/index.cjs +21 -0
- package/dist/patterns/topology-view/index.cjs.map +1 -0
- package/dist/patterns/topology-view/index.d.cts +1 -0
- package/dist/patterns/topology-view/index.d.ts +1 -0
- package/dist/patterns/topology-view/index.js +3 -0
- package/dist/patterns/topology-view/index.js.map +1 -0
- package/dist/testing/index.cjs +21 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +1 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/package.json +608 -584
- package/dist/backoff-HPZMEZNF.js +0 -1
- package/dist/cascading-BglDkMdX.d.cts +0 -199
- package/dist/cascading-MFgxu7Yo.d.ts +0 -199
- package/dist/chunk-2T7U5EU6.js +0 -1
- package/dist/chunk-3G5U5QNE.js +0 -5
- package/dist/chunk-4VVTGLXJ.js +0 -1
- package/dist/chunk-5M4CCMMD.js +0 -45
- package/dist/chunk-5QDBSZBV.js +0 -1
- package/dist/chunk-5XJ6B66J.js +0 -1
- package/dist/chunk-6QZNQS5B.js +0 -1
- package/dist/chunk-6X7AFUJV.js +0 -9
- package/dist/chunk-7K6PWTDQ.js +0 -1
- package/dist/chunk-7LIAPXJB.js +0 -1
- package/dist/chunk-7WPU3UHQ.js +0 -1
- package/dist/chunk-A5WCQ5NO.js +0 -1
- package/dist/chunk-APPIWSGD.js +0 -84
- package/dist/chunk-BEZWM2SY.js +0 -1
- package/dist/chunk-C72GO4IZ.js +0 -1
- package/dist/chunk-CB676TKJ.js +0 -1
- package/dist/chunk-CE6TI2TL.js +0 -1
- package/dist/chunk-CE72X3WO.js +0 -1
- package/dist/chunk-CK2E7BTU.js +0 -1
- package/dist/chunk-CLVB32RD.js +0 -1
- package/dist/chunk-CRVT7D2P.js +0 -1
- package/dist/chunk-D5RFJOZ2.js +0 -1
- package/dist/chunk-D7GPHKFH.js +0 -1
- package/dist/chunk-DHRX7JX4.js +0 -2
- package/dist/chunk-ESMPEKEV.js +0 -1
- package/dist/chunk-F672GV32.js +0 -1
- package/dist/chunk-FZMYDOWV.js +0 -1
- package/dist/chunk-GHBWHMRZ.js +0 -1
- package/dist/chunk-GLERH466.js +0 -1
- package/dist/chunk-GPW2V3RE.js +0 -1
- package/dist/chunk-HIDYF36O.js +0 -1
- package/dist/chunk-HITNVN6B.js +0 -3
- package/dist/chunk-HY4DJBA7.js +0 -5
- package/dist/chunk-KZIEYVXN.js +0 -1
- package/dist/chunk-L6NSJVJZ.js +0 -1
- package/dist/chunk-N4MQX6JU.js +0 -18
- package/dist/chunk-N7FHEL4D.js +0 -1
- package/dist/chunk-NTEURFZH.js +0 -1
- package/dist/chunk-OIVP6KFV.js +0 -1
- package/dist/chunk-OPHBU3LG.js +0 -1
- package/dist/chunk-OYQOZP2F.js +0 -5
- package/dist/chunk-PTZK576G.js +0 -1
- package/dist/chunk-QYADASLV.js +0 -1
- package/dist/chunk-ST7UXLWR.js +0 -1
- package/dist/chunk-SVY7VUYU.js +0 -1
- package/dist/chunk-TK3NWWD4.js +0 -1
- package/dist/chunk-TSOYJ743.js +0 -1
- package/dist/chunk-UNGSTR4X.js +0 -61
- package/dist/chunk-VIMF6LGM.js +0 -1
- package/dist/chunk-VJLMUKOI.js +0 -1
- package/dist/chunk-VN6RDSK2.js +0 -1
- package/dist/chunk-VV4N5P64.js +0 -1
- package/dist/chunk-W3I423PS.js +0 -1
- package/dist/chunk-WJR24TAG.js +0 -1
- package/dist/chunk-XTGKMHSW.js +0 -1
- package/dist/chunk-YBB7ZGTY.js +0 -1
- package/dist/chunk-Z4NPUARF.js +0 -1
- package/dist/chunk-ZGNQRPDT.js +0 -1
- package/dist/chunk-ZKPSFFKU.js +0 -1
- package/dist/chunk-ZLV5SQSX.js +0 -1
- package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
- package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
- package/dist/decay-BvOWTZ00.d.ts +0 -112
- package/dist/decay-CFlLvXUT.d.cts +0 -112
- package/dist/fallback-74oxi34l.d.cts +0 -250
- package/dist/fallback-DUyyBTBK.d.ts +0 -250
- package/dist/graph-CWvEUQAq.d.cts +0 -1861
- package/dist/graph-D9LFnda9.d.ts +0 -1861
- package/dist/index-5k1T6jl0.d.cts +0 -121
- package/dist/index-9770hRuQ.d.cts +0 -779
- package/dist/index-B-_tFaqV.d.cts +0 -468
- package/dist/index-B17QddL1.d.cts +0 -374
- package/dist/index-B1F8Enjf.d.ts +0 -704
- package/dist/index-B5S8ULbU.d.ts +0 -515
- package/dist/index-B8YnZpIR.d.ts +0 -102
- package/dist/index-BHskSB8v.d.ts +0 -3413
- package/dist/index-BIYAkbAi.d.cts +0 -26
- package/dist/index-BQSKmbuG.d.cts +0 -127
- package/dist/index-BaQaY_IQ.d.cts +0 -231
- package/dist/index-BmZXHqkE.d.ts +0 -36
- package/dist/index-BoJ5JHxI.d.ts +0 -557
- package/dist/index-BocU7pqs.d.ts +0 -779
- package/dist/index-BrPrLl4e.d.cts +0 -86
- package/dist/index-BxNs2HB9.d.cts +0 -1858
- package/dist/index-Byu-OpX_.d.ts +0 -113
- package/dist/index-C1T3d7V-.d.cts +0 -704
- package/dist/index-C5ri2Axc.d.cts +0 -301
- package/dist/index-C5stwKcw.d.cts +0 -44
- package/dist/index-C9l6OEBL.d.ts +0 -26
- package/dist/index-CBBLl_rc.d.ts +0 -127
- package/dist/index-CBGUK09R.d.ts +0 -754
- package/dist/index-CC-AvFTy.d.cts +0 -557
- package/dist/index-CJF1URuX.d.ts +0 -121
- package/dist/index-CK29LV56.d.cts +0 -34
- package/dist/index-CMh5Rz1y.d.ts +0 -385
- package/dist/index-CPQlGA29.d.ts +0 -34
- package/dist/index-CR8QpwX8.d.ts +0 -2680
- package/dist/index-CS0LTlB8.d.cts +0 -385
- package/dist/index-CSOmP7xT.d.cts +0 -291
- package/dist/index-CYq8vAyV.d.ts +0 -291
- package/dist/index-CZ3r5Rxp.d.ts +0 -374
- package/dist/index-CasX6Pfq.d.cts +0 -358
- package/dist/index-CdAlHFEt.d.ts +0 -44
- package/dist/index-CdTelp1M.d.ts +0 -202
- package/dist/index-CeFiHtAg.d.ts +0 -468
- package/dist/index-Cj3WohTd.d.cts +0 -202
- package/dist/index-Climxqsu.d.cts +0 -754
- package/dist/index-Co7uli2l.d.cts +0 -3413
- package/dist/index-CviRnE4K.d.ts +0 -45
- package/dist/index-Cwv0KWcU.d.cts +0 -102
- package/dist/index-CzLVrjxn.d.ts +0 -231
- package/dist/index-D0aciIex.d.cts +0 -209
- package/dist/index-DHen9Klo.d.ts +0 -1858
- package/dist/index-DV_1YuVk.d.cts +0 -221
- package/dist/index-Dc4AYqrJ.d.cts +0 -515
- package/dist/index-Dgl1HpPn.d.ts +0 -86
- package/dist/index-DisjX8a-.d.ts +0 -221
- package/dist/index-UPSiS-X7.d.cts +0 -2680
- package/dist/index-Yq60JP3s.d.ts +0 -209
- package/dist/index-ZVQhLa2i.d.cts +0 -37
- package/dist/index-_6ODbuOu.d.cts +0 -45
- package/dist/index-hcDJ8PSI.d.cts +0 -36
- package/dist/index-nozs3fFC.d.ts +0 -301
- package/dist/index-p09KSrTN.d.ts +0 -358
- package/dist/index-sqkqlb1p.d.ts +0 -37
- package/dist/index-tRCxuAXF.d.cts +0 -113
- package/dist/node-kK3CvTrR.d.cts +0 -1347
- package/dist/node-kK3CvTrR.d.ts +0 -1347
- package/dist/observable-DWjNfLvC.d.ts +0 -36
- package/dist/observable-e3eiPPFy.d.cts +0 -36
- package/dist/pipeline-graph-CIKhynsF.d.cts +0 -142
- package/dist/pipeline-graph-Sgj0gCwn.d.ts +0 -142
- package/dist/reactive-layout-DOTs9P3X.d.ts +0 -183
- package/dist/reactive-layout-DgctbqZo.d.cts +0 -183
- package/dist/reactive-log-BKALbfal.d.ts +0 -223
- package/dist/reactive-log-DIGdYqQ6.d.cts +0 -223
- package/dist/reactive-map-CEFGp8TK.d.cts +0 -296
- package/dist/reactive-map-DS_SIAxv.d.ts +0 -296
- package/dist/resilience-6LYQJAC5.js +0 -1
- package/dist/sugar-DQjFmVqb.d.cts +0 -399
- package/dist/sugar-fhLIE7TT.d.ts +0 -399
- package/dist/topology-tree-Bcz27hpF.d.cts +0 -25
- package/dist/topology-tree-xvaD0fOX.d.ts +0 -25
- package/dist/types-C0_yquda.d.cts +0 -442
- package/dist/types-CWFysE9E.d.ts +0 -442
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-kK3CvTrR.cjs';
|
|
2
|
-
import { B as BaseAuditRecord } from './index-D0aciIex.cjs';
|
|
3
|
-
import { a as ReactiveLogBundle } from './reactive-log-DIGdYqQ6.cjs';
|
|
4
|
-
import { G as Graph } from './graph-CWvEUQAq.cjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Memory patterns (roadmap §4.3) — public-face Phase-4 primitives audited under
|
|
8
|
-
* `archive/docs/SESSION-public-face-blocks-review.md` (Wave A, locked 2026-04-25).
|
|
9
|
-
*
|
|
10
|
-
* Three primitives (the pure `decay` helper was promoted to `extra/utils/decay.ts`
|
|
11
|
-
* per Tier 2.2 and is no longer re-exported here; `lightCollection` was folded
|
|
12
|
-
* into `collection({ranked:false})` per Tier 2.3 and is no longer a separate
|
|
13
|
-
* factory):
|
|
14
|
-
* - {@link collection} / {@link CollectionGraph} — keyed memory store with
|
|
15
|
-
* optional decay-aware ranking. Pass `{ ranked: false }` for the previous
|
|
16
|
-
* `lightCollection` shape (Map + LRU + audit, no scoring).
|
|
17
|
-
* - {@link vectorIndex} / {@link VectorIndexGraph} — reactive vector store with
|
|
18
|
-
* optional HNSW backend, retention, and reactive {@link VectorIndexGraph.searchNode}.
|
|
19
|
-
* - {@link knowledgeGraph} / {@link KnowledgeGraph} — entities + typed edges with
|
|
20
|
-
* symmetric adjacency indexes and reactive {@link KnowledgeGraph.relatedNode}.
|
|
21
|
-
*
|
|
22
|
-
* **No imperative reads.** Per the API-style policy locked 2026-04-25, public-face
|
|
23
|
-
* primitives expose reactive reads only — `itemNode` / `hasNode` / `searchNode` /
|
|
24
|
-
* `relatedNode`. One-shot snapshots use `node.cache` after `awaitSettled`, or
|
|
25
|
-
* `firstValueFrom(node)`.
|
|
26
|
-
*
|
|
27
|
-
* **Audit logs.** Every imperative mutation (`upsert / remove / clear / link /
|
|
28
|
-
* unlink / rescore / reindex`) is wrapped via {@link lightMutation} and appends a
|
|
29
|
-
* typed record to a public `events` log on the bundle / graph.
|
|
30
|
-
*
|
|
31
|
-
* @module
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Cosine similarity over `(a, b)`. When lengths differ, the shorter is
|
|
36
|
-
* implicitly zero-padded to the longer length. Returns `0` if either vector
|
|
37
|
-
* has zero norm. Public utility — used by {@link VectorIndexGraph.searchNode}
|
|
38
|
-
* and exposed for downstream consumers (e.g. `patterns/ai/memory/`) that need
|
|
39
|
-
* the same scoring at the boundary.
|
|
40
|
-
*
|
|
41
|
-
* **Numeric guards.** Returns `0` for non-finite results (overflow producing
|
|
42
|
-
* `Infinity`/`NaN` from very-large vectors, or `NaN` propagating from any
|
|
43
|
-
* `NaN`/`Infinity` component). Without this guard, downstream sort
|
|
44
|
-
* comparators would order NaN-scored rows arbitrarily.
|
|
45
|
-
*
|
|
46
|
-
* **Depth.** This is a per-call computation; no internal caching. For very
|
|
47
|
-
* large indexes (>10k) consider precomputing norms or using HNSW.
|
|
48
|
-
*
|
|
49
|
-
* @category memory
|
|
50
|
-
*/
|
|
51
|
-
declare function cosineSimilarity(a: readonly number[], b: readonly number[]): number;
|
|
52
|
-
/** Public alias for the `Node | value` shape accepted by reactive read factories. */
|
|
53
|
-
type NodeOrValue<T> = T | Node<T>;
|
|
54
|
-
type CollectionEntry<T> = {
|
|
55
|
-
readonly id: string;
|
|
56
|
-
readonly value: T;
|
|
57
|
-
readonly createdAtNs: number;
|
|
58
|
-
readonly lastAccessNs: number;
|
|
59
|
-
readonly baseScore: number;
|
|
60
|
-
};
|
|
61
|
-
type RankedCollectionEntry<T> = CollectionEntry<T> & {
|
|
62
|
-
readonly score: number;
|
|
63
|
-
};
|
|
64
|
-
type CollectionScoreFn<T> = (value: T) => number;
|
|
65
|
-
type CollectionOptions<T> = {
|
|
66
|
-
maxSize?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Whether to expose a live decay-aware `ranked` node + `rescore` mutator.
|
|
69
|
-
* Default `true`. Pass `false` to fold in the previous `lightCollection`
|
|
70
|
-
* shape — entries are still keyed/audited/LRU-evicted, but the timer-driven
|
|
71
|
-
* `ranked` + scoring machinery is skipped. `ranked` then resolves to a
|
|
72
|
-
* static empty array Node and `rescore()` is a no-op (so callers writing
|
|
73
|
-
* type-generic code don't need to special-case the unranked path).
|
|
74
|
-
*/
|
|
75
|
-
ranked?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Produces a base score at insert/update time. Static fn or a reactive
|
|
78
|
-
* `Node<(value: T) => number>` — when supplied as a Node, `ranked` re-derives
|
|
79
|
-
* whenever the score fn changes, but `baseScore` on each entry is only
|
|
80
|
-
* recomputed via {@link CollectionGraph.rescore}. Default `() => 1`.
|
|
81
|
-
*
|
|
82
|
-
* Ignored when `ranked: false` (entries record `baseScore: 0`).
|
|
83
|
-
*/
|
|
84
|
-
score?: CollectionScoreFn<T> | Node<CollectionScoreFn<T>>;
|
|
85
|
-
/**
|
|
86
|
-
* Exponential decay rate per second. `0` disables decay (default). When
|
|
87
|
-
* positive, `ranked` becomes fully reactive on time via a `fromTimer` source
|
|
88
|
-
* (cadence auto-derived from `decayRate` unless overridden via
|
|
89
|
-
* `refreshIntervalMs`). Half-life: `ratePerSecond = Math.LN2 / halfLifeSeconds`.
|
|
90
|
-
*
|
|
91
|
-
* Ignored when `ranked: false`.
|
|
92
|
-
*/
|
|
93
|
-
decayRate?: number;
|
|
94
|
-
/** Minimum score floor after decay. Default `0`. */
|
|
95
|
-
minScore?: number;
|
|
96
|
-
/**
|
|
97
|
-
* Override for the `ranked` refresh tick cadence (milliseconds). When
|
|
98
|
-
* unset and `decayRate > 0`, defaults to `1000 * Math.LN2 / (10 * decayRate)`
|
|
99
|
-
* — roughly one tick per 10% of the half-life (~10% staleness budget).
|
|
100
|
-
*/
|
|
101
|
-
refreshIntervalMs?: number;
|
|
102
|
-
};
|
|
103
|
-
interface CollectionAuditRecord extends BaseAuditRecord {
|
|
104
|
-
readonly action: "upsert" | "remove" | "clear" | "rescore";
|
|
105
|
-
readonly id?: string;
|
|
106
|
-
}
|
|
107
|
-
type CollectionGraph<T> = Graph & {
|
|
108
|
-
readonly events: ReactiveLogBundle<CollectionAuditRecord>;
|
|
109
|
-
readonly items: Node<ReadonlyMap<string, CollectionEntry<T>>>;
|
|
110
|
-
/**
|
|
111
|
-
* Live decay-aware ranking, sorted by score descending. When the
|
|
112
|
-
* collection was constructed with `ranked: false`, this is a static
|
|
113
|
-
* empty-array Node (kept for type uniformity).
|
|
114
|
-
*/
|
|
115
|
-
readonly ranked: Node<readonly RankedCollectionEntry<T>[]>;
|
|
116
|
-
readonly size: Node<number>;
|
|
117
|
-
upsert: (id: string, value: T, opts?: {
|
|
118
|
-
score?: number;
|
|
119
|
-
}) => void;
|
|
120
|
-
remove: (id: string) => void;
|
|
121
|
-
clear: () => void;
|
|
122
|
-
/**
|
|
123
|
-
* Recompute every entry's `baseScore` via the latest score fn. O(N). Useful
|
|
124
|
-
* when a reactive `score` Node has emitted a new fn and the caller wants
|
|
125
|
-
* existing entries re-scored without an explicit re-upsert.
|
|
126
|
-
*
|
|
127
|
-
* No-op (still records an audit entry) when constructed with
|
|
128
|
-
* `ranked: false`.
|
|
129
|
-
*/
|
|
130
|
-
rescore: () => void;
|
|
131
|
-
itemNode: (id: NodeOrValue<string>) => Node<CollectionEntry<T> | undefined>;
|
|
132
|
-
/** Reactive `true` once the entry exists; tracks upsert / remove. */
|
|
133
|
-
hasNode: (id: NodeOrValue<string>) => Node<boolean>;
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* Scored memory store with live decay-aware ranking.
|
|
137
|
-
*
|
|
138
|
-
* Topology (mounted on the returned graph):
|
|
139
|
-
* - `items` — `reactiveMap<id, CollectionEntry<T>>` (with `retention` configured
|
|
140
|
-
* for score-based eviction when `maxSize` is set).
|
|
141
|
-
* - `ranked` — `Node<readonly RankedCollectionEntry<T>[]>`, sorted by live
|
|
142
|
-
* decayed score. **Lazy** — does NOT compute until subscribed (no internal
|
|
143
|
-
* keepalive). Use `keepalive(coll.ranked)` for eager activation.
|
|
144
|
-
* - `size` — `Node<number>`, count of entries.
|
|
145
|
-
* - `_refreshTick` — `fromTimer`-driven `monotonicNs()` source, mounted only
|
|
146
|
-
* when `decayRate > 0`. Drives `ranked`'s time-dependent re-derivation.
|
|
147
|
-
* - `_seq` — sequence cursor for the audit log.
|
|
148
|
-
* - `events` — bounded reactive log of every mutation.
|
|
149
|
-
*
|
|
150
|
-
* **Time as a reactive dep.** When `decayRate > 0`, `ranked`'s deps are
|
|
151
|
-
* `[items, refreshTick]` — the tick payload IS `monotonicNs()`, so the fn is
|
|
152
|
-
* pure of deps and dry-run-reproducible with a mocked clock.
|
|
153
|
-
*
|
|
154
|
-
* **Lazy timer.** With no subscriber to `ranked`, the timer source does not
|
|
155
|
-
* fire — the activation chain is downstream-driven. To keep the timer warm
|
|
156
|
-
* without consuming results, register `graph.addDisposer(keepalive(coll.ranked))`.
|
|
157
|
-
*
|
|
158
|
-
* **Eviction at write-time.** Score-based retention runs on every successful
|
|
159
|
-
* `upsert / remove / clear` (it is mutation-driven, not tick-driven). The
|
|
160
|
-
* retention scorer reads `monotonicNs()` to compute decayed scores at eviction
|
|
161
|
-
* time — this is a deliberate impurity vs. `ReactiveMapRetention.score`'s
|
|
162
|
-
* "pure of `(key, value)`" docstring: write-time is the right moment to evict
|
|
163
|
-
* stale-by-decay entries.
|
|
164
|
-
*
|
|
165
|
-
* **No imperative reads.** Subscribe to `items` / `ranked` for live snapshots,
|
|
166
|
-
* or use `itemNode(id)` for single-key reactive reads.
|
|
167
|
-
*
|
|
168
|
-
* **`rescore` ordering caveat.** `rescore()` reads `items.entries.cache`
|
|
169
|
-
* (the post-emission snapshot) and writes via `setMany`. When called
|
|
170
|
-
* stand-alone it sees the latest committed state. When wrapped inside a
|
|
171
|
-
* user-level `batch(() => { coll.upsert(...); coll.rescore(); })`, the
|
|
172
|
-
* `cache` snapshot reflects state BEFORE the batch — so a just-staged
|
|
173
|
-
* upsert is invisible to the rescore scan. If you need rescore to include
|
|
174
|
-
* the staged upsert, either call `rescore()` after the batch settles or
|
|
175
|
-
* pass the new `baseScore` directly via `upsert(id, value, { score })`.
|
|
176
|
-
*
|
|
177
|
-
* **Audit no-op records.** Like `lightCollection`, mutations record audit
|
|
178
|
-
* entries even when the impl was a no-op (e.g., `rescore()` on an empty
|
|
179
|
-
* store). Intentional — the framework records attempts.
|
|
180
|
-
*
|
|
181
|
-
* @category memory
|
|
182
|
-
*/
|
|
183
|
-
declare function collection<T>(name: string, opts?: CollectionOptions<T>): CollectionGraph<T>;
|
|
184
|
-
type VectorBackend = "flat" | "hnsw";
|
|
185
|
-
type VectorRecord<TMeta> = {
|
|
186
|
-
readonly id: string;
|
|
187
|
-
readonly vector: readonly number[];
|
|
188
|
-
readonly meta?: TMeta;
|
|
189
|
-
/** Wall-clock-monotonic timestamp at last upsert; used for the default LRU retention. */
|
|
190
|
-
readonly upsertedAtNs: number;
|
|
191
|
-
};
|
|
192
|
-
type VectorSearchResult<TMeta> = {
|
|
193
|
-
readonly id: string;
|
|
194
|
-
readonly score: number;
|
|
195
|
-
readonly meta?: TMeta;
|
|
196
|
-
};
|
|
197
|
-
type HnswAdapter<TMeta> = {
|
|
198
|
-
upsert: (id: string, vector: readonly number[], meta?: TMeta) => void;
|
|
199
|
-
remove: (id: string) => void;
|
|
200
|
-
clear: () => void;
|
|
201
|
-
search: (query: readonly number[], k: number) => ReadonlyArray<VectorSearchResult<TMeta>>;
|
|
202
|
-
/** Optional adapter teardown. Called from `graph.destroy()` via `addDisposer`. */
|
|
203
|
-
dispose?: () => void;
|
|
204
|
-
};
|
|
205
|
-
type VectorIndexOptions<TMeta> = {
|
|
206
|
-
name?: string;
|
|
207
|
-
backend?: VectorBackend;
|
|
208
|
-
dimension?: number;
|
|
209
|
-
/**
|
|
210
|
-
* Strict-dimension default. When `true` (default) AND `dimension` is unset,
|
|
211
|
-
* mixed-length upserts throw `RangeError`. Set `false` to opt into the
|
|
212
|
-
* lenient zero-padding behavior of {@link VectorIndexGraph.searchNode}.
|
|
213
|
-
*/
|
|
214
|
-
strictDimension?: boolean;
|
|
215
|
-
/** Optional dependency seam for HNSW. */
|
|
216
|
-
hnswFactory?: () => HnswAdapter<TMeta>;
|
|
217
|
-
/** Maximum live entries (LRU-by-upsert-time when set; user-overridable via `retentionScore`). */
|
|
218
|
-
maxSize?: number;
|
|
219
|
-
/** Custom retention scorer. Higher score = kept. Defaults to `r => r.upsertedAtNs`. */
|
|
220
|
-
retentionScore?: (record: VectorRecord<TMeta>) => number;
|
|
221
|
-
};
|
|
222
|
-
interface VectorIndexAuditRecord extends BaseAuditRecord {
|
|
223
|
-
readonly action: "upsert" | "remove" | "clear" | "reindex" | "evict";
|
|
224
|
-
readonly id?: string;
|
|
225
|
-
}
|
|
226
|
-
type VectorIndexGraph<TMeta> = Graph & {
|
|
227
|
-
readonly backend: VectorBackend;
|
|
228
|
-
readonly events: ReactiveLogBundle<VectorIndexAuditRecord>;
|
|
229
|
-
readonly entries: Node<ReadonlyMap<string, VectorRecord<TMeta>>>;
|
|
230
|
-
upsert: (id: string, vector: readonly number[], meta?: TMeta) => void;
|
|
231
|
-
remove: (id: string) => void;
|
|
232
|
-
clear: () => void;
|
|
233
|
-
/** Re-push every live entry into the optional HNSW adapter. No-op for `flat`. */
|
|
234
|
-
reindex: () => void;
|
|
235
|
-
/**
|
|
236
|
-
* Reactive top-K search. Re-derives whenever entries / query / k change.
|
|
237
|
-
* Lazy. Use `firstValueFrom(searchNode(...))` for one-shot reads.
|
|
238
|
-
*/
|
|
239
|
-
searchNode: (query: Node<readonly number[]>, k?: NodeOrValue<number>) => Node<readonly VectorSearchResult<TMeta>[]>;
|
|
240
|
-
};
|
|
241
|
-
/**
|
|
242
|
-
* Reactive vector store with optional HNSW backend.
|
|
243
|
-
*
|
|
244
|
-
* **Storage on `reactiveMap`.** `entries` is a `reactiveMap<id, VectorRecord<TMeta>>`
|
|
245
|
-
* with optional score-based retention (`maxSize` + LRU-by-`upsertedAtNs` by
|
|
246
|
-
* default; user can supply a custom `retentionScore`). On retention eviction,
|
|
247
|
-
* the HNSW adapter (if configured) is also notified via `adapter.remove(id)`.
|
|
248
|
-
*
|
|
249
|
-
* **Reactive search.** `searchNode(queryNode, k)` returns a `Node<readonly
|
|
250
|
-
* VectorSearchResult<TMeta>[]>` that re-derives on entries / query / k change.
|
|
251
|
-
* Lazy — only computes when subscribed. Imperative `search()` is intentionally
|
|
252
|
-
* not exposed (no-imperative-reads policy). Use `firstValueFrom(searchNode(...))`
|
|
253
|
-
* for one-shot reads.
|
|
254
|
-
*
|
|
255
|
-
* **Strict dimension.** Default `strictDimension: true` — if `dimension` is
|
|
256
|
-
* unset and an upsert produces a vector of a different length than the first
|
|
257
|
-
* upserted, throws `RangeError`. Pass `strictDimension: false` to opt into
|
|
258
|
-
* the lenient zero-padding fallback (the previous default).
|
|
259
|
-
*
|
|
260
|
-
* **Adapter lifecycle.** When the HNSW adapter exposes a `dispose()` method,
|
|
261
|
-
* it is bound to the graph's teardown via `addDisposer`. When retention
|
|
262
|
-
* evicts an entry, `adapter.remove(id)` is invoked synchronously inside the
|
|
263
|
-
* retention `onArchive` callback.
|
|
264
|
-
*
|
|
265
|
-
* **Cosine zero-pad.** The flat backend uses cosine similarity over the
|
|
266
|
-
* pairwise max-length zero-pad. Mixing dimensions silently degrades scores
|
|
267
|
-
* unless strict mode catches it at upsert time. For embedding-model vectors,
|
|
268
|
-
* L2-normalize at the source — `vectorIndex` does not normalize.
|
|
269
|
-
*
|
|
270
|
-
* @category memory
|
|
271
|
-
*/
|
|
272
|
-
declare function vectorIndex<TMeta>(opts?: VectorIndexOptions<TMeta>): VectorIndexGraph<TMeta>;
|
|
273
|
-
type KnowledgeEdge<TRelation extends string = string> = {
|
|
274
|
-
readonly from: string;
|
|
275
|
-
readonly to: string;
|
|
276
|
-
readonly relation: TRelation;
|
|
277
|
-
readonly weight: number;
|
|
278
|
-
};
|
|
279
|
-
type KnowledgeGraphOptions = {
|
|
280
|
-
/** Cap on entity count (LRU-by-upsert-time when set). */
|
|
281
|
-
entitiesMaxSize?: number;
|
|
282
|
-
/** Cap on edge count (LRU-by-upsert-time when set). */
|
|
283
|
-
edgesMaxSize?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Orphan-entity garbage collection. `"keep"` (default) leaves entities
|
|
286
|
-
* untouched when their last edge is unlinked; `"remove"` deletes the
|
|
287
|
-
* entity post-`unlink` if no edges reference it.
|
|
288
|
-
*/
|
|
289
|
-
orphanGC?: "keep" | "remove";
|
|
290
|
-
};
|
|
291
|
-
interface KnowledgeGraphAuditRecord extends BaseAuditRecord {
|
|
292
|
-
readonly action: "upsertEntity" | "removeEntity" | "link" | "unlink" | "orphanRemove";
|
|
293
|
-
readonly id?: string;
|
|
294
|
-
readonly from?: string;
|
|
295
|
-
readonly to?: string;
|
|
296
|
-
readonly relation?: string;
|
|
297
|
-
/** Edge weight at the time of the `link`. Omitted for non-edge actions. */
|
|
298
|
-
readonly weight?: number;
|
|
299
|
-
}
|
|
300
|
-
type KnowledgeGraph<TEntity, TRelation extends string = string> = Graph & {
|
|
301
|
-
readonly events: ReactiveLogBundle<KnowledgeGraphAuditRecord>;
|
|
302
|
-
readonly entities: Node<ReadonlyMap<string, TEntity>>;
|
|
303
|
-
readonly edges: Node<ReadonlyMap<string, KnowledgeEdge<TRelation>>>;
|
|
304
|
-
readonly adjacencyOut: Node<ReadonlyMap<string, readonly KnowledgeEdge<TRelation>[]>>;
|
|
305
|
-
readonly adjacencyIn: Node<ReadonlyMap<string, readonly KnowledgeEdge<TRelation>[]>>;
|
|
306
|
-
readonly entityCount: Node<number>;
|
|
307
|
-
readonly edgeCount: Node<number>;
|
|
308
|
-
upsertEntity: (id: string, value: TEntity) => void;
|
|
309
|
-
removeEntity: (id: string) => void;
|
|
310
|
-
link: (from: string, to: string, relation: TRelation, weight?: number) => void;
|
|
311
|
-
unlink: (from: string, to: string, relation?: TRelation) => void;
|
|
312
|
-
relatedNode: (id: NodeOrValue<string>, relation?: NodeOrValue<TRelation>) => Node<readonly KnowledgeEdge<TRelation>[]>;
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* Reactive knowledge graph: entities + typed edges + symmetric adjacency.
|
|
316
|
-
*
|
|
317
|
-
* Topology (mounted on the returned graph):
|
|
318
|
-
* - `entities` — `reactiveMap<id, TEntity>` (optional `entitiesMaxSize` LRU).
|
|
319
|
-
* - `edges` — `reactiveMap<tripleKey, KnowledgeEdge<TRelation>>` keyed by
|
|
320
|
-
* `${from}${to}${relation}` (optional `edgesMaxSize` LRU).
|
|
321
|
-
* Entity IDs / relations must NOT contain ``.
|
|
322
|
-
* - `adjacencyOut` — `Node<ReadonlyMap<from, readonly edge[]>>`. **Full O(E)
|
|
323
|
-
* rebuild on every `link` / `unlink` mutation.** (Prior JSDoc claim of
|
|
324
|
-
* "O(E) build" referred to a single rebuild — the per-mutation cost is
|
|
325
|
-
* O(E), not O(1) amortized. For very large graphs with frequent edge
|
|
326
|
-
* churn, consider batching via `reactiveMap.setMany`.)
|
|
327
|
-
* - `adjacencyIn` — `Node<ReadonlyMap<to, readonly edge[]>>`. Same O(E) per
|
|
328
|
-
* mutation rebuild characteristic.
|
|
329
|
-
* - `entityCount` / `edgeCount` — observability deriveds.
|
|
330
|
-
* - `events` — bounded reactive audit log.
|
|
331
|
-
*
|
|
332
|
-
* **`link()` semantics.** Calling `link(a, b, rel, w)` twice with different
|
|
333
|
-
* weights replaces the weight on the existing edge (keyed by the triple).
|
|
334
|
-
* `unlink` then `link` re-creates the edge (and bumps `lastUpsertNs` for
|
|
335
|
-
* retention purposes).
|
|
336
|
-
*
|
|
337
|
-
* **Edge weight convention.** Higher weight = stronger relation. Default `1`.
|
|
338
|
-
*
|
|
339
|
-
* **Orphan GC.** `orphanGC: "remove"` deletes an entity from `entities` after
|
|
340
|
-
* an `unlink` that empties its adjacency on both sides. Default `"keep"`.
|
|
341
|
-
*
|
|
342
|
-
* **No imperative reads.** Use `relatedNode(id, relation?)` for reactive reads.
|
|
343
|
-
*
|
|
344
|
-
* @category memory
|
|
345
|
-
*/
|
|
346
|
-
declare function knowledgeGraph<TEntity, TRelation extends string = string>(name: string, opts?: KnowledgeGraphOptions): KnowledgeGraph<TEntity, TRelation>;
|
|
347
|
-
|
|
348
|
-
type index_CollectionAuditRecord = CollectionAuditRecord;
|
|
349
|
-
type index_CollectionEntry<T> = CollectionEntry<T>;
|
|
350
|
-
type index_CollectionGraph<T> = CollectionGraph<T>;
|
|
351
|
-
type index_CollectionOptions<T> = CollectionOptions<T>;
|
|
352
|
-
type index_CollectionScoreFn<T> = CollectionScoreFn<T>;
|
|
353
|
-
type index_HnswAdapter<TMeta> = HnswAdapter<TMeta>;
|
|
354
|
-
type index_KnowledgeEdge<TRelation extends string = string> = KnowledgeEdge<TRelation>;
|
|
355
|
-
type index_KnowledgeGraph<TEntity, TRelation extends string = string> = KnowledgeGraph<TEntity, TRelation>;
|
|
356
|
-
type index_KnowledgeGraphAuditRecord = KnowledgeGraphAuditRecord;
|
|
357
|
-
type index_KnowledgeGraphOptions = KnowledgeGraphOptions;
|
|
358
|
-
type index_NodeOrValue<T> = NodeOrValue<T>;
|
|
359
|
-
type index_RankedCollectionEntry<T> = RankedCollectionEntry<T>;
|
|
360
|
-
type index_VectorBackend = VectorBackend;
|
|
361
|
-
type index_VectorIndexAuditRecord = VectorIndexAuditRecord;
|
|
362
|
-
type index_VectorIndexGraph<TMeta> = VectorIndexGraph<TMeta>;
|
|
363
|
-
type index_VectorIndexOptions<TMeta> = VectorIndexOptions<TMeta>;
|
|
364
|
-
type index_VectorRecord<TMeta> = VectorRecord<TMeta>;
|
|
365
|
-
type index_VectorSearchResult<TMeta> = VectorSearchResult<TMeta>;
|
|
366
|
-
declare const index_collection: typeof collection;
|
|
367
|
-
declare const index_cosineSimilarity: typeof cosineSimilarity;
|
|
368
|
-
declare const index_knowledgeGraph: typeof knowledgeGraph;
|
|
369
|
-
declare const index_vectorIndex: typeof vectorIndex;
|
|
370
|
-
declare namespace index {
|
|
371
|
-
export { type index_CollectionAuditRecord as CollectionAuditRecord, type index_CollectionEntry as CollectionEntry, type index_CollectionGraph as CollectionGraph, type index_CollectionOptions as CollectionOptions, type index_CollectionScoreFn as CollectionScoreFn, type index_HnswAdapter as HnswAdapter, type index_KnowledgeEdge as KnowledgeEdge, type index_KnowledgeGraph as KnowledgeGraph, type index_KnowledgeGraphAuditRecord as KnowledgeGraphAuditRecord, type index_KnowledgeGraphOptions as KnowledgeGraphOptions, type index_NodeOrValue as NodeOrValue, type index_RankedCollectionEntry as RankedCollectionEntry, type index_VectorBackend as VectorBackend, type index_VectorIndexAuditRecord as VectorIndexAuditRecord, type index_VectorIndexGraph as VectorIndexGraph, type index_VectorIndexOptions as VectorIndexOptions, type index_VectorRecord as VectorRecord, type index_VectorSearchResult as VectorSearchResult, index_collection as collection, index_cosineSimilarity as cosineSimilarity, index_knowledgeGraph as knowledgeGraph, index_vectorIndex as vectorIndex };
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
export { type CollectionGraph as C, type HnswAdapter as H, type KnowledgeGraph as K, type NodeOrValue as N, type RankedCollectionEntry as R, type VectorSearchResult as V, type VectorIndexGraph as a, type CollectionAuditRecord as b, type CollectionEntry as c, type CollectionOptions as d, type CollectionScoreFn as e, type KnowledgeEdge as f, type KnowledgeGraphAuditRecord as g, type KnowledgeGraphOptions as h, index as i, type VectorBackend as j, type VectorIndexAuditRecord as k, type VectorIndexOptions as l, type VectorRecord as m, collection as n, cosineSimilarity as o, knowledgeGraph as p, vectorIndex as v };
|