agent-devkit 0.1.6 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (551) hide show
  1. package/README.md +13 -1
  2. package/package.json +1 -1
  3. package/runtime/README.md +53 -1
  4. package/runtime/agent +5 -0
  5. package/runtime/agents/README.md +26 -0
  6. package/runtime/agents/agent-devkit-agent-builder/AGENTS.md +24 -0
  7. package/runtime/agents/agent-devkit-agent-builder/README.md +37 -0
  8. package/runtime/agents/agent-devkit-agent-builder/agent.yaml +46 -0
  9. package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/capability.yaml +29 -0
  10. package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/decision-rules.md +7 -0
  11. package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/runner.py +33 -0
  12. package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/workflow.md +8 -0
  13. package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/capability.yaml +31 -0
  14. package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/decision-rules.md +9 -0
  15. package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/runner.py +39 -0
  16. package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/workflow.md +8 -0
  17. package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/capability.yaml +28 -0
  18. package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/decision-rules.md +6 -0
  19. package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/runner.py +33 -0
  20. package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/workflow.md +7 -0
  21. package/runtime/agents/agent-devkit-agent-builder/infra/integrations/agent-devkit/agent_builder_repository.py +527 -0
  22. package/runtime/agents/agent-devkit-agent-builder/knowledge/context.md +15 -0
  23. package/runtime/agents/agent-devkit-agent-builder/knowledge/policies.yaml +11 -0
  24. package/runtime/agents/agent-devkit-agent-builder/knowledge/system.md +11 -0
  25. package/runtime/agents/agent-devkit-agent-builder/templates/agent-plan-output.md +20 -0
  26. package/runtime/agents/agent-devkit-agent-builder/templates/scaffold-plan-output.md +13 -0
  27. package/runtime/agents/agent-devkit-agent-builder/templates/validation-report-output.md +13 -0
  28. package/runtime/agents/agent-devkit-agent-builder/tests/test_runners.py +188 -0
  29. package/runtime/agents/automation-architect/AGENTS.md +11 -0
  30. package/runtime/agents/automation-architect/README.md +27 -0
  31. package/runtime/agents/automation-architect/agent.yaml +57 -0
  32. package/runtime/agents/automation-architect/capabilities/classify-automation-request/capability.yaml +35 -0
  33. package/runtime/agents/automation-architect/capabilities/classify-automation-request/decision-rules.md +10 -0
  34. package/runtime/agents/automation-architect/capabilities/classify-automation-request/runner.py +37 -0
  35. package/runtime/agents/automation-architect/capabilities/classify-automation-request/workflow.md +7 -0
  36. package/runtime/agents/automation-architect/capabilities/delegate-automation-build/capability.yaml +34 -0
  37. package/runtime/agents/automation-architect/capabilities/delegate-automation-build/decision-rules.md +7 -0
  38. package/runtime/agents/automation-architect/capabilities/delegate-automation-build/runner.py +37 -0
  39. package/runtime/agents/automation-architect/capabilities/delegate-automation-build/workflow.md +6 -0
  40. package/runtime/agents/automation-architect/capabilities/plan-automation-solution/capability.yaml +35 -0
  41. package/runtime/agents/automation-architect/capabilities/plan-automation-solution/decision-rules.md +7 -0
  42. package/runtime/agents/automation-architect/capabilities/plan-automation-solution/runner.py +37 -0
  43. package/runtime/agents/automation-architect/capabilities/plan-automation-solution/workflow.md +7 -0
  44. package/runtime/agents/automation-architect/capabilities/review-automation-solution/capability.yaml +36 -0
  45. package/runtime/agents/automation-architect/capabilities/review-automation-solution/decision-rules.md +7 -0
  46. package/runtime/agents/automation-architect/capabilities/review-automation-solution/runner.py +39 -0
  47. package/runtime/agents/automation-architect/capabilities/review-automation-solution/workflow.md +7 -0
  48. package/runtime/agents/automation-architect/infra/integrations/automation-architecture/automation_architecture_repository.py +481 -0
  49. package/runtime/agents/automation-architect/knowledge/context.md +22 -0
  50. package/runtime/agents/automation-architect/knowledge/policies.yaml +20 -0
  51. package/runtime/agents/automation-architect/knowledge/system.md +8 -0
  52. package/runtime/agents/automation-architect/templates/automation-classification.md +6 -0
  53. package/runtime/agents/automation-architect/templates/automation-plan.md +5 -0
  54. package/runtime/agents/automation-architect/tests/test_runners.py +135 -0
  55. package/runtime/agents/aws-architecture-analyst/agent.yaml +17 -4
  56. package/runtime/agents/aws-cloudwatch-log-analyzer/agent.yaml +12 -2
  57. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/analyze-service-error/capability.yaml +16 -0
  58. package/runtime/agents/aws-lambda-builder/AGENTS.md +27 -0
  59. package/runtime/agents/aws-lambda-builder/README.md +21 -0
  60. package/runtime/agents/aws-lambda-builder/agent.yaml +46 -0
  61. package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/capability.yaml +18 -0
  62. package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/decision-rules.md +6 -0
  63. package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/runner.py +33 -0
  64. package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/workflow.md +6 -0
  65. package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/capability.yaml +20 -0
  66. package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/decision-rules.md +6 -0
  67. package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/runner.py +39 -0
  68. package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/workflow.md +7 -0
  69. package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/capability.yaml +22 -0
  70. package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/decision-rules.md +6 -0
  71. package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/runner.py +41 -0
  72. package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/workflow.md +6 -0
  73. package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/capability.yaml +18 -0
  74. package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/decision-rules.md +7 -0
  75. package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/runner.py +33 -0
  76. package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/workflow.md +6 -0
  77. package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/capability.yaml +18 -0
  78. package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/decision-rules.md +7 -0
  79. package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/runner.py +33 -0
  80. package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/workflow.md +5 -0
  81. package/runtime/agents/aws-lambda-builder/infra/integrations/aws-lambda/aws_lambda_repository.py +688 -0
  82. package/runtime/agents/aws-lambda-builder/knowledge/context.md +12 -0
  83. package/runtime/agents/aws-lambda-builder/knowledge/policies.yaml +23 -0
  84. package/runtime/agents/aws-lambda-builder/knowledge/system.md +10 -0
  85. package/runtime/agents/aws-lambda-builder/templates/lambda-deploy-plan.md +3 -0
  86. package/runtime/agents/aws-lambda-builder/templates/lambda-package.md +3 -0
  87. package/runtime/agents/aws-lambda-builder/templates/lambda-plan.md +3 -0
  88. package/runtime/agents/aws-lambda-builder/templates/lambda-readme.md +3 -0
  89. package/runtime/agents/aws-lambda-builder/templates/lambda-security-review.md +3 -0
  90. package/runtime/agents/aws-lambda-builder/tests/test_runners.py +355 -0
  91. package/runtime/agents/aws-operations-operator/agent.yaml +18 -6
  92. package/runtime/agents/aws-security-governance-auditor/agent.yaml +17 -5
  93. package/runtime/agents/azure-devops-orchestrator/agent.yaml +15 -2
  94. package/runtime/agents/azure-devops-orchestrator/capabilities/read-card/capability.yaml +29 -0
  95. package/runtime/agents/bpo-analyser/agent.yaml +12 -2
  96. package/runtime/agents/bpo-analyser/knowledge/policies.yaml +2 -2
  97. package/runtime/agents/data-scientist-analyst/agent.yaml +16 -4
  98. package/runtime/agents/data-scientist-analyst/capabilities/generate-data-report/capability.yaml +1 -1
  99. package/runtime/agents/data-scientist-analyst/capabilities/generate-reconciliation-report/capability.yaml +1 -1
  100. package/runtime/agents/data-scientist-analyst/capabilities/run-data-pipeline/capability.yaml +1 -1
  101. package/runtime/agents/data-scientist-analyst/infra/integrations/agent-bridge/methods/analyze-sql-source.yaml +1 -1
  102. package/runtime/agents/data-scientist-analyst/knowledge/policies.yaml +4 -4
  103. package/runtime/agents/data-scientist-analyst/knowledge/system.md +1 -1
  104. package/runtime/agents/data-scientist-analyst/tests/test_runners.py +1 -1
  105. package/runtime/agents/database-change-operator/agent.yaml +12 -1
  106. package/runtime/agents/docker-container-builder/AGENTS.md +27 -0
  107. package/runtime/agents/docker-container-builder/README.md +21 -0
  108. package/runtime/agents/docker-container-builder/agent.yaml +52 -0
  109. package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/capability.yaml +18 -0
  110. package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/decision-rules.md +6 -0
  111. package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/runner.py +32 -0
  112. package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/workflow.md +6 -0
  113. package/runtime/agents/docker-container-builder/capabilities/generate-compose/capability.yaml +18 -0
  114. package/runtime/agents/docker-container-builder/capabilities/generate-compose/decision-rules.md +7 -0
  115. package/runtime/agents/docker-container-builder/capabilities/generate-compose/runner.py +32 -0
  116. package/runtime/agents/docker-container-builder/capabilities/generate-compose/workflow.md +6 -0
  117. package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/capability.yaml +20 -0
  118. package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/decision-rules.md +7 -0
  119. package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/runner.py +38 -0
  120. package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/workflow.md +7 -0
  121. package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/capability.yaml +18 -0
  122. package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/decision-rules.md +6 -0
  123. package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/runner.py +32 -0
  124. package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/workflow.md +7 -0
  125. package/runtime/agents/docker-container-builder/capabilities/plan-image-build/capability.yaml +18 -0
  126. package/runtime/agents/docker-container-builder/capabilities/plan-image-build/decision-rules.md +6 -0
  127. package/runtime/agents/docker-container-builder/capabilities/plan-image-build/runner.py +32 -0
  128. package/runtime/agents/docker-container-builder/capabilities/plan-image-build/workflow.md +6 -0
  129. package/runtime/agents/docker-container-builder/capabilities/review-docker-security/capability.yaml +21 -0
  130. package/runtime/agents/docker-container-builder/capabilities/review-docker-security/decision-rules.md +6 -0
  131. package/runtime/agents/docker-container-builder/capabilities/review-docker-security/runner.py +43 -0
  132. package/runtime/agents/docker-container-builder/capabilities/review-docker-security/workflow.md +5 -0
  133. package/runtime/agents/docker-container-builder/infra/integrations/docker-container/docker_container_repository.py +837 -0
  134. package/runtime/agents/docker-container-builder/knowledge/context.md +21 -0
  135. package/runtime/agents/docker-container-builder/knowledge/policies.yaml +13 -0
  136. package/runtime/agents/docker-container-builder/knowledge/system.md +21 -0
  137. package/runtime/agents/docker-container-builder/templates/container-plan.md +4 -0
  138. package/runtime/agents/docker-container-builder/templates/container-review.md +4 -0
  139. package/runtime/agents/docker-container-builder/templates/docker-compose.md +5 -0
  140. package/runtime/agents/docker-container-builder/templates/docker-readme.md +3 -0
  141. package/runtime/agents/docker-container-builder/templates/dockerfile.md +5 -0
  142. package/runtime/agents/docker-container-builder/tests/test_runners.py +255 -0
  143. package/runtime/agents/drawio-diagram-builder/agent.yaml +11 -2
  144. package/runtime/agents/drawio-diagram-builder/capabilities/execute-diagram-delivery/capability.yaml +1 -1
  145. package/runtime/agents/drawio-diagram-builder/capabilities/read-azure-card-context/capability.yaml +1 -1
  146. package/runtime/agents/elasticsearch-log-analyzer/agent.yaml +14 -2
  147. package/runtime/agents/elasticsearch-log-analyzer/capabilities/analyze-service-errors/capability.yaml +14 -0
  148. package/runtime/agents/excel-workbook-builder/agent.yaml +10 -0
  149. package/runtime/agents/excel-workbook-builder/capabilities/create-template/capability.yaml +1 -1
  150. package/runtime/agents/excel-workbook-builder/capabilities/create-template/workflow.md +1 -1
  151. package/runtime/agents/excel-workbook-builder/capabilities/create-template-version/capability.yaml +1 -1
  152. package/runtime/agents/excel-workbook-builder/capabilities/generate-template-input-file/capability.yaml +1 -2
  153. package/runtime/agents/excel-workbook-builder/capabilities/refine-template/capability.yaml +1 -1
  154. package/runtime/agents/excel-workbook-builder/capabilities/register-template/capability.yaml +1 -2
  155. package/runtime/agents/excel-workbook-builder/capabilities/register-template/workflow.md +1 -1
  156. package/runtime/agents/execution-loop-builder/AGENTS.md +24 -0
  157. package/runtime/agents/execution-loop-builder/README.md +19 -0
  158. package/runtime/agents/execution-loop-builder/agent.yaml +49 -0
  159. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/capability.yaml +20 -0
  160. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/decision-rules.md +6 -0
  161. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/runner.py +38 -0
  162. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/workflow.md +7 -0
  163. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/capability.yaml +18 -0
  164. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/decision-rules.md +5 -0
  165. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/runner.py +32 -0
  166. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/workflow.md +6 -0
  167. package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/capability.yaml +18 -0
  168. package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/decision-rules.md +6 -0
  169. package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/runner.py +32 -0
  170. package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/workflow.md +6 -0
  171. package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/capability.yaml +19 -0
  172. package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/decision-rules.md +6 -0
  173. package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/runner.py +36 -0
  174. package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/workflow.md +6 -0
  175. package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/capability.yaml +19 -0
  176. package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/decision-rules.md +6 -0
  177. package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/runner.py +39 -0
  178. package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/workflow.md +5 -0
  179. package/runtime/agents/execution-loop-builder/infra/integrations/execution-loop/execution_loop_repository.py +608 -0
  180. package/runtime/agents/execution-loop-builder/knowledge/context.md +26 -0
  181. package/runtime/agents/execution-loop-builder/knowledge/policies.yaml +13 -0
  182. package/runtime/agents/execution-loop-builder/knowledge/system.md +19 -0
  183. package/runtime/agents/execution-loop-builder/templates/loop-plan.md +3 -0
  184. package/runtime/agents/execution-loop-builder/templates/loop-readme.md +3 -0
  185. package/runtime/agents/execution-loop-builder/templates/loop-review.md +3 -0
  186. package/runtime/agents/execution-loop-builder/templates/loop-runner.py +2 -0
  187. package/runtime/agents/execution-loop-builder/tests/test_runners.py +274 -0
  188. package/runtime/agents/execution-reviewer/agent.yaml +6 -4
  189. package/runtime/agents/execution-reviewer/capabilities/review-agent-result/capability.yaml +1 -2
  190. package/runtime/agents/execution-reviewer/capabilities/review-final-output/capability.yaml +1 -2
  191. package/runtime/agents/execution-reviewer/capabilities/review-plan/capability.yaml +1 -2
  192. package/runtime/agents/figma-ui-ux-product-designer/agent.yaml +17 -5
  193. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-product-context/capability.yaml +1 -1
  194. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-interview/capability.yaml +1 -1
  195. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-review-session/capability.yaml +1 -1
  196. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-dev-handoff/capability.yaml +1 -1
  197. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-user-journey-diagram/capability.yaml +1 -1
  198. package/runtime/agents/figma-ui-ux-product-designer/capabilities/ingest-design-source/capability.yaml +1 -1
  199. package/runtime/agents/figma-ui-ux-product-designer/capabilities/triage-design-feedback/capability.yaml +1 -1
  200. package/runtime/agents/generic-agent-builder/AGENTS.md +20 -0
  201. package/runtime/agents/generic-agent-builder/README.md +40 -0
  202. package/runtime/agents/generic-agent-builder/agent.yaml +43 -0
  203. package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/capability.yaml +18 -0
  204. package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/decision-rules.md +5 -0
  205. package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/runner.py +33 -0
  206. package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/workflow.md +6 -0
  207. package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/capability.yaml +20 -0
  208. package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/decision-rules.md +6 -0
  209. package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/runner.py +39 -0
  210. package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/workflow.md +7 -0
  211. package/runtime/agents/generic-agent-builder/capabilities/generate-skill/capability.yaml +18 -0
  212. package/runtime/agents/generic-agent-builder/capabilities/generate-skill/decision-rules.md +5 -0
  213. package/runtime/agents/generic-agent-builder/capabilities/generate-skill/runner.py +33 -0
  214. package/runtime/agents/generic-agent-builder/capabilities/generate-skill/workflow.md +5 -0
  215. package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/capability.yaml +18 -0
  216. package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/decision-rules.md +6 -0
  217. package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/runner.py +33 -0
  218. package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/workflow.md +6 -0
  219. package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/capability.yaml +20 -0
  220. package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/decision-rules.md +6 -0
  221. package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/runner.py +40 -0
  222. package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/workflow.md +7 -0
  223. package/runtime/agents/generic-agent-builder/infra/integrations/generic-agent/generic_agent_repository.py +445 -0
  224. package/runtime/agents/generic-agent-builder/knowledge/context.md +11 -0
  225. package/runtime/agents/generic-agent-builder/knowledge/policies.yaml +12 -0
  226. package/runtime/agents/generic-agent-builder/knowledge/system.md +17 -0
  227. package/runtime/agents/generic-agent-builder/templates/generic-agent-instructions.md +17 -0
  228. package/runtime/agents/generic-agent-builder/templates/generic-review-report.md +13 -0
  229. package/runtime/agents/generic-agent-builder/templates/generic-skill.md +14 -0
  230. package/runtime/agents/generic-agent-builder/tests/test_runners.py +220 -0
  231. package/runtime/agents/github-pr-reviewer/agent.yaml +17 -5
  232. package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/capability.yaml +1 -1
  233. package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/capability.yaml +1 -1
  234. package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/capability.yaml +1 -1
  235. package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/capability.yaml +1 -1
  236. package/runtime/agents/knowledge-generator/agent.yaml +13 -3
  237. package/runtime/agents/knowledge-generator/capabilities/generate-knowledge/capability.yaml +1 -1
  238. package/runtime/agents/local-llm-operator/agent.yaml +6 -4
  239. package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/capability.yaml +1 -2
  240. package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/capability.yaml +1 -2
  241. package/runtime/agents/local-llm-operator/capabilities/select-local-worker/capability.yaml +1 -2
  242. package/runtime/agents/n1-support-agent/agent.yaml +40 -1
  243. package/runtime/agents/n2-support-agent/agent.yaml +41 -2
  244. package/runtime/agents/n2-support-agent/knowledge/policies.yaml +2 -2
  245. package/runtime/agents/notification-operator/AGENTS.md +11 -0
  246. package/runtime/agents/notification-operator/README.md +15 -0
  247. package/runtime/agents/notification-operator/agent.yaml +43 -0
  248. package/runtime/agents/notification-operator/capabilities/configure-notification-channel/capability.yaml +19 -0
  249. package/runtime/agents/notification-operator/capabilities/configure-notification-channel/decision-rules.md +6 -0
  250. package/runtime/agents/notification-operator/capabilities/configure-notification-channel/runner.py +33 -0
  251. package/runtime/agents/notification-operator/capabilities/configure-notification-channel/workflow.md +6 -0
  252. package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/capability.yaml +25 -0
  253. package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/decision-rules.md +7 -0
  254. package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/runner.py +49 -0
  255. package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/workflow.md +6 -0
  256. package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/capability.yaml +27 -0
  257. package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/decision-rules.md +6 -0
  258. package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/runner.py +68 -0
  259. package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/workflow.md +7 -0
  260. package/runtime/agents/notification-operator/infra/README.md +6 -0
  261. package/runtime/agents/notification-operator/knowledge/context.md +10 -0
  262. package/runtime/agents/notification-operator/knowledge/policies.yaml +9 -0
  263. package/runtime/agents/notification-operator/knowledge/system.md +7 -0
  264. package/runtime/agents/notification-operator/templates/README.md +6 -0
  265. package/runtime/agents/notification-operator/tests/test_runners.py +108 -0
  266. package/runtime/agents/playwright-automation-builder/AGENTS.md +23 -0
  267. package/runtime/agents/playwright-automation-builder/README.md +43 -0
  268. package/runtime/agents/playwright-automation-builder/agent.yaml +48 -0
  269. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/capability.yaml +20 -0
  270. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/decision-rules.md +6 -0
  271. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/runner.py +38 -0
  272. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/workflow.md +6 -0
  273. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/capability.yaml +18 -0
  274. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/decision-rules.md +6 -0
  275. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/runner.py +32 -0
  276. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/workflow.md +6 -0
  277. package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/capability.yaml +18 -0
  278. package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/decision-rules.md +6 -0
  279. package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/runner.py +32 -0
  280. package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/workflow.md +6 -0
  281. package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/capability.yaml +19 -0
  282. package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/decision-rules.md +6 -0
  283. package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/runner.py +33 -0
  284. package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/workflow.md +6 -0
  285. package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/capability.yaml +22 -0
  286. package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/decision-rules.md +6 -0
  287. package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/runner.py +40 -0
  288. package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/workflow.md +6 -0
  289. package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/capability.yaml +22 -0
  290. package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/decision-rules.md +6 -0
  291. package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/runner.py +42 -0
  292. package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/workflow.md +6 -0
  293. package/runtime/agents/playwright-automation-builder/infra/integrations/playwright-automation/playwright_automation_repository.py +865 -0
  294. package/runtime/agents/playwright-automation-builder/knowledge/context.md +19 -0
  295. package/runtime/agents/playwright-automation-builder/knowledge/policies.yaml +25 -0
  296. package/runtime/agents/playwright-automation-builder/knowledge/system.md +19 -0
  297. package/runtime/agents/playwright-automation-builder/templates/capability-wrapper.md +4 -0
  298. package/runtime/agents/playwright-automation-builder/templates/playwright-automation.py +12 -0
  299. package/runtime/agents/playwright-automation-builder/templates/playwright-readme.md +13 -0
  300. package/runtime/agents/playwright-automation-builder/templates/playwright-review-report.md +9 -0
  301. package/runtime/agents/playwright-automation-builder/templates/playwright-test.py +2 -0
  302. package/runtime/agents/playwright-automation-builder/tests/test_runners.py +261 -0
  303. package/runtime/agents/postgres-data-analyzer/agent.yaml +13 -2
  304. package/runtime/agents/presentation-deck-builder/agent.yaml +14 -3
  305. package/runtime/agents/presentation-deck-builder/capabilities/create-template/capability.yaml +1 -1
  306. package/runtime/agents/presentation-deck-builder/capabilities/create-template-version/capability.yaml +1 -1
  307. package/runtime/agents/presentation-deck-builder/capabilities/generate-template-input-file/capability.yaml +1 -1
  308. package/runtime/agents/presentation-deck-builder/capabilities/refine-template/capability.yaml +1 -1
  309. package/runtime/agents/presentation-deck-builder/capabilities/register-template/capability.yaml +1 -1
  310. package/runtime/agents/presentation-deck-builder/knowledge/prompts/create-template.md +1 -1
  311. package/runtime/agents/presentation-deck-builder/knowledge/prompts/generate-template-input-file.md +1 -1
  312. package/runtime/agents/provider-configurator/agent.yaml +6 -4
  313. package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/capability.yaml +1 -2
  314. package/runtime/agents/provider-configurator/capabilities/configure-provider-source/capability.yaml +1 -2
  315. package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/capability.yaml +1 -2
  316. package/runtime/agents/pyautogui-automation-builder/AGENTS.md +32 -0
  317. package/runtime/agents/pyautogui-automation-builder/README.md +44 -0
  318. package/runtime/agents/pyautogui-automation-builder/agent.yaml +45 -0
  319. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/capability.yaml +20 -0
  320. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/decision-rules.md +6 -0
  321. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/runner.py +39 -0
  322. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/workflow.md +7 -0
  323. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/capability.yaml +18 -0
  324. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/decision-rules.md +7 -0
  325. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/runner.py +33 -0
  326. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/workflow.md +7 -0
  327. package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/capability.yaml +18 -0
  328. package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/decision-rules.md +8 -0
  329. package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/runner.py +33 -0
  330. package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/workflow.md +9 -0
  331. package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/capability.yaml +20 -0
  332. package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/decision-rules.md +8 -0
  333. package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/runner.py +43 -0
  334. package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/workflow.md +7 -0
  335. package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/capability.yaml +22 -0
  336. package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/decision-rules.md +6 -0
  337. package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/runner.py +43 -0
  338. package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/workflow.md +7 -0
  339. package/runtime/agents/pyautogui-automation-builder/infra/integrations/pyautogui-automation/pyautogui_automation_repository.py +856 -0
  340. package/runtime/agents/pyautogui-automation-builder/knowledge/context.md +17 -0
  341. package/runtime/agents/pyautogui-automation-builder/knowledge/policies.yaml +24 -0
  342. package/runtime/agents/pyautogui-automation-builder/knowledge/system.md +13 -0
  343. package/runtime/agents/pyautogui-automation-builder/templates/capability-wrapper.md +3 -0
  344. package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-automation.py +12 -0
  345. package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-readme.md +3 -0
  346. package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-review-report.md +3 -0
  347. package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-test.py +2 -0
  348. package/runtime/agents/pyautogui-automation-builder/tests/test_runners.py +376 -0
  349. package/runtime/agents/python-automation-builder/AGENTS.md +25 -0
  350. package/runtime/agents/python-automation-builder/README.md +43 -0
  351. package/runtime/agents/python-automation-builder/agent.yaml +45 -0
  352. package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/capability.yaml +20 -0
  353. package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/decision-rules.md +6 -0
  354. package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/runner.py +39 -0
  355. package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/workflow.md +7 -0
  356. package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/capability.yaml +18 -0
  357. package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/decision-rules.md +5 -0
  358. package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/runner.py +33 -0
  359. package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/workflow.md +5 -0
  360. package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/capability.yaml +18 -0
  361. package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/decision-rules.md +6 -0
  362. package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/runner.py +33 -0
  363. package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/workflow.md +6 -0
  364. package/runtime/agents/python-automation-builder/capabilities/review-python-automation/capability.yaml +20 -0
  365. package/runtime/agents/python-automation-builder/capabilities/review-python-automation/decision-rules.md +6 -0
  366. package/runtime/agents/python-automation-builder/capabilities/review-python-automation/runner.py +43 -0
  367. package/runtime/agents/python-automation-builder/capabilities/review-python-automation/workflow.md +5 -0
  368. package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/capability.yaml +22 -0
  369. package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/decision-rules.md +6 -0
  370. package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/runner.py +43 -0
  371. package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/workflow.md +6 -0
  372. package/runtime/agents/python-automation-builder/infra/integrations/python-automation/python_automation_repository.py +717 -0
  373. package/runtime/agents/python-automation-builder/knowledge/context.md +15 -0
  374. package/runtime/agents/python-automation-builder/knowledge/policies.yaml +12 -0
  375. package/runtime/agents/python-automation-builder/knowledge/system.md +19 -0
  376. package/runtime/agents/python-automation-builder/templates/automation-readme.md +13 -0
  377. package/runtime/agents/python-automation-builder/templates/automation-review-report.md +13 -0
  378. package/runtime/agents/python-automation-builder/templates/automation-test.py +9 -0
  379. package/runtime/agents/python-automation-builder/templates/automation.py +19 -0
  380. package/runtime/agents/python-automation-builder/templates/capability-wrapper.md +4 -0
  381. package/runtime/agents/python-automation-builder/tests/test_runners.py +292 -0
  382. package/runtime/agents/selenium-automation-builder/AGENTS.md +27 -0
  383. package/runtime/agents/selenium-automation-builder/README.md +40 -0
  384. package/runtime/agents/selenium-automation-builder/agent.yaml +45 -0
  385. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/capability.yaml +20 -0
  386. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/decision-rules.md +6 -0
  387. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/runner.py +39 -0
  388. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/workflow.md +7 -0
  389. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/capability.yaml +18 -0
  390. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/decision-rules.md +6 -0
  391. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/runner.py +33 -0
  392. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/workflow.md +6 -0
  393. package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/capability.yaml +18 -0
  394. package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/decision-rules.md +6 -0
  395. package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/runner.py +33 -0
  396. package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/workflow.md +6 -0
  397. package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/capability.yaml +20 -0
  398. package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/decision-rules.md +6 -0
  399. package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/runner.py +40 -0
  400. package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/workflow.md +6 -0
  401. package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/capability.yaml +22 -0
  402. package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/decision-rules.md +6 -0
  403. package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/runner.py +43 -0
  404. package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/workflow.md +6 -0
  405. package/runtime/agents/selenium-automation-builder/infra/integrations/selenium-automation/selenium_automation_repository.py +793 -0
  406. package/runtime/agents/selenium-automation-builder/knowledge/context.md +15 -0
  407. package/runtime/agents/selenium-automation-builder/knowledge/policies.yaml +17 -0
  408. package/runtime/agents/selenium-automation-builder/knowledge/system.md +18 -0
  409. package/runtime/agents/selenium-automation-builder/templates/capability-wrapper.md +4 -0
  410. package/runtime/agents/selenium-automation-builder/templates/selenium-automation.py +20 -0
  411. package/runtime/agents/selenium-automation-builder/templates/selenium-readme.md +13 -0
  412. package/runtime/agents/selenium-automation-builder/templates/selenium-review-report.md +13 -0
  413. package/runtime/agents/selenium-automation-builder/templates/selenium-test.py +9 -0
  414. package/runtime/agents/selenium-automation-builder/tests/test_runners.py +282 -0
  415. package/runtime/agents/software-specification-analyst/agent.yaml +17 -4
  416. package/runtime/agents/software-specification-analyst/capabilities/analyze-multiple-projects/capability.yaml +1 -1
  417. package/runtime/agents/software-specification-analyst/capabilities/analyze-project-context/capability.yaml +1 -1
  418. package/runtime/agents/software-specification-analyst/capabilities/conduct-requirements-interview/capability.yaml +1 -1
  419. package/runtime/agents/software-specification-analyst/capabilities/create-complete-spec/capability.yaml +1 -1
  420. package/runtime/agents/software-specification-analyst/capabilities/create-final-spec-from-analysis/capability.yaml +1 -1
  421. package/runtime/agents/software-specification-analyst/capabilities/create-functional-spec/capability.yaml +11 -0
  422. package/runtime/agents/software-specification-analyst/capabilities/create-technical-spec/capability.yaml +12 -0
  423. package/runtime/agents/software-specification-analyst/capabilities/refine-analysis-with-feedback/capability.yaml +1 -1
  424. package/runtime/agents/software-specification-analyst/capabilities/write-user-stories/capability.yaml +12 -0
  425. package/runtime/agents/sqlserver-change-operator/agent.yaml +12 -1
  426. package/runtime/agents/sqlserver-data-analyzer/agent.yaml +13 -2
  427. package/runtime/agents/supabase-project-analyst/AGENTS.md +29 -0
  428. package/runtime/agents/supabase-project-analyst/README.md +23 -0
  429. package/runtime/agents/supabase-project-analyst/agent.yaml +53 -0
  430. package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/capability.yaml +18 -0
  431. package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/decision-rules.md +5 -0
  432. package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/runner.py +32 -0
  433. package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/workflow.md +6 -0
  434. package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/capability.yaml +18 -0
  435. package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/decision-rules.md +6 -0
  436. package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/runner.py +32 -0
  437. package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/workflow.md +7 -0
  438. package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/capability.yaml +18 -0
  439. package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/decision-rules.md +5 -0
  440. package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/runner.py +32 -0
  441. package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/workflow.md +6 -0
  442. package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/capability.yaml +18 -0
  443. package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/decision-rules.md +6 -0
  444. package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/runner.py +32 -0
  445. package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/workflow.md +6 -0
  446. package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/capability.yaml +19 -0
  447. package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/decision-rules.md +6 -0
  448. package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/runner.py +36 -0
  449. package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/workflow.md +7 -0
  450. package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/capability.yaml +18 -0
  451. package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/decision-rules.md +6 -0
  452. package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/runner.py +32 -0
  453. package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/workflow.md +6 -0
  454. package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/capability.yaml +18 -0
  455. package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/decision-rules.md +6 -0
  456. package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/runner.py +32 -0
  457. package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/workflow.md +5 -0
  458. package/runtime/agents/supabase-project-analyst/infra/integrations/supabase-project/supabase_project_repository.py +589 -0
  459. package/runtime/agents/supabase-project-analyst/knowledge/context.md +11 -0
  460. package/runtime/agents/supabase-project-analyst/knowledge/policies.yaml +24 -0
  461. package/runtime/agents/supabase-project-analyst/knowledge/system.md +10 -0
  462. package/runtime/agents/supabase-project-analyst/templates/supabase-audit.md +3 -0
  463. package/runtime/agents/supabase-project-analyst/templates/supabase-fix-plan.md +3 -0
  464. package/runtime/agents/supabase-project-analyst/templates/supabase-inspection.md +3 -0
  465. package/runtime/agents/supabase-project-analyst/templates/supabase-report.md +3 -0
  466. package/runtime/agents/supabase-project-analyst/tests/test_runners.py +239 -0
  467. package/runtime/agents/task-orchestrator/agent.yaml +25 -3
  468. package/runtime/agents/task-orchestrator/capabilities/plan-task/capability.yaml +1 -2
  469. package/runtime/agents/task-orchestrator/capabilities/select-specialists/capability.yaml +1 -2
  470. package/runtime/agents/technical-integration-analyst/agent.yaml +15 -2
  471. package/runtime/agents/topdesk-orchestrator/agent.yaml +10 -2
  472. package/runtime/cli/aikit/__init__.py +1 -1
  473. package/runtime/cli/aikit/acceptance.py +166 -0
  474. package/runtime/cli/aikit/agent_executor.py +26 -3
  475. package/runtime/cli/aikit/agent_registry.py +244 -5
  476. package/runtime/cli/aikit/architecture.py +84 -0
  477. package/runtime/cli/aikit/audit.py +172 -3
  478. package/runtime/cli/aikit/autonomy.py +237 -0
  479. package/runtime/cli/aikit/capability_runtime.py +522 -0
  480. package/runtime/cli/aikit/catalog.py +246 -0
  481. package/runtime/cli/aikit/cli_dispatch.py +1078 -0
  482. package/runtime/cli/aikit/cli_parser.py +409 -0
  483. package/runtime/cli/aikit/collaboration.py +359 -0
  484. package/runtime/cli/aikit/configuration_orchestrator.py +52 -26
  485. package/runtime/cli/aikit/contribution.py +105 -0
  486. package/runtime/cli/aikit/core/__init__.py +1 -0
  487. package/runtime/cli/aikit/core/capability_contract.py +112 -0
  488. package/runtime/cli/aikit/core/requests.py +69 -0
  489. package/runtime/cli/aikit/core/runtime.py +64 -0
  490. package/runtime/cli/aikit/diagnostics.py +8 -2
  491. package/runtime/cli/aikit/doctor_runtime.py +79 -0
  492. package/runtime/cli/aikit/errors.py +7 -0
  493. package/runtime/cli/aikit/eval.py +158 -0
  494. package/runtime/cli/aikit/execution_reviewer.py +21 -0
  495. package/runtime/cli/aikit/extensions.py +140 -0
  496. package/runtime/cli/aikit/fallback.py +1 -0
  497. package/runtime/cli/aikit/github_pr.py +23 -0
  498. package/runtime/cli/aikit/guardrails.py +25 -10
  499. package/runtime/cli/aikit/human_output.py +1026 -0
  500. package/runtime/cli/aikit/impact_map.py +294 -0
  501. package/runtime/cli/aikit/interactive_wizard.py +79 -0
  502. package/runtime/cli/aikit/local_llm_operator.py +35 -1
  503. package/runtime/cli/aikit/main.py +9 -2834
  504. package/runtime/cli/aikit/mcp_manifest.py +229 -0
  505. package/runtime/cli/aikit/mcp_server.py +132 -0
  506. package/runtime/cli/aikit/mcp_tools.py +262 -0
  507. package/runtime/cli/aikit/mini_brain.py +227 -0
  508. package/runtime/cli/aikit/model_router.py +182 -18
  509. package/runtime/cli/aikit/module_controller.py +335 -0
  510. package/runtime/cli/aikit/natural_prompt_runtime.py +538 -0
  511. package/runtime/cli/aikit/notifications.py +716 -2
  512. package/runtime/cli/aikit/ollama.py +1 -0
  513. package/runtime/cli/aikit/orchestrator.py +809 -119
  514. package/runtime/cli/aikit/output.py +63 -2
  515. package/runtime/cli/aikit/permissions.py +14 -4
  516. package/runtime/cli/aikit/prompt_injection.py +57 -0
  517. package/runtime/cli/aikit/review_gate.py +38 -6
  518. package/runtime/cli/aikit/roadmap.py +195 -0
  519. package/runtime/cli/aikit/roadmap_cli.py +70 -0
  520. package/runtime/cli/aikit/router.py +41 -12
  521. package/runtime/cli/aikit/router_explain.py +152 -0
  522. package/runtime/cli/aikit/runtime_paths.py +11 -0
  523. package/runtime/cli/aikit/secrets.py +113 -0
  524. package/runtime/cli/aikit/sessions.py +88 -2
  525. package/runtime/cli/aikit/setup_wizard_payload.py +32 -0
  526. package/runtime/cli/aikit/sources.py +298 -50
  527. package/runtime/cli/aikit/tasks.py +449 -21
  528. package/runtime/cli/aikit/wizard_state.py +15 -1
  529. package/runtime/cli/aikit/workflows.py +115 -0
  530. package/runtime/cli/aikit/write_policy.py +108 -0
  531. package/runtime/plugins/claude-code-ai-devkit/README.md +17 -0
  532. package/runtime/plugins/claude-code-ai-devkit/agents/README.md +29 -2
  533. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-db-analyst.md +44 -0
  534. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-execution-reviewer.md +38 -0
  535. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-pr-reviewer.md +42 -0
  536. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-repo-explorer.md +40 -0
  537. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-support-triage.md +43 -0
  538. package/runtime/plugins/claude-code-ai-devkit/plugin.json +1 -1
  539. package/runtime/plugins/claude-code-ai-devkit/skills/ai-devkit-router/SKILL.md +16 -0
  540. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/SKILL.md +1 -0
  541. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/subagents.md +21 -0
  542. package/runtime/plugins/claude-skill-ai-devkit/plugin.json +1 -1
  543. package/runtime/providers/azure-devops.yaml +9 -0
  544. package/runtime/providers/github.yaml +4 -0
  545. package/runtime/providers/local-notification.yaml +5 -2
  546. package/runtime/providers/local-scheduler.yaml +1 -1
  547. package/runtime/providers/supabase.yaml +46 -0
  548. package/runtime/scripts/release-catalog-snapshot.json +543 -0
  549. package/runtime/scripts/release-gate.py +141 -1
  550. package/runtime/scripts/validate-repo.py +312 -0
  551. package/runtime/vendor/skills/napkin/napkin.md +15 -9
@@ -0,0 +1,15 @@
1
+ # Context
2
+
3
+ Automacoes Python no Agent DevKit existem para poupar contexto de LLM em tarefas
4
+ conhecidas e repetitivas. Elas devem ser pequenas, auditaveis e facilmente
5
+ convertidas em capabilities quando se tornam parte do produto.
6
+
7
+ Classificacao de idempotencia:
8
+
9
+ - `safe-repeat`: pode rodar varias vezes sem novo efeito colateral.
10
+ - `creates-artifact`: cria arquivo novo ou versionado.
11
+ - `updates-local`: altera estado local.
12
+ - `external-write`: altera sistema externo.
13
+ - `destructive`: apaga ou sobrescreve dados.
14
+
15
+ Essa classificacao orienta dry-run, confirmacao e `write_policy`.
@@ -0,0 +1,12 @@
1
+ policies:
2
+ supported_scope: python-general-automation
3
+ out_of_scope_dependencies:
4
+ selenium: problem 16
5
+ pyautogui: problem 17
6
+ playwright: problem 27
7
+ default_write_mode: dry_run
8
+ external_side_effects: blocked_by_default
9
+ secrets: never_persist
10
+ target_project_boundary: required_for_writes
11
+ overwrite: blocked_without_explicit_permission
12
+ dependency_preference: standard_library_first
@@ -0,0 +1,19 @@
1
+ # System
2
+
3
+ Voce e o `python-automation-builder`, especialista em automacoes Python
4
+ deterministicas.
5
+
6
+ Seu trabalho e transformar uma tarefa repetitiva em um artefato executavel,
7
+ seguro e revisavel. Toda automacao deve ter contrato de entrada/saida,
8
+ `--dry-run`, confirmacao para side effects, logs claros, exit codes previsiveis
9
+ e ausencia de segredo hardcoded.
10
+
11
+ ## Regras Principais
12
+
13
+ - Planeje antes de gerar codigo.
14
+ - Prefira standard library.
15
+ - Bloqueie segredo, token, URL privada e dependencia fora do escopo deste
16
+ agente.
17
+ - Nao gere Selenium, PyAutoGUI ou Playwright aqui.
18
+ - Nao execute a automacao gerada.
19
+ - Nao escreva fora do `target_project`.
@@ -0,0 +1,13 @@
1
+ # Automation README
2
+
3
+ ## Uso
4
+
5
+ ```bash
6
+ python automation.py --dry-run
7
+ ```
8
+
9
+ ## Guardrails
10
+
11
+ - Sem segredo hardcoded.
12
+ - Dry-run por padrao.
13
+ - Escrita real exige confirmacao.
@@ -0,0 +1,13 @@
1
+ # Python Automation Review
2
+
3
+ ## Resultado
4
+
5
+ - Status:
6
+
7
+ ## Findings
8
+
9
+ -
10
+
11
+ ## Riscos
12
+
13
+ -
@@ -0,0 +1,9 @@
1
+ import subprocess
2
+ import sys
3
+ from pathlib import Path
4
+
5
+
6
+ def test_automation_dry_run():
7
+ script = Path(__file__).resolve().parents[1] / "automation.py"
8
+ result = subprocess.run([sys.executable, str(script), "--dry-run"], text=True, capture_output=True)
9
+ assert result.returncode == 0
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env python3
2
+ """Generated Python automation template."""
3
+
4
+ import argparse
5
+ import logging
6
+ import sys
7
+
8
+
9
+ def main() -> int:
10
+ parser = argparse.ArgumentParser()
11
+ parser.add_argument("--dry-run", action="store_true", default=True)
12
+ args = parser.parse_args()
13
+ logging.basicConfig(level=logging.INFO, format="%(levelname)s %(message)s")
14
+ logging.info("dry_run=%s", args.dry_run)
15
+ return 0
16
+
17
+
18
+ if __name__ == "__main__":
19
+ raise SystemExit(main())
@@ -0,0 +1,4 @@
1
+ # Capability Wrapper
2
+
3
+ Arquivos planejados para empacotar uma automacao Python como capability do
4
+ Agent DevKit.
@@ -0,0 +1,292 @@
1
+ #!/usr/bin/env python3
2
+ """Tests for the Python Automation Builder runners."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import importlib.util
7
+ import json
8
+ import py_compile
9
+ import subprocess
10
+ import sys
11
+ import tempfile
12
+ import unittest
13
+ from pathlib import Path
14
+
15
+
16
+ ROOT = Path(__file__).resolve().parents[3]
17
+ AGENT = ROOT / "agent"
18
+ AGENT_DIR = ROOT / "agents" / "python-automation-builder"
19
+ REPOSITORY_PATH = AGENT_DIR / "infra" / "integrations" / "python-automation" / "python_automation_repository.py"
20
+
21
+
22
+ def load_repository_module():
23
+ spec = importlib.util.spec_from_file_location("python_automation_repository", REPOSITORY_PATH)
24
+ if spec is None or spec.loader is None:
25
+ raise RuntimeError(f"cannot load repository from {REPOSITORY_PATH}")
26
+ module = importlib.util.module_from_spec(spec)
27
+ spec.loader.exec_module(module)
28
+ return module
29
+
30
+
31
+ class PythonAutomationBuilderRunnersTest(unittest.TestCase):
32
+ def setUp(self) -> None:
33
+ self.repository_module = load_repository_module()
34
+
35
+ def write_spec(
36
+ self,
37
+ root: Path,
38
+ *,
39
+ automation_name: str = "Report Cleanup",
40
+ target_project: Path | None = None,
41
+ dependencies: list[str] | None = None,
42
+ side_effects: str = "updates-local",
43
+ purpose: str = "Clean old generated reports and summarize the affected files.",
44
+ systems: str = "local filesystem",
45
+ ) -> Path:
46
+ path = root / "automation-spec.yaml"
47
+ target_project_line = f"target_project: {target_project}\n" if target_project else ""
48
+ dependency_lines = "\n".join(f" - {item}" for item in (dependencies or []))
49
+ if not dependency_lines:
50
+ dependency_lines = " - pathlib"
51
+ path.write_text(
52
+ f"""
53
+ automation_name: {automation_name}
54
+ {target_project_line}purpose: {purpose}
55
+ inputs:
56
+ - reports_dir
57
+ outputs:
58
+ - summary_json
59
+ systems:
60
+ - {systems}
61
+ frequency: daily
62
+ risk: medium
63
+ target_environment: local workstation
64
+ side_effects: {side_effects}
65
+ dependencies:
66
+ {dependency_lines}
67
+ quality_gates:
68
+ - dry-run lists affected paths
69
+ - exit codes are predictable
70
+ """.lstrip(),
71
+ encoding="utf-8",
72
+ )
73
+ return path
74
+
75
+ def test_plan_python_automation_returns_plan_without_writing(self) -> None:
76
+ with tempfile.TemporaryDirectory() as tmpdir:
77
+ root = Path(tmpdir)
78
+ spec_path = self.write_spec(root)
79
+ repository = self.repository_module.PythonAutomationRepository(root=root)
80
+
81
+ result = repository.plan_python_automation(spec_path=spec_path)
82
+
83
+ self.assertEqual(result["status"], "ok")
84
+ self.assertEqual(result["automation"]["slug"], "report-cleanup")
85
+ self.assertEqual(result["idempotency"], "updates-local")
86
+ self.assertEqual(result["write_policy"], "read_only")
87
+ planned_paths = {item["path"] for item in result["planned_artifacts"]}
88
+ self.assertIn("automation.py", planned_paths)
89
+ self.assertFalse((root / "automation.py").exists())
90
+
91
+ def test_plan_python_automation_reports_needs_input(self) -> None:
92
+ with tempfile.TemporaryDirectory() as tmpdir:
93
+ root = Path(tmpdir)
94
+ spec_path = root / "automation-spec.yaml"
95
+ spec_path.write_text("automation_name: incomplete\n", encoding="utf-8")
96
+ repository = self.repository_module.PythonAutomationRepository(root=root)
97
+
98
+ result = repository.plan_python_automation(spec_path=spec_path)
99
+
100
+ self.assertEqual(result["status"], "needs-input")
101
+ self.assertGreaterEqual(
102
+ set(result["missing_fields"]),
103
+ {"purpose", "inputs", "outputs", "systems", "side_effects"},
104
+ )
105
+
106
+ def test_plan_blocks_secret_marker(self) -> None:
107
+ with tempfile.TemporaryDirectory() as tmpdir:
108
+ root = Path(tmpdir)
109
+ spec_path = self.write_spec(root, purpose="Use API_KEY=abc to call the service.")
110
+ repository = self.repository_module.PythonAutomationRepository(root=root)
111
+
112
+ result = repository.plan_python_automation(spec_path=spec_path)
113
+
114
+ self.assertEqual(result["status"], "blocked")
115
+ self.assertEqual(result["reason"], "forbidden_sensitive_marker")
116
+
117
+ def test_plan_routes_browser_desktop_dependencies_out_of_scope(self) -> None:
118
+ with tempfile.TemporaryDirectory() as tmpdir:
119
+ root = Path(tmpdir)
120
+ spec_path = self.write_spec(root, dependencies=["selenium"])
121
+ repository = self.repository_module.PythonAutomationRepository(root=root)
122
+
123
+ result = repository.plan_python_automation(spec_path=spec_path)
124
+
125
+ self.assertEqual(result["status"], "blocked")
126
+ self.assertEqual(result["reason"], "out_of_scope_dependency")
127
+ self.assertIn("problem 16", " ".join(result["next_steps"]).lower())
128
+
129
+ def test_generate_python_automation_returns_script_without_writing(self) -> None:
130
+ with tempfile.TemporaryDirectory() as tmpdir:
131
+ root = Path(tmpdir)
132
+ spec_path = self.write_spec(root)
133
+ repository = self.repository_module.PythonAutomationRepository(root=root)
134
+
135
+ result = repository.generate_python_automation(spec_path=spec_path)
136
+
137
+ self.assertEqual(result["status"], "ok")
138
+ content = result["content"]
139
+ self.assertIn("argparse", content)
140
+ self.assertIn("--dry-run", content)
141
+ self.assertIn("--execute", content)
142
+ self.assertIn("--yes", content)
143
+ self.assertIn("redact", content)
144
+ self.assertIn("return 0", content)
145
+ self.assertFalse((root / "automation.py").exists())
146
+
147
+ def test_generate_automation_project_files_dry_run_does_not_write(self) -> None:
148
+ with tempfile.TemporaryDirectory() as tmpdir:
149
+ root = Path(tmpdir)
150
+ target_project = root / "target-project"
151
+ target_project.mkdir()
152
+ spec_path = self.write_spec(root, target_project=target_project)
153
+ repository = self.repository_module.PythonAutomationRepository(root=root)
154
+
155
+ result = repository.generate_automation_project_files(spec_path=spec_path)
156
+
157
+ self.assertEqual(result["status"], "planned")
158
+ self.assertTrue(result["dry_run"])
159
+ planned_paths = {item["path"] for item in result["planned_files"]}
160
+ self.assertGreaterEqual(
161
+ planned_paths,
162
+ {
163
+ "report-cleanup/automation.py",
164
+ "report-cleanup/README.md",
165
+ "report-cleanup/tests/test_automation.py",
166
+ },
167
+ )
168
+ self.assertFalse((target_project / "report-cleanup").exists())
169
+
170
+ def test_generate_automation_project_files_execute_writes_inside_target_project(self) -> None:
171
+ with tempfile.TemporaryDirectory() as tmpdir:
172
+ root = Path(tmpdir)
173
+ target_project = root / "target-project"
174
+ target_project.mkdir()
175
+ spec_path = self.write_spec(root, target_project=target_project)
176
+ repository = self.repository_module.PythonAutomationRepository(root=root)
177
+
178
+ result = repository.generate_automation_project_files(spec_path=spec_path, execute=True)
179
+
180
+ self.assertEqual(result["status"], "written")
181
+ self.assertTrue((target_project / "report-cleanup" / "automation.py").exists())
182
+ for item in result["written_files"]:
183
+ path = Path(item["path"]).resolve()
184
+ self.assertTrue(path.is_relative_to(target_project.resolve()), item["path"])
185
+
186
+ def test_generate_automation_project_files_blocks_overwrite_without_permission(self) -> None:
187
+ with tempfile.TemporaryDirectory() as tmpdir:
188
+ root = Path(tmpdir)
189
+ target_project = root / "target-project"
190
+ target_project.mkdir()
191
+ spec_path = self.write_spec(root, target_project=target_project)
192
+ repository = self.repository_module.PythonAutomationRepository(root=root)
193
+ repository.generate_automation_project_files(spec_path=spec_path, execute=True)
194
+
195
+ result = repository.generate_automation_project_files(spec_path=spec_path, execute=True)
196
+
197
+ self.assertEqual(result["status"], "blocked")
198
+ self.assertEqual(result["reason"], "target_exists")
199
+
200
+ def test_review_python_automation_detects_missing_dry_run(self) -> None:
201
+ repository = self.repository_module.PythonAutomationRepository(root=ROOT)
202
+
203
+ result = repository.review_python_automation(text="print('hello')", side_effects="updates-local")
204
+
205
+ self.assertFalse(result["valid"])
206
+ self.assertEqual(result["status"], "failed")
207
+ self.assertTrue(any("dry-run" in finding.lower() for finding in result["findings"]))
208
+
209
+ def test_review_python_automation_accepts_generated_script(self) -> None:
210
+ with tempfile.TemporaryDirectory() as tmpdir:
211
+ root = Path(tmpdir)
212
+ spec_path = self.write_spec(root)
213
+ repository = self.repository_module.PythonAutomationRepository(root=root)
214
+ script = repository.generate_python_automation(spec_path=spec_path)["content"]
215
+
216
+ result = repository.review_python_automation(text=script, side_effects="updates-local")
217
+
218
+ self.assertTrue(result["valid"], result["findings"])
219
+ self.assertEqual(result["findings"], [])
220
+
221
+ def test_wrap_automation_as_capability_dry_run_does_not_write(self) -> None:
222
+ with tempfile.TemporaryDirectory() as tmpdir:
223
+ root = Path(tmpdir)
224
+ target_project = root / "target-project"
225
+ target_project.mkdir()
226
+ spec_path = self.write_spec(root, target_project=target_project)
227
+ repository = self.repository_module.PythonAutomationRepository(root=root)
228
+
229
+ result = repository.wrap_automation_as_capability(
230
+ spec_path=spec_path,
231
+ agent_id="operations-agent",
232
+ capability_id="report-cleanup",
233
+ )
234
+
235
+ self.assertEqual(result["status"], "planned")
236
+ self.assertTrue(result["dry_run"])
237
+ planned_paths = {item["path"] for item in result["planned_files"]}
238
+ self.assertIn("agents/operations-agent/capabilities/report-cleanup/runner.py", planned_paths)
239
+ self.assertFalse((target_project / "agents").exists())
240
+
241
+ def test_wrap_automation_as_capability_execute_writes_compilable_runner(self) -> None:
242
+ with tempfile.TemporaryDirectory() as tmpdir:
243
+ root = Path(tmpdir)
244
+ target_project = root / "target-project"
245
+ target_project.mkdir()
246
+ spec_path = self.write_spec(root, target_project=target_project)
247
+ repository = self.repository_module.PythonAutomationRepository(root=root)
248
+
249
+ result = repository.wrap_automation_as_capability(
250
+ spec_path=spec_path,
251
+ agent_id="operations-agent",
252
+ capability_id="report-cleanup",
253
+ execute=True,
254
+ )
255
+
256
+ self.assertEqual(result["status"], "written")
257
+ runner = target_project / "agents" / "operations-agent" / "capabilities" / "report-cleanup" / "runner.py"
258
+ self.assertTrue(runner.exists())
259
+ py_compile.compile(str(runner), doraise=True)
260
+
261
+ def test_plan_python_automation_runner_is_executable_through_agent_cli(self) -> None:
262
+ with tempfile.TemporaryDirectory() as tmpdir:
263
+ spec_path = self.write_spec(Path(tmpdir))
264
+
265
+ result = subprocess.run(
266
+ [
267
+ sys.executable,
268
+ str(AGENT),
269
+ "--json",
270
+ "run",
271
+ "python-automation-builder",
272
+ "plan-python-automation",
273
+ "--spec",
274
+ str(spec_path),
275
+ ],
276
+ cwd=ROOT,
277
+ check=False,
278
+ text=True,
279
+ stdout=subprocess.PIPE,
280
+ stderr=subprocess.PIPE,
281
+ timeout=60,
282
+ )
283
+
284
+ self.assertEqual(result.returncode, 0, result.stderr or result.stdout)
285
+ payload = json.loads(result.stdout)
286
+ runner_payload = json.loads(payload["stdout"])
287
+ self.assertEqual(runner_payload["status"], "ok")
288
+ self.assertEqual(runner_payload["automation"]["slug"], "report-cleanup")
289
+
290
+
291
+ if __name__ == "__main__":
292
+ unittest.main()
@@ -0,0 +1,27 @@
1
+ # Selenium Automation Builder
2
+
3
+ Instrucoes locais para trabalhar no agente `selenium-automation-builder`.
4
+
5
+ ## Responsabilidade
6
+
7
+ Este agente planeja, gera e revisa automacoes Selenium/WebDriver quando houver
8
+ motivo tecnico para preferir Selenium a Playwright: legado, Selenium Grid,
9
+ browser remoto corporativo, requisito WebDriver, extensoes de browser ou padrao
10
+ de equipe existente.
11
+
12
+ ## Fora De Escopo
13
+
14
+ - Playwright moderno e validacao visual rica: problema 27.
15
+ - Automacao desktop com PyAutoGUI: problema 17.
16
+ - Criar Selenium Grid ou instalar browsers/drivers.
17
+ - Executar automacao real em browser durante geracao.
18
+
19
+ ## Guardrails
20
+
21
+ - Exigir justificativa explicita para Selenium.
22
+ - Usar waits explicitos com `WebDriverWait`.
23
+ - Evitar `time.sleep` como mecanismo principal.
24
+ - Gerar dry-run por padrao para side effects.
25
+ - Exigir confirmacao para submissao, escrita externa ou acao destrutiva.
26
+ - Capturar screenshot em falha.
27
+ - Nao hardcodar credenciais.
@@ -0,0 +1,40 @@
1
+ # Selenium Automation Builder
2
+
3
+ Agente especialista para automacoes Selenium/WebDriver seguras e revisaveis.
4
+
5
+ ## Capabilities
6
+
7
+ - `plan-selenium-automation`: planeja automacao Selenium sem escrever arquivos.
8
+ - `generate-selenium-script`: gera script Python Selenium em modo output-only.
9
+ - `generate-selenium-project-files`: planeja ou grava pacote local com dry-run
10
+ por padrao.
11
+ - `review-selenium-script`: revisa waits, seletores, screenshots, timeouts,
12
+ credenciais e side effects.
13
+ - `wrap-selenium-as-capability`: gera wrapper de capability em dry-run por
14
+ padrao.
15
+
16
+ ## Contrato
17
+
18
+ ```yaml
19
+ automation_name: Legacy Login Check
20
+ purpose: Check a legacy login page through WebDriver-compatible browser automation.
21
+ target_url: https://example.test/login
22
+ browser: chrome
23
+ remote_url_env: SELENIUM_REMOTE_URL
24
+ auth_strategy: env
25
+ side_effects: read-only
26
+ selenium_reasons:
27
+ - webdriver-required
28
+ selectors:
29
+ - name: username
30
+ by: css
31
+ value: '[name="username"]'
32
+ steps:
33
+ - open target_url
34
+ - wait for username
35
+ ```
36
+
37
+ ## Limites
38
+
39
+ Este agente nao instala Selenium, browsers ou drivers. Ele gera artefatos
40
+ revisaveis e scripts que fazem dry-run sem abrir browser.
@@ -0,0 +1,45 @@
1
+ id: selenium-automation-builder
2
+ kind: specialist-agent
3
+ name: Selenium Automation Builder
4
+ version: 0.1.0
5
+ status: draft
6
+ owner: agent-devkit
7
+ purpose: >
8
+ Planejar, gerar, revisar e empacotar automacoes Selenium/WebDriver quando
9
+ houver requisito tecnico para usar Selenium em vez de Playwright.
10
+ default_context:
11
+ - knowledge/system.md
12
+ - knowledge/context.md
13
+ - knowledge/policies.yaml
14
+ env:
15
+ required: []
16
+ optional: []
17
+ capabilities:
18
+ - plan-selenium-automation
19
+ - generate-selenium-script
20
+ - generate-selenium-project-files
21
+ - review-selenium-script
22
+ - wrap-selenium-as-capability
23
+ agent_surface:
24
+ repositories:
25
+ - infra/integrations/selenium-automation/selenium_automation_repository.py
26
+ policies:
27
+ - knowledge/policies.yaml
28
+ write_policy:
29
+ planning: read_only
30
+ generation: output_only
31
+ project_files: local_write
32
+ review: read_only
33
+ capability_wrapper: local_write
34
+ external_side_effects: blocked_by_default
35
+ routing:
36
+ anchors:
37
+ - selenium-automation-builder
38
+ - selenium
39
+ - webdriver
40
+ - selenium-grid
41
+ intents:
42
+ - selenium-automation.plan
43
+ - selenium-automation.generate
44
+ - selenium-automation.review
45
+ priority: 50
@@ -0,0 +1,20 @@
1
+ id: selenium-automation-builder.generate-selenium-project-files
2
+ kind: capability
3
+ name: Generate Selenium Project Files
4
+ version: 0.1.0
5
+ status: draft
6
+ purpose: Planejar ou escrever pacote local de automacao Selenium.
7
+ entrypoint:
8
+ runner: runner.py
9
+ workflow: workflow.md
10
+ output_template: ../../templates/selenium-readme.md
11
+ inputs:
12
+ required:
13
+ - spec
14
+ optional:
15
+ - execute
16
+ - allow-overwrite
17
+ outputs:
18
+ artifacts:
19
+ - selenium-project-files.json
20
+ write_policy: local_write
@@ -0,0 +1,6 @@
1
+ # Decision Rules
2
+
3
+ - Nunca escrever fora de `target_project`.
4
+ - Nao instalar Selenium ou drivers.
5
+ - Incluir README, script, requirements e teste.
6
+ - Sobrescrita exige permissao explicita.
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env python3
2
+ """Runner for selenium-automation-builder/generate-selenium-project-files."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import json
8
+ from pathlib import Path
9
+ import sys
10
+
11
+
12
+ REPOSITORY_DIR = Path(__file__).resolve().parents[2] / "infra" / "integrations" / "selenium-automation"
13
+ sys.path.insert(0, str(REPOSITORY_DIR))
14
+
15
+ from selenium_automation_repository import SeleniumAutomationError, SeleniumAutomationRepository # noqa: E402
16
+
17
+
18
+ def main() -> int:
19
+ parser = argparse.ArgumentParser(description="Generate Selenium project files")
20
+ parser.add_argument("--spec", required=True)
21
+ parser.add_argument("--execute", action="store_true")
22
+ parser.add_argument("--allow-overwrite", action="store_true")
23
+ args = parser.parse_args()
24
+
25
+ try:
26
+ result = SeleniumAutomationRepository().generate_selenium_project_files(
27
+ spec_path=Path(args.spec),
28
+ execute=args.execute,
29
+ allow_overwrite=args.allow_overwrite,
30
+ )
31
+ except SeleniumAutomationError as exc:
32
+ print(str(exc), file=sys.stderr)
33
+ return 1
34
+ print(json.dumps(result, ensure_ascii=False, indent=2))
35
+ return 0
36
+
37
+
38
+ if __name__ == "__main__":
39
+ raise SystemExit(main())
@@ -0,0 +1,7 @@
1
+ # Workflow
2
+
3
+ 1. Ler e validar a spec.
4
+ 2. Exigir `target_project`.
5
+ 3. Retornar dry-run por padrao.
6
+ 4. Escrever apenas com `--execute` e confirmacao do runtime.
7
+ 5. Bloquear sobrescrita sem `--allow-overwrite`.
@@ -0,0 +1,18 @@
1
+ id: selenium-automation-builder.generate-selenium-script
2
+ kind: capability
3
+ name: Generate Selenium Script
4
+ version: 0.1.0
5
+ status: draft
6
+ purpose: Gerar script Python Selenium em modo output-only.
7
+ entrypoint:
8
+ runner: runner.py
9
+ workflow: workflow.md
10
+ output_template: ../../templates/selenium-automation.py
11
+ inputs:
12
+ required:
13
+ - spec
14
+ optional: []
15
+ outputs:
16
+ artifacts:
17
+ - selenium_automation.py
18
+ write_policy: output_only
@@ -0,0 +1,6 @@
1
+ # Decision Rules
2
+
3
+ - Nao escrever em disco.
4
+ - Nao usar `time.sleep` como espera principal.
5
+ - Script deve compilar mesmo sem Selenium instalado.
6
+ - Dry-run nao deve abrir browser.
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env python3
2
+ """Runner for selenium-automation-builder/generate-selenium-script."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import json
8
+ from pathlib import Path
9
+ import sys
10
+
11
+
12
+ REPOSITORY_DIR = Path(__file__).resolve().parents[2] / "infra" / "integrations" / "selenium-automation"
13
+ sys.path.insert(0, str(REPOSITORY_DIR))
14
+
15
+ from selenium_automation_repository import SeleniumAutomationError, SeleniumAutomationRepository # noqa: E402
16
+
17
+
18
+ def main() -> int:
19
+ parser = argparse.ArgumentParser(description="Generate a Selenium Python script")
20
+ parser.add_argument("--spec", required=True)
21
+ args = parser.parse_args()
22
+
23
+ try:
24
+ result = SeleniumAutomationRepository().generate_selenium_script(spec_path=Path(args.spec))
25
+ except SeleniumAutomationError as exc:
26
+ print(str(exc), file=sys.stderr)
27
+ return 1
28
+ print(json.dumps(result, ensure_ascii=False, indent=2))
29
+ return 0
30
+
31
+
32
+ if __name__ == "__main__":
33
+ raise SystemExit(main())
@@ -0,0 +1,6 @@
1
+ # Workflow
2
+
3
+ 1. Ler e validar a spec.
4
+ 2. Renderizar script com Selenium importado apenas na execucao real.
5
+ 3. Incluir dry-run, confirmacao, waits explicitos e screenshot em falha.
6
+ 4. Retornar script no stdout sem escrever arquivos.