@xrkseek/harness 0.4.12 → 0.5.1

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 (518) hide show
  1. package/node_modules/@xrkseek/a2a/README.md +8 -6
  2. package/node_modules/@xrkseek/a2a/dist/client.d.ts +1 -0
  3. package/node_modules/@xrkseek/a2a/dist/client.d.ts.map +1 -1
  4. package/node_modules/@xrkseek/a2a/dist/client.js +36 -20
  5. package/node_modules/@xrkseek/a2a/dist/client.js.map +1 -1
  6. package/node_modules/@xrkseek/a2a/dist/inbound.d.ts +9 -2
  7. package/node_modules/@xrkseek/a2a/dist/inbound.d.ts.map +1 -1
  8. package/node_modules/@xrkseek/a2a/dist/inbound.js +86 -41
  9. package/node_modules/@xrkseek/a2a/dist/inbound.js.map +1 -1
  10. package/node_modules/@xrkseek/a2a/dist/index.d.ts +2 -1
  11. package/node_modules/@xrkseek/a2a/dist/index.d.ts.map +1 -1
  12. package/node_modules/@xrkseek/a2a/dist/index.js +2 -1
  13. package/node_modules/@xrkseek/a2a/dist/index.js.map +1 -1
  14. package/node_modules/@xrkseek/a2a/dist/protocol.d.ts +9 -0
  15. package/node_modules/@xrkseek/a2a/dist/protocol.d.ts.map +1 -1
  16. package/node_modules/@xrkseek/a2a/dist/protocol.js +25 -0
  17. package/node_modules/@xrkseek/a2a/dist/protocol.js.map +1 -1
  18. package/node_modules/@xrkseek/a2a/dist/task-store.d.ts +43 -0
  19. package/node_modules/@xrkseek/a2a/dist/task-store.d.ts.map +1 -0
  20. package/node_modules/@xrkseek/a2a/dist/task-store.js +105 -0
  21. package/node_modules/@xrkseek/a2a/dist/task-store.js.map +1 -0
  22. package/node_modules/@xrkseek/context-fragments/README.md +4 -2
  23. package/node_modules/@xrkseek/context-fragments/dist/index.d.ts +10 -2
  24. package/node_modules/@xrkseek/context-fragments/dist/index.d.ts.map +1 -1
  25. package/node_modules/@xrkseek/context-fragments/dist/index.js +16 -11
  26. package/node_modules/@xrkseek/context-fragments/dist/index.js.map +1 -1
  27. package/node_modules/@xrkseek/core-agent/dist/index.d.ts +5 -0
  28. package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
  29. package/node_modules/@xrkseek/core-agent/dist/index.js +3 -0
  30. package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
  31. package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +11 -0
  32. package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
  33. package/node_modules/@xrkseek/core-agent-loop/dist/index.js +9 -0
  34. package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
  35. package/node_modules/@xrkseek/exec-computer-use/dist/background.js +2 -2
  36. package/node_modules/@xrkseek/exec-computer-use/dist/background.js.map +1 -1
  37. package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts +22 -1
  38. package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts.map +1 -1
  39. package/node_modules/@xrkseek/exec-computer-use/dist/format.js +75 -9
  40. package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -1
  41. package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts +2 -2
  42. package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts.map +1 -1
  43. package/node_modules/@xrkseek/exec-computer-use/dist/index.js +2 -2
  44. package/node_modules/@xrkseek/exec-computer-use/dist/index.js.map +1 -1
  45. package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts +2 -0
  46. package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts.map +1 -1
  47. package/node_modules/@xrkseek/exec-computer-use/dist/memory.js +18 -2
  48. package/node_modules/@xrkseek/exec-computer-use/dist/memory.js.map +1 -1
  49. package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts +15 -1
  50. package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts.map +1 -1
  51. package/node_modules/@xrkseek/exec-computer-use/dist/tools.js +77 -22
  52. package/node_modules/@xrkseek/exec-computer-use/dist/tools.js.map +1 -1
  53. package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts +5 -0
  54. package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts.map +1 -1
  55. package/node_modules/@xrkseek/exec-computer-use/dist/types.js.map +1 -1
  56. package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts +4 -0
  57. package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts.map +1 -1
  58. package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +138 -6
  59. package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js.map +1 -1
  60. package/node_modules/@xrkseek/exec-environment/README.md +2 -2
  61. package/node_modules/@xrkseek/exec-environment/dist/index.d.ts +1 -0
  62. package/node_modules/@xrkseek/exec-environment/dist/index.d.ts.map +1 -1
  63. package/node_modules/@xrkseek/exec-environment/dist/index.js +1 -0
  64. package/node_modules/@xrkseek/exec-environment/dist/index.js.map +1 -1
  65. package/node_modules/@xrkseek/exec-environment/dist/memory.d.ts +25 -0
  66. package/node_modules/@xrkseek/exec-environment/dist/memory.d.ts.map +1 -0
  67. package/node_modules/@xrkseek/exec-environment/dist/memory.js +290 -0
  68. package/node_modules/@xrkseek/exec-environment/dist/memory.js.map +1 -0
  69. package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts +5 -3
  70. package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts.map +1 -1
  71. package/node_modules/@xrkseek/exec-environment/dist/resolve.js +13 -5
  72. package/node_modules/@xrkseek/exec-environment/dist/resolve.js.map +1 -1
  73. package/node_modules/@xrkseek/exec-environment/dist/types.d.ts +1 -1
  74. package/node_modules/@xrkseek/exec-environment/dist/types.d.ts.map +1 -1
  75. package/node_modules/@xrkseek/exec-environment/package.json +1 -1
  76. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +1 -1
  77. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
  78. package/node_modules/@xrkseek/exec-fs/dist/index.js +1 -1
  79. package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
  80. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +2 -0
  81. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -1
  82. package/node_modules/@xrkseek/exec-fs/dist/read-image.js +69 -31
  83. package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -1
  84. package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.d.ts.map +1 -1
  85. package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js +10 -1
  86. package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js.map +1 -1
  87. package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts +14 -0
  88. package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts.map +1 -1
  89. package/node_modules/@xrkseek/exec-image-gen/dist/format.js +28 -6
  90. package/node_modules/@xrkseek/exec-image-gen/dist/format.js.map +1 -1
  91. package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +1 -1
  92. package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -1
  93. package/node_modules/@xrkseek/exec-image-gen/dist/index.js +1 -1
  94. package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -1
  95. package/node_modules/@xrkseek/exec-image-gen/dist/references.d.ts.map +1 -1
  96. package/node_modules/@xrkseek/exec-image-gen/dist/references.js +8 -1
  97. package/node_modules/@xrkseek/exec-image-gen/dist/references.js.map +1 -1
  98. package/node_modules/@xrkseek/exec-image-gen/dist/schema.d.ts.map +1 -1
  99. package/node_modules/@xrkseek/exec-image-gen/dist/schema.js +11 -7
  100. package/node_modules/@xrkseek/exec-image-gen/dist/schema.js.map +1 -1
  101. package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +2 -2
  102. package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -1
  103. package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +38 -14
  104. package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -1
  105. package/node_modules/@xrkseek/exec-image-gen/package.json +2 -1
  106. package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts +23 -3
  107. package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts.map +1 -1
  108. package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js +40 -5
  109. package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js.map +1 -1
  110. package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js +1 -1
  111. package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js.map +1 -1
  112. package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts +1 -1
  113. package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts.map +1 -1
  114. package/node_modules/@xrkseek/exec-sandbox/dist/index.js +1 -1
  115. package/node_modules/@xrkseek/exec-sandbox/dist/index.js.map +1 -1
  116. package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts +8 -0
  117. package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts.map +1 -1
  118. package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js +13 -4
  119. package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js.map +1 -1
  120. package/node_modules/@xrkseek/exec-shell/dist/index.d.ts +6 -3
  121. package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
  122. package/node_modules/@xrkseek/exec-shell/dist/index.js +40 -10
  123. package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
  124. package/node_modules/@xrkseek/exec-subprocess/dist/index.d.ts +4 -0
  125. package/node_modules/@xrkseek/exec-subprocess/dist/index.d.ts.map +1 -1
  126. package/node_modules/@xrkseek/exec-subprocess/dist/index.js +2 -0
  127. package/node_modules/@xrkseek/exec-subprocess/dist/index.js.map +1 -1
  128. package/node_modules/@xrkseek/exec-video-gen/dist/format.js +6 -6
  129. package/node_modules/@xrkseek/exec-video-gen/dist/format.js.map +1 -1
  130. package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +2 -2
  131. package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -1
  132. package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts.map +1 -1
  133. package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js +26 -1
  134. package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js.map +1 -1
  135. package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts +10 -2
  136. package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts.map +1 -1
  137. package/node_modules/@xrkseek/exec-web/dist/browser-session.js +27 -4
  138. package/node_modules/@xrkseek/exec-web/dist/browser-session.js.map +1 -1
  139. package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -1
  140. package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +43 -14
  141. package/node_modules/@xrkseek/exec-web/dist/browser-tools.js.map +1 -1
  142. package/node_modules/@xrkseek/exec-web/dist/format.d.ts.map +1 -1
  143. package/node_modules/@xrkseek/exec-web/dist/format.js +2 -1
  144. package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
  145. package/node_modules/@xrkseek/exec-web/dist/index.d.ts +1 -1
  146. package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
  147. package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
  148. package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts +14 -0
  149. package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts.map +1 -0
  150. package/node_modules/@xrkseek/llm/dist/reasoning-effort.js +21 -0
  151. package/node_modules/@xrkseek/llm/dist/reasoning-effort.js.map +1 -0
  152. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
  153. package/node_modules/@xrkseek/preset-harness/dist/preset.js +28 -4
  154. package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
  155. package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
  156. package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
  157. package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
  158. package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts.map +1 -1
  159. package/node_modules/@xrkseek/protocol/dist/workspace-changes.js +3 -1
  160. package/node_modules/@xrkseek/protocol/dist/workspace-changes.js.map +1 -1
  161. package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts +6 -2
  162. package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts.map +1 -1
  163. package/node_modules/@xrkseek/server-face/dist/attach-http.js +120 -46
  164. package/node_modules/@xrkseek/server-face/dist/attach-http.js.map +1 -1
  165. package/node_modules/@xrkseek/server-face/dist/context.d.ts +18 -3
  166. package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
  167. package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
  168. package/node_modules/@xrkseek/server-face/dist/dispatch.js +6 -2
  169. package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
  170. package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
  171. package/node_modules/@xrkseek/server-face/dist/face-schema.js +1 -0
  172. package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
  173. package/node_modules/@xrkseek/server-face/dist/handlers/catalog.d.ts.map +1 -1
  174. package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js +2 -1
  175. package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js.map +1 -1
  176. package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts +11 -1
  177. package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts.map +1 -1
  178. package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js +170 -4
  179. package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js.map +1 -1
  180. package/node_modules/@xrkseek/server-face/dist/handlers/session-added.d.ts.map +1 -1
  181. package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js +3 -2
  182. package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js.map +1 -1
  183. package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
  184. package/node_modules/@xrkseek/server-face/dist/handlers/session.js +7 -6
  185. package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
  186. package/node_modules/@xrkseek/server-face/dist/index.d.mts +3734 -0
  187. package/node_modules/@xrkseek/server-face/dist/index.d.mts.map +1 -0
  188. package/node_modules/@xrkseek/server-face/dist/index.d.ts +6 -3
  189. package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
  190. package/node_modules/@xrkseek/server-face/dist/index.js +6 -3
  191. package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
  192. package/node_modules/@xrkseek/server-face/dist/index.mjs +22085 -0
  193. package/node_modules/@xrkseek/server-face/dist/index.mjs.map +1 -0
  194. package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts +51 -0
  195. package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts.map +1 -0
  196. package/node_modules/@xrkseek/server-face/dist/model-reasoning.js +104 -0
  197. package/node_modules/@xrkseek/server-face/dist/model-reasoning.js.map +1 -0
  198. package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.d.ts +34 -0
  199. package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.d.ts.map +1 -0
  200. package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.js +41 -0
  201. package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.js.map +1 -0
  202. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts +5 -2
  203. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts.map +1 -1
  204. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js +13 -2
  205. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js.map +1 -1
  206. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -1
  207. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +3 -1
  208. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -1
  209. package/node_modules/@xrkseek/server-face/dist/remote-event.d.ts +1 -1
  210. package/node_modules/@xrkseek/server-face/dist/remote-event.d.ts.map +1 -1
  211. package/node_modules/@xrkseek/server-face/dist/remote-event.js +1 -0
  212. package/node_modules/@xrkseek/server-face/dist/remote-event.js.map +1 -1
  213. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +17 -4
  214. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
  215. package/node_modules/@xrkseek/server-face/dist/runtime.js +14 -2
  216. package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
  217. package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.d.ts +14 -0
  218. package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.d.ts.map +1 -0
  219. package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.js +71 -0
  220. package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.js.map +1 -0
  221. package/node_modules/@xrkseek/server-face/dist/session-agent-preset.d.ts +17 -0
  222. package/node_modules/@xrkseek/server-face/dist/session-agent-preset.d.ts.map +1 -0
  223. package/node_modules/@xrkseek/server-face/dist/session-agent-preset.js +50 -0
  224. package/node_modules/@xrkseek/server-face/dist/session-agent-preset.js.map +1 -0
  225. package/node_modules/@xrkseek/server-face/dist/session-attachment.d.ts +4 -0
  226. package/node_modules/@xrkseek/server-face/dist/session-attachment.d.ts.map +1 -1
  227. package/node_modules/@xrkseek/server-face/dist/session-attachment.js +30 -7
  228. package/node_modules/@xrkseek/server-face/dist/session-attachment.js.map +1 -1
  229. package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
  230. package/node_modules/@xrkseek/server-face/dist/session-status.js +2 -1
  231. package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -1
  232. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +6 -0
  233. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
  234. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +68 -12
  235. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
  236. package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
  237. package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +7 -3
  238. package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
  239. package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
  240. package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +25 -1
  241. package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
  242. package/node_modules/@xrkseek/server-face/dist/types.d.ts +3 -0
  243. package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
  244. package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts +2 -0
  245. package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts.map +1 -1
  246. package/node_modules/@xrkseek/server-face/dist/workspace-face.js +61 -3
  247. package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
  248. package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts +23 -2
  249. package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts.map +1 -1
  250. package/node_modules/@xrkseek/server-face/dist/workspace-registry.js +37 -2
  251. package/node_modules/@xrkseek/server-face/dist/workspace-registry.js.map +1 -1
  252. package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts +2 -0
  253. package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts.map +1 -1
  254. package/node_modules/@xrkseek/server-face/dist/workspace-store.js +4 -0
  255. package/node_modules/@xrkseek/server-face/dist/workspace-store.js.map +1 -1
  256. package/node_modules/@xrkseek/server-host/dist/cron-http.d.ts +26 -0
  257. package/node_modules/@xrkseek/server-host/dist/cron-http.d.ts.map +1 -0
  258. package/node_modules/@xrkseek/server-host/dist/cron-http.js +77 -0
  259. package/node_modules/@xrkseek/server-host/dist/cron-http.js.map +1 -0
  260. package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
  261. package/node_modules/@xrkseek/server-host/dist/index.js +222 -123
  262. package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
  263. package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts +8 -0
  264. package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts.map +1 -1
  265. package/node_modules/@xrkseek/server-host/dist/mcp-wire.js +33 -1
  266. package/node_modules/@xrkseek/server-host/dist/mcp-wire.js.map +1 -1
  267. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
  268. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +2 -1
  269. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
  270. package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts +2 -0
  271. package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts.map +1 -0
  272. package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js +98 -0
  273. package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js.map +1 -0
  274. package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts +18 -0
  275. package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts.map +1 -0
  276. package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js +141 -0
  277. package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js.map +1 -0
  278. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +11 -4
  279. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -1
  280. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +353 -2
  281. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -1
  282. package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts +30 -0
  283. package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts.map +1 -0
  284. package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js +96 -0
  285. package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js.map +1 -0
  286. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -1
  287. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +306 -11
  288. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
  289. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -1
  290. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +53 -3
  291. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -1
  292. package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.d.ts +9 -0
  293. package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.d.ts.map +1 -0
  294. package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.js +80 -0
  295. package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.js.map +1 -0
  296. package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.d.ts +11 -0
  297. package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.d.ts.map +1 -0
  298. package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.js +152 -0
  299. package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.js.map +1 -0
  300. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.d.ts +5 -0
  301. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.d.ts.map +1 -0
  302. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.js +31 -0
  303. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.js.map +1 -0
  304. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +17 -3
  305. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts.map +1 -1
  306. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +265 -8
  307. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -1
  308. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -1
  309. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +6 -1
  310. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -1
  311. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.d.ts +7 -0
  312. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.d.ts.map +1 -0
  313. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.js +188 -0
  314. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.js.map +1 -0
  315. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -1
  316. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +3 -3
  317. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -1
  318. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.d.ts +11 -0
  319. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.d.ts.map +1 -0
  320. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.js +117 -0
  321. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.js.map +1 -0
  322. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.d.ts +11 -0
  323. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.d.ts.map +1 -0
  324. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.js +381 -0
  325. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.js.map +1 -0
  326. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -1
  327. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +43 -1
  328. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -1
  329. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.d.ts +11 -0
  330. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.d.ts.map +1 -0
  331. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.js +173 -0
  332. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.js.map +1 -0
  333. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.d.ts +17 -0
  334. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.d.ts.map +1 -0
  335. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.js +209 -0
  336. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.js.map +1 -0
  337. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.d.ts +7 -0
  338. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.d.ts.map +1 -0
  339. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.js +470 -0
  340. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.js.map +1 -0
  341. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.d.ts +7 -0
  342. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.d.ts.map +1 -0
  343. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.js +93 -0
  344. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.js.map +1 -0
  345. package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.d.ts +27 -0
  346. package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.d.ts.map +1 -0
  347. package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.js +213 -0
  348. package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.js.map +1 -0
  349. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +6 -2
  350. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts.map +1 -1
  351. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +92 -14
  352. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -1
  353. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts +1 -0
  354. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -1
  355. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +72 -1
  356. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -1
  357. package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.d.ts +9 -0
  358. package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.d.ts.map +1 -0
  359. package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.js +341 -0
  360. package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.js.map +1 -0
  361. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts.map +1 -1
  362. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +3 -0
  363. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -1
  364. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.d.ts +7 -0
  365. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.d.ts.map +1 -0
  366. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.js +138 -0
  367. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.js.map +1 -0
  368. package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.d.ts +11 -0
  369. package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.d.ts.map +1 -0
  370. package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.js +85 -0
  371. package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.js.map +1 -0
  372. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts +27 -0
  373. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -1
  374. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +230 -52
  375. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -1
  376. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.d.ts +11 -0
  377. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.d.ts.map +1 -0
  378. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.js +182 -0
  379. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.js.map +1 -0
  380. package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.d.ts +13 -0
  381. package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.d.ts.map +1 -0
  382. package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.js +151 -0
  383. package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.js.map +1 -0
  384. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +6 -0
  385. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -1
  386. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +34 -0
  387. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -1
  388. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts +2 -0
  389. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -1
  390. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +271 -20
  391. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -1
  392. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts +1 -1
  393. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts.map +1 -1
  394. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +105 -21
  395. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -1
  396. package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.d.ts +7 -0
  397. package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.d.ts.map +1 -0
  398. package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.js +81 -0
  399. package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.js.map +1 -0
  400. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.d.ts +8 -0
  401. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.d.ts.map +1 -0
  402. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.js +378 -0
  403. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.js.map +1 -0
  404. package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.d.ts +7 -0
  405. package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.d.ts.map +1 -0
  406. package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.js +229 -0
  407. package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.js.map +1 -0
  408. package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.d.ts +7 -0
  409. package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.d.ts.map +1 -0
  410. package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.js +300 -0
  411. package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.js.map +1 -0
  412. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts.map +1 -1
  413. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js +10 -1
  414. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js.map +1 -1
  415. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts.map +1 -1
  416. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js +40 -9
  417. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js.map +1 -1
  418. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.d.ts +8 -0
  419. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.d.ts.map +1 -0
  420. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.js +428 -0
  421. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.js.map +1 -0
  422. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.d.ts +12 -0
  423. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.d.ts.map +1 -0
  424. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.js +166 -0
  425. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.js.map +1 -0
  426. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts +20 -0
  427. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts.map +1 -0
  428. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.js +308 -0
  429. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.js.map +1 -0
  430. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.d.ts +32 -0
  431. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.d.ts.map +1 -0
  432. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.js +183 -0
  433. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.js.map +1 -0
  434. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts +2 -0
  435. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts.map +1 -1
  436. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +20 -16
  437. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -1
  438. package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.d.ts +7 -0
  439. package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.d.ts.map +1 -0
  440. package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.js +245 -0
  441. package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.js.map +1 -0
  442. package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.d.ts +9 -0
  443. package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.d.ts.map +1 -0
  444. package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js +116 -0
  445. package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js.map +1 -0
  446. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts +1 -0
  447. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts.map +1 -1
  448. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js +5 -2
  449. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js.map +1 -1
  450. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +2 -1
  451. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -1
  452. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +2 -1
  453. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -1
  454. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.d.ts +18 -0
  455. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.d.ts.map +1 -0
  456. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.js +65 -0
  457. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.js.map +1 -0
  458. package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.d.ts +11 -0
  459. package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.d.ts.map +1 -0
  460. package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.js +114 -0
  461. package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.js.map +1 -0
  462. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts +3 -1
  463. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts.map +1 -1
  464. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +42 -1
  465. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -1
  466. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +6 -1
  467. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -1
  468. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +68 -8
  469. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -1
  470. package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.d.ts.map +1 -1
  471. package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.js +111 -26
  472. package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.js.map +1 -1
  473. package/node_modules/@xrkseek/server-http/dist/host-owned-paths.d.ts +6 -0
  474. package/node_modules/@xrkseek/server-http/dist/host-owned-paths.d.ts.map +1 -0
  475. package/node_modules/@xrkseek/server-http/dist/host-owned-paths.js +32 -0
  476. package/node_modules/@xrkseek/server-http/dist/host-owned-paths.js.map +1 -0
  477. package/node_modules/@xrkseek/server-http/dist/index.d.ts +1 -0
  478. package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
  479. package/node_modules/@xrkseek/server-http/dist/index.js +1 -0
  480. package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
  481. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts.map +1 -1
  482. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js +10 -0
  483. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
  484. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +9 -0
  485. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -1
  486. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +68 -21
  487. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -1
  488. package/node_modules/@xrkseek/server-http/package.json +1 -0
  489. package/node_modules/@xrkseek/server-loader/dist/index.d.ts +1 -1
  490. package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
  491. package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
  492. package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
  493. package/node_modules/@xrkseek/server-loader/dist/load.js +5 -2
  494. package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
  495. package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts +11 -1
  496. package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts.map +1 -1
  497. package/node_modules/@xrkseek/server-loader/dist/managed-state.js +11 -2
  498. package/node_modules/@xrkseek/server-loader/dist/managed-state.js.map +1 -1
  499. package/node_modules/@xrkseek/workspace/dist/index.d.ts +9 -0
  500. package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
  501. package/node_modules/@xrkseek/workspace/dist/index.js +4 -2
  502. package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
  503. package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts +32 -2
  504. package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts.map +1 -1
  505. package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js +69 -2
  506. package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js.map +1 -1
  507. package/node_modules/@xrkseek/xrk-session-reference/README.md +1 -1
  508. package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +1 -1
  509. package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts +5 -3
  510. package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts.map +1 -1
  511. package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +20 -17
  512. package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js.map +1 -1
  513. package/node_modules/@xrkseek/xrk-session-reference/package.json +1 -1
  514. package/package.json +1 -1
  515. package/node_modules/@xrkseek/server-face/dist/opencode-zen.d.ts +0 -13
  516. package/node_modules/@xrkseek/server-face/dist/opencode-zen.d.ts.map +0 -1
  517. package/node_modules/@xrkseek/server-face/dist/opencode-zen.js +0 -40
  518. package/node_modules/@xrkseek/server-face/dist/opencode-zen.js.map +0 -1
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Isolated node-pty worker for Desktop Host.
3
+ *
4
+ * Electron spawns Host with framed pipes on fds 3/4. In-process ConPTY
5
+ * (node-pty 1.2 Windows path) can take down that whole process when the
6
+ * first sidebar terminal opens. This worker runs under a fresh Node child
7
+ * so ConPTY never shares the Host pipe fds.
8
+ *
9
+ * Protocol (IPC): parent → spawn | write | resize | kill;
10
+ * worker → ready | data | exit | error.
11
+ */
12
+ import { createRequire } from "node:module";
13
+ import { clearDesktopHostPipeInheritFlags } from "./win-fd-inherit.js";
14
+ let term;
15
+ function send(msg) {
16
+ if (typeof process.send === "function") {
17
+ try {
18
+ process.send(msg);
19
+ }
20
+ catch {
21
+ /* parent gone */
22
+ }
23
+ }
24
+ }
25
+ process.on("message", (raw) => {
26
+ const msg = raw;
27
+ if (!msg || typeof msg !== "object" || !("type" in msg))
28
+ return;
29
+ if (msg.type === "spawn") {
30
+ if (term !== undefined) {
31
+ send({ type: "error", message: "pty already spawned" });
32
+ return;
33
+ }
34
+ void (async () => {
35
+ try {
36
+ // Worker may still hold inheritable copies of Host Face/IPC HANDLEs if
37
+ // the pre-fork clear missed one. Clear again immediately before ConPTY.
38
+ clearDesktopHostPipeInheritFlags();
39
+ // Resolve from this worker's node_modules (Host deploy tree).
40
+ const require = createRequire(import.meta.url);
41
+ const ptyMod = require("node-pty");
42
+ term = ptyMod.spawn(msg.file, [...msg.args], {
43
+ name: "xterm-256color",
44
+ cols: msg.cols,
45
+ rows: msg.rows,
46
+ cwd: msg.cwd,
47
+ env: msg.env,
48
+ ...(process.platform === "win32"
49
+ ? { useConpty: true, conptyInheritCursor: false }
50
+ : {}),
51
+ });
52
+ term.onData((data) => {
53
+ send({ type: "data", data });
54
+ });
55
+ term.onExit(() => {
56
+ send({ type: "exit" });
57
+ });
58
+ send({ type: "ready" });
59
+ }
60
+ catch (error) {
61
+ send({
62
+ type: "error",
63
+ message: error instanceof Error ? error.message : String(error),
64
+ });
65
+ }
66
+ })();
67
+ return;
68
+ }
69
+ if (msg.type === "write") {
70
+ try {
71
+ term?.write(msg.data);
72
+ }
73
+ catch {
74
+ /* ignore */
75
+ }
76
+ return;
77
+ }
78
+ if (msg.type === "resize") {
79
+ try {
80
+ term?.resize(msg.cols, msg.rows);
81
+ }
82
+ catch {
83
+ /* ignore */
84
+ }
85
+ return;
86
+ }
87
+ if (msg.type === "kill") {
88
+ try {
89
+ term?.kill();
90
+ }
91
+ catch {
92
+ /* ignore */
93
+ }
94
+ term = undefined;
95
+ process.exit(0);
96
+ }
97
+ });
98
+ //# sourceMappingURL=sidebar-pty-agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-pty-agent.js","sourceRoot":"","sources":["../src/sidebar-pty-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AA4BvE,IAAI,IAA2B,CAAC;AAEhC,SAAS,IAAI,CAAC,GAAY;IACxB,IAAI,OA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AAI,EAAE,IAAI,EAAE,CAAC;QACf,CAAC;QAAC,MAAM,CAAC;YACP,YAAY;QACd,CAAC;QACD,IAAI,GAAG,SAAS,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare function useDesktopPtyWorker(): boolean;
2
+ export interface DesktopPtyWorkerHandle {
3
+ write(data: string): void;
4
+ resize(cols: number, rows: number): void;
5
+ kill(): void;
6
+ onData(cb: (data: string) => void): {
7
+ dispose(): void;
8
+ };
9
+ onExit(cb: () => void): {
10
+ dispose(): void;
11
+ };
12
+ }
13
+ /**
14
+ * Fork the pty agent. Re-clears Host pipe inherit flags immediately before
15
+ * CreateProcess so ConPTY cannot inherit Electron framed HANDLEs.
16
+ */
17
+ export declare function spawnDesktopPtyWorker(file: string, args: readonly string[], cwd: string, cols: number, rows: number, env: Record<string, string>): Promise<DesktopPtyWorkerHandle>;
18
+ //# sourceMappingURL=sidebar-pty-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-pty-worker.d.ts","sourceRoot":"","sources":["../src/sidebar-pty-worker.ts"],"names":[],"mappings":"AAUA,wBAAgB,mBAAmB,IAAI,OAAO,CAI7C;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG;QAAE,OAAO,IAAI,IAAI,CAAA;KAAE,CAAC;IACxD,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG;QAAE,OAAO,IAAI,IAAI,CAAA;KAAE,CAAC;CAC7C;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC1B,OAAO,CAAC,sBAAsB,CAAC,CA6HjC"}
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Desktop Host PTY worker: fork {@link ./sidebar-pty-agent.js} so Win32 ConPTY
3
+ * never runs inside the process that owns Electron framed pipes (fds 3/4).
4
+ */
5
+ import { fork } from "node:child_process";
6
+ import { fileURLToPath } from "node:url";
7
+ import { clearDesktopHostPipeInheritFlags } from "./win-fd-inherit.js";
8
+ const PTY_DEPS_MISSING = "pty-deps-missing";
9
+ export function useDesktopPtyWorker() {
10
+ // Loopback Face (ADR-0008 / DSH): ConPTY may run in-process — no Electron
11
+ // Face pipes to inherit. Keep the worker module for tests / opt-in only.
12
+ return process.env.XRK_DESKTOP_PTY_WORKER === "1";
13
+ }
14
+ /**
15
+ * Fork the pty agent. Re-clears Host pipe inherit flags immediately before
16
+ * CreateProcess so ConPTY cannot inherit Electron framed HANDLEs.
17
+ */
18
+ export function spawnDesktopPtyWorker(file, args, cwd, cols, rows, env) {
19
+ // Last chance before CreateProcess — pipe-runtime cleared at boot, but any
20
+ // later code may have re-opened inheritable HANDLEs; ConPTY is unforgiving.
21
+ clearDesktopHostPipeInheritFlags();
22
+ const agent = fileURLToPath(new URL("./sidebar-pty-agent.js", import.meta.url));
23
+ const child = fork(agent, [], {
24
+ // Do not inherit Host stderr (or any stdio) — on Windows inheritable
25
+ // Electron pipe HANDLEs (fds 3/4) must stay out of the ConPTY process.
26
+ stdio: ["ignore", "ignore", "ignore", "ipc"],
27
+ env,
28
+ // Electron-typed @types/node ForkOptions omits windowsHide; Node accepts it.
29
+ ...{ windowsHide: true },
30
+ });
31
+ return new Promise((resolve, reject) => {
32
+ let settled = false;
33
+ const dataHandlers = new Set();
34
+ const exitHandlers = new Set();
35
+ let exited = false;
36
+ const fail = (error) => {
37
+ if (settled)
38
+ return;
39
+ settled = true;
40
+ try {
41
+ child.kill();
42
+ }
43
+ catch {
44
+ /* ignore */
45
+ }
46
+ reject(error);
47
+ };
48
+ const onMessage = (raw) => {
49
+ if (!raw || typeof raw !== "object" || !("type" in raw))
50
+ return;
51
+ const msg = raw;
52
+ if (msg.type === "ready") {
53
+ if (settled)
54
+ return;
55
+ settled = true;
56
+ resolve({
57
+ write(data) {
58
+ child.send({ type: "write", data });
59
+ },
60
+ resize(nextCols, nextRows) {
61
+ child.send({ type: "resize", cols: nextCols, rows: nextRows });
62
+ },
63
+ kill() {
64
+ try {
65
+ child.send({ type: "kill" });
66
+ }
67
+ catch {
68
+ /* ignore */
69
+ }
70
+ try {
71
+ child.kill();
72
+ }
73
+ catch {
74
+ /* ignore */
75
+ }
76
+ },
77
+ onData(cb) {
78
+ dataHandlers.add(cb);
79
+ return {
80
+ dispose() {
81
+ dataHandlers.delete(cb);
82
+ },
83
+ };
84
+ },
85
+ onExit(cb) {
86
+ exitHandlers.add(cb);
87
+ return {
88
+ dispose() {
89
+ exitHandlers.delete(cb);
90
+ },
91
+ };
92
+ },
93
+ });
94
+ return;
95
+ }
96
+ if (msg.type === "data" && typeof msg.data === "string") {
97
+ for (const cb of dataHandlers)
98
+ cb(msg.data);
99
+ return;
100
+ }
101
+ if (msg.type === "exit") {
102
+ if (exited)
103
+ return;
104
+ exited = true;
105
+ for (const cb of exitHandlers)
106
+ cb();
107
+ return;
108
+ }
109
+ if (msg.type === "error") {
110
+ fail(new Error(typeof msg.message === "string" && msg.message.length > 0
111
+ ? msg.message
112
+ : PTY_DEPS_MISSING));
113
+ }
114
+ };
115
+ child.on("message", onMessage);
116
+ child.on("error", (error) => {
117
+ fail(error instanceof Error ? error : new Error(String(error)));
118
+ });
119
+ child.on("exit", () => {
120
+ if (!settled) {
121
+ fail(new Error(PTY_DEPS_MISSING));
122
+ return;
123
+ }
124
+ if (exited)
125
+ return;
126
+ exited = true;
127
+ for (const cb of exitHandlers)
128
+ cb();
129
+ });
130
+ child.send({
131
+ type: "spawn",
132
+ file,
133
+ args,
134
+ cwd,
135
+ cols,
136
+ rows,
137
+ env,
138
+ });
139
+ });
140
+ }
141
+ //# sourceMappingURL=sidebar-pty-worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-pty-worker.js","sourceRoot":"","sources":["../src/sidebar-pty-worker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAEvE,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAE5C,MAAM,UAAU,mBAAmB;IACjC,0EAA0E;IAC1E,yEAAyE;IACzE,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,GAAG,CAAC;AACpD,CAAC;AAUD;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CACnC,IAAY,EACZ,IAAuB,EACvB,GAAW,EACX,IAAY,EACZ,IAAY,EACZ,GAA2B;IAE3B,2EAA2E;IAC3E,4EAA4E;IAC5E,gCAAgC,EAAE,CAAC;IAEnC,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,wBAAwB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAChF,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,EAAE,EAAE;QAC5B,qEAAqE;QACrE,uEAAuE;QACvE,KAAK,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;QAC5C,GAAG;QACH,6EAA6E;QAC7E,GAAI,EAAE,WAAW,EAAE,IAAI,EAAa;KACrC,CAAC,CAAC;IAEH,OAAO,IAAI,OAAO,C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CAAC;YACJ,CAAC;QACH,CAAC,CAAC;QAEF,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAC/B,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAC1B,IAAI,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;YACpB,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,IAAI,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;gBAClC,OAAO;YACT,CAAC;YACD,IAAI,MAAM;gBAAE,OAAO;YACnB,MAAM,GAAG,IAAI,CAAC;YACd,KAAK,MAAM,EAAE,IAAI,YAAY;gBAAE,EAAE,EAAE,CAAC;QACtC,CAAC,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC;YACT,IAAI,EAAE,OAAO;YACb,IAAI;YACJ,IAAI;YACJ,GAAG;YACH,IAAI;YACJ,IAAI;YACJ,GAAG;SACJ,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -14,7 +14,7 @@
14
14
  * be reported into Face `hasPtyActivity` — Agent `/permission` sandbox changes
15
15
  * stay independent of open sidebar tabs.
16
16
  */
17
- import type { IncomingMessage, Server } from "node:http";
17
+ import type { IncomingMessage, Server, ServerResponse } from "node:http";
18
18
  import type { AgentOpenRegistry } from "./sidebar-agent-opens.js";
19
19
  import type { AgentPtyRegistry } from "./sidebar-agent-pty.js";
20
20
  export interface SidebarPtyOptions {
@@ -25,10 +25,17 @@ export interface SidebarPtyOptions {
25
25
  /** `sidebar_open` registry — drives `/sidebar/ws/agent-opens`. */
26
26
  readonly agentOpens?: AgentOpenRegistry;
27
27
  }
28
+ /** Host-side handle: WS upgrades + Desktop HTTP/SSE (no TCP listen). */
29
+ export interface SidebarPtyHandle {
30
+ close(): void;
31
+ /**
32
+ * Desktop `xrk-app://` cannot upgrade WebSockets. Same PTY slots over
33
+ * `/sidebar/api/pty/*` (SSE stream + POST input/control).
34
+ */
35
+ tryHandleHttp(req: IncomingMessage, res: ServerResponse): boolean;
36
+ }
28
37
  /**
29
38
  * Attach `/sidebar/ws/terminal`, `/sidebar/ws/agent-terminals`, `/sidebar/ws/agent-opens`.
30
39
  */
31
- export declare function attachSidebarPtyUpgrades(server: Server, options: SidebarPtyOptions): {
32
- close(): void;
33
- };
40
+ export declare function attachSidebarPtyUpgrades(server: Server, options: SidebarPtyOptions): SidebarPtyHandle;
34
41
  //# sourceMappingURL=sidebar-pty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-pty.d.ts","sourceRoot":"","sources":["../src/sidebar-pty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM/D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,OAAO,CAAC;IACtD,+EAA+E;IAC/E,QAAQ,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IACrC,kEAAkE;IAClE,QAAQ,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC;CACzC;AAiJD;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,GACzB;IAAE,KAAK,IAAI,IAAI,CAAA;CAAE,CA+anB"}
1
+ {"version":3,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