@graphrefly/graphrefly 0.38.0 → 0.39.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-BzuxW0_w.d.cts} +2 -2
- package/dist/{cascading-B25wxpRa.d.cts → cascading-g2_rhhaM.d.ts} +2 -2
- 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-5LK7XMEV.js +1 -0
- package/dist/{chunk-FWGIZP3W.js → chunk-5XRI6RM3.js} +1 -1
- package/dist/chunk-73PBQNST.js +1 -0
- package/dist/chunk-7JRF5YEK.js +3 -0
- package/dist/{chunk-4BDQXBXE.js → chunk-7NZMZJMW.js} +1 -1
- package/dist/chunk-7QFRK3N3.js +84 -0
- package/dist/{chunk-POCWFIJ7.js → chunk-7SD73DS6.js} +1 -1
- package/dist/{chunk-NBGPXQSP.js → chunk-A6ZSKGUG.js} +1 -1
- package/dist/{chunk-7KZZLWZ6.js → chunk-AU7YTQX7.js} +1 -1
- package/dist/chunk-C72GO4IZ.js +1 -0
- package/dist/{chunk-B5S7KTGP.js → chunk-CGDMTXSY.js} +1 -1
- package/dist/chunk-D27JNOLZ.js +1 -0
- package/dist/chunk-D47YVDR5.js +1 -0
- package/dist/chunk-EWF7KCDJ.js +61 -0
- package/dist/{chunk-IBGE62GZ.js → chunk-GEAO3TL3.js} +1 -1
- package/dist/chunk-GX5LSSRE.js +1 -0
- package/dist/{chunk-O245YLM5.js → chunk-HAWKGIXM.js} +1 -1
- package/dist/chunk-HX3EGQ5Z.js +1 -0
- package/dist/{chunk-RZ5HKPGI.js → chunk-IA7DUNGB.js} +1 -1
- package/dist/{chunk-K5C67OGE.js → chunk-INH6FS2G.js} +2 -2
- package/dist/chunk-INHC33EH.js +1 -0
- package/dist/chunk-IUB4NYI2.js +1 -0
- package/dist/{chunk-UVLZX2OU.js → chunk-JNMC2WJ6.js} +1 -1
- package/dist/{chunk-O2BLVQU4.js → chunk-KD4NHLMU.js} +1 -1
- package/dist/chunk-L6NSJVJZ.js +1 -0
- package/dist/{chunk-6773HURD.js → chunk-L7WY6TZS.js} +1 -1
- package/dist/chunk-LQNOXGET.js +1 -0
- package/dist/chunk-MC4UYY2X.js +1 -0
- package/dist/{chunk-6KZZ6XQE.js → chunk-N7UIBZCW.js} +1 -1
- package/dist/chunk-NQI2C36M.js +1 -0
- package/dist/chunk-R75BMDLA.js +1 -0
- package/dist/chunk-RF3QZP6D.js +1 -0
- package/dist/{chunk-NV63VQHI.js → chunk-S2U57TFC.js} +1 -1
- package/dist/{chunk-SP5O2MIX.js → chunk-SC7BQDNP.js} +1 -1
- package/dist/{chunk-6VFC334U.js → chunk-TFPZLQ5H.js} +1 -1
- package/dist/chunk-VJJLIEAL.js +1 -0
- package/dist/{chunk-FAYEMS5M.js → chunk-WHIZM6JV.js} +1 -1
- package/dist/chunk-XEUANKBO.js +43 -0
- package/dist/{chunk-DSOVKKTI.js → chunk-XQ55HO5N.js} +1 -1
- package/dist/chunk-ZJ7SM3G2.js +1 -0
- package/dist/{chunk-TMVY7OWG.js → chunk-ZOX3LBRV.js} +1 -1
- 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/{composite-CgG0MqHm.d.cts → composite-CKd0e2vz.d.cts} +2 -2
- package/dist/{composite-DTOlDuch.d.ts → composite-DGatA-JK.d.ts} +2 -2
- 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/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-30XSgtVX.d.ts} +76 -100
- package/dist/{graph-CHsVwf9S.d.cts → graph-BUwMAxJI.d.cts} +76 -100
- package/dist/{index-CIcu6fIR.d.ts → index-2n8Eai6M.d.ts} +1 -1
- package/dist/{index-CrlHFsiT.d.ts → index-89FczVZ_.d.ts} +41 -85
- package/dist/{index-CM-i58FY.d.cts → index-8R1vzNOx.d.cts} +9 -9
- package/dist/{index-CDvC1m5p.d.ts → index-B2RUoIUz.d.ts} +1 -1
- package/dist/{index-BFaALJxR.d.ts → index-B41Asm7D.d.ts} +10 -8
- package/dist/{index-D-HZ7sP4.d.ts → index-B9fmw5n2.d.ts} +4 -6
- package/dist/{index-Bn0uZEL4.d.ts → index-BAlaVimV.d.ts} +9 -9
- package/dist/{index-DJVQ-t07.d.ts → index-BC9VybQs.d.ts} +41 -48
- package/dist/{index-5dNRlW7J.d.ts → index-BEHmxORq.d.ts} +11 -11
- package/dist/{index-DJNAWzcH.d.cts → index-BJ26eEjs.d.cts} +26 -19
- package/dist/{index-BiomL7AW.d.ts → index-BJSZxSFX.d.ts} +1 -1
- package/dist/{index-Czk3r0yA.d.cts → index-BKMdnYnk.d.ts} +56 -54
- package/dist/{index-BsZk9T8y.d.ts → index-BM9szD8n.d.cts} +14 -6
- package/dist/{index-BmWuVdER.d.ts → index-BUPVld1w.d.ts} +2 -2
- package/dist/{index-BwOsJfLJ.d.ts → index-BXd6OMEy.d.ts} +3 -3
- package/dist/index-BhUaMYm_.d.ts +113 -0
- package/dist/{index-BpMZzX9P.d.cts → index-BndG0cpK.d.cts} +3 -3
- package/dist/{index-AUqWe_fX.d.ts → index-Br3WnqEn.d.ts} +81 -9
- package/dist/{index-BhzwpIJc.d.cts → index-BskfDoZ_.d.ts} +14 -6
- package/dist/{index-D9vBTuzo.d.ts → index-C19qqa38.d.ts} +4 -4
- package/dist/{index-B-ORMr3k.d.ts → index-C7VV_qOs.d.ts} +4 -4
- package/dist/{index-BWUMIt7J.d.cts → index-CIRG8Hxp.d.cts} +11 -11
- package/dist/{index-B3D_z0Z6.d.cts → index-CL7oilfm.d.cts} +1 -1
- package/dist/{index-ML6vHKXK.d.ts → index-CPhBvRJU.d.ts} +1 -1
- package/dist/{index-CQsqqEVz.d.cts → index-CWHtYmSh.d.cts} +1 -1
- package/dist/{index-DKrIuF-r.d.ts → index-Cey6VTnX.d.ts} +8 -5
- package/dist/{resilience-BWP2c7Af.d.cts → index-CmqiJZKM.d.ts} +141 -23
- package/dist/{index-JYtN9uqM.d.ts → index-CoM4rzyB.d.ts} +1 -1
- package/dist/{index-C56XZiDe.d.cts → index-CpLpJb6A.d.cts} +8 -5
- package/dist/{index-BjWZARLy.d.ts → index-Ctb7_2sG.d.ts} +1 -1
- package/dist/index-CusEP3Sv.d.ts +210 -0
- package/dist/{resilience-Bys63Cpd.d.ts → index-CwP_KAMS.d.cts} +141 -23
- package/dist/{index-BFuVcqL8.d.cts → index-D3ayz3hy.d.cts} +1 -1
- package/dist/{index-Bpr0Pwgl.d.cts → index-DCbE8fFM.d.cts} +3 -3
- package/dist/{index-CAbHN_rP.d.cts → index-DIHcMLr6.d.cts} +1 -1
- package/dist/index-DINuaZlJ.d.cts +210 -0
- package/dist/{index-9xhIaM-w.d.cts → index-DOBLxOti.d.cts} +1 -1
- package/dist/{index-Di7OdwlO.d.ts → index-DQUVq1_d.d.ts} +37 -90
- package/dist/{index-BgzPO43H.d.cts → index-DTtBpuQy.d.cts} +4 -6
- package/dist/{index-D_QQ_dTD.d.cts → index-DYTBbF8T.d.cts} +1 -1
- package/dist/{index-UsU9ptzs.d.cts → index-DlgHqQxW.d.cts} +81 -9
- package/dist/{index-DTDVDzhA.d.ts → index-DlrWu9Hs.d.cts} +56 -54
- package/dist/{index-B2IUcH13.d.cts → index-DoYc8BWK.d.cts} +41 -48
- package/dist/{index-BUFCHvOR.d.ts → index-DszPlZzK.d.ts} +3 -3
- package/dist/{index-BqcgiSQg.d.cts → index-DyM4tFAe.d.cts} +10 -8
- package/dist/{index-CAV-3RpJ.d.cts → index-FVoPvhAu.d.cts} +4 -4
- package/dist/{index-Ckil6miL.d.cts → index-H_I66pav.d.cts} +2 -2
- package/dist/{index-C-3UXnHT.d.cts → index-IwFqHxCs.d.cts} +2 -2
- package/dist/index-K-vl_c6A.d.cts +113 -0
- package/dist/{index-CijfwEWx.d.ts → index-KlZ_ZUip.d.cts} +3 -3
- package/dist/{index-Bub6x_D4.d.cts → index-L8XI8Zql.d.cts} +37 -90
- package/dist/{index-DeSsvHDD.d.cts → index-MxYuWOrf.d.cts} +3 -3
- package/dist/{index-CpZKtdMw.d.cts → index-PgwvGWa1.d.cts} +1 -1
- package/dist/{index-Vz7KPfgz.d.ts → index-PlJ3MraE.d.ts} +1 -1
- package/dist/{index-BI1wMfyc.d.ts → index-PqbnoScQ.d.ts} +3 -3
- package/dist/{index-BsgxnHN8.d.cts → index-PsVHpPwP.d.cts} +3 -3
- package/dist/{index-D-B7U42V.d.cts → index-WyFKER-c.d.ts} +3 -3
- package/dist/{index-DY2f2b9z.d.ts → index-eaQuGJnv.d.ts} +3 -3
- package/dist/{index-DqICM_I7.d.ts → index-iTX5IqSP.d.ts} +67 -9
- package/dist/{index-Byp771zP.d.ts → index-jKLph6cu.d.ts} +2 -2
- package/dist/{index-CEVzBWeB.d.ts → index-jr6PuSBt.d.ts} +26 -19
- package/dist/{index-BkQqf1EF.d.cts → index-mNwgxC21.d.cts} +67 -9
- package/dist/{index-BaSy4L6w.d.cts → index-pVDQcbar.d.cts} +41 -85
- package/dist/{index-D7-RSD93.d.cts → index-xZYcDqFH.d.cts} +4 -4
- 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 +6 -6
- package/dist/patterns/lens/index.d.ts +6 -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 +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +4 -8
- package/dist/patterns/resilient-pipeline/index.d.ts +4 -8
- 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-DuHpXSOn.d.cts → pipeline-graph-BQPr2Lqs.d.cts} +34 -17
- package/dist/{pipeline-graph-9JBbmRxA.d.ts → pipeline-graph-D8vKcO_p.d.ts} +34 -17
- package/dist/{reactive-layout-BMLDB4Vd.d.cts → reactive-layout-8CSc0tiA.d.cts} +2 -2
- package/dist/{reactive-layout-D-tRiNhg.d.ts → reactive-layout-DkTXxtSy.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-B2qfD3hb.d.cts} +1 -1
- package/dist/{reactive-map-CHyeCf4D.d.ts → reactive-map-jFIsE6Kt.d.ts} +1 -1
- package/dist/resilience-HTF2LBRS.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-B5Ngw3j0.d.cts} +1 -1
- package/dist/{topology-tree-D47-nI6Z.d.ts → topology-tree-BtvbgMXJ.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-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-CpdnP-0y.d.cts +0 -186
- package/dist/index-DOU1Ee_k.d.ts +0 -186
- package/dist/resilience-LGBK236C.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BaseAuditRecord } from './index-DINuaZlJ.cjs';
|
|
2
|
+
import { a as ReactiveLogBundle } from './reactive-log-_zeEnB9H.cjs';
|
|
2
3
|
import { NodeInput } from './extra/sources.cjs';
|
|
3
4
|
import { AppendLogStorageTier } from './extra/storage-tiers.cjs';
|
|
4
|
-
import {
|
|
5
|
-
import { C as CqrsEventMap, a as CqrsEvent, b as CqrsGraph } from './index-BqcgiSQg.cjs';
|
|
5
|
+
import { C as CqrsEventMap, a as CqrsEvent, b as CqrsGraph } from './index-DyM4tFAe.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Process Manager pattern (Phase 7 — roadmap §4.6, Audit 3 — locked 2026-04-24).
|
|
@@ -35,14 +35,21 @@ import { C as CqrsEventMap, a as CqrsEvent, b as CqrsGraph } from './index-Bqcgi
|
|
|
35
35
|
/**
|
|
36
36
|
* Discriminated union returned by each step handler.
|
|
37
37
|
*
|
|
38
|
-
* - `"
|
|
39
|
-
* schedule a future synthetic event.
|
|
38
|
+
* - `"success"` — step ran cleanly; update state, optionally emit
|
|
39
|
+
* side-effect events and schedule a future synthetic event. The process
|
|
40
|
+
* instance stays `"running"`.
|
|
40
41
|
* - `"terminate"` — workflow complete; instance moves to `"terminated"`.
|
|
41
|
-
*
|
|
42
|
-
*
|
|
42
|
+
* Process-specific extension to the canonical outcome enum.
|
|
43
|
+
* - `"failure"` — triggers compensation; instance moves to `"compensated"` /
|
|
44
|
+
* `"errored"`.
|
|
45
|
+
*
|
|
46
|
+
* Field name is `outcome` (matching `cqrs.DispatchRecord.outcome` and the
|
|
47
|
+
* canonical Tier 1.6.2 / 2.3 enum). `"success"` and `"failure"` are the
|
|
48
|
+
* canonical values; `"terminate"` is the process-specific extension for
|
|
49
|
+
* "early-return success".
|
|
43
50
|
*/
|
|
44
51
|
type ProcessStepResult<TState> = {
|
|
45
|
-
|
|
52
|
+
outcome: "success";
|
|
46
53
|
state: TState;
|
|
47
54
|
emit?: readonly {
|
|
48
55
|
type: string;
|
|
@@ -50,7 +57,7 @@ type ProcessStepResult<TState> = {
|
|
|
50
57
|
}[];
|
|
51
58
|
schedule?: ProcessSchedule;
|
|
52
59
|
} | {
|
|
53
|
-
|
|
60
|
+
outcome: "terminate";
|
|
54
61
|
state: TState;
|
|
55
62
|
emit?: readonly {
|
|
56
63
|
type: string;
|
|
@@ -58,7 +65,7 @@ type ProcessStepResult<TState> = {
|
|
|
58
65
|
}[];
|
|
59
66
|
reason?: string;
|
|
60
67
|
} | {
|
|
61
|
-
|
|
68
|
+
outcome: "failure";
|
|
62
69
|
error: unknown;
|
|
63
70
|
};
|
|
64
71
|
/**
|
|
@@ -79,19 +86,19 @@ type ProcessSchedule = {
|
|
|
79
86
|
*/
|
|
80
87
|
type ProcessStep<TState, EM extends CqrsEventMap, K extends keyof EM & string> = (state: TState, event: CqrsEvent<EM[K]>) => NodeInput<ProcessStepResult<TState>>;
|
|
81
88
|
/**
|
|
82
|
-
* Compensation handler. Runs when a step returns `
|
|
89
|
+
* Compensation handler. Runs when a step returns `outcome: "failure"`, throws, or
|
|
83
90
|
* when `cancel(correlationId)` is called on a running instance.
|
|
84
91
|
*
|
|
85
92
|
* Should undo any side effects performed by prior steps (refund, cancel
|
|
86
93
|
* reservation, etc.). Errors thrown inside compensate are swallowed and
|
|
87
|
-
* recorded in the audit log with `status: "
|
|
94
|
+
* recorded in the audit log with `status: "errored"` to prevent cascading
|
|
88
95
|
* failure loops.
|
|
89
96
|
*/
|
|
90
97
|
type ProcessCompensate<TState> = (state: TState, error: unknown) => NodeInput<void>;
|
|
91
98
|
/**
|
|
92
99
|
* Audit record for a single process instance state transition.
|
|
93
100
|
*
|
|
94
|
-
* Every status change (start → running → terminated /
|
|
101
|
+
* Every status change (start → running → terminated / errored / compensated)
|
|
95
102
|
* appends one record. `correlationId` is the stable process key.
|
|
96
103
|
*
|
|
97
104
|
* Extends {@link BaseAuditRecord} so records carry `t_ns` / `seq` /
|
|
@@ -103,7 +110,7 @@ interface ProcessInstance<TState> extends BaseAuditRecord {
|
|
|
103
110
|
/** Most-recent instance state at this transition. */
|
|
104
111
|
readonly state: TState;
|
|
105
112
|
/** Current lifecycle status after this transition. */
|
|
106
|
-
readonly status: "running" | "terminated" | "
|
|
113
|
+
readonly status: "running" | "terminated" | "errored" | "compensated";
|
|
107
114
|
/** Wall-clock nanoseconds when `start()` was called. */
|
|
108
115
|
readonly startedAt: number;
|
|
109
116
|
/** Wall-clock nanoseconds of this transition. */
|
|
@@ -137,13 +144,13 @@ interface ProcessManagerOpts<TState, EM extends CqrsEventMap> {
|
|
|
137
144
|
[K in keyof EM & string]?: ProcessStep<TState, EM, K>;
|
|
138
145
|
};
|
|
139
146
|
/**
|
|
140
|
-
* Optional compensation handler. Runs on step `
|
|
147
|
+
* Optional compensation handler. Runs on step `outcome: "failure"` / step throw
|
|
141
148
|
* and on explicit `cancel()`. If omitted, instances fail silently with
|
|
142
|
-
* status `"
|
|
149
|
+
* status `"errored"` instead of `"compensated"`.
|
|
143
150
|
*/
|
|
144
151
|
readonly compensate?: ProcessCompensate<TState>;
|
|
145
152
|
/**
|
|
146
|
-
* Optional predicate called after each `"
|
|
153
|
+
* Optional predicate called after each `"success"` step. When it returns
|
|
147
154
|
* `true`, the instance is moved to `"terminated"` immediately without
|
|
148
155
|
* waiting for a `"terminate"` step result.
|
|
149
156
|
*/
|
|
@@ -245,10 +252,10 @@ interface ProcessManagerResult<TState> {
|
|
|
245
252
|
* watching: ["orderPlaced", "paymentReceived"],
|
|
246
253
|
* steps: {
|
|
247
254
|
* orderPlaced(state, event) {
|
|
248
|
-
* return {
|
|
255
|
+
* return { outcome: "success", state: { ...state, orderId: event.payload.orderId } };
|
|
249
256
|
* },
|
|
250
257
|
* paymentReceived(state, event) {
|
|
251
|
-
* return {
|
|
258
|
+
* return { outcome: "terminate", state: { ...state, total: event.payload.amount } };
|
|
252
259
|
* },
|
|
253
260
|
* },
|
|
254
261
|
* compensate(state, _error) {
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { D as DescribeNodeOutput } from './meta-D8OyedKp.js';
|
|
2
|
+
import { N as Node } from './node-BYInONRr.js';
|
|
3
|
+
import { G as Graph, b as GraphDescribeOutput } from './graph-30XSgtVX.js';
|
|
4
|
+
import { L as LLMAdapter } from './types-39jk0kaV.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* LLM graph composition (roadmap §8.3).
|
|
7
8
|
*
|
|
8
9
|
* Declarative GraphSpec schema + compiler/decompiler for graph topology.
|
|
9
|
-
* The LLM designs graphs as JSON; compileSpec instantiates them;
|
|
10
|
-
* extracts them back. Templates support reusable subgraph
|
|
11
|
-
* edges express bounded cycles via §8.1 feedback().
|
|
10
|
+
* The LLM designs graphs as JSON; `compileSpec` instantiates them;
|
|
11
|
+
* `decompileSpec` extracts them back. Templates support reusable subgraph
|
|
12
|
+
* patterns. Feedback edges express bounded cycles via §8.1 feedback().
|
|
13
|
+
*
|
|
14
|
+
* **Tier 1.5.3 Phase 3 (2026-04-27):** `GraphSpec` is a structural alias of
|
|
15
|
+
* {@link GraphDescribeOutput} with two LLM-author-friendly extras
|
|
16
|
+
* (`templates?` / `feedback?`). Per-node factory references are encoded in
|
|
17
|
+
* `meta.factory` + `meta.factoryArgs` (no more `fn` / `source` / `config` /
|
|
18
|
+
* `initial` fields). State node initial values live in
|
|
19
|
+
* `meta.factoryArgs.initial` (state self-tags with
|
|
20
|
+
* `factoryTag("state", { initial })`).
|
|
12
21
|
*
|
|
13
22
|
* @module
|
|
14
23
|
*/
|
|
15
24
|
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/** Freeform config passed to the catalog fn/source factory. */
|
|
27
|
-
config?: Record<string, unknown>;
|
|
28
|
-
/** Initial value (for state nodes). */
|
|
29
|
-
initial?: unknown;
|
|
30
|
-
/** Human/LLM-readable metadata. */
|
|
31
|
-
meta?: Record<string, unknown>;
|
|
32
|
-
};
|
|
25
|
+
/**
|
|
26
|
+
* A single node declaration in a GraphSpec — structural alias of
|
|
27
|
+
* {@link DescribeNodeOutput}.
|
|
28
|
+
*
|
|
29
|
+
* Per-node factory provenance lives in `meta.factory` + `meta.factoryArgs`
|
|
30
|
+
* (use {@link factoryTag} to stamp them at construction time). State node
|
|
31
|
+
* initial values come through `meta.factoryArgs.initial` for tagged states,
|
|
32
|
+
* with fallback to `value` (since spec projection retains state values).
|
|
33
|
+
*/
|
|
34
|
+
type GraphSpecNode = DescribeNodeOutput;
|
|
33
35
|
/** Template instantiation node — expanded at compile time. */
|
|
34
36
|
type GraphSpecTemplateRef = {
|
|
35
37
|
type: "template";
|
|
@@ -56,25 +58,24 @@ type GraphSpecFeedbackEdge = {
|
|
|
56
58
|
/** Max iterations before stopping (default: 10). */
|
|
57
59
|
maxIterations?: number;
|
|
58
60
|
};
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Declarative graph topology for LLM composition (§8.3).
|
|
63
|
+
*
|
|
64
|
+
* Tier 1.5.3 Phase 3 (2026-04-27): structural alias of
|
|
65
|
+
* {@link GraphDescribeOutput} extended with optional `templates` /
|
|
66
|
+
* `feedback` fields for LLM-author convenience. Top-level `factory` /
|
|
67
|
+
* `factoryArgs` (Phase 2.5 carry) ride along on every describe output.
|
|
68
|
+
*
|
|
69
|
+
* Round-trip property: `decompileSpec(g) === g.describe({ detail: "spec" })`
|
|
70
|
+
* (modulo the small feedback-edge extraction sugar).
|
|
71
|
+
*/
|
|
72
|
+
type GraphSpec = Omit<GraphDescribeOutput, "nodes" | "expand"> & {
|
|
73
|
+
/** Node declarations (keyed by node name). Either a structural describe entry or a template ref. */
|
|
64
74
|
nodes: Record<string, GraphSpecNode | GraphSpecTemplateRef>;
|
|
65
|
-
/** Reusable subgraph templates. */
|
|
75
|
+
/** Reusable subgraph templates (LLM-author extra; not present in `describe()` output). */
|
|
66
76
|
templates?: Record<string, GraphSpecTemplate>;
|
|
67
|
-
/** Feedback edges (bounded cycles). */
|
|
77
|
+
/** Feedback edges (bounded cycles, LLM-author extra). */
|
|
68
78
|
feedback?: GraphSpecFeedbackEdge[];
|
|
69
|
-
/**
|
|
70
|
-
* Top-level factory identifier (Tier 1.5.3 Phase 2.5 — DG1=B). When set
|
|
71
|
-
* and `compileSpec` is given a `catalog.graphFactories[factory]` entry,
|
|
72
|
-
* the spec's reconstruction is delegated to that factory wholesale (the
|
|
73
|
-
* `nodes` / `edges` / `templates` fields below are not used).
|
|
74
|
-
*/
|
|
75
|
-
factory?: string;
|
|
76
|
-
/** JSON-serializable construction args, paired with `factory`. */
|
|
77
|
-
factoryArgs?: unknown;
|
|
78
79
|
};
|
|
79
80
|
/**
|
|
80
81
|
* Factory for creating a derived/effect/operator node from catalog.
|
|
@@ -237,26 +238,28 @@ type CompileSpecOptions = {
|
|
|
237
238
|
*/
|
|
238
239
|
declare function compileSpec(spec: GraphSpec, opts?: CompileSpecOptions): Graph;
|
|
239
240
|
/**
|
|
240
|
-
* Extract a GraphSpec from a running graph.
|
|
241
|
+
* Extract a {@link GraphSpec} from a running graph.
|
|
241
242
|
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
243
|
+
* Tier 1.5.3 Phase 3 (2026-04-27): thin projection over
|
|
244
|
+
* `graph.describe({ detail: "spec" })`. The describe-output already carries
|
|
245
|
+
* structural fields (`type`, `deps`, optional `value`) plus per-node
|
|
246
|
+
* `meta.factory` / `meta.factoryArgs` for tagged factories and top-level
|
|
247
|
+
* `factory` / `factoryArgs` for graph-level tags. The only sugar this helper
|
|
248
|
+
* adds is a feedback-edge recovery scan over `meta.feedbackFrom` /
|
|
249
|
+
* `meta.feedbackTo` companion fields stamped by the §8.1 `feedback()`
|
|
250
|
+
* primitive.
|
|
251
|
+
*
|
|
252
|
+
* **Removed in Phase 3:** template fingerprinting / `_templateName` /
|
|
253
|
+
* `_templateBind` recovery. Mounted subgraphs surface as nested `subname::*`
|
|
254
|
+
* paths in `desc.nodes`; if you need the template-instantiation form, build
|
|
255
|
+
* the spec by hand or read the meta companions directly.
|
|
246
256
|
*
|
|
247
257
|
* @param graph - Running graph to decompile.
|
|
248
258
|
* @returns A GraphSpec representation.
|
|
249
259
|
*
|
|
250
260
|
* @category patterns
|
|
251
261
|
*/
|
|
252
|
-
/**
|
|
253
|
-
* Tier 1.5.3 / D5 rename — `decompileSpec` is the canonical name post-Session A.1
|
|
254
|
-
* lock. Once Phase 3 lands `GraphSpec ≡ GraphDescribeOutput`, the body becomes
|
|
255
|
-
* `g.describe({ detail: "spec" })`. For now it delegates to the existing
|
|
256
|
-
* implementation so behavior is unchanged.
|
|
257
|
-
*/
|
|
258
262
|
declare function decompileSpec(graph: Graph): GraphSpec;
|
|
259
|
-
declare function decompileGraph(graph: Graph): GraphSpec;
|
|
260
263
|
/** A single change in a spec diff. */
|
|
261
264
|
type SpecDiffEntry = {
|
|
262
265
|
type: "added" | "removed" | "changed";
|
|
@@ -357,7 +360,6 @@ type index_SourceFactory = SourceFactory;
|
|
|
357
360
|
type index_SpecDiffEntry = SpecDiffEntry;
|
|
358
361
|
type index_SpecDiffResult = SpecDiffResult;
|
|
359
362
|
declare const index_compileSpec: typeof compileSpec;
|
|
360
|
-
declare const index_decompileGraph: typeof decompileGraph;
|
|
361
363
|
declare const index_decompileSpec: typeof decompileSpec;
|
|
362
364
|
declare const index_extractFnFactory: typeof extractFnFactory;
|
|
363
365
|
declare const index_extractSourceFactory: typeof extractSourceFactory;
|
|
@@ -370,7 +372,7 @@ declare const index_specDiff: typeof specDiff;
|
|
|
370
372
|
declare const index_validateSpec: typeof validateSpec;
|
|
371
373
|
declare const index_validateSpecAgainstCatalog: typeof validateSpecAgainstCatalog;
|
|
372
374
|
declare namespace index {
|
|
373
|
-
export { type index_CatalogFnEntry as CatalogFnEntry, type index_CatalogSourceEntry as CatalogSourceEntry, type index_CompileSpecOptions as CompileSpecOptions, type index_ConfigFieldSchema as ConfigFieldSchema, type index_FnFactory as FnFactory, type index_GraphFactory as GraphFactory, type index_GraphSpec as GraphSpec, type index_GraphSpecCatalog as GraphSpecCatalog, type index_GraphSpecFeedbackEdge as GraphSpecFeedbackEdge, type index_GraphSpecNode as GraphSpecNode, type index_GraphSpecTemplate as GraphSpecTemplate, type index_GraphSpecTemplateRef as GraphSpecTemplateRef, type index_GraphSpecValidation as GraphSpecValidation, type index_LLMComposeOptions as LLMComposeOptions, type index_LLMRefineOptions as LLMRefineOptions, type index_SourceFactory as SourceFactory, type index_SpecDiffEntry as SpecDiffEntry, type index_SpecDiffResult as SpecDiffResult, index_compileSpec as compileSpec,
|
|
375
|
+
export { type index_CatalogFnEntry as CatalogFnEntry, type index_CatalogSourceEntry as CatalogSourceEntry, type index_CompileSpecOptions as CompileSpecOptions, type index_ConfigFieldSchema as ConfigFieldSchema, type index_FnFactory as FnFactory, type index_GraphFactory as GraphFactory, type index_GraphSpec as GraphSpec, type index_GraphSpecCatalog as GraphSpecCatalog, type index_GraphSpecFeedbackEdge as GraphSpecFeedbackEdge, type index_GraphSpecNode as GraphSpecNode, type index_GraphSpecTemplate as GraphSpecTemplate, type index_GraphSpecTemplateRef as GraphSpecTemplateRef, type index_GraphSpecValidation as GraphSpecValidation, type index_LLMComposeOptions as LLMComposeOptions, type index_LLMRefineOptions as LLMRefineOptions, type index_SourceFactory as SourceFactory, type index_SpecDiffEntry as SpecDiffEntry, type index_SpecDiffResult as SpecDiffResult, index_compileSpec as compileSpec, index_decompileSpec as decompileSpec, index_extractFnFactory as extractFnFactory, index_extractSourceFactory as extractSourceFactory, index_generateCatalogPrompt as generateCatalogPrompt, index_isRichFnEntry as isRichFnEntry, index_isRichSourceEntry as isRichSourceEntry, index_llmCompose as llmCompose, index_llmRefine as llmRefine, index_specDiff as specDiff, index_validateSpec as validateSpec, index_validateSpecAgainstCatalog as validateSpecAgainstCatalog };
|
|
374
376
|
}
|
|
375
377
|
|
|
376
|
-
export {
|
|
378
|
+
export { type CatalogFnEntry as C, type FnFactory as F, type GraphSpec as G, type LLMComposeOptions as L, type SourceFactory as S, type CatalogSourceEntry as a, type ConfigFieldSchema as b, type GraphSpecCatalog as c, type GraphSpecFeedbackEdge as d, type GraphSpecNode as e, type GraphSpecTemplate as f, type GraphSpecTemplateRef as g, type GraphSpecValidation as h, index as i, type CompileSpecOptions as j, type GraphFactory as k, type LLMRefineOptions as l, type SpecDiffEntry as m, type SpecDiffResult as n, compileSpec as o, decompileSpec as p, extractFnFactory as q, extractSourceFactory as r, generateCatalogPrompt as s, isRichFnEntry as t, isRichSourceEntry as u, llmCompose as v, llmRefine as w, specDiff as x, validateSpec as y, validateSpecAgainstCatalog as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as StatusValue, C as CircuitState, R as RateLimiterOptions, a as CircuitBreakerOptions, b as RetryOptions, F as FallbackInput, N as NS_PER_MS, c as NS_PER_SEC } from './
|
|
3
|
-
import { B as BudgetConstraint } from './
|
|
1
|
+
import { N as Node } from './node-BYInONRr.cjs';
|
|
2
|
+
import { S as StatusValue, C as CircuitState, R as RateLimiterOptions, a as CircuitBreakerOptions, b as RetryOptions, F as FallbackInput, N as NS_PER_MS, c as NS_PER_SEC } from './index-CwP_KAMS.cjs';
|
|
3
|
+
import { B as BudgetConstraint } from './budget-gate-DiP_nK0n.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Resilience composition with correct nesting order (roadmap §9.0b).
|
|
@@ -30,8 +30,16 @@ import { B as BudgetConstraint } from './index-DOU1Ee_k.js';
|
|
|
30
30
|
|
|
31
31
|
/** Options for {@link resilientPipeline}. Every field is optional — omit to skip that layer. */
|
|
32
32
|
interface ResilientPipelineOptions<T> {
|
|
33
|
-
/**
|
|
34
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Admission control — at most `maxEvents` DATA per `windowNs`. See {@link rateLimiter}.
|
|
35
|
+
*
|
|
36
|
+
* `maxBuffer` is optional at the pipeline layer (defaults to `Infinity`, preserving
|
|
37
|
+
* the historical unbounded behavior). Pass an explicit positive integer to opt in to
|
|
38
|
+
* a bounded queue. Tier 5.2 will surface backpressure-policy options to callers.
|
|
39
|
+
*/
|
|
40
|
+
rateLimit?: Omit<RateLimiterOptions, "maxBuffer"> & {
|
|
41
|
+
maxBuffer?: number;
|
|
42
|
+
};
|
|
35
43
|
/** Cost/constraint gate. See {@link budgetGate}. */
|
|
36
44
|
budget?: ReadonlyArray<BudgetConstraint>;
|
|
37
45
|
/** Circuit breaker — fail-fast when the downstream resource is unhealthy. See {@link circuitBreaker}. */
|
|
@@ -62,7 +70,7 @@ interface ResilientPipelineOptions<T> {
|
|
|
62
70
|
interface ResilientPipelineBundle<T> {
|
|
63
71
|
/** The final resilient node. Subscribe to this for DATA emissions. */
|
|
64
72
|
node: Node<T>;
|
|
65
|
-
/** Live status: `"pending" | "
|
|
73
|
+
/** Live status: `"pending" | "running" | "completed" | "errored"`. */
|
|
66
74
|
status: Node<StatusValue>;
|
|
67
75
|
/** Last error payload, or `null` when not errored. */
|
|
68
76
|
error: Node<unknown | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as Graph } from './graph-
|
|
2
|
-
import { M as MeasurementAdapter } from './reactive-layout-
|
|
1
|
+
import { G as Graph } from './graph-30XSgtVX.js';
|
|
2
|
+
import { M as MeasurementAdapter } from './reactive-layout-DkTXxtSy.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Three-pane demo shell (roadmap §7.2).
|
|
@@ -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-DkTXxtSy.js';
|
|
2
|
+
import { N as Node } from './node-BYInONRr.js';
|
|
3
|
+
import { G as Graph } from './graph-30XSgtVX.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* MeasurementAdapter implementations (roadmap §7.1 — pluggable backends).
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { N as Node, a as NodeOptions } from './node-BYInONRr.js';
|
|
2
|
+
import { a as GraphOptions, G as Graph } from './graph-30XSgtVX.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reduction primitives (roadmap §8.1).
|
|
6
|
+
*
|
|
7
|
+
* Composable building blocks for taking heterogeneous massive inputs and producing
|
|
8
|
+
* prioritized, auditable, human-actionable output. Each primitive is either a Graph
|
|
9
|
+
* factory or a Node factory, built on top of core + extra primitives.
|
|
10
|
+
*
|
|
11
|
+
* @module
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
type StepRef = string | Node<unknown>;
|
|
15
|
+
/** A named stage for {@link funnel}. */
|
|
16
|
+
type FunnelStage = {
|
|
17
|
+
/** Stage name (mounted as subgraph). */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Builder: receives a sub-graph, should add an `"input"` and `"output"` node. */
|
|
20
|
+
build: (sub: Graph) => void;
|
|
21
|
+
};
|
|
22
|
+
/** Options for {@link funnel}. */
|
|
23
|
+
type FunnelOptions = GraphOptions & {
|
|
24
|
+
meta?: Record<string, unknown>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Multi-source merge with sequential reduction stages.
|
|
28
|
+
*
|
|
29
|
+
* Sources are merged into a single stream. Each stage is a named subgraph
|
|
30
|
+
* (mounted via `graph.mount()`). Stages connect linearly:
|
|
31
|
+
* `merged → stage[0].input → stage[0].output → stage[1].input → ...`
|
|
32
|
+
*
|
|
33
|
+
* @param name - Graph name.
|
|
34
|
+
* @param sources - Input nodes to merge.
|
|
35
|
+
* @param stages - Sequential reduction stages.
|
|
36
|
+
* @param opts - Optional graph/meta options.
|
|
37
|
+
* @returns Graph with `"merged"` and mounted stage subgraphs.
|
|
38
|
+
*
|
|
39
|
+
* @category patterns
|
|
40
|
+
*/
|
|
41
|
+
declare function funnel<T>(name: string, sources: ReadonlyArray<Node<T>>, stages: ReadonlyArray<FunnelStage>, opts?: FunnelOptions): Graph;
|
|
42
|
+
/** Options for {@link feedback}. */
|
|
43
|
+
type FeedbackOptions = {
|
|
44
|
+
/** Maximum feedback iterations before stopping (default: 10). */
|
|
45
|
+
maxIterations?: number;
|
|
46
|
+
/** Optional budget gate node path for cost-bounded iteration. */
|
|
47
|
+
budgetNode?: StepRef;
|
|
48
|
+
meta?: Record<string, unknown>;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Introduce a bounded reactive cycle into an existing graph.
|
|
52
|
+
*
|
|
53
|
+
* When `condition` emits a non-null DATA value, the feedback effect routes it
|
|
54
|
+
* back to the `reentry` state node — creating a cycle. Bounded by
|
|
55
|
+
* `maxIterations` (default 10). The counter node (`__feedback_<condition>`)
|
|
56
|
+
* is the source of truth — reset it to 0 to allow more iterations.
|
|
57
|
+
*
|
|
58
|
+
* To remove the feedback cycle, call `graph.remove("__feedback_<condition>")`.
|
|
59
|
+
*
|
|
60
|
+
* @param graph - Existing graph to augment with a feedback cycle.
|
|
61
|
+
* @param condition - Path to a node whose DATA triggers feedback.
|
|
62
|
+
* @param reentry - Path to a state node that receives the feedback value.
|
|
63
|
+
* @param opts - Iteration bounds and metadata.
|
|
64
|
+
* @returns The same graph (mutated with feedback nodes added).
|
|
65
|
+
*
|
|
66
|
+
* @category patterns
|
|
67
|
+
*/
|
|
68
|
+
declare function feedback(graph: Graph, condition: string, reentry: string, opts?: FeedbackOptions): Graph;
|
|
69
|
+
/** A scored item with full breakdown. */
|
|
70
|
+
type ScoredItem<T = unknown> = {
|
|
71
|
+
/** Original value. */
|
|
72
|
+
value: T;
|
|
73
|
+
/** Final weighted score. */
|
|
74
|
+
score: number;
|
|
75
|
+
/** Per-signal breakdown: signal index → weighted contribution. */
|
|
76
|
+
breakdown: number[];
|
|
77
|
+
};
|
|
78
|
+
/** Options for {@link scorer}. */
|
|
79
|
+
type ScorerOptions = Omit<NodeOptions<unknown>, "describeKind" | "name" | "meta"> & {
|
|
80
|
+
meta?: Record<string, unknown>;
|
|
81
|
+
/** Custom scoring function per signal. Default: identity (signal value IS the score). */
|
|
82
|
+
scoreFns?: ReadonlyArray<(value: unknown) => number>;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Reactive multi-signal scoring with live weights.
|
|
86
|
+
*
|
|
87
|
+
* Each source emits items to score. Weights are reactive state nodes that
|
|
88
|
+
* LLM or human can adjust live. Output is sorted scored items with full
|
|
89
|
+
* breakdown.
|
|
90
|
+
*
|
|
91
|
+
* @param sources - Signal nodes (each emits a numeric score dimension).
|
|
92
|
+
* @param weights - Reactive weight nodes (one per source).
|
|
93
|
+
* @param opts - Optional node/meta options.
|
|
94
|
+
* @returns Node emitting scored output.
|
|
95
|
+
*
|
|
96
|
+
* @category patterns
|
|
97
|
+
*/
|
|
98
|
+
declare function scorer(sources: ReadonlyArray<Node<number>>, weights: ReadonlyArray<Node<number>>, opts?: ScorerOptions): Node<ScoredItem<number[]>>;
|
|
99
|
+
|
|
100
|
+
type index_FeedbackOptions = FeedbackOptions;
|
|
101
|
+
type index_FunnelOptions = FunnelOptions;
|
|
102
|
+
type index_FunnelStage = FunnelStage;
|
|
103
|
+
type index_ScoredItem<T = unknown> = ScoredItem<T>;
|
|
104
|
+
type index_ScorerOptions = ScorerOptions;
|
|
105
|
+
type index_StepRef = StepRef;
|
|
106
|
+
declare const index_feedback: typeof feedback;
|
|
107
|
+
declare const index_funnel: typeof funnel;
|
|
108
|
+
declare const index_scorer: typeof scorer;
|
|
109
|
+
declare namespace index {
|
|
110
|
+
export { type index_FeedbackOptions as FeedbackOptions, type index_FunnelOptions as FunnelOptions, type index_FunnelStage as FunnelStage, type index_ScoredItem as ScoredItem, type index_ScorerOptions as ScorerOptions, type index_StepRef as StepRef, index_feedback as feedback, index_funnel as funnel, index_scorer as scorer };
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { type FeedbackOptions as F, type ScoredItem as S, type FunnelOptions as a, type FunnelStage as b, type ScorerOptions as c, type StepRef as d, funnel as e, feedback as f, index as i, scorer as s };
|
|
@@ -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.cjs';
|
|
2
|
+
import { G as Graph, a as GraphOptions } from './graph-BUwMAxJI.cjs';
|
|
3
|
+
import { a as ReactiveLogBundle } from './reactive-log-_zeEnB9H.cjs';
|
|
4
4
|
import { AppendLogStorageTier } from './extra/storage-tiers.cjs';
|
|
5
5
|
|
|
6
6
|
type TopicOptions = {
|