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,359 @@
|
|
|
1
|
+
"""Structured multi-agent collaboration helpers."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from cli.aikit.memory import redact_secrets
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
COLLABORATION_SCHEMA_VERSION = "ai-devkit.collaboration/v1"
|
|
11
|
+
TASK_ROLES = {"collector", "analyzer", "reviewer", "coordinator"}
|
|
12
|
+
TEXT_PREVIEW_LIMIT = 600
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def normalize_collaborative_task(
|
|
16
|
+
task: dict[str, Any],
|
|
17
|
+
*,
|
|
18
|
+
role: str | None = None,
|
|
19
|
+
depends_on: list[str] | None = None,
|
|
20
|
+
sequence: int | None = None,
|
|
21
|
+
) -> dict[str, Any]:
|
|
22
|
+
item = dict(task)
|
|
23
|
+
task_id = str(item.get("task_id") or item.get("id") or "").strip()
|
|
24
|
+
item["task_id"] = task_id
|
|
25
|
+
item["role"] = normalize_role(role or item.get("role"))
|
|
26
|
+
item["depends_on"] = normalize_depends_on(depends_on if depends_on is not None else item.get("depends_on"))
|
|
27
|
+
item["handoff"] = normalize_handoff(item.get("handoff"))
|
|
28
|
+
item["critical"] = item.get("primary") is True or item.get("critical") is True
|
|
29
|
+
item["parallel_safe"] = item.get("parallel_safe") is True
|
|
30
|
+
if sequence is not None:
|
|
31
|
+
item["sequence"] = sequence
|
|
32
|
+
return item
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def normalize_role(value: Any) -> str:
|
|
36
|
+
role = str(value or "").strip()
|
|
37
|
+
return role if role in TASK_ROLES else "analyzer"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def normalize_depends_on(value: Any) -> list[str]:
|
|
41
|
+
if not isinstance(value, list):
|
|
42
|
+
return []
|
|
43
|
+
return [str(item).strip() for item in value if str(item).strip()]
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def normalize_handoff(value: Any) -> dict[str, Any]:
|
|
47
|
+
if isinstance(value, dict):
|
|
48
|
+
return {
|
|
49
|
+
"produces": normalize_string_list(value.get("produces")),
|
|
50
|
+
"consumes": normalize_string_list(value.get("consumes")),
|
|
51
|
+
"summary": str(value.get("summary") or "").strip(),
|
|
52
|
+
}
|
|
53
|
+
return {"produces": [], "consumes": [], "summary": ""}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def normalize_string_list(value: Any) -> list[str]:
|
|
57
|
+
if not isinstance(value, list):
|
|
58
|
+
return []
|
|
59
|
+
return [str(item).strip() for item in value if str(item).strip()]
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def initial_shared_context(prompt: str, routing_decision: dict[str, Any] | None) -> dict[str, Any]:
|
|
63
|
+
routing = routing_decision if isinstance(routing_decision, dict) else {}
|
|
64
|
+
confidence_label = str(routing.get("confidence_label") or "").strip()
|
|
65
|
+
human_escalations = []
|
|
66
|
+
if routing.get("requires_confirmation"):
|
|
67
|
+
human_escalations.append(
|
|
68
|
+
human_escalation(
|
|
69
|
+
reason=str(routing.get("reason") or "Routing requires confirmation."),
|
|
70
|
+
source="task-orchestrator",
|
|
71
|
+
kind="routing-confirmation",
|
|
72
|
+
confidence=confidence_label or "low",
|
|
73
|
+
)
|
|
74
|
+
)
|
|
75
|
+
return {
|
|
76
|
+
"schema_version": COLLABORATION_SCHEMA_VERSION,
|
|
77
|
+
"facts": [
|
|
78
|
+
{
|
|
79
|
+
"source": "task-orchestrator",
|
|
80
|
+
"kind": "prompt",
|
|
81
|
+
"summary": preview_text(prompt),
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"inferences": [
|
|
85
|
+
{
|
|
86
|
+
"source": "task-orchestrator",
|
|
87
|
+
"kind": "routing",
|
|
88
|
+
"status": routing.get("status"),
|
|
89
|
+
"selected_agent_id": routing.get("selected_agent_id"),
|
|
90
|
+
"selected_capability_id": routing.get("selected_capability_id"),
|
|
91
|
+
"confidence": routing.get("confidence"),
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
if routing
|
|
95
|
+
else [],
|
|
96
|
+
"artifacts": [],
|
|
97
|
+
"blockers": [],
|
|
98
|
+
"decisions": [],
|
|
99
|
+
"risks": [],
|
|
100
|
+
"questions": [],
|
|
101
|
+
"handoffs": [],
|
|
102
|
+
"conflicts": [],
|
|
103
|
+
"human_escalations": human_escalations,
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def build_collaboration_graph(
|
|
108
|
+
specialist_tasks: list[dict[str, Any]],
|
|
109
|
+
configuration_tasks: list[dict[str, Any]],
|
|
110
|
+
review_task: dict[str, Any] | None,
|
|
111
|
+
) -> dict[str, Any]:
|
|
112
|
+
nodes = []
|
|
113
|
+
edges = []
|
|
114
|
+
all_tasks = [*specialist_tasks, *configuration_tasks]
|
|
115
|
+
if review_task:
|
|
116
|
+
all_tasks.append(review_task)
|
|
117
|
+
for task in all_tasks:
|
|
118
|
+
if not isinstance(task, dict):
|
|
119
|
+
continue
|
|
120
|
+
task_id = str(task.get("task_id") or task.get("id") or "")
|
|
121
|
+
if not task_id:
|
|
122
|
+
continue
|
|
123
|
+
nodes.append(
|
|
124
|
+
{
|
|
125
|
+
"task_id": task_id,
|
|
126
|
+
"agent_id": task.get("agent_id"),
|
|
127
|
+
"capability_id": task.get("capability_id"),
|
|
128
|
+
"role": normalize_role(task.get("role")),
|
|
129
|
+
"status": task.get("status"),
|
|
130
|
+
"parallel_safe": task.get("parallel_safe") is True,
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
for dependency in normalize_depends_on(task.get("depends_on")):
|
|
134
|
+
edges.append({"from": dependency, "to": task_id, "type": "depends_on"})
|
|
135
|
+
return {
|
|
136
|
+
"schema_version": COLLABORATION_SCHEMA_VERSION,
|
|
137
|
+
"nodes": nodes,
|
|
138
|
+
"edges": edges,
|
|
139
|
+
"parallel_groups": parallel_groups(nodes, edges),
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def parallel_groups(nodes: list[dict[str, Any]], edges: list[dict[str, Any]]) -> list[list[str]]:
|
|
144
|
+
blocked = {str(edge.get("to")) for edge in edges if edge.get("to")}
|
|
145
|
+
group = [
|
|
146
|
+
str(node["task_id"])
|
|
147
|
+
for node in nodes
|
|
148
|
+
if node.get("parallel_safe") is True and str(node.get("task_id") or "") not in blocked
|
|
149
|
+
]
|
|
150
|
+
return [group] if len(group) > 1 else []
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def collaborative_task_sequence(plan: dict[str, Any]) -> list[dict[str, Any]]:
|
|
154
|
+
tasks = [task for task in plan.get("specialist_tasks") or [] if isinstance(task, dict)]
|
|
155
|
+
if not plan.get("collaboration_enabled"):
|
|
156
|
+
return [task for task in tasks if task.get("primary")]
|
|
157
|
+
return dependency_order(tasks)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def dependency_order(tasks: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
161
|
+
by_id = {str(task.get("task_id") or task.get("id")): task for task in tasks if task.get("task_id") or task.get("id")}
|
|
162
|
+
ordered: list[dict[str, Any]] = []
|
|
163
|
+
remaining = dict(by_id)
|
|
164
|
+
while remaining:
|
|
165
|
+
progressed = False
|
|
166
|
+
for task_id, task in list(remaining.items()):
|
|
167
|
+
dependencies = normalize_depends_on(task.get("depends_on"))
|
|
168
|
+
if all(dependency not in remaining for dependency in dependencies):
|
|
169
|
+
ordered.append(task)
|
|
170
|
+
remaining.pop(task_id)
|
|
171
|
+
progressed = True
|
|
172
|
+
if not progressed:
|
|
173
|
+
ordered.extend(remaining.values())
|
|
174
|
+
break
|
|
175
|
+
return sorted(ordered, key=lambda task: int(task.get("sequence") or 0))
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def blocked_dependency(task: dict[str, Any], completed: set[str], failed: set[str]) -> str | None:
|
|
179
|
+
dependencies = normalize_depends_on(task.get("depends_on"))
|
|
180
|
+
failed_dependencies = [dependency for dependency in dependencies if dependency in failed]
|
|
181
|
+
if failed_dependencies:
|
|
182
|
+
return f"Task dependency failed: {', '.join(failed_dependencies)}."
|
|
183
|
+
missing = [dependency for dependency in dependencies if dependency not in completed]
|
|
184
|
+
if missing:
|
|
185
|
+
return f"Task dependency not completed: {', '.join(missing)}."
|
|
186
|
+
return None
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def merge_task_handoff(shared_context: dict[str, Any], task: dict[str, Any], result: dict[str, Any]) -> dict[str, Any]:
|
|
190
|
+
context = normalize_shared_context(shared_context)
|
|
191
|
+
handoff = summarize_handoff(task, result)
|
|
192
|
+
if handoff.get("fact"):
|
|
193
|
+
context["facts"].append(handoff["fact"])
|
|
194
|
+
if handoff.get("artifact"):
|
|
195
|
+
context["artifacts"].append(handoff["artifact"])
|
|
196
|
+
if handoff.get("blocker"):
|
|
197
|
+
context["blockers"].append(handoff["blocker"])
|
|
198
|
+
for risk in handoff.get("risks") or []:
|
|
199
|
+
context["risks"].append(risk)
|
|
200
|
+
for question in handoff.get("questions") or []:
|
|
201
|
+
context["questions"].append(question)
|
|
202
|
+
context["handoffs"].append(build_handoff(task, None, result, handoff=handoff))
|
|
203
|
+
if handoff.get("blocker"):
|
|
204
|
+
context["conflicts"].append(
|
|
205
|
+
conflict(
|
|
206
|
+
source=task.get("task_id") or task.get("id"),
|
|
207
|
+
kind="blocked-task",
|
|
208
|
+
summary=str(handoff["blocker"].get("reason") or "Task blocked."),
|
|
209
|
+
evidence=[task.get("agent_id"), task.get("capability_id")],
|
|
210
|
+
severity="high" if result.get("status") == "blocked" else "medium",
|
|
211
|
+
)
|
|
212
|
+
)
|
|
213
|
+
context["human_escalations"].append(
|
|
214
|
+
human_escalation(
|
|
215
|
+
reason=str(handoff["blocker"].get("reason") or "Task requires human decision."),
|
|
216
|
+
source=task.get("task_id") or task.get("id"),
|
|
217
|
+
kind="blocked-task",
|
|
218
|
+
confidence="low",
|
|
219
|
+
)
|
|
220
|
+
)
|
|
221
|
+
context["decisions"].append(
|
|
222
|
+
{
|
|
223
|
+
"source": task.get("task_id") or task.get("id"),
|
|
224
|
+
"agent_id": task.get("agent_id"),
|
|
225
|
+
"status": result.get("status"),
|
|
226
|
+
"ok": bool(result.get("ok")),
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
return context
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def normalize_shared_context(value: Any) -> dict[str, Any]:
|
|
233
|
+
if isinstance(value, dict):
|
|
234
|
+
context = dict(value)
|
|
235
|
+
else:
|
|
236
|
+
context = {}
|
|
237
|
+
context.setdefault("schema_version", COLLABORATION_SCHEMA_VERSION)
|
|
238
|
+
for key in (
|
|
239
|
+
"facts",
|
|
240
|
+
"inferences",
|
|
241
|
+
"artifacts",
|
|
242
|
+
"blockers",
|
|
243
|
+
"decisions",
|
|
244
|
+
"risks",
|
|
245
|
+
"questions",
|
|
246
|
+
"handoffs",
|
|
247
|
+
"conflicts",
|
|
248
|
+
"human_escalations",
|
|
249
|
+
):
|
|
250
|
+
if not isinstance(context.get(key), list):
|
|
251
|
+
context[key] = []
|
|
252
|
+
return context
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
def summarize_handoff(task: dict[str, Any], result: dict[str, Any]) -> dict[str, Any]:
|
|
256
|
+
source = task.get("task_id") or task.get("id")
|
|
257
|
+
summary = preview_text(result.get("message") or result.get("response") or result.get("stdout") or result.get("error") or result.get("reason") or "")
|
|
258
|
+
handoff: dict[str, Any] = {
|
|
259
|
+
"fact": {
|
|
260
|
+
"source": source,
|
|
261
|
+
"agent_id": task.get("agent_id"),
|
|
262
|
+
"capability_id": task.get("capability_id"),
|
|
263
|
+
"status": result.get("status"),
|
|
264
|
+
"summary": summary,
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
artifacts = result.get("artifacts")
|
|
268
|
+
if isinstance(artifacts, list) and artifacts:
|
|
269
|
+
handoff["artifact"] = {
|
|
270
|
+
"source": source,
|
|
271
|
+
"items": [safe_artifact(item) for item in artifacts[:10]],
|
|
272
|
+
}
|
|
273
|
+
if not result.get("ok"):
|
|
274
|
+
handoff["blocker"] = {
|
|
275
|
+
"source": source,
|
|
276
|
+
"reason": preview_text(result.get("reason") or result.get("error") or "Task did not complete successfully."),
|
|
277
|
+
}
|
|
278
|
+
risks = result.get("risks") if isinstance(result.get("risks"), list) else []
|
|
279
|
+
if risks:
|
|
280
|
+
handoff["risks"] = [{"source": source, "summary": preview_text(risk)} for risk in risks[:10]]
|
|
281
|
+
questions = result.get("questions") or result.get("next_questions")
|
|
282
|
+
if isinstance(questions, list) and questions:
|
|
283
|
+
handoff["questions"] = [{"source": source, "summary": preview_text(question)} for question in questions[:10]]
|
|
284
|
+
return handoff
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def build_handoff(
|
|
288
|
+
from_task: dict[str, Any],
|
|
289
|
+
to_task: dict[str, Any] | None,
|
|
290
|
+
result: dict[str, Any],
|
|
291
|
+
*,
|
|
292
|
+
handoff: dict[str, Any] | None = None,
|
|
293
|
+
) -> dict[str, Any]:
|
|
294
|
+
summary = handoff or summarize_handoff(from_task, result)
|
|
295
|
+
return {
|
|
296
|
+
"from": str(from_task.get("agent_id") or ""),
|
|
297
|
+
"from_task_id": from_task.get("task_id") or from_task.get("id"),
|
|
298
|
+
"to": str((to_task or {}).get("agent_id") or "agent-devkit-core"),
|
|
299
|
+
"to_task_id": (to_task or {}).get("task_id") or (to_task or {}).get("id"),
|
|
300
|
+
"summary": ((summary.get("fact") or {}).get("summary") or ""),
|
|
301
|
+
"facts": [summary["fact"]] if summary.get("fact") else [],
|
|
302
|
+
"artifacts": [summary["artifact"]] if summary.get("artifact") else [],
|
|
303
|
+
"risks": list(summary.get("risks") or []),
|
|
304
|
+
"open_questions": list(summary.get("questions") or []),
|
|
305
|
+
"confidence": handoff_confidence(result),
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
def conflict(
|
|
310
|
+
*,
|
|
311
|
+
source: Any,
|
|
312
|
+
kind: str,
|
|
313
|
+
summary: str,
|
|
314
|
+
evidence: list[Any] | None = None,
|
|
315
|
+
severity: str = "medium",
|
|
316
|
+
) -> dict[str, Any]:
|
|
317
|
+
return {
|
|
318
|
+
"source": str(source or "unknown"),
|
|
319
|
+
"kind": kind,
|
|
320
|
+
"summary": preview_text(summary),
|
|
321
|
+
"evidence": [str(item) for item in evidence or [] if item],
|
|
322
|
+
"severity": severity if severity in {"low", "medium", "high"} else "medium",
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
def human_escalation(*, reason: str, source: Any, kind: str, confidence: str = "low") -> dict[str, Any]:
|
|
327
|
+
return {
|
|
328
|
+
"source": str(source or "unknown"),
|
|
329
|
+
"kind": kind,
|
|
330
|
+
"reason": preview_text(reason),
|
|
331
|
+
"confidence": confidence if confidence in {"high", "medium", "low"} else "low",
|
|
332
|
+
"status": "waiting-for-user",
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
def handoff_confidence(result: dict[str, Any]) -> str:
|
|
337
|
+
explicit = str(result.get("confidence") or "").strip().lower()
|
|
338
|
+
if explicit in {"high", "medium", "low"}:
|
|
339
|
+
return explicit
|
|
340
|
+
if result.get("ok"):
|
|
341
|
+
return "high"
|
|
342
|
+
if result.get("status") == "needs-input":
|
|
343
|
+
return "medium"
|
|
344
|
+
return "low"
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
def safe_artifact(value: Any) -> Any:
|
|
348
|
+
if isinstance(value, dict):
|
|
349
|
+
return {str(key): preview_text(item) if isinstance(item, str) else item for key, item in value.items()}
|
|
350
|
+
if isinstance(value, str):
|
|
351
|
+
return preview_text(value)
|
|
352
|
+
return value
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
def preview_text(value: Any, *, limit: int = TEXT_PREVIEW_LIMIT) -> str:
|
|
356
|
+
text = redact_secrets(str(value or "")).strip()
|
|
357
|
+
if len(text) <= limit:
|
|
358
|
+
return text
|
|
359
|
+
return text[: limit - 3].rstrip() + "..."
|
|
@@ -44,7 +44,7 @@ def provider_setup_wizard(
|
|
|
44
44
|
"reason": reason,
|
|
45
45
|
"resume_prompt": prompt,
|
|
46
46
|
"suggested_source_id": suggested_source_id if source_context else None,
|
|
47
|
-
"suggested_config": suggested_config(
|
|
47
|
+
"suggested_config": suggested_config(provider, suggested_project),
|
|
48
48
|
"next_question": next_question,
|
|
49
49
|
"questions": questions,
|
|
50
50
|
"credential_options": credential_options(provider),
|
|
@@ -107,19 +107,33 @@ def build_questions(
|
|
|
107
107
|
if not name:
|
|
108
108
|
continue
|
|
109
109
|
suggested_value = suggested_value_for_field(provider, name, suggested_project)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
110
|
+
if field.get("secret") is True:
|
|
111
|
+
questions.append(
|
|
112
|
+
{
|
|
113
|
+
"id": f"{field_question_id(provider['id'], name)}_env_ref",
|
|
114
|
+
"type": "text",
|
|
115
|
+
"text": f"Qual variavel de ambiente contem {name}?",
|
|
116
|
+
"env_ref_key": name,
|
|
117
|
+
"required": bool(field.get("required")),
|
|
118
|
+
"secret": True,
|
|
119
|
+
"stores_secret": False,
|
|
120
|
+
"suggested_value": name,
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
else:
|
|
124
|
+
questions.append(
|
|
125
|
+
{
|
|
126
|
+
"id": field_question_id(provider["id"], name),
|
|
127
|
+
"type": "text",
|
|
128
|
+
"text": question_text(provider, name, suggested_value=suggested_value),
|
|
129
|
+
"config_key": name,
|
|
130
|
+
"env": name,
|
|
131
|
+
"required": bool(field.get("required")),
|
|
132
|
+
"secret": False,
|
|
133
|
+
"default": field.get("default"),
|
|
134
|
+
"suggested_value": suggested_value,
|
|
135
|
+
}
|
|
136
|
+
)
|
|
123
137
|
auth_methods = public_auth_methods(provider)
|
|
124
138
|
if auth_methods:
|
|
125
139
|
questions.append(
|
|
@@ -241,31 +255,43 @@ def credential_options(provider: dict[str, Any]) -> list[dict[str, Any]]:
|
|
|
241
255
|
return unique
|
|
242
256
|
|
|
243
257
|
|
|
244
|
-
def suggested_config(
|
|
258
|
+
def suggested_config(provider: dict[str, Any], suggested_project: str | None) -> dict[str, Any]:
|
|
245
259
|
config: dict[str, Any] = {}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
260
|
+
wizard = provider.get("wizard") if isinstance(provider.get("wizard"), dict) else {}
|
|
261
|
+
declared = wizard.get("suggested_config") if isinstance(wizard.get("suggested_config"), dict) else {}
|
|
262
|
+
for key, value in declared.items():
|
|
263
|
+
resolved = resolve_wizard_template(value, suggested_project=suggested_project)
|
|
264
|
+
if resolved is not None:
|
|
265
|
+
config[str(key)] = resolved
|
|
249
266
|
return config
|
|
250
267
|
|
|
251
268
|
|
|
252
269
|
def suggested_value_for_field(provider: dict[str, Any], name: str, suggested_project: str | None) -> str | None:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
return
|
|
270
|
+
wizard = provider.get("wizard") if isinstance(provider.get("wizard"), dict) else {}
|
|
271
|
+
suggestions = wizard.get("field_suggestions") if isinstance(wizard.get("field_suggestions"), dict) else {}
|
|
272
|
+
return resolve_wizard_template(suggestions.get(name), suggested_project=suggested_project)
|
|
256
273
|
|
|
257
274
|
|
|
258
275
|
def question_text(provider: dict[str, Any], name: str, *, suggested_value: str | None) -> str:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
if
|
|
276
|
+
wizard = provider.get("wizard") if isinstance(provider.get("wizard"), dict) else {}
|
|
277
|
+
questions = wizard.get("questions") if isinstance(wizard.get("questions"), dict) else {}
|
|
278
|
+
if name in questions:
|
|
279
|
+
text = str(questions[name])
|
|
262
280
|
if suggested_value:
|
|
263
|
-
return f'
|
|
264
|
-
return
|
|
281
|
+
return f'{text} Valor sugerido: "{suggested_value}".'
|
|
282
|
+
return text
|
|
265
283
|
label = name.replace("_", " ").lower()
|
|
266
284
|
return f"Informe {label} para {provider.get('name') or provider.get('id')}."
|
|
267
285
|
|
|
268
286
|
|
|
287
|
+
def resolve_wizard_template(value: Any, *, suggested_project: str | None) -> str | None:
|
|
288
|
+
if value == "prompt.project":
|
|
289
|
+
return suggested_project
|
|
290
|
+
if isinstance(value, str) and value:
|
|
291
|
+
return value
|
|
292
|
+
return None
|
|
293
|
+
|
|
294
|
+
|
|
269
295
|
def field_question_id(provider_id: str, name: str) -> str:
|
|
270
296
|
return f"{provider_slug(provider_id)}_{provider_slug(name)}"
|
|
271
297
|
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"""Contribution preparation MVP for local Agent DevKit extensions."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
from cli.aikit.extensions import load_extensions
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
CONTRIBUTION_SCHEMA_VERSION = "agent-devkit.contribution/v1"
|
|
13
|
+
SECRET_PATTERN = re.compile(r"(token|secret|password|api[_-]?key|pat)\s*[:=]", re.IGNORECASE)
|
|
14
|
+
PRIVATE_URL_PATTERN = re.compile(r"https?://(?:localhost|127\.0\.0\.1|10\.|192\.168\.|172\.(?:1[6-9]|2\d|3[0-1])\.)", re.IGNORECASE)
|
|
15
|
+
LOCAL_PATH_PATTERN = re.compile(r"(/Users/|/home/|C:\\\\Users\\\\)")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def contribution_list() -> dict[str, Any]:
|
|
19
|
+
extensions = load_extensions()["extensions"]
|
|
20
|
+
return {
|
|
21
|
+
"kind": "contributions",
|
|
22
|
+
"schema_version": CONTRIBUTION_SCHEMA_VERSION,
|
|
23
|
+
"status": "ok",
|
|
24
|
+
"items": [{"id": item.get("id"), "path": item.get("path"), "enabled": item.get("enabled") is True} for item in extensions],
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def contribution_checklist(extension_id: str) -> dict[str, Any]:
|
|
29
|
+
extension = find_extension(extension_id)
|
|
30
|
+
if not extension:
|
|
31
|
+
return {
|
|
32
|
+
"kind": "contribution-checklist",
|
|
33
|
+
"schema_version": CONTRIBUTION_SCHEMA_VERSION,
|
|
34
|
+
"status": "blocked",
|
|
35
|
+
"extension_id": extension_id,
|
|
36
|
+
"checks": [{"id": "extension-exists", "status": "failed"}],
|
|
37
|
+
}
|
|
38
|
+
checks = contribution_checks(Path(str(extension.get("path") or "")))
|
|
39
|
+
return {
|
|
40
|
+
"kind": "contribution-checklist",
|
|
41
|
+
"schema_version": CONTRIBUTION_SCHEMA_VERSION,
|
|
42
|
+
"status": "passed" if all(check["status"] == "passed" for check in checks) else "blocked",
|
|
43
|
+
"extension_id": extension_id,
|
|
44
|
+
"checks": checks,
|
|
45
|
+
"requires_human_confirmation_for_pr": True,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def contribution_validate(extension_id: str) -> dict[str, Any]:
|
|
50
|
+
payload = contribution_checklist(extension_id)
|
|
51
|
+
payload["kind"] = "contribution-validation"
|
|
52
|
+
return payload
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def contribution_prepare(extension_id: str) -> dict[str, Any]:
|
|
56
|
+
checklist = contribution_checklist(extension_id)
|
|
57
|
+
return {
|
|
58
|
+
"kind": "contribution-prepare",
|
|
59
|
+
"schema_version": CONTRIBUTION_SCHEMA_VERSION,
|
|
60
|
+
"status": "planned" if checklist["status"] == "passed" else "blocked",
|
|
61
|
+
"extension_id": extension_id,
|
|
62
|
+
"checklist": checklist,
|
|
63
|
+
"creates_pr": False,
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def contribution_review(extension_id: str) -> dict[str, Any]:
|
|
68
|
+
checklist = contribution_checklist(extension_id)
|
|
69
|
+
return {
|
|
70
|
+
"kind": "contribution-review",
|
|
71
|
+
"schema_version": CONTRIBUTION_SCHEMA_VERSION,
|
|
72
|
+
"status": checklist["status"],
|
|
73
|
+
"extension_id": extension_id,
|
|
74
|
+
"findings": [check for check in checklist["checks"] if check["status"] != "passed"],
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def find_extension(extension_id: str) -> dict[str, Any] | None:
|
|
79
|
+
for item in load_extensions()["extensions"]:
|
|
80
|
+
if item.get("id") == extension_id:
|
|
81
|
+
return item
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def contribution_checks(path: Path) -> list[dict[str, Any]]:
|
|
86
|
+
text = read_extension_text(path)
|
|
87
|
+
return [
|
|
88
|
+
{"id": "extension-exists", "status": "passed" if path.exists() else "failed"},
|
|
89
|
+
{"id": "no-secret-literals", "status": "failed" if SECRET_PATTERN.search(text) else "passed"},
|
|
90
|
+
{"id": "no-private-url", "status": "failed" if PRIVATE_URL_PATTERN.search(text) else "passed"},
|
|
91
|
+
{"id": "no-local-path", "status": "failed" if LOCAL_PATH_PATTERN.search(text) else "passed"},
|
|
92
|
+
{"id": "human-pr-confirmation", "status": "passed"},
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def read_extension_text(path: Path) -> str:
|
|
97
|
+
if not path.exists():
|
|
98
|
+
return ""
|
|
99
|
+
if path.is_file():
|
|
100
|
+
return path.read_text(encoding="utf-8", errors="ignore")[:200_000]
|
|
101
|
+
chunks = []
|
|
102
|
+
for child in sorted(path.rglob("*")):
|
|
103
|
+
if child.is_file() and child.suffix in {".md", ".yaml", ".yml", ".json", ".py", ".sh", ".txt"}:
|
|
104
|
+
chunks.append(child.read_text(encoding="utf-8", errors="ignore")[:50_000])
|
|
105
|
+
return "\n".join(chunks)[:300_000]
|