@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,18 +1,18 @@
|
|
|
1
|
-
import { T as TokenUsage, L as LLMAdapter, P as PricingFn, C as ChatMessage, a as LLMInvokeOptions, d as ToolDefinition, b as LLMResponse, S as StreamDelta, c as ToolCall, e as CapabilitiesRegistry, M as ModelCapabilities, f as ModelFeatures, g as ModelLimits, h as ModelPricing, i as PriceBreakdown, j as PricingRegistry, R as Rate, k as TieredRate, l as composePricing, m as computePrice, n as createCapabilitiesRegistry, o as createPricingRegistry, p as pricingFor, r as registryPricing, z as zeroPrice } from './types-
|
|
2
|
-
import { a as CascadeExhaustionReport, A as AdapterProvider, b as AdapterTier, d as AllTiersExhaustedError, C as CascadingLlmAdapterOptions, e as CreateAdapterOptions, O as OpenAICompatAdapterOptions, f as OpenAICompatPreset, g as OpenAISdkLike, h as cascadingLlmAdapter, c as createAdapter, o as openAICompatAdapter, t as tier } from './cascading-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as CircuitBreakerOptions, e as CircuitBreaker, f as CircuitOpenError } from './
|
|
1
|
+
import { T as TokenUsage, L as LLMAdapter, P as PricingFn, C as ChatMessage, a as LLMInvokeOptions, d as ToolDefinition, b as LLMResponse, S as StreamDelta, c as ToolCall, e as CapabilitiesRegistry, M as ModelCapabilities, f as ModelFeatures, g as ModelLimits, h as ModelPricing, i as PriceBreakdown, j as PricingRegistry, R as Rate, k as TieredRate, l as composePricing, m as computePrice, n as createCapabilitiesRegistry, o as createPricingRegistry, p as pricingFor, r as registryPricing, z as zeroPrice } from './types-39jk0kaV.js';
|
|
2
|
+
import { a as CascadeExhaustionReport, A as AdapterProvider, b as AdapterTier, d as AllTiersExhaustedError, C as CascadingLlmAdapterOptions, e as CreateAdapterOptions, O as OpenAICompatAdapterOptions, f as OpenAICompatPreset, g as OpenAISdkLike, h as cascadingLlmAdapter, c as createAdapter, o as openAICompatAdapter, t as tier } from './cascading-g2_rhhaM.js';
|
|
3
|
+
import { N as Node, A as Actor } from './node-BYInONRr.js';
|
|
4
|
+
import { a as ReactiveLogBundle } from './reactive-log-BlAsPLl2.js';
|
|
5
|
+
import { a as CircuitBreakerOptions, e as CircuitBreaker, f as CircuitOpenError } from './index-CmqiJZKM.js';
|
|
6
6
|
import { NodeInput } from './extra/sources.js';
|
|
7
|
-
import { W as WithReplayCacheOptions, F as FallbackAdapterOptions, a as FallbackFixture, b as FallbackMissError, c as FallbackMissPolicy, R as ReplayCacheKeyContext, d as ReplayCacheMissError, e as ReplayCacheMode, f as canonicalJson, g as fallbackAdapter, w as withReplayCache } from './fallback-
|
|
8
|
-
import { G as Graph, a as GraphOptions, k as GraphCheckpointRecord, j as GraphAttachStorageOptions } from './graph-
|
|
9
|
-
import { T as TopicGraph } from './index-
|
|
10
|
-
import { G as GateController, c as GateOptions } from './pipeline-graph-
|
|
11
|
-
import { D as DistillBundle, E as Extraction } from './composite-
|
|
12
|
-
import { V as VectorSearchResult,
|
|
7
|
+
import { W as WithReplayCacheOptions, F as FallbackAdapterOptions, a as FallbackFixture, b as FallbackMissError, c as FallbackMissPolicy, R as ReplayCacheKeyContext, d as ReplayCacheMissError, e as ReplayCacheMode, f as canonicalJson, g as fallbackAdapter, w as withReplayCache } from './fallback-CMZl39L5.js';
|
|
8
|
+
import { G as Graph, a as GraphOptions, k as GraphCheckpointRecord, j as GraphAttachStorageOptions } from './graph-30XSgtVX.js';
|
|
9
|
+
import { T as TopicGraph } from './index-DszPlZzK.js';
|
|
10
|
+
import { G as GateController, c as GateOptions } from './pipeline-graph-D8vKcO_p.js';
|
|
11
|
+
import { D as DistillBundle, E as Extraction } from './composite-DGatA-JK.js';
|
|
12
|
+
import { V as VectorSearchResult, C as CollectionGraph, a as VectorIndexGraph, K as KnowledgeGraph } from './index-DQUVq1_d.js';
|
|
13
13
|
import { StorageHandle } from './extra/storage-core.js';
|
|
14
14
|
import { SnapshotStorageTier } from './extra/storage-tiers.js';
|
|
15
|
-
import { c as GraphSpecCatalog } from './index-
|
|
15
|
+
import { c as GraphSpecCatalog } from './index-BKMdnYnk.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Observable adapter wrapper — the "inverted statistics" surface.
|
|
@@ -821,28 +821,6 @@ interface GeminiUsage {
|
|
|
821
821
|
}
|
|
822
822
|
declare function googleAdapter(opts?: GoogleAdapterOptions): LLMAdapter;
|
|
823
823
|
|
|
824
|
-
/**
|
|
825
|
-
* `fromLLM` — reactive LLM invocation sugar.
|
|
826
|
-
*
|
|
827
|
-
* @module
|
|
828
|
-
*/
|
|
829
|
-
|
|
830
|
-
type FromLLMOptions = {
|
|
831
|
-
name?: string;
|
|
832
|
-
model?: string;
|
|
833
|
-
temperature?: number;
|
|
834
|
-
maxTokens?: number;
|
|
835
|
-
tools?: readonly ToolDefinition[];
|
|
836
|
-
systemPrompt?: string;
|
|
837
|
-
};
|
|
838
|
-
/**
|
|
839
|
-
* Reactive LLM invocation adapter. Returns a derived node that re-invokes
|
|
840
|
-
* the LLM whenever the messages dep changes.
|
|
841
|
-
*
|
|
842
|
-
* Uses `switchMap` internally — new invocations cancel stale in-flight ones.
|
|
843
|
-
*/
|
|
844
|
-
declare function fromLLM(adapter: LLMAdapter, messages: NodeInput<readonly ChatMessage[]>, opts?: FromLLMOptions): Node<LLMResponse | null>;
|
|
845
|
-
|
|
846
824
|
/**
|
|
847
825
|
* `frozenContext` — prefix-cache-friendly snapshot of upstream context.
|
|
848
826
|
*
|
|
@@ -897,55 +875,26 @@ type FrozenContextOptions = {
|
|
|
897
875
|
*/
|
|
898
876
|
declare function frozenContext<T>(source: NodeInput<T>, opts?: FrozenContextOptions): Node<T | null>;
|
|
899
877
|
|
|
900
|
-
/**
|
|
901
|
-
* `promptNode` — universal LLM transform as a reactive derived node.
|
|
902
|
-
*
|
|
903
|
-
* The shape: `deps → messagesNode (derived) → switchMap → call (producer) → output`.
|
|
904
|
-
* Each upstream wave is one LLM call; superseding waves cancel the in-flight
|
|
905
|
-
* call via the abort signal threaded through `nodeSignal(opts.abort)`.
|
|
906
|
-
*
|
|
907
|
-
* The producer-shape on the inner is load-bearing: it emits exactly one DATA
|
|
908
|
-
* + COMPLETE per wave, so the outer switchMap sees one DATA per wave (matches
|
|
909
|
-
* the `HarnessExecutor` contract). A `derived([call], parse)` would have its
|
|
910
|
-
* own first-run / push-on-subscribe semantics that can leak a transient null
|
|
911
|
-
* before the real response arrives — observed and reverted in an earlier
|
|
912
|
-
* attempt; see SESSION-ai-harness-module-review.md line 3654 for context.
|
|
913
|
-
* Locked as path (b) producer-based by Session C (2026-04-27).
|
|
914
|
-
*
|
|
915
|
-
* **Retry / replay-cache.** Stack middleware on the adapter:
|
|
916
|
-
*
|
|
917
|
-
* ```ts
|
|
918
|
-
* import { withRetry, withReplayCache } from "@graphrefly/graphrefly/patterns/ai";
|
|
919
|
-
*
|
|
920
|
-
* const adapter = withRetry(
|
|
921
|
-
* withReplayCache(baseAdapter, { keyFn: (ctx) => ctx.messages[0].content }),
|
|
922
|
-
* { count: 3, backoff: 200 },
|
|
923
|
-
* );
|
|
924
|
-
* const result = promptNode(adapter, [input], (q) => q);
|
|
925
|
-
* ```
|
|
926
|
-
*
|
|
927
|
-
* `promptNode` no longer ships `retries` / `cache` options — they duplicated
|
|
928
|
-
* middleware already at the adapter layer.
|
|
929
|
-
*
|
|
930
|
-
* **Cross-wave cache (COMPOSITION-GUIDE §32).** The switchMap output cache
|
|
931
|
-
* survives across new outer DATAs — `promptNode`'s cached value persists
|
|
932
|
-
* until the next wave fully resolves. Consumers that need to distinguish
|
|
933
|
-
* "fresh value for THIS session" from "stale cache from a prior session"
|
|
934
|
-
* (e.g. `agentLoop` resetting on new `run()`) must add a `state()` mirror
|
|
935
|
-
* at their session boundary and depend on the mirror, not the `promptNode`
|
|
936
|
-
* output directly. `promptNode` itself stays primitive — it does not
|
|
937
|
-
* embed a state-mirror.
|
|
938
|
-
*
|
|
939
|
-
* @module
|
|
940
|
-
*/
|
|
941
|
-
|
|
942
878
|
type PromptNodeOptions = {
|
|
943
879
|
name?: string;
|
|
944
880
|
model?: string;
|
|
945
881
|
temperature?: number;
|
|
946
882
|
maxTokens?: number;
|
|
947
|
-
/**
|
|
948
|
-
|
|
883
|
+
/**
|
|
884
|
+
* Output format:
|
|
885
|
+
* - `"text"` (default) — emit the response content as a string.
|
|
886
|
+
* - `"json"` — `JSON.parse` the content (markdown fences stripped).
|
|
887
|
+
* - `"raw"` — emit the full {@link LLMResponse} object (subsumes the
|
|
888
|
+
* pre-Tier-2.3 `fromLLM` shape; use this when you need `usage` /
|
|
889
|
+
* `toolCalls` / `finishReason` alongside `content`).
|
|
890
|
+
*/
|
|
891
|
+
format?: "text" | "json" | "raw";
|
|
892
|
+
/**
|
|
893
|
+
* Optional tool definitions forwarded to the adapter. Pair with
|
|
894
|
+
* `format: "raw"` (or read `toolCalls` from a downstream parser) when
|
|
895
|
+
* tool-calling is in scope.
|
|
896
|
+
*/
|
|
897
|
+
tools?: readonly ToolDefinition[];
|
|
949
898
|
/**
|
|
950
899
|
* Optional system prompt. Forwarded via `opts.systemPrompt` to the adapter
|
|
951
900
|
* only — never pushed as a `{role:"system"}` message (avoiding the
|
|
@@ -996,7 +945,12 @@ type PromptNodeOptions = {
|
|
|
996
945
|
* @param opts - Optional configuration.
|
|
997
946
|
* @returns `Node` emitting LLM responses (string or parsed JSON).
|
|
998
947
|
*/
|
|
999
|
-
declare function promptNode
|
|
948
|
+
declare function promptNode(adapter: LLMAdapter, deps: readonly Node<unknown>[], prompt: string | ((...depValues: unknown[]) => string), opts: PromptNodeOptions & {
|
|
949
|
+
format: "raw";
|
|
950
|
+
}): Node<LLMResponse | null>;
|
|
951
|
+
declare function promptNode<T = string>(adapter: LLMAdapter, deps: readonly Node<unknown>[], prompt: string | ((...depValues: unknown[]) => string), opts?: Omit<PromptNodeOptions, "format"> & {
|
|
952
|
+
format?: "text" | "json";
|
|
953
|
+
}): Node<T | null>;
|
|
1000
954
|
|
|
1001
955
|
/**
|
|
1002
956
|
* `streamingPromptNode` + `gatedStream` — streaming LLM transforms.
|
|
@@ -1886,8 +1840,12 @@ type MemoryTiersOptions<TMem> = {
|
|
|
1886
1840
|
/** @internal */
|
|
1887
1841
|
declare const DEFAULT_DECAY_RATE: number;
|
|
1888
1842
|
type MemoryTiersBundle<TMem> = {
|
|
1889
|
-
/**
|
|
1890
|
-
|
|
1843
|
+
/**
|
|
1844
|
+
* Permanent tier: never evicted. Backed by a `collection({ranked:false})`
|
|
1845
|
+
* Graph (Tier 2.3 — was previously a `LightCollectionBundle`; the no-Graph
|
|
1846
|
+
* bundle shape was folded into the unified `CollectionGraph`).
|
|
1847
|
+
*/
|
|
1848
|
+
readonly permanent: CollectionGraph<TMem>;
|
|
1891
1849
|
/** Active entries node (reactive, holds ReadonlyMap). */
|
|
1892
1850
|
readonly activeEntries: Node<unknown>;
|
|
1893
1851
|
/** Archive storage handle (null if no tier configured). */
|
|
@@ -2466,7 +2424,6 @@ declare const index_FallbackAdapterOptions: typeof FallbackAdapterOptions;
|
|
|
2466
2424
|
declare const index_FallbackFixture: typeof FallbackFixture;
|
|
2467
2425
|
declare const index_FallbackMissError: typeof FallbackMissError;
|
|
2468
2426
|
declare const index_FallbackMissPolicy: typeof FallbackMissPolicy;
|
|
2469
|
-
type index_FromLLMOptions = FromLLMOptions;
|
|
2470
2427
|
type index_FrozenContextOptions = FrozenContextOptions;
|
|
2471
2428
|
type index_GatedStreamHandle<T> = GatedStreamHandle<T>;
|
|
2472
2429
|
type index_GatedStreamOptions = GatedStreamOptions;
|
|
@@ -2563,7 +2520,6 @@ declare const index_createCapabilitiesRegistry: typeof createCapabilitiesRegistr
|
|
|
2563
2520
|
declare const index_createPricingRegistry: typeof createPricingRegistry;
|
|
2564
2521
|
declare const index_dryRunAdapter: typeof dryRunAdapter;
|
|
2565
2522
|
declare const index_fallbackAdapter: typeof fallbackAdapter;
|
|
2566
|
-
declare const index_fromLLM: typeof fromLLM;
|
|
2567
2523
|
declare const index_frozenContext: typeof frozenContext;
|
|
2568
2524
|
declare const index_gatedStream: typeof gatedStream;
|
|
2569
2525
|
declare const index_gaugesAsContext: typeof gaugesAsContext;
|
|
@@ -2607,7 +2563,7 @@ declare const index_withRetry: typeof withRetry;
|
|
|
2607
2563
|
declare const index_withTimeout: typeof withTimeout;
|
|
2608
2564
|
declare const index_zeroPrice: typeof zeroPrice;
|
|
2609
2565
|
declare namespace index {
|
|
2610
|
-
export { index_AdapterProvider as AdapterProvider, type index_AdapterStats as AdapterStats, index_AdapterTier as AdapterTier, type index_AdmissionScore3DOptions as AdmissionScore3DOptions, type index_AdmissionScoredOptions as AdmissionScoredOptions, type index_AdmissionScores as AdmissionScores, type index_AdmissionThresholds as AdmissionThresholds, index_AgentLoopGraph as AgentLoopGraph, type index_AgentLoopOptions as AgentLoopOptions, type index_AgentLoopStatus as AgentLoopStatus, type index_AgentMemoryGraph as AgentMemoryGraph, type index_AgentMemoryOptions as AgentMemoryOptions, index_AllTiersExhaustedError as AllTiersExhaustedError, type index_AnthropicAdapterOptions as AnthropicAdapterOptions, type index_AnthropicSdkLike as AnthropicSdkLike, type index_BudgetCaps as BudgetCaps, index_BudgetExhaustedError as BudgetExhaustedError, type index_BudgetGateBundle as BudgetGateBundle, type index_BudgetTotals as BudgetTotals, type index_CallStatsEvent as CallStatsEvent, index_CapabilitiesRegistry as CapabilitiesRegistry, index_CascadeExhaustionReport as CascadeExhaustionReport, index_CascadingLlmAdapterOptions as CascadingLlmAdapterOptions, index_ChatMessage as ChatMessage, index_ChatStreamGraph as ChatStreamGraph, type index_ChatStreamOptions as ChatStreamOptions, index_CircuitOpenError as CircuitOpenError, type index_ContentDecision as ContentDecision, type index_ContentGateOptions as ContentGateOptions, type index_CostMeterOptions as CostMeterOptions, type index_CostMeterReading as CostMeterReading, index_CreateAdapterOptions as CreateAdapterOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, type index_DryRunAdapterOptions as DryRunAdapterOptions, type index_ExtractedToolCall as ExtractedToolCall, index_FallbackAdapterOptions as FallbackAdapterOptions, index_FallbackFixture as FallbackFixture, index_FallbackMissError as FallbackMissError, index_FallbackMissPolicy as FallbackMissPolicy, type
|
|
2566
|
+
export { index_AdapterProvider as AdapterProvider, type index_AdapterStats as AdapterStats, index_AdapterTier as AdapterTier, type index_AdmissionScore3DOptions as AdmissionScore3DOptions, type index_AdmissionScoredOptions as AdmissionScoredOptions, type index_AdmissionScores as AdmissionScores, type index_AdmissionThresholds as AdmissionThresholds, index_AgentLoopGraph as AgentLoopGraph, type index_AgentLoopOptions as AgentLoopOptions, type index_AgentLoopStatus as AgentLoopStatus, type index_AgentMemoryGraph as AgentMemoryGraph, type index_AgentMemoryOptions as AgentMemoryOptions, index_AllTiersExhaustedError as AllTiersExhaustedError, type index_AnthropicAdapterOptions as AnthropicAdapterOptions, type index_AnthropicSdkLike as AnthropicSdkLike, type index_BudgetCaps as BudgetCaps, index_BudgetExhaustedError as BudgetExhaustedError, type index_BudgetGateBundle as BudgetGateBundle, type index_BudgetTotals as BudgetTotals, type index_CallStatsEvent as CallStatsEvent, index_CapabilitiesRegistry as CapabilitiesRegistry, index_CascadeExhaustionReport as CascadeExhaustionReport, index_CascadingLlmAdapterOptions as CascadingLlmAdapterOptions, index_ChatMessage as ChatMessage, index_ChatStreamGraph as ChatStreamGraph, type index_ChatStreamOptions as ChatStreamOptions, index_CircuitOpenError as CircuitOpenError, type index_ContentDecision as ContentDecision, type index_ContentGateOptions as ContentGateOptions, type index_CostMeterOptions as CostMeterOptions, type index_CostMeterReading as CostMeterReading, index_CreateAdapterOptions as CreateAdapterOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, type index_DryRunAdapterOptions as DryRunAdapterOptions, type index_ExtractedToolCall as ExtractedToolCall, index_FallbackAdapterOptions as FallbackAdapterOptions, index_FallbackFixture as FallbackFixture, index_FallbackMissError as FallbackMissError, index_FallbackMissPolicy as FallbackMissPolicy, type index_FrozenContextOptions as FrozenContextOptions, type index_GatedStreamHandle as GatedStreamHandle, type index_GatedStreamOptions as GatedStreamOptions, type index_GaugesAsContextOptions as GaugesAsContextOptions, type index_GoogleAdapterOptions as GoogleAdapterOptions, type index_GoogleSdkLike as GoogleSdkLike, type index_GoogleSdkRequestConfig as GoogleSdkRequestConfig, type index_GoogleSdkRequestParams as GoogleSdkRequestParams, type index_GraphDefValidation as GraphDefValidation, type index_GraphFromSpecOptions as GraphFromSpecOptions, type index_HandoffOptions as HandoffOptions, type index_HttpErrorLike as HttpErrorLike, type index_KeywordFlag as KeywordFlag, type index_KeywordFlagExtractorOptions as KeywordFlagExtractorOptions, type index_KnobsAsToolsResult as KnobsAsToolsResult, index_LLMAdapter as LLMAdapter, type index_LLMConsolidatorOptions as LLMConsolidatorOptions, type index_LLMExtractorOptions as LLMExtractorOptions, index_LLMInvokeOptions as LLMInvokeOptions, index_LLMResponse as LLMResponse, index_LLMTimeoutError as LLMTimeoutError, type index_McpToolSchema as McpToolSchema, type index_MemoryRetrievalBundle as MemoryRetrievalBundle, type index_MemoryRetrievalOptions as MemoryRetrievalOptions, type index_MemoryTier as MemoryTier, type index_MemoryTiersBundle as MemoryTiersBundle, type index_MemoryTiersOptions as MemoryTiersOptions, type index_MemoryWithKGOptions as MemoryWithKGOptions, type index_MemoryWithTiersOptions as MemoryWithTiersOptions, type index_MemoryWithVectorsOptions as MemoryWithVectorsOptions, index_ModelCapabilities as ModelCapabilities, index_ModelFeatures as ModelFeatures, index_ModelLimits as ModelLimits, index_ModelPricing as ModelPricing, index_OpenAICompatAdapterOptions as OpenAICompatAdapterOptions, index_OpenAICompatPreset as OpenAICompatPreset, index_OpenAISdkLike as OpenAISdkLike, type index_OpenAIToolSchema as OpenAIToolSchema, index_PriceBreakdown as PriceBreakdown, index_PricingFn as PricingFn, index_PricingRegistry as PricingRegistry, type index_PromptNodeOptions as PromptNodeOptions, index_Rate as Rate, type index_RedactorOptions as RedactorOptions, index_ReplayCacheKeyContext as ReplayCacheKeyContext, index_ReplayCacheMissError as ReplayCacheMissError, index_ReplayCacheMode as ReplayCacheMode, type index_ResilientAdapterBundle as ResilientAdapterBundle, type index_ResilientAdapterOptions as ResilientAdapterOptions, type index_RetrievalEntry as RetrievalEntry, type index_RetrievalPipelineOptions as RetrievalPipelineOptions, type index_RetrievalQuery as RetrievalQuery, type index_RetrievalTrace as RetrievalTrace, type index_StampedDelta as StampedDelta, type index_StrategyOperation as StrategyOperation, type index_StrategyPlan as StrategyPlan, index_StreamDelta as StreamDelta, type index_StreamingPromptNodeHandle as StreamingPromptNodeHandle, type index_StreamingPromptNodeOptions as StreamingPromptNodeOptions, type index_SuggestStrategyOptions as SuggestStrategyOptions, type index_SystemPromptHandle as SystemPromptHandle, index_TieredRate as TieredRate, index_TokenUsage as TokenUsage, index_ToolCall as ToolCall, index_ToolDefinition as ToolDefinition, type index_ToolExecutionOptions as ToolExecutionOptions, index_ToolRegistryGraph as ToolRegistryGraph, type index_ToolRegistryOptions as ToolRegistryOptions, type index_ToolResult as ToolResult, type index_ToolSelectorOptions as ToolSelectorOptions, type index_WithBreakerOptions as WithBreakerOptions, type index_WithBudgetGateOptions as WithBudgetGateOptions, type index_WithDryRunBundle as WithDryRunBundle, type index_WithDryRunOptions as WithDryRunOptions, type index_WithRateLimiterOptions as WithRateLimiterOptions, index_WithReplayCacheOptions as WithReplayCacheOptions, type index_WithRetryOptions as WithRetryOptions, index_admissionFilter3D as admissionFilter3D, index_admissionScored as admissionScored, index_agentLoop as agentLoop, index_agentMemory as agentMemory, index_anthropicAdapter as anthropicAdapter, index_canonicalJson as canonicalJson, index_cascadingLlmAdapter as cascadingLlmAdapter, index_chatStream as chatStream, index_composePricing as composePricing, index_computePrice as computePrice, index_contentGate as contentGate, index_costMeterExtractor as costMeterExtractor, index_createAdapter as createAdapter, index_createCapabilitiesRegistry as createCapabilitiesRegistry, index_createPricingRegistry as createPricingRegistry, index_dryRunAdapter as dryRunAdapter, index_fallbackAdapter as fallbackAdapter, index_frozenContext as frozenContext, index_gatedStream as gatedStream, index_gaugesAsContext as gaugesAsContext, index_googleAdapter as googleAdapter, index_graphFromSpec as graphFromSpec, index_graphFromSpecReactive as graphFromSpecReactive, index_handoff as handoff, index_keywordFlagExtractor as keywordFlagExtractor, index_knobsAsTools as knobsAsTools, index_llmConsolidator as llmConsolidator, index_llmExtractor as llmExtractor, index_memoryRetrieval as memoryRetrieval, index_memoryWithKG as memoryWithKG, index_memoryWithTiers as memoryWithTiers, index_memoryWithVectors as memoryWithVectors, index_observableAdapter as observableAdapter, index_openAICompatAdapter as openAICompatAdapter, index_parseRateLimitFromError as parseRateLimitFromError, index_pricingFor as pricingFor, index_promptNode as promptNode, index_redactor as redactor, index_registryPricing as registryPricing, index_resilientAdapter as resilientAdapter, index_streamExtractor as streamExtractor, index_streamingPromptNode as streamingPromptNode, index_suggestStrategy as suggestStrategy, index_suggestStrategyReactive as suggestStrategyReactive, index_systemPromptBuilder as systemPromptBuilder, index_tier as tier, index_toolCallExtractor as toolCallExtractor, index_toolExecution as toolExecution, index_toolRegistry as toolRegistry, index_toolSelector as toolSelector, index_validateGraphDef as validateGraphDef, index_withBreaker as withBreaker, index_withBudgetGate as withBudgetGate, index_withDryRun as withDryRun, index_withRateLimiter as withRateLimiter, index_withReplayCache as withReplayCache, index_withRetry as withRetry, index_withTimeout as withTimeout, index_zeroPrice as zeroPrice };
|
|
2611
2567
|
}
|
|
2612
2568
|
|
|
2613
|
-
export { type
|
|
2569
|
+
export { type MemoryWithVectorsOptions as $, type AdapterStats as A, type BudgetCaps as B, type CallStatsEvent as C, DEFAULT_DECAY_RATE as D, type ExtractedToolCall as E, type FrozenContextOptions as F, type GatedStreamHandle as G, type GoogleSdkRequestConfig as H, type GoogleSdkRequestParams as I, type GraphDefValidation as J, type GraphFromSpecOptions as K, type HandoffOptions as L, type HttpErrorLike as M, type KeywordFlag as N, type KeywordFlagExtractorOptions as O, type KnobsAsToolsResult as P, type LLMConsolidatorOptions as Q, type LLMExtractorOptions as R, LLMTimeoutError as S, type McpToolSchema as T, type MemoryRetrievalBundle as U, type MemoryRetrievalOptions as V, type MemoryTier as W, type MemoryTiersBundle as X, type MemoryTiersOptions as Y, type MemoryWithKGOptions as Z, type MemoryWithTiersOptions as _, type AdmissionScore3DOptions as a, toolRegistry as a$, type OpenAIToolSchema as a0, type PromptNodeOptions as a1, type RedactorOptions as a2, type ResilientAdapterBundle as a3, type ResilientAdapterOptions as a4, type RetrievalEntry as a5, type RetrievalPipelineOptions as a6, type RetrievalQuery as a7, type RetrievalTrace as a8, type StampedDelta as a9, frozenContext as aA, gatedStream as aB, gaugesAsContext as aC, googleAdapter as aD, graphFromSpec as aE, graphFromSpecReactive as aF, handoff as aG, keywordFlagExtractor as aH, knobsAsTools as aI, llmConsolidator as aJ, llmExtractor as aK, memoryRetrieval as aL, memoryWithKG as aM, memoryWithTiers as aN, memoryWithVectors as aO, observableAdapter as aP, parseRateLimitFromError as aQ, promptNode as aR, redactor as aS, resilientAdapter as aT, streamExtractor as aU, streamingPromptNode as aV, suggestStrategy as aW, suggestStrategyReactive as aX, systemPromptBuilder as aY, toolCallExtractor as aZ, toolExecution as a_, type StrategyOperation as aa, type StrategyPlan as ab, type StreamingPromptNodeHandle as ac, type StreamingPromptNodeOptions as ad, type SuggestStrategyOptions as ae, type SystemPromptHandle as af, type ToolExecutionOptions as ag, ToolRegistryGraph as ah, type ToolRegistryOptions as ai, type ToolResult as aj, type ToolSelectorOptions as ak, type WithBreakerOptions as al, type WithBudgetGateOptions as am, type WithDryRunBundle as an, type WithDryRunOptions as ao, type WithRateLimiterOptions as ap, type WithRetryOptions as aq, admissionFilter3D as ar, admissionScored as as, agentLoop as at, agentMemory as au, anthropicAdapter as av, chatStream as aw, contentGate as ax, costMeterExtractor as ay, dryRunAdapter as az, type AdmissionScoredOptions as b, toolSelector as b0, validateGraphDef as b1, withBreaker as b2, withBudgetGate as b3, withDryRun as b4, withRateLimiter as b5, withRetry as b6, withTimeout as b7, type AdmissionScores as c, type AdmissionThresholds as d, AgentLoopGraph as e, type AgentLoopOptions as f, type AgentLoopStatus as g, type AgentMemoryGraph as h, index as i, type AgentMemoryOptions as j, type AnthropicAdapterOptions as k, type AnthropicSdkLike as l, BudgetExhaustedError as m, type BudgetGateBundle as n, type BudgetTotals as o, ChatStreamGraph as p, type ChatStreamOptions as q, type ContentDecision as r, type ContentGateOptions as s, type CostMeterOptions as t, type CostMeterReading as u, type DryRunAdapterOptions as v, type GatedStreamOptions as w, type GaugesAsContextOptions as x, type GoogleAdapterOptions as y, type GoogleSdkLike as z };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as index$2 } from './index-
|
|
2
|
-
import { i as index$3 } from './index-
|
|
3
|
-
import { i as index$4 } from './index-
|
|
4
|
-
import { i as index$5 } from './index-
|
|
5
|
-
import {
|
|
6
|
-
import { i as index$6 } from './index-
|
|
7
|
-
import { i as index$7 } from './index-
|
|
8
|
-
import { i as index$8 } from './index-
|
|
9
|
-
import { i as index$9 } from './index-
|
|
1
|
+
import { i as index$2 } from './index-DYTBbF8T.cjs';
|
|
2
|
+
import { i as index$3 } from './index-CL7oilfm.cjs';
|
|
3
|
+
import { i as index$4 } from './index-FVoPvhAu.cjs';
|
|
4
|
+
import { i as index$5 } from './index-D3ayz3hy.cjs';
|
|
5
|
+
import { N as Node } from './node-BYInONRr.cjs';
|
|
6
|
+
import { i as index$6 } from './index-DOBLxOti.cjs';
|
|
7
|
+
import { i as index$7 } from './index-PgwvGWa1.cjs';
|
|
8
|
+
import { i as index$8 } from './index-z8WFPVI8.cjs';
|
|
9
|
+
import { i as index$9 } from './index-DIHcMLr6.cjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Options for creating signals.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { N as Node } from './node-BYInONRr.js';
|
|
2
|
+
import { B as BaseAuditRecord } from './index-CusEP3Sv.js';
|
|
3
|
+
import { a as ReactiveLogBundle } from './reactive-log-BlAsPLl2.js';
|
|
3
4
|
import { AppendLogStorageTier } from './extra/storage-tiers.js';
|
|
4
|
-
import { a as GraphOptions, G as Graph } from './graph-
|
|
5
|
-
import { B as BaseAuditRecord } from './imperative-audit-ahAE65a9.js';
|
|
5
|
+
import { a as GraphOptions, G as Graph } from './graph-30XSgtVX.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* CQRS patterns (roadmap §4.5).
|
|
@@ -64,13 +64,14 @@ declare const cqrsEventKeyOf: (e: CqrsEvent) => string;
|
|
|
64
64
|
interface DispatchRecord<T = unknown> extends BaseAuditRecord {
|
|
65
65
|
readonly commandName: string;
|
|
66
66
|
readonly payload: T;
|
|
67
|
-
|
|
67
|
+
/** Action result. Tier 1.6.2 canonical enum (renamed from `status`). */
|
|
68
|
+
readonly outcome: "success" | "failure";
|
|
68
69
|
readonly error?: unknown;
|
|
69
70
|
readonly errorType?: string;
|
|
70
71
|
/**
|
|
71
72
|
* Event names emitted by the handler.
|
|
72
|
-
* - `
|
|
73
|
-
* - `
|
|
73
|
+
* - `outcome: "success"`: events that persisted in the event log.
|
|
74
|
+
* - `outcome: "failure"`: events the handler ATTEMPTED to emit before throwing;
|
|
74
75
|
* they were rolled back and did NOT persist. Documents the failed attempt's
|
|
75
76
|
* intentions for debugging handler logic. The actual event log shows only
|
|
76
77
|
* what's durable.
|
|
@@ -80,7 +81,8 @@ interface DispatchRecord<T = unknown> extends BaseAuditRecord {
|
|
|
80
81
|
declare const dispatchKeyOf: <T>(r: DispatchRecord<T>) => string;
|
|
81
82
|
interface SagaInvocation<T = unknown> extends BaseAuditRecord {
|
|
82
83
|
readonly eventType: string;
|
|
83
|
-
|
|
84
|
+
/** Action result. Tier 1.6.2 canonical enum (renamed from `status`). */
|
|
85
|
+
readonly outcome: "success" | "failure";
|
|
84
86
|
readonly error?: unknown;
|
|
85
87
|
readonly errorType?: string;
|
|
86
88
|
readonly aggregateId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { w as watchTopologyTree } from './topology-tree-
|
|
1
|
+
import { o as GraphReFlyConfig } from './node-BYInONRr.js';
|
|
2
|
+
import { c as GraphPersistSnapshot, k as GraphCheckpointRecord, G as Graph, C as CausalChain, e as CausalStep, D as DescribeFilter, E as ExplainPathOptions, h as GRAPH_META_SEGMENT, i as GraphActorOptions, j as GraphAttachStorageOptions, d as GraphDescribeOptions, b as GraphDescribeOutput, l as GraphDiagramDirection, m as GraphDiffChange, n as GraphDiffResult, o as GraphFactoryContext, p as GraphNodeFactory, q as GraphObserveAll, r as GraphObserveOne, a as GraphOptions, s as GraphProfileOptions, t as GraphProfileResult, u as GraphVersionChange, v as GraphWALDiff, N as NodeProfile, O as ObserveDetail, w as ObserveEvent, x as ObserveOptions, y as ObserveResult, z as ObserveTheme, A as ObserveThemeName, R as ReachableDirection, B as ReachableOptions, S as SNAPSHOT_VERSION, T as TopologyEvent, F as TraceEntry, H as diffForWAL, I as explainPath, J as graphProfile, K as reachable } from './graph-30XSgtVX.js';
|
|
3
|
+
import { w as watchTopologyTree } from './topology-tree-BtvbgMXJ.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Approximate in-memory size estimation for arbitrary JS values.
|
|
@@ -418,7 +418,6 @@ type index_GraphCodec = GraphCodec;
|
|
|
418
418
|
declare const index_GraphDescribeOptions: typeof GraphDescribeOptions;
|
|
419
419
|
declare const index_GraphDescribeOutput: typeof GraphDescribeOutput;
|
|
420
420
|
declare const index_GraphDiagramDirection: typeof GraphDiagramDirection;
|
|
421
|
-
declare const index_GraphDiagramOptions: typeof GraphDiagramOptions;
|
|
422
421
|
declare const index_GraphDiffChange: typeof GraphDiffChange;
|
|
423
422
|
declare const index_GraphDiffResult: typeof GraphDiffResult;
|
|
424
423
|
declare const index_GraphFactoryContext: typeof GraphFactoryContext;
|
|
@@ -458,7 +457,6 @@ declare const index_diffForWAL: typeof diffForWAL;
|
|
|
458
457
|
declare const index_encodeEnvelope: typeof encodeEnvelope;
|
|
459
458
|
declare const index_explainPath: typeof explainPath;
|
|
460
459
|
declare const index_graphProfile: typeof graphProfile;
|
|
461
|
-
declare const index_mermaidLiveUrl: typeof mermaidLiveUrl;
|
|
462
460
|
declare const index_reachable: typeof reachable;
|
|
463
461
|
declare const index_registerBuiltinCodecs: typeof registerBuiltinCodecs;
|
|
464
462
|
declare const index_replayWAL: typeof replayWAL;
|
|
@@ -466,7 +464,7 @@ declare const index_sizeof: typeof sizeof;
|
|
|
466
464
|
declare const index_validateGraphObservability: typeof validateGraphObservability;
|
|
467
465
|
declare const index_watchTopologyTree: typeof watchTopologyTree;
|
|
468
466
|
declare namespace index {
|
|
469
|
-
export { index_CausalChain as CausalChain, index_CausalStep as CausalStep, index_DescribeFilter as DescribeFilter, index_ENVELOPE_VERSION as ENVELOPE_VERSION, type index_EvictedSubgraphInfo as EvictedSubgraphInfo, type index_EvictionPolicy as EvictionPolicy, index_ExplainPathOptions as ExplainPathOptions, index_GRAPH_META_SEGMENT as GRAPH_META_SEGMENT, index_Graph as Graph, index_GraphActorOptions as GraphActorOptions, index_GraphAttachStorageOptions as GraphAttachStorageOptions, index_GraphCheckpointRecord as GraphCheckpointRecord, type index_GraphCodec as GraphCodec, index_GraphDescribeOptions as GraphDescribeOptions, index_GraphDescribeOutput as GraphDescribeOutput, index_GraphDiagramDirection as GraphDiagramDirection,
|
|
467
|
+
export { index_CausalChain as CausalChain, index_CausalStep as CausalStep, index_DescribeFilter as DescribeFilter, index_ENVELOPE_VERSION as ENVELOPE_VERSION, type index_EvictedSubgraphInfo as EvictedSubgraphInfo, type index_EvictionPolicy as EvictionPolicy, index_ExplainPathOptions as ExplainPathOptions, index_GRAPH_META_SEGMENT as GRAPH_META_SEGMENT, index_Graph as Graph, index_GraphActorOptions as GraphActorOptions, index_GraphAttachStorageOptions as GraphAttachStorageOptions, index_GraphCheckpointRecord as GraphCheckpointRecord, type index_GraphCodec as GraphCodec, index_GraphDescribeOptions as GraphDescribeOptions, index_GraphDescribeOutput as GraphDescribeOutput, index_GraphDiagramDirection as GraphDiagramDirection, index_GraphDiffChange as GraphDiffChange, index_GraphDiffResult as GraphDiffResult, index_GraphFactoryContext as GraphFactoryContext, index_GraphNodeFactory as GraphNodeFactory, index_GraphObserveAll as GraphObserveAll, index_GraphObserveOne as GraphObserveOne, index_GraphOptions as GraphOptions, index_GraphPersistSnapshot as GraphPersistSnapshot, index_GraphProfileOptions as GraphProfileOptions, index_GraphProfileResult as GraphProfileResult, index_GraphVersionChange as GraphVersionChange, index_GraphWALDiff as GraphWALDiff, index_JsonCodec as JsonCodec, type index_LazyGraphCodec as LazyGraphCodec, index_NodeProfile as NodeProfile, type index_ObservabilityCheck as ObservabilityCheck, type index_ObservabilityDescribeFormat as ObservabilityDescribeFormat, index_ObserveDetail as ObserveDetail, index_ObserveEvent as ObserveEvent, index_ObserveOptions as ObserveOptions, index_ObserveResult as ObserveResult, index_ObserveTheme as ObserveTheme, index_ObserveThemeName as ObserveThemeName, index_ReachableDirection as ReachableDirection, index_ReachableOptions as ReachableOptions, OVERHEAD as SIZEOF_OVERHEAD, index_SIZEOF_SYMBOL as SIZEOF_SYMBOL, index_SNAPSHOT_VERSION as SNAPSHOT_VERSION, index_TopologyEvent as TopologyEvent, index_TraceEntry as TraceEntry, type index_ValidateObservabilityOptions as ValidateObservabilityOptions, type index_ValidateObservabilityResult as ValidateObservabilityResult, type index_WALEntry as WALEntry, index_createDagCborCodec as createDagCborCodec, index_createDagCborZstdCodec as createDagCborZstdCodec, index_decodeEnvelope as decodeEnvelope, index_diffForWAL as diffForWAL, index_encodeEnvelope as encodeEnvelope, index_explainPath as explainPath, index_graphProfile as graphProfile, index_reachable as reachable, index_registerBuiltinCodecs as registerBuiltinCodecs, index_replayWAL as replayWAL, index_sizeof as sizeof, index_validateGraphObservability as validateGraphObservability, index_watchTopologyTree as watchTopologyTree };
|
|
470
468
|
}
|
|
471
469
|
|
|
472
470
|
export { ENVELOPE_VERSION as E, type GraphCodec as G, JsonCodec as J, type LazyGraphCodec as L, type ObservabilityCheck as O, SIZEOF_SYMBOL as S, type ValidateObservabilityOptions as V, type WALEntry as W, type EvictedSubgraphInfo as a, type EvictionPolicy as b, type ObservabilityDescribeFormat as c, OVERHEAD as d, type ValidateObservabilityResult as e, createDagCborCodec as f, createDagCborZstdCodec as g, decodeEnvelope as h, encodeEnvelope as i, index as j, replayWAL as k, registerBuiltinCodecs as r, sizeof as s, validateGraphObservability as v };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as index$2 } from './index-
|
|
2
|
-
import { i as index$3 } from './index-
|
|
3
|
-
import { i as index$4 } from './index-
|
|
4
|
-
import { i as index$5 } from './index-
|
|
5
|
-
import {
|
|
6
|
-
import { i as index$6 } from './index-
|
|
7
|
-
import { i as index$7 } from './index-
|
|
8
|
-
import { i as index$8 } from './index-
|
|
9
|
-
import { i as index$9 } from './index-
|
|
1
|
+
import { i as index$2 } from './index-CoM4rzyB.js';
|
|
2
|
+
import { i as index$3 } from './index-yLt-aPMp.js';
|
|
3
|
+
import { i as index$4 } from './index-C7VV_qOs.js';
|
|
4
|
+
import { i as index$5 } from './index-2n8Eai6M.js';
|
|
5
|
+
import { N as Node } from './node-BYInONRr.js';
|
|
6
|
+
import { i as index$6 } from './index-B2RUoIUz.js';
|
|
7
|
+
import { i as index$7 } from './index-Ctb7_2sG.js';
|
|
8
|
+
import { i as index$8 } from './index-BJSZxSFX.js';
|
|
9
|
+
import { i as index$9 } from './index-CPhBvRJU.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Options for creating signals.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Actor,
|
|
2
|
-
import { G as Graph, a as GraphOptions,
|
|
3
|
-
import { T as TopicGraph } from './index-
|
|
1
|
+
import { A as Actor, N as Node, P as PolicyRuleData, G as GuardAction } from './node-BYInONRr.js';
|
|
2
|
+
import { G as Graph, a as GraphOptions, c as GraphPersistSnapshot } from './graph-30XSgtVX.js';
|
|
3
|
+
import { T as TopicGraph } from './index-DszPlZzK.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Audit, policy enforcement, and compliance export (roadmap §9.2).
|
|
@@ -10,9 +10,10 @@ import { T as TopicGraph } from './index-BUFCHvOR.js';
|
|
|
10
10
|
*
|
|
11
11
|
* - {@link auditTrail} — reactive mutation log with by-node/by-actor/by-time
|
|
12
12
|
* queries.
|
|
13
|
-
* - {@link
|
|
14
|
-
*
|
|
15
|
-
* nodes so subsequent writes
|
|
13
|
+
* - {@link policyGate} — reactive ABAC gate (Tier 2.3 rename of
|
|
14
|
+
* `policyEnforcer`); in `"audit"` mode records would-be denials, in
|
|
15
|
+
* `"enforce"` mode pushes guards onto target nodes so subsequent writes
|
|
16
|
+
* throw {@link GuardDenied}.
|
|
16
17
|
* - {@link complianceSnapshot} — point-in-time export of graph state +
|
|
17
18
|
* audit trail + policies for regulatory archival.
|
|
18
19
|
*
|
|
@@ -88,7 +89,7 @@ declare class AuditTrailGraph extends Graph {
|
|
|
88
89
|
* snapshot synchronously.
|
|
89
90
|
*/
|
|
90
91
|
declare function auditTrail(target: Graph, opts?: AuditTrailOptions): AuditTrailGraph;
|
|
91
|
-
/** A single policy denial recorded by {@link
|
|
92
|
+
/** A single policy denial recorded by {@link PolicyGateGraph}. */
|
|
92
93
|
interface PolicyViolation {
|
|
93
94
|
timestamp_ns: number;
|
|
94
95
|
wall_clock_ns: number;
|
|
@@ -99,8 +100,8 @@ interface PolicyViolation {
|
|
|
99
100
|
/** `"observed"` (audit mode after-the-fact) or `"blocked"` (enforce mode pre-write). */
|
|
100
101
|
result: "observed" | "blocked";
|
|
101
102
|
}
|
|
102
|
-
/** Options for {@link
|
|
103
|
-
interface
|
|
103
|
+
/** Options for {@link policyGate}. */
|
|
104
|
+
interface PolicyGateOptions {
|
|
104
105
|
name?: string;
|
|
105
106
|
graph?: GraphOptions;
|
|
106
107
|
/**
|
|
@@ -122,14 +123,28 @@ interface PolicyEnforcerOptions {
|
|
|
122
123
|
* `target` OR any transitively-mounted subgraph after construction are
|
|
123
124
|
* guarded automatically (enforce mode only).
|
|
124
125
|
*
|
|
126
|
+
* Accepts a static `readonly string[]` or a reactive
|
|
127
|
+
* `Node<readonly string[]>` (Tier 3.4 — F.9 reactive primitive carve-out).
|
|
128
|
+
* When a `Node` is passed, the enforcer rebinds the guarded path set on
|
|
129
|
+
* every emission: paths added to the new set get wrapped, paths removed
|
|
130
|
+
* from the new set get released, and the audit-mode allow-list filter
|
|
131
|
+
* uses the latest cached value. Static-array callers retain the current
|
|
132
|
+
* "caller owns the path set" semantics.
|
|
133
|
+
*
|
|
125
134
|
* **Cost:** unrestricted mode runs `describe({detail:"minimal"})` once
|
|
126
135
|
* at construction (O(N) over the graph tree) plus one topology
|
|
127
136
|
* subscription per graph instance in the mount tree. Restricted mode
|
|
128
|
-
* skips both and disables
|
|
129
|
-
*
|
|
137
|
+
* (static or reactive) skips both and disables `watchTopologyTree`
|
|
138
|
+
* dynamic coverage — for reactive callers, the path-set Node is the
|
|
139
|
+
* single source of truth for which paths are guarded.
|
|
140
|
+
*/
|
|
141
|
+
paths?: readonly string[] | Node<readonly string[]>;
|
|
142
|
+
/**
|
|
143
|
+
* Ring-buffer cap for the violations topic. Default: 1000. Static
|
|
144
|
+
* number only — reactive form is deferred pending TopicGraph reactive
|
|
145
|
+
* `retainedLimit` support (see Tier 10.8 design follow-up in
|
|
146
|
+
* `docs/optimizations.md`).
|
|
130
147
|
*/
|
|
131
|
-
paths?: readonly string[];
|
|
132
|
-
/** Ring-buffer cap for the violations topic. Default: 1000. */
|
|
133
148
|
violationsLimit?: number;
|
|
134
149
|
}
|
|
135
150
|
/**
|
|
@@ -138,14 +153,14 @@ interface PolicyEnforcerOptions {
|
|
|
138
153
|
* to update them at runtime; the enforcer rebinds its internal
|
|
139
154
|
* {@link NodeGuard} on every push.
|
|
140
155
|
*/
|
|
141
|
-
declare class
|
|
156
|
+
declare class PolicyGateGraph extends Graph {
|
|
142
157
|
readonly policies: Node<readonly PolicyRuleData[]>;
|
|
143
158
|
readonly violations: TopicGraph<PolicyViolation>;
|
|
144
159
|
readonly violationCount: Node<number>;
|
|
145
160
|
private readonly _target;
|
|
146
161
|
private readonly _mode;
|
|
147
162
|
private _currentGuard;
|
|
148
|
-
constructor(target: Graph, policies: readonly PolicyRuleData[] | Node<readonly PolicyRuleData[]>, opts:
|
|
163
|
+
constructor(target: Graph, policies: readonly PolicyRuleData[] | Node<readonly PolicyRuleData[]>, opts: PolicyGateOptions);
|
|
149
164
|
private _publishViolation;
|
|
150
165
|
/** Snapshot of recorded violations. */
|
|
151
166
|
all(): readonly PolicyViolation[];
|
|
@@ -157,37 +172,16 @@ declare class PolicyEnforcerGraph extends Graph {
|
|
|
157
172
|
* static rule list or a {@link Node} of rules (LLM-updatable). Records
|
|
158
173
|
* `PolicyViolation` entries to `violations` topic; in `"enforce"` mode also
|
|
159
174
|
* pushes guards onto target nodes so disallowed writes throw.
|
|
160
|
-
*/
|
|
161
|
-
declare function policyEnforcer(target: Graph, policies: readonly PolicyRuleData[] | Node<readonly PolicyRuleData[]>, opts?: PolicyEnforcerOptions): PolicyEnforcerGraph;
|
|
162
|
-
/**
|
|
163
|
-
* Reactive {@link CausalChain} that recomputes whenever the audited graph
|
|
164
|
-
* changes. Returns a `Node<CausalChain>` suitable for subscription, mounting,
|
|
165
|
-
* or composition (e.g. inside `graphLens.why(node)`).
|
|
166
175
|
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
* `data`, `error`, `complete`, and `teardown` bump the version (matching the
|
|
171
|
-
* audit defaults).
|
|
172
|
-
*/
|
|
173
|
-
/**
|
|
174
|
-
* @deprecated Use `graph.explain(from, to, { reactive: true, ... })` directly.
|
|
175
|
-
* This free-function wrapper now dispatches to the consolidated
|
|
176
|
-
* {@link Graph.explain} overload for mental-model consistency with
|
|
177
|
-
* `describe` / `observe`. Will be removed pre-1.0.
|
|
176
|
+
* Self-tags via `g.tagFactory("policyGate", placeholderArgs(opts))` so
|
|
177
|
+
* `graph.describe()` surfaces `factory: "policyGate"` provenance (Phase 2.5
|
|
178
|
+
* DT5 ride-along, locked with the Tier 2.3 rename).
|
|
178
179
|
*/
|
|
179
|
-
declare function
|
|
180
|
-
maxDepth?: number;
|
|
181
|
-
name?: string;
|
|
182
|
-
findCycle?: boolean;
|
|
183
|
-
}): {
|
|
184
|
-
node: Node<CausalChain>;
|
|
185
|
-
dispose: () => void;
|
|
186
|
-
};
|
|
180
|
+
declare function policyGate(target: Graph, policies: readonly PolicyRuleData[] | Node<readonly PolicyRuleData[]>, opts?: PolicyGateOptions): PolicyGateGraph;
|
|
187
181
|
/** Options for {@link complianceSnapshot}. */
|
|
188
182
|
interface ComplianceSnapshotOptions {
|
|
189
183
|
audit?: AuditTrailGraph;
|
|
190
|
-
policies?:
|
|
184
|
+
policies?: PolicyGateGraph;
|
|
191
185
|
/** Actor recorded as the snapshot taker. */
|
|
192
186
|
actor?: Actor;
|
|
193
187
|
}
|
|
@@ -236,16 +230,15 @@ declare const index_AuditTrailGraph: typeof AuditTrailGraph;
|
|
|
236
230
|
type index_AuditTrailOptions = AuditTrailOptions;
|
|
237
231
|
type index_ComplianceSnapshotOptions = ComplianceSnapshotOptions;
|
|
238
232
|
type index_ComplianceSnapshotResult = ComplianceSnapshotResult;
|
|
239
|
-
type
|
|
240
|
-
declare const
|
|
241
|
-
type
|
|
233
|
+
type index_PolicyGateGraph = PolicyGateGraph;
|
|
234
|
+
declare const index_PolicyGateGraph: typeof PolicyGateGraph;
|
|
235
|
+
type index_PolicyGateOptions = PolicyGateOptions;
|
|
242
236
|
type index_PolicyViolation = PolicyViolation;
|
|
243
237
|
declare const index_auditTrail: typeof auditTrail;
|
|
244
238
|
declare const index_complianceSnapshot: typeof complianceSnapshot;
|
|
245
|
-
declare const
|
|
246
|
-
declare const index_reactiveExplainPath: typeof reactiveExplainPath;
|
|
239
|
+
declare const index_policyGate: typeof policyGate;
|
|
247
240
|
declare namespace index {
|
|
248
|
-
export { type index_AuditEntry as AuditEntry, index_AuditTrailGraph as AuditTrailGraph, type index_AuditTrailOptions as AuditTrailOptions, type index_ComplianceSnapshotOptions as ComplianceSnapshotOptions, type index_ComplianceSnapshotResult as ComplianceSnapshotResult,
|
|
241
|
+
export { type index_AuditEntry as AuditEntry, index_AuditTrailGraph as AuditTrailGraph, type index_AuditTrailOptions as AuditTrailOptions, type index_ComplianceSnapshotOptions as ComplianceSnapshotOptions, type index_ComplianceSnapshotResult as ComplianceSnapshotResult, index_PolicyGateGraph as PolicyGateGraph, type index_PolicyGateOptions as PolicyGateOptions, type index_PolicyViolation as PolicyViolation, index_auditTrail as auditTrail, index_complianceSnapshot as complianceSnapshot, index_policyGate as policyGate };
|
|
249
242
|
}
|
|
250
243
|
|
|
251
|
-
export { type AuditEntry as A, type ComplianceSnapshotOptions as C,
|
|
244
|
+
export { type AuditEntry as A, type ComplianceSnapshotOptions as C, PolicyGateGraph as P, type PolicyViolation as a, AuditTrailGraph as b, type AuditTrailOptions as c, type ComplianceSnapshotResult as d, type PolicyGateOptions as e, auditTrail as f, complianceSnapshot as g, index as i, policyGate as p };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { P as PolicyRuleData,
|
|
2
|
-
import { G as Graph, a as GraphOptions,
|
|
3
|
-
import { P as
|
|
4
|
-
import { T as TopicGraph } from './index-
|
|
1
|
+
import { P as PolicyRuleData, N as Node, A as Actor } from './node-BYInONRr.js';
|
|
2
|
+
import { G as Graph, a as GraphOptions, d as GraphDescribeOptions, b as GraphDescribeOutput, D as DescribeFilter } from './graph-30XSgtVX.js';
|
|
3
|
+
import { P as PolicyGateGraph, a as PolicyViolation } from './index-BC9VybQs.js';
|
|
4
|
+
import { T as TopicGraph } from './index-DszPlZzK.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Composable safety layer (roadmap §9.0b).
|
|
8
8
|
*
|
|
9
9
|
* {@link guardedExecution} wraps any {@link Graph} with:
|
|
10
10
|
*
|
|
11
|
-
* - {@link
|
|
12
|
-
* LLMs / humans can update them at runtime.
|
|
13
|
-
* dynamic coverage via `watchTopologyTree`.
|
|
11
|
+
* - {@link policyGate} — reactive ABAC (Tier 2.3 rename of `policyEnforcer`),
|
|
12
|
+
* policies stored as a `Node` so LLMs / humans can update them at runtime.
|
|
13
|
+
* Now with full transitive dynamic coverage via `watchTopologyTree`.
|
|
14
14
|
* - Scoped {@link GuardedExecutionGraph.scopedDescribe} — delegates to
|
|
15
15
|
* `target.describe({actor})` so callers see only what the actor is
|
|
16
16
|
* allowed to see.
|
|
@@ -53,7 +53,7 @@ interface GuardedExecutionOptions {
|
|
|
53
53
|
* blocking writes.
|
|
54
54
|
*/
|
|
55
55
|
mode?: "audit" | "enforce";
|
|
56
|
-
/** Ring-buffer cap for the `violations` topic. Default 1000 (inherited from
|
|
56
|
+
/** Ring-buffer cap for the `violations` topic. Default 1000 (inherited from policyGate). */
|
|
57
57
|
violationsLimit?: number;
|
|
58
58
|
/** Wrapper graph name. Default `${target.name}_guarded`. */
|
|
59
59
|
name?: string;
|
|
@@ -62,12 +62,12 @@ interface GuardedExecutionOptions {
|
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Wrapper over a target {@link Graph} providing reactive ABAC + scoped
|
|
65
|
-
* describe. Mounts a {@link
|
|
65
|
+
* describe. Mounts a {@link PolicyGateGraph} under `enforcer`.
|
|
66
66
|
*
|
|
67
67
|
* @category patterns
|
|
68
68
|
*/
|
|
69
69
|
declare class GuardedExecutionGraph extends Graph {
|
|
70
|
-
readonly enforcer:
|
|
70
|
+
readonly enforcer: PolicyGateGraph;
|
|
71
71
|
readonly violations: TopicGraph<PolicyViolation>;
|
|
72
72
|
private readonly _target;
|
|
73
73
|
private readonly _defaultActor;
|
|
@@ -97,7 +97,7 @@ declare class GuardedExecutionGraph extends Graph {
|
|
|
97
97
|
get target(): Graph;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Wrap a {@link Graph} with {@link
|
|
100
|
+
* Wrap a {@link Graph} with {@link policyGate} plus a scoped describe
|
|
101
101
|
* lens. Returns a {@link GuardedExecutionGraph} that can be mounted, diffed,
|
|
102
102
|
* or composed with {@link graphLens}.
|
|
103
103
|
*
|