agent-devkit 0.1.6 → 0.3.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 +59 -5
- package/bin/agent.mjs +133 -7
- package/package.json +1 -1
- package/runtime/README.md +239 -5
- package/runtime/agent +36 -5
- package/runtime/agents/README.md +44 -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/contribution-reviewer/AGENTS.md +8 -0
- package/runtime/agents/contribution-reviewer/README.md +8 -0
- package/runtime/agents/contribution-reviewer/agent.yaml +40 -0
- package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/capability.yaml +27 -0
- package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/decision-rules.md +5 -0
- package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/workflow.md +6 -0
- package/runtime/agents/contribution-reviewer/capabilities/review-contribution/capability.yaml +25 -0
- package/runtime/agents/contribution-reviewer/capabilities/review-contribution/decision-rules.md +5 -0
- package/runtime/agents/contribution-reviewer/capabilities/review-contribution/workflow.md +5 -0
- package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/capability.yaml +26 -0
- package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/decision-rules.md +5 -0
- package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/workflow.md +6 -0
- package/runtime/agents/contribution-reviewer/infra/README.md +6 -0
- package/runtime/agents/contribution-reviewer/knowledge/context.md +8 -0
- package/runtime/agents/contribution-reviewer/knowledge/system.md +8 -0
- package/runtime/agents/contribution-reviewer/templates/README.md +3 -0
- 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-author/AGENTS.md +7 -0
- package/runtime/agents/knowledge-author/README.md +7 -0
- package/runtime/agents/knowledge-author/agent.yaml +37 -0
- package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/capability.yaml +30 -0
- package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/decision-rules.md +6 -0
- package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/workflow.md +7 -0
- package/runtime/agents/knowledge-author/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-author/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-author/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-author/templates/.gitkeep +1 -0
- package/runtime/agents/knowledge-curator/AGENTS.md +7 -0
- package/runtime/agents/knowledge-curator/README.md +6 -0
- package/runtime/agents/knowledge-curator/agent.yaml +37 -0
- package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/capability.yaml +29 -0
- package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/decision-rules.md +6 -0
- package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/workflow.md +7 -0
- package/runtime/agents/knowledge-curator/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-curator/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-curator/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-curator/templates/.gitkeep +1 -0
- package/runtime/agents/knowledge-generator/agent.yaml +13 -3
- package/runtime/agents/knowledge-generator/capabilities/generate-knowledge/capability.yaml +1 -1
- package/runtime/agents/knowledge-infra-builder/AGENTS.md +8 -0
- package/runtime/agents/knowledge-infra-builder/README.md +8 -0
- package/runtime/agents/knowledge-infra-builder/agent.yaml +38 -0
- package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/capability.yaml +30 -0
- package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/decision-rules.md +6 -0
- package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/workflow.md +7 -0
- package/runtime/agents/knowledge-infra-builder/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-infra-builder/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-infra-builder/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-infra-builder/templates/.gitkeep +1 -0
- package/runtime/agents/knowledge-owner/AGENTS.md +7 -0
- package/runtime/agents/knowledge-owner/README.md +6 -0
- package/runtime/agents/knowledge-owner/agent.yaml +37 -0
- package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/capability.yaml +28 -0
- package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/decision-rules.md +6 -0
- package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/workflow.md +7 -0
- package/runtime/agents/knowledge-owner/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-owner/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-owner/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-owner/templates/.gitkeep +1 -0
- package/runtime/agents/knowledge-reviewer/AGENTS.md +7 -0
- package/runtime/agents/knowledge-reviewer/README.md +7 -0
- package/runtime/agents/knowledge-reviewer/agent.yaml +36 -0
- package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/capability.yaml +26 -0
- package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/decision-rules.md +6 -0
- package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/workflow.md +7 -0
- package/runtime/agents/knowledge-reviewer/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-reviewer/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-reviewer/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-reviewer/templates/.gitkeep +1 -0
- 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/local-memory-manager/AGENTS.md +5 -0
- package/runtime/agents/local-memory-manager/README.md +7 -0
- package/runtime/agents/local-memory-manager/agent.yaml +38 -0
- package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/capability.yaml +19 -0
- package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/decision-rules.md +5 -0
- package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/workflow.md +6 -0
- package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/capability.yaml +19 -0
- package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/decision-rules.md +5 -0
- package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/workflow.md +5 -0
- package/runtime/agents/local-memory-manager/infra/.gitkeep +1 -0
- package/runtime/agents/local-memory-manager/knowledge/context.md +4 -0
- package/runtime/agents/local-memory-manager/knowledge/system.md +4 -0
- package/runtime/agents/local-memory-manager/templates/.gitkeep +1 -0
- package/runtime/agents/memory-sync-manager/AGENTS.md +7 -0
- package/runtime/agents/memory-sync-manager/README.md +7 -0
- package/runtime/agents/memory-sync-manager/agent.yaml +37 -0
- package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/capability.yaml +29 -0
- package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/decision-rules.md +6 -0
- package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/workflow.md +7 -0
- package/runtime/agents/memory-sync-manager/infra/.gitkeep +1 -0
- package/runtime/agents/memory-sync-manager/knowledge/context.md +4 -0
- package/runtime/agents/memory-sync-manager/knowledge/system.md +4 -0
- package/runtime/agents/memory-sync-manager/templates/.gitkeep +1 -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/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/shared-memory-curator/AGENTS.md +5 -0
- package/runtime/agents/shared-memory-curator/README.md +6 -0
- package/runtime/agents/shared-memory-curator/agent.yaml +38 -0
- package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/capability.yaml +19 -0
- package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/decision-rules.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/workflow.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/capability.yaml +19 -0
- package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/decision-rules.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/workflow.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/capability.yaml +19 -0
- package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/decision-rules.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/workflow.md +5 -0
- package/runtime/agents/shared-memory-curator/infra/.gitkeep +1 -0
- package/runtime/agents/shared-memory-curator/knowledge/context.md +5 -0
- package/runtime/agents/shared-memory-curator/knowledge/system.md +4 -0
- package/runtime/agents/shared-memory-curator/templates/.gitkeep +1 -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/README.md +35 -4
- 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 +247 -6
- package/runtime/cli/aikit/agentic_commands.py +158 -0
- package/runtime/cli/aikit/app_home.py +1 -0
- package/runtime/cli/aikit/architecture.py +84 -0
- package/runtime/cli/aikit/audit.py +187 -8
- package/runtime/cli/aikit/autonomy.py +237 -0
- package/runtime/cli/aikit/capability_runtime.py +522 -0
- package/runtime/cli/aikit/catalog.py +516 -0
- package/runtime/cli/aikit/cli_dispatch.py +1554 -0
- package/runtime/cli/aikit/cli_parser.py +547 -0
- package/runtime/cli/aikit/collaboration.py +359 -0
- package/runtime/cli/aikit/configuration_orchestrator.py +52 -26
- package/runtime/cli/aikit/contribution.py +235 -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 +164 -0
- package/runtime/cli/aikit/errors.py +7 -0
- package/runtime/cli/aikit/eval.py +504 -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 +1332 -0
- package/runtime/cli/aikit/impact_map.py +294 -0
- package/runtime/cli/aikit/interactive_wizard.py +227 -0
- package/runtime/cli/aikit/knowledge_base.py +1067 -0
- package/runtime/cli/aikit/llm.py +12 -4
- package/runtime/cli/aikit/local_artifacts.py +444 -0
- package/runtime/cli/aikit/local_llm.py +161 -0
- package/runtime/cli/aikit/local_llm_operator.py +35 -1
- package/runtime/cli/aikit/main.py +23 -2833
- package/runtime/cli/aikit/mcp_manifest.py +1027 -0
- package/runtime/cli/aikit/mcp_server.py +132 -0
- package/runtime/cli/aikit/mcp_tools.py +900 -0
- package/runtime/cli/aikit/memory.py +405 -0
- package/runtime/cli/aikit/mini_brain.py +246 -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 +662 -0
- package/runtime/cli/aikit/notifications.py +716 -2
- package/runtime/cli/aikit/ollama.py +64 -14
- package/runtime/cli/aikit/onboarding.py +551 -0
- package/runtime/cli/aikit/orchestrator.py +809 -119
- package/runtime/cli/aikit/output.py +130 -2
- package/runtime/cli/aikit/permissions.py +14 -4
- package/runtime/cli/aikit/prompt_injection.py +68 -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 +114 -0
- package/runtime/cli/aikit/sessions.py +88 -2
- package/runtime/cli/aikit/setup_wizard_payload.py +35 -0
- package/runtime/cli/aikit/shared_memory.py +415 -0
- package/runtime/cli/aikit/sources.py +298 -50
- package/runtime/cli/aikit/specialist_readiness.py +152 -0
- package/runtime/cli/aikit/tasks.py +553 -22
- package/runtime/cli/aikit/team.py +380 -0
- package/runtime/cli/aikit/toolchain.py +7 -2
- package/runtime/cli/aikit/wizard_state.py +15 -1
- package/runtime/cli/aikit/workflows.py +216 -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/knowledge-github.yaml +40 -0
- package/runtime/providers/knowledge-google-drive.yaml +32 -0
- package/runtime/providers/knowledge-local.yaml +26 -0
- package/runtime/providers/knowledge-notion.yaml +32 -0
- package/runtime/providers/knowledge-obsidian.yaml +24 -0
- package/runtime/providers/knowledge-onedrive.yaml +36 -0
- package/runtime/providers/knowledge-s3.yaml +45 -0
- package/runtime/providers/knowledge-sharepoint.yaml +39 -0
- package/runtime/providers/knowledge-supabase.yaml +43 -0
- package/runtime/providers/knowledge-vector.yaml +39 -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/requirements.txt +6 -0
- package/runtime/scripts/docker-cli-qa.sh +453 -0
- package/runtime/scripts/release-catalog-snapshot.json +594 -0
- package/runtime/scripts/release-gate.py +189 -8
- package/runtime/scripts/validate-repo.py +312 -0
- package/runtime/tooling/toolchain.yaml +92 -0
- package/runtime/vendor/skills/napkin/napkin.md +32 -12
- package/runtime/workflows/azure-card-analysis/README.md +3 -0
- package/runtime/workflows/azure-card-analysis/workflow.yaml +30 -0
- package/runtime/workflows/daily-pr-review/README.md +3 -0
- package/runtime/workflows/daily-pr-review/workflow.yaml +31 -0
- package/runtime/workflows/incident-analysis/README.md +3 -0
- package/runtime/workflows/incident-analysis/workflow.yaml +33 -0
- package/runtime/workflows/release-prep/README.md +3 -0
- package/runtime/workflows/release-prep/workflow.yaml +30 -0
|
@@ -5,15 +5,17 @@ from __future__ import annotations
|
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
from typing import Any
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
from cli.aikit.write_policy import normalize_write_policy, write_policy_public_fields
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def load_agent_registry(root: Path) -> dict[str, Any]:
|
|
12
12
|
agents_dir = root / "agents"
|
|
13
13
|
agents: dict[str, dict[str, Any]] = {}
|
|
14
14
|
capabilities: dict[str, dict[str, Any]] = {}
|
|
15
|
+
runtime_roles: dict[str, str] = {}
|
|
15
16
|
if not agents_dir.exists():
|
|
16
|
-
return {"agents": agents, "capabilities": capabilities}
|
|
17
|
+
return {"agents": agents, "capabilities": capabilities, "runtime_roles": runtime_roles}
|
|
18
|
+
provider_map = load_provider_capability_map(root)
|
|
17
19
|
for agent_path in sorted(path for path in agents_dir.iterdir() if path.is_dir()):
|
|
18
20
|
manifest_path = agent_path / "agent.yaml"
|
|
19
21
|
if not manifest_path.exists():
|
|
@@ -27,13 +29,25 @@ def load_agent_registry(root: Path) -> dict[str, Any]:
|
|
|
27
29
|
capability = read_yaml(capability_path)
|
|
28
30
|
capability_id = str(capability.get("id") or capability_path.parent.name)
|
|
29
31
|
short_id = capability_id.rsplit(".", 1)[-1]
|
|
32
|
+
runtime = normalize_runtime(capability.get("runtime"))
|
|
33
|
+
provider_resolution = resolve_capability_provider(agent_id, short_id, capability, runtime, provider_map)
|
|
34
|
+
source_contract = normalize_source_contract(capability.get("source"), runtime=runtime)
|
|
30
35
|
public_capability = {
|
|
31
36
|
"id": capability_id,
|
|
32
37
|
"short_id": short_id,
|
|
33
38
|
"agent_id": agent_id,
|
|
34
39
|
"name": capability.get("name") or short_id,
|
|
35
40
|
"purpose": compact(str(capability.get("purpose") or "")),
|
|
36
|
-
"
|
|
41
|
+
"routing": normalize_routing(capability.get("routing")),
|
|
42
|
+
"runtime": runtime,
|
|
43
|
+
"runner": ((capability.get("entrypoint") or {}).get("runner")),
|
|
44
|
+
"provider": provider_resolution.get("provider"),
|
|
45
|
+
"provider_resolution": provider_resolution,
|
|
46
|
+
"source": source_contract,
|
|
47
|
+
"source_contract": source_contract,
|
|
48
|
+
"write_policy": normalize_write_policy(capability.get("write_policy")),
|
|
49
|
+
"write_policy_raw": capability.get("write_policy"),
|
|
50
|
+
**write_policy_public_fields(capability.get("write_policy")),
|
|
37
51
|
"inputs": capability.get("inputs") or {},
|
|
38
52
|
"outputs": capability.get("outputs") or {},
|
|
39
53
|
"integration": capability.get("integration") or {},
|
|
@@ -43,8 +57,13 @@ def load_agent_registry(root: Path) -> dict[str, Any]:
|
|
|
43
57
|
}
|
|
44
58
|
agent["capabilities_index"][short_id] = public_capability
|
|
45
59
|
capabilities[f"{agent_id}/{short_id}"] = public_capability
|
|
46
|
-
|
|
47
|
-
|
|
60
|
+
public = public_agent(agent)
|
|
61
|
+
agents[agent_id] = public
|
|
62
|
+
runtime_role = public.get("runtime_role") if isinstance(public.get("runtime_role"), dict) else {}
|
|
63
|
+
role_kind = str(runtime_role.get("kind") or "").strip()
|
|
64
|
+
if role_kind:
|
|
65
|
+
runtime_roles.setdefault(role_kind, agent_id)
|
|
66
|
+
return {"agents": agents, "capabilities": capabilities, "runtime_roles": runtime_roles}
|
|
48
67
|
|
|
49
68
|
|
|
50
69
|
def public_agent(agent: dict[str, Any]) -> dict[str, Any]:
|
|
@@ -54,12 +73,18 @@ def public_agent(agent: dict[str, Any]) -> dict[str, Any]:
|
|
|
54
73
|
"name": agent.get("name") or agent.get("id"),
|
|
55
74
|
"kind": agent.get("kind"),
|
|
56
75
|
"status": agent.get("status"),
|
|
76
|
+
"version": agent.get("version"),
|
|
57
77
|
"purpose": compact(str(agent.get("purpose") or "")),
|
|
78
|
+
"routing": normalize_routing(agent.get("routing")),
|
|
79
|
+
"runtime_role": normalize_runtime_role(agent.get("runtime_role")),
|
|
80
|
+
"agent_mode": normalize_agent_mode(agent.get("agent_mode")),
|
|
58
81
|
"depends_on_agents": list(agent.get("depends_on_agents") or []),
|
|
59
82
|
"orchestrated_agents": list(surface.get("orchestrated_agents") or []),
|
|
60
83
|
"capabilities": list(agent.get("capabilities") or []),
|
|
61
84
|
"capabilities_index": dict(agent.get("capabilities_index") or {}),
|
|
62
|
-
"write_policy": agent.get("write_policy"),
|
|
85
|
+
"write_policy": normalize_agent_write_policy(agent.get("write_policy")),
|
|
86
|
+
"write_policy_raw": agent.get("write_policy"),
|
|
87
|
+
"write_policy_metadata": normalize_agent_write_policy_metadata(agent.get("write_policy")),
|
|
63
88
|
"path": agent.get("path"),
|
|
64
89
|
}
|
|
65
90
|
|
|
@@ -69,6 +94,10 @@ def find_capability(registry: dict[str, Any], agent_id: str, capability_id: str)
|
|
|
69
94
|
|
|
70
95
|
|
|
71
96
|
def read_yaml(path: Path) -> dict[str, Any]:
|
|
97
|
+
try:
|
|
98
|
+
import yaml # type: ignore
|
|
99
|
+
except ImportError as exc:
|
|
100
|
+
raise RuntimeError("PyYAML is required to read Agent DevKit manifests. Install requirements.txt.") from exc
|
|
72
101
|
data = yaml.safe_load(path.read_text(encoding="utf-8")) or {}
|
|
73
102
|
return data if isinstance(data, dict) else {}
|
|
74
103
|
|
|
@@ -78,3 +107,215 @@ def compact(value: str, *, limit: int = 240) -> str:
|
|
|
78
107
|
if len(text) <= limit:
|
|
79
108
|
return text
|
|
80
109
|
return text[: limit - 3].rstrip() + "..."
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def normalize_agent_write_policy(value: Any) -> Any:
|
|
113
|
+
if isinstance(value, dict):
|
|
114
|
+
return {str(key): normalize_write_policy(policy) for key, policy in value.items()}
|
|
115
|
+
if value:
|
|
116
|
+
return normalize_write_policy(value)
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def normalize_agent_write_policy_metadata(value: Any) -> Any:
|
|
121
|
+
if isinstance(value, dict):
|
|
122
|
+
return {str(key): write_policy_public_fields(policy)["write_policy_metadata"] for key, policy in value.items()}
|
|
123
|
+
if value:
|
|
124
|
+
return write_policy_public_fields(value)["write_policy_metadata"]
|
|
125
|
+
return value
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def normalize_routing(value: Any) -> dict[str, Any]:
|
|
129
|
+
if not isinstance(value, dict):
|
|
130
|
+
return {}
|
|
131
|
+
return {
|
|
132
|
+
"aliases": normalize_routing_strings(value.get("aliases")),
|
|
133
|
+
"anchors": normalize_routing_strings(value.get("anchors")),
|
|
134
|
+
"domains": normalize_routing_strings(value.get("domains")),
|
|
135
|
+
"entities": normalize_routing_strings(value.get("entities")),
|
|
136
|
+
"intents": normalize_routing_strings(value.get("intents")),
|
|
137
|
+
"keywords": normalize_routing_strings(value.get("keywords")),
|
|
138
|
+
"examples": normalize_routing_strings(value.get("examples")),
|
|
139
|
+
"priority": value.get("priority", 0),
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def normalize_routing_strings(value: Any) -> list[str]:
|
|
144
|
+
if not isinstance(value, list):
|
|
145
|
+
return []
|
|
146
|
+
return [item.strip() for item in value if isinstance(item, str) and item.strip()]
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def normalize_runtime_role(value: Any) -> dict[str, Any]:
|
|
150
|
+
if not isinstance(value, dict):
|
|
151
|
+
return {}
|
|
152
|
+
kind = str(value.get("kind") or "").strip()
|
|
153
|
+
if not kind:
|
|
154
|
+
return {}
|
|
155
|
+
role: dict[str, Any] = {"kind": kind}
|
|
156
|
+
description = str(value.get("description") or "").strip()
|
|
157
|
+
if description:
|
|
158
|
+
role["description"] = compact(description)
|
|
159
|
+
return role
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def normalize_agent_mode(value: Any) -> dict[str, Any]:
|
|
163
|
+
if not isinstance(value, dict):
|
|
164
|
+
return {}
|
|
165
|
+
mode_type = str(value.get("type") or "").strip()
|
|
166
|
+
if not mode_type:
|
|
167
|
+
return {}
|
|
168
|
+
can_call_llm = value.get("can_call_llm")
|
|
169
|
+
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")
|
|
170
|
+
return {
|
|
171
|
+
"type": mode_type,
|
|
172
|
+
"max_steps": positive_int(value.get("max_steps"), default=5),
|
|
173
|
+
"max_specialists": positive_int(value.get("max_specialists"), default=5),
|
|
174
|
+
"max_llm_calls": positive_int(value.get("max_llm_calls"), default=0, allow_zero=True),
|
|
175
|
+
"timeout_seconds": positive_int(value.get("timeout_seconds"), default=300),
|
|
176
|
+
"can_call_capabilities": value.get("can_call_capabilities") is True,
|
|
177
|
+
"can_call_llm": normalized_llm,
|
|
178
|
+
"can_request_user_input": value.get("can_request_user_input") is True,
|
|
179
|
+
"external_writes": value.get("external_writes") is True,
|
|
180
|
+
"allowed_capabilities": normalize_string_list(value.get("allowed_capabilities")),
|
|
181
|
+
"stop_conditions": normalize_string_list(value.get("stop_conditions")),
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
def positive_int(value: Any, *, default: int, allow_zero: bool = False) -> int:
|
|
186
|
+
try:
|
|
187
|
+
parsed = int(value)
|
|
188
|
+
except (TypeError, ValueError):
|
|
189
|
+
return default
|
|
190
|
+
if allow_zero and parsed == 0:
|
|
191
|
+
return 0
|
|
192
|
+
return parsed if parsed > 0 else default
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def normalize_string_list(value: Any) -> list[str]:
|
|
196
|
+
if not isinstance(value, list):
|
|
197
|
+
return []
|
|
198
|
+
return [str(item).strip() for item in value if str(item).strip()]
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
def normalize_runtime(value: Any) -> dict[str, Any]:
|
|
202
|
+
if not isinstance(value, dict):
|
|
203
|
+
return {}
|
|
204
|
+
runtime: dict[str, Any] = {}
|
|
205
|
+
provider = str(value.get("provider") or "").strip()
|
|
206
|
+
if provider:
|
|
207
|
+
runtime["provider"] = provider
|
|
208
|
+
source = value.get("source") if isinstance(value.get("source"), dict) else None
|
|
209
|
+
if source:
|
|
210
|
+
normalized_source: dict[str, Any] = {"enabled": source.get("enabled") is True}
|
|
211
|
+
for key in ("args", "env"):
|
|
212
|
+
mapping = source.get(key)
|
|
213
|
+
if isinstance(mapping, dict):
|
|
214
|
+
normalized_source[key] = {
|
|
215
|
+
str(item_key): str(item_value)
|
|
216
|
+
for item_key, item_value in mapping.items()
|
|
217
|
+
if str(item_key).strip() and str(item_value).strip()
|
|
218
|
+
}
|
|
219
|
+
runtime["source"] = normalized_source
|
|
220
|
+
return runtime
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
def normalize_source_contract(value: Any, *, runtime: dict[str, Any] | None = None) -> dict[str, Any]:
|
|
224
|
+
if isinstance(value, dict):
|
|
225
|
+
return normalize_declared_source_contract(value, origin="source")
|
|
226
|
+
runtime_source = (runtime or {}).get("source") if isinstance(runtime, dict) else None
|
|
227
|
+
if isinstance(runtime_source, dict):
|
|
228
|
+
normalized = normalize_declared_source_contract(runtime_source, origin="runtime.source")
|
|
229
|
+
if "supported" not in normalized and "enabled" in normalized:
|
|
230
|
+
normalized["supported"] = bool(normalized["enabled"])
|
|
231
|
+
if "enabled" not in normalized and "supported" in normalized:
|
|
232
|
+
normalized["enabled"] = bool(normalized["supported"])
|
|
233
|
+
return normalized
|
|
234
|
+
return {"enabled": False, "supported": False, "args": {}, "env": {}}
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def normalize_declared_source_contract(value: dict[str, Any], *, origin: str) -> dict[str, Any]:
|
|
238
|
+
enabled = value.get("enabled")
|
|
239
|
+
supported = value.get("supported")
|
|
240
|
+
is_enabled = enabled is True or supported is True
|
|
241
|
+
contract: dict[str, Any] = {
|
|
242
|
+
"enabled": is_enabled,
|
|
243
|
+
"supported": is_enabled,
|
|
244
|
+
"args": normalize_string_map(value.get("args")),
|
|
245
|
+
"env": normalize_string_map(value.get("env")),
|
|
246
|
+
"origin": origin,
|
|
247
|
+
}
|
|
248
|
+
mappings = value.get("mappings")
|
|
249
|
+
if mappings is None:
|
|
250
|
+
mappings = value.get("apply")
|
|
251
|
+
if isinstance(mappings, list):
|
|
252
|
+
normalized_mappings = []
|
|
253
|
+
for item in mappings:
|
|
254
|
+
if not isinstance(item, dict):
|
|
255
|
+
continue
|
|
256
|
+
field = str(item.get("field") or item.get("name") or "").strip()
|
|
257
|
+
if not field:
|
|
258
|
+
continue
|
|
259
|
+
arg = str(item.get("arg") or "").strip()
|
|
260
|
+
env = str(item.get("env") or "").strip()
|
|
261
|
+
mapping: dict[str, str] = {"field": field}
|
|
262
|
+
if arg:
|
|
263
|
+
contract["args"][field] = arg
|
|
264
|
+
mapping["arg"] = arg
|
|
265
|
+
if env:
|
|
266
|
+
contract["env"][field] = env
|
|
267
|
+
mapping["env"] = env
|
|
268
|
+
if len(mapping) > 1:
|
|
269
|
+
normalized_mappings.append(mapping)
|
|
270
|
+
contract["mappings"] = normalized_mappings
|
|
271
|
+
return contract
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
def normalize_string_map(value: Any) -> dict[str, str]:
|
|
275
|
+
if not isinstance(value, dict):
|
|
276
|
+
return {}
|
|
277
|
+
return {
|
|
278
|
+
str(item_key): str(item_value)
|
|
279
|
+
for item_key, item_value in value.items()
|
|
280
|
+
if str(item_key).strip() and str(item_value).strip()
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
def resolve_capability_provider(
|
|
285
|
+
agent_id: str,
|
|
286
|
+
short_id: str,
|
|
287
|
+
capability: dict[str, Any],
|
|
288
|
+
runtime: dict[str, Any],
|
|
289
|
+
provider_map: dict[str, str],
|
|
290
|
+
) -> dict[str, Any]:
|
|
291
|
+
if runtime.get("provider"):
|
|
292
|
+
return {"provider": str(runtime["provider"]), "source": "runtime", "inferred": False}
|
|
293
|
+
requires = capability.get("requires") if isinstance(capability.get("requires"), dict) else {}
|
|
294
|
+
providers = requires.get("providers") if isinstance(requires.get("providers"), list) else []
|
|
295
|
+
if providers and isinstance(providers[0], dict) and providers[0].get("id"):
|
|
296
|
+
return {"provider": str(providers[0]["id"]), "source": "requires", "inferred": False}
|
|
297
|
+
integration = capability.get("integration") if isinstance(capability.get("integration"), dict) else {}
|
|
298
|
+
if integration.get("provider"):
|
|
299
|
+
return {"provider": str(integration["provider"]), "source": "integration", "inferred": False}
|
|
300
|
+
provider = provider_map.get(f"{agent_id}/{short_id}") or provider_map.get(agent_id)
|
|
301
|
+
if provider:
|
|
302
|
+
return {"provider": provider, "source": "provider-registry", "inferred": True}
|
|
303
|
+
return {"provider": None, "source": "none", "inferred": False}
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
def load_provider_capability_map(root: Path) -> dict[str, str]:
|
|
307
|
+
providers_dir = root / "providers"
|
|
308
|
+
provider_map: dict[str, str] = {}
|
|
309
|
+
if not providers_dir.is_dir():
|
|
310
|
+
return provider_map
|
|
311
|
+
for provider_path in sorted(providers_dir.glob("*.yaml")):
|
|
312
|
+
provider = read_yaml(provider_path)
|
|
313
|
+
provider_id = str(provider.get("id") or "").strip()
|
|
314
|
+
capabilities = provider.get("capabilities") if isinstance(provider.get("capabilities"), dict) else {}
|
|
315
|
+
if not provider_id or not capabilities:
|
|
316
|
+
continue
|
|
317
|
+
for declared in list(capabilities.get("read") or []) + list(capabilities.get("write") or []):
|
|
318
|
+
declared_id = str(declared or "").strip()
|
|
319
|
+
if declared_id:
|
|
320
|
+
provider_map.setdefault(declared_id, provider_id)
|
|
321
|
+
return provider_map
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"""Explicit agentic planning and orchestration CLI commands."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
from cli.aikit.core.requests import AgentPromptRequest
|
|
9
|
+
from cli.aikit.errors import DevKitError
|
|
10
|
+
from cli.aikit.natural_prompt_runtime import run_agent_prompt_request
|
|
11
|
+
from cli.aikit.orchestrator import build_execution_plan
|
|
12
|
+
from cli.aikit.runtime_paths import ROOT
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def agentic_plan(root: Path, prompt_parts: list[str] | tuple[str, ...] | None) -> dict[str, Any]:
|
|
16
|
+
prompt = normalize_prompt(prompt_parts, command="plan")
|
|
17
|
+
plan = build_execution_plan(root, prompt, dry_run=True)
|
|
18
|
+
return {
|
|
19
|
+
"kind": "agentic-plan",
|
|
20
|
+
"status": plan.get("status") or "planned",
|
|
21
|
+
"ok": True,
|
|
22
|
+
"dry_run": True,
|
|
23
|
+
"prompt_received": True,
|
|
24
|
+
"prompt_length": len(prompt),
|
|
25
|
+
"summary": plan_summary(plan),
|
|
26
|
+
"execution_plan": plan,
|
|
27
|
+
"orchestration_trace": plan.get("trace", []),
|
|
28
|
+
"response": "Plano agentico gerado sem executar LLM, automacoes ou escritas externas.",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def agentic_execute(
|
|
33
|
+
prompt_parts: list[str] | tuple[str, ...] | None,
|
|
34
|
+
*,
|
|
35
|
+
llm: str | None = None,
|
|
36
|
+
dry_run: bool = False,
|
|
37
|
+
session_id: str | None = None,
|
|
38
|
+
new_session: bool = False,
|
|
39
|
+
no_llm_fallback: bool = False,
|
|
40
|
+
prog_name: str = "agent",
|
|
41
|
+
project: str | None = None,
|
|
42
|
+
mode: str = "execute",
|
|
43
|
+
) -> dict[str, Any]:
|
|
44
|
+
prompt = normalize_prompt(prompt_parts, command=mode)
|
|
45
|
+
if dry_run:
|
|
46
|
+
payload = agentic_plan(ROOT, [prompt])
|
|
47
|
+
payload["command_mode"] = mode
|
|
48
|
+
return payload
|
|
49
|
+
result = run_agent_prompt_request(
|
|
50
|
+
AgentPromptRequest(
|
|
51
|
+
prompt=prompt,
|
|
52
|
+
llm=llm,
|
|
53
|
+
dry_run=False,
|
|
54
|
+
session_id=session_id,
|
|
55
|
+
new_session=new_session,
|
|
56
|
+
no_llm_fallback=no_llm_fallback,
|
|
57
|
+
prog_name=prog_name,
|
|
58
|
+
project=project,
|
|
59
|
+
)
|
|
60
|
+
)
|
|
61
|
+
return attach_agentic_metadata(result, prompt=prompt, mode=mode)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def normalize_prompt(prompt_parts: list[str] | tuple[str, ...] | None, *, command: str) -> str:
|
|
65
|
+
prompt = " ".join(str(part) for part in (prompt_parts or [])).strip()
|
|
66
|
+
if not prompt:
|
|
67
|
+
raise DevKitError(f"agent {command} requires a natural-language prompt")
|
|
68
|
+
return prompt
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def plan_summary(plan: dict[str, Any]) -> dict[str, Any]:
|
|
72
|
+
specialist_tasks = [task for task in plan.get("specialist_tasks") or [] if isinstance(task, dict)]
|
|
73
|
+
configuration_tasks = [task for task in plan.get("configuration_tasks") or [] if isinstance(task, dict)]
|
|
74
|
+
review_task = plan.get("review_task") if isinstance(plan.get("review_task"), dict) else {}
|
|
75
|
+
model_plan = plan.get("model_plan") if isinstance(plan.get("model_plan"), dict) else {}
|
|
76
|
+
routing_decision = plan.get("routing_decision") if isinstance(plan.get("routing_decision"), dict) else {}
|
|
77
|
+
autonomy = plan.get("autonomy_contract") if isinstance(plan.get("autonomy_contract"), dict) else {}
|
|
78
|
+
needs_input = (
|
|
79
|
+
plan.get("status") == "needs-input"
|
|
80
|
+
or bool(configuration_tasks)
|
|
81
|
+
or model_plan.get("strategy") == "human"
|
|
82
|
+
or autonomy.get("requires_human") is True
|
|
83
|
+
or autonomy.get("status") == "needs-input"
|
|
84
|
+
)
|
|
85
|
+
return {
|
|
86
|
+
"routing_status": routing_decision.get("status"),
|
|
87
|
+
"selected_agent_id": routing_decision.get("selected_agent_id"),
|
|
88
|
+
"selected_capability_id": routing_decision.get("selected_capability_id"),
|
|
89
|
+
"model_strategy": model_plan.get("strategy"),
|
|
90
|
+
"local_llm_selected": model_plan.get("local_llm_selected"),
|
|
91
|
+
"specialist_tasks": len(specialist_tasks),
|
|
92
|
+
"configuration_tasks": len(configuration_tasks),
|
|
93
|
+
"review_required": bool(review_task.get("required") or review_task.get("status") in {"pending", "required"}),
|
|
94
|
+
"collaboration_enabled": bool(plan.get("collaboration_enabled")),
|
|
95
|
+
"controller_enabled": bool(plan.get("controller_enabled")),
|
|
96
|
+
"needs_input": needs_input,
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def attach_agentic_metadata(result: dict[str, Any], *, prompt: str, mode: str) -> dict[str, Any]:
|
|
101
|
+
plan = result.get("execution_plan") if isinstance(result.get("execution_plan"), dict) else None
|
|
102
|
+
if plan is None:
|
|
103
|
+
plan = local_shortcut_execution_plan(prompt=prompt, result=result, mode=mode)
|
|
104
|
+
result["execution_plan"] = plan
|
|
105
|
+
result.setdefault("orchestration_trace", plan.get("trace", []))
|
|
106
|
+
result["agentic_summary"] = plan_summary(plan)
|
|
107
|
+
result["command_mode"] = mode
|
|
108
|
+
result["agentic_command"] = mode
|
|
109
|
+
return result
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def local_shortcut_execution_plan(*, prompt: str, result: dict[str, Any], mode: str) -> dict[str, Any]:
|
|
113
|
+
status = str(result.get("status") or "ok")
|
|
114
|
+
local_mode = str(result.get("mode") or result.get("action") or "local-shortcut")
|
|
115
|
+
ok = result.get("ok") is not False and status not in {"blocked", "failed", "needs-input", "needs-review"}
|
|
116
|
+
return {
|
|
117
|
+
"schema_version": "ai-devkit.agentic-plan/v1",
|
|
118
|
+
"status": "completed" if ok else status,
|
|
119
|
+
"prompt": prompt,
|
|
120
|
+
"dry_run": False,
|
|
121
|
+
"command_mode": mode,
|
|
122
|
+
"routing_decision": {
|
|
123
|
+
"status": "selected",
|
|
124
|
+
"selected_agent_id": "agent-devkit",
|
|
125
|
+
"selected_capability_id": local_mode,
|
|
126
|
+
"method": "local-shortcut",
|
|
127
|
+
"confidence": 1.0,
|
|
128
|
+
},
|
|
129
|
+
"model_plan": {
|
|
130
|
+
"strategy": "deterministic-local",
|
|
131
|
+
"local_llm_selected": False,
|
|
132
|
+
"local_llm_recommended": False,
|
|
133
|
+
"fallback": None,
|
|
134
|
+
},
|
|
135
|
+
"specialist_tasks": [],
|
|
136
|
+
"configuration_tasks": [],
|
|
137
|
+
"review_task": {
|
|
138
|
+
"agent_id": "execution-reviewer",
|
|
139
|
+
"capability_id": "review-final-output",
|
|
140
|
+
"status": "not-required",
|
|
141
|
+
"required": False,
|
|
142
|
+
},
|
|
143
|
+
"review_gate": {
|
|
144
|
+
"required": False,
|
|
145
|
+
"status": "not-required",
|
|
146
|
+
"reason": "local deterministic shortcut",
|
|
147
|
+
},
|
|
148
|
+
"collaboration_enabled": False,
|
|
149
|
+
"controller_enabled": False,
|
|
150
|
+
"trace": [
|
|
151
|
+
{
|
|
152
|
+
"agent_id": "task-orchestrator",
|
|
153
|
+
"action": "local-shortcut",
|
|
154
|
+
"mode": local_mode,
|
|
155
|
+
"status": status,
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""Public architecture contract for Agent DevKit."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
from cli.aikit.acceptance import acceptance_model
|
|
9
|
+
from cli.aikit.agent_registry import load_agent_registry
|
|
10
|
+
from cli.aikit.impact_map import ownership_model
|
|
11
|
+
from cli.aikit.roadmap import implementation_phases, problem_phase_map, recommended_initial_order
|
|
12
|
+
from cli.aikit.runtime_paths import ROOT
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def architecture_contract(root: Path = ROOT) -> dict[str, Any]:
|
|
16
|
+
registry = load_agent_registry(root)
|
|
17
|
+
agents = registry.get("agents") or {}
|
|
18
|
+
capabilities = registry.get("capabilities") or {}
|
|
19
|
+
runtime_agents = sorted(
|
|
20
|
+
agent_id
|
|
21
|
+
for agent_id, agent in agents.items()
|
|
22
|
+
if isinstance(agent, dict) and str(agent.get("kind") or "") == "runtime-agent"
|
|
23
|
+
)
|
|
24
|
+
specialist_agents = sorted(agent_id for agent_id in agents if agent_id not in set(runtime_agents))
|
|
25
|
+
executable_capabilities = sum(
|
|
26
|
+
1
|
|
27
|
+
for capability in capabilities.values()
|
|
28
|
+
if isinstance(capability, dict) and capability.get("has_runner")
|
|
29
|
+
)
|
|
30
|
+
return {
|
|
31
|
+
"kind": "architecture",
|
|
32
|
+
"schema_version": "ai-devkit.architecture/v1",
|
|
33
|
+
"principal_agent": {
|
|
34
|
+
"id": "agent-devkit",
|
|
35
|
+
"name": "Agent DevKit",
|
|
36
|
+
"role": "runtime-agent",
|
|
37
|
+
"description": "Agente principal que coordena modulos especialistas, capabilities, automacoes, providers, memoria, guardrails e backends LLM.",
|
|
38
|
+
},
|
|
39
|
+
"model": {
|
|
40
|
+
"agent_devkit": "agente principal",
|
|
41
|
+
"agents": "modulos especialistas internos versionados em agents/*",
|
|
42
|
+
"capabilities": "unidades executaveis do sistema",
|
|
43
|
+
"runners": "automacoes deterministicas para tarefas conhecidas",
|
|
44
|
+
"providers": "integracoes externas acessadas por contratos controlados",
|
|
45
|
+
"llms": "cerebros plugaveis para conversa, decisao e revisao quando necessario",
|
|
46
|
+
"hosts": "interfaces ou consumidores externos, como CLI, MCP, Codex, Claude, OpenClaw e OpenCode",
|
|
47
|
+
},
|
|
48
|
+
"core_responsibilities": [
|
|
49
|
+
"planner_router",
|
|
50
|
+
"memory_sessions",
|
|
51
|
+
"permissions_guardrails",
|
|
52
|
+
"audit",
|
|
53
|
+
"provider_registry",
|
|
54
|
+
"llm_backend_selection",
|
|
55
|
+
"capability_execution",
|
|
56
|
+
"review_gate",
|
|
57
|
+
],
|
|
58
|
+
"decision_targets": [
|
|
59
|
+
"deterministic_capability",
|
|
60
|
+
"local_mini_brain",
|
|
61
|
+
"external_professional_llm",
|
|
62
|
+
"human_input",
|
|
63
|
+
"external_provider",
|
|
64
|
+
"external_host_via_mcp",
|
|
65
|
+
],
|
|
66
|
+
"interfaces": [
|
|
67
|
+
"cli",
|
|
68
|
+
"mcp",
|
|
69
|
+
"host_adapter",
|
|
70
|
+
],
|
|
71
|
+
"implementation_phases": implementation_phases(),
|
|
72
|
+
"recommended_initial_order": recommended_initial_order(),
|
|
73
|
+
"problem_phase_map": problem_phase_map(),
|
|
74
|
+
"acceptance_model": acceptance_model(),
|
|
75
|
+
"impact_model": ownership_model(),
|
|
76
|
+
"counts": {
|
|
77
|
+
"runtime_agents": len(runtime_agents),
|
|
78
|
+
"specialist_agents": len(specialist_agents),
|
|
79
|
+
"capabilities": len(capabilities),
|
|
80
|
+
"executable_capabilities": executable_capabilities,
|
|
81
|
+
},
|
|
82
|
+
"runtime_agents": runtime_agents,
|
|
83
|
+
"status": "partially-implemented",
|
|
84
|
+
}
|