@tt-a1i/hive 1.3.0 → 1.4.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 (466) hide show
  1. package/CHANGELOG.md +61 -14
  2. package/README.en.md +65 -8
  3. package/README.md +49 -6
  4. package/assets/hive-team-view.png +0 -0
  5. package/dist/src/cli/hive.js +34 -8
  6. package/dist/src/cli/team.d.ts +6 -0
  7. package/dist/src/cli/team.js +48 -0
  8. package/dist/src/server/agent-launch-cache.js +25 -6
  9. package/dist/src/server/agent-manager.d.ts +2 -2
  10. package/dist/src/server/agent-runtime-contract.d.ts +3 -0
  11. package/dist/src/server/agent-runtime.js +3 -0
  12. package/dist/src/server/agent-startup-instructions.js +1 -1
  13. package/dist/src/server/agent-stdin-dispatcher.d.ts +4 -0
  14. package/dist/src/server/agent-stdin-dispatcher.js +12 -0
  15. package/dist/src/server/app.js +1 -1
  16. package/dist/src/server/dispatch-ledger-store.d.ts +22 -1
  17. package/dist/src/server/dispatch-ledger-store.js +34 -3
  18. package/dist/src/server/hive-team-guidance.js +3 -1
  19. package/dist/src/server/marketplace-store.d.ts +38 -0
  20. package/dist/src/server/marketplace-store.js +69 -0
  21. package/dist/src/server/route-types.d.ts +7 -0
  22. package/dist/src/server/routes-dispatches.js +4 -2
  23. package/dist/src/server/routes-marketplace.d.ts +2 -0
  24. package/dist/src/server/routes-marketplace.js +54 -0
  25. package/dist/src/server/routes-runtime.js +1 -0
  26. package/dist/src/server/routes-team.js +22 -0
  27. package/dist/src/server/routes.js +2 -0
  28. package/dist/src/server/runtime-store-helpers.d.ts +2 -1
  29. package/dist/src/server/runtime-store-helpers.js +14 -4
  30. package/dist/src/server/runtime-store.d.ts +5 -8
  31. package/dist/src/server/runtime-store.js +1 -0
  32. package/dist/src/server/tasks-websocket-server.d.ts +2 -1
  33. package/dist/src/server/tasks-websocket-server.js +18 -2
  34. package/dist/src/server/team-authz.d.ts +1 -1
  35. package/dist/src/server/team-authz.js +1 -1
  36. package/dist/src/server/team-operations.d.ts +16 -1
  37. package/dist/src/server/team-operations.js +28 -1
  38. package/dist/src/server/terminal-input-profile.d.ts +10 -0
  39. package/dist/src/server/terminal-input-profile.js +15 -0
  40. package/dist/src/server/terminal-stream-hub.js +10 -2
  41. package/dist/src/server/terminal-ws-server.d.ts +2 -1
  42. package/dist/src/server/terminal-ws-server.js +2 -2
  43. package/dist/src/server/workspace-shell-runtime.d.ts +2 -1
  44. package/dist/src/server/workspace-shell-runtime.js +3 -2
  45. package/dist/src/server/workspace-store-contract.d.ts +1 -0
  46. package/dist/src/server/workspace-store-mutations.d.ts +1 -0
  47. package/dist/src/server/workspace-store-mutations.js +6 -3
  48. package/dist/src/server/workspace-store.js +2 -1
  49. package/dist/vendor/marketplace/en/LICENSE +21 -0
  50. package/dist/vendor/marketplace/en/SOURCES.md +12 -0
  51. package/dist/vendor/marketplace/en/academic/academic-anthropologist.md +125 -0
  52. package/dist/vendor/marketplace/en/academic/academic-geographer.md +127 -0
  53. package/dist/vendor/marketplace/en/academic/academic-historian.md +123 -0
  54. package/dist/vendor/marketplace/en/academic/academic-narratologist.md +118 -0
  55. package/dist/vendor/marketplace/en/academic/academic-psychologist.md +118 -0
  56. package/dist/vendor/marketplace/en/design/design-brand-guardian.md +322 -0
  57. package/dist/vendor/marketplace/en/design/design-image-prompt-engineer.md +236 -0
  58. package/dist/vendor/marketplace/en/design/design-inclusive-visuals-specialist.md +71 -0
  59. package/dist/vendor/marketplace/en/design/design-ui-designer.md +383 -0
  60. package/dist/vendor/marketplace/en/design/design-ux-architect.md +469 -0
  61. package/dist/vendor/marketplace/en/design/design-ux-researcher.md +329 -0
  62. package/dist/vendor/marketplace/en/design/design-visual-storyteller.md +149 -0
  63. package/dist/vendor/marketplace/en/design/design-whimsy-injector.md +438 -0
  64. package/dist/vendor/marketplace/en/engineering/engineering-ai-data-remediation-engineer.md +211 -0
  65. package/dist/vendor/marketplace/en/engineering/engineering-ai-engineer.md +146 -0
  66. package/dist/vendor/marketplace/en/engineering/engineering-autonomous-optimization-architect.md +107 -0
  67. package/dist/vendor/marketplace/en/engineering/engineering-backend-architect.md +235 -0
  68. package/dist/vendor/marketplace/en/engineering/engineering-cms-developer.md +536 -0
  69. package/dist/vendor/marketplace/en/engineering/engineering-code-reviewer.md +76 -0
  70. package/dist/vendor/marketplace/en/engineering/engineering-codebase-onboarding-engineer.md +173 -0
  71. package/dist/vendor/marketplace/en/engineering/engineering-data-engineer.md +306 -0
  72. package/dist/vendor/marketplace/en/engineering/engineering-database-optimizer.md +176 -0
  73. package/dist/vendor/marketplace/en/engineering/engineering-devops-automator.md +376 -0
  74. package/dist/vendor/marketplace/en/engineering/engineering-email-intelligence-engineer.md +353 -0
  75. package/dist/vendor/marketplace/en/engineering/engineering-embedded-firmware-engineer.md +173 -0
  76. package/dist/vendor/marketplace/en/engineering/engineering-feishu-integration-developer.md +598 -0
  77. package/dist/vendor/marketplace/en/engineering/engineering-filament-optimization-specialist.md +283 -0
  78. package/dist/vendor/marketplace/en/engineering/engineering-frontend-developer.md +225 -0
  79. package/dist/vendor/marketplace/en/engineering/engineering-git-workflow-master.md +84 -0
  80. package/dist/vendor/marketplace/en/engineering/engineering-incident-response-commander.md +444 -0
  81. package/dist/vendor/marketplace/en/engineering/engineering-minimal-change-engineer.md +207 -0
  82. package/dist/vendor/marketplace/en/engineering/engineering-mobile-app-builder.md +493 -0
  83. package/dist/vendor/marketplace/en/engineering/engineering-rapid-prototyper.md +462 -0
  84. package/dist/vendor/marketplace/en/engineering/engineering-security-engineer.md +304 -0
  85. package/dist/vendor/marketplace/en/engineering/engineering-senior-developer.md +176 -0
  86. package/dist/vendor/marketplace/en/engineering/engineering-software-architect.md +81 -0
  87. package/dist/vendor/marketplace/en/engineering/engineering-solidity-smart-contract-engineer.md +522 -0
  88. package/dist/vendor/marketplace/en/engineering/engineering-sre.md +90 -0
  89. package/dist/vendor/marketplace/en/engineering/engineering-technical-writer.md +393 -0
  90. package/dist/vendor/marketplace/en/engineering/engineering-threat-detection-engineer.md +534 -0
  91. package/dist/vendor/marketplace/en/engineering/engineering-voice-ai-integration-engineer.md +561 -0
  92. package/dist/vendor/marketplace/en/engineering/engineering-wechat-mini-program-developer.md +350 -0
  93. package/dist/vendor/marketplace/en/finance/finance-bookkeeper-controller.md +260 -0
  94. package/dist/vendor/marketplace/en/finance/finance-financial-analyst.md +234 -0
  95. package/dist/vendor/marketplace/en/finance/finance-fpa-analyst.md +263 -0
  96. package/dist/vendor/marketplace/en/finance/finance-investment-researcher.md +272 -0
  97. package/dist/vendor/marketplace/en/finance/finance-tax-strategist.md +239 -0
  98. package/dist/vendor/marketplace/en/game-development/blender/blender-addon-engineer.md +234 -0
  99. package/dist/vendor/marketplace/en/game-development/game-audio-engineer.md +264 -0
  100. package/dist/vendor/marketplace/en/game-development/game-designer.md +167 -0
  101. package/dist/vendor/marketplace/en/game-development/godot/godot-gameplay-scripter.md +334 -0
  102. package/dist/vendor/marketplace/en/game-development/godot/godot-multiplayer-engineer.md +297 -0
  103. package/dist/vendor/marketplace/en/game-development/godot/godot-shader-developer.md +266 -0
  104. package/dist/vendor/marketplace/en/game-development/level-designer.md +208 -0
  105. package/dist/vendor/marketplace/en/game-development/narrative-designer.md +243 -0
  106. package/dist/vendor/marketplace/en/game-development/roblox-studio/roblox-avatar-creator.md +297 -0
  107. package/dist/vendor/marketplace/en/game-development/roblox-studio/roblox-experience-designer.md +305 -0
  108. package/dist/vendor/marketplace/en/game-development/roblox-studio/roblox-systems-scripter.md +325 -0
  109. package/dist/vendor/marketplace/en/game-development/technical-artist.md +229 -0
  110. package/dist/vendor/marketplace/en/game-development/unity/unity-architect.md +271 -0
  111. package/dist/vendor/marketplace/en/game-development/unity/unity-editor-tool-developer.md +310 -0
  112. package/dist/vendor/marketplace/en/game-development/unity/unity-multiplayer-engineer.md +321 -0
  113. package/dist/vendor/marketplace/en/game-development/unity/unity-shader-graph-artist.md +269 -0
  114. package/dist/vendor/marketplace/en/game-development/unreal-engine/unreal-multiplayer-architect.md +313 -0
  115. package/dist/vendor/marketplace/en/game-development/unreal-engine/unreal-systems-engineer.md +310 -0
  116. package/dist/vendor/marketplace/en/game-development/unreal-engine/unreal-technical-artist.md +256 -0
  117. package/dist/vendor/marketplace/en/game-development/unreal-engine/unreal-world-builder.md +273 -0
  118. package/dist/vendor/marketplace/en/integrations/mcp-memory/backend-architect-with-memory.md +247 -0
  119. package/dist/vendor/marketplace/en/manifest.json +1869 -0
  120. package/dist/vendor/marketplace/en/marketing/marketing-agentic-search-optimizer.md +311 -0
  121. package/dist/vendor/marketplace/en/marketing/marketing-ai-citation-strategist.md +170 -0
  122. package/dist/vendor/marketplace/en/marketing/marketing-app-store-optimizer.md +321 -0
  123. package/dist/vendor/marketplace/en/marketing/marketing-baidu-seo-specialist.md +226 -0
  124. package/dist/vendor/marketplace/en/marketing/marketing-bilibili-content-strategist.md +199 -0
  125. package/dist/vendor/marketplace/en/marketing/marketing-book-co-author.md +110 -0
  126. package/dist/vendor/marketplace/en/marketing/marketing-carousel-growth-engine.md +199 -0
  127. package/dist/vendor/marketplace/en/marketing/marketing-china-ecommerce-operator.md +283 -0
  128. package/dist/vendor/marketplace/en/marketing/marketing-china-market-localization-strategist.md +283 -0
  129. package/dist/vendor/marketplace/en/marketing/marketing-content-creator.md +54 -0
  130. package/dist/vendor/marketplace/en/marketing/marketing-cross-border-ecommerce.md +259 -0
  131. package/dist/vendor/marketplace/en/marketing/marketing-douyin-strategist.md +149 -0
  132. package/dist/vendor/marketplace/en/marketing/marketing-growth-hacker.md +54 -0
  133. package/dist/vendor/marketplace/en/marketing/marketing-instagram-curator.md +113 -0
  134. package/dist/vendor/marketplace/en/marketing/marketing-kuaishou-strategist.md +223 -0
  135. package/dist/vendor/marketplace/en/marketing/marketing-linkedin-content-creator.md +214 -0
  136. package/dist/vendor/marketplace/en/marketing/marketing-livestream-commerce-coach.md +305 -0
  137. package/dist/vendor/marketplace/en/marketing/marketing-podcast-strategist.md +277 -0
  138. package/dist/vendor/marketplace/en/marketing/marketing-private-domain-operator.md +308 -0
  139. package/dist/vendor/marketplace/en/marketing/marketing-reddit-community-builder.md +123 -0
  140. package/dist/vendor/marketplace/en/marketing/marketing-seo-specialist.md +321 -0
  141. package/dist/vendor/marketplace/en/marketing/marketing-short-video-editing-coach.md +412 -0
  142. package/dist/vendor/marketplace/en/marketing/marketing-social-media-strategist.md +125 -0
  143. package/dist/vendor/marketplace/en/marketing/marketing-tiktok-strategist.md +125 -0
  144. package/dist/vendor/marketplace/en/marketing/marketing-twitter-engager.md +126 -0
  145. package/dist/vendor/marketplace/en/marketing/marketing-video-optimization-specialist.md +119 -0
  146. package/dist/vendor/marketplace/en/marketing/marketing-wechat-official-account.md +145 -0
  147. package/dist/vendor/marketplace/en/marketing/marketing-weibo-strategist.md +240 -0
  148. package/dist/vendor/marketplace/en/marketing/marketing-xiaohongshu-specialist.md +138 -0
  149. package/dist/vendor/marketplace/en/marketing/marketing-zhihu-strategist.md +162 -0
  150. package/dist/vendor/marketplace/en/paid-media/paid-media-auditor.md +71 -0
  151. package/dist/vendor/marketplace/en/paid-media/paid-media-creative-strategist.md +71 -0
  152. package/dist/vendor/marketplace/en/paid-media/paid-media-paid-social-strategist.md +71 -0
  153. package/dist/vendor/marketplace/en/paid-media/paid-media-ppc-strategist.md +71 -0
  154. package/dist/vendor/marketplace/en/paid-media/paid-media-programmatic-buyer.md +71 -0
  155. package/dist/vendor/marketplace/en/paid-media/paid-media-search-query-analyst.md +71 -0
  156. package/dist/vendor/marketplace/en/paid-media/paid-media-tracking-specialist.md +71 -0
  157. package/dist/vendor/marketplace/en/product/product-behavioral-nudge-engine.md +80 -0
  158. package/dist/vendor/marketplace/en/product/product-feedback-synthesizer.md +119 -0
  159. package/dist/vendor/marketplace/en/product/product-manager.md +469 -0
  160. package/dist/vendor/marketplace/en/product/product-sprint-prioritizer.md +154 -0
  161. package/dist/vendor/marketplace/en/product/product-trend-researcher.md +159 -0
  162. package/dist/vendor/marketplace/en/project-management/project-management-experiment-tracker.md +198 -0
  163. package/dist/vendor/marketplace/en/project-management/project-management-jira-workflow-steward.md +230 -0
  164. package/dist/vendor/marketplace/en/project-management/project-management-project-shepherd.md +194 -0
  165. package/dist/vendor/marketplace/en/project-management/project-management-studio-operations.md +200 -0
  166. package/dist/vendor/marketplace/en/project-management/project-management-studio-producer.md +203 -0
  167. package/dist/vendor/marketplace/en/project-management/project-manager-senior.md +135 -0
  168. package/dist/vendor/marketplace/en/sales/sales-account-strategist.md +227 -0
  169. package/dist/vendor/marketplace/en/sales/sales-coach.md +271 -0
  170. package/dist/vendor/marketplace/en/sales/sales-deal-strategist.md +180 -0
  171. package/dist/vendor/marketplace/en/sales/sales-discovery-coach.md +225 -0
  172. package/dist/vendor/marketplace/en/sales/sales-engineer.md +182 -0
  173. package/dist/vendor/marketplace/en/sales/sales-outbound-strategist.md +201 -0
  174. package/dist/vendor/marketplace/en/sales/sales-pipeline-analyst.md +267 -0
  175. package/dist/vendor/marketplace/en/sales/sales-proposal-strategist.md +217 -0
  176. package/dist/vendor/marketplace/en/spatial-computing/macos-spatial-metal-engineer.md +337 -0
  177. package/dist/vendor/marketplace/en/spatial-computing/terminal-integration-specialist.md +70 -0
  178. package/dist/vendor/marketplace/en/spatial-computing/visionos-spatial-engineer.md +54 -0
  179. package/dist/vendor/marketplace/en/spatial-computing/xr-cockpit-interaction-specialist.md +32 -0
  180. package/dist/vendor/marketplace/en/spatial-computing/xr-immersive-developer.md +32 -0
  181. package/dist/vendor/marketplace/en/spatial-computing/xr-interface-architect.md +32 -0
  182. package/dist/vendor/marketplace/en/specialized/accounts-payable-agent.md +185 -0
  183. package/dist/vendor/marketplace/en/specialized/agentic-identity-trust.md +387 -0
  184. package/dist/vendor/marketplace/en/specialized/agents-orchestrator.md +367 -0
  185. package/dist/vendor/marketplace/en/specialized/automation-governance-architect.md +216 -0
  186. package/dist/vendor/marketplace/en/specialized/blockchain-security-auditor.md +463 -0
  187. package/dist/vendor/marketplace/en/specialized/compliance-auditor.md +158 -0
  188. package/dist/vendor/marketplace/en/specialized/corporate-training-designer.md +192 -0
  189. package/dist/vendor/marketplace/en/specialized/customer-service.md +398 -0
  190. package/dist/vendor/marketplace/en/specialized/data-consolidation-agent.md +60 -0
  191. package/dist/vendor/marketplace/en/specialized/government-digital-presales-consultant.md +363 -0
  192. package/dist/vendor/marketplace/en/specialized/healthcare-customer-service.md +389 -0
  193. package/dist/vendor/marketplace/en/specialized/healthcare-marketing-compliance.md +395 -0
  194. package/dist/vendor/marketplace/en/specialized/hospitality-guest-services.md +603 -0
  195. package/dist/vendor/marketplace/en/specialized/hr-onboarding.md +451 -0
  196. package/dist/vendor/marketplace/en/specialized/identity-graph-operator.md +260 -0
  197. package/dist/vendor/marketplace/en/specialized/language-translator.md +264 -0
  198. package/dist/vendor/marketplace/en/specialized/legal-billing-time-tracking.md +569 -0
  199. package/dist/vendor/marketplace/en/specialized/legal-client-intake.md +492 -0
  200. package/dist/vendor/marketplace/en/specialized/legal-document-review.md +454 -0
  201. package/dist/vendor/marketplace/en/specialized/loan-officer-assistant.md +555 -0
  202. package/dist/vendor/marketplace/en/specialized/lsp-index-engineer.md +314 -0
  203. package/dist/vendor/marketplace/en/specialized/real-estate-buyer-seller.md +596 -0
  204. package/dist/vendor/marketplace/en/specialized/recruitment-specialist.md +509 -0
  205. package/dist/vendor/marketplace/en/specialized/report-distribution-agent.md +65 -0
  206. package/dist/vendor/marketplace/en/specialized/retail-customer-returns.md +566 -0
  207. package/dist/vendor/marketplace/en/specialized/sales-data-extraction-agent.md +67 -0
  208. package/dist/vendor/marketplace/en/specialized/sales-outreach.md +425 -0
  209. package/dist/vendor/marketplace/en/specialized/specialized-chief-of-staff.md +279 -0
  210. package/dist/vendor/marketplace/en/specialized/specialized-civil-engineer.md +356 -0
  211. package/dist/vendor/marketplace/en/specialized/specialized-cultural-intelligence-strategist.md +88 -0
  212. package/dist/vendor/marketplace/en/specialized/specialized-developer-advocate.md +317 -0
  213. package/dist/vendor/marketplace/en/specialized/specialized-document-generator.md +55 -0
  214. package/dist/vendor/marketplace/en/specialized/specialized-french-consulting-market.md +192 -0
  215. package/dist/vendor/marketplace/en/specialized/specialized-korean-business-navigator.md +216 -0
  216. package/dist/vendor/marketplace/en/specialized/specialized-mcp-builder.md +248 -0
  217. package/dist/vendor/marketplace/en/specialized/specialized-model-qa.md +488 -0
  218. package/dist/vendor/marketplace/en/specialized/specialized-salesforce-architect.md +180 -0
  219. package/dist/vendor/marketplace/en/specialized/specialized-workflow-architect.md +597 -0
  220. package/dist/vendor/marketplace/en/specialized/study-abroad-advisor.md +282 -0
  221. package/dist/vendor/marketplace/en/specialized/supply-chain-strategist.md +582 -0
  222. package/dist/vendor/marketplace/en/support/support-analytics-reporter.md +365 -0
  223. package/dist/vendor/marketplace/en/support/support-executive-summary-generator.md +212 -0
  224. package/dist/vendor/marketplace/en/support/support-finance-tracker.md +442 -0
  225. package/dist/vendor/marketplace/en/support/support-infrastructure-maintainer.md +618 -0
  226. package/dist/vendor/marketplace/en/support/support-legal-compliance-checker.md +588 -0
  227. package/dist/vendor/marketplace/en/support/support-support-responder.md +585 -0
  228. package/dist/vendor/marketplace/en/testing/testing-accessibility-auditor.md +316 -0
  229. package/dist/vendor/marketplace/en/testing/testing-api-tester.md +306 -0
  230. package/dist/vendor/marketplace/en/testing/testing-evidence-collector.md +210 -0
  231. package/dist/vendor/marketplace/en/testing/testing-performance-benchmarker.md +268 -0
  232. package/dist/vendor/marketplace/en/testing/testing-reality-checker.md +236 -0
  233. package/dist/vendor/marketplace/en/testing/testing-test-results-analyzer.md +305 -0
  234. package/dist/vendor/marketplace/en/testing/testing-tool-evaluator.md +394 -0
  235. package/dist/vendor/marketplace/en/testing/testing-workflow-optimizer.md +450 -0
  236. package/dist/vendor/marketplace/zh/LICENSE +22 -0
  237. package/dist/vendor/marketplace/zh/SOURCES.md +12 -0
  238. package/dist/vendor/marketplace/zh/academic/academic-anthropologist.md +124 -0
  239. package/dist/vendor/marketplace/zh/academic/academic-geographer.md +126 -0
  240. package/dist/vendor/marketplace/zh/academic/academic-historian.md +122 -0
  241. package/dist/vendor/marketplace/zh/academic/academic-narratologist.md +117 -0
  242. package/dist/vendor/marketplace/zh/academic/academic-psychologist.md +117 -0
  243. package/dist/vendor/marketplace/zh/academic/academic-study-planner.md +214 -0
  244. package/dist/vendor/marketplace/zh/design/design-brand-guardian.md +321 -0
  245. package/dist/vendor/marketplace/zh/design/design-image-prompt-engineer.md +255 -0
  246. package/dist/vendor/marketplace/zh/design/design-inclusive-visuals-specialist.md +177 -0
  247. package/dist/vendor/marketplace/zh/design/design-ui-designer.md +382 -0
  248. package/dist/vendor/marketplace/zh/design/design-ux-architect.md +482 -0
  249. package/dist/vendor/marketplace/zh/design/design-ux-researcher.md +328 -0
  250. package/dist/vendor/marketplace/zh/design/design-visual-storyteller.md +159 -0
  251. package/dist/vendor/marketplace/zh/design/design-whimsy-injector.md +453 -0
  252. package/dist/vendor/marketplace/zh/engineering/engineering-ai-data-remediation-engineer.md +209 -0
  253. package/dist/vendor/marketplace/zh/engineering/engineering-ai-engineer.md +161 -0
  254. package/dist/vendor/marketplace/zh/engineering/engineering-autonomous-optimization-architect.md +115 -0
  255. package/dist/vendor/marketplace/zh/engineering/engineering-backend-architect.md +234 -0
  256. package/dist/vendor/marketplace/zh/engineering/engineering-cms-developer.md +534 -0
  257. package/dist/vendor/marketplace/zh/engineering/engineering-code-reviewer.md +172 -0
  258. package/dist/vendor/marketplace/zh/engineering/engineering-codebase-onboarding-engineer.md +172 -0
  259. package/dist/vendor/marketplace/zh/engineering/engineering-data-engineer.md +324 -0
  260. package/dist/vendor/marketplace/zh/engineering/engineering-database-optimizer.md +175 -0
  261. package/dist/vendor/marketplace/zh/engineering/engineering-devops-automator.md +375 -0
  262. package/dist/vendor/marketplace/zh/engineering/engineering-dingtalk-integration-developer.md +574 -0
  263. package/dist/vendor/marketplace/zh/engineering/engineering-email-intelligence-engineer.md +349 -0
  264. package/dist/vendor/marketplace/zh/engineering/engineering-embedded-firmware-engineer.md +168 -0
  265. package/dist/vendor/marketplace/zh/engineering/engineering-embedded-linux-driver-engineer.md +255 -0
  266. package/dist/vendor/marketplace/zh/engineering/engineering-feishu-integration-developer.md +597 -0
  267. package/dist/vendor/marketplace/zh/engineering/engineering-filament-optimization-specialist.md +283 -0
  268. package/dist/vendor/marketplace/zh/engineering/engineering-fpga-digital-design-engineer.md +227 -0
  269. package/dist/vendor/marketplace/zh/engineering/engineering-frontend-developer.md +224 -0
  270. package/dist/vendor/marketplace/zh/engineering/engineering-git-workflow-master.md +220 -0
  271. package/dist/vendor/marketplace/zh/engineering/engineering-incident-response-commander.md +465 -0
  272. package/dist/vendor/marketplace/zh/engineering/engineering-iot-solution-architect.md +220 -0
  273. package/dist/vendor/marketplace/zh/engineering/engineering-mechanical-design-engineer.md +311 -0
  274. package/dist/vendor/marketplace/zh/engineering/engineering-minimal-change-engineer.md +206 -0
  275. package/dist/vendor/marketplace/zh/engineering/engineering-mobile-app-builder.md +434 -0
  276. package/dist/vendor/marketplace/zh/engineering/engineering-pc-host-engineer.md +231 -0
  277. package/dist/vendor/marketplace/zh/engineering/engineering-rapid-prototyper.md +461 -0
  278. package/dist/vendor/marketplace/zh/engineering/engineering-security-engineer.md +303 -0
  279. package/dist/vendor/marketplace/zh/engineering/engineering-senior-developer.md +177 -0
  280. package/dist/vendor/marketplace/zh/engineering/engineering-software-architect.md +200 -0
  281. package/dist/vendor/marketplace/zh/engineering/engineering-solidity-smart-contract-engineer.md +541 -0
  282. package/dist/vendor/marketplace/zh/engineering/engineering-sre.md +233 -0
  283. package/dist/vendor/marketplace/zh/engineering/engineering-technical-writer.md +409 -0
  284. package/dist/vendor/marketplace/zh/engineering/engineering-threat-detection-engineer.md +553 -0
  285. package/dist/vendor/marketplace/zh/engineering/engineering-voice-ai-integration-engineer.md +560 -0
  286. package/dist/vendor/marketplace/zh/engineering/engineering-wechat-mini-program-developer.md +288 -0
  287. package/dist/vendor/marketplace/zh/finance/finance-bookkeeper-controller.md +271 -0
  288. package/dist/vendor/marketplace/zh/finance/finance-financial-analyst.md +244 -0
  289. package/dist/vendor/marketplace/zh/finance/finance-financial-forecaster.md +213 -0
  290. package/dist/vendor/marketplace/zh/finance/finance-fpa-analyst.md +272 -0
  291. package/dist/vendor/marketplace/zh/finance/finance-fraud-detector.md +241 -0
  292. package/dist/vendor/marketplace/zh/finance/finance-investment-researcher.md +283 -0
  293. package/dist/vendor/marketplace/zh/finance/finance-invoice-manager.md +242 -0
  294. package/dist/vendor/marketplace/zh/finance/finance-tax-strategist.md +250 -0
  295. package/dist/vendor/marketplace/zh/game-development/blender/blender-addon-engineer.md +233 -0
  296. package/dist/vendor/marketplace/zh/game-development/game-audio-engineer.md +265 -0
  297. package/dist/vendor/marketplace/zh/game-development/game-designer.md +168 -0
  298. package/dist/vendor/marketplace/zh/game-development/godot/godot-gameplay-scripter.md +335 -0
  299. package/dist/vendor/marketplace/zh/game-development/godot/godot-multiplayer-engineer.md +296 -0
  300. package/dist/vendor/marketplace/zh/game-development/godot/godot-shader-developer.md +267 -0
  301. package/dist/vendor/marketplace/zh/game-development/level-designer.md +209 -0
  302. package/dist/vendor/marketplace/zh/game-development/narrative-designer.md +244 -0
  303. package/dist/vendor/marketplace/zh/game-development/roblox-studio/roblox-avatar-creator.md +298 -0
  304. package/dist/vendor/marketplace/zh/game-development/roblox-studio/roblox-experience-designer.md +306 -0
  305. package/dist/vendor/marketplace/zh/game-development/roblox-studio/roblox-systems-scripter.md +325 -0
  306. package/dist/vendor/marketplace/zh/game-development/technical-artist.md +230 -0
  307. package/dist/vendor/marketplace/zh/game-development/unity/unity-architect.md +272 -0
  308. package/dist/vendor/marketplace/zh/game-development/unity/unity-editor-tool-developer.md +300 -0
  309. package/dist/vendor/marketplace/zh/game-development/unity/unity-multiplayer-engineer.md +238 -0
  310. package/dist/vendor/marketplace/zh/game-development/unity/unity-shader-graph-artist.md +270 -0
  311. package/dist/vendor/marketplace/zh/game-development/unreal-engine/unreal-multiplayer-architect.md +314 -0
  312. package/dist/vendor/marketplace/zh/game-development/unreal-engine/unreal-systems-engineer.md +311 -0
  313. package/dist/vendor/marketplace/zh/game-development/unreal-engine/unreal-technical-artist.md +256 -0
  314. package/dist/vendor/marketplace/zh/game-development/unreal-engine/unreal-world-builder.md +274 -0
  315. package/dist/vendor/marketplace/zh/hr/hr-performance-reviewer.md +248 -0
  316. package/dist/vendor/marketplace/zh/hr/hr-recruiter.md +232 -0
  317. package/dist/vendor/marketplace/zh/legal/legal-contract-reviewer.md +240 -0
  318. package/dist/vendor/marketplace/zh/legal/legal-policy-writer.md +308 -0
  319. package/dist/vendor/marketplace/zh/manifest.json +2181 -0
  320. package/dist/vendor/marketplace/zh/marketing/marketing-agentic-search-optimizer.md +312 -0
  321. package/dist/vendor/marketplace/zh/marketing/marketing-ai-citation-strategist.md +169 -0
  322. package/dist/vendor/marketplace/zh/marketing/marketing-app-store-optimizer.md +319 -0
  323. package/dist/vendor/marketplace/zh/marketing/marketing-baidu-seo-specialist.md +220 -0
  324. package/dist/vendor/marketplace/zh/marketing/marketing-bilibili-strategist.md +194 -0
  325. package/dist/vendor/marketplace/zh/marketing/marketing-book-co-author.md +109 -0
  326. package/dist/vendor/marketplace/zh/marketing/marketing-carousel-growth-engine.md +215 -0
  327. package/dist/vendor/marketplace/zh/marketing/marketing-china-ecommerce-operator.md +277 -0
  328. package/dist/vendor/marketplace/zh/marketing/marketing-china-market-localization-strategist.md +282 -0
  329. package/dist/vendor/marketplace/zh/marketing/marketing-content-creator.md +145 -0
  330. package/dist/vendor/marketplace/zh/marketing/marketing-cross-border-ecommerce.md +260 -0
  331. package/dist/vendor/marketplace/zh/marketing/marketing-daily-news-briefing.md +303 -0
  332. package/dist/vendor/marketplace/zh/marketing/marketing-douyin-strategist.md +150 -0
  333. package/dist/vendor/marketplace/zh/marketing/marketing-ecommerce-operator.md +216 -0
  334. package/dist/vendor/marketplace/zh/marketing/marketing-growth-hacker.md +121 -0
  335. package/dist/vendor/marketplace/zh/marketing/marketing-instagram-curator.md +179 -0
  336. package/dist/vendor/marketplace/zh/marketing/marketing-knowledge-commerce-strategist.md +384 -0
  337. package/dist/vendor/marketplace/zh/marketing/marketing-kuaishou-strategist.md +182 -0
  338. package/dist/vendor/marketplace/zh/marketing/marketing-linkedin-content-creator.md +232 -0
  339. package/dist/vendor/marketplace/zh/marketing/marketing-livestream-commerce-coach.md +303 -0
  340. package/dist/vendor/marketplace/zh/marketing/marketing-podcast-strategist.md +278 -0
  341. package/dist/vendor/marketplace/zh/marketing/marketing-private-domain-operator.md +309 -0
  342. package/dist/vendor/marketplace/zh/marketing/marketing-reddit-community-builder.md +127 -0
  343. package/dist/vendor/marketplace/zh/marketing/marketing-seo-specialist.md +298 -0
  344. package/dist/vendor/marketplace/zh/marketing/marketing-short-video-editing-coach.md +413 -0
  345. package/dist/vendor/marketplace/zh/marketing/marketing-social-media-strategist.md +118 -0
  346. package/dist/vendor/marketplace/zh/marketing/marketing-tiktok-strategist.md +124 -0
  347. package/dist/vendor/marketplace/zh/marketing/marketing-twitter-engager.md +132 -0
  348. package/dist/vendor/marketplace/zh/marketing/marketing-video-optimization-specialist.md +128 -0
  349. package/dist/vendor/marketplace/zh/marketing/marketing-wechat-official-account.md +158 -0
  350. package/dist/vendor/marketplace/zh/marketing/marketing-wechat-operator.md +156 -0
  351. package/dist/vendor/marketplace/zh/marketing/marketing-weibo-strategist.md +241 -0
  352. package/dist/vendor/marketplace/zh/marketing/marketing-weixin-channels-strategist.md +297 -0
  353. package/dist/vendor/marketplace/zh/marketing/marketing-xiaohongshu-operator.md +139 -0
  354. package/dist/vendor/marketplace/zh/marketing/marketing-xiaohongshu-specialist.md +151 -0
  355. package/dist/vendor/marketplace/zh/marketing/marketing-zhihu-strategist.md +175 -0
  356. package/dist/vendor/marketplace/zh/paid-media/paid-media-auditor.md +170 -0
  357. package/dist/vendor/marketplace/zh/paid-media/paid-media-creative-strategist.md +173 -0
  358. package/dist/vendor/marketplace/zh/paid-media/paid-media-paid-social-strategist.md +180 -0
  359. package/dist/vendor/marketplace/zh/paid-media/paid-media-ppc-strategist.md +180 -0
  360. package/dist/vendor/marketplace/zh/paid-media/paid-media-programmatic-buyer.md +177 -0
  361. package/dist/vendor/marketplace/zh/paid-media/paid-media-search-query-analyst.md +182 -0
  362. package/dist/vendor/marketplace/zh/paid-media/paid-media-tracking-specialist.md +199 -0
  363. package/dist/vendor/marketplace/zh/product/product-behavioral-nudge-engine.md +246 -0
  364. package/dist/vendor/marketplace/zh/product/product-feedback-synthesizer.md +175 -0
  365. package/dist/vendor/marketplace/zh/product/product-manager.md +474 -0
  366. package/dist/vendor/marketplace/zh/product/product-sprint-prioritizer.md +133 -0
  367. package/dist/vendor/marketplace/zh/product/product-trend-researcher.md +143 -0
  368. package/dist/vendor/marketplace/zh/project-management/project-management-experiment-tracker.md +206 -0
  369. package/dist/vendor/marketplace/zh/project-management/project-management-jira-workflow-steward.md +249 -0
  370. package/dist/vendor/marketplace/zh/project-management/project-management-project-shepherd.md +202 -0
  371. package/dist/vendor/marketplace/zh/project-management/project-management-studio-operations.md +208 -0
  372. package/dist/vendor/marketplace/zh/project-management/project-management-studio-producer.md +211 -0
  373. package/dist/vendor/marketplace/zh/project-management/project-manager-senior.md +135 -0
  374. package/dist/vendor/marketplace/zh/sales/sales-account-strategist.md +243 -0
  375. package/dist/vendor/marketplace/zh/sales/sales-coach.md +291 -0
  376. package/dist/vendor/marketplace/zh/sales/sales-deal-strategist.md +204 -0
  377. package/dist/vendor/marketplace/zh/sales/sales-discovery-coach.md +230 -0
  378. package/dist/vendor/marketplace/zh/sales/sales-engineer.md +200 -0
  379. package/dist/vendor/marketplace/zh/sales/sales-outbound-strategist.md +208 -0
  380. package/dist/vendor/marketplace/zh/sales/sales-pipeline-analyst.md +284 -0
  381. package/dist/vendor/marketplace/zh/sales/sales-proposal-strategist.md +233 -0
  382. package/dist/vendor/marketplace/zh/spatial-computing/macos-spatial-metal-engineer.md +337 -0
  383. package/dist/vendor/marketplace/zh/spatial-computing/terminal-integration-specialist.md +236 -0
  384. package/dist/vendor/marketplace/zh/spatial-computing/visionos-spatial-engineer.md +282 -0
  385. package/dist/vendor/marketplace/zh/spatial-computing/xr-cockpit-interaction-specialist.md +220 -0
  386. package/dist/vendor/marketplace/zh/spatial-computing/xr-immersive-developer.md +229 -0
  387. package/dist/vendor/marketplace/zh/spatial-computing/xr-interface-architect.md +253 -0
  388. package/dist/vendor/marketplace/zh/specialized/accounts-payable-agent.md +212 -0
  389. package/dist/vendor/marketplace/zh/specialized/agentic-identity-trust.md +388 -0
  390. package/dist/vendor/marketplace/zh/specialized/agents-orchestrator.md +366 -0
  391. package/dist/vendor/marketplace/zh/specialized/automation-governance-architect.md +215 -0
  392. package/dist/vendor/marketplace/zh/specialized/blockchain-security-auditor.md +484 -0
  393. package/dist/vendor/marketplace/zh/specialized/compliance-auditor.md +172 -0
  394. package/dist/vendor/marketplace/zh/specialized/corporate-training-designer.md +191 -0
  395. package/dist/vendor/marketplace/zh/specialized/data-consolidation-agent.md +327 -0
  396. package/dist/vendor/marketplace/zh/specialized/gaokao-college-advisor.md +333 -0
  397. package/dist/vendor/marketplace/zh/specialized/government-digital-presales-consultant.md +362 -0
  398. package/dist/vendor/marketplace/zh/specialized/healthcare-customer-service.md +388 -0
  399. package/dist/vendor/marketplace/zh/specialized/healthcare-marketing-compliance.md +394 -0
  400. package/dist/vendor/marketplace/zh/specialized/hospitality-guest-services.md +597 -0
  401. package/dist/vendor/marketplace/zh/specialized/hr-onboarding.md +450 -0
  402. package/dist/vendor/marketplace/zh/specialized/identity-graph-operator.md +270 -0
  403. package/dist/vendor/marketplace/zh/specialized/language-translator.md +275 -0
  404. package/dist/vendor/marketplace/zh/specialized/legal-billing-time-tracking.md +566 -0
  405. package/dist/vendor/marketplace/zh/specialized/legal-client-intake.md +487 -0
  406. package/dist/vendor/marketplace/zh/specialized/legal-document-review.md +452 -0
  407. package/dist/vendor/marketplace/zh/specialized/livestock-archive-auditor.md +135 -0
  408. package/dist/vendor/marketplace/zh/specialized/loan-officer-assistant.md +549 -0
  409. package/dist/vendor/marketplace/zh/specialized/lsp-index-engineer.md +334 -0
  410. package/dist/vendor/marketplace/zh/specialized/prompt-engineer.md +176 -0
  411. package/dist/vendor/marketplace/zh/specialized/real-estate-buyer-seller.md +594 -0
  412. package/dist/vendor/marketplace/zh/specialized/recruitment-specialist.md +508 -0
  413. package/dist/vendor/marketplace/zh/specialized/report-distribution-agent.md +354 -0
  414. package/dist/vendor/marketplace/zh/specialized/retail-customer-returns.md +564 -0
  415. package/dist/vendor/marketplace/zh/specialized/sales-data-extraction-agent.md +159 -0
  416. package/dist/vendor/marketplace/zh/specialized/specialized-ai-policy-writer.md +217 -0
  417. package/dist/vendor/marketplace/zh/specialized/specialized-chief-of-staff.md +278 -0
  418. package/dist/vendor/marketplace/zh/specialized/specialized-civil-engineer.md +355 -0
  419. package/dist/vendor/marketplace/zh/specialized/specialized-cultural-intelligence-strategist.md +168 -0
  420. package/dist/vendor/marketplace/zh/specialized/specialized-developer-advocate.md +334 -0
  421. package/dist/vendor/marketplace/zh/specialized/specialized-document-generator.md +346 -0
  422. package/dist/vendor/marketplace/zh/specialized/specialized-french-consulting-market.md +191 -0
  423. package/dist/vendor/marketplace/zh/specialized/specialized-korean-business-navigator.md +215 -0
  424. package/dist/vendor/marketplace/zh/specialized/specialized-mcp-builder.md +351 -0
  425. package/dist/vendor/marketplace/zh/specialized/specialized-meeting-assistant.md +236 -0
  426. package/dist/vendor/marketplace/zh/specialized/specialized-model-qa.md +507 -0
  427. package/dist/vendor/marketplace/zh/specialized/specialized-pricing-optimizer.md +254 -0
  428. package/dist/vendor/marketplace/zh/specialized/specialized-risk-assessor.md +240 -0
  429. package/dist/vendor/marketplace/zh/specialized/specialized-salesforce-architect.md +179 -0
  430. package/dist/vendor/marketplace/zh/specialized/specialized-workflow-architect.md +596 -0
  431. package/dist/vendor/marketplace/zh/specialized/study-abroad-advisor.md +281 -0
  432. package/dist/vendor/marketplace/zh/specialized/technical-translator-agent.md +167 -0
  433. package/dist/vendor/marketplace/zh/specialized/zk-steward.md +228 -0
  434. package/dist/vendor/marketplace/zh/supply-chain/supply-chain-inventory-forecaster.md +212 -0
  435. package/dist/vendor/marketplace/zh/supply-chain/supply-chain-route-optimizer.md +224 -0
  436. package/dist/vendor/marketplace/zh/supply-chain/supply-chain-strategist.md +581 -0
  437. package/dist/vendor/marketplace/zh/supply-chain/supply-chain-vendor-evaluator.md +232 -0
  438. package/dist/vendor/marketplace/zh/support/support-analytics-reporter.md +364 -0
  439. package/dist/vendor/marketplace/zh/support/support-executive-summary-generator.md +217 -0
  440. package/dist/vendor/marketplace/zh/support/support-finance-tracker.md +447 -0
  441. package/dist/vendor/marketplace/zh/support/support-infrastructure-maintainer.md +623 -0
  442. package/dist/vendor/marketplace/zh/support/support-legal-compliance-checker.md +587 -0
  443. package/dist/vendor/marketplace/zh/support/support-recruitment-specialist.md +508 -0
  444. package/dist/vendor/marketplace/zh/support/support-support-responder.md +584 -0
  445. package/dist/vendor/marketplace/zh/testing/testing-accessibility-auditor.md +329 -0
  446. package/dist/vendor/marketplace/zh/testing/testing-api-tester.md +305 -0
  447. package/dist/vendor/marketplace/zh/testing/testing-embedded-qa-engineer.md +258 -0
  448. package/dist/vendor/marketplace/zh/testing/testing-evidence-collector.md +153 -0
  449. package/dist/vendor/marketplace/zh/testing/testing-performance-benchmarker.md +196 -0
  450. package/dist/vendor/marketplace/zh/testing/testing-reality-checker.md +235 -0
  451. package/dist/vendor/marketplace/zh/testing/testing-test-results-analyzer.md +313 -0
  452. package/dist/vendor/marketplace/zh/testing/testing-tool-evaluator.md +402 -0
  453. package/dist/vendor/marketplace/zh/testing/testing-workflow-optimizer.md +458 -0
  454. package/package.json +7 -2
  455. package/web/dist/assets/AddWorkerDialog-TAWWMQti.js +75 -0
  456. package/web/dist/assets/AddWorkspaceDialog-DVqabcvo.js +1 -0
  457. package/web/dist/assets/FirstRunWizard-DOM6bcpn.js +1 -0
  458. package/web/dist/assets/WorkerModal-ALxWif7E.js +1 -0
  459. package/web/dist/assets/WorkspaceTaskDrawer-8IVJMUe-.js +1 -0
  460. package/web/dist/assets/chevron-right-39MYBReb.js +1 -0
  461. package/web/dist/assets/index-7NLKrr1z.js +81 -0
  462. package/web/dist/assets/index-DsdHICGY.css +1 -0
  463. package/web/dist/index.html +2 -2
  464. package/web/dist/sw.js +1 -1
  465. package/web/dist/assets/index-CSEt-Qiy.js +0 -66
  466. package/web/dist/assets/index-RsXXnrVz.css +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,60 @@
2
2
 
3
3
  All notable user-facing changes will be documented in this file.
4
4
 
5
+ ## 1.4.0 - 2026-05-22
6
+
7
+ Template marketplace and agent picker polish.
8
+
9
+ - Adds a bilingual template marketplace to the Add Member flow, with English
10
+ and Chinese agent libraries, category filters, search, and one-click import
11
+ into custom role instructions.
12
+ - Ships the marketplace templates inside the npm package under
13
+ `dist/vendor/marketplace`, so the library works from packaged installs
14
+ without fetching remote content.
15
+ - Polishes the marketplace drawer/card design for denser browsing, clearer
16
+ imported states, stronger search ergonomics, and better Chinese/English
17
+ category labels.
18
+ - Keeps the Tasks side panel aligned with the Team Members panel width for a
19
+ more predictable two-panel layout.
20
+ - Shows the selected CLI's brand mark in the Agent CLI picker, while keeping a
21
+ terminal glyph for generic custom commands.
22
+ - Removes stale Biome suppression comments from marketplace-related UI code.
23
+
24
+ ## 1.3.4 - 2026-05-21
25
+
26
+ Terminal performance and Tasks panel polish.
27
+
28
+ - Improves terminal responsiveness by keeping mounted terminal hosts stable,
29
+ lazy-loading heavier xterm addons, and reducing terminal-run polling churn.
30
+ - Fixes OpenCode TUI wheel and mouse handling by preserving binary input for
31
+ normal terminals while translating OpenCode legacy mouse reports into the
32
+ SGR format it handles correctly.
33
+ - Sends a current `.hive/tasks.md` snapshot when a Tasks websocket connects,
34
+ and guards that initial read so a missing or unreadable file does not break
35
+ the websocket session.
36
+ - Renames the visible Todo entry to **Tasks** and widens the Tasks side panel
37
+ to match the default Team Members pane width.
38
+ - Enlarges the Team Members header and count badge for better readability.
39
+
40
+ ## 1.3.3 - 2026-05-21
41
+
42
+ OpenCode terminal scrolling and small UI polish.
43
+
44
+ - Restores the Task Graph topbar entry so the graph view is available again
45
+ from the main shell.
46
+ - Updates generated worker names to use localized, role-scoped historical
47
+ figure name pools, making Chinese and English workspaces feel less generic.
48
+ - Fixes OpenCode TUI mouse-wheel scrolling inside Hive terminal panels. Hive now
49
+ tags each terminal run with an input profile and maps OpenCode wheel events to
50
+ the keys OpenCode's message viewport actually handles (`Ctrl+D` / `Ctrl+U`),
51
+ while leaving other alternate-screen TUIs on the existing arrow-key fallback.
52
+ - Preserves that OpenCode profile when the user selects the OpenCode preset but
53
+ starts it through a custom startup command such as `opencode --continue`.
54
+ - Keeps workspace shell terminals on the default input profile.
55
+ - Enlarges the Team Members header count for better readability.
56
+ - Documents that npm's `prebuild-install@7.1.3` deprecation warning comes from
57
+ the upstream native-binary installer chain and is safe to ignore.
58
+
5
59
  ## 1.3.0 - 2026-05-20
6
60
 
7
61
  Installable Hive: turns the web shell into a real PWA so Chrome / Edge can
@@ -135,37 +189,30 @@ Brand polish.
135
189
 
136
190
  ## 1.1.2 - 2026-05-17
137
191
 
138
- Private-release workflow fix.
192
+ Release workflow fix.
139
193
 
140
194
  - Runs npm publish on Ubuntu instead of macOS. Publishing does not require
141
- macOS, and the Ubuntu runner avoids unnecessary private-repo Actions cost.
195
+ macOS, and the Ubuntu runner is a better fit for the publish step.
142
196
 
143
197
  ## 1.1.1 - 2026-05-17
144
198
 
145
- Private-release workflow fix.
199
+ Release workflow fix.
146
200
 
147
- - Publishes from the private product repository without npm provenance because
148
- npm provenance currently requires a public GitHub Actions source repository.
149
- The package contents are otherwise the same 1.1.x private-release line:
150
- Workspace terminal tabs, hidden dormant Blueprint entry, and no production
151
- source maps in the npm tarball.
201
+ - Publishes without production source maps in the npm tarball while keeping the
202
+ user-facing package contents unchanged.
152
203
 
153
204
  ## 1.1.0 - 2026-05-17
154
205
 
155
- Private-release line.
206
+ Workspace terminal release.
156
207
 
157
208
  - Added a Workspace terminal that opens from the active workspace and runs in
158
209
  the workspace directory. It supports multiple shell tabs, full-height terminal
159
210
  space, tab switching, and closing individual tabs without closing the whole
160
211
  dialog.
161
212
  - Kept the external install path unchanged. Users still install with
162
- `npm install -g @tt-a1i/hive` or run with `npx @tt-a1i/hive`; this release is
163
- built from the private product repository and published to the same npm
164
- package.
213
+ `npm install -g @tt-a1i/hive` or run with `npx @tt-a1i/hive`.
165
214
  - Hid the dormant task-graph / Blueprint entry from the main UI while keeping
166
215
  the underlying code in place for possible future use.
167
- - Documented the public/private repository split and release policy in
168
- `docs/private-release-strategy.md`.
169
216
 
170
217
  ## 1.0.0 - 2026-05-17
171
218
 
package/README.en.md CHANGED
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="./assets/logo.png" width="120" alt="Hive logo" />
3
+ </p>
4
+
1
5
  # Hive
2
6
 
3
7
  <p align="center">
@@ -15,12 +19,12 @@ Code, research, drafts, translations — if a team can split the work, a hive ca
15
19
 
16
20
  [![npm](https://img.shields.io/npm/v/@tt-a1i/hive.svg)](https://www.npmjs.com/package/@tt-a1i/hive)
17
21
  [![ci](https://img.shields.io/github/actions/workflow/status/tt-a1i/hive/release.yml?branch=main&label=ci)](https://github.com/tt-a1i/hive/actions/workflows/release.yml)
18
- [![Website](https://img.shields.io/badge/website-hive--site.pages.dev-5a8a8a.svg)](https://hive-site.pages.dev)
22
+ [![Website](https://img.shields.io/badge/website-hivehq.dev-5a8a8a.svg)](https://hivehq.dev)
19
23
  [![Node](https://img.shields.io/badge/node-%3E%3D22-3c873a.svg)](https://nodejs.org/)
20
24
  [![License](https://img.shields.io/badge/license-BUSL--1.1-orange.svg)](./LICENSE.BSL)
21
25
  [![Platforms](https://img.shields.io/badge/platforms-macOS%20%C2%B7%20Linux%20%C2%B7%20Windows%20(best--effort)-lightgrey.svg)](#platform-support)
22
26
 
23
- 🌐 **Website**: [hive-site.pages.dev/en/](https://hive-site.pages.dev/en/) · [中文](https://hive-site.pages.dev/)
27
+ 🌐 **Website**: [hivehq.dev/en/](https://hivehq.dev/en/) · [中文](https://hivehq.dev/)
24
28
 
25
29
  English · [简体中文](./README.md)
26
30
 
@@ -29,6 +33,10 @@ English · [简体中文](./README.md)
29
33
  > [npm](https://www.npmjs.com/package/@tt-a1i/hive) and the badge above resolves
30
34
  > to it.
31
35
 
36
+ <p align="center">
37
+ <img src="./assets/hive-team-view.png" alt="Hive workbench with a 4-agent team — orchestrator dispatching while workers run" />
38
+ </p>
39
+
32
40
  ## Why Hive
33
41
 
34
42
  CLI agents are powerful, but coordinating several of them manually is
@@ -236,6 +244,11 @@ Hive depends on `node-pty` and `better-sqlite3`, which use native binaries. Use
236
244
  Node.js 22+, keep your package manager cache clean, and verify your platform
237
245
  build tools are available.
238
246
 
247
+ If npm prints a deprecated warning for `prebuild-install@7.1.3`, it is safe to
248
+ ignore. The warning comes from `better-sqlite3`'s native binary download chain;
249
+ it is an upstream installer maintenance notice, not a Hive install failure, and
250
+ does not affect runtime behavior.
251
+
239
252
  **Folder picker does not open on Linux**
240
253
 
241
254
  Install `zenity`, or paste the workspace path manually.
@@ -300,12 +313,56 @@ verifies macOS, Ubuntu, and Windows, then publishes to npm with `NPM_TOKEN`.
300
313
 
301
314
  ## Status
302
315
 
303
- Hive is published as a stable release. Current work focuses on polishing the
304
- multi-agent collaboration workflow, Windows support, and clearer orchestration
305
- observability.
316
+ Hive is in alpha. The core flow is usable today; current work focuses on
317
+ polishing the multi-agent collaboration workflow, Windows support, and clearer
318
+ orchestration observability. Try it out and open issues — feedback shapes what
319
+ gets prioritized next.
306
320
 
307
- ## License
321
+ ## On the roadmap: cross-agent long-term memory
322
+
323
+ <p align="center">
324
+ <a href="https://github.com/EverMind-AI/EverOS">
325
+ <img src="https://avatars.githubusercontent.com/EverMind-AI" width="72" alt="EverMind / EverOS" />
326
+ </a>
327
+ </p>
328
+
329
+ Single-agent memory already exists, but the styles diverge:
308
330
 
309
- Hive is licensed under the Business Source License 1.1 (see [LICENSE.BSL](LICENSE.BSL)). BSL permits personal use, internal deployment, embedding in non-competitive products, and non-commercial forks; it **only prohibits** offering Hive as a hosted multi-agent orchestration service to third parties.
331
+ - **Claude Code's [Auto Dream](https://claudefa.st/blog/guide/mechanics/auto-dream)** is **batch / offline** invoked via `/dream` (or on a 24h timer), Claude consolidates JSONL session logs in the cloud, merges duplicates, extracts patterns, and proposes a new memory file for you to review and adopt. REM-sleep style, with a clean wake/sleep separation.
332
+ - **Hermes Agent** runs the opposite playbook — **embedded and in-stride**. Every N turns it forks a background sub-agent to review the recent exchange and writes directly into a **multi-organ local store**: `MEMORY.md` (facts/rules) · `USER.md` (who-you-are) · SQLite + FTS5 (episodic search) · Honcho (third-person model) · `skills/` (procedural memory). The agent is allowed to edit its own skill files in stride — memory and capability are the same thing.
333
+
334
+ But these are all **per-agent** memories. Hive coordinates *teams* of agents, so the next step is wiring them together: let the whole team **share one long-term memory store** — what Worker A learned today becomes context the Orchestrator can dispatch to Worker B tomorrow.
335
+
336
+ We're planning to back this with **[EverOS](https://github.com/EverMind-AI/EverOS)**
337
+ — an open-source long-term memory OS from [EverMind](https://evermind.ai/),
338
+ currently SOTA on the LoCoMo / LongMemEval / HaluMem memory benchmarks.
339
+ Its four-layer architecture (Agentic / Memory / Index / API+MCP) maps
340
+ cleanly onto Hive's multi-PTY model: each agent keeps its in-CLI memory,
341
+ team-level facts flow through EverOS, and the Orchestrator joins both
342
+ when dispatching.
343
+
344
+ Track progress at [#6](https://github.com/tt-a1i/hive/issues/6) — drop a
345
+ +1 or comment with your use case to influence priority.
346
+
347
+ ## A different form factor: squad
348
+
349
+ If you'd rather have **pure CLI, zero background process, and the ability to
350
+ run on a remote SSH box**, [squad](https://github.com/mco-org/squad) takes the
351
+ same idea down a different path — SQLite as the protocol layer, one terminal
352
+ per agent. The two projects don't replace each other; pick by workflow:
353
+
354
+ - **Hive** — visual workbench, one-click restart, workspace sidebar, easier to demo to a team
355
+ - **squad** — lives in tmux, SSH remote dev, no extra background process, Windows servers
356
+
357
+ ## Acknowledgements
358
+
359
+ The built-in template marketplace ships snapshots of two community-maintained prompt libraries, both distributed under their upstream MIT licenses:
360
+
361
+ - English (used when the UI is set to EN): [`msitarzewski/agency-agents`](https://github.com/msitarzewski/agency-agents)
362
+ - Chinese (used when the UI is set to 中文): [`jnMetaCode/agency-agents-zh`](https://github.com/jnMetaCode/agency-agents-zh)
363
+
364
+ Upstream content is mirrored verbatim, license files are kept under `vendor/marketplace/<lang>/LICENSE`, and snapshots are refreshed by `pnpm sync:marketplace` before each Hive release.
365
+
366
+ ## License
310
367
 
311
- See the Additional Use Grant in [LICENSE.BSL](LICENSE.BSL) for the exact boundary.
368
+ Hive is open source under the Business Source License 1.1. Personal use, internal deployment, embedding, and forks are permitted — see [LICENSE.BSL](LICENSE.BSL) for the exact boundary.
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="./assets/logo.png" width="120" alt="Hive logo" />
3
+ </p>
4
+
1
5
  # Hive
2
6
 
3
7
  <p align="center">
@@ -10,17 +14,21 @@
10
14
 
11
15
  [![npm](https://img.shields.io/npm/v/@tt-a1i/hive.svg)](https://www.npmjs.com/package/@tt-a1i/hive)
12
16
  [![ci](https://img.shields.io/github/actions/workflow/status/tt-a1i/hive/release.yml?branch=main&label=ci)](https://github.com/tt-a1i/hive/actions/workflows/release.yml)
13
- [![Website](https://img.shields.io/badge/website-hive--site.pages.dev-5a8a8a.svg)](https://hive-site.pages.dev)
17
+ [![Website](https://img.shields.io/badge/website-hivehq.dev-5a8a8a.svg)](https://hivehq.dev)
14
18
  [![Node](https://img.shields.io/badge/node-%3E%3D22-3c873a.svg)](https://nodejs.org/)
15
19
  [![License](https://img.shields.io/badge/license-BUSL--1.1-orange.svg)](./LICENSE.BSL)
16
20
  [![Platforms](https://img.shields.io/badge/platforms-macOS%20%C2%B7%20Linux%20%C2%B7%20Windows%20(best--effort)-lightgrey.svg)](#平台支持)
17
21
 
18
- 🌐 **官网**:[hive-site.pages.dev](https://hive-site.pages.dev/)([English](https://hive-site.pages.dev/en/))
22
+ 🌐 **官网**:[hivehq.dev](https://hivehq.dev/)([English](https://hivehq.dev/en/))
19
23
 
20
24
  [English](./README.en.md) · 简体中文
21
25
 
22
26
  > Hive 是本机优先的工具,只监听 `127.0.0.1`,面向已经在用 CLI Agent 的人。最新稳定版本见 [npm](https://www.npmjs.com/package/@tt-a1i/hive),上面的 badge 会指向它。
23
27
 
28
+ <p align="center">
29
+ <img src="./assets/hive-team-view.png" alt="Hive 工作台:4 个 CLI Agent 团队,Orchestrator 派单、Worker 各自开工" />
30
+ </p>
31
+
24
32
  ## 为什么需要 Hive
25
33
 
26
34
  CLI Agent 各自都很强,但同时管几个就有点别扭:
@@ -173,6 +181,8 @@ hive --port 4020
173
181
 
174
182
  Hive 依赖 `node-pty` 和 `better-sqlite3`,它们用原生二进制。确认 Node.js 22+,清干净 package manager 缓存,并准备好你平台的构建工具(macOS Xcode CLI、Linux build-essential + python3、Windows VS Build Tools)。
175
183
 
184
+ 安装时如果看到 `prebuild-install@7.1.3` 的 deprecated warning,可以忽略。它来自 `better-sqlite3` 的原生二进制下载链路,只是上游安装器维护状态提示,不代表 Hive 安装失败,也不会影响运行。
185
+
176
186
  **Linux 上目录选择器不弹**
177
187
 
178
188
  装 `zenity`,或者直接在对话框里粘路径。
@@ -229,10 +239,43 @@ pnpm release:dry
229
239
 
230
240
  ## 状态
231
241
 
232
- Hive 已发布稳定版。当前重点是继续打磨多 Agent 协作体验、Windows 支持和更清晰的调度可观测性。
242
+ Hive 目前处于 alpha 阶段,核心流程已可用。当前重点是继续打磨多 Agent 协作体验、Windows 支持和更清晰的调度可观测性。欢迎试用、提 issue——反馈会直接影响后续节奏。
233
243
 
234
- ## License
244
+ ## 在路上:跨 Agent 的长时记忆
245
+
246
+ <p align="center">
247
+ <a href="https://github.com/EverMind-AI/EverOS">
248
+ <img src="https://avatars.githubusercontent.com/EverMind-AI" width="72" alt="EverMind / EverOS" />
249
+ </a>
250
+ </p>
251
+
252
+ 单 agent 现在已经各有各的"记忆"了——但风格其实差很多:
235
253
 
236
- Hive 使用 Business Source License 1.1([LICENSE.BSL](LICENSE.BSL))。BSL 允许个人使用、内部部署、嵌入其他产品、非商业 fork;**仅禁止**把 Hive 包装成多 agent 协作 SaaS 卖给第三方。
254
+ - **Claude Code [Auto Dream](https://claudefa.st/blog/guide/mechanics/auto-dream)(俗称"做梦")** **离线批处理** 路线:`/dream` 触发(或 24h 自动),Claude 在云端把 JSONL 会话归并去重抽模式,产出新版本 memory 库给你审查再采纳——像人类的 REM 睡眠,**清醒 / 睡眠二相**。
255
+ - **Hermes Agent** 反过来走 **嵌入式 / 在场** 路线:不睡,每 N 轮对话后台 fork 一个 sub-agent review,结果直接落进本地的 **多层记忆**——`MEMORY.md`(事实/规则)·`USER.md`(用户画像)·SQLite + FTS5(情景检索)·Honcho(第三人称表征)·`skills/`(程序性记忆)——而且 agent 允许边走边改自己的 skill 文件,记忆和能力是一回事。
256
+
257
+ 但 **这些都是单 agent 内部的记忆**。Hive 是多 agent 协作工作台,下一步要做的事是把它们打通:让整支团队 **共享一座长时记忆库**——Worker A 今天踩的坑,明天 Orchestrator 派给 Worker B 时能自动调来当上下文。
258
+
259
+ 底层我们计划接 **[EverOS](https://github.com/EverMind-AI/EverOS)**([EverMind](https://evermind.ai/) 出品的开源长时记忆 OS,目前在 LoCoMo / LongMemEval / HaluMem 三个记忆 benchmark 上 SOTA)当跨 agent 的记忆后端。它的四层架构(Agentic / Memory / Index / API+MCP)跟 Hive 的多 PTY 协作模型很搭:每个 agent 各跑各的 CLI session,团队级的事实和模式凝在 EverOS,Orchestrator 派单时一并喂给 worker。
260
+
261
+ 进度跟踪:[#6](https://github.com/tt-a1i/hive/issues/6)——想看进度或提建议,在 issue 留 +1。
262
+
263
+ ## 另一种形态:squad
264
+
265
+ 如果你更喜欢 **纯 CLI、零后台进程、能直接在 SSH 进的远端服务器上跑** 的形态,[squad](https://github.com/mco-org/squad) 是同一个想法的另一条路线——SQLite 当通信层,每个 agent 各自开一个终端。两个项目互不替代,按工作流挑就行:
266
+
267
+ - **Hive** — 想要可视化工作台、一键重启、侧边栏切 workspace、给团队演示
268
+ - **squad** — 活在 tmux 里、SSH 远端开发、不想跑额外后台进程、Windows server
269
+
270
+ ## 鸣谢
271
+
272
+ Hive 的"模板市场"内置了两份社区角色 prompt 库的快照,两份都按各自上游的 MIT 许可分发:
273
+
274
+ - 英文版(界面切到 EN 时使用):[`msitarzewski/agency-agents`](https://github.com/msitarzewski/agency-agents)
275
+ - 中文版(界面切到中文时使用):[`jnMetaCode/agency-agents-zh`](https://github.com/jnMetaCode/agency-agents-zh)
276
+
277
+ 上游内容未做修改,许可证文本保留在 `vendor/marketplace/<lang>/LICENSE`;快照通过 `pnpm sync:marketplace` 在 hive 发版前刷新。
278
+
279
+ ## License
237
280
 
238
- 详细边界见 [LICENSE.BSL](LICENSE.BSL) 的 Additional Use Grant
281
+ Hive 在 Business Source License 1.1 下开源。个人使用、内部部署、嵌入、fork 都可以;详细边界见 [LICENSE.BSL](LICENSE.BSL)。
Binary file
@@ -65,6 +65,26 @@ const maybePrintUpdateHint = async (versionService) => {
65
65
  return;
66
66
  console.log(`Hive update available: ${info.current_version} -> ${info.latest_version}. Run: ${info.install_hint}`);
67
67
  };
68
+ const isListenError = (error) => error instanceof Error && typeof error.code === 'string';
69
+ const formatPortInUseMessage = (port) => [
70
+ `Hive could not start because port ${port} is already in use.`,
71
+ '',
72
+ 'Another Hive instance may already be running:',
73
+ ` http://127.0.0.1:${port}`,
74
+ '',
75
+ 'Options:',
76
+ ' - Open the existing Hive window.',
77
+ ' - Stop the process using that port:',
78
+ ` lsof -tiTCP:${port} -sTCP:LISTEN | xargs kill`,
79
+ ' - Start Hive on another port:',
80
+ ` hive --port ${port + 1}`,
81
+ ].join('\n');
82
+ const formatListenError = (error, requestedPort) => {
83
+ if (isListenError(error) && error.code === 'EADDRINUSE') {
84
+ return new Error(formatPortInUseMessage(error.port ?? requestedPort));
85
+ }
86
+ return error;
87
+ };
68
88
  export const runHiveCommand = async (argv, options = {}) => {
69
89
  const port = parsePort(argv);
70
90
  const dataDir = resolveDataDir();
@@ -76,13 +96,19 @@ export const runHiveCommand = async (argv, options = {}) => {
76
96
  }),
77
97
  versionService,
78
98
  });
79
- app.server.listen(port, '127.0.0.1');
80
- await Promise.race([
81
- once(app.server, 'listening'),
82
- once(app.server, 'error').then(([error]) => {
83
- throw error;
84
- }),
85
- ]);
99
+ try {
100
+ app.server.listen(port, '127.0.0.1');
101
+ await Promise.race([
102
+ once(app.server, 'listening'),
103
+ once(app.server, 'error').then(([error]) => {
104
+ throw error;
105
+ }),
106
+ ]);
107
+ }
108
+ catch (error) {
109
+ await app.store.close();
110
+ throw formatListenError(error, port);
111
+ }
86
112
  const address = app.server.address();
87
113
  if (!address || typeof address === 'string') {
88
114
  throw new Error('Server did not bind to an inet port');
@@ -146,7 +172,7 @@ if (isMainModule) {
146
172
  }
147
173
  else {
148
174
  runHiveCommand(argv).catch((error) => {
149
- console.error(error);
175
+ console.error(error instanceof Error ? error.message : error);
150
176
  process.exit(1);
151
177
  });
152
178
  }
@@ -1,3 +1,7 @@
1
+ interface ParsedCancelArgs {
2
+ dispatchId: string;
3
+ reason: string;
4
+ }
1
5
  export interface ParsedReportArgs {
2
6
  artifacts: string[];
3
7
  dispatchId: string | undefined;
@@ -5,5 +9,7 @@ export interface ParsedReportArgs {
5
9
  useStdin: boolean;
6
10
  }
7
11
  export declare const parseReportArgs: (args: string[], command?: string) => ParsedReportArgs;
12
+ export declare const parseCancelArgs: (args: string[]) => ParsedCancelArgs;
8
13
  export declare const readStdinToString: (command?: string) => Promise<string>;
9
14
  export declare const runTeamCommand: (argv: string[]) => Promise<void>;
15
+ export {};
@@ -10,6 +10,7 @@ const TEAM_USAGE = [
10
10
  'Usage:',
11
11
  ' team list',
12
12
  ' team send <worker-name> "<task>"',
13
+ ' team cancel --dispatch <dispatch-id> "<reason>"',
13
14
  ' team report "<result>" [--dispatch <dispatch-id>] [--artifact <path>]',
14
15
  ' team report --stdin [--dispatch <dispatch-id>] [--artifact <path>]',
15
16
  ' team status "<current status>" [--artifact <path>]',
@@ -80,6 +81,7 @@ const postJson = async (baseUrl, path, body) => {
80
81
  };
81
82
  const REPORT_USAGE = 'Usage: team report (<result> | --stdin) [--dispatch <dispatch-id>] [--artifact <path>]';
82
83
  const STATUS_USAGE = 'Usage: team status (<current status> | --stdin) [--artifact <path>]';
84
+ const CANCEL_USAGE = 'Usage: team cancel --dispatch <dispatch-id> <reason>';
83
85
  const usageFor = (command) => (command === 'status' ? STATUS_USAGE : REPORT_USAGE);
84
86
  const withUsage = (message, command) => `${message}\n\n${usageFor(command)}`;
85
87
  export const parseReportArgs = (args, command = 'report') => {
@@ -139,6 +141,39 @@ export const parseReportArgs = (args, command = 'report') => {
139
141
  }
140
142
  return { result: useStdin ? null : (positionals[0] ?? null), artifacts, dispatchId, useStdin };
141
143
  };
144
+ export const parseCancelArgs = (args) => {
145
+ const positionals = [];
146
+ let dispatchId;
147
+ for (let index = 0; index < args.length; index += 1) {
148
+ const arg = args[index];
149
+ if (arg === undefined)
150
+ continue;
151
+ if (arg === '--dispatch') {
152
+ const next = args[index + 1];
153
+ if (next === undefined || next.startsWith('--')) {
154
+ throw new Error(`--dispatch requires a value\n\n${CANCEL_USAGE}`);
155
+ }
156
+ dispatchId = next;
157
+ index += 1;
158
+ continue;
159
+ }
160
+ if (arg.startsWith('--')) {
161
+ throw new Error(`Unknown argument: ${arg}\n\n${CANCEL_USAGE}`);
162
+ }
163
+ positionals.push(arg);
164
+ }
165
+ if (!dispatchId) {
166
+ throw new Error(`Missing --dispatch <dispatch-id>\n\n${CANCEL_USAGE}`);
167
+ }
168
+ if (positionals.length === 0) {
169
+ throw new Error(`Missing <reason>\n\n${CANCEL_USAGE}`);
170
+ }
171
+ const reason = positionals.join(' ').trim();
172
+ if (!reason) {
173
+ throw new Error(`Missing <reason>\n\n${CANCEL_USAGE}`);
174
+ }
175
+ return { dispatchId, reason };
176
+ };
142
177
  export const readStdinToString = async (command = 'report') => {
143
178
  if (process.stdin.isTTY) {
144
179
  throw new Error(withUsage('--stdin requires piped input, but stdin is a TTY. Did you forget to pipe content in?', command));
@@ -194,6 +229,19 @@ export const runTeamCommand = async (argv) => {
194
229
  console.log(JSON.stringify(await response.json()));
195
230
  return;
196
231
  }
232
+ if (command === 'cancel') {
233
+ const cancel = parseCancelArgs(args);
234
+ const env = getHiveEnv();
235
+ const baseUrl = getBaseUrl(env);
236
+ await postJson(baseUrl, '/api/team/cancel', {
237
+ dispatch_id: cancel.dispatchId,
238
+ project_id: env.HIVE_PROJECT_ID,
239
+ from_agent_id: env.HIVE_AGENT_ID,
240
+ token: env.HIVE_AGENT_TOKEN,
241
+ reason: cancel.reason,
242
+ });
243
+ return;
244
+ }
197
245
  if (command === 'status') {
198
246
  const report = parseReportArgs(args, 'status');
199
247
  const body = report.useStdin ? await readStdinToString('status') : (report.result ?? '');
@@ -1,8 +1,11 @@
1
1
  export const createAgentLaunchCache = (store) => {
2
2
  const launchConfigs = new Map();
3
3
  const workspaceByAgentId = new Map();
4
+ const missingLaunchConfigs = new Set();
4
5
  const cacheKey = (workspaceId, agentId) => `${workspaceId}:${agentId}`;
5
6
  const load = () => {
7
+ launchConfigs.clear();
8
+ workspaceByAgentId.clear();
6
9
  for (const row of store.listLaunchConfigs()) {
7
10
  launchConfigs.set(cacheKey(row.workspaceId, row.agentId), row.config);
8
11
  workspaceByAgentId.set(row.agentId, row.workspaceId);
@@ -11,21 +14,33 @@ export const createAgentLaunchCache = (store) => {
11
14
  load();
12
15
  return {
13
16
  get(workspaceId, agentId) {
14
- const config = launchConfigs.get(cacheKey(workspaceId, agentId));
17
+ const key = cacheKey(workspaceId, agentId);
18
+ const config = launchConfigs.get(key);
15
19
  if (config)
16
20
  return config;
21
+ if (missingLaunchConfigs.has(key)) {
22
+ throw new Error(`Agent launch config not found: ${agentId}`);
23
+ }
17
24
  load();
18
- const reloadedConfig = launchConfigs.get(cacheKey(workspaceId, agentId));
25
+ const reloadedConfig = launchConfigs.get(key);
19
26
  if (reloadedConfig)
20
27
  return reloadedConfig;
28
+ missingLaunchConfigs.add(key);
21
29
  throw new Error(`Agent launch config not found: ${agentId}`);
22
30
  },
23
31
  peek(workspaceId, agentId) {
24
- const config = launchConfigs.get(cacheKey(workspaceId, agentId));
32
+ const key = cacheKey(workspaceId, agentId);
33
+ const config = launchConfigs.get(key);
25
34
  if (config)
26
35
  return config;
36
+ if (missingLaunchConfigs.has(key))
37
+ return undefined;
27
38
  load();
28
- return launchConfigs.get(cacheKey(workspaceId, agentId));
39
+ const reloadedConfig = launchConfigs.get(key);
40
+ if (reloadedConfig)
41
+ return reloadedConfig;
42
+ missingLaunchConfigs.add(key);
43
+ return undefined;
29
44
  },
30
45
  getWorkspaceId(agentId) {
31
46
  return workspaceByAgentId.get(agentId);
@@ -41,12 +56,16 @@ export const createAgentLaunchCache = (store) => {
41
56
  sessionIdCapture: input.sessionIdCapture ?? null,
42
57
  };
43
58
  store.saveLaunchConfig(workspaceId, agentId, normalized);
44
- launchConfigs.set(cacheKey(workspaceId, agentId), normalized);
59
+ const key = cacheKey(workspaceId, agentId);
60
+ launchConfigs.set(key, normalized);
61
+ missingLaunchConfigs.delete(key);
45
62
  workspaceByAgentId.set(agentId, workspaceId);
46
63
  },
47
64
  remove(workspaceId, agentId) {
48
65
  store.deleteLaunchConfig(workspaceId, agentId);
49
- launchConfigs.delete(cacheKey(workspaceId, agentId));
66
+ const key = cacheKey(workspaceId, agentId);
67
+ launchConfigs.delete(key);
68
+ missingLaunchConfigs.add(key);
50
69
  workspaceByAgentId.delete(agentId);
51
70
  },
52
71
  setWorkspaceId(agentId, workspaceId) {
@@ -27,7 +27,7 @@ interface AgentRunRecord extends AgentRunSnapshot {
27
27
  resize: (cols: number, rows: number) => void;
28
28
  resume: () => void;
29
29
  stop: () => void;
30
- write: (text: string) => void;
30
+ write: (input: Buffer | string) => void;
31
31
  };
32
32
  onExit?: (event: {
33
33
  runId: string;
@@ -40,7 +40,7 @@ interface AgentManager {
40
40
  resizeRun: (runId: string, cols: number, rows: number) => void;
41
41
  resumeRun: (runId: string) => void;
42
42
  startAgent: (input: StartAgentInput) => Promise<AgentRunSnapshot>;
43
- writeInput: (runId: string, text: string) => void;
43
+ writeInput: (runId: string, input: Buffer | string) => void;
44
44
  getRun: (runId: string) => AgentRunSnapshot;
45
45
  removeRun: (runId: string) => void;
46
46
  stopRun: (runId: string) => void;
@@ -29,6 +29,9 @@ export interface AgentRuntime {
29
29
  requireActiveRun?: boolean;
30
30
  }) => void;
31
31
  writeSendPrompt: (workspaceId: string, workerId: string, dispatchId: string, fromAgentName: string, workerDescription: string, text: string) => void;
32
+ writeCancelPrompt: (workspaceId: string, workerId: string, dispatchId: string, reason: string, input?: {
33
+ requireActiveRun?: boolean;
34
+ }) => void;
32
35
  writeUserInputPrompt: (workspaceId: string, text: string) => void;
33
36
  }
34
37
  export type { StartAgentOptions };
@@ -115,6 +115,9 @@ export const createAgentRuntime = (agentManager, agentRunStore, sessionStore, ge
115
115
  writeSendPrompt(workspaceId, workerId, dispatchId, fromAgentName, workerDescription, text) {
116
116
  stdinDispatcher.writeSendPrompt(workspaceId, workerId, dispatchId, fromAgentName, workerDescription, text);
117
117
  },
118
+ writeCancelPrompt(workspaceId, workerId, dispatchId, reason, input = {}) {
119
+ stdinDispatcher.writeCancelPrompt(workspaceId, workerId, dispatchId, reason, input);
120
+ },
118
121
  writeUserInputPrompt(workspaceId, text) {
119
122
  stdinDispatcher.writeUserInputPrompt(workspaceId, text);
120
123
  },
@@ -15,7 +15,7 @@ export const buildAgentStartupInstructions = ({ agent, workspace, }) => {
15
15
  '',
16
16
  ];
17
17
  if (agent.role === 'orchestrator') {
18
- lines.push('你的职责:', '- 直接响应 user,澄清需求并拆解任务', `- 维护 ${TASKS_RELATIVE_PATH}`, '- 按 worker 名称派单,并根据汇报推进下一步', '', '可用 team 命令:', '- team list', '- team send <worker-name> "<task>"', '', '派单时必须使用 worker name,不要使用 worker id。', '', 'Hive worker 派单规则:', ...getHiveTeamRules(agent));
18
+ lines.push('你的职责:', '- 直接响应 user,澄清需求并拆解任务', `- 维护 ${TASKS_RELATIVE_PATH}`, '- 按 worker 名称派单,并根据汇报推进下一步', '', '可用 team 命令:', '- team list', '- team send <worker-name> "<task>"', '- team cancel --dispatch <id> "<reason>"', '', '派单时必须使用 worker name,不要使用 worker id。', '取消未完成派单时必须使用 dispatch id。', '', 'Hive worker 派单规则:', ...getHiveTeamRules(agent));
19
19
  }
20
20
  else {
21
21
  lines.push('可用 team 命令:', '- team report "<完整汇报>" [--dispatch <id>] [--artifact <path>] 完成/失败/阻塞汇报', '- team report --stdin [--dispatch <id>] [--artifact <path>] 同上,从 stdin 读正文(适合多行/含引号/特殊字符)', '- team status "<当前状态>" [--artifact <path>] 中段进度/待命/接入状态', '- team status --stdin [--artifact <path>] 同上,从 stdin 读正文', '- team list 查看 workspace 内的 worker(含状态)', '- team --help 仅查命令用法;**不是**汇报手段', '', '语法要点:', '- 正文是第一个 positional argument,flag 顺序任意:`team report "结论" --dispatch X` 和 `team report --dispatch X "结论"` 都成立。', "- 长正文(多行 / 含引号 / shell 特殊字符 / heredoc)一律走 `--stdin`,并用 *quoted* heredoc(`<<'EOF'`)防止 shell 展开 $vars / 反引号 / 命令替换:", " 例:`team report --stdin --dispatch <id> <<'EOF'`", ' `... 长报告(含 $VAR、`backtick`、"引号" 都按字面量保留)...`', ' `EOF`', '- CLI 报错会同时打印 USAGE,可直接对照修正参数。', '', '完成任务后必须执行 `team report "<结论>"`。', '失败、阻塞或部分完成也用 `team report "<当前状态与原因>"` 汇报。', '没有进行中的任务时,用 `team status "<当前状态>"` 汇报接入、待命或阻塞状态。', '不要调用 team send;worker 之间不能直接派单。', '', 'Hive worker 边界:', ...getHiveTeamRules(agent));
@@ -13,6 +13,7 @@ export declare const buildOrchestratorReportPayload: (workerName: string, text:
13
13
  export declare const buildOrchestratorStatusPayload: (workerName: string, text: string, artifacts: string[]) => string;
14
14
  export declare const buildOrchestratorUserInputPayload: (text: string) => string;
15
15
  export declare const buildWorkerDispatchPayload: (fromAgentName: string, workerDescription: string, dispatchId: string, text: string) => string;
16
+ export declare const buildWorkerCancelPayload: (dispatchId: string, reason: string) => string;
16
17
  export declare const createAgentStdinDispatcher: ({ agentManager, getLaunchConfig, getWorkspaceId, registry, syncRun, }: AgentStdinDispatcherInput) => {
17
18
  writeReportPrompt(workspaceId: string, workerName: string, text: string, artifacts: string[], input?: {
18
19
  requireActiveRun?: boolean;
@@ -21,6 +22,9 @@ export declare const createAgentStdinDispatcher: ({ agentManager, getLaunchConfi
21
22
  requireActiveRun?: boolean;
22
23
  }): void;
23
24
  writeSendPrompt(workspaceId: string, workerId: string, dispatchId: string, fromAgentName: string, workerDescription: string, text: string): void;
25
+ writeCancelPrompt(workspaceId: string, workerId: string, dispatchId: string, reason: string, input?: {
26
+ requireActiveRun?: boolean;
27
+ }): void;
24
28
  writeUserInputPrompt(workspaceId: string, text: string): void;
25
29
  };
26
30
  export {};
@@ -33,6 +33,15 @@ export const buildWorkerDispatchPayload = (fromAgentName, workerDescription, dis
33
33
  buildWorkerReminderTail(dispatchId),
34
34
  '',
35
35
  ].join('\n');
36
+ export const buildWorkerCancelPayload = (dispatchId, reason) => [
37
+ `[Hive 系统消息:dispatch ${dispatchId} 已取消]`,
38
+ '',
39
+ '请停止执行这条派单,不要再为它调用 team report。',
40
+ '',
41
+ '取消原因:',
42
+ reason,
43
+ '',
44
+ ].join('\n');
36
45
  export const createAgentStdinDispatcher = ({ agentManager, getLaunchConfig, getWorkspaceId, registry, syncRun, }) => {
37
46
  const writeToActiveAgentRun = (workspaceId, agentId, text, input = {}) => {
38
47
  const run = registry
@@ -72,6 +81,9 @@ export const createAgentStdinDispatcher = ({ agentManager, getLaunchConfig, getW
72
81
  writeSendPrompt(workspaceId, workerId, dispatchId, fromAgentName, workerDescription, text) {
73
82
  writeToActiveAgentRun(workspaceId, workerId, buildWorkerDispatchPayload(fromAgentName, workerDescription, dispatchId, text), { requireActiveRun: true });
74
83
  },
84
+ writeCancelPrompt(workspaceId, workerId, dispatchId, reason, input = {}) {
85
+ writeToActiveAgentRun(workspaceId, workerId, buildWorkerCancelPayload(dispatchId, reason), input);
86
+ },
75
87
  writeUserInputPrompt(workspaceId, text) {
76
88
  writeToActiveAgentRun(workspaceId, `${workspaceId}:orchestrator`, buildOrchestratorUserInputPayload(text));
77
89
  },
@@ -129,6 +129,6 @@ export const createApp = ({ store, pickFolderService = pickFolder, openWorkspace
129
129
  sendJson(response, 500, { error: message });
130
130
  }
131
131
  });
132
- createTerminalWebSocketServer(server, store);
132
+ createTerminalWebSocketServer(server, store, tasksFileService);
133
133
  return { server, store };
134
134
  };