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,229 @@
|
|
|
1
|
+
"""MCP manifest and tool schemas for Agent DevKit."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from cli.aikit import __version__
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
MCP_PROTOCOL_VERSION = "2025-11-25"
|
|
11
|
+
MCP_SERVER_NAME = "agent-devkit"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
TOOL_DEFINITIONS: list[dict[str, Any]] = [
|
|
15
|
+
{
|
|
16
|
+
"name": "agent_devkit_agents_list",
|
|
17
|
+
"description": "List available Agent DevKit agents.",
|
|
18
|
+
"inputSchema": {"type": "object", "properties": {}, "additionalProperties": False},
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "agent_devkit_capabilities_list",
|
|
22
|
+
"description": "List available capabilities, optionally filtered by agent id.",
|
|
23
|
+
"inputSchema": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {"agent_id": {"type": "string"}},
|
|
26
|
+
"additionalProperties": False,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "agent_devkit_capability_inspect",
|
|
31
|
+
"description": "Inspect one capability contract.",
|
|
32
|
+
"inputSchema": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"agent_id": {"type": "string"},
|
|
36
|
+
"capability_id": {"type": "string"},
|
|
37
|
+
},
|
|
38
|
+
"required": ["agent_id", "capability_id"],
|
|
39
|
+
"additionalProperties": False,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "agent_devkit_capability_run",
|
|
44
|
+
"description": "Run a read-only capability or dry-run a non-read-only capability through Agent DevKit core.",
|
|
45
|
+
"inputSchema": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"agent_id": {"type": "string"},
|
|
49
|
+
"capability_id": {"type": "string"},
|
|
50
|
+
"args": {"type": "array", "items": {"type": "string"}},
|
|
51
|
+
"inputs": {"type": "object"},
|
|
52
|
+
"source_id": {"type": "string"},
|
|
53
|
+
"dry_run": {"type": "boolean"},
|
|
54
|
+
"request_id": {"type": "string"},
|
|
55
|
+
},
|
|
56
|
+
"required": ["agent_id", "capability_id"],
|
|
57
|
+
"additionalProperties": False,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "agent_devkit_doctor",
|
|
62
|
+
"description": "Return local Agent DevKit diagnostics.",
|
|
63
|
+
"inputSchema": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"project": {"type": "string"},
|
|
67
|
+
"home": {"type": "string"},
|
|
68
|
+
"scope": {"type": "string"},
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": False,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "agent_devkit_catalog_search",
|
|
75
|
+
"description": "Search agents, capabilities and providers in the deterministic Agent DevKit catalog.",
|
|
76
|
+
"inputSchema": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"query": {"type": "string"},
|
|
80
|
+
"type": {"type": "string"},
|
|
81
|
+
},
|
|
82
|
+
"required": ["query"],
|
|
83
|
+
"additionalProperties": False,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "agent_devkit_route_explain",
|
|
88
|
+
"description": "Explain how Agent DevKit would route a prompt without executing it.",
|
|
89
|
+
"inputSchema": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {"prompt": {"type": "string"}},
|
|
92
|
+
"required": ["prompt"],
|
|
93
|
+
"additionalProperties": False,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "agent_devkit_agent_prompt_dry_run",
|
|
98
|
+
"description": "Build a dry-run agentic execution plan for a natural-language prompt.",
|
|
99
|
+
"inputSchema": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {"prompt": {"type": "string"}},
|
|
102
|
+
"required": ["prompt"],
|
|
103
|
+
"additionalProperties": False,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "agent_devkit_eval_list",
|
|
108
|
+
"description": "List deterministic Agent DevKit eval suites.",
|
|
109
|
+
"inputSchema": {"type": "object", "properties": {}, "additionalProperties": False},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "agent_devkit_eval_run",
|
|
113
|
+
"description": "Run one deterministic Agent DevKit eval suite.",
|
|
114
|
+
"inputSchema": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {"suite": {"type": "string"}},
|
|
117
|
+
"required": ["suite"],
|
|
118
|
+
"additionalProperties": False,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "agent_devkit_secrets_doctor",
|
|
123
|
+
"description": "Diagnose secret reference backends without exposing values.",
|
|
124
|
+
"inputSchema": {"type": "object", "properties": {}, "additionalProperties": False},
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "agent_devkit_roadmap",
|
|
128
|
+
"description": "Return the deterministic Agent DevKit roadmap payload.",
|
|
129
|
+
"inputSchema": {"type": "object", "properties": {}, "additionalProperties": False},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "agent_devkit_source_list",
|
|
133
|
+
"description": "List configured sources without exposing secrets.",
|
|
134
|
+
"inputSchema": {"type": "object", "properties": {}, "additionalProperties": False},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "agent_devkit_source_status",
|
|
138
|
+
"description": "Inspect source readiness without exposing secrets.",
|
|
139
|
+
"inputSchema": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {"source_id": {"type": "string"}},
|
|
142
|
+
"additionalProperties": False,
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "agent_devkit_wizard_show",
|
|
147
|
+
"description": "Show a pending setup wizard.",
|
|
148
|
+
"inputSchema": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {"wizard_id": {"type": "string"}},
|
|
151
|
+
"required": ["wizard_id"],
|
|
152
|
+
"additionalProperties": False,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "agent_devkit_wizard_answer",
|
|
157
|
+
"description": "Answer a pending setup wizard question.",
|
|
158
|
+
"inputSchema": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"properties": {
|
|
161
|
+
"wizard_id": {"type": "string"},
|
|
162
|
+
"answer": {"type": "string"},
|
|
163
|
+
},
|
|
164
|
+
"required": ["wizard_id", "answer"],
|
|
165
|
+
"additionalProperties": False,
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
]
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
def mcp_manifest() -> dict[str, Any]:
|
|
172
|
+
return {
|
|
173
|
+
"kind": "mcp-manifest",
|
|
174
|
+
"status": "ok",
|
|
175
|
+
"schema_version": "ai-devkit.mcp-manifest/v1",
|
|
176
|
+
"protocol_version": MCP_PROTOCOL_VERSION,
|
|
177
|
+
"transport": "stdio",
|
|
178
|
+
"server": {
|
|
179
|
+
"name": MCP_SERVER_NAME,
|
|
180
|
+
"version": __version__,
|
|
181
|
+
},
|
|
182
|
+
"tools": mcp_tools(),
|
|
183
|
+
"host_config": {
|
|
184
|
+
"mcpServers": {
|
|
185
|
+
MCP_SERVER_NAME: {
|
|
186
|
+
"command": "agent",
|
|
187
|
+
"args": ["mcp", "serve"],
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def mcp_tools_payload() -> dict[str, Any]:
|
|
195
|
+
return {
|
|
196
|
+
"kind": "mcp-tools",
|
|
197
|
+
"status": "ok",
|
|
198
|
+
"protocol_version": MCP_PROTOCOL_VERSION,
|
|
199
|
+
"transport": "stdio",
|
|
200
|
+
"tools": mcp_tools(),
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
def mcp_tools() -> list[dict[str, Any]]:
|
|
205
|
+
return [dict(tool) for tool in TOOL_DEFINITIONS]
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
def mcp_doctor() -> dict[str, Any]:
|
|
209
|
+
return {
|
|
210
|
+
"kind": "mcp-doctor",
|
|
211
|
+
"status": "ok",
|
|
212
|
+
"protocol_version": MCP_PROTOCOL_VERSION,
|
|
213
|
+
"transport": "stdio",
|
|
214
|
+
"server": {
|
|
215
|
+
"name": MCP_SERVER_NAME,
|
|
216
|
+
"version": __version__,
|
|
217
|
+
},
|
|
218
|
+
"tools": {
|
|
219
|
+
"count": len(TOOL_DEFINITIONS),
|
|
220
|
+
"names": [tool["name"] for tool in TOOL_DEFINITIONS],
|
|
221
|
+
},
|
|
222
|
+
"checks": {
|
|
223
|
+
"stdio_transport": True,
|
|
224
|
+
"json_rpc": True,
|
|
225
|
+
"core_runtime": True,
|
|
226
|
+
"secrets_redacted": True,
|
|
227
|
+
"host_specific_dependency": False,
|
|
228
|
+
},
|
|
229
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"""Minimal MCP stdio server for Agent DevKit."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import sys
|
|
7
|
+
from typing import Any, TextIO
|
|
8
|
+
|
|
9
|
+
from cli.aikit.mcp_manifest import MCP_PROTOCOL_VERSION, MCP_SERVER_NAME, mcp_doctor, mcp_manifest, mcp_tools
|
|
10
|
+
from cli.aikit.mcp_tools import McpToolError, call_mcp_tool
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
JSONRPC_VERSION = "2.0"
|
|
14
|
+
PARSE_ERROR = -32700
|
|
15
|
+
INVALID_REQUEST = -32600
|
|
16
|
+
METHOD_NOT_FOUND = -32601
|
|
17
|
+
INVALID_PARAMS = -32602
|
|
18
|
+
INTERNAL_ERROR = -32603
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class McpMethodNotFound(ValueError):
|
|
22
|
+
"""Raised when a JSON-RPC method is not supported by this MCP server."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def serve_mcp_stdio(stdin: TextIO | None = None, stdout: TextIO | None = None, stderr: TextIO | None = None) -> None:
|
|
26
|
+
input_stream = stdin or sys.stdin
|
|
27
|
+
output_stream = stdout or sys.stdout
|
|
28
|
+
error_stream = stderr or sys.stderr
|
|
29
|
+
for raw_line in input_stream:
|
|
30
|
+
line = raw_line.strip()
|
|
31
|
+
if not line:
|
|
32
|
+
continue
|
|
33
|
+
try:
|
|
34
|
+
message = json.loads(line)
|
|
35
|
+
except json.JSONDecodeError as exc:
|
|
36
|
+
write_message(output_stream, error_response(None, PARSE_ERROR, "Parse error", data={"message": str(exc)}))
|
|
37
|
+
continue
|
|
38
|
+
if not isinstance(message, dict):
|
|
39
|
+
write_message(output_stream, error_response(None, INVALID_REQUEST, "Invalid Request"))
|
|
40
|
+
continue
|
|
41
|
+
response = handle_message(message, stderr=error_stream)
|
|
42
|
+
if response is not None:
|
|
43
|
+
write_message(output_stream, response)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def handle_message(message: dict[str, Any], *, stderr: TextIO | None = None) -> dict[str, Any] | None:
|
|
47
|
+
request_id = message.get("id")
|
|
48
|
+
method = message.get("method")
|
|
49
|
+
if message.get("jsonrpc") != JSONRPC_VERSION or not isinstance(method, str):
|
|
50
|
+
return error_response(request_id, INVALID_REQUEST, "Invalid Request")
|
|
51
|
+
if request_id is None:
|
|
52
|
+
handle_notification(method)
|
|
53
|
+
return None
|
|
54
|
+
try:
|
|
55
|
+
result = dispatch_request(method, message.get("params"))
|
|
56
|
+
except McpMethodNotFound as exc:
|
|
57
|
+
return error_response(request_id, METHOD_NOT_FOUND, str(exc))
|
|
58
|
+
except McpToolError as exc:
|
|
59
|
+
return error_response(request_id, INVALID_PARAMS, str(exc))
|
|
60
|
+
except Exception as exc: # noqa: BLE001 - protocol response must hide stack traces.
|
|
61
|
+
if stderr:
|
|
62
|
+
print(f"agent-devkit MCP internal error: {type(exc).__name__}", file=stderr)
|
|
63
|
+
return error_response(request_id, INTERNAL_ERROR, "Internal error")
|
|
64
|
+
return {
|
|
65
|
+
"jsonrpc": JSONRPC_VERSION,
|
|
66
|
+
"id": request_id,
|
|
67
|
+
"result": result,
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def dispatch_request(method: str, params: Any) -> dict[str, Any]:
|
|
72
|
+
if method == "initialize":
|
|
73
|
+
return initialize_result(params)
|
|
74
|
+
if method == "ping":
|
|
75
|
+
return {}
|
|
76
|
+
if method == "tools/list":
|
|
77
|
+
return {"tools": mcp_tools()}
|
|
78
|
+
if method == "tools/call":
|
|
79
|
+
if not isinstance(params, dict):
|
|
80
|
+
raise McpToolError("tools/call params must be an object")
|
|
81
|
+
name = params.get("name")
|
|
82
|
+
if not isinstance(name, str) or not name.strip():
|
|
83
|
+
raise McpToolError("tools/call requires a tool name")
|
|
84
|
+
arguments = params.get("arguments", {})
|
|
85
|
+
if arguments is None:
|
|
86
|
+
arguments = {}
|
|
87
|
+
if not isinstance(arguments, dict):
|
|
88
|
+
raise McpToolError("tools/call arguments must be an object")
|
|
89
|
+
return call_mcp_tool(name.strip(), arguments)
|
|
90
|
+
raise McpMethodNotFound(f"Method not found: {method}")
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def initialize_result(params: Any) -> dict[str, Any]:
|
|
94
|
+
requested_version = None
|
|
95
|
+
if isinstance(params, dict):
|
|
96
|
+
requested_version = params.get("protocolVersion")
|
|
97
|
+
return {
|
|
98
|
+
"protocolVersion": str(requested_version or MCP_PROTOCOL_VERSION),
|
|
99
|
+
"capabilities": {
|
|
100
|
+
"tools": {},
|
|
101
|
+
},
|
|
102
|
+
"serverInfo": {
|
|
103
|
+
"name": MCP_SERVER_NAME,
|
|
104
|
+
"version": str(mcp_manifest()["server"]["version"]),
|
|
105
|
+
},
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def handle_notification(method: str) -> None:
|
|
110
|
+
if method in {"notifications/initialized", "notifications/cancelled"}:
|
|
111
|
+
return
|
|
112
|
+
return
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def mcp_cli_doctor() -> dict[str, Any]:
|
|
116
|
+
return mcp_doctor()
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def write_message(stdout: TextIO, message: dict[str, Any]) -> None:
|
|
120
|
+
stdout.write(json.dumps(message, ensure_ascii=False, separators=(",", ":")) + "\n")
|
|
121
|
+
stdout.flush()
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def error_response(request_id: Any, code: int, message: str, *, data: Any | None = None) -> dict[str, Any]:
|
|
125
|
+
error: dict[str, Any] = {"code": code, "message": message}
|
|
126
|
+
if data is not None:
|
|
127
|
+
error["data"] = data
|
|
128
|
+
return {
|
|
129
|
+
"jsonrpc": JSONRPC_VERSION,
|
|
130
|
+
"id": request_id,
|
|
131
|
+
"error": error,
|
|
132
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"""MCP tool adapters over the Agent DevKit core runtime."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
from typing import Any, Callable
|
|
7
|
+
|
|
8
|
+
from cli.aikit.audit import redact_value, try_record_audit
|
|
9
|
+
from cli.aikit.catalog import catalog_search
|
|
10
|
+
from cli.aikit.core.requests import CapabilityRunRequest
|
|
11
|
+
from cli.aikit.core.runtime import (
|
|
12
|
+
inspect_capability_request,
|
|
13
|
+
list_agent_modules,
|
|
14
|
+
list_capability_modules,
|
|
15
|
+
run_capability_request,
|
|
16
|
+
)
|
|
17
|
+
from cli.aikit.doctor_runtime import doctor
|
|
18
|
+
from cli.aikit.eval import eval_list, eval_run
|
|
19
|
+
from cli.aikit.errors import DevKitError
|
|
20
|
+
from cli.aikit.mcp_manifest import mcp_tools
|
|
21
|
+
from cli.aikit.orchestrator import build_execution_plan
|
|
22
|
+
from cli.aikit.roadmap_cli import roadmap_payload
|
|
23
|
+
from cli.aikit.router_explain import explain_route
|
|
24
|
+
from cli.aikit.runtime_paths import ROOT
|
|
25
|
+
from cli.aikit.secrets import secrets_doctor
|
|
26
|
+
from cli.aikit.sources import SourceRegistryError, list_sources, source_status
|
|
27
|
+
from cli.aikit.wizard_state import WizardStateError, answer_wizard, show_wizard
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class McpToolError(ValueError):
|
|
31
|
+
"""Raised when a MCP tool call is malformed or unknown."""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def call_mcp_tool(name: str, arguments: dict[str, Any] | None) -> dict[str, Any]:
|
|
35
|
+
args = arguments or {}
|
|
36
|
+
if not isinstance(args, dict):
|
|
37
|
+
raise McpToolError("MCP tool arguments must be an object")
|
|
38
|
+
handlers: dict[str, Callable[[dict[str, Any]], dict[str, Any]]] = {
|
|
39
|
+
"agent_devkit_agents_list": tool_agents_list,
|
|
40
|
+
"agent_devkit_capabilities_list": tool_capabilities_list,
|
|
41
|
+
"agent_devkit_capability_inspect": tool_capability_inspect,
|
|
42
|
+
"agent_devkit_capability_run": tool_capability_run,
|
|
43
|
+
"agent_devkit_doctor": tool_doctor,
|
|
44
|
+
"agent_devkit_catalog_search": tool_catalog_search,
|
|
45
|
+
"agent_devkit_route_explain": tool_route_explain,
|
|
46
|
+
"agent_devkit_agent_prompt_dry_run": tool_agent_prompt_dry_run,
|
|
47
|
+
"agent_devkit_eval_list": tool_eval_list,
|
|
48
|
+
"agent_devkit_eval_run": tool_eval_run,
|
|
49
|
+
"agent_devkit_secrets_doctor": tool_secrets_doctor,
|
|
50
|
+
"agent_devkit_roadmap": tool_roadmap,
|
|
51
|
+
"agent_devkit_source_list": tool_source_list,
|
|
52
|
+
"agent_devkit_source_status": tool_source_status,
|
|
53
|
+
"agent_devkit_wizard_show": tool_wizard_show,
|
|
54
|
+
"agent_devkit_wizard_answer": tool_wizard_answer,
|
|
55
|
+
}
|
|
56
|
+
handler = handlers.get(name)
|
|
57
|
+
if not handler:
|
|
58
|
+
raise McpToolError(f"Unknown MCP tool: {name}")
|
|
59
|
+
try:
|
|
60
|
+
payload = handler(args)
|
|
61
|
+
except (DevKitError, SourceRegistryError, WizardStateError, ValueError) as exc:
|
|
62
|
+
payload = {
|
|
63
|
+
"kind": "mcp-tool-error",
|
|
64
|
+
"status": "failed",
|
|
65
|
+
"ok": False,
|
|
66
|
+
"tool": name,
|
|
67
|
+
"message": str(exc),
|
|
68
|
+
"origin": "mcp",
|
|
69
|
+
}
|
|
70
|
+
safe_payload = redact_value(payload)
|
|
71
|
+
return tool_result(safe_payload, is_error=is_error_payload(safe_payload))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def list_mcp_tool_definitions() -> dict[str, Any]:
|
|
75
|
+
return {
|
|
76
|
+
"kind": "mcp-tools",
|
|
77
|
+
"status": "ok",
|
|
78
|
+
"tools": mcp_tools(),
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def tool_agents_list(_args: dict[str, Any]) -> dict[str, Any]:
|
|
83
|
+
return list_agent_modules()
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def tool_capabilities_list(args: dict[str, Any]) -> dict[str, Any]:
|
|
87
|
+
return list_capability_modules(optional_string(args, "agent_id"))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def tool_capability_inspect(args: dict[str, Any]) -> dict[str, Any]:
|
|
91
|
+
return inspect_capability_request(required_string(args, "agent_id"), required_string(args, "capability_id"))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def tool_capability_run(args: dict[str, Any]) -> dict[str, Any]:
|
|
95
|
+
agent_id = required_string(args, "agent_id")
|
|
96
|
+
capability_id = required_string(args, "capability_id")
|
|
97
|
+
dry_run = optional_bool(args, "dry_run", default=False)
|
|
98
|
+
inspected = inspect_capability_request(agent_id, capability_id)
|
|
99
|
+
capability = inspected.get("capability") if isinstance(inspected.get("capability"), dict) else {}
|
|
100
|
+
policy = str(capability.get("write_policy") or "")
|
|
101
|
+
if policy != "read_only" and not dry_run:
|
|
102
|
+
payload = {
|
|
103
|
+
"kind": "run",
|
|
104
|
+
"status": "blocked",
|
|
105
|
+
"ok": False,
|
|
106
|
+
"origin": "mcp",
|
|
107
|
+
"agent": inspected.get("agent"),
|
|
108
|
+
"capability": capability.get("id") or capability_id,
|
|
109
|
+
"write_policy": policy,
|
|
110
|
+
"write_policy_metadata": capability.get("write_policy_metadata"),
|
|
111
|
+
"reason": "mcp_write_policy_blocked",
|
|
112
|
+
"risks": ["MCP stdio v1 only executes read-only capabilities by default."],
|
|
113
|
+
"next_steps": ["Call again with dry_run=true or use the CLI with explicit confirmation for write operations."],
|
|
114
|
+
"exit_code": 2,
|
|
115
|
+
}
|
|
116
|
+
attach_mcp_audit(payload, tool="agent_devkit_capability_run", args=args)
|
|
117
|
+
return payload
|
|
118
|
+
|
|
119
|
+
request = CapabilityRunRequest(
|
|
120
|
+
agent_id=agent_id,
|
|
121
|
+
capability_id=capability_id,
|
|
122
|
+
capability_args=string_list(args.get("args")),
|
|
123
|
+
origin="mcp",
|
|
124
|
+
request_id=optional_string(args, "request_id"),
|
|
125
|
+
inputs=mapping_value(args.get("inputs")),
|
|
126
|
+
source_id=optional_string(args, "source_id"),
|
|
127
|
+
dry_run=dry_run,
|
|
128
|
+
)
|
|
129
|
+
payload = run_capability_request(request)
|
|
130
|
+
attach_mcp_audit(payload, tool="agent_devkit_capability_run", args=args)
|
|
131
|
+
return payload
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def tool_doctor(args: dict[str, Any]) -> dict[str, Any]:
|
|
135
|
+
return doctor(
|
|
136
|
+
project=optional_string(args, "project"),
|
|
137
|
+
home=optional_string(args, "home"),
|
|
138
|
+
scope=optional_string(args, "scope") or "auto",
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def tool_catalog_search(args: dict[str, Any]) -> dict[str, Any]:
|
|
143
|
+
item_type = optional_string(args, "type")
|
|
144
|
+
if item_type not in {None, "agent", "capability", "provider"}:
|
|
145
|
+
raise McpToolError("type must be agent, capability or provider")
|
|
146
|
+
return catalog_search(required_string(args, "query"), ROOT, item_type=item_type)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def tool_route_explain(args: dict[str, Any]) -> dict[str, Any]:
|
|
150
|
+
return explain_route(required_string(args, "prompt"), ROOT)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def tool_agent_prompt_dry_run(args: dict[str, Any]) -> dict[str, Any]:
|
|
154
|
+
return build_execution_plan(ROOT, required_string(args, "prompt"), dry_run=True)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def tool_eval_list(_args: dict[str, Any]) -> dict[str, Any]:
|
|
158
|
+
return eval_list()
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def tool_eval_run(args: dict[str, Any]) -> dict[str, Any]:
|
|
162
|
+
return eval_run(required_string(args, "suite"), ROOT)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def tool_secrets_doctor(_args: dict[str, Any]) -> dict[str, Any]:
|
|
166
|
+
return secrets_doctor()
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
def tool_roadmap(_args: dict[str, Any]) -> dict[str, Any]:
|
|
170
|
+
return roadmap_payload(ROOT)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def tool_source_list(_args: dict[str, Any]) -> dict[str, Any]:
|
|
174
|
+
return list_sources()
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def tool_source_status(args: dict[str, Any]) -> dict[str, Any]:
|
|
178
|
+
return source_status(optional_string(args, "source_id"))
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
def tool_wizard_show(args: dict[str, Any]) -> dict[str, Any]:
|
|
182
|
+
return show_wizard(required_string(args, "wizard_id"))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
def tool_wizard_answer(args: dict[str, Any]) -> dict[str, Any]:
|
|
186
|
+
payload = answer_wizard(required_string(args, "wizard_id"), required_string(args, "answer"))
|
|
187
|
+
attach_mcp_audit(payload, tool="agent_devkit_wizard_answer", args=args)
|
|
188
|
+
return payload
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def attach_mcp_audit(payload: dict[str, Any], *, tool: str, args: dict[str, Any]) -> None:
|
|
192
|
+
audit_result = try_record_audit(
|
|
193
|
+
command=tool,
|
|
194
|
+
args={"command": "mcp", "tool": tool, "arguments": redact_value(args)},
|
|
195
|
+
result=payload,
|
|
196
|
+
error=None,
|
|
197
|
+
origin="mcp",
|
|
198
|
+
required=False,
|
|
199
|
+
)
|
|
200
|
+
if audit_result.get("audit_warning"):
|
|
201
|
+
payload["audit_warning"] = audit_result["audit_warning"]
|
|
202
|
+
elif audit_result.get("audit"):
|
|
203
|
+
payload["audit"] = audit_result["audit"]
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def tool_result(payload: dict[str, Any], *, is_error: bool) -> dict[str, Any]:
|
|
207
|
+
return {
|
|
208
|
+
"content": [
|
|
209
|
+
{
|
|
210
|
+
"type": "text",
|
|
211
|
+
"text": json.dumps(payload, ensure_ascii=False, indent=2, sort_keys=True),
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"structuredContent": payload,
|
|
215
|
+
"isError": bool(is_error),
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def is_error_payload(payload: Any) -> bool:
|
|
220
|
+
if not isinstance(payload, dict):
|
|
221
|
+
return False
|
|
222
|
+
status = str(payload.get("status") or "")
|
|
223
|
+
return payload.get("ok") is False or status in {"blocked", "failed", "error"}
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def required_string(args: dict[str, Any], key: str) -> str:
|
|
227
|
+
value = args.get(key)
|
|
228
|
+
if not isinstance(value, str) or not value.strip():
|
|
229
|
+
raise McpToolError(f"{key} is required")
|
|
230
|
+
return value.strip()
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
def optional_string(args: dict[str, Any], key: str) -> str | None:
|
|
234
|
+
value = args.get(key)
|
|
235
|
+
if value is None:
|
|
236
|
+
return None
|
|
237
|
+
if not isinstance(value, str):
|
|
238
|
+
raise McpToolError(f"{key} must be a string")
|
|
239
|
+
return value.strip() or None
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
def string_list(value: Any) -> list[str]:
|
|
243
|
+
if value is None:
|
|
244
|
+
return []
|
|
245
|
+
if not isinstance(value, list) or not all(isinstance(item, str) for item in value):
|
|
246
|
+
raise McpToolError("args must be an array of strings")
|
|
247
|
+
return list(value)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def mapping_value(value: Any) -> dict[str, Any]:
|
|
251
|
+
if value is None:
|
|
252
|
+
return {}
|
|
253
|
+
if not isinstance(value, dict):
|
|
254
|
+
raise McpToolError("inputs must be an object")
|
|
255
|
+
return dict(value)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def optional_bool(args: dict[str, Any], key: str, *, default: bool) -> bool:
|
|
259
|
+
value = args.get(key, default)
|
|
260
|
+
if not isinstance(value, bool):
|
|
261
|
+
raise McpToolError(f"{key} must be a boolean")
|
|
262
|
+
return value
|