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,294 @@
|
|
|
1
|
+
"""Technical ownership and impact map for Agent DevKit changes."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from copy import deepcopy
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
OWNERSHIP_AREAS: list[dict[str, Any]] = [
|
|
10
|
+
{
|
|
11
|
+
"id": "cli",
|
|
12
|
+
"name": "CLI",
|
|
13
|
+
"paths": [
|
|
14
|
+
"cli/aikit/main.py",
|
|
15
|
+
"cli/aikit/cli_parser.py",
|
|
16
|
+
"cli/aikit/cli_dispatch.py",
|
|
17
|
+
"cli/aikit/human_output.py",
|
|
18
|
+
"agent",
|
|
19
|
+
"aikit",
|
|
20
|
+
"ai-devkit",
|
|
21
|
+
],
|
|
22
|
+
"responsibilities": [
|
|
23
|
+
"argument parsing",
|
|
24
|
+
"public commands",
|
|
25
|
+
"human and JSON output",
|
|
26
|
+
"exit codes",
|
|
27
|
+
"TTY-facing behavior",
|
|
28
|
+
],
|
|
29
|
+
"should_not_contain": [
|
|
30
|
+
"agent domain rules",
|
|
31
|
+
"provider-specific knowledge",
|
|
32
|
+
"capability-only contracts",
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "core_execution",
|
|
37
|
+
"name": "Core De Planejamento E Execucao",
|
|
38
|
+
"paths": [
|
|
39
|
+
"cli/aikit/orchestrator.py",
|
|
40
|
+
"cli/aikit/agent_executor.py",
|
|
41
|
+
"cli/aikit/capability_runtime.py",
|
|
42
|
+
"cli/aikit/core/*",
|
|
43
|
+
],
|
|
44
|
+
"responsibilities": [
|
|
45
|
+
"execution planning",
|
|
46
|
+
"task selection",
|
|
47
|
+
"capability execution",
|
|
48
|
+
"guardrail entry points",
|
|
49
|
+
"review gate integration",
|
|
50
|
+
],
|
|
51
|
+
"should_not_contain": [
|
|
52
|
+
"host-specific adapters",
|
|
53
|
+
"provider credentials",
|
|
54
|
+
"large prompt knowledge",
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "registry",
|
|
59
|
+
"name": "Registry",
|
|
60
|
+
"paths": [
|
|
61
|
+
"cli/aikit/agent_registry.py",
|
|
62
|
+
"agents/*/agent.yaml",
|
|
63
|
+
"agents/*/capabilities/*/capability.yaml",
|
|
64
|
+
],
|
|
65
|
+
"responsibilities": [
|
|
66
|
+
"agent loading",
|
|
67
|
+
"capability loading",
|
|
68
|
+
"declarative metadata normalization",
|
|
69
|
+
"manifest contract exposure",
|
|
70
|
+
],
|
|
71
|
+
"should_not_contain": [
|
|
72
|
+
"runner execution logic",
|
|
73
|
+
"duplicated YAML readers",
|
|
74
|
+
"provider transport code",
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "policies_guardrails",
|
|
79
|
+
"name": "Policies E Guardrails",
|
|
80
|
+
"paths": [
|
|
81
|
+
"cli/aikit/write_policy.py",
|
|
82
|
+
"cli/aikit/guardrails.py",
|
|
83
|
+
"cli/aikit/permissions.py",
|
|
84
|
+
"cli/aikit/review_gate.py",
|
|
85
|
+
],
|
|
86
|
+
"responsibilities": [
|
|
87
|
+
"canonical write policy",
|
|
88
|
+
"confirmation requirements",
|
|
89
|
+
"permission checks",
|
|
90
|
+
"blocked-by-default behavior",
|
|
91
|
+
],
|
|
92
|
+
"should_not_contain": [
|
|
93
|
+
"provider implementation details",
|
|
94
|
+
"capability-specific business rules",
|
|
95
|
+
"host login flow",
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "providers_sources",
|
|
100
|
+
"name": "Providers, Credentials E Sources",
|
|
101
|
+
"paths": [
|
|
102
|
+
"cli/aikit/providers.py",
|
|
103
|
+
"cli/aikit/credentials.py",
|
|
104
|
+
"cli/aikit/sources.py",
|
|
105
|
+
"cli/aikit/fallback.py",
|
|
106
|
+
"providers/*.yaml",
|
|
107
|
+
"agents/*/infra/integrations/*",
|
|
108
|
+
],
|
|
109
|
+
"responsibilities": [
|
|
110
|
+
"provider registry",
|
|
111
|
+
"credential references",
|
|
112
|
+
"provider readiness",
|
|
113
|
+
"fallback behavior",
|
|
114
|
+
"source configuration",
|
|
115
|
+
],
|
|
116
|
+
"should_not_contain": [
|
|
117
|
+
"hardcoded secrets",
|
|
118
|
+
"mandatory host coupling",
|
|
119
|
+
"agent prompt policy",
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "llm_mini_brain",
|
|
124
|
+
"name": "LLMs E Mini Cerebro",
|
|
125
|
+
"paths": [
|
|
126
|
+
"cli/aikit/llm.py",
|
|
127
|
+
"cli/aikit/model_router.py",
|
|
128
|
+
"cli/aikit/local_llm_operator.py",
|
|
129
|
+
"cli/aikit/ollama.py",
|
|
130
|
+
],
|
|
131
|
+
"responsibilities": [
|
|
132
|
+
"LLM backend registry",
|
|
133
|
+
"backend preference and fallback",
|
|
134
|
+
"local model operation",
|
|
135
|
+
"decision limits for simple conversation",
|
|
136
|
+
],
|
|
137
|
+
"should_not_contain": [
|
|
138
|
+
"provider-specific domain repositories",
|
|
139
|
+
"scheduler persistence",
|
|
140
|
+
"host-specific tool schemas",
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"id": "sessions_memory_tasks_scheduler",
|
|
145
|
+
"name": "Sessions, Memory, Tasks E Scheduler",
|
|
146
|
+
"paths": [
|
|
147
|
+
"cli/aikit/sessions.py",
|
|
148
|
+
"cli/aikit/memory.py",
|
|
149
|
+
"cli/aikit/tasks.py",
|
|
150
|
+
"cli/aikit/scheduler.py",
|
|
151
|
+
"cli/aikit/calendar.py",
|
|
152
|
+
"cli/aikit/notifications.py",
|
|
153
|
+
],
|
|
154
|
+
"responsibilities": [
|
|
155
|
+
"conversation continuity",
|
|
156
|
+
"local state",
|
|
157
|
+
"scheduled tasks",
|
|
158
|
+
"calendar integration",
|
|
159
|
+
"notifications",
|
|
160
|
+
],
|
|
161
|
+
"should_not_contain": [
|
|
162
|
+
"core routing policy",
|
|
163
|
+
"provider transport internals",
|
|
164
|
+
"manifest validation rules",
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "audit",
|
|
169
|
+
"name": "Auditoria",
|
|
170
|
+
"paths": [
|
|
171
|
+
"cli/aikit/audit.py",
|
|
172
|
+
"cli/aikit/cli_dispatch.py",
|
|
173
|
+
"cli/aikit/main.py",
|
|
174
|
+
],
|
|
175
|
+
"responsibilities": [
|
|
176
|
+
"operational trail",
|
|
177
|
+
"redaction",
|
|
178
|
+
"export",
|
|
179
|
+
"execution origin",
|
|
180
|
+
"audit warnings",
|
|
181
|
+
],
|
|
182
|
+
"should_not_contain": [
|
|
183
|
+
"business-domain analysis",
|
|
184
|
+
"provider credentials",
|
|
185
|
+
"large artifacts",
|
|
186
|
+
],
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": "mcp",
|
|
190
|
+
"name": "MCP",
|
|
191
|
+
"paths": [
|
|
192
|
+
"cli/aikit/mcp_server.py",
|
|
193
|
+
"cli/aikit/mcp_tools.py",
|
|
194
|
+
"cli/aikit/mcp_manifest.py",
|
|
195
|
+
],
|
|
196
|
+
"responsibilities": [
|
|
197
|
+
"stdio server",
|
|
198
|
+
"tool schemas",
|
|
199
|
+
"calls into Agent DevKit core",
|
|
200
|
+
"host-agnostic MCP surface",
|
|
201
|
+
],
|
|
202
|
+
"should_not_contain": [
|
|
203
|
+
"Hermes-only behavior",
|
|
204
|
+
"OpenClaw-only behavior",
|
|
205
|
+
"OpenCode-only behavior",
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"id": "validation_gates",
|
|
210
|
+
"name": "Validacao E Gates",
|
|
211
|
+
"paths": [
|
|
212
|
+
"scripts/validate-repo.py",
|
|
213
|
+
"scripts/release-gate.py",
|
|
214
|
+
"tests/*",
|
|
215
|
+
".github/workflows/*",
|
|
216
|
+
],
|
|
217
|
+
"responsibilities": [
|
|
218
|
+
"repository structure validation",
|
|
219
|
+
"manifest contracts",
|
|
220
|
+
"release gates",
|
|
221
|
+
"regression tests",
|
|
222
|
+
],
|
|
223
|
+
"should_not_contain": [
|
|
224
|
+
"runtime-only side effects",
|
|
225
|
+
"provider credentials",
|
|
226
|
+
"generated local docs",
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "agents_capabilities",
|
|
231
|
+
"name": "Agentes E Capabilities",
|
|
232
|
+
"paths": [
|
|
233
|
+
"agents/<agent-id>/agent.yaml",
|
|
234
|
+
"agents/<agent-id>/AGENTS.md",
|
|
235
|
+
"agents/<agent-id>/README.md",
|
|
236
|
+
"agents/<agent-id>/capabilities/*",
|
|
237
|
+
"agents/<agent-id>/knowledge/*",
|
|
238
|
+
"agents/<agent-id>/templates/*",
|
|
239
|
+
"agents/<agent-id>/infra/*",
|
|
240
|
+
],
|
|
241
|
+
"responsibilities": [
|
|
242
|
+
"domain ownership",
|
|
243
|
+
"capability workflows",
|
|
244
|
+
"runner behavior",
|
|
245
|
+
"repositories",
|
|
246
|
+
"templates",
|
|
247
|
+
"on-demand knowledge",
|
|
248
|
+
],
|
|
249
|
+
"should_not_contain": [
|
|
250
|
+
"global runtime policy unless delegated",
|
|
251
|
+
"unrelated agent changes",
|
|
252
|
+
"host-specific core coupling",
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
]
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
SPEC_IMPACT_TEMPLATE: dict[str, str] = {
|
|
259
|
+
"likely_files": "Arquivos, modulos, manifests ou contratos provavelmente impactados.",
|
|
260
|
+
"files_not_to_touch": "Arquivos e dominios que devem permanecer fora do patch.",
|
|
261
|
+
"affected_contracts": "Contratos publicos, manifests, schemas, comandos ou payloads afetados.",
|
|
262
|
+
"related_gates": "Testes, validators, release gates ou smoke tests relacionados.",
|
|
263
|
+
"compatibility_risks": "Riscos de compatibilidade com CLI, hosts, agentes, providers ou usuarios existentes.",
|
|
264
|
+
"boundary_crossing_justification": "Justificativa quando a mudanca cruza ownership de core, agente, provider, host ou gate.",
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
OWNERSHIP_RULES: list[str] = [
|
|
269
|
+
"Identificar se a mudanca pertence a core, agente, provider, host, docs ou gate antes de implementar.",
|
|
270
|
+
"Tocar apenas arquivos do ownership correto sempre que possivel.",
|
|
271
|
+
"Justificar qualquer cruzamento de boundary no plano, PR ou resposta de entrega.",
|
|
272
|
+
"Evitar alteracoes em massa de manifests sem spec explicita.",
|
|
273
|
+
"Evitar alterar runtime central para resolver caso especifico de um agente.",
|
|
274
|
+
]
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
def ownership_area_ids() -> list[str]:
|
|
278
|
+
"""Return canonical technical ownership area identifiers."""
|
|
279
|
+
return [area["id"] for area in OWNERSHIP_AREAS]
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def spec_impact_template() -> dict[str, str]:
|
|
283
|
+
"""Return the canonical impact template for specs and PRs."""
|
|
284
|
+
return dict(SPEC_IMPACT_TEMPLATE)
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def ownership_model() -> dict[str, Any]:
|
|
288
|
+
"""Return the canonical technical ownership and impact model."""
|
|
289
|
+
return {
|
|
290
|
+
"schema_version": "ai-devkit.impact/v1",
|
|
291
|
+
"areas": deepcopy(OWNERSHIP_AREAS),
|
|
292
|
+
"spec_template": spec_impact_template(),
|
|
293
|
+
"rules": list(OWNERSHIP_RULES),
|
|
294
|
+
}
|
|
@@ -9,7 +9,7 @@ from pathlib import Path
|
|
|
9
9
|
from typing import Any
|
|
10
10
|
|
|
11
11
|
from cli.aikit import __version__
|
|
12
|
-
from cli.aikit.lock import lock_path, write_lock
|
|
12
|
+
from cli.aikit.lock import GLOBAL_RUNTIME_DIR, PROJECT_RUNTIME_DIR, lock_path, write_lock
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
HOST_ALIASES = {
|
|
@@ -46,7 +46,7 @@ def install_runtime(
|
|
|
46
46
|
hosts = resolve_hosts(host)
|
|
47
47
|
root = root.resolve()
|
|
48
48
|
base = resolve_base(scope, target=target, home=home)
|
|
49
|
-
runtime_dir = base / "
|
|
49
|
+
runtime_dir = base / (GLOBAL_RUNTIME_DIR if scope == "global" else PROJECT_RUNTIME_DIR)
|
|
50
50
|
bin_dir = runtime_dir / "bin"
|
|
51
51
|
config_path = runtime_dir / "config.yaml"
|
|
52
52
|
runtime_lock_path = lock_path(base, scope)
|
|
@@ -256,7 +256,8 @@ def write_runtime_config(path: Path, root: Path, scope: str, hosts: tuple[str, .
|
|
|
256
256
|
|
|
257
257
|
|
|
258
258
|
def next_steps(scope: str, hosts: tuple[str, ...]) -> list[str]:
|
|
259
|
-
|
|
259
|
+
runtime_dir_name = GLOBAL_RUNTIME_DIR if scope == "global" else PROJECT_RUNTIME_DIR
|
|
260
|
+
steps = [f"Add `{runtime_dir_name}/bin` to PATH when you want to call the installed `agent` directly."]
|
|
260
261
|
steps.append("Run `agent doctor --json` to validate the local runtime.")
|
|
261
262
|
if "codex" in hosts:
|
|
262
263
|
steps.append("Restart or reload Codex so it can discover the AI DevKit plugin/skill.")
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"""Interactive setup wizard flow for CLI TTY sessions."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
from cli.aikit.core.requests import AgentPromptRequest
|
|
9
|
+
from cli.aikit.core.runtime import run_agent_prompt
|
|
10
|
+
from cli.aikit.wizard_state import WizardStateError, answer_wizard, cancel_wizard, show_wizard
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def maybe_run_interactive_wizard(result: dict[str, Any]) -> dict[str, Any]:
|
|
14
|
+
if not sys.stdin.isatty() or not sys.stdout.isatty():
|
|
15
|
+
return result
|
|
16
|
+
wizard = result.get("setup_wizard") if isinstance(result.get("setup_wizard"), dict) else None
|
|
17
|
+
if not wizard or not wizard.get("wizard_id") or result.get("status") != "needs-input":
|
|
18
|
+
return result
|
|
19
|
+
print(result.get("message") or "O agente precisa de configuracao antes de continuar.")
|
|
20
|
+
return run_interactive_wizard(str(wizard["wizard_id"]))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def run_interactive_wizard(wizard_id: str) -> dict[str, Any]:
|
|
24
|
+
payload = show_wizard(wizard_id)
|
|
25
|
+
while True:
|
|
26
|
+
wizard = payload.get("wizard") if isinstance(payload.get("wizard"), dict) else {}
|
|
27
|
+
question = payload.get("next_question") or wizard.get("next_question")
|
|
28
|
+
if not isinstance(question, dict):
|
|
29
|
+
return payload
|
|
30
|
+
print_interactive_question(question)
|
|
31
|
+
try:
|
|
32
|
+
answer = input("> ")
|
|
33
|
+
except (EOFError, KeyboardInterrupt):
|
|
34
|
+
print()
|
|
35
|
+
return cancel_wizard(wizard_id, reason="interactive wizard interrupted")
|
|
36
|
+
if answer.strip().lower() in {"cancelar", "cancel", "sair", "exit"}:
|
|
37
|
+
return cancel_wizard(wizard_id, reason="interactive wizard cancelled by user")
|
|
38
|
+
try:
|
|
39
|
+
payload = answer_wizard(wizard_id, answer)
|
|
40
|
+
except WizardStateError as exc:
|
|
41
|
+
print(f"Erro: {exc}")
|
|
42
|
+
continue
|
|
43
|
+
if payload.get("status") == "completed":
|
|
44
|
+
resume_prompt = payload.get("resume_prompt") or (payload.get("wizard") or {}).get("resume_prompt")
|
|
45
|
+
if resume_prompt:
|
|
46
|
+
payload["resumed_prompt"] = True
|
|
47
|
+
payload["resume_result"] = resume_agent_prompt(str(resume_prompt))
|
|
48
|
+
else:
|
|
49
|
+
payload["resumed_prompt"] = False
|
|
50
|
+
return payload
|
|
51
|
+
if payload.get("status") in {"cancelled", "denied-by-user", "failed"}:
|
|
52
|
+
payload.setdefault("resumed_prompt", False)
|
|
53
|
+
return payload
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def print_interactive_question(question: dict[str, Any]) -> None:
|
|
57
|
+
text = question.get("text") or "Informe a resposta."
|
|
58
|
+
print(f"\nPergunta: {text}")
|
|
59
|
+
if question.get("type") == "confirm":
|
|
60
|
+
print("[s/N]")
|
|
61
|
+
options = question.get("options")
|
|
62
|
+
if isinstance(options, list) and options:
|
|
63
|
+
print("Opcoes: " + ", ".join(str(item) for item in options))
|
|
64
|
+
if question.get("suggested_value"):
|
|
65
|
+
print(f"Sugestao: {question['suggested_value']}")
|
|
66
|
+
if question.get("env_ref_key"):
|
|
67
|
+
print("Informe o nome da variavel de ambiente, nao o valor da credencial.")
|
|
68
|
+
print("Digite 'cancelar' para interromper.")
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def resume_agent_prompt(prompt: str) -> dict[str, Any]:
|
|
72
|
+
result = run_agent_prompt(
|
|
73
|
+
AgentPromptRequest(
|
|
74
|
+
prompt=prompt,
|
|
75
|
+
prog_name="agent",
|
|
76
|
+
)
|
|
77
|
+
)
|
|
78
|
+
result.pop("audit", None)
|
|
79
|
+
return result
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"""Runtime execution for the local-llm-operator agent."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from cli.aikit.llm import invoke_agent_prompt
|
|
8
|
+
from cli.aikit.memory import redact_secrets
|
|
9
|
+
from cli.aikit.mini_brain import summarize_mini_brain
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
FORBIDDEN_DELEGATION_MARKERS = (
|
|
13
|
+
"aprove",
|
|
14
|
+
"aprovar",
|
|
15
|
+
"reprove",
|
|
16
|
+
"reprovar",
|
|
17
|
+
"deploy",
|
|
18
|
+
"delete",
|
|
19
|
+
"excluir",
|
|
20
|
+
"execute escrita",
|
|
21
|
+
"permissao",
|
|
22
|
+
"permissão",
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def maybe_delegate_local_llm(prompt: str, model_plan: dict[str, Any]) -> dict[str, Any]:
|
|
27
|
+
"""Execute a bounded operational task with Ollama when the model plan selected it."""
|
|
28
|
+
delegation = model_plan.get("delegation") if isinstance(model_plan.get("delegation"), dict) else {}
|
|
29
|
+
if model_plan.get("strategy") != "mini-brain":
|
|
30
|
+
return skipped(
|
|
31
|
+
"strategy-not-mini-brain",
|
|
32
|
+
"Local LLM delegation was not selected by the model strategy.",
|
|
33
|
+
model_plan=model_plan,
|
|
34
|
+
)
|
|
35
|
+
if model_plan.get("risk") == "high":
|
|
36
|
+
return skipped(
|
|
37
|
+
"high-risk",
|
|
38
|
+
"High-risk tasks cannot be delegated to local LLM workers.",
|
|
39
|
+
model_plan=model_plan,
|
|
40
|
+
)
|
|
41
|
+
if int(model_plan.get("max_llm_calls") or 0) <= 0:
|
|
42
|
+
return skipped(
|
|
43
|
+
"llm-budget-not-available",
|
|
44
|
+
"Model plan does not allow local LLM calls.",
|
|
45
|
+
model_plan=model_plan,
|
|
46
|
+
)
|
|
47
|
+
if not model_plan.get("local_llm_selected") or not delegation.get("selected"):
|
|
48
|
+
return skipped("not-selected", "Local LLM delegation was not selected for this prompt.", model_plan=model_plan)
|
|
49
|
+
lowered = prompt.lower()
|
|
50
|
+
if any(marker in lowered for marker in FORBIDDEN_DELEGATION_MARKERS):
|
|
51
|
+
return skipped("forbidden", "Prompt contains an action that local LLM workers cannot execute.", model_plan=model_plan)
|
|
52
|
+
delegated_prompt = build_delegated_prompt(prompt, model_plan)
|
|
53
|
+
result = invoke_agent_prompt(
|
|
54
|
+
delegated_prompt,
|
|
55
|
+
"ollama",
|
|
56
|
+
public_name="Local LLM Operator",
|
|
57
|
+
allow_fallback=False,
|
|
58
|
+
)
|
|
59
|
+
payload = {
|
|
60
|
+
"kind": "local-llm-execution",
|
|
61
|
+
"agent_id": "local-llm-operator",
|
|
62
|
+
"capability_id": "delegate-operational-task",
|
|
63
|
+
"capability": "local-llm-operator.delegate-operational-task",
|
|
64
|
+
"status": "ok" if result.get("ok") else result.get("status", "failed"),
|
|
65
|
+
"ok": bool(result.get("ok")),
|
|
66
|
+
"llm_backend": result.get("llm_backend"),
|
|
67
|
+
"model_provider": "ollama",
|
|
68
|
+
"mini_brain": summarize_mini_brain(model_plan.get("mini_brain")),
|
|
69
|
+
"strategy": model_plan.get("strategy"),
|
|
70
|
+
"risk": model_plan.get("risk"),
|
|
71
|
+
"confidence": model_plan.get("confidence"),
|
|
72
|
+
"delegated_prompt": redact_secrets(delegated_prompt),
|
|
73
|
+
"response": result.get("response"),
|
|
74
|
+
"result": sanitize_llm_result(result),
|
|
75
|
+
"requires_review": True,
|
|
76
|
+
}
|
|
77
|
+
if not result.get("ok"):
|
|
78
|
+
payload["message"] = result.get("message") or "Local LLM delegation failed."
|
|
79
|
+
return payload
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def build_delegated_prompt(prompt: str, model_plan: dict[str, Any]) -> str:
|
|
83
|
+
forbidden = ", ".join((model_plan.get("delegation") or {}).get("forbidden_actions") or [])
|
|
84
|
+
mini_brain = model_plan.get("mini_brain") if isinstance(model_plan.get("mini_brain"), dict) else {}
|
|
85
|
+
allowed_tasks = ", ".join(mini_brain.get("allowed_tasks") or [])
|
|
86
|
+
forbidden_tasks = ", ".join(mini_brain.get("forbidden_tasks") or [])
|
|
87
|
+
limits = mini_brain.get("limits") if isinstance(mini_brain.get("limits"), dict) else {}
|
|
88
|
+
response_limit = limits.get("max_response_chars") or 2000
|
|
89
|
+
return "\n".join(
|
|
90
|
+
[
|
|
91
|
+
"Execute apenas a parte operacional da tarefa abaixo.",
|
|
92
|
+
"Nao tome decisao final, nao aprove, nao escreva externamente e nao revise a entrega final.",
|
|
93
|
+
f"Escopo permitido do mini-brain: {allowed_tasks}.",
|
|
94
|
+
f"Tarefas proibidas do mini-brain: {forbidden_tasks}.",
|
|
95
|
+
f"Acoes proibidas: {forbidden}.",
|
|
96
|
+
f"Retorne no maximo {response_limit} caracteres com resumo estruturado, evidencias extraidas, lacunas e confianca.",
|
|
97
|
+
"",
|
|
98
|
+
"Tarefa original:",
|
|
99
|
+
redact_secrets(prompt),
|
|
100
|
+
]
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def enrich_prompt_with_local_result(prompt: str, local_execution: dict[str, Any]) -> str:
|
|
105
|
+
if not local_execution.get("ok") or not local_execution.get("response"):
|
|
106
|
+
return prompt
|
|
107
|
+
return "\n".join(
|
|
108
|
+
[
|
|
109
|
+
prompt,
|
|
110
|
+
"",
|
|
111
|
+
"Contexto operacional produzido pelo local-llm-operator/Ollama:",
|
|
112
|
+
str(local_execution["response"]),
|
|
113
|
+
"",
|
|
114
|
+
"Use esse contexto apenas como apoio. A decisao, resposta final e revisao continuam sob responsabilidade do coordenador.",
|
|
115
|
+
]
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def skipped(reason: str, message: str, *, model_plan: dict[str, Any]) -> dict[str, Any]:
|
|
120
|
+
return {
|
|
121
|
+
"kind": "local-llm-execution",
|
|
122
|
+
"agent_id": "local-llm-operator",
|
|
123
|
+
"capability_id": "delegate-operational-task",
|
|
124
|
+
"capability": "local-llm-operator.delegate-operational-task",
|
|
125
|
+
"status": "skipped",
|
|
126
|
+
"ok": False,
|
|
127
|
+
"reason": reason,
|
|
128
|
+
"message": message,
|
|
129
|
+
"model_provider": model_plan.get("local_llm_provider") or "ollama",
|
|
130
|
+
"mini_brain": summarize_mini_brain(model_plan.get("mini_brain")),
|
|
131
|
+
"strategy": model_plan.get("strategy"),
|
|
132
|
+
"risk": model_plan.get("risk"),
|
|
133
|
+
"confidence": model_plan.get("confidence"),
|
|
134
|
+
"requires_review": bool(model_plan.get("local_llm_recommended") or model_plan.get("local_llm_selected")),
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def sanitize_llm_result(result: dict[str, Any]) -> dict[str, Any]:
|
|
139
|
+
return {
|
|
140
|
+
"status": result.get("status"),
|
|
141
|
+
"ok": result.get("ok"),
|
|
142
|
+
"llm_backend": result.get("llm_backend"),
|
|
143
|
+
"llm_backend_attempts": result.get("llm_backend_attempts"),
|
|
144
|
+
"message": result.get("message"),
|
|
145
|
+
"exit_code": result.get("exit_code"),
|
|
146
|
+
}
|
|
@@ -14,11 +14,14 @@ from cli.aikit import __version__
|
|
|
14
14
|
|
|
15
15
|
PROJECT_LOCK_NAME = "ai-devkit.lock"
|
|
16
16
|
GLOBAL_LOCK_NAME = "runtime.lock"
|
|
17
|
+
PROJECT_RUNTIME_DIR = ".ai-devkit"
|
|
18
|
+
GLOBAL_RUNTIME_DIR = ".agent-devkit"
|
|
17
19
|
|
|
18
20
|
|
|
19
21
|
def lock_path(base: Path, scope: str) -> Path:
|
|
20
22
|
name = GLOBAL_LOCK_NAME if scope == "global" else PROJECT_LOCK_NAME
|
|
21
|
-
|
|
23
|
+
runtime_dir = GLOBAL_RUNTIME_DIR if scope == "global" else PROJECT_RUNTIME_DIR
|
|
24
|
+
return base / runtime_dir / name
|
|
22
25
|
|
|
23
26
|
|
|
24
27
|
def write_lock(
|