@bonesofspring/ai-rules 0.2.80 → 0.2.86
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 +70 -0
- package/bin/lib/merged-config.js +49 -0
- package/bin/lib/seed-ai-local-team.js +2 -0
- package/bin/mavis-install.js +53 -3
- package/docs/MAVIS-COMPATIBILITY.md +136 -8
- package/docs/PRESET-CONTRIBUTION.md +25 -7
- package/docs/TEAM-DB.md +76 -3
- package/docs/openapi/team-db.v1.json +7069 -5895
- package/package.json +8 -2
- package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +20 -2
- package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
- package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +66 -16
- package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +253 -15
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +310 -4
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +733 -8
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +44 -0
- package/presets/_shared/ai-local/scripts/team-db.mjs +43 -3
- 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 +40 -0
- 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/commands/update.md +1 -0
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/claude/go/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/claude/java/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/claude/mol/commands/update.md +1 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +40 -0
- 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/build-verifier.md +2 -1
- package/presets/claude/next/agents/code-reviewer.md +5 -1
- package/presets/claude/next/agents/feature-developer.md +1 -1
- package/presets/claude/next/agents/task-router.md +1 -1
- package/presets/claude/next/commands/update.md +1 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/claude/nuxt/commands/update.md +1 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/claude/svelte/commands/update.md +1 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/cursor/mol/commands/update.md +1 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +40 -0
- 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/build-verifier.md +2 -1
- package/presets/cursor/next/agents/code-reviewer.md +5 -1
- package/presets/cursor/next/agents/feature-developer.md +1 -1
- package/presets/cursor/next/agents/task-router.md +1 -1
- 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 +40 -0
- 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 +1 -1
- package/presets/cursor/nuxt/commands/update.md +1 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- 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/commands/update.md +1 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/cursor/svelte/commands/update.md +1 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +40 -0
- 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 +104 -44
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
- 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 +40 -0
- 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 +94 -40
- package/presets/mavis/go/agents/code-reviewer.md +5 -1
- 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 +40 -0
- 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 +104 -44
- package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
- 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 +40 -0
- 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 +94 -40
- package/presets/mavis/java/agents/code-reviewer.md +5 -1
- 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 +40 -0
- 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 +77 -32
- 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 +40 -0
- 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 +94 -40
- package/presets/mavis/mol/agents/code-reviewer.md +5 -1
- package/presets/mavis/mol/agents/task-router.md +1 -1
- 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 +40 -0
- 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 +128 -53
- package/presets/mavis/next/agents/build-verifier.md +2 -1
- package/presets/mavis/next/agents/code-reviewer.md +5 -1
- package/presets/mavis/next/agents/feature-developer.md +1 -1
- package/presets/mavis/next/agents/task-router.md +1 -1
- 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 +40 -0
- 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 +109 -46
- package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
- package/presets/mavis/nuxt/agents/task-router.md +1 -1
- 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 +40 -0
- 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 +94 -40
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
- 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 +40 -0
- 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 +94 -40
- package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
- 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 +40 -0
- 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 +109 -46
- package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
- package/presets/mavis/svelte/agents/task-router.md +1 -1
- 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 +40 -0
- 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 +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/opencode/android-kotlin/commands/update.md +1 -0
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +5 -1
- package/presets/opencode/go/commands/update.md +1 -0
- package/presets/opencode/go/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/opencode/ios-swift/commands/update.md +1 -0
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +5 -1
- package/presets/opencode/java/commands/update.md +1 -0
- package/presets/opencode/java/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/mcp-ts/commands/update.md +1 -0
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/mol/agents/code-reviewer.md +5 -1
- package/presets/opencode/mol/agents/task-router.md +1 -1
- package/presets/opencode/mol/commands/update.md +1 -0
- package/presets/opencode/mol/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/next/agents/build-verifier.md +2 -1
- package/presets/opencode/next/agents/code-reviewer.md +5 -1
- package/presets/opencode/next/agents/feature-developer.md +1 -1
- package/presets/opencode/next/agents/task-router.md +1 -1
- package/presets/opencode/next/commands/update.md +1 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/opencode/nuxt/agents/task-router.md +1 -1
- package/presets/opencode/nuxt/commands/update.md +1 -0
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-hexagonal/commands/update.md +1 -0
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-laravel/commands/update.md +1 -0
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +40 -0
- 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 +4 -3
- package/presets/opencode/plugins/task-status/deepseek.ts +68 -34
- package/presets/opencode/plugins/task-status/task-view.ts +4 -1
- package/presets/opencode/plugins/task-status/tui.tsx +16 -18
- package/presets/opencode/plugins/task-status/types.ts +5 -1
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
- package/presets/opencode/svelte/agents/task-router.md +1 -1
- package/presets/opencode/svelte/commands/update.md +1 -0
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/zcode/android-kotlin/commands/update.md +1 -0
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/go/agents/code-reviewer.md +5 -1
- package/presets/zcode/go/commands/update.md +1 -0
- package/presets/zcode/go/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/zcode/ios-swift/commands/update.md +1 -0
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/java/agents/code-reviewer.md +5 -1
- package/presets/zcode/java/commands/update.md +1 -0
- package/presets/zcode/java/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/mcp-ts/commands/update.md +1 -0
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/mol/agents/code-reviewer.md +5 -1
- package/presets/zcode/mol/agents/task-router.md +1 -1
- package/presets/zcode/mol/commands/update.md +1 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/next/agents/build-verifier.md +2 -1
- package/presets/zcode/next/agents/code-reviewer.md +5 -1
- package/presets/zcode/next/agents/feature-developer.md +1 -1
- package/presets/zcode/next/agents/task-router.md +1 -1
- package/presets/zcode/next/commands/update.md +1 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/zcode/nuxt/agents/task-router.md +1 -1
- package/presets/zcode/nuxt/commands/update.md +1 -0
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-hexagonal/commands/update.md +1 -0
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-laravel/commands/update.md +1 -0
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +40 -0
- 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 +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
- package/presets/zcode/svelte/agents/task-router.md +1 -1
- package/presets/zcode/svelte/commands/update.md +1 -0
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +40 -0
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.86
|
|
4
|
+
|
|
5
|
+
### Project entity: registry, migration 0011, seven routes, derived task attribution
|
|
6
|
+
|
|
7
|
+
- **A project record groups repositories n:m.** `team/project-registry.json` (`{version: 1, projects[], links[]}`) is the local-only, git-ignored definition of record, mirroring the repository registry: deterministic serialization, `E_PROJECTS_PARSE` on an unknown key, a duplicate id, or a link naming an unknown endpoint, an absent file an empty valid store, and one lock-guarded verb family — `team-db.mjs projects put|delete|link|unlink|list|project` under `.project-registry.lock` (5 s, `E_PROJECTS_BUSY` → 503 `E_BUSY`), kill-switch-guarded except `list`. Membership rides the pair verbs and never moves the record `revision`. (ADR 0008; change-set `2026-11-23-project-entity-repository-links`.)
|
|
8
|
+
- **Migration `0011-project-registry`** adds `projects` and `project_repositories` (STRICT, `PRIMARY KEY (project_id, repository_id)`, both FKs `ON DELETE CASCADE`, no `CHECK` on `status`), moves `SCHEMA_VERSION` to 11, and keeps `0009`/`0010` byte-identical. The rebuild reproduces both tables from the file alone; `repositories delete` removes the deleted repository's project links in the same child (nested `.repositories.lock` → `.project-registry.lock`) and `RepositoryDeleteResult` gains required `membersRemoved` — the resurrection guard.
|
|
9
|
+
- **Seven operations on three paths.** `GET|POST /api/v1/projects`, `GET|PUT|DELETE /api/v1/projects/{id}`, `POST|DELETE /api/v1/projects/{id}/repositories/{repositoryId}`: reads answer `ProjectSummary` (record + ordered `repositories[]`), writes answer `Project`, membership returns the updated summary read from the projection in the same child, a project with N members refuses `DELETE` with `409 E_PROJECT_IN_USE` and `details.memberRepositories = N`, and `force` removes memberships only. The contract pin moves as one block: 60 operations, 45 paths, 90 schemas, 60 served routes, 22 mutating routes (`check-team-db-contract.mjs --write` regenerated the checked-in document).
|
|
10
|
+
- **Derived task attribution.** `GET /api/v1/tasks?project=<id>` mirrors `?repository=` through one `TASK_PROJECT_FILTER` EXISTS fragment at slot `?11`, included by `listTasks` and `countTasks` only: a task belongs to a project iff it is linked to a member repository; a repository in several projects lists its tasks on all of them; `unknown`/`ambiguous` verdict tasks appear on none; a well-shaped unknown id is an empty page.
|
|
11
|
+
- **Engine suites** `test-team-db-{schema,project,api,concurrency}` cover the migration from empty v0 and from a v10 fixture, registry round-trip/CAS/refusals, the delete guard 0/1/many + force, rebuild equality, all seven routes, the attribution cases (paging == count), lock serialization, the nested-lock cleanup and the dangling-link refusal.
|
|
12
|
+
|
|
13
|
+
## 0.2.85
|
|
14
|
+
|
|
15
|
+
### The structure composite keeps the preset checks; the tooling's own 80 suites get their own entry point
|
|
16
|
+
|
|
17
|
+
- **The composite stopped running its own regression suite.** `check-preset-structure.sh` interleaved two tiers: 54 preset checks and 80 `test-*` suites that guard the preset tooling. 93 % of the 1780.9 s release rung was the second tier. The composite now runs the 54 checks only — measured 66.8 s, 105.59 s and 120.24 s on one tree, so the 1780.9 s rung becomes roughly two minutes — and `--list` prints those 54 labels. The 80 blocks moved verbatim, in their original order, to `scripts/run-tooling-tests.sh` behind `yarn test:tooling` (80 suites, 1285.8 s, one exit code). Nothing was skipped or reordered: the two skip guards travel with their blocks, and `scripts/test-structure-tier-partition.mjs` pins the partition — 54 ⊎ 80 = the 134 labels the composite used to print, disjoint, with each label's tier fixed.
|
|
18
|
+
- **Known failures stay declared on the side that runs them.** All five entries in `scripts/_lib/structure-known-failures.json` are test-tier labels, so the composite matches none of them: it prints `Result: OK (all hard gates passed)` and one `NOTE: 5 allowlisted suite(s) belong to the test tier (yarn test:tooling)` instead of five false `no longer fails — remove it` warnings. The `Result: OK (… 5 known failure(s) allowlisted …)` line now comes from `yarn test:tooling`, which carries the same allowlist loader and the same aggregate. A row that is in neither tier is still warned about, so deleting a check-tier entry by mistake is not silent.
|
|
19
|
+
- **The release gate reports four phases.** `release-gate.sh` runs `preset-structure`, `tooling-tests`, `ai-local-tests` and `product-specs-strict`, each with its own `{label, exit, seconds}` row: a red tooling suite fails the release without hiding a green preset tier. `run_phase` and the report keys are unchanged, so older reports stay readable. `AI_RULES_SKIP_HOOK_TESTS` / `AI_RULES_SKIP_PACK_TESTS` still honoured by the runner and still refused in a release run.
|
|
20
|
+
- **The tooling tier is locked and PR-gated.** `test:tooling` runs through `run-locked.mjs` (`--label test:tooling`), the same `preset-tree-lock` the composite holds today, so a suite never reads `presets/**` while `fix:generated` rewrites it; a direct `bash scripts/run-tooling-tests.sh` now says out loud that it holds no lock. CI gains a `tooling-suites` job whose condition comes from `check-preset-delta.mjs` (`ci-tooling-tier-gate.sh`): it runs the 80 suites only when the change-set touches `preset-tooling`, `preset-generator`, `preset-install`, `preset-engine` or `team-db`. A prose-only `preset-content` change does not: the 54-check structure job covers that diff, and `yarn release:gate` still runs the 80 before a tag. A skip is written to the job summary instead of passing silently. The `check` job's inert `AI_RULES_SKIP_HOOK_TESTS` was dropped — the composite holds no hook blocks any more.
|
|
21
|
+
- **A preset-content edit names the gates that read the changed file.** `check-preset-delta.mjs` keeps a six-gate floor (twin map, twin drift, generated drift, token budget, leakage, frontmatter) and adds a path slice for agents, hooks, commands/skills, next rules, the router, plan, goal, language, or prompt. Semantic parity runs only when `feature-delivery-workflow` or `reference-features` changes. A hook edit also names hook-body-parity and the pause, stale-attempt, and resume-blocked suites. A checker edit runs that checker and its paired suite. `presets/cursor/next` and root `.cursor` name `check-dogfood-cursor`. `release:gate` is listed only for a `package.json` or `CHANGELOG.md` edit. This repository's app gates do not name `yarn test:e2e`. The structure composite drops the authoring-advisory and product-specs WARN rows (52 labels); strict product-specs stays on `yarn release:gate`. `validation-report.md` must contain `## AC evidence`. A hook edit also names chain-hook coverage and hook-token lock, a router edit names parallel-plan, and preset prose names hard i18n. `test-cli-init-clean` stays on install and generator changes. `check-task-repositories` runs when its script, its test, `repositories.json`, or a `pipeline.json` changes. `yarn preset:loop` is `fix:generated` then `check:classified`, which runs that list (or `check:fast` when it is empty) and does not run release or app gates. A stale allowlist row exits 1. `check:fast` includes twin map and leakage. `cli-mcp-merge` expects the shipped `.minimax` skills and hooks.
|
|
22
|
+
|
|
23
|
+
## 0.2.84
|
|
24
|
+
|
|
25
|
+
### A 25-minute gate that stops at the first failure, names known ones, and survives two runs at once
|
|
26
|
+
|
|
27
|
+
- **`check-preset-structure.sh` learned two flags.** `--list` prints all 134 gate labels — the inline gates plus the 19 `run_gate` calls, whose labels never appeared in the script as `echo ">>> …"`. `--fail-fast` stops at the first failure the allowlist does not declare, with `Result: FAIL (fail-fast: stopped at "<label>")`; a known failure is printed and the sweep continues, so the flag reaches the change under test instead of dying at the first failure `master` already has. `-h`/`--help` prints the usage header and an unknown flag exits 2. Filtering the composite was rejected on purpose: several gates live inside `if`/`else` blocks and a wrapper around them splits the enclosing branch, so a single gate is run through its own script. Every failure now records the label it printed, which is what the allowlist below matches on; a failure that printed no label cannot be matched and fails the run.
|
|
28
|
+
- **Known failures are declared, not re-diagnosed.** `scripts/_lib/structure-known-failures.json` lists the five suites that fail on `master` for reasons unrelated to the change under test (`mavis-orchestration`, `cli-mcp-merge`, `mcp-pack-tarball`, `chain-team-phases pause sentinel`, `chain-team-phases stale attempt`), each with owner, reason, and date. The aggregate result reads `Result: OK (all hard gates passed; 5 known failure(s) allowlisted …)` and exits 0; a new failure still exits 1 as `Result: FAIL (<n> new, <k> known allowlisted): <labels>`. A malformed allowlist — not JSON, no `failures` array, or a row missing `suite`/`owner`/`reason`/`addedAt` — exits 2, and an entry that starts passing prints a stale-entry warning.
|
|
29
|
+
- **The generated-tree cache publishes atomically.** `generated-cache.mjs` wrote through `rmSync` + `cpSync` into a shared entry, so two generator-based gates running at once failed with `ENOTEMPTY` — a run whose result was unusable. It now fills a private staging directory and publishes with one rename (a lost race drops its staging copy, never the other run's entry), quarantines a half-written entry by rename instead of deleting it, and treats a cache-write failure as a miss. `test-generated-cache.mjs` spawns two processes on one cold key and asserts both trees and both exit codes.
|
|
30
|
+
- **The verification ladder is one place.** `docs/PRESET-CONTRIBUTION.md` states the order: targeted twin/golden checks, `fix:generated`, `check:changed`, then the composite once, with `--fail-fast` continuing past a declared failure; the old “never run two generator gates at once” warning is replaced by the cache's atomic publish and the preset-tree lock.
|
|
31
|
+
|
|
32
|
+
## 0.2.83
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### A declared review step is enforced, and an unprovable behaviour becomes a question
|
|
36
|
+
|
|
37
|
+
- **A gate step in `pipeline.json` is a promise, not advice.** When the plan names `code-reviewer`, `build-verifier`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, or `performance-auditor`, the chain hook now blocks `completed` while that step has no completed receipt — with or without `.ai.local/pipeline-gates.json`. Before this, only a consumer-configured `requireArtifacts` blocked completion, so a plan that listed a reviewer could finish on the developer's receipt and read as a passed review. A step recorded in `status.skippedSteps` (or matched by `skipIf`) promised nothing and stays completable; the block message names the missing artifacts and the resume command.
|
|
38
|
+
- **The reviewer asks instead of going silent.** `code-review-mr` gains `## Open questions`: a behaviour the reviewer cannot settle by reading is recorded with the one check that would settle it and a `blocker-candidate` flag, and needs neither `path:line` nor `confidence`. A pass left `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge`, and a fourth verdict — `safe to merge with questions` — keeps the receipt `completed` without pretending the gap is closed. The skill's output block carries the same lines.
|
|
39
|
+
- **A diff without an acceptance criterion is still reviewed.** `code-review-mr` now says so explicitly and lists the stack-agnostic defect classes to review against: malformed parsed JSON, empty/boundary/concurrent input, buffer and timeout limits, credentials in logs and URLs, cwd assumptions and shell quoting, re-run idempotency, machine-local state, and a second unowned copy of a rule. Absence of a brief or decomposition was the reason the preset reviewer had nothing to check on a 200-file tooling diff.
|
|
40
|
+
|
|
41
|
+
## 0.2.82
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Engine scripts — the four defects an external review found, and the gates that keep them out
|
|
45
|
+
|
|
46
|
+
- **`run-compact.mjs` no longer kills what it wraps.** The child writes straight into a file instead of a 2 MiB `maxBuffer`, so a verbose test run or a large diff keeps its exit code; a missing command is a wrapper error (`127`) with its message, not a silent `128`. The output cap stays in `dump-output.mjs`, where it is applied while streaming and reported as `truncated: yes`.
|
|
47
|
+
- **The Cursor compact hook resolves its wrapper absolutely.** The rewritten command runs in the agent shell's cwd, which is a package directory (`app/`) in this preset's own guidance; `node .ai.local/scripts/run-compact.mjs` broke there. The path now comes from the hook's own location and is POSIX-quoted; a path a shell cannot quote leaves the command unrewritten. The hook suite asserts cwd-independence instead of the old literal string.
|
|
48
|
+
- **`rr-migrate-repositories.mjs` stops copying credentials.** A `remote.origin.url` of `https://user:token@host/...` is stored without the userinfo, so the registry and its SQLite projection never carry a clone credential. A record written by an older run is rewritten on the next scan.
|
|
49
|
+
- **Orphan id reuse is opt-in.** `--reuse-orphan-ids` restores the renamed-remote behaviour; the default allocates a new id and reports the candidate (`orphan-id:` lines, `orphanCandidates[]` in `--json`). A same-named clone is no longer silently bound to another repository's id and task links.
|
|
50
|
+
- **Truncated ids stay unique.** `assignIds` reserves the suffix before slicing to 48 characters and tests the final value, so a migration plan can no longer hold two equal ids.
|
|
51
|
+
- **`check-task-repositories.mjs` reports malformed JSON instead of crashing.** The `readJson` contract (`undefined` = parse error, `null` = not an object) is honoured at the active-task, registry, and pipeline call sites; an unusable registry becomes a warning, a broken `pipeline.json` becomes a finding.
|
|
52
|
+
- **`check-verification.mjs` counts reports, not folders.** `checked` is the number of reports read and the vacuity rule now fires on zero reports; the folder count stays visible as `folders`.
|
|
53
|
+
- **`.ai.local/.processes/` is ignored.** The seeded `.gitignore` covered `.dev/` and `.ui/` but not the lease and log tree `processes.mjs` writes, so a captured log with host paths could be committed. `ensureAiLocalIgnored` appends the line on the next `init`.
|
|
54
|
+
- **Gates.** `test-rr-migrate-repositories` and the new `test-check-verification` join `check:preset-structure`, and `check-engine-test-coverage` fails when a shipped engine script has no mapped suite or a mapped suite is missing (`scripts/_lib/engine-test-map.json`, the ratchet for the next script).
|
|
55
|
+
- **Review.** `code-review-mr` gains a sixth depth pass — executable surface: the cwd the code assumes, quoting of paths spliced into shell strings, spawn/buffer/exit-code fidelity, credentials in config-derived values, and re-runnable migrations.
|
|
56
|
+
- **Update.** `/update` commits the managed trees on their own: a preset refresh and app work never share a commit or a merge request.
|
|
57
|
+
|
|
58
|
+
## 0.2.81
|
|
59
|
+
|
|
60
|
+
### `opencode` — the task sidebar reads the same models store and the same window hours as the UI
|
|
61
|
+
|
|
62
|
+
- **One store.** The task-status plugin resolves the nearest `.ai.local/models` directory above the project directory — the store the team-tasks UI reads — instead of the pre-rename `.ai.local/catalog` path it probed and never found, so it no longer silently falls back to its shipped copy of the schedule. `MODELS_ROOT` points at that directory; the deprecated `CATALOG_ROOT` is still honoured for one release. A project without the store keeps the published fallback.
|
|
63
|
+
- **One boundary.** A weekly window covers `[startHour, endHour)`: the end hour is exclusive, `startHour > endHour` wraps across midnight, and `startHour === endHour` is an empty window the writers refuse. The plugin, the app resolver and the app label agree at every instant — the published DeepSeek schedule now ends at 13:00 Moscow instead of 13:59, which is what the vendor's "01:00 - 04:00 and 06:00 - 10:00 UTC" range actually says.
|
|
64
|
+
- **One contract.** The window record's write contract (`.ai.local/models/schema.json`) states the half-open range, the app's window form refuses an equal start and end hour, and the sync runner refuses the same record.
|
|
65
|
+
- **One table.** `scripts/fixtures/peak-window-parity.json` pins the rule: the app spec and the plugin suite assert the same (window, instant, rate) rows, so a consumer that drifts breaks the other one.
|
|
66
|
+
- **Fixtures.** `test-task-status-view` grows from 30 to 32 cases: the `.ai.local/models` resolution, `MODELS_ROOT`, the deprecated `CATALOG_ROOT`, and the shared parity table.
|
|
67
|
+
|
|
68
|
+
### `mavis` — native skills install under `.minimax/skills`, and project hooks merge
|
|
69
|
+
|
|
70
|
+
- **Skill root.** MiniMax Code ranks `<project>/.minimax/skills` above `.claude/skills` and `.agents/skills`. The preset publishes native skills there, so a same-repo Claude install no longer shadows them. `.agents/skills` is no longer the install path.
|
|
71
|
+
- **Hooks.** `projectHooks` is confirmed. Init merges `.minimax/hooks.json` and `clean mavis` strips only the handlers it added. `SubagentStop` runs `.mavis/hooks/mavis-chain-hook.mjs`. A `followup_message`, or a refusal `reason` when `ok` is false, is carried as `hookSpecificOutput.additionalContext`. A re-entrant stop or a non-kebab `agent_type` does not run the chain.
|
|
72
|
+
|
|
3
73
|
## 0.2.80
|
|
4
74
|
|
|
5
75
|
### `opencode` — the task sidebar shows the session's own task
|
package/bin/lib/merged-config.js
CHANGED
|
@@ -411,6 +411,54 @@ function mergeClaudeSettings(presetObj, existingObj) {
|
|
|
411
411
|
return { merged, added };
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
+
/**
|
|
415
|
+
* Union the preset hook document into a consumer-owned `.minimax/hooks.json`.
|
|
416
|
+
* Same shape as the Claude document (`hooks.<Event>[].hooks[].command`), so
|
|
417
|
+
* `stripHooks` removes exactly the handlers init added and keeps the rest.
|
|
418
|
+
*/
|
|
419
|
+
function mergeMinimaxHooks(presetObj, existingObj) {
|
|
420
|
+
const preset = isPlainObject(presetObj) ? presetObj : {};
|
|
421
|
+
const merged = structuredClone(isPlainObject(existingObj) ? existingObj : {});
|
|
422
|
+
const added = { keys: [], hooks: {} };
|
|
423
|
+
if (!isPlainObject(merged.hooks)) {
|
|
424
|
+
merged.hooks = {};
|
|
425
|
+
added.keys.push('hooks');
|
|
426
|
+
}
|
|
427
|
+
const presetHooks = isPlainObject(preset.hooks) ? preset.hooks : {};
|
|
428
|
+
for (const [event, groups] of Object.entries(presetHooks)) {
|
|
429
|
+
if (!Array.isArray(groups)) {
|
|
430
|
+
continue;
|
|
431
|
+
}
|
|
432
|
+
if (!Array.isArray(merged.hooks[event])) {
|
|
433
|
+
merged.hooks[event] = [];
|
|
434
|
+
added.keys.push(`hooks.${event}`);
|
|
435
|
+
}
|
|
436
|
+
const present = new Set(
|
|
437
|
+
merged.hooks[event].flatMap((group) =>
|
|
438
|
+
isPlainObject(group) && Array.isArray(group.hooks)
|
|
439
|
+
? group.hooks.filter(isPlainObject).map((hook) => hook.command)
|
|
440
|
+
: [],
|
|
441
|
+
),
|
|
442
|
+
);
|
|
443
|
+
for (const group of groups) {
|
|
444
|
+
if (!isPlainObject(group) || !Array.isArray(group.hooks)) {
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
const missing = group.hooks.filter(
|
|
448
|
+
(hook) => isPlainObject(hook) && !present.has(hook.command),
|
|
449
|
+
);
|
|
450
|
+
if (missing.length === 0) {
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
merged.hooks[event].push({ ...structuredClone(group), hooks: structuredClone(missing) });
|
|
454
|
+
for (const hook of missing) {
|
|
455
|
+
(added.hooks[event] ||= []).push(hook.command);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
return { merged, added };
|
|
460
|
+
}
|
|
461
|
+
|
|
414
462
|
module.exports = {
|
|
415
463
|
stringList,
|
|
416
464
|
priorMergedRecord,
|
|
@@ -418,6 +466,7 @@ module.exports = {
|
|
|
418
466
|
mergedConfigRecords,
|
|
419
467
|
stripMergedConfigs,
|
|
420
468
|
mergeClaudeSettings,
|
|
469
|
+
mergeMinimaxHooks,
|
|
421
470
|
mergeServerEntry,
|
|
422
471
|
mergeMcpConfig,
|
|
423
472
|
};
|
|
@@ -55,6 +55,8 @@ const AI_LOCAL_GITIGNORE = [
|
|
|
55
55
|
'.ui/',
|
|
56
56
|
'# Dev-server lifecycle markers (`.ai.local/.dev/<name>.json`); local runtime state, never commit.',
|
|
57
57
|
'.dev/',
|
|
58
|
+
// Process leases, their event log, and captured logs; local runtime state.
|
|
59
|
+
'.processes/',
|
|
58
60
|
'',
|
|
59
61
|
].join('\n');
|
|
60
62
|
const POINTER_README = `# Agent team artifacts moved
|
package/bin/mavis-install.js
CHANGED
|
@@ -15,7 +15,9 @@ const {
|
|
|
15
15
|
throwIfFailPhase,
|
|
16
16
|
} = require('./lib/fs-utils');
|
|
17
17
|
const {
|
|
18
|
+
mergeMinimaxHooks,
|
|
18
19
|
mergedConfigRecords,
|
|
20
|
+
nextMergedRecord,
|
|
19
21
|
priorMergedRecord,
|
|
20
22
|
stripMergedConfigs,
|
|
21
23
|
} = require('./lib/merged-config');
|
|
@@ -24,6 +26,12 @@ const MANIFEST_REL = path.join('.mavis', '.ai-rules-install.json');
|
|
|
24
26
|
const CONTRACT_REL = path.join('presets', 'mavis', 'platform-contract.json');
|
|
25
27
|
const SKIP_STACK_ROOT = new Set(['adapter-map.json', 'README.md']);
|
|
26
28
|
const MCP_REL = '.mavis/mcp.json';
|
|
29
|
+
/**
|
|
30
|
+
* The MiniMax project hook document is consumer-owned: a repo may already carry
|
|
31
|
+
* its own project hooks, so init merges instead of overwriting and clean strips
|
|
32
|
+
* only the handlers it added.
|
|
33
|
+
*/
|
|
34
|
+
const HOOKS_REL = '.minimax/hooks.json';
|
|
27
35
|
|
|
28
36
|
function throwIfPhase(name) {
|
|
29
37
|
throwIfFailPhase('AI_RULES_MAVIS_FAIL_PHASE', name);
|
|
@@ -119,7 +127,10 @@ function buildPlan({ contract, sourceBase, cwd }) {
|
|
|
119
127
|
}
|
|
120
128
|
}
|
|
121
129
|
|
|
122
|
-
|
|
130
|
+
const hooksIndex = files.findIndex((item) => item.rel === HOOKS_REL);
|
|
131
|
+
const hooks = hooksIndex === -1 ? null : files.splice(hooksIndex, 1)[0];
|
|
132
|
+
|
|
133
|
+
return { files, mcp, hooks };
|
|
123
134
|
}
|
|
124
135
|
|
|
125
136
|
function capabilityModes(contract) {
|
|
@@ -215,6 +226,10 @@ function cmdInitMavis({ preset, cwdOption, helpers }) {
|
|
|
215
226
|
assertSafeDest(cwd, plan.mcp.dest, plan.mcp.rel);
|
|
216
227
|
readMergeableJson(plan.mcp.dest, plan.mcp.rel, 'mcpServers');
|
|
217
228
|
}
|
|
229
|
+
if (plan.hooks) {
|
|
230
|
+
assertSafeDest(cwd, plan.hooks.dest, plan.hooks.rel);
|
|
231
|
+
readMergeableJson(plan.hooks.dest, plan.hooks.rel);
|
|
232
|
+
}
|
|
218
233
|
|
|
219
234
|
throwIfPhase('snapshot');
|
|
220
235
|
for (const item of plan.files) {
|
|
@@ -223,6 +238,9 @@ function cmdInitMavis({ preset, cwdOption, helpers }) {
|
|
|
223
238
|
if (plan.mcp) {
|
|
224
239
|
tx.track(plan.mcp.dest, plan.mcp.rel);
|
|
225
240
|
}
|
|
241
|
+
if (plan.hooks) {
|
|
242
|
+
tx.track(plan.hooks.dest, plan.hooks.rel);
|
|
243
|
+
}
|
|
226
244
|
|
|
227
245
|
throwIfPhase('write');
|
|
228
246
|
for (const item of plan.files) {
|
|
@@ -245,6 +263,28 @@ function cmdInitMavis({ preset, cwdOption, helpers }) {
|
|
|
245
263
|
);
|
|
246
264
|
}
|
|
247
265
|
|
|
266
|
+
throwIfPhase('hooks');
|
|
267
|
+
if (plan.hooks) {
|
|
268
|
+
const priorRecord = priorMergedRecord(prior, plan.hooks.rel, plan.hooks.dest);
|
|
269
|
+
const presetHooks = loadJson(plan.hooks.source);
|
|
270
|
+
const existingHooks = readMergeableJson(plan.hooks.dest, plan.hooks.rel);
|
|
271
|
+
if (existingHooks === null) {
|
|
272
|
+
tx.copyFile(plan.hooks.source, plan.hooks.dest, plan.hooks.rel);
|
|
273
|
+
mergedConfigs[plan.hooks.rel] = nextMergedRecord(priorRecord, {
|
|
274
|
+
created: true,
|
|
275
|
+
added: mergeMinimaxHooks(presetHooks, {}).added,
|
|
276
|
+
});
|
|
277
|
+
console.log(`Copied ${plan.hooks.rel} → ${plan.hooks.rel}`);
|
|
278
|
+
} else {
|
|
279
|
+
const { merged, added } = mergeMinimaxHooks(presetHooks, existingHooks);
|
|
280
|
+
if (JSON.stringify(merged) !== JSON.stringify(existingHooks)) {
|
|
281
|
+
tx.writeFile(plan.hooks.dest, `${JSON.stringify(merged, null, 2)}\n`, plan.hooks.rel);
|
|
282
|
+
}
|
|
283
|
+
mergedConfigs[plan.hooks.rel] = nextMergedRecord(priorRecord, { created: false, added });
|
|
284
|
+
console.log(`Merged ${plan.hooks.rel} → kept consumer project hooks`);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
248
288
|
throwIfPhase('docs');
|
|
249
289
|
const seeded = seedDocsSpecsIfAbsent(packageRoot, cwd);
|
|
250
290
|
if (seeded && !docsSpecsExisted) {
|
|
@@ -327,7 +367,10 @@ function cmdCleanMavis({ cwdOption, helpers }) {
|
|
|
327
367
|
process.exit(1);
|
|
328
368
|
}
|
|
329
369
|
|
|
330
|
-
const mergedRecords = mergedConfigRecords(manifest, [
|
|
370
|
+
const mergedRecords = mergedConfigRecords(manifest, [
|
|
371
|
+
{ rel: MCP_REL, serversKey: 'mcpServers' },
|
|
372
|
+
{ rel: HOOKS_REL },
|
|
373
|
+
]);
|
|
331
374
|
const mergedRels = new Set([MCP_REL, ...Object.keys(mergedRecords)]);
|
|
332
375
|
const preserved = [];
|
|
333
376
|
for (const [rel, installedHash] of Object.entries(manifest.managedFiles)) {
|
|
@@ -362,7 +405,14 @@ function cmdCleanMavis({ cwdOption, helpers }) {
|
|
|
362
405
|
|
|
363
406
|
stripMergedConfigs(cwd, mergedRecords);
|
|
364
407
|
|
|
365
|
-
|
|
408
|
+
// Sweep the ai-rules-owned tree, plus nested destinations the preset fills
|
|
409
|
+
// (`<root>/.minimax/skills`). A top-level destination outside `.mavis/`
|
|
410
|
+
// (`.minimax` itself) belongs to the MiniMax runtime and may hold
|
|
411
|
+
// runtime-owned state that a preset clean must not touch.
|
|
412
|
+
const sweepable = (entry) => entry.startsWith('.mavis/') || entry.split('/').length >= 2;
|
|
413
|
+
for (const dirRel of [...(manifest.managedDirectories || [])]
|
|
414
|
+
.filter(sweepable)
|
|
415
|
+
.sort((a, b) => b.length - a.length)) {
|
|
366
416
|
const dirAbs = resolveManagedPath(cwd, dirRel);
|
|
367
417
|
if (dirAbs) {
|
|
368
418
|
removeEmptyDirsSafe(dirAbs);
|
|
@@ -19,8 +19,11 @@ inspect or mutate `~/.minimax/**` or user-global MCP configuration.
|
|
|
19
19
|
- Probe model for `exec` (this run only): `minimax/MiniMax-M2.7-highspeed`.
|
|
20
20
|
Default unscoped `exec` on this account used `minimax/MiniMax-M3` earlier.
|
|
21
21
|
`--model` requires `provider/model` (optionally `#variant`).
|
|
22
|
-
- Current decision: **capability floor GO** for WP-B.
|
|
23
|
-
|
|
22
|
+
- Current decision: **capability floor GO** for WP-B. Project MCP, literal
|
|
23
|
+
slash commands, and `mcode init` (TTY-only) remain fallback. Native skill
|
|
24
|
+
discovery is confirmed, and the preset now ships its skills and its command
|
|
25
|
+
procedures as native skills under `.minimax/skills/`. Native project hooks are
|
|
26
|
+
confirmed too: the preset ships `.minimax/hooks.json`.
|
|
24
27
|
- Version policy: do **not** hard-require `3.0.65`, `3.0.65.130`, or `0.2.7`.
|
|
25
28
|
|
|
26
29
|
The package script is intentionally not exposed yet. Run the focused harness
|
|
@@ -60,16 +63,58 @@ promote a row to `confirmed`.
|
|
|
60
63
|
| Project rule discovery (no root reference) | `unknown` | `exec` with `rules/probe.md` on disk and no fixture `AGENTS.md` reference | Exec succeeded; rule sentinel absent | Explicit root `AGENTS.md` reference; `.mavis/rules/**` is ai-rules-owned |
|
|
61
64
|
| Project rule discovery (explicit root reference) | `confirmed` | Root `AGENTS.md` references `rules/probe.md` | `MAVIS_RULE_SENTINEL` returned | Explicit reference |
|
|
62
65
|
| Workspace agent discovery | `manual` (probe: `unknown`) | `exec` without `--file` while `agents/probe-agent.md` is on disk | Exec succeeded; agent sentinel absent | Explicit `--file` |
|
|
63
|
-
| Workspace Skill discovery (no root reference) | `
|
|
66
|
+
| Workspace Skill discovery (no root reference) | `confirmed` | Runtime skill-root registry (`dist/service/skill/registry/roots.js`); live `skill({ name: "technical-retro" })` in this repo | Workspace roots `<root>/.minimax/skills`, `<root>/.claude/skills`, `<root>/.agents/skills` are scanned at startup, user roots `~/.claude/skills`, `~/.codex/skills`, `~/.agents/skills` too; the live call resolved to `<root>/.claude/skills/technical-retro/SKILL.md` | Ship the preset tree under `<project>/.minimax/skills`; `~/.minimax/**` stays forbidden |
|
|
64
67
|
| Workspace Skill discovery (explicit root reference) | `confirmed` | Root `AGENTS.md` references `skills/probe/SKILL.md` | `MAVIS_SKILL_SENTINEL` returned | Explicit reference |
|
|
65
68
|
| Plugin Skill format | `confirmed` | Official plugin documentation | `skills/**/SKILL.md` is documented inside plugin packages | Optional plugin packaging remains deferred |
|
|
66
69
|
| Plugin MCP format | `confirmed` | Official plugin and MCP documentation | Plugin `*.mcp.json` is documented | Optional plugin packaging remains deferred |
|
|
67
70
|
| Project-scoped MCP path | `unknown` | Documented inspection only: `mcode mcp list --human`, `mcode mcp tools <server>`, `mcode mcp auth status` | No automated command was run; no global config was read or written | Repo-local `.mavis/mcp.json` staging plus manual import |
|
|
68
|
-
| Project hooks / completion callback | `
|
|
71
|
+
| Project hooks / completion callback | `confirmed` | Runtime hook-config service (`dist/service/hook-config/hook-config-files.js`, `PROJECT_HOOK_CONFIG_DIR`); official product hook reference | Project hooks live at `<project>/.minimax/hooks.json` in the MiniMax event format; the user scope `~/.minimax/hooks.json` is a separate file | The preset ships the project file; the user enables it once per project in Settings → Hooks → Project |
|
|
69
72
|
| External `pipeline.json` ingestion | `unknown` | Native Team manual checklist | Not run | File pipeline remains the audit source of truth |
|
|
70
|
-
| File-defined slash commands | `
|
|
73
|
+
| File-defined slash commands | `no-equivalent` | Runtime inspection: no `*/commands` discovery path, no prompt-template surface in the Desktop client | The client registers skills, not host command files | Command procedures ship as native skills; `exec --file` stays for the CLI |
|
|
74
|
+
| Command procedures as native skills | `confirmed` | `skill({ name: "task" })` returns a `Location:` under the native skill root | Each command is published as a skill with `name`/`description` frontmatter; the agent routes on the description and receives the trailing text as `User: <args>` | Natural-language invocation (for example: run task: add a date filter) |
|
|
71
75
|
| Native Team | `partial` | Official Team documentation | Leader/Worker/Verifier are documented; bridge controls are unverified | Semi-auto file lifecycle |
|
|
72
76
|
|
|
77
|
+
## Native skill roots (2026-11-23)
|
|
78
|
+
|
|
79
|
+
MiniMax Code discovers skills through its runtime skill-root registry
|
|
80
|
+
(`dist/service/skill/registry/roots.js`), not through host command directories.
|
|
81
|
+
External sources are enabled by default (`@mavis/config` `DEFAULT_SKILLS_CONFIG`:
|
|
82
|
+
`external.enabled: true`, `walkUp: true`) and resolve to:
|
|
83
|
+
|
|
84
|
+
| Source | Root | Priority |
|
|
85
|
+
|---|---|---|
|
|
86
|
+
| `workspace-minimax` | `<root>/.minimax/skills` | 65 |
|
|
87
|
+
| `workspace-cc` | `<root>/.claude/skills` | 60 |
|
|
88
|
+
| `workspace-agents` | `<root>/.agents/skills` | 55 |
|
|
89
|
+
| `user-cc` | `~/.claude/skills` | 40 |
|
|
90
|
+
| `user-codex` | `~/.codex/skills` | 35 |
|
|
91
|
+
| `user-agents` | `~/.agents/skills` | 30 |
|
|
92
|
+
|
|
93
|
+
`<root>` is the workspace root; `walkUp` walks from the current directory up to
|
|
94
|
+
the git root. MiniMax Code's own roots (`~/.minimax/skills`,
|
|
95
|
+
`~/.minimax/agents/<agent>/skills`, `~/.minimax/.builtin-skills`) are separate.
|
|
96
|
+
|
|
97
|
+
Two consequences shape this preset:
|
|
98
|
+
|
|
99
|
+
- `.mavis/**` is never scanned, so the Mavis tree stays reference-only prose.
|
|
100
|
+
- The native copy installs under `<project>/.minimax/skills`: it is the highest-ranked
|
|
101
|
+
workspace root, so no other platform preset's tree can shadow it. Only the
|
|
102
|
+
project-scoped root is written; `~/.minimax/**` stays forbidden.
|
|
103
|
+
|
|
104
|
+
This choice is load-bearing. `init multi` installs the Claude preset into the same
|
|
105
|
+
repository, and `.claude/skills` (priority 60) outranks `.agents/skills` (55). The
|
|
106
|
+
live observation in this repository confirms the shadowing: `skill({ name:
|
|
107
|
+
"technical-retro" })` returned `Location: .../.claude/skills/technical-retro/SKILL.md`
|
|
108
|
+
when the tree shipped under `.agents/skills`; 15 of 25 skill names exist in both
|
|
109
|
+
trees. Shipping to the top-ranked root removes the tie.
|
|
110
|
+
|
|
111
|
+
There is no file-defined slash-command surface in the Desktop client: the runtime
|
|
112
|
+
has no `*/commands` discovery path and exposes no prompt-template surface, and Local
|
|
113
|
+
Plugin v1 offers App / MCP / Skill / subagent / Hook capabilities but no `commands`
|
|
114
|
+
component. Commands therefore ship as skills: the agent resolves `task`,
|
|
115
|
+
`task-continue`, `technical-retro` and the rest by description match and receives the
|
|
116
|
+
trailing user text as `User: <args>`.
|
|
117
|
+
|
|
73
118
|
Official documentation used for the confirmed plugin rows and the partial Team
|
|
74
119
|
row:
|
|
75
120
|
|
|
@@ -82,8 +127,90 @@ These references confirm package formats and documented Team roles, not
|
|
|
82
127
|
project-local discovery, automatic registration, hook APIs, or the deferred
|
|
83
128
|
plugin's runtime behavior.
|
|
84
129
|
|
|
85
|
-
No native MiniMax project path
|
|
86
|
-
|
|
130
|
+
No native MiniMax project path is claimed for rules: `.minimax/rules/` and
|
|
131
|
+
`.mavis/rules/` stay ai-rules-owned. The claimed native project paths are the
|
|
132
|
+
hook document `.minimax/hooks.json` and the skill root `.minimax/skills`.
|
|
133
|
+
|
|
134
|
+
## Native project hooks (2026-11-23)
|
|
135
|
+
|
|
136
|
+
MiniMax Code reads project hooks from `<project>/.minimax/hooks.json`: the runtime
|
|
137
|
+
hook-config service resolves `PROJECT_HOOK_CONFIG_DIR` (`.minimax`) next to the
|
|
138
|
+
project root, and the user scope (`~/.minimax/hooks.json`) is a separate file. The
|
|
139
|
+
document uses the MiniMax event format:
|
|
140
|
+
|
|
141
|
+
```json
|
|
142
|
+
{
|
|
143
|
+
"hooks": {
|
|
144
|
+
"<Event>": [
|
|
145
|
+
{
|
|
146
|
+
"hooks": [
|
|
147
|
+
{ "type": "command", "name": "...", "command": "...", "timeout": 8 }
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Only `type: "command"` handlers are allowed, `timeout` is an integer number of
|
|
156
|
+
seconds between 1 and 10, and the document must stay under 256 KiB. For
|
|
157
|
+
`SessionStart` and `UserPromptSubmit` the command stdout with exit code 0 is added
|
|
158
|
+
to the agent context; exit code 2 blocks the action.
|
|
159
|
+
|
|
160
|
+
The preset ships that file instead of describing the hook surface in prose only:
|
|
161
|
+
|
|
162
|
+
| Event | Command | Purpose |
|
|
163
|
+
|---|---|---|
|
|
164
|
+
| `SessionStart` | `node .mavis/hooks/check-preset-update.mjs` | Prints the preset-update notice as session context |
|
|
165
|
+
| `SubagentStop` | `node .mavis/hooks/mavis-chain-hook.mjs` | Reconciles `status.json` / `metrics.json` after a producer receipt |
|
|
166
|
+
|
|
167
|
+
### Protocol bridge
|
|
168
|
+
|
|
169
|
+
The Cursor/Claude chain hook and the MiniMax hook protocol disagree in three
|
|
170
|
+
places, so the preset ships a Mavis-only adapter, `.mavis/hooks/mavis-chain-hook.mjs`:
|
|
171
|
+
|
|
172
|
+
- **Trigger.** The chain hook acts only when its stdin payload carries the producer
|
|
173
|
+
receipt (`status: "completed"`). The MiniMax `SubagentStop` payload carries
|
|
174
|
+
`agent_type`, `agent_id` and `last_assistant_message` instead, so the adapter adds
|
|
175
|
+
the trigger and forwards the payload unchanged.
|
|
176
|
+
- **Guards.** A stop is not a producer receipt by itself. `stop_hook_active` means
|
|
177
|
+
this hook already continued the turn, and a missing or non-kebab `agent_type`
|
|
178
|
+
means one of the runtime's own agents. Both return `{}` and do not run the chain.
|
|
179
|
+
Preset roles are kebab-case. This matches the Claude `SubagentStop` block; the
|
|
180
|
+
Mavis chain script is the Cursor variant and does not contain the guard.
|
|
181
|
+
- **Output.** The chain hook answers with its own receipt JSON (`ok`, `action`,
|
|
182
|
+
`followup_message`), which is not a MiniMax wire decision: the runtime rejects
|
|
183
|
+
unknown keys and reports `HOOK_INVALID_OUTPUT`. The adapter translates the receipt.
|
|
184
|
+
A `followup_message`, or a refusal `reason` when `ok` is false, becomes
|
|
185
|
+
`hookSpecificOutput.additionalContext` (the runtime carries it into the agent as
|
|
186
|
+
a continuation prompt). Anything else becomes `{}` (the default decision).
|
|
187
|
+
|
|
188
|
+
The `SessionStart` handler needs no adapter: the version check prints plain text, and
|
|
189
|
+
plain text on `SessionStart` becomes agent context.
|
|
190
|
+
|
|
191
|
+
### Enablement
|
|
192
|
+
|
|
193
|
+
A project hook does not run until the user turns it on for that project in
|
|
194
|
+
Settings → Hooks → Project. The per-project record lives in the runtime data dir
|
|
195
|
+
(`hook-settings/state.json`), not in the repository, so the state is per machine and
|
|
196
|
+
per project and a fresh clone starts disabled again. The enablement is keyed by a
|
|
197
|
+
hook id — a digest of the event and the command — so a preset update that changes
|
|
198
|
+
the command text needs the hook switched on again.
|
|
199
|
+
|
|
200
|
+
Two limits shape that choice:
|
|
201
|
+
|
|
202
|
+
- The hook stays off until the user enables it (see Enablement above). The shipped
|
|
203
|
+
prose keeps the manual runner (`bash .mavis/hooks/chain-team-phases.sh`) as the
|
|
204
|
+
fallback, so the chain works before and after the switch.
|
|
205
|
+
- The preset writes only the project scope: `.minimax/hooks.json` and `.minimax/skills`.
|
|
206
|
+
It never writes `~/.minimax/**`; the runtime data dir stays out of the platform contract.
|
|
207
|
+
A consumer `.minimax/hooks.json` is merged, not replaced: init adds only the handlers
|
|
208
|
+
it ships and `clean mavis` strips exactly those.
|
|
209
|
+
|
|
210
|
+
Not shipped: the `PreToolUse` shell guard (the event exists, but a tool-blocking
|
|
211
|
+
guard changes agent behaviour) and a `UserPromptSubmit` overlay probe (the probe
|
|
212
|
+
is path-scoped and cannot be reproduced faithfully by a hook that does not know
|
|
213
|
+
the paths of the step in play).
|
|
87
214
|
|
|
88
215
|
## Automated probe contract
|
|
89
216
|
|
|
@@ -174,5 +301,6 @@ root `AGENTS.md`, referenced rule/skill, and `--file` role sentinels
|
|
|
174
301
|
returned; CLI version identified; operator `~/.minimax` mtime unchanged.
|
|
175
302
|
Accepted fallbacks: no native project discovery without explicit
|
|
176
303
|
references; `mcode init` is TTY-only; `--output-schema` is not required;
|
|
177
|
-
project MCP /
|
|
304
|
+
project MCP / slash commands remain unknown; native project hooks are confirmed.
|
|
305
|
+
Desktop 3.0.65 and
|
|
178
306
|
CLI 0.2.7 stay snapshots, not pins. WP-B is authorized.
|
|
@@ -174,7 +174,7 @@ Summary:
|
|
|
174
174
|
- [ ] Twin drift: after editing a Claude `commands/**` or `skills/**` file, `node scripts/check-preset-twin-drift.mjs` passes — mirror the change in the Cursor twin (delta and divergence unchanged) or record a deliberate divergence with `--update`. A deliberate divergence that **raises** an allowance needs `--update --widen`; dropping a baseline row needs `--update --prune`. A plain `--update` refuses both.
|
|
175
175
|
- [ ] Generated trees regenerated (`generate-claude.mjs` + `generate-mavis.mjs` + `generate-opencode.mjs` + `generate-zcode.mjs`, or `yarn fix:generated`) and CLI goldens recaptured (`capture-cli-golden.mjs`) after any preset-installed file changes
|
|
176
176
|
|
|
177
|
-
Validation: `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) + the `preset-pr-checklist` rule; the full composite runs in `yarn release:gate`. CI workflows: `preset-structure.yml` (`check`, `hooks`, `ai-local-engine-tests`), `platform-smoke.yml` (3-OS smoke: `init multi`/`update`/`doctor`, platform suites, script gate), `rule-eval.yml` (opt-in next rule-eval), and `release-gate.yml` (manual `yarn release:gate` run + report artifact).
|
|
177
|
+
Validation: `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) + the `preset-pr-checklist` rule; the full composite runs in `yarn release:gate`. CI workflows: `preset-structure.yml` (`classify`, `check`, `tooling-suites`, `hooks`, `ai-local-engine-tests`), `platform-smoke.yml` (3-OS smoke: `init multi`/`update`/`doctor`, platform suites, script gate), `rule-eval.yml` (opt-in next rule-eval), and `release-gate.yml` (manual `yarn release:gate` run + report artifact).
|
|
178
178
|
|
|
179
179
|
## Release order
|
|
180
180
|
|
|
@@ -406,6 +406,12 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
|
|
|
406
406
|
|
|
407
407
|
## Dogfood & structure scripts (this monorepo)
|
|
408
408
|
|
|
409
|
+
Every gate in this table renders through the green/red output contract: one `ok <unit> (…)` line on
|
|
410
|
+
stdout, or a pointer `FAIL <unit>: <file>[:<line>]: expected X, got Y` plus a capped list and a `re-run:`
|
|
411
|
+
line. `scripts/lib/gate-output.mjs` (node) and `scripts/lib/gate_output.py` (the five `python3` heredocs)
|
|
412
|
+
own the line and block shapes, pinned byte-for-byte by `scripts/lib/gate-output.golden.json`; a new gate
|
|
413
|
+
uses the carrier instead of printing.
|
|
414
|
+
|
|
409
415
|
| Script / npm | Purpose |
|
|
410
416
|
|--------------|---------|
|
|
411
417
|
| `yarn fix:generated` | Regenerate every released generated platform and recapture the CLI goldens it owns (`cursor/next`, `claude/next`, and every Mavis/OpenCode/ZCode stack). Claude's stack set is the Cursor stack directories, not the OpenCode contract. Run after changing Cursor SoT, before fail-only checks. Capture a non-`next` Cursor/Claude golden explicitly with `node scripts/capture-cli-golden.mjs <cursor|claude> <stack>`; never hand-edit one. Dogfood sync remains separate. |
|
|
@@ -427,7 +433,8 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
|
|
|
427
433
|
| `scripts/check-preset-self-review-contract.sh` / `yarn check:preset-structure` | **FAIL** if the producer-side self-review / context-hygiene contract is absent: the core `_shared/core/quality/self-review-and-context-hygiene.md` tokens (G0 non-vacuous guard), the `<!-- shared-core: quality/self-review-and-context-hygiene.md -->` marker on `task-analyst` / `feature-developer` / `build-verifier` (×10) and on `debugger` / `code-reviewer` where present (skip-if-absent → `mcp-ts`), the `Self-review` + `re-anchor` tokens on every orchestrator rule, `Self-review` in `team/README.md` + `commands/task.md`, and leakage-free core + docs; **refuses vacuous PASS** when the iteration set is empty. Also holds two prose contracts: the canonical self-learning-loop sentence must not be followed by unsanctioned prose (an allowlist of sanctioned clauses; the tail is bounded by the carrier's **section**, not by a blank line, so prose moved one paragraph down still fails — a tail in a later `## ` section is out of scope), and every retro carrier (command, skill, rule) must state `finding_category`. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-self-review-contract-fixtures.mjs`. |
|
|
428
434
|
| `scripts/check-anti-hallucination-coverage.mjs` | **FAIL** when the shared contract, a Cursor load-line embed, a writer stack floor, or a generated Rules-to-load stem is missing. Writer roles are `implementer`, `unit-test`, `e2e`, `qa`, and `reviewer` (`code-reviewer` loads `STACK_FLOOR_STEMS` plus the contract). `/task` and the orchestrator must not name a floor stem. Does not scan consumer `app/**` and does not call Context7. Fixture `test-anti-hallucination-coverage.mjs` deletes `anti-hallucination-contract` from `next.reviewer` in memory and expects FAIL mentioning `next` and `reviewer`. Wired into `check-preset-structure.sh` immediately after `check-claude-agent-blocks.mjs`. |
|
|
429
435
|
| `presets/_shared/ai-local/scripts/check-write-scope.mjs` | Read-only post-step audit: compares the actual changed paths with the current `pipeline.json` step's `writeScopes` and labels each path `declared`, `derived` (task folder, engine mirror, generated platform tree/golden/hook, dogfood tree, adapter map), or `out-of-scope`, with the source named. Shipped to consumers as `.ai.local/scripts/check-write-scope.mjs` (`ENGINE_SCRIPTS`). `--slug <slug> [--step <id>] [--base <ref>] [--root <project>] [--paths a,b] [--save-baseline] [--json]`. Baseline resolution: `--paths`, then `--base <ref>`, then the step baseline written by `--step <id> --save-baseline` (every dirty path with its content hash, plus the files its declared `writeScopes` cover — passed as `--paths` — so a step armed on a clean tree still owns its surface), then `HEAD` (whole uncommitted change-set, reported with a notice). Exit `1` for an out-of-scope path on an implementation step, `0` for a reviewer/verifier step (advisory), `2` on a usage/config error, `3` (SKIP) when the pipeline predates step ids or `writeScopes` and is therefore not auditable. Fixture `test-write-scope.mjs`; wired into the build-verifier and code-reviewer prompts, never a hook. |
|
|
430
|
-
| `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Low-level orchestrator: twin-map + token-budget + leakage + shared-core drift + anti-hallucination coverage + rule-eval (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Invoked by `yarn release:gate` and CI; not a feature-task gate. |
|
|
436
|
+
| `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Low-level orchestrator: twin-map + token-budget + leakage + shared-core drift + anti-hallucination coverage + rule-eval (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Runs the 54 preset checks only (~2 min); `--list` prints their labels. Invoked by `yarn release:gate` and CI; not a feature-task gate. |
|
|
437
|
+
| `scripts/run-tooling-tests.sh` / `yarn test:tooling` | The tooling self-test tier: the 81 `test-*` suites that guard the preset tooling itself (preset fixtures, CLI install, team-db, hook lifecycle, contract guards, tooling core). One command, one exit code, ~21 min; `--list` prints the 81 labels. Reached through `run-locked.mjs --label test:tooling`, so it holds the same `preset-tree-lock` as the composite; a direct `bash` run warns that it holds none. Its failures are downgraded only by `scripts/_lib/structure-known-failures.json`, and it is the second phase of `yarn release:gate`. CI runs it from the `tooling-suites` job when the change-set touches the tooling domains (`ci-tooling-tier-gate.sh`). |
|
|
431
438
|
| `scripts/check-product-specs.sh` / `yarn check:product-specs` | Opt-in consumer tree check: frontmatter v1 keys + required body headings on `docs/specs/**` (bash; does **not** run JSON Schema). Ships in the npm package `files` (`scripts/`). **WARN** by default; **`--strict`** exits non-zero. |
|
|
432
439
|
| `yarn check:product-specs:dogfood` | Same script against monorepo `dogfood/mcp-ts-sample`. Soft WARN inside the composite + CI step (`continue-on-error`); the release gate runs `--strict`; not a hard consumer CI gate. |
|
|
433
440
|
| `scripts/check-rule-eval.mjs` / `yarn check:rule-eval` | **Hard gate** inside `check-preset-structure.sh`: validates Incorrect/Correct pairs + `impact:` on **next-only** golden stems (`eval/next/manifest.json`). Backend / ios / php-hexagonal / php-laravel stems are out of scope until a stack adds `eval/<stack>/`. |
|
|
@@ -437,6 +444,15 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
|
|
|
437
444
|
| `presets/_shared/ai-local/scripts/team-db-scheduler.mjs` | The scheduled-jobs module, shipped to consumers as `.ai.local/scripts/team-db-scheduler.mjs` (`ENGINE_SCRIPTS`): the job validator, a dependency-free five-field cron parser and next-fire on `Intl` zone math (both DST transitions are fixtures), the deterministic atomic `scheduler/jobs.json` store, the run-manifest and capped-capture helpers (the recorded sha256 covers exactly the pre-marker bytes, so a capped stream is not reported `E_LOG_HASH`), the projection into `scheduled_jobs` / `job_runs` / `job_run_events`, retention (1 MiB per stream, 200 runs, 30 days, 2 GiB; a pruned run directory takes its row with it; an active run is never pruned), restart reconciliation to `interrupted`, and `runScheduler` — the lease, the `BEGIN IMMEDIATE` claim, a durable run-now queue the timer re-reads and merges at every tick, the detached child with a process-group kill, `catch-up` bounded to five occurrences per gap with the truncation recorded (`E_CATCH_UP_TRUNCATED`), and the kill-switch drain. Fixture `test-team-db-scheduler.mjs`; concurrency fixtures live in `test-team-db-concurrency.mjs`. |
|
|
438
445
|
| `scripts/check-team-db-contract.mjs` + `scripts/test-team-db-*.mjs` | The contract script, which validates the team-db OpenAPI contract, plus the suite family: eight suites (schema, project, migrate-tasks, dual-write, API, security, concurrency, scheduler), the tracker family (tracker, tracker-order, tracker-project, tracker-queue, tracker-import), task-runner, efficiency, and the FAIL-direction fixtures. The fixtures prove each gate fails on its planted defect; `test-team-db-concurrency.mjs` covers first-creation races, a mixed writer/reader load, `SIGKILL` recovery, a held lock, the 5 s hook budget, and the scheduler's four seams (scheduler versus projector on one database, a `SIGKILL`ed scheduler reconciled to one `interrupted` row, 50 finalized runs inside the WAL bound, and a held exclusive lock that neither hangs nor leaves a lease). `check-preset-structure.sh` wires the contract, the eight suites and the fixtures (ten entries). `yarn test:team-db` runs all seventeen stages, including the tracker family, task-runner and efficiency, which the structure gate does not run; the preset classifier names it for `team-db` paths. |
|
|
439
446
|
|
|
447
|
+
The ladder, one composite run per change-set:
|
|
448
|
+
|
|
449
|
+
1. **Targeted (seconds):** `node scripts/check-preset-twin-drift.mjs`, `check-claude-agent-parity.mjs`, `test-cli-init-clean.mjs`, `test-generated-cache.mjs` — a source edit that is not mirrored in the Claude twin fails here, not after the ~2-minute composite, and not 21 minutes into `yarn test:tooling`.
|
|
450
|
+
2. **Regenerate:** `yarn fix:generated` after a source or generator edit; it rewrites every platform stack and the CLI goldens.
|
|
451
|
+
3. **Classified:** `yarn check:changed` — the classifier names the gates the change-set affects.
|
|
452
|
+
4. **Composite, once:** `bash scripts/check-preset-structure.sh` after the last edit. `--fail-fast` stops at the first failure the allowlist does not declare (a known one is printed and the sweep continues), `--list` prints the 54 preset checks, and a single gate is its own script under `scripts/` — run that directly rather than filtering the composite. The 81 tooling self-test suites (`test-*`) run from `yarn test:tooling` (~23 min, one command, one exit code); `--list` on `scripts/run-tooling-tests.sh` prints those 81 labels. The union of the two label sets is the 135 the two entry points now carry (134 before `structure-output-contract fixtures` was added), pinned by `test-structure-tier-partition.mjs`.
|
|
453
|
+
|
|
454
|
+
The composite exits 0 when every failure is already listed in `scripts/_lib/structure-known-failures.json` (each entry carries owner, reason, and date). A known failure that starts passing prints a stale-entry warning and the aggregate exits 1, so the row cannot hide the next regression. Both entry points read that file, but each tier reports only its own labels: the composite prints one `NOTE:` line for an allowlisted suite that belongs to the tooling tier, and `yarn test:tooling` owns the stale-entry warning for its 81. A malformed allowlist exits 2. Two runs may fill the same cache key at once — `generated-cache.mjs` publishes with one rename — while the preset-tree lock still keeps a gate away from a running `fix:generated`.
|
|
455
|
+
|
|
440
456
|
Run from `packages/ai-rules/`:
|
|
441
457
|
|
|
442
458
|
```bash
|
|
@@ -448,19 +464,21 @@ yarn check:changed
|
|
|
448
464
|
yarn check:fast
|
|
449
465
|
# release only, from the repo root:
|
|
450
466
|
yarn release:gate
|
|
467
|
+
# release only, the tooling self-test tier on its own:
|
|
468
|
+
yarn test:tooling
|
|
451
469
|
```
|
|
452
470
|
|
|
453
471
|
Iteration versus release:
|
|
454
472
|
|
|
455
473
|
- **`yarn check:task <slug>`** — the task-scoped classifier (`check-preset-delta.mjs --since-task <slug>`). It reads `.ai.local/team/.write-scope/<slug>/*.json`, unions the step baselines, and returns only this task's change-set; `--save-baseline` snapshots an inline task before its first write. A missing baseline falls back to `--base HEAD` with a warning.
|
|
456
474
|
- **`yarn check:changed`** — the repo-wide classifier (`check-preset-delta.mjs --base HEAD`, or `--paths a,b`). Use it on a clean tree or pass the task paths explicitly; otherwise earlier uncommitted batches are attributed to this task. It prints `affected loop gates` and a separate `release-only gates` line.
|
|
457
|
-
- **`yarn check:fast`** — the
|
|
458
|
-
- **`yarn release:gate`** — the full release gate: `
|
|
459
|
-
- **`yarn check:preset-structure`** — the low-level composite; CI and `release:gate` call it. Do not run it in a feature task.
|
|
475
|
+
- **`yarn check:fast`** — the fallback gate (`check-preset-fast.sh`: the content floor — twin map, twin drift, generated drift, semantic parity, token budget, leakage, frontmatter — plus frontmatter dogfood, consumer links, next attached budget, and the OpenCode platform-contract self-test). Run it only when the classifier names no gate. A `preset-content` diff names that floor plus the path slice for the file that changed: hooks also name chain-hook coverage and hook-token lock, a router edit names parallel-plan, and preset prose names hard i18n. `test-cli-init-clean` stays on `preset-install` / `preset-generator` and in `yarn test:tooling`, not on a rule edit.
|
|
476
|
+
- **`yarn release:gate`** — the full release gate, four phases: `preset-structure` (the 54 preset checks), `tooling-tests` (`yarn test:tooling`, the 81 tooling suites — `AI_RULES_SKIP_HOOK_TESTS` / `AI_RULES_SKIP_PACK_TESTS` are refused), `test:ai-local`, and the strict product-specs dogfood. Each phase writes its own `exit`, so a red tooling suite fails the release without hiding a green preset tier. Run it alone on the release commit before a tag.
|
|
477
|
+
- **`yarn check:preset-structure`** — the low-level composite; CI and `release:gate` call it. It runs the preset tier only. Do not run it in a feature task.
|
|
460
478
|
|
|
461
479
|
`check-generated-drift` caches generated trees in the OS temp directory, keyed by a digest of the Cursor/`_shared` sources and the generator libraries. A source or generator edit misses the cache and regenerates; the cache is disposable and never hides drift.
|
|
462
480
|
|
|
463
|
-
CI: [`.github/workflows/preset-structure.yml`](../../../.github/workflows/preset-structure.yml) runs the
|
|
481
|
+
CI: [`.github/workflows/preset-structure.yml`](../../../.github/workflows/preset-structure.yml) runs the 54 preset checks on PRs touching `packages/ai-rules/**`; its `classify` job reads the change-set domains from `check-preset-delta.mjs` and the `tooling-suites` job runs `yarn test:tooling` only when they touch `preset-tooling`, `preset-generator`, `preset-install`, `preset-engine`, or `team-db` (a prose-only `preset-content` change stays on the 54-check job; a skip is announced in the job summary). The other workflows in `.github/workflows/`: `platform-smoke.yml` (3-OS smoke: `init multi`, `update`, `doctor`, platform suites, script gate), `rule-eval.yml` (opt-in next rule-eval via `scripts/check-rule-eval.mjs`), `team-tasks-ui.yml` (lint, type-check, and unit tests for `apps/team-tasks-ui`; no e2e), and `release-gate.yml` (`yarn release:gate` on a `v*` tag or a chosen ref; uploads the `.release-gate/` report as an artifact).
|
|
464
482
|
|
|
465
483
|
---
|
|
466
484
|
|
|
@@ -469,7 +487,7 @@ CI: [`.github/workflows/preset-structure.yml`](../../../.github/workflows/preset
|
|
|
469
487
|
`yarn fix:generated` deletes and rebuilds every platform stack, so the writer and every gate that reads `presets/**` take one exclusive lock (`scripts/lib/preset-tree-lock.mjs`; lock directory `.preset-tree-lock/` with `owner.json` pid + token). From `packages/ai-rules/`:
|
|
470
488
|
|
|
471
489
|
```bash
|
|
472
|
-
yarn preset:loop # fix:generated && check:
|
|
490
|
+
yarn preset:loop # fix:generated && check:classified, in series
|
|
473
491
|
yarn fix:generated --wait 600000 # opt in to waiting for a live holder
|
|
474
492
|
```
|
|
475
493
|
|