@bonesofspring/ai-rules 0.2.63 → 0.2.65
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 +96 -1
- package/README.md +11 -4
- package/bin/cli.js +7 -5
- package/bin/lib/ai-local-drift.js +7 -6
- package/bin/lib/engine-scripts.js +17 -4
- package/bin/lib/engine-upgrade.js +10 -2
- package/bin/lib/manifest-schema.js +12 -0
- package/bin/lib/seed-ai-local-team.js +20 -0
- package/bin/mavis-install.js +4 -3
- package/bin/opencode-install.js +22 -6
- package/bin/zcode-install.js +4 -3
- package/docs/MCP-CATALOG.md +1 -1
- package/docs/OPENCODE-COMPATIBILITY.md +3 -2
- package/docs/OPENCODE.md +22 -2
- package/docs/PRESET-CONTRIBUTION.md +43 -2
- package/docs/TEAM-DB.md +213 -5
- package/docs/openapi/team-db.v1.json +5928 -3045
- package/mcp/defectdojo-mcp.mjs +44 -12
- package/mcp/lib/defectdojo.mjs +57 -2
- package/package.json +27 -15
- package/presets/_shared/ai-local/scripts/aggregate-agent-task-metrics.mjs +279 -0
- package/presets/_shared/ai-local/scripts/process-lease.mjs +576 -0
- package/presets/_shared/ai-local/scripts/processes.mjs +1618 -0
- package/presets/_shared/ai-local/scripts/run.mjs +5 -5
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +784 -7
- package/presets/_shared/ai-local/scripts/team-db-dashboard.mjs +235 -10
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +813 -7
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +397 -4
- package/presets/_shared/ai-local/scripts/team-db-scheduler.mjs +86 -10
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +221 -0
- package/presets/_shared/ai-local/scripts/team-db-task-runner.mjs +567 -0
- package/presets/_shared/ai-local/scripts/team-db-tracker.mjs +2069 -0
- package/presets/_shared/ai-local/scripts/team-db-ui.mjs +750 -0
- package/presets/_shared/ai-local/scripts/team-db.mjs +151 -7
- package/presets/_shared/ai-local/scripts/upstream-research.mjs +3 -0
- package/presets/_shared/core/agent-team/agent-task-metrics.md +7 -2
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +2 -1
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +314 -1
- package/presets/_shared/hooks/guard-shell-command.mjs.tmpl +40 -2
- package/presets/_shared/hooks/run-hook.mjs +2 -1
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/android-kotlin/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/android-kotlin/hooks/run-hook.mjs +2 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/android-kotlin/settings.json +6 -1
- package/presets/claude/go/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/go/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/go/hooks/run-hook.mjs +2 -1
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/go/settings.json +6 -1
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/ios-swift/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/ios-swift/hooks/run-hook.mjs +2 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/ios-swift/settings.json +6 -1
- package/presets/claude/java/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/java/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/java/hooks/run-hook.mjs +2 -1
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/java/settings.json +6 -1
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/mcp-ts/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/mcp-ts/hooks/run-hook.mjs +2 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/mcp-ts/settings.json +6 -1
- package/presets/claude/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/mol/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/mol/hooks/run-hook.mjs +2 -1
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/mol/settings.json +6 -1
- package/presets/claude/next/MCP.md +2 -0
- package/presets/claude/next/REPO_AGENTS.md +2 -0
- package/presets/claude/next/agents/build-verifier.md +1 -1
- package/presets/claude/next/agents/ci-investigator.md +3 -0
- package/presets/claude/next/agents/code-reviewer.md +1 -0
- package/presets/claude/next/agents/debugger.md +3 -0
- package/presets/claude/next/agents/feature-developer.md +3 -0
- package/presets/claude/next/agents/mockup-reviewer.md +4 -1
- package/presets/claude/next/agents/performance-auditor.md +2 -0
- package/presets/claude/next/agents/playwright-test-generator.md +3 -0
- package/presets/claude/next/agents/playwright-test-healer.md +3 -0
- package/presets/claude/next/agents/playwright-test-planner.md +3 -0
- package/presets/claude/next/agents/qa-tester.md +3 -0
- package/presets/claude/next/agents/task-analyst.md +2 -0
- package/presets/claude/next/commands/README.md +6 -0
- package/presets/claude/next/commands/task.md +7 -1
- package/presets/claude/next/commands/technical-retro.md +7 -1
- package/presets/claude/next/commands/ui-start.md +78 -0
- package/presets/claude/next/commands/ui-stop.md +71 -0
- package/presets/claude/next/commands/upstream-research.md +1 -1
- package/presets/claude/next/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/next/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/next/hooks/run-hook.mjs +2 -1
- package/presets/claude/next/rules/README.md +2 -1
- package/presets/claude/next/rules/stack/next-app-core.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/next/rules/tooling-and-review/dev-process-lifecycle.md +43 -0
- package/presets/claude/next/settings.json +6 -1
- package/presets/claude/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/claude/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/claude/next/team/README.md +5 -1
- package/presets/claude/next/team/upstream/jobs.json +34 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/nuxt/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/nuxt/hooks/run-hook.mjs +2 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/nuxt/settings.json +6 -1
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/php-hexagonal/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/php-hexagonal/hooks/run-hook.mjs +2 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/php-hexagonal/settings.json +6 -1
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/claude/php-laravel/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/php-laravel/hooks/run-hook.mjs +2 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/php-laravel/settings.json +6 -1
- package/presets/claude/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/svelte/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/svelte/hooks/run-hook.mjs +2 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/svelte/settings.json +6 -1
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/android-kotlin/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/android-kotlin/hooks/run-hook.mjs +2 -1
- package/presets/cursor/go/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/go/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/go/hooks/run-hook.mjs +2 -1
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/ios-swift/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/ios-swift/hooks/run-hook.mjs +2 -1
- package/presets/cursor/java/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/java/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/java/hooks/run-hook.mjs +2 -1
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/mcp-ts/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/mcp-ts/hooks/run-hook.mjs +2 -1
- package/presets/cursor/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/mol/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/mol/hooks/run-hook.mjs +2 -1
- package/presets/cursor/next/MCP.md +2 -0
- package/presets/cursor/next/REPO_AGENTS.md +2 -0
- package/presets/cursor/next/agents/build-verifier.md +1 -1
- package/presets/cursor/next/agents/ci-investigator.md +2 -0
- package/presets/cursor/next/agents/code-reviewer.md +1 -0
- package/presets/cursor/next/agents/debugger.md +2 -0
- package/presets/cursor/next/agents/feature-developer.md +2 -0
- package/presets/cursor/next/agents/mockup-reviewer.md +4 -1
- package/presets/cursor/next/agents/performance-auditor.md +2 -0
- package/presets/cursor/next/agents/playwright-test-generator.md +2 -0
- package/presets/cursor/next/agents/playwright-test-healer.md +2 -0
- package/presets/cursor/next/agents/playwright-test-planner.md +2 -0
- package/presets/cursor/next/agents/qa-tester.md +2 -0
- package/presets/cursor/next/agents/task-analyst.md +2 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +2 -1
- package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/cursor/next/commands/README.md +6 -0
- package/presets/cursor/next/commands/task.md +7 -1
- package/presets/cursor/next/commands/technical-retro.md +7 -1
- package/presets/cursor/next/commands/ui-start.md +78 -0
- package/presets/cursor/next/commands/ui-stop.md +71 -0
- package/presets/cursor/next/commands/upstream-research.md +1 -1
- package/presets/cursor/next/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/next/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/next/hooks/run-hook.mjs +2 -1
- package/presets/cursor/next/rules/README.md +2 -1
- package/presets/cursor/next/rules/dev-process-lifecycle.mdc +43 -0
- package/presets/cursor/next/rules/next-app-core.mdc +1 -0
- package/presets/cursor/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/cursor/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/cursor/next/team/README.md +5 -1
- package/presets/cursor/next/team/upstream/jobs.json +34 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/nuxt/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/nuxt/hooks/run-hook.mjs +2 -1
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/php-hexagonal/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/php-hexagonal/hooks/run-hook.mjs +2 -1
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/cursor/php-laravel/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/php-laravel/hooks/run-hook.mjs +2 -1
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/svelte/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/svelte/hooks/run-hook.mjs +2 -1
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/go/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/java/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/mol/adapter-map.json +1 -1
- package/presets/mavis/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/next/MCP.md +2 -0
- package/presets/mavis/next/REPO_AGENTS.md +2 -0
- package/presets/mavis/next/adapter-map.json +33 -1
- package/presets/mavis/next/agents/build-verifier.md +1 -1
- package/presets/mavis/next/agents/ci-investigator.md +3 -0
- package/presets/mavis/next/agents/code-reviewer.md +1 -0
- package/presets/mavis/next/agents/debugger.md +3 -0
- package/presets/mavis/next/agents/feature-developer.md +3 -0
- package/presets/mavis/next/agents/mockup-reviewer.md +4 -1
- package/presets/mavis/next/agents/performance-auditor.md +2 -0
- package/presets/mavis/next/agents/playwright-test-generator.md +3 -0
- package/presets/mavis/next/agents/playwright-test-healer.md +3 -0
- package/presets/mavis/next/agents/playwright-test-planner.md +3 -0
- package/presets/mavis/next/agents/qa-tester.md +3 -0
- package/presets/mavis/next/agents/task-analyst.md +2 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +2 -1
- package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/mavis/next/commands/README.md +6 -0
- package/presets/mavis/next/commands/task.md +7 -1
- package/presets/mavis/next/commands/technical-retro.md +7 -1
- package/presets/mavis/next/commands/ui-start.md +73 -0
- package/presets/mavis/next/commands/ui-stop.md +66 -0
- package/presets/mavis/next/commands/upstream-research.md +1 -1
- package/presets/mavis/next/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/next/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/next/rules/dev-process-lifecycle.md +38 -0
- package/presets/mavis/next/rules/next-app-core.md +1 -0
- package/presets/mavis/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/mavis/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/mavis/next/team/README.md +5 -1
- package/presets/mavis/next/team/upstream/jobs.json +34 -0
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/android-kotlin/OPENCODE.md +4 -1
- package/presets/opencode/android-kotlin/README.md +1 -0
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/hooks/README.md +4 -2
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/android-kotlin/opencode.json +5 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/go/OPENCODE.md +4 -1
- package/presets/opencode/go/README.md +1 -0
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/hooks/README.md +4 -2
- package/presets/opencode/go/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/go/opencode.json +5 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/ios-swift/OPENCODE.md +4 -1
- package/presets/opencode/ios-swift/README.md +1 -0
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/hooks/README.md +4 -2
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/ios-swift/opencode.json +5 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/java/OPENCODE.md +4 -1
- package/presets/opencode/java/README.md +1 -0
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/hooks/README.md +4 -2
- package/presets/opencode/java/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/java/opencode.json +5 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/mcp-ts/OPENCODE.md +4 -1
- package/presets/opencode/mcp-ts/README.md +1 -0
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/hooks/README.md +4 -2
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/mcp-ts/opencode.json +5 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/mol/OPENCODE.md +4 -1
- package/presets/opencode/mol/README.md +1 -0
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/hooks/README.md +4 -2
- package/presets/opencode/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/mol/opencode.json +4 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/next/MCP.md +2 -0
- package/presets/opencode/next/OPENCODE.md +4 -1
- package/presets/opencode/next/README.md +1 -0
- package/presets/opencode/next/REPO_AGENTS.md +2 -0
- package/presets/opencode/next/adapter-map.json +33 -1
- package/presets/opencode/next/agents/build-verifier.md +1 -1
- package/presets/opencode/next/agents/ci-investigator.md +3 -0
- package/presets/opencode/next/agents/code-reviewer.md +1 -0
- package/presets/opencode/next/agents/debugger.md +3 -0
- package/presets/opencode/next/agents/feature-developer.md +3 -0
- package/presets/opencode/next/agents/mockup-reviewer.md +4 -1
- package/presets/opencode/next/agents/performance-auditor.md +2 -0
- package/presets/opencode/next/agents/playwright-test-generator.md +3 -0
- package/presets/opencode/next/agents/playwright-test-healer.md +3 -0
- package/presets/opencode/next/agents/playwright-test-planner.md +3 -0
- package/presets/opencode/next/agents/qa-tester.md +3 -0
- package/presets/opencode/next/agents/task-analyst.md +2 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +2 -1
- package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/opencode/next/commands/README.md +6 -0
- package/presets/opencode/next/commands/task.md +7 -1
- package/presets/opencode/next/commands/technical-retro.md +7 -1
- package/presets/opencode/next/commands/ui-start.md +81 -0
- package/presets/opencode/next/commands/ui-stop.md +74 -0
- package/presets/opencode/next/commands/upstream-research.md +1 -1
- package/presets/opencode/next/hooks/README.md +4 -2
- package/presets/opencode/next/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/next/opencode.json +4 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/next/rules/dev-process-lifecycle.md +38 -0
- package/presets/opencode/next/rules/next-app-core.md +1 -0
- package/presets/opencode/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/opencode/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/opencode/next/team/README.md +5 -1
- package/presets/opencode/next/team/upstream/jobs.json +34 -0
- package/presets/opencode/nuxt/OPENCODE.md +4 -1
- package/presets/opencode/nuxt/README.md +1 -0
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/hooks/README.md +4 -2
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/nuxt/opencode.json +4 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/php-hexagonal/OPENCODE.md +4 -1
- package/presets/opencode/php-hexagonal/README.md +1 -0
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/hooks/README.md +4 -2
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/php-hexagonal/opencode.json +5 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/php-laravel/OPENCODE.md +4 -1
- package/presets/opencode/php-laravel/README.md +1 -0
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/hooks/README.md +4 -2
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/opencode/php-laravel/opencode.json +5 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/platform-contract.json +6 -0
- package/presets/opencode/plugins/task-status/README.md +92 -0
- package/presets/opencode/plugins/task-status/details-data.ts +130 -0
- package/presets/opencode/plugins/task-status/details.tsx +84 -0
- package/presets/opencode/plugins/task-status/eta.ts +230 -0
- package/presets/opencode/plugins/task-status/index.ts +6 -0
- package/presets/opencode/plugins/task-status/package.json +10 -0
- package/presets/opencode/plugins/task-status/task-view.ts +606 -0
- package/presets/opencode/plugins/task-status/tui.tsx +139 -0
- package/presets/opencode/svelte/OPENCODE.md +4 -1
- package/presets/opencode/svelte/README.md +1 -0
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/hooks/README.md +4 -2
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/svelte/opencode.json +4 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/go/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/java/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/next/MCP.md +2 -0
- package/presets/zcode/next/REPO_AGENTS.md +2 -0
- package/presets/zcode/next/adapter-map.json +33 -1
- package/presets/zcode/next/agents/build-verifier.md +1 -1
- package/presets/zcode/next/agents/ci-investigator.md +3 -0
- package/presets/zcode/next/agents/code-reviewer.md +1 -0
- package/presets/zcode/next/agents/debugger.md +3 -0
- package/presets/zcode/next/agents/feature-developer.md +3 -0
- package/presets/zcode/next/agents/mockup-reviewer.md +4 -1
- package/presets/zcode/next/agents/performance-auditor.md +2 -0
- package/presets/zcode/next/agents/playwright-test-generator.md +3 -0
- package/presets/zcode/next/agents/playwright-test-healer.md +3 -0
- package/presets/zcode/next/agents/playwright-test-planner.md +3 -0
- package/presets/zcode/next/agents/qa-tester.md +3 -0
- package/presets/zcode/next/agents/task-analyst.md +2 -0
- package/presets/zcode/next/ai-local/rules-library/storybook-dev-compare-figma.md +2 -1
- package/presets/zcode/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/zcode/next/commands/README.md +6 -0
- package/presets/zcode/next/commands/task.md +7 -1
- package/presets/zcode/next/commands/technical-retro.md +7 -1
- package/presets/zcode/next/commands/ui-start.md +81 -0
- package/presets/zcode/next/commands/ui-stop.md +74 -0
- package/presets/zcode/next/commands/upstream-research.md +1 -1
- package/presets/zcode/next/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/next/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/next/rules/dev-process-lifecycle.md +38 -0
- package/presets/zcode/next/rules/next-app-core.md +1 -0
- package/presets/zcode/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/zcode/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/zcode/next/team/README.md +5 -1
- package/presets/zcode/next/team/upstream/jobs.json +34 -0
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +2 -1
- package/scripts/aggregate-agent-task-metrics.mjs +48 -4
|
@@ -396,6 +396,192 @@ CREATE INDEX idx_job_runs_state_started ON job_runs(state, started_at DESC);
|
|
|
396
396
|
CREATE INDEX idx_job_run_events_at ON job_run_events(at);
|
|
397
397
|
`;
|
|
398
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Migration 3: the shipped backlog projection. Kept byte-for-byte because
|
|
401
|
+
* migration history is immutable; migration 4 replaces it with the integer-id
|
|
402
|
+
* tracker surface. Its rows are not carried across: the projection is rebuilt
|
|
403
|
+
* from the files after `tracker migrate-ids`.
|
|
404
|
+
*/
|
|
405
|
+
export const BACKLOG_SQL = SQL`CREATE TABLE backlog_items (
|
|
406
|
+
id TEXT PRIMARY KEY,
|
|
407
|
+
title TEXT,
|
|
408
|
+
status TEXT CHECK (status IS NULL OR status IN ('planned','completed','cancelled','superseded')),
|
|
409
|
+
priority INTEGER CHECK (priority IS NULL OR priority BETWEEN 0 AND 9),
|
|
410
|
+
type TEXT,
|
|
411
|
+
description TEXT,
|
|
412
|
+
labels_json TEXT,
|
|
413
|
+
source_task TEXT,
|
|
414
|
+
source_refs_json TEXT,
|
|
415
|
+
revision INTEGER,
|
|
416
|
+
created_at TEXT,
|
|
417
|
+
updated_at TEXT,
|
|
418
|
+
completed_at TEXT,
|
|
419
|
+
cancelled_at TEXT,
|
|
420
|
+
cancel_reason TEXT,
|
|
421
|
+
superseded_by TEXT,
|
|
422
|
+
history_json TEXT,
|
|
423
|
+
content_hash TEXT,
|
|
424
|
+
parse_error TEXT,
|
|
425
|
+
projected_at TEXT NOT NULL,
|
|
426
|
+
first_seen_at TEXT NOT NULL,
|
|
427
|
+
last_seen_at TEXT NOT NULL,
|
|
428
|
+
absent_at TEXT
|
|
429
|
+
) STRICT;
|
|
430
|
+
|
|
431
|
+
CREATE TABLE backlog_item_deps (
|
|
432
|
+
item_id TEXT NOT NULL,
|
|
433
|
+
dep_id TEXT NOT NULL,
|
|
434
|
+
ordinal INTEGER NOT NULL,
|
|
435
|
+
PRIMARY KEY (item_id, dep_id)
|
|
436
|
+
) STRICT;
|
|
437
|
+
|
|
438
|
+
CREATE TABLE backlog_queue (
|
|
439
|
+
entry_id TEXT PRIMARY KEY,
|
|
440
|
+
item_id TEXT NOT NULL,
|
|
441
|
+
status TEXT CHECK (status IS NULL OR status IN ('queued','claimed','cancelled','expired')),
|
|
442
|
+
reason TEXT,
|
|
443
|
+
requested_by TEXT,
|
|
444
|
+
command TEXT,
|
|
445
|
+
revision INTEGER,
|
|
446
|
+
requested_at TEXT,
|
|
447
|
+
claimed_at TEXT,
|
|
448
|
+
finished_at TEXT,
|
|
449
|
+
history_json TEXT,
|
|
450
|
+
content_hash TEXT,
|
|
451
|
+
parse_error TEXT,
|
|
452
|
+
projected_at TEXT NOT NULL,
|
|
453
|
+
first_seen_at TEXT NOT NULL,
|
|
454
|
+
last_seen_at TEXT NOT NULL,
|
|
455
|
+
absent_at TEXT
|
|
456
|
+
) STRICT;
|
|
457
|
+
|
|
458
|
+
CREATE TABLE backlog_queue_events (
|
|
459
|
+
entry_id TEXT NOT NULL,
|
|
460
|
+
seq INTEGER NOT NULL CHECK (seq >= 1),
|
|
461
|
+
at TEXT,
|
|
462
|
+
type TEXT,
|
|
463
|
+
actor TEXT,
|
|
464
|
+
detail TEXT,
|
|
465
|
+
PRIMARY KEY (entry_id, seq)
|
|
466
|
+
) STRICT;
|
|
467
|
+
|
|
468
|
+
CREATE INDEX idx_backlog_items_order ON backlog_items(status, priority, created_at, id);
|
|
469
|
+
CREATE INDEX idx_backlog_items_source ON backlog_items(source_task);
|
|
470
|
+
CREATE INDEX idx_backlog_item_deps_dep ON backlog_item_deps(dep_id);
|
|
471
|
+
CREATE INDEX idx_backlog_queue_status ON backlog_queue(status, requested_at);
|
|
472
|
+
CREATE INDEX idx_backlog_queue_item ON backlog_queue(item_id);
|
|
473
|
+
`;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Migration 4: the integer-id tracker surface. Tracker tables carry the
|
|
477
|
+
* `backlog` status and a numeric item key, the queue gains task/link columns,
|
|
478
|
+
* and `tracker_item_tasks` holds the item↔task relation. The old backlog tables
|
|
479
|
+
* are dropped without a row copy: the projection is derived from the files and
|
|
480
|
+
* the next sync rebuilds it. Migration 3 stays byte-identical.
|
|
481
|
+
*/
|
|
482
|
+
export const TRACKER_SQL = SQL`CREATE TABLE tracker_items (
|
|
483
|
+
id INTEGER PRIMARY KEY,
|
|
484
|
+
title TEXT,
|
|
485
|
+
status TEXT CHECK (status IS NULL OR status IN ('backlog','planned','completed','cancelled','superseded')),
|
|
486
|
+
priority INTEGER CHECK (priority IS NULL OR priority BETWEEN 0 AND 9),
|
|
487
|
+
type TEXT,
|
|
488
|
+
description TEXT,
|
|
489
|
+
labels_json TEXT,
|
|
490
|
+
source_task TEXT,
|
|
491
|
+
source_refs_json TEXT,
|
|
492
|
+
revision INTEGER,
|
|
493
|
+
created_at TEXT,
|
|
494
|
+
updated_at TEXT,
|
|
495
|
+
completed_at TEXT,
|
|
496
|
+
cancelled_at TEXT,
|
|
497
|
+
cancel_reason TEXT,
|
|
498
|
+
superseded_by INTEGER,
|
|
499
|
+
history_json TEXT,
|
|
500
|
+
content_hash TEXT,
|
|
501
|
+
parse_error TEXT,
|
|
502
|
+
projected_at TEXT NOT NULL,
|
|
503
|
+
first_seen_at TEXT NOT NULL,
|
|
504
|
+
last_seen_at TEXT NOT NULL,
|
|
505
|
+
absent_at TEXT
|
|
506
|
+
) STRICT;
|
|
507
|
+
|
|
508
|
+
CREATE TABLE tracker_item_deps (
|
|
509
|
+
item_id INTEGER NOT NULL,
|
|
510
|
+
dep_id INTEGER NOT NULL,
|
|
511
|
+
ordinal INTEGER NOT NULL,
|
|
512
|
+
PRIMARY KEY (item_id, dep_id)
|
|
513
|
+
) STRICT;
|
|
514
|
+
|
|
515
|
+
CREATE TABLE tracker_queue (
|
|
516
|
+
entry_id TEXT PRIMARY KEY,
|
|
517
|
+
item_id INTEGER NOT NULL,
|
|
518
|
+
task_slug TEXT,
|
|
519
|
+
link_id TEXT,
|
|
520
|
+
status TEXT CHECK (status IS NULL OR status IN ('queued','claimed','cancelled','expired')),
|
|
521
|
+
reason TEXT,
|
|
522
|
+
requested_by TEXT,
|
|
523
|
+
command TEXT,
|
|
524
|
+
revision INTEGER,
|
|
525
|
+
requested_at TEXT,
|
|
526
|
+
claimed_at TEXT,
|
|
527
|
+
finished_at TEXT,
|
|
528
|
+
history_json TEXT,
|
|
529
|
+
content_hash TEXT,
|
|
530
|
+
parse_error TEXT,
|
|
531
|
+
projected_at TEXT NOT NULL,
|
|
532
|
+
first_seen_at TEXT NOT NULL,
|
|
533
|
+
last_seen_at TEXT NOT NULL,
|
|
534
|
+
absent_at TEXT
|
|
535
|
+
) STRICT;
|
|
536
|
+
|
|
537
|
+
CREATE TABLE tracker_queue_events (
|
|
538
|
+
entry_id TEXT NOT NULL,
|
|
539
|
+
seq INTEGER NOT NULL CHECK (seq >= 1),
|
|
540
|
+
at TEXT,
|
|
541
|
+
type TEXT,
|
|
542
|
+
actor TEXT,
|
|
543
|
+
detail TEXT,
|
|
544
|
+
PRIMARY KEY (entry_id, seq)
|
|
545
|
+
) STRICT;
|
|
546
|
+
|
|
547
|
+
CREATE TABLE tracker_item_tasks (
|
|
548
|
+
link_id TEXT PRIMARY KEY,
|
|
549
|
+
item_id INTEGER NOT NULL,
|
|
550
|
+
task_slug TEXT NOT NULL,
|
|
551
|
+
entry_id TEXT,
|
|
552
|
+
role TEXT,
|
|
553
|
+
decision TEXT CHECK (decision IS NULL OR decision IN ('requested','stopped','unlinked')),
|
|
554
|
+
prompt_path TEXT,
|
|
555
|
+
language TEXT,
|
|
556
|
+
revision INTEGER,
|
|
557
|
+
created_at TEXT,
|
|
558
|
+
updated_at TEXT,
|
|
559
|
+
history_json TEXT,
|
|
560
|
+
content_hash TEXT,
|
|
561
|
+
parse_error TEXT,
|
|
562
|
+
projected_at TEXT NOT NULL,
|
|
563
|
+
first_seen_at TEXT NOT NULL,
|
|
564
|
+
last_seen_at TEXT NOT NULL,
|
|
565
|
+
absent_at TEXT
|
|
566
|
+
) STRICT;
|
|
567
|
+
|
|
568
|
+
-- The projection is derived: the first sync rebuilds it from the files.
|
|
569
|
+
DROP TABLE backlog_item_deps;
|
|
570
|
+
DROP TABLE backlog_queue_events;
|
|
571
|
+
DROP TABLE backlog_queue;
|
|
572
|
+
DROP TABLE backlog_items;
|
|
573
|
+
|
|
574
|
+
CREATE INDEX idx_tracker_items_order ON tracker_items(status, priority, created_at, id);
|
|
575
|
+
CREATE INDEX idx_tracker_items_source ON tracker_items(source_task);
|
|
576
|
+
CREATE INDEX idx_tracker_item_deps_dep ON tracker_item_deps(dep_id);
|
|
577
|
+
CREATE INDEX idx_tracker_queue_status ON tracker_queue(status, requested_at);
|
|
578
|
+
CREATE INDEX idx_tracker_queue_item ON tracker_queue(item_id);
|
|
579
|
+
CREATE INDEX idx_tracker_queue_task ON tracker_queue(task_slug);
|
|
580
|
+
CREATE INDEX idx_tracker_item_tasks_item ON tracker_item_tasks(item_id);
|
|
581
|
+
CREATE INDEX idx_tracker_item_tasks_task ON tracker_item_tasks(task_slug);
|
|
582
|
+
CREATE INDEX idx_tracker_item_tasks_decision ON tracker_item_tasks(decision);
|
|
583
|
+
`;
|
|
584
|
+
|
|
399
585
|
const sha256 = (value) => crypto.createHash('sha256').update(value).digest('hex');
|
|
400
586
|
|
|
401
587
|
/**
|
|
@@ -415,6 +601,18 @@ export const MIGRATIONS = [
|
|
|
415
601
|
sql: SCHEDULER_SQL,
|
|
416
602
|
checksum: '2e9d913368619565e3283f2099ca1d7a4039ee96f147ed7a8ce7b38b61dafe3c',
|
|
417
603
|
},
|
|
604
|
+
{
|
|
605
|
+
version: 3,
|
|
606
|
+
name: '0003-backlog',
|
|
607
|
+
sql: BACKLOG_SQL,
|
|
608
|
+
checksum: '430c079a4ec42bc93094f364df228c2f55772e1f9e8f1e0e509b1d16c2de7f90',
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
version: 4,
|
|
612
|
+
name: '0004-tracker',
|
|
613
|
+
sql: TRACKER_SQL,
|
|
614
|
+
checksum: '641f18c269a1595d1fb1e4878f9919e9d41a257d030cf1f65ee07fb99ac55552',
|
|
615
|
+
},
|
|
418
616
|
];
|
|
419
617
|
|
|
420
618
|
/** Highest migration version shipped by this module. */
|
|
@@ -447,6 +645,29 @@ const isTruthy = (value) => {
|
|
|
447
645
|
|
|
448
646
|
export const isKillSwitchSet = (env = process.env) => isTruthy(env.AI_RULES_TEAM_DB_DISABLE);
|
|
449
647
|
|
|
648
|
+
/**
|
|
649
|
+
* Repository identity of one team root: the first 12 hex characters of
|
|
650
|
+
* `sha256(<resolved team root>)`.
|
|
651
|
+
*
|
|
652
|
+
* The path is canonicalised through `realpath` when it exists, so a symlinked
|
|
653
|
+
* spelling of the same repository hashes like the real one; a path that does not
|
|
654
|
+
* exist yet falls back to `path.resolve`. The API publishes the value as
|
|
655
|
+
* `/health.rootId` and the `ui` supervisor compares it with its own hash, so two
|
|
656
|
+
* repositories that find each other on one port are a named refusal instead of a
|
|
657
|
+
* silent cross-wired dashboard. It is a hash, never a path: the value discloses
|
|
658
|
+
* nothing about the filesystem.
|
|
659
|
+
*/
|
|
660
|
+
export const teamRootId = (teamRoot) => {
|
|
661
|
+
const resolved = path.resolve(teamRoot);
|
|
662
|
+
let identity = resolved;
|
|
663
|
+
try {
|
|
664
|
+
identity = fs.realpathSync(resolved);
|
|
665
|
+
} catch {
|
|
666
|
+
identity = resolved;
|
|
667
|
+
}
|
|
668
|
+
return crypto.createHash('sha256').update(identity).digest('hex').slice(0, 12);
|
|
669
|
+
};
|
|
670
|
+
|
|
450
671
|
const parseNodeVersion = (version) => {
|
|
451
672
|
const match = /^(\d+)\.(\d+)\.(\d+)/.exec(String(version || ''));
|
|
452
673
|
if (!match) return null;
|