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,527 @@
|
|
|
1
|
+
"""Repository for deterministic Agent DevKit agent scaffolding."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import re
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Any
|
|
9
|
+
|
|
10
|
+
import yaml
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
KEBAB_CASE = re.compile(r"^[a-z0-9]+(?:-[a-z0-9]+)*$")
|
|
14
|
+
REQUIRED_SPEC_FIELDS = ("agent_id", "name", "purpose", "domain", "capabilities")
|
|
15
|
+
CANONICAL_WRITE_POLICIES = {
|
|
16
|
+
"read_only",
|
|
17
|
+
"dry_run",
|
|
18
|
+
"output_only",
|
|
19
|
+
"local_write",
|
|
20
|
+
"local_config_write",
|
|
21
|
+
"confirm",
|
|
22
|
+
"blocked_by_default",
|
|
23
|
+
"delegated",
|
|
24
|
+
}
|
|
25
|
+
FORBIDDEN_TEXT_MARKERS = ("SECRET", "TOKEN", "PASSWORD", "API_KEY", "PRIVATE_KEY")
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AgentBuilderError(RuntimeError):
|
|
29
|
+
"""Raised when the builder cannot read or process an input spec."""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class AgentBuilderRepository:
|
|
33
|
+
def __init__(self, root: Path | None = None) -> None:
|
|
34
|
+
self.root = root or Path(__file__).resolve().parents[5]
|
|
35
|
+
self.agents_dir = self.root / "agents"
|
|
36
|
+
|
|
37
|
+
def plan_agent(self, *, spec_path: Path) -> dict[str, Any]:
|
|
38
|
+
spec = self.load_spec(spec_path)
|
|
39
|
+
spec_result = self.validate_spec(spec)
|
|
40
|
+
if spec_result["status"] != "ok":
|
|
41
|
+
return spec_result
|
|
42
|
+
|
|
43
|
+
normalized = self.normalize_spec(spec)
|
|
44
|
+
blocked = self.detect_forbidden_content(normalized)
|
|
45
|
+
if blocked:
|
|
46
|
+
return blocked
|
|
47
|
+
|
|
48
|
+
files = self.build_files(normalized)
|
|
49
|
+
return {
|
|
50
|
+
"kind": "agent-builder-plan",
|
|
51
|
+
"status": "ok",
|
|
52
|
+
"agent": self.agent_summary(normalized),
|
|
53
|
+
"capabilities": [self.capability_summary(item) for item in normalized["capabilities"]],
|
|
54
|
+
"providers": normalized.get("providers", []),
|
|
55
|
+
"risk_profile": normalized.get("risk_profile", "medium"),
|
|
56
|
+
"planned_files": self.public_file_plan(files),
|
|
57
|
+
"questions": self.open_questions(normalized),
|
|
58
|
+
"write_policy": "read_only",
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
def scaffold_agent(
|
|
62
|
+
self,
|
|
63
|
+
*,
|
|
64
|
+
spec_path: Path,
|
|
65
|
+
execute: bool = False,
|
|
66
|
+
allow_overwrite: bool = False,
|
|
67
|
+
) -> dict[str, Any]:
|
|
68
|
+
plan = self.plan_agent(spec_path=spec_path)
|
|
69
|
+
if plan["status"] != "ok":
|
|
70
|
+
return plan
|
|
71
|
+
|
|
72
|
+
agent_id = plan["agent"]["id"]
|
|
73
|
+
agent_root = self.agents_dir / agent_id
|
|
74
|
+
if agent_root.exists() and not allow_overwrite:
|
|
75
|
+
return {
|
|
76
|
+
"kind": "agent-builder-scaffold",
|
|
77
|
+
"status": "blocked",
|
|
78
|
+
"reason": "agent_exists",
|
|
79
|
+
"agent": plan["agent"],
|
|
80
|
+
"risks": ["Agent directory already exists and overwrite was not explicitly allowed."],
|
|
81
|
+
"next_steps": ["Use a different agent_id or rerun with --allow-overwrite after reviewing the existing agent."],
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
files = self.build_files(self.normalize_spec(self.load_spec(spec_path)))
|
|
85
|
+
if not execute:
|
|
86
|
+
return {
|
|
87
|
+
"kind": "agent-builder-scaffold",
|
|
88
|
+
"status": "planned",
|
|
89
|
+
"dry_run": True,
|
|
90
|
+
"agent": plan["agent"],
|
|
91
|
+
"planned_files": self.public_file_plan(files),
|
|
92
|
+
"next_steps": ["Rerun with --execute --confirm-execute to write files locally."],
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
written_files = []
|
|
96
|
+
for relative_path, content in files:
|
|
97
|
+
target = (self.root / relative_path).resolve()
|
|
98
|
+
if not self.is_inside(agent_root.resolve(), target):
|
|
99
|
+
return {
|
|
100
|
+
"kind": "agent-builder-scaffold",
|
|
101
|
+
"status": "blocked",
|
|
102
|
+
"reason": "path_outside_agent",
|
|
103
|
+
"agent": plan["agent"],
|
|
104
|
+
"path": relative_path,
|
|
105
|
+
}
|
|
106
|
+
target.parent.mkdir(parents=True, exist_ok=True)
|
|
107
|
+
target.write_text(content, encoding="utf-8")
|
|
108
|
+
written_files.append({"path": relative_path, "bytes": len(content.encode("utf-8"))})
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
"kind": "agent-builder-scaffold",
|
|
112
|
+
"status": "written",
|
|
113
|
+
"dry_run": False,
|
|
114
|
+
"agent": plan["agent"],
|
|
115
|
+
"written_files": written_files,
|
|
116
|
+
"next_steps": [
|
|
117
|
+
f"Run agent run agent-devkit-agent-builder validate-agent-contract --agent-id {agent_id}.",
|
|
118
|
+
"Run scripts/validate-repo.py before considering the agent ready.",
|
|
119
|
+
],
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
def validate_agent_contract(self, *, agent_id: str) -> dict[str, Any]:
|
|
123
|
+
if not KEBAB_CASE.match(agent_id):
|
|
124
|
+
return {
|
|
125
|
+
"kind": "agent-builder-validation",
|
|
126
|
+
"status": "failed",
|
|
127
|
+
"valid": False,
|
|
128
|
+
"agent_id": agent_id,
|
|
129
|
+
"errors": ["agent_id must be kebab-case"],
|
|
130
|
+
"warnings": [],
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
agent_root = self.agents_dir / agent_id
|
|
134
|
+
errors: list[str] = []
|
|
135
|
+
warnings: list[str] = []
|
|
136
|
+
for relative in ("AGENTS.md", "README.md", "agent.yaml"):
|
|
137
|
+
if not (agent_root / relative).exists():
|
|
138
|
+
errors.append(f"missing {relative}")
|
|
139
|
+
for relative in ("capabilities", "knowledge", "templates", "infra"):
|
|
140
|
+
if not (agent_root / relative).is_dir():
|
|
141
|
+
errors.append(f"missing {relative}/")
|
|
142
|
+
|
|
143
|
+
manifest = self.read_yaml(agent_root / "agent.yaml") if (agent_root / "agent.yaml").exists() else {}
|
|
144
|
+
declared_capabilities = manifest.get("capabilities") if isinstance(manifest.get("capabilities"), list) else []
|
|
145
|
+
if not declared_capabilities:
|
|
146
|
+
errors.append("agent.yaml capabilities must declare at least one capability")
|
|
147
|
+
if manifest.get("id") and manifest.get("id") != agent_id:
|
|
148
|
+
errors.append("agent.yaml id does not match directory")
|
|
149
|
+
|
|
150
|
+
for capability_id in declared_capabilities:
|
|
151
|
+
capability_dir = agent_root / "capabilities" / str(capability_id).split(".")[-1]
|
|
152
|
+
capability_manifest = capability_dir / "capability.yaml"
|
|
153
|
+
if not capability_manifest.exists():
|
|
154
|
+
errors.append(f"missing capability manifest: {capability_id}")
|
|
155
|
+
continue
|
|
156
|
+
for relative in ("workflow.md", "decision-rules.md"):
|
|
157
|
+
if not (capability_dir / relative).exists():
|
|
158
|
+
errors.append(f"{capability_id} missing {relative}")
|
|
159
|
+
capability = self.read_yaml(capability_manifest)
|
|
160
|
+
if not capability.get("write_policy"):
|
|
161
|
+
errors.append(f"{capability_id} missing write_policy")
|
|
162
|
+
elif str(capability["write_policy"]) not in CANONICAL_WRITE_POLICIES:
|
|
163
|
+
errors.append(f"{capability_id} has unsupported write_policy: {capability['write_policy']}")
|
|
164
|
+
if not capability.get("entrypoint"):
|
|
165
|
+
warnings.append(f"{capability_id} has no executable runner")
|
|
166
|
+
|
|
167
|
+
valid = not errors
|
|
168
|
+
return {
|
|
169
|
+
"kind": "agent-builder-validation",
|
|
170
|
+
"status": "ok" if valid else "failed",
|
|
171
|
+
"valid": valid,
|
|
172
|
+
"agent_id": agent_id,
|
|
173
|
+
"errors": errors,
|
|
174
|
+
"warnings": warnings,
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
def load_spec(self, path: Path) -> dict[str, Any]:
|
|
178
|
+
if not path.exists():
|
|
179
|
+
raise AgentBuilderError(f"spec not found: {path}")
|
|
180
|
+
text = path.read_text(encoding="utf-8")
|
|
181
|
+
if path.suffix.lower() == ".json":
|
|
182
|
+
payload = json.loads(text)
|
|
183
|
+
else:
|
|
184
|
+
payload = yaml.safe_load(text) or {}
|
|
185
|
+
if not isinstance(payload, dict):
|
|
186
|
+
raise AgentBuilderError("spec must be a mapping")
|
|
187
|
+
return payload
|
|
188
|
+
|
|
189
|
+
def validate_spec(self, spec: dict[str, Any]) -> dict[str, Any]:
|
|
190
|
+
missing = [field for field in REQUIRED_SPEC_FIELDS if not spec.get(field)]
|
|
191
|
+
if missing:
|
|
192
|
+
return {
|
|
193
|
+
"kind": "agent-builder-plan",
|
|
194
|
+
"status": "needs-input",
|
|
195
|
+
"missing_fields": missing,
|
|
196
|
+
"questions": [self.question_for_missing_field(field) for field in missing],
|
|
197
|
+
}
|
|
198
|
+
agent_id = str(spec.get("agent_id") or "").strip()
|
|
199
|
+
if not KEBAB_CASE.match(agent_id):
|
|
200
|
+
return {
|
|
201
|
+
"kind": "agent-builder-plan",
|
|
202
|
+
"status": "blocked",
|
|
203
|
+
"reason": "invalid_agent_id",
|
|
204
|
+
"risks": ["agent_id must be kebab-case and cannot contain path separators."],
|
|
205
|
+
}
|
|
206
|
+
capabilities = spec.get("capabilities")
|
|
207
|
+
if not isinstance(capabilities, list) or not capabilities:
|
|
208
|
+
return {
|
|
209
|
+
"kind": "agent-builder-plan",
|
|
210
|
+
"status": "needs-input",
|
|
211
|
+
"missing_fields": ["capabilities"],
|
|
212
|
+
"questions": [self.question_for_missing_field("capabilities")],
|
|
213
|
+
}
|
|
214
|
+
for item in capabilities:
|
|
215
|
+
if not isinstance(item, dict):
|
|
216
|
+
return {
|
|
217
|
+
"kind": "agent-builder-plan",
|
|
218
|
+
"status": "blocked",
|
|
219
|
+
"reason": "invalid_capability",
|
|
220
|
+
"risks": ["Each capability must be a mapping."],
|
|
221
|
+
}
|
|
222
|
+
capability_id = str(item.get("id") or "").strip()
|
|
223
|
+
if not KEBAB_CASE.match(capability_id):
|
|
224
|
+
return {
|
|
225
|
+
"kind": "agent-builder-plan",
|
|
226
|
+
"status": "blocked",
|
|
227
|
+
"reason": "invalid_capability_id",
|
|
228
|
+
"capability": capability_id,
|
|
229
|
+
"risks": ["Capability ids must be kebab-case."],
|
|
230
|
+
}
|
|
231
|
+
write_policy = str(item.get("write_policy") or "read_only")
|
|
232
|
+
if write_policy not in CANONICAL_WRITE_POLICIES:
|
|
233
|
+
return {
|
|
234
|
+
"kind": "agent-builder-plan",
|
|
235
|
+
"status": "blocked",
|
|
236
|
+
"reason": "invalid_write_policy",
|
|
237
|
+
"capability": capability_id,
|
|
238
|
+
"risks": [f"Unsupported write_policy: {write_policy}"],
|
|
239
|
+
}
|
|
240
|
+
return {"status": "ok"}
|
|
241
|
+
|
|
242
|
+
def normalize_spec(self, spec: dict[str, Any]) -> dict[str, Any]:
|
|
243
|
+
normalized = dict(spec)
|
|
244
|
+
normalized["agent_id"] = str(spec["agent_id"]).strip()
|
|
245
|
+
normalized["name"] = str(spec["name"]).strip()
|
|
246
|
+
normalized["purpose"] = " ".join(str(spec["purpose"]).split())
|
|
247
|
+
normalized["domain"] = str(spec["domain"]).strip()
|
|
248
|
+
normalized["providers"] = list(spec.get("providers") or [])
|
|
249
|
+
normalized["risk_profile"] = str(spec.get("risk_profile") or "medium").strip()
|
|
250
|
+
capabilities = []
|
|
251
|
+
for item in spec["capabilities"]:
|
|
252
|
+
capability = dict(item)
|
|
253
|
+
capability["id"] = str(item["id"]).strip()
|
|
254
|
+
capability["name"] = str(item.get("name") or self.title_from_id(capability["id"]))
|
|
255
|
+
capability["purpose"] = " ".join(str(item.get("purpose") or "").split()) or "Executar a capability declarada."
|
|
256
|
+
capability["write_policy"] = str(item.get("write_policy") or "read_only")
|
|
257
|
+
capabilities.append(capability)
|
|
258
|
+
normalized["capabilities"] = capabilities
|
|
259
|
+
return normalized
|
|
260
|
+
|
|
261
|
+
def detect_forbidden_content(self, spec: dict[str, Any]) -> dict[str, Any] | None:
|
|
262
|
+
values = list(self.iter_strings(spec))
|
|
263
|
+
for value in values:
|
|
264
|
+
upper = value.upper()
|
|
265
|
+
if any(marker in upper for marker in FORBIDDEN_TEXT_MARKERS):
|
|
266
|
+
return {
|
|
267
|
+
"kind": "agent-builder-plan",
|
|
268
|
+
"status": "blocked",
|
|
269
|
+
"reason": "forbidden_sensitive_marker",
|
|
270
|
+
"risks": ["Spec contains text that looks like a secret or credential marker."],
|
|
271
|
+
}
|
|
272
|
+
if "http://" in value or "https://" in value:
|
|
273
|
+
return {
|
|
274
|
+
"kind": "agent-builder-plan",
|
|
275
|
+
"status": "blocked",
|
|
276
|
+
"reason": "forbidden_url",
|
|
277
|
+
"risks": ["Spec contains a URL; move provider endpoints to configuration or a separate decision."],
|
|
278
|
+
}
|
|
279
|
+
return None
|
|
280
|
+
|
|
281
|
+
def build_files(self, spec: dict[str, Any]) -> list[tuple[str, str]]:
|
|
282
|
+
agent_id = spec["agent_id"]
|
|
283
|
+
files: list[tuple[str, str]] = [
|
|
284
|
+
(f"agents/{agent_id}/AGENTS.md", self.render_agents_md(spec)),
|
|
285
|
+
(f"agents/{agent_id}/README.md", self.render_readme(spec)),
|
|
286
|
+
(f"agents/{agent_id}/agent.yaml", self.render_agent_yaml(spec)),
|
|
287
|
+
(f"agents/{agent_id}/knowledge/system.md", self.render_system_md(spec)),
|
|
288
|
+
(f"agents/{agent_id}/knowledge/context.md", self.render_context_md(spec)),
|
|
289
|
+
(f"agents/{agent_id}/knowledge/policies.yaml", self.render_policies_yaml(spec)),
|
|
290
|
+
(f"agents/{agent_id}/templates/README.md", "# Templates\n\nModelos de saida das capabilities deste agente.\n"),
|
|
291
|
+
(f"agents/{agent_id}/infra/README.md", "# Infra\n\nRepositories e integracoes externas deste agente.\n"),
|
|
292
|
+
]
|
|
293
|
+
for capability in spec["capabilities"]:
|
|
294
|
+
capability_id = capability["id"]
|
|
295
|
+
files.extend(
|
|
296
|
+
[
|
|
297
|
+
(
|
|
298
|
+
f"agents/{agent_id}/capabilities/{capability_id}/capability.yaml",
|
|
299
|
+
self.render_capability_yaml(spec, capability),
|
|
300
|
+
),
|
|
301
|
+
(
|
|
302
|
+
f"agents/{agent_id}/capabilities/{capability_id}/workflow.md",
|
|
303
|
+
self.render_workflow_md(spec, capability),
|
|
304
|
+
),
|
|
305
|
+
(
|
|
306
|
+
f"agents/{agent_id}/capabilities/{capability_id}/decision-rules.md",
|
|
307
|
+
self.render_decision_rules_md(spec, capability),
|
|
308
|
+
),
|
|
309
|
+
(
|
|
310
|
+
f"agents/{agent_id}/templates/{capability_id}-output.md",
|
|
311
|
+
self.render_output_template(capability),
|
|
312
|
+
),
|
|
313
|
+
]
|
|
314
|
+
)
|
|
315
|
+
return files
|
|
316
|
+
|
|
317
|
+
def render_agent_yaml(self, spec: dict[str, Any]) -> str:
|
|
318
|
+
payload = {
|
|
319
|
+
"id": spec["agent_id"],
|
|
320
|
+
"kind": "specialist-agent",
|
|
321
|
+
"name": spec["name"],
|
|
322
|
+
"version": "0.1.0",
|
|
323
|
+
"status": "draft",
|
|
324
|
+
"owner": "agent-devkit",
|
|
325
|
+
"purpose": spec["purpose"],
|
|
326
|
+
"default_context": [
|
|
327
|
+
"knowledge/system.md",
|
|
328
|
+
"knowledge/context.md",
|
|
329
|
+
"knowledge/policies.yaml",
|
|
330
|
+
],
|
|
331
|
+
"env": {"required": [], "optional": []},
|
|
332
|
+
"capabilities": [item["id"] for item in spec["capabilities"]],
|
|
333
|
+
"agent_surface": {"policies": ["knowledge/policies.yaml"]},
|
|
334
|
+
"write_policy": {
|
|
335
|
+
"read_operations": "read_only",
|
|
336
|
+
"write_operations": "confirm",
|
|
337
|
+
"external_side_effects": "blocked_by_default",
|
|
338
|
+
},
|
|
339
|
+
"routing": {
|
|
340
|
+
"anchors": [spec["agent_id"], spec["domain"]],
|
|
341
|
+
"intents": [f"{spec['agent_id']}.operate"],
|
|
342
|
+
"priority": 40,
|
|
343
|
+
},
|
|
344
|
+
}
|
|
345
|
+
return yaml.safe_dump(payload, sort_keys=False, allow_unicode=False)
|
|
346
|
+
|
|
347
|
+
def render_capability_yaml(self, spec: dict[str, Any], capability: dict[str, Any]) -> str:
|
|
348
|
+
payload = {
|
|
349
|
+
"id": f"{spec['agent_id']}.{capability['id']}",
|
|
350
|
+
"kind": "capability",
|
|
351
|
+
"name": capability["name"],
|
|
352
|
+
"version": "0.1.0",
|
|
353
|
+
"status": "draft",
|
|
354
|
+
"purpose": capability["purpose"],
|
|
355
|
+
"entrypoint": {
|
|
356
|
+
"workflow": "workflow.md",
|
|
357
|
+
"output_template": f"../../templates/{capability['id']}-output.md",
|
|
358
|
+
},
|
|
359
|
+
"inputs": {"required": [], "optional": []},
|
|
360
|
+
"outputs": {"artifacts": [f"{capability['id']}-output.md"]},
|
|
361
|
+
"write_policy": capability["write_policy"],
|
|
362
|
+
}
|
|
363
|
+
return yaml.safe_dump(payload, sort_keys=False, allow_unicode=False)
|
|
364
|
+
|
|
365
|
+
def render_agents_md(self, spec: dict[str, Any]) -> str:
|
|
366
|
+
return "\n".join(
|
|
367
|
+
[
|
|
368
|
+
f"# {spec['name']}",
|
|
369
|
+
"",
|
|
370
|
+
f"Instrucoes locais para o agente `{spec['agent_id']}`.",
|
|
371
|
+
"",
|
|
372
|
+
"## Responsabilidade",
|
|
373
|
+
"",
|
|
374
|
+
spec["purpose"],
|
|
375
|
+
"",
|
|
376
|
+
"## Guardrails",
|
|
377
|
+
"",
|
|
378
|
+
"- Manter conhecimento detalhado sob demanda.",
|
|
379
|
+
"- Nao persistir segredos ou contexto de cliente.",
|
|
380
|
+
"- Respeitar write_policy das capabilities.",
|
|
381
|
+
"",
|
|
382
|
+
]
|
|
383
|
+
)
|
|
384
|
+
|
|
385
|
+
def render_readme(self, spec: dict[str, Any]) -> str:
|
|
386
|
+
lines = [
|
|
387
|
+
f"# {spec['name']}",
|
|
388
|
+
"",
|
|
389
|
+
spec["purpose"],
|
|
390
|
+
"",
|
|
391
|
+
"## Capabilities",
|
|
392
|
+
"",
|
|
393
|
+
]
|
|
394
|
+
for capability in spec["capabilities"]:
|
|
395
|
+
lines.append(f"- `{capability['id']}`: {capability['purpose']}")
|
|
396
|
+
lines.extend(["", "## Dominio", "", spec["domain"], ""])
|
|
397
|
+
return "\n".join(lines)
|
|
398
|
+
|
|
399
|
+
def render_system_md(self, spec: dict[str, Any]) -> str:
|
|
400
|
+
return f"# System\n\nVoce e o agente `{spec['agent_id']}`. Atue somente no dominio: {spec['domain']}.\n"
|
|
401
|
+
|
|
402
|
+
def render_context_md(self, spec: dict[str, Any]) -> str:
|
|
403
|
+
return f"# Context\n\nPurpose: {spec['purpose']}\n\nRisk profile: {spec.get('risk_profile', 'medium')}.\n"
|
|
404
|
+
|
|
405
|
+
def render_policies_yaml(self, spec: dict[str, Any]) -> str:
|
|
406
|
+
payload = {
|
|
407
|
+
"policies": {
|
|
408
|
+
"domain": spec["domain"],
|
|
409
|
+
"risk_profile": spec.get("risk_profile", "medium"),
|
|
410
|
+
"external_writes": "blocked_by_default",
|
|
411
|
+
"secrets": "never_persist",
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
return yaml.safe_dump(payload, sort_keys=False, allow_unicode=False)
|
|
415
|
+
|
|
416
|
+
def render_workflow_md(self, spec: dict[str, Any], capability: dict[str, Any]) -> str:
|
|
417
|
+
return "\n".join(
|
|
418
|
+
[
|
|
419
|
+
"# Workflow",
|
|
420
|
+
"",
|
|
421
|
+
f"1. Receber entrada para `{capability['id']}`.",
|
|
422
|
+
"2. Validar escopo e write_policy.",
|
|
423
|
+
"3. Executar somente o comportamento declarado.",
|
|
424
|
+
"4. Retornar artefato ou diagnostico estruturado.",
|
|
425
|
+
"",
|
|
426
|
+
]
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
def render_decision_rules_md(self, spec: dict[str, Any], capability: dict[str, Any]) -> str:
|
|
430
|
+
return "\n".join(
|
|
431
|
+
[
|
|
432
|
+
"# Decision Rules",
|
|
433
|
+
"",
|
|
434
|
+
f"- Permanecer no dominio `{spec['domain']}`.",
|
|
435
|
+
f"- Aplicar write_policy `{capability['write_policy']}`.",
|
|
436
|
+
"- Nao inferir dados ausentes como fatos.",
|
|
437
|
+
"- Registrar perguntas pendentes quando faltar contexto.",
|
|
438
|
+
"",
|
|
439
|
+
]
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
def render_output_template(self, capability: dict[str, Any]) -> str:
|
|
443
|
+
return "\n".join(
|
|
444
|
+
[
|
|
445
|
+
f"# {capability['name']} Output",
|
|
446
|
+
"",
|
|
447
|
+
"## Resultado",
|
|
448
|
+
"",
|
|
449
|
+
"-",
|
|
450
|
+
"",
|
|
451
|
+
"## Evidencias",
|
|
452
|
+
"",
|
|
453
|
+
"-",
|
|
454
|
+
"",
|
|
455
|
+
"## Riscos E Lacunas",
|
|
456
|
+
"",
|
|
457
|
+
"-",
|
|
458
|
+
"",
|
|
459
|
+
]
|
|
460
|
+
)
|
|
461
|
+
|
|
462
|
+
def public_file_plan(self, files: list[tuple[str, str]]) -> list[dict[str, Any]]:
|
|
463
|
+
return [
|
|
464
|
+
{
|
|
465
|
+
"path": path,
|
|
466
|
+
"bytes": len(content.encode("utf-8")),
|
|
467
|
+
}
|
|
468
|
+
for path, content in files
|
|
469
|
+
]
|
|
470
|
+
|
|
471
|
+
def agent_summary(self, spec: dict[str, Any]) -> dict[str, Any]:
|
|
472
|
+
return {
|
|
473
|
+
"id": spec["agent_id"],
|
|
474
|
+
"name": spec["name"],
|
|
475
|
+
"domain": spec["domain"],
|
|
476
|
+
"purpose": spec["purpose"],
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
def capability_summary(self, capability: dict[str, Any]) -> dict[str, Any]:
|
|
480
|
+
return {
|
|
481
|
+
"id": capability["id"],
|
|
482
|
+
"name": capability["name"],
|
|
483
|
+
"purpose": capability["purpose"],
|
|
484
|
+
"write_policy": capability["write_policy"],
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
def open_questions(self, spec: dict[str, Any]) -> list[str]:
|
|
488
|
+
questions: list[str] = []
|
|
489
|
+
if not spec.get("providers"):
|
|
490
|
+
questions.append("Este agente precisa de algum provider ou deve permanecer local/read-only?")
|
|
491
|
+
if spec.get("risk_profile", "medium") != "low":
|
|
492
|
+
questions.append("Quais operacoes exigem confirmacao humana ou review gate?")
|
|
493
|
+
return questions
|
|
494
|
+
|
|
495
|
+
def question_for_missing_field(self, field: str) -> str:
|
|
496
|
+
questions = {
|
|
497
|
+
"agent_id": "Qual sera o id kebab-case do agente?",
|
|
498
|
+
"name": "Qual sera o nome publico do agente?",
|
|
499
|
+
"purpose": "Qual problema o agente resolve?",
|
|
500
|
+
"domain": "Qual dominio tecnico ou operacional este agente possui?",
|
|
501
|
+
"capabilities": "Quais capabilities iniciais o agente deve expor?",
|
|
502
|
+
}
|
|
503
|
+
return questions.get(field, f"Informe o campo obrigatorio {field}.")
|
|
504
|
+
|
|
505
|
+
def read_yaml(self, path: Path) -> dict[str, Any]:
|
|
506
|
+
payload = yaml.safe_load(path.read_text(encoding="utf-8")) or {}
|
|
507
|
+
return payload if isinstance(payload, dict) else {}
|
|
508
|
+
|
|
509
|
+
def title_from_id(self, value: str) -> str:
|
|
510
|
+
return " ".join(part.capitalize() for part in value.split("-"))
|
|
511
|
+
|
|
512
|
+
def iter_strings(self, value: Any):
|
|
513
|
+
if isinstance(value, str):
|
|
514
|
+
yield value
|
|
515
|
+
elif isinstance(value, dict):
|
|
516
|
+
for item in value.values():
|
|
517
|
+
yield from self.iter_strings(item)
|
|
518
|
+
elif isinstance(value, list):
|
|
519
|
+
for item in value:
|
|
520
|
+
yield from self.iter_strings(item)
|
|
521
|
+
|
|
522
|
+
def is_inside(self, root: Path, target: Path) -> bool:
|
|
523
|
+
try:
|
|
524
|
+
target.relative_to(root)
|
|
525
|
+
return True
|
|
526
|
+
except ValueError:
|
|
527
|
+
return False
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Context
|
|
2
|
+
|
|
3
|
+
O Agent DevKit usa agentes especialistas autocontidos. Um agente minimo deve
|
|
4
|
+
conter:
|
|
5
|
+
|
|
6
|
+
- `AGENTS.md`;
|
|
7
|
+
- `README.md`;
|
|
8
|
+
- `agent.yaml`;
|
|
9
|
+
- `capabilities/`;
|
|
10
|
+
- `knowledge/`;
|
|
11
|
+
- `templates/`;
|
|
12
|
+
- `infra/`.
|
|
13
|
+
|
|
14
|
+
Cada capability deve conter `capability.yaml`, `workflow.md` e
|
|
15
|
+
`decision-rules.md`.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# System
|
|
2
|
+
|
|
3
|
+
Voce e o agente interno que ajuda o Agent DevKit a criar novos agentes
|
|
4
|
+
especialistas versionados.
|
|
5
|
+
|
|
6
|
+
Mantenha as respostas e artefatos alinhados ao contrato raiz do repositorio:
|
|
7
|
+
agentes vivem em `agents/<agent-id>/`, capabilities vivem em
|
|
8
|
+
`capabilities/<capability-id>/`, e integracoes externas vivem em `infra/`.
|
|
9
|
+
|
|
10
|
+
Nunca introduza segredos, URLs privadas, nomes de cliente ou dependencias
|
|
11
|
+
externas sem decisao separada.
|