@theokit/sdk 4.38.0 → 4.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/CHANGELOG.md +285 -0
  2. package/dist/a2a/index.cjs +3 -3
  3. package/dist/a2a/index.js +1 -1
  4. package/dist/a2a/subagent.d.cts +1 -0
  5. package/dist/a2a/subagent.d.ts +1 -0
  6. package/dist/agent-6ULDAQT7.js +46 -0
  7. package/dist/{agent-3H3UKD6U.js.map → agent-6ULDAQT7.js.map} +1 -1
  8. package/dist/{agent-U3lBX-5t.d.cts → agent-D7bRK9Kg.d.cts} +70 -5
  9. package/dist/agent-PVUKI3BB.cjs +55 -0
  10. package/dist/{agent-2GZC4W2A.cjs.map → agent-PVUKI3BB.cjs.map} +1 -1
  11. package/dist/{agent-C3AEtM-W.d.ts → agent-ZCZa7YQv.d.ts} +70 -5
  12. package/dist/agent-session-store-N4TVKHBU.cjs +23 -0
  13. package/dist/agent-session-store-N4TVKHBU.cjs.map +1 -0
  14. package/dist/agent-session-store-RHMHP5DG.js +6 -0
  15. package/dist/agent-session-store-RHMHP5DG.js.map +1 -0
  16. package/dist/agent.d.ts +37 -1
  17. package/dist/auth/index.cjs +15 -15
  18. package/dist/auth/index.js +4 -4
  19. package/dist/{batch-LXSALQC3.js → batch-6KQM3EBA.js} +12 -12
  20. package/dist/batch-6KQM3EBA.js.map +1 -0
  21. package/dist/{batch-NZGN6SFV.cjs → batch-X6JKGDPK.cjs} +26 -26
  22. package/dist/batch-X6JKGDPK.cjs.map +1 -0
  23. package/dist/chunk-2RW7K6FN.cjs +34 -0
  24. package/dist/chunk-2RW7K6FN.cjs.map +1 -0
  25. package/dist/chunk-3I4B3OIX.js +105 -0
  26. package/dist/chunk-3I4B3OIX.js.map +1 -0
  27. package/dist/{chunk-KWXC6ERT.js → chunk-42IFCKQZ.js} +5 -5
  28. package/dist/{chunk-KWXC6ERT.js.map → chunk-42IFCKQZ.js.map} +1 -1
  29. package/dist/{chunk-4APWS2YF.js → chunk-4F7JQZOX.js} +9 -36
  30. package/dist/chunk-4F7JQZOX.js.map +1 -0
  31. package/dist/{chunk-VYD6BGKK.js → chunk-4JSZYSGW.js} +3 -3
  32. package/dist/{chunk-VYD6BGKK.js.map → chunk-4JSZYSGW.js.map} +1 -1
  33. package/dist/{chunk-A6GXYF2Q.js → chunk-65ONFZWM.js} +7 -6
  34. package/dist/chunk-65ONFZWM.js.map +1 -0
  35. package/dist/{chunk-SGTMDQ4O.js → chunk-6EEYRFJC.js} +5 -5
  36. package/dist/{chunk-SGTMDQ4O.js.map → chunk-6EEYRFJC.js.map} +1 -1
  37. package/dist/{chunk-M4OGSS66.cjs → chunk-6LGQECT7.cjs} +11 -11
  38. package/dist/{chunk-M4OGSS66.cjs.map → chunk-6LGQECT7.cjs.map} +1 -1
  39. package/dist/{chunk-KTXOHCAE.cjs → chunk-6NEHIHFU.cjs} +4 -4
  40. package/dist/{chunk-KTXOHCAE.cjs.map → chunk-6NEHIHFU.cjs.map} +1 -1
  41. package/dist/chunk-6YNYA7GD.cjs +103 -0
  42. package/dist/chunk-6YNYA7GD.cjs.map +1 -0
  43. package/dist/{chunk-2R6NBT5F.cjs → chunk-74D7KSBP.cjs} +11 -11
  44. package/dist/{chunk-2R6NBT5F.cjs.map → chunk-74D7KSBP.cjs.map} +1 -1
  45. package/dist/{chunk-6OIO4FYX.cjs → chunk-75DSEWTJ.cjs} +7 -7
  46. package/dist/{chunk-6OIO4FYX.cjs.map → chunk-75DSEWTJ.cjs.map} +1 -1
  47. package/dist/{chunk-3XRXORBS.cjs → chunk-7OLG7VI4.cjs} +4 -4
  48. package/dist/{chunk-3XRXORBS.cjs.map → chunk-7OLG7VI4.cjs.map} +1 -1
  49. package/dist/chunk-7U2HAAWB.cjs +199 -0
  50. package/dist/chunk-7U2HAAWB.cjs.map +1 -0
  51. package/dist/{chunk-QJQ2MAZF.cjs → chunk-7YBJZS5P.cjs} +8 -8
  52. package/dist/{chunk-QJQ2MAZF.cjs.map → chunk-7YBJZS5P.cjs.map} +1 -1
  53. package/dist/{chunk-A4XXV2C6.js → chunk-7YSRCQDE.js} +5 -72
  54. package/dist/chunk-7YSRCQDE.js.map +1 -0
  55. package/dist/{chunk-ZFZYPLQI.js → chunk-AECV3G5Z.js} +4 -4
  56. package/dist/{chunk-ZFZYPLQI.js.map → chunk-AECV3G5Z.js.map} +1 -1
  57. package/dist/{chunk-QFWQLXCL.js → chunk-AR5MQZ3J.js} +3 -3
  58. package/dist/{chunk-QFWQLXCL.js.map → chunk-AR5MQZ3J.js.map} +1 -1
  59. package/dist/{chunk-G2F67XUR.cjs → chunk-B4YA6BRS.cjs} +13 -14
  60. package/dist/chunk-B4YA6BRS.cjs.map +1 -0
  61. package/dist/{chunk-BE3W4HYV.cjs → chunk-BCQ3E2ZG.cjs} +12 -3
  62. package/dist/chunk-BCQ3E2ZG.cjs.map +1 -0
  63. package/dist/{chunk-XJ5TMOGA.js → chunk-BQDUEG4C.js} +3 -3
  64. package/dist/{chunk-XJ5TMOGA.js.map → chunk-BQDUEG4C.js.map} +1 -1
  65. package/dist/{chunk-OFWU6UKF.cjs → chunk-C7OP3FAK.cjs} +47 -11
  66. package/dist/chunk-C7OP3FAK.cjs.map +1 -0
  67. package/dist/{chunk-UZBA6YYP.cjs → chunk-CAFV7WPQ.cjs} +540 -534
  68. package/dist/chunk-CAFV7WPQ.cjs.map +1 -0
  69. package/dist/{chunk-BUGVDCI5.cjs → chunk-CEIHCKTO.cjs} +4 -4
  70. package/dist/chunk-CEIHCKTO.cjs.map +1 -0
  71. package/dist/{chunk-3BSP7LSG.cjs → chunk-CN6UX5EV.cjs} +28 -56
  72. package/dist/chunk-CN6UX5EV.cjs.map +1 -0
  73. package/dist/{chunk-5BVBNE2F.js → chunk-D7IULBF2.js} +3 -3
  74. package/dist/{chunk-5BVBNE2F.js.map → chunk-D7IULBF2.js.map} +1 -1
  75. package/dist/{chunk-G7X2Y7Y2.cjs → chunk-DAXEQELR.cjs} +186 -236
  76. package/dist/chunk-DAXEQELR.cjs.map +1 -0
  77. package/dist/{chunk-YVI4YPUP.cjs → chunk-DGLLVCNB.cjs} +4 -4
  78. package/dist/{chunk-YVI4YPUP.cjs.map → chunk-DGLLVCNB.cjs.map} +1 -1
  79. package/dist/{chunk-JI34KBNC.js → chunk-DKFGUOWL.js} +3 -3
  80. package/dist/{chunk-JI34KBNC.js.map → chunk-DKFGUOWL.js.map} +1 -1
  81. package/dist/{chunk-ZET34IZE.cjs → chunk-DMTZ3FII.cjs} +5 -5
  82. package/dist/{chunk-ZET34IZE.cjs.map → chunk-DMTZ3FII.cjs.map} +1 -1
  83. package/dist/{chunk-6XZBKFQ7.js → chunk-DU7DE543.js} +3 -3
  84. package/dist/{chunk-6XZBKFQ7.js.map → chunk-DU7DE543.js.map} +1 -1
  85. package/dist/{chunk-VVMLMKYZ.cjs → chunk-DWY25VLP.cjs} +9 -9
  86. package/dist/{chunk-VVMLMKYZ.cjs.map → chunk-DWY25VLP.cjs.map} +1 -1
  87. package/dist/{chunk-R4AMI7KD.cjs → chunk-E4IUN3JB.cjs} +15 -15
  88. package/dist/{chunk-R4AMI7KD.cjs.map → chunk-E4IUN3JB.cjs.map} +1 -1
  89. package/dist/{chunk-TKDWD3MU.cjs → chunk-ECHGWE47.cjs} +4 -4
  90. package/dist/{chunk-TKDWD3MU.cjs.map → chunk-ECHGWE47.cjs.map} +1 -1
  91. package/dist/{chunk-KL7E244K.cjs → chunk-ECW2MLEW.cjs} +4 -4
  92. package/dist/{chunk-KL7E244K.cjs.map → chunk-ECW2MLEW.cjs.map} +1 -1
  93. package/dist/{chunk-EDI7DBWO.js → chunk-ET6PHZRX.js} +3 -3
  94. package/dist/{chunk-EDI7DBWO.js.map → chunk-ET6PHZRX.js.map} +1 -1
  95. package/dist/{chunk-HLK35TD7.cjs → chunk-FOZC5H7V.cjs} +24 -24
  96. package/dist/{chunk-HLK35TD7.cjs.map → chunk-FOZC5H7V.cjs.map} +1 -1
  97. package/dist/{chunk-SRIF7HMN.cjs → chunk-FWBSDQZ7.cjs} +5 -5
  98. package/dist/{chunk-SRIF7HMN.cjs.map → chunk-FWBSDQZ7.cjs.map} +1 -1
  99. package/dist/{chunk-XKBJT7WI.cjs → chunk-G2Q3ZC6C.cjs} +4 -4
  100. package/dist/{chunk-XKBJT7WI.cjs.map → chunk-G2Q3ZC6C.cjs.map} +1 -1
  101. package/dist/{chunk-4MWBKBS4.cjs → chunk-G4XUXSRN.cjs} +12 -12
  102. package/dist/{chunk-4MWBKBS4.cjs.map → chunk-G4XUXSRN.cjs.map} +1 -1
  103. package/dist/{chunk-EE24WJJR.js → chunk-GTVJIGAH.js} +5 -5
  104. package/dist/{chunk-EE24WJJR.js.map → chunk-GTVJIGAH.js.map} +1 -1
  105. package/dist/{chunk-VUDH4D2M.js → chunk-H3BOKK42.js} +282 -276
  106. package/dist/chunk-H3BOKK42.js.map +1 -0
  107. package/dist/{chunk-BT6DFWZB.cjs → chunk-HIQFVHC6.cjs} +9 -9
  108. package/dist/{chunk-BT6DFWZB.cjs.map → chunk-HIQFVHC6.cjs.map} +1 -1
  109. package/dist/{chunk-HI6G3SNY.js → chunk-HSPVMV6T.js} +76 -125
  110. package/dist/chunk-HSPVMV6T.js.map +1 -0
  111. package/dist/{chunk-UWEALKAN.js → chunk-HWNVAUK4.js} +3 -3
  112. package/dist/{chunk-UWEALKAN.js.map → chunk-HWNVAUK4.js.map} +1 -1
  113. package/dist/{chunk-3VKTDQMX.cjs → chunk-I53ZQHU6.cjs} +4 -4
  114. package/dist/{chunk-3VKTDQMX.cjs.map → chunk-I53ZQHU6.cjs.map} +1 -1
  115. package/dist/{chunk-A3MHE2MQ.cjs → chunk-IHFNRNTJ.cjs} +8 -8
  116. package/dist/{chunk-A3MHE2MQ.cjs.map → chunk-IHFNRNTJ.cjs.map} +1 -1
  117. package/dist/{chunk-KCZW75PI.js → chunk-IVSD7L22.js} +12 -4
  118. package/dist/chunk-IVSD7L22.js.map +1 -0
  119. package/dist/{chunk-JCXIDFRI.js → chunk-J3UK2GMN.js} +3 -3
  120. package/dist/{chunk-JCXIDFRI.js.map → chunk-J3UK2GMN.js.map} +1 -1
  121. package/dist/{chunk-IBDE4R5L.cjs → chunk-J6T5LWJ4.cjs} +10 -9
  122. package/dist/chunk-J6T5LWJ4.cjs.map +1 -0
  123. package/dist/{chunk-AOZYORH7.js → chunk-JRLXEYR4.js} +21 -5
  124. package/dist/chunk-JRLXEYR4.js.map +1 -0
  125. package/dist/{chunk-EUB7YLU2.js → chunk-JZUPMTJY.js} +3 -3
  126. package/dist/{chunk-EUB7YLU2.js.map → chunk-JZUPMTJY.js.map} +1 -1
  127. package/dist/{chunk-ZK3BJ4XQ.js → chunk-KE6XKRLQ.js} +3 -3
  128. package/dist/{chunk-ZK3BJ4XQ.js.map → chunk-KE6XKRLQ.js.map} +1 -1
  129. package/dist/{chunk-4NVV3GRU.js → chunk-KGRIHEDT.js} +5 -5
  130. package/dist/{chunk-4NVV3GRU.js.map → chunk-KGRIHEDT.js.map} +1 -1
  131. package/dist/{chunk-LGCEYEU2.js → chunk-KX7JV5KM.js} +3 -3
  132. package/dist/{chunk-LGCEYEU2.js.map → chunk-KX7JV5KM.js.map} +1 -1
  133. package/dist/{chunk-2K7PRHDB.cjs → chunk-LALG2K33.cjs} +8 -8
  134. package/dist/{chunk-2K7PRHDB.cjs.map → chunk-LALG2K33.cjs.map} +1 -1
  135. package/dist/{chunk-4WIJSKFA.js → chunk-LGILIGV3.js} +3 -3
  136. package/dist/{chunk-4WIJSKFA.js.map → chunk-LGILIGV3.js.map} +1 -1
  137. package/dist/{chunk-7QDTZJRV.js → chunk-LJX2SQV2.js} +6 -6
  138. package/dist/{chunk-7QDTZJRV.js.map → chunk-LJX2SQV2.js.map} +1 -1
  139. package/dist/{chunk-ACHGT3D2.js → chunk-MC5EINBV.js} +44 -8
  140. package/dist/chunk-MC5EINBV.js.map +1 -0
  141. package/dist/{chunk-M6UUTNDT.js → chunk-ML5A5DOJ.js} +4 -4
  142. package/dist/{chunk-M6UUTNDT.js.map → chunk-ML5A5DOJ.js.map} +1 -1
  143. package/dist/{chunk-3MUIYMUG.cjs → chunk-N475ETD6.cjs} +17 -17
  144. package/dist/{chunk-3MUIYMUG.cjs.map → chunk-N475ETD6.cjs.map} +1 -1
  145. package/dist/chunk-OXNYIMZZ.js +31 -0
  146. package/dist/chunk-OXNYIMZZ.js.map +1 -0
  147. package/dist/{chunk-YCHC45BY.js → chunk-PI4RO4GR.js} +3 -3
  148. package/dist/{chunk-YCHC45BY.js.map → chunk-PI4RO4GR.js.map} +1 -1
  149. package/dist/chunk-QKE556YD.js +197 -0
  150. package/dist/chunk-QKE556YD.js.map +1 -0
  151. package/dist/{chunk-FV3YEMQ7.js → chunk-RP5HQVLD.js} +13 -14
  152. package/dist/chunk-RP5HQVLD.js.map +1 -0
  153. package/dist/chunk-SCFW5MJZ.js +100 -0
  154. package/dist/chunk-SCFW5MJZ.js.map +1 -0
  155. package/dist/{chunk-ZYOHF37V.js → chunk-SG5ZWT6C.js} +3 -3
  156. package/dist/{chunk-ZYOHF37V.js.map → chunk-SG5ZWT6C.js.map} +1 -1
  157. package/dist/{chunk-ED7ANP6W.cjs → chunk-TIMPJL5V.cjs} +4 -4
  158. package/dist/{chunk-ED7ANP6W.cjs.map → chunk-TIMPJL5V.cjs.map} +1 -1
  159. package/dist/{chunk-3XKVRLR2.js → chunk-TOTP24P6.js} +4 -4
  160. package/dist/{chunk-3XKVRLR2.js.map → chunk-TOTP24P6.js.map} +1 -1
  161. package/dist/{chunk-PG3QQLWS.cjs → chunk-USZTVNUQ.cjs} +5 -5
  162. package/dist/{chunk-PG3QQLWS.cjs.map → chunk-USZTVNUQ.cjs.map} +1 -1
  163. package/dist/{chunk-XS7SKY2F.js → chunk-V2RBCCN5.js} +3 -3
  164. package/dist/chunk-V2RBCCN5.js.map +1 -0
  165. package/dist/{chunk-D3SJLXYZ.cjs → chunk-VJYSQXN6.cjs} +10 -10
  166. package/dist/{chunk-D3SJLXYZ.cjs.map → chunk-VJYSQXN6.cjs.map} +1 -1
  167. package/dist/{chunk-6ZGD7R27.cjs → chunk-VWI3CDEW.cjs} +8 -75
  168. package/dist/chunk-VWI3CDEW.cjs.map +1 -0
  169. package/dist/{chunk-MXRBNJ6D.cjs → chunk-W4WKVOOQ.cjs} +11 -11
  170. package/dist/{chunk-MXRBNJ6D.cjs.map → chunk-W4WKVOOQ.cjs.map} +1 -1
  171. package/dist/chunk-XYOHKCYG.cjs +109 -0
  172. package/dist/chunk-XYOHKCYG.cjs.map +1 -0
  173. package/dist/{chunk-UD2T7ISG.js → chunk-YP67XZES.js} +4 -4
  174. package/dist/{chunk-UD2T7ISG.js.map → chunk-YP67XZES.js.map} +1 -1
  175. package/dist/{chunk-HHUDNTZC.js → chunk-YRXY2A5L.js} +4 -4
  176. package/dist/{chunk-HHUDNTZC.js.map → chunk-YRXY2A5L.js.map} +1 -1
  177. package/dist/{chunk-6OKPJZMX.cjs → chunk-Z2CUEBXV.cjs} +25 -9
  178. package/dist/chunk-Z2CUEBXV.cjs.map +1 -0
  179. package/dist/compact-session-GKA7GFVT.js +18 -0
  180. package/dist/{compact-session-RR3ILTES.js.map → compact-session-GKA7GFVT.js.map} +1 -1
  181. package/dist/compact-session-XMP6OGY3.cjs +55 -0
  182. package/dist/{compact-session-YOWJJPPB.cjs.map → compact-session-XMP6OGY3.cjs.map} +1 -1
  183. package/dist/compaction.cjs +16 -16
  184. package/dist/compaction.js +3 -3
  185. package/dist/concurrency.cjs +6 -6
  186. package/dist/concurrency.js +4 -4
  187. package/dist/context-2FZSC6VQ.cjs +22 -0
  188. package/dist/{context-Q6ISOCN2.cjs.map → context-2FZSC6VQ.cjs.map} +1 -1
  189. package/dist/context-ATJJAFOS.js +5 -0
  190. package/dist/{context-ZDBBPIHY.js.map → context-ATJJAFOS.js.map} +1 -1
  191. package/dist/{cron-ChQ6zcW2.d.ts → cron-Bx7tzm5R.d.ts} +54 -2
  192. package/dist/{cron-BdXOZco9.d.cts → cron-D-DVjGQe.d.cts} +54 -2
  193. package/dist/cron.cjs +33 -29
  194. package/dist/cron.d.cts +3 -3
  195. package/dist/cron.d.ts +3 -3
  196. package/dist/cron.js +32 -28
  197. package/dist/{errors-BUVjJGJA.d.cts → errors-DMY-gLSK.d.cts} +1 -1
  198. package/dist/{errors-CZIUKLHt.d.ts → errors-DjBQ4Tn8.d.ts} +1 -1
  199. package/dist/errors.cjs +21 -21
  200. package/dist/errors.d.cts +2 -2
  201. package/dist/errors.d.ts +2 -2
  202. package/dist/errors.js +2 -2
  203. package/dist/eval.cjs +41 -36
  204. package/dist/eval.cjs.map +1 -1
  205. package/dist/eval.js +37 -32
  206. package/dist/eval.js.map +1 -1
  207. package/dist/{executor-DPCBSI35.cjs → executor-BMRICN46.cjs} +26 -25
  208. package/dist/executor-BMRICN46.cjs.map +1 -0
  209. package/dist/{executor-ASDDIM2X.js → executor-T65PPOPT.js} +10 -9
  210. package/dist/executor-T65PPOPT.js.map +1 -0
  211. package/dist/filesystem/index.cjs +7 -7
  212. package/dist/filesystem/index.js +3 -3
  213. package/dist/fs-session-store-J5MCFFUM.cjs +19 -0
  214. package/dist/{fs-session-store-T5ZLQX42.cjs.map → fs-session-store-J5MCFFUM.cjs.map} +1 -1
  215. package/dist/fs-session-store-O6FNHECD.js +10 -0
  216. package/dist/{fs-session-store-K5QUPNJZ.js.map → fs-session-store-O6FNHECD.js.map} +1 -1
  217. package/dist/generate-object-UF6WIZLF.cjs +20 -0
  218. package/dist/{generate-object-F56VIZ6U.cjs.map → generate-object-UF6WIZLF.cjs.map} +1 -1
  219. package/dist/generate-object-XDCBYVK3.js +7 -0
  220. package/dist/{generate-object-LPSO6GVW.js.map → generate-object-XDCBYVK3.js.map} +1 -1
  221. package/dist/index-manager-N7RQYUKT.cjs +20 -0
  222. package/dist/{index-manager-DBJ55ZSO.cjs.map → index-manager-N7RQYUKT.cjs.map} +1 -1
  223. package/dist/index-manager-ZVZUHPP7.js +11 -0
  224. package/dist/{index-manager-F2H2RCZU.js.map → index-manager-ZVZUHPP7.js.map} +1 -1
  225. package/dist/index.cjs +138 -132
  226. package/dist/index.cjs.map +1 -1
  227. package/dist/index.d.cts +167 -9
  228. package/dist/index.d.ts +167 -9
  229. package/dist/index.js +47 -44
  230. package/dist/index.js.map +1 -1
  231. package/dist/{inject-session-RKNLUE72.js → inject-session-7P4CZGDT.js} +7 -6
  232. package/dist/inject-session-7P4CZGDT.js.map +1 -0
  233. package/dist/{inject-session-25EC74WV.cjs → inject-session-CC4KBYF6.cjs} +9 -8
  234. package/dist/inject-session-CC4KBYF6.cjs.map +1 -0
  235. package/dist/internal/agent-loop/loop-thinking-steps.d.ts +28 -0
  236. package/dist/internal/agent-loop/message-builders.d.ts +12 -3
  237. package/dist/internal/diagnostics.d.ts +24 -11
  238. package/dist/internal/llm/anthropic-shared.d.ts +4 -4
  239. package/dist/internal/llm/types.d.ts +49 -9
  240. package/dist/internal/local-agent/mcp-pool.d.ts +7 -3
  241. package/dist/internal/memory/adapters/azure-openai-embedding.d.cts +2 -0
  242. package/dist/internal/memory/adapters/catalog.d.cts +1 -0
  243. package/dist/internal/memory/adapters/cohere-embedding.d.cts +2 -0
  244. package/dist/internal/memory/adapters/deepinfra-embedding.d.cts +2 -0
  245. package/dist/internal/memory/adapters/gemini-embedding.d.cts +2 -0
  246. package/dist/internal/memory/adapters/index.cjs +28 -0
  247. package/dist/internal/memory/adapters/index.cjs.map +1 -0
  248. package/dist/internal/memory/adapters/index.d.cts +16 -0
  249. package/dist/internal/memory/adapters/index.d.ts +16 -0
  250. package/dist/internal/memory/adapters/index.js +11 -0
  251. package/dist/internal/memory/adapters/index.js.map +1 -0
  252. package/dist/internal/memory/adapters/jina-embedding.d.cts +2 -0
  253. package/dist/internal/memory/adapters/mistral-embedding.d.cts +2 -0
  254. package/dist/internal/memory/adapters/ollama-embedding.d.cts +34 -0
  255. package/dist/internal/memory/adapters/openai-compatible.d.cts +51 -0
  256. package/dist/internal/memory/adapters/openai-compatible.d.ts +28 -0
  257. package/dist/internal/memory/adapters/openai-embedding.d.cts +2 -0
  258. package/dist/internal/memory/adapters/openrouter-embedding.d.cts +2 -0
  259. package/dist/internal/memory/adapters/voyage-embedding.d.cts +2 -0
  260. package/dist/internal/memory/dreaming/diary.d.ts +4 -0
  261. package/dist/internal/memory/dreaming/phases.d.ts +15 -0
  262. package/dist/internal/memory/dreaming/run.d.ts +10 -0
  263. package/dist/internal/memory/migrate-sqlite-to-lance.d.ts +15 -0
  264. package/dist/internal/memory/sdk-memory-peer-loader.d.ts +21 -0
  265. package/dist/internal/persistence/index.cjs +25 -25
  266. package/dist/internal/persistence/index.js +6 -6
  267. package/dist/internal/persistence/session-transcript.d.cts +6 -0
  268. package/dist/internal/persistence/session-transcript.d.ts +6 -0
  269. package/dist/internal/runtime/concurrency/subagent-credentials.d.ts +35 -0
  270. package/dist/internal/security/index.cjs +13 -13
  271. package/dist/internal/security/index.js +3 -3
  272. package/dist/internal/session/agent-session-store.d.ts +1 -0
  273. package/dist/internal/session/session-types.d.ts +6 -1
  274. package/dist/judge-call-NA2G6ZMJ.js +5 -0
  275. package/dist/{judge-call-3S3T6O2Z.js.map → judge-call-NA2G6ZMJ.js.map} +1 -1
  276. package/dist/judge-call-U2D33JOW.cjs +22 -0
  277. package/dist/{judge-call-XIQJ5GIE.cjs.map → judge-call-U2D33JOW.cjs.map} +1 -1
  278. package/dist/models.cjs +20 -20
  279. package/dist/models.js +5 -5
  280. package/dist/path-safety.cjs +10 -10
  281. package/dist/path-safety.js +3 -3
  282. package/dist/persistence.cjs +35 -35
  283. package/dist/persistence.js +7 -7
  284. package/dist/project.cjs +5 -5
  285. package/dist/project.js +3 -3
  286. package/dist/registry-CAS6Y5ZY.js +9 -0
  287. package/dist/{registry-KMI5RA22.js.map → registry-CAS6Y5ZY.js.map} +1 -1
  288. package/dist/registry-JSDI4WKA.cjs +46 -0
  289. package/dist/{registry-BA3SLAN7.cjs.map → registry-JSDI4WKA.cjs.map} +1 -1
  290. package/dist/retry.cjs +4 -4
  291. package/dist/retry.js +3 -3
  292. package/dist/{run-vJHg2eGw.d.cts → run-i2-fUohR.d.cts} +16 -0
  293. package/dist/{run-vJHg2eGw.d.ts → run-i2-fUohR.d.ts} +16 -0
  294. package/dist/sandbox/index.cjs +6 -6
  295. package/dist/sandbox/index.js +2 -2
  296. package/dist/server/errors-envelope.cjs +14 -14
  297. package/dist/server/errors-envelope.d.cts +3 -3
  298. package/dist/server/errors-envelope.d.ts +3 -3
  299. package/dist/server/errors-envelope.js +3 -3
  300. package/dist/session-transcript-3B52DKTG.js +5 -0
  301. package/dist/{session-transcript-MMPWCESR.js.map → session-transcript-3B52DKTG.js.map} +1 -1
  302. package/dist/session-transcript-H7NUFXXM.cjs +50 -0
  303. package/dist/{session-transcript-DFGX6WNL.cjs.map → session-transcript-H7NUFXXM.cjs.map} +1 -1
  304. package/dist/skills.cjs +7 -7
  305. package/dist/skills.js +5 -5
  306. package/dist/stream-object-4FDU76YW.cjs +20 -0
  307. package/dist/{stream-object-YPXZ4F5P.cjs.map → stream-object-4FDU76YW.cjs.map} +1 -1
  308. package/dist/stream-object-HWDEEQN4.js +7 -0
  309. package/dist/{stream-object-AFERZU63.js.map → stream-object-HWDEEQN4.js.map} +1 -1
  310. package/dist/subagents-loader-A4W6C3QP.cjs +15 -0
  311. package/dist/subagents-loader-A4W6C3QP.cjs.map +1 -0
  312. package/dist/subagents-loader-X33KH2SZ.js +6 -0
  313. package/dist/subagents-loader-X33KH2SZ.js.map +1 -0
  314. package/dist/subagents-loader.cjs +6 -6
  315. package/dist/subagents-loader.d.cts +2 -2
  316. package/dist/subagents-loader.d.ts +2 -2
  317. package/dist/subagents-loader.js +4 -4
  318. package/dist/subscription/index.cjs +3 -3
  319. package/dist/subscription/index.js +2 -2
  320. package/dist/task-store.cjs +7 -7
  321. package/dist/task-store.js +4 -4
  322. package/dist/types/agent.d.ts +68 -3
  323. package/dist/types/conversation.d.ts +7 -0
  324. package/dist/types/messages.d.ts +9 -0
  325. package/dist/types/session-message.d.ts +59 -0
  326. package/dist/types/workflow.d.ts +36 -0
  327. package/dist/workflow.cjs +27 -27
  328. package/dist/workflow.d.cts +17 -1
  329. package/dist/workflow.d.ts +17 -1
  330. package/dist/workflow.js +6 -6
  331. package/docs/harness-capability-map.md +22 -0
  332. package/package.json +11 -1
  333. package/dist/agent-2GZC4W2A.cjs +0 -51
  334. package/dist/agent-3H3UKD6U.js +0 -42
  335. package/dist/batch-LXSALQC3.js.map +0 -1
  336. package/dist/batch-NZGN6SFV.cjs.map +0 -1
  337. package/dist/chunk-3BSP7LSG.cjs.map +0 -1
  338. package/dist/chunk-4APWS2YF.js.map +0 -1
  339. package/dist/chunk-6OKPJZMX.cjs.map +0 -1
  340. package/dist/chunk-6ZGD7R27.cjs.map +0 -1
  341. package/dist/chunk-A4XXV2C6.js.map +0 -1
  342. package/dist/chunk-A6GXYF2Q.js.map +0 -1
  343. package/dist/chunk-ACHGT3D2.js.map +0 -1
  344. package/dist/chunk-AOZYORH7.js.map +0 -1
  345. package/dist/chunk-BE3W4HYV.cjs.map +0 -1
  346. package/dist/chunk-BUGVDCI5.cjs.map +0 -1
  347. package/dist/chunk-FV3YEMQ7.js.map +0 -1
  348. package/dist/chunk-G2F67XUR.cjs.map +0 -1
  349. package/dist/chunk-G7X2Y7Y2.cjs.map +0 -1
  350. package/dist/chunk-HI6G3SNY.js.map +0 -1
  351. package/dist/chunk-IBDE4R5L.cjs.map +0 -1
  352. package/dist/chunk-KCZW75PI.js.map +0 -1
  353. package/dist/chunk-OFWU6UKF.cjs.map +0 -1
  354. package/dist/chunk-UZBA6YYP.cjs.map +0 -1
  355. package/dist/chunk-VUDH4D2M.js.map +0 -1
  356. package/dist/chunk-XS7SKY2F.js.map +0 -1
  357. package/dist/compact-session-RR3ILTES.js +0 -17
  358. package/dist/compact-session-YOWJJPPB.cjs +0 -54
  359. package/dist/context-Q6ISOCN2.cjs +0 -22
  360. package/dist/context-ZDBBPIHY.js +0 -5
  361. package/dist/executor-ASDDIM2X.js.map +0 -1
  362. package/dist/executor-DPCBSI35.cjs.map +0 -1
  363. package/dist/fs-session-store-K5QUPNJZ.js +0 -10
  364. package/dist/fs-session-store-T5ZLQX42.cjs +0 -19
  365. package/dist/generate-object-F56VIZ6U.cjs +0 -20
  366. package/dist/generate-object-LPSO6GVW.js +0 -7
  367. package/dist/index-manager-DBJ55ZSO.cjs +0 -19
  368. package/dist/index-manager-F2H2RCZU.js +0 -10
  369. package/dist/inject-session-25EC74WV.cjs.map +0 -1
  370. package/dist/inject-session-RKNLUE72.js.map +0 -1
  371. package/dist/judge-call-3S3T6O2Z.js +0 -5
  372. package/dist/judge-call-XIQJ5GIE.cjs +0 -22
  373. package/dist/registry-BA3SLAN7.cjs +0 -46
  374. package/dist/registry-KMI5RA22.js +0 -9
  375. package/dist/session-transcript-DFGX6WNL.cjs +0 -50
  376. package/dist/session-transcript-MMPWCESR.js +0 -5
  377. package/dist/stream-object-AFERZU63.js +0 -7
  378. package/dist/stream-object-YPXZ4F5P.cjs +0 -20
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkPNVDQL5Y_cjs = require('../../chunk-PNVDQL5Y.cjs');
4
- var chunk2K7PRHDB_cjs = require('../../chunk-2K7PRHDB.cjs');
5
- var chunkZET34IZE_cjs = require('../../chunk-ZET34IZE.cjs');
6
- var chunk6OIO4FYX_cjs = require('../../chunk-6OIO4FYX.cjs');
4
+ var chunkLALG2K33_cjs = require('../../chunk-LALG2K33.cjs');
5
+ var chunkDMTZ3FII_cjs = require('../../chunk-DMTZ3FII.cjs');
6
+ var chunk75DSEWTJ_cjs = require('../../chunk-75DSEWTJ.cjs');
7
7
  var chunkYLQQX5W2_cjs = require('../../chunk-YLQQX5W2.cjs');
8
- var chunkYVI4YPUP_cjs = require('../../chunk-YVI4YPUP.cjs');
9
- require('../../chunk-A3MHE2MQ.cjs');
10
- require('../../chunk-BE3W4HYV.cjs');
8
+ var chunkDGLLVCNB_cjs = require('../../chunk-DGLLVCNB.cjs');
9
+ require('../../chunk-IHFNRNTJ.cjs');
10
+ require('../../chunk-BCQ3E2ZG.cjs');
11
11
  var promises = require('fs/promises');
12
12
 
13
13
  async function createExclusive(path, data, options) {
@@ -41,67 +41,67 @@ Object.defineProperty(exports, "PersistenceSchema", {
41
41
  });
42
42
  Object.defineProperty(exports, "displayTheokitHome", {
43
43
  enumerable: true,
44
- get: function () { return chunk2K7PRHDB_cjs.displayTheokitHome; }
44
+ get: function () { return chunkLALG2K33_cjs.displayTheokitHome; }
45
45
  });
46
46
  Object.defineProperty(exports, "getProfilesRoot", {
47
47
  enumerable: true,
48
- get: function () { return chunk2K7PRHDB_cjs.getProfilesRoot; }
48
+ get: function () { return chunkLALG2K33_cjs.getProfilesRoot; }
49
49
  });
50
50
  Object.defineProperty(exports, "getTheokitHome", {
51
51
  enumerable: true,
52
- get: function () { return chunk2K7PRHDB_cjs.getTheokitHome; }
52
+ get: function () { return chunkLALG2K33_cjs.getTheokitHome; }
53
53
  });
54
54
  Object.defineProperty(exports, "migrateSchema", {
55
55
  enumerable: true,
56
- get: function () { return chunk2K7PRHDB_cjs.migrateSchema; }
56
+ get: function () { return chunkLALG2K33_cjs.migrateSchema; }
57
57
  });
58
58
  Object.defineProperty(exports, "readVersionedJson", {
59
59
  enumerable: true,
60
- get: function () { return chunk2K7PRHDB_cjs.readVersionedJson; }
60
+ get: function () { return chunkLALG2K33_cjs.readVersionedJson; }
61
61
  });
62
62
  Object.defineProperty(exports, "writeVersionedJson", {
63
63
  enumerable: true,
64
- get: function () { return chunk2K7PRHDB_cjs.writeVersionedJson; }
64
+ get: function () { return chunkLALG2K33_cjs.writeVersionedJson; }
65
65
  });
66
66
  Object.defineProperty(exports, "JsonlParseError", {
67
67
  enumerable: true,
68
- get: function () { return chunkZET34IZE_cjs.JsonlParseError; }
68
+ get: function () { return chunkDMTZ3FII_cjs.JsonlParseError; }
69
69
  });
70
70
  Object.defineProperty(exports, "appendJsonl", {
71
71
  enumerable: true,
72
- get: function () { return chunkZET34IZE_cjs.appendJsonl; }
72
+ get: function () { return chunkDMTZ3FII_cjs.appendJsonl; }
73
73
  });
74
74
  Object.defineProperty(exports, "loadJsonl", {
75
75
  enumerable: true,
76
- get: function () { return chunkZET34IZE_cjs.loadJsonl; }
76
+ get: function () { return chunkDMTZ3FII_cjs.loadJsonl; }
77
77
  });
78
78
  Object.defineProperty(exports, "readJsonlIds", {
79
79
  enumerable: true,
80
- get: function () { return chunkZET34IZE_cjs.readJsonlIds; }
80
+ get: function () { return chunkDMTZ3FII_cjs.readJsonlIds; }
81
81
  });
82
82
  Object.defineProperty(exports, "withFileLock", {
83
83
  enumerable: true,
84
- get: function () { return chunkZET34IZE_cjs.withFileLock; }
84
+ get: function () { return chunkDMTZ3FII_cjs.withFileLock; }
85
85
  });
86
86
  Object.defineProperty(exports, "applyWalWithFallback", {
87
87
  enumerable: true,
88
- get: function () { return chunk6OIO4FYX_cjs.applyWalWithFallback; }
88
+ get: function () { return chunk75DSEWTJ_cjs.applyWalWithFallback; }
89
89
  });
90
90
  Object.defineProperty(exports, "containsCjk", {
91
91
  enumerable: true,
92
- get: function () { return chunk6OIO4FYX_cjs.containsCjk; }
92
+ get: function () { return chunk75DSEWTJ_cjs.containsCjk; }
93
93
  });
94
94
  Object.defineProperty(exports, "isCorruptionError", {
95
95
  enumerable: true,
96
- get: function () { return chunk6OIO4FYX_cjs.isCorruptionError; }
96
+ get: function () { return chunk75DSEWTJ_cjs.isCorruptionError; }
97
97
  });
98
98
  Object.defineProperty(exports, "openSqliteResilient", {
99
99
  enumerable: true,
100
- get: function () { return chunk6OIO4FYX_cjs.openSqliteResilient; }
100
+ get: function () { return chunk75DSEWTJ_cjs.openSqliteResilient; }
101
101
  });
102
102
  Object.defineProperty(exports, "sanitizeFts5Query", {
103
103
  enumerable: true,
104
- get: function () { return chunk6OIO4FYX_cjs.sanitizeFts5Query; }
104
+ get: function () { return chunk75DSEWTJ_cjs.sanitizeFts5Query; }
105
105
  });
106
106
  Object.defineProperty(exports, "withCwdMutex", {
107
107
  enumerable: true,
@@ -109,15 +109,15 @@ Object.defineProperty(exports, "withCwdMutex", {
109
109
  });
110
110
  Object.defineProperty(exports, "atomicWriteJson", {
111
111
  enumerable: true,
112
- get: function () { return chunkYVI4YPUP_cjs.atomicWriteJson; }
112
+ get: function () { return chunkDGLLVCNB_cjs.atomicWriteJson; }
113
113
  });
114
114
  Object.defineProperty(exports, "atomicWriteText", {
115
115
  enumerable: true,
116
- get: function () { return chunkYVI4YPUP_cjs.atomicWriteText; }
116
+ get: function () { return chunkDGLLVCNB_cjs.atomicWriteText; }
117
117
  });
118
118
  Object.defineProperty(exports, "replaceFileAtomic", {
119
119
  enumerable: true,
120
- get: function () { return chunkYVI4YPUP_cjs.replaceFileAtomic; }
120
+ get: function () { return chunkDGLLVCNB_cjs.replaceFileAtomic; }
121
121
  });
122
122
  exports.casUpdate = casUpdate;
123
123
  exports.createExclusive = createExclusive;
@@ -1,11 +1,11 @@
1
1
  export { PersistenceSchema } from '../../chunk-CAH3G4IS.js';
2
- export { displayTheokitHome, getProfilesRoot, getTheokitHome, migrateSchema, readVersionedJson, writeVersionedJson } from '../../chunk-UD2T7ISG.js';
3
- export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from '../../chunk-XJ5TMOGA.js';
4
- export { applyWalWithFallback, containsCjk, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from '../../chunk-ZFZYPLQI.js';
2
+ export { displayTheokitHome, getProfilesRoot, getTheokitHome, migrateSchema, readVersionedJson, writeVersionedJson } from '../../chunk-YP67XZES.js';
3
+ export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from '../../chunk-BQDUEG4C.js';
4
+ export { applyWalWithFallback, containsCjk, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from '../../chunk-AECV3G5Z.js';
5
5
  export { withCwdMutex } from '../../chunk-2XLKLVVR.js';
6
- export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from '../../chunk-LGCEYEU2.js';
7
- import '../../chunk-ZYOHF37V.js';
8
- import '../../chunk-KCZW75PI.js';
6
+ export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from '../../chunk-KX7JV5KM.js';
7
+ import '../../chunk-SG5ZWT6C.js';
8
+ import '../../chunk-IVSD7L22.js';
9
9
  import { open } from 'fs/promises';
10
10
 
11
11
  async function createExclusive(path, data, options) {
@@ -10,6 +10,12 @@ export interface SessionTranscriptOptions {
10
10
  export interface AssistantTurn {
11
11
  text?: string;
12
12
  thinking?: string;
13
+ /**
14
+ * theokit#122 — the provider's signature for the thinking block. Written into the `thinking`
15
+ * record block (`Block` already declared `signature?`), so a resumed session can replay the block
16
+ * exactly as the provider issued it.
17
+ */
18
+ thinkingSignature?: string;
13
19
  toolCalls?: Array<{
14
20
  id: string;
15
21
  name: string;
@@ -10,6 +10,12 @@ export interface SessionTranscriptOptions {
10
10
  export interface AssistantTurn {
11
11
  text?: string;
12
12
  thinking?: string;
13
+ /**
14
+ * theokit#122 — the provider's signature for the thinking block. Written into the `thinking`
15
+ * record block (`Block` already declared `signature?`), so a resumed session can replay the block
16
+ * exactly as the provider issued it.
17
+ */
18
+ thinkingSignature?: string;
13
19
  toolCalls?: Array<{
14
20
  id: string;
15
21
  name: string;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * theokit#148 — the parent's credentials, delivered through the CALL, not through the tool object.
3
+ *
4
+ * ## The class of bug this replaces
5
+ *
6
+ * Credential inheritance used to ride a property installed on the subagent tool object — first a
7
+ * unique `Symbol()`, then `Symbol.for` after #143. Both are the same shape of contract: "this
8
+ * object will reach the dispatcher with an extra property intact". Nothing enforces that, and it
9
+ * broke twice for two different reasons:
10
+ *
11
+ * - **Module duplication** (#142/#143): `tsup splitting: false` inlined a separate copy of the
12
+ * module into each public entry, so the two copies disagreed on a unique `Symbol()` key. Fixed at
13
+ * the build level by M78's `splitting: true`, but the fragile contract remained.
14
+ * - **Object normalization** (#148): any layer that rebuilds the tool from its known fields drops
15
+ * the property. `@theokit/agents`' `toCompiledTool` does exactly that, and had to add an explicit
16
+ * `Object.getOwnPropertySymbols` copy loop to compensate — a band-aid the SDK's contract forced
17
+ * onto a consumer. A named field would have been dropped by the same four-field rebuild, which is
18
+ * why "make it a typed field" alone does not close this.
19
+ *
20
+ * ## Why the async scope closes it
21
+ *
22
+ * What survives a rebuild is not the object — it is the CALL. A normalizing wrapper builds a new
23
+ * object but still invokes the original handler, inside the parent run's async context. So
24
+ * credentials published on that context reach the handler regardless of what the tool object looks
25
+ * like by then. There is no property left for a layer to drop.
26
+ *
27
+ * It also fixes a defect the per-object slot could not: credentials were stored per tool INSTANCE,
28
+ * so one subagent tool shared by two agents got last-writer-wins. The scope is per run.
29
+ *
30
+ * Nothing is exposed to third-party tool code: the store is module-private, credentials never touch
31
+ * a handler's `ctx`, and `currentInheritedSubAgentCredentials` is `@internal`.
32
+ *
33
+ * @internal
34
+ */
35
+ export {};
@@ -1,51 +1,51 @@
1
1
  'use strict';
2
2
 
3
3
  require('../../chunk-MUUQ2WFJ.cjs');
4
- var chunkQJQ2MAZF_cjs = require('../../chunk-QJQ2MAZF.cjs');
5
- require('../../chunk-A3MHE2MQ.cjs');
6
- var chunkBE3W4HYV_cjs = require('../../chunk-BE3W4HYV.cjs');
4
+ var chunk7YBJZS5P_cjs = require('../../chunk-7YBJZS5P.cjs');
5
+ require('../../chunk-IHFNRNTJ.cjs');
6
+ var chunkBCQ3E2ZG_cjs = require('../../chunk-BCQ3E2ZG.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "ForbiddenPathError", {
11
11
  enumerable: true,
12
- get: function () { return chunkQJQ2MAZF_cjs.ForbiddenPathError; }
12
+ get: function () { return chunk7YBJZS5P_cjs.ForbiddenPathError; }
13
13
  });
14
14
  Object.defineProperty(exports, "PathTraversalError", {
15
15
  enumerable: true,
16
- get: function () { return chunkQJQ2MAZF_cjs.PathTraversalError; }
16
+ get: function () { return chunk7YBJZS5P_cjs.PathTraversalError; }
17
17
  });
18
18
  Object.defineProperty(exports, "assertNoSymlinkEscape", {
19
19
  enumerable: true,
20
- get: function () { return chunkQJQ2MAZF_cjs.assertNoSymlinkEscape; }
20
+ get: function () { return chunk7YBJZS5P_cjs.assertNoSymlinkEscape; }
21
21
  });
22
22
  Object.defineProperty(exports, "isForbiddenPath", {
23
23
  enumerable: true,
24
- get: function () { return chunkQJQ2MAZF_cjs.isForbiddenPath; }
24
+ get: function () { return chunk7YBJZS5P_cjs.isForbiddenPath; }
25
25
  });
26
26
  Object.defineProperty(exports, "safePathJoin", {
27
27
  enumerable: true,
28
- get: function () { return chunkQJQ2MAZF_cjs.safePathJoin; }
28
+ get: function () { return chunk7YBJZS5P_cjs.safePathJoin; }
29
29
  });
30
30
  Object.defineProperty(exports, "sanitizeIdentifier", {
31
31
  enumerable: true,
32
- get: function () { return chunkQJQ2MAZF_cjs.sanitizeIdentifier; }
32
+ get: function () { return chunk7YBJZS5P_cjs.sanitizeIdentifier; }
33
33
  });
34
34
  Object.defineProperty(exports, "validateArtifactPath", {
35
35
  enumerable: true,
36
- get: function () { return chunkQJQ2MAZF_cjs.validateArtifactPath; }
36
+ get: function () { return chunk7YBJZS5P_cjs.validateArtifactPath; }
37
37
  });
38
38
  Object.defineProperty(exports, "addPattern", {
39
39
  enumerable: true,
40
- get: function () { return chunkBE3W4HYV_cjs.addPattern; }
40
+ get: function () { return chunkBCQ3E2ZG_cjs.addPattern; }
41
41
  });
42
42
  Object.defineProperty(exports, "maskToken", {
43
43
  enumerable: true,
44
- get: function () { return chunkBE3W4HYV_cjs.maskToken; }
44
+ get: function () { return chunkBCQ3E2ZG_cjs.maskToken; }
45
45
  });
46
46
  Object.defineProperty(exports, "redactSecrets", {
47
47
  enumerable: true,
48
- get: function () { return chunkBE3W4HYV_cjs.redactSecrets; }
48
+ get: function () { return chunkBCQ3E2ZG_cjs.redactSecrets; }
49
49
  });
50
50
  //# sourceMappingURL=index.cjs.map
51
51
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import '../../chunk-FD2UT76F.js';
2
- export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safePathJoin, sanitizeIdentifier, validateArtifactPath } from '../../chunk-JCXIDFRI.js';
3
- import '../../chunk-ZYOHF37V.js';
4
- export { addPattern, maskToken, redactSecrets } from '../../chunk-KCZW75PI.js';
2
+ export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safePathJoin, sanitizeIdentifier, validateArtifactPath } from '../../chunk-J3UK2GMN.js';
3
+ import '../../chunk-SG5ZWT6C.js';
4
+ export { addPattern, maskToken, redactSecrets } from '../../chunk-IVSD7L22.js';
5
5
  //# sourceMappingURL=index.js.map
6
6
  //# sourceMappingURL=index.js.map
@@ -11,6 +11,7 @@
11
11
  *
12
12
  * @internal
13
13
  */
14
+ import type { ConversationTurn } from "../../types/conversation.js";
14
15
  import type { SessionStore } from "../../types/session-store.js";
15
16
  import type { SessionMessage } from "./session-types.js";
16
17
  /** The turn to persist: the user's text plus the rich per-turn conversation view. */
@@ -36,6 +36,11 @@
36
36
  * still holds — `SessionMessage` remains a leaf type shared by the runtime
37
37
  * (`agent-session.ts`) and the native store (`agent-session-store.ts`).
38
38
  *
39
- * @internal NOT part of the `@theokit/sdk` public API.
39
+ * **theokit#146:** `SessionMessage` and `SessionMessagePart` moved to `types/session-message.ts`
40
+ * they became public contract (the return shape of `Agent.transcript()`), and `types/` is where this
41
+ * repo keeps public contract. They are re-exported here so the runtime and the store keep importing
42
+ * from the leaf they always did, and so the cycle-break rationale above still holds.
43
+ *
44
+ * @internal
40
45
  */
41
46
  export {};
@@ -0,0 +1,5 @@
1
+ export { JudgeCredentialError, composeJudgePrompt, judgeCallImpl } from './chunk-D7IULBF2.js';
2
+ import './chunk-SG5ZWT6C.js';
3
+ import './chunk-IVSD7L22.js';
4
+ //# sourceMappingURL=judge-call-NA2G6ZMJ.js.map
5
+ //# sourceMappingURL=judge-call-NA2G6ZMJ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"judge-call-3S3T6O2Z.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"judge-call-NA2G6ZMJ.js"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var chunkECHGWE47_cjs = require('./chunk-ECHGWE47.cjs');
4
+ require('./chunk-IHFNRNTJ.cjs');
5
+ require('./chunk-BCQ3E2ZG.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "JudgeCredentialError", {
10
+ enumerable: true,
11
+ get: function () { return chunkECHGWE47_cjs.JudgeCredentialError; }
12
+ });
13
+ Object.defineProperty(exports, "composeJudgePrompt", {
14
+ enumerable: true,
15
+ get: function () { return chunkECHGWE47_cjs.composeJudgePrompt; }
16
+ });
17
+ Object.defineProperty(exports, "judgeCallImpl", {
18
+ enumerable: true,
19
+ get: function () { return chunkECHGWE47_cjs.judgeCallImpl; }
20
+ });
21
+ //# sourceMappingURL=judge-call-U2D33JOW.cjs.map
22
+ //# sourceMappingURL=judge-call-U2D33JOW.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"judge-call-XIQJ5GIE.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"judge-call-U2D33JOW.cjs"}
package/dist/models.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkPG3QQLWS_cjs = require('./chunk-PG3QQLWS.cjs');
3
+ var chunkUSZTVNUQ_cjs = require('./chunk-USZTVNUQ.cjs');
4
4
  var chunkVYHJZVL5_cjs = require('./chunk-VYHJZVL5.cjs');
5
- var chunk4MWBKBS4_cjs = require('./chunk-4MWBKBS4.cjs');
6
- require('./chunk-KTXOHCAE.cjs');
5
+ var chunkG4XUXSRN_cjs = require('./chunk-G4XUXSRN.cjs');
6
+ require('./chunk-6NEHIHFU.cjs');
7
7
  require('./chunk-C6Y6CWYD.cjs');
8
- require('./chunk-A3MHE2MQ.cjs');
9
- var chunkBE3W4HYV_cjs = require('./chunk-BE3W4HYV.cjs');
8
+ require('./chunk-IHFNRNTJ.cjs');
9
+ var chunkBCQ3E2ZG_cjs = require('./chunk-BCQ3E2ZG.cjs');
10
10
  var crypto = require('crypto');
11
11
  var fs = require('fs');
12
12
  var os = require('os');
@@ -34,11 +34,11 @@ function capsFromCatalog(m) {
34
34
  }
35
35
  function resolveModelCapabilities(modelId) {
36
36
  const bare = stripVariantSuffix(stripRoutingPrefix(modelId));
37
- const fromIndex = chunk4MWBKBS4_cjs.getCatalogModelInfo(bare);
37
+ const fromIndex = chunkG4XUXSRN_cjs.getCatalogModelInfo(bare);
38
38
  if (fromIndex !== void 0) return capsFromCatalog(fromIndex);
39
39
  const withVendor = inferVendorPrefix(bare);
40
40
  if (withVendor !== bare) {
41
- const vendored = chunk4MWBKBS4_cjs.getCatalogModelInfo(withVendor);
41
+ const vendored = chunkG4XUXSRN_cjs.getCatalogModelInfo(withVendor);
42
42
  if (vendored !== void 0) return capsFromCatalog(vendored);
43
43
  }
44
44
  return CONSERVATIVE_DEFAULTS;
@@ -123,7 +123,7 @@ function catalogTargets() {
123
123
  if (_catalogTargets !== void 0) return _catalogTargets;
124
124
  _catalogTargets = /* @__PURE__ */ new Map();
125
125
  try {
126
- for (const entry of Object.values(chunk4MWBKBS4_cjs.loadProviderCatalog())) {
126
+ for (const entry of Object.values(chunkG4XUXSRN_cjs.loadProviderCatalog())) {
127
127
  const keys = [entry.id, ...entry.aliases ?? []];
128
128
  for (const k of keys) {
129
129
  if (!_catalogTargets.has(k)) _catalogTargets.set(k, { keys });
@@ -137,7 +137,7 @@ function resolvePatchKeys(externalId) {
137
137
  const mapped = MODELS_DEV_ID_MAP[externalId] ?? externalId;
138
138
  const fromCatalog = catalogTargets().get(mapped);
139
139
  if (fromCatalog !== void 0) return fromCatalog.keys;
140
- const profile = chunk4MWBKBS4_cjs.getProviderProfile(mapped);
140
+ const profile = chunkG4XUXSRN_cjs.getProviderProfile(mapped);
141
141
  if (profile !== void 0) return [profile.name, ...profile.aliases ?? []];
142
142
  return void 0;
143
143
  }
@@ -154,14 +154,14 @@ function patchIndexFromApiJson(raw) {
154
154
  continue;
155
155
  }
156
156
  for (const [modelId, rawModel] of Object.entries(models)) {
157
- const parsed = chunk4MWBKBS4_cjs.catalogModelSchema.safeParse(rawModel);
157
+ const parsed = chunkG4XUXSRN_cjs.catalogModelSchema.safeParse(rawModel);
158
158
  if (!parsed.success) continue;
159
- for (const key of keys) chunk4MWBKBS4_cjs.patchModelInfo(`${key}/${modelId}`, parsed.data);
159
+ for (const key of keys) chunkG4XUXSRN_cjs.patchModelInfo(`${key}/${modelId}`, parsed.data);
160
160
  patched++;
161
161
  }
162
162
  }
163
163
  if (skipped.length > 0) {
164
- chunkBE3W4HYV_cjs.diag(
164
+ chunkBCQ3E2ZG_cjs.diag(
165
165
  `[theokit-sdk] WARN: models-dev refresh skipped ${skipped.length} unknown provider(s) (e.g. ${skipped.slice(0, 3).join(", ")})
166
166
  `
167
167
  );
@@ -184,20 +184,20 @@ function loadCacheIntoIndex(url = DEFAULT_URL) {
184
184
  fs.unlinkSync(path);
185
185
  } catch {
186
186
  }
187
- chunkBE3W4HYV_cjs.diag(`[theokit-sdk] WARN: corrupt models-dev cache deleted (${path})
187
+ chunkBCQ3E2ZG_cjs.diag(`[theokit-sdk] WARN: corrupt models-dev cache deleted (${path})
188
188
  `);
189
189
  return 0;
190
190
  }
191
191
  try {
192
192
  return patchIndexFromApiJson(parsed);
193
193
  } catch (err) {
194
- chunkBE3W4HYV_cjs.diag(`[theokit-sdk] WARN: models-dev cache patch failed (${err.message})
194
+ chunkBCQ3E2ZG_cjs.diag(`[theokit-sdk] WARN: models-dev cache patch failed (${err.message})
195
195
  `);
196
196
  return 0;
197
197
  }
198
198
  }
199
199
  async function refreshModelCatalog(opts = {}) {
200
- chunk4MWBKBS4_cjs.registerBuiltins();
200
+ chunkG4XUXSRN_cjs.registerBuiltins();
201
201
  const kill = process.env.THEOKIT_DISABLE_MODELS_FETCH;
202
202
  if (kill !== void 0 && kill !== "" && kill !== "0" && kill.toLowerCase() !== "false") {
203
203
  return { source: "skipped", models: 0 };
@@ -217,7 +217,7 @@ async function refreshModelCatalog(opts = {}) {
217
217
  const fetchImpl = opts.deps?.fetch ?? fetch;
218
218
  let body;
219
219
  try {
220
- const res = await chunkPG3QQLWS_cjs.Retry.create(
220
+ const res = await chunkUSZTVNUQ_cjs.Retry.create(
221
221
  async () => {
222
222
  const r = await fetchImpl(url, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
223
223
  if (!r.ok) throw new Error(`HTTP ${r.status}`);
@@ -230,7 +230,7 @@ async function refreshModelCatalog(opts = {}) {
230
230
  body = await res.text();
231
231
  JSON.parse(body);
232
232
  } catch (err) {
233
- chunkBE3W4HYV_cjs.diag(
233
+ chunkBCQ3E2ZG_cjs.diag(
234
234
  `[theokit-sdk] WARN: models-dev refresh failed (${err.message}) \u2014 serving existing data
235
235
  `
236
236
  );
@@ -239,13 +239,13 @@ async function refreshModelCatalog(opts = {}) {
239
239
  try {
240
240
  writeCacheAtomic(path, body);
241
241
  } catch (err) {
242
- chunkBE3W4HYV_cjs.diag(`[theokit-sdk] WARN: models-dev cache write failed (${err.message})
242
+ chunkBCQ3E2ZG_cjs.diag(`[theokit-sdk] WARN: models-dev cache write failed (${err.message})
243
243
  `);
244
244
  }
245
245
  try {
246
246
  return { source: "network", models: patchIndexFromApiJson(JSON.parse(body)) };
247
247
  } catch (err) {
248
- chunkBE3W4HYV_cjs.diag(
248
+ chunkBCQ3E2ZG_cjs.diag(
249
249
  `[theokit-sdk] WARN: models-dev patch failed (${err.message}) \u2014 serving existing data
250
250
  `
251
251
  );
@@ -253,7 +253,7 @@ async function refreshModelCatalog(opts = {}) {
253
253
  }
254
254
  }
255
255
  function getModelInfo(modelId) {
256
- return chunk4MWBKBS4_cjs.getCatalogModelInfo(modelId);
256
+ return chunkG4XUXSRN_cjs.getCatalogModelInfo(modelId);
257
257
  }
258
258
 
259
259
  Object.defineProperty(exports, "parseModelId", {
package/dist/models.js CHANGED
@@ -1,11 +1,11 @@
1
- import { Retry } from './chunk-VYD6BGKK.js';
1
+ import { Retry } from './chunk-4JSZYSGW.js';
2
2
  import { parseModelId } from './chunk-X2FR4OIT.js';
3
3
  export { parseModelId } from './chunk-X2FR4OIT.js';
4
- import { getCatalogModelInfo, registerBuiltins, catalogModelSchema, patchModelInfo, getProviderProfile, loadProviderCatalog } from './chunk-3XKVRLR2.js';
5
- import './chunk-JI34KBNC.js';
4
+ import { getCatalogModelInfo, registerBuiltins, catalogModelSchema, patchModelInfo, getProviderProfile, loadProviderCatalog } from './chunk-TOTP24P6.js';
5
+ import './chunk-DKFGUOWL.js';
6
6
  import './chunk-5NBUH3NO.js';
7
- import './chunk-ZYOHF37V.js';
8
- import { diag } from './chunk-KCZW75PI.js';
7
+ import './chunk-SG5ZWT6C.js';
8
+ import { diag } from './chunk-IVSD7L22.js';
9
9
  import { createHash, randomBytes } from 'crypto';
10
10
  import { statSync, readFileSync, unlinkSync, mkdirSync, writeFileSync, renameSync } from 'fs';
11
11
  import { homedir } from 'os';
@@ -1,38 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunkQJQ2MAZF_cjs = require('./chunk-QJQ2MAZF.cjs');
4
- require('./chunk-A3MHE2MQ.cjs');
5
- require('./chunk-BE3W4HYV.cjs');
3
+ var chunk7YBJZS5P_cjs = require('./chunk-7YBJZS5P.cjs');
4
+ require('./chunk-IHFNRNTJ.cjs');
5
+ require('./chunk-BCQ3E2ZG.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "ForbiddenPathError", {
10
10
  enumerable: true,
11
- get: function () { return chunkQJQ2MAZF_cjs.ForbiddenPathError; }
11
+ get: function () { return chunk7YBJZS5P_cjs.ForbiddenPathError; }
12
12
  });
13
13
  Object.defineProperty(exports, "PathTraversalError", {
14
14
  enumerable: true,
15
- get: function () { return chunkQJQ2MAZF_cjs.PathTraversalError; }
15
+ get: function () { return chunk7YBJZS5P_cjs.PathTraversalError; }
16
16
  });
17
17
  Object.defineProperty(exports, "assertNoSymlinkEscape", {
18
18
  enumerable: true,
19
- get: function () { return chunkQJQ2MAZF_cjs.assertNoSymlinkEscape; }
19
+ get: function () { return chunk7YBJZS5P_cjs.assertNoSymlinkEscape; }
20
20
  });
21
21
  Object.defineProperty(exports, "isForbiddenPath", {
22
22
  enumerable: true,
23
- get: function () { return chunkQJQ2MAZF_cjs.isForbiddenPath; }
23
+ get: function () { return chunk7YBJZS5P_cjs.isForbiddenPath; }
24
24
  });
25
25
  Object.defineProperty(exports, "safeFilenameForId", {
26
26
  enumerable: true,
27
- get: function () { return chunkQJQ2MAZF_cjs.safeFilenameForId; }
27
+ get: function () { return chunk7YBJZS5P_cjs.safeFilenameForId; }
28
28
  });
29
29
  Object.defineProperty(exports, "safePathJoin", {
30
30
  enumerable: true,
31
- get: function () { return chunkQJQ2MAZF_cjs.safePathJoin; }
31
+ get: function () { return chunk7YBJZS5P_cjs.safePathJoin; }
32
32
  });
33
33
  Object.defineProperty(exports, "sanitizeIdentifier", {
34
34
  enumerable: true,
35
- get: function () { return chunkQJQ2MAZF_cjs.sanitizeIdentifier; }
35
+ get: function () { return chunk7YBJZS5P_cjs.sanitizeIdentifier; }
36
36
  });
37
37
  //# sourceMappingURL=path-safety.cjs.map
38
38
  //# sourceMappingURL=path-safety.cjs.map
@@ -1,5 +1,5 @@
1
- export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safeFilenameForId, safePathJoin, sanitizeIdentifier } from './chunk-JCXIDFRI.js';
2
- import './chunk-ZYOHF37V.js';
3
- import './chunk-KCZW75PI.js';
1
+ export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safeFilenameForId, safePathJoin, sanitizeIdentifier } from './chunk-J3UK2GMN.js';
2
+ import './chunk-SG5ZWT6C.js';
3
+ import './chunk-IVSD7L22.js';
4
4
  //# sourceMappingURL=path-safety.js.map
5
5
  //# sourceMappingURL=path-safety.js.map