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,481 @@
|
|
|
1
|
+
"""Repository for deterministic automation architecture decisions."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import re
|
|
7
|
+
import unicodedata
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from typing import Any
|
|
10
|
+
|
|
11
|
+
import yaml
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
AUTOMATION_TYPES = {"python", "playwright", "selenium", "pyautogui", "lambda", "docker", "scheduler", "manual"}
|
|
15
|
+
FORBIDDEN_MARKER_PATTERN = re.compile(r"\b(?:SECRET|TOKEN|PASSWORD|API_KEY|PRIVATE_KEY)\b\s*[:=]", re.IGNORECASE)
|
|
16
|
+
|
|
17
|
+
DELEGATES: dict[str, dict[str, Any]] = {
|
|
18
|
+
"python": {
|
|
19
|
+
"agent_id": "python-automation-builder",
|
|
20
|
+
"capability_id": "plan-python-automation",
|
|
21
|
+
"write_policy": "read_only",
|
|
22
|
+
"available": True,
|
|
23
|
+
},
|
|
24
|
+
"selenium": {
|
|
25
|
+
"agent_id": "selenium-automation-builder",
|
|
26
|
+
"capability_id": "plan-selenium-automation",
|
|
27
|
+
"write_policy": "read_only",
|
|
28
|
+
"available": True,
|
|
29
|
+
},
|
|
30
|
+
"pyautogui": {
|
|
31
|
+
"agent_id": "pyautogui-automation-builder",
|
|
32
|
+
"capability_id": "plan-desktop-automation",
|
|
33
|
+
"write_policy": "read_only",
|
|
34
|
+
"available": True,
|
|
35
|
+
},
|
|
36
|
+
"lambda": {
|
|
37
|
+
"agent_id": "aws-lambda-builder",
|
|
38
|
+
"capability_id": "plan-lambda",
|
|
39
|
+
"write_policy": "read_only",
|
|
40
|
+
"available": True,
|
|
41
|
+
},
|
|
42
|
+
"docker": {
|
|
43
|
+
"agent_id": "docker-container-builder",
|
|
44
|
+
"capability_id": "analyze-containerization-target",
|
|
45
|
+
"write_policy": "read_only",
|
|
46
|
+
"available": True,
|
|
47
|
+
},
|
|
48
|
+
"scheduler": {
|
|
49
|
+
"agent_id": "execution-loop-builder",
|
|
50
|
+
"capability_id": "plan-execution-loop",
|
|
51
|
+
"write_policy": "read_only",
|
|
52
|
+
"available": True,
|
|
53
|
+
},
|
|
54
|
+
"playwright": {
|
|
55
|
+
"agent_id": "playwright-automation-builder",
|
|
56
|
+
"capability_id": "plan-playwright-automation",
|
|
57
|
+
"write_policy": "read_only",
|
|
58
|
+
"available": True,
|
|
59
|
+
},
|
|
60
|
+
"manual": {
|
|
61
|
+
"agent_id": None,
|
|
62
|
+
"capability_id": None,
|
|
63
|
+
"write_policy": "read_only",
|
|
64
|
+
"available": False,
|
|
65
|
+
"blocked_reason": "needs-human-runbook-or-more-context",
|
|
66
|
+
},
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
SIGNALS: dict[str, set[str]] = {
|
|
70
|
+
"api": {"api", "rest", "graphql", "endpoint", "webhook", "http", "requests"},
|
|
71
|
+
"file": {"arquivo", "arquivos", "csv", "json", "xlsx", "planilha", "relatorio", "pasta", "log"},
|
|
72
|
+
"python": {"python", "script", "requests", "pandas", "csv", "arquivo", "arquivos", "local"},
|
|
73
|
+
"web": {"web", "site", "browser", "navegador", "pagina", "formulario", "login"},
|
|
74
|
+
"selenium": {"selenium", "webdriver", "grid", "selenium-grid", "legacy-browser"},
|
|
75
|
+
"playwright": {"playwright"},
|
|
76
|
+
"desktop": {"desktop", "janela", "clique", "clicar", "teclado", "mouse", "screenshot", "tela", "pyautogui"},
|
|
77
|
+
"lambda": {"lambda", "serverless", "eventbridge", "s3", "cloudwatch", "aws", "evento", "event-driven"},
|
|
78
|
+
"docker": {"docker", "dockerfile", "compose", "container", "containerizar", "imagem", "build"},
|
|
79
|
+
"scheduler": {"agenda", "agendado", "agendar", "cron", "periodico", "diario", "retry", "loop", "repetir", "recorrente"},
|
|
80
|
+
"external_write": {"postar", "enviar", "atualizar", "deletar", "apagar", "criar", "alterar", "write", "delete", "deploy"},
|
|
81
|
+
"destructive": {"deletar", "apagar", "remover", "drop", "truncate", "destrutivo"},
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class AutomationArchitectureError(RuntimeError):
|
|
86
|
+
"""Raised when the automation architect cannot read input."""
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class AutomationArchitectureRepository:
|
|
90
|
+
def classify_automation_request(self, *, request: str | None = None, spec_path: Path | None = None) -> dict[str, Any]:
|
|
91
|
+
loaded = self.load_request(request=request, spec_path=spec_path)
|
|
92
|
+
if loaded["status"] != "ok":
|
|
93
|
+
return loaded
|
|
94
|
+
|
|
95
|
+
text = loaded["text"]
|
|
96
|
+
normalized = normalize(text)
|
|
97
|
+
scores = self.score_types(normalized)
|
|
98
|
+
automation_type, score = self.choose_type(scores, normalized)
|
|
99
|
+
evidence = self.evidence(normalized)
|
|
100
|
+
confidence = self.confidence_label(score, evidence, automation_type)
|
|
101
|
+
delegate = DELEGATES[automation_type]
|
|
102
|
+
risks = self.risks_for(automation_type, confidence, evidence, text, delegate)
|
|
103
|
+
questions = self.questions_for(automation_type, confidence, evidence)
|
|
104
|
+
requires_confirmation = confidence == "low" or bool({"external_write", "destructive"} & set(evidence)) or automation_type == "pyautogui"
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
"kind": "automation-classification",
|
|
108
|
+
"status": "needs-input" if confidence == "low" else "ok",
|
|
109
|
+
"automation_type": automation_type,
|
|
110
|
+
"confidence": confidence,
|
|
111
|
+
"score": score,
|
|
112
|
+
"reason": self.reason_for(automation_type, evidence, delegate),
|
|
113
|
+
"evidence": evidence,
|
|
114
|
+
"risks": risks,
|
|
115
|
+
"questions": questions,
|
|
116
|
+
"requires_confirmation": requires_confirmation,
|
|
117
|
+
"recommended_agent": delegate.get("agent_id"),
|
|
118
|
+
"recommended_capability": delegate.get("capability_id"),
|
|
119
|
+
"available_delegate": bool(delegate.get("available")),
|
|
120
|
+
"delegation": self.public_delegate(automation_type),
|
|
121
|
+
"alternatives": self.alternatives_for(automation_type, evidence),
|
|
122
|
+
"write_policy": "read_only",
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
def plan_automation_solution(self, *, request: str | None = None, spec_path: Path | None = None) -> dict[str, Any]:
|
|
126
|
+
classification = self.classify_automation_request(request=request, spec_path=spec_path)
|
|
127
|
+
if classification.get("kind") != "automation-classification":
|
|
128
|
+
return classification
|
|
129
|
+
if not classification.get("automation_type"):
|
|
130
|
+
return classification
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
"kind": "automation-solution-plan",
|
|
134
|
+
"status": classification["status"],
|
|
135
|
+
"classification": classification,
|
|
136
|
+
"contract": {
|
|
137
|
+
"inputs": self.contract_inputs(classification),
|
|
138
|
+
"outputs": self.contract_outputs(classification),
|
|
139
|
+
"side_effects": self.side_effects(classification),
|
|
140
|
+
"execution_mode": self.execution_mode(classification),
|
|
141
|
+
},
|
|
142
|
+
"guardrails": self.guardrails_for(classification),
|
|
143
|
+
"delegation": self.delegation_contract(classification),
|
|
144
|
+
"next_steps": self.next_steps_for(classification),
|
|
145
|
+
"write_policy": "read_only",
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
def delegate_automation_build(self, *, request: str | None = None, spec_path: Path | None = None) -> dict[str, Any]:
|
|
149
|
+
plan = self.plan_automation_solution(request=request, spec_path=spec_path)
|
|
150
|
+
if plan.get("kind") != "automation-solution-plan":
|
|
151
|
+
return plan
|
|
152
|
+
classification = plan["classification"]
|
|
153
|
+
delegation = plan["delegation"]
|
|
154
|
+
return {
|
|
155
|
+
"kind": "automation-delegation",
|
|
156
|
+
"status": "ok" if delegation.get("available") and classification.get("confidence") != "low" else "needs-input",
|
|
157
|
+
"manual_only": True,
|
|
158
|
+
"reason": "Delegacao automatica nao e executada nesta fase; o contrato abaixo deve ser usado pelo operador ou runtime futuro.",
|
|
159
|
+
"classification": classification,
|
|
160
|
+
"delegation": delegation,
|
|
161
|
+
"required_confirmation": classification.get("requires_confirmation"),
|
|
162
|
+
"questions": classification.get("questions", []),
|
|
163
|
+
"write_policy": "delegated",
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
def review_automation_solution(
|
|
167
|
+
self,
|
|
168
|
+
*,
|
|
169
|
+
request: str | None = None,
|
|
170
|
+
spec_path: Path | None = None,
|
|
171
|
+
solution: str | None = None,
|
|
172
|
+
) -> dict[str, Any]:
|
|
173
|
+
plan = self.plan_automation_solution(request=request, spec_path=spec_path)
|
|
174
|
+
if plan.get("kind") != "automation-solution-plan":
|
|
175
|
+
return plan
|
|
176
|
+
|
|
177
|
+
solution_text = solution or ""
|
|
178
|
+
normalized_solution = normalize(solution_text)
|
|
179
|
+
findings = list(plan["classification"].get("risks", []))
|
|
180
|
+
if FORBIDDEN_MARKER_PATTERN.search(solution_text):
|
|
181
|
+
findings.append("solution appears to contain a hardcoded secret marker")
|
|
182
|
+
if "pyautogui" in normalized_solution and "ultimo recurso" not in normalized_solution and "last resort" not in normalized_solution:
|
|
183
|
+
findings.append("PyAutoGUI usage must justify why API, CLI, browser automation or native automation cannot be used")
|
|
184
|
+
if ("selenium" in normalized_solution or "pyautogui" in normalized_solution) and "api" in plan["classification"].get("evidence", []):
|
|
185
|
+
findings.append("visual/browser automation should not replace an available API without justification")
|
|
186
|
+
if "execute" in normalized_solution and "--dry-run" not in normalized_solution and "dry-run" not in normalized_solution:
|
|
187
|
+
findings.append("automation execution should expose dry-run before real side effects")
|
|
188
|
+
|
|
189
|
+
valid = not findings or all("low confidence" in finding for finding in findings)
|
|
190
|
+
return {
|
|
191
|
+
"kind": "automation-review",
|
|
192
|
+
"status": "ok" if valid else "failed",
|
|
193
|
+
"valid": valid,
|
|
194
|
+
"classification": plan["classification"],
|
|
195
|
+
"findings": findings,
|
|
196
|
+
"required_confirmation": plan["classification"].get("requires_confirmation"),
|
|
197
|
+
"write_policy": "read_only",
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
def load_request(self, *, request: str | None, spec_path: Path | None) -> dict[str, Any]:
|
|
201
|
+
parts: list[str] = []
|
|
202
|
+
if request and request.strip():
|
|
203
|
+
parts.append(request.strip())
|
|
204
|
+
if spec_path:
|
|
205
|
+
if not spec_path.exists():
|
|
206
|
+
raise AutomationArchitectureError(f"spec not found: {spec_path}")
|
|
207
|
+
parts.append(self.spec_text(spec_path))
|
|
208
|
+
if not parts:
|
|
209
|
+
return {
|
|
210
|
+
"kind": "automation-classification",
|
|
211
|
+
"status": "needs-input",
|
|
212
|
+
"missing_fields": ["request"],
|
|
213
|
+
"questions": ["Qual tarefa deve ser automatizada e em qual sistema/ambiente?"],
|
|
214
|
+
"write_policy": "read_only",
|
|
215
|
+
}
|
|
216
|
+
return {"status": "ok", "text": "\n".join(parts)}
|
|
217
|
+
|
|
218
|
+
def spec_text(self, path: Path) -> str:
|
|
219
|
+
raw = path.read_text(encoding="utf-8")
|
|
220
|
+
if path.suffix.lower() == ".json":
|
|
221
|
+
data = json.loads(raw)
|
|
222
|
+
else:
|
|
223
|
+
data = yaml.safe_load(raw) or {}
|
|
224
|
+
if isinstance(data, dict):
|
|
225
|
+
return " ".join(flatten_mapping(data))
|
|
226
|
+
if isinstance(data, list):
|
|
227
|
+
return " ".join(str(item) for item in data)
|
|
228
|
+
return str(data)
|
|
229
|
+
|
|
230
|
+
def score_types(self, normalized: str) -> dict[str, int]:
|
|
231
|
+
evidence = set(self.evidence(normalized))
|
|
232
|
+
scores = {automation_type: 0 for automation_type in AUTOMATION_TYPES}
|
|
233
|
+
|
|
234
|
+
if evidence & {"api", "file"}:
|
|
235
|
+
scores["python"] += 5
|
|
236
|
+
if "python" in evidence:
|
|
237
|
+
scores["python"] += 5
|
|
238
|
+
if "web" in evidence:
|
|
239
|
+
scores["playwright"] += 4
|
|
240
|
+
if "playwright" in evidence:
|
|
241
|
+
scores["playwright"] += 7
|
|
242
|
+
if "selenium" in evidence:
|
|
243
|
+
scores["selenium"] += 8
|
|
244
|
+
scores["playwright"] -= 2
|
|
245
|
+
if "desktop" in evidence:
|
|
246
|
+
scores["pyautogui"] += 7
|
|
247
|
+
if "lambda" in evidence:
|
|
248
|
+
scores["lambda"] += 8
|
|
249
|
+
if "docker" in evidence:
|
|
250
|
+
scores["docker"] += 8
|
|
251
|
+
if "scheduler" in evidence:
|
|
252
|
+
scores["scheduler"] += 6
|
|
253
|
+
if evidence == {"scheduler"}:
|
|
254
|
+
scores["scheduler"] += 2
|
|
255
|
+
if "api" in evidence and "web" in evidence:
|
|
256
|
+
scores["python"] += 3
|
|
257
|
+
scores["playwright"] -= 2
|
|
258
|
+
if "docker" in evidence and "lambda" not in evidence:
|
|
259
|
+
scores["python"] -= 2
|
|
260
|
+
if not evidence:
|
|
261
|
+
scores["manual"] = 1
|
|
262
|
+
return scores
|
|
263
|
+
|
|
264
|
+
def choose_type(self, scores: dict[str, int], normalized: str) -> tuple[str, int]:
|
|
265
|
+
if "playwright" in normalized:
|
|
266
|
+
return "playwright", max(scores["playwright"], 8)
|
|
267
|
+
if "selenium" in normalized or "webdriver" in normalized:
|
|
268
|
+
return "selenium", max(scores["selenium"], 8)
|
|
269
|
+
if "pyautogui" in normalized:
|
|
270
|
+
return "pyautogui", max(scores["pyautogui"], 8)
|
|
271
|
+
best_type, best_score = max(scores.items(), key=lambda item: (item[1], item[0]))
|
|
272
|
+
if best_score <= 0:
|
|
273
|
+
return "manual", 1
|
|
274
|
+
return best_type, best_score
|
|
275
|
+
|
|
276
|
+
def evidence(self, normalized: str) -> list[str]:
|
|
277
|
+
tokens = set(re.findall(r"[a-z0-9][a-z0-9._-]*", normalized))
|
|
278
|
+
found: list[str] = []
|
|
279
|
+
for kind, words in SIGNALS.items():
|
|
280
|
+
if words & tokens or any(word in normalized for word in words if len(word) >= 6):
|
|
281
|
+
found.append(kind)
|
|
282
|
+
if "api" in found and has_negated_api(normalized):
|
|
283
|
+
found.remove("api")
|
|
284
|
+
return found
|
|
285
|
+
|
|
286
|
+
def confidence_label(self, score: int, evidence: list[str], automation_type: str) -> str:
|
|
287
|
+
if automation_type == "manual" or score < 4:
|
|
288
|
+
return "low"
|
|
289
|
+
if score >= 8:
|
|
290
|
+
return "high"
|
|
291
|
+
if score >= 5 and evidence:
|
|
292
|
+
return "medium"
|
|
293
|
+
return "low"
|
|
294
|
+
|
|
295
|
+
def reason_for(self, automation_type: str, evidence: list[str], delegate: dict[str, Any]) -> str:
|
|
296
|
+
if automation_type == "python":
|
|
297
|
+
return "Pedido favorece automacao deterministica por API, arquivo, CLI ou script local."
|
|
298
|
+
if automation_type == "playwright":
|
|
299
|
+
return "Pedido favorece automacao web moderna sem API explicita; Playwright e o builder recomendado."
|
|
300
|
+
if automation_type == "selenium":
|
|
301
|
+
return "Pedido menciona Selenium/WebDriver ou requisito legado especifico."
|
|
302
|
+
if automation_type == "pyautogui":
|
|
303
|
+
return "Pedido parece depender de interface desktop/visual; usar apenas se nao houver alternativa melhor."
|
|
304
|
+
if automation_type == "lambda":
|
|
305
|
+
return "Pedido aponta para execucao cloud, serverless ou event-driven."
|
|
306
|
+
if automation_type == "docker":
|
|
307
|
+
return "Pedido aponta para empacotamento, imagem, compose ou reprodutibilidade de ambiente."
|
|
308
|
+
if automation_type == "scheduler":
|
|
309
|
+
return "Pedido aponta para agendamento, repeticao controlada, retry ou loop operacional."
|
|
310
|
+
if not delegate.get("available"):
|
|
311
|
+
return "Contexto insuficiente para escolher builder especializado com seguranca."
|
|
312
|
+
return f"Classificacao baseada nos sinais: {', '.join(evidence) or '-'}."
|
|
313
|
+
|
|
314
|
+
def risks_for(self, automation_type: str, confidence: str, evidence: list[str], text: str, delegate: dict[str, Any]) -> list[str]:
|
|
315
|
+
risks: list[str] = []
|
|
316
|
+
if confidence == "low":
|
|
317
|
+
risks.append("low confidence: missing target, environment or side-effect details")
|
|
318
|
+
if "external_write" in evidence:
|
|
319
|
+
risks.append("external write requires explicit policy and confirmation")
|
|
320
|
+
if "destructive" in evidence:
|
|
321
|
+
risks.append("destructive operation must be blocked by default")
|
|
322
|
+
if automation_type == "pyautogui":
|
|
323
|
+
risks.append("desktop visual automation is fragile and must be a last resort")
|
|
324
|
+
if automation_type == "playwright":
|
|
325
|
+
risks.append("browser automation can expose sensitive UI data in screenshots and traces")
|
|
326
|
+
if FORBIDDEN_MARKER_PATTERN.search(text):
|
|
327
|
+
risks.append("request appears to contain a hardcoded secret marker")
|
|
328
|
+
return risks
|
|
329
|
+
|
|
330
|
+
def questions_for(self, automation_type: str, confidence: str, evidence: list[str]) -> list[str]:
|
|
331
|
+
questions: list[str] = []
|
|
332
|
+
if confidence == "low":
|
|
333
|
+
questions.append("Qual sistema, arquivo, API, pagina ou aplicacao deve ser automatizado?")
|
|
334
|
+
questions.append("A automacao deve apenas ler dados ou tambem escrever/alterar algo?")
|
|
335
|
+
if automation_type == "pyautogui":
|
|
336
|
+
questions.append("Existe API, CLI, arquivo, automacao nativa ou alternativa web antes de usar PyAutoGUI?")
|
|
337
|
+
if automation_type == "playwright":
|
|
338
|
+
questions.append("Existe API documentada que possa substituir a automacao do navegador?")
|
|
339
|
+
if "scheduler" in evidence:
|
|
340
|
+
questions.append("Qual frequencia, criterio de parada e budget maximo de execucao?")
|
|
341
|
+
return questions
|
|
342
|
+
|
|
343
|
+
def public_delegate(self, automation_type: str) -> dict[str, Any]:
|
|
344
|
+
delegate = dict(DELEGATES[automation_type])
|
|
345
|
+
return {
|
|
346
|
+
"agent_id": delegate.get("agent_id"),
|
|
347
|
+
"capability_id": delegate.get("capability_id"),
|
|
348
|
+
"available": bool(delegate.get("available")),
|
|
349
|
+
"write_policy": delegate.get("write_policy"),
|
|
350
|
+
"blocked_reason": delegate.get("blocked_reason"),
|
|
351
|
+
"related_problem": delegate.get("related_problem"),
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
def alternatives_for(self, automation_type: str, evidence: list[str]) -> list[dict[str, str]]:
|
|
355
|
+
alternatives: list[dict[str, str]] = []
|
|
356
|
+
if automation_type != "python":
|
|
357
|
+
alternatives.append({"automation_type": "python", "reason": "Preferivel quando API, CLI ou arquivos forem suficientes."})
|
|
358
|
+
if automation_type not in {"playwright", "selenium"} and "web" in evidence:
|
|
359
|
+
alternatives.append({"automation_type": "playwright", "reason": "Opcao natural para web moderna sem API."})
|
|
360
|
+
if automation_type != "docker":
|
|
361
|
+
alternatives.append({"automation_type": "docker", "reason": "Util se o problema incluir empacotamento ou reprodutibilidade."})
|
|
362
|
+
if automation_type != "scheduler" and "scheduler" in evidence:
|
|
363
|
+
alternatives.append({"automation_type": "scheduler", "reason": "Util quando a execucao precisa repetir com criterio de parada."})
|
|
364
|
+
return alternatives[:3]
|
|
365
|
+
|
|
366
|
+
def delegation_contract(self, classification: dict[str, Any]) -> dict[str, Any]:
|
|
367
|
+
delegate = classification["delegation"]
|
|
368
|
+
return {
|
|
369
|
+
"available": delegate.get("available"),
|
|
370
|
+
"agent_id": delegate.get("agent_id"),
|
|
371
|
+
"capability_id": delegate.get("capability_id"),
|
|
372
|
+
"write_policy": delegate.get("write_policy"),
|
|
373
|
+
"manual_command": self.manual_command(delegate),
|
|
374
|
+
"expected_inputs": self.expected_inputs(classification),
|
|
375
|
+
"blocked_reason": delegate.get("blocked_reason"),
|
|
376
|
+
"related_problem": delegate.get("related_problem"),
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
def manual_command(self, delegate: dict[str, Any]) -> str | None:
|
|
380
|
+
if not delegate.get("available"):
|
|
381
|
+
return None
|
|
382
|
+
return f"agent run {delegate['agent_id']} {delegate['capability_id']} --spec <automation-spec.yaml>"
|
|
383
|
+
|
|
384
|
+
def expected_inputs(self, classification: dict[str, Any]) -> list[str]:
|
|
385
|
+
automation_type = classification.get("automation_type")
|
|
386
|
+
if automation_type in {"python", "selenium", "pyautogui"}:
|
|
387
|
+
return ["automation_name", "purpose", "inputs", "outputs", "systems", "side_effects"]
|
|
388
|
+
if automation_type == "playwright":
|
|
389
|
+
return ["automation_name", "purpose", "target_url", "selectors", "steps", "assertions", "auth_strategy", "side_effects"]
|
|
390
|
+
if automation_type == "lambda":
|
|
391
|
+
return ["function_name", "runtime", "trigger", "inputs", "outputs", "iam_permissions"]
|
|
392
|
+
if automation_type == "docker":
|
|
393
|
+
return ["target_project", "runtime", "ports", "environment", "build_context"]
|
|
394
|
+
if automation_type == "scheduler":
|
|
395
|
+
return ["task_name", "frequency", "stop_criteria", "budget", "side_effects"]
|
|
396
|
+
return ["request", "target_system", "side_effects"]
|
|
397
|
+
|
|
398
|
+
def contract_inputs(self, classification: dict[str, Any]) -> list[str]:
|
|
399
|
+
return self.expected_inputs(classification)
|
|
400
|
+
|
|
401
|
+
def contract_outputs(self, classification: dict[str, Any]) -> list[str]:
|
|
402
|
+
automation_type = classification.get("automation_type")
|
|
403
|
+
if automation_type == "docker":
|
|
404
|
+
return ["Dockerfile", "docker-compose.yml", "README.docker.md"]
|
|
405
|
+
if automation_type == "lambda":
|
|
406
|
+
return ["lambda project", "deployment plan", "security review"]
|
|
407
|
+
if automation_type == "scheduler":
|
|
408
|
+
return ["loop plan", "runner", "registration plan"]
|
|
409
|
+
if automation_type in {"python", "selenium", "pyautogui"}:
|
|
410
|
+
return ["script", "tests", "README", "capability wrapper plan"]
|
|
411
|
+
if automation_type == "playwright":
|
|
412
|
+
return ["playwright script", "screenshots/traces", "tests", "README", "capability wrapper plan"]
|
|
413
|
+
return ["runbook", "open questions"]
|
|
414
|
+
|
|
415
|
+
def side_effects(self, classification: dict[str, Any]) -> str:
|
|
416
|
+
evidence = set(classification.get("evidence", []))
|
|
417
|
+
if "destructive" in evidence:
|
|
418
|
+
return "destructive-blocked"
|
|
419
|
+
if "external_write" in evidence:
|
|
420
|
+
return "external-write-confirm"
|
|
421
|
+
return "read-or-local-write"
|
|
422
|
+
|
|
423
|
+
def execution_mode(self, classification: dict[str, Any]) -> str:
|
|
424
|
+
automation_type = classification.get("automation_type")
|
|
425
|
+
if automation_type == "lambda":
|
|
426
|
+
return "cloud-event-driven"
|
|
427
|
+
if automation_type == "scheduler":
|
|
428
|
+
return "controlled-loop-or-scheduled-task"
|
|
429
|
+
if automation_type == "docker":
|
|
430
|
+
return "local-build-plan"
|
|
431
|
+
return "manual-or-local-runner"
|
|
432
|
+
|
|
433
|
+
def guardrails_for(self, classification: dict[str, Any]) -> list[str]:
|
|
434
|
+
guardrails = [
|
|
435
|
+
"Nao hardcodar credenciais.",
|
|
436
|
+
"Expor dry-run antes de execucao real.",
|
|
437
|
+
"Preservar logs redigidos e saida previsivel.",
|
|
438
|
+
"Bloquear escrita externa sem confirmacao explicita.",
|
|
439
|
+
]
|
|
440
|
+
if classification.get("automation_type") == "pyautogui":
|
|
441
|
+
guardrails.append("Exigir failsafe, screenshots e justificativa de ultimo recurso.")
|
|
442
|
+
if classification.get("automation_type") in {"playwright", "selenium"}:
|
|
443
|
+
guardrails.append("Preferir API documentada quando existir.")
|
|
444
|
+
return guardrails
|
|
445
|
+
|
|
446
|
+
def next_steps_for(self, classification: dict[str, Any]) -> list[str]:
|
|
447
|
+
if classification.get("confidence") == "low":
|
|
448
|
+
return ["Responder perguntas pendentes antes de gerar artefatos."]
|
|
449
|
+
if not classification.get("available_delegate"):
|
|
450
|
+
return ["Refinar contexto ou aguardar builder especializado antes de delegar."]
|
|
451
|
+
return [
|
|
452
|
+
"Criar spec do builder recomendado com entradas, saidas, sistemas e side effects.",
|
|
453
|
+
"Executar capability de planejamento do builder recomendado.",
|
|
454
|
+
"Revisar o artefato antes de qualquer execucao real.",
|
|
455
|
+
]
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
def normalize(value: str) -> str:
|
|
459
|
+
decomposed = unicodedata.normalize("NFD", value.lower())
|
|
460
|
+
return "".join(ch for ch in decomposed if unicodedata.category(ch) != "Mn")
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
def has_negated_api(normalized: str) -> bool:
|
|
464
|
+
return bool(
|
|
465
|
+
re.search(r"\bsem\s+(?:uma\s+|nenhuma\s+)?api\b", normalized)
|
|
466
|
+
or re.search(r"\bnao\s+(?:ha|existe|possui|tem)\s+(?:uma\s+|nenhuma\s+)?api\b", normalized)
|
|
467
|
+
or re.search(r"\bno\s+api\b", normalized)
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
def flatten_mapping(value: dict[str, Any]) -> list[str]:
|
|
472
|
+
parts: list[str] = []
|
|
473
|
+
for key, item in value.items():
|
|
474
|
+
parts.append(str(key))
|
|
475
|
+
if isinstance(item, dict):
|
|
476
|
+
parts.extend(flatten_mapping(item))
|
|
477
|
+
elif isinstance(item, list):
|
|
478
|
+
parts.extend(str(entry) for entry in item)
|
|
479
|
+
else:
|
|
480
|
+
parts.append(str(item))
|
|
481
|
+
return parts
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Contexto
|
|
2
|
+
|
|
3
|
+
O Agent DevKit possui builders especializados para automacoes Python, Selenium,
|
|
4
|
+
PyAutoGUI, Lambda, Docker e loops de execucao. Este agente fica acima deles e
|
|
5
|
+
decide qual caminho usar.
|
|
6
|
+
|
|
7
|
+
Heuristica principal:
|
|
8
|
+
|
|
9
|
+
1. Preferir API, CLI ou repository quando disponivel.
|
|
10
|
+
2. Usar Python deterministico para automacoes locais, arquivos, APIs simples e
|
|
11
|
+
tarefas repetitivas.
|
|
12
|
+
3. Usar Selenium apenas quando houver requisito explicito de WebDriver, Selenium
|
|
13
|
+
Grid ou legado.
|
|
14
|
+
4. Usar PyAutoGUI apenas como ultimo recurso para aplicacao desktop sem API.
|
|
15
|
+
5. Usar Lambda quando a automacao for event-driven, cloud/serverless ou precisar
|
|
16
|
+
execucao gerenciada.
|
|
17
|
+
6. Usar Docker quando o problema central for empacotamento, isolamento ou
|
|
18
|
+
reprodutibilidade.
|
|
19
|
+
7. Usar loop engineering quando houver repeticao controlada, retry, budget,
|
|
20
|
+
criterio de parada ou agendamento local.
|
|
21
|
+
8. Playwright e uma recomendacao valida para web sem API, mas ainda nao possui
|
|
22
|
+
builder versionado neste item.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
automation_architecture:
|
|
2
|
+
supported_scope: automation-classification-and-planning
|
|
3
|
+
external_execution: blocked_by_default
|
|
4
|
+
delegation_execution: manual_contract_only
|
|
5
|
+
prefer:
|
|
6
|
+
- api
|
|
7
|
+
- cli
|
|
8
|
+
- repository
|
|
9
|
+
- deterministic-python
|
|
10
|
+
avoid:
|
|
11
|
+
- visual-automation-without-justification
|
|
12
|
+
- hardcoded-secrets
|
|
13
|
+
- external-writes-without-policy
|
|
14
|
+
- cloud-automation-without-operational-need
|
|
15
|
+
confirmation_required_when:
|
|
16
|
+
- confidence-low
|
|
17
|
+
- destructive-side-effects
|
|
18
|
+
- external-write
|
|
19
|
+
- desktop-visual-automation
|
|
20
|
+
- missing-target-system
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# System
|
|
2
|
+
|
|
3
|
+
Voce e o `automation-architect`, especialista em decidir como uma automacao deve
|
|
4
|
+
ser construida no Agent DevKit.
|
|
5
|
+
|
|
6
|
+
Seu trabalho e classificar, planejar e delegar. Voce nao substitui os builders
|
|
7
|
+
especializados e nao executa efeitos externos. Quando houver baixa confianca,
|
|
8
|
+
deve pedir contexto antes de recomendar uma automacao fragil.
|