@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,557 +0,0 @@
|
|
|
1
|
-
import { l as GraphReFlyConfig } from './node-kK3CvTrR.cjs';
|
|
2
|
-
import { r as GraphPersistSnapshot, i as GraphCheckpointRecord, G as Graph, C as CausalChain, c as CausalStep, e as DescribeFilter, E as ExplainPathOptions, f as GRAPH_META_SEGMENT, g as GraphActorOptions, h as GraphAttachStorageOptions, j as GraphDescribeOptions, b as GraphDescribeOutput, k as GraphDiagramDirection, l as GraphDiffChange, m as GraphDiffResult, n as GraphFactoryContext, o as GraphNodeFactory, p as GraphObserveAll, q as GraphObserveOne, a as GraphOptions, s as GraphProfileOptions, t as GraphProfileResult, u as GraphVersionChange, v as GraphWALDiff, N as NodeProfile, O as ObserveChangeset, w as ObserveDetail, x as ObserveEvent, y as ObserveOptions, z as ObserveResult, A as ObserveTheme, B as ObserveThemeName, F as ObserveTier, R as ReachableDirection, H as ReachableOptions, S as SNAPSHOT_VERSION, T as TopologyEvent, I as TraceEntry, J as diffForWAL, K as explainPath, L as graphProfile, P as reachable } from './graph-CWvEUQAq.cjs';
|
|
3
|
-
import { w as watchTopologyTree } from './topology-tree-Bcz27hpF.cjs';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Approximate in-memory size estimation for arbitrary JS values.
|
|
7
|
-
*
|
|
8
|
-
* Iterative walk with cycle detection via `WeakSet`. V8-tuned overhead
|
|
9
|
-
* heuristics. Not exact — approximate enough for profiling and hotspot
|
|
10
|
-
* detection.
|
|
11
|
-
*
|
|
12
|
-
* Use cases: `graphProfile` (per-node value size), reactive data structure
|
|
13
|
-
* memory audits, heuristic cache admission.
|
|
14
|
-
*
|
|
15
|
-
* @module
|
|
16
|
-
*/
|
|
17
|
-
/** Approximate per-type overhead in bytes (V8 heuristics). */
|
|
18
|
-
declare const OVERHEAD: {
|
|
19
|
-
readonly object: 56;
|
|
20
|
-
readonly array: 64;
|
|
21
|
-
readonly string: 40;
|
|
22
|
-
readonly number: 8;
|
|
23
|
-
readonly boolean: 4;
|
|
24
|
-
readonly null: 0;
|
|
25
|
-
readonly undefined: 0;
|
|
26
|
-
readonly symbol: 40;
|
|
27
|
-
readonly bigint: 16;
|
|
28
|
-
readonly function: 120;
|
|
29
|
-
readonly map: 72;
|
|
30
|
-
readonly set: 72;
|
|
31
|
-
readonly mapEntry: 40;
|
|
32
|
-
readonly setEntry: 24;
|
|
33
|
-
readonly date: 24;
|
|
34
|
-
readonly regexp: 48;
|
|
35
|
-
readonly error: 64;
|
|
36
|
-
readonly url: 80;
|
|
37
|
-
readonly promise: 48;
|
|
38
|
-
readonly weakmap: 40;
|
|
39
|
-
readonly weakset: 40;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Optional user hook. Declare a `sizeof` symbol key on any object to return
|
|
43
|
-
* a precomputed size (in bytes); the walker will honor it and skip recursion.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const SIZEOF = Symbol.for("sizeof");
|
|
48
|
-
* class MyCache { [SIZEOF]() { return this.bytes; } }
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
declare const SIZEOF_SYMBOL: unique symbol;
|
|
52
|
-
/**
|
|
53
|
-
* Estimate the approximate retained memory (in bytes) of a JS value.
|
|
54
|
-
*
|
|
55
|
-
* Handles primitives, plain objects, arrays, Maps, Sets, ArrayBuffers +
|
|
56
|
-
* TypedArrays (shared-buffer dedup), Date, RegExp, Error, URL, Promise,
|
|
57
|
-
* WeakMap, WeakSet, nested combinations. Cyclic refs are counted once.
|
|
58
|
-
*
|
|
59
|
-
* @param value - The value to measure.
|
|
60
|
-
* @returns Approximate size in bytes.
|
|
61
|
-
*/
|
|
62
|
-
declare function sizeof(value: unknown): number;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* GraphCodec — pluggable serialization for graph snapshots (Phase 8.6).
|
|
66
|
-
*
|
|
67
|
-
* Design reference: `archive/docs/SESSION-serialization-memory-footprint.md`
|
|
68
|
-
*
|
|
69
|
-
* The codec interface decouples snapshot format from graph internals.
|
|
70
|
-
* Default is JSON (current behavior). DAG-CBOR and compressed variants
|
|
71
|
-
* ship as optional codecs. FlatBuffers/Arrow for advanced tiers.
|
|
72
|
-
*
|
|
73
|
-
* Tiered representation:
|
|
74
|
-
* HOT — JS objects (live propagation, no codec involved)
|
|
75
|
-
* WARM — DAG-CBOR in-memory buffer (lazy hydration, delta checkpoints)
|
|
76
|
-
* COLD — Arrow/Parquet (bulk storage, ML pipelines, archival)
|
|
77
|
-
* PEEK — FlatBuffers (zero-copy read from dormant graph)
|
|
78
|
-
*
|
|
79
|
-
* Wire-protocol envelope (v1):
|
|
80
|
-
*
|
|
81
|
-
* [envelope_v=1: u8][name_len: u8][name: utf8][codec_v: u16 BE][payload: rest]
|
|
82
|
-
*
|
|
83
|
-
* `graph.snapshot({format: "bytes", codec: name})` wraps the codec's
|
|
84
|
-
* `encode` output in this envelope; `Graph.decode(bytes)` auto-dispatches
|
|
85
|
-
* via the config's codec registry — no out-of-band content-type needed.
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Encode/decode graph snapshots to/from binary.
|
|
90
|
-
*
|
|
91
|
-
* Implementations must be deterministic: `encode(x)` always produces the
|
|
92
|
-
* same bytes for the same input. This is critical for CID computation (V1)
|
|
93
|
-
* and snapshot hash-comparison.
|
|
94
|
-
*/
|
|
95
|
-
interface GraphCodec {
|
|
96
|
-
/** Human-readable name; used as the lookup key in the envelope and config registry. */
|
|
97
|
-
readonly name: string;
|
|
98
|
-
/**
|
|
99
|
-
* Codec version. Bumps on breaking wire format changes; `decode` receives
|
|
100
|
-
* this via the envelope so codecs can dispatch on historical layouts.
|
|
101
|
-
* Must fit in a `u16` (0–65535).
|
|
102
|
-
*/
|
|
103
|
-
readonly version: number;
|
|
104
|
-
/** MIME-like content type identifier (e.g. `"application/dag-cbor+zstd"`). */
|
|
105
|
-
readonly contentType: string;
|
|
106
|
-
/** Encode a snapshot to binary. */
|
|
107
|
-
encode(snapshot: GraphPersistSnapshot): Uint8Array;
|
|
108
|
-
/**
|
|
109
|
-
* Decode binary back to a snapshot.
|
|
110
|
-
*
|
|
111
|
-
* `codecVersion` is the version that produced `buffer` (read from the
|
|
112
|
-
* envelope). Omit when the caller is sure of the version (tests, one-shot
|
|
113
|
-
* round-trips). Codecs that support multiple historical layouts dispatch
|
|
114
|
-
* on this value.
|
|
115
|
-
*
|
|
116
|
-
* For lazy codecs, this may return a proxy that decodes nodes on access
|
|
117
|
-
* (see {@link LazyGraphCodec}).
|
|
118
|
-
*/
|
|
119
|
-
decode(buffer: Uint8Array, codecVersion?: number): GraphPersistSnapshot;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Extended codec that supports lazy (on-demand) node decoding.
|
|
123
|
-
*
|
|
124
|
-
* `decodeLazy` returns a snapshot where `nodes` is a Proxy — individual
|
|
125
|
-
* nodes are decoded only when accessed. This enables near-zero cold-start
|
|
126
|
-
* for large graphs (decode envelope + topology, skip node values until read).
|
|
127
|
-
*/
|
|
128
|
-
interface LazyGraphCodec extends GraphCodec {
|
|
129
|
-
/** Decode envelope and topology; defer node value decoding to access time. */
|
|
130
|
-
decodeLazy(buffer: Uint8Array, codecVersion?: number): GraphPersistSnapshot;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* WAL entry. Unified with {@link GraphCheckpointRecord} — every record
|
|
134
|
-
* already carries `mode` / `seq` / `timestamp_ns` / `format_version`, so the
|
|
135
|
-
* WAL is just an ordered list of records. `replayWAL` walks this list.
|
|
136
|
-
*/
|
|
137
|
-
type WALEntry = GraphCheckpointRecord;
|
|
138
|
-
/**
|
|
139
|
-
* Policy for evicting dormant subgraphs to reduce memory.
|
|
140
|
-
*
|
|
141
|
-
* When a subgraph hasn't propagated for `idleTimeoutMs`, it is serialized
|
|
142
|
-
* using the graph's codec and JS objects are released. Re-hydrated on next
|
|
143
|
-
* access (read, propagation, describe).
|
|
144
|
-
*/
|
|
145
|
-
interface EvictionPolicy {
|
|
146
|
-
/** Milliseconds of inactivity before eviction. */
|
|
147
|
-
idleTimeoutMs: number;
|
|
148
|
-
/** Codec to use for serializing evicted subgraphs (default: graph's codec). */
|
|
149
|
-
codec?: GraphCodec;
|
|
150
|
-
}
|
|
151
|
-
/** Metadata about an evicted subgraph, exposed via describe(). */
|
|
152
|
-
interface EvictedSubgraphInfo {
|
|
153
|
-
/** True if currently evicted (serialized, JS objects released). */
|
|
154
|
-
evicted: true;
|
|
155
|
-
/** Wall-clock ns of last propagation before eviction. */
|
|
156
|
-
lastActiveNs: bigint;
|
|
157
|
-
/** Size of serialized buffer in bytes. */
|
|
158
|
-
serializedBytes: number;
|
|
159
|
-
/** Codec used for serialization. */
|
|
160
|
-
codecName: string;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Default JSON codec. Wraps `JSON.stringify`/`JSON.parse` with deterministic
|
|
164
|
-
* key ordering (matching current `snapshot()` behavior).
|
|
165
|
-
*/
|
|
166
|
-
declare const JsonCodec: GraphCodec;
|
|
167
|
-
/**
|
|
168
|
-
* Create a DAG-CBOR codec.
|
|
169
|
-
*
|
|
170
|
-
* Requires `@ipld/dag-cbor` as a peer dependency. ~40-50% smaller than JSON,
|
|
171
|
-
* deterministic encoding (required for V1 CID), CID links as native type.
|
|
172
|
-
*
|
|
173
|
-
* @example
|
|
174
|
-
* ```ts
|
|
175
|
-
* import * as dagCbor from "@ipld/dag-cbor";
|
|
176
|
-
* const codec = createDagCborCodec(dagCbor);
|
|
177
|
-
* config.registerCodec(codec);
|
|
178
|
-
* const bytes = graph.snapshot({ format: "bytes", codec: "dag-cbor" });
|
|
179
|
-
* ```
|
|
180
|
-
*/
|
|
181
|
-
declare function createDagCborCodec(dagCbor: {
|
|
182
|
-
encode: (value: unknown) => Uint8Array;
|
|
183
|
-
decode: (bytes: Uint8Array) => unknown;
|
|
184
|
-
}): GraphCodec;
|
|
185
|
-
/**
|
|
186
|
-
* Create a DAG-CBOR + zstd codec. ~80-90% smaller than JSON.
|
|
187
|
-
*
|
|
188
|
-
* Requires `@ipld/dag-cbor` and a zstd implementation (e.g. `fzstd` for
|
|
189
|
-
* browser, `node:zlib` for Node.js).
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* ```ts
|
|
193
|
-
* import * as dagCbor from "@ipld/dag-cbor";
|
|
194
|
-
* import { compressSync, decompressSync } from "fzstd";
|
|
195
|
-
* const codec = createDagCborZstdCodec(dagCbor, { compressSync, decompressSync });
|
|
196
|
-
* config.registerCodec(codec);
|
|
197
|
-
* ```
|
|
198
|
-
*/
|
|
199
|
-
declare function createDagCborZstdCodec(dagCbor: {
|
|
200
|
-
encode: (value: unknown) => Uint8Array;
|
|
201
|
-
decode: (bytes: Uint8Array) => unknown;
|
|
202
|
-
}, zstd: {
|
|
203
|
-
compressSync: (data: Uint8Array) => Uint8Array;
|
|
204
|
-
decompressSync: (data: Uint8Array) => Uint8Array;
|
|
205
|
-
}): GraphCodec;
|
|
206
|
-
/** Current envelope format version. Bump on breaking layout changes. */
|
|
207
|
-
declare const ENVELOPE_VERSION = 1;
|
|
208
|
-
/**
|
|
209
|
-
* Prepend the v1 envelope to `payload` identifying `codec`. The resulting
|
|
210
|
-
* bytes are self-describing — any caller with access to the registering
|
|
211
|
-
* {@link GraphReFlyConfig} can {@link decodeEnvelope} without knowing the
|
|
212
|
-
* codec up front.
|
|
213
|
-
*
|
|
214
|
-
* Layout:
|
|
215
|
-
* `[envelope_v=1: u8][name_len: u8][name: utf8][codec_v: u16 BE][payload: rest]`
|
|
216
|
-
*
|
|
217
|
-
* @throws If `codec.name` encodes to more than 255 UTF-8 bytes or
|
|
218
|
-
* `codec.version` doesn't fit in a u16.
|
|
219
|
-
*/
|
|
220
|
-
declare function encodeEnvelope(codec: Pick<GraphCodec, "name" | "version">, payload: Uint8Array): Uint8Array;
|
|
221
|
-
/**
|
|
222
|
-
* Inverse of {@link encodeEnvelope}. Reads the header, resolves the codec
|
|
223
|
-
* via `config.lookupCodec(name)`, and returns the codec + its version + the
|
|
224
|
-
* inner payload slice. The caller feeds `payload` to `codec.decode(payload,
|
|
225
|
-
* codecVersion)` — or uses {@link Graph.decode} which does both steps.
|
|
226
|
-
*
|
|
227
|
-
* @throws If the envelope is truncated, the version is unsupported, or the
|
|
228
|
-
* named codec isn't registered on `config`.
|
|
229
|
-
*/
|
|
230
|
-
declare function decodeEnvelope(bytes: Uint8Array, config: GraphReFlyConfig): {
|
|
231
|
-
codec: GraphCodec;
|
|
232
|
-
codecVersion: number;
|
|
233
|
-
payload: Uint8Array;
|
|
234
|
-
};
|
|
235
|
-
/**
|
|
236
|
-
* Register the built-in {@link JsonCodec} on a config. Called once on
|
|
237
|
-
* `defaultConfig` at module load so `graph.snapshot({format: "bytes", codec:
|
|
238
|
-
* "json"})` works out of the box. Test / isolated configs should call this
|
|
239
|
-
* manually before the first node is created.
|
|
240
|
-
*/
|
|
241
|
-
declare function registerBuiltinCodecs(config: GraphReFlyConfig): void;
|
|
242
|
-
/**
|
|
243
|
-
* Reconstruct a snapshot from a WAL (sequence of {@link GraphCheckpointRecord}s).
|
|
244
|
-
*
|
|
245
|
-
* - Must start with a `"full"` record carrying a baseline snapshot — that's
|
|
246
|
-
* the anchor {@link Graph.attachSnapshotStorage} always emits on the first flush
|
|
247
|
-
* of any tier (and every `compactEvery`-th flush thereafter).
|
|
248
|
-
* - Subsequent `"full"` entries (compaction points) **replace** the result
|
|
249
|
-
* wholesale.
|
|
250
|
-
* - `"diff"` entries roll forward by applying the structural diff —
|
|
251
|
-
* added nodes (via `nodesAddedFull`), removed nodes, and changed fields
|
|
252
|
-
* are reflected into the accumulated snapshot.
|
|
253
|
-
*
|
|
254
|
-
* Validates monotonic `seq` progression across entries.
|
|
255
|
-
*/
|
|
256
|
-
declare function replayWAL(entries: readonly WALEntry[]): GraphPersistSnapshot;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Topology check: detect "island" nodes with no in-edges AND no out-edges.
|
|
260
|
-
*
|
|
261
|
-
* Companion to {@link validateGraphObservability} for user validation. Catches
|
|
262
|
-
* the kind of disconnected-node smell flagged in the pagerduty-demo audit
|
|
263
|
-
* ("decisions/log not linked to any other nodes", "tokens only by itself") —
|
|
264
|
-
* the visible symptom of imperative writes or closure-held state that bypassed
|
|
265
|
-
* the reactive edge graph.
|
|
266
|
-
*
|
|
267
|
-
* **What counts as an island.** A node is an island when:
|
|
268
|
-
* - it has zero declared deps (zero **in-edges**), AND
|
|
269
|
-
* - no other node in the graph declares it as a dep (zero **out-edges**).
|
|
270
|
-
*
|
|
271
|
-
* Source nodes (producers / state nodes that act as roots) typically have zero
|
|
272
|
-
* in-edges but ≥1 out-edge — those are NOT islands. Sink nodes (effects that
|
|
273
|
-
* terminate a chain) have ≥1 in-edge but zero out-edges — also NOT islands.
|
|
274
|
-
* Only nodes that satisfy BOTH conditions are reported.
|
|
275
|
-
*
|
|
276
|
-
* **Sub-graph paths.** When the graph mounts subgraphs, the check walks the
|
|
277
|
-
* full path-qualified node table from `graph.describe({ detail: "minimal" })`
|
|
278
|
-
* — both top-level and mounted children participate.
|
|
279
|
-
*
|
|
280
|
-
* **False-positive caveat (D7 /qa lock).** A `state(0, { name: "metric" })`
|
|
281
|
-
* whose only consumer is an external (non-graph) subscriber — e.g. a React /
|
|
282
|
-
* Vue / CLI subscription that calls `.subscribe(...)` directly — looks like
|
|
283
|
-
* an island from `describe()`'s perspective: zero declared in-edges, and no
|
|
284
|
-
* other node lists it as a dep. The check WILL flag it. Treat
|
|
285
|
-
* `validateNoIslands` as a smell-detector, not a definitive correctness gate;
|
|
286
|
-
* complement with `graph.observe(...)` instrumentation when external
|
|
287
|
-
* consumers are part of the design. If you have known external-consumer
|
|
288
|
-
* roots, filter them from `result.orphans` before deciding what to act on.
|
|
289
|
-
*
|
|
290
|
-
* **Synthetic `__internal__/` paths (EH-9).** Compound factories sometimes
|
|
291
|
-
* surface unnamed helper nodes under the `__internal__/` namespace
|
|
292
|
-
* (auto-generated when a producer / derived is added without a `name` and
|
|
293
|
-
* the registrar falls back to a synthetic prefix). These never represent
|
|
294
|
-
* user-authored topology and should not surface as actionable orphans;
|
|
295
|
-
* `validateNoIslands` filters them out before reporting. If a real factory
|
|
296
|
-
* regression accidentally leaks a user-meaningful node under this prefix,
|
|
297
|
-
* the fix is to give the node a real name — not to remove the filter.
|
|
298
|
-
*
|
|
299
|
-
* **Non-throwing by default.** Returns a structured result so callers
|
|
300
|
-
* (dry-run blocks, CI smoke tests) can exit non-zero with a diagnostic
|
|
301
|
-
* instead of crashing.
|
|
302
|
-
*
|
|
303
|
-
* @module
|
|
304
|
-
*/
|
|
305
|
-
|
|
306
|
-
/** A reported island node, surfacing both path and node kind for triage. */
|
|
307
|
-
interface IslandReport {
|
|
308
|
-
/** Path-qualified node name (mounted children included). */
|
|
309
|
-
readonly path: string;
|
|
310
|
-
/** `describe()` node `type` — `"state"` / `"derived"` / `"effect"` etc. Helps distinguish "forgot to wire" from "compositional bug". */
|
|
311
|
-
readonly kind: string;
|
|
312
|
-
}
|
|
313
|
-
/** Result returned by {@link validateNoIslands}. */
|
|
314
|
-
interface ValidateNoIslandsResult {
|
|
315
|
-
/** `true` when the graph has zero island nodes. */
|
|
316
|
-
readonly ok: boolean;
|
|
317
|
-
/**
|
|
318
|
-
* Path-qualified names + kinds of nodes that are both zero-in and
|
|
319
|
-
* zero-out. Sorted ASCII-asc by `path` for deterministic output.
|
|
320
|
-
*/
|
|
321
|
-
readonly orphans: readonly IslandReport[];
|
|
322
|
-
/** Single-line summary suitable for `process.stderr`. */
|
|
323
|
-
summary(): string;
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Walk the graph's describe output and report island nodes (zero in + zero out edges).
|
|
327
|
-
*
|
|
328
|
-
* @example
|
|
329
|
-
* ```ts
|
|
330
|
-
* const result = validateNoIslands(graph);
|
|
331
|
-
* if (!result.ok) {
|
|
332
|
-
* console.error(result.summary());
|
|
333
|
-
* for (const o of result.orphans) console.error(` - ${o.path} (${o.kind})`);
|
|
334
|
-
* process.exit(3);
|
|
335
|
-
* }
|
|
336
|
-
* ```
|
|
337
|
-
*/
|
|
338
|
-
declare function validateNoIslands(graph: Graph): ValidateNoIslandsResult;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Graph observability validation — smoke-exercise helper (D4).
|
|
342
|
-
*
|
|
343
|
-
* One library-level utility that walks every observability surface the library
|
|
344
|
-
* ships — `describe()`, `explain(from, to)`, `observe(path)` — and reports
|
|
345
|
-
* failures as a structured result. Non-throwing by default; composable into
|
|
346
|
-
* example dry-run paths, CI smoke tests, and MCP reduce-path validators.
|
|
347
|
-
*
|
|
348
|
-
* **Motivation.** Dry-run equivalence (CLAUDE.md) requires every observability
|
|
349
|
-
* call the real run exercises to also run under dry-run. Previously each
|
|
350
|
-
* example reimplemented the walk (inbox-reducer caught a `describe()`
|
|
351
|
-
* dangling-pointer bug only after adding an ad-hoc `graph.explain` check).
|
|
352
|
-
* This utility centralizes the smoke-exercise so regressions in
|
|
353
|
-
* `describe` / `explain` / `observe` surface BEFORE any wire spend.
|
|
354
|
-
*
|
|
355
|
-
* **Non-goals.** Not a deep correctness check. `describe()` structural
|
|
356
|
-
* invariants (dangling deps, duplicate paths) are what this catches; actual
|
|
357
|
-
* data assertions belong in application tests.
|
|
358
|
-
*
|
|
359
|
-
* @module
|
|
360
|
-
*/
|
|
361
|
-
|
|
362
|
-
/** Describe render formats exercised by {@link validateGraphObservability}. */
|
|
363
|
-
type ObservabilityDescribeFormat = "json" | "pretty" | "mermaid" | "mermaid-url" | "d2" | "ascii";
|
|
364
|
-
/** One observability check performed by {@link validateGraphObservability}. */
|
|
365
|
-
type ObservabilityCheck =
|
|
366
|
-
/** `describe()` was exercised and its structural invariants (nodes ⊇ deps) held. */
|
|
367
|
-
{
|
|
368
|
-
kind: "describe";
|
|
369
|
-
ok: true;
|
|
370
|
-
nodeCount: number;
|
|
371
|
-
edgeCount: number;
|
|
372
|
-
} | {
|
|
373
|
-
kind: "describe";
|
|
374
|
-
ok: false;
|
|
375
|
-
reason: string;
|
|
376
|
-
danglingDeps?: readonly string[];
|
|
377
|
-
}
|
|
378
|
-
/** `describe({ format })` render was exercised and produced non-empty output. */
|
|
379
|
-
| {
|
|
380
|
-
kind: "describe-format";
|
|
381
|
-
ok: true;
|
|
382
|
-
format: ObservabilityDescribeFormat;
|
|
383
|
-
length: number;
|
|
384
|
-
} | {
|
|
385
|
-
kind: "describe-format";
|
|
386
|
-
ok: false;
|
|
387
|
-
format: ObservabilityDescribeFormat;
|
|
388
|
-
reason: string;
|
|
389
|
-
}
|
|
390
|
-
/** `observe(path)` succeeded / failed. `path` is the requested path. */
|
|
391
|
-
| {
|
|
392
|
-
kind: "observe";
|
|
393
|
-
ok: true;
|
|
394
|
-
path: string;
|
|
395
|
-
} | {
|
|
396
|
-
kind: "observe";
|
|
397
|
-
ok: false;
|
|
398
|
-
path: string;
|
|
399
|
-
reason: string;
|
|
400
|
-
}
|
|
401
|
-
/** `explain(from, to)` succeeded / failed. `found` is the chain's found flag. */
|
|
402
|
-
| {
|
|
403
|
-
kind: "explain";
|
|
404
|
-
ok: true;
|
|
405
|
-
from: string;
|
|
406
|
-
to: string;
|
|
407
|
-
found: boolean;
|
|
408
|
-
steps: number;
|
|
409
|
-
} | {
|
|
410
|
-
kind: "explain";
|
|
411
|
-
ok: false;
|
|
412
|
-
from: string;
|
|
413
|
-
to: string;
|
|
414
|
-
reason: string;
|
|
415
|
-
};
|
|
416
|
-
/** Structured result returned by {@link validateGraphObservability}. */
|
|
417
|
-
interface ValidateObservabilityResult {
|
|
418
|
-
/** `true` iff every performed check passed (`ok: true`). */
|
|
419
|
-
readonly ok: boolean;
|
|
420
|
-
/** All checks performed, in the order they ran. */
|
|
421
|
-
readonly checks: readonly ObservabilityCheck[];
|
|
422
|
-
/** Convenience — checks with `ok: false`. */
|
|
423
|
-
readonly failures: readonly ObservabilityCheck[];
|
|
424
|
-
/** Single-line summary (e.g. for `process.stderr`). */
|
|
425
|
-
summary(): string;
|
|
426
|
-
}
|
|
427
|
-
/** Options for {@link validateGraphObservability}. */
|
|
428
|
-
interface ValidateObservabilityOptions {
|
|
429
|
-
/**
|
|
430
|
-
* Paths to exercise via `graph.observe(path)`. Each path is resolved against
|
|
431
|
-
* the same path grammar `graph.observe` / `graph.resolve` use. Non-existent
|
|
432
|
-
* paths are reported as observe failures.
|
|
433
|
-
*/
|
|
434
|
-
readonly paths?: readonly string[];
|
|
435
|
-
/**
|
|
436
|
-
* `(from, to)` pairs to exercise via `graph.explain(from, to)`. Each pair
|
|
437
|
-
* records `found` and `steps`; a pair where `found === false` does NOT
|
|
438
|
-
* fail the overall result — pass `requireFound: true` to tighten that.
|
|
439
|
-
*/
|
|
440
|
-
readonly pairs?: ReadonlyArray<readonly [from: string, to: string]>;
|
|
441
|
-
/**
|
|
442
|
-
* When `true`, `explain` pairs that return `found: false` count as failures.
|
|
443
|
-
* Default `true` — the common case is "assert this chain exists."
|
|
444
|
-
*/
|
|
445
|
-
readonly requireFound?: boolean;
|
|
446
|
-
/**
|
|
447
|
-
* When `true`, skip the `describe()` structural check (nodes ⊇ deps).
|
|
448
|
-
* Default `false`. Turn off only when your graph intentionally keeps
|
|
449
|
-
* untracked deps (rare — COMPOSITION-GUIDE §24 argues against it).
|
|
450
|
-
*/
|
|
451
|
-
readonly skipDescribe?: boolean;
|
|
452
|
-
/**
|
|
453
|
-
* Describe formats to exercise via `graph.describe({ format })`. Each
|
|
454
|
-
* format renders the graph once and checks that the result is a non-empty
|
|
455
|
-
* string. Useful in dry-run blocks so regressions in the render paths
|
|
456
|
-
* (ascii, mermaid, pretty, json, d2, mermaid-url) surface before any wire
|
|
457
|
-
* spend.
|
|
458
|
-
*/
|
|
459
|
-
readonly formats?: readonly ObservabilityDescribeFormat[];
|
|
460
|
-
}
|
|
461
|
-
/**
|
|
462
|
-
* Exercise every observability surface on `graph` and report failures.
|
|
463
|
-
*
|
|
464
|
-
* Does NOT throw — returns a structured result so callers (dry-run blocks,
|
|
465
|
-
* CLI smoke tests, MCP reduce-path validators) can exit non-zero with a
|
|
466
|
-
* diagnostic instead of letting the process crash mid-inspection.
|
|
467
|
-
*
|
|
468
|
-
* @example
|
|
469
|
-
* ```ts
|
|
470
|
-
* const result = validateGraphObservability(graph, {
|
|
471
|
-
* paths: ["input", "output"],
|
|
472
|
-
* pairs: [["input", "output"]],
|
|
473
|
-
* });
|
|
474
|
-
* if (!result.ok) {
|
|
475
|
-
* console.error(result.summary());
|
|
476
|
-
* for (const f of result.failures) console.error(f);
|
|
477
|
-
* process.exit(3);
|
|
478
|
-
* }
|
|
479
|
-
* ```
|
|
480
|
-
*/
|
|
481
|
-
declare function validateGraphObservability(graph: Graph, opts?: ValidateObservabilityOptions): ValidateObservabilityResult;
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Graph container: registry, wiring, introspection (Phase 1).
|
|
485
|
-
*/
|
|
486
|
-
|
|
487
|
-
declare const index_CausalChain: typeof CausalChain;
|
|
488
|
-
declare const index_CausalStep: typeof CausalStep;
|
|
489
|
-
declare const index_DescribeFilter: typeof DescribeFilter;
|
|
490
|
-
declare const index_ENVELOPE_VERSION: typeof ENVELOPE_VERSION;
|
|
491
|
-
type index_EvictedSubgraphInfo = EvictedSubgraphInfo;
|
|
492
|
-
type index_EvictionPolicy = EvictionPolicy;
|
|
493
|
-
declare const index_ExplainPathOptions: typeof ExplainPathOptions;
|
|
494
|
-
declare const index_GRAPH_META_SEGMENT: typeof GRAPH_META_SEGMENT;
|
|
495
|
-
declare const index_Graph: typeof Graph;
|
|
496
|
-
declare const index_GraphActorOptions: typeof GraphActorOptions;
|
|
497
|
-
declare const index_GraphAttachStorageOptions: typeof GraphAttachStorageOptions;
|
|
498
|
-
declare const index_GraphCheckpointRecord: typeof GraphCheckpointRecord;
|
|
499
|
-
type index_GraphCodec = GraphCodec;
|
|
500
|
-
declare const index_GraphDescribeOptions: typeof GraphDescribeOptions;
|
|
501
|
-
declare const index_GraphDescribeOutput: typeof GraphDescribeOutput;
|
|
502
|
-
declare const index_GraphDiagramDirection: typeof GraphDiagramDirection;
|
|
503
|
-
declare const index_GraphDiffChange: typeof GraphDiffChange;
|
|
504
|
-
declare const index_GraphDiffResult: typeof GraphDiffResult;
|
|
505
|
-
declare const index_GraphFactoryContext: typeof GraphFactoryContext;
|
|
506
|
-
declare const index_GraphNodeFactory: typeof GraphNodeFactory;
|
|
507
|
-
declare const index_GraphObserveAll: typeof GraphObserveAll;
|
|
508
|
-
declare const index_GraphObserveOne: typeof GraphObserveOne;
|
|
509
|
-
declare const index_GraphOptions: typeof GraphOptions;
|
|
510
|
-
declare const index_GraphPersistSnapshot: typeof GraphPersistSnapshot;
|
|
511
|
-
declare const index_GraphProfileOptions: typeof GraphProfileOptions;
|
|
512
|
-
declare const index_GraphProfileResult: typeof GraphProfileResult;
|
|
513
|
-
declare const index_GraphVersionChange: typeof GraphVersionChange;
|
|
514
|
-
declare const index_GraphWALDiff: typeof GraphWALDiff;
|
|
515
|
-
type index_IslandReport = IslandReport;
|
|
516
|
-
declare const index_JsonCodec: typeof JsonCodec;
|
|
517
|
-
type index_LazyGraphCodec = LazyGraphCodec;
|
|
518
|
-
declare const index_NodeProfile: typeof NodeProfile;
|
|
519
|
-
type index_ObservabilityCheck = ObservabilityCheck;
|
|
520
|
-
type index_ObservabilityDescribeFormat = ObservabilityDescribeFormat;
|
|
521
|
-
declare const index_ObserveChangeset: typeof ObserveChangeset;
|
|
522
|
-
declare const index_ObserveDetail: typeof ObserveDetail;
|
|
523
|
-
declare const index_ObserveEvent: typeof ObserveEvent;
|
|
524
|
-
declare const index_ObserveOptions: typeof ObserveOptions;
|
|
525
|
-
declare const index_ObserveResult: typeof ObserveResult;
|
|
526
|
-
declare const index_ObserveTheme: typeof ObserveTheme;
|
|
527
|
-
declare const index_ObserveThemeName: typeof ObserveThemeName;
|
|
528
|
-
declare const index_ObserveTier: typeof ObserveTier;
|
|
529
|
-
declare const index_ReachableDirection: typeof ReachableDirection;
|
|
530
|
-
declare const index_ReachableOptions: typeof ReachableOptions;
|
|
531
|
-
declare const index_SIZEOF_SYMBOL: typeof SIZEOF_SYMBOL;
|
|
532
|
-
declare const index_SNAPSHOT_VERSION: typeof SNAPSHOT_VERSION;
|
|
533
|
-
declare const index_TopologyEvent: typeof TopologyEvent;
|
|
534
|
-
declare const index_TraceEntry: typeof TraceEntry;
|
|
535
|
-
type index_ValidateNoIslandsResult = ValidateNoIslandsResult;
|
|
536
|
-
type index_ValidateObservabilityOptions = ValidateObservabilityOptions;
|
|
537
|
-
type index_ValidateObservabilityResult = ValidateObservabilityResult;
|
|
538
|
-
type index_WALEntry = WALEntry;
|
|
539
|
-
declare const index_createDagCborCodec: typeof createDagCborCodec;
|
|
540
|
-
declare const index_createDagCborZstdCodec: typeof createDagCborZstdCodec;
|
|
541
|
-
declare const index_decodeEnvelope: typeof decodeEnvelope;
|
|
542
|
-
declare const index_diffForWAL: typeof diffForWAL;
|
|
543
|
-
declare const index_encodeEnvelope: typeof encodeEnvelope;
|
|
544
|
-
declare const index_explainPath: typeof explainPath;
|
|
545
|
-
declare const index_graphProfile: typeof graphProfile;
|
|
546
|
-
declare const index_reachable: typeof reachable;
|
|
547
|
-
declare const index_registerBuiltinCodecs: typeof registerBuiltinCodecs;
|
|
548
|
-
declare const index_replayWAL: typeof replayWAL;
|
|
549
|
-
declare const index_sizeof: typeof sizeof;
|
|
550
|
-
declare const index_validateGraphObservability: typeof validateGraphObservability;
|
|
551
|
-
declare const index_validateNoIslands: typeof validateNoIslands;
|
|
552
|
-
declare const index_watchTopologyTree: typeof watchTopologyTree;
|
|
553
|
-
declare namespace index {
|
|
554
|
-
export { index_CausalChain as CausalChain, index_CausalStep as CausalStep, index_DescribeFilter as DescribeFilter, index_ENVELOPE_VERSION as ENVELOPE_VERSION, type index_EvictedSubgraphInfo as EvictedSubgraphInfo, type index_EvictionPolicy as EvictionPolicy, index_ExplainPathOptions as ExplainPathOptions, index_GRAPH_META_SEGMENT as GRAPH_META_SEGMENT, index_Graph as Graph, index_GraphActorOptions as GraphActorOptions, index_GraphAttachStorageOptions as GraphAttachStorageOptions, index_GraphCheckpointRecord as GraphCheckpointRecord, type index_GraphCodec as GraphCodec, index_GraphDescribeOptions as GraphDescribeOptions, index_GraphDescribeOutput as GraphDescribeOutput, index_GraphDiagramDirection as GraphDiagramDirection, index_GraphDiffChange as GraphDiffChange, index_GraphDiffResult as GraphDiffResult, index_GraphFactoryContext as GraphFactoryContext, index_GraphNodeFactory as GraphNodeFactory, index_GraphObserveAll as GraphObserveAll, index_GraphObserveOne as GraphObserveOne, index_GraphOptions as GraphOptions, index_GraphPersistSnapshot as GraphPersistSnapshot, index_GraphProfileOptions as GraphProfileOptions, index_GraphProfileResult as GraphProfileResult, index_GraphVersionChange as GraphVersionChange, index_GraphWALDiff as GraphWALDiff, type index_IslandReport as IslandReport, index_JsonCodec as JsonCodec, type index_LazyGraphCodec as LazyGraphCodec, index_NodeProfile as NodeProfile, type index_ObservabilityCheck as ObservabilityCheck, type index_ObservabilityDescribeFormat as ObservabilityDescribeFormat, index_ObserveChangeset as ObserveChangeset, index_ObserveDetail as ObserveDetail, index_ObserveEvent as ObserveEvent, index_ObserveOptions as ObserveOptions, index_ObserveResult as ObserveResult, index_ObserveTheme as ObserveTheme, index_ObserveThemeName as ObserveThemeName, index_ObserveTier as ObserveTier, index_ReachableDirection as ReachableDirection, index_ReachableOptions as ReachableOptions, OVERHEAD as SIZEOF_OVERHEAD, index_SIZEOF_SYMBOL as SIZEOF_SYMBOL, index_SNAPSHOT_VERSION as SNAPSHOT_VERSION, index_TopologyEvent as TopologyEvent, index_TraceEntry as TraceEntry, type index_ValidateNoIslandsResult as ValidateNoIslandsResult, type index_ValidateObservabilityOptions as ValidateObservabilityOptions, type index_ValidateObservabilityResult as ValidateObservabilityResult, type index_WALEntry as WALEntry, index_createDagCborCodec as createDagCborCodec, index_createDagCborZstdCodec as createDagCborZstdCodec, index_decodeEnvelope as decodeEnvelope, index_diffForWAL as diffForWAL, index_encodeEnvelope as encodeEnvelope, index_explainPath as explainPath, index_graphProfile as graphProfile, index_reachable as reachable, index_registerBuiltinCodecs as registerBuiltinCodecs, index_replayWAL as replayWAL, index_sizeof as sizeof, index_validateGraphObservability as validateGraphObservability, index_validateNoIslands as validateNoIslands, index_watchTopologyTree as watchTopologyTree };
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
export { ENVELOPE_VERSION as E, type GraphCodec as G, type IslandReport as I, JsonCodec as J, type LazyGraphCodec as L, type ObservabilityCheck as O, SIZEOF_SYMBOL as S, type ValidateNoIslandsResult as V, type WALEntry as W, type EvictedSubgraphInfo as a, type EvictionPolicy as b, type ObservabilityDescribeFormat as c, OVERHEAD as d, type ValidateObservabilityOptions as e, type ValidateObservabilityResult as f, createDagCborCodec as g, createDagCborZstdCodec as h, decodeEnvelope as i, encodeEnvelope as j, index as k, replayWAL as l, validateNoIslands as m, registerBuiltinCodecs as r, sizeof as s, validateGraphObservability as v };
|
package/dist/index-CJF1URuX.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { i as index$2 } from './index-Dgl1HpPn.js';
|
|
2
|
-
import { i as index$3 } from './index-CBBLl_rc.js';
|
|
3
|
-
import { i as index$4 } from './index-CBGUK09R.js';
|
|
4
|
-
import { i as index$5 } from './index-CdAlHFEt.js';
|
|
5
|
-
import { N as Node } from './node-kK3CvTrR.js';
|
|
6
|
-
import { i as index$6 } from './index-BmZXHqkE.js';
|
|
7
|
-
import { i as index$7 } from './index-CviRnE4K.js';
|
|
8
|
-
import { i as index$8 } from './index-CPQlGA29.js';
|
|
9
|
-
import { i as index$9 } from './index-sqkqlb1p.js';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Options for creating signals.
|
|
13
|
-
*
|
|
14
|
-
* @category compat
|
|
15
|
-
*/
|
|
16
|
-
interface SignalOptions {
|
|
17
|
-
/** Optional identifier for the underlying node. */
|
|
18
|
-
name?: string;
|
|
19
|
-
/** Custom equality function for change detection. */
|
|
20
|
-
equals?: (a: any, b: any) => boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Common interface for all reactive signals.
|
|
24
|
-
*
|
|
25
|
-
* @category compat
|
|
26
|
-
*/
|
|
27
|
-
interface AnySignal<T> {
|
|
28
|
-
/** Returns the current value of the signal. */
|
|
29
|
-
get(): T;
|
|
30
|
-
/** @internal The underlying GraphReFly node. */
|
|
31
|
-
_node: Node<T>;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* TC39 `Signal.State` — a writable signal backed by a GraphReFly `state` node.
|
|
35
|
-
* Automatically registers itself as a dependency if read inside a `Computed`.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const count = new Signal.State(0);
|
|
40
|
-
* count.get(); // 0
|
|
41
|
-
* count.set(1);
|
|
42
|
-
* count.get(); // 1
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
declare class SignalState<T> implements AnySignal<T> {
|
|
46
|
-
/** @internal */
|
|
47
|
-
_node: Node<T>;
|
|
48
|
-
private readonly _equals;
|
|
49
|
-
constructor(initial: T, opts?: SignalOptions);
|
|
50
|
-
get(): T;
|
|
51
|
-
set(value: T): void;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* TC39 `Signal.Computed` — a read-only signal backed by `dynamicNode`.
|
|
55
|
-
* Automatically tracks dependencies when `get()` is called on other signals
|
|
56
|
-
* during its computation.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const count = new Signal.State(0);
|
|
61
|
-
* const doubled = new Signal.Computed(() => count.get() * 2);
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
declare class SignalComputed<T> implements AnySignal<T> {
|
|
65
|
-
/** @internal */
|
|
66
|
-
_node: Node<T>;
|
|
67
|
-
constructor(computation: () => T, opts?: SignalOptions);
|
|
68
|
-
get(): T;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* TC39 Signals-compatible namespace. Wraps GraphReFly primitives.
|
|
72
|
-
* Provides auto-tracking conforming to the TS39 signals proposal.
|
|
73
|
-
*
|
|
74
|
-
* @category compat
|
|
75
|
-
*/
|
|
76
|
-
declare const Signal: {
|
|
77
|
-
readonly State: typeof SignalState;
|
|
78
|
-
readonly Computed: typeof SignalComputed;
|
|
79
|
-
/**
|
|
80
|
-
* Subscribes to changes on a signal.
|
|
81
|
-
* Returns an unsubscribe callback.
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```ts
|
|
85
|
-
* const count = new Signal.State(0);
|
|
86
|
-
* const unsub = Signal.sub(count, v => console.log(v));
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
readonly sub: <T>(signal: AnySignal<T>, callback: ((value: T) => void) | {
|
|
90
|
-
data?: (value: T) => void;
|
|
91
|
-
error?: (err: unknown) => void;
|
|
92
|
-
complete?: () => void;
|
|
93
|
-
}) => (() => void);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
type index$1_AnySignal<T> = AnySignal<T>;
|
|
97
|
-
declare const index$1_Signal: typeof Signal;
|
|
98
|
-
type index$1_SignalComputed<T> = SignalComputed<T>;
|
|
99
|
-
declare const index$1_SignalComputed: typeof SignalComputed;
|
|
100
|
-
type index$1_SignalOptions = SignalOptions;
|
|
101
|
-
type index$1_SignalState<T> = SignalState<T>;
|
|
102
|
-
declare const index$1_SignalState: typeof SignalState;
|
|
103
|
-
declare namespace index$1 {
|
|
104
|
-
export { type index$1_AnySignal as AnySignal, index$1_Signal as Signal, index$1_SignalComputed as SignalComputed, type index$1_SignalOptions as SignalOptions, index$1_SignalState as SignalState };
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Compat layer: compatibility wrappers for other state management libraries (Phase 5.1b).
|
|
109
|
-
*
|
|
110
|
-
* Framework adapters are optional peers. Install only what you use:
|
|
111
|
-
* - `@graphrefly/graphrefly-ts/compat/react` -> `react`, `react-dom`
|
|
112
|
-
* - `@graphrefly/graphrefly-ts/compat/vue` -> `vue`
|
|
113
|
-
* - `@graphrefly/graphrefly-ts/compat/svelte` -> `svelte`
|
|
114
|
-
* - `@graphrefly/graphrefly-ts/compat/solid` -> `solid-js`
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
declare namespace index {
|
|
118
|
-
export { index$2 as jotai, index$3 as nanostores, index$4 as nestjs, index$5 as react, index$1 as signals, index$6 as solid, index$7 as svelte, index$8 as vue, index$9 as zustand };
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export { index$1 as a, index as i };
|