@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
package/dist/index.cjs
CHANGED
|
@@ -1,70 +1,71 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTFG5IBZS_cjs = require('./chunk-TFG5IBZS.cjs');
|
|
4
4
|
var chunkOBA6YK2R_cjs = require('./chunk-OBA6YK2R.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
5
|
+
var chunkDRL7URI4_cjs = require('./chunk-DRL7URI4.cjs');
|
|
6
|
+
var chunkV6ZY4AX6_cjs = require('./chunk-V6ZY4AX6.cjs');
|
|
7
|
+
var chunkQWD4RDZ3_cjs = require('./chunk-QWD4RDZ3.cjs');
|
|
8
|
+
require('./chunk-7JJ3A6AT.cjs');
|
|
9
|
+
var chunk4HS6FFGL_cjs = require('./chunk-4HS6FFGL.cjs');
|
|
10
|
+
require('./chunk-4A3SKJ53.cjs');
|
|
11
11
|
require('./chunk-VTYY7XL5.cjs');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
12
|
+
var chunkVXDEKILY_cjs = require('./chunk-VXDEKILY.cjs');
|
|
13
|
+
var chunkQUAEOKDW_cjs = require('./chunk-QUAEOKDW.cjs');
|
|
14
|
+
var chunkKVSAY6NZ_cjs = require('./chunk-KVSAY6NZ.cjs');
|
|
15
|
+
require('./chunk-Y2KYR2ED.cjs');
|
|
16
16
|
require('./chunk-BUUUWQMB.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-2NE7DTOK.cjs');
|
|
18
|
+
require('./chunk-H6YM3PV6.cjs');
|
|
19
19
|
require('./chunk-BV2MWEMV.cjs');
|
|
20
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-D6POWE7E.cjs');
|
|
21
21
|
require('./chunk-GHX4P3V2.cjs');
|
|
22
|
-
require('./chunk-
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
25
|
-
var
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
28
|
-
require('./chunk-
|
|
29
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-TMKTSYDS.cjs');
|
|
23
|
+
var chunkLHSWHYF3_cjs = require('./chunk-LHSWHYF3.cjs');
|
|
24
|
+
require('./chunk-7FDKWDA2.cjs');
|
|
25
|
+
var chunk2HPNT6HH_cjs = require('./chunk-2HPNT6HH.cjs');
|
|
26
|
+
require('./chunk-FUSDYC2B.cjs');
|
|
27
|
+
require('./chunk-YJNYDJ2T.cjs');
|
|
28
|
+
require('./chunk-24SYBZPL.cjs');
|
|
29
|
+
require('./chunk-QOGNZMHD.cjs');
|
|
30
|
+
require('./chunk-YIFFF23U.cjs');
|
|
30
31
|
require('./chunk-2ZPEDVLM.cjs');
|
|
31
|
-
require('./chunk-
|
|
32
|
+
require('./chunk-RHZ6HP23.cjs');
|
|
32
33
|
require('./chunk-KRD3GQAA.cjs');
|
|
33
|
-
require('./chunk-
|
|
34
|
+
require('./chunk-RQMCOFAI.cjs');
|
|
34
35
|
require('./chunk-MUUQ2WFJ.cjs');
|
|
35
|
-
var
|
|
36
|
-
require('./chunk-
|
|
36
|
+
var chunkAA27GEYS_cjs = require('./chunk-AA27GEYS.cjs');
|
|
37
|
+
require('./chunk-YSTXFWQE.cjs');
|
|
37
38
|
require('./chunk-FRITRLZQ.cjs');
|
|
38
|
-
require('./chunk-
|
|
39
|
+
require('./chunk-QME6FDFG.cjs');
|
|
39
40
|
require('./chunk-NINIJCHU.cjs');
|
|
40
|
-
require('./chunk-
|
|
41
|
+
require('./chunk-UGRS7ZA7.cjs');
|
|
41
42
|
require('./chunk-LKFET5A3.cjs');
|
|
42
|
-
require('./chunk-
|
|
43
|
-
require('./chunk-
|
|
44
|
-
require('./chunk-
|
|
45
|
-
require('./chunk-
|
|
46
|
-
require('./chunk-
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-
|
|
43
|
+
require('./chunk-IJ7M6GOG.cjs');
|
|
44
|
+
require('./chunk-7A6535RA.cjs');
|
|
45
|
+
require('./chunk-SA6K24NB.cjs');
|
|
46
|
+
require('./chunk-I2PWY7VM.cjs');
|
|
47
|
+
require('./chunk-KTTHHYEW.cjs');
|
|
48
|
+
require('./chunk-Z3NTRKIC.cjs');
|
|
49
|
+
require('./chunk-GZV6AVRL.cjs');
|
|
49
50
|
require('./chunk-A4RAL2ER.cjs');
|
|
50
|
-
require('./chunk-
|
|
51
|
-
require('./chunk-
|
|
51
|
+
require('./chunk-DQZU7JK6.cjs');
|
|
52
|
+
require('./chunk-BJUJT5ED.cjs');
|
|
52
53
|
var chunkZF2LDKQQ_cjs = require('./chunk-ZF2LDKQQ.cjs');
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
require('./chunk-
|
|
56
|
-
require('./chunk-
|
|
57
|
-
require('./chunk-
|
|
58
|
-
require('./chunk-
|
|
54
|
+
var chunkHCT4HPCL_cjs = require('./chunk-HCT4HPCL.cjs');
|
|
55
|
+
var chunkJLRLCBJ4_cjs = require('./chunk-JLRLCBJ4.cjs');
|
|
56
|
+
require('./chunk-SYVWE64W.cjs');
|
|
57
|
+
require('./chunk-GGZ5GPE3.cjs');
|
|
58
|
+
require('./chunk-HW7SEELD.cjs');
|
|
59
|
+
var chunkATT276RD_cjs = require('./chunk-ATT276RD.cjs');
|
|
59
60
|
var chunk3EE6LVWT_cjs = require('./chunk-3EE6LVWT.cjs');
|
|
60
|
-
require('./chunk-
|
|
61
|
-
var
|
|
62
|
-
require('./chunk-
|
|
63
|
-
require('./chunk-
|
|
64
|
-
require('./chunk-
|
|
65
|
-
|
|
66
|
-
var
|
|
67
|
-
var
|
|
61
|
+
require('./chunk-ANMJJD6D.cjs');
|
|
62
|
+
var chunkQC55H6RJ_cjs = require('./chunk-QC55H6RJ.cjs');
|
|
63
|
+
require('./chunk-NVXXWAU7.cjs');
|
|
64
|
+
require('./chunk-4NLCWGH7.cjs');
|
|
65
|
+
require('./chunk-EXTRW7GW.cjs');
|
|
66
|
+
require('./chunk-HUFSABUZ.cjs');
|
|
67
|
+
var chunkJ7J7J2GN_cjs = require('./chunk-J7J7J2GN.cjs');
|
|
68
|
+
var chunk6LHQPOMI_cjs = require('./chunk-6LHQPOMI.cjs');
|
|
68
69
|
var crypto = require('crypto');
|
|
69
70
|
var zod = require('zod');
|
|
70
71
|
var promises = require('fs/promises');
|
|
@@ -73,8 +74,8 @@ var path = require('path');
|
|
|
73
74
|
// src/agent-factory.ts
|
|
74
75
|
function createAgentFactory(common) {
|
|
75
76
|
return {
|
|
76
|
-
forSession: (agentId, overrides) =>
|
|
77
|
-
getOrCreate: (agentId, overrides) =>
|
|
77
|
+
forSession: (agentId, overrides) => chunkQUAEOKDW_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
78
|
+
getOrCreate: (agentId, overrides) => chunkQUAEOKDW_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
81
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -228,21 +229,29 @@ var NAME_GRAMMAR = /^[a-z0-9][a-z0-9_-]*$/;
|
|
|
228
229
|
var registry = /* @__PURE__ */ new Map();
|
|
229
230
|
function validateBudgetName(name) {
|
|
230
231
|
if (typeof name !== "string" || name.length === 0) {
|
|
231
|
-
throw new
|
|
232
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError("Budget name must be a non-empty string", {
|
|
232
233
|
code: "invalid_budget_name"
|
|
233
234
|
});
|
|
234
235
|
}
|
|
235
236
|
if (!NAME_GRAMMAR.test(name)) {
|
|
236
|
-
throw new
|
|
237
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(
|
|
237
238
|
`Budget name "${name}" must match ^[a-z0-9][a-z0-9_-]*$ (lowercase + dash/underscore, start alphanumeric)`,
|
|
238
239
|
{ code: "invalid_budget_name" }
|
|
239
240
|
);
|
|
240
241
|
}
|
|
241
242
|
}
|
|
243
|
+
function assertImplementedScope(scope) {
|
|
244
|
+
if (scope === "process") return;
|
|
245
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(
|
|
246
|
+
`Budget scope "${scope}" is declared but not implemented \u2014 only "process" is honoured. A budget created with it would have been accounted process-wide with no warning.`,
|
|
247
|
+
{ code: "unimplemented_budget_scope" }
|
|
248
|
+
);
|
|
249
|
+
}
|
|
242
250
|
function createBudget(opts) {
|
|
243
251
|
validateBudgetName(opts.name);
|
|
252
|
+
assertImplementedScope(opts.scope);
|
|
244
253
|
if (registry.has(opts.name)) {
|
|
245
|
-
throw new
|
|
254
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(`Budget "${opts.name}" already exists`, {
|
|
246
255
|
code: "invalid_budget_name"
|
|
247
256
|
});
|
|
248
257
|
}
|
|
@@ -306,7 +315,7 @@ function preflightCheck(name, estimatedUsd) {
|
|
|
306
315
|
for (const lim of opts.limits) {
|
|
307
316
|
const currentSpent = spentIn(opts.name, lim.window);
|
|
308
317
|
if (currentSpent + estimatedUsd > lim.limitUsd) {
|
|
309
|
-
throw new
|
|
318
|
+
throw new chunkJ7J7J2GN_cjs.BudgetExceededError({
|
|
310
319
|
budgetName: opts.name,
|
|
311
320
|
window: lim.window,
|
|
312
321
|
spentUsd: currentSpent + estimatedUsd,
|
|
@@ -319,7 +328,7 @@ function preflightCheck(name, estimatedUsd) {
|
|
|
319
328
|
async function chargeAndCheckThresholds(name, actualUsd) {
|
|
320
329
|
const opts = getBudgetOptionsRaw(name);
|
|
321
330
|
if (opts === void 0) {
|
|
322
|
-
|
|
331
|
+
chunk6LHQPOMI_cjs.diag(
|
|
323
332
|
`[budget] charge for deleted budget "${name}" is a no-op (was the budget removed during in-flight send?)
|
|
324
333
|
`
|
|
325
334
|
);
|
|
@@ -362,14 +371,14 @@ async function dispatchThreshold(opts, window, spentUsd, limitUsd, threshold) {
|
|
|
362
371
|
});
|
|
363
372
|
} catch (err) {
|
|
364
373
|
const msg = err instanceof Error ? err.message : String(err);
|
|
365
|
-
|
|
374
|
+
chunk6LHQPOMI_cjs.diag(`[budget] onThreshold callback threw: ${msg}
|
|
366
375
|
`);
|
|
367
376
|
}
|
|
368
377
|
}
|
|
369
378
|
async function dispatchExceed(opts, window, spentUsd, limitUsd, mode) {
|
|
370
379
|
if (opts.onExceed === void 0) {
|
|
371
380
|
if (mode === "warn") {
|
|
372
|
-
|
|
381
|
+
chunk6LHQPOMI_cjs.diag(
|
|
373
382
|
`[budget] "${opts.name}" exceeded ${window} limit: $${spentUsd.toFixed(4)} > $${limitUsd.toFixed(4)}
|
|
374
383
|
`
|
|
375
384
|
);
|
|
@@ -386,7 +395,7 @@ async function dispatchExceed(opts, window, spentUsd, limitUsd, mode) {
|
|
|
386
395
|
});
|
|
387
396
|
} catch (err) {
|
|
388
397
|
const msg = err instanceof Error ? err.message : String(err);
|
|
389
|
-
|
|
398
|
+
chunk6LHQPOMI_cjs.diag(`[budget] onExceed callback threw: ${msg}
|
|
390
399
|
`);
|
|
391
400
|
}
|
|
392
401
|
}
|
|
@@ -535,10 +544,6 @@ var Budget = class {
|
|
|
535
544
|
};
|
|
536
545
|
|
|
537
546
|
// src/built-in-processors.ts
|
|
538
|
-
var CHARS_PER_TOKEN = 4;
|
|
539
|
-
function estimateTokens(text) {
|
|
540
|
-
return Math.ceil(text.length / CHARS_PER_TOKEN);
|
|
541
|
-
}
|
|
542
547
|
var CONTROL_CHARS = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F]/g;
|
|
543
548
|
function createUnicodeNormalizer(opts = {}) {
|
|
544
549
|
const stripControlChars = opts.stripControlChars ?? false;
|
|
@@ -557,17 +562,19 @@ function createUnicodeNormalizer(opts = {}) {
|
|
|
557
562
|
}
|
|
558
563
|
function createTokenLimiter(opts) {
|
|
559
564
|
if (!Number.isInteger(opts.limit) || opts.limit <= 0) {
|
|
560
|
-
throw new
|
|
565
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError("createTokenLimiter: `limit` must be a positive integer.", {
|
|
566
|
+
code: "invalid_processor_options"
|
|
567
|
+
});
|
|
561
568
|
}
|
|
562
569
|
const limit = opts.limit;
|
|
563
570
|
const strategy = opts.strategy ?? "truncate";
|
|
564
571
|
const cap = (text, controls) => {
|
|
565
|
-
const estimated = estimateTokens(text);
|
|
572
|
+
const estimated = chunkATT276RD_cjs.estimateTokens(text);
|
|
566
573
|
if (estimated <= limit) return text;
|
|
567
574
|
if (strategy === "block") {
|
|
568
575
|
controls.abort(`exceeds token limit ${limit} (~${estimated} estimated)`);
|
|
569
576
|
}
|
|
570
|
-
return [...text].slice(0, limit * CHARS_PER_TOKEN).join("");
|
|
577
|
+
return [...text].slice(0, limit * chunkATT276RD_cjs.CHARS_PER_TOKEN).join("");
|
|
571
578
|
};
|
|
572
579
|
return {
|
|
573
580
|
id: "token-limiter",
|
|
@@ -592,8 +599,16 @@ var UnicodeNormalizer = class {
|
|
|
592
599
|
|
|
593
600
|
// src/create-skill.ts
|
|
594
601
|
function createSkill(spec) {
|
|
595
|
-
if (!spec.name)
|
|
596
|
-
|
|
602
|
+
if (!spec.name) {
|
|
603
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSkill: `name` is required.", {
|
|
604
|
+
code: "invalid_skill_spec"
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
if (!spec.description) {
|
|
608
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSkill: `description` is required.", {
|
|
609
|
+
code: "invalid_skill_spec"
|
|
610
|
+
});
|
|
611
|
+
}
|
|
597
612
|
return {
|
|
598
613
|
name: spec.name,
|
|
599
614
|
description: spec.description,
|
|
@@ -648,8 +663,8 @@ var Provider = class _Provider {
|
|
|
648
663
|
* `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
|
|
649
664
|
*/
|
|
650
665
|
static builtins() {
|
|
651
|
-
|
|
652
|
-
return
|
|
666
|
+
chunkQC55H6RJ_cjs.registerBuiltins();
|
|
667
|
+
return chunkQC55H6RJ_cjs.listProviders().map((profile) => defineProvider(profile));
|
|
653
668
|
}
|
|
654
669
|
/**
|
|
655
670
|
* The builtin serving `modelId`, or `undefined` when none does.
|
|
@@ -689,14 +704,16 @@ function defineSkillReadTool(skills) {
|
|
|
689
704
|
const seen = /* @__PURE__ */ new Set();
|
|
690
705
|
for (const skill of skills) {
|
|
691
706
|
if (seen.has(skill.name)) {
|
|
692
|
-
throw new
|
|
707
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(`defineSkillReadTool: duplicate skill name "${skill.name}".`, {
|
|
708
|
+
code: "duplicate_skill_name"
|
|
709
|
+
});
|
|
693
710
|
}
|
|
694
711
|
seen.add(skill.name);
|
|
695
712
|
}
|
|
696
713
|
return {
|
|
697
714
|
name: "skill_read",
|
|
698
715
|
description: "Read a skill's full instructions (and any bundled reference documents) by its name. Use this to load the body of a skill listed in the <skills> block before acting on it.",
|
|
699
|
-
inputSchema:
|
|
716
|
+
inputSchema: chunkAA27GEYS_cjs.toJsonSchema(SkillReadInputSchema),
|
|
700
717
|
handler: (input) => {
|
|
701
718
|
const { name } = SkillReadInputSchema.parse(input);
|
|
702
719
|
const skill = skills.find((s) => s.name === name);
|
|
@@ -763,7 +780,7 @@ var EventBus = class {
|
|
|
763
780
|
} catch (cause) {
|
|
764
781
|
this.#handlerErrorCount += 1;
|
|
765
782
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
766
|
-
|
|
783
|
+
chunk6LHQPOMI_cjs.diag(`[theokit-sdk] event-bus: handler for "${String(event)}" threw: ${message}
|
|
767
784
|
`);
|
|
768
785
|
}
|
|
769
786
|
}
|
|
@@ -784,9 +801,9 @@ var EventBus = class {
|
|
|
784
801
|
// src/goal-loop.ts
|
|
785
802
|
function runGoalLoop(agent, goal, options, depsOverride) {
|
|
786
803
|
async function* wrap() {
|
|
787
|
-
const { runUntilImpl } = await import('./run-until-
|
|
804
|
+
const { runUntilImpl } = await import('./run-until-DG2KXWB2.cjs');
|
|
788
805
|
const deps = depsOverride ?? await (async () => {
|
|
789
|
-
const { judgeCallImpl } = await import('./judge-call-
|
|
806
|
+
const { judgeCallImpl } = await import('./judge-call-I3P4D5QR.cjs');
|
|
790
807
|
const { getAgentFacade } = await import('./agent-factory-registry-UU46BUMU.cjs');
|
|
791
808
|
const create = getAgentFacade().create;
|
|
792
809
|
return {
|
|
@@ -841,7 +858,7 @@ function definePlugin(p) {
|
|
|
841
858
|
}
|
|
842
859
|
var Plugin = { create: definePlugin };
|
|
843
860
|
|
|
844
|
-
// src/internal/runtime/memory/memory-provider-noop.ts
|
|
861
|
+
// src/internal/runtime/memory-glue/memory-provider-noop.ts
|
|
845
862
|
var NOOP_ADAPTER_ID = "noop";
|
|
846
863
|
var NOOP_CAPABILITIES = {
|
|
847
864
|
history: false,
|
|
@@ -987,7 +1004,7 @@ var JobQueue = class {
|
|
|
987
1004
|
};
|
|
988
1005
|
|
|
989
1006
|
// src/layer-fold.ts
|
|
990
|
-
var LayerOrderError = class extends
|
|
1007
|
+
var LayerOrderError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
|
|
991
1008
|
name = "LayerOrderError";
|
|
992
1009
|
};
|
|
993
1010
|
function verifyLayerOrdering(layers) {
|
|
@@ -1025,7 +1042,7 @@ function foldLayers(entries, accumulatingKeys = []) {
|
|
|
1025
1042
|
// src/internal/memory/dreaming/phases.ts
|
|
1026
1043
|
var DEFAULT_DEDUP_THRESHOLD = 0.95;
|
|
1027
1044
|
var DEFAULT_CLUSTER_THRESHOLD = 0.75;
|
|
1028
|
-
var CONSOLIDATABLE_KINDS = /* @__PURE__ */ new Set(["project"
|
|
1045
|
+
var CONSOLIDATABLE_KINDS = /* @__PURE__ */ new Set(["project"]);
|
|
1029
1046
|
var ATOMIC_KINDS = /* @__PURE__ */ new Set(["user", "feedback", "reference"]);
|
|
1030
1047
|
function dedupPolicy(fact) {
|
|
1031
1048
|
if (fact.kind === void 0) return "exact";
|
|
@@ -1161,8 +1178,8 @@ async function runInner(options) {
|
|
|
1161
1178
|
const now = options.now ?? Date.now;
|
|
1162
1179
|
const timestampMs = now();
|
|
1163
1180
|
try {
|
|
1164
|
-
const root = options.memoryRoot ??
|
|
1165
|
-
const facts = await
|
|
1181
|
+
const root = options.memoryRoot ?? chunkLHSWHYF3_cjs.resolveMemoryRoot(options.cwd);
|
|
1182
|
+
const facts = await chunkLHSWHYF3_cjs.readFactsFromMarkdown(
|
|
1166
1183
|
options.cwd,
|
|
1167
1184
|
options.memoryRoot ? { directory: options.memoryRoot } : void 0
|
|
1168
1185
|
);
|
|
@@ -1181,7 +1198,7 @@ async function runInner(options) {
|
|
|
1181
1198
|
notesWritten,
|
|
1182
1199
|
diaryEntryHash: void 0
|
|
1183
1200
|
};
|
|
1184
|
-
await
|
|
1201
|
+
await chunkV6ZY4AX6_cjs.appendDiaryEntry(root, {
|
|
1185
1202
|
timestampMs,
|
|
1186
1203
|
factsBefore: result.factsBefore,
|
|
1187
1204
|
factsAfter: result.factsAfter,
|
|
@@ -1192,7 +1209,7 @@ async function runInner(options) {
|
|
|
1192
1209
|
return result;
|
|
1193
1210
|
} catch (cause) {
|
|
1194
1211
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
1195
|
-
|
|
1212
|
+
chunk6LHQPOMI_cjs.diag(`[theokit-sdk] dreaming sweep failed: ${message}
|
|
1196
1213
|
`);
|
|
1197
1214
|
return emptyResult("error");
|
|
1198
1215
|
}
|
|
@@ -1204,7 +1221,7 @@ async function writeConsolidatedNotes(root, clusters, timestampMs) {
|
|
|
1204
1221
|
const isoSlug = new Date(timestampMs).toISOString().replace(/[^\dT]/g, "-");
|
|
1205
1222
|
const file = path.join(notesDir, `dreamed-${isoSlug}.md`);
|
|
1206
1223
|
const body = deepPhase(clusters, timestampMs);
|
|
1207
|
-
await
|
|
1224
|
+
await chunkJLRLCBJ4_cjs.replaceFileAtomic(file, body);
|
|
1208
1225
|
return 1;
|
|
1209
1226
|
}
|
|
1210
1227
|
function emptyResult(status) {
|
|
@@ -1221,20 +1238,30 @@ function emptyResult(status) {
|
|
|
1221
1238
|
|
|
1222
1239
|
// src/internal/memory/sdk-memory-peer-loader.ts
|
|
1223
1240
|
var cachedAttempt;
|
|
1241
|
+
async function loadPeer() {
|
|
1242
|
+
try {
|
|
1243
|
+
const spec = "@theokit/sdk-memory";
|
|
1244
|
+
const mod = await import(spec);
|
|
1245
|
+
if (hasExpectedSurface(mod)) return mod;
|
|
1246
|
+
chunk6LHQPOMI_cjs.diag(
|
|
1247
|
+
"sdk-memory peer loaded but does not expose the expected surface (runDreamingSweep / MEMORY_EMBEDDING_ADAPTERS / IndexManager / migrateSqliteToLance) \u2014 falling back to the legacy memory path"
|
|
1248
|
+
);
|
|
1249
|
+
return null;
|
|
1250
|
+
} catch (err) {
|
|
1251
|
+
if (err?.code !== "ERR_MODULE_NOT_FOUND") {
|
|
1252
|
+
chunk6LHQPOMI_cjs.diag(
|
|
1253
|
+
`sdk-memory peer is installed but failed to load \u2014 falling back to the legacy memory path: ${err instanceof Error ? err.message : String(err)}`
|
|
1254
|
+
);
|
|
1255
|
+
}
|
|
1256
|
+
return null;
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
function hasExpectedSurface(mod) {
|
|
1260
|
+
return typeof mod.runDreamingSweep === "function" && mod.MEMORY_EMBEDDING_ADAPTERS !== void 0 && mod.IndexManager !== void 0 && typeof mod.migrateSqliteToLance === "function";
|
|
1261
|
+
}
|
|
1224
1262
|
function tryLoadSdkMemoryPeer() {
|
|
1225
1263
|
if (cachedAttempt !== void 0) return cachedAttempt;
|
|
1226
|
-
cachedAttempt = (
|
|
1227
|
-
try {
|
|
1228
|
-
const spec = "@theokit/sdk-memory";
|
|
1229
|
-
const mod = await import(spec);
|
|
1230
|
-
if (typeof mod.runDreamingSweep === "function" && mod.MEMORY_EMBEDDING_ADAPTERS !== void 0 && mod.IndexManager !== void 0 && typeof mod.migrateSqliteToLance === "function") {
|
|
1231
|
-
return mod;
|
|
1232
|
-
}
|
|
1233
|
-
return null;
|
|
1234
|
-
} catch {
|
|
1235
|
-
return null;
|
|
1236
|
-
}
|
|
1237
|
-
})();
|
|
1264
|
+
cachedAttempt = loadPeer();
|
|
1238
1265
|
return cachedAttempt;
|
|
1239
1266
|
}
|
|
1240
1267
|
|
|
@@ -1265,8 +1292,8 @@ var Memory = {
|
|
|
1265
1292
|
openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
|
|
1266
1293
|
return await peer.IndexManager.open(openArgs);
|
|
1267
1294
|
}
|
|
1268
|
-
const { IndexManager } = await import('./index-manager-
|
|
1269
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1295
|
+
const { IndexManager } = await import('./index-manager-DXR2RSFI.cjs');
|
|
1296
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkQUAEOKDW_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1270
1297
|
return await IndexManager.open(openArgs);
|
|
1271
1298
|
},
|
|
1272
1299
|
/**
|
|
@@ -1277,7 +1304,7 @@ var Memory = {
|
|
|
1277
1304
|
*/
|
|
1278
1305
|
async runDreamingSweep(opts) {
|
|
1279
1306
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1280
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1307
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkQUAEOKDW_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1281
1308
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1282
1309
|
const result = peer !== null ? (
|
|
1283
1310
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -1311,7 +1338,7 @@ async function buildDreamingSweepArgs(opts, catalog) {
|
|
|
1311
1338
|
const runtime = await resolveEmbedding(opts.embedding, catalog);
|
|
1312
1339
|
return {
|
|
1313
1340
|
cwd: opts.cwd,
|
|
1314
|
-
memoryRoot:
|
|
1341
|
+
memoryRoot: chunkLHSWHYF3_cjs.resolveMemoryRoot(opts.cwd, { directory: opts.directory }),
|
|
1315
1342
|
embedding: runtime,
|
|
1316
1343
|
...opts.dedupThreshold !== void 0 ? { dedupThreshold: opts.dedupThreshold } : {},
|
|
1317
1344
|
...opts.clusterThreshold !== void 0 ? { clusterThreshold: opts.clusterThreshold } : {}
|
|
@@ -1336,7 +1363,7 @@ function extractRawId(id, expectedAdapterId) {
|
|
|
1336
1363
|
const prefix = `${expectedAdapterId}:`;
|
|
1337
1364
|
if (!id.startsWith(prefix)) {
|
|
1338
1365
|
const sourcePrefix = id.split(":", 1)[0] ?? "<malformed>";
|
|
1339
|
-
throw new
|
|
1366
|
+
throw new chunkJ7J7J2GN_cjs.MemoryAdapterError(
|
|
1340
1367
|
`MemoryId belongs to a different adapter (expected "${expectedAdapterId}", got "${sourcePrefix}")`,
|
|
1341
1368
|
{ adapterId: expectedAdapterId, code: "invalid_input" }
|
|
1342
1369
|
);
|
|
@@ -1350,7 +1377,7 @@ async function migrateSqliteToLance2(options) {
|
|
|
1350
1377
|
if (peer !== null) {
|
|
1351
1378
|
return peer.migrateSqliteToLance(options);
|
|
1352
1379
|
}
|
|
1353
|
-
return
|
|
1380
|
+
return chunkV6ZY4AX6_cjs.migrateSqliteToLance(options);
|
|
1354
1381
|
}
|
|
1355
1382
|
|
|
1356
1383
|
// src/permission-engine.ts
|
|
@@ -1483,7 +1510,7 @@ function loadProjectEnv(env = process.env, load = typeof process.loadEnvFile ===
|
|
|
1483
1510
|
}
|
|
1484
1511
|
|
|
1485
1512
|
// src/reap-plan.ts
|
|
1486
|
-
var RetentionPolicyError = class extends
|
|
1513
|
+
var RetentionPolicyError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
|
|
1487
1514
|
name = "RetentionPolicyError";
|
|
1488
1515
|
};
|
|
1489
1516
|
function assertPolicy(retention) {
|
|
@@ -1556,29 +1583,33 @@ function isValibotSchema(s) {
|
|
|
1556
1583
|
const o = s;
|
|
1557
1584
|
return o.kind === "schema" && "type" in o && typeof o.toJsonSchema !== "function";
|
|
1558
1585
|
}
|
|
1586
|
+
function isMissingModuleError(err) {
|
|
1587
|
+
if (err?.code === "ERR_MODULE_NOT_FOUND") return true;
|
|
1588
|
+
return err instanceof Error && /Cannot find|Cannot resolve|ERR_MODULE_NOT_FOUND/.test(err.message);
|
|
1589
|
+
}
|
|
1590
|
+
async function normalizeValibotSchema(schema) {
|
|
1591
|
+
const specifier = "@valibot/to-json-schema";
|
|
1592
|
+
try {
|
|
1593
|
+
const mod = await import(specifier);
|
|
1594
|
+
return mod.toJsonSchema(schema);
|
|
1595
|
+
} catch (err) {
|
|
1596
|
+
if (!isMissingModuleError(err)) throw err;
|
|
1597
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(
|
|
1598
|
+
"normalizeSchema: a Valibot schema requires the optional '@valibot/to-json-schema' package. Install it, or use a Zod schema (the default recommendation).",
|
|
1599
|
+
{ code: "valibot_converter_missing" }
|
|
1600
|
+
);
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1559
1603
|
async function normalizeSchema(schema) {
|
|
1560
1604
|
if (isJsonSchemaObject(schema)) return schema;
|
|
1561
|
-
if (isValibotSchema(schema))
|
|
1562
|
-
const specifier = "@valibot/to-json-schema";
|
|
1563
|
-
try {
|
|
1564
|
-
const mod = await import(specifier);
|
|
1565
|
-
return mod.toJsonSchema(schema);
|
|
1566
|
-
} catch (err) {
|
|
1567
|
-
const missing = err instanceof Error && /Cannot find|Cannot resolve|ERR_MODULE_NOT_FOUND/.test(err.message);
|
|
1568
|
-
if (missing) {
|
|
1569
|
-
throw new Error(
|
|
1570
|
-
"normalizeSchema: a Valibot schema requires the optional '@valibot/to-json-schema' package. Install it, or use a Zod schema (the default recommendation)."
|
|
1571
|
-
);
|
|
1572
|
-
}
|
|
1573
|
-
throw err;
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1605
|
+
if (isValibotSchema(schema)) return await normalizeValibotSchema(schema);
|
|
1576
1606
|
if (isZodSchema(schema)) {
|
|
1577
|
-
return
|
|
1607
|
+
return chunkAA27GEYS_cjs.toJsonSchema(schema, { unrepresentable: "any" });
|
|
1578
1608
|
}
|
|
1579
1609
|
if (hasToJsonSchemaMethod(schema)) return schema.toJsonSchema();
|
|
1580
|
-
throw new
|
|
1581
|
-
"normalizeSchema: unsupported schema. Supported: Zod (default), JSON Schema, ArkType (.toJsonSchema()), Valibot (with @valibot/to-json-schema)."
|
|
1610
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(
|
|
1611
|
+
"normalizeSchema: unsupported schema. Supported: Zod (default), JSON Schema, ArkType (.toJsonSchema()), Valibot (with @valibot/to-json-schema).",
|
|
1612
|
+
{ code: "unsupported_schema" }
|
|
1582
1613
|
);
|
|
1583
1614
|
}
|
|
1584
1615
|
|
|
@@ -1607,7 +1638,7 @@ var Security = class {
|
|
|
1607
1638
|
* // → "[bot] received: please remember sk-abc...xyz1"
|
|
1608
1639
|
*/
|
|
1609
1640
|
static redact(text, opts) {
|
|
1610
|
-
return
|
|
1641
|
+
return chunk6LHQPOMI_cjs.redactSecrets(text, opts);
|
|
1611
1642
|
}
|
|
1612
1643
|
/**
|
|
1613
1644
|
* Register a custom redaction pattern. Additive — built-in patterns
|
|
@@ -1629,7 +1660,13 @@ var Security = class {
|
|
|
1629
1660
|
* // → text containing "MYORG-AAAA...AAAA" now masks like a builtin.
|
|
1630
1661
|
*/
|
|
1631
1662
|
static addPattern(re) {
|
|
1632
|
-
|
|
1663
|
+
if (!re.global) {
|
|
1664
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(
|
|
1665
|
+
"Security.addPattern: regex must have /g flag for replace-all semantics",
|
|
1666
|
+
{ code: "invalid_redaction_pattern" }
|
|
1667
|
+
);
|
|
1668
|
+
}
|
|
1669
|
+
chunk6LHQPOMI_cjs.addPattern(re);
|
|
1633
1670
|
}
|
|
1634
1671
|
};
|
|
1635
1672
|
|
|
@@ -1667,7 +1704,7 @@ function applySecurityFloor(input) {
|
|
|
1667
1704
|
}
|
|
1668
1705
|
|
|
1669
1706
|
// src/session-guard.ts
|
|
1670
|
-
var LiveSessionError = class extends
|
|
1707
|
+
var LiveSessionError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
|
|
1671
1708
|
name = "LiveSessionError";
|
|
1672
1709
|
sessionId;
|
|
1673
1710
|
reason;
|
|
@@ -1701,7 +1738,7 @@ function isBuiltAgent(m) {
|
|
|
1701
1738
|
return typeof m.send === "function";
|
|
1702
1739
|
}
|
|
1703
1740
|
async function materialize(def, index) {
|
|
1704
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1741
|
+
const { Agent: Agent2 } = await import('./agent-GPV2JWZG.cjs');
|
|
1705
1742
|
return Agent2.create({
|
|
1706
1743
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1707
1744
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
|
@@ -1715,12 +1752,12 @@ async function materialize(def, index) {
|
|
|
1715
1752
|
function createSquad(options) {
|
|
1716
1753
|
const { agents } = options;
|
|
1717
1754
|
if (!Array.isArray(agents) || agents.length === 0) {
|
|
1718
|
-
throw new
|
|
1755
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSquad requires a non-empty `agents` array", {
|
|
1719
1756
|
code: "invalid_squad"
|
|
1720
1757
|
});
|
|
1721
1758
|
}
|
|
1722
1759
|
if (options.process !== void 0 && options.process !== "sequential") {
|
|
1723
|
-
throw new
|
|
1760
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(
|
|
1724
1761
|
`createSquad only supports process "sequential"; for manager\u2192worker delegation use subagents or @theokit/sdk-handoff`,
|
|
1725
1762
|
{ code: "squad_process_unsupported" }
|
|
1726
1763
|
);
|
|
@@ -1732,14 +1769,14 @@ function createSquad(options) {
|
|
|
1732
1769
|
}
|
|
1733
1770
|
};
|
|
1734
1771
|
}
|
|
1735
|
-
async function buildPipeline(agents,
|
|
1736
|
-
let builder =
|
|
1772
|
+
async function buildPipeline(agents, name) {
|
|
1773
|
+
let builder = chunk4HS6FFGL_cjs.Workflow.create({ name: name ?? "squad" });
|
|
1737
1774
|
for (let i = 0; i < agents.length; i++) {
|
|
1738
1775
|
const member = agents[i];
|
|
1739
1776
|
if (member === void 0) continue;
|
|
1740
1777
|
const agent = isBuiltAgent(member) ? member : await materialize(member, i);
|
|
1741
1778
|
const opts = i > 0 ? { origin: { kind: "peer", from: `agent-${i - 1}` } } : void 0;
|
|
1742
|
-
builder = builder.then(
|
|
1779
|
+
builder = builder.then(chunk4HS6FFGL_cjs.agentStep(`agent-${i}`, agent, (prev) => String(prev), opts));
|
|
1743
1780
|
}
|
|
1744
1781
|
return builder.commit();
|
|
1745
1782
|
}
|
|
@@ -1763,7 +1800,7 @@ var Task = class {
|
|
|
1763
1800
|
* (D369), and retention (D373).
|
|
1764
1801
|
*/
|
|
1765
1802
|
static configure(opts) {
|
|
1766
|
-
|
|
1803
|
+
chunkKVSAY6NZ_cjs.configure(opts);
|
|
1767
1804
|
}
|
|
1768
1805
|
/**
|
|
1769
1806
|
* Submit a unit of asynchronous work to the registry.
|
|
@@ -1788,7 +1825,7 @@ var Task = class {
|
|
|
1788
1825
|
* a semaphore slot and without invoking `work`.
|
|
1789
1826
|
*/
|
|
1790
1827
|
static async submit(kind, work, options = {}) {
|
|
1791
|
-
return
|
|
1828
|
+
return chunkKVSAY6NZ_cjs.submit({
|
|
1792
1829
|
kind,
|
|
1793
1830
|
work,
|
|
1794
1831
|
...options.id !== void 0 ? { id: options.id } : {},
|
|
@@ -1799,11 +1836,11 @@ var Task = class {
|
|
|
1799
1836
|
}
|
|
1800
1837
|
/** Returns matching handles, capped at `filter.limit ?? 100`. */
|
|
1801
1838
|
static list(filter = {}) {
|
|
1802
|
-
return
|
|
1839
|
+
return chunkKVSAY6NZ_cjs.list(filter);
|
|
1803
1840
|
}
|
|
1804
1841
|
/** Returns a single handle by id, or `undefined` if unknown / evicted. */
|
|
1805
1842
|
static get(id) {
|
|
1806
|
-
return
|
|
1843
|
+
return chunkKVSAY6NZ_cjs.get(id);
|
|
1807
1844
|
}
|
|
1808
1845
|
/**
|
|
1809
1846
|
* Idempotent cancel (D365). Returns:
|
|
@@ -1816,7 +1853,7 @@ var Task = class {
|
|
|
1816
1853
|
* Never throws.
|
|
1817
1854
|
*/
|
|
1818
1855
|
static cancel(id, reason) {
|
|
1819
|
-
return
|
|
1856
|
+
return chunkKVSAY6NZ_cjs.cancel(id, reason);
|
|
1820
1857
|
}
|
|
1821
1858
|
/**
|
|
1822
1859
|
* Subscribe to a task's event stream. The returned `AsyncIterable<TaskEvent>`
|
|
@@ -1830,7 +1867,7 @@ var Task = class {
|
|
|
1830
1867
|
* Throws `TaskNotFoundError` if the id is unknown or has been evicted.
|
|
1831
1868
|
*/
|
|
1832
1869
|
static subscribe(id) {
|
|
1833
|
-
return
|
|
1870
|
+
return chunkKVSAY6NZ_cjs.subscribe(id);
|
|
1834
1871
|
}
|
|
1835
1872
|
};
|
|
1836
1873
|
|
|
@@ -1843,7 +1880,7 @@ var FIXTURE_USER = {
|
|
|
1843
1880
|
};
|
|
1844
1881
|
var FIXTURE_MODELS = [
|
|
1845
1882
|
{
|
|
1846
|
-
id:
|
|
1883
|
+
id: chunkQUAEOKDW_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
1847
1884
|
name: "Gemini 2.0 Flash",
|
|
1848
1885
|
displayName: "Gemini 2.0 Flash",
|
|
1849
1886
|
parameters: [
|
|
@@ -1919,20 +1956,20 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
1919
1956
|
try {
|
|
1920
1957
|
response = await fetch(url, { method: "GET" });
|
|
1921
1958
|
} catch (fetchErr) {
|
|
1922
|
-
const mapped =
|
|
1959
|
+
const mapped = chunk2HPNT6HH_cjs.mapOllamaTransportError({
|
|
1923
1960
|
providerId: "ollama",
|
|
1924
1961
|
cause: fetchErr,
|
|
1925
1962
|
endpoint: "/v1/models"
|
|
1926
1963
|
});
|
|
1927
1964
|
if (mapped !== void 0) throw mapped;
|
|
1928
|
-
throw new
|
|
1965
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(
|
|
1929
1966
|
`Failed to reach local provider at ${baseUrl}: ${fetchErr.message}`,
|
|
1930
1967
|
{ code: "local_provider_unreachable" }
|
|
1931
1968
|
);
|
|
1932
1969
|
}
|
|
1933
1970
|
if (!response.ok) {
|
|
1934
|
-
const body = await
|
|
1935
|
-
const mapped =
|
|
1971
|
+
const body = await chunk2HPNT6HH_cjs.readErrorResponseBody(response);
|
|
1972
|
+
const mapped = chunk2HPNT6HH_cjs.mapOllamaHttpError({
|
|
1936
1973
|
providerId: "ollama",
|
|
1937
1974
|
status: response.status,
|
|
1938
1975
|
body,
|
|
@@ -1940,7 +1977,7 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
1940
1977
|
endpoint: "/v1/models"
|
|
1941
1978
|
});
|
|
1942
1979
|
if (mapped !== void 0) throw mapped;
|
|
1943
|
-
throw new
|
|
1980
|
+
throw new chunkJ7J7J2GN_cjs.ConfigurationError(
|
|
1944
1981
|
`Local provider at ${baseUrl} returned HTTP ${response.status} on /v1/models`,
|
|
1945
1982
|
{ code: "local_provider_http_error" }
|
|
1946
1983
|
);
|
|
@@ -1995,9 +2032,9 @@ var Theokit = class {
|
|
|
1995
2032
|
});
|
|
1996
2033
|
},
|
|
1997
2034
|
capabilities: (providerOrModelId) => {
|
|
1998
|
-
|
|
2035
|
+
chunkQC55H6RJ_cjs.registerBuiltins();
|
|
1999
2036
|
const providerId = providerOrModelId.includes("/") ? providerOrModelId.split("/")[0] ?? providerOrModelId : providerOrModelId;
|
|
2000
|
-
return
|
|
2037
|
+
return chunkQC55H6RJ_cjs.getCatalogCapabilities(providerId);
|
|
2001
2038
|
}
|
|
2002
2039
|
};
|
|
2003
2040
|
/**
|
|
@@ -2036,8 +2073,8 @@ var Theokit = class {
|
|
|
2036
2073
|
*/
|
|
2037
2074
|
static inspect = {
|
|
2038
2075
|
builtinProviders: () => {
|
|
2039
|
-
|
|
2040
|
-
return
|
|
2076
|
+
chunkQC55H6RJ_cjs.registerBuiltins();
|
|
2077
|
+
return chunkQC55H6RJ_cjs.listProviders().map((p) => ({
|
|
2041
2078
|
name: p.name,
|
|
2042
2079
|
apiMode: p.apiMode,
|
|
2043
2080
|
authType: p.authType,
|
|
@@ -2046,7 +2083,7 @@ var Theokit = class {
|
|
|
2046
2083
|
envVars: p.envVars
|
|
2047
2084
|
}));
|
|
2048
2085
|
},
|
|
2049
|
-
embeddingAdapters: () => Object.entries(
|
|
2086
|
+
embeddingAdapters: () => Object.entries(chunkQUAEOKDW_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
2050
2087
|
id,
|
|
2051
2088
|
transport: adapter.transport,
|
|
2052
2089
|
defaultModel: adapter.defaultModel
|
|
@@ -2063,9 +2100,9 @@ var Theokit = class {
|
|
|
2063
2100
|
// and may be promoted onto Theokit once the agent.ts cycle is broken.
|
|
2064
2101
|
};
|
|
2065
2102
|
async function maybeListLocalModels(providerName) {
|
|
2066
|
-
|
|
2067
|
-
await
|
|
2068
|
-
const profile =
|
|
2103
|
+
chunkQC55H6RJ_cjs.registerBuiltins();
|
|
2104
|
+
await chunk2HPNT6HH_cjs.discoverProviderPlugins();
|
|
2105
|
+
const profile = chunkQC55H6RJ_cjs.getProviderProfile(providerName);
|
|
2069
2106
|
if (profile === void 0) return void 0;
|
|
2070
2107
|
if (profile.authType !== "none") return void 0;
|
|
2071
2108
|
const baseUrl = resolveLocalProviderBaseUrl(profile.name, profile.baseUrl);
|
|
@@ -2078,17 +2115,17 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
|
|
|
2078
2115
|
return fallback;
|
|
2079
2116
|
}
|
|
2080
2117
|
async function executeCatalogRequest(request) {
|
|
2081
|
-
const apiKey =
|
|
2118
|
+
const apiKey = chunk6LHQPOMI_cjs.resolveApiKey(request.apiKey);
|
|
2082
2119
|
if (apiKey === void 0) {
|
|
2083
|
-
throw new
|
|
2120
|
+
throw new chunkJ7J7J2GN_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
|
|
2084
2121
|
}
|
|
2085
|
-
if (
|
|
2122
|
+
if (chunk2HPNT6HH_cjs.shouldUseFixtureMode(apiKey)) {
|
|
2086
2123
|
return request.fixture;
|
|
2087
2124
|
}
|
|
2088
|
-
if (!
|
|
2089
|
-
throw new
|
|
2125
|
+
if (!chunk2HPNT6HH_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
|
|
2126
|
+
throw new chunkJ7J7J2GN_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
|
|
2090
2127
|
}
|
|
2091
|
-
return
|
|
2128
|
+
return chunk2HPNT6HH_cjs.httpRequest(request.path, { apiKey });
|
|
2092
2129
|
}
|
|
2093
2130
|
|
|
2094
2131
|
// src/tool-blast-radius.ts
|
|
@@ -2213,7 +2250,7 @@ function resolveTrustPosture(input) {
|
|
|
2213
2250
|
}
|
|
2214
2251
|
|
|
2215
2252
|
// src/wiring-record.ts
|
|
2216
|
-
var UngatedCapabilityError = class extends
|
|
2253
|
+
var UngatedCapabilityError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
|
|
2217
2254
|
name = "UngatedCapabilityError";
|
|
2218
2255
|
};
|
|
2219
2256
|
function recordWiring(input) {
|
|
@@ -2237,7 +2274,7 @@ function recordWiring(input) {
|
|
|
2237
2274
|
|
|
2238
2275
|
Object.defineProperty(exports, "StreamObjectError", {
|
|
2239
2276
|
enumerable: true,
|
|
2240
|
-
get: function () { return
|
|
2277
|
+
get: function () { return chunkTFG5IBZS_cjs.StreamObjectError; }
|
|
2241
2278
|
});
|
|
2242
2279
|
Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
|
|
2243
2280
|
enumerable: true,
|
|
@@ -2245,59 +2282,59 @@ Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
|
|
|
2245
2282
|
});
|
|
2246
2283
|
Object.defineProperty(exports, "JudgeCredentialError", {
|
|
2247
2284
|
enumerable: true,
|
|
2248
|
-
get: function () { return
|
|
2285
|
+
get: function () { return chunkDRL7URI4_cjs.JudgeCredentialError; }
|
|
2249
2286
|
});
|
|
2250
2287
|
Object.defineProperty(exports, "GenerateObjectError", {
|
|
2251
2288
|
enumerable: true,
|
|
2252
|
-
get: function () { return
|
|
2289
|
+
get: function () { return chunkQWD4RDZ3_cjs.GenerateObjectError; }
|
|
2253
2290
|
});
|
|
2254
2291
|
Object.defineProperty(exports, "Workflow", {
|
|
2255
2292
|
enumerable: true,
|
|
2256
|
-
get: function () { return
|
|
2293
|
+
get: function () { return chunk4HS6FFGL_cjs.Workflow; }
|
|
2257
2294
|
});
|
|
2258
2295
|
Object.defineProperty(exports, "agentStep", {
|
|
2259
2296
|
enumerable: true,
|
|
2260
|
-
get: function () { return
|
|
2297
|
+
get: function () { return chunk4HS6FFGL_cjs.agentStep; }
|
|
2261
2298
|
});
|
|
2262
2299
|
Object.defineProperty(exports, "fn", {
|
|
2263
2300
|
enumerable: true,
|
|
2264
|
-
get: function () { return
|
|
2301
|
+
get: function () { return chunk4HS6FFGL_cjs.fn; }
|
|
2265
2302
|
});
|
|
2266
2303
|
Object.defineProperty(exports, "Cron", {
|
|
2267
2304
|
enumerable: true,
|
|
2268
|
-
get: function () { return
|
|
2305
|
+
get: function () { return chunkVXDEKILY_cjs.Cron; }
|
|
2269
2306
|
});
|
|
2270
2307
|
Object.defineProperty(exports, "Agent", {
|
|
2271
2308
|
enumerable: true,
|
|
2272
|
-
get: function () { return
|
|
2309
|
+
get: function () { return chunkQUAEOKDW_cjs.Agent; }
|
|
2273
2310
|
});
|
|
2274
2311
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2275
2312
|
enumerable: true,
|
|
2276
|
-
get: function () { return
|
|
2313
|
+
get: function () { return chunkQUAEOKDW_cjs.AgentBuilder; }
|
|
2277
2314
|
});
|
|
2278
2315
|
Object.defineProperty(exports, "Tool", {
|
|
2279
2316
|
enumerable: true,
|
|
2280
|
-
get: function () { return
|
|
2317
|
+
get: function () { return chunkQUAEOKDW_cjs.Tool; }
|
|
2281
2318
|
});
|
|
2282
2319
|
Object.defineProperty(exports, "ToolError", {
|
|
2283
2320
|
enumerable: true,
|
|
2284
|
-
get: function () { return
|
|
2321
|
+
get: function () { return chunkQUAEOKDW_cjs.ToolError; }
|
|
2285
2322
|
});
|
|
2286
2323
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2287
2324
|
enumerable: true,
|
|
2288
|
-
get: function () { return
|
|
2325
|
+
get: function () { return chunkQUAEOKDW_cjs.UsageAccumulator; }
|
|
2289
2326
|
});
|
|
2290
2327
|
Object.defineProperty(exports, "computeCost", {
|
|
2291
2328
|
enumerable: true,
|
|
2292
|
-
get: function () { return
|
|
2329
|
+
get: function () { return chunkQUAEOKDW_cjs.computeCost; }
|
|
2293
2330
|
});
|
|
2294
2331
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2295
2332
|
enumerable: true,
|
|
2296
|
-
get: function () { return
|
|
2333
|
+
get: function () { return chunkQUAEOKDW_cjs.getPricingEntry; }
|
|
2297
2334
|
});
|
|
2298
2335
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2299
2336
|
enumerable: true,
|
|
2300
|
-
get: function () { return
|
|
2337
|
+
get: function () { return chunkKVSAY6NZ_cjs.emitRunEvent; }
|
|
2301
2338
|
});
|
|
2302
2339
|
Object.defineProperty(exports, "withCwdMutex", {
|
|
2303
2340
|
enumerable: true,
|
|
@@ -2305,83 +2342,87 @@ Object.defineProperty(exports, "withCwdMutex", {
|
|
|
2305
2342
|
});
|
|
2306
2343
|
Object.defineProperty(exports, "TASK_RESERVED_PREFIXES", {
|
|
2307
2344
|
enumerable: true,
|
|
2308
|
-
get: function () { return
|
|
2345
|
+
get: function () { return chunkHCT4HPCL_cjs.TASK_RESERVED_PREFIXES; }
|
|
2309
2346
|
});
|
|
2310
2347
|
Object.defineProperty(exports, "isValidTaskId", {
|
|
2311
2348
|
enumerable: true,
|
|
2312
|
-
get: function () { return
|
|
2349
|
+
get: function () { return chunkHCT4HPCL_cjs.isValidTaskId; }
|
|
2350
|
+
});
|
|
2351
|
+
Object.defineProperty(exports, "estimateTokens", {
|
|
2352
|
+
enumerable: true,
|
|
2353
|
+
get: function () { return chunkATT276RD_cjs.estimateTokens; }
|
|
2313
2354
|
});
|
|
2314
2355
|
Object.defineProperty(exports, "AgentDisposedError", {
|
|
2315
2356
|
enumerable: true,
|
|
2316
|
-
get: function () { return
|
|
2357
|
+
get: function () { return chunkJ7J7J2GN_cjs.AgentDisposedError; }
|
|
2317
2358
|
});
|
|
2318
2359
|
Object.defineProperty(exports, "AgentRunError", {
|
|
2319
2360
|
enumerable: true,
|
|
2320
|
-
get: function () { return
|
|
2361
|
+
get: function () { return chunkJ7J7J2GN_cjs.AgentRunError; }
|
|
2321
2362
|
});
|
|
2322
2363
|
Object.defineProperty(exports, "AuthenticationError", {
|
|
2323
2364
|
enumerable: true,
|
|
2324
|
-
get: function () { return
|
|
2365
|
+
get: function () { return chunkJ7J7J2GN_cjs.AuthenticationError; }
|
|
2325
2366
|
});
|
|
2326
2367
|
Object.defineProperty(exports, "BudgetExceededError", {
|
|
2327
2368
|
enumerable: true,
|
|
2328
|
-
get: function () { return
|
|
2369
|
+
get: function () { return chunkJ7J7J2GN_cjs.BudgetExceededError; }
|
|
2329
2370
|
});
|
|
2330
2371
|
Object.defineProperty(exports, "ConfigurationError", {
|
|
2331
2372
|
enumerable: true,
|
|
2332
|
-
get: function () { return
|
|
2373
|
+
get: function () { return chunkJ7J7J2GN_cjs.ConfigurationError; }
|
|
2333
2374
|
});
|
|
2334
2375
|
Object.defineProperty(exports, "IntegrationNotConnectedError", {
|
|
2335
2376
|
enumerable: true,
|
|
2336
|
-
get: function () { return
|
|
2377
|
+
get: function () { return chunkJ7J7J2GN_cjs.IntegrationNotConnectedError; }
|
|
2337
2378
|
});
|
|
2338
2379
|
Object.defineProperty(exports, "InvalidTaskIdError", {
|
|
2339
2380
|
enumerable: true,
|
|
2340
|
-
get: function () { return
|
|
2381
|
+
get: function () { return chunkJ7J7J2GN_cjs.InvalidTaskIdError; }
|
|
2341
2382
|
});
|
|
2342
2383
|
Object.defineProperty(exports, "MemoryAdapterError", {
|
|
2343
2384
|
enumerable: true,
|
|
2344
|
-
get: function () { return
|
|
2385
|
+
get: function () { return chunkJ7J7J2GN_cjs.MemoryAdapterError; }
|
|
2345
2386
|
});
|
|
2346
2387
|
Object.defineProperty(exports, "NetworkError", {
|
|
2347
2388
|
enumerable: true,
|
|
2348
|
-
get: function () { return
|
|
2389
|
+
get: function () { return chunkJ7J7J2GN_cjs.NetworkError; }
|
|
2349
2390
|
});
|
|
2350
2391
|
Object.defineProperty(exports, "RateLimitError", {
|
|
2351
2392
|
enumerable: true,
|
|
2352
|
-
get: function () { return
|
|
2393
|
+
get: function () { return chunkJ7J7J2GN_cjs.RateLimitError; }
|
|
2353
2394
|
});
|
|
2354
2395
|
Object.defineProperty(exports, "TaskNotFoundError", {
|
|
2355
2396
|
enumerable: true,
|
|
2356
|
-
get: function () { return
|
|
2397
|
+
get: function () { return chunkJ7J7J2GN_cjs.TaskNotFoundError; }
|
|
2357
2398
|
});
|
|
2358
2399
|
Object.defineProperty(exports, "TheokitAgentError", {
|
|
2359
2400
|
enumerable: true,
|
|
2360
|
-
get: function () { return
|
|
2401
|
+
get: function () { return chunkJ7J7J2GN_cjs.TheokitAgentError; }
|
|
2361
2402
|
});
|
|
2362
2403
|
Object.defineProperty(exports, "UnknownAgentError", {
|
|
2363
2404
|
enumerable: true,
|
|
2364
|
-
get: function () { return
|
|
2405
|
+
get: function () { return chunkJ7J7J2GN_cjs.UnknownAgentError; }
|
|
2365
2406
|
});
|
|
2366
2407
|
Object.defineProperty(exports, "UnsupportedBudgetOperationError", {
|
|
2367
2408
|
enumerable: true,
|
|
2368
|
-
get: function () { return
|
|
2409
|
+
get: function () { return chunkJ7J7J2GN_cjs.UnsupportedBudgetOperationError; }
|
|
2369
2410
|
});
|
|
2370
2411
|
Object.defineProperty(exports, "UnsupportedRunOperationError", {
|
|
2371
2412
|
enumerable: true,
|
|
2372
|
-
get: function () { return
|
|
2413
|
+
get: function () { return chunkJ7J7J2GN_cjs.UnsupportedRunOperationError; }
|
|
2373
2414
|
});
|
|
2374
2415
|
Object.defineProperty(exports, "UnsupportedTaskOperationError", {
|
|
2375
2416
|
enumerable: true,
|
|
2376
|
-
get: function () { return
|
|
2417
|
+
get: function () { return chunkJ7J7J2GN_cjs.UnsupportedTaskOperationError; }
|
|
2377
2418
|
});
|
|
2378
2419
|
Object.defineProperty(exports, "isTransientError", {
|
|
2379
2420
|
enumerable: true,
|
|
2380
|
-
get: function () { return
|
|
2421
|
+
get: function () { return chunkJ7J7J2GN_cjs.isTransientError; }
|
|
2381
2422
|
});
|
|
2382
2423
|
Object.defineProperty(exports, "setDiagnosticsSink", {
|
|
2383
2424
|
enumerable: true,
|
|
2384
|
-
get: function () { return
|
|
2425
|
+
get: function () { return chunk6LHQPOMI_cjs.setDiagnosticsSink; }
|
|
2385
2426
|
});
|
|
2386
2427
|
exports.AgentFactory = AgentFactory;
|
|
2387
2428
|
exports.Budget = Budget;
|
|
@@ -2414,7 +2455,6 @@ exports.createCounterBudgetTracker = createCounterBudgetTracker;
|
|
|
2414
2455
|
exports.decideApproval = decideApproval;
|
|
2415
2456
|
exports.describeAction = describeAction;
|
|
2416
2457
|
exports.describeCredential = describeCredential;
|
|
2417
|
-
exports.estimateTokens = estimateTokens;
|
|
2418
2458
|
exports.evaluateBlastRadius = evaluateBlastRadius;
|
|
2419
2459
|
exports.extractRawId = extractRawId;
|
|
2420
2460
|
exports.foldLayers = foldLayers;
|