hivehq 2.0.0

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 (883) hide show
  1. package/CHANGELOG.md +592 -0
  2. package/LICENSE +208 -0
  3. package/LICENSE.BSL +101 -0
  4. package/NOTICE +15 -0
  5. package/README.en.md +451 -0
  6. package/README.md +329 -0
  7. package/SECURITY.md +59 -0
  8. package/TRADEMARK.md +41 -0
  9. package/assets/hive-hero.png +0 -0
  10. package/assets/hive-team-view.png +0 -0
  11. package/assets/logo.png +0 -0
  12. package/assets/qq-group.jpg +0 -0
  13. package/dist/bin/team +7 -0
  14. package/dist/bin/team.cmd +3 -0
  15. package/dist/src/cli/hive-remote.d.ts +46 -0
  16. package/dist/src/cli/hive-remote.js +257 -0
  17. package/dist/src/cli/hive-update.d.ts +75 -0
  18. package/dist/src/cli/hive-update.js +215 -0
  19. package/dist/src/cli/hive.d.ts +78 -0
  20. package/dist/src/cli/hive.js +336 -0
  21. package/dist/src/cli/team.d.ts +38 -0
  22. package/dist/src/cli/team.js +762 -0
  23. package/dist/src/server/agent-command-resolver.d.ts +17 -0
  24. package/dist/src/server/agent-command-resolver.js +106 -0
  25. package/dist/src/server/agent-exit-classification.d.ts +6 -0
  26. package/dist/src/server/agent-exit-classification.js +6 -0
  27. package/dist/src/server/agent-launch-cache.d.ts +20 -0
  28. package/dist/src/server/agent-launch-cache.js +75 -0
  29. package/dist/src/server/agent-launch-resolver.d.ts +4 -0
  30. package/dist/src/server/agent-launch-resolver.js +38 -0
  31. package/dist/src/server/agent-manager-support.d.ts +36 -0
  32. package/dist/src/server/agent-manager-support.js +318 -0
  33. package/dist/src/server/agent-manager.d.ts +54 -0
  34. package/dist/src/server/agent-manager.js +104 -0
  35. package/dist/src/server/agent-run-bootstrap.d.ts +83 -0
  36. package/dist/src/server/agent-run-bootstrap.js +101 -0
  37. package/dist/src/server/agent-run-exit-handler.d.ts +8 -0
  38. package/dist/src/server/agent-run-exit-handler.js +32 -0
  39. package/dist/src/server/agent-run-start-context.d.ts +24 -0
  40. package/dist/src/server/agent-run-start-context.js +1 -0
  41. package/dist/src/server/agent-run-starter.d.ts +30 -0
  42. package/dist/src/server/agent-run-starter.js +155 -0
  43. package/dist/src/server/agent-run-store.d.ts +51 -0
  44. package/dist/src/server/agent-run-store.js +137 -0
  45. package/dist/src/server/agent-run-sync.d.ts +10 -0
  46. package/dist/src/server/agent-run-sync.js +32 -0
  47. package/dist/src/server/agent-runtime-active-run.d.ts +3 -0
  48. package/dist/src/server/agent-runtime-active-run.js +10 -0
  49. package/dist/src/server/agent-runtime-close.d.ts +5 -0
  50. package/dist/src/server/agent-runtime-close.js +36 -0
  51. package/dist/src/server/agent-runtime-contract.d.ts +48 -0
  52. package/dist/src/server/agent-runtime-contract.js +1 -0
  53. package/dist/src/server/agent-runtime-flow-adapter.d.ts +10 -0
  54. package/dist/src/server/agent-runtime-flow-adapter.js +14 -0
  55. package/dist/src/server/agent-runtime-list-runs.d.ts +3 -0
  56. package/dist/src/server/agent-runtime-list-runs.js +18 -0
  57. package/dist/src/server/agent-runtime-ports.d.ts +22 -0
  58. package/dist/src/server/agent-runtime-ports.js +1 -0
  59. package/dist/src/server/agent-runtime-stop-run.d.ts +4 -0
  60. package/dist/src/server/agent-runtime-stop-run.js +19 -0
  61. package/dist/src/server/agent-runtime-types.d.ts +5 -0
  62. package/dist/src/server/agent-runtime-types.js +1 -0
  63. package/dist/src/server/agent-runtime.d.ts +10 -0
  64. package/dist/src/server/agent-runtime.js +143 -0
  65. package/dist/src/server/agent-session-store.d.ts +7 -0
  66. package/dist/src/server/agent-session-store.js +45 -0
  67. package/dist/src/server/agent-startup-instructions.d.ts +20 -0
  68. package/dist/src/server/agent-startup-instructions.js +36 -0
  69. package/dist/src/server/agent-stdin-dispatcher.d.ts +52 -0
  70. package/dist/src/server/agent-stdin-dispatcher.js +224 -0
  71. package/dist/src/server/agent-tokens.d.ts +15 -0
  72. package/dist/src/server/agent-tokens.js +25 -0
  73. package/dist/src/server/app-state-store.d.ts +10 -0
  74. package/dist/src/server/app-state-store.js +12 -0
  75. package/dist/src/server/app.d.ts +20 -0
  76. package/dist/src/server/app.js +211 -0
  77. package/dist/src/server/claude-command-defaults.d.ts +1 -0
  78. package/dist/src/server/claude-command-defaults.js +5 -0
  79. package/dist/src/server/claude-session-coordinator.d.ts +10 -0
  80. package/dist/src/server/claude-session-coordinator.js +68 -0
  81. package/dist/src/server/claude-session-support.d.ts +1 -0
  82. package/dist/src/server/claude-session-support.js +1 -0
  83. package/dist/src/server/command-preset-defaults.d.ts +11 -0
  84. package/dist/src/server/command-preset-defaults.js +63 -0
  85. package/dist/src/server/command-preset-store.d.ts +49 -0
  86. package/dist/src/server/command-preset-store.js +83 -0
  87. package/dist/src/server/cron-util.d.ts +7 -0
  88. package/dist/src/server/cron-util.js +19 -0
  89. package/dist/src/server/dispatch-ledger-serializer.d.ts +15 -0
  90. package/dist/src/server/dispatch-ledger-serializer.js +14 -0
  91. package/dist/src/server/dispatch-ledger-store.d.ts +108 -0
  92. package/dist/src/server/dispatch-ledger-store.js +241 -0
  93. package/dist/src/server/env-sync-message.d.ts +9 -0
  94. package/dist/src/server/env-sync-message.js +29 -0
  95. package/dist/src/server/feature-flags.d.ts +42 -0
  96. package/dist/src/server/feature-flags.js +24 -0
  97. package/dist/src/server/fs-browse.d.ts +40 -0
  98. package/dist/src/server/fs-browse.js +306 -0
  99. package/dist/src/server/fs-pick-folder.d.ts +25 -0
  100. package/dist/src/server/fs-pick-folder.js +115 -0
  101. package/dist/src/server/fs-sandbox.d.ts +15 -0
  102. package/dist/src/server/fs-sandbox.js +56 -0
  103. package/dist/src/server/hive-team-guidance.d.ts +39 -0
  104. package/dist/src/server/hive-team-guidance.js +295 -0
  105. package/dist/src/server/http-errors.d.ts +22 -0
  106. package/dist/src/server/http-errors.js +44 -0
  107. package/dist/src/server/live-run-registry.d.ts +22 -0
  108. package/dist/src/server/live-run-registry.js +52 -0
  109. package/dist/src/server/local-request-guard.d.ts +3 -0
  110. package/dist/src/server/local-request-guard.js +41 -0
  111. package/dist/src/server/machine-name.d.ts +2 -0
  112. package/dist/src/server/machine-name.js +13 -0
  113. package/dist/src/server/marketplace-store.d.ts +38 -0
  114. package/dist/src/server/marketplace-store.js +85 -0
  115. package/dist/src/server/message-log-store.d.ts +51 -0
  116. package/dist/src/server/message-log-store.js +90 -0
  117. package/dist/src/server/open-target-commands.d.ts +54 -0
  118. package/dist/src/server/open-target-commands.js +204 -0
  119. package/dist/src/server/orchestrator-autostart.d.ts +42 -0
  120. package/dist/src/server/orchestrator-autostart.js +114 -0
  121. package/dist/src/server/orchestrator-launch.d.ts +24 -0
  122. package/dist/src/server/orchestrator-launch.js +71 -0
  123. package/dist/src/server/package-version.d.ts +17 -0
  124. package/dist/src/server/package-version.js +32 -0
  125. package/dist/src/server/path-canonicalization.d.ts +3 -0
  126. package/dist/src/server/path-canonicalization.js +29 -0
  127. package/dist/src/server/platform-path.d.ts +4 -0
  128. package/dist/src/server/platform-path.js +26 -0
  129. package/dist/src/server/post-start-input-writer.d.ts +6 -0
  130. package/dist/src/server/post-start-input-writer.js +242 -0
  131. package/dist/src/server/preset-launch-support.d.ts +6 -0
  132. package/dist/src/server/preset-launch-support.js +98 -0
  133. package/dist/src/server/pty-output-bus.d.ts +8 -0
  134. package/dist/src/server/pty-output-bus.js +32 -0
  135. package/dist/src/server/recovery-summary.d.ts +15 -0
  136. package/dist/src/server/recovery-summary.js +92 -0
  137. package/dist/src/server/remote-audit-store.d.ts +51 -0
  138. package/dist/src/server/remote-audit-store.js +108 -0
  139. package/dist/src/server/remote-config-keys.d.ts +17 -0
  140. package/dist/src/server/remote-config-keys.js +27 -0
  141. package/dist/src/server/remote-control-constants.d.ts +30 -0
  142. package/dist/src/server/remote-control-constants.js +29 -0
  143. package/dist/src/server/remote-device-session.d.ts +40 -0
  144. package/dist/src/server/remote-device-session.js +22 -0
  145. package/dist/src/server/remote-device-store.d.ts +36 -0
  146. package/dist/src/server/remote-device-store.js +67 -0
  147. package/dist/src/server/remote-frame-bridge.d.ts +102 -0
  148. package/dist/src/server/remote-frame-bridge.js +791 -0
  149. package/dist/src/server/remote-gateway-client.d.ts +14 -0
  150. package/dist/src/server/remote-gateway-client.js +36 -0
  151. package/dist/src/server/remote-loopback-auth.d.ts +6 -0
  152. package/dist/src/server/remote-loopback-auth.js +112 -0
  153. package/dist/src/server/remote-pairing-tunnel.d.ts +59 -0
  154. package/dist/src/server/remote-pairing-tunnel.js +146 -0
  155. package/dist/src/server/remote-pairing.d.ts +58 -0
  156. package/dist/src/server/remote-pairing.js +237 -0
  157. package/dist/src/server/remote-tunnel.d.ts +113 -0
  158. package/dist/src/server/remote-tunnel.js +514 -0
  159. package/dist/src/server/report-outbox-store.d.ts +36 -0
  160. package/dist/src/server/report-outbox-store.js +33 -0
  161. package/dist/src/server/restart-policy-support.d.ts +30 -0
  162. package/dist/src/server/restart-policy-support.js +21 -0
  163. package/dist/src/server/restart-policy.d.ts +18 -0
  164. package/dist/src/server/restart-policy.js +77 -0
  165. package/dist/src/server/role-template-store.d.ts +45 -0
  166. package/dist/src/server/role-template-store.js +76 -0
  167. package/dist/src/server/role-templates.d.ts +7 -0
  168. package/dist/src/server/role-templates.js +54 -0
  169. package/dist/src/server/route-helpers.d.ts +9 -0
  170. package/dist/src/server/route-helpers.js +61 -0
  171. package/dist/src/server/route-types.d.ts +121 -0
  172. package/dist/src/server/route-types.js +1 -0
  173. package/dist/src/server/routes-dispatches.d.ts +2 -0
  174. package/dist/src/server/routes-dispatches.js +54 -0
  175. package/dist/src/server/routes-fs.d.ts +2 -0
  176. package/dist/src/server/routes-fs.js +24 -0
  177. package/dist/src/server/routes-marketplace.d.ts +2 -0
  178. package/dist/src/server/routes-marketplace.js +54 -0
  179. package/dist/src/server/routes-open-workspace.d.ts +2 -0
  180. package/dist/src/server/routes-open-workspace.js +47 -0
  181. package/dist/src/server/routes-remote.d.ts +2 -0
  182. package/dist/src/server/routes-remote.js +166 -0
  183. package/dist/src/server/routes-runtime.d.ts +2 -0
  184. package/dist/src/server/routes-runtime.js +79 -0
  185. package/dist/src/server/routes-settings.d.ts +2 -0
  186. package/dist/src/server/routes-settings.js +213 -0
  187. package/dist/src/server/routes-tasks.d.ts +2 -0
  188. package/dist/src/server/routes-tasks.js +47 -0
  189. package/dist/src/server/routes-team-memory.d.ts +2 -0
  190. package/dist/src/server/routes-team-memory.js +154 -0
  191. package/dist/src/server/routes-team-recall.d.ts +2 -0
  192. package/dist/src/server/routes-team-recall.js +119 -0
  193. package/dist/src/server/routes-team.d.ts +2 -0
  194. package/dist/src/server/routes-team.js +351 -0
  195. package/dist/src/server/routes-ui.d.ts +2 -0
  196. package/dist/src/server/routes-ui.js +17 -0
  197. package/dist/src/server/routes-version.d.ts +2 -0
  198. package/dist/src/server/routes-version.js +6 -0
  199. package/dist/src/server/routes-workflow-schedules.d.ts +2 -0
  200. package/dist/src/server/routes-workflow-schedules.js +58 -0
  201. package/dist/src/server/routes-workflows.d.ts +2 -0
  202. package/dist/src/server/routes-workflows.js +83 -0
  203. package/dist/src/server/routes-workspace-memory-dreams.d.ts +2 -0
  204. package/dist/src/server/routes-workspace-memory-dreams.js +105 -0
  205. package/dist/src/server/routes-workspace-memory.d.ts +2 -0
  206. package/dist/src/server/routes-workspace-memory.js +215 -0
  207. package/dist/src/server/routes-workspaces.d.ts +2 -0
  208. package/dist/src/server/routes-workspaces.js +177 -0
  209. package/dist/src/server/routes.d.ts +6 -0
  210. package/dist/src/server/routes.js +55 -0
  211. package/dist/src/server/runtime-database.d.ts +3 -0
  212. package/dist/src/server/runtime-database.js +41 -0
  213. package/dist/src/server/runtime-message-builders.d.ts +7 -0
  214. package/dist/src/server/runtime-message-builders.js +60 -0
  215. package/dist/src/server/runtime-restart-policy.d.ts +18 -0
  216. package/dist/src/server/runtime-restart-policy.js +12 -0
  217. package/dist/src/server/runtime-store-contract.d.ts +162 -0
  218. package/dist/src/server/runtime-store-contract.js +1 -0
  219. package/dist/src/server/runtime-store-dream.d.ts +23 -0
  220. package/dist/src/server/runtime-store-dream.js +16 -0
  221. package/dist/src/server/runtime-store-helpers.d.ts +115 -0
  222. package/dist/src/server/runtime-store-helpers.js +411 -0
  223. package/dist/src/server/runtime-store-memory.d.ts +33 -0
  224. package/dist/src/server/runtime-store-memory.js +37 -0
  225. package/dist/src/server/runtime-store-remote.d.ts +5 -0
  226. package/dist/src/server/runtime-store-remote.js +45 -0
  227. package/dist/src/server/runtime-store-workflows.d.ts +6 -0
  228. package/dist/src/server/runtime-store-workflows.js +108 -0
  229. package/dist/src/server/runtime-store.d.ts +4 -0
  230. package/dist/src/server/runtime-store.js +165 -0
  231. package/dist/src/server/session-capture-claude.d.ts +34 -0
  232. package/dist/src/server/session-capture-claude.js +103 -0
  233. package/dist/src/server/session-capture-codex.d.ts +6 -0
  234. package/dist/src/server/session-capture-codex.js +108 -0
  235. package/dist/src/server/session-capture-gemini.d.ts +5 -0
  236. package/dist/src/server/session-capture-gemini.js +81 -0
  237. package/dist/src/server/session-capture-opencode.d.ts +22 -0
  238. package/dist/src/server/session-capture-opencode.js +75 -0
  239. package/dist/src/server/session-capture.d.ts +77 -0
  240. package/dist/src/server/session-capture.js +123 -0
  241. package/dist/src/server/settings-store.d.ts +22 -0
  242. package/dist/src/server/settings-store.js +22 -0
  243. package/dist/src/server/sqlite-schema-v10.d.ts +2 -0
  244. package/dist/src/server/sqlite-schema-v10.js +13 -0
  245. package/dist/src/server/sqlite-schema-v11.d.ts +2 -0
  246. package/dist/src/server/sqlite-schema-v11.js +10 -0
  247. package/dist/src/server/sqlite-schema-v12.d.ts +2 -0
  248. package/dist/src/server/sqlite-schema-v12.js +21 -0
  249. package/dist/src/server/sqlite-schema-v13.d.ts +2 -0
  250. package/dist/src/server/sqlite-schema-v13.js +4 -0
  251. package/dist/src/server/sqlite-schema-v14.d.ts +2 -0
  252. package/dist/src/server/sqlite-schema-v14.js +84 -0
  253. package/dist/src/server/sqlite-schema-v15.d.ts +2 -0
  254. package/dist/src/server/sqlite-schema-v15.js +73 -0
  255. package/dist/src/server/sqlite-schema-v16.d.ts +2 -0
  256. package/dist/src/server/sqlite-schema-v16.js +6 -0
  257. package/dist/src/server/sqlite-schema-v17.d.ts +2 -0
  258. package/dist/src/server/sqlite-schema-v17.js +15 -0
  259. package/dist/src/server/sqlite-schema-v18.d.ts +2 -0
  260. package/dist/src/server/sqlite-schema-v18.js +6 -0
  261. package/dist/src/server/sqlite-schema-v19.d.ts +2 -0
  262. package/dist/src/server/sqlite-schema-v19.js +17 -0
  263. package/dist/src/server/sqlite-schema-v20.d.ts +2 -0
  264. package/dist/src/server/sqlite-schema-v20.js +20 -0
  265. package/dist/src/server/sqlite-schema-v21.d.ts +2 -0
  266. package/dist/src/server/sqlite-schema-v21.js +20 -0
  267. package/dist/src/server/sqlite-schema-v22.d.ts +2 -0
  268. package/dist/src/server/sqlite-schema-v22.js +27 -0
  269. package/dist/src/server/sqlite-schema-v23.d.ts +2 -0
  270. package/dist/src/server/sqlite-schema-v23.js +43 -0
  271. package/dist/src/server/sqlite-schema-v24.d.ts +2 -0
  272. package/dist/src/server/sqlite-schema-v24.js +34 -0
  273. package/dist/src/server/sqlite-schema-v25.d.ts +2 -0
  274. package/dist/src/server/sqlite-schema-v25.js +127 -0
  275. package/dist/src/server/sqlite-schema-v26.d.ts +2 -0
  276. package/dist/src/server/sqlite-schema-v26.js +56 -0
  277. package/dist/src/server/sqlite-schema-v27.d.ts +6 -0
  278. package/dist/src/server/sqlite-schema-v27.js +92 -0
  279. package/dist/src/server/sqlite-schema-v28.d.ts +2 -0
  280. package/dist/src/server/sqlite-schema-v28.js +19 -0
  281. package/dist/src/server/sqlite-schema-v5.d.ts +2 -0
  282. package/dist/src/server/sqlite-schema-v5.js +61 -0
  283. package/dist/src/server/sqlite-schema-v7.d.ts +2 -0
  284. package/dist/src/server/sqlite-schema-v7.js +70 -0
  285. package/dist/src/server/sqlite-schema-v8.d.ts +2 -0
  286. package/dist/src/server/sqlite-schema-v8.js +6 -0
  287. package/dist/src/server/sqlite-schema-v9.d.ts +2 -0
  288. package/dist/src/server/sqlite-schema-v9.js +6 -0
  289. package/dist/src/server/sqlite-schema.d.ts +3 -0
  290. package/dist/src/server/sqlite-schema.js +353 -0
  291. package/dist/src/server/startup-command-parser.d.ts +20 -0
  292. package/dist/src/server/startup-command-parser.js +72 -0
  293. package/dist/src/server/system-message.d.ts +8 -0
  294. package/dist/src/server/system-message.js +8 -0
  295. package/dist/src/server/task-deps.d.ts +32 -0
  296. package/dist/src/server/task-deps.js +40 -0
  297. package/dist/src/server/tasks-file-watcher.d.ts +47 -0
  298. package/dist/src/server/tasks-file-watcher.js +200 -0
  299. package/dist/src/server/tasks-file.d.ts +23 -0
  300. package/dist/src/server/tasks-file.js +101 -0
  301. package/dist/src/server/tasks-websocket-server.d.ts +8 -0
  302. package/dist/src/server/tasks-websocket-server.js +95 -0
  303. package/dist/src/server/team-authz.d.ts +13 -0
  304. package/dist/src/server/team-authz.js +53 -0
  305. package/dist/src/server/team-autostaff.d.ts +16 -0
  306. package/dist/src/server/team-autostaff.js +16 -0
  307. package/dist/src/server/team-list-enrichment.d.ts +22 -0
  308. package/dist/src/server/team-list-enrichment.js +40 -0
  309. package/dist/src/server/team-list-serializer.d.ts +2 -0
  310. package/dist/src/server/team-list-serializer.js +11 -0
  311. package/dist/src/server/team-memory-digest.d.ts +52 -0
  312. package/dist/src/server/team-memory-digest.js +200 -0
  313. package/dist/src/server/team-memory-dream-applier.d.ts +5 -0
  314. package/dist/src/server/team-memory-dream-applier.js +234 -0
  315. package/dist/src/server/team-memory-dream-http-serializers.d.ts +13 -0
  316. package/dist/src/server/team-memory-dream-http-serializers.js +12 -0
  317. package/dist/src/server/team-memory-dream-ops.d.ts +40 -0
  318. package/dist/src/server/team-memory-dream-ops.js +153 -0
  319. package/dist/src/server/team-memory-dream-reverter.d.ts +22 -0
  320. package/dist/src/server/team-memory-dream-reverter.js +221 -0
  321. package/dist/src/server/team-memory-dream-run-store.d.ts +23 -0
  322. package/dist/src/server/team-memory-dream-run-store.js +211 -0
  323. package/dist/src/server/team-memory-dream-runner.d.ts +37 -0
  324. package/dist/src/server/team-memory-dream-runner.js +178 -0
  325. package/dist/src/server/team-memory-dream-scheduler.d.ts +32 -0
  326. package/dist/src/server/team-memory-dream-scheduler.js +115 -0
  327. package/dist/src/server/team-memory-dream-store.d.ts +19 -0
  328. package/dist/src/server/team-memory-dream-store.js +16 -0
  329. package/dist/src/server/team-memory-dream-types.d.ts +104 -0
  330. package/dist/src/server/team-memory-dream-types.js +23 -0
  331. package/dist/src/server/team-memory-export.d.ts +22 -0
  332. package/dist/src/server/team-memory-export.js +220 -0
  333. package/dist/src/server/team-memory-feature.d.ts +12 -0
  334. package/dist/src/server/team-memory-feature.js +12 -0
  335. package/dist/src/server/team-memory-http-serializers.d.ts +102 -0
  336. package/dist/src/server/team-memory-http-serializers.js +46 -0
  337. package/dist/src/server/team-memory-injection.d.ts +31 -0
  338. package/dist/src/server/team-memory-injection.js +49 -0
  339. package/dist/src/server/team-memory-store.d.ts +116 -0
  340. package/dist/src/server/team-memory-store.js +513 -0
  341. package/dist/src/server/team-operations.d.ts +102 -0
  342. package/dist/src/server/team-operations.js +387 -0
  343. package/dist/src/server/team-recall-store.d.ts +38 -0
  344. package/dist/src/server/team-recall-store.js +205 -0
  345. package/dist/src/server/terminal-flow-control.d.ts +19 -0
  346. package/dist/src/server/terminal-flow-control.js +116 -0
  347. package/dist/src/server/terminal-input-profile.d.ts +10 -0
  348. package/dist/src/server/terminal-input-profile.js +9 -0
  349. package/dist/src/server/terminal-protocol.d.ts +29 -0
  350. package/dist/src/server/terminal-protocol.js +47 -0
  351. package/dist/src/server/terminal-state-mirror.d.ts +21 -0
  352. package/dist/src/server/terminal-state-mirror.js +67 -0
  353. package/dist/src/server/terminal-stream-hub.d.ts +9 -0
  354. package/dist/src/server/terminal-stream-hub.js +192 -0
  355. package/dist/src/server/terminal-ws-server.d.ts +6 -0
  356. package/dist/src/server/terminal-ws-server.js +115 -0
  357. package/dist/src/server/ui-auth-helpers.d.ts +4 -0
  358. package/dist/src/server/ui-auth-helpers.js +28 -0
  359. package/dist/src/server/ui-auth.d.ts +8 -0
  360. package/dist/src/server/ui-auth.js +32 -0
  361. package/dist/src/server/version-service.d.ts +16 -0
  362. package/dist/src/server/version-service.js +72 -0
  363. package/dist/src/server/webhook-notifier.d.ts +34 -0
  364. package/dist/src/server/webhook-notifier.js +47 -0
  365. package/dist/src/server/websocket-upgrade-safety.d.ts +10 -0
  366. package/dist/src/server/websocket-upgrade-safety.js +35 -0
  367. package/dist/src/server/windows-command-line.d.ts +3 -0
  368. package/dist/src/server/windows-command-line.js +9 -0
  369. package/dist/src/server/windows-filename.d.ts +2 -0
  370. package/dist/src/server/windows-filename.js +33 -0
  371. package/dist/src/server/worker-output-tracker.d.ts +14 -0
  372. package/dist/src/server/worker-output-tracker.js +50 -0
  373. package/dist/src/server/workflow-cli-policy.d.ts +60 -0
  374. package/dist/src/server/workflow-cli-policy.js +110 -0
  375. package/dist/src/server/workflow-dispatch-awaiter.d.ts +12 -0
  376. package/dist/src/server/workflow-dispatch-awaiter.js +80 -0
  377. package/dist/src/server/workflow-feature.d.ts +15 -0
  378. package/dist/src/server/workflow-feature.js +15 -0
  379. package/dist/src/server/workflow-http-serializers.d.ts +64 -0
  380. package/dist/src/server/workflow-http-serializers.js +58 -0
  381. package/dist/src/server/workflow-output-schema.d.ts +18 -0
  382. package/dist/src/server/workflow-output-schema.js +41 -0
  383. package/dist/src/server/workflow-run-log-store.d.ts +19 -0
  384. package/dist/src/server/workflow-run-log-store.js +45 -0
  385. package/dist/src/server/workflow-run-store.d.ts +50 -0
  386. package/dist/src/server/workflow-run-store.js +103 -0
  387. package/dist/src/server/workflow-runner.d.ts +147 -0
  388. package/dist/src/server/workflow-runner.js +411 -0
  389. package/dist/src/server/workflow-schedule-create.d.ts +14 -0
  390. package/dist/src/server/workflow-schedule-create.js +41 -0
  391. package/dist/src/server/workflow-schedule-store.d.ts +43 -0
  392. package/dist/src/server/workflow-schedule-store.js +112 -0
  393. package/dist/src/server/workflow-scheduler.d.ts +36 -0
  394. package/dist/src/server/workflow-scheduler.js +97 -0
  395. package/dist/src/server/workflow-script-loader.d.ts +34 -0
  396. package/dist/src/server/workflow-script-loader.js +106 -0
  397. package/dist/src/server/workspace-path-validation.d.ts +1 -0
  398. package/dist/src/server/workspace-path-validation.js +42 -0
  399. package/dist/src/server/workspace-shell-runtime.d.ts +35 -0
  400. package/dist/src/server/workspace-shell-runtime.js +228 -0
  401. package/dist/src/server/workspace-store-contract.d.ts +32 -0
  402. package/dist/src/server/workspace-store-contract.js +1 -0
  403. package/dist/src/server/workspace-store-hydration.d.ts +5 -0
  404. package/dist/src/server/workspace-store-hydration.js +76 -0
  405. package/dist/src/server/workspace-store-mutations.d.ts +14 -0
  406. package/dist/src/server/workspace-store-mutations.js +48 -0
  407. package/dist/src/server/workspace-store-support.d.ts +33 -0
  408. package/dist/src/server/workspace-store-support.js +36 -0
  409. package/dist/src/server/workspace-store.d.ts +5 -0
  410. package/dist/src/server/workspace-store.js +153 -0
  411. package/dist/src/shared/fs-browse.d.ts +1 -0
  412. package/dist/src/shared/fs-browse.js +1 -0
  413. package/dist/src/shared/open-targets.d.ts +20 -0
  414. package/dist/src/shared/open-targets.js +36 -0
  415. package/dist/src/shared/path-input.d.ts +12 -0
  416. package/dist/src/shared/path-input.js +22 -0
  417. package/dist/src/shared/remote-bridge-routing.d.ts +19 -0
  418. package/dist/src/shared/remote-bridge-routing.js +141 -0
  419. package/dist/src/shared/remote-crypto.d.ts +138 -0
  420. package/dist/src/shared/remote-crypto.js +427 -0
  421. package/dist/src/shared/remote-pairing-code.d.ts +7 -0
  422. package/dist/src/shared/remote-pairing-code.js +47 -0
  423. package/dist/src/shared/remote-protocol.d.ts +160 -0
  424. package/dist/src/shared/remote-protocol.js +526 -0
  425. package/dist/src/shared/team-memory.d.ts +11 -0
  426. package/dist/src/shared/team-memory.js +10 -0
  427. package/dist/src/shared/team-recall.d.ts +1 -0
  428. package/dist/src/shared/team-recall.js +1 -0
  429. package/dist/src/shared/types.d.ts +66 -0
  430. package/dist/src/shared/types.js +1 -0
  431. package/dist/vendor/marketplace/en/LICENSE +21 -0
  432. package/dist/vendor/marketplace/en/SOURCES.md +12 -0
  433. package/dist/vendor/marketplace/en/academic/academic-anthropologist.md +125 -0
  434. package/dist/vendor/marketplace/en/academic/academic-geographer.md +127 -0
  435. package/dist/vendor/marketplace/en/academic/academic-historian.md +123 -0
  436. package/dist/vendor/marketplace/en/academic/academic-narratologist.md +118 -0
  437. package/dist/vendor/marketplace/en/academic/academic-psychologist.md +118 -0
  438. package/dist/vendor/marketplace/en/design/design-brand-guardian.md +322 -0
  439. package/dist/vendor/marketplace/en/design/design-image-prompt-engineer.md +236 -0
  440. package/dist/vendor/marketplace/en/design/design-inclusive-visuals-specialist.md +71 -0
  441. package/dist/vendor/marketplace/en/design/design-ui-designer.md +383 -0
  442. package/dist/vendor/marketplace/en/design/design-ux-architect.md +469 -0
  443. package/dist/vendor/marketplace/en/design/design-ux-researcher.md +329 -0
  444. package/dist/vendor/marketplace/en/design/design-visual-storyteller.md +149 -0
  445. package/dist/vendor/marketplace/en/design/design-whimsy-injector.md +438 -0
  446. package/dist/vendor/marketplace/en/engineering/engineering-ai-data-remediation-engineer.md +211 -0
  447. package/dist/vendor/marketplace/en/engineering/engineering-ai-engineer.md +146 -0
  448. package/dist/vendor/marketplace/en/engineering/engineering-autonomous-optimization-architect.md +107 -0
  449. package/dist/vendor/marketplace/en/engineering/engineering-backend-architect.md +235 -0
  450. package/dist/vendor/marketplace/en/engineering/engineering-cms-developer.md +536 -0
  451. package/dist/vendor/marketplace/en/engineering/engineering-code-reviewer.md +76 -0
  452. package/dist/vendor/marketplace/en/engineering/engineering-codebase-onboarding-engineer.md +173 -0
  453. package/dist/vendor/marketplace/en/engineering/engineering-data-engineer.md +306 -0
  454. package/dist/vendor/marketplace/en/engineering/engineering-database-optimizer.md +176 -0
  455. package/dist/vendor/marketplace/en/engineering/engineering-devops-automator.md +376 -0
  456. package/dist/vendor/marketplace/en/engineering/engineering-email-intelligence-engineer.md +353 -0
  457. package/dist/vendor/marketplace/en/engineering/engineering-embedded-firmware-engineer.md +173 -0
  458. package/dist/vendor/marketplace/en/engineering/engineering-feishu-integration-developer.md +598 -0
  459. package/dist/vendor/marketplace/en/engineering/engineering-filament-optimization-specialist.md +283 -0
  460. package/dist/vendor/marketplace/en/engineering/engineering-frontend-developer.md +225 -0
  461. package/dist/vendor/marketplace/en/engineering/engineering-git-workflow-master.md +84 -0
  462. package/dist/vendor/marketplace/en/engineering/engineering-incident-response-commander.md +444 -0
  463. package/dist/vendor/marketplace/en/engineering/engineering-minimal-change-engineer.md +207 -0
  464. package/dist/vendor/marketplace/en/engineering/engineering-mobile-app-builder.md +493 -0
  465. package/dist/vendor/marketplace/en/engineering/engineering-rapid-prototyper.md +462 -0
  466. package/dist/vendor/marketplace/en/engineering/engineering-security-engineer.md +304 -0
  467. package/dist/vendor/marketplace/en/engineering/engineering-senior-developer.md +176 -0
  468. package/dist/vendor/marketplace/en/engineering/engineering-software-architect.md +81 -0
  469. package/dist/vendor/marketplace/en/engineering/engineering-solidity-smart-contract-engineer.md +522 -0
  470. package/dist/vendor/marketplace/en/engineering/engineering-sre.md +90 -0
  471. package/dist/vendor/marketplace/en/engineering/engineering-technical-writer.md +393 -0
  472. package/dist/vendor/marketplace/en/engineering/engineering-threat-detection-engineer.md +534 -0
  473. package/dist/vendor/marketplace/en/engineering/engineering-voice-ai-integration-engineer.md +561 -0
  474. package/dist/vendor/marketplace/en/engineering/engineering-wechat-mini-program-developer.md +350 -0
  475. package/dist/vendor/marketplace/en/finance/finance-bookkeeper-controller.md +260 -0
  476. package/dist/vendor/marketplace/en/finance/finance-financial-analyst.md +234 -0
  477. package/dist/vendor/marketplace/en/finance/finance-fpa-analyst.md +263 -0
  478. package/dist/vendor/marketplace/en/finance/finance-investment-researcher.md +272 -0
  479. package/dist/vendor/marketplace/en/finance/finance-tax-strategist.md +239 -0
  480. package/dist/vendor/marketplace/en/game-development/blender/blender-addon-engineer.md +234 -0
  481. package/dist/vendor/marketplace/en/game-development/game-audio-engineer.md +264 -0
  482. package/dist/vendor/marketplace/en/game-development/game-designer.md +167 -0
  483. package/dist/vendor/marketplace/en/game-development/godot/godot-gameplay-scripter.md +334 -0
  484. package/dist/vendor/marketplace/en/game-development/godot/godot-multiplayer-engineer.md +297 -0
  485. package/dist/vendor/marketplace/en/game-development/godot/godot-shader-developer.md +266 -0
  486. package/dist/vendor/marketplace/en/game-development/level-designer.md +208 -0
  487. package/dist/vendor/marketplace/en/game-development/narrative-designer.md +243 -0
  488. package/dist/vendor/marketplace/en/game-development/roblox-studio/roblox-avatar-creator.md +297 -0
  489. package/dist/vendor/marketplace/en/game-development/roblox-studio/roblox-experience-designer.md +305 -0
  490. package/dist/vendor/marketplace/en/game-development/roblox-studio/roblox-systems-scripter.md +325 -0
  491. package/dist/vendor/marketplace/en/game-development/technical-artist.md +229 -0
  492. package/dist/vendor/marketplace/en/game-development/unity/unity-architect.md +271 -0
  493. package/dist/vendor/marketplace/en/game-development/unity/unity-editor-tool-developer.md +310 -0
  494. package/dist/vendor/marketplace/en/game-development/unity/unity-multiplayer-engineer.md +321 -0
  495. package/dist/vendor/marketplace/en/game-development/unity/unity-shader-graph-artist.md +269 -0
  496. package/dist/vendor/marketplace/en/game-development/unreal-engine/unreal-multiplayer-architect.md +313 -0
  497. package/dist/vendor/marketplace/en/game-development/unreal-engine/unreal-systems-engineer.md +310 -0
  498. package/dist/vendor/marketplace/en/game-development/unreal-engine/unreal-technical-artist.md +256 -0
  499. package/dist/vendor/marketplace/en/game-development/unreal-engine/unreal-world-builder.md +273 -0
  500. package/dist/vendor/marketplace/en/integrations/mcp-memory/backend-architect-with-memory.md +247 -0
  501. package/dist/vendor/marketplace/en/manifest.json +1869 -0
  502. package/dist/vendor/marketplace/en/marketing/marketing-agentic-search-optimizer.md +311 -0
  503. package/dist/vendor/marketplace/en/marketing/marketing-ai-citation-strategist.md +170 -0
  504. package/dist/vendor/marketplace/en/marketing/marketing-app-store-optimizer.md +321 -0
  505. package/dist/vendor/marketplace/en/marketing/marketing-baidu-seo-specialist.md +226 -0
  506. package/dist/vendor/marketplace/en/marketing/marketing-bilibili-content-strategist.md +199 -0
  507. package/dist/vendor/marketplace/en/marketing/marketing-book-co-author.md +110 -0
  508. package/dist/vendor/marketplace/en/marketing/marketing-carousel-growth-engine.md +199 -0
  509. package/dist/vendor/marketplace/en/marketing/marketing-china-ecommerce-operator.md +283 -0
  510. package/dist/vendor/marketplace/en/marketing/marketing-china-market-localization-strategist.md +283 -0
  511. package/dist/vendor/marketplace/en/marketing/marketing-content-creator.md +54 -0
  512. package/dist/vendor/marketplace/en/marketing/marketing-cross-border-ecommerce.md +259 -0
  513. package/dist/vendor/marketplace/en/marketing/marketing-douyin-strategist.md +149 -0
  514. package/dist/vendor/marketplace/en/marketing/marketing-growth-hacker.md +54 -0
  515. package/dist/vendor/marketplace/en/marketing/marketing-instagram-curator.md +113 -0
  516. package/dist/vendor/marketplace/en/marketing/marketing-kuaishou-strategist.md +223 -0
  517. package/dist/vendor/marketplace/en/marketing/marketing-linkedin-content-creator.md +214 -0
  518. package/dist/vendor/marketplace/en/marketing/marketing-livestream-commerce-coach.md +305 -0
  519. package/dist/vendor/marketplace/en/marketing/marketing-podcast-strategist.md +277 -0
  520. package/dist/vendor/marketplace/en/marketing/marketing-private-domain-operator.md +308 -0
  521. package/dist/vendor/marketplace/en/marketing/marketing-reddit-community-builder.md +123 -0
  522. package/dist/vendor/marketplace/en/marketing/marketing-seo-specialist.md +321 -0
  523. package/dist/vendor/marketplace/en/marketing/marketing-short-video-editing-coach.md +412 -0
  524. package/dist/vendor/marketplace/en/marketing/marketing-social-media-strategist.md +125 -0
  525. package/dist/vendor/marketplace/en/marketing/marketing-tiktok-strategist.md +125 -0
  526. package/dist/vendor/marketplace/en/marketing/marketing-twitter-engager.md +126 -0
  527. package/dist/vendor/marketplace/en/marketing/marketing-video-optimization-specialist.md +119 -0
  528. package/dist/vendor/marketplace/en/marketing/marketing-wechat-official-account.md +145 -0
  529. package/dist/vendor/marketplace/en/marketing/marketing-weibo-strategist.md +240 -0
  530. package/dist/vendor/marketplace/en/marketing/marketing-xiaohongshu-specialist.md +138 -0
  531. package/dist/vendor/marketplace/en/marketing/marketing-zhihu-strategist.md +162 -0
  532. package/dist/vendor/marketplace/en/paid-media/paid-media-auditor.md +71 -0
  533. package/dist/vendor/marketplace/en/paid-media/paid-media-creative-strategist.md +71 -0
  534. package/dist/vendor/marketplace/en/paid-media/paid-media-paid-social-strategist.md +71 -0
  535. package/dist/vendor/marketplace/en/paid-media/paid-media-ppc-strategist.md +71 -0
  536. package/dist/vendor/marketplace/en/paid-media/paid-media-programmatic-buyer.md +71 -0
  537. package/dist/vendor/marketplace/en/paid-media/paid-media-search-query-analyst.md +71 -0
  538. package/dist/vendor/marketplace/en/paid-media/paid-media-tracking-specialist.md +71 -0
  539. package/dist/vendor/marketplace/en/product/product-behavioral-nudge-engine.md +80 -0
  540. package/dist/vendor/marketplace/en/product/product-feedback-synthesizer.md +119 -0
  541. package/dist/vendor/marketplace/en/product/product-manager.md +469 -0
  542. package/dist/vendor/marketplace/en/product/product-sprint-prioritizer.md +154 -0
  543. package/dist/vendor/marketplace/en/product/product-trend-researcher.md +159 -0
  544. package/dist/vendor/marketplace/en/project-management/project-management-experiment-tracker.md +198 -0
  545. package/dist/vendor/marketplace/en/project-management/project-management-jira-workflow-steward.md +230 -0
  546. package/dist/vendor/marketplace/en/project-management/project-management-project-shepherd.md +194 -0
  547. package/dist/vendor/marketplace/en/project-management/project-management-studio-operations.md +200 -0
  548. package/dist/vendor/marketplace/en/project-management/project-management-studio-producer.md +203 -0
  549. package/dist/vendor/marketplace/en/project-management/project-manager-senior.md +135 -0
  550. package/dist/vendor/marketplace/en/sales/sales-account-strategist.md +227 -0
  551. package/dist/vendor/marketplace/en/sales/sales-coach.md +271 -0
  552. package/dist/vendor/marketplace/en/sales/sales-deal-strategist.md +180 -0
  553. package/dist/vendor/marketplace/en/sales/sales-discovery-coach.md +225 -0
  554. package/dist/vendor/marketplace/en/sales/sales-engineer.md +182 -0
  555. package/dist/vendor/marketplace/en/sales/sales-outbound-strategist.md +201 -0
  556. package/dist/vendor/marketplace/en/sales/sales-pipeline-analyst.md +267 -0
  557. package/dist/vendor/marketplace/en/sales/sales-proposal-strategist.md +217 -0
  558. package/dist/vendor/marketplace/en/spatial-computing/macos-spatial-metal-engineer.md +337 -0
  559. package/dist/vendor/marketplace/en/spatial-computing/terminal-integration-specialist.md +70 -0
  560. package/dist/vendor/marketplace/en/spatial-computing/visionos-spatial-engineer.md +54 -0
  561. package/dist/vendor/marketplace/en/spatial-computing/xr-cockpit-interaction-specialist.md +32 -0
  562. package/dist/vendor/marketplace/en/spatial-computing/xr-immersive-developer.md +32 -0
  563. package/dist/vendor/marketplace/en/spatial-computing/xr-interface-architect.md +32 -0
  564. package/dist/vendor/marketplace/en/specialized/accounts-payable-agent.md +185 -0
  565. package/dist/vendor/marketplace/en/specialized/agentic-identity-trust.md +387 -0
  566. package/dist/vendor/marketplace/en/specialized/agents-orchestrator.md +367 -0
  567. package/dist/vendor/marketplace/en/specialized/automation-governance-architect.md +216 -0
  568. package/dist/vendor/marketplace/en/specialized/blockchain-security-auditor.md +463 -0
  569. package/dist/vendor/marketplace/en/specialized/compliance-auditor.md +158 -0
  570. package/dist/vendor/marketplace/en/specialized/corporate-training-designer.md +192 -0
  571. package/dist/vendor/marketplace/en/specialized/customer-service.md +398 -0
  572. package/dist/vendor/marketplace/en/specialized/data-consolidation-agent.md +60 -0
  573. package/dist/vendor/marketplace/en/specialized/government-digital-presales-consultant.md +363 -0
  574. package/dist/vendor/marketplace/en/specialized/healthcare-customer-service.md +389 -0
  575. package/dist/vendor/marketplace/en/specialized/healthcare-marketing-compliance.md +395 -0
  576. package/dist/vendor/marketplace/en/specialized/hospitality-guest-services.md +603 -0
  577. package/dist/vendor/marketplace/en/specialized/hr-onboarding.md +451 -0
  578. package/dist/vendor/marketplace/en/specialized/identity-graph-operator.md +260 -0
  579. package/dist/vendor/marketplace/en/specialized/language-translator.md +264 -0
  580. package/dist/vendor/marketplace/en/specialized/legal-billing-time-tracking.md +569 -0
  581. package/dist/vendor/marketplace/en/specialized/legal-client-intake.md +492 -0
  582. package/dist/vendor/marketplace/en/specialized/legal-document-review.md +454 -0
  583. package/dist/vendor/marketplace/en/specialized/loan-officer-assistant.md +555 -0
  584. package/dist/vendor/marketplace/en/specialized/lsp-index-engineer.md +314 -0
  585. package/dist/vendor/marketplace/en/specialized/real-estate-buyer-seller.md +596 -0
  586. package/dist/vendor/marketplace/en/specialized/recruitment-specialist.md +509 -0
  587. package/dist/vendor/marketplace/en/specialized/report-distribution-agent.md +65 -0
  588. package/dist/vendor/marketplace/en/specialized/retail-customer-returns.md +566 -0
  589. package/dist/vendor/marketplace/en/specialized/sales-data-extraction-agent.md +67 -0
  590. package/dist/vendor/marketplace/en/specialized/sales-outreach.md +425 -0
  591. package/dist/vendor/marketplace/en/specialized/specialized-chief-of-staff.md +279 -0
  592. package/dist/vendor/marketplace/en/specialized/specialized-civil-engineer.md +356 -0
  593. package/dist/vendor/marketplace/en/specialized/specialized-cultural-intelligence-strategist.md +88 -0
  594. package/dist/vendor/marketplace/en/specialized/specialized-developer-advocate.md +317 -0
  595. package/dist/vendor/marketplace/en/specialized/specialized-document-generator.md +55 -0
  596. package/dist/vendor/marketplace/en/specialized/specialized-french-consulting-market.md +192 -0
  597. package/dist/vendor/marketplace/en/specialized/specialized-korean-business-navigator.md +216 -0
  598. package/dist/vendor/marketplace/en/specialized/specialized-mcp-builder.md +248 -0
  599. package/dist/vendor/marketplace/en/specialized/specialized-model-qa.md +488 -0
  600. package/dist/vendor/marketplace/en/specialized/specialized-salesforce-architect.md +180 -0
  601. package/dist/vendor/marketplace/en/specialized/specialized-workflow-architect.md +597 -0
  602. package/dist/vendor/marketplace/en/specialized/study-abroad-advisor.md +282 -0
  603. package/dist/vendor/marketplace/en/specialized/supply-chain-strategist.md +582 -0
  604. package/dist/vendor/marketplace/en/support/support-analytics-reporter.md +365 -0
  605. package/dist/vendor/marketplace/en/support/support-executive-summary-generator.md +212 -0
  606. package/dist/vendor/marketplace/en/support/support-finance-tracker.md +442 -0
  607. package/dist/vendor/marketplace/en/support/support-infrastructure-maintainer.md +618 -0
  608. package/dist/vendor/marketplace/en/support/support-legal-compliance-checker.md +588 -0
  609. package/dist/vendor/marketplace/en/support/support-support-responder.md +585 -0
  610. package/dist/vendor/marketplace/en/testing/testing-accessibility-auditor.md +316 -0
  611. package/dist/vendor/marketplace/en/testing/testing-api-tester.md +306 -0
  612. package/dist/vendor/marketplace/en/testing/testing-evidence-collector.md +210 -0
  613. package/dist/vendor/marketplace/en/testing/testing-performance-benchmarker.md +268 -0
  614. package/dist/vendor/marketplace/en/testing/testing-reality-checker.md +236 -0
  615. package/dist/vendor/marketplace/en/testing/testing-test-results-analyzer.md +305 -0
  616. package/dist/vendor/marketplace/en/testing/testing-tool-evaluator.md +394 -0
  617. package/dist/vendor/marketplace/en/testing/testing-workflow-optimizer.md +450 -0
  618. package/dist/vendor/marketplace/zh/LICENSE +22 -0
  619. package/dist/vendor/marketplace/zh/SOURCES.md +12 -0
  620. package/dist/vendor/marketplace/zh/academic/academic-anthropologist.md +124 -0
  621. package/dist/vendor/marketplace/zh/academic/academic-geographer.md +126 -0
  622. package/dist/vendor/marketplace/zh/academic/academic-historian.md +122 -0
  623. package/dist/vendor/marketplace/zh/academic/academic-narratologist.md +117 -0
  624. package/dist/vendor/marketplace/zh/academic/academic-psychologist.md +117 -0
  625. package/dist/vendor/marketplace/zh/academic/academic-study-planner.md +214 -0
  626. package/dist/vendor/marketplace/zh/design/design-brand-guardian.md +321 -0
  627. package/dist/vendor/marketplace/zh/design/design-image-prompt-engineer.md +255 -0
  628. package/dist/vendor/marketplace/zh/design/design-inclusive-visuals-specialist.md +177 -0
  629. package/dist/vendor/marketplace/zh/design/design-ui-designer.md +382 -0
  630. package/dist/vendor/marketplace/zh/design/design-ux-architect.md +482 -0
  631. package/dist/vendor/marketplace/zh/design/design-ux-researcher.md +328 -0
  632. package/dist/vendor/marketplace/zh/design/design-visual-storyteller.md +159 -0
  633. package/dist/vendor/marketplace/zh/design/design-whimsy-injector.md +453 -0
  634. package/dist/vendor/marketplace/zh/engineering/engineering-ai-data-remediation-engineer.md +209 -0
  635. package/dist/vendor/marketplace/zh/engineering/engineering-ai-engineer.md +161 -0
  636. package/dist/vendor/marketplace/zh/engineering/engineering-autonomous-optimization-architect.md +115 -0
  637. package/dist/vendor/marketplace/zh/engineering/engineering-backend-architect.md +234 -0
  638. package/dist/vendor/marketplace/zh/engineering/engineering-cms-developer.md +534 -0
  639. package/dist/vendor/marketplace/zh/engineering/engineering-code-reviewer.md +172 -0
  640. package/dist/vendor/marketplace/zh/engineering/engineering-codebase-onboarding-engineer.md +172 -0
  641. package/dist/vendor/marketplace/zh/engineering/engineering-data-engineer.md +324 -0
  642. package/dist/vendor/marketplace/zh/engineering/engineering-database-optimizer.md +175 -0
  643. package/dist/vendor/marketplace/zh/engineering/engineering-devops-automator.md +375 -0
  644. package/dist/vendor/marketplace/zh/engineering/engineering-dingtalk-integration-developer.md +574 -0
  645. package/dist/vendor/marketplace/zh/engineering/engineering-email-intelligence-engineer.md +349 -0
  646. package/dist/vendor/marketplace/zh/engineering/engineering-embedded-firmware-engineer.md +168 -0
  647. package/dist/vendor/marketplace/zh/engineering/engineering-embedded-linux-driver-engineer.md +255 -0
  648. package/dist/vendor/marketplace/zh/engineering/engineering-feishu-integration-developer.md +597 -0
  649. package/dist/vendor/marketplace/zh/engineering/engineering-filament-optimization-specialist.md +283 -0
  650. package/dist/vendor/marketplace/zh/engineering/engineering-fpga-digital-design-engineer.md +227 -0
  651. package/dist/vendor/marketplace/zh/engineering/engineering-frontend-developer.md +224 -0
  652. package/dist/vendor/marketplace/zh/engineering/engineering-git-workflow-master.md +220 -0
  653. package/dist/vendor/marketplace/zh/engineering/engineering-incident-response-commander.md +465 -0
  654. package/dist/vendor/marketplace/zh/engineering/engineering-iot-solution-architect.md +220 -0
  655. package/dist/vendor/marketplace/zh/engineering/engineering-mechanical-design-engineer.md +311 -0
  656. package/dist/vendor/marketplace/zh/engineering/engineering-minimal-change-engineer.md +206 -0
  657. package/dist/vendor/marketplace/zh/engineering/engineering-mobile-app-builder.md +434 -0
  658. package/dist/vendor/marketplace/zh/engineering/engineering-pc-host-engineer.md +231 -0
  659. package/dist/vendor/marketplace/zh/engineering/engineering-rapid-prototyper.md +461 -0
  660. package/dist/vendor/marketplace/zh/engineering/engineering-security-engineer.md +303 -0
  661. package/dist/vendor/marketplace/zh/engineering/engineering-senior-developer.md +177 -0
  662. package/dist/vendor/marketplace/zh/engineering/engineering-software-architect.md +200 -0
  663. package/dist/vendor/marketplace/zh/engineering/engineering-solidity-smart-contract-engineer.md +541 -0
  664. package/dist/vendor/marketplace/zh/engineering/engineering-sre.md +233 -0
  665. package/dist/vendor/marketplace/zh/engineering/engineering-technical-writer.md +409 -0
  666. package/dist/vendor/marketplace/zh/engineering/engineering-threat-detection-engineer.md +553 -0
  667. package/dist/vendor/marketplace/zh/engineering/engineering-voice-ai-integration-engineer.md +560 -0
  668. package/dist/vendor/marketplace/zh/engineering/engineering-wechat-mini-program-developer.md +288 -0
  669. package/dist/vendor/marketplace/zh/finance/finance-bookkeeper-controller.md +271 -0
  670. package/dist/vendor/marketplace/zh/finance/finance-financial-analyst.md +244 -0
  671. package/dist/vendor/marketplace/zh/finance/finance-financial-forecaster.md +213 -0
  672. package/dist/vendor/marketplace/zh/finance/finance-fpa-analyst.md +272 -0
  673. package/dist/vendor/marketplace/zh/finance/finance-fraud-detector.md +241 -0
  674. package/dist/vendor/marketplace/zh/finance/finance-investment-researcher.md +283 -0
  675. package/dist/vendor/marketplace/zh/finance/finance-invoice-manager.md +242 -0
  676. package/dist/vendor/marketplace/zh/finance/finance-tax-strategist.md +250 -0
  677. package/dist/vendor/marketplace/zh/game-development/blender/blender-addon-engineer.md +233 -0
  678. package/dist/vendor/marketplace/zh/game-development/game-audio-engineer.md +265 -0
  679. package/dist/vendor/marketplace/zh/game-development/game-designer.md +168 -0
  680. package/dist/vendor/marketplace/zh/game-development/godot/godot-gameplay-scripter.md +335 -0
  681. package/dist/vendor/marketplace/zh/game-development/godot/godot-multiplayer-engineer.md +296 -0
  682. package/dist/vendor/marketplace/zh/game-development/godot/godot-shader-developer.md +267 -0
  683. package/dist/vendor/marketplace/zh/game-development/level-designer.md +209 -0
  684. package/dist/vendor/marketplace/zh/game-development/narrative-designer.md +244 -0
  685. package/dist/vendor/marketplace/zh/game-development/roblox-studio/roblox-avatar-creator.md +298 -0
  686. package/dist/vendor/marketplace/zh/game-development/roblox-studio/roblox-experience-designer.md +306 -0
  687. package/dist/vendor/marketplace/zh/game-development/roblox-studio/roblox-systems-scripter.md +325 -0
  688. package/dist/vendor/marketplace/zh/game-development/technical-artist.md +230 -0
  689. package/dist/vendor/marketplace/zh/game-development/unity/unity-architect.md +272 -0
  690. package/dist/vendor/marketplace/zh/game-development/unity/unity-editor-tool-developer.md +300 -0
  691. package/dist/vendor/marketplace/zh/game-development/unity/unity-multiplayer-engineer.md +238 -0
  692. package/dist/vendor/marketplace/zh/game-development/unity/unity-shader-graph-artist.md +270 -0
  693. package/dist/vendor/marketplace/zh/game-development/unreal-engine/unreal-multiplayer-architect.md +314 -0
  694. package/dist/vendor/marketplace/zh/game-development/unreal-engine/unreal-systems-engineer.md +311 -0
  695. package/dist/vendor/marketplace/zh/game-development/unreal-engine/unreal-technical-artist.md +256 -0
  696. package/dist/vendor/marketplace/zh/game-development/unreal-engine/unreal-world-builder.md +274 -0
  697. package/dist/vendor/marketplace/zh/hr/hr-performance-reviewer.md +248 -0
  698. package/dist/vendor/marketplace/zh/hr/hr-recruiter.md +232 -0
  699. package/dist/vendor/marketplace/zh/legal/legal-contract-reviewer.md +240 -0
  700. package/dist/vendor/marketplace/zh/legal/legal-policy-writer.md +308 -0
  701. package/dist/vendor/marketplace/zh/manifest.json +2181 -0
  702. package/dist/vendor/marketplace/zh/marketing/marketing-agentic-search-optimizer.md +312 -0
  703. package/dist/vendor/marketplace/zh/marketing/marketing-ai-citation-strategist.md +169 -0
  704. package/dist/vendor/marketplace/zh/marketing/marketing-app-store-optimizer.md +319 -0
  705. package/dist/vendor/marketplace/zh/marketing/marketing-baidu-seo-specialist.md +220 -0
  706. package/dist/vendor/marketplace/zh/marketing/marketing-bilibili-strategist.md +194 -0
  707. package/dist/vendor/marketplace/zh/marketing/marketing-book-co-author.md +109 -0
  708. package/dist/vendor/marketplace/zh/marketing/marketing-carousel-growth-engine.md +215 -0
  709. package/dist/vendor/marketplace/zh/marketing/marketing-china-ecommerce-operator.md +277 -0
  710. package/dist/vendor/marketplace/zh/marketing/marketing-china-market-localization-strategist.md +282 -0
  711. package/dist/vendor/marketplace/zh/marketing/marketing-content-creator.md +145 -0
  712. package/dist/vendor/marketplace/zh/marketing/marketing-cross-border-ecommerce.md +260 -0
  713. package/dist/vendor/marketplace/zh/marketing/marketing-daily-news-briefing.md +303 -0
  714. package/dist/vendor/marketplace/zh/marketing/marketing-douyin-strategist.md +150 -0
  715. package/dist/vendor/marketplace/zh/marketing/marketing-ecommerce-operator.md +216 -0
  716. package/dist/vendor/marketplace/zh/marketing/marketing-growth-hacker.md +121 -0
  717. package/dist/vendor/marketplace/zh/marketing/marketing-instagram-curator.md +179 -0
  718. package/dist/vendor/marketplace/zh/marketing/marketing-knowledge-commerce-strategist.md +384 -0
  719. package/dist/vendor/marketplace/zh/marketing/marketing-kuaishou-strategist.md +182 -0
  720. package/dist/vendor/marketplace/zh/marketing/marketing-linkedin-content-creator.md +232 -0
  721. package/dist/vendor/marketplace/zh/marketing/marketing-livestream-commerce-coach.md +303 -0
  722. package/dist/vendor/marketplace/zh/marketing/marketing-podcast-strategist.md +278 -0
  723. package/dist/vendor/marketplace/zh/marketing/marketing-private-domain-operator.md +309 -0
  724. package/dist/vendor/marketplace/zh/marketing/marketing-reddit-community-builder.md +127 -0
  725. package/dist/vendor/marketplace/zh/marketing/marketing-seo-specialist.md +298 -0
  726. package/dist/vendor/marketplace/zh/marketing/marketing-short-video-editing-coach.md +413 -0
  727. package/dist/vendor/marketplace/zh/marketing/marketing-social-media-strategist.md +118 -0
  728. package/dist/vendor/marketplace/zh/marketing/marketing-tiktok-strategist.md +124 -0
  729. package/dist/vendor/marketplace/zh/marketing/marketing-twitter-engager.md +132 -0
  730. package/dist/vendor/marketplace/zh/marketing/marketing-video-optimization-specialist.md +128 -0
  731. package/dist/vendor/marketplace/zh/marketing/marketing-wechat-official-account.md +158 -0
  732. package/dist/vendor/marketplace/zh/marketing/marketing-wechat-operator.md +156 -0
  733. package/dist/vendor/marketplace/zh/marketing/marketing-weibo-strategist.md +241 -0
  734. package/dist/vendor/marketplace/zh/marketing/marketing-weixin-channels-strategist.md +297 -0
  735. package/dist/vendor/marketplace/zh/marketing/marketing-xiaohongshu-operator.md +139 -0
  736. package/dist/vendor/marketplace/zh/marketing/marketing-xiaohongshu-specialist.md +151 -0
  737. package/dist/vendor/marketplace/zh/marketing/marketing-zhihu-strategist.md +175 -0
  738. package/dist/vendor/marketplace/zh/paid-media/paid-media-auditor.md +170 -0
  739. package/dist/vendor/marketplace/zh/paid-media/paid-media-creative-strategist.md +173 -0
  740. package/dist/vendor/marketplace/zh/paid-media/paid-media-paid-social-strategist.md +180 -0
  741. package/dist/vendor/marketplace/zh/paid-media/paid-media-ppc-strategist.md +180 -0
  742. package/dist/vendor/marketplace/zh/paid-media/paid-media-programmatic-buyer.md +177 -0
  743. package/dist/vendor/marketplace/zh/paid-media/paid-media-search-query-analyst.md +182 -0
  744. package/dist/vendor/marketplace/zh/paid-media/paid-media-tracking-specialist.md +199 -0
  745. package/dist/vendor/marketplace/zh/product/product-behavioral-nudge-engine.md +246 -0
  746. package/dist/vendor/marketplace/zh/product/product-feedback-synthesizer.md +175 -0
  747. package/dist/vendor/marketplace/zh/product/product-manager.md +474 -0
  748. package/dist/vendor/marketplace/zh/product/product-sprint-prioritizer.md +133 -0
  749. package/dist/vendor/marketplace/zh/product/product-trend-researcher.md +143 -0
  750. package/dist/vendor/marketplace/zh/project-management/project-management-experiment-tracker.md +206 -0
  751. package/dist/vendor/marketplace/zh/project-management/project-management-jira-workflow-steward.md +249 -0
  752. package/dist/vendor/marketplace/zh/project-management/project-management-project-shepherd.md +202 -0
  753. package/dist/vendor/marketplace/zh/project-management/project-management-studio-operations.md +208 -0
  754. package/dist/vendor/marketplace/zh/project-management/project-management-studio-producer.md +211 -0
  755. package/dist/vendor/marketplace/zh/project-management/project-manager-senior.md +135 -0
  756. package/dist/vendor/marketplace/zh/sales/sales-account-strategist.md +243 -0
  757. package/dist/vendor/marketplace/zh/sales/sales-coach.md +291 -0
  758. package/dist/vendor/marketplace/zh/sales/sales-deal-strategist.md +204 -0
  759. package/dist/vendor/marketplace/zh/sales/sales-discovery-coach.md +230 -0
  760. package/dist/vendor/marketplace/zh/sales/sales-engineer.md +200 -0
  761. package/dist/vendor/marketplace/zh/sales/sales-outbound-strategist.md +208 -0
  762. package/dist/vendor/marketplace/zh/sales/sales-pipeline-analyst.md +284 -0
  763. package/dist/vendor/marketplace/zh/sales/sales-proposal-strategist.md +233 -0
  764. package/dist/vendor/marketplace/zh/spatial-computing/macos-spatial-metal-engineer.md +337 -0
  765. package/dist/vendor/marketplace/zh/spatial-computing/terminal-integration-specialist.md +236 -0
  766. package/dist/vendor/marketplace/zh/spatial-computing/visionos-spatial-engineer.md +282 -0
  767. package/dist/vendor/marketplace/zh/spatial-computing/xr-cockpit-interaction-specialist.md +220 -0
  768. package/dist/vendor/marketplace/zh/spatial-computing/xr-immersive-developer.md +229 -0
  769. package/dist/vendor/marketplace/zh/spatial-computing/xr-interface-architect.md +253 -0
  770. package/dist/vendor/marketplace/zh/specialized/accounts-payable-agent.md +212 -0
  771. package/dist/vendor/marketplace/zh/specialized/agentic-identity-trust.md +388 -0
  772. package/dist/vendor/marketplace/zh/specialized/agents-orchestrator.md +366 -0
  773. package/dist/vendor/marketplace/zh/specialized/automation-governance-architect.md +215 -0
  774. package/dist/vendor/marketplace/zh/specialized/blockchain-security-auditor.md +484 -0
  775. package/dist/vendor/marketplace/zh/specialized/compliance-auditor.md +172 -0
  776. package/dist/vendor/marketplace/zh/specialized/corporate-training-designer.md +191 -0
  777. package/dist/vendor/marketplace/zh/specialized/data-consolidation-agent.md +327 -0
  778. package/dist/vendor/marketplace/zh/specialized/gaokao-college-advisor.md +333 -0
  779. package/dist/vendor/marketplace/zh/specialized/government-digital-presales-consultant.md +362 -0
  780. package/dist/vendor/marketplace/zh/specialized/healthcare-customer-service.md +388 -0
  781. package/dist/vendor/marketplace/zh/specialized/healthcare-marketing-compliance.md +394 -0
  782. package/dist/vendor/marketplace/zh/specialized/hospitality-guest-services.md +597 -0
  783. package/dist/vendor/marketplace/zh/specialized/hr-onboarding.md +450 -0
  784. package/dist/vendor/marketplace/zh/specialized/identity-graph-operator.md +270 -0
  785. package/dist/vendor/marketplace/zh/specialized/language-translator.md +275 -0
  786. package/dist/vendor/marketplace/zh/specialized/legal-billing-time-tracking.md +566 -0
  787. package/dist/vendor/marketplace/zh/specialized/legal-client-intake.md +487 -0
  788. package/dist/vendor/marketplace/zh/specialized/legal-document-review.md +452 -0
  789. package/dist/vendor/marketplace/zh/specialized/livestock-archive-auditor.md +135 -0
  790. package/dist/vendor/marketplace/zh/specialized/loan-officer-assistant.md +549 -0
  791. package/dist/vendor/marketplace/zh/specialized/lsp-index-engineer.md +334 -0
  792. package/dist/vendor/marketplace/zh/specialized/prompt-engineer.md +176 -0
  793. package/dist/vendor/marketplace/zh/specialized/real-estate-buyer-seller.md +594 -0
  794. package/dist/vendor/marketplace/zh/specialized/recruitment-specialist.md +508 -0
  795. package/dist/vendor/marketplace/zh/specialized/report-distribution-agent.md +354 -0
  796. package/dist/vendor/marketplace/zh/specialized/retail-customer-returns.md +564 -0
  797. package/dist/vendor/marketplace/zh/specialized/sales-data-extraction-agent.md +159 -0
  798. package/dist/vendor/marketplace/zh/specialized/specialized-ai-policy-writer.md +217 -0
  799. package/dist/vendor/marketplace/zh/specialized/specialized-chief-of-staff.md +278 -0
  800. package/dist/vendor/marketplace/zh/specialized/specialized-civil-engineer.md +355 -0
  801. package/dist/vendor/marketplace/zh/specialized/specialized-cultural-intelligence-strategist.md +168 -0
  802. package/dist/vendor/marketplace/zh/specialized/specialized-developer-advocate.md +334 -0
  803. package/dist/vendor/marketplace/zh/specialized/specialized-document-generator.md +346 -0
  804. package/dist/vendor/marketplace/zh/specialized/specialized-french-consulting-market.md +191 -0
  805. package/dist/vendor/marketplace/zh/specialized/specialized-korean-business-navigator.md +215 -0
  806. package/dist/vendor/marketplace/zh/specialized/specialized-mcp-builder.md +351 -0
  807. package/dist/vendor/marketplace/zh/specialized/specialized-meeting-assistant.md +236 -0
  808. package/dist/vendor/marketplace/zh/specialized/specialized-model-qa.md +507 -0
  809. package/dist/vendor/marketplace/zh/specialized/specialized-pricing-optimizer.md +254 -0
  810. package/dist/vendor/marketplace/zh/specialized/specialized-risk-assessor.md +240 -0
  811. package/dist/vendor/marketplace/zh/specialized/specialized-salesforce-architect.md +179 -0
  812. package/dist/vendor/marketplace/zh/specialized/specialized-workflow-architect.md +596 -0
  813. package/dist/vendor/marketplace/zh/specialized/study-abroad-advisor.md +281 -0
  814. package/dist/vendor/marketplace/zh/specialized/technical-translator-agent.md +167 -0
  815. package/dist/vendor/marketplace/zh/specialized/zk-steward.md +228 -0
  816. package/dist/vendor/marketplace/zh/supply-chain/supply-chain-inventory-forecaster.md +212 -0
  817. package/dist/vendor/marketplace/zh/supply-chain/supply-chain-route-optimizer.md +224 -0
  818. package/dist/vendor/marketplace/zh/supply-chain/supply-chain-strategist.md +581 -0
  819. package/dist/vendor/marketplace/zh/supply-chain/supply-chain-vendor-evaluator.md +232 -0
  820. package/dist/vendor/marketplace/zh/support/support-analytics-reporter.md +364 -0
  821. package/dist/vendor/marketplace/zh/support/support-executive-summary-generator.md +217 -0
  822. package/dist/vendor/marketplace/zh/support/support-finance-tracker.md +447 -0
  823. package/dist/vendor/marketplace/zh/support/support-infrastructure-maintainer.md +623 -0
  824. package/dist/vendor/marketplace/zh/support/support-legal-compliance-checker.md +587 -0
  825. package/dist/vendor/marketplace/zh/support/support-recruitment-specialist.md +508 -0
  826. package/dist/vendor/marketplace/zh/support/support-support-responder.md +584 -0
  827. package/dist/vendor/marketplace/zh/testing/testing-accessibility-auditor.md +329 -0
  828. package/dist/vendor/marketplace/zh/testing/testing-api-tester.md +305 -0
  829. package/dist/vendor/marketplace/zh/testing/testing-embedded-qa-engineer.md +258 -0
  830. package/dist/vendor/marketplace/zh/testing/testing-evidence-collector.md +153 -0
  831. package/dist/vendor/marketplace/zh/testing/testing-performance-benchmarker.md +196 -0
  832. package/dist/vendor/marketplace/zh/testing/testing-reality-checker.md +235 -0
  833. package/dist/vendor/marketplace/zh/testing/testing-test-results-analyzer.md +313 -0
  834. package/dist/vendor/marketplace/zh/testing/testing-tool-evaluator.md +402 -0
  835. package/dist/vendor/marketplace/zh/testing/testing-workflow-optimizer.md +458 -0
  836. package/package.json +131 -0
  837. package/scripts/postinstall-native-artifacts.mjs +113 -0
  838. package/web/dist/assets/AddWorkerDialog-BU2Fn-Mx.js +2 -0
  839. package/web/dist/assets/AddWorkspaceFlow-BV04MkRt.js +1 -0
  840. package/web/dist/assets/FirstRunWizard-DS4IYOrd.js +1 -0
  841. package/web/dist/assets/MarketplaceDrawer-CIQ2B6Fx.js +76 -0
  842. package/web/dist/assets/TaskGraphDrawer-BPMcRocd.js +1 -0
  843. package/web/dist/assets/WhatsNewDialog-DEgVY_LD.js +1 -0
  844. package/web/dist/assets/WorkerModal-DiCcTPpc.js +1 -0
  845. package/web/dist/assets/WorkflowsDrawer-M2CgAJWK.js +1 -0
  846. package/web/dist/assets/WorkspaceMemoryDrawer-ClJIqWck.js +1 -0
  847. package/web/dist/assets/WorkspaceTaskDrawer-gjvXuZ2K.js +1 -0
  848. package/web/dist/assets/addon-clipboard-wHJhZAA4.js +1 -0
  849. package/web/dist/assets/addon-fit-DX4qG4td.js +1 -0
  850. package/web/dist/assets/addon-unicode11-Bt8F3D7-.js +7 -0
  851. package/web/dist/assets/addon-web-links-DIbG5aQx.js +1 -0
  852. package/web/dist/assets/addon-webgl-DCtw1yLn.js +64 -0
  853. package/web/dist/assets/finder-C4Jmsb0B.png +0 -0
  854. package/web/dist/assets/ghostty-D-Js4rdm.png +0 -0
  855. package/web/dist/assets/index-bOMtwrkA.js +73 -0
  856. package/web/dist/assets/index-i9YgsMdD.css +1 -0
  857. package/web/dist/assets/path-join-7MR1s7b1.js +1 -0
  858. package/web/dist/assets/search-CmzeVhy0.js +1 -0
  859. package/web/dist/assets/xterm-B-qIQCd3.js +16 -0
  860. package/web/dist/assets/zed-C5BQT8X3.png +0 -0
  861. package/web/dist/bilibili.ico +0 -0
  862. package/web/dist/cli-icons/claude.png +0 -0
  863. package/web/dist/cli-icons/codex.png +0 -0
  864. package/web/dist/cli-icons/gemini.png +0 -0
  865. package/web/dist/cli-icons/hermes.png +0 -0
  866. package/web/dist/cli-icons/opencode.svg +18 -0
  867. package/web/dist/icons/apple-touch-icon-180.png +0 -0
  868. package/web/dist/icons/icon-192.png +0 -0
  869. package/web/dist/icons/icon-32.png +0 -0
  870. package/web/dist/icons/icon-512-maskable.png +0 -0
  871. package/web/dist/icons/icon-512.png +0 -0
  872. package/web/dist/index.html +39 -0
  873. package/web/dist/logo.png +0 -0
  874. package/web/dist/manifest.webmanifest +60 -0
  875. package/web/dist/screenshots/wide-overview.png +0 -0
  876. package/web/dist/sounds/LICENSE-KENNEY.txt +22 -0
  877. package/web/dist/sounds/hive-beacon.ogg +0 -0
  878. package/web/dist/sounds/hive-cascade.ogg +0 -0
  879. package/web/dist/sounds/hive-chime.ogg +0 -0
  880. package/web/dist/sounds/hive-ping.ogg +0 -0
  881. package/web/dist/sounds/hive-resolve.ogg +0 -0
  882. package/web/dist/sounds/hive-soft.ogg +0 -0
  883. package/web/dist/sw.js +99 -0
@@ -0,0 +1,762 @@
1
+ import { fileURLToPath } from 'node:url';
2
+ import { sameFilesystemPath } from '../server/path-canonicalization.js';
3
+ import { isMemoryKind, MEMORY_BODY_MAX_CHARS, MEMORY_KINDS, MEMORY_QUERY_MAX_CHARS, MEMORY_SEARCH_MAX_LIMIT, MEMORY_TAG_MAX_CHARS, MEMORY_TAG_MAX_COUNT, } from '../shared/team-memory.js';
4
+ import { RECALL_QUERY_MAX_CHARS } from '../shared/team-recall.js';
5
+ const REQUIRED_ENV_KEYS = [
6
+ 'HIVE_PORT',
7
+ 'HIVE_PROJECT_ID',
8
+ 'HIVE_AGENT_ID',
9
+ 'HIVE_AGENT_TOKEN',
10
+ ];
11
+ const TEAM_USAGE = [
12
+ 'Usage:',
13
+ ' team list',
14
+ ' team next (tasks in .hive/tasks.md that are unblocked now — those whose [needs: #n] deps are all done)',
15
+ ' team recall "<query>" [--limit <n>] [--window <n>]',
16
+ ' team memory add "<body>" [--kind fact|preference|decision|pitfall|procedure_ref] [--tag <tag>]',
17
+ ' team memory show <memory-id>',
18
+ ' team memory search "<query>" [--limit <n>]',
19
+ ' team memory forget <memory-id>',
20
+ ' team send <worker-name> "<task>"',
21
+ ' team spawn <role> [--name <name>] [--cli <claude|codex|opencode|gemini|hermes>] [--ephemeral]',
22
+ ' team dismiss <worker-name>',
23
+ " team workflow run --stdin [--args '<JSON>'] (script from stdin — for multi-line scripts)",
24
+ ' team workflow run --inline "<source>" [--args \'<JSON>\']',
25
+ ' team workflow stop <run-id>',
26
+ ' team workflow show <run-id> (full per-agent transcript for one run)',
27
+ ' team workflow schedule --cron "<cron>" --name <n> --stdin (register a recurring run)',
28
+ ' team cancel --dispatch <dispatch-id> "<reason>"',
29
+ ' team report "<result>" [--dispatch <dispatch-id>] [--artifact <path>]',
30
+ ' team report --stdin [--dispatch <dispatch-id>] [--artifact <path>]',
31
+ ' team status "<current status>" [--artifact <path>]',
32
+ ' team status --stdin [--artifact <path>]',
33
+ '',
34
+ 'Flags can appear in any order. Use --stdin to pipe long bodies and avoid shell-escaping issues.',
35
+ 'The body comes from stdin — use whatever your shell supports:',
36
+ " POSIX: team report --stdin --dispatch <id> <<'EOF'",
37
+ ' ... long report ...',
38
+ ' EOF',
39
+ ' Windows cmd: type body.txt | team report --stdin --dispatch <id>',
40
+ ' PowerShell: Get-Content -Raw -Encoding utf8 body.txt | team report --stdin --dispatch <id>',
41
+ ' Portable: team report --stdin --dispatch <id> < body.txt',
42
+ '',
43
+ 'For role rules, workflow, and recovery instructions, see .hive/PROTOCOL.md',
44
+ ].join('\n');
45
+ const getHiveEnv = () => {
46
+ const values = Object.fromEntries(REQUIRED_ENV_KEYS.map((key) => [key, process.env[key]]));
47
+ if (REQUIRED_ENV_KEYS.some((key) => !values[key])) {
48
+ throw new Error('Missing required Hive environment variables');
49
+ }
50
+ return values;
51
+ };
52
+ const getBaseUrl = (env) => `http://127.0.0.1:${env.HIVE_PORT}`;
53
+ // Read `--flag value` from an argv slice; returns undefined when absent or
54
+ // when the flag is the last token with no following value.
55
+ const readFlag = (args, flag) => {
56
+ const index = args.indexOf(flag);
57
+ if (index === -1)
58
+ return undefined;
59
+ const value = args[index + 1];
60
+ return value && !value.startsWith('--') ? value : undefined;
61
+ };
62
+ const describeFetchError = (baseUrl, error) => {
63
+ const cause = error instanceof Error && error.cause instanceof Error ? ` (${error.cause.message})` : '';
64
+ const message = error instanceof Error ? error.message : String(error);
65
+ return `Failed to reach Hive runtime at ${baseUrl}: ${message}${cause}. Check HIVE_PORT and make sure the Hive runtime is still running.`;
66
+ };
67
+ const fetchRuntime = async (baseUrl, path, init) => {
68
+ try {
69
+ return await fetch(`${baseUrl}${path}`, init);
70
+ }
71
+ catch (error) {
72
+ throw new Error(describeFetchError(baseUrl, error));
73
+ }
74
+ };
75
+ const readHttpErrorDetail = async (response) => {
76
+ const text = await response.text().catch(() => '');
77
+ const trimmed = text.trim();
78
+ if (!trimmed)
79
+ return '';
80
+ try {
81
+ const body = JSON.parse(trimmed);
82
+ if (typeof body.error === 'string' && body.error.trim()) {
83
+ return body.error.trim();
84
+ }
85
+ }
86
+ catch {
87
+ // Non-JSON responses still carry useful diagnostics in their text body.
88
+ }
89
+ return trimmed;
90
+ };
91
+ const throwHttpError = async (response) => {
92
+ const detail = await readHttpErrorDetail(response);
93
+ throw new Error(detail
94
+ ? `Request failed with status ${response.status}: ${detail}`
95
+ : `Request failed with status ${response.status}`);
96
+ };
97
+ const postJson = async (baseUrl, path, body) => {
98
+ const response = await fetchRuntime(baseUrl, path, {
99
+ body: JSON.stringify(body),
100
+ headers: { 'content-type': 'application/json' },
101
+ method: 'POST',
102
+ });
103
+ if (!response.ok) {
104
+ await throwHttpError(response);
105
+ }
106
+ return response;
107
+ };
108
+ const REPORT_USAGE = 'Usage: team report (<result> | --stdin) [--dispatch <dispatch-id>] [--artifact <path>]';
109
+ const STATUS_USAGE = 'Usage: team status (<current status> | --stdin) [--artifact <path>]';
110
+ const CANCEL_USAGE = 'Usage: team cancel --dispatch <dispatch-id> <reason>';
111
+ const RECALL_USAGE = 'Usage: team recall "<query>" [--limit <n>] [--window <n>]';
112
+ const MEMORY_ADD_USAGE = 'Usage: team memory add "<body>" [--kind fact|preference|decision|pitfall|procedure_ref] [--tag <tag>]';
113
+ const MEMORY_SHOW_USAGE = 'Usage: team memory show <memory-id>';
114
+ const MEMORY_SEARCH_USAGE = 'Usage: team memory search "<query>" [--limit <n>]';
115
+ const MEMORY_FORGET_USAGE = 'Usage: team memory forget <memory-id>';
116
+ const usageFor = (command) => (command === 'status' ? STATUS_USAGE : REPORT_USAGE);
117
+ const withUsage = (message, command) => `${message}\n\n${usageFor(command)}`;
118
+ export const parseReportArgs = (args, command = 'report') => {
119
+ const positionals = [];
120
+ const artifacts = [];
121
+ let dispatchId;
122
+ let useStdin = false;
123
+ for (let index = 0; index < args.length; index += 1) {
124
+ const arg = args[index];
125
+ if (arg === undefined)
126
+ continue;
127
+ // Backward-compatible no-op: reports are interpreted from their text.
128
+ if (arg === '--success' || arg === '--failed')
129
+ continue;
130
+ if (arg === '--stdin') {
131
+ useStdin = true;
132
+ continue;
133
+ }
134
+ if (arg === '--artifact') {
135
+ const next = args[index + 1];
136
+ if (next === undefined || next.startsWith('--')) {
137
+ throw new Error(withUsage('--artifact requires a value', command));
138
+ }
139
+ artifacts.push(next);
140
+ index += 1;
141
+ continue;
142
+ }
143
+ if (arg === '--dispatch') {
144
+ if (command === 'status') {
145
+ throw new Error(withUsage('team status does not accept --dispatch; use team report for assigned work', command));
146
+ }
147
+ const next = args[index + 1];
148
+ if (next === undefined || next.startsWith('--')) {
149
+ throw new Error(withUsage('--dispatch requires a value', command));
150
+ }
151
+ dispatchId = next;
152
+ index += 1;
153
+ continue;
154
+ }
155
+ if (arg.startsWith('--')) {
156
+ throw new Error(withUsage(`Unknown argument: ${arg}`, command));
157
+ }
158
+ positionals.push(arg);
159
+ }
160
+ if (useStdin && positionals.length > 0) {
161
+ throw new Error(withUsage('--stdin is mutually exclusive with a positional argument; pass the body on stdin or as an argument, not both', command));
162
+ }
163
+ if (!useStdin && positionals.length === 0) {
164
+ const label = command === 'status' ? '<current status>' : '<result>';
165
+ throw new Error(withUsage(`Missing ${label} (or pass --stdin to read it from stdin)`, command));
166
+ }
167
+ if (positionals.length > 1) {
168
+ const label = command === 'status' ? 'status' : 'result';
169
+ throw new Error(withUsage(`Expected exactly one ${label} positional, got ${positionals.length}: ${positionals
170
+ .map((value) => JSON.stringify(value))
171
+ .join(', ')}`, command));
172
+ }
173
+ return { result: useStdin ? null : (positionals[0] ?? null), artifacts, dispatchId, useStdin };
174
+ };
175
+ export const parseCancelArgs = (args) => {
176
+ const positionals = [];
177
+ let dispatchId;
178
+ for (let index = 0; index < args.length; index += 1) {
179
+ const arg = args[index];
180
+ if (arg === undefined)
181
+ continue;
182
+ if (arg === '--dispatch') {
183
+ const next = args[index + 1];
184
+ if (next === undefined || next.startsWith('--')) {
185
+ throw new Error(`--dispatch requires a value\n\n${CANCEL_USAGE}`);
186
+ }
187
+ dispatchId = next;
188
+ index += 1;
189
+ continue;
190
+ }
191
+ if (arg.startsWith('--')) {
192
+ throw new Error(`Unknown argument: ${arg}\n\n${CANCEL_USAGE}`);
193
+ }
194
+ positionals.push(arg);
195
+ }
196
+ if (!dispatchId) {
197
+ throw new Error(`Missing --dispatch <dispatch-id>\n\n${CANCEL_USAGE}`);
198
+ }
199
+ if (positionals.length === 0) {
200
+ throw new Error(`Missing <reason>\n\n${CANCEL_USAGE}`);
201
+ }
202
+ const reason = positionals.join(' ').trim();
203
+ if (!reason) {
204
+ throw new Error(`Missing <reason>\n\n${CANCEL_USAGE}`);
205
+ }
206
+ return { dispatchId, reason };
207
+ };
208
+ const parseNonNegativeIntFlag = (value, flag) => {
209
+ if (value === undefined)
210
+ return undefined;
211
+ const parsed = Number(value);
212
+ if (!Number.isInteger(parsed) || parsed < 0) {
213
+ throw new Error(`${flag} must be a non-negative integer\n\n${RECALL_USAGE}`);
214
+ }
215
+ return parsed;
216
+ };
217
+ export const parseRecallArgs = (args) => {
218
+ const positionals = [];
219
+ let limit;
220
+ let window;
221
+ for (let index = 0; index < args.length; index += 1) {
222
+ const arg = args[index];
223
+ if (arg === undefined)
224
+ continue;
225
+ if (arg === '--limit' || arg === '--window') {
226
+ const next = args[index + 1];
227
+ if (next === undefined || next.startsWith('--')) {
228
+ throw new Error(`${arg} requires a value\n\n${RECALL_USAGE}`);
229
+ }
230
+ if (arg === '--limit')
231
+ limit = parseNonNegativeIntFlag(next, '--limit');
232
+ else
233
+ window = parseNonNegativeIntFlag(next, '--window');
234
+ index += 1;
235
+ continue;
236
+ }
237
+ if (arg.startsWith('--')) {
238
+ throw new Error(`Unknown argument: ${arg}\n\n${RECALL_USAGE}`);
239
+ }
240
+ positionals.push(arg);
241
+ }
242
+ if (positionals.length === 0) {
243
+ throw new Error(`Missing <query>\n\n${RECALL_USAGE}`);
244
+ }
245
+ const query = positionals.join(' ').trim();
246
+ if ([...query].length > RECALL_QUERY_MAX_CHARS) {
247
+ throw new Error(`query must be ${RECALL_QUERY_MAX_CHARS} characters or fewer\n\n${RECALL_USAGE}`);
248
+ }
249
+ return {
250
+ query,
251
+ ...(limit !== undefined ? { limit } : {}),
252
+ ...(window !== undefined ? { window } : {}),
253
+ };
254
+ };
255
+ export const parseMemoryAddArgs = (args) => {
256
+ const positionals = [];
257
+ const tags = [];
258
+ let kind = 'fact';
259
+ for (let index = 0; index < args.length; index += 1) {
260
+ const arg = args[index];
261
+ if (arg === undefined)
262
+ continue;
263
+ if (arg === '--kind') {
264
+ const next = args[index + 1];
265
+ if (next === undefined || next.startsWith('--')) {
266
+ throw new Error(`--kind requires a value\n\n${MEMORY_ADD_USAGE}`);
267
+ }
268
+ if (!isMemoryKind(next)) {
269
+ throw new Error(`--kind must be one of: ${MEMORY_KINDS.join(', ')}\n\n${MEMORY_ADD_USAGE}`);
270
+ }
271
+ kind = next;
272
+ index += 1;
273
+ continue;
274
+ }
275
+ if (arg === '--tag') {
276
+ const next = args[index + 1];
277
+ if (next === undefined || next.startsWith('--')) {
278
+ throw new Error(`--tag requires a value\n\n${MEMORY_ADD_USAGE}`);
279
+ }
280
+ const tag = next.trim();
281
+ if (!tag) {
282
+ throw new Error(`--tag requires a non-empty value\n\n${MEMORY_ADD_USAGE}`);
283
+ }
284
+ if ([...tag].length > MEMORY_TAG_MAX_CHARS) {
285
+ throw new Error(`--tag must be ${MEMORY_TAG_MAX_CHARS} characters or fewer\n\n${MEMORY_ADD_USAGE}`);
286
+ }
287
+ if (!tags.includes(tag))
288
+ tags.push(tag);
289
+ index += 1;
290
+ continue;
291
+ }
292
+ if (arg.startsWith('--')) {
293
+ throw new Error(`Unknown argument: ${arg}\n\n${MEMORY_ADD_USAGE}`);
294
+ }
295
+ positionals.push(arg);
296
+ }
297
+ if (tags.length > MEMORY_TAG_MAX_COUNT) {
298
+ throw new Error(`--tag may be repeated ${MEMORY_TAG_MAX_COUNT} times or fewer\n\n${MEMORY_ADD_USAGE}`);
299
+ }
300
+ if (positionals.length === 0) {
301
+ throw new Error(`Missing <body>\n\n${MEMORY_ADD_USAGE}`);
302
+ }
303
+ const body = positionals.join(' ').trim();
304
+ if (!body) {
305
+ throw new Error(`Missing <body>\n\n${MEMORY_ADD_USAGE}`);
306
+ }
307
+ if ([...body].length > MEMORY_BODY_MAX_CHARS) {
308
+ throw new Error(`body must be ${MEMORY_BODY_MAX_CHARS} characters or fewer\n\n${MEMORY_ADD_USAGE}`);
309
+ }
310
+ return { body, kind, tags };
311
+ };
312
+ export const parseMemoryShowArgs = (args) => {
313
+ if (args.length !== 1 || !args[0] || args[0].startsWith('--')) {
314
+ throw new Error(`Missing <memory-id>\n\n${MEMORY_SHOW_USAGE}`);
315
+ }
316
+ return { memoryId: args[0] };
317
+ };
318
+ export const parseMemorySearchArgs = (args) => {
319
+ const positionals = [];
320
+ let limit;
321
+ for (let index = 0; index < args.length; index += 1) {
322
+ const arg = args[index];
323
+ if (arg === undefined)
324
+ continue;
325
+ if (arg === '--limit') {
326
+ const next = args[index + 1];
327
+ if (next === undefined || next.startsWith('--')) {
328
+ throw new Error(`--limit requires a value\n\n${MEMORY_SEARCH_USAGE}`);
329
+ }
330
+ const parsed = Number(next);
331
+ if (!Number.isInteger(parsed) || parsed < 0) {
332
+ throw new Error(`--limit must be a non-negative integer\n\n${MEMORY_SEARCH_USAGE}`);
333
+ }
334
+ limit = Math.min(parsed, MEMORY_SEARCH_MAX_LIMIT);
335
+ index += 1;
336
+ continue;
337
+ }
338
+ if (arg.startsWith('--')) {
339
+ throw new Error(`Unknown argument: ${arg}\n\n${MEMORY_SEARCH_USAGE}`);
340
+ }
341
+ positionals.push(arg);
342
+ }
343
+ if (positionals.length === 0) {
344
+ throw new Error(`Missing <query>\n\n${MEMORY_SEARCH_USAGE}`);
345
+ }
346
+ const query = positionals.join(' ').trim();
347
+ if (!query) {
348
+ throw new Error(`Missing <query>\n\n${MEMORY_SEARCH_USAGE}`);
349
+ }
350
+ if ([...query].length > MEMORY_QUERY_MAX_CHARS) {
351
+ throw new Error(`query must be ${MEMORY_QUERY_MAX_CHARS} characters or fewer\n\n${MEMORY_SEARCH_USAGE}`);
352
+ }
353
+ return {
354
+ query,
355
+ ...(limit !== undefined ? { limit } : {}),
356
+ };
357
+ };
358
+ export const parseMemoryForgetArgs = (args) => {
359
+ if (args.length === 0 || !args[0] || args[0].startsWith('--')) {
360
+ throw new Error(`Missing <memory-id>\n\n${MEMORY_FORGET_USAGE}`);
361
+ }
362
+ if (args.length !== 1) {
363
+ throw new Error(`Expected exactly one <memory-id>\n\n${MEMORY_FORGET_USAGE}`);
364
+ }
365
+ return { memoryId: args[0] };
366
+ };
367
+ export const decodeStdinBuffer = (buffer) => {
368
+ if (buffer.length >= 3 && buffer[0] === 0xef && buffer[1] === 0xbb && buffer[2] === 0xbf) {
369
+ return buffer.subarray(3).toString('utf8');
370
+ }
371
+ if (buffer.length >= 2 && buffer[0] === 0xff && buffer[1] === 0xfe) {
372
+ return buffer.subarray(2).toString('utf16le');
373
+ }
374
+ if (buffer.length >= 2 && buffer[0] === 0xfe && buffer[1] === 0xff) {
375
+ const swapped = Buffer.from(buffer.subarray(2));
376
+ swapped.swap16();
377
+ return swapped.toString('utf16le');
378
+ }
379
+ return buffer.toString('utf8');
380
+ };
381
+ export const readStdinToString = async (command = 'report') => {
382
+ if (process.stdin.isTTY) {
383
+ throw new Error(withUsage('--stdin requires piped input, but stdin is a TTY. Did you forget to pipe content in?', command));
384
+ }
385
+ const chunks = [];
386
+ for await (const chunk of process.stdin) {
387
+ chunks.push(typeof chunk === 'string' ? Buffer.from(chunk) : chunk);
388
+ }
389
+ const content = decodeStdinBuffer(Buffer.concat(chunks));
390
+ if (!content.trim()) {
391
+ throw new Error(withUsage('--stdin received empty input', command));
392
+ }
393
+ return content;
394
+ };
395
+ export const runTeamCommand = async (argv) => {
396
+ const [command, ...args] = argv;
397
+ if (!command || command === 'help' || command === '--help' || command === '-h') {
398
+ console.log(TEAM_USAGE);
399
+ return;
400
+ }
401
+ if (command === 'list') {
402
+ const env = getHiveEnv();
403
+ const baseUrl = getBaseUrl(env);
404
+ const response = await fetchRuntime(baseUrl, `/api/workspaces/${env.HIVE_PROJECT_ID}/team`, {
405
+ method: 'GET',
406
+ headers: {
407
+ 'x-hive-agent-id': env.HIVE_AGENT_ID,
408
+ 'x-hive-agent-token': env.HIVE_AGENT_TOKEN,
409
+ },
410
+ });
411
+ if (!response.ok) {
412
+ await throwHttpError(response);
413
+ }
414
+ console.log(JSON.stringify(await response.json()));
415
+ return;
416
+ }
417
+ if (command === 'next') {
418
+ const env = getHiveEnv();
419
+ const baseUrl = getBaseUrl(env);
420
+ const response = await fetchRuntime(baseUrl, `/api/workspaces/${env.HIVE_PROJECT_ID}/tasks/next`, {
421
+ method: 'GET',
422
+ headers: {
423
+ 'x-hive-agent-id': env.HIVE_AGENT_ID,
424
+ 'x-hive-agent-token': env.HIVE_AGENT_TOKEN,
425
+ },
426
+ });
427
+ if (!response.ok) {
428
+ await throwHttpError(response);
429
+ }
430
+ console.log(JSON.stringify(await response.json()));
431
+ return;
432
+ }
433
+ if (command === 'recall') {
434
+ const recall = parseRecallArgs(args);
435
+ const env = getHiveEnv();
436
+ const response = await postJson(getBaseUrl(env), '/api/team/recall', {
437
+ project_id: env.HIVE_PROJECT_ID,
438
+ from_agent_id: env.HIVE_AGENT_ID,
439
+ token: env.HIVE_AGENT_TOKEN,
440
+ query: recall.query,
441
+ ...(recall.limit !== undefined ? { limit: recall.limit } : {}),
442
+ ...(recall.window !== undefined ? { window: recall.window } : {}),
443
+ });
444
+ console.log(JSON.stringify(await response.json()));
445
+ return;
446
+ }
447
+ if (command === 'memory') {
448
+ const [subcommand, ...memoryArgs] = args;
449
+ if (subcommand === 'add') {
450
+ const memory = parseMemoryAddArgs(memoryArgs);
451
+ const env = getHiveEnv();
452
+ const response = await postJson(getBaseUrl(env), '/api/team/memory/add', {
453
+ project_id: env.HIVE_PROJECT_ID,
454
+ from_agent_id: env.HIVE_AGENT_ID,
455
+ token: env.HIVE_AGENT_TOKEN,
456
+ body: memory.body,
457
+ kind: memory.kind,
458
+ tags: memory.tags,
459
+ });
460
+ console.log(JSON.stringify(await response.json()));
461
+ return;
462
+ }
463
+ if (subcommand === 'show') {
464
+ const memory = parseMemoryShowArgs(memoryArgs);
465
+ const env = getHiveEnv();
466
+ const response = await postJson(getBaseUrl(env), '/api/team/memory/show', {
467
+ project_id: env.HIVE_PROJECT_ID,
468
+ from_agent_id: env.HIVE_AGENT_ID,
469
+ token: env.HIVE_AGENT_TOKEN,
470
+ memory_id: memory.memoryId,
471
+ });
472
+ console.log(JSON.stringify(await response.json()));
473
+ return;
474
+ }
475
+ if (subcommand === 'search') {
476
+ const memory = parseMemorySearchArgs(memoryArgs);
477
+ const env = getHiveEnv();
478
+ const response = await postJson(getBaseUrl(env), '/api/team/memory/search', {
479
+ project_id: env.HIVE_PROJECT_ID,
480
+ from_agent_id: env.HIVE_AGENT_ID,
481
+ token: env.HIVE_AGENT_TOKEN,
482
+ query: memory.query,
483
+ ...(memory.limit !== undefined ? { limit: memory.limit } : {}),
484
+ });
485
+ console.log(JSON.stringify(await response.json()));
486
+ return;
487
+ }
488
+ if (subcommand === 'forget') {
489
+ const memory = parseMemoryForgetArgs(memoryArgs);
490
+ const env = getHiveEnv();
491
+ const response = await postJson(getBaseUrl(env), '/api/team/memory/forget', {
492
+ project_id: env.HIVE_PROJECT_ID,
493
+ from_agent_id: env.HIVE_AGENT_ID,
494
+ token: env.HIVE_AGENT_TOKEN,
495
+ memory_id: memory.memoryId,
496
+ });
497
+ console.log(JSON.stringify(await response.json()));
498
+ return;
499
+ }
500
+ throw new Error([
501
+ 'Usage:',
502
+ ` ${MEMORY_ADD_USAGE}`,
503
+ ` ${MEMORY_SHOW_USAGE}`,
504
+ ` ${MEMORY_SEARCH_USAGE}`,
505
+ ` ${MEMORY_FORGET_USAGE}`,
506
+ ].join('\n'));
507
+ }
508
+ if (command === 'send') {
509
+ const [workerName, ...taskParts] = args;
510
+ const task = taskParts.join(' ').trim();
511
+ if (!workerName || !task) {
512
+ throw new Error('Usage: team send <worker-name> <task>');
513
+ }
514
+ const env = getHiveEnv();
515
+ const baseUrl = getBaseUrl(env);
516
+ const response = await postJson(baseUrl, '/api/team/send', {
517
+ hive_port: env.HIVE_PORT,
518
+ project_id: env.HIVE_PROJECT_ID,
519
+ from_agent_id: env.HIVE_AGENT_ID,
520
+ token: env.HIVE_AGENT_TOKEN,
521
+ to: workerName,
522
+ text: task,
523
+ });
524
+ const payload = (await response.json());
525
+ /* When the dispatch happened to also auto-wake a stopped worker
526
+ (PTY had no active run), make the silent restart visible. Stderr
527
+ is the right channel because the JSON on stdout is the
528
+ machine-readable payload; the human-readable narration goes
529
+ beside it so it doesn't corrupt parsers. */
530
+ if (payload.restarted_worker === true) {
531
+ console.error(`Hive woke up worker "${workerName}" before dispatching.`);
532
+ }
533
+ console.log(JSON.stringify(payload));
534
+ return;
535
+ }
536
+ if (command === 'spawn') {
537
+ const role = args[0];
538
+ if (!role || role.startsWith('--')) {
539
+ throw new Error('Usage: team spawn <role> [--name <name>] [--cli <claude|codex|opencode|gemini|hermes>] [--ephemeral]\n' +
540
+ ' Default: persistent member (lives until you `team dismiss` it).\n' +
541
+ ' --ephemeral: auto-dismiss after the next dispatch report (one-shot worker).');
542
+ }
543
+ const name = readFlag(args, '--name');
544
+ const cli = readFlag(args, '--cli');
545
+ const ephemeral = args.includes('--ephemeral');
546
+ const env = getHiveEnv();
547
+ const response = await postJson(getBaseUrl(env), '/api/team/spawn', {
548
+ project_id: env.HIVE_PROJECT_ID,
549
+ from_agent_id: env.HIVE_AGENT_ID,
550
+ token: env.HIVE_AGENT_TOKEN,
551
+ role,
552
+ ...(name ? { name } : {}),
553
+ ...(cli ? { cli } : {}),
554
+ ...(ephemeral ? { ephemeral: true } : {}),
555
+ });
556
+ console.log(JSON.stringify(await response.json()));
557
+ return;
558
+ }
559
+ if (command === 'dismiss') {
560
+ const workerName = args[0];
561
+ if (!workerName || workerName.startsWith('--')) {
562
+ throw new Error('Usage: team dismiss <worker-name>');
563
+ }
564
+ const env = getHiveEnv();
565
+ const response = await postJson(getBaseUrl(env), '/api/team/dismiss', {
566
+ project_id: env.HIVE_PROJECT_ID,
567
+ from_agent_id: env.HIVE_AGENT_ID,
568
+ token: env.HIVE_AGENT_TOKEN,
569
+ name: workerName,
570
+ });
571
+ console.log(JSON.stringify(await response.json()));
572
+ return;
573
+ }
574
+ if (command === 'workflow') {
575
+ const sub = args[0];
576
+ const rest = args.slice(1);
577
+ if (sub === 'run') {
578
+ const inlineFlag = rest.indexOf('--inline');
579
+ const stdinFlag = rest.includes('--stdin');
580
+ const name = readFlag(rest, '--name');
581
+ // TIER 2 #8 — `--args '<JSON>'` makes the script's `args` global a
582
+ // real value instead of always undefined. Parses lazily so a bad
583
+ // JSON gives a clear local error before the HTTP round-trip.
584
+ const rawArgs = readFlag(rest, '--args');
585
+ let parsedArgs;
586
+ if (rawArgs !== undefined) {
587
+ try {
588
+ parsedArgs = JSON.parse(rawArgs);
589
+ }
590
+ catch (error) {
591
+ throw new Error(`Usage: team workflow run … --args '<JSON>'\n --args must be valid JSON; got: ${error instanceof Error ? error.message : String(error)}`);
592
+ }
593
+ }
594
+ let source;
595
+ if (inlineFlag !== -1) {
596
+ const literal = rest[inlineFlag + 1];
597
+ if (!literal)
598
+ throw new Error('Usage: team workflow run --inline "<script-source>"');
599
+ source = literal;
600
+ }
601
+ else if (stdinFlag) {
602
+ source = await readStdinToString('workflow run');
603
+ }
604
+ else {
605
+ throw new Error('Usage: team workflow run --stdin | team workflow run --inline "<script-source>"\n' +
606
+ ' Pass workflow source via stdin (POSIX heredoc / `type x.ts |`) or as one inline arg.\n' +
607
+ " Optional: --args '<JSON>' makes the script's `args` global a real value.");
608
+ }
609
+ const env = getHiveEnv();
610
+ const response = await postJson(getBaseUrl(env), '/api/team/workflow/run', {
611
+ project_id: env.HIVE_PROJECT_ID,
612
+ from_agent_id: env.HIVE_AGENT_ID,
613
+ token: env.HIVE_AGENT_TOKEN,
614
+ source,
615
+ ...(name ? { name } : {}),
616
+ ...(parsedArgs !== undefined ? { args: parsedArgs } : {}),
617
+ });
618
+ console.log(JSON.stringify(await response.json()));
619
+ return;
620
+ }
621
+ if (sub === 'stop') {
622
+ const runId = rest[0];
623
+ if (!runId)
624
+ throw new Error('Usage: team workflow stop <run-id>');
625
+ const env = getHiveEnv();
626
+ const response = await postJson(getBaseUrl(env), '/api/team/workflow/stop', {
627
+ project_id: env.HIVE_PROJECT_ID,
628
+ from_agent_id: env.HIVE_AGENT_ID,
629
+ token: env.HIVE_AGENT_TOKEN,
630
+ run_id: runId,
631
+ });
632
+ console.log(JSON.stringify(await response.json()));
633
+ return;
634
+ }
635
+ if (sub === 'show') {
636
+ const runId = rest[0];
637
+ if (!runId)
638
+ throw new Error('Usage: team workflow show <run-id>');
639
+ const env = getHiveEnv();
640
+ const response = await postJson(getBaseUrl(env), '/api/team/workflow/show', {
641
+ project_id: env.HIVE_PROJECT_ID,
642
+ from_agent_id: env.HIVE_AGENT_ID,
643
+ token: env.HIVE_AGENT_TOKEN,
644
+ run_id: runId,
645
+ });
646
+ console.log(JSON.stringify(await response.json()));
647
+ return;
648
+ }
649
+ if (sub === 'schedule') {
650
+ const usage = 'Usage: team workflow schedule --cron "<5-field cron>" --name <name> --stdin\n' +
651
+ ' team workflow schedule --cron "<cron>" --name <name> --inline "<source>" [--args \'<JSON>\']\n' +
652
+ ' Registers a recurring run. Source is persisted so cron can fire it with no orchestrator present.';
653
+ const inlineFlag = rest.indexOf('--inline');
654
+ const stdinFlag = rest.includes('--stdin');
655
+ const cron = readFlag(rest, '--cron');
656
+ const name = readFlag(rest, '--name');
657
+ if (!cron || !name)
658
+ throw new Error(usage);
659
+ const rawArgs = readFlag(rest, '--args');
660
+ let parsedArgs;
661
+ if (rawArgs !== undefined) {
662
+ try {
663
+ parsedArgs = JSON.parse(rawArgs);
664
+ }
665
+ catch (error) {
666
+ throw new Error(`Usage: team workflow schedule … --args '<JSON>'\n --args must be valid JSON; got: ${error instanceof Error ? error.message : String(error)}`);
667
+ }
668
+ }
669
+ let source;
670
+ if (inlineFlag !== -1) {
671
+ const literal = rest[inlineFlag + 1];
672
+ if (!literal)
673
+ throw new Error(usage);
674
+ source = literal;
675
+ }
676
+ else if (stdinFlag) {
677
+ source = await readStdinToString('workflow schedule');
678
+ }
679
+ else {
680
+ throw new Error(usage);
681
+ }
682
+ const env = getHiveEnv();
683
+ const response = await postJson(getBaseUrl(env), '/api/team/workflow/schedule', {
684
+ project_id: env.HIVE_PROJECT_ID,
685
+ from_agent_id: env.HIVE_AGENT_ID,
686
+ token: env.HIVE_AGENT_TOKEN,
687
+ source,
688
+ name,
689
+ cron,
690
+ ...(parsedArgs !== undefined ? { args: parsedArgs } : {}),
691
+ });
692
+ console.log(JSON.stringify(await response.json()));
693
+ return;
694
+ }
695
+ throw new Error('Usage:\n' +
696
+ " team workflow run --stdin [--args '<JSON>'] (read script from stdin)\n" +
697
+ ' team workflow run --inline "<source>" [--args ...] (one-arg form)\n' +
698
+ ' team workflow stop <run-id> (cancel a running workflow)\n' +
699
+ ' team workflow show <run-id> (full per-agent transcript)\n' +
700
+ ' team workflow schedule --cron "<cron>" --name <n> --stdin (register a recurring run)');
701
+ }
702
+ if (command === 'cancel') {
703
+ const cancel = parseCancelArgs(args);
704
+ const env = getHiveEnv();
705
+ const baseUrl = getBaseUrl(env);
706
+ await postJson(baseUrl, '/api/team/cancel', {
707
+ dispatch_id: cancel.dispatchId,
708
+ project_id: env.HIVE_PROJECT_ID,
709
+ from_agent_id: env.HIVE_AGENT_ID,
710
+ token: env.HIVE_AGENT_TOKEN,
711
+ reason: cancel.reason,
712
+ });
713
+ return;
714
+ }
715
+ if (command === 'status') {
716
+ const report = parseReportArgs(args, 'status');
717
+ const body = report.useStdin ? await readStdinToString('status') : (report.result ?? '');
718
+ const env = getHiveEnv();
719
+ const baseUrl = getBaseUrl(env);
720
+ const response = await postJson(baseUrl, '/api/team/status', {
721
+ project_id: env.HIVE_PROJECT_ID,
722
+ from_agent_id: env.HIVE_AGENT_ID,
723
+ token: env.HIVE_AGENT_TOKEN,
724
+ result: body,
725
+ artifacts: report.artifacts,
726
+ });
727
+ const payload = (await response.json());
728
+ if (payload.forwarded === false && payload.forward_error) {
729
+ console.error(`Hive recorded the status update, but could not deliver it to Orchestrator in real time: ${payload.forward_error}`);
730
+ }
731
+ return;
732
+ }
733
+ if (command === 'report') {
734
+ const report = parseReportArgs(args);
735
+ const body = report.useStdin ? await readStdinToString('report') : (report.result ?? '');
736
+ const env = getHiveEnv();
737
+ const baseUrl = getBaseUrl(env);
738
+ const response = await postJson(baseUrl, '/api/team/report', {
739
+ ...(report.dispatchId ? { dispatch_id: report.dispatchId } : {}),
740
+ project_id: env.HIVE_PROJECT_ID,
741
+ from_agent_id: env.HIVE_AGENT_ID,
742
+ token: env.HIVE_AGENT_TOKEN,
743
+ result: body,
744
+ artifacts: report.artifacts,
745
+ });
746
+ const payload = (await response.json());
747
+ if (payload.forwarded === false && payload.forward_error) {
748
+ console.error(`Hive recorded the report, but could not deliver it to Orchestrator in real time: ${payload.forward_error}`);
749
+ }
750
+ return;
751
+ }
752
+ throw new Error('Unsupported team command');
753
+ };
754
+ const isMainModule = process.argv[1]
755
+ ? sameFilesystemPath(fileURLToPath(import.meta.url), process.argv[1])
756
+ : false;
757
+ if (isMainModule) {
758
+ void runTeamCommand(process.argv.slice(2)).catch((error) => {
759
+ console.error(error instanceof Error ? error.message : String(error));
760
+ process.exit(1);
761
+ });
762
+ }