@graphrefly/graphrefly 0.44.0 → 0.46.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 +22 -19
- 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 +811 -0
- package/dist/base/composition/index.cjs.map +1 -0
- package/dist/base/composition/index.d.cts +469 -0
- package/dist/base/composition/index.d.ts +469 -0
- package/dist/base/composition/index.js +40 -0
- package/dist/base/composition/index.js.map +1 -0
- package/dist/base/index.cjs +6336 -0
- package/dist/base/index.cjs.map +1 -0
- package/dist/base/index.d.cts +22 -0
- package/dist/base/index.d.ts +22 -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/{extra/render/index.d.ts → base/render/index.d.cts} +75 -31
- package/dist/{extra/render/index.d.cts → base/render/index.d.ts} +75 -31
- 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/{extra/sources.d.ts → base/sources/index.d.cts} +74 -301
- package/dist/{extra/sources.d.cts → base/sources/index.d.ts} +74 -301
- 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/{extra/node.d.ts → base/sources/node/index.d.cts} +35 -37
- package/dist/{extra/node.d.cts → base/sources/node/index.d.ts} +35 -37
- 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-BglDkMdX.d.cts → cascading-CSSbKGrJ.d.ts} +3 -3
- package/dist/{cascading-MFgxu7Yo.d.ts → cascading-baGkiihI.d.cts} +3 -3
- 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-3QZY5BI7.js +92 -0
- package/dist/chunk-3QZY5BI7.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-5THCXDWY.js +725 -0
- package/dist/chunk-5THCXDWY.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-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-FR6RGA3B.js +1277 -0
- package/dist/chunk-FR6RGA3B.js.map +1 -0
- package/dist/chunk-FW23JYNQ.js +454 -0
- package/dist/chunk-FW23JYNQ.js.map +1 -0
- package/dist/chunk-GBCENOLN.js +1575 -0
- package/dist/chunk-GBCENOLN.js.map +1 -0
- package/dist/chunk-HL7HUJIX.js +1 -0
- package/dist/chunk-HL7HUJIX.js.map +1 -0
- package/dist/chunk-HULCUY35.js +2508 -0
- package/dist/chunk-HULCUY35.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-KIIXR252.js +211 -0
- package/dist/chunk-KIIXR252.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-LBAJK24K.js +1071 -0
- package/dist/chunk-LBAJK24K.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-OO5BM6CJ.js +1153 -0
- package/dist/chunk-OO5BM6CJ.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-RGL53X5G.js +574 -0
- package/dist/chunk-RGL53X5G.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-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-W2BOPXTI.js +1 -0
- package/dist/chunk-W2BOPXTI.js.map +1 -0
- package/dist/chunk-WKSWLSCX.js +207 -0
- package/dist/chunk-WKSWLSCX.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-Z6EGP5D7.js +92 -0
- package/dist/chunk-Z6EGP5D7.js.map +1 -0
- package/dist/compat/index.cjs +3100 -9
- package/dist/compat/index.cjs.map +1 -0
- package/dist/compat/index.d.cts +112 -18
- package/dist/compat/index.d.ts +112 -18
- package/dist/compat/index.js +176 -1
- package/dist/compat/index.js.map +1 -0
- package/dist/compat/jotai/index.cjs +149 -1
- package/dist/compat/jotai/index.cjs.map +1 -0
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/jotai/index.js +8 -1
- package/dist/compat/jotai/index.js.map +1 -0
- package/dist/compat/nanostores/index.cjs +205 -1
- package/dist/compat/nanostores/index.cjs.map +1 -0
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nanostores/index.js +22 -1
- package/dist/compat/nanostores/index.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +2241 -9
- package/dist/compat/nestjs/index.cjs.map +1 -0
- package/dist/compat/nestjs/index.d.cts +7 -10
- package/dist/compat/nestjs/index.d.ts +7 -10
- package/dist/compat/nestjs/index.js +78 -1
- package/dist/compat/nestjs/index.js.map +1 -0
- package/dist/compat/react/index.cjs +114 -1
- package/dist/compat/react/index.cjs.map +1 -0
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/react/index.js +12 -1
- package/dist/compat/react/index.js.map +1 -0
- package/dist/compat/solid/index.cjs +101 -1
- package/dist/compat/solid/index.cjs.map +1 -0
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/solid/index.js +12 -1
- package/dist/compat/solid/index.js.map +1 -0
- package/dist/compat/svelte/index.cjs +104 -1
- package/dist/compat/svelte/index.cjs.map +1 -0
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/svelte/index.js +12 -1
- package/dist/compat/svelte/index.js.map +1 -0
- package/dist/compat/vue/index.cjs +119 -1
- package/dist/compat/vue/index.cjs.map +1 -0
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/vue/index.js +12 -1
- package/dist/compat/vue/index.js.map +1 -0
- package/dist/compat/zustand/index.cjs +69 -3
- package/dist/compat/zustand/index.cjs.map +1 -0
- package/dist/compat/zustand/index.d.cts +2 -6
- package/dist/compat/zustand/index.d.ts +2 -6
- package/dist/compat/zustand/index.js +8 -1
- package/dist/compat/zustand/index.js.map +1 -0
- 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-74oxi34l.d.cts → fallback-Bx46zqky.d.cts} +3 -10
- package/dist/{fallback-DUyyBTBK.d.ts → fallback-pIWW8A2d.d.ts} +3 -10
- package/dist/guarded-execution-BcdtxeBk.d.ts +207 -0
- package/dist/guarded-execution-C-3hnP6A.d.cts +207 -0
- package/dist/{index-CBGUK09R.d.ts → index-5SU_O78r.d.cts} +5 -5
- package/dist/{index-BmZXHqkE.d.ts → index-B6pxYJzO.d.cts} +1 -1
- package/dist/{index-hcDJ8PSI.d.cts → index-B6pxYJzO.d.ts} +1 -1
- package/dist/{index-C5stwKcw.d.cts → index-BFsng6v1.d.cts} +1 -1
- package/dist/{index-CdAlHFEt.d.ts → index-BFsng6v1.d.ts} +1 -1
- package/dist/{index-_6ODbuOu.d.cts → index-Bg-LwEt-.d.cts} +1 -1
- package/dist/{index-CviRnE4K.d.ts → index-Bg-LwEt-.d.ts} +1 -1
- package/dist/{index-CBBLl_rc.d.ts → index-Brp888t0.d.cts} +1 -1
- package/dist/{index-BQSKmbuG.d.cts → index-Brp888t0.d.ts} +1 -1
- package/dist/{index-sqkqlb1p.d.ts → index-CDfk6jHN.d.cts} +1 -1
- package/dist/{index-ZVQhLa2i.d.cts → index-CDfk6jHN.d.ts} +1 -1
- package/dist/{index-Climxqsu.d.cts → index-CEXCtYYJ.d.ts} +5 -5
- package/dist/index-DLAxYaN5.d.cts +169 -0
- package/dist/index-DLAxYaN5.d.ts +169 -0
- package/dist/{index-CK29LV56.d.cts → index-DeWbQzMe.d.cts} +1 -1
- package/dist/{index-CPQlGA29.d.ts → index-DeWbQzMe.d.ts} +1 -1
- package/dist/{index-BrPrLl4e.d.cts → index-dX9IzPqj.d.cts} +1 -1
- package/dist/{index-Dgl1HpPn.d.ts → index-dX9IzPqj.d.ts} +1 -1
- package/dist/index.cjs +25934 -191
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +58 -94
- package/dist/index.d.ts +58 -94
- package/dist/index.js +852 -1
- package/dist/index.js.map +1 -0
- 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-DWjNfLvC.d.ts → observable-BXQoW1P-.d.cts} +1 -1
- package/dist/{observable-e3eiPPFy.d.cts → observable-BXQoW1P-.d.ts} +1 -1
- package/dist/{pipeline-graph-Sgj0gCwn.d.ts → pipeline-graph-Ce47CB6Y.d.cts} +13 -10
- package/dist/{pipeline-graph-CIKhynsF.d.cts → pipeline-graph-DXCwY9vG.d.ts} +13 -10
- 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-DOTs9P3X.d.ts → reactive-layout-fswlBUvX.d.cts} +19 -7
- package/dist/{reactive-layout-DgctbqZo.d.cts → reactive-layout-fswlBUvX.d.ts} +19 -7
- 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-CWFysE9E.d.ts → types-BB5Lw-pB.d.cts} +3 -3
- package/dist/{types-C0_yquda.d.cts → types-BB5Lw-pB.d.ts} +3 -3
- 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/{patterns → utils}/ai/browser.d.cts +7 -5
- package/dist/{patterns → utils}/ai/browser.d.ts +7 -5
- 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/{index-CR8QpwX8.d.ts → utils/ai/index.d.cts} +73 -976
- package/dist/{index-UPSiS-X7.d.cts → utils/ai/index.d.ts} +73 -976
- 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/{patterns → utils}/ai/node.d.cts +5 -7
- package/dist/{patterns → utils}/ai/node.d.ts +5 -7
- 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/{index-CeFiHtAg.d.ts → utils/cqrs/index.d.cts} +7 -37
- package/dist/{index-B-_tFaqV.d.cts → utils/cqrs/index.d.ts} +7 -37
- 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/{index-B8YnZpIR.d.ts → utils/demo-shell/index.d.cts} +4 -16
- package/dist/{index-Cwv0KWcU.d.cts → utils/demo-shell/index.d.ts} +4 -16
- 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/{index-CzLVrjxn.d.ts → utils/domain-templates/index.d.cts} +3 -20
- package/dist/{index-BaQaY_IQ.d.cts → utils/domain-templates/index.d.ts} +3 -20
- 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/{index-CMh5Rz1y.d.ts → utils/graphspec/index.d.cts} +106 -42
- package/dist/{index-CS0LTlB8.d.cts → utils/graphspec/index.d.ts} +106 -42
- 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 +17609 -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/{index-DisjX8a-.d.ts → utils/job-queue/index.d.cts} +5 -26
- package/dist/{index-DV_1YuVk.d.cts → utils/job-queue/index.d.ts} +5 -26
- 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 +1451 -0
- package/dist/utils/memory/index.cjs.map +1 -0
- package/dist/{index-CZ3r5Rxp.d.ts → utils/memory/index.d.cts} +242 -34
- package/dist/{index-B17QddL1.d.cts → utils/memory/index.d.ts} +242 -34
- 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/{index-p09KSrTN.d.ts → utils/process/index.d.cts} +97 -44
- package/dist/{index-CasX6Pfq.d.cts → utils/process/index.d.ts} +97 -44
- 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/{index-B5S8ULbU.d.ts → utils/reactive-layout/index.d.cts} +58 -81
- package/dist/{index-Dc4AYqrJ.d.cts → utils/reactive-layout/index.d.ts} +58 -81
- 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/{index-Byu-OpX_.d.ts → utils/reduction/index.d.cts} +6 -17
- package/dist/{index-tRCxuAXF.d.cts → utils/reduction/index.d.ts} +6 -17
- 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/{index-CYq8vAyV.d.ts → utils/surface/index.d.cts} +7 -58
- package/dist/{index-CSOmP7xT.d.cts → utils/surface/index.d.ts} +7 -58
- 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 +664 -584
- package/dist/backoff-HPZMEZNF.js +0 -1
- package/dist/chunk-2T7U5EU6.js +0 -1
- package/dist/chunk-3G5U5QNE.js +0 -5
- package/dist/chunk-4VVTGLXJ.js +0 -1
- package/dist/chunk-5M4CCMMD.js +0 -45
- package/dist/chunk-5QDBSZBV.js +0 -1
- package/dist/chunk-5XJ6B66J.js +0 -1
- package/dist/chunk-6QZNQS5B.js +0 -1
- package/dist/chunk-6X7AFUJV.js +0 -9
- package/dist/chunk-7K6PWTDQ.js +0 -1
- package/dist/chunk-7LIAPXJB.js +0 -1
- package/dist/chunk-7WPU3UHQ.js +0 -1
- package/dist/chunk-A5WCQ5NO.js +0 -1
- package/dist/chunk-APPIWSGD.js +0 -84
- package/dist/chunk-BEZWM2SY.js +0 -1
- package/dist/chunk-C72GO4IZ.js +0 -1
- package/dist/chunk-CB676TKJ.js +0 -1
- package/dist/chunk-CE6TI2TL.js +0 -1
- package/dist/chunk-CE72X3WO.js +0 -1
- package/dist/chunk-CK2E7BTU.js +0 -1
- package/dist/chunk-CLVB32RD.js +0 -1
- package/dist/chunk-CRVT7D2P.js +0 -1
- package/dist/chunk-D5RFJOZ2.js +0 -1
- package/dist/chunk-D7GPHKFH.js +0 -1
- package/dist/chunk-DHRX7JX4.js +0 -2
- package/dist/chunk-ESMPEKEV.js +0 -1
- package/dist/chunk-F672GV32.js +0 -1
- package/dist/chunk-FZMYDOWV.js +0 -1
- package/dist/chunk-GHBWHMRZ.js +0 -1
- package/dist/chunk-GLERH466.js +0 -1
- package/dist/chunk-GPW2V3RE.js +0 -1
- package/dist/chunk-HIDYF36O.js +0 -1
- package/dist/chunk-HITNVN6B.js +0 -3
- package/dist/chunk-HY4DJBA7.js +0 -5
- package/dist/chunk-KZIEYVXN.js +0 -1
- package/dist/chunk-L6NSJVJZ.js +0 -1
- package/dist/chunk-N4MQX6JU.js +0 -18
- package/dist/chunk-N7FHEL4D.js +0 -1
- package/dist/chunk-NTEURFZH.js +0 -1
- package/dist/chunk-OIVP6KFV.js +0 -1
- package/dist/chunk-OPHBU3LG.js +0 -1
- package/dist/chunk-OYQOZP2F.js +0 -5
- package/dist/chunk-PTZK576G.js +0 -1
- package/dist/chunk-QYADASLV.js +0 -1
- package/dist/chunk-ST7UXLWR.js +0 -1
- package/dist/chunk-SVY7VUYU.js +0 -1
- package/dist/chunk-TK3NWWD4.js +0 -1
- package/dist/chunk-TSOYJ743.js +0 -1
- package/dist/chunk-UNGSTR4X.js +0 -61
- package/dist/chunk-VIMF6LGM.js +0 -1
- package/dist/chunk-VJLMUKOI.js +0 -1
- package/dist/chunk-VN6RDSK2.js +0 -1
- package/dist/chunk-VV4N5P64.js +0 -1
- package/dist/chunk-W3I423PS.js +0 -1
- package/dist/chunk-WJR24TAG.js +0 -1
- package/dist/chunk-XTGKMHSW.js +0 -1
- package/dist/chunk-YBB7ZGTY.js +0 -1
- package/dist/chunk-Z4NPUARF.js +0 -1
- package/dist/chunk-ZGNQRPDT.js +0 -1
- package/dist/chunk-ZKPSFFKU.js +0 -1
- package/dist/chunk-ZLV5SQSX.js +0 -1
- package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
- package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
- package/dist/core/index.cjs +0 -1
- package/dist/core/index.d.cts +0 -3
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +0 -1
- package/dist/decay-BvOWTZ00.d.ts +0 -112
- package/dist/decay-CFlLvXUT.d.cts +0 -112
- package/dist/extra/browser.cjs +0 -1
- package/dist/extra/browser.d.cts +0 -4
- package/dist/extra/browser.d.ts +0 -4
- package/dist/extra/browser.js +0 -1
- package/dist/extra/index.cjs +0 -20
- package/dist/extra/index.d.cts +0 -17
- package/dist/extra/index.d.ts +0 -17
- package/dist/extra/index.js +0 -1
- package/dist/extra/node.cjs +0 -2
- package/dist/extra/node.js +0 -2
- package/dist/extra/operators.cjs +0 -1
- package/dist/extra/operators.d.cts +0 -958
- package/dist/extra/operators.d.ts +0 -958
- package/dist/extra/operators.js +0 -1
- package/dist/extra/reactive.cjs +0 -1
- package/dist/extra/reactive.d.cts +0 -353
- package/dist/extra/reactive.d.ts +0 -353
- package/dist/extra/reactive.js +0 -1
- package/dist/extra/render/index.cjs +0 -5
- package/dist/extra/render/index.js +0 -1
- package/dist/extra/sources.cjs +0 -3
- package/dist/extra/sources.js +0 -1
- package/dist/extra/storage-browser.cjs +0 -1
- package/dist/extra/storage-browser.d.cts +0 -37
- package/dist/extra/storage-browser.d.ts +0 -37
- package/dist/extra/storage-browser.js +0 -1
- package/dist/extra/storage-core.cjs +0 -1
- package/dist/extra/storage-core.d.cts +0 -28
- package/dist/extra/storage-core.d.ts +0 -28
- package/dist/extra/storage-core.js +0 -1
- package/dist/extra/storage-node.cjs +0 -1
- package/dist/extra/storage-node.d.cts +0 -2
- package/dist/extra/storage-node.d.ts +0 -2
- package/dist/extra/storage-node.js +0 -0
- package/dist/extra/storage-tiers-browser.cjs +0 -1
- package/dist/extra/storage-tiers-browser.d.cts +0 -120
- package/dist/extra/storage-tiers-browser.d.ts +0 -120
- package/dist/extra/storage-tiers-browser.js +0 -1
- package/dist/extra/storage-tiers-node.cjs +0 -1
- package/dist/extra/storage-tiers-node.d.cts +0 -210
- package/dist/extra/storage-tiers-node.d.ts +0 -210
- package/dist/extra/storage-tiers-node.js +0 -1
- package/dist/extra/storage-tiers.cjs +0 -1
- package/dist/extra/storage-tiers.d.cts +0 -412
- package/dist/extra/storage-tiers.d.ts +0 -412
- package/dist/extra/storage-tiers.js +0 -1
- package/dist/graph/index.cjs +0 -7
- package/dist/graph/index.d.cts +0 -7
- package/dist/graph/index.d.ts +0 -7
- package/dist/graph/index.js +0 -1
- package/dist/graph-CWvEUQAq.d.cts +0 -1861
- package/dist/graph-D9LFnda9.d.ts +0 -1861
- package/dist/index-5k1T6jl0.d.cts +0 -121
- package/dist/index-9770hRuQ.d.cts +0 -779
- package/dist/index-B1F8Enjf.d.ts +0 -704
- package/dist/index-BHskSB8v.d.ts +0 -3413
- package/dist/index-BIYAkbAi.d.cts +0 -26
- package/dist/index-BoJ5JHxI.d.ts +0 -557
- package/dist/index-BocU7pqs.d.ts +0 -779
- package/dist/index-BxNs2HB9.d.cts +0 -1858
- package/dist/index-C1T3d7V-.d.cts +0 -704
- package/dist/index-C5ri2Axc.d.cts +0 -301
- package/dist/index-C9l6OEBL.d.ts +0 -26
- package/dist/index-CC-AvFTy.d.cts +0 -557
- package/dist/index-CJF1URuX.d.ts +0 -121
- package/dist/index-CdTelp1M.d.ts +0 -202
- package/dist/index-Cj3WohTd.d.cts +0 -202
- package/dist/index-Co7uli2l.d.cts +0 -3413
- package/dist/index-D0aciIex.d.cts +0 -209
- package/dist/index-DHen9Klo.d.ts +0 -1858
- package/dist/index-Yq60JP3s.d.ts +0 -209
- package/dist/index-nozs3fFC.d.ts +0 -301
- package/dist/node-kK3CvTrR.d.cts +0 -1347
- package/dist/node-kK3CvTrR.d.ts +0 -1347
- package/dist/patterns/ai/browser.cjs +0 -8
- package/dist/patterns/ai/browser.js +0 -3
- package/dist/patterns/ai/index.cjs +0 -74
- package/dist/patterns/ai/index.d.cts +0 -20
- package/dist/patterns/ai/index.d.ts +0 -20
- package/dist/patterns/ai/index.js +0 -1
- package/dist/patterns/ai/node.cjs +0 -1
- package/dist/patterns/ai/node.js +0 -1
- package/dist/patterns/cqrs/index.cjs +0 -3
- package/dist/patterns/cqrs/index.d.cts +0 -8
- package/dist/patterns/cqrs/index.d.ts +0 -8
- package/dist/patterns/cqrs/index.js +0 -1
- package/dist/patterns/demo-shell/index.cjs +0 -5
- package/dist/patterns/demo-shell/index.d.cts +0 -7
- package/dist/patterns/demo-shell/index.d.ts +0 -7
- package/dist/patterns/demo-shell/index.js +0 -1
- package/dist/patterns/domain-templates/index.cjs +0 -3
- package/dist/patterns/domain-templates/index.d.cts +0 -6
- package/dist/patterns/domain-templates/index.d.ts +0 -6
- package/dist/patterns/domain-templates/index.js +0 -1
- package/dist/patterns/graphspec/index.cjs +0 -86
- package/dist/patterns/graphspec/index.d.cts +0 -8
- package/dist/patterns/graphspec/index.d.ts +0 -8
- package/dist/patterns/graphspec/index.js +0 -1
- package/dist/patterns/harness/index.cjs +0 -48
- package/dist/patterns/harness/index.d.cts +0 -13
- package/dist/patterns/harness/index.d.ts +0 -13
- package/dist/patterns/harness/index.js +0 -1
- package/dist/patterns/inspect/index.cjs +0 -3
- package/dist/patterns/inspect/index.d.cts +0 -9
- package/dist/patterns/inspect/index.d.ts +0 -9
- package/dist/patterns/inspect/index.js +0 -1
- package/dist/patterns/job-queue/index.cjs +0 -3
- package/dist/patterns/job-queue/index.d.cts +0 -9
- package/dist/patterns/job-queue/index.d.ts +0 -9
- package/dist/patterns/job-queue/index.js +0 -1
- package/dist/patterns/memory/index.cjs +0 -3
- package/dist/patterns/memory/index.d.cts +0 -8
- package/dist/patterns/memory/index.d.ts +0 -8
- package/dist/patterns/memory/index.js +0 -1
- package/dist/patterns/messaging/index.cjs +0 -3
- package/dist/patterns/messaging/index.d.cts +0 -7
- package/dist/patterns/messaging/index.d.ts +0 -7
- package/dist/patterns/messaging/index.js +0 -1
- package/dist/patterns/orchestration/index.cjs +0 -3
- package/dist/patterns/orchestration/index.d.cts +0 -8
- package/dist/patterns/orchestration/index.d.ts +0 -8
- package/dist/patterns/orchestration/index.js +0 -1
- package/dist/patterns/process/index.cjs +0 -3
- package/dist/patterns/process/index.d.cts +0 -10
- package/dist/patterns/process/index.d.ts +0 -10
- package/dist/patterns/process/index.js +0 -1
- package/dist/patterns/reactive-layout/index.cjs +0 -4
- package/dist/patterns/reactive-layout/index.d.cts +0 -7
- package/dist/patterns/reactive-layout/index.d.ts +0 -7
- package/dist/patterns/reactive-layout/index.js +0 -1
- package/dist/patterns/reduction/index.cjs +0 -3
- package/dist/patterns/reduction/index.d.cts +0 -6
- package/dist/patterns/reduction/index.d.ts +0 -6
- package/dist/patterns/reduction/index.js +0 -1
- package/dist/patterns/surface/index.cjs +0 -13
- package/dist/patterns/surface/index.d.cts +0 -9
- package/dist/patterns/surface/index.d.ts +0 -9
- package/dist/patterns/surface/index.js +0 -1
- package/dist/reactive-log-BKALbfal.d.ts +0 -223
- package/dist/reactive-log-DIGdYqQ6.d.cts +0 -223
- package/dist/reactive-map-CEFGp8TK.d.cts +0 -296
- package/dist/reactive-map-DS_SIAxv.d.ts +0 -296
- package/dist/resilience-6LYQJAC5.js +0 -1
- package/dist/sugar-DQjFmVqb.d.cts +0 -399
- package/dist/sugar-fhLIE7TT.d.ts +0 -399
- package/dist/topology-tree-Bcz27hpF.d.cts +0 -25
- package/dist/topology-tree-xvaD0fOX.d.ts +0 -25
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import { NodeInput } from '
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { c as
|
|
1
|
+
import { i as TokenUsage, L as LLMAdapter, g as PricingFn, a as ChatMessage, b as LLMInvokeOptions, k as ToolDefinition, c as LLMResponse, S as StreamDelta } from '../../types-BB5Lw-pB.js';
|
|
2
|
+
export { C as CapabilitiesRegistry, M as ModelCapabilities, d as ModelFeatures, e as ModelLimits, f as ModelPricing, P as PriceBreakdown, h as PricingRegistry, R as Rate, T as TieredRate, j as ToolCall, l as composePricing, m as computePrice, n as createCapabilitiesRegistry, o as createPricingRegistry, p as pricingFor, r as registryPricing, z as zeroPrice } from '../../types-BB5Lw-pB.js';
|
|
3
|
+
import { C as CascadeExhaustionReport } from '../../cascading-CSSbKGrJ.js';
|
|
4
|
+
export { A as AdapterProvider, a as AdapterTier, b as AllTiersExhaustedError, c as CascadingLlmAdapterOptions, d as CreateAdapterOptions, O as OpenAICompatAdapterOptions, e as OpenAICompatPreset, f as OpenAISdkLike, g as cascadingLlmAdapter, h as createAdapter, o as openAICompatAdapter, t as tier } from '../../cascading-CSSbKGrJ.js';
|
|
5
|
+
import { Node, Actor } from '@graphrefly/pure-ts/core';
|
|
6
|
+
import { ReactiveLogBundle, NodeInput } from '@graphrefly/pure-ts/extra';
|
|
7
|
+
import { a as CircuitBreakerOptions, C as CircuitBreaker } from '../../breaker-C9skL3d8.js';
|
|
8
|
+
export { b as CircuitOpenError } from '../../breaker-C9skL3d8.js';
|
|
9
|
+
import { R as RateLimitSignal, A as AdaptiveRateLimiterBundle } from '../../adaptive-rate-limiter-Dch_xYIi.js';
|
|
10
|
+
import { W as WithReplayCacheOptions } from '../../fallback-pIWW8A2d.js';
|
|
11
|
+
export { F as FallbackAdapterOptions, a as FallbackFixture, b as FallbackMissError, c as FallbackMissPolicy, R as ReplayCacheKeyContext, d as ReplayCacheMissError, e as ReplayCacheMode, f as fallbackAdapter, w as withReplayCache } from '../../fallback-pIWW8A2d.js';
|
|
12
|
+
import { E as Extraction } from '../../distill-De6Rnn15.js';
|
|
13
|
+
import { Graph } from '@graphrefly/pure-ts/graph';
|
|
14
|
+
import { TopicGraph } from '../messaging/index.js';
|
|
15
|
+
import { G as GateController, c as GateOptions } from '../../pipeline-graph-DXCwY9vG.js';
|
|
16
|
+
export { C as ChatStreamGraph, a as ChatStreamOptions, M as MemoryRetrievalGraph, b as MemoryRetrievalOptions, c as MemoryTier, d as MemoryTiersBundle, e as MemoryTiersOptions, f as MemoryWithKGGraph, g as MemoryWithKGOptions, h as MemoryWithTiersGraph, i as MemoryWithTiersOptions, j as MemoryWithVectorsGraph, k as MemoryWithVectorsOptions, R as RetrievalEntry, l as RetrievalPipelineOptions, m as RetrievalQuery, n as RetrievalTrace, T as ToolExecutionOptions, o as ToolRegistryGraph, p as ToolRegistryOptions, q as ToolResult, r as chatStream, s as memoryRetrieval, t as memoryWithKG, u as memoryWithTiers, v as memoryWithVectors, w as toolExecution, x as toolRegistry } from '../../memory-composers-CVQqPYEV.js';
|
|
17
|
+
import { GraphSpecCatalog } from '../graphspec/index.js';
|
|
18
|
+
export { DEFAULT_DECAY_RATE } from '../../base/utils/index.js';
|
|
19
|
+
import '../../_internal-B23BagFd.js';
|
|
20
|
+
import '../../backoff-Bnb9OoPh.js';
|
|
21
|
+
import '../../base/mutation/index.js';
|
|
22
|
+
import '../memory/index.js';
|
|
16
23
|
|
|
17
24
|
/**
|
|
18
25
|
* Observable adapter wrapper — the "inverted statistics" surface.
|
|
@@ -104,7 +111,7 @@ interface WithBreakerOptions extends CircuitBreakerOptions {
|
|
|
104
111
|
*/
|
|
105
112
|
breaker?: CircuitBreaker;
|
|
106
113
|
}
|
|
107
|
-
declare function
|
|
114
|
+
declare function withLLMBreaker(inner: LLMAdapter, opts?: WithBreakerOptions): {
|
|
108
115
|
adapter: LLMAdapter;
|
|
109
116
|
breaker: CircuitBreaker;
|
|
110
117
|
};
|
|
@@ -149,11 +156,28 @@ interface BudgetTotals {
|
|
|
149
156
|
outputTokens: number;
|
|
150
157
|
usd: number;
|
|
151
158
|
}
|
|
152
|
-
interface
|
|
159
|
+
interface LLMBudgetGateBundle {
|
|
153
160
|
totals: Node<BudgetTotals>;
|
|
154
161
|
isOpen: Node<boolean>;
|
|
155
162
|
log: ReactiveLogBundle<CallStatsEvent>;
|
|
156
163
|
reset(): void;
|
|
164
|
+
/**
|
|
165
|
+
* QA D2 (Phase 13.6.B QA pass): release every long-lived
|
|
166
|
+
* subscription this gate holds — `keepalive(isOpen)`, the optional
|
|
167
|
+
* `onExhausted` subscription, and the Lock 3.C abort fan-out
|
|
168
|
+
* subscription on `isOpen`. Aborts any in-flight controllers as a
|
|
169
|
+
* defensive last gasp so callers waiting on a soon-to-be-disposed
|
|
170
|
+
* adapter don't hang.
|
|
171
|
+
*
|
|
172
|
+
* Idempotent: subsequent calls are no-ops. After `dispose()` the
|
|
173
|
+
* adapter wrapper continues to wrap `inner.invoke` / `inner.stream`
|
|
174
|
+
* but the budget machinery is best-effort: `record()` no longer
|
|
175
|
+
* emits `totals` updates, abort fan-out no longer fires. Treat the
|
|
176
|
+
* bundle as terminated once disposed; long-running apps should
|
|
177
|
+
* `dispose()` per gate instance to avoid the sub-leak documented
|
|
178
|
+
* in `docs/optimizations.md`.
|
|
179
|
+
*/
|
|
180
|
+
dispose(): void;
|
|
157
181
|
}
|
|
158
182
|
interface WithBudgetGateOptions {
|
|
159
183
|
caps: BudgetCaps;
|
|
@@ -181,7 +205,7 @@ interface WithBudgetGateOptions {
|
|
|
181
205
|
*/
|
|
182
206
|
declare function withBudgetGate(inner: LLMAdapter, opts: WithBudgetGateOptions): {
|
|
183
207
|
adapter: LLMAdapter;
|
|
184
|
-
budget:
|
|
208
|
+
budget: LLMBudgetGateBundle;
|
|
185
209
|
};
|
|
186
210
|
|
|
187
211
|
/**
|
|
@@ -218,90 +242,6 @@ interface WithDryRunBundle {
|
|
|
218
242
|
}
|
|
219
243
|
declare function withDryRun(inner: LLMAdapter, opts: WithDryRunOptions): WithDryRunBundle;
|
|
220
244
|
|
|
221
|
-
/**
|
|
222
|
-
* Adaptive rate limiter — reactive, live-tunable, 429-aware.
|
|
223
|
-
*
|
|
224
|
-
* Wraps two `tokenBucket` instances (requests, tokens) with:
|
|
225
|
-
* - Reactive `rpm` / `tpm` knobs that can be re-tuned at runtime via `NodeInput<number>`.
|
|
226
|
-
* - An adaptation signal input (`Node<RateLimitSignal>`) that feeds back
|
|
227
|
-
* provider 429 / retry-after / x-ratelimit-* headers to tighten limits.
|
|
228
|
-
* - A `clampCooldownMs` TTL on signal-induced caps so a transient 429 doesn't
|
|
229
|
-
* permanently throttle — caps decay back to user-configured values after
|
|
230
|
-
* the cooldown elapses.
|
|
231
|
-
* - TPM-miss recovery: consumed RPM tokens are returned to the request
|
|
232
|
-
* bucket when the TPM admit fails, via `TokenBucket.putBack`.
|
|
233
|
-
* - Imperative `acquire()` for bridging to Promise-based call paths
|
|
234
|
-
* (used by the `withRateLimiter` adapter middleware).
|
|
235
|
-
*
|
|
236
|
-
* **Timer policy:** sleeps use `ResettableTimer` (documented spec §5.10
|
|
237
|
-
* escape hatch in `src/extra/timer.ts`) rather than `fromTimer` to avoid
|
|
238
|
-
* allocating a new Node per acquire cycle.
|
|
239
|
-
*
|
|
240
|
-
* Design lives in `docs/optimizations.md` § "Reactive adaptive rate limiter".
|
|
241
|
-
*/
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Rate-limit signal emitted by an adaptation source (e.g., an HTTP 429 parser).
|
|
245
|
-
*
|
|
246
|
-
* Any subset of fields may be present. The adaptive rate limiter uses:
|
|
247
|
-
* - `retryAfterMs` — blocks acquire() for this duration.
|
|
248
|
-
* - `rpmCap` / `tpmCap` — tightens effective rpm/tpm to this value (decays
|
|
249
|
-
* back to the user-configured cap after `clampCooldownMs`).
|
|
250
|
-
* - `usageHint` — updates the last-known rpm/tpm usage ratio for logging.
|
|
251
|
-
*/
|
|
252
|
-
interface RateLimitSignal {
|
|
253
|
-
/** Throttle duration — pause acquire() for this long. */
|
|
254
|
-
retryAfterMs?: number;
|
|
255
|
-
/** Hard cap for requests-per-minute; effective rpm = min(current, rpmCap) while clamp is active. */
|
|
256
|
-
rpmCap?: number;
|
|
257
|
-
/** Hard cap for tokens-per-minute; effective tpm = min(current, tpmCap) while clamp is active. */
|
|
258
|
-
tpmCap?: number;
|
|
259
|
-
/** Observed usage-percentage hint (0..1) — for observability, not gating. */
|
|
260
|
-
usageHint?: {
|
|
261
|
-
rpm?: number;
|
|
262
|
-
tpm?: number;
|
|
263
|
-
};
|
|
264
|
-
/** Free-form provider-specific payload. */
|
|
265
|
-
metadata?: Record<string, unknown>;
|
|
266
|
-
}
|
|
267
|
-
interface AdaptiveRateLimiterBundle {
|
|
268
|
-
/** Effective requests-per-minute (post-signal-clamp). Reactive. */
|
|
269
|
-
readonly effectiveRpm: Node<number>;
|
|
270
|
-
/** Effective tokens-per-minute (post-signal-clamp). Reactive. */
|
|
271
|
-
readonly effectiveTpm: Node<number>;
|
|
272
|
-
/** Last adaptation signal observed. */
|
|
273
|
-
readonly lastSignal: Node<RateLimitSignal>;
|
|
274
|
-
/** Pending `acquire()` callers waiting for capacity. */
|
|
275
|
-
readonly pending: Node<number>;
|
|
276
|
-
/** Current request-token-bucket fill (approximate). */
|
|
277
|
-
readonly rpmAvailable: Node<number>;
|
|
278
|
-
/** Current token-bucket fill (approximate). */
|
|
279
|
-
readonly tpmAvailable: Node<number>;
|
|
280
|
-
/**
|
|
281
|
-
* Imperative bridge: wait until `requestCost` request-tokens and
|
|
282
|
-
* `tokenCost` tokens are available, then consume them. Honors the
|
|
283
|
-
* most recent `retryAfterMs` from adaptation signals. Rejects with
|
|
284
|
-
* an `AbortError`-named error if `signal` aborts while waiting.
|
|
285
|
-
* `requestCost` defaults to 1; `tokenCost` defaults to 0 (rpm-only gating).
|
|
286
|
-
*/
|
|
287
|
-
acquire(opts?: {
|
|
288
|
-
requestCost?: number;
|
|
289
|
-
tokenCost?: number;
|
|
290
|
-
signal?: AbortSignal;
|
|
291
|
-
}): Promise<void>;
|
|
292
|
-
/**
|
|
293
|
-
* Feed back observed token usage (post-call) so the TPM bucket reflects
|
|
294
|
-
* real consumption rather than the pre-call estimate. A positive `delta`
|
|
295
|
-
* debits additional TPM (undershot estimate); a negative `delta` credits
|
|
296
|
-
* back overshoot (`putBack`).
|
|
297
|
-
*/
|
|
298
|
-
recordUsage(delta: number): void;
|
|
299
|
-
/** Manually feed an adaptation signal — useful for tests. */
|
|
300
|
-
recordSignal(sig: RateLimitSignal): void;
|
|
301
|
-
/** Dispose internal subscriptions and pending timers. */
|
|
302
|
-
dispose(): void;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
245
|
/**
|
|
306
246
|
* HTTP 429 / rate-limit parser.
|
|
307
247
|
*
|
|
@@ -429,7 +369,7 @@ declare function withRetry(inner: LLMAdapter, opts?: WithRetryOptions): LLMAdapt
|
|
|
429
369
|
|
|
430
370
|
/**
|
|
431
371
|
* `resilientAdapter` — compose `withRateLimiter` + `withBudgetGate` +
|
|
432
|
-
* `
|
|
372
|
+
* `withLLMBreaker` + `withLLMTimeout` + `withRetry` + fallback over an {@link LLMAdapter}.
|
|
433
373
|
*
|
|
434
374
|
* Call-path peer of {@link resilientPipeline} (which operates on a reactive
|
|
435
375
|
* `Node<T>` chain). Use `resilientPipeline` when composing graph sources; use
|
|
@@ -518,7 +458,7 @@ interface ResilientAdapterBundle {
|
|
|
518
458
|
/** Rate-limiter internals (for dashboards). Present only when `opts.rateLimit` was set. */
|
|
519
459
|
rateLimiter?: AdaptiveRateLimiterBundle;
|
|
520
460
|
/** Budget gate internals (for dashboards). Present only when `opts.budget` was set. */
|
|
521
|
-
budget?:
|
|
461
|
+
budget?: LLMBudgetGateBundle;
|
|
522
462
|
/** Circuit breaker (for dashboards). Present only when `opts.breaker` was set. */
|
|
523
463
|
breaker?: CircuitBreaker;
|
|
524
464
|
}
|
|
@@ -544,7 +484,7 @@ interface ResilientAdapterBundle {
|
|
|
544
484
|
declare function resilientAdapter(inner: LLMAdapter, opts?: ResilientAdapterOptions): ResilientAdapterBundle;
|
|
545
485
|
|
|
546
486
|
/**
|
|
547
|
-
* `
|
|
487
|
+
* `withLLMTimeout` — cancel `invoke()` / `stream()` after `ms` elapse.
|
|
548
488
|
*
|
|
549
489
|
* Wires a child AbortSignal so provider adapters can honor the cancellation
|
|
550
490
|
* (all shipped adapters forward `signal` through to their fetch / SDK call).
|
|
@@ -558,7 +498,7 @@ declare class LLMTimeoutError extends Error {
|
|
|
558
498
|
name: string;
|
|
559
499
|
constructor(ms: number);
|
|
560
500
|
}
|
|
561
|
-
declare function
|
|
501
|
+
declare function withLLMTimeout(inner: LLMAdapter, ms: number): LLMAdapter;
|
|
562
502
|
|
|
563
503
|
/**
|
|
564
504
|
* AnthropicAdapter — default fetch-backed, optional SDK-backed.
|
|
@@ -883,7 +823,7 @@ type PromptCallOptions = {
|
|
|
883
823
|
maxTokens?: number;
|
|
884
824
|
/**
|
|
885
825
|
* Optional name forwarded to the underlying `promptNode` (used as the
|
|
886
|
-
* `<name>::messages` / `<name>::
|
|
826
|
+
* `<name>::messages` / `<name>::response` / `<name>::output` path prefix).
|
|
887
827
|
* Defaults differ per call site so multiple `promptCall`s wired into the
|
|
888
828
|
* same graph don't collide on `prompt_node::output`.
|
|
889
829
|
*/
|
|
@@ -891,14 +831,14 @@ type PromptCallOptions = {
|
|
|
891
831
|
};
|
|
892
832
|
/**
|
|
893
833
|
* Build a one-shot LLM JSON-call factory: each invocation wraps `input` in a
|
|
894
|
-
* fresh `
|
|
834
|
+
* fresh `node([], { initial: input })`, delegates to `promptNode({format: "json"})`, and
|
|
895
835
|
* returns a `NodeInput<TOut>` that the caller plugs into `distill` /
|
|
896
836
|
* `agentLoop` / any reactive composition that accepts `NodeInput`.
|
|
897
837
|
*
|
|
898
838
|
* **Per-call lifecycle.** The returned `NodeInput<TOut>` is a producer that
|
|
899
839
|
* emits exactly one `DATA` per upstream input (per Tier 1.2 Session C lock —
|
|
900
840
|
* `promptNode` guarantees one DATA per wave). When the consumer's switchMap
|
|
901
|
-
* supersedes it, the per-call `
|
|
841
|
+
* supersedes it, the per-call `node([], { initial: input })` and the inner `prompt_node::response`
|
|
902
842
|
* tear down together.
|
|
903
843
|
*
|
|
904
844
|
* @param systemPrompt - System message sent on every call.
|
|
@@ -942,17 +882,20 @@ declare function llmConsolidator<TMem>(systemPrompt: string, opts: LLMConsolidat
|
|
|
942
882
|
/**
|
|
943
883
|
* `promptNode` — universal LLM transform as a reactive derived node.
|
|
944
884
|
*
|
|
945
|
-
* The shape: `deps → messagesNode (derived) → switchMap →
|
|
885
|
+
* The shape: `deps → messagesNode (derived) → switchMap → response (producer) → output`.
|
|
946
886
|
* Each upstream wave is one LLM call; superseding waves cancel the in-flight
|
|
947
887
|
* call via the abort signal threaded through `nodeSignal(opts.abort)`.
|
|
948
888
|
*
|
|
949
889
|
* The producer-shape on the inner is load-bearing: it emits exactly one DATA
|
|
950
890
|
* + COMPLETE per wave, so the outer switchMap sees one DATA per wave (matches
|
|
951
|
-
* the `HarnessExecutor` contract). A `
|
|
891
|
+
* the `HarnessExecutor` contract). A `node([response], (batchData, actions, ctx) => {
|
|
892
|
+
* const data = ...; actions.emit(parse(data[0]));
|
|
893
|
+
* }, { describeKind: "derived" })` would have its
|
|
952
894
|
* own first-run / push-on-subscribe semantics that can leak a transient null
|
|
953
895
|
* before the real response arrives — observed and reverted in an earlier
|
|
954
896
|
* attempt; see SESSION-ai-harness-module-review.md line 3654 for context.
|
|
955
|
-
* Locked as path (b) producer-based by Session C (2026-04-27)
|
|
897
|
+
* Locked as path (b) producer-based by Session C (2026-04-27); inner-node
|
|
898
|
+
* naming aligned to `prompt_node::response` per the C+D widening (2026-04-30).
|
|
956
899
|
*
|
|
957
900
|
* **Retry / replay-cache.** Stack middleware on the adapter:
|
|
958
901
|
*
|
|
@@ -973,7 +916,7 @@ declare function llmConsolidator<TMem>(systemPrompt: string, opts: LLMConsolidat
|
|
|
973
916
|
* survives across new outer DATAs — `promptNode`'s cached value persists
|
|
974
917
|
* until the next wave fully resolves. Consumers that need to distinguish
|
|
975
918
|
* "fresh value for THIS session" from "stale cache from a prior session"
|
|
976
|
-
* (e.g. `agentLoop` resetting on new `run()`) must add a `
|
|
919
|
+
* (e.g. `agentLoop` resetting on new `run()`) must add a `node([])` mirror
|
|
977
920
|
* at their session boundary and depend on the mirror, not the `promptNode`
|
|
978
921
|
* output directly. `promptNode` itself stays primitive — it does not
|
|
979
922
|
* embed a state-mirror.
|
|
@@ -1011,7 +954,7 @@ type PromptNodeOptions = {
|
|
|
1011
954
|
*
|
|
1012
955
|
* **Activation note:** since `tools` is a real declared dep, `messagesNode`
|
|
1013
956
|
* waits for the tools Node to DATA at least once before firing
|
|
1014
|
-
* (push-on-subscribe SENTINEL gate). Pass a `
|
|
957
|
+
* (push-on-subscribe SENTINEL gate). Pass a `node<ToolDefinition[]>([], { initial: [] })`
|
|
1015
958
|
* if you want immediate activation with no tools, or the latest published
|
|
1016
959
|
* `toolSelector.tools` Node.
|
|
1017
960
|
*/
|
|
@@ -1039,9 +982,9 @@ type PromptNodeOptions = {
|
|
|
1039
982
|
*
|
|
1040
983
|
* **Topology** (visible in `describe()`):
|
|
1041
984
|
* ```
|
|
1042
|
-
* <deps...>, [tools?] → <name>::messages (derived, meta.ai = prompt_node)
|
|
985
|
+
* <deps...>, [tools?] → <name>::messages (derived, meta.ai = prompt_node::messages)
|
|
1043
986
|
* <name>::messages → <name>::output (switchMap product, meta.ai = prompt_node::output)
|
|
1044
|
-
* per-wave inner: <name>::
|
|
987
|
+
* per-wave inner: <name>::response (producer, meta.ai = prompt_node::response)
|
|
1045
988
|
* ```
|
|
1046
989
|
* When `opts.tools` is supplied, the tools `Node` is appended to
|
|
1047
990
|
* `messagesNode`'s declared deps so it appears as a real edge in `describe()`
|
|
@@ -1433,23 +1376,6 @@ type RedactorOptions = {
|
|
|
1433
1376
|
*/
|
|
1434
1377
|
declare function redactor(accumulatedText: Node<string>, patterns: RegExp[], replaceFn?: (match: string, pattern: RegExp) => string, opts?: RedactorOptions): Node<string>;
|
|
1435
1378
|
|
|
1436
|
-
type ChatStreamOptions = {
|
|
1437
|
-
graph?: GraphOptions;
|
|
1438
|
-
maxMessages?: number;
|
|
1439
|
-
};
|
|
1440
|
-
declare class ChatStreamGraph extends Graph {
|
|
1441
|
-
private readonly _log;
|
|
1442
|
-
readonly messages: Node<readonly ChatMessage[]>;
|
|
1443
|
-
readonly latest: Node<ChatMessage | null>;
|
|
1444
|
-
readonly messageCount: Node<number>;
|
|
1445
|
-
constructor(name: string, opts?: ChatStreamOptions);
|
|
1446
|
-
append(role: ChatMessage["role"], content: string, extra?: Partial<ChatMessage>): void;
|
|
1447
|
-
appendToolResult(callId: string, content: string): void;
|
|
1448
|
-
clear(): void;
|
|
1449
|
-
allMessages(): readonly ChatMessage[];
|
|
1450
|
-
}
|
|
1451
|
-
declare function chatStream(name: string, opts?: ChatStreamOptions): ChatStreamGraph;
|
|
1452
|
-
|
|
1453
1379
|
/**
|
|
1454
1380
|
* Options for {@link handoff}.
|
|
1455
1381
|
*/
|
|
@@ -1521,142 +1447,6 @@ type HandoffOptions = {
|
|
|
1521
1447
|
*/
|
|
1522
1448
|
declare function handoff<T>(from: NodeInput<T | null>, toFactory: (input: Node<T>) => Node<T | null>, opts?: HandoffOptions): Node<T | null>;
|
|
1523
1449
|
|
|
1524
|
-
type ToolRegistryOptions = {
|
|
1525
|
-
graph?: GraphOptions;
|
|
1526
|
-
};
|
|
1527
|
-
/**
|
|
1528
|
-
* `ToolRegistryGraph` — name-keyed registry of {@link ToolDefinition}s.
|
|
1529
|
-
*
|
|
1530
|
-
* **Reactive-only execution.** The only execution path is
|
|
1531
|
-
* {@link executeReactive}, which returns a `Node<unknown>` for the handler
|
|
1532
|
-
* result. Composing factories (`toolExecution`, `agentLoop`) consume it
|
|
1533
|
-
* directly inside `retrySource` / `switchMap` chains. There is intentionally
|
|
1534
|
-
* no imperative `execute()` Promise method — the registry was originally a
|
|
1535
|
-
* dual-boundary class (imperative + reactive) and the imperative path was
|
|
1536
|
-
* the only thing in the codebase bridging through `Promise.resolve().then()`
|
|
1537
|
-
* to feed `fromAny`. Removing it left every consumer on a single
|
|
1538
|
-
* reactive-all-the-way path with real abort propagation.
|
|
1539
|
-
*
|
|
1540
|
-
* For non-reactive callers (debug scripts, one-shot tests), bridge with
|
|
1541
|
-
* `awaitSettled(toolRegistry.executeReactive(name, args))`.
|
|
1542
|
-
*
|
|
1543
|
-
* **Wave A Unit 6 refactor:** internal storage migrated from `state<Map>`
|
|
1544
|
-
* (O(N) Map-copy per mutation) to `ReactiveMapBundle<string, ToolDefinition>`
|
|
1545
|
-
* (O(1) mutations + version counter).
|
|
1546
|
-
*/
|
|
1547
|
-
declare class ToolRegistryGraph extends Graph {
|
|
1548
|
-
readonly definitions: Node<ReadonlyMap<string, ToolDefinition>>;
|
|
1549
|
-
readonly schemas: Node<readonly ToolDefinition[]>;
|
|
1550
|
-
private readonly _bundle;
|
|
1551
|
-
constructor(name: string, opts?: ToolRegistryOptions);
|
|
1552
|
-
register(tool: ToolDefinition): void;
|
|
1553
|
-
unregister(name: string): void;
|
|
1554
|
-
/**
|
|
1555
|
-
* Reactive execution — returns a `Node<unknown>` that emits the handler
|
|
1556
|
-
* result. The returned node is a `producer` that:
|
|
1557
|
-
*
|
|
1558
|
-
* 1. Mints a per-call `AbortController` whose `signal` is threaded into
|
|
1559
|
-
* the handler call AND into `fromAny` (so a `fromPromise` /
|
|
1560
|
-
* `fromAsyncIter` inner abandons cleanly when the consumer
|
|
1561
|
-
* unsubscribes).
|
|
1562
|
-
* 2. Runs `tool.handler(args, {signal})` inside a try/catch — a
|
|
1563
|
-
* synchronous throw surfaces as `[[ERROR, err]]` downstream instead
|
|
1564
|
-
* of escaping the producer.
|
|
1565
|
-
* 3. Forwards every message from the inner `fromAny` chain to the
|
|
1566
|
-
* producer's outputs.
|
|
1567
|
-
* 4. On teardown (subscriber count drops to zero, e.g. `switchMap`
|
|
1568
|
-
* supersede) calls `ac.abort()` and unsubscribes the inner.
|
|
1569
|
-
* Signal-aware handlers (e.g. `fetch(url, {signal})`) actually stop.
|
|
1570
|
-
*
|
|
1571
|
-
* Each call mints a fresh node tied to a fresh `handler(args, ...)`
|
|
1572
|
-
* invocation — call `executeReactive` again for repeated invocations.
|
|
1573
|
-
*
|
|
1574
|
-
* @throws `Error` synchronously when `name` is not registered (no node is
|
|
1575
|
-
* constructed — the caller gets a pre-wiring failure rather than a
|
|
1576
|
-
* silent ERROR wave on an empty graph).
|
|
1577
|
-
*/
|
|
1578
|
-
executeReactive(name: string, args: Record<string, unknown>): Node<unknown>;
|
|
1579
|
-
getDefinition(name: string): ToolDefinition | undefined;
|
|
1580
|
-
}
|
|
1581
|
-
declare function toolRegistry(name: string, opts?: ToolRegistryOptions): ToolRegistryGraph;
|
|
1582
|
-
|
|
1583
|
-
/**
|
|
1584
|
-
* `toolExecution` — reactive per-tool-call executor with retry + rescue.
|
|
1585
|
-
*
|
|
1586
|
-
* Lifted from the inlined `executeToolReactively` helper inside `agent-loop.ts`
|
|
1587
|
-
* so it can be consumed standalone by any caller with a reactive `toolCalls`
|
|
1588
|
-
* batch — not just `agentLoop`. The shape is: one input `Node<readonly
|
|
1589
|
-
* ToolCall[]>` + a `ToolRegistryGraph` → one output `Node<readonly
|
|
1590
|
-
* ToolResult[]>`. Each call maps to a per-call `retrySource(executeReactive)`
|
|
1591
|
-
* → optional `rescue` chain that emits the handler result on success, or a
|
|
1592
|
-
* JSON-wrapped `{ error }` payload on terminal failure so the LLM can see the
|
|
1593
|
-
* error as tool output and decide whether to try again via another tool call.
|
|
1594
|
-
*
|
|
1595
|
-
* **Cancellation.** `executeReactive` mints a per-call `AbortController` and
|
|
1596
|
-
* threads its signal into the handler call. When `switchMap` supersedes the
|
|
1597
|
-
* inner (a fresh `toolCalls` batch arrives) or the outer graph tears down,
|
|
1598
|
-
* the per-call node unsubscribes and `ac.abort()` fires. Signal-aware
|
|
1599
|
-
* handlers (`fetch(url, {signal})`, child-process kill, DB cancel) actually
|
|
1600
|
-
* stop in-flight work; handlers that ignore the signal still complete to
|
|
1601
|
-
* their original termination, but their result is discarded.
|
|
1602
|
-
*
|
|
1603
|
-
* @module
|
|
1604
|
-
*/
|
|
1605
|
-
|
|
1606
|
-
/** A single tool execution outcome: `{id, content}` where content is a JSON string. */
|
|
1607
|
-
interface ToolResult {
|
|
1608
|
-
readonly id: string;
|
|
1609
|
-
readonly content: string;
|
|
1610
|
-
}
|
|
1611
|
-
type ToolExecutionOptions = {
|
|
1612
|
-
/**
|
|
1613
|
-
* Reactive tool-call batch. Each non-empty emission triggers a fresh
|
|
1614
|
-
* per-call execution fan-out; superseding emissions cancel the prior fan.
|
|
1615
|
-
*/
|
|
1616
|
-
toolCalls: Node<readonly ToolCall[]>;
|
|
1617
|
-
/** Registry that resolves tool name → handler. */
|
|
1618
|
-
tools: ToolRegistryGraph;
|
|
1619
|
-
/**
|
|
1620
|
-
* Retry count per individual tool call. `retrySource({count: N})` retries
|
|
1621
|
-
* up to N times on error (N retries = N+1 total attempts). Default: 1.
|
|
1622
|
-
*/
|
|
1623
|
-
retryCount?: number;
|
|
1624
|
-
/**
|
|
1625
|
-
* How to surface a terminal error after retries are exhausted.
|
|
1626
|
-
* - `"rescue"` (default): emit `{id, content: JSON.stringify({error})}`
|
|
1627
|
-
* so the LLM sees the failure as structured tool output and can decide
|
|
1628
|
-
* how to react. Sibling calls in the same batch continue to their own
|
|
1629
|
-
* completion; one call's failure does not affect the others.
|
|
1630
|
-
* - `"propagate"`: let the ERROR propagate downstream. **Blast radius:**
|
|
1631
|
-
* the per-batch `derived` join auto-errors when any per-call node
|
|
1632
|
-
* terminates with ERROR, so one call's failure discards every sibling's
|
|
1633
|
-
* DATA (even ones that already settled with a valid ToolResult). Use
|
|
1634
|
-
* `"propagate"` only when a single tool failure should be fatal for the
|
|
1635
|
-
* whole batch; prefer `"rescue"` when you want the LLM to see partial
|
|
1636
|
-
* results plus per-call error markers.
|
|
1637
|
-
*/
|
|
1638
|
-
onError?: "rescue" | "propagate";
|
|
1639
|
-
};
|
|
1640
|
-
/**
|
|
1641
|
-
* Reactive executor for a batch of LLM tool calls.
|
|
1642
|
-
*
|
|
1643
|
-
* Each DATA emission on `toolCalls` dispatches a fresh per-call fan-out: for
|
|
1644
|
-
* every call in the batch, construct a `retrySource(fromAny(tools.execute(
|
|
1645
|
-
* name, args)))` node, optionally `rescue` it into a JSON error shape, and
|
|
1646
|
-
* join the results via a `derived` whose first-run gate waits for every call
|
|
1647
|
-
* to settle before emitting the batch. Empty batches (`calls.length === 0`)
|
|
1648
|
-
* are a caller-side invariant violation (the upstream gate should emit
|
|
1649
|
-
* RESOLVED for empty batches, not DATA) and trigger a loud error — callers
|
|
1650
|
-
* that want to accept empty batches should upstream-filter them first.
|
|
1651
|
-
*
|
|
1652
|
-
* Reference-equality + content-equality dedup is applied to the output batch
|
|
1653
|
-
* so duplicate re-emissions from a completing retrySource don't propagate.
|
|
1654
|
-
*
|
|
1655
|
-
* @param opts - `{ toolCalls, tools, retryCount?, onError? }`.
|
|
1656
|
-
* @returns `Node<readonly ToolResult[]>` — one ToolResult per input ToolCall.
|
|
1657
|
-
*/
|
|
1658
|
-
declare function toolExecution(opts: ToolExecutionOptions): Node<readonly ToolResult[]>;
|
|
1659
|
-
|
|
1660
1450
|
/**
|
|
1661
1451
|
* Options for {@link toolSelector}.
|
|
1662
1452
|
*/
|
|
@@ -1683,11 +1473,20 @@ interface ToolSelectorOptions {
|
|
|
1683
1473
|
*
|
|
1684
1474
|
* @example
|
|
1685
1475
|
* ```ts
|
|
1686
|
-
* const hasBudget =
|
|
1476
|
+
* const hasBudget = node([costMeter], (batchData, actions, ctx) => {
|
|
1477
|
+
* const data = batchData.map((batch, i) => batch != null && batch.length > 0 ? batch.at(-1) : ctx.prevData[i]);
|
|
1478
|
+
* actions.emit((data[0] as CostMeter).total < BUDGET);
|
|
1479
|
+
* }, { describeKind: "derived" });
|
|
1687
1480
|
* const canDestroy = state(false, { name: "destructive-allowed" });
|
|
1688
1481
|
* const tools = toolSelector(registry.schemas, [
|
|
1689
|
-
*
|
|
1690
|
-
*
|
|
1482
|
+
* node([hasBudget], (batchData, actions, ctx) => {
|
|
1483
|
+
* const data = batchData.map((batch, i) => batch != null && batch.length > 0 ? batch.at(-1) : ctx.prevData[i]);
|
|
1484
|
+
* actions.emit((t) => !t.meta?.expensive || data[0] === true);
|
|
1485
|
+
* }, { describeKind: "derived" }),
|
|
1486
|
+
* node([canDestroy], (batchData, actions, ctx) => {
|
|
1487
|
+
* const data = batchData.map((batch, i) => batch != null && batch.length > 0 ? batch.at(-1) : ctx.prevData[i]);
|
|
1488
|
+
* actions.emit((t) => !t.meta?.destructive || data[0] === true);
|
|
1489
|
+
* }, { describeKind: "derived" }),
|
|
1691
1490
|
* ]);
|
|
1692
1491
|
* const agent = promptNode(graph, "agent", { ..., tools });
|
|
1693
1492
|
* ```
|
|
@@ -1748,508 +1547,6 @@ type AdmissionScore3DOptions = {
|
|
|
1748
1547
|
*/
|
|
1749
1548
|
declare function admissionFilter3D(opts: AdmissionScore3DOptions): (raw: unknown) => boolean;
|
|
1750
1549
|
|
|
1751
|
-
type RetrievalQuery = {
|
|
1752
|
-
readonly text?: string;
|
|
1753
|
-
readonly vector?: readonly number[];
|
|
1754
|
-
readonly entityIds?: readonly string[];
|
|
1755
|
-
/**
|
|
1756
|
-
* Optional hierarchical context breadcrumb — e.g.
|
|
1757
|
-
* `["projects", "auth", "tokens"]`. When both the query and a candidate
|
|
1758
|
-
* entry supply a `context`, the retrieval pipeline applies a score boost
|
|
1759
|
-
* proportional to `contextWeight` for entries whose context overlaps
|
|
1760
|
-
* (shared prefix). Entries or queries without `context` are scored
|
|
1761
|
-
* flatly (backward-compatible).
|
|
1762
|
-
*/
|
|
1763
|
-
readonly context?: readonly string[];
|
|
1764
|
-
};
|
|
1765
|
-
type RetrievalPipelineOptions<TMem> = {
|
|
1766
|
-
/** Max candidates from vector search (default 20). */
|
|
1767
|
-
topK?: number;
|
|
1768
|
-
/** KG expansion depth in hops (default 1). */
|
|
1769
|
-
graphDepth?: number;
|
|
1770
|
-
/** Token budget for final packing (default 2000). */
|
|
1771
|
-
budget?: number;
|
|
1772
|
-
/** Cost function for budget packing. */
|
|
1773
|
-
cost: (mem: TMem) => number;
|
|
1774
|
-
/** Score function for ranking. */
|
|
1775
|
-
score: (mem: TMem, context: unknown) => number;
|
|
1776
|
-
/**
|
|
1777
|
-
* Optional accessor: extracts the hierarchical context breadcrumb from a
|
|
1778
|
-
* memory entry. Used with {@link RetrievalQuery.context} and
|
|
1779
|
-
* `contextWeight` to boost entries whose context overlaps the query.
|
|
1780
|
-
* Entries that don't expose context stay at flat behavior.
|
|
1781
|
-
*/
|
|
1782
|
-
contextOf?: (mem: TMem) => readonly string[] | undefined;
|
|
1783
|
-
/**
|
|
1784
|
-
* Boost multiplier applied to a candidate's score when its `context`
|
|
1785
|
-
* shares a prefix with the query's `context`. Score is multiplied by
|
|
1786
|
-
* `(1 + contextWeight * sharedDepth / queryDepth)`. Default: 0 (no
|
|
1787
|
-
* context boost).
|
|
1788
|
-
*/
|
|
1789
|
-
contextWeight?: number;
|
|
1790
|
-
};
|
|
1791
|
-
/** A single entry in the retrieval result, with causal trace metadata. */
|
|
1792
|
-
type RetrievalEntry<TMem> = {
|
|
1793
|
-
readonly key: string;
|
|
1794
|
-
readonly value: TMem;
|
|
1795
|
-
readonly score: number;
|
|
1796
|
-
readonly sources: ReadonlyArray<"vector" | "graph" | "store">;
|
|
1797
|
-
/**
|
|
1798
|
-
* Hierarchical context breadcrumb for this entry, when
|
|
1799
|
-
* `RetrievalPipelineOptions.contextOf` is supplied and returns a value.
|
|
1800
|
-
*/
|
|
1801
|
-
readonly context?: readonly string[];
|
|
1802
|
-
};
|
|
1803
|
-
/** Causal trace for a retrieval run. */
|
|
1804
|
-
type RetrievalTrace<TMem> = {
|
|
1805
|
-
readonly vectorCandidates: ReadonlyArray<VectorSearchResult<TMem>>;
|
|
1806
|
-
readonly graphExpanded: ReadonlyArray<string>;
|
|
1807
|
-
readonly ranked: ReadonlyArray<RetrievalEntry<TMem>>;
|
|
1808
|
-
readonly packed: ReadonlyArray<RetrievalEntry<TMem>>;
|
|
1809
|
-
};
|
|
1810
|
-
|
|
1811
|
-
type MemoryTier = "permanent" | "active" | "archived";
|
|
1812
|
-
type MemoryTiersOptions<TMem> = {
|
|
1813
|
-
/** Exponential decay rate per second for active tier.
|
|
1814
|
-
* Default: 7-day half-life ≈ ln(2)/(7×86400) ≈ 0.00000114. */
|
|
1815
|
-
decayRate?: number;
|
|
1816
|
-
/** Max entries in the active tier before archiving lowest-scored (default 1000). */
|
|
1817
|
-
maxActive?: number;
|
|
1818
|
-
/** Score threshold below which active entries get archived (default 0.1). */
|
|
1819
|
-
archiveThreshold?: number;
|
|
1820
|
-
/** Predicate: true → entry belongs in permanent tier (default: never). */
|
|
1821
|
-
permanentFilter?: (key: string, mem: TMem) => boolean;
|
|
1822
|
-
/** Storage tier for the archive. Omit to disable archiving. */
|
|
1823
|
-
archiveTier?: SnapshotStorageTier<GraphCheckpointRecord>;
|
|
1824
|
-
/** Options forwarded to `graph.attachSnapshotStorage` for the archive tier. */
|
|
1825
|
-
archiveStorageOptions?: GraphAttachStorageOptions;
|
|
1826
|
-
};
|
|
1827
|
-
|
|
1828
|
-
type MemoryTiersBundle<TMem> = {
|
|
1829
|
-
/**
|
|
1830
|
-
* Permanent tier: never evicted. Backed by a `collection({ranked:false})`
|
|
1831
|
-
* Graph (Tier 2.3 — was previously a `LightCollectionBundle`; the no-Graph
|
|
1832
|
-
* bundle shape was folded into the unified `CollectionGraph`).
|
|
1833
|
-
*/
|
|
1834
|
-
readonly permanent: CollectionGraph<TMem>;
|
|
1835
|
-
/** Active entries node (reactive, holds ReadonlyMap). */
|
|
1836
|
-
readonly activeEntries: Node<unknown>;
|
|
1837
|
-
/** Archive storage handle (null if no tier configured). */
|
|
1838
|
-
readonly archiveHandle: StorageHandle | null;
|
|
1839
|
-
/** Classify a key into its current tier. */
|
|
1840
|
-
tierOf: (key: string) => MemoryTier;
|
|
1841
|
-
/** Move a key to the permanent tier. */
|
|
1842
|
-
markPermanent: (key: string, value: TMem) => void;
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
type MemoryWithVectorsOptions<TMem> = {
|
|
1846
|
-
/** Embedding dimension. Must match the `embedFn` output length. */
|
|
1847
|
-
dimension: number;
|
|
1848
|
-
/** Extract an embedding vector for a memory entry. */
|
|
1849
|
-
embedFn: (mem: TMem) => readonly number[] | undefined;
|
|
1850
|
-
};
|
|
1851
|
-
/**
|
|
1852
|
-
* Attach a vector index to a `DistillBundle`. Indexes every entry in the
|
|
1853
|
-
* store as it changes. Returns the `VectorIndexGraph` so retrieval can read
|
|
1854
|
-
* its `entries` and call `search()`.
|
|
1855
|
-
*
|
|
1856
|
-
* The indexer's keepalive is registered with `graph.addDisposer` so it tears
|
|
1857
|
-
* down on `graph.destroy()`. The returned `dispose()` is also available for
|
|
1858
|
-
* early release without destroying the parent graph.
|
|
1859
|
-
*/
|
|
1860
|
-
declare function memoryWithVectors<TMem>(graph: Graph, store: DistillBundle<TMem>, opts: MemoryWithVectorsOptions<TMem>): {
|
|
1861
|
-
vectors: VectorIndexGraph<TMem>;
|
|
1862
|
-
dispose: () => void;
|
|
1863
|
-
};
|
|
1864
|
-
type MemoryWithKGOptions<TMem> = {
|
|
1865
|
-
/**
|
|
1866
|
-
* Mount path for the KG subgraph on the parent graph. Defaults to `name`.
|
|
1867
|
-
* Pass a different value when the parent graph reserves a stable mount
|
|
1868
|
-
* path (e.g. `agentMemory` mounts at `"kg"` regardless of outer name).
|
|
1869
|
-
*/
|
|
1870
|
-
mountPath?: string;
|
|
1871
|
-
/**
|
|
1872
|
-
* Extract entities + relations for a memory entry. Omit to mount an empty
|
|
1873
|
-
* KG without an indexer effect — caller upserts entities / relations
|
|
1874
|
-
* directly on the returned `kg` handle.
|
|
1875
|
-
*/
|
|
1876
|
-
entityFn?: (key: string, mem: TMem) => {
|
|
1877
|
-
entities?: Array<{
|
|
1878
|
-
id: string;
|
|
1879
|
-
value: unknown;
|
|
1880
|
-
}>;
|
|
1881
|
-
relations?: Array<{
|
|
1882
|
-
from: string;
|
|
1883
|
-
to: string;
|
|
1884
|
-
relation: string;
|
|
1885
|
-
weight?: number;
|
|
1886
|
-
}>;
|
|
1887
|
-
} | undefined;
|
|
1888
|
-
};
|
|
1889
|
-
/**
|
|
1890
|
-
* Attach a knowledge graph alongside a `DistillBundle`. Inner graph is named
|
|
1891
|
-
* `${name}-kg`; mount path defaults to `name` but can be overridden via
|
|
1892
|
-
* `opts.mountPath` so a parent factory (e.g. `agentMemory`) can keep a stable
|
|
1893
|
-
* mount path independent of the inner graph's identity.
|
|
1894
|
-
*
|
|
1895
|
-
* If `opts.entityFn` is omitted, no indexer effect is wired — the empty KG is
|
|
1896
|
-
* mounted for manual `upsertEntity` / `link` use.
|
|
1897
|
-
*
|
|
1898
|
-
* Indexer keepalive (when present) is registered with `graph.addDisposer`;
|
|
1899
|
-
* explicit `dispose()` is also available.
|
|
1900
|
-
*/
|
|
1901
|
-
declare function memoryWithKG<TMem>(graph: Graph, store: DistillBundle<TMem>, name: string, opts: MemoryWithKGOptions<TMem>): {
|
|
1902
|
-
kg: KnowledgeGraph<unknown, string>;
|
|
1903
|
-
dispose: () => void;
|
|
1904
|
-
};
|
|
1905
|
-
/**
|
|
1906
|
-
* Full options for {@link memoryWithTiers} (Tier 4.1 B + 4.3 B refactor,
|
|
1907
|
-
* 2026-04-29). Combines tier-policy options with the distill-side options
|
|
1908
|
-
* needed to construct the underlying store — `memoryWithTiers` is now the
|
|
1909
|
-
* **construction site** for the distill bundle so it can wire
|
|
1910
|
-
* `reactiveMap.retention` into the store at construction (eliminating the
|
|
1911
|
-
* §7 feedback cycle the previous `tierClassifier` effect carried).
|
|
1912
|
-
*
|
|
1913
|
-
* The retention config built internally maps tier policy to the substrate:
|
|
1914
|
-
* - `archiveThreshold` → `retention.archiveThreshold`
|
|
1915
|
-
* - `maxActive` → `retention.maxSize`
|
|
1916
|
-
* - per-entry `decay(score(mem, ctx), age, decayRate)` → `retention.score`
|
|
1917
|
-
* (capturing `latestCtx` + `entryCreatedAtNs` via closure-mirror; permanent
|
|
1918
|
-
* entries score `Infinity` to bypass eviction).
|
|
1919
|
-
*/
|
|
1920
|
-
type MemoryWithTiersOptions<TMem> = MemoryTiersOptions<TMem> & Omit<DistillOptions<TMem>, "mapOptions" | "score" | "context"> & {
|
|
1921
|
-
/** Score function — same signature as `agentMemory.score`. */
|
|
1922
|
-
score: (mem: TMem, context: unknown) => number;
|
|
1923
|
-
/** Optional reactive context node (passed to `score`). */
|
|
1924
|
-
context?: NodeInput<unknown>;
|
|
1925
|
-
};
|
|
1926
|
-
/**
|
|
1927
|
-
* Attach 3-tier storage (active / archived / permanent) to a fresh distill
|
|
1928
|
-
* store, wiring `reactiveMap.retention` at construction so archival happens
|
|
1929
|
-
* synchronously inside the substrate's mutation pipeline (no §7 feedback
|
|
1930
|
-
* cycle). Promotes `permanentKeys` and `entryCreatedAtNs` to reactive maps
|
|
1931
|
-
* mounted on the graph (Tier 4.3 B — Unit 7 Q3) so `describe()`/`explain()`
|
|
1932
|
-
* can walk to "why was X archived?".
|
|
1933
|
-
*
|
|
1934
|
-
* **API shape** (Tier 4.1 B, 2026-04-29 — breaking change vs. pre-refactor):
|
|
1935
|
-
* `memoryWithTiers` constructs the distill bundle internally rather than
|
|
1936
|
-
* accepting a pre-built one. Callers pass `(graph, source, extractFn,
|
|
1937
|
-
* opts)`. The bundle is exposed as `result.store` for downstream composers
|
|
1938
|
-
* (vectors / KG / retrieval).
|
|
1939
|
-
*
|
|
1940
|
-
* - `permanentFilter`-matching entries score `Infinity` in retention →
|
|
1941
|
-
* never archived. Independent permanent-promotion effect upserts them
|
|
1942
|
-
* into the `permanent` collection.
|
|
1943
|
-
* - Below-threshold entries → retention archives synchronously.
|
|
1944
|
-
* - Over-`maxActive` entries → retention's `maxSize` evicts lowest-scored.
|
|
1945
|
-
*/
|
|
1946
|
-
declare function memoryWithTiers<TRaw, TMem>(graph: Graph, source: NodeInput<TRaw>, extractFn: (raw: Node<TRaw>, existing: Node<ReadonlyMap<string, TMem>>) => NodeInput<Extraction<TMem>>, opts: MemoryWithTiersOptions<TMem>): {
|
|
1947
|
-
store: DistillBundle<TMem>;
|
|
1948
|
-
tiers: MemoryTiersBundle<TMem>;
|
|
1949
|
-
dispose: () => void;
|
|
1950
|
-
};
|
|
1951
|
-
type MemoryRetrievalOptions<TMem> = {
|
|
1952
|
-
/** Score function (same shape as `agentMemory.score`). */
|
|
1953
|
-
score: (mem: TMem, context: unknown) => number;
|
|
1954
|
-
/** Cost function for budget packing. */
|
|
1955
|
-
cost: (mem: TMem) => number;
|
|
1956
|
-
/** Token / cost budget. Default 2000. */
|
|
1957
|
-
budget?: number;
|
|
1958
|
-
/** Top-K vector candidates. Default 20. */
|
|
1959
|
-
topK?: number;
|
|
1960
|
-
/** KG expansion depth in hops. Default 1. */
|
|
1961
|
-
graphDepth?: number;
|
|
1962
|
-
/** Hierarchical-context boost weight. Default 0. */
|
|
1963
|
-
contextWeight?: number;
|
|
1964
|
-
/** Hierarchical-context accessor for entries. */
|
|
1965
|
-
contextOf?: (mem: TMem) => readonly string[] | undefined;
|
|
1966
|
-
/** Optional reactive context node (passed to `score`). */
|
|
1967
|
-
context?: NodeInput<unknown>;
|
|
1968
|
-
};
|
|
1969
|
-
type MemoryRetrievalBundle<TMem> = {
|
|
1970
|
-
/** State node mirroring the latest packed retrieval result. */
|
|
1971
|
-
readonly retrieval: Node<ReadonlyArray<RetrievalEntry<TMem>>>;
|
|
1972
|
-
/** State node mirroring the latest retrieval trace. */
|
|
1973
|
-
readonly retrievalTrace: Node<RetrievalTrace<TMem> | null>;
|
|
1974
|
-
/** Imperative consumer API — synchronous; reads cache at call time. */
|
|
1975
|
-
readonly retrieve: (query: RetrievalQuery) => ReadonlyArray<RetrievalEntry<TMem>>;
|
|
1976
|
-
/** Reactive sibling — chain into the graph. Mirrors observability state. */
|
|
1977
|
-
readonly retrieveReactive: (queryInput: NodeInput<RetrievalQuery | null>) => Node<ReadonlyArray<RetrievalEntry<TMem>>>;
|
|
1978
|
-
};
|
|
1979
|
-
/**
|
|
1980
|
-
* Build the retrieval pipeline (vector + KG + budget packing) over a
|
|
1981
|
-
* `DistillBundle` and optional `vectors` / `kg` bundles.
|
|
1982
|
-
*
|
|
1983
|
-
* Both consumer surfaces (`retrieve`, `retrieveReactive`) write to the same
|
|
1984
|
-
* `retrieval` + `retrievalTrace` state nodes — observers subscribed to those
|
|
1985
|
-
* see ALL queries regardless of which API issued them.
|
|
1986
|
-
*/
|
|
1987
|
-
declare function memoryRetrieval<TMem>(graph: Graph, store: DistillBundle<TMem>, vectors: VectorIndexGraph<TMem> | null, kg: KnowledgeGraph<unknown, string> | null, opts: MemoryRetrievalOptions<TMem>): MemoryRetrievalBundle<TMem>;
|
|
1988
|
-
|
|
1989
|
-
/**
|
|
1990
|
-
* Reactive agent loop — autonomous multi-turn LLM agent with tool execution.
|
|
1991
|
-
*/
|
|
1992
|
-
type AgentLoopStatus = "idle" | "thinking" | "acting" | "done" | "error";
|
|
1993
|
-
|
|
1994
|
-
type AgentLoopOptions = {
|
|
1995
|
-
graph?: GraphOptions;
|
|
1996
|
-
adapter: LLMAdapter;
|
|
1997
|
-
tools?: readonly ToolDefinition[];
|
|
1998
|
-
systemPrompt?: string;
|
|
1999
|
-
maxTurns?: number;
|
|
2000
|
-
stopWhen?: (response: LLMResponse) => boolean;
|
|
2001
|
-
onToolCall?: (call: ToolCall) => void;
|
|
2002
|
-
maxMessages?: number;
|
|
2003
|
-
model?: string;
|
|
2004
|
-
temperature?: number;
|
|
2005
|
-
maxTokens?: number;
|
|
2006
|
-
/**
|
|
2007
|
-
* Reactive tool-call splice (COMPOSITION-GUIDE §31 "interception is security").
|
|
2008
|
-
* When set, the raw `toolCalls` node is piped through this transform before
|
|
2009
|
-
* reaching the executor. The transform is a pure reactive composition —
|
|
2010
|
-
* `(calls: Node<readonly ToolCall[]>) => Node<readonly ToolCall[]>` — so the
|
|
2011
|
-
* gate is visible in `describe()` / `explain()` as a real edge (no hidden
|
|
2012
|
-
* imperative wraps; §24).
|
|
2013
|
-
*
|
|
2014
|
-
* Typical uses:
|
|
2015
|
-
* - **Filter / block** — `derived([calls, policy], ([raw, p]) => raw.filter(p))`
|
|
2016
|
-
* - **Throttle / debounce** — `throttle(calls, windowMs)`
|
|
2017
|
-
* - **Human-in-the-loop approval** — pipe through a `gate` controller so
|
|
2018
|
-
* calls wait for human approval before reaching the executor.
|
|
2019
|
-
*
|
|
2020
|
-
* The public `agent.toolCalls` node surfaces the POST-intercept stream, so
|
|
2021
|
-
* audit / telemetry consumers see what the executor actually runs. The raw
|
|
2022
|
-
* pre-intercept stream is not exposed — tests that need it should run
|
|
2023
|
-
* without `interceptToolCalls` set (the identity case).
|
|
2024
|
-
*/
|
|
2025
|
-
interceptToolCalls?: (calls: Node<readonly ToolCall[]>) => Node<readonly ToolCall[]>;
|
|
2026
|
-
};
|
|
2027
|
-
/**
|
|
2028
|
-
* Reactive agent loop.
|
|
2029
|
-
*
|
|
2030
|
-
* The loop is a reactive state machine wired entirely from graph primitives:
|
|
2031
|
-
* `chat.messages` + `tools.schemas` + gating state feed a `promptInput`
|
|
2032
|
-
* derived; `switchMap` turns non-null inputs into an LLM invocation via
|
|
2033
|
-
* `fromAny(adapter.invoke(...))`. The LLM response drives chat writes and
|
|
2034
|
-
* status transitions via effects. Tool calls flow through a reactive
|
|
2035
|
-
* executor (`retrySource` + `rescue`) that retries once on error and
|
|
2036
|
-
* surfaces terminal errors as JSON-shaped `ToolResult` payloads for the
|
|
2037
|
-
* LLM to react to.
|
|
2038
|
-
*
|
|
2039
|
-
* **No imperative control flow inside the reactive layer** (spec §5.8-5.12):
|
|
2040
|
-
* no `while` loops, no manual `await adapter.invoke`, no polling.
|
|
2041
|
-
* `agent.run()` is a thin `awaitSettled` bridge so callers can still `await`
|
|
2042
|
-
* the loop if they want a Promise.
|
|
2043
|
-
*
|
|
2044
|
-
* Public surface:
|
|
2045
|
-
* - `chat` / `tools` — subgraphs (imperative `append` at boundary, reactive `executeReactive` for tool invocation)
|
|
2046
|
-
* - `status` / `turn` / `aborted` — state nodes with explicit initials
|
|
2047
|
-
* - `lastResponse` / `toolCalls` / `toolResults` — reactive outputs (SENTINEL until first emission; callers use `awaitSettled` / `subscribe`)
|
|
2048
|
-
* - `run(userMessage?, signal?)` — optional user append + Promise bridge
|
|
2049
|
-
* - `abort()` — imperative abort shim; flips `aborted` state
|
|
2050
|
-
*
|
|
2051
|
-
* **Lifecycle: single-mount.** `AgentLoopGraph` instances expect to be
|
|
2052
|
-
* constructed once and used until `destroy()`. The internal closure mirrors
|
|
2053
|
-
* (`latestTurn` / `latestAborted` / `latestStatus` / `latestMessages` /
|
|
2054
|
-
* `latestSchemas`) are wired by subscribe-and-capture at construction time;
|
|
2055
|
-
* their corresponding `addDisposer`-registered subscriptions are torn down
|
|
2056
|
-
* on subgraph unmount or `destroy()`. After teardown the mirrors freeze at
|
|
2057
|
-
* their last value, so re-using a destroyed instance — calling `run()`
|
|
2058
|
-
* again, or remounting under a new parent — would silently feed stale
|
|
2059
|
-
* mirror data into `promptInput`. If you need to "reset" an agent, build a
|
|
2060
|
-
* fresh `AgentLoopGraph` instance instead of recycling.
|
|
2061
|
-
*/
|
|
2062
|
-
declare class AgentLoopGraph extends Graph {
|
|
2063
|
-
readonly chat: ChatStreamGraph;
|
|
2064
|
-
readonly tools: ToolRegistryGraph;
|
|
2065
|
-
/** Current agent status. `initial: "idle"` — always has a real value. */
|
|
2066
|
-
readonly status: Node<AgentLoopStatus>;
|
|
2067
|
-
/** Turn count (completed LLM invocations this run). `initial: 0`. */
|
|
2068
|
-
readonly turn: Node<number>;
|
|
2069
|
-
/** Aborted flag; flipped by `abort()` or external `AbortSignal`. `initial: false`. */
|
|
2070
|
-
readonly aborted: Node<boolean>;
|
|
2071
|
-
/**
|
|
2072
|
-
* Most recent LLM response. State-backed mirror driven by the response
|
|
2073
|
-
* effect. `initial: null` — subscribers can read the cache synchronously;
|
|
2074
|
-
* `awaitSettled(lastResponse)` or `firstWhere(lastResponse, v => v != null)`
|
|
2075
|
-
* bridges to the first non-null value as a Promise.
|
|
2076
|
-
*/
|
|
2077
|
-
readonly lastResponse: Node<LLMResponse | null>;
|
|
2078
|
-
/** Tool-call batch emitted by the most recent LLM response. SENTINEL. */
|
|
2079
|
-
readonly toolCalls: Node<readonly ToolCall[]>;
|
|
2080
|
-
/** Tool-result batch (one entry per call) after reactive execution. SENTINEL. */
|
|
2081
|
-
readonly toolResults: Node<readonly ToolResult[]>;
|
|
2082
|
-
private readonly _terminalResult;
|
|
2083
|
-
private readonly _disposeRunWiring;
|
|
2084
|
-
/** Guards against overlapping `run()` calls. */
|
|
2085
|
-
private _running;
|
|
2086
|
-
/**
|
|
2087
|
-
* Abort controller for the currently-running `adapter.invoke`. Minted per
|
|
2088
|
-
* switchMap project; aborted when the reactive `aborted` node flips true
|
|
2089
|
-
* OR when the caller's external `AbortSignal` fires. Threaded into
|
|
2090
|
-
* `adapter.invoke({ signal })` AND `fromAny(promise, { signal })`, so the
|
|
2091
|
-
* reactive layer sees ERROR when the wire call is cancelled.
|
|
2092
|
-
*/
|
|
2093
|
-
private _currentAbortController;
|
|
2094
|
-
constructor(name: string, opts: AgentLoopOptions);
|
|
2095
|
-
/**
|
|
2096
|
-
* Bridge to `Promise<LLMResponse>` over the reactive pipeline.
|
|
2097
|
-
*
|
|
2098
|
-
* - If `userMessage` is provided, appends it as a user message and
|
|
2099
|
-
* transitions status to `"thinking"` to kick the loop.
|
|
2100
|
-
* - If `signal` is provided, binds it to the reactive `aborted` node
|
|
2101
|
-
* AND threads into `adapter.invoke({ signal })` so the wire call can
|
|
2102
|
-
* cancel mid-flight. The reactive `aborted` state + effect 3 guarantee
|
|
2103
|
-
* that even an adapter that ignores `signal` will stop emitting into
|
|
2104
|
-
* the agent graph.
|
|
2105
|
-
* - Resolves when `status === "done"` with the final LLM response.
|
|
2106
|
-
* Rejects with `AbortError` when the abort signal fires pre-response.
|
|
2107
|
-
* Rejects with the stage error when `status === "error"`.
|
|
2108
|
-
*
|
|
2109
|
-
* **Concurrency:** `run()` refuses to overlap with a pending call on the
|
|
2110
|
-
* same agent. Attempting to call `run()` while a previous `run()` is
|
|
2111
|
-
* still in-flight throws a `RangeError` immediately. Stale-resolution
|
|
2112
|
-
* safety is provided by `awaitSettled({skipCurrent: true})`, which
|
|
2113
|
-
* ignores the cached initial DATA from any previous run and resolves
|
|
2114
|
-
* only on a fresh post-subscribe emission of `_terminalResult`.
|
|
2115
|
-
*/
|
|
2116
|
-
run(userMessage?: string, signal?: AbortSignal): Promise<LLMResponse | null>;
|
|
2117
|
-
/**
|
|
2118
|
-
* Flip the reactive `aborted` state. Equivalent to setting an external
|
|
2119
|
-
* `AbortSignal` — the pipeline observes and transitions to `"done"`.
|
|
2120
|
-
*/
|
|
2121
|
-
abort(): void;
|
|
2122
|
-
destroy(): void;
|
|
2123
|
-
}
|
|
2124
|
-
declare function agentLoop(name: string, opts: AgentLoopOptions): AgentLoopGraph;
|
|
2125
|
-
|
|
2126
|
-
type AgentMemoryOptions<TMem = unknown> = {
|
|
2127
|
-
graph?: GraphOptions;
|
|
2128
|
-
/** LLM adapter for extraction and consolidation. */
|
|
2129
|
-
adapter?: LLMAdapter;
|
|
2130
|
-
/** System prompt for the extractor LLM. */
|
|
2131
|
-
extractPrompt?: string;
|
|
2132
|
-
/** Custom extractFn (overrides adapter + extractPrompt). */
|
|
2133
|
-
extractFn?: (raw: unknown, existing: ReadonlyMap<string, TMem>) => NodeInput<Extraction<TMem>>;
|
|
2134
|
-
/** System prompt for the consolidation LLM. */
|
|
2135
|
-
consolidatePrompt?: string;
|
|
2136
|
-
/** Custom consolidateFn (overrides adapter + consolidatePrompt). */
|
|
2137
|
-
consolidateFn?: (entries: ReadonlyMap<string, TMem>) => NodeInput<Extraction<TMem>>;
|
|
2138
|
-
/** Reactive trigger for consolidation (caller supplies e.g. `fromTimer`). */
|
|
2139
|
-
consolidateTrigger?: NodeInput<unknown>;
|
|
2140
|
-
/** Score function for budget packing (required). */
|
|
2141
|
-
score: (mem: TMem, context: unknown) => number;
|
|
2142
|
-
/** Cost function for budget packing (required). */
|
|
2143
|
-
cost: (mem: TMem) => number;
|
|
2144
|
-
/** Token budget for compact view (default 2000). */
|
|
2145
|
-
budget?: number;
|
|
2146
|
-
/** Context node for scoring. */
|
|
2147
|
-
context?: NodeInput<unknown>;
|
|
2148
|
-
/** Admission filter (default: admit all). */
|
|
2149
|
-
admissionFilter?: (candidate: unknown) => boolean;
|
|
2150
|
-
/** Vector index dimensions (> 0 enables vector index for retrieval). */
|
|
2151
|
-
vectorDimensions?: number;
|
|
2152
|
-
/**
|
|
2153
|
-
* B12: optional accessor for an entry's hierarchical context breadcrumb
|
|
2154
|
-
* (e.g. `["projects", "auth", "tokens"]`). When supplied alongside
|
|
2155
|
-
* `contextWeight > 0`, retrieval applies a score boost for entries whose
|
|
2156
|
-
* context shares a prefix with the query's `context`. Entries without
|
|
2157
|
-
* a breadcrumb are scored flatly.
|
|
2158
|
-
*/
|
|
2159
|
-
contextOf?: (mem: TMem) => readonly string[] | undefined;
|
|
2160
|
-
/**
|
|
2161
|
-
* B12: hierarchical context boost multiplier. Score is scaled by
|
|
2162
|
-
* `(1 + contextWeight * sharedDepth / queryDepth)` when both the query
|
|
2163
|
-
* and entry supply a `context`. Default: 0.
|
|
2164
|
-
*/
|
|
2165
|
-
contextWeight?: number;
|
|
2166
|
-
/** Extract embedding vector from a memory entry (enables vector index). */
|
|
2167
|
-
embedFn?: (mem: TMem) => readonly number[] | undefined;
|
|
2168
|
-
/** Enable knowledge graph for entity/relation tracking. */
|
|
2169
|
-
enableKnowledgeGraph?: boolean;
|
|
2170
|
-
/** Extract entities and relations from a memory entry. */
|
|
2171
|
-
entityFn?: (key: string, mem: TMem) => {
|
|
2172
|
-
entities?: Array<{
|
|
2173
|
-
id: string;
|
|
2174
|
-
value: unknown;
|
|
2175
|
-
}>;
|
|
2176
|
-
relations?: Array<{
|
|
2177
|
-
from: string;
|
|
2178
|
-
to: string;
|
|
2179
|
-
relation: string;
|
|
2180
|
-
weight?: number;
|
|
2181
|
-
}>;
|
|
2182
|
-
} | undefined;
|
|
2183
|
-
/** 3-tier storage configuration. Omit to use single-tier (existing behavior). */
|
|
2184
|
-
tiers?: MemoryTiersOptions<TMem>;
|
|
2185
|
-
/** Retrieval pipeline configuration. Requires vector index or knowledge graph. */
|
|
2186
|
-
retrieval?: {
|
|
2187
|
-
/** Max candidates from vector search (default 20). */
|
|
2188
|
-
topK?: number;
|
|
2189
|
-
/** KG expansion depth in hops (default 1). */
|
|
2190
|
-
graphDepth?: number;
|
|
2191
|
-
};
|
|
2192
|
-
/** Periodic reflection/consolidation configuration. */
|
|
2193
|
-
reflection?: {
|
|
2194
|
-
/** Interval in ms between consolidation runs (default 300_000 = 5 min). */
|
|
2195
|
-
interval?: number;
|
|
2196
|
-
/** Enable/disable periodic reflection (default true when consolidateFn is available). */
|
|
2197
|
-
enabled?: boolean;
|
|
2198
|
-
};
|
|
2199
|
-
};
|
|
2200
|
-
type AgentMemoryGraph<TMem = unknown> = Graph & {
|
|
2201
|
-
readonly distillBundle: DistillBundle<TMem>;
|
|
2202
|
-
readonly compact: Node<Array<{
|
|
2203
|
-
key: string;
|
|
2204
|
-
value: TMem;
|
|
2205
|
-
score: number;
|
|
2206
|
-
}>>;
|
|
2207
|
-
readonly size: Node<number>;
|
|
2208
|
-
/** Vector index bundle (null if not enabled). */
|
|
2209
|
-
readonly vectors: VectorIndexGraph<TMem> | null;
|
|
2210
|
-
/** Knowledge graph (null if not enabled). */
|
|
2211
|
-
readonly kg: KnowledgeGraph<unknown, string> | null;
|
|
2212
|
-
/** Memory tiers bundle (null if not configured). */
|
|
2213
|
-
readonly memoryTiers: MemoryTiersBundle<TMem> | null;
|
|
2214
|
-
/** Retrieval result node (null if no retrieval pipeline configured). */
|
|
2215
|
-
readonly retrieval: Node<ReadonlyArray<RetrievalEntry<TMem>>> | null;
|
|
2216
|
-
/** Latest retrieval trace for observability (null if no retrieval pipeline). */
|
|
2217
|
-
readonly retrievalTrace: Node<RetrievalTrace<TMem> | null> | null;
|
|
2218
|
-
/**
|
|
2219
|
-
* Execute a retrieval query (null if no retrieval pipeline).
|
|
2220
|
-
*
|
|
2221
|
-
* **Synchronous consumer API** — returns the result immediately and batch-writes
|
|
2222
|
-
* `retrieval` and `retrievalTrace` state nodes for observers. Reads the store
|
|
2223
|
-
* snapshot and context value **at call time** (external-boundary read).
|
|
2224
|
-
*
|
|
2225
|
-
* **Do not call from inside a reactive fn body** (derived fn, subscribe callback,
|
|
2226
|
-
* effect body). The cache reads would become transitive protocol violations and
|
|
2227
|
-
* may observe wave-progressive rather than wave-final state.
|
|
2228
|
-
*
|
|
2229
|
-
* **Caller-batch caveat:** if invoked inside a caller's `batch(() => ...)` alongside
|
|
2230
|
-
* upstream store mutations, the store snapshot reflects what has been committed to
|
|
2231
|
-
* `store.entries.cache` at call time. State-backed stores update cache synchronously
|
|
2232
|
-
* so batched inserts are visible; derived-backed store transforms may defer. If you
|
|
2233
|
-
* need fresh state after batched mutations, call `retrieve` after the batch returns.
|
|
2234
|
-
*/
|
|
2235
|
-
readonly retrieve: ((query: RetrievalQuery) => ReadonlyArray<RetrievalEntry<TMem>>) | null;
|
|
2236
|
-
/**
|
|
2237
|
-
* Reactive sibling of {@link retrieve}. Given a reactive
|
|
2238
|
-
* `RetrievalQuery | null` source, returns a `Node` emitting the packed
|
|
2239
|
-
* retrieval results. Composable with graph topology — subscribe it,
|
|
2240
|
-
* chain it into `promptNode`, or switchMap over a user-input node.
|
|
2241
|
-
* Null when no retrieval pipeline is configured.
|
|
2242
|
-
*/
|
|
2243
|
-
readonly retrieveReactive: ((queryInput: NodeInput<RetrievalQuery | null>) => Node<ReadonlyArray<RetrievalEntry<TMem>>>) | null;
|
|
2244
|
-
};
|
|
2245
|
-
/**
|
|
2246
|
-
* Pre-wired agentic memory graph. Sugar over `distill` plus the
|
|
2247
|
-
* `memoryWithVectors` / `memoryWithKG` / `memoryWithTiers` / `memoryRetrieval`
|
|
2248
|
-
* composers. Power users who want a subset of capabilities can call those
|
|
2249
|
-
* composers directly; this factory bundles them into one ergonomic call.
|
|
2250
|
-
*/
|
|
2251
|
-
declare function agentMemory<TMem = unknown>(name: string, source: NodeInput<unknown>, opts: AgentMemoryOptions<TMem>): AgentMemoryGraph<TMem>;
|
|
2252
|
-
|
|
2253
1550
|
type GaugesAsContextOptions = {
|
|
2254
1551
|
/** Group gauges by `meta.tags` (default true). */
|
|
2255
1552
|
groupByTags?: boolean;
|
|
@@ -2316,7 +1613,7 @@ declare function graphFromSpec(naturalLanguage: string, adapter: LLMAdapter, opt
|
|
|
2316
1613
|
* Reactive variant of {@link graphFromSpec}: re-invokes the LLM and
|
|
2317
1614
|
* recompiles the graph whenever `input` emits a new natural-language
|
|
2318
1615
|
* description. Useful inside the harness or refine loop when the spec text
|
|
2319
|
-
* itself is a reactive value (e.g. fed by a `
|
|
1616
|
+
* itself is a reactive value (e.g. fed by a `node([], { initial: ... })` knob, a memory
|
|
2320
1617
|
* snapshot, or an upstream `promptNode` output).
|
|
2321
1618
|
*
|
|
2322
1619
|
* **Supersede:** when the input changes mid-flight, switchMap tears the
|
|
@@ -2477,204 +1774,4 @@ type GraphDefValidation = {
|
|
|
2477
1774
|
*/
|
|
2478
1775
|
declare function validateGraphDef(def: unknown): GraphDefValidation;
|
|
2479
1776
|
|
|
2480
|
-
|
|
2481
|
-
* AI surface patterns (roadmap §4.4).
|
|
2482
|
-
*
|
|
2483
|
-
* Domain-layer factories for LLM-backed agents, chat, tool registries, and
|
|
2484
|
-
* agentic memory. Composed from core + extra + Phase 3–4.3 primitives.
|
|
2485
|
-
*
|
|
2486
|
-
* This file is the public barrel — it re-exports symbols from the sibling
|
|
2487
|
-
* folders (`prompts/`, `extractors/`, `safety/`, `agents/`, `memory/`,
|
|
2488
|
-
* `graph-integration/`, and the existing `adapters/` tree). No implementation
|
|
2489
|
-
* code lives here; see each sibling folder for the actual primitives.
|
|
2490
|
-
*
|
|
2491
|
-
* @module
|
|
2492
|
-
*/
|
|
2493
|
-
|
|
2494
|
-
declare const index_AdapterProvider: typeof AdapterProvider;
|
|
2495
|
-
type index_AdapterStats = AdapterStats;
|
|
2496
|
-
declare const index_AdapterTier: typeof AdapterTier;
|
|
2497
|
-
type index_AdmissionScore3DOptions = AdmissionScore3DOptions;
|
|
2498
|
-
type index_AdmissionScoredOptions<Dims extends string, TRaw = unknown> = AdmissionScoredOptions<Dims, TRaw>;
|
|
2499
|
-
type index_AdmissionScores = AdmissionScores;
|
|
2500
|
-
type index_AdmissionThresholds<Dims extends string> = AdmissionThresholds<Dims>;
|
|
2501
|
-
type index_AgentLoopGraph = AgentLoopGraph;
|
|
2502
|
-
declare const index_AgentLoopGraph: typeof AgentLoopGraph;
|
|
2503
|
-
type index_AgentLoopOptions = AgentLoopOptions;
|
|
2504
|
-
type index_AgentLoopStatus = AgentLoopStatus;
|
|
2505
|
-
type index_AgentMemoryGraph<TMem = unknown> = AgentMemoryGraph<TMem>;
|
|
2506
|
-
type index_AgentMemoryOptions<TMem = unknown> = AgentMemoryOptions<TMem>;
|
|
2507
|
-
declare const index_AllTiersExhaustedError: typeof AllTiersExhaustedError;
|
|
2508
|
-
type index_AnthropicAdapterOptions = AnthropicAdapterOptions;
|
|
2509
|
-
type index_AnthropicSdkLike = AnthropicSdkLike;
|
|
2510
|
-
type index_BudgetCaps = BudgetCaps;
|
|
2511
|
-
type index_BudgetExhaustedError = BudgetExhaustedError;
|
|
2512
|
-
declare const index_BudgetExhaustedError: typeof BudgetExhaustedError;
|
|
2513
|
-
type index_BudgetGateBundle = BudgetGateBundle;
|
|
2514
|
-
type index_BudgetTotals = BudgetTotals;
|
|
2515
|
-
type index_CallStatsEvent = CallStatsEvent;
|
|
2516
|
-
declare const index_CapabilitiesRegistry: typeof CapabilitiesRegistry;
|
|
2517
|
-
declare const index_CascadeExhaustionReport: typeof CascadeExhaustionReport;
|
|
2518
|
-
declare const index_CascadingLlmAdapterOptions: typeof CascadingLlmAdapterOptions;
|
|
2519
|
-
declare const index_ChatMessage: typeof ChatMessage;
|
|
2520
|
-
type index_ChatStreamGraph = ChatStreamGraph;
|
|
2521
|
-
declare const index_ChatStreamGraph: typeof ChatStreamGraph;
|
|
2522
|
-
type index_ChatStreamOptions = ChatStreamOptions;
|
|
2523
|
-
declare const index_CircuitOpenError: typeof CircuitOpenError;
|
|
2524
|
-
type index_ContentDecision = ContentDecision;
|
|
2525
|
-
type index_ContentGateOptions = ContentGateOptions;
|
|
2526
|
-
type index_CostMeterOptions = CostMeterOptions;
|
|
2527
|
-
type index_CostMeterReading = CostMeterReading;
|
|
2528
|
-
declare const index_CreateAdapterOptions: typeof CreateAdapterOptions;
|
|
2529
|
-
declare const index_DEFAULT_DECAY_RATE: typeof DEFAULT_DECAY_RATE;
|
|
2530
|
-
type index_DryRunAdapterOptions = DryRunAdapterOptions;
|
|
2531
|
-
type index_ExtractedToolCall = ExtractedToolCall;
|
|
2532
|
-
declare const index_FallbackAdapterOptions: typeof FallbackAdapterOptions;
|
|
2533
|
-
declare const index_FallbackFixture: typeof FallbackFixture;
|
|
2534
|
-
declare const index_FallbackMissError: typeof FallbackMissError;
|
|
2535
|
-
declare const index_FallbackMissPolicy: typeof FallbackMissPolicy;
|
|
2536
|
-
type index_FrozenContextOptions = FrozenContextOptions;
|
|
2537
|
-
type index_GatedStreamHandle<T> = GatedStreamHandle<T>;
|
|
2538
|
-
type index_GatedStreamOptions = GatedStreamOptions;
|
|
2539
|
-
type index_GaugesAsContextOptions = GaugesAsContextOptions;
|
|
2540
|
-
type index_GoogleAdapterOptions = GoogleAdapterOptions;
|
|
2541
|
-
type index_GoogleSdkLike = GoogleSdkLike;
|
|
2542
|
-
type index_GoogleSdkRequestConfig = GoogleSdkRequestConfig;
|
|
2543
|
-
type index_GoogleSdkRequestParams = GoogleSdkRequestParams;
|
|
2544
|
-
type index_GraphDefValidation = GraphDefValidation;
|
|
2545
|
-
type index_GraphFromSpecOptions = GraphFromSpecOptions;
|
|
2546
|
-
type index_HandoffOptions = HandoffOptions;
|
|
2547
|
-
type index_HttpErrorLike = HttpErrorLike;
|
|
2548
|
-
type index_KeywordFlag = KeywordFlag;
|
|
2549
|
-
type index_KeywordFlagExtractorOptions = KeywordFlagExtractorOptions;
|
|
2550
|
-
type index_KnobsAsToolsResult = KnobsAsToolsResult;
|
|
2551
|
-
declare const index_LLMAdapter: typeof LLMAdapter;
|
|
2552
|
-
type index_LLMConsolidatorOptions = LLMConsolidatorOptions;
|
|
2553
|
-
type index_LLMExtractorOptions = LLMExtractorOptions;
|
|
2554
|
-
declare const index_LLMInvokeOptions: typeof LLMInvokeOptions;
|
|
2555
|
-
declare const index_LLMResponse: typeof LLMResponse;
|
|
2556
|
-
type index_LLMTimeoutError = LLMTimeoutError;
|
|
2557
|
-
declare const index_LLMTimeoutError: typeof LLMTimeoutError;
|
|
2558
|
-
type index_McpToolSchema = McpToolSchema;
|
|
2559
|
-
type index_MemoryRetrievalBundle<TMem> = MemoryRetrievalBundle<TMem>;
|
|
2560
|
-
type index_MemoryRetrievalOptions<TMem> = MemoryRetrievalOptions<TMem>;
|
|
2561
|
-
type index_MemoryTier = MemoryTier;
|
|
2562
|
-
type index_MemoryTiersBundle<TMem> = MemoryTiersBundle<TMem>;
|
|
2563
|
-
type index_MemoryTiersOptions<TMem> = MemoryTiersOptions<TMem>;
|
|
2564
|
-
type index_MemoryWithKGOptions<TMem> = MemoryWithKGOptions<TMem>;
|
|
2565
|
-
type index_MemoryWithTiersOptions<TMem> = MemoryWithTiersOptions<TMem>;
|
|
2566
|
-
type index_MemoryWithVectorsOptions<TMem> = MemoryWithVectorsOptions<TMem>;
|
|
2567
|
-
declare const index_ModelCapabilities: typeof ModelCapabilities;
|
|
2568
|
-
declare const index_ModelFeatures: typeof ModelFeatures;
|
|
2569
|
-
declare const index_ModelLimits: typeof ModelLimits;
|
|
2570
|
-
declare const index_ModelPricing: typeof ModelPricing;
|
|
2571
|
-
declare const index_OpenAICompatAdapterOptions: typeof OpenAICompatAdapterOptions;
|
|
2572
|
-
declare const index_OpenAICompatPreset: typeof OpenAICompatPreset;
|
|
2573
|
-
declare const index_OpenAISdkLike: typeof OpenAISdkLike;
|
|
2574
|
-
type index_OpenAIToolSchema = OpenAIToolSchema;
|
|
2575
|
-
declare const index_PriceBreakdown: typeof PriceBreakdown;
|
|
2576
|
-
declare const index_PricingFn: typeof PricingFn;
|
|
2577
|
-
declare const index_PricingRegistry: typeof PricingRegistry;
|
|
2578
|
-
type index_PromptCallOptions = PromptCallOptions;
|
|
2579
|
-
type index_PromptNodeOptions = PromptNodeOptions;
|
|
2580
|
-
declare const index_Rate: typeof Rate;
|
|
2581
|
-
type index_RedactorOptions = RedactorOptions;
|
|
2582
|
-
declare const index_ReplayCacheKeyContext: typeof ReplayCacheKeyContext;
|
|
2583
|
-
declare const index_ReplayCacheMissError: typeof ReplayCacheMissError;
|
|
2584
|
-
declare const index_ReplayCacheMode: typeof ReplayCacheMode;
|
|
2585
|
-
type index_ResilientAdapterBundle = ResilientAdapterBundle;
|
|
2586
|
-
type index_ResilientAdapterOptions = ResilientAdapterOptions;
|
|
2587
|
-
type index_RetrievalEntry<TMem> = RetrievalEntry<TMem>;
|
|
2588
|
-
type index_RetrievalPipelineOptions<TMem> = RetrievalPipelineOptions<TMem>;
|
|
2589
|
-
type index_RetrievalQuery = RetrievalQuery;
|
|
2590
|
-
type index_RetrievalTrace<TMem> = RetrievalTrace<TMem>;
|
|
2591
|
-
type index_StampedDelta = StampedDelta;
|
|
2592
|
-
type index_StrategyOperation = StrategyOperation;
|
|
2593
|
-
type index_StrategyPlan = StrategyPlan;
|
|
2594
|
-
declare const index_StreamDelta: typeof StreamDelta;
|
|
2595
|
-
type index_StreamingPromptNodeHandle<T> = StreamingPromptNodeHandle<T>;
|
|
2596
|
-
type index_StreamingPromptNodeOptions = StreamingPromptNodeOptions;
|
|
2597
|
-
type index_SuggestStrategyOptions = SuggestStrategyOptions;
|
|
2598
|
-
type index_SystemPromptHandle = SystemPromptHandle;
|
|
2599
|
-
declare const index_TieredRate: typeof TieredRate;
|
|
2600
|
-
declare const index_TokenUsage: typeof TokenUsage;
|
|
2601
|
-
declare const index_ToolCall: typeof ToolCall;
|
|
2602
|
-
declare const index_ToolDefinition: typeof ToolDefinition;
|
|
2603
|
-
type index_ToolExecutionOptions = ToolExecutionOptions;
|
|
2604
|
-
type index_ToolRegistryGraph = ToolRegistryGraph;
|
|
2605
|
-
declare const index_ToolRegistryGraph: typeof ToolRegistryGraph;
|
|
2606
|
-
type index_ToolRegistryOptions = ToolRegistryOptions;
|
|
2607
|
-
type index_ToolResult = ToolResult;
|
|
2608
|
-
type index_ToolSelectorOptions = ToolSelectorOptions;
|
|
2609
|
-
type index_WithBreakerOptions = WithBreakerOptions;
|
|
2610
|
-
type index_WithBudgetGateOptions = WithBudgetGateOptions;
|
|
2611
|
-
type index_WithDryRunBundle = WithDryRunBundle;
|
|
2612
|
-
type index_WithDryRunOptions = WithDryRunOptions;
|
|
2613
|
-
type index_WithRateLimiterOptions = WithRateLimiterOptions;
|
|
2614
|
-
declare const index_WithReplayCacheOptions: typeof WithReplayCacheOptions;
|
|
2615
|
-
type index_WithRetryOptions = WithRetryOptions;
|
|
2616
|
-
declare const index_admissionFilter3D: typeof admissionFilter3D;
|
|
2617
|
-
declare const index_admissionScored: typeof admissionScored;
|
|
2618
|
-
declare const index_agentLoop: typeof agentLoop;
|
|
2619
|
-
declare const index_agentMemory: typeof agentMemory;
|
|
2620
|
-
declare const index_anthropicAdapter: typeof anthropicAdapter;
|
|
2621
|
-
declare const index_canonicalJson: typeof canonicalJson;
|
|
2622
|
-
declare const index_cascadingLlmAdapter: typeof cascadingLlmAdapter;
|
|
2623
|
-
declare const index_chatStream: typeof chatStream;
|
|
2624
|
-
declare const index_composePricing: typeof composePricing;
|
|
2625
|
-
declare const index_computePrice: typeof computePrice;
|
|
2626
|
-
declare const index_contentGate: typeof contentGate;
|
|
2627
|
-
declare const index_costMeterExtractor: typeof costMeterExtractor;
|
|
2628
|
-
declare const index_createAdapter: typeof createAdapter;
|
|
2629
|
-
declare const index_createCapabilitiesRegistry: typeof createCapabilitiesRegistry;
|
|
2630
|
-
declare const index_createPricingRegistry: typeof createPricingRegistry;
|
|
2631
|
-
declare const index_dryRunAdapter: typeof dryRunAdapter;
|
|
2632
|
-
declare const index_fallbackAdapter: typeof fallbackAdapter;
|
|
2633
|
-
declare const index_frozenContext: typeof frozenContext;
|
|
2634
|
-
declare const index_gatedStream: typeof gatedStream;
|
|
2635
|
-
declare const index_gaugesAsContext: typeof gaugesAsContext;
|
|
2636
|
-
declare const index_googleAdapter: typeof googleAdapter;
|
|
2637
|
-
declare const index_graphFromSpec: typeof graphFromSpec;
|
|
2638
|
-
declare const index_graphFromSpecReactive: typeof graphFromSpecReactive;
|
|
2639
|
-
declare const index_handoff: typeof handoff;
|
|
2640
|
-
declare const index_keywordFlagExtractor: typeof keywordFlagExtractor;
|
|
2641
|
-
declare const index_knobsAsTools: typeof knobsAsTools;
|
|
2642
|
-
declare const index_llmConsolidator: typeof llmConsolidator;
|
|
2643
|
-
declare const index_llmExtractor: typeof llmExtractor;
|
|
2644
|
-
declare const index_memoryRetrieval: typeof memoryRetrieval;
|
|
2645
|
-
declare const index_memoryWithKG: typeof memoryWithKG;
|
|
2646
|
-
declare const index_memoryWithTiers: typeof memoryWithTiers;
|
|
2647
|
-
declare const index_memoryWithVectors: typeof memoryWithVectors;
|
|
2648
|
-
declare const index_observableAdapter: typeof observableAdapter;
|
|
2649
|
-
declare const index_openAICompatAdapter: typeof openAICompatAdapter;
|
|
2650
|
-
declare const index_parseRateLimitFromError: typeof parseRateLimitFromError;
|
|
2651
|
-
declare const index_pricingFor: typeof pricingFor;
|
|
2652
|
-
declare const index_promptCall: typeof promptCall;
|
|
2653
|
-
declare const index_promptNode: typeof promptNode;
|
|
2654
|
-
declare const index_redactor: typeof redactor;
|
|
2655
|
-
declare const index_registryPricing: typeof registryPricing;
|
|
2656
|
-
declare const index_resilientAdapter: typeof resilientAdapter;
|
|
2657
|
-
declare const index_streamExtractor: typeof streamExtractor;
|
|
2658
|
-
declare const index_streamingPromptNode: typeof streamingPromptNode;
|
|
2659
|
-
declare const index_suggestStrategy: typeof suggestStrategy;
|
|
2660
|
-
declare const index_suggestStrategyReactive: typeof suggestStrategyReactive;
|
|
2661
|
-
declare const index_systemPromptBuilder: typeof systemPromptBuilder;
|
|
2662
|
-
declare const index_tier: typeof tier;
|
|
2663
|
-
declare const index_toolCallExtractor: typeof toolCallExtractor;
|
|
2664
|
-
declare const index_toolExecution: typeof toolExecution;
|
|
2665
|
-
declare const index_toolRegistry: typeof toolRegistry;
|
|
2666
|
-
declare const index_toolSelector: typeof toolSelector;
|
|
2667
|
-
declare const index_validateGraphDef: typeof validateGraphDef;
|
|
2668
|
-
declare const index_withBreaker: typeof withBreaker;
|
|
2669
|
-
declare const index_withBudgetGate: typeof withBudgetGate;
|
|
2670
|
-
declare const index_withDryRun: typeof withDryRun;
|
|
2671
|
-
declare const index_withRateLimiter: typeof withRateLimiter;
|
|
2672
|
-
declare const index_withReplayCache: typeof withReplayCache;
|
|
2673
|
-
declare const index_withRetry: typeof withRetry;
|
|
2674
|
-
declare const index_withTimeout: typeof withTimeout;
|
|
2675
|
-
declare const index_zeroPrice: typeof zeroPrice;
|
|
2676
|
-
declare namespace index {
|
|
2677
|
-
export { index_AdapterProvider as AdapterProvider, type index_AdapterStats as AdapterStats, index_AdapterTier as AdapterTier, type index_AdmissionScore3DOptions as AdmissionScore3DOptions, type index_AdmissionScoredOptions as AdmissionScoredOptions, type index_AdmissionScores as AdmissionScores, type index_AdmissionThresholds as AdmissionThresholds, index_AgentLoopGraph as AgentLoopGraph, type index_AgentLoopOptions as AgentLoopOptions, type index_AgentLoopStatus as AgentLoopStatus, type index_AgentMemoryGraph as AgentMemoryGraph, type index_AgentMemoryOptions as AgentMemoryOptions, index_AllTiersExhaustedError as AllTiersExhaustedError, type index_AnthropicAdapterOptions as AnthropicAdapterOptions, type index_AnthropicSdkLike as AnthropicSdkLike, type index_BudgetCaps as BudgetCaps, index_BudgetExhaustedError as BudgetExhaustedError, type index_BudgetGateBundle as BudgetGateBundle, type index_BudgetTotals as BudgetTotals, type index_CallStatsEvent as CallStatsEvent, index_CapabilitiesRegistry as CapabilitiesRegistry, index_CascadeExhaustionReport as CascadeExhaustionReport, index_CascadingLlmAdapterOptions as CascadingLlmAdapterOptions, index_ChatMessage as ChatMessage, index_ChatStreamGraph as ChatStreamGraph, type index_ChatStreamOptions as ChatStreamOptions, index_CircuitOpenError as CircuitOpenError, type index_ContentDecision as ContentDecision, type index_ContentGateOptions as ContentGateOptions, type index_CostMeterOptions as CostMeterOptions, type index_CostMeterReading as CostMeterReading, index_CreateAdapterOptions as CreateAdapterOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, type index_DryRunAdapterOptions as DryRunAdapterOptions, type index_ExtractedToolCall as ExtractedToolCall, index_FallbackAdapterOptions as FallbackAdapterOptions, index_FallbackFixture as FallbackFixture, index_FallbackMissError as FallbackMissError, index_FallbackMissPolicy as FallbackMissPolicy, type index_FrozenContextOptions as FrozenContextOptions, type index_GatedStreamHandle as GatedStreamHandle, type index_GatedStreamOptions as GatedStreamOptions, type index_GaugesAsContextOptions as GaugesAsContextOptions, type index_GoogleAdapterOptions as GoogleAdapterOptions, type index_GoogleSdkLike as GoogleSdkLike, type index_GoogleSdkRequestConfig as GoogleSdkRequestConfig, type index_GoogleSdkRequestParams as GoogleSdkRequestParams, type index_GraphDefValidation as GraphDefValidation, type index_GraphFromSpecOptions as GraphFromSpecOptions, type index_HandoffOptions as HandoffOptions, type index_HttpErrorLike as HttpErrorLike, type index_KeywordFlag as KeywordFlag, type index_KeywordFlagExtractorOptions as KeywordFlagExtractorOptions, type index_KnobsAsToolsResult as KnobsAsToolsResult, index_LLMAdapter as LLMAdapter, type index_LLMConsolidatorOptions as LLMConsolidatorOptions, type index_LLMExtractorOptions as LLMExtractorOptions, index_LLMInvokeOptions as LLMInvokeOptions, index_LLMResponse as LLMResponse, index_LLMTimeoutError as LLMTimeoutError, type index_McpToolSchema as McpToolSchema, type index_MemoryRetrievalBundle as MemoryRetrievalBundle, type index_MemoryRetrievalOptions as MemoryRetrievalOptions, type index_MemoryTier as MemoryTier, type index_MemoryTiersBundle as MemoryTiersBundle, type index_MemoryTiersOptions as MemoryTiersOptions, type index_MemoryWithKGOptions as MemoryWithKGOptions, type index_MemoryWithTiersOptions as MemoryWithTiersOptions, type index_MemoryWithVectorsOptions as MemoryWithVectorsOptions, index_ModelCapabilities as ModelCapabilities, index_ModelFeatures as ModelFeatures, index_ModelLimits as ModelLimits, index_ModelPricing as ModelPricing, index_OpenAICompatAdapterOptions as OpenAICompatAdapterOptions, index_OpenAICompatPreset as OpenAICompatPreset, index_OpenAISdkLike as OpenAISdkLike, type index_OpenAIToolSchema as OpenAIToolSchema, index_PriceBreakdown as PriceBreakdown, index_PricingFn as PricingFn, index_PricingRegistry as PricingRegistry, type index_PromptCallOptions as PromptCallOptions, type index_PromptNodeOptions as PromptNodeOptions, index_Rate as Rate, type index_RedactorOptions as RedactorOptions, index_ReplayCacheKeyContext as ReplayCacheKeyContext, index_ReplayCacheMissError as ReplayCacheMissError, index_ReplayCacheMode as ReplayCacheMode, type index_ResilientAdapterBundle as ResilientAdapterBundle, type index_ResilientAdapterOptions as ResilientAdapterOptions, type index_RetrievalEntry as RetrievalEntry, type index_RetrievalPipelineOptions as RetrievalPipelineOptions, type index_RetrievalQuery as RetrievalQuery, type index_RetrievalTrace as RetrievalTrace, type index_StampedDelta as StampedDelta, type index_StrategyOperation as StrategyOperation, type index_StrategyPlan as StrategyPlan, index_StreamDelta as StreamDelta, type index_StreamingPromptNodeHandle as StreamingPromptNodeHandle, type index_StreamingPromptNodeOptions as StreamingPromptNodeOptions, type index_SuggestStrategyOptions as SuggestStrategyOptions, type index_SystemPromptHandle as SystemPromptHandle, index_TieredRate as TieredRate, index_TokenUsage as TokenUsage, index_ToolCall as ToolCall, index_ToolDefinition as ToolDefinition, type index_ToolExecutionOptions as ToolExecutionOptions, index_ToolRegistryGraph as ToolRegistryGraph, type index_ToolRegistryOptions as ToolRegistryOptions, type index_ToolResult as ToolResult, type index_ToolSelectorOptions as ToolSelectorOptions, type index_WithBreakerOptions as WithBreakerOptions, type index_WithBudgetGateOptions as WithBudgetGateOptions, type index_WithDryRunBundle as WithDryRunBundle, type index_WithDryRunOptions as WithDryRunOptions, type index_WithRateLimiterOptions as WithRateLimiterOptions, index_WithReplayCacheOptions as WithReplayCacheOptions, type index_WithRetryOptions as WithRetryOptions, index_admissionFilter3D as admissionFilter3D, index_admissionScored as admissionScored, index_agentLoop as agentLoop, index_agentMemory as agentMemory, index_anthropicAdapter as anthropicAdapter, index_canonicalJson as canonicalJson, index_cascadingLlmAdapter as cascadingLlmAdapter, index_chatStream as chatStream, index_composePricing as composePricing, index_computePrice as computePrice, index_contentGate as contentGate, index_costMeterExtractor as costMeterExtractor, index_createAdapter as createAdapter, index_createCapabilitiesRegistry as createCapabilitiesRegistry, index_createPricingRegistry as createPricingRegistry, index_dryRunAdapter as dryRunAdapter, index_fallbackAdapter as fallbackAdapter, index_frozenContext as frozenContext, index_gatedStream as gatedStream, index_gaugesAsContext as gaugesAsContext, index_googleAdapter as googleAdapter, index_graphFromSpec as graphFromSpec, index_graphFromSpecReactive as graphFromSpecReactive, index_handoff as handoff, index_keywordFlagExtractor as keywordFlagExtractor, index_knobsAsTools as knobsAsTools, index_llmConsolidator as llmConsolidator, index_llmExtractor as llmExtractor, index_memoryRetrieval as memoryRetrieval, index_memoryWithKG as memoryWithKG, index_memoryWithTiers as memoryWithTiers, index_memoryWithVectors as memoryWithVectors, index_observableAdapter as observableAdapter, index_openAICompatAdapter as openAICompatAdapter, index_parseRateLimitFromError as parseRateLimitFromError, index_pricingFor as pricingFor, index_promptCall as promptCall, index_promptNode as promptNode, index_redactor as redactor, index_registryPricing as registryPricing, index_resilientAdapter as resilientAdapter, index_streamExtractor as streamExtractor, index_streamingPromptNode as streamingPromptNode, index_suggestStrategy as suggestStrategy, index_suggestStrategyReactive as suggestStrategyReactive, index_systemPromptBuilder as systemPromptBuilder, index_tier as tier, index_toolCallExtractor as toolCallExtractor, index_toolExecution as toolExecution, index_toolRegistry as toolRegistry, index_toolSelector as toolSelector, index_validateGraphDef as validateGraphDef, index_withBreaker as withBreaker, index_withBudgetGate as withBudgetGate, index_withDryRun as withDryRun, index_withRateLimiter as withRateLimiter, index_withReplayCache as withReplayCache, index_withRetry as withRetry, index_withTimeout as withTimeout, index_zeroPrice as zeroPrice };
|
|
2678
|
-
}
|
|
2679
|
-
|
|
2680
|
-
export { type OpenAIToolSchema as $, type AdapterStats as A, type BudgetCaps as B, type CallStatsEvent as C, type DryRunAdapterOptions as D, type ExtractedToolCall as E, type FrozenContextOptions as F, type GatedStreamHandle as G, type GoogleSdkRequestParams as H, type GraphDefValidation as I, type GraphFromSpecOptions as J, type HandoffOptions as K, type HttpErrorLike as L, type KeywordFlag as M, type KeywordFlagExtractorOptions as N, type KnobsAsToolsResult as O, type LLMConsolidatorOptions as P, type LLMExtractorOptions as Q, LLMTimeoutError as R, type McpToolSchema as S, type MemoryRetrievalBundle as T, type MemoryRetrievalOptions as U, type MemoryTier as V, type MemoryTiersBundle as W, type MemoryTiersOptions as X, type MemoryWithKGOptions as Y, type MemoryWithTiersOptions as Z, type MemoryWithVectorsOptions as _, type AdmissionScore3DOptions as a, toolExecution as a$, type PromptCallOptions as a0, type PromptNodeOptions as a1, type RedactorOptions as a2, type ResilientAdapterBundle as a3, type ResilientAdapterOptions as a4, type RetrievalEntry as a5, type RetrievalPipelineOptions as a6, type RetrievalQuery as a7, type RetrievalTrace as a8, type StampedDelta as a9, frozenContext as aA, gatedStream as aB, gaugesAsContext as aC, googleAdapter as aD, graphFromSpec as aE, graphFromSpecReactive as aF, handoff as aG, keywordFlagExtractor as aH, knobsAsTools as aI, llmConsolidator as aJ, llmExtractor as aK, memoryRetrieval as aL, memoryWithKG as aM, memoryWithTiers as aN, memoryWithVectors as aO, observableAdapter as aP, parseRateLimitFromError as aQ, promptCall as aR, promptNode as aS, redactor as aT, resilientAdapter as aU, streamExtractor as aV, streamingPromptNode as aW, suggestStrategy as aX, suggestStrategyReactive as aY, systemPromptBuilder as aZ, toolCallExtractor as a_, type StrategyOperation as aa, type StrategyPlan as ab, type StreamingPromptNodeHandle as ac, type StreamingPromptNodeOptions as ad, type SuggestStrategyOptions as ae, type SystemPromptHandle as af, type ToolExecutionOptions as ag, ToolRegistryGraph as ah, type ToolRegistryOptions as ai, type ToolResult as aj, type ToolSelectorOptions as ak, type WithBreakerOptions as al, type WithBudgetGateOptions as am, type WithDryRunBundle as an, type WithDryRunOptions as ao, type WithRateLimiterOptions as ap, type WithRetryOptions as aq, admissionFilter3D as ar, admissionScored as as, agentLoop as at, agentMemory as au, anthropicAdapter as av, chatStream as aw, contentGate as ax, costMeterExtractor as ay, dryRunAdapter as az, type AdmissionScoredOptions as b, toolRegistry as b0, toolSelector as b1, validateGraphDef as b2, withBreaker as b3, withBudgetGate as b4, withDryRun as b5, withRateLimiter as b6, withRetry as b7, withTimeout as b8, type AdmissionScores as c, type AdmissionThresholds as d, AgentLoopGraph as e, type AgentLoopOptions as f, type AgentLoopStatus as g, type AgentMemoryGraph as h, index as i, type AgentMemoryOptions as j, type AnthropicAdapterOptions as k, type AnthropicSdkLike as l, BudgetExhaustedError as m, type BudgetGateBundle as n, type BudgetTotals as o, ChatStreamGraph as p, type ChatStreamOptions as q, type ContentDecision as r, type ContentGateOptions as s, type CostMeterOptions as t, type CostMeterReading as u, type GatedStreamOptions as v, type GaugesAsContextOptions as w, type GoogleAdapterOptions as x, type GoogleSdkLike as y, type GoogleSdkRequestConfig as z };
|
|
1777
|
+
export { type AdapterStats, type AdmissionScore3DOptions, type AdmissionScoredOptions, type AdmissionScores, type AdmissionThresholds, type AnthropicAdapterOptions, type AnthropicSdkLike, type BudgetCaps, BudgetExhaustedError, type BudgetTotals, type CallStatsEvent, CascadeExhaustionReport, ChatMessage, type ContentDecision, type ContentGateOptions, type CostMeterOptions, type CostMeterReading, type DryRunAdapterOptions, type ExtractedToolCall, type FrozenContextOptions, type GatedStreamHandle, type GatedStreamOptions, type GaugesAsContextOptions, type GoogleAdapterOptions, type GoogleSdkLike, type GoogleSdkRequestConfig, type GoogleSdkRequestParams, type GraphDefValidation, type GraphFromSpecOptions, type HandoffOptions, type HttpErrorLike, type KeywordFlag, type KeywordFlagExtractorOptions, type KnobsAsToolsResult, LLMAdapter, type LLMBudgetGateBundle, type LLMConsolidatorOptions, type LLMExtractorOptions, LLMInvokeOptions, LLMResponse, LLMTimeoutError, type McpToolSchema, type OpenAIToolSchema, PricingFn, type PromptCallOptions, type PromptNodeOptions, type RedactorOptions, type ResilientAdapterBundle, type ResilientAdapterOptions, type StampedDelta, type StrategyOperation, type StrategyPlan, StreamDelta, type StreamingPromptNodeHandle, type StreamingPromptNodeOptions, type SuggestStrategyOptions, type SystemPromptHandle, TokenUsage, ToolDefinition, type ToolSelectorOptions, type WithBreakerOptions, type WithBudgetGateOptions, type WithDryRunBundle, type WithDryRunOptions, type WithRateLimiterOptions, WithReplayCacheOptions, type WithRetryOptions, admissionFilter3D, admissionScored, anthropicAdapter, contentGate, costMeterExtractor, dryRunAdapter, frozenContext, gatedStream, gaugesAsContext, googleAdapter, graphFromSpec, graphFromSpecReactive, handoff, keywordFlagExtractor, knobsAsTools, llmConsolidator, llmExtractor, observableAdapter, parseRateLimitFromError, promptCall, promptNode, redactor, resilientAdapter, streamExtractor, streamingPromptNode, suggestStrategy, suggestStrategyReactive, systemPromptBuilder, toolCallExtractor, toolSelector, validateGraphDef, withBudgetGate, withDryRun, withLLMBreaker, withLLMTimeout, withRateLimiter, withRetry };
|