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.
- package/README.md +13 -1
- package/package.json +1 -1
- package/runtime/README.md +53 -1
- package/runtime/agent +5 -0
- package/runtime/agents/README.md +26 -0
- package/runtime/agents/agent-devkit-agent-builder/AGENTS.md +24 -0
- package/runtime/agents/agent-devkit-agent-builder/README.md +37 -0
- package/runtime/agents/agent-devkit-agent-builder/agent.yaml +46 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/capability.yaml +29 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/decision-rules.md +7 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/runner.py +33 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/workflow.md +8 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/capability.yaml +31 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/decision-rules.md +9 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/runner.py +39 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/workflow.md +8 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/capability.yaml +28 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/decision-rules.md +6 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/runner.py +33 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/workflow.md +7 -0
- package/runtime/agents/agent-devkit-agent-builder/infra/integrations/agent-devkit/agent_builder_repository.py +527 -0
- package/runtime/agents/agent-devkit-agent-builder/knowledge/context.md +15 -0
- package/runtime/agents/agent-devkit-agent-builder/knowledge/policies.yaml +11 -0
- package/runtime/agents/agent-devkit-agent-builder/knowledge/system.md +11 -0
- package/runtime/agents/agent-devkit-agent-builder/templates/agent-plan-output.md +20 -0
- package/runtime/agents/agent-devkit-agent-builder/templates/scaffold-plan-output.md +13 -0
- package/runtime/agents/agent-devkit-agent-builder/templates/validation-report-output.md +13 -0
- package/runtime/agents/agent-devkit-agent-builder/tests/test_runners.py +188 -0
- package/runtime/agents/automation-architect/AGENTS.md +11 -0
- package/runtime/agents/automation-architect/README.md +27 -0
- package/runtime/agents/automation-architect/agent.yaml +57 -0
- package/runtime/agents/automation-architect/capabilities/classify-automation-request/capability.yaml +35 -0
- package/runtime/agents/automation-architect/capabilities/classify-automation-request/decision-rules.md +10 -0
- package/runtime/agents/automation-architect/capabilities/classify-automation-request/runner.py +37 -0
- package/runtime/agents/automation-architect/capabilities/classify-automation-request/workflow.md +7 -0
- package/runtime/agents/automation-architect/capabilities/delegate-automation-build/capability.yaml +34 -0
- package/runtime/agents/automation-architect/capabilities/delegate-automation-build/decision-rules.md +7 -0
- package/runtime/agents/automation-architect/capabilities/delegate-automation-build/runner.py +37 -0
- package/runtime/agents/automation-architect/capabilities/delegate-automation-build/workflow.md +6 -0
- package/runtime/agents/automation-architect/capabilities/plan-automation-solution/capability.yaml +35 -0
- package/runtime/agents/automation-architect/capabilities/plan-automation-solution/decision-rules.md +7 -0
- package/runtime/agents/automation-architect/capabilities/plan-automation-solution/runner.py +37 -0
- package/runtime/agents/automation-architect/capabilities/plan-automation-solution/workflow.md +7 -0
- package/runtime/agents/automation-architect/capabilities/review-automation-solution/capability.yaml +36 -0
- package/runtime/agents/automation-architect/capabilities/review-automation-solution/decision-rules.md +7 -0
- package/runtime/agents/automation-architect/capabilities/review-automation-solution/runner.py +39 -0
- package/runtime/agents/automation-architect/capabilities/review-automation-solution/workflow.md +7 -0
- package/runtime/agents/automation-architect/infra/integrations/automation-architecture/automation_architecture_repository.py +481 -0
- package/runtime/agents/automation-architect/knowledge/context.md +22 -0
- package/runtime/agents/automation-architect/knowledge/policies.yaml +20 -0
- package/runtime/agents/automation-architect/knowledge/system.md +8 -0
- package/runtime/agents/automation-architect/templates/automation-classification.md +6 -0
- package/runtime/agents/automation-architect/templates/automation-plan.md +5 -0
- package/runtime/agents/automation-architect/tests/test_runners.py +135 -0
- package/runtime/agents/aws-architecture-analyst/agent.yaml +17 -4
- package/runtime/agents/aws-cloudwatch-log-analyzer/agent.yaml +12 -2
- package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/analyze-service-error/capability.yaml +16 -0
- package/runtime/agents/aws-lambda-builder/AGENTS.md +27 -0
- package/runtime/agents/aws-lambda-builder/README.md +21 -0
- package/runtime/agents/aws-lambda-builder/agent.yaml +46 -0
- package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/capability.yaml +18 -0
- package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/decision-rules.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/runner.py +33 -0
- package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/workflow.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/capability.yaml +20 -0
- package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/decision-rules.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/runner.py +39 -0
- package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/workflow.md +7 -0
- package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/capability.yaml +22 -0
- package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/decision-rules.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/runner.py +41 -0
- package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/workflow.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/capability.yaml +18 -0
- package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/decision-rules.md +7 -0
- package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/runner.py +33 -0
- package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/workflow.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/capability.yaml +18 -0
- package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/decision-rules.md +7 -0
- package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/runner.py +33 -0
- package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/workflow.md +5 -0
- package/runtime/agents/aws-lambda-builder/infra/integrations/aws-lambda/aws_lambda_repository.py +688 -0
- package/runtime/agents/aws-lambda-builder/knowledge/context.md +12 -0
- package/runtime/agents/aws-lambda-builder/knowledge/policies.yaml +23 -0
- package/runtime/agents/aws-lambda-builder/knowledge/system.md +10 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-deploy-plan.md +3 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-package.md +3 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-plan.md +3 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-readme.md +3 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-security-review.md +3 -0
- package/runtime/agents/aws-lambda-builder/tests/test_runners.py +355 -0
- package/runtime/agents/aws-operations-operator/agent.yaml +18 -6
- package/runtime/agents/aws-security-governance-auditor/agent.yaml +17 -5
- package/runtime/agents/azure-devops-orchestrator/agent.yaml +15 -2
- package/runtime/agents/azure-devops-orchestrator/capabilities/read-card/capability.yaml +29 -0
- package/runtime/agents/bpo-analyser/agent.yaml +12 -2
- package/runtime/agents/bpo-analyser/knowledge/policies.yaml +2 -2
- package/runtime/agents/data-scientist-analyst/agent.yaml +16 -4
- package/runtime/agents/data-scientist-analyst/capabilities/generate-data-report/capability.yaml +1 -1
- package/runtime/agents/data-scientist-analyst/capabilities/generate-reconciliation-report/capability.yaml +1 -1
- package/runtime/agents/data-scientist-analyst/capabilities/run-data-pipeline/capability.yaml +1 -1
- package/runtime/agents/data-scientist-analyst/infra/integrations/agent-bridge/methods/analyze-sql-source.yaml +1 -1
- package/runtime/agents/data-scientist-analyst/knowledge/policies.yaml +4 -4
- package/runtime/agents/data-scientist-analyst/knowledge/system.md +1 -1
- package/runtime/agents/data-scientist-analyst/tests/test_runners.py +1 -1
- package/runtime/agents/database-change-operator/agent.yaml +12 -1
- package/runtime/agents/docker-container-builder/AGENTS.md +27 -0
- package/runtime/agents/docker-container-builder/README.md +21 -0
- package/runtime/agents/docker-container-builder/agent.yaml +52 -0
- package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/capability.yaml +18 -0
- package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/decision-rules.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/runner.py +32 -0
- package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/workflow.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-compose/capability.yaml +18 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-compose/decision-rules.md +7 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-compose/runner.py +32 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-compose/workflow.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/capability.yaml +20 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/decision-rules.md +7 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/runner.py +38 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/workflow.md +7 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/capability.yaml +18 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/decision-rules.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/runner.py +32 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/workflow.md +7 -0
- package/runtime/agents/docker-container-builder/capabilities/plan-image-build/capability.yaml +18 -0
- package/runtime/agents/docker-container-builder/capabilities/plan-image-build/decision-rules.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/plan-image-build/runner.py +32 -0
- package/runtime/agents/docker-container-builder/capabilities/plan-image-build/workflow.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/review-docker-security/capability.yaml +21 -0
- package/runtime/agents/docker-container-builder/capabilities/review-docker-security/decision-rules.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/review-docker-security/runner.py +43 -0
- package/runtime/agents/docker-container-builder/capabilities/review-docker-security/workflow.md +5 -0
- package/runtime/agents/docker-container-builder/infra/integrations/docker-container/docker_container_repository.py +837 -0
- package/runtime/agents/docker-container-builder/knowledge/context.md +21 -0
- package/runtime/agents/docker-container-builder/knowledge/policies.yaml +13 -0
- package/runtime/agents/docker-container-builder/knowledge/system.md +21 -0
- package/runtime/agents/docker-container-builder/templates/container-plan.md +4 -0
- package/runtime/agents/docker-container-builder/templates/container-review.md +4 -0
- package/runtime/agents/docker-container-builder/templates/docker-compose.md +5 -0
- package/runtime/agents/docker-container-builder/templates/docker-readme.md +3 -0
- package/runtime/agents/docker-container-builder/templates/dockerfile.md +5 -0
- package/runtime/agents/docker-container-builder/tests/test_runners.py +255 -0
- package/runtime/agents/drawio-diagram-builder/agent.yaml +11 -2
- package/runtime/agents/drawio-diagram-builder/capabilities/execute-diagram-delivery/capability.yaml +1 -1
- package/runtime/agents/drawio-diagram-builder/capabilities/read-azure-card-context/capability.yaml +1 -1
- package/runtime/agents/elasticsearch-log-analyzer/agent.yaml +14 -2
- package/runtime/agents/elasticsearch-log-analyzer/capabilities/analyze-service-errors/capability.yaml +14 -0
- package/runtime/agents/excel-workbook-builder/agent.yaml +10 -0
- package/runtime/agents/excel-workbook-builder/capabilities/create-template/capability.yaml +1 -1
- package/runtime/agents/excel-workbook-builder/capabilities/create-template/workflow.md +1 -1
- package/runtime/agents/excel-workbook-builder/capabilities/create-template-version/capability.yaml +1 -1
- package/runtime/agents/excel-workbook-builder/capabilities/generate-template-input-file/capability.yaml +1 -2
- package/runtime/agents/excel-workbook-builder/capabilities/refine-template/capability.yaml +1 -1
- package/runtime/agents/excel-workbook-builder/capabilities/register-template/capability.yaml +1 -2
- package/runtime/agents/excel-workbook-builder/capabilities/register-template/workflow.md +1 -1
- package/runtime/agents/execution-loop-builder/AGENTS.md +24 -0
- package/runtime/agents/execution-loop-builder/README.md +19 -0
- package/runtime/agents/execution-loop-builder/agent.yaml +49 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/capability.yaml +20 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/decision-rules.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/runner.py +38 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/workflow.md +7 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/capability.yaml +18 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/decision-rules.md +5 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/runner.py +32 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/workflow.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/capability.yaml +18 -0
- package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/decision-rules.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/runner.py +32 -0
- package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/workflow.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/capability.yaml +19 -0
- package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/decision-rules.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/runner.py +36 -0
- package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/workflow.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/capability.yaml +19 -0
- package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/decision-rules.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/runner.py +39 -0
- package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/workflow.md +5 -0
- package/runtime/agents/execution-loop-builder/infra/integrations/execution-loop/execution_loop_repository.py +608 -0
- package/runtime/agents/execution-loop-builder/knowledge/context.md +26 -0
- package/runtime/agents/execution-loop-builder/knowledge/policies.yaml +13 -0
- package/runtime/agents/execution-loop-builder/knowledge/system.md +19 -0
- package/runtime/agents/execution-loop-builder/templates/loop-plan.md +3 -0
- package/runtime/agents/execution-loop-builder/templates/loop-readme.md +3 -0
- package/runtime/agents/execution-loop-builder/templates/loop-review.md +3 -0
- package/runtime/agents/execution-loop-builder/templates/loop-runner.py +2 -0
- package/runtime/agents/execution-loop-builder/tests/test_runners.py +274 -0
- package/runtime/agents/execution-reviewer/agent.yaml +6 -4
- package/runtime/agents/execution-reviewer/capabilities/review-agent-result/capability.yaml +1 -2
- package/runtime/agents/execution-reviewer/capabilities/review-final-output/capability.yaml +1 -2
- package/runtime/agents/execution-reviewer/capabilities/review-plan/capability.yaml +1 -2
- package/runtime/agents/figma-ui-ux-product-designer/agent.yaml +17 -5
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-product-context/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-interview/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-review-session/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-dev-handoff/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-user-journey-diagram/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/ingest-design-source/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/triage-design-feedback/capability.yaml +1 -1
- package/runtime/agents/generic-agent-builder/AGENTS.md +20 -0
- package/runtime/agents/generic-agent-builder/README.md +40 -0
- package/runtime/agents/generic-agent-builder/agent.yaml +43 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/capability.yaml +18 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/decision-rules.md +5 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/runner.py +33 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/workflow.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/capability.yaml +20 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/decision-rules.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/runner.py +39 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/workflow.md +7 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-skill/capability.yaml +18 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-skill/decision-rules.md +5 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-skill/runner.py +33 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-skill/workflow.md +5 -0
- package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/capability.yaml +18 -0
- package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/decision-rules.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/runner.py +33 -0
- package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/workflow.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/capability.yaml +20 -0
- package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/decision-rules.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/runner.py +40 -0
- package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/workflow.md +7 -0
- package/runtime/agents/generic-agent-builder/infra/integrations/generic-agent/generic_agent_repository.py +445 -0
- package/runtime/agents/generic-agent-builder/knowledge/context.md +11 -0
- package/runtime/agents/generic-agent-builder/knowledge/policies.yaml +12 -0
- package/runtime/agents/generic-agent-builder/knowledge/system.md +17 -0
- package/runtime/agents/generic-agent-builder/templates/generic-agent-instructions.md +17 -0
- package/runtime/agents/generic-agent-builder/templates/generic-review-report.md +13 -0
- package/runtime/agents/generic-agent-builder/templates/generic-skill.md +14 -0
- package/runtime/agents/generic-agent-builder/tests/test_runners.py +220 -0
- package/runtime/agents/github-pr-reviewer/agent.yaml +17 -5
- package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/capability.yaml +1 -1
- package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/capability.yaml +1 -1
- package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/capability.yaml +1 -1
- package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/capability.yaml +1 -1
- package/runtime/agents/knowledge-generator/agent.yaml +13 -3
- package/runtime/agents/knowledge-generator/capabilities/generate-knowledge/capability.yaml +1 -1
- package/runtime/agents/local-llm-operator/agent.yaml +6 -4
- package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/capability.yaml +1 -2
- package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/capability.yaml +1 -2
- package/runtime/agents/local-llm-operator/capabilities/select-local-worker/capability.yaml +1 -2
- package/runtime/agents/n1-support-agent/agent.yaml +40 -1
- package/runtime/agents/n2-support-agent/agent.yaml +41 -2
- package/runtime/agents/n2-support-agent/knowledge/policies.yaml +2 -2
- package/runtime/agents/notification-operator/AGENTS.md +11 -0
- package/runtime/agents/notification-operator/README.md +15 -0
- package/runtime/agents/notification-operator/agent.yaml +43 -0
- package/runtime/agents/notification-operator/capabilities/configure-notification-channel/capability.yaml +19 -0
- package/runtime/agents/notification-operator/capabilities/configure-notification-channel/decision-rules.md +6 -0
- package/runtime/agents/notification-operator/capabilities/configure-notification-channel/runner.py +33 -0
- package/runtime/agents/notification-operator/capabilities/configure-notification-channel/workflow.md +6 -0
- package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/capability.yaml +25 -0
- package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/decision-rules.md +7 -0
- package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/runner.py +49 -0
- package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/workflow.md +6 -0
- package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/capability.yaml +27 -0
- package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/decision-rules.md +6 -0
- package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/runner.py +68 -0
- package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/workflow.md +7 -0
- package/runtime/agents/notification-operator/infra/README.md +6 -0
- package/runtime/agents/notification-operator/knowledge/context.md +10 -0
- package/runtime/agents/notification-operator/knowledge/policies.yaml +9 -0
- package/runtime/agents/notification-operator/knowledge/system.md +7 -0
- package/runtime/agents/notification-operator/templates/README.md +6 -0
- package/runtime/agents/notification-operator/tests/test_runners.py +108 -0
- package/runtime/agents/playwright-automation-builder/AGENTS.md +23 -0
- package/runtime/agents/playwright-automation-builder/README.md +43 -0
- package/runtime/agents/playwright-automation-builder/agent.yaml +48 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/capability.yaml +20 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/runner.py +38 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/capability.yaml +18 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/runner.py +32 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/capability.yaml +18 -0
- package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/runner.py +32 -0
- package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/capability.yaml +19 -0
- package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/runner.py +33 -0
- package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/capability.yaml +22 -0
- package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/runner.py +40 -0
- package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/capability.yaml +22 -0
- package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/runner.py +42 -0
- package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/infra/integrations/playwright-automation/playwright_automation_repository.py +865 -0
- package/runtime/agents/playwright-automation-builder/knowledge/context.md +19 -0
- package/runtime/agents/playwright-automation-builder/knowledge/policies.yaml +25 -0
- package/runtime/agents/playwright-automation-builder/knowledge/system.md +19 -0
- package/runtime/agents/playwright-automation-builder/templates/capability-wrapper.md +4 -0
- package/runtime/agents/playwright-automation-builder/templates/playwright-automation.py +12 -0
- package/runtime/agents/playwright-automation-builder/templates/playwright-readme.md +13 -0
- package/runtime/agents/playwright-automation-builder/templates/playwright-review-report.md +9 -0
- package/runtime/agents/playwright-automation-builder/templates/playwright-test.py +2 -0
- package/runtime/agents/playwright-automation-builder/tests/test_runners.py +261 -0
- package/runtime/agents/postgres-data-analyzer/agent.yaml +13 -2
- package/runtime/agents/presentation-deck-builder/agent.yaml +14 -3
- package/runtime/agents/presentation-deck-builder/capabilities/create-template/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/capabilities/create-template-version/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/capabilities/generate-template-input-file/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/capabilities/refine-template/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/capabilities/register-template/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/knowledge/prompts/create-template.md +1 -1
- package/runtime/agents/presentation-deck-builder/knowledge/prompts/generate-template-input-file.md +1 -1
- package/runtime/agents/provider-configurator/agent.yaml +6 -4
- package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/capability.yaml +1 -2
- package/runtime/agents/provider-configurator/capabilities/configure-provider-source/capability.yaml +1 -2
- package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/capability.yaml +1 -2
- package/runtime/agents/pyautogui-automation-builder/AGENTS.md +32 -0
- package/runtime/agents/pyautogui-automation-builder/README.md +44 -0
- package/runtime/agents/pyautogui-automation-builder/agent.yaml +45 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/capability.yaml +20 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/decision-rules.md +6 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/runner.py +39 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/workflow.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/capability.yaml +18 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/decision-rules.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/runner.py +33 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/workflow.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/capability.yaml +18 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/decision-rules.md +8 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/runner.py +33 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/workflow.md +9 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/capability.yaml +20 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/decision-rules.md +8 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/runner.py +43 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/workflow.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/capability.yaml +22 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/decision-rules.md +6 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/runner.py +43 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/workflow.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/infra/integrations/pyautogui-automation/pyautogui_automation_repository.py +856 -0
- package/runtime/agents/pyautogui-automation-builder/knowledge/context.md +17 -0
- package/runtime/agents/pyautogui-automation-builder/knowledge/policies.yaml +24 -0
- package/runtime/agents/pyautogui-automation-builder/knowledge/system.md +13 -0
- package/runtime/agents/pyautogui-automation-builder/templates/capability-wrapper.md +3 -0
- package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-automation.py +12 -0
- package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-readme.md +3 -0
- package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-review-report.md +3 -0
- package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-test.py +2 -0
- package/runtime/agents/pyautogui-automation-builder/tests/test_runners.py +376 -0
- package/runtime/agents/python-automation-builder/AGENTS.md +25 -0
- package/runtime/agents/python-automation-builder/README.md +43 -0
- package/runtime/agents/python-automation-builder/agent.yaml +45 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/capability.yaml +20 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/decision-rules.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/runner.py +39 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/workflow.md +7 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/capability.yaml +18 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/decision-rules.md +5 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/runner.py +33 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/workflow.md +5 -0
- package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/capability.yaml +18 -0
- package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/decision-rules.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/runner.py +33 -0
- package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/workflow.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/review-python-automation/capability.yaml +20 -0
- package/runtime/agents/python-automation-builder/capabilities/review-python-automation/decision-rules.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/review-python-automation/runner.py +43 -0
- package/runtime/agents/python-automation-builder/capabilities/review-python-automation/workflow.md +5 -0
- package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/capability.yaml +22 -0
- package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/decision-rules.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/runner.py +43 -0
- package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/workflow.md +6 -0
- package/runtime/agents/python-automation-builder/infra/integrations/python-automation/python_automation_repository.py +717 -0
- package/runtime/agents/python-automation-builder/knowledge/context.md +15 -0
- package/runtime/agents/python-automation-builder/knowledge/policies.yaml +12 -0
- package/runtime/agents/python-automation-builder/knowledge/system.md +19 -0
- package/runtime/agents/python-automation-builder/templates/automation-readme.md +13 -0
- package/runtime/agents/python-automation-builder/templates/automation-review-report.md +13 -0
- package/runtime/agents/python-automation-builder/templates/automation-test.py +9 -0
- package/runtime/agents/python-automation-builder/templates/automation.py +19 -0
- package/runtime/agents/python-automation-builder/templates/capability-wrapper.md +4 -0
- package/runtime/agents/python-automation-builder/tests/test_runners.py +292 -0
- package/runtime/agents/selenium-automation-builder/AGENTS.md +27 -0
- package/runtime/agents/selenium-automation-builder/README.md +40 -0
- package/runtime/agents/selenium-automation-builder/agent.yaml +45 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/capability.yaml +20 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/runner.py +39 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/workflow.md +7 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/capability.yaml +18 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/runner.py +33 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/workflow.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/capability.yaml +18 -0
- package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/runner.py +33 -0
- package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/workflow.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/capability.yaml +20 -0
- package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/runner.py +40 -0
- package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/workflow.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/capability.yaml +22 -0
- package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/runner.py +43 -0
- package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/workflow.md +6 -0
- package/runtime/agents/selenium-automation-builder/infra/integrations/selenium-automation/selenium_automation_repository.py +793 -0
- package/runtime/agents/selenium-automation-builder/knowledge/context.md +15 -0
- package/runtime/agents/selenium-automation-builder/knowledge/policies.yaml +17 -0
- package/runtime/agents/selenium-automation-builder/knowledge/system.md +18 -0
- package/runtime/agents/selenium-automation-builder/templates/capability-wrapper.md +4 -0
- package/runtime/agents/selenium-automation-builder/templates/selenium-automation.py +20 -0
- package/runtime/agents/selenium-automation-builder/templates/selenium-readme.md +13 -0
- package/runtime/agents/selenium-automation-builder/templates/selenium-review-report.md +13 -0
- package/runtime/agents/selenium-automation-builder/templates/selenium-test.py +9 -0
- package/runtime/agents/selenium-automation-builder/tests/test_runners.py +282 -0
- package/runtime/agents/software-specification-analyst/agent.yaml +17 -4
- package/runtime/agents/software-specification-analyst/capabilities/analyze-multiple-projects/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/analyze-project-context/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/conduct-requirements-interview/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/create-complete-spec/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/create-final-spec-from-analysis/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/create-functional-spec/capability.yaml +11 -0
- package/runtime/agents/software-specification-analyst/capabilities/create-technical-spec/capability.yaml +12 -0
- package/runtime/agents/software-specification-analyst/capabilities/refine-analysis-with-feedback/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/write-user-stories/capability.yaml +12 -0
- package/runtime/agents/sqlserver-change-operator/agent.yaml +12 -1
- package/runtime/agents/sqlserver-data-analyzer/agent.yaml +13 -2
- package/runtime/agents/supabase-project-analyst/AGENTS.md +29 -0
- package/runtime/agents/supabase-project-analyst/README.md +23 -0
- package/runtime/agents/supabase-project-analyst/agent.yaml +53 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/decision-rules.md +5 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/workflow.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/workflow.md +7 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/decision-rules.md +5 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/workflow.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/workflow.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/capability.yaml +19 -0
- package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/runner.py +36 -0
- package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/workflow.md +7 -0
- package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/workflow.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/workflow.md +5 -0
- package/runtime/agents/supabase-project-analyst/infra/integrations/supabase-project/supabase_project_repository.py +589 -0
- package/runtime/agents/supabase-project-analyst/knowledge/context.md +11 -0
- package/runtime/agents/supabase-project-analyst/knowledge/policies.yaml +24 -0
- package/runtime/agents/supabase-project-analyst/knowledge/system.md +10 -0
- package/runtime/agents/supabase-project-analyst/templates/supabase-audit.md +3 -0
- package/runtime/agents/supabase-project-analyst/templates/supabase-fix-plan.md +3 -0
- package/runtime/agents/supabase-project-analyst/templates/supabase-inspection.md +3 -0
- package/runtime/agents/supabase-project-analyst/templates/supabase-report.md +3 -0
- package/runtime/agents/supabase-project-analyst/tests/test_runners.py +239 -0
- package/runtime/agents/task-orchestrator/agent.yaml +25 -3
- package/runtime/agents/task-orchestrator/capabilities/plan-task/capability.yaml +1 -2
- package/runtime/agents/task-orchestrator/capabilities/select-specialists/capability.yaml +1 -2
- package/runtime/agents/technical-integration-analyst/agent.yaml +15 -2
- package/runtime/agents/topdesk-orchestrator/agent.yaml +10 -2
- package/runtime/cli/aikit/__init__.py +1 -1
- package/runtime/cli/aikit/acceptance.py +166 -0
- package/runtime/cli/aikit/agent_executor.py +26 -3
- package/runtime/cli/aikit/agent_registry.py +244 -5
- package/runtime/cli/aikit/architecture.py +84 -0
- package/runtime/cli/aikit/audit.py +172 -3
- package/runtime/cli/aikit/autonomy.py +237 -0
- package/runtime/cli/aikit/capability_runtime.py +522 -0
- package/runtime/cli/aikit/catalog.py +246 -0
- package/runtime/cli/aikit/cli_dispatch.py +1078 -0
- package/runtime/cli/aikit/cli_parser.py +409 -0
- package/runtime/cli/aikit/collaboration.py +359 -0
- package/runtime/cli/aikit/configuration_orchestrator.py +52 -26
- package/runtime/cli/aikit/contribution.py +105 -0
- package/runtime/cli/aikit/core/__init__.py +1 -0
- package/runtime/cli/aikit/core/capability_contract.py +112 -0
- package/runtime/cli/aikit/core/requests.py +69 -0
- package/runtime/cli/aikit/core/runtime.py +64 -0
- package/runtime/cli/aikit/diagnostics.py +8 -2
- package/runtime/cli/aikit/doctor_runtime.py +79 -0
- package/runtime/cli/aikit/errors.py +7 -0
- package/runtime/cli/aikit/eval.py +158 -0
- package/runtime/cli/aikit/execution_reviewer.py +21 -0
- package/runtime/cli/aikit/extensions.py +140 -0
- package/runtime/cli/aikit/fallback.py +1 -0
- package/runtime/cli/aikit/github_pr.py +23 -0
- package/runtime/cli/aikit/guardrails.py +25 -10
- package/runtime/cli/aikit/human_output.py +1026 -0
- package/runtime/cli/aikit/impact_map.py +294 -0
- package/runtime/cli/aikit/interactive_wizard.py +79 -0
- package/runtime/cli/aikit/local_llm_operator.py +35 -1
- package/runtime/cli/aikit/main.py +9 -2834
- package/runtime/cli/aikit/mcp_manifest.py +229 -0
- package/runtime/cli/aikit/mcp_server.py +132 -0
- package/runtime/cli/aikit/mcp_tools.py +262 -0
- package/runtime/cli/aikit/mini_brain.py +227 -0
- package/runtime/cli/aikit/model_router.py +182 -18
- package/runtime/cli/aikit/module_controller.py +335 -0
- package/runtime/cli/aikit/natural_prompt_runtime.py +538 -0
- package/runtime/cli/aikit/notifications.py +716 -2
- package/runtime/cli/aikit/ollama.py +1 -0
- package/runtime/cli/aikit/orchestrator.py +809 -119
- package/runtime/cli/aikit/output.py +63 -2
- package/runtime/cli/aikit/permissions.py +14 -4
- package/runtime/cli/aikit/prompt_injection.py +57 -0
- package/runtime/cli/aikit/review_gate.py +38 -6
- package/runtime/cli/aikit/roadmap.py +195 -0
- package/runtime/cli/aikit/roadmap_cli.py +70 -0
- package/runtime/cli/aikit/router.py +41 -12
- package/runtime/cli/aikit/router_explain.py +152 -0
- package/runtime/cli/aikit/runtime_paths.py +11 -0
- package/runtime/cli/aikit/secrets.py +113 -0
- package/runtime/cli/aikit/sessions.py +88 -2
- package/runtime/cli/aikit/setup_wizard_payload.py +32 -0
- package/runtime/cli/aikit/sources.py +298 -50
- package/runtime/cli/aikit/tasks.py +449 -21
- package/runtime/cli/aikit/wizard_state.py +15 -1
- package/runtime/cli/aikit/workflows.py +115 -0
- package/runtime/cli/aikit/write_policy.py +108 -0
- package/runtime/plugins/claude-code-ai-devkit/README.md +17 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/README.md +29 -2
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-db-analyst.md +44 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-execution-reviewer.md +38 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-pr-reviewer.md +42 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-repo-explorer.md +40 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-support-triage.md +43 -0
- package/runtime/plugins/claude-code-ai-devkit/plugin.json +1 -1
- package/runtime/plugins/claude-code-ai-devkit/skills/ai-devkit-router/SKILL.md +16 -0
- package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/SKILL.md +1 -0
- package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/subagents.md +21 -0
- package/runtime/plugins/claude-skill-ai-devkit/plugin.json +1 -1
- package/runtime/providers/azure-devops.yaml +9 -0
- package/runtime/providers/github.yaml +4 -0
- package/runtime/providers/local-notification.yaml +5 -2
- package/runtime/providers/local-scheduler.yaml +1 -1
- package/runtime/providers/supabase.yaml +46 -0
- package/runtime/scripts/release-catalog-snapshot.json +543 -0
- package/runtime/scripts/release-gate.py +141 -1
- package/runtime/scripts/validate-repo.py +312 -0
- package/runtime/vendor/skills/napkin/napkin.md +15 -9
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Contexto
|
|
2
|
+
|
|
3
|
+
PyAutoGUI controla mouse, teclado e screenshots sobre a interface grafica atual.
|
|
4
|
+
Isso torna automacoes frageis diante de mudancas de janela, escala, resolucao,
|
|
5
|
+
foco, idioma, tema e layout.
|
|
6
|
+
|
|
7
|
+
Use este agente quando:
|
|
8
|
+
|
|
9
|
+
- a tarefa depende de aplicativo desktop sem API;
|
|
10
|
+
- nao ha CLI;
|
|
11
|
+
- nao ha MCP/tool oficial;
|
|
12
|
+
- automacao web nao se aplica;
|
|
13
|
+
- automacao nativa do sistema operacional nao e opcao mais segura;
|
|
14
|
+
- o usuario aceita explicitamente o risco visual.
|
|
15
|
+
|
|
16
|
+
Evite este agente quando a tarefa puder ser resolvida por integracao
|
|
17
|
+
deterministica, browser automation ou comandos nativos.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
write_policy:
|
|
2
|
+
planning: read_only
|
|
3
|
+
generation: output_only
|
|
4
|
+
project_files: local_write
|
|
5
|
+
review: read_only
|
|
6
|
+
capability_wrapper: local_write
|
|
7
|
+
real_desktop_actions: confirm
|
|
8
|
+
destructive_actions: blocked_by_default
|
|
9
|
+
safer_alternatives:
|
|
10
|
+
- api
|
|
11
|
+
- cli
|
|
12
|
+
- mcp
|
|
13
|
+
- playwright
|
|
14
|
+
- selenium
|
|
15
|
+
- applescript
|
|
16
|
+
- windows-ui-automation
|
|
17
|
+
guardrails:
|
|
18
|
+
require_visual_risk_acceptance: true
|
|
19
|
+
require_dry_run: true
|
|
20
|
+
require_execute_confirm: true
|
|
21
|
+
require_failsafe: true
|
|
22
|
+
require_screenshots: true
|
|
23
|
+
require_abort_file: true
|
|
24
|
+
block_plaintext_secrets: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# System
|
|
2
|
+
|
|
3
|
+
Voce e o `pyautogui-automation-builder`, especialista em automacoes desktop
|
|
4
|
+
visuais com PyAutoGUI. Sua funcao e tratar PyAutoGUI como ultimo recurso,
|
|
5
|
+
produzindo planos e scripts pequenos, revisaveis e protegidos por guardrails.
|
|
6
|
+
|
|
7
|
+
Antes de gerar codigo, valide se API, CLI, MCP, Playwright, Selenium,
|
|
8
|
+
AppleScript ou Windows UI Automation resolveriam a tarefa com menos risco. Se
|
|
9
|
+
uma alternativa mais segura estiver disponivel, nao gere PyAutoGUI.
|
|
10
|
+
|
|
11
|
+
Nunca execute automacao desktop real durante planejamento ou geracao. Scripts
|
|
12
|
+
gerados devem rodar em dry-run por padrao e exigir `--execute --confirm` para
|
|
13
|
+
acoes reais.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Template rendered by pyautogui-automation-builder."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def main() -> int:
|
|
8
|
+
raise RuntimeError("Use generate-pyautogui-script to render a concrete script.")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
if __name__ == "__main__":
|
|
12
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Tests for the PyAutoGUI 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" / "pyautogui-automation-builder"
|
|
19
|
+
REPOSITORY_PATH = (
|
|
20
|
+
AGENT_DIR
|
|
21
|
+
/ "infra"
|
|
22
|
+
/ "integrations"
|
|
23
|
+
/ "pyautogui-automation"
|
|
24
|
+
/ "pyautogui_automation_repository.py"
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def load_repository_module():
|
|
29
|
+
spec = importlib.util.spec_from_file_location("pyautogui_automation_repository", REPOSITORY_PATH)
|
|
30
|
+
if spec is None or spec.loader is None:
|
|
31
|
+
raise RuntimeError(f"cannot load repository from {REPOSITORY_PATH}")
|
|
32
|
+
module = importlib.util.module_from_spec(spec)
|
|
33
|
+
spec.loader.exec_module(module)
|
|
34
|
+
return module
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class PyAutoGUIAutomationBuilderRunnersTest(unittest.TestCase):
|
|
38
|
+
def setUp(self) -> None:
|
|
39
|
+
self.repository_module = load_repository_module()
|
|
40
|
+
|
|
41
|
+
def write_spec(
|
|
42
|
+
self,
|
|
43
|
+
root: Path,
|
|
44
|
+
*,
|
|
45
|
+
automation_name: str = "Desktop Report Export",
|
|
46
|
+
target_project: Path | None = None,
|
|
47
|
+
safer_alternatives_checked: list[str] | None = None,
|
|
48
|
+
purpose: str = "Export a report from a desktop-only legacy app.",
|
|
49
|
+
side_effects: str = "navigation",
|
|
50
|
+
user_accepts_visual_risk: str = "true",
|
|
51
|
+
coordinates_policy: str = "window-relative",
|
|
52
|
+
absolute_coordinate_justification: str = "",
|
|
53
|
+
) -> Path:
|
|
54
|
+
path = root / "pyautogui-spec.yaml"
|
|
55
|
+
target_project_line = f"target_project: {target_project}\n" if target_project else ""
|
|
56
|
+
alternatives = ["checked-none-available"] if safer_alternatives_checked is None else safer_alternatives_checked
|
|
57
|
+
alternatives_block = (
|
|
58
|
+
"safer_alternatives_checked: []"
|
|
59
|
+
if not alternatives
|
|
60
|
+
else "safer_alternatives_checked:\n" + "\n".join(f" - {item}" for item in alternatives)
|
|
61
|
+
)
|
|
62
|
+
absolute_line = (
|
|
63
|
+
f"absolute_coordinate_justification: {absolute_coordinate_justification}\n"
|
|
64
|
+
if absolute_coordinate_justification
|
|
65
|
+
else ""
|
|
66
|
+
)
|
|
67
|
+
path.write_text(
|
|
68
|
+
f"""
|
|
69
|
+
automation_name: {automation_name}
|
|
70
|
+
{target_project_line}purpose: {purpose}
|
|
71
|
+
target_app: Legacy Reports
|
|
72
|
+
target_window: Reports - Production Mirror
|
|
73
|
+
platform: macos
|
|
74
|
+
side_effects: {side_effects}
|
|
75
|
+
coordinates_policy: {coordinates_policy}
|
|
76
|
+
user_accepts_visual_risk: {user_accepts_visual_risk}
|
|
77
|
+
{absolute_line}{alternatives_block}
|
|
78
|
+
steps:
|
|
79
|
+
- focus export menu
|
|
80
|
+
- choose csv format
|
|
81
|
+
- wait for confirmation banner
|
|
82
|
+
screen_preconditions:
|
|
83
|
+
- Reports window is active
|
|
84
|
+
- Export button is visible
|
|
85
|
+
verification_strategy: compare before and after screenshots and verify confirmation banner
|
|
86
|
+
quality_gates:
|
|
87
|
+
- dry-run reviewed
|
|
88
|
+
- target window confirmed
|
|
89
|
+
""".lstrip(),
|
|
90
|
+
encoding="utf-8",
|
|
91
|
+
)
|
|
92
|
+
return path
|
|
93
|
+
|
|
94
|
+
def test_plan_desktop_automation_returns_plan_without_writing(self) -> None:
|
|
95
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
96
|
+
root = Path(tmpdir)
|
|
97
|
+
spec_path = self.write_spec(root)
|
|
98
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
99
|
+
|
|
100
|
+
result = repository.plan_desktop_automation(spec_path=spec_path)
|
|
101
|
+
|
|
102
|
+
self.assertEqual(result["status"], "ok")
|
|
103
|
+
self.assertEqual(result["automation"]["slug"], "desktop-report-export")
|
|
104
|
+
self.assertEqual(result["write_policy"], "read_only")
|
|
105
|
+
self.assertEqual(result["coordinates_policy"], "window-relative")
|
|
106
|
+
planned_paths = {item["path"] for item in result["planned_artifacts"]}
|
|
107
|
+
self.assertIn("pyautogui_automation.py", planned_paths)
|
|
108
|
+
self.assertFalse((root / "pyautogui_automation.py").exists())
|
|
109
|
+
|
|
110
|
+
def test_plan_desktop_automation_reports_needs_input(self) -> None:
|
|
111
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
112
|
+
root = Path(tmpdir)
|
|
113
|
+
spec_path = root / "pyautogui-spec.yaml"
|
|
114
|
+
spec_path.write_text("automation_name: incomplete\n", encoding="utf-8")
|
|
115
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
116
|
+
|
|
117
|
+
result = repository.plan_desktop_automation(spec_path=spec_path)
|
|
118
|
+
|
|
119
|
+
self.assertEqual(result["status"], "needs-input")
|
|
120
|
+
self.assertGreaterEqual(
|
|
121
|
+
set(result["missing_fields"]),
|
|
122
|
+
{
|
|
123
|
+
"purpose",
|
|
124
|
+
"target_app",
|
|
125
|
+
"target_window",
|
|
126
|
+
"platform",
|
|
127
|
+
"steps",
|
|
128
|
+
"screen_preconditions",
|
|
129
|
+
"verification_strategy",
|
|
130
|
+
"safer_alternatives_checked",
|
|
131
|
+
"user_accepts_visual_risk",
|
|
132
|
+
"side_effects",
|
|
133
|
+
"coordinates_policy",
|
|
134
|
+
},
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
def test_plan_requires_safer_alternatives_checked(self) -> None:
|
|
138
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
139
|
+
root = Path(tmpdir)
|
|
140
|
+
spec_path = self.write_spec(root, safer_alternatives_checked=[])
|
|
141
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
142
|
+
|
|
143
|
+
result = repository.plan_desktop_automation(spec_path=spec_path)
|
|
144
|
+
|
|
145
|
+
self.assertEqual(result["status"], "needs-safer-alternative-review")
|
|
146
|
+
self.assertEqual(result["reason"], "safer_alternatives_not_checked")
|
|
147
|
+
|
|
148
|
+
def test_plan_blocks_when_api_or_cli_available(self) -> None:
|
|
149
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
150
|
+
root = Path(tmpdir)
|
|
151
|
+
spec_path = self.write_spec(root, safer_alternatives_checked=["api", "cli"])
|
|
152
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
153
|
+
|
|
154
|
+
result = repository.plan_desktop_automation(spec_path=spec_path)
|
|
155
|
+
|
|
156
|
+
self.assertEqual(result["status"], "needs-safer-alternative-review")
|
|
157
|
+
self.assertEqual(result["reason"], "safer_alternative_available")
|
|
158
|
+
self.assertEqual(result["available_alternatives"], ["api", "cli"])
|
|
159
|
+
|
|
160
|
+
def test_plan_requires_visual_risk_acceptance(self) -> None:
|
|
161
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
162
|
+
root = Path(tmpdir)
|
|
163
|
+
spec_path = self.write_spec(root, user_accepts_visual_risk="false")
|
|
164
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
165
|
+
|
|
166
|
+
result = repository.plan_desktop_automation(spec_path=spec_path)
|
|
167
|
+
|
|
168
|
+
self.assertEqual(result["status"], "needs-input")
|
|
169
|
+
self.assertIn("user_accepts_visual_risk", result["missing_fields"])
|
|
170
|
+
|
|
171
|
+
def test_plan_blocks_destructive_side_effects(self) -> None:
|
|
172
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
173
|
+
root = Path(tmpdir)
|
|
174
|
+
spec_path = self.write_spec(root, side_effects="destructive")
|
|
175
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
176
|
+
|
|
177
|
+
result = repository.plan_desktop_automation(spec_path=spec_path)
|
|
178
|
+
|
|
179
|
+
self.assertEqual(result["status"], "blocked")
|
|
180
|
+
self.assertEqual(result["reason"], "destructive_desktop_automation_blocked")
|
|
181
|
+
|
|
182
|
+
def test_plan_blocks_secret_marker(self) -> None:
|
|
183
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
184
|
+
root = Path(tmpdir)
|
|
185
|
+
spec_path = self.write_spec(root, purpose="Export with PASSWORD=abc in the UI.")
|
|
186
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
187
|
+
|
|
188
|
+
result = repository.plan_desktop_automation(spec_path=spec_path)
|
|
189
|
+
|
|
190
|
+
self.assertEqual(result["status"], "blocked")
|
|
191
|
+
self.assertEqual(result["reason"], "forbidden_sensitive_marker")
|
|
192
|
+
|
|
193
|
+
def test_plan_blocks_absolute_coordinates_without_justification(self) -> None:
|
|
194
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
195
|
+
root = Path(tmpdir)
|
|
196
|
+
spec_path = self.write_spec(root, coordinates_policy="absolute-last-resort")
|
|
197
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
198
|
+
|
|
199
|
+
result = repository.plan_desktop_automation(spec_path=spec_path)
|
|
200
|
+
|
|
201
|
+
self.assertEqual(result["status"], "blocked")
|
|
202
|
+
self.assertEqual(result["reason"], "absolute_coordinates_need_justification")
|
|
203
|
+
|
|
204
|
+
def test_generate_pyautogui_script_contains_required_guardrails(self) -> None:
|
|
205
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
206
|
+
root = Path(tmpdir)
|
|
207
|
+
spec_path = self.write_spec(root)
|
|
208
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
209
|
+
|
|
210
|
+
result = repository.generate_pyautogui_script(spec_path=spec_path)
|
|
211
|
+
|
|
212
|
+
self.assertEqual(result["status"], "ok")
|
|
213
|
+
content = result["content"]
|
|
214
|
+
self.assertIn("pyautogui.FAILSAFE = True", content)
|
|
215
|
+
self.assertIn("--dry-run", content)
|
|
216
|
+
self.assertIn("--execute", content)
|
|
217
|
+
self.assertIn("--confirm", content)
|
|
218
|
+
self.assertIn("--screenshot-dir", content)
|
|
219
|
+
self.assertIn("--abort-file", content)
|
|
220
|
+
self.assertIn("before.png", content)
|
|
221
|
+
self.assertIn("after.png", content)
|
|
222
|
+
self.assertIn("error.png", content)
|
|
223
|
+
py_compile.compile(str(self.write_temp_script(root, content)), doraise=True)
|
|
224
|
+
|
|
225
|
+
def test_generated_script_dry_run_runs_without_pyautogui_installed(self) -> None:
|
|
226
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
227
|
+
root = Path(tmpdir)
|
|
228
|
+
spec_path = self.write_spec(root)
|
|
229
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
230
|
+
script = self.write_temp_script(root, repository.generate_pyautogui_script(spec_path=spec_path)["content"])
|
|
231
|
+
|
|
232
|
+
result = subprocess.run(
|
|
233
|
+
[sys.executable, str(script), "--dry-run"],
|
|
234
|
+
check=False,
|
|
235
|
+
text=True,
|
|
236
|
+
stdout=subprocess.PIPE,
|
|
237
|
+
stderr=subprocess.PIPE,
|
|
238
|
+
timeout=30,
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
self.assertEqual(result.returncode, 0, result.stderr or result.stdout)
|
|
242
|
+
payload = json.loads(result.stdout)
|
|
243
|
+
self.assertTrue(payload["dry_run"])
|
|
244
|
+
self.assertEqual(payload["plan"]["automation"], "desktop-report-export")
|
|
245
|
+
|
|
246
|
+
def test_generate_pyautogui_project_files_dry_run_does_not_write(self) -> None:
|
|
247
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
248
|
+
root = Path(tmpdir)
|
|
249
|
+
target_project = root / "target-project"
|
|
250
|
+
target_project.mkdir()
|
|
251
|
+
spec_path = self.write_spec(root, target_project=target_project)
|
|
252
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
253
|
+
|
|
254
|
+
result = repository.generate_pyautogui_project_files(spec_path=spec_path)
|
|
255
|
+
|
|
256
|
+
self.assertEqual(result["status"], "planned")
|
|
257
|
+
self.assertTrue(result["dry_run"])
|
|
258
|
+
planned_paths = {item["path"] for item in result["planned_files"]}
|
|
259
|
+
self.assertGreaterEqual(
|
|
260
|
+
planned_paths,
|
|
261
|
+
{
|
|
262
|
+
"desktop-report-export/pyautogui_automation.py",
|
|
263
|
+
"desktop-report-export/README.md",
|
|
264
|
+
"desktop-report-export/tests/test_pyautogui_automation.py",
|
|
265
|
+
},
|
|
266
|
+
)
|
|
267
|
+
self.assertFalse((target_project / "desktop-report-export").exists())
|
|
268
|
+
|
|
269
|
+
def test_generate_pyautogui_project_files_execute_writes_inside_target_project(self) -> None:
|
|
270
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
271
|
+
root = Path(tmpdir)
|
|
272
|
+
target_project = root / "target-project"
|
|
273
|
+
target_project.mkdir()
|
|
274
|
+
spec_path = self.write_spec(root, target_project=target_project)
|
|
275
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
276
|
+
|
|
277
|
+
result = repository.generate_pyautogui_project_files(spec_path=spec_path, execute=True)
|
|
278
|
+
|
|
279
|
+
self.assertEqual(result["status"], "written")
|
|
280
|
+
self.assertTrue((target_project / "desktop-report-export" / "pyautogui_automation.py").exists())
|
|
281
|
+
for item in result["written_files"]:
|
|
282
|
+
path = Path(item["path"]).resolve()
|
|
283
|
+
self.assertTrue(path.is_relative_to(target_project.resolve()), item["path"])
|
|
284
|
+
|
|
285
|
+
def test_generate_pyautogui_project_files_blocks_overwrite_without_permission(self) -> None:
|
|
286
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
287
|
+
root = Path(tmpdir)
|
|
288
|
+
target_project = root / "target-project"
|
|
289
|
+
target_project.mkdir()
|
|
290
|
+
spec_path = self.write_spec(root, target_project=target_project)
|
|
291
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
292
|
+
repository.generate_pyautogui_project_files(spec_path=spec_path, execute=True)
|
|
293
|
+
|
|
294
|
+
result = repository.generate_pyautogui_project_files(spec_path=spec_path, execute=True)
|
|
295
|
+
|
|
296
|
+
self.assertEqual(result["status"], "blocked")
|
|
297
|
+
self.assertEqual(result["reason"], "target_exists")
|
|
298
|
+
|
|
299
|
+
def test_review_pyautogui_script_detects_missing_failsafe(self) -> None:
|
|
300
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=ROOT)
|
|
301
|
+
|
|
302
|
+
result = repository.review_pyautogui_script(text="import pyautogui\npyautogui.click(10, 10)")
|
|
303
|
+
|
|
304
|
+
self.assertFalse(result["valid"])
|
|
305
|
+
self.assertEqual(result["status"], "failed")
|
|
306
|
+
self.assertTrue(any("failsafe" in finding.lower() for finding in result["findings"]))
|
|
307
|
+
|
|
308
|
+
def test_review_pyautogui_script_accepts_generated_script(self) -> None:
|
|
309
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
310
|
+
root = Path(tmpdir)
|
|
311
|
+
spec_path = self.write_spec(root)
|
|
312
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
313
|
+
script = repository.generate_pyautogui_script(spec_path=spec_path)["content"]
|
|
314
|
+
|
|
315
|
+
result = repository.review_pyautogui_script(text=script, side_effects="navigation")
|
|
316
|
+
|
|
317
|
+
self.assertTrue(result["valid"], result["findings"])
|
|
318
|
+
self.assertEqual(result["findings"], [])
|
|
319
|
+
|
|
320
|
+
def test_wrap_pyautogui_as_capability_execute_writes_compilable_runner(self) -> None:
|
|
321
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
322
|
+
root = Path(tmpdir)
|
|
323
|
+
target_project = root / "target-project"
|
|
324
|
+
target_project.mkdir()
|
|
325
|
+
spec_path = self.write_spec(root, target_project=target_project)
|
|
326
|
+
repository = self.repository_module.PyAutoGUIAutomationRepository(root=root)
|
|
327
|
+
|
|
328
|
+
result = repository.wrap_pyautogui_as_capability(
|
|
329
|
+
spec_path=spec_path,
|
|
330
|
+
agent_id="desktop-ops-agent",
|
|
331
|
+
capability_id="desktop-report-export",
|
|
332
|
+
execute=True,
|
|
333
|
+
)
|
|
334
|
+
|
|
335
|
+
self.assertEqual(result["status"], "written")
|
|
336
|
+
runner = target_project / "agents" / "desktop-ops-agent" / "capabilities" / "desktop-report-export" / "runner.py"
|
|
337
|
+
self.assertTrue(runner.exists())
|
|
338
|
+
py_compile.compile(str(runner), doraise=True)
|
|
339
|
+
|
|
340
|
+
def test_plan_desktop_automation_runner_is_executable_through_agent_cli(self) -> None:
|
|
341
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
342
|
+
spec_path = self.write_spec(Path(tmpdir))
|
|
343
|
+
|
|
344
|
+
result = subprocess.run(
|
|
345
|
+
[
|
|
346
|
+
sys.executable,
|
|
347
|
+
str(AGENT),
|
|
348
|
+
"--json",
|
|
349
|
+
"run",
|
|
350
|
+
"pyautogui-automation-builder",
|
|
351
|
+
"plan-desktop-automation",
|
|
352
|
+
"--spec",
|
|
353
|
+
str(spec_path),
|
|
354
|
+
],
|
|
355
|
+
cwd=ROOT,
|
|
356
|
+
check=False,
|
|
357
|
+
text=True,
|
|
358
|
+
stdout=subprocess.PIPE,
|
|
359
|
+
stderr=subprocess.PIPE,
|
|
360
|
+
timeout=60,
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
self.assertEqual(result.returncode, 0, result.stderr or result.stdout)
|
|
364
|
+
payload = json.loads(result.stdout)
|
|
365
|
+
runner_payload = json.loads(payload["stdout"])
|
|
366
|
+
self.assertEqual(runner_payload["status"], "ok")
|
|
367
|
+
self.assertEqual(runner_payload["automation"]["slug"], "desktop-report-export")
|
|
368
|
+
|
|
369
|
+
def write_temp_script(self, root: Path, content: str) -> Path:
|
|
370
|
+
script = root / "pyautogui_automation.py"
|
|
371
|
+
script.write_text(content, encoding="utf-8")
|
|
372
|
+
return script
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
if __name__ == "__main__":
|
|
376
|
+
unittest.main()
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Python Automation Builder
|
|
2
|
+
|
|
3
|
+
Instrucoes locais para trabalhar no agente `python-automation-builder`.
|
|
4
|
+
|
|
5
|
+
## Responsabilidade
|
|
6
|
+
|
|
7
|
+
Este agente planeja, gera e revisa automacoes Python deterministicas para
|
|
8
|
+
tarefas repetitivas. O objetivo e reduzir consumo de contexto de LLM em rotinas
|
|
9
|
+
conhecidas, mantendo contrato, dry-run, logs, confirmacao e criterios de aceite.
|
|
10
|
+
|
|
11
|
+
## Fora De Escopo
|
|
12
|
+
|
|
13
|
+
- Selenium detalhado: pertence ao problema 16.
|
|
14
|
+
- PyAutoGUI detalhado: pertence ao problema 17.
|
|
15
|
+
- Playwright detalhado: pertence ao problema 27.
|
|
16
|
+
- Scheduler, deploy cloud e execucao remota.
|
|
17
|
+
|
|
18
|
+
## Guardrails
|
|
19
|
+
|
|
20
|
+
- Preferir standard library quando suficiente.
|
|
21
|
+
- Nao gravar segredos, tokens, URLs privadas ou credenciais em codigo.
|
|
22
|
+
- Gerar dry-run por padrao para qualquer side effect.
|
|
23
|
+
- Exigir confirmacao para escrita real.
|
|
24
|
+
- Gerar scripts revisaveis, pequenos e com exit codes previsiveis.
|
|
25
|
+
- Bloquear escrita fora do `target_project`.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Python Automation Builder
|
|
2
|
+
|
|
3
|
+
Agente especialista para criar automacoes Python seguras, revisaveis e
|
|
4
|
+
idempotentes quando possivel.
|
|
5
|
+
|
|
6
|
+
## Capabilities
|
|
7
|
+
|
|
8
|
+
- `plan-python-automation`: planeja contrato, risco, idempotencia, dependencias
|
|
9
|
+
e artefatos sem escrever arquivos.
|
|
10
|
+
- `generate-python-automation`: gera um script Python em modo output-only.
|
|
11
|
+
- `generate-automation-project-files`: planeja ou grava um pacote local de
|
|
12
|
+
automacao com dry-run por padrao.
|
|
13
|
+
- `review-python-automation`: revisa script contra dry-run, confirmacao, logs,
|
|
14
|
+
segredos e erros.
|
|
15
|
+
- `wrap-automation-as-capability`: gera wrapper de capability do Agent DevKit em
|
|
16
|
+
dry-run por padrao.
|
|
17
|
+
|
|
18
|
+
## Contrato
|
|
19
|
+
|
|
20
|
+
```yaml
|
|
21
|
+
automation_name: Report Cleanup
|
|
22
|
+
purpose: Clean old generated reports and summarize affected files.
|
|
23
|
+
inputs:
|
|
24
|
+
- reports_dir
|
|
25
|
+
outputs:
|
|
26
|
+
- summary_json
|
|
27
|
+
systems:
|
|
28
|
+
- local filesystem
|
|
29
|
+
frequency: daily
|
|
30
|
+
risk: medium
|
|
31
|
+
target_environment: local workstation
|
|
32
|
+
side_effects: updates-local
|
|
33
|
+
dependencies:
|
|
34
|
+
- pathlib
|
|
35
|
+
quality_gates:
|
|
36
|
+
- dry-run lists affected paths
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Limites
|
|
40
|
+
|
|
41
|
+
Este agente cobre automacoes Python gerais. Automacoes com Selenium, PyAutoGUI
|
|
42
|
+
ou Playwright devem ser tratadas pelos agentes/specs especificos para esses
|
|
43
|
+
dominios.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
id: python-automation-builder
|
|
2
|
+
kind: specialist-agent
|
|
3
|
+
name: Python Automation Builder
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
status: draft
|
|
6
|
+
owner: agent-devkit
|
|
7
|
+
purpose: >
|
|
8
|
+
Planejar, gerar, revisar e empacotar automacoes Python deterministicas,
|
|
9
|
+
seguras e revisaveis para tarefas repetitivas.
|
|
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-python-automation
|
|
19
|
+
- generate-python-automation
|
|
20
|
+
- generate-automation-project-files
|
|
21
|
+
- review-python-automation
|
|
22
|
+
- wrap-automation-as-capability
|
|
23
|
+
agent_surface:
|
|
24
|
+
repositories:
|
|
25
|
+
- infra/integrations/python-automation/python_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
|
+
- python-automation-builder
|
|
38
|
+
- python-automation
|
|
39
|
+
- automation-builder
|
|
40
|
+
- automacao-python
|
|
41
|
+
intents:
|
|
42
|
+
- python-automation.plan
|
|
43
|
+
- python-automation.generate
|
|
44
|
+
- python-automation.review
|
|
45
|
+
priority: 50
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
id: python-automation-builder.generate-automation-project-files
|
|
2
|
+
kind: capability
|
|
3
|
+
name: Generate Automation Project Files
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
status: draft
|
|
6
|
+
purpose: Planejar ou escrever pacote local de automacao Python.
|
|
7
|
+
entrypoint:
|
|
8
|
+
runner: runner.py
|
|
9
|
+
workflow: workflow.md
|
|
10
|
+
output_template: ../../templates/automation-readme.md
|
|
11
|
+
inputs:
|
|
12
|
+
required:
|
|
13
|
+
- spec
|
|
14
|
+
optional:
|
|
15
|
+
- execute
|
|
16
|
+
- allow-overwrite
|
|
17
|
+
outputs:
|
|
18
|
+
artifacts:
|
|
19
|
+
- python-automation-project-files.json
|
|
20
|
+
write_policy: local_write
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Runner for python-automation-builder/generate-automation-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" / "python-automation"
|
|
13
|
+
sys.path.insert(0, str(REPOSITORY_DIR))
|
|
14
|
+
|
|
15
|
+
from python_automation_repository import PythonAutomationError, PythonAutomationRepository # noqa: E402
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def main() -> int:
|
|
19
|
+
parser = argparse.ArgumentParser(description="Generate Python automation 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 = PythonAutomationRepository().generate_automation_project_files(
|
|
27
|
+
spec_path=Path(args.spec),
|
|
28
|
+
execute=args.execute,
|
|
29
|
+
allow_overwrite=args.allow_overwrite,
|
|
30
|
+
)
|
|
31
|
+
except PythonAutomationError 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,18 @@
|
|
|
1
|
+
id: python-automation-builder.generate-python-automation
|
|
2
|
+
kind: capability
|
|
3
|
+
name: Generate Python Automation
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
status: draft
|
|
6
|
+
purpose: Gerar script Python seguro em modo output-only.
|
|
7
|
+
entrypoint:
|
|
8
|
+
runner: runner.py
|
|
9
|
+
workflow: workflow.md
|
|
10
|
+
output_template: ../../templates/automation.py
|
|
11
|
+
inputs:
|
|
12
|
+
required:
|
|
13
|
+
- spec
|
|
14
|
+
optional: []
|
|
15
|
+
outputs:
|
|
16
|
+
artifacts:
|
|
17
|
+
- automation.py
|
|
18
|
+
write_policy: output_only
|