@graphrefly/graphrefly 0.38.0 → 0.40.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/budget-gate-CmmVtasH.d.ts +115 -0
- package/dist/budget-gate-DiP_nK0n.d.cts +115 -0
- package/dist/{cascading-BsJ4GbnS.d.ts → cascading-BNfxffgc.d.ts} +2 -2
- package/dist/{cascading-B25wxpRa.d.cts → cascading-Cxs1eztH.d.cts} +2 -2
- package/dist/chunk-2BX4NB34.js +3 -0
- package/dist/{chunk-6VFC334U.js → chunk-2DMKW2AD.js} +1 -1
- package/dist/{chunk-4BDQXBXE.js → chunk-2QXRYP7Q.js} +1 -1
- package/dist/chunk-32N3JALT.js +1 -0
- package/dist/chunk-35JTVPOX.js +1 -0
- package/dist/chunk-3G5U5QNE.js +5 -0
- package/dist/{chunk-PHXZRR6C.js → chunk-4I45FVQS.js} +1 -1
- package/dist/{chunk-B5S7KTGP.js → chunk-6I726LZU.js} +1 -1
- package/dist/{chunk-NV63VQHI.js → chunk-6VWBPSSY.js} +1 -1
- package/dist/chunk-6XVD5TZV.js +1 -0
- package/dist/chunk-756D5TFD.js +1 -0
- package/dist/{chunk-DSOVKKTI.js → chunk-7Q4ZD3YW.js} +1 -1
- package/dist/{chunk-TMVY7OWG.js → chunk-B7LCDQEV.js} +1 -1
- package/dist/chunk-C72GO4IZ.js +1 -0
- package/dist/{chunk-RZ5HKPGI.js → chunk-CKFQS2CJ.js} +1 -1
- package/dist/chunk-D27JNOLZ.js +1 -0
- package/dist/chunk-ECQRP2UT.js +1 -0
- package/dist/{chunk-6773HURD.js → chunk-FHRBBHJN.js} +1 -1
- package/dist/{chunk-UVLZX2OU.js → chunk-I2DEVPMU.js} +1 -1
- package/dist/chunk-INQFTVZA.js +61 -0
- package/dist/{chunk-6KZZ6XQE.js → chunk-J63M5U46.js} +1 -1
- package/dist/{chunk-POCWFIJ7.js → chunk-JKBOIJ22.js} +1 -1
- package/dist/chunk-K2Z7UENB.js +1 -0
- package/dist/chunk-L6NSJVJZ.js +1 -0
- package/dist/{chunk-K5C67OGE.js → chunk-LCGAVGGV.js} +2 -2
- package/dist/chunk-LYM4PBMV.js +1 -0
- package/dist/{chunk-O2BLVQU4.js → chunk-MNZIKXK4.js} +1 -1
- package/dist/chunk-N43XM7BM.js +1 -0
- package/dist/{chunk-FWGIZP3W.js → chunk-OSZ22J7O.js} +1 -1
- package/dist/{chunk-FAYEMS5M.js → chunk-PPUYQ66A.js} +1 -1
- package/dist/{chunk-SP5O2MIX.js → chunk-QSK3RRII.js} +1 -1
- package/dist/chunk-RZJDIV2G.js +1 -0
- package/dist/chunk-SSCGRYJ2.js +1 -0
- package/dist/chunk-SVFKHUCW.js +1 -0
- package/dist/chunk-TSOYJ743.js +1 -0
- package/dist/{chunk-O245YLM5.js → chunk-UWA6D7UF.js} +1 -1
- package/dist/chunk-VMF23LGB.js +1 -0
- package/dist/chunk-WL6LFPJB.js +1 -0
- package/dist/chunk-WUT362QV.js +1 -0
- package/dist/chunk-XJLYLLIJ.js +1 -0
- package/dist/{chunk-IBGE62GZ.js → chunk-XW4YDF6G.js} +1 -1
- package/dist/chunk-YKD7WUYJ.js +43 -0
- package/dist/{chunk-7KZZLWZ6.js → chunk-YXDRGKXP.js} +1 -1
- package/dist/chunk-Z4F3DOWS.js +84 -0
- package/dist/compat/index.cjs +9 -13
- package/dist/compat/index.d.cts +16 -16
- package/dist/compat/index.d.ts +16 -16
- 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 +7 -11
- package/dist/compat/nestjs/index.d.cts +8 -8
- package/dist/compat/nestjs/index.d.ts +8 -8
- 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 +3 -7
- package/dist/compat/zustand/index.d.cts +4 -4
- package/dist/compat/zustand/index.d.ts +4 -4
- package/dist/compat/zustand/index.js +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +1 -1
- package/dist/{composite-DTOlDuch.d.ts → decay-BnrlbxSv.d.ts} +39 -3
- package/dist/{composite-CgG0MqHm.d.cts → decay-C25AyNAj.d.cts} +39 -3
- package/dist/extra/browser.d.cts +1 -1
- package/dist/extra/browser.d.ts +1 -1
- package/dist/extra/index.cjs +16 -20
- package/dist/extra/index.d.cts +11 -9
- package/dist/extra/index.d.ts +11 -9
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +2 -2
- package/dist/extra/node.d.cts +1 -1
- package/dist/extra/node.d.ts +1 -1
- package/dist/extra/node.js +1 -1
- 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 +3 -3
- package/dist/extra/reactive.d.ts +3 -3
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/render/index.cjs +5 -0
- package/dist/extra/render/index.d.cts +183 -0
- package/dist/extra/render/index.d.ts +183 -0
- package/dist/extra/render/index.js +1 -0
- package/dist/extra/sources.cjs +1 -1
- package/dist/extra/sources.d.cts +1 -1
- package/dist/extra/sources.d.ts +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/extra/storage-browser.d.cts +1 -1
- package/dist/extra/storage-browser.d.ts +1 -1
- package/dist/{fallback-axI2cXwt.d.cts → fallback-8JYU8tlT.d.cts} +1 -1
- package/dist/{fallback-DuEXfA4F.d.ts → fallback-CMZl39L5.d.ts} +1 -1
- package/dist/graph/index.cjs +7 -7
- package/dist/graph/index.d.cts +5 -5
- package/dist/graph/index.d.ts +5 -5
- package/dist/graph/index.js +1 -1
- package/dist/{graph-BjW1taJl.d.ts → graph-BkIkog4h.d.ts} +76 -100
- package/dist/{graph-CHsVwf9S.d.cts → graph-E6likq7w.d.cts} +76 -100
- package/dist/{index-CIcu6fIR.d.ts → index-2n8Eai6M.d.ts} +1 -1
- package/dist/{index-BwOsJfLJ.d.ts → index-3k4Gg6-n.d.ts} +3 -3
- package/dist/{index-BUFCHvOR.d.ts → index-40ZT4MHj.d.ts} +3 -3
- package/dist/index-8s-Qm-gz.d.ts +218 -0
- package/dist/index-A3U3CSve.d.cts +113 -0
- package/dist/{index-CDvC1m5p.d.ts → index-B2RUoIUz.d.ts} +1 -1
- package/dist/{index-Byp771zP.d.ts → index-B6iTqKtJ.d.ts} +2 -2
- package/dist/{index-D-B7U42V.d.cts → index-B72TQQHd.d.cts} +2 -2
- package/dist/{resilience-Bys63Cpd.d.ts → index-BAQrjuZF.d.ts} +202 -26
- package/dist/{index-BiomL7AW.d.ts → index-BJSZxSFX.d.ts} +1 -1
- package/dist/index-BQ1fR4li.d.ts +210 -0
- package/dist/{index-D7-RSD93.d.cts → index-BTHOTC0Q.d.cts} +4 -4
- package/dist/{index-CEVzBWeB.d.ts → index-BaA-xpSw.d.ts} +26 -19
- package/dist/{index-CAV-3RpJ.d.cts → index-Bd91Nmf4.d.cts} +4 -4
- package/dist/{index-BI1wMfyc.d.ts → index-BgjS2b8N.d.ts} +3 -3
- package/dist/{index-Bpr0Pwgl.d.cts → index-BiHUBEKq.d.cts} +3 -3
- package/dist/{index-UsU9ptzs.d.cts → index-BilOa6AE.d.cts} +55 -9
- package/dist/{index-DJVQ-t07.d.ts → index-BmSQLAZo.d.cts} +41 -48
- package/dist/{index-DTDVDzhA.d.ts → index-C-dkXOpB.d.cts} +56 -54
- package/dist/{index-B-ORMr3k.d.ts → index-C5cQ7Gfx.d.ts} +4 -4
- package/dist/{index-ML6vHKXK.d.ts → index-C6ZUaos7.d.ts} +1 -1
- package/dist/{index-Vz7KPfgz.d.ts → index-CAP3UGsq.d.ts} +1 -1
- package/dist/{index-BFaALJxR.d.ts → index-CD2dBMet.d.ts} +10 -8
- package/dist/index-CGhMJNHb.d.cts +128 -0
- package/dist/{index-B3D_z0Z6.d.cts → index-CL7oilfm.d.cts} +1 -1
- package/dist/{index-Bn0uZEL4.d.ts → index-CQtWm7jS.d.ts} +9 -9
- package/dist/{index-CM-i58FY.d.cts → index-CRm0YIzC.d.cts} +9 -9
- package/dist/index-CUIkE1l9.d.cts +230 -0
- package/dist/{index-CijfwEWx.d.ts → index-Cczxgd2D.d.ts} +2 -2
- package/dist/{index-CAbHN_rP.d.cts → index-CgnCFhr2.d.cts} +1 -1
- package/dist/{index-B2IUcH13.d.cts → index-Ck35nA-T.d.ts} +41 -48
- package/dist/{index-BpMZzX9P.d.cts → index-Cnr1WrlX.d.cts} +3 -3
- package/dist/{index-JYtN9uqM.d.ts → index-CoM4rzyB.d.ts} +1 -1
- package/dist/{index-Ckil6miL.d.cts → index-CtFNGe-m.d.cts} +2 -2
- package/dist/{index-BjWZARLy.d.ts → index-Ctb7_2sG.d.ts} +1 -1
- package/dist/index-CuPUehFa.d.cts +218 -0
- package/dist/index-D1Gc7wV5.d.ts +230 -0
- package/dist/{index-DqICM_I7.d.ts → index-D1IEZUsj.d.ts} +67 -9
- package/dist/{index-BFuVcqL8.d.cts → index-D3ayz3hy.d.cts} +1 -1
- package/dist/{index-CQsqqEVz.d.cts → index-D4uimgee.d.cts} +1 -1
- package/dist/{resilience-BWP2c7Af.d.cts → index-DGTo1yka.d.cts} +202 -26
- package/dist/{index-BmWuVdER.d.ts → index-DH4fm2Ck.d.ts} +2 -2
- package/dist/{index-BkQqf1EF.d.cts → index-DJ_MPOJ5.d.cts} +67 -9
- package/dist/{index-9xhIaM-w.d.cts → index-DOBLxOti.d.cts} +1 -1
- package/dist/{index-BqcgiSQg.d.cts → index-DQQCOIt8.d.cts} +10 -8
- package/dist/{index-DJNAWzcH.d.cts → index-DVAlsmEU.d.cts} +26 -19
- package/dist/index-DVDapw2k.d.cts +210 -0
- package/dist/{index-D_QQ_dTD.d.cts → index-DYTBbF8T.d.cts} +1 -1
- package/dist/{index-BgzPO43H.d.cts → index-DgJc8Zgc.d.cts} +6 -6
- package/dist/{index-Czk3r0yA.d.cts → index-DhLyOHYZ.d.ts} +56 -54
- package/dist/{index-CrlHFsiT.d.ts → index-DhnsQfa3.d.ts} +100 -118
- package/dist/{index-Bub6x_D4.d.cts → index-DktLSZOc.d.cts} +37 -90
- package/dist/{index-BaSy4L6w.d.cts → index-DpiGqtrs.d.cts} +100 -118
- package/dist/{index-D-HZ7sP4.d.ts → index-I1cCY3ZI.d.ts} +6 -6
- package/dist/{index-D9vBTuzo.d.ts → index-IUCY0OFN.d.ts} +4 -4
- package/dist/{index-DeSsvHDD.d.cts → index-MxYuWOrf.d.cts} +3 -3
- package/dist/index-N2MAxt7_.d.ts +128 -0
- package/dist/{index-CpZKtdMw.d.cts → index-PgwvGWa1.d.cts} +1 -1
- package/dist/{index-AUqWe_fX.d.ts → index-WSlcjhQF.d.ts} +55 -9
- package/dist/{index-Di7OdwlO.d.ts → index-bXXLSvor.d.ts} +37 -90
- package/dist/index-da2V5vPy.d.ts +113 -0
- package/dist/{index-DY2f2b9z.d.ts → index-eaQuGJnv.d.ts} +3 -3
- package/dist/{index-BsgxnHN8.d.cts → index-t6L2qpHh.d.cts} +3 -3
- package/dist/{index-C-3UXnHT.d.cts → index-tV3AA9hI.d.cts} +2 -2
- package/dist/{index-8OxXae3g.d.ts → index-yLt-aPMp.d.ts} +1 -1
- package/dist/{index-CqSJ25A9.d.cts → index-z8WFPVI8.d.cts} +1 -1
- package/dist/index.cjs +63 -59
- package/dist/index.d.cts +48 -47
- package/dist/index.d.ts +48 -47
- package/dist/index.js +1 -1
- package/dist/{meta-DreaEM_a.d.cts → meta-Ct9nqQS5.d.cts} +11 -7
- package/dist/{meta-BYqlATmg.d.ts → meta-D8OyedKp.d.ts} +11 -7
- package/dist/{node-fSc-hCv8.d.cts → node-BYInONRr.d.cts} +3 -3
- package/dist/{node-fSc-hCv8.d.ts → node-BYInONRr.d.ts} +3 -3
- package/dist/{observable-Cqty11jG.d.cts → observable-DMIlYJV1.d.cts} +1 -1
- package/dist/{observable-EAV_rNfM.d.ts → observable-DO8DDEzv.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 +16 -20
- package/dist/patterns/ai/index.d.cts +17 -17
- package/dist/patterns/ai/index.d.ts +17 -17
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.cjs +1 -1
- package/dist/patterns/ai/node.d.cts +4 -4
- package/dist/patterns/ai/node.d.ts +4 -4
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.cjs +3 -7
- package/dist/patterns/audit/index.d.cts +6 -6
- package/dist/patterns/audit/index.d.ts +6 -6
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +3 -7
- package/dist/patterns/cqrs/index.d.cts +6 -6
- package/dist/patterns/cqrs/index.d.ts +6 -6
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +5 -8
- package/dist/patterns/demo-shell/index.d.cts +5 -5
- package/dist/patterns/demo-shell/index.d.ts +5 -5
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +3 -7
- package/dist/patterns/domain-templates/index.d.cts +4 -4
- package/dist/patterns/domain-templates/index.d.ts +4 -4
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +37 -37
- package/dist/patterns/graphspec/index.d.cts +5 -5
- package/dist/patterns/graphspec/index.d.ts +5 -5
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +3 -7
- package/dist/patterns/guarded-execution/index.d.cts +7 -7
- package/dist/patterns/guarded-execution/index.d.ts +7 -7
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +8 -12
- package/dist/patterns/harness/index.d.cts +12 -12
- package/dist/patterns/harness/index.d.ts +12 -12
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +3 -7
- package/dist/patterns/job-queue/index.d.cts +6 -6
- package/dist/patterns/job-queue/index.d.ts +6 -6
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +3 -7
- package/dist/patterns/lens/index.d.cts +5 -6
- package/dist/patterns/lens/index.d.ts +5 -6
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +3 -7
- package/dist/patterns/memory/index.d.cts +6 -6
- package/dist/patterns/memory/index.d.ts +6 -6
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +3 -7
- package/dist/patterns/messaging/index.d.cts +5 -5
- package/dist/patterns/messaging/index.d.ts +5 -5
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +3 -7
- package/dist/patterns/orchestration/index.d.cts +8 -8
- package/dist/patterns/orchestration/index.d.ts +8 -8
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/process/index.cjs +1 -1
- package/dist/patterns/process/index.d.cts +7 -7
- package/dist/patterns/process/index.d.ts +7 -7
- package/dist/patterns/process/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +4 -8
- package/dist/patterns/reactive-layout/index.d.cts +5 -5
- package/dist/patterns/reactive-layout/index.d.ts +5 -5
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +3 -7
- package/dist/patterns/reduction/index.d.cts +4 -4
- package/dist/patterns/reduction/index.d.ts +4 -4
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.cjs +5 -9
- package/dist/patterns/refine-loop/index.d.cts +6 -6
- package/dist/patterns/refine-loop/index.d.ts +6 -6
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +3 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +6 -6
- package/dist/patterns/resilient-pipeline/index.d.ts +6 -6
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +12 -16
- package/dist/patterns/surface/index.d.cts +6 -6
- package/dist/patterns/surface/index.d.ts +6 -6
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{pipeline-graph-9JBbmRxA.d.ts → pipeline-graph-CB4La-UW.d.ts} +34 -17
- package/dist/{pipeline-graph-DuHpXSOn.d.cts → pipeline-graph-MWrQZXCq.d.cts} +34 -17
- package/dist/{reactive-layout-BMLDB4Vd.d.cts → reactive-layout-BtZfUKuL.d.cts} +2 -2
- package/dist/{reactive-layout-D-tRiNhg.d.ts → reactive-layout-KJj4E2dT.d.ts} +2 -2
- package/dist/{reactive-log-BgWSA1fg.d.ts → reactive-log-BlAsPLl2.d.ts} +2 -2
- package/dist/{reactive-log-C3IMAGpT.d.cts → reactive-log-_zeEnB9H.d.cts} +2 -2
- package/dist/{reactive-map-DmgeADH8.d.cts → reactive-map-6P_k3AQM.d.cts} +2 -2
- package/dist/{reactive-map-CHyeCf4D.d.ts → reactive-map-CjXByDV-.d.ts} +2 -2
- package/dist/resilience-S33JV6XC.js +1 -0
- package/dist/{sugar-D13E2M_z.d.ts → sugar-BhfjgetH.d.ts} +1 -1
- package/dist/{sugar-DgaGJcI6.d.cts → sugar-DzePN5-g.d.cts} +1 -1
- package/dist/{topology-tree-jrZue3ao.d.cts → topology-tree-3LBKFsUo.d.cts} +1 -1
- package/dist/{topology-tree-D47-nI6Z.d.ts → topology-tree-mF7Emqzm.d.ts} +1 -1
- package/dist/{types-BMSGPlpO.d.cts → types-1Dhoi7HM.d.cts} +1 -1
- package/dist/{types-CidcBDuk.d.ts → types-39jk0kaV.d.ts} +1 -1
- package/package.json +11 -1
- package/dist/chunk-2YFDSYEF.js +0 -1
- package/dist/chunk-5BGFS2XH.js +0 -1
- package/dist/chunk-CMTN3KPT.js +0 -80
- package/dist/chunk-DQJLC6YY.js +0 -1
- package/dist/chunk-G7JN6LCB.js +0 -1
- package/dist/chunk-KJEAIIIY.js +0 -43
- package/dist/chunk-LV3ACS5J.js +0 -1
- package/dist/chunk-NBGPXQSP.js +0 -1
- package/dist/chunk-NN3QPJ6U.js +0 -1
- package/dist/chunk-NSAZ6PR6.js +0 -1
- package/dist/chunk-O32GJOUJ.js +0 -1
- package/dist/chunk-QEVSIVSF.js +0 -1
- package/dist/chunk-QMC2PLNM.js +0 -7
- package/dist/chunk-QOJFR6GS.js +0 -1
- package/dist/chunk-SFK7MN7S.js +0 -1
- package/dist/chunk-TB7JKSVS.js +0 -61
- package/dist/chunk-UAXFKMAG.js +0 -1
- package/dist/chunk-XIMFHEKV.js +0 -1
- package/dist/chunk-XLMYQB6F.js +0 -1
- package/dist/chunk-XLYF4LBH.js +0 -1
- package/dist/imperative-audit-ahAE65a9.d.cts +0 -28
- package/dist/imperative-audit-ahAE65a9.d.ts +0 -28
- package/dist/index-5dNRlW7J.d.ts +0 -135
- package/dist/index-BWUMIt7J.d.cts +0 -135
- package/dist/index-BhzwpIJc.d.cts +0 -105
- package/dist/index-BsZk9T8y.d.ts +0 -105
- package/dist/index-C56XZiDe.d.cts +0 -163
- package/dist/index-CpdnP-0y.d.cts +0 -186
- package/dist/index-DKrIuF-r.d.ts +0 -163
- package/dist/index-DOU1Ee_k.d.ts +0 -186
- package/dist/resilience-LGBK236C.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Actor,
|
|
2
|
-
import {
|
|
1
|
+
import { A as Actor, o as GraphReFlyConfig, V as VersioningLevel, N as Node, M as Messages, K as NodeSink } from './node-BYInONRr.js';
|
|
2
|
+
import { D as DescribeNodeOutput, a as DescribeDetail, b as DescribeField } from './meta-D8OyedKp.js';
|
|
3
3
|
import { StorageHandle } from './extra/storage-core.js';
|
|
4
4
|
import { SnapshotStorageTier } from './extra/storage-tiers.js';
|
|
5
5
|
|
|
@@ -143,8 +143,10 @@ interface CausalChain {
|
|
|
143
143
|
to: string;
|
|
144
144
|
/** True when a path was found. */
|
|
145
145
|
found: boolean;
|
|
146
|
-
/** Why the chain may be empty/incomplete. `"ok"` when `found` is true.
|
|
147
|
-
|
|
146
|
+
/** Why the chain may be empty/incomplete. `"ok"` when `found` is true.
|
|
147
|
+
* `"pending"` is the reactive-explain sentinel emitted while reactive args
|
|
148
|
+
* are waiting for their first DATA (qa D5). */
|
|
149
|
+
reason: "ok" | "no-such-from" | "no-such-to" | "no-path" | "max-depth-exceeded" | "pending";
|
|
148
150
|
/** Ordered steps — first element is `from`, last is `to`. Empty when `!found`. */
|
|
149
151
|
steps: readonly CausalStep[];
|
|
150
152
|
/** Pretty multi-line rendering. Always present, even on failure (one-line message). */
|
|
@@ -400,51 +402,11 @@ type GraphDescribeOptions = {
|
|
|
400
402
|
* Dotted paths like `"meta.label"` select specific meta keys.
|
|
401
403
|
*/
|
|
402
404
|
fields?: DescribeField[];
|
|
403
|
-
/**
|
|
404
|
-
* Output format.
|
|
405
|
-
* - `undefined` / omitted — return the full {@link GraphDescribeOutput} object.
|
|
406
|
-
* - `"spec"` — GraphSpec input format (object; no status/value, deps as edges).
|
|
407
|
-
* - `"json"` — stable JSON **text** with sorted keys.
|
|
408
|
-
* - `"pretty"` — human-readable plaintext (optionally colorized; see
|
|
409
|
-
* `colorize` / `indent` / `logger` / `includeEdges` / `includeSubgraphs`).
|
|
410
|
-
* - `"mermaid"` — Mermaid flowchart text.
|
|
411
|
-
* - `"mermaid-url"` — `https://mermaid.live/edit#base64:…` deep link (one
|
|
412
|
-
* clickable URL, opens the `"mermaid"` source in the mermaid.live editor).
|
|
413
|
-
* No network calls — the payload is encoded into the URL fragment.
|
|
414
|
-
* - `"d2"` — D2 diagram text.
|
|
415
|
-
* - `"ascii"` — stdout-native DAG flowchart rendered with Unicode
|
|
416
|
-
* box-drawing glyphs (or `asciiCharset: "ascii"` for pure ASCII).
|
|
417
|
-
* Graph-size independent: proper Sugiyama layout handles wide + deep
|
|
418
|
-
* DAGs. Supports `direction: "LR" | "TD"`.
|
|
419
|
-
*/
|
|
420
|
-
format?: "spec" | "json" | "pretty" | "mermaid" | "mermaid-url" | "d2" | "ascii";
|
|
421
|
-
/** Pretty/diagram render: direction for diagram formats (default `LR`). */
|
|
422
|
-
direction?: GraphDiagramDirection;
|
|
423
|
-
/** Pretty/JSON render: indent (default 2 for JSON, ignored for pretty). */
|
|
424
|
-
indent?: number;
|
|
425
|
-
/** Pretty/ASCII render: optional logger hook; fires with the rendered text before return. */
|
|
426
|
-
logger?: (text: string) => void;
|
|
427
|
-
/** Pretty render: include an Edges section (default `true`). */
|
|
428
|
-
includeEdges?: boolean;
|
|
429
|
-
/** Pretty render: include a Subgraphs section (default `true`). */
|
|
430
|
-
includeSubgraphs?: boolean;
|
|
431
|
-
/**
|
|
432
|
-
* ASCII render: per-box label cell cap; longer labels are truncated with `…`.
|
|
433
|
-
* Default `24`. Applies only to `format: "ascii"`.
|
|
434
|
-
*/
|
|
435
|
-
maxLabelWidth?: number;
|
|
436
|
-
/**
|
|
437
|
-
* ASCII render: Unicode box-drawing glyphs (`"unicode"`, default) or a
|
|
438
|
-
* plain ASCII fallback (`"ascii"`, uses `-|+<>v`). Applies only to
|
|
439
|
-
* `format: "ascii"`.
|
|
440
|
-
*/
|
|
441
|
-
asciiCharset?: "unicode" | "ascii";
|
|
442
405
|
/**
|
|
443
406
|
* Reactive describe (D2):
|
|
444
407
|
* - `true` — return `{ node, dispose }` where `node` emits a fresh
|
|
445
|
-
* `GraphDescribeOutput`
|
|
446
|
-
*
|
|
447
|
-
* `{ reactive: true }`.
|
|
408
|
+
* `GraphDescribeOutput` every time the graph state settles. Same
|
|
409
|
+
* coalescing as {@link Graph.explain} with `{ reactive: true }`.
|
|
448
410
|
* - `"diff"` — return `{ node, dispose }` where `node` emits a
|
|
449
411
|
* {@link DescribeChangeset} per topology change. Empty changesets are
|
|
450
412
|
* suppressed; the initial cache is a synthetic full-add diff so a fresh
|
|
@@ -572,19 +534,13 @@ type TopologyEvent = {
|
|
|
572
534
|
nodeKind: "node" | "mount";
|
|
573
535
|
audit: GraphRemoveAudit;
|
|
574
536
|
};
|
|
575
|
-
/**
|
|
537
|
+
/**
|
|
538
|
+
* Direction options for diagram exports. Mirrors `DiagramDirection` from
|
|
539
|
+
* `@graphrefly/graphrefly/extra/render` (the renderers consume their own
|
|
540
|
+
* structurally-identical type) — re-exported here so callers building
|
|
541
|
+
* options for `Graph` ergonomics don't need a separate import.
|
|
542
|
+
*/
|
|
576
543
|
type GraphDiagramDirection = "TD" | "LR" | "BT" | "RL";
|
|
577
|
-
/** Options for {@link Graph.toMermaid} / {@link Graph.toD2}. */
|
|
578
|
-
type GraphDiagramOptions = {
|
|
579
|
-
/**
|
|
580
|
-
* Diagram flow direction.
|
|
581
|
-
* - `TD`: top-down
|
|
582
|
-
* - `LR`: left-right (default)
|
|
583
|
-
* - `BT`: bottom-top
|
|
584
|
-
* - `RL`: right-left
|
|
585
|
-
*/
|
|
586
|
-
direction?: GraphDiagramDirection;
|
|
587
|
-
};
|
|
588
544
|
/**
|
|
589
545
|
* Snapshot format version (§3.8). Exported so the surface layer's
|
|
590
546
|
* `saveSnapshot` writes the same `format_version` as
|
|
@@ -592,19 +548,6 @@ type GraphDiagramOptions = {
|
|
|
592
548
|
* drift between auto-checkpoint and one-shot persistence paths.
|
|
593
549
|
*/
|
|
594
550
|
declare const SNAPSHOT_VERSION = 1;
|
|
595
|
-
/**
|
|
596
|
-
* Encode a mermaid source string to a `https://mermaid.live/edit#base64:…`
|
|
597
|
-
* deep link. Round-trip with the mermaid.live editor's `/edit#base64:`
|
|
598
|
-
* share format — payload is `base64url(JSON({code, mermaid: {theme}, ...}))`.
|
|
599
|
-
*
|
|
600
|
-
* Exported so callers that already have rendered mermaid text (e.g. from
|
|
601
|
-
* `describe({ format: "mermaid" })`) can upgrade to a live-editor URL
|
|
602
|
-
* without re-rendering. Pairs with `describe({ format: "mermaid-url" })`.
|
|
603
|
-
*/
|
|
604
|
-
declare function mermaidLiveUrl(mermaidSrc: string, opts?: {
|
|
605
|
-
theme?: "default" | "dark" | "forest" | "neutral" | "base";
|
|
606
|
-
autoSync?: boolean;
|
|
607
|
-
}): string;
|
|
608
551
|
/**
|
|
609
552
|
* Option shapes that trigger structured-mode dispatch in {@link Graph.observe}.
|
|
610
553
|
* Presence of any of these fields (truthy) → returns {@link ObserveResult};
|
|
@@ -1174,36 +1117,53 @@ declare class Graph {
|
|
|
1174
1117
|
/**
|
|
1175
1118
|
* Static structure snapshot: qualified node keys, edges, mount names (GRAPHREFLY-SPEC §3.6, Appendix B).
|
|
1176
1119
|
*
|
|
1177
|
-
*
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1120
|
+
* Returns the {@link GraphDescribeOutput} object directly (or a
|
|
1121
|
+
* `ReactiveDescribeHandle` when `{ reactive: true | "diff" }` is set).
|
|
1122
|
+
*
|
|
1123
|
+
* For formatted output (Mermaid / D2 / ASCII / pretty / JSON text), pass
|
|
1124
|
+
* the snapshot to one of the pure renderers in
|
|
1125
|
+
* `@graphrefly/graphrefly/extra/render`:
|
|
1126
|
+
*
|
|
1127
|
+
* ```ts
|
|
1128
|
+
* import { toMermaid, toAscii } from "@graphrefly/graphrefly/extra/render";
|
|
1129
|
+
*
|
|
1130
|
+
* const mermaid = toMermaid(graph.describe());
|
|
1131
|
+
* const ascii = toAscii(graph.describe(), { direction: "TD" });
|
|
1132
|
+
* ```
|
|
1133
|
+
*
|
|
1134
|
+
* For live formatted output, compose with `derived`:
|
|
1135
|
+
*
|
|
1136
|
+
* ```ts
|
|
1137
|
+
* import { derived } from "@graphrefly/graphrefly";
|
|
1138
|
+
* import { toMermaid } from "@graphrefly/graphrefly/extra/render";
|
|
1139
|
+
*
|
|
1140
|
+
* const live = derived(
|
|
1141
|
+
* [graph.describe({ reactive: true }).node],
|
|
1142
|
+
* ([g]) => toMermaid(g),
|
|
1143
|
+
* );
|
|
1144
|
+
* ```
|
|
1145
|
+
*
|
|
1146
|
+
* For the spec projection (type + deps + meta, strip runtime status/value),
|
|
1147
|
+
* pass `detail: "spec"`.
|
|
1180
1148
|
*
|
|
1181
|
-
* @param options - Optional `actor` for guard-scoped visibility, `filter`
|
|
1182
|
-
* selective output,
|
|
1149
|
+
* @param options - Optional `actor` for guard-scoped visibility, `filter`
|
|
1150
|
+
* for selective output, `detail` / `fields` for projection, `reactive`
|
|
1151
|
+
* for the live handle.
|
|
1183
1152
|
*
|
|
1184
1153
|
* @example
|
|
1185
1154
|
* ```ts
|
|
1186
1155
|
* graph.describe() // full snapshot object
|
|
1187
1156
|
* graph.describe({ filter: { status: "errored" } }) // filtered object
|
|
1188
|
-
* graph.describe({
|
|
1189
|
-
* graph.describe({
|
|
1190
|
-
* graph.describe({ format: "d2", direction: "TD" }) // D2 top-down
|
|
1191
|
-
* graph.describe({ format: "ascii" }) // stdout DAG flowchart
|
|
1157
|
+
* graph.describe({ detail: "spec" }) // GraphSpec projection
|
|
1158
|
+
* graph.describe({ reactive: true }) // live snapshot Node
|
|
1192
1159
|
* ```
|
|
1193
1160
|
*/
|
|
1194
|
-
describe(options: GraphDescribeOptions & {
|
|
1195
|
-
reactive: true;
|
|
1196
|
-
format: "json" | "pretty" | "mermaid" | "mermaid-url" | "d2" | "ascii";
|
|
1197
|
-
}): ReactiveDescribeHandle<string>;
|
|
1198
1161
|
describe(options: GraphDescribeOptions & {
|
|
1199
1162
|
reactive: "diff";
|
|
1200
1163
|
}): ReactiveDescribeHandle<DescribeChangeset>;
|
|
1201
1164
|
describe(options: GraphDescribeOptions & {
|
|
1202
1165
|
reactive: true;
|
|
1203
1166
|
}): ReactiveDescribeHandle<GraphDescribeOutput>;
|
|
1204
|
-
describe(options: GraphDescribeOptions & {
|
|
1205
|
-
format: "json" | "pretty" | "mermaid" | "mermaid-url" | "d2" | "ascii";
|
|
1206
|
-
}): string;
|
|
1207
1167
|
describe(options?: GraphDescribeOptions): GraphDescribeOutput;
|
|
1208
1168
|
private _collectSubgraphs;
|
|
1209
1169
|
/**
|
|
@@ -1230,28 +1190,44 @@ declare class Graph {
|
|
|
1230
1190
|
*
|
|
1231
1191
|
* Same question, two answers:
|
|
1232
1192
|
* - **Static (default)** — `explain(from, to, opts?)` returns a single
|
|
1233
|
-
* {@link CausalChain} snapshot of the graph at call time.
|
|
1193
|
+
* {@link CausalChain} snapshot of the graph at call time. Reactive
|
|
1194
|
+
* args (any `Node<...>`) are resolved to their current cache once.
|
|
1234
1195
|
* - **Reactive** — `explain(from, to, { reactive: true, ... })` returns
|
|
1235
1196
|
* `{ node: Node<CausalChain>; dispose: () => void }`. The node
|
|
1236
1197
|
* recomputes whenever a `data` / `error` / `complete` / `teardown`
|
|
1237
|
-
* event fires anywhere on the graph's structured observe stream
|
|
1238
|
-
*
|
|
1198
|
+
* event fires anywhere on the graph's structured observe stream OR
|
|
1199
|
+
* any reactive arg (`Node<string>` for `from`/`to`,
|
|
1200
|
+
* `Node<number>` for `maxDepth`, `Node<boolean>` for `findCycle`)
|
|
1201
|
+
* emits. Replaces the former `reactiveExplainPath`.
|
|
1202
|
+
*
|
|
1203
|
+
* Tier 3.5 reactive-opt carve-out (F.9): `from`, `to`, `maxDepth`, and
|
|
1204
|
+
* `findCycle` accept `Node<...>` in addition to their plain types. When
|
|
1205
|
+
* mixed (some reactive, some static), the reactive variant subscribes only
|
|
1206
|
+
* to the Node-typed args; static args pass through unchanged. The static
|
|
1207
|
+
* call snapshots all reactive args at call time — for live re-walking, use
|
|
1208
|
+
* `{ reactive: true }`.
|
|
1209
|
+
*
|
|
1210
|
+
* **File path-scoped observe is deferred** — the reactive variant
|
|
1211
|
+
* subscribes to whole-graph observe today (a perf gap, not a spec
|
|
1212
|
+
* violation). Tracked in `docs/optimizations.md` Tier 10.8 deferred
|
|
1213
|
+
* follow-up: "reactiveExplainPath file-path-scoped observe".
|
|
1239
1214
|
*
|
|
1240
|
-
* @param from - Upstream node (the cause).
|
|
1241
|
-
* @param to - Downstream node (the effect).
|
|
1242
|
-
* @param opts - Optional `maxDepth`
|
|
1215
|
+
* @param from - Upstream node path (the cause). `string | Node<string>`.
|
|
1216
|
+
* @param to - Downstream node path (the effect). `string | Node<string>`.
|
|
1217
|
+
* @param opts - Optional `maxDepth` (`number | Node<number>`) and
|
|
1218
|
+
* `findCycle` (`boolean | Node<boolean>`). When `findCycle:true`
|
|
1243
1219
|
* and `from === to`, returns the shortest cycle through other nodes
|
|
1244
1220
|
* (useful for diagnosing feedback loops, COMPOSITION-GUIDE §7).
|
|
1245
1221
|
* When `reactive: true`, also accepts `name?`.
|
|
1246
1222
|
*/
|
|
1247
|
-
explain(from: string
|
|
1248
|
-
maxDepth?: number
|
|
1249
|
-
findCycle?: boolean
|
|
1223
|
+
explain(from: string | Node<string>, to: string | Node<string>, opts?: {
|
|
1224
|
+
maxDepth?: number | Node<number>;
|
|
1225
|
+
findCycle?: boolean | Node<boolean>;
|
|
1250
1226
|
}): CausalChain;
|
|
1251
|
-
explain(from: string
|
|
1227
|
+
explain(from: string | Node<string>, to: string | Node<string>, opts: {
|
|
1252
1228
|
reactive: true;
|
|
1253
|
-
maxDepth?: number
|
|
1254
|
-
findCycle?: boolean
|
|
1229
|
+
maxDepth?: number | Node<number>;
|
|
1230
|
+
findCycle?: boolean | Node<boolean>;
|
|
1255
1231
|
name?: string;
|
|
1256
1232
|
}): {
|
|
1257
1233
|
node: Node<CausalChain>;
|
|
@@ -1689,4 +1665,4 @@ declare function reachable(described: GraphDescribeOutput, from: string, directi
|
|
|
1689
1665
|
}): ReachableResult;
|
|
1690
1666
|
declare function reachable(described: GraphDescribeOutput, from: string, direction: ReachableDirection, options?: ReachableOptions): string[];
|
|
1691
1667
|
|
|
1692
|
-
export { type ObserveTheme as A, type ObserveThemeName as B, type CausalChain as C, type DescribeFilter as D, type ExplainPathOptions as E, type
|
|
1668
|
+
export { type ObserveTheme as A, type ObserveThemeName as B, type CausalChain as C, type DescribeFilter as D, type ExplainPathOptions as E, type ObserveTier as F, Graph as G, type ReachableOptions as H, type TraceEntry as I, diffForWAL as J, explainPath as K, graphProfile as L, type Meta as M, type NodeProfile as N, type ObserveChangeset as O, reachable as P, topologyDiff as Q, type ReachableDirection as R, SNAPSHOT_VERSION as S, type TopologyEvent as T, type GraphOptions as a, type GraphDescribeOutput as b, type GraphPersistSnapshot as c, type GraphDescribeOptions as d, type CausalStep as e, type DescribeChangeset as f, type DescribeEvent as g, GRAPH_META_SEGMENT as h, type GraphActorOptions as i, type GraphAttachStorageOptions as j, type GraphCheckpointRecord as k, type GraphDiagramDirection as l, type GraphDiffChange as m, type GraphDiffResult as n, type GraphFactoryContext as o, type GraphNodeFactory as p, type GraphObserveAll as q, type GraphObserveOne as r, type GraphProfileOptions as s, type GraphProfileResult as t, type GraphVersionChange as u, type GraphWALDiff as v, type ObserveDetail as w, type ObserveEvent as x, type ObserveOptions as y, type ObserveResult as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Actor,
|
|
2
|
-
import {
|
|
1
|
+
import { A as Actor, o as GraphReFlyConfig, V as VersioningLevel, N as Node, M as Messages, K as NodeSink } from './node-BYInONRr.cjs';
|
|
2
|
+
import { D as DescribeNodeOutput, a as DescribeDetail, b as DescribeField } from './meta-Ct9nqQS5.cjs';
|
|
3
3
|
import { StorageHandle } from './extra/storage-core.cjs';
|
|
4
4
|
import { SnapshotStorageTier } from './extra/storage-tiers.cjs';
|
|
5
5
|
|
|
@@ -143,8 +143,10 @@ interface CausalChain {
|
|
|
143
143
|
to: string;
|
|
144
144
|
/** True when a path was found. */
|
|
145
145
|
found: boolean;
|
|
146
|
-
/** Why the chain may be empty/incomplete. `"ok"` when `found` is true.
|
|
147
|
-
|
|
146
|
+
/** Why the chain may be empty/incomplete. `"ok"` when `found` is true.
|
|
147
|
+
* `"pending"` is the reactive-explain sentinel emitted while reactive args
|
|
148
|
+
* are waiting for their first DATA (qa D5). */
|
|
149
|
+
reason: "ok" | "no-such-from" | "no-such-to" | "no-path" | "max-depth-exceeded" | "pending";
|
|
148
150
|
/** Ordered steps — first element is `from`, last is `to`. Empty when `!found`. */
|
|
149
151
|
steps: readonly CausalStep[];
|
|
150
152
|
/** Pretty multi-line rendering. Always present, even on failure (one-line message). */
|
|
@@ -400,51 +402,11 @@ type GraphDescribeOptions = {
|
|
|
400
402
|
* Dotted paths like `"meta.label"` select specific meta keys.
|
|
401
403
|
*/
|
|
402
404
|
fields?: DescribeField[];
|
|
403
|
-
/**
|
|
404
|
-
* Output format.
|
|
405
|
-
* - `undefined` / omitted — return the full {@link GraphDescribeOutput} object.
|
|
406
|
-
* - `"spec"` — GraphSpec input format (object; no status/value, deps as edges).
|
|
407
|
-
* - `"json"` — stable JSON **text** with sorted keys.
|
|
408
|
-
* - `"pretty"` — human-readable plaintext (optionally colorized; see
|
|
409
|
-
* `colorize` / `indent` / `logger` / `includeEdges` / `includeSubgraphs`).
|
|
410
|
-
* - `"mermaid"` — Mermaid flowchart text.
|
|
411
|
-
* - `"mermaid-url"` — `https://mermaid.live/edit#base64:…` deep link (one
|
|
412
|
-
* clickable URL, opens the `"mermaid"` source in the mermaid.live editor).
|
|
413
|
-
* No network calls — the payload is encoded into the URL fragment.
|
|
414
|
-
* - `"d2"` — D2 diagram text.
|
|
415
|
-
* - `"ascii"` — stdout-native DAG flowchart rendered with Unicode
|
|
416
|
-
* box-drawing glyphs (or `asciiCharset: "ascii"` for pure ASCII).
|
|
417
|
-
* Graph-size independent: proper Sugiyama layout handles wide + deep
|
|
418
|
-
* DAGs. Supports `direction: "LR" | "TD"`.
|
|
419
|
-
*/
|
|
420
|
-
format?: "spec" | "json" | "pretty" | "mermaid" | "mermaid-url" | "d2" | "ascii";
|
|
421
|
-
/** Pretty/diagram render: direction for diagram formats (default `LR`). */
|
|
422
|
-
direction?: GraphDiagramDirection;
|
|
423
|
-
/** Pretty/JSON render: indent (default 2 for JSON, ignored for pretty). */
|
|
424
|
-
indent?: number;
|
|
425
|
-
/** Pretty/ASCII render: optional logger hook; fires with the rendered text before return. */
|
|
426
|
-
logger?: (text: string) => void;
|
|
427
|
-
/** Pretty render: include an Edges section (default `true`). */
|
|
428
|
-
includeEdges?: boolean;
|
|
429
|
-
/** Pretty render: include a Subgraphs section (default `true`). */
|
|
430
|
-
includeSubgraphs?: boolean;
|
|
431
|
-
/**
|
|
432
|
-
* ASCII render: per-box label cell cap; longer labels are truncated with `…`.
|
|
433
|
-
* Default `24`. Applies only to `format: "ascii"`.
|
|
434
|
-
*/
|
|
435
|
-
maxLabelWidth?: number;
|
|
436
|
-
/**
|
|
437
|
-
* ASCII render: Unicode box-drawing glyphs (`"unicode"`, default) or a
|
|
438
|
-
* plain ASCII fallback (`"ascii"`, uses `-|+<>v`). Applies only to
|
|
439
|
-
* `format: "ascii"`.
|
|
440
|
-
*/
|
|
441
|
-
asciiCharset?: "unicode" | "ascii";
|
|
442
405
|
/**
|
|
443
406
|
* Reactive describe (D2):
|
|
444
407
|
* - `true` — return `{ node, dispose }` where `node` emits a fresh
|
|
445
|
-
* `GraphDescribeOutput`
|
|
446
|
-
*
|
|
447
|
-
* `{ reactive: true }`.
|
|
408
|
+
* `GraphDescribeOutput` every time the graph state settles. Same
|
|
409
|
+
* coalescing as {@link Graph.explain} with `{ reactive: true }`.
|
|
448
410
|
* - `"diff"` — return `{ node, dispose }` where `node` emits a
|
|
449
411
|
* {@link DescribeChangeset} per topology change. Empty changesets are
|
|
450
412
|
* suppressed; the initial cache is a synthetic full-add diff so a fresh
|
|
@@ -572,19 +534,13 @@ type TopologyEvent = {
|
|
|
572
534
|
nodeKind: "node" | "mount";
|
|
573
535
|
audit: GraphRemoveAudit;
|
|
574
536
|
};
|
|
575
|
-
/**
|
|
537
|
+
/**
|
|
538
|
+
* Direction options for diagram exports. Mirrors `DiagramDirection` from
|
|
539
|
+
* `@graphrefly/graphrefly/extra/render` (the renderers consume their own
|
|
540
|
+
* structurally-identical type) — re-exported here so callers building
|
|
541
|
+
* options for `Graph` ergonomics don't need a separate import.
|
|
542
|
+
*/
|
|
576
543
|
type GraphDiagramDirection = "TD" | "LR" | "BT" | "RL";
|
|
577
|
-
/** Options for {@link Graph.toMermaid} / {@link Graph.toD2}. */
|
|
578
|
-
type GraphDiagramOptions = {
|
|
579
|
-
/**
|
|
580
|
-
* Diagram flow direction.
|
|
581
|
-
* - `TD`: top-down
|
|
582
|
-
* - `LR`: left-right (default)
|
|
583
|
-
* - `BT`: bottom-top
|
|
584
|
-
* - `RL`: right-left
|
|
585
|
-
*/
|
|
586
|
-
direction?: GraphDiagramDirection;
|
|
587
|
-
};
|
|
588
544
|
/**
|
|
589
545
|
* Snapshot format version (§3.8). Exported so the surface layer's
|
|
590
546
|
* `saveSnapshot` writes the same `format_version` as
|
|
@@ -592,19 +548,6 @@ type GraphDiagramOptions = {
|
|
|
592
548
|
* drift between auto-checkpoint and one-shot persistence paths.
|
|
593
549
|
*/
|
|
594
550
|
declare const SNAPSHOT_VERSION = 1;
|
|
595
|
-
/**
|
|
596
|
-
* Encode a mermaid source string to a `https://mermaid.live/edit#base64:…`
|
|
597
|
-
* deep link. Round-trip with the mermaid.live editor's `/edit#base64:`
|
|
598
|
-
* share format — payload is `base64url(JSON({code, mermaid: {theme}, ...}))`.
|
|
599
|
-
*
|
|
600
|
-
* Exported so callers that already have rendered mermaid text (e.g. from
|
|
601
|
-
* `describe({ format: "mermaid" })`) can upgrade to a live-editor URL
|
|
602
|
-
* without re-rendering. Pairs with `describe({ format: "mermaid-url" })`.
|
|
603
|
-
*/
|
|
604
|
-
declare function mermaidLiveUrl(mermaidSrc: string, opts?: {
|
|
605
|
-
theme?: "default" | "dark" | "forest" | "neutral" | "base";
|
|
606
|
-
autoSync?: boolean;
|
|
607
|
-
}): string;
|
|
608
551
|
/**
|
|
609
552
|
* Option shapes that trigger structured-mode dispatch in {@link Graph.observe}.
|
|
610
553
|
* Presence of any of these fields (truthy) → returns {@link ObserveResult};
|
|
@@ -1174,36 +1117,53 @@ declare class Graph {
|
|
|
1174
1117
|
/**
|
|
1175
1118
|
* Static structure snapshot: qualified node keys, edges, mount names (GRAPHREFLY-SPEC §3.6, Appendix B).
|
|
1176
1119
|
*
|
|
1177
|
-
*
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1120
|
+
* Returns the {@link GraphDescribeOutput} object directly (or a
|
|
1121
|
+
* `ReactiveDescribeHandle` when `{ reactive: true | "diff" }` is set).
|
|
1122
|
+
*
|
|
1123
|
+
* For formatted output (Mermaid / D2 / ASCII / pretty / JSON text), pass
|
|
1124
|
+
* the snapshot to one of the pure renderers in
|
|
1125
|
+
* `@graphrefly/graphrefly/extra/render`:
|
|
1126
|
+
*
|
|
1127
|
+
* ```ts
|
|
1128
|
+
* import { toMermaid, toAscii } from "@graphrefly/graphrefly/extra/render";
|
|
1129
|
+
*
|
|
1130
|
+
* const mermaid = toMermaid(graph.describe());
|
|
1131
|
+
* const ascii = toAscii(graph.describe(), { direction: "TD" });
|
|
1132
|
+
* ```
|
|
1133
|
+
*
|
|
1134
|
+
* For live formatted output, compose with `derived`:
|
|
1135
|
+
*
|
|
1136
|
+
* ```ts
|
|
1137
|
+
* import { derived } from "@graphrefly/graphrefly";
|
|
1138
|
+
* import { toMermaid } from "@graphrefly/graphrefly/extra/render";
|
|
1139
|
+
*
|
|
1140
|
+
* const live = derived(
|
|
1141
|
+
* [graph.describe({ reactive: true }).node],
|
|
1142
|
+
* ([g]) => toMermaid(g),
|
|
1143
|
+
* );
|
|
1144
|
+
* ```
|
|
1145
|
+
*
|
|
1146
|
+
* For the spec projection (type + deps + meta, strip runtime status/value),
|
|
1147
|
+
* pass `detail: "spec"`.
|
|
1180
1148
|
*
|
|
1181
|
-
* @param options - Optional `actor` for guard-scoped visibility, `filter`
|
|
1182
|
-
* selective output,
|
|
1149
|
+
* @param options - Optional `actor` for guard-scoped visibility, `filter`
|
|
1150
|
+
* for selective output, `detail` / `fields` for projection, `reactive`
|
|
1151
|
+
* for the live handle.
|
|
1183
1152
|
*
|
|
1184
1153
|
* @example
|
|
1185
1154
|
* ```ts
|
|
1186
1155
|
* graph.describe() // full snapshot object
|
|
1187
1156
|
* graph.describe({ filter: { status: "errored" } }) // filtered object
|
|
1188
|
-
* graph.describe({
|
|
1189
|
-
* graph.describe({
|
|
1190
|
-
* graph.describe({ format: "d2", direction: "TD" }) // D2 top-down
|
|
1191
|
-
* graph.describe({ format: "ascii" }) // stdout DAG flowchart
|
|
1157
|
+
* graph.describe({ detail: "spec" }) // GraphSpec projection
|
|
1158
|
+
* graph.describe({ reactive: true }) // live snapshot Node
|
|
1192
1159
|
* ```
|
|
1193
1160
|
*/
|
|
1194
|
-
describe(options: GraphDescribeOptions & {
|
|
1195
|
-
reactive: true;
|
|
1196
|
-
format: "json" | "pretty" | "mermaid" | "mermaid-url" | "d2" | "ascii";
|
|
1197
|
-
}): ReactiveDescribeHandle<string>;
|
|
1198
1161
|
describe(options: GraphDescribeOptions & {
|
|
1199
1162
|
reactive: "diff";
|
|
1200
1163
|
}): ReactiveDescribeHandle<DescribeChangeset>;
|
|
1201
1164
|
describe(options: GraphDescribeOptions & {
|
|
1202
1165
|
reactive: true;
|
|
1203
1166
|
}): ReactiveDescribeHandle<GraphDescribeOutput>;
|
|
1204
|
-
describe(options: GraphDescribeOptions & {
|
|
1205
|
-
format: "json" | "pretty" | "mermaid" | "mermaid-url" | "d2" | "ascii";
|
|
1206
|
-
}): string;
|
|
1207
1167
|
describe(options?: GraphDescribeOptions): GraphDescribeOutput;
|
|
1208
1168
|
private _collectSubgraphs;
|
|
1209
1169
|
/**
|
|
@@ -1230,28 +1190,44 @@ declare class Graph {
|
|
|
1230
1190
|
*
|
|
1231
1191
|
* Same question, two answers:
|
|
1232
1192
|
* - **Static (default)** — `explain(from, to, opts?)` returns a single
|
|
1233
|
-
* {@link CausalChain} snapshot of the graph at call time.
|
|
1193
|
+
* {@link CausalChain} snapshot of the graph at call time. Reactive
|
|
1194
|
+
* args (any `Node<...>`) are resolved to their current cache once.
|
|
1234
1195
|
* - **Reactive** — `explain(from, to, { reactive: true, ... })` returns
|
|
1235
1196
|
* `{ node: Node<CausalChain>; dispose: () => void }`. The node
|
|
1236
1197
|
* recomputes whenever a `data` / `error` / `complete` / `teardown`
|
|
1237
|
-
* event fires anywhere on the graph's structured observe stream
|
|
1238
|
-
*
|
|
1198
|
+
* event fires anywhere on the graph's structured observe stream OR
|
|
1199
|
+
* any reactive arg (`Node<string>` for `from`/`to`,
|
|
1200
|
+
* `Node<number>` for `maxDepth`, `Node<boolean>` for `findCycle`)
|
|
1201
|
+
* emits. Replaces the former `reactiveExplainPath`.
|
|
1202
|
+
*
|
|
1203
|
+
* Tier 3.5 reactive-opt carve-out (F.9): `from`, `to`, `maxDepth`, and
|
|
1204
|
+
* `findCycle` accept `Node<...>` in addition to their plain types. When
|
|
1205
|
+
* mixed (some reactive, some static), the reactive variant subscribes only
|
|
1206
|
+
* to the Node-typed args; static args pass through unchanged. The static
|
|
1207
|
+
* call snapshots all reactive args at call time — for live re-walking, use
|
|
1208
|
+
* `{ reactive: true }`.
|
|
1209
|
+
*
|
|
1210
|
+
* **File path-scoped observe is deferred** — the reactive variant
|
|
1211
|
+
* subscribes to whole-graph observe today (a perf gap, not a spec
|
|
1212
|
+
* violation). Tracked in `docs/optimizations.md` Tier 10.8 deferred
|
|
1213
|
+
* follow-up: "reactiveExplainPath file-path-scoped observe".
|
|
1239
1214
|
*
|
|
1240
|
-
* @param from - Upstream node (the cause).
|
|
1241
|
-
* @param to - Downstream node (the effect).
|
|
1242
|
-
* @param opts - Optional `maxDepth`
|
|
1215
|
+
* @param from - Upstream node path (the cause). `string | Node<string>`.
|
|
1216
|
+
* @param to - Downstream node path (the effect). `string | Node<string>`.
|
|
1217
|
+
* @param opts - Optional `maxDepth` (`number | Node<number>`) and
|
|
1218
|
+
* `findCycle` (`boolean | Node<boolean>`). When `findCycle:true`
|
|
1243
1219
|
* and `from === to`, returns the shortest cycle through other nodes
|
|
1244
1220
|
* (useful for diagnosing feedback loops, COMPOSITION-GUIDE §7).
|
|
1245
1221
|
* When `reactive: true`, also accepts `name?`.
|
|
1246
1222
|
*/
|
|
1247
|
-
explain(from: string
|
|
1248
|
-
maxDepth?: number
|
|
1249
|
-
findCycle?: boolean
|
|
1223
|
+
explain(from: string | Node<string>, to: string | Node<string>, opts?: {
|
|
1224
|
+
maxDepth?: number | Node<number>;
|
|
1225
|
+
findCycle?: boolean | Node<boolean>;
|
|
1250
1226
|
}): CausalChain;
|
|
1251
|
-
explain(from: string
|
|
1227
|
+
explain(from: string | Node<string>, to: string | Node<string>, opts: {
|
|
1252
1228
|
reactive: true;
|
|
1253
|
-
maxDepth?: number
|
|
1254
|
-
findCycle?: boolean
|
|
1229
|
+
maxDepth?: number | Node<number>;
|
|
1230
|
+
findCycle?: boolean | Node<boolean>;
|
|
1255
1231
|
name?: string;
|
|
1256
1232
|
}): {
|
|
1257
1233
|
node: Node<CausalChain>;
|
|
@@ -1689,4 +1665,4 @@ declare function reachable(described: GraphDescribeOutput, from: string, directi
|
|
|
1689
1665
|
}): ReachableResult;
|
|
1690
1666
|
declare function reachable(described: GraphDescribeOutput, from: string, direction: ReachableDirection, options?: ReachableOptions): string[];
|
|
1691
1667
|
|
|
1692
|
-
export { type ObserveTheme as A, type ObserveThemeName as B, type CausalChain as C, type DescribeFilter as D, type ExplainPathOptions as E, type
|
|
1668
|
+
export { type ObserveTheme as A, type ObserveThemeName as B, type CausalChain as C, type DescribeFilter as D, type ExplainPathOptions as E, type ObserveTier as F, Graph as G, type ReachableOptions as H, type TraceEntry as I, diffForWAL as J, explainPath as K, graphProfile as L, type Meta as M, type NodeProfile as N, type ObserveChangeset as O, reachable as P, topologyDiff as Q, type ReachableDirection as R, SNAPSHOT_VERSION as S, type TopologyEvent as T, type GraphOptions as a, type GraphDescribeOutput as b, type GraphPersistSnapshot as c, type GraphDescribeOptions as d, type CausalStep as e, type DescribeChangeset as f, type DescribeEvent as g, GRAPH_META_SEGMENT as h, type GraphActorOptions as i, type GraphAttachStorageOptions as j, type GraphCheckpointRecord as k, type GraphDiagramDirection as l, type GraphDiffChange as m, type GraphDiffResult as n, type GraphFactoryContext as o, type GraphNodeFactory as p, type GraphObserveAll as q, type GraphObserveOne as r, type GraphProfileOptions as s, type GraphProfileResult as t, type GraphVersionChange as u, type GraphWALDiff as v, type ObserveDetail as w, type ObserveEvent as x, type ObserveOptions as y, type ObserveResult as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MeasurementAdapter, P as PreparedSegment, L as LineBreaksResult, C as CharPosition, a as LayoutCursor, I as Interval, b as LayoutLine, c as LayoutNextLineContext, d as LayoutNextLineResult, R as ReactiveLayoutBundle, e as ReactiveLayoutOptions, S as SegmentBreakKind, f as SegmentMeasureStats, g as analyzeAndMeasure, h as carveTextLineSlots, i as computeCharPositions, j as computeLineBreaks, l as layoutNextLine, r as reactiveLayout } from './reactive-layout-
|
|
2
|
-
import {
|
|
3
|
-
import { G as Graph } from './graph-
|
|
1
|
+
import { M as MeasurementAdapter, P as PreparedSegment, L as LineBreaksResult, C as CharPosition, a as LayoutCursor, I as Interval, b as LayoutLine, c as LayoutNextLineContext, d as LayoutNextLineResult, R as ReactiveLayoutBundle, e as ReactiveLayoutOptions, S as SegmentBreakKind, f as SegmentMeasureStats, g as analyzeAndMeasure, h as carveTextLineSlots, i as computeCharPositions, j as computeLineBreaks, l as layoutNextLine, r as reactiveLayout } from './reactive-layout-KJj4E2dT.js';
|
|
2
|
+
import { N as Node } from './node-BYInONRr.js';
|
|
3
|
+
import { G as Graph } from './graph-BkIkog4h.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* MeasurementAdapter implementations (roadmap §7.1 — pluggable backends).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { G as Graph, a as GraphOptions } from './graph-
|
|
3
|
-
import {
|
|
1
|
+
import { N as Node } from './node-BYInONRr.js';
|
|
2
|
+
import { G as Graph, a as GraphOptions } from './graph-BkIkog4h.js';
|
|
3
|
+
import { a as ReactiveLogBundle } from './reactive-log-BlAsPLl2.js';
|
|
4
4
|
import { AppendLogStorageTier } from './extra/storage-tiers.js';
|
|
5
5
|
|
|
6
6
|
type TopicOptions = {
|