@graphrefly/graphrefly 0.43.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 -4
- package/dist/core/index.d.ts +1 -4
- 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 -950
- package/dist/extra/operators.d.ts +1 -950
- 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 -96
- package/dist/index.d.ts +45 -96
- 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 -21
- package/dist/patterns/ai/index.d.ts +1 -21
- 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 -14
- package/dist/patterns/harness/index.d.ts +1 -14
- 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 -9
- package/dist/patterns/orchestration/index.d.ts +1 -9
- package/dist/patterns/orchestration/index.js +3 -1
- package/dist/patterns/orchestration/index.js.map +1 -0
- package/dist/patterns/process/index.cjs +21 -1
- 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-CH-_VwG9.d.cts +0 -199
- package/dist/cascading-OgKQZjsa.d.ts +0 -199
- package/dist/chunk-35JTVPOX.js +0 -1
- package/dist/chunk-3G5U5QNE.js +0 -5
- package/dist/chunk-3XDYJRYU.js +0 -1
- package/dist/chunk-4I45FVQS.js +0 -1
- package/dist/chunk-4VVTGLXJ.js +0 -1
- package/dist/chunk-4YAN45KM.js +0 -1
- package/dist/chunk-5QDBSZBV.js +0 -1
- package/dist/chunk-626TESAC.js +0 -3
- package/dist/chunk-6HOSXQKF.js +0 -1
- package/dist/chunk-6QZNQS5B.js +0 -1
- package/dist/chunk-C72GO4IZ.js +0 -1
- package/dist/chunk-CE72X3WO.js +0 -1
- package/dist/chunk-CK2E7BTU.js +0 -1
- package/dist/chunk-CLD3F4R5.js +0 -1
- package/dist/chunk-CUNIRONA.js +0 -1
- package/dist/chunk-D27JNOLZ.js +0 -1
- package/dist/chunk-D5RFJOZ2.js +0 -1
- package/dist/chunk-EBW4V6JN.js +0 -1
- package/dist/chunk-ESMPEKEV.js +0 -1
- package/dist/chunk-F3IGTWCQ.js +0 -1
- package/dist/chunk-F672GV32.js +0 -1
- package/dist/chunk-FDQGFWLF.js +0 -1
- package/dist/chunk-FG4TKHMC.js +0 -1
- package/dist/chunk-GPW2V3RE.js +0 -1
- package/dist/chunk-I7IGYPSL.js +0 -1
- package/dist/chunk-INQD2KRQ.js +0 -1
- package/dist/chunk-JNWRYDJN.js +0 -1
- package/dist/chunk-JQFH2DV6.js +0 -1
- package/dist/chunk-K2Q24F5T.js +0 -1
- package/dist/chunk-KGKJCHEK.js +0 -1
- package/dist/chunk-KRH66M4O.js +0 -1
- package/dist/chunk-KVV66NN2.js +0 -1
- package/dist/chunk-L6NSJVJZ.js +0 -1
- package/dist/chunk-LYCLF26R.js +0 -1
- package/dist/chunk-NNKJUORL.js +0 -1
- package/dist/chunk-NON4NLIC.js +0 -45
- package/dist/chunk-O2BLLH7M.js +0 -18
- package/dist/chunk-OCKEEPRJ.js +0 -2
- package/dist/chunk-OFZG3TB3.js +0 -9
- package/dist/chunk-OYJKFY7V.js +0 -1
- package/dist/chunk-P6C4WHZO.js +0 -5
- package/dist/chunk-PT7W5FCD.js +0 -5
- package/dist/chunk-Q4U3A3L5.js +0 -1
- package/dist/chunk-QE4IGY7I.js +0 -61
- package/dist/chunk-QYADASLV.js +0 -1
- package/dist/chunk-QYVXF7GW.js +0 -1
- package/dist/chunk-S3EEIPO7.js +0 -1
- package/dist/chunk-SUWT3ZON.js +0 -1
- package/dist/chunk-TPKQW72B.js +0 -1
- package/dist/chunk-TSOYJ743.js +0 -1
- package/dist/chunk-TZQPPQEQ.js +0 -1
- package/dist/chunk-V5A7M7RJ.js +0 -1
- package/dist/chunk-VIMF6LGM.js +0 -1
- package/dist/chunk-VJLMUKOI.js +0 -1
- package/dist/chunk-VN6RDSK2.js +0 -1
- package/dist/chunk-VNC3TMVY.js +0 -1
- package/dist/chunk-VOPGGIL7.js +0 -1
- package/dist/chunk-VQ4A6T2A.js +0 -1
- package/dist/chunk-XG62INFA.js +0 -1
- package/dist/chunk-Y4NI3X7O.js +0 -84
- package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
- package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
- package/dist/decay-2ZukgQ4o.d.cts +0 -112
- package/dist/decay-CdEBmDIs.d.ts +0 -112
- package/dist/fallback-CqYVLL6X.d.ts +0 -250
- package/dist/fallback-Ctlj2tMY.d.cts +0 -250
- package/dist/graph-7VguS7a4.d.ts +0 -1668
- package/dist/graph-C4SHb3Ly.d.cts +0 -1668
- package/dist/index-0rKFCVFp.d.cts +0 -557
- package/dist/index-B-i4_g3k.d.ts +0 -651
- package/dist/index-B5iz82A3.d.cts +0 -2655
- package/dist/index-BAOD98JD.d.cts +0 -754
- package/dist/index-BG0BN3PB.d.ts +0 -44
- package/dist/index-BJX94aud.d.cts +0 -34
- package/dist/index-BP8a88zx.d.ts +0 -385
- package/dist/index-BTQtTb_H.d.cts +0 -301
- package/dist/index-BVpm6noz.d.cts +0 -36
- package/dist/index-Bc41FuHp.d.cts +0 -291
- package/dist/index-BdGtBX-X.d.cts +0 -515
- package/dist/index-Bf7eqeSF.d.ts +0 -113
- package/dist/index-BiX1Nkgx.d.cts +0 -1844
- package/dist/index-BoLv_OfD.d.cts +0 -651
- package/dist/index-BojK2fwH.d.cts +0 -299
- package/dist/index-BsT7F2et.d.ts +0 -291
- package/dist/index-BwLvVVsy.d.cts +0 -189
- package/dist/index-C59mYFKp.d.ts +0 -121
- package/dist/index-C7O6r5fV.d.ts +0 -37
- package/dist/index-C9kSENB4.d.cts +0 -127
- package/dist/index-C9pjcz3l.d.cts +0 -209
- package/dist/index-CAC_rNzm.d.ts +0 -189
- package/dist/index-CCq87F7t.d.ts +0 -127
- package/dist/index-CDXc9zKM.d.cts +0 -26
- package/dist/index-CJK1JkYy.d.ts +0 -36
- package/dist/index-CLon-IWF.d.cts +0 -374
- package/dist/index-COD1kVoS.d.cts +0 -468
- package/dist/index-CPT7C_f1.d.ts +0 -374
- package/dist/index-CQG3D1cp.d.ts +0 -468
- package/dist/index-CZQXo5tH.d.ts +0 -209
- package/dist/index-CZjOhcBy.d.cts +0 -113
- package/dist/index-ChOyVLKm.d.cts +0 -86
- package/dist/index-CvrqGfNS.d.ts +0 -34
- package/dist/index-D-AEQVLo.d.ts +0 -2655
- package/dist/index-D4Y1cMG0.d.ts +0 -26
- package/dist/index-DBHK8O6H.d.ts +0 -301
- package/dist/index-DBevwHj_.d.ts +0 -515
- package/dist/index-DIOoAZUX.d.ts +0 -45
- package/dist/index-DSZ3ZCHF.d.ts +0 -3402
- package/dist/index-Dgs8zcj7.d.ts +0 -102
- package/dist/index-Dh_HJ82K.d.ts +0 -299
- package/dist/index-Dhc7a7Xo.d.cts +0 -102
- package/dist/index-Dmqp7KjD.d.ts +0 -86
- package/dist/index-Dn-wI9g4.d.ts +0 -231
- package/dist/index-Du7u1lSf.d.cts +0 -385
- package/dist/index-DwigL4lY.d.ts +0 -1844
- package/dist/index-DyR7eU5S.d.cts +0 -779
- package/dist/index-JZUPJIJy.d.ts +0 -779
- package/dist/index-K0_0eR8g.d.ts +0 -557
- package/dist/index-O16yXPK4.d.cts +0 -3402
- package/dist/index-O7fucFrU.d.cts +0 -121
- package/dist/index-RV_yDjOX.d.cts +0 -198
- package/dist/index-cm1GNcWE.d.ts +0 -754
- package/dist/index-f5IivDUX.d.cts +0 -37
- package/dist/index-hHcaFlJX.d.cts +0 -45
- package/dist/index-tJoTcnHh.d.cts +0 -231
- package/dist/index-wAzD9yVj.d.ts +0 -198
- package/dist/index-z96luz5O.d.cts +0 -44
- package/dist/meta-BgVAsg9j.d.ts +0 -102
- package/dist/meta-vE8bxW1E.d.cts +0 -102
- package/dist/node-ClS5yC-B.d.cts +0 -1347
- package/dist/node-ClS5yC-B.d.ts +0 -1347
- package/dist/observable-BsBzUrcI.d.ts +0 -36
- package/dist/observable-DLGPPtb8.d.cts +0 -36
- package/dist/pipeline-graph-DPqKDk59.d.cts +0 -137
- package/dist/pipeline-graph-loP57TBA.d.ts +0 -137
- package/dist/reactive-layout-Dsvob4zD.d.cts +0 -183
- package/dist/reactive-layout-v7KPvxoc.d.ts +0 -183
- package/dist/reactive-log-B00laMSQ.d.cts +0 -223
- package/dist/reactive-log-BezYsbA_.d.ts +0 -223
- package/dist/reactive-map-48mnZ-nu.d.cts +0 -296
- package/dist/reactive-map-BVVPdvmi.d.ts +0 -296
- package/dist/resilience-YIWPK4YC.js +0 -1
- package/dist/sugar-DLwvMr3F.d.ts +0 -223
- package/dist/sugar-DyVGtczU.d.cts +0 -223
- package/dist/topology-tree-BNGvuG82.d.ts +0 -25
- package/dist/topology-tree-BSdfSwMi.d.cts +0 -25
- package/dist/types-B1jDWVsM.d.cts +0 -442
- package/dist/types-DkzUUs0H.d.ts +0 -442
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { G as Graph } from './graph-C4SHb3Ly.cjs';
|
|
2
|
-
|
|
3
|
-
/** Zustand-compatible Store API. */
|
|
4
|
-
interface StoreApi<T> {
|
|
5
|
-
getState: () => T;
|
|
6
|
-
setState: (partial: T | Partial<T> | ((state: T) => T | Partial<T>), replace?: boolean) => void;
|
|
7
|
-
getInitialState: () => T;
|
|
8
|
-
subscribe: (listener: (state: T, prevState: T) => void) => () => void;
|
|
9
|
-
destroy: () => void;
|
|
10
|
-
}
|
|
11
|
-
/** Function type for initializing the store. */
|
|
12
|
-
type StateCreator<T> = (set: StoreApi<T>["setState"], get: StoreApi<T>["getState"], api: StoreApi<T>) => T;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a Zustand-compatible store backed by a GraphReFly state node.
|
|
15
|
-
* returns an object that is both a Graph and a StoreApi.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const store = create((set) => ({
|
|
20
|
-
* count: 0,
|
|
21
|
-
* inc: () => set((s) => ({ count: s.count + 1 }))
|
|
22
|
-
* }));
|
|
23
|
-
* store.getState().inc();
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @category compat
|
|
27
|
-
*/
|
|
28
|
-
declare function create<T extends object>(initializer: StateCreator<T>): Graph & StoreApi<T>;
|
|
29
|
-
|
|
30
|
-
type index_StateCreator<T> = StateCreator<T>;
|
|
31
|
-
type index_StoreApi<T> = StoreApi<T>;
|
|
32
|
-
declare const index_create: typeof create;
|
|
33
|
-
declare namespace index {
|
|
34
|
-
export { type index_StateCreator as StateCreator, type index_StoreApi as StoreApi, index_create as create };
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { type StateCreator as S, type StoreApi as a, create as c, index as i };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-ClS5yC-B.cjs';
|
|
2
|
-
|
|
3
|
-
/** Svelte store contract — implements the minimal `subscribe` method. */
|
|
4
|
-
interface SvelteReadable<T> {
|
|
5
|
-
subscribe(run: (value: T) => void): () => void;
|
|
6
|
-
}
|
|
7
|
-
/** Svelte writable store contract. */
|
|
8
|
-
interface SvelteWritable<T> extends SvelteReadable<T> {
|
|
9
|
-
set(value: T): void;
|
|
10
|
-
update(updater: (value: T) => T): void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Subscribe to a `Node<T>` as a Svelte readable store (implements Svelte store contract).
|
|
14
|
-
* Subscription lifecycle is tied to Svelte store unsubscription (not node terminal messages).
|
|
15
|
-
*/
|
|
16
|
-
declare function useSubscribe<T>(node: Node<T>): SvelteReadable<T | undefined | null>;
|
|
17
|
-
/**
|
|
18
|
-
* Bind a writable `Node<T>` as a Svelte writable store.
|
|
19
|
-
* Reads and writes adapt seamlessly.
|
|
20
|
-
* Setter/update always forward `[[DIRTY], [DATA, value]]`, including `value === undefined`.
|
|
21
|
-
* Subscription lifecycle is tied to Svelte store unsubscription (not node terminal messages).
|
|
22
|
-
*/
|
|
23
|
-
declare function useStore<T>(node: Node<T>): SvelteWritable<T | undefined | null>;
|
|
24
|
-
/** Maps a key to an object of nodes. Used by `useSubscribeRecord`. */
|
|
25
|
-
type NodeFactory<K, R extends Record<string, any>> = (key: K) => {
|
|
26
|
-
[P in keyof R]: Node<R[P]>;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Subscribe to a dynamic keyed record of nodes as a Svelte readable store.
|
|
30
|
-
* Re-subscribes all per-key fields whenever `keysNode` changes.
|
|
31
|
-
* Key re-sync is gated to settled batches (`messageTier >= 3`) to avoid DIRTY-phase churn.
|
|
32
|
-
*/
|
|
33
|
-
declare function useSubscribeRecord<K extends string, R extends Record<string, any>>(keysNode: Node<K[]>, factory: NodeFactory<K, R>): SvelteReadable<Record<K, R>>;
|
|
34
|
-
|
|
35
|
-
type index_NodeFactory<K, R extends Record<string, any>> = NodeFactory<K, R>;
|
|
36
|
-
type index_SvelteReadable<T> = SvelteReadable<T>;
|
|
37
|
-
type index_SvelteWritable<T> = SvelteWritable<T>;
|
|
38
|
-
declare const index_useStore: typeof useStore;
|
|
39
|
-
declare const index_useSubscribe: typeof useSubscribe;
|
|
40
|
-
declare const index_useSubscribeRecord: typeof useSubscribeRecord;
|
|
41
|
-
declare namespace index {
|
|
42
|
-
export { type index_NodeFactory as NodeFactory, type index_SvelteReadable as SvelteReadable, type index_SvelteWritable as SvelteWritable, index_useStore as useStore, index_useSubscribe as useSubscribe, index_useSubscribeRecord as useSubscribeRecord };
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { type NodeFactory as N, type SvelteReadable as S, type SvelteWritable as a, useSubscribe as b, useSubscribeRecord as c, index as i, useStore as u };
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-ClS5yC-B.cjs';
|
|
2
|
-
import { a as GraphOptions, G as Graph } from './graph-C4SHb3Ly.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Domain templates (roadmap §8.2).
|
|
6
|
-
*
|
|
7
|
-
* Opinionated Graph factories for common "info → action" domains.
|
|
8
|
-
* Each template wires up §8.1 reduction primitives (stratify, funnel, feedback,
|
|
9
|
-
* budgetGate, scorer) with domain-specific stages. Users fork/extend by
|
|
10
|
-
* accessing named nodes and swapping stages.
|
|
11
|
-
*
|
|
12
|
-
* **Source injection (option B):** templates accept a `source` node, not a
|
|
13
|
-
* hardcoded adapter. Pass `fromOTel(...)`, `fromGitHook(...)`, or a test
|
|
14
|
-
* `state()` — the topology is the same.
|
|
15
|
-
*
|
|
16
|
-
* @module
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/** Stratification branch config for observability signals. */
|
|
20
|
-
type ObservabilityBranch = {
|
|
21
|
-
name: string;
|
|
22
|
-
classify: (value: unknown) => boolean;
|
|
23
|
-
};
|
|
24
|
-
/** Options for {@link observabilityGraph}. */
|
|
25
|
-
type ObservabilityGraphOptions = GraphOptions & {
|
|
26
|
-
/** Ingested signal source (e.g. fromOTel(...) or test state). */
|
|
27
|
-
source: Node<unknown>;
|
|
28
|
-
/**
|
|
29
|
-
* Classification rules for signal stratification.
|
|
30
|
-
* Default: errors / traces / metrics branches.
|
|
31
|
-
*/
|
|
32
|
-
branches?: ObservabilityBranch[];
|
|
33
|
-
/**
|
|
34
|
-
* Correlation function: receives stratified branch values and produces
|
|
35
|
-
* correlated insights. Default: identity pass-through.
|
|
36
|
-
*/
|
|
37
|
-
correlate?: (values: unknown[]) => unknown;
|
|
38
|
-
/**
|
|
39
|
-
* SLO verification function: returns a verification result for a
|
|
40
|
-
* correlated insight. Default: always passes.
|
|
41
|
-
*/
|
|
42
|
-
sloCheck?: (value: unknown) => unknown;
|
|
43
|
-
/**
|
|
44
|
-
* Scorer weights for alert prioritization. One per branch.
|
|
45
|
-
* Default: equal weights [1, 1, 1].
|
|
46
|
-
*/
|
|
47
|
-
weights?: number[];
|
|
48
|
-
/** Max feedback iterations for false-positive learning. Default: 5. */
|
|
49
|
-
maxFeedbackIterations?: number;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* OTel ingest → stratified reduction → correlation → SLO verification →
|
|
53
|
-
* alert prioritization → output.
|
|
54
|
-
*
|
|
55
|
-
* Well-known node names:
|
|
56
|
-
* - `"source"` — injected signal source
|
|
57
|
-
* - `"stratify::branch/<name>"` — per-branch classification
|
|
58
|
-
* - `"correlate"` — cross-branch correlation
|
|
59
|
-
* - `"slo_value"`, `"slo_verified"` — SLO verification pair
|
|
60
|
-
* - `"alerts"` — scored, prioritized output
|
|
61
|
-
* - `"output"` — final output (alias for alerts)
|
|
62
|
-
*
|
|
63
|
-
* @category patterns
|
|
64
|
-
*/
|
|
65
|
-
declare function observabilityGraph(name: string, opts: ObservabilityGraphOptions): Graph;
|
|
66
|
-
/** A structured issue extracted from raw findings. */
|
|
67
|
-
type ExtractedIssue = {
|
|
68
|
-
id: string;
|
|
69
|
-
title: string;
|
|
70
|
-
severity: number;
|
|
71
|
-
source: string;
|
|
72
|
-
raw: unknown;
|
|
73
|
-
};
|
|
74
|
-
/** Options for {@link issueTrackerGraph}. */
|
|
75
|
-
type IssueTrackerGraphOptions = GraphOptions & {
|
|
76
|
-
/** Findings source (e.g. fromGitHook(...), fromFSWatch(...)). */
|
|
77
|
-
source: Node<unknown>;
|
|
78
|
-
/**
|
|
79
|
-
* Extract structured issues from raw findings.
|
|
80
|
-
* Default: wraps raw value as a single issue.
|
|
81
|
-
*/
|
|
82
|
-
extract?: (raw: unknown) => ExtractedIssue;
|
|
83
|
-
/**
|
|
84
|
-
* Verify an extracted issue (assertion check).
|
|
85
|
-
* Default: always valid.
|
|
86
|
-
*/
|
|
87
|
-
verify?: (issue: ExtractedIssue) => unknown;
|
|
88
|
-
/**
|
|
89
|
-
* Detect regression by comparing against known patterns.
|
|
90
|
-
* Receives (current issue, known patterns).
|
|
91
|
-
* Default: no regression detected.
|
|
92
|
-
*/
|
|
93
|
-
detectRegression?: (issue: ExtractedIssue, known: unknown) => unknown;
|
|
94
|
-
/** Max feedback iterations for re-scanning. Default: 3. */
|
|
95
|
-
maxFeedbackIterations?: number;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Findings ingest → extraction → verification → regression detection →
|
|
99
|
-
* distillation → prioritized queue.
|
|
100
|
-
*
|
|
101
|
-
* Well-known node names:
|
|
102
|
-
* - `"source"` — injected findings source
|
|
103
|
-
* - `"extract"` — structured issue extraction
|
|
104
|
-
* - `"verify"` — issue verification
|
|
105
|
-
* - `"known_patterns"` — accumulated known issue patterns (state)
|
|
106
|
-
* - `"regression"` — regression detection
|
|
107
|
-
* - `"priority"` — severity-based prioritization
|
|
108
|
-
* - `"output"` — final prioritized output
|
|
109
|
-
*
|
|
110
|
-
* @category patterns
|
|
111
|
-
*/
|
|
112
|
-
declare function issueTrackerGraph(name: string, opts: IssueTrackerGraphOptions): Graph;
|
|
113
|
-
/** Classification result from LLM moderation. */
|
|
114
|
-
type ModerationResult = {
|
|
115
|
-
label: "safe" | "review" | "block";
|
|
116
|
-
confidence: number;
|
|
117
|
-
reason?: string;
|
|
118
|
-
original: unknown;
|
|
119
|
-
};
|
|
120
|
-
/** Options for {@link contentModerationGraph}. */
|
|
121
|
-
type ContentModerationGraphOptions = GraphOptions & {
|
|
122
|
-
/** Content source (text/multimedia ingest). */
|
|
123
|
-
source: Node<unknown>;
|
|
124
|
-
/**
|
|
125
|
-
* Classification function: returns a ModerationResult.
|
|
126
|
-
* Default: labels everything "review" with confidence 0.5.
|
|
127
|
-
*/
|
|
128
|
-
classify?: (content: unknown) => ModerationResult;
|
|
129
|
-
/** System prompt for LLM classification. */
|
|
130
|
-
systemPrompt?: string;
|
|
131
|
-
/** Scorer weights: [safe, review, block]. Default: [0.1, 1, 2]. */
|
|
132
|
-
weights?: [number, number, number];
|
|
133
|
-
/** Max feedback iterations for policy refinement. Default: 5. */
|
|
134
|
-
maxFeedbackIterations?: number;
|
|
135
|
-
/** Max review queue size. When set, oldest entries are trimmed on overflow. */
|
|
136
|
-
maxQueueSize?: number;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Content ingest → LLM/rule classification → stratified routing (safe/review/block) →
|
|
140
|
-
* human review queue → scorer → feedback (false positives → policy refinement) → output.
|
|
141
|
-
*
|
|
142
|
-
* Well-known node names:
|
|
143
|
-
* - `"source"` — content ingest
|
|
144
|
-
* - `"classify"` — LLM or rule-based classification
|
|
145
|
-
* - `"stratify::branch/safe"`, `"stratify::branch/review"`, `"stratify::branch/block"` — routed branches
|
|
146
|
-
* - `"review_queue"` — state node for human review items
|
|
147
|
-
* - `"priority"` — scored priority output
|
|
148
|
-
* - `"policy"` — writable state for policy refinement
|
|
149
|
-
* - `"output"` — final moderation output
|
|
150
|
-
*
|
|
151
|
-
* @category patterns
|
|
152
|
-
*/
|
|
153
|
-
declare function contentModerationGraph(name: string, opts: ContentModerationGraphOptions): Graph;
|
|
154
|
-
/** Schema validation result. */
|
|
155
|
-
type ValidationResult = {
|
|
156
|
-
valid: boolean;
|
|
157
|
-
errors: string[];
|
|
158
|
-
record: unknown;
|
|
159
|
-
};
|
|
160
|
-
/** Anomaly detection result. */
|
|
161
|
-
type AnomalyResult = {
|
|
162
|
-
anomaly: boolean;
|
|
163
|
-
score: number;
|
|
164
|
-
detail?: string;
|
|
165
|
-
record: unknown;
|
|
166
|
-
};
|
|
167
|
-
/** Options for {@link dataQualityGraph}. */
|
|
168
|
-
type DataQualityGraphOptions = GraphOptions & {
|
|
169
|
-
/** Data source (e.g. fromPrisma(...), fromKysely(...)). */
|
|
170
|
-
source: Node<unknown>;
|
|
171
|
-
/**
|
|
172
|
-
* Schema validation function.
|
|
173
|
-
* Default: always valid.
|
|
174
|
-
*/
|
|
175
|
-
validate?: (record: unknown) => ValidationResult;
|
|
176
|
-
/**
|
|
177
|
-
* Anomaly detection function.
|
|
178
|
-
* Default: no anomaly.
|
|
179
|
-
*/
|
|
180
|
-
detectAnomaly?: (record: unknown) => AnomalyResult;
|
|
181
|
-
/**
|
|
182
|
-
* Drift detection: compares current record against baseline.
|
|
183
|
-
* Default: no drift.
|
|
184
|
-
*/
|
|
185
|
-
detectDrift?: (record: unknown, baseline: unknown) => unknown;
|
|
186
|
-
/**
|
|
187
|
-
* Remediation suggestion function.
|
|
188
|
-
* Default: no suggestion.
|
|
189
|
-
*/
|
|
190
|
-
suggest?: (result: {
|
|
191
|
-
validation: ValidationResult;
|
|
192
|
-
anomaly: AnomalyResult;
|
|
193
|
-
}) => unknown;
|
|
194
|
-
/** Max feedback iterations for rule refinement. Default: 3. */
|
|
195
|
-
maxFeedbackIterations?: number;
|
|
196
|
-
};
|
|
197
|
-
/**
|
|
198
|
-
* Data ingest → schema validation → anomaly detection → drift alerting →
|
|
199
|
-
* auto-remediation suggestions → output.
|
|
200
|
-
*
|
|
201
|
-
* Well-known node names:
|
|
202
|
-
* - `"source"` — data ingest
|
|
203
|
-
* - `"validate"` — schema validation
|
|
204
|
-
* - `"anomaly"` — anomaly detection
|
|
205
|
-
* - `"baseline"` — rolling baseline state
|
|
206
|
-
* - `"drift"` — drift detection
|
|
207
|
-
* - `"remediate"` — auto-remediation suggestions
|
|
208
|
-
* - `"output"` — combined quality report
|
|
209
|
-
*
|
|
210
|
-
* @category patterns
|
|
211
|
-
*/
|
|
212
|
-
declare function dataQualityGraph(name: string, opts: DataQualityGraphOptions): Graph;
|
|
213
|
-
|
|
214
|
-
type index_AnomalyResult = AnomalyResult;
|
|
215
|
-
type index_ContentModerationGraphOptions = ContentModerationGraphOptions;
|
|
216
|
-
type index_DataQualityGraphOptions = DataQualityGraphOptions;
|
|
217
|
-
type index_ExtractedIssue = ExtractedIssue;
|
|
218
|
-
type index_IssueTrackerGraphOptions = IssueTrackerGraphOptions;
|
|
219
|
-
type index_ModerationResult = ModerationResult;
|
|
220
|
-
type index_ObservabilityBranch = ObservabilityBranch;
|
|
221
|
-
type index_ObservabilityGraphOptions = ObservabilityGraphOptions;
|
|
222
|
-
type index_ValidationResult = ValidationResult;
|
|
223
|
-
declare const index_contentModerationGraph: typeof contentModerationGraph;
|
|
224
|
-
declare const index_dataQualityGraph: typeof dataQualityGraph;
|
|
225
|
-
declare const index_issueTrackerGraph: typeof issueTrackerGraph;
|
|
226
|
-
declare const index_observabilityGraph: typeof observabilityGraph;
|
|
227
|
-
declare namespace index {
|
|
228
|
-
export { type index_AnomalyResult as AnomalyResult, type index_ContentModerationGraphOptions as ContentModerationGraphOptions, type index_DataQualityGraphOptions as DataQualityGraphOptions, type index_ExtractedIssue as ExtractedIssue, type index_IssueTrackerGraphOptions as IssueTrackerGraphOptions, type index_ModerationResult as ModerationResult, type index_ObservabilityBranch as ObservabilityBranch, type index_ObservabilityGraphOptions as ObservabilityGraphOptions, type index_ValidationResult as ValidationResult, index_contentModerationGraph as contentModerationGraph, index_dataQualityGraph as dataQualityGraph, index_issueTrackerGraph as issueTrackerGraph, index_observabilityGraph as observabilityGraph };
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export { type AnomalyResult as A, type ContentModerationGraphOptions as C, type DataQualityGraphOptions as D, type ExtractedIssue as E, type IssueTrackerGraphOptions as I, type ModerationResult as M, type ObservabilityBranch as O, type ValidationResult as V, type ObservabilityGraphOptions as a, issueTrackerGraph as b, contentModerationGraph as c, dataQualityGraph as d, index as i, observabilityGraph as o };
|
package/dist/index-wAzD9yVj.d.ts
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { M as Messages, A as Actor, C as COMPLETE, f as COMPLETE_MSG, g as COMPLETE_ONLY_BATCH, D as DATA, h as DEFAULT_ACTOR, i as DIRTY, j as DIRTY_MSG, k as DIRTY_ONLY_BATCH, l as DepRecord, E as ERROR, F as FnCtx, G as GlobalInspectorEvent, m as GlobalInspectorHook, n as GraphReFlyConfig, o as GuardAction, p as GuardDenied, q as GuardDeniedDetails, H as HashFn, I as INVALIDATE, r as INVALIDATE_MSG, s as INVALIDATE_ONLY_BATCH, t as Message, u as MessageContext, v as MessageTypeRegistration, w as MessageTypeRegistrationInput, N as Node, c as NodeActions, x as NodeCtx, e as NodeDescribeKind, y as NodeFn, d as NodeFnCleanup, b as NodeGuard, z as NodeImpl, B as NodeInspectorHook, J as NodeInspectorHookEvent, a as NodeOptions, K as NodeSink, L as NodeStatus, O as NodeTransportOptions, P as NodeVersionInfo, Q as OnMessageHandler, R as OnSubscribeHandler, S as PAUSE, T as PolicyAllow, U as PolicyDeny, W as PolicyRuleData, X as RESOLVED, Y as RESOLVED_MSG, Z as RESOLVED_ONLY_BATCH, _ as RESUME, $ as RigorRecorder, a0 as START, a1 as START_MSG, a2 as SubscribeContext, a3 as TEARDOWN, a4 as TEARDOWN_MSG, a5 as TEARDOWN_ONLY_BATCH, a6 as V0, a7 as V1, V as VersioningLevel, a8 as VersioningOptions, a9 as accessHintForGuard, aa as advanceVersion, ab as configure, ac as createVersioning, ad as defaultConfig, ae as defaultHash, af as isV1, ag as node, ah as normalizeActor, ai as policy, aj as policyFromRules, ak as registerBuiltins } from './node-ClS5yC-B.js';
|
|
2
|
-
import { a as DescribeDetail, b as DescribeField, D as DescribeNodeOutput, f as factoryTag, p as placeholderArgs, r as resolveDescribeFields } from './meta-BgVAsg9j.js';
|
|
3
|
-
import { A as AutoTrackOptions, D as DerivedFn, a as DynamicFn, E as EffectFn, P as PipeOperator, b as ProducerFn, T as TrackFn, c as autoTrackNode, d as derived, e as dynamicNode, f as effect, p as pipe, g as producer, s as state } from './sugar-DLwvMr3F.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Batch deferral for tier-3+ messages, plus per-node emit coalescing inside
|
|
7
|
-
* explicit `batch()` scopes.
|
|
8
|
-
*
|
|
9
|
-
* **Canonical invariant:** GRAPHREFLY-SPEC.md §1.3.7 — inside a batch,
|
|
10
|
-
* tier 0–2 signals propagate immediately; tier 3 (DATA/RESOLVED), tier 4
|
|
11
|
-
* (COMPLETE/ERROR), and tier 5 (TEARDOWN) are queued and drained in ascending
|
|
12
|
-
* phase order after the outermost `batch()` callback returns.
|
|
13
|
-
*
|
|
14
|
-
* **Per-node emit coalescing (Bug 2 fix, 2026-04-17).** Inside an explicit
|
|
15
|
-
* `batch()` scope, consecutive emissions from the same node accumulate in
|
|
16
|
-
* `NodeImpl._batchPendingMessages` (see JSDoc there) instead of each producing
|
|
17
|
-
* a separate downstream wave. K `.emit()` calls to the same source collapse to
|
|
18
|
-
* one coalesced `downWithBatch` call per child edge at batch end. Outside batch
|
|
19
|
-
* (or during drain), coalescing does NOT apply — each emit produces its own wave.
|
|
20
|
-
*
|
|
21
|
-
* **Phase vocabulary:**
|
|
22
|
-
* - Phase 1 = tiers 0–2 — immediate, never queued.
|
|
23
|
-
* - Phase 2 = tier 3 — {@link drainPhase2}. Value settlements.
|
|
24
|
-
* - Phase 3 = tier 4 — {@link drainPhase3}. Terminal signals.
|
|
25
|
-
* - Phase 4 = tier 5 — {@link drainPhase4}. TEARDOWN (unified deferral).
|
|
26
|
-
*
|
|
27
|
-
* Drain rule: fire any pending flush hooks first, then the lowest non-empty
|
|
28
|
-
* phase. Re-enqueues during drain (and hooks registered by reentrant batches
|
|
29
|
-
* inside subscriber callbacks) bump the loop back to the top so newly-added
|
|
30
|
-
* hooks and closures get processed.
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Returns whether the current call stack is inside a batch scope **or** while
|
|
35
|
-
* a deferred drain is in progress. Nested `downWithBatch` calls during drain
|
|
36
|
-
* still defer (they bump the drain loop).
|
|
37
|
-
*/
|
|
38
|
-
declare function isBatching(): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Runs `fn` inside a batch scope. Nested `batch()` calls share one deferral
|
|
41
|
-
* queue. If `fn` throws, deferred work for the outer frame is discarded
|
|
42
|
-
* (unless a drain is already in progress — cross-language decision A4).
|
|
43
|
-
*/
|
|
44
|
-
declare function batch(fn: () => void): void;
|
|
45
|
-
/**
|
|
46
|
-
* Deliver pre-sorted messages through `sink` with tier-based deferral applied.
|
|
47
|
-
*
|
|
48
|
-
* `messages` MUST be in ascending tier order (produced by `_frameBatch` in
|
|
49
|
-
* `node.ts`); the walker exploits that invariant to find phase cuts in one
|
|
50
|
-
* pass without re-sorting.
|
|
51
|
-
*
|
|
52
|
-
* Behavior:
|
|
53
|
-
* - Tier 0–2 — delivered synchronously.
|
|
54
|
-
* - Tier 3 — deferred to {@link drainPhase2} when batching, else synchronous.
|
|
55
|
-
* - Tier 4 — deferred to {@link drainPhase3} when batching, else synchronous.
|
|
56
|
-
* - Tier 5 — deferred to {@link drainPhase4} when batching, else synchronous.
|
|
57
|
-
*
|
|
58
|
-
* Tier-classification uses the caller-supplied `tierOf` so that batch stays
|
|
59
|
-
* decoupled from `GraphReFlyConfig`. NodeImpl passes `config.tierOf` (a
|
|
60
|
-
* pre-bound closure built once in the config constructor) at the emit site;
|
|
61
|
-
* alternate configs can pass their own lookup.
|
|
62
|
-
*/
|
|
63
|
-
declare function downWithBatch(sink: (messages: Messages) => void, messages: Messages, tierOf: (t: symbol) => number): void;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Centralised timestamp utilities.
|
|
67
|
-
*
|
|
68
|
-
* Convention: all graphrefly-ts timestamps use nanoseconds (`_ns` suffix).
|
|
69
|
-
*
|
|
70
|
-
* - {@link monotonicNs} — monotonic clock (ordering, durations, timeline events).
|
|
71
|
-
* - {@link wallClockNs} — wall-clock (mutation attribution, cron emission).
|
|
72
|
-
*
|
|
73
|
-
* **Precision limits (JS platform):**
|
|
74
|
-
*
|
|
75
|
-
* - `monotonicNs`: effective ~microsecond precision. `performance.now()` returns
|
|
76
|
-
* milliseconds with ~5µs resolution; the last 3 digits of the nanosecond value
|
|
77
|
-
* are always zero. Python's `time.monotonic_ns()` gives true nanoseconds.
|
|
78
|
-
*
|
|
79
|
-
* - `wallClockNs`: ~256ns precision loss at current epoch. `Date.now() * 1e6`
|
|
80
|
-
* produces values around 1.8×10¹⁸ which exceed IEEE 754's 2⁵³ safe integer
|
|
81
|
-
* limit. Python's `time.time_ns()` (arbitrary-precision `int`) has no loss.
|
|
82
|
-
* In practice this is irrelevant — JS is single-threaded, so sub-microsecond
|
|
83
|
-
* timestamp collisions cannot occur.
|
|
84
|
-
*/
|
|
85
|
-
/** Monotonic nanosecond timestamp via `performance.now()`. */
|
|
86
|
-
declare function monotonicNs(): number;
|
|
87
|
-
/** Wall-clock nanosecond timestamp via `Date.now()`. */
|
|
88
|
-
declare function wallClockNs(): number;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Core layer: message protocol, node primitive, lifecycle (Phase 0).
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
declare const index_Actor: typeof Actor;
|
|
95
|
-
declare const index_AutoTrackOptions: typeof AutoTrackOptions;
|
|
96
|
-
declare const index_COMPLETE: typeof COMPLETE;
|
|
97
|
-
declare const index_COMPLETE_MSG: typeof COMPLETE_MSG;
|
|
98
|
-
declare const index_COMPLETE_ONLY_BATCH: typeof COMPLETE_ONLY_BATCH;
|
|
99
|
-
declare const index_DATA: typeof DATA;
|
|
100
|
-
declare const index_DEFAULT_ACTOR: typeof DEFAULT_ACTOR;
|
|
101
|
-
declare const index_DIRTY: typeof DIRTY;
|
|
102
|
-
declare const index_DIRTY_MSG: typeof DIRTY_MSG;
|
|
103
|
-
declare const index_DIRTY_ONLY_BATCH: typeof DIRTY_ONLY_BATCH;
|
|
104
|
-
declare const index_DepRecord: typeof DepRecord;
|
|
105
|
-
declare const index_DerivedFn: typeof DerivedFn;
|
|
106
|
-
declare const index_DescribeDetail: typeof DescribeDetail;
|
|
107
|
-
declare const index_DescribeField: typeof DescribeField;
|
|
108
|
-
declare const index_DescribeNodeOutput: typeof DescribeNodeOutput;
|
|
109
|
-
declare const index_DynamicFn: typeof DynamicFn;
|
|
110
|
-
declare const index_ERROR: typeof ERROR;
|
|
111
|
-
declare const index_EffectFn: typeof EffectFn;
|
|
112
|
-
declare const index_FnCtx: typeof FnCtx;
|
|
113
|
-
declare const index_GlobalInspectorEvent: typeof GlobalInspectorEvent;
|
|
114
|
-
declare const index_GlobalInspectorHook: typeof GlobalInspectorHook;
|
|
115
|
-
declare const index_GraphReFlyConfig: typeof GraphReFlyConfig;
|
|
116
|
-
declare const index_GuardAction: typeof GuardAction;
|
|
117
|
-
declare const index_GuardDenied: typeof GuardDenied;
|
|
118
|
-
declare const index_GuardDeniedDetails: typeof GuardDeniedDetails;
|
|
119
|
-
declare const index_HashFn: typeof HashFn;
|
|
120
|
-
declare const index_INVALIDATE: typeof INVALIDATE;
|
|
121
|
-
declare const index_INVALIDATE_MSG: typeof INVALIDATE_MSG;
|
|
122
|
-
declare const index_INVALIDATE_ONLY_BATCH: typeof INVALIDATE_ONLY_BATCH;
|
|
123
|
-
declare const index_Message: typeof Message;
|
|
124
|
-
declare const index_MessageContext: typeof MessageContext;
|
|
125
|
-
declare const index_MessageTypeRegistration: typeof MessageTypeRegistration;
|
|
126
|
-
declare const index_MessageTypeRegistrationInput: typeof MessageTypeRegistrationInput;
|
|
127
|
-
declare const index_Messages: typeof Messages;
|
|
128
|
-
declare const index_Node: typeof Node;
|
|
129
|
-
declare const index_NodeActions: typeof NodeActions;
|
|
130
|
-
declare const index_NodeCtx: typeof NodeCtx;
|
|
131
|
-
declare const index_NodeDescribeKind: typeof NodeDescribeKind;
|
|
132
|
-
declare const index_NodeFn: typeof NodeFn;
|
|
133
|
-
declare const index_NodeFnCleanup: typeof NodeFnCleanup;
|
|
134
|
-
declare const index_NodeGuard: typeof NodeGuard;
|
|
135
|
-
declare const index_NodeImpl: typeof NodeImpl;
|
|
136
|
-
declare const index_NodeInspectorHook: typeof NodeInspectorHook;
|
|
137
|
-
declare const index_NodeInspectorHookEvent: typeof NodeInspectorHookEvent;
|
|
138
|
-
declare const index_NodeOptions: typeof NodeOptions;
|
|
139
|
-
declare const index_NodeSink: typeof NodeSink;
|
|
140
|
-
declare const index_NodeStatus: typeof NodeStatus;
|
|
141
|
-
declare const index_NodeTransportOptions: typeof NodeTransportOptions;
|
|
142
|
-
declare const index_NodeVersionInfo: typeof NodeVersionInfo;
|
|
143
|
-
declare const index_OnMessageHandler: typeof OnMessageHandler;
|
|
144
|
-
declare const index_OnSubscribeHandler: typeof OnSubscribeHandler;
|
|
145
|
-
declare const index_PAUSE: typeof PAUSE;
|
|
146
|
-
declare const index_PipeOperator: typeof PipeOperator;
|
|
147
|
-
declare const index_PolicyAllow: typeof PolicyAllow;
|
|
148
|
-
declare const index_PolicyDeny: typeof PolicyDeny;
|
|
149
|
-
declare const index_PolicyRuleData: typeof PolicyRuleData;
|
|
150
|
-
declare const index_ProducerFn: typeof ProducerFn;
|
|
151
|
-
declare const index_RESOLVED: typeof RESOLVED;
|
|
152
|
-
declare const index_RESOLVED_MSG: typeof RESOLVED_MSG;
|
|
153
|
-
declare const index_RESOLVED_ONLY_BATCH: typeof RESOLVED_ONLY_BATCH;
|
|
154
|
-
declare const index_RESUME: typeof RESUME;
|
|
155
|
-
declare const index_RigorRecorder: typeof RigorRecorder;
|
|
156
|
-
declare const index_START: typeof START;
|
|
157
|
-
declare const index_START_MSG: typeof START_MSG;
|
|
158
|
-
declare const index_SubscribeContext: typeof SubscribeContext;
|
|
159
|
-
declare const index_TEARDOWN: typeof TEARDOWN;
|
|
160
|
-
declare const index_TEARDOWN_MSG: typeof TEARDOWN_MSG;
|
|
161
|
-
declare const index_TEARDOWN_ONLY_BATCH: typeof TEARDOWN_ONLY_BATCH;
|
|
162
|
-
declare const index_TrackFn: typeof TrackFn;
|
|
163
|
-
declare const index_V0: typeof V0;
|
|
164
|
-
declare const index_V1: typeof V1;
|
|
165
|
-
declare const index_VersioningLevel: typeof VersioningLevel;
|
|
166
|
-
declare const index_VersioningOptions: typeof VersioningOptions;
|
|
167
|
-
declare const index_accessHintForGuard: typeof accessHintForGuard;
|
|
168
|
-
declare const index_advanceVersion: typeof advanceVersion;
|
|
169
|
-
declare const index_autoTrackNode: typeof autoTrackNode;
|
|
170
|
-
declare const index_batch: typeof batch;
|
|
171
|
-
declare const index_configure: typeof configure;
|
|
172
|
-
declare const index_createVersioning: typeof createVersioning;
|
|
173
|
-
declare const index_defaultConfig: typeof defaultConfig;
|
|
174
|
-
declare const index_defaultHash: typeof defaultHash;
|
|
175
|
-
declare const index_derived: typeof derived;
|
|
176
|
-
declare const index_downWithBatch: typeof downWithBatch;
|
|
177
|
-
declare const index_dynamicNode: typeof dynamicNode;
|
|
178
|
-
declare const index_effect: typeof effect;
|
|
179
|
-
declare const index_factoryTag: typeof factoryTag;
|
|
180
|
-
declare const index_isBatching: typeof isBatching;
|
|
181
|
-
declare const index_isV1: typeof isV1;
|
|
182
|
-
declare const index_monotonicNs: typeof monotonicNs;
|
|
183
|
-
declare const index_node: typeof node;
|
|
184
|
-
declare const index_normalizeActor: typeof normalizeActor;
|
|
185
|
-
declare const index_pipe: typeof pipe;
|
|
186
|
-
declare const index_placeholderArgs: typeof placeholderArgs;
|
|
187
|
-
declare const index_policy: typeof policy;
|
|
188
|
-
declare const index_policyFromRules: typeof policyFromRules;
|
|
189
|
-
declare const index_producer: typeof producer;
|
|
190
|
-
declare const index_registerBuiltins: typeof registerBuiltins;
|
|
191
|
-
declare const index_resolveDescribeFields: typeof resolveDescribeFields;
|
|
192
|
-
declare const index_state: typeof state;
|
|
193
|
-
declare const index_wallClockNs: typeof wallClockNs;
|
|
194
|
-
declare namespace index {
|
|
195
|
-
export { index_Actor as Actor, index_AutoTrackOptions as AutoTrackOptions, index_COMPLETE as COMPLETE, index_COMPLETE_MSG as COMPLETE_MSG, index_COMPLETE_ONLY_BATCH as COMPLETE_ONLY_BATCH, index_DATA as DATA, index_DEFAULT_ACTOR as DEFAULT_ACTOR, index_DIRTY as DIRTY, index_DIRTY_MSG as DIRTY_MSG, index_DIRTY_ONLY_BATCH as DIRTY_ONLY_BATCH, index_DepRecord as DepRecord, index_DerivedFn as DerivedFn, index_DescribeDetail as DescribeDetail, index_DescribeField as DescribeField, index_DescribeNodeOutput as DescribeNodeOutput, index_DynamicFn as DynamicFn, index_ERROR as ERROR, index_EffectFn as EffectFn, index_FnCtx as FnCtx, index_GlobalInspectorEvent as GlobalInspectorEvent, index_GlobalInspectorHook as GlobalInspectorHook, index_GraphReFlyConfig as GraphReFlyConfig, index_GuardAction as GuardAction, index_GuardDenied as GuardDenied, index_GuardDeniedDetails as GuardDeniedDetails, index_HashFn as HashFn, index_INVALIDATE as INVALIDATE, index_INVALIDATE_MSG as INVALIDATE_MSG, index_INVALIDATE_ONLY_BATCH as INVALIDATE_ONLY_BATCH, index_Message as Message, index_MessageContext as MessageContext, index_MessageTypeRegistration as MessageTypeRegistration, index_MessageTypeRegistrationInput as MessageTypeRegistrationInput, index_Messages as Messages, index_Node as Node, index_NodeActions as NodeActions, index_NodeCtx as NodeCtx, index_NodeDescribeKind as NodeDescribeKind, index_NodeFn as NodeFn, index_NodeFnCleanup as NodeFnCleanup, index_NodeGuard as NodeGuard, index_NodeImpl as NodeImpl, index_NodeInspectorHook as NodeInspectorHook, index_NodeInspectorHookEvent as NodeInspectorHookEvent, index_NodeOptions as NodeOptions, index_NodeSink as NodeSink, index_NodeStatus as NodeStatus, index_NodeTransportOptions as NodeTransportOptions, index_NodeVersionInfo as NodeVersionInfo, index_OnMessageHandler as OnMessageHandler, index_OnSubscribeHandler as OnSubscribeHandler, index_PAUSE as PAUSE, index_PipeOperator as PipeOperator, index_PolicyAllow as PolicyAllow, index_PolicyDeny as PolicyDeny, index_PolicyRuleData as PolicyRuleData, index_ProducerFn as ProducerFn, index_RESOLVED as RESOLVED, index_RESOLVED_MSG as RESOLVED_MSG, index_RESOLVED_ONLY_BATCH as RESOLVED_ONLY_BATCH, index_RESUME as RESUME, index_RigorRecorder as RigorRecorder, index_START as START, index_START_MSG as START_MSG, index_SubscribeContext as SubscribeContext, index_TEARDOWN as TEARDOWN, index_TEARDOWN_MSG as TEARDOWN_MSG, index_TEARDOWN_ONLY_BATCH as TEARDOWN_ONLY_BATCH, index_TrackFn as TrackFn, index_V0 as V0, index_V1 as V1, index_VersioningLevel as VersioningLevel, index_VersioningOptions as VersioningOptions, index_accessHintForGuard as accessHintForGuard, index_advanceVersion as advanceVersion, index_autoTrackNode as autoTrackNode, index_batch as batch, index_configure as configure, index_createVersioning as createVersioning, index_defaultConfig as defaultConfig, index_defaultHash as defaultHash, index_derived as derived, index_downWithBatch as downWithBatch, index_dynamicNode as dynamicNode, index_effect as effect, index_factoryTag as factoryTag, index_isBatching as isBatching, index_isV1 as isV1, index_monotonicNs as monotonicNs, index_node as node, index_normalizeActor as normalizeActor, index_pipe as pipe, index_placeholderArgs as placeholderArgs, index_policy as policy, index_policyFromRules as policyFromRules, index_producer as producer, index_registerBuiltins as registerBuiltins, index_resolveDescribeFields as resolveDescribeFields, index_state as state, index_wallClockNs as wallClockNs };
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export { isBatching as a, batch as b, downWithBatch as d, index as i, monotonicNs as m, wallClockNs as w };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-ClS5yC-B.cjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Subscribe to a read-only `Node<T>` as a React value. Re-renders on node value settlement.
|
|
5
|
-
* Subscription lifecycle is tied to React mount/unmount (not node terminal messages).
|
|
6
|
-
*
|
|
7
|
-
* @param node - Any `Node<T>`.
|
|
8
|
-
* @returns `T | undefined` — the current node value, kept in sync via `useSyncExternalStore`.
|
|
9
|
-
*/
|
|
10
|
-
declare function useSubscribe<T>(node: Node<T>): T | undefined | null;
|
|
11
|
-
/**
|
|
12
|
-
* Bind a writable `Node<T>` as a React `[value, setter]` tuple.
|
|
13
|
-
* Setting the value always pushes `[[DIRTY], [DATA, value]]`, including `value === undefined`.
|
|
14
|
-
* Subscription lifecycle is tied to React mount/unmount (not node terminal messages).
|
|
15
|
-
*
|
|
16
|
-
* @param node - A `Node<T>` (e.g. state node).
|
|
17
|
-
* @returns `[T | undefined, (value: T) => void]` — current value and setter function.
|
|
18
|
-
*/
|
|
19
|
-
declare function useStore<T>(node: Node<T>): [T | undefined | null, (value: T) => void];
|
|
20
|
-
/** Maps a key to an object of nodes. Used by `useSubscribeRecord`. */
|
|
21
|
-
type NodeFactory<K, R extends Record<string, any>> = (key: K) => {
|
|
22
|
-
[P in keyof R]: Node<R[P]>;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Subscribe to a dynamic set of keyed node records.
|
|
26
|
-
* Re-subscribes all per-key fields whenever `keysNode` changes.
|
|
27
|
-
* Key re-sync is gated to settled batches (`messageTier >= 3`) to avoid DIRTY-phase churn.
|
|
28
|
-
* Guaranteed to clean up strictly with React hook lifecycle, utilizing no global mappings.
|
|
29
|
-
*
|
|
30
|
-
* @param keysNode - Node of current keys (e.g. node IDs)
|
|
31
|
-
* @param factory - Function returning `{ [field]: Node<V> }` for each key.
|
|
32
|
-
* @returns `Record<K, R>` — snapshot of resolved values for all keys.
|
|
33
|
-
*/
|
|
34
|
-
declare function useSubscribeRecord<K extends string, R extends Record<string, any>>(keysNode: Node<K[]>, factory: NodeFactory<K, R>): Record<K, R>;
|
|
35
|
-
|
|
36
|
-
type index_NodeFactory<K, R extends Record<string, any>> = NodeFactory<K, R>;
|
|
37
|
-
declare const index_useStore: typeof useStore;
|
|
38
|
-
declare const index_useSubscribe: typeof useSubscribe;
|
|
39
|
-
declare const index_useSubscribeRecord: typeof useSubscribeRecord;
|
|
40
|
-
declare namespace index {
|
|
41
|
-
export { type index_NodeFactory as NodeFactory, index_useStore as useStore, index_useSubscribe as useSubscribe, index_useSubscribeRecord as useSubscribeRecord };
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { type NodeFactory as N, useSubscribe as a, useSubscribeRecord as b, index as i, useStore as u };
|
package/dist/meta-BgVAsg9j.d.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { e as NodeDescribeKind, N as Node, A as Actor } from './node-ClS5yC-B.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* JSON-shaped slice of a node for `Graph.describe()`
|
|
5
|
-
* (GRAPHREFLY-SPEC §3.6, Appendix B).
|
|
6
|
-
*/
|
|
7
|
-
type DescribeNodeOutput = {
|
|
8
|
-
type: NodeDescribeKind;
|
|
9
|
-
status?: Node["status"];
|
|
10
|
-
deps: string[];
|
|
11
|
-
meta?: Record<string, unknown>;
|
|
12
|
-
name?: string;
|
|
13
|
-
value?: unknown;
|
|
14
|
-
/** True when the node is in `"sentinel"` state (no value ever). */
|
|
15
|
-
sentinel?: boolean;
|
|
16
|
-
v?: {
|
|
17
|
-
id: string;
|
|
18
|
-
version: number;
|
|
19
|
-
cid?: string;
|
|
20
|
-
prev?: string | null;
|
|
21
|
-
};
|
|
22
|
-
guard?: string;
|
|
23
|
-
lastMutation?: Readonly<{
|
|
24
|
-
actor: Actor;
|
|
25
|
-
timestamp_ns: number;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Latest annotation attached via `graph.trace(path, annotation)` or via
|
|
29
|
-
* `graph.add(node, { name: path, annotation })`, when present. Populated by
|
|
30
|
-
* `Graph.describe` only — `describeNode` has no graph context.
|
|
31
|
-
*/
|
|
32
|
-
annotation?: string;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Detail level for progressive disclosure (Phase 3.3b).
|
|
36
|
-
*
|
|
37
|
-
* - `"minimal"` — `type`, `deps` only.
|
|
38
|
-
* - `"standard"` — minimal + `status`, `value`, `meta`, `v`.
|
|
39
|
-
* - `"full"` — every field.
|
|
40
|
-
* - `"spec"` — Tier 1.5.3 (Session A.1 lock + Phase 3 path (b)). Projects
|
|
41
|
-
* spec-relevant fields (`type`, `deps`, `meta` — including
|
|
42
|
-
* `meta.factory` / `meta.factoryArgs`) and strips runtime fields
|
|
43
|
-
* (`status`, `lastMutation`, `guard`, `sentinel`, `v`). **Retains
|
|
44
|
-
* `value` for state nodes only** so the seed initial value round-trips
|
|
45
|
-
* through `decompileSpec` → `compileSpec` without forcing every state
|
|
46
|
-
* constructor to spawn `meta.factory`/`factoryArgs` companion nodes.
|
|
47
|
-
* The output is structurally identical to the `GraphSpec` shape so
|
|
48
|
-
* `decompileSpec(g) === describe(g, { detail: "spec" })`.
|
|
49
|
-
*/
|
|
50
|
-
type DescribeDetail = "minimal" | "standard" | "full" | "spec";
|
|
51
|
-
/** Valid field names for `describe({ fields: [...] })`. */
|
|
52
|
-
type DescribeField = "type" | "status" | "value" | "deps" | "meta" | "v" | "guard" | "lastMutation" | `meta.${string}`;
|
|
53
|
-
/** Resolve which fields to include based on detail level or explicit field list. */
|
|
54
|
-
declare function resolveDescribeFields(detail?: DescribeDetail, fields?: readonly DescribeField[]): Set<string> | null;
|
|
55
|
-
/**
|
|
56
|
-
* Walk an arbitrary value, replacing non-JSON-serializable fields with
|
|
57
|
-
* descriptive string placeholders (Tier 1.5.3 Phase 2.5 — DG2=ii). Useful for
|
|
58
|
-
* `Graph.prototype.tagFactory(name, args)` when the factory's options include
|
|
59
|
-
* `LLMAdapter` instances, callbacks, or `Node`s that don't survive
|
|
60
|
-
* serialization. Output preserves structure for documentation / audit value;
|
|
61
|
-
* recipients of the spec see "<Node>" / "<function>" / etc. in place of the
|
|
62
|
-
* unserializable bits.
|
|
63
|
-
*
|
|
64
|
-
* Heuristics:
|
|
65
|
-
* - `null` / `undefined` / boolean / number / string — kept as-is.
|
|
66
|
-
* - `function` — `"<function>"`.
|
|
67
|
-
* - Object with `subscribe` method — `"<Node>"` (matches Node-shape duck check).
|
|
68
|
-
* - Array — recursed.
|
|
69
|
-
* - Plain object — recursed.
|
|
70
|
-
* - Anything else — `"<unserializable>"`.
|
|
71
|
-
*/
|
|
72
|
-
declare function placeholderArgs(opts: Record<string, unknown>): Record<string, unknown>;
|
|
73
|
-
/**
|
|
74
|
-
* Build a `meta` fragment that stamps a factory identifier and its construction
|
|
75
|
-
* arguments onto a node, so `describe({ detail: "spec" })` exposes enough
|
|
76
|
-
* information for `compileSpec` to recreate the node from the snapshot.
|
|
77
|
-
*
|
|
78
|
-
* Use inside node-producing factories at construction time:
|
|
79
|
-
*
|
|
80
|
-
* ```ts
|
|
81
|
-
* import { factoryTag } from "@graphrefly/graphrefly";
|
|
82
|
-
*
|
|
83
|
-
* export function rateLimiter<T>(source: NodeInput<T>, opts: RateLimiterOptions): Node<T> {
|
|
84
|
-
* return derived([fromAny(source)], fn, {
|
|
85
|
-
* name: "rate-limiter",
|
|
86
|
-
* meta: { ...factoryTag("rateLimiter", opts), domain: "resilience" },
|
|
87
|
-
* });
|
|
88
|
-
* }
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* `factoryArgs` should be JSON-serializable so the spec round-trips through
|
|
92
|
-
* `decompileSpec → compileSpec`. Function-typed args break determinism — use
|
|
93
|
-
* the {@link COMPOSITION-GUIDE} §39 `meta.fnId` pattern for those.
|
|
94
|
-
*
|
|
95
|
-
* Tier 1.5.3 (Session A.1 lock).
|
|
96
|
-
*/
|
|
97
|
-
declare function factoryTag(factory: string, factoryArgs?: unknown): {
|
|
98
|
-
factory: string;
|
|
99
|
-
factoryArgs?: unknown;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export { type DescribeNodeOutput as D, type DescribeDetail as a, type DescribeField as b, factoryTag as f, placeholderArgs as p, resolveDescribeFields as r };
|