@synergenius/flow-weaver-pack-weaver 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/LICENSE +204 -0
  2. package/README.md +167 -0
  3. package/dist/bot/agent-provider.d.ts +34 -0
  4. package/dist/bot/agent-provider.d.ts.map +1 -0
  5. package/dist/bot/agent-provider.js +218 -0
  6. package/dist/bot/agent-provider.js.map +1 -0
  7. package/dist/bot/ai-client.d.ts +15 -0
  8. package/dist/bot/ai-client.d.ts.map +1 -0
  9. package/dist/bot/ai-client.js +128 -0
  10. package/dist/bot/ai-client.js.map +1 -0
  11. package/dist/bot/approvals.d.ts +22 -0
  12. package/dist/bot/approvals.d.ts.map +1 -0
  13. package/dist/bot/approvals.js +187 -0
  14. package/dist/bot/approvals.js.map +1 -0
  15. package/dist/bot/audit-logger.d.ts +5 -0
  16. package/dist/bot/audit-logger.d.ts.map +1 -0
  17. package/dist/bot/audit-logger.js +42 -0
  18. package/dist/bot/audit-logger.js.map +1 -0
  19. package/dist/bot/audit-store.d.ts +13 -0
  20. package/dist/bot/audit-store.d.ts.map +1 -0
  21. package/dist/bot/audit-store.js +59 -0
  22. package/dist/bot/audit-store.js.map +1 -0
  23. package/dist/bot/bot-agent-channel.d.ts +46 -0
  24. package/dist/bot/bot-agent-channel.d.ts.map +1 -0
  25. package/dist/bot/bot-agent-channel.js +58 -0
  26. package/dist/bot/bot-agent-channel.js.map +1 -0
  27. package/dist/bot/cli-provider.d.ts +29 -0
  28. package/dist/bot/cli-provider.d.ts.map +1 -0
  29. package/dist/bot/cli-provider.js +132 -0
  30. package/dist/bot/cli-provider.js.map +1 -0
  31. package/dist/bot/cli-stream-parser.d.ts +11 -0
  32. package/dist/bot/cli-stream-parser.d.ts.map +1 -0
  33. package/dist/bot/cli-stream-parser.js +53 -0
  34. package/dist/bot/cli-stream-parser.js.map +1 -0
  35. package/dist/bot/cost-store.d.ts +18 -0
  36. package/dist/bot/cost-store.d.ts.map +1 -0
  37. package/dist/bot/cost-store.js +81 -0
  38. package/dist/bot/cost-store.js.map +1 -0
  39. package/dist/bot/cost-tracker.d.ts +18 -0
  40. package/dist/bot/cost-tracker.d.ts.map +1 -0
  41. package/dist/bot/cost-tracker.js +60 -0
  42. package/dist/bot/cost-tracker.js.map +1 -0
  43. package/dist/bot/cron-parser.d.ts +5 -0
  44. package/dist/bot/cron-parser.d.ts.map +1 -0
  45. package/dist/bot/cron-parser.js +141 -0
  46. package/dist/bot/cron-parser.js.map +1 -0
  47. package/dist/bot/cron-scheduler.d.ts +12 -0
  48. package/dist/bot/cron-scheduler.d.ts.map +1 -0
  49. package/dist/bot/cron-scheduler.js +43 -0
  50. package/dist/bot/cron-scheduler.js.map +1 -0
  51. package/dist/bot/dashboard.d.ts +34 -0
  52. package/dist/bot/dashboard.d.ts.map +1 -0
  53. package/dist/bot/dashboard.js +602 -0
  54. package/dist/bot/dashboard.js.map +1 -0
  55. package/dist/bot/design-checker.d.ts +24 -0
  56. package/dist/bot/design-checker.d.ts.map +1 -0
  57. package/dist/bot/design-checker.js +269 -0
  58. package/dist/bot/design-checker.js.map +1 -0
  59. package/dist/bot/file-lock.d.ts +7 -0
  60. package/dist/bot/file-lock.d.ts.map +1 -0
  61. package/dist/bot/file-lock.js +64 -0
  62. package/dist/bot/file-lock.js.map +1 -0
  63. package/dist/bot/file-validator.d.ts +10 -0
  64. package/dist/bot/file-validator.d.ts.map +1 -0
  65. package/dist/bot/file-validator.js +27 -0
  66. package/dist/bot/file-validator.js.map +1 -0
  67. package/dist/bot/file-watcher.d.ts +24 -0
  68. package/dist/bot/file-watcher.d.ts.map +1 -0
  69. package/dist/bot/file-watcher.js +98 -0
  70. package/dist/bot/file-watcher.js.map +1 -0
  71. package/dist/bot/fw-api.d.ts +8 -0
  72. package/dist/bot/fw-api.d.ts.map +1 -0
  73. package/dist/bot/fw-api.js +12 -0
  74. package/dist/bot/fw-api.js.map +1 -0
  75. package/dist/bot/genesis-prompt-context.d.ts +31 -0
  76. package/dist/bot/genesis-prompt-context.d.ts.map +1 -0
  77. package/dist/bot/genesis-prompt-context.js +121 -0
  78. package/dist/bot/genesis-prompt-context.js.map +1 -0
  79. package/dist/bot/genesis-store.d.ts +28 -0
  80. package/dist/bot/genesis-store.d.ts.map +1 -0
  81. package/dist/bot/genesis-store.js +154 -0
  82. package/dist/bot/genesis-store.js.map +1 -0
  83. package/dist/bot/index.d.ts +38 -0
  84. package/dist/bot/index.d.ts.map +1 -0
  85. package/dist/bot/index.js +37 -0
  86. package/dist/bot/index.js.map +1 -0
  87. package/dist/bot/notifications.d.ts +20 -0
  88. package/dist/bot/notifications.d.ts.map +1 -0
  89. package/dist/bot/notifications.js +215 -0
  90. package/dist/bot/notifications.js.map +1 -0
  91. package/dist/bot/pipeline-runner.d.ts +22 -0
  92. package/dist/bot/pipeline-runner.d.ts.map +1 -0
  93. package/dist/bot/pipeline-runner.js +263 -0
  94. package/dist/bot/pipeline-runner.js.map +1 -0
  95. package/dist/bot/provider-registry.d.ts +26 -0
  96. package/dist/bot/provider-registry.d.ts.map +1 -0
  97. package/dist/bot/provider-registry.js +175 -0
  98. package/dist/bot/provider-registry.js.map +1 -0
  99. package/dist/bot/run-store.d.ts +25 -0
  100. package/dist/bot/run-store.d.ts.map +1 -0
  101. package/dist/bot/run-store.js +156 -0
  102. package/dist/bot/run-store.js.map +1 -0
  103. package/dist/bot/runner.d.ts +13 -0
  104. package/dist/bot/runner.d.ts.map +1 -0
  105. package/dist/bot/runner.js +244 -0
  106. package/dist/bot/runner.js.map +1 -0
  107. package/dist/bot/session-state.d.ts +19 -0
  108. package/dist/bot/session-state.d.ts.map +1 -0
  109. package/dist/bot/session-state.js +65 -0
  110. package/dist/bot/session-state.js.map +1 -0
  111. package/dist/bot/steering.d.ts +13 -0
  112. package/dist/bot/steering.d.ts.map +1 -0
  113. package/dist/bot/steering.js +40 -0
  114. package/dist/bot/steering.js.map +1 -0
  115. package/dist/bot/step-executor.d.ts +10 -0
  116. package/dist/bot/step-executor.d.ts.map +1 -0
  117. package/dist/bot/step-executor.js +30 -0
  118. package/dist/bot/step-executor.js.map +1 -0
  119. package/dist/bot/system-prompt.d.ts +19 -0
  120. package/dist/bot/system-prompt.d.ts.map +1 -0
  121. package/dist/bot/system-prompt.js +222 -0
  122. package/dist/bot/system-prompt.js.map +1 -0
  123. package/dist/bot/task-queue.d.ts +26 -0
  124. package/dist/bot/task-queue.d.ts.map +1 -0
  125. package/dist/bot/task-queue.js +98 -0
  126. package/dist/bot/task-queue.js.map +1 -0
  127. package/dist/bot/types.d.ts +478 -0
  128. package/dist/bot/types.d.ts.map +1 -0
  129. package/dist/bot/types.js +2 -0
  130. package/dist/bot/types.js.map +1 -0
  131. package/dist/bot/utils.d.ts +2 -0
  132. package/dist/bot/utils.d.ts.map +1 -0
  133. package/dist/bot/utils.js +20 -0
  134. package/dist/bot/utils.js.map +1 -0
  135. package/dist/bot/watch-daemon.d.ts +19 -0
  136. package/dist/bot/watch-daemon.d.ts.map +1 -0
  137. package/dist/bot/watch-daemon.js +178 -0
  138. package/dist/bot/watch-daemon.js.map +1 -0
  139. package/dist/bot/web-approval.d.ts +19 -0
  140. package/dist/bot/web-approval.d.ts.map +1 -0
  141. package/dist/bot/web-approval.js +207 -0
  142. package/dist/bot/web-approval.js.map +1 -0
  143. package/dist/cli-bridge.d.ts +2 -0
  144. package/dist/cli-bridge.d.ts.map +1 -0
  145. package/dist/cli-bridge.js +30 -0
  146. package/dist/cli-bridge.js.map +1 -0
  147. package/dist/cli-handlers.d.ts +79 -0
  148. package/dist/cli-handlers.d.ts.map +1 -0
  149. package/dist/cli-handlers.js +1335 -0
  150. package/dist/cli-handlers.js.map +1 -0
  151. package/dist/cli.d.ts +3 -0
  152. package/dist/cli.d.ts.map +1 -0
  153. package/dist/cli.js +749 -0
  154. package/dist/cli.js.map +1 -0
  155. package/dist/docs/docs/weaver-config.md +135 -0
  156. package/dist/docs/weaver-config.md +141 -0
  157. package/dist/index.d.ts +30 -0
  158. package/dist/index.d.ts.map +1 -0
  159. package/dist/index.js +37 -0
  160. package/dist/index.js.map +1 -0
  161. package/dist/mcp-tools.d.ts +13 -0
  162. package/dist/mcp-tools.d.ts.map +1 -0
  163. package/dist/mcp-tools.js +197 -0
  164. package/dist/mcp-tools.js.map +1 -0
  165. package/dist/node-types/abort-task.d.ts +15 -0
  166. package/dist/node-types/abort-task.d.ts.map +1 -0
  167. package/dist/node-types/abort-task.js +28 -0
  168. package/dist/node-types/abort-task.js.map +1 -0
  169. package/dist/node-types/approval-gate.d.ts +18 -0
  170. package/dist/node-types/approval-gate.d.ts.map +1 -0
  171. package/dist/node-types/approval-gate.js +80 -0
  172. package/dist/node-types/approval-gate.js.map +1 -0
  173. package/dist/node-types/bot-report.d.ts +20 -0
  174. package/dist/node-types/bot-report.d.ts.map +1 -0
  175. package/dist/node-types/bot-report.js +67 -0
  176. package/dist/node-types/bot-report.js.map +1 -0
  177. package/dist/node-types/build-context.d.ts +16 -0
  178. package/dist/node-types/build-context.d.ts.map +1 -0
  179. package/dist/node-types/build-context.js +64 -0
  180. package/dist/node-types/build-context.js.map +1 -0
  181. package/dist/node-types/detect-provider.d.ts +17 -0
  182. package/dist/node-types/detect-provider.d.ts.map +1 -0
  183. package/dist/node-types/detect-provider.js +71 -0
  184. package/dist/node-types/detect-provider.js.map +1 -0
  185. package/dist/node-types/exec-validate-retry.d.ts +17 -0
  186. package/dist/node-types/exec-validate-retry.d.ts.map +1 -0
  187. package/dist/node-types/exec-validate-retry.js +147 -0
  188. package/dist/node-types/exec-validate-retry.js.map +1 -0
  189. package/dist/node-types/execute-plan.d.ts +26 -0
  190. package/dist/node-types/execute-plan.d.ts.map +1 -0
  191. package/dist/node-types/execute-plan.js +120 -0
  192. package/dist/node-types/execute-plan.js.map +1 -0
  193. package/dist/node-types/execute-target.d.ts +16 -0
  194. package/dist/node-types/execute-target.d.ts.map +1 -0
  195. package/dist/node-types/execute-target.js +238 -0
  196. package/dist/node-types/execute-target.js.map +1 -0
  197. package/dist/node-types/fix-errors.d.ts +24 -0
  198. package/dist/node-types/fix-errors.d.ts.map +1 -0
  199. package/dist/node-types/fix-errors.js +49 -0
  200. package/dist/node-types/fix-errors.js.map +1 -0
  201. package/dist/node-types/genesis-apply-retry.d.ts +27 -0
  202. package/dist/node-types/genesis-apply-retry.d.ts.map +1 -0
  203. package/dist/node-types/genesis-apply-retry.js +97 -0
  204. package/dist/node-types/genesis-apply-retry.js.map +1 -0
  205. package/dist/node-types/genesis-apply.d.ts +29 -0
  206. package/dist/node-types/genesis-apply.d.ts.map +1 -0
  207. package/dist/node-types/genesis-apply.js +76 -0
  208. package/dist/node-types/genesis-apply.js.map +1 -0
  209. package/dist/node-types/genesis-approve.d.ts +19 -0
  210. package/dist/node-types/genesis-approve.d.ts.map +1 -0
  211. package/dist/node-types/genesis-approve.js +59 -0
  212. package/dist/node-types/genesis-approve.js.map +1 -0
  213. package/dist/node-types/genesis-check-stabilize.d.ts +16 -0
  214. package/dist/node-types/genesis-check-stabilize.d.ts.map +1 -0
  215. package/dist/node-types/genesis-check-stabilize.js +32 -0
  216. package/dist/node-types/genesis-check-stabilize.js.map +1 -0
  217. package/dist/node-types/genesis-check-threshold.d.ts +15 -0
  218. package/dist/node-types/genesis-check-threshold.d.ts.map +1 -0
  219. package/dist/node-types/genesis-check-threshold.js +29 -0
  220. package/dist/node-types/genesis-check-threshold.js.map +1 -0
  221. package/dist/node-types/genesis-commit.d.ts +17 -0
  222. package/dist/node-types/genesis-commit.d.ts.map +1 -0
  223. package/dist/node-types/genesis-commit.js +59 -0
  224. package/dist/node-types/genesis-commit.js.map +1 -0
  225. package/dist/node-types/genesis-compile-validate.d.ts +26 -0
  226. package/dist/node-types/genesis-compile-validate.d.ts.map +1 -0
  227. package/dist/node-types/genesis-compile-validate.js +60 -0
  228. package/dist/node-types/genesis-compile-validate.js.map +1 -0
  229. package/dist/node-types/genesis-diff-fingerprint.d.ts +15 -0
  230. package/dist/node-types/genesis-diff-fingerprint.d.ts.map +1 -0
  231. package/dist/node-types/genesis-diff-fingerprint.js +59 -0
  232. package/dist/node-types/genesis-diff-fingerprint.js.map +1 -0
  233. package/dist/node-types/genesis-diff-workflow.d.ts +15 -0
  234. package/dist/node-types/genesis-diff-workflow.d.ts.map +1 -0
  235. package/dist/node-types/genesis-diff-workflow.js +67 -0
  236. package/dist/node-types/genesis-diff-workflow.js.map +1 -0
  237. package/dist/node-types/genesis-escrow-grace.d.ts +15 -0
  238. package/dist/node-types/genesis-escrow-grace.d.ts.map +1 -0
  239. package/dist/node-types/genesis-escrow-grace.js +52 -0
  240. package/dist/node-types/genesis-escrow-grace.js.map +1 -0
  241. package/dist/node-types/genesis-escrow-migrate.d.ts +21 -0
  242. package/dist/node-types/genesis-escrow-migrate.d.ts.map +1 -0
  243. package/dist/node-types/genesis-escrow-migrate.js +116 -0
  244. package/dist/node-types/genesis-escrow-migrate.js.map +1 -0
  245. package/dist/node-types/genesis-escrow-recover.d.ts +15 -0
  246. package/dist/node-types/genesis-escrow-recover.d.ts.map +1 -0
  247. package/dist/node-types/genesis-escrow-recover.js +90 -0
  248. package/dist/node-types/genesis-escrow-recover.js.map +1 -0
  249. package/dist/node-types/genesis-escrow-stage.d.ts +17 -0
  250. package/dist/node-types/genesis-escrow-stage.d.ts.map +1 -0
  251. package/dist/node-types/genesis-escrow-stage.js +86 -0
  252. package/dist/node-types/genesis-escrow-stage.js.map +1 -0
  253. package/dist/node-types/genesis-escrow-validate.d.ts +17 -0
  254. package/dist/node-types/genesis-escrow-validate.d.ts.map +1 -0
  255. package/dist/node-types/genesis-escrow-validate.js +110 -0
  256. package/dist/node-types/genesis-escrow-validate.js.map +1 -0
  257. package/dist/node-types/genesis-load-config.d.ts +17 -0
  258. package/dist/node-types/genesis-load-config.d.ts.map +1 -0
  259. package/dist/node-types/genesis-load-config.js +36 -0
  260. package/dist/node-types/genesis-load-config.js.map +1 -0
  261. package/dist/node-types/genesis-observe.d.ts +18 -0
  262. package/dist/node-types/genesis-observe.d.ts.map +1 -0
  263. package/dist/node-types/genesis-observe.js +103 -0
  264. package/dist/node-types/genesis-observe.js.map +1 -0
  265. package/dist/node-types/genesis-propose.d.ts +17 -0
  266. package/dist/node-types/genesis-propose.d.ts.map +1 -0
  267. package/dist/node-types/genesis-propose.js +69 -0
  268. package/dist/node-types/genesis-propose.js.map +1 -0
  269. package/dist/node-types/genesis-report.d.ts +20 -0
  270. package/dist/node-types/genesis-report.d.ts.map +1 -0
  271. package/dist/node-types/genesis-report.js +87 -0
  272. package/dist/node-types/genesis-report.js.map +1 -0
  273. package/dist/node-types/genesis-snapshot.d.ts +15 -0
  274. package/dist/node-types/genesis-snapshot.d.ts.map +1 -0
  275. package/dist/node-types/genesis-snapshot.js +26 -0
  276. package/dist/node-types/genesis-snapshot.js.map +1 -0
  277. package/dist/node-types/genesis-try-apply.d.ts +18 -0
  278. package/dist/node-types/genesis-try-apply.d.ts.map +1 -0
  279. package/dist/node-types/genesis-try-apply.js +142 -0
  280. package/dist/node-types/genesis-try-apply.js.map +1 -0
  281. package/dist/node-types/genesis-update-history.d.ts +15 -0
  282. package/dist/node-types/genesis-update-history.d.ts.map +1 -0
  283. package/dist/node-types/genesis-update-history.js +70 -0
  284. package/dist/node-types/genesis-update-history.js.map +1 -0
  285. package/dist/node-types/genesis-validate-proposal.d.ts +16 -0
  286. package/dist/node-types/genesis-validate-proposal.d.ts.map +1 -0
  287. package/dist/node-types/genesis-validate-proposal.js +109 -0
  288. package/dist/node-types/genesis-validate-proposal.js.map +1 -0
  289. package/dist/node-types/git-ops.d.ts +15 -0
  290. package/dist/node-types/git-ops.d.ts.map +1 -0
  291. package/dist/node-types/git-ops.js +69 -0
  292. package/dist/node-types/git-ops.js.map +1 -0
  293. package/dist/node-types/index.d.ts +37 -0
  294. package/dist/node-types/index.d.ts.map +1 -0
  295. package/dist/node-types/index.js +37 -0
  296. package/dist/node-types/index.js.map +1 -0
  297. package/dist/node-types/load-config.d.ts +17 -0
  298. package/dist/node-types/load-config.d.ts.map +1 -0
  299. package/dist/node-types/load-config.js +27 -0
  300. package/dist/node-types/load-config.js.map +1 -0
  301. package/dist/node-types/plan-task.d.ts +17 -0
  302. package/dist/node-types/plan-task.d.ts.map +1 -0
  303. package/dist/node-types/plan-task.js +55 -0
  304. package/dist/node-types/plan-task.js.map +1 -0
  305. package/dist/node-types/read-workflow.d.ts +15 -0
  306. package/dist/node-types/read-workflow.d.ts.map +1 -0
  307. package/dist/node-types/read-workflow.js +60 -0
  308. package/dist/node-types/read-workflow.js.map +1 -0
  309. package/dist/node-types/receive-task.d.ts +20 -0
  310. package/dist/node-types/receive-task.d.ts.map +1 -0
  311. package/dist/node-types/receive-task.js +69 -0
  312. package/dist/node-types/receive-task.js.map +1 -0
  313. package/dist/node-types/report.d.ts +14 -0
  314. package/dist/node-types/report.d.ts.map +1 -0
  315. package/dist/node-types/report.js +25 -0
  316. package/dist/node-types/report.js.map +1 -0
  317. package/dist/node-types/resolve-target.d.ts +16 -0
  318. package/dist/node-types/resolve-target.d.ts.map +1 -0
  319. package/dist/node-types/resolve-target.js +67 -0
  320. package/dist/node-types/resolve-target.js.map +1 -0
  321. package/dist/node-types/route-task.d.ts +14 -0
  322. package/dist/node-types/route-task.d.ts.map +1 -0
  323. package/dist/node-types/route-task.js +22 -0
  324. package/dist/node-types/route-task.js.map +1 -0
  325. package/dist/node-types/send-notify.d.ts +14 -0
  326. package/dist/node-types/send-notify.d.ts.map +1 -0
  327. package/dist/node-types/send-notify.js +71 -0
  328. package/dist/node-types/send-notify.js.map +1 -0
  329. package/dist/node-types/validate-result.d.ts +24 -0
  330. package/dist/node-types/validate-result.d.ts.map +1 -0
  331. package/dist/node-types/validate-result.js +38 -0
  332. package/dist/node-types/validate-result.js.map +1 -0
  333. package/dist/templates/index.d.ts +5 -0
  334. package/dist/templates/index.d.ts.map +1 -0
  335. package/dist/templates/index.js +4 -0
  336. package/dist/templates/index.js.map +1 -0
  337. package/dist/templates/weaver-bot-template.d.ts +11 -0
  338. package/dist/templates/weaver-bot-template.d.ts.map +1 -0
  339. package/dist/templates/weaver-bot-template.js +99 -0
  340. package/dist/templates/weaver-bot-template.js.map +1 -0
  341. package/dist/templates/weaver-template.d.ts +11 -0
  342. package/dist/templates/weaver-template.d.ts.map +1 -0
  343. package/dist/templates/weaver-template.js +53 -0
  344. package/dist/templates/weaver-template.js.map +1 -0
  345. package/dist/workflows/genesis-task.d.ts +62 -0
  346. package/dist/workflows/genesis-task.d.ts.map +1 -0
  347. package/dist/workflows/genesis-task.js +64 -0
  348. package/dist/workflows/genesis-task.js.map +1 -0
  349. package/dist/workflows/index.d.ts +4 -0
  350. package/dist/workflows/index.d.ts.map +1 -0
  351. package/dist/workflows/index.js +4 -0
  352. package/dist/workflows/index.js.map +1 -0
  353. package/dist/workflows/weaver-bot-batch.d.ts +49 -0
  354. package/dist/workflows/weaver-bot-batch.d.ts.map +1 -0
  355. package/dist/workflows/weaver-bot-batch.js +49 -0
  356. package/dist/workflows/weaver-bot-batch.js.map +1 -0
  357. package/dist/workflows/weaver-bot-session.d.ts +65 -0
  358. package/dist/workflows/weaver-bot-session.d.ts.map +1 -0
  359. package/dist/workflows/weaver-bot-session.js +68 -0
  360. package/dist/workflows/weaver-bot-session.js.map +1 -0
  361. package/dist/workflows/weaver-bot.d.ts +61 -0
  362. package/dist/workflows/weaver-bot.d.ts.map +1 -0
  363. package/dist/workflows/weaver-bot.js +61 -0
  364. package/dist/workflows/weaver-bot.js.map +1 -0
  365. package/dist/workflows/weaver.d.ts +24 -0
  366. package/dist/workflows/weaver.d.ts.map +1 -0
  367. package/dist/workflows/weaver.js +28 -0
  368. package/dist/workflows/weaver.js.map +1 -0
  369. package/flowweaver.manifest.json +1001 -0
  370. package/package.json +78 -0
  371. package/src/bot/agent-provider.ts +273 -0
  372. package/src/bot/ai-client.ts +153 -0
  373. package/src/bot/approvals.ts +273 -0
  374. package/src/bot/audit-logger.ts +45 -0
  375. package/src/bot/audit-store.ts +69 -0
  376. package/src/bot/bot-agent-channel.ts +99 -0
  377. package/src/bot/cli-provider.ts +169 -0
  378. package/src/bot/cli-stream-parser.ts +59 -0
  379. package/src/bot/cost-store.ts +92 -0
  380. package/src/bot/cost-tracker.ts +72 -0
  381. package/src/bot/cron-parser.ts +153 -0
  382. package/src/bot/cron-scheduler.ts +48 -0
  383. package/src/bot/dashboard.ts +658 -0
  384. package/src/bot/design-checker.ts +327 -0
  385. package/src/bot/file-lock.ts +73 -0
  386. package/src/bot/file-validator.ts +41 -0
  387. package/src/bot/file-watcher.ts +103 -0
  388. package/src/bot/fw-api.ts +18 -0
  389. package/src/bot/genesis-prompt-context.ts +135 -0
  390. package/src/bot/genesis-store.ts +180 -0
  391. package/src/bot/index.ts +127 -0
  392. package/src/bot/notifications.ts +263 -0
  393. package/src/bot/pipeline-runner.ts +324 -0
  394. package/src/bot/provider-registry.ts +236 -0
  395. package/src/bot/run-store.ts +169 -0
  396. package/src/bot/runner.ts +311 -0
  397. package/src/bot/session-state.ts +73 -0
  398. package/src/bot/steering.ts +44 -0
  399. package/src/bot/step-executor.ts +34 -0
  400. package/src/bot/system-prompt.ts +280 -0
  401. package/src/bot/task-queue.ts +111 -0
  402. package/src/bot/types.ts +571 -0
  403. package/src/bot/utils.ts +17 -0
  404. package/src/bot/watch-daemon.ts +203 -0
  405. package/src/bot/web-approval.ts +240 -0
  406. package/src/cli-bridge.ts +41 -0
  407. package/src/cli-handlers.ts +1445 -0
  408. package/src/docs/weaver-config.md +135 -0
  409. package/src/index.ts +177 -0
  410. package/src/mcp-tools.ts +274 -0
  411. package/src/node-types/abort-task.ts +31 -0
  412. package/src/node-types/approval-gate.ts +95 -0
  413. package/src/node-types/bot-report.ts +82 -0
  414. package/src/node-types/build-context.ts +65 -0
  415. package/src/node-types/detect-provider.ts +77 -0
  416. package/src/node-types/exec-validate-retry.ts +170 -0
  417. package/src/node-types/execute-plan.ts +130 -0
  418. package/src/node-types/execute-target.ts +256 -0
  419. package/src/node-types/fix-errors.ts +63 -0
  420. package/src/node-types/genesis-apply-retry.ts +133 -0
  421. package/src/node-types/genesis-apply.ts +96 -0
  422. package/src/node-types/genesis-approve.ts +73 -0
  423. package/src/node-types/genesis-check-stabilize.ts +37 -0
  424. package/src/node-types/genesis-check-threshold.ts +34 -0
  425. package/src/node-types/genesis-commit.ts +71 -0
  426. package/src/node-types/genesis-compile-validate.ts +77 -0
  427. package/src/node-types/genesis-diff-fingerprint.ts +67 -0
  428. package/src/node-types/genesis-diff-workflow.ts +71 -0
  429. package/src/node-types/genesis-escrow-grace.ts +62 -0
  430. package/src/node-types/genesis-escrow-migrate.ts +138 -0
  431. package/src/node-types/genesis-escrow-recover.ts +99 -0
  432. package/src/node-types/genesis-escrow-stage.ts +104 -0
  433. package/src/node-types/genesis-escrow-validate.ts +120 -0
  434. package/src/node-types/genesis-load-config.ts +44 -0
  435. package/src/node-types/genesis-observe.ts +119 -0
  436. package/src/node-types/genesis-propose.ts +86 -0
  437. package/src/node-types/genesis-report.ts +95 -0
  438. package/src/node-types/genesis-snapshot.ts +30 -0
  439. package/src/node-types/genesis-try-apply.ts +165 -0
  440. package/src/node-types/genesis-update-history.ts +72 -0
  441. package/src/node-types/genesis-validate-proposal.ts +124 -0
  442. package/src/node-types/git-ops.ts +72 -0
  443. package/src/node-types/index.ts +36 -0
  444. package/src/node-types/load-config.ts +27 -0
  445. package/src/node-types/plan-task.ts +66 -0
  446. package/src/node-types/read-workflow.ts +68 -0
  447. package/src/node-types/receive-task.ts +92 -0
  448. package/src/node-types/report.ts +25 -0
  449. package/src/node-types/resolve-target.ts +64 -0
  450. package/src/node-types/route-task.ts +25 -0
  451. package/src/node-types/send-notify.ts +75 -0
  452. package/src/node-types/validate-result.ts +49 -0
  453. package/src/templates/index.ts +5 -0
  454. package/src/templates/weaver-bot-template.ts +106 -0
  455. package/src/workflows/genesis-task.ts +91 -0
  456. package/src/workflows/index.ts +3 -0
  457. package/src/workflows/weaver-bot-batch.ts +65 -0
  458. package/src/workflows/weaver-bot.ts +79 -0
  459. package/templates.js +1 -0
@@ -0,0 +1,1001 @@
1
+ {
2
+ "manifestVersion": 1,
3
+ "name": "@synergenius/flow-weaver-pack-weaver",
4
+ "version": "0.8.1",
5
+ "description": "AI bot for Flow Weaver. Execute tasks, run workflows, evolve autonomously.",
6
+ "engineVersion": ">=0.19.4",
7
+ "categories": [
8
+ "automation",
9
+ "ai"
10
+ ],
11
+ "botRegistrations": [
12
+ {
13
+ "id": "weaver-bot",
14
+ "name": "Weaver Bot",
15
+ "description": "AI-powered autonomous workflow creator",
16
+ "icon": "psychology",
17
+ "color": "#6366f1",
18
+ "workflowExport": "weaverBot",
19
+ "paramName": "taskJson",
20
+ "sourceTemplateId": "weaver-bot"
21
+ },
22
+ {
23
+ "id": "weaver-genesis",
24
+ "name": "Weaver Genesis",
25
+ "description": "Self-evolution cycle for a target workflow",
26
+ "icon": "autoAwesome",
27
+ "color": "#9f5fe3",
28
+ "workflowExport": "genesisTask",
29
+ "paramName": "config",
30
+ "sourceTemplateId": "genesis-task"
31
+ }
32
+ ],
33
+ "nodeTypes": [
34
+ {
35
+ "name": "weaverLoadConfig",
36
+ "description": "Read .weaver.json, merge with defaults, and output the config object.",
37
+ "file": "dist/node-types/load-config.js",
38
+ "functionName": "weaverLoadConfig",
39
+ "isAsync": false,
40
+ "inputs": {
41
+ "projectDir": {
42
+ "dataType": "string",
43
+ "description": "Project root directory (defaults to cwd)",
44
+ "optional": true
45
+ }
46
+ },
47
+ "outputs": {
48
+ "projectDir": {
49
+ "dataType": "string",
50
+ "description": "Project root directory (pass-through)"
51
+ },
52
+ "config": {
53
+ "dataType": "object",
54
+ "description": "Weaver configuration"
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "name": "weaverDetectProvider",
60
+ "description": "Auto-detect or resolve the configured AI provider.",
61
+ "file": "dist/node-types/detect-provider.js",
62
+ "functionName": "weaverDetectProvider",
63
+ "isAsync": false,
64
+ "inputs": {
65
+ "projectDir": {
66
+ "dataType": "string",
67
+ "description": "Project root directory"
68
+ },
69
+ "config": {
70
+ "dataType": "object",
71
+ "description": "Weaver configuration"
72
+ }
73
+ },
74
+ "outputs": {
75
+ "env": {
76
+ "dataType": "object",
77
+ "description": "Weaver environment bundle"
78
+ }
79
+ }
80
+ },
81
+ {
82
+ "name": "weaverResolveTarget",
83
+ "description": "Find the target workflow file from config or by scanning the project directory.",
84
+ "file": "dist/node-types/resolve-target.js",
85
+ "functionName": "weaverResolveTarget",
86
+ "isAsync": false,
87
+ "inputs": {
88
+ "env": {
89
+ "dataType": "object",
90
+ "description": "Weaver environment bundle"
91
+ }
92
+ },
93
+ "outputs": {
94
+ "ctx": {
95
+ "dataType": "string",
96
+ "description": "Weaver context (JSON)"
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "name": "weaverExecuteTarget",
102
+ "description": "Run the target workflow via the flow-weaver executor with an AI agent channel.",
103
+ "file": "dist/node-types/execute-target.js",
104
+ "functionName": "weaverExecuteTarget",
105
+ "isAsync": true,
106
+ "inputs": {
107
+ "ctx": {
108
+ "dataType": "string",
109
+ "description": "Weaver context (JSON)"
110
+ }
111
+ },
112
+ "outputs": {
113
+ "ctx": {
114
+ "dataType": "string",
115
+ "description": "Weaver context with resultJson (JSON)"
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "name": "weaverSendNotify",
121
+ "description": "Send webhook/Discord/Slack notifications based on config.",
122
+ "file": "dist/node-types/send-notify.js",
123
+ "functionName": "weaverSendNotify",
124
+ "isAsync": false,
125
+ "inputs": {
126
+ "ctx": {
127
+ "dataType": "string",
128
+ "description": "Weaver context (JSON)"
129
+ }
130
+ },
131
+ "outputs": {
132
+ "ctx": {
133
+ "dataType": "string",
134
+ "description": "Weaver context (pass-through, JSON)"
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "name": "weaverReport",
140
+ "description": "Format the result summary, suitable for display or further processing.",
141
+ "file": "dist/node-types/report.js",
142
+ "functionName": "weaverReport",
143
+ "isAsync": false,
144
+ "inputs": {
145
+ "ctx": {
146
+ "dataType": "string",
147
+ "description": "Weaver context (JSON)"
148
+ }
149
+ },
150
+ "outputs": {
151
+ "summary": {
152
+ "dataType": "string",
153
+ "description": "Summary string"
154
+ }
155
+ }
156
+ },
157
+ {
158
+ "name": "weaverReceiveTask",
159
+ "description": "Receive a task from CLI args, MCP, or the task queue.",
160
+ "file": "dist/node-types/receive-task.js",
161
+ "functionName": "weaverReceiveTask",
162
+ "isAsync": true,
163
+ "inputs": {
164
+ "env": {
165
+ "dataType": "object",
166
+ "description": "Weaver environment bundle"
167
+ },
168
+ "taskJson": {
169
+ "dataType": "string",
170
+ "description": "Pre-supplied task (JSON)",
171
+ "optional": true
172
+ }
173
+ },
174
+ "outputs": {
175
+ "ctx": {
176
+ "dataType": "string",
177
+ "description": "Weaver context (JSON)"
178
+ }
179
+ }
180
+ },
181
+ {
182
+ "name": "weaverRouteTask",
183
+ "description": "Route task by mode: actionable (success) or read-only (failure).",
184
+ "file": "dist/node-types/route-task.js",
185
+ "functionName": "weaverRouteTask",
186
+ "isAsync": false,
187
+ "inputs": {
188
+ "ctx": {
189
+ "dataType": "string",
190
+ "description": "Weaver context (JSON)"
191
+ }
192
+ },
193
+ "outputs": {
194
+ "ctx": {
195
+ "dataType": "string",
196
+ "description": "Weaver context (pass-through, JSON)"
197
+ }
198
+ }
199
+ },
200
+ {
201
+ "name": "weaverReadWorkflow",
202
+ "description": "Read and analyze a workflow file with diagram.",
203
+ "file": "dist/node-types/read-workflow.js",
204
+ "functionName": "weaverReadWorkflow",
205
+ "isAsync": false,
206
+ "inputs": {
207
+ "ctx": {
208
+ "dataType": "string",
209
+ "description": "Weaver context (JSON)"
210
+ }
211
+ },
212
+ "outputs": {
213
+ "ctx": {
214
+ "dataType": "string",
215
+ "description": "Weaver context with resultJson (JSON)"
216
+ }
217
+ }
218
+ },
219
+ {
220
+ "name": "weaverBuildContext",
221
+ "description": "Build the AI knowledge bundle from flow-weaver context.",
222
+ "file": "dist/node-types/build-context.js",
223
+ "functionName": "weaverBuildContext",
224
+ "isAsync": false,
225
+ "inputs": {
226
+ "ctx": {
227
+ "dataType": "string",
228
+ "description": "Weaver context (JSON)"
229
+ }
230
+ },
231
+ "outputs": {
232
+ "ctx": {
233
+ "dataType": "string",
234
+ "description": "Weaver context with contextBundle (JSON)"
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "name": "weaverPlanTask",
240
+ "description": "Send task + context to AI provider and get execution plan.",
241
+ "file": "dist/node-types/plan-task.js",
242
+ "functionName": "weaverPlanTask",
243
+ "isAsync": true,
244
+ "inputs": {
245
+ "ctx": {
246
+ "dataType": "string",
247
+ "description": "Weaver context (JSON)"
248
+ }
249
+ },
250
+ "outputs": {
251
+ "ctx": {
252
+ "dataType": "string",
253
+ "description": "Weaver context with planJson (JSON)"
254
+ }
255
+ }
256
+ },
257
+ {
258
+ "name": "weaverApprovalGate",
259
+ "description": "Present plan for user approval with auto-approve support.",
260
+ "file": "dist/node-types/approval-gate.js",
261
+ "functionName": "weaverApprovalGate",
262
+ "isAsync": true,
263
+ "inputs": {
264
+ "ctx": {
265
+ "dataType": "string",
266
+ "description": "Weaver context (JSON)"
267
+ }
268
+ },
269
+ "outputs": {
270
+ "ctx": {
271
+ "dataType": "string",
272
+ "description": "Weaver context with rejectionReason (JSON)"
273
+ }
274
+ }
275
+ },
276
+ {
277
+ "name": "weaverAbortTask",
278
+ "description": "Handle plan rejection and format abort result.",
279
+ "file": "dist/node-types/abort-task.js",
280
+ "functionName": "weaverAbortTask",
281
+ "isAsync": false,
282
+ "inputs": {
283
+ "ctx": {
284
+ "dataType": "string",
285
+ "description": "Weaver context (JSON)"
286
+ }
287
+ },
288
+ "outputs": {
289
+ "ctx": {
290
+ "dataType": "string",
291
+ "description": "Weaver context with abort resultJson (JSON)"
292
+ }
293
+ }
294
+ },
295
+ {
296
+ "name": "weaverExecValidateRetry",
297
+ "description": "Execute-validate-fix retry loop (up to 3 attempts).",
298
+ "file": "dist/node-types/exec-validate-retry.js",
299
+ "functionName": "weaverExecValidateRetry",
300
+ "isAsync": true,
301
+ "inputs": {
302
+ "ctx": {
303
+ "dataType": "string",
304
+ "description": "Weaver context (JSON)"
305
+ }
306
+ },
307
+ "outputs": {
308
+ "ctx": {
309
+ "dataType": "string",
310
+ "description": "Weaver context with results (JSON)"
311
+ }
312
+ }
313
+ },
314
+ {
315
+ "name": "weaverExecutePlan",
316
+ "description": "Execute plan steps via the flow-weaver CLI.",
317
+ "file": "dist/node-types/execute-plan.js",
318
+ "functionName": "weaverExecutePlan",
319
+ "isAsync": true,
320
+ "inputs": {
321
+ "env": {
322
+ "dataType": "object",
323
+ "description": "Weaver environment bundle"
324
+ },
325
+ "planJson": {
326
+ "dataType": "string",
327
+ "description": "Plan (JSON)"
328
+ },
329
+ "taskJson": {
330
+ "dataType": "string",
331
+ "description": "Task (JSON)"
332
+ }
333
+ },
334
+ "outputs": {
335
+ "env": {
336
+ "dataType": "object",
337
+ "description": "Weaver environment bundle (pass-through)"
338
+ },
339
+ "executionResultJson": {
340
+ "dataType": "string",
341
+ "description": "Execution result (JSON)"
342
+ },
343
+ "taskJson": {
344
+ "dataType": "string",
345
+ "description": "Task (pass-through)"
346
+ },
347
+ "filesModified": {
348
+ "dataType": "string",
349
+ "description": "Files modified (JSON array)"
350
+ }
351
+ }
352
+ },
353
+ {
354
+ "name": "weaverValidateResult",
355
+ "description": "Validate modified files using flow-weaver validate.",
356
+ "file": "dist/node-types/validate-result.js",
357
+ "functionName": "weaverValidateResult",
358
+ "isAsync": false,
359
+ "inputs": {
360
+ "env": {
361
+ "dataType": "object",
362
+ "description": "Weaver environment bundle"
363
+ },
364
+ "executionResultJson": {
365
+ "dataType": "string",
366
+ "description": "Execution result (JSON)"
367
+ },
368
+ "taskJson": {
369
+ "dataType": "string",
370
+ "description": "Task (JSON)"
371
+ },
372
+ "filesModified": {
373
+ "dataType": "string",
374
+ "description": "Files modified (JSON array)"
375
+ }
376
+ },
377
+ "outputs": {
378
+ "env": {
379
+ "dataType": "object",
380
+ "description": "Weaver environment bundle (pass-through)"
381
+ },
382
+ "validationResultJson": {
383
+ "dataType": "string",
384
+ "description": "Validation results (JSON)"
385
+ },
386
+ "taskJson": {
387
+ "dataType": "string",
388
+ "description": "Task (pass-through)"
389
+ },
390
+ "allValid": {
391
+ "dataType": "boolean",
392
+ "description": "Whether all files passed validation"
393
+ }
394
+ }
395
+ },
396
+ {
397
+ "name": "weaverFixErrors",
398
+ "description": "Send validation errors to AI for a repair plan.",
399
+ "file": "dist/node-types/fix-errors.js",
400
+ "functionName": "weaverFixErrors",
401
+ "isAsync": true,
402
+ "inputs": {
403
+ "env": {
404
+ "dataType": "object",
405
+ "description": "Weaver environment bundle"
406
+ },
407
+ "validationResultJson": {
408
+ "dataType": "string",
409
+ "description": "Validation results (JSON)"
410
+ },
411
+ "taskJson": {
412
+ "dataType": "string",
413
+ "description": "Task (JSON)"
414
+ }
415
+ },
416
+ "outputs": {
417
+ "env": {
418
+ "dataType": "object",
419
+ "description": "Weaver environment bundle (pass-through)"
420
+ },
421
+ "fixPlanJson": {
422
+ "dataType": "string",
423
+ "description": "Fix plan (JSON)"
424
+ },
425
+ "taskJson": {
426
+ "dataType": "string",
427
+ "description": "Task (pass-through)"
428
+ }
429
+ }
430
+ },
431
+ {
432
+ "name": "weaverGitOps",
433
+ "description": "Git operations: stage, commit, branch on modified files.",
434
+ "file": "dist/node-types/git-ops.js",
435
+ "functionName": "weaverGitOps",
436
+ "isAsync": false,
437
+ "inputs": {
438
+ "ctx": {
439
+ "dataType": "string",
440
+ "description": "Weaver context (JSON)"
441
+ }
442
+ },
443
+ "outputs": {
444
+ "ctx": {
445
+ "dataType": "string",
446
+ "description": "Weaver context with gitResultJson (JSON)"
447
+ }
448
+ }
449
+ },
450
+ {
451
+ "name": "weaverBotReport",
452
+ "description": "Generate final bot report from any execution path.",
453
+ "file": "dist/node-types/bot-report.js",
454
+ "functionName": "weaverBotReport",
455
+ "isAsync": false,
456
+ "inputs": {
457
+ "mainCtx": {
458
+ "dataType": "string",
459
+ "description": "Context from main path (JSON)",
460
+ "optional": true
461
+ },
462
+ "readCtx": {
463
+ "dataType": "string",
464
+ "description": "Context from read-only path (JSON)",
465
+ "optional": true
466
+ },
467
+ "abortCtx": {
468
+ "dataType": "string",
469
+ "description": "Context from abort path (JSON)",
470
+ "optional": true
471
+ }
472
+ },
473
+ "outputs": {
474
+ "summary": {
475
+ "dataType": "string",
476
+ "description": "Summary text"
477
+ },
478
+ "reportJson": {
479
+ "dataType": "string",
480
+ "description": "Full report (JSON)"
481
+ }
482
+ }
483
+ },
484
+ {
485
+ "name": "genesisLoadConfig",
486
+ "description": "Read .genesis/config.json, validate target workflow, generate cycle ID.",
487
+ "file": "dist/node-types/genesis-load-config.js",
488
+ "functionName": "genesisLoadConfig",
489
+ "isAsync": false,
490
+ "inputs": {
491
+ "env": {
492
+ "dataType": "object",
493
+ "description": "Weaver environment bundle"
494
+ }
495
+ },
496
+ "outputs": {
497
+ "ctx": {
498
+ "dataType": "string",
499
+ "description": "Genesis context (JSON)"
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "name": "genesisObserve",
505
+ "description": "Fingerprint project state: hash files, git branch/commit, scan workflows.",
506
+ "file": "dist/node-types/genesis-observe.js",
507
+ "functionName": "genesisObserve",
508
+ "isAsync": true,
509
+ "inputs": {
510
+ "ctx": {
511
+ "dataType": "string",
512
+ "description": "Genesis context (JSON)"
513
+ }
514
+ },
515
+ "outputs": {
516
+ "ctx": {
517
+ "dataType": "string",
518
+ "description": "Genesis context with fingerprintJson (JSON)"
519
+ }
520
+ }
521
+ },
522
+ {
523
+ "name": "genesisDiffFingerprint",
524
+ "description": "Compare current fingerprint against last saved, output diff summary.",
525
+ "file": "dist/node-types/genesis-diff-fingerprint.js",
526
+ "functionName": "genesisDiffFingerprint",
527
+ "isAsync": false,
528
+ "inputs": {
529
+ "ctx": {
530
+ "dataType": "string",
531
+ "description": "Genesis context (JSON)"
532
+ }
533
+ },
534
+ "outputs": {
535
+ "ctx": {
536
+ "dataType": "string",
537
+ "description": "Genesis context with diffJson (JSON)"
538
+ }
539
+ }
540
+ },
541
+ {
542
+ "name": "genesisCheckStabilize",
543
+ "description": "Check if stabilize mode is active (config flag or 3+ consecutive rollbacks).",
544
+ "file": "dist/node-types/genesis-check-stabilize.js",
545
+ "functionName": "genesisCheckStabilize",
546
+ "isAsync": false,
547
+ "inputs": {
548
+ "ctx": {
549
+ "dataType": "string",
550
+ "description": "Genesis context (JSON)"
551
+ }
552
+ },
553
+ "outputs": {
554
+ "ctx": {
555
+ "dataType": "string",
556
+ "description": "Genesis context with stabilized (JSON)"
557
+ }
558
+ }
559
+ },
560
+ {
561
+ "name": "genesisPropose",
562
+ "description": "Send project context to AI provider and get a structured evolution proposal.",
563
+ "file": "dist/node-types/genesis-propose.js",
564
+ "functionName": "genesisPropose",
565
+ "isAsync": true,
566
+ "inputs": {
567
+ "ctx": {
568
+ "dataType": "string",
569
+ "description": "Genesis context (JSON)"
570
+ }
571
+ },
572
+ "outputs": {
573
+ "ctx": {
574
+ "dataType": "string",
575
+ "description": "Genesis context with proposalJson (JSON)"
576
+ }
577
+ }
578
+ },
579
+ {
580
+ "name": "genesisValidateProposal",
581
+ "description": "Validate and trim proposal to fit budget. Recalculate costs, filter stabilize violations.",
582
+ "file": "dist/node-types/genesis-validate-proposal.js",
583
+ "functionName": "genesisValidateProposal",
584
+ "isAsync": false,
585
+ "inputs": {
586
+ "ctx": {
587
+ "dataType": "string",
588
+ "description": "Genesis context (JSON)"
589
+ }
590
+ },
591
+ "outputs": {
592
+ "ctx": {
593
+ "dataType": "string",
594
+ "description": "Genesis context with validated proposalJson (JSON)"
595
+ }
596
+ }
597
+ },
598
+ {
599
+ "name": "genesisSnapshot",
600
+ "description": "Save target workflow snapshot before modifications for rollback.",
601
+ "file": "dist/node-types/genesis-snapshot.js",
602
+ "functionName": "genesisSnapshot",
603
+ "isAsync": false,
604
+ "inputs": {
605
+ "ctx": {
606
+ "dataType": "string",
607
+ "description": "Genesis context (JSON)"
608
+ }
609
+ },
610
+ "outputs": {
611
+ "ctx": {
612
+ "dataType": "string",
613
+ "description": "Genesis context with snapshotPath (JSON)"
614
+ }
615
+ }
616
+ },
617
+ {
618
+ "name": "genesisApply",
619
+ "description": "Apply proposal operations to the target workflow via flow-weaver modify CLI.",
620
+ "file": "dist/node-types/genesis-apply.js",
621
+ "functionName": "genesisApply",
622
+ "isAsync": true,
623
+ "inputs": {
624
+ "env": {
625
+ "dataType": "object",
626
+ "description": "Weaver environment bundle"
627
+ },
628
+ "genesisConfigJson": {
629
+ "dataType": "string",
630
+ "description": "Genesis configuration (JSON)"
631
+ },
632
+ "proposalJson": {
633
+ "dataType": "string",
634
+ "description": "Genesis proposal (JSON)"
635
+ },
636
+ "snapshotPath": {
637
+ "dataType": "string",
638
+ "description": "Path to the pre-apply snapshot"
639
+ }
640
+ },
641
+ "outputs": {
642
+ "env": {
643
+ "dataType": "object",
644
+ "description": "Weaver environment bundle (pass-through)"
645
+ },
646
+ "genesisConfigJson": {
647
+ "dataType": "string",
648
+ "description": "Genesis configuration (pass-through)"
649
+ },
650
+ "proposalJson": {
651
+ "dataType": "string",
652
+ "description": "Genesis proposal (pass-through)"
653
+ },
654
+ "snapshotPath": {
655
+ "dataType": "string",
656
+ "description": "Snapshot path (pass-through)"
657
+ },
658
+ "applyResultJson": {
659
+ "dataType": "string",
660
+ "description": "Apply result (JSON)"
661
+ }
662
+ }
663
+ },
664
+ {
665
+ "name": "genesisCompileValidate",
666
+ "description": "Run flow-weaver validate and compile on modified workflow. Rollback on failure.",
667
+ "file": "dist/node-types/genesis-compile-validate.js",
668
+ "functionName": "genesisCompileValidate",
669
+ "isAsync": true,
670
+ "inputs": {
671
+ "env": {
672
+ "dataType": "object",
673
+ "description": "Weaver environment bundle"
674
+ },
675
+ "genesisConfigJson": {
676
+ "dataType": "string",
677
+ "description": "Genesis configuration (JSON)"
678
+ },
679
+ "snapshotPath": {
680
+ "dataType": "string",
681
+ "description": "Path to the pre-apply snapshot"
682
+ },
683
+ "applyResultJson": {
684
+ "dataType": "string",
685
+ "description": "Apply result (JSON)"
686
+ }
687
+ },
688
+ "outputs": {
689
+ "env": {
690
+ "dataType": "object",
691
+ "description": "Weaver environment bundle (pass-through)"
692
+ },
693
+ "genesisConfigJson": {
694
+ "dataType": "string",
695
+ "description": "Genesis configuration (pass-through)"
696
+ },
697
+ "snapshotPath": {
698
+ "dataType": "string",
699
+ "description": "Snapshot path (pass-through)"
700
+ }
701
+ }
702
+ },
703
+ {
704
+ "name": "genesisTryApply",
705
+ "description": "Apply proposal operations then validate + compile. Restore snapshot on failure.",
706
+ "file": "dist/node-types/genesis-try-apply.js",
707
+ "functionName": "genesisTryApply",
708
+ "isAsync": true,
709
+ "inputs": {
710
+ "ctx": {
711
+ "dataType": "string",
712
+ "description": "Genesis context (JSON)"
713
+ }
714
+ },
715
+ "outputs": {
716
+ "ctx": {
717
+ "dataType": "string",
718
+ "description": "Genesis context with apply results (JSON)"
719
+ }
720
+ }
721
+ },
722
+ {
723
+ "name": "genesisApplyRetry",
724
+ "description": "Scoped retry loop for apply + compile. Up to 3 attempts with AI-revised proposals.",
725
+ "file": "dist/node-types/genesis-apply-retry.js",
726
+ "functionName": "genesisApplyRetry",
727
+ "isAsync": true,
728
+ "inputs": {
729
+ "ctx": {
730
+ "dataType": "string",
731
+ "description": "Genesis context (JSON)"
732
+ }
733
+ },
734
+ "outputs": {
735
+ "ctx": {
736
+ "dataType": "string",
737
+ "description": "Genesis context with applyResultJson (JSON)"
738
+ }
739
+ }
740
+ },
741
+ {
742
+ "name": "genesisDiffWorkflow",
743
+ "description": "Run flow-weaver diff between snapshot and current target workflow.",
744
+ "file": "dist/node-types/genesis-diff-workflow.js",
745
+ "functionName": "genesisDiffWorkflow",
746
+ "isAsync": false,
747
+ "inputs": {
748
+ "ctx": {
749
+ "dataType": "string",
750
+ "description": "Genesis context (JSON)"
751
+ }
752
+ },
753
+ "outputs": {
754
+ "ctx": {
755
+ "dataType": "string",
756
+ "description": "Genesis context with workflowDiffJson (JSON)"
757
+ }
758
+ }
759
+ },
760
+ {
761
+ "name": "genesisCheckThreshold",
762
+ "description": "Compare proposal impact level against approval threshold.",
763
+ "file": "dist/node-types/genesis-check-threshold.js",
764
+ "functionName": "genesisCheckThreshold",
765
+ "isAsync": false,
766
+ "inputs": {
767
+ "ctx": {
768
+ "dataType": "string",
769
+ "description": "Genesis context (JSON)"
770
+ }
771
+ },
772
+ "outputs": {
773
+ "ctx": {
774
+ "dataType": "string",
775
+ "description": "Genesis context with approvalRequired (JSON)"
776
+ }
777
+ }
778
+ },
779
+ {
780
+ "name": "genesisApprove",
781
+ "description": "Handle approval for genesis proposals. Auto-approve below threshold or in auto mode.",
782
+ "file": "dist/node-types/genesis-approve.js",
783
+ "functionName": "genesisApprove",
784
+ "isAsync": true,
785
+ "inputs": {
786
+ "ctx": {
787
+ "dataType": "string",
788
+ "description": "Genesis context (JSON)"
789
+ }
790
+ },
791
+ "outputs": {
792
+ "ctx": {
793
+ "dataType": "string",
794
+ "description": "Genesis context with approved (JSON)"
795
+ }
796
+ }
797
+ },
798
+ {
799
+ "name": "genesisCommit",
800
+ "description": "Git add and commit if approved, restore from snapshot if rejected.",
801
+ "file": "dist/node-types/genesis-commit.js",
802
+ "functionName": "genesisCommit",
803
+ "isAsync": true,
804
+ "inputs": {
805
+ "ctx": {
806
+ "dataType": "string",
807
+ "description": "Genesis context (JSON)"
808
+ }
809
+ },
810
+ "outputs": {
811
+ "ctx": {
812
+ "dataType": "string",
813
+ "description": "Genesis context with commitResultJson (JSON)"
814
+ }
815
+ }
816
+ },
817
+ {
818
+ "name": "genesisUpdateHistory",
819
+ "description": "Build cycle record, determine outcome, append to genesis history.",
820
+ "file": "dist/node-types/genesis-update-history.js",
821
+ "functionName": "genesisUpdateHistory",
822
+ "isAsync": false,
823
+ "inputs": {
824
+ "ctx": {
825
+ "dataType": "string",
826
+ "description": "Genesis context (JSON)"
827
+ }
828
+ },
829
+ "outputs": {
830
+ "ctx": {
831
+ "dataType": "string",
832
+ "description": "Genesis context with cycleRecordJson (JSON)"
833
+ }
834
+ }
835
+ },
836
+ {
837
+ "name": "genesisReport",
838
+ "description": "Format genesis cycle summary for console output. Fires from any path.",
839
+ "file": "dist/node-types/genesis-report.js",
840
+ "functionName": "genesisReport",
841
+ "isAsync": false,
842
+ "inputs": {
843
+ "successCtx": {
844
+ "dataType": "string",
845
+ "description": "Genesis context from success path (JSON)",
846
+ "optional": true
847
+ },
848
+ "failCtx": {
849
+ "dataType": "string",
850
+ "description": "Genesis context from fail path (JSON)",
851
+ "optional": true
852
+ }
853
+ },
854
+ "outputs": {
855
+ "summary": {
856
+ "dataType": "string",
857
+ "description": "Formatted summary text"
858
+ }
859
+ }
860
+ }
861
+ ],
862
+ "workflows": [],
863
+ "patterns": [],
864
+ "cliEntrypoint": "dist/cli-bridge.js",
865
+ "cliCommands": [
866
+ {
867
+ "name": "run",
868
+ "description": "Run a workflow file through the bot",
869
+ "usage": "<file>"
870
+ },
871
+ {
872
+ "name": "history",
873
+ "description": "List recent runs",
874
+ "usage": "[id]"
875
+ },
876
+ {
877
+ "name": "costs",
878
+ "description": "Show cost summary"
879
+ },
880
+ {
881
+ "name": "providers",
882
+ "description": "List available providers"
883
+ },
884
+ {
885
+ "name": "watch",
886
+ "description": "Watch file, re-run on change",
887
+ "usage": "<file>"
888
+ },
889
+ {
890
+ "name": "cron",
891
+ "description": "Run on cron schedule",
892
+ "usage": "<schedule> <file>"
893
+ },
894
+ {
895
+ "name": "pipeline",
896
+ "description": "Run multi-stage pipeline",
897
+ "usage": "<config.json>"
898
+ },
899
+ {
900
+ "name": "dashboard",
901
+ "description": "Start live dashboard",
902
+ "usage": "[file]"
903
+ },
904
+ {
905
+ "name": "eject",
906
+ "description": "Eject bot workflows for customization",
907
+ "usage": "[--workflow <bot|batch|genesis>]"
908
+ },
909
+ {
910
+ "name": "bot",
911
+ "description": "Execute a task from natural language",
912
+ "usage": "<task>"
913
+ },
914
+ {
915
+ "name": "session",
916
+ "description": "Start interactive bot session"
917
+ },
918
+ {
919
+ "name": "steer",
920
+ "description": "Send steering command to running bot",
921
+ "usage": "<pause|resume|cancel|redirect|queue> [payload]"
922
+ },
923
+ {
924
+ "name": "queue",
925
+ "description": "Manage bot task queue",
926
+ "usage": "<add|list|clear|remove> [task|id]"
927
+ },
928
+ {
929
+ "name": "genesis",
930
+ "description": "Run bot self-evolution cycle on a target workflow",
931
+ "usage": "[--init] [--watch]"
932
+ }
933
+ ],
934
+ "mcpEntrypoint": "dist/mcp-tools.js",
935
+ "mcpTools": [
936
+ {
937
+ "name": "fw_weaver_run",
938
+ "description": "Run a workflow file through the bot"
939
+ },
940
+ {
941
+ "name": "fw_weaver_history",
942
+ "description": "Query run history"
943
+ },
944
+ {
945
+ "name": "fw_weaver_costs",
946
+ "description": "Get cost summary"
947
+ },
948
+ {
949
+ "name": "fw_weaver_providers",
950
+ "description": "List available providers"
951
+ },
952
+ {
953
+ "name": "fw_weaver_bot",
954
+ "description": "Execute a task from natural language"
955
+ },
956
+ {
957
+ "name": "fw_weaver_steer",
958
+ "description": "Send steering command to running bot"
959
+ },
960
+ {
961
+ "name": "fw_weaver_queue",
962
+ "description": "Manage bot task queue"
963
+ },
964
+ {
965
+ "name": "fw_weaver_status",
966
+ "description": "Get bot session status"
967
+ },
968
+ {
969
+ "name": "fw_weaver_genesis",
970
+ "description": "Run bot self-evolution cycle on a target workflow"
971
+ }
972
+ ],
973
+ "initContributions": {
974
+ "useCase": {
975
+ "id": "ai-runner",
976
+ "name": "AI Workflow Runner",
977
+ "description": "Autonomous workflow execution with AI providers and notifications"
978
+ },
979
+ "templates": [
980
+ "weaver-bot"
981
+ ]
982
+ },
983
+ "docs": [
984
+ {
985
+ "slug": "weaver-config",
986
+ "name": "Weaver Configuration",
987
+ "description": "Configuration reference for .weaver.json and autonomous workflow execution",
988
+ "keywords": [
989
+ "weaver",
990
+ "config",
991
+ "provider",
992
+ "notifications",
993
+ "autonomous"
994
+ ],
995
+ "presets": [
996
+ "automation"
997
+ ],
998
+ "file": "dist/docs/weaver-config.md"
999
+ }
1000
+ ]
1001
+ }