@theokit/sdk 5.7.0 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/dist/a2a/index.cjs +6 -6
  3. package/dist/a2a/index.js +2 -2
  4. package/dist/agent-6STOEBGQ.js +59 -0
  5. package/dist/{agent-EQ5HKTWV.js.map → agent-6STOEBGQ.js.map} +1 -1
  6. package/dist/{agent-Dya5SmhY.d.cts → agent-Dh2YHSLj.d.cts} +33 -3
  7. package/dist/agent-ZM4FDDL7.cjs +68 -0
  8. package/dist/{agent-KA63WDQH.cjs.map → agent-ZM4FDDL7.cjs.map} +1 -1
  9. package/dist/{agent-Bqzdhkqr.d.ts → agent-enXXu447.d.ts} +33 -3
  10. package/dist/auth/index.cjs +32 -32
  11. package/dist/auth/index.js +5 -5
  12. package/dist/{batch-US4F6WPK.js → batch-427O54FQ.js} +7 -7
  13. package/dist/{batch-US4F6WPK.js.map → batch-427O54FQ.js.map} +1 -1
  14. package/dist/{batch-I6T6MXZO.cjs → batch-U4SO4RLX.cjs} +24 -24
  15. package/dist/{batch-I6T6MXZO.cjs.map → batch-U4SO4RLX.cjs.map} +1 -1
  16. package/dist/{chunk-44I6UYVH.js → chunk-26NEAJ6T.js} +4 -4
  17. package/dist/{chunk-44I6UYVH.js.map → chunk-26NEAJ6T.js.map} +1 -1
  18. package/dist/{chunk-A6PDYH55.js → chunk-4QCJAJAG.js} +2 -2
  19. package/dist/chunk-4QCJAJAG.js.map +1 -0
  20. package/dist/{chunk-XYFGKVZ7.js → chunk-53RDNK3H.js} +3 -3
  21. package/dist/{chunk-XYFGKVZ7.js.map → chunk-53RDNK3H.js.map} +1 -1
  22. package/dist/{chunk-CZWN4C6A.js → chunk-5522X223.js} +3 -3
  23. package/dist/{chunk-CZWN4C6A.js.map → chunk-5522X223.js.map} +1 -1
  24. package/dist/{chunk-EH6XD3FY.js → chunk-5DD4NJN3.js} +3 -3
  25. package/dist/{chunk-EH6XD3FY.js.map → chunk-5DD4NJN3.js.map} +1 -1
  26. package/dist/{chunk-V22DZIXO.js → chunk-5Q4RTLMP.js} +3 -3
  27. package/dist/{chunk-V22DZIXO.js.map → chunk-5Q4RTLMP.js.map} +1 -1
  28. package/dist/{chunk-ER5BOIYD.cjs → chunk-5WR33BHA.cjs} +22 -22
  29. package/dist/{chunk-ER5BOIYD.cjs.map → chunk-5WR33BHA.cjs.map} +1 -1
  30. package/dist/{chunk-4A3SKJ53.cjs → chunk-6PB5AQCY.cjs} +14 -14
  31. package/dist/{chunk-4A3SKJ53.cjs.map → chunk-6PB5AQCY.cjs.map} +1 -1
  32. package/dist/{chunk-PRZ3BES7.cjs → chunk-72CPLZPC.cjs} +5 -5
  33. package/dist/{chunk-PRZ3BES7.cjs.map → chunk-72CPLZPC.cjs.map} +1 -1
  34. package/dist/{chunk-HNAYCTX4.cjs → chunk-76PIKR4P.cjs} +22 -22
  35. package/dist/{chunk-HNAYCTX4.cjs.map → chunk-76PIKR4P.cjs.map} +1 -1
  36. package/dist/{chunk-EFMFILPG.js → chunk-7F7XE6CM.js} +3 -3
  37. package/dist/{chunk-EFMFILPG.js.map → chunk-7F7XE6CM.js.map} +1 -1
  38. package/dist/{chunk-7C3HWGCW.js → chunk-7GDHFV2M.js} +3 -3
  39. package/dist/{chunk-7C3HWGCW.js.map → chunk-7GDHFV2M.js.map} +1 -1
  40. package/dist/{chunk-CA5VUAP3.js → chunk-7HUCU3KK.js} +5 -5
  41. package/dist/{chunk-CA5VUAP3.js.map → chunk-7HUCU3KK.js.map} +1 -1
  42. package/dist/{chunk-4MMWFSCD.js → chunk-7JAKO3NM.js} +3 -3
  43. package/dist/{chunk-4MMWFSCD.js.map → chunk-7JAKO3NM.js.map} +1 -1
  44. package/dist/{chunk-UADQJBHR.cjs → chunk-7NQ7HJ3E.cjs} +6 -6
  45. package/dist/{chunk-UADQJBHR.cjs.map → chunk-7NQ7HJ3E.cjs.map} +1 -1
  46. package/dist/{chunk-ZLMU5EU3.cjs → chunk-ARMFXTY6.cjs} +114 -190
  47. package/dist/chunk-ARMFXTY6.cjs.map +1 -0
  48. package/dist/{chunk-5WKQDIGO.js → chunk-AY43232P.js} +4 -4
  49. package/dist/{chunk-5WKQDIGO.js.map → chunk-AY43232P.js.map} +1 -1
  50. package/dist/{chunk-7FDKWDA2.cjs → chunk-B3XXQX6L.cjs} +7 -7
  51. package/dist/{chunk-7FDKWDA2.cjs.map → chunk-B3XXQX6L.cjs.map} +1 -1
  52. package/dist/{chunk-ALUN2B4W.js → chunk-B5MHRQJZ.js} +9 -3
  53. package/dist/chunk-B5MHRQJZ.js.map +1 -0
  54. package/dist/{chunk-TA3K7SBK.js → chunk-BKMDRBJ7.js} +3 -3
  55. package/dist/{chunk-TA3K7SBK.js.map → chunk-BKMDRBJ7.js.map} +1 -1
  56. package/dist/{chunk-A575WPBL.cjs → chunk-BM6PDJW3.cjs} +260 -260
  57. package/dist/{chunk-A575WPBL.cjs.map → chunk-BM6PDJW3.cjs.map} +1 -1
  58. package/dist/{chunk-RWPLWMCZ.cjs → chunk-C7GKRGKN.cjs} +42 -21
  59. package/dist/chunk-C7GKRGKN.cjs.map +1 -0
  60. package/dist/{chunk-FUSDYC2B.cjs → chunk-CQYBJOB2.cjs} +4 -4
  61. package/dist/{chunk-FUSDYC2B.cjs.map → chunk-CQYBJOB2.cjs.map} +1 -1
  62. package/dist/{chunk-7JJ3A6AT.cjs → chunk-D5KXKBEN.cjs} +5 -5
  63. package/dist/{chunk-7JJ3A6AT.cjs.map → chunk-D5KXKBEN.cjs.map} +1 -1
  64. package/dist/{chunk-3VXQEQE4.js → chunk-DDRX4LYS.js} +4 -4
  65. package/dist/{chunk-3VXQEQE4.js.map → chunk-DDRX4LYS.js.map} +1 -1
  66. package/dist/{chunk-QDM3OHUT.cjs → chunk-ECD6ER3E.cjs} +4 -4
  67. package/dist/{chunk-QDM3OHUT.cjs.map → chunk-ECD6ER3E.cjs.map} +1 -1
  68. package/dist/{chunk-JMDDYA22.js → chunk-EJROML3Q.js} +4 -4
  69. package/dist/{chunk-JMDDYA22.js.map → chunk-EJROML3Q.js.map} +1 -1
  70. package/dist/{chunk-EIQFAOFD.js → chunk-GGRPAQ3B.js} +3 -3
  71. package/dist/{chunk-EIQFAOFD.js.map → chunk-GGRPAQ3B.js.map} +1 -1
  72. package/dist/{chunk-HCT4HPCL.cjs → chunk-GHHIJEFX.cjs} +4 -4
  73. package/dist/{chunk-HCT4HPCL.cjs.map → chunk-GHHIJEFX.cjs.map} +1 -1
  74. package/dist/{chunk-7A6535RA.cjs → chunk-GM54F4FE.cjs} +9 -9
  75. package/dist/{chunk-7A6535RA.cjs.map → chunk-GM54F4FE.cjs.map} +1 -1
  76. package/dist/{chunk-6M2OIS4Y.js → chunk-GMRFAX4I.js} +74 -4
  77. package/dist/chunk-GMRFAX4I.js.map +1 -0
  78. package/dist/{chunk-O6USDERH.js → chunk-GMSRRJ53.js} +3 -3
  79. package/dist/{chunk-O6USDERH.js.map → chunk-GMSRRJ53.js.map} +1 -1
  80. package/dist/{chunk-VE6DFSKU.js → chunk-GTX6FEDP.js} +3 -3
  81. package/dist/{chunk-VE6DFSKU.js.map → chunk-GTX6FEDP.js.map} +1 -1
  82. package/dist/{chunk-NJWYQWDL.js → chunk-H3CVJSFC.js} +3 -3
  83. package/dist/{chunk-NJWYQWDL.js.map → chunk-H3CVJSFC.js.map} +1 -1
  84. package/dist/{chunk-MYJGWS2J.cjs → chunk-HG5LKFG7.cjs} +16 -16
  85. package/dist/{chunk-MYJGWS2J.cjs.map → chunk-HG5LKFG7.cjs.map} +1 -1
  86. package/dist/{chunk-55GB6JYQ.js → chunk-HOHR75KF.js} +5 -5
  87. package/dist/{chunk-55GB6JYQ.js.map → chunk-HOHR75KF.js.map} +1 -1
  88. package/dist/{chunk-GBCVPKHE.js → chunk-HV4V63CO.js} +3 -3
  89. package/dist/{chunk-GBCVPKHE.js.map → chunk-HV4V63CO.js.map} +1 -1
  90. package/dist/{chunk-I2PWY7VM.cjs → chunk-IIYJMXYW.cjs} +4 -4
  91. package/dist/{chunk-I2PWY7VM.cjs.map → chunk-IIYJMXYW.cjs.map} +1 -1
  92. package/dist/{chunk-YYN6BB7R.cjs → chunk-J4SA2ZEJ.cjs} +4 -4
  93. package/dist/{chunk-YYN6BB7R.cjs.map → chunk-J4SA2ZEJ.cjs.map} +1 -1
  94. package/dist/{chunk-ATT276RD.cjs → chunk-J5623RIV.cjs} +78 -6
  95. package/dist/chunk-J5623RIV.cjs.map +1 -0
  96. package/dist/{chunk-KVSAY6NZ.cjs → chunk-J6GXS5A2.cjs} +13 -13
  97. package/dist/{chunk-KVSAY6NZ.cjs.map → chunk-J6GXS5A2.cjs.map} +1 -1
  98. package/dist/{chunk-NQTD6QOW.cjs → chunk-JW3GVLM6.cjs} +4 -4
  99. package/dist/{chunk-NQTD6QOW.cjs.map → chunk-JW3GVLM6.cjs.map} +1 -1
  100. package/dist/{chunk-TFG5IBZS.cjs → chunk-KGZ66JVZ.cjs} +14 -14
  101. package/dist/{chunk-TFG5IBZS.cjs.map → chunk-KGZ66JVZ.cjs.map} +1 -1
  102. package/dist/{chunk-47TF32NQ.js → chunk-KO6SHCEH.js} +3 -3
  103. package/dist/{chunk-47TF32NQ.js.map → chunk-KO6SHCEH.js.map} +1 -1
  104. package/dist/{chunk-EFETPSJZ.cjs → chunk-KTA7YTZQ.cjs} +12 -12
  105. package/dist/{chunk-EFETPSJZ.cjs.map → chunk-KTA7YTZQ.cjs.map} +1 -1
  106. package/dist/{chunk-D6POWE7E.cjs → chunk-MEUBLCM4.cjs} +11 -11
  107. package/dist/{chunk-D6POWE7E.cjs.map → chunk-MEUBLCM4.cjs.map} +1 -1
  108. package/dist/{chunk-VWUXIVEI.js → chunk-MFZODA5Y.js} +5 -5
  109. package/dist/{chunk-VWUXIVEI.js.map → chunk-MFZODA5Y.js.map} +1 -1
  110. package/dist/{chunk-4HS6FFGL.cjs → chunk-MPQJE3G4.cjs} +15 -15
  111. package/dist/{chunk-4HS6FFGL.cjs.map → chunk-MPQJE3G4.cjs.map} +1 -1
  112. package/dist/{chunk-QRVS2PRE.cjs → chunk-MPR2ISL2.cjs} +4 -4
  113. package/dist/{chunk-QRVS2PRE.cjs.map → chunk-MPR2ISL2.cjs.map} +1 -1
  114. package/dist/{chunk-UOLBAPDM.js → chunk-MQGSOKR3.js} +3 -3
  115. package/dist/{chunk-UOLBAPDM.js.map → chunk-MQGSOKR3.js.map} +1 -1
  116. package/dist/{chunk-HFEJE7AC.js → chunk-MU7IAA7G.js} +9 -9
  117. package/dist/{chunk-HFEJE7AC.js.map → chunk-MU7IAA7G.js.map} +1 -1
  118. package/dist/{chunk-EXTRW7GW.cjs → chunk-NAGPKWOD.cjs} +4 -4
  119. package/dist/{chunk-EXTRW7GW.cjs.map → chunk-NAGPKWOD.cjs.map} +1 -1
  120. package/dist/{chunk-KTTHHYEW.cjs → chunk-NJSIAJEK.cjs} +4 -4
  121. package/dist/{chunk-KTTHHYEW.cjs.map → chunk-NJSIAJEK.cjs.map} +1 -1
  122. package/dist/{chunk-Z3NTRKIC.cjs → chunk-NKIQTLFA.cjs} +4 -4
  123. package/dist/{chunk-Z3NTRKIC.cjs.map → chunk-NKIQTLFA.cjs.map} +1 -1
  124. package/dist/{chunk-N7VAE6DZ.js → chunk-NOO6GZTZ.js} +8 -84
  125. package/dist/chunk-NOO6GZTZ.js.map +1 -0
  126. package/dist/{chunk-GK3UG7YQ.cjs → chunk-OCEQ6DW2.cjs} +10 -10
  127. package/dist/{chunk-GK3UG7YQ.cjs.map → chunk-OCEQ6DW2.cjs.map} +1 -1
  128. package/dist/{chunk-BJUJT5ED.cjs → chunk-OF2CLCTH.cjs} +4 -4
  129. package/dist/{chunk-BJUJT5ED.cjs.map → chunk-OF2CLCTH.cjs.map} +1 -1
  130. package/dist/{chunk-HUFSABUZ.cjs → chunk-OLSEWLK5.cjs} +6 -6
  131. package/dist/{chunk-HUFSABUZ.cjs.map → chunk-OLSEWLK5.cjs.map} +1 -1
  132. package/dist/{chunk-DQZU7JK6.cjs → chunk-P22BZE7G.cjs} +4 -4
  133. package/dist/{chunk-DQZU7JK6.cjs.map → chunk-P22BZE7G.cjs.map} +1 -1
  134. package/dist/{chunk-QWD3CZWE.cjs → chunk-P7NNKEWO.cjs} +4 -4
  135. package/dist/{chunk-QWD3CZWE.cjs.map → chunk-P7NNKEWO.cjs.map} +1 -1
  136. package/dist/{chunk-DQNI52VV.js → chunk-PQCTDMUI.js} +3 -3
  137. package/dist/{chunk-DQNI52VV.js.map → chunk-PQCTDMUI.js.map} +1 -1
  138. package/dist/{chunk-3XSWF5AP.cjs → chunk-PSLCVSCS.cjs} +3 -3
  139. package/dist/{chunk-3XSWF5AP.cjs.map → chunk-PSLCVSCS.cjs.map} +1 -1
  140. package/dist/{chunk-FUUSIT2T.js → chunk-PYFBS6OQ.js} +34 -34
  141. package/dist/{chunk-FUUSIT2T.js.map → chunk-PYFBS6OQ.js.map} +1 -1
  142. package/dist/{chunk-YRLI5DVC.js → chunk-QDQQYRJI.js} +4 -4
  143. package/dist/{chunk-YRLI5DVC.js.map → chunk-QDQQYRJI.js.map} +1 -1
  144. package/dist/{chunk-P5S3WCSZ.js → chunk-R2C3HXR3.js} +4 -4
  145. package/dist/{chunk-P5S3WCSZ.js.map → chunk-R2C3HXR3.js.map} +1 -1
  146. package/dist/chunk-R3ZQBPA5.cjs +18 -0
  147. package/dist/{chunk-ANMJJD6D.cjs.map → chunk-R3ZQBPA5.cjs.map} +1 -1
  148. package/dist/{chunk-4NLCWGH7.cjs → chunk-RA7IE4NK.cjs} +15 -15
  149. package/dist/{chunk-4NLCWGH7.cjs.map → chunk-RA7IE4NK.cjs.map} +1 -1
  150. package/dist/{chunk-UBR5PWD7.js → chunk-SUVCHX4L.js} +3 -3
  151. package/dist/{chunk-UBR5PWD7.js.map → chunk-SUVCHX4L.js.map} +1 -1
  152. package/dist/{chunk-7KBNBPFK.cjs → chunk-SWALPLFQ.cjs} +2 -2
  153. package/dist/chunk-SWALPLFQ.cjs.map +1 -0
  154. package/dist/{chunk-E6QXZZKE.cjs → chunk-T5KOSR5Y.cjs} +11 -11
  155. package/dist/{chunk-E6QXZZKE.cjs.map → chunk-T5KOSR5Y.cjs.map} +1 -1
  156. package/dist/{chunk-R3LBRQAN.js → chunk-TC4RWP3Y.js} +6 -6
  157. package/dist/{chunk-R3LBRQAN.js.map → chunk-TC4RWP3Y.js.map} +1 -1
  158. package/dist/{chunk-XB4GI5RZ.js → chunk-TE6XVTOA.js} +3 -3
  159. package/dist/{chunk-XB4GI5RZ.js.map → chunk-TE6XVTOA.js.map} +1 -1
  160. package/dist/{chunk-33A27NFX.cjs → chunk-TTBIQTO5.cjs} +19 -19
  161. package/dist/{chunk-33A27NFX.cjs.map → chunk-TTBIQTO5.cjs.map} +1 -1
  162. package/dist/{chunk-6JG2RFGK.js → chunk-UKBBYVNS.js} +5 -5
  163. package/dist/{chunk-6JG2RFGK.js.map → chunk-UKBBYVNS.js.map} +1 -1
  164. package/dist/{chunk-J7J7J2GN.cjs → chunk-UNFBHV46.cjs} +9 -2
  165. package/dist/chunk-UNFBHV46.cjs.map +1 -0
  166. package/dist/{chunk-AAEZSPTC.js → chunk-UNZOJVVC.js} +4 -4
  167. package/dist/{chunk-AAEZSPTC.js.map → chunk-UNZOJVVC.js.map} +1 -1
  168. package/dist/{chunk-24SYBZPL.cjs → chunk-WPO3VCY4.cjs} +9 -9
  169. package/dist/{chunk-24SYBZPL.cjs.map → chunk-WPO3VCY4.cjs.map} +1 -1
  170. package/dist/{chunk-IUMAQURF.js → chunk-X6DUEDAF.js} +3 -3
  171. package/dist/{chunk-IUMAQURF.js.map → chunk-X6DUEDAF.js.map} +1 -1
  172. package/dist/{chunk-CFE6QF2Q.js → chunk-XCQ432OX.js} +3 -3
  173. package/dist/{chunk-CFE6QF2Q.js.map → chunk-XCQ432OX.js.map} +1 -1
  174. package/dist/{chunk-QWD4RDZ3.cjs → chunk-XDUGSTYJ.cjs} +15 -15
  175. package/dist/{chunk-QWD4RDZ3.cjs.map → chunk-XDUGSTYJ.cjs.map} +1 -1
  176. package/dist/{chunk-K2VMFZQ5.js → chunk-XKMVJ443.js} +5 -5
  177. package/dist/{chunk-K2VMFZQ5.js.map → chunk-XKMVJ443.js.map} +1 -1
  178. package/dist/{chunk-6PWOWXMC.js → chunk-XZHJYSPB.js} +3 -3
  179. package/dist/{chunk-6PWOWXMC.js.map → chunk-XZHJYSPB.js.map} +1 -1
  180. package/dist/{chunk-QC55H6RJ.cjs → chunk-YRJA2POB.cjs} +9 -9
  181. package/dist/{chunk-QC55H6RJ.cjs.map → chunk-YRJA2POB.cjs.map} +1 -1
  182. package/dist/{chunk-T3ZDEYTJ.js → chunk-ZDYDBXSD.js} +36 -15
  183. package/dist/chunk-ZDYDBXSD.js.map +1 -0
  184. package/dist/{chunk-DMRT67Y6.js → chunk-ZJZ7LV3A.js} +3 -3
  185. package/dist/{chunk-DMRT67Y6.js.map → chunk-ZJZ7LV3A.js.map} +1 -1
  186. package/dist/{chunk-G7BLGBRN.js → chunk-ZWFTECOE.js} +3 -3
  187. package/dist/{chunk-G7BLGBRN.js.map → chunk-ZWFTECOE.js.map} +1 -1
  188. package/dist/{compact-session-QT6RJOKO.js → compact-session-2N3ZYJTW.js} +12 -12
  189. package/dist/{compact-session-QT6RJOKO.js.map → compact-session-2N3ZYJTW.js.map} +1 -1
  190. package/dist/{compact-session-75KD2FCM.cjs → compact-session-RBPLUPCK.cjs} +21 -21
  191. package/dist/{compact-session-75KD2FCM.cjs.map → compact-session-RBPLUPCK.cjs.map} +1 -1
  192. package/dist/compaction.cjs +20 -16
  193. package/dist/compaction.d.cts +2 -0
  194. package/dist/compaction.d.ts +2 -0
  195. package/dist/compaction.js +2 -2
  196. package/dist/concurrency.cjs +5 -5
  197. package/dist/concurrency.js +3 -3
  198. package/dist/context/index.cjs +13 -9
  199. package/dist/context/index.cjs.map +1 -1
  200. package/dist/context/index.d.cts +2 -0
  201. package/dist/context/index.d.ts +2 -0
  202. package/dist/context/index.js +5 -5
  203. package/dist/context/index.js.map +1 -1
  204. package/dist/context-SXR2HLHT.js +7 -0
  205. package/dist/{context-OJIIXJCV.js.map → context-SXR2HLHT.js.map} +1 -1
  206. package/dist/context-ZOULM2RB.cjs +24 -0
  207. package/dist/{context-7RP5JXGM.cjs.map → context-ZOULM2RB.cjs.map} +1 -1
  208. package/dist/{cron-D8uB1Xh5.d.ts → cron-DTuaPMVI.d.ts} +2 -2
  209. package/dist/{cron-BwxDUscv.d.cts → cron-QTgcwcZt.d.cts} +2 -2
  210. package/dist/cron.cjs +34 -34
  211. package/dist/cron.d.cts +4 -4
  212. package/dist/cron.d.ts +4 -4
  213. package/dist/cron.js +33 -33
  214. package/dist/{errors-DrDEgyz1.d.cts → errors-BWOJeWTZ.d.cts} +25 -2
  215. package/dist/{errors-CLOAyuiv.d.ts → errors-DDvG18IB.d.ts} +25 -2
  216. package/dist/errors.cjs +25 -21
  217. package/dist/errors.d.cts +2 -2
  218. package/dist/errors.d.ts +2 -2
  219. package/dist/errors.js +1 -1
  220. package/dist/eval.cjs +44 -44
  221. package/dist/eval.js +34 -34
  222. package/dist/{executor-XQAOQOHD.cjs → executor-2SUGI3ZT.cjs} +21 -21
  223. package/dist/{executor-XQAOQOHD.cjs.map → executor-2SUGI3ZT.cjs.map} +1 -1
  224. package/dist/{executor-ZNDQDX6Q.js → executor-3NI7KNL4.js} +6 -6
  225. package/dist/{executor-ZNDQDX6Q.js.map → executor-3NI7KNL4.js.map} +1 -1
  226. package/dist/filesystem/index.cjs +11 -11
  227. package/dist/filesystem/index.js +2 -2
  228. package/dist/fs-session-store-JHBJFKVV.cjs +19 -0
  229. package/dist/{fs-session-store-E4U3P56L.cjs.map → fs-session-store-JHBJFKVV.cjs.map} +1 -1
  230. package/dist/fs-session-store-STZZFXH2.js +10 -0
  231. package/dist/{fs-session-store-77JU46UZ.js.map → fs-session-store-STZZFXH2.js.map} +1 -1
  232. package/dist/generate-object-NTKAWE7D.js +7 -0
  233. package/dist/{generate-object-BXV7BZRP.js.map → generate-object-NTKAWE7D.js.map} +1 -1
  234. package/dist/generate-object-YHTWG5DB.cjs +20 -0
  235. package/dist/{generate-object-YBI2TDJ3.cjs.map → generate-object-YHTWG5DB.cjs.map} +1 -1
  236. package/dist/index-manager-ONQJSWX5.js +17 -0
  237. package/dist/{index-manager-Z4XMRVWQ.js.map → index-manager-ONQJSWX5.js.map} +1 -1
  238. package/dist/{index-manager-W7RHSL6G.cjs → index-manager-ZGJN25FD.cjs} +9 -9
  239. package/dist/{index-manager-W7RHSL6G.cjs.map → index-manager-ZGJN25FD.cjs.map} +1 -1
  240. package/dist/index.cjs +148 -146
  241. package/dist/index.d.cts +28 -10
  242. package/dist/index.d.ts +28 -10
  243. package/dist/index.js +49 -49
  244. package/dist/{inject-session-L6MIIELT.cjs → inject-session-3FPXJDJP.cjs} +4 -4
  245. package/dist/{inject-session-L6MIIELT.cjs.map → inject-session-3FPXJDJP.cjs.map} +1 -1
  246. package/dist/{inject-session-XWWN4DAA.js → inject-session-YNNOE3O6.js} +3 -3
  247. package/dist/{inject-session-XWWN4DAA.js.map → inject-session-YNNOE3O6.js.map} +1 -1
  248. package/dist/interactive/index.cjs +3 -3
  249. package/dist/interactive/index.js +1 -1
  250. package/dist/internal/memory/adapters/index.cjs +7 -7
  251. package/dist/internal/memory/adapters/index.js +6 -6
  252. package/dist/internal/memory/storage/index.cjs +35 -35
  253. package/dist/internal/memory/storage/index.js +6 -6
  254. package/dist/internal/persistence/index.cjs +11 -11
  255. package/dist/internal/persistence/index.js +3 -3
  256. package/dist/internal/runtime/compression/compression-model-registry.d.ts +1 -0
  257. package/dist/internal/runtime/compression/compression-summarizer.d.ts +0 -14
  258. package/dist/internal/runtime/context/context-discovery.d.ts +20 -5
  259. package/dist/internal/runtime/context/context-loaders.d.ts +5 -1
  260. package/dist/internal/security/index.cjs +9 -9
  261. package/dist/internal/security/index.js +2 -2
  262. package/dist/judge-call-AQQYK6VT.cjs +22 -0
  263. package/dist/{judge-call-46M2E5FA.cjs.map → judge-call-AQQYK6VT.cjs.map} +1 -1
  264. package/dist/judge-call-LOL5FQEX.js +5 -0
  265. package/dist/{judge-call-FGUNNWEI.js.map → judge-call-LOL5FQEX.js.map} +1 -1
  266. package/dist/mcp-auth.cjs +9 -9
  267. package/dist/mcp-auth.js +2 -2
  268. package/dist/models.cjs +15 -15
  269. package/dist/models.js +6 -6
  270. package/dist/oauth-transaction-store-NP2YHZ6D.js +5 -0
  271. package/dist/{oauth-transaction-store-5RIR6D5C.js.map → oauth-transaction-store-NP2YHZ6D.js.map} +1 -1
  272. package/dist/oauth-transaction-store-ZINDV7AF.cjs +38 -0
  273. package/dist/{oauth-transaction-store-SXIE57OD.cjs.map → oauth-transaction-store-ZINDV7AF.cjs.map} +1 -1
  274. package/dist/path-safety.cjs +9 -9
  275. package/dist/path-safety.js +2 -2
  276. package/dist/persistence.cjs +16 -16
  277. package/dist/persistence.js +4 -4
  278. package/dist/project.cjs +5 -5
  279. package/dist/project.js +2 -2
  280. package/dist/providers.cjs +8 -8
  281. package/dist/providers.js +6 -6
  282. package/dist/{registry-DMWCJKRF.js → registry-5FK42CRV.js} +6 -6
  283. package/dist/{registry-DMWCJKRF.js.map → registry-5FK42CRV.js.map} +1 -1
  284. package/dist/{registry-BZQFYRTL.cjs → registry-BVTNO73E.cjs} +14 -14
  285. package/dist/{registry-BZQFYRTL.cjs.map → registry-BVTNO73E.cjs.map} +1 -1
  286. package/dist/retry.cjs +3 -3
  287. package/dist/retry.js +2 -2
  288. package/dist/{run-CTAdRU3U.d.ts → run-DsA5Ip2i.d.cts} +1 -1
  289. package/dist/{run-CTAdRU3U.d.cts → run-DsA5Ip2i.d.ts} +1 -1
  290. package/dist/sandbox/index.cjs +18 -18
  291. package/dist/sandbox/index.js +3 -3
  292. package/dist/{sdk-agent-BOiKqOgL.d.cts → sdk-agent-dNwjwCt5.d.cts} +2 -2
  293. package/dist/{sdk-agent-D4a_BR_6.d.ts → sdk-agent-wEOLXD3F.d.ts} +2 -2
  294. package/dist/server/auth/index.cjs +21 -21
  295. package/dist/server/auth/index.js +6 -6
  296. package/dist/server/errors-envelope.cjs +13 -13
  297. package/dist/server/errors-envelope.d.cts +2 -2
  298. package/dist/server/errors-envelope.d.ts +2 -2
  299. package/dist/server/errors-envelope.js +2 -2
  300. package/dist/skills.cjs +7 -7
  301. package/dist/skills.js +4 -4
  302. package/dist/stream-object-QAEHG4YO.js +7 -0
  303. package/dist/{stream-object-HBFMIZLD.js.map → stream-object-QAEHG4YO.js.map} +1 -1
  304. package/dist/stream-object-TKVGGA54.cjs +20 -0
  305. package/dist/{stream-object-QSKHISDJ.cjs.map → stream-object-TKVGGA54.cjs.map} +1 -1
  306. package/dist/subagents-loader-5TZCAIYQ.cjs +16 -0
  307. package/dist/{subagents-loader-MOO7DC4E.cjs.map → subagents-loader-5TZCAIYQ.cjs.map} +1 -1
  308. package/dist/subagents-loader-PEV3PD4Q.js +7 -0
  309. package/dist/{subagents-loader-CJFYQQU2.js.map → subagents-loader-PEV3PD4Q.js.map} +1 -1
  310. package/dist/subagents-loader.cjs +5 -5
  311. package/dist/subagents-loader.d.cts +3 -3
  312. package/dist/subagents-loader.d.ts +3 -3
  313. package/dist/subagents-loader.js +3 -3
  314. package/dist/subscription/index.cjs +3 -2
  315. package/dist/subscription/index.d.cts +1 -1
  316. package/dist/subscription/index.d.ts +1 -1
  317. package/dist/subscription/index.js +2 -2
  318. package/dist/task-store.cjs +5 -5
  319. package/dist/task-store.js +2 -2
  320. package/dist/types/agent.d.ts +12 -0
  321. package/dist/workflow.cjs +25 -25
  322. package/dist/workflow.d.cts +2 -2
  323. package/dist/workflow.d.ts +2 -2
  324. package/dist/workflow.js +4 -4
  325. package/docs/error-codes.md +8 -7
  326. package/docs/harness-capability-map.md +17 -1
  327. package/package.json +1 -1
  328. package/dist/agent-EQ5HKTWV.js +0 -59
  329. package/dist/agent-KA63WDQH.cjs +0 -68
  330. package/dist/chunk-6M2OIS4Y.js.map +0 -1
  331. package/dist/chunk-7KBNBPFK.cjs.map +0 -1
  332. package/dist/chunk-A6PDYH55.js.map +0 -1
  333. package/dist/chunk-ALUN2B4W.js.map +0 -1
  334. package/dist/chunk-ANMJJD6D.cjs +0 -18
  335. package/dist/chunk-ATT276RD.cjs.map +0 -1
  336. package/dist/chunk-J7J7J2GN.cjs.map +0 -1
  337. package/dist/chunk-N7VAE6DZ.js.map +0 -1
  338. package/dist/chunk-RWPLWMCZ.cjs.map +0 -1
  339. package/dist/chunk-T3ZDEYTJ.js.map +0 -1
  340. package/dist/chunk-ZLMU5EU3.cjs.map +0 -1
  341. package/dist/context-7RP5JXGM.cjs +0 -24
  342. package/dist/context-OJIIXJCV.js +0 -7
  343. package/dist/fs-session-store-77JU46UZ.js +0 -10
  344. package/dist/fs-session-store-E4U3P56L.cjs +0 -19
  345. package/dist/generate-object-BXV7BZRP.js +0 -7
  346. package/dist/generate-object-YBI2TDJ3.cjs +0 -20
  347. package/dist/index-manager-Z4XMRVWQ.js +0 -17
  348. package/dist/judge-call-46M2E5FA.cjs +0 -22
  349. package/dist/judge-call-FGUNNWEI.js +0 -5
  350. package/dist/oauth-transaction-store-5RIR6D5C.js +0 -5
  351. package/dist/oauth-transaction-store-SXIE57OD.cjs +0 -38
  352. package/dist/stream-object-HBFMIZLD.js +0 -7
  353. package/dist/stream-object-QSKHISDJ.cjs +0 -20
  354. package/dist/subagents-loader-CJFYQQU2.js +0 -7
  355. package/dist/subagents-loader-MOO7DC4E.cjs +0 -16
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/internal/concurrency/async-semaphore.ts"],"names":[],"mappings":";;;AA2BO,SAAS,gBAAgB,OAAA,EAAiC;AAC/D,EAAA,IAAI,CAAC,MAAA,CAAO,SAAA,CAAU,OAAO,CAAA,IAAK,UAAU,CAAA,EAAG;AAC7C,IAAA,MAAM,IAAI,kBAAA;AAAA,MACR,4DAA4D,OAAO,CAAA,CAAA;AAAA,MACnE,EAAE,MAAM,qBAAA;AAAsB,KAChC;AAAA,EACF;AACA,EAAA,IAAI,MAAA,GAAS,CAAA;AACb,EAAA,MAAM,QAA2B,EAAC;AAElC,EAAA,SAAS,QAAA,GAAiB;AACxB,IAAA,IAAI,MAAA,GAAS,OAAA,IAAW,KAAA,CAAM,MAAA,GAAS,CAAA,EAAG;AACxC,MAAA,MAAM,OAAA,GAAU,MAAM,KAAA,EAAM;AAC5B,MAAA,IAAI,YAAY,MAAA,EAAW;AACzB,QAAA,MAAA,IAAU,CAAA;AACV,QAAA,OAAA,EAAQ;AAAA,MACV;AAAA,IACF;AAAA,EACF;AAEA,EAAA,OAAO;AAAA,IACL,UAAU,MAAM,MAAA;AAAA,IAChB,OAAA,EAAS,MAAM,KAAA,CAAM,MAAA,GAAS,MAAA;AAAA,IAC9B,MAAM,OAAA,GAAU;AACd,MAAA,MAAM,IAAI,OAAA,CAAc,CAAC,OAAA,KAAY;AACnC,QAAA,KAAA,CAAM,KAAK,OAAO,CAAA;AAClB,QAAA,QAAA,EAAS;AAAA,MACX,CAAC,CAAA;AACD,MAAA,IAAI,QAAA,GAAW,KAAA;AACf,MAAA,OAAO,MAAM;AACX,QAAA,IAAI,QAAA,EAAU;AACd,QAAA,QAAA,GAAW,IAAA;AACX,QAAA,MAAA,IAAU,CAAA;AACV,QAAA,QAAA,EAAS;AAAA,MACX,CAAA;AAAA,IACF;AAAA,GACF;AACF","file":"chunk-G7BLGBRN.js","sourcesContent":["/**\n * Async-aware counting semaphore (ADR D135).\n *\n * N-permit gate for cooperative concurrency control inside a single\n * Node process. Used by `Agent.batch` to bound parallel agent count\n * without pulling in `p-limit` or `p-queue` (~30 LoC in-house).\n *\n * Contract: `acquire()` returns a release function. Caller MUST call\n * release exactly once when done — typically in a `finally` block.\n * Release is idempotent (multiple calls are no-ops after the first)\n * for defense against caller bugs, but leaking the release function\n * permanently consumes one permit (EC-G — caller responsibility).\n *\n * @internal\n */\n\nimport { ConfigurationError } from \"../../errors.js\";\n\nexport interface AsyncSemaphore {\n /** Acquire a permit. Returns the release function (call once). */\n acquire(): Promise<() => void>;\n /** Permits currently held in flight. */\n inFlight(): number;\n /** Total: in-flight + queued waiters. */\n pending(): number;\n}\n\nexport function createSemaphore(permits: number): AsyncSemaphore {\n if (!Number.isInteger(permits) || permits < 1) {\n throw new ConfigurationError(\n `async-semaphore: permits must be a positive integer, got ${permits}`,\n { code: \"invalid_concurrency\" },\n );\n }\n let active = 0;\n const queue: Array<() => void> = [];\n\n function tryGrant(): void {\n if (active < permits && queue.length > 0) {\n const resolve = queue.shift();\n if (resolve !== undefined) {\n active += 1;\n resolve();\n }\n }\n }\n\n return {\n inFlight: () => active,\n pending: () => queue.length + active,\n async acquire() {\n await new Promise<void>((resolve) => {\n queue.push(resolve);\n tryGrant();\n });\n let released = false;\n return () => {\n if (released) return;\n released = true;\n active -= 1;\n tryGrant();\n };\n },\n };\n}\n"]}
1
+ {"version":3,"sources":["../src/internal/concurrency/async-semaphore.ts"],"names":[],"mappings":";;;AA2BO,SAAS,gBAAgB,OAAA,EAAiC;AAC/D,EAAA,IAAI,CAAC,MAAA,CAAO,SAAA,CAAU,OAAO,CAAA,IAAK,UAAU,CAAA,EAAG;AAC7C,IAAA,MAAM,IAAI,kBAAA;AAAA,MACR,4DAA4D,OAAO,CAAA,CAAA;AAAA,MACnE,EAAE,MAAM,qBAAA;AAAsB,KAChC;AAAA,EACF;AACA,EAAA,IAAI,MAAA,GAAS,CAAA;AACb,EAAA,MAAM,QAA2B,EAAC;AAElC,EAAA,SAAS,QAAA,GAAiB;AACxB,IAAA,IAAI,MAAA,GAAS,OAAA,IAAW,KAAA,CAAM,MAAA,GAAS,CAAA,EAAG;AACxC,MAAA,MAAM,OAAA,GAAU,MAAM,KAAA,EAAM;AAC5B,MAAA,IAAI,YAAY,MAAA,EAAW;AACzB,QAAA,MAAA,IAAU,CAAA;AACV,QAAA,OAAA,EAAQ;AAAA,MACV;AAAA,IACF;AAAA,EACF;AAEA,EAAA,OAAO;AAAA,IACL,UAAU,MAAM,MAAA;AAAA,IAChB,OAAA,EAAS,MAAM,KAAA,CAAM,MAAA,GAAS,MAAA;AAAA,IAC9B,MAAM,OAAA,GAAU;AACd,MAAA,MAAM,IAAI,OAAA,CAAc,CAAC,OAAA,KAAY;AACnC,QAAA,KAAA,CAAM,KAAK,OAAO,CAAA;AAClB,QAAA,QAAA,EAAS;AAAA,MACX,CAAC,CAAA;AACD,MAAA,IAAI,QAAA,GAAW,KAAA;AACf,MAAA,OAAO,MAAM;AACX,QAAA,IAAI,QAAA,EAAU;AACd,QAAA,QAAA,GAAW,IAAA;AACX,QAAA,MAAA,IAAU,CAAA;AACV,QAAA,QAAA,EAAS;AAAA,MACX,CAAA;AAAA,IACF;AAAA,GACF;AACF","file":"chunk-ZWFTECOE.js","sourcesContent":["/**\n * Async-aware counting semaphore (ADR D135).\n *\n * N-permit gate for cooperative concurrency control inside a single\n * Node process. Used by `Agent.batch` to bound parallel agent count\n * without pulling in `p-limit` or `p-queue` (~30 LoC in-house).\n *\n * Contract: `acquire()` returns a release function. Caller MUST call\n * release exactly once when done — typically in a `finally` block.\n * Release is idempotent (multiple calls are no-ops after the first)\n * for defense against caller bugs, but leaking the release function\n * permanently consumes one permit (EC-G — caller responsibility).\n *\n * @internal\n */\n\nimport { ConfigurationError } from \"../../errors.js\";\n\nexport interface AsyncSemaphore {\n /** Acquire a permit. Returns the release function (call once). */\n acquire(): Promise<() => void>;\n /** Permits currently held in flight. */\n inFlight(): number;\n /** Total: in-flight + queued waiters. */\n pending(): number;\n}\n\nexport function createSemaphore(permits: number): AsyncSemaphore {\n if (!Number.isInteger(permits) || permits < 1) {\n throw new ConfigurationError(\n `async-semaphore: permits must be a positive integer, got ${permits}`,\n { code: \"invalid_concurrency\" },\n );\n }\n let active = 0;\n const queue: Array<() => void> = [];\n\n function tryGrant(): void {\n if (active < permits && queue.length > 0) {\n const resolve = queue.shift();\n if (resolve !== undefined) {\n active += 1;\n resolve();\n }\n }\n }\n\n return {\n inFlight: () => active,\n pending: () => queue.length + active,\n async acquire() {\n await new Promise<void>((resolve) => {\n queue.push(resolve);\n tryGrant();\n });\n let released = false;\n return () => {\n if (released) return;\n released = true;\n active -= 1;\n tryGrant();\n };\n },\n };\n}\n"]}
@@ -1,24 +1,24 @@
1
- export { COMPACT_SUMMARY_MARKER, COMPACT_USER_MESSAGE_MAX_TOKENS, DEFAULT_PRE_COMPACT_TIMEOUT_MS, autoCompactIfNeeded, buildDefaultSummarizer, compactSessionTranscript, isCompactSummary, resolveSummarizerRoute, shouldAutoCompact } from './chunk-N7VAE6DZ.js';
2
- import './chunk-UBR5PWD7.js';
1
+ export { COMPACT_SUMMARY_MARKER, COMPACT_USER_MESSAGE_MAX_TOKENS, DEFAULT_PRE_COMPACT_TIMEOUT_MS, autoCompactIfNeeded, buildDefaultSummarizer, compactSessionTranscript, isCompactSummary, resolveSummarizerRoute, shouldAutoCompact } from './chunk-NOO6GZTZ.js';
2
+ import './chunk-SUVCHX4L.js';
3
3
  import './chunk-2XC6KDJM.js';
4
- import './chunk-XB4GI5RZ.js';
4
+ import './chunk-TE6XVTOA.js';
5
5
  import './chunk-24MGQDK3.js';
6
6
  import './chunk-FD2UT76F.js';
7
7
  import './chunk-FJWQP6EE.js';
8
8
  import './chunk-NAF4L3T6.js';
9
- import './chunk-EH6XD3FY.js';
9
+ import './chunk-5DD4NJN3.js';
10
10
  import './chunk-UKMBRMGT.js';
11
11
  import './chunk-JOFVLOFY.js';
12
12
  import './chunk-Q5EWJPRY.js';
13
13
  import './chunk-3JHIFQ4I.js';
14
- import './chunk-6M2OIS4Y.js';
14
+ import './chunk-GMRFAX4I.js';
15
15
  import './chunk-R7WIIPUR.js';
16
- import './chunk-VWUXIVEI.js';
16
+ import './chunk-MFZODA5Y.js';
17
17
  import './chunk-AGACYRJ2.js';
18
- import './chunk-JMDDYA22.js';
19
- import './chunk-V22DZIXO.js';
20
- import './chunk-NJWYQWDL.js';
21
- import './chunk-ALUN2B4W.js';
18
+ import './chunk-EJROML3Q.js';
19
+ import './chunk-5Q4RTLMP.js';
20
+ import './chunk-H3CVJSFC.js';
21
+ import './chunk-B5MHRQJZ.js';
22
22
  import './chunk-CZJ6Q7CW.js';
23
- //# sourceMappingURL=compact-session-QT6RJOKO.js.map
24
- //# sourceMappingURL=compact-session-QT6RJOKO.js.map
23
+ //# sourceMappingURL=compact-session-2N3ZYJTW.js.map
24
+ //# sourceMappingURL=compact-session-2N3ZYJTW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"compact-session-QT6RJOKO.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"compact-session-2N3ZYJTW.js"}
@@ -1,65 +1,65 @@
1
1
  'use strict';
2
2
 
3
- var chunkZLMU5EU3_cjs = require('./chunk-ZLMU5EU3.cjs');
4
- require('./chunk-FUSDYC2B.cjs');
3
+ var chunkARMFXTY6_cjs = require('./chunk-ARMFXTY6.cjs');
4
+ require('./chunk-CQYBJOB2.cjs');
5
5
  require('./chunk-YJNYDJ2T.cjs');
6
- require('./chunk-24SYBZPL.cjs');
6
+ require('./chunk-WPO3VCY4.cjs');
7
7
  require('./chunk-QOGNZMHD.cjs');
8
8
  require('./chunk-MUUQ2WFJ.cjs');
9
9
  require('./chunk-YSTXFWQE.cjs');
10
10
  require('./chunk-FRITRLZQ.cjs');
11
- require('./chunk-7A6535RA.cjs');
11
+ require('./chunk-GM54F4FE.cjs');
12
12
  require('./chunk-SA6K24NB.cjs');
13
13
  require('./chunk-GZV6AVRL.cjs');
14
14
  require('./chunk-ZF2LDKQQ.cjs');
15
15
  require('./chunk-JLRLCBJ4.cjs');
16
- require('./chunk-ATT276RD.cjs');
16
+ require('./chunk-J5623RIV.cjs');
17
17
  require('./chunk-3EE6LVWT.cjs');
18
- require('./chunk-QC55H6RJ.cjs');
18
+ require('./chunk-YRJA2POB.cjs');
19
19
  require('./chunk-NVXXWAU7.cjs');
20
- require('./chunk-4NLCWGH7.cjs');
21
- require('./chunk-EXTRW7GW.cjs');
22
- require('./chunk-HUFSABUZ.cjs');
23
- require('./chunk-J7J7J2GN.cjs');
20
+ require('./chunk-RA7IE4NK.cjs');
21
+ require('./chunk-NAGPKWOD.cjs');
22
+ require('./chunk-OLSEWLK5.cjs');
23
+ require('./chunk-UNFBHV46.cjs');
24
24
  require('./chunk-6LHQPOMI.cjs');
25
25
 
26
26
 
27
27
 
28
28
  Object.defineProperty(exports, "COMPACT_SUMMARY_MARKER", {
29
29
  enumerable: true,
30
- get: function () { return chunkZLMU5EU3_cjs.COMPACT_SUMMARY_MARKER; }
30
+ get: function () { return chunkARMFXTY6_cjs.COMPACT_SUMMARY_MARKER; }
31
31
  });
32
32
  Object.defineProperty(exports, "COMPACT_USER_MESSAGE_MAX_TOKENS", {
33
33
  enumerable: true,
34
- get: function () { return chunkZLMU5EU3_cjs.COMPACT_USER_MESSAGE_MAX_TOKENS; }
34
+ get: function () { return chunkARMFXTY6_cjs.COMPACT_USER_MESSAGE_MAX_TOKENS; }
35
35
  });
36
36
  Object.defineProperty(exports, "DEFAULT_PRE_COMPACT_TIMEOUT_MS", {
37
37
  enumerable: true,
38
- get: function () { return chunkZLMU5EU3_cjs.DEFAULT_PRE_COMPACT_TIMEOUT_MS; }
38
+ get: function () { return chunkARMFXTY6_cjs.DEFAULT_PRE_COMPACT_TIMEOUT_MS; }
39
39
  });
40
40
  Object.defineProperty(exports, "autoCompactIfNeeded", {
41
41
  enumerable: true,
42
- get: function () { return chunkZLMU5EU3_cjs.autoCompactIfNeeded; }
42
+ get: function () { return chunkARMFXTY6_cjs.autoCompactIfNeeded; }
43
43
  });
44
44
  Object.defineProperty(exports, "buildDefaultSummarizer", {
45
45
  enumerable: true,
46
- get: function () { return chunkZLMU5EU3_cjs.buildDefaultSummarizer; }
46
+ get: function () { return chunkARMFXTY6_cjs.buildDefaultSummarizer; }
47
47
  });
48
48
  Object.defineProperty(exports, "compactSessionTranscript", {
49
49
  enumerable: true,
50
- get: function () { return chunkZLMU5EU3_cjs.compactSessionTranscript; }
50
+ get: function () { return chunkARMFXTY6_cjs.compactSessionTranscript; }
51
51
  });
52
52
  Object.defineProperty(exports, "isCompactSummary", {
53
53
  enumerable: true,
54
- get: function () { return chunkZLMU5EU3_cjs.isCompactSummary; }
54
+ get: function () { return chunkARMFXTY6_cjs.isCompactSummary; }
55
55
  });
56
56
  Object.defineProperty(exports, "resolveSummarizerRoute", {
57
57
  enumerable: true,
58
- get: function () { return chunkZLMU5EU3_cjs.resolveSummarizerRoute; }
58
+ get: function () { return chunkARMFXTY6_cjs.resolveSummarizerRoute; }
59
59
  });
60
60
  Object.defineProperty(exports, "shouldAutoCompact", {
61
61
  enumerable: true,
62
- get: function () { return chunkZLMU5EU3_cjs.shouldAutoCompact; }
62
+ get: function () { return chunkARMFXTY6_cjs.shouldAutoCompact; }
63
63
  });
64
- //# sourceMappingURL=compact-session-75KD2FCM.cjs.map
65
- //# sourceMappingURL=compact-session-75KD2FCM.cjs.map
64
+ //# sourceMappingURL=compact-session-RBPLUPCK.cjs.map
65
+ //# sourceMappingURL=compact-session-RBPLUPCK.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"compact-session-75KD2FCM.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"compact-session-RBPLUPCK.cjs"}
@@ -1,66 +1,70 @@
1
1
  'use strict';
2
2
 
3
- var chunkATT276RD_cjs = require('./chunk-ATT276RD.cjs');
4
- require('./chunk-J7J7J2GN.cjs');
3
+ var chunkJ5623RIV_cjs = require('./chunk-J5623RIV.cjs');
4
+ require('./chunk-UNFBHV46.cjs');
5
5
  require('./chunk-6LHQPOMI.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "ABSOLUTE_CONTEXT_WINDOW_CAP", {
10
10
  enumerable: true,
11
- get: function () { return chunkATT276RD_cjs.ABSOLUTE_CONTEXT_WINDOW_CAP; }
11
+ get: function () { return chunkJ5623RIV_cjs.ABSOLUTE_CONTEXT_WINDOW_CAP; }
12
12
  });
13
13
  Object.defineProperty(exports, "CHARS_PER_TOKEN", {
14
14
  enumerable: true,
15
- get: function () { return chunkATT276RD_cjs.CHARS_PER_TOKEN; }
15
+ get: function () { return chunkJ5623RIV_cjs.CHARS_PER_TOKEN; }
16
16
  });
17
17
  Object.defineProperty(exports, "CHECKPOINT_MARKER", {
18
18
  enumerable: true,
19
- get: function () { return chunkATT276RD_cjs.CHECKPOINT_MARKER; }
19
+ get: function () { return chunkJ5623RIV_cjs.CHECKPOINT_MARKER; }
20
20
  });
21
21
  Object.defineProperty(exports, "CONTEXT_WINDOW_FLOOR", {
22
22
  enumerable: true,
23
- get: function () { return chunkATT276RD_cjs.CONTEXT_WINDOW_FLOOR; }
23
+ get: function () { return chunkJ5623RIV_cjs.CONTEXT_WINDOW_FLOOR; }
24
24
  });
25
25
  Object.defineProperty(exports, "CONTEXT_WINDOW_MARGIN", {
26
26
  enumerable: true,
27
- get: function () { return chunkATT276RD_cjs.CONTEXT_WINDOW_MARGIN; }
27
+ get: function () { return chunkJ5623RIV_cjs.CONTEXT_WINDOW_MARGIN; }
28
+ });
29
+ Object.defineProperty(exports, "CompressionModelUnresolvedError", {
30
+ enumerable: true,
31
+ get: function () { return chunkJ5623RIV_cjs.CompressionModelUnresolvedError; }
28
32
  });
29
33
  Object.defineProperty(exports, "ContextWindowMarginError", {
30
34
  enumerable: true,
31
- get: function () { return chunkATT276RD_cjs.ContextWindowMarginError; }
35
+ get: function () { return chunkJ5623RIV_cjs.ContextWindowMarginError; }
32
36
  });
33
37
  Object.defineProperty(exports, "SUMMARY_TEMPLATE", {
34
38
  enumerable: true,
35
- get: function () { return chunkATT276RD_cjs.SUMMARY_TEMPLATE; }
39
+ get: function () { return chunkJ5623RIV_cjs.SUMMARY_TEMPLATE; }
36
40
  });
37
41
  Object.defineProperty(exports, "buildCheckpoint", {
38
42
  enumerable: true,
39
- get: function () { return chunkATT276RD_cjs.buildCheckpoint; }
43
+ get: function () { return chunkJ5623RIV_cjs.buildCheckpoint; }
40
44
  });
41
45
  Object.defineProperty(exports, "compactTranscript", {
42
46
  enumerable: true,
43
- get: function () { return chunkATT276RD_cjs.compactTranscript; }
47
+ get: function () { return chunkJ5623RIV_cjs.compactTranscript; }
44
48
  });
45
49
  Object.defineProperty(exports, "estimateTokens", {
46
50
  enumerable: true,
47
- get: function () { return chunkATT276RD_cjs.estimateTokens; }
51
+ get: function () { return chunkJ5623RIV_cjs.estimateTokens; }
48
52
  });
49
53
  Object.defineProperty(exports, "filterFromLatestCheckpoint", {
50
54
  enumerable: true,
51
- get: function () { return chunkATT276RD_cjs.filterFromLatestCheckpoint; }
55
+ get: function () { return chunkJ5623RIV_cjs.filterFromLatestCheckpoint; }
52
56
  });
53
57
  Object.defineProperty(exports, "isContextOverflowError", {
54
58
  enumerable: true,
55
- get: function () { return chunkATT276RD_cjs.isContextOverflowError; }
59
+ get: function () { return chunkJ5623RIV_cjs.isContextOverflowError; }
56
60
  });
57
61
  Object.defineProperty(exports, "resolveEffectiveContextWindow", {
58
62
  enumerable: true,
59
- get: function () { return chunkATT276RD_cjs.resolveEffectiveContextWindow; }
63
+ get: function () { return chunkJ5623RIV_cjs.resolveEffectiveContextWindow; }
60
64
  });
61
65
  Object.defineProperty(exports, "shouldCompact", {
62
66
  enumerable: true,
63
- get: function () { return chunkATT276RD_cjs.shouldCompact; }
67
+ get: function () { return chunkJ5623RIV_cjs.shouldCompact; }
64
68
  });
65
69
  //# sourceMappingURL=compaction.cjs.map
66
70
  //# sourceMappingURL=compaction.cjs.map
@@ -238,3 +238,5 @@ export declare function estimateTokens(text: string): number;
238
238
  * from the per-model catalog.
239
239
  */
240
240
  export declare function shouldCompact(input: ShouldCompactInput): boolean;
241
+ export type { CompressionConfig } from "./internal/runtime/compression/compression-config.js";
242
+ export { CompressionModelUnresolvedError } from "./internal/runtime/compression/compression-model-registry.js";
@@ -238,3 +238,5 @@ export declare function estimateTokens(text: string): number;
238
238
  * from the per-model catalog.
239
239
  */
240
240
  export declare function shouldCompact(input: ShouldCompactInput): boolean;
241
+ export type { CompressionConfig } from "./internal/runtime/compression/compression-config.js";
242
+ export { CompressionModelUnresolvedError } from "./internal/runtime/compression/compression-model-registry.js";
@@ -1,5 +1,5 @@
1
- export { ABSOLUTE_CONTEXT_WINDOW_CAP, CHARS_PER_TOKEN, CHECKPOINT_MARKER, CONTEXT_WINDOW_FLOOR, CONTEXT_WINDOW_MARGIN, ContextWindowMarginError, SUMMARY_TEMPLATE, buildCheckpoint, compactTranscript, estimateTokens, filterFromLatestCheckpoint, isContextOverflowError, resolveEffectiveContextWindow, shouldCompact } from './chunk-6M2OIS4Y.js';
2
- import './chunk-ALUN2B4W.js';
1
+ export { ABSOLUTE_CONTEXT_WINDOW_CAP, CHARS_PER_TOKEN, CHECKPOINT_MARKER, CONTEXT_WINDOW_FLOOR, CONTEXT_WINDOW_MARGIN, CompressionModelUnresolvedError, ContextWindowMarginError, SUMMARY_TEMPLATE, buildCheckpoint, compactTranscript, estimateTokens, filterFromLatestCheckpoint, isContextOverflowError, resolveEffectiveContextWindow, shouldCompact } from './chunk-GMRFAX4I.js';
2
+ import './chunk-B5MHRQJZ.js';
3
3
  import './chunk-CZJ6Q7CW.js';
4
4
  //# sourceMappingURL=compaction.js.map
5
5
  //# sourceMappingURL=compaction.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkI2PWY7VM_cjs = require('./chunk-I2PWY7VM.cjs');
4
- var chunkKTTHHYEW_cjs = require('./chunk-KTTHHYEW.cjs');
5
- require('./chunk-J7J7J2GN.cjs');
3
+ var chunkIIYJMXYW_cjs = require('./chunk-IIYJMXYW.cjs');
4
+ var chunkNJSIAJEK_cjs = require('./chunk-NJSIAJEK.cjs');
5
+ require('./chunk-UNFBHV46.cjs');
6
6
  require('./chunk-6LHQPOMI.cjs');
7
7
 
8
8
  // src/concurrency.ts
@@ -10,13 +10,13 @@ var Semaphore = class {
10
10
  constructor() {
11
11
  }
12
12
  static create(permits) {
13
- return chunkKTTHHYEW_cjs.createSemaphore(permits);
13
+ return chunkNJSIAJEK_cjs.createSemaphore(permits);
14
14
  }
15
15
  };
16
16
 
17
17
  Object.defineProperty(exports, "mapWithConcurrency", {
18
18
  enumerable: true,
19
- get: function () { return chunkI2PWY7VM_cjs.mapWithConcurrency; }
19
+ get: function () { return chunkIIYJMXYW_cjs.mapWithConcurrency; }
20
20
  });
21
21
  exports.Semaphore = Semaphore;
22
22
  //# sourceMappingURL=concurrency.cjs.map
@@ -1,6 +1,6 @@
1
- export { mapWithConcurrency } from './chunk-4MMWFSCD.js';
2
- import { createSemaphore } from './chunk-G7BLGBRN.js';
3
- import './chunk-ALUN2B4W.js';
1
+ export { mapWithConcurrency } from './chunk-7JAKO3NM.js';
2
+ import { createSemaphore } from './chunk-ZWFTECOE.js';
3
+ import './chunk-B5MHRQJZ.js';
4
4
  import './chunk-CZJ6Q7CW.js';
5
5
 
6
6
  // src/concurrency.ts
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkEFETPSJZ_cjs = require('../chunk-EFETPSJZ.cjs');
4
- require('../chunk-GK3UG7YQ.cjs');
3
+ var chunkKTA7YTZQ_cjs = require('../chunk-KTA7YTZQ.cjs');
4
+ require('../chunk-OCEQ6DW2.cjs');
5
5
  require('../chunk-KRD3GQAA.cjs');
6
- var chunk7KBNBPFK_cjs = require('../chunk-7KBNBPFK.cjs');
6
+ var chunkSWALPLFQ_cjs = require('../chunk-SWALPLFQ.cjs');
7
7
  require('../chunk-SA6K24NB.cjs');
8
8
  require('../chunk-TY56BKSK.cjs');
9
- require('../chunk-J7J7J2GN.cjs');
9
+ require('../chunk-UNFBHV46.cjs');
10
10
  require('../chunk-6LHQPOMI.cjs');
11
11
 
12
12
  // src/context/index.ts
@@ -17,24 +17,28 @@ function resolveContextImports(content, basePath, options) {
17
17
  maxBytesPerFile: options.maxBytesPerFile,
18
18
  projectRoot: options.projectRoot
19
19
  };
20
- return chunkEFETPSJZ_cjs.resolveImports(content, basePath, internalOptions);
20
+ return chunkKTA7YTZQ_cjs.resolveImports(content, basePath, internalOptions);
21
21
  }
22
22
 
23
23
  Object.defineProperty(exports, "parseRules", {
24
24
  enumerable: true,
25
- get: function () { return chunkEFETPSJZ_cjs.parseRules; }
25
+ get: function () { return chunkKTA7YTZQ_cjs.parseRules; }
26
26
  });
27
27
  Object.defineProperty(exports, "runDiscovery", {
28
28
  enumerable: true,
29
- get: function () { return chunkEFETPSJZ_cjs.runDiscovery; }
29
+ get: function () { return chunkKTA7YTZQ_cjs.runDiscovery; }
30
30
  });
31
31
  Object.defineProperty(exports, "shouldActivateRule", {
32
32
  enumerable: true,
33
- get: function () { return chunkEFETPSJZ_cjs.shouldActivateRule; }
33
+ get: function () { return chunkKTA7YTZQ_cjs.shouldActivateRule; }
34
34
  });
35
35
  Object.defineProperty(exports, "DEFAULT_DISCOVERY_SPECS", {
36
36
  enumerable: true,
37
- get: function () { return chunk7KBNBPFK_cjs.DEFAULT_DISCOVERY_SPECS; }
37
+ get: function () { return chunkSWALPLFQ_cjs.DEFAULT_DISCOVERY_SPECS; }
38
+ });
39
+ Object.defineProperty(exports, "withheldSpecs", {
40
+ enumerable: true,
41
+ get: function () { return chunkSWALPLFQ_cjs.withheldSpecs; }
38
42
  });
39
43
  exports.resolveContextImports = resolveContextImports;
40
44
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/context/index.ts"],"names":["resolveImports"],"mappings":";;;;;;;;;;;;AA+FO,SAAS,qBAAA,CACd,OAAA,EACA,QAAA,EACA,OAAA,EACiB;AACjB,EAAA,MAAM,eAAA,GAAyC;AAAA,IAC7C,OAAA,EAAS,OAAA,CAAQ,OAAA,oBAAW,IAAI,GAAA,EAAY;AAAA,IAC5C,KAAA,EAAO,QAAQ,KAAA,IAAS,CAAA;AAAA,IACxB,iBAAiB,OAAA,CAAQ,eAAA;AAAA,IACzB,aAAa,OAAA,CAAQ;AAAA,GACvB;AACA,EAAA,OAAOA,gCAAA,CAAuB,OAAA,EAAS,QAAA,EAAU,eAAe,CAAA;AAClE","file":"index.cjs","sourcesContent":["/**\n * `@theokit/sdk/context` — context assembly, as a SANCTIONED PUBLIC surface.\n *\n * Everything re-exported here is under semver. That is the whole difference from the\n * `internal/*` subpaths (`internal/persistence`, `internal/security`, `internal/memory-adapters`),\n * which the package documents as \"internal API — semver-exempt\" and is retiring:\n * `internal/persistence` is `@deprecated` in favour of the sanctioned `@theokit/sdk/persistence`,\n * and `internal/plugins` + `internal/observability` were deleted as dead public surface in July.\n *\n * **The list is explicit and there is no `export *`.** The tree behind it holds 13 files, including\n * YAML shims and parser internals a consumer never needs. Publishing the directory would commit\n * this package to every file in it; widening this list is a deliberate act.\n *\n * @public\n */\n\nimport {\n type ResolveImportsOptions,\n resolveImports as resolveImportsInternal,\n} from \"../internal/runtime/context/context-import-resolver.js\";\n\nexport type {\n DiscoveryParser,\n DiscoveryScope,\n DiscoverySpec,\n} from \"../internal/runtime/context/context-discovery.js\";\n/**\n * The seven conventions {@link runDiscovery} looks for when `specs` is omitted — `AGENTS.md`,\n * `GEMINI.md`, `CLAUDE.md`, `.cursor/rules/*.mdc`, `.theokit/rules/*.md`, `.theokit/context/*.md`\n * and `.theokit/THEO.md`.\n *\n * Exported because `specs` REPLACES this list rather than extending it. Without the constant, a\n * consumer registering one convention of its own silently loses every built-in one, and the loss is\n * invisible — discovery simply returns fewer sources. Spread it to extend:\n *\n * ```ts\n * await runDiscovery({ cwd, maxBytesPerFile, specs: [...DEFAULT_DISCOVERY_SPECS, mySpec] });\n * ```\n *\n * @public\n */\nexport { DEFAULT_DISCOVERY_SPECS } from \"../internal/runtime/context/context-discovery.js\";\nexport {\n type DiscoveryRunnerOptions,\n runDiscovery,\n} from \"../internal/runtime/context/context-discovery-runner.js\";\nexport {\n parseRules,\n shouldActivateRule,\n} from \"../internal/runtime/context/context-rules-frontmatter.js\";\n\n/**\n * Options for {@link resolveContextImports}.\n *\n * `projectRoot` is REQUIRED here and OPTIONAL on the internal `resolveImports`, and the asymmetry\n * is the point rather than an oversight.\n *\n * Internally the field has to be optional: it was added in 4.41.1 to close a defect where a\n * repository-supplied `CLAUDE.md` could name `@~/.ssh/id_rsa` and have that file inlined into the\n * agent's system prompt, and making it required would have broken every caller that predates it.\n *\n * As a PUBLIC contract the same optionality inverts into a trap. The obvious call omits the field,\n * compiles, and silently restores the un-contained behaviour — so the easiest way to use the API\n * would be the unsafe one, published under semver and therefore unfixable without a breaking\n * change. Requiring it makes the safe call the only call.\n *\n * @public\n */\nexport interface ResolveContextImportsOptions {\n /**\n * The directory an `@import` may not escape, compared after symlink resolution.\n *\n * A document carrying imports is repository-controlled — untrusted input whenever the repository\n * came from somewhere else — so the boundary is not optional.\n */\n readonly projectRoot: string;\n /** Per-import file cap, forwarded to the loader. */\n readonly maxBytesPerFile: number;\n /** Absolute paths already resolved, for cycle detection. Defaults to an empty set. */\n readonly visited?: Set<string>;\n /** Current recursion depth. Defaults to 0; the resolver caps at 5 hops. */\n readonly depth?: number;\n}\n\n/**\n * Expand `@path` import directives in `content`, confined to `options.projectRoot`.\n *\n * A line that is exactly `@some/path` is replaced with that file's content, recursively, with cycle\n * detection and a 5-hop cap. A target resolving outside the root — by `..`, by an absolute path, by\n * `~/`, or through a symlink — is replaced with a refusal placeholder rather than its bytes, and the\n * placeholder echoes the path as the author wrote it rather than as resolved, so a refusal does not\n * leak the layout of the machine back into the same untrusted document.\n *\n * @public\n */\nexport function resolveContextImports(\n content: string,\n basePath: string,\n options: ResolveContextImportsOptions,\n): Promise<string> {\n const internalOptions: ResolveImportsOptions = {\n visited: options.visited ?? new Set<string>(),\n depth: options.depth ?? 0,\n maxBytesPerFile: options.maxBytesPerFile,\n projectRoot: options.projectRoot,\n };\n return resolveImportsInternal(content, basePath, internalOptions);\n}\n"]}
1
+ {"version":3,"sources":["../../src/context/index.ts"],"names":["resolveImports"],"mappings":";;;;;;;;;;;;AA+FO,SAAS,qBAAA,CACd,OAAA,EACA,QAAA,EACA,OAAA,EACiB;AACjB,EAAA,MAAM,eAAA,GAAyC;AAAA,IAC7C,OAAA,EAAS,OAAA,CAAQ,OAAA,oBAAW,IAAI,GAAA,EAAY;AAAA,IAC5C,KAAA,EAAO,QAAQ,KAAA,IAAS,CAAA;AAAA,IACxB,iBAAiB,OAAA,CAAQ,eAAA;AAAA,IACzB,aAAa,OAAA,CAAQ;AAAA,GACvB;AACA,EAAA,OAAOA,gCAAA,CAAuB,OAAA,EAAS,QAAA,EAAU,eAAe,CAAA;AAClE","file":"index.cjs","sourcesContent":["/**\n * `@theokit/sdk/context` — context assembly, as a SANCTIONED PUBLIC surface.\n *\n * Everything re-exported here is under semver. That is the whole difference from the\n * `internal/*` subpaths (`internal/persistence`, `internal/security`, `internal/memory-adapters`),\n * which the package documents as \"internal API — semver-exempt\" and is retiring:\n * `internal/persistence` is `@deprecated` in favour of the sanctioned `@theokit/sdk/persistence`,\n * and `internal/plugins` + `internal/observability` were deleted as dead public surface in July.\n *\n * **The list is explicit and there is no `export *`.** The tree behind it holds 13 files, including\n * YAML shims and parser internals a consumer never needs. Publishing the directory would commit\n * this package to every file in it; widening this list is a deliberate act.\n *\n * @public\n */\n\nimport {\n type ResolveImportsOptions,\n resolveImports as resolveImportsInternal,\n} from \"../internal/runtime/context/context-import-resolver.js\";\n\nexport type {\n DiscoveryParser,\n DiscoveryScope,\n DiscoverySpec,\n} from \"../internal/runtime/context/context-discovery.js\";\n/**\n * The seven conventions {@link runDiscovery} looks for when `specs` is omitted — `AGENTS.md`,\n * `GEMINI.md`, `CLAUDE.md`, `.cursor/rules/*.mdc`, `.theokit/rules/*.md`, `.theokit/context/*.md`\n * and `.theokit/THEO.md`.\n *\n * Exported because `specs` REPLACES this list rather than extending it. Without the constant, a\n * consumer registering one convention of its own silently loses every built-in one, and the loss is\n * invisible — discovery simply returns fewer sources. Spread it to extend:\n *\n * ```ts\n * await runDiscovery({ cwd, maxBytesPerFile, specs: [...DEFAULT_DISCOVERY_SPECS, mySpec] });\n * ```\n *\n * @public\n */\nexport { DEFAULT_DISCOVERY_SPECS } from \"../internal/runtime/context/context-discovery.js\";\nexport {\n type DiscoveryRunnerOptions,\n runDiscovery,\n} from \"../internal/runtime/context/context-discovery-runner.js\";\nexport {\n parseRules,\n shouldActivateRule,\n} from \"../internal/runtime/context/context-rules-frontmatter.js\";\n\n/**\n * Options for {@link resolveContextImports}.\n *\n * `projectRoot` is REQUIRED here and OPTIONAL on the internal `resolveImports`, and the asymmetry\n * is the point rather than an oversight.\n *\n * Internally the field has to be optional: it was added in 4.41.1 to close a defect where a\n * repository-supplied `CLAUDE.md` could name `@~/.ssh/id_rsa` and have that file inlined into the\n * agent's system prompt, and making it required would have broken every caller that predates it.\n *\n * As a PUBLIC contract the same optionality inverts into a trap. The obvious call omits the field,\n * compiles, and silently restores the un-contained behaviour — so the easiest way to use the API\n * would be the unsafe one, published under semver and therefore unfixable without a breaking\n * change. Requiring it makes the safe call the only call.\n *\n * @public\n */\nexport interface ResolveContextImportsOptions {\n /**\n * The directory an `@import` may not escape, compared after symlink resolution.\n *\n * A document carrying imports is repository-controlled — untrusted input whenever the repository\n * came from somewhere else — so the boundary is not optional.\n */\n readonly projectRoot: string;\n /** Per-import file cap, forwarded to the loader. */\n readonly maxBytesPerFile: number;\n /** Absolute paths already resolved, for cycle detection. Defaults to an empty set. */\n readonly visited?: Set<string>;\n /** Current recursion depth. Defaults to 0; the resolver caps at 5 hops. */\n readonly depth?: number;\n}\n\n/**\n * Expand `@path` import directives in `content`, confined to `options.projectRoot`.\n *\n * A line that is exactly `@some/path` is replaced with that file's content, recursively, with cycle\n * detection and a 5-hop cap. A target resolving outside the root — by `..`, by an absolute path, by\n * `~/`, or through a symlink — is replaced with a refusal placeholder rather than its bytes, and the\n * placeholder echoes the path as the author wrote it rather than as resolved, so a refusal does not\n * leak the layout of the machine back into the same untrusted document.\n *\n * @public\n */\nexport function resolveContextImports(\n content: string,\n basePath: string,\n options: ResolveContextImportsOptions,\n): Promise<string> {\n const internalOptions: ResolveImportsOptions = {\n visited: options.visited ?? new Set<string>(),\n depth: options.depth ?? 0,\n maxBytesPerFile: options.maxBytesPerFile,\n projectRoot: options.projectRoot,\n };\n return resolveImportsInternal(content, basePath, internalOptions);\n}\nexport type { WithheldSpec } from \"../internal/runtime/context/context-discovery.js\";\nexport { withheldSpecs } from \"../internal/runtime/context/context-discovery.js\";\n"]}
@@ -76,3 +76,5 @@ export interface ResolveContextImportsOptions {
76
76
  * @public
77
77
  */
78
78
  export declare function resolveContextImports(content: string, basePath: string, options: ResolveContextImportsOptions): Promise<string>;
79
+ export type { WithheldSpec } from "../internal/runtime/context/context-discovery.js";
80
+ export { withheldSpecs } from "../internal/runtime/context/context-discovery.js";
@@ -76,3 +76,5 @@ export interface ResolveContextImportsOptions {
76
76
  * @public
77
77
  */
78
78
  export declare function resolveContextImports(content: string, basePath: string, options: ResolveContextImportsOptions): Promise<string>;
79
+ export type { WithheldSpec } from "../internal/runtime/context/context-discovery.js";
80
+ export { withheldSpecs } from "../internal/runtime/context/context-discovery.js";
@@ -1,11 +1,11 @@
1
- import { resolveImports } from '../chunk-3VXQEQE4.js';
2
- export { parseRules, runDiscovery, shouldActivateRule } from '../chunk-3VXQEQE4.js';
3
- import '../chunk-7C3HWGCW.js';
1
+ import { resolveImports } from '../chunk-DDRX4LYS.js';
2
+ export { parseRules, runDiscovery, shouldActivateRule } from '../chunk-DDRX4LYS.js';
3
+ import '../chunk-7GDHFV2M.js';
4
4
  import '../chunk-KVNWIAO4.js';
5
- export { DEFAULT_DISCOVERY_SPECS } from '../chunk-A6PDYH55.js';
5
+ export { DEFAULT_DISCOVERY_SPECS, withheldSpecs } from '../chunk-4QCJAJAG.js';
6
6
  import '../chunk-UKMBRMGT.js';
7
7
  import '../chunk-X7EUUHXU.js';
8
- import '../chunk-ALUN2B4W.js';
8
+ import '../chunk-B5MHRQJZ.js';
9
9
  import '../chunk-CZJ6Q7CW.js';
10
10
 
11
11
  // src/context/index.ts
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;AA+FO,SAAS,qBAAA,CACd,OAAA,EACA,QAAA,EACA,OAAA,EACiB;AACjB,EAAA,MAAM,eAAA,GAAyC;AAAA,IAC7C,OAAA,EAAS,OAAA,CAAQ,OAAA,oBAAW,IAAI,GAAA,EAAY;AAAA,IAC5C,KAAA,EAAO,QAAQ,KAAA,IAAS,CAAA;AAAA,IACxB,iBAAiB,OAAA,CAAQ,eAAA;AAAA,IACzB,aAAa,OAAA,CAAQ;AAAA,GACvB;AACA,EAAA,OAAO,cAAA,CAAuB,OAAA,EAAS,QAAA,EAAU,eAAe,CAAA;AAClE","file":"index.js","sourcesContent":["/**\n * `@theokit/sdk/context` — context assembly, as a SANCTIONED PUBLIC surface.\n *\n * Everything re-exported here is under semver. That is the whole difference from the\n * `internal/*` subpaths (`internal/persistence`, `internal/security`, `internal/memory-adapters`),\n * which the package documents as \"internal API — semver-exempt\" and is retiring:\n * `internal/persistence` is `@deprecated` in favour of the sanctioned `@theokit/sdk/persistence`,\n * and `internal/plugins` + `internal/observability` were deleted as dead public surface in July.\n *\n * **The list is explicit and there is no `export *`.** The tree behind it holds 13 files, including\n * YAML shims and parser internals a consumer never needs. Publishing the directory would commit\n * this package to every file in it; widening this list is a deliberate act.\n *\n * @public\n */\n\nimport {\n type ResolveImportsOptions,\n resolveImports as resolveImportsInternal,\n} from \"../internal/runtime/context/context-import-resolver.js\";\n\nexport type {\n DiscoveryParser,\n DiscoveryScope,\n DiscoverySpec,\n} from \"../internal/runtime/context/context-discovery.js\";\n/**\n * The seven conventions {@link runDiscovery} looks for when `specs` is omitted — `AGENTS.md`,\n * `GEMINI.md`, `CLAUDE.md`, `.cursor/rules/*.mdc`, `.theokit/rules/*.md`, `.theokit/context/*.md`\n * and `.theokit/THEO.md`.\n *\n * Exported because `specs` REPLACES this list rather than extending it. Without the constant, a\n * consumer registering one convention of its own silently loses every built-in one, and the loss is\n * invisible — discovery simply returns fewer sources. Spread it to extend:\n *\n * ```ts\n * await runDiscovery({ cwd, maxBytesPerFile, specs: [...DEFAULT_DISCOVERY_SPECS, mySpec] });\n * ```\n *\n * @public\n */\nexport { DEFAULT_DISCOVERY_SPECS } from \"../internal/runtime/context/context-discovery.js\";\nexport {\n type DiscoveryRunnerOptions,\n runDiscovery,\n} from \"../internal/runtime/context/context-discovery-runner.js\";\nexport {\n parseRules,\n shouldActivateRule,\n} from \"../internal/runtime/context/context-rules-frontmatter.js\";\n\n/**\n * Options for {@link resolveContextImports}.\n *\n * `projectRoot` is REQUIRED here and OPTIONAL on the internal `resolveImports`, and the asymmetry\n * is the point rather than an oversight.\n *\n * Internally the field has to be optional: it was added in 4.41.1 to close a defect where a\n * repository-supplied `CLAUDE.md` could name `@~/.ssh/id_rsa` and have that file inlined into the\n * agent's system prompt, and making it required would have broken every caller that predates it.\n *\n * As a PUBLIC contract the same optionality inverts into a trap. The obvious call omits the field,\n * compiles, and silently restores the un-contained behaviour — so the easiest way to use the API\n * would be the unsafe one, published under semver and therefore unfixable without a breaking\n * change. Requiring it makes the safe call the only call.\n *\n * @public\n */\nexport interface ResolveContextImportsOptions {\n /**\n * The directory an `@import` may not escape, compared after symlink resolution.\n *\n * A document carrying imports is repository-controlled — untrusted input whenever the repository\n * came from somewhere else — so the boundary is not optional.\n */\n readonly projectRoot: string;\n /** Per-import file cap, forwarded to the loader. */\n readonly maxBytesPerFile: number;\n /** Absolute paths already resolved, for cycle detection. Defaults to an empty set. */\n readonly visited?: Set<string>;\n /** Current recursion depth. Defaults to 0; the resolver caps at 5 hops. */\n readonly depth?: number;\n}\n\n/**\n * Expand `@path` import directives in `content`, confined to `options.projectRoot`.\n *\n * A line that is exactly `@some/path` is replaced with that file's content, recursively, with cycle\n * detection and a 5-hop cap. A target resolving outside the root — by `..`, by an absolute path, by\n * `~/`, or through a symlink — is replaced with a refusal placeholder rather than its bytes, and the\n * placeholder echoes the path as the author wrote it rather than as resolved, so a refusal does not\n * leak the layout of the machine back into the same untrusted document.\n *\n * @public\n */\nexport function resolveContextImports(\n content: string,\n basePath: string,\n options: ResolveContextImportsOptions,\n): Promise<string> {\n const internalOptions: ResolveImportsOptions = {\n visited: options.visited ?? new Set<string>(),\n depth: options.depth ?? 0,\n maxBytesPerFile: options.maxBytesPerFile,\n projectRoot: options.projectRoot,\n };\n return resolveImportsInternal(content, basePath, internalOptions);\n}\n"]}
1
+ {"version":3,"sources":["../../src/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;AA+FO,SAAS,qBAAA,CACd,OAAA,EACA,QAAA,EACA,OAAA,EACiB;AACjB,EAAA,MAAM,eAAA,GAAyC;AAAA,IAC7C,OAAA,EAAS,OAAA,CAAQ,OAAA,oBAAW,IAAI,GAAA,EAAY;AAAA,IAC5C,KAAA,EAAO,QAAQ,KAAA,IAAS,CAAA;AAAA,IACxB,iBAAiB,OAAA,CAAQ,eAAA;AAAA,IACzB,aAAa,OAAA,CAAQ;AAAA,GACvB;AACA,EAAA,OAAO,cAAA,CAAuB,OAAA,EAAS,QAAA,EAAU,eAAe,CAAA;AAClE","file":"index.js","sourcesContent":["/**\n * `@theokit/sdk/context` — context assembly, as a SANCTIONED PUBLIC surface.\n *\n * Everything re-exported here is under semver. That is the whole difference from the\n * `internal/*` subpaths (`internal/persistence`, `internal/security`, `internal/memory-adapters`),\n * which the package documents as \"internal API — semver-exempt\" and is retiring:\n * `internal/persistence` is `@deprecated` in favour of the sanctioned `@theokit/sdk/persistence`,\n * and `internal/plugins` + `internal/observability` were deleted as dead public surface in July.\n *\n * **The list is explicit and there is no `export *`.** The tree behind it holds 13 files, including\n * YAML shims and parser internals a consumer never needs. Publishing the directory would commit\n * this package to every file in it; widening this list is a deliberate act.\n *\n * @public\n */\n\nimport {\n type ResolveImportsOptions,\n resolveImports as resolveImportsInternal,\n} from \"../internal/runtime/context/context-import-resolver.js\";\n\nexport type {\n DiscoveryParser,\n DiscoveryScope,\n DiscoverySpec,\n} from \"../internal/runtime/context/context-discovery.js\";\n/**\n * The seven conventions {@link runDiscovery} looks for when `specs` is omitted — `AGENTS.md`,\n * `GEMINI.md`, `CLAUDE.md`, `.cursor/rules/*.mdc`, `.theokit/rules/*.md`, `.theokit/context/*.md`\n * and `.theokit/THEO.md`.\n *\n * Exported because `specs` REPLACES this list rather than extending it. Without the constant, a\n * consumer registering one convention of its own silently loses every built-in one, and the loss is\n * invisible — discovery simply returns fewer sources. Spread it to extend:\n *\n * ```ts\n * await runDiscovery({ cwd, maxBytesPerFile, specs: [...DEFAULT_DISCOVERY_SPECS, mySpec] });\n * ```\n *\n * @public\n */\nexport { DEFAULT_DISCOVERY_SPECS } from \"../internal/runtime/context/context-discovery.js\";\nexport {\n type DiscoveryRunnerOptions,\n runDiscovery,\n} from \"../internal/runtime/context/context-discovery-runner.js\";\nexport {\n parseRules,\n shouldActivateRule,\n} from \"../internal/runtime/context/context-rules-frontmatter.js\";\n\n/**\n * Options for {@link resolveContextImports}.\n *\n * `projectRoot` is REQUIRED here and OPTIONAL on the internal `resolveImports`, and the asymmetry\n * is the point rather than an oversight.\n *\n * Internally the field has to be optional: it was added in 4.41.1 to close a defect where a\n * repository-supplied `CLAUDE.md` could name `@~/.ssh/id_rsa` and have that file inlined into the\n * agent's system prompt, and making it required would have broken every caller that predates it.\n *\n * As a PUBLIC contract the same optionality inverts into a trap. The obvious call omits the field,\n * compiles, and silently restores the un-contained behaviour — so the easiest way to use the API\n * would be the unsafe one, published under semver and therefore unfixable without a breaking\n * change. Requiring it makes the safe call the only call.\n *\n * @public\n */\nexport interface ResolveContextImportsOptions {\n /**\n * The directory an `@import` may not escape, compared after symlink resolution.\n *\n * A document carrying imports is repository-controlled — untrusted input whenever the repository\n * came from somewhere else — so the boundary is not optional.\n */\n readonly projectRoot: string;\n /** Per-import file cap, forwarded to the loader. */\n readonly maxBytesPerFile: number;\n /** Absolute paths already resolved, for cycle detection. Defaults to an empty set. */\n readonly visited?: Set<string>;\n /** Current recursion depth. Defaults to 0; the resolver caps at 5 hops. */\n readonly depth?: number;\n}\n\n/**\n * Expand `@path` import directives in `content`, confined to `options.projectRoot`.\n *\n * A line that is exactly `@some/path` is replaced with that file's content, recursively, with cycle\n * detection and a 5-hop cap. A target resolving outside the root — by `..`, by an absolute path, by\n * `~/`, or through a symlink — is replaced with a refusal placeholder rather than its bytes, and the\n * placeholder echoes the path as the author wrote it rather than as resolved, so a refusal does not\n * leak the layout of the machine back into the same untrusted document.\n *\n * @public\n */\nexport function resolveContextImports(\n content: string,\n basePath: string,\n options: ResolveContextImportsOptions,\n): Promise<string> {\n const internalOptions: ResolveImportsOptions = {\n visited: options.visited ?? new Set<string>(),\n depth: options.depth ?? 0,\n maxBytesPerFile: options.maxBytesPerFile,\n projectRoot: options.projectRoot,\n };\n return resolveImportsInternal(content, basePath, internalOptions);\n}\nexport type { WithheldSpec } from \"../internal/runtime/context/context-discovery.js\";\nexport { withheldSpecs } from \"../internal/runtime/context/context-discovery.js\";\n"]}
@@ -0,0 +1,7 @@
1
+ export { currentPersonalityContext, warnPersonalitySwitchInsideFork, withPersonalityContext } from './chunk-PQCTDMUI.js';
2
+ import './chunk-7GDHFV2M.js';
3
+ import './chunk-X7EUUHXU.js';
4
+ import './chunk-B5MHRQJZ.js';
5
+ import './chunk-CZJ6Q7CW.js';
6
+ //# sourceMappingURL=context-SXR2HLHT.js.map
7
+ //# sourceMappingURL=context-SXR2HLHT.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"context-OJIIXJCV.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"context-SXR2HLHT.js"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var chunkJ4SA2ZEJ_cjs = require('./chunk-J4SA2ZEJ.cjs');
4
+ require('./chunk-OCEQ6DW2.cjs');
5
+ require('./chunk-TY56BKSK.cjs');
6
+ require('./chunk-UNFBHV46.cjs');
7
+ require('./chunk-6LHQPOMI.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "currentPersonalityContext", {
12
+ enumerable: true,
13
+ get: function () { return chunkJ4SA2ZEJ_cjs.currentPersonalityContext; }
14
+ });
15
+ Object.defineProperty(exports, "warnPersonalitySwitchInsideFork", {
16
+ enumerable: true,
17
+ get: function () { return chunkJ4SA2ZEJ_cjs.warnPersonalitySwitchInsideFork; }
18
+ });
19
+ Object.defineProperty(exports, "withPersonalityContext", {
20
+ enumerable: true,
21
+ get: function () { return chunkJ4SA2ZEJ_cjs.withPersonalityContext; }
22
+ });
23
+ //# sourceMappingURL=context-ZOULM2RB.cjs.map
24
+ //# sourceMappingURL=context-ZOULM2RB.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"context-7RP5JXGM.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"context-ZOULM2RB.cjs"}
@@ -1,6 +1,6 @@
1
1
  import { Workflow, WorkflowRun } from './workflow.js';
2
- import { aa as SDKUserMessage, b as Run } from './run-CTAdRU3U.js';
3
- import { A as AgentOptions, d as ListResult } from './agent-Bqzdhkqr.js';
2
+ import { ab as SDKUserMessage, b as Run } from './run-DsA5Ip2i.js';
3
+ import { A as AgentOptions, d as ListResult } from './agent-enXXu447.js';
4
4
 
5
5
  /**
6
6
  * Owner: `internal/cron/` (4 of 5 importers). Derived from the import graph, not declared —
@@ -1,6 +1,6 @@
1
1
  import { Workflow, WorkflowRun } from './workflow.cjs';
2
- import { aa as SDKUserMessage, b as Run } from './run-CTAdRU3U.cjs';
3
- import { A as AgentOptions, d as ListResult } from './agent-Dya5SmhY.cjs';
2
+ import { ab as SDKUserMessage, b as Run } from './run-DsA5Ip2i.cjs';
3
+ import { A as AgentOptions, d as ListResult } from './agent-Dh2YHSLj.cjs';
4
4
 
5
5
  /**
6
6
  * Owner: `internal/cron/` (4 of 5 importers). Derived from the import graph, not declared —
package/dist/cron.cjs CHANGED
@@ -1,69 +1,69 @@
1
1
  'use strict';
2
2
 
3
- var chunkER5BOIYD_cjs = require('./chunk-ER5BOIYD.cjs');
4
- require('./chunk-A575WPBL.cjs');
5
- require('./chunk-KVSAY6NZ.cjs');
6
- require('./chunk-3XSWF5AP.cjs');
3
+ var chunk5WR33BHA_cjs = require('./chunk-5WR33BHA.cjs');
4
+ require('./chunk-BM6PDJW3.cjs');
5
+ require('./chunk-J6GXS5A2.cjs');
6
+ require('./chunk-PSLCVSCS.cjs');
7
7
  require('./chunk-BUUUWQMB.cjs');
8
- require('./chunk-33A27NFX.cjs');
9
- require('./chunk-YYN6BB7R.cjs');
8
+ require('./chunk-TTBIQTO5.cjs');
9
+ require('./chunk-J4SA2ZEJ.cjs');
10
10
  require('./chunk-BV2MWEMV.cjs');
11
- require('./chunk-D6POWE7E.cjs');
11
+ require('./chunk-MEUBLCM4.cjs');
12
12
  require('./chunk-GHX4P3V2.cjs');
13
13
  require('./chunk-TMKTSYDS.cjs');
14
- require('./chunk-HNAYCTX4.cjs');
15
- require('./chunk-7FDKWDA2.cjs');
16
- require('./chunk-ZLMU5EU3.cjs');
17
- require('./chunk-FUSDYC2B.cjs');
14
+ require('./chunk-76PIKR4P.cjs');
15
+ require('./chunk-B3XXQX6L.cjs');
16
+ require('./chunk-ARMFXTY6.cjs');
17
+ require('./chunk-CQYBJOB2.cjs');
18
18
  require('./chunk-YJNYDJ2T.cjs');
19
- require('./chunk-24SYBZPL.cjs');
19
+ require('./chunk-WPO3VCY4.cjs');
20
20
  require('./chunk-QOGNZMHD.cjs');
21
21
  require('./chunk-YIFFF23U.cjs');
22
22
  require('./chunk-2ZPEDVLM.cjs');
23
- require('./chunk-EFETPSJZ.cjs');
24
- require('./chunk-GK3UG7YQ.cjs');
23
+ require('./chunk-KTA7YTZQ.cjs');
24
+ require('./chunk-OCEQ6DW2.cjs');
25
25
  require('./chunk-KRD3GQAA.cjs');
26
26
  require('./chunk-RQMCOFAI.cjs');
27
27
  require('./chunk-MUUQ2WFJ.cjs');
28
28
  require('./chunk-AA27GEYS.cjs');
29
29
  require('./chunk-YSTXFWQE.cjs');
30
30
  require('./chunk-FRITRLZQ.cjs');
31
- require('./chunk-NQTD6QOW.cjs');
31
+ require('./chunk-JW3GVLM6.cjs');
32
32
  require('./chunk-NINIJCHU.cjs');
33
- require('./chunk-MYJGWS2J.cjs');
34
- require('./chunk-7KBNBPFK.cjs');
33
+ require('./chunk-HG5LKFG7.cjs');
34
+ require('./chunk-SWALPLFQ.cjs');
35
35
  require('./chunk-IJ7M6GOG.cjs');
36
- require('./chunk-7A6535RA.cjs');
36
+ require('./chunk-GM54F4FE.cjs');
37
37
  require('./chunk-SA6K24NB.cjs');
38
- require('./chunk-I2PWY7VM.cjs');
39
- require('./chunk-KTTHHYEW.cjs');
40
- require('./chunk-Z3NTRKIC.cjs');
38
+ require('./chunk-IIYJMXYW.cjs');
39
+ require('./chunk-NJSIAJEK.cjs');
40
+ require('./chunk-NKIQTLFA.cjs');
41
41
  require('./chunk-GZV6AVRL.cjs');
42
42
  require('./chunk-A4RAL2ER.cjs');
43
- require('./chunk-DQZU7JK6.cjs');
44
- require('./chunk-BJUJT5ED.cjs');
43
+ require('./chunk-P22BZE7G.cjs');
44
+ require('./chunk-OF2CLCTH.cjs');
45
45
  require('./chunk-ZF2LDKQQ.cjs');
46
- require('./chunk-HCT4HPCL.cjs');
46
+ require('./chunk-GHHIJEFX.cjs');
47
47
  require('./chunk-JLRLCBJ4.cjs');
48
- require('./chunk-RWPLWMCZ.cjs');
48
+ require('./chunk-C7GKRGKN.cjs');
49
49
  require('./chunk-TY56BKSK.cjs');
50
- require('./chunk-QRVS2PRE.cjs');
51
- require('./chunk-ATT276RD.cjs');
50
+ require('./chunk-MPR2ISL2.cjs');
51
+ require('./chunk-J5623RIV.cjs');
52
52
  require('./chunk-3EE6LVWT.cjs');
53
- require('./chunk-ANMJJD6D.cjs');
54
- require('./chunk-QC55H6RJ.cjs');
53
+ require('./chunk-R3ZQBPA5.cjs');
54
+ require('./chunk-YRJA2POB.cjs');
55
55
  require('./chunk-NVXXWAU7.cjs');
56
- require('./chunk-4NLCWGH7.cjs');
57
- require('./chunk-EXTRW7GW.cjs');
58
- require('./chunk-HUFSABUZ.cjs');
59
- require('./chunk-J7J7J2GN.cjs');
56
+ require('./chunk-RA7IE4NK.cjs');
57
+ require('./chunk-NAGPKWOD.cjs');
58
+ require('./chunk-OLSEWLK5.cjs');
59
+ require('./chunk-UNFBHV46.cjs');
60
60
  require('./chunk-6LHQPOMI.cjs');
61
61
 
62
62
 
63
63
 
64
64
  Object.defineProperty(exports, "Cron", {
65
65
  enumerable: true,
66
- get: function () { return chunkER5BOIYD_cjs.Cron; }
66
+ get: function () { return chunk5WR33BHA_cjs.Cron; }
67
67
  });
68
68
  //# sourceMappingURL=cron.cjs.map
69
69
  //# sourceMappingURL=cron.cjs.map
package/dist/cron.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import './workflow.cjs';
2
- import './run-CTAdRU3U.cjs';
3
- import './agent-Dya5SmhY.cjs';
4
- export { C as Cron } from './cron-BwxDUscv.cjs';
2
+ import './run-DsA5Ip2i.cjs';
3
+ import './agent-Dh2YHSLj.cjs';
4
+ export { C as Cron } from './cron-QTgcwcZt.cjs';
5
5
  import 'zod';
6
- import './sdk-agent-BOiKqOgL.cjs';
6
+ import './sdk-agent-dNwjwCt5.cjs';
7
7
  import './errors-base-B5g01neU.cjs';