@theokit/sdk 4.23.0 → 4.25.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 (374) hide show
  1. package/dist/a2a/index.cjs +10 -171
  2. package/dist/a2a/index.cjs.map +1 -1
  3. package/dist/a2a/index.js +3 -170
  4. package/dist/a2a/index.js.map +1 -1
  5. package/dist/agent-factory-registry-UU46BUMU.cjs +16 -0
  6. package/dist/agent-factory-registry-UU46BUMU.cjs.map +1 -0
  7. package/dist/agent-factory-registry-ZVTABLEY.js +3 -0
  8. package/dist/agent-factory-registry-ZVTABLEY.js.map +1 -0
  9. package/dist/auth/index.cjs +63 -343
  10. package/dist/auth/index.cjs.map +1 -1
  11. package/dist/auth/index.js +6 -318
  12. package/dist/auth/index.js.map +1 -1
  13. package/dist/batch-2FSD2UNL.cjs +244 -0
  14. package/dist/batch-2FSD2UNL.cjs.map +1 -0
  15. package/dist/batch-MR2HKYMS.js +241 -0
  16. package/dist/batch-MR2HKYMS.js.map +1 -0
  17. package/dist/chunk-2HRYBRD7.cjs +31 -0
  18. package/dist/chunk-2HRYBRD7.cjs.map +1 -0
  19. package/dist/chunk-2MF3IE2D.cjs +2863 -0
  20. package/dist/chunk-2MF3IE2D.cjs.map +1 -0
  21. package/dist/chunk-2ONFGMBV.js +6 -0
  22. package/dist/chunk-2ONFGMBV.js.map +1 -0
  23. package/dist/chunk-2SFBB54R.js +23 -0
  24. package/dist/chunk-2SFBB54R.js.map +1 -0
  25. package/dist/chunk-2XLKLVVR.js +18 -0
  26. package/dist/chunk-2XLKLVVR.js.map +1 -0
  27. package/dist/chunk-4HKMQEPX.js +458 -0
  28. package/dist/chunk-4HKMQEPX.js.map +1 -0
  29. package/dist/chunk-4SXHEZIV.cjs +240 -0
  30. package/dist/chunk-4SXHEZIV.cjs.map +1 -0
  31. package/dist/chunk-4VPXM6UU.js +10 -0
  32. package/dist/chunk-4VPXM6UU.js.map +1 -0
  33. package/dist/chunk-4WL52CXU.cjs +148 -0
  34. package/dist/chunk-4WL52CXU.cjs.map +1 -0
  35. package/dist/chunk-5NBUH3NO.js +39 -0
  36. package/dist/chunk-5NBUH3NO.js.map +1 -0
  37. package/dist/chunk-5PZMMF4H.js +43 -0
  38. package/dist/chunk-5PZMMF4H.js.map +1 -0
  39. package/dist/chunk-6CLRANZA.js +289 -0
  40. package/dist/chunk-6CLRANZA.js.map +1 -0
  41. package/dist/chunk-6JSIEDKL.cjs +121 -0
  42. package/dist/chunk-6JSIEDKL.cjs.map +1 -0
  43. package/dist/chunk-6M4ODB2V.cjs +145 -0
  44. package/dist/chunk-6M4ODB2V.cjs.map +1 -0
  45. package/dist/chunk-6X6ID4MO.js +20 -0
  46. package/dist/chunk-6X6ID4MO.js.map +1 -0
  47. package/dist/chunk-77FOZCOT.js +165 -0
  48. package/dist/chunk-77FOZCOT.js.map +1 -0
  49. package/dist/chunk-7AD3ZTZL.js +25 -0
  50. package/dist/chunk-7AD3ZTZL.js.map +1 -0
  51. package/dist/chunk-7GFX45DD.js +57 -0
  52. package/dist/chunk-7GFX45DD.js.map +1 -0
  53. package/dist/chunk-7RMWOMDB.cjs +460 -0
  54. package/dist/chunk-7RMWOMDB.cjs.map +1 -0
  55. package/dist/chunk-7S7KKUO6.cjs +45 -0
  56. package/dist/chunk-7S7KKUO6.cjs.map +1 -0
  57. package/dist/chunk-7W7ZWMLQ.js +99 -0
  58. package/dist/chunk-7W7ZWMLQ.js.map +1 -0
  59. package/dist/chunk-A44COQJJ.cjs +353 -0
  60. package/dist/chunk-A44COQJJ.cjs.map +1 -0
  61. package/dist/chunk-AKSBP7OO.js +185 -0
  62. package/dist/chunk-AKSBP7OO.js.map +1 -0
  63. package/dist/chunk-ANIZEWTU.cjs +196 -0
  64. package/dist/chunk-ANIZEWTU.cjs.map +1 -0
  65. package/dist/chunk-BEURCLDV.cjs +139 -0
  66. package/dist/chunk-BEURCLDV.cjs.map +1 -0
  67. package/dist/chunk-BFWPZMG7.js +379 -0
  68. package/dist/chunk-BFWPZMG7.js.map +1 -0
  69. package/dist/chunk-BUUUWQMB.cjs +34 -0
  70. package/dist/chunk-BUUUWQMB.cjs.map +1 -0
  71. package/dist/chunk-BV2MWEMV.cjs +26 -0
  72. package/dist/chunk-BV2MWEMV.cjs.map +1 -0
  73. package/dist/chunk-BWT67BI4.cjs +268 -0
  74. package/dist/chunk-BWT67BI4.cjs.map +1 -0
  75. package/dist/chunk-BXV2QUIC.js +191 -0
  76. package/dist/chunk-BXV2QUIC.js.map +1 -0
  77. package/dist/chunk-C6Y6CWYD.cjs +44 -0
  78. package/dist/chunk-C6Y6CWYD.cjs.map +1 -0
  79. package/dist/chunk-C7PICHRF.cjs +68 -0
  80. package/dist/chunk-C7PICHRF.cjs.map +1 -0
  81. package/dist/chunk-CAH3G4IS.js +13 -0
  82. package/dist/chunk-CAH3G4IS.js.map +1 -0
  83. package/dist/chunk-CJ6YJ2L3.cjs +10590 -0
  84. package/dist/chunk-CJ6YJ2L3.cjs.map +1 -0
  85. package/dist/chunk-D42XHI4O.cjs +565 -0
  86. package/dist/chunk-D42XHI4O.cjs.map +1 -0
  87. package/dist/chunk-DGRZNMTU.js +104 -0
  88. package/dist/chunk-DGRZNMTU.js.map +1 -0
  89. package/dist/chunk-DUK5WMKJ.js +71 -0
  90. package/dist/chunk-DUK5WMKJ.js.map +1 -0
  91. package/dist/chunk-EEZ7CFMM.js +14 -0
  92. package/dist/chunk-EEZ7CFMM.js.map +1 -0
  93. package/dist/chunk-EPYZOCOL.cjs +82 -0
  94. package/dist/chunk-EPYZOCOL.cjs.map +1 -0
  95. package/dist/chunk-EVADEGM7.cjs +168 -0
  96. package/dist/chunk-EVADEGM7.cjs.map +1 -0
  97. package/dist/chunk-F3XVLFLM.js +10573 -0
  98. package/dist/chunk-F3XVLFLM.js.map +1 -0
  99. package/dist/chunk-FD2UT76F.js +3 -0
  100. package/dist/chunk-FD2UT76F.js.map +1 -0
  101. package/dist/chunk-FV3YEMQ7.js +179 -0
  102. package/dist/chunk-FV3YEMQ7.js.map +1 -0
  103. package/dist/chunk-G2F67XUR.cjs +184 -0
  104. package/dist/chunk-G2F67XUR.cjs.map +1 -0
  105. package/dist/chunk-G6GO6BXD.js +994 -0
  106. package/dist/chunk-G6GO6BXD.js.map +1 -0
  107. package/dist/chunk-GIW4L6HY.cjs +27 -0
  108. package/dist/chunk-GIW4L6HY.cjs.map +1 -0
  109. package/dist/chunk-GJAGKFTR.js +74 -0
  110. package/dist/chunk-GJAGKFTR.js.map +1 -0
  111. package/dist/chunk-HFPGOTVF.cjs +324 -0
  112. package/dist/chunk-HFPGOTVF.cjs.map +1 -0
  113. package/dist/chunk-HRA3CPGG.js +486 -0
  114. package/dist/chunk-HRA3CPGG.js.map +1 -0
  115. package/dist/chunk-HZQEDNF6.js +66 -0
  116. package/dist/chunk-HZQEDNF6.js.map +1 -0
  117. package/dist/chunk-IT3PWBW4.cjs +19 -0
  118. package/dist/chunk-IT3PWBW4.cjs.map +1 -0
  119. package/dist/chunk-JD74LN7R.cjs +171 -0
  120. package/dist/chunk-JD74LN7R.cjs.map +1 -0
  121. package/dist/chunk-JTFYYKDT.js +135 -0
  122. package/dist/chunk-JTFYYKDT.js.map +1 -0
  123. package/dist/chunk-K2BQQ445.js +30 -0
  124. package/dist/chunk-K2BQQ445.js.map +1 -0
  125. package/dist/chunk-KAP4GJHO.js +546 -0
  126. package/dist/chunk-KAP4GJHO.js.map +1 -0
  127. package/dist/chunk-KIO7QFIV.cjs +223 -0
  128. package/dist/chunk-KIO7QFIV.cjs.map +1 -0
  129. package/dist/chunk-KSKU6JY6.cjs +71 -0
  130. package/dist/chunk-KSKU6JY6.cjs.map +1 -0
  131. package/dist/chunk-LSLPF6OI.cjs +192 -0
  132. package/dist/chunk-LSLPF6OI.cjs.map +1 -0
  133. package/dist/chunk-LU7VALW5.js +312 -0
  134. package/dist/chunk-LU7VALW5.js.map +1 -0
  135. package/dist/chunk-LUSXDZPV.cjs +296 -0
  136. package/dist/chunk-LUSXDZPV.cjs.map +1 -0
  137. package/dist/chunk-M72RJVPC.js +69 -0
  138. package/dist/chunk-M72RJVPC.js.map +1 -0
  139. package/dist/chunk-MQLCZ4HJ.cjs +1010 -0
  140. package/dist/chunk-MQLCZ4HJ.cjs.map +1 -0
  141. package/dist/chunk-MUUQ2WFJ.cjs +4 -0
  142. package/dist/chunk-MUUQ2WFJ.cjs.map +1 -0
  143. package/dist/chunk-MZ5ZRORA.cjs +496 -0
  144. package/dist/chunk-MZ5ZRORA.cjs.map +1 -0
  145. package/dist/chunk-N24XBYNX.cjs +140 -0
  146. package/dist/chunk-N24XBYNX.cjs.map +1 -0
  147. package/dist/chunk-NINIJCHU.cjs +23 -0
  148. package/dist/chunk-NINIJCHU.cjs.map +1 -0
  149. package/dist/chunk-NRSH7RJY.js +2841 -0
  150. package/dist/chunk-NRSH7RJY.js.map +1 -0
  151. package/dist/chunk-OIYQBUW4.cjs +111 -0
  152. package/dist/chunk-OIYQBUW4.cjs.map +1 -0
  153. package/dist/chunk-PNVDQL5Y.cjs +15 -0
  154. package/dist/chunk-PNVDQL5Y.cjs.map +1 -0
  155. package/dist/chunk-POQT2OIF.js +214 -0
  156. package/dist/chunk-POQT2OIF.js.map +1 -0
  157. package/dist/chunk-QUTUJ6P6.cjs +76 -0
  158. package/dist/chunk-QUTUJ6P6.cjs.map +1 -0
  159. package/dist/chunk-S2BBRVQX.js +68 -0
  160. package/dist/chunk-S2BBRVQX.js.map +1 -0
  161. package/dist/chunk-S5RCBTSF.js +145 -0
  162. package/dist/chunk-S5RCBTSF.js.map +1 -0
  163. package/dist/chunk-S7OEXQMI.cjs +136 -0
  164. package/dist/chunk-S7OEXQMI.cjs.map +1 -0
  165. package/dist/chunk-SKWVAQAY.js +129 -0
  166. package/dist/chunk-SKWVAQAY.js.map +1 -0
  167. package/dist/chunk-SQLZ7ONU.js +152 -0
  168. package/dist/chunk-SQLZ7ONU.js.map +1 -0
  169. package/dist/chunk-TIZ4TS5V.cjs +72 -0
  170. package/dist/chunk-TIZ4TS5V.cjs.map +1 -0
  171. package/dist/chunk-TQKCU7CL.js +142 -0
  172. package/dist/chunk-TQKCU7CL.js.map +1 -0
  173. package/dist/chunk-U54XCYG3.js +116 -0
  174. package/dist/chunk-U54XCYG3.js.map +1 -0
  175. package/dist/chunk-U6QGZHPN.js +29 -0
  176. package/dist/chunk-U6QGZHPN.js.map +1 -0
  177. package/dist/chunk-UCFONJBG.js +79 -0
  178. package/dist/chunk-UCFONJBG.js.map +1 -0
  179. package/dist/chunk-UJ7IQJAG.js +141 -0
  180. package/dist/chunk-UJ7IQJAG.js.map +1 -0
  181. package/dist/chunk-UVNG67DG.js +253 -0
  182. package/dist/chunk-UVNG67DG.js.map +1 -0
  183. package/dist/chunk-V4XRLPEF.js +25 -0
  184. package/dist/chunk-V4XRLPEF.js.map +1 -0
  185. package/dist/chunk-VJ26EKGJ.cjs +28 -0
  186. package/dist/chunk-VJ26EKGJ.cjs.map +1 -0
  187. package/dist/chunk-VK7MAV65.cjs +90 -0
  188. package/dist/chunk-VK7MAV65.cjs.map +1 -0
  189. package/dist/chunk-VYCKUKPA.cjs +106 -0
  190. package/dist/chunk-VYCKUKPA.cjs.map +1 -0
  191. package/dist/chunk-VYHJZVL5.cjs +29 -0
  192. package/dist/chunk-VYHJZVL5.cjs.map +1 -0
  193. package/dist/chunk-WA3FO4R7.js +155 -0
  194. package/dist/chunk-WA3FO4R7.js.map +1 -0
  195. package/dist/chunk-WJVHMTKB.cjs +12 -0
  196. package/dist/chunk-WJVHMTKB.cjs.map +1 -0
  197. package/dist/chunk-WLKFWQSJ.js +333 -0
  198. package/dist/chunk-WLKFWQSJ.js.map +1 -0
  199. package/dist/chunk-WPZTYOUX.cjs +59 -0
  200. package/dist/chunk-WPZTYOUX.cjs.map +1 -0
  201. package/dist/chunk-X2FR4OIT.js +27 -0
  202. package/dist/chunk-X2FR4OIT.js.map +1 -0
  203. package/dist/chunk-XIG2IE3L.js +134 -0
  204. package/dist/chunk-XIG2IE3L.js.map +1 -0
  205. package/dist/chunk-YLQQX5W2.cjs +20 -0
  206. package/dist/chunk-YLQQX5W2.cjs.map +1 -0
  207. package/dist/chunk-YPEPCZHF.cjs +147 -0
  208. package/dist/chunk-YPEPCZHF.cjs.map +1 -0
  209. package/dist/chunk-YPQF26X7.cjs +8 -0
  210. package/dist/chunk-YPQF26X7.cjs.map +1 -0
  211. package/dist/chunk-YU6KON2I.cjs +160 -0
  212. package/dist/chunk-YU6KON2I.cjs.map +1 -0
  213. package/dist/chunk-Z2OC3UIW.cjs +388 -0
  214. package/dist/chunk-Z2OC3UIW.cjs.map +1 -0
  215. package/dist/chunk-ZZWTY3RX.js +230 -0
  216. package/dist/chunk-ZZWTY3RX.js.map +1 -0
  217. package/dist/compact-session-OO2GD76G.js +17 -0
  218. package/dist/compact-session-OO2GD76G.js.map +1 -0
  219. package/dist/compact-session-OO7NVWPB.cjs +54 -0
  220. package/dist/compact-session-OO7NVWPB.cjs.map +1 -0
  221. package/dist/compaction.cjs +54 -303
  222. package/dist/compaction.cjs.map +1 -1
  223. package/dist/compaction.js +3 -292
  224. package/dist/compaction.js.map +1 -1
  225. package/dist/concurrency.cjs +9 -81
  226. package/dist/concurrency.cjs.map +1 -1
  227. package/dist/concurrency.js +5 -80
  228. package/dist/concurrency.js.map +1 -1
  229. package/dist/context-GWANQLX4.js +5 -0
  230. package/dist/context-GWANQLX4.js.map +1 -0
  231. package/dist/context-KNWVTZSY.cjs +22 -0
  232. package/dist/context-KNWVTZSY.cjs.map +1 -0
  233. package/dist/cron.cjs +44 -20675
  234. package/dist/cron.cjs.map +1 -1
  235. package/dist/cron.js +38 -20675
  236. package/dist/cron.js.map +1 -1
  237. package/dist/errors.cjs +78 -470
  238. package/dist/errors.cjs.map +1 -1
  239. package/dist/errors.js +2 -455
  240. package/dist/errors.js.map +1 -1
  241. package/dist/eval.cjs +72 -20410
  242. package/dist/eval.cjs.map +1 -1
  243. package/dist/eval.js +59 -20401
  244. package/dist/eval.js.map +1 -1
  245. package/dist/executor-ORJS5GV2.js +981 -0
  246. package/dist/executor-ORJS5GV2.js.map +1 -0
  247. package/dist/executor-Y4MKPIUD.cjs +985 -0
  248. package/dist/executor-Y4MKPIUD.cjs.map +1 -0
  249. package/dist/filesystem/index.cjs +7 -112
  250. package/dist/filesystem/index.cjs.map +1 -1
  251. package/dist/filesystem/index.js +4 -109
  252. package/dist/filesystem/index.js.map +1 -1
  253. package/dist/fork-agent-RSV4E3EA.js +61 -0
  254. package/dist/fork-agent-RSV4E3EA.js.map +1 -0
  255. package/dist/fork-agent-Y2IK2RYU.cjs +64 -0
  256. package/dist/fork-agent-Y2IK2RYU.cjs.map +1 -0
  257. package/dist/fs-session-store-KAUQYSGI.cjs +17 -0
  258. package/dist/fs-session-store-KAUQYSGI.cjs.map +1 -0
  259. package/dist/fs-session-store-ZKB5NN37.js +8 -0
  260. package/dist/fs-session-store-ZKB5NN37.js.map +1 -0
  261. package/dist/generate-object-H3RNAM6S.cjs +20 -0
  262. package/dist/generate-object-H3RNAM6S.cjs.map +1 -0
  263. package/dist/generate-object-YJPDV5BS.js +7 -0
  264. package/dist/generate-object-YJPDV5BS.js.map +1 -0
  265. package/dist/index-manager-CB6I7XFQ.cjs +19 -0
  266. package/dist/index-manager-CB6I7XFQ.cjs.map +1 -0
  267. package/dist/index-manager-L27Q3QAC.js +10 -0
  268. package/dist/index-manager-L27Q3QAC.js.map +1 -0
  269. package/dist/index.cjs +371 -22887
  270. package/dist/index.cjs.map +1 -1
  271. package/dist/index.js +92 -22712
  272. package/dist/index.js.map +1 -1
  273. package/dist/inject-session-6MJUSGZP.cjs +27 -0
  274. package/dist/inject-session-6MJUSGZP.cjs.map +1 -0
  275. package/dist/inject-session-KOFHS5K3.js +25 -0
  276. package/dist/inject-session-KOFHS5K3.js.map +1 -0
  277. package/dist/internal/auth/credential-store.d.ts +20 -3
  278. package/dist/internal/persistence/index.cjs +93 -508
  279. package/dist/internal/persistence/index.cjs.map +1 -1
  280. package/dist/internal/persistence/index.js +11 -489
  281. package/dist/internal/persistence/index.js.map +1 -1
  282. package/dist/internal/security/index.cjs +44 -361
  283. package/dist/internal/security/index.cjs.map +1 -1
  284. package/dist/internal/security/index.js +4 -355
  285. package/dist/internal/security/index.js.map +1 -1
  286. package/dist/judge-call-7CF7D334.cjs +95 -0
  287. package/dist/judge-call-7CF7D334.cjs.map +1 -0
  288. package/dist/judge-call-VIMNK5TA.js +92 -0
  289. package/dist/judge-call-VIMNK5TA.js.map +1 -0
  290. package/dist/models.cjs +24 -913
  291. package/dist/models.cjs.map +1 -1
  292. package/dist/models.js +11 -901
  293. package/dist/models.js.map +1 -1
  294. package/dist/oauth-transaction-store-7CKHPQRN.cjs +32 -0
  295. package/dist/oauth-transaction-store-7CKHPQRN.cjs.map +1 -0
  296. package/dist/oauth-transaction-store-W74I6EFD.js +3 -0
  297. package/dist/oauth-transaction-store-W74I6EFD.js.map +1 -0
  298. package/dist/path-safety.cjs +31 -200
  299. package/dist/path-safety.cjs.map +1 -1
  300. package/dist/path-safety.js +3 -197
  301. package/dist/path-safety.js.map +1 -1
  302. package/dist/persistence.cjs +73 -393
  303. package/dist/persistence.cjs.map +1 -1
  304. package/dist/persistence.js +9 -381
  305. package/dist/persistence.js.map +1 -1
  306. package/dist/project.cjs +8 -112
  307. package/dist/project.cjs.map +1 -1
  308. package/dist/project.js +6 -110
  309. package/dist/project.js.map +1 -1
  310. package/dist/registry-34IWWDQQ.js +9 -0
  311. package/dist/registry-34IWWDQQ.js.map +1 -0
  312. package/dist/registry-APYDISL6.cjs +46 -0
  313. package/dist/registry-APYDISL6.cjs.map +1 -0
  314. package/dist/retry.cjs +7 -87
  315. package/dist/retry.cjs.map +1 -1
  316. package/dist/retry.js +3 -90
  317. package/dist/retry.js.map +1 -1
  318. package/dist/run-to-completion-J73I6IY4.cjs +48 -0
  319. package/dist/run-to-completion-J73I6IY4.cjs.map +1 -0
  320. package/dist/run-to-completion-JDPIUKSH.js +3 -0
  321. package/dist/run-to-completion-JDPIUKSH.js.map +1 -0
  322. package/dist/run-until-2PX4QBHZ.js +168 -0
  323. package/dist/run-until-2PX4QBHZ.js.map +1 -0
  324. package/dist/run-until-DB3LVGZS.cjs +171 -0
  325. package/dist/run-until-DB3LVGZS.cjs.map +1 -0
  326. package/dist/sandbox/index.cjs +35 -337
  327. package/dist/sandbox/index.cjs.map +1 -1
  328. package/dist/sandbox/index.js +7 -323
  329. package/dist/sandbox/index.js.map +1 -1
  330. package/dist/sanitize/index.cjs +5 -112
  331. package/dist/sanitize/index.cjs.map +1 -1
  332. package/dist/sanitize/index.js +1 -114
  333. package/dist/sanitize/index.js.map +1 -1
  334. package/dist/server/auth/index.cjs +35 -175
  335. package/dist/server/auth/index.cjs.map +1 -1
  336. package/dist/server/auth/index.js +7 -161
  337. package/dist/server/auth/index.js.map +1 -1
  338. package/dist/server/errors-envelope.cjs +17 -328
  339. package/dist/server/errors-envelope.cjs.map +1 -1
  340. package/dist/server/errors-envelope.js +4 -317
  341. package/dist/server/errors-envelope.js.map +1 -1
  342. package/dist/session-transcript-LPNZR3YS.cjs +46 -0
  343. package/dist/session-transcript-LPNZR3YS.cjs.map +1 -0
  344. package/dist/session-transcript-T7LGJUGW.js +5 -0
  345. package/dist/session-transcript-T7LGJUGW.js.map +1 -0
  346. package/dist/skills.cjs +12 -280
  347. package/dist/skills.cjs.map +1 -1
  348. package/dist/skills.js +4 -282
  349. package/dist/skills.js.map +1 -1
  350. package/dist/stream-object-QEQJJDTI.cjs +20 -0
  351. package/dist/stream-object-QEQJJDTI.cjs.map +1 -0
  352. package/dist/stream-object-WUQSSRY2.js +7 -0
  353. package/dist/stream-object-WUQSSRY2.js.map +1 -0
  354. package/dist/stream-to-completion-DFJ5T3BK.js +30 -0
  355. package/dist/stream-to-completion-DFJ5T3BK.js.map +1 -0
  356. package/dist/stream-to-completion-H2MHISSK.cjs +32 -0
  357. package/dist/stream-to-completion-H2MHISSK.cjs.map +1 -0
  358. package/dist/subagents.cjs +2 -8
  359. package/dist/subagents.cjs.map +1 -1
  360. package/dist/subagents.js +1 -7
  361. package/dist/subagents.js.map +1 -1
  362. package/dist/subscription/index.cjs +4 -17
  363. package/dist/subscription/index.cjs.map +1 -1
  364. package/dist/subscription/index.js +3 -16
  365. package/dist/subscription/index.js.map +1 -1
  366. package/dist/task-store.cjs +16 -258
  367. package/dist/task-store.cjs.map +1 -1
  368. package/dist/task-store.js +4 -259
  369. package/dist/task-store.js.map +1 -1
  370. package/dist/workflow.cjs +71 -2797
  371. package/dist/workflow.cjs.map +1 -1
  372. package/dist/workflow.js +8 -2812
  373. package/dist/workflow.js.map +1 -1
  374. package/package.json +1 -1
@@ -1,87 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var crypto = require('crypto');
3
+ var chunkQUTUJ6P6_cjs = require('../../chunk-QUTUJ6P6.cjs');
4
+ var chunkPNVDQL5Y_cjs = require('../../chunk-PNVDQL5Y.cjs');
5
+ var chunkOIYQBUW4_cjs = require('../../chunk-OIYQBUW4.cjs');
6
+ var chunkJD74LN7R_cjs = require('../../chunk-JD74LN7R.cjs');
7
+ var chunkC7PICHRF_cjs = require('../../chunk-C7PICHRF.cjs');
8
+ var chunkYLQQX5W2_cjs = require('../../chunk-YLQQX5W2.cjs');
9
+ var chunkTIZ4TS5V_cjs = require('../../chunk-TIZ4TS5V.cjs');
10
+ require('../../chunk-A44COQJJ.cjs');
11
+ require('../../chunk-BEURCLDV.cjs');
4
12
  var promises = require('fs/promises');
5
- var path = require('path');
6
- var fs = require('fs');
7
- var os = require('os');
8
- var zod = require('zod');
9
13
 
10
- // src/internal/persistence/atomic-write.ts
11
- var NETWORK_FS_MAGIC = /* @__PURE__ */ new Map([
12
- [26985, "nfs"],
13
- [20859, "smb"],
14
- [4283649346, "cifs"],
15
- [1702057286, "fuse"]
16
- ]);
17
- function detectNetworkFsName(typeMagic) {
18
- return NETWORK_FS_MAGIC.get(typeMagic) ?? null;
19
- }
20
- var warnedNfsDirs = /* @__PURE__ */ new Set();
21
- async function warnOnNetworkFsOnce(dirPath, label) {
22
- const key = `${dirPath}\0${label}`;
23
- if (warnedNfsDirs.has(key)) return;
24
- warnedNfsDirs.add(key);
25
- try {
26
- const info = await promises.statfs(dirPath);
27
- const fsName = detectNetworkFsName(info.type);
28
- if (fsName === null) return;
29
- process.stderr.write(
30
- `[theokit-sdk] ${label}: detected network fs (${fsName}) at ${dirPath} \u2014 rename() atomicity guarantees may be weaker than expected.
31
- `
32
- );
33
- } catch {
34
- }
35
- }
36
- async function replaceFileAtomic(filePath, content) {
37
- await warnOnNetworkFsOnce(path.dirname(filePath), "atomic-write");
38
- const suffix = crypto.randomBytes(8).toString("hex");
39
- const tmp = `${filePath}.${process.pid}.${suffix}.tmp`;
40
- const handle = await promises.open(tmp, "w", 384);
41
- try {
42
- await handle.writeFile(content, "utf8");
43
- await handle.sync();
44
- } finally {
45
- await handle.close();
46
- }
47
- try {
48
- await promises.rename(tmp, filePath);
49
- } catch (cause) {
50
- await promises.unlink(tmp).catch(() => void 0);
51
- throw cause;
52
- }
53
- }
54
- async function atomicWriteJson(filePath, data, options) {
55
- const indent = options?.indent ?? 2;
56
- const trailingNewline = options?.trailingNewline ?? true;
57
- const json = JSON.stringify(data, null, indent);
58
- if (json === void 0) {
59
- throw new TypeError("atomicWriteJson: cannot serialize undefined");
60
- }
61
- const content = trailingNewline ? `${json}
62
- ` : json;
63
- await promises.mkdir(path.dirname(filePath), { recursive: true });
64
- await replaceFileAtomic(filePath, content);
65
- }
66
- async function atomicWriteText(filePath, content) {
67
- await promises.mkdir(path.dirname(filePath), { recursive: true });
68
- await replaceFileAtomic(filePath, content);
69
- }
70
-
71
- // src/internal/persistence/cwd-mutex.ts
72
- var tails = /* @__PURE__ */ new Map();
73
- function withCwdMutex(key, fn) {
74
- const prev = tails.get(key) ?? Promise.resolve();
75
- const next = prev.then(fn, fn);
76
- tails.set(
77
- key,
78
- next.then(
79
- () => void 0,
80
- () => void 0
81
- )
82
- );
83
- return next;
84
- }
85
14
  async function createExclusive(path, data, options) {
86
15
  const mode = options?.mode ?? 384;
87
16
  try {
@@ -100,276 +29,6 @@ async function createExclusive(path, data, options) {
100
29
  }
101
30
  }
102
31
 
103
- // src/internal/persistence/file-lock.ts
104
- var cached;
105
- var warnedMissing = false;
106
- var warnedStructural = false;
107
- async function getProperLockfile() {
108
- if (cached !== void 0) return cached;
109
- try {
110
- const mod = await import('proper-lockfile');
111
- if (!validateLockModule(mod)) {
112
- if (!warnedStructural) {
113
- warnedStructural = true;
114
- process.stderr.write(
115
- "[theokit-sdk] proper-lockfile: imported module does NOT expose the expected `lock`/`unlock` API surface. This may indicate a supply-chain compromise or an incompatible major version. Falling back to in-process mutex (no cross-process safety). Reinstall with: pnpm add proper-lockfile@^11\n"
116
- );
117
- }
118
- cached = null;
119
- return cached;
120
- }
121
- cached = mod;
122
- } catch {
123
- cached = null;
124
- }
125
- return cached;
126
- }
127
- function validateLockModule(mod) {
128
- if (mod === null || mod === void 0 || typeof mod !== "object") return false;
129
- const m = mod;
130
- return typeof m.lock === "function" && typeof m.unlock === "function";
131
- }
132
- async function withFileLock(path, fn, options) {
133
- const lib = await getProperLockfile();
134
- if (lib === null) {
135
- if (!warnedMissing) {
136
- warnedMissing = true;
137
- process.stderr.write(
138
- "[theokit-sdk] proper-lockfile not installed; cross-process file lock unavailable. Install with: pnpm add proper-lockfile\n"
139
- );
140
- }
141
- return withCwdMutex(`file-lock:${path}`, fn);
142
- }
143
- return withCwdMutex(`file-lock:${path}`, async () => {
144
- const release = await lib.lock(path, {
145
- // EC-1: companion lockfile, target path may not exist yet.
146
- lockfilePath: `${path}.lock`,
147
- realpath: false,
148
- stale: options?.stale ?? 3e4,
149
- retries: {
150
- retries: options?.retries ?? 5,
151
- factor: options?.retryFactor ?? 1.5,
152
- minTimeout: 100,
153
- maxTimeout: 5e3
154
- }
155
- });
156
- try {
157
- return await fn();
158
- } finally {
159
- await release();
160
- }
161
- });
162
- }
163
-
164
- // src/internal/persistence/fts5-sanitize.ts
165
- var PHRASE_OPEN = "";
166
- var PHRASE_CLOSE = "";
167
- function sanitizeFts5Query(query) {
168
- if (query.length === 0) return query;
169
- const phrases = [];
170
- let text = query.replace(/"[^"]+"/g, (match) => {
171
- phrases.push(match);
172
- return `${PHRASE_OPEN}${phrases.length - 1}${PHRASE_CLOSE}`;
173
- });
174
- text = text.replace(/[[\]{}()"^]/g, " ");
175
- text = text.replace(/\*+/g, "*");
176
- text = text.replace(/^\s*(AND|OR|NOT)\s+/i, "");
177
- text = text.replace(/\s+(AND|OR|NOT)\s*$/i, "");
178
- text = text.replace(/\b\w+[-._]\w[\w\-._]*\b/g, (match) => `"${match}"`);
179
- for (let i = 0; i < phrases.length; i += 1) {
180
- text = text.replace(`${PHRASE_OPEN}${i}${PHRASE_CLOSE}`, phrases[i] ?? "");
181
- }
182
- return text.trim();
183
- }
184
- var CJK_RANGES = [
185
- [12288, 12351],
186
- // CJK Symbols and Punctuation
187
- [12352, 12447],
188
- // Hiragana
189
- [12448, 12543],
190
- // Katakana
191
- [13312, 19903],
192
- // CJK Unified Ideographs Extension A
193
- [19968, 40959],
194
- // CJK Unified Ideographs
195
- [44032, 55215]
196
- // Hangul Syllables
197
- ];
198
- function containsCjk(text) {
199
- for (const char of text) {
200
- const cp = char.codePointAt(0);
201
- if (cp === void 0) continue;
202
- for (const [lo, hi] of CJK_RANGES) {
203
- if (cp >= lo && cp <= hi) return true;
204
- }
205
- }
206
- return false;
207
- }
208
- var JsonlParseError = class extends Error {
209
- constructor(message, line) {
210
- super(message);
211
- this.line = line;
212
- this.name = "JsonlParseError";
213
- }
214
- line;
215
- };
216
- function isPlainObject(value) {
217
- return typeof value === "object" && value !== null && !Array.isArray(value);
218
- }
219
- function tryParseObjectLine(line) {
220
- if (line.length === 0) return void 0;
221
- let parsed;
222
- try {
223
- parsed = JSON.parse(line);
224
- } catch {
225
- return void 0;
226
- }
227
- return isPlainObject(parsed) ? parsed : void 0;
228
- }
229
- function loadJsonl(path, opts = {}) {
230
- const text = fs.readFileSync(path, "utf8");
231
- const out = [];
232
- let lineNumber = 0;
233
- for (const rawLine of text.split("\n")) {
234
- lineNumber += 1;
235
- const line = rawLine.trim();
236
- if (line.length === 0) continue;
237
- let parsed;
238
- try {
239
- parsed = JSON.parse(line);
240
- } catch {
241
- throw new JsonlParseError(`line ${lineNumber}: invalid JSON`, lineNumber);
242
- }
243
- if (!isPlainObject(parsed)) {
244
- throw new JsonlParseError(`line ${lineNumber}: not a JSON object`, lineNumber);
245
- }
246
- out.push(opts.map ? opts.map(parsed, lineNumber) : parsed);
247
- }
248
- return out;
249
- }
250
- function appendJsonl(path$1, record) {
251
- fs.mkdirSync(path.dirname(path$1), { recursive: true });
252
- fs.appendFileSync(path$1, `${JSON.stringify(record)}
253
- `);
254
- }
255
- function readJsonlIds(path, keyFn) {
256
- const done = /* @__PURE__ */ new Set();
257
- let text;
258
- try {
259
- text = fs.readFileSync(path, "utf8");
260
- } catch {
261
- return done;
262
- }
263
- for (const rawLine of text.split("\n")) {
264
- const parsed = tryParseObjectLine(rawLine.trim());
265
- if (parsed === void 0) continue;
266
- const key = keyFn(parsed);
267
- if (typeof key === "string" && key.length > 0) done.add(key);
268
- }
269
- return done;
270
- }
271
- var THEOKIT_DIR_NAME = ".theokit";
272
- function getTheokitHome(cwd) {
273
- const override = process.env.THEOKIT_HOME?.trim();
274
- if (override !== void 0 && override.length > 0) {
275
- return override;
276
- }
277
- return path.join(cwd, THEOKIT_DIR_NAME);
278
- }
279
- function getProfilesRoot() {
280
- return path.join(os.homedir(), THEOKIT_DIR_NAME, "profiles");
281
- }
282
- function displayTheokitHome(cwd) {
283
- const resolved = getTheokitHome(cwd);
284
- const home = os.homedir();
285
- if (resolved === home) return "~";
286
- if (resolved.startsWith(`${home}/`)) {
287
- return `~${resolved.slice(home.length)}`;
288
- }
289
- return resolved;
290
- }
291
- var PersistenceSchema = zod.z.object({
292
- backend: zod.z.enum(["memory", "json"]),
293
- dir: zod.z.string().optional()
294
- }).refine((p) => p.backend !== "json" || typeof p.dir === "string" && p.dir.length > 0, {
295
- message: 'persistence.dir is required when backend = "json"'
296
- }).optional();
297
- function migrateSchema(opts) {
298
- const { db, currentVersion, migrations, label = "db" } = opts;
299
- const storedRaw = db.pragma("user_version", { simple: true });
300
- const stored = typeof storedRaw === "number" ? storedRaw : 0;
301
- if (stored > currentVersion) {
302
- throw new Error(
303
- `[${label}] schema version ${stored} > current ${currentVersion}; did you downgrade the SDK? Forward-only migrations only.`
304
- );
305
- }
306
- if (stored === currentVersion) {
307
- return { from: stored, to: stored, ran: 0 };
308
- }
309
- const pending = [...migrations].sort((a, b) => a.toVersion - b.toVersion).filter((m) => m.toVersion > stored && m.toVersion <= currentVersion);
310
- let ran = 0;
311
- let lastApplied = stored;
312
- db.transaction(() => {
313
- for (const m of pending) {
314
- m.up(db);
315
- db.pragma(`user_version = ${m.toVersion}`);
316
- lastApplied = m.toVersion;
317
- ran += 1;
318
- }
319
- })();
320
- return { from: stored, to: lastApplied, ran };
321
- }
322
- async function readVersionedJson(opts) {
323
- const { path, currentVersion, migrate, defaultValue } = opts;
324
- let raw;
325
- try {
326
- raw = await promises.readFile(path, "utf-8");
327
- } catch {
328
- return defaultValue();
329
- }
330
- let parsed;
331
- try {
332
- parsed = JSON.parse(raw);
333
- } catch {
334
- const asidePath = `${path}.corrupt.${Date.now()}`;
335
- try {
336
- await promises.rename(path, asidePath);
337
- process.stderr.write(
338
- `[theokit-sdk] ${path} is corrupt; moved to ${asidePath}. Using default value.
339
- `
340
- );
341
- } catch {
342
- process.stderr.write(`[theokit-sdk] ${path} is corrupt; using default value.
343
- `);
344
- }
345
- return defaultValue();
346
- }
347
- if (typeof parsed !== "object" || parsed === null) {
348
- return defaultValue();
349
- }
350
- const file = parsed;
351
- const storedRaw = file._schemaVersion;
352
- const stored = typeof storedRaw === "number" ? storedRaw : 0;
353
- if (stored === currentVersion) {
354
- return file.data;
355
- }
356
- if (stored > currentVersion) {
357
- process.stderr.write(
358
- `[theokit-sdk] ${path} schema version ${stored} > current ${currentVersion}; using default value (forward-only).
359
- `
360
- );
361
- return defaultValue();
362
- }
363
- return migrate(parsed, stored);
364
- }
365
- async function writeVersionedJson(path, data, currentVersion) {
366
- const file = {
367
- _schemaVersion: currentVersion,
368
- data
369
- };
370
- await atomicWriteJson(path, file);
371
- }
372
-
373
32
  // src/internal/persistence/sqlite-cas.ts
374
33
  function casUpdate(db, sql, params, expectedChanges = 1) {
375
34
  const stmt = db.prepare(sql);
@@ -377,165 +36,91 @@ function casUpdate(db, sql, params, expectedChanges = 1) {
377
36
  return result.changes === expectedChanges;
378
37
  }
379
38
 
380
- // src/errors.ts
381
- var TheokitAgentError = class extends Error {
382
- name = "TheokitAgentError";
383
- isRetryable;
384
- code;
385
- protoErrorCode;
386
- metadata;
387
- constructor(message, options = {}) {
388
- super(message, options.cause !== void 0 ? { cause: options.cause } : void 0);
389
- this.isRetryable = options.isRetryable ?? false;
390
- if (options.code !== void 0) this.code = options.code;
391
- if (options.protoErrorCode !== void 0) this.protoErrorCode = options.protoErrorCode;
392
- if (options.metadata !== void 0) this.metadata = options.metadata;
393
- }
394
- };
395
- var ConfigurationError = class extends TheokitAgentError {
396
- name = "ConfigurationError";
397
- constructor(message, options = {}) {
398
- super(message, { ...options, isRetryable: false });
399
- }
400
- };
401
-
402
- // src/internal/persistence/sqlite-wal.ts
403
- var warnedLabels = /* @__PURE__ */ new Set();
404
- function applyWalWithFallback(db, label) {
405
- try {
406
- const result = db.pragma("journal_mode = WAL", { simple: true });
407
- if (typeof result === "string" && result.toLowerCase() === "wal") {
408
- return { mode: "wal", fellBack: false };
409
- }
410
- logFallback(label, `got "${String(result)}" instead of "wal"`);
411
- } catch (err) {
412
- const msg = err instanceof Error ? err.message : String(err);
413
- logFallback(label, msg);
414
- }
415
- db.pragma("journal_mode = DELETE");
416
- return { mode: "delete", fellBack: true };
417
- }
418
- function logFallback(label, reason) {
419
- if (warnedLabels.has(label)) return;
420
- warnedLabels.add(label);
421
- process.stderr.write(
422
- `[theokit-sdk] ${label}: WAL unavailable (${reason}); using DELETE journal mode. This is normal on NFS/SMB/FUSE; expect slightly slower concurrent access.
423
- `
424
- );
425
- }
426
-
427
- // src/internal/persistence/sqlite-open.ts
428
- async function openSqliteResilient(options) {
429
- await promises.mkdir(path.dirname(options.filePath), { recursive: true });
430
- try {
431
- return await openConcrete(options);
432
- } catch (cause) {
433
- if (options.recoverCorrupt !== false && isCorruptionError(cause)) {
434
- await renameAside(options.filePath, options.label ?? "sqlite");
435
- return await openConcrete(options);
436
- }
437
- throw cause;
438
- }
439
- }
440
- async function openConcrete(options) {
441
- const db = await loadDriver(options.filePath);
442
- applyWalWithFallback(db, options.label ?? "sqlite");
443
- await options.onOpen?.(db);
444
- return db;
445
- }
446
- var driverLoaderOverrides;
447
- function adaptNodeSqlite(db) {
448
- const pragma = (statement, options) => {
449
- const stmt = db.prepare(`PRAGMA ${statement}`);
450
- const row = stmt.get();
451
- if (options?.simple === true) {
452
- return row === void 0 ? void 0 : Object.values(row)[0];
453
- }
454
- return row === void 0 ? [] : [row];
455
- };
456
- return new Proxy(db, {
457
- get(target, prop, receiver) {
458
- if (prop === "pragma") return pragma;
459
- if (prop === "loadExtension" && typeof db.loadExtension !== "function") {
460
- return () => {
461
- throw new Error(
462
- "SQLite extension loading is unavailable on the node:sqlite fallback \u2014 install better-sqlite3 for sqlite-vec"
463
- );
464
- };
465
- }
466
- const value = Reflect.get(target, prop, receiver);
467
- return typeof value === "function" ? value.bind(target) : value;
468
- }
469
- });
470
- }
471
- async function loadDriver(filePath) {
472
- let betterSqliteCause;
473
- try {
474
- const mod = await (driverLoaderOverrides?.betterSqlite3?.() ?? import('better-sqlite3'));
475
- const Ctor = mod.default ?? mod;
476
- if (typeof Ctor !== "function") {
477
- throw new Error(`better-sqlite3 export is not a constructor (got ${typeof Ctor})`);
478
- }
479
- return new Ctor(filePath);
480
- } catch (cause) {
481
- betterSqliteCause = cause;
482
- }
483
- try {
484
- const mod = await (driverLoaderOverrides?.nodeSqlite?.() ?? Promise.resolve(
485
- process.getBuiltinModule?.(
486
- "node:sqlite"
487
- ) ?? (() => {
488
- throw new Error("node:sqlite built-in unavailable (Node < 22.3)");
489
- })()
490
- ));
491
- return adaptNodeSqlite(new mod.DatabaseSync(filePath));
492
- } catch (nodeSqliteCause) {
493
- const b = betterSqliteCause instanceof Error ? betterSqliteCause.message : String(betterSqliteCause);
494
- const n = nodeSqliteCause instanceof Error ? nodeSqliteCause.message : String(nodeSqliteCause);
495
- throw new ConfigurationError(
496
- `Failed to load SQLite driver. Install \`better-sqlite3\` or run on Node 22.5+ for built-in \`node:sqlite\`. better-sqlite3: ${b}; node:sqlite: ${n}`,
497
- { code: "sqlite_driver_unavailable", cause: nodeSqliteCause }
498
- );
499
- }
500
- }
501
- function isCorruptionError(cause) {
502
- if (!(cause instanceof Error)) return false;
503
- const msg = cause.message.toLowerCase();
504
- return msg.includes("malformed") || msg.includes("not a database") || msg.includes("encrypted") || msg.includes("disk image is malformed");
505
- }
506
- async function renameAside(filePath, label) {
507
- const asidePath = `${filePath}.corrupt-${Date.now()}`;
508
- await promises.rename(filePath, asidePath).catch(() => void 0);
509
- await promises.rename(`${filePath}-wal`, `${asidePath}-wal`).catch(() => void 0);
510
- await promises.rename(`${filePath}-shm`, `${asidePath}-shm`).catch(() => void 0);
511
- process.stderr.write(
512
- `[theokit-sdk] ${label} database corrupt; renamed aside to ${asidePath} and rebuilt schema
513
- `
514
- );
515
- }
516
-
517
- exports.JsonlParseError = JsonlParseError;
518
- exports.PersistenceSchema = PersistenceSchema;
519
- exports.appendJsonl = appendJsonl;
520
- exports.applyWalWithFallback = applyWalWithFallback;
521
- exports.atomicWriteJson = atomicWriteJson;
522
- exports.atomicWriteText = atomicWriteText;
39
+ Object.defineProperty(exports, "JsonlParseError", {
40
+ enumerable: true,
41
+ get: function () { return chunkQUTUJ6P6_cjs.JsonlParseError; }
42
+ });
43
+ Object.defineProperty(exports, "appendJsonl", {
44
+ enumerable: true,
45
+ get: function () { return chunkQUTUJ6P6_cjs.appendJsonl; }
46
+ });
47
+ Object.defineProperty(exports, "loadJsonl", {
48
+ enumerable: true,
49
+ get: function () { return chunkQUTUJ6P6_cjs.loadJsonl; }
50
+ });
51
+ Object.defineProperty(exports, "readJsonlIds", {
52
+ enumerable: true,
53
+ get: function () { return chunkQUTUJ6P6_cjs.readJsonlIds; }
54
+ });
55
+ Object.defineProperty(exports, "PersistenceSchema", {
56
+ enumerable: true,
57
+ get: function () { return chunkPNVDQL5Y_cjs.PersistenceSchema; }
58
+ });
59
+ Object.defineProperty(exports, "displayTheokitHome", {
60
+ enumerable: true,
61
+ get: function () { return chunkOIYQBUW4_cjs.displayTheokitHome; }
62
+ });
63
+ Object.defineProperty(exports, "getProfilesRoot", {
64
+ enumerable: true,
65
+ get: function () { return chunkOIYQBUW4_cjs.getProfilesRoot; }
66
+ });
67
+ Object.defineProperty(exports, "getTheokitHome", {
68
+ enumerable: true,
69
+ get: function () { return chunkOIYQBUW4_cjs.getTheokitHome; }
70
+ });
71
+ Object.defineProperty(exports, "migrateSchema", {
72
+ enumerable: true,
73
+ get: function () { return chunkOIYQBUW4_cjs.migrateSchema; }
74
+ });
75
+ Object.defineProperty(exports, "readVersionedJson", {
76
+ enumerable: true,
77
+ get: function () { return chunkOIYQBUW4_cjs.readVersionedJson; }
78
+ });
79
+ Object.defineProperty(exports, "writeVersionedJson", {
80
+ enumerable: true,
81
+ get: function () { return chunkOIYQBUW4_cjs.writeVersionedJson; }
82
+ });
83
+ Object.defineProperty(exports, "applyWalWithFallback", {
84
+ enumerable: true,
85
+ get: function () { return chunkJD74LN7R_cjs.applyWalWithFallback; }
86
+ });
87
+ Object.defineProperty(exports, "containsCjk", {
88
+ enumerable: true,
89
+ get: function () { return chunkJD74LN7R_cjs.containsCjk; }
90
+ });
91
+ Object.defineProperty(exports, "isCorruptionError", {
92
+ enumerable: true,
93
+ get: function () { return chunkJD74LN7R_cjs.isCorruptionError; }
94
+ });
95
+ Object.defineProperty(exports, "openSqliteResilient", {
96
+ enumerable: true,
97
+ get: function () { return chunkJD74LN7R_cjs.openSqliteResilient; }
98
+ });
99
+ Object.defineProperty(exports, "sanitizeFts5Query", {
100
+ enumerable: true,
101
+ get: function () { return chunkJD74LN7R_cjs.sanitizeFts5Query; }
102
+ });
103
+ Object.defineProperty(exports, "withFileLock", {
104
+ enumerable: true,
105
+ get: function () { return chunkC7PICHRF_cjs.withFileLock; }
106
+ });
107
+ Object.defineProperty(exports, "withCwdMutex", {
108
+ enumerable: true,
109
+ get: function () { return chunkYLQQX5W2_cjs.withCwdMutex; }
110
+ });
111
+ Object.defineProperty(exports, "atomicWriteJson", {
112
+ enumerable: true,
113
+ get: function () { return chunkTIZ4TS5V_cjs.atomicWriteJson; }
114
+ });
115
+ Object.defineProperty(exports, "atomicWriteText", {
116
+ enumerable: true,
117
+ get: function () { return chunkTIZ4TS5V_cjs.atomicWriteText; }
118
+ });
119
+ Object.defineProperty(exports, "replaceFileAtomic", {
120
+ enumerable: true,
121
+ get: function () { return chunkTIZ4TS5V_cjs.replaceFileAtomic; }
122
+ });
523
123
  exports.casUpdate = casUpdate;
524
- exports.containsCjk = containsCjk;
525
124
  exports.createExclusive = createExclusive;
526
- exports.displayTheokitHome = displayTheokitHome;
527
- exports.getProfilesRoot = getProfilesRoot;
528
- exports.getTheokitHome = getTheokitHome;
529
- exports.isCorruptionError = isCorruptionError;
530
- exports.loadJsonl = loadJsonl;
531
- exports.migrateSchema = migrateSchema;
532
- exports.openSqliteResilient = openSqliteResilient;
533
- exports.readJsonlIds = readJsonlIds;
534
- exports.readVersionedJson = readVersionedJson;
535
- exports.replaceFileAtomic = replaceFileAtomic;
536
- exports.sanitizeFts5Query = sanitizeFts5Query;
537
- exports.withCwdMutex = withCwdMutex;
538
- exports.withFileLock = withFileLock;
539
- exports.writeVersionedJson = writeVersionedJson;
540
125
  //# sourceMappingURL=index.cjs.map
541
126
  //# sourceMappingURL=index.cjs.map