@graphrefly/graphrefly 0.45.0 → 0.47.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/README.md +1 -2
- package/dist/_internal-B23BagFd.d.cts +33 -0
- package/dist/_internal-B23BagFd.d.ts +33 -0
- package/dist/adaptive-rate-limiter-Dch_xYIi.d.cts +111 -0
- package/dist/adaptive-rate-limiter-Dch_xYIi.d.ts +111 -0
- package/dist/agents-C0Ji9ldU.d.cts +629 -0
- package/dist/agents-C9zexT7I.d.ts +629 -0
- package/dist/audit-BAXb3VOg.d.ts +246 -0
- package/dist/audit-C_bPfkqS.d.cts +246 -0
- package/dist/backoff-7KIK3WQW.js +24 -0
- package/dist/backoff-7KIK3WQW.js.map +1 -0
- package/dist/backoff-Bnb9OoPh.d.cts +6 -0
- package/dist/backoff-Bnb9OoPh.d.ts +6 -0
- package/dist/base/composition/index.cjs +865 -0
- package/dist/base/composition/index.cjs.map +1 -0
- package/dist/base/composition/index.d.cts +468 -0
- package/dist/base/composition/index.d.ts +468 -0
- package/dist/base/composition/index.js +40 -0
- package/dist/base/composition/index.js.map +1 -0
- package/dist/base/index.cjs +6390 -0
- package/dist/base/index.cjs.map +1 -0
- package/dist/base/index.d.cts +21 -0
- package/dist/base/index.d.ts +21 -0
- package/dist/base/index.js +259 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/io/index.cjs +3270 -0
- package/dist/base/io/index.cjs.map +1 -0
- package/dist/base/io/index.d.cts +2245 -0
- package/dist/base/io/index.d.ts +2245 -0
- package/dist/base/io/index.js +117 -0
- package/dist/base/io/index.js.map +1 -0
- package/dist/base/meta/index.cjs +43 -0
- package/dist/base/meta/index.cjs.map +1 -0
- package/dist/base/meta/index.d.cts +45 -0
- package/dist/base/meta/index.d.ts +45 -0
- package/dist/base/meta/index.js +13 -0
- package/dist/base/meta/index.js.map +1 -0
- package/dist/base/mutation/index.cjs +200 -0
- package/dist/base/mutation/index.cjs.map +1 -0
- package/dist/base/mutation/index.d.cts +177 -0
- package/dist/base/mutation/index.d.ts +177 -0
- package/dist/base/mutation/index.js +22 -0
- package/dist/base/mutation/index.js.map +1 -0
- package/dist/base/render/index.cjs +1120 -0
- package/dist/base/render/index.cjs.map +1 -0
- package/dist/base/render/index.d.cts +227 -0
- package/dist/base/render/index.d.ts +227 -0
- package/dist/base/render/index.js +24 -0
- package/dist/base/render/index.js.map +1 -0
- package/dist/base/sources/browser/index.cjs +172 -0
- package/dist/base/sources/browser/index.cjs.map +1 -0
- package/dist/base/sources/browser/index.d.cts +84 -0
- package/dist/base/sources/browser/index.d.ts +84 -0
- package/dist/base/sources/browser/index.js +151 -0
- package/dist/base/sources/browser/index.js.map +1 -0
- package/dist/base/sources/event/index.cjs +98 -0
- package/dist/base/sources/event/index.cjs.map +1 -0
- package/dist/base/sources/event/index.d.cts +91 -0
- package/dist/base/sources/event/index.d.ts +91 -0
- package/dist/base/sources/event/index.js +13 -0
- package/dist/base/sources/event/index.js.map +1 -0
- package/dist/base/sources/index.cjs +755 -0
- package/dist/base/sources/index.cjs.map +1 -0
- package/dist/base/sources/index.d.cts +357 -0
- package/dist/base/sources/index.d.ts +357 -0
- package/dist/base/sources/index.js +42 -0
- package/dist/base/sources/index.js.map +1 -0
- package/dist/base/sources/node/index.cjs +320 -0
- package/dist/base/sources/node/index.cjs.map +1 -0
- package/dist/base/sources/node/index.d.cts +185 -0
- package/dist/base/sources/node/index.d.ts +185 -0
- package/dist/base/sources/node/index.js +306 -0
- package/dist/base/sources/node/index.js.map +1 -0
- package/dist/base/utils/index.cjs +37 -0
- package/dist/base/utils/index.cjs.map +1 -0
- package/dist/base/utils/index.d.cts +37 -0
- package/dist/base/utils/index.d.ts +37 -0
- package/dist/base/utils/index.js +11 -0
- package/dist/base/utils/index.js.map +1 -0
- package/dist/base/worker/index.cjs +548 -0
- package/dist/base/worker/index.cjs.map +1 -0
- package/dist/base/worker/index.d.cts +207 -0
- package/dist/base/worker/index.d.ts +207 -0
- package/dist/base/worker/index.js +20 -0
- package/dist/base/worker/index.js.map +1 -0
- package/dist/breaker-C9skL3d8.d.ts +175 -0
- package/dist/breaker-ugSdq54q.d.cts +175 -0
- package/dist/cascading-CSSbKGrJ.d.ts +199 -0
- package/dist/cascading-baGkiihI.d.cts +199 -0
- package/dist/chunk-22SG74BD.js +207 -0
- package/dist/chunk-22SG74BD.js.map +1 -0
- package/dist/chunk-255UCBG4.js +58 -0
- package/dist/chunk-255UCBG4.js.map +1 -0
- package/dist/chunk-2LO3EL4W.js +1 -0
- package/dist/chunk-2LO3EL4W.js.map +1 -0
- package/dist/chunk-2OB3CEJS.js +1065 -0
- package/dist/chunk-2OB3CEJS.js.map +1 -0
- package/dist/chunk-36NMM65U.js +144 -0
- package/dist/chunk-36NMM65U.js.map +1 -0
- package/dist/chunk-3CEXCBN6.js +1 -0
- package/dist/chunk-3CEXCBN6.js.map +1 -0
- package/dist/chunk-3MUSLI6E.js +105 -0
- package/dist/chunk-3MUSLI6E.js.map +1 -0
- package/dist/chunk-3PSLNJDU.js +884 -0
- package/dist/chunk-3PSLNJDU.js.map +1 -0
- package/dist/chunk-42FQ27MQ.js +594 -0
- package/dist/chunk-42FQ27MQ.js.map +1 -0
- package/dist/chunk-4GYMCUDZ.js +1085 -0
- package/dist/chunk-4GYMCUDZ.js.map +1 -0
- package/dist/chunk-4S53H2KR.js +382 -0
- package/dist/chunk-4S53H2KR.js.map +1 -0
- package/dist/chunk-4XCHZRUJ.js +128 -0
- package/dist/chunk-4XCHZRUJ.js.map +1 -0
- package/dist/chunk-5IMMNARC.js +1153 -0
- package/dist/chunk-5IMMNARC.js.map +1 -0
- package/dist/chunk-6XZYT4SW.js +256 -0
- package/dist/chunk-6XZYT4SW.js.map +1 -0
- package/dist/chunk-7EGRP2VX.js +76 -0
- package/dist/chunk-7EGRP2VX.js.map +1 -0
- package/dist/chunk-A7KV5UK4.js +150 -0
- package/dist/chunk-A7KV5UK4.js.map +1 -0
- package/dist/chunk-APY2SS5X.js +156 -0
- package/dist/chunk-APY2SS5X.js.map +1 -0
- package/dist/chunk-AZDQPQ3V.js +66 -0
- package/dist/chunk-AZDQPQ3V.js.map +1 -0
- package/dist/chunk-BU3SEFA5.js +90 -0
- package/dist/chunk-BU3SEFA5.js.map +1 -0
- package/dist/chunk-BXGZFGZ4.js +189 -0
- package/dist/chunk-BXGZFGZ4.js.map +1 -0
- package/dist/chunk-CGHORL6G.js +579 -0
- package/dist/chunk-CGHORL6G.js.map +1 -0
- package/dist/chunk-CXANAIZU.js +530 -0
- package/dist/chunk-CXANAIZU.js.map +1 -0
- package/dist/chunk-CZQHCKKG.js +1 -0
- package/dist/chunk-CZQHCKKG.js.map +1 -0
- package/dist/chunk-DKNHAICT.js +133 -0
- package/dist/chunk-DKNHAICT.js.map +1 -0
- package/dist/chunk-DM4OMPWK.js +584 -0
- package/dist/chunk-DM4OMPWK.js.map +1 -0
- package/dist/chunk-DMSNO6ZB.js +452 -0
- package/dist/chunk-DMSNO6ZB.js.map +1 -0
- package/dist/chunk-E5OZPDIW.js +229 -0
- package/dist/chunk-E5OZPDIW.js.map +1 -0
- package/dist/chunk-EHRRQ4IC.js +211 -0
- package/dist/chunk-EHRRQ4IC.js.map +1 -0
- package/dist/chunk-EVYY4X5A.js +509 -0
- package/dist/chunk-EVYY4X5A.js.map +1 -0
- package/dist/chunk-FDFD67UO.js +1 -0
- package/dist/chunk-FDFD67UO.js.map +1 -0
- package/dist/chunk-FMPF42Q4.js +13 -0
- package/dist/chunk-FMPF42Q4.js.map +1 -0
- package/dist/chunk-FW23JYNQ.js +454 -0
- package/dist/chunk-FW23JYNQ.js.map +1 -0
- package/dist/chunk-GWRNLJNW.js +2508 -0
- package/dist/chunk-GWRNLJNW.js.map +1 -0
- package/dist/chunk-HL7HUJIX.js +1 -0
- package/dist/chunk-HL7HUJIX.js.map +1 -0
- package/dist/chunk-IHTWQEDR.js +169 -0
- package/dist/chunk-IHTWQEDR.js.map +1 -0
- package/dist/chunk-IJRR6YAI.js +128 -0
- package/dist/chunk-IJRR6YAI.js.map +1 -0
- package/dist/chunk-JGFRAFDL.js +221 -0
- package/dist/chunk-JGFRAFDL.js.map +1 -0
- package/dist/chunk-JKTC747G.js +725 -0
- package/dist/chunk-JKTC747G.js.map +1 -0
- package/dist/chunk-KN3H5CNT.js +11 -0
- package/dist/chunk-KN3H5CNT.js.map +1 -0
- package/dist/chunk-KPG3DGLA.js +1 -0
- package/dist/chunk-KPG3DGLA.js.map +1 -0
- package/dist/chunk-KRNQ6RGQ.js +1 -0
- package/dist/chunk-KRNQ6RGQ.js.map +1 -0
- package/dist/chunk-MLTPJMH6.js +417 -0
- package/dist/chunk-MLTPJMH6.js.map +1 -0
- package/dist/chunk-N3SZ7BMH.js +95 -0
- package/dist/chunk-N3SZ7BMH.js.map +1 -0
- package/dist/chunk-NDUD3IMO.js +540 -0
- package/dist/chunk-NDUD3IMO.js.map +1 -0
- package/dist/chunk-NY2PYHNC.js +873 -0
- package/dist/chunk-NY2PYHNC.js.map +1 -0
- package/dist/chunk-O3MT7DYI.js +225 -0
- package/dist/chunk-O3MT7DYI.js.map +1 -0
- package/dist/chunk-OCUDSN63.js +2386 -0
- package/dist/chunk-OCUDSN63.js.map +1 -0
- package/dist/chunk-OIWU3NYV.js +199 -0
- package/dist/chunk-OIWU3NYV.js.map +1 -0
- package/dist/chunk-OQUIJT7A.js +1 -0
- package/dist/chunk-OQUIJT7A.js.map +1 -0
- package/dist/chunk-P5LBT622.js +105 -0
- package/dist/chunk-P5LBT622.js.map +1 -0
- package/dist/chunk-PKGQG5QQ.js +519 -0
- package/dist/chunk-PKGQG5QQ.js.map +1 -0
- package/dist/chunk-PKPO3JTZ.js +561 -0
- package/dist/chunk-PKPO3JTZ.js.map +1 -0
- package/dist/chunk-PL5UDIQ5.js +118 -0
- package/dist/chunk-PL5UDIQ5.js.map +1 -0
- package/dist/chunk-PZWISPIQ.js +432 -0
- package/dist/chunk-PZWISPIQ.js.map +1 -0
- package/dist/chunk-Q3EYOCZB.js +510 -0
- package/dist/chunk-Q3EYOCZB.js.map +1 -0
- package/dist/chunk-QMBYUVRL.js +15 -0
- package/dist/chunk-QMBYUVRL.js.map +1 -0
- package/dist/chunk-RAGGHLCV.js +200 -0
- package/dist/chunk-RAGGHLCV.js.map +1 -0
- package/dist/chunk-RJOG4IJU.js +1039 -0
- package/dist/chunk-RJOG4IJU.js.map +1 -0
- package/dist/chunk-SOOKUYVM.js +403 -0
- package/dist/chunk-SOOKUYVM.js.map +1 -0
- package/dist/chunk-T5BN5KG7.js +1 -0
- package/dist/chunk-T5BN5KG7.js.map +1 -0
- package/dist/chunk-TNX5ZGDJ.js +574 -0
- package/dist/chunk-TNX5ZGDJ.js.map +1 -0
- package/dist/chunk-TP7244Y6.js +207 -0
- package/dist/chunk-TP7244Y6.js.map +1 -0
- package/dist/chunk-TSBFTJKM.js +57 -0
- package/dist/chunk-TSBFTJKM.js.map +1 -0
- package/dist/chunk-URQ2CBBF.js +143 -0
- package/dist/chunk-URQ2CBBF.js.map +1 -0
- package/dist/chunk-VLAGJZSL.js +1079 -0
- package/dist/chunk-VLAGJZSL.js.map +1 -0
- package/dist/chunk-W2BOPXTI.js +1 -0
- package/dist/chunk-W2BOPXTI.js.map +1 -0
- package/dist/chunk-Y52CS6YA.js +88 -0
- package/dist/chunk-Y52CS6YA.js.map +1 -0
- package/dist/chunk-YCBUWK77.js +92 -0
- package/dist/chunk-YCBUWK77.js.map +1 -0
- package/dist/chunk-YJ4U2D2C.js +314 -0
- package/dist/chunk-YJ4U2D2C.js.map +1 -0
- package/dist/chunk-Z4YXAUDN.js +239 -0
- package/dist/chunk-Z4YXAUDN.js.map +1 -0
- package/dist/chunk-Z65DVDEQ.js +146 -0
- package/dist/chunk-Z65DVDEQ.js.map +1 -0
- package/dist/chunk-Z6EGP5D7.js +92 -0
- package/dist/chunk-Z6EGP5D7.js.map +1 -0
- package/dist/chunk-ZT4WMQW4.js +1575 -0
- package/dist/chunk-ZT4WMQW4.js.map +1 -0
- package/dist/chunk-ZVXXDWIB.js +1282 -0
- package/dist/chunk-ZVXXDWIB.js.map +1 -0
- package/dist/compat/index.cjs +3150 -6
- package/dist/compat/index.cjs.map +1 -1
- package/dist/compat/index.d.cts +116 -1
- package/dist/compat/index.d.ts +116 -1
- package/dist/compat/index.js +175 -2
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/jotai/index.cjs +130 -2
- package/dist/compat/jotai/index.cjs.map +1 -1
- package/dist/compat/jotai/index.d.cts +2 -1
- package/dist/compat/jotai/index.d.ts +2 -1
- package/dist/compat/jotai/index.js +7 -2
- package/dist/compat/jotai/index.js.map +1 -1
- package/dist/compat/nanostores/index.cjs +186 -2
- package/dist/compat/nanostores/index.cjs.map +1 -1
- package/dist/compat/nanostores/index.d.cts +2 -1
- package/dist/compat/nanostores/index.d.ts +2 -1
- package/dist/compat/nanostores/index.js +21 -2
- package/dist/compat/nanostores/index.js.map +1 -1
- package/dist/compat/nestjs/index.cjs +2291 -6
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +10 -1
- package/dist/compat/nestjs/index.d.ts +10 -1
- package/dist/compat/nestjs/index.js +76 -2
- package/dist/compat/nestjs/index.js.map +1 -1
- package/dist/compat/react/index.cjs +95 -2
- package/dist/compat/react/index.cjs.map +1 -1
- package/dist/compat/react/index.d.cts +2 -1
- package/dist/compat/react/index.d.ts +2 -1
- package/dist/compat/react/index.js +11 -2
- package/dist/compat/react/index.js.map +1 -1
- package/dist/compat/solid/index.cjs +82 -2
- package/dist/compat/solid/index.cjs.map +1 -1
- package/dist/compat/solid/index.d.cts +2 -1
- package/dist/compat/solid/index.d.ts +2 -1
- package/dist/compat/solid/index.js +11 -2
- package/dist/compat/solid/index.js.map +1 -1
- package/dist/compat/svelte/index.cjs +85 -2
- package/dist/compat/svelte/index.cjs.map +1 -1
- package/dist/compat/svelte/index.d.cts +2 -1
- package/dist/compat/svelte/index.d.ts +2 -1
- package/dist/compat/svelte/index.js +11 -2
- package/dist/compat/svelte/index.js.map +1 -1
- package/dist/compat/vue/index.cjs +100 -2
- package/dist/compat/vue/index.cjs.map +1 -1
- package/dist/compat/vue/index.d.cts +3 -1
- package/dist/compat/vue/index.d.ts +3 -1
- package/dist/compat/vue/index.js +11 -2
- package/dist/compat/vue/index.js.map +1 -1
- package/dist/compat/zustand/index.cjs +50 -2
- package/dist/compat/zustand/index.cjs.map +1 -1
- package/dist/compat/zustand/index.d.cts +2 -1
- package/dist/compat/zustand/index.d.ts +2 -1
- package/dist/compat/zustand/index.js +7 -2
- package/dist/compat/zustand/index.js.map +1 -1
- package/dist/distill-De6Rnn15.d.cts +48 -0
- package/dist/distill-De6Rnn15.d.ts +48 -0
- package/dist/external-register-CWyroXb_.d.cts +138 -0
- package/dist/external-register-CWyroXb_.d.ts +138 -0
- package/dist/fallback-Bx46zqky.d.cts +243 -0
- package/dist/fallback-pIWW8A2d.d.ts +243 -0
- package/dist/guarded-execution-BcdtxeBk.d.ts +207 -0
- package/dist/guarded-execution-C-3hnP6A.d.cts +207 -0
- package/dist/index-B6pxYJzO.d.cts +36 -0
- package/dist/index-B6pxYJzO.d.ts +36 -0
- package/dist/index-BFsng6v1.d.cts +44 -0
- package/dist/index-BFsng6v1.d.ts +44 -0
- package/dist/index-B_p8tnvf.d.cts +770 -0
- package/dist/index-Bg-LwEt-.d.cts +45 -0
- package/dist/index-Bg-LwEt-.d.ts +45 -0
- package/dist/index-Brp888t0.d.cts +127 -0
- package/dist/index-Brp888t0.d.ts +127 -0
- package/dist/index-CDfk6jHN.d.cts +37 -0
- package/dist/index-CDfk6jHN.d.ts +37 -0
- package/dist/index-DLAxYaN5.d.cts +169 -0
- package/dist/index-DLAxYaN5.d.ts +169 -0
- package/dist/index-DeWbQzMe.d.cts +34 -0
- package/dist/index-DeWbQzMe.d.ts +34 -0
- package/dist/index-_HDSmPyp.d.ts +770 -0
- package/dist/index-dX9IzPqj.d.cts +86 -0
- package/dist/index-dX9IzPqj.d.ts +86 -0
- package/dist/index.cjs +26009 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -42
- package/dist/index.d.ts +55 -42
- package/dist/index.js +849 -0
- package/dist/index.js.map +1 -1
- package/dist/layout-types-B5aiHYgk.d.cts +72 -0
- package/dist/layout-types-B5aiHYgk.d.ts +72 -0
- package/dist/memory-composers-BryDrRBX.d.cts +529 -0
- package/dist/memory-composers-CVQqPYEV.d.ts +529 -0
- package/dist/observable-B25XqCbZ.d.cts +59 -0
- package/dist/observable-B25XqCbZ.d.ts +59 -0
- package/dist/pipeline-graph-Ce47CB6Y.d.cts +145 -0
- package/dist/pipeline-graph-DXCwY9vG.d.ts +145 -0
- package/dist/presets/ai/index.cjs +4377 -0
- package/dist/presets/ai/index.cjs.map +1 -0
- package/dist/presets/ai/index.d.cts +98 -0
- package/dist/presets/ai/index.d.ts +98 -0
- package/dist/presets/ai/index.js +54 -0
- package/dist/presets/ai/index.js.map +1 -0
- package/dist/presets/harness/index.cjs +5929 -0
- package/dist/presets/harness/index.cjs.map +1 -0
- package/dist/presets/harness/index.d.cts +566 -0
- package/dist/presets/harness/index.d.ts +566 -0
- package/dist/presets/harness/index.js +71 -0
- package/dist/presets/harness/index.js.map +1 -0
- package/dist/presets/index.cjs +9782 -0
- package/dist/presets/index.cjs.map +1 -0
- package/dist/presets/index.d.cts +28 -0
- package/dist/presets/index.d.ts +28 -0
- package/dist/presets/index.js +129 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/inspect/index.cjs +1087 -0
- package/dist/presets/inspect/index.cjs.map +1 -0
- package/dist/presets/inspect/index.d.cts +172 -0
- package/dist/presets/inspect/index.d.ts +172 -0
- package/dist/presets/inspect/index.js +21 -0
- package/dist/presets/inspect/index.js.map +1 -0
- package/dist/presets/resilience/index.cjs +1593 -0
- package/dist/presets/resilience/index.cjs.map +1 -0
- package/dist/presets/resilience/index.d.cts +205 -0
- package/dist/presets/resilience/index.d.ts +205 -0
- package/dist/presets/resilience/index.js +18 -0
- package/dist/presets/resilience/index.js.map +1 -0
- package/dist/rate-limiter-CEALq4N1.d.ts +559 -0
- package/dist/rate-limiter-DpVbSYdH.d.cts +559 -0
- package/dist/reactive-layout-fswlBUvX.d.cts +195 -0
- package/dist/reactive-layout-fswlBUvX.d.ts +195 -0
- package/dist/retry-BDbRZ_gx.d.ts +125 -0
- package/dist/retry-DWuhjvsA.d.cts +125 -0
- package/dist/solutions/index.cjs +8200 -0
- package/dist/solutions/index.cjs.map +1 -0
- package/dist/solutions/index.d.cts +23 -0
- package/dist/solutions/index.d.ts +23 -0
- package/dist/solutions/index.js +55 -0
- package/dist/solutions/index.js.map +1 -0
- package/dist/spawnable-5mDY501F.d.cts +746 -0
- package/dist/spawnable-D3lR0oQu.d.ts +746 -0
- package/dist/status-U-rUI79b.d.cts +84 -0
- package/dist/status-U-rUI79b.d.ts +84 -0
- package/dist/timeout-U5O4ESK3.js +12 -0
- package/dist/timeout-U5O4ESK3.js.map +1 -0
- package/dist/types-BB5Lw-pB.d.cts +442 -0
- package/dist/types-BB5Lw-pB.d.ts +442 -0
- package/dist/types-CJWIMJiZ.d.ts +548 -0
- package/dist/types-vCq7ShIm.d.cts +548 -0
- package/dist/utils/ai/browser.cjs +2169 -0
- package/dist/utils/ai/browser.cjs.map +1 -0
- package/dist/utils/ai/browser.d.cts +129 -0
- package/dist/utils/ai/browser.d.ts +129 -0
- package/dist/utils/ai/browser.js +255 -0
- package/dist/utils/ai/browser.js.map +1 -0
- package/dist/utils/ai/index.cjs +8468 -0
- package/dist/utils/ai/index.cjs.map +1 -0
- package/dist/utils/ai/index.d.cts +1777 -0
- package/dist/utils/ai/index.d.ts +1777 -0
- package/dist/utils/ai/index.js +173 -0
- package/dist/utils/ai/index.js.map +1 -0
- package/dist/utils/ai/node.cjs +648 -0
- package/dist/utils/ai/node.cjs.map +1 -0
- package/dist/utils/ai/node.d.cts +57 -0
- package/dist/utils/ai/node.d.ts +57 -0
- package/dist/utils/ai/node.js +84 -0
- package/dist/utils/ai/node.js.map +1 -0
- package/dist/utils/cqrs/index.cjs +1036 -0
- package/dist/utils/cqrs/index.cjs.map +1 -0
- package/dist/utils/cqrs/index.d.cts +438 -0
- package/dist/utils/cqrs/index.d.ts +438 -0
- package/dist/utils/cqrs/index.js +18 -0
- package/dist/utils/cqrs/index.js.map +1 -0
- package/dist/utils/demo-shell/index.cjs +865 -0
- package/dist/utils/demo-shell/index.cjs.map +1 -0
- package/dist/utils/demo-shell/index.d.cts +90 -0
- package/dist/utils/demo-shell/index.d.ts +90 -0
- package/dist/utils/demo-shell/index.js +13 -0
- package/dist/utils/demo-shell/index.js.map +1 -0
- package/dist/utils/domain-templates/index.cjs +732 -0
- package/dist/utils/domain-templates/index.cjs.map +1 -0
- package/dist/utils/domain-templates/index.d.cts +214 -0
- package/dist/utils/domain-templates/index.d.ts +214 -0
- package/dist/utils/domain-templates/index.js +17 -0
- package/dist/utils/domain-templates/index.js.map +1 -0
- package/dist/utils/graphspec/index.cjs +1174 -0
- package/dist/utils/graphspec/index.cjs.map +1 -0
- package/dist/utils/graphspec/index.d.cts +449 -0
- package/dist/utils/graphspec/index.d.ts +449 -0
- package/dist/utils/graphspec/index.js +35 -0
- package/dist/utils/graphspec/index.js.map +1 -0
- package/dist/utils/harness/index.cjs +656 -0
- package/dist/utils/harness/index.cjs.map +1 -0
- package/dist/utils/harness/index.d.cts +542 -0
- package/dist/utils/harness/index.d.ts +542 -0
- package/dist/utils/harness/index.js +56 -0
- package/dist/utils/harness/index.js.map +1 -0
- package/dist/utils/index.cjs +17614 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +96 -0
- package/dist/utils/index.d.ts +96 -0
- package/dist/utils/index.js +514 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/inspect/index.cjs +807 -0
- package/dist/utils/inspect/index.cjs.map +1 -0
- package/dist/utils/inspect/index.d.cts +123 -0
- package/dist/utils/inspect/index.d.ts +123 -0
- package/dist/utils/inspect/index.js +30 -0
- package/dist/utils/inspect/index.js.map +1 -0
- package/dist/utils/job-queue/index.cjs +717 -0
- package/dist/utils/job-queue/index.cjs.map +1 -0
- package/dist/utils/job-queue/index.d.cts +200 -0
- package/dist/utils/job-queue/index.d.ts +200 -0
- package/dist/utils/job-queue/index.js +18 -0
- package/dist/utils/job-queue/index.js.map +1 -0
- package/dist/utils/memory/index.cjs +1456 -0
- package/dist/utils/memory/index.cjs.map +1 -0
- package/dist/utils/memory/index.d.cts +660 -0
- package/dist/utils/memory/index.d.ts +660 -0
- package/dist/utils/memory/index.js +19 -0
- package/dist/utils/memory/index.js.map +1 -0
- package/dist/utils/messaging/index.cjs +666 -0
- package/dist/utils/messaging/index.cjs.map +1 -0
- package/dist/utils/messaging/index.d.cts +562 -0
- package/dist/utils/messaging/index.d.ts +562 -0
- package/dist/utils/messaging/index.js +50 -0
- package/dist/utils/messaging/index.js.map +1 -0
- package/dist/utils/orchestration/index.cjs +876 -0
- package/dist/utils/orchestration/index.cjs.map +1 -0
- package/dist/utils/orchestration/index.d.cts +233 -0
- package/dist/utils/orchestration/index.d.ts +233 -0
- package/dist/utils/orchestration/index.js +19 -0
- package/dist/utils/orchestration/index.js.map +1 -0
- package/dist/utils/process/index.cjs +743 -0
- package/dist/utils/process/index.cjs.map +1 -0
- package/dist/utils/process/index.d.cts +411 -0
- package/dist/utils/process/index.d.ts +411 -0
- package/dist/utils/process/index.js +14 -0
- package/dist/utils/process/index.js.map +1 -0
- package/dist/utils/reactive-layout/index.cjs +1607 -0
- package/dist/utils/reactive-layout/index.cjs.map +1 -0
- package/dist/utils/reactive-layout/index.d.cts +492 -0
- package/dist/utils/reactive-layout/index.d.ts +492 -0
- package/dist/utils/reactive-layout/index.js +52 -0
- package/dist/utils/reactive-layout/index.js.map +1 -0
- package/dist/utils/reduction/index.cjs +203 -0
- package/dist/utils/reduction/index.cjs.map +1 -0
- package/dist/utils/reduction/index.d.cts +102 -0
- package/dist/utils/reduction/index.d.ts +102 -0
- package/dist/utils/reduction/index.js +14 -0
- package/dist/utils/reduction/index.js.map +1 -0
- package/dist/utils/resilience/index.cjs +1617 -0
- package/dist/utils/resilience/index.cjs.map +1 -0
- package/dist/utils/resilience/index.d.cts +9 -0
- package/dist/utils/resilience/index.d.ts +9 -0
- package/dist/utils/resilience/index.js +44 -0
- package/dist/utils/resilience/index.js.map +1 -0
- package/dist/utils/surface/index.cjs +1070 -0
- package/dist/utils/surface/index.cjs.map +1 -0
- package/dist/utils/surface/index.d.cts +240 -0
- package/dist/utils/surface/index.d.ts +240 -0
- package/dist/utils/surface/index.js +30 -0
- package/dist/utils/surface/index.js.map +1 -0
- package/dist/utils/topology-view/index.cjs +620 -0
- package/dist/utils/topology-view/index.cjs.map +1 -0
- package/dist/utils/topology-view/index.d.cts +68 -0
- package/dist/utils/topology-view/index.d.ts +68 -0
- package/dist/utils/topology-view/index.js +11 -0
- package/dist/utils/topology-view/index.js.map +1 -0
- package/package.json +293 -241
- package/dist/core/index.cjs +0 -21
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.d.cts +0 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +0 -3
- package/dist/core/index.js.map +0 -1
- package/dist/extra/browser.cjs +0 -21
- package/dist/extra/browser.cjs.map +0 -1
- package/dist/extra/browser.d.cts +0 -1
- package/dist/extra/browser.d.ts +0 -1
- package/dist/extra/browser.js +0 -3
- package/dist/extra/browser.js.map +0 -1
- package/dist/extra/index.cjs +0 -21
- package/dist/extra/index.cjs.map +0 -1
- package/dist/extra/index.d.cts +0 -1
- package/dist/extra/index.d.ts +0 -1
- package/dist/extra/index.js +0 -3
- package/dist/extra/index.js.map +0 -1
- package/dist/extra/node.cjs +0 -21
- package/dist/extra/node.cjs.map +0 -1
- package/dist/extra/node.d.cts +0 -1
- package/dist/extra/node.d.ts +0 -1
- package/dist/extra/node.js +0 -3
- package/dist/extra/node.js.map +0 -1
- package/dist/extra/operators.cjs +0 -21
- package/dist/extra/operators.cjs.map +0 -1
- package/dist/extra/operators.d.cts +0 -1
- package/dist/extra/operators.d.ts +0 -1
- package/dist/extra/operators.js +0 -3
- package/dist/extra/operators.js.map +0 -1
- package/dist/extra/reactive.cjs +0 -21
- package/dist/extra/reactive.cjs.map +0 -1
- package/dist/extra/reactive.d.cts +0 -1
- package/dist/extra/reactive.d.ts +0 -1
- package/dist/extra/reactive.js +0 -3
- package/dist/extra/reactive.js.map +0 -1
- package/dist/extra/render/index.cjs +0 -21
- package/dist/extra/render/index.cjs.map +0 -1
- package/dist/extra/render/index.d.cts +0 -1
- package/dist/extra/render/index.d.ts +0 -1
- package/dist/extra/render/index.js +0 -3
- package/dist/extra/render/index.js.map +0 -1
- package/dist/extra/sources.cjs +0 -21
- package/dist/extra/sources.cjs.map +0 -1
- package/dist/extra/sources.d.cts +0 -1
- package/dist/extra/sources.d.ts +0 -1
- package/dist/extra/sources.js +0 -3
- package/dist/extra/sources.js.map +0 -1
- package/dist/extra/storage-browser.cjs +0 -21
- package/dist/extra/storage-browser.cjs.map +0 -1
- package/dist/extra/storage-browser.d.cts +0 -1
- package/dist/extra/storage-browser.d.ts +0 -1
- package/dist/extra/storage-browser.js +0 -3
- package/dist/extra/storage-browser.js.map +0 -1
- package/dist/extra/storage-core.cjs +0 -21
- package/dist/extra/storage-core.cjs.map +0 -1
- package/dist/extra/storage-core.d.cts +0 -1
- package/dist/extra/storage-core.d.ts +0 -1
- package/dist/extra/storage-core.js +0 -3
- package/dist/extra/storage-core.js.map +0 -1
- package/dist/extra/storage-node.cjs +0 -21
- package/dist/extra/storage-node.cjs.map +0 -1
- package/dist/extra/storage-node.d.cts +0 -1
- package/dist/extra/storage-node.d.ts +0 -1
- package/dist/extra/storage-node.js +0 -3
- package/dist/extra/storage-node.js.map +0 -1
- package/dist/extra/storage-tiers-browser.cjs +0 -21
- package/dist/extra/storage-tiers-browser.cjs.map +0 -1
- package/dist/extra/storage-tiers-browser.d.cts +0 -1
- package/dist/extra/storage-tiers-browser.d.ts +0 -1
- package/dist/extra/storage-tiers-browser.js +0 -3
- package/dist/extra/storage-tiers-browser.js.map +0 -1
- package/dist/extra/storage-tiers-node.cjs +0 -21
- package/dist/extra/storage-tiers-node.cjs.map +0 -1
- package/dist/extra/storage-tiers-node.d.cts +0 -1
- package/dist/extra/storage-tiers-node.d.ts +0 -1
- package/dist/extra/storage-tiers-node.js +0 -3
- package/dist/extra/storage-tiers-node.js.map +0 -1
- package/dist/extra/storage-tiers.cjs +0 -21
- package/dist/extra/storage-tiers.cjs.map +0 -1
- package/dist/extra/storage-tiers.d.cts +0 -1
- package/dist/extra/storage-tiers.d.ts +0 -1
- package/dist/extra/storage-tiers.js +0 -3
- package/dist/extra/storage-tiers.js.map +0 -1
- package/dist/extra/storage-wal.cjs +0 -21
- package/dist/extra/storage-wal.cjs.map +0 -1
- package/dist/extra/storage-wal.d.cts +0 -1
- package/dist/extra/storage-wal.d.ts +0 -1
- package/dist/extra/storage-wal.js +0 -3
- package/dist/extra/storage-wal.js.map +0 -1
- package/dist/graph/index.cjs +0 -21
- package/dist/graph/index.cjs.map +0 -1
- package/dist/graph/index.d.cts +0 -1
- package/dist/graph/index.d.ts +0 -1
- package/dist/graph/index.js +0 -3
- package/dist/graph/index.js.map +0 -1
- package/dist/patterns/ai/browser.cjs +0 -21
- package/dist/patterns/ai/browser.cjs.map +0 -1
- package/dist/patterns/ai/browser.d.cts +0 -1
- package/dist/patterns/ai/browser.d.ts +0 -1
- package/dist/patterns/ai/browser.js +0 -3
- package/dist/patterns/ai/browser.js.map +0 -1
- package/dist/patterns/ai/index.cjs +0 -21
- package/dist/patterns/ai/index.cjs.map +0 -1
- package/dist/patterns/ai/index.d.cts +0 -1
- package/dist/patterns/ai/index.d.ts +0 -1
- package/dist/patterns/ai/index.js +0 -3
- package/dist/patterns/ai/index.js.map +0 -1
- package/dist/patterns/ai/node.cjs +0 -21
- package/dist/patterns/ai/node.cjs.map +0 -1
- package/dist/patterns/ai/node.d.cts +0 -1
- package/dist/patterns/ai/node.d.ts +0 -1
- package/dist/patterns/ai/node.js +0 -3
- package/dist/patterns/ai/node.js.map +0 -1
- package/dist/patterns/cqrs/index.cjs +0 -21
- package/dist/patterns/cqrs/index.cjs.map +0 -1
- package/dist/patterns/cqrs/index.d.cts +0 -1
- package/dist/patterns/cqrs/index.d.ts +0 -1
- package/dist/patterns/cqrs/index.js +0 -3
- package/dist/patterns/cqrs/index.js.map +0 -1
- package/dist/patterns/demo-shell/index.cjs +0 -21
- package/dist/patterns/demo-shell/index.cjs.map +0 -1
- package/dist/patterns/demo-shell/index.d.cts +0 -1
- package/dist/patterns/demo-shell/index.d.ts +0 -1
- package/dist/patterns/demo-shell/index.js +0 -3
- package/dist/patterns/demo-shell/index.js.map +0 -1
- package/dist/patterns/domain-templates/index.cjs +0 -21
- package/dist/patterns/domain-templates/index.cjs.map +0 -1
- package/dist/patterns/domain-templates/index.d.cts +0 -1
- package/dist/patterns/domain-templates/index.d.ts +0 -1
- package/dist/patterns/domain-templates/index.js +0 -3
- package/dist/patterns/domain-templates/index.js.map +0 -1
- package/dist/patterns/graphspec/index.cjs +0 -21
- package/dist/patterns/graphspec/index.cjs.map +0 -1
- package/dist/patterns/graphspec/index.d.cts +0 -1
- package/dist/patterns/graphspec/index.d.ts +0 -1
- package/dist/patterns/graphspec/index.js +0 -3
- package/dist/patterns/graphspec/index.js.map +0 -1
- package/dist/patterns/harness/index.cjs +0 -21
- package/dist/patterns/harness/index.cjs.map +0 -1
- package/dist/patterns/harness/index.d.cts +0 -1
- package/dist/patterns/harness/index.d.ts +0 -1
- package/dist/patterns/harness/index.js +0 -3
- package/dist/patterns/harness/index.js.map +0 -1
- package/dist/patterns/inspect/index.cjs +0 -21
- package/dist/patterns/inspect/index.cjs.map +0 -1
- package/dist/patterns/inspect/index.d.cts +0 -1
- package/dist/patterns/inspect/index.d.ts +0 -1
- package/dist/patterns/inspect/index.js +0 -3
- package/dist/patterns/inspect/index.js.map +0 -1
- package/dist/patterns/job-queue/index.cjs +0 -21
- package/dist/patterns/job-queue/index.cjs.map +0 -1
- package/dist/patterns/job-queue/index.d.cts +0 -1
- package/dist/patterns/job-queue/index.d.ts +0 -1
- package/dist/patterns/job-queue/index.js +0 -3
- package/dist/patterns/job-queue/index.js.map +0 -1
- package/dist/patterns/memory/index.cjs +0 -21
- package/dist/patterns/memory/index.cjs.map +0 -1
- package/dist/patterns/memory/index.d.cts +0 -1
- package/dist/patterns/memory/index.d.ts +0 -1
- package/dist/patterns/memory/index.js +0 -3
- package/dist/patterns/memory/index.js.map +0 -1
- package/dist/patterns/messaging/index.cjs +0 -21
- package/dist/patterns/messaging/index.cjs.map +0 -1
- package/dist/patterns/messaging/index.d.cts +0 -1
- package/dist/patterns/messaging/index.d.ts +0 -1
- package/dist/patterns/messaging/index.js +0 -3
- package/dist/patterns/messaging/index.js.map +0 -1
- package/dist/patterns/orchestration/index.cjs +0 -21
- package/dist/patterns/orchestration/index.cjs.map +0 -1
- package/dist/patterns/orchestration/index.d.cts +0 -1
- package/dist/patterns/orchestration/index.d.ts +0 -1
- package/dist/patterns/orchestration/index.js +0 -3
- package/dist/patterns/orchestration/index.js.map +0 -1
- package/dist/patterns/process/index.cjs +0 -21
- package/dist/patterns/process/index.cjs.map +0 -1
- package/dist/patterns/process/index.d.cts +0 -1
- package/dist/patterns/process/index.d.ts +0 -1
- package/dist/patterns/process/index.js +0 -3
- package/dist/patterns/process/index.js.map +0 -1
- package/dist/patterns/reactive-layout/index.cjs +0 -21
- package/dist/patterns/reactive-layout/index.cjs.map +0 -1
- package/dist/patterns/reactive-layout/index.d.cts +0 -1
- package/dist/patterns/reactive-layout/index.d.ts +0 -1
- package/dist/patterns/reactive-layout/index.js +0 -3
- package/dist/patterns/reactive-layout/index.js.map +0 -1
- package/dist/patterns/reduction/index.cjs +0 -21
- package/dist/patterns/reduction/index.cjs.map +0 -1
- package/dist/patterns/reduction/index.d.cts +0 -1
- package/dist/patterns/reduction/index.d.ts +0 -1
- package/dist/patterns/reduction/index.js +0 -3
- package/dist/patterns/reduction/index.js.map +0 -1
- package/dist/patterns/surface/index.cjs +0 -21
- package/dist/patterns/surface/index.cjs.map +0 -1
- package/dist/patterns/surface/index.d.cts +0 -1
- package/dist/patterns/surface/index.d.ts +0 -1
- package/dist/patterns/surface/index.js +0 -3
- package/dist/patterns/surface/index.js.map +0 -1
- package/dist/patterns/topology-view/index.cjs +0 -21
- package/dist/patterns/topology-view/index.cjs.map +0 -1
- package/dist/patterns/topology-view/index.d.cts +0 -1
- package/dist/patterns/topology-view/index.d.ts +0 -1
- package/dist/patterns/topology-view/index.js +0 -3
- package/dist/patterns/topology-view/index.js.map +0 -1
- package/dist/testing/index.cjs +0 -21
- package/dist/testing/index.cjs.map +0 -1
- package/dist/testing/index.d.cts +0 -1
- package/dist/testing/index.d.ts +0 -1
- package/dist/testing/index.js +0 -3
- package/dist/testing/index.js.map +0 -1
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { NodeInput } from '@graphrefly/pure-ts/extra';
|
|
2
|
+
import { k as QueueRoute, Q as QueueConfig, S as Severity, a as ErrorClassifier, P as PresetId, R as RootCause, i as Intervention, m as StrategyKey, p as TriagedItem, b as ExecuteOutput, H as HarnessExecutor, r as VerifyResult, I as IntakeItem } from '../../types-CJWIMJiZ.js';
|
|
3
|
+
export { D as DEFAULT_PRESET_ID, E as ErrorClass, c as ExecutePromptFn, d as ExecutionResult, e as HarnessJobPayload, f as HarnessLoopOptions, g as HarnessVerifier, h as IntakeSource, K as KnownIntakeSource, j as PrioritySignals, l as StrategyEntry, n as StrategyModelGraph, o as StrategySnapshot, T as TriagePromptFn, V as VerifyOutput, q as VerifyPromptFn, s as priorityScore, t as strategyModel } from '../../types-CJWIMJiZ.js';
|
|
4
|
+
import { Node } from '@graphrefly/pure-ts/core';
|
|
5
|
+
import { Graph } from '@graphrefly/pure-ts/graph';
|
|
6
|
+
import { TopicGraph } from '../messaging/index.js';
|
|
7
|
+
export { DEFAULT_DECAY_RATE } from '../../base/utils/index.js';
|
|
8
|
+
import '../../types-BB5Lw-pB.js';
|
|
9
|
+
import '../job-queue/index.js';
|
|
10
|
+
import '../../base/mutation/index.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Harness runtime defaults (roadmap §9.0).
|
|
14
|
+
*
|
|
15
|
+
* Split out from `types.ts` in Wave B Unit 15 G so the type file holds
|
|
16
|
+
* only type declarations and plug-in contracts. Runtime constants and
|
|
17
|
+
* helpers live here; the harness barrel (`index.ts`) re-exports both so
|
|
18
|
+
* external consumers see a single surface.
|
|
19
|
+
*
|
|
20
|
+
* @module
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/** Ordered queue route names for iteration. */
|
|
24
|
+
declare const QUEUE_NAMES: readonly QueueRoute[];
|
|
25
|
+
/** Default queue configurations. */
|
|
26
|
+
declare const DEFAULT_QUEUE_CONFIGS: Record<QueueRoute, QueueConfig>;
|
|
27
|
+
/** Default severity weights. */
|
|
28
|
+
declare const DEFAULT_SEVERITY_WEIGHTS: Record<Severity, number>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Canonical 3-axis composite-key factory: `${presetId}|${rootCause}→${intervention}`.
|
|
32
|
+
*
|
|
33
|
+
* **Phase 13.I axis extension (DS-13.I, 2026-05-01).** Pre-multi-agent
|
|
34
|
+
* callers without a preset registry pass {@link DEFAULT_PRESET_ID}
|
|
35
|
+
* (`"default"`) for the first arg. Pre-1.0 breaking signature change;
|
|
36
|
+
* persisted strategy-model snapshots from before this date are NOT portable.
|
|
37
|
+
*/
|
|
38
|
+
declare function strategyKey(presetId: PresetId, rootCause: RootCause, intervention: Intervention): StrategyKey;
|
|
39
|
+
/** Default error classifier: parse/config errors are self-correctable. */
|
|
40
|
+
declare const defaultErrorClassifier: ErrorClassifier;
|
|
41
|
+
/** Default TRIAGE prompt — LLM classifies intake items into root-cause + intervention + route + priority. */
|
|
42
|
+
declare const DEFAULT_TRIAGE_PROMPT = "You are a triage classifier for a reactive collaboration harness.\n\nGiven an intake item, classify it and output JSON:\n{\n \"rootCause\": \"composition\" | \"missing-fn\" | \"bad-docs\" | \"schema-gap\" | \"regression\" | \"unknown\",\n \"intervention\": \"template\" | \"catalog-fn\" | \"docs\" | \"wrapper\" | \"schema-change\" | \"investigate\",\n \"route\": \"auto-fix\" | \"needs-decision\" | \"investigation\" | \"backlog\",\n \"priority\": <number 0-100>,\n \"triageReasoning\": \"<one sentence>\"\n}\n\nStrategy model (past effectiveness):\n{{strategy}}\n\nIntake item:\n{{item}}";
|
|
43
|
+
/** Default EXECUTE prompt — LLM produces a fix given a triaged issue. */
|
|
44
|
+
declare const DEFAULT_EXECUTE_PROMPT = "You are an implementation agent.\n\nGiven a triaged issue with root cause and intervention type, produce a fix.\n\nIssue:\n{{item}}\n\nOutput JSON:\n{\n \"outcome\": \"success\" | \"failure\" | \"partial\",\n \"detail\": \"<description of what was done or what failed>\"\n}";
|
|
45
|
+
/** Default VERIFY prompt — LLM reviews an execution result against the original issue. */
|
|
46
|
+
declare const DEFAULT_VERIFY_PROMPT = "You are a QA reviewer.\n\nGiven an execution result, verify whether the fix is correct.\n\nExecution:\n{{execution}}\n\nOriginal issue:\n{{item}}\n\nOutput JSON:\n{\n \"verified\": true/false,\n \"findings\": [\"<finding1>\", ...],\n \"errorClass\": \"self-correctable\" | \"structural\" // only if verified=false\n}";
|
|
47
|
+
/**
|
|
48
|
+
* Collapse the `string | ((input: In) => string) | undefined` prompt-template
|
|
49
|
+
* pattern into a single `(input: In) => string`. A function `raw` is used as-is
|
|
50
|
+
* (the caller opted into full control). Otherwise `raw ?? fallbackTemplate`
|
|
51
|
+
* is fed through `substitute`, which does the placeholder replacement.
|
|
52
|
+
*
|
|
53
|
+
* Used by the three harness stages (TRIAGE / EXECUTE / VERIFY), which each
|
|
54
|
+
* accept a `string | function` config but use different placeholder schemes
|
|
55
|
+
* (`{{item}}`, `{{execution}}`, `{{strategy}}`). The helper absorbs only the
|
|
56
|
+
* branch logic; the per-stage placeholder substitution lives at the call site.
|
|
57
|
+
*/
|
|
58
|
+
declare function resolvePromptFn<In>(raw: string | ((input: In) => string) | undefined, fallbackTemplate: string, substitute: (template: string, input: In) => string): (input: In) => string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* actuatorExecutor — bridge a side-effecting actuator into the harness
|
|
62
|
+
* EXECUTE work fn.
|
|
63
|
+
*
|
|
64
|
+
* `refineExecutor` covers the artifact-typed case (refine a candidate
|
|
65
|
+
* `T` against an evaluator); `actuatorExecutor` covers the side-effecting
|
|
66
|
+
* case (write a catalog entry, mutate a template registry, edit a doc on
|
|
67
|
+
* disk). The user's `apply` callback owns the side effect; the executor
|
|
68
|
+
* wraps it in the per-claim lifecycle:
|
|
69
|
+
*
|
|
70
|
+
* 1. **One DATA per claim.** The producer captures the first DATA from
|
|
71
|
+
* the bridged `apply` result, emits a {@link HarnessJobPayload} with
|
|
72
|
+
* `execution` filled in, and completes. Subsequent inner DATAs are
|
|
73
|
+
* ignored.
|
|
74
|
+
* 2. **Cancel-on-teardown.** When the JobFlow pump unsubscribes (after
|
|
75
|
+
* capturing first DATA, or on graph teardown), the producer's cleanup
|
|
76
|
+
* fires `ac.abort()` which propagates into `apply`'s `signal`.
|
|
77
|
+
* 3. **Errors surfaced as failure payload.** A thrown / ERROR result is
|
|
78
|
+
* mapped via `onError` into a `failure`-outcome `ExecuteOutput` so the
|
|
79
|
+
* dispatch effect can route the item rather than silently dropping it.
|
|
80
|
+
*
|
|
81
|
+
* **What `apply` may return.** Anything `fromAny` accepts: `Promise<R>`,
|
|
82
|
+
* `Node<R>`, `AsyncIterable<R>`, `Iterable<R>`, or a synchronous `R`.
|
|
83
|
+
* `Promise<R>` is the typical shape (`writeFile`, `fetch`, `db.execute`).
|
|
84
|
+
*
|
|
85
|
+
* **Pairing with `evalVerifier`.** `ExecuteOutput.artifact` is set to
|
|
86
|
+
* the actuation record; an `evalVerifier<R>` whose `extractArtifact`
|
|
87
|
+
* returns the record (or the post-apply world state) closes EXECUTE →
|
|
88
|
+
* VERIFY with consistent typing end-to-end.
|
|
89
|
+
*
|
|
90
|
+
* @module
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* What an actuator's `apply` may return. Mirrors `NodeInput<R>` plus a
|
|
95
|
+
* raw `R` for synchronous side effects.
|
|
96
|
+
*/
|
|
97
|
+
type ActuatorResult<R> = NodeInput<R>;
|
|
98
|
+
/** Configuration for {@link actuatorExecutor}. */
|
|
99
|
+
interface ActuatorExecutorConfig<R> {
|
|
100
|
+
/**
|
|
101
|
+
* Apply the side effect for this triaged item. Receives the abort
|
|
102
|
+
* signal — actuators that own real I/O should thread `signal` into
|
|
103
|
+
* `fetch`, `fs.writeFile`, child-process kills, etc. so that the
|
|
104
|
+
* pump's teardown actually cancels in-flight work.
|
|
105
|
+
*
|
|
106
|
+
* The first DATA emitted by the bridged result wins; later DATAs are
|
|
107
|
+
* discarded. ERROR (or a synchronous throw) is mapped via `onError`.
|
|
108
|
+
*/
|
|
109
|
+
apply: (item: TriagedItem, opts: {
|
|
110
|
+
signal: AbortSignal;
|
|
111
|
+
}) => ActuatorResult<R>;
|
|
112
|
+
/**
|
|
113
|
+
* Optional gate — when provided and returning `false`, the actuator
|
|
114
|
+
* is skipped and the executor emits an `ExecuteOutput` with
|
|
115
|
+
* `outcome: "failure"`. Use to route interventions the actuator can't
|
|
116
|
+
* handle into the failure path.
|
|
117
|
+
*/
|
|
118
|
+
shouldApply?: (item: TriagedItem) => boolean;
|
|
119
|
+
/** Detail string for the skip path. Default: includes intervention name. */
|
|
120
|
+
skipDetail?: (item: TriagedItem) => string;
|
|
121
|
+
/**
|
|
122
|
+
* Map a successfully-applied actuation record into an `ExecuteOutput<R>`.
|
|
123
|
+
*/
|
|
124
|
+
toOutput?: (record: R, item: TriagedItem) => ExecuteOutput<R>;
|
|
125
|
+
/**
|
|
126
|
+
* Map a thrown / ERROR result into an `ExecuteOutput<R>`.
|
|
127
|
+
*/
|
|
128
|
+
onError?: (err: unknown, item: TriagedItem) => ExecuteOutput<R>;
|
|
129
|
+
/** Node name prefix for `describe()` introspection. */
|
|
130
|
+
name?: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Build a {@link HarnessExecutor} backed by a side-effecting actuator.
|
|
134
|
+
*
|
|
135
|
+
* @example File-system actuator that writes a catalog entry and emits the diff.
|
|
136
|
+
* ```ts
|
|
137
|
+
* const harness = harnessLoop("repair", {
|
|
138
|
+
* adapter,
|
|
139
|
+
* executor: actuatorExecutor<CatalogPatch>({
|
|
140
|
+
* async apply(item, { signal }) {
|
|
141
|
+
* const patch = patchFromItem(item);
|
|
142
|
+
* await fs.writeFile(patch.path, patch.contents, { signal });
|
|
143
|
+
* return patch;
|
|
144
|
+
* },
|
|
145
|
+
* shouldApply: (item) => item.intervention === "catalog-fn",
|
|
146
|
+
* }),
|
|
147
|
+
* verifier: evalVerifier<CatalogPatch>({ ... }),
|
|
148
|
+
* });
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
declare function actuatorExecutor<R>(config: ActuatorExecutorConfig<R>): HarnessExecutor<R>;
|
|
152
|
+
/**
|
|
153
|
+
* Apply callback shape consumed by {@link dispatchActuator}. Same shape as
|
|
154
|
+
* {@link ActuatorExecutorConfig.apply}.
|
|
155
|
+
*/
|
|
156
|
+
type ActuatorApplyFn<R> = (item: TriagedItem, opts: {
|
|
157
|
+
signal: AbortSignal;
|
|
158
|
+
}) => ActuatorResult<R>;
|
|
159
|
+
/** Configuration for {@link dispatchActuator}. */
|
|
160
|
+
interface DispatchActuatorConfig<R> {
|
|
161
|
+
/**
|
|
162
|
+
* Per-intervention apply callbacks. Keyed by `TriagedItem.intervention`.
|
|
163
|
+
* Items whose intervention is not in `routes` fall through to `default`
|
|
164
|
+
* (when set) or emit a skip-failure `ExecuteOutput`.
|
|
165
|
+
*/
|
|
166
|
+
routes: Readonly<Partial<Record<TriagedItem["intervention"], ActuatorApplyFn<R>>>>;
|
|
167
|
+
/** Fallback apply callback for items whose intervention is not in `routes`. */
|
|
168
|
+
default?: ActuatorApplyFn<R>;
|
|
169
|
+
/** Node name prefix for `describe()` introspection. */
|
|
170
|
+
name?: string;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Multi-intervention actuator — dispatches each `TriagedItem` to one of
|
|
174
|
+
* several `apply` callbacks based on `item.intervention`.
|
|
175
|
+
*
|
|
176
|
+
* Internally builds a single `actuatorExecutor` whose `apply` resolves the
|
|
177
|
+
* intervention → callback at call-time. Items with no matching route and no
|
|
178
|
+
* `default` emit a skip-failure with detail
|
|
179
|
+
* `"no route for intervention 'X'"`.
|
|
180
|
+
*/
|
|
181
|
+
declare function dispatchActuator<R>(config: DispatchActuatorConfig<R>): HarnessExecutor<R>;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* autoSolidify — promote successful VERIFY runs into a durable artifact
|
|
185
|
+
* (catalog entry, skill, template, doc edit, …).
|
|
186
|
+
*
|
|
187
|
+
* Closes the dogfood retrospective loop: when the harness's VERIFY
|
|
188
|
+
* stage reports `verified: true`, the validated intervention should
|
|
189
|
+
* become an authoring artifact the next loop run can rely on. This
|
|
190
|
+
* primitive is the generic substrate — pass a `write` callback that
|
|
191
|
+
* does the actual promotion (e.g. `overlay.upsertTemplate` for the
|
|
192
|
+
* dogfood catalog overlay; `fs.writeFile` for a doc edit; `ctx.skill`
|
|
193
|
+
* for a Hermes-style skill registry).
|
|
194
|
+
*
|
|
195
|
+
* @example Wire the catalog overlay as the solidify target.
|
|
196
|
+
* ```ts
|
|
197
|
+
* const solidified = autoSolidify({
|
|
198
|
+
* verifyResults: harness.verifyResults.latest,
|
|
199
|
+
* extract: (vr) => vr.execution.artifact ?? null,
|
|
200
|
+
* write: (entry, vr) => overlay.upsertFn(`learned-${vr.item.summary}`, entry),
|
|
201
|
+
* });
|
|
202
|
+
* solidified.subscribe(() => {}); // keep alive for log
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* **Why a node and not just an effect.** The returned `Node<R>` emits
|
|
206
|
+
* each promoted artifact, so callers can pipe solidifications through
|
|
207
|
+
* the standard reactive surface (`describe()`, `observe()`, replay
|
|
208
|
+
* buffers) instead of side-channel logging. An audit / dashboard that
|
|
209
|
+
* wants "what was learned this run?" subscribes to the returned node;
|
|
210
|
+
* the `write` callback owns the durable side effect.
|
|
211
|
+
*
|
|
212
|
+
* **Idempotency is the caller's responsibility.** The primitive
|
|
213
|
+
* promotes every `verified: true` wave that passes the predicate. If
|
|
214
|
+
* the harness re-verifies the same item (e.g. via reingestion), the
|
|
215
|
+
* `write` callback is invoked again. Wrap your write fn with a
|
|
216
|
+
* dedup-by-key guard if your target store would otherwise bloat. The
|
|
217
|
+
* inner `seen` set inside this factory is intentionally absent — the
|
|
218
|
+
* harness already retains via topic logs and the user may want
|
|
219
|
+
* re-promotion semantics that are domain-specific.
|
|
220
|
+
*
|
|
221
|
+
* @module
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Configuration for {@link autoSolidify}.
|
|
226
|
+
*
|
|
227
|
+
* `R` is the artifact type the upstream EXECUTE stage produced (and
|
|
228
|
+
* `evalVerifier` carries through `execution.artifact`). `T` is the
|
|
229
|
+
* promotion shape — what `write` consumes and what the returned node
|
|
230
|
+
* emits. Often `T = R`, but they diverge when the actuator's raw
|
|
231
|
+
* artifact needs a transform before storing (e.g. wrap a `CatalogPatch`
|
|
232
|
+
* into a `CatalogEntry` with effectiveness metadata).
|
|
233
|
+
*/
|
|
234
|
+
interface AutoSolidifyConfig<R, T = R> {
|
|
235
|
+
/** Reactive verify-result stream. Typically `harness.verifyResults.latest`. */
|
|
236
|
+
verifyResults: Node<VerifyResult<R> | null>;
|
|
237
|
+
/**
|
|
238
|
+
* Pull the value-to-promote out of a verified VerifyResult.
|
|
239
|
+
* Default: `(vr) => vr.execution.artifact as T | null`. Return `null`
|
|
240
|
+
* to skip a particular VerifyResult even when `verified: true` (e.g.
|
|
241
|
+
* an LLM-default executor produces no artifact and there's nothing to
|
|
242
|
+
* solidify).
|
|
243
|
+
*/
|
|
244
|
+
extract?: (vr: VerifyResult<R>) => T | null;
|
|
245
|
+
/**
|
|
246
|
+
* Optional gate beyond `verified === true`. When provided, the
|
|
247
|
+
* primitive only promotes when this returns `true`. Default: pass
|
|
248
|
+
* everything verified.
|
|
249
|
+
*
|
|
250
|
+
* Useful predicates:
|
|
251
|
+
* - `(vr) => vr.item.intervention === "catalog-fn"` — only catalog work.
|
|
252
|
+
* - `(vr) => (vr.findings ?? []).every(f => !/regression/i.test(f))` —
|
|
253
|
+
* skip even-passes that mention regressions.
|
|
254
|
+
*/
|
|
255
|
+
predicate?: (vr: VerifyResult<R>) => boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Promote — usually a side effect (write to overlay, fs, KG, etc.).
|
|
258
|
+
* Receives the extracted artifact AND the originating VerifyResult so
|
|
259
|
+
* the writer can use any context it needs (item summary, eval task
|
|
260
|
+
* IDs, finding text, …) when shaping the durable record.
|
|
261
|
+
*/
|
|
262
|
+
write: (artifact: T, vr: VerifyResult<R>) => void;
|
|
263
|
+
/** Node name for `describe()` introspection. Default `"auto-solidify"`. */
|
|
264
|
+
name?: string;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Build a `Node<T>` that subscribes to `verifyResults`, filters to
|
|
268
|
+
* verified passes that produced an extractable artifact, runs `write`,
|
|
269
|
+
* and emits the artifact. Use the returned node as a subscription
|
|
270
|
+
* point for audit / dashboard / log pipelines.
|
|
271
|
+
*
|
|
272
|
+
* **Terminal-on-error semantics.** A throw from `predicate`, `extract`,
|
|
273
|
+
* or `write` surfaces as `[[ERROR]]` on the returned node and
|
|
274
|
+
* **terminates** it — the upstream subscription tears down and no
|
|
275
|
+
* further DATA is emitted. This matches the spec's terminal-frame
|
|
276
|
+
* contract for ERROR. If you want the solidify node to stay live
|
|
277
|
+
* across user-callback throws, wrap your callbacks with try/catch
|
|
278
|
+
* internally and emit a sentinel value or no-op on failure. A future
|
|
279
|
+
* non-terminal `errors: Node<unknown>` companion may surface failures
|
|
280
|
+
* without terminating the success stream — flagged as a follow-up.
|
|
281
|
+
*
|
|
282
|
+
* @returns A `Node<T>` that emits one DATA per promoted artifact.
|
|
283
|
+
* Stays live as long as `verifyResults` is live AND no user callback
|
|
284
|
+
* has thrown.
|
|
285
|
+
*/
|
|
286
|
+
declare function autoSolidify<R, T = R>(config: AutoSolidifyConfig<R, T>): Node<T>;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Harness bridge factories (roadmap §9.0).
|
|
290
|
+
*
|
|
291
|
+
* Intake bridges, eval source wrapper, before/after comparison,
|
|
292
|
+
* affected-task filter, code-change bridge, and notification effect.
|
|
293
|
+
* All are compositions of existing primitives — no new abstractions.
|
|
294
|
+
*
|
|
295
|
+
* @module
|
|
296
|
+
*/
|
|
297
|
+
|
|
298
|
+
/** Options for {@link createIntakeBridge}. */
|
|
299
|
+
interface CreateIntakeBridgeOptions<T> {
|
|
300
|
+
/** Graph to register the effect node on (B.1 narrow-waist visibility). */
|
|
301
|
+
graph: Graph;
|
|
302
|
+
/** Reactive node emitting domain-specific data. */
|
|
303
|
+
source: Node<T>;
|
|
304
|
+
/** TopicGraph to publish IntakeItem entries to. */
|
|
305
|
+
intakeTopic: TopicGraph<IntakeItem>;
|
|
306
|
+
/** Converts source data into IntakeItem[]. Return empty array to skip. */
|
|
307
|
+
parser: (value: T) => IntakeItem[];
|
|
308
|
+
/** Effect-node name (default `"intake-bridge"`). */
|
|
309
|
+
name?: string;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Generic source→intake bridge factory.
|
|
313
|
+
*
|
|
314
|
+
* Watches a source node for new values, passes each through a user-supplied
|
|
315
|
+
* `parser` that produces zero or more `IntakeItem`s, and publishes them to
|
|
316
|
+
* the given intake topic.
|
|
317
|
+
*
|
|
318
|
+
* This is the generalized pattern behind {@link evalIntakeBridge}. Use it for
|
|
319
|
+
* CI results, test failures, Slack messages, monitoring alerts, or any domain
|
|
320
|
+
* where structured results should flow into a harness loop.
|
|
321
|
+
*
|
|
322
|
+
* The effect node is registered on the supplied `graph` so it appears in
|
|
323
|
+
* `describe()` and is owned by the graph's lifecycle.
|
|
324
|
+
*
|
|
325
|
+
* @returns The effect node (for lifecycle management).
|
|
326
|
+
*/
|
|
327
|
+
declare function createIntakeBridge<T>(opts: CreateIntakeBridgeOptions<T>): Node<unknown>;
|
|
328
|
+
/**
|
|
329
|
+
* Minimal eval result shape accepted by the bridge.
|
|
330
|
+
*
|
|
331
|
+
* TS eval runner uses `EvalRun` from `evals/lib/types.ts` which is a superset
|
|
332
|
+
* of this shape. The bridge only reads what it needs.
|
|
333
|
+
*/
|
|
334
|
+
interface EvalRunResult {
|
|
335
|
+
run_id: string;
|
|
336
|
+
model: string;
|
|
337
|
+
tasks: EvalTaskResult[];
|
|
338
|
+
}
|
|
339
|
+
interface EvalTaskResult {
|
|
340
|
+
task_id: string;
|
|
341
|
+
valid: boolean;
|
|
342
|
+
judge_scores?: EvalJudgeScore[];
|
|
343
|
+
}
|
|
344
|
+
interface EvalJudgeScore {
|
|
345
|
+
claim: string;
|
|
346
|
+
pass: boolean;
|
|
347
|
+
reasoning: string;
|
|
348
|
+
}
|
|
349
|
+
interface EvalIntakeBridgeOptions {
|
|
350
|
+
/** Graph to register the effect node on (B.1 narrow-waist visibility). */
|
|
351
|
+
graph: Graph;
|
|
352
|
+
/** Node emitting EvalRunResult (or EvalRunResult[]). */
|
|
353
|
+
source: Node<EvalRunResult | EvalRunResult[]>;
|
|
354
|
+
/** TopicGraph to publish IntakeItem entries to. */
|
|
355
|
+
intakeTopic: TopicGraph<IntakeItem>;
|
|
356
|
+
/** Effect-node name (default `"eval-intake-bridge"`). */
|
|
357
|
+
name?: string;
|
|
358
|
+
/** Minimum severity for eval-sourced items (default `"medium"`). */
|
|
359
|
+
defaultSeverity?: Severity;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Create an effect node that watches an eval results source and publishes
|
|
363
|
+
* per-criterion findings to an intake topic.
|
|
364
|
+
*
|
|
365
|
+
* Each failing judge criterion produces a separate IntakeItem — not one
|
|
366
|
+
* item per task. This gives the triage stage granular findings to classify.
|
|
367
|
+
*
|
|
368
|
+
* The effect node is registered on the supplied `graph` so it appears in
|
|
369
|
+
* `describe()` and is owned by the graph's lifecycle.
|
|
370
|
+
*
|
|
371
|
+
* @returns The effect node (for lifecycle management).
|
|
372
|
+
*/
|
|
373
|
+
declare function evalIntakeBridge(opts: EvalIntakeBridgeOptions): Node<unknown>;
|
|
374
|
+
/**
|
|
375
|
+
* Wrap any eval runner as a reactive producer node.
|
|
376
|
+
*
|
|
377
|
+
* When `trigger` emits, calls `runner()` and emits the result downstream.
|
|
378
|
+
* Uses `switchMap` + `fromAny` — the async boundary stays in the source
|
|
379
|
+
* layer (spec §5.10). A new trigger cancels any in-flight run.
|
|
380
|
+
*
|
|
381
|
+
* Pure transform via operator composition — does not construct an
|
|
382
|
+
* effect/derived node, so no `graph` parameter is needed.
|
|
383
|
+
*
|
|
384
|
+
* ```ts
|
|
385
|
+
* const trigger = state(0); // bump to trigger a new run
|
|
386
|
+
* const results = evalSource(trigger, () => runEvals(config));
|
|
387
|
+
* results.subscribe(msgs => { ... });
|
|
388
|
+
* trigger.emit(1); // fires the runner
|
|
389
|
+
* ```
|
|
390
|
+
*
|
|
391
|
+
* @param trigger - Any node; each new DATA emission fires the runner.
|
|
392
|
+
* @param runner - Returns an EvalRunResult (or promise of one).
|
|
393
|
+
*/
|
|
394
|
+
declare function evalSource<T extends EvalRunResult>(trigger: Node<unknown>, runner: () => T | Promise<T>): Node<T>;
|
|
395
|
+
/** Per-task delta produced by {@link beforeAfterCompare}. */
|
|
396
|
+
interface EvalTaskDelta {
|
|
397
|
+
taskId: string;
|
|
398
|
+
before: boolean;
|
|
399
|
+
after: boolean;
|
|
400
|
+
/** Score-level diff (after − before), undefined if no scores present. */
|
|
401
|
+
scoreDiff?: number;
|
|
402
|
+
}
|
|
403
|
+
/** Output of {@link beforeAfterCompare}. */
|
|
404
|
+
interface EvalDelta {
|
|
405
|
+
/** Task IDs that newly fail in `after` (were passing in `before`). */
|
|
406
|
+
newFailures: string[];
|
|
407
|
+
/** Task IDs that now pass in `after` (were failing in `before`). */
|
|
408
|
+
resolved: string[];
|
|
409
|
+
/** Full per-task breakdown. */
|
|
410
|
+
taskDeltas: EvalTaskDelta[];
|
|
411
|
+
/** True when net resolutions > net failures. */
|
|
412
|
+
overallImproved: boolean;
|
|
413
|
+
}
|
|
414
|
+
/** Options for {@link beforeAfterCompare}. */
|
|
415
|
+
interface BeforeAfterCompareOptions {
|
|
416
|
+
/** Graph to register the derived node on (B.1 narrow-waist visibility). */
|
|
417
|
+
graph: Graph;
|
|
418
|
+
/** Node holding the baseline eval result. */
|
|
419
|
+
before: Node<EvalRunResult>;
|
|
420
|
+
/** Node holding the new eval result. */
|
|
421
|
+
after: Node<EvalRunResult>;
|
|
422
|
+
/** Derived-node name (default `"eval-delta"`). */
|
|
423
|
+
name?: string;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Derived node that computes before/after eval deltas.
|
|
427
|
+
*
|
|
428
|
+
* Pure computation: no LLM, no async. Compares per-task validity and
|
|
429
|
+
* pass counts between two `EvalRunResult` snapshots.
|
|
430
|
+
*
|
|
431
|
+
* The derived node is registered on the supplied `graph` so it appears in
|
|
432
|
+
* `describe()` and is owned by the graph's lifecycle.
|
|
433
|
+
*/
|
|
434
|
+
declare function beforeAfterCompare(opts: BeforeAfterCompareOptions): Node<EvalDelta>;
|
|
435
|
+
/** Options for {@link affectedTaskFilter}. */
|
|
436
|
+
interface AffectedTaskFilterOptions {
|
|
437
|
+
/** Graph to register the derived node on (B.1 narrow-waist visibility). */
|
|
438
|
+
graph: Graph;
|
|
439
|
+
/** Node holding the current list of triaged items. */
|
|
440
|
+
issues: Node<readonly TriagedItem[]>;
|
|
441
|
+
/**
|
|
442
|
+
* Optional node (or plain array) of all known task IDs.
|
|
443
|
+
* When provided, output is the intersection.
|
|
444
|
+
*/
|
|
445
|
+
fullTaskSet?: Node<readonly string[]> | readonly string[];
|
|
446
|
+
/** Derived-node name (default `"affected-task-filter"`). */
|
|
447
|
+
name?: string;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Derived node that selects which eval task IDs to re-run.
|
|
451
|
+
*
|
|
452
|
+
* Collects `affectsEvalTasks` from all triaged items, deduplicates, then
|
|
453
|
+
* optionally intersects with `fullTaskSet`. Returns a sorted array of IDs.
|
|
454
|
+
*
|
|
455
|
+
* Use this to avoid re-running the full eval suite after each fix: only the
|
|
456
|
+
* tasks that the triaged items claim to affect are returned.
|
|
457
|
+
*
|
|
458
|
+
* The derived node is registered on the supplied `graph` so it appears in
|
|
459
|
+
* `describe()` and is owned by the graph's lifecycle.
|
|
460
|
+
*/
|
|
461
|
+
declare function affectedTaskFilter(opts: AffectedTaskFilterOptions): Node<string[]>;
|
|
462
|
+
/** A single lint error emitted by a CI tool. */
|
|
463
|
+
interface LintError {
|
|
464
|
+
file: string;
|
|
465
|
+
line: number;
|
|
466
|
+
col: number;
|
|
467
|
+
rule: string;
|
|
468
|
+
message: string;
|
|
469
|
+
}
|
|
470
|
+
/** A single test failure emitted by a test runner. */
|
|
471
|
+
interface TestFailure {
|
|
472
|
+
testId: string;
|
|
473
|
+
file: string;
|
|
474
|
+
message: string;
|
|
475
|
+
}
|
|
476
|
+
/** Structured code-change / CI event. */
|
|
477
|
+
interface CodeChange {
|
|
478
|
+
/** Files touched by the change. */
|
|
479
|
+
files: string[];
|
|
480
|
+
lintErrors?: LintError[];
|
|
481
|
+
testFailures?: TestFailure[];
|
|
482
|
+
}
|
|
483
|
+
/** Options for {@link codeChangeBridge}. */
|
|
484
|
+
interface CodeChangeBridgeOptions {
|
|
485
|
+
/** Graph to register the effect node on (B.1 narrow-waist visibility). */
|
|
486
|
+
graph: Graph;
|
|
487
|
+
/** Node emitting CodeChange events. */
|
|
488
|
+
source: Node<CodeChange>;
|
|
489
|
+
/** TopicGraph to publish IntakeItem entries to. */
|
|
490
|
+
intakeTopic: TopicGraph<IntakeItem>;
|
|
491
|
+
/** Optional custom parser (overrides default). */
|
|
492
|
+
parser?: (change: CodeChange) => IntakeItem[];
|
|
493
|
+
/** Effect-node name (default `"code-change-bridge"`). */
|
|
494
|
+
name?: string;
|
|
495
|
+
/** Default severity for generated IntakeItems (default `"high"`). */
|
|
496
|
+
defaultSeverity?: Severity;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Intake bridge for code-change / CI events.
|
|
500
|
+
*
|
|
501
|
+
* Watches a source node for `CodeChange` events and publishes one
|
|
502
|
+
* `IntakeItem` per lint error and per test failure to the intake topic.
|
|
503
|
+
* Pass a custom `parser` to override the default mapping.
|
|
504
|
+
*
|
|
505
|
+
* The effect node is registered on the supplied `graph` so it appears in
|
|
506
|
+
* `describe()` and is owned by the graph's lifecycle.
|
|
507
|
+
*/
|
|
508
|
+
declare function codeChangeBridge(opts: CodeChangeBridgeOptions): Node<unknown>;
|
|
509
|
+
/** Transport function for {@link notifyEffect}. Sync or async. */
|
|
510
|
+
type NotifyTransport<T> = (item: T) => void | Promise<void>;
|
|
511
|
+
/** Options for {@link notifyEffect}. */
|
|
512
|
+
interface NotifyEffectOptions<T> {
|
|
513
|
+
/** Graph to register the effect node on (B.1 narrow-waist visibility). */
|
|
514
|
+
graph: Graph;
|
|
515
|
+
/** TopicGraph whose latest entry triggers the notification. */
|
|
516
|
+
topic: TopicGraph<T>;
|
|
517
|
+
/** Called with each new item. May return a Promise. */
|
|
518
|
+
transport: NotifyTransport<T>;
|
|
519
|
+
/** Effect-node name (default `"notify-effect"`). */
|
|
520
|
+
name?: string;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Effect node that sends each new topic entry to an external channel.
|
|
524
|
+
*
|
|
525
|
+
* The `transport` function is called for every item published to `topic`.
|
|
526
|
+
* Async transports are bridged via `fromAny` (spec §5.10 compliant).
|
|
527
|
+
*
|
|
528
|
+
* Typical use: Slack webhook, GitHub PR comment, email notification, etc.
|
|
529
|
+
* The factory provides reactive wiring; the transport supplies domain logic.
|
|
530
|
+
*
|
|
531
|
+
* The effect node is registered on the supplied `graph` so it appears in
|
|
532
|
+
* `describe()` and is owned by the graph's lifecycle.
|
|
533
|
+
*
|
|
534
|
+
* ```ts
|
|
535
|
+
* notifyEffect({ graph, topic: alertQueue, transport: async (item) => {
|
|
536
|
+
* await fetch(SLACK_WEBHOOK, { method: 'POST', body: JSON.stringify({ text: item.summary }) });
|
|
537
|
+
* }});
|
|
538
|
+
* ```
|
|
539
|
+
*/
|
|
540
|
+
declare function notifyEffect<T>(opts: NotifyEffectOptions<T>): Node<unknown>;
|
|
541
|
+
|
|
542
|
+
export { type ActuatorApplyFn, type ActuatorExecutorConfig, type ActuatorResult, type AffectedTaskFilterOptions, type AutoSolidifyConfig, type BeforeAfterCompareOptions, type CodeChange, type CodeChangeBridgeOptions, type CreateIntakeBridgeOptions, DEFAULT_EXECUTE_PROMPT, DEFAULT_QUEUE_CONFIGS, DEFAULT_SEVERITY_WEIGHTS, DEFAULT_TRIAGE_PROMPT, DEFAULT_VERIFY_PROMPT, type DispatchActuatorConfig, ErrorClassifier, type EvalDelta, type EvalIntakeBridgeOptions, type EvalJudgeScore, type EvalRunResult, type EvalTaskDelta, type EvalTaskResult, ExecuteOutput, HarnessExecutor, IntakeItem, Intervention, type LintError, type NotifyEffectOptions, type NotifyTransport, PresetId, QUEUE_NAMES, QueueConfig, QueueRoute, RootCause, Severity, StrategyKey, type TestFailure, TriagedItem, VerifyResult, actuatorExecutor, affectedTaskFilter, autoSolidify, beforeAfterCompare, codeChangeBridge, createIntakeBridge, defaultErrorClassifier, dispatchActuator, evalIntakeBridge, evalSource, notifyEffect, resolvePromptFn, strategyKey };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {
|
|
2
|
+
actuatorExecutor,
|
|
3
|
+
affectedTaskFilter,
|
|
4
|
+
autoSolidify,
|
|
5
|
+
beforeAfterCompare,
|
|
6
|
+
codeChangeBridge,
|
|
7
|
+
createIntakeBridge,
|
|
8
|
+
dispatchActuator,
|
|
9
|
+
evalIntakeBridge,
|
|
10
|
+
evalSource,
|
|
11
|
+
notifyEffect
|
|
12
|
+
} from "../../chunk-PZWISPIQ.js";
|
|
13
|
+
import {
|
|
14
|
+
DEFAULT_EXECUTE_PROMPT,
|
|
15
|
+
DEFAULT_PRESET_ID,
|
|
16
|
+
DEFAULT_QUEUE_CONFIGS,
|
|
17
|
+
DEFAULT_SEVERITY_WEIGHTS,
|
|
18
|
+
DEFAULT_TRIAGE_PROMPT,
|
|
19
|
+
DEFAULT_VERIFY_PROMPT,
|
|
20
|
+
QUEUE_NAMES,
|
|
21
|
+
defaultErrorClassifier,
|
|
22
|
+
priorityScore,
|
|
23
|
+
resolvePromptFn,
|
|
24
|
+
strategyKey,
|
|
25
|
+
strategyModel
|
|
26
|
+
} from "../../chunk-OIWU3NYV.js";
|
|
27
|
+
import {
|
|
28
|
+
DEFAULT_DECAY_RATE
|
|
29
|
+
} from "../../chunk-QMBYUVRL.js";
|
|
30
|
+
import "../../chunk-AZDQPQ3V.js";
|
|
31
|
+
export {
|
|
32
|
+
DEFAULT_DECAY_RATE,
|
|
33
|
+
DEFAULT_EXECUTE_PROMPT,
|
|
34
|
+
DEFAULT_PRESET_ID,
|
|
35
|
+
DEFAULT_QUEUE_CONFIGS,
|
|
36
|
+
DEFAULT_SEVERITY_WEIGHTS,
|
|
37
|
+
DEFAULT_TRIAGE_PROMPT,
|
|
38
|
+
DEFAULT_VERIFY_PROMPT,
|
|
39
|
+
QUEUE_NAMES,
|
|
40
|
+
actuatorExecutor,
|
|
41
|
+
affectedTaskFilter,
|
|
42
|
+
autoSolidify,
|
|
43
|
+
beforeAfterCompare,
|
|
44
|
+
codeChangeBridge,
|
|
45
|
+
createIntakeBridge,
|
|
46
|
+
defaultErrorClassifier,
|
|
47
|
+
dispatchActuator,
|
|
48
|
+
evalIntakeBridge,
|
|
49
|
+
evalSource,
|
|
50
|
+
notifyEffect,
|
|
51
|
+
priorityScore,
|
|
52
|
+
resolvePromptFn,
|
|
53
|
+
strategyKey,
|
|
54
|
+
strategyModel
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|