@synergenius/flow-weaver-pack-weaver 0.9.62 → 0.9.78

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 (162) 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 +173 -19
  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/bot-registry.js +2 -2
  14. package/dist/bot/bot-registry.js.map +1 -1
  15. package/dist/bot/conversation-store.d.ts +1 -0
  16. package/dist/bot/conversation-store.d.ts.map +1 -1
  17. package/dist/bot/conversation-store.js.map +1 -1
  18. package/dist/bot/improve-loop.js.map +1 -1
  19. package/dist/bot/instance-manager.d.ts +31 -0
  20. package/dist/bot/instance-manager.d.ts.map +1 -0
  21. package/dist/bot/instance-manager.js +115 -0
  22. package/dist/bot/instance-manager.js.map +1 -0
  23. package/dist/bot/orchestrator.d.ts +36 -0
  24. package/dist/bot/orchestrator.d.ts.map +1 -0
  25. package/dist/bot/orchestrator.js +176 -0
  26. package/dist/bot/orchestrator.js.map +1 -0
  27. package/dist/bot/profile-store.d.ts +36 -0
  28. package/dist/bot/profile-store.d.ts.map +1 -0
  29. package/dist/bot/profile-store.js +208 -0
  30. package/dist/bot/profile-store.js.map +1 -0
  31. package/dist/bot/profile-types.d.ts +126 -0
  32. package/dist/bot/profile-types.d.ts.map +1 -0
  33. package/dist/bot/profile-types.js +7 -0
  34. package/dist/bot/profile-types.js.map +1 -0
  35. package/dist/bot/session-state.d.ts +25 -0
  36. package/dist/bot/session-state.d.ts.map +1 -0
  37. package/dist/bot/session-state.js +110 -0
  38. package/dist/bot/session-state.js.map +1 -0
  39. package/dist/bot/swarm-controller.d.ts +37 -21
  40. package/dist/bot/swarm-controller.d.ts.map +1 -1
  41. package/dist/bot/swarm-controller.js +344 -163
  42. package/dist/bot/swarm-controller.js.map +1 -1
  43. package/dist/bot/task-prompt-builder.d.ts +2 -1
  44. package/dist/bot/task-prompt-builder.d.ts.map +1 -1
  45. package/dist/bot/task-prompt-builder.js +33 -10
  46. package/dist/bot/task-prompt-builder.js.map +1 -1
  47. package/dist/bot/task-queue.d.ts +46 -0
  48. package/dist/bot/task-queue.d.ts.map +1 -0
  49. package/dist/bot/task-queue.js +237 -0
  50. package/dist/bot/task-queue.js.map +1 -0
  51. package/dist/bot/task-store.d.ts +1 -6
  52. package/dist/bot/task-store.d.ts.map +1 -1
  53. package/dist/bot/task-store.js +27 -78
  54. package/dist/bot/task-store.js.map +1 -1
  55. package/dist/bot/task-types.d.ts +8 -4
  56. package/dist/bot/task-types.d.ts.map +1 -1
  57. package/dist/cli-handlers.d.ts.map +1 -1
  58. package/dist/cli-handlers.js +2 -3
  59. package/dist/cli-handlers.js.map +1 -1
  60. package/dist/cli.d.ts +3 -0
  61. package/dist/cli.d.ts.map +1 -0
  62. package/dist/cli.js +749 -0
  63. package/dist/cli.js.map +1 -0
  64. package/dist/docs/docs/weaver-bot-usage.md +35 -18
  65. package/dist/docs/docs/weaver-config.md +20 -0
  66. package/dist/docs/docs/weaver-task-queue.md +31 -19
  67. package/dist/docs/weaver-config.md +15 -9
  68. package/dist/mcp-tools.d.ts +17 -0
  69. package/dist/mcp-tools.d.ts.map +1 -1
  70. package/dist/mcp-tools.js +98 -232
  71. package/dist/mcp-tools.js.map +1 -1
  72. package/dist/node-types/orchestrator-dispatch.d.ts +17 -0
  73. package/dist/node-types/orchestrator-dispatch.d.ts.map +1 -0
  74. package/dist/node-types/orchestrator-dispatch.js +63 -0
  75. package/dist/node-types/orchestrator-dispatch.js.map +1 -0
  76. package/dist/node-types/orchestrator-load-state.d.ts +16 -0
  77. package/dist/node-types/orchestrator-load-state.d.ts.map +1 -0
  78. package/dist/node-types/orchestrator-load-state.js +60 -0
  79. package/dist/node-types/orchestrator-load-state.js.map +1 -0
  80. package/dist/node-types/orchestrator-route.d.ts +16 -0
  81. package/dist/node-types/orchestrator-route.d.ts.map +1 -0
  82. package/dist/node-types/orchestrator-route.js +28 -0
  83. package/dist/node-types/orchestrator-route.js.map +1 -0
  84. package/dist/node-types/receive-task.d.ts +2 -3
  85. package/dist/node-types/receive-task.d.ts.map +1 -1
  86. package/dist/node-types/receive-task.js +3 -28
  87. package/dist/node-types/receive-task.js.map +1 -1
  88. package/dist/templates/weaver-template.d.ts +11 -0
  89. package/dist/templates/weaver-template.d.ts.map +1 -0
  90. package/dist/templates/weaver-template.js +53 -0
  91. package/dist/templates/weaver-template.js.map +1 -0
  92. package/dist/ui/bot-constants.d.ts +14 -0
  93. package/dist/ui/bot-constants.d.ts.map +1 -0
  94. package/dist/ui/bot-constants.js +189 -0
  95. package/dist/ui/bot-constants.js.map +1 -0
  96. package/dist/ui/bot-panel.js +51 -90
  97. package/dist/ui/bot-slot-card.js +87 -122
  98. package/dist/ui/budget-bar.js +5 -3
  99. package/dist/ui/chat-task-result.js +4 -7
  100. package/dist/ui/decision-log.js +136 -0
  101. package/dist/ui/profile-card.js +158 -0
  102. package/dist/ui/profile-editor.js +597 -0
  103. package/dist/ui/swarm-controls.js +36 -27
  104. package/dist/ui/swarm-dashboard.js +2034 -736
  105. package/dist/ui/task-create-form.js +39 -116
  106. package/dist/ui/task-detail-view.js +490 -239
  107. package/dist/ui/task-pool-list.js +69 -94
  108. package/dist/workflows/orchestrator.d.ts +21 -0
  109. package/dist/workflows/orchestrator.d.ts.map +1 -0
  110. package/dist/workflows/orchestrator.js +281 -0
  111. package/dist/workflows/orchestrator.js.map +1 -0
  112. package/dist/workflows/weaver-bot-session.d.ts +65 -0
  113. package/dist/workflows/weaver-bot-session.d.ts.map +1 -0
  114. package/dist/workflows/weaver-bot-session.js +68 -0
  115. package/dist/workflows/weaver-bot-session.js.map +1 -0
  116. package/dist/workflows/weaver.d.ts +24 -0
  117. package/dist/workflows/weaver.d.ts.map +1 -0
  118. package/dist/workflows/weaver.js +28 -0
  119. package/dist/workflows/weaver.js.map +1 -0
  120. package/flowweaver.manifest.json +253 -66
  121. package/package.json +1 -1
  122. package/src/ai-chat-provider.ts +184 -18
  123. package/src/bot/ai-router.ts +132 -0
  124. package/src/bot/bot-registry.ts +2 -2
  125. package/src/bot/conversation-store.ts +2 -1
  126. package/src/bot/improve-loop.ts +6 -6
  127. package/src/bot/instance-manager.ts +128 -0
  128. package/src/bot/orchestrator.ts +244 -0
  129. package/src/bot/profile-store.ts +225 -0
  130. package/src/bot/profile-types.ts +141 -0
  131. package/src/bot/swarm-controller.ts +385 -186
  132. package/src/bot/task-prompt-builder.ts +37 -6
  133. package/src/bot/task-store.ts +28 -89
  134. package/src/bot/task-types.ts +10 -4
  135. package/src/cli-handlers.ts +2 -3
  136. package/src/docs/weaver-bot-usage.md +35 -18
  137. package/src/docs/weaver-config.md +20 -0
  138. package/src/docs/weaver-task-queue.md +31 -19
  139. package/src/mcp-tools.ts +129 -320
  140. package/src/node-types/orchestrator-dispatch.ts +71 -0
  141. package/src/node-types/orchestrator-load-state.ts +66 -0
  142. package/src/node-types/orchestrator-route.ts +33 -0
  143. package/src/node-types/receive-task.ts +3 -26
  144. package/src/ui/bot-constants.ts +192 -0
  145. package/src/ui/bot-panel.tsx +55 -79
  146. package/src/ui/bot-slot-card.tsx +69 -117
  147. package/src/ui/budget-bar.tsx +5 -3
  148. package/src/ui/chat-task-result.tsx +6 -9
  149. package/src/ui/decision-log.tsx +148 -0
  150. package/src/ui/profile-card.tsx +157 -0
  151. package/src/ui/profile-editor.tsx +384 -0
  152. package/src/ui/swarm-controls.tsx +35 -31
  153. package/src/ui/swarm-dashboard.tsx +409 -80
  154. package/src/ui/task-create-form.tsx +29 -119
  155. package/src/ui/task-detail-view.tsx +461 -215
  156. package/src/ui/task-pool-list.tsx +74 -95
  157. package/src/workflows/orchestrator.ts +302 -0
  158. package/dist/docs/weaver-bot-usage.md +0 -34
  159. package/dist/docs/weaver-genesis.md +0 -32
  160. package/dist/docs/weaver-task-queue.md +0 -34
  161. package/src/bot/error-guide.ts +0 -4
  162. package/src/bot/retry-utils.ts +0 -4
@@ -0,0 +1,68 @@
1
+ // Managed weaver bot session workflow - continuously processes task queue.
2
+ // Run `weaver eject` to customize.
3
+ /**
4
+ * Session mode bot. Continuously polls the task queue and processes
5
+ * tasks through the full bot pipeline.
6
+ *
7
+ * @flowWeaver workflow
8
+ *
9
+ * @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 80 200]
10
+ * @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 230 200]
11
+ * @node receive weaverReceiveTask [color: "blue"] [icon: "send"] [position: 400 200]
12
+ * @node route weaverRouteTask [color: "purple"] [icon: "flow"] [position: 570 200]
13
+ * @node readWf weaverReadWorkflow [color: "cyan"] [icon: "description"] [position: 740 450]
14
+ * @node context weaverBuildContext [color: "teal"] [icon: "code"] [position: 740 200]
15
+ * @node plan weaverPlanTask [color: "blue"] [icon: "psychology"] [position: 910 200]
16
+ * @node approve weaverApprovalGate [color: "orange"] [icon: "send"] [position: 1080 200]
17
+ * @node abort weaverAbortTask [color: "red"] [icon: "code"] [position: 1250 450]
18
+ * @node execRetry weaverExecValidateRetry [color: "purple"] [icon: "code"] [position: 1250 200]
19
+ * @node gitOps weaverGitOps [color: "green"] [icon: "code"] [position: 1420 100]
20
+ * @node notify weaverSendNotify [color: "yellow"] [icon: "send"] [position: 1420 300]
21
+ * @node report weaverBotReport [color: "green"] [icon: "description"] [position: 1600 200]
22
+ *
23
+ * @path Start -> cfg -> detect -> receive -> route -> context -> plan -> approve -> execRetry -> gitOps -> report -> Exit
24
+ * @path execRetry -> notify
25
+ * @path route:fail -> readWf
26
+ * @path approve:fail -> abort
27
+ *
28
+ * @connect readWf.onSuccess -> report.execute
29
+ * @connect abort.onSuccess -> report.execute
30
+ * @connect notify.onSuccess -> report.execute
31
+ *
32
+ * @connect route.taskJson -> readWf.taskJson
33
+ * @connect route.projectDir -> readWf.projectDir
34
+ * @connect readWf.resultJson -> report.readResult
35
+ *
36
+ * @connect context.contextBundle -> plan.contextBundle
37
+ *
38
+ * @connect approve.rejectionReason -> abort.rejectionReason
39
+ * @connect approve.taskJson -> abort.taskJson
40
+ * @connect approve.projectDir -> abort.projectDir
41
+ * @connect abort.resultJson -> report.abortResult
42
+ *
43
+ * @connect execRetry.resultJson -> notify.resultJson
44
+ * @connect execRetry.projectDir -> notify.targetPath
45
+ *
46
+ * @connect execRetry.resultJson -> report.mainResult
47
+ * @connect execRetry.filesModified -> report.filesModified
48
+ * @connect gitOps.gitResultJson -> report.gitResultJson
49
+ *
50
+ * @connect report.summary -> Exit.summary
51
+ *
52
+ * @position Start 0 200
53
+ * @position Exit 1750 200
54
+ *
55
+ * @param execute [order:-1] - Execute
56
+ * @param taskJson [order:0] [optional] - Task instruction (JSON)
57
+ * @param projectDir [order:1] [optional] - Project directory
58
+ * @returns onSuccess [order:-2] - On Success
59
+ * @returns onFailure [order:-1] - On Failure
60
+ * @returns summary [order:0] - Summary text
61
+ */
62
+ export async function weaverBotSession(execute, taskJson, projectDir, __abortSignal__) {
63
+ // @flow-weaver-body-start
64
+ // (auto-generated by compiler)
65
+ // @flow-weaver-body-end
66
+ return { onSuccess: false, onFailure: true, summary: null };
67
+ }
68
+ //# sourceMappingURL=weaver-bot-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weaver-bot-session.js","sourceRoot":"","sources":["../../src/workflows/weaver-bot-session.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,mCAAmC;AAgBnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAgB,EAChB,QAAiB,EACjB,UAAmB,EACnB,eAA6B;IAE7B,0BAA0B;IAC1B,+BAA+B;IAC/B,wBAAwB;IACxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @flowWeaver workflow
3
+ * @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 200 0]
4
+ * @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 400 0]
5
+ * @node target weaverResolveTarget [color: "blue"] [icon: "code"] [position: 600 0]
6
+ * @node exec weaverExecuteTarget [color: "purple"] [icon: "psychology"] [position: 800 0]
7
+ * @node notify weaverSendNotify [color: "yellow"] [icon: "notifications"] [position: 1000 0]
8
+ * @node rep weaverReport [color: "green"] [icon: "description"] [position: 1200 0]
9
+ * @path Start -> cfg -> detect -> target -> exec -> notify -> rep -> Exit
10
+ * @position Start 0 0
11
+ * @position Exit 1400 0
12
+ * @connect rep.summary -> Exit.summary
13
+ * @param execute [order:-1] - Execute
14
+ * @param params [order:0] [hidden] - Params
15
+ * @returns onSuccess [order:-2] - On Success
16
+ * @returns onFailure [order:-1] [hidden] - On Failure
17
+ * @returns summary [order:0] - Summary text
18
+ */
19
+ export declare function weaver(execute: boolean, params?: Record<string, never>, __abortSignal__?: AbortSignal): Promise<{
20
+ onSuccess: boolean;
21
+ onFailure: boolean;
22
+ summary: string | null;
23
+ }>;
24
+ //# sourceMappingURL=weaver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weaver.d.ts","sourceRoot":"","sources":["../../src/workflows/weaver.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,MAAM,CAC1B,OAAO,EAAE,OAAO,EAChB,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAM,EAClC,eAAe,CAAC,EAAE,WAAW,GAC5B,OAAO,CAAC;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,CAK7E"}
@@ -0,0 +1,28 @@
1
+ // Managed weaver workflow - shipped with the pack.
2
+ // Users on managed mode use this automatically.
3
+ // Run `weaver eject` to customize.
4
+ /**
5
+ * @flowWeaver workflow
6
+ * @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 200 0]
7
+ * @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 400 0]
8
+ * @node target weaverResolveTarget [color: "blue"] [icon: "code"] [position: 600 0]
9
+ * @node exec weaverExecuteTarget [color: "purple"] [icon: "psychology"] [position: 800 0]
10
+ * @node notify weaverSendNotify [color: "yellow"] [icon: "notifications"] [position: 1000 0]
11
+ * @node rep weaverReport [color: "green"] [icon: "description"] [position: 1200 0]
12
+ * @path Start -> cfg -> detect -> target -> exec -> notify -> rep -> Exit
13
+ * @position Start 0 0
14
+ * @position Exit 1400 0
15
+ * @connect rep.summary -> Exit.summary
16
+ * @param execute [order:-1] - Execute
17
+ * @param params [order:0] [hidden] - Params
18
+ * @returns onSuccess [order:-2] - On Success
19
+ * @returns onFailure [order:-1] [hidden] - On Failure
20
+ * @returns summary [order:0] - Summary text
21
+ */
22
+ export async function weaver(execute, params = {}, __abortSignal__) {
23
+ // @flow-weaver-body-start
24
+ // (auto-generated by compiler)
25
+ // @flow-weaver-body-end
26
+ return { onSuccess: false, onFailure: true, summary: null };
27
+ }
28
+ //# sourceMappingURL=weaver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weaver.js","sourceRoot":"","sources":["../../src/workflows/weaver.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,gDAAgD;AAChD,mCAAmC;AASnC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,OAAgB,EAChB,SAAgC,EAAE,EAClC,eAA6B;IAE7B,0BAA0B;IAC1B,+BAA+B;IAC/B,wBAAwB;IACxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC9D,CAAC"}
@@ -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
  {
@@ -1082,7 +1075,7 @@
1082
1075
  },
1083
1076
  "sidebarPanel": {
1084
1077
  "component": "dist/ui/bot-panel.js",
1085
- "title": "Bots",
1078
+ "title": "Weaver",
1086
1079
  "icon": "smartToy",
1087
1080
  "color": "color-brand-main",
1088
1081
  "dockZone": "right",
@@ -1240,13 +1233,6 @@
1240
1233
  "type": "string",
1241
1234
  "description": "Detailed task description with instructions"
1242
1235
  },
1243
- "assignedBots": {
1244
- "type": "array",
1245
- "items": {
1246
- "type": "string"
1247
- },
1248
- "description": "Bot IDs to assign (empty = any bot can claim)"
1249
- },
1250
1236
  "priority": {
1251
1237
  "type": "number",
1252
1238
  "description": "Priority (higher = picked first, default 0)"
@@ -1278,6 +1264,15 @@
1278
1264
  "type": "number",
1279
1265
  "description": "Max retry attempts"
1280
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
+ },
1281
1276
  "subtasks": {
1282
1277
  "type": "array",
1283
1278
  "items": {
@@ -1291,13 +1286,6 @@
1291
1286
  "type": "string",
1292
1287
  "description": "Subtask description"
1293
1288
  },
1294
- "assignedBots": {
1295
- "type": "array",
1296
- "items": {
1297
- "type": "string"
1298
- },
1299
- "description": "Bot IDs for subtask"
1300
- },
1301
1289
  "dependsOn": {
1302
1290
  "type": "array",
1303
1291
  "items": {
@@ -1308,6 +1296,15 @@
1308
1296
  "priority": {
1309
1297
  "type": "number",
1310
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"
1311
1308
  }
1312
1309
  },
1313
1310
  "required": [
@@ -1389,13 +1386,6 @@
1389
1386
  "type": "number",
1390
1387
  "description": "New priority"
1391
1388
  },
1392
- "assignedBots": {
1393
- "type": "array",
1394
- "items": {
1395
- "type": "string"
1396
- },
1397
- "description": "New bot assignments"
1398
- },
1399
1389
  "notes": {
1400
1390
  "type": "string",
1401
1391
  "description": "Append a note to the task"
@@ -1593,7 +1583,7 @@
1593
1583
  "properties": {
1594
1584
  "runId": {
1595
1585
  "type": "string",
1596
- "description": "Run ID returned by fw_weaver_bot"
1586
+ "description": "Run ID from task execution"
1597
1587
  },
1598
1588
  "offset": {
1599
1589
  "type": "number",
@@ -1768,6 +1758,197 @@
1768
1758
  "filePath"
1769
1759
  ]
1770
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
+ }
1771
1952
  }
1772
1953
  ],
1773
1954
  "docTopics": [
@@ -1780,7 +1961,13 @@
1780
1961
  "task",
1781
1962
  "run bot",
1782
1963
  "spawn bot",
1783
- "weaver bot"
1964
+ "weaver bot",
1965
+ "profile",
1966
+ "orchestrator",
1967
+ "routing",
1968
+ "capabilities",
1969
+ "instances",
1970
+ "swarm"
1784
1971
  ],
1785
1972
  "contentFile": "dist/docs/weaver-bot-usage.md"
1786
1973
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synergenius/flow-weaver-pack-weaver",
3
- "version": "0.9.62",
3
+ "version": "0.9.78",
4
4
  "description": "AI bot for Flow Weaver. Execute tasks, run workflows, evolve autonomously.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",