@theokit/sdk 4.63.4 → 5.0.0-next.2
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 +847 -23
- 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-X0DKA943.d.cts → agent-C3KO5LKm.d.cts} +251 -36
- package/dist/{agent-BFno7Sfn.d.ts → agent-CvmTR9uf.d.ts} +251 -36
- package/dist/agent-GPV2JWZG.cjs +67 -0
- package/dist/{agent-UX7WFI6B.cjs.map → agent-GPV2JWZG.cjs.map} +1 -1
- package/dist/agent-Y24I5JBM.js +58 -0
- package/dist/{agent-A5XMIVNP.js.map → agent-Y24I5JBM.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-LKBEROHN.js → chunk-4S5TWFIZ.js} +14 -14
- package/dist/chunk-4S5TWFIZ.js.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-67ADYSTW.js +120 -0
- package/dist/chunk-67ADYSTW.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-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-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-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-GGZ5GPE3.cjs +130 -0
- package/dist/chunk-GGZ5GPE3.cjs.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-VCLBZAZU.cjs → chunk-H6YM3PV6.cjs} +17 -17
- package/dist/chunk-H6YM3PV6.cjs.map +1 -0
- 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-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-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-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-LYTOXSRH.js → chunk-KDR53EO7.js} +1939 -1864
- package/dist/chunk-KDR53EO7.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-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-7VT4P3Z4.cjs → chunk-QUAEOKDW.cjs} +1642 -1567
- package/dist/chunk-QUAEOKDW.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-43ZQRWAP.cjs → chunk-SYVWE64W.cjs} +22 -22
- package/dist/chunk-SYVWE64W.cjs.map +1 -0
- 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-GMLBYDW4.cjs → chunk-VXDEKILY.cjs} +108 -109
- package/dist/chunk-VXDEKILY.cjs.map +1 -0
- package/dist/{chunk-ACDLHN3W.js → chunk-WJXOICRC.js} +16 -6
- package/dist/chunk-WJXOICRC.js.map +1 -0
- package/dist/{chunk-7YGCPMGB.js → chunk-XB4GI5RZ.js} +27 -12
- package/dist/chunk-XB4GI5RZ.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-NDGGJQTZ.js → chunk-XJZEBGXD.js} +10 -10
- package/dist/chunk-XJZEBGXD.js.map +1 -0
- 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/{chunk-32WTYBUH.js → chunk-ZH26RNQA.js} +91 -92
- package/dist/chunk-ZH26RNQA.js.map +1 -0
- 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-NI33FS2R.cjs +23 -0
- package/dist/{context-WFLTTMK3.cjs.map → context-NI33FS2R.cjs.map} +1 -1
- package/dist/context-Y7B7SI5X.js +6 -0
- package/dist/{context-WI2DFG7V.js.map → context-Y7B7SI5X.js.map} +1 -1
- package/dist/create-skill.d.ts +4 -1
- package/dist/{cron-BuiRPrvt.d.cts → cron-C3PhZED0.d.cts} +8 -2
- package/dist/{cron-C2SIi31n.d.ts → cron-crfMMdAw.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/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/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 +25 -12
- package/dist/internal/persistence/paths.d.ts +25 -12
- 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/compat-config-file.d.ts +31 -0
- package/dist/internal/runtime/compat/foreign-config-sources.d.ts +58 -34
- 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 +6 -1
- 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 +4 -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.ts → run-CTAdRU3U.d.cts} +120 -152
- package/dist/{run-BYSHf58D.d.cts → 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-BOiKqOgL.d.cts} +197 -117
- package/dist/{sdk-agent-DEoKhA8a.d.cts → sdk-agent-D4a_BR_6.d.ts} +197 -117
- 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-TPZLTXYZ.cjs +16 -0
- package/dist/{subagents-loader-UCNO7FUH.cjs.map → subagents-loader-TPZLTXYZ.cjs.map} +1 -1
- package/dist/subagents-loader-Y6JFYXAY.js +7 -0
- package/dist/{subagents-loader-XP5ERVDZ.js.map → subagents-loader-Y6JFYXAY.js.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 +109 -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 +71 -1
- 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 +139 -105
- package/docs/harness-capability-map.md +32 -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-A5XMIVNP.js +0 -57
- package/dist/agent-UX7WFI6B.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-247ZTLNU.js +0 -73
- package/dist/chunk-247ZTLNU.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-32WTYBUH.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-43ZQRWAP.cjs.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-7VT4P3Z4.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-AKJP2STZ.cjs +0 -81
- package/dist/chunk-AKJP2STZ.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-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-GMLBYDW4.cjs.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-JPBKYL3B.cjs +0 -18
- package/dist/chunk-JPBKYL3B.cjs.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-LKBEROHN.js.map +0 -1
- package/dist/chunk-LYRDF5TQ.cjs.map +0 -1
- package/dist/chunk-LYTOXSRH.js.map +0 -1
- package/dist/chunk-N2U4AZGB.js.map +0 -1
- package/dist/chunk-NDGGJQTZ.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-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-VCLBZAZU.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-ZSWPZ23K.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-WFLTTMK3.cjs +0 -24
- package/dist/context-WI2DFG7V.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-UCNO7FUH.cjs +0 -17
- package/dist/subagents-loader-XP5ERVDZ.js +0 -8
- /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
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
*
|
|
27
27
|
* @internal
|
|
28
28
|
*/
|
|
29
|
+
import { type CompatSourceDeclaration, type CompatSurface } from "../runtime/compat/foreign-config-sources.js";
|
|
29
30
|
/**
|
|
30
31
|
* Resolve the directory cwd-anchored SDK state lives in.
|
|
31
32
|
*
|
|
@@ -48,12 +49,31 @@
|
|
|
48
49
|
* declares in `exports` but does NOT cover with its semver contract.
|
|
49
50
|
*/
|
|
50
51
|
export declare function getTheokitHome(cwd: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* The project's own configuration root: `<cwd>/.theokit`, always — never `THEOKIT_HOME`.
|
|
54
|
+
*
|
|
55
|
+
* `THEOKIT_HOME` relocates cwd-anchored SDK STATE (sessions, credentials). A project's
|
|
56
|
+
* CONFIGURATION belongs to the repository: hooks, MCP servers, context sources, subagents, the
|
|
57
|
+
* personality a project declares, all committed to git and shared by a team. Following the
|
|
58
|
+
* override for any of them would move where a project's declared capabilities come from — a
|
|
59
|
+
* behaviour change wearing the costume of a refactor, which is exactly what this function exists
|
|
60
|
+
* to make impossible to do by accident: every config-class reader calls this instead of writing
|
|
61
|
+
* `join(cwd, ".theokit")` by hand.
|
|
62
|
+
*
|
|
63
|
+
* NOT for the `.claude/`-style foreign roots {@link adaptersForSurface} adds — those are additive,
|
|
64
|
+
* opt-in, and each has its own directory name.
|
|
65
|
+
*
|
|
66
|
+
* Semver-exempt: reachable via the `@theokit/sdk/internal/persistence` sub-path, which the package
|
|
67
|
+
* declares in `exports` but does NOT cover with its semver contract.
|
|
68
|
+
*/
|
|
69
|
+
export declare function theokitConfigRoot(cwd: string): string;
|
|
51
70
|
/**
|
|
52
71
|
* Every directory a project's configuration may be read from, in precedence order.
|
|
53
72
|
*
|
|
54
|
-
* `.theokit` first
|
|
55
|
-
*
|
|
56
|
-
*
|
|
73
|
+
* `.theokit` first — via {@link theokitConfigRoot}, so it is NEVER affected by `THEOKIT_HOME` for
|
|
74
|
+
* the reason documented there — then `.claude`. The order is the whole contract: a project that
|
|
75
|
+
* declares a skill, agent or rule in both means the explicit namespace to win, and a caller merging
|
|
76
|
+
* these roots must therefore keep the FIRST occurrence of a name rather than the last.
|
|
57
77
|
*
|
|
58
78
|
* `.claude` is read because the formats already agree and only the location did not. Measured
|
|
59
79
|
* 2026-08-26: the SKILL.md frontmatter this SDK requires (`name` + `description`) is exactly what
|
|
@@ -63,19 +83,12 @@ export declare function getTheokitHome(cwd: string): string;
|
|
|
63
83
|
* NOT a rename of `.theokit`, and not a migration. Both are read, so nothing that works today stops
|
|
64
84
|
* working — which is why this returns a LIST and not a single resolved answer.
|
|
65
85
|
*
|
|
66
|
-
* Deliberately NOT affected by `THEOKIT_HOME`, and this is the one thing to remember about it.
|
|
67
|
-
* That variable relocates cwd-anchored SDK *state* — sessions, the credential store. A project's
|
|
68
|
-
* *configuration* is a property of the repository, not of where this SDK keeps its state, and the
|
|
69
|
-
* loaders that read these directories have always anchored on `cwd` directly. Honouring the
|
|
70
|
-
* override here would silently move where a project's agents and skills come from, which is a
|
|
71
|
-
* behaviour change wearing the costume of a refactor.
|
|
72
|
-
*
|
|
73
86
|
* Creates nothing and checks nothing; either path may not exist, and the caller owns that.
|
|
74
87
|
*
|
|
75
88
|
* Semver-exempt: reachable via the `@theokit/sdk/internal/persistence` sub-path, which the package
|
|
76
89
|
* declares in `exports` but does NOT cover with its semver contract.
|
|
77
90
|
*/
|
|
78
|
-
export declare function projectConfigRoots(cwd: string): string[];
|
|
91
|
+
export declare function projectConfigRoots(cwd: string, sources: readonly CompatSourceDeclaration[], surface: CompatSurface): string[];
|
|
79
92
|
/**
|
|
80
93
|
* Every directory that may hold a plugin BUNDLE contributed by the Claude Code CLI.
|
|
81
94
|
*
|
|
@@ -89,7 +102,7 @@ export declare function projectConfigRoots(cwd: string): string[];
|
|
|
89
102
|
* reading a project's configuration, and guessing at someone's enablement would run code they
|
|
90
103
|
* turned off.
|
|
91
104
|
*/
|
|
92
|
-
export declare function pluginBundleRoots(cwd: string): string[];
|
|
105
|
+
export declare function pluginBundleRoots(cwd: string, sources: readonly CompatSourceDeclaration[]): string[];
|
|
93
106
|
/**
|
|
94
107
|
* The directory holding every profile: always `~/.theokit/profiles`, from `os.homedir()`.
|
|
95
108
|
*
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
*
|
|
27
27
|
* @internal
|
|
28
28
|
*/
|
|
29
|
+
import { type CompatSourceDeclaration, type CompatSurface } from "../runtime/compat/foreign-config-sources.js";
|
|
29
30
|
/**
|
|
30
31
|
* Resolve the directory cwd-anchored SDK state lives in.
|
|
31
32
|
*
|
|
@@ -48,12 +49,31 @@
|
|
|
48
49
|
* declares in `exports` but does NOT cover with its semver contract.
|
|
49
50
|
*/
|
|
50
51
|
export declare function getTheokitHome(cwd: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* The project's own configuration root: `<cwd>/.theokit`, always — never `THEOKIT_HOME`.
|
|
54
|
+
*
|
|
55
|
+
* `THEOKIT_HOME` relocates cwd-anchored SDK STATE (sessions, credentials). A project's
|
|
56
|
+
* CONFIGURATION belongs to the repository: hooks, MCP servers, context sources, subagents, the
|
|
57
|
+
* personality a project declares, all committed to git and shared by a team. Following the
|
|
58
|
+
* override for any of them would move where a project's declared capabilities come from — a
|
|
59
|
+
* behaviour change wearing the costume of a refactor, which is exactly what this function exists
|
|
60
|
+
* to make impossible to do by accident: every config-class reader calls this instead of writing
|
|
61
|
+
* `join(cwd, ".theokit")` by hand.
|
|
62
|
+
*
|
|
63
|
+
* NOT for the `.claude/`-style foreign roots {@link adaptersForSurface} adds — those are additive,
|
|
64
|
+
* opt-in, and each has its own directory name.
|
|
65
|
+
*
|
|
66
|
+
* Semver-exempt: reachable via the `@theokit/sdk/internal/persistence` sub-path, which the package
|
|
67
|
+
* declares in `exports` but does NOT cover with its semver contract.
|
|
68
|
+
*/
|
|
69
|
+
export declare function theokitConfigRoot(cwd: string): string;
|
|
51
70
|
/**
|
|
52
71
|
* Every directory a project's configuration may be read from, in precedence order.
|
|
53
72
|
*
|
|
54
|
-
* `.theokit` first
|
|
55
|
-
*
|
|
56
|
-
*
|
|
73
|
+
* `.theokit` first — via {@link theokitConfigRoot}, so it is NEVER affected by `THEOKIT_HOME` for
|
|
74
|
+
* the reason documented there — then `.claude`. The order is the whole contract: a project that
|
|
75
|
+
* declares a skill, agent or rule in both means the explicit namespace to win, and a caller merging
|
|
76
|
+
* these roots must therefore keep the FIRST occurrence of a name rather than the last.
|
|
57
77
|
*
|
|
58
78
|
* `.claude` is read because the formats already agree and only the location did not. Measured
|
|
59
79
|
* 2026-08-26: the SKILL.md frontmatter this SDK requires (`name` + `description`) is exactly what
|
|
@@ -63,19 +83,12 @@ export declare function getTheokitHome(cwd: string): string;
|
|
|
63
83
|
* NOT a rename of `.theokit`, and not a migration. Both are read, so nothing that works today stops
|
|
64
84
|
* working — which is why this returns a LIST and not a single resolved answer.
|
|
65
85
|
*
|
|
66
|
-
* Deliberately NOT affected by `THEOKIT_HOME`, and this is the one thing to remember about it.
|
|
67
|
-
* That variable relocates cwd-anchored SDK *state* — sessions, the credential store. A project's
|
|
68
|
-
* *configuration* is a property of the repository, not of where this SDK keeps its state, and the
|
|
69
|
-
* loaders that read these directories have always anchored on `cwd` directly. Honouring the
|
|
70
|
-
* override here would silently move where a project's agents and skills come from, which is a
|
|
71
|
-
* behaviour change wearing the costume of a refactor.
|
|
72
|
-
*
|
|
73
86
|
* Creates nothing and checks nothing; either path may not exist, and the caller owns that.
|
|
74
87
|
*
|
|
75
88
|
* Semver-exempt: reachable via the `@theokit/sdk/internal/persistence` sub-path, which the package
|
|
76
89
|
* declares in `exports` but does NOT cover with its semver contract.
|
|
77
90
|
*/
|
|
78
|
-
export declare function projectConfigRoots(cwd: string): string[];
|
|
91
|
+
export declare function projectConfigRoots(cwd: string, sources: readonly CompatSourceDeclaration[], surface: CompatSurface): string[];
|
|
79
92
|
/**
|
|
80
93
|
* Every directory that may hold a plugin BUNDLE contributed by the Claude Code CLI.
|
|
81
94
|
*
|
|
@@ -89,7 +102,7 @@ export declare function projectConfigRoots(cwd: string): string[];
|
|
|
89
102
|
* reading a project's configuration, and guessing at someone's enablement would run code they
|
|
90
103
|
* turned off.
|
|
91
104
|
*/
|
|
92
|
-
export declare function pluginBundleRoots(cwd: string): string[];
|
|
105
|
+
export declare function pluginBundleRoots(cwd: string, sources: readonly CompatSourceDeclaration[]): string[];
|
|
93
106
|
/**
|
|
94
107
|
* The directory holding every profile: always `~/.theokit/profiles`, from `os.homedir()`.
|
|
95
108
|
*
|
|
@@ -27,10 +27,19 @@ import { TheokitAgentError } from "../../errors.js";
|
|
|
27
27
|
*
|
|
28
28
|
* Typed rather than a bare `Error` because the caller must distinguish "this session is protected"
|
|
29
29
|
* from "the disk is full": the first is a correct refusal, the second is an incident.
|
|
30
|
+
*
|
|
31
|
+
* RENAMED from `LiveSessionError` (2026-09-01). `session-guard.ts` exports a DIFFERENT class of that
|
|
32
|
+
* name from the root barrel, with an incompatible shape — `(sessionId, reason)` and a `reason`
|
|
33
|
+
* field, against this one's `(path)` and `code: "live_session_protected"` — and `.` and
|
|
34
|
+
* `./persistence` are both declared subpaths, so one consumer can hold both. `instanceof` never
|
|
35
|
+
* crossed the pair, so a `catch` checking the root import silently missed this one and ran its
|
|
36
|
+
* fallback for a condition it believed it handled; `err.name` matched BOTH, so a name check looked
|
|
37
|
+
* right and then read `err.reason`, which only the other one has. The names now say what each
|
|
38
|
+
* refusal is about: destroying a SESSION, versus overwriting a TRANSCRIPT file.
|
|
30
39
|
*/
|
|
31
|
-
export declare class
|
|
40
|
+
export declare class LiveTranscriptError extends TheokitAgentError {
|
|
32
41
|
readonly path: string;
|
|
33
|
-
readonly name = "
|
|
42
|
+
readonly name = "LiveTranscriptError";
|
|
34
43
|
constructor(path: string);
|
|
35
44
|
}
|
|
36
45
|
/** Options for {@link forkTranscript}. */
|
|
@@ -27,10 +27,19 @@ import { TheokitAgentError } from "../../errors.js";
|
|
|
27
27
|
*
|
|
28
28
|
* Typed rather than a bare `Error` because the caller must distinguish "this session is protected"
|
|
29
29
|
* from "the disk is full": the first is a correct refusal, the second is an incident.
|
|
30
|
+
*
|
|
31
|
+
* RENAMED from `LiveSessionError` (2026-09-01). `session-guard.ts` exports a DIFFERENT class of that
|
|
32
|
+
* name from the root barrel, with an incompatible shape — `(sessionId, reason)` and a `reason`
|
|
33
|
+
* field, against this one's `(path)` and `code: "live_session_protected"` — and `.` and
|
|
34
|
+
* `./persistence` are both declared subpaths, so one consumer can hold both. `instanceof` never
|
|
35
|
+
* crossed the pair, so a `catch` checking the root import silently missed this one and ran its
|
|
36
|
+
* fallback for a condition it believed it handled; `err.name` matched BOTH, so a name check looked
|
|
37
|
+
* right and then read `err.reason`, which only the other one has. The names now say what each
|
|
38
|
+
* refusal is about: destroying a SESSION, versus overwriting a TRANSCRIPT file.
|
|
30
39
|
*/
|
|
31
|
-
export declare class
|
|
40
|
+
export declare class LiveTranscriptError extends TheokitAgentError {
|
|
32
41
|
readonly path: string;
|
|
33
|
-
readonly name = "
|
|
42
|
+
readonly name = "LiveTranscriptError";
|
|
34
43
|
constructor(path: string);
|
|
35
44
|
}
|
|
36
45
|
/** Options for {@link forkTranscript}. */
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PluginContext implementation + dev-mode seal (T1.2, ADR D99).
|
|
3
|
-
*
|
|
4
|
-
* `createPluginContext()` returns a fresh `{ ctx, registrations }` pair
|
|
5
|
-
* for each plugin. In dev mode (`NODE_ENV !== "production"`) the context
|
|
6
|
-
* is wrapped in a Proxy that throws on `set`/`delete` to catch plugin
|
|
7
|
-
* abuse early. In production the raw impl is returned (zero overhead).
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
1
|
import type { CommandHandler, HookHandler, HookName, PluginContext } from "./types.js";
|
|
12
2
|
interface CommandEntry {
|
|
13
3
|
name: string;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PluginContext implementation + dev-mode seal (T1.2, ADR D99).
|
|
3
|
-
*
|
|
4
|
-
* `createPluginContext()` returns a fresh `{ ctx, registrations }` pair
|
|
5
|
-
* for each plugin. In dev mode (`NODE_ENV !== "production"`) the context
|
|
6
|
-
* is wrapped in a Proxy that throws on `set`/`delete` to catch plugin
|
|
7
|
-
* abuse early. In production the raw impl is returned (zero overhead).
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
1
|
import type { CommandHandler, HookHandler, HookName, PluginContext } from "./types.js";
|
|
12
2
|
interface CommandEntry {
|
|
13
3
|
name: string;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
13
|
import type { Plugin as PluginType } from "../../types/plugin.js";
|
|
14
|
-
export type { CommandHandler, CommandOptions, HookHandler, HookName, LlmCallContext, MemoryProviderFactory, PluginContext, PostAssistantReplyContext, PostToolCallContext, PreToolCallContext, PreToolCallDecision, PreUserSendContext, PreUserSendResult, SessionLifecycleContext, ToolCallSummary, ToolContext, ToolResultTransformContext, TransformContext, } from "../../types/plugin.js";
|
|
14
|
+
export type { CommandHandler, CommandOptions, HookHandler, HookName, LlmCallContext, MemoryProviderFactory, PluginContext, PluginHookDisposer, PostAssistantReplyContext, PostToolCallContext, PreToolCallContext, PreToolCallDecision, PreUserSendContext, PreUserSendResult, SessionLifecycleContext, ToolCallSummary, ToolContext, ToolResultTransformContext, TransformContext, } from "../../types/plugin.js";
|
|
15
15
|
export type Plugin = PluginType;
|
|
16
16
|
/**
|
|
17
17
|
* Identity helper for plugin authors. TS-only convenience — preserves
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
13
|
import type { Plugin as PluginType } from "../../types/plugin.js";
|
|
14
|
-
export type { CommandHandler, CommandOptions, HookHandler, HookName, LlmCallContext, MemoryProviderFactory, PluginContext, PostAssistantReplyContext, PostToolCallContext, PreToolCallContext, PreToolCallDecision, PreUserSendContext, PreUserSendResult, SessionLifecycleContext, ToolCallSummary, ToolContext, ToolResultTransformContext, TransformContext, } from "../../types/plugin.js";
|
|
14
|
+
export type { CommandHandler, CommandOptions, HookHandler, HookName, LlmCallContext, MemoryProviderFactory, PluginContext, PluginHookDisposer, PostAssistantReplyContext, PostToolCallContext, PreToolCallContext, PreToolCallDecision, PreUserSendContext, PreUserSendResult, SessionLifecycleContext, ToolCallSummary, ToolContext, ToolResultTransformContext, TransformContext, } from "../../types/plugin.js";
|
|
15
15
|
export type Plugin = PluginType;
|
|
16
16
|
/**
|
|
17
17
|
* Identity helper for plugin authors. TS-only convenience — preserves
|
|
@@ -105,4 +105,98 @@ export type CatalogModel = z.infer<typeof catalogModelSchema>;
|
|
|
105
105
|
* the parsed value.
|
|
106
106
|
*/
|
|
107
107
|
export type CatalogModelCost = z.infer<typeof costSchema>;
|
|
108
|
+
/**
|
|
109
|
+
* One provider entry in the vendored catalog.
|
|
110
|
+
*
|
|
111
|
+
* LOOSE like `catalogModelSchema` beside it, and for the same reason: this validates a vendored data
|
|
112
|
+
* file that upstream extends over time, so unknown keys are kept rather than rejected. What it does
|
|
113
|
+
* NOT do is what the hand-rolled check it replaced did — assert. That check tested nine fields with
|
|
114
|
+
* `typeof`/`Array.isArray` and then cast the whole object through `as unknown as CatalogEntry`, so
|
|
115
|
+
* `capabilities`' contents, `aliases`, `modelsUrl`, `hostname`, `extraHeaders` and `models` were
|
|
116
|
+
* declared and never checked. Standing next to zod — one of this package's three runtime
|
|
117
|
+
* dependencies — and reimplementing a worse version of it is the Don't-Reinvent rung of
|
|
118
|
+
* `rules/parsimony-ladder.md`.
|
|
119
|
+
*
|
|
120
|
+
* `apiMode` and `authType` are the closed unions from `types/provider-profile.ts`. Enumerating them
|
|
121
|
+
* here means an entry naming a mode the SDK cannot dispatch is dropped with a WARN at load, instead
|
|
122
|
+
* of reaching `selectTransport` as a string that matches no branch.
|
|
123
|
+
*/
|
|
124
|
+
export declare const catalogEntrySchema: z.ZodObject<{
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
displayName: z.ZodString;
|
|
127
|
+
apiMode: z.ZodEnum<{
|
|
128
|
+
chat_completions: "chat_completions";
|
|
129
|
+
anthropic_messages: "anthropic_messages";
|
|
130
|
+
responses_api: "responses_api";
|
|
131
|
+
bedrock: "bedrock";
|
|
132
|
+
bedrock_anthropic: "bedrock_anthropic";
|
|
133
|
+
}>;
|
|
134
|
+
authType: z.ZodEnum<{
|
|
135
|
+
none: "none";
|
|
136
|
+
api_key: "api_key";
|
|
137
|
+
oauth_device_code: "oauth_device_code";
|
|
138
|
+
oauth_external: "oauth_external";
|
|
139
|
+
aws_sdk: "aws_sdk";
|
|
140
|
+
aws_bearer: "aws_bearer";
|
|
141
|
+
gcp_oauth: "gcp_oauth";
|
|
142
|
+
}>;
|
|
143
|
+
baseUrl: z.ZodString;
|
|
144
|
+
envVars: z.ZodArray<z.ZodString>;
|
|
145
|
+
fallbackModels: z.ZodArray<z.ZodString>;
|
|
146
|
+
capabilities: z.ZodObject<{
|
|
147
|
+
supportsToolUse: z.ZodBoolean;
|
|
148
|
+
supportsVision: z.ZodBoolean;
|
|
149
|
+
supportsStructuredOutput: z.ZodBoolean;
|
|
150
|
+
supportsStreaming: z.ZodBoolean;
|
|
151
|
+
supportsCacheControl: z.ZodBoolean;
|
|
152
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
156
|
+
modelsUrl: z.ZodOptional<z.ZodString>;
|
|
157
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
158
|
+
extraHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
159
|
+
models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
160
|
+
name: z.ZodOptional<z.ZodString>;
|
|
161
|
+
release_date: z.ZodOptional<z.ZodString>;
|
|
162
|
+
attachment: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
temperature: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
tool_call: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
structured_output: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
cache_control: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
input: z.ZodNumber;
|
|
170
|
+
output: z.ZodNumber;
|
|
171
|
+
cache_read: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
cache_write: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
}, z.core.$loose>>;
|
|
174
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
context: z.ZodNumber;
|
|
176
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
}, z.core.$loose>>;
|
|
179
|
+
modalities: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
input: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
181
|
+
text: "text";
|
|
182
|
+
image: "image";
|
|
183
|
+
audio: "audio";
|
|
184
|
+
video: "video";
|
|
185
|
+
pdf: "pdf";
|
|
186
|
+
}>>>;
|
|
187
|
+
output: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
188
|
+
text: "text";
|
|
189
|
+
image: "image";
|
|
190
|
+
audio: "audio";
|
|
191
|
+
video: "video";
|
|
192
|
+
pdf: "pdf";
|
|
193
|
+
}>>>;
|
|
194
|
+
}, z.core.$loose>>;
|
|
195
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
196
|
+
alpha: "alpha";
|
|
197
|
+
beta: "beta";
|
|
198
|
+
deprecated: "deprecated";
|
|
199
|
+
}>>;
|
|
200
|
+
}, z.core.$loose>>>;
|
|
201
|
+
}, z.core.$loose>;
|
|
108
202
|
export {};
|
|
@@ -63,6 +63,17 @@ export declare function loadCacheIntoIndex(url?: string): number;
|
|
|
63
63
|
* Explicitly refresh the model catalog from models.dev (the ONLY network trigger in the subsystem).
|
|
64
64
|
* Fail-closed: any failure keeps serving the current index (cache or vendored). Kill-switch:
|
|
65
65
|
* `THEOKIT_DISABLE_MODELS_FETCH`.
|
|
66
|
+
*
|
|
67
|
+
* The sequence carried a cognitive-complexity suppression whose reason said splitting it would
|
|
68
|
+
* "separate a step from the fallback it owns". The four helpers above each KEEP their fallback: the
|
|
69
|
+
* TTL gate owns "no cache", the fetch owns every network and validation failure, the persist owns
|
|
70
|
+
* the write and the patch. What is left here is the order they run in, which is what this function
|
|
71
|
+
* was always for.
|
|
72
|
+
*
|
|
73
|
+
* Still true, and NOT fixed by the split: three of the paths return `{ source: "cache" }`, so a
|
|
74
|
+
* caller cannot tell a timeout from an unparseable body from a patch failure. Distinguishing them
|
|
75
|
+
* means adding a field to the PUBLIC `RefreshModelCatalogResult`, which is a release decision rather
|
|
76
|
+
* than a refactor. The `diag` line already names the cause for an operator.
|
|
66
77
|
*/
|
|
67
78
|
export declare function refreshModelCatalog(opts?: RefreshModelCatalogOptions): Promise<RefreshModelCatalogResult>;
|
|
68
79
|
/** The enriched per-model view (public via `@theokit/sdk/models`): index lookup by (possibly prefixed) id. */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { CompatSourceDeclaration } from "./foreign-config-sources.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read `.theokit/config.json`'s `compat.adapters`, or `[]` when the file is absent, declares no
|
|
4
|
+
* `compat` section, or is malformed — the last two WARN on the diagnostics channel rather than
|
|
5
|
+
* failing silently, matching #526's fail-closed-and-say-so precedent for the code option.
|
|
6
|
+
*
|
|
7
|
+
* SYNC on purpose: the caller is `Agent`'s constructor, which resolves `compatSources` before any
|
|
8
|
+
* submanager exists to await a promise. `existsSync` is already how the same constructor checks for
|
|
9
|
+
* `.theokit`/`.claude`; a once-per-agent read of one small, optional JSON file is the same class of
|
|
10
|
+
* work, not a new one.
|
|
11
|
+
*/
|
|
12
|
+
export declare function readCompatConfigFile(cwd: string): CompatSourceDeclaration[];
|
|
13
|
+
/**
|
|
14
|
+
* The one place `local.compatSources` — explicit code — and `.theokit/config.json` — the
|
|
15
|
+
* project's declared default — are reconciled. Every reader that needs `compatSources` (hooks,
|
|
16
|
+
* skills, plugins, subagents) calls THIS instead of writing `options.local?.compatSources ?? []`
|
|
17
|
+
* by hand: that pattern existed at five call sites before this function did, and every one of them
|
|
18
|
+
* silently meant "the file form doesn't exist" — the same duplication `theokitConfigRoot` closed
|
|
19
|
+
* one layer down, one layer up.
|
|
20
|
+
*
|
|
21
|
+
* PRECEDENCE: explicit code wins. A consumer passing `local.compatSources` made a decision at the
|
|
22
|
+
* call site; the file is the DEFAULT for callers who did not. This is not specified by #524 — it is
|
|
23
|
+
* this SDK's choice, made explicit here rather than left to whichever call site happened to be
|
|
24
|
+
* written first. It means a test or a one-off script can always override the file without editing
|
|
25
|
+
* or deleting it, which the reverse precedence would not allow.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveCompatSources(options: {
|
|
28
|
+
local?: {
|
|
29
|
+
compatSources?: readonly CompatSourceDeclaration[];
|
|
30
|
+
};
|
|
31
|
+
}, cwd: string): readonly CompatSourceDeclaration[];
|
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The foreign configuration dialects this SDK can read, and what each one PRESUMES.
|
|
3
|
-
*
|
|
4
|
-
* ## Why a registry and not a list of directory names
|
|
5
|
-
*
|
|
6
|
-
* `projectConfigRoots` returned `[".theokit", ".claude"]` — two paths — and that shape is what
|
|
7
|
-
* usetheokit/theokit-sdk#522 fell through. A path says WHERE a file lives. It does not say how the
|
|
8
|
-
* file is parsed, and it does not say what runtime the commands inside it were written against.
|
|
9
|
-
*
|
|
10
|
-
* Claude Code defines `$CLAUDE_PROJECT_DIR` for the hook commands in its `settings.json`, and its
|
|
11
|
-
* documentation tells authors to reach project files through it — an absolute path would break for
|
|
12
|
-
* every other person on the team, so the shape that failed here is the shape upstream recommends.
|
|
13
|
-
* This SDK read the file and ran the command without the variable. `sh` expands an unset variable to
|
|
14
|
-
* the empty string, so
|
|
15
|
-
*
|
|
16
|
-
* bash "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.sh" became bash "/.claude/hooks/guard.sh"
|
|
17
|
-
*
|
|
18
|
-
* which does not exist, which a hook runner correctly reads as a refusal. Every turn denied, in any
|
|
19
|
-
* repository that also had Claude Code set up, with a message naming a file that was present and
|
|
20
|
-
* executable all along.
|
|
21
|
-
*
|
|
22
|
-
* Importing a format means accepting the contract that format presumes. An adapter is where that
|
|
23
|
-
* contract is written down, so the next dialect (`.codex/` is the obvious one) declares its own
|
|
24
|
-
* instead of inheriting a hole.
|
|
25
|
-
*
|
|
26
|
-
* ## What an adapter deliberately does NOT do
|
|
27
|
-
*
|
|
28
|
-
* It does not make the foreign source trusted, and it does not make its hooks permissive: a script
|
|
29
|
-
* that exits non-zero is still a refusal. It supplies the variables the format's authors were
|
|
30
|
-
* entitled to assume, and nothing else — `env` here is merged over the scrubbed inherit policy by
|
|
31
|
-
* `spawnAndCollect`, so it adds names rather than widening what a child can see.
|
|
32
|
-
*
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
1
|
/** The Claude Code CLI's project configuration directory. */
|
|
36
2
|
export declare const CLAUDE_DIR_NAME = ".claude";
|
|
37
3
|
/** A configuration dialect this SDK understands. `theokit` is native; the rest are foreign. */
|
|
@@ -60,6 +26,44 @@ export declare const NATIVE_SOURCE: ConfigSourceAdapter;
|
|
|
60
26
|
* wrong, where an unset one fails loudly.
|
|
61
27
|
*/
|
|
62
28
|
export declare const CLAUDE_CODE_SOURCE: ConfigSourceAdapter;
|
|
29
|
+
/**
|
|
30
|
+
* The adapters a caller declared, in declaration order, skipping any name that names no adapter.
|
|
31
|
+
*
|
|
32
|
+
* An unknown name is DROPPED rather than turned into `<cwd>/<name>`: a typo must fail closed. Making
|
|
33
|
+
* a directory out of an unrecognised string would import a dialect nothing knows how to parse — and
|
|
34
|
+
* the whole reason this exists is that a directory name was never enough to describe a dialect.
|
|
35
|
+
*/
|
|
36
|
+
export declare function adaptersFor(kinds: readonly string[]): ConfigSourceAdapter[];
|
|
37
|
+
/**
|
|
38
|
+
* A surface a foreign source may be admitted to. The four the SDK reads a project directory for.
|
|
39
|
+
*
|
|
40
|
+
* They are listed separately because they carry very different risk, which is the whole reason
|
|
41
|
+
* #524 asks for per-surface control: a skill is text that enters the system prompt, a hook is
|
|
42
|
+
* command execution, a plugin is code loading. A consumer who wants their skills back has no
|
|
43
|
+
* reason to be handed the other two along with them.
|
|
44
|
+
*/
|
|
45
|
+
export type CompatSurface = "hooks" | "plugins" | "skills" | "subagents";
|
|
46
|
+
/**
|
|
47
|
+
* A declared foreign source: a bare kind, or a kind with the surfaces it may be read for.
|
|
48
|
+
*/
|
|
49
|
+
export type CompatSourceDeclaration = string | {
|
|
50
|
+
readonly kind: string;
|
|
51
|
+
readonly import?: readonly string[];
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The adapters admitted to ONE surface.
|
|
55
|
+
*
|
|
56
|
+
* Three rules, and each one fails closed:
|
|
57
|
+
*
|
|
58
|
+
* - A bare string admits every surface. It is what `5.0.0-next.1` published, so narrowing it
|
|
59
|
+
* silently would turn a working opt-in into a no-op — the exact defect #524 is about, one level
|
|
60
|
+
* up.
|
|
61
|
+
* - An object with no `import` admits nothing. The issue's own rule, and safe to apply strictly
|
|
62
|
+
* because the object form is new and nobody can be depending on it.
|
|
63
|
+
* - An unrecognised surface name is dropped rather than matched loosely, for the same reason an
|
|
64
|
+
* unrecognised KIND is dropped in {@link adaptersFor}: a typo must not silently widen access.
|
|
65
|
+
*/
|
|
66
|
+
export declare function adaptersForSurface(sources: readonly CompatSourceDeclaration[], surface: CompatSurface): ConfigSourceAdapter[];
|
|
63
67
|
/**
|
|
64
68
|
* The adapter whose directory an absolute config path sits under, or `undefined` for a path that
|
|
65
69
|
* belongs to no registered dialect.
|
|
@@ -90,3 +94,23 @@ export declare function adapterForConfigPath(path: string): ConfigSourceAdapter
|
|
|
90
94
|
* toward silence and the check only ever ADDS a name to a failure that already happened.
|
|
91
95
|
*/
|
|
92
96
|
export declare function undefinedVariablesIn(command: string, supplied: Readonly<Record<string, string>>, env?: Readonly<Record<string, string | undefined>>): string[];
|
|
97
|
+
/**
|
|
98
|
+
* Reports a foreign configuration directory that exists in the workspace and was not declared.
|
|
99
|
+
*
|
|
100
|
+
* ## Why the flip needs a voice
|
|
101
|
+
*
|
|
102
|
+
* Before #524 a `.claude/` was read with no opt-in; after it, the same directory is ignored. From
|
|
103
|
+
* inside the repository the two states are indistinguishable — the hook file is there, it is
|
|
104
|
+
* executable, and it does not run. The only remaining way to learn why is a CHANGELOG entry for a
|
|
105
|
+
* version the reader may not know they crossed.
|
|
106
|
+
*
|
|
107
|
+
* ## Why `diag` rather than `diagFailure`
|
|
108
|
+
*
|
|
109
|
+
* `diagFailure` falls back to stderr, and this is not a failure: ignoring an undeclared foreign
|
|
110
|
+
* directory is precisely what #524 asked for. Every repository that has Claude Code set up and does
|
|
111
|
+
* NOT want it imported would pay a stderr line at every agent start — on a TUI host's render
|
|
112
|
+
* surface — for behaving as instructed. That is the corruption `diagnostics.ts` exists to prevent.
|
|
113
|
+
*
|
|
114
|
+
* So it goes on the interceptable channel, for the reader holding the question it answers.
|
|
115
|
+
*/
|
|
116
|
+
export declare function reportUndeclaredSources(cwd: string, declared: readonly CompatSourceDeclaration[]): void;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
*
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
|
-
export declare class CompressionModelUnresolvedError extends
|
|
37
|
+
export declare class CompressionModelUnresolvedError extends TheokitAgentError {
|
|
38
38
|
readonly name = "CompressionModelUnresolvedError";
|
|
39
39
|
readonly agentModel: string;
|
|
40
40
|
constructor(agentModel: string);
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @internal
|
|
19
19
|
*/
|
|
20
|
+
import { TheokitAgentError } from "../../../errors.js";
|
|
20
21
|
export type { CompressibleMessage };
|
|
21
22
|
/**
|
|
22
23
|
* Typed error thrown when the compression LLM call fails or returns
|
|
@@ -25,6 +26,9 @@ export type { CompressibleMessage };
|
|
|
25
26
|
*
|
|
26
27
|
* @public
|
|
27
28
|
*/
|
|
28
|
-
export declare class CompressionFailedError extends
|
|
29
|
+
export declare class CompressionFailedError extends TheokitAgentError {
|
|
29
30
|
readonly name = "CompressionFailedError";
|
|
31
|
+
constructor(message: string, options?: {
|
|
32
|
+
cause?: unknown;
|
|
33
|
+
});
|
|
30
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SDKAssistantMessage, SDKRequestMessage, SDKStatusMessage, SDKSystemMessage, SDKTaskMessage, SDKThinkingMessage, SDKToolUseMessage, SDKUserMessageEvent } from "../../../types/messages.js";
|
|
2
|
-
import type { FixtureRequest } from "./
|
|
2
|
+
import type { FixtureRequest } from "./types.js";
|
|
3
3
|
export declare function systemEvent(request: FixtureRequest, tools: string[]): SDKSystemMessage;
|
|
4
4
|
export declare function userEvent(request: FixtureRequest): SDKUserMessageEvent;
|
|
5
5
|
export declare function assistantText(request: FixtureRequest, text: string): SDKAssistantMessage;
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
* or a real Theo PaaS instance), the SDK always performs real HTTP
|
|
12
12
|
* requests — fixture mode is short-circuited.
|
|
13
13
|
*
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* The provider credentials `shouldUseRealLocalRuntime` consults by name.
|
|
18
14
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
15
|
+
* WHAT THIS FILE NO LONGER ANSWERS. It used to answer three unrelated questions in 229 lines: this
|
|
16
|
+
* one, "what base URL is configured" (now `internal/base-url.ts`, whose real consumer is the
|
|
17
|
+
* production HTTP module) and "does this process hold a real provider credential" (now
|
|
18
|
+
* `internal/auth/credential-availability.ts`, where its dependency already pointed).
|
|
19
|
+
* `shouldUseRealLocalRuntime` stays here because it COMPOSES the three — it is the decision, not the
|
|
20
|
+
* policy.
|
|
24
21
|
*
|
|
25
|
-
*
|
|
26
|
-
* error on the same commit, which is the only way the two stay in step.
|
|
22
|
+
* @internal
|
|
27
23
|
*/
|
|
28
|
-
export
|
|
29
|
-
/** Those of {@link PROVIDER_CREDENTIAL_ENV_VARS} that are non-empty in this process. */
|
|
30
|
-
export declare function presentProviderCredentialEnvVars(): readonly string[];
|
|
24
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import type { ModelSelection } from "../../../types/agent.js";
|
|
|
2
2
|
import type { ConversationTurn } from "../../../types/conversation.js";
|
|
3
3
|
import type { SDKMessage } from "../../../types/messages.js";
|
|
4
4
|
import type { Run, RunOperation, RunResult, RunStatus, RunTimelineEvent } from "../../../types/run.js";
|
|
5
|
-
import type { FixtureScript } from "./
|
|
5
|
+
import type { FixtureScript } from "./types.js";
|
|
6
6
|
export declare abstract class FixtureRunBase implements Run {
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly agentId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FixtureRequest, FixtureScript } from "./
|
|
2
|
-
export { extractMemoryFact, isMemoryWritePrompt } from "../memory/memory-store.js";
|
|
1
|
+
import type { FixtureRequest, FixtureScript } from "./types.js";
|
|
2
|
+
export { extractMemoryFact, isMemoryWritePrompt } from "../memory-glue/memory-store.js";
|
|
3
3
|
export declare function isMemoryRecallPrompt(message: string, request: FixtureRequest): boolean;
|
|
4
4
|
export declare function memoryWriteScript(request: FixtureRequest): FixtureScript;
|
|
5
5
|
export declare function memoryRecallScript(request: FixtureRequest): FixtureScript;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CompatSourceDeclaration } from "../compat/foreign-config-sources.js";
|
|
1
2
|
export interface HookCommand {
|
|
2
3
|
command: string;
|
|
3
4
|
/** Optional matcher restricting the hook to specific tools (regex). */
|
|
@@ -34,8 +35,12 @@ export interface HookExecutionResult {
|
|
|
34
35
|
}
|
|
35
36
|
export declare class HooksExecutor {
|
|
36
37
|
private readonly cwd;
|
|
38
|
+
/** Declared foreign dialects (#524). Empty reads `.theokit/` only. */
|
|
39
|
+
private readonly compatSources;
|
|
37
40
|
private config;
|
|
38
|
-
constructor(cwd: string
|
|
41
|
+
constructor(cwd: string,
|
|
42
|
+
/** Declared foreign dialects (#524). Empty reads `.theokit/` only. */
|
|
43
|
+
compatSources?: readonly CompatSourceDeclaration[]);
|
|
39
44
|
initialize(settingSourcesIncludeProject: boolean): Promise<void>;
|
|
40
45
|
/** Fire every hook registered for `event` and aggregate the decisions. */
|
|
41
46
|
run(payload: HookPayload): Promise<HookExecutionResult>;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* @internal
|
|
18
18
|
*/
|
|
19
19
|
import type { CompletionCheck, Run } from "../../../types/run.js";
|
|
20
|
-
import {
|
|
20
|
+
import type { RunEventSink } from "../../../types/run-events.js";
|
|
21
21
|
import type { JudgeContext, JudgeOptions } from "../../judge/judge-call.js";
|
|
22
22
|
export interface CompletionCheckDeps {
|
|
23
23
|
judge: (ctx: JudgeContext, opts?: JudgeOptions) => Promise<JudgeResult>;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @public — surface-level interface; impls are internal-but-replaceable.
|
|
10
10
|
*/
|
|
11
|
-
export type { ActiveMemoryPassArgs, ActiveMemoryPassResult, MemoryProvider, MemoryProviderHandle, MemoryProviderInitOptions, RecordSessionSummaryArgs, } from "../../../types/memory-provider.js";
|
|
11
|
+
export type { ActiveMemoryPassArgs, ActiveMemoryPassResult, MemoryProvider, MemoryProviderAgentRef, MemoryProviderHandle, MemoryProviderInitOptions, RecordSessionSummaryArgs, } from "../../../types/memory-provider.js";
|