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,517 @@
|
|
|
1
|
+
"""Persistent agentic setup wizard state."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import re
|
|
7
|
+
import uuid
|
|
8
|
+
from datetime import datetime, timezone
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from typing import Any
|
|
11
|
+
|
|
12
|
+
from cli.aikit.app_home import app_path, ensure_app_home
|
|
13
|
+
from cli.aikit.decision_store import set_decision
|
|
14
|
+
from cli.aikit.memory import redact_secrets
|
|
15
|
+
from cli.aikit.sources import SourceConfigBlockedError, SourceRegistryError, add_source
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
YES_VALUES = {"s", "sim", "y", "yes", "true", "1", "ok"}
|
|
19
|
+
NO_VALUES = {"n", "nao", "não", "no", "false", "0"}
|
|
20
|
+
ENV_VAR_NAME_PATTERN = re.compile(r"^[A-Za-z_][A-Za-z0-9_]*$")
|
|
21
|
+
SOURCE_ID_PATTERN = re.compile(r"[^a-z0-9._-]+")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class WizardStateError(ValueError):
|
|
25
|
+
"""Raised for user-facing wizard state errors."""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def wizard_home() -> Path:
|
|
29
|
+
ensure_app_home()
|
|
30
|
+
path = app_path("state", "wizards")
|
|
31
|
+
path.mkdir(parents=True, exist_ok=True)
|
|
32
|
+
return path
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def wizard_path(wizard_id: str) -> Path:
|
|
36
|
+
validate_wizard_id(wizard_id)
|
|
37
|
+
return wizard_home() / f"{wizard_id}.json"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def create_provider_wizard(
|
|
41
|
+
setup_wizard: dict[str, Any],
|
|
42
|
+
*,
|
|
43
|
+
execution_plan: dict[str, Any] | None = None,
|
|
44
|
+
route: dict[str, Any] | None = None,
|
|
45
|
+
) -> dict[str, Any]:
|
|
46
|
+
"""Persist a provider setup wizard and return its public representation."""
|
|
47
|
+
now = now_iso()
|
|
48
|
+
wizard_id = f"wiz-{datetime.now(timezone.utc).strftime('%Y%m%d%H%M%S')}-{uuid.uuid4().hex[:8]}"
|
|
49
|
+
provider = str(setup_wizard.get("provider") or "provider")
|
|
50
|
+
safe_setup = sanitize_setup_wizard(setup_wizard, wizard_id=wizard_id)
|
|
51
|
+
first_question = safe_setup.get("next_question")
|
|
52
|
+
pending_questions: list[dict[str, Any]] = []
|
|
53
|
+
if isinstance(first_question, dict):
|
|
54
|
+
pending_questions.append(dict(first_question))
|
|
55
|
+
pending_questions.extend(dict(item) for item in safe_setup.get("questions") or [] if isinstance(item, dict))
|
|
56
|
+
status = "denied-by-user" if safe_setup.get("status") == "denied-by-user" else "waiting-for-user"
|
|
57
|
+
state = {
|
|
58
|
+
"kind": "provider-setup-wizard-state",
|
|
59
|
+
"schema_version": "ai-devkit.provider-wizard-state/v1",
|
|
60
|
+
"id": wizard_id,
|
|
61
|
+
"status": status,
|
|
62
|
+
"provider": provider,
|
|
63
|
+
"created_at": now,
|
|
64
|
+
"updated_at": now,
|
|
65
|
+
"setup_wizard": safe_setup,
|
|
66
|
+
"execution_plan": sanitize_execution_plan(execution_plan),
|
|
67
|
+
"route": sanitize_route(route),
|
|
68
|
+
"pending_questions": pending_questions,
|
|
69
|
+
"answered_questions": [],
|
|
70
|
+
"answers": {},
|
|
71
|
+
"source_result": None,
|
|
72
|
+
"stored_secret": False,
|
|
73
|
+
}
|
|
74
|
+
save_state(state)
|
|
75
|
+
return public_wizard(state)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def list_wizards(*, status: str | None = None) -> dict[str, Any]:
|
|
79
|
+
items = [public_wizard(load_state(path.stem)) for path in wizard_home().glob("*.json")]
|
|
80
|
+
if status:
|
|
81
|
+
items = [item for item in items if item.get("status") == status]
|
|
82
|
+
items.sort(key=lambda item: str(item.get("updated_at") or ""), reverse=True)
|
|
83
|
+
return {
|
|
84
|
+
"kind": "wizards",
|
|
85
|
+
"status": "ok",
|
|
86
|
+
"items": items,
|
|
87
|
+
"home": str(wizard_home()),
|
|
88
|
+
"stored_secret": False,
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def show_wizard(wizard_id: str) -> dict[str, Any]:
|
|
93
|
+
return {
|
|
94
|
+
"kind": "wizard",
|
|
95
|
+
"status": "ok",
|
|
96
|
+
"wizard": public_wizard(load_state(wizard_id)),
|
|
97
|
+
"stored_secret": False,
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def cancel_wizard(wizard_id: str, *, reason: str | None = None) -> dict[str, Any]:
|
|
102
|
+
state = load_state(wizard_id)
|
|
103
|
+
state["status"] = "cancelled"
|
|
104
|
+
state["updated_at"] = now_iso()
|
|
105
|
+
state["cancel_reason"] = reason or "cancelled by user"
|
|
106
|
+
state["pending_questions"] = []
|
|
107
|
+
save_state(state)
|
|
108
|
+
return {
|
|
109
|
+
"kind": "wizard",
|
|
110
|
+
"status": "cancelled",
|
|
111
|
+
"wizard": public_wizard(state),
|
|
112
|
+
"stored_secret": False,
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def answer_wizard(wizard_id: str, answer: str) -> dict[str, Any]:
|
|
117
|
+
state = load_state(wizard_id)
|
|
118
|
+
if state.get("status") in {"completed", "cancelled", "denied-by-user"}:
|
|
119
|
+
return {
|
|
120
|
+
"kind": "wizard",
|
|
121
|
+
"status": str(state.get("status")),
|
|
122
|
+
"wizard": public_wizard(state),
|
|
123
|
+
"stored_secret": False,
|
|
124
|
+
}
|
|
125
|
+
question = current_question(state)
|
|
126
|
+
if not question:
|
|
127
|
+
return complete_wizard(state)
|
|
128
|
+
|
|
129
|
+
parsed = parse_answer(question, answer)
|
|
130
|
+
if is_opt_in_question(state, question):
|
|
131
|
+
if not parsed:
|
|
132
|
+
provider = str(state.get("provider") or "")
|
|
133
|
+
set_decision("tools", provider, "denied_by_user", reason="agentic provider setup wizard opt-out")
|
|
134
|
+
state["status"] = "denied-by-user"
|
|
135
|
+
state["updated_at"] = now_iso()
|
|
136
|
+
state["pending_questions"] = []
|
|
137
|
+
append_answer(state, question, parsed)
|
|
138
|
+
save_state(state)
|
|
139
|
+
return {
|
|
140
|
+
"kind": "wizard",
|
|
141
|
+
"status": "denied-by-user",
|
|
142
|
+
"wizard": public_wizard(state),
|
|
143
|
+
"stored_secret": False,
|
|
144
|
+
}
|
|
145
|
+
pop_current_question(state)
|
|
146
|
+
append_answer(state, question, parsed)
|
|
147
|
+
state["status"] = "collecting-input"
|
|
148
|
+
state["updated_at"] = now_iso()
|
|
149
|
+
save_state(state)
|
|
150
|
+
return {
|
|
151
|
+
"kind": "wizard",
|
|
152
|
+
"status": "needs-input",
|
|
153
|
+
"wizard": public_wizard(state),
|
|
154
|
+
"next_question": current_question(state),
|
|
155
|
+
"stored_secret": False,
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if is_skip_answer(question, parsed):
|
|
159
|
+
provider = str(state.get("provider") or "")
|
|
160
|
+
set_decision("tools", provider, "denied_by_user", reason="agentic provider setup wizard skipped")
|
|
161
|
+
state["status"] = "denied-by-user"
|
|
162
|
+
state["updated_at"] = now_iso()
|
|
163
|
+
state["pending_questions"] = []
|
|
164
|
+
append_answer(state, question, parsed)
|
|
165
|
+
save_state(state)
|
|
166
|
+
return {
|
|
167
|
+
"kind": "wizard",
|
|
168
|
+
"status": "denied-by-user",
|
|
169
|
+
"wizard": public_wizard(state),
|
|
170
|
+
"stored_secret": False,
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
additions = dynamic_questions_for_answer(state, question, parsed)
|
|
174
|
+
pop_current_question(state)
|
|
175
|
+
if additions:
|
|
176
|
+
state["pending_questions"] = additions + list(state.get("pending_questions") or [])
|
|
177
|
+
append_answer(state, question, parsed)
|
|
178
|
+
state["updated_at"] = now_iso()
|
|
179
|
+
if current_question(state):
|
|
180
|
+
save_state(state)
|
|
181
|
+
return {
|
|
182
|
+
"kind": "wizard",
|
|
183
|
+
"status": "needs-input",
|
|
184
|
+
"wizard": public_wizard(state),
|
|
185
|
+
"next_question": current_question(state),
|
|
186
|
+
"stored_secret": False,
|
|
187
|
+
}
|
|
188
|
+
return complete_wizard(state)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def complete_wizard(state: dict[str, Any]) -> dict[str, Any]:
|
|
192
|
+
if state.get("source_result"):
|
|
193
|
+
state["status"] = "completed"
|
|
194
|
+
state["updated_at"] = now_iso()
|
|
195
|
+
save_state(state)
|
|
196
|
+
return {"kind": "wizard", "status": "completed", "wizard": public_wizard(state), "stored_secret": False}
|
|
197
|
+
try:
|
|
198
|
+
source_result = create_source_from_wizard(state)
|
|
199
|
+
except SourceConfigBlockedError as exc:
|
|
200
|
+
state["status"] = "failed"
|
|
201
|
+
state["updated_at"] = now_iso()
|
|
202
|
+
state["error"] = str(exc)
|
|
203
|
+
state["source_result"] = exc.payload
|
|
204
|
+
save_state(state)
|
|
205
|
+
return {
|
|
206
|
+
"kind": "wizard",
|
|
207
|
+
"status": "failed",
|
|
208
|
+
"wizard": public_wizard(state),
|
|
209
|
+
"source_result": exc.payload,
|
|
210
|
+
"error": str(exc),
|
|
211
|
+
"stored_secret": False,
|
|
212
|
+
}
|
|
213
|
+
except SourceRegistryError as exc:
|
|
214
|
+
state["status"] = "failed"
|
|
215
|
+
state["updated_at"] = now_iso()
|
|
216
|
+
state["error"] = str(exc)
|
|
217
|
+
save_state(state)
|
|
218
|
+
return {
|
|
219
|
+
"kind": "wizard",
|
|
220
|
+
"status": "failed",
|
|
221
|
+
"wizard": public_wizard(state),
|
|
222
|
+
"error": str(exc),
|
|
223
|
+
"stored_secret": False,
|
|
224
|
+
}
|
|
225
|
+
state["status"] = "completed"
|
|
226
|
+
state["updated_at"] = now_iso()
|
|
227
|
+
state["source_result"] = source_result
|
|
228
|
+
save_state(state)
|
|
229
|
+
return {
|
|
230
|
+
"kind": "wizard",
|
|
231
|
+
"status": "completed",
|
|
232
|
+
"wizard": public_wizard(state),
|
|
233
|
+
"source_result": source_result,
|
|
234
|
+
"resume_prompt": resume_prompt(state),
|
|
235
|
+
"stored_secret": False,
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def create_source_from_wizard(state: dict[str, Any]) -> dict[str, Any]:
|
|
240
|
+
provider = str(state.get("provider") or "")
|
|
241
|
+
answers = answer_map(state)
|
|
242
|
+
source_id = str(answers.get("source_id") or suggested_source_id(state)).strip()
|
|
243
|
+
source_id = normalize_source_id(source_id or provider)
|
|
244
|
+
intent = str((state.get("setup_wizard") or {}).get("intent") or "").strip()
|
|
245
|
+
agent_id = str((state.get("setup_wizard") or {}).get("agent_id") or "").strip()
|
|
246
|
+
config_pairs: list[str] = []
|
|
247
|
+
env_refs: list[str] = []
|
|
248
|
+
env_files: list[str] = []
|
|
249
|
+
|
|
250
|
+
for record in state.get("answered_questions") or []:
|
|
251
|
+
question = record.get("question") if isinstance(record, dict) else None
|
|
252
|
+
if not isinstance(question, dict):
|
|
253
|
+
continue
|
|
254
|
+
value = record.get("answer")
|
|
255
|
+
if value in {None, ""}:
|
|
256
|
+
continue
|
|
257
|
+
if question.get("config_key") and not question.get("secret"):
|
|
258
|
+
config_pairs.append(f"{question['config_key']}={value}")
|
|
259
|
+
if question.get("env_ref_key"):
|
|
260
|
+
env_key = str(question["env_ref_key"])
|
|
261
|
+
env_value = str(value)
|
|
262
|
+
if not ENV_VAR_NAME_PATTERN.fullmatch(env_value):
|
|
263
|
+
raise SourceRegistryError("credential answers must be environment variable names, not raw secret values")
|
|
264
|
+
if redact_secrets(env_value) != env_value:
|
|
265
|
+
raise SourceRegistryError("credential answers must not contain raw secret values")
|
|
266
|
+
env_refs.append(f"{env_key}={env_value}")
|
|
267
|
+
if question.get("env_file"):
|
|
268
|
+
env_files.append(str(value))
|
|
269
|
+
|
|
270
|
+
default_for: list[str] = []
|
|
271
|
+
default_for_agent: list[str] = []
|
|
272
|
+
if answers.get("default_for_intent") is True and intent:
|
|
273
|
+
default_for.append(intent)
|
|
274
|
+
if agent_id:
|
|
275
|
+
default_for_agent.append(agent_id)
|
|
276
|
+
|
|
277
|
+
return add_source(
|
|
278
|
+
source_id,
|
|
279
|
+
provider=provider,
|
|
280
|
+
label=source_id,
|
|
281
|
+
config_pairs=config_pairs,
|
|
282
|
+
env_refs=env_refs,
|
|
283
|
+
env_files=env_files,
|
|
284
|
+
default_for=default_for,
|
|
285
|
+
default_for_agent=default_for_agent,
|
|
286
|
+
set_default=True,
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
def current_question(state: dict[str, Any]) -> dict[str, Any] | None:
|
|
291
|
+
questions = state.get("pending_questions") if isinstance(state.get("pending_questions"), list) else []
|
|
292
|
+
if not questions:
|
|
293
|
+
return None
|
|
294
|
+
question = questions[0]
|
|
295
|
+
return dict(question) if isinstance(question, dict) else None
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
def pop_current_question(state: dict[str, Any]) -> None:
|
|
299
|
+
questions = state.get("pending_questions") if isinstance(state.get("pending_questions"), list) else []
|
|
300
|
+
state["pending_questions"] = list(questions[1:])
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
def append_answer(state: dict[str, Any], question: dict[str, Any], answer: Any) -> None:
|
|
304
|
+
state.setdefault("answered_questions", []).append(
|
|
305
|
+
{
|
|
306
|
+
"question": dict(question),
|
|
307
|
+
"answer": public_answer(question, answer),
|
|
308
|
+
"answered_at": now_iso(),
|
|
309
|
+
}
|
|
310
|
+
)
|
|
311
|
+
state.setdefault("answers", {})[str(question.get("id") or len(state["answered_questions"]))] = public_answer(question, answer)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
def parse_answer(question: dict[str, Any], answer: str) -> Any:
|
|
315
|
+
raw = " ".join(str(answer or "").split())
|
|
316
|
+
if not raw and question.get("default") is not None:
|
|
317
|
+
return question.get("default")
|
|
318
|
+
if not raw and question.get("suggested_value"):
|
|
319
|
+
return question.get("suggested_value")
|
|
320
|
+
if question.get("env_ref_key"):
|
|
321
|
+
if not ENV_VAR_NAME_PATTERN.fullmatch(raw):
|
|
322
|
+
raise WizardStateError("informe o nome de uma variavel de ambiente, nao o valor bruto da credencial")
|
|
323
|
+
if redact_secrets(raw) != raw:
|
|
324
|
+
raise WizardStateError("informe uma referencia segura de credencial, nao o valor bruto do segredo")
|
|
325
|
+
return raw
|
|
326
|
+
if question.get("type") == "confirm":
|
|
327
|
+
lowered = raw.lower()
|
|
328
|
+
if lowered in YES_VALUES:
|
|
329
|
+
return True
|
|
330
|
+
if lowered in NO_VALUES:
|
|
331
|
+
return False
|
|
332
|
+
raise WizardStateError("responda sim ou nao")
|
|
333
|
+
if question.get("type") == "select":
|
|
334
|
+
options = [str(item) for item in question.get("options") or []]
|
|
335
|
+
if raw not in options:
|
|
336
|
+
raise WizardStateError(f"resposta invalida. opcoes: {', '.join(options)}")
|
|
337
|
+
return raw
|
|
338
|
+
if not raw and question.get("required"):
|
|
339
|
+
raise WizardStateError("resposta obrigatoria")
|
|
340
|
+
return raw
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
def dynamic_questions_for_answer(state: dict[str, Any], question: dict[str, Any], answer: Any) -> list[dict[str, Any]]:
|
|
344
|
+
if question.get("type") != "select" or not str(question.get("id") or "").endswith("_auth"):
|
|
345
|
+
return []
|
|
346
|
+
provider = str(state.get("provider") or "provider")
|
|
347
|
+
setup = state.get("setup_wizard") if isinstance(state.get("setup_wizard"), dict) else {}
|
|
348
|
+
auth_methods = setup.get("auth_methods") if isinstance(setup.get("auth_methods"), list) else []
|
|
349
|
+
selected = str(answer)
|
|
350
|
+
if selected == "file":
|
|
351
|
+
return [
|
|
352
|
+
{
|
|
353
|
+
"id": f"{provider_slug(provider)}_credential_file",
|
|
354
|
+
"type": "text",
|
|
355
|
+
"text": "Qual e o caminho do arquivo local com a credencial?",
|
|
356
|
+
"env_file": True,
|
|
357
|
+
"required": True,
|
|
358
|
+
"secret": False,
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
if selected in {"env"} | {str(method.get("id")) for method in auth_methods if isinstance(method, dict)}:
|
|
362
|
+
secret_fields: list[str] = []
|
|
363
|
+
for method in auth_methods:
|
|
364
|
+
if not isinstance(method, dict):
|
|
365
|
+
continue
|
|
366
|
+
if selected != "env" and method.get("id") != selected:
|
|
367
|
+
continue
|
|
368
|
+
secret_fields.extend(str(item) for item in method.get("secret_fields") or [])
|
|
369
|
+
if selected == "env" and not secret_fields:
|
|
370
|
+
for option in setup.get("credential_options") or []:
|
|
371
|
+
if isinstance(option, dict) and option.get("env"):
|
|
372
|
+
secret_fields.append(str(option["env"]))
|
|
373
|
+
unique = []
|
|
374
|
+
for field in secret_fields:
|
|
375
|
+
if field and field not in unique:
|
|
376
|
+
unique.append(field)
|
|
377
|
+
return [
|
|
378
|
+
{
|
|
379
|
+
"id": f"{provider_slug(provider)}_{provider_slug(field)}_env_ref",
|
|
380
|
+
"type": "text",
|
|
381
|
+
"text": f"Qual variavel de ambiente contem {field}?",
|
|
382
|
+
"env_ref_key": field,
|
|
383
|
+
"required": True,
|
|
384
|
+
"secret": True,
|
|
385
|
+
"stores_secret": False,
|
|
386
|
+
"suggested_value": field,
|
|
387
|
+
}
|
|
388
|
+
for field in unique
|
|
389
|
+
]
|
|
390
|
+
return []
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
def is_opt_in_question(state: dict[str, Any], question: dict[str, Any]) -> bool:
|
|
394
|
+
expected = ((state.get("setup_wizard") or {}).get("next_question") or {}).get("id") if isinstance(state.get("setup_wizard"), dict) else None
|
|
395
|
+
return bool(expected and question.get("id") == expected)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
def is_skip_answer(question: dict[str, Any], answer: Any) -> bool:
|
|
399
|
+
return question.get("type") == "select" and str(answer) == "skip"
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
def answer_map(state: dict[str, Any]) -> dict[str, Any]:
|
|
403
|
+
result: dict[str, Any] = {}
|
|
404
|
+
for record in state.get("answered_questions") or []:
|
|
405
|
+
if not isinstance(record, dict):
|
|
406
|
+
continue
|
|
407
|
+
question = record.get("question")
|
|
408
|
+
if isinstance(question, dict):
|
|
409
|
+
result[str(question.get("id"))] = record.get("answer")
|
|
410
|
+
return result
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
def public_answer(question: dict[str, Any], answer: Any) -> Any:
|
|
414
|
+
if question.get("env_ref_key"):
|
|
415
|
+
return str(answer)
|
|
416
|
+
if question.get("secret") and not question.get("env_ref_key"):
|
|
417
|
+
return "[REDACTED]"
|
|
418
|
+
return answer
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
def public_wizard(state: dict[str, Any]) -> dict[str, Any]:
|
|
422
|
+
setup = state.get("setup_wizard") if isinstance(state.get("setup_wizard"), dict) else {}
|
|
423
|
+
question = current_question(state)
|
|
424
|
+
wizard = dict(setup)
|
|
425
|
+
wizard.update(
|
|
426
|
+
{
|
|
427
|
+
"wizard_id": state.get("id"),
|
|
428
|
+
"status": state.get("status"),
|
|
429
|
+
"provider": state.get("provider") or setup.get("provider"),
|
|
430
|
+
"state_path": str(wizard_path(str(state.get("id")))),
|
|
431
|
+
"created_at": state.get("created_at"),
|
|
432
|
+
"updated_at": state.get("updated_at"),
|
|
433
|
+
"answered_count": len(state.get("answered_questions") or []),
|
|
434
|
+
"pending_count": len(state.get("pending_questions") or []),
|
|
435
|
+
"next_question": question,
|
|
436
|
+
"resume_prompt": resume_prompt(state),
|
|
437
|
+
"stored_secret": False,
|
|
438
|
+
}
|
|
439
|
+
)
|
|
440
|
+
if state.get("source_result"):
|
|
441
|
+
wizard["source"] = (state["source_result"].get("source") if isinstance(state["source_result"], dict) else None)
|
|
442
|
+
if state.get("error"):
|
|
443
|
+
wizard["error"] = state.get("error")
|
|
444
|
+
return wizard
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
def resume_prompt(state: dict[str, Any]) -> str | None:
|
|
448
|
+
setup = state.get("setup_wizard") if isinstance(state.get("setup_wizard"), dict) else {}
|
|
449
|
+
prompt = setup.get("resume_prompt")
|
|
450
|
+
return str(prompt) if prompt else None
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
def suggested_source_id(state: dict[str, Any]) -> str:
|
|
454
|
+
setup = state.get("setup_wizard") if isinstance(state.get("setup_wizard"), dict) else {}
|
|
455
|
+
return str(setup.get("suggested_source_id") or state.get("provider") or "source")
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
def sanitize_setup_wizard(setup_wizard: dict[str, Any], *, wizard_id: str) -> dict[str, Any]:
|
|
459
|
+
safe = json.loads(json.dumps(setup_wizard, ensure_ascii=False))
|
|
460
|
+
if safe.get("resume_prompt"):
|
|
461
|
+
safe["resume_prompt"] = redact_secrets(str(safe["resume_prompt"]))
|
|
462
|
+
safe["wizard_id"] = wizard_id
|
|
463
|
+
safe["state_path"] = str(wizard_path(wizard_id))
|
|
464
|
+
safe["stored_secret"] = False
|
|
465
|
+
return safe
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
def sanitize_execution_plan(execution_plan: dict[str, Any] | None) -> dict[str, Any] | None:
|
|
469
|
+
if not execution_plan:
|
|
470
|
+
return None
|
|
471
|
+
safe = json.loads(json.dumps(execution_plan, ensure_ascii=False))
|
|
472
|
+
if safe.get("prompt"):
|
|
473
|
+
safe["prompt"] = redact_secrets(str(safe["prompt"]))
|
|
474
|
+
return safe
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
def sanitize_route(route: dict[str, Any] | None) -> dict[str, Any] | None:
|
|
478
|
+
if not route:
|
|
479
|
+
return None
|
|
480
|
+
return json.loads(json.dumps(route, ensure_ascii=False))
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
def save_state(state: dict[str, Any]) -> Path:
|
|
484
|
+
path = wizard_path(str(state["id"]))
|
|
485
|
+
path.write_text(json.dumps(state, ensure_ascii=False, indent=2, sort_keys=True) + "\n", encoding="utf-8")
|
|
486
|
+
return path
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
def load_state(wizard_id: str) -> dict[str, Any]:
|
|
490
|
+
path = wizard_path(wizard_id)
|
|
491
|
+
if not path.exists():
|
|
492
|
+
raise WizardStateError(f"wizard not found: {wizard_id}")
|
|
493
|
+
try:
|
|
494
|
+
data = json.loads(path.read_text(encoding="utf-8"))
|
|
495
|
+
except json.JSONDecodeError as exc:
|
|
496
|
+
raise WizardStateError(f"invalid wizard state: {wizard_id}") from exc
|
|
497
|
+
if not isinstance(data, dict):
|
|
498
|
+
raise WizardStateError(f"invalid wizard state: {wizard_id}")
|
|
499
|
+
return data
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
def normalize_source_id(value: str) -> str:
|
|
503
|
+
normalized = SOURCE_ID_PATTERN.sub("-", value.lower()).strip("-")
|
|
504
|
+
return normalized or "source"
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
def validate_wizard_id(wizard_id: str) -> None:
|
|
508
|
+
if not re.fullmatch(r"wiz-[0-9]{14}-[a-f0-9]{8}", str(wizard_id or "")):
|
|
509
|
+
raise WizardStateError("invalid wizard id")
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
def provider_slug(provider: str) -> str:
|
|
513
|
+
return re.sub(r"[^a-z0-9]+", "_", provider.lower()).strip("_") or "provider"
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
def now_iso() -> str:
|
|
517
|
+
return datetime.now(timezone.utc).isoformat()
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"""Installable workflow MVP for Agent DevKit."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from cli.aikit.tasks import create_task
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
WORKFLOW_SCHEMA_VERSION = "agent-devkit.workflows/v1"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
BUILTIN_WORKFLOWS: dict[str, dict[str, Any]] = {
|
|
14
|
+
"daily-pr-review": {
|
|
15
|
+
"id": "daily-pr-review",
|
|
16
|
+
"title": "Daily PR review",
|
|
17
|
+
"description": "Create a local scheduled prompt to review pending pull requests.",
|
|
18
|
+
"schedule": {"type": "cron", "cron": "0 9 * * 1-5"},
|
|
19
|
+
"task": {
|
|
20
|
+
"title": "Daily PR review",
|
|
21
|
+
"prompt": "Revise as PRs que aguardam minha revisao hoje.",
|
|
22
|
+
"action": {"type": "prompt", "prompt": "Revise as PRs que aguardam minha revisao hoje.", "external_writes": False},
|
|
23
|
+
"permissions": {"mode": "report-only"},
|
|
24
|
+
"notifications": [{"type": "desktop", "events": ["task.completed", "task.blocked"]}],
|
|
25
|
+
},
|
|
26
|
+
"write_policy": "local_config_write",
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def workflow_list() -> dict[str, Any]:
|
|
32
|
+
return {
|
|
33
|
+
"kind": "workflows",
|
|
34
|
+
"schema_version": WORKFLOW_SCHEMA_VERSION,
|
|
35
|
+
"status": "ok",
|
|
36
|
+
"items": [public_workflow(item) for item in BUILTIN_WORKFLOWS.values()],
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def workflow_show(workflow_id: str) -> dict[str, Any]:
|
|
41
|
+
workflow = require_workflow(workflow_id)
|
|
42
|
+
return {"kind": "workflow", "schema_version": WORKFLOW_SCHEMA_VERSION, "status": "ok", "workflow": public_workflow(workflow)}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def workflow_install(workflow_id: str, *, dry_run: bool = True, yes: bool = False) -> dict[str, Any]:
|
|
46
|
+
workflow = require_workflow(workflow_id)
|
|
47
|
+
mode = "dry-run" if dry_run or not yes else "apply"
|
|
48
|
+
task = workflow["task"]
|
|
49
|
+
plan = {
|
|
50
|
+
"task": {
|
|
51
|
+
"id": workflow["id"],
|
|
52
|
+
"title": task["title"],
|
|
53
|
+
"schedule": workflow["schedule"],
|
|
54
|
+
"permissions": task["permissions"],
|
|
55
|
+
"notifications": task["notifications"],
|
|
56
|
+
},
|
|
57
|
+
"writes": ["local task registry"],
|
|
58
|
+
"stores_secret": False,
|
|
59
|
+
}
|
|
60
|
+
if mode == "dry-run":
|
|
61
|
+
return {
|
|
62
|
+
"kind": "workflow-install",
|
|
63
|
+
"schema_version": WORKFLOW_SCHEMA_VERSION,
|
|
64
|
+
"status": "planned",
|
|
65
|
+
"mode": "dry-run",
|
|
66
|
+
"workflow": public_workflow(workflow),
|
|
67
|
+
"plan": plan,
|
|
68
|
+
}
|
|
69
|
+
created = create_task(
|
|
70
|
+
task_id=workflow["id"],
|
|
71
|
+
title=task["title"],
|
|
72
|
+
prompt=task["prompt"],
|
|
73
|
+
schedule=workflow["schedule"],
|
|
74
|
+
action=task["action"],
|
|
75
|
+
permissions=task["permissions"],
|
|
76
|
+
notifications=task["notifications"],
|
|
77
|
+
)
|
|
78
|
+
return {
|
|
79
|
+
"kind": "workflow-install",
|
|
80
|
+
"schema_version": WORKFLOW_SCHEMA_VERSION,
|
|
81
|
+
"status": "installed",
|
|
82
|
+
"mode": "apply",
|
|
83
|
+
"workflow": public_workflow(workflow),
|
|
84
|
+
"task": created.get("task"),
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def workflow_run(workflow_id: str, *, dry_run: bool = True) -> dict[str, Any]:
|
|
89
|
+
workflow = require_workflow(workflow_id)
|
|
90
|
+
return {
|
|
91
|
+
"kind": "workflow-run",
|
|
92
|
+
"schema_version": WORKFLOW_SCHEMA_VERSION,
|
|
93
|
+
"status": "planned" if dry_run else "blocked",
|
|
94
|
+
"dry_run": dry_run,
|
|
95
|
+
"workflow": public_workflow(workflow),
|
|
96
|
+
"message": "Workflow MVP runs through installed tasks; use workflow install first.",
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def require_workflow(workflow_id: str) -> dict[str, Any]:
|
|
101
|
+
workflow = BUILTIN_WORKFLOWS.get(workflow_id or "")
|
|
102
|
+
if not workflow:
|
|
103
|
+
raise ValueError(f"workflow not found: {workflow_id}")
|
|
104
|
+
return workflow
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def public_workflow(workflow: dict[str, Any]) -> dict[str, Any]:
|
|
108
|
+
return {
|
|
109
|
+
"id": workflow["id"],
|
|
110
|
+
"title": workflow["title"],
|
|
111
|
+
"description": workflow["description"],
|
|
112
|
+
"schedule": workflow["schedule"],
|
|
113
|
+
"write_policy": workflow["write_policy"],
|
|
114
|
+
"stores_secret": False,
|
|
115
|
+
}
|