@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
@@ -12,9 +12,10 @@ import { installOutboundHttpProxy } from "./http-proxy.js";
12
12
  import { mountInvariantsFailFast } from "./invariants-fail-fast.js";
13
13
  import { watchPolicyFile } from "./policy-file-watch.js";
14
14
  import { createA2aInboundPublicHandler } from "./a2a-inbound-public.js";
15
+ import { createCronApiHandler } from "./cron-http.js";
15
16
  import { tryMountHostIsolatingWorkflowEngine } from "./workflow-engine-mount.js";
16
17
  import { applyXrkProductBootPolicy, chainPublicHandlers, ensureDshCompatHostPlugin, createLiveHostPluginsPublicHandler, createHttpServer, createXrkPluginPublicHandler, createSidebarPublicHandler, prewarmDshCompatAdapters, shutdownDshCompatServices, applyHostPackageByName, stopHostPackageFiber, listHostAppliedPackages, invokeDshCompatRpc, attachDshCompatUpgrades, DSH_SETTINGS_NAMESPACES, DSH_SETTINGS_DEFAULTS, runPluginMutate, ensureXrkPlatformClientBootEntries, injectBootIntoHtml, injectMobileAccessShellIntoHtml, loadBootManifestFromWebDist, mergeWebBootManifests, resolveWebBootManifest, createXrkWalletPort, createMobileAccessGateChecker, createMobileAccessGateHandler, loadSidebarPrefs, } from "@xrkseek/server-http";
17
- import { attachFaceUpgrades, bindSubagentTools, bindSessionQueryTools, createFaceRuntime, effectiveHostApiKey, isLoopbackAddress, listCredentialSlots, peekSettingsYamlSection, publishRemoteEvent, createSessionRoutingLlm, liveRouteAllowsImageInput, resolveSessionCwd, canonicalAgentPresetId, resolveAgentPresetProfile, DEFAULT_MAX_DEPTH, DEFAULT_MAX_ACTIVE_CHILDREN, tryHandleFaceHttp, isPluginSoftDisabledAt, readDisabledPluginIdsAt, readManagedPackageIndexAt, reconcileManagedProcessPlugins, snapshotSessionWorkspace, SNAPSHOT_DRAIN_BUDGET_MS, } from "@xrkseek/server-face";
18
+ import { attachFaceUpgrades, bindSubagentTools, bindSessionQueryTools, createFaceRuntime, effectiveHostApiKey, ensureMcpLiveIfIdle, isLoopbackAddress, listCredentialSlots, peekSettingsYamlSection, publishRemoteEvent, createSessionRoutingLlm, liveRouteAllowsImageInput, resolveSessionCwd, canonicalAgentPresetId, resolveAgentPresetProfile, effectiveSessionAgentPreset, DEFAULT_MAX_DEPTH, DEFAULT_MAX_ACTIVE_CHILDREN, tryHandleFaceHttp, isPluginSoftDisabledAt, readDisabledPluginIdsAt, readManagedPackageIndexAt, reconcileManagedProcessPlugins, snapshotSessionWorkspace, SNAPSHOT_DRAIN_BUDGET_MS, } from "@xrkseek/server-face";
18
19
  import { createPluginLoader, composeHostPolicyEngine, wireCompositionChannels, wireCompositionLlm, collectChannelPluginRegistrations, } from "@xrkseek/server-loader";
19
20
  import { existsSync } from "node:fs";
20
21
  import { access } from "node:fs/promises";
@@ -148,6 +149,19 @@ export function createHostShellPrepareArgv(options) {
148
149
  return confined;
149
150
  };
150
151
  }
152
+ /** Face `removeUserPlugin` / `updateUserPlugin` — prefer composed mutate error over bare stderr. */
153
+ function facePluginMutateResult(result) {
154
+ return {
155
+ ok: result.ok,
156
+ ...(result.error
157
+ ? { error: result.error }
158
+ : !result.ok && result.stderr
159
+ ? { error: result.stderr }
160
+ : {}),
161
+ stdout: result.stdout,
162
+ stderr: result.stderr,
163
+ };
164
+ }
151
165
  export function createHostManager() {
152
166
  const instances = new Map();
153
167
  let seq = 0;
@@ -250,7 +264,7 @@ export function createHostManager() {
250
264
  const mcpFileSourced = configuredMcpSpecs(config).length === 0;
251
265
  let mcpAllowConnect = resolveMcpAllowConnect(config);
252
266
  if (mcpSpecs.length > 0) {
253
- log?.info(`mcp desired ${mcpSpecs.length} (source=${mcpFileSourced ? "host-settings" : "env/config"}; allow=${mcpAllowConnect ? "on" : "off"})`);
267
+ log?.info(`mcp desired ${mcpSpecs.length} (source=${mcpFileSourced ? "host-settings" : "env/config"}; allow=${mcpAllowConnect ? "on" : "off"}; connect after HTTP ready)`);
254
268
  }
255
269
  let invalidateAgents = async () => { };
256
270
  /** Sessions skipped mid-turn; invalidate once drain goes idle. */
@@ -306,26 +320,75 @@ export function createHostManager() {
306
320
  notifyMcpOverlay();
307
321
  },
308
322
  };
309
- if (mcpSpecs.length > 0) {
310
- const boot = await reconcileMcpToolPlugins({
311
- desired: mcpSpecs,
312
- list: () => loader.list(),
313
- register: (plugin) => {
314
- loader.register(plugin);
315
- if (!loadedPluginIds.includes(plugin.id)) {
316
- loadedPluginIds = [...loadedPluginIds, plugin.id];
317
- }
318
- },
319
- unregister: mcpUnregister,
320
- retained: () => mcpDeferred.retained(),
321
- policy,
322
- allowConnect: mcpAllowConnect,
323
- workspaceRoot: config.runtime.workspaceRoot,
324
- imageAdmission: mcpImageAdmission,
325
- ...mcpHooks,
323
+ const registerMcpPlugin = (plugin) => {
324
+ loader.register(plugin);
325
+ if (!loadedPluginIds.includes(plugin.id)) {
326
+ loadedPluginIds = [...loadedPluginIds, plugin.id];
327
+ }
328
+ };
329
+ const mcpReconcileOptions = (desired, allowConnect) => ({
330
+ desired,
331
+ list: () => loader.list(),
332
+ register: registerMcpPlugin,
333
+ unregister: mcpUnregister,
334
+ retained: () => mcpDeferred.retained(),
335
+ policy,
336
+ allowConnect,
337
+ workspaceRoot: config.runtime.workspaceRoot,
338
+ imageAdmission: mcpImageAdmission,
339
+ ...mcpHooks,
340
+ });
341
+ let mcpClosed = false;
342
+ let mcpSyncTail = Promise.resolve();
343
+ /** Last reconcile overlay — applied when `notifyMcpOverlay` is wired to Face. */
344
+ let lastMcpReconcileOverlay;
345
+ const enqueueMcpReconcile = (label, desired, allowConnect) => {
346
+ const run = mcpSyncTail.then(async () => {
347
+ if (mcpClosed) {
348
+ return { failures: [], parked: [], added: [], removed: [], kept: [] };
349
+ }
350
+ const result = await reconcileMcpToolPlugins({
351
+ ...mcpReconcileOptions(desired, allowConnect),
352
+ onConnectProgress: async ({ phase, serverName }) => {
353
+ if (mcpClosed)
354
+ return;
355
+ const prev = lastMcpReconcileOverlay;
356
+ const connecting = new Set(prev?.connecting ?? []);
357
+ if (phase === "connecting")
358
+ connecting.add(serverName);
359
+ else
360
+ connecting.delete(serverName);
361
+ lastMcpReconcileOverlay = {
362
+ connectFailures: prev?.connectFailures ?? [],
363
+ parked: prev?.parked ?? [],
364
+ connecting: [...connecting],
365
+ };
366
+ // Live row badges: refresh connected plugins + push overlay mid-serial.
367
+ notifyMcpOverlay();
368
+ if (phase === "connecting") {
369
+ log?.info(`mcp ${label}: connecting ${serverName}`);
370
+ }
371
+ },
372
+ });
373
+ if (mcpClosed)
374
+ return result;
375
+ logMcpReconcile(log, label, result);
376
+ lastMcpReconcileOverlay = {
377
+ connectFailures: result.failures,
378
+ parked: result.parked,
379
+ connecting: [],
380
+ };
381
+ // Boot/reconcile used to refresh plugins only — Settings MCP card kept
382
+ // stale `parked` until a manual save. Push the same overlay event as
383
+ // health changes so connected/parked badges update live.
384
+ notifyMcpOverlay();
385
+ await invalidateAgents();
386
+ return result;
326
387
  });
327
- logMcpReconcile(log, "boot", boot);
328
- }
388
+ mcpSyncTail = run.then(() => undefined, () => undefined);
389
+ return run;
390
+ };
391
+ // Face/HTTP first (Codex-style): MCP stdio/HTTP handshake must not block spawn.
329
392
  refreshFacePlugins();
330
393
  const agentCache = createHostAgentCache(loader.list(), { hostId: id });
331
394
  // MCP remount / settings_mutate runs inside an active drain. Aborting that
@@ -343,14 +406,13 @@ export function createHostManager() {
343
406
  });
344
407
  await mcpDeferred.flush();
345
408
  };
346
- let mcpSyncTail = Promise.resolve();
347
409
  const lastDrainResult = new Map();
348
410
  // Local Host + remote cwd: swap fs/shell (Hermes/DSH provider pattern).
349
411
  // Env `XRK_SSH_HOST` CI-bypasses Face; else peek settings.yaml before Face
350
412
  // (SSH world must own workspaceRoot before createFaceRuntime).
351
- // Optional HTTP ExecEnvironment (Modal/e2b-style sidecar) when SSH is off.
413
+ // Optional pluggable ExecEnvironment (HTTP sidecar · memory CI world) when SSH is off.
352
414
  let sshWorld;
353
- let httpWorld;
415
+ let envWorld;
354
416
  /** Local Host cwd before SSH workspace swap (browse/settings anchor). */
355
417
  let localHostRoot;
356
418
  let execWorldKind;
@@ -365,21 +427,26 @@ export function createHostManager() {
365
427
  config.runtime.workspaceRoot =
366
428
  sshWorld.workspaceRoot;
367
429
  }
368
- else if (String(process.env.XRK_EXEC_ENVIRONMENT ?? "")
369
- .trim()
370
- .toLowerCase() === "http") {
371
- execWorldKind = "http";
372
- const provider = resolveExecEnvironment({ env: process.env });
373
- httpWorld = await provider.createWorld({
374
- workspaceRoot: config.runtime.workspaceRoot,
375
- });
430
+ else {
431
+ const envKind = String(process.env.XRK_EXEC_ENVIRONMENT ?? "")
432
+ .trim()
433
+ .toLowerCase();
434
+ if (envKind === "http" || envKind === "memory") {
435
+ execWorldKind = envKind;
436
+ const provider = resolveExecEnvironment({ env: process.env });
437
+ envWorld = await provider.createWorld({
438
+ workspaceRoot: config.runtime.workspaceRoot,
439
+ });
440
+ }
376
441
  }
377
442
  }
378
443
  catch (err) {
379
444
  const message = err instanceof Error ? err.message : String(err);
380
445
  throw new Error(execWorldKind === "http"
381
446
  ? `HTTP exec environment: ${message}`
382
- : `SSH remote workspace: ${message}`, { cause: err });
447
+ : execWorldKind === "memory"
448
+ ? `Memory exec environment: ${message}`
449
+ : `SSH remote workspace: ${message}`, { cause: err });
383
450
  }
384
451
  // Codex-shaped outbound allowlist audit → Host logger (not MITM).
385
452
  setOutboundAllowlistAuditObserver((ev) => {
@@ -396,8 +463,8 @@ export function createHostManager() {
396
463
  ? createLocalShell({
397
464
  subprocess: sshWorld
398
465
  ? sshWorld.subprocess
399
- : httpWorld
400
- ? httpWorld.subprocess
466
+ : envWorld
467
+ ? envWorld.subprocess
401
468
  : createLocalSubprocess(),
402
469
  defaultCwd: config.runtime.workspaceRoot,
403
470
  // Host-wide shared registry — sandbox confine resolves lazily so
@@ -535,12 +602,18 @@ export function createHostManager() {
535
602
  // Sidebar agent-opens / agent-terminals — Host registries (not plugin host.mjs).
536
603
  const agentOpenRegistry = new AgentOpenRegistry();
537
604
  const agentPtyRegistry = new AgentPtyRegistry();
605
+ // Filled in attachExtras — Desktop HTTP PTY (no WS upgrade when listen:false).
606
+ const sidebarPtyHttp = {};
538
607
  const cronBox = {};
539
608
  const resolveAgent = async (sessionId) => {
540
609
  // Cache composition binding only — never treat AgentHandle as transcript source (ADR-0003).
541
610
  const parentSessionId = lineage.parentOf(sessionId);
542
611
  const sessionRoot = sessionCwdBox.get?.(sessionId) ?? config.runtime.workspaceRoot;
543
- const agentPreset = sessionPresetBox.get?.(sessionId);
612
+ const agentPreset = sessionPresetBox.get?.(sessionId) ??
613
+ (faceBox.runtime
614
+ ? effectiveSessionAgentPreset(faceBox.runtime, sessionId)
615
+ : undefined) ??
616
+ config.runtime.preset;
544
617
  const wsId = faceRuntime.workspaces.workspaceIdOf(sessionId);
545
618
  const wsRow = wsId ? faceRuntime.workspaces.get(wsId) : undefined;
546
619
  return agentCache.resolve(sessionId, async () => {
@@ -582,8 +655,8 @@ export function createHostManager() {
582
655
  remoteExecution: true,
583
656
  codeRuntime: sshWorld.codeRuntime,
584
657
  }
585
- : httpWorld
586
- ? { fs: httpWorld.fs }
658
+ : envWorld
659
+ ? { fs: envWorld.fs }
587
660
  : {}),
588
661
  ...(faceBox.runtime
589
662
  ? {
@@ -702,7 +775,7 @@ export function createHostManager() {
702
775
  }
703
776
  // ask_user / exit_plan_mode: Face resolveAgent rebinds once.
704
777
  if (agent.tools && faceBox.runtime) {
705
- const profile = resolveAgentPresetProfile(agentPreset ?? config.runtime.preset, config.runtime.preset);
778
+ const profile = resolveAgentPresetProfile(agentPreset, config.runtime.preset);
706
779
  if (profile.subagents.mode === "on") {
707
780
  const faceDepth = pluginSettings.maxSubagentDepth ?? DEFAULT_MAX_DEPTH;
708
781
  const faceActive = pluginSettings.maxActiveSubagents ??
@@ -907,16 +980,31 @@ export function createHostManager() {
907
980
  rev: overlayBoot.rev,
908
981
  entries: overlayBoot.entries.filter((e) => !isPluginSoftDisabledAt(e.id, disabledIds, packageIndex)),
909
982
  };
910
- const boot = applyXrkProductBootPolicy(ensureXrkPlatformClientBootEntries(mergeWebBootManifests(resolveWebBootManifest(config.runtime.webDist), filteredOverlay), config.runtime.webDist));
911
- // Mutable like facePlugins: soft-disable / remove rewrite boot.json, so
912
- // inventory must re-read overlay or removed clients stay as active ghosts.
983
+ // Mutable live boot: soft-disable / install rewrites pluginsDir web/boot.json.
984
+ // HTML inject and inventory must re-read the overlay, or a browser reload
985
+ // after install still serves the start-of-process graph (needsRestart ghost).
986
+ const liveBoot = {
987
+ current: applyXrkProductBootPolicy(ensureXrkPlatformClientBootEntries(mergeWebBootManifests(resolveWebBootManifest(config.runtime.webDist), filteredOverlay), config.runtime.webDist)),
988
+ };
989
+ // Same array reference is passed to webStatic.extraRoots — must update in
990
+ // place when the first client install creates `{pluginsDir}/web` mid-process,
991
+ // or reload injects the new boot row while `/plugins/<id>/client.js` 404s.
992
+ const liveExtraRoots = webOverlay ? [webOverlay] : [];
913
993
  const faceWebPlugins = [];
914
994
  const refreshFaceWebPlugins = async () => {
915
995
  if (!config.runtime.webDist) {
916
996
  faceWebPlugins.splice(0, faceWebPlugins.length);
997
+ liveExtraRoots.splice(0, liveExtraRoots.length);
998
+ liveBoot.current = {
999
+ rev: liveBoot.current.rev,
1000
+ entries: [],
1001
+ };
917
1002
  return;
918
1003
  }
919
1004
  const overlayRoot = await resolveWebPluginOverlay(resolvedPluginsDir);
1005
+ liveExtraRoots.splice(0, liveExtraRoots.length);
1006
+ if (overlayRoot)
1007
+ liveExtraRoots.push(overlayRoot);
920
1008
  const nextOverlay = overlayRoot
921
1009
  ? loadBootManifestFromWebDist(overlayRoot)
922
1010
  : undefined;
@@ -929,9 +1017,10 @@ export function createHostManager() {
929
1017
  entries: nextOverlay.entries.filter((e) => !isPluginSoftDisabledAt(e.id, disabled, index)),
930
1018
  };
931
1019
  const nextBoot = applyXrkProductBootPolicy(ensureXrkPlatformClientBootEntries(mergeWebBootManifests(resolveWebBootManifest(config.runtime.webDist), filtered), config.runtime.webDist));
1020
+ liveBoot.current = nextBoot;
932
1021
  faceWebPlugins.splice(0, faceWebPlugins.length, ...nextBoot.entries.map((e) => ({ id: e.id })));
933
1022
  };
934
- faceWebPlugins.push(...boot.entries.map((e) => ({ id: e.id })));
1023
+ faceWebPlugins.push(...liveBoot.current.entries.map((e) => ({ id: e.id })));
935
1024
  const hostWireRef = {};
936
1025
  const syncCordisHostApplied = () => {
937
1026
  hostPublic.cordisHostApplied = listHostAppliedPackages().map((row) => row.packageName);
@@ -982,24 +1071,26 @@ export function createHostManager() {
982
1071
  spec,
983
1072
  pluginsDir: resolvedPluginsDir,
984
1073
  });
985
- return result.ok
986
- ? { ok: true }
987
- : { ok: false, error: result.error ?? result.stderr };
1074
+ return facePluginMutateResult(result);
988
1075
  },
989
- updateUserPlugin: async (spec) => {
1076
+ updateUserPlugin: async (spec, options) => {
990
1077
  const result = await runPluginMutate({
991
1078
  action: "add",
992
1079
  spec,
993
1080
  pluginsDir: resolvedPluginsDir,
1081
+ ...(options?.registry?.trim()
1082
+ ? { registry: options.registry.trim() }
1083
+ : {}),
1084
+ ...(options?.onChunk !== undefined
1085
+ ? { onChunk: options.onChunk }
1086
+ : {}),
994
1087
  });
995
- return result.ok
996
- ? { ok: true }
997
- : { ok: false, error: result.error ?? result.stderr };
1088
+ return facePluginMutateResult(result);
998
1089
  },
999
- syncManagedProcessPlugins: async () => {
1090
+ syncManagedProcessPlugins: async (options) => {
1000
1091
  if (!managedPluginsRootReady())
1001
1092
  return;
1002
- const synced = await reconcileManagedProcessPlugins(loader, resolvedPluginsDir);
1093
+ const synced = await reconcileManagedProcessPlugins(loader, resolvedPluginsDir, options);
1003
1094
  loadedPluginIds = [...synced.ids];
1004
1095
  for (const failure of synced.failures) {
1005
1096
  log?.warn(`plugin load failed (${failure.id}): ${failure.message}`);
@@ -1011,36 +1102,12 @@ export function createHostManager() {
1011
1102
  ...(mcpFileSourced
1012
1103
  ? {
1013
1104
  syncMcpServers: async (servers, options) => {
1014
- const run = mcpSyncTail.then(async () => {
1015
- mcpAllowConnect = resolveMcpAllowConnect(config, options?.allowConnect);
1016
- const result = await reconcileMcpToolPlugins({
1017
- desired: mcpDraftsToSpecs(servers),
1018
- list: () => loader.list(),
1019
- register: (plugin) => {
1020
- loader.register(plugin);
1021
- if (!loadedPluginIds.includes(plugin.id)) {
1022
- loadedPluginIds = [...loadedPluginIds, plugin.id];
1023
- }
1024
- },
1025
- unregister: mcpUnregister,
1026
- retained: () => mcpDeferred.retained(),
1027
- policy,
1028
- allowConnect: mcpAllowConnect,
1029
- workspaceRoot: config.runtime.workspaceRoot,
1030
- imageAdmission: mcpImageAdmission,
1031
- ...mcpHooks,
1032
- });
1033
- logMcpReconcile(log, "reconcile", result);
1034
- refreshFacePlugins();
1035
- await invalidateAgents();
1036
- return {
1037
- failures: result.failures,
1038
- parked: result.parked,
1039
- };
1040
- });
1041
- // Keep the chain alive even if one reconcile rejects.
1042
- mcpSyncTail = run.then(() => undefined, () => undefined);
1043
- return run;
1105
+ mcpAllowConnect = resolveMcpAllowConnect(config, options?.allowConnect);
1106
+ const result = await enqueueMcpReconcile("reconcile", mcpDraftsToSpecs(servers), mcpAllowConnect);
1107
+ return {
1108
+ failures: result.failures,
1109
+ parked: result.parked,
1110
+ };
1044
1111
  },
1045
1112
  }
1046
1113
  : {}),
@@ -1126,38 +1193,6 @@ export function createHostManager() {
1126
1193
  else {
1127
1194
  log?.warn("Isolating WorkflowEngine not mounted (Cordis stub unavailable under this install)");
1128
1195
  }
1129
- // Face hydrate may migrate legacy settings.yaml mcp → host-settings after
1130
- // boot reconcile already ran with []. Remount once when file-sourced.
1131
- if (mcpFileSourced && mcpSpecs.length === 0) {
1132
- const mcpUser = faceRuntime.settingsNamespaces.ensure("mcp").user;
1133
- const drafts = Array.isArray(mcpUser.servers)
1134
- ? mcpUser.servers
1135
- : [];
1136
- const desired = mcpDraftsToSpecs(drafts);
1137
- if (desired.length > 0) {
1138
- mcpAllowConnect = resolveMcpAllowConnect(config, mcpUser.allowConnect === true);
1139
- const migrated = await reconcileMcpToolPlugins({
1140
- desired,
1141
- list: () => loader.list(),
1142
- register: (plugin) => {
1143
- loader.register(plugin);
1144
- if (!loadedPluginIds.includes(plugin.id)) {
1145
- loadedPluginIds = [...loadedPluginIds, plugin.id];
1146
- }
1147
- },
1148
- unregister: mcpUnregister,
1149
- retained: () => mcpDeferred.retained(),
1150
- policy,
1151
- allowConnect: mcpAllowConnect,
1152
- workspaceRoot: config.runtime.workspaceRoot,
1153
- imageAdmission: mcpImageAdmission,
1154
- ...mcpHooks,
1155
- });
1156
- logMcpReconcile(log, "yaml-migrate", migrated);
1157
- refreshFacePlugins();
1158
- await invalidateAgents();
1159
- }
1160
- }
1161
1196
  sessionCwdBox.get = (sessionId) => resolveSessionCwd(faceRuntime, sessionId);
1162
1197
  sessionPresetBox.get = (sessionId) => faceRuntime.sessionAgentPresets.get(sessionId);
1163
1198
  hostStatusBox.publish = (sessionId, running) => {
@@ -1188,7 +1223,8 @@ export function createHostManager() {
1188
1223
  loop.maxSteps > 0
1189
1224
  ? Math.floor(loop.maxSteps)
1190
1225
  : undefined;
1191
- const autoContinueOnMaxTokens = loop.autoContinueOnMaxTokens === true;
1226
+ // Schema default is true; treat omit as on so Settings UI "开" matches Host.
1227
+ const autoContinueOnMaxTokens = loop.autoContinueOnMaxTokens !== false;
1192
1228
  const autoContinueMaxRoundsRaw = loop.autoContinueMaxRounds;
1193
1229
  const autoContinueMaxRounds = typeof autoContinueMaxRoundsRaw === "number" &&
1194
1230
  Number.isFinite(autoContinueMaxRoundsRaw) &&
@@ -1660,6 +1696,13 @@ export function createHostManager() {
1660
1696
  lineage.parentOf = (sessionId) => faceRuntime.subagents.getByChild(sessionId)?.parentSessionId;
1661
1697
  notifyMcpOverlay = () => {
1662
1698
  refreshFacePlugins();
1699
+ if (lastMcpReconcileOverlay) {
1700
+ faceRuntime.mcpSyncOverlay = {
1701
+ connectFailures: lastMcpReconcileOverlay.connectFailures,
1702
+ parked: lastMcpReconcileOverlay.parked,
1703
+ connecting: lastMcpReconcileOverlay.connecting,
1704
+ };
1705
+ }
1663
1706
  const slot = faceRuntime.settingsNamespaces.ensure("mcp");
1664
1707
  publishRemoteEvent(faceRuntime.bus, "settings/document-updated", [
1665
1708
  "mcp",
@@ -1763,7 +1806,10 @@ export function createHostManager() {
1763
1806
  ensureSession,
1764
1807
  resolveAgent,
1765
1808
  drain,
1766
- tryHandlePublic: chainPublicHandlers(createA2aInboundPublicHandler({
1809
+ tryHandlePublic: chainPublicHandlers(
1810
+ // Desktop PTY SSE must run before createSidebarPublicHandler — the
1811
+ // sidebar JSON-RPC surface would otherwise 405 GET /sidebar/api/pty/stream.
1812
+ (req, res) => sidebarPtyHttp.handle?.(req, res) === true, createA2aInboundPublicHandler({
1767
1813
  host: config.runtime.host,
1768
1814
  port: config.runtime.port,
1769
1815
  face: faceRuntime,
@@ -1817,15 +1863,29 @@ export function createHostManager() {
1817
1863
  ? {
1818
1864
  webStatic: {
1819
1865
  root: config.runtime.webDist,
1820
- ...(webOverlay ? { extraRoots: [webOverlay] } : {}),
1821
- transformIndex: (html) => injectMobileAccessShellIntoHtml(injectBootIntoHtml(html, boot)),
1866
+ // Live array: refreshFaceWebPlugins mutates after first client install.
1867
+ extraRoots: liveExtraRoots,
1868
+ transformIndex: (html) => injectMobileAccessShellIntoHtml(injectBootIntoHtml(html, liveBoot.current)),
1822
1869
  },
1823
1870
  }
1824
1871
  : {}),
1825
- tryHandleExtraApi: (req, res) => tryHandleFaceHttp(req, res, faceRuntime, {
1826
- apiKey: effectiveHostApiKey(faceRuntime),
1827
- checkAuth: faceCheckAuth,
1828
- }),
1872
+ tryHandleExtraApi: (req, res) => {
1873
+ // Backup if a future reorder puts SPA before public PTY (primary is
1874
+ // the tryHandlePublic head hook above).
1875
+ if (sidebarPtyHttp.handle?.(req, res) === true)
1876
+ return true;
1877
+ // Host cron read API first (`/api/cron/*`), then Face extras.
1878
+ const cronApi = createCronApiHandler({
1879
+ resolveScheduler: () => cronBox.scheduler,
1880
+ checkAuth: faceCheckAuth,
1881
+ });
1882
+ if (cronApi(req, res))
1883
+ return true;
1884
+ return tryHandleFaceHttp(req, res, faceRuntime, {
1885
+ apiKey: effectiveHostApiKey(faceRuntime),
1886
+ checkAuth: faceCheckAuth,
1887
+ });
1888
+ },
1829
1889
  attachExtras: (server) => {
1830
1890
  const face = attachFaceUpgrades(server, faceRuntime, {
1831
1891
  apiKey: effectiveHostApiKey(faceRuntime),
@@ -1837,15 +1897,22 @@ export function createHostManager() {
1837
1897
  // Sidebar interactive PTY is Host-local node-pty — not SSH. Skip when
1838
1898
  // remote so defaultCwd is never a remote POSIX path on the Host disk.
1839
1899
  const sidebarPty = sshWorld
1840
- ? { close() { } }
1900
+ ? {
1901
+ close() { },
1902
+ tryHandleHttp() {
1903
+ return false;
1904
+ },
1905
+ }
1841
1906
  : attachSidebarPtyUpgrades(server, {
1842
1907
  defaultCwd: faceRuntime.workspaceRoot,
1843
1908
  checkAuth: faceCheckAuth,
1844
1909
  agentPty: agentPtyRegistry,
1845
1910
  agentOpens: agentOpenRegistry,
1846
1911
  });
1912
+ sidebarPtyHttp.handle = (req, res) => sidebarPty.tryHandleHttp(req, res);
1847
1913
  return {
1848
1914
  close() {
1915
+ delete sidebarPtyHttp.handle;
1849
1916
  sidebarPty.close();
1850
1917
  agentPtyRegistry.disposeAll();
1851
1918
  agentOpenRegistry.dispose();
@@ -1866,6 +1933,29 @@ export function createHostManager() {
1866
1933
  else {
1867
1934
  log?.info("http stack ready (listen disabled — pipe / fetch transport)");
1868
1935
  }
1936
+ {
1937
+ // Env/config specs auto-connect after HTTP (CI/headless).
1938
+ // File-sourced Settings share Face `ensureMcpLiveIfIdle` with
1939
+ // settings.describe — Allow on remounts without Desktop restart.
1940
+ if (mcpFileSourced) {
1941
+ const mcpUser = faceRuntime.settingsNamespaces.ensure("mcp").user;
1942
+ const n = Array.isArray(mcpUser.servers) ? mcpUser.servers.length : 0;
1943
+ mcpAllowConnect = resolveMcpAllowConnect(config, mcpUser.allowConnect === true);
1944
+ if (n > 0 && !mcpAllowConnect) {
1945
+ log?.info(`mcp file-sourced ${n} deferred until Settings save (allow=off)`);
1946
+ }
1947
+ else if (n > 0) {
1948
+ log?.info(`mcp file-sourced ${n} connecting (allow already on)`);
1949
+ }
1950
+ ensureMcpLiveIfIdle(faceRuntime);
1951
+ }
1952
+ else if (mcpSpecs.length > 0) {
1953
+ void enqueueMcpReconcile("boot", mcpSpecs, mcpAllowConnect).catch((err) => {
1954
+ const message = err instanceof Error ? err.message : String(err);
1955
+ log?.warn(`mcp background connect failed: ${message}`);
1956
+ });
1957
+ }
1958
+ }
1869
1959
  let status = "running";
1870
1960
  let stopPromise;
1871
1961
  const instance = {
@@ -1897,6 +1987,7 @@ export function createHostManager() {
1897
1987
  return stopPromise;
1898
1988
  status = "stopped";
1899
1989
  stopPromise = (async () => {
1990
+ mcpClosed = true;
1900
1991
  cronBox.scheduler?.stop();
1901
1992
  policyFileWatch?.dispose();
1902
1993
  // Phase1 consolidate before agents/store go away (Hermes finalize).
@@ -1936,6 +2027,14 @@ export function createHostManager() {
1936
2027
  // Host stop must continue even if SSH ControlMaster exit fails.
1937
2028
  }
1938
2029
  }
2030
+ if (envWorld) {
2031
+ try {
2032
+ envWorld.dispose();
2033
+ }
2034
+ catch {
2035
+ // Host stop must continue even if pluggable exec world teardown fails.
2036
+ }
2037
+ }
1939
2038
  if (sharedPty) {
1940
2039
  try {
1941
2040
  await sharedPty.service.dispose();