@johpaz/hive-agents 0.0.47 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +128 -897
  3. package/dist/hive.js +222237 -206295
  4. package/dist/tool-worker.js +226 -927
  5. package/dist/ui/assets/A2UIPage-D4nzp5NV.js +8 -0
  6. package/dist/ui/assets/AgentCreateForm-M2RhjeA1.js +1 -0
  7. package/dist/ui/assets/AgentDetailPage-DkFRtj8g.js +1 -0
  8. package/dist/ui/assets/AgentNewPage-CfBU7puz.js +1 -0
  9. package/dist/ui/assets/AgentsPage-Ctzq2LWx.js +10 -0
  10. package/dist/ui/assets/ApiClientPage-DKbGO1QW.js +3 -0
  11. package/dist/ui/assets/ChannelsPage-H6rgr8DQ.js +8 -0
  12. package/dist/ui/assets/DashboardPage-BIjYGf4m.js +6 -0
  13. package/dist/ui/assets/{LoginPage-BTxJdFVG.js → LoginPage-DazoxtBJ.js} +1 -1
  14. package/dist/ui/assets/{LogsPage-DVV2eHbh.js → LogsPage-DMZ6KtQ3.js} +1 -1
  15. package/dist/ui/assets/MeetingPage-CSLFvHL7.js +1 -0
  16. package/dist/ui/assets/ModelSelector-BCfvugHB.js +1 -0
  17. package/dist/ui/assets/{NotFound-BIUDlIXU.js → NotFound-Bpr12V51.js} +1 -1
  18. package/dist/ui/assets/Office3DPage-BE6Epe0d.js +4614 -0
  19. package/dist/ui/assets/Office3DPage-C3SIzd2H.css +1 -0
  20. package/dist/ui/assets/ProvidersPage-D0cApfM1.js +1 -0
  21. package/dist/ui/assets/{RecoverPage-7YDQysBL.js → RecoverPage-BVUPHG9z.js} +1 -1
  22. package/dist/ui/assets/SettingsPage-DCZ4nql4.js +9 -0
  23. package/dist/ui/assets/SetupPage-In19p30M.js +1 -0
  24. package/dist/ui/assets/WebChatPage-ByVBSzxL.js +29 -0
  25. package/dist/ui/assets/{activity-c3pNngT_.js → activity-BIIli7ET.js} +1 -1
  26. package/dist/ui/assets/agentCapabilities-D1PD9yFH.js +1 -0
  27. package/dist/ui/assets/alert-CQlRq6sv.js +1 -0
  28. package/dist/ui/assets/arrow-left-BfcnX8Er.js +1 -0
  29. package/dist/ui/assets/arrow-right-Q-dzAn8k.js +1 -0
  30. package/dist/ui/assets/arrow-up-right-Bf-8wrUQ.js +1 -0
  31. package/dist/ui/assets/badge-DKGZbVZJ.js +1 -0
  32. package/dist/ui/assets/{calendar-B-KZ9RQO.js → calendar-S9-_Q6QR.js} +1 -1
  33. package/dist/ui/assets/{card-CNf6BS2e.js → card-D3Nw3kh3.js} +1 -1
  34. package/dist/ui/assets/check-CryV78SQ.js +1 -0
  35. package/dist/ui/assets/chevron-down-QCtMs-Af.js +1 -0
  36. package/dist/ui/assets/chevron-left-dTGbyl5G.js +1 -0
  37. package/dist/ui/assets/chevron-right-D0GjXbnO.js +1 -0
  38. package/dist/ui/assets/chevron-up-Cg0jO8uT.js +1 -0
  39. package/dist/ui/assets/{circle-alert-KuAm2FWh.js → circle-alert-DTVW4R94.js} +1 -1
  40. package/dist/ui/assets/circle-check-BAolxswA.js +1 -0
  41. package/dist/ui/assets/{circle-x-DjLkFDO8.js → circle-x-CJXbXzRh.js} +1 -1
  42. package/dist/ui/assets/{copy-Bu5d7C-0.js → copy-X_TPpA-A.js} +1 -1
  43. package/dist/ui/assets/{dialog-Jk4bieO4.js → dialog-uUBz_NIB.js} +1 -1
  44. package/dist/ui/assets/dist-CD_qfA30.js +1 -0
  45. package/dist/ui/assets/{download-Cjbk4Rek.js → download-C-fXu08w.js} +1 -1
  46. package/dist/ui/assets/earth-CTsVjCmp.js +1 -0
  47. package/dist/ui/assets/ellipsis-vertical-5zBh5yzc.js +1 -0
  48. package/dist/ui/assets/{external-link-6sTlRDUR.js → external-link-CvpRhwC_.js} +1 -1
  49. package/dist/ui/assets/{eye-Df8o0tkC.js → eye-CM-HQEWU.js} +1 -1
  50. package/dist/ui/assets/{file-text-lnxnjBp0.js → file-text-lwkvYGtA.js} +1 -1
  51. package/dist/ui/assets/{gateway-url-DwzPmoc8.js → gateway-url-BlnabM5e.js} +1 -1
  52. package/dist/ui/assets/gauge-CB-cas-h.js +1 -0
  53. package/dist/ui/assets/{history-CAF_R34_.js → history-eSHspWRr.js} +1 -1
  54. package/dist/ui/assets/index-D489S18g.css +2 -0
  55. package/dist/ui/assets/index-ZjAc-KQS.js +116 -0
  56. package/dist/ui/assets/{info-WjromB4Y.js → info-DTgFQ_jA.js} +1 -1
  57. package/dist/ui/assets/key-CeM9JJkq.js +1 -0
  58. package/dist/ui/assets/label-k0jYxoWW.js +1 -0
  59. package/dist/ui/assets/loader-circle-Dtfz4FWw.js +1 -0
  60. package/dist/ui/assets/lock-open-B089GUAJ.js +1 -0
  61. package/dist/ui/assets/mail--gNFIe4M.js +1 -0
  62. package/dist/ui/assets/{pause-VqeUmp2Z.js → pause-DjT1nwQM.js} +1 -1
  63. package/dist/ui/assets/pencil-6PRgdjiU.js +1 -0
  64. package/dist/ui/assets/play-tOrP0xUJ.js +1 -0
  65. package/dist/ui/assets/plus-Cnom3j47.js +1 -0
  66. package/dist/ui/assets/progress-DrI2UDu-.js +1 -0
  67. package/dist/ui/assets/radio-D-joO9J0.js +1 -0
  68. package/dist/ui/assets/{refresh-cw-CCzDCAuz.js → refresh-cw-BRrzoHQW.js} +1 -1
  69. package/dist/ui/assets/scroll-area-CfHn94Vb.js +1 -0
  70. package/dist/ui/assets/search-D277MUP0.js +1 -0
  71. package/dist/ui/assets/select-BOR8MsSL.js +1 -0
  72. package/dist/ui/assets/{send-BPk9XbIq.js → send-DIlj81PT.js} +1 -1
  73. package/dist/ui/assets/{settings-BGfrZ_zM.js → settings-CkBjgAEm.js} +1 -1
  74. package/dist/ui/assets/{shield-CxhcUT39.js → shield-U0hIjGzm.js} +1 -1
  75. package/dist/ui/assets/slider-CmE_z1Ii.js +1 -0
  76. package/dist/ui/assets/{sparkles-BhwlS1pc.js → sparkles-VXHGDbNh.js} +1 -1
  77. package/dist/ui/assets/{square-DMNWw4Hi.js → square-OHeetvN3.js} +1 -1
  78. package/dist/ui/assets/switch-DXcELPsM.js +1 -0
  79. package/dist/ui/assets/tabs-CxiybXcw.js +1 -0
  80. package/dist/ui/assets/terminal-C6YPcJl_.js +1 -0
  81. package/dist/ui/assets/{textarea-B6Z1Zc6W.js → textarea-rp6vsOZl.js} +1 -1
  82. package/dist/ui/assets/{trash-2-xD2o4SgX.js → trash-2-DQxm7DUM.js} +1 -1
  83. package/dist/ui/assets/{triangle-alert-pVIJGjga.js → triangle-alert-Dj8ZhmWj.js} +1 -1
  84. package/dist/ui/assets/{useHiveAgentsModelLoad-BnC4jLE-.js → useHiveAgentsModelLoad-COLvs-Ho.js} +1 -1
  85. package/dist/ui/assets/useOfficeModel-Cy7cAyEn.js +1 -0
  86. package/dist/ui/assets/useProviders-q6iROeWE.js +1 -0
  87. package/dist/ui/assets/utils-Dyb7SC2_.js +1 -0
  88. package/dist/ui/assets/vendor-charts-K3xcRl0X.js +60 -0
  89. package/dist/ui/assets/{vendor-query-DsWPbQdG.js → vendor-query-Dj8xYhQD.js} +1 -1
  90. package/dist/ui/assets/vendor-radix-D0s_k6Gp.js +63 -0
  91. package/dist/ui/assets/vendor-react-CPJEWbIG.js +1 -0
  92. package/dist/ui/assets/{vendor-router-gqiZ7xhx.js → vendor-router-zpB-76nT.js} +1 -1
  93. package/dist/ui/assets/volume-x-Bm735CXN.js +1 -0
  94. package/dist/ui/assets/wifi-DklBfOZ6.js +1 -0
  95. package/dist/ui/assets/{zap-B4RaNNO5.js → zap-BEZNJ0i0.js} +1 -1
  96. package/dist/ui/index.html +16 -13
  97. package/dist/ui/logoblack.png +0 -0
  98. package/dist/ui/logocolor-dark.png +0 -0
  99. package/dist/ui/logocolorbg.png +0 -0
  100. package/dist/ui/logodoradobg.png +0 -0
  101. package/package.json +18 -15
  102. package/packages/cli/src/adapters/config.ts +1 -80
  103. package/packages/cli/src/adapters/factory.ts +0 -45
  104. package/packages/cli/src/adapters/index.ts +0 -8
  105. package/packages/cli/src/commands/doctor.ts +156 -1
  106. package/packages/cli/src/commands/gateway.ts +2 -9
  107. package/packages/cli/src/commands/onboard.ts +126 -59
  108. package/packages/cli/src/index.ts +9 -11
  109. package/packages/cli/src/ui-bundle.generated.ts +9 -92
  110. package/packages/core/src/agent/acceptance-checks.ts +172 -0
  111. package/packages/core/src/agent/agent-catalog.ts +348 -0
  112. package/packages/core/src/agent/agent-loop.ts +204 -28
  113. package/packages/core/src/agent/capability-search.ts +5 -5
  114. package/packages/core/src/agent/catalog-selector.ts +103 -0
  115. package/packages/core/src/agent/compaction.ts +52 -42
  116. package/packages/core/src/agent/context-compiler.ts +185 -63
  117. package/packages/core/src/agent/conversation-store.ts +56 -3
  118. package/packages/core/src/agent/curator.ts +129 -34
  119. package/packages/core/src/agent/delegation-runtime.ts +241 -0
  120. package/packages/core/src/agent/goal-runner.ts +111 -32
  121. package/packages/core/src/agent/index.ts +17 -0
  122. package/packages/core/src/agent/llm-client.ts +34 -2
  123. package/packages/core/src/agent/llm-providers/anthropic.ts +10 -7
  124. package/packages/core/src/agent/llm-providers/hiveagents.ts +1 -1
  125. package/packages/core/src/agent/llm-providers/interface.ts +16 -5
  126. package/packages/core/src/agent/llm-providers/modelscope.ts +5 -0
  127. package/packages/core/src/agent/llm-providers/openai-compat-base.ts +1 -1
  128. package/packages/core/src/agent/llm-providers/z-ai.ts +5 -0
  129. package/packages/core/src/agent/minimal-loadout.ts +47 -0
  130. package/packages/core/src/agent/playbook-selector.ts +1 -1
  131. package/packages/core/src/agent/prompt-builder.ts +4 -0
  132. package/packages/core/src/agent/proof-packet.ts +6 -1
  133. package/packages/core/src/agent/providers/index.ts +9 -4
  134. package/packages/core/src/agent/routing-intent.ts +22 -0
  135. package/packages/core/src/agent/run-store.ts +24 -3
  136. package/packages/core/src/agent/service.ts +2 -2
  137. package/packages/core/src/agent/skill-selector.ts +12 -31
  138. package/packages/core/src/agent/tool-selector.ts +61 -36
  139. package/packages/core/src/agent/tracer.ts +5 -1
  140. package/packages/core/src/artifacts/store.ts +162 -0
  141. package/packages/core/src/canvas/canvas-manager.ts +5 -234
  142. package/packages/core/src/canvas/emitter.ts +121 -69
  143. package/packages/core/src/canvas/index.ts +0 -2
  144. package/packages/core/src/channels/base.ts +3 -1
  145. package/packages/core/src/channels/manager.ts +117 -25
  146. package/packages/core/src/channels/webchat.ts +4 -8
  147. package/packages/core/src/channels/whatsapp.ts +6 -1
  148. package/packages/core/src/config/loader.ts +13 -23
  149. package/packages/core/src/events/agent-bus.ts +0 -31
  150. package/packages/core/src/events/channel-narration.ts +150 -0
  151. package/packages/core/src/events/narration.ts +82 -0
  152. package/packages/core/src/events/tool-narration.ts +62 -0
  153. package/packages/core/src/gateway/channel-notify.ts +43 -10
  154. package/packages/core/src/gateway/delegation-groups.ts +258 -0
  155. package/packages/core/src/gateway/delegation-notify.ts +103 -0
  156. package/packages/core/src/gateway/durable-queue.ts +33 -2
  157. package/packages/core/src/gateway/helpers/index.ts +2 -2
  158. package/packages/core/src/gateway/helpers/narration.ts +4 -57
  159. package/packages/core/src/gateway/helpers/redact.ts +1 -1
  160. package/packages/core/src/gateway/helpers/ui-source.ts +67 -0
  161. package/packages/core/src/gateway/initializer.ts +15 -13
  162. package/packages/core/src/gateway/job-executors.ts +197 -104
  163. package/packages/core/src/gateway/lane-queue.ts +1 -1
  164. package/packages/core/src/gateway/notification-inbox.ts +57 -0
  165. package/packages/core/src/gateway/resolver.ts +11 -25
  166. package/packages/core/src/gateway/routes/agents.ts +91 -1
  167. package/packages/core/src/gateway/routes/auth.ts +21 -42
  168. package/packages/core/src/gateway/routes/channels.ts +15 -1
  169. package/packages/core/src/gateway/routes/chat.ts +6 -6
  170. package/packages/core/src/gateway/routes/cron-api.ts +0 -4
  171. package/packages/core/src/gateway/routes/mcp.ts +0 -63
  172. package/packages/core/src/gateway/routes/meeting.ts +245 -0
  173. package/packages/core/src/gateway/routes/models.ts +69 -12
  174. package/packages/core/src/gateway/routes/providers.ts +111 -28
  175. package/packages/core/src/gateway/routes/setup.ts +92 -35
  176. package/packages/core/src/gateway/routes/skills.ts +2 -2
  177. package/packages/core/src/gateway/routes/system.ts +31 -10
  178. package/packages/core/src/gateway/routes/users.ts +24 -1
  179. package/packages/core/src/gateway/routes/voice.ts +3 -0
  180. package/packages/core/src/gateway/server.ts +207 -141
  181. package/packages/core/src/gateway/session.ts +6 -4
  182. package/packages/core/src/gateway/slash-commands.ts +7 -6
  183. package/packages/core/src/gateway/webchat-turn.ts +63 -13
  184. package/packages/core/src/index.ts +3 -0
  185. package/packages/core/src/mcp/hot-reload.ts +14 -7
  186. package/packages/core/src/mcp/singleton.ts +0 -3
  187. package/packages/core/src/mcp/tool-sync.ts +2 -2
  188. package/packages/core/src/resilience/retry.ts +1 -1
  189. package/packages/core/src/scheduler/CronScheduler.ts +3 -1
  190. package/packages/core/src/scheduler/integration.ts +1 -1
  191. package/packages/core/src/storage/bootstrap.ts +34 -10
  192. package/packages/core/src/storage/collections.ts +167 -27
  193. package/packages/core/src/storage/crypto.ts +147 -58
  194. package/packages/core/src/storage/hivedb.ts +9 -0
  195. package/packages/core/src/storage/model-id.ts +53 -0
  196. package/packages/core/src/storage/onboarding.ts +160 -34
  197. package/packages/core/src/storage/reconcile.ts +2 -5
  198. package/packages/core/src/storage/seed.ts +436 -158
  199. package/packages/core/src/storage/usage.ts +61 -132
  200. package/packages/core/src/storage/user-email.ts +11 -0
  201. package/packages/core/src/tool-runtime/index.ts +69 -23
  202. package/packages/core/src/tool-runtime/worker-tools.ts +4 -2
  203. package/packages/core/src/{canvas/a2ui-tools.ts → tools/a2ui/index.ts} +17 -8
  204. package/packages/core/src/tools/agents/index.ts +566 -85
  205. package/packages/core/src/tools/core/index.ts +28 -10
  206. package/packages/core/src/tools/cron/index.ts +1 -6
  207. package/packages/core/src/tools/index.ts +19 -46
  208. package/packages/core/src/tools/types.ts +1 -1
  209. package/packages/core/src/tools/web/artifact-inspect.ts +23 -0
  210. package/packages/core/src/tools/web/browser-backend.ts +129 -0
  211. package/packages/core/src/tools/web/browser-screenshot.ts +26 -5
  212. package/packages/core/src/tools/web/browser-service.ts +75 -35
  213. package/packages/core/src/tools/web/index.ts +3 -0
  214. package/packages/core/src/tools/web/webview-backend.ts +412 -0
  215. package/packages/core/src/utils/logger.ts +58 -30
  216. package/packages/core/src/utils/toon.ts +0 -20
  217. package/packages/core/src/voice/index.ts +108 -17
  218. package/packages/mcp/src/manager.ts +8 -7
  219. package/packages/mcp/src/transports/sse.ts +0 -4
  220. package/packages/mcp/src/transports/websocket.ts +0 -6
  221. package/packages/skills/src/bundled/{canvas → a2ui}/a2ui_dashboard/SKILL.md +4 -4
  222. package/packages/skills/src/bundled/{canvas → a2ui}/a2ui_form/SKILL.md +4 -4
  223. package/packages/skills/src/bundled/{canvas → a2ui}/a2ui_interactive/SKILL.md +5 -5
  224. package/packages/skills/src/bundled/agents/agent_spawner/SKILL.md +24 -18
  225. package/packages/skills/src/bundled/agents/task_orchestrator/SKILL.md +48 -148
  226. package/packages/skills/src/bundled/cli/cli_pipeline/SKILL.md +9 -10
  227. package/packages/skills/src/bundled/cli/cli_safe_exec/SKILL.md +1 -1
  228. package/packages/skills/src/bundled/cli/software_engineering/SKILL.md +23 -0
  229. package/packages/skills/src/bundled/cron_manager/SKILL.md +2 -2
  230. package/packages/skills/src/bundled/cron_reminder/SKILL.md +7 -7
  231. package/packages/skills/src/bundled/filesystem/file_read_and_summarize/SKILL.md +11 -10
  232. package/packages/skills/src/bundled/filesystem/file_writer/SKILL.md +29 -35
  233. package/packages/skills/src/bundled/filesystem/workspace_file_operator/SKILL.md +22 -0
  234. package/packages/skills/src/bundled/search_knowledge/capability_discovery/SKILL.md +5 -4
  235. package/packages/skills/src/bundled-data.generated.ts +640 -1226
  236. package/dist/ui/assets/AgentCreateForm-DzaIT-dA.js +0 -1
  237. package/dist/ui/assets/AgentDetailPage-DgqcJceY.js +0 -1
  238. package/dist/ui/assets/AgentNewPage-CNSpoOSA.js +0 -1
  239. package/dist/ui/assets/AgentsPage-BMUJzTD6.js +0 -10
  240. package/dist/ui/assets/ApiClientPage-Cum_a_3j.js +0 -3
  241. package/dist/ui/assets/CanvasPage-o6oCP6uq.js +0 -33
  242. package/dist/ui/assets/ChannelsPage-WrB0zwLq.js +0 -8
  243. package/dist/ui/assets/DashboardPage-BCd6kNw0.js +0 -6
  244. package/dist/ui/assets/MeetingPage-BULIAWzq.js +0 -1
  245. package/dist/ui/assets/ModelSelector-BMYOChYb.js +0 -1
  246. package/dist/ui/assets/ProvidersPage-BVN5UZrI.js +0 -1
  247. package/dist/ui/assets/SettingsPage-CYmpFfDn.js +0 -9
  248. package/dist/ui/assets/SetupPage-Dnmb1Lbv.js +0 -1
  249. package/dist/ui/assets/WebChatPage-DmmdFhIC.js +0 -16
  250. package/dist/ui/assets/accordion-CnLzKNHK.js +0 -1
  251. package/dist/ui/assets/alert-B9J6KHmt.js +0 -1
  252. package/dist/ui/assets/alert-dialog-KcYQWcJ6.js +0 -1
  253. package/dist/ui/assets/arrow-left-CBcbX5EZ.js +0 -1
  254. package/dist/ui/assets/badge-88dRb4M8.js +0 -1
  255. package/dist/ui/assets/bell-8BqRYmzf.js +0 -1
  256. package/dist/ui/assets/chevron-down-DIosfU_U.js +0 -1
  257. package/dist/ui/assets/chevron-left-D4U-5A27.js +0 -1
  258. package/dist/ui/assets/chevron-right-CR4Skrf3.js +0 -1
  259. package/dist/ui/assets/chevron-up-CI-W21Fy.js +0 -1
  260. package/dist/ui/assets/circle-check-6Ard1-2z.js +0 -1
  261. package/dist/ui/assets/dropdown-menu-DDiaHg5y.js +0 -1
  262. package/dist/ui/assets/es-4I-joeZz.js +0 -1
  263. package/dist/ui/assets/folder-open-DJBLDFjv.js +0 -1
  264. package/dist/ui/assets/format-DsLPBxvt.js +0 -1
  265. package/dist/ui/assets/gauge-B8Tj43rC.js +0 -1
  266. package/dist/ui/assets/hexagon-6L79pgVK.js +0 -1
  267. package/dist/ui/assets/index-BmwTAwOF.css +0 -2
  268. package/dist/ui/assets/index-Cyw7L0Li.js +0 -116
  269. package/dist/ui/assets/key-DyKOoQh5.js +0 -1
  270. package/dist/ui/assets/label-B_15zZlR.js +0 -1
  271. package/dist/ui/assets/loader-circle-BmBOgYze.js +0 -1
  272. package/dist/ui/assets/lock-BS6OLXPv.js +0 -1
  273. package/dist/ui/assets/play-zJpWuhrr.js +0 -1
  274. package/dist/ui/assets/plus-BZQX26Dr.js +0 -1
  275. package/dist/ui/assets/progress-D5c-Eilm.js +0 -1
  276. package/dist/ui/assets/scroll-area-CihOx0cb.js +0 -1
  277. package/dist/ui/assets/search-DzDptO9s.js +0 -1
  278. package/dist/ui/assets/select-BQCOjM2j.js +0 -1
  279. package/dist/ui/assets/slider-bcUiUfx0.js +0 -14
  280. package/dist/ui/assets/switch-BR30E4ej.js +0 -1
  281. package/dist/ui/assets/table-B3aGEaVp.js +0 -1
  282. package/dist/ui/assets/tabs-LQidMKRS.js +0 -1
  283. package/dist/ui/assets/terminal--7G943As.js +0 -1
  284. package/dist/ui/assets/useProviders-C1xVKLxB.js +0 -1
  285. package/dist/ui/assets/utils-3pnRFmFe.js +0 -1
  286. package/dist/ui/assets/vendor-charts-Bu2lyBKP.js +0 -65
  287. package/dist/ui/assets/vendor-radix-D6rA7xKY.js +0 -63
  288. package/dist/ui/assets/vendor-react-BU5iQU4f.js +0 -1
  289. package/dist/ui/assets/volume-2-BekVQl6P.js +0 -1
  290. package/packages/core/src/agent/context-guard.ts +0 -91
  291. package/packages/core/src/agent/hooks.ts +0 -166
  292. package/packages/core/src/agent/providers.ts +0 -1
  293. package/packages/core/src/auth/auth.ts +0 -111
  294. package/packages/core/src/auth/index.ts +0 -1
  295. package/packages/core/src/canvas/canvas-tools.ts +0 -448
  296. package/packages/core/src/gateway/router.ts +0 -126
  297. package/packages/core/src/scheduler/dag/AgentExecutor.ts +0 -53
  298. package/packages/core/src/scheduler/dag/DAGScheduler.ts +0 -250
  299. package/packages/core/src/scheduler/dag/EventBridge.ts +0 -122
  300. package/packages/core/src/scheduler/dag/TaskGraph.ts +0 -192
  301. package/packages/core/src/scheduler/dag/TaskNode.ts +0 -97
  302. package/packages/core/src/scheduler/dag/TaskResult.ts +0 -22
  303. package/packages/core/src/scheduler/dag/errors.ts +0 -37
  304. package/packages/core/src/scheduler/dag/index.ts +0 -26
  305. package/packages/core/src/scheduler/dag/presets/ResearchPreset.ts +0 -97
  306. package/packages/core/src/scheduler/dag/strategies/ParallelStrategy.ts +0 -21
  307. package/packages/core/src/scheduler/dag/strategies/PriorityStrategy.ts +0 -46
  308. package/packages/core/src/scheduler/index.ts +0 -22
  309. package/packages/core/src/scheduler/task-driver.ts +0 -216
  310. package/packages/core/src/tools/canvas/index.ts +0 -420
  311. package/packages/core/src/tools/meeting/index.ts +0 -336
  312. package/packages/core/src/tools/projects/index.ts +0 -348
  313. package/packages/core/src/tools/voice/index.ts +0 -104
  314. package/packages/core/src/utils/index.ts +0 -5
  315. package/packages/skills/src/bundled/agents/code_delegator/SKILL.md +0 -156
  316. package/packages/skills/src/bundled/canvas/canvas_dashboard/SKILL.md +0 -146
  317. package/packages/skills/src/bundled/canvas/canvas_interact/SKILL.md +0 -148
  318. package/packages/skills/src/bundled/canvas/canvas_report/SKILL.md +0 -146
  319. package/packages/skills/src/bundled/meeting/meeting_transcription/SKILL.md +0 -213
  320. package/packages/skills/src/bundled/voice/voice_assistant/SKILL.md +0 -174
  321. package/packages/skills/src/bundled/voice/voice_input/SKILL.md +0 -146
  322. package/packages/skills/src/bundled/voice/voice_output/SKILL.md +0 -151
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: task_orchestrator
3
3
  description: "Orchestrate tasks across multiple workers with delegation, status tracking, and bus communication"
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  author: Hive Team
6
6
  icon: "🎻"
7
7
  category: agents
@@ -9,7 +9,7 @@ permissions:
9
9
  - agent_manage
10
10
  - agent_bus
11
11
  dependencies: []
12
- tools: [get_available_models, task_delegate, task_status, agent_find, agent_create, bus_publish, bus_read]
12
+ tools: [get_available_models, task_delegate, task_list, task_status, agent_find, agent_create, bus_publish, bus_read]
13
13
 
14
14
  # Structured skill fields
15
15
  triggers:
@@ -29,170 +29,70 @@ triggers:
29
29
  - "parallel tasks"
30
30
 
31
31
  preferred_agents: []
32
-
33
- steps:
34
- - step: 1
35
- action: get_available_models
36
- instruction: "Query available providers and models to select optimal model for new workers if needed"
37
- params:
38
- capabilities: "required specialty (coding, analysis, research)"
39
- output: available_models
40
-
41
- - step: 2
42
- action: agent_find
43
- instruction: "Find suitable workers for each task"
44
- params:
45
- search: "required specialty"
46
- output: available_workers
47
-
48
- - step: 3
49
- action: agent_create (if needed)
50
- instruction: "Create new worker if no suitable one exists, using optimal model from get_available_models"
51
- params:
52
- name: "specialty_worker"
53
- providerId: "from get_available_models"
54
- modelId: "from get_available_models"
55
- output: new_worker
56
-
57
- - step: 4
58
- action: task_delegate
59
- instruction: "Delegate tasks to workers with clear instructions. Workers execute immediately (blocking)"
60
- params:
61
- worker_id: "selected worker ID"
62
- task_description: "Clear detailed instructions"
63
- task_id: "optional task DB ID for auto status update"
64
- project_id: "optional project ID for progress tracking"
65
- output: task_result
66
-
67
- - step: 5
68
- action: task_status
69
- instruction: "Monitor progress of delegated tasks"
70
- params:
71
- task_ids: "array of task IDs"
72
- output: task_statuses
73
-
74
- - step: 6
75
- action: bus_publish
76
- instruction: "Publish coordination messages for worker-to-worker communication"
77
- params:
78
- event_type: "coordination"
79
- to_worker_id: "target worker"
80
- content: "coordination message"
81
- output: published
82
-
83
- - step: 7
84
- action: bus_read
85
- instruction: "Check for messages from workers requiring coordinator attention"
86
- output: bus_messages
87
-
88
- rules:
89
- - "task_delegate is BLOCKING — worker executes immediately, result returned synchronously"
90
- - "ALWAYS use get_available_models BEFORE agent_create — providerId y modelId son OBLIGATORIOS"
91
- - "Assign tasks based on worker specialty and current load"
92
- - "Use bus_publish / bus_read for worker-to-worker coordination"
93
- - "Monitor task status continuously for multi-task orchestration"
94
- - "Publish to bus when workers need to share context"
95
- - "Check bus messages for worker requests or completion notifications"
96
-
97
- output_format:
98
- structure: markdown
99
- sections:
100
- - "tasks_delegated"
101
- - "workers_assigned"
102
- - "current_status"
103
- - "bus_messages"
104
- max_length: "Orchestration summary"
105
-
106
- examples:
107
- - user_input: "delegá la investigación y generación de contenido a workers"
108
- expected_behavior: "find_agent('researcher') → delegate_task → find_agent('writer') → delegate_task → monitor both"
109
-
110
- - user_input: "cuál es el estado de las tareas"
111
- expected_behavior: "get_task_status({ task_ids: [...] }) → return status for each task"
112
-
113
- - user_input: "avisale al writer que el researcher terminó"
114
- expected_behavior: "publish_to_bus({ to_worker_id: 'writer', content: 'Research complete, ready for content generation' })"
115
32
  ---
33
+ # Task Orchestrator — referencia operativa
34
+
35
+ La doctrina de orquestación (descomponer → delegar en paralelo → terminar el turno → sintetizar en el fan-in) está en tu system prompt. Esta skill es la referencia de las herramientas.
36
+
37
+ ## Herramientas
116
38
 
117
- # Task Orchestrator Skill
39
+ | Tool | Qué hace | Cuándo |
40
+ |------|----------|--------|
41
+ | `task_delegate` | Persiste y asigna una tarea a un worker | Delegar. Preferí `mode="async"` |
42
+ | `agent_find` | Descubre workers del catálogo y propios | Antes de delegar. Nunca para comprobar ejecución |
43
+ | `task_list` | Lista ejecuciones reales persistidas | El usuario pregunta y no conocés IDs |
44
+ | `task_status` | Estado de tareas por ID | El usuario pide estado antes del fan-in |
45
+ | `get_available_models` | Providers y modelos activos | Antes de crear un worker |
46
+ | `agent_create` | Crea un worker nuevo | Último recurso: nada del catálogo sirve |
47
+ | `bus_publish` / `bus_read` | Mensajes entre workers | Dependencias entre workers en vuelo |
118
48
 
119
- ## Cuándo se Activa
49
+ ## Fan-out
120
50
 
121
- Para coordinar múltiples workers, delegar tareas, monitorear progreso, y facilitar comunicación worker-to-worker.
51
+ ```javascript
52
+ // Tres partes independientes → tres llamadas en la MISMA respuesta
53
+ task_delegate({ worker_id: "web_researcher", task_description: "...", mode: "async" })
54
+ task_delegate({ worker_id: "office_document_agent", task_description: "...", mode: "async" })
55
+ task_delegate({ worker_id: "schedule_automation_agent", task_description: "...", mode: "async" })
56
+ ```
122
57
 
123
- ## Herramientas Disponibles
58
+ Cada llamada devuelve `task_id`, `job_id` y `run_id`: prueba de que la tarea quedó persistida.
124
59
 
125
- | Tool | Qué hace | Cuándo usarla |
126
- |------|----------|---------------|
127
- | `get_available_models` | Consulta providers y modelos activos | Al crear workers — seleccionar modelo óptimo |
128
- | `agent_find` | Busca workers disponibles | Antes de delegar |
129
- | `agent_create` | Crea nuevo worker | Si no hay uno adecuado |
130
- | `task_delegate` | Asigna y EJECUTA tarea | Delegar con ejecución inmediata |
131
- | `task_status` | Verifica estado de tareas | Monitorear progreso |
132
- | `bus_publish` | Publica mensaje | Coordinación worker-to-worker |
133
- | `bus_read` | Lee mensajes del bus | Ver solicitudes de workers |
60
+ ## Fan-in
61
+
62
+ Hive te reinvoca con:
63
+
64
+ ```
65
+ [Sistema] Todas las tareas delegadas de este turno alcanzaron estado terminal.
66
+ [{ task_id, worker_id, task, ok, result, error }, ...]
67
+ ```
134
68
 
135
- ## Workflow
69
+ Sintetizá una sola respuesta. Las entradas con `ok: false` se reportan con su motivo real.
136
70
 
137
- ### Delegación
138
- 1. **Consultar modelos** → `get_available_models({ capabilities })` — si necesita crear workers
139
- 2. **Buscar worker** → `agent_find({ search })`
140
- 3. **Si no existe** → `agent_create({...})` — con providerId y modelId OBLIGATORIOS
141
- 4. **Delegar** → `task_delegate({ worker_id, task_description, task_id?, project_id? })` — **BLOQUEANTE**
142
- 5. **Resultado retornado** → Worker ejecuta inmediatamente y devuelve resultado
71
+ ## Crear un worker (último recurso)
143
72
 
144
- ### Create Agent Config (providerId y modelId son OBLIGATORIOS)
145
73
  ```javascript
146
- // 1. Consultar modelos disponibles
147
74
  get_available_models({ capabilities: "analysis" })
148
- // → [{ providerId: "anthropic", modelId: "claude-sonnet-4-6", contextWindow: 200000 }, ...]
75
+ // → [{ providerId: "anthropic", modelId: "claude-sonnet-4-6", ... }]
149
76
 
150
- // 2. Crear worker con modelo óptimo
151
77
  agent_create({
152
78
  name: "data_analyst",
153
- description: "Especialista en análisis de datos y visualización",
79
+ description: "Experto en análisis de datos",
154
80
  system_prompt: "Sos analista de datos experto...",
155
81
  tools_json: ["web_search", "web_fetch", "save_note"],
156
- providerId: "anthropic", // OBLIGATORIO
157
- modelId: "claude-sonnet-4-6", // OBLIGATORIO
158
- tone: "analytical"
82
+ providerId: "anthropic", // OBLIGATORIO
83
+ modelId: "claude-sonnet-4-6", // OBLIGATORIO
159
84
  })
160
85
  ```
161
86
 
162
- ### Monitoreo
163
- 1. **Check estado** → `task_status({ task_ids })`
164
- 2. **Publicar coordinación** → `bus_publish()` si needed
165
- 3. **Leer bus** → `bus_read()` para respuestas
166
-
167
- ## Agent Bus Communication
168
-
169
- ```javascript
170
- // Worker notifica completado:
171
- bus_publish({
172
- event_type: "task_complete",
173
- to_worker_id: "next_worker",
174
- content: "Research done. Found 7 trends. Ready for content generation."
175
- })
176
-
177
- // Worker solicita contexto:
178
- bus_read() → [{ from: "writer", content: "Need research results" }]
179
- ```
180
-
181
- ## Mejores Prácticas
182
-
183
- - `task_delegate` es bloqueante — el resultado llega en el retorno de la tool
184
- - Consultar modelos disponibles antes de crear workers (`get_available_models`)
185
- - Asignar workers por especialidad (`agent_find`)
186
- - Usar `bus_publish` / `bus_read` para coordinación entre workers
187
- - Pasar `task_id` y `project_id` a `task_delegate` para auto-tracking de progreso
188
- - Seleccionar modelo según capacidad: coding → modelos grandes, chat → modelos rápidos
87
+ Para una integración MCP sin especialista, pedí autorización primero. Si el usuario acepta, creá un worker con `mcp_server_id`; si participan varios servidores, creá o reutilizá uno por servidor. Nunca pases servidores MCP dinámicos a `task_delegate`.
189
88
 
190
- ## Errores a Evitar
89
+ ## Errores a evitar
191
90
 
192
- - ❌ Usar `delegate_task` (no existe) — usar `task_delegate`
193
- - ❌ Usar `find_agent` (no existe) — usar `agent_find`
194
- - ❌ Usar `publish_to_bus` / `get_bus_messages` (no existen) — usar `bus_publish` / `bus_read`
195
- - ❌ Usar `get_task_status` (no existe) — usar `task_status`
196
- - ❌ No consultar modelos disponibles antes de crear workers
197
- - ❌ No monitorear estado de tasks
198
- - ❌ No coordinar workers cuando hay dependencias
91
+ - ❌ Serializar tareas independientes en vez de fan-out paralelo
92
+ - ❌ Polling con `task_status` esperando el resultado — el fan-in llega solo
93
+ - ❌ Declarar éxito antes de recibir el `[Sistema]`, o presentar `ok=false` como éxito
94
+ - ❌ Reportar éxito sin revisar `acceptance`/`checks` de la entrega, o ignorar un `checks.status="failed"`
95
+ - ❌ Corregir a mano lo que `task_revise` puede reencolar en el mismo worker
96
+ - ❌ Crear un worker que el catálogo ya cubre
97
+ - ❌ Delegar saludos, preguntas simples o la conversación
98
+ - ❌ Usar `delegate_task`, `find_agent`, `create_agent`, `get_task_status`, `publish_to_bus`, `get_bus_messages` — **no existen**
@@ -9,7 +9,7 @@ permissions:
9
9
  - shell_exec
10
10
  - filesystem_write
11
11
  dependencies: []
12
- tools: [exec, terminal, project_write]
12
+ tools: [cli_exec, fs_write]
13
13
 
14
14
  # Structured skill fields
15
15
  triggers:
@@ -35,7 +35,7 @@ steps:
35
35
  output: validated_command
36
36
 
37
37
  - step: 2
38
- action: exec or terminal
38
+ action: cli_exec
39
39
  instruction: "Execute command and capture full output (stdout + stderr)"
40
40
  params:
41
41
  command: "validated command"
@@ -48,7 +48,7 @@ steps:
48
48
  output: formatted_output
49
49
 
50
50
  - step: 4
51
- action: project_write
51
+ action: fs_write
52
52
  instruction: "Write output to specified file path"
53
53
  params:
54
54
  path: "logs/command_YYYY-MM-DD_HH-MM-SS.log"
@@ -74,13 +74,13 @@ output_format:
74
74
 
75
75
  examples:
76
76
  - user_input: "ejecutá npm install y guardá el output en logs/install.log"
77
- expected_behavior: "exec({ command: 'npm install' }) → format with metadata → project_write({ path: 'logs/install.log' })"
77
+ expected_behavior: "cli_exec({ command: 'npm install' }) → format with metadata → fs_write({ path: 'logs/install.log' })"
78
78
 
79
79
  - user_input: "corré los tests y guardá el resultado"
80
- expected_behavior: "terminal({ command: 'npm test' }) → capture full output → write to timestamped log file"
80
+ expected_behavior: "cli_exec({ command: 'npm test' }) → capture full output → write to timestamped log file"
81
81
 
82
82
  - user_input: "hacé un pipeline de git log a archivo"
83
- expected_behavior: "exec({ command: 'git log --oneline' }) → write to 'logs/git_log_YYYY-MM-DD.md'"
83
+ expected_behavior: "cli_exec({ command: 'git log --oneline' }) → write to 'logs/git_log_YYYY-MM-DD.md'"
84
84
  ---
85
85
 
86
86
  # CLI Pipeline Skill
@@ -93,16 +93,15 @@ Para ejecutar comandos y guardar el output en archivos para logging o procesamie
93
93
 
94
94
  | Tool | Qué hace | Cuándo usarla |
95
95
  |------|----------|---------------|
96
- | `exec` | Ejecuta comando | Comandos simples |
97
- | `terminal` | Ejecuta con entorno | Comandos complejos |
98
- | `project_write` | Escribe archivo | Guardar output |
96
+ | `cli_exec` | Ejecuta un comando con timeout y captura su salida | Comandos autorizados |
97
+ | `fs_write` | Escribe un archivo dentro del workspace | Guardar output |
99
98
 
100
99
  ## Workflow
101
100
 
102
101
  1. **Validar comando** → Seguro para ejecución
103
102
  2. **Ejecutar** → Capturar stdout + stderr
104
103
  3. **Formatear** → Agregar timestamp, comando, metadata
105
- 4. **Escribir** → `project_write({ path, content })`
104
+ 4. **Escribir** → `fs_write({ path, content })`
106
105
 
107
106
  ## Formato de Log
108
107
 
@@ -8,7 +8,7 @@ category: cli
8
8
  permissions:
9
9
  - shell_exec
10
10
  dependencies: []
11
- tools: [exec, terminal]
11
+ tools: [cli_exec]
12
12
 
13
13
  # Structured skill fields
14
14
  triggers:
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: software_engineering
3
+ description: "Implement, debug, and verify scoped software changes in an existing repository"
4
+ version: 1.0.0
5
+ author: Hive Team
6
+ icon: "🛠️"
7
+ category: cli
8
+ permissions: [filesystem_read, filesystem_write, shell_exec]
9
+ dependencies: []
10
+ tools: [fs_read, fs_write, fs_edit, fs_list, fs_glob, fs_exists, cli_exec]
11
+ triggers: [implementar código, corregir bug, ejecutar tests, implement code, fix bug]
12
+ preferred_agents: [software_engineer]
13
+ ---
14
+
15
+ # Ingeniería de software
16
+
17
+ 1. Inspecciona estructura, convenciones y cambios existentes.
18
+ 2. Determina la causa o el cambio mínimo antes de editar.
19
+ 3. Conserva cambios ajenos y limita el diff al objetivo.
20
+ 4. Ejecuta tests, typecheck o build proporcionales al riesgo.
21
+ 5. Entrega archivos cambiados, comandos ejecutados, resultados y riesgos.
22
+
23
+ No publiques, no delegues y no uses comandos destructivos sin autorización explícita.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cron_manager
3
- description: "Complete management of cron jobs with cron expressions. Create, list, update, pause, resume, delete, trigger, and view history. Use for reminders, automated reports, periodic checks."
3
+ description: "Manage Hive scheduled automations. Create, list, update, pause, resume, delete, trigger, and inspect recurring or one-shot jobs."
4
4
  version: 2.0.0
5
5
  author: Hive Team
6
6
  icon: "⏰"
@@ -185,4 +185,4 @@ Ejemplo: `0 9 15 * *` con dom_and_dow=1 significa "los 15 de cada mes QUE SEA do
185
185
  - ❌ Usar exec para tareas programadas
186
186
  - ❌ No preguntar si es one_shot o recurring
187
187
  - ❌ No mostrar próximos horarios al crear
188
- - ❌ Llamar `cron.update` sin `task_id` — siempre hacer `cron.list` primero
188
+ - ❌ Llamar `cron.update` sin `task_id` — siempre hacer `cron.list` primero
@@ -44,8 +44,8 @@ steps:
44
44
  action: cron.create
45
45
  instruction: "Create one_shot cron job"
46
46
  params:
47
- name: "Short name (e.g., 'meeting-reminder')"
48
- task: "REQUIRED - The reminder message (e.g., 'Meeting starts in 5 minutes')"
47
+ name: "Short name (e.g., 'follow-up-reminder')"
48
+ task: "REQUIRED - The reminder message (e.g., 'Review the pending report')"
49
49
  task_type: "one_shot"
50
50
  fire_at: "ISO datetime (e.g., '2026-04-20T14:00:00')"
51
51
  channel: "telegram, discord, webchat, whatsapp"
@@ -67,14 +67,14 @@ output_format:
67
67
  max_length: "Short confirmation"
68
68
 
69
69
  examples:
70
- - user_input: "recordame la reunion a las 3pm"
71
- expected_behavior: "cron.create({ name: 'meeting-reminder', task: 'La reunión empieza en 5 minutos', task_type: 'one_shot', fire_at: '2026-04-20T15:00:00', channel: 'telegram' })"
70
+ - user_input: "recordame revisar el informe a las 3pm"
71
+ expected_behavior: "cron.create({ name: 'report-reminder', task: 'Revisar el informe pendiente', task_type: 'one_shot', fire_at: '2026-04-20T15:00:00', channel: 'telegram' })"
72
72
 
73
73
  - user_input: "avísame en 30 minutos"
74
74
  expected_behavior: "cron.create({ name: 'quick-reminder', task: 'Revisa el email', task_type: 'one_shot', fire_at: '<30-min-from-now>', channel: 'telegram' })"
75
75
 
76
- - user_input: "recordame mañana a las 9am"
77
- expected_behavior: "cron.create({ name: 'morning-reminder', task: 'Buenos días! Revisa tu agenda', task_type: 'one_shot', fire_at: '<tomorrow-9am>', channel: 'telegram' })"
76
+ - user_input: "recordame mañana a las 9am revisar las métricas"
77
+ expected_behavior: "cron.create({ name: 'metrics-reminder', task: 'Revisar las métricas', task_type: 'one_shot', fire_at: '<tomorrow-9am>', channel: 'telegram' })"
78
78
  ---
79
79
 
80
80
  # Cron Reminder Skill
@@ -109,4 +109,4 @@ Para crear recordatorios de una sola ejecución (one_shot): "recuerdame a las 3p
109
109
 
110
110
  - ❌ Olvidar el campo `task` — obligatorio para que el agente sepa qué enviar
111
111
  - ❌ Usar expresiones cron para recordatorios (usar `fire_at` en vez de `cron_expression`)
112
- - ❌ Poner `fire_at` en el pasado
112
+ - ❌ Poner `fire_at` en el pasado
@@ -8,7 +8,7 @@ category: filesystem
8
8
  permissions:
9
9
  - filesystem_read
10
10
  dependencies: []
11
- tools: [project_read]
11
+ tools: [fs_read, fs_exists]
12
12
 
13
13
  # Structured skill fields
14
14
  triggers:
@@ -26,12 +26,12 @@ preferred_agents: []
26
26
 
27
27
  steps:
28
28
  - step: 1
29
- action: project_exists
29
+ action: fs_exists
30
30
  instruction: "Verify file exists before attempting to read"
31
31
  output: exists_boolean
32
32
 
33
33
  - step: 2
34
- action: project_read
34
+ action: fs_read
35
35
  instruction: "Read file content. Use offset/limit for large files (>1000 lines)"
36
36
  params:
37
37
  path: "file path"
@@ -45,7 +45,7 @@ steps:
45
45
  output: summary
46
46
 
47
47
  rules:
48
- - "Always check file exists with project_exists before reading"
48
+ - "Always check file exists with fs_exists before reading"
49
49
  - "Use offset and limit for files >1000 lines to avoid context saturation"
50
50
  - "Read in chunks for very large files — iterate with offset"
51
51
  - "Summarize automatically for files >500 lines unless user requests full content"
@@ -63,13 +63,13 @@ output_format:
63
63
 
64
64
  examples:
65
65
  - user_input: "leé el archivo package.json"
66
- expected_behavior: "Check exists → project_read({ path: 'package.json' }) → return full content (small file)"
66
+ expected_behavior: "Check exists → fs_read({ path: 'package.json' }) → return full content (small file)"
67
67
 
68
68
  - user_input: "resumí el archivo src/main.ts"
69
- expected_behavior: "project_read with offset/limit → identify main exports and functions → summarize structure"
69
+ expected_behavior: "fs_read with offset/limit → identify main exports and functions → summarize structure"
70
70
 
71
71
  - user_input: "qué dice este archivo de configuración"
72
- expected_behavior: "project_read → parse config format → explain key settings in plain language"
72
+ expected_behavior: "fs_read → parse config format → explain key settings in plain language"
73
73
  ---
74
74
 
75
75
  # File Read and Summarize Skill
@@ -85,12 +85,13 @@ Esta skill se activa cuando el usuario necesita leer y entender el contenido de
85
85
 
86
86
  | Tool | Qué hace | Cuándo usarla |
87
87
  |------|----------|---------------|
88
- | `project_read` | Lee contenido de archivo del workspace | Lectura de cualquier archivo |
88
+ | `fs_exists` | Comprueba que el path exista | Antes de leer |
89
+ | `fs_read` | Lee contenido de archivo del workspace | Lectura de cualquier archivo |
89
90
 
90
91
  ## Workflow
91
92
 
92
- 1. **Verificar existencia** → `project_exists({ path })`
93
- 2. **Leer contenido** → `project_read({ path, offset, limit })`
93
+ 1. **Verificar existencia** → `fs_exists({ path })`
94
+ 2. **Leer contenido** → `fs_read({ path, offset, limit })`
94
95
  3. **Sintetizar** → Resumir si es grande, extraer puntos clave
95
96
 
96
97
  ## Mejores Prácticas
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: file_writer
3
- description: "Create, modify, and delete files with safe edit operations and confirmation for large changes"
3
+ description: "Create, modify, and delete files with safe edit operations after required authorization"
4
4
  version: 1.0.0
5
5
  author: Hive Team
6
6
  icon: "✍️"
@@ -9,7 +9,7 @@ permissions:
9
9
  - filesystem_read
10
10
  - filesystem_write
11
11
  dependencies: []
12
- tools: [project_read, project_write, project_edit, project_exists]
12
+ tools: [fs_read, fs_write, fs_edit, fs_exists]
13
13
 
14
14
  # Structured skill fields
15
15
  triggers:
@@ -32,37 +32,31 @@ preferred_agents: []
32
32
 
33
33
  steps:
34
34
  - step: 1
35
- action: project_exists
35
+ action: fs_exists
36
36
  instruction: "Check if file exists to determine if creating or editing"
37
37
  output: exists_boolean
38
38
 
39
39
  - step: 2
40
- action: project_read (if editing)
40
+ action: fs_read
41
41
  instruction: "Read existing file to understand current structure before modifying"
42
42
  output: current_content
43
43
 
44
44
  - step: 3
45
45
  action: decision_write_or_edit
46
- instruction: "Choose project_write for new files or complete rewrite, project_edit for targeted changes"
46
+ instruction: "Choose fs_write for new files or complete rewrite, fs_edit for targeted changes"
47
47
  output: operation_type
48
48
 
49
49
  - step: 4
50
- action: canvas_confirm (if large changes)
51
- instruction: "Confirm with user before overwriting files with >50 lines of changes"
52
- output: user_approval
53
-
54
- - step: 5
55
- action: project_write or project_edit
56
- instruction: "Execute the write operation with appropriate method"
50
+ action: fs_write_or_edit
51
+ instruction: "Execute the authorized write operation with the appropriate method"
57
52
  output: result
58
53
 
59
54
  rules:
60
55
  - "Always read file before editing to understand structure"
61
- - "Use project_edit for small, targeted changes (find/replace)"
62
- - "Use project_write for new files or complete rewrites"
63
- - "Confirm with canvas_confirm before changes >50 lines"
56
+ - "Use fs_edit for small, targeted changes (find/replace)"
57
+ - "Use fs_write for new files or complete rewrites"
64
58
  - "Verify file path is within workspace unless explicitly requested otherwise"
65
- - "For delete operations, confirm explicitly with user"
59
+ - "For destructive operations, require explicit authorization before this skill runs"
66
60
 
67
61
  output_format:
68
62
  structure: markdown
@@ -75,13 +69,13 @@ output_format:
75
69
 
76
70
  examples:
77
71
  - user_input: "creá un archivo README.md con la descripción del proyecto"
78
- expected_behavior: "project_exists (false) → project_write({ path: 'README.md', content: '...' })"
72
+ expected_behavior: "fs_exists (false) → fs_write({ path: 'README.md', content: '...' })"
79
73
 
80
74
  - user_input: "editá el package.json para agregar la dependencia lodash"
81
- expected_behavior: "project_read → project_edit with old_string/new_string for dependencies → confirm"
75
+ expected_behavior: "fs_read → fs_edit with old_string/new_string for dependencies"
82
76
 
83
77
  - user_input: "eliminá el archivo temporal.log"
84
- expected_behavior: "project_exists → canvas_confirm('¿Eliminar archivo?') → if approved, delete operation"
78
+ expected_behavior: "after explicit authorization: fs_exists → fs_delete"
85
79
  ---
86
80
 
87
81
  # File Writer Skill
@@ -98,38 +92,38 @@ Esta skill se activa cuando el usuario necesita:
98
92
 
99
93
  | Tool | Qué hace | Cuándo usarla |
100
94
  |------|----------|---------------|
101
- | `project_read` | Lee archivo existente | Antes de editar para entender estructura |
102
- | `project_write` | Crea o sobreescribe archivo | Archivos nuevos o reescritura completa |
103
- | `project_edit` | Edita secciones específicas | Cambios puntuales (find/replace) |
104
- | `project_exists` | Verifica existencia | Para decidir crear vs editar |
95
+ | `fs_read` | Lee archivo existente | Antes de editar para entender estructura |
96
+ | `fs_write` | Crea o sobreescribe archivo | Archivos nuevos o reescritura completa |
97
+ | `fs_edit` | Edita secciones específicas | Cambios puntuales (find/replace) |
98
+ | `fs_exists` | Verifica existencia | Para decidir crear vs editar |
105
99
 
106
100
  ## Workflow
107
101
 
108
102
  ### Crear Archivo Nuevo
109
- 1. `project_exists({ path })` → verificar no existe
110
- 2. `project_write({ path, content })` → crear
103
+ 1. `fs_exists({ path })` → verificar no existe
104
+ 2. `fs_write({ path, content })` → crear
111
105
 
112
106
  ### Editar Archivo Existente
113
- 1. `project_exists({ path })` → verificar existe
114
- 2. `project_read({ path })` → entender estructura
115
- 3. `project_edit({ path, old_string, new_string })` → modificar
116
- 4. `canvas_confirm()` si cambios >50 líneas
107
+ 1. `fs_exists({ path })` → verificar existe
108
+ 2. `fs_read({ path })` → entender estructura
109
+ 3. `fs_edit({ path, old_string, new_string })` → modificar
110
+ 4. Ejecutar únicamente dentro del alcance autorizado por el coordinador
117
111
 
118
112
  ### Eliminar Archivo
119
- 1. `project_exists({ path })` → verificar existe
120
- 2. `canvas_confirm({ message: '¿Eliminar archivo?' })` → confirmar
121
- 3. Operación de delete
113
+ 1. `fs_exists({ path })` → verificar existe
114
+ 2. Verificar que el coordinador ya obtuvo autorización explícita
115
+ 3. `fs_delete({ path })`
122
116
 
123
117
  ## Mejores Prácticas
124
118
 
125
119
  - **Leer antes de editar**: Nunca modificar sin entender estructura
126
120
  - **Edit vs Write**: Usar edit para cambios pequeños, write para nuevos archivos
127
- - **Confirmar cambios grandes**: >50 líneas requiere confirmación explícita
121
+ - **Respetar autorización**: las confirmaciones se gestionan previamente desde el panel interactivo
128
122
  - **Paths seguros**: Trabajar dentro del workspace por defecto
129
123
 
130
124
  ## Errores a Evitar
131
125
 
132
126
  - ❌ Editar sin leer primero
133
- - ❌ Sobreescribir sin confirmar si es cambio grande
134
- - ❌ Eliminar sin confirmación explícita
127
+ - ❌ Ampliar el alcance autorizado
128
+ - ❌ Eliminar sin autorización explícita previa
135
129
  - ❌ Usar write cuando edit es suficiente
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: workspace_file_operator
3
+ description: "Safely create, read, edit, organize, and verify files or folders inside an authorized workspace"
4
+ version: 1.0.0
5
+ author: Hive Team
6
+ icon: "📁"
7
+ category: filesystem
8
+ permissions: [filesystem_read, filesystem_write]
9
+ dependencies: []
10
+ tools: [fs_read, fs_write, fs_edit, fs_delete, fs_list, fs_glob, fs_exists]
11
+ triggers: [crear carpeta, organizar archivos, editar archivo, create folder, manage files]
12
+ preferred_agents: [workspace_file_operator]
13
+ ---
14
+
15
+ # Operación segura del workspace
16
+
17
+ 1. Resuelve todas las rutas contra el workspace asignado.
18
+ 2. Comprueba el estado inicial con `fs_exists`, `fs_list` o `fs_read`.
19
+ 3. Aplica la operación mínima solicitada.
20
+ 4. Verifica el estado final mediante readback.
21
+
22
+ Nunca accedas fuera del workspace ni declares éxito basándote solo en el resultado de una escritura.
@@ -22,7 +22,7 @@ triggers:
22
22
 
23
23
  # capability_discovery — Sistema de Discovery
24
24
 
25
- Arrancás con solo 4 herramientas. Todo lo demás se descubre con **search_knowledge**.
25
+ Arrancás con 7 herramientas esenciales. Todo lo demás se descubre con **search_knowledge**.
26
26
 
27
27
  ## Regla de oro: UNA PALABRA, busca TODO
28
28
 
@@ -57,8 +57,9 @@ Por defecto type="all" — no hace falta especificarlo.
57
57
 
58
58
  1. Identificá la palabra clave de lo que necesitás
59
59
  2. `search_knowledge(query="<palabra>")` → resultados de todos los tipos
60
- 3. Las tools encontradas se inyectan automáticamente en tu contexto
61
- 4. Usás las tools en el siguiente paso
60
+ 3. Cada resultado MCP incluye `server_id`; usalo para identificar la integración y buscar un especialista existente
61
+ 4. Antes del primer uso de un servidor sin especialista, seguí el flujo de consentimiento del system prompt
62
+ 5. Las tools encontradas se inyectan automáticamente en tu contexto para una ejecución directa solo cuando corresponda
62
63
 
63
64
  ---
64
65
 
@@ -69,6 +70,6 @@ search_knowledge(query="pdf") → tools para leer/escribir PDFs
69
70
  search_knowledge(query="browser") → tools de navegación web
70
71
  search_knowledge(query="github") → tools MCP de GitHub si están configuradas
71
72
  search_knowledge(query="calendar") → tools de Google Calendar
72
- search_knowledge(query="canvas") → skills de visualización
73
+ search_knowledge(query="A2UI") → skills del panel interactivo
73
74
  search_knowledge(query="slack") → tools de Slack si están configuradas
74
75
  ```