@bonesofspring/ai-rules 0.2.80 → 0.2.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -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 +9 -0
- package/package.json +4 -1
- 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/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/code-reviewer.md +5 -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/code-reviewer.md +5 -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/code-reviewer.md +5 -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/code-reviewer.md +5 -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 +3 -2
- package/presets/opencode/plugins/task-status/deepseek.ts +58 -34
- package/presets/opencode/plugins/task-status/tui.tsx +17 -17
- 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/code-reviewer.md +5 -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,55 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.84
|
|
4
|
+
|
|
5
|
+
### A 25-minute gate that stops at the first failure, names known ones, and survives two runs at once
|
|
6
|
+
|
|
7
|
+
- **`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.
|
|
8
|
+
- **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.
|
|
9
|
+
- **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.
|
|
10
|
+
- **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.
|
|
11
|
+
|
|
12
|
+
## 0.2.83
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### A declared review step is enforced, and an unprovable behaviour becomes a question
|
|
16
|
+
|
|
17
|
+
- **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.
|
|
18
|
+
- **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.
|
|
19
|
+
- **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.
|
|
20
|
+
|
|
21
|
+
## 0.2.82
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Engine scripts — the four defects an external review found, and the gates that keep them out
|
|
25
|
+
|
|
26
|
+
- **`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`.
|
|
27
|
+
- **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.
|
|
28
|
+
- **`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.
|
|
29
|
+
- **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.
|
|
30
|
+
- **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.
|
|
31
|
+
- **`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.
|
|
32
|
+
- **`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`.
|
|
33
|
+
- **`.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`.
|
|
34
|
+
- **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).
|
|
35
|
+
- **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.
|
|
36
|
+
- **Update.** `/update` commits the managed trees on their own: a preset refresh and app work never share a commit or a merge request.
|
|
37
|
+
|
|
38
|
+
## 0.2.81
|
|
39
|
+
|
|
40
|
+
### `opencode` — the task sidebar reads the same models store and the same window hours as the UI
|
|
41
|
+
|
|
42
|
+
- **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.
|
|
43
|
+
- **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.
|
|
44
|
+
- **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.
|
|
45
|
+
- **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.
|
|
46
|
+
- **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.
|
|
47
|
+
|
|
48
|
+
### `mavis` — native skills install under `.minimax/skills`, and project hooks merge
|
|
49
|
+
|
|
50
|
+
- **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.
|
|
51
|
+
- **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.
|
|
52
|
+
|
|
3
53
|
## 0.2.80
|
|
4
54
|
|
|
5
55
|
### `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.
|
|
@@ -437,6 +437,15 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
|
|
|
437
437
|
| `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
438
|
| `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
439
|
|
|
440
|
+
The ladder, one composite run per change-set:
|
|
441
|
+
|
|
442
|
+
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 25 minutes later.
|
|
443
|
+
2. **Regenerate:** `yarn fix:generated` after a source or generator edit; it rewrites every platform stack and the CLI goldens.
|
|
444
|
+
3. **Classified:** `yarn check:changed` — the classifier names the gates the change-set affects.
|
|
445
|
+
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 all 134 labels, and a single gate is its own script under `scripts/` — run that directly rather than filtering the composite.
|
|
446
|
+
|
|
447
|
+
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. 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`.
|
|
448
|
+
|
|
440
449
|
Run from `packages/ai-rules/`:
|
|
441
450
|
|
|
442
451
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonesofspring/ai-rules",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.84",
|
|
4
4
|
"description": "Presets of Cursor, Claude, Mavis, OpenCode, and ZCode rules/commands for Revy Ross personal use",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Revy Ross",
|
|
@@ -76,6 +76,8 @@
|
|
|
76
76
|
"test:task-repositories-fixtures": "node scripts/test-task-repositories.mjs",
|
|
77
77
|
"test:backfill-repositories": "node scripts/test-backfill-repositories.mjs",
|
|
78
78
|
"test:rr-migrate-repositories": "node scripts/test-rr-migrate-repositories.mjs",
|
|
79
|
+
"test:check-verification": "node scripts/test-check-verification.mjs",
|
|
80
|
+
"check:engine-test-coverage": "node scripts/check-engine-test-coverage.mjs",
|
|
79
81
|
"check:product-specs": "bash scripts/check-product-specs.sh",
|
|
80
82
|
"check:product-specs:self-test": "bash scripts/check-product-specs.sh --self-test",
|
|
81
83
|
"check:product-specs:dogfood": "bash scripts/check-product-specs.sh ../../dogfood/mcp-ts-sample",
|
|
@@ -136,6 +138,7 @@
|
|
|
136
138
|
"check:mavis-local-overlay": "node scripts/check-mavis-local-overlay.mjs",
|
|
137
139
|
"test:mavis-context-budget": "node scripts/test-mavis-context-budget.mjs",
|
|
138
140
|
"test:mavis-orchestration": "node scripts/test-mavis-orchestration.mjs",
|
|
141
|
+
"test:mavis-chain-decision": "node scripts/test-mavis-chain-decision.mjs",
|
|
139
142
|
"check:opencode-platform-contract": "node scripts/check-opencode-platform-contract.mjs --self-test",
|
|
140
143
|
"check:opencode-adapter-map": "node scripts/check-opencode-adapter-map.mjs --self-test",
|
|
141
144
|
"check:opencode-token-budget": "node scripts/check-opencode-token-budget.mjs",
|
|
@@ -136,6 +136,9 @@ function readJson(file) {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
/** `readJson` returns `undefined` for a parse error and `null` for a non-object. */
|
|
140
|
+
const unusableJson = (value) => value === undefined || value === null;
|
|
141
|
+
|
|
139
142
|
/** The registry's view of one slug: the ids its links name, sorted. */
|
|
140
143
|
function linkedIds(registry, slug) {
|
|
141
144
|
if (registry === null) return null;
|
|
@@ -148,6 +151,7 @@ function linkedIds(registry, slug) {
|
|
|
148
151
|
|
|
149
152
|
function main() {
|
|
150
153
|
const args = parseArgs(process.argv.slice(2));
|
|
154
|
+
const warnings = [];
|
|
151
155
|
if (!fs.existsSync(args.tasksRoot)) {
|
|
152
156
|
if (args.explicitRoot) usageError(`--tasks-root is not a directory: ${args.tasksRoot}`);
|
|
153
157
|
// A fresh clone has no task store (`.ai.local/team/tasks/*` is gitignored):
|
|
@@ -159,10 +163,18 @@ function main() {
|
|
|
159
163
|
let activeSlug = null;
|
|
160
164
|
if (fs.existsSync(activeTaskFile)) {
|
|
161
165
|
const active = readJson(activeTaskFile);
|
|
162
|
-
if (active
|
|
166
|
+
if (active === undefined) {
|
|
167
|
+
warnings.push('active-task.json is not valid JSON; no slug excluded as in-flight');
|
|
168
|
+
} else if (!unusableJson(active) && typeof active.slug === 'string') {
|
|
169
|
+
activeSlug = active.slug;
|
|
170
|
+
}
|
|
163
171
|
}
|
|
164
|
-
|
|
172
|
+
let registry = fs.existsSync(args.registry) ? readJson(args.registry) : null;
|
|
165
173
|
if (registry === undefined) usageError(`--registry is not valid JSON: ${args.registry}`);
|
|
174
|
+
if (registry !== null && (!Array.isArray(registry.repositories) || !Array.isArray(registry.links))) {
|
|
175
|
+
warnings.push(`registry ${args.registry} has no repositories[]/links[] arrays; id and link checks skipped`);
|
|
176
|
+
registry = null;
|
|
177
|
+
}
|
|
166
178
|
const knownIds = registry === null ? null : new Set(registry.repositories.map((record) => record.id));
|
|
167
179
|
|
|
168
180
|
const folders = fs
|
|
@@ -195,6 +207,10 @@ function main() {
|
|
|
195
207
|
report('pipeline.json is not valid JSON');
|
|
196
208
|
continue;
|
|
197
209
|
}
|
|
210
|
+
if (pipeline === null) {
|
|
211
|
+
report('pipeline.json is not a JSON object');
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
198
214
|
if (!Object.prototype.hasOwnProperty.call(pipeline, 'repositories')) {
|
|
199
215
|
report('pipeline.json without repositories');
|
|
200
216
|
continue;
|
|
@@ -234,6 +250,7 @@ function main() {
|
|
|
234
250
|
const summary = `${folders.length} task folders, ${checked} with pipeline.json${
|
|
235
251
|
legacy.length > 0 ? `, legacy before ${args.cutoff}: ${legacy.length}` : ''
|
|
236
252
|
}${excluded.length > 0 ? `, excluded (active): ${excluded.join(', ')}` : ''}`;
|
|
253
|
+
for (const warning of warnings) console.error(`WARN ${warning}`);
|
|
237
254
|
if (args.json) {
|
|
238
255
|
console.log(
|
|
239
256
|
JSON.stringify(
|
|
@@ -246,6 +263,7 @@ function main() {
|
|
|
246
263
|
excluded,
|
|
247
264
|
violations,
|
|
248
265
|
legacy,
|
|
266
|
+
warnings,
|
|
249
267
|
},
|
|
250
268
|
null,
|
|
251
269
|
2,
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
* and which carry a zero-input gate row. It reports; it never edits a report,
|
|
6
6
|
* never writes a metric, and never fails a scan that actually looked at tasks.
|
|
7
7
|
*
|
|
8
|
-
* The one non-zero exit is the vacuity rule: a scan
|
|
9
|
-
* `checked: 0` and exits 1 unless `check-verification` is listed under
|
|
10
|
-
* `zeroInputAllowlist` in `.ai.local/pipeline-gates.json` with a reason.
|
|
8
|
+
* The one non-zero exit is the vacuity rule: a scan that read zero reports
|
|
9
|
+
* prints `checked: 0` and exits 1 unless `check-verification` is listed under
|
|
10
|
+
* `zeroInputAllowlist` in `.ai.local/pipeline-gates.json` with a reason. Folders
|
|
11
|
+
* without a report are counted as `folders`, never as `checked`.
|
|
11
12
|
*
|
|
12
13
|
* Usage:
|
|
13
14
|
* node .ai.local/scripts/check-verification.mjs [--team-root <dir>] [--json]
|
|
@@ -179,11 +180,15 @@ const run = () => {
|
|
|
179
180
|
|
|
180
181
|
const buckets = { missingTree: 0, staleTree: 0, zeroInput: 0, zeroInputAllowlisted: 0, legacy: 0 };
|
|
181
182
|
const findings = [];
|
|
183
|
+
// A folder without a report verifies nothing, so the pass counts reports read,
|
|
184
|
+
// not folders found.
|
|
185
|
+
let checked = 0;
|
|
182
186
|
|
|
183
187
|
for (const slug of slugs) {
|
|
184
188
|
const taskDir = path.join(tasksRoot, slug);
|
|
185
189
|
const report = reportFor(taskDir);
|
|
186
190
|
if (report === null) continue;
|
|
191
|
+
checked += 1;
|
|
187
192
|
if (lastTouched(taskDir) < cutoffMs) {
|
|
188
193
|
buckets.legacy += 1;
|
|
189
194
|
findings.push({ slug, reason: 'legacy', detail: `last update before ${CUTOFF}` });
|
|
@@ -228,7 +233,7 @@ const run = () => {
|
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
const gateAllowed = allowlist.find((item) => item.gate === GATE_ID);
|
|
231
|
-
const vacuous =
|
|
236
|
+
const vacuous = checked === 0;
|
|
232
237
|
const exitCode = vacuous && !gateAllowed ? 1 : 0;
|
|
233
238
|
|
|
234
239
|
if (args.json) {
|
|
@@ -237,7 +242,8 @@ const run = () => {
|
|
|
237
242
|
{
|
|
238
243
|
ok: exitCode === 0,
|
|
239
244
|
gate: GATE_ID,
|
|
240
|
-
checked
|
|
245
|
+
checked,
|
|
246
|
+
folders: slugs.length,
|
|
241
247
|
cutoff: CUTOFF,
|
|
242
248
|
tree,
|
|
243
249
|
buckets,
|
|
@@ -249,7 +255,8 @@ const run = () => {
|
|
|
249
255
|
)}\n`,
|
|
250
256
|
);
|
|
251
257
|
} else {
|
|
252
|
-
process.stdout.write(`checked: ${
|
|
258
|
+
process.stdout.write(`checked: ${checked}\n`);
|
|
259
|
+
process.stdout.write(`folders: ${slugs.length}\n`);
|
|
253
260
|
process.stdout.write(`tree: ${tree ? `${tree.head} (+${tree.dirtyFiles} dirty)` : 'no-git'}\n`);
|
|
254
261
|
process.stdout.write(`cutoff: ${CUTOFF}\n`);
|
|
255
262
|
process.stdout.write(`missing-tree: ${buckets.missingTree}\n`);
|