@bonesofspring/ai-rules 0.2.78 → 0.2.84
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 +97 -0
- package/README.md +4 -2
- package/bin/lib/engine-scripts.js +6 -0
- package/bin/lib/merged-config.js +49 -0
- package/bin/lib/seed-ai-local-team.js +4 -0
- package/bin/mavis-install.js +53 -3
- package/docs/MAVIS-COMPATIBILITY.md +136 -8
- package/docs/PRESET-CONTRIBUTION.md +9 -0
- package/docs/TEAM-DB.md +118 -15
- package/docs/openapi/team-db.v1.json +2879 -1858
- package/package.json +8 -1
- package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +282 -0
- package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
- package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +531 -0
- package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +211 -12
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +289 -3
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +857 -1
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +68 -0
- package/presets/_shared/ai-local/scripts/team-db-tracker.mjs +29 -10
- package/presets/_shared/ai-local/scripts/team-db.mjs +46 -1
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
- package/presets/_shared/core/review/code-review-mr.md +19 -4
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +109 -1
- package/presets/_shared/hooks/compact-shell-output.mjs +16 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/claude/android-kotlin/agents/task-router.md +2 -0
- package/presets/claude/android-kotlin/commands/README.md +1 -0
- package/presets/claude/android-kotlin/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/android-kotlin/commands/task.md +4 -0
- package/presets/claude/android-kotlin/commands/update.md +1 -0
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/claude/go/agents/code-reviewer.md +5 -1
- package/presets/claude/go/agents/task-router.md +2 -0
- package/presets/claude/go/commands/README.md +1 -0
- package/presets/claude/go/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/go/commands/task.md +4 -0
- package/presets/claude/go/commands/update.md +1 -0
- package/presets/claude/go/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/go/skills/code-review/SKILL.md +2 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/claude/ios-swift/agents/task-router.md +2 -0
- package/presets/claude/ios-swift/commands/README.md +1 -0
- package/presets/claude/ios-swift/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/ios-swift/commands/task.md +4 -0
- package/presets/claude/ios-swift/commands/update.md +1 -0
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/claude/java/agents/code-reviewer.md +5 -1
- package/presets/claude/java/agents/task-router.md +2 -0
- package/presets/claude/java/commands/README.md +1 -0
- package/presets/claude/java/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/java/commands/task.md +4 -0
- package/presets/claude/java/commands/update.md +1 -0
- package/presets/claude/java/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/java/skills/code-review/SKILL.md +2 -1
- package/presets/claude/mcp-ts/agents/task-router.md +2 -0
- package/presets/claude/mcp-ts/commands/README.md +1 -0
- package/presets/claude/mcp-ts/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/mcp-ts/commands/task.md +4 -0
- package/presets/claude/mcp-ts/commands/update.md +1 -0
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/mol/REPO_AGENTS.md +1 -1
- package/presets/claude/mol/agents/code-reviewer.md +5 -1
- package/presets/claude/mol/agents/task-router.md +3 -1
- package/presets/claude/mol/commands/README.md +1 -0
- package/presets/claude/mol/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/mol/commands/task.md +4 -0
- package/presets/claude/mol/commands/update.md +1 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/mol/skills/code-review/SKILL.md +2 -1
- package/presets/claude/next/REPO_AGENTS.md +1 -1
- package/presets/claude/next/agents/code-reviewer.md +5 -1
- package/presets/claude/next/agents/task-router.md +3 -1
- package/presets/claude/next/commands/README.md +1 -0
- package/presets/claude/next/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/next/commands/task.md +4 -0
- package/presets/claude/next/commands/ui-start.md +12 -4
- package/presets/claude/next/commands/ui-stop.md +5 -2
- package/presets/claude/next/commands/update.md +1 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/next/skills/code-review/SKILL.md +2 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +5 -1
- package/presets/claude/nuxt/agents/task-router.md +3 -1
- package/presets/claude/nuxt/commands/README.md +1 -0
- package/presets/claude/nuxt/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/nuxt/commands/task.md +4 -0
- package/presets/claude/nuxt/commands/update.md +1 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/claude/php-hexagonal/agents/task-router.md +2 -0
- package/presets/claude/php-hexagonal/commands/README.md +1 -0
- package/presets/claude/php-hexagonal/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/php-hexagonal/commands/task.md +4 -0
- package/presets/claude/php-hexagonal/commands/update.md +1 -0
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/claude/php-laravel/agents/task-router.md +2 -0
- package/presets/claude/php-laravel/commands/README.md +1 -0
- package/presets/claude/php-laravel/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/php-laravel/commands/task.md +4 -0
- package/presets/claude/php-laravel/commands/update.md +1 -0
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/claude/svelte/agents/code-reviewer.md +5 -1
- package/presets/claude/svelte/agents/task-router.md +3 -1
- package/presets/claude/svelte/commands/README.md +1 -0
- package/presets/claude/svelte/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/svelte/commands/task.md +4 -0
- package/presets/claude/svelte/commands/update.md +1 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/cursor/android-kotlin/agents/task-router.md +2 -0
- package/presets/cursor/android-kotlin/commands/README.md +1 -0
- package/presets/cursor/android-kotlin/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/android-kotlin/commands/task.md +4 -0
- package/presets/cursor/android-kotlin/commands/update.md +1 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/go/agents/code-reviewer.md +5 -1
- package/presets/cursor/go/agents/task-router.md +2 -0
- package/presets/cursor/go/commands/README.md +1 -0
- package/presets/cursor/go/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/go/commands/task.md +4 -0
- package/presets/cursor/go/commands/update.md +1 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/go/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/go/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/go/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/cursor/ios-swift/agents/task-router.md +2 -0
- package/presets/cursor/ios-swift/commands/README.md +1 -0
- package/presets/cursor/ios-swift/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/ios-swift/commands/task.md +4 -0
- package/presets/cursor/ios-swift/commands/update.md +1 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/java/agents/code-reviewer.md +5 -1
- package/presets/cursor/java/agents/task-router.md +2 -0
- package/presets/cursor/java/commands/README.md +1 -0
- package/presets/cursor/java/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/java/commands/task.md +4 -0
- package/presets/cursor/java/commands/update.md +1 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/java/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/java/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/java/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/mcp-ts/agents/task-router.md +2 -0
- package/presets/cursor/mcp-ts/commands/README.md +1 -0
- package/presets/cursor/mcp-ts/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/mcp-ts/commands/task.md +4 -0
- package/presets/cursor/mcp-ts/commands/update.md +1 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/REPO_AGENTS.md +1 -1
- package/presets/cursor/mol/agents/code-reviewer.md +5 -1
- package/presets/cursor/mol/agents/task-router.md +3 -1
- package/presets/cursor/mol/commands/README.md +1 -0
- package/presets/cursor/mol/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/mol/commands/task.md +4 -0
- package/presets/cursor/mol/commands/update.md +1 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/mol/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mol/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/next/REPO_AGENTS.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +5 -1
- package/presets/cursor/next/agents/task-router.md +3 -1
- package/presets/cursor/next/commands/README.md +1 -0
- package/presets/cursor/next/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/next/commands/task.md +4 -0
- package/presets/cursor/next/commands/ui-start.md +12 -4
- package/presets/cursor/next/commands/ui-stop.md +5 -2
- package/presets/cursor/next/commands/update.md +1 -0
- package/presets/cursor/next/hooks/README.md +2 -0
- package/presets/cursor/next/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/next/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/next/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +5 -1
- package/presets/cursor/nuxt/agents/task-router.md +3 -1
- package/presets/cursor/nuxt/commands/README.md +1 -0
- package/presets/cursor/nuxt/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/nuxt/commands/task.md +4 -0
- package/presets/cursor/nuxt/commands/update.md +1 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-hexagonal/agents/task-router.md +2 -0
- package/presets/cursor/php-hexagonal/commands/README.md +1 -0
- package/presets/cursor/php-hexagonal/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/php-hexagonal/commands/task.md +4 -0
- package/presets/cursor/php-hexagonal/commands/update.md +1 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-laravel/agents/task-router.md +2 -0
- package/presets/cursor/php-laravel/commands/README.md +1 -0
- package/presets/cursor/php-laravel/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/php-laravel/commands/task.md +4 -0
- package/presets/cursor/php-laravel/commands/update.md +1 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +5 -1
- package/presets/cursor/svelte/agents/task-router.md +3 -1
- package/presets/cursor/svelte/commands/README.md +1 -0
- package/presets/cursor/svelte/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/svelte/commands/task.md +4 -0
- package/presets/cursor/svelte/commands/update.md +1 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/svelte/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/svelte/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/android-kotlin/MAVIS.md +9 -3
- package/presets/mavis/android-kotlin/README.md +3 -1
- package/presets/mavis/android-kotlin/adapter-map.json +111 -43
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/mavis/android-kotlin/agents/task-router.md +2 -0
- package/presets/mavis/android-kotlin/commands/README.md +1 -0
- package/presets/mavis/android-kotlin/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/android-kotlin/commands/task.md +4 -0
- package/presets/mavis/android-kotlin/commands/update.md +1 -0
- package/presets/mavis/android-kotlin/hooks/README.md +29 -7
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/android-kotlin/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/android-kotlin/hooks/run-hook.mjs +103 -0
- package/presets/mavis/android-kotlin/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/android-kotlin/native-skills/README.md +15 -0
- package/presets/mavis/android-kotlin/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/android-kotlin/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/android-kotlin/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/android-kotlin/native-skills/instrumentation-ui-e2e/SKILL.md +23 -0
- package/presets/mavis/android-kotlin/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/android-kotlin/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/android-kotlin/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/android-kotlin/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/android-kotlin/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/android-kotlin/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/android-kotlin/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/android-kotlin/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/android-kotlin/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/go/MAVIS.md +9 -3
- package/presets/mavis/go/README.md +3 -1
- package/presets/mavis/go/adapter-map.json +101 -39
- package/presets/mavis/go/agents/code-reviewer.md +5 -1
- package/presets/mavis/go/agents/task-router.md +2 -0
- package/presets/mavis/go/commands/README.md +1 -0
- package/presets/mavis/go/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/go/commands/task.md +4 -0
- package/presets/mavis/go/commands/update.md +1 -0
- package/presets/mavis/go/hooks/README.md +29 -7
- package/presets/mavis/go/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/go/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/go/hooks/run-hook.mjs +103 -0
- package/presets/mavis/go/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/go/native-skills/README.md +15 -0
- package/presets/mavis/go/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/go/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/go/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/go/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/go/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/go/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/go/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/go/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/go/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/go/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/go/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/go/rules/code-review-mr.md +19 -4
- package/presets/mavis/go/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/ios-swift/MAVIS.md +9 -3
- package/presets/mavis/ios-swift/README.md +3 -1
- package/presets/mavis/ios-swift/adapter-map.json +111 -43
- package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/mavis/ios-swift/agents/task-router.md +2 -0
- package/presets/mavis/ios-swift/commands/README.md +1 -0
- package/presets/mavis/ios-swift/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/ios-swift/commands/task.md +4 -0
- package/presets/mavis/ios-swift/commands/update.md +1 -0
- package/presets/mavis/ios-swift/hooks/README.md +29 -7
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/ios-swift/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/ios-swift/hooks/run-hook.mjs +103 -0
- package/presets/mavis/ios-swift/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/ios-swift/native-skills/README.md +15 -0
- package/presets/mavis/ios-swift/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/ios-swift/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/ios-swift/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/ios-swift/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/ios-swift/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/ios-swift/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/ios-swift/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/ios-swift/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/ios-swift/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/ios-swift/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/ios-swift/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/ios-swift/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/ios-swift/native-skills/xcuitest-e2e/SKILL.md +39 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/mavis/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/java/MAVIS.md +9 -3
- package/presets/mavis/java/README.md +3 -1
- package/presets/mavis/java/adapter-map.json +101 -39
- package/presets/mavis/java/agents/code-reviewer.md +5 -1
- package/presets/mavis/java/agents/task-router.md +2 -0
- package/presets/mavis/java/commands/README.md +1 -0
- package/presets/mavis/java/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/java/commands/task.md +4 -0
- package/presets/mavis/java/commands/update.md +1 -0
- package/presets/mavis/java/hooks/README.md +29 -7
- package/presets/mavis/java/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/java/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/java/hooks/run-hook.mjs +103 -0
- package/presets/mavis/java/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/java/native-skills/README.md +15 -0
- package/presets/mavis/java/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/java/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/java/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/java/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/java/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/java/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/java/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/java/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/java/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/java/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/java/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/java/rules/code-review-mr.md +19 -4
- package/presets/mavis/java/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/mcp-ts/MAVIS.md +9 -3
- package/presets/mavis/mcp-ts/README.md +3 -1
- package/presets/mavis/mcp-ts/adapter-map.json +84 -31
- package/presets/mavis/mcp-ts/agents/task-router.md +2 -0
- package/presets/mavis/mcp-ts/commands/README.md +1 -0
- package/presets/mavis/mcp-ts/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/mcp-ts/commands/task.md +4 -0
- package/presets/mavis/mcp-ts/commands/update.md +1 -0
- package/presets/mavis/mcp-ts/hooks/README.md +29 -7
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/mcp-ts/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mcp-ts/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mcp-ts/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mcp-ts/native-skills/README.md +15 -0
- package/presets/mavis/mcp-ts/native-skills/code-review/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/debug-investigation/SKILL.md +51 -0
- package/presets/mavis/mcp-ts/native-skills/feature-delivery/SKILL.md +42 -0
- package/presets/mavis/mcp-ts/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mcp-ts/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mcp-ts/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mcp-ts/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mcp-ts/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/mcp-ts/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/mcp-ts/native-skills/technical-retro/SKILL.md +95 -0
- package/presets/mavis/mcp-ts/native-skills/unit-testing/SKILL.md +22 -0
- package/presets/mavis/mcp-ts/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/MAVIS.md +9 -3
- package/presets/mavis/mol/README.md +3 -1
- package/presets/mavis/mol/REPO_AGENTS.md +1 -1
- package/presets/mavis/mol/adapter-map.json +101 -39
- package/presets/mavis/mol/agents/code-reviewer.md +5 -1
- package/presets/mavis/mol/agents/task-router.md +3 -1
- package/presets/mavis/mol/commands/README.md +1 -0
- package/presets/mavis/mol/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/mol/commands/task.md +4 -0
- package/presets/mavis/mol/commands/update.md +1 -0
- package/presets/mavis/mol/hooks/README.md +29 -7
- package/presets/mavis/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/mol/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mol/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mol/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mol/native-skills/README.md +15 -0
- package/presets/mavis/mol/native-skills/ci-investigation/SKILL.md +49 -0
- package/presets/mavis/mol/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/debug-investigation/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/feature-delivery/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mol/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mol/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/task/SKILL.md +82 -0
- package/presets/mavis/mol/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/mol/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/mol/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/mol/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/mol/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mol/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/next/MAVIS.md +9 -3
- package/presets/mavis/next/README.md +3 -1
- package/presets/mavis/next/REPO_AGENTS.md +1 -1
- package/presets/mavis/next/adapter-map.json +135 -52
- package/presets/mavis/next/agents/code-reviewer.md +5 -1
- package/presets/mavis/next/agents/task-router.md +3 -1
- package/presets/mavis/next/commands/README.md +1 -0
- package/presets/mavis/next/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/next/commands/task.md +4 -0
- package/presets/mavis/next/commands/ui-start.md +12 -4
- package/presets/mavis/next/commands/ui-stop.md +5 -2
- package/presets/mavis/next/commands/update.md +1 -0
- package/presets/mavis/next/hooks/README.md +29 -7
- package/presets/mavis/next/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/next/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/next/hooks/run-hook.mjs +103 -0
- package/presets/mavis/next/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/next/native-skills/README.md +15 -0
- package/presets/mavis/next/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/next/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/next/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/feature-delivery/SKILL.md +45 -0
- package/presets/mavis/next/native-skills/figma-fidelity/SKILL.md +131 -0
- package/presets/mavis/next/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/next/native-skills/mockup-review/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/playwright-e2e/SKILL.md +39 -0
- package/presets/mavis/next/native-skills/react-performance/SKILL.md +49 -0
- package/presets/mavis/next/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/next/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/next/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/next/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/task/SKILL.md +88 -0
- package/presets/mavis/next/native-skills/task-continue/SKILL.md +87 -0
- package/presets/mavis/next/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/next/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/next/native-skills/ui-start/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/ui-stop/SKILL.md +48 -0
- package/presets/mavis/next/native-skills/unit-testing/SKILL.md +40 -0
- package/presets/mavis/next/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/next/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/next/rules/code-review-mr.md +19 -4
- package/presets/mavis/next/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/nuxt/MAVIS.md +9 -3
- package/presets/mavis/nuxt/README.md +3 -1
- package/presets/mavis/nuxt/adapter-map.json +116 -45
- package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
- package/presets/mavis/nuxt/agents/task-router.md +3 -1
- package/presets/mavis/nuxt/commands/README.md +1 -0
- package/presets/mavis/nuxt/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/nuxt/commands/task.md +4 -0
- package/presets/mavis/nuxt/commands/update.md +1 -0
- package/presets/mavis/nuxt/hooks/README.md +29 -7
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/nuxt/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/nuxt/hooks/run-hook.mjs +103 -0
- package/presets/mavis/nuxt/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/nuxt/native-skills/README.md +15 -0
- package/presets/mavis/nuxt/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/nuxt/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/nuxt/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/nuxt/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/nuxt/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/nuxt/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/nuxt/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/nuxt/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/nuxt/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/nuxt/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/nuxt/native-skills/vue-performance/SKILL.md +58 -0
- package/presets/mavis/nuxt/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/nuxt/rules/code-review-mr.md +19 -4
- package/presets/mavis/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +9 -3
- package/presets/mavis/php-hexagonal/README.md +3 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +101 -39
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-hexagonal/agents/task-router.md +2 -0
- package/presets/mavis/php-hexagonal/commands/README.md +1 -0
- package/presets/mavis/php-hexagonal/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/php-hexagonal/commands/task.md +4 -0
- package/presets/mavis/php-hexagonal/commands/update.md +1 -0
- package/presets/mavis/php-hexagonal/hooks/README.md +29 -7
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/php-hexagonal/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-hexagonal/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-hexagonal/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-hexagonal/native-skills/README.md +15 -0
- package/presets/mavis/php-hexagonal/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-hexagonal/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-hexagonal/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-hexagonal/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-hexagonal/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-hexagonal/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-hexagonal/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-hexagonal/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-laravel/MAVIS.md +9 -3
- package/presets/mavis/php-laravel/README.md +3 -1
- package/presets/mavis/php-laravel/adapter-map.json +101 -39
- package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-laravel/agents/task-router.md +2 -0
- package/presets/mavis/php-laravel/commands/README.md +1 -0
- package/presets/mavis/php-laravel/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/php-laravel/commands/task.md +4 -0
- package/presets/mavis/php-laravel/commands/update.md +1 -0
- package/presets/mavis/php-laravel/hooks/README.md +29 -7
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/php-laravel/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-laravel/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-laravel/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-laravel/native-skills/README.md +15 -0
- package/presets/mavis/php-laravel/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-laravel/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-laravel/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-laravel/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-laravel/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-laravel/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-laravel/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-laravel/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-laravel/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-laravel/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-laravel/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/platform-contract.json +18 -5
- package/presets/mavis/svelte/MAVIS.md +9 -3
- package/presets/mavis/svelte/README.md +3 -1
- package/presets/mavis/svelte/adapter-map.json +116 -45
- package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
- package/presets/mavis/svelte/agents/task-router.md +3 -1
- package/presets/mavis/svelte/commands/README.md +1 -0
- package/presets/mavis/svelte/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/svelte/commands/task.md +4 -0
- package/presets/mavis/svelte/commands/update.md +1 -0
- package/presets/mavis/svelte/hooks/README.md +29 -7
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/svelte/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/svelte/hooks/run-hook.mjs +103 -0
- package/presets/mavis/svelte/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/svelte/native-skills/README.md +15 -0
- package/presets/mavis/svelte/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/svelte/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/svelte/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/svelte/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/svelte/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/svelte-performance/SKILL.md +57 -0
- package/presets/mavis/svelte/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/svelte/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/svelte/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/svelte/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/svelte/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/svelte/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/svelte/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/svelte/rules/code-review-mr.md +19 -4
- package/presets/mavis/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/android-kotlin/adapter-map.json +9 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/opencode/android-kotlin/agents/task-router.md +2 -0
- package/presets/opencode/android-kotlin/commands/README.md +1 -0
- package/presets/opencode/android-kotlin/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/android-kotlin/commands/task.md +4 -0
- package/presets/opencode/android-kotlin/commands/update.md +1 -0
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/go/adapter-map.json +9 -1
- package/presets/opencode/go/agents/code-reviewer.md +5 -1
- package/presets/opencode/go/agents/task-router.md +2 -0
- package/presets/opencode/go/commands/README.md +1 -0
- package/presets/opencode/go/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/go/commands/task.md +4 -0
- package/presets/opencode/go/commands/update.md +1 -0
- package/presets/opencode/go/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/go/rules/code-review-mr.md +19 -4
- package/presets/opencode/go/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/ios-swift/adapter-map.json +9 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/opencode/ios-swift/agents/task-router.md +2 -0
- package/presets/opencode/ios-swift/commands/README.md +1 -0
- package/presets/opencode/ios-swift/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/ios-swift/commands/task.md +4 -0
- package/presets/opencode/ios-swift/commands/update.md +1 -0
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/opencode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/java/adapter-map.json +9 -1
- package/presets/opencode/java/agents/code-reviewer.md +5 -1
- package/presets/opencode/java/agents/task-router.md +2 -0
- package/presets/opencode/java/commands/README.md +1 -0
- package/presets/opencode/java/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/java/commands/task.md +4 -0
- package/presets/opencode/java/commands/update.md +1 -0
- package/presets/opencode/java/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/java/rules/code-review-mr.md +19 -4
- package/presets/opencode/java/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/mcp-ts/adapter-map.json +9 -1
- package/presets/opencode/mcp-ts/agents/task-router.md +2 -0
- package/presets/opencode/mcp-ts/commands/README.md +1 -0
- package/presets/opencode/mcp-ts/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/mcp-ts/commands/task.md +4 -0
- package/presets/opencode/mcp-ts/commands/update.md +1 -0
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/REPO_AGENTS.md +1 -1
- package/presets/opencode/mol/adapter-map.json +9 -1
- package/presets/opencode/mol/agents/code-reviewer.md +5 -1
- package/presets/opencode/mol/agents/task-router.md +3 -1
- package/presets/opencode/mol/commands/README.md +1 -0
- package/presets/opencode/mol/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/mol/commands/task.md +4 -0
- package/presets/opencode/mol/commands/update.md +1 -0
- package/presets/opencode/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mol/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/next/REPO_AGENTS.md +1 -1
- package/presets/opencode/next/adapter-map.json +9 -1
- package/presets/opencode/next/agents/code-reviewer.md +5 -1
- package/presets/opencode/next/agents/task-router.md +3 -1
- package/presets/opencode/next/commands/README.md +1 -0
- package/presets/opencode/next/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/next/commands/task.md +4 -0
- package/presets/opencode/next/commands/ui-start.md +12 -4
- package/presets/opencode/next/commands/ui-stop.md +5 -2
- package/presets/opencode/next/commands/update.md +1 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/next/rules/code-review-mr.md +19 -4
- package/presets/opencode/next/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/nuxt/adapter-map.json +9 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/opencode/nuxt/agents/task-router.md +3 -1
- package/presets/opencode/nuxt/commands/README.md +1 -0
- package/presets/opencode/nuxt/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/nuxt/commands/task.md +4 -0
- package/presets/opencode/nuxt/commands/update.md +1 -0
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/opencode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +9 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-hexagonal/agents/task-router.md +2 -0
- package/presets/opencode/php-hexagonal/commands/README.md +1 -0
- package/presets/opencode/php-hexagonal/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/php-hexagonal/commands/task.md +4 -0
- package/presets/opencode/php-hexagonal/commands/update.md +1 -0
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-laravel/adapter-map.json +9 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-laravel/agents/task-router.md +2 -0
- package/presets/opencode/php-laravel/commands/README.md +1 -0
- package/presets/opencode/php-laravel/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/php-laravel/commands/task.md +4 -0
- package/presets/opencode/php-laravel/commands/update.md +1 -0
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/plugins/task-status/README.md +16 -7
- package/presets/opencode/plugins/task-status/deepseek.ts +217 -0
- package/presets/opencode/plugins/task-status/details-data.ts +39 -2
- package/presets/opencode/plugins/task-status/prompt-text.ts +18 -8
- package/presets/opencode/plugins/task-status/task-view.ts +253 -63
- package/presets/opencode/plugins/task-status/tui.tsx +48 -11
- package/presets/opencode/svelte/adapter-map.json +9 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
- package/presets/opencode/svelte/agents/task-router.md +3 -1
- package/presets/opencode/svelte/commands/README.md +1 -0
- package/presets/opencode/svelte/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/svelte/commands/task.md +4 -0
- package/presets/opencode/svelte/commands/update.md +1 -0
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/svelte/rules/code-review-mr.md +19 -4
- package/presets/opencode/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/android-kotlin/adapter-map.json +9 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/zcode/android-kotlin/agents/task-router.md +2 -0
- package/presets/zcode/android-kotlin/commands/README.md +1 -0
- package/presets/zcode/android-kotlin/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/android-kotlin/commands/task.md +4 -0
- package/presets/zcode/android-kotlin/commands/update.md +1 -0
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/go/adapter-map.json +9 -1
- package/presets/zcode/go/agents/code-reviewer.md +5 -1
- package/presets/zcode/go/agents/task-router.md +2 -0
- package/presets/zcode/go/commands/README.md +1 -0
- package/presets/zcode/go/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/go/commands/task.md +4 -0
- package/presets/zcode/go/commands/update.md +1 -0
- package/presets/zcode/go/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/go/rules/code-review-mr.md +19 -4
- package/presets/zcode/go/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/ios-swift/adapter-map.json +9 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/zcode/ios-swift/agents/task-router.md +2 -0
- package/presets/zcode/ios-swift/commands/README.md +1 -0
- package/presets/zcode/ios-swift/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/ios-swift/commands/task.md +4 -0
- package/presets/zcode/ios-swift/commands/update.md +1 -0
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/zcode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/java/adapter-map.json +9 -1
- package/presets/zcode/java/agents/code-reviewer.md +5 -1
- package/presets/zcode/java/agents/task-router.md +2 -0
- package/presets/zcode/java/commands/README.md +1 -0
- package/presets/zcode/java/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/java/commands/task.md +4 -0
- package/presets/zcode/java/commands/update.md +1 -0
- package/presets/zcode/java/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/java/rules/code-review-mr.md +19 -4
- package/presets/zcode/java/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/mcp-ts/adapter-map.json +9 -1
- package/presets/zcode/mcp-ts/agents/task-router.md +2 -0
- package/presets/zcode/mcp-ts/commands/README.md +1 -0
- package/presets/zcode/mcp-ts/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/mcp-ts/commands/task.md +4 -0
- package/presets/zcode/mcp-ts/commands/update.md +1 -0
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/REPO_AGENTS.md +1 -1
- package/presets/zcode/mol/adapter-map.json +9 -1
- package/presets/zcode/mol/agents/code-reviewer.md +5 -1
- package/presets/zcode/mol/agents/task-router.md +3 -1
- package/presets/zcode/mol/commands/README.md +1 -0
- package/presets/zcode/mol/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/mol/commands/task.md +4 -0
- package/presets/zcode/mol/commands/update.md +1 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mol/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/next/REPO_AGENTS.md +1 -1
- package/presets/zcode/next/adapter-map.json +9 -1
- package/presets/zcode/next/agents/code-reviewer.md +5 -1
- package/presets/zcode/next/agents/task-router.md +3 -1
- package/presets/zcode/next/commands/README.md +1 -0
- package/presets/zcode/next/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/next/commands/task.md +4 -0
- package/presets/zcode/next/commands/ui-start.md +12 -4
- package/presets/zcode/next/commands/ui-stop.md +5 -2
- package/presets/zcode/next/commands/update.md +1 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/next/rules/code-review-mr.md +19 -4
- package/presets/zcode/next/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/nuxt/adapter-map.json +9 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/zcode/nuxt/agents/task-router.md +3 -1
- package/presets/zcode/nuxt/commands/README.md +1 -0
- package/presets/zcode/nuxt/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/nuxt/commands/task.md +4 -0
- package/presets/zcode/nuxt/commands/update.md +1 -0
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/zcode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +9 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-hexagonal/agents/task-router.md +2 -0
- package/presets/zcode/php-hexagonal/commands/README.md +1 -0
- package/presets/zcode/php-hexagonal/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/php-hexagonal/commands/task.md +4 -0
- package/presets/zcode/php-hexagonal/commands/update.md +1 -0
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-laravel/adapter-map.json +9 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-laravel/agents/task-router.md +2 -0
- package/presets/zcode/php-laravel/commands/README.md +1 -0
- package/presets/zcode/php-laravel/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/php-laravel/commands/task.md +4 -0
- package/presets/zcode/php-laravel/commands/update.md +1 -0
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/svelte/adapter-map.json +9 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
- package/presets/zcode/svelte/agents/task-router.md +3 -1
- package/presets/zcode/svelte/commands/README.md +1 -0
- package/presets/zcode/svelte/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/svelte/commands/task.md +4 -0
- package/presets/zcode/svelte/commands/update.md +1 -0
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/svelte/rules/code-review-mr.md +19 -4
- package/presets/zcode/svelte/skills/code-review/SKILL.md +2 -1
|
@@ -857,6 +857,62 @@ ALTER TABLE review_ledger ADD COLUMN due TEXT;
|
|
|
857
857
|
ALTER TABLE review_ledger ADD COLUMN follow_up TEXT;
|
|
858
858
|
`;
|
|
859
859
|
|
|
860
|
+
/**
|
|
861
|
+
* Migration 9: the repository registry projection. Two tables; `status` is
|
|
862
|
+
* validated on write rather than by a `CHECK`, so a hand-edited file still
|
|
863
|
+
* projects its row. `task_slug` carries no foreign key on purpose: a link may
|
|
864
|
+
* name a folder that is not projected yet, and `tasks` rows are pruned while
|
|
865
|
+
* the file keeps naming them.
|
|
866
|
+
*/
|
|
867
|
+
export const REPOSITORIES_SQL = SQL`CREATE TABLE repositories (
|
|
868
|
+
id TEXT PRIMARY KEY,
|
|
869
|
+
name TEXT NOT NULL,
|
|
870
|
+
locator TEXT NOT NULL,
|
|
871
|
+
description TEXT,
|
|
872
|
+
labels_json TEXT,
|
|
873
|
+
status TEXT NOT NULL,
|
|
874
|
+
revision INTEGER NOT NULL CHECK (revision >= 1),
|
|
875
|
+
created_at TEXT NOT NULL,
|
|
876
|
+
updated_at TEXT NOT NULL,
|
|
877
|
+
content_hash TEXT NOT NULL,
|
|
878
|
+
parse_error TEXT,
|
|
879
|
+
projected_at TEXT NOT NULL,
|
|
880
|
+
first_seen_at TEXT NOT NULL,
|
|
881
|
+
last_seen_at TEXT NOT NULL,
|
|
882
|
+
absent_at TEXT
|
|
883
|
+
) STRICT;
|
|
884
|
+
|
|
885
|
+
CREATE TABLE task_repositories (
|
|
886
|
+
task_slug TEXT NOT NULL,
|
|
887
|
+
repository_id TEXT NOT NULL REFERENCES repositories(id) ON DELETE CASCADE,
|
|
888
|
+
added_at TEXT NOT NULL,
|
|
889
|
+
source TEXT NOT NULL,
|
|
890
|
+
inference TEXT NOT NULL,
|
|
891
|
+
evidence TEXT NOT NULL,
|
|
892
|
+
content_hash TEXT NOT NULL,
|
|
893
|
+
projected_at TEXT NOT NULL,
|
|
894
|
+
PRIMARY KEY (task_slug, repository_id)
|
|
895
|
+
) STRICT;
|
|
896
|
+
|
|
897
|
+
CREATE INDEX idx_repositories_absent ON repositories(absent_at);
|
|
898
|
+
CREATE INDEX idx_repositories_status_name ON repositories(status, name COLLATE NOCASE);
|
|
899
|
+
CREATE INDEX idx_task_repositories_repository ON task_repositories(repository_id);
|
|
900
|
+
`;
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Migration 10: one verdict per task that resolved to no repository, so the
|
|
904
|
+
* task detail can tell "not recorded" from "attribution ambiguous" without a
|
|
905
|
+
* file read in a route. `evidence`, `recordedAt` and `source` stay in the file
|
|
906
|
+
* because no operation serves them.
|
|
907
|
+
*/
|
|
908
|
+
export const REPOSITORY_ATTRIBUTIONS_SQL = SQL`CREATE TABLE task_repository_attributions (
|
|
909
|
+
task_slug TEXT PRIMARY KEY,
|
|
910
|
+
verdict TEXT NOT NULL,
|
|
911
|
+
content_hash TEXT NOT NULL,
|
|
912
|
+
projected_at TEXT NOT NULL
|
|
913
|
+
) STRICT;
|
|
914
|
+
`;
|
|
915
|
+
|
|
860
916
|
const sha256 = (value) => crypto.createHash('sha256').update(value).digest('hex');
|
|
861
917
|
/**
|
|
862
918
|
* Ordered, immutable migrations. The literal checksum is verified before any
|
|
@@ -911,6 +967,18 @@ export const MIGRATIONS = [
|
|
|
911
967
|
sql: LEDGER_OWNER_SQL,
|
|
912
968
|
checksum: '31279ac1f6ba980e10d79fef8aa97226d4afcb4cee0bdf8fbc3f1d0d286f2349',
|
|
913
969
|
},
|
|
970
|
+
{
|
|
971
|
+
version: 9,
|
|
972
|
+
name: '0009-repositories',
|
|
973
|
+
sql: REPOSITORIES_SQL,
|
|
974
|
+
checksum: 'bffba731a590f8d59bb8f59c99316742570aba6b2ea524b0346cd92c1f90d25d',
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
version: 10,
|
|
978
|
+
name: '0010-repository-attributions',
|
|
979
|
+
sql: REPOSITORY_ATTRIBUTIONS_SQL,
|
|
980
|
+
checksum: '4677b2b62b5b9c8cb571f5706abac97487175c8251facdab6b42bf2371f2720e',
|
|
981
|
+
},
|
|
914
982
|
];
|
|
915
983
|
|
|
916
984
|
/** Highest migration version shipped by this module. */
|
|
@@ -173,8 +173,12 @@ export const linkIdOf = (itemId, taskSlug) => `${itemId}--${taskSlug}`;
|
|
|
173
173
|
export const sequenceFilePath = (teamRoot) => path.join(trackerPaths(teamRoot).root, 'sequence.json');
|
|
174
174
|
const idMigrationFilePath = (teamRoot) => path.join(trackerPaths(teamRoot).root, 'id-migration.json');
|
|
175
175
|
|
|
176
|
-
/**
|
|
177
|
-
|
|
176
|
+
/**
|
|
177
|
+
* The monotonic item-id sequence; max(existing) covers a lost sequence file.
|
|
178
|
+
* Peek reserves without consuming: the caller commits only after the item passes
|
|
179
|
+
* validation, so a rejected payload never burns an id.
|
|
180
|
+
*/
|
|
181
|
+
const peekItemId = (teamRoot) => {
|
|
178
182
|
const current = listItemIds(teamRoot).reduce((max, id) => Math.max(max, id), 0);
|
|
179
183
|
let reserved = 0;
|
|
180
184
|
try {
|
|
@@ -183,9 +187,11 @@ const nextItemId = (teamRoot) => {
|
|
|
183
187
|
} catch {
|
|
184
188
|
/* a missing or unreadable sequence falls back to the file maximum */
|
|
185
189
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
return Math.max(current + 1, reserved, 1);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const commitItemId = (teamRoot, id) => {
|
|
194
|
+
writeAtomic(sequenceFilePath(teamRoot), `${JSON.stringify({ schemaVersion: 1, nextId: id + 1 }, null, 2)}\n`);
|
|
189
195
|
};
|
|
190
196
|
|
|
191
197
|
/** Both directories are created on first write (`mkdir -p` inside the CLI). */
|
|
@@ -963,7 +969,7 @@ export function addTrackerItem(teamRoot, payload, options = {}) {
|
|
|
963
969
|
if (!isRecord(payload)) reject('E_SCHEMA', 'tracker add payload must be an object');
|
|
964
970
|
return withTrackerLock(teamRoot, () => {
|
|
965
971
|
const items = readAllItems(teamRoot);
|
|
966
|
-
const id =
|
|
972
|
+
const id = peekItemId(teamRoot);
|
|
967
973
|
const now = nowIso();
|
|
968
974
|
const createdAt = payload.createdAt ?? now;
|
|
969
975
|
const item = {
|
|
@@ -991,6 +997,7 @@ export function addTrackerItem(teamRoot, payload, options = {}) {
|
|
|
991
997
|
validateItemIdentity(item, id);
|
|
992
998
|
validateItemGraph(item, items);
|
|
993
999
|
validateTransition(null, item);
|
|
1000
|
+
commitItemId(teamRoot, id);
|
|
994
1001
|
writeItemFile(teamRoot, item);
|
|
995
1002
|
return item;
|
|
996
1003
|
});
|
|
@@ -1031,8 +1038,12 @@ export function setTrackerItem(teamRoot, id, payload, options = {}) {
|
|
|
1031
1038
|
type = 'deps-changed';
|
|
1032
1039
|
}
|
|
1033
1040
|
next.history = capHistory([...(existing.history ?? []), { at: now, type, actor, detail: null }], MAX_ITEM_HISTORY);
|
|
1034
|
-
|
|
1035
|
-
|
|
1041
|
+
// A terminal item closes its open requests in the same transaction: `done`
|
|
1042
|
+
// is derived from the task row and never stored, so a completed item would
|
|
1043
|
+
// otherwise leave a `claimed` entry that `prune` can never retire.
|
|
1044
|
+
const terminalDetail = { cancelled: 'item-cancelled', superseded: 'item-superseded', completed: 'item-completed' }[next.status];
|
|
1045
|
+
if (terminalDetail !== undefined && next.status !== existing.status) {
|
|
1046
|
+
expireEntriesForItem(teamRoot, id, terminalDetail, actor);
|
|
1036
1047
|
}
|
|
1037
1048
|
writeItemFile(teamRoot, next);
|
|
1038
1049
|
return next;
|
|
@@ -1626,10 +1637,18 @@ export function drainTracker(teamRoot, { claim = false, actor = 'operator' } = {
|
|
|
1626
1637
|
export function pruneTrackerEntries(teamRoot, { olderThanDays = DEFAULT_PRUNE_DAYS } = {}) {
|
|
1627
1638
|
return withTrackerLock(teamRoot, () => {
|
|
1628
1639
|
const cutoff = Date.now() - olderThanDays * 24 * 60 * 60 * 1000;
|
|
1640
|
+
const taskStates = readTaskStates(teamRoot);
|
|
1629
1641
|
let pruned = 0;
|
|
1630
1642
|
for (const [entryId, entry] of readAllEntries(teamRoot)) {
|
|
1631
|
-
|
|
1632
|
-
|
|
1643
|
+
// `done` is derived from the task row and never stored: a completed item's
|
|
1644
|
+
// entry stays `claimed`, so the stored vocabulary alone cannot retire it.
|
|
1645
|
+
const taskSlug = entry.taskSlug ?? `tracker-${entry.itemId}`;
|
|
1646
|
+
const effective = effectiveEntryStatus(entry, taskStates.get(taskSlug) ?? null);
|
|
1647
|
+
if (!['cancelled', 'expired', 'done'].includes(effective)) continue;
|
|
1648
|
+
// A derived-done entry has no finish time of its own; its last known
|
|
1649
|
+
// activity is the oldest evidence of when the request left the queue.
|
|
1650
|
+
const endedAt = entry.finishedAt ?? entry.claimedAt ?? entry.requestedAt;
|
|
1651
|
+
if (!endedAt || Date.parse(endedAt) >= cutoff) continue;
|
|
1633
1652
|
fs.rmSync(entryFilePath(teamRoot, entryId), { force: true });
|
|
1634
1653
|
pruned += 1;
|
|
1635
1654
|
}
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
* jobs enable|disable <id> [--root <team-dir>] [--json]
|
|
26
26
|
* jobs reconcile [--root <team-dir>] [--json]
|
|
27
27
|
* jobs run --id <id> [--root <team-dir>] [--json]
|
|
28
|
+
* repositories list|project [--root <team-dir>] [--json] [--quiet]
|
|
29
|
+
* repositories apply --file <path|-> [--dry-run] [--root <team-dir>] [--json]
|
|
30
|
+
* repositories put --file <path|-> [--dry-run] [--root <team-dir>] [--json]
|
|
31
|
+
* repositories delete <id> [--force] [--revision <n>] [--root <team-dir>]
|
|
32
|
+
* [--json] the repository registry and its projection
|
|
28
33
|
* schedule [--root <team-dir>] [--once] [--interval-ms <n>] [--grace-ms <n>]
|
|
29
34
|
* [--drain-ms <n>] [--json] [--quiet] the scheduler timer
|
|
30
35
|
* tracker add|set|show|list|ready|validate|import|enqueue|cancel|drain|recover|prune
|
|
@@ -72,6 +77,7 @@ import {
|
|
|
72
77
|
LEDGER_HEADER_ROW,
|
|
73
78
|
listTaskDirectories,
|
|
74
79
|
parseReviewLedgerMarkdown,
|
|
80
|
+
runRepositoriesCommand,
|
|
75
81
|
searchProjection,
|
|
76
82
|
syncProjection,
|
|
77
83
|
syncTrackerProjection,
|
|
@@ -106,6 +112,10 @@ const USAGE = `usage:
|
|
|
106
112
|
team-db.mjs jobs enable|disable <id> [--root <team-dir>] [--json]
|
|
107
113
|
team-db.mjs jobs reconcile [--root <team-dir>] [--json]
|
|
108
114
|
team-db.mjs jobs run --id <id> [--root <team-dir>] [--json]
|
|
115
|
+
team-db.mjs repositories list|project [--root <team-dir>] [--json] [--quiet]
|
|
116
|
+
team-db.mjs repositories apply --file <path|-> [--dry-run] [--root <team-dir>] [--json]
|
|
117
|
+
team-db.mjs repositories put --file <path|-> [--dry-run] [--root <team-dir>] [--json]
|
|
118
|
+
team-db.mjs repositories delete <id> [--force] [--revision <n>] [--root <team-dir>] [--json]
|
|
109
119
|
team-db.mjs schedule [--root <team-dir>] [--once] [--interval-ms <n>]
|
|
110
120
|
[--grace-ms <n>] [--drain-ms <n>] [--json] [--quiet]
|
|
111
121
|
team-db.mjs tracker add --file <path|-> [--root <team-dir>] [--json] [--quiet]
|
|
@@ -140,6 +150,7 @@ const VALUE_FLAGS = new Set([
|
|
|
140
150
|
'link',
|
|
141
151
|
'run',
|
|
142
152
|
'limit',
|
|
153
|
+
'revision',
|
|
143
154
|
]);
|
|
144
155
|
const BOOLEAN_FLAGS = new Set([
|
|
145
156
|
'quiet',
|
|
@@ -158,8 +169,9 @@ const BOOLEAN_FLAGS = new Set([
|
|
|
158
169
|
'once',
|
|
159
170
|
'ready',
|
|
160
171
|
'claim',
|
|
172
|
+
'force',
|
|
161
173
|
]);
|
|
162
|
-
const COMMANDS = new Set(['init', 'check', 'search', 'sync', 'delete', 'migrate-tasks', 'ledger-check', 'serve', 'jobs', 'schedule', 'tracker', 'task-run']);
|
|
174
|
+
const COMMANDS = new Set(['init', 'check', 'search', 'sync', 'delete', 'migrate-tasks', 'ledger-check', 'serve', 'jobs', 'schedule', 'tracker', 'task-run', 'repositories']);
|
|
163
175
|
const ALLOWED_FLAGS = {
|
|
164
176
|
init: new Set(['root', 'rebuild']),
|
|
165
177
|
check: new Set(['root']),
|
|
@@ -173,6 +185,7 @@ const ALLOWED_FLAGS = {
|
|
|
173
185
|
schedule: new Set(['root', 'json', 'quiet', 'once', 'interval-ms', 'grace-ms', 'drain-ms']),
|
|
174
186
|
tracker: new Set(['root', 'json', 'quiet', 'file', 'dry-run', 'older-than', 'status', 'ready', 'claim']),
|
|
175
187
|
'task-run': new Set(['root', 'json', 'task', 'item', 'link', 'run']),
|
|
188
|
+
repositories: new Set(['root', 'json', 'quiet', 'file', 'dry-run', 'force', 'revision']),
|
|
176
189
|
};
|
|
177
190
|
|
|
178
191
|
const JOBS_POSITIONALS = new Set([
|
|
@@ -207,10 +220,13 @@ const TRACKER_POSITIONALS = new Set([
|
|
|
207
220
|
|
|
208
221
|
const TASK_RUN_POSITIONALS = new Set(['start', 'stop', 'supervise', 'list', 'show', 'status', 'ensure']);
|
|
209
222
|
|
|
223
|
+
const REPOSITORIES_POSITIONALS = new Set(['list', 'project', 'apply', 'put', 'delete']);
|
|
224
|
+
|
|
210
225
|
const POSITIONAL_VERBS = {
|
|
211
226
|
jobs: JOBS_POSITIONALS,
|
|
212
227
|
tracker: TRACKER_POSITIONALS,
|
|
213
228
|
'task-run': TASK_RUN_POSITIONALS,
|
|
229
|
+
repositories: REPOSITORIES_POSITIONALS,
|
|
214
230
|
};
|
|
215
231
|
|
|
216
232
|
const parseArgs = (argv) => {
|
|
@@ -574,6 +590,34 @@ const runJobs = (flags, positionals) => {
|
|
|
574
590
|
}
|
|
575
591
|
};
|
|
576
592
|
|
|
593
|
+
const runRepositories = (flags, positionals) => {
|
|
594
|
+
const [subcommand = 'list', positionalId] = positionals;
|
|
595
|
+
try {
|
|
596
|
+
const result = runRepositoriesCommand(subcommand, positionalId ? [positionalId] : [], {
|
|
597
|
+
root: flags.root,
|
|
598
|
+
json: Boolean(flags.json),
|
|
599
|
+
quiet: Boolean(flags.quiet),
|
|
600
|
+
file: flags.file,
|
|
601
|
+
dryRun: Boolean(flags['dry-run']),
|
|
602
|
+
force: Boolean(flags.force),
|
|
603
|
+
revision: flags.revision === undefined ? undefined : Number(flags.revision),
|
|
604
|
+
});
|
|
605
|
+
if (result.output) process.stdout.write(result.output);
|
|
606
|
+
return result.exitCode;
|
|
607
|
+
} catch (error) {
|
|
608
|
+
const code = error instanceof TeamDbError ? error.code : 'E_INTERNAL';
|
|
609
|
+
const exitCode = error instanceof TeamDbError ? error.exitCode : 2;
|
|
610
|
+
const failure = { ok: false, code, message: error.message };
|
|
611
|
+
if (error instanceof TeamDbError && typeof error.parameter === 'string') failure.parameter = error.parameter;
|
|
612
|
+
// The delete guard names the linked-task count; the API lifts it into
|
|
613
|
+
// `details.linkedTasks` without parsing prose.
|
|
614
|
+
if (error && Number.isInteger(error.linkedTasks)) failure.linkedTasks = error.linkedTasks;
|
|
615
|
+
if (flags.json) process.stdout.write(`${JSON.stringify(failure)}\n`);
|
|
616
|
+
process.stderr.write(`${error.message}\n`);
|
|
617
|
+
return exitCode;
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
|
|
577
621
|
const runTaskRunner = async (flags, positionals) => {
|
|
578
622
|
const [subcommand = 'status'] = positionals;
|
|
579
623
|
try {
|
|
@@ -739,6 +783,7 @@ export async function runCli(argv) {
|
|
|
739
783
|
if (command === 'ledger-check') return runLedgerCheck(flags);
|
|
740
784
|
if (command === 'serve') return runServe(flags);
|
|
741
785
|
if (command === 'jobs') return runJobs(flags, positionals);
|
|
786
|
+
if (command === 'repositories') return runRepositories(flags, positionals);
|
|
742
787
|
if (command === 'tracker') return runTracker(flags, positionals);
|
|
743
788
|
if (command === 'task-run') return runTaskRunner(flags, positionals);
|
|
744
789
|
if (command === 'schedule') return runSchedule(flags);
|
|
@@ -126,6 +126,7 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
|
|
|
126
126
|
- Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs. Every write is a whole-file merge through `node .ai.local/scripts/manifest.mjs upsert …` under `.manifest.lock` (see the installed `team/README.md` § artifact-manifest.json — write protocol); the parent does not need to serialize merges, and a fragment/replace edit of the JSON is forbidden. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
|
|
127
127
|
- The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
|
|
128
128
|
- Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
|
|
129
|
+
- A step that names a gate agent (`build-verifier`, `code-reviewer`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, `performance-auditor`) is a promise the plan made to the diff: the hook blocks `completed` while its receipt is missing, with or without `.ai.local/pipeline-gates.json`. An intentional skip is recorded in `status.skippedSteps` with its reason — never by dropping the step quietly.
|
|
129
130
|
|
|
130
131
|
## Out-of-band producer passes
|
|
131
132
|
|
|
@@ -25,7 +25,7 @@ Concrete rule stems — in **Stack notes**.
|
|
|
25
25
|
|
|
26
26
|
## Depth passes
|
|
27
27
|
|
|
28
|
-
A diff-shaped read is a floor, not a review. Run these
|
|
28
|
+
A diff-shaped read is a floor, not a review. Run these six passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
|
|
29
29
|
|
|
30
30
|
- **`finding`** — reported like any other finding, with `path:line`.
|
|
31
31
|
- **`no finding`** — with one line of evidence: what was searched or read.
|
|
@@ -39,10 +39,11 @@ An outcome word alone is not a record: `no finding` without its evidence line, o
|
|
|
39
39
|
3. **Trust boundary** — which data crosses a trust boundary in this change, and where is it validated. Data reaching storage, logs, HTML, SQL, shell, or an outbound request without an edge check is a finding.
|
|
40
40
|
4. **Test gap** — not "is there a test" but "which behaviour change would still pass every existing test". That gap is the finding.
|
|
41
41
|
5. **Half-life** — what breaks in six months: hidden coupling, implicit contract, missing migration, an unowned copy of the same rule.
|
|
42
|
+
6. **Executable surface** — when the diff touches anything that runs outside app code (`*.mjs`, hooks, `scripts/`, CI steps): state the working directory the code assumes, quote every path spliced into a shell string, and check that a spawn cannot kill or truncate the command it wraps. A config-derived value written into storage carries no credential, and a migration or scan re-runs with a stable id.
|
|
42
43
|
|
|
43
44
|
## Review breadth budget
|
|
44
45
|
|
|
45
|
-
- Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The
|
|
46
|
+
- Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The six depth passes still run on what was read.
|
|
46
47
|
- Budget: the changed exports, types, routes, and events in the diff, plus one hop of their consumers. Read no consumer that neither the diff nor a recorded finding names.
|
|
47
48
|
- Stop when either limit is reached: 40 changed-symbol call sites, or 15 minutes of breadth reads on one review.
|
|
48
49
|
- When the budget is exhausted, stop the sweep and record `partial` in `## Depth passes` for the call-site sweep, with every unread path or glob named inline.
|
|
@@ -65,8 +66,22 @@ Procedure details live in skill `code-review`. Required shape:
|
|
|
65
66
|
- Confidence is not a second severity: the verdict and the receipt still map from severity alone. A `blocker` at `low` confidence stands only with that confirming check named.
|
|
66
67
|
- Rank by severity: **`blocker` | `important` | `nit`** (list blocker → nit).
|
|
67
68
|
- Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
|
|
68
|
-
-
|
|
69
|
-
-
|
|
69
|
+
- A behaviour you cannot settle by reading is a **question, not silence**. Put it under `## Open questions` as `- <question> — check: <the one check that would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`; leaving it out because it is unproven is the failure this section exists to prevent.
|
|
70
|
+
- End with a verdict on its own line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` is allowed only with no `blocker`/`important` finding and at least one open question; the terminal receipt stays `completed`. A silent `Safe to merge` over an open question is not a verdict.
|
|
71
|
+
- Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it. A depth pass recorded `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge` until the check runs or a human accepts it in writing.
|
|
72
|
+
|
|
73
|
+
## Review without an acceptance criterion
|
|
74
|
+
|
|
75
|
+
A change-set that no brief, decomposition, or plan names is still reviewable: the diff is the scope, and the verdict rests on it alone. State in `## Not verified` that no AC existed; absence of an AC is a scope fact, never a review exemption. When the plan is missing, review against these classes; a class you cannot settle by reading becomes an `## Open question`:
|
|
76
|
+
|
|
77
|
+
- null/undefined after `JSON.parse`, a missing key, or a shape the producer never promised;
|
|
78
|
+
- empty, boundary, repeated, and concurrent inputs;
|
|
79
|
+
- resource limits: buffers, timeouts, retries, exit codes, stdio;
|
|
80
|
+
- secrets and credentials reaching logs, files, URLs, or an outbound request;
|
|
81
|
+
- path resolution that assumes a cwd; quoting of argv and of interpolated shell;
|
|
82
|
+
- idempotency of migrations, re-runs, and partial failures;
|
|
83
|
+
- machine-local runtime state that a commit would carry;
|
|
84
|
+
- a second unowned copy of a rule that already exists elsewhere.
|
|
70
85
|
|
|
71
86
|
## Verdict and terminal receipt
|
|
72
87
|
|
|
@@ -1375,6 +1375,40 @@ function missingConsumerArtifacts() {
|
|
|
1375
1375
|
);
|
|
1376
1376
|
return ids.filter((id) => !done.has(id));
|
|
1377
1377
|
}
|
|
1378
|
+
// A step that names a gate agent is a promise the plan made to the diff. The
|
|
1379
|
+
// consumer config is optional, but a declared gate is not: an unreviewed diff
|
|
1380
|
+
// completed while the plan said "code-reviewer" reads as a passed review.
|
|
1381
|
+
// A step the run skipped (status.skippedSteps) or skipIf-matched never promised
|
|
1382
|
+
// anything, so it is not required here.
|
|
1383
|
+
const GATE_AGENTS = new Set([
|
|
1384
|
+
'build-verifier',
|
|
1385
|
+
'code-reviewer',
|
|
1386
|
+
'mockup-reviewer',
|
|
1387
|
+
'security-reviewer',
|
|
1388
|
+
'accessibility-reviewer',
|
|
1389
|
+
'api-contract-reviewer',
|
|
1390
|
+
'performance-auditor',
|
|
1391
|
+
]);
|
|
1392
|
+
function missingDeclaredGateArtifacts() {
|
|
1393
|
+
if (steps.length === 0) return [];
|
|
1394
|
+
let manifest = { artifacts: [] };
|
|
1395
|
+
try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
|
|
1396
|
+
const done = new Set(
|
|
1397
|
+
(manifest.artifacts || [])
|
|
1398
|
+
.filter((artifact) => artifact && artifact.status === 'completed')
|
|
1399
|
+
.map((artifact) => artifact.id),
|
|
1400
|
+
);
|
|
1401
|
+
const missing = [];
|
|
1402
|
+
steps.forEach((step, index) => {
|
|
1403
|
+
if (!step || isStepSkipped(index)) return;
|
|
1404
|
+
for (const agent of getStepAgents(step)) {
|
|
1405
|
+
if (!GATE_AGENTS.has(agent)) continue;
|
|
1406
|
+
const id = artifactOutputIdFor(step, agent);
|
|
1407
|
+
if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
return [...new Set(missing)];
|
|
1411
|
+
}
|
|
1378
1412
|
function completePipeline(statusPatch) {
|
|
1379
1413
|
const missing = missingConsumerArtifacts();
|
|
1380
1414
|
if (missing.length > 0) {
|
|
@@ -1382,6 +1416,12 @@ function completePipeline(statusPatch) {
|
|
|
1382
1416
|
out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
|
|
1383
1417
|
process.exit(0);
|
|
1384
1418
|
}
|
|
1419
|
+
const missingGates = missingDeclaredGateArtifacts();
|
|
1420
|
+
if (missingGates.length > 0) {
|
|
1421
|
+
writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
|
|
1422
|
+
out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
|
|
1423
|
+
process.exit(0);
|
|
1424
|
+
}
|
|
1385
1425
|
// task_completed is written only on this branch. A missing receipt blocks
|
|
1386
1426
|
// above and must not be counted as a finished task.
|
|
1387
1427
|
status.state = 'completed';
|
|
@@ -2796,6 +2836,10 @@ if (status.state === 'awaiting_artifact_receipt') {
|
|
|
2796
2836
|
emitArtifactStall(artifactStallMessage, !wasWaitingForReceipt);
|
|
2797
2837
|
process.exit(0);
|
|
2798
2838
|
}
|
|
2839
|
+
// Snapshot before `finishActiveAttempt` writes `lastCompletedAttempt`: the
|
|
2840
|
+
// repositories intake gate judges a task at its first receipt, so a folder whose
|
|
2841
|
+
// first step already completed is never re-judged.
|
|
2842
|
+
const hadPriorCompletion = Boolean(status.lastCompletedAttempt);
|
|
2799
2843
|
let finishedAttempt = finishActiveAttempt();
|
|
2800
2844
|
// The just-finished attempt's metric is already written; a pause now blocks
|
|
2801
2845
|
// every handoff, including the unattributable-stop repair path below.
|
|
@@ -2823,7 +2867,7 @@ if (!finishedAttempt && activeAttemptCountBeforeFinish > 0) {
|
|
|
2823
2867
|
}
|
|
2824
2868
|
}
|
|
2825
2869
|
endHumanGateIfResumed();
|
|
2826
|
-
if (steps.length === 0
|
|
2870
|
+
if (steps.length === 0) {
|
|
2827
2871
|
writeStatus({});
|
|
2828
2872
|
process.stdout.write('{}');
|
|
2829
2873
|
process.exit(0);
|
|
@@ -2870,6 +2914,70 @@ const waveIndexes = activeWave
|
|
|
2870
2914
|
? [idx]
|
|
2871
2915
|
: (isGraphMode() && finishedAttempt ? [completedStepIndex] : null));
|
|
2872
2916
|
|
|
2917
|
+
/**
|
|
2918
|
+
* Intake invariant: a task records which repositories it touches — or says that
|
|
2919
|
+
* it does not know. Judged on the first receipt of a task: the router's, or the
|
|
2920
|
+
* first step's when a pipeline runs without one. A task that already completed a
|
|
2921
|
+
* step predates the invariant and is never re-judged.
|
|
2922
|
+
* `intakeExemption: { approvedBy, reason, at }` is the recorded escape hatch; a
|
|
2923
|
+
* bare boolean does not count, so an exemption always names who approved it. The
|
|
2924
|
+
* shape mirrors `check-task-repositories.mjs`, which audits the same field after
|
|
2925
|
+
* the fact.
|
|
2926
|
+
*/
|
|
2927
|
+
const REPOSITORY_INFERENCES = new Set(['evidence-paths', 'repo-scope-only', 'unknown', 'ambiguous']);
|
|
2928
|
+
const EXEMPTION_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
2929
|
+
function repositoriesIntakeViolation(record) {
|
|
2930
|
+
if (!record) return 'has no `repositories` array';
|
|
2931
|
+
const ids = record.repositories;
|
|
2932
|
+
const inference = record.repositoriesInference;
|
|
2933
|
+
if (!Array.isArray(ids)) return 'carries no `repositories` array';
|
|
2934
|
+
if (ids.some((id) => typeof id !== 'string' || id.trim() === '')) return 'carries a `repositories` entry that is not a non-empty registry id';
|
|
2935
|
+
if (ids.length === 0) {
|
|
2936
|
+
return inference === 'unknown' ? null : 'carries `repositories: []` without `"repositoriesInference": "unknown"`';
|
|
2937
|
+
}
|
|
2938
|
+
if (inference !== undefined && !REPOSITORY_INFERENCES.has(inference)) return `carries an unknown \`repositoriesInference\` value "${inference}"`;
|
|
2939
|
+
if (inference === 'unknown') return 'lists repositories beside `"repositoriesInference": "unknown"`';
|
|
2940
|
+
let known = null;
|
|
2941
|
+
try {
|
|
2942
|
+
const registry = JSON.parse(fs.readFileSync(path.join(TEAM_ROOT, 'repositories.json'), 'utf8'));
|
|
2943
|
+
known = new Set((Array.isArray(registry.repositories) ? registry.repositories : []).map((row) => row && row.id).filter((id) => typeof id === 'string'));
|
|
2944
|
+
} catch { known = null; }
|
|
2945
|
+
if (known && known.size > 0) {
|
|
2946
|
+
const unknownIds = ids.filter((id) => !known.has(id));
|
|
2947
|
+
if (unknownIds.length > 0) return `names ${unknownIds.join(', ')} — not in .ai.local/team/repositories.json`;
|
|
2948
|
+
}
|
|
2949
|
+
return null;
|
|
2950
|
+
}
|
|
2951
|
+
function repositoriesIntakeExemption(record) {
|
|
2952
|
+
const entry = record && record.intakeExemption;
|
|
2953
|
+
if (!entry || typeof entry !== 'object') return null;
|
|
2954
|
+
const approvedBy = typeof entry.approvedBy === 'string' ? entry.approvedBy.trim() : '';
|
|
2955
|
+
const reason = typeof entry.reason === 'string' ? entry.reason.trim() : '';
|
|
2956
|
+
const at = typeof entry.at === 'string' ? entry.at.trim() : '';
|
|
2957
|
+
if (approvedBy === '' || reason.length < 10 || !EXEMPTION_DATE.test(at)) return null;
|
|
2958
|
+
return { approvedBy, reason, at };
|
|
2959
|
+
}
|
|
2960
|
+
const repositoriesGateApplies = Boolean(finishedAttempt)
|
|
2961
|
+
&& (completedAgent === 'task-router' || (!hadPriorCompletion && completedStepIndex === 0));
|
|
2962
|
+
if (repositoriesGateApplies) {
|
|
2963
|
+
const violation = repositoriesIntakeViolation(pipeline);
|
|
2964
|
+
if (violation) {
|
|
2965
|
+
const exemption = repositoriesIntakeExemption(pipeline);
|
|
2966
|
+
if (!exemption) {
|
|
2967
|
+
appendMetric({ type: 'intake_repositories_blocked', at: now, stepIndex: completedStepIndex, agent: completedAgent, violation, source: 'hook', attributionConfidence: 'high' });
|
|
2968
|
+
writeStatus({ state: 'blocked', phase: 'blocked', currentAgent: 'task-router' });
|
|
2969
|
+
out(`pipeline.json for "${slug}" ${violation}. Intake stays open until the repositories are recorded: set "repositories" to the ids in .ai.local/team/repositories.json with "repositoriesInference": "evidence-paths" (or "repo-scope-only"), or "repositories": [] with "repositoriesInference": "unknown" when the request names none. Rewrite pipeline.json through the task-router, then resume via /task-continue ${slug}. A task that predates the invariant carries "intakeExemption": { "approvedBy": "<human>", "reason": "<why, 10+ characters>", "at": "YYYY-MM-DD" } — a bare boolean is not accepted.`);
|
|
2970
|
+
process.exit(0);
|
|
2971
|
+
}
|
|
2972
|
+
appendMetric({ type: 'intake_repositories_exempted', at: now, stepIndex: completedStepIndex, agent: completedAgent, violation, approvedBy: exemption.approvedBy, reason: exemption.reason, exemptedAt: exemption.at, source: 'hook', attributionConfidence: 'high' });
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
if (pipeline.autoChain === false) {
|
|
2976
|
+
writeStatus({});
|
|
2977
|
+
process.stdout.write('{}');
|
|
2978
|
+
process.exit(0);
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2873
2981
|
|
|
2874
2982
|
if (waveIndexes) {
|
|
2875
2983
|
const waveAgents = waveIndexes.flatMap((i) => getStepAgents(steps[i]));
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// the generator copies it into each Cursor stack.
|
|
5
5
|
|
|
6
6
|
import fs from 'node:fs';
|
|
7
|
+
import path from 'node:path';
|
|
7
8
|
import { fileURLToPath } from 'node:url';
|
|
8
9
|
|
|
9
10
|
const SLUG_MAX = 48;
|
|
@@ -12,6 +13,18 @@ const ELIGIBLE =
|
|
|
12
13
|
/^(?:(?:yarn|pnpm|npm|npx|bun)\s+(?:run\s+)?(?:test|lint)(?::\S+)?|git\s+(?:log|diff)|go\s+test|cargo\s+test|pytest|phpunit)\b/;
|
|
13
14
|
const META = /[|&;<>()\n`]|\$\(/;
|
|
14
15
|
|
|
16
|
+
// The rewritten command runs in the agent shell's cwd, which may be a package
|
|
17
|
+
// directory (`app/`); a repo-relative wrapper path breaks there.
|
|
18
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
19
|
+
const WRAPPER = path.join(here, '..', '..', '.ai.local', 'scripts', 'run-compact.mjs');
|
|
20
|
+
|
|
21
|
+
/** POSIX-quote the wrapper path; a path a shell cannot quote stays unrewritten. */
|
|
22
|
+
const shellQuote = (value) => {
|
|
23
|
+
if (/^[A-Za-z0-9_@%+=:,./-]+$/.test(value)) return value;
|
|
24
|
+
if (value.includes("'") || value.includes('\n')) return null;
|
|
25
|
+
return `'${value}'`;
|
|
26
|
+
};
|
|
27
|
+
|
|
15
28
|
const slugOf = (env) => {
|
|
16
29
|
const value = typeof env?.TEAM_TASK_SLUG === 'string' ? env.TEAM_TASK_SLUG : '';
|
|
17
30
|
if (value.length === 0 || value.length > SLUG_MAX || !SLUG_RE.test(value)) return '';
|
|
@@ -27,7 +40,9 @@ export const rewriteCommand = (command, env) => {
|
|
|
27
40
|
if (text.split(/\s+/).some((token) => token.includes("'") || token.includes('"'))) return null;
|
|
28
41
|
if (text.includes('dump-output.mjs') || text.includes('run-compact.mjs')) return null;
|
|
29
42
|
if (!ELIGIBLE.test(text)) return null;
|
|
30
|
-
|
|
43
|
+
const wrapper = shellQuote(WRAPPER);
|
|
44
|
+
if (wrapper === null) return null;
|
|
45
|
+
return `node ${wrapper} --task ${slug} -- ${text}`;
|
|
31
46
|
};
|
|
32
47
|
|
|
33
48
|
const allow = () => {
|
|
@@ -76,8 +76,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
|
|
|
76
76
|
# Code review: <slug>
|
|
77
77
|
|
|
78
78
|
## Verdict
|
|
79
|
-
APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
79
|
+
APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
80
80
|
Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
|
|
81
|
+
`APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
|
|
81
82
|
|
|
82
83
|
## Critical (must fix)
|
|
83
84
|
- ...
|
|
@@ -88,6 +89,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
88
89
|
## Suggestions (nice to have)
|
|
89
90
|
- ...
|
|
90
91
|
|
|
92
|
+
## Open questions
|
|
93
|
+
- <question> — check: <what would settle it> — blocker-candidate: yes | no
|
|
94
|
+
|
|
91
95
|
## Depth passes
|
|
92
96
|
| Pass | Outcome | Evidence or reason |
|
|
93
97
|
|------|---------|--------------------|
|
|
@@ -171,6 +171,8 @@ Do **not** add a dedicated `spec-author` agent for `docs/specs/**`. Do not requi
|
|
|
171
171
|
|
|
172
172
|
**specMode (optional `pipeline.json` field):** `none` for spike/research; `generate` for `spec-gen` / `/spec-start`; `consume` default when INDEX exists. Echo top-level `specMode`. Brief `## Spec mode` wins on conflict.
|
|
173
173
|
|
|
174
|
+
**repositories (mandatory `pipeline.json` field):** echo `"repositories": [<ids>]` and `"repositoriesInference": "evidence-paths" | "repo-scope-only" | "unknown" | "ambiguous"` immediately after `specMode`, before `summary`; the ids come from `.ai.local/team/repositories.json` and are never defaulted to the workspace repository. Then record the same list as link rows through `node .ai.local/scripts/team-db.mjs repositories apply --file -` — one `{"links": [{taskSlug, repositoryId, source: "intake", inference: "evidence-paths"}]}` envelope per touched repository (the verb takes the envelope, never a bare row). When the request names no repository, write `"repositories": []` with `"unknown"` and one `{"attributions": [{taskSlug, verdict: "unknown", evidence: ""}]}` envelope; `yarn check:task-repositories` fails a folder without the field.
|
|
175
|
+
|
|
174
176
|
Do **not** add a pipeline step for `spec-discovery`. Instruct analyst to load that skill only when the user/AC asks research-before-spec.
|
|
175
177
|
|
|
176
178
|
## Runtime initialization
|
|
@@ -11,6 +11,7 @@ Slash commands are copied to `.claude/commands/` on `ai-rules init claude --pres
|
|
|
11
11
|
| `/technical-retro [slug]` | Retro; with slug — “Agent work” block |
|
|
12
12
|
| `update.md` | Reinstall each installed tool with the preset recorded at init |
|
|
13
13
|
| `migrate-tasks.md` | Create or reconcile `.ai.local/team/team.db`; writes only the delta |
|
|
14
|
+
| `rr-migrate-repositories.md` | Scan repositories on disk, add the missing ones to the local registry, and project the file into `team.db` |
|
|
14
15
|
|
|
15
16
|
## `/task` examples
|
|
16
17
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rr-migrate-repositories
|
|
3
|
+
description: Scan repositories on disk, add the missing ones to the local registry, and project the file into team.db.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Migrate repositories
|
|
7
|
+
|
|
8
|
+
Turn the repositories already cloned on this machine into registry records, then
|
|
9
|
+
sync the registry file into the team database.
|
|
10
|
+
|
|
11
|
+
## What to do
|
|
12
|
+
|
|
13
|
+
1. From the repository root, run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
node .ai.local/scripts/rr-migrate-repositories.mjs
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
2. Report the summary in the user's native language, keeping the counters
|
|
20
|
+
verbatim: `scanned`, `repositories`, `duplicates`, `create`, `update`,
|
|
21
|
+
`unchanged`, `not-on-disk`, and the `project` line.
|
|
22
|
+
3. A `disabled by AI_RULES_TEAM_DB_DISABLE` line means the plan was computed and
|
|
23
|
+
nothing was written; exit 0 is the documented fallback. Relay it and stop.
|
|
24
|
+
4. Any non-zero exit: quote stderr and stop.
|
|
25
|
+
|
|
26
|
+
## Arguments
|
|
27
|
+
|
|
28
|
+
- `--scan <dir>` — directory to scan; repeatable. Default: the parent of the
|
|
29
|
+
repository root (the repository root itself when its parent is `$HOME`), so
|
|
30
|
+
sibling clones are picked up.
|
|
31
|
+
- `--depth <n>` — directory levels below a scan root (default `4`).
|
|
32
|
+
- `--dry-run` — print the plan and write nothing.
|
|
33
|
+
- `--no-update` — create missing records only; never touch an existing one.
|
|
34
|
+
- `--team-root <dir>` — team store root (default `<repo-root>/.ai.local/team`).
|
|
35
|
+
- `--json` — machine-readable summary.
|
|
36
|
+
|
|
37
|
+
## What the script does
|
|
38
|
+
|
|
39
|
+
- Walks the scan roots; a directory with `.git` is a repository and is not
|
|
40
|
+
descended into. Submodule checkouts and linked worktrees are skipped.
|
|
41
|
+
- Collapses clones that share one remote to the shallowest path.
|
|
42
|
+
- Keeps the id of a record whose locator already exists, so a re-run is
|
|
43
|
+
idempotent; a new id is the slug of the directory name, with a parent prefix
|
|
44
|
+
when that slug is taken.
|
|
45
|
+
- Creates missing records through `team-db.mjs repositories apply`, updates a
|
|
46
|
+
changed `name`, `locator`, or `status` through `repositories put`, then runs
|
|
47
|
+
`repositories project`. The lock-guarded verb is the only writer.
|
|
48
|
+
- Never deletes a record: a repository missing from this scan may simply live
|
|
49
|
+
outside the scanned roots.
|
|
50
|
+
|
|
51
|
+
`.ai.local/team/repositories.json` is local-only and git-ignored. The database is
|
|
52
|
+
derived: deleting `team.db` costs a rebuild, not the records.
|
|
53
|
+
|
|
54
|
+
## Do not
|
|
55
|
+
|
|
56
|
+
- Hand-edit `.ai.local/team/repositories.json`; the verb owns the write lock.
|
|
57
|
+
- Commit the registry file or `team.db*`.
|
|
58
|
+
- Delete registry records to make a scan look clean.
|
|
59
|
+
- Pass `--scan` a filesystem root without a matching `--depth`.
|
|
@@ -44,6 +44,10 @@ Examples:
|
|
|
44
44
|
6. **After each agent** — wait for hook handoff / reconciliation of the terminal receipt → `status.state`; do not start the next step until `status.json` reflects the handoff (or until there is a hook `followup_message`).
|
|
45
45
|
7. **Human gate** — if after the current step there is a gate in `humanGates` (`after:<agent>`), after the agent finishes **stop** and ask for `/task-continue <slug>`.
|
|
46
46
|
|
|
47
|
+
## Repositories (mandatory)
|
|
48
|
+
|
|
49
|
+
The repositories a task touches are part of its intake: `pipeline.json` must carry `"repositories": [<registry ids>]`, or `"repositories": []` together with `"repositoriesInference": "unknown"` when the request names none. The router reads `.ai.local/team/repositories.json` and records the same list as link rows; the field is never defaulted; `node .ai.local/scripts/check-task-repositories.mjs` audits the store and the chain hook blocks a task-router receipt that omits it. See `agents/task-router.md`.
|
|
50
|
+
|
|
47
51
|
## Plan contract
|
|
48
52
|
|
|
49
53
|
Intake runs the planning workflow before any implementation: **goal frame** (goal, user value, success + result-evaluation criteria) → **requirements + AC-IDs** → **information-sufficiency** verdict (`sufficient` | `insufficient`) → decompose with a **dependency graph** (`dependsOn[]`, DAG, critical path) and, for large flows, **epics / stages** with exit criteria. The plan is revisable: a **plan revision** is a named, recorded operation (`planRevision`), and progress is checkpointed to `.memlog.md` (with the optional `contextBudget` note) so a run can resume.
|
|
@@ -18,6 +18,7 @@ npx @bonesofspring/ai-rules update
|
|
|
18
18
|
2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
|
|
19
19
|
3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
|
|
20
20
|
4. Do not report the numeric exit code.
|
|
21
|
+
5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
|
|
21
22
|
|
|
22
23
|
## Record
|
|
23
24
|
|