@theokit/sdk 4.37.2 → 4.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +309 -72
- package/dist/a2a/index.cjs +3 -3
- package/dist/a2a/index.js +1 -1
- package/dist/a2a/subagent.d.cts +1 -0
- package/dist/a2a/subagent.d.ts +1 -0
- package/dist/{agent-SmxntivO.d.ts → agent-D7bRK9Kg.d.cts} +108 -41
- package/dist/agent-I3EZZR6S.cjs +55 -0
- package/dist/{agent-IE6IE4NW.cjs.map → agent-I3EZZR6S.cjs.map} +1 -1
- package/dist/agent-KKZYLY5D.js +46 -0
- package/dist/{agent-DW2J37IH.js.map → agent-KKZYLY5D.js.map} +1 -1
- package/dist/{agent-DGv1-d81.d.cts → agent-ZCZa7YQv.d.ts} +108 -41
- package/dist/agent-session-store-N4TVKHBU.cjs +23 -0
- package/dist/agent-session-store-N4TVKHBU.cjs.map +1 -0
- package/dist/agent-session-store-RHMHP5DG.js +6 -0
- package/dist/agent-session-store-RHMHP5DG.js.map +1 -0
- package/dist/agent.d.ts +38 -2
- package/dist/auth/index.cjs +15 -15
- package/dist/auth/index.js +4 -4
- package/dist/{batch-SY5GZLFD.js → batch-6KQM3EBA.js} +12 -12
- package/dist/batch-6KQM3EBA.js.map +1 -0
- package/dist/{batch-3SEPDXCU.cjs → batch-X6JKGDPK.cjs} +26 -26
- package/dist/batch-X6JKGDPK.cjs.map +1 -0
- package/dist/chunk-2RW7K6FN.cjs +34 -0
- package/dist/chunk-2RW7K6FN.cjs.map +1 -0
- package/dist/chunk-3I4B3OIX.js +105 -0
- package/dist/chunk-3I4B3OIX.js.map +1 -0
- package/dist/{chunk-2WFB5ZOX.js → chunk-42IFCKQZ.js} +5 -5
- package/dist/{chunk-2WFB5ZOX.js.map → chunk-42IFCKQZ.js.map} +1 -1
- package/dist/{chunk-DCJ5MCJ3.js → chunk-4F7JQZOX.js} +9 -36
- package/dist/chunk-4F7JQZOX.js.map +1 -0
- package/dist/{chunk-JNIWFCKI.js → chunk-4JSZYSGW.js} +3 -3
- package/dist/{chunk-JNIWFCKI.js.map → chunk-4JSZYSGW.js.map} +1 -1
- package/dist/{chunk-EEZ7CFMM.js → chunk-5KOW3GLE.js} +2 -2
- package/dist/chunk-5KOW3GLE.js.map +1 -0
- package/dist/{chunk-6VP3XGEK.js → chunk-65ONFZWM.js} +12 -11
- package/dist/chunk-65ONFZWM.js.map +1 -0
- package/dist/{chunk-CSZRJ4RE.js → chunk-6EEYRFJC.js} +5 -5
- package/dist/{chunk-CSZRJ4RE.js.map → chunk-6EEYRFJC.js.map} +1 -1
- package/dist/{chunk-FAY3QDGC.cjs → chunk-6LGQECT7.cjs} +11 -11
- package/dist/{chunk-FAY3QDGC.cjs.map → chunk-6LGQECT7.cjs.map} +1 -1
- package/dist/{chunk-PAEJPLVN.cjs → chunk-6NEHIHFU.cjs} +4 -4
- package/dist/{chunk-PAEJPLVN.cjs.map → chunk-6NEHIHFU.cjs.map} +1 -1
- package/dist/chunk-6YNYA7GD.cjs +103 -0
- package/dist/chunk-6YNYA7GD.cjs.map +1 -0
- package/dist/chunk-74D7KSBP.cjs +112 -0
- package/dist/chunk-74D7KSBP.cjs.map +1 -0
- package/dist/{chunk-FK4EJD2I.cjs → chunk-75DSEWTJ.cjs} +7 -7
- package/dist/{chunk-FK4EJD2I.cjs.map → chunk-75DSEWTJ.cjs.map} +1 -1
- package/dist/{chunk-SWIBQFPH.cjs → chunk-7OLG7VI4.cjs} +4 -4
- package/dist/{chunk-SWIBQFPH.cjs.map → chunk-7OLG7VI4.cjs.map} +1 -1
- package/dist/chunk-7U2HAAWB.cjs +199 -0
- package/dist/chunk-7U2HAAWB.cjs.map +1 -0
- package/dist/{chunk-YBFDBOUN.cjs → chunk-7YBJZS5P.cjs} +8 -8
- package/dist/{chunk-YBFDBOUN.cjs.map → chunk-7YBJZS5P.cjs.map} +1 -1
- package/dist/{chunk-GLUWH6JO.js → chunk-AECV3G5Z.js} +4 -4
- package/dist/{chunk-GLUWH6JO.js.map → chunk-AECV3G5Z.js.map} +1 -1
- package/dist/{chunk-UQPDFW4E.js → chunk-AR5MQZ3J.js} +3 -3
- package/dist/{chunk-UQPDFW4E.js.map → chunk-AR5MQZ3J.js.map} +1 -1
- package/dist/{chunk-G2F67XUR.cjs → chunk-B4YA6BRS.cjs} +13 -14
- package/dist/chunk-B4YA6BRS.cjs.map +1 -0
- package/dist/{chunk-LTCOPATU.cjs → chunk-BCQ3E2ZG.cjs} +12 -3
- package/dist/chunk-BCQ3E2ZG.cjs.map +1 -0
- package/dist/{chunk-ALU3KC4G.cjs → chunk-BPN5ONSW.cjs} +223 -277
- package/dist/chunk-BPN5ONSW.cjs.map +1 -0
- package/dist/{chunk-YHZXBDAW.js → chunk-BQDUEG4C.js} +16 -16
- package/dist/{chunk-YHZXBDAW.js.map → chunk-BQDUEG4C.js.map} +1 -1
- package/dist/{chunk-IT3PWBW4.cjs → chunk-BURYFNOM.cjs} +2 -2
- package/dist/chunk-BURYFNOM.cjs.map +1 -0
- package/dist/{chunk-BJMKQOY2.cjs → chunk-C7OP3FAK.cjs} +47 -11
- package/dist/chunk-C7OP3FAK.cjs.map +1 -0
- package/dist/{chunk-XAYVHS2B.cjs → chunk-CEIHCKTO.cjs} +4 -4
- package/dist/chunk-CEIHCKTO.cjs.map +1 -0
- package/dist/{chunk-2423XDPT.cjs → chunk-CN6UX5EV.cjs} +28 -56
- package/dist/chunk-CN6UX5EV.cjs.map +1 -0
- package/dist/{chunk-VNNK6AKU.js → chunk-D7IULBF2.js} +3 -3
- package/dist/chunk-D7IULBF2.js.map +1 -0
- package/dist/chunk-DCXRHCZJ.cjs +118 -0
- package/dist/chunk-DCXRHCZJ.cjs.map +1 -0
- package/dist/{chunk-ICYBIC6N.cjs → chunk-DGLLVCNB.cjs} +4 -4
- package/dist/chunk-DGLLVCNB.cjs.map +1 -0
- package/dist/{chunk-I35DI7ES.js → chunk-DKFGUOWL.js} +3 -3
- package/dist/{chunk-I35DI7ES.js.map → chunk-DKFGUOWL.js.map} +1 -1
- package/dist/{chunk-TQI3KRXZ.cjs → chunk-DMTZ3FII.cjs} +18 -18
- package/dist/{chunk-TQI3KRXZ.cjs.map → chunk-DMTZ3FII.cjs.map} +1 -1
- package/dist/{chunk-QFMXXUUT.js → chunk-DU7DE543.js} +3 -3
- package/dist/{chunk-QFMXXUUT.js.map → chunk-DU7DE543.js.map} +1 -1
- package/dist/{chunk-W4QN5CMG.cjs → chunk-DWY25VLP.cjs} +9 -9
- package/dist/{chunk-W4QN5CMG.cjs.map → chunk-DWY25VLP.cjs.map} +1 -1
- package/dist/chunk-E2FFG33C.js +109 -0
- package/dist/chunk-E2FFG33C.js.map +1 -0
- package/dist/{chunk-QUFSDDNU.cjs → chunk-E4IUN3JB.cjs} +15 -15
- package/dist/{chunk-QUFSDDNU.cjs.map → chunk-E4IUN3JB.cjs.map} +1 -1
- package/dist/{chunk-THEYGCYS.cjs → chunk-ECHGWE47.cjs} +4 -4
- package/dist/chunk-ECHGWE47.cjs.map +1 -0
- package/dist/{chunk-U2WLFOA3.cjs → chunk-ECW2MLEW.cjs} +4 -4
- package/dist/{chunk-U2WLFOA3.cjs.map → chunk-ECW2MLEW.cjs.map} +1 -1
- package/dist/{chunk-MXSMAGDU.js → chunk-ET6PHZRX.js} +33 -26
- package/dist/chunk-ET6PHZRX.js.map +1 -0
- package/dist/{chunk-G6AASL5T.cjs → chunk-FRUBE44B.cjs} +24 -24
- package/dist/{chunk-G6AASL5T.cjs.map → chunk-FRUBE44B.cjs.map} +1 -1
- package/dist/{chunk-3ILFUXNE.cjs → chunk-FWBSDQZ7.cjs} +5 -5
- package/dist/{chunk-3ILFUXNE.cjs.map → chunk-FWBSDQZ7.cjs.map} +1 -1
- package/dist/{chunk-7DXLNNKH.cjs → chunk-G2Q3ZC6C.cjs} +4 -4
- package/dist/{chunk-7DXLNNKH.cjs.map → chunk-G2Q3ZC6C.cjs.map} +1 -1
- package/dist/{chunk-56ZM6P7Z.cjs → chunk-G4XUXSRN.cjs} +12 -12
- package/dist/chunk-G4XUXSRN.cjs.map +1 -0
- package/dist/{chunk-VYJSHGAY.js → chunk-GIRD3RWH.js} +422 -295
- package/dist/chunk-GIRD3RWH.js.map +1 -0
- package/dist/{chunk-NQ4AC2U4.cjs → chunk-HIQFVHC6.cjs} +9 -9
- package/dist/{chunk-NQ4AC2U4.cjs.map → chunk-HIQFVHC6.cjs.map} +1 -1
- package/dist/{chunk-EXQV452X.js → chunk-HWNVAUK4.js} +3 -3
- package/dist/{chunk-EXQV452X.js.map → chunk-HWNVAUK4.js.map} +1 -1
- package/dist/{chunk-P34DHHYQ.cjs → chunk-I53ZQHU6.cjs} +34 -27
- package/dist/chunk-I53ZQHU6.cjs.map +1 -0
- package/dist/{chunk-MHCKWQR3.cjs → chunk-IHFNRNTJ.cjs} +8 -8
- package/dist/{chunk-MHCKWQR3.cjs.map → chunk-IHFNRNTJ.cjs.map} +1 -1
- package/dist/{chunk-W52DKZBR.cjs → chunk-INSFS5GT.cjs} +680 -553
- package/dist/chunk-INSFS5GT.cjs.map +1 -0
- package/dist/{chunk-TAPQWDW2.js → chunk-IVSD7L22.js} +12 -4
- package/dist/chunk-IVSD7L22.js.map +1 -0
- package/dist/{chunk-WDGCZDRG.js → chunk-J3UK2GMN.js} +3 -3
- package/dist/{chunk-WDGCZDRG.js.map → chunk-J3UK2GMN.js.map} +1 -1
- package/dist/{chunk-4YB7B3RP.cjs → chunk-J6T5LWJ4.cjs} +15 -14
- package/dist/chunk-J6T5LWJ4.cjs.map +1 -0
- package/dist/{chunk-XAEAMI5H.js → chunk-JRLXEYR4.js} +21 -5
- package/dist/chunk-JRLXEYR4.js.map +1 -0
- package/dist/{chunk-ZJN6NTHE.js → chunk-JZUPMTJY.js} +3 -3
- package/dist/{chunk-ZJN6NTHE.js.map → chunk-JZUPMTJY.js.map} +1 -1
- package/dist/{chunk-M5ZQBOIZ.js → chunk-KE6XKRLQ.js} +3 -3
- package/dist/{chunk-M5ZQBOIZ.js.map → chunk-KE6XKRLQ.js.map} +1 -1
- package/dist/chunk-KGRIHEDT.js +110 -0
- package/dist/chunk-KGRIHEDT.js.map +1 -0
- package/dist/{chunk-T4QWDOG6.js → chunk-KWUNN5J2.js} +5 -5
- package/dist/{chunk-T4QWDOG6.js.map → chunk-KWUNN5J2.js.map} +1 -1
- package/dist/{chunk-56OXYUZE.js → chunk-KX7JV5KM.js} +3 -3
- package/dist/chunk-KX7JV5KM.js.map +1 -0
- package/dist/{chunk-D4ZUJTFB.cjs → chunk-LALG2K33.cjs} +8 -8
- package/dist/{chunk-D4ZUJTFB.cjs.map → chunk-LALG2K33.cjs.map} +1 -1
- package/dist/{chunk-QGDKZDPN.js → chunk-LGILIGV3.js} +3 -3
- package/dist/{chunk-QGDKZDPN.js.map → chunk-LGILIGV3.js.map} +1 -1
- package/dist/{chunk-HEN5WXXI.js → chunk-LJX2SQV2.js} +6 -6
- package/dist/{chunk-HEN5WXXI.js.map → chunk-LJX2SQV2.js.map} +1 -1
- package/dist/{chunk-SDIBMLL5.js → chunk-MC5EINBV.js} +44 -8
- package/dist/chunk-MC5EINBV.js.map +1 -0
- package/dist/{chunk-F6Y4IEQM.js → chunk-ML5A5DOJ.js} +4 -4
- package/dist/{chunk-F6Y4IEQM.js.map → chunk-ML5A5DOJ.js.map} +1 -1
- package/dist/{chunk-6EDQBX7U.cjs → chunk-N475ETD6.cjs} +17 -17
- package/dist/{chunk-6EDQBX7U.cjs.map → chunk-N475ETD6.cjs.map} +1 -1
- package/dist/{chunk-YPQF26X7.cjs → chunk-OBA6YK2R.cjs} +2 -2
- package/dist/chunk-OBA6YK2R.cjs.map +1 -0
- package/dist/chunk-OXNYIMZZ.js +31 -0
- package/dist/chunk-OXNYIMZZ.js.map +1 -0
- package/dist/{chunk-NFCKEBHI.js → chunk-PI4RO4GR.js} +3 -3
- package/dist/{chunk-NFCKEBHI.js.map → chunk-PI4RO4GR.js.map} +1 -1
- package/dist/{chunk-2ONFGMBV.js → chunk-PY2RQOA7.js} +2 -2
- package/dist/chunk-PY2RQOA7.js.map +1 -0
- package/dist/chunk-QKE556YD.js +197 -0
- package/dist/chunk-QKE556YD.js.map +1 -0
- package/dist/{chunk-FV3YEMQ7.js → chunk-RP5HQVLD.js} +13 -14
- package/dist/chunk-RP5HQVLD.js.map +1 -0
- package/dist/chunk-SCFW5MJZ.js +100 -0
- package/dist/chunk-SCFW5MJZ.js.map +1 -0
- package/dist/{chunk-CD73YHEH.js → chunk-SG5ZWT6C.js} +3 -3
- package/dist/{chunk-CD73YHEH.js.map → chunk-SG5ZWT6C.js.map} +1 -1
- package/dist/{chunk-MRODLUGY.cjs → chunk-TIMPJL5V.cjs} +4 -4
- package/dist/{chunk-MRODLUGY.cjs.map → chunk-TIMPJL5V.cjs.map} +1 -1
- package/dist/{chunk-77WHPVXE.js → chunk-TOTP24P6.js} +4 -4
- package/dist/chunk-TOTP24P6.js.map +1 -0
- package/dist/{chunk-3O2ELBST.cjs → chunk-USZTVNUQ.cjs} +5 -5
- package/dist/{chunk-3O2ELBST.cjs.map → chunk-USZTVNUQ.cjs.map} +1 -1
- package/dist/{chunk-YDLNI7J6.js → chunk-V2RBCCN5.js} +3 -3
- package/dist/chunk-V2RBCCN5.js.map +1 -0
- package/dist/{chunk-NNSKJCBM.cjs → chunk-VJYSQXN6.cjs} +10 -10
- package/dist/{chunk-NNSKJCBM.cjs.map → chunk-VJYSQXN6.cjs.map} +1 -1
- package/dist/{chunk-GM7QDQ24.cjs → chunk-W4WKVOOQ.cjs} +11 -11
- package/dist/{chunk-GM7QDQ24.cjs.map → chunk-W4WKVOOQ.cjs.map} +1 -1
- package/dist/chunk-XYOHKCYG.cjs +109 -0
- package/dist/chunk-XYOHKCYG.cjs.map +1 -0
- package/dist/{chunk-ZW345YOI.js → chunk-YP67XZES.js} +4 -4
- package/dist/{chunk-ZW345YOI.js.map → chunk-YP67XZES.js.map} +1 -1
- package/dist/{chunk-YCXMSDSP.js → chunk-YRXY2A5L.js} +4 -4
- package/dist/{chunk-YCXMSDSP.js.map → chunk-YRXY2A5L.js.map} +1 -1
- package/dist/{chunk-IEUDKUPM.cjs → chunk-Z2CUEBXV.cjs} +25 -9
- package/dist/chunk-Z2CUEBXV.cjs.map +1 -0
- package/dist/{chunk-GL7CFBVC.js → chunk-ZYB6B7QJ.js} +112 -165
- package/dist/chunk-ZYB6B7QJ.js.map +1 -0
- package/dist/compact-session-PYEC3NZV.js +18 -0
- package/dist/{compact-session-WNKKIIDW.js.map → compact-session-PYEC3NZV.js.map} +1 -1
- package/dist/compact-session-VVT6IBJG.cjs +55 -0
- package/dist/{compact-session-H5TKLD55.cjs.map → compact-session-VVT6IBJG.cjs.map} +1 -1
- package/dist/compaction.cjs +19 -19
- package/dist/compaction.d.cts +9 -9
- package/dist/compaction.d.ts +9 -9
- package/dist/compaction.js +3 -3
- package/dist/concurrency.cjs +6 -6
- package/dist/concurrency.js +4 -4
- package/dist/context-2FZSC6VQ.cjs +22 -0
- package/dist/{context-ZV33V4DC.cjs.map → context-2FZSC6VQ.cjs.map} +1 -1
- package/dist/context-ATJJAFOS.js +5 -0
- package/dist/{context-VAYLPT4O.js.map → context-ATJJAFOS.js.map} +1 -1
- package/dist/{cron-Dx7B-3WB.d.ts → cron-Bx7tzm5R.d.ts} +54 -2
- package/dist/{cron-BiK_aNJI.d.cts → cron-D-DVjGQe.d.cts} +54 -2
- package/dist/cron.cjs +34 -30
- package/dist/cron.d.cts +3 -3
- package/dist/cron.d.ts +3 -3
- package/dist/cron.js +33 -29
- package/dist/{errors-DyVbXdR4.d.cts → errors-DMY-gLSK.d.cts} +1 -1
- package/dist/{errors-Cua4WC9H.d.ts → errors-DjBQ4Tn8.d.ts} +1 -1
- package/dist/errors.cjs +21 -21
- package/dist/errors.d.cts +2 -2
- package/dist/errors.d.ts +2 -2
- package/dist/errors.js +2 -2
- package/dist/eval.cjs +42 -37
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +38 -33
- package/dist/eval.js.map +1 -1
- package/dist/{executor-OZSYXDKF.cjs → executor-BMRICN46.cjs} +26 -25
- package/dist/executor-BMRICN46.cjs.map +1 -0
- package/dist/{executor-PAH72CB5.js → executor-T65PPOPT.js} +10 -9
- package/dist/executor-T65PPOPT.js.map +1 -0
- package/dist/filesystem/index.cjs +7 -7
- package/dist/filesystem/index.js +3 -3
- package/dist/fs-session-store-J5MCFFUM.cjs +19 -0
- package/dist/{fs-session-store-7E7UPLF2.cjs.map → fs-session-store-J5MCFFUM.cjs.map} +1 -1
- package/dist/fs-session-store-O6FNHECD.js +10 -0
- package/dist/{fs-session-store-6MY7PNI2.js.map → fs-session-store-O6FNHECD.js.map} +1 -1
- package/dist/generate-object-UF6WIZLF.cjs +20 -0
- package/dist/{generate-object-5SCEH2EE.cjs.map → generate-object-UF6WIZLF.cjs.map} +1 -1
- package/dist/generate-object-XDCBYVK3.js +7 -0
- package/dist/{generate-object-I7UD4NWN.js.map → generate-object-XDCBYVK3.js.map} +1 -1
- package/dist/index-manager-N7RQYUKT.cjs +20 -0
- package/dist/{index-manager-R6ZJFEZF.cjs.map → index-manager-N7RQYUKT.cjs.map} +1 -1
- package/dist/index-manager-ZVZUHPP7.js +11 -0
- package/dist/{index-manager-KKAK7NT3.js.map → index-manager-ZVZUHPP7.js.map} +1 -1
- package/dist/index.cjs +154 -148
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +201 -43
- package/dist/index.d.ts +201 -43
- package/dist/index.js +62 -59
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-UXNJQTZ6.js → inject-session-GQMTDZUN.js} +8 -7
- package/dist/inject-session-GQMTDZUN.js.map +1 -0
- package/dist/{inject-session-DM4SKTZO.cjs → inject-session-LFCYVSLJ.cjs} +11 -10
- package/dist/inject-session-LFCYVSLJ.cjs.map +1 -0
- package/dist/internal/agent-loop/live-events.d.ts +46 -0
- package/dist/internal/agent-loop/loop-thinking-steps.d.ts +28 -0
- package/dist/internal/agent-loop/message-builders.d.ts +12 -3
- package/dist/internal/budget/compute-cost.d.ts +1 -1
- package/dist/internal/diagnostics.d.ts +46 -31
- package/dist/internal/error-mappers/anthropic.d.ts +1 -1
- package/dist/internal/global-singleton.d.ts +7 -7
- package/dist/internal/judge/judge-call.d.ts +14 -14
- package/dist/internal/llm/anthropic-shared.d.ts +4 -4
- package/dist/internal/llm/retrying-client.d.ts +29 -29
- package/dist/internal/llm/transport-error.d.ts +2 -2
- package/dist/internal/llm/types.d.ts +49 -9
- package/dist/internal/local-agent/mcp-pool.d.ts +7 -3
- package/dist/internal/memory/adapters/azure-openai-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/catalog.d.cts +1 -0
- package/dist/internal/memory/adapters/cohere-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/deepinfra-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/gemini-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/index.cjs +28 -0
- package/dist/internal/memory/adapters/index.cjs.map +1 -0
- package/dist/internal/memory/adapters/index.d.cts +16 -0
- package/dist/internal/memory/adapters/index.d.ts +16 -0
- package/dist/internal/memory/adapters/index.js +11 -0
- package/dist/internal/memory/adapters/index.js.map +1 -0
- package/dist/internal/memory/adapters/jina-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/mistral-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/ollama-embedding.d.cts +34 -0
- package/dist/internal/memory/adapters/openai-compatible.d.cts +51 -0
- package/dist/internal/memory/adapters/openai-compatible.d.ts +28 -0
- package/dist/internal/memory/adapters/openai-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/openrouter-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/voyage-embedding.d.cts +2 -0
- package/dist/internal/memory/dreaming/diary.d.ts +4 -0
- package/dist/internal/memory/dreaming/phases.d.ts +15 -0
- package/dist/internal/memory/dreaming/run.d.ts +10 -0
- package/dist/internal/memory/migrate-sqlite-to-lance.d.ts +15 -0
- package/dist/internal/memory/sdk-memory-peer-loader.d.ts +21 -0
- package/dist/internal/persistence/exclusive-create.d.cts +2 -2
- package/dist/internal/persistence/exclusive-create.d.ts +2 -2
- package/dist/internal/persistence/fs-session-store.d.cts +18 -18
- package/dist/internal/persistence/fs-session-store.d.ts +18 -18
- package/dist/internal/persistence/index.cjs +25 -25
- package/dist/internal/persistence/index.cjs.map +1 -1
- package/dist/internal/persistence/index.js +6 -6
- package/dist/internal/persistence/index.js.map +1 -1
- package/dist/internal/persistence/paths.d.cts +7 -7
- package/dist/internal/persistence/paths.d.ts +7 -7
- package/dist/internal/persistence/session-transcript.d.cts +13 -7
- package/dist/internal/persistence/session-transcript.d.ts +13 -7
- package/dist/internal/persistence/session-writer.d.cts +30 -13
- package/dist/internal/persistence/session-writer.d.ts +30 -13
- package/dist/internal/runtime/concurrency/subagent-credentials.d.ts +35 -0
- package/dist/internal/runtime/fixtures/fixture-run-base.d.ts +45 -13
- package/dist/internal/runtime/lifecycle/goal-marker.d.ts +8 -8
- package/dist/internal/security/index.cjs +13 -13
- package/dist/internal/security/index.js +3 -3
- package/dist/internal/session/agent-session-store.d.ts +1 -0
- package/dist/internal/session/agent-session.d.ts +14 -14
- package/dist/internal/session/session-cache.d.ts +9 -9
- package/dist/internal/session/session-types.d.ts +6 -1
- package/dist/judge-call-NA2G6ZMJ.js +5 -0
- package/dist/{judge-call-TAEIXMYG.js.map → judge-call-NA2G6ZMJ.js.map} +1 -1
- package/dist/judge-call-U2D33JOW.cjs +22 -0
- package/dist/{judge-call-SP3G3X2Y.cjs.map → judge-call-U2D33JOW.cjs.map} +1 -1
- package/dist/models.cjs +20 -20
- package/dist/models.cjs.map +1 -1
- package/dist/models.js +5 -5
- package/dist/models.js.map +1 -1
- package/dist/path-safety.cjs +10 -10
- package/dist/path-safety.js +3 -3
- package/dist/persistence.cjs +43 -43
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.d.cts +1 -1
- package/dist/persistence.d.ts +1 -1
- package/dist/persistence.js +14 -14
- package/dist/persistence.js.map +1 -1
- package/dist/project.cjs +5 -5
- package/dist/project.js +3 -3
- package/dist/registry-CAS6Y5ZY.js +9 -0
- package/dist/{registry-SOXE4RY6.js.map → registry-CAS6Y5ZY.js.map} +1 -1
- package/dist/registry-JSDI4WKA.cjs +46 -0
- package/dist/{registry-N3GTKYCI.cjs.map → registry-JSDI4WKA.cjs.map} +1 -1
- package/dist/retry.cjs +4 -4
- package/dist/retry.js +3 -3
- package/dist/{run-CwEJtLPE.d.ts → run-i2-fUohR.d.cts} +217 -174
- package/dist/{run-CwEJtLPE.d.cts → run-i2-fUohR.d.ts} +217 -174
- package/dist/{run-until-YZ2ODWOF.js → run-until-BK56WG4P.js} +3 -3
- package/dist/{run-until-YZ2ODWOF.js.map → run-until-BK56WG4P.js.map} +1 -1
- package/dist/{run-until-ZZ2JLPJM.cjs → run-until-L5KQD3PV.cjs} +4 -4
- package/dist/{run-until-ZZ2JLPJM.cjs.map → run-until-L5KQD3PV.cjs.map} +1 -1
- package/dist/sandbox/bwrap.d.cts +20 -20
- package/dist/sandbox/bwrap.d.ts +20 -20
- package/dist/sandbox/index.cjs +39 -39
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.d.cts +1 -1
- package/dist/sandbox/index.d.ts +1 -1
- package/dist/sandbox/index.js +35 -35
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/linux-sandbox.d.cts +26 -21
- package/dist/sandbox/linux-sandbox.d.ts +26 -21
- package/dist/server/auth/index.cjs.map +1 -1
- package/dist/server/auth/index.d.cts +6 -6
- package/dist/server/auth/index.d.ts +6 -6
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/auth/orchestrator.d.cts +2 -2
- package/dist/server/auth/orchestrator.d.ts +2 -2
- package/dist/server/auth/types.d.cts +4 -4
- package/dist/server/auth/types.d.ts +4 -4
- package/dist/server/errors-envelope.cjs +14 -14
- package/dist/server/errors-envelope.d.cts +3 -3
- package/dist/server/errors-envelope.d.ts +3 -3
- package/dist/server/errors-envelope.js +3 -3
- package/dist/session-transcript-3B52DKTG.js +5 -0
- package/dist/{session-transcript-6WKLYIN4.js.map → session-transcript-3B52DKTG.js.map} +1 -1
- package/dist/session-transcript-H7NUFXXM.cjs +50 -0
- package/dist/{session-transcript-EAKR4D2W.cjs.map → session-transcript-H7NUFXXM.cjs.map} +1 -1
- package/dist/skills.cjs +7 -7
- package/dist/skills.js +5 -5
- package/dist/stream-object-4FDU76YW.cjs +20 -0
- package/dist/{stream-object-Y7YCX3BI.cjs.map → stream-object-4FDU76YW.cjs.map} +1 -1
- package/dist/stream-object-HWDEEQN4.js +7 -0
- package/dist/{stream-object-OFM66VUT.js.map → stream-object-HWDEEQN4.js.map} +1 -1
- package/dist/subagents-loader-A4W6C3QP.cjs +15 -0
- package/dist/subagents-loader-A4W6C3QP.cjs.map +1 -0
- package/dist/subagents-loader-X33KH2SZ.js +6 -0
- package/dist/subagents-loader-X33KH2SZ.js.map +1 -0
- package/dist/subagents-loader.cjs +6 -6
- package/dist/subagents-loader.d.cts +2 -2
- package/dist/subagents-loader.d.ts +2 -2
- package/dist/subagents-loader.js +4 -4
- package/dist/subscription/index.cjs +3 -3
- package/dist/subscription/index.js +2 -2
- package/dist/task-store.cjs +7 -7
- package/dist/task-store.js +4 -4
- package/dist/types/agent-prims.d.ts +4 -4
- package/dist/types/agent.d.ts +68 -3
- package/dist/types/conversation.d.ts +7 -0
- package/dist/types/goal-events.d.ts +24 -23
- package/dist/types/messages.d.ts +9 -0
- package/dist/types/run.d.ts +27 -0
- package/dist/types/session-message.d.ts +59 -0
- package/dist/types/session-record.d.ts +14 -13
- package/dist/types/workflow.d.ts +36 -0
- package/dist/workflow.cjs +27 -27
- package/dist/workflow.d.cts +17 -1
- package/dist/workflow.d.ts +17 -1
- package/dist/workflow.js +6 -6
- package/docs/harness-capability-map.md +22 -0
- package/package.json +22 -13
- package/dist/agent-DW2J37IH.js +0 -42
- package/dist/agent-IE6IE4NW.cjs +0 -51
- package/dist/batch-3SEPDXCU.cjs.map +0 -1
- package/dist/batch-SY5GZLFD.js.map +0 -1
- package/dist/chunk-2423XDPT.cjs.map +0 -1
- package/dist/chunk-2ONFGMBV.js.map +0 -1
- package/dist/chunk-4YB7B3RP.cjs.map +0 -1
- package/dist/chunk-56OXYUZE.js.map +0 -1
- package/dist/chunk-56ZM6P7Z.cjs.map +0 -1
- package/dist/chunk-5SB4V74H.js +0 -176
- package/dist/chunk-5SB4V74H.js.map +0 -1
- package/dist/chunk-6VP3XGEK.js.map +0 -1
- package/dist/chunk-77WHPVXE.js.map +0 -1
- package/dist/chunk-ALU3KC4G.cjs.map +0 -1
- package/dist/chunk-BJMKQOY2.cjs.map +0 -1
- package/dist/chunk-DCJ5MCJ3.js.map +0 -1
- package/dist/chunk-EEZ7CFMM.js.map +0 -1
- package/dist/chunk-FV3YEMQ7.js.map +0 -1
- package/dist/chunk-G2F67XUR.cjs.map +0 -1
- package/dist/chunk-GL7CFBVC.js.map +0 -1
- package/dist/chunk-H5YVJB4K.cjs +0 -185
- package/dist/chunk-H5YVJB4K.cjs.map +0 -1
- package/dist/chunk-ICYBIC6N.cjs.map +0 -1
- package/dist/chunk-IEUDKUPM.cjs.map +0 -1
- package/dist/chunk-IT3PWBW4.cjs.map +0 -1
- package/dist/chunk-ITLS5LRF.cjs +0 -105
- package/dist/chunk-ITLS5LRF.cjs.map +0 -1
- package/dist/chunk-LTCOPATU.cjs.map +0 -1
- package/dist/chunk-MXSMAGDU.js.map +0 -1
- package/dist/chunk-P34DHHYQ.cjs.map +0 -1
- package/dist/chunk-SDIBMLL5.js.map +0 -1
- package/dist/chunk-TAPQWDW2.js.map +0 -1
- package/dist/chunk-THEYGCYS.cjs.map +0 -1
- package/dist/chunk-VNNK6AKU.js.map +0 -1
- package/dist/chunk-VYJSHGAY.js.map +0 -1
- package/dist/chunk-W52DKZBR.cjs.map +0 -1
- package/dist/chunk-XAEAMI5H.js.map +0 -1
- package/dist/chunk-XAYVHS2B.cjs.map +0 -1
- package/dist/chunk-YDLNI7J6.js.map +0 -1
- package/dist/chunk-YPQF26X7.cjs.map +0 -1
- package/dist/chunk-YVTNFKZO.js +0 -103
- package/dist/chunk-YVTNFKZO.js.map +0 -1
- package/dist/compact-session-H5TKLD55.cjs +0 -54
- package/dist/compact-session-WNKKIIDW.js +0 -17
- package/dist/context-VAYLPT4O.js +0 -5
- package/dist/context-ZV33V4DC.cjs +0 -22
- package/dist/executor-OZSYXDKF.cjs.map +0 -1
- package/dist/executor-PAH72CB5.js.map +0 -1
- package/dist/fs-session-store-6MY7PNI2.js +0 -10
- package/dist/fs-session-store-7E7UPLF2.cjs +0 -19
- package/dist/generate-object-5SCEH2EE.cjs +0 -20
- package/dist/generate-object-I7UD4NWN.js +0 -7
- package/dist/index-manager-KKAK7NT3.js +0 -10
- package/dist/index-manager-R6ZJFEZF.cjs +0 -19
- package/dist/inject-session-DM4SKTZO.cjs.map +0 -1
- package/dist/inject-session-UXNJQTZ6.js.map +0 -1
- package/dist/judge-call-SP3G3X2Y.cjs +0 -22
- package/dist/judge-call-TAEIXMYG.js +0 -5
- package/dist/registry-N3GTKYCI.cjs +0 -46
- package/dist/registry-SOXE4RY6.js +0 -9
- package/dist/session-transcript-6WKLYIN4.js +0 -5
- package/dist/session-transcript-EAKR4D2W.cjs +0 -50
- package/dist/stream-object-OFM66VUT.js +0 -7
- package/dist/stream-object-Y7YCX3BI.cjs +0 -20
package/dist/index.cjs
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
3
|
+
var chunkECHGWE47_cjs = require('./chunk-ECHGWE47.cjs');
|
|
4
|
+
var chunkHIQFVHC6_cjs = require('./chunk-HIQFVHC6.cjs');
|
|
5
|
+
var chunkOBA6YK2R_cjs = require('./chunk-OBA6YK2R.cjs');
|
|
6
|
+
var chunkVJYSQXN6_cjs = require('./chunk-VJYSQXN6.cjs');
|
|
7
|
+
require('./chunk-FWBSDQZ7.cjs');
|
|
8
|
+
var chunkC7OP3FAK_cjs = require('./chunk-C7OP3FAK.cjs');
|
|
9
|
+
require('./chunk-CEIHCKTO.cjs');
|
|
10
10
|
require('./chunk-PNVDQL5Y.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkFRUBE44B_cjs = require('./chunk-FRUBE44B.cjs');
|
|
12
|
+
var chunkINSFS5GT_cjs = require('./chunk-INSFS5GT.cjs');
|
|
13
13
|
require('./chunk-BV2MWEMV.cjs');
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-H5YVJB4K.cjs');
|
|
14
|
+
var chunkN475ETD6_cjs = require('./chunk-N475ETD6.cjs');
|
|
16
15
|
require('./chunk-BUUUWQMB.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
21
|
-
|
|
22
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-DCXRHCZJ.cjs');
|
|
17
|
+
require('./chunk-74D7KSBP.cjs');
|
|
18
|
+
var chunkBPN5ONSW_cjs = require('./chunk-BPN5ONSW.cjs');
|
|
19
|
+
require('./chunk-ECW2MLEW.cjs');
|
|
20
|
+
require('./chunk-BURYFNOM.cjs');
|
|
21
|
+
require('./chunk-XYOHKCYG.cjs');
|
|
22
|
+
var chunkCN6UX5EV_cjs = require('./chunk-CN6UX5EV.cjs');
|
|
23
|
+
require('./chunk-6LGQECT7.cjs');
|
|
23
24
|
require('./chunk-WPZTYOUX.cjs');
|
|
24
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-LALG2K33.cjs');
|
|
26
|
+
require('./chunk-7U2HAAWB.cjs');
|
|
27
|
+
require('./chunk-6YNYA7GD.cjs');
|
|
28
|
+
require('./chunk-2RW7K6FN.cjs');
|
|
25
29
|
require('./chunk-MUUQ2WFJ.cjs');
|
|
26
30
|
require('./chunk-6JSIEDKL.cjs');
|
|
27
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-B4YA6BRS.cjs');
|
|
28
32
|
require('./chunk-NINIJCHU.cjs');
|
|
29
33
|
require('./chunk-YPEPCZHF.cjs');
|
|
30
34
|
require('./chunk-VJ26EKGJ.cjs');
|
|
31
|
-
require('./chunk-
|
|
32
|
-
require('./chunk-
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
35
|
-
require('./chunk-
|
|
35
|
+
require('./chunk-7OLG7VI4.cjs');
|
|
36
|
+
require('./chunk-TIMPJL5V.cjs');
|
|
37
|
+
require('./chunk-I53ZQHU6.cjs');
|
|
38
|
+
require('./chunk-Z2CUEBXV.cjs');
|
|
39
|
+
require('./chunk-DMTZ3FII.cjs');
|
|
40
|
+
require('./chunk-75DSEWTJ.cjs');
|
|
36
41
|
var chunkYLQQX5W2_cjs = require('./chunk-YLQQX5W2.cjs');
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-W4QN5CMG.cjs');
|
|
42
|
+
require('./chunk-DWY25VLP.cjs');
|
|
39
43
|
var chunkWJVHMTKB_cjs = require('./chunk-WJVHMTKB.cjs');
|
|
40
|
-
var
|
|
41
|
-
require('./chunk-
|
|
42
|
-
require('./chunk-
|
|
44
|
+
var chunkDGLLVCNB_cjs = require('./chunk-DGLLVCNB.cjs');
|
|
45
|
+
require('./chunk-W4WKVOOQ.cjs');
|
|
46
|
+
require('./chunk-J6T5LWJ4.cjs');
|
|
43
47
|
var chunkVYHJZVL5_cjs = require('./chunk-VYHJZVL5.cjs');
|
|
44
|
-
var
|
|
45
|
-
require('./chunk-
|
|
48
|
+
var chunkG4XUXSRN_cjs = require('./chunk-G4XUXSRN.cjs');
|
|
49
|
+
require('./chunk-6NEHIHFU.cjs');
|
|
46
50
|
require('./chunk-C6Y6CWYD.cjs');
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
50
|
-
var
|
|
51
|
-
var
|
|
51
|
+
require('./chunk-E4IUN3JB.cjs');
|
|
52
|
+
require('./chunk-7YBJZS5P.cjs');
|
|
53
|
+
require('./chunk-G2Q3ZC6C.cjs');
|
|
54
|
+
var chunkIHFNRNTJ_cjs = require('./chunk-IHFNRNTJ.cjs');
|
|
55
|
+
var chunkBCQ3E2ZG_cjs = require('./chunk-BCQ3E2ZG.cjs');
|
|
52
56
|
var zod = require('zod');
|
|
53
57
|
var crypto = require('crypto');
|
|
54
58
|
var promises = require('fs/promises');
|
|
@@ -58,8 +62,8 @@ var fs = require('fs');
|
|
|
58
62
|
// src/agent-factory.ts
|
|
59
63
|
function createAgentFactory(common) {
|
|
60
64
|
return {
|
|
61
|
-
forSession: (agentId, overrides) =>
|
|
62
|
-
getOrCreate: (agentId, overrides) =>
|
|
65
|
+
forSession: (agentId, overrides) => chunkINSFS5GT_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
66
|
+
getOrCreate: (agentId, overrides) => chunkINSFS5GT_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
63
67
|
};
|
|
64
68
|
}
|
|
65
69
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -180,12 +184,12 @@ var NAME_GRAMMAR = /^[a-z0-9][a-z0-9_-]*$/;
|
|
|
180
184
|
var registry = /* @__PURE__ */ new Map();
|
|
181
185
|
function validateBudgetName(name) {
|
|
182
186
|
if (typeof name !== "string" || name.length === 0) {
|
|
183
|
-
throw new
|
|
187
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError("Budget name must be a non-empty string", {
|
|
184
188
|
code: "invalid_budget_name"
|
|
185
189
|
});
|
|
186
190
|
}
|
|
187
191
|
if (!NAME_GRAMMAR.test(name)) {
|
|
188
|
-
throw new
|
|
192
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError(
|
|
189
193
|
`Budget name "${name}" must match ^[a-z0-9][a-z0-9_-]*$ (lowercase + dash/underscore, start alphanumeric)`,
|
|
190
194
|
{ code: "invalid_budget_name" }
|
|
191
195
|
);
|
|
@@ -194,7 +198,7 @@ function validateBudgetName(name) {
|
|
|
194
198
|
function createBudget(opts) {
|
|
195
199
|
validateBudgetName(opts.name);
|
|
196
200
|
if (registry.has(opts.name)) {
|
|
197
|
-
throw new
|
|
201
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError(`Budget "${opts.name}" already exists`, {
|
|
198
202
|
code: "invalid_budget_name"
|
|
199
203
|
});
|
|
200
204
|
}
|
|
@@ -258,7 +262,7 @@ function preflightCheck(name, estimatedUsd) {
|
|
|
258
262
|
for (const lim of opts.limits) {
|
|
259
263
|
const currentSpent = spentIn(opts.name, lim.window);
|
|
260
264
|
if (currentSpent + estimatedUsd > lim.limitUsd) {
|
|
261
|
-
throw new
|
|
265
|
+
throw new chunkIHFNRNTJ_cjs.BudgetExceededError({
|
|
262
266
|
budgetName: opts.name,
|
|
263
267
|
window: lim.window,
|
|
264
268
|
spentUsd: currentSpent + estimatedUsd,
|
|
@@ -271,7 +275,7 @@ function preflightCheck(name, estimatedUsd) {
|
|
|
271
275
|
async function chargeAndCheckThresholds(name, actualUsd) {
|
|
272
276
|
const opts = getBudgetOptionsRaw(name);
|
|
273
277
|
if (opts === void 0) {
|
|
274
|
-
|
|
278
|
+
chunkBCQ3E2ZG_cjs.diag(
|
|
275
279
|
`[budget] charge for deleted budget "${name}" is a no-op (was the budget removed during in-flight send?)
|
|
276
280
|
`
|
|
277
281
|
);
|
|
@@ -314,14 +318,14 @@ async function dispatchThreshold(opts, window, spentUsd, limitUsd, threshold) {
|
|
|
314
318
|
});
|
|
315
319
|
} catch (err) {
|
|
316
320
|
const msg = err instanceof Error ? err.message : String(err);
|
|
317
|
-
|
|
321
|
+
chunkBCQ3E2ZG_cjs.diag(`[budget] onThreshold callback threw: ${msg}
|
|
318
322
|
`);
|
|
319
323
|
}
|
|
320
324
|
}
|
|
321
325
|
async function dispatchExceed(opts, window, spentUsd, limitUsd, mode) {
|
|
322
326
|
if (opts.onExceed === void 0) {
|
|
323
327
|
if (mode === "warn") {
|
|
324
|
-
|
|
328
|
+
chunkBCQ3E2ZG_cjs.diag(
|
|
325
329
|
`[budget] "${opts.name}" exceeded ${window} limit: $${spentUsd.toFixed(4)} > $${limitUsd.toFixed(4)}
|
|
326
330
|
`
|
|
327
331
|
);
|
|
@@ -338,7 +342,7 @@ async function dispatchExceed(opts, window, spentUsd, limitUsd, mode) {
|
|
|
338
342
|
});
|
|
339
343
|
} catch (err) {
|
|
340
344
|
const msg = err instanceof Error ? err.message : String(err);
|
|
341
|
-
|
|
345
|
+
chunkBCQ3E2ZG_cjs.diag(`[budget] onExceed callback threw: ${msg}
|
|
342
346
|
`);
|
|
343
347
|
}
|
|
344
348
|
}
|
|
@@ -588,20 +592,20 @@ var Provider = class _Provider {
|
|
|
588
592
|
* `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
|
|
589
593
|
*/
|
|
590
594
|
static builtins() {
|
|
591
|
-
|
|
592
|
-
return
|
|
595
|
+
chunkG4XUXSRN_cjs.registerBuiltins();
|
|
596
|
+
return chunkG4XUXSRN_cjs.listProviders().map((profile) => defineProvider(profile));
|
|
593
597
|
}
|
|
594
598
|
/**
|
|
595
|
-
*
|
|
599
|
+
* The builtin serving `modelId`, or `undefined` when none does.
|
|
596
600
|
*
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
* id
|
|
600
|
-
*
|
|
601
|
-
*
|
|
601
|
+
* The grammar of a model id — `provider/model` — now has **one** owner. M94: the consumer
|
|
602
|
+
* redid it by hand with `modelId.slice(0, modelId.indexOf('/'))`, which on an id **without a slash** returns the
|
|
603
|
+
* id minus its last character (`claude-opus-5` -> `claude-opus-`): it matches no provider and the
|
|
604
|
+
* caller fell through to the default, without distinguishing that from a hit. A non-routable model was
|
|
605
|
+
* indistinguishable from the happy path.
|
|
602
606
|
*
|
|
603
|
-
*
|
|
604
|
-
*
|
|
607
|
+
* Returns `undefined` instead of throwing: the caller decides whether absence is an error, and only they
|
|
608
|
+
* know whether the model came from an explicit `--model` (an error) or from the default (normal).
|
|
605
609
|
*
|
|
606
610
|
* @public
|
|
607
611
|
*/
|
|
@@ -692,10 +696,8 @@ var EventBus = class {
|
|
|
692
696
|
} catch (cause) {
|
|
693
697
|
this.#handlerErrorCount += 1;
|
|
694
698
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
`
|
|
698
|
-
);
|
|
699
|
+
chunkBCQ3E2ZG_cjs.diag(`[theokit-sdk] event-bus: handler for "${String(event)}" threw: ${message}
|
|
700
|
+
`);
|
|
699
701
|
}
|
|
700
702
|
}
|
|
701
703
|
}
|
|
@@ -715,9 +717,9 @@ var EventBus = class {
|
|
|
715
717
|
// src/goal-loop.ts
|
|
716
718
|
function runGoalLoop(agent, goal, options, depsOverride) {
|
|
717
719
|
async function* wrap() {
|
|
718
|
-
const { runUntilImpl } = await import('./run-until-
|
|
720
|
+
const { runUntilImpl } = await import('./run-until-L5KQD3PV.cjs');
|
|
719
721
|
const deps = depsOverride ?? await (async () => {
|
|
720
|
-
const { judgeCallImpl } = await import('./judge-call-
|
|
722
|
+
const { judgeCallImpl } = await import('./judge-call-U2D33JOW.cjs');
|
|
721
723
|
const { getAgentFacade } = await import('./agent-factory-registry-UU46BUMU.cjs');
|
|
722
724
|
const create = getAgentFacade().create;
|
|
723
725
|
return {
|
|
@@ -917,7 +919,7 @@ var JobQueue = class {
|
|
|
917
919
|
}
|
|
918
920
|
};
|
|
919
921
|
function diaryPath(cwd) {
|
|
920
|
-
return path.join(
|
|
922
|
+
return path.join(chunkCN6UX5EV_cjs.memoryDir(cwd), "dream-diary.md");
|
|
921
923
|
}
|
|
922
924
|
function renderDiaryEntry(entry) {
|
|
923
925
|
const stamp = new Date(entry.timestampMs).toISOString();
|
|
@@ -944,7 +946,7 @@ async function appendDiaryEntry(cwd, entry) {
|
|
|
944
946
|
}
|
|
945
947
|
const next = `${raw.endsWith("\n") ? raw : `${raw}
|
|
946
948
|
`}${renderDiaryEntry(entry)}`;
|
|
947
|
-
await
|
|
949
|
+
await chunkDGLLVCNB_cjs.replaceFileAtomic(path, next);
|
|
948
950
|
}
|
|
949
951
|
function entryHash(entry) {
|
|
950
952
|
return crypto.createHash("sha256").update(
|
|
@@ -1064,7 +1066,7 @@ async function runInner(options) {
|
|
|
1064
1066
|
const now = options.now ?? Date.now;
|
|
1065
1067
|
const timestampMs = now();
|
|
1066
1068
|
try {
|
|
1067
|
-
const facts = await
|
|
1069
|
+
const facts = await chunkCN6UX5EV_cjs.readFactsFromMarkdown(options.cwd);
|
|
1068
1070
|
if (facts.length === 0) {
|
|
1069
1071
|
return emptyResult("skipped");
|
|
1070
1072
|
}
|
|
@@ -1091,19 +1093,19 @@ async function runInner(options) {
|
|
|
1091
1093
|
return result;
|
|
1092
1094
|
} catch (cause) {
|
|
1093
1095
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
1094
|
-
|
|
1096
|
+
chunkBCQ3E2ZG_cjs.diag(`[theokit-sdk] dreaming sweep failed: ${message}
|
|
1095
1097
|
`);
|
|
1096
1098
|
return emptyResult("error");
|
|
1097
1099
|
}
|
|
1098
1100
|
}
|
|
1099
1101
|
async function writeConsolidatedNotes(cwd, clusters, timestampMs) {
|
|
1100
1102
|
if (clusters.length === 0) return 0;
|
|
1101
|
-
const notesDir = path.join(
|
|
1103
|
+
const notesDir = path.join(chunkCN6UX5EV_cjs.memoryDir(cwd), "notes");
|
|
1102
1104
|
await promises.mkdir(notesDir, { recursive: true });
|
|
1103
1105
|
const isoSlug = new Date(timestampMs).toISOString().replace(/[^\dT]/g, "-");
|
|
1104
1106
|
const file = path.join(notesDir, `dreamed-${isoSlug}.md`);
|
|
1105
1107
|
const body = deepPhase(clusters, timestampMs);
|
|
1106
|
-
await
|
|
1108
|
+
await chunkDGLLVCNB_cjs.replaceFileAtomic(file, body);
|
|
1107
1109
|
return 1;
|
|
1108
1110
|
}
|
|
1109
1111
|
function emptyResult(status) {
|
|
@@ -1164,8 +1166,8 @@ var Memory = {
|
|
|
1164
1166
|
openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
|
|
1165
1167
|
return await peer.IndexManager.open(openArgs);
|
|
1166
1168
|
}
|
|
1167
|
-
const { IndexManager } = await import('./index-manager-
|
|
1168
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1169
|
+
const { IndexManager } = await import('./index-manager-N7RQYUKT.cjs');
|
|
1170
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkINSFS5GT_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1169
1171
|
return await IndexManager.open(openArgs);
|
|
1170
1172
|
},
|
|
1171
1173
|
/**
|
|
@@ -1176,7 +1178,7 @@ var Memory = {
|
|
|
1176
1178
|
*/
|
|
1177
1179
|
async runDreamingSweep(opts) {
|
|
1178
1180
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1179
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1181
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkINSFS5GT_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1180
1182
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1181
1183
|
const result = peer !== null ? (
|
|
1182
1184
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -1234,7 +1236,7 @@ function extractRawId(id, expectedAdapterId) {
|
|
|
1234
1236
|
const prefix = `${expectedAdapterId}:`;
|
|
1235
1237
|
if (!id.startsWith(prefix)) {
|
|
1236
1238
|
const sourcePrefix = id.split(":", 1)[0] ?? "<malformed>";
|
|
1237
|
-
throw new
|
|
1239
|
+
throw new chunkIHFNRNTJ_cjs.MemoryAdapterError(
|
|
1238
1240
|
`MemoryId belongs to a different adapter (expected "${expectedAdapterId}", got "${sourcePrefix}")`,
|
|
1239
1241
|
{ adapterId: expectedAdapterId, code: "invalid_input" }
|
|
1240
1242
|
);
|
|
@@ -1242,9 +1244,9 @@ function extractRawId(id, expectedAdapterId) {
|
|
|
1242
1244
|
return id.slice(prefix.length);
|
|
1243
1245
|
}
|
|
1244
1246
|
async function readAllSqliteFacts(cwd) {
|
|
1245
|
-
const dbPath =
|
|
1247
|
+
const dbPath = chunkCN6UX5EV_cjs.defaultIndexPath(cwd);
|
|
1246
1248
|
if (!fs.existsSync(dbPath)) return [];
|
|
1247
|
-
const db = await
|
|
1249
|
+
const db = await chunkCN6UX5EV_cjs.openMemoryDb({ filePath: dbPath });
|
|
1248
1250
|
try {
|
|
1249
1251
|
const stmt = db.prepare("SELECT id, path, source, start_line, end_line, text FROM chunks");
|
|
1250
1252
|
const rows = stmt.all();
|
|
@@ -1263,12 +1265,12 @@ function nfcEqual(a, b) {
|
|
|
1263
1265
|
}
|
|
1264
1266
|
async function migrateSqliteToLance(opts) {
|
|
1265
1267
|
const cwd = opts.cwd;
|
|
1266
|
-
const finalPath =
|
|
1268
|
+
const finalPath = chunkCN6UX5EV_cjs.lanceStoragePath(cwd);
|
|
1267
1269
|
const newPath = path.join(cwd, ".theokit", "memory", "lance-new");
|
|
1268
1270
|
const rawLog = opts.logger ?? ((m) => console.log(m));
|
|
1269
|
-
const log = (m) => rawLog(
|
|
1271
|
+
const log = (m) => rawLog(chunkBCQ3E2ZG_cjs.redactSecrets(m));
|
|
1270
1272
|
if (fs.existsSync(finalPath)) {
|
|
1271
|
-
throw new
|
|
1273
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError(
|
|
1272
1274
|
`Destination already exists: ${finalPath}. Remove it manually (\`rm -rf ${finalPath}\`) and re-run.`,
|
|
1273
1275
|
{ code: "migration_destination_exists" }
|
|
1274
1276
|
);
|
|
@@ -1307,7 +1309,7 @@ async function migrateSqliteToLance(opts) {
|
|
|
1307
1309
|
};
|
|
1308
1310
|
fs.mkdirSync(newPath, { recursive: true });
|
|
1309
1311
|
log(`Writing Lance index to ${newPath} ...`);
|
|
1310
|
-
const lance = await
|
|
1312
|
+
const lance = await chunkCN6UX5EV_cjs.LanceIndex.open({
|
|
1311
1313
|
cwd,
|
|
1312
1314
|
embedding: placeholderEmbedding,
|
|
1313
1315
|
storagePath: newPath
|
|
@@ -1559,7 +1561,7 @@ var Security = class {
|
|
|
1559
1561
|
* // → "[bot] received: please remember sk-abc...xyz1"
|
|
1560
1562
|
*/
|
|
1561
1563
|
static redact(text, opts) {
|
|
1562
|
-
return
|
|
1564
|
+
return chunkBCQ3E2ZG_cjs.redactSecrets(text, opts);
|
|
1563
1565
|
}
|
|
1564
1566
|
/**
|
|
1565
1567
|
* Register a custom redaction pattern. Additive — built-in patterns
|
|
@@ -1581,7 +1583,7 @@ var Security = class {
|
|
|
1581
1583
|
* // → text containing "MYORG-AAAA...AAAA" now masks like a builtin.
|
|
1582
1584
|
*/
|
|
1583
1585
|
static addPattern(re) {
|
|
1584
|
-
|
|
1586
|
+
chunkBCQ3E2ZG_cjs.addPattern(re);
|
|
1585
1587
|
}
|
|
1586
1588
|
};
|
|
1587
1589
|
|
|
@@ -1598,10 +1600,10 @@ function ehAgenteConstruido(m) {
|
|
|
1598
1600
|
return typeof m.send === "function";
|
|
1599
1601
|
}
|
|
1600
1602
|
async function materializar(def, indice) {
|
|
1601
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1603
|
+
const { Agent: Agent2 } = await import('./agent-I3EZZR6S.cjs');
|
|
1602
1604
|
return Agent2.create({
|
|
1603
|
-
// `AgentDefinition.model`
|
|
1604
|
-
//
|
|
1605
|
+
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1606
|
+
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
|
1605
1607
|
// um agente pedindo um modelo chamado `inherit`.
|
|
1606
1608
|
...def.model !== void 0 && def.model !== "inherit" ? { model: def.model } : {},
|
|
1607
1609
|
...def.prompt !== void 0 ? { systemPrompt: def.prompt } : {},
|
|
@@ -1612,31 +1614,31 @@ async function materializar(def, indice) {
|
|
|
1612
1614
|
function createSquad(options) {
|
|
1613
1615
|
const { agents } = options;
|
|
1614
1616
|
if (!Array.isArray(agents) || agents.length === 0) {
|
|
1615
|
-
throw new
|
|
1617
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError("createSquad requires a non-empty `agents` array", {
|
|
1616
1618
|
code: "invalid_squad"
|
|
1617
1619
|
});
|
|
1618
1620
|
}
|
|
1619
1621
|
if (options.process !== void 0 && options.process !== "sequential") {
|
|
1620
|
-
throw new
|
|
1622
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError(
|
|
1621
1623
|
`createSquad only supports process "sequential"; for manager\u2192worker delegation use subagents or @theokit/sdk-handoff`,
|
|
1622
1624
|
{ code: "squad_process_unsupported" }
|
|
1623
1625
|
);
|
|
1624
1626
|
}
|
|
1625
1627
|
return {
|
|
1626
1628
|
run: async (input) => {
|
|
1627
|
-
const run = await (await
|
|
1629
|
+
const run = await (await buildPipeline(agents, options.name)).run(input);
|
|
1628
1630
|
return { result: run.output, status: run.status, steps: run.stepResults };
|
|
1629
1631
|
}
|
|
1630
1632
|
};
|
|
1631
1633
|
}
|
|
1632
|
-
async function
|
|
1633
|
-
let builder =
|
|
1634
|
+
async function buildPipeline(agents, nome) {
|
|
1635
|
+
let builder = chunkC7OP3FAK_cjs.Workflow.create({ name: nome ?? "squad" });
|
|
1634
1636
|
for (let i = 0; i < agents.length; i++) {
|
|
1635
1637
|
const membro = agents[i];
|
|
1636
1638
|
if (membro === void 0) continue;
|
|
1637
1639
|
const agent = ehAgenteConstruido(membro) ? membro : await materializar(membro, i);
|
|
1638
1640
|
const opts = i > 0 ? { origin: { kind: "peer", from: `agent-${i - 1}` } } : void 0;
|
|
1639
|
-
builder = builder.then(
|
|
1641
|
+
builder = builder.then(chunkC7OP3FAK_cjs.agentStep(`agent-${i}`, agent, (prev) => String(prev), opts));
|
|
1640
1642
|
}
|
|
1641
1643
|
return builder.commit();
|
|
1642
1644
|
}
|
|
@@ -1660,7 +1662,7 @@ var Task = class {
|
|
|
1660
1662
|
* (D369), and retention (D373).
|
|
1661
1663
|
*/
|
|
1662
1664
|
static configure(opts) {
|
|
1663
|
-
|
|
1665
|
+
chunkN475ETD6_cjs.configure(opts);
|
|
1664
1666
|
}
|
|
1665
1667
|
/**
|
|
1666
1668
|
* Submit a unit of asynchronous work to the registry.
|
|
@@ -1685,7 +1687,7 @@ var Task = class {
|
|
|
1685
1687
|
* a semaphore slot and without invoking `work`.
|
|
1686
1688
|
*/
|
|
1687
1689
|
static async submit(kind, work, options = {}) {
|
|
1688
|
-
return
|
|
1690
|
+
return chunkN475ETD6_cjs.submit({
|
|
1689
1691
|
kind,
|
|
1690
1692
|
work,
|
|
1691
1693
|
...options.id !== void 0 ? { id: options.id } : {},
|
|
@@ -1696,11 +1698,11 @@ var Task = class {
|
|
|
1696
1698
|
}
|
|
1697
1699
|
/** Returns matching handles, capped at `filter.limit ?? 100`. */
|
|
1698
1700
|
static list(filter = {}) {
|
|
1699
|
-
return
|
|
1701
|
+
return chunkN475ETD6_cjs.list(filter);
|
|
1700
1702
|
}
|
|
1701
1703
|
/** Returns a single handle by id, or `undefined` if unknown / evicted. */
|
|
1702
1704
|
static get(id) {
|
|
1703
|
-
return
|
|
1705
|
+
return chunkN475ETD6_cjs.get(id);
|
|
1704
1706
|
}
|
|
1705
1707
|
/**
|
|
1706
1708
|
* Idempotent cancel (D365). Returns:
|
|
@@ -1713,7 +1715,7 @@ var Task = class {
|
|
|
1713
1715
|
* Never throws.
|
|
1714
1716
|
*/
|
|
1715
1717
|
static cancel(id, reason) {
|
|
1716
|
-
return
|
|
1718
|
+
return chunkN475ETD6_cjs.cancel(id, reason);
|
|
1717
1719
|
}
|
|
1718
1720
|
/**
|
|
1719
1721
|
* Subscribe to a task's event stream. The returned `AsyncIterable<TaskEvent>`
|
|
@@ -1727,7 +1729,7 @@ var Task = class {
|
|
|
1727
1729
|
* Throws `TaskNotFoundError` if the id is unknown or has been evicted.
|
|
1728
1730
|
*/
|
|
1729
1731
|
static subscribe(id) {
|
|
1730
|
-
return
|
|
1732
|
+
return chunkN475ETD6_cjs.subscribe(id);
|
|
1731
1733
|
}
|
|
1732
1734
|
};
|
|
1733
1735
|
|
|
@@ -1740,7 +1742,7 @@ var FIXTURE_USER = {
|
|
|
1740
1742
|
};
|
|
1741
1743
|
var FIXTURE_MODELS = [
|
|
1742
1744
|
{
|
|
1743
|
-
id:
|
|
1745
|
+
id: chunkINSFS5GT_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
1744
1746
|
name: "Gemini 2.0 Flash",
|
|
1745
1747
|
displayName: "Gemini 2.0 Flash",
|
|
1746
1748
|
parameters: [
|
|
@@ -1816,20 +1818,20 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
1816
1818
|
try {
|
|
1817
1819
|
response = await fetch(url, { method: "GET" });
|
|
1818
1820
|
} catch (fetchErr) {
|
|
1819
|
-
const mapped =
|
|
1821
|
+
const mapped = chunkBPN5ONSW_cjs.mapOllamaTransportError({
|
|
1820
1822
|
providerId: "ollama",
|
|
1821
1823
|
cause: fetchErr,
|
|
1822
1824
|
endpoint: "/v1/models"
|
|
1823
1825
|
});
|
|
1824
1826
|
if (mapped !== void 0) throw mapped;
|
|
1825
|
-
throw new
|
|
1827
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError(
|
|
1826
1828
|
`Failed to reach local provider at ${baseUrl}: ${fetchErr.message}`,
|
|
1827
1829
|
{ code: "local_provider_unreachable" }
|
|
1828
1830
|
);
|
|
1829
1831
|
}
|
|
1830
1832
|
if (!response.ok) {
|
|
1831
|
-
const body = await
|
|
1832
|
-
const mapped =
|
|
1833
|
+
const body = await chunkBPN5ONSW_cjs.readErrorResponseBody(response);
|
|
1834
|
+
const mapped = chunkBPN5ONSW_cjs.mapOllamaHttpError({
|
|
1833
1835
|
providerId: "ollama",
|
|
1834
1836
|
status: response.status,
|
|
1835
1837
|
body,
|
|
@@ -1837,7 +1839,7 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
1837
1839
|
endpoint: "/v1/models"
|
|
1838
1840
|
});
|
|
1839
1841
|
if (mapped !== void 0) throw mapped;
|
|
1840
|
-
throw new
|
|
1842
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError(
|
|
1841
1843
|
`Local provider at ${baseUrl} returned HTTP ${response.status} on /v1/models`,
|
|
1842
1844
|
{ code: "local_provider_http_error" }
|
|
1843
1845
|
);
|
|
@@ -1892,9 +1894,9 @@ var Theokit = class {
|
|
|
1892
1894
|
});
|
|
1893
1895
|
},
|
|
1894
1896
|
capabilities: (providerOrModelId) => {
|
|
1895
|
-
|
|
1897
|
+
chunkG4XUXSRN_cjs.registerBuiltins();
|
|
1896
1898
|
const providerId = providerOrModelId.includes("/") ? providerOrModelId.split("/")[0] ?? providerOrModelId : providerOrModelId;
|
|
1897
|
-
return
|
|
1899
|
+
return chunkG4XUXSRN_cjs.getCatalogCapabilities(providerId);
|
|
1898
1900
|
}
|
|
1899
1901
|
};
|
|
1900
1902
|
/**
|
|
@@ -1933,8 +1935,8 @@ var Theokit = class {
|
|
|
1933
1935
|
*/
|
|
1934
1936
|
static inspect = {
|
|
1935
1937
|
builtinProviders: () => {
|
|
1936
|
-
|
|
1937
|
-
return
|
|
1938
|
+
chunkG4XUXSRN_cjs.registerBuiltins();
|
|
1939
|
+
return chunkG4XUXSRN_cjs.listProviders().map((p) => ({
|
|
1938
1940
|
name: p.name,
|
|
1939
1941
|
apiMode: p.apiMode,
|
|
1940
1942
|
authType: p.authType,
|
|
@@ -1943,7 +1945,7 @@ var Theokit = class {
|
|
|
1943
1945
|
envVars: p.envVars
|
|
1944
1946
|
}));
|
|
1945
1947
|
},
|
|
1946
|
-
embeddingAdapters: () => Object.entries(
|
|
1948
|
+
embeddingAdapters: () => Object.entries(chunkINSFS5GT_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
1947
1949
|
id,
|
|
1948
1950
|
transport: adapter.transport,
|
|
1949
1951
|
defaultModel: adapter.defaultModel
|
|
@@ -1960,9 +1962,9 @@ var Theokit = class {
|
|
|
1960
1962
|
// and may be promoted onto Theokit once the agent.ts cycle is broken.
|
|
1961
1963
|
};
|
|
1962
1964
|
async function maybeListLocalModels(providerName) {
|
|
1963
|
-
|
|
1964
|
-
await
|
|
1965
|
-
const profile =
|
|
1965
|
+
chunkG4XUXSRN_cjs.registerBuiltins();
|
|
1966
|
+
await chunkBPN5ONSW_cjs.discoverProviderPlugins();
|
|
1967
|
+
const profile = chunkG4XUXSRN_cjs.getProviderProfile(providerName);
|
|
1966
1968
|
if (profile === void 0) return void 0;
|
|
1967
1969
|
if (profile.authType !== "none") return void 0;
|
|
1968
1970
|
const baseUrl = resolveLocalProviderBaseUrl(profile.name, profile.baseUrl);
|
|
@@ -1975,17 +1977,17 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
|
|
|
1975
1977
|
return fallback;
|
|
1976
1978
|
}
|
|
1977
1979
|
async function executeCatalogRequest(request) {
|
|
1978
|
-
const apiKey =
|
|
1980
|
+
const apiKey = chunkINSFS5GT_cjs.resolveApiKey(request.apiKey);
|
|
1979
1981
|
if (apiKey === void 0) {
|
|
1980
|
-
throw new
|
|
1982
|
+
throw new chunkIHFNRNTJ_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
|
|
1981
1983
|
}
|
|
1982
|
-
if (
|
|
1984
|
+
if (chunkBPN5ONSW_cjs.shouldUseFixtureMode(apiKey)) {
|
|
1983
1985
|
return request.fixture;
|
|
1984
1986
|
}
|
|
1985
|
-
if (!
|
|
1986
|
-
throw new
|
|
1987
|
+
if (!chunkBPN5ONSW_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
|
|
1988
|
+
throw new chunkIHFNRNTJ_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
|
|
1987
1989
|
}
|
|
1988
|
-
return
|
|
1990
|
+
return chunkBPN5ONSW_cjs.httpRequest(request.path, { apiKey });
|
|
1989
1991
|
}
|
|
1990
1992
|
|
|
1991
1993
|
// src/trajectory-helpers.ts
|
|
@@ -2083,57 +2085,57 @@ function safeStringify(v) {
|
|
|
2083
2085
|
}
|
|
2084
2086
|
}
|
|
2085
2087
|
|
|
2086
|
-
Object.defineProperty(exports, "
|
|
2088
|
+
Object.defineProperty(exports, "JudgeCredentialError", {
|
|
2087
2089
|
enumerable: true,
|
|
2088
|
-
get: function () { return
|
|
2090
|
+
get: function () { return chunkECHGWE47_cjs.JudgeCredentialError; }
|
|
2089
2091
|
});
|
|
2090
|
-
Object.defineProperty(exports, "
|
|
2092
|
+
Object.defineProperty(exports, "StreamObjectError", {
|
|
2091
2093
|
enumerable: true,
|
|
2092
|
-
get: function () { return
|
|
2094
|
+
get: function () { return chunkHIQFVHC6_cjs.StreamObjectError; }
|
|
2093
2095
|
});
|
|
2094
|
-
Object.defineProperty(exports, "
|
|
2096
|
+
Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
|
|
2095
2097
|
enumerable: true,
|
|
2096
|
-
get: function () { return
|
|
2098
|
+
get: function () { return chunkOBA6YK2R_cjs.GOAL_CONTINUATION_MARKER; }
|
|
2097
2099
|
});
|
|
2098
2100
|
Object.defineProperty(exports, "GenerateObjectError", {
|
|
2099
2101
|
enumerable: true,
|
|
2100
|
-
get: function () { return
|
|
2102
|
+
get: function () { return chunkVJYSQXN6_cjs.GenerateObjectError; }
|
|
2101
2103
|
});
|
|
2102
2104
|
Object.defineProperty(exports, "Cron", {
|
|
2103
2105
|
enumerable: true,
|
|
2104
|
-
get: function () { return
|
|
2106
|
+
get: function () { return chunkFRUBE44B_cjs.Cron; }
|
|
2105
2107
|
});
|
|
2106
2108
|
Object.defineProperty(exports, "Agent", {
|
|
2107
2109
|
enumerable: true,
|
|
2108
|
-
get: function () { return
|
|
2110
|
+
get: function () { return chunkINSFS5GT_cjs.Agent; }
|
|
2109
2111
|
});
|
|
2110
2112
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2111
2113
|
enumerable: true,
|
|
2112
|
-
get: function () { return
|
|
2114
|
+
get: function () { return chunkINSFS5GT_cjs.AgentBuilder; }
|
|
2113
2115
|
});
|
|
2114
2116
|
Object.defineProperty(exports, "Tool", {
|
|
2115
2117
|
enumerable: true,
|
|
2116
|
-
get: function () { return
|
|
2118
|
+
get: function () { return chunkINSFS5GT_cjs.Tool; }
|
|
2117
2119
|
});
|
|
2118
2120
|
Object.defineProperty(exports, "ToolError", {
|
|
2119
2121
|
enumerable: true,
|
|
2120
|
-
get: function () { return
|
|
2122
|
+
get: function () { return chunkINSFS5GT_cjs.ToolError; }
|
|
2121
2123
|
});
|
|
2122
2124
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2123
2125
|
enumerable: true,
|
|
2124
|
-
get: function () { return
|
|
2126
|
+
get: function () { return chunkINSFS5GT_cjs.UsageAccumulator; }
|
|
2125
2127
|
});
|
|
2126
2128
|
Object.defineProperty(exports, "computeCost", {
|
|
2127
2129
|
enumerable: true,
|
|
2128
|
-
get: function () { return
|
|
2130
|
+
get: function () { return chunkINSFS5GT_cjs.computeCost; }
|
|
2129
2131
|
});
|
|
2130
2132
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2131
2133
|
enumerable: true,
|
|
2132
|
-
get: function () { return
|
|
2134
|
+
get: function () { return chunkINSFS5GT_cjs.getPricingEntry; }
|
|
2133
2135
|
});
|
|
2134
2136
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2135
2137
|
enumerable: true,
|
|
2136
|
-
get: function () { return
|
|
2138
|
+
get: function () { return chunkN475ETD6_cjs.emitRunEvent; }
|
|
2137
2139
|
});
|
|
2138
2140
|
Object.defineProperty(exports, "withCwdMutex", {
|
|
2139
2141
|
enumerable: true,
|
|
@@ -2141,71 +2143,75 @@ Object.defineProperty(exports, "withCwdMutex", {
|
|
|
2141
2143
|
});
|
|
2142
2144
|
Object.defineProperty(exports, "AgentDisposedError", {
|
|
2143
2145
|
enumerable: true,
|
|
2144
|
-
get: function () { return
|
|
2146
|
+
get: function () { return chunkIHFNRNTJ_cjs.AgentDisposedError; }
|
|
2145
2147
|
});
|
|
2146
2148
|
Object.defineProperty(exports, "AgentRunError", {
|
|
2147
2149
|
enumerable: true,
|
|
2148
|
-
get: function () { return
|
|
2150
|
+
get: function () { return chunkIHFNRNTJ_cjs.AgentRunError; }
|
|
2149
2151
|
});
|
|
2150
2152
|
Object.defineProperty(exports, "AuthenticationError", {
|
|
2151
2153
|
enumerable: true,
|
|
2152
|
-
get: function () { return
|
|
2154
|
+
get: function () { return chunkIHFNRNTJ_cjs.AuthenticationError; }
|
|
2153
2155
|
});
|
|
2154
2156
|
Object.defineProperty(exports, "BudgetExceededError", {
|
|
2155
2157
|
enumerable: true,
|
|
2156
|
-
get: function () { return
|
|
2158
|
+
get: function () { return chunkIHFNRNTJ_cjs.BudgetExceededError; }
|
|
2157
2159
|
});
|
|
2158
2160
|
Object.defineProperty(exports, "ConfigurationError", {
|
|
2159
2161
|
enumerable: true,
|
|
2160
|
-
get: function () { return
|
|
2162
|
+
get: function () { return chunkIHFNRNTJ_cjs.ConfigurationError; }
|
|
2161
2163
|
});
|
|
2162
2164
|
Object.defineProperty(exports, "IntegrationNotConnectedError", {
|
|
2163
2165
|
enumerable: true,
|
|
2164
|
-
get: function () { return
|
|
2166
|
+
get: function () { return chunkIHFNRNTJ_cjs.IntegrationNotConnectedError; }
|
|
2165
2167
|
});
|
|
2166
2168
|
Object.defineProperty(exports, "InvalidTaskIdError", {
|
|
2167
2169
|
enumerable: true,
|
|
2168
|
-
get: function () { return
|
|
2170
|
+
get: function () { return chunkIHFNRNTJ_cjs.InvalidTaskIdError; }
|
|
2169
2171
|
});
|
|
2170
2172
|
Object.defineProperty(exports, "MemoryAdapterError", {
|
|
2171
2173
|
enumerable: true,
|
|
2172
|
-
get: function () { return
|
|
2174
|
+
get: function () { return chunkIHFNRNTJ_cjs.MemoryAdapterError; }
|
|
2173
2175
|
});
|
|
2174
2176
|
Object.defineProperty(exports, "NetworkError", {
|
|
2175
2177
|
enumerable: true,
|
|
2176
|
-
get: function () { return
|
|
2178
|
+
get: function () { return chunkIHFNRNTJ_cjs.NetworkError; }
|
|
2177
2179
|
});
|
|
2178
2180
|
Object.defineProperty(exports, "RateLimitError", {
|
|
2179
2181
|
enumerable: true,
|
|
2180
|
-
get: function () { return
|
|
2182
|
+
get: function () { return chunkIHFNRNTJ_cjs.RateLimitError; }
|
|
2181
2183
|
});
|
|
2182
2184
|
Object.defineProperty(exports, "TaskNotFoundError", {
|
|
2183
2185
|
enumerable: true,
|
|
2184
|
-
get: function () { return
|
|
2186
|
+
get: function () { return chunkIHFNRNTJ_cjs.TaskNotFoundError; }
|
|
2185
2187
|
});
|
|
2186
2188
|
Object.defineProperty(exports, "TheokitAgentError", {
|
|
2187
2189
|
enumerable: true,
|
|
2188
|
-
get: function () { return
|
|
2190
|
+
get: function () { return chunkIHFNRNTJ_cjs.TheokitAgentError; }
|
|
2189
2191
|
});
|
|
2190
2192
|
Object.defineProperty(exports, "UnknownAgentError", {
|
|
2191
2193
|
enumerable: true,
|
|
2192
|
-
get: function () { return
|
|
2194
|
+
get: function () { return chunkIHFNRNTJ_cjs.UnknownAgentError; }
|
|
2193
2195
|
});
|
|
2194
2196
|
Object.defineProperty(exports, "UnsupportedBudgetOperationError", {
|
|
2195
2197
|
enumerable: true,
|
|
2196
|
-
get: function () { return
|
|
2198
|
+
get: function () { return chunkIHFNRNTJ_cjs.UnsupportedBudgetOperationError; }
|
|
2197
2199
|
});
|
|
2198
2200
|
Object.defineProperty(exports, "UnsupportedRunOperationError", {
|
|
2199
2201
|
enumerable: true,
|
|
2200
|
-
get: function () { return
|
|
2202
|
+
get: function () { return chunkIHFNRNTJ_cjs.UnsupportedRunOperationError; }
|
|
2201
2203
|
});
|
|
2202
2204
|
Object.defineProperty(exports, "UnsupportedTaskOperationError", {
|
|
2203
2205
|
enumerable: true,
|
|
2204
|
-
get: function () { return
|
|
2206
|
+
get: function () { return chunkIHFNRNTJ_cjs.UnsupportedTaskOperationError; }
|
|
2205
2207
|
});
|
|
2206
2208
|
Object.defineProperty(exports, "isTransientError", {
|
|
2207
2209
|
enumerable: true,
|
|
2208
|
-
get: function () { return
|
|
2210
|
+
get: function () { return chunkIHFNRNTJ_cjs.isTransientError; }
|
|
2211
|
+
});
|
|
2212
|
+
Object.defineProperty(exports, "setDiagnosticsSink", {
|
|
2213
|
+
enumerable: true,
|
|
2214
|
+
get: function () { return chunkBCQ3E2ZG_cjs.setDiagnosticsSink; }
|
|
2209
2215
|
});
|
|
2210
2216
|
exports.AgentFactory = AgentFactory;
|
|
2211
2217
|
exports.Budget = Budget;
|