@bonesofspring/ai-rules 0.2.66 → 0.2.68
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/CHANGELOG.md +72 -0
- package/README.md +6 -4
- package/bin/cli.js +9 -1
- package/bin/lib/engine-scripts.js +3 -10
- package/bin/lib/seed-ai-local-team.js +27 -1
- package/docs/OPENCODE-COMPATIBILITY.md +1 -0
- package/docs/OPENCODE.md +14 -1
- package/docs/PRESET-CONTRIBUTION.md +15 -8
- package/docs/TEAM-DB.md +107 -106
- package/docs/TOKEN-ECONOMY.md +36 -3
- package/docs/openapi/team-db.v1.json +3910 -1471
- package/package.json +13 -5
- package/presets/_shared/ai-local/scripts/dump-output.mjs +63 -12
- package/presets/_shared/ai-local/scripts/processes.mjs +467 -55
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +564 -10
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +819 -50
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +659 -5
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +135 -0
- package/presets/_shared/ai-local/scripts/team-db-task-runner.mjs +11 -6
- package/presets/_shared/ai-local/scripts/team-db-tracker.mjs +2 -0
- package/presets/_shared/ai-local/scripts/team-db.mjs +16 -54
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +5 -5
- package/presets/_shared/core/architecture/feature-delivery-workflow.md +3 -7
- package/presets/_shared/core/meta/preset-pr-checklist.md +2 -2
- package/presets/_shared/core/quality/code-quality-and-refactoring.md +2 -6
- package/presets/_shared/core/quality/verification-before-completion.md +20 -3
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +21 -5
- package/presets/_shared/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/go/REPO_AGENTS.md +7 -47
- package/presets/claude/go/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/go/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/go/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/go/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/java/REPO_AGENTS.md +7 -47
- package/presets/claude/java/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/java/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/java/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/java/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/mol/REPO_AGENTS.md +9 -49
- package/presets/claude/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/mol/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/mol/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/mol/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/next/REPO_AGENTS.md +10 -50
- package/presets/claude/next/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/next/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/next/agents/build-verifier.md +12 -8
- package/presets/claude/next/agents/ci-investigator.md +5 -2
- package/presets/claude/next/agents/code-reviewer.md +1 -1
- package/presets/claude/next/agents/codebase-analyzer.md +0 -1
- package/presets/claude/next/agents/debugger.md +5 -2
- package/presets/claude/next/agents/feature-developer.md +11 -8
- package/presets/claude/next/agents/migration-specialist.md +0 -1
- package/presets/claude/next/agents/mockup-reviewer.md +0 -1
- package/presets/claude/next/agents/openspec-author.md +0 -1
- package/presets/claude/next/agents/performance-auditor.md +0 -1
- package/presets/claude/next/agents/playwright-test-generator.md +0 -1
- package/presets/claude/next/agents/playwright-test-healer.md +0 -1
- package/presets/claude/next/agents/playwright-test-planner.md +0 -1
- package/presets/claude/next/agents/qa-tester.md +3 -3
- package/presets/claude/next/agents/security-reviewer.md +0 -1
- package/presets/claude/next/agents/solution-architect.md +0 -1
- package/presets/claude/next/agents/task-analyst.md +0 -1
- package/presets/claude/next/agents/task-router.md +8 -7
- package/presets/claude/next/agents/tech-writer.md +0 -1
- package/presets/claude/next/agents/unit-test-generator.md +0 -1
- package/presets/claude/next/agents/unit-test-healer.md +0 -1
- package/presets/claude/next/agents/unit-test-planner.md +0 -1
- package/presets/claude/next/commands/README.md +0 -6
- package/presets/claude/next/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/next/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +9 -9
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/next/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +12 -16
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/nuxt/REPO_AGENTS.md +8 -48
- package/presets/claude/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/build-verifier.md +5 -3
- package/presets/claude/nuxt/agents/ci-investigator.md +1 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/claude/nuxt/agents/debugger.md +1 -1
- package/presets/claude/nuxt/agents/feature-developer.md +6 -6
- package/presets/claude/nuxt/agents/migration-specialist.md +0 -1
- package/presets/claude/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/openspec-author.md +0 -1
- package/presets/claude/nuxt/agents/performance-auditor.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/claude/nuxt/agents/qa-tester.md +3 -3
- package/presets/claude/nuxt/agents/security-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/solution-architect.md +0 -1
- package/presets/claude/nuxt/agents/task-analyst.md +0 -1
- package/presets/claude/nuxt/agents/task-router.md +8 -7
- package/presets/claude/nuxt/agents/tech-writer.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +14 -14
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/svelte/REPO_AGENTS.md +8 -48
- package/presets/claude/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/svelte/agents/build-verifier.md +5 -3
- package/presets/claude/svelte/agents/ci-investigator.md +1 -1
- package/presets/claude/svelte/agents/code-reviewer.md +0 -1
- package/presets/claude/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/claude/svelte/agents/debugger.md +1 -1
- package/presets/claude/svelte/agents/feature-developer.md +6 -6
- package/presets/claude/svelte/agents/migration-specialist.md +0 -1
- package/presets/claude/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/claude/svelte/agents/openspec-author.md +0 -1
- package/presets/claude/svelte/agents/performance-auditor.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/claude/svelte/agents/qa-tester.md +3 -3
- package/presets/claude/svelte/agents/security-reviewer.md +0 -1
- package/presets/claude/svelte/agents/solution-architect.md +0 -1
- package/presets/claude/svelte/agents/task-analyst.md +0 -1
- package/presets/claude/svelte/agents/task-router.md +8 -7
- package/presets/claude/svelte/agents/tech-writer.md +0 -1
- package/presets/claude/svelte/agents/unit-test-generator.md +0 -1
- package/presets/claude/svelte/agents/unit-test-healer.md +0 -1
- package/presets/claude/svelte/agents/unit-test-planner.md +0 -1
- package/presets/claude/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +14 -14
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/android-kotlin/AGENTS.md +0 -10
- package/presets/cursor/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/go/AGENTS.md +0 -8
- package/presets/cursor/go/REPO_AGENTS.md +7 -47
- package/presets/cursor/go/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/go/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/ios-swift/AGENTS.md +0 -10
- package/presets/cursor/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/java/AGENTS.md +0 -8
- package/presets/cursor/java/REPO_AGENTS.md +7 -47
- package/presets/cursor/java/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/java/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/mcp-ts/AGENTS.md +0 -6
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/mol/AGENTS.md +0 -11
- package/presets/cursor/mol/REPO_AGENTS.md +9 -49
- package/presets/cursor/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/mol/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/mol/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/next/AGENTS.md +1 -12
- package/presets/cursor/next/REPO_AGENTS.md +10 -50
- package/presets/cursor/next/agents/build-verifier.md +11 -7
- package/presets/cursor/next/agents/code-reviewer.md +1 -0
- package/presets/cursor/next/agents/feature-developer.md +6 -6
- package/presets/cursor/next/agents/qa-tester.md +3 -2
- package/presets/cursor/next/agents/task-router.md +8 -6
- package/presets/cursor/next/commands/README.md +0 -6
- package/presets/cursor/next/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/next/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +6 -2
- package/presets/cursor/next/rules/post-change-lint.mdc +12 -16
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/nuxt/AGENTS.md +1 -12
- package/presets/cursor/nuxt/REPO_AGENTS.md +8 -48
- package/presets/cursor/nuxt/agents/build-verifier.md +1 -1
- package/presets/cursor/nuxt/agents/feature-developer.md +2 -2
- package/presets/cursor/nuxt/agents/qa-tester.md +3 -2
- package/presets/cursor/nuxt/agents/task-router.md +8 -6
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/nuxt/rules/post-change-lint.mdc +14 -14
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/php-hexagonal/AGENTS.md +0 -8
- package/presets/cursor/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/php-laravel/AGENTS.md +0 -8
- package/presets/cursor/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/svelte/AGENTS.md +1 -12
- package/presets/cursor/svelte/REPO_AGENTS.md +8 -48
- package/presets/cursor/svelte/agents/build-verifier.md +1 -1
- package/presets/cursor/svelte/agents/feature-developer.md +2 -2
- package/presets/cursor/svelte/agents/qa-tester.md +3 -2
- package/presets/cursor/svelte/agents/task-router.md +8 -6
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/svelte/rules/post-change-lint.mdc +14 -14
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/android-kotlin/MAVIS.md +0 -2
- package/presets/mavis/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/go/MAVIS.md +8 -0
- package/presets/mavis/go/REPO_AGENTS.md +7 -47
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/go/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/go/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/ios-swift/MAVIS.md +0 -2
- package/presets/mavis/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/java/MAVIS.md +14 -0
- package/presets/mavis/java/REPO_AGENTS.md +7 -47
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/java/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/java/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/mcp-ts/MAVIS.md +6 -0
- package/presets/mavis/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/mol/MAVIS.md +1 -5
- package/presets/mavis/mol/REPO_AGENTS.md +9 -49
- package/presets/mavis/mol/adapter-map.json +1 -1
- package/presets/mavis/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/next/MAVIS.md +2 -6
- package/presets/mavis/next/REPO_AGENTS.md +10 -50
- package/presets/mavis/next/adapter-map.json +1 -17
- package/presets/mavis/next/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/next/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/next/agents/build-verifier.md +12 -8
- package/presets/mavis/next/agents/ci-investigator.md +5 -2
- package/presets/mavis/next/agents/code-reviewer.md +1 -1
- package/presets/mavis/next/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/next/agents/debugger.md +5 -2
- package/presets/mavis/next/agents/feature-developer.md +11 -8
- package/presets/mavis/next/agents/migration-specialist.md +0 -1
- package/presets/mavis/next/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/next/agents/openspec-author.md +0 -1
- package/presets/mavis/next/agents/performance-auditor.md +0 -1
- package/presets/mavis/next/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/next/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/next/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/next/agents/qa-tester.md +3 -3
- package/presets/mavis/next/agents/security-reviewer.md +0 -1
- package/presets/mavis/next/agents/solution-architect.md +0 -1
- package/presets/mavis/next/agents/task-analyst.md +0 -1
- package/presets/mavis/next/agents/task-router.md +8 -7
- package/presets/mavis/next/agents/tech-writer.md +0 -1
- package/presets/mavis/next/agents/unit-test-generator.md +0 -1
- package/presets/mavis/next/agents/unit-test-healer.md +0 -1
- package/presets/mavis/next/agents/unit-test-planner.md +0 -1
- package/presets/mavis/next/commands/README.md +0 -6
- package/presets/mavis/next/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/next/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/next/rules/feature-delivery-workflow.md +9 -9
- package/presets/mavis/next/rules/post-change-lint.md +11 -15
- package/presets/mavis/next/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/nuxt/MAVIS.md +2 -6
- package/presets/mavis/nuxt/REPO_AGENTS.md +8 -48
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/build-verifier.md +2 -2
- package/presets/mavis/nuxt/agents/ci-investigator.md +1 -1
- package/presets/mavis/nuxt/agents/code-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/nuxt/agents/debugger.md +1 -1
- package/presets/mavis/nuxt/agents/feature-developer.md +3 -3
- package/presets/mavis/nuxt/agents/migration-specialist.md +0 -1
- package/presets/mavis/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/openspec-author.md +0 -1
- package/presets/mavis/nuxt/agents/performance-auditor.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/nuxt/agents/qa-tester.md +3 -3
- package/presets/mavis/nuxt/agents/security-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/solution-architect.md +0 -1
- package/presets/mavis/nuxt/agents/task-analyst.md +0 -1
- package/presets/mavis/nuxt/agents/task-router.md +8 -7
- package/presets/mavis/nuxt/agents/tech-writer.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/nuxt/rules/post-change-lint.md +13 -13
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +16 -0
- package/presets/mavis/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/php-laravel/MAVIS.md +16 -0
- package/presets/mavis/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/svelte/MAVIS.md +2 -6
- package/presets/mavis/svelte/REPO_AGENTS.md +8 -48
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/build-verifier.md +2 -2
- package/presets/mavis/svelte/agents/ci-investigator.md +1 -1
- package/presets/mavis/svelte/agents/code-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/svelte/agents/debugger.md +1 -1
- package/presets/mavis/svelte/agents/feature-developer.md +3 -3
- package/presets/mavis/svelte/agents/migration-specialist.md +0 -1
- package/presets/mavis/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/openspec-author.md +0 -1
- package/presets/mavis/svelte/agents/performance-auditor.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/svelte/agents/qa-tester.md +3 -3
- package/presets/mavis/svelte/agents/security-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/solution-architect.md +0 -1
- package/presets/mavis/svelte/agents/task-analyst.md +0 -1
- package/presets/mavis/svelte/agents/task-router.md +8 -7
- package/presets/mavis/svelte/agents/tech-writer.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-generator.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-healer.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-planner.md +0 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/svelte/rules/post-change-lint.md +13 -13
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/android-kotlin/OPENCODE.md +1 -43
- package/presets/opencode/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/go/OPENCODE.md +7 -39
- package/presets/opencode/go/REPO_AGENTS.md +7 -47
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/go/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/go/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/ios-swift/OPENCODE.md +1 -43
- package/presets/opencode/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/java/OPENCODE.md +12 -38
- package/presets/opencode/java/REPO_AGENTS.md +7 -47
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/java/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/java/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/mcp-ts/OPENCODE.md +5 -39
- package/presets/opencode/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/mol/OPENCODE.md +1 -44
- package/presets/opencode/mol/REPO_AGENTS.md +9 -49
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/next/OPENCODE.md +2 -45
- package/presets/opencode/next/REPO_AGENTS.md +10 -50
- package/presets/opencode/next/adapter-map.json +1 -17
- package/presets/opencode/next/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/next/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/next/agents/build-verifier.md +12 -8
- package/presets/opencode/next/agents/ci-investigator.md +5 -2
- package/presets/opencode/next/agents/code-reviewer.md +1 -1
- package/presets/opencode/next/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/next/agents/debugger.md +5 -2
- package/presets/opencode/next/agents/feature-developer.md +11 -8
- package/presets/opencode/next/agents/migration-specialist.md +0 -1
- package/presets/opencode/next/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/next/agents/openspec-author.md +0 -1
- package/presets/opencode/next/agents/performance-auditor.md +0 -1
- package/presets/opencode/next/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/next/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/next/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/next/agents/qa-tester.md +3 -3
- package/presets/opencode/next/agents/security-reviewer.md +0 -1
- package/presets/opencode/next/agents/solution-architect.md +0 -1
- package/presets/opencode/next/agents/task-analyst.md +0 -1
- package/presets/opencode/next/agents/task-router.md +8 -7
- package/presets/opencode/next/agents/tech-writer.md +0 -1
- package/presets/opencode/next/agents/unit-test-generator.md +0 -1
- package/presets/opencode/next/agents/unit-test-healer.md +0 -1
- package/presets/opencode/next/agents/unit-test-planner.md +0 -1
- package/presets/opencode/next/commands/README.md +0 -6
- package/presets/opencode/next/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/next/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/next/rules/feature-delivery-workflow.md +9 -9
- package/presets/opencode/next/rules/post-change-lint.md +11 -15
- package/presets/opencode/next/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/nuxt/OPENCODE.md +2 -45
- package/presets/opencode/nuxt/REPO_AGENTS.md +8 -48
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/build-verifier.md +2 -2
- package/presets/opencode/nuxt/agents/ci-investigator.md +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/nuxt/agents/debugger.md +1 -1
- package/presets/opencode/nuxt/agents/feature-developer.md +3 -3
- package/presets/opencode/nuxt/agents/migration-specialist.md +0 -1
- package/presets/opencode/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/openspec-author.md +0 -1
- package/presets/opencode/nuxt/agents/performance-auditor.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/nuxt/agents/qa-tester.md +3 -3
- package/presets/opencode/nuxt/agents/security-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/solution-architect.md +0 -1
- package/presets/opencode/nuxt/agents/task-analyst.md +0 -1
- package/presets/opencode/nuxt/agents/task-router.md +8 -7
- package/presets/opencode/nuxt/agents/tech-writer.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/nuxt/rules/post-change-lint.md +13 -13
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/php-hexagonal/OPENCODE.md +14 -38
- package/presets/opencode/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/php-laravel/OPENCODE.md +14 -38
- package/presets/opencode/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/plugins/output-guard/README.md +43 -0
- package/presets/opencode/plugins/output-guard/index.ts +306 -0
- package/presets/opencode/plugins/output-guard/ledger.ts +43 -0
- package/presets/opencode/plugins/output-guard/package.json +9 -0
- package/presets/opencode/plugins/output-guard/rewrite.ts +149 -0
- package/presets/opencode/plugins/task-status/economy.ts +112 -0
- package/presets/opencode/plugins/task-status/task-view.ts +86 -20
- package/presets/opencode/plugins/task-status/tui.tsx +19 -5
- package/presets/opencode/plugins/task-status/types.ts +3 -1
- package/presets/opencode/svelte/OPENCODE.md +2 -45
- package/presets/opencode/svelte/REPO_AGENTS.md +8 -48
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/build-verifier.md +2 -2
- package/presets/opencode/svelte/agents/ci-investigator.md +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/svelte/agents/debugger.md +1 -1
- package/presets/opencode/svelte/agents/feature-developer.md +3 -3
- package/presets/opencode/svelte/agents/migration-specialist.md +0 -1
- package/presets/opencode/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/openspec-author.md +0 -1
- package/presets/opencode/svelte/agents/performance-auditor.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/svelte/agents/qa-tester.md +3 -3
- package/presets/opencode/svelte/agents/security-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/solution-architect.md +0 -1
- package/presets/opencode/svelte/agents/task-analyst.md +0 -1
- package/presets/opencode/svelte/agents/task-router.md +8 -7
- package/presets/opencode/svelte/agents/tech-writer.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-generator.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-healer.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-planner.md +0 -1
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/svelte/rules/post-change-lint.md +13 -13
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/go/REPO_AGENTS.md +7 -47
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/go/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/go/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/java/REPO_AGENTS.md +7 -47
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/java/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/java/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/mol/REPO_AGENTS.md +9 -49
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/next/REPO_AGENTS.md +10 -50
- package/presets/zcode/next/adapter-map.json +1 -17
- package/presets/zcode/next/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/next/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/next/agents/build-verifier.md +12 -8
- package/presets/zcode/next/agents/ci-investigator.md +5 -2
- package/presets/zcode/next/agents/code-reviewer.md +1 -1
- package/presets/zcode/next/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/next/agents/debugger.md +5 -2
- package/presets/zcode/next/agents/feature-developer.md +11 -8
- package/presets/zcode/next/agents/migration-specialist.md +0 -1
- package/presets/zcode/next/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/next/agents/openspec-author.md +0 -1
- package/presets/zcode/next/agents/performance-auditor.md +0 -1
- package/presets/zcode/next/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/next/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/next/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/next/agents/qa-tester.md +3 -3
- package/presets/zcode/next/agents/security-reviewer.md +0 -1
- package/presets/zcode/next/agents/solution-architect.md +0 -1
- package/presets/zcode/next/agents/task-analyst.md +0 -1
- package/presets/zcode/next/agents/task-router.md +8 -7
- package/presets/zcode/next/agents/tech-writer.md +0 -1
- package/presets/zcode/next/agents/unit-test-generator.md +0 -1
- package/presets/zcode/next/agents/unit-test-healer.md +0 -1
- package/presets/zcode/next/agents/unit-test-planner.md +0 -1
- package/presets/zcode/next/commands/README.md +0 -6
- package/presets/zcode/next/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/next/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/next/rules/feature-delivery-workflow.md +9 -9
- package/presets/zcode/next/rules/post-change-lint.md +11 -15
- package/presets/zcode/next/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/nuxt/REPO_AGENTS.md +8 -48
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/build-verifier.md +2 -2
- package/presets/zcode/nuxt/agents/ci-investigator.md +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/nuxt/agents/debugger.md +1 -1
- package/presets/zcode/nuxt/agents/feature-developer.md +3 -3
- package/presets/zcode/nuxt/agents/migration-specialist.md +0 -1
- package/presets/zcode/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/openspec-author.md +0 -1
- package/presets/zcode/nuxt/agents/performance-auditor.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/nuxt/agents/qa-tester.md +3 -3
- package/presets/zcode/nuxt/agents/security-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/solution-architect.md +0 -1
- package/presets/zcode/nuxt/agents/task-analyst.md +0 -1
- package/presets/zcode/nuxt/agents/task-router.md +8 -7
- package/presets/zcode/nuxt/agents/tech-writer.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/nuxt/rules/post-change-lint.md +13 -13
- package/presets/zcode/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/svelte/REPO_AGENTS.md +8 -48
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/build-verifier.md +2 -2
- package/presets/zcode/svelte/agents/ci-investigator.md +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/svelte/agents/debugger.md +1 -1
- package/presets/zcode/svelte/agents/feature-developer.md +3 -3
- package/presets/zcode/svelte/agents/migration-specialist.md +0 -1
- package/presets/zcode/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/openspec-author.md +0 -1
- package/presets/zcode/svelte/agents/performance-auditor.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/svelte/agents/qa-tester.md +3 -3
- package/presets/zcode/svelte/agents/security-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/solution-architect.md +0 -1
- package/presets/zcode/svelte/agents/task-analyst.md +0 -1
- package/presets/zcode/svelte/agents/task-router.md +8 -7
- package/presets/zcode/svelte/agents/tech-writer.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-generator.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-healer.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-planner.md +0 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/svelte/rules/post-change-lint.md +13 -13
- package/presets/zcode/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/svelte/skills/unit-testing/SKILL.md +1 -1
- package/scripts/report-context-cost.mjs +432 -0
- package/presets/_shared/ai-local/scripts/team-db-dashboard.mjs +0 -2103
- package/presets/_shared/ai-local/scripts/team-db-ui.mjs +0 -750
- package/presets/claude/next/commands/ui-start.md +0 -78
- package/presets/claude/next/commands/ui-stop.md +0 -71
- package/presets/cursor/next/commands/ui-start.md +0 -78
- package/presets/cursor/next/commands/ui-stop.md +0 -71
- package/presets/mavis/next/commands/ui-start.md +0 -73
- package/presets/mavis/next/commands/ui-stop.md +0 -66
- package/presets/opencode/next/commands/ui-start.md +0 -81
- package/presets/opencode/next/commands/ui-stop.md +0 -74
- package/presets/zcode/next/commands/ui-start.md +0 -81
- package/presets/zcode/next/commands/ui-stop.md +0 -74
|
@@ -51,6 +51,14 @@ export const JOB_ID_PATTERN = '^[a-z0-9]+(?:-[a-z0-9]+)*$';
|
|
|
51
51
|
export const RUN_ID_PATTERN = '^[0-9]{8}T[0-9]{6}Z-[0-9a-f]{8}$';
|
|
52
52
|
export const AGENT_PATTERN = '^[a-z0-9][a-z0-9-]{0,63}$';
|
|
53
53
|
export const INTENT_PATTERN = '^[a-z][a-z0-9-]{0,31}$';
|
|
54
|
+
/** The bench run stamp a `bench/runs/<stamp>/` directory carries. */
|
|
55
|
+
export const EFFICIENCY_RUN_KEY_PATTERN = '^[0-9]{8}T[0-9]{6}Z$';
|
|
56
|
+
/** The six series metrics; the first three read calls, the last three read turns. */
|
|
57
|
+
export const EFFICIENCY_METRICS = ['keptOutBytes', 'tokensTotal', 'costUsd', 'turns', 'calls', 'keptOutRatio'];
|
|
58
|
+
export const EFFICIENCY_GROUPS = ['none', 'tool', 'agent', 'model', 'category'];
|
|
59
|
+
export const EFFICIENCY_BUCKETS = ['day', 'week'];
|
|
60
|
+
/** The fixed distribution edges: half-open bins, the last one unbounded. */
|
|
61
|
+
export const EFFICIENCY_DISTRIBUTION_EDGES = [0, 1024, 8192, 65536, 262144, 1048576];
|
|
54
62
|
|
|
55
63
|
export const TASK_STATES = [
|
|
56
64
|
'in_progress',
|
|
@@ -122,11 +130,6 @@ const errorResponse = (description, headers) => ({
|
|
|
122
130
|
...(headers ? { headers } : {}),
|
|
123
131
|
content: { 'application/json': { schema: ref('ErrorEnvelope') } },
|
|
124
132
|
});
|
|
125
|
-
const assetResponse = (mediaType, description) => ({
|
|
126
|
-
description,
|
|
127
|
-
content: { [mediaType]: { schema: { type: 'string' } } },
|
|
128
|
-
});
|
|
129
|
-
|
|
130
133
|
const methodNotAllowedResponse = errorResponse('The route does not accept this method; the response carries an Allow header', {
|
|
131
134
|
Allow: { description: 'HTTP methods allowed on this path, for example `GET, HEAD`', schema: { type: 'string' } },
|
|
132
135
|
});
|
|
@@ -494,8 +497,9 @@ const schemas = {
|
|
|
494
497
|
['stepIndex', 'attempts', 'durationMs'],
|
|
495
498
|
),
|
|
496
499
|
},
|
|
500
|
+
efficiency: ref('EfficiencyTaskMetrics'),
|
|
497
501
|
},
|
|
498
|
-
['runId', 'eventCounts', 'totalAttemptDurationMs', 'byAgent', 'byStep'],
|
|
502
|
+
['runId', 'eventCounts', 'totalAttemptDurationMs', 'byAgent', 'byStep', 'efficiency'],
|
|
499
503
|
),
|
|
500
504
|
Gate: object(
|
|
501
505
|
{
|
|
@@ -585,8 +589,423 @@ const schemas = {
|
|
|
585
589
|
['total', 'byStatus'],
|
|
586
590
|
),
|
|
587
591
|
events: object({ byType: { type: 'object', additionalProperties: { type: 'integer' } } }, ['byType']),
|
|
592
|
+
efficiency: ref('EfficiencySummary'),
|
|
593
|
+
},
|
|
594
|
+
['tasks', 'attempts', 'durations', 'artifacts', 'events', 'efficiency'],
|
|
595
|
+
),
|
|
596
|
+
EfficiencySummary: object(
|
|
597
|
+
{
|
|
598
|
+
window: object({ from: nullable('string'), to: nullable('string') }, ['from', 'to']),
|
|
599
|
+
calls: object(
|
|
600
|
+
{
|
|
601
|
+
total: { type: 'integer', minimum: 0 },
|
|
602
|
+
replaced: { type: 'integer', minimum: 0 },
|
|
603
|
+
rawBytes: { type: 'integer', minimum: 0 },
|
|
604
|
+
returnedBytes: { type: 'integer', minimum: 0 },
|
|
605
|
+
keptOutBytes: { type: 'integer', minimum: 0 },
|
|
606
|
+
},
|
|
607
|
+
['total', 'replaced', 'rawBytes', 'returnedBytes', 'keptOutBytes'],
|
|
608
|
+
),
|
|
609
|
+
turns: object(
|
|
610
|
+
{
|
|
611
|
+
total: { type: 'integer', minimum: 0 },
|
|
612
|
+
input: { type: 'integer', minimum: 0 },
|
|
613
|
+
output: { type: 'integer', minimum: 0 },
|
|
614
|
+
reasoning: { type: 'integer', minimum: 0 },
|
|
615
|
+
cacheRead: { type: 'integer', minimum: 0 },
|
|
616
|
+
cacheWrite: { type: 'integer', minimum: 0 },
|
|
617
|
+
costUsd: { type: 'number' },
|
|
618
|
+
},
|
|
619
|
+
['total', 'input', 'output', 'reasoning', 'cacheRead', 'cacheWrite', 'costUsd'],
|
|
620
|
+
),
|
|
621
|
+
attempts: object(
|
|
622
|
+
{
|
|
623
|
+
total: { type: 'integer', minimum: 0 },
|
|
624
|
+
measured: { type: 'integer', minimum: 0 },
|
|
625
|
+
hostVerified: { type: 'integer', minimum: 0 },
|
|
626
|
+
coverage: nullable('number'),
|
|
627
|
+
hostVerifiedCoverage: nullable('number'),
|
|
628
|
+
},
|
|
629
|
+
['total', 'measured', 'hostVerified', 'coverage', 'hostVerifiedCoverage'],
|
|
630
|
+
),
|
|
631
|
+
attribution: object(
|
|
632
|
+
{
|
|
633
|
+
sessions: { type: 'integer', minimum: 0 },
|
|
634
|
+
mappedSessions: { type: 'integer', minimum: 0 },
|
|
635
|
+
unmappedCalls: { type: 'integer', minimum: 0 },
|
|
636
|
+
unmappedTurns: { type: 'integer', minimum: 0 },
|
|
637
|
+
},
|
|
638
|
+
['sessions', 'mappedSessions', 'unmappedCalls', 'unmappedTurns'],
|
|
639
|
+
),
|
|
640
|
+
models: {
|
|
641
|
+
type: 'array',
|
|
642
|
+
items: object(
|
|
643
|
+
{
|
|
644
|
+
provider: nullable('string'),
|
|
645
|
+
model: nullable('string'),
|
|
646
|
+
turns: { type: 'integer', minimum: 0 },
|
|
647
|
+
costUsd: { type: 'number' },
|
|
648
|
+
},
|
|
649
|
+
['provider', 'model', 'turns', 'costUsd'],
|
|
650
|
+
),
|
|
651
|
+
},
|
|
652
|
+
abRuns: object(
|
|
653
|
+
{ total: { type: 'integer', minimum: 0 }, latestKey: nullable('string'), latestDecision: nullable('string') },
|
|
654
|
+
['total', 'latestKey', 'latestDecision'],
|
|
655
|
+
),
|
|
656
|
+
generatedAt: { type: 'string' },
|
|
657
|
+
},
|
|
658
|
+
['window', 'calls', 'turns', 'attempts', 'attribution', 'models', 'abRuns', 'generatedAt'],
|
|
659
|
+
),
|
|
660
|
+
EfficiencySeries: object(
|
|
661
|
+
{
|
|
662
|
+
metric: { type: 'string', enum: EFFICIENCY_METRICS },
|
|
663
|
+
bucket: { type: 'string', enum: EFFICIENCY_BUCKETS },
|
|
664
|
+
groupBy: { type: 'string', enum: EFFICIENCY_GROUPS },
|
|
665
|
+
from: { type: 'string' },
|
|
666
|
+
to: { type: 'string' },
|
|
667
|
+
buckets: { type: 'array', items: { type: 'string' } },
|
|
668
|
+
series: {
|
|
669
|
+
type: 'array',
|
|
670
|
+
items: object(
|
|
671
|
+
{
|
|
672
|
+
key: { type: 'string' },
|
|
673
|
+
label: { type: 'string' },
|
|
674
|
+
coverage: nullable('number'),
|
|
675
|
+
points: {
|
|
676
|
+
type: 'array',
|
|
677
|
+
items: object(
|
|
678
|
+
{
|
|
679
|
+
bucket: { type: 'string' },
|
|
680
|
+
value: nullable('number'),
|
|
681
|
+
numerator: nullable('number'),
|
|
682
|
+
denominator: nullable('number'),
|
|
683
|
+
n: { type: 'integer', minimum: 0 },
|
|
684
|
+
},
|
|
685
|
+
['bucket', 'value', 'numerator', 'denominator', 'n'],
|
|
686
|
+
),
|
|
687
|
+
},
|
|
688
|
+
},
|
|
689
|
+
['key', 'label', 'coverage', 'points'],
|
|
690
|
+
),
|
|
691
|
+
},
|
|
692
|
+
totals: object(
|
|
693
|
+
{ value: nullable('number'), numerator: nullable('number'), denominator: nullable('number') },
|
|
694
|
+
['value', 'numerator', 'denominator'],
|
|
695
|
+
),
|
|
696
|
+
truncated: { type: 'boolean' },
|
|
697
|
+
},
|
|
698
|
+
['metric', 'bucket', 'groupBy', 'from', 'to', 'buckets', 'series', 'totals', 'truncated'],
|
|
699
|
+
),
|
|
700
|
+
EfficiencyToolBreakdown: object(
|
|
701
|
+
{
|
|
702
|
+
from: { type: 'string' },
|
|
703
|
+
to: { type: 'string' },
|
|
704
|
+
items: {
|
|
705
|
+
type: 'array',
|
|
706
|
+
items: object(
|
|
707
|
+
{
|
|
708
|
+
tool: { type: 'string' },
|
|
709
|
+
category: { type: 'string' },
|
|
710
|
+
calls: { type: 'integer', minimum: 0 },
|
|
711
|
+
rawBytes: { type: 'integer', minimum: 0 },
|
|
712
|
+
returnedBytes: { type: 'integer', minimum: 0 },
|
|
713
|
+
keptOutBytes: { type: 'integer', minimum: 0 },
|
|
714
|
+
replaced: { type: 'integer', minimum: 0 },
|
|
715
|
+
keptOutRatio: { type: 'number', minimum: 0 },
|
|
716
|
+
},
|
|
717
|
+
['tool', 'category', 'calls', 'rawBytes', 'returnedBytes', 'keptOutBytes', 'replaced', 'keptOutRatio'],
|
|
718
|
+
),
|
|
719
|
+
},
|
|
720
|
+
totals: object(
|
|
721
|
+
{
|
|
722
|
+
calls: { type: 'integer', minimum: 0 },
|
|
723
|
+
rawBytes: { type: 'integer', minimum: 0 },
|
|
724
|
+
returnedBytes: { type: 'integer', minimum: 0 },
|
|
725
|
+
keptOutBytes: { type: 'integer', minimum: 0 },
|
|
726
|
+
replaced: { type: 'integer', minimum: 0 },
|
|
727
|
+
},
|
|
728
|
+
['calls', 'rawBytes', 'returnedBytes', 'keptOutBytes', 'replaced'],
|
|
729
|
+
),
|
|
730
|
+
otherCalls: { type: 'integer', minimum: 0 },
|
|
731
|
+
},
|
|
732
|
+
['from', 'to', 'items', 'totals', 'otherCalls'],
|
|
733
|
+
),
|
|
734
|
+
EfficiencyDistribution: object(
|
|
735
|
+
{
|
|
736
|
+
metric: { type: 'string', enum: ['rawBytes'] },
|
|
737
|
+
from: { type: 'string' },
|
|
738
|
+
to: { type: 'string' },
|
|
739
|
+
calls: { type: 'integer', minimum: 0 },
|
|
740
|
+
p50: { type: 'number', minimum: 0 },
|
|
741
|
+
p90: { type: 'number', minimum: 0 },
|
|
742
|
+
p95: { type: 'number', minimum: 0 },
|
|
743
|
+
max: { type: 'number', minimum: 0 },
|
|
744
|
+
edges: { type: 'array', items: { type: 'integer', minimum: 0 } },
|
|
745
|
+
histogram: {
|
|
746
|
+
type: 'array',
|
|
747
|
+
items: object(
|
|
748
|
+
{ from: { type: 'integer', minimum: 0 }, to: nullable('integer'), calls: { type: 'integer', minimum: 0 } },
|
|
749
|
+
['from', 'to', 'calls'],
|
|
750
|
+
),
|
|
751
|
+
},
|
|
752
|
+
},
|
|
753
|
+
['metric', 'from', 'to', 'calls', 'p50', 'p90', 'p95', 'max', 'edges', 'histogram'],
|
|
754
|
+
),
|
|
755
|
+
EfficiencyAbRun: object(
|
|
756
|
+
{
|
|
757
|
+
runKey: { type: 'string', pattern: EFFICIENCY_RUN_KEY_PATTERN },
|
|
758
|
+
generatedAt: { type: 'string' },
|
|
759
|
+
model: { type: 'string' },
|
|
760
|
+
runsPerCell: { type: 'integer', minimum: 0 },
|
|
761
|
+
thresholdBytes: { type: 'integer', minimum: 0 },
|
|
762
|
+
schemaVersion: { type: 'integer', minimum: 0 },
|
|
763
|
+
decision: { type: 'string', enum: ['adopt', 'reject', 'inconclusive'] },
|
|
764
|
+
reason: nullable('string'),
|
|
765
|
+
qualityPassed: { type: 'integer', minimum: 0 },
|
|
766
|
+
qualityTotal: { type: 'integer', minimum: 0 },
|
|
767
|
+
qualityRate: { type: 'number' },
|
|
768
|
+
taskCount: { type: 'integer', minimum: 0 },
|
|
769
|
+
tokensOff: nullable('number'),
|
|
770
|
+
tokensOn: nullable('number'),
|
|
771
|
+
costOff: nullable('number'),
|
|
772
|
+
costOn: nullable('number'),
|
|
773
|
+
bytesOff: nullable('number'),
|
|
774
|
+
bytesOn: nullable('number'),
|
|
775
|
+
tokensDeltaPct: nullable('number'),
|
|
776
|
+
costDeltaPct: nullable('number'),
|
|
777
|
+
cells: {
|
|
778
|
+
type: 'array',
|
|
779
|
+
items: object(
|
|
780
|
+
{
|
|
781
|
+
taskId: { type: 'string' },
|
|
782
|
+
arm: { type: 'string', enum: ['off', 'on'] },
|
|
783
|
+
medianTokens: { type: 'number' },
|
|
784
|
+
medianCostUsd: { type: 'number' },
|
|
785
|
+
medianRawBytes: { type: 'number' },
|
|
786
|
+
medianReturnedBytes: { type: 'number' },
|
|
787
|
+
medianTurns: { type: 'number' },
|
|
788
|
+
passed: { type: 'integer', minimum: 0 },
|
|
789
|
+
total: { type: 'integer', minimum: 0 },
|
|
790
|
+
},
|
|
791
|
+
[
|
|
792
|
+
'taskId',
|
|
793
|
+
'arm',
|
|
794
|
+
'medianTokens',
|
|
795
|
+
'medianCostUsd',
|
|
796
|
+
'medianRawBytes',
|
|
797
|
+
'medianReturnedBytes',
|
|
798
|
+
'medianTurns',
|
|
799
|
+
'passed',
|
|
800
|
+
'total',
|
|
801
|
+
],
|
|
802
|
+
),
|
|
803
|
+
},
|
|
804
|
+
},
|
|
805
|
+
[
|
|
806
|
+
'runKey',
|
|
807
|
+
'generatedAt',
|
|
808
|
+
'model',
|
|
809
|
+
'runsPerCell',
|
|
810
|
+
'thresholdBytes',
|
|
811
|
+
'schemaVersion',
|
|
812
|
+
'decision',
|
|
813
|
+
'reason',
|
|
814
|
+
'qualityPassed',
|
|
815
|
+
'qualityTotal',
|
|
816
|
+
'qualityRate',
|
|
817
|
+
'taskCount',
|
|
818
|
+
'tokensOff',
|
|
819
|
+
'tokensOn',
|
|
820
|
+
'costOff',
|
|
821
|
+
'costOn',
|
|
822
|
+
'bytesOff',
|
|
823
|
+
'bytesOn',
|
|
824
|
+
'tokensDeltaPct',
|
|
825
|
+
'costDeltaPct',
|
|
826
|
+
'cells',
|
|
827
|
+
],
|
|
828
|
+
),
|
|
829
|
+
EfficiencyAbRunList: object(
|
|
830
|
+
{
|
|
831
|
+
items: {
|
|
832
|
+
type: 'array',
|
|
833
|
+
items: object(
|
|
834
|
+
{
|
|
835
|
+
runKey: { type: 'string', pattern: EFFICIENCY_RUN_KEY_PATTERN },
|
|
836
|
+
generatedAt: { type: 'string' },
|
|
837
|
+
model: { type: 'string' },
|
|
838
|
+
runsPerCell: { type: 'integer', minimum: 0 },
|
|
839
|
+
thresholdBytes: { type: 'integer', minimum: 0 },
|
|
840
|
+
schemaVersion: { type: 'integer', minimum: 0 },
|
|
841
|
+
decision: { type: 'string', enum: ['adopt', 'reject', 'inconclusive'] },
|
|
842
|
+
reason: nullable('string'),
|
|
843
|
+
qualityPassed: { type: 'integer', minimum: 0 },
|
|
844
|
+
qualityTotal: { type: 'integer', minimum: 0 },
|
|
845
|
+
qualityRate: { type: 'number' },
|
|
846
|
+
taskCount: { type: 'integer', minimum: 0 },
|
|
847
|
+
tokensOff: nullable('number'),
|
|
848
|
+
tokensOn: nullable('number'),
|
|
849
|
+
costOff: nullable('number'),
|
|
850
|
+
costOn: nullable('number'),
|
|
851
|
+
bytesOff: nullable('number'),
|
|
852
|
+
bytesOn: nullable('number'),
|
|
853
|
+
tokensDeltaPct: nullable('number'),
|
|
854
|
+
costDeltaPct: nullable('number'),
|
|
855
|
+
},
|
|
856
|
+
[
|
|
857
|
+
'runKey',
|
|
858
|
+
'generatedAt',
|
|
859
|
+
'model',
|
|
860
|
+
'runsPerCell',
|
|
861
|
+
'thresholdBytes',
|
|
862
|
+
'schemaVersion',
|
|
863
|
+
'decision',
|
|
864
|
+
'reason',
|
|
865
|
+
'qualityPassed',
|
|
866
|
+
'qualityTotal',
|
|
867
|
+
'qualityRate',
|
|
868
|
+
'taskCount',
|
|
869
|
+
'tokensOff',
|
|
870
|
+
'tokensOn',
|
|
871
|
+
'costOff',
|
|
872
|
+
'costOn',
|
|
873
|
+
'bytesOff',
|
|
874
|
+
'bytesOn',
|
|
875
|
+
'tokensDeltaPct',
|
|
876
|
+
'costDeltaPct',
|
|
877
|
+
],
|
|
878
|
+
),
|
|
879
|
+
},
|
|
880
|
+
total: { type: 'integer', minimum: 0 },
|
|
881
|
+
limit: { type: 'integer', minimum: 1, maximum: 200 },
|
|
882
|
+
offset: { type: 'integer', minimum: 0 },
|
|
883
|
+
nextOffset: nullable('integer'),
|
|
884
|
+
},
|
|
885
|
+
['items', 'total', 'limit', 'offset', 'nextOffset'],
|
|
886
|
+
),
|
|
887
|
+
EfficiencyContextCost: object(
|
|
888
|
+
{
|
|
889
|
+
snapshotAt: nullable('string'),
|
|
890
|
+
hosts: {
|
|
891
|
+
type: 'array',
|
|
892
|
+
items: object(
|
|
893
|
+
{
|
|
894
|
+
host: { type: 'string' },
|
|
895
|
+
rule: nullable('string'),
|
|
896
|
+
alwaysOnFiles: { type: 'integer', minimum: 0 },
|
|
897
|
+
alwaysOnBytes: { type: 'integer', minimum: 0 },
|
|
898
|
+
estimatedBytesPerFourTokens: { type: 'integer', minimum: 0 },
|
|
899
|
+
estimatedTokens: { type: 'integer', minimum: 0 },
|
|
900
|
+
},
|
|
901
|
+
['host', 'rule', 'alwaysOnFiles', 'alwaysOnBytes', 'estimatedBytesPerFourTokens', 'estimatedTokens'],
|
|
902
|
+
),
|
|
903
|
+
},
|
|
904
|
+
tasks: {
|
|
905
|
+
type: 'array',
|
|
906
|
+
items: object(
|
|
907
|
+
{
|
|
908
|
+
slug: { type: 'string' },
|
|
909
|
+
files: { type: 'integer', minimum: 0 },
|
|
910
|
+
bytes: { type: 'integer', minimum: 0 },
|
|
911
|
+
},
|
|
912
|
+
['slug', 'files', 'bytes'],
|
|
913
|
+
),
|
|
914
|
+
},
|
|
915
|
+
},
|
|
916
|
+
['snapshotAt', 'hosts', 'tasks'],
|
|
917
|
+
),
|
|
918
|
+
EfficiencyTaskMetrics: object(
|
|
919
|
+
{
|
|
920
|
+
attemptsTotal: { type: 'integer', minimum: 0 },
|
|
921
|
+
attemptsMeasured: { type: 'integer', minimum: 0 },
|
|
922
|
+
coverage: nullable('number'),
|
|
923
|
+
tokens: {
|
|
924
|
+
oneOf: [
|
|
925
|
+
object(
|
|
926
|
+
{
|
|
927
|
+
input: nullable('integer'),
|
|
928
|
+
output: nullable('integer'),
|
|
929
|
+
reasoning: nullable('integer'),
|
|
930
|
+
cacheRead: nullable('integer'),
|
|
931
|
+
cacheWrite: nullable('integer'),
|
|
932
|
+
},
|
|
933
|
+
['input', 'output', 'reasoning', 'cacheRead', 'cacheWrite'],
|
|
934
|
+
),
|
|
935
|
+
{ type: 'null' },
|
|
936
|
+
],
|
|
937
|
+
},
|
|
938
|
+
costUsd: nullable('number'),
|
|
939
|
+
durationMs: { type: 'integer', minimum: 0 },
|
|
940
|
+
byAgent: {
|
|
941
|
+
type: 'array',
|
|
942
|
+
items: object(
|
|
943
|
+
{
|
|
944
|
+
agent: nullable('string'),
|
|
945
|
+
attempts: { type: 'integer', minimum: 0 },
|
|
946
|
+
durationMs: { type: 'integer', minimum: 0 },
|
|
947
|
+
tokens: {
|
|
948
|
+
oneOf: [
|
|
949
|
+
object(
|
|
950
|
+
{
|
|
951
|
+
input: nullable('integer'),
|
|
952
|
+
output: nullable('integer'),
|
|
953
|
+
reasoning: nullable('integer'),
|
|
954
|
+
cacheRead: nullable('integer'),
|
|
955
|
+
cacheWrite: nullable('integer'),
|
|
956
|
+
},
|
|
957
|
+
['input', 'output', 'reasoning', 'cacheRead', 'cacheWrite'],
|
|
958
|
+
),
|
|
959
|
+
{ type: 'null' },
|
|
960
|
+
],
|
|
961
|
+
},
|
|
962
|
+
costUsd: nullable('number'),
|
|
963
|
+
measured: { type: 'integer', minimum: 0 },
|
|
964
|
+
},
|
|
965
|
+
['agent', 'attempts', 'durationMs', 'tokens', 'costUsd', 'measured'],
|
|
966
|
+
),
|
|
967
|
+
},
|
|
968
|
+
byStep: {
|
|
969
|
+
type: 'array',
|
|
970
|
+
items: object(
|
|
971
|
+
{
|
|
972
|
+
stepIndex: nullable('integer'),
|
|
973
|
+
attempts: { type: 'integer', minimum: 0 },
|
|
974
|
+
durationMs: { type: 'integer', minimum: 0 },
|
|
975
|
+
tokens: {
|
|
976
|
+
oneOf: [
|
|
977
|
+
object(
|
|
978
|
+
{
|
|
979
|
+
input: nullable('integer'),
|
|
980
|
+
output: nullable('integer'),
|
|
981
|
+
reasoning: nullable('integer'),
|
|
982
|
+
cacheRead: nullable('integer'),
|
|
983
|
+
cacheWrite: nullable('integer'),
|
|
984
|
+
},
|
|
985
|
+
['input', 'output', 'reasoning', 'cacheRead', 'cacheWrite'],
|
|
986
|
+
),
|
|
987
|
+
{ type: 'null' },
|
|
988
|
+
],
|
|
989
|
+
},
|
|
990
|
+
costUsd: nullable('number'),
|
|
991
|
+
measured: { type: 'integer', minimum: 0 },
|
|
992
|
+
},
|
|
993
|
+
['stepIndex', 'attempts', 'durationMs', 'tokens', 'costUsd', 'measured'],
|
|
994
|
+
),
|
|
995
|
+
},
|
|
996
|
+
gates: {
|
|
997
|
+
type: 'array',
|
|
998
|
+
items: object(
|
|
999
|
+
{
|
|
1000
|
+
startEventId: { type: 'string' },
|
|
1001
|
+
durationMs: nullable('integer'),
|
|
1002
|
+
outcome: { type: 'string', enum: ['advanced_to_done', 'rework', 're_gated', 'open', 'unknown'] },
|
|
1003
|
+
},
|
|
1004
|
+
['startEventId', 'durationMs', 'outcome'],
|
|
1005
|
+
),
|
|
1006
|
+
},
|
|
588
1007
|
},
|
|
589
|
-
['
|
|
1008
|
+
['attemptsTotal', 'attemptsMeasured', 'coverage', 'tokens', 'costUsd', 'durationMs', 'byAgent', 'byStep', 'gates'],
|
|
590
1009
|
),
|
|
591
1010
|
SyncRun: object(
|
|
592
1011
|
{
|
|
@@ -1526,7 +1945,7 @@ const trackerItemExample = {
|
|
|
1526
1945
|
labels: ['tracker', 'ui'],
|
|
1527
1946
|
history: [trackerHistoryExample],
|
|
1528
1947
|
dependsOn: [2],
|
|
1529
|
-
sourceTask: 'task-tracker-
|
|
1948
|
+
sourceTask: 'task-tracker-impl',
|
|
1530
1949
|
sourceRefs: ['AC-5', 'WP7'],
|
|
1531
1950
|
createdAt: '2026-11-10T09:00:00.000Z',
|
|
1532
1951
|
updatedAt: '2026-11-12T10:00:00.000Z',
|
|
@@ -1554,7 +1973,7 @@ const trackerItemSummaryExample = {
|
|
|
1554
1973
|
dependsOn: [2],
|
|
1555
1974
|
waitingOn: [],
|
|
1556
1975
|
ready: true,
|
|
1557
|
-
sourceTask: 'task-tracker-
|
|
1976
|
+
sourceTask: 'task-tracker-impl',
|
|
1558
1977
|
sourceRefs: ['AC-5', 'WP7'],
|
|
1559
1978
|
taskState: null,
|
|
1560
1979
|
createdAt: '2026-11-10T09:00:00.000Z',
|
|
@@ -1568,7 +1987,7 @@ const trackerCreateRequestExample = {
|
|
|
1568
1987
|
title: 'Ship the tracker operator UI',
|
|
1569
1988
|
dependsOn: [2],
|
|
1570
1989
|
priority: 2,
|
|
1571
|
-
sourceTask: 'task-tracker-
|
|
1990
|
+
sourceTask: 'task-tracker-impl',
|
|
1572
1991
|
sourceRefs: ['AC-5', 'WP7'],
|
|
1573
1992
|
type: 'feature',
|
|
1574
1993
|
description: 'The /tracker list and the /tracker/[id] detail over the existing proxy.',
|
|
@@ -1591,6 +2010,220 @@ const trackerEnqueueRequestExample = {
|
|
|
1591
2010
|
command: '/task ship-tracker-ui',
|
|
1592
2011
|
};
|
|
1593
2012
|
|
|
2013
|
+
const efficiencySummaryExample = {
|
|
2014
|
+
window: { from: null, to: null },
|
|
2015
|
+
calls: { total: 880, replaced: 45, rawBytes: 41234567, returnedBytes: 9876543, keptOutBytes: 31358024 },
|
|
2016
|
+
turns: {
|
|
2017
|
+
total: 736,
|
|
2018
|
+
input: 870978,
|
|
2019
|
+
output: 143221,
|
|
2020
|
+
reasoning: 55210,
|
|
2021
|
+
cacheRead: 124739072,
|
|
2022
|
+
cacheWrite: 98211,
|
|
2023
|
+
costUsd: 12.4312,
|
|
2024
|
+
},
|
|
2025
|
+
attempts: {
|
|
2026
|
+
total: 120,
|
|
2027
|
+
measured: 118,
|
|
2028
|
+
hostVerified: 110,
|
|
2029
|
+
coverage: 0.9833,
|
|
2030
|
+
hostVerifiedCoverage: 0.9167,
|
|
2031
|
+
},
|
|
2032
|
+
attribution: { sessions: 7, mappedSessions: 6, unmappedCalls: 122, unmappedTurns: 98 },
|
|
2033
|
+
models: [{ provider: 'deepseek', model: 'deepseek-flash', turns: 512, costUsd: 9.75 }],
|
|
2034
|
+
abRuns: { total: 2, latestKey: '20261113T180000Z', latestDecision: 'adopt' },
|
|
2035
|
+
generatedAt: '2026-11-14T08:00:00.000Z',
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
const efficiencySeriesExample = {
|
|
2039
|
+
metric: 'keptOutBytes',
|
|
2040
|
+
bucket: 'day',
|
|
2041
|
+
groupBy: 'none',
|
|
2042
|
+
from: '2026-11-12T00:00:00.000Z',
|
|
2043
|
+
to: '2026-11-14T00:00:00.000Z',
|
|
2044
|
+
buckets: ['2026-11-12', '2026-11-13', '2026-11-14'],
|
|
2045
|
+
series: [
|
|
2046
|
+
{
|
|
2047
|
+
key: '',
|
|
2048
|
+
label: '',
|
|
2049
|
+
coverage: null,
|
|
2050
|
+
points: [
|
|
2051
|
+
{ bucket: '2026-11-12', value: 1200, numerator: 1200, denominator: null, n: 4 },
|
|
2052
|
+
{ bucket: '2026-11-13', value: null, numerator: null, denominator: null, n: 0 },
|
|
2053
|
+
{ bucket: '2026-11-14', value: 800, numerator: 800, denominator: null, n: 2 },
|
|
2054
|
+
],
|
|
2055
|
+
},
|
|
2056
|
+
],
|
|
2057
|
+
totals: { value: 2000, numerator: 2000, denominator: null },
|
|
2058
|
+
truncated: false,
|
|
2059
|
+
};
|
|
2060
|
+
|
|
2061
|
+
const efficiencyToolBreakdownExample = {
|
|
2062
|
+
from: '2026-11-01T00:00:00.000Z',
|
|
2063
|
+
to: '2026-11-14T00:00:00.000Z',
|
|
2064
|
+
items: [
|
|
2065
|
+
{
|
|
2066
|
+
tool: 'shell',
|
|
2067
|
+
category: 'command',
|
|
2068
|
+
calls: 120,
|
|
2069
|
+
rawBytes: 900000,
|
|
2070
|
+
returnedBytes: 180000,
|
|
2071
|
+
keptOutBytes: 720000,
|
|
2072
|
+
replaced: 12,
|
|
2073
|
+
keptOutRatio: 0.8,
|
|
2074
|
+
},
|
|
2075
|
+
],
|
|
2076
|
+
totals: { calls: 120, rawBytes: 900000, returnedBytes: 180000, keptOutBytes: 720000, replaced: 12 },
|
|
2077
|
+
otherCalls: 0,
|
|
2078
|
+
};
|
|
2079
|
+
|
|
2080
|
+
const efficiencyDistributionExample = {
|
|
2081
|
+
metric: 'rawBytes',
|
|
2082
|
+
from: '2026-11-01T00:00:00.000Z',
|
|
2083
|
+
to: '2026-11-14T00:00:00.000Z',
|
|
2084
|
+
calls: 880,
|
|
2085
|
+
p50: 2048,
|
|
2086
|
+
p90: 16384,
|
|
2087
|
+
p95: 32768,
|
|
2088
|
+
max: 524288,
|
|
2089
|
+
edges: EFFICIENCY_DISTRIBUTION_EDGES,
|
|
2090
|
+
histogram: [
|
|
2091
|
+
{ from: 0, to: 1024, calls: 210 },
|
|
2092
|
+
{ from: 1024, to: 8192, calls: 420 },
|
|
2093
|
+
{ from: 8192, to: 65536, calls: 220 },
|
|
2094
|
+
{ from: 65536, to: 262144, calls: 20 },
|
|
2095
|
+
{ from: 262144, to: 1048576, calls: 10 },
|
|
2096
|
+
{ from: 1048576, to: null, calls: 0 },
|
|
2097
|
+
],
|
|
2098
|
+
};
|
|
2099
|
+
|
|
2100
|
+
const efficiencyAbRunRowExample = {
|
|
2101
|
+
runKey: '20261113T180000Z',
|
|
2102
|
+
generatedAt: '2026-11-13T18:00:00.000Z',
|
|
2103
|
+
model: 'deepseek/deepseek-flash',
|
|
2104
|
+
runsPerCell: 5,
|
|
2105
|
+
thresholdBytes: 8192,
|
|
2106
|
+
schemaVersion: 1,
|
|
2107
|
+
decision: 'adopt',
|
|
2108
|
+
reason: 'kept-out bytes fall with no token or quality regression',
|
|
2109
|
+
qualityPassed: 10,
|
|
2110
|
+
qualityTotal: 10,
|
|
2111
|
+
qualityRate: 1,
|
|
2112
|
+
taskCount: 1,
|
|
2113
|
+
tokensOff: 120000,
|
|
2114
|
+
tokensOn: 118000,
|
|
2115
|
+
costOff: 1.2,
|
|
2116
|
+
costOn: 1.1,
|
|
2117
|
+
bytesOff: 900000,
|
|
2118
|
+
bytesOn: 400000,
|
|
2119
|
+
tokensDeltaPct: -1.6667,
|
|
2120
|
+
costDeltaPct: -8.3333,
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
const efficiencyAbRunExample = {
|
|
2124
|
+
...efficiencyAbRunRowExample,
|
|
2125
|
+
cells: [
|
|
2126
|
+
{
|
|
2127
|
+
taskId: 'agent-team-sqlite-dashboard',
|
|
2128
|
+
arm: 'off',
|
|
2129
|
+
medianTokens: 120000,
|
|
2130
|
+
medianCostUsd: 1.2,
|
|
2131
|
+
medianRawBytes: 900000,
|
|
2132
|
+
medianReturnedBytes: 180000,
|
|
2133
|
+
medianTurns: 12,
|
|
2134
|
+
passed: 5,
|
|
2135
|
+
total: 5,
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
taskId: 'agent-team-sqlite-dashboard',
|
|
2139
|
+
arm: 'on',
|
|
2140
|
+
medianTokens: 118000,
|
|
2141
|
+
medianCostUsd: 1.1,
|
|
2142
|
+
medianRawBytes: 400000,
|
|
2143
|
+
medianReturnedBytes: 120000,
|
|
2144
|
+
medianTurns: 12,
|
|
2145
|
+
passed: 5,
|
|
2146
|
+
total: 5,
|
|
2147
|
+
},
|
|
2148
|
+
],
|
|
2149
|
+
};
|
|
2150
|
+
|
|
2151
|
+
const efficiencyContextCostExample = {
|
|
2152
|
+
snapshotAt: '2026-11-13T03:00:00.000Z',
|
|
2153
|
+
hosts: [
|
|
2154
|
+
{
|
|
2155
|
+
host: 'opencode',
|
|
2156
|
+
rule: 'opencode.json instructions',
|
|
2157
|
+
alwaysOnFiles: 8,
|
|
2158
|
+
alwaysOnBytes: 41234,
|
|
2159
|
+
estimatedBytesPerFourTokens: 10309,
|
|
2160
|
+
estimatedTokens: 10309,
|
|
2161
|
+
},
|
|
2162
|
+
],
|
|
2163
|
+
tasks: [{ slug: 'agent-team-sqlite-dashboard', files: 18, bytes: 240000 }],
|
|
2164
|
+
};
|
|
2165
|
+
|
|
2166
|
+
const efficiencyTaskMetricsExample = {
|
|
2167
|
+
attemptsTotal: 3,
|
|
2168
|
+
attemptsMeasured: 1,
|
|
2169
|
+
coverage: 0.3333,
|
|
2170
|
+
tokens: { input: 100, output: 20, reasoning: 5, cacheRead: 1000, cacheWrite: 7 },
|
|
2171
|
+
costUsd: 0.25,
|
|
2172
|
+
durationMs: 2284854,
|
|
2173
|
+
byAgent: [
|
|
2174
|
+
{
|
|
2175
|
+
agent: 'solution-architect',
|
|
2176
|
+
attempts: 1,
|
|
2177
|
+
durationMs: 651807,
|
|
2178
|
+
tokens: { input: 100, output: 20, reasoning: 5, cacheRead: 1000, cacheWrite: 7 },
|
|
2179
|
+
costUsd: 0.25,
|
|
2180
|
+
measured: 1,
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
agent: 'feature-developer',
|
|
2184
|
+
attempts: 2,
|
|
2185
|
+
durationMs: 1633047,
|
|
2186
|
+
tokens: null,
|
|
2187
|
+
costUsd: null,
|
|
2188
|
+
measured: 0,
|
|
2189
|
+
},
|
|
2190
|
+
],
|
|
2191
|
+
byStep: [
|
|
2192
|
+
{
|
|
2193
|
+
stepIndex: 1,
|
|
2194
|
+
attempts: 1,
|
|
2195
|
+
durationMs: 651807,
|
|
2196
|
+
tokens: { input: 100, output: 20, reasoning: 5, cacheRead: 1000, cacheWrite: 7 },
|
|
2197
|
+
costUsd: 0.25,
|
|
2198
|
+
measured: 1,
|
|
2199
|
+
},
|
|
2200
|
+
],
|
|
2201
|
+
gates: [
|
|
2202
|
+
{ startEventId: 'agent-team-sqlite-dashboard:gate:1793949615226', durationMs: 40175, outcome: 'advanced_to_done' },
|
|
2203
|
+
],
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
const efficiencyTaskMetricsAbsentExample = {
|
|
2207
|
+
attemptsTotal: 2,
|
|
2208
|
+
attemptsMeasured: 0,
|
|
2209
|
+
coverage: 0,
|
|
2210
|
+
tokens: null,
|
|
2211
|
+
costUsd: null,
|
|
2212
|
+
durationMs: 900000,
|
|
2213
|
+
byAgent: [
|
|
2214
|
+
{
|
|
2215
|
+
agent: 'feature-developer',
|
|
2216
|
+
attempts: 2,
|
|
2217
|
+
durationMs: 900000,
|
|
2218
|
+
tokens: null,
|
|
2219
|
+
costUsd: null,
|
|
2220
|
+
measured: 0,
|
|
2221
|
+
},
|
|
2222
|
+
],
|
|
2223
|
+
byStep: [],
|
|
2224
|
+
gates: [],
|
|
2225
|
+
};
|
|
2226
|
+
|
|
1594
2227
|
const EXAMPLES = {
|
|
1595
2228
|
ErrorEnvelope: [{ error: { code: 'E_VALIDATION', message: 'limit must be an integer between 1 and 200', details: { parameter: 'limit' } } }],
|
|
1596
2229
|
TaskSummary: [taskSummaryExample],
|
|
@@ -1654,8 +2287,17 @@ const EXAMPLES = {
|
|
|
1654
2287
|
totalAttemptDurationMs: 2284854,
|
|
1655
2288
|
byAgent: [{ agent: 'solution-architect', attempts: 1, durationMs: 651807 }],
|
|
1656
2289
|
byStep: [{ stepIndex: 1, attempts: 1, durationMs: 651807 }],
|
|
2290
|
+
efficiency: efficiencyTaskMetricsExample,
|
|
1657
2291
|
},
|
|
1658
2292
|
],
|
|
2293
|
+
EfficiencySummary: [efficiencySummaryExample],
|
|
2294
|
+
EfficiencySeries: [efficiencySeriesExample],
|
|
2295
|
+
EfficiencyToolBreakdown: [efficiencyToolBreakdownExample],
|
|
2296
|
+
EfficiencyDistribution: [efficiencyDistributionExample],
|
|
2297
|
+
EfficiencyAbRun: [efficiencyAbRunExample],
|
|
2298
|
+
EfficiencyAbRunList: [{ items: [efficiencyAbRunRowExample], total: 1, limit: 50, offset: 0, nextOffset: null }],
|
|
2299
|
+
EfficiencyContextCost: [efficiencyContextCostExample],
|
|
2300
|
+
EfficiencyTaskMetrics: [efficiencyTaskMetricsExample, efficiencyTaskMetricsAbsentExample],
|
|
1659
2301
|
GateList: [
|
|
1660
2302
|
{
|
|
1661
2303
|
items: [{ startEventId: 'agent-team-sqlite-dashboard:gate:1793949615226', startedAt: '2026-11-06T07:20:15.209Z', endedAt: '2026-11-06T07:20:55.384Z', durationMs: 40175, derived: true }],
|
|
@@ -1683,6 +2325,7 @@ const EXAMPLES = {
|
|
|
1683
2325
|
durations: { totalAttemptMs: 123456789, p50Ms: 120000, p95Ms: 900000 },
|
|
1684
2326
|
artifacts: { total: 300, byStatus: { completed: 280 } },
|
|
1685
2327
|
events: { byType: { attempt_finished: 410 } },
|
|
2328
|
+
efficiency: efficiencySummaryExample,
|
|
1686
2329
|
},
|
|
1687
2330
|
],
|
|
1688
2331
|
SyncRunList: [{ items: [syncRunExample], total: 1, limit: 50, offset: 0, nextOffset: null }],
|
|
@@ -2022,6 +2665,7 @@ const EXAMPLES = {
|
|
|
2022
2665
|
totalAttemptDurationMs: 651807,
|
|
2023
2666
|
byAgent: [{ agent: 'solution-architect', attempts: 1, durationMs: 651807 }],
|
|
2024
2667
|
byStep: [{ stepIndex: 1, attempts: 1, durationMs: 651807 }],
|
|
2668
|
+
efficiency: efficiencyTaskMetricsExample,
|
|
2025
2669
|
},
|
|
2026
2670
|
documents: [
|
|
2027
2671
|
{
|
|
@@ -2333,6 +2977,73 @@ const documentContentParameters = [
|
|
|
2333
2977
|
},
|
|
2334
2978
|
];
|
|
2335
2979
|
|
|
2980
|
+
const efficiencyFromParameter = {
|
|
2981
|
+
name: 'from',
|
|
2982
|
+
in: 'query',
|
|
2983
|
+
description: 'Window start as an ISO 8601 instant, included by its UTC day. Default: 30 days before `to`.',
|
|
2984
|
+
required: false,
|
|
2985
|
+
schema: { type: 'string' },
|
|
2986
|
+
};
|
|
2987
|
+
const efficiencyToParameter = {
|
|
2988
|
+
name: 'to',
|
|
2989
|
+
in: 'query',
|
|
2990
|
+
description: 'Window end as an ISO 8601 instant, included by its UTC day. Default: now.',
|
|
2991
|
+
required: false,
|
|
2992
|
+
schema: { type: 'string' },
|
|
2993
|
+
};
|
|
2994
|
+
const efficiencyBucketParameter = {
|
|
2995
|
+
name: 'bucket',
|
|
2996
|
+
in: 'query',
|
|
2997
|
+
description: 'Axis grain. `week` buckets start on the Monday of the ISO week.',
|
|
2998
|
+
required: false,
|
|
2999
|
+
schema: { type: 'string', enum: EFFICIENCY_BUCKETS, default: 'day' },
|
|
3000
|
+
};
|
|
3001
|
+
const efficiencyMetricParameter = {
|
|
3002
|
+
name: 'metric',
|
|
3003
|
+
in: 'query',
|
|
3004
|
+
description:
|
|
3005
|
+
'The measured series. `keptOutBytes`, `keptOutRatio` and `calls` read calls; `tokensTotal`, `costUsd` and `turns` read turns. A group facet the metric cannot express is refused with 422.',
|
|
3006
|
+
required: false,
|
|
3007
|
+
schema: { type: 'string', enum: EFFICIENCY_METRICS, default: 'keptOutBytes' },
|
|
3008
|
+
};
|
|
3009
|
+
const efficiencyGroupByParameter = {
|
|
3010
|
+
name: 'groupBy',
|
|
3011
|
+
in: 'query',
|
|
3012
|
+
description:
|
|
3013
|
+
'One series per key. `none` emits one series with an empty key; the call metrics accept `tool` and `category`, the turn metrics `agent` and `model`.',
|
|
3014
|
+
required: false,
|
|
3015
|
+
schema: { type: 'string', enum: EFFICIENCY_GROUPS, default: 'none' },
|
|
3016
|
+
};
|
|
3017
|
+
const efficiencyIncludeAbsentParameter = {
|
|
3018
|
+
name: 'includeAbsent',
|
|
3019
|
+
in: 'query',
|
|
3020
|
+
description:
|
|
3021
|
+
'Include telemetry whose `task_slug` is NULL (unattributed). A `task` filter always implies attributed rows only.',
|
|
3022
|
+
required: false,
|
|
3023
|
+
schema: { type: 'boolean', default: false },
|
|
3024
|
+
};
|
|
3025
|
+
const efficiencyTaskParameter = {
|
|
3026
|
+
name: 'task',
|
|
3027
|
+
in: 'query',
|
|
3028
|
+
description: 'Restrict to rows attributed to this task slug.',
|
|
3029
|
+
required: false,
|
|
3030
|
+
schema: { type: 'string', pattern: SLUG_PATTERN },
|
|
3031
|
+
};
|
|
3032
|
+
const efficiencyLimitParameter = {
|
|
3033
|
+
name: 'limit',
|
|
3034
|
+
in: 'query',
|
|
3035
|
+
description: 'Maximum tool rows returned, 1..50.',
|
|
3036
|
+
required: false,
|
|
3037
|
+
schema: { type: 'integer', minimum: 1, maximum: 50, default: 12 },
|
|
3038
|
+
};
|
|
3039
|
+
const efficiencyRunKeyParameter = {
|
|
3040
|
+
name: 'runKey',
|
|
3041
|
+
in: 'path',
|
|
3042
|
+
required: true,
|
|
3043
|
+
description: 'The bench run directory stamp, `YYYYMMDDTHHMMSSZ`.',
|
|
3044
|
+
schema: { type: 'string', pattern: EFFICIENCY_RUN_KEY_PATTERN },
|
|
3045
|
+
};
|
|
3046
|
+
|
|
2336
3047
|
export const OPENAPI_DOCUMENT = {
|
|
2337
3048
|
openapi: OPENAPI_VERSION,
|
|
2338
3049
|
jsonSchemaDialect: OPENAPI_JSON_SCHEMA_DIALECT,
|
|
@@ -2348,7 +3059,6 @@ export const OPENAPI_DOCUMENT = {
|
|
|
2348
3059
|
servers: [{ url: OPENAPI_SERVER_URL, description: 'Loopback default' }],
|
|
2349
3060
|
security: [],
|
|
2350
3061
|
tags: [
|
|
2351
|
-
{ name: 'dashboard', description: 'No-build operator page and its same-origin assets' },
|
|
2352
3062
|
{ name: 'system', description: 'Health, document identity and the served contract' },
|
|
2353
3063
|
{ name: 'tasks', description: 'Task summaries, details and exports' },
|
|
2354
3064
|
{ name: 'pipeline', description: 'Pipeline steps and their derived state' },
|
|
@@ -2360,50 +3070,12 @@ export const OPENAPI_DOCUMENT = {
|
|
|
2360
3070
|
{ name: 'gates', description: 'Human gates with start, end and duration' },
|
|
2361
3071
|
{ name: 'documents', description: 'Raw documents by exact path' },
|
|
2362
3072
|
{ name: 'stats', description: 'Aggregate counts and durations' },
|
|
3073
|
+
{ name: 'efficiency', description: 'Measured calls, turns and attempts, A/B runs and the always-on context cost' },
|
|
2363
3074
|
{ name: 'sync', description: 'Projection runs and the one idempotent rescan' },
|
|
2364
3075
|
{ name: 'jobs', description: 'Scheduled jobs, their runs and their logs' },
|
|
2365
3076
|
{ name: 'tracker', description: 'The file-authoritative task tracker: items, ordering and the launch queue' },
|
|
2366
3077
|
],
|
|
2367
3078
|
paths: {
|
|
2368
|
-
'/': {
|
|
2369
|
-
get: operation({
|
|
2370
|
-
tags: ['dashboard'],
|
|
2371
|
-
summary: 'The dashboard document',
|
|
2372
|
-
operationId: 'getDashboard',
|
|
2373
|
-
responses: {
|
|
2374
|
-
200: assetResponse('text/html', 'One HTML document with same-origin assets'),
|
|
2375
|
-
403: errorResponse('A non-loopback Host or Origin was rejected'),
|
|
2376
|
-
405: methodNotAllowedResponse,
|
|
2377
|
-
500: errorResponse('Unexpected server failure'),
|
|
2378
|
-
},
|
|
2379
|
-
}),
|
|
2380
|
-
},
|
|
2381
|
-
'/assets/app.css': {
|
|
2382
|
-
get: operation({
|
|
2383
|
-
tags: ['dashboard'],
|
|
2384
|
-
summary: 'The dashboard stylesheet',
|
|
2385
|
-
operationId: 'getDashboardCss',
|
|
2386
|
-
responses: {
|
|
2387
|
-
200: assetResponse('text/css', 'Stylesheet served from an in-memory constant'),
|
|
2388
|
-
403: errorResponse('A non-loopback Host or Origin was rejected'),
|
|
2389
|
-
404: errorResponse('Unknown asset'),
|
|
2390
|
-
405: methodNotAllowedResponse,
|
|
2391
|
-
},
|
|
2392
|
-
}),
|
|
2393
|
-
},
|
|
2394
|
-
'/assets/app.js': {
|
|
2395
|
-
get: operation({
|
|
2396
|
-
tags: ['dashboard'],
|
|
2397
|
-
summary: 'The dashboard client',
|
|
2398
|
-
operationId: 'getDashboardJs',
|
|
2399
|
-
responses: {
|
|
2400
|
-
200: assetResponse('text/javascript', 'Client served from an in-memory constant'),
|
|
2401
|
-
403: errorResponse('A non-loopback Host or Origin was rejected'),
|
|
2402
|
-
404: errorResponse('Unknown asset'),
|
|
2403
|
-
405: methodNotAllowedResponse,
|
|
2404
|
-
},
|
|
2405
|
-
}),
|
|
2406
|
-
},
|
|
2407
3079
|
'/openapi.json': {
|
|
2408
3080
|
get: operation({
|
|
2409
3081
|
tags: ['system'],
|
|
@@ -2862,6 +3534,103 @@ export const OPENAPI_DOCUMENT = {
|
|
|
2862
3534
|
{ name: 'includeAbsent', in: 'query', required: false, schema: { type: 'boolean', default: false } },
|
|
2863
3535
|
]),
|
|
2864
3536
|
},
|
|
3537
|
+
'/api/v1/efficiency/series': {
|
|
3538
|
+
get: operation({
|
|
3539
|
+
tags: ['efficiency'],
|
|
3540
|
+
summary: 'One metric over a complete day or week axis',
|
|
3541
|
+
description:
|
|
3542
|
+
'The axis is emitted in full: an empty bucket carries `value: null`, never `0`. `from` and `to` default to the last 30 days and are echoed normalized. A window over 400 buckets answers `416 E_RANGE` with `details.parameter = "from"`; the series is bounded, never truncated.',
|
|
3543
|
+
operationId: 'getEfficiencySeries',
|
|
3544
|
+
parameters: [
|
|
3545
|
+
efficiencyFromParameter,
|
|
3546
|
+
efficiencyToParameter,
|
|
3547
|
+
efficiencyBucketParameter,
|
|
3548
|
+
efficiencyMetricParameter,
|
|
3549
|
+
efficiencyGroupByParameter,
|
|
3550
|
+
efficiencyIncludeAbsentParameter,
|
|
3551
|
+
efficiencyTaskParameter,
|
|
3552
|
+
],
|
|
3553
|
+
responses: {
|
|
3554
|
+
200: jsonResponse('EfficiencySeries', 'The complete axis and one series per group key'),
|
|
3555
|
+
...commonErrorResponses,
|
|
3556
|
+
416: errorResponse('The window exceeds 400 buckets; narrow `from`/`to` or switch to `bucket=week`'),
|
|
3557
|
+
},
|
|
3558
|
+
}),
|
|
3559
|
+
},
|
|
3560
|
+
'/api/v1/efficiency/tools': {
|
|
3561
|
+
get: operation({
|
|
3562
|
+
tags: ['efficiency'],
|
|
3563
|
+
summary: 'Calls and bytes by tool and category',
|
|
3564
|
+
description:
|
|
3565
|
+
'The grain is `(tool, category)`, so the tool cut and the category cut stay lossless. `totals` covers the whole filter; `otherCalls` is the sum of the folded rows, so `Σ items.calls + otherCalls === totals.calls`.',
|
|
3566
|
+
operationId: 'getEfficiencyTools',
|
|
3567
|
+
parameters: [
|
|
3568
|
+
efficiencyFromParameter,
|
|
3569
|
+
efficiencyToParameter,
|
|
3570
|
+
efficiencyLimitParameter,
|
|
3571
|
+
efficiencyIncludeAbsentParameter,
|
|
3572
|
+
efficiencyTaskParameter,
|
|
3573
|
+
],
|
|
3574
|
+
responses: {
|
|
3575
|
+
200: jsonResponse('EfficiencyToolBreakdown', 'The bounded rows, the filter totals and the folded call count'),
|
|
3576
|
+
...commonErrorResponses,
|
|
3577
|
+
},
|
|
3578
|
+
}),
|
|
3579
|
+
},
|
|
3580
|
+
'/api/v1/efficiency/distribution': {
|
|
3581
|
+
get: operation({
|
|
3582
|
+
tags: ['efficiency'],
|
|
3583
|
+
summary: 'The raw-bytes quantiles and the fixed histogram',
|
|
3584
|
+
description:
|
|
3585
|
+
'`metric` is the constant echo `rawBytes`. The six bins are half-open with the last one unbounded, and their call counts sum to `calls`. On an empty window every quantile is `0`.',
|
|
3586
|
+
operationId: 'getEfficiencyDistribution',
|
|
3587
|
+
parameters: [efficiencyFromParameter, efficiencyToParameter],
|
|
3588
|
+
responses: {
|
|
3589
|
+
200: jsonResponse('EfficiencyDistribution', 'Quantiles and the fixed six-bin histogram'),
|
|
3590
|
+
...commonErrorResponses,
|
|
3591
|
+
},
|
|
3592
|
+
}),
|
|
3593
|
+
},
|
|
3594
|
+
'/api/v1/efficiency/ab-runs': {
|
|
3595
|
+
get: listOperation(
|
|
3596
|
+
['efficiency'],
|
|
3597
|
+
'Measured A/B runs, newest first',
|
|
3598
|
+
'listEfficiencyAbRuns',
|
|
3599
|
+
'EfficiencyAbRunList',
|
|
3600
|
+
paginationParameters,
|
|
3601
|
+
),
|
|
3602
|
+
},
|
|
3603
|
+
'/api/v1/efficiency/ab-runs/{runKey}': {
|
|
3604
|
+
get: operation({
|
|
3605
|
+
tags: ['efficiency'],
|
|
3606
|
+
summary: 'One A/B run with its per-task cells',
|
|
3607
|
+
operationId: 'getEfficiencyAbRun',
|
|
3608
|
+
parameters: [efficiencyRunKeyParameter],
|
|
3609
|
+
responses: {
|
|
3610
|
+
200: jsonResponse('EfficiencyAbRun', 'The run row with its cells'),
|
|
3611
|
+
400: errorResponse('Malformed request: the run key is outside its documented shape'),
|
|
3612
|
+
403: commonErrorResponses[403],
|
|
3613
|
+
404: errorResponse('No projected run carries this key'),
|
|
3614
|
+
405: methodNotAllowedResponse,
|
|
3615
|
+
422: errorResponse('The run key is outside its documented shape'),
|
|
3616
|
+
503: commonErrorResponses[503],
|
|
3617
|
+
},
|
|
3618
|
+
}),
|
|
3619
|
+
},
|
|
3620
|
+
'/api/v1/efficiency/context-cost': {
|
|
3621
|
+
get: operation({
|
|
3622
|
+
tags: ['efficiency'],
|
|
3623
|
+
summary: 'The latest always-on context snapshot and the present tasks',
|
|
3624
|
+
description:
|
|
3625
|
+
'`hosts` carries the newest snapshot only and is empty until a snapshot is recorded; `tasks` is derived from `tasks.file_count` and `tasks.document_bytes` and is populated without one. `estimatedTokens` is `bytes / 4` and is labelled as an estimate.',
|
|
3626
|
+
operationId: 'getEfficiencyContextCost',
|
|
3627
|
+
parameters: [],
|
|
3628
|
+
responses: {
|
|
3629
|
+
200: jsonResponse('EfficiencyContextCost', 'The newest host snapshot and the present task surfaces'),
|
|
3630
|
+
...commonErrorResponses,
|
|
3631
|
+
},
|
|
3632
|
+
}),
|
|
3633
|
+
},
|
|
2865
3634
|
'/api/v1/sync-runs': {
|
|
2866
3635
|
get: listOperation(['sync'], 'Projection runs, newest first', 'listSyncRuns', 'SyncRunList', paginationParameters),
|
|
2867
3636
|
},
|