agent-devkit 0.1.5 → 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 +14 -2
- package/package.json +1 -1
- package/runtime/README.md +127 -6
- package/runtime/agent +5 -0
- package/runtime/agents/README.md +34 -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/AGENTS.md +8 -0
- package/runtime/agents/execution-reviewer/README.md +13 -0
- package/runtime/agents/execution-reviewer/agent.yaml +27 -0
- package/runtime/agents/execution-reviewer/capabilities/review-agent-result/capability.yaml +14 -0
- package/runtime/agents/execution-reviewer/capabilities/review-agent-result/decision-rules.md +6 -0
- package/runtime/agents/execution-reviewer/capabilities/review-agent-result/workflow.md +7 -0
- package/runtime/agents/execution-reviewer/capabilities/review-final-output/capability.yaml +14 -0
- package/runtime/agents/execution-reviewer/capabilities/review-final-output/decision-rules.md +6 -0
- package/runtime/agents/execution-reviewer/capabilities/review-final-output/workflow.md +7 -0
- package/runtime/agents/execution-reviewer/capabilities/review-plan/capability.yaml +14 -0
- package/runtime/agents/execution-reviewer/capabilities/review-plan/decision-rules.md +6 -0
- package/runtime/agents/execution-reviewer/capabilities/review-plan/workflow.md +7 -0
- package/runtime/agents/execution-reviewer/infra/README.md +4 -0
- package/runtime/agents/execution-reviewer/knowledge/context.md +6 -0
- package/runtime/agents/execution-reviewer/knowledge/system.md +18 -0
- package/runtime/agents/execution-reviewer/templates/README.md +4 -0
- 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/AGENTS.md +8 -0
- package/runtime/agents/local-llm-operator/README.md +12 -0
- package/runtime/agents/local-llm-operator/agent.yaml +28 -0
- package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/capability.yaml +14 -0
- package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/decision-rules.md +6 -0
- package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/workflow.md +7 -0
- package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/capability.yaml +14 -0
- package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/decision-rules.md +5 -0
- package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/workflow.md +6 -0
- package/runtime/agents/local-llm-operator/capabilities/select-local-worker/capability.yaml +14 -0
- package/runtime/agents/local-llm-operator/capabilities/select-local-worker/decision-rules.md +6 -0
- package/runtime/agents/local-llm-operator/capabilities/select-local-worker/workflow.md +7 -0
- package/runtime/agents/local-llm-operator/infra/README.md +4 -0
- package/runtime/agents/local-llm-operator/knowledge/context.md +6 -0
- package/runtime/agents/local-llm-operator/knowledge/system.md +18 -0
- package/runtime/agents/local-llm-operator/templates/README.md +4 -0
- 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/AGENTS.md +8 -0
- package/runtime/agents/provider-configurator/README.md +5 -0
- package/runtime/agents/provider-configurator/agent.yaml +27 -0
- package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/capability.yaml +14 -0
- package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/decision-rules.md +6 -0
- package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/workflow.md +7 -0
- package/runtime/agents/provider-configurator/capabilities/configure-provider-source/capability.yaml +14 -0
- package/runtime/agents/provider-configurator/capabilities/configure-provider-source/decision-rules.md +6 -0
- package/runtime/agents/provider-configurator/capabilities/configure-provider-source/workflow.md +8 -0
- package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/capability.yaml +14 -0
- package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/decision-rules.md +6 -0
- package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/workflow.md +7 -0
- package/runtime/agents/provider-configurator/infra/README.md +5 -0
- package/runtime/agents/provider-configurator/knowledge/context.md +8 -0
- package/runtime/agents/provider-configurator/knowledge/system.md +19 -0
- package/runtime/agents/provider-configurator/templates/README.md +4 -0
- 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/AGENTS.md +8 -0
- package/runtime/agents/task-orchestrator/README.md +7 -0
- package/runtime/agents/task-orchestrator/agent.yaml +53 -0
- package/runtime/agents/task-orchestrator/capabilities/coordinate-execution/capability.yaml +15 -0
- package/runtime/agents/task-orchestrator/capabilities/coordinate-execution/decision-rules.md +6 -0
- package/runtime/agents/task-orchestrator/capabilities/coordinate-execution/workflow.md +7 -0
- package/runtime/agents/task-orchestrator/capabilities/plan-task/capability.yaml +14 -0
- package/runtime/agents/task-orchestrator/capabilities/plan-task/decision-rules.md +6 -0
- package/runtime/agents/task-orchestrator/capabilities/plan-task/workflow.md +8 -0
- package/runtime/agents/task-orchestrator/capabilities/select-specialists/capability.yaml +14 -0
- package/runtime/agents/task-orchestrator/capabilities/select-specialists/decision-rules.md +6 -0
- package/runtime/agents/task-orchestrator/capabilities/select-specialists/workflow.md +7 -0
- package/runtime/agents/task-orchestrator/infra/README.md +5 -0
- package/runtime/agents/task-orchestrator/knowledge/context.md +9 -0
- package/runtime/agents/task-orchestrator/knowledge/system.md +20 -0
- package/runtime/agents/task-orchestrator/templates/README.md +4 -0
- package/runtime/agents/technical-integration-analyst/agent.yaml +15 -2
- package/runtime/agents/topdesk-orchestrator/agent.yaml +10 -2
- package/runtime/cli/README.md +76 -11
- package/runtime/cli/aikit/__init__.py +1 -1
- package/runtime/cli/aikit/acceptance.py +166 -0
- package/runtime/cli/aikit/agent_executor.py +89 -0
- package/runtime/cli/aikit/agent_registry.py +319 -0
- package/runtime/cli/aikit/app_home.py +87 -2
- package/runtime/cli/aikit/architecture.py +84 -0
- package/runtime/cli/aikit/audit.py +216 -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/control_router.py +298 -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/decision_store.py +17 -0
- package/runtime/cli/aikit/diagnostics.py +10 -3
- 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 +195 -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/install.py +4 -3
- package/runtime/cli/aikit/interactive_wizard.py +79 -0
- package/runtime/cli/aikit/local_llm_operator.py +146 -0
- package/runtime/cli/aikit/lock.py +4 -1
- package/runtime/cli/aikit/main.py +11 -2561
- 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 +193 -20
- 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 +1225 -0
- 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 +125 -2
- package/runtime/cli/aikit/setup_wizard_payload.py +32 -0
- package/runtime/cli/aikit/sources.py +298 -46
- package/runtime/cli/aikit/tasks.py +449 -21
- package/runtime/cli/aikit/wizard_state.py +517 -0
- 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,166 @@
|
|
|
1
|
+
"""Objective acceptance criteria contract for Agent DevKit work."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from copy import deepcopy
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
ACCEPTANCE_SECTIONS: list[dict[str, Any]] = [
|
|
10
|
+
{
|
|
11
|
+
"id": "contract",
|
|
12
|
+
"name": "Contrato",
|
|
13
|
+
"questions": [
|
|
14
|
+
"Qual superficie publica sera criada, alterada ou preservada?",
|
|
15
|
+
"Quais entradas, saidas, erros e limites ficam documentados?",
|
|
16
|
+
],
|
|
17
|
+
"required": [
|
|
18
|
+
"manifest_or_public_api",
|
|
19
|
+
"inputs_outputs",
|
|
20
|
+
"error_contract",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "behavior",
|
|
25
|
+
"name": "Comportamento",
|
|
26
|
+
"questions": [
|
|
27
|
+
"Qual fluxo principal deve funcionar para o usuario ou agente chamador?",
|
|
28
|
+
"Quais tarefas conhecidas devem ser deterministicamente automatizadas?",
|
|
29
|
+
],
|
|
30
|
+
"required": [
|
|
31
|
+
"happy_path",
|
|
32
|
+
"known_failure_modes",
|
|
33
|
+
"deterministic_scope",
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "security",
|
|
38
|
+
"name": "Seguranca",
|
|
39
|
+
"questions": [
|
|
40
|
+
"Quais permissoes, escritas externas ou dados sensiveis podem ser tocados?",
|
|
41
|
+
"Quais guardrails impedem vazamento de segredo ou acao destrutiva?",
|
|
42
|
+
],
|
|
43
|
+
"required": [
|
|
44
|
+
"permission_policy",
|
|
45
|
+
"secret_handling",
|
|
46
|
+
"external_write_policy",
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "compatibility",
|
|
51
|
+
"name": "Compatibilidade",
|
|
52
|
+
"questions": [
|
|
53
|
+
"Quais comandos, aliases, manifests ou hosts existentes precisam continuar funcionando?",
|
|
54
|
+
"A mudanca exige migracao ou aceita comportamento legado?",
|
|
55
|
+
],
|
|
56
|
+
"required": [
|
|
57
|
+
"backward_compatibility",
|
|
58
|
+
"migration_notes",
|
|
59
|
+
"host_compatibility",
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "validation",
|
|
64
|
+
"name": "Validacao",
|
|
65
|
+
"questions": [
|
|
66
|
+
"Quais testes ou comandos focados provam o comportamento novo?",
|
|
67
|
+
"Quais validacoes manuais ou de CLI precisam ser executadas?",
|
|
68
|
+
],
|
|
69
|
+
"required": [
|
|
70
|
+
"focused_tests",
|
|
71
|
+
"cli_smoke_test",
|
|
72
|
+
"validation_evidence",
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "out_of_scope",
|
|
77
|
+
"name": "Fora de escopo",
|
|
78
|
+
"questions": [
|
|
79
|
+
"O que foi deliberadamente deixado para outro item?",
|
|
80
|
+
"Quais riscos residuais permanecem aceitos temporariamente?",
|
|
81
|
+
],
|
|
82
|
+
"required": [
|
|
83
|
+
"deferred_items",
|
|
84
|
+
"residual_risks",
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
GLOBAL_ACCEPTANCE_CRITERIA: list[str] = [
|
|
91
|
+
"A mudanca preserva o Agent DevKit como agente principal e trata agentes internos como modulos especialistas.",
|
|
92
|
+
"A implementacao privilegia automacoes deterministicas para tarefas conhecidas e usa LLM apenas quando decisao, conversa ou revisao exigem raciocinio aberto.",
|
|
93
|
+
"A instalacao continua simples, sem dependencia obrigatoria de host, LLM profissional ou servico externo especifico.",
|
|
94
|
+
"Contratos publicos ficam versionados em codigo ou manifesto, nao apenas em docs locais ignorados pelo Git.",
|
|
95
|
+
"Escritas externas, segredos e acoes destrutivas permanecem bloqueadas por padrao ou exigem permissao explicita.",
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
CHANGE_TYPE_ACCEPTANCE: dict[str, list[str]] = {
|
|
100
|
+
"agent": [
|
|
101
|
+
"Inclui agent.yaml valido, README, AGENTS.md e ownership claro do dominio.",
|
|
102
|
+
"Define capabilities publicas sem depender de contexto grande carregado por padrao.",
|
|
103
|
+
"Explicita quando usa runner deterministico, LLM externo, mini brain local ou intervencao humana.",
|
|
104
|
+
],
|
|
105
|
+
"capability": [
|
|
106
|
+
"Inclui capability.yaml com entrada, saida, write_policy e runner quando executavel.",
|
|
107
|
+
"Mantem conhecimento detalhado sob demanda em knowledge/ ou templates/ da propria capability.",
|
|
108
|
+
"Tem validacao focada que exercita o caminho principal via agent run quando aplicavel.",
|
|
109
|
+
],
|
|
110
|
+
"runner": [
|
|
111
|
+
"Recebe argumentos estruturados e retorna resultado estruturado ou erro explicito.",
|
|
112
|
+
"Evita parse textual fragil quando houver API, JSON, YAML ou biblioteca adequada.",
|
|
113
|
+
"Redige stdout, stderr e artefatos antes de persistir dados que possam conter segredos.",
|
|
114
|
+
],
|
|
115
|
+
"integration": [
|
|
116
|
+
"Fica encapsulada em infra/integrations/<provider>/ ou camada global equivalente quando o provider for compartilhado.",
|
|
117
|
+
"Separa dry-run, leitura, escrita local e escrita externa.",
|
|
118
|
+
"Documenta autenticacao, variaveis de ambiente e modo offline quando existir.",
|
|
119
|
+
],
|
|
120
|
+
"host_plugin": [
|
|
121
|
+
"Mantem adaptador fino para o host e delega logica de produto ao runtime do Agent DevKit.",
|
|
122
|
+
"Preserva compatibilidade com CLI e MCP quando a funcao tambem fizer sentido fora do host.",
|
|
123
|
+
"Nao torna Codex, Claude, OpenClaw, OpenCode ou outro host dependencia obrigatoria da instalacao base.",
|
|
124
|
+
],
|
|
125
|
+
"core_change": [
|
|
126
|
+
"Atualiza contratos publicos, validadores e saida humana quando a semantica do runtime mudar.",
|
|
127
|
+
"Mantem compatibilidade de comandos publicos ou documenta migracao objetiva.",
|
|
128
|
+
"Inclui testes focados cobrindo a nova regra central e pelo menos um smoke test de CLI quando aplicavel.",
|
|
129
|
+
],
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
DEFINITION_OF_DONE: list[str] = [
|
|
134
|
+
"Contrato, comportamento, seguranca, compatibilidade, validacao e fora de escopo foram avaliados.",
|
|
135
|
+
"A mudanca tem teste ou comando focado que prova o comportamento principal.",
|
|
136
|
+
"A saida publica continua compreensivel para humano e consumivel por automacao quando houver modo JSON.",
|
|
137
|
+
"Nenhum segredo, path local sensivel ou dependencia externa obrigatoria foi introduzido sem contrato.",
|
|
138
|
+
"Riscos residuais e itens adiados ficaram explicitos na spec, PR ou resposta de entrega.",
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def acceptance_sections() -> list[str]:
|
|
143
|
+
"""Return canonical acceptance section identifiers."""
|
|
144
|
+
return [section["id"] for section in ACCEPTANCE_SECTIONS]
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def change_type_acceptance() -> dict[str, list[str]]:
|
|
148
|
+
"""Return acceptance criteria grouped by change type."""
|
|
149
|
+
return deepcopy(CHANGE_TYPE_ACCEPTANCE)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
def acceptance_model() -> dict[str, Any]:
|
|
153
|
+
"""Return the canonical acceptance model exposed by public architecture output."""
|
|
154
|
+
return {
|
|
155
|
+
"schema_version": "ai-devkit.acceptance/v1",
|
|
156
|
+
"sections": deepcopy(ACCEPTANCE_SECTIONS),
|
|
157
|
+
"global_criteria": list(GLOBAL_ACCEPTANCE_CRITERIA),
|
|
158
|
+
"change_types": [
|
|
159
|
+
{
|
|
160
|
+
"id": change_type,
|
|
161
|
+
"criteria": list(criteria),
|
|
162
|
+
}
|
|
163
|
+
for change_type, criteria in CHANGE_TYPE_ACCEPTANCE.items()
|
|
164
|
+
],
|
|
165
|
+
"definition_of_done": list(DEFINITION_OF_DONE),
|
|
166
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"""Execution helpers for multi-agent plans."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Any, Callable
|
|
6
|
+
|
|
7
|
+
from cli.aikit.write_policy import (
|
|
8
|
+
is_autonomous_safe_write_policy,
|
|
9
|
+
normalize_write_policy,
|
|
10
|
+
write_policy_public_fields,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
RunCapability = Callable[[dict[str, Any], str, list[str]], dict[str, Any]]
|
|
15
|
+
LoadAgent = Callable[[str], dict[str, Any]]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def execute_plan_tasks(
|
|
19
|
+
plan: dict[str, Any],
|
|
20
|
+
*,
|
|
21
|
+
load_agent: LoadAgent,
|
|
22
|
+
run_capability: RunCapability,
|
|
23
|
+
) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]:
|
|
24
|
+
executed: list[dict[str, Any]] = []
|
|
25
|
+
blocked: list[dict[str, Any]] = []
|
|
26
|
+
for task in plan.get("specialist_tasks") or []:
|
|
27
|
+
if not task.get("primary"):
|
|
28
|
+
continue
|
|
29
|
+
if not task.get("executable"):
|
|
30
|
+
blocked.append(blocked_task(task, "Capability has no executable runner."))
|
|
31
|
+
continue
|
|
32
|
+
if not is_autonomous_safe_write_policy(task.get("write_policy")):
|
|
33
|
+
blocked.append(blocked_task(task, "Capability requires explicit confirmation for external write effects."))
|
|
34
|
+
continue
|
|
35
|
+
try:
|
|
36
|
+
agent = load_agent(str(task["agent_id"]))
|
|
37
|
+
result = run_capability(agent, str(task["capability_id"]), list(task.get("args") or []))
|
|
38
|
+
except Exception as exc: # pragma: no cover - converted to user-facing payload.
|
|
39
|
+
blocked.append(blocked_task(task, str(exc)))
|
|
40
|
+
continue
|
|
41
|
+
item = public_task_result(task, result)
|
|
42
|
+
if result.get("ok"):
|
|
43
|
+
executed.append(item)
|
|
44
|
+
else:
|
|
45
|
+
blocked.append(item)
|
|
46
|
+
return executed, blocked
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def public_task_result(task: dict[str, Any], result: dict[str, Any]) -> dict[str, Any]:
|
|
50
|
+
return {
|
|
51
|
+
"id": task.get("id"),
|
|
52
|
+
"task_id": task.get("task_id") or task.get("id"),
|
|
53
|
+
"agent_id": task.get("agent_id"),
|
|
54
|
+
"capability_id": task.get("capability_id"),
|
|
55
|
+
"role": task.get("role"),
|
|
56
|
+
"depends_on": list(task.get("depends_on") or []),
|
|
57
|
+
"handoff": task.get("handoff") if isinstance(task.get("handoff"), dict) else {},
|
|
58
|
+
"status": result.get("status"),
|
|
59
|
+
"ok": bool(result.get("ok")),
|
|
60
|
+
"provider": task.get("provider"),
|
|
61
|
+
"write_policy": normalize_write_policy(task.get("write_policy")),
|
|
62
|
+
"write_policy_metadata": task_write_policy_metadata(task),
|
|
63
|
+
"result": result,
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def blocked_task(task: dict[str, Any], reason: str) -> dict[str, Any]:
|
|
68
|
+
return {
|
|
69
|
+
"id": task.get("id"),
|
|
70
|
+
"task_id": task.get("task_id") or task.get("id"),
|
|
71
|
+
"agent_id": task.get("agent_id"),
|
|
72
|
+
"capability_id": task.get("capability_id"),
|
|
73
|
+
"role": task.get("role"),
|
|
74
|
+
"depends_on": list(task.get("depends_on") or []),
|
|
75
|
+
"handoff": task.get("handoff") if isinstance(task.get("handoff"), dict) else {},
|
|
76
|
+
"status": "blocked",
|
|
77
|
+
"ok": False,
|
|
78
|
+
"provider": task.get("provider"),
|
|
79
|
+
"write_policy": normalize_write_policy(task.get("write_policy")),
|
|
80
|
+
"write_policy_metadata": task_write_policy_metadata(task),
|
|
81
|
+
"reason": reason,
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def task_write_policy_metadata(task: dict[str, Any]) -> dict[str, Any]:
|
|
86
|
+
metadata = task.get("write_policy_metadata")
|
|
87
|
+
if isinstance(metadata, dict):
|
|
88
|
+
return metadata
|
|
89
|
+
return write_policy_public_fields(task.get("write_policy"))["write_policy_metadata"]
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"""Agent and capability registry helpers for orchestration."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
import yaml
|
|
9
|
+
|
|
10
|
+
from cli.aikit.write_policy import normalize_write_policy, write_policy_public_fields
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def load_agent_registry(root: Path) -> dict[str, Any]:
|
|
14
|
+
agents_dir = root / "agents"
|
|
15
|
+
agents: dict[str, dict[str, Any]] = {}
|
|
16
|
+
capabilities: dict[str, dict[str, Any]] = {}
|
|
17
|
+
runtime_roles: dict[str, str] = {}
|
|
18
|
+
if not agents_dir.exists():
|
|
19
|
+
return {"agents": agents, "capabilities": capabilities, "runtime_roles": runtime_roles}
|
|
20
|
+
provider_map = load_provider_capability_map(root)
|
|
21
|
+
for agent_path in sorted(path for path in agents_dir.iterdir() if path.is_dir()):
|
|
22
|
+
manifest_path = agent_path / "agent.yaml"
|
|
23
|
+
if not manifest_path.exists():
|
|
24
|
+
continue
|
|
25
|
+
agent = read_yaml(manifest_path)
|
|
26
|
+
agent_id = str(agent.get("id") or agent_path.name)
|
|
27
|
+
agent["id"] = agent_id
|
|
28
|
+
agent["path"] = str(agent_path.relative_to(root))
|
|
29
|
+
agent["capabilities_index"] = {}
|
|
30
|
+
for capability_path in sorted((agent_path / "capabilities").glob("*/capability.yaml")):
|
|
31
|
+
capability = read_yaml(capability_path)
|
|
32
|
+
capability_id = str(capability.get("id") or capability_path.parent.name)
|
|
33
|
+
short_id = capability_id.rsplit(".", 1)[-1]
|
|
34
|
+
runtime = normalize_runtime(capability.get("runtime"))
|
|
35
|
+
provider_resolution = resolve_capability_provider(agent_id, short_id, capability, runtime, provider_map)
|
|
36
|
+
source_contract = normalize_source_contract(capability.get("source"), runtime=runtime)
|
|
37
|
+
public_capability = {
|
|
38
|
+
"id": capability_id,
|
|
39
|
+
"short_id": short_id,
|
|
40
|
+
"agent_id": agent_id,
|
|
41
|
+
"name": capability.get("name") or short_id,
|
|
42
|
+
"purpose": compact(str(capability.get("purpose") or "")),
|
|
43
|
+
"routing": normalize_routing(capability.get("routing")),
|
|
44
|
+
"runtime": runtime,
|
|
45
|
+
"runner": ((capability.get("entrypoint") or {}).get("runner")),
|
|
46
|
+
"provider": provider_resolution.get("provider"),
|
|
47
|
+
"provider_resolution": provider_resolution,
|
|
48
|
+
"source": source_contract,
|
|
49
|
+
"source_contract": source_contract,
|
|
50
|
+
"write_policy": normalize_write_policy(capability.get("write_policy")),
|
|
51
|
+
"write_policy_raw": capability.get("write_policy"),
|
|
52
|
+
**write_policy_public_fields(capability.get("write_policy")),
|
|
53
|
+
"inputs": capability.get("inputs") or {},
|
|
54
|
+
"outputs": capability.get("outputs") or {},
|
|
55
|
+
"integration": capability.get("integration") or {},
|
|
56
|
+
"requires": capability.get("requires") or {},
|
|
57
|
+
"has_runner": bool(((capability.get("entrypoint") or {}).get("runner"))),
|
|
58
|
+
"path": str(capability_path.parent.relative_to(root)),
|
|
59
|
+
}
|
|
60
|
+
agent["capabilities_index"][short_id] = public_capability
|
|
61
|
+
capabilities[f"{agent_id}/{short_id}"] = public_capability
|
|
62
|
+
public = public_agent(agent)
|
|
63
|
+
agents[agent_id] = public
|
|
64
|
+
runtime_role = public.get("runtime_role") if isinstance(public.get("runtime_role"), dict) else {}
|
|
65
|
+
role_kind = str(runtime_role.get("kind") or "").strip()
|
|
66
|
+
if role_kind:
|
|
67
|
+
runtime_roles.setdefault(role_kind, agent_id)
|
|
68
|
+
return {"agents": agents, "capabilities": capabilities, "runtime_roles": runtime_roles}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def public_agent(agent: dict[str, Any]) -> dict[str, Any]:
|
|
72
|
+
surface = agent.get("agent_surface") if isinstance(agent.get("agent_surface"), dict) else {}
|
|
73
|
+
return {
|
|
74
|
+
"id": agent.get("id"),
|
|
75
|
+
"name": agent.get("name") or agent.get("id"),
|
|
76
|
+
"kind": agent.get("kind"),
|
|
77
|
+
"status": agent.get("status"),
|
|
78
|
+
"version": agent.get("version"),
|
|
79
|
+
"purpose": compact(str(agent.get("purpose") or "")),
|
|
80
|
+
"routing": normalize_routing(agent.get("routing")),
|
|
81
|
+
"runtime_role": normalize_runtime_role(agent.get("runtime_role")),
|
|
82
|
+
"agent_mode": normalize_agent_mode(agent.get("agent_mode")),
|
|
83
|
+
"depends_on_agents": list(agent.get("depends_on_agents") or []),
|
|
84
|
+
"orchestrated_agents": list(surface.get("orchestrated_agents") or []),
|
|
85
|
+
"capabilities": list(agent.get("capabilities") or []),
|
|
86
|
+
"capabilities_index": dict(agent.get("capabilities_index") or {}),
|
|
87
|
+
"write_policy": normalize_agent_write_policy(agent.get("write_policy")),
|
|
88
|
+
"write_policy_raw": agent.get("write_policy"),
|
|
89
|
+
"write_policy_metadata": normalize_agent_write_policy_metadata(agent.get("write_policy")),
|
|
90
|
+
"path": agent.get("path"),
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def find_capability(registry: dict[str, Any], agent_id: str, capability_id: str) -> dict[str, Any] | None:
|
|
95
|
+
return (registry.get("capabilities") or {}).get(f"{agent_id}/{capability_id}")
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def read_yaml(path: Path) -> dict[str, Any]:
|
|
99
|
+
data = yaml.safe_load(path.read_text(encoding="utf-8")) or {}
|
|
100
|
+
return data if isinstance(data, dict) else {}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def compact(value: str, *, limit: int = 240) -> str:
|
|
104
|
+
text = " ".join(value.split())
|
|
105
|
+
if len(text) <= limit:
|
|
106
|
+
return text
|
|
107
|
+
return text[: limit - 3].rstrip() + "..."
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def normalize_agent_write_policy(value: Any) -> Any:
|
|
111
|
+
if isinstance(value, dict):
|
|
112
|
+
return {str(key): normalize_write_policy(policy) for key, policy in value.items()}
|
|
113
|
+
if value:
|
|
114
|
+
return normalize_write_policy(value)
|
|
115
|
+
return value
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def normalize_agent_write_policy_metadata(value: Any) -> Any:
|
|
119
|
+
if isinstance(value, dict):
|
|
120
|
+
return {str(key): write_policy_public_fields(policy)["write_policy_metadata"] for key, policy in value.items()}
|
|
121
|
+
if value:
|
|
122
|
+
return write_policy_public_fields(value)["write_policy_metadata"]
|
|
123
|
+
return value
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def normalize_routing(value: Any) -> dict[str, Any]:
|
|
127
|
+
if not isinstance(value, dict):
|
|
128
|
+
return {}
|
|
129
|
+
return {
|
|
130
|
+
"aliases": normalize_routing_strings(value.get("aliases")),
|
|
131
|
+
"anchors": normalize_routing_strings(value.get("anchors")),
|
|
132
|
+
"domains": normalize_routing_strings(value.get("domains")),
|
|
133
|
+
"entities": normalize_routing_strings(value.get("entities")),
|
|
134
|
+
"intents": normalize_routing_strings(value.get("intents")),
|
|
135
|
+
"keywords": normalize_routing_strings(value.get("keywords")),
|
|
136
|
+
"examples": normalize_routing_strings(value.get("examples")),
|
|
137
|
+
"priority": value.get("priority", 0),
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def normalize_routing_strings(value: Any) -> list[str]:
|
|
142
|
+
if not isinstance(value, list):
|
|
143
|
+
return []
|
|
144
|
+
return [item.strip() for item in value if isinstance(item, str) and item.strip()]
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def normalize_runtime_role(value: Any) -> dict[str, Any]:
|
|
148
|
+
if not isinstance(value, dict):
|
|
149
|
+
return {}
|
|
150
|
+
kind = str(value.get("kind") or "").strip()
|
|
151
|
+
if not kind:
|
|
152
|
+
return {}
|
|
153
|
+
role: dict[str, Any] = {"kind": kind}
|
|
154
|
+
description = str(value.get("description") or "").strip()
|
|
155
|
+
if description:
|
|
156
|
+
role["description"] = compact(description)
|
|
157
|
+
return role
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def normalize_agent_mode(value: Any) -> dict[str, Any]:
|
|
161
|
+
if not isinstance(value, dict):
|
|
162
|
+
return {}
|
|
163
|
+
mode_type = str(value.get("type") or "").strip()
|
|
164
|
+
if not mode_type:
|
|
165
|
+
return {}
|
|
166
|
+
can_call_llm = value.get("can_call_llm")
|
|
167
|
+
normalized_llm: bool | str = False if can_call_llm is False else str(can_call_llm if can_call_llm is not None else "optional")
|
|
168
|
+
return {
|
|
169
|
+
"type": mode_type,
|
|
170
|
+
"max_steps": positive_int(value.get("max_steps"), default=5),
|
|
171
|
+
"max_specialists": positive_int(value.get("max_specialists"), default=5),
|
|
172
|
+
"max_llm_calls": positive_int(value.get("max_llm_calls"), default=0, allow_zero=True),
|
|
173
|
+
"timeout_seconds": positive_int(value.get("timeout_seconds"), default=300),
|
|
174
|
+
"can_call_capabilities": value.get("can_call_capabilities") is True,
|
|
175
|
+
"can_call_llm": normalized_llm,
|
|
176
|
+
"can_request_user_input": value.get("can_request_user_input") is True,
|
|
177
|
+
"external_writes": value.get("external_writes") is True,
|
|
178
|
+
"allowed_capabilities": normalize_string_list(value.get("allowed_capabilities")),
|
|
179
|
+
"stop_conditions": normalize_string_list(value.get("stop_conditions")),
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def positive_int(value: Any, *, default: int, allow_zero: bool = False) -> int:
|
|
184
|
+
try:
|
|
185
|
+
parsed = int(value)
|
|
186
|
+
except (TypeError, ValueError):
|
|
187
|
+
return default
|
|
188
|
+
if allow_zero and parsed == 0:
|
|
189
|
+
return 0
|
|
190
|
+
return parsed if parsed > 0 else default
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
def normalize_string_list(value: Any) -> list[str]:
|
|
194
|
+
if not isinstance(value, list):
|
|
195
|
+
return []
|
|
196
|
+
return [str(item).strip() for item in value if str(item).strip()]
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def normalize_runtime(value: Any) -> dict[str, Any]:
|
|
200
|
+
if not isinstance(value, dict):
|
|
201
|
+
return {}
|
|
202
|
+
runtime: dict[str, Any] = {}
|
|
203
|
+
provider = str(value.get("provider") or "").strip()
|
|
204
|
+
if provider:
|
|
205
|
+
runtime["provider"] = provider
|
|
206
|
+
source = value.get("source") if isinstance(value.get("source"), dict) else None
|
|
207
|
+
if source:
|
|
208
|
+
normalized_source: dict[str, Any] = {"enabled": source.get("enabled") is True}
|
|
209
|
+
for key in ("args", "env"):
|
|
210
|
+
mapping = source.get(key)
|
|
211
|
+
if isinstance(mapping, dict):
|
|
212
|
+
normalized_source[key] = {
|
|
213
|
+
str(item_key): str(item_value)
|
|
214
|
+
for item_key, item_value in mapping.items()
|
|
215
|
+
if str(item_key).strip() and str(item_value).strip()
|
|
216
|
+
}
|
|
217
|
+
runtime["source"] = normalized_source
|
|
218
|
+
return runtime
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def normalize_source_contract(value: Any, *, runtime: dict[str, Any] | None = None) -> dict[str, Any]:
|
|
222
|
+
if isinstance(value, dict):
|
|
223
|
+
return normalize_declared_source_contract(value, origin="source")
|
|
224
|
+
runtime_source = (runtime or {}).get("source") if isinstance(runtime, dict) else None
|
|
225
|
+
if isinstance(runtime_source, dict):
|
|
226
|
+
normalized = normalize_declared_source_contract(runtime_source, origin="runtime.source")
|
|
227
|
+
if "supported" not in normalized and "enabled" in normalized:
|
|
228
|
+
normalized["supported"] = bool(normalized["enabled"])
|
|
229
|
+
if "enabled" not in normalized and "supported" in normalized:
|
|
230
|
+
normalized["enabled"] = bool(normalized["supported"])
|
|
231
|
+
return normalized
|
|
232
|
+
return {"enabled": False, "supported": False, "args": {}, "env": {}}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def normalize_declared_source_contract(value: dict[str, Any], *, origin: str) -> dict[str, Any]:
|
|
236
|
+
enabled = value.get("enabled")
|
|
237
|
+
supported = value.get("supported")
|
|
238
|
+
is_enabled = enabled is True or supported is True
|
|
239
|
+
contract: dict[str, Any] = {
|
|
240
|
+
"enabled": is_enabled,
|
|
241
|
+
"supported": is_enabled,
|
|
242
|
+
"args": normalize_string_map(value.get("args")),
|
|
243
|
+
"env": normalize_string_map(value.get("env")),
|
|
244
|
+
"origin": origin,
|
|
245
|
+
}
|
|
246
|
+
mappings = value.get("mappings")
|
|
247
|
+
if mappings is None:
|
|
248
|
+
mappings = value.get("apply")
|
|
249
|
+
if isinstance(mappings, list):
|
|
250
|
+
normalized_mappings = []
|
|
251
|
+
for item in mappings:
|
|
252
|
+
if not isinstance(item, dict):
|
|
253
|
+
continue
|
|
254
|
+
field = str(item.get("field") or item.get("name") or "").strip()
|
|
255
|
+
if not field:
|
|
256
|
+
continue
|
|
257
|
+
arg = str(item.get("arg") or "").strip()
|
|
258
|
+
env = str(item.get("env") or "").strip()
|
|
259
|
+
mapping: dict[str, str] = {"field": field}
|
|
260
|
+
if arg:
|
|
261
|
+
contract["args"][field] = arg
|
|
262
|
+
mapping["arg"] = arg
|
|
263
|
+
if env:
|
|
264
|
+
contract["env"][field] = env
|
|
265
|
+
mapping["env"] = env
|
|
266
|
+
if len(mapping) > 1:
|
|
267
|
+
normalized_mappings.append(mapping)
|
|
268
|
+
contract["mappings"] = normalized_mappings
|
|
269
|
+
return contract
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
def normalize_string_map(value: Any) -> dict[str, str]:
|
|
273
|
+
if not isinstance(value, dict):
|
|
274
|
+
return {}
|
|
275
|
+
return {
|
|
276
|
+
str(item_key): str(item_value)
|
|
277
|
+
for item_key, item_value in value.items()
|
|
278
|
+
if str(item_key).strip() and str(item_value).strip()
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def resolve_capability_provider(
|
|
283
|
+
agent_id: str,
|
|
284
|
+
short_id: str,
|
|
285
|
+
capability: dict[str, Any],
|
|
286
|
+
runtime: dict[str, Any],
|
|
287
|
+
provider_map: dict[str, str],
|
|
288
|
+
) -> dict[str, Any]:
|
|
289
|
+
if runtime.get("provider"):
|
|
290
|
+
return {"provider": str(runtime["provider"]), "source": "runtime", "inferred": False}
|
|
291
|
+
requires = capability.get("requires") if isinstance(capability.get("requires"), dict) else {}
|
|
292
|
+
providers = requires.get("providers") if isinstance(requires.get("providers"), list) else []
|
|
293
|
+
if providers and isinstance(providers[0], dict) and providers[0].get("id"):
|
|
294
|
+
return {"provider": str(providers[0]["id"]), "source": "requires", "inferred": False}
|
|
295
|
+
integration = capability.get("integration") if isinstance(capability.get("integration"), dict) else {}
|
|
296
|
+
if integration.get("provider"):
|
|
297
|
+
return {"provider": str(integration["provider"]), "source": "integration", "inferred": False}
|
|
298
|
+
provider = provider_map.get(f"{agent_id}/{short_id}") or provider_map.get(agent_id)
|
|
299
|
+
if provider:
|
|
300
|
+
return {"provider": provider, "source": "provider-registry", "inferred": True}
|
|
301
|
+
return {"provider": None, "source": "none", "inferred": False}
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
def load_provider_capability_map(root: Path) -> dict[str, str]:
|
|
305
|
+
providers_dir = root / "providers"
|
|
306
|
+
provider_map: dict[str, str] = {}
|
|
307
|
+
if not providers_dir.is_dir():
|
|
308
|
+
return provider_map
|
|
309
|
+
for provider_path in sorted(providers_dir.glob("*.yaml")):
|
|
310
|
+
provider = read_yaml(provider_path)
|
|
311
|
+
provider_id = str(provider.get("id") or "").strip()
|
|
312
|
+
capabilities = provider.get("capabilities") if isinstance(provider.get("capabilities"), dict) else {}
|
|
313
|
+
if not provider_id or not capabilities:
|
|
314
|
+
continue
|
|
315
|
+
for declared in list(capabilities.get("read") or []) + list(capabilities.get("write") or []):
|
|
316
|
+
declared_id = str(declared or "").strip()
|
|
317
|
+
if declared_id:
|
|
318
|
+
provider_map.setdefault(declared_id, provider_id)
|
|
319
|
+
return provider_map
|
|
@@ -3,12 +3,16 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
+
import shutil
|
|
6
7
|
from pathlib import Path
|
|
8
|
+
from typing import Any
|
|
7
9
|
|
|
8
10
|
|
|
11
|
+
CANONICAL_APP_HOME_ENV = "AGENT_DEVKIT_HOME"
|
|
9
12
|
APP_HOME_ENV = "AI_DEVKIT_CONFIG_HOME"
|
|
10
13
|
LEGACY_APP_HOME_ENV = "AIKIT_CONFIG_HOME"
|
|
11
|
-
DEFAULT_APP_HOME_NAME = ".
|
|
14
|
+
DEFAULT_APP_HOME_NAME = ".agent-devkit"
|
|
15
|
+
LEGACY_DEFAULT_APP_HOME_NAME = ".ai-devkit"
|
|
12
16
|
|
|
13
17
|
APP_DIRS = (
|
|
14
18
|
"bin",
|
|
@@ -27,12 +31,93 @@ APP_DIRS = (
|
|
|
27
31
|
|
|
28
32
|
def app_home() -> Path:
|
|
29
33
|
"""Return the configured Agent DevKit home directory."""
|
|
30
|
-
raw = os.environ.get(APP_HOME_ENV) or os.environ.get(LEGACY_APP_HOME_ENV)
|
|
34
|
+
raw = os.environ.get(CANONICAL_APP_HOME_ENV) or os.environ.get(APP_HOME_ENV) or os.environ.get(LEGACY_APP_HOME_ENV)
|
|
31
35
|
if raw:
|
|
32
36
|
return Path(raw).expanduser().resolve()
|
|
37
|
+
canonical = canonical_default_app_home()
|
|
38
|
+
legacy = legacy_default_app_home()
|
|
39
|
+
if canonical.exists():
|
|
40
|
+
return canonical
|
|
41
|
+
if legacy.exists():
|
|
42
|
+
return legacy
|
|
43
|
+
return canonical
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def canonical_default_app_home() -> Path:
|
|
33
47
|
return (Path.home() / DEFAULT_APP_HOME_NAME).resolve()
|
|
34
48
|
|
|
35
49
|
|
|
50
|
+
def legacy_default_app_home() -> Path:
|
|
51
|
+
return (Path.home() / LEGACY_DEFAULT_APP_HOME_NAME).resolve()
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def app_home_status() -> dict[str, Any]:
|
|
55
|
+
explicit_env = active_home_env()
|
|
56
|
+
canonical = canonical_default_app_home()
|
|
57
|
+
legacy = legacy_default_app_home()
|
|
58
|
+
home = app_home()
|
|
59
|
+
status = "canonical"
|
|
60
|
+
if explicit_env:
|
|
61
|
+
status = "env"
|
|
62
|
+
elif home == legacy:
|
|
63
|
+
status = "legacy-default-detected"
|
|
64
|
+
elif not canonical.exists() and not legacy.exists():
|
|
65
|
+
status = "canonical-default"
|
|
66
|
+
return {
|
|
67
|
+
"kind": "app-home-status",
|
|
68
|
+
"status": status,
|
|
69
|
+
"home": str(home),
|
|
70
|
+
"canonical_home": str(canonical),
|
|
71
|
+
"legacy_home": str(legacy),
|
|
72
|
+
"active_env": explicit_env,
|
|
73
|
+
"canonical_exists": canonical.exists(),
|
|
74
|
+
"legacy_exists": legacy.exists(),
|
|
75
|
+
"migration_available": not explicit_env and legacy.exists() and not canonical.exists(),
|
|
76
|
+
"migration_command": "agent config migrate-home",
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def active_home_env() -> dict[str, str] | None:
|
|
81
|
+
for name in (CANONICAL_APP_HOME_ENV, APP_HOME_ENV, LEGACY_APP_HOME_ENV):
|
|
82
|
+
value = os.environ.get(name)
|
|
83
|
+
if value:
|
|
84
|
+
return {"name": name, "value": str(Path(value).expanduser().resolve())}
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def migrate_default_home(*, dry_run: bool = False) -> dict[str, Any]:
|
|
89
|
+
source = legacy_default_app_home()
|
|
90
|
+
destination = canonical_default_app_home()
|
|
91
|
+
payload: dict[str, Any] = {
|
|
92
|
+
"kind": "home-migration",
|
|
93
|
+
"source": str(source),
|
|
94
|
+
"destination": str(destination),
|
|
95
|
+
"dry_run": dry_run,
|
|
96
|
+
"executed": False,
|
|
97
|
+
}
|
|
98
|
+
if destination.exists():
|
|
99
|
+
return {**payload, "status": "not-needed", "message": "Canonical Agent DevKit home already exists."}
|
|
100
|
+
if not source.exists():
|
|
101
|
+
return {**payload, "status": "not-needed", "message": "Legacy AI DevKit home was not found."}
|
|
102
|
+
if dry_run:
|
|
103
|
+
return {**payload, "status": "planned", "message": "Legacy home would be migrated to canonical Agent DevKit home."}
|
|
104
|
+
destination.parent.mkdir(parents=True, exist_ok=True)
|
|
105
|
+
try:
|
|
106
|
+
source.rename(destination)
|
|
107
|
+
method = "rename"
|
|
108
|
+
except OSError:
|
|
109
|
+
shutil.copytree(source, destination)
|
|
110
|
+
shutil.rmtree(source)
|
|
111
|
+
method = "copytree"
|
|
112
|
+
return {
|
|
113
|
+
**payload,
|
|
114
|
+
"status": "migrated",
|
|
115
|
+
"executed": True,
|
|
116
|
+
"method": method,
|
|
117
|
+
"message": "Legacy home migrated to canonical Agent DevKit home.",
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
36
121
|
def app_path(*parts: str) -> Path:
|
|
37
122
|
return app_home().joinpath(*parts)
|
|
38
123
|
|