@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
@@ -39,6 +39,7 @@ function parseManifestObject(raw, source) {
39
39
  kind: kindTrim,
40
40
  entry: entry.trim(),
41
41
  ...(kindTrim === "cordis" ? { skipLoad: true } : {}),
42
+ ...(o.required === true ? { required: true } : {}),
42
43
  };
43
44
  }
44
45
  function asRecord(value) {
@@ -115,9 +116,8 @@ async function hitFromRoot(root) {
115
116
  if (!manifest)
116
117
  return undefined;
117
118
  const entry = path.resolve(root, manifest.entry);
118
- if (!manifest.skipLoad && !(await exists(entry))) {
119
- throw new Error(`plugin ${manifest.id}: entry not found: ${manifest.entry} (resolved ${entry})`);
120
- }
119
+ // Missing entry is reported at load time so one broken optional plugin
120
+ // does not abort discovery of siblings (DSH optional startup).
121
121
  return { root: path.resolve(root), entry, manifest };
122
122
  }
123
123
  function skipChildName(name) {
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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CAAC;IAExB,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,IAAI,GAAmB,EAAE,CAAC;IAChC,MAAM,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IACjD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,13 +1,14 @@
1
- import { type PolicyEngine, type PolicyRule } from "@xrkseek/policy";
1
+ import { type CreatePolicyEngineOptions, type PolicyEngine, type PolicyRule } from "@xrkseek/policy";
2
2
  import type { RegisteredPlugin } from "./types.js";
3
3
  export interface AppliedPluginPolicyRule {
4
4
  readonly pluginId: string;
5
5
  readonly ruleId: string;
6
6
  }
7
7
  /**
8
- * `kind: "policy"` plugins contribute ordered {@link PolicyRule} rows merged
9
- * before {@link createPolicyEngine} in presets. Reserved kind — no runtime wire
10
- * beyond rule collection until Host policy reload is defined.
8
+ * `kind: "policy"` plugins contribute ordered {@link PolicyRule} rows.
9
+ * Presets use {@link createPolicyEngineFromPlugins}. Product Host uses
10
+ * {@link composeHostPolicyEngine} so file rules stay first and plugin rules
11
+ * still apply (rebuilt when the plugin list refreshes).
11
12
  */
12
13
  export declare function isPolicyPlugin(plugin: RegisteredPlugin): plugin is RegisteredPlugin & {
13
14
  readonly kind: "policy";
@@ -31,6 +32,14 @@ export declare function createPolicyEngineFromPlugins(options?: {
31
32
  readonly baseRules?: readonly PolicyRule[];
32
33
  readonly plugins?: readonly RegisteredPlugin[];
33
34
  }): PolicyEngine | undefined;
35
+ /**
36
+ * Product Host engine: file/default rules first, then `kind: "policy"` plugins.
37
+ * Empty input matches {@link createDefaultPolicyEngine} verdicts.
38
+ */
39
+ export declare function composeHostPolicyEngine(options?: {
40
+ readonly file?: CreatePolicyEngineOptions;
41
+ readonly plugins?: readonly RegisteredPlugin[];
42
+ }): PolicyEngine;
34
43
  /** Inventory helper: which policy rules each plugin registered. */
35
44
  export declare function applyPolicyPlugins(plugins: readonly RegisteredPlugin[]): {
36
45
  readonly applied: readonly AppliedPluginPolicyRule[];
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,gBAAgB,GACvB,MAAM,IAAI,gBAAgB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAE1D;AAED,iHAAiH;AACjH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,gBAAgB,EAAE,GACnC,SAAS,UAAU,EAAE,CAOvB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,GAAE;IACP,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC3C,GACL,SAAS,UAAU,EAAE,CAKvB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,GAAE;IACP,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC3C,GACL,YAAY,GAAG,SAAS,CAQ1B;AAED,mEAAmE;AACnE,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,gBAAgB,EAAE,GACnC;IAAE,QAAQ,CAAC,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BAAyB,CAAC;IAC1C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC3C,GAAG,YAAY,CAYpB;AAED,mEAAmE;AACnE,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,gBAAgB,EAAE,GACnC;IAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,uBAAuB,EAAE,CAAA;CAAE,CAS1D"}
@@ -1,8 +1,9 @@
1
1
  import { createPolicyEngine, } from "@xrkseek/policy";
2
2
  /**
3
- * `kind: "policy"` plugins contribute ordered {@link PolicyRule} rows merged
4
- * before {@link createPolicyEngine} in presets. Reserved kind — no runtime wire
5
- * beyond rule collection until Host policy reload is defined.
3
+ * `kind: "policy"` plugins contribute ordered {@link PolicyRule} rows.
4
+ * Presets use {@link createPolicyEngineFromPlugins}. Product Host uses
5
+ * {@link composeHostPolicyEngine} so file rules stay first and plugin rules
6
+ * still apply (rebuilt when the plugin list refreshes).
6
7
  */
7
8
  export function isPolicyPlugin(plugin) {
8
9
  return plugin.kind === "policy";
@@ -42,6 +43,23 @@ export function createPolicyEngineFromPlugins(options = {}) {
42
43
  return undefined;
43
44
  return createPolicyEngine({ rules });
44
45
  }
46
+ /**
47
+ * Product Host engine: file/default rules first, then `kind: "policy"` plugins.
48
+ * Empty input matches {@link createDefaultPolicyEngine} verdicts.
49
+ */
50
+ export function composeHostPolicyEngine(options = {}) {
51
+ return createPolicyEngine({
52
+ ...(options.file?.defaults !== undefined
53
+ ? { defaults: options.file.defaults }
54
+ : {}),
55
+ rules: wireCompositionPolicy({
56
+ ...(options.file?.rules !== undefined
57
+ ? { baseRules: options.file.rules }
58
+ : {}),
59
+ ...(options.plugins !== undefined ? { plugins: options.plugins } : {}),
60
+ }),
61
+ });
62
+ }
45
63
  /** Inventory helper: which policy rules each plugin registered. */
46
64
  export function applyPolicyPlugins(plugins) {
47
65
  const applied = [];
@@ -1 +1 @@
1
- {"version":3,"file":"policy.js","sourceRoot":"","sources":["../src/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,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACvE,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AAED,mEAAmE;AACnE,MAAM,UAAU,kBAAkB,CAChC,OAAoC;IAEpC,MAAM,OAAO,GAA8B,EAAE,CAAC;IAC9C,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;YAAE,SAAS;QACtC,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,WAAW,IAAI,EAAE,EAAE,CAAC;YAC5C,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { PreHandler } from "@xrkseek/core-tools";
2
+ /** Default per-hook timeout (Hermes-scale; Claude/DSH use 600s — override in config). */
3
+ export declare const DEFAULT_SHELL_HOOK_TIMEOUT_MS = 60000;
4
+ export interface ShellHookCommand {
5
+ readonly command: string;
6
+ /** Tool-name matcher: omit / `*` / `` = all; Claude pipe-literals or unanchored regex. */
7
+ readonly matcher?: string;
8
+ /** Timeout in ms (config `timeout` seconds is converted at parse time). */
9
+ readonly timeoutMs?: number;
10
+ }
11
+ export interface ShellHookRunResult {
12
+ readonly exitCode: number | null;
13
+ readonly stdout: string;
14
+ readonly stderr: string;
15
+ }
16
+ export type ShellHookRunner = (args: {
17
+ readonly command: string;
18
+ readonly cwd: string;
19
+ readonly env: NodeJS.ProcessEnv;
20
+ readonly stdin: string;
21
+ readonly timeoutMs: number;
22
+ readonly signal?: AbortSignal;
23
+ }) => Promise<ShellHookRunResult>;
24
+ export interface CreateShellHookPreOptions {
25
+ readonly commands: readonly ShellHookCommand[];
26
+ /** Working directory for hook processes (session workspace). */
27
+ readonly cwd?: string | (() => string);
28
+ readonly env?: NodeJS.ProcessEnv;
29
+ readonly defaultTimeoutMs?: number;
30
+ /** Injectable spawn (tests). Default: `child_process` shell spawn. */
31
+ readonly runner?: ShellHookRunner;
32
+ }
33
+ /** Claude pipe-literals or unanchored regex; invalid regex → non-match. */
34
+ export declare function toolNameMatches(matcher: string | undefined, toolName: string): boolean;
35
+ /**
36
+ * Parse Claude-style `{ hooks: { PreToolUse: [...] } }` or a bare event map.
37
+ * Only `type: command` (default) entries survive; other events are ignored.
38
+ */
39
+ export declare function parsePreToolUseHooks(raw: unknown): ShellHookCommand[];
40
+ /** Read hooks.json paths; missing / malformed files contribute nothing. */
41
+ export declare function loadShellHookCommands(paths: readonly string[]): ShellHookCommand[];
42
+ /** Default paths: product home then workspace `.xrk/hooks.json`. */
43
+ export declare function defaultShellHookPaths(workspaceRoot: string, productHome: string): string[];
44
+ /**
45
+ * PreHandler that runs matched shell hooks in order.
46
+ * Exit 2 or JSON deny → deny; spawn/timeout/other → fail-open continue.
47
+ */
48
+ export declare function createShellHookPre(options: CreateShellHookPreOptions): PreHandler;
49
+ //# sourceMappingURL=shell-hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-hooks.d.ts","sourceRoot":"","sources":["../src/shell-hooks.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,qBAAqB,CAAC;AAElE,yFAAyF;AACzF,eAAO,MAAM,6BAA6B,QAAS,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,0FAA0F;IAC1F,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,2EAA2E;IAC3E,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACj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CAKV;AAqGD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GACjC,UAAU,CAsDZ"}
@@ -0,0 +1,248 @@
1
+ /**
2
+ * Shell PreToolUse hooks (Claude/DSH-compatible subset).
3
+ * Spawns configured commands with JSON on stdin; maps block → PreHandler deny.
4
+ * Does not expand `kind: hooks` (in-process) — file-driven scripts only.
5
+ */
6
+ import { spawn } from "node:child_process";
7
+ import { readFileSync } from "node:fs";
8
+ import path from "node:path";
9
+ /** Default per-hook timeout (Hermes-scale; Claude/DSH use 600s — override in config). */
10
+ export const DEFAULT_SHELL_HOOK_TIMEOUT_MS = 60_000;
11
+ const CLAUDE_LITERAL = /^[A-Za-z0-9_|]+$/;
12
+ function asObject(value) {
13
+ return typeof value === "object" && value !== null && !Array.isArray(value)
14
+ ? value
15
+ : undefined;
16
+ }
17
+ function isMatchAll(matcher) {
18
+ return matcher === undefined || matcher === "" || matcher === "*";
19
+ }
20
+ /** Claude pipe-literals or unanchored regex; invalid regex → non-match. */
21
+ export function toolNameMatches(matcher, toolName) {
22
+ if (isMatchAll(matcher))
23
+ return true;
24
+ const pattern = matcher;
25
+ if (CLAUDE_LITERAL.test(pattern)) {
26
+ return pattern.split("|").includes(toolName);
27
+ }
28
+ try {
29
+ return new RegExp(pattern).test(toolName);
30
+ }
31
+ catch {
32
+ return false;
33
+ }
34
+ }
35
+ /**
36
+ * Parse Claude-style `{ hooks: { PreToolUse: [...] } }` or a bare event map.
37
+ * Only `type: command` (default) entries survive; other events are ignored.
38
+ */
39
+ export function parsePreToolUseHooks(raw) {
40
+ const root = asObject(raw);
41
+ const hooksMap = root ? (asObject(root.hooks) ?? root) : undefined;
42
+ if (!hooksMap)
43
+ return [];
44
+ const groups = hooksMap.PreToolUse;
45
+ if (!Array.isArray(groups))
46
+ return [];
47
+ const out = [];
48
+ for (const rawGroup of groups) {
49
+ const group = asObject(rawGroup);
50
+ if (!group || !Array.isArray(group.hooks))
51
+ continue;
52
+ const matcher = typeof group.matcher === "string" ? group.matcher : undefined;
53
+ for (const rawHook of group.hooks) {
54
+ const hook = asObject(rawHook);
55
+ if (!hook)
56
+ continue;
57
+ const type = typeof hook.type === "string" ? hook.type : "command";
58
+ if (type !== "command")
59
+ continue;
60
+ if (typeof hook.command !== "string" || !hook.command.trim())
61
+ continue;
62
+ const timeoutSec = typeof hook.timeout === "number" &&
63
+ Number.isFinite(hook.timeout) &&
64
+ hook.timeout > 0
65
+ ? hook.timeout
66
+ : undefined;
67
+ out.push({
68
+ command: hook.command,
69
+ ...(matcher !== undefined ? { matcher } : {}),
70
+ ...(timeoutSec !== undefined
71
+ ? { timeoutMs: Math.floor(timeoutSec * 1000) }
72
+ : {}),
73
+ });
74
+ }
75
+ }
76
+ return out;
77
+ }
78
+ /** Read hooks.json paths; missing / malformed files contribute nothing. */
79
+ export function loadShellHookCommands(paths) {
80
+ const out = [];
81
+ for (const filePath of paths) {
82
+ try {
83
+ const text = readFileSync(filePath, "utf8");
84
+ out.push(...parsePreToolUseHooks(JSON.parse(text)));
85
+ }
86
+ catch {
87
+ // Absent or invalid config must not abort agent composition.
88
+ }
89
+ }
90
+ return out;
91
+ }
92
+ /** Default paths: product home then workspace `.xrk/hooks.json`. */
93
+ export function defaultShellHookPaths(workspaceRoot, productHome) {
94
+ return [
95
+ path.join(productHome, "hooks.json"),
96
+ path.join(workspaceRoot, ".xrk", "hooks.json"),
97
+ ];
98
+ }
99
+ function defaultRunner(args) {
100
+ return new Promise((resolve) => {
101
+ const child = spawn(args.command, {
102
+ shell: true,
103
+ cwd: args.cwd,
104
+ env: args.env,
105
+ windowsHide: true,
106
+ stdio: ["pipe", "pipe", "pipe"],
107
+ });
108
+ let stdout = "";
109
+ let stderr = "";
110
+ let settled = false;
111
+ const finish = (result) => {
112
+ if (settled)
113
+ return;
114
+ settled = true;
115
+ resolve(result);
116
+ };
117
+ const timer = setTimeout(() => {
118
+ child.kill();
119
+ finish({ exitCode: null, stdout, stderr: stderr || "shell hook timeout" });
120
+ }, args.timeoutMs);
121
+ const onAbort = () => {
122
+ child.kill();
123
+ finish({ exitCode: null, stdout, stderr: stderr || "shell hook aborted" });
124
+ };
125
+ args.signal?.addEventListener("abort", onAbort, { once: true });
126
+ child.stdout?.setEncoding("utf8");
127
+ child.stderr?.setEncoding("utf8");
128
+ child.stdout?.on("data", (chunk) => {
129
+ stdout += chunk;
130
+ });
131
+ child.stderr?.on("data", (chunk) => {
132
+ stderr += chunk;
133
+ });
134
+ child.on("error", () => {
135
+ clearTimeout(timer);
136
+ args.signal?.removeEventListener("abort", onAbort);
137
+ finish({ exitCode: null, stdout, stderr });
138
+ });
139
+ child.on("close", (code) => {
140
+ clearTimeout(timer);
141
+ args.signal?.removeEventListener("abort", onAbort);
142
+ finish({ exitCode: code, stdout, stderr });
143
+ });
144
+ try {
145
+ child.stdin?.end(args.stdin);
146
+ }
147
+ catch {
148
+ // Broken pipe before write — close handler settles.
149
+ }
150
+ });
151
+ }
152
+ function decisionFromStdout(stdout) {
153
+ const trimmed = stdout.trim();
154
+ if (!trimmed.startsWith("{"))
155
+ return null;
156
+ let parsed;
157
+ try {
158
+ const value = JSON.parse(trimmed);
159
+ if (!asObject(value))
160
+ return null;
161
+ parsed = value;
162
+ }
163
+ catch {
164
+ return null;
165
+ }
166
+ const top = parsed.decision;
167
+ if (top === "block") {
168
+ const reason = typeof parsed.reason === "string" && parsed.reason.trim()
169
+ ? parsed.reason.trim()
170
+ : "blocked by shell hook";
171
+ return { action: "deny", reason };
172
+ }
173
+ const specific = asObject(parsed.hookSpecificOutput);
174
+ const permission = specific?.permissionDecision;
175
+ if (permission === "deny") {
176
+ const reason = (typeof specific?.permissionDecisionReason === "string" &&
177
+ specific.permissionDecisionReason.trim()) ||
178
+ (typeof parsed.reason === "string" && parsed.reason.trim()) ||
179
+ "blocked by shell hook";
180
+ return { action: "deny", reason };
181
+ }
182
+ if (permission === "ask") {
183
+ const reason = (typeof specific?.permissionDecisionReason === "string" &&
184
+ specific.permissionDecisionReason.trim()) ||
185
+ (typeof parsed.reason === "string" && parsed.reason.trim()) ||
186
+ "shell hook asks for approval";
187
+ return { action: "ask", reason };
188
+ }
189
+ return null;
190
+ }
191
+ /**
192
+ * PreHandler that runs matched shell hooks in order.
193
+ * Exit 2 or JSON deny → deny; spawn/timeout/other → fail-open continue.
194
+ */
195
+ export function createShellHookPre(options) {
196
+ const commands = options.commands;
197
+ const runner = options.runner ?? defaultRunner;
198
+ const defaultTimeoutMs = options.defaultTimeoutMs ?? DEFAULT_SHELL_HOOK_TIMEOUT_MS;
199
+ return async (ctx) => {
200
+ if (commands.length === 0) {
201
+ return { action: "continue", args: ctx.args };
202
+ }
203
+ const cwd = typeof options.cwd === "function"
204
+ ? options.cwd()
205
+ : (options.cwd ?? process.cwd());
206
+ const payload = JSON.stringify({
207
+ hook_event_name: "PreToolUse",
208
+ tool_name: ctx.call.name,
209
+ tool_input: ctx.args,
210
+ tool_use_id: ctx.call.id,
211
+ cwd,
212
+ });
213
+ const env = {
214
+ ...process.env,
215
+ ...(options.env ?? {}),
216
+ };
217
+ for (const hook of commands) {
218
+ if (!toolNameMatches(hook.matcher, ctx.call.name))
219
+ continue;
220
+ let result;
221
+ try {
222
+ result = await runner({
223
+ command: hook.command,
224
+ cwd,
225
+ env,
226
+ stdin: `${payload}\n`,
227
+ timeoutMs: hook.timeoutMs ?? defaultTimeoutMs,
228
+ ...(ctx.signal ? { signal: ctx.signal } : {}),
229
+ });
230
+ }
231
+ catch {
232
+ continue;
233
+ }
234
+ if (result.exitCode === 2) {
235
+ const reason = result.stderr.trim() || "blocked by shell hook (exit 2)";
236
+ return { action: "deny", reason };
237
+ }
238
+ if (result.exitCode === 0) {
239
+ const fromJson = decisionFromStdout(result.stdout);
240
+ if (fromJson)
241
+ return fromJson;
242
+ }
243
+ // Other exits / null (timeout) → fail-open.
244
+ }
245
+ return { action: "continue", args: ctx.args };
246
+ };
247
+ }
248
+ //# sourceMappingURL=shell-hooks.js.map
@@ -0,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,IAAI,IAAI,QAAQ,EAAE,CAAC;YAC5B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;gBAAE,SAAS;YAC5D,IAAI,MAA0B,CAAC;YAC/B,IAAI,CAAC;gBACH,MAAM,GAAG,MAAM,MAAM,CAAC;oBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,GAAG;oBACH,GAAG;oBACH,KAAK,EAAE,GAAG,OAAO,IAAI;oBACrB,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,gBAAgB;oBAC7C,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC9C,CAAC,CAAC;YACL,CAAC;YAAC,MAAM,CAAC;gBACP,SAAS;YACX,CAAC;YACD,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;gBAC1B,MAAM,MAAM,GACV,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,gCAAgC,CAAC;gBAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;YACpC,CAAC;YACD,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;gBAC1B,MAAM,QAAQ,GAAG,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACnD,IAAI,QAAQ;oBAAE,OAAO,QAAQ,CAAC;YAChC,CAAC;YACD,4CAA4C;QAC9C,CAAC;QACD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC;IAChD,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Startup audit classification (DSH app-boot inactiveEntries / startupDiagnostic).
3
+ * Distinguishes hard failures from plugins still waiting on services.
4
+ */
5
+ export type StartupFailureOutcome = {
6
+ readonly kind: "failed";
7
+ readonly error: unknown;
8
+ readonly phase?: string;
9
+ } | {
10
+ readonly kind: "pending";
11
+ readonly missing: readonly string[];
12
+ };
13
+ export interface StartupEntryDiagnostic {
14
+ readonly id: string;
15
+ readonly required: boolean;
16
+ readonly outcome: StartupFailureOutcome;
17
+ /** Optional module / entry path for the full log. */
18
+ readonly module?: string;
19
+ }
20
+ /** Concise terminal diagnostic with non-enumerable entry metadata (DSH StartupError). */
21
+ export declare class StartupError extends Error {
22
+ readonly entries: readonly StartupEntryDiagnostic[];
23
+ constructor(message: string, entries: readonly StartupEntryDiagnostic[]);
24
+ }
25
+ /** Parse "waiting for service(s): a, b" style messages into pending missing ids. */
26
+ export declare function missingServicesFromMessage(message: string): readonly string[] | undefined;
27
+ /**
28
+ * Heuristic: Cordis / loader messages that mean inject not ready yet
29
+ * (not a hard import/execute failure).
30
+ */
31
+ export declare function isPendingServiceMessage(message: string): boolean;
32
+ /**
33
+ * Group startup failures vs waiting services (required pending listed first).
34
+ * Bin name defaults to `xrkh`.
35
+ */
36
+ export declare function formatStartupDiagnostic(entries: readonly StartupEntryDiagnostic[], binName?: string): string;
37
+ export declare function entriesFromPluginFailures(failures: readonly {
38
+ readonly id: string;
39
+ readonly required: boolean;
40
+ readonly message: string;
41
+ readonly kind?: "failed" | "pending";
42
+ readonly missing?: readonly string[];
43
+ }[]): StartupEntryDiagnostic[];
44
+ /** Build a StartupError from classified entries (or a single host-level failure). */
45
+ export declare function startupErrorFromUnknown(err: unknown, binName?: string): StartupError;
46
+ //# sourceMappingURL=startup-audit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startup-audit.d.ts","sourceRoot":"","sources":["../src/startup-audit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,qBAAqB,GAC7B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IAAC,QA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AuB,CACrC,GAAG,EAAE,OAAO,EACZ,OAAO,SAAS,GACf,YAAY,CAcd"}
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Startup audit classification (DSH app-boot inactiveEntries / startupDiagnostic).
3
+ * Distinguishes hard failures from plugins still waiting on services.
4
+ */
5
+ /** Concise terminal diagnostic with non-enumerable entry metadata (DSH StartupError). */
6
+ export class StartupError extends Error {
7
+ entries;
8
+ constructor(message, entries) {
9
+ const failures = entries.flatMap((e) => e.outcome.kind === "failed" ? [e.outcome.error] : []);
10
+ super(message, failures.length > 0
11
+ ? { cause: new AggregateError(failures, "Plugin activation failures") }
12
+ : undefined);
13
+ this.entries = entries;
14
+ this.name = "StartupError";
15
+ Object.defineProperty(this, "entries", { enumerable: false });
16
+ }
17
+ }
18
+ /** Parse "waiting for service(s): a, b" style messages into pending missing ids. */
19
+ export function missingServicesFromMessage(message) {
20
+ const m = message.match(/waiting for services?:\s*([^\n)]+)/i);
21
+ if (!m?.[1])
22
+ return undefined;
23
+ const parts = m[1]
24
+ .split(/[,;]/)
25
+ .map((s) => s.trim())
26
+ .filter((s) => s.length > 0 && s !== "unknown");
27
+ return parts.length > 0 ? parts : ["unknown"];
28
+ }
29
+ /**
30
+ * Heuristic: Cordis / loader messages that mean inject not ready yet
31
+ * (not a hard import/execute failure).
32
+ */
33
+ export function isPendingServiceMessage(message) {
34
+ return (/waiting for service/i.test(message) ||
35
+ /missing service/i.test(message) ||
36
+ /unresolved inject/i.test(message) ||
37
+ /service not (yet )?available/i.test(message));
38
+ }
39
+ function failureDetail(outcome) {
40
+ const err = outcome.error;
41
+ const base = err instanceof Error
42
+ ? err.message
43
+ : typeof err === "string"
44
+ ? err
45
+ : String(err);
46
+ return outcome.phase ? `${base} (${outcome.phase})` : base;
47
+ }
48
+ function entryLine(entry) {
49
+ const detail = entry.outcome.kind === "failed"
50
+ ? failureDetail(entry.outcome)
51
+ : `pending (waiting for ${entry.outcome.missing.length === 1 ? "service" : "services"}: ${entry.outcome.missing.join(", ") || "unknown"})`;
52
+ const req = entry.required ? " [required]" : "";
53
+ return ` - ${entry.id}${req}: ${detail}`;
54
+ }
55
+ /**
56
+ * Group startup failures vs waiting services (required pending listed first).
57
+ * Bin name defaults to `xrkh`.
58
+ */
59
+ export function formatStartupDiagnostic(entries, binName = "xrkh") {
60
+ const required = entries.filter((e) => e.required);
61
+ const requiredCount = required.length > 0 ? required.length : entries.length;
62
+ const lines = [
63
+ `${binName}: startup failed: ${String(requiredCount)} required ${requiredCount === 1 ? "plugin" : "plugins"} did not activate`,
64
+ ];
65
+ const failed = entries.filter((e) => e.outcome.kind === "failed");
66
+ const pending = entries
67
+ .filter((e) => e.outcome.kind === "pending")
68
+ .slice()
69
+ .sort((a, b) => Number(b.required) - Number(a.required));
70
+ if (failed.length > 0) {
71
+ lines.push("", `Failed plugins (${String(failed.length)}):`);
72
+ for (const entry of failed)
73
+ lines.push(entryLine(entry));
74
+ }
75
+ if (pending.length > 0) {
76
+ const width = Math.max("Plugin".length, ...pending.map((e) => e.id.length)) + 2;
77
+ lines.push("", `Plugins waiting for services (${String(pending.length)}):`, ` ${"Plugin".padEnd(width)}Missing services`);
78
+ for (const entry of pending) {
79
+ const missing = entry.outcome.kind === "pending"
80
+ ? entry.outcome.missing.join(", ") || "unknown"
81
+ : "unknown";
82
+ const mark = entry.required ? " *" : "";
83
+ lines.push(` ${`${entry.id}${mark}`.padEnd(width)}${missing}`);
84
+ }
85
+ }
86
+ return lines.join("\n");
87
+ }
88
+ export function entriesFromPluginFailures(failures) {
89
+ return failures.map((f) => {
90
+ if (f.kind === "pending" || isPendingServiceMessage(f.message)) {
91
+ const missing = f.missing ??
92
+ missingServicesFromMessage(f.message) ??
93
+ ["unknown"];
94
+ return {
95
+ id: f.id,
96
+ required: f.required,
97
+ outcome: { kind: "pending", missing },
98
+ };
99
+ }
100
+ return {
101
+ id: f.id,
102
+ required: f.required,
103
+ outcome: { kind: "failed", error: f.message },
104
+ };
105
+ });
106
+ }
107
+ /** Build a StartupError from classified entries (or a single host-level failure). */
108
+ export function startupErrorFromUnknown(err, binName = "xrkh") {
109
+ if (err instanceof StartupError)
110
+ return err;
111
+ const message = err instanceof Error ? err.message : String(err);
112
+ const entries = [
113
+ {
114
+ id: "host",
115
+ required: true,
116
+ outcome: { kind: "failed", error: err },
117
+ },
118
+ ];
119
+ return new StartupError(`${binName}: startup failed: ${message}`, entries);
120
+ }
121
+ //# sourceMappingURL=startup-audit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startup-audit.js","sourceRoot":"","sources":["../src/startup-audit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,yFAAyF;AACzF,MAAM,OAAO,YAAa,SAAQ,KAAK;IAG1B;IAFX,YACE,OAAe,EACN,OAA0C;QAEnD,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACrC,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CACrD,CAAC;QACF,KAAK,CACH,OAAO,EACP,QAAQ,CAAC,MAAM,GAAG,CAAC;YACjB,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,cAAc,CAAC,QAAQ,EAAE,4BAA4B,CAAC,EAAE;YACvE,CAAC,CAAC,SAAS,CACd,CAAC;QAVO,YAAO,GAAP,OAAO,CAAmC;QAWnD,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAED,oFAAoF;AACpF,MAAM,UAAU,0BAA0B,CACxC,OAAe;IAEf,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,CACrB,qCAAqC,CACtC,CAAC;IACF,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;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