@graphrefly/graphrefly 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cascading-DKIb6Pk8.d.cts → cascading-B25wxpRa.d.cts} +3 -3
- package/dist/{cascading-Bg0a4VSf.d.ts → cascading-BsJ4GbnS.d.ts} +3 -3
- package/dist/chunk-3U7IIQB2.js +1 -0
- package/dist/{chunk-YDWTVO4E.js → chunk-44QWWUA3.js} +1 -1
- package/dist/chunk-5CPPC75H.js +1 -0
- package/dist/chunk-5CZ3KIRJ.js +1 -0
- package/dist/chunk-5KPIYVCC.js +7 -0
- package/dist/{chunk-WBWBY6LI.js → chunk-5RTZ6DXG.js} +1 -1
- package/dist/{chunk-IPNJDNE7.js → chunk-5Z3AFBN7.js} +1 -1
- package/dist/{chunk-C5DINHNP.js → chunk-6G5YD37E.js} +1 -1
- package/dist/{chunk-TONEKQM3.js → chunk-7LYIKMW5.js} +1 -1
- package/dist/chunk-A5HZZYRK.js +1 -0
- package/dist/{chunk-CJMFZXIZ.js → chunk-AACJX2L7.js} +1 -1
- package/dist/chunk-AQC53OWG.js +1 -0
- package/dist/chunk-CE72X3WO.js +1 -0
- package/dist/chunk-CGA5RXO6.js +1 -0
- package/dist/chunk-D5RFJOZ2.js +1 -0
- package/dist/chunk-DBPFMCVH.js +1 -0
- package/dist/chunk-F36TA3ET.js +1 -0
- package/dist/chunk-F3IGTWCQ.js +1 -0
- package/dist/chunk-F672GV32.js +1 -0
- package/dist/{chunk-GCUYSIM4.js → chunk-GWOKTENT.js} +1 -1
- package/dist/{chunk-GAOX6OPT.js → chunk-I57VSGRB.js} +1 -1
- package/dist/{chunk-4NYSEUKV.js → chunk-J6TGRQUP.js} +1 -1
- package/dist/{chunk-4F564IPP.js → chunk-JJTF75VS.js} +1 -1
- package/dist/{chunk-BY4WKPKM.js → chunk-JUJEPZOI.js} +1 -1
- package/dist/chunk-K5ZXJPWU.js +5 -0
- package/dist/{chunk-TZLEMGAK.js → chunk-KCE6WWJE.js} +2 -2
- package/dist/chunk-KL7CILPL.js +1 -0
- package/dist/chunk-KUVDFOJH.js +1 -0
- package/dist/{chunk-PBN426RU.js → chunk-LO3LO2TO.js} +1 -1
- package/dist/chunk-MQZWA3DF.js +1 -0
- package/dist/chunk-MYFR67PY.js +18 -0
- package/dist/{chunk-65WWQ5CB.js → chunk-N2GCKKKH.js} +5 -5
- package/dist/{chunk-KN2UMFT6.js → chunk-PCD2MU7X.js} +1 -1
- package/dist/{chunk-SFIM774L.js → chunk-PYEIPRSZ.js} +1 -1
- package/dist/chunk-Q7EUZ6NN.js +1 -0
- package/dist/{chunk-U2T2XWDA.js → chunk-QKUWS7CO.js} +1 -1
- package/dist/{chunk-Q46YJCQH.js → chunk-T6RPUERH.js} +1 -1
- package/dist/chunk-TQSTS3BY.js +1 -0
- package/dist/chunk-VN6RDSK2.js +1 -0
- package/dist/{chunk-UF746BQ4.js → chunk-XINLP35X.js} +1 -1
- package/dist/{chunk-A3GDELMY.js → chunk-YBA5N4XY.js} +7 -7
- package/dist/{chunk-INXDSJRC.js → chunk-YOUAVGHJ.js} +1 -1
- package/dist/compat/index.cjs +10 -10
- package/dist/compat/index.d.cts +17 -14
- package/dist/compat/index.d.ts +17 -14
- package/dist/compat/index.js +1 -1
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nestjs/index.cjs +12 -12
- package/dist/compat/nestjs/index.d.cts +9 -6
- package/dist/compat/nestjs/index.d.ts +9 -6
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/zustand/index.cjs +7 -7
- package/dist/compat/zustand/index.d.cts +5 -4
- package/dist/compat/zustand/index.d.ts +5 -4
- package/dist/compat/zustand/index.js +1 -1
- package/dist/{composite-BPDU_XV1.d.ts → composite-CT_mApQD.d.ts} +2 -2
- package/dist/{composite-CmvdhTJe.d.cts → composite-_XckYx2e.d.cts} +2 -2
- package/dist/{content-addressed-storage-DqIWCmZG.d.cts → content-addressed-storage-4-ST1tYk.d.cts} +5 -5
- package/dist/{content-addressed-storage-BUiREIuj.d.ts → content-addressed-storage-DuYMjV7o.d.ts} +5 -5
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/extra/browser.cjs +1 -1
- package/dist/extra/browser.d.cts +4 -3
- package/dist/extra/browser.d.ts +4 -3
- package/dist/extra/browser.js +1 -1
- package/dist/extra/index.cjs +18 -18
- package/dist/extra/index.d.cts +13 -12
- package/dist/extra/index.d.ts +13 -12
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +2 -3
- package/dist/extra/node.d.cts +3 -3
- package/dist/extra/node.d.ts +3 -3
- package/dist/extra/node.js +2 -2
- package/dist/extra/operators.cjs +1 -1
- package/dist/extra/operators.d.cts +1 -1
- package/dist/extra/operators.d.ts +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.cjs +1 -1
- package/dist/extra/reactive.d.cts +4 -3
- package/dist/extra/reactive.d.ts +4 -3
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/sources.cjs +1 -1
- package/dist/extra/sources.d.cts +57 -2
- package/dist/extra/sources.d.ts +57 -2
- package/dist/extra/sources.js +1 -1
- package/dist/extra/storage-browser.cjs +1 -1
- package/dist/extra/storage-browser.d.cts +8 -42
- package/dist/extra/storage-browser.d.ts +8 -42
- package/dist/extra/storage-browser.js +1 -1
- package/dist/extra/storage-core.cjs +1 -1
- package/dist/extra/storage-core.d.cts +13 -83
- package/dist/extra/storage-core.d.ts +13 -83
- package/dist/extra/storage-core.js +1 -1
- package/dist/extra/storage-node.cjs +1 -2
- package/dist/extra/storage-node.d.cts +1 -59
- package/dist/extra/storage-node.d.ts +1 -59
- package/dist/extra/storage-node.js +0 -1
- package/dist/extra/storage-tiers-browser.cjs +1 -0
- package/dist/extra/storage-tiers-browser.d.cts +49 -0
- package/dist/extra/storage-tiers-browser.d.ts +49 -0
- package/dist/extra/storage-tiers-browser.js +1 -0
- package/dist/extra/storage-tiers-node.cjs +1 -0
- package/dist/extra/storage-tiers-node.d.cts +86 -0
- package/dist/extra/storage-tiers-node.d.ts +86 -0
- package/dist/extra/storage-tiers-node.js +1 -0
- package/dist/extra/storage-tiers.cjs +1 -0
- package/dist/extra/storage-tiers.d.cts +284 -0
- package/dist/extra/storage-tiers.d.ts +284 -0
- package/dist/extra/storage-tiers.js +1 -0
- package/dist/{fallback-mYSd8vQo.d.ts → fallback-DuEXfA4F.d.ts} +14 -14
- package/dist/{fallback-9YznPvPP.d.cts → fallback-axI2cXwt.d.cts} +14 -14
- package/dist/graph/index.cjs +3 -3
- package/dist/graph/index.d.cts +6 -5
- package/dist/graph/index.d.ts +6 -5
- package/dist/graph/index.js +1 -1
- package/dist/{graph-BROUZPG9.d.ts → graph-Cv-8x0ZI.d.ts} +28 -16
- package/dist/{graph-DaoydJ_u.d.cts → graph-kTltt95s.d.cts} +28 -16
- package/dist/imperative-audit-ahAE65a9.d.cts +28 -0
- package/dist/imperative-audit-ahAE65a9.d.ts +28 -0
- package/dist/index-2URa-V4S.d.cts +461 -0
- package/dist/{index-Ccv_61jG.d.cts → index-33mF4XyU.d.cts} +110 -27
- package/dist/{index-CI5fULSz.d.ts → index-8OxXae3g.d.ts} +1 -1
- package/dist/{index-CQ1gt4rn.d.cts → index-9xhIaM-w.d.cts} +1 -1
- package/dist/{index-DhWrMTI6.d.cts → index-B3D_z0Z6.d.cts} +1 -1
- package/dist/{index-Dia4yc2y.d.ts → index-B4s70vYf.d.ts} +4 -4
- package/dist/{index-Db21wuaD.d.ts → index-B5UR87KG.d.ts} +3 -3
- package/dist/{index-DuvQAU02.d.ts → index-BBdwz2BW.d.ts} +2 -2
- package/dist/{index-CQtnGFrZ.d.cts → index-BC-xjOrd.d.cts} +7 -7
- package/dist/{index-ClKm7CFB.d.cts → index-BFuVcqL8.d.cts} +1 -1
- package/dist/index-BTJxM-wZ.d.ts +292 -0
- package/dist/{index-Jgl7ev9I.d.cts → index-BVNGEX7d.d.cts} +9 -9
- package/dist/{index-BkfL5MXh.d.cts → index-BWH17rK_.d.cts} +3 -3
- package/dist/{index-CD7qmvSf.d.ts → index-BZ1V5GzX.d.ts} +3 -3
- package/dist/{index-BDEhWLF4.d.cts → index-BhkPzu-Z.d.cts} +4 -4
- package/dist/{index-zA1uVtk0.d.ts → index-BiomL7AW.d.ts} +1 -1
- package/dist/{index-BWiX5foT.d.ts → index-BjWZARLy.d.ts} +1 -1
- package/dist/{index-RJX4snyi.d.cts → index-BlRVj-7Q.d.cts} +21 -21
- package/dist/{index-Ds3Rz9m9.d.cts → index-BsZlbHM5.d.cts} +3 -3
- package/dist/{index-BsxqmV6u.d.ts → index-BuMzxRO2.d.ts} +2 -2
- package/dist/{index-C5uMGVJw.d.ts → index-BwYGLgmI.d.ts} +4 -4
- package/dist/{index-p0bkNfby.d.cts → index-C4ig7whw.d.cts} +3 -3
- package/dist/{index-BRisOxlx.d.ts → index-CDvC1m5p.d.ts} +1 -1
- package/dist/{index-ygRFoyrN.d.ts → index-CI_yjtua.d.ts} +2 -2
- package/dist/{index-DxEcY7Om.d.ts → index-CIcu6fIR.d.ts} +1 -1
- package/dist/{index-Ced0dphF.d.ts → index-CVhBdCMf.d.ts} +9 -9
- package/dist/{index-b4a6Sg0R.d.ts → index-CZAixNU3.d.ts} +4 -4
- package/dist/index-Cjrpx2Mg.d.cts +171 -0
- package/dist/{index-Bd2AjMQY.d.ts → index-Cot94_82.d.ts} +21 -21
- package/dist/{index-B1hFhK1K.d.cts → index-CpZKtdMw.d.cts} +1 -1
- package/dist/{index-BO6t0HjV.d.cts → index-CqSJ25A9.d.cts} +1 -1
- package/dist/{index-BUtCR0k6.d.ts → index-CsD0fqnO.d.ts} +7 -7
- package/dist/{index-ChZvMC4M.d.cts → index-CvUrRb4m.d.cts} +7 -7
- package/dist/{index-Cp91Sxbo.d.cts → index-D8IyqHvT.d.cts} +3 -3
- package/dist/{index-iKsmdnq6.d.cts → index-D9qoEOj_.d.cts} +2 -2
- package/dist/{index-nP13Qe6T.d.ts → index-DFe2Pk2u.d.ts} +1 -1
- package/dist/{index-IxinNgAH.d.cts → index-DHv2M7s8.d.cts} +16 -15
- package/dist/{index-Cn3taOmp.d.cts → index-DKp1CIbG.d.cts} +2 -2
- package/dist/{index-CoR-tOZA.d.cts → index-DLyQC5Ww.d.ts} +8 -7
- package/dist/{index-CNxdDb2e.d.ts → index-DSSsxS7B.d.ts} +3 -3
- package/dist/{index-DheNs40A.d.ts → index-DXSLMoma.d.ts} +2 -2
- package/dist/{index-BVTjuKeP.d.cts → index-D_QQ_dTD.d.cts} +1 -1
- package/dist/{index-Chi9IiHJ.d.ts → index-DlccEIi3.d.ts} +3 -3
- package/dist/{index-DR3XqZlV.d.cts → index-DmtWMP0X.d.cts} +1 -1
- package/dist/{index-B5eS17Bz.d.ts → index-DtSVSKnd.d.ts} +47 -32
- package/dist/{index-Bi4ZP6Hc.d.ts → index-DxxvGTXp.d.ts} +110 -27
- package/dist/index-DzCQt2FJ.d.cts +292 -0
- package/dist/{index-D80nGRb9.d.ts → index-DzYTXMBz.d.ts} +3 -3
- package/dist/index-EfPb77rT.d.cts +26 -0
- package/dist/{index-B-KCkW4M.d.cts → index-GaW6Welt.d.cts} +4 -4
- package/dist/{index-D23g00HE.d.cts → index-HCp5ua_i.d.cts} +4 -4
- package/dist/{index-DupIl9wI.d.ts → index-JYtN9uqM.d.ts} +1 -1
- package/dist/index-KeBhbNg3.d.ts +461 -0
- package/dist/{index-BpjQanLs.d.cts → index-PluovH45.d.cts} +2 -2
- package/dist/{index-CbCNoogR.d.ts → index-Pu1Wa7en.d.ts} +16 -15
- package/dist/{index-ZIQaKIdY.d.cts → index-RJIY7QVW.d.cts} +47 -32
- package/dist/{index-yJY9thRY.d.cts → index-XxSeddWP.d.cts} +2 -2
- package/dist/{index-C8_bnDBZ.d.cts → index-ZhKyR8co.d.cts} +3 -3
- package/dist/{index-3L3RC3VJ.d.ts → index-isdlyeeO.d.ts} +7 -7
- package/dist/index-jA_OwwNg.d.ts +26 -0
- package/dist/{index-BFHpNSsV.d.ts → index-k67aNfqC.d.cts} +8 -7
- package/dist/index-kBUQj-rT.d.ts +171 -0
- package/dist/index.cjs +59 -59
- package/dist/index.d.cts +53 -49
- package/dist/index.d.ts +53 -49
- package/dist/index.js +1 -1
- package/dist/{meta-BdjSt8ky.d.cts → meta-BGO6C7K9.d.cts} +1 -1
- package/dist/{meta-CtDjj7cU.d.ts → meta-CC6EPdpK.d.ts} +1 -1
- package/dist/{node-8qx0kgYt.d.cts → node-fSc-hCv8.d.cts} +1 -1
- package/dist/{node-8qx0kgYt.d.ts → node-fSc-hCv8.d.ts} +1 -1
- package/dist/{observable-B6Ba-TTI.d.cts → observable-Cqty11jG.d.cts} +1 -1
- package/dist/{observable-DOniYM2B.d.ts → observable-EAV_rNfM.d.ts} +1 -1
- package/dist/patterns/ai/browser.cjs +5 -5
- package/dist/patterns/ai/browser.d.cts +4 -4
- package/dist/patterns/ai/browser.d.ts +4 -4
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +19 -19
- package/dist/patterns/ai/index.d.cts +19 -17
- package/dist/patterns/ai/index.d.ts +19 -17
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.cjs +1 -2
- package/dist/patterns/ai/node.d.cts +9 -9
- package/dist/patterns/ai/node.d.ts +9 -9
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.cjs +6 -6
- package/dist/patterns/audit/index.d.cts +7 -5
- package/dist/patterns/audit/index.d.ts +7 -5
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +7 -7
- package/dist/patterns/cqrs/index.d.cts +7 -4
- package/dist/patterns/cqrs/index.d.ts +7 -4
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +8 -8
- package/dist/patterns/demo-shell/index.d.cts +6 -5
- package/dist/patterns/demo-shell/index.d.ts +6 -5
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +5 -5
- package/dist/patterns/domain-templates/index.d.cts +5 -4
- package/dist/patterns/domain-templates/index.d.ts +5 -4
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +20 -20
- package/dist/patterns/graphspec/index.d.cts +6 -5
- package/dist/patterns/graphspec/index.d.ts +6 -5
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +7 -7
- package/dist/patterns/guarded-execution/index.d.cts +8 -6
- package/dist/patterns/guarded-execution/index.d.ts +8 -6
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +12 -12
- package/dist/patterns/harness/index.d.cts +13 -10
- package/dist/patterns/harness/index.d.ts +13 -10
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +7 -7
- package/dist/patterns/job-queue/index.d.cts +8 -4
- package/dist/patterns/job-queue/index.d.ts +8 -4
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +4 -4
- package/dist/patterns/lens/index.d.cts +7 -6
- package/dist/patterns/lens/index.d.ts +7 -6
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +1 -1
- package/dist/patterns/memory/index.d.cts +5 -4
- package/dist/patterns/memory/index.d.ts +5 -4
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +7 -7
- package/dist/patterns/messaging/index.d.cts +6 -4
- package/dist/patterns/messaging/index.d.ts +6 -4
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +7 -7
- package/dist/patterns/orchestration/index.d.cts +8 -5
- package/dist/patterns/orchestration/index.d.ts +8 -5
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/process/index.cjs +1 -0
- package/dist/patterns/process/index.d.cts +10 -0
- package/dist/patterns/process/index.d.ts +10 -0
- package/dist/patterns/process/index.js +1 -0
- package/dist/patterns/reactive-layout/index.cjs +5 -5
- package/dist/patterns/reactive-layout/index.d.cts +6 -5
- package/dist/patterns/reactive-layout/index.d.ts +6 -5
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +1 -1
- package/dist/patterns/reduction/index.d.cts +5 -4
- package/dist/patterns/reduction/index.d.ts +5 -4
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.cjs +8 -8
- package/dist/patterns/refine-loop/index.d.cts +7 -5
- package/dist/patterns/refine-loop/index.d.ts +7 -5
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +7 -6
- package/dist/patterns/resilient-pipeline/index.d.ts +7 -6
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +11 -11
- package/dist/patterns/surface/index.d.cts +7 -6
- package/dist/patterns/surface/index.d.ts +7 -6
- package/dist/patterns/surface/index.js +1 -1
- package/dist/pipeline-graph-BlLBWSZ2.d.cts +120 -0
- package/dist/pipeline-graph-DdBoRu37.d.ts +120 -0
- package/dist/{reactive-layout-DBJ3Vz-m.d.ts → reactive-layout-Btv0-efV.d.ts} +2 -2
- package/dist/{reactive-layout-Dk9AOQb_.d.cts → reactive-layout-D9zqqaqK.d.cts} +2 -2
- package/dist/reactive-log-ScpWyqny.d.cts +196 -0
- package/dist/reactive-log-jirQsxMY.d.ts +196 -0
- package/dist/{reactive-map-LjwjcFaW.d.ts → reactive-map-CHyeCf4D.d.ts} +1 -1
- package/dist/{reactive-map-Cm89Hk0c.d.cts → reactive-map-DmgeADH8.d.cts} +1 -1
- package/dist/{resilience-RjDIHZNZ.d.ts → resilience-BWP2c7Af.d.cts} +27 -45
- package/dist/{resilience-N_VtLf7W.d.cts → resilience-Bys63Cpd.d.ts} +27 -45
- package/dist/resilience-OBU472D2.js +1 -0
- package/dist/{sugar-CQkn_rxB.d.ts → sugar-D13E2M_z.d.ts} +1 -1
- package/dist/{sugar-DVEYhR7a.d.cts → sugar-DgaGJcI6.d.cts} +1 -1
- package/dist/{topology-tree-BB6oJxMz.d.cts → topology-tree-C50l9ARE.d.cts} +1 -1
- package/dist/{topology-tree-CAFOG5S5.d.ts → topology-tree-CJsT24DP.d.ts} +1 -1
- package/dist/{types-Cp_4coR_.d.cts → types-BMSGPlpO.d.cts} +1 -1
- package/dist/{types-B2LfBvNc.d.ts → types-CidcBDuk.d.ts} +1 -1
- package/package.json +41 -1
- package/dist/chunk-2JO6LXFT.js +0 -7
- package/dist/chunk-2LZ6DL45.js +0 -1
- package/dist/chunk-3JXNEPCD.js +0 -2
- package/dist/chunk-3Y4BXFFR.js +0 -1
- package/dist/chunk-55T3K37W.js +0 -1
- package/dist/chunk-6HQ6HVTF.js +0 -1
- package/dist/chunk-7Q2WPFQ7.js +0 -1
- package/dist/chunk-FKRPIRE6.js +0 -1
- package/dist/chunk-HTBOCKVD.js +0 -1
- package/dist/chunk-I6VIH3VA.js +0 -1
- package/dist/chunk-IB64M7VP.js +0 -1
- package/dist/chunk-IJFSR4NU.js +0 -1
- package/dist/chunk-LOF5HSD3.js +0 -18
- package/dist/chunk-T2TB37TW.js +0 -1
- package/dist/chunk-T7EQPKOP.js +0 -1
- package/dist/chunk-Y63GWRHO.js +0 -5
- package/dist/chunk-YUBV7EEE.js +0 -1
- package/dist/index-C2Dey3L-.d.cts +0 -152
- package/dist/index-ClJUZAOr.d.cts +0 -101
- package/dist/index-Cq7Uqgu4.d.ts +0 -192
- package/dist/index-Dtpr2FIB.d.ts +0 -101
- package/dist/index-HvJ90_tX.d.ts +0 -152
- package/dist/index-wcfc7W-f.d.cts +0 -192
- package/dist/reactive-log-CWC7jO4J.d.cts +0 -190
- package/dist/reactive-log-CqaBg8nf.d.ts +0 -190
- package/dist/resilience-7UZHSSGC.js +0 -1
- /package/dist/{chunk-L3KUKDZC.js → chunk-O32GJOUJ.js} +0 -0
package/dist/extra/index.d.cts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as externalBundle, bk as externalProducer, bm as fromCSV, bn as fromClickHouseWatch, bo as fromDrizzle, bp as fromHTTP, bq as fromHTTPPoll, br as fromHTTPStream, bs as fromKafka, bt as fromKysely, bu as fromMCP, bv as fromNATS, bw as fromNDJSON, bx as fromOTel, by as fromPrisma, bz as fromPrometheus, bA as fromPulsar, bB as fromRabbitMQ, bC as fromRedisStream, bD as fromSSE, bE as fromSqlite, bF as fromSqliteCursor, bG as fromStatsD, bH as fromSyslog, bI as fromWebSocket, bJ as fromWebSocketReconnect, bK as fromWebhook, bL as lru, bM as makeHttpError, bN as matchesCron, bO as nameToSignal, bP as ndjsonRows, bQ as parseCron, bR as parsePrometheusText, bS as parseSSEStream, bT as parseStatsD, bU as parseSyslog, bV as pubsub, bW as reactiveSink, bX as serializeError, bY as signalToName, bZ as singleFromAny, b_ as singleNodeFromAny, b$ as stratify, c0 as toCSV, c1 as toClickHouse, c2 as toFile, c3 as toHTTP, c4 as toKafka, c5 as toLoki, c6 as toMongo, c7 as toNATS, c8 as toPostgres, c9 as toPulsar, ca as toRabbitMQ, cb as toReadableStream, cc as toRedisStream, cd as toS3, ce as toSSE, cf as toSSEBytes, cg as toSqlite, ch as toTempo, ci as toWebSocket, cj as workerBridge, ck as workerSelf } from '../index-
|
|
2
|
-
export { B as BackoffPreset, d as BackoffStrategy, e as CircuitBreaker, a as CircuitBreakerOptions, f as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, c as NS_PER_SEC, R as RateLimiterOptions, g as RateLimiterOverflowError, h as RateLimiterOverflowPolicy, b as RetryOptions,
|
|
3
|
-
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../composite-
|
|
4
|
-
export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-
|
|
5
|
-
export { T as ToObservableOptions, t as toObservable } from '../observable-
|
|
1
|
+
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as externalBundle, bk as externalProducer, bm as fromCSV, bn as fromClickHouseWatch, bo as fromDrizzle, bp as fromHTTP, bq as fromHTTPPoll, br as fromHTTPStream, bs as fromKafka, bt as fromKysely, bu as fromMCP, bv as fromNATS, bw as fromNDJSON, bx as fromOTel, by as fromPrisma, bz as fromPrometheus, bA as fromPulsar, bB as fromRabbitMQ, bC as fromRedisStream, bD as fromSSE, bE as fromSqlite, bF as fromSqliteCursor, bG as fromStatsD, bH as fromSyslog, bI as fromWebSocket, bJ as fromWebSocketReconnect, bK as fromWebhook, bL as lru, bM as makeHttpError, bN as matchesCron, bO as nameToSignal, bP as ndjsonRows, bQ as parseCron, bR as parsePrometheusText, bS as parseSSEStream, bT as parseStatsD, bU as parseSyslog, bV as pubsub, bW as reactiveSink, bX as serializeError, bY as signalToName, bZ as singleFromAny, b_ as singleNodeFromAny, b$ as stratify, c0 as toCSV, c1 as toClickHouse, c2 as toFile, c3 as toHTTP, c4 as toKafka, c5 as toLoki, c6 as toMongo, c7 as toNATS, c8 as toPostgres, c9 as toPulsar, ca as toRabbitMQ, cb as toReadableStream, cc as toRedisStream, cd as toS3, ce as toSSE, cf as toSSEBytes, cg as toSqlite, ch as toTempo, ci as toWebSocket, cj as workerBridge, ck as workerSelf } from '../index-RJIY7QVW.cjs';
|
|
2
|
+
export { B as BackoffPreset, d as BackoffStrategy, e as CircuitBreaker, a as CircuitBreakerOptions, f as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, c as NS_PER_SEC, R as RateLimiterOptions, g as RateLimiterOverflowError, h as RateLimiterOverflowPolicy, b 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 '../resilience-BWP2c7Af.cjs';
|
|
3
|
+
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../composite-_XckYx2e.cjs';
|
|
4
|
+
export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-4-ST1tYk.cjs';
|
|
5
|
+
export { T as ToObservableOptions, t as toObservable } from '../observable-Cqty11jG.cjs';
|
|
6
6
|
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.cjs';
|
|
7
7
|
export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.cjs';
|
|
8
|
-
export { L as LogBackend, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, r as reactiveLog } from '../reactive-log-
|
|
9
|
-
export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-
|
|
10
|
-
export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, 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.cjs';
|
|
11
|
-
export { StorageHandle,
|
|
12
|
-
|
|
13
|
-
import '../
|
|
14
|
-
import '../
|
|
8
|
+
export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-ScpWyqny.cjs';
|
|
9
|
+
export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-DmgeADH8.cjs';
|
|
10
|
+
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.cjs';
|
|
11
|
+
export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.cjs';
|
|
12
|
+
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.cjs';
|
|
13
|
+
import '../node-fSc-hCv8.cjs';
|
|
14
|
+
import '../graph-kTltt95s.cjs';
|
|
15
|
+
import '../meta-BGO6C7K9.cjs';
|
|
15
16
|
import 'rxjs';
|
package/dist/extra/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as externalBundle, bk as externalProducer, bm as fromCSV, bn as fromClickHouseWatch, bo as fromDrizzle, bp as fromHTTP, bq as fromHTTPPoll, br as fromHTTPStream, bs as fromKafka, bt as fromKysely, bu as fromMCP, bv as fromNATS, bw as fromNDJSON, bx as fromOTel, by as fromPrisma, bz as fromPrometheus, bA as fromPulsar, bB as fromRabbitMQ, bC as fromRedisStream, bD as fromSSE, bE as fromSqlite, bF as fromSqliteCursor, bG as fromStatsD, bH as fromSyslog, bI as fromWebSocket, bJ as fromWebSocketReconnect, bK as fromWebhook, bL as lru, bM as makeHttpError, bN as matchesCron, bO as nameToSignal, bP as ndjsonRows, bQ as parseCron, bR as parsePrometheusText, bS as parseSSEStream, bT as parseStatsD, bU as parseSyslog, bV as pubsub, bW as reactiveSink, bX as serializeError, bY as signalToName, bZ as singleFromAny, b_ as singleNodeFromAny, b$ as stratify, c0 as toCSV, c1 as toClickHouse, c2 as toFile, c3 as toHTTP, c4 as toKafka, c5 as toLoki, c6 as toMongo, c7 as toNATS, c8 as toPostgres, c9 as toPulsar, ca as toRabbitMQ, cb as toReadableStream, cc as toRedisStream, cd as toS3, ce as toSSE, cf as toSSEBytes, cg as toSqlite, ch as toTempo, ci as toWebSocket, cj as workerBridge, ck as workerSelf } from '../index-
|
|
2
|
-
export { B as BackoffPreset, d as BackoffStrategy, e as CircuitBreaker, a as CircuitBreakerOptions, f as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, c as NS_PER_SEC, R as RateLimiterOptions, g as RateLimiterOverflowError, h as RateLimiterOverflowPolicy, b as RetryOptions,
|
|
3
|
-
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../composite-
|
|
4
|
-
export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-
|
|
5
|
-
export { T as ToObservableOptions, t as toObservable } from '../observable-
|
|
1
|
+
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as externalBundle, bk as externalProducer, bm as fromCSV, bn as fromClickHouseWatch, bo as fromDrizzle, bp as fromHTTP, bq as fromHTTPPoll, br as fromHTTPStream, bs as fromKafka, bt as fromKysely, bu as fromMCP, bv as fromNATS, bw as fromNDJSON, bx as fromOTel, by as fromPrisma, bz as fromPrometheus, bA as fromPulsar, bB as fromRabbitMQ, bC as fromRedisStream, bD as fromSSE, bE as fromSqlite, bF as fromSqliteCursor, bG as fromStatsD, bH as fromSyslog, bI as fromWebSocket, bJ as fromWebSocketReconnect, bK as fromWebhook, bL as lru, bM as makeHttpError, bN as matchesCron, bO as nameToSignal, bP as ndjsonRows, bQ as parseCron, bR as parsePrometheusText, bS as parseSSEStream, bT as parseStatsD, bU as parseSyslog, bV as pubsub, bW as reactiveSink, bX as serializeError, bY as signalToName, bZ as singleFromAny, b_ as singleNodeFromAny, b$ as stratify, c0 as toCSV, c1 as toClickHouse, c2 as toFile, c3 as toHTTP, c4 as toKafka, c5 as toLoki, c6 as toMongo, c7 as toNATS, c8 as toPostgres, c9 as toPulsar, ca as toRabbitMQ, cb as toReadableStream, cc as toRedisStream, cd as toS3, ce as toSSE, cf as toSSEBytes, cg as toSqlite, ch as toTempo, ci as toWebSocket, cj as workerBridge, ck as workerSelf } from '../index-DtSVSKnd.js';
|
|
2
|
+
export { B as BackoffPreset, d as BackoffStrategy, e as CircuitBreaker, a as CircuitBreakerOptions, f as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, c as NS_PER_SEC, R as RateLimiterOptions, g as RateLimiterOverflowError, h as RateLimiterOverflowPolicy, b 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 '../resilience-Bys63Cpd.js';
|
|
3
|
+
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../composite-CT_mApQD.js';
|
|
4
|
+
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';
|
|
5
|
+
export { T as ToObservableOptions, t as toObservable } from '../observable-EAV_rNfM.js';
|
|
6
6
|
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';
|
|
7
7
|
export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.js';
|
|
8
|
-
export { L as LogBackend, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, r as reactiveLog } from '../reactive-log-
|
|
9
|
-
export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-
|
|
10
|
-
export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, 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';
|
|
11
|
-
export { StorageHandle,
|
|
12
|
-
|
|
13
|
-
import '../
|
|
14
|
-
import '../
|
|
8
|
+
export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-jirQsxMY.js';
|
|
9
|
+
export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-CHyeCf4D.js';
|
|
10
|
+
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';
|
|
11
|
+
export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.js';
|
|
12
|
+
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';
|
|
13
|
+
import '../node-fSc-hCv8.js';
|
|
14
|
+
import '../graph-Cv-8x0ZI.js';
|
|
15
|
+
import '../meta-CC6EPdpK.js';
|
|
15
16
|
import 'rxjs';
|
package/dist/extra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as Zb,b as _b,c as hc,d as ic,e as Dc,f as Ec,g as Fc,h as Gc,i as Hc,j as Ic,k as Jc}from"../chunk-DBPFMCVH.js";import{a as bc,b as cc}from"../chunk-5RTZ6DXG.js";import{$ as Xb,A as wb,B as xb,C as yb,D as zb,E as Ab,F as Bb,G as Cb,H as Db,I as Eb,J as Fb,K as Gb,L as Hb,M as Ib,N as Jb,O as Kb,P as Lb,Q as Mb,R as Nb,S as Ob,T as Pb,U as Qb,V as Rb,W as Sb,X as Tb,Y as Ub,Z as Vb,_ as Wb,a as ca,aa as Yb,b as da,ba as gc,c as _a,d as $a,e as ab,f as bb,g as cb,h as db,i as eb,j as fb,k as gb,l as hb,m as ib,n as jb,o as kb,p as lb,q as mb,r as nb,s as ob,t as pb,u as qb,v as rb,w as sb,x as tb,y as ub,z as vb}from"../chunk-MYFR67PY.js";import{a as n,b as o,c as p,d as q,e as r,f as s,g as t,h as u,i as v,j as w,k as x}from"../chunk-A5HZZYRK.js";import{b as dc,c as ec,d as fc,e as nc,f as oc}from"../chunk-Q7EUZ6NN.js";import{a as Cc}from"../chunk-JUJEPZOI.js";import{a as jc,b as kc}from"../chunk-NNKJUORL.js";import{a as lc,b as mc}from"../chunk-KGKJCHEK.js";import{a as $b,b as ac}from"../chunk-TZQPPQEQ.js";import{a,b as _}from"../chunk-5QDBSZBV.js";import{a as $,b as aa,c as ba}from"../chunk-KUVDFOJH.js";import"../chunk-5KPIYVCC.js";import"../chunk-SGS4OJGS.js";import{a as m}from"../chunk-ESMPEKEV.js";import"../chunk-533RQFF6.js";import{a as rc,b as sc,c as tc,d as uc,e as vc,f as wc,g as xc,h as yc,i as zc,j as Ac,k as Bc}from"../chunk-D5RFJOZ2.js";import{a as pc,b as qc}from"../chunk-CE72X3WO.js";import{A as Ea,B as Fa,C as Ga,D as Ha,E as Ia,F as Ja,G as Ka,I as La,J as Ma,K as Na,L as Oa,M as Pa,N as Qa,O as Ra,P as Sa,Q as Ta,R as Ua,S as Va,T as Wa,U as Xa,V as Ya,W as Za,a as ea,b as fa,c as ga,d as ha,e as ia,f as ja,g as ka,h as la,i as ma,j as na,k as oa,l as pa,m as qa,n as ra,o as sa,p as ta,q as ua,r as va,s as wa,t as xa,u as ya,v as za,w as Aa,x as Ba,y as Ca,z as Da}from"../chunk-JJTF75VS.js";import{a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l}from"../chunk-4VVTGLXJ.js";import{A as W,B as X,C as Y,D as Z,a as b,b as c,c as y,d as z,e as A,f as B,g as C,h as D,i as E,j as F,k as G,l as H,m as I,n as J,o as K,p as L,q as M,r as N,s as O,t as P,u as Q,v as R,w as S,x as T,y as U,z as V}from"../chunk-MQZWA3DF.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{o as CircuitOpenError,dc as ContentAddressedMissError,d as NS_PER_MS,e as NS_PER_SEC,jc as NativeIndexBackend,lc as NativeListBackend,$ as NativeLogBackend,$b as NativeMapBackend,hc as NativePubSubBackend,s as RateLimiterOverflowError,m as ResettableTimer,v as TimeoutError,vc as appendLogStorage,Ka as audit,V as awaitSettled,La as buffer,Ma as bufferCount,Oa as bufferTime,S as cached,ec as canonicalJson,_b as cascadingCache,Za as catchError,Sb as checkpointToRedis,Rb as checkpointToS3,p as circuitBreaker,va as combine,Wa as combineLatest,za as concat,Da as concatMap,f as constant,fc as contentAddressedStorage,Hc as createTransport,_ as createWatermarkController,zb as csvRows,Ha as debounce,Xa as debounceTime,j as decorrelatedJitter,N as defer,Ga as delay,Gc as deserializeError,Ac as dictKv,Bc as dictSnapshot,cc as distill,ta as distinctUntilChanged,pa as elementAt,K as empty,y as escapeRegexChar,Ca as exhaustMap,h as exponential,da as externalBundle,ca as externalProducer,w as fallback,i as fibonacci,fa as filter,oa as find,ma as first,T as firstValueFrom,U as firstWhere,Fa as flatMap,O as forEach,I as fromAny,H as fromAsyncIter,yb as fromCSV,Cb as fromClickHouseWatch,D as fromCron,Xb as fromDrizzle,E as fromEvent,bb as fromHTTP,jb as fromHTTPPoll,ib as fromHTTPStream,F as fromIter,ub as fromKafka,Yb as fromKysely,mb as fromMCP,Fb as fromNATS,Bb as fromNDJSON,nb as fromOTel,Wb as fromPrisma,sb as fromPrometheus,G as fromPromise,Db as fromPulsar,Hb as fromRabbitMQ,C as fromRaf,wb as fromRedisStream,hb as fromSSE,Tb as fromSqlite,Ub as fromSqliteCursor,qb as fromStatsD,ob as fromSyslog,B as fromTimer,$a as fromWebSocket,lb as fromWebSocketReconnect,ab as fromWebhook,z as globToRegExp,Ra as interval,rc as jsonCodec,sc as jsonCodecFor,Y as keepalive,wc as kvStorage,na as last,g as linear,Zb as lru,gc as makeHttpError,ea as map,A as matchesAnyPattern,c as matchesCron,yc as memoryAppendLog,tc as memoryBackend,zc as memoryKv,xc as memorySnapshot,xa as merge,Ea as mergeMap,ba as mergeReactiveLogs,Ec as nameToSignal,Ab as ndjsonRows,L as never,W as nodeSignal,J as of,ra as onFirstData,ua as pairwise,b as parseCron,tb as parsePrometheusText,gb as parseSSEStream,rb as parseStatsD,pb as parseSyslog,Ta as pausable,ic as pubsub,Aa as race,t as rateLimiter,Z as reactiveCounter,kc as reactiveIndex,mc as reactiveList,aa as reactiveLog,ac as reactiveMap,_a as reactiveSink,ha as reduce,Sa as repeat,R as replay,Ua as rescue,l as resolveBackoffPreset,n as retry,Ja as sample,ga as scan,Fc as serializeError,Q as share,X as shareReplay,Dc as signalToName,nc as singleFromAny,oc as singleNodeFromAny,ja as skip,uc as snapshotStorage,pc as sortJsonValue,qc as stableJsonString,Cc as stratify,Ba as switchMap,ia as take,la as takeUntil,ka as takeWhile,qa as tap,sa as tapFirst,Ia as throttle,Ya as throttleTime,M as throwError,x as timeout,P as toArray,Kb as toCSV,Lb as toClickHouse,Jb as toFile,cb as toHTTP,vb as toKafka,Pb as toLoki,Ob as toMongo,Gb as toNATS,a as toObservable,Nb as toPostgres,Eb as toPulsar,Ib as toRabbitMQ,fb as toReadableStream,xb as toRedisStream,Mb as toS3,db as toSSE,eb as toSSEBytes,Vb as toSqlite,Qb as toTempo,kb as toWebSocket,r as tokenBucket,Va as valve,bc as verifiable,Qa as window,Na as windowCount,Pa as windowTime,q as withBreaker,wa as withLatestFrom,k as withMaxAttempts,u as withStatus,Ic as workerBridge,Jc as workerSelf,ya as zip};
|
package/dist/extra/node.cjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
"use strict";var le=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var it=Object.prototype.hasOwnProperty;var A=(n,e)=>()=>(n&&(e=n(n=0)),e);var at=(n,e)=>{for(var t in e)le(n,t,{get:e[t],enumerable:!0})},dt=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of st(e))!it.call(n,o)&&o!==t&&le(n,o,{get:()=>e[o],enumerable:!(r=ot(e,o))||r.enumerable});return n};var ut=n=>dt(le({},"__esModule",{value:!0}),n);function $(){return Date.now()*1e6}var Z=A(()=>{"use strict"});var H,w,R,S,V,U,X,L,y,h,z,ce,lt,fe,ct,ft,pe,ke,Oe,Ae,he,W=A(()=>{"use strict";H=Symbol.for("graphrefly/START"),w=Symbol.for("graphrefly/DATA"),R=Symbol.for("graphrefly/DIRTY"),S=Symbol.for("graphrefly/RESOLVED"),V=Symbol.for("graphrefly/INVALIDATE"),U=Symbol.for("graphrefly/PAUSE"),X=Symbol.for("graphrefly/RESUME"),L=Symbol.for("graphrefly/TEARDOWN"),y=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),z=Object.freeze([R]),ce=Object.freeze([S]),lt=Object.freeze([V]),fe=Object.freeze([H]),ct=Object.freeze([y]),ft=Object.freeze([L]),pe=Object.freeze([z]),ke=Object.freeze([ce]),Oe=Object.freeze([lt]),Ae=Object.freeze([ct]),he=Object.freeze([ft])});function Re(n){n.registerCodec(pt)}var pt,Se=A(()=>{"use strict";pt={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 Q(n){if(n==null)return ht;let{type:e,id:t,...r}=n;return{type:e??"system",id:t??"",...r}}var ht,Me=A(()=>{"use strict";ht={type:"system",id:""}});function Ie(){return me>0||mt}function Le(){return me>0}function Pe(n){me>0?gt.push(n):n()}function ee(n,e,t){if(e.length===0)return;if(e.length===1){let u=t(e[0][0]);if(u<3||!Ie()){n(e);return}(u>=5?Fe:u===4?Ce:De).push(()=>n(e));return}let r=e.length,o=r,i=r,a=r,s=0;for(;s<r&&t(e[s][0])<3;)s++;for(o=s;s<r&&t(e[s][0])===3;)s++;for(i=s;s<r&&t(e[s][0])===4;)s++;a=s;let d=Ie();if(o>0){let u=e.slice(0,o);n(u)}if(i>o){let u=e.slice(o,i);d?De.push(()=>n(u)):n(u)}if(a>i){let u=e.slice(i,a);d?Ce.push(()=>n(u)):n(u)}if(r>a){let u=e.slice(a,r);d?Fe.push(()=>n(u)):n(u)}}var me,mt,De,Ce,Fe,gt,Ge=A(()=>{"use strict";me=0,mt=!1,De=[],Ce=[],Fe=[],gt=[]});function He(n){n.registerMessageType(H,{tier:0,wireCrossing:!1}),n.registerMessageType(R,{tier:1,wireCrossing:!1}),n.registerMessageType(V,{tier:1,wireCrossing:!1,metaPassthrough:!1}),n.registerMessageType(U,{tier:2,wireCrossing:!1}),n.registerMessageType(X,{tier:2,wireCrossing:!1}),n.registerMessageType(w,{tier:3,wireCrossing:!0}),n.registerMessageType(S,{tier:3,wireCrossing:!0}),n.registerMessageType(y,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(L,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var te,Ve=A(()=>{"use strict";W();te=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 q,Ue=A(()=>{"use strict";q=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 ge(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(ge);if(typeof n=="object"&&n!==null){let e={};for(let t of Object.keys(n).sort())e[t]=ge(n[t]);return e}return null}function yt(n){let e=bt.encode(n),t=e.length,r=t*8,o=t+9+63&-64,i=new Uint8Array(o);i.set(e),i[t]=128;let a=new DataView(i.buffer);a.setUint32(o-4,r>>>0,!1),a.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let s=1779033703,d=3144134277,u=1013904242,l=2773480762,c=1359893119,p=2600822924,f=528734635,m=1541459225,N=new Uint32Array(64),_=(g,x)=>g>>>x|g<<32-x;for(let g=0;g<o;g+=64){for(let T=0;T<16;T++)N[T]=a.getUint32(g+T*4,!1);for(let T=16;T<64;T++){let C=N[T-15],j=N[T-2],J=_(C,7)^_(C,18)^C>>>3,G=_(j,17)^_(j,19)^j>>>10;N[T]=N[T-16]+J+N[T-7]+G>>>0}let x=s,b=d,O=u,M=l,k=c,I=p,Y=f,D=m;for(let T=0;T<64;T++){let C=_(k,6)^_(k,11)^_(k,25),j=k&I^~k&Y,J=D+C+j+Tt[T]+N[T]>>>0,G=_(x,2)^_(x,13)^_(x,22),ue=x&b^x&O^b&O,rt=G+ue>>>0;D=Y,Y=I,I=k,k=M+J>>>0,M=O,O=b,b=x,x=J+rt>>>0}s=s+x>>>0,d=d+b>>>0,u=u+O>>>0,l=l+M>>>0,c=c+k>>>0,p=p+I>>>0,f=f+Y>>>0,m=m+D>>>0}let v=g=>g.toString(16).padStart(8,"0");return v(s)+v(d)+v(u)+v(l)+v(c)+v(p)+v(f)+v(m)}function Te(n){let e=ge(n??null),t=JSON.stringify(e);return yt(t).slice(0,16)}function _t(){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 be(n,e,t){let r=t?.id??_t();if(n===0)return{id:r,version:0};let i=(t?.hash??Te)(e);return{id:r,version:0,cid:i,prev:null}}function We(n,e,t){n.version+=1,"cid"in n&&(n.prev=n.cid,n.cid=t(e))}var Tt,bt,Be=A(()=>{"use strict";Tt=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]),bt=new TextEncoder});function ze(n){return{node:n,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function ye(n){n.prevData=void 0,n.dirty=!1,n.involvedThisWave=!1,n.dataBatch.length=0,n.terminal=void 0}function ne(n){return n.length===0?n:typeof n[0]=="symbol"?[n]:n}function oe(n,e,t){let r=qe(n)?n:[],o=typeof n=="function"?n:typeof e=="function"?e:void 0,i={};return qe(n)?i=(_e(e)?e:t)??{}:_e(n)?i=n:i=(_e(e)?e:t)??{},new re(r,o,i)}var je,$e,vt,wt,ve,re,qe,_e,we=A(()=>{"use strict";Se();Me();Ge();Z();Ve();Ue();W();Be();je=()=>{},$e=100;vt=(n,e,t,r)=>{t.direction==="down-in"&&n._onDepMessage(t.depIndex,e)},wt=(n,e,t,r)=>{let o=n;if(o._status==="completed"||o._status==="errored")return;let i=o._cached,a=i===void 0?[fe]:[fe,[w,i]];o._status==="dirty"&&a.push(z),ee(e,a,o._config.tierOf)},ve=new te({onMessage:vt,onSubscribe:wt});He(ve);Re(ve);re=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??ve,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??Te;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?be(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(ze);let i={};for(let[s,d]of Object.entries(r.meta??{})){let u={initial:d,name:`${r.name??"node"}:meta:${s}`,describeKind:"state",config:this._config};r.guard!=null&&(u.guard=r.guard),i[s]=new n([],void 0,u)}Object.freeze(i),this.meta=i,this._hasMeta=Object.keys(i).length>0;let a=this;this._actions={emit(s){a._emit([[w,s]])},down(s){a._emit(ne(s))},up(s){a._emitUp(ne(s))}},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 i=this._cached===void 0?void 0:this._cached,a=this._versioning,s=a?.id??t?.id,d=a?.version??0,u=be(e,i,{id:s,hash:o});u.version=d,this._versioning=u,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=Q(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=Q(e?.actor),i=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,i))throw new q({actor:o,action:i,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(o,i))throw new q({actor:o,action:i,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:$()}}down(e,t){let r=ne(e);r.length!==0&&(this._checkGuard(t),this._emit(r))}emit(e,t){this._checkGuard(t),this._emit([[w,e]])}up(e,t){if(this._deps.length===0)return;let r=ne(e);if(r.length===0)return;this._checkGuard(t);let o=t??{internal:!0};this._validateUpTiers(r);for(let i of this._deps)i.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 d=Q(t);if(!this._guard(d,"observe"))throw new q({actor:d,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 d of this._deps)ye(d);if(this._partial===!1){for(let d of this._deps)if(d.prevData!==void 0||d.dataBatch.length!==0||d.terminal!==void 0||d.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let i;try{i=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:o},this._actions)}catch(d){throw this._sinkCount-=1,d}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(d){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof i=="function")try{i()}catch{}throw d}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let s=!1;return()=>{s||(s=!0,this._sinkCount-=1,this._removeSink(e),typeof i=="function"&&i(),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,i=this._deps[r];i.unsub=je,i.unsub=i.node.subscribe(a=>{if(i.unsub===null)return;let s=this._config.tierOf,d=!1;for(let u of a)s(u[0])>=3&&(d=!0),this._config.onMessage(this,u,{direction:"down-in",depIndex:o},this._actions);d&&this._maybeRunFnOnSettlement()}),t++}}catch(r){this._deps[t].unsub=null;for(let o=0;o<t;o++){let i=this._deps[o];if(i.unsub!=null){let a=i.unsub;i.unsub=null;try{a()}catch{}ye(i)}}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(pe),r.unsub=je;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let i=this._config.tierOf,a=!1;for(let s of o)i(s[0])>=3&&(a=!0),this._config.onMessage(this,s,{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([[h,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([[h,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{}}ye(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 i={kind:"dep_message",depIndex:e,message:t};for(let a of this._inspectorHooks)a(i)}if(o!==H){if(o===R){this._depDirtied(r);return}if(o===V){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(Oe);return}if(o===U||o===X){this._emit([t]);return}if(o===L){this._emit(he);return}if(o===w)this._depSettledAsData(r,t[1]);else if(o===S)this._depSettledAsResolved(r);else if(o===y)this._depSettledAsTerminal(r,!0);else if(o===h)this._depSettledAsTerminal(r,t[1]);else{this._emit([t]);return}if(!this._fn){(o===w||o===S)&&this._emit([t]),(o===y||o===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(pe))}_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(ke),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([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(t=>t.terminal!==void 0)&&this._emit(Ae)}_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([[h,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(s){this._emit([[h,this._wrapFnError("cleanup.beforeRun threw",s)]]);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 s=t[a];s!=null&&s.length>0&&(this._deps[a].prevData=s[s.length-1])}let o=this._deps.map(a=>a.terminal),i={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 s of this._inspectorHooks)s(a)}this._isExecutingFn=!0;try{let a=this._fn(t,this._actions,i);if(typeof a=="function")this._cleanup=a;else if(a!=null&&typeof a=="object"){let s=a;(typeof s.beforeRun=="function"||typeof s.deactivate=="function"||typeof s.invalidate=="function")&&(this._cleanup=a)}}catch(a){this._emit([[h,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>$e?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${$e} \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"?[z,e[0]]:e;let r=!0,o=!1,i=!1,a=-1;for(let d of e){let u=t(d[0]);u<a&&(r=!1),u===3&&(o=!0),d[0]===R&&(i=!0),a=u}let s=e;if(!r){let d=e.map((u,l)=>({m:u,i:l,tier:t(u[0])}));d.sort((u,l)=>u.tier-l.tier||u.i-l.i),s=d.map(u=>u.m)}if(o&&!i&&this._status!=="dirty"){let d=0;for(;d<s.length&&t(s[d][0])===0;)d++;return d===0?[z,...s]:[...s.slice(0,d),z,...s.slice(d)]}return s}_emit(e){if(e.length===0)return;for(let s=0;s<e.length;s++){let d=e[s];if(d[0]===h&&d[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 s=e.filter(d=>d[0]===L||d[0]===V);if(s.length===0)return;t=s}t=this._frameBatch(t);let o=null;for(let s=0;s<t.length;s++){let d=t[s],u=d[0];if(u!==U&&u!==X){o?.push(d);continue}if(d.length<2)throw new Error(`Node "${this.name}": [[${u===U?"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=d[1];if(u===U)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(d):o==null&&(o=t.slice(0,s))}if(o!=null){if(o.length===0)return;t=o}if(this._hasMeta&&t.some(s=>s[0]===L))for(let s of Object.keys(this.meta))try{this.meta[s]._emit(he)}catch{}let{finalMessages:i,equalsError:a}=this._updateState(t);if(i.length>0&&this._config.inspectorEnabled){let s=this._config.globalInspector;if(s!=null)try{s({kind:"emit",node:this,messages:i})}catch{}}if(i.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let s=this._config.tierOf,d=[];for(let u of i)s(u[0])===3?this._pauseBuffer.push(u):d.push(u);d.length>0&&this._dispatchOrAccumulate(d)}else this._dispatchOrAccumulate(i);a!=null&&this._emit([[h,a]])}_updateState(e){let t=this._config.tierOf,r,o,i=-1,a=0;for(let l of e)t(l[0])===3&&a++;let s=a<=1,d=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===w){d=l;break}}for(let l=0;l<e.length;l++){let c=e[l],p=c[0];if(p===w){if(c.length>=2){let f=!1;if(s&&this._cached!==void 0)try{f=this._equals(this._cached,c[1])}catch(m){o=this._wrapFnError("equals threw",m),i=l;break}if(f){r==null&&(r=e.slice(0,l)),r.push(ce),this._status="resolved";continue}this._cached=c[1],this._versioning!=null&&(d<0||l===d)&&We(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===S)this._status="resolved";else if(p===y){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===h){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 m=this._config.rigorRecorder;if(m!=null)try{m.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 m=f.invalidate;if(typeof m=="function")try{m()}catch{}}}else p===L&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let u=i>=0?r??e.slice(0,i):r??e;return o!=null?{finalMessages:u,equalsError:o}:{finalMessages:u}}_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(Le()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Pe(()=>this._flushBatchPending()));for(let t of e)this._batchPendingMessages.push(t);return}ee(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);ee(this._deliverToSinks,t,this._config.tierOf)}},qe=n=>Array.isArray(n),_e=n=>typeof n=="object"&&n!=null&&!Array.isArray(n)});function F(n,e){return oe((r,o,i)=>n(o,i)??void 0,{describeKind:"producer",...e})}var se=A(()=>{"use strict";we()});function ie(n){return{describeKind:"producer",...n}}function Nt(n){return/[\\^$+?.()|[\]{}]/.test(n)?`\\${n}`:n}function K(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+=Nt(r)}return e+="$",new RegExp(e)}function P(n,e){for(let t of e)if(t.test(n))return!0;return!1}function Ke(n,e){let{signal:t,period:r,...o}=e??{};return F(i=>{let a=!1,s=0,d,u,l=()=>{a=!0,d!==void 0&&clearTimeout(d),u!==void 0&&clearInterval(u),t?.removeEventListener("abort",p)},c=()=>{a||(r!=null?(i.emit(s++),u=setInterval(()=>{a||i.emit(s++)},r)):(a=!0,t?.removeEventListener("abort",p),i.emit(s++),i.down([[y]])))},p=()=>{a||(l(),i.down([[h,t.reason]]))};if(t?.aborted){p();return}return d=setTimeout(c,n),t?.addEventListener("abort",p,{once:!0}),l},ie(o))}function Ye(n,e){return F(t=>{let r=!1;try{for(let o of n){if(r)return;t.emit(o)}r||t.down([[y]])}catch(o){r||t.down([[h,o]])}return()=>{r=!0}},ie(e))}function xt(n){return n!=null&&typeof n.then=="function"}function Et(n,e){let{signal:t,...r}=e??{};return F(o=>{let i=!1,a=()=>{i||(i=!0,o.down([[h,t.reason]]))};if(t?.aborted){a();return}return t?.addEventListener("abort",a,{once:!0}),Promise.resolve(n).then(s=>{i||(i=!0,t?.removeEventListener("abort",a),o.emit(s),o.down([[y]]))},s=>{i||(i=!0,t?.removeEventListener("abort",a),o.down([[h,s]]))}),()=>{i=!0,t?.removeEventListener("abort",a)}},ie(r))}function kt(n,e){let{signal:t,...r}=e??{};return F(o=>{let i=new AbortController,a=()=>i.abort(t?.reason);t?.aborted?i.abort(t.reason):t?.addEventListener("abort",a,{once:!0});let s=t??i.signal,d=!1,u=n[Symbol.asyncIterator](),l=()=>{d||s.aborted||Promise.resolve(u.next()).then(c=>{if(!(d||s.aborted)){if(c.done){o.down([[y]]);return}o.emit(c.value),l()}},c=>{!d&&!s.aborted&&o.down([[h,c]])})};return l(),()=>{d=!0,t?.removeEventListener("abort",a),i.abort(),Promise.resolve(u.return?.()).catch(()=>{})}},ie(r))}function Ot(n){return n!=null&&typeof n=="object"&&"cache"in n&&typeof n.subscribe=="function"}function Je(n,e){if(Ot(n))return n;if(xt(n))return Et(n,e);if(n!=null){let t=n;if(typeof t[Symbol.asyncIterator]=="function")return kt(n,e);if(typeof t[Symbol.iterator]=="function")return Ye(n,e)}return At(n)}function At(...n){return Ye(n,void 0)}var ae=A(()=>{"use strict";W();se()});var Ct={};at(Ct,{fileStorage:()=>tt,fromFSWatch:()=>Dt,fromGitHook:()=>Ze,sqliteStorage:()=>nt});module.exports=ut(Ct);Z();W();se();W();we();ae();function Rt(n){return{describeKind:"derived",...n}}function St(n,e,t){let r,o=!1,i=()=>{o||(o=!0,t())};return r=n.subscribe(a=>{let s=!1,d=!1;for(let u of a)u[0]!==H&&(u[0]===w?e.emit(u[1]):u[0]===y?s=!0:u[0]===h?(d=!0,e.down([u])):(u[0]===R||u[0]===S)&&e.down([u]));d?(r?.(),r=void 0,i()):s&&i()}),()=>{r?.(),r=void 0}}function Xe(n,e,t){let r,o=!1;function i(){r?.(),r=void 0}return oe([n],(a,s,d)=>{if(d.terminalDeps[0]!=null&&d.terminalDeps[0]!==!0){i();return}if(d.terminalDeps[0]===!0){o=!0,r||s.down([[y]]);return}let u=a[0];if(!(u==null||u.length===0))return i(),r=St(Je(e(u[u.length-1])),s,()=>{i(),o&&s.down([[y]])}),{deactivate:()=>{i(),o=!1}}},{...Rt(t),completeWhenDepsComplete:!1})}ae();function Ze(n,e){let{pollMs:t=5e3,include:r,exclude:o,maxConsecutiveErrors:i=1}=e??{},a=r?.map(K)??[],s=o?.map(K)??[],{execFileSync:d}=require("node:child_process"),u=p=>d("git",p,{cwd:n,encoding:"utf-8"}).trim(),l,c=0;return Xe(Ke(0,{period:t}),()=>F(p=>{try{let f=u(["rev-parse","HEAD"]);if(!f)return c=0,()=>{};if(l===void 0)return l=f,c=0,()=>{};if(f===l)return c=0,()=>{};let m=u(["diff","--name-only",`${l}..${f}`]).split(`
|
|
2
|
-
`).filter(Boolean);
|
|
3
|
-
`,u=(0,B.basename)(s),l=(0,B.dirname)(s),c=(0,B.join)(l,`.${u}.${(0,Qe.randomBytes)(8).toString("hex")}.tmp`);try{(0,E.writeFileSync)(c,d,"utf8"),(0,E.renameSync)(c,s)}catch(p){try{(0,E.unlinkSync)(c)}catch{}throw p}},load(i){try{let a=(0,E.readFileSync)(r(i),"utf8").trim();return a?JSON.parse(a):null}catch{return null}},clear(i){try{(0,E.unlinkSync)(r(i))}catch(a){if(a.code!=="ENOENT")throw a}},list(){try{let i=(0,E.readdirSync)(n),a=[];for(let s of i){if(s.startsWith("."))continue;let d=o(s);d!==null&&a.push(d)}return a.sort()}catch(i){if(i.code==="ENOENT")return[];throw i}}}}function nt(n){let e=new et.DatabaseSync(n);return e.exec("CREATE TABLE IF NOT EXISTS graphrefly_checkpoint (k TEXT PRIMARY KEY, v TEXT NOT NULL)"),{save(t,r){let o=Ee(r);e.prepare("INSERT OR REPLACE INTO graphrefly_checkpoint (k, v) VALUES (?, ?)").run(t,o)},load(t){let r=e.prepare("SELECT v FROM graphrefly_checkpoint WHERE k = ?").get(t);return r===void 0||typeof r.v!="string"||r.v.trim()===""?null:JSON.parse(r.v)},clear(t){e.prepare("DELETE FROM graphrefly_checkpoint WHERE k = ?").run(t)},list(){return e.prepare("SELECT k FROM graphrefly_checkpoint ORDER BY k").all().map(r=>r.k)},close(){try{e.close()}catch{}}}}0&&(module.exports={fileStorage,fromFSWatch,fromGitHook,sqliteStorage});
|
|
1
|
+
"use strict";var fe=Object.defineProperty;var mn=Object.getOwnPropertyDescriptor;var gn=Object.getOwnPropertyNames;var Tn=Object.prototype.hasOwnProperty;var S=(t,e)=>()=>(t&&(e=t(t=0)),e);var bn=(t,e)=>{for(var n in e)fe(t,n,{get:e[n],enumerable:!0})},yn=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of gn(e))!Tn.call(t,o)&&o!==n&&fe(t,o,{get:()=>e[o],enumerable:!(r=mn(e,o))||r.enumerable});return t};var vn=t=>yn(fe({},"__esModule",{value:!0}),t);function $(){return Date.now()*1e6}var ee=S(()=>{"use strict"});var P,x,A,R,H,V,X,L,N,g,K,pe,_n,he,wn,Nn,me,Me,Ce,De,ge,B=S(()=>{"use strict";P=Symbol.for("graphrefly/START"),x=Symbol.for("graphrefly/DATA"),A=Symbol.for("graphrefly/DIRTY"),R=Symbol.for("graphrefly/RESOLVED"),H=Symbol.for("graphrefly/INVALIDATE"),V=Symbol.for("graphrefly/PAUSE"),X=Symbol.for("graphrefly/RESUME"),L=Symbol.for("graphrefly/TEARDOWN"),N=Symbol.for("graphrefly/COMPLETE"),g=Symbol.for("graphrefly/ERROR"),K=Object.freeze([A]),pe=Object.freeze([R]),_n=Object.freeze([H]),he=Object.freeze([P]),wn=Object.freeze([N]),Nn=Object.freeze([L]),me=Object.freeze([K]),Me=Object.freeze([pe]),Ce=Object.freeze([_n]),De=Object.freeze([wn]),ge=Object.freeze([Nn])});function Fe(t){t.registerCodec(xn)}var xn,Ie=S(()=>{"use strict";xn={name:"json",version:1,contentType:"application/json",encode(t){let e=JSON.stringify(t);return new TextEncoder().encode(e)},decode(t,e){let n=new TextDecoder().decode(t);return JSON.parse(n)}}});function ne(t){if(t==null)return En;let{type:e,id:n,...r}=t;return{type:e??"system",id:n??"",...r}}var En,Pe=S(()=>{"use strict";En={type:"system",id:""}});function He(){return Te>0||kn}function Ve(){return Te>0}function Be(t){Te>0?On.push(t):t()}function te(t,e,n){if(e.length===0)return;if(e.length===1){let d=n(e[0][0]);if(d<3||!He()){t(e);return}(d>=5?Ue:d===4?Ge:Le).push(()=>t(e));return}let r=e.length,o=r,s=r,i=r,a=0;for(;a<r&&n(e[a][0])<3;)a++;for(o=a;a<r&&n(e[a][0])===3;)a++;for(s=a;a<r&&n(e[a][0])===4;)a++;i=a;let u=He();if(o>0){let d=e.slice(0,o);t(d)}if(s>o){let d=e.slice(o,s);u?Le.push(()=>t(d)):t(d)}if(i>s){let d=e.slice(s,i);u?Ge.push(()=>t(d)):t(d)}if(r>i){let d=e.slice(i,r);u?Ue.push(()=>t(d)):t(d)}}var Te,kn,Le,Ge,Ue,On,We=S(()=>{"use strict";Te=0,kn=!1,Le=[],Ge=[],Ue=[],On=[]});function je(t){t.registerMessageType(P,{tier:0,wireCrossing:!1}),t.registerMessageType(A,{tier:1,wireCrossing:!1}),t.registerMessageType(H,{tier:1,wireCrossing:!1,metaPassthrough:!1}),t.registerMessageType(V,{tier:2,wireCrossing:!1}),t.registerMessageType(X,{tier:2,wireCrossing:!1}),t.registerMessageType(x,{tier:3,wireCrossing:!0}),t.registerMessageType(R,{tier:3,wireCrossing:!0}),t.registerMessageType(N,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(g,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(L,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var re,$e=S(()=>{"use strict";B();re=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=n=>{let r=this._messageTypes.get(n);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,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.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,Ke=S(()=>{"use strict";z=class extends Error{actor;action;nodeName;constructor(e,n){super(n??`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(t){if(t===void 0)return null;if(typeof t=="number"){if(!Number.isFinite(t))throw new TypeError(`Cannot hash non-finite number: ${t}`);if(Number.isInteger(t)&&!Number.isSafeInteger(t))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${t}. Cross-language cid parity is not guaranteed for unsafe integers.`);return t}if(typeof t=="string"||typeof t=="boolean"||t===null)return t;if(Array.isArray(t))return t.map(be);if(typeof t=="object"&&t!==null){let e={};for(let n of Object.keys(t).sort())e[n]=be(t[n]);return e}return null}function Rn(t){let e=An.encode(t),n=e.length,r=n*8,o=n+9+63&-64,s=new Uint8Array(o);s.set(e),s[n]=128;let i=new DataView(s.buffer);i.setUint32(o-4,r>>>0,!1),i.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let a=1779033703,u=3144134277,d=1013904242,c=2773480762,l=1359893119,p=2600822924,f=528734635,h=1541459225,T=new Uint32Array(64),y=(m,w)=>m>>>w|m<<32-w;for(let m=0;m<o;m+=64){for(let _=0;_<16;_++)T[_]=i.getUint32(m+_*4,!1);for(let _=16;_<64;_++){let D=T[_-15],j=T[_-2],J=y(D,7)^y(D,18)^D>>>3,U=y(j,17)^y(j,19)^j>>>10;T[_]=T[_-16]+J+T[_-7]+U>>>0}let w=a,v=u,E=d,M=c,O=l,I=p,Y=f,C=h;for(let _=0;_<64;_++){let D=y(O,6)^y(O,11)^y(O,25),j=O&I^~O&Y,J=C+D+j+Sn[_]+T[_]>>>0,U=y(w,2)^y(w,13)^y(w,22),le=w&v^w&E^v&E,hn=U+le>>>0;C=Y,Y=I,I=O,O=M+J>>>0,M=E,E=v,v=w,w=J+hn>>>0}a=a+w>>>0,u=u+v>>>0,d=d+E>>>0,c=c+M>>>0,l=l+O>>>0,p=p+I>>>0,f=f+Y>>>0,h=h+C>>>0}let b=m=>m.toString(16).padStart(8,"0");return b(a)+b(u)+b(d)+b(c)+b(l)+b(p)+b(f)+b(h)}function ye(t){let e=be(t??null),n=JSON.stringify(e);return Rn(n).slice(0,16)}function Mn(){let t=globalThis.crypto;if(t?.randomUUID)return t.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),n=e()+e()+e()+e();return`${n.slice(0,8)}-${n.slice(8,12)}-4${n.slice(13,16)}-${(parseInt(n.slice(16,17),16)&3|8).toString(16)}${n.slice(17,20)}-${n.slice(20,32)}`}function ve(t,e,n){let r=n?.id??Mn();if(t===0)return{id:r,version:0};let s=(n?.hash??ye)(e);return{id:r,version:0,cid:s,prev:null}}function ze(t,e,n){t.version+=1,"cid"in t&&(t.prev=t.cid,t.cid=n(e))}var Sn,An,qe=S(()=>{"use strict";Sn=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]),An=new TextEncoder});function Xe(t){return{node:t,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function _e(t){t.prevData=void 0,t.dirty=!1,t.involvedThisWave=!1,t.dataBatch.length=0,t.terminal=void 0}function oe(t){return t.length===0?t:typeof t[0]=="symbol"?[t]:t}function ie(t,e,n){let r=Ze(t)?t:[],o=typeof t=="function"?t:typeof e=="function"?e:void 0,s={};return Ze(t)?s=(we(e)?e:n)??{}:we(t)?s=t:s=(we(e)?e:n)??{},new se(r,o,s)}var Ye,Je,Cn,Dn,Ne,se,Ze,we,xe=S(()=>{"use strict";Ie();Pe();We();ee();$e();Ke();B();qe();Ye=()=>{},Je=100;Cn=(t,e,n,r)=>{n.direction==="down-in"&&t._onDepMessage(n.depIndex,e)},Dn=(t,e,n,r)=>{let o=t;if(o._status==="completed"||o._status==="errored")return;let s=o._cached,i=s===void 0?[he]:[he,[x,s]];o._status==="dirty"&&i.push(K),te(e,i,o._config.tierOf)},Ne=new re({onMessage:Cn,onSubscribe:Dn});je(Ne);Fe(Ne);se=class t{_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,n,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=n,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&n==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(Xe);let s={};for(let[a,u]of Object.entries(r.meta??{})){let d={initial:u,name:`${r.name??"node"}:meta:${a}`,describeKind:"state",config:this._config};r.guard!=null&&(d.guard=r.guard),s[a]=new t([],void 0,d)}Object.freeze(s),this.meta=s,this._hasMeta=Object.keys(s).length>0;let i=this;this._actions={emit(a){i._emit([[x,a]])},down(a){i._emit(oe(a))},up(a){i._emitUp(oe(a))}},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,n){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=n?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let s=this._cached===void 0?void 0:this._cached,i=this._versioning,a=i?.id??n?.id,u=i?.version??0,d=ve(e,s,{id:a,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 n=ne(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!n&&!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 i of this._extraGuards)if(!i(o,s))throw new z({actor:o,action:s,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:$()}}down(e,n){let r=oe(e);r.length!==0&&(this._checkGuard(n),this._emit(r))}emit(e,n){this._checkGuard(n),this._emit([[x,e]])}up(e,n){if(this._deps.length===0)return;let r=oe(e);if(r.length===0)return;this._checkGuard(n);let o=n??{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 n of this._deps)n.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let n=this._config.tierOf;for(let r of e){let o=n(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,n){if(n!=null&&this._guard!=null){let u=ne(n);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)_e(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 i=this._isTerminal;if(this._sinkCount===1&&!i)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 a=!1;return()=>{a||(a=!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[n]=this._sinks;this._sinks=n}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,n=0;try{for(let r=0;r<e;r++){let o=r,s=this._deps[r];s.unsub=Ye,s.unsub=s.node.subscribe(i=>{if(s.unsub===null)return;let a=this._config.tierOf,u=!1;for(let d of i)a(d[0])>=3&&(u=!0),this._config.onMessage(this,d,{direction:"down-in",depIndex:o},this._actions);u&&this._maybeRunFnOnSettlement()}),n++}}catch(r){this._deps[n].unsub=null;for(let o=0;o<n;o++){let s=this._deps[o];if(s.unsub!=null){let i=s.unsub;s.unsub=null;try{i()}catch{}_e(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 n=this._deps.length,r=Xe(e);if(this._deps.push(r),this._sinks==null)return n;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me),r.unsub=Ye;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let s=this._config.tierOf,i=!1;for(let a of o)s(a[0])>=3&&(i=!0),this._config.onMessage(this,a,{direction:"down-in",depIndex:n},this._actions);i&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(r){this._emit([[g,this._wrapFnError("cleanup threw",r)]])}else if(n!=null&&typeof n=="object"){let r=n.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{}}_e(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,n){let r=this._deps[e],o=n[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:n};for(let i of this._inspectorHooks)i(s)}if(o!==P){if(o===A){this._depDirtied(r);return}if(o===H){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(Ce);return}if(o===V||o===X){this._emit([n]);return}if(o===L){this._emit(ge);return}if(o===x)this._depSettledAsData(r,n[1]);else if(o===R)this._depSettledAsResolved(r);else if(o===N)this._depSettledAsTerminal(r,!0);else if(o===g)this._depSettledAsTerminal(r,n[1]);else{this._emit([n]);return}if(!this._fn){(o===x||o===R)&&this._emit([n]),(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,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(n),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=n,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 n=this._deps[e];if(n.dataBatch.length===0&&n.prevData===void 0&&n.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(Me),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(n=>n.terminal!==void 0&&n.terminal!==!0);if(e!=null){this._autoError&&this._emit([[g,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(De)}_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(i){this._emit([[g,this._wrapFnError("cleanup threw",i)]]);return}}else if(e!=null&&typeof e=="object"){let i=e.beforeRun;if(typeof i=="function"){e.beforeRun=void 0;try{i()}catch(a){this._emit([[g,this._wrapFnError("cleanup.beforeRun threw",a)]]);return}}}let n=this._deps.map(i=>i.involvedThisWave?i.dataBatch.length>0?[...i.dataBatch]:[]:void 0),r=this._deps.map(i=>i.prevData);for(let i=0;i<this._deps.length;i++){let a=n[i];a!=null&&a.length>0&&(this._deps[i].prevData=a[a.length-1])}let o=this._deps.map(i=>i.terminal),s={prevData:r,terminalDeps:o,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let i={kind:"run",batchData:n,prevData:r};for(let a of this._inspectorHooks)a(i)}this._isExecutingFn=!0;try{let i=this._fn(n,this._actions,s);if(typeof i=="function")this._cleanup=i;else if(i!=null&&typeof i=="object"){let a=i;(typeof a.beforeRun=="function"||typeof a.deactivate=="function"||typeof a.invalidate=="function")&&(this._cleanup=i)}}catch(i){this._emit([[g,this._wrapFnError("fn threw",i)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>Je?(this._rerunDepth=0,this._emit([[g,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Je} \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,n){let r=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[K,e[0]]:e;let r=!0,o=!1,s=!1,i=-1;for(let u of e){let d=n(u[0]);d<i&&(r=!1),d===3&&(o=!0),u[0]===A&&(s=!0),i=d}let a=e;if(!r){let u=e.map((d,c)=>({m:d,i:c,tier:n(d[0])}));u.sort((d,c)=>d.tier-c.tier||d.i-c.i),a=u.map(d=>d.m)}if(o&&!s&&this._status!=="dirty"){let u=0;for(;u<a.length&&n(a[u][0])===0;)u++;return u===0?[K,...a]:[...a.slice(0,u),K,...a.slice(u)]}return a}_emit(e){if(e.length===0)return;for(let a=0;a<e.length;a++){let u=e[a];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 n=e;if(this._isTerminal&&!this._resubscribable){let a=e.filter(u=>u[0]===L||u[0]===H);if(a.length===0)return;n=a}n=this._frameBatch(n);let o=null;for(let a=0;a<n.length;a++){let u=n[a],d=u[0];if(d!==V&&d!==X){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===V?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let c=!0;if(this._pausable!==!1){let l=u[1];if(d===V)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(l),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(l))c=!1;else if(this._pauseLocks.delete(l),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())}}c?o?.push(u):o==null&&(o=n.slice(0,a))}if(o!=null){if(o.length===0)return;n=o}if(this._hasMeta&&n.some(a=>a[0]===L))for(let a of Object.keys(this.meta))try{this.meta[a]._emit(ge)}catch{}let{finalMessages:s,equalsError:i}=this._updateState(n);if(s.length>0&&this._config.inspectorEnabled){let a=this._config.globalInspector;if(a!=null)try{a({kind:"emit",node:this,messages:s})}catch{}}if(s.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let a=this._config.tierOf,u=[];for(let d of s)a(d[0])===3?this._pauseBuffer.push(d):u.push(d);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(s);i!=null&&this._emit([[g,i]])}_updateState(e){let n=this._config.tierOf,r,o,s=-1,i=0;for(let c of e)n(c[0])===3&&i++;let a=i<=1,u=-1;if(this._versioning!=null&&i>1){for(let c=e.length-1;c>=0;c--)if(e[c][0]===x){u=c;break}}for(let c=0;c<e.length;c++){let l=e[c],p=l[0];if(p===x){if(l.length>=2){let f=!1;if(a&&this._cached!==void 0)try{f=this._equals(this._cached,l[1])}catch(h){o=this._wrapFnError("equals threw",h),s=c;break}if(f){r==null&&(r=e.slice(0,c)),r.push(pe),this._status="resolved";continue}this._cached=l[1],this._versioning!=null&&(u<0||c===u)&&ze(this._versioning,l[1],this._hashFn)}this._status="settled",r?.push(l)}else if(r?.push(l),p===A)this._status="dirty";else if(p===R)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===H){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===L&&(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 n=[...this._sinks];for(let r of n)r(e)};_dispatchOrAccumulate(e){if(Ve()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Be(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}te(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let n=this._frameBatch(e);te(this._deliverToSinks,n,this._config.tierOf)}},Ze=t=>Array.isArray(t),we=t=>typeof t=="object"&&t!=null&&!Array.isArray(t)});function F(t,e){return ie((r,o,s)=>t(o,s)??void 0,{describeKind:"producer",...e})}var ae=S(()=>{"use strict";xe()});function de(t){return{describeKind:"producer",...t}}function Fn(t){return/[\\^$+?.()|[\]{}]/.test(t)?`\\${t}`:t}function q(t){let e="^";for(let n=0;n<t.length;n+=1){let r=t[n];if(r==="*"){t[n+1]==="*"?(e+=".*",n+=1):e+="[^/]*";continue}e+=Fn(r)}return e+="$",new RegExp(e)}function G(t,e){for(let n of e)if(n.test(t))return!0;return!1}function Qe(t,e){let{signal:n,period:r,...o}=e??{};return F(s=>{let i=!1,a=0,u,d,c=()=>{i=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),n?.removeEventListener("abort",p)},l=()=>{i||(r!=null?(s.emit(a++),d=setInterval(()=>{i||s.emit(a++)},r)):(i=!0,n?.removeEventListener("abort",p),s.emit(a++),s.down([[N]])))},p=()=>{i||(c(),s.down([[g,n.reason]]))};if(n?.aborted){p();return}return u=setTimeout(l,t),n?.addEventListener("abort",p,{once:!0}),c},de(o))}function en(t,e){return F(n=>{let r=!1;try{for(let o of t){if(r)return;n.emit(o)}r||n.down([[N]])}catch(o){r||n.down([[g,o]])}return()=>{r=!0}},de(e))}function In(t){return t!=null&&typeof t.then=="function"}function Pn(t,e){let{signal:n,...r}=e??{};return F(o=>{let s=!1,i=()=>{s||(s=!0,o.down([[g,n.reason]]))};if(n?.aborted){i();return}return n?.addEventListener("abort",i,{once:!0}),Promise.resolve(t).then(a=>{s||(s=!0,n?.removeEventListener("abort",i),o.emit(a),o.down([[N]]))},a=>{s||(s=!0,n?.removeEventListener("abort",i),o.down([[g,a]]))}),()=>{s=!0,n?.removeEventListener("abort",i)}},de(r))}function Ln(t,e){let{signal:n,...r}=e??{};return F(o=>{let s=new AbortController,i=()=>s.abort(n?.reason);n?.aborted?s.abort(n.reason):n?.addEventListener("abort",i,{once:!0});let a=n??s.signal,u=!1,d=t[Symbol.asyncIterator](),c=()=>{u||a.aborted||Promise.resolve(d.next()).then(l=>{if(!(u||a.aborted)){if(l.done){o.down([[N]]);return}o.emit(l.value),c()}},l=>{!u&&!a.aborted&&o.down([[g,l]])})};return c(),()=>{u=!0,n?.removeEventListener("abort",i),s.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},de(r))}function Gn(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function nn(t,e){if(Gn(t))return t;if(In(t))return Pn(t,e);if(t!=null){let n=t;if(typeof n[Symbol.asyncIterator]=="function")return Ln(t,e);if(typeof n[Symbol.iterator]=="function")return en(t,e)}return Un(t)}function Un(...t){return en(t,void 0)}var ue=S(()=>{"use strict";B();ae()});var Kn={};bn(Kn,{fileAppendLog:()=>un,fileBackend:()=>Z,fileKv:()=>fn,fileSnapshot:()=>dn,fromFSWatch:()=>Wn,fromGitHook:()=>rn,sqliteAppendLog:()=>ln,sqliteBackend:()=>Q,sqliteKv:()=>pn,sqliteSnapshot:()=>cn});module.exports=vn(Kn);ee();B();ae();B();xe();ue();function Hn(t){return{describeKind:"derived",...t}}function Vn(t,e,n){let r,o=!1,s=()=>{o||(o=!0,n())};return r=t.subscribe(i=>{let a=!1,u=!1;for(let d of i)d[0]!==P&&(d[0]===x?e.emit(d[1]):d[0]===N?a=!0:d[0]===g?(u=!0,e.down([d])):(d[0]===A||d[0]===R)&&e.down([d]));u?(r?.(),r=void 0,s()):a&&s()}),()=>{r?.(),r=void 0}}function tn(t,e,n){let r,o=!1;function s(){r?.(),r=void 0}return ie([t],(i,a,u)=>{if(u.terminalDeps[0]!=null&&u.terminalDeps[0]!==!0){s();return}if(u.terminalDeps[0]===!0){o=!0,r||a.down([[N]]);return}let d=i[0];if(!(d==null||d.length===0))return s(),r=Vn(nn(e(d[d.length-1])),a,()=>{s(),o&&a.down([[N]])}),{deactivate:()=>{s(),o=!1}}},{...Hn(n),completeWhenDepsComplete:!1})}ue();function rn(t,e){let{pollMs:n=5e3,include:r,exclude:o,maxConsecutiveErrors:s=1}=e??{},i=r?.map(q)??[],a=o?.map(q)??[],{execFileSync:u}=require("node:child_process"),d=p=>u("git",p,{cwd:t,encoding:"utf-8"}).trim(),c,l=0;return tn(Qe(0,{period:n}),()=>F(p=>{try{let f=d(["rev-parse","HEAD"]);if(!f)return l=0,()=>{};if(c===void 0)return c=f,l=0,()=>{};if(f===c)return l=0,()=>{};let h=d(["diff","--name-only",`${c}..${f}`]).split(`
|
|
2
|
+
`).filter(Boolean);i.length>0&&(h=h.filter(b=>G(b,i))),a.length>0&&(h=h.filter(b=>!G(b,a)));let T=d(["log","-1","--format=%s",f]),y=d(["log","-1","--format=%an",f]);p.emit({hook:"post-commit",commit:f,files:h,message:T,author:y,timestamp_ns:$()}),c=f,l=0}catch(f){l+=1,l>=s&&p.down([[g,f]])}return()=>{}}))}var ce=require("node:fs"),Ee=require("node:path");ee();B();ae();ue();function Bn(t){return{describeKind:"producer",...t}}function Wn(t,e){let n=Array.isArray(t)?t:[t];if(n.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:r=!0,debounce:o=100,include:s,exclude:i,...a}=e??{},u=s?.map(q)??[],d=(i??["**/node_modules/**","**/.git/**","**/dist/**"]).map(q);return F(c=>{let l=new Map,p=[],f=!1,h=!1,T=0,y=()=>{for(let v of p.splice(0))v.close()},b=v=>{h||(h=!0,f=!0,m!==void 0&&clearTimeout(m),m=void 0,l.clear(),y(),c.down([[g,v]]))},m,w=v=>{if(m=void 0,f||h||l.size===0)return;let E=[];for(let M of l.values())E.push([x,M]);l.clear(),!(f||h||v!==T)&&c.down(E)};try{for(let v of n){let E=(0,ce.watch)(v,{recursive:r},(M,O)=>{if(f||h||O==null)return;let I=String(O).replaceAll("\\","/"),C=(0,Ee.resolve)(v,String(O)).replaceAll("\\","/"),_=(0,Ee.resolve)(v).replaceAll("\\","/"),D=I.startsWith("./")?I.slice(2):I;if(!(u.length===0||G(C,u)||G(D,u))||G(C,d)||G(D,d))return;let U="change";if(M==="rename")try{U=(0,ce.existsSync)(C)?"create":"delete"}catch{U="rename"}l.set(C,{type:U,path:C,root:_,relative_path:D,timestamp_ns:$()}),m!==void 0&&clearTimeout(m);let le=T;m=setTimeout(()=>w(le),o)});E.on("error",M=>b(M)),p.push(E)}}catch(v){b(v)}return()=>{f=!0,T+=1,m!==void 0&&clearTimeout(m),m=void 0,y(),l.clear()}},Bn(a))}var sn=require("node:crypto"),k=require("node:fs"),W=require("node:path"),an=require("node:sqlite");function ke(t){if(t===null||typeof t!="object")return t;if(Array.isArray(t))return t.map(ke);let e=t,n=Object.keys(e).sort(),r={};for(let o of n)r[o]=ke(e[o]);return r}function on(t){return JSON.stringify(ke(t),void 0,0)}var jn=new TextEncoder,$n=new TextDecoder("utf-8",{fatal:!0}),Oe={name:"json",version:1,encode(t){return jn.encode(on(t))},decode(t){return JSON.parse($n.decode(t))}};function Se(t,e={}){let n=e.codec??Oe,r=e.name??t.name??"snapshot",o=e.keyOf??(l=>l.name??e.name??t.name??"snapshot"),s,i=0,a=e.compactEvery,u,d={name:r,debounceMs:e.debounceMs,compactEvery:a,filter:e.filter,keyOf:o,save(l){if(!(e.filter&&!e.filter(l))&&(s={snapshot:l},i+=1,a!==void 0&&i%a===0||!e.debounceMs))return c()},load(){let l=u??r,p=t.read(l);if(p!==void 0)return p instanceof Uint8Array?p.length===0?void 0:n.decode(p):Promise.resolve(p).then(f=>f===void 0||f.length===0?void 0:n.decode(f))},async flush(){await c()},async rollback(){s=void 0}};function c(){let l=s;if(!l)return;s=void 0;let p=o(l.snapshot),f=n.encode(l.snapshot),h=t.write(p,f);if(h instanceof Promise)return h.then(()=>{u=p});u=p}return d}function Ae(t,e={}){let n=e.codec??Oe,r=e.name??t.name??"append-log",o=e.keyOf??(p=>r),s=e.compactEvery,i=new Map,a=0,u,d={name:r,debounceMs:e.debounceMs,compactEvery:s,keyOf:o,appendEntries(p){if(p.length!==0){for(let f of p){let h=o(f),T=i.get(h);T||(T=[],i.set(h,T)),T.push(f)}if(a+=p.length,s!==void 0&&a%s===0||!e.debounceMs)return c()}},async loadEntries(p){let f=p?.keyFilter,h=t.list===void 0?f!==void 0?[f]:[r]:await Promise.resolve(t.list(f)),T=[];for(let y of h){let b=await Promise.resolve(t.read(y));if(b===void 0||b.length===0)continue;let m=n.decode(b);Array.isArray(m)&&T.push(...m)}return{entries:T,cursor:void 0}},async flush(){await c()},async rollback(){i=new Map}};function c(){if(i.size===0)return;let p=i;i=new Map;let f=(u??Promise.resolve()).then(()=>{let h=l(p);return h instanceof Promise?h:Promise.resolve()},()=>{let h=l(p);return h instanceof Promise?h:Promise.resolve()});return u=f.finally(()=>{u===f&&(u=void 0)}),u}function l(p){let f=[];for(let[h,T]of p){let y=t.read(h),b=m=>{let v=[...m===void 0||m.length===0?[]:n.decode(m)??[],...T],E=n.encode(v);return t.write(h,E)};if(y instanceof Promise)f.push(y.then(async m=>{let w=b(m);w instanceof Promise&&await w}));else{let m=b(y);m instanceof Promise&&f.push(m)}}if(f.length>0)return Promise.all(f).then(()=>{})}return d}function Re(t,e={}){let n=e.codec??Oe,r=e.name??t.name??"kv",o=e.compactEvery,s=new Map,i=0,a={name:r,debounceMs:e.debounceMs,compactEvery:o,filter:e.filter,save(d,c){if(!(e.filter&&!e.filter(d,c))&&(s.set(d,c),i+=1,o!==void 0&&i%o===0||!e.debounceMs))return u()},load(d){let c=t.read(d);if(c!==void 0)return c instanceof Uint8Array?c.length===0?void 0:n.decode(c):Promise.resolve(c).then(l=>l===void 0||l.length===0?void 0:n.decode(l))},delete(d){if(s.delete(d),!!t.delete)return t.delete(d)},list(d){return t.list?t.list(d):[]},async flush(){await u()},async rollback(){s=new Map}};function u(){if(s.size===0)return;let d=s;s=new Map;let c=[];for(let[l,p]of d){let f=n.encode(p),h=t.write(l,f);h instanceof Promise&&c.push(h)}if(c.length>0)return Promise.all(c).then(()=>{})}return a}function Z(t){let e=new TextEncoder,n=new TextDecoder("utf-8",{fatal:!0}),r=s=>{let i="";for(let a of s){if(a.length===1&&/[a-zA-Z0-9_-]/.test(a)){i+=a;continue}for(let u of e.encode(a))i+=`%${u.toString(16).padStart(2,"0")}`}return(0,W.join)(t,`${i}.bin`)},o=s=>{if(!s.endsWith(".bin"))return null;let i=s.slice(0,-4),a=[],u=c=>{for(let l=0;l<c.length;l++)a.push(c.charCodeAt(l))},d=0;for(;d<i.length;){let c=i[d];if(c==="%"&&d+2<i.length){let l=i.slice(d+1,d+3);if(/^[0-9a-f]{2}$/i.test(l)){a.push(Number.parseInt(l,16)),d+=3;continue}}u(c),d+=1}try{return n.decode(new Uint8Array(a))}catch{return null}};return{name:`file:${t}`,read(s){try{let i=(0,k.readFileSync)(r(s));return new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}catch{return}},write(s,i){(0,k.mkdirSync)(t,{recursive:!0});let a=r(s),u=(0,W.basename)(a),d=(0,W.dirname)(a),c=(0,W.join)(d,`.${u}.${(0,sn.randomBytes)(8).toString("hex")}.tmp`);try{(0,k.writeFileSync)(c,i),(0,k.renameSync)(c,a)}catch(l){try{(0,k.unlinkSync)(c)}catch{}throw l}},delete(s){try{(0,k.unlinkSync)(r(s))}catch(i){if(i.code!=="ENOENT")throw i}},list(s){try{let i=(0,k.readdirSync)(t),a=[];for(let u of i){if(u.startsWith("."))continue;let d=o(u);d!==null&&(s!==void 0&&!d.startsWith(s)||a.push(d))}return a.sort()}catch(i){if(i.code==="ENOENT")return[];throw i}}}}function Q(t){let e=new an.DatabaseSync(t);return e.exec("CREATE TABLE IF NOT EXISTS graphrefly_storage (k TEXT PRIMARY KEY, v BLOB NOT NULL)"),{name:`sqlite:${t}`,read(n){return e.prepare("SELECT v FROM graphrefly_storage WHERE k = ?").get(n)?.v},write(n,r){e.prepare("INSERT OR REPLACE INTO graphrefly_storage (k, v) VALUES (?, ?)").run(n,r)},delete(n){e.prepare("DELETE FROM graphrefly_storage WHERE k = ?").run(n)},list(n){if(n===void 0)return e.prepare("SELECT k FROM graphrefly_storage ORDER BY k").all().map(i=>i.k);let r=n.replace(/[\\%_]/g,"\\$&");return e.prepare("SELECT k FROM graphrefly_storage WHERE k LIKE ? ESCAPE '\\' ORDER BY k").all(`${r}%`).map(s=>s.k)},close(){try{e.close()}catch{}}}}function dn(t,e){return Se(Z(t),e)}function un(t,e){return Ae(Z(t),e)}function cn(t,e){let n=Q(t),r=Se(n,e);return Object.assign(r,{close:()=>n.close()})}function ln(t,e){let n=Q(t),r=Ae(n,e);return Object.assign(r,{close:()=>n.close()})}function fn(t,e){return Re(Z(t),e)}function pn(t,e){let n=Q(t),r=Re(n,e);return Object.assign(r,{close:()=>n.close()})}0&&(module.exports={fileAppendLog,fileBackend,fileKv,fileSnapshot,fromFSWatch,fromGitHook,sqliteAppendLog,sqliteBackend,sqliteKv,sqliteSnapshot});
|
package/dist/extra/node.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as NodeOptions, a as Node } from '../node-
|
|
2
|
-
export {
|
|
3
|
-
import './storage-
|
|
1
|
+
import { N as NodeOptions, a as Node } from '../node-fSc-hCv8.cjs';
|
|
2
|
+
export { fileAppendLog, fileBackend, fileKv, fileSnapshot, sqliteAppendLog, sqliteBackend, sqliteKv, sqliteSnapshot } from './storage-tiers-node.cjs';
|
|
3
|
+
import './storage-tiers.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Git hook source — Node-only reactive source that polls a repository's HEAD
|
package/dist/extra/node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as NodeOptions, a as Node } from '../node-
|
|
2
|
-
export {
|
|
3
|
-
import './storage-
|
|
1
|
+
import { N as NodeOptions, a as Node } from '../node-fSc-hCv8.js';
|
|
2
|
+
export { fileAppendLog, fileBackend, fileKv, fileSnapshot, sqliteAppendLog, sqliteBackend, sqliteKv, sqliteSnapshot } from './storage-tiers-node.js';
|
|
3
|
+
import './storage-tiers.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Git hook source — Node-only reactive source that polls a repository's HEAD
|
package/dist/extra/node.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
`).filter(Boolean);x.length>0&&(r=r.filter(
|
|
1
|
+
import{a as C,b as j,c as z,d as D,e as L,f as $,g as Q,h as I}from"../chunk-VN6RDSK2.js";import"../chunk-D5RFJOZ2.js";import"../chunk-CE72X3WO.js";import{x as M}from"../chunk-JJTF75VS.js";import"../chunk-4VVTGLXJ.js";import{d as m,e as s,f as _}from"../chunk-MQZWA3DF.js";import{F as T,p as O}from"../chunk-LYCLF26R.js";import{b as N,j as k}from"../chunk-CK2E7BTU.js";import{a as B}from"../chunk-QYADASLV.js";function J(c,w){let{pollMs:y=5e3,include:b,exclude:F,maxConsecutiveErrors:S=1}=w??{},x=b?.map(m)??[],E=F?.map(m)??[],{execFileSync:u}=B("child_process"),p=a=>u("git",a,{cwd:c,encoding:"utf-8"}).trim(),i,t=0;return M(_(0,{period:y}),()=>T(a=>{try{let e=p(["rev-parse","HEAD"]);if(!e)return t=0,()=>{};if(i===void 0)return i=e,t=0,()=>{};if(e===i)return t=0,()=>{};let r=p(["diff","--name-only",`${i}..${e}`]).split(`
|
|
2
|
+
`).filter(Boolean);x.length>0&&(r=r.filter(l=>s(l,x))),E.length>0&&(r=r.filter(l=>!s(l,E)));let d=p(["log","-1","--format=%s",e]),v=p(["log","-1","--format=%an",e]);a.emit({hook:"post-commit",commit:e,files:r,message:d,author:v,timestamp_ns:O()}),i=e,t=0}catch(e){t+=1,t>=S&&a.down([[k,e]])}return()=>{}}))}import{existsSync as U,watch as V}from"fs";import{resolve as P}from"path";function X(c){return{describeKind:"producer",...c}}function de(c,w){let y=Array.isArray(c)?c:[c];if(y.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:b=!0,debounce:F=100,include:S,exclude:x,...E}=w??{},u=S?.map(m)??[],p=(x??["**/node_modules/**","**/.git/**","**/dist/**"]).map(m);return T(i=>{let t=new Map,a=[],e=!1,r=!1,d=0,v=()=>{for(let o of a.splice(0))o.close()},l=o=>{r||(r=!0,e=!0,n!==void 0&&clearTimeout(n),n=void 0,t.clear(),v(),i.down([[k,o]]))},n,W=o=>{if(n=void 0,e||r||t.size===0)return;let f=[];for(let g of t.values())f.push([N,g]);t.clear(),!(e||r||o!==d)&&i.down(f)};try{for(let o of y){let f=V(o,{recursive:b},(g,G)=>{if(e||r||G==null)return;let A=String(G).replaceAll("\\","/"),h=P(o,String(G)).replaceAll("\\","/"),q=P(o).replaceAll("\\","/"),R=A.startsWith("./")?A.slice(2):A;if(!(u.length===0||s(h,u)||s(R,u))||s(h,p)||s(R,p))return;let H="change";if(g==="rename")try{H=U(h)?"create":"delete"}catch{H="rename"}t.set(h,{type:H,path:h,root:q,relative_path:R,timestamp_ns:O()}),n!==void 0&&clearTimeout(n);let K=d;n=setTimeout(()=>W(K),F)});f.on("error",g=>l(g)),a.push(f)}}catch(o){l(o)}return()=>{e=!0,d+=1,n!==void 0&&clearTimeout(n),n=void 0,v(),t.clear()}},X(E))}export{D as fileAppendLog,C as fileBackend,Q as fileKv,z as fileSnapshot,de as fromFSWatch,J as fromGitHook,$ as sqliteAppendLog,j as sqliteBackend,I as sqliteKv,L as sqliteSnapshot};
|