@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
package/dist/extra/index.d.ts
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { B as BackoffPreset, a as BackoffStrategy, C as CircuitBreaker, b as CircuitBreakerOptions, c as CircuitOpenError, d as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, e as NS_PER_SEC, R as RateLimiterOptions, f as RateLimiterOverflowError, g as RateLimiterOverflowPolicy, h as RetryOptions, S as StatusValue, T as TimeoutError, i as TokenBucket, W as WithBreakerBundle, j as WithStatusBundle, k as circuitBreaker, l as constant, m as decorrelatedJitter, n as exponential, o as fallback, p as fibonacci, q as linear, r as rateLimiter, s as resolveBackoffPreset, t as retry, u as timeout, v as tokenBucket, w as withBreaker, x as withMaxAttempts, y as withStatus } from '../index-B-i4_g3k.js';
|
|
3
|
-
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as decay, e as distill, v as verifiable } from '../decay-CdEBmDIs.js';
|
|
4
|
-
export { D as DescribeChangeset, d as DescribeEvent, M as DescribeNodeMeta, Q as topologyDiff } from '../graph-7VguS7a4.js';
|
|
5
|
-
export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-DuYMjV7o.js';
|
|
6
|
-
export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-CZQXo5tH.js';
|
|
7
|
-
export { T as ToObservableOptions, t as toObservable } from '../observable-BsBzUrcI.js';
|
|
8
|
-
export { MergeMapOptions, TapObserver, ThrottleOptions, audit, buffer, bufferCount, bufferTime, catchError, combine, combineLatest, concat, concatMap, debounce, debounceTime, delay, distinctUntilChanged, elementAt, exhaustMap, filter, find, first, flatMap, interval, last, map, merge, mergeMap, onFirstData, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, tapFirst, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.js';
|
|
9
|
-
export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.js';
|
|
10
|
-
export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-BezYsbA_.js';
|
|
11
|
-
export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-BVVPdvmi.js';
|
|
12
|
-
export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, defer, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, nodeSignal, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.js';
|
|
13
|
-
export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.js';
|
|
14
|
-
export { AppendCursor, AppendLoadResult, AppendLogStorageOptions, AppendLogStorageTier, BaseStorageTier, Codec, KvStorageOptions, KvStorageTier, SnapshotStorageOptions, SnapshotStorageTier, StorageBackend, appendLogStorage, dictKv, dictSnapshot, jsonCodec, jsonCodecFor, kvStorage, memoryAppendLog, memoryBackend, memoryKv, memorySnapshot, snapshotStorage } from './storage-tiers.js';
|
|
15
|
-
import '../node-ClS5yC-B.js';
|
|
16
|
-
import '../meta-BgVAsg9j.js';
|
|
17
|
-
import 'rxjs';
|
|
1
|
+
export * from '@graphrefly/pure-ts/extra';
|
package/dist/extra/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/extra/index.ts
|
|
2
|
+
export * from "@graphrefly/pure-ts/extra";
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/extra/index.ts"],"sourcesContent":["// Phase 13.9.A shim — re-export from pure-TS sibling until\n// @graphrefly/native (napi binding) and per-milestone swap-overs land.\nexport * from \"@graphrefly/pure-ts/extra\";\n"],"mappings":";AAEA,cAAc;","names":[]}
|
package/dist/extra/node.cjs
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
"use strict";var fe=Object.defineProperty;var _t=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var xt=Object.prototype.hasOwnProperty;var k=(n,e)=>()=>(n&&(e=n(n=0)),e);var kt=(n,e)=>{for(var t in e)fe(n,t,{get:e[t],enumerable:!0})},Et=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Nt(e))!xt.call(n,o)&&o!==t&&fe(n,o,{get:()=>e[o],enumerable:!(r=_t(e,o))||r.enumerable});return n};var St=n=>Et(fe({},"__esModule",{value:!0}),n);function K(){return Date.now()*1e6}var te=k(()=>{"use strict"});var L,v,R,M,V,B,X,P,N,g,$,pe,Ot,he,At,Rt,me,Ce,De,Ie,ge,G=k(()=>{"use strict";L=Symbol.for("graphrefly/START"),v=Symbol.for("graphrefly/DATA"),R=Symbol.for("graphrefly/DIRTY"),M=Symbol.for("graphrefly/RESOLVED"),V=Symbol.for("graphrefly/INVALIDATE"),B=Symbol.for("graphrefly/PAUSE"),X=Symbol.for("graphrefly/RESUME"),P=Symbol.for("graphrefly/TEARDOWN"),N=Symbol.for("graphrefly/COMPLETE"),g=Symbol.for("graphrefly/ERROR"),$=Object.freeze([R]),pe=Object.freeze([M]),Ot=Object.freeze([V]),he=Object.freeze([L]),At=Object.freeze([N]),Rt=Object.freeze([P]),me=Object.freeze([$]),Ce=Object.freeze([pe]),De=Object.freeze([Ot]),Ie=Object.freeze([At]),ge=Object.freeze([Rt])});function Fe(n){n.registerCodec(Mt)}var Mt,Le=k(()=>{"use strict";Mt={name:"json",version:1,contentType:"application/json",encode(n){let e=JSON.stringify(n);return new TextEncoder().encode(e)},decode(n,e){let t=new TextDecoder().decode(n);return JSON.parse(t)}}});function ne(n){if(n==null)return Ct;let{type:e,id:t,...r}=n;return{type:e??"system",id:t??"",...r}}var Ct,Pe=k(()=>{"use strict";Ct={type:"system",id:""}});function Ve(){return Te>0||Dt}function Be(){return Te>0}function We(n){Te>0?It.push(n):n()}function re(n,e,t){if(e.length===0)return;if(e.length===1){let d=t(e[0][0]);if(d<3||!Ve()){n(e);return}(d>=5?He:d===4?Ue:Ge).push(()=>n(e));return}let r=e.length,o=r,s=r,a=r,i=0;for(;i<r&&t(e[i][0])<3;)i++;for(o=i;i<r&&t(e[i][0])===3;)i++;for(s=i;i<r&&t(e[i][0])===4;)i++;a=i;let u=Ve();if(o>0){let d=e.slice(0,o);n(d)}if(s>o){let d=e.slice(o,s);u?Ge.push(()=>n(d)):n(d)}if(a>s){let d=e.slice(s,a);u?Ue.push(()=>n(d)):n(d)}if(r>a){let d=e.slice(a,r);u?He.push(()=>n(d)):n(d)}}var Te,Dt,Ge,Ue,He,It,je=k(()=>{"use strict";Te=0,Dt=!1,Ge=[],Ue=[],He=[],It=[]});function Ke(n){n.registerMessageType(L,{tier:0,wireCrossing:!1}),n.registerMessageType(R,{tier:1,wireCrossing:!1}),n.registerMessageType(V,{tier:1,wireCrossing:!1,metaPassthrough:!1}),n.registerMessageType(B,{tier:2,wireCrossing:!1}),n.registerMessageType(X,{tier:2,wireCrossing:!1}),n.registerMessageType(v,{tier:3,wireCrossing:!0}),n.registerMessageType(M,{tier:3,wireCrossing:!0}),n.registerMessageType(N,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(g,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(P,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var oe,$e=k(()=>{"use strict";G();oe=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=t=>{let r=this._messageTypes.get(t);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,t){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:t.tier,wireCrossing:t.wireCrossing??t.tier>=3,metaPassthrough:t.metaPassthrough??!0}),this}messageTier(e){let t=this._messageTypes.get(e);return t!=null?t.tier:1}isWireCrossing(e){let t=this._messageTypes.get(e);return t!=null?t.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let t=this._messageTypes.get(e);return t!=null?t.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var z,ze=k(()=>{"use strict";z=class extends Error{actor;action;nodeName;constructor(e,t){super(t??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function be(n){if(n===void 0)return null;if(typeof n=="number"){if(!Number.isFinite(n))throw new TypeError(`Cannot hash non-finite number: ${n}`);if(Number.isInteger(n)&&!Number.isSafeInteger(n))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${n}. Cross-language cid parity is not guaranteed for unsafe integers.`);return n}if(typeof n=="string"||typeof n=="boolean"||n===null)return n;if(Array.isArray(n))return n.map(be);if(typeof n=="object"&&n!==null){let e={};for(let t of Object.keys(n).sort())e[t]=be(n[t]);return e}return null}function Pt(n){let e=Lt.encode(n),t=e.length,r=t*8,o=t+9+63&-64,s=new Uint8Array(o);s.set(e),s[t]=128;let a=new DataView(s.buffer);a.setUint32(o-4,r>>>0,!1),a.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let i=1779033703,u=3144134277,d=1013904242,l=2773480762,c=1359893119,p=2600822924,f=528734635,h=1541459225,T=new Uint32Array(64),y=(m,x)=>m>>>x|m<<32-x;for(let m=0;m<o;m+=64){for(let _=0;_<16;_++)T[_]=a.getUint32(m+_*4,!1);for(let _=16;_<64;_++){let I=T[_-15],j=T[_-2],J=y(I,7)^y(I,18)^I>>>3,H=y(j,17)^y(j,19)^j>>>10;T[_]=T[_-16]+J+T[_-7]+H>>>0}let x=i,w=u,E=d,C=l,O=c,F=p,Y=f,D=h;for(let _=0;_<64;_++){let I=y(O,6)^y(O,11)^y(O,25),j=O&F^~O&Y,J=D+I+j+Ft[_]+T[_]>>>0,H=y(x,2)^y(x,13)^y(x,22),ce=x&w^x&E^w&E,wt=H+ce>>>0;D=Y,Y=F,F=O,O=C+J>>>0,C=E,E=w,w=x,x=J+wt>>>0}i=i+x>>>0,u=u+w>>>0,d=d+E>>>0,l=l+C>>>0,c=c+O>>>0,p=p+F>>>0,f=f+Y>>>0,h=h+D>>>0}let b=m=>m.toString(16).padStart(8,"0");return b(i)+b(u)+b(d)+b(l)+b(c)+b(p)+b(f)+b(h)}function ye(n){let e=be(n??null),t=JSON.stringify(e);return Pt(t).slice(0,16)}function Gt(){let n=globalThis.crypto;if(n?.randomUUID)return n.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),t=e()+e()+e()+e();return`${t.slice(0,8)}-${t.slice(8,12)}-4${t.slice(13,16)}-${(parseInt(t.slice(16,17),16)&3|8).toString(16)}${t.slice(17,20)}-${t.slice(20,32)}`}function ve(n,e,t){let r=t?.id??Gt();if(n===0)return{id:r,version:0};let s=(t?.hash??ye)(e);return{id:r,version:0,cid:s,prev:null}}function qe(n,e,t){n.version+=1,"cid"in n&&(n.prev=n.cid,n.cid=t(e))}var Ft,Lt,Ye=k(()=>{"use strict";Ft=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Lt=new TextEncoder});function Ze(n){return{node:n,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function we(n){n.prevData=void 0,n.dirty=!1,n.involvedThisWave=!1,n.dataBatch.length=0,n.terminal=void 0}function se(n){return n.length===0?n:typeof n[0]=="symbol"?[n]:n}function ae(n,e,t){let r=Qe(n)?n:[],o=typeof n=="function"?n:typeof e=="function"?e:void 0,s={};return Qe(n)?s=(_e(e)?e:t)??{}:_e(n)?s=n:s=(_e(e)?e:t)??{},new ie(r,o,s)}var Je,Xe,Ut,Ht,Ne,ie,Qe,_e,xe=k(()=>{"use strict";Le();Pe();je();te();$e();ze();G();Ye();Je=()=>{},Xe=100;Ut=(n,e,t,r)=>{t.direction==="down-in"&&n._onDepMessage(t.depIndex,e)},Ht=(n,e,t,r)=>{let o=n;if(o._status==="completed"||o._status==="errored")return;let s=o._cached,a=s===void 0?[he]:[he,[v,s]];o._status==="dirty"&&a.push($),re(e,a,o._config.tierOf)},Ne=new oe({onMessage:Ut,onSubscribe:Ht});Ke(Ne);Fe(Ne);ie=class n{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,t,r){this._config=r.config??Ne,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=t,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&t==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??ye;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?ve(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(Ze);let s={};for(let[i,u]of Object.entries(r.meta??{})){let d={initial:u,name:`${r.name??"node"}:meta:${i}`,describeKind:"state",config:this._config};r.guard!=null&&(d.guard=r.guard),s[i]=new n([],void 0,d)}Object.freeze(s),this.meta=s,this._hasMeta=Object.keys(s).length>0;let a=this;this._actions={emit(i){a._emit([[v,i]])},down(i){a._emit(se(i))},up(i){a._emitUp(se(i))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,t){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let o=t?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let s=this._cached===void 0?void 0:this._cached,a=this._versioning,i=a?.id??t?.id,u=a?.version??0,d=ve(e,s,{id:i,hash:o});d.version=u,this._versioning=d,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let t=ne(e);if(this._guard!=null&&!this._guard(t,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(t,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let t=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!t&&!r)return;let o=ne(e?.actor),s=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,s))throw new z({actor:o,action:s,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(o,s))throw new z({actor:o,action:s,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:K()}}down(e,t){let r=se(e);r.length!==0&&(this._checkGuard(t),this._emit(r))}emit(e,t){this._checkGuard(t),this._emit([[v,e]])}up(e,t){if(this._deps.length===0)return;let r=se(e);if(r.length===0)return;this._checkGuard(t);let o=t??{internal:!0};this._validateUpTiers(r);for(let s of this._deps)s.node.up?.(r,o)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let t of this._deps)t.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let t=this._config.tierOf;for(let r of e){let o=t(r[0]);if(o===3||o===4)throw new Error(`Node "${this.name}": tier-${o} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,t){if(t!=null&&this._guard!=null){let u=ne(t);if(!this._guard(u,"observe"))throw new z({actor:u,action:"observe",nodeName:this.name})}let o=this._isTerminal&&this._resubscribable;if(o){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let u of this._deps)we(u);if(this._partial===!1){for(let u of this._deps)if(u.prevData!==void 0||u.dataBatch.length!==0||u.terminal!==void 0||u.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let s;try{s=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:o},this._actions)}catch(u){throw this._sinkCount-=1,u}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let a=this._isTerminal;if(this._sinkCount===1&&!a)try{this._activate()}catch(u){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof s=="function")try{s()}catch{}throw u}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let i=!1;return()=>{i||(i=!0,this._sinkCount-=1,this._removeSink(e),typeof s=="function"&&s(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[t]=this._sinks;this._sinks=t}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,t=0;try{for(let r=0;r<e;r++){let o=r,s=this._deps[r];s.unsub=Je,s.unsub=s.node.subscribe(a=>{if(s.unsub===null)return;let i=this._config.tierOf,u=!1;for(let d of a)i(d[0])>=3&&(u=!0),this._config.onMessage(this,d,{direction:"down-in",depIndex:o},this._actions);u&&this._maybeRunFnOnSettlement()}),t++}}catch(r){this._deps[t].unsub=null;for(let o=0;o<t;o++){let s=this._deps[o];if(s.unsub!=null){let a=s.unsub;s.unsub=null;try{a()}catch{}we(s)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let o=0;o<this._deps.length;o++)if(this._deps[o].node===e)return o;let t=this._deps.length,r=Ze(e);if(this._deps.push(r),this._sinks==null)return t;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me),r.unsub=Je;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let s=this._config.tierOf,a=!1;for(let i of o)s(i[0])>=3&&(a=!0),this._config.onMessage(this,i,{direction:"down-in",depIndex:t},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return t}_deactivate(e=!1){let t=this._cleanup;if(this._cleanup=void 0,typeof t=="function")try{t()}catch(r){this._emit([[g,this._wrapFnError("cleanup threw",r)]])}else if(t!=null&&typeof t=="object"){let r=t.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[g,this._wrapFnError("cleanup.deactivate threw",o)]])}}for(let r of this._deps){if(r.unsub!=null){let o=r.unsub;r.unsub=null;try{o()}catch{}}we(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,t){let r=this._deps[e],o=t[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:t};for(let a of this._inspectorHooks)a(s)}if(o!==L){if(o===R){this._depDirtied(r);return}if(o===V){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(De);return}if(o===B||o===X){this._emit([t]);return}if(o===P){this._emit(ge);return}if(o===v)this._depSettledAsData(r,t[1]);else if(o===M)this._depSettledAsResolved(r);else if(o===N)this._depSettledAsTerminal(r,!0);else if(o===g)this._depSettledAsTerminal(r,t[1]);else{this._emit([t]);return}if(!this._fn){(o===v||o===M)&&this._emit([t]),(o===N||o===g)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me))}_depSettledAsData(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(t),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=t,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let t=this._deps[e];if(t.dataBatch.length===0&&t.prevData===void 0&&t.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(Ce),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(t=>t.terminal!==void 0&&t.terminal!==!0);if(e!=null){this._autoError&&this._emit([[g,e.terminal]]);return}this._autoComplete&&this._deps.every(t=>t.terminal!==void 0)&&this._emit(Ie)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(a){this._emit([[g,this._wrapFnError("cleanup threw",a)]]);return}}else if(e!=null&&typeof e=="object"){let a=e.beforeRun;if(typeof a=="function"){e.beforeRun=void 0;try{a()}catch(i){this._emit([[g,this._wrapFnError("cleanup.beforeRun threw",i)]]);return}}}let t=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),r=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let i=t[a];i!=null&&i.length>0&&(this._deps[a].prevData=i[i.length-1])}let o=this._deps.map(a=>a.terminal),s={prevData:r,terminalDeps:o,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:t,prevData:r};for(let i of this._inspectorHooks)i(a)}this._isExecutingFn=!0;try{let a=this._fn(t,this._actions,s);if(typeof a=="function")this._cleanup=a;else if(a!=null&&typeof a=="object"){let i=a;(typeof i.beforeRun=="function"||typeof i.deactivate=="function"||typeof i.invalidate=="function")&&(this._cleanup=a)}}catch(a){this._emit([[g,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>Xe?(this._rerunDepth=0,this._emit([[g,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Xe} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,t){let r=t instanceof Error?t.message:String(t);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:t})}_frameBatch(e){let t=this._config.tierOf;if(e.length===1)return t(e[0][0])===3&&this._status!=="dirty"?[$,e[0]]:e;let r=!0,o=!1,s=!1,a=-1;for(let u of e){let d=t(u[0]);d<a&&(r=!1),d===3&&(o=!0),u[0]===R&&(s=!0),a=d}let i=e;if(!r){let u=e.map((d,l)=>({m:d,i:l,tier:t(d[0])}));u.sort((d,l)=>d.tier-l.tier||d.i-l.i),i=u.map(d=>d.m)}if(o&&!s&&this._status!=="dirty"){let u=0;for(;u<i.length&&t(i[u][0])===0;)u++;return u===0?[$,...i]:[...i.slice(0,u),$,...i.slice(u)]}return i}_emit(e){if(e.length===0)return;for(let i=0;i<e.length;i++){let u=e[i];if(u[0]===g&&u[1]===void 0)throw new TypeError('[ERROR, payload] requires a non-undefined payload (spec \xA71.2). Pass an Error object or domain tag instead \u2014 e.g. node.down([[ERROR, new Error("reason")]])')}let t=e;if(this._isTerminal&&!this._resubscribable){let i=e.filter(u=>u[0]===P||u[0]===V);if(i.length===0)return;t=i}t=this._frameBatch(t);let o=null;for(let i=0;i<t.length;i++){let u=t[i],d=u[0];if(d!==B&&d!==X){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===B?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let l=!0;if(this._pausable!==!1){let c=u[1];if(d===B)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(c),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(c))l=!1;else if(this._pauseLocks.delete(c),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let p=this._pauseBuffer;this._pauseBuffer=[],this._emit(p)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}l?o?.push(u):o==null&&(o=t.slice(0,i))}if(o!=null){if(o.length===0)return;t=o}if(this._hasMeta&&t.some(i=>i[0]===P))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(ge)}catch{}let{finalMessages:s,equalsError:a}=this._updateState(t);if(s.length>0&&this._config.inspectorEnabled){let i=this._config.globalInspector;if(i!=null)try{i({kind:"emit",node:this,messages:s})}catch{}}if(s.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let i=this._config.tierOf,u=[];for(let d of s)i(d[0])===3?this._pauseBuffer.push(d):u.push(d);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(s);a!=null&&this._emit([[g,a]])}_updateState(e){let t=this._config.tierOf,r,o,s=-1,a=0;for(let l of e)t(l[0])===3&&a++;let i=a<=1,u=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===v){u=l;break}}for(let l=0;l<e.length;l++){let c=e[l],p=c[0];if(p===v){if(c.length>=2){let f=!1;if(i&&this._cached!==void 0)try{f=this._equals(this._cached,c[1])}catch(h){o=this._wrapFnError("equals threw",h),s=l;break}if(f){r==null&&(r=e.slice(0,l)),r.push(pe),this._status="resolved";continue}this._cached=c[1],this._versioning!=null&&(u<0||l===u)&&qe(this._versioning,c[1],this._hashFn)}this._status="settled",r?.push(c)}else if(r?.push(c),p===R)this._status="dirty";else if(p===M)this._status="resolved";else if(p===N){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===g){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===V){if(this._cached!==void 0){let h=this._config.rigorRecorder;if(h!=null)try{h.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let h=f.invalidate;if(typeof h=="function")try{h()}catch{}}}else p===P&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let d=s>=0?r??e.slice(0,s):r??e;return o!=null?{finalMessages:d,equalsError:o}:{finalMessages:d}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let t=[...this._sinks];for(let r of t)r(e)};_dispatchOrAccumulate(e){if(Be()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],We(()=>this._flushBatchPending()));for(let t of e)this._batchPendingMessages.push(t);return}re(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let t=this._frameBatch(e);re(this._deliverToSinks,t,this._config.tierOf)}},Qe=n=>Array.isArray(n),_e=n=>typeof n=="object"&&n!=null&&!Array.isArray(n)});function A(n,e){return ae((r,o,s)=>n(o,s)??void 0,{describeKind:"producer",...e})}var Z=k(()=>{"use strict";xe()});function et(n,e){let t={factory:n};return e!==void 0&&(t.factoryArgs=e),t}var tt=k(()=>{"use strict"});function de(n){return{describeKind:"producer",...n}}function Vt(n){return/[\\^$+?.()|[\]{}]/.test(n)?`\\${n}`:n}function q(n){let e="^";for(let t=0;t<n.length;t+=1){let r=n[t];if(r==="*"){n[t+1]==="*"?(e+=".*",t+=1):e+="[^/]*";continue}e+=Vt(r)}return e+="$",new RegExp(e)}function U(n,e){for(let t of e)if(t.test(n))return!0;return!1}function nt(n,e){let{signal:t,period:r,...o}=e??{};return A(s=>{let a=!1,i=0,u,d,l=()=>{a=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),t?.removeEventListener("abort",p)},c=()=>{a||(r!=null?(s.emit(i++),d=setInterval(()=>{a||s.emit(i++)},r)):(a=!0,t?.removeEventListener("abort",p),s.emit(i++),s.down([[N]])))},p=()=>{a||(l(),s.down([[g,t.reason]]))};if(t?.aborted){p();return}return u=setTimeout(c,n),t?.addEventListener("abort",p,{once:!0}),l},de(o))}function rt(n,e){return A(t=>{let r=!1;try{for(let o of n){if(r)return;t.emit(o)}r||t.down([[N]])}catch(o){r||t.down([[g,o]])}return()=>{r=!0}},de(e))}function Bt(n){return n!=null&&typeof n.then=="function"}function Wt(n,e){let{signal:t,...r}=e??{};return A(o=>{let s=!1,a=()=>{s||(s=!0,o.down([[g,t.reason]]))};if(t?.aborted){a();return}return t?.addEventListener("abort",a,{once:!0}),Promise.resolve(n).then(i=>{s||(s=!0,t?.removeEventListener("abort",a),o.emit(i),o.down([[N]]))},i=>{s||(s=!0,t?.removeEventListener("abort",a),o.down([[g,i]]))}),()=>{s=!0,t?.removeEventListener("abort",a)}},de(r))}function jt(n,e){let{signal:t,...r}=e??{};return A(o=>{let s=new AbortController,a=()=>s.abort(t?.reason);t?.aborted?s.abort(t.reason):t?.addEventListener("abort",a,{once:!0});let i=t??s.signal,u=!1,d=n[Symbol.asyncIterator](),l=()=>{u||i.aborted||Promise.resolve(d.next()).then(c=>{if(!(u||i.aborted)){if(c.done){o.down([[N]]);return}o.emit(c.value),l()}},c=>{!u&&!i.aborted&&o.down([[g,c]])})};return l(),()=>{u=!0,t?.removeEventListener("abort",a),s.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},de(r))}function Kt(n){return n!=null&&typeof n=="object"&&"cache"in n&&typeof n.subscribe=="function"}function ot(n,e){if(Kt(n))return n;if(Bt(n))return Wt(n,e);if(n!=null){let t=n;if(typeof t[Symbol.asyncIterator]=="function")return jt(n,e);if(typeof t[Symbol.iterator]=="function")return rt(n,e)}return $t(n)}function $t(...n){return rt(n,void 0)}var st=k(()=>{"use strict";G();Z()});var ue=k(()=>{"use strict";st()});function zt(n){return{describeKind:"derived",...n}}function qt(n,e,t){let r,o=!1,s=()=>{o||(o=!0,t())};return r=n.subscribe(a=>{let i=!1,u=!1;for(let d of a)d[0]!==L&&(d[0]===v?e.emit(d[1]):d[0]===N?i=!0:d[0]===g?(u=!0,e.down([d])):(d[0]===R||d[0]===M)&&e.down([d]));u?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function it(n,e,t){let r,o=!1;function s(){r?.(),r=void 0}return ae([n],(a,i,u)=>{if(u.terminalDeps[0]!=null&&u.terminalDeps[0]!==!0){s();return}if(u.terminalDeps[0]===!0){o=!0,r||i.down([[N]]);return}let d=a[0];if(!(d==null||d.length===0))return s(),r=qt(ot(e(d[d.length-1])),i,()=>{s(),o&&i.down([[N]])}),{deactivate:()=>{s(),o=!1}}},{...zt(t),completeWhenDepsComplete:!1,meta:{...et("switchMap"),...t?.meta??{}}})}var at=k(()=>{"use strict";G();tt();xe();ue()});var dt=k(()=>{"use strict";at()});var Qt={};kt(Qt,{fileAppendLog:()=>gt,fileBackend:()=>Q,fileKv:()=>yt,fileSnapshot:()=>mt,fromFSWatch:()=>Jt,fromGitHook:()=>ut,fromSpawn:()=>lt,runProcess:()=>ct,sqliteAppendLog:()=>bt,sqliteBackend:()=>ee,sqliteKv:()=>vt,sqliteSnapshot:()=>Tt});module.exports=St(Qt);te();G();Z();dt();ue();function ut(n,e){let{pollMs:t=5e3,include:r,exclude:o,maxConsecutiveErrors:s=1}=e??{},a=r?.map(q)??[],i=o?.map(q)??[],{execFileSync:u}=require("node:child_process"),d=p=>u("git",p,{cwd:n,encoding:"utf-8"}).trim(),l,c=0;return it(nt(0,{period:t}),()=>A(p=>{try{let f=d(["rev-parse","HEAD"]);if(!f)return c=0,()=>{};if(l===void 0)return l=f,c=0,()=>{};if(f===l)return c=0,()=>{};let h=d(["diff","--name-only",`${l}..${f}`]).split(`
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/extra/node.ts
|
|
18
|
+
var node_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(node_exports);
|
|
20
|
+
__reExport(node_exports, require("@graphrefly/pure-ts/extra/node"), module.exports);
|
|
21
|
+
//# sourceMappingURL=node.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/extra/node.ts"],"sourcesContent":["// Phase 13.9.A shim — re-export from pure-TS sibling until\n// @graphrefly/native (napi binding) and per-milestone swap-overs land.\nexport * from \"@graphrefly/pure-ts/extra/node\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAEA,yBAAc,2CAFd;","names":[]}
|
package/dist/extra/node.d.cts
CHANGED
|
@@ -1,187 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { fileAppendLog, fileBackend, fileKv, fileSnapshot, sqliteAppendLog, sqliteBackend, sqliteKv, sqliteSnapshot } from './storage-tiers-node.cjs';
|
|
3
|
-
import './storage-tiers.cjs';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Git hook source — Node-only reactive source that polls a repository's HEAD
|
|
7
|
-
* and emits structured `GitEvent`s on every new commit.
|
|
8
|
-
*
|
|
9
|
-
* Isolated from `./adapters.ts` so that the universal `extra/index` barrel
|
|
10
|
-
* stays browser-safe. Access via `@graphrefly/graphrefly/extra/node`, which
|
|
11
|
-
* re-exports this module.
|
|
12
|
-
*
|
|
13
|
-
* @module
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
type ExtraOpts$1 = Omit<NodeOptions, "describeKind">;
|
|
17
|
-
/** Git hook type for {@link fromGitHook}. */
|
|
18
|
-
type GitHookType = "post-commit" | "post-merge" | "post-checkout" | "post-rewrite";
|
|
19
|
-
/** Structured git event emitted by {@link fromGitHook}. */
|
|
20
|
-
type GitEvent = {
|
|
21
|
-
hook: GitHookType;
|
|
22
|
-
commit: string;
|
|
23
|
-
files: string[];
|
|
24
|
-
message: string;
|
|
25
|
-
author: string;
|
|
26
|
-
timestamp_ns: number;
|
|
27
|
-
};
|
|
28
|
-
/** Options for {@link fromGitHook}. */
|
|
29
|
-
type FromGitHookOptions = ExtraOpts$1 & {
|
|
30
|
-
pollMs?: number;
|
|
31
|
-
include?: string[];
|
|
32
|
-
exclude?: string[];
|
|
33
|
-
/**
|
|
34
|
-
* Maximum consecutive poll errors before terminating the source. Prevents
|
|
35
|
-
* error storms when the repository is unavailable (e.g. deleted, corrupt,
|
|
36
|
-
* permissions lost). Default: `1` (terminate on first error — preserves
|
|
37
|
-
* pre-switchMap back-compat). Raise it (or set `Infinity`) to keep
|
|
38
|
-
* retrying indefinitely (legacy behavior).
|
|
39
|
-
*/
|
|
40
|
-
maxConsecutiveErrors?: number;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Git change detection as a reactive source.
|
|
44
|
-
*
|
|
45
|
-
* @category extra
|
|
46
|
-
*/
|
|
47
|
-
declare function fromGitHook(repoPath: string, opts?: FromGitHookOptions): Node<GitEvent>;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Filesystem-watching source. Isolated from `./sources.ts` so bundlers
|
|
51
|
-
* targeting the browser can import browser-safe sources (`fromTimer`,
|
|
52
|
-
* `fromRaf`, etc.) without pulling in `node:fs`/`node:path`.
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
type ExtraOpts = Omit<NodeOptions<unknown>, "describeKind">;
|
|
56
|
-
type FSEventType = "change" | "rename" | "create" | "delete";
|
|
57
|
-
type FSEvent = {
|
|
58
|
-
type: FSEventType;
|
|
59
|
-
path: string;
|
|
60
|
-
root: string;
|
|
61
|
-
relative_path: string;
|
|
62
|
-
src_path?: string;
|
|
63
|
-
dest_path?: string;
|
|
64
|
-
timestamp_ns: number;
|
|
65
|
-
};
|
|
66
|
-
type FromFSWatchOptions = ExtraOpts & {
|
|
67
|
-
recursive?: boolean;
|
|
68
|
-
debounce?: number;
|
|
69
|
-
include?: string[];
|
|
70
|
-
exclude?: string[];
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Watches filesystem paths and emits debounced change events.
|
|
74
|
-
*
|
|
75
|
-
* Uses `fs.watch` only (no polling fallback). Teardown closes all watchers.
|
|
76
|
-
*
|
|
77
|
-
* @category extra
|
|
78
|
-
*/
|
|
79
|
-
declare function fromFSWatch(paths: string | string[], opts?: FromFSWatchOptions): Node<FSEvent>;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Child-process reactive sources — Node-only.
|
|
83
|
-
*
|
|
84
|
-
* Isolated from `./sources.ts` so bundlers targeting the browser can import
|
|
85
|
-
* browser-safe sources without pulling in `node:child_process`.
|
|
86
|
-
*
|
|
87
|
-
* Access via `@graphrefly/graphrefly/extra/node`, which re-exports this module.
|
|
88
|
-
*
|
|
89
|
-
* @module
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* SpawnEvent — discriminated stream emitted by {@link fromSpawn}.
|
|
94
|
-
*
|
|
95
|
-
* @category extra
|
|
96
|
-
*/
|
|
97
|
-
type SpawnEvent = {
|
|
98
|
-
kind: "stdout";
|
|
99
|
-
chunk: Buffer;
|
|
100
|
-
} | {
|
|
101
|
-
kind: "stderr";
|
|
102
|
-
chunk: Buffer;
|
|
103
|
-
} | {
|
|
104
|
-
kind: "exit";
|
|
105
|
-
code: number | null;
|
|
106
|
-
signal: NodeJS.Signals | null;
|
|
107
|
-
};
|
|
108
|
-
/** Options for {@link fromSpawn}. Mirrors `child_process.SpawnOptions`. */
|
|
109
|
-
interface FromSpawnOptions {
|
|
110
|
-
cwd?: string;
|
|
111
|
-
env?: NodeJS.ProcessEnv;
|
|
112
|
-
shell?: boolean | string;
|
|
113
|
-
/**
|
|
114
|
-
* Optional caller-owned AbortSignal. When fired, the subprocess is sent
|
|
115
|
-
* SIGTERM (per `child_process.spawn` signal semantics). The producer's own
|
|
116
|
-
* teardown also sends SIGTERM regardless of caller signal — so `switchMap`
|
|
117
|
-
* supersede in `actuatorExecutor` cancels in-flight subprocesses without
|
|
118
|
-
* the caller wiring extra signals.
|
|
119
|
-
*/
|
|
120
|
-
signal?: AbortSignal;
|
|
121
|
-
/** Extra args forwarded to spawn — e.g. stdio configuration. */
|
|
122
|
-
stdio?: "pipe" | readonly ("pipe" | "ignore" | "inherit")[];
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Spawn `cmd args` as a child process and stream stdout/stderr/exit as a
|
|
126
|
-
* single discriminated `SpawnEvent` stream.
|
|
127
|
-
*
|
|
128
|
-
* Lifecycle:
|
|
129
|
-
* - Stdout/stderr chunks emit as `DATA { kind: "stdout"|"stderr", chunk }`.
|
|
130
|
-
* - Process exit emits one final `DATA { kind: "exit", code, signal }` then
|
|
131
|
-
* `COMPLETE`.
|
|
132
|
-
* - Spawn-error (ENOENT, EPERM, …) emits `ERROR`.
|
|
133
|
-
* - Producer teardown sends `SIGTERM` to the subprocess if it is still alive.
|
|
134
|
-
*
|
|
135
|
-
* **Multicast semantics:** `fromSpawn` returns a node backed by a single
|
|
136
|
-
* `producer` activation — the subprocess is spawned once when the first
|
|
137
|
-
* subscriber connects, and all subsequent subscribers share the same event
|
|
138
|
-
* stream. Unsubscribing the last subscriber tears down the subprocess.
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```ts
|
|
142
|
-
* import { fromSpawn } from "@graphrefly/graphrefly/extra/node";
|
|
143
|
-
*
|
|
144
|
-
* const stream = fromSpawn("git", ["log", "--oneline"]);
|
|
145
|
-
* stream.subscribe((msgs) => {
|
|
146
|
-
* for (const [type, value] of msgs) {
|
|
147
|
-
* if (type === DATA) console.log(value);
|
|
148
|
-
* }
|
|
149
|
-
* });
|
|
150
|
-
* ```
|
|
151
|
-
*
|
|
152
|
-
* @category extra
|
|
153
|
-
*/
|
|
154
|
-
declare function fromSpawn(cmd: string, args: readonly string[], opts?: FromSpawnOptions): Node<SpawnEvent>;
|
|
155
|
-
/**
|
|
156
|
-
* Run `cmd args` to completion and emit one DATA with aggregated output.
|
|
157
|
-
*
|
|
158
|
-
* Convenience over {@link fromSpawn} for the "wait for the process to finish,
|
|
159
|
-
* capture stdout/stderr as strings, get exit code" case.
|
|
160
|
-
*
|
|
161
|
-
* Aggregation policy: stdout and stderr are concatenated as `Buffer`s and
|
|
162
|
-
* decoded as utf-8 once at exit, so multi-byte sequences split across chunks
|
|
163
|
-
* are handled correctly. Actuators that need byte-exact stdout should use
|
|
164
|
-
* `fromSpawn` directly.
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```ts
|
|
168
|
-
* import { runProcess } from "@graphrefly/graphrefly/extra/node";
|
|
169
|
-
*
|
|
170
|
-
* const result = runProcess("git", ["rev-parse", "HEAD"]);
|
|
171
|
-
* result.subscribe((msgs) => {
|
|
172
|
-
* for (const [type, value] of msgs) {
|
|
173
|
-
* if (type === DATA) console.log(value.stdout.trim());
|
|
174
|
-
* }
|
|
175
|
-
* });
|
|
176
|
-
* ```
|
|
177
|
-
*
|
|
178
|
-
* @category extra
|
|
179
|
-
*/
|
|
180
|
-
declare function runProcess(cmd: string, args: readonly string[], opts?: FromSpawnOptions): Node<{
|
|
181
|
-
stdout: string;
|
|
182
|
-
stderr: string;
|
|
183
|
-
exitCode: number | null;
|
|
184
|
-
signal: NodeJS.Signals | null;
|
|
185
|
-
}>;
|
|
186
|
-
|
|
187
|
-
export { type FSEvent, type FSEventType, type FromFSWatchOptions, type FromGitHookOptions, type FromSpawnOptions, type GitEvent, type GitHookType, type SpawnEvent, fromFSWatch, fromGitHook, fromSpawn, runProcess };
|
|
1
|
+
export * from '@graphrefly/pure-ts/extra/node';
|
package/dist/extra/node.d.ts
CHANGED
|
@@ -1,187 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { fileAppendLog, fileBackend, fileKv, fileSnapshot, sqliteAppendLog, sqliteBackend, sqliteKv, sqliteSnapshot } from './storage-tiers-node.js';
|
|
3
|
-
import './storage-tiers.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Git hook source — Node-only reactive source that polls a repository's HEAD
|
|
7
|
-
* and emits structured `GitEvent`s on every new commit.
|
|
8
|
-
*
|
|
9
|
-
* Isolated from `./adapters.ts` so that the universal `extra/index` barrel
|
|
10
|
-
* stays browser-safe. Access via `@graphrefly/graphrefly/extra/node`, which
|
|
11
|
-
* re-exports this module.
|
|
12
|
-
*
|
|
13
|
-
* @module
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
type ExtraOpts$1 = Omit<NodeOptions, "describeKind">;
|
|
17
|
-
/** Git hook type for {@link fromGitHook}. */
|
|
18
|
-
type GitHookType = "post-commit" | "post-merge" | "post-checkout" | "post-rewrite";
|
|
19
|
-
/** Structured git event emitted by {@link fromGitHook}. */
|
|
20
|
-
type GitEvent = {
|
|
21
|
-
hook: GitHookType;
|
|
22
|
-
commit: string;
|
|
23
|
-
files: string[];
|
|
24
|
-
message: string;
|
|
25
|
-
author: string;
|
|
26
|
-
timestamp_ns: number;
|
|
27
|
-
};
|
|
28
|
-
/** Options for {@link fromGitHook}. */
|
|
29
|
-
type FromGitHookOptions = ExtraOpts$1 & {
|
|
30
|
-
pollMs?: number;
|
|
31
|
-
include?: string[];
|
|
32
|
-
exclude?: string[];
|
|
33
|
-
/**
|
|
34
|
-
* Maximum consecutive poll errors before terminating the source. Prevents
|
|
35
|
-
* error storms when the repository is unavailable (e.g. deleted, corrupt,
|
|
36
|
-
* permissions lost). Default: `1` (terminate on first error — preserves
|
|
37
|
-
* pre-switchMap back-compat). Raise it (or set `Infinity`) to keep
|
|
38
|
-
* retrying indefinitely (legacy behavior).
|
|
39
|
-
*/
|
|
40
|
-
maxConsecutiveErrors?: number;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Git change detection as a reactive source.
|
|
44
|
-
*
|
|
45
|
-
* @category extra
|
|
46
|
-
*/
|
|
47
|
-
declare function fromGitHook(repoPath: string, opts?: FromGitHookOptions): Node<GitEvent>;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Filesystem-watching source. Isolated from `./sources.ts` so bundlers
|
|
51
|
-
* targeting the browser can import browser-safe sources (`fromTimer`,
|
|
52
|
-
* `fromRaf`, etc.) without pulling in `node:fs`/`node:path`.
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
type ExtraOpts = Omit<NodeOptions<unknown>, "describeKind">;
|
|
56
|
-
type FSEventType = "change" | "rename" | "create" | "delete";
|
|
57
|
-
type FSEvent = {
|
|
58
|
-
type: FSEventType;
|
|
59
|
-
path: string;
|
|
60
|
-
root: string;
|
|
61
|
-
relative_path: string;
|
|
62
|
-
src_path?: string;
|
|
63
|
-
dest_path?: string;
|
|
64
|
-
timestamp_ns: number;
|
|
65
|
-
};
|
|
66
|
-
type FromFSWatchOptions = ExtraOpts & {
|
|
67
|
-
recursive?: boolean;
|
|
68
|
-
debounce?: number;
|
|
69
|
-
include?: string[];
|
|
70
|
-
exclude?: string[];
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Watches filesystem paths and emits debounced change events.
|
|
74
|
-
*
|
|
75
|
-
* Uses `fs.watch` only (no polling fallback). Teardown closes all watchers.
|
|
76
|
-
*
|
|
77
|
-
* @category extra
|
|
78
|
-
*/
|
|
79
|
-
declare function fromFSWatch(paths: string | string[], opts?: FromFSWatchOptions): Node<FSEvent>;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Child-process reactive sources — Node-only.
|
|
83
|
-
*
|
|
84
|
-
* Isolated from `./sources.ts` so bundlers targeting the browser can import
|
|
85
|
-
* browser-safe sources without pulling in `node:child_process`.
|
|
86
|
-
*
|
|
87
|
-
* Access via `@graphrefly/graphrefly/extra/node`, which re-exports this module.
|
|
88
|
-
*
|
|
89
|
-
* @module
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* SpawnEvent — discriminated stream emitted by {@link fromSpawn}.
|
|
94
|
-
*
|
|
95
|
-
* @category extra
|
|
96
|
-
*/
|
|
97
|
-
type SpawnEvent = {
|
|
98
|
-
kind: "stdout";
|
|
99
|
-
chunk: Buffer;
|
|
100
|
-
} | {
|
|
101
|
-
kind: "stderr";
|
|
102
|
-
chunk: Buffer;
|
|
103
|
-
} | {
|
|
104
|
-
kind: "exit";
|
|
105
|
-
code: number | null;
|
|
106
|
-
signal: NodeJS.Signals | null;
|
|
107
|
-
};
|
|
108
|
-
/** Options for {@link fromSpawn}. Mirrors `child_process.SpawnOptions`. */
|
|
109
|
-
interface FromSpawnOptions {
|
|
110
|
-
cwd?: string;
|
|
111
|
-
env?: NodeJS.ProcessEnv;
|
|
112
|
-
shell?: boolean | string;
|
|
113
|
-
/**
|
|
114
|
-
* Optional caller-owned AbortSignal. When fired, the subprocess is sent
|
|
115
|
-
* SIGTERM (per `child_process.spawn` signal semantics). The producer's own
|
|
116
|
-
* teardown also sends SIGTERM regardless of caller signal — so `switchMap`
|
|
117
|
-
* supersede in `actuatorExecutor` cancels in-flight subprocesses without
|
|
118
|
-
* the caller wiring extra signals.
|
|
119
|
-
*/
|
|
120
|
-
signal?: AbortSignal;
|
|
121
|
-
/** Extra args forwarded to spawn — e.g. stdio configuration. */
|
|
122
|
-
stdio?: "pipe" | readonly ("pipe" | "ignore" | "inherit")[];
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Spawn `cmd args` as a child process and stream stdout/stderr/exit as a
|
|
126
|
-
* single discriminated `SpawnEvent` stream.
|
|
127
|
-
*
|
|
128
|
-
* Lifecycle:
|
|
129
|
-
* - Stdout/stderr chunks emit as `DATA { kind: "stdout"|"stderr", chunk }`.
|
|
130
|
-
* - Process exit emits one final `DATA { kind: "exit", code, signal }` then
|
|
131
|
-
* `COMPLETE`.
|
|
132
|
-
* - Spawn-error (ENOENT, EPERM, …) emits `ERROR`.
|
|
133
|
-
* - Producer teardown sends `SIGTERM` to the subprocess if it is still alive.
|
|
134
|
-
*
|
|
135
|
-
* **Multicast semantics:** `fromSpawn` returns a node backed by a single
|
|
136
|
-
* `producer` activation — the subprocess is spawned once when the first
|
|
137
|
-
* subscriber connects, and all subsequent subscribers share the same event
|
|
138
|
-
* stream. Unsubscribing the last subscriber tears down the subprocess.
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```ts
|
|
142
|
-
* import { fromSpawn } from "@graphrefly/graphrefly/extra/node";
|
|
143
|
-
*
|
|
144
|
-
* const stream = fromSpawn("git", ["log", "--oneline"]);
|
|
145
|
-
* stream.subscribe((msgs) => {
|
|
146
|
-
* for (const [type, value] of msgs) {
|
|
147
|
-
* if (type === DATA) console.log(value);
|
|
148
|
-
* }
|
|
149
|
-
* });
|
|
150
|
-
* ```
|
|
151
|
-
*
|
|
152
|
-
* @category extra
|
|
153
|
-
*/
|
|
154
|
-
declare function fromSpawn(cmd: string, args: readonly string[], opts?: FromSpawnOptions): Node<SpawnEvent>;
|
|
155
|
-
/**
|
|
156
|
-
* Run `cmd args` to completion and emit one DATA with aggregated output.
|
|
157
|
-
*
|
|
158
|
-
* Convenience over {@link fromSpawn} for the "wait for the process to finish,
|
|
159
|
-
* capture stdout/stderr as strings, get exit code" case.
|
|
160
|
-
*
|
|
161
|
-
* Aggregation policy: stdout and stderr are concatenated as `Buffer`s and
|
|
162
|
-
* decoded as utf-8 once at exit, so multi-byte sequences split across chunks
|
|
163
|
-
* are handled correctly. Actuators that need byte-exact stdout should use
|
|
164
|
-
* `fromSpawn` directly.
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```ts
|
|
168
|
-
* import { runProcess } from "@graphrefly/graphrefly/extra/node";
|
|
169
|
-
*
|
|
170
|
-
* const result = runProcess("git", ["rev-parse", "HEAD"]);
|
|
171
|
-
* result.subscribe((msgs) => {
|
|
172
|
-
* for (const [type, value] of msgs) {
|
|
173
|
-
* if (type === DATA) console.log(value.stdout.trim());
|
|
174
|
-
* }
|
|
175
|
-
* });
|
|
176
|
-
* ```
|
|
177
|
-
*
|
|
178
|
-
* @category extra
|
|
179
|
-
*/
|
|
180
|
-
declare function runProcess(cmd: string, args: readonly string[], opts?: FromSpawnOptions): Node<{
|
|
181
|
-
stdout: string;
|
|
182
|
-
stderr: string;
|
|
183
|
-
exitCode: number | null;
|
|
184
|
-
signal: NodeJS.Signals | null;
|
|
185
|
-
}>;
|
|
186
|
-
|
|
187
|
-
export { type FSEvent, type FSEventType, type FromFSWatchOptions, type FromGitHookOptions, type FromSpawnOptions, type GitEvent, type GitHookType, type SpawnEvent, fromFSWatch, fromGitHook, fromSpawn, runProcess };
|
|
1
|
+
export * from '@graphrefly/pure-ts/extra/node';
|
package/dist/extra/node.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// src/extra/node.ts
|
|
2
|
+
export * from "@graphrefly/pure-ts/extra/node";
|
|
3
|
+
//# sourceMappingURL=node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/extra/node.ts"],"sourcesContent":["// Phase 13.9.A shim — re-export from pure-TS sibling until\n// @graphrefly/native (napi binding) and per-milestone swap-overs land.\nexport * from \"@graphrefly/pure-ts/extra/node\";\n"],"mappings":";AAEA,cAAc;","names":[]}
|