@theokit/sdk 4.63.3 → 5.0.0-next.1
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 +729 -0
- package/dist/a2a/index.cjs +29 -13
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.d.cts +1 -1
- package/dist/a2a/index.d.ts +1 -1
- package/dist/a2a/index.js +26 -11
- package/dist/a2a/index.js.map +1 -1
- package/dist/a2a/message-bus.d.cts +26 -3
- package/dist/a2a/message-bus.d.ts +26 -3
- package/dist/a2a/subagent.d.cts +8 -3
- package/dist/a2a/subagent.d.ts +8 -3
- package/dist/agent-2E7DI47Y.cjs +67 -0
- package/dist/{agent-PVINJTUR.cjs.map → agent-2E7DI47Y.cjs.map} +1 -1
- package/dist/{agent-BFno7Sfn.d.ts → agent-CdYJfKr6.d.ts} +205 -36
- package/dist/{agent-X0DKA943.d.cts → agent-CgNzshyV.d.cts} +205 -36
- package/dist/agent-XMKRP27S.js +58 -0
- package/dist/{agent-3JK7VXNN.js.map → agent-XMKRP27S.js.map} +1 -1
- package/dist/agent-session-store-AFML3AXC.js +6 -0
- package/dist/{agent-session-store-OPGRB4XM.js.map → agent-session-store-AFML3AXC.js.map} +1 -1
- package/dist/agent-session-store-MTSIY3MH.cjs +23 -0
- package/dist/{agent-session-store-6EL5NPA4.cjs.map → agent-session-store-MTSIY3MH.cjs.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/auth/index.cjs +33 -34
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.cts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +6 -7
- package/dist/auth/index.js.map +1 -1
- package/dist/{batch-BXYTW2DP.cjs → batch-I6T6MXZO.cjs} +58 -40
- package/dist/batch-I6T6MXZO.cjs.map +1 -0
- package/dist/{batch-L4ZXS46M.js → batch-US4F6WPK.js} +42 -24
- package/dist/batch-US4F6WPK.js.map +1 -0
- package/dist/chunk-24MGQDK3.js +31 -0
- package/dist/chunk-24MGQDK3.js.map +1 -0
- package/dist/{chunk-UGT7GK7I.cjs → chunk-24SYBZPL.cjs} +36 -18
- package/dist/chunk-24SYBZPL.cjs.map +1 -0
- package/dist/{chunk-KYAJINUI.cjs → chunk-2HPNT6HH.cjs} +581 -401
- package/dist/chunk-2HPNT6HH.cjs.map +1 -0
- package/dist/{chunk-VLVVJLDH.cjs → chunk-2NE7DTOK.cjs} +234 -193
- package/dist/chunk-2NE7DTOK.cjs.map +1 -0
- package/dist/{chunk-N2U4AZGB.js → chunk-2WXHA33T.js} +3 -3
- package/dist/chunk-2WXHA33T.js.map +1 -0
- package/dist/chunk-2XC6KDJM.js +22 -0
- package/dist/chunk-2XC6KDJM.js.map +1 -0
- package/dist/{chunk-L3MTL4NA.js → chunk-2ZLVT7H3.js} +223 -182
- package/dist/chunk-2ZLVT7H3.js.map +1 -0
- package/dist/{chunk-2GUYQR5P.js → chunk-3JHIFQ4I.js} +39 -13
- package/dist/chunk-3JHIFQ4I.js.map +1 -0
- package/dist/{chunk-BU4KFWXF.js → chunk-44I6UYVH.js} +8 -17
- package/dist/chunk-44I6UYVH.js.map +1 -0
- package/dist/{chunk-UNYXQ4M5.js → chunk-47TF32NQ.js} +10 -5
- package/dist/chunk-47TF32NQ.js.map +1 -0
- package/dist/{chunk-WNO3C3N2.cjs → chunk-4A3SKJ53.cjs} +56 -27
- package/dist/chunk-4A3SKJ53.cjs.map +1 -0
- package/dist/{chunk-YML4ME27.cjs → chunk-4HS6FFGL.cjs} +55 -46
- package/dist/chunk-4HS6FFGL.cjs.map +1 -0
- package/dist/{chunk-C72AZW7J.js → chunk-4MMWFSCD.js} +4 -4
- package/dist/chunk-4MMWFSCD.js.map +1 -0
- package/dist/{chunk-6HKGLTJI.cjs → chunk-4NLCWGH7.cjs} +15 -15
- package/dist/chunk-4NLCWGH7.cjs.map +1 -0
- package/dist/{chunk-UBDMVMBZ.js → chunk-55GB6JYQ.js} +33 -22
- package/dist/chunk-55GB6JYQ.js.map +1 -0
- package/dist/{chunk-U6IFHFWK.js → chunk-5WKQDIGO.js} +8 -17
- package/dist/chunk-5WKQDIGO.js.map +1 -0
- package/dist/{chunk-GPKAF7SG.js → chunk-6HIACV34.js} +91 -92
- package/dist/chunk-6HIACV34.js.map +1 -0
- package/dist/{chunk-XL7Q7HB2.cjs → chunk-6LHQPOMI.cjs} +39 -6
- package/dist/chunk-6LHQPOMI.cjs.map +1 -0
- package/dist/{chunk-A4JVILQU.js → chunk-6M2OIS4Y.js} +7 -7
- package/dist/chunk-6M2OIS4Y.js.map +1 -0
- package/dist/{chunk-LWGSI6M3.js → chunk-6PWOWXMC.js} +4 -4
- package/dist/{chunk-LWGSI6M3.js.map → chunk-6PWOWXMC.js.map} +1 -1
- package/dist/{chunk-RNB4APBZ.js → chunk-6WAKKTBO.js} +9 -5
- package/dist/chunk-6WAKKTBO.js.map +1 -0
- package/dist/{chunk-V2BOS4WF.cjs → chunk-7A6535RA.cjs} +11 -11
- package/dist/chunk-7A6535RA.cjs.map +1 -0
- package/dist/{chunk-ZLQSWSJ2.cjs → chunk-7FDKWDA2.cjs} +11 -11
- package/dist/{chunk-ZLQSWSJ2.cjs.map → chunk-7FDKWDA2.cjs.map} +1 -1
- package/dist/{chunk-4VPXM6UU.js → chunk-7I5Z3UBJ.js} +3 -3
- package/dist/{chunk-4VPXM6UU.js.map → chunk-7I5Z3UBJ.js.map} +1 -1
- package/dist/{chunk-B4EOJWOY.cjs → chunk-7JJ3A6AT.cjs} +13 -7
- package/dist/chunk-7JJ3A6AT.cjs.map +1 -0
- package/dist/{chunk-ZWRG4NWT.cjs → chunk-7ZK4DJD7.cjs} +108 -109
- package/dist/chunk-7ZK4DJD7.cjs.map +1 -0
- package/dist/{chunk-WJVHMTKB.cjs → chunk-AA27GEYS.cjs} +3 -3
- package/dist/{chunk-WJVHMTKB.cjs.map → chunk-AA27GEYS.cjs.map} +1 -1
- package/dist/{chunk-BP46RJ5X.js → chunk-AAEZSPTC.js} +5 -5
- package/dist/{chunk-BP46RJ5X.js.map → chunk-AAEZSPTC.js.map} +1 -1
- package/dist/chunk-AGACYRJ2.js +11 -0
- package/dist/chunk-AGACYRJ2.js.map +1 -0
- package/dist/{chunk-ZZMZWBR6.js → chunk-ALUN2B4W.js} +81 -58
- package/dist/chunk-ALUN2B4W.js.map +1 -0
- package/dist/chunk-ANMJJD6D.cjs +18 -0
- package/dist/chunk-ANMJJD6D.cjs.map +1 -0
- package/dist/{chunk-DXGZ2NUG.cjs → chunk-ATT276RD.cjs} +12 -11
- package/dist/chunk-ATT276RD.cjs.map +1 -0
- package/dist/{chunk-4FFBAUFS.js → chunk-AWINL3ZC.js} +6 -6
- package/dist/chunk-AWINL3ZC.js.map +1 -0
- package/dist/{chunk-UU36SHFY.cjs → chunk-BJUJT5ED.cjs} +9 -8
- package/dist/chunk-BJUJT5ED.cjs.map +1 -0
- package/dist/chunk-CEILSTWB.cjs +109 -0
- package/dist/chunk-CEILSTWB.cjs.map +1 -0
- package/dist/{chunk-D4CUGAKZ.js → chunk-CZJ6Q7CW.js} +36 -6
- package/dist/chunk-CZJ6Q7CW.js.map +1 -0
- package/dist/{chunk-KQ7TS7WW.cjs → chunk-D6POWE7E.cjs} +37 -26
- package/dist/chunk-D6POWE7E.cjs.map +1 -0
- package/dist/{chunk-AWO27VRZ.js → chunk-DMRT67Y6.js} +6 -5
- package/dist/chunk-DMRT67Y6.js.map +1 -0
- package/dist/{chunk-5VB22SYX.cjs → chunk-DQZU7JK6.cjs} +7 -7
- package/dist/{chunk-5VB22SYX.cjs.map → chunk-DQZU7JK6.cjs.map} +1 -1
- package/dist/{chunk-3NSS2OIZ.cjs → chunk-DRL7URI4.cjs} +6 -6
- package/dist/{chunk-3NSS2OIZ.cjs.map → chunk-DRL7URI4.cjs.map} +1 -1
- package/dist/{chunk-RFXWMRFC.js → chunk-EFMFILPG.js} +14 -6
- package/dist/chunk-EFMFILPG.js.map +1 -0
- package/dist/{chunk-HS7AVXTF.js → chunk-EH6XD3FY.js} +4 -4
- package/dist/chunk-EH6XD3FY.js.map +1 -0
- package/dist/{chunk-KQRW2GPZ.js → chunk-EIQFAOFD.js} +6 -6
- package/dist/chunk-EIQFAOFD.js.map +1 -0
- package/dist/{chunk-XJCXEKMD.cjs → chunk-EXTRW7GW.cjs} +4 -4
- package/dist/chunk-EXTRW7GW.cjs.map +1 -0
- package/dist/{chunk-U54XCYG3.js → chunk-FJWQP6EE.js} +12 -6
- package/dist/chunk-FJWQP6EE.js.map +1 -0
- package/dist/{chunk-O7DK5PBJ.cjs → chunk-FUSDYC2B.cjs} +26 -42
- package/dist/chunk-FUSDYC2B.cjs.map +1 -0
- package/dist/{chunk-CQBXOJ6U.cjs → chunk-G4ZGYKJG.cjs} +21 -21
- package/dist/chunk-G4ZGYKJG.cjs.map +1 -0
- package/dist/{chunk-4QZSA2HJ.js → chunk-G7BLGBRN.js} +4 -4
- package/dist/chunk-G7BLGBRN.js.map +1 -0
- package/dist/{chunk-BZRFXJHA.js → chunk-GBCVPKHE.js} +55 -26
- package/dist/chunk-GBCVPKHE.js.map +1 -0
- package/dist/{chunk-5HEG4CQH.cjs → chunk-GZV6AVRL.cjs} +8 -8
- package/dist/{chunk-5HEG4CQH.cjs.map → chunk-GZV6AVRL.cjs.map} +1 -1
- package/dist/{chunk-RFMBZPOW.cjs → chunk-HCT4HPCL.cjs} +10 -10
- package/dist/chunk-HCT4HPCL.cjs.map +1 -0
- package/dist/{chunk-OSEG74VJ.js → chunk-HFEJE7AC.js} +52 -43
- package/dist/chunk-HFEJE7AC.js.map +1 -0
- package/dist/{chunk-52NKC5HT.cjs → chunk-HUFSABUZ.cjs} +12 -8
- package/dist/chunk-HUFSABUZ.cjs.map +1 -0
- package/dist/{chunk-4CLOXP6H.cjs → chunk-HW7SEELD.cjs} +4 -4
- package/dist/{chunk-4CLOXP6H.cjs.map → chunk-HW7SEELD.cjs.map} +1 -1
- package/dist/{chunk-ZCIRZE37.cjs → chunk-HWSALKOR.cjs} +26 -17
- package/dist/chunk-HWSALKOR.cjs.map +1 -0
- package/dist/{chunk-ZSWPZ23K.cjs → chunk-I2PWY7VM.cjs} +5 -5
- package/dist/chunk-I2PWY7VM.cjs.map +1 -0
- package/dist/{chunk-VJ26EKGJ.cjs → chunk-IJ7M6GOG.cjs} +3 -3
- package/dist/chunk-IJ7M6GOG.cjs.map +1 -0
- package/dist/{chunk-K5OJUYSZ.js → chunk-IJM7UGS5.js} +19 -10
- package/dist/chunk-IJM7UGS5.js.map +1 -0
- package/dist/{chunk-SAVIWMZB.js → chunk-ILGZ2ZZV.js} +3 -3
- package/dist/chunk-ILGZ2ZZV.js.map +1 -0
- package/dist/{chunk-4ZHTIJNE.cjs → chunk-J7J7J2GN.cjs} +87 -63
- package/dist/chunk-J7J7J2GN.cjs.map +1 -0
- package/dist/{chunk-UALX2J2Q.cjs → chunk-JLRLCBJ4.cjs} +38 -11
- package/dist/chunk-JLRLCBJ4.cjs.map +1 -0
- package/dist/{chunk-2QDYBS2A.js → chunk-JMDDYA22.js} +4 -4
- package/dist/chunk-JMDDYA22.js.map +1 -0
- package/dist/{chunk-LXQ6HKPS.js → chunk-JNAA4G4H.js} +3 -3
- package/dist/{chunk-LXQ6HKPS.js.map → chunk-JNAA4G4H.js.map} +1 -1
- package/dist/{chunk-UMP6OJIM.js → chunk-JOFVLOFY.js} +4 -4
- package/dist/{chunk-UMP6OJIM.js.map → chunk-JOFVLOFY.js.map} +1 -1
- package/dist/chunk-JTZ74HFD.js +100 -0
- package/dist/chunk-JTZ74HFD.js.map +1 -0
- package/dist/{chunk-A46SWMIF.js → chunk-K2VMFZQ5.js} +7 -7
- package/dist/chunk-K2VMFZQ5.js.map +1 -0
- package/dist/{chunk-DN2PACRI.js → chunk-K3NH62DG.js} +461 -282
- package/dist/chunk-K3NH62DG.js.map +1 -0
- package/dist/{chunk-XWTLIGO3.cjs → chunk-KTTHHYEW.cjs} +5 -5
- package/dist/chunk-KTTHHYEW.cjs.map +1 -0
- package/dist/{chunk-3FFAEAUJ.cjs → chunk-KVSAY6NZ.cjs} +18 -18
- package/dist/chunk-KVSAY6NZ.cjs.map +1 -0
- package/dist/{chunk-IAHZCGBE.cjs → chunk-LHSWHYF3.cjs} +120 -146
- package/dist/chunk-LHSWHYF3.cjs.map +1 -0
- package/dist/{chunk-25BD2R5G.js → chunk-NCGWJ3HS.js} +1991 -1854
- package/dist/chunk-NCGWJ3HS.js.map +1 -0
- package/dist/{chunk-3OR54XG4.js → chunk-NJWYQWDL.js} +12 -8
- package/dist/chunk-NJWYQWDL.js.map +1 -0
- package/dist/chunk-NVXXWAU7.cjs +13 -0
- package/dist/chunk-NVXXWAU7.cjs.map +1 -0
- package/dist/{chunk-2D34UTDC.js → chunk-O6USDERH.js} +31 -11
- package/dist/chunk-O6USDERH.js.map +1 -0
- package/dist/{chunk-XO4SOZN6.js → chunk-OR6XIWLB.js} +4 -4
- package/dist/{chunk-XO4SOZN6.js.map → chunk-OR6XIWLB.js.map} +1 -1
- package/dist/{chunk-4PYZ5AX3.cjs → chunk-PRZ3BES7.cjs} +16 -8
- package/dist/chunk-PRZ3BES7.cjs.map +1 -0
- package/dist/{chunk-HCZD23VS.cjs → chunk-QC55H6RJ.cjs} +65 -39
- package/dist/chunk-QC55H6RJ.cjs.map +1 -0
- package/dist/{chunk-4O5TGQBW.cjs → chunk-QME6FDFG.cjs} +9 -5
- package/dist/chunk-QME6FDFG.cjs.map +1 -0
- package/dist/chunk-QOGNZMHD.cjs +34 -0
- package/dist/chunk-QOGNZMHD.cjs.map +1 -0
- package/dist/{chunk-B2J4ZMZL.cjs → chunk-QWD3CZWE.cjs} +6 -5
- package/dist/chunk-QWD3CZWE.cjs.map +1 -0
- package/dist/{chunk-SZVR77EJ.cjs → chunk-QWD4RDZ3.cjs} +15 -24
- package/dist/chunk-QWD4RDZ3.cjs.map +1 -0
- package/dist/{chunk-7BG5UH3T.cjs → chunk-RHZ6HP23.cjs} +4 -4
- package/dist/chunk-RHZ6HP23.cjs.map +1 -0
- package/dist/{chunk-2HVF2WJY.cjs → chunk-RQMCOFAI.cjs} +8 -8
- package/dist/{chunk-2HVF2WJY.cjs.map → chunk-RQMCOFAI.cjs.map} +1 -1
- package/dist/{chunk-VKJ7V7EB.cjs → chunk-SA6K24NB.cjs} +3 -3
- package/dist/chunk-SA6K24NB.cjs.map +1 -0
- package/dist/{chunk-7AD3ZTZL.js → chunk-SAGRF4IB.js} +3 -3
- package/dist/chunk-SAGRF4IB.js.map +1 -0
- package/dist/{chunk-PUAEFLYK.js → chunk-SVQIW5RJ.js} +4 -4
- package/dist/{chunk-PUAEFLYK.js.map → chunk-SVQIW5RJ.js.map} +1 -1
- package/dist/{chunk-3O42QOMJ.js → chunk-TA3K7SBK.js} +7 -6
- package/dist/chunk-TA3K7SBK.js.map +1 -0
- package/dist/{chunk-LYRDF5TQ.cjs → chunk-TFG5IBZS.cjs} +14 -23
- package/dist/chunk-TFG5IBZS.cjs.map +1 -0
- package/dist/{chunk-GKEFRLU7.cjs → chunk-TMKTSYDS.cjs} +6 -6
- package/dist/{chunk-GKEFRLU7.cjs.map → chunk-TMKTSYDS.cjs.map} +1 -1
- package/dist/{chunk-J24VJOH3.cjs → chunk-UADQJBHR.cjs} +31 -11
- package/dist/chunk-UADQJBHR.cjs.map +1 -0
- package/dist/{chunk-TAZVKYWJ.js → chunk-UBR5PWD7.js} +26 -40
- package/dist/chunk-UBR5PWD7.js.map +1 -0
- package/dist/{chunk-IPYYKCRC.js → chunk-UFPUHJWS.js} +5 -5
- package/dist/{chunk-IPYYKCRC.js.map → chunk-UFPUHJWS.js.map} +1 -1
- package/dist/{chunk-OHLDPWTA.cjs → chunk-UGRS7ZA7.cjs} +15 -15
- package/dist/{chunk-OHLDPWTA.cjs.map → chunk-UGRS7ZA7.cjs.map} +1 -1
- package/dist/{chunk-RIAM53CP.js → chunk-UKMBRMGT.js} +3 -3
- package/dist/chunk-UKMBRMGT.js.map +1 -0
- package/dist/{chunk-L4BDVXIM.js → chunk-UNK4HNJH.js} +97 -123
- package/dist/chunk-UNK4HNJH.js.map +1 -0
- package/dist/{chunk-C3NT3PVE.js → chunk-V22DZIXO.js} +3 -3
- package/dist/chunk-V22DZIXO.js.map +1 -0
- package/dist/{chunk-OFRFZRQ4.cjs → chunk-V6ZY4AX6.cjs} +24 -14
- package/dist/chunk-V6ZY4AX6.cjs.map +1 -0
- package/dist/{chunk-B3IMEBOA.js → chunk-VE6DFSKU.js} +3 -3
- package/dist/{chunk-B3IMEBOA.js.map → chunk-VE6DFSKU.js.map} +1 -1
- package/dist/{chunk-WLQNMXQE.js → chunk-VWUXIVEI.js} +53 -26
- package/dist/chunk-VWUXIVEI.js.map +1 -0
- package/dist/{chunk-ACDLHN3W.js → chunk-WJXOICRC.js} +16 -6
- package/dist/chunk-WJXOICRC.js.map +1 -0
- package/dist/{chunk-JJ3OVRUM.cjs → chunk-WMH2MSOP.cjs} +2250 -2113
- package/dist/chunk-WMH2MSOP.cjs.map +1 -0
- package/dist/{chunk-7YGCPMGB.js → chunk-XB4GI5RZ.js} +27 -12
- package/dist/chunk-XB4GI5RZ.js.map +1 -0
- package/dist/{chunk-LXI4XZEC.js → chunk-XCCGNU3D.js} +13 -13
- package/dist/chunk-XCCGNU3D.js.map +1 -0
- package/dist/{chunk-O73J46PV.js → chunk-XDANGA2C.js} +5 -5
- package/dist/{chunk-O73J46PV.js.map → chunk-XDANGA2C.js.map} +1 -1
- package/dist/{chunk-UTSRIDKZ.js → chunk-XYFGKVZ7.js} +3 -3
- package/dist/chunk-XYFGKVZ7.js.map +1 -0
- package/dist/{chunk-RMWTPV3M.cjs → chunk-Y2KYR2ED.cjs} +27 -27
- package/dist/chunk-Y2KYR2ED.cjs.map +1 -0
- package/dist/{chunk-O7LZFG6O.cjs → chunk-YIFFF23U.cjs} +5 -5
- package/dist/chunk-YIFFF23U.cjs.map +1 -0
- package/dist/{chunk-4OTIXDMU.cjs → chunk-YJNYDJ2T.cjs} +12 -4
- package/dist/chunk-YJNYDJ2T.cjs.map +1 -0
- package/dist/{chunk-6JSIEDKL.cjs → chunk-YSTXFWQE.cjs} +13 -7
- package/dist/chunk-YSTXFWQE.cjs.map +1 -0
- package/dist/{chunk-I6HGWHPU.cjs → chunk-Z3NTRKIC.cjs} +4 -4
- package/dist/{chunk-I6HGWHPU.cjs.map → chunk-Z3NTRKIC.cjs.map} +1 -1
- package/dist/compact-session-BHTPCIHA.cjs +61 -0
- package/dist/{compact-session-QV57KR66.cjs.map → compact-session-BHTPCIHA.cjs.map} +1 -1
- package/dist/compact-session-W4WLJTHA.js +24 -0
- package/dist/{compact-session-RIGOWC4Y.js.map → compact-session-W4WLJTHA.js.map} +1 -1
- package/dist/compaction.cjs +20 -17
- package/dist/compaction.d.cts +15 -1
- package/dist/compaction.d.ts +15 -1
- package/dist/compaction.js +3 -4
- package/dist/concurrency.cjs +6 -7
- package/dist/concurrency.cjs.map +1 -1
- package/dist/concurrency.d.cts +6 -3
- package/dist/concurrency.d.ts +6 -3
- package/dist/concurrency.js +4 -5
- package/dist/concurrency.js.map +1 -1
- package/dist/context/index.cjs +6 -6
- package/dist/context/index.js +3 -3
- package/dist/context-74SBFD27.cjs +23 -0
- package/dist/{context-AGQ3DIZU.cjs.map → context-74SBFD27.cjs.map} +1 -1
- package/dist/context-NZ2AC6S7.js +6 -0
- package/dist/{context-GQRFBCLP.js.map → context-NZ2AC6S7.js.map} +1 -1
- package/dist/create-skill.d.ts +4 -1
- package/dist/{cron-BuiRPrvt.d.cts → cron-Bw6mSgD4.d.cts} +8 -2
- package/dist/{cron-C2SIi31n.d.ts → cron-DJv9oXSZ.d.ts} +8 -2
- package/dist/cron.cjs +46 -45
- package/dist/cron.d.cts +5 -4
- package/dist/cron.d.ts +5 -4
- package/dist/cron.js +45 -44
- package/dist/{errors-BgJH9PHi.d.cts → errors-CLOAyuiv.d.ts} +133 -95
- package/dist/{errors-C5fJUqLk.d.ts → errors-DrDEgyz1.d.cts} +133 -95
- package/dist/errors-base-B5g01neU.d.cts +75 -0
- package/dist/errors-base-B5g01neU.d.ts +75 -0
- package/dist/errors-base.d.ts +73 -0
- package/dist/errors.cjs +25 -22
- package/dist/errors.d.cts +3 -2
- package/dist/errors.d.ts +3 -2
- package/dist/errors.js +2 -3
- package/dist/eval.cjs +74 -78
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +64 -68
- package/dist/eval.js.map +1 -1
- package/dist/{executor-6CYCA7MI.cjs → executor-XQAOQOHD.cjs} +60 -54
- package/dist/executor-XQAOQOHD.cjs.map +1 -0
- package/dist/{executor-QSEC3MRH.js → executor-ZNDQDX6Q.js} +43 -37
- package/dist/executor-ZNDQDX6Q.js.map +1 -0
- package/dist/filesystem/index.cjs +24 -26
- package/dist/filesystem/index.cjs.map +1 -1
- package/dist/filesystem/index.js +20 -22
- package/dist/filesystem/index.js.map +1 -1
- package/dist/filesystem/types.d.cts +11 -5
- package/dist/filesystem/types.d.ts +11 -5
- package/dist/{fork-agent-RSV4E3EA.js → fork-agent-S2EPIML7.js} +3 -3
- package/dist/fork-agent-S2EPIML7.js.map +1 -0
- package/dist/{fork-agent-Y2IK2RYU.cjs → fork-agent-WAEQI2DL.cjs} +4 -4
- package/dist/fork-agent-WAEQI2DL.cjs.map +1 -0
- package/dist/fs-session-store-77JU46UZ.js +10 -0
- package/dist/{fs-session-store-NM6YSTE2.js.map → fs-session-store-77JU46UZ.js.map} +1 -1
- package/dist/fs-session-store-E4U3P56L.cjs +19 -0
- package/dist/{fs-session-store-4PIHT5UX.cjs.map → fs-session-store-E4U3P56L.cjs.map} +1 -1
- package/dist/generate-object-BXV7BZRP.js +7 -0
- package/dist/{generate-object-GUNAUVBX.js.map → generate-object-BXV7BZRP.js.map} +1 -1
- package/dist/generate-object-YBI2TDJ3.cjs +20 -0
- package/dist/{generate-object-R7HTMW7F.cjs.map → generate-object-YBI2TDJ3.cjs.map} +1 -1
- package/dist/generate-object.d.ts +2 -4
- package/dist/index-manager-DXR2RSFI.cjs +26 -0
- package/dist/{index-manager-2SRX45WJ.cjs.map → index-manager-DXR2RSFI.cjs.map} +1 -1
- package/dist/index-manager-QH6OXEV5.js +17 -0
- package/dist/{index-manager-SP4ISSDX.js.map → index-manager-QH6OXEV5.js.map} +1 -1
- package/dist/index.cjs +234 -194
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +243 -41
- package/dist/index.d.ts +243 -41
- package/dist/index.js +140 -102
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-DAR7OUCW.js → inject-session-SUM6TDJF.js} +9 -9
- package/dist/{inject-session-DAR7OUCW.js.map → inject-session-SUM6TDJF.js.map} +1 -1
- package/dist/inject-session-W6A46J3E.cjs +29 -0
- package/dist/{inject-session-WQKMC3GR.cjs.map → inject-session-W6A46J3E.cjs.map} +1 -1
- package/dist/interactive/index.cjs +12 -6
- package/dist/interactive/index.cjs.map +1 -1
- package/dist/interactive/index.js +12 -6
- package/dist/interactive/index.js.map +1 -1
- package/dist/interactive/types.d.cts +14 -4
- package/dist/interactive/types.d.ts +14 -4
- package/dist/internal/agent-loop/loop-context-init.d.ts +1 -1
- package/dist/internal/agent-loop/loop-finalize.d.ts +25 -0
- package/dist/internal/agent-loop/loop.d.ts +1 -1
- package/dist/internal/agent-loop/message-builders.d.ts +1 -1
- package/dist/internal/agent-loop/replay-messages.d.ts +41 -0
- package/dist/internal/agent-loop/tool-dispatch.d.ts +2 -2
- package/dist/internal/agent-loop/usage-and-cost.d.ts +1 -1
- package/dist/internal/auth/credential-availability.d.ts +61 -0
- package/dist/internal/auth/credential-store.d.ts +1 -1
- package/dist/internal/auth/oauth-device.d.ts +1 -1
- package/dist/internal/auth/oauth-engine.d.ts +1 -1
- package/dist/internal/auth/resolve-credential.d.ts +1 -1
- package/dist/internal/base-url.d.ts +14 -0
- package/dist/internal/cloud-agent/cloud-config-serializer.d.ts +1 -1
- package/dist/internal/{runtime/concurrency → concurrency}/subagent-credentials.d.ts +2 -2
- package/dist/internal/emit-run-event.d.ts +16 -0
- package/dist/internal/error-mappers/shared.d.ts +14 -1
- package/dist/internal/eval/assert.d.ts +2 -1
- package/dist/internal/eval/single-flight.d.ts +2 -1
- package/dist/internal/global-singleton.d.ts +6 -3
- package/dist/internal/llm/responses.d.ts +10 -0
- package/dist/internal/local-agent/local-agent-bootstrap.d.ts +5 -3
- package/dist/internal/local-agent/local-agent-capabilities.d.ts +38 -0
- package/dist/internal/local-agent/local-agent-dispatch.d.ts +2 -2
- package/dist/internal/local-agent/local-agent-memory-provider.d.ts +1 -1
- package/dist/internal/local-agent/local-agent-personality-extensions.d.ts +25 -1
- package/dist/internal/local-agent/local-agent-send.d.ts +42 -1
- package/dist/internal/local-agent/local-option-keys.d.ts +2 -0
- package/dist/internal/local-agent/real-local-run-mcp.d.ts +26 -0
- package/dist/internal/local-agent/real-local-run-options.d.ts +26 -0
- package/dist/internal/local-agent/real-local-run-tools.d.ts +21 -4
- package/dist/internal/local-agent/real-local-run.d.ts +2 -2
- package/dist/internal/mcp/handshake-timeout.d.ts +53 -0
- package/dist/internal/memory/active-memory.d.ts +1 -1
- package/dist/internal/memory/adapters/index.cjs +10 -10
- package/dist/internal/memory/adapters/index.js +9 -9
- package/dist/internal/memory/adapters/openai-embedding.d.cts +10 -0
- package/dist/internal/memory/adapters/openai-embedding.d.ts +10 -0
- package/dist/internal/memory/corpus-sync.d.ts +23 -0
- package/dist/internal/memory/index-db.d.ts +15 -1
- package/dist/internal/memory/index-manager-contract.d.ts +12 -0
- package/dist/internal/memory/index-manager.d.ts +4 -10
- package/dist/internal/memory/index-repository.d.ts +58 -0
- package/dist/internal/memory/lance-memory-adapter.d.ts +16 -14
- package/dist/internal/memory/memory-index.d.ts +15 -0
- package/dist/internal/memory/sdk-memory-peer-loader.d.ts +54 -1
- package/dist/internal/memory/storage/index.cjs +39 -40
- package/dist/internal/memory/storage/index.js +10 -11
- package/dist/internal/memory/storage/memory-root.d.cts +2 -3
- package/dist/internal/memory/storage/memory-root.d.ts +2 -3
- package/dist/internal/persistence/atomic-write.d.cts +4 -4
- package/dist/internal/persistence/atomic-write.d.ts +4 -4
- package/dist/internal/persistence/index.cjs +24 -25
- package/dist/internal/persistence/index.cjs.map +1 -1
- package/dist/internal/persistence/index.js +7 -8
- package/dist/internal/persistence/index.js.map +1 -1
- package/dist/internal/persistence/jsonl.d.cts +3 -1
- package/dist/internal/persistence/jsonl.d.ts +3 -1
- package/dist/internal/persistence/paths.d.cts +2 -2
- package/dist/internal/persistence/paths.d.ts +2 -2
- package/dist/internal/persistence/transcript-ops.d.cts +11 -2
- package/dist/internal/persistence/transcript-ops.d.ts +11 -2
- package/dist/internal/plugins/context.d.cts +0 -10
- package/dist/internal/plugins/context.d.ts +0 -10
- package/dist/internal/plugins/types.d.cts +1 -1
- package/dist/internal/plugins/types.d.ts +1 -1
- package/dist/internal/providers/catalog-schema.d.ts +94 -0
- package/dist/internal/providers/catalog-source-models-dev.d.ts +11 -0
- package/dist/internal/runtime/compat/foreign-config-sources.d.ts +86 -0
- package/dist/internal/runtime/compression/compression-model-registry.d.ts +1 -1
- package/dist/internal/runtime/compression/compression-summarizer.d.ts +5 -1
- package/dist/internal/runtime/fixtures/fixture-events.d.ts +1 -1
- package/dist/internal/runtime/fixtures/fixture-mode.d.ts +8 -14
- package/dist/internal/runtime/fixtures/fixture-run-base.d.ts +1 -1
- package/dist/internal/runtime/fixtures/fixture-scripts.d.ts +2 -2
- package/dist/internal/runtime/hooks/hooks-executor.d.ts +14 -1
- package/dist/internal/runtime/hooks/hooks-source.d.ts +9 -0
- package/dist/internal/runtime/lifecycle/wrap-completion-check-run.d.ts +1 -1
- package/dist/internal/runtime/{memory → memory-glue}/memory-provider.d.ts +1 -1
- package/dist/internal/runtime/{plugins → plugin-loader}/plugin-bundles.d.ts +3 -1
- package/dist/internal/runtime/processors/wrap-output-run.d.ts +1 -1
- package/dist/internal/runtime/registry/live-agent-registry.d.ts +9 -1
- package/dist/internal/runtime/system-prompt/local-assembly.d.ts +2 -1
- package/dist/internal/scorers/llm-judge.d.ts +12 -0
- package/dist/internal/security/index.cjs +14 -15
- package/dist/internal/security/index.d.cts +6 -1
- package/dist/internal/security/index.d.ts +6 -1
- package/dist/internal/security/index.js +4 -5
- package/dist/internal/security/path-containment.d.ts +24 -0
- package/dist/internal/session/agent-session-store.d.ts +1 -1
- package/dist/internal/session/agent-session.d.ts +1 -1
- package/dist/internal/session/index.d.ts +1 -1
- package/dist/internal/session/session-cache.d.ts +9 -3
- package/dist/internal/task/registry.d.ts +1 -1
- package/dist/internal/task/store.d.ts +1 -1
- package/dist/internal/task/subscribe.d.ts +1 -1
- package/dist/internal/task/task-id.d.ts +22 -0
- package/dist/internal/telemetry/adapter-registry.d.ts +12 -2
- package/dist/internal/telemetry/adapters/braintrust.d.ts +6 -1
- package/dist/internal/telemetry/adapters/langsmith.d.ts +6 -1
- package/dist/internal/workflow/executor.d.ts +2 -1
- package/dist/internal/workflow/snapshot-store.d.ts +1 -1
- package/dist/internal/workflow/step-branch.d.ts +2 -2
- package/dist/internal/workflow/step-dowhile.d.ts +2 -2
- package/dist/internal/workflow/step-execution.d.ts +25 -0
- package/dist/internal/workflow/step-foreach.d.ts +2 -2
- package/dist/internal/workflow/step-parallel.d.ts +2 -2
- package/dist/judge-call-6MVARKU2.js +5 -0
- package/dist/{judge-call-LVXABPS3.js.map → judge-call-6MVARKU2.js.map} +1 -1
- package/dist/judge-call-I3P4D5QR.cjs +22 -0
- package/dist/{judge-call-LAHMBJ57.cjs.map → judge-call-I3P4D5QR.cjs.map} +1 -1
- package/dist/mcp-auth.cjs +14 -15
- package/dist/mcp-auth.cjs.map +1 -1
- package/dist/mcp-auth.d.cts +2 -0
- package/dist/mcp-auth.d.ts +2 -0
- package/dist/mcp-auth.js +4 -5
- package/dist/mcp-auth.js.map +1 -1
- package/dist/models.cjs +52 -42
- package/dist/models.cjs.map +1 -1
- package/dist/models.js +39 -29
- package/dist/models.js.map +1 -1
- package/dist/oauth-transaction-store-5RIR6D5C.js +5 -0
- package/dist/{oauth-transaction-store-W52KVHQ4.js.map → oauth-transaction-store-5RIR6D5C.js.map} +1 -1
- package/dist/oauth-transaction-store-SXIE57OD.cjs +38 -0
- package/dist/{oauth-transaction-store-BT4GLTLK.cjs.map → oauth-transaction-store-SXIE57OD.cjs.map} +1 -1
- package/dist/path-safety.cjs +11 -12
- package/dist/path-safety.d.cts +2 -0
- package/dist/path-safety.d.ts +2 -0
- package/dist/path-safety.js +4 -5
- package/dist/permission-engine.d.ts +10 -17
- package/dist/persistence.cjs +31 -31
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.d.cts +9 -1
- package/dist/persistence.d.ts +9 -1
- package/dist/persistence.js +12 -13
- package/dist/persistence.js.map +1 -1
- package/dist/project.cjs +5 -6
- package/dist/project.cjs.map +1 -1
- package/dist/project.js +3 -4
- package/dist/project.js.map +1 -1
- package/dist/providers.cjs +10 -10
- package/dist/providers.d.cts +2 -0
- package/dist/providers.d.ts +2 -0
- package/dist/providers.js +8 -8
- package/dist/registry-BZQFYRTL.cjs +46 -0
- package/dist/{registry-V7BDQ6QB.cjs.map → registry-BZQFYRTL.cjs.map} +1 -1
- package/dist/registry-DMWCJKRF.js +9 -0
- package/dist/{registry-75W33OGL.js.map → registry-DMWCJKRF.js.map} +1 -1
- package/dist/retry.cjs +4 -5
- package/dist/retry.d.cts +20 -5
- package/dist/retry.d.ts +20 -5
- package/dist/retry.js +3 -4
- package/dist/{run-BYSHf58D.d.cts → run-CTAdRU3U.d.cts} +120 -152
- package/dist/{run-BYSHf58D.d.ts → run-CTAdRU3U.d.ts} +120 -152
- package/dist/{run-until-HEQOUVU6.js → run-until-6D6TQ4JN.js} +27 -59
- package/dist/run-until-6D6TQ4JN.js.map +1 -0
- package/dist/{run-until-U2B5FJJI.cjs → run-until-DG2KXWB2.cjs} +27 -59
- package/dist/run-until-DG2KXWB2.cjs.map +1 -0
- package/dist/sandbox/bwrap.d.cts +11 -1
- package/dist/sandbox/bwrap.d.ts +11 -1
- package/dist/sandbox/index.cjs +26 -30
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.d.cts +8 -1
- package/dist/sandbox/index.d.ts +8 -1
- package/dist/sandbox/index.js +10 -14
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/linux-sandbox.d.cts +20 -4
- package/dist/sandbox/linux-sandbox.d.ts +20 -4
- package/dist/sandbox/types.d.cts +18 -2
- package/dist/sandbox/types.d.ts +18 -2
- package/dist/sanitize/index.cjs +2 -2
- package/dist/sanitize/index.js +1 -1
- package/dist/sanitize/types.d.cts +15 -2
- package/dist/sanitize/types.d.ts +15 -2
- package/dist/{sdk-agent-D8qJVkuV.d.ts → sdk-agent-Dxjb0IfM.d.cts} +169 -116
- package/dist/{sdk-agent-DEoKhA8a.d.cts → sdk-agent-ldzpyAaF.d.ts} +169 -116
- package/dist/server/auth/errors.d.cts +4 -3
- package/dist/server/auth/errors.d.ts +4 -3
- package/dist/server/auth/index.cjs +28 -28
- package/dist/server/auth/index.cjs.map +1 -1
- package/dist/server/auth/index.d.cts +28 -5
- package/dist/server/auth/index.d.ts +28 -5
- package/dist/server/auth/index.js +13 -13
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/auth/oauth-transaction-store.d.cts +2 -1
- package/dist/server/auth/oauth-transaction-store.d.ts +2 -1
- package/dist/server/auth/orchestrator.d.cts +4 -1
- package/dist/server/auth/orchestrator.d.ts +4 -1
- package/dist/server/auth/types.d.cts +18 -0
- package/dist/server/auth/types.d.ts +18 -0
- package/dist/server/errors-envelope.cjs +14 -15
- package/dist/server/errors-envelope.cjs.map +1 -1
- 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 -4
- package/dist/server/errors-envelope.js.map +1 -1
- package/dist/session-transcript-LGHSNVY5.cjs +62 -0
- package/dist/{session-transcript-6WNITKRE.cjs.map → session-transcript-LGHSNVY5.cjs.map} +1 -1
- package/dist/session-transcript-VTBTCGQX.js +5 -0
- package/dist/{session-transcript-XAEKW6P7.js.map → session-transcript-VTBTCGQX.js.map} +1 -1
- package/dist/skills.cjs +8 -9
- package/dist/skills.js +6 -7
- package/dist/stream-object-HBFMIZLD.js +7 -0
- package/dist/{stream-object-UF4QRQRU.js.map → stream-object-HBFMIZLD.js.map} +1 -1
- package/dist/stream-object-QSKHISDJ.cjs +20 -0
- package/dist/{stream-object-ZJTQNKY3.cjs.map → stream-object-QSKHISDJ.cjs.map} +1 -1
- package/dist/stream-object.d.ts +2 -4
- package/dist/subagents-loader-LSKM2UIK.js +7 -0
- package/dist/{subagents-loader-CRT5LLL3.js.map → subagents-loader-LSKM2UIK.js.map} +1 -1
- package/dist/subagents-loader-YWFE7KYE.cjs +16 -0
- package/dist/{subagents-loader-YEUFFPAL.cjs.map → subagents-loader-YWFE7KYE.cjs.map} +1 -1
- package/dist/subagents-loader.cjs +7 -8
- package/dist/subagents-loader.cjs.map +1 -1
- package/dist/subagents-loader.d.cts +5 -3
- package/dist/subagents-loader.d.ts +5 -3
- package/dist/subagents-loader.js +5 -6
- package/dist/subagents-loader.js.map +1 -1
- package/dist/subagents.cjs +2 -2
- package/dist/subagents.cjs.map +1 -1
- package/dist/subagents.js +1 -1
- package/dist/subagents.js.map +1 -1
- package/dist/subscription/define-subscription.d.cts +4 -1
- package/dist/subscription/define-subscription.d.ts +4 -1
- package/dist/subscription/index.cjs +4 -5
- package/dist/subscription/index.cjs.map +1 -1
- package/dist/subscription/index.d.cts +2 -0
- package/dist/subscription/index.d.ts +2 -0
- package/dist/subscription/index.js +3 -4
- package/dist/subscription/index.js.map +1 -1
- package/dist/subscription/internal/server-integration.d.cts +5 -0
- package/dist/subscription/internal/server-integration.d.ts +5 -0
- package/dist/subscription/internal/subscription-runtime.d.cts +13 -1
- package/dist/subscription/internal/subscription-runtime.d.ts +13 -1
- package/dist/task-errors.d.ts +58 -0
- package/dist/task-store.cjs +7 -8
- package/dist/task-store.d.cts +2 -0
- package/dist/task-store.d.ts +2 -0
- package/dist/task-store.js +4 -5
- package/dist/types/agent-prims.d.ts +21 -0
- package/dist/types/agent.d.ts +63 -15
- package/dist/types/batch.d.ts +3 -0
- package/dist/types/budget-tracker.d.ts +3 -0
- package/dist/types/budget.d.ts +12 -3
- package/dist/types/content-blocks.d.ts +3 -0
- package/dist/types/context.d.ts +3 -0
- package/dist/types/conversation.d.ts +5 -0
- package/dist/types/cron.d.ts +5 -0
- package/dist/types/env-policy.d.ts +3 -0
- package/dist/types/eval.d.ts +3 -0
- package/dist/types/fork.d.ts +3 -0
- package/dist/types/goal-events.d.ts +3 -0
- package/dist/types/mcp.d.ts +5 -0
- package/dist/types/memory-adapter.d.ts +3 -0
- package/dist/types/memory-provider.d.ts +44 -5
- package/dist/types/messages-base.d.ts +4 -0
- package/dist/types/messages.d.ts +5 -0
- package/dist/types/plugin.d.ts +32 -4
- package/dist/types/processors.d.ts +3 -0
- package/dist/types/provider-profile.d.ts +3 -0
- package/dist/types/providers.d.ts +3 -0
- package/dist/types/run-events.d.ts +36 -9
- package/dist/types/run.d.ts +29 -2
- package/dist/types/sdk-agent.d.ts +43 -0
- package/dist/types/session-message.d.ts +3 -0
- package/dist/types/session-record.d.ts +3 -0
- package/dist/types/session-store.d.ts +45 -0
- package/dist/types/task.d.ts +3 -11
- package/dist/types/theokit.d.ts +3 -0
- package/dist/types/trajectory.d.ts +3 -0
- package/dist/types/updates.d.ts +5 -0
- package/dist/types/usage.d.ts +4 -1
- package/dist/types/workflow.d.ts +13 -135
- package/dist/workflow-as-tool.d.ts +66 -0
- package/dist/workflow-errors.d.ts +164 -0
- package/dist/workflow.cjs +29 -30
- package/dist/workflow.d.cts +135 -74
- package/dist/workflow.d.ts +135 -74
- package/dist/workflow.js +8 -9
- package/docs/adr/README.md +2604 -0
- package/docs/error-codes.md +137 -103
- package/docs/harness-capability-map.md +30 -20
- package/docs/memory-decisions.md +1 -1
- package/package.json +3 -7
- package/bin/theokit-migrate-config.mjs +0 -278
- package/bin/theokit-migrate-memory.mjs +0 -116
- package/dist/agent-3JK7VXNN.js +0 -57
- package/dist/agent-PVINJTUR.cjs +0 -66
- package/dist/agent-session-store-6EL5NPA4.cjs +0 -24
- package/dist/agent-session-store-OPGRB4XM.js +0 -7
- package/dist/batch-BXYTW2DP.cjs.map +0 -1
- package/dist/batch-L4ZXS46M.js.map +0 -1
- package/dist/chunk-25BD2R5G.js.map +0 -1
- package/dist/chunk-2D34UTDC.js.map +0 -1
- package/dist/chunk-2GUYQR5P.js.map +0 -1
- package/dist/chunk-2QDYBS2A.js.map +0 -1
- package/dist/chunk-3FFAEAUJ.cjs.map +0 -1
- package/dist/chunk-3O42QOMJ.js.map +0 -1
- package/dist/chunk-3OR54XG4.js.map +0 -1
- package/dist/chunk-4FFBAUFS.js.map +0 -1
- package/dist/chunk-4O5TGQBW.cjs.map +0 -1
- package/dist/chunk-4OTIXDMU.cjs.map +0 -1
- package/dist/chunk-4PYZ5AX3.cjs.map +0 -1
- package/dist/chunk-4QZSA2HJ.js.map +0 -1
- package/dist/chunk-4ZHTIJNE.cjs.map +0 -1
- package/dist/chunk-52NKC5HT.cjs.map +0 -1
- package/dist/chunk-6HKGLTJI.cjs.map +0 -1
- package/dist/chunk-6JSIEDKL.cjs.map +0 -1
- package/dist/chunk-7AD3ZTZL.js.map +0 -1
- package/dist/chunk-7BG5UH3T.cjs.map +0 -1
- package/dist/chunk-7YGCPMGB.js.map +0 -1
- package/dist/chunk-A46SWMIF.js.map +0 -1
- package/dist/chunk-A4JVILQU.js.map +0 -1
- package/dist/chunk-ACDLHN3W.js.map +0 -1
- package/dist/chunk-AQO3NSRG.cjs +0 -41
- package/dist/chunk-AQO3NSRG.cjs.map +0 -1
- package/dist/chunk-AWO27VRZ.js.map +0 -1
- package/dist/chunk-B2J4ZMZL.cjs.map +0 -1
- package/dist/chunk-B4EOJWOY.cjs.map +0 -1
- package/dist/chunk-BU4KFWXF.js.map +0 -1
- package/dist/chunk-BZRFXJHA.js.map +0 -1
- package/dist/chunk-C3NT3PVE.js.map +0 -1
- package/dist/chunk-C72AZW7J.js.map +0 -1
- package/dist/chunk-CQBXOJ6U.cjs.map +0 -1
- package/dist/chunk-D4CUGAKZ.js.map +0 -1
- package/dist/chunk-DN2PACRI.js.map +0 -1
- package/dist/chunk-DXGZ2NUG.cjs.map +0 -1
- package/dist/chunk-EG4QM7ZJ.cjs +0 -39
- package/dist/chunk-EG4QM7ZJ.cjs.map +0 -1
- package/dist/chunk-GPKAF7SG.js.map +0 -1
- package/dist/chunk-HCZD23VS.cjs.map +0 -1
- package/dist/chunk-HS7AVXTF.js.map +0 -1
- package/dist/chunk-IAHZCGBE.cjs.map +0 -1
- package/dist/chunk-J24VJOH3.cjs.map +0 -1
- package/dist/chunk-JJ3OVRUM.cjs.map +0 -1
- package/dist/chunk-JPBKYL3B.cjs +0 -18
- package/dist/chunk-JPBKYL3B.cjs.map +0 -1
- package/dist/chunk-K5OJUYSZ.js.map +0 -1
- package/dist/chunk-KQ7TS7WW.cjs.map +0 -1
- package/dist/chunk-KQRW2GPZ.js.map +0 -1
- package/dist/chunk-KYAJINUI.cjs.map +0 -1
- package/dist/chunk-L3MTL4NA.js.map +0 -1
- package/dist/chunk-L4BDVXIM.js.map +0 -1
- package/dist/chunk-LXI4XZEC.js.map +0 -1
- package/dist/chunk-LYRDF5TQ.cjs.map +0 -1
- package/dist/chunk-N2U4AZGB.js.map +0 -1
- package/dist/chunk-O7DK5PBJ.cjs.map +0 -1
- package/dist/chunk-O7LZFG6O.cjs.map +0 -1
- package/dist/chunk-OFRFZRQ4.cjs.map +0 -1
- package/dist/chunk-OSEG74VJ.js.map +0 -1
- package/dist/chunk-RFMBZPOW.cjs.map +0 -1
- package/dist/chunk-RFXWMRFC.js.map +0 -1
- package/dist/chunk-RIAM53CP.js.map +0 -1
- package/dist/chunk-RMWTPV3M.cjs.map +0 -1
- package/dist/chunk-RNB4APBZ.js.map +0 -1
- package/dist/chunk-SAVIWMZB.js.map +0 -1
- package/dist/chunk-SZVR77EJ.cjs.map +0 -1
- package/dist/chunk-TAZVKYWJ.js.map +0 -1
- package/dist/chunk-U54XCYG3.js.map +0 -1
- package/dist/chunk-U6IFHFWK.js.map +0 -1
- package/dist/chunk-UALX2J2Q.cjs.map +0 -1
- package/dist/chunk-UBDMVMBZ.js.map +0 -1
- package/dist/chunk-UFLD2HEV.js +0 -35
- package/dist/chunk-UFLD2HEV.js.map +0 -1
- package/dist/chunk-UGT7GK7I.cjs.map +0 -1
- package/dist/chunk-UNYXQ4M5.js.map +0 -1
- package/dist/chunk-UTSRIDKZ.js.map +0 -1
- package/dist/chunk-UU36SHFY.cjs.map +0 -1
- package/dist/chunk-V2BOS4WF.cjs.map +0 -1
- package/dist/chunk-VJ26EKGJ.cjs.map +0 -1
- package/dist/chunk-VKJ7V7EB.cjs.map +0 -1
- package/dist/chunk-VLVVJLDH.cjs.map +0 -1
- package/dist/chunk-WLQNMXQE.js.map +0 -1
- package/dist/chunk-WNO3C3N2.cjs.map +0 -1
- package/dist/chunk-WTMU7J4U.js +0 -14
- package/dist/chunk-WTMU7J4U.js.map +0 -1
- package/dist/chunk-XEQ3TM66.js +0 -35
- package/dist/chunk-XEQ3TM66.js.map +0 -1
- package/dist/chunk-XJCXEKMD.cjs.map +0 -1
- package/dist/chunk-XL7Q7HB2.cjs.map +0 -1
- package/dist/chunk-XWTLIGO3.cjs.map +0 -1
- package/dist/chunk-YML4ME27.cjs.map +0 -1
- package/dist/chunk-ZCIRZE37.cjs.map +0 -1
- package/dist/chunk-ZSWPZ23K.cjs.map +0 -1
- package/dist/chunk-ZWRG4NWT.cjs.map +0 -1
- package/dist/chunk-ZZMZWBR6.js.map +0 -1
- package/dist/compact-session-QV57KR66.cjs +0 -59
- package/dist/compact-session-RIGOWC4Y.js +0 -22
- package/dist/context-AGQ3DIZU.cjs +0 -24
- package/dist/context-GQRFBCLP.js +0 -7
- package/dist/executor-6CYCA7MI.cjs.map +0 -1
- package/dist/executor-QSEC3MRH.js.map +0 -1
- package/dist/fork-agent-RSV4E3EA.js.map +0 -1
- package/dist/fork-agent-Y2IK2RYU.cjs.map +0 -1
- package/dist/fs-session-store-4PIHT5UX.cjs +0 -20
- package/dist/fs-session-store-NM6YSTE2.js +0 -11
- package/dist/generate-object-GUNAUVBX.js +0 -8
- package/dist/generate-object-R7HTMW7F.cjs +0 -21
- package/dist/index-manager-2SRX45WJ.cjs +0 -27
- package/dist/index-manager-SP4ISSDX.js +0 -18
- package/dist/inject-session-WQKMC3GR.cjs +0 -29
- package/dist/internal/persistence/credential-pool-store.d.cts +0 -32
- package/dist/internal/persistence/credential-pool-store.d.ts +0 -32
- package/dist/internal/runtime/memory/memory-path-selector.d.ts +0 -73
- package/dist/judge-call-LAHMBJ57.cjs +0 -23
- package/dist/judge-call-LVXABPS3.js +0 -6
- package/dist/oauth-transaction-store-BT4GLTLK.cjs +0 -36
- package/dist/oauth-transaction-store-W52KVHQ4.js +0 -3
- package/dist/registry-75W33OGL.js +0 -10
- package/dist/registry-V7BDQ6QB.cjs +0 -47
- package/dist/run-until-HEQOUVU6.js.map +0 -1
- package/dist/run-until-U2B5FJJI.cjs.map +0 -1
- package/dist/server/adapter/express.d.cts +0 -9
- package/dist/server/adapter/express.d.ts +0 -9
- package/dist/server/adapter/fastify.d.cts +0 -9
- package/dist/server/adapter/fastify.d.ts +0 -9
- package/dist/server/adapter/hono.d.cts +0 -9
- package/dist/server/adapter/hono.d.ts +0 -9
- package/dist/server/adapter/shared-handler.d.cts +0 -9
- package/dist/server/adapter/shared-handler.d.ts +0 -9
- package/dist/server/adapter/types.d.cts +0 -33
- package/dist/server/adapter/types.d.ts +0 -33
- package/dist/session-transcript-6WNITKRE.cjs +0 -63
- package/dist/session-transcript-XAEKW6P7.js +0 -6
- package/dist/stream-object-UF4QRQRU.js +0 -8
- package/dist/stream-object-ZJTQNKY3.cjs +0 -21
- package/dist/subagents-loader-CRT5LLL3.js +0 -8
- package/dist/subagents-loader-YEUFFPAL.cjs +0 -17
- /package/dist/{batch.d.ts → internal/agent/batch.d.ts} +0 -0
- /package/dist/{agent-helpers.d.ts → internal/agent/helpers.d.ts} +0 -0
- /package/dist/internal/agent-loop/{loop-types.d.ts → types.d.ts} +0 -0
- /package/dist/internal/auth/{auth-types.d.ts → types.d.ts} +0 -0
- /package/dist/internal/cloud-agent/{cloud-payload-types.d.ts → types.d.ts} +0 -0
- /package/dist/internal/{runtime/concurrency → concurrency}/abort-utils.d.ts +0 -0
- /package/dist/internal/{runtime/concurrency → concurrency}/async-local-storage.d.ts +0 -0
- /package/dist/internal/{runtime/concurrency → concurrency}/async-semaphore.d.ts +0 -0
- /package/dist/internal/{runtime/concurrency → concurrency}/delegation-depth.d.ts +0 -0
- /package/dist/internal/{runtime/concurrency → concurrency}/map-with-concurrency.d.ts +0 -0
- /package/dist/internal/{runtime/retry → error-mappers}/default-retriable.d.ts +0 -0
- /package/dist/internal/{runtime/fixtures/fixture-types.d.ts → memory/storage/list-markdown.d.cts} +0 -0
- /package/dist/internal/{runtime/plugins/plugins-manager.d.ts → memory/storage/list-markdown.d.ts} +0 -0
- /package/dist/internal/{resilience → retry}/circuit-breaker.d.ts +0 -0
- /package/dist/internal/{runtime/retry → retry}/with-retry.d.ts +0 -0
- /package/dist/internal/{security/secret-redactor.d.cts → runtime/fixtures/types.d.ts} +0 -0
- /package/dist/internal/runtime/{memory → memory-glue}/memory-store.d.ts +0 -0
- /package/dist/internal/runtime/{memory → memory-glue}/select-facts.d.ts +0 -0
- /package/dist/internal/runtime/{plugins → plugin-loader}/plugin-frontmatter.d.ts +0 -0
- /package/dist/internal/{security/secret-redactor.d.ts → runtime/plugin-loader/plugins-manager.d.ts} +0 -0
- /package/dist/internal/runtime/{reasoning → system-prompt}/native-reasoning.d.ts +0 -0
- /package/dist/internal/{runtime/context/path-containment.d.ts → security/path-containment.d.cts} +0 -0
- /package/dist/internal/session/{session-types.d.ts → types.d.ts} +0 -0
- /package/dist/internal/{zod/to-json-schema.d.ts → zod-to-json-schema.d.ts} +0 -0
- /package/dist/subscription/internal/{adapter-types.d.cts → types.d.cts} +0 -0
- /package/dist/subscription/internal/{adapter-types.d.ts → types.d.ts} +0 -0
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `sandbox/` (1 of 2 importers). Derived from the import graph, not
|
|
3
|
+
* declared — `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* Child-process environment policy contract (#54).
|
|
3
6
|
*
|
|
4
7
|
* The DIP-correct home for the `EnvPolicy` contract type: the domain `types/`
|
package/dist/types/eval.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/eval/` (5 of 8 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* Public type contract for `Eval.create / .run` and the `Scorers` namespace
|
|
3
6
|
* (Adoption Roadmap #2; ADRs D202-D213).
|
|
4
7
|
*
|
package/dist/types/fork.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/runtime/lifecycle/` (1 of 1 importers). Derived from the import graph, not
|
|
3
|
+
* declared — `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* Fork primitive public type contracts (T1.2, ADRs D110-D114).
|
|
3
6
|
*
|
|
4
7
|
* Extracted into a leaf type module (arch-review ADR 0001) so the public
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/judge/` (3 of 8 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* M80 — the terminal verdicts a judge can return.
|
|
3
6
|
*
|
|
4
7
|
* `"blocked"` was added here in this milestone. `GoalResult.status` already carried it, but the
|
package/dist/types/mcp.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owner: `internal/mcp/` (2 of 5 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
1
6
|
import type { EnvPolicy } from "./env-policy.js";
|
|
2
7
|
/**
|
|
3
8
|
* MCP server configuration accepted by `Agent.create()` and `agent.send()`.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/local-agent/` (2 of 4 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* Public `MemoryAdapter` contract (T1.1, ADRs D141 / D147).
|
|
3
6
|
*
|
|
4
7
|
* The plugin extension point `{ kind: "memory" }` (ADR D98) declares a
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/memory/storage/` (1 of 2 importers). Derived from the import graph, not
|
|
3
|
+
* declared — `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* `MemoryProvider` — kernel-facing port for the memory subsystem
|
|
3
6
|
* (SDK 2.0 Phase 1 / T1.1 — Hexagonal Architecture / Ports & Adapters,
|
|
4
7
|
* SOLID Dependency Inversion).
|
|
@@ -10,7 +13,7 @@
|
|
|
10
13
|
*
|
|
11
14
|
* DIP-correct home (SE46): the port + companion contract types live in the
|
|
12
15
|
* domain `types/` layer; the application-layer module
|
|
13
|
-
* (`internal/runtime/memory/memory-provider.ts`) re-exports them for
|
|
16
|
+
* (`internal/runtime/memory-glue/memory-provider.ts`) re-exports them for
|
|
14
17
|
* back-compat while the concrete providers live under `internal/`.
|
|
15
18
|
*
|
|
16
19
|
* Layered model (mirrors Budget):
|
|
@@ -21,9 +24,26 @@
|
|
|
21
24
|
*
|
|
22
25
|
* @public — surface-level interface; impls are internal-but-replaceable.
|
|
23
26
|
*/
|
|
24
|
-
import type { CustomTool } from "./agent-prims.js";
|
|
27
|
+
import type { CustomTool, ModelSelection } from "./agent-prims.js";
|
|
25
28
|
import type { MemoryAdapter, MemoryFact } from "./memory-adapter.js";
|
|
26
|
-
|
|
29
|
+
/**
|
|
30
|
+
* The agent identity a `MemoryProvider` is given — the whole of it.
|
|
31
|
+
*
|
|
32
|
+
* `buildTools` used to declare `agent: SDKAgent`, a 33-member interface, and the agent loop satisfied
|
|
33
|
+
* it with `{ agentId, model } as SDKAgent`. The cast is what made it compile, and it suppressed
|
|
34
|
+
* exactly the check that mattered: an implementation reaching for any of the other 31 members —
|
|
35
|
+
* `send()`, `fork()`, `dispose()` — gets `undefined is not a function` at runtime with no
|
|
36
|
+
* compile-time signal.
|
|
37
|
+
*
|
|
38
|
+
* Two fields is what the port actually offers, so two fields is what it declares. `SDKAgent`
|
|
39
|
+
* structurally satisfies this, so a caller holding a real agent still passes it, and TypeScript's
|
|
40
|
+
* bivariant method parameters mean an existing implementation typed `agent: SDKAgent` still compiles.
|
|
41
|
+
* What changes is that the fabricated ref no longer needs a cast to exist.
|
|
42
|
+
*/
|
|
43
|
+
export interface MemoryProviderAgentRef {
|
|
44
|
+
readonly agentId: string;
|
|
45
|
+
readonly model: ModelSelection | undefined;
|
|
46
|
+
}
|
|
27
47
|
/** Result of `MemoryProvider.runActivePass(...)` — what the kernel injects into the LLM call. */
|
|
28
48
|
export interface ActiveMemoryPassResult {
|
|
29
49
|
/** Compressed memory facts to seed the LLM's context window for this turn. */
|
|
@@ -73,7 +93,7 @@ export interface RecordSessionSummaryArgs {
|
|
|
73
93
|
* rather than optional. An implementation that recomputed it from `cwd` would write the summary
|
|
74
94
|
* into a different directory than the one the rest of the subsystem uses (#463).
|
|
75
95
|
*/
|
|
76
|
-
readonly memoryRoot:
|
|
96
|
+
readonly memoryRoot: MemoryRoot;
|
|
77
97
|
/** Run id used as the filename key. */
|
|
78
98
|
readonly runId: string;
|
|
79
99
|
/** Agent identity for scope (foldering). */
|
|
@@ -121,7 +141,7 @@ export interface MemoryProvider {
|
|
|
121
141
|
/** Construct or fetch the per-agent handle. Lazy + idempotent. */
|
|
122
142
|
init(opts: MemoryProviderInitOptions): Promise<MemoryProviderHandle>;
|
|
123
143
|
/** Build the LLM-facing tool catalog (memory_search, memory_get, …). */
|
|
124
|
-
buildTools(handle: MemoryProviderHandle, agent:
|
|
144
|
+
buildTools(handle: MemoryProviderHandle, agent: MemoryProviderAgentRef): ReadonlyArray<CustomTool>;
|
|
125
145
|
/** Run the active-memory pre-LLM pass — recall + compress + format. */
|
|
126
146
|
runActivePass(handle: MemoryProviderHandle, args: ActiveMemoryPassArgs): Promise<ActiveMemoryPassResult>;
|
|
127
147
|
/**
|
|
@@ -165,3 +185,22 @@ export interface MemoryProvider {
|
|
|
165
185
|
/** Release the handle (close index, flush caches). Idempotent + non-throwing. */
|
|
166
186
|
dispose(handle: MemoryProviderHandle): Promise<void> | void;
|
|
167
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* A directory that has been RESOLVED as a memory root, distinguished from a bare `cwd`.
|
|
190
|
+
*
|
|
191
|
+
* Structural rather than a `unique symbol` brand: a `unique symbol` is identity-based and the d.ts
|
|
192
|
+
* bundler inlines the declaration into each package that re-exports it, so `@theokit/sdk-memory`
|
|
193
|
+
* ended up with a `MemoryRoot` its own compiler considered incompatible with the SDK's, on values
|
|
194
|
+
* that were the same string. A structural tag refuses a bare `string` exactly as well and survives
|
|
195
|
+
* the package boundary, which is where this type has to work.
|
|
196
|
+
*
|
|
197
|
+
* G7 / DIP — defined HERE, in the domain types layer, rather than in
|
|
198
|
+
* `internal/memory/storage/memory-root.ts`. It was defined in the adapter and reached for from this
|
|
199
|
+
* file, which made the port depend on the adapter for a field of its own argument type; the runtime
|
|
200
|
+
* helpers (`resolveMemoryRoot`, `asMemoryRoot`) stay in the adapter and import it from here.
|
|
201
|
+
*
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
export type MemoryRoot = string & {
|
|
205
|
+
readonly __memoryRoot: "resolved";
|
|
206
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `types/` (2 of 2 importers: conversation.ts, updates.ts). The only module in this folder
|
|
3
|
+
* whose owner IS the layer — it exists to break a type-only cycle BETWEEN two of its siblings, so
|
|
4
|
+
* pointing it at a subsystem would name something that does not use it.
|
|
5
|
+
*
|
|
2
6
|
* Type-leaf — base message types shared between `conversation.ts` and
|
|
3
7
|
* `updates.ts`. Extracted to break LOW type-only cycle #6 (audit
|
|
4
8
|
* `architecture-output/final_report.md`) per plan arch-review-fixes-2026-06-06
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owner: `internal/agent-loop/` (4 of 16 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
1
6
|
import type { ModelSelection } from "./agent-prims.js";
|
|
2
7
|
import type { TextBlock } from "./content-blocks.js";
|
|
3
8
|
export type { ImageBlock, TextBlock, ToolResultContentBlock } from "./content-blocks.js";
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/plugins/` (3 of 3 importers). Derived from the import graph, not
|
|
3
|
+
* declared — `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* Plugin contract types (T1.1, ADRs D97-D101).
|
|
3
6
|
*
|
|
4
7
|
* Discriminated union by `kind`:
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
*
|
|
18
21
|
* @public
|
|
19
22
|
*/
|
|
20
|
-
import type { CustomTool } from "./agent-prims.js";
|
|
23
|
+
import type { CustomTool, PermissionMode } from "./agent-prims.js";
|
|
21
24
|
import type { MemoryAdapter } from "./memory-adapter.js";
|
|
22
25
|
import type { ProviderProfile } from "./provider-profile.js";
|
|
23
26
|
/**
|
|
@@ -68,7 +71,7 @@ export interface PreToolCallContext {
|
|
|
68
71
|
* gate per-run rather than at construction time. Absent ⇒ the plugin's own
|
|
69
72
|
* default applies. Ignored by non-permission plugins.
|
|
70
73
|
*/
|
|
71
|
-
permissionMode?:
|
|
74
|
+
permissionMode?: PermissionMode;
|
|
72
75
|
}
|
|
73
76
|
/**
|
|
74
77
|
* The veto a `pre_tool_call` handler returns to stop a tool call. Returning `undefined` allows it —
|
|
@@ -214,6 +217,12 @@ export type CommandHandler = (args: Record<string, unknown>) => Promise<string>
|
|
|
214
217
|
export interface CommandOptions {
|
|
215
218
|
description?: string;
|
|
216
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* Detaches a hook handler attached with {@link PluginContext.on}. Idempotent.
|
|
222
|
+
*
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export type PluginHookDisposer = () => void;
|
|
217
226
|
/**
|
|
218
227
|
* The registration surface passed to a `"general"` plugin's `register(ctx)`, and the plugin's only
|
|
219
228
|
* route into the agent. Outside production it is a sealed Proxy that throws when a plugin assigns a
|
|
@@ -228,14 +237,33 @@ export interface CommandOptions {
|
|
|
228
237
|
* has no effect on a programmatic run. And `on` drops a handler that is not a function, with a
|
|
229
238
|
* warning on stderr rather than an error at registration: the gentler failure, and the easier one to
|
|
230
239
|
* miss.
|
|
240
|
+
*
|
|
241
|
+
* `on` returns a {@link PluginHookDisposer}: calling it detaches that one handler, and calling it
|
|
242
|
+
* again is a no-op. A plugin that registers a hook per run and never detaches is the leak this
|
|
243
|
+
* exists to make fixable.
|
|
244
|
+
*
|
|
245
|
+
* @public
|
|
231
246
|
*/
|
|
232
247
|
export interface PluginContext {
|
|
233
248
|
/** Register a custom tool. Equivalent to passing in `AgentOptions.tools`. */
|
|
234
249
|
registerTool(tool: CustomTool): void;
|
|
235
250
|
/** Register a slash-command-style handler. Consumed by CLI/bot wrappers; NOT used by the agent loop. */
|
|
236
251
|
registerCommand(name: string, handler: CommandHandler, opts?: CommandOptions): void;
|
|
237
|
-
/**
|
|
238
|
-
|
|
252
|
+
/**
|
|
253
|
+
* Attach a hook handler. `pre_tool_call` supports veto via `PreToolCallDecision`.
|
|
254
|
+
*
|
|
255
|
+
* Returns a disposer that detaches THIS handler. Calling it twice is a no-op, and a handler the
|
|
256
|
+
* SDK refused (a non-function, which is warned and ignored) returns a disposer that does nothing —
|
|
257
|
+
* so the caller never has to branch on whether the registration took.
|
|
258
|
+
*
|
|
259
|
+
* It used to return `void`, which made this a one-way door: a plugin registered through
|
|
260
|
+
* `initialize()` had no removal path and its handlers ran for the life of the process. The one
|
|
261
|
+
* documented dynamic case — the ACP permission plugin, re-installed on every prompt — worked only
|
|
262
|
+
* because `#byName` keys the replacement, so re-registering the WHOLE plugin was the only way to
|
|
263
|
+
* detach one hook. Two observers in this package already return their own disposer
|
|
264
|
+
* (`FixtureRunBase.onDidChangeStatus`) or offer an explicit removal (`MessageBus.unregister`).
|
|
265
|
+
*/
|
|
266
|
+
on(hook: HookName, handler: HookHandler): PluginHookDisposer;
|
|
239
267
|
/** Inject a user/system message into the next agent turn. v1 supports only `on_session_start` context. */
|
|
240
268
|
injectMessage(content: string, role?: "user" | "system"): void;
|
|
241
269
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/runtime/processors/` (3 of 4 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* SE24 — guardrail processor pipeline. A `Processor` inspects/transforms/blocks
|
|
3
6
|
* the user message (input) or the model's final text (output). Processors run in
|
|
4
7
|
* order; each may rewrite its payload, `abort(reason)` to stop the run (surfaced
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/providers/` (1 of 1 importers). Derived from the import graph, not
|
|
3
|
+
* declared — `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* ProviderProfile + ApiMode + AuthType contract types (T3.1, ADR D105).
|
|
3
6
|
*
|
|
4
7
|
* Profile is **data-only** — no methods. Adding a provider is declaring an
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/agent-loop/` (3 of 11 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* SE2 — typed runtime EVENT stream, ADDITIVE to the `SDKMessage` content stream.
|
|
3
6
|
*
|
|
4
7
|
* `Run.stream()` yields `SDKMessage`s (the conversation content). `RunEvent`s are
|
|
@@ -16,7 +19,7 @@
|
|
|
16
19
|
*
|
|
17
20
|
* @public
|
|
18
21
|
*/
|
|
19
|
-
export type RunEvent = RunToolProgressEvent | RunRateLimitEvent | RunPermissionDeniedEvent | RunTaskStartedEvent | RunTaskUpdatedEvent | RunTaskCompletedEvent | RunCompactBoundaryEvent | RunCompactionFallbackEvent | RunTripwireEvent | RunCompletionCheckEvent | RunMcpServerFailedEvent | RunMcpServerReadyEvent;
|
|
22
|
+
export type RunEvent = RunToolProgressEvent | RunRateLimitEvent | RunPermissionDeniedEvent | RunTaskStartedEvent | RunTaskUpdatedEvent | RunTaskCompletedEvent | RunCompactBoundaryEvent | RunCompactionFallbackEvent | RunTripwireEvent | RunCompletionCheckEvent | RunMcpServerFailedEvent | RunMcpServerReadyEvent | RunMemoryDegradedEvent;
|
|
20
23
|
/**
|
|
21
24
|
* theokit#188 — an MCP server was configured but its tools could not be listed, so NONE of its
|
|
22
25
|
* tools exist for this run.
|
|
@@ -157,14 +160,38 @@ export interface RunCompactionFallbackEvent {
|
|
|
157
160
|
readonly window: number;
|
|
158
161
|
}
|
|
159
162
|
/**
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
+
* A memory stage failed and the run continued without it.
|
|
164
|
+
*
|
|
165
|
+
* The same shape of gap {@link RunMcpServerFailedEvent} closed for MCP, in the module next door.
|
|
166
|
+
* `initLoopContext` had three bare `catch { <field> = <empty> }` blocks: an init failure meant no
|
|
167
|
+
* memory tool was registered, a `buildTools` failure meant no provider tools, and a `runActivePass`
|
|
168
|
+
* failure meant no recalled context in the system prompt. The agent then answered without the memory
|
|
169
|
+
* it was configured with, and nothing recorded it — not stderr, not this sink, not the span in scope.
|
|
170
|
+
*
|
|
171
|
+
* Degrading to a working agent is the right BEHAVIOUR. This event exists because the degradation was
|
|
172
|
+
* unobservable, so a host UI showed a healthy run.
|
|
173
|
+
*
|
|
174
|
+
* Emitted once per failing stage per run.
|
|
175
|
+
*
|
|
176
|
+
* @public
|
|
163
177
|
*/
|
|
164
|
-
export
|
|
178
|
+
export interface RunMemoryDegradedEvent {
|
|
179
|
+
readonly type: "memory_degraded";
|
|
180
|
+
/** Which stage failed: `init`, `buildTools`, or `activePass`. */
|
|
181
|
+
readonly stage: string;
|
|
182
|
+
/** Why it failed, as the provider reported it. */
|
|
183
|
+
readonly message: string;
|
|
184
|
+
}
|
|
165
185
|
/**
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
186
|
+
* Receives every {@link RunEvent} a run emits, in emission order.
|
|
187
|
+
*
|
|
188
|
+
* Wired through `onRunEvent` on the run options. The sink is observability, never control flow: it
|
|
189
|
+
* cannot cancel, alter, or delay the run, and {@link emitRunEvent} swallows anything it throws — a
|
|
190
|
+
* broken sink degrades what you can see, never what the agent does.
|
|
191
|
+
*
|
|
192
|
+
* Synchronous by signature, so a slow sink slows the run. Hand work off rather than awaiting inside
|
|
193
|
+
* it; returning a promise here would be ignored, not awaited.
|
|
194
|
+
*
|
|
195
|
+
* @public
|
|
169
196
|
*/
|
|
170
|
-
export
|
|
197
|
+
export type RunEventSink = (event: RunEvent) => void;
|
package/dist/types/run.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Owner: `internal/local-agent/` (8 of 34 importers). Derived from the import graph, not
|
|
3
|
+
* declared — `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
import type { CustomTool, ModelSelection, PermissionMode } from "./agent-prims.js";
|
|
2
7
|
import type { ConversationStep, ConversationTurn } from "./conversation.js";
|
|
3
8
|
import type { McpServerConfig } from "./mcp.js";
|
|
4
9
|
import type { SDKMessage } from "./messages.js";
|
|
@@ -308,6 +313,28 @@ export interface SDKUserMessage {
|
|
|
308
313
|
/**
|
|
309
314
|
* Per-send overrides and callbacks.
|
|
310
315
|
*
|
|
316
|
+
* ## Which options do I need?
|
|
317
|
+
*
|
|
318
|
+
* Twenty-one optional fields with genuinely different audiences, so most callers read all of them to
|
|
319
|
+
* find their two. This table is the fix that was chosen; the alternative — nesting the groups under
|
|
320
|
+
* `observe?` and `toolPolicy?` and carrying the flat keys as deprecated aliases for one major — would
|
|
321
|
+
* have added surface to remove surface, and the harm here is the READING cost, not a representable
|
|
322
|
+
* illegal state. There is no measured defect behind this grouping and no consumer census; the fields
|
|
323
|
+
* and the audiences are what was measured.
|
|
324
|
+
*
|
|
325
|
+
* | If you are… | you want |
|
|
326
|
+
* |---|---|
|
|
327
|
+
* | rendering a live UI | `onDelta`, `onStep`, `onRunEvent` |
|
|
328
|
+
* | applying a policy | `permissionMode`, `activeTools`, `toolChoice`, `toolResultGuard`, `perToolTimeoutMs` |
|
|
329
|
+
* | running an eval or a harness | `maxIterations`, `completionCheck`, `doomLoop`, `signal` |
|
|
330
|
+
* | orchestrating agents | `origin`, `task`, `context` |
|
|
331
|
+
* | overriding this one send | `model`, `systemPrompt`, `tools`, `mcpServers`, `contextPaths`, `local` |
|
|
332
|
+
*
|
|
333
|
+
* Every field appears in exactly one row, and
|
|
334
|
+
* `tests/lint/send-options-audience-table.test.ts` fails when one is added without a row — a table
|
|
335
|
+
* that silently stops covering the type is worse than none, because a reader trusts it and stops
|
|
336
|
+
* looking.
|
|
337
|
+
*
|
|
311
338
|
* @public
|
|
312
339
|
*/
|
|
313
340
|
export interface SendOptions {
|
|
@@ -374,7 +401,7 @@ export interface SendOptions {
|
|
|
374
401
|
* ask rules), `bypass` / `bypassPermissions` (allow all except an explicit deny).
|
|
375
402
|
* Absent ⇒ the plugin's own construction-time mode applies. Local runtime.
|
|
376
403
|
*/
|
|
377
|
-
permissionMode?:
|
|
404
|
+
permissionMode?: PermissionMode;
|
|
378
405
|
onStep?: (args: {
|
|
379
406
|
step: ConversationStep;
|
|
380
407
|
}) => void | Promise<void>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owner: `internal/local-agent/` (1 of 2 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
1
6
|
import type { ModelSelection } from "./agent-prims.js";
|
|
2
7
|
import type { SDKContextManager } from "./context.js";
|
|
3
8
|
import type { SDKProvidersManager } from "./providers.js";
|
|
@@ -80,6 +85,16 @@ export interface SDKArtifact {
|
|
|
80
85
|
sizeBytes: number;
|
|
81
86
|
updatedAt: string;
|
|
82
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* An operation a consumer may ask an {@link SDKAgent} about via `supports()`.
|
|
90
|
+
*
|
|
91
|
+
* Deliberately the members whose availability DIFFERS between runtimes, plus the core ones a caller
|
|
92
|
+
* may want to assert positively. A union rather than `string` so a typo is a compile error instead
|
|
93
|
+
* of a silent `false`.
|
|
94
|
+
*
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export type AgentOperation = "send" | "generate" | "listArtifacts" | "downloadArtifact" | "runUntil" | "fork" | "runToCompletion" | "streamToCompletion" | "usePersonality" | "invalidateCache";
|
|
83
98
|
/**
|
|
84
99
|
* Handle returned by `Agent.create()` and `Agent.resume()`.
|
|
85
100
|
*
|
|
@@ -133,6 +148,34 @@ export interface SDKAgent {
|
|
|
133
148
|
* idempotent across both surfaces.
|
|
134
149
|
*/
|
|
135
150
|
[Symbol.asyncDispose](): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* Which operations this agent's runtime actually performs.
|
|
153
|
+
*
|
|
154
|
+
* `SDKAgent` is one handle over two runtimes that do not offer the same operations, and the type
|
|
155
|
+
* does not model the difference: `downloadArtifact` is a REQUIRED member that rejects for every
|
|
156
|
+
* input on a local agent, and five optional members are present-but-throwing on a cloud one, so
|
|
157
|
+
* `typeof agent.fork === "function"` is true and calling it throws. Neither requiredness nor
|
|
158
|
+
* optionality expresses "exists here, not there".
|
|
159
|
+
*
|
|
160
|
+
* Ask before calling. Mirrors `Run.supports(op)` / `Run.unsupportedReason(op)`, which solved the
|
|
161
|
+
* same problem one layer down over the `RunOperation` union.
|
|
162
|
+
*
|
|
163
|
+
* This is a MITIGATION. The structural fix is to split this interface into a common core plus
|
|
164
|
+
* `LocalCapableAgent` / `CloudCapableAgent`, so the compiler refuses the call instead of the
|
|
165
|
+
* runtime and a consumer narrows once instead of asking per call. That is breaking on a published
|
|
166
|
+
* surface and is deliberately not done here.
|
|
167
|
+
*
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
supports(operation: AgentOperation): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Human-readable reason `supports(operation)` returned `false`, or `undefined` when it returned
|
|
173
|
+
* `true`. The message names the runtime, so an operator reading a log knows which half of the
|
|
174
|
+
* union they are holding.
|
|
175
|
+
*
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
unsupportedReason(operation: AgentOperation): string | undefined;
|
|
136
179
|
/** Cloud-only. Local returns an empty array. */
|
|
137
180
|
listArtifacts(): Promise<SDKArtifact[]>;
|
|
138
181
|
/** Cloud-only. Local throws `UnsupportedRunOperationError`. */
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `src/` (1 of 2 importers). Derived from the import graph, not
|
|
3
|
+
* declared — `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* The shape of a persisted session turn, as a HOST reads it.
|
|
3
6
|
*
|
|
4
7
|
* Lives in `types/` because it is public contract — `Agent.transcript()` returns it (theokit#146).
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `src/` (1 of 2 importers). Derived from the import graph, not
|
|
3
|
+
* declared — `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* `SessionRecord` — the native on-disk transcript record shape (SE40).
|
|
3
6
|
*
|
|
4
7
|
* The theokit session format IS the Claude Code record shape: a
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/session/` (4 of 8 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* SE41 — the pluggable `SessionStore` seam over the NATIVE session transcript.
|
|
3
6
|
*
|
|
4
7
|
* A minimal, two-method port so an external store (Postgres / Redis / KV /
|
|
@@ -14,6 +17,19 @@
|
|
|
14
17
|
* `local.sessionStore` yields byte-identical current behavior (back-compat, zero
|
|
15
18
|
* consumer change). Injected via `local.sessionStore` for external stores.
|
|
16
19
|
*
|
|
20
|
+
* THIS SEAM DOES NOT HIDE THE STORAGE, AND IS NOT MEANT TO. A Repository
|
|
21
|
+
* abstracts a persistence model away; this one is defined in terms of the
|
|
22
|
+
* native one — the port speaks {@link SessionRecord}, "the exact SessionRecord
|
|
23
|
+
* the SDK writes", and the on-disk layout's path helpers (`encodeProjectDir`,
|
|
24
|
+
* `transcriptPath`, `transcriptRoot`) are published on purpose at
|
|
25
|
+
* `@theokit/sdk/persistence` so a consumer can locate a transcript file.
|
|
26
|
+
*
|
|
27
|
+
* That is the whole design and the reason the seam is two methods rather than
|
|
28
|
+
* ten: the format is the contract, and a store implements read/append over it.
|
|
29
|
+
* A consumer supplying `local.sessionStore` is NOT bound by those paths — they
|
|
30
|
+
* describe where the DEFAULT `FsSessionStore` puts files, not where an external
|
|
31
|
+
* store must.
|
|
32
|
+
*
|
|
17
33
|
* Consistency contract: `appendRecords` is append-only and ordering-preserving.
|
|
18
34
|
* The FS default serializes appends per agent with a cross-process file lock;
|
|
19
35
|
* external implementations own (and MUST document) their own concurrency
|
|
@@ -56,4 +72,33 @@ export interface SessionStore {
|
|
|
56
72
|
* which MUST throw on failure (a resume cannot proceed on a silent partial history).
|
|
57
73
|
*/
|
|
58
74
|
appendRecords(agentId: string, records: readonly SessionRecord[]): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Claim the single-writer lease for `agentId`, if this store has one. OPTIONAL.
|
|
77
|
+
*
|
|
78
|
+
* The SDK calls it when an agent starts and skips it when absent, so a two-method store keeps
|
|
79
|
+
* working unchanged — declaring it here does not require it, which is the whole reason it is
|
|
80
|
+
* optional. What declaring it DOES is make the capability discoverable: the SDK probed for this
|
|
81
|
+
* method through an `as unknown` cast against an interface that never mentioned it, so a
|
|
82
|
+
* third-party store author — the serverless / multi-pod case this port exists to serve — read a
|
|
83
|
+
* two-method interface, implemented two methods, and never learned the hook was there.
|
|
84
|
+
*
|
|
85
|
+
* CONTRACT, and the half that matters: a rejection whose `name` is `"SessionBusyError"` PROPAGATES
|
|
86
|
+
* to the caller, because another process holding the session is a decision the caller has to make
|
|
87
|
+
* (`exec` forks to a new id). Any other rejection is treated as "no lease available here" —
|
|
88
|
+
* logged, and the turn proceeds without single-writer protection, since the write is best-effort
|
|
89
|
+
* by contract anyway.
|
|
90
|
+
*/
|
|
91
|
+
acquire?(agentId: string): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Release the lease `acquire` claimed, if this store has one. OPTIONAL.
|
|
94
|
+
*
|
|
95
|
+
* Called on agent disposal. A rejection is not handled specially.
|
|
96
|
+
*/
|
|
97
|
+
release?(agentId: string): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Release store-level resources — a connection pool, a file handle. OPTIONAL.
|
|
100
|
+
*
|
|
101
|
+
* Called once, on agent disposal, after {@link SessionStore.release}.
|
|
102
|
+
*/
|
|
103
|
+
dispose?(): Promise<void>;
|
|
59
104
|
}
|
package/dist/types/task.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/task/` (4 of 5 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* Public type contract for the Task observability registry (ADRs D361-D374).
|
|
3
6
|
*
|
|
4
7
|
* Tasks are an opt-in observability layer over async work in the SDK
|
|
@@ -141,14 +144,3 @@ export interface TaskCancelResult {
|
|
|
141
144
|
readonly cancelled: boolean;
|
|
142
145
|
readonly alreadyTerminal: boolean;
|
|
143
146
|
}
|
|
144
|
-
/**
|
|
145
|
-
* Validates a task ID against the public grammar + reserved prefixes.
|
|
146
|
-
* Throws `InvalidTaskIdError` from `../errors.js` on rejection.
|
|
147
|
-
*
|
|
148
|
-
* Adapter callers (workflow/batch/cron) MUST set `allowReserved: true`
|
|
149
|
-
* to register their own IDs; user-facing surfaces (`Task.submit`,
|
|
150
|
-
* `agent.send({ task: { id } })`) leave it false.
|
|
151
|
-
*/
|
|
152
|
-
export declare function isValidTaskId(id: string, allowReserved: boolean): boolean;
|
|
153
|
-
/** Re-exported for adapter implementations + tests. */
|
|
154
|
-
export declare const TASK_RESERVED_PREFIXES: readonly string[];
|
package/dist/types/theokit.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `src/` (1 of 1 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* Public types for ShareGPT trajectory export (ADR D139).
|
|
3
6
|
*
|
|
4
7
|
* Output format for fine-tuning datasets — consumed by HuggingFace, Axolotl,
|
package/dist/types/updates.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owner: `internal/agent-loop/` (1 of 1 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
1
6
|
import type { UserMessage } from "./messages-base.js";
|
|
2
7
|
/**
|
|
3
8
|
* Single tool call event. The internal `args` and `result` shapes are NOT stable.
|
package/dist/types/usage.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Owner: `internal/budget/` (3 of 8 importers). Derived from the import graph, not declared —
|
|
3
|
+
* `tests/lint/types-name-their-owner.test.ts` re-derives it.
|
|
4
|
+
*
|
|
2
5
|
* Public type contract for token usage + cost tracking (ADRs D376-D379).
|
|
3
6
|
*
|
|
4
7
|
* Surfaces via `RunResult.usage` + `RunResult.cost` after every Run.
|
|
@@ -41,7 +44,7 @@ export type CostSource = "openrouter_api" | "litellm_snapshot" | "user_override"
|
|
|
41
44
|
/**
|
|
42
45
|
* Cost breakdown attached to `RunResult.cost`. When `status === "unknown"`,
|
|
43
46
|
* `amountUsd` is `undefined` — DO NOT default to 0 (a lie). The UI shows
|
|
44
|
-
* `n/a`
|
|
47
|
+
* `n/a` for unknown, `~$1.23` for estimated, `$1.23` for actual.
|
|
45
48
|
*/
|
|
46
49
|
export interface CostBreakdown {
|
|
47
50
|
readonly amountUsd: number | undefined;
|