@xrkseek/harness 0.3.11 → 0.4.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1054) hide show
  1. package/README.md +2 -1
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/node_modules/@xrkseek/attachment/dist/request-image-bound.d.ts +4 -2
  7. package/node_modules/@xrkseek/attachment/dist/request-image-bound.d.ts.map +1 -1
  8. package/node_modules/@xrkseek/attachment/dist/request-image-bound.js +59 -32
  9. package/node_modules/@xrkseek/attachment/dist/request-image-bound.js.map +1 -1
  10. package/node_modules/@xrkseek/attachment-local/README.md +6 -3
  11. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +2 -0
  12. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -1
  13. package/node_modules/@xrkseek/attachment-local/dist/index.js +9 -8
  14. package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -1
  15. package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts +3 -2
  16. package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts.map +1 -1
  17. package/node_modules/@xrkseek/attachment-local/dist/request-image.js +3 -2
  18. package/node_modules/@xrkseek/attachment-local/dist/request-image.js.map +1 -1
  19. package/node_modules/@xrkseek/attachment-local/dist/store.d.ts.map +1 -1
  20. package/node_modules/@xrkseek/attachment-local/dist/store.js +3 -0
  21. package/node_modules/@xrkseek/attachment-local/dist/store.js.map +1 -1
  22. package/node_modules/@xrkseek/attachment-local/package.json +26 -25
  23. package/node_modules/@xrkseek/code-runtime/README.md +13 -5
  24. package/node_modules/@xrkseek/code-runtime/dist/index.d.ts +39 -1
  25. package/node_modules/@xrkseek/code-runtime/dist/index.d.ts.map +1 -1
  26. package/node_modules/@xrkseek/code-runtime/dist/index.js +202 -60
  27. package/node_modules/@xrkseek/code-runtime/dist/index.js.map +1 -1
  28. package/node_modules/@xrkseek/core-agent/dist/index.d.ts +17 -0
  29. package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
  30. package/node_modules/@xrkseek/core-agent/dist/index.js +15 -0
  31. package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
  32. package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +7 -1
  33. package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
  34. package/node_modules/@xrkseek/core-agent-loop/dist/index.js +72 -37
  35. package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
  36. package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.d.ts +11 -1
  37. package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.d.ts.map +1 -1
  38. package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js +48 -38
  39. package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js.map +1 -1
  40. package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.d.ts +31 -0
  41. package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.d.ts.map +1 -0
  42. package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.js +54 -0
  43. package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.js.map +1 -0
  44. package/node_modules/@xrkseek/core-agent-loop/package.json +35 -34
  45. package/node_modules/@xrkseek/core-session/README.md +33 -33
  46. package/node_modules/@xrkseek/core-session/dist/admit.d.ts +5 -0
  47. package/node_modules/@xrkseek/core-session/dist/admit.d.ts.map +1 -1
  48. package/node_modules/@xrkseek/core-session/dist/admit.js +14 -0
  49. package/node_modules/@xrkseek/core-session/dist/admit.js.map +1 -1
  50. package/node_modules/@xrkseek/core-session/dist/compaction.d.ts +16 -1
  51. package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
  52. package/node_modules/@xrkseek/core-session/dist/compaction.js +56 -6
  53. package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
  54. package/node_modules/@xrkseek/core-session/dist/dangling.d.ts +0 -4
  55. package/node_modules/@xrkseek/core-session/dist/dangling.d.ts.map +1 -1
  56. package/node_modules/@xrkseek/core-session/dist/dangling.js +0 -2
  57. package/node_modules/@xrkseek/core-session/dist/dangling.js.map +1 -1
  58. package/node_modules/@xrkseek/core-session/dist/drain-hub.d.ts +2 -0
  59. package/node_modules/@xrkseek/core-session/dist/drain-hub.d.ts.map +1 -1
  60. package/node_modules/@xrkseek/core-session/dist/drain-hub.js +8 -0
  61. package/node_modules/@xrkseek/core-session/dist/drain-hub.js.map +1 -1
  62. package/node_modules/@xrkseek/core-session/dist/image-offload.d.ts +26 -0
  63. package/node_modules/@xrkseek/core-session/dist/image-offload.d.ts.map +1 -0
  64. package/node_modules/@xrkseek/core-session/dist/image-offload.js +141 -0
  65. package/node_modules/@xrkseek/core-session/dist/image-offload.js.map +1 -0
  66. package/node_modules/@xrkseek/core-session/dist/index.d.ts +29 -10
  67. package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
  68. package/node_modules/@xrkseek/core-session/dist/index.js +59 -14
  69. package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
  70. package/node_modules/@xrkseek/core-session/dist/session-interchange.d.ts +26 -0
  71. package/node_modules/@xrkseek/core-session/dist/session-interchange.d.ts.map +1 -0
  72. package/node_modules/@xrkseek/core-session/dist/session-interchange.js +271 -0
  73. package/node_modules/@xrkseek/core-session/dist/session-interchange.js.map +1 -0
  74. package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts +8 -0
  75. package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts.map +1 -1
  76. package/node_modules/@xrkseek/core-session/dist/sqlite-store.js +131 -49
  77. package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
  78. package/node_modules/@xrkseek/core-session/dist/store-lock.d.ts +22 -0
  79. package/node_modules/@xrkseek/core-session/dist/store-lock.d.ts.map +1 -0
  80. package/node_modules/@xrkseek/core-session/dist/store-lock.js +143 -0
  81. package/node_modules/@xrkseek/core-session/dist/store-lock.js.map +1 -0
  82. package/node_modules/@xrkseek/core-system-prompt/README.md +2 -1
  83. package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts +8 -0
  84. package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts.map +1 -1
  85. package/node_modules/@xrkseek/core-system-prompt/dist/index.js +25 -4
  86. package/node_modules/@xrkseek/core-system-prompt/dist/index.js.map +1 -1
  87. package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.d.ts +27 -0
  88. package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.d.ts.map +1 -0
  89. package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.js +56 -0
  90. package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.js.map +1 -0
  91. package/node_modules/@xrkseek/core-tools/dist/output-bound.d.ts +6 -1
  92. package/node_modules/@xrkseek/core-tools/dist/output-bound.d.ts.map +1 -1
  93. package/node_modules/@xrkseek/core-tools/dist/output-bound.js +6 -1
  94. package/node_modules/@xrkseek/core-tools/dist/output-bound.js.map +1 -1
  95. package/node_modules/@xrkseek/core-tools/dist/pipeline.d.ts +2 -1
  96. package/node_modules/@xrkseek/core-tools/dist/pipeline.d.ts.map +1 -1
  97. package/node_modules/@xrkseek/core-tools/dist/pipeline.js.map +1 -1
  98. package/node_modules/@xrkseek/core-tools/dist/presentation.d.ts +3 -5
  99. package/node_modules/@xrkseek/core-tools/dist/presentation.d.ts.map +1 -1
  100. package/node_modules/@xrkseek/core-tools/dist/presentation.js.map +1 -1
  101. package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.d.ts.map +1 -1
  102. package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js +1 -0
  103. package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js.map +1 -1
  104. package/node_modules/@xrkseek/exec-computer-use/README.md +13 -0
  105. package/node_modules/@xrkseek/exec-computer-use/dist/background.d.ts +11 -0
  106. package/node_modules/@xrkseek/exec-computer-use/dist/background.d.ts.map +1 -0
  107. package/node_modules/@xrkseek/exec-computer-use/dist/background.js +76 -0
  108. package/node_modules/@xrkseek/exec-computer-use/dist/background.js.map +1 -0
  109. package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts +20 -0
  110. package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts.map +1 -0
  111. package/node_modules/@xrkseek/exec-computer-use/dist/format.js +58 -0
  112. package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -0
  113. package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts +28 -0
  114. package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts.map +1 -0
  115. package/node_modules/@xrkseek/exec-computer-use/dist/index.js +62 -0
  116. package/node_modules/@xrkseek/exec-computer-use/dist/index.js.map +1 -0
  117. package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts +12 -0
  118. package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts.map +1 -0
  119. package/node_modules/@xrkseek/exec-computer-use/dist/memory.js +100 -0
  120. package/node_modules/@xrkseek/exec-computer-use/dist/memory.js.map +1 -0
  121. package/node_modules/@xrkseek/exec-computer-use/dist/registry.d.ts +12 -0
  122. package/node_modules/@xrkseek/exec-computer-use/dist/registry.d.ts.map +1 -0
  123. package/node_modules/@xrkseek/exec-computer-use/dist/registry.js +28 -0
  124. package/node_modules/@xrkseek/exec-computer-use/dist/registry.js.map +1 -0
  125. package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts +15 -0
  126. package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts.map +1 -0
  127. package/node_modules/@xrkseek/exec-computer-use/dist/tools.js +133 -0
  128. package/node_modules/@xrkseek/exec-computer-use/dist/tools.js.map +1 -0
  129. package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts +74 -0
  130. package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts.map +1 -0
  131. package/node_modules/@xrkseek/exec-computer-use/dist/types.js +24 -0
  132. package/node_modules/@xrkseek/exec-computer-use/dist/types.js.map +1 -0
  133. package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts +10 -0
  134. package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts.map +1 -0
  135. package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +253 -0
  136. package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js.map +1 -0
  137. package/node_modules/@xrkseek/exec-computer-use/package.json +26 -0
  138. package/node_modules/@xrkseek/exec-fs/dist/document-extract.d.ts +9 -0
  139. package/node_modules/@xrkseek/exec-fs/dist/document-extract.d.ts.map +1 -0
  140. package/node_modules/@xrkseek/exec-fs/dist/document-extract.js +427 -0
  141. package/node_modules/@xrkseek/exec-fs/dist/document-extract.js.map +1 -0
  142. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +6 -3
  143. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
  144. package/node_modules/@xrkseek/exec-fs/dist/index.js +13 -17
  145. package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
  146. package/node_modules/@xrkseek/exec-fs/dist/paths.d.ts +9 -0
  147. package/node_modules/@xrkseek/exec-fs/dist/paths.d.ts.map +1 -1
  148. package/node_modules/@xrkseek/exec-fs/dist/paths.js +101 -2
  149. package/node_modules/@xrkseek/exec-fs/dist/paths.js.map +1 -1
  150. package/node_modules/@xrkseek/exec-image-gen/README.md +11 -0
  151. package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts +2 -0
  152. package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts.map +1 -0
  153. package/node_modules/@xrkseek/exec-image-gen/dist/format.js +7 -0
  154. package/node_modules/@xrkseek/exec-image-gen/dist/format.js.map +1 -0
  155. package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +24 -0
  156. package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -0
  157. package/node_modules/@xrkseek/exec-image-gen/dist/index.js +55 -0
  158. package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -0
  159. package/node_modules/@xrkseek/exec-image-gen/dist/memory.d.ts +11 -0
  160. package/node_modules/@xrkseek/exec-image-gen/dist/memory.d.ts.map +1 -0
  161. package/node_modules/@xrkseek/exec-image-gen/dist/memory.js +32 -0
  162. package/node_modules/@xrkseek/exec-image-gen/dist/memory.js.map +1 -0
  163. package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts +13 -0
  164. package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts.map +1 -0
  165. package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js +67 -0
  166. package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js.map +1 -0
  167. package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +17 -0
  168. package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -0
  169. package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +130 -0
  170. package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -0
  171. package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts +37 -0
  172. package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts.map +1 -0
  173. package/node_modules/@xrkseek/exec-image-gen/dist/types.js +15 -0
  174. package/node_modules/@xrkseek/exec-image-gen/dist/types.js.map +1 -0
  175. package/node_modules/@xrkseek/exec-image-gen/package.json +27 -0
  176. package/node_modules/@xrkseek/exec-memory/README.md +11 -0
  177. package/node_modules/@xrkseek/exec-memory/dist/index.d.ts +4 -0
  178. package/node_modules/@xrkseek/exec-memory/dist/index.d.ts.map +1 -0
  179. package/node_modules/@xrkseek/exec-memory/dist/index.js +4 -0
  180. package/node_modules/@xrkseek/exec-memory/dist/index.js.map +1 -0
  181. package/node_modules/@xrkseek/exec-memory/dist/store.d.ts +43 -0
  182. package/node_modules/@xrkseek/exec-memory/dist/store.d.ts.map +1 -0
  183. package/node_modules/@xrkseek/exec-memory/dist/store.js +365 -0
  184. package/node_modules/@xrkseek/exec-memory/dist/store.js.map +1 -0
  185. package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts +8 -0
  186. package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts.map +1 -0
  187. package/node_modules/@xrkseek/exec-memory/dist/tools.js +145 -0
  188. package/node_modules/@xrkseek/exec-memory/dist/tools.js.map +1 -0
  189. package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts +26 -0
  190. package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts.map +1 -0
  191. package/node_modules/@xrkseek/exec-memory/dist/write-path.js +82 -0
  192. package/node_modules/@xrkseek/exec-memory/dist/write-path.js.map +1 -0
  193. package/node_modules/@xrkseek/exec-memory/package.json +27 -0
  194. package/node_modules/@xrkseek/exec-pty/dist/backend.d.ts +3 -0
  195. package/node_modules/@xrkseek/exec-pty/dist/backend.d.ts.map +1 -1
  196. package/node_modules/@xrkseek/exec-pty/dist/backend.js +7 -2
  197. package/node_modules/@xrkseek/exec-pty/dist/backend.js.map +1 -1
  198. package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.d.ts +35 -0
  199. package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.d.ts.map +1 -0
  200. package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.js +161 -0
  201. package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.js.map +1 -0
  202. package/node_modules/@xrkseek/exec-pty/dist/handle.d.ts.map +1 -1
  203. package/node_modules/@xrkseek/exec-pty/dist/handle.js +2 -0
  204. package/node_modules/@xrkseek/exec-pty/dist/handle.js.map +1 -1
  205. package/node_modules/@xrkseek/exec-pty/dist/index.d.ts +3 -0
  206. package/node_modules/@xrkseek/exec-pty/dist/index.d.ts.map +1 -1
  207. package/node_modules/@xrkseek/exec-pty/dist/index.js +3 -0
  208. package/node_modules/@xrkseek/exec-pty/dist/index.js.map +1 -1
  209. package/node_modules/@xrkseek/exec-pty/dist/process-inspector.d.ts.map +1 -1
  210. package/node_modules/@xrkseek/exec-pty/dist/process-inspector.js +6 -1
  211. package/node_modules/@xrkseek/exec-pty/dist/process-inspector.js.map +1 -1
  212. package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.d.ts +8 -2
  213. package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.d.ts.map +1 -1
  214. package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.js +4 -3
  215. package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.js.map +1 -1
  216. package/node_modules/@xrkseek/exec-pty/dist/session.d.ts.map +1 -1
  217. package/node_modules/@xrkseek/exec-pty/dist/session.js +3 -37
  218. package/node_modules/@xrkseek/exec-pty/dist/session.js.map +1 -1
  219. package/node_modules/@xrkseek/exec-pty/dist/windows-pty.d.ts +9 -0
  220. package/node_modules/@xrkseek/exec-pty/dist/windows-pty.d.ts.map +1 -0
  221. package/node_modules/@xrkseek/exec-pty/dist/windows-pty.js +14 -0
  222. package/node_modules/@xrkseek/exec-pty/dist/windows-pty.js.map +1 -0
  223. package/node_modules/@xrkseek/exec-sandbox/README.md +15 -6
  224. package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts +14 -0
  225. package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts.map +1 -0
  226. package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js +56 -0
  227. package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js.map +1 -0
  228. package/node_modules/@xrkseek/exec-sandbox/dist/docker.d.ts +30 -0
  229. package/node_modules/@xrkseek/exec-sandbox/dist/docker.d.ts.map +1 -0
  230. package/node_modules/@xrkseek/exec-sandbox/dist/docker.js +89 -0
  231. package/node_modules/@xrkseek/exec-sandbox/dist/docker.js.map +1 -0
  232. package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts +5 -28
  233. package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts.map +1 -1
  234. package/node_modules/@xrkseek/exec-sandbox/dist/index.js +5 -85
  235. package/node_modules/@xrkseek/exec-sandbox/dist/index.js.map +1 -1
  236. package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts +44 -0
  237. package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts.map +1 -0
  238. package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js +108 -0
  239. package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js.map +1 -0
  240. package/node_modules/@xrkseek/exec-sandbox/dist/service.d.ts +37 -0
  241. package/node_modules/@xrkseek/exec-sandbox/dist/service.d.ts.map +1 -0
  242. package/node_modules/@xrkseek/exec-sandbox/dist/service.js +112 -0
  243. package/node_modules/@xrkseek/exec-sandbox/dist/service.js.map +1 -0
  244. package/node_modules/@xrkseek/exec-sandbox/dist/windows.d.ts +56 -0
  245. package/node_modules/@xrkseek/exec-sandbox/dist/windows.d.ts.map +1 -0
  246. package/node_modules/@xrkseek/exec-sandbox/dist/windows.js +134 -0
  247. package/node_modules/@xrkseek/exec-sandbox/dist/windows.js.map +1 -0
  248. package/node_modules/@xrkseek/exec-shell/dist/index.d.ts +12 -0
  249. package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
  250. package/node_modules/@xrkseek/exec-shell/dist/index.js +51 -5
  251. package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
  252. package/node_modules/@xrkseek/exec-ssh/README.md +16 -0
  253. package/node_modules/@xrkseek/exec-ssh/dist/code.d.ts +8 -0
  254. package/node_modules/@xrkseek/exec-ssh/dist/code.d.ts.map +1 -0
  255. package/node_modules/@xrkseek/exec-ssh/dist/code.js +66 -0
  256. package/node_modules/@xrkseek/exec-ssh/dist/code.js.map +1 -0
  257. package/node_modules/@xrkseek/exec-ssh/dist/config.d.ts +21 -0
  258. package/node_modules/@xrkseek/exec-ssh/dist/config.d.ts.map +1 -0
  259. package/node_modules/@xrkseek/exec-ssh/dist/config.js +30 -0
  260. package/node_modules/@xrkseek/exec-ssh/dist/config.js.map +1 -0
  261. package/node_modules/@xrkseek/exec-ssh/dist/directory.d.ts +29 -0
  262. package/node_modules/@xrkseek/exec-ssh/dist/directory.d.ts.map +1 -0
  263. package/node_modules/@xrkseek/exec-ssh/dist/directory.js +109 -0
  264. package/node_modules/@xrkseek/exec-ssh/dist/directory.js.map +1 -0
  265. package/node_modules/@xrkseek/exec-ssh/dist/fs.d.ts +11 -0
  266. package/node_modules/@xrkseek/exec-ssh/dist/fs.d.ts.map +1 -0
  267. package/node_modules/@xrkseek/exec-ssh/dist/fs.js +214 -0
  268. package/node_modules/@xrkseek/exec-ssh/dist/fs.js.map +1 -0
  269. package/node_modules/@xrkseek/exec-ssh/dist/index.d.ts +10 -0
  270. package/node_modules/@xrkseek/exec-ssh/dist/index.d.ts.map +1 -0
  271. package/node_modules/@xrkseek/exec-ssh/dist/index.js +10 -0
  272. package/node_modules/@xrkseek/exec-ssh/dist/index.js.map +1 -0
  273. package/node_modules/@xrkseek/exec-ssh/dist/paths.d.ts +10 -0
  274. package/node_modules/@xrkseek/exec-ssh/dist/paths.d.ts.map +1 -0
  275. package/node_modules/@xrkseek/exec-ssh/dist/paths.js +34 -0
  276. package/node_modules/@xrkseek/exec-ssh/dist/paths.js.map +1 -0
  277. package/node_modules/@xrkseek/exec-ssh/dist/providers.d.ts +19 -0
  278. package/node_modules/@xrkseek/exec-ssh/dist/providers.d.ts.map +1 -0
  279. package/node_modules/@xrkseek/exec-ssh/dist/providers.js +22 -0
  280. package/node_modules/@xrkseek/exec-ssh/dist/providers.js.map +1 -0
  281. package/node_modules/@xrkseek/exec-ssh/dist/quote.d.ts +5 -0
  282. package/node_modules/@xrkseek/exec-ssh/dist/quote.d.ts.map +1 -0
  283. package/node_modules/@xrkseek/exec-ssh/dist/quote.js +11 -0
  284. package/node_modules/@xrkseek/exec-ssh/dist/quote.js.map +1 -0
  285. package/node_modules/@xrkseek/exec-ssh/dist/session.d.ts +31 -0
  286. package/node_modules/@xrkseek/exec-ssh/dist/session.d.ts.map +1 -0
  287. package/node_modules/@xrkseek/exec-ssh/dist/session.js +89 -0
  288. package/node_modules/@xrkseek/exec-ssh/dist/session.js.map +1 -0
  289. package/node_modules/@xrkseek/exec-ssh/dist/subprocess.d.ts +8 -0
  290. package/node_modules/@xrkseek/exec-ssh/dist/subprocess.d.ts.map +1 -0
  291. package/node_modules/@xrkseek/exec-ssh/dist/subprocess.js +30 -0
  292. package/node_modules/@xrkseek/exec-ssh/dist/subprocess.js.map +1 -0
  293. package/node_modules/@xrkseek/exec-ssh/package.json +28 -0
  294. package/node_modules/@xrkseek/exec-subprocess/README.md +1 -1
  295. package/node_modules/@xrkseek/exec-video-gen/README.md +19 -0
  296. package/node_modules/@xrkseek/exec-video-gen/dist/format.d.ts +2 -0
  297. package/node_modules/@xrkseek/exec-video-gen/dist/format.d.ts.map +1 -0
  298. package/node_modules/@xrkseek/exec-video-gen/dist/format.js +8 -0
  299. package/node_modules/@xrkseek/exec-video-gen/dist/format.js.map +1 -0
  300. package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts +24 -0
  301. package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts.map +1 -0
  302. package/node_modules/@xrkseek/exec-video-gen/dist/index.js +57 -0
  303. package/node_modules/@xrkseek/exec-video-gen/dist/index.js.map +1 -0
  304. package/node_modules/@xrkseek/exec-video-gen/dist/memory.d.ts +20 -0
  305. package/node_modules/@xrkseek/exec-video-gen/dist/memory.d.ts.map +1 -0
  306. package/node_modules/@xrkseek/exec-video-gen/dist/memory.js +105 -0
  307. package/node_modules/@xrkseek/exec-video-gen/dist/memory.js.map +1 -0
  308. package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts +16 -0
  309. package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts.map +1 -0
  310. package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js +113 -0
  311. package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js.map +1 -0
  312. package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts +23 -0
  313. package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts.map +1 -0
  314. package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +242 -0
  315. package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -0
  316. package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts +66 -0
  317. package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts.map +1 -0
  318. package/node_modules/@xrkseek/exec-video-gen/dist/types.js +25 -0
  319. package/node_modules/@xrkseek/exec-video-gen/dist/types.js.map +1 -0
  320. package/node_modules/@xrkseek/exec-video-gen/package.json +27 -0
  321. package/node_modules/@xrkseek/exec-voice/README.md +25 -0
  322. package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.d.ts +44 -0
  323. package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.d.ts.map +1 -0
  324. package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.js +163 -0
  325. package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.js.map +1 -0
  326. package/node_modules/@xrkseek/exec-voice/dist/browser/env.d.ts +23 -0
  327. package/node_modules/@xrkseek/exec-voice/dist/browser/env.d.ts.map +1 -0
  328. package/node_modules/@xrkseek/exec-voice/dist/browser/env.js +93 -0
  329. package/node_modules/@xrkseek/exec-voice/dist/browser/env.js.map +1 -0
  330. package/node_modules/@xrkseek/exec-voice/dist/browser/index.d.ts +51 -0
  331. package/node_modules/@xrkseek/exec-voice/dist/browser/index.d.ts.map +1 -0
  332. package/node_modules/@xrkseek/exec-voice/dist/browser/index.js +44 -0
  333. package/node_modules/@xrkseek/exec-voice/dist/browser/index.js.map +1 -0
  334. package/node_modules/@xrkseek/exec-voice/dist/browser/session.d.ts +26 -0
  335. package/node_modules/@xrkseek/exec-voice/dist/browser/session.d.ts.map +1 -0
  336. package/node_modules/@xrkseek/exec-voice/dist/browser/session.js +96 -0
  337. package/node_modules/@xrkseek/exec-voice/dist/browser/session.js.map +1 -0
  338. package/node_modules/@xrkseek/exec-voice/dist/browser/types.d.ts +91 -0
  339. package/node_modules/@xrkseek/exec-voice/dist/browser/types.d.ts.map +1 -0
  340. package/node_modules/@xrkseek/exec-voice/dist/browser/types.js +10 -0
  341. package/node_modules/@xrkseek/exec-voice/dist/browser/types.js.map +1 -0
  342. package/node_modules/@xrkseek/exec-voice/dist/format.d.ts +2 -0
  343. package/node_modules/@xrkseek/exec-voice/dist/format.d.ts.map +1 -0
  344. package/node_modules/@xrkseek/exec-voice/dist/format.js +8 -0
  345. package/node_modules/@xrkseek/exec-voice/dist/format.js.map +1 -0
  346. package/node_modules/@xrkseek/exec-voice/dist/index.d.ts +24 -0
  347. package/node_modules/@xrkseek/exec-voice/dist/index.d.ts.map +1 -0
  348. package/node_modules/@xrkseek/exec-voice/dist/index.js +53 -0
  349. package/node_modules/@xrkseek/exec-voice/dist/index.js.map +1 -0
  350. package/node_modules/@xrkseek/exec-voice/dist/memory.d.ts +11 -0
  351. package/node_modules/@xrkseek/exec-voice/dist/memory.d.ts.map +1 -0
  352. package/node_modules/@xrkseek/exec-voice/dist/memory.js +85 -0
  353. package/node_modules/@xrkseek/exec-voice/dist/memory.js.map +1 -0
  354. package/node_modules/@xrkseek/exec-voice/dist/openai-http.d.ts +16 -0
  355. package/node_modules/@xrkseek/exec-voice/dist/openai-http.d.ts.map +1 -0
  356. package/node_modules/@xrkseek/exec-voice/dist/openai-http.js +135 -0
  357. package/node_modules/@xrkseek/exec-voice/dist/openai-http.js.map +1 -0
  358. package/node_modules/@xrkseek/exec-voice/dist/tools.d.ts +14 -0
  359. package/node_modules/@xrkseek/exec-voice/dist/tools.d.ts.map +1 -0
  360. package/node_modules/@xrkseek/exec-voice/dist/tools.js +240 -0
  361. package/node_modules/@xrkseek/exec-voice/dist/tools.js.map +1 -0
  362. package/node_modules/@xrkseek/exec-voice/dist/types.d.ts +69 -0
  363. package/node_modules/@xrkseek/exec-voice/dist/types.d.ts.map +1 -0
  364. package/node_modules/@xrkseek/exec-voice/dist/types.js +16 -0
  365. package/node_modules/@xrkseek/exec-voice/dist/types.js.map +1 -0
  366. package/node_modules/@xrkseek/exec-voice/package.json +31 -0
  367. package/node_modules/@xrkseek/exec-web/README.md +5 -5
  368. package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts +23 -0
  369. package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts.map +1 -0
  370. package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js +286 -0
  371. package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js.map +1 -0
  372. package/node_modules/@xrkseek/exec-web/dist/browser-html.d.ts +26 -0
  373. package/node_modules/@xrkseek/exec-web/dist/browser-html.d.ts.map +1 -0
  374. package/node_modules/@xrkseek/exec-web/dist/browser-html.js +118 -0
  375. package/node_modules/@xrkseek/exec-web/dist/browser-html.js.map +1 -0
  376. package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts +33 -0
  377. package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts.map +1 -0
  378. package/node_modules/@xrkseek/exec-web/dist/browser-session.js +113 -0
  379. package/node_modules/@xrkseek/exec-web/dist/browser-session.js.map +1 -0
  380. package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts +22 -0
  381. package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -0
  382. package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +172 -0
  383. package/node_modules/@xrkseek/exec-web/dist/browser-tools.js.map +1 -0
  384. package/node_modules/@xrkseek/exec-web/dist/format.d.ts +4 -0
  385. package/node_modules/@xrkseek/exec-web/dist/format.d.ts.map +1 -1
  386. package/node_modules/@xrkseek/exec-web/dist/format.js +13 -0
  387. package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
  388. package/node_modules/@xrkseek/exec-web/dist/index.d.ts +5 -1
  389. package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
  390. package/node_modules/@xrkseek/exec-web/dist/index.js +5 -1
  391. package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
  392. package/node_modules/@xrkseek/llm/dist/index.d.ts +0 -4
  393. package/node_modules/@xrkseek/llm/dist/index.d.ts.map +1 -1
  394. package/node_modules/@xrkseek/llm/dist/index.js +0 -20
  395. package/node_modules/@xrkseek/llm/dist/index.js.map +1 -1
  396. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts.map +1 -1
  397. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js +2 -6
  398. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js.map +1 -1
  399. package/node_modules/@xrkseek/llm-deepseek/package.json +30 -29
  400. package/node_modules/@xrkseek/mcp/README.md +36 -2
  401. package/node_modules/@xrkseek/mcp/dist/client.d.ts.map +1 -1
  402. package/node_modules/@xrkseek/mcp/dist/client.js +220 -28
  403. package/node_modules/@xrkseek/mcp/dist/client.js.map +1 -1
  404. package/node_modules/@xrkseek/mcp/dist/index.d.ts +7 -4
  405. package/node_modules/@xrkseek/mcp/dist/index.d.ts.map +1 -1
  406. package/node_modules/@xrkseek/mcp/dist/index.js +6 -3
  407. package/node_modules/@xrkseek/mcp/dist/index.js.map +1 -1
  408. package/node_modules/@xrkseek/mcp/dist/list-tools.d.ts +15 -0
  409. package/node_modules/@xrkseek/mcp/dist/list-tools.d.ts.map +1 -1
  410. package/node_modules/@xrkseek/mcp/dist/list-tools.js +40 -0
  411. package/node_modules/@xrkseek/mcp/dist/list-tools.js.map +1 -1
  412. package/node_modules/@xrkseek/mcp/dist/oauth-device.d.ts +104 -0
  413. package/node_modules/@xrkseek/mcp/dist/oauth-device.d.ts.map +1 -0
  414. package/node_modules/@xrkseek/mcp/dist/oauth-device.js +338 -0
  415. package/node_modules/@xrkseek/mcp/dist/oauth-device.js.map +1 -0
  416. package/node_modules/@xrkseek/mcp/dist/oauth-discovery.d.ts +92 -0
  417. package/node_modules/@xrkseek/mcp/dist/oauth-discovery.d.ts.map +1 -0
  418. package/node_modules/@xrkseek/mcp/dist/oauth-discovery.js +232 -0
  419. package/node_modules/@xrkseek/mcp/dist/oauth-discovery.js.map +1 -0
  420. package/node_modules/@xrkseek/mcp/dist/resources.d.ts +24 -0
  421. package/node_modules/@xrkseek/mcp/dist/resources.d.ts.map +1 -0
  422. package/node_modules/@xrkseek/mcp/dist/resources.js +127 -0
  423. package/node_modules/@xrkseek/mcp/dist/resources.js.map +1 -0
  424. package/node_modules/@xrkseek/mcp/dist/types.d.ts +61 -0
  425. package/node_modules/@xrkseek/mcp/dist/types.d.ts.map +1 -1
  426. package/node_modules/@xrkseek/policy/dist/engine.d.ts +12 -1
  427. package/node_modules/@xrkseek/policy/dist/engine.d.ts.map +1 -1
  428. package/node_modules/@xrkseek/policy/dist/engine.js +31 -5
  429. package/node_modules/@xrkseek/policy/dist/engine.js.map +1 -1
  430. package/node_modules/@xrkseek/policy/dist/index.d.ts +6 -5
  431. package/node_modules/@xrkseek/policy/dist/index.d.ts.map +1 -1
  432. package/node_modules/@xrkseek/policy/dist/index.js +5 -4
  433. package/node_modules/@xrkseek/policy/dist/index.js.map +1 -1
  434. package/node_modules/@xrkseek/policy/dist/load.d.ts +12 -4
  435. package/node_modules/@xrkseek/policy/dist/load.d.ts.map +1 -1
  436. package/node_modules/@xrkseek/policy/dist/load.js +40 -21
  437. package/node_modules/@xrkseek/policy/dist/load.js.map +1 -1
  438. package/node_modules/@xrkseek/policy/dist/permission-pre.d.ts +7 -0
  439. package/node_modules/@xrkseek/policy/dist/permission-pre.d.ts.map +1 -1
  440. package/node_modules/@xrkseek/policy/dist/permission-pre.js +14 -0
  441. package/node_modules/@xrkseek/policy/dist/permission-pre.js.map +1 -1
  442. package/node_modules/@xrkseek/policy/dist/rules.d.ts +30 -0
  443. package/node_modules/@xrkseek/policy/dist/rules.d.ts.map +1 -1
  444. package/node_modules/@xrkseek/policy/dist/rules.js +102 -0
  445. package/node_modules/@xrkseek/policy/dist/rules.js.map +1 -1
  446. package/node_modules/@xrkseek/policy/dist/ruleset.d.ts +4 -1
  447. package/node_modules/@xrkseek/policy/dist/ruleset.d.ts.map +1 -1
  448. package/node_modules/@xrkseek/policy/dist/ruleset.js +39 -2
  449. package/node_modules/@xrkseek/policy/dist/ruleset.js.map +1 -1
  450. package/node_modules/@xrkseek/policy/dist/schema.d.ts +16 -1
  451. package/node_modules/@xrkseek/policy/dist/schema.d.ts.map +1 -1
  452. package/node_modules/@xrkseek/policy/dist/schema.js +15 -1
  453. package/node_modules/@xrkseek/policy/dist/schema.js.map +1 -1
  454. package/node_modules/@xrkseek/policy/dist/types.d.ts +40 -2
  455. package/node_modules/@xrkseek/policy/dist/types.d.ts.map +1 -1
  456. package/node_modules/@xrkseek/policy/dist/wire-error.d.ts +30 -0
  457. package/node_modules/@xrkseek/policy/dist/wire-error.d.ts.map +1 -0
  458. package/node_modules/@xrkseek/policy/dist/wire-error.js +42 -0
  459. package/node_modules/@xrkseek/policy/dist/wire-error.js.map +1 -0
  460. package/node_modules/@xrkseek/policy/package.json +31 -26
  461. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +107 -1
  462. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
  463. package/node_modules/@xrkseek/preset-harness/dist/preset.js +331 -19
  464. package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
  465. package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
  466. package/node_modules/@xrkseek/preset-harness/package.json +7 -0
  467. package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts.map +1 -1
  468. package/node_modules/@xrkseek/preset-minimal/dist/preset.js +7 -4
  469. package/node_modules/@xrkseek/preset-minimal/dist/preset.js.map +1 -1
  470. package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
  471. package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
  472. package/node_modules/@xrkseek/preset-server/dist/preset.js +5 -1
  473. package/node_modules/@xrkseek/preset-server/dist/preset.js.map +1 -1
  474. package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
  475. package/node_modules/@xrkseek/protocol/README.md +33 -35
  476. package/node_modules/@xrkseek/protocol/dist/content.d.ts +5 -0
  477. package/node_modules/@xrkseek/protocol/dist/content.d.ts.map +1 -1
  478. package/node_modules/@xrkseek/protocol/dist/content.js +4 -2
  479. package/node_modules/@xrkseek/protocol/dist/content.js.map +1 -1
  480. package/node_modules/@xrkseek/protocol/dist/index.d.ts +4 -2
  481. package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
  482. package/node_modules/@xrkseek/protocol/dist/index.js +3 -1
  483. package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
  484. package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts +2 -321
  485. package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
  486. package/node_modules/@xrkseek/protocol/dist/json-schema.js +106 -61
  487. package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
  488. package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +28 -1
  489. package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
  490. package/node_modules/@xrkseek/protocol/dist/session-events.js +2 -0
  491. package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
  492. package/node_modules/@xrkseek/protocol/dist/sidebar-previews.d.ts +84 -0
  493. package/node_modules/@xrkseek/protocol/dist/sidebar-previews.d.ts.map +1 -0
  494. package/node_modules/@xrkseek/protocol/dist/sidebar-previews.js +36 -0
  495. package/node_modules/@xrkseek/protocol/dist/sidebar-previews.js.map +1 -0
  496. package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
  497. package/node_modules/@xrkseek/protocol/dist/validate.js +154 -0
  498. package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
  499. package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts +132 -0
  500. package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts.map +1 -0
  501. package/node_modules/@xrkseek/protocol/dist/workspace-changes.js +160 -0
  502. package/node_modules/@xrkseek/protocol/dist/workspace-changes.js.map +1 -0
  503. package/node_modules/@xrkseek/server-config/dist/home.d.ts +26 -10
  504. package/node_modules/@xrkseek/server-config/dist/home.d.ts.map +1 -1
  505. package/node_modules/@xrkseek/server-config/dist/home.js +40 -30
  506. package/node_modules/@xrkseek/server-config/dist/home.js.map +1 -1
  507. package/node_modules/@xrkseek/server-config/dist/index.d.ts +2 -1
  508. package/node_modules/@xrkseek/server-config/dist/index.d.ts.map +1 -1
  509. package/node_modules/@xrkseek/server-config/dist/index.js +1 -1
  510. package/node_modules/@xrkseek/server-config/dist/index.js.map +1 -1
  511. package/node_modules/@xrkseek/server-config/dist/mcp-servers.d.ts +2 -0
  512. package/node_modules/@xrkseek/server-config/dist/mcp-servers.d.ts.map +1 -1
  513. package/node_modules/@xrkseek/server-config/dist/mcp-servers.js +1 -0
  514. package/node_modules/@xrkseek/server-config/dist/mcp-servers.js.map +1 -1
  515. package/node_modules/@xrkseek/server-config/package.json +28 -27
  516. package/node_modules/@xrkseek/server-cron/README.md +11 -0
  517. package/node_modules/@xrkseek/server-cron/dist/deliver.d.ts +9 -0
  518. package/node_modules/@xrkseek/server-cron/dist/deliver.d.ts.map +1 -0
  519. package/node_modules/@xrkseek/server-cron/dist/deliver.js +59 -0
  520. package/node_modules/@xrkseek/server-cron/dist/deliver.js.map +1 -0
  521. package/node_modules/@xrkseek/server-cron/dist/index.d.ts +27 -0
  522. package/node_modules/@xrkseek/server-cron/dist/index.d.ts.map +1 -0
  523. package/node_modules/@xrkseek/server-cron/dist/index.js +48 -0
  524. package/node_modules/@xrkseek/server-cron/dist/index.js.map +1 -0
  525. package/node_modules/@xrkseek/server-cron/dist/runner.d.ts +10 -0
  526. package/node_modules/@xrkseek/server-cron/dist/runner.d.ts.map +1 -0
  527. package/node_modules/@xrkseek/server-cron/dist/runner.js +62 -0
  528. package/node_modules/@xrkseek/server-cron/dist/runner.js.map +1 -0
  529. package/node_modules/@xrkseek/server-cron/dist/schedule.d.ts +9 -0
  530. package/node_modules/@xrkseek/server-cron/dist/schedule.d.ts.map +1 -0
  531. package/node_modules/@xrkseek/server-cron/dist/schedule.js +108 -0
  532. package/node_modules/@xrkseek/server-cron/dist/schedule.js.map +1 -0
  533. package/node_modules/@xrkseek/server-cron/dist/scheduler.d.ts +29 -0
  534. package/node_modules/@xrkseek/server-cron/dist/scheduler.d.ts.map +1 -0
  535. package/node_modules/@xrkseek/server-cron/dist/scheduler.js +152 -0
  536. package/node_modules/@xrkseek/server-cron/dist/scheduler.js.map +1 -0
  537. package/node_modules/@xrkseek/server-cron/dist/store.d.ts +26 -0
  538. package/node_modules/@xrkseek/server-cron/dist/store.d.ts.map +1 -0
  539. package/node_modules/@xrkseek/server-cron/dist/store.js +127 -0
  540. package/node_modules/@xrkseek/server-cron/dist/store.js.map +1 -0
  541. package/node_modules/@xrkseek/server-cron/dist/tools.d.ts +8 -0
  542. package/node_modules/@xrkseek/server-cron/dist/tools.d.ts.map +1 -0
  543. package/node_modules/@xrkseek/server-cron/dist/tools.js +183 -0
  544. package/node_modules/@xrkseek/server-cron/dist/tools.js.map +1 -0
  545. package/node_modules/@xrkseek/server-cron/dist/types.d.ts +77 -0
  546. package/node_modules/@xrkseek/server-cron/dist/types.d.ts.map +1 -0
  547. package/node_modules/@xrkseek/server-cron/dist/types.js +17 -0
  548. package/node_modules/@xrkseek/server-cron/dist/types.js.map +1 -0
  549. package/node_modules/@xrkseek/server-cron/package.json +26 -0
  550. package/node_modules/@xrkseek/server-face/dist/adapt/index.d.ts +1 -1
  551. package/node_modules/@xrkseek/server-face/dist/adapt/index.d.ts.map +1 -1
  552. package/node_modules/@xrkseek/server-face/dist/adapt/index.js +1 -1
  553. package/node_modules/@xrkseek/server-face/dist/adapt/index.js.map +1 -1
  554. package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.d.ts +9 -0
  555. package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.d.ts.map +1 -1
  556. package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.js +31 -4
  557. package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.js.map +1 -1
  558. package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts +2 -0
  559. package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts.map +1 -1
  560. package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js +16 -0
  561. package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
  562. package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts +56 -0
  563. package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts.map +1 -0
  564. package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js +233 -0
  565. package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js.map +1 -0
  566. package/node_modules/@xrkseek/server-face/dist/approvals.d.ts +10 -1
  567. package/node_modules/@xrkseek/server-face/dist/approvals.d.ts.map +1 -1
  568. package/node_modules/@xrkseek/server-face/dist/approvals.js +24 -0
  569. package/node_modules/@xrkseek/server-face/dist/approvals.js.map +1 -1
  570. package/node_modules/@xrkseek/server-face/dist/context.d.ts +51 -3
  571. package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
  572. package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
  573. package/node_modules/@xrkseek/server-face/dist/dispatch.js +3 -0
  574. package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
  575. package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts +34 -0
  576. package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts.map +1 -0
  577. package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js +287 -0
  578. package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js.map +1 -0
  579. package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
  580. package/node_modules/@xrkseek/server-face/dist/face-schema.js +1 -0
  581. package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
  582. package/node_modules/@xrkseek/server-face/dist/fork-cut.d.ts +33 -0
  583. package/node_modules/@xrkseek/server-face/dist/fork-cut.d.ts.map +1 -0
  584. package/node_modules/@xrkseek/server-face/dist/fork-cut.js +114 -0
  585. package/node_modules/@xrkseek/server-face/dist/fork-cut.js.map +1 -0
  586. package/node_modules/@xrkseek/server-face/dist/handlers/catalog.d.ts.map +1 -1
  587. package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js +2 -2
  588. package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js.map +1 -1
  589. package/node_modules/@xrkseek/server-face/dist/handlers/changes.d.ts +23 -0
  590. package/node_modules/@xrkseek/server-face/dist/handlers/changes.d.ts.map +1 -0
  591. package/node_modules/@xrkseek/server-face/dist/handlers/changes.js +113 -0
  592. package/node_modules/@xrkseek/server-face/dist/handlers/changes.js.map +1 -0
  593. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts.map +1 -1
  594. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js +10 -3
  595. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js.map +1 -1
  596. package/node_modules/@xrkseek/server-face/dist/handlers/host.d.ts.map +1 -1
  597. package/node_modules/@xrkseek/server-face/dist/handlers/host.js +62 -9
  598. package/node_modules/@xrkseek/server-face/dist/handlers/host.js.map +1 -1
  599. package/node_modules/@xrkseek/server-face/dist/handlers/session-added.d.ts.map +1 -1
  600. package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js +3 -1
  601. package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js.map +1 -1
  602. package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
  603. package/node_modules/@xrkseek/server-face/dist/handlers/session.js +45 -23
  604. package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
  605. package/node_modules/@xrkseek/server-face/dist/handlers/subagent.d.ts.map +1 -1
  606. package/node_modules/@xrkseek/server-face/dist/handlers/subagent.js +3 -2
  607. package/node_modules/@xrkseek/server-face/dist/handlers/subagent.js.map +1 -1
  608. package/node_modules/@xrkseek/server-face/dist/host-open-path.d.ts +4 -0
  609. package/node_modules/@xrkseek/server-face/dist/host-open-path.d.ts.map +1 -1
  610. package/node_modules/@xrkseek/server-face/dist/host-open-path.js +24 -2
  611. package/node_modules/@xrkseek/server-face/dist/host-open-path.js.map +1 -1
  612. package/node_modules/@xrkseek/server-face/dist/index.d.ts +7 -6
  613. package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
  614. package/node_modules/@xrkseek/server-face/dist/index.js +6 -5
  615. package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
  616. package/node_modules/@xrkseek/server-face/dist/last-good-config.d.ts +30 -0
  617. package/node_modules/@xrkseek/server-face/dist/last-good-config.d.ts.map +1 -0
  618. package/node_modules/@xrkseek/server-face/dist/last-good-config.js +39 -0
  619. package/node_modules/@xrkseek/server-face/dist/last-good-config.js.map +1 -0
  620. package/node_modules/@xrkseek/server-face/dist/permissions.d.ts +10 -2
  621. package/node_modules/@xrkseek/server-face/dist/permissions.d.ts.map +1 -1
  622. package/node_modules/@xrkseek/server-face/dist/permissions.js +40 -3
  623. package/node_modules/@xrkseek/server-face/dist/permissions.js.map +1 -1
  624. package/node_modules/@xrkseek/server-face/dist/plugin-boot.d.ts.map +1 -1
  625. package/node_modules/@xrkseek/server-face/dist/plugin-boot.js +4 -0
  626. package/node_modules/@xrkseek/server-face/dist/plugin-boot.js.map +1 -1
  627. package/node_modules/@xrkseek/server-face/dist/presets-catalog.d.ts +12 -4
  628. package/node_modules/@xrkseek/server-face/dist/presets-catalog.d.ts.map +1 -1
  629. package/node_modules/@xrkseek/server-face/dist/presets-catalog.js +6 -6
  630. package/node_modules/@xrkseek/server-face/dist/presets-catalog.js.map +1 -1
  631. package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +1 -1
  632. package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
  633. package/node_modules/@xrkseek/server-face/dist/projections/index.js +1 -1
  634. package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
  635. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.d.ts.map +1 -1
  636. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js +3 -0
  637. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js.map +1 -1
  638. package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.d.ts.map +1 -1
  639. package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.js +46 -12
  640. package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.js.map +1 -1
  641. package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts +8 -1
  642. package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts.map +1 -1
  643. package/node_modules/@xrkseek/server-face/dist/projections/registry.js.map +1 -1
  644. package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.d.ts +2 -7
  645. package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.d.ts.map +1 -1
  646. package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.js +2 -11
  647. package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.js.map +1 -1
  648. package/node_modules/@xrkseek/server-face/dist/projections/units/todos.d.ts +4 -2
  649. package/node_modules/@xrkseek/server-face/dist/projections/units/todos.d.ts.map +1 -1
  650. package/node_modules/@xrkseek/server-face/dist/projections/units/todos.js +5 -5
  651. package/node_modules/@xrkseek/server-face/dist/projections/units/todos.js.map +1 -1
  652. package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.d.ts +13 -0
  653. package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.d.ts.map +1 -0
  654. package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.js +104 -0
  655. package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.js.map +1 -0
  656. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +10 -3
  657. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
  658. package/node_modules/@xrkseek/server-face/dist/runtime.js +105 -10
  659. package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
  660. package/node_modules/@xrkseek/server-face/dist/select-session-model.d.ts.map +1 -1
  661. package/node_modules/@xrkseek/server-face/dist/select-session-model.js +12 -1
  662. package/node_modules/@xrkseek/server-face/dist/select-session-model.js.map +1 -1
  663. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +4 -0
  664. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
  665. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +253 -41
  666. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
  667. package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts +3 -0
  668. package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts.map +1 -1
  669. package/node_modules/@xrkseek/server-face/dist/settings-document.js +84 -23
  670. package/node_modules/@xrkseek/server-face/dist/settings-document.js.map +1 -1
  671. package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
  672. package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +11 -0
  673. package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
  674. package/node_modules/@xrkseek/server-face/dist/subagent-registry.d.ts +9 -2
  675. package/node_modules/@xrkseek/server-face/dist/subagent-registry.d.ts.map +1 -1
  676. package/node_modules/@xrkseek/server-face/dist/subagent-registry.js +21 -3
  677. package/node_modules/@xrkseek/server-face/dist/subagent-registry.js.map +1 -1
  678. package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts +8 -2
  679. package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
  680. package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +185 -38
  681. package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
  682. package/node_modules/@xrkseek/server-face/dist/subagent-worktree.d.ts +33 -0
  683. package/node_modules/@xrkseek/server-face/dist/subagent-worktree.d.ts.map +1 -0
  684. package/node_modules/@xrkseek/server-face/dist/subagent-worktree.js +172 -0
  685. package/node_modules/@xrkseek/server-face/dist/subagent-worktree.js.map +1 -0
  686. package/node_modules/@xrkseek/server-face/dist/types.d.ts +1 -1
  687. package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
  688. package/node_modules/@xrkseek/server-face/dist/wire/paths.d.ts.map +1 -1
  689. package/node_modules/@xrkseek/server-face/dist/wire/paths.js +1 -0
  690. package/node_modules/@xrkseek/server-face/dist/wire/paths.js.map +1 -1
  691. package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts +1 -1
  692. package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts.map +1 -1
  693. package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js +16 -1
  694. package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js.map +1 -1
  695. package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts.map +1 -1
  696. package/node_modules/@xrkseek/server-face/dist/workspace-face.js +40 -0
  697. package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
  698. package/node_modules/@xrkseek/server-face/package.json +56 -55
  699. package/node_modules/@xrkseek/server-host/dist/index.d.ts +18 -2
  700. package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
  701. package/node_modules/@xrkseek/server-host/dist/index.js +340 -48
  702. package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
  703. package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.d.ts +22 -0
  704. package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.d.ts.map +1 -0
  705. package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.js +37 -0
  706. package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.js.map +1 -0
  707. package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts +19 -5
  708. package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts.map +1 -1
  709. package/node_modules/@xrkseek/server-host/dist/mcp-wire.js +161 -30
  710. package/node_modules/@xrkseek/server-host/dist/mcp-wire.js.map +1 -1
  711. package/node_modules/@xrkseek/server-host/dist/policy-file-watch.d.ts +18 -0
  712. package/node_modules/@xrkseek/server-host/dist/policy-file-watch.d.ts.map +1 -0
  713. package/node_modules/@xrkseek/server-host/dist/policy-file-watch.js +91 -0
  714. package/node_modules/@xrkseek/server-host/dist/policy-file-watch.js.map +1 -0
  715. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.d.ts +29 -0
  716. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.d.ts.map +1 -0
  717. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.js +111 -0
  718. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.js.map +1 -0
  719. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.d.ts +101 -0
  720. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.d.ts.map +1 -0
  721. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.js +377 -0
  722. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.js.map +1 -0
  723. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.d.ts +25 -0
  724. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.d.ts.map +1 -0
  725. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.js +343 -0
  726. package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.js.map +1 -0
  727. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
  728. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +66 -6
  729. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
  730. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +11 -0
  731. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -1
  732. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +188 -12
  733. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -1
  734. package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.d.ts +35 -0
  735. package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.d.ts.map +1 -0
  736. package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.js +86 -0
  737. package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.js.map +1 -0
  738. package/node_modules/@xrkseek/server-host/package.json +3 -0
  739. package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +6 -2
  740. package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
  741. package/node_modules/@xrkseek/server-http/dist/boot-inject.js +6 -1
  742. package/node_modules/@xrkseek/server-http/dist/boot-inject.js.map +1 -1
  743. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -1
  744. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +4 -2
  745. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
  746. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +1 -3
  747. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -1
  748. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.d.ts +36 -0
  749. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.d.ts.map +1 -0
  750. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.js +102 -0
  751. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.js.map +1 -0
  752. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts +5 -2
  753. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts.map +1 -1
  754. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +43 -17
  755. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -1
  756. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts.map +1 -1
  757. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js +23 -2
  758. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js.map +1 -1
  759. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts.map +1 -1
  760. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js +16 -2
  761. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js.map +1 -1
  762. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.d.ts.map +1 -1
  763. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.js +5 -0
  764. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.js.map +1 -1
  765. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +4 -1
  766. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -1
  767. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +33 -6
  768. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -1
  769. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -1
  770. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +0 -2
  771. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -1
  772. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -1
  773. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +1 -1
  774. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -1
  775. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.d.ts +13 -0
  776. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.d.ts.map +1 -0
  777. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.js +254 -0
  778. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.js.map +1 -0
  779. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.d.ts.map +1 -1
  780. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.js +2 -0
  781. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.js.map +1 -1
  782. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts.map +1 -1
  783. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js +4 -5
  784. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js.map +1 -1
  785. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts +9 -11
  786. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts.map +1 -1
  787. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js +19 -47
  788. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js.map +1 -1
  789. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts +1 -1
  790. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts.map +1 -1
  791. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js +3 -15
  792. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js.map +1 -1
  793. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.d.ts +15 -0
  794. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.d.ts.map +1 -0
  795. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.js +165 -0
  796. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.js.map +1 -0
  797. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.d.ts.map +1 -1
  798. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.js +11 -2
  799. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.js.map +1 -1
  800. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.d.ts +1 -1
  801. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.d.ts.map +1 -1
  802. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.js +23 -33
  803. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.js.map +1 -1
  804. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts +9 -1
  805. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts.map +1 -1
  806. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js +36 -4
  807. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js.map +1 -1
  808. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.d.ts +4 -0
  809. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.d.ts.map +1 -0
  810. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.js +13 -0
  811. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.js.map +1 -0
  812. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +4 -2
  813. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts.map +1 -1
  814. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js +3 -2
  815. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -1
  816. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -1
  817. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +12 -8
  818. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -1
  819. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.d.ts +40 -0
  820. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.d.ts.map +1 -0
  821. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.js +139 -0
  822. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.js.map +1 -0
  823. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +2 -0
  824. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -1
  825. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +4 -0
  826. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -1
  827. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -1
  828. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +137 -27
  829. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -1
  830. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts.map +1 -1
  831. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js +4 -0
  832. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js.map +1 -1
  833. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts.map +1 -1
  834. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js +1 -0
  835. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js.map +1 -1
  836. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.d.ts.map +1 -1
  837. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.js +5 -0
  838. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.js.map +1 -1
  839. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts +3 -0
  840. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts.map +1 -1
  841. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js +45 -15
  842. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js.map +1 -1
  843. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.d.ts +1 -4
  844. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.d.ts.map +1 -1
  845. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.js +3 -23
  846. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.js.map +1 -1
  847. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +1 -1
  848. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -1
  849. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +14 -4
  850. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -1
  851. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.d.ts.map +1 -1
  852. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.js +4 -0
  853. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.js.map +1 -1
  854. package/node_modules/@xrkseek/server-http/dist/host-policy-error.d.ts +12 -0
  855. package/node_modules/@xrkseek/server-http/dist/host-policy-error.d.ts.map +1 -0
  856. package/node_modules/@xrkseek/server-http/dist/host-policy-error.js +19 -0
  857. package/node_modules/@xrkseek/server-http/dist/host-policy-error.js.map +1 -0
  858. package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts +6 -0
  859. package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts.map +1 -1
  860. package/node_modules/@xrkseek/server-http/dist/host-wire.js +18 -0
  861. package/node_modules/@xrkseek/server-http/dist/host-wire.js.map +1 -1
  862. package/node_modules/@xrkseek/server-http/dist/index.d.ts +3 -3
  863. package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
  864. package/node_modules/@xrkseek/server-http/dist/index.js +3 -3
  865. package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
  866. package/node_modules/@xrkseek/server-http/dist/sidebar/index.d.ts +5 -2
  867. package/node_modules/@xrkseek/server-http/dist/sidebar/index.d.ts.map +1 -1
  868. package/node_modules/@xrkseek/server-http/dist/sidebar/index.js +4 -1
  869. package/node_modules/@xrkseek/server-http/dist/sidebar/index.js.map +1 -1
  870. package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.d.ts +23 -0
  871. package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.d.ts.map +1 -0
  872. package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.js +103 -0
  873. package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.js.map +1 -0
  874. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts +26 -4
  875. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts.map +1 -1
  876. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js +158 -11
  877. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
  878. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.d.ts +5 -1
  879. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.d.ts.map +1 -1
  880. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.js +0 -4
  881. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.js.map +1 -1
  882. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts +45 -1
  883. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts.map +1 -1
  884. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.d.ts.map +1 -1
  885. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.js +2 -0
  886. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.js.map +1 -1
  887. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.d.ts +4 -0
  888. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.d.ts.map +1 -1
  889. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.js +24 -2
  890. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.js.map +1 -1
  891. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.d.ts +41 -0
  892. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.d.ts.map +1 -0
  893. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.js +60 -0
  894. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.js.map +1 -0
  895. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.d.ts.map +1 -1
  896. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.js +1 -0
  897. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.js.map +1 -1
  898. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +0 -6
  899. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -1
  900. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +1 -10
  901. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -1
  902. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts +0 -11
  903. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts.map +1 -1
  904. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js +8 -4
  905. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js.map +1 -1
  906. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts.map +1 -1
  907. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js +2 -8
  908. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js.map +1 -1
  909. package/node_modules/@xrkseek/server-http/package.json +42 -40
  910. package/node_modules/@xrkseek/server-loader/dist/hooks.d.ts +32 -0
  911. package/node_modules/@xrkseek/server-loader/dist/hooks.d.ts.map +1 -0
  912. package/node_modules/@xrkseek/server-loader/dist/hooks.js +70 -0
  913. package/node_modules/@xrkseek/server-loader/dist/hooks.js.map +1 -0
  914. package/node_modules/@xrkseek/server-loader/dist/index.d.ts +19 -4
  915. package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
  916. package/node_modules/@xrkseek/server-loader/dist/index.js +42 -8
  917. package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
  918. package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts +5 -2
  919. package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts.map +1 -1
  920. package/node_modules/@xrkseek/server-loader/dist/kinds.js +6 -1
  921. package/node_modules/@xrkseek/server-loader/dist/kinds.js.map +1 -1
  922. package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.d.ts +63 -0
  923. package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.d.ts.map +1 -0
  924. package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.js +185 -0
  925. package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.js.map +1 -0
  926. package/node_modules/@xrkseek/server-loader/dist/load-failures.d.ts +54 -0
  927. package/node_modules/@xrkseek/server-loader/dist/load-failures.d.ts.map +1 -0
  928. package/node_modules/@xrkseek/server-loader/dist/load-failures.js +50 -0
  929. package/node_modules/@xrkseek/server-loader/dist/load-failures.js.map +1 -0
  930. package/node_modules/@xrkseek/server-loader/dist/load.d.ts +1 -1
  931. package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
  932. package/node_modules/@xrkseek/server-loader/dist/load.js +33 -7
  933. package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
  934. package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts +9 -2
  935. package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts.map +1 -1
  936. package/node_modules/@xrkseek/server-loader/dist/managed-state.js +27 -4
  937. package/node_modules/@xrkseek/server-loader/dist/managed-state.js.map +1 -1
  938. package/node_modules/@xrkseek/server-loader/dist/manifest.d.ts +5 -0
  939. package/node_modules/@xrkseek/server-loader/dist/manifest.d.ts.map +1 -1
  940. package/node_modules/@xrkseek/server-loader/dist/manifest.js +3 -3
  941. package/node_modules/@xrkseek/server-loader/dist/manifest.js.map +1 -1
  942. package/node_modules/@xrkseek/server-loader/dist/policy.d.ts +13 -4
  943. package/node_modules/@xrkseek/server-loader/dist/policy.d.ts.map +1 -1
  944. package/node_modules/@xrkseek/server-loader/dist/policy.js +21 -3
  945. package/node_modules/@xrkseek/server-loader/dist/policy.js.map +1 -1
  946. package/node_modules/@xrkseek/server-loader/dist/shell-hooks.d.ts +49 -0
  947. package/node_modules/@xrkseek/server-loader/dist/shell-hooks.d.ts.map +1 -0
  948. package/node_modules/@xrkseek/server-loader/dist/shell-hooks.js +248 -0
  949. package/node_modules/@xrkseek/server-loader/dist/shell-hooks.js.map +1 -0
  950. package/node_modules/@xrkseek/server-loader/dist/startup-audit.d.ts +46 -0
  951. package/node_modules/@xrkseek/server-loader/dist/startup-audit.d.ts.map +1 -0
  952. package/node_modules/@xrkseek/server-loader/dist/startup-audit.js +121 -0
  953. package/node_modules/@xrkseek/server-loader/dist/startup-audit.js.map +1 -0
  954. package/node_modules/@xrkseek/server-loader/dist/types.d.ts +25 -1
  955. package/node_modules/@xrkseek/server-loader/dist/types.d.ts.map +1 -1
  956. package/node_modules/@xrkseek/session-projection/dist/index.d.ts +1 -3
  957. package/node_modules/@xrkseek/session-projection/dist/index.d.ts.map +1 -1
  958. package/node_modules/@xrkseek/session-projection/dist/index.js.map +1 -1
  959. package/node_modules/@xrkseek/session-telemetry/README.md +11 -0
  960. package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts +28 -0
  961. package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts.map +1 -0
  962. package/node_modules/@xrkseek/session-telemetry/dist/index.js +80 -0
  963. package/node_modules/@xrkseek/session-telemetry/dist/index.js.map +1 -0
  964. package/node_modules/@xrkseek/session-telemetry/dist/memory.d.ts +11 -0
  965. package/node_modules/@xrkseek/session-telemetry/dist/memory.d.ts.map +1 -0
  966. package/node_modules/@xrkseek/session-telemetry/dist/memory.js +18 -0
  967. package/node_modules/@xrkseek/session-telemetry/dist/memory.js.map +1 -0
  968. package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.d.ts +26 -0
  969. package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.d.ts.map +1 -0
  970. package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.js +161 -0
  971. package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.js.map +1 -0
  972. package/node_modules/@xrkseek/session-telemetry/dist/record.d.ts +8 -0
  973. package/node_modules/@xrkseek/session-telemetry/dist/record.d.ts.map +1 -0
  974. package/node_modules/@xrkseek/session-telemetry/dist/record.js +54 -0
  975. package/node_modules/@xrkseek/session-telemetry/dist/record.js.map +1 -0
  976. package/node_modules/@xrkseek/session-telemetry/dist/types.d.ts +33 -0
  977. package/node_modules/@xrkseek/session-telemetry/dist/types.d.ts.map +1 -0
  978. package/node_modules/@xrkseek/session-telemetry/dist/types.js +13 -0
  979. package/node_modules/@xrkseek/session-telemetry/dist/types.js.map +1 -0
  980. package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts +14 -0
  981. package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts.map +1 -0
  982. package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js +52 -0
  983. package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js.map +1 -0
  984. package/node_modules/@xrkseek/session-telemetry/package.json +27 -0
  985. package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.d.ts.map +1 -1
  986. package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js +2 -1
  987. package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js.map +1 -1
  988. package/node_modules/@xrkseek/workspace/dist/index.d.ts +3 -1
  989. package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
  990. package/node_modules/@xrkseek/workspace/dist/index.js +3 -1
  991. package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
  992. package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts +2 -1
  993. package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts.map +1 -1
  994. package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js +9 -4
  995. package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js.map +1 -1
  996. package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts +15 -2
  997. package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts.map +1 -1
  998. package/node_modules/@xrkseek/workspace/dist/inject-sources.js +23 -5
  999. package/node_modules/@xrkseek/workspace/dist/inject-sources.js.map +1 -1
  1000. package/node_modules/@xrkseek/workspace/dist/skill-dirs.d.ts.map +1 -1
  1001. package/node_modules/@xrkseek/workspace/dist/skill-dirs.js +3 -1
  1002. package/node_modules/@xrkseek/workspace/dist/skill-dirs.js.map +1 -1
  1003. package/node_modules/@xrkseek/workspace/dist/skill-install.d.ts +61 -0
  1004. package/node_modules/@xrkseek/workspace/dist/skill-install.d.ts.map +1 -0
  1005. package/node_modules/@xrkseek/workspace/dist/skill-install.js +346 -0
  1006. package/node_modules/@xrkseek/workspace/dist/skill-install.js.map +1 -0
  1007. package/node_modules/@xrkseek/workspace/dist/tool-output-persist.d.ts +1 -5
  1008. package/node_modules/@xrkseek/workspace/dist/tool-output-persist.d.ts.map +1 -1
  1009. package/node_modules/@xrkseek/workspace/dist/tool-output-persist.js +10 -22
  1010. package/node_modules/@xrkseek/workspace/dist/tool-output-persist.js.map +1 -1
  1011. package/node_modules/@xrkseek/workspace/dist/user-product-home.d.ts +18 -0
  1012. package/node_modules/@xrkseek/workspace/dist/user-product-home.d.ts.map +1 -0
  1013. package/node_modules/@xrkseek/workspace/dist/user-product-home.js +45 -0
  1014. package/node_modules/@xrkseek/workspace/dist/user-product-home.js.map +1 -0
  1015. package/node_modules/@xrkseek/workspace/package.json +28 -27
  1016. package/node_modules/@xrkseek/xrk-home-paths/README.md +4 -0
  1017. package/node_modules/@xrkseek/xrk-home-paths/dist/index.d.ts +44 -0
  1018. package/node_modules/@xrkseek/xrk-home-paths/dist/index.d.ts.map +1 -0
  1019. package/node_modules/@xrkseek/xrk-home-paths/dist/index.js +83 -0
  1020. package/node_modules/@xrkseek/xrk-home-paths/dist/index.js.map +1 -0
  1021. package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.d.ts +22 -0
  1022. package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.d.ts.map +1 -0
  1023. package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.js +139 -0
  1024. package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.js.map +1 -0
  1025. package/node_modules/@xrkseek/xrk-home-paths/package.json +24 -0
  1026. package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.d.ts +0 -1
  1027. package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.d.ts.map +1 -1
  1028. package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.js +0 -1
  1029. package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.js.map +1 -1
  1030. package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts +3 -2
  1031. package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts.map +1 -1
  1032. package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +11 -21
  1033. package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js.map +1 -1
  1034. package/node_modules/@xrkseek/xrk-session-reference/package.json +56 -55
  1035. package/node_modules/smol-toml/LICENSE +24 -0
  1036. package/node_modules/smol-toml/README.md +418 -0
  1037. package/node_modules/smol-toml/dist/date.d.ts +41 -0
  1038. package/node_modules/smol-toml/dist/date.js +127 -0
  1039. package/node_modules/smol-toml/dist/error.d.ts +38 -0
  1040. package/node_modules/smol-toml/dist/error.js +63 -0
  1041. package/node_modules/smol-toml/dist/extract.js +69 -0
  1042. package/node_modules/smol-toml/dist/index.cjs +734 -0
  1043. package/node_modules/smol-toml/dist/index.d.ts +43 -0
  1044. package/node_modules/smol-toml/dist/index.js +33 -0
  1045. package/node_modules/smol-toml/dist/parse.d.ts +36 -0
  1046. package/node_modules/smol-toml/dist/parse.js +149 -0
  1047. package/node_modules/smol-toml/dist/primitive.js +238 -0
  1048. package/node_modules/smol-toml/dist/stringify.d.ts +31 -0
  1049. package/node_modules/smol-toml/dist/stringify.js +181 -0
  1050. package/node_modules/smol-toml/dist/struct.js +179 -0
  1051. package/node_modules/smol-toml/dist/util.d.ts +38 -0
  1052. package/node_modules/smol-toml/dist/util.js +89 -0
  1053. package/node_modules/smol-toml/package.json +68 -0
  1054. package/package.json +21 -1
@@ -1,17 +1,55 @@
1
1
  import type { ToolDefinition } from "@xrkseek/core-tools";
2
+ /** Largest delay Node schedules without clamping it to one millisecond. */
3
+ export declare const MAX_TIMER_DELAY_MS = 2147483647;
4
+ /** Default elapsed deadline for one `run_code` call (aligned with PTC node defaults). */
5
+ export declare const DEFAULT_CODE_TIMEOUT_MS = 120000;
6
+ /** Upper bound accepted for per-call `timeoutMs`. */
7
+ export declare const DEFAULT_CODE_MAX_TIMEOUT_MS = 600000;
8
+ /** Combined stdout/stderr/value UTF-8 byte cap. */
9
+ export declare const DEFAULT_CODE_MAX_OUTPUT_BYTES = 67108864;
10
+ /** V8 old-generation heap limit in MiB for the worker. */
11
+ export declare const DEFAULT_CODE_MAX_OLD_GENERATION_SIZE_MB = 512;
2
12
  export interface CodeRuntimeOptions {
13
+ /** Default elapsed deadline when the call omits `timeoutMs`. */
3
14
  readonly timeoutMs?: number;
15
+ /** Maximum numeric elapsed budget accepted by resolve. */
16
+ readonly maxTimeoutMs?: number;
17
+ /** Combined stdout/stderr/value UTF-8 byte cap. */
18
+ readonly maxOutputBytes?: number;
19
+ /** V8 old-generation heap limit in MiB; native allocations are excluded. */
20
+ readonly maxOldGenerationSizeMb?: number;
4
21
  /** Default false — no network in worker (best-effort: no fetch polyfill). */
5
22
  readonly allowNetwork?: boolean;
6
23
  }
24
+ export interface CodeRunOptions {
25
+ /** Optional per-call budget; clamped to `[1, maxTimeoutMs]` against the runtime default. */
26
+ readonly timeoutMs?: number;
27
+ }
7
28
  export interface CodeRunResult {
8
29
  readonly stdout: string;
9
30
  readonly stderr: string;
10
31
  readonly error?: string;
32
+ /** True when stdout/stderr were truncated to `maxOutputBytes`. */
33
+ readonly truncated?: boolean;
11
34
  }
12
35
  export interface CodeRuntime {
13
- run(source: string, signal?: AbortSignal): Promise<CodeRunResult>;
36
+ readonly timeout: {
37
+ readonly defaultMs: number;
38
+ readonly maxMs: number;
39
+ };
40
+ readonly maxOutputBytes: number;
41
+ run(source: string, signal?: AbortSignal, opts?: CodeRunOptions): Promise<CodeRunResult>;
14
42
  }
43
+ /**
44
+ * Validate a caller's optional timeout hint, use the backend default, then cap
45
+ * it. Zero is not a disable-timeout sentinel.
46
+ */
47
+ export declare function clampCodeTimeout(requested: number | undefined, def: number, max: number, name?: string): number;
48
+ /** Cap a single stream; reserve room for a truncation marker when needed. */
49
+ export declare function boundCodeOutput(text: string, maxBytes: number): {
50
+ text: string;
51
+ truncated: boolean;
52
+ };
15
53
  /**
16
54
  * Worker-thread JS runner. No npm install, no network by default.
17
55
  * Presentation mode only — default presets do NOT register this tool.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6EAA6E;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_threads";
2
+ /** Largest delay Node schedules without clamping it to one millisecond. */
3
+ export const MAX_TIMER_DELAY_MS = 2_147_483_647;
4
+ /** Default elapsed deadline for one `run_code` call (aligned with PTC node defaults). */
5
+ export const DEFAULT_CODE_TIMEOUT_MS = 120_000;
6
+ /** Upper bound accepted for per-call `timeoutMs`. */
7
+ export const DEFAULT_CODE_MAX_TIMEOUT_MS = 600_000;
8
+ /** Combined stdout/stderr/value UTF-8 byte cap. */
9
+ export const DEFAULT_CODE_MAX_OUTPUT_BYTES = 67_108_864;
10
+ /** V8 old-generation heap limit in MiB for the worker. */
11
+ export const DEFAULT_CODE_MAX_OLD_GENERATION_SIZE_MB = 512;
12
+ /**
13
+ * Validate a caller's optional timeout hint, use the backend default, then cap
14
+ * it. Zero is not a disable-timeout sentinel.
15
+ */
16
+ export function clampCodeTimeout(requested, def, max, name = "timeoutMs") {
17
+ if (requested !== undefined && (!Number.isFinite(requested) || requested <= 0)) {
18
+ throw new Error(`${name} must be a positive finite number`);
19
+ }
20
+ return Math.min(requested ?? def, max);
21
+ }
22
+ function assertPositiveFinite(value, name) {
23
+ if (!Number.isFinite(value) || value <= 0) {
24
+ throw new Error(`code-runtime: ${name} must be positive and finite`);
25
+ }
26
+ }
27
+ function takeUtf8Prefix(input, maximumBytes) {
28
+ let bytes = 0;
29
+ let content = "";
30
+ for (const char of input) {
31
+ const size = Buffer.byteLength(char, "utf8");
32
+ if (bytes + size > maximumBytes)
33
+ break;
34
+ content += char;
35
+ bytes += size;
36
+ }
37
+ return content;
38
+ }
39
+ /** Cap a single stream; reserve room for a truncation marker when needed. */
40
+ export function boundCodeOutput(text, maxBytes) {
41
+ if (maxBytes < 4) {
42
+ throw new Error("code-runtime: maxOutputBytes must be an integer of at least 4");
43
+ }
44
+ if (Buffer.byteLength(text, "utf8") <= maxBytes) {
45
+ return { text, truncated: false };
46
+ }
47
+ const marker = "\n...[truncated]";
48
+ const budget = Math.max(0, maxBytes - Buffer.byteLength(marker, "utf8"));
49
+ return { text: `${takeUtf8Prefix(text, budget)}${marker}`, truncated: true };
50
+ }
51
+ function resolveConfig(options) {
52
+ const timeoutMs = options.timeoutMs ?? DEFAULT_CODE_TIMEOUT_MS;
53
+ const maxTimeoutMs = options.maxTimeoutMs ?? DEFAULT_CODE_MAX_TIMEOUT_MS;
54
+ const maxOutputBytes = options.maxOutputBytes ?? DEFAULT_CODE_MAX_OUTPUT_BYTES;
55
+ const maxOldGenerationSizeMb = options.maxOldGenerationSizeMb ?? DEFAULT_CODE_MAX_OLD_GENERATION_SIZE_MB;
56
+ for (const [key, value] of Object.entries({
57
+ timeoutMs,
58
+ maxTimeoutMs,
59
+ maxOutputBytes,
60
+ maxOldGenerationSizeMb,
61
+ })) {
62
+ assertPositiveFinite(value, key);
63
+ }
64
+ if (timeoutMs > MAX_TIMER_DELAY_MS || maxTimeoutMs > MAX_TIMER_DELAY_MS) {
65
+ throw new Error("code-runtime: timeout exceeds the supported timer range");
66
+ }
67
+ if (!Number.isSafeInteger(maxOutputBytes) || maxOutputBytes < 4) {
68
+ throw new Error("code-runtime: maxOutputBytes must be an integer of at least 4");
69
+ }
70
+ if (!Number.isSafeInteger(maxOldGenerationSizeMb)) {
71
+ throw new Error("code-runtime: maxOldGenerationSizeMb must be an integer");
72
+ }
73
+ return {
74
+ timeoutMs: Math.min(timeoutMs, maxTimeoutMs),
75
+ maxTimeoutMs,
76
+ maxOutputBytes,
77
+ maxOldGenerationSizeMb,
78
+ };
79
+ }
2
80
  /**
3
81
  * Worker-thread JS runner. No npm install, no network by default.
4
82
  * Presentation mode only — default presets do NOT register this tool.
5
83
  */
6
84
  export function createWorkerCodeRuntime(options = {}) {
7
- const timeoutMs = options.timeoutMs ?? 5_000;
85
+ const config = resolveConfig(options);
8
86
  return {
9
- async run(source, signal) {
10
- const workerSource = `
11
- const { parentPort, workerData } = require('node:worker_threads');
12
- const chunks = [];
13
- const errChunks = [];
14
- const origLog = console.log;
15
- const origErr = console.error;
16
- console.log = (...a) => { chunks.push(a.map(String).join(' ')); };
17
- console.error = (...a) => { errChunks.push(a.map(String).join(' ')); };
18
- try {
19
- const fn = new Function('console', workerData.source);
20
- const ret = fn({ log: console.log, error: console.error });
21
- Promise.resolve(ret).then((value) => {
22
- parentPort.postMessage({
23
- ok: true,
24
- stdout: chunks.join('\\n'),
25
- stderr: errChunks.join('\\n'),
26
- value: value === undefined ? null : String(value),
27
- });
28
- }).catch((err) => {
29
- parentPort.postMessage({
30
- ok: false,
31
- stdout: chunks.join('\\n'),
32
- stderr: errChunks.join('\\n'),
33
- error: String(err && err.message ? err.message : err),
34
- });
35
- });
36
- } catch (err) {
37
- parentPort.postMessage({
38
- ok: false,
39
- stdout: chunks.join('\\n'),
40
- stderr: errChunks.join('\\n'),
41
- error: String(err && err.message ? err.message : err),
42
- });
43
- }
87
+ timeout: { defaultMs: config.timeoutMs, maxMs: config.maxTimeoutMs },
88
+ maxOutputBytes: config.maxOutputBytes,
89
+ async run(source, signal, opts) {
90
+ const timeoutMs = clampCodeTimeout(opts?.timeoutMs, config.timeoutMs, config.maxTimeoutMs);
91
+ const workerSource = `
92
+ const { parentPort, workerData } = require('node:worker_threads');
93
+ const chunks = [];
94
+ const errChunks = [];
95
+ const maxBytes = workerData.maxOutputBytes;
96
+ const trim = (s) => {
97
+ const buf = Buffer.from(String(s), 'utf8');
98
+ if (buf.byteLength <= maxBytes) return String(s);
99
+ const marker = '\\n...[truncated]';
100
+ const keep = Math.max(0, maxBytes - Buffer.byteLength(marker, 'utf8'));
101
+ return buf.subarray(0, keep).toString('utf8') + marker;
102
+ };
103
+ console.log = (...a) => { chunks.push(a.map(String).join(' ')); };
104
+ console.error = (...a) => { errChunks.push(a.map(String).join(' ')); };
105
+ try {
106
+ const fn = new Function('console', workerData.source);
107
+ const ret = fn({ log: console.log, error: console.error });
108
+ Promise.resolve(ret).then((value) => {
109
+ parentPort.postMessage({
110
+ ok: true,
111
+ stdout: trim(chunks.join('\\n')),
112
+ stderr: trim(errChunks.join('\\n')),
113
+ value: value === undefined ? null : trim(String(value)),
114
+ });
115
+ }).catch((err) => {
116
+ parentPort.postMessage({
117
+ ok: false,
118
+ stdout: trim(chunks.join('\\n')),
119
+ stderr: trim(errChunks.join('\\n')),
120
+ error: String(err && err.message ? err.message : err),
121
+ });
122
+ });
123
+ } catch (err) {
124
+ parentPort.postMessage({
125
+ ok: false,
126
+ stdout: trim(chunks.join('\\n')),
127
+ stderr: trim(errChunks.join('\\n')),
128
+ error: String(err && err.message ? err.message : err),
129
+ });
130
+ }
44
131
  `;
45
132
  return new Promise((resolve, reject) => {
46
133
  const worker = new Worker(workerSource, {
47
134
  eval: true,
48
- workerData: { source },
135
+ workerData: {
136
+ source,
137
+ maxOutputBytes: config.maxOutputBytes,
138
+ },
139
+ resourceLimits: {
140
+ maxOldGenerationSizeMb: config.maxOldGenerationSizeMb,
141
+ },
49
142
  });
50
143
  let settled = false;
144
+ /** Host-initiated stop (timeout/abort); ignore the resulting exit code. */
145
+ let stopping = false;
146
+ const finish = (result) => {
147
+ if (settled)
148
+ return;
149
+ settled = true;
150
+ clearTimeout(timer);
151
+ signal?.removeEventListener("abort", onAbort);
152
+ resolve(result);
153
+ };
51
154
  const timer = setTimeout(() => {
155
+ stopping = true;
52
156
  void worker.terminate().then(() => {
53
- if (!settled) {
54
- settled = true;
55
- resolve({
56
- stdout: "",
57
- stderr: "",
58
- error: `timeout after ${timeoutMs}ms`,
59
- });
60
- }
157
+ finish({
158
+ stdout: "",
159
+ stderr: "",
160
+ error: `timeout after ${timeoutMs}ms`,
161
+ });
61
162
  });
62
163
  }, timeoutMs);
63
164
  const onAbort = () => {
64
- void worker.terminate();
165
+ stopping = true;
166
+ void worker.terminate().then(() => {
167
+ finish({
168
+ stdout: "",
169
+ stderr: "",
170
+ error: "aborted",
171
+ });
172
+ });
65
173
  };
66
174
  signal?.addEventListener("abort", onAbort, { once: true });
67
175
  worker.on("message", (msg) => {
68
- if (settled)
69
- return;
70
- settled = true;
71
- clearTimeout(timer);
72
- signal?.removeEventListener("abort", onAbort);
73
- const stdout = [msg.stdout, msg.value].filter(Boolean).join("\n");
74
- resolve({
75
- stdout,
76
- stderr: msg.stderr,
176
+ const rawStdout = [msg.stdout, msg.value].filter(Boolean).join("\n");
177
+ const stdoutBound = boundCodeOutput(rawStdout, config.maxOutputBytes);
178
+ const stderrBound = boundCodeOutput(msg.stderr, config.maxOutputBytes);
179
+ finish({
180
+ stdout: stdoutBound.text,
181
+ stderr: stderrBound.text,
77
182
  ...(msg.ok ? {} : { error: msg.error ?? "code failed" }),
183
+ ...(stdoutBound.truncated || stderrBound.truncated
184
+ ? { truncated: true }
185
+ : {}),
78
186
  });
79
187
  });
80
188
  worker.on("error", (err) => {
81
- if (settled)
189
+ if (settled || stopping)
82
190
  return;
83
191
  settled = true;
84
192
  clearTimeout(timer);
193
+ signal?.removeEventListener("abort", onAbort);
194
+ const message = err instanceof Error ? err.message : String(err);
195
+ // Heap / resourceLimit failures surface as worker errors.
196
+ if (/heap|memory|resource/i.test(message)) {
197
+ resolve({
198
+ stdout: "",
199
+ stderr: "",
200
+ error: `worker resource limit: ${message}`,
201
+ });
202
+ return;
203
+ }
85
204
  reject(err instanceof Error ? err : new Error(String(err)));
86
205
  });
206
+ worker.on("exit", (code) => {
207
+ if (settled || stopping)
208
+ return;
209
+ if (code !== 0) {
210
+ finish({
211
+ stdout: "",
212
+ stderr: "",
213
+ error: `worker exited with code ${code}`,
214
+ });
215
+ }
216
+ });
87
217
  });
88
218
  },
89
219
  };
90
220
  }
91
221
  /** Sole Code Mode wire: `run_code`. Sub-calls must re-enter the tool pipeline. */
92
222
  export function createRunCodeTool(runtime) {
223
+ const defaultMs = runtime.timeout.defaultMs;
224
+ const maxMs = runtime.timeout.maxMs;
93
225
  return {
94
226
  name: "run_code",
95
227
  description: "Run a short JavaScript snippet in an isolated worker (no network). Experimental.",
@@ -97,21 +229,31 @@ export function createRunCodeTool(runtime) {
97
229
  type: "object",
98
230
  properties: {
99
231
  source: { type: "string", description: "JavaScript source" },
232
+ timeoutMs: {
233
+ type: "number",
234
+ description: `Positive elapsed-time budget in milliseconds. Default ${defaultMs}; capped at ${maxMs}. Zero does not disable the deadline.`,
235
+ },
100
236
  },
101
237
  required: ["source"],
102
238
  },
103
239
  async execute(args, signal) {
104
- const source = String(args.source ?? "");
240
+ const raw = args;
241
+ const source = String(raw.source ?? "");
105
242
  try {
106
- const out = await runtime.run(source, signal);
243
+ const out = await runtime.run(source, signal, {
244
+ ...(raw.timeoutMs !== undefined ? { timeoutMs: raw.timeoutMs } : {}),
245
+ });
246
+ const truncationNote = out.truncated
247
+ ? `\n...[output truncated to ${runtime.maxOutputBytes} bytes]`
248
+ : "";
107
249
  if (out.error) {
108
250
  return {
109
- content: `error: ${out.error}\nstdout:\n${out.stdout}\nstderr:\n${out.stderr}`,
251
+ content: `error: ${out.error}\nstdout:\n${out.stdout}\nstderr:\n${out.stderr}${truncationNote}`,
110
252
  isError: true,
111
253
  };
112
254
  }
113
255
  return {
114
- content: [out.stdout, out.stderr ? `stderr:\n${out.stderr}` : ""]
256
+ content: [out.stdout, out.stderr ? `stderr:\n${out.stderr}` : "", truncationNote]
115
257
  .filter(Boolean)
116
258
  .join("\n"),
117
259
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAmB7C;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACrC,UAA8B,EAAE;IAEhC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,KAAK,CAAC;IAC7C,OAAO;QACL,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM;YACtB,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCpB,CAAC;YAEF,OAAO,IAAI,OAAO,CAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACpD,MAAM,MAAM,G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ACP,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;oBACd,OAAO;wBACL,OAAO,EAAE,UAAU,GAAG,CAAC,KAAK,cAAc,GAAG,CAAC,MAAM,cAAc,GAAG,CAAC,MAAM,GAAG,cAAc,EAAE;wBAC/F,OAAO,EAAE,IAAI;qBACd,CAAC;gBACJ,CAAC;gBACD,OAAO;oBACL,OAAO,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,cAAc,CAAC;yBAC9E,MAAM,CAAC,OAAO,CAAC;yBACf,IAAI,CAAC,IAAI,CAAC;iBACd,CAAC;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBACjE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAC7C,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -136,6 +136,23 @@ export interface CreateAgentOptions {
136
136
  * Presets wire `@xrkseek/xrk-session-reference/prepare-face`.
137
137
  */
138
138
  readonly prepareUserContent?: Parameters<typeof runTurn>[0]["prepareUserContent"];
139
+ /**
140
+ * Session cwd for turn-end `workspace/changes`. Forwarded to `runTurn`.
141
+ * Presets pass the composition `workspaceRoot`.
142
+ */
143
+ readonly cwd?: string;
144
+ /**
145
+ * After a successful turn (turn/end already logged). Failures here must not
146
+ * fail the turn — the caller swallows throws. Harness uses this to append
147
+ * reusable notes to curated memory.
148
+ */
149
+ readonly afterTurn?: (ctx: {
150
+ readonly turnId: string;
151
+ readonly userText?: string;
152
+ readonly assistantText: string;
153
+ readonly toolOk: number;
154
+ readonly toolFailed: number;
155
+ }) => void | Promise<void>;
139
156
  }
140
157
  /** Thin handle over `runTurn` with TurnLatch + admit + session safety (ADR-0003). */
141
158
  export declare function createAgent(options: CreateAgentOptions): AgentHandle;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAeL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,OAAO,EACP,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAuB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CA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AAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,CAiRpE;AAED,YAAY,EACV,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,oBAAoB,GACrB,CAAC"}
@@ -144,6 +144,7 @@ export function createAgent(options) {
144
144
  ...(options.prepareUserContent
145
145
  ? { prepareUserContent: options.prepareUserContent }
146
146
  : {}),
147
+ ...(options.cwd !== undefined ? { cwd: options.cwd } : {}),
147
148
  });
148
149
  }
149
150
  catch (err) {
@@ -204,6 +205,20 @@ export function createAgent(options) {
204
205
  throw limitErr;
205
206
  }
206
207
  }
208
+ if (options.afterTurn) {
209
+ try {
210
+ await options.afterTurn({
211
+ turnId: result.turnId,
212
+ ...(userText !== undefined ? { userText } : {}),
213
+ assistantText: result.assistantText,
214
+ toolOk: result.toolOk,
215
+ toolFailed: result.toolFailed,
216
+ });
217
+ }
218
+ catch {
219
+ // A memory write must not fail the turn the user already finished.
220
+ }
221
+ }
207
222
  return {
208
223
  text: result.assistantText,
209
224
  turnId: result.turnId,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAMlB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,kBAAkB,GAInB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,OAAO,GAIR,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAu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OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,GAAG,YAAY,gBAAgB,EAAE,CAAC;oBACpC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;gBAC9C,CAAC;gBACD,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -130,6 +130,11 @@ export interface RunTurnInput {
130
130
  readonly source?: UserMessageSource;
131
131
  }[];
132
132
  }>;
133
+ /**
134
+ * Session working directory for turn-end `workspace/changes` summaries.
135
+ * Omit → `process.cwd()`. Face/Host pass the session project root.
136
+ */
137
+ readonly cwd?: string;
133
138
  }
134
139
  export interface RunTurnResult {
135
140
  readonly turnId: string;
@@ -147,5 +152,6 @@ export { MAX_STEPS_PROMPT, MAX_STEPS_TOOL_DISABLED } from "./max-steps.js";
147
152
  export { settleToolBatch, type SettleToolBatchInput, type SettleToolBatchResult, type ToolSettleMode, } from "./settle-batch.js";
148
153
  export { runCompaction, type RunCompactionInput, type RunCompactionResult, } from "./compaction.js";
149
154
  export { maybeAppendRequestHeader } from "./request-header-log.js";
150
- export { boundToolResultContent, TOOL_RESULT_MAX_INLINE_BYTES, } from "./tool-result-bound.js";
155
+ export { boundToolResultContent, alreadySavedPath, TOOL_RESULT_MAX_INLINE_BYTES, } from "./tool-result-bound.js";
156
+ export { appendWorkspaceChangesFromDiffs, fileDiffsFromToolPresenters, } from "./workspace-changes-emit.js";
151
157
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAoR,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAqB,MAAM,uBAAuB,CAAC;AAKvX,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAUL,KAAK,UAAU,EACf,KAAK,cAAc,EAEnB,KAAK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