@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
@@ -0,0 +1,242 @@
1
+ import { VIDEO_GEN_PROMPT_TEXT } from "./format.js";
2
+ import { VideoGenError, isTerminalStatus, isVideoGenError, } from "./types.js";
3
+ export { VIDEO_GEN_PROMPT_TEXT };
4
+ const SIZES = [
5
+ "720x1280",
6
+ "1280x720",
7
+ "1024x1792",
8
+ "1792x1024",
9
+ ];
10
+ const SECONDS = [4, 8, 12];
11
+ const ACTIONS = ["start", "status", "content", "wait"];
12
+ export function videoGenUnavailableMessage(env = process.env) {
13
+ const flag = String(env.XRK_VIDEO_GEN ?? "")
14
+ .trim()
15
+ .toLowerCase();
16
+ if (!flag) {
17
+ return ("Error: video generation is not enabled. Set XRK_VIDEO_GEN=memory (CI/demo) or " +
18
+ "XRK_VIDEO_GEN=1 with OPENAI_API_KEY / XRK_VIDEO_GEN_OPENAI_KEY. See docs/video-gen.md.");
19
+ }
20
+ if (flag === "1") {
21
+ return ("Error: XRK_VIDEO_GEN=1 but no API key. Set OPENAI_API_KEY or XRK_VIDEO_GEN_OPENAI_KEY " +
22
+ "(optional XRK_VIDEO_GEN_BASE_URL / XRK_VIDEO_GEN_MODEL).");
23
+ }
24
+ return "Error: no VideoGenService Provider is configured. Inject a service or set XRK_VIDEO_GEN.";
25
+ }
26
+ function fail(err) {
27
+ const message = isVideoGenError(err)
28
+ ? `Error: ${err.message}`
29
+ : `Error: ${err instanceof Error ? err.message : String(err)}`;
30
+ return { content: message, isError: true };
31
+ }
32
+ function clamp(value, min, max) {
33
+ return Math.min(Math.max(value, min), max);
34
+ }
35
+ function parseAction(raw) {
36
+ if (raw === undefined || raw === null || raw === "")
37
+ return "start";
38
+ const a = String(raw).trim().toLowerCase();
39
+ if (!ACTIONS.includes(a)) {
40
+ throw new VideoGenError(`action must be one of ${ACTIONS.join(", ")}`, "VIDEO_GEN_BAD_ARGS");
41
+ }
42
+ return a;
43
+ }
44
+ function parseSize(raw) {
45
+ if (raw === undefined || raw === null || raw === "")
46
+ return undefined;
47
+ const s = String(raw).trim();
48
+ if (!SIZES.includes(s)) {
49
+ throw new VideoGenError(`size must be one of ${SIZES.join(", ")}`, "VIDEO_GEN_BAD_ARGS");
50
+ }
51
+ return s;
52
+ }
53
+ function parseSeconds(raw) {
54
+ if (raw === undefined || raw === null || raw === "")
55
+ return undefined;
56
+ const n = Number(raw);
57
+ if (!SECONDS.includes(n)) {
58
+ throw new VideoGenError(`seconds must be one of ${SECONDS.join(", ")}`, "VIDEO_GEN_BAD_ARGS");
59
+ }
60
+ return n;
61
+ }
62
+ function formatJob(job) {
63
+ return [
64
+ `jobId=${job.jobId}`,
65
+ `status=${job.status}`,
66
+ job.progress !== undefined ? `progress=${job.progress}` : "",
67
+ job.error ? `error=${job.error}` : "",
68
+ job.model ? `model=${job.model}` : "",
69
+ job.seconds !== undefined ? `seconds=${job.seconds}` : "",
70
+ job.size ? `size=${job.size}` : "",
71
+ job.note ? `note=${job.note}` : "",
72
+ ]
73
+ .filter(Boolean)
74
+ .join("\n");
75
+ }
76
+ /**
77
+ * Model-facing `video_generate` tool.
78
+ *
79
+ * Video renders are asynchronous, so the tool exposes the job lifecycle rather
80
+ * than blocking a turn for minutes: `start` → `status` / `wait` → `content`.
81
+ */
82
+ export function createVideoGenTools(options = {}) {
83
+ const missing = videoGenUnavailableMessage(options.env ?? process.env);
84
+ const service = options.service;
85
+ const attachments = options.attachments;
86
+ const now = options.now ?? (() => Date.now());
87
+ const sleep = options.sleep ??
88
+ ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
89
+ const tool = {
90
+ name: "video_generate",
91
+ description: "Generate a video from a text prompt via the Host text-to-video Provider. Renders are asynchronous: " +
92
+ "action=start (default) returns a jobId, poll with action=status (or action=wait to block), then " +
93
+ "action=content downloads the MP4. The MP4 is saved to the Host attachment store when one is wired; " +
94
+ "video bytes are never inlined into tool text.",
95
+ parameters: {
96
+ type: "object",
97
+ properties: {
98
+ action: {
99
+ type: "string",
100
+ enum: [...ACTIONS],
101
+ description: "start (default) | status | content | wait. start needs `prompt`; the others need `job_id`.",
102
+ },
103
+ prompt: {
104
+ type: "string",
105
+ description: "Complete visual prompt for action=start (subject, motion, camera, lighting).",
106
+ },
107
+ job_id: {
108
+ type: "string",
109
+ description: "Job id returned by action=start.",
110
+ },
111
+ model: {
112
+ type: "string",
113
+ description: "Optional model override (e.g. sora-2, sora-2-pro).",
114
+ },
115
+ seconds: {
116
+ type: "number",
117
+ enum: [...SECONDS],
118
+ description: "Clip duration in seconds (default 4).",
119
+ },
120
+ size: {
121
+ type: "string",
122
+ enum: [...SIZES],
123
+ description: "Output size (provider-dependent; default 1280x720).",
124
+ },
125
+ timeout_ms: {
126
+ type: "number",
127
+ description: "action=wait: give up after this long (default 120000).",
128
+ },
129
+ poll_interval_ms: {
130
+ type: "number",
131
+ description: "action=wait: poll spacing (default 10000).",
132
+ },
133
+ },
134
+ },
135
+ presentCall: (args) => ({
136
+ card: "generic",
137
+ title: "Video generate",
138
+ kind: "execute",
139
+ rawInput: args,
140
+ }),
141
+ async execute(args) {
142
+ if (!service)
143
+ return { content: missing, isError: true };
144
+ try {
145
+ const action = parseAction(args.action);
146
+ if (action === "start") {
147
+ const prompt = String(args.prompt ?? "").trim();
148
+ if (!prompt) {
149
+ throw new VideoGenError("prompt is required for action=start", "VIDEO_GEN_BAD_ARGS");
150
+ }
151
+ const seconds = parseSeconds(args.seconds);
152
+ const size = parseSize(args.size);
153
+ const job = await service.create({
154
+ prompt,
155
+ ...(seconds !== undefined ? { seconds } : {}),
156
+ ...(size ? { size } : {}),
157
+ ...(args.model ? { model: String(args.model) } : {}),
158
+ });
159
+ return {
160
+ content: [
161
+ `provider=${job.provider} delivery=${job.delivery}`,
162
+ formatJob(job),
163
+ "Next: action=status with job_id until status=completed, then action=content.",
164
+ ].join("\n"),
165
+ };
166
+ }
167
+ const jobId = String(args.job_id ?? "").trim();
168
+ if (!jobId) {
169
+ throw new VideoGenError(`job_id is required for action=${action}`, "VIDEO_GEN_BAD_ARGS");
170
+ }
171
+ if (action === "status") {
172
+ const job = await service.get(jobId);
173
+ return { content: formatJob(job), isError: job.status === "failed" };
174
+ }
175
+ if (action === "wait") {
176
+ const timeoutMs = clamp(args.timeout_ms ?? 120_000, 1_000, 600_000);
177
+ const interval = clamp(args.poll_interval_ms ?? 10_000, 250, 60_000);
178
+ const deadline = now() + timeoutMs;
179
+ let job = await service.get(jobId);
180
+ while (!isTerminalStatus(job.status) && now() < deadline) {
181
+ await sleep(interval);
182
+ job = await service.get(jobId);
183
+ }
184
+ const timedOut = !isTerminalStatus(job.status);
185
+ return {
186
+ content: [
187
+ timedOut ? `timeout=true waited_ms=${timeoutMs}` : "",
188
+ formatJob(job),
189
+ ]
190
+ .filter(Boolean)
191
+ .join("\n"),
192
+ isError: job.status === "failed",
193
+ };
194
+ }
195
+ // action=content
196
+ try {
197
+ const media = await service.content(jobId);
198
+ let attachmentId;
199
+ let fileName;
200
+ if (attachments) {
201
+ const ref = await attachments.saveFile({
202
+ data: media.bytes,
203
+ mediaType: media.mimeType,
204
+ name: `video_generate_${jobId}.mp4`,
205
+ });
206
+ attachmentId = ref.attachmentId;
207
+ fileName = ref.name;
208
+ }
209
+ return {
210
+ content: [
211
+ `jobId=${jobId} provider=${media.provider} mime=${media.mimeType} bytes=${media.bytes.byteLength}`,
212
+ media.note ? `note=${media.note}` : "",
213
+ attachmentId ? `attachmentId=${attachmentId}` : "",
214
+ fileName ? `file=${fileName}` : "",
215
+ attachmentId
216
+ ? ""
217
+ : "note=no AttachmentStore is wired; the MP4 is not persisted and cannot be returned inline.",
218
+ ]
219
+ .filter(Boolean)
220
+ .join("\n"),
221
+ };
222
+ }
223
+ catch (err) {
224
+ if (isVideoGenError(err) && err.code === "VIDEO_GEN_NOT_READY") {
225
+ const job = await service.get(jobId).catch(() => undefined);
226
+ return {
227
+ content: ["not_ready=true", job ? formatJob(job) : `jobId=${jobId}`]
228
+ .filter(Boolean)
229
+ .join("\n"),
230
+ };
231
+ }
232
+ throw err;
233
+ }
234
+ }
235
+ catch (err) {
236
+ return fail(err);
237
+ }
238
+ },
239
+ };
240
+ return [tool];
241
+ }
242
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,eAAe,GAKhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,MAAM,KAAK,GAA4B;IACrC,UAAU;IACV,UAAU;IACV,WAAW;IACX,WAAW;CACZ,CAAC;AAEF,MAAM,OAAO,GAA+B,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAEvD,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAU,CAAC;AAGhE,MAAM,UAAU,0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AAO,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC;iCACjE,MAAM,CAAC,OAAO,CAAC;iCACf,IAAI,CAAC,IAAI,CAAC;yBACd,CAAC;oBACJ,CAAC;oBACD,MAAM,GAAG,CAAC;gBACZ,CAAC;YACH,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;YACnB,CAAC;QACH,CAAC;KACF,CAAC;IAEF,OAAO,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Text-to-video Provider seam — model tool `video_generate`.
3
+ *
4
+ * Unlike text-to-image, every real backend renders **asynchronously**: a create
5
+ * call returns a job, the job is polled until it reaches a terminal state, and
6
+ * only then can the media be downloaded. The seam models that shape directly
7
+ * (see OpenAI `POST /videos` → `GET /videos/{id}` → `GET /videos/{id}/content`)
8
+ * instead of hiding a multi-minute render behind a single blocking call.
9
+ */
10
+ export type VideoGenDelivery = "memory" | "openai" | "unavailable";
11
+ export type VideoGenErrorCode = "VIDEO_GEN_UNAVAILABLE" | "VIDEO_GEN_BAD_ARGS" | "VIDEO_GEN_BACKEND"
12
+ /** Job exists but has not reached `completed`; media cannot be fetched yet. */
13
+ | "VIDEO_GEN_NOT_READY";
14
+ export declare class VideoGenError extends Error {
15
+ readonly code: VideoGenErrorCode;
16
+ constructor(message: string, code?: VideoGenErrorCode);
17
+ }
18
+ export declare function isVideoGenError(err: unknown): err is VideoGenError;
19
+ /** Clip duration in seconds (provider-enumerated, not free-form). */
20
+ export type VideoGenSeconds = 4 | 8 | 12;
21
+ export type VideoGenSize = "720x1280" | "1280x720" | "1024x1792" | "1792x1024";
22
+ export type VideoGenStatus = "queued" | "in_progress" | "completed" | "failed";
23
+ export interface VideoGenRequest {
24
+ readonly prompt: string;
25
+ readonly model?: string;
26
+ readonly seconds?: VideoGenSeconds;
27
+ readonly size?: VideoGenSize;
28
+ }
29
+ export interface VideoGenJob {
30
+ readonly jobId: string;
31
+ readonly status: VideoGenStatus;
32
+ /** Approximate completion percentage when the Provider reports one. */
33
+ readonly progress?: number;
34
+ readonly model?: string;
35
+ readonly seconds?: number;
36
+ readonly size?: string;
37
+ /** Provider error text when `status === "failed"`. */
38
+ readonly error?: string;
39
+ readonly provider: string;
40
+ readonly delivery: VideoGenDelivery;
41
+ readonly note?: string;
42
+ }
43
+ export interface VideoGenContent {
44
+ readonly bytes: Uint8Array;
45
+ readonly mimeType: "video/mp4";
46
+ readonly provider: string;
47
+ readonly note?: string;
48
+ }
49
+ /**
50
+ * Definition: text-to-video Provider (async job lifecycle).
51
+ * Tools always register; a missing Provider → honest execute error.
52
+ */
53
+ export interface VideoGenService {
54
+ /** Start a render; resolves as soon as the job is accepted. */
55
+ create(req: VideoGenRequest): Promise<VideoGenJob>;
56
+ /** Poll one job's current state. */
57
+ get(jobId: string): Promise<VideoGenJob>;
58
+ /**
59
+ * Download the finished MP4.
60
+ * @throws VideoGenError `VIDEO_GEN_NOT_READY` until the job is `completed`.
61
+ */
62
+ content(jobId: string): Promise<VideoGenContent>;
63
+ }
64
+ /** True once the job can no longer change state. */
65
+ export declare function isTerminalStatus(status: VideoGenStatus): boolean;
66
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GACzB,uBAAuB,GACvB,oBAAoB,GACpB,mBAAmB;AACrB,+EAA+E;GAC7E,qBAAqB,CAAC;AAE1B,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;gBAErB,OAA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CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,MAAM,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACnD,oCAAoC;IACpC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAClD;AAED,oDAAoD;AACpD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAEhE"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Text-to-video Provider seam — model tool `video_generate`.
3
+ *
4
+ * Unlike text-to-image, every real backend renders **asynchronously**: a create
5
+ * call returns a job, the job is polled until it reaches a terminal state, and
6
+ * only then can the media be downloaded. The seam models that shape directly
7
+ * (see OpenAI `POST /videos` → `GET /videos/{id}` → `GET /videos/{id}/content`)
8
+ * instead of hiding a multi-minute render behind a single blocking call.
9
+ */
10
+ export class VideoGenError extends Error {
11
+ code;
12
+ constructor(message, code = "VIDEO_GEN_BACKEND") {
13
+ super(message);
14
+ this.name = "VideoGenError";
15
+ this.code = code;
16
+ }
17
+ }
18
+ export function isVideoGenError(err) {
19
+ return err instanceof VideoGenError;
20
+ }
21
+ /** True once the job can no longer change state. */
22
+ export function isTerminalStatus(status) {
23
+ return status === "completed" || status === "failed";
24
+ }
25
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,MAAM,OAAO,aAAc,SAAQ,KAAK;IAC7B,IAAI,CAAoB;IAEjC,YAAY,OAAe,EAAE,OAA0B,mBAAmB;QACxE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,OAAO,GAAG,YAAY,aAAa,CAAC;AACtC,CAAC;AAsDD,oDAAoD;AACpD,MAAM,UAAU,gBAAgB,CAAC,MAAsB;IACrD,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,KAAK,QAAQ,CAAC;AACvD,CAAC"}
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@xrkseek/exec-video-gen",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.js",
9
+ "default": "./dist/index.js"
10
+ }
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "README.md"
15
+ ],
16
+ "dependencies": {
17
+ "@xrkseek/attachment": "workspace:*",
18
+ "@xrkseek/core-tools": "workspace:*"
19
+ },
20
+ "license": "MIT",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/xrkseek/XRK-harness.git",
24
+ "directory": "packages/exec/video-gen"
25
+ },
26
+ "private": true
27
+ }
@@ -0,0 +1,25 @@
1
+ # @xrkseek/exec-voice
2
+
3
+ Voice Host seam: TTS · dictation (STT) · realtime voice session broker.
4
+
5
+ - **Definition**: `VoiceService` (`synthesize` · `transcribe` · `createLiveSession` · `liveStatus`)
6
+ - **Provider**: `createMemoryVoiceProvider` · `createOpenAiVoiceProvider` · Host-injected
7
+ - **Consumer**: `createVoiceTools` → `text_to_speech` · `voice_transcribe` · `voice_session`
8
+
9
+ Mic/speaker and WebRTC stay on the client. Tools stay registered when no Provider is configured; execute fails honestly.
10
+
11
+ Env: `XRK_VOICE=memory` | `XRK_VOICE=1` + `OPENAI_API_KEY` / `XRK_VOICE_OPENAI_KEY`.
12
+
13
+ ## Browser mic transport
14
+
15
+ `@xrkseek/exec-voice/browser` is the client-side capture seam: DOM-free structural types with every
16
+ capability injected through `BrowserVoiceDeps` (`getUserMedia` · `MediaRecorder` · `PeerConnection` · `btoa`).
17
+
18
+ - `createBrowserVoiceTransport(deps)` → `capabilities()` · `dictate()` / `openDictation()` · `session({ broker })`
19
+ - `startDictation` · `dictateOnce` · `pickRecorderMime` · `encodeBase64`
20
+ - `startVoiceSession` — local SDP offer → Host broker → answer; `stop()` releases the mic and closes the peer connection
21
+
22
+ Audio never transits the Host. A denied mic → `VOICE_BACKEND`; a missing API (insecure context / SSR) →
23
+ `VOICE_UNAVAILABLE`; a client-secret-only broker answer → `VOICE_LIVE_UNSUPPORTED`.
24
+
25
+ See [docs/voice.md](../../../docs/voice.md) · [docs/seams.md](../../../docs/seams.md).
@@ -0,0 +1,44 @@
1
+ import type { BrowserVoiceDeps } from "./types.js";
2
+ /**
3
+ * Preferred recorder containers, best first. Whisper-style STT accepts
4
+ * webm/opus, ogg/opus and mp4, so the negotiation order is opus-first.
5
+ */
6
+ export declare const RECORDER_MIME_CANDIDATES: readonly string[];
7
+ /** First candidate the recorder accepts; `undefined` lets it pick its default. */
8
+ export declare function pickRecorderMime(isTypeSupported?: (mimeType: string) => boolean): string | undefined;
9
+ export interface DictationResult {
10
+ readonly bytes: Uint8Array;
11
+ readonly mimeType: string;
12
+ readonly durationMs: number;
13
+ }
14
+ export interface DictationRecorder {
15
+ /** Container the recorder reports once recording has begun. */
16
+ readonly mimeType: string;
17
+ isRecording(): boolean;
18
+ /** Finalize and return the audio; the mic is released either way. */
19
+ stop(): Promise<DictationResult>;
20
+ /** Abandon the take and release the mic without producing audio. */
21
+ cancel(): void;
22
+ }
23
+ export interface StartDictationOptions {
24
+ readonly deps?: BrowserVoiceDeps;
25
+ /** Force a container instead of negotiating with the recorder. */
26
+ readonly mimeType?: string;
27
+ /** `MediaRecorder.start(timeslice)`; omit to buffer until `stop`. */
28
+ readonly timesliceMs?: number;
29
+ readonly now?: () => number;
30
+ }
31
+ /**
32
+ * Acquire the mic and begin recording. Rejects (with `VoiceError`) when the
33
+ * browser lacks the APIs or the user denies permission — nothing is recorded.
34
+ */
35
+ export declare function startDictation(options?: StartDictationOptions): Promise<DictationRecorder>;
36
+ export interface DictateOnceOptions extends StartDictationOptions {
37
+ /** Milliseconds to record before auto-stopping (default 15000). */
38
+ readonly maxDurationMs?: number;
39
+ }
40
+ /** Record a single take with a safety cap, returning bytes + Base64. */
41
+ export declare function dictateOnce(options?: DictateOnceOptions): Promise<DictationResult & {
42
+ readonly base64: string;
43
+ }>;
44
+ //# sourceMappingURL=dictation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictation.d.ts","sourceRoot":"","sources":["../../src/browser/dictation.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,gBAAgB,EAIjB,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAAS,MAAM,EAKrD,CAAC;AAEF,kFAAkF;AAClF,wBAAgB,gBAAgB,CAC9B,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,GAC9C,MAAM,GAAG,SAAS,CAMpB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,WAAW,IAAI,OAAO,CAAC;IACvB,qEAAqE;IACrE,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;IACjC,oEAAoE;IACpE,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACjC,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,qEAAqE;IACrE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAClC,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAgI5B;AAED,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,mEAAmE;IACnE,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,wEAAwE;AACxE,wBAAsB,WAAW,CAC/B,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,eAAe,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAkBxD"}
@@ -0,0 +1,163 @@
1
+ /**
2
+ * Push-to-talk dictation capture: mic → encoded audio bytes for `voice_transcribe`.
3
+ * Recording never leaves the client; only the finished bytes are handed back.
4
+ */
5
+ import { VoiceError } from "../types.js";
6
+ import { encodeBase64, micError, releaseStream, resolveGetUserMedia, resolveRecorder, } from "./env.js";
7
+ /**
8
+ * Preferred recorder containers, best first. Whisper-style STT accepts
9
+ * webm/opus, ogg/opus and mp4, so the negotiation order is opus-first.
10
+ */
11
+ export const RECORDER_MIME_CANDIDATES = [
12
+ "audio/webm;codecs=opus",
13
+ "audio/webm",
14
+ "audio/ogg;codecs=opus",
15
+ "audio/mp4",
16
+ ];
17
+ /** First candidate the recorder accepts; `undefined` lets it pick its default. */
18
+ export function pickRecorderMime(isTypeSupported) {
19
+ if (!isTypeSupported)
20
+ return RECORDER_MIME_CANDIDATES[0];
21
+ for (const candidate of RECORDER_MIME_CANDIDATES) {
22
+ if (isTypeSupported(candidate))
23
+ return candidate;
24
+ }
25
+ return undefined;
26
+ }
27
+ /**
28
+ * Acquire the mic and begin recording. Rejects (with `VoiceError`) when the
29
+ * browser lacks the APIs or the user denies permission — nothing is recorded.
30
+ */
31
+ export async function startDictation(options = {}) {
32
+ const deps = options.deps ?? {};
33
+ const getUserMedia = resolveGetUserMedia(deps);
34
+ const Recorder = resolveRecorder(deps);
35
+ const now = options.now ?? (() => Date.now());
36
+ let stream;
37
+ try {
38
+ stream = await getUserMedia({ audio: true });
39
+ }
40
+ catch (err) {
41
+ throw micError(err);
42
+ }
43
+ const probe = Recorder.isTypeSupported;
44
+ const negotiated = options.mimeType ??
45
+ pickRecorderMime(typeof probe === "function" ? probe : undefined);
46
+ let recorder;
47
+ try {
48
+ recorder = negotiated
49
+ ? new Recorder(stream, { mimeType: negotiated })
50
+ : new Recorder(stream);
51
+ }
52
+ catch (err) {
53
+ releaseStream(stream);
54
+ throw new VoiceError(`MediaRecorder could not start${negotiated ? ` with ${negotiated}` : ""}: ${err instanceof Error ? err.message : String(err)}`, "VOICE_BACKEND");
55
+ }
56
+ const blobs = [];
57
+ let observedMime = recorder.mimeType || negotiated || "";
58
+ let failure;
59
+ let resolveStopped;
60
+ const stopped = new Promise((resolve) => {
61
+ resolveStopped = resolve;
62
+ });
63
+ recorder.ondataavailable = (event) => {
64
+ if (event.data && event.data.size > 0) {
65
+ blobs.push(event.data);
66
+ if (event.data.type)
67
+ observedMime = event.data.type;
68
+ }
69
+ };
70
+ recorder.onerror = (event) => {
71
+ const detail = event && typeof event === "object" && "name" in event
72
+ ? String(event.name ?? "")
73
+ : "";
74
+ failure = new VoiceError(`MediaRecorder error${detail ? ` (${detail})` : ""}`, "VOICE_BACKEND");
75
+ resolveStopped?.();
76
+ };
77
+ recorder.onstop = () => resolveStopped?.();
78
+ try {
79
+ recorder.start(options.timesliceMs);
80
+ }
81
+ catch (err) {
82
+ releaseStream(stream);
83
+ throw new VoiceError(`MediaRecorder.start failed: ${err instanceof Error ? err.message : String(err)}`, "VOICE_BACKEND");
84
+ }
85
+ const startedAt = now();
86
+ let phase = "recording";
87
+ let stopPromise;
88
+ const halt = () => {
89
+ try {
90
+ if (recorder.state !== "inactive")
91
+ recorder.stop();
92
+ }
93
+ catch {
94
+ // Stopping an already-dead recorder is not an error worth surfacing.
95
+ }
96
+ };
97
+ const finalize = async () => {
98
+ halt();
99
+ await stopped;
100
+ releaseStream(stream);
101
+ if (failure)
102
+ throw failure;
103
+ const durationMs = Math.max(0, now() - startedAt);
104
+ const parts = [];
105
+ for (const blob of blobs) {
106
+ parts.push(new Uint8Array(await blob.arrayBuffer()));
107
+ }
108
+ const total = parts.reduce((sum, part) => sum + part.length, 0);
109
+ if (total === 0) {
110
+ throw new VoiceError("no audio was captured", "VOICE_BAD_ARGS");
111
+ }
112
+ const bytes = new Uint8Array(total);
113
+ let offset = 0;
114
+ for (const part of parts) {
115
+ bytes.set(part, offset);
116
+ offset += part.length;
117
+ }
118
+ phase = "done";
119
+ return { bytes, mimeType: observedMime || "audio/webm", durationMs };
120
+ };
121
+ return {
122
+ mimeType: observedMime || "audio/webm",
123
+ isRecording: () => phase === "recording",
124
+ stop() {
125
+ if (phase === "cancelled") {
126
+ return Promise.reject(new VoiceError("dictation was cancelled", "VOICE_BAD_ARGS"));
127
+ }
128
+ // Repeated `stop()` calls (e.g. a duration cap racing the caller) share
129
+ // one finalize so the take is never assembled twice.
130
+ stopPromise ??= finalize();
131
+ return stopPromise;
132
+ },
133
+ cancel() {
134
+ if (phase === "done" || phase === "cancelled")
135
+ return;
136
+ phase = "cancelled";
137
+ halt();
138
+ releaseStream(stream);
139
+ },
140
+ };
141
+ }
142
+ /** Record a single take with a safety cap, returning bytes + Base64. */
143
+ export async function dictateOnce(options = {}) {
144
+ const recorder = await startDictation(options);
145
+ const cap = options.maxDurationMs ?? 15_000;
146
+ const timer = cap > 0
147
+ ? setTimeout(() => {
148
+ void recorder.stop().catch(() => undefined);
149
+ }, cap)
150
+ : undefined;
151
+ try {
152
+ const result = await recorder.stop();
153
+ return {
154
+ ...result,
155
+ base64: encodeBase64(result.bytes, options.deps?.btoa),
156
+ };
157
+ }
158
+ finally {
159
+ if (timer !== undefined)
160
+ clearTimeout(timer);
161
+ }
162
+ }
163
+ //# sourceMappingURL=dictation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictation.js","sourceRoot":"","sources":["../../src/browser/dictation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,eAAe,GAChB,MAAM,UAAU,CAAC;AAQlB;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAsB;IACzD,wBAAwB;IACxB,YAAY;IACZ,uBAAuB;IACvB,WAAW;CACZ,CAAC;AAEF,kFAAkF;AAClF,MAAM,UAAU,gBAAgB,CAC9B,eAA+C;IAE/C,IAAI,CAAC,eAAe;QAAE,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC;IACzD,KAAK,MAAM,SAAS,IAAI,wBAAwB,EAAE,CAAC;QACjD,IAAI,eAAe,CAAC,SAAS,CAAC;YAAE,OAAO,SAAS,CAAC;IACnD,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AA2BD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,UAAiC,EAAE;IAEnC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;IAChC,MAAM,YAAY,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAE9C,IAAI,MAAwB,CAAC;IAC7B,IAAI,CAAC;QACH,MAAM,GAAG,MAAM,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/C,C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