@synergenius/flow-weaver-pack-weaver 0.9.59 → 0.9.77

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 (217) hide show
  1. package/dist/ai-chat-provider.d.ts +12 -0
  2. package/dist/ai-chat-provider.d.ts.map +1 -1
  3. package/dist/ai-chat-provider.js +351 -335
  4. package/dist/ai-chat-provider.js.map +1 -1
  5. package/dist/bot/agent-loop.d.ts +20 -0
  6. package/dist/bot/agent-loop.d.ts.map +1 -0
  7. package/dist/bot/agent-loop.js +331 -0
  8. package/dist/bot/agent-loop.js.map +1 -0
  9. package/dist/bot/ai-router.d.ts +19 -0
  10. package/dist/bot/ai-router.d.ts.map +1 -0
  11. package/dist/bot/ai-router.js +104 -0
  12. package/dist/bot/ai-router.js.map +1 -0
  13. package/dist/bot/assistant-tools.d.ts.map +1 -1
  14. package/dist/bot/assistant-tools.js +49 -33
  15. package/dist/bot/assistant-tools.js.map +1 -1
  16. package/dist/bot/async-mutex.d.ts +13 -0
  17. package/dist/bot/async-mutex.d.ts.map +1 -0
  18. package/dist/bot/async-mutex.js +37 -0
  19. package/dist/bot/async-mutex.js.map +1 -0
  20. package/dist/bot/bot-manager.d.ts +2 -2
  21. package/dist/bot/bot-manager.d.ts.map +1 -1
  22. package/dist/bot/bot-manager.js +3 -3
  23. package/dist/bot/bot-manager.js.map +1 -1
  24. package/dist/bot/bot-registry.js +2 -2
  25. package/dist/bot/bot-registry.js.map +1 -1
  26. package/dist/bot/conversation-store.d.ts +1 -0
  27. package/dist/bot/conversation-store.d.ts.map +1 -1
  28. package/dist/bot/conversation-store.js.map +1 -1
  29. package/dist/bot/dashboard.d.ts.map +1 -1
  30. package/dist/bot/dashboard.js +17 -8
  31. package/dist/bot/dashboard.js.map +1 -1
  32. package/dist/bot/improve-loop.js.map +1 -1
  33. package/dist/bot/index.d.ts +2 -4
  34. package/dist/bot/index.d.ts.map +1 -1
  35. package/dist/bot/index.js +1 -2
  36. package/dist/bot/index.js.map +1 -1
  37. package/dist/bot/instance-manager.d.ts +31 -0
  38. package/dist/bot/instance-manager.d.ts.map +1 -0
  39. package/dist/bot/instance-manager.js +115 -0
  40. package/dist/bot/instance-manager.js.map +1 -0
  41. package/dist/bot/orchestrator.d.ts +36 -0
  42. package/dist/bot/orchestrator.d.ts.map +1 -0
  43. package/dist/bot/orchestrator.js +176 -0
  44. package/dist/bot/orchestrator.js.map +1 -0
  45. package/dist/bot/profile-store.d.ts +36 -0
  46. package/dist/bot/profile-store.d.ts.map +1 -0
  47. package/dist/bot/profile-store.js +208 -0
  48. package/dist/bot/profile-store.js.map +1 -0
  49. package/dist/bot/profile-types.d.ts +126 -0
  50. package/dist/bot/profile-types.d.ts.map +1 -0
  51. package/dist/bot/profile-types.js +7 -0
  52. package/dist/bot/profile-types.js.map +1 -0
  53. package/dist/bot/run-store.d.ts.map +1 -1
  54. package/dist/bot/run-store.js +8 -0
  55. package/dist/bot/run-store.js.map +1 -1
  56. package/dist/bot/runner.d.ts +4 -0
  57. package/dist/bot/runner.d.ts.map +1 -1
  58. package/dist/bot/runner.js +5 -1
  59. package/dist/bot/runner.js.map +1 -1
  60. package/dist/bot/swarm-controller.d.ts +109 -0
  61. package/dist/bot/swarm-controller.d.ts.map +1 -0
  62. package/dist/bot/swarm-controller.js +640 -0
  63. package/dist/bot/swarm-controller.js.map +1 -0
  64. package/dist/bot/swarm-event-log.d.ts +28 -0
  65. package/dist/bot/swarm-event-log.d.ts.map +1 -0
  66. package/dist/bot/swarm-event-log.js +54 -0
  67. package/dist/bot/swarm-event-log.js.map +1 -0
  68. package/dist/bot/task-prompt-builder.d.ts +22 -0
  69. package/dist/bot/task-prompt-builder.d.ts.map +1 -0
  70. package/dist/bot/task-prompt-builder.js +240 -0
  71. package/dist/bot/task-prompt-builder.js.map +1 -0
  72. package/dist/bot/task-store.d.ts +21 -0
  73. package/dist/bot/task-store.d.ts.map +1 -0
  74. package/dist/bot/task-store.js +364 -0
  75. package/dist/bot/task-store.js.map +1 -0
  76. package/dist/bot/task-types.d.ts +79 -0
  77. package/dist/bot/task-types.d.ts.map +1 -0
  78. package/dist/bot/task-types.js +6 -0
  79. package/dist/bot/task-types.js.map +1 -0
  80. package/dist/bot/types.d.ts +8 -0
  81. package/dist/bot/types.d.ts.map +1 -1
  82. package/dist/cli-handlers.d.ts.map +1 -1
  83. package/dist/cli-handlers.js +79 -54
  84. package/dist/cli-handlers.js.map +1 -1
  85. package/dist/cli.d.ts +3 -0
  86. package/dist/cli.d.ts.map +1 -0
  87. package/dist/cli.js +749 -0
  88. package/dist/cli.js.map +1 -0
  89. package/dist/docs/docs/weaver-bot-usage.md +35 -18
  90. package/dist/docs/docs/weaver-config.md +20 -0
  91. package/dist/docs/docs/weaver-task-queue.md +31 -19
  92. package/dist/docs/weaver-config.md +15 -9
  93. package/dist/index.d.ts +2 -2
  94. package/dist/index.d.ts.map +1 -1
  95. package/dist/index.js +1 -1
  96. package/dist/index.js.map +1 -1
  97. package/dist/mcp-tools.d.ts +17 -0
  98. package/dist/mcp-tools.d.ts.map +1 -1
  99. package/dist/mcp-tools.js +98 -279
  100. package/dist/mcp-tools.js.map +1 -1
  101. package/dist/node-types/bot-report.d.ts.map +1 -1
  102. package/dist/node-types/bot-report.js +6 -24
  103. package/dist/node-types/bot-report.js.map +1 -1
  104. package/dist/node-types/orchestrator-dispatch.d.ts +17 -0
  105. package/dist/node-types/orchestrator-dispatch.d.ts.map +1 -0
  106. package/dist/node-types/orchestrator-dispatch.js +63 -0
  107. package/dist/node-types/orchestrator-dispatch.js.map +1 -0
  108. package/dist/node-types/orchestrator-load-state.d.ts +16 -0
  109. package/dist/node-types/orchestrator-load-state.d.ts.map +1 -0
  110. package/dist/node-types/orchestrator-load-state.js +60 -0
  111. package/dist/node-types/orchestrator-load-state.js.map +1 -0
  112. package/dist/node-types/orchestrator-route.d.ts +16 -0
  113. package/dist/node-types/orchestrator-route.d.ts.map +1 -0
  114. package/dist/node-types/orchestrator-route.js +28 -0
  115. package/dist/node-types/orchestrator-route.js.map +1 -0
  116. package/dist/node-types/receive-task.d.ts +2 -3
  117. package/dist/node-types/receive-task.d.ts.map +1 -1
  118. package/dist/node-types/receive-task.js +3 -48
  119. package/dist/node-types/receive-task.js.map +1 -1
  120. package/dist/templates/weaver-template.d.ts +11 -0
  121. package/dist/templates/weaver-template.d.ts.map +1 -0
  122. package/dist/templates/weaver-template.js +53 -0
  123. package/dist/templates/weaver-template.js.map +1 -0
  124. package/dist/ui/bot-activity.js +2 -2
  125. package/dist/ui/bot-constants.d.ts +14 -0
  126. package/dist/ui/bot-constants.d.ts.map +1 -0
  127. package/dist/ui/bot-constants.js +189 -0
  128. package/dist/ui/bot-constants.js.map +1 -0
  129. package/dist/ui/bot-panel.js +207 -245
  130. package/dist/ui/bot-slot-card.js +141 -0
  131. package/dist/ui/budget-bar.js +59 -0
  132. package/dist/ui/chat-task-result.js +178 -0
  133. package/dist/ui/decision-log.js +136 -0
  134. package/dist/ui/profile-card.js +158 -0
  135. package/dist/ui/profile-editor.js +597 -0
  136. package/dist/ui/swarm-controls.js +245 -0
  137. package/dist/ui/swarm-dashboard.js +3012 -0
  138. package/dist/ui/task-create-form.js +98 -0
  139. package/dist/ui/task-detail-view.js +1044 -0
  140. package/dist/ui/task-pool-list.js +156 -0
  141. package/dist/workflows/orchestrator.d.ts +21 -0
  142. package/dist/workflows/orchestrator.d.ts.map +1 -0
  143. package/dist/workflows/orchestrator.js +281 -0
  144. package/dist/workflows/orchestrator.js.map +1 -0
  145. package/dist/workflows/weaver-bot-session.d.ts +65 -0
  146. package/dist/workflows/weaver-bot-session.d.ts.map +1 -0
  147. package/dist/workflows/weaver-bot-session.js +68 -0
  148. package/dist/workflows/weaver-bot-session.js.map +1 -0
  149. package/dist/workflows/weaver.d.ts +24 -0
  150. package/dist/workflows/weaver.d.ts.map +1 -0
  151. package/dist/workflows/weaver.js +28 -0
  152. package/dist/workflows/weaver.js.map +1 -0
  153. package/flowweaver.manifest.json +547 -133
  154. package/package.json +1 -1
  155. package/src/ai-chat-provider.ts +378 -371
  156. package/src/bot/ai-router.ts +132 -0
  157. package/src/bot/assistant-tools.ts +47 -29
  158. package/src/bot/async-mutex.ts +37 -0
  159. package/src/bot/bot-manager.ts +3 -3
  160. package/src/bot/bot-registry.ts +2 -2
  161. package/src/bot/conversation-store.ts +2 -1
  162. package/src/bot/dashboard.ts +17 -8
  163. package/src/bot/improve-loop.ts +6 -6
  164. package/src/bot/index.ts +2 -4
  165. package/src/bot/instance-manager.ts +128 -0
  166. package/src/bot/orchestrator.ts +244 -0
  167. package/src/bot/profile-store.ts +225 -0
  168. package/src/bot/profile-types.ts +141 -0
  169. package/src/bot/run-store.ts +8 -0
  170. package/src/bot/runner.ts +9 -1
  171. package/src/bot/swarm-controller.ts +780 -0
  172. package/src/bot/swarm-event-log.ts +57 -0
  173. package/src/bot/task-prompt-builder.ts +309 -0
  174. package/src/bot/task-store.ts +407 -0
  175. package/src/bot/task-types.ts +100 -0
  176. package/src/bot/types.ts +8 -0
  177. package/src/cli-handlers.ts +78 -53
  178. package/src/docs/weaver-bot-usage.md +35 -18
  179. package/src/docs/weaver-config.md +20 -0
  180. package/src/docs/weaver-task-queue.md +31 -19
  181. package/src/index.ts +5 -4
  182. package/src/mcp-tools.ts +129 -372
  183. package/src/node-types/bot-report.ts +6 -24
  184. package/src/node-types/orchestrator-dispatch.ts +71 -0
  185. package/src/node-types/orchestrator-load-state.ts +66 -0
  186. package/src/node-types/orchestrator-route.ts +33 -0
  187. package/src/node-types/receive-task.ts +3 -57
  188. package/src/ui/bot-activity.tsx +2 -2
  189. package/src/ui/bot-constants.ts +192 -0
  190. package/src/ui/bot-panel.tsx +213 -247
  191. package/src/ui/bot-slot-card.tsx +139 -0
  192. package/src/ui/budget-bar.tsx +30 -0
  193. package/src/ui/chat-task-result.tsx +236 -0
  194. package/src/ui/decision-log.tsx +148 -0
  195. package/src/ui/profile-card.tsx +157 -0
  196. package/src/ui/profile-editor.tsx +384 -0
  197. package/src/ui/swarm-controls.tsx +260 -0
  198. package/src/ui/swarm-dashboard.tsx +647 -0
  199. package/src/ui/task-create-form.tsx +87 -0
  200. package/src/ui/task-detail-view.tsx +841 -0
  201. package/src/ui/task-pool-list.tsx +187 -0
  202. package/src/workflows/orchestrator.ts +302 -0
  203. package/dist/docs/weaver-bot-usage.md +0 -34
  204. package/dist/docs/weaver-genesis.md +0 -32
  205. package/dist/docs/weaver-task-queue.md +0 -34
  206. package/dist/ui/bot-workspace.js +0 -1015
  207. package/dist/ui/chat-bot-result.js +0 -71
  208. package/dist/ui/queue-input.js +0 -82
  209. package/dist/ui/session-bar.js +0 -174
  210. package/src/bot/error-guide.ts +0 -4
  211. package/src/bot/retry-utils.ts +0 -4
  212. package/src/bot/session-state.ts +0 -116
  213. package/src/bot/task-queue.ts +0 -262
  214. package/src/ui/bot-workspace.tsx +0 -442
  215. package/src/ui/chat-bot-result.tsx +0 -81
  216. package/src/ui/queue-input.tsx +0 -56
  217. package/src/ui/session-bar.tsx +0 -157
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifestVersion": 2,
3
3
  "name": "@synergenius/flow-weaver-pack-weaver",
4
- "version": "0.9.59",
4
+ "version": "0.9.62",
5
5
  "description": "AI bot for Flow Weaver. Execute tasks, run workflows, evolve autonomously.",
6
6
  "engineVersion": ">=0.22.10",
7
7
  "categories": [
@@ -14,7 +14,7 @@
14
14
  "name": "Weaver Bot",
15
15
  "description": "AI-powered autonomous workflow creator",
16
16
  "icon": "psychology",
17
- "color": "#6366f1",
17
+ "color": "color-node-blue-icon",
18
18
  "workflowExport": "weaverBot",
19
19
  "paramName": "taskJson",
20
20
  "sourceTemplateId": "weaver-bot"
@@ -24,7 +24,7 @@
24
24
  "name": "Weaver Genesis",
25
25
  "description": "Self-evolution cycle for a target workflow",
26
26
  "icon": "autoAwesome",
27
- "color": "#9f5fe3",
27
+ "color": "color-node-purple-icon",
28
28
  "workflowExport": "genesisTask",
29
29
  "paramName": "config",
30
30
  "sourceTemplateId": "genesis-task"
@@ -962,46 +962,39 @@
962
962
  ],
963
963
  "mcpEntrypoint": "dist/mcp-tools.js",
964
964
  "mcpTools": [
965
- {
966
- "name": "fw_weaver_run",
967
- "description": "Run a workflow file through the bot"
968
- },
969
- {
970
- "name": "fw_weaver_history",
971
- "description": "Query run history"
972
- },
973
- {
974
- "name": "fw_weaver_costs",
975
- "description": "Get cost summary"
976
- },
977
- {
978
- "name": "fw_weaver_providers",
979
- "description": "List available providers"
980
- },
981
- {
982
- "name": "fw_weaver_bot",
983
- "description": "Execute a task from natural language"
984
- },
985
- {
986
- "name": "fw_weaver_steer",
987
- "description": "Send steering command to running bot"
988
- },
989
- {
990
- "name": "fw_weaver_queue",
991
- "description": "Manage bot task queue"
992
- },
993
- {
994
- "name": "fw_weaver_status",
995
- "description": "Get bot session status"
996
- },
997
- {
998
- "name": "fw_weaver_genesis",
999
- "description": "Run bot self-evolution cycle on a target workflow"
1000
- },
1001
- {
1002
- "name": "fw_weaver_insights",
1003
- "description": "Get project health, insights, trust level, and cost summary"
1004
- }
965
+ { "name": "fw_weaver_run", "description": "Execute a workflow with the AI runner" },
966
+ { "name": "fw_weaver_history", "description": "Query run history" },
967
+ { "name": "fw_weaver_costs", "description": "Get AI cost summary" },
968
+ { "name": "fw_weaver_task_create", "description": "Create a task in the swarm pool" },
969
+ { "name": "fw_weaver_task_list", "description": "List tasks with optional filters" },
970
+ { "name": "fw_weaver_task_get", "description": "Get full details for a task" },
971
+ { "name": "fw_weaver_task_update", "description": "Update a task" },
972
+ { "name": "fw_weaver_task_cancel", "description": "Cancel a pending or running task" },
973
+ { "name": "fw_weaver_task_retry", "description": "Retry a failed or cancelled task" },
974
+ { "name": "fw_weaver_swarm_start", "description": "Start the swarm controller" },
975
+ { "name": "fw_weaver_swarm_pause", "description": "Pause the swarm" },
976
+ { "name": "fw_weaver_swarm_stop", "description": "Stop the swarm" },
977
+ { "name": "fw_weaver_swarm_status", "description": "Get current swarm status" },
978
+ { "name": "fw_weaver_swarm_config", "description": "View or update swarm configuration" },
979
+ { "name": "fw_weaver_swarm_events", "description": "Read swarm event log" },
980
+ { "name": "fw_weaver_providers", "description": "List available AI providers" },
981
+ { "name": "fw_weaver_steer", "description": "Send steering command to running bot" },
982
+ { "name": "fw_weaver_status", "description": "Get bot session status" },
983
+ { "name": "fw_weaver_events", "description": "Read live execution events from a bot task" },
984
+ { "name": "fw_weaver_approve", "description": "Approve or reject a pending bot plan" },
985
+ { "name": "fw_weaver_genesis", "description": "Run bot self-evolution cycle on a target workflow" },
986
+ { "name": "fw_weaver_insights", "description": "Get project health, insights, trust level, and cost summary" },
987
+ { "name": "fw_weaver_list_bots", "description": "List all registered bots" },
988
+ { "name": "fw_weaver_register_bot", "description": "Register a new bot workflow" },
989
+ { "name": "fw_weaver_unregister_bot", "description": "Remove a bot from the registry" },
990
+ { "name": "fw_weaver_validate_bot", "description": "Validate a registered bot's workflow" },
991
+ { "name": "fw_weaver_eject_bot", "description": "Eject a bot for customization" },
992
+ { "name": "fw_weaver_profile_list", "description": "List all bot profiles" },
993
+ { "name": "fw_weaver_profile_create", "description": "Create a new bot profile" },
994
+ { "name": "fw_weaver_profile_update", "description": "Update a bot profile" },
995
+ { "name": "fw_weaver_profile_delete", "description": "Delete a bot profile" },
996
+ { "name": "fw_weaver_orchestrator_status", "description": "Get orchestrator routing status" },
997
+ { "name": "fw_weaver_orchestrator_hint", "description": "Provide a routing hint to the orchestrator" }
1005
998
  ],
1006
999
  "eventSubscriptions": [
1007
1000
  {
@@ -1078,7 +1071,7 @@
1078
1071
  "config": "dist/ui/bot-config.js",
1079
1072
  "status": "dist/ui/bot-status.js",
1080
1073
  "dashboard": "dist/ui/bot-dashboard.js",
1081
- "workspace": "dist/ui/bot-workspace.js"
1074
+ "workspace": "dist/ui/swarm-dashboard.js"
1082
1075
  },
1083
1076
  "sidebarPanel": {
1084
1077
  "component": "dist/ui/bot-panel.js",
@@ -1089,7 +1082,7 @@
1089
1082
  "activityBarSection": "start",
1090
1083
  "requiredTier": "pro"
1091
1084
  },
1092
- "openWorkspaceOnTool": "fw_weaver_bot",
1085
+ "openWorkspaceOnTool": "fw_weaver_task_create",
1093
1086
  "sandboxCapabilities": [
1094
1087
  "fetch:hooks.slack.com",
1095
1088
  "fetch:discord.com",
@@ -1131,7 +1124,7 @@
1131
1124
  "description": "Hands-on AI assistant for Flow Weaver projects. Builds, validates, debugs, and manages workflows. Spawns autonomous bots for long-running tasks."
1132
1125
  },
1133
1126
  "toolResultRenderers": {
1134
- "fw_weaver_bot": "dist/ui/chat-bot-result.js"
1127
+ "fw_weaver_task_create": "dist/ui/chat-task-result.js"
1135
1128
  },
1136
1129
  "tools": [
1137
1130
  {
@@ -1172,6 +1165,14 @@
1172
1165
  "type": "string",
1173
1166
  "description": "Specific run ID to look up"
1174
1167
  },
1168
+ "taskId": {
1169
+ "type": "string",
1170
+ "description": "Filter by task ID"
1171
+ },
1172
+ "botId": {
1173
+ "type": "string",
1174
+ "description": "Filter by bot ID"
1175
+ },
1175
1176
  "limit": {
1176
1177
  "type": "number",
1177
1178
  "description": "Max number of entries (default 20)"
@@ -1206,122 +1207,363 @@
1206
1207
  "model": {
1207
1208
  "type": "string",
1208
1209
  "description": "Filter by model name"
1210
+ },
1211
+ "taskId": {
1212
+ "type": "string",
1213
+ "description": "Filter by task ID"
1214
+ },
1215
+ "botId": {
1216
+ "type": "string",
1217
+ "description": "Filter by bot ID"
1209
1218
  }
1210
1219
  }
1211
1220
  }
1212
1221
  },
1213
1222
  {
1214
- "name": "fw_weaver_providers",
1215
- "description": "List available AI providers for weaver workflow execution.",
1223
+ "name": "fw_weaver_task_create",
1224
+ "description": "Create a new task in the swarm task pool. Supports subtask hierarchies, bot assignment, dependencies, and budget limits.",
1216
1225
  "parameters": {
1217
1226
  "type": "object",
1218
- "properties": {}
1227
+ "properties": {
1228
+ "title": {
1229
+ "type": "string",
1230
+ "description": "Short title for the task"
1231
+ },
1232
+ "description": {
1233
+ "type": "string",
1234
+ "description": "Detailed task description with instructions"
1235
+ },
1236
+ "priority": {
1237
+ "type": "number",
1238
+ "description": "Priority (higher = picked first, default 0)"
1239
+ },
1240
+ "parentId": {
1241
+ "type": "string",
1242
+ "description": "Parent task ID for subtask hierarchy"
1243
+ },
1244
+ "dependsOn": {
1245
+ "type": "array",
1246
+ "items": {
1247
+ "type": "string"
1248
+ },
1249
+ "description": "Task IDs that must complete before this task can start"
1250
+ },
1251
+ "budgetTokens": {
1252
+ "type": "number",
1253
+ "description": "Max tokens for this task"
1254
+ },
1255
+ "budgetCost": {
1256
+ "type": "number",
1257
+ "description": "Max cost in USD for this task"
1258
+ },
1259
+ "timeoutMs": {
1260
+ "type": "number",
1261
+ "description": "Timeout in milliseconds"
1262
+ },
1263
+ "maxAttempts": {
1264
+ "type": "number",
1265
+ "description": "Max retry attempts"
1266
+ },
1267
+ "assignedProfile": {
1268
+ "type": "string",
1269
+ "description": "Profile ID to assign this task to"
1270
+ },
1271
+ "complexity": {
1272
+ "type": "string",
1273
+ "enum": ["trivial", "simple", "moderate", "complex"],
1274
+ "description": "Task complexity estimate for routing"
1275
+ },
1276
+ "subtasks": {
1277
+ "type": "array",
1278
+ "items": {
1279
+ "type": "object",
1280
+ "properties": {
1281
+ "title": {
1282
+ "type": "string",
1283
+ "description": "Subtask title"
1284
+ },
1285
+ "description": {
1286
+ "type": "string",
1287
+ "description": "Subtask description"
1288
+ },
1289
+ "dependsOn": {
1290
+ "type": "array",
1291
+ "items": {
1292
+ "type": "string"
1293
+ },
1294
+ "description": "Sibling subtask indices (0-based) this depends on"
1295
+ },
1296
+ "priority": {
1297
+ "type": "number",
1298
+ "description": "Subtask priority"
1299
+ },
1300
+ "assignedProfile": {
1301
+ "type": "string",
1302
+ "description": "Profile ID to assign this subtask to"
1303
+ },
1304
+ "complexity": {
1305
+ "type": "string",
1306
+ "enum": ["trivial", "simple", "moderate", "complex"],
1307
+ "description": "Subtask complexity estimate"
1308
+ }
1309
+ },
1310
+ "required": [
1311
+ "title"
1312
+ ]
1313
+ },
1314
+ "description": "Inline subtask definitions created atomically with the parent"
1315
+ }
1316
+ },
1317
+ "required": [
1318
+ "title"
1319
+ ]
1219
1320
  }
1220
1321
  },
1221
1322
  {
1222
- "name": "fw_weaver_bot",
1223
- "description": "Run the autonomous bot to create or modify a Flow Weaver workflow. Provide a natural language task description.",
1323
+ "name": "fw_weaver_task_list",
1324
+ "description": "List tasks in the swarm task pool with optional filters by status, parent, or bot assignment.",
1224
1325
  "parameters": {
1225
1326
  "type": "object",
1226
1327
  "properties": {
1227
- "task": {
1328
+ "status": {
1228
1329
  "type": "string",
1229
- "description": "Natural language task description"
1330
+ "description": "Filter by task status (pending, running, completed, failed, cancelled)"
1331
+ },
1332
+ "parentId": {
1333
+ "type": "string",
1334
+ "description": "Filter by parent task ID"
1230
1335
  },
1231
1336
  "botId": {
1232
1337
  "type": "string",
1233
- "description": "ID of a registered bot to run. If omitted, runs the default Weaver Bot."
1338
+ "description": "Filter by assigned bot ID"
1234
1339
  },
1235
- "projectDir": {
1340
+ "limit": {
1341
+ "type": "number",
1342
+ "description": "Max number of tasks to return (default 50)"
1343
+ }
1344
+ }
1345
+ }
1346
+ },
1347
+ {
1348
+ "name": "fw_weaver_task_get",
1349
+ "description": "Get full details for a specific task including context, subtasks, and run history.",
1350
+ "parameters": {
1351
+ "type": "object",
1352
+ "properties": {
1353
+ "id": {
1236
1354
  "type": "string",
1237
- "description": "Project directory"
1355
+ "description": "Task ID"
1238
1356
  },
1239
- "mode": {
1357
+ "includeAllRuns": {
1358
+ "type": "boolean",
1359
+ "description": "Include full run history (default false, only latest run)"
1360
+ }
1361
+ },
1362
+ "required": [
1363
+ "id"
1364
+ ]
1365
+ }
1366
+ },
1367
+ {
1368
+ "name": "fw_weaver_task_update",
1369
+ "description": "Update a task's title, description, priority, assignment, notes, or status.",
1370
+ "parameters": {
1371
+ "type": "object",
1372
+ "properties": {
1373
+ "id": {
1240
1374
  "type": "string",
1241
- "enum": [
1242
- "create",
1243
- "modify",
1244
- "read",
1245
- "batch"
1246
- ],
1247
- "description": "Task mode"
1375
+ "description": "Task ID to update"
1248
1376
  },
1249
- "targets": {
1250
- "type": "array",
1251
- "description": "Target files for modify/read"
1377
+ "title": {
1378
+ "type": "string",
1379
+ "description": "New title"
1252
1380
  },
1253
- "template": {
1381
+ "description": {
1254
1382
  "type": "string",
1255
- "description": "Template to use for scaffolding"
1383
+ "description": "New description"
1256
1384
  },
1257
- "dryRun": {
1258
- "type": "boolean",
1259
- "description": "Preview without executing"
1385
+ "priority": {
1386
+ "type": "number",
1387
+ "description": "New priority"
1260
1388
  },
1261
- "autoApprove": {
1262
- "type": "boolean",
1263
- "description": "Skip approval gate"
1389
+ "notes": {
1390
+ "type": "string",
1391
+ "description": "Append a note to the task"
1392
+ },
1393
+ "status": {
1394
+ "type": "string",
1395
+ "description": "Force a status change (pending, cancelled)"
1264
1396
  }
1265
1397
  },
1266
1398
  "required": [
1267
- "task"
1399
+ "id"
1268
1400
  ]
1269
1401
  }
1270
1402
  },
1271
1403
  {
1272
- "name": "fw_weaver_steer",
1273
- "description": "Send a steering command to a running bot (pause, resume, cancel, redirect, queue).",
1404
+ "name": "fw_weaver_task_cancel",
1405
+ "description": "Cancel a pending or running task. Running tasks are aborted gracefully.",
1274
1406
  "parameters": {
1275
1407
  "type": "object",
1276
1408
  "properties": {
1277
- "command": {
1409
+ "id": {
1278
1410
  "type": "string",
1279
- "enum": [
1280
- "pause",
1281
- "resume",
1282
- "cancel",
1283
- "redirect",
1284
- "queue"
1285
- ],
1286
- "description": "Steering command"
1287
- },
1288
- "payload": {
1411
+ "description": "Task ID to cancel"
1412
+ }
1413
+ },
1414
+ "required": [
1415
+ "id"
1416
+ ]
1417
+ }
1418
+ },
1419
+ {
1420
+ "name": "fw_weaver_task_retry",
1421
+ "description": "Retry a failed or cancelled task. Resets status to pending and increments attempt count.",
1422
+ "parameters": {
1423
+ "type": "object",
1424
+ "properties": {
1425
+ "id": {
1289
1426
  "type": "string",
1290
- "description": "Payload for redirect/queue commands"
1427
+ "description": "Task ID to retry"
1291
1428
  }
1292
1429
  },
1293
1430
  "required": [
1294
- "command"
1431
+ "id"
1295
1432
  ]
1296
1433
  }
1297
1434
  },
1298
1435
  {
1299
- "name": "fw_weaver_queue",
1300
- "description": "Manage the bot task queue (add, list, clear, remove tasks).",
1436
+ "name": "fw_weaver_swarm_start",
1437
+ "description": "Start the swarm controller. Bots begin claiming and executing tasks from the pool.",
1438
+ "parameters": {
1439
+ "type": "object",
1440
+ "properties": {
1441
+ "maxConcurrent": {
1442
+ "type": "number",
1443
+ "description": "Max concurrent bot slots (default from config)"
1444
+ },
1445
+ "sessionBudgetTokens": {
1446
+ "type": "number",
1447
+ "description": "Token budget for this session"
1448
+ },
1449
+ "sessionBudgetCost": {
1450
+ "type": "number",
1451
+ "description": "Cost budget in USD for this session"
1452
+ }
1453
+ }
1454
+ }
1455
+ },
1456
+ {
1457
+ "name": "fw_weaver_swarm_pause",
1458
+ "description": "Pause the swarm. Running tasks finish but no new tasks are claimed.",
1459
+ "parameters": {
1460
+ "type": "object",
1461
+ "properties": {}
1462
+ }
1463
+ },
1464
+ {
1465
+ "name": "fw_weaver_swarm_stop",
1466
+ "description": "Stop the swarm. All running tasks are cancelled and bot slots are released.",
1467
+ "parameters": {
1468
+ "type": "object",
1469
+ "properties": {}
1470
+ }
1471
+ },
1472
+ {
1473
+ "name": "fw_weaver_swarm_status",
1474
+ "description": "Get current swarm status: state, active bots, task counts, budget consumption.",
1475
+ "parameters": {
1476
+ "type": "object",
1477
+ "properties": {}
1478
+ }
1479
+ },
1480
+ {
1481
+ "name": "fw_weaver_swarm_config",
1482
+ "description": "View or update swarm configuration: concurrency, budgets, retry policy.",
1483
+ "parameters": {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "maxConcurrent": {
1487
+ "type": "number",
1488
+ "description": "Max concurrent bot slots"
1489
+ },
1490
+ "workspaceBudgetTokens": {
1491
+ "type": "number",
1492
+ "description": "Workspace-level token budget"
1493
+ },
1494
+ "workspaceBudgetCost": {
1495
+ "type": "number",
1496
+ "description": "Workspace-level cost budget in USD"
1497
+ },
1498
+ "sessionBudgetTokens": {
1499
+ "type": "number",
1500
+ "description": "Session-level token budget"
1501
+ },
1502
+ "sessionBudgetCost": {
1503
+ "type": "number",
1504
+ "description": "Session-level cost budget in USD"
1505
+ },
1506
+ "autoRetry": {
1507
+ "type": "boolean",
1508
+ "description": "Auto-retry failed tasks"
1509
+ },
1510
+ "maxAttemptsDefault": {
1511
+ "type": "number",
1512
+ "description": "Default max attempts for tasks"
1513
+ }
1514
+ }
1515
+ }
1516
+ },
1517
+ {
1518
+ "name": "fw_weaver_swarm_events",
1519
+ "description": "Read swarm event log for live dashboard updates. Returns events from the given offset.",
1301
1520
  "parameters": {
1302
1521
  "type": "object",
1303
1522
  "properties": {
1304
- "action": {
1523
+ "offset": {
1524
+ "type": "number",
1525
+ "description": "Event offset to read from (default 0)"
1526
+ }
1527
+ }
1528
+ }
1529
+ },
1530
+ {
1531
+ "name": "fw_weaver_providers",
1532
+ "description": "List available AI providers for weaver workflow execution.",
1533
+ "parameters": {
1534
+ "type": "object",
1535
+ "properties": {}
1536
+ }
1537
+ },
1538
+ {
1539
+ "name": "fw_weaver_steer",
1540
+ "description": "Send a steering command to a running bot (pause, resume, cancel, redirect, queue).",
1541
+ "parameters": {
1542
+ "type": "object",
1543
+ "properties": {
1544
+ "botId": {
1305
1545
  "type": "string",
1306
- "enum": [
1307
- "add",
1308
- "list",
1309
- "clear",
1310
- "remove"
1311
- ],
1312
- "description": "Queue action"
1546
+ "description": "ID of the bot to steer"
1313
1547
  },
1314
- "task": {
1548
+ "command": {
1315
1549
  "type": "string",
1316
- "description": "Task instruction (for add)"
1550
+ "enum": [
1551
+ "pause",
1552
+ "resume",
1553
+ "cancel",
1554
+ "redirect",
1555
+ "queue"
1556
+ ],
1557
+ "description": "Steering command"
1317
1558
  },
1318
- "id": {
1559
+ "payload": {
1319
1560
  "type": "string",
1320
- "description": "Task ID (for remove)"
1561
+ "description": "Payload for redirect/queue commands"
1321
1562
  }
1322
1563
  },
1323
1564
  "required": [
1324
- "action"
1565
+ "botId",
1566
+ "command"
1325
1567
  ]
1326
1568
  }
1327
1569
  },
@@ -1341,7 +1583,7 @@
1341
1583
  "properties": {
1342
1584
  "runId": {
1343
1585
  "type": "string",
1344
- "description": "Run ID returned by fw_weaver_bot"
1586
+ "description": "Run ID from task execution"
1345
1587
  },
1346
1588
  "offset": {
1347
1589
  "type": "number",
@@ -1373,31 +1615,6 @@
1373
1615
  ]
1374
1616
  }
1375
1617
  },
1376
- {
1377
- "name": "fw_weaver_session",
1378
- "description": "Start, stop, or check status of an autonomous bot session",
1379
- "parameters": {
1380
- "type": "object",
1381
- "properties": {
1382
- "action": {
1383
- "type": "string",
1384
- "enum": [
1385
- "start",
1386
- "stop",
1387
- "status"
1388
- ],
1389
- "description": "Session action"
1390
- },
1391
- "maxTasks": {
1392
- "type": "number",
1393
- "description": "Max tasks to process (default: all)"
1394
- }
1395
- },
1396
- "required": [
1397
- "action"
1398
- ]
1399
- }
1400
- },
1401
1618
  {
1402
1619
  "name": "fw_weaver_genesis",
1403
1620
  "description": "Run a single Genesis self-evolution cycle on a target workflow.",
@@ -1541,6 +1758,197 @@
1541
1758
  "filePath"
1542
1759
  ]
1543
1760
  }
1761
+ },
1762
+ {
1763
+ "name": "fw_weaver_profile_list",
1764
+ "description": "List all bot profiles with capabilities, instances, and routing stats.",
1765
+ "parameters": {
1766
+ "type": "object",
1767
+ "properties": {}
1768
+ }
1769
+ },
1770
+ {
1771
+ "name": "fw_weaver_profile_create",
1772
+ "description": "Create a new bot profile with capabilities and scaling config.",
1773
+ "parameters": {
1774
+ "type": "object",
1775
+ "properties": {
1776
+ "name": {
1777
+ "type": "string",
1778
+ "description": "Profile display name"
1779
+ },
1780
+ "botId": {
1781
+ "type": "string",
1782
+ "description": "Bot registration ID to use"
1783
+ },
1784
+ "capabilities": {
1785
+ "type": "array",
1786
+ "items": {
1787
+ "type": "object",
1788
+ "properties": {
1789
+ "name": { "type": "string", "description": "Capability name (e.g. 'react-ui', 'api-testing')" },
1790
+ "description": { "type": "string", "description": "What this capability means" }
1791
+ },
1792
+ "required": ["name", "description"]
1793
+ },
1794
+ "description": "Free-form capabilities with descriptions for AI-powered routing"
1795
+ },
1796
+ "costStrategy": {
1797
+ "type": "string",
1798
+ "enum": ["frugal", "balanced", "performance"],
1799
+ "description": "Cost approach: frugal (cheapest models), balanced, performance (best models)"
1800
+ },
1801
+ "maxCostPerRun": {
1802
+ "type": "number",
1803
+ "description": "Hard cost cap per run (USD)"
1804
+ },
1805
+ "maxCostPerTask": {
1806
+ "type": "number",
1807
+ "description": "Hard cost cap per task across retries (USD)"
1808
+ },
1809
+ "requireApproval": {
1810
+ "type": "boolean",
1811
+ "description": "Require human approval before execution"
1812
+ },
1813
+ "instructions": {
1814
+ "type": "string",
1815
+ "description": "Free-form instructions for the bot (e.g. 'prefer fast models, always run tests')"
1816
+ },
1817
+ "maxInstances": {
1818
+ "type": "number",
1819
+ "description": "Max concurrent instances"
1820
+ },
1821
+ "description": {
1822
+ "type": "string",
1823
+ "description": "Profile description"
1824
+ },
1825
+ "icon": {
1826
+ "type": "string",
1827
+ "description": "Material icon name"
1828
+ },
1829
+ "color": {
1830
+ "type": "string",
1831
+ "description": "Color token or hex color"
1832
+ }
1833
+ },
1834
+ "required": [
1835
+ "name",
1836
+ "botId"
1837
+ ]
1838
+ }
1839
+ },
1840
+ {
1841
+ "name": "fw_weaver_profile_update",
1842
+ "description": "Update a bot profile's configuration.",
1843
+ "parameters": {
1844
+ "type": "object",
1845
+ "properties": {
1846
+ "id": {
1847
+ "type": "string",
1848
+ "description": "Profile ID"
1849
+ },
1850
+ "name": {
1851
+ "type": "string",
1852
+ "description": "New display name"
1853
+ },
1854
+ "capabilities": {
1855
+ "type": "array",
1856
+ "items": {
1857
+ "type": "object",
1858
+ "properties": {
1859
+ "name": { "type": "string", "description": "Capability name (e.g. 'react-ui', 'api-testing')" },
1860
+ "description": { "type": "string", "description": "What this capability means" }
1861
+ },
1862
+ "required": ["name", "description"]
1863
+ },
1864
+ "description": "Free-form capabilities with descriptions for AI-powered routing"
1865
+ },
1866
+ "costStrategy": {
1867
+ "type": "string",
1868
+ "enum": ["frugal", "balanced", "performance"],
1869
+ "description": "Cost approach: frugal (cheapest models), balanced, performance (best models)"
1870
+ },
1871
+ "maxCostPerRun": {
1872
+ "type": "number",
1873
+ "description": "Hard cost cap per run (USD)"
1874
+ },
1875
+ "maxCostPerTask": {
1876
+ "type": "number",
1877
+ "description": "Hard cost cap per task across retries (USD)"
1878
+ },
1879
+ "requireApproval": {
1880
+ "type": "boolean",
1881
+ "description": "Require human approval before execution"
1882
+ },
1883
+ "instructions": {
1884
+ "type": "string",
1885
+ "description": "Free-form instructions for the bot (e.g. 'prefer fast models, always run tests')"
1886
+ },
1887
+ "maxInstances": {
1888
+ "type": "number",
1889
+ "description": "Max concurrent instances"
1890
+ },
1891
+ "minInstances": {
1892
+ "type": "number",
1893
+ "description": "Min instances (0 = scale to zero)"
1894
+ },
1895
+ "description": {
1896
+ "type": "string",
1897
+ "description": "Profile description"
1898
+ },
1899
+ "icon": {
1900
+ "type": "string",
1901
+ "description": "Material icon name"
1902
+ },
1903
+ "color": {
1904
+ "type": "string",
1905
+ "description": "Color token or hex color"
1906
+ }
1907
+ },
1908
+ "required": [
1909
+ "id"
1910
+ ]
1911
+ }
1912
+ },
1913
+ {
1914
+ "name": "fw_weaver_profile_delete",
1915
+ "description": "Delete a bot profile.",
1916
+ "parameters": {
1917
+ "type": "object",
1918
+ "properties": {
1919
+ "id": {
1920
+ "type": "string",
1921
+ "description": "Profile ID to delete"
1922
+ }
1923
+ },
1924
+ "required": [
1925
+ "id"
1926
+ ]
1927
+ }
1928
+ },
1929
+ {
1930
+ "name": "fw_weaver_orchestrator_status",
1931
+ "description": "Get orchestrator routing status — recent decisions, stats, active instances.",
1932
+ "parameters": {
1933
+ "type": "object",
1934
+ "properties": {}
1935
+ }
1936
+ },
1937
+ {
1938
+ "name": "fw_weaver_orchestrator_hint",
1939
+ "description": "Provide a routing hint to influence orchestrator decisions.",
1940
+ "parameters": {
1941
+ "type": "object",
1942
+ "properties": {
1943
+ "hint": {
1944
+ "type": "string",
1945
+ "description": "Routing hint text (e.g. 'assign deploy tasks to deploy-bot')"
1946
+ }
1947
+ },
1948
+ "required": [
1949
+ "hint"
1950
+ ]
1951
+ }
1544
1952
  }
1545
1953
  ],
1546
1954
  "docTopics": [
@@ -1553,7 +1961,13 @@
1553
1961
  "task",
1554
1962
  "run bot",
1555
1963
  "spawn bot",
1556
- "weaver bot"
1964
+ "weaver bot",
1965
+ "profile",
1966
+ "orchestrator",
1967
+ "routing",
1968
+ "capabilities",
1969
+ "instances",
1970
+ "swarm"
1557
1971
  ],
1558
1972
  "contentFile": "dist/docs/weaver-bot-usage.md"
1559
1973
  },