@graphrefly/graphrefly 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cascading-D9WG1-9L.d.ts → cascading-BszPheHD.d.ts} +1 -1
- package/dist/{cascading-B-5zmAUv.d.cts → cascading-dNCtjW8j.d.cts} +1 -1
- package/dist/{chunk-OAWLCNJJ.js → chunk-2GQREQ6C.js} +1 -1
- package/dist/{chunk-DBGGMN3D.js → chunk-33FA6V4B.js} +1 -1
- package/dist/chunk-3NEPQO2E.js +43 -0
- package/dist/{chunk-UWJE5FQA.js → chunk-4C2OR2GH.js} +11 -11
- package/dist/chunk-4JJCCD5S.js +2 -0
- package/dist/{chunk-GHJJR5P4.js → chunk-4OFIQ66T.js} +1 -1
- package/dist/{chunk-PIOGHC63.js → chunk-567NWZ3T.js} +1 -1
- package/dist/chunk-5JDE5JHE.js +1 -0
- package/dist/{chunk-ETWTCCJI.js → chunk-5Z4HDCO6.js} +1 -1
- package/dist/{chunk-Y2EMPB3I.js → chunk-73Z3W2RN.js} +1 -1
- package/dist/{chunk-CRXTH3SH.js → chunk-7JDLFI6N.js} +1 -1
- package/dist/{chunk-DQA3UIQ2.js → chunk-7TDOES3L.js} +1 -1
- package/dist/{chunk-LBTDSCCO.js → chunk-AMBYCIOH.js} +1 -1
- package/dist/{chunk-D7A7DBE4.js → chunk-AUY2YKCO.js} +1 -1
- package/dist/{chunk-FNYWM6JC.js → chunk-AV3PIDFQ.js} +1 -1
- package/dist/{chunk-UMBIDLJ4.js → chunk-BA5URFYW.js} +1 -1
- package/dist/chunk-BKPLTBL5.js +1 -0
- package/dist/{chunk-UPXUCFMX.js → chunk-BZP5T4X6.js} +1 -1
- package/dist/{chunk-WQ2BN6X6.js → chunk-DDPYNMGG.js} +1 -1
- package/dist/{chunk-LQ3Y5NJS.js → chunk-GJR3P6JG.js} +1 -1
- package/dist/{chunk-3R5HFPX7.js → chunk-GLSM33ZM.js} +1 -1
- package/dist/{chunk-2FOAM3OR.js → chunk-GNCBXARM.js} +1 -1
- package/dist/{chunk-K2GNMCQT.js → chunk-ISCENNXS.js} +1 -1
- package/dist/{chunk-UPHHLMHE.js → chunk-IUK4EFCE.js} +1 -1
- package/dist/{chunk-ERLIRFPA.js → chunk-KA6MMXIY.js} +1 -1
- package/dist/{chunk-2PMCKKRK.js → chunk-KASHOCF5.js} +1 -1
- package/dist/chunk-LI3E75VE.js +64 -0
- package/dist/chunk-MGKAO4EK.js +7 -0
- package/dist/{chunk-ZV2DXV5A.js → chunk-NSG4C6BF.js} +1 -1
- package/dist/{chunk-4GKB4OUJ.js → chunk-OL33ZI6R.js} +1 -1
- package/dist/{chunk-76A3HVQE.js → chunk-P7JXGKDO.js} +1 -1
- package/dist/{chunk-U3AICJKU.js → chunk-RD52SNH2.js} +1 -1
- package/dist/{chunk-CWLN3X3N.js → chunk-SHYH5SXV.js} +1 -1
- package/dist/{chunk-VTPVOGHH.js → chunk-SLMYTGTU.js} +1 -1
- package/dist/{chunk-OYHGKYQM.js → chunk-T5SHIKJD.js} +1 -1
- package/dist/{chunk-VPYBOXVT.js → chunk-TWMEGG45.js} +1 -1
- package/dist/chunk-VIEUJSTT.js +1 -0
- package/dist/{chunk-SC3U7ETD.js → chunk-VWPRPPKR.js} +1 -1
- package/dist/chunk-W4TSQ6RJ.js +1 -0
- package/dist/{chunk-OBKQQA5I.js → chunk-WANIEEKV.js} +1 -1
- package/dist/{chunk-XAUNPIMX.js → chunk-XHVB6G6M.js} +1 -1
- package/dist/{chunk-MIQTDPY4.js → chunk-XQAXYVXX.js} +1 -1
- package/dist/{chunk-MTTAAPCK.js → chunk-Y32RJO24.js} +1 -1
- package/dist/{chunk-S35VARIR.js → chunk-Y36UZ5VS.js} +1 -1
- package/dist/compat/index.cjs +13 -12
- package/dist/compat/index.d.cts +14 -14
- package/dist/compat/index.d.ts +14 -14
- package/dist/compat/index.js +1 -1
- package/dist/compat/jotai/index.cjs +1 -1
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/jotai/index.js +1 -1
- package/dist/compat/nanostores/index.cjs +1 -1
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nanostores/index.js +1 -1
- package/dist/compat/nestjs/index.cjs +13 -12
- package/dist/compat/nestjs/index.d.cts +6 -6
- package/dist/compat/nestjs/index.d.ts +6 -6
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/zustand/index.cjs +7 -6
- 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-BhbKHbOS.d.ts → composite-DGspwCqk.d.ts} +2 -2
- package/dist/{composite-B-xqw4Kk.d.cts → composite-nrRumJ7l.d.cts} +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.cjs +1 -1
- package/dist/extra/browser.d.cts +1 -1
- package/dist/extra/browser.d.ts +1 -1
- package/dist/extra/browser.js +1 -1
- package/dist/extra/index.cjs +20 -19
- package/dist/extra/index.d.cts +9 -9
- package/dist/extra/index.d.ts +9 -9
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +3 -3
- 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/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.cjs +1 -1
- package/dist/extra/storage-browser.d.cts +1 -1
- package/dist/extra/storage-browser.d.ts +1 -1
- package/dist/extra/storage-browser.js +1 -1
- package/dist/graph/index.cjs +7 -6
- 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-D48Qw9Cg.d.cts → graph-C4Uxwv0T.d.cts} +22 -6
- package/dist/{graph-BZGRXwOm.d.ts → graph-CWeI0aHd.d.ts} +22 -6
- package/dist/{index-u15meRxL.d.cts → index-9iguV3bF.d.cts} +2 -2
- package/dist/{index-DyxjtScX.d.cts → index-B-z8WaSd.d.cts} +2 -2
- package/dist/{index-BgyGlizc.d.ts → index-B2HBxvMb.d.ts} +4 -4
- package/dist/{index-CzobVSMr.d.ts → index-B5iVOD7w.d.ts} +2 -2
- package/dist/{index-rX8HBM5h.d.cts → index-B8Aj_z8S.d.cts} +2 -2
- package/dist/{index-D-YB-Vl3.d.ts → index-BANwzwBV.d.ts} +3 -3
- package/dist/{index-HDpJe9hX.d.ts → index-BBINVimG.d.ts} +3 -3
- package/dist/{index-8FSVk4Uf.d.ts → index-BEpRsvhg.d.ts} +4 -4
- package/dist/{index-CHEswufn.d.cts → index-BHu_Wba0.d.cts} +4 -4
- package/dist/{index-ZftwfxJM.d.ts → index-BJHQUCZx.d.ts} +7 -7
- package/dist/{index-DUqMOlKZ.d.cts → index-BS220yqj.d.cts} +7 -7
- package/dist/{index-BWJV63ti.d.ts → index-BX22kvjh.d.ts} +1 -1
- package/dist/{index-DfyOkTvs.d.ts → index-BXbQUn4n.d.ts} +2 -2
- package/dist/{index-O6TgGUBV.d.cts → index-BpFWP7Bq.d.cts} +3 -3
- package/dist/{index-BxJ86YZZ.d.cts → index-Bs3-LC83.d.cts} +3 -3
- package/dist/{index-DiOXyAwt.d.ts → index-Bvi5uJxX.d.ts} +1 -1
- package/dist/{index-Bqachn9_.d.ts → index-ByPnK85n.d.ts} +1 -1
- package/dist/{index-CRO83MmV.d.cts → index-BydMDMf7.d.cts} +1 -1
- package/dist/{index-ROpQmGjE.d.ts → index-C5Ghnp5B.d.ts} +3 -3
- package/dist/{index-umtoWT8K.d.ts → index-C6NBfXj-.d.ts} +6 -5
- package/dist/{index-pXrDMpRO.d.cts → index-C98oJsEs.d.cts} +2 -2
- package/dist/{index-B2pwesl9.d.cts → index-CDK5RsV5.d.cts} +1 -1
- package/dist/{index-Czq6ynh8.d.ts → index-CFW32Dy1.d.ts} +3 -3
- package/dist/{index-Cyojz0AE.d.cts → index-CIXaiYDE.d.cts} +1 -1
- package/dist/{index-Oi8d8w4R.d.cts → index-CRAkoq-y.d.cts} +1 -1
- package/dist/{index-CpgYhnrG.d.ts → index-Cc8VQIgL.d.ts} +2 -2
- package/dist/{index-vscRDkjW.d.cts → index-CcpEvuPl.d.cts} +2 -2
- package/dist/{index-BpA5c4G9.d.ts → index-CfFYyLR8.d.ts} +4 -4
- package/dist/{index-9oDeHH2u.d.cts → index-ClB7TCfL.d.cts} +2 -2
- package/dist/{index-BHvIquRZ.d.ts → index-ClgKmOHe.d.ts} +592 -492
- package/dist/{index-DpHe5e0Q.d.ts → index-CotRMjtJ.d.ts} +2 -2
- package/dist/{index-B1AmmSlb.d.ts → index-CrC7urhX.d.ts} +1 -1
- package/dist/{index-B0c4cmIO.d.ts → index-CvS9IuTG.d.ts} +2 -2
- package/dist/{index-rHJSKsU8.d.cts → index-Cy7eFeIX.d.cts} +2 -2
- package/dist/{index-BVHOrDwO.d.ts → index-D0C_USMR.d.ts} +1 -1
- package/dist/{index-DEwTb_fm.d.cts → index-D6ajK8Mh.d.cts} +592 -492
- package/dist/{index-DL-rYJrx.d.cts → index-D7XxY1Ff.d.cts} +1 -1
- package/dist/{index-DAlweici.d.ts → index-D9HrBx2J.d.ts} +2 -2
- package/dist/{index-fM6y00vT.d.cts → index-D9Y_u6BG.d.cts} +3 -3
- package/dist/{index-DcXZBF5a.d.cts → index-DBQUKh59.d.cts} +4 -4
- package/dist/{index-D_NwnRYS.d.cts → index-DDo-eqQ4.d.cts} +1 -1
- package/dist/{index-m-yHof5p.d.ts → index-DGb1awva.d.ts} +4 -4
- package/dist/{index-DxsnAMWD.d.cts → index-DR3gf_DG.d.cts} +9 -9
- package/dist/{index-dtN7YA2x.d.cts → index-DVNLe3pS.d.cts} +3 -3
- package/dist/{index-Btib9rsU.d.ts → index-Dljd76bC.d.ts} +275 -9
- package/dist/{index-DP4ZTkdw.d.ts → index-DnrZghBB.d.ts} +3 -3
- package/dist/{index-DaLJvH8Z.d.ts → index-Docdiu9a.d.ts} +3 -3
- package/dist/{index-BpIFjILY.d.cts → index-DylQCKEL.d.cts} +4 -4
- package/dist/{index-B_agccPe.d.cts → index-FBqTfL_S.d.cts} +1 -1
- package/dist/{index-DraikLjn.d.ts → index-FrYrV-Vf.d.ts} +2 -2
- package/dist/{index-sm373fsH.d.ts → index-IZ3l_vQ9.d.ts} +2 -2
- package/dist/{index-BwM9BEkt.d.ts → index-Ip3q9T9x.d.ts} +1 -1
- package/dist/{index-CloUk1kY.d.ts → index-RQg6lTrN.d.ts} +9 -9
- package/dist/{index-CEXXwWVH.d.cts → index-SSGqF8mI.d.cts} +2 -2
- package/dist/{index-rnwQly8X.d.cts → index-UZO988ox.d.cts} +6 -5
- package/dist/{index-C73n7lo-.d.cts → index-iBp74eGU.d.cts} +3 -3
- package/dist/{index-tbf2gKHd.d.cts → index-lKuLYmHO.d.cts} +3 -3
- package/dist/{index-CMn8S8Hw.d.ts → index-wIx1Jisk.d.ts} +1 -1
- package/dist/{index-cByzxQIC.d.cts → index-yIdWFo2b.d.cts} +4 -4
- package/dist/{index-RukJ4DLS.d.cts → index-ybtSyjWB.d.cts} +275 -9
- package/dist/index.cjs +53 -52
- package/dist/index.d.cts +42 -42
- package/dist/index.d.ts +42 -42
- package/dist/index.js +1 -1
- package/dist/{meta-CwesDrMD.d.ts → meta-BMwx3ExI.d.ts} +1 -1
- package/dist/{meta-Cgj6zeji.d.cts → meta-COtmHLwT.d.cts} +1 -1
- package/dist/{node-Cc1TniY8.d.ts → node-BVV7G1bq.d.cts} +59 -2
- package/dist/{node-Cc1TniY8.d.cts → node-BVV7G1bq.d.ts} +59 -2
- package/dist/{observable-glXQoGj2.d.cts → observable-BrUAPeH_.d.cts} +1 -1
- package/dist/{observable-Ct-gJ9jI.d.ts → observable-ITikPXz3.d.ts} +1 -1
- package/dist/patterns/ai/browser.d.cts +3 -3
- package/dist/patterns/ai/browser.d.ts +3 -3
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +25 -24
- package/dist/patterns/ai/index.d.cts +15 -15
- package/dist/patterns/ai/index.d.ts +15 -15
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.d.cts +1 -1
- package/dist/patterns/ai/node.d.ts +1 -1
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.cjs +7 -6
- package/dist/patterns/audit/index.d.cts +5 -5
- package/dist/patterns/audit/index.d.ts +5 -5
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +7 -6
- package/dist/patterns/cqrs/index.d.cts +4 -4
- package/dist/patterns/cqrs/index.d.ts +4 -4
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +8 -7
- 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 +7 -6
- 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 +26 -25
- package/dist/patterns/graphspec/index.d.cts +4 -4
- package/dist/patterns/graphspec/index.d.ts +4 -4
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +7 -6
- package/dist/patterns/guarded-execution/index.d.cts +6 -6
- package/dist/patterns/guarded-execution/index.d.ts +6 -6
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +11 -10
- package/dist/patterns/harness/index.d.cts +10 -7
- package/dist/patterns/harness/index.d.ts +10 -7
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +7 -6
- package/dist/patterns/job-queue/index.d.cts +4 -4
- package/dist/patterns/job-queue/index.d.ts +4 -4
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +7 -6
- 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 +7 -6
- package/dist/patterns/memory/index.d.cts +4 -4
- package/dist/patterns/memory/index.d.ts +4 -4
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +7 -6
- package/dist/patterns/messaging/index.d.cts +4 -4
- package/dist/patterns/messaging/index.d.ts +4 -4
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +7 -6
- package/dist/patterns/orchestration/index.d.cts +5 -5
- package/dist/patterns/orchestration/index.d.ts +5 -5
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +8 -7
- 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 +7 -6
- 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 +9 -8
- package/dist/patterns/refine-loop/index.d.cts +5 -5
- package/dist/patterns/refine-loop/index.d.ts +5 -5
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +6 -6
- package/dist/patterns/resilient-pipeline/index.d.ts +6 -6
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +14 -13
- package/dist/patterns/surface/index.d.cts +5 -5
- package/dist/patterns/surface/index.d.ts +5 -5
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{reactive-layout-CpYb5qLP.d.cts → reactive-layout-5oEn8lHM.d.cts} +2 -2
- package/dist/{reactive-layout-D8u4wuUR.d.ts → reactive-layout-BAr6-_o5.d.ts} +2 -2
- package/dist/{reactive-log-DPzuUDj5.d.cts → reactive-log-5jFeNRmd.d.cts} +1 -1
- package/dist/{reactive-log-YuH9VYN8.d.ts → reactive-log-BOJDCI5x.d.ts} +1 -1
- package/dist/{reactive-map-CdbNoSgP.d.ts → reactive-map-BvDrRuwt.d.ts} +1 -1
- package/dist/{reactive-map-DUeRmb9d.d.cts → reactive-map-CmlPPKHN.d.cts} +1 -1
- package/dist/{resilience-CGRzhnD3.d.ts → resilience-CludlzcP.d.ts} +1 -1
- package/dist/{resilience-Ba5-b4WD.d.cts → resilience-Q6Bt_7y0.d.cts} +1 -1
- package/dist/{resilience-QAHKANT5.js → resilience-XRUF267O.js} +1 -1
- package/dist/{sugar-BV0htudb.d.cts → sugar-BHbAACDG.d.ts} +10 -12
- package/dist/{sugar-Dtyrq2_q.d.ts → sugar-CqR6DJ7v.d.cts} +10 -12
- package/dist/{topology-tree-DROUdq5B.d.cts → topology-tree-CVREibAc.d.cts} +1 -1
- package/dist/{topology-tree-CYHOwQZ_.d.ts → topology-tree-CkjojcB6.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-6V3SEX2I.js +0 -1
- package/dist/chunk-7H6LGFUG.js +0 -64
- package/dist/chunk-CKCSDI7T.js +0 -6
- package/dist/chunk-QWAPKG3O.js +0 -2
- package/dist/chunk-RHESUC3V.js +0 -43
- package/dist/chunk-V6YQICXZ.js +0 -1
- package/dist/chunk-Z4HDAS2Q.js +0 -1
- package/dist/chunk-ZB5EHBIO.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Node } from './node-
|
|
2
|
-
import { a as GraphOptions, G as Graph } from './graph-
|
|
1
|
+
import { a as Node } from './node-BVV7G1bq.js';
|
|
2
|
+
import { a as GraphOptions, G as Graph } from './graph-CWeI0aHd.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Domain templates (roadmap §8.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 { a as Node } from './node-
|
|
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-5oEn8lHM.cjs';
|
|
2
|
+
import { a as Node } from './node-BVV7G1bq.cjs';
|
|
3
|
+
import { G as Graph } from './graph-C4Uxwv0T.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* MeasurementAdapter implementations (roadmap §7.1 — pluggable backends).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as PolicyRuleData, a as Node, A as Actor } from './node-
|
|
2
|
-
import { G as Graph, a as GraphOptions, b as GraphDescribeOptions, c as GraphDescribeOutput, D as DescribeFilter } from './graph-
|
|
3
|
-
import { P as PolicyEnforcerGraph, a as PolicyViolation } from './index-
|
|
4
|
-
import { T as TopicGraph } from './index-
|
|
1
|
+
import { P as PolicyRuleData, a as Node, A as Actor } from './node-BVV7G1bq.cjs';
|
|
2
|
+
import { G as Graph, a as GraphOptions, b as GraphDescribeOptions, c as GraphDescribeOutput, D as DescribeFilter } from './graph-C4Uxwv0T.cjs';
|
|
3
|
+
import { P as PolicyEnforcerGraph, a as PolicyViolation } from './index-iBp74eGU.cjs';
|
|
4
|
+
import { T as TopicGraph } from './index-B-z8WaSd.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Composable safety layer (roadmap §9.0b).
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as ToObservableOptions, t as toObservable } from './observable-
|
|
1
|
+
import { T as ToObservableOptions, t as toObservable } from './observable-ITikPXz3.js';
|
|
2
2
|
import { OnModuleInit, OnModuleDestroy, ExecutionContext, CanActivate, DynamicModule } from '@nestjs/common';
|
|
3
3
|
import { ModuleRef } from '@nestjs/core';
|
|
4
|
-
import { G as Graph, d as GraphPersistSnapshot } from './graph-
|
|
5
|
-
import { A as Actor } from './node-
|
|
6
|
-
import { C as CqrsOptions, a as CqrsGraph, E as EventStoreAdapter } from './index-
|
|
4
|
+
import { G as Graph, d as GraphPersistSnapshot } from './graph-CWeI0aHd.js';
|
|
5
|
+
import { A as Actor } from './node-BVV7G1bq.js';
|
|
6
|
+
import { C as CqrsOptions, a as CqrsGraph, E as EventStoreAdapter } from './index-IZ3l_vQ9.js';
|
|
7
7
|
|
|
8
8
|
/** Class constructor key for decorator registries and Nest `ModuleRef.get()`. */
|
|
9
9
|
type DecoratorHostConstructor = abstract new (...args: unknown[]) => unknown;
|
|
@@ -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 { a as Node } from './node-
|
|
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-BydMDMf7.cjs';
|
|
2
|
+
import { i as index$3 } from './index-CIXaiYDE.cjs';
|
|
3
|
+
import { i as index$4 } from './index-yIdWFo2b.cjs';
|
|
4
|
+
import { i as index$5 } from './index-D7XxY1Ff.cjs';
|
|
5
|
+
import { a as Node } from './node-BVV7G1bq.cjs';
|
|
6
|
+
import { i as index$6 } from './index-FBqTfL_S.cjs';
|
|
7
|
+
import { i as index$7 } from './index-CDK5RsV5.cjs';
|
|
8
|
+
import { i as index$8 } from './index-DDo-eqQ4.cjs';
|
|
9
|
+
import { i as index$9 } from './index-CRAkoq-y.cjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Options for creating signals.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Node, N as NodeOptions, c as NodeActions } from './node-
|
|
2
|
-
import { D as DerivedFn } from './sugar-
|
|
3
|
-
import { G as Graph, a as GraphOptions } from './graph-
|
|
1
|
+
import { a as Node, N as NodeOptions, c as NodeActions } from './node-BVV7G1bq.cjs';
|
|
2
|
+
import { D as DerivedFn } from './sugar-CqR6DJ7v.cjs';
|
|
3
|
+
import { G as Graph, a as GraphOptions } from './graph-C4Uxwv0T.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Orchestration patterns (roadmap §4.1).
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { a as Node } from './node-
|
|
2
|
-
import { T as TopicGraph } from './index-
|
|
3
|
-
import {
|
|
4
|
-
import { G as
|
|
1
|
+
import { a as Node } from './node-BVV7G1bq.js';
|
|
2
|
+
import { T as TopicGraph } from './index-CvS9IuTG.js';
|
|
3
|
+
import { E as Evaluator, D as DatasetItem, a as EvalResult$1, R as RefineStrategy, b as RefineStatus, c as RefineLoopOptions } from './index-CfFYyLR8.js';
|
|
4
|
+
import { G as Graph, s as GraphProfileResult, r as GraphProfileOptions } from './graph-CWeI0aHd.js';
|
|
5
|
+
import { L as LLMAdapter } from './types-u64Ose53.js';
|
|
6
|
+
import { G as GateController } from './index-CFW32Dy1.js';
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Harness wiring types (roadmap §9.0).
|
|
@@ -12,6 +14,7 @@ import { G as GateController } from './index-Czq6ynh8.js';
|
|
|
12
14
|
*
|
|
13
15
|
* @module
|
|
14
16
|
*/
|
|
17
|
+
|
|
15
18
|
/** Sources that can produce intake items. */
|
|
16
19
|
type IntakeSource = "eval" | "test" | "human" | "code-change" | "hypothesis" | "parity";
|
|
17
20
|
/** Severity levels for intake items. */
|
|
@@ -66,12 +69,26 @@ declare function strategyKey(rootCause: RootCause, intervention: Intervention):
|
|
|
66
69
|
type ExecuteOutput = {
|
|
67
70
|
outcome: "success" | "failure" | "partial";
|
|
68
71
|
detail: string;
|
|
72
|
+
/**
|
|
73
|
+
* Optional opaque artifact that a custom executor (e.g. `refineExecutor`)
|
|
74
|
+
* may attach so downstream verifiers can re-run evaluation against the
|
|
75
|
+
* thing that was produced. LLM-backed default executors never populate
|
|
76
|
+
* this — it's an escape hatch for reactive executors carrying structured
|
|
77
|
+
* output (a refined prompt, a patched spec, a generated template, ...).
|
|
78
|
+
*/
|
|
79
|
+
artifact?: unknown;
|
|
69
80
|
};
|
|
70
81
|
/** Full execution result assembled downstream (LLM output + context). */
|
|
71
82
|
interface ExecutionResult {
|
|
72
83
|
item: TriagedItem;
|
|
73
84
|
outcome: "success" | "failure" | "partial";
|
|
74
85
|
detail: string;
|
|
86
|
+
/**
|
|
87
|
+
* Passthrough of {@link ExecuteOutput.artifact} when the executor emitted
|
|
88
|
+
* one. Reactive executors like `refineExecutor` populate this; LLM-backed
|
|
89
|
+
* default executors leave it undefined.
|
|
90
|
+
*/
|
|
91
|
+
artifact?: unknown;
|
|
75
92
|
}
|
|
76
93
|
/** Whether an error is self-correctable (fast-retry) or structural (full loop). */
|
|
77
94
|
type ErrorClass = "self-correctable" | "structural";
|
|
@@ -87,6 +104,16 @@ interface VerifyResult {
|
|
|
87
104
|
findings: string[];
|
|
88
105
|
errorClass?: ErrorClass;
|
|
89
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Verifier output shape — what a custom verifier emits. The harness
|
|
109
|
+
* assembles this into the full {@link VerifyResult} using the triaged
|
|
110
|
+
* item + execute output sampled from `executeContextNode`.
|
|
111
|
+
*/
|
|
112
|
+
interface VerifyOutput {
|
|
113
|
+
verified: boolean;
|
|
114
|
+
findings: string[];
|
|
115
|
+
errorClass?: ErrorClass;
|
|
116
|
+
}
|
|
90
117
|
/** Configurable signals for priority scoring. */
|
|
91
118
|
interface PrioritySignals {
|
|
92
119
|
/** Per-severity base weight (default: critical=100, high=70, medium=40, low=10). */
|
|
@@ -113,16 +140,63 @@ interface QueueConfig {
|
|
|
113
140
|
}
|
|
114
141
|
/** Default queue configurations. */
|
|
115
142
|
declare const DEFAULT_QUEUE_CONFIGS: Record<QueueRoute, QueueConfig>;
|
|
143
|
+
/**
|
|
144
|
+
* Pluggable EXECUTE slot. Given the reactive `executeInput` stream of
|
|
145
|
+
* triaged items, produce a stream of `ExecuteOutput` decisions.
|
|
146
|
+
*
|
|
147
|
+
* **Contract** (see design note in `docs/optimizations.md` / session log):
|
|
148
|
+
* 1. Emit DATA exactly once per completed execution — not on input arrival.
|
|
149
|
+
* 2. Cancel in-flight work when a new item supersedes the current one
|
|
150
|
+
* (`switchMap` is the idiomatic pattern).
|
|
151
|
+
* 3. Do not bypass `input.cache` — the harness pairs output with item via
|
|
152
|
+
* `withLatestFrom(output, input)`. A side-state mirror of the item can
|
|
153
|
+
* desync under nested-drain ordering.
|
|
154
|
+
* 4. The returned node IS the primary of a subsequent `withLatestFrom`;
|
|
155
|
+
* firing on input arrival (rather than result completion) causes verify
|
|
156
|
+
* to pair with a stale/null ExecuteOutput.
|
|
157
|
+
*
|
|
158
|
+
* `refineExecutor` makes all four rules structurally unreachable.
|
|
159
|
+
*/
|
|
160
|
+
type HarnessExecutor = (input: Node<TriagedItem | null>) => Node<ExecuteOutput | null>;
|
|
161
|
+
/**
|
|
162
|
+
* Pluggable VERIFY slot. Receives `[executeOutput, triagedItem]` pairs
|
|
163
|
+
* sampled via `withLatestFrom(executeNode, executeInput)` and produces
|
|
164
|
+
* `VerifyOutput` decisions.
|
|
165
|
+
*
|
|
166
|
+
* Same contract rules 1–3 as {@link HarnessExecutor}. Rule 4 does not
|
|
167
|
+
* apply (verify output isn't a primary to a further withLatestFrom).
|
|
168
|
+
*
|
|
169
|
+
* `evalVerifier` handles the re-evaluation case against affected eval tasks.
|
|
170
|
+
*/
|
|
171
|
+
type HarnessVerifier = (context: Node<[ExecuteOutput | null, TriagedItem | null]>) => Node<VerifyOutput | null>;
|
|
116
172
|
/** Options for {@link harnessLoop}. */
|
|
117
173
|
interface HarnessLoopOptions {
|
|
118
|
-
/** LLM adapter for promptNode-based stages (triage
|
|
174
|
+
/** LLM adapter for promptNode-based stages (triage + any default executor/verifier). */
|
|
119
175
|
adapter: unknown;
|
|
120
176
|
/** Custom triage prompt (receives IntakeItem + strategy model as context). */
|
|
121
177
|
triagePrompt?: string | ((...args: unknown[]) => string);
|
|
122
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Execute prompt — sugar over the default LLM executor. Ignored when
|
|
180
|
+
* `executor` is set.
|
|
181
|
+
*/
|
|
123
182
|
executePrompt?: string | ((...args: unknown[]) => string);
|
|
124
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* Verify prompt — sugar over the default LLM verifier. Ignored when
|
|
185
|
+
* `verifier` is set.
|
|
186
|
+
*/
|
|
125
187
|
verifyPrompt?: string | ((...args: unknown[]) => string);
|
|
188
|
+
/**
|
|
189
|
+
* Pluggable EXECUTE slot. When omitted, the harness uses a `promptNode`
|
|
190
|
+
* driven by `adapter` + `executePrompt`. Replace to plug in a
|
|
191
|
+
* `refineExecutor`, tool-using agent, or any reactive execution pipeline.
|
|
192
|
+
*/
|
|
193
|
+
executor?: HarnessExecutor;
|
|
194
|
+
/**
|
|
195
|
+
* Pluggable VERIFY slot. When omitted, the harness uses a `promptNode`
|
|
196
|
+
* driven by `adapter` + `verifyPrompt`. Replace to plug in an
|
|
197
|
+
* `evalVerifier` that re-runs affected eval tasks.
|
|
198
|
+
*/
|
|
199
|
+
verifier?: HarnessVerifier;
|
|
126
200
|
/** Per-queue configuration overrides. */
|
|
127
201
|
queues?: Partial<Record<QueueRoute, QueueConfig>>;
|
|
128
202
|
/** Priority scoring signals. */
|
|
@@ -344,6 +418,87 @@ interface NotifyEffectOptions {
|
|
|
344
418
|
*/
|
|
345
419
|
declare function notifyEffect<T>(topic: TopicGraph<T>, transport: NotifyTransport<T>, opts?: NotifyEffectOptions): Node<unknown>;
|
|
346
420
|
|
|
421
|
+
/**
|
|
422
|
+
* evalVerifier — re-run the affected eval tasks against the execute-stage
|
|
423
|
+
* artifact instead of asking an LLM to opine on the fix.
|
|
424
|
+
*
|
|
425
|
+
* Pairs naturally with {@link refineExecutor}: refineExecutor emits an
|
|
426
|
+
* `ExecuteOutput.artifact` holding the converged candidate; evalVerifier
|
|
427
|
+
* pulls it out via `extractArtifact` and feeds a single-candidate batch
|
|
428
|
+
* into the same `Evaluator<T>` shape that `refineLoop` used. Consistent
|
|
429
|
+
* scoring between EXECUTE and VERIFY — no "LLM said it looks fine" gap.
|
|
430
|
+
*
|
|
431
|
+
* Per-item lifecycle mirrors `refineExecutor`: each new execute-context
|
|
432
|
+
* pair mounts a fresh eval subgraph inside `switchMap`, so a superseding
|
|
433
|
+
* item cancels the prior run.
|
|
434
|
+
*
|
|
435
|
+
* @module
|
|
436
|
+
*/
|
|
437
|
+
|
|
438
|
+
/** Summary of the re-eval wave passed to a custom `toOutput` mapper. */
|
|
439
|
+
interface EvalVerifierSummary {
|
|
440
|
+
readonly scores: readonly EvalResult$1[];
|
|
441
|
+
readonly meanScore: number;
|
|
442
|
+
readonly passCount: number;
|
|
443
|
+
readonly total: number;
|
|
444
|
+
readonly threshold: number;
|
|
445
|
+
/**
|
|
446
|
+
* True when the EXECUTE stage did not produce an artifact (i.e.
|
|
447
|
+
* `extractArtifact` returned `null` / `undefined`). Downstream mappers
|
|
448
|
+
* can distinguish this from "evaluator ran but everything scored zero".
|
|
449
|
+
* When `true`, `scores` / `total` / `passCount` are all zero and
|
|
450
|
+
* `meanScore` is `-Infinity`.
|
|
451
|
+
*/
|
|
452
|
+
readonly missingArtifact?: boolean;
|
|
453
|
+
}
|
|
454
|
+
/** Configuration for {@link evalVerifier}. */
|
|
455
|
+
interface EvalVerifierConfig<T> {
|
|
456
|
+
/**
|
|
457
|
+
* Pull the artifact that should be re-evaluated out of the execute-stage
|
|
458
|
+
* output. Default: `(exec) => exec.artifact as T` — works out-of-the-box
|
|
459
|
+
* with `refineExecutor` (which populates `artifact` by default).
|
|
460
|
+
*
|
|
461
|
+
* **Type trust:** the default cast assumes the caller's executor wrote
|
|
462
|
+
* a `T`-shaped value to `ExecuteOutput.artifact`. A wrong-typed artifact
|
|
463
|
+
* surfaces as a runtime error inside `evaluator`, not here — supply a
|
|
464
|
+
* narrowing `extractArtifact` if you need stricter validation.
|
|
465
|
+
*/
|
|
466
|
+
extractArtifact?: (exec: ExecuteOutput, item: TriagedItem) => T | null | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* Reactive evaluator — same contract as `refineLoop`'s `Evaluator<T>`.
|
|
469
|
+
* Typically this is the SAME evaluator configured inside `refineExecutor`
|
|
470
|
+
* so EXECUTE and VERIFY scoring stay consistent.
|
|
471
|
+
*/
|
|
472
|
+
evaluator: Evaluator<T>;
|
|
473
|
+
/**
|
|
474
|
+
* Resolve which dataset rows to score this verification against. Use
|
|
475
|
+
* `affectedTaskFilter` or hand-roll per-item subset logic. Default:
|
|
476
|
+
* empty array (verifier emits a findings entry explaining this).
|
|
477
|
+
*/
|
|
478
|
+
datasetFor: (item: TriagedItem) => readonly DatasetItem[];
|
|
479
|
+
/** Mean score required to pass verification. Default `0.5`. */
|
|
480
|
+
threshold?: number;
|
|
481
|
+
/** Optional output mapper — override the default findings / errorClass shape. */
|
|
482
|
+
toOutput?: (summary: EvalVerifierSummary) => VerifyOutput;
|
|
483
|
+
/** Node name prefix for introspection. Default `"eval-verifier"`. */
|
|
484
|
+
name?: string;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Build a {@link HarnessVerifier} that re-runs the eval suite against the
|
|
488
|
+
* artifact produced by EXECUTE.
|
|
489
|
+
*
|
|
490
|
+
* @example Pair with refineExecutor for end-to-end eval consistency.
|
|
491
|
+
* ```ts
|
|
492
|
+
* const evaluator: Evaluator<CatalogEntry> = (cands, ds) => runEval(cands, ds);
|
|
493
|
+
* const harness = harnessLoop("repair", {
|
|
494
|
+
* adapter,
|
|
495
|
+
* executor: refineExecutor({ ..., evaluator, ...strategyConfig }),
|
|
496
|
+
* verifier: evalVerifier({ evaluator, datasetFor, threshold: 0.8 }),
|
|
497
|
+
* });
|
|
498
|
+
* ```
|
|
499
|
+
*/
|
|
500
|
+
declare function evalVerifier<T>(config: EvalVerifierConfig<T>): HarnessVerifier;
|
|
501
|
+
|
|
347
502
|
/**
|
|
348
503
|
* Strategy model and priority scoring (roadmap §9.0).
|
|
349
504
|
*
|
|
@@ -396,6 +551,30 @@ declare function priorityScore(item: Node<TriagedItem>, strategy: Node<StrategyS
|
|
|
396
551
|
* @module
|
|
397
552
|
*/
|
|
398
553
|
|
|
554
|
+
/**
|
|
555
|
+
* Build the default EXECUTE slot — a `promptNode` driven by the given
|
|
556
|
+
* adapter and prompt template. This is the factory behind the harness's
|
|
557
|
+
* zero-config execute stage.
|
|
558
|
+
*
|
|
559
|
+
* Obeys all four rules of the {@link HarnessExecutor} contract: `promptNode`
|
|
560
|
+
* internally uses `switchMap` + `fromAny` for cancellation (rule 2), emits
|
|
561
|
+
* once per resolved LLM invocation (rules 1 + 4), and reads the triaged
|
|
562
|
+
* item exclusively through its `deps` argument (rule 3).
|
|
563
|
+
*
|
|
564
|
+
* @param adapter - LLMAdapter for the execute call.
|
|
565
|
+
* @param prompt - Prompt template (string or `(item) => string`). Defaults
|
|
566
|
+
* to the harness's built-in execute prompt.
|
|
567
|
+
*/
|
|
568
|
+
declare function defaultLlmExecutor(adapter: LLMAdapter, prompt?: HarnessLoopOptions["executePrompt"]): HarnessExecutor;
|
|
569
|
+
/**
|
|
570
|
+
* Build the default VERIFY slot — a `promptNode` that reviews the
|
|
571
|
+
* `[executeOutput, item]` pair from the execute-context.
|
|
572
|
+
*
|
|
573
|
+
* @param adapter - LLMAdapter for the verify call.
|
|
574
|
+
* @param prompt - Prompt template. Defaults to the harness's built-in
|
|
575
|
+
* verify prompt (receives the full pair, extracts both).
|
|
576
|
+
*/
|
|
577
|
+
declare function defaultLlmVerifier(adapter: LLMAdapter, prompt?: HarnessLoopOptions["verifyPrompt"]): HarnessVerifier;
|
|
399
578
|
/** The graph returned by {@link harnessLoop}. */
|
|
400
579
|
declare class HarnessGraph extends Graph {
|
|
401
580
|
/** Intake topic — publish items here to enter the loop. */
|
|
@@ -461,6 +640,82 @@ interface HarnessProfileResult extends GraphProfileResult {
|
|
|
461
640
|
*/
|
|
462
641
|
declare function harnessProfile(harness: HarnessGraph, opts?: GraphProfileOptions): HarnessProfileResult;
|
|
463
642
|
|
|
643
|
+
/**
|
|
644
|
+
* refineExecutor — bridge a `refineLoop` into the harness EXECUTE slot.
|
|
645
|
+
*
|
|
646
|
+
* Per-item lifecycle (Option A from the design note): on each new triaged
|
|
647
|
+
* item, a fresh `refineLoop` is mounted via `switchMap`; when the loop
|
|
648
|
+
* reaches a terminal status (`converged` / `budget` / `errored`), the
|
|
649
|
+
* executor emits a single `ExecuteOutput`. The switchMap cancels any
|
|
650
|
+
* in-flight loop when a newer item supersedes it.
|
|
651
|
+
*
|
|
652
|
+
* This shape makes all four {@link HarnessExecutor} contract rules
|
|
653
|
+
* structurally unreachable:
|
|
654
|
+
* 1. Terminal-status filter guarantees exactly one `ExecuteOutput` per
|
|
655
|
+
* completed refinement run.
|
|
656
|
+
* 2. `switchMap` cancels the prior inner loop when the next item arrives.
|
|
657
|
+
* 3. The item is captured in the switchMap closure, not mirrored to a
|
|
658
|
+
* side-state.
|
|
659
|
+
* 4. The wrapped `derived([status, best, score], ...)` only returns
|
|
660
|
+
* non-null on terminal transitions — it never emits on input arrival.
|
|
661
|
+
*
|
|
662
|
+
* **Cross-item learning:** Option A creates a fresh refineLoop per item,
|
|
663
|
+
* so `errorCritique`-style failure sampling does NOT accumulate across
|
|
664
|
+
* items sharing a `rootCause`. A persistent-loop + re-seed surface is
|
|
665
|
+
* tracked in `docs/optimizations.md` as the long-term follow-up.
|
|
666
|
+
*
|
|
667
|
+
* @module
|
|
668
|
+
*/
|
|
669
|
+
|
|
670
|
+
/** Terminal-run snapshot passed to a custom `toOutput` mapper. */
|
|
671
|
+
interface RefineExecutorResult<T> {
|
|
672
|
+
/** Best candidate the inner loop converged on. `null` if no candidates were scored. */
|
|
673
|
+
readonly best: T | null;
|
|
674
|
+
/** Aggregate score at termination. `-Infinity` if the batch was empty. */
|
|
675
|
+
readonly score: number;
|
|
676
|
+
/** Reason the loop terminated. */
|
|
677
|
+
readonly status: RefineStatus;
|
|
678
|
+
}
|
|
679
|
+
/** Configuration for {@link refineExecutor}. */
|
|
680
|
+
interface RefineExecutorConfig<T> {
|
|
681
|
+
/** Map a triaged item to the seed candidate (e.g. a catalog entry, prompt, patch). */
|
|
682
|
+
seedFrom: (item: TriagedItem) => T;
|
|
683
|
+
/** Reactive evaluator — same shape as passed to `refineLoop`. */
|
|
684
|
+
evaluator: Evaluator<T>;
|
|
685
|
+
/** Strategy (e.g. `errorCritique(teacher)`). Applied to every item's inner loop. */
|
|
686
|
+
strategy: RefineStrategy<T>;
|
|
687
|
+
/** Map a triaged item to the dataset rows the evaluator should score against. */
|
|
688
|
+
datasetFor: (item: TriagedItem) => readonly DatasetItem[];
|
|
689
|
+
/**
|
|
690
|
+
* Optional mapper from the inner loop's terminal snapshot to an
|
|
691
|
+
* `ExecuteOutput`. Default: converged→success, budget→partial,
|
|
692
|
+
* errored→failure.
|
|
693
|
+
*/
|
|
694
|
+
toOutput?: (result: RefineExecutorResult<T>) => ExecuteOutput;
|
|
695
|
+
/** Convergence / budget options forwarded to each inner `refineLoop`. */
|
|
696
|
+
refine?: Omit<RefineLoopOptions, "dataset" | "name">;
|
|
697
|
+
/** Node name prefix for introspection. Default `"refine-executor"`. */
|
|
698
|
+
name?: string;
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Build a {@link HarnessExecutor} backed by a `refineLoop` per triaged item.
|
|
702
|
+
*
|
|
703
|
+
* @example Eval-driven repair loop in the harness EXECUTE slot.
|
|
704
|
+
* ```ts
|
|
705
|
+
* const harness = harnessLoop("repair", {
|
|
706
|
+
* adapter,
|
|
707
|
+
* executor: refineExecutor({
|
|
708
|
+
* seedFrom: (item) => initialCatalogEntry(item),
|
|
709
|
+
* datasetFor: (item) => pickAffectedTasks(item, allTasks),
|
|
710
|
+
* evaluator: (cands, tasks) => runEvalBatch(cands, tasks),
|
|
711
|
+
* strategy: errorCritique({ teacher, width: 3 }),
|
|
712
|
+
* refine: { maxIterations: 5, minScore: 0.9 },
|
|
713
|
+
* }),
|
|
714
|
+
* });
|
|
715
|
+
* ```
|
|
716
|
+
*/
|
|
717
|
+
declare function refineExecutor<T>(config: RefineExecutorConfig<T>): HarnessExecutor;
|
|
718
|
+
|
|
464
719
|
/**
|
|
465
720
|
* Harness pipeline trace — thin sugar over `graph.observe({ format: "stage-log" })`.
|
|
466
721
|
*
|
|
@@ -555,14 +810,18 @@ type index_EvalJudgeScore = EvalJudgeScore;
|
|
|
555
810
|
type index_EvalResult = EvalResult;
|
|
556
811
|
type index_EvalTaskDelta = EvalTaskDelta;
|
|
557
812
|
type index_EvalTaskResult = EvalTaskResult;
|
|
813
|
+
type index_EvalVerifierConfig<T> = EvalVerifierConfig<T>;
|
|
814
|
+
type index_EvalVerifierSummary = EvalVerifierSummary;
|
|
558
815
|
type index_ExecuteOutput = ExecuteOutput;
|
|
559
816
|
type index_ExecutionResult = ExecutionResult;
|
|
817
|
+
type index_HarnessExecutor = HarnessExecutor;
|
|
560
818
|
type index_HarnessGraph = HarnessGraph;
|
|
561
819
|
declare const index_HarnessGraph: typeof HarnessGraph;
|
|
562
820
|
type index_HarnessLoopOptions = HarnessLoopOptions;
|
|
563
821
|
type index_HarnessProfileResult = HarnessProfileResult;
|
|
564
822
|
type index_HarnessTraceHandle = HarnessTraceHandle;
|
|
565
823
|
type index_HarnessTraceOptions = HarnessTraceOptions;
|
|
824
|
+
type index_HarnessVerifier = HarnessVerifier;
|
|
566
825
|
type index_IntakeBridgeOptions = IntakeBridgeOptions;
|
|
567
826
|
type index_IntakeItem = IntakeItem;
|
|
568
827
|
type index_IntakeSource = IntakeSource;
|
|
@@ -574,6 +833,8 @@ type index_PrioritySignals = PrioritySignals;
|
|
|
574
833
|
declare const index_QUEUE_NAMES: typeof QUEUE_NAMES;
|
|
575
834
|
type index_QueueConfig = QueueConfig;
|
|
576
835
|
type index_QueueRoute = QueueRoute;
|
|
836
|
+
type index_RefineExecutorConfig<T> = RefineExecutorConfig<T>;
|
|
837
|
+
type index_RefineExecutorResult<T> = RefineExecutorResult<T>;
|
|
577
838
|
type index_RootCause = RootCause;
|
|
578
839
|
type index_Severity = Severity;
|
|
579
840
|
type index_StrategyEntry = StrategyEntry;
|
|
@@ -585,23 +846,28 @@ type index_TraceDetail = TraceDetail;
|
|
|
585
846
|
type index_TraceEvent = TraceEvent;
|
|
586
847
|
type index_TraceEventType = TraceEventType;
|
|
587
848
|
type index_TriagedItem = TriagedItem;
|
|
849
|
+
type index_VerifyOutput = VerifyOutput;
|
|
588
850
|
type index_VerifyResult = VerifyResult;
|
|
589
851
|
declare const index_affectedTaskFilter: typeof affectedTaskFilter;
|
|
590
852
|
declare const index_beforeAfterCompare: typeof beforeAfterCompare;
|
|
591
853
|
declare const index_codeChangeBridge: typeof codeChangeBridge;
|
|
592
854
|
declare const index_createIntakeBridge: typeof createIntakeBridge;
|
|
593
855
|
declare const index_defaultErrorClassifier: typeof defaultErrorClassifier;
|
|
856
|
+
declare const index_defaultLlmExecutor: typeof defaultLlmExecutor;
|
|
857
|
+
declare const index_defaultLlmVerifier: typeof defaultLlmVerifier;
|
|
594
858
|
declare const index_evalIntakeBridge: typeof evalIntakeBridge;
|
|
595
859
|
declare const index_evalSource: typeof evalSource;
|
|
860
|
+
declare const index_evalVerifier: typeof evalVerifier;
|
|
596
861
|
declare const index_harnessLoop: typeof harnessLoop;
|
|
597
862
|
declare const index_harnessProfile: typeof harnessProfile;
|
|
598
863
|
declare const index_harnessTrace: typeof harnessTrace;
|
|
599
864
|
declare const index_notifyEffect: typeof notifyEffect;
|
|
600
865
|
declare const index_priorityScore: typeof priorityScore;
|
|
866
|
+
declare const index_refineExecutor: typeof refineExecutor;
|
|
601
867
|
declare const index_strategyKey: typeof strategyKey;
|
|
602
868
|
declare const index_strategyModel: typeof strategyModel;
|
|
603
869
|
declare namespace index {
|
|
604
|
-
export { type index_CodeChange as CodeChange, type index_CodeChangeBridgeOptions as CodeChangeBridgeOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, index_DEFAULT_QUEUE_CONFIGS as DEFAULT_QUEUE_CONFIGS, index_DEFAULT_SEVERITY_WEIGHTS as DEFAULT_SEVERITY_WEIGHTS, type index_ErrorClass as ErrorClass, type index_ErrorClassifier as ErrorClassifier, type index_EvalDelta as EvalDelta, type index_EvalIntakeBridgeOptions as EvalIntakeBridgeOptions, type index_EvalJudgeScore as EvalJudgeScore, type index_EvalResult as EvalResult, type index_EvalTaskDelta as EvalTaskDelta, type index_EvalTaskResult as EvalTaskResult, type index_ExecuteOutput as ExecuteOutput, type index_ExecutionResult as ExecutionResult, index_HarnessGraph as HarnessGraph, type index_HarnessLoopOptions as HarnessLoopOptions, type index_HarnessProfileResult as HarnessProfileResult, type index_HarnessTraceHandle as HarnessTraceHandle, type index_HarnessTraceOptions as HarnessTraceOptions, type index_IntakeBridgeOptions as IntakeBridgeOptions, type index_IntakeItem as IntakeItem, type index_IntakeSource as IntakeSource, type index_Intervention as Intervention, type index_LintError as LintError, type index_NotifyEffectOptions as NotifyEffectOptions, type index_NotifyTransport as NotifyTransport, type index_PrioritySignals as PrioritySignals, index_QUEUE_NAMES as QUEUE_NAMES, type index_QueueConfig as QueueConfig, type index_QueueRoute as QueueRoute, type index_RootCause as RootCause, type index_Severity as Severity, type index_StrategyEntry as StrategyEntry, type index_StrategyKey as StrategyKey, type index_StrategyModelBundle as StrategyModelBundle, type index_StrategySnapshot as StrategySnapshot, type index_TestFailure as TestFailure, type index_TraceDetail as TraceDetail, type index_TraceEvent as TraceEvent, type index_TraceEventType as TraceEventType, type index_TriagedItem as TriagedItem, type index_VerifyResult as VerifyResult, index_affectedTaskFilter as affectedTaskFilter, index_beforeAfterCompare as beforeAfterCompare, index_codeChangeBridge as codeChangeBridge, index_createIntakeBridge as createIntakeBridge, index_defaultErrorClassifier as defaultErrorClassifier, index_evalIntakeBridge as evalIntakeBridge, index_evalSource as evalSource, index_harnessLoop as harnessLoop, index_harnessProfile as harnessProfile, index_harnessTrace as harnessTrace, index_notifyEffect as notifyEffect, index_priorityScore as priorityScore, index_strategyKey as strategyKey, index_strategyModel as strategyModel };
|
|
870
|
+
export { type index_CodeChange as CodeChange, type index_CodeChangeBridgeOptions as CodeChangeBridgeOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, index_DEFAULT_QUEUE_CONFIGS as DEFAULT_QUEUE_CONFIGS, index_DEFAULT_SEVERITY_WEIGHTS as DEFAULT_SEVERITY_WEIGHTS, type index_ErrorClass as ErrorClass, type index_ErrorClassifier as ErrorClassifier, type index_EvalDelta as EvalDelta, type index_EvalIntakeBridgeOptions as EvalIntakeBridgeOptions, type index_EvalJudgeScore as EvalJudgeScore, type index_EvalResult as EvalResult, type index_EvalTaskDelta as EvalTaskDelta, type index_EvalTaskResult as EvalTaskResult, type index_EvalVerifierConfig as EvalVerifierConfig, type index_EvalVerifierSummary as EvalVerifierSummary, type index_ExecuteOutput as ExecuteOutput, type index_ExecutionResult as ExecutionResult, type index_HarnessExecutor as HarnessExecutor, index_HarnessGraph as HarnessGraph, type index_HarnessLoopOptions as HarnessLoopOptions, type index_HarnessProfileResult as HarnessProfileResult, type index_HarnessTraceHandle as HarnessTraceHandle, type index_HarnessTraceOptions as HarnessTraceOptions, type index_HarnessVerifier as HarnessVerifier, type index_IntakeBridgeOptions as IntakeBridgeOptions, type index_IntakeItem as IntakeItem, type index_IntakeSource as IntakeSource, type index_Intervention as Intervention, type index_LintError as LintError, type index_NotifyEffectOptions as NotifyEffectOptions, type index_NotifyTransport as NotifyTransport, type index_PrioritySignals as PrioritySignals, index_QUEUE_NAMES as QUEUE_NAMES, type index_QueueConfig as QueueConfig, type index_QueueRoute as QueueRoute, type index_RefineExecutorConfig as RefineExecutorConfig, type index_RefineExecutorResult as RefineExecutorResult, type index_RootCause as RootCause, type index_Severity as Severity, type index_StrategyEntry as StrategyEntry, type index_StrategyKey as StrategyKey, type index_StrategyModelBundle as StrategyModelBundle, type index_StrategySnapshot as StrategySnapshot, type index_TestFailure as TestFailure, type index_TraceDetail as TraceDetail, type index_TraceEvent as TraceEvent, type index_TraceEventType as TraceEventType, type index_TriagedItem as TriagedItem, type index_VerifyOutput as VerifyOutput, type index_VerifyResult as VerifyResult, index_affectedTaskFilter as affectedTaskFilter, index_beforeAfterCompare as beforeAfterCompare, index_codeChangeBridge as codeChangeBridge, index_createIntakeBridge as createIntakeBridge, index_defaultErrorClassifier as defaultErrorClassifier, index_defaultLlmExecutor as defaultLlmExecutor, index_defaultLlmVerifier as defaultLlmVerifier, index_evalIntakeBridge as evalIntakeBridge, index_evalSource as evalSource, index_evalVerifier as evalVerifier, index_harnessLoop as harnessLoop, index_harnessProfile as harnessProfile, index_harnessTrace as harnessTrace, index_notifyEffect as notifyEffect, index_priorityScore as priorityScore, index_refineExecutor as refineExecutor, index_strategyKey as strategyKey, index_strategyModel as strategyModel };
|
|
605
871
|
}
|
|
606
872
|
|
|
607
|
-
export {
|
|
873
|
+
export { codeChangeBridge as $, type QueueRoute as A, type RefineExecutorResult as B, type CodeChange as C, DEFAULT_DECAY_RATE as D, type ErrorClass as E, type RootCause as F, type StrategyEntry as G, type HarnessExecutor as H, type IntakeBridgeOptions as I, type StrategyKey as J, type StrategyModelBundle as K, type LintError as L, type StrategySnapshot as M, type NotifyEffectOptions as N, type TraceDetail as O, type PrioritySignals as P, QUEUE_NAMES as Q, type RefineExecutorConfig as R, type Severity as S, type TestFailure as T, type TraceEvent as U, type TraceEventType as V, type TriagedItem as W, type VerifyOutput as X, type VerifyResult as Y, affectedTaskFilter as Z, beforeAfterCompare as _, type CodeChangeBridgeOptions as a, createIntakeBridge as a0, defaultErrorClassifier as a1, defaultLlmExecutor as a2, defaultLlmVerifier as a3, evalIntakeBridge as a4, evalSource as a5, evalVerifier as a6, harnessLoop as a7, harnessProfile as a8, harnessTrace as a9, notifyEffect as aa, priorityScore as ab, refineExecutor as ac, strategyKey as ad, strategyModel as ae, DEFAULT_QUEUE_CONFIGS as b, DEFAULT_SEVERITY_WEIGHTS as c, type ErrorClassifier as d, type EvalDelta as e, type EvalIntakeBridgeOptions as f, type EvalJudgeScore as g, type EvalResult as h, index as i, type EvalTaskDelta as j, type EvalTaskResult as k, type EvalVerifierConfig as l, type EvalVerifierSummary as m, type ExecuteOutput as n, type ExecutionResult as o, HarnessGraph as p, type HarnessLoopOptions as q, type HarnessProfileResult as r, type HarnessTraceHandle as s, type HarnessTraceOptions as t, type HarnessVerifier as u, type IntakeItem as v, type IntakeSource as w, type Intervention as x, type NotifyTransport as y, type QueueConfig as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Node } from './node-
|
|
2
|
-
import { G as Graph } from './graph-
|
|
1
|
+
import { a as Node } from './node-BVV7G1bq.js';
|
|
2
|
+
import { G as Graph } from './graph-CWeI0aHd.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Memory patterns (roadmap §4.3).
|
|
@@ -136,4 +136,4 @@ declare namespace index {
|
|
|
136
136
|
export { type index_CollectionEntry as CollectionEntry, type index_CollectionGraph as CollectionGraph, type index_CollectionOptions as CollectionOptions, type index_CollectionPolicy as CollectionPolicy, type index_HnswAdapter as HnswAdapter, type index_KnowledgeEdge as KnowledgeEdge, type index_KnowledgeGraphGraph as KnowledgeGraphGraph, type index_LightCollectionBundle as LightCollectionBundle, type index_LightCollectionEntry as LightCollectionEntry, type index_LightCollectionOptions as LightCollectionOptions, type index_RankedCollectionEntry as RankedCollectionEntry, type index_VectorBackend as VectorBackend, type index_VectorIndexBundle as VectorIndexBundle, type index_VectorIndexOptions as VectorIndexOptions, type index_VectorRecord as VectorRecord, type index_VectorSearchResult as VectorSearchResult, index_collection as collection, index_decay as decay, index_knowledgeGraph as knowledgeGraph, index_lightCollection as lightCollection, index_vectorIndex as vectorIndex };
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
export { type CollectionEntry as C, type HnswAdapter as H, type KnowledgeGraphGraph as K, type LightCollectionBundle as L, type RankedCollectionEntry as R, type
|
|
139
|
+
export { type CollectionEntry as C, type HnswAdapter as H, type KnowledgeGraphGraph as K, type LightCollectionBundle as L, type RankedCollectionEntry as R, type VectorSearchResult as V, type VectorIndexBundle as a, type CollectionGraph as b, type CollectionOptions as c, type CollectionPolicy as d, type KnowledgeEdge as e, type LightCollectionEntry as f, type LightCollectionOptions as g, type VectorBackend as h, index as i, type VectorIndexOptions as j, type VectorRecord as k, collection as l, decay as m, knowledgeGraph as n, lightCollection as o, vectorIndex as v };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Node } from './node-
|
|
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 './resilience-
|
|
3
|
-
import { B as BudgetConstraint } from './index-
|
|
1
|
+
import { a as Node } from './node-BVV7G1bq.js';
|
|
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 './resilience-CludlzcP.js';
|
|
3
|
+
import { B as BudgetConstraint } from './index-CotRMjtJ.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Resilience composition with correct nesting order (roadmap §9.0b).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Node } from './node-
|
|
1
|
+
import { a as Node } from './node-BVV7G1bq.cjs';
|
|
2
2
|
import { NodeInput } from './extra/sources.cjs';
|
|
3
|
-
import {
|
|
4
|
-
import { T as TopicGraph } from './index-
|
|
3
|
+
import { a as GraphOptions, G as Graph } from './graph-C4Uxwv0T.cjs';
|
|
4
|
+
import { T as TopicGraph } from './index-B-z8WaSd.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* refineLoop — universal prompt/artifact optimization loop as a reactive Graph.
|
|
@@ -354,4 +354,4 @@ declare namespace index {
|
|
|
354
354
|
export { type index_AnalyzeEvent as AnalyzeEvent, type index_BlindVariationContext as BlindVariationContext, type index_BlindVariationOptions as BlindVariationOptions, type index_ConvergenceOptions as ConvergenceOptions, type index_DatasetItem as DatasetItem, type index_DecideEvent as DecideEvent, type index_ErrorCritiqueContext as ErrorCritiqueContext, type index_ErrorCritiqueOptions as ErrorCritiqueOptions, type index_EvalResult as EvalResult, type index_EvaluateEvent as EvaluateEvent, type index_Evaluator as Evaluator, type index_Feedback as Feedback, type index_GenerateEvent as GenerateEvent, type index_Iteration as Iteration, type index_RefineLoopGraph as RefineLoopGraph, type index_RefineLoopOptions as RefineLoopOptions, type index_RefineStatus as RefineStatus, type index_RefineStrategy as RefineStrategy, index_blindVariation as blindVariation, index_errorCritique as errorCritique, index_refineLoop as refineLoop };
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
export { type AnalyzeEvent as A, type BlindVariationContext as B, type ConvergenceOptions as C, type DatasetItem as D, type
|
|
357
|
+
export { type AnalyzeEvent as A, type BlindVariationContext as B, type ConvergenceOptions as C, type DatasetItem as D, type Evaluator as E, type Feedback as F, type GenerateEvent as G, type Iteration as I, type RefineStrategy as R, type EvalResult as a, type RefineStatus as b, type RefineLoopOptions as c, type BlindVariationOptions as d, type DecideEvent as e, type ErrorCritiqueContext as f, type ErrorCritiqueOptions as g, type EvaluateEvent as h, index as i, type RefineLoopGraph as j, blindVariation as k, errorCritique as l, refineLoop as r };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Node } from './node-
|
|
2
|
-
import { G as Graph, a as GraphOptions } from './graph-
|
|
1
|
+
import { a as Node } from './node-BVV7G1bq.js';
|
|
2
|
+
import { G as Graph, a as GraphOptions } from './graph-CWeI0aHd.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Job queue patterns (roadmap §4.2).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Node } from './node-
|
|
2
|
-
import { a as GraphOptions, G as Graph } from './graph-
|
|
1
|
+
import { a as Node } from './node-BVV7G1bq.js';
|
|
2
|
+
import { a as GraphOptions, G as Graph } from './graph-CWeI0aHd.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* CQRS patterns (roadmap §4.5).
|
|
@@ -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 { a as Node } from './node-
|
|
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-ByPnK85n.js';
|
|
2
|
+
import { i as index$3 } from './index-wIx1Jisk.js';
|
|
3
|
+
import { i as index$4 } from './index-DGb1awva.js';
|
|
4
|
+
import { i as index$5 } from './index-D0C_USMR.js';
|
|
5
|
+
import { a as Node } from './node-BVV7G1bq.js';
|
|
6
|
+
import { i as index$6 } from './index-CrC7urhX.js';
|
|
7
|
+
import { i as index$7 } from './index-BX22kvjh.js';
|
|
8
|
+
import { i as index$8 } from './index-Ip3q9T9x.js';
|
|
9
|
+
import { i as index$9 } from './index-Bvi5uJxX.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Options for creating signals.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Node } from './node-
|
|
2
|
-
import { a as GraphOptions, G as Graph } from './graph-
|
|
1
|
+
import { a as Node } from './node-BVV7G1bq.cjs';
|
|
2
|
+
import { a as GraphOptions, G as Graph } from './graph-C4Uxwv0T.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* CQRS patterns (roadmap §4.5).
|