@johpaz/hive-agents 0.0.47 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -902
  3. package/dist/hive.js +68840 -68355
  4. package/dist/tool-worker.js +220 -925
  5. package/dist/ui/assets/A2UIPage-D4nUFe5q.js +8 -0
  6. package/dist/ui/assets/AgentCreateForm-g1mQnIoJ.js +1 -0
  7. package/dist/ui/assets/AgentDetailPage-C3XkU4Ll.js +1 -0
  8. package/dist/ui/assets/AgentNewPage-CEkLeA79.js +1 -0
  9. package/dist/ui/assets/AgentsPage-CNA778Eo.js +10 -0
  10. package/dist/ui/assets/ApiClientPage-t5DpKhmA.js +3 -0
  11. package/dist/ui/assets/ChannelsPage-yY6t0YTU.js +8 -0
  12. package/dist/ui/assets/DashboardPage-BSeNSYg5.js +6 -0
  13. package/dist/ui/assets/{LoginPage-BTxJdFVG.js → LoginPage-eT5zDRDa.js} +1 -1
  14. package/dist/ui/assets/{LogsPage-DVV2eHbh.js → LogsPage-Gczzzsdh.js} +1 -1
  15. package/dist/ui/assets/MeetingPage-Bu4aMMNR.js +1 -0
  16. package/dist/ui/assets/ModelSelector-nNOrW3te.js +1 -0
  17. package/dist/ui/assets/{NotFound-BIUDlIXU.js → NotFound-Bpr12V51.js} +1 -1
  18. package/dist/ui/assets/Office3DPage-B_iXEbyv.js +4614 -0
  19. package/dist/ui/assets/Office3DPage-C3SIzd2H.css +1 -0
  20. package/dist/ui/assets/ProvidersPage-BupHs5yO.js +1 -0
  21. package/dist/ui/assets/{RecoverPage-7YDQysBL.js → RecoverPage-DMqSasKk.js} +1 -1
  22. package/dist/ui/assets/SettingsPage-B6FTSkOn.js +9 -0
  23. package/dist/ui/assets/SetupPage-DhcRbGgg.js +1 -0
  24. package/dist/ui/assets/WebChatPage-CWXjW4Hn.js +29 -0
  25. package/dist/ui/assets/{activity-c3pNngT_.js → activity-CQuPevhB.js} +1 -1
  26. package/dist/ui/assets/agentCapabilities-CDC6y91E.js +1 -0
  27. package/dist/ui/assets/alert-CQlRq6sv.js +1 -0
  28. package/dist/ui/assets/arrow-left-0EBE7nsF.js +1 -0
  29. package/dist/ui/assets/arrow-right-5QIaph-z.js +1 -0
  30. package/dist/ui/assets/arrow-up-right-DQQCY007.js +1 -0
  31. package/dist/ui/assets/badge-DKGZbVZJ.js +1 -0
  32. package/dist/ui/assets/{calendar-B-KZ9RQO.js → calendar-Be23hQGc.js} +1 -1
  33. package/dist/ui/assets/{card-CNf6BS2e.js → card-D3Nw3kh3.js} +1 -1
  34. package/dist/ui/assets/check-Dp6tzwax.js +1 -0
  35. package/dist/ui/assets/chevron-down-33N886NY.js +1 -0
  36. package/dist/ui/assets/chevron-left-C6itJXh3.js +1 -0
  37. package/dist/ui/assets/chevron-right-CFodBS-b.js +1 -0
  38. package/dist/ui/assets/chevron-up-BvSmyBEs.js +1 -0
  39. package/dist/ui/assets/{circle-alert-KuAm2FWh.js → circle-alert-BDVHxmAz.js} +1 -1
  40. package/dist/ui/assets/circle-check-BJWNbLuF.js +1 -0
  41. package/dist/ui/assets/{circle-x-DjLkFDO8.js → circle-x-Cb2Yer4s.js} +1 -1
  42. package/dist/ui/assets/{copy-Bu5d7C-0.js → copy-33tZrzc9.js} +1 -1
  43. package/dist/ui/assets/{dialog-Jk4bieO4.js → dialog-KOZKWbib.js} +1 -1
  44. package/dist/ui/assets/dist-CD_qfA30.js +1 -0
  45. package/dist/ui/assets/{download-Cjbk4Rek.js → download-CiQqqXyz.js} +1 -1
  46. package/dist/ui/assets/earth-DCvN7ynm.js +1 -0
  47. package/dist/ui/assets/ellipsis-vertical-BybFZDk2.js +1 -0
  48. package/dist/ui/assets/{external-link-6sTlRDUR.js → external-link-0iNNBvZm.js} +1 -1
  49. package/dist/ui/assets/{eye-Df8o0tkC.js → eye-C8sKSSkg.js} +1 -1
  50. package/dist/ui/assets/{file-text-lnxnjBp0.js → file-text-DO8jqiJK.js} +1 -1
  51. package/dist/ui/assets/{gateway-url-DwzPmoc8.js → gateway-url-BlnabM5e.js} +1 -1
  52. package/dist/ui/assets/gauge-BRGwuN8G.js +1 -0
  53. package/dist/ui/assets/{history-CAF_R34_.js → history-BtTD1kDo.js} +1 -1
  54. package/dist/ui/assets/index-Bejlp-R1.js +116 -0
  55. package/dist/ui/assets/index-XoTT41Hr.css +2 -0
  56. package/dist/ui/assets/{info-WjromB4Y.js → info-mpk1tsNC.js} +1 -1
  57. package/dist/ui/assets/key-CoQ0qtXt.js +1 -0
  58. package/dist/ui/assets/label-k0jYxoWW.js +1 -0
  59. package/dist/ui/assets/loader-circle-BhqRN2nO.js +1 -0
  60. package/dist/ui/assets/lock-open-Cd2aqwOd.js +1 -0
  61. package/dist/ui/assets/mail-BG0RYSkL.js +1 -0
  62. package/dist/ui/assets/{pause-VqeUmp2Z.js → pause-Cme88_9s.js} +1 -1
  63. package/dist/ui/assets/pencil-f1nJ1xhs.js +1 -0
  64. package/dist/ui/assets/play-CfYDHD6h.js +1 -0
  65. package/dist/ui/assets/plus-C5BxJeOX.js +1 -0
  66. package/dist/ui/assets/progress-DrI2UDu-.js +1 -0
  67. package/dist/ui/assets/radio-B5SpKJ-J.js +1 -0
  68. package/dist/ui/assets/{refresh-cw-CCzDCAuz.js → refresh-cw-CroGQY62.js} +1 -1
  69. package/dist/ui/assets/scroll-area-CfHn94Vb.js +1 -0
  70. package/dist/ui/assets/search-rfBcmohK.js +1 -0
  71. package/dist/ui/assets/select-BhbW0stK.js +1 -0
  72. package/dist/ui/assets/{send-BPk9XbIq.js → send-D6whYpw-.js} +1 -1
  73. package/dist/ui/assets/{settings-BGfrZ_zM.js → settings-BX6q3MGB.js} +1 -1
  74. package/dist/ui/assets/{shield-CxhcUT39.js → shield-BnGyu1xf.js} +1 -1
  75. package/dist/ui/assets/slider-CmE_z1Ii.js +1 -0
  76. package/dist/ui/assets/{sparkles-BhwlS1pc.js → sparkles-BcaOs_Jk.js} +1 -1
  77. package/dist/ui/assets/{square-DMNWw4Hi.js → square-ju5H8nrT.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-Bjfu-TkS.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-DjQXac_0.js} +1 -1
  83. package/dist/ui/assets/{triangle-alert-pVIJGjga.js → triangle-alert-B04mgMcg.js} +1 -1
  84. package/dist/ui/assets/{useHiveAgentsModelLoad-BnC4jLE-.js → useHiveAgentsModelLoad-DT5-4CCj.js} +1 -1
  85. package/dist/ui/assets/useOfficeModel-Cy7cAyEn.js +1 -0
  86. package/dist/ui/assets/useProviders-DSX7eVsz.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-qnVxkRSM.js +1 -0
  94. package/dist/ui/assets/wifi-BA1m2dGO.js +1 -0
  95. package/dist/ui/assets/{zap-B4RaNNO5.js → zap-DT7cM7YS.js} +1 -1
  96. package/dist/ui/index.html +10 -9
  97. package/package.json +8 -9
  98. package/packages/cli/src/adapters/config.ts +1 -80
  99. package/packages/cli/src/adapters/factory.ts +0 -45
  100. package/packages/cli/src/adapters/index.ts +0 -8
  101. package/packages/cli/src/commands/doctor.ts +45 -1
  102. package/packages/cli/src/commands/gateway.ts +2 -9
  103. package/packages/cli/src/index.ts +9 -11
  104. package/packages/core/src/agent/acceptance-verifier.ts +300 -0
  105. package/packages/core/src/agent/agent-catalog.ts +384 -0
  106. package/packages/core/src/agent/agent-loop.ts +185 -28
  107. package/packages/core/src/agent/capability-search.ts +5 -5
  108. package/packages/core/src/agent/catalog-selector.ts +104 -0
  109. package/packages/core/src/agent/compaction.ts +36 -41
  110. package/packages/core/src/agent/context-compiler.ts +182 -62
  111. package/packages/core/src/agent/conversation-store.ts +56 -3
  112. package/packages/core/src/agent/curator.ts +129 -34
  113. package/packages/core/src/agent/delegation-runtime.ts +248 -0
  114. package/packages/core/src/agent/index.ts +17 -0
  115. package/packages/core/src/agent/llm-providers/hiveagents.ts +1 -1
  116. package/packages/core/src/agent/llm-providers/interface.ts +3 -3
  117. package/packages/core/src/agent/llm-providers/openai-compat-base.ts +1 -1
  118. package/packages/core/src/agent/minimal-loadout.ts +46 -0
  119. package/packages/core/src/agent/playbook-selector.ts +1 -1
  120. package/packages/core/src/agent/prompt-builder.ts +4 -0
  121. package/packages/core/src/agent/proof-packet.ts +15 -1
  122. package/packages/core/src/agent/providers/index.ts +8 -3
  123. package/packages/core/src/agent/routing-intent.ts +22 -0
  124. package/packages/core/src/agent/run-store.ts +24 -3
  125. package/packages/core/src/agent/service.ts +2 -2
  126. package/packages/core/src/agent/skill-selector.ts +12 -31
  127. package/packages/core/src/agent/tool-selector.ts +36 -35
  128. package/packages/core/src/agent/tracer.ts +5 -1
  129. package/packages/core/src/artifacts/store.ts +162 -0
  130. package/packages/core/src/canvas/canvas-manager.ts +5 -234
  131. package/packages/core/src/canvas/emitter.ts +165 -69
  132. package/packages/core/src/canvas/index.ts +0 -2
  133. package/packages/core/src/channels/base.ts +3 -1
  134. package/packages/core/src/channels/webchat.ts +4 -8
  135. package/packages/core/src/config/loader.ts +0 -22
  136. package/packages/core/src/events/agent-bus.ts +0 -31
  137. package/packages/core/src/events/narration.ts +82 -0
  138. package/packages/core/src/gateway/channel-notify.ts +34 -5
  139. package/packages/core/src/gateway/delegation-groups.ts +245 -0
  140. package/packages/core/src/gateway/delegation-notify.ts +103 -0
  141. package/packages/core/src/gateway/durable-queue.ts +33 -2
  142. package/packages/core/src/gateway/helpers/index.ts +2 -2
  143. package/packages/core/src/gateway/helpers/narration.ts +12 -7
  144. package/packages/core/src/gateway/helpers/redact.ts +1 -1
  145. package/packages/core/src/gateway/initializer.ts +15 -13
  146. package/packages/core/src/gateway/job-executors.ts +232 -101
  147. package/packages/core/src/gateway/lane-queue.ts +1 -1
  148. package/packages/core/src/gateway/notification-inbox.ts +57 -0
  149. package/packages/core/src/gateway/resolver.ts +1 -23
  150. package/packages/core/src/gateway/routes/agents.ts +91 -1
  151. package/packages/core/src/gateway/routes/auth.ts +21 -42
  152. package/packages/core/src/gateway/routes/chat.ts +6 -6
  153. package/packages/core/src/gateway/routes/cron-api.ts +0 -4
  154. package/packages/core/src/gateway/routes/mcp.ts +0 -63
  155. package/packages/core/src/gateway/routes/meeting.ts +245 -0
  156. package/packages/core/src/gateway/routes/providers.ts +1 -0
  157. package/packages/core/src/gateway/routes/setup.ts +29 -24
  158. package/packages/core/src/gateway/routes/skills.ts +2 -2
  159. package/packages/core/src/gateway/routes/system.ts +23 -5
  160. package/packages/core/src/gateway/routes/users.ts +24 -1
  161. package/packages/core/src/gateway/server.ts +153 -117
  162. package/packages/core/src/gateway/session.ts +6 -4
  163. package/packages/core/src/gateway/slash-commands.ts +7 -6
  164. package/packages/core/src/gateway/webchat-turn.ts +34 -8
  165. package/packages/core/src/index.ts +3 -0
  166. package/packages/core/src/mcp/hot-reload.ts +14 -7
  167. package/packages/core/src/mcp/singleton.ts +0 -3
  168. package/packages/core/src/mcp/tool-sync.ts +2 -2
  169. package/packages/core/src/resilience/retry.ts +1 -1
  170. package/packages/core/src/scheduler/CronScheduler.ts +3 -1
  171. package/packages/core/src/scheduler/integration.ts +1 -1
  172. package/packages/core/src/storage/bootstrap.ts +25 -5
  173. package/packages/core/src/storage/collections.ts +201 -27
  174. package/packages/core/src/storage/onboarding.ts +147 -32
  175. package/packages/core/src/storage/reconcile.ts +2 -5
  176. package/packages/core/src/storage/seed.ts +196 -34
  177. package/packages/core/src/storage/usage.ts +0 -9
  178. package/packages/core/src/storage/user-email.ts +11 -0
  179. package/packages/core/src/tool-runtime/index.ts +69 -23
  180. package/packages/core/src/tool-runtime/worker-tools.ts +4 -2
  181. package/packages/core/src/{canvas/a2ui-tools.ts → tools/a2ui/index.ts} +17 -8
  182. package/packages/core/src/tools/agents/index.ts +392 -83
  183. package/packages/core/src/tools/core/index.ts +28 -10
  184. package/packages/core/src/tools/cron/index.ts +1 -6
  185. package/packages/core/src/tools/index.ts +17 -45
  186. package/packages/core/src/tools/types.ts +1 -1
  187. package/packages/core/src/tools/web/artifact-inspect.ts +23 -0
  188. package/packages/core/src/tools/web/browser-screenshot.ts +26 -5
  189. package/packages/core/src/tools/web/index.ts +3 -0
  190. package/packages/core/src/utils/logger.ts +58 -30
  191. package/packages/core/src/utils/toon.ts +0 -20
  192. package/packages/mcp/src/manager.ts +8 -7
  193. package/packages/mcp/src/transports/sse.ts +0 -4
  194. package/packages/mcp/src/transports/websocket.ts +0 -6
  195. package/packages/skills/src/bundled/{canvas → a2ui}/a2ui_dashboard/SKILL.md +4 -4
  196. package/packages/skills/src/bundled/{canvas → a2ui}/a2ui_form/SKILL.md +4 -4
  197. package/packages/skills/src/bundled/{canvas → a2ui}/a2ui_interactive/SKILL.md +5 -5
  198. package/packages/skills/src/bundled/agents/acceptance_verification/SKILL.md +26 -0
  199. package/packages/skills/src/bundled/agents/agent_spawner/SKILL.md +24 -18
  200. package/packages/skills/src/bundled/agents/task_orchestrator/SKILL.md +47 -148
  201. package/packages/skills/src/bundled/cli/cli_pipeline/SKILL.md +9 -10
  202. package/packages/skills/src/bundled/cli/cli_safe_exec/SKILL.md +1 -1
  203. package/packages/skills/src/bundled/cli/software_engineering/SKILL.md +23 -0
  204. package/packages/skills/src/bundled/cron_manager/SKILL.md +2 -2
  205. package/packages/skills/src/bundled/cron_reminder/SKILL.md +7 -7
  206. package/packages/skills/src/bundled/filesystem/file_read_and_summarize/SKILL.md +11 -10
  207. package/packages/skills/src/bundled/filesystem/file_writer/SKILL.md +29 -35
  208. package/packages/skills/src/bundled/filesystem/workspace_file_operator/SKILL.md +22 -0
  209. package/packages/skills/src/bundled/search_knowledge/capability_discovery/SKILL.md +5 -4
  210. package/packages/skills/src/bundled-data.generated.ts +690 -1255
  211. package/dist/ui/assets/AgentCreateForm-DzaIT-dA.js +0 -1
  212. package/dist/ui/assets/AgentDetailPage-DgqcJceY.js +0 -1
  213. package/dist/ui/assets/AgentNewPage-CNSpoOSA.js +0 -1
  214. package/dist/ui/assets/AgentsPage-BMUJzTD6.js +0 -10
  215. package/dist/ui/assets/ApiClientPage-Cum_a_3j.js +0 -3
  216. package/dist/ui/assets/CanvasPage-o6oCP6uq.js +0 -33
  217. package/dist/ui/assets/ChannelsPage-WrB0zwLq.js +0 -8
  218. package/dist/ui/assets/DashboardPage-BCd6kNw0.js +0 -6
  219. package/dist/ui/assets/MeetingPage-BULIAWzq.js +0 -1
  220. package/dist/ui/assets/ModelSelector-BMYOChYb.js +0 -1
  221. package/dist/ui/assets/ProvidersPage-BVN5UZrI.js +0 -1
  222. package/dist/ui/assets/SettingsPage-CYmpFfDn.js +0 -9
  223. package/dist/ui/assets/SetupPage-Dnmb1Lbv.js +0 -1
  224. package/dist/ui/assets/WebChatPage-DmmdFhIC.js +0 -16
  225. package/dist/ui/assets/accordion-CnLzKNHK.js +0 -1
  226. package/dist/ui/assets/alert-B9J6KHmt.js +0 -1
  227. package/dist/ui/assets/alert-dialog-KcYQWcJ6.js +0 -1
  228. package/dist/ui/assets/arrow-left-CBcbX5EZ.js +0 -1
  229. package/dist/ui/assets/badge-88dRb4M8.js +0 -1
  230. package/dist/ui/assets/bell-8BqRYmzf.js +0 -1
  231. package/dist/ui/assets/chevron-down-DIosfU_U.js +0 -1
  232. package/dist/ui/assets/chevron-left-D4U-5A27.js +0 -1
  233. package/dist/ui/assets/chevron-right-CR4Skrf3.js +0 -1
  234. package/dist/ui/assets/chevron-up-CI-W21Fy.js +0 -1
  235. package/dist/ui/assets/circle-check-6Ard1-2z.js +0 -1
  236. package/dist/ui/assets/dropdown-menu-DDiaHg5y.js +0 -1
  237. package/dist/ui/assets/es-4I-joeZz.js +0 -1
  238. package/dist/ui/assets/folder-open-DJBLDFjv.js +0 -1
  239. package/dist/ui/assets/format-DsLPBxvt.js +0 -1
  240. package/dist/ui/assets/gauge-B8Tj43rC.js +0 -1
  241. package/dist/ui/assets/hexagon-6L79pgVK.js +0 -1
  242. package/dist/ui/assets/index-BmwTAwOF.css +0 -2
  243. package/dist/ui/assets/index-Cyw7L0Li.js +0 -116
  244. package/dist/ui/assets/key-DyKOoQh5.js +0 -1
  245. package/dist/ui/assets/label-B_15zZlR.js +0 -1
  246. package/dist/ui/assets/loader-circle-BmBOgYze.js +0 -1
  247. package/dist/ui/assets/lock-BS6OLXPv.js +0 -1
  248. package/dist/ui/assets/play-zJpWuhrr.js +0 -1
  249. package/dist/ui/assets/plus-BZQX26Dr.js +0 -1
  250. package/dist/ui/assets/progress-D5c-Eilm.js +0 -1
  251. package/dist/ui/assets/scroll-area-CihOx0cb.js +0 -1
  252. package/dist/ui/assets/search-DzDptO9s.js +0 -1
  253. package/dist/ui/assets/select-BQCOjM2j.js +0 -1
  254. package/dist/ui/assets/slider-bcUiUfx0.js +0 -14
  255. package/dist/ui/assets/switch-BR30E4ej.js +0 -1
  256. package/dist/ui/assets/table-B3aGEaVp.js +0 -1
  257. package/dist/ui/assets/tabs-LQidMKRS.js +0 -1
  258. package/dist/ui/assets/terminal--7G943As.js +0 -1
  259. package/dist/ui/assets/useProviders-C1xVKLxB.js +0 -1
  260. package/dist/ui/assets/utils-3pnRFmFe.js +0 -1
  261. package/dist/ui/assets/vendor-charts-Bu2lyBKP.js +0 -65
  262. package/dist/ui/assets/vendor-radix-D6rA7xKY.js +0 -63
  263. package/dist/ui/assets/vendor-react-BU5iQU4f.js +0 -1
  264. package/dist/ui/assets/volume-2-BekVQl6P.js +0 -1
  265. package/packages/core/src/agent/context-guard.ts +0 -91
  266. package/packages/core/src/agent/hooks.ts +0 -166
  267. package/packages/core/src/agent/providers.ts +0 -1
  268. package/packages/core/src/auth/auth.ts +0 -111
  269. package/packages/core/src/auth/index.ts +0 -1
  270. package/packages/core/src/canvas/canvas-tools.ts +0 -448
  271. package/packages/core/src/gateway/router.ts +0 -126
  272. package/packages/core/src/scheduler/dag/AgentExecutor.ts +0 -53
  273. package/packages/core/src/scheduler/dag/DAGScheduler.ts +0 -250
  274. package/packages/core/src/scheduler/dag/EventBridge.ts +0 -122
  275. package/packages/core/src/scheduler/dag/TaskGraph.ts +0 -192
  276. package/packages/core/src/scheduler/dag/TaskNode.ts +0 -97
  277. package/packages/core/src/scheduler/dag/TaskResult.ts +0 -22
  278. package/packages/core/src/scheduler/dag/errors.ts +0 -37
  279. package/packages/core/src/scheduler/dag/index.ts +0 -26
  280. package/packages/core/src/scheduler/dag/presets/ResearchPreset.ts +0 -97
  281. package/packages/core/src/scheduler/dag/strategies/ParallelStrategy.ts +0 -21
  282. package/packages/core/src/scheduler/dag/strategies/PriorityStrategy.ts +0 -46
  283. package/packages/core/src/scheduler/index.ts +0 -22
  284. package/packages/core/src/scheduler/task-driver.ts +0 -216
  285. package/packages/core/src/tools/canvas/index.ts +0 -420
  286. package/packages/core/src/tools/meeting/index.ts +0 -336
  287. package/packages/core/src/tools/projects/index.ts +0 -348
  288. package/packages/core/src/tools/voice/index.ts +0 -104
  289. package/packages/core/src/utils/index.ts +0 -5
  290. package/packages/skills/src/bundled/agents/code_delegator/SKILL.md +0 -156
  291. package/packages/skills/src/bundled/canvas/canvas_dashboard/SKILL.md +0 -146
  292. package/packages/skills/src/bundled/canvas/canvas_interact/SKILL.md +0 -148
  293. package/packages/skills/src/bundled/canvas/canvas_report/SKILL.md +0 -146
  294. package/packages/skills/src/bundled/meeting/meeting_transcription/SKILL.md +0 -213
  295. package/packages/skills/src/bundled/voice/voice_assistant/SKILL.md +0 -174
  296. package/packages/skills/src/bundled/voice/voice_input/SKILL.md +0 -146
  297. package/packages/skills/src/bundled/voice/voice_output/SKILL.md +0 -151
@@ -1,336 +0,0 @@
1
- /**
2
- * Meeting Tools - 4 tools para transcripción de reuniones
3
- *
4
- * @category meeting
5
- *
6
- * - meeting_start — Inicia una sesión de transcripción
7
- * - meeting_add_segment — Transcribe un chunk de audio y lo agrega a la sesión
8
- * - meeting_stop — Detiene la sesión de transcripción
9
- * - meeting_report — Obtiene el transcript completo para que el agente genere el reporte
10
- */
11
-
12
- import type { Tool } from "../types.ts";
13
- import { col, nextId, toIndexable } from "../../storage/hive.ts";
14
- import type { MeetingSessionDoc, MeetingSegmentDoc } from "../../storage/collections.ts";
15
- import { voiceService, type AudioInput } from "../../voice/index.ts";
16
- import { logger } from "../../utils/logger.ts";
17
-
18
- const log = logger.child("meeting");
19
-
20
- // ─── meeting_start ───────────────────────────────────────────────────────────
21
-
22
- export const meetingStartTool: Tool = {
23
- name: "meeting_start",
24
- description:
25
- "Inicia una sesión de transcripción de reunión en tiempo real. | Start a real-time meeting transcription session.",
26
- parameters: {
27
- type: "object",
28
- properties: {
29
- title: {
30
- type: "string",
31
- description: "Título de la reunión (default: 'Reunión sin título')",
32
- },
33
- stt_model: {
34
- type: "string",
35
- description:
36
- "Modelo STT a usar: 'whisper-large-v3-turbo' (default), 'whisper-large-v3', 'whisper-1'",
37
- },
38
- },
39
- required: [],
40
- },
41
- execute: async (params) => {
42
- const title = (params.title as string) || "Reunión sin título";
43
- const sttModel =
44
- (params.stt_model as string) || "whisper-large-v3-turbo";
45
-
46
- try {
47
- const id = crypto.randomUUID().replace(/-/g, "");
48
- const now = Date.now();
49
- const doc: MeetingSessionDoc = {
50
- id,
51
- user_id: toIndexable(null),
52
- title,
53
- status: "active",
54
- stt_model: sttModel,
55
- started_at: now,
56
- stopped_at: null,
57
- report_path: null,
58
- metadata: null,
59
- };
60
-
61
- const sessionsCol = await col<MeetingSessionDoc>("meetingSessions");
62
- await sessionsCol.put(id, doc, { expectedVersion: 0 });
63
-
64
- log.info(`Meeting session started: ${id} — "${title}"`);
65
-
66
- return {
67
- ok: true,
68
- session_id: id,
69
- title: doc.title,
70
- status: doc.status,
71
- stt_model: doc.stt_model,
72
- message: `✅ Sesión de reunión iniciada. ID: ${id}\nTítulo: "${title}"\nModelo STT: ${sttModel}`,
73
- };
74
- } catch (error) {
75
- log.error(`meeting_start error: ${(error as Error).message}`);
76
- return { ok: false, error: `Error al iniciar la sesión: ${(error as Error).message}` };
77
- }
78
- },
79
- };
80
-
81
- // ─── meeting_add_segment ─────────────────────────────────────────────────────
82
-
83
- export const meetingAddSegmentTool: Tool = {
84
- name: "meeting_add_segment",
85
- description:
86
- "Transcribe un chunk de audio y lo agrega a la sesión de reunión activa. | Transcribe an audio chunk and add it to the active meeting session.",
87
- parameters: {
88
- type: "object",
89
- properties: {
90
- session_id: {
91
- type: "string",
92
- description: "ID de la sesión de reunión activa",
93
- },
94
- audio_base64: {
95
- type: "string",
96
- description: "Audio codificado en base64 (webm, ogg, mp3)",
97
- },
98
- speaker: {
99
- type: "string",
100
- description: "Etiqueta del hablante (opcional, ej: 'Ana', 'Speaker 1')",
101
- },
102
- mime_type: {
103
- type: "string",
104
- description: "Tipo MIME del audio (default: 'audio/webm')",
105
- },
106
- },
107
- required: ["session_id", "audio_base64"],
108
- },
109
- execute: async (params) => {
110
- const sessionId = params.session_id as string;
111
- const audioBase64 = params.audio_base64 as string;
112
- const speaker = (params.speaker as string) || null;
113
- const mimeType = (params.mime_type as string) || "audio/webm";
114
-
115
- try {
116
- const sessionsCol = await col<MeetingSessionDoc>("meetingSessions");
117
- const sessionEntry = await sessionsCol.get(sessionId);
118
-
119
- if (!sessionEntry) {
120
- return { ok: false, error: `Sesión ${sessionId} no encontrada.` };
121
- }
122
- const session = sessionEntry.doc;
123
- if (session.status !== "active") {
124
- return {
125
- ok: false,
126
- error: `La sesión está ${session.status}. Solo se pueden agregar segmentos a sesiones activas.`,
127
- };
128
- }
129
-
130
- const audioInput: AudioInput = {
131
- type: "base64",
132
- data: audioBase64,
133
- mimeType,
134
- };
135
-
136
- let transcription: string;
137
- try {
138
- transcription = await voiceService.transcribe(audioInput, session.stt_model);
139
- } catch (transcribeError) {
140
- return {
141
- ok: false,
142
- error: `Error de transcripción: ${(transcribeError as Error).message}`,
143
- };
144
- }
145
-
146
- const paddedSeq = await nextId(`meetingSegments:${sessionId}`);
147
- const seq = parseInt(paddedSeq, 10) - 1; // preserve the original 0-based sequence
148
-
149
- const segmentsCol = await col<MeetingSegmentDoc>("meetingSegments");
150
- await segmentsCol.put(`${sessionId}:${paddedSeq}`, {
151
- id: `${sessionId}:${paddedSeq}`,
152
- session_id: sessionId,
153
- seq,
154
- speaker,
155
- text: transcription,
156
- duration_ms: null,
157
- created_at: Date.now(),
158
- }, { expectedVersion: 0 });
159
-
160
- log.info(`Segment ${seq} added to session ${sessionId}: "${transcription.substring(0, 60)}..."`);
161
-
162
- return {
163
- ok: true,
164
- seq,
165
- speaker: speaker || null,
166
- text: transcription,
167
- message: speaker ? `[${speaker}]: ${transcription}` : transcription,
168
- };
169
- } catch (error) {
170
- log.error(`meeting_add_segment error: ${(error as Error).message}`);
171
- return {
172
- ok: false,
173
- error: `Error al agregar segmento: ${(error as Error).message}`,
174
- };
175
- }
176
- },
177
- };
178
-
179
- // ─── meeting_stop ────────────────────────────────────────────────────────────
180
-
181
- export const meetingStopTool: Tool = {
182
- name: "meeting_stop",
183
- description:
184
- "Detiene una sesión de transcripción de reunión. | Stop an active meeting transcription session.",
185
- parameters: {
186
- type: "object",
187
- properties: {
188
- session_id: {
189
- type: "string",
190
- description: "ID de la sesión de reunión a detener",
191
- },
192
- },
193
- required: ["session_id"],
194
- },
195
- execute: async (params) => {
196
- const sessionId = params.session_id as string;
197
-
198
- try {
199
- const sessionsCol = await col<MeetingSessionDoc>("meetingSessions");
200
- const sessionEntry = await sessionsCol.get(sessionId);
201
-
202
- if (!sessionEntry) {
203
- return { ok: false, error: `Sesión ${sessionId} no encontrada.` };
204
- }
205
- const session = sessionEntry.doc;
206
- if (session.status === "stopped" || session.status === "report_ready") {
207
- return {
208
- ok: true,
209
- session_id: sessionId,
210
- message: `La sesión ya estaba detenida (status: ${session.status}).`,
211
- };
212
- }
213
-
214
- await sessionsCol.put(sessionId, { ...session, status: "stopped", stopped_at: Date.now() }, { expectedVersion: sessionEntry.version });
215
-
216
- const segmentsCol = await col<MeetingSegmentDoc>("meetingSegments");
217
- const count = (await segmentsCol.scan({ prefix: `${sessionId}:` })).length;
218
-
219
- log.info(`Meeting session stopped: ${sessionId} — ${count} segments`);
220
-
221
- return {
222
- ok: true,
223
- session_id: sessionId,
224
- title: session.title,
225
- segment_count: count,
226
- message: `⏹️ Sesión "${session.title}" detenida.\n${count} segmentos transcritos.\n\nPuedes pedir el reporte con: "Genera el reporte de la reunión ${sessionId}"`,
227
- };
228
- } catch (error) {
229
- log.error(`meeting_stop error: ${(error as Error).message}`);
230
- return { ok: false, error: `Error al detener la sesión: ${(error as Error).message}` };
231
- }
232
- },
233
- };
234
-
235
- // ─── meeting_report ──────────────────────────────────────────────────────────
236
-
237
- export const meetingReportTool: Tool = {
238
- name: "meeting_report",
239
- description:
240
- "Obtiene el transcript completo de una sesión de reunión para que el agente genere el informe gerencial. | Get the full transcript of a meeting session so the agent can generate the managerial report.",
241
- parameters: {
242
- type: "object",
243
- properties: {
244
- session_id: {
245
- type: "string",
246
- description: "ID de la sesión de reunión",
247
- },
248
- },
249
- required: ["session_id"],
250
- },
251
- execute: async (params) => {
252
- const sessionId = params.session_id as string;
253
-
254
- try {
255
- const sessionsCol = await col<MeetingSessionDoc>("meetingSessions");
256
- const sessionEntry = await sessionsCol.get(sessionId);
257
-
258
- if (!sessionEntry) {
259
- return { ok: false, error: `Sesión ${sessionId} no encontrada.` };
260
- }
261
- const session = sessionEntry.doc;
262
-
263
- const segmentsCol = await col<MeetingSegmentDoc>("meetingSegments");
264
- const segments = (await segmentsCol.scan({ prefix: `${sessionId}:` }))
265
- .map(e => e.doc)
266
- .sort((a, b) => a.seq - b.seq);
267
-
268
- if (segments.length === 0) {
269
- return {
270
- ok: false,
271
- error: "La sesión no tiene segmentos transcritos. No se puede generar el reporte.",
272
- };
273
- }
274
-
275
- const transcript = segments
276
- .map((s) => (s.speaker ? `[${s.speaker}]: ${s.text}` : s.text))
277
- .join("\n");
278
-
279
- const durationSec = Math.floor(((session.stopped_at ?? Date.now()) - session.started_at) / 1000);
280
- const durationMin = Math.floor(durationSec / 60);
281
- const durationSecRem = durationSec % 60;
282
-
283
- return {
284
- ok: true,
285
- session_id: session.id,
286
- title: session.title,
287
- status: session.status,
288
- duration: `${durationMin}m ${durationSecRem}s`,
289
- segment_count: segments.length,
290
- transcript,
291
- instructions: `Con el transcript anterior, genera un INFORME GERENCIAL en español con estas secciones:
292
-
293
- ## Informe de Reunión: ${session.title}
294
-
295
- ### 1. Resumen Ejecutivo
296
- (3-5 oraciones que capturen la esencia de la reunión)
297
-
298
- ### 2. Participantes Detectados
299
- (Lista de nombres o roles mencionados en el transcript)
300
-
301
- ### 3. Decisiones Tomadas
302
- (Lista numerada de cada decisión concreta)
303
-
304
- ### 4. Action Items
305
- | Qué | Quién | Cuándo |
306
- |-----|-------|--------|
307
- (Tabla con todas las tareas asignadas)
308
-
309
- ### 5. Próximos Pasos
310
- (Lista de acciones inmediatas)
311
-
312
- ### 6. Temas de Seguimiento
313
- (Puntos que quedaron pendientes o requieren más discusión)
314
-
315
- Luego llama a office_escribir_docx para guardar el reporte como documento Word.`,
316
- };
317
- } catch (error) {
318
- log.error(`meeting_report error: ${(error as Error).message}`);
319
- return {
320
- ok: false,
321
- error: `Error al obtener el reporte: ${(error as Error).message}`,
322
- };
323
- }
324
- },
325
- };
326
-
327
- // ─── Registry ────────────────────────────────────────────────────────────────
328
-
329
- export function createTools(): Tool[] {
330
- return [
331
- meetingStartTool,
332
- meetingAddSegmentTool,
333
- meetingStopTool,
334
- meetingReportTool,
335
- ];
336
- }
@@ -1,348 +0,0 @@
1
- /**
2
- * Project & Task management tools — durable project/task engine.
3
- *
4
- * project_create: creates a ProjectDoc
5
- * task_create: creates a TaskDoc with optional depends_on (validated for cycles)
6
- * project_status: returns project + all tasks with their status/progress
7
- *
8
- * The actual execution is driven by TaskDriver (scheduler/task-driver.ts)
9
- * which picks up tasks with completed deps and enqueues project_task jobs
10
- * in the durable queue.
11
- */
12
-
13
- import type { Tool } from "../types.ts";
14
- import { col, nextId, toIndexable, fromIndexable } from "../../storage/hive.ts";
15
- import type { ProjectDoc, TaskDoc, AgentDoc } from "../../storage/collections.ts";
16
- import { logger } from "../../utils/logger.ts";
17
-
18
- const log = logger.child("projects");
19
-
20
- // ─── project_create ──────────────────────────────────────────────────────────
21
-
22
- export const projectCreateTool: Tool = {
23
- name: "project_create",
24
- description: "Create a new project. Spanish: crear proyecto, nuevo proyecto, iniciar proyecto",
25
- parameters: {
26
- type: "object",
27
- properties: {
28
- name: { type: "string", description: "Project name" },
29
- description: { type: "string", description: "Project description" },
30
- type: { type: "string", description: "Project type (build, research, deploy, etc.)" },
31
- agent_id: { type: "string", description: "Coordinator agent ID (optional)" },
32
- },
33
- required: ["name"],
34
- },
35
- execute: async (params: Record<string, unknown>, config?: any) => {
36
- const name = params.name as string;
37
- const description = (params.description as string) ?? null;
38
- const type = (params.type as string) ?? "general";
39
- const agentId = (params.agent_id as string) ?? null;
40
- const userId = config?.configurable?.user_id ?? "";
41
-
42
- try {
43
- const id = await nextId("projects");
44
- const now = Date.now();
45
- const projectsCol = await col<ProjectDoc>("projects");
46
- await projectsCol.put(id, {
47
- id,
48
- user_id: userId,
49
- agent_id: toIndexable(agentId),
50
- name,
51
- description,
52
- type,
53
- task: null,
54
- progress: 0,
55
- status: "pending",
56
- context: null,
57
- parent_id: toIndexable(null),
58
- created_at: now,
59
- updated_at: now,
60
- started_at: null,
61
- completed_at: null,
62
- }, { expectedVersion: 0 });
63
-
64
- return {
65
- ok: true,
66
- project_id: id,
67
- name,
68
- message: `Project "${name}" created (id=${id}).`,
69
- };
70
- } catch (error) {
71
- return { ok: false, error: `Failed to create project: ${(error as Error).message}` };
72
- }
73
- },
74
- };
75
-
76
- // ─── task_create ────────────────────────────────────────────────────────────
77
-
78
- export const taskCreateTool: Tool = {
79
- name: "task_create",
80
- description: "Create a task within a project, optionally with dependencies. Spanish: crear tarea, nueva tarea, agregar subtarea",
81
- parameters: {
82
- type: "object",
83
- properties: {
84
- project_id: { type: "string", description: "Project ID" },
85
- name: { type: "string", description: "Task name" },
86
- description: { type: "string", description: "Task description / instructions" },
87
- agent_id: { type: "string", description: "Worker agent ID (optional)" },
88
- depends_on: {
89
- type: "array",
90
- description: "Task IDs this task depends on (must complete first)",
91
- items: { type: "string" },
92
- },
93
- priority: { type: "number", description: "Priority (higher = more urgent, default 0)" },
94
- },
95
- required: ["project_id", "name"],
96
- },
97
- execute: async (params: Record<string, unknown>, config?: any) => {
98
- const projectId = params.project_id as string;
99
- const name = params.name as string;
100
- const description = (params.description as string) ?? null;
101
- const agentId = (params.agent_id as string) ?? null;
102
- const dependsOn = (params.depends_on as string[]) ?? null;
103
- const priority = (params.priority as number) ?? 0;
104
-
105
- try {
106
- // Verify project exists
107
- const projectsCol = await col<ProjectDoc>("projects");
108
- const projectEntry = await projectsCol.get(projectId);
109
- if (!projectEntry) {
110
- return { ok: false, error: `Project not found: ${projectId}` };
111
- }
112
-
113
- // Validate dependency graph (no cycles) if depends_on provided
114
- if (dependsOn && dependsOn.length > 0) {
115
- try {
116
- const tasksCol = await col<TaskDoc>("tasks");
117
- const existingTasks = (await tasksCol.findBy("project_id", projectId)).map((e) => e.doc);
118
- const allTaskIds = new Set(existingTasks.map((t) => t.id));
119
- for (const dep of dependsOn) {
120
- if (!allTaskIds.has(dep)) {
121
- return { ok: false, error: `Dependency task "${dep}" not found in project ${projectId}` };
122
- }
123
- }
124
- // Build adjacency list for cycle detection (DFS)
125
- const adj = new Map<string, string[]>();
126
- for (const t of existingTasks) {
127
- adj.set(t.id, t.depends_on ? JSON.parse(t.depends_on) : []);
128
- }
129
- adj.set("__new__", dependsOn);
130
-
131
- // Three-color DFS: 0=white, 1=gray, 2=black
132
- const color = new Map<string, number>();
133
- for (const id of adj.keys()) color.set(id, 0);
134
- let hasCycle = false;
135
- const visit = (id: string): void => {
136
- if (hasCycle) return;
137
- color.set(id, 1);
138
- const deps = adj.get(id) ?? [];
139
- for (const dep of deps) {
140
- const c = color.get(dep) ?? 0;
141
- if (c === 1) { hasCycle = true; return; }
142
- if (c === 0) visit(dep);
143
- }
144
- color.set(id, 2);
145
- };
146
- for (const id of adj.keys()) {
147
- if (color.get(id) === 0) visit(id);
148
- }
149
- if (hasCycle) {
150
- return { ok: false, error: "Dependency cycle detected — cannot create circular task dependencies" };
151
- }
152
- } catch (err) {
153
- return { ok: false, error: `Dependency validation failed: ${(err as Error).message}` };
154
- }
155
- }
156
-
157
- const id = await nextId("tasks");
158
- const now = Date.now();
159
- const tasksCol = await col<TaskDoc>("tasks");
160
- await tasksCol.put(id, {
161
- id,
162
- project_id: projectId,
163
- agent_id: toIndexable(agentId),
164
- parent_task_id: null,
165
- name,
166
- description,
167
- status: "pending",
168
- progress: 0,
169
- priority,
170
- depends_on: dependsOn ? JSON.stringify(dependsOn) : null,
171
- result: null,
172
- error: null,
173
- metadata: null,
174
- job_id: null,
175
- run_id: null,
176
- thread_id: null,
177
- started_at: null,
178
- attempts: 0,
179
- created_at: now,
180
- updated_at: now,
181
- completed_at: null,
182
- }, { expectedVersion: 0 });
183
-
184
- // Update project status → active
185
- if (projectEntry.doc.status === "pending") {
186
- await projectsCol.put(projectId, {
187
- ...projectEntry.doc,
188
- status: "active",
189
- started_at: now,
190
- updated_at: now,
191
- }, { expectedVersion: projectEntry.version });
192
- }
193
-
194
- // Kick the driver so dependency-free tasks start without waiting for
195
- // the 10s poll.
196
- try {
197
- const { getTaskDriver } = await import("../../scheduler/task-driver.ts");
198
- void getTaskDriver().kick("task_create");
199
- } catch { /* driver not initialized (e.g. tests) */ }
200
-
201
- return {
202
- ok: true,
203
- task_id: id,
204
- project_id: projectId,
205
- name,
206
- depends_on: dependsOn,
207
- message: `Task "${name}" created (id=${id}).`,
208
- };
209
- } catch (error) {
210
- return { ok: false, error: `Failed to create task: ${(error as Error).message}` };
211
- }
212
- },
213
- };
214
-
215
- // ─── task_complete ───────────────────────────────────────────────────────────
216
-
217
- export const taskCompleteTool: Tool = {
218
- name: "task_complete",
219
- description: "Mark a project task as completed (or failed) manually, unblocking its dependents. Spanish: completar tarea, marcar tarea lista, cerrar tarea",
220
- parameters: {
221
- type: "object",
222
- properties: {
223
- task_id: { type: "string", description: "Task ID" },
224
- result: { type: "string", description: "Result summary (optional)" },
225
- failed: { type: "boolean", description: "Mark as failed instead of completed" },
226
- error: { type: "string", description: "Error description when failed=true" },
227
- },
228
- required: ["task_id"],
229
- },
230
- execute: async (params: Record<string, unknown>) => {
231
- const taskId = params.task_id as string;
232
- const result = (params.result as string) ?? null;
233
- const failed = params.failed === true;
234
- const error = (params.error as string) ?? null;
235
-
236
- try {
237
- const tasksCol = await col<TaskDoc>("tasks");
238
- const entry = await tasksCol.get(taskId);
239
- if (!entry) {
240
- return { ok: false, error: `Task not found: ${taskId}` };
241
- }
242
- const task = entry.doc;
243
- if (task.status === "completed") {
244
- return { ok: true, task_id: taskId, status: "completed", message: "Task was already completed." };
245
- }
246
-
247
- const now = Date.now();
248
- await tasksCol.put(taskId, {
249
- ...task,
250
- status: failed ? "failed" : "completed",
251
- progress: failed ? task.progress : 100,
252
- result: result ?? task.result,
253
- error: failed ? (error ?? "Marked as failed") : null,
254
- completed_at: failed ? null : now,
255
- updated_at: now,
256
- }, { expectedVersion: entry.version });
257
-
258
- // Kick the driver so dependent tasks get evaluated right away
259
- try {
260
- const { getTaskDriver } = await import("../../scheduler/task-driver.ts");
261
- void getTaskDriver().kick("task_complete");
262
- } catch { /* driver not initialized (e.g. tests) */ }
263
-
264
- return {
265
- ok: true,
266
- task_id: taskId,
267
- status: failed ? "failed" : "completed",
268
- message: `Task "${task.name}" marked as ${failed ? "failed" : "completed"}.`,
269
- };
270
- } catch (err) {
271
- return { ok: false, error: `Failed to complete task: ${(err as Error).message}` };
272
- }
273
- },
274
- };
275
-
276
- // ─── project_status ──────────────────────────────────────────────────────────
277
-
278
- export const projectStatusTool: Tool = {
279
- name: "project_status",
280
- description: "Get project status and all its tasks. Spanish: estado proyecto, ver tareas, progreso proyecto",
281
- parameters: {
282
- type: "object",
283
- properties: {
284
- project_id: { type: "string", description: "Project ID" },
285
- },
286
- required: ["project_id"],
287
- },
288
- execute: async (params: Record<string, unknown>) => {
289
- const projectId = params.project_id as string;
290
-
291
- try {
292
- const projectsCol = await col<ProjectDoc>("projects");
293
- const projectEntry = await projectsCol.get(projectId);
294
- if (!projectEntry) {
295
- return { ok: false, error: `Project not found: ${projectId}` };
296
- }
297
- const project = projectEntry.doc;
298
-
299
- const tasksCol = await col<TaskDoc>("tasks");
300
- const taskEntries = await tasksCol.findBy("project_id", projectId);
301
- const tasks = taskEntries.map((e) => e.doc);
302
-
303
- const byStatus = tasks.reduce((acc, t) => {
304
- acc[t.status] = (acc[t.status] ?? 0) + 1;
305
- return acc;
306
- }, {} as Record<string, number>);
307
-
308
- const overallProgress = tasks.length > 0
309
- ? Math.round(tasks.reduce((sum, t) => sum + t.progress, 0) / tasks.length)
310
- : 0;
311
-
312
- return {
313
- ok: true,
314
- project: {
315
- id: project.id,
316
- name: project.name,
317
- description: project.description,
318
- status: project.status,
319
- progress: overallProgress,
320
- type: project.type,
321
- },
322
- tasks: tasks.map((t) => ({
323
- id: t.id,
324
- name: t.name,
325
- status: t.status,
326
- progress: t.progress,
327
- depends_on: t.depends_on ? JSON.parse(t.depends_on) : null,
328
- result: t.result,
329
- error: t.error,
330
- agent_id: fromIndexable(t.agent_id),
331
- attempts: t.attempts ?? 0,
332
- })),
333
- summary: {
334
- total: tasks.length,
335
- by_status: byStatus,
336
- },
337
- };
338
- } catch (error) {
339
- return { ok: false, error: `Failed to get project status: ${(error as Error).message}` };
340
- }
341
- },
342
- };
343
-
344
- // ─── Export all tools ────────────────────────────────────────────────────────
345
-
346
- export function createProjectTools(): Tool[] {
347
- return [projectCreateTool, taskCreateTool, taskCompleteTool, projectStatusTool];
348
- }