@bonesofspring/ai-rules 0.2.78 → 0.2.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -0
- package/README.md +4 -2
- package/bin/lib/engine-scripts.js +6 -0
- package/bin/lib/merged-config.js +49 -0
- package/bin/lib/seed-ai-local-team.js +4 -0
- package/bin/mavis-install.js +53 -3
- package/docs/MAVIS-COMPATIBILITY.md +136 -8
- package/docs/PRESET-CONTRIBUTION.md +9 -0
- package/docs/TEAM-DB.md +118 -15
- package/docs/openapi/team-db.v1.json +2879 -1858
- package/package.json +8 -1
- package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +282 -0
- package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
- package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +531 -0
- package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +211 -12
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +289 -3
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +857 -1
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +68 -0
- package/presets/_shared/ai-local/scripts/team-db-tracker.mjs +29 -10
- package/presets/_shared/ai-local/scripts/team-db.mjs +46 -1
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
- package/presets/_shared/core/review/code-review-mr.md +19 -4
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +109 -1
- package/presets/_shared/hooks/compact-shell-output.mjs +16 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/claude/android-kotlin/agents/task-router.md +2 -0
- package/presets/claude/android-kotlin/commands/README.md +1 -0
- package/presets/claude/android-kotlin/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/android-kotlin/commands/task.md +4 -0
- package/presets/claude/android-kotlin/commands/update.md +1 -0
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/claude/go/agents/code-reviewer.md +5 -1
- package/presets/claude/go/agents/task-router.md +2 -0
- package/presets/claude/go/commands/README.md +1 -0
- package/presets/claude/go/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/go/commands/task.md +4 -0
- package/presets/claude/go/commands/update.md +1 -0
- package/presets/claude/go/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/go/skills/code-review/SKILL.md +2 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/claude/ios-swift/agents/task-router.md +2 -0
- package/presets/claude/ios-swift/commands/README.md +1 -0
- package/presets/claude/ios-swift/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/ios-swift/commands/task.md +4 -0
- package/presets/claude/ios-swift/commands/update.md +1 -0
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/claude/java/agents/code-reviewer.md +5 -1
- package/presets/claude/java/agents/task-router.md +2 -0
- package/presets/claude/java/commands/README.md +1 -0
- package/presets/claude/java/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/java/commands/task.md +4 -0
- package/presets/claude/java/commands/update.md +1 -0
- package/presets/claude/java/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/java/skills/code-review/SKILL.md +2 -1
- package/presets/claude/mcp-ts/agents/task-router.md +2 -0
- package/presets/claude/mcp-ts/commands/README.md +1 -0
- package/presets/claude/mcp-ts/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/mcp-ts/commands/task.md +4 -0
- package/presets/claude/mcp-ts/commands/update.md +1 -0
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/mol/REPO_AGENTS.md +1 -1
- package/presets/claude/mol/agents/code-reviewer.md +5 -1
- package/presets/claude/mol/agents/task-router.md +3 -1
- package/presets/claude/mol/commands/README.md +1 -0
- package/presets/claude/mol/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/mol/commands/task.md +4 -0
- package/presets/claude/mol/commands/update.md +1 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/mol/skills/code-review/SKILL.md +2 -1
- package/presets/claude/next/REPO_AGENTS.md +1 -1
- package/presets/claude/next/agents/code-reviewer.md +5 -1
- package/presets/claude/next/agents/task-router.md +3 -1
- package/presets/claude/next/commands/README.md +1 -0
- package/presets/claude/next/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/next/commands/task.md +4 -0
- package/presets/claude/next/commands/ui-start.md +12 -4
- package/presets/claude/next/commands/ui-stop.md +5 -2
- package/presets/claude/next/commands/update.md +1 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/next/skills/code-review/SKILL.md +2 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +5 -1
- package/presets/claude/nuxt/agents/task-router.md +3 -1
- package/presets/claude/nuxt/commands/README.md +1 -0
- package/presets/claude/nuxt/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/nuxt/commands/task.md +4 -0
- package/presets/claude/nuxt/commands/update.md +1 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/claude/php-hexagonal/agents/task-router.md +2 -0
- package/presets/claude/php-hexagonal/commands/README.md +1 -0
- package/presets/claude/php-hexagonal/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/php-hexagonal/commands/task.md +4 -0
- package/presets/claude/php-hexagonal/commands/update.md +1 -0
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/claude/php-laravel/agents/task-router.md +2 -0
- package/presets/claude/php-laravel/commands/README.md +1 -0
- package/presets/claude/php-laravel/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/php-laravel/commands/task.md +4 -0
- package/presets/claude/php-laravel/commands/update.md +1 -0
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/claude/svelte/agents/code-reviewer.md +5 -1
- package/presets/claude/svelte/agents/task-router.md +3 -1
- package/presets/claude/svelte/commands/README.md +1 -0
- package/presets/claude/svelte/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/svelte/commands/task.md +4 -0
- package/presets/claude/svelte/commands/update.md +1 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/cursor/android-kotlin/agents/task-router.md +2 -0
- package/presets/cursor/android-kotlin/commands/README.md +1 -0
- package/presets/cursor/android-kotlin/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/android-kotlin/commands/task.md +4 -0
- package/presets/cursor/android-kotlin/commands/update.md +1 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/go/agents/code-reviewer.md +5 -1
- package/presets/cursor/go/agents/task-router.md +2 -0
- package/presets/cursor/go/commands/README.md +1 -0
- package/presets/cursor/go/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/go/commands/task.md +4 -0
- package/presets/cursor/go/commands/update.md +1 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/go/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/go/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/go/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/cursor/ios-swift/agents/task-router.md +2 -0
- package/presets/cursor/ios-swift/commands/README.md +1 -0
- package/presets/cursor/ios-swift/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/ios-swift/commands/task.md +4 -0
- package/presets/cursor/ios-swift/commands/update.md +1 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/java/agents/code-reviewer.md +5 -1
- package/presets/cursor/java/agents/task-router.md +2 -0
- package/presets/cursor/java/commands/README.md +1 -0
- package/presets/cursor/java/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/java/commands/task.md +4 -0
- package/presets/cursor/java/commands/update.md +1 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/java/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/java/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/java/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/mcp-ts/agents/task-router.md +2 -0
- package/presets/cursor/mcp-ts/commands/README.md +1 -0
- package/presets/cursor/mcp-ts/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/mcp-ts/commands/task.md +4 -0
- package/presets/cursor/mcp-ts/commands/update.md +1 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/REPO_AGENTS.md +1 -1
- package/presets/cursor/mol/agents/code-reviewer.md +5 -1
- package/presets/cursor/mol/agents/task-router.md +3 -1
- package/presets/cursor/mol/commands/README.md +1 -0
- package/presets/cursor/mol/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/mol/commands/task.md +4 -0
- package/presets/cursor/mol/commands/update.md +1 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/mol/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mol/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/next/REPO_AGENTS.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +5 -1
- package/presets/cursor/next/agents/task-router.md +3 -1
- package/presets/cursor/next/commands/README.md +1 -0
- package/presets/cursor/next/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/next/commands/task.md +4 -0
- package/presets/cursor/next/commands/ui-start.md +12 -4
- package/presets/cursor/next/commands/ui-stop.md +5 -2
- package/presets/cursor/next/commands/update.md +1 -0
- package/presets/cursor/next/hooks/README.md +2 -0
- package/presets/cursor/next/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/next/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/next/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +5 -1
- package/presets/cursor/nuxt/agents/task-router.md +3 -1
- package/presets/cursor/nuxt/commands/README.md +1 -0
- package/presets/cursor/nuxt/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/nuxt/commands/task.md +4 -0
- package/presets/cursor/nuxt/commands/update.md +1 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-hexagonal/agents/task-router.md +2 -0
- package/presets/cursor/php-hexagonal/commands/README.md +1 -0
- package/presets/cursor/php-hexagonal/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/php-hexagonal/commands/task.md +4 -0
- package/presets/cursor/php-hexagonal/commands/update.md +1 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-laravel/agents/task-router.md +2 -0
- package/presets/cursor/php-laravel/commands/README.md +1 -0
- package/presets/cursor/php-laravel/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/php-laravel/commands/task.md +4 -0
- package/presets/cursor/php-laravel/commands/update.md +1 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +5 -1
- package/presets/cursor/svelte/agents/task-router.md +3 -1
- package/presets/cursor/svelte/commands/README.md +1 -0
- package/presets/cursor/svelte/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/svelte/commands/task.md +4 -0
- package/presets/cursor/svelte/commands/update.md +1 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/svelte/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/svelte/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/android-kotlin/MAVIS.md +9 -3
- package/presets/mavis/android-kotlin/README.md +3 -1
- package/presets/mavis/android-kotlin/adapter-map.json +111 -43
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/mavis/android-kotlin/agents/task-router.md +2 -0
- package/presets/mavis/android-kotlin/commands/README.md +1 -0
- package/presets/mavis/android-kotlin/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/android-kotlin/commands/task.md +4 -0
- package/presets/mavis/android-kotlin/commands/update.md +1 -0
- package/presets/mavis/android-kotlin/hooks/README.md +29 -7
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/android-kotlin/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/android-kotlin/hooks/run-hook.mjs +103 -0
- package/presets/mavis/android-kotlin/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/android-kotlin/native-skills/README.md +15 -0
- package/presets/mavis/android-kotlin/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/android-kotlin/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/android-kotlin/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/android-kotlin/native-skills/instrumentation-ui-e2e/SKILL.md +23 -0
- package/presets/mavis/android-kotlin/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/android-kotlin/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/android-kotlin/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/android-kotlin/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/android-kotlin/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/android-kotlin/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/android-kotlin/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/android-kotlin/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/android-kotlin/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/go/MAVIS.md +9 -3
- package/presets/mavis/go/README.md +3 -1
- package/presets/mavis/go/adapter-map.json +101 -39
- package/presets/mavis/go/agents/code-reviewer.md +5 -1
- package/presets/mavis/go/agents/task-router.md +2 -0
- package/presets/mavis/go/commands/README.md +1 -0
- package/presets/mavis/go/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/go/commands/task.md +4 -0
- package/presets/mavis/go/commands/update.md +1 -0
- package/presets/mavis/go/hooks/README.md +29 -7
- package/presets/mavis/go/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/go/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/go/hooks/run-hook.mjs +103 -0
- package/presets/mavis/go/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/go/native-skills/README.md +15 -0
- package/presets/mavis/go/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/go/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/go/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/go/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/go/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/go/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/go/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/go/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/go/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/go/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/go/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/go/rules/code-review-mr.md +19 -4
- package/presets/mavis/go/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/ios-swift/MAVIS.md +9 -3
- package/presets/mavis/ios-swift/README.md +3 -1
- package/presets/mavis/ios-swift/adapter-map.json +111 -43
- package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/mavis/ios-swift/agents/task-router.md +2 -0
- package/presets/mavis/ios-swift/commands/README.md +1 -0
- package/presets/mavis/ios-swift/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/ios-swift/commands/task.md +4 -0
- package/presets/mavis/ios-swift/commands/update.md +1 -0
- package/presets/mavis/ios-swift/hooks/README.md +29 -7
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/ios-swift/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/ios-swift/hooks/run-hook.mjs +103 -0
- package/presets/mavis/ios-swift/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/ios-swift/native-skills/README.md +15 -0
- package/presets/mavis/ios-swift/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/ios-swift/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/ios-swift/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/ios-swift/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/ios-swift/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/ios-swift/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/ios-swift/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/ios-swift/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/ios-swift/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/ios-swift/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/ios-swift/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/ios-swift/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/ios-swift/native-skills/xcuitest-e2e/SKILL.md +39 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/mavis/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/java/MAVIS.md +9 -3
- package/presets/mavis/java/README.md +3 -1
- package/presets/mavis/java/adapter-map.json +101 -39
- package/presets/mavis/java/agents/code-reviewer.md +5 -1
- package/presets/mavis/java/agents/task-router.md +2 -0
- package/presets/mavis/java/commands/README.md +1 -0
- package/presets/mavis/java/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/java/commands/task.md +4 -0
- package/presets/mavis/java/commands/update.md +1 -0
- package/presets/mavis/java/hooks/README.md +29 -7
- package/presets/mavis/java/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/java/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/java/hooks/run-hook.mjs +103 -0
- package/presets/mavis/java/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/java/native-skills/README.md +15 -0
- package/presets/mavis/java/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/java/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/java/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/java/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/java/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/java/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/java/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/java/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/java/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/java/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/java/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/java/rules/code-review-mr.md +19 -4
- package/presets/mavis/java/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/mcp-ts/MAVIS.md +9 -3
- package/presets/mavis/mcp-ts/README.md +3 -1
- package/presets/mavis/mcp-ts/adapter-map.json +84 -31
- package/presets/mavis/mcp-ts/agents/task-router.md +2 -0
- package/presets/mavis/mcp-ts/commands/README.md +1 -0
- package/presets/mavis/mcp-ts/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/mcp-ts/commands/task.md +4 -0
- package/presets/mavis/mcp-ts/commands/update.md +1 -0
- package/presets/mavis/mcp-ts/hooks/README.md +29 -7
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/mcp-ts/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mcp-ts/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mcp-ts/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mcp-ts/native-skills/README.md +15 -0
- package/presets/mavis/mcp-ts/native-skills/code-review/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/debug-investigation/SKILL.md +51 -0
- package/presets/mavis/mcp-ts/native-skills/feature-delivery/SKILL.md +42 -0
- package/presets/mavis/mcp-ts/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mcp-ts/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mcp-ts/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mcp-ts/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mcp-ts/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/mcp-ts/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/mcp-ts/native-skills/technical-retro/SKILL.md +95 -0
- package/presets/mavis/mcp-ts/native-skills/unit-testing/SKILL.md +22 -0
- package/presets/mavis/mcp-ts/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/MAVIS.md +9 -3
- package/presets/mavis/mol/README.md +3 -1
- package/presets/mavis/mol/REPO_AGENTS.md +1 -1
- package/presets/mavis/mol/adapter-map.json +101 -39
- package/presets/mavis/mol/agents/code-reviewer.md +5 -1
- package/presets/mavis/mol/agents/task-router.md +3 -1
- package/presets/mavis/mol/commands/README.md +1 -0
- package/presets/mavis/mol/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/mol/commands/task.md +4 -0
- package/presets/mavis/mol/commands/update.md +1 -0
- package/presets/mavis/mol/hooks/README.md +29 -7
- package/presets/mavis/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/mol/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mol/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mol/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mol/native-skills/README.md +15 -0
- package/presets/mavis/mol/native-skills/ci-investigation/SKILL.md +49 -0
- package/presets/mavis/mol/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/debug-investigation/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/feature-delivery/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mol/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mol/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/task/SKILL.md +82 -0
- package/presets/mavis/mol/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/mol/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/mol/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/mol/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/mol/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mol/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/next/MAVIS.md +9 -3
- package/presets/mavis/next/README.md +3 -1
- package/presets/mavis/next/REPO_AGENTS.md +1 -1
- package/presets/mavis/next/adapter-map.json +135 -52
- package/presets/mavis/next/agents/code-reviewer.md +5 -1
- package/presets/mavis/next/agents/task-router.md +3 -1
- package/presets/mavis/next/commands/README.md +1 -0
- package/presets/mavis/next/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/next/commands/task.md +4 -0
- package/presets/mavis/next/commands/ui-start.md +12 -4
- package/presets/mavis/next/commands/ui-stop.md +5 -2
- package/presets/mavis/next/commands/update.md +1 -0
- package/presets/mavis/next/hooks/README.md +29 -7
- package/presets/mavis/next/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/next/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/next/hooks/run-hook.mjs +103 -0
- package/presets/mavis/next/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/next/native-skills/README.md +15 -0
- package/presets/mavis/next/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/next/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/next/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/feature-delivery/SKILL.md +45 -0
- package/presets/mavis/next/native-skills/figma-fidelity/SKILL.md +131 -0
- package/presets/mavis/next/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/next/native-skills/mockup-review/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/playwright-e2e/SKILL.md +39 -0
- package/presets/mavis/next/native-skills/react-performance/SKILL.md +49 -0
- package/presets/mavis/next/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/next/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/next/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/next/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/task/SKILL.md +88 -0
- package/presets/mavis/next/native-skills/task-continue/SKILL.md +87 -0
- package/presets/mavis/next/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/next/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/next/native-skills/ui-start/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/ui-stop/SKILL.md +48 -0
- package/presets/mavis/next/native-skills/unit-testing/SKILL.md +40 -0
- package/presets/mavis/next/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/next/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/next/rules/code-review-mr.md +19 -4
- package/presets/mavis/next/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/nuxt/MAVIS.md +9 -3
- package/presets/mavis/nuxt/README.md +3 -1
- package/presets/mavis/nuxt/adapter-map.json +116 -45
- package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
- package/presets/mavis/nuxt/agents/task-router.md +3 -1
- package/presets/mavis/nuxt/commands/README.md +1 -0
- package/presets/mavis/nuxt/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/nuxt/commands/task.md +4 -0
- package/presets/mavis/nuxt/commands/update.md +1 -0
- package/presets/mavis/nuxt/hooks/README.md +29 -7
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/nuxt/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/nuxt/hooks/run-hook.mjs +103 -0
- package/presets/mavis/nuxt/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/nuxt/native-skills/README.md +15 -0
- package/presets/mavis/nuxt/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/nuxt/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/nuxt/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/nuxt/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/nuxt/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/nuxt/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/nuxt/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/nuxt/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/nuxt/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/nuxt/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/nuxt/native-skills/vue-performance/SKILL.md +58 -0
- package/presets/mavis/nuxt/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/nuxt/rules/code-review-mr.md +19 -4
- package/presets/mavis/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +9 -3
- package/presets/mavis/php-hexagonal/README.md +3 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +101 -39
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-hexagonal/agents/task-router.md +2 -0
- package/presets/mavis/php-hexagonal/commands/README.md +1 -0
- package/presets/mavis/php-hexagonal/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/php-hexagonal/commands/task.md +4 -0
- package/presets/mavis/php-hexagonal/commands/update.md +1 -0
- package/presets/mavis/php-hexagonal/hooks/README.md +29 -7
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/php-hexagonal/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-hexagonal/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-hexagonal/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-hexagonal/native-skills/README.md +15 -0
- package/presets/mavis/php-hexagonal/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-hexagonal/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-hexagonal/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-hexagonal/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-hexagonal/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-hexagonal/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-hexagonal/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-hexagonal/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-laravel/MAVIS.md +9 -3
- package/presets/mavis/php-laravel/README.md +3 -1
- package/presets/mavis/php-laravel/adapter-map.json +101 -39
- package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-laravel/agents/task-router.md +2 -0
- package/presets/mavis/php-laravel/commands/README.md +1 -0
- package/presets/mavis/php-laravel/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/php-laravel/commands/task.md +4 -0
- package/presets/mavis/php-laravel/commands/update.md +1 -0
- package/presets/mavis/php-laravel/hooks/README.md +29 -7
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/php-laravel/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-laravel/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-laravel/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-laravel/native-skills/README.md +15 -0
- package/presets/mavis/php-laravel/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-laravel/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-laravel/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-laravel/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-laravel/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-laravel/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-laravel/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-laravel/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-laravel/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-laravel/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-laravel/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/platform-contract.json +18 -5
- package/presets/mavis/svelte/MAVIS.md +9 -3
- package/presets/mavis/svelte/README.md +3 -1
- package/presets/mavis/svelte/adapter-map.json +116 -45
- package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
- package/presets/mavis/svelte/agents/task-router.md +3 -1
- package/presets/mavis/svelte/commands/README.md +1 -0
- package/presets/mavis/svelte/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/svelte/commands/task.md +4 -0
- package/presets/mavis/svelte/commands/update.md +1 -0
- package/presets/mavis/svelte/hooks/README.md +29 -7
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/svelte/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/svelte/hooks/run-hook.mjs +103 -0
- package/presets/mavis/svelte/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/svelte/native-skills/README.md +15 -0
- package/presets/mavis/svelte/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/svelte/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/svelte/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/svelte/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/svelte/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/svelte-performance/SKILL.md +57 -0
- package/presets/mavis/svelte/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/svelte/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/svelte/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/svelte/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/svelte/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/svelte/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/svelte/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/svelte/rules/code-review-mr.md +19 -4
- package/presets/mavis/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/android-kotlin/adapter-map.json +9 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/opencode/android-kotlin/agents/task-router.md +2 -0
- package/presets/opencode/android-kotlin/commands/README.md +1 -0
- package/presets/opencode/android-kotlin/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/android-kotlin/commands/task.md +4 -0
- package/presets/opencode/android-kotlin/commands/update.md +1 -0
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/go/adapter-map.json +9 -1
- package/presets/opencode/go/agents/code-reviewer.md +5 -1
- package/presets/opencode/go/agents/task-router.md +2 -0
- package/presets/opencode/go/commands/README.md +1 -0
- package/presets/opencode/go/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/go/commands/task.md +4 -0
- package/presets/opencode/go/commands/update.md +1 -0
- package/presets/opencode/go/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/go/rules/code-review-mr.md +19 -4
- package/presets/opencode/go/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/ios-swift/adapter-map.json +9 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/opencode/ios-swift/agents/task-router.md +2 -0
- package/presets/opencode/ios-swift/commands/README.md +1 -0
- package/presets/opencode/ios-swift/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/ios-swift/commands/task.md +4 -0
- package/presets/opencode/ios-swift/commands/update.md +1 -0
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/opencode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/java/adapter-map.json +9 -1
- package/presets/opencode/java/agents/code-reviewer.md +5 -1
- package/presets/opencode/java/agents/task-router.md +2 -0
- package/presets/opencode/java/commands/README.md +1 -0
- package/presets/opencode/java/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/java/commands/task.md +4 -0
- package/presets/opencode/java/commands/update.md +1 -0
- package/presets/opencode/java/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/java/rules/code-review-mr.md +19 -4
- package/presets/opencode/java/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/mcp-ts/adapter-map.json +9 -1
- package/presets/opencode/mcp-ts/agents/task-router.md +2 -0
- package/presets/opencode/mcp-ts/commands/README.md +1 -0
- package/presets/opencode/mcp-ts/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/mcp-ts/commands/task.md +4 -0
- package/presets/opencode/mcp-ts/commands/update.md +1 -0
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/REPO_AGENTS.md +1 -1
- package/presets/opencode/mol/adapter-map.json +9 -1
- package/presets/opencode/mol/agents/code-reviewer.md +5 -1
- package/presets/opencode/mol/agents/task-router.md +3 -1
- package/presets/opencode/mol/commands/README.md +1 -0
- package/presets/opencode/mol/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/mol/commands/task.md +4 -0
- package/presets/opencode/mol/commands/update.md +1 -0
- package/presets/opencode/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mol/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/next/REPO_AGENTS.md +1 -1
- package/presets/opencode/next/adapter-map.json +9 -1
- package/presets/opencode/next/agents/code-reviewer.md +5 -1
- package/presets/opencode/next/agents/task-router.md +3 -1
- package/presets/opencode/next/commands/README.md +1 -0
- package/presets/opencode/next/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/next/commands/task.md +4 -0
- package/presets/opencode/next/commands/ui-start.md +12 -4
- package/presets/opencode/next/commands/ui-stop.md +5 -2
- package/presets/opencode/next/commands/update.md +1 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/next/rules/code-review-mr.md +19 -4
- package/presets/opencode/next/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/nuxt/adapter-map.json +9 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/opencode/nuxt/agents/task-router.md +3 -1
- package/presets/opencode/nuxt/commands/README.md +1 -0
- package/presets/opencode/nuxt/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/nuxt/commands/task.md +4 -0
- package/presets/opencode/nuxt/commands/update.md +1 -0
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/opencode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +9 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-hexagonal/agents/task-router.md +2 -0
- package/presets/opencode/php-hexagonal/commands/README.md +1 -0
- package/presets/opencode/php-hexagonal/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/php-hexagonal/commands/task.md +4 -0
- package/presets/opencode/php-hexagonal/commands/update.md +1 -0
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-laravel/adapter-map.json +9 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-laravel/agents/task-router.md +2 -0
- package/presets/opencode/php-laravel/commands/README.md +1 -0
- package/presets/opencode/php-laravel/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/php-laravel/commands/task.md +4 -0
- package/presets/opencode/php-laravel/commands/update.md +1 -0
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/plugins/task-status/README.md +16 -7
- package/presets/opencode/plugins/task-status/deepseek.ts +217 -0
- package/presets/opencode/plugins/task-status/details-data.ts +39 -2
- package/presets/opencode/plugins/task-status/prompt-text.ts +18 -8
- package/presets/opencode/plugins/task-status/task-view.ts +253 -63
- package/presets/opencode/plugins/task-status/tui.tsx +48 -11
- package/presets/opencode/svelte/adapter-map.json +9 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
- package/presets/opencode/svelte/agents/task-router.md +3 -1
- package/presets/opencode/svelte/commands/README.md +1 -0
- package/presets/opencode/svelte/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/svelte/commands/task.md +4 -0
- package/presets/opencode/svelte/commands/update.md +1 -0
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/svelte/rules/code-review-mr.md +19 -4
- package/presets/opencode/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/android-kotlin/adapter-map.json +9 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/zcode/android-kotlin/agents/task-router.md +2 -0
- package/presets/zcode/android-kotlin/commands/README.md +1 -0
- package/presets/zcode/android-kotlin/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/android-kotlin/commands/task.md +4 -0
- package/presets/zcode/android-kotlin/commands/update.md +1 -0
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/go/adapter-map.json +9 -1
- package/presets/zcode/go/agents/code-reviewer.md +5 -1
- package/presets/zcode/go/agents/task-router.md +2 -0
- package/presets/zcode/go/commands/README.md +1 -0
- package/presets/zcode/go/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/go/commands/task.md +4 -0
- package/presets/zcode/go/commands/update.md +1 -0
- package/presets/zcode/go/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/go/rules/code-review-mr.md +19 -4
- package/presets/zcode/go/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/ios-swift/adapter-map.json +9 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/zcode/ios-swift/agents/task-router.md +2 -0
- package/presets/zcode/ios-swift/commands/README.md +1 -0
- package/presets/zcode/ios-swift/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/ios-swift/commands/task.md +4 -0
- package/presets/zcode/ios-swift/commands/update.md +1 -0
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/zcode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/java/adapter-map.json +9 -1
- package/presets/zcode/java/agents/code-reviewer.md +5 -1
- package/presets/zcode/java/agents/task-router.md +2 -0
- package/presets/zcode/java/commands/README.md +1 -0
- package/presets/zcode/java/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/java/commands/task.md +4 -0
- package/presets/zcode/java/commands/update.md +1 -0
- package/presets/zcode/java/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/java/rules/code-review-mr.md +19 -4
- package/presets/zcode/java/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/mcp-ts/adapter-map.json +9 -1
- package/presets/zcode/mcp-ts/agents/task-router.md +2 -0
- package/presets/zcode/mcp-ts/commands/README.md +1 -0
- package/presets/zcode/mcp-ts/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/mcp-ts/commands/task.md +4 -0
- package/presets/zcode/mcp-ts/commands/update.md +1 -0
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/REPO_AGENTS.md +1 -1
- package/presets/zcode/mol/adapter-map.json +9 -1
- package/presets/zcode/mol/agents/code-reviewer.md +5 -1
- package/presets/zcode/mol/agents/task-router.md +3 -1
- package/presets/zcode/mol/commands/README.md +1 -0
- package/presets/zcode/mol/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/mol/commands/task.md +4 -0
- package/presets/zcode/mol/commands/update.md +1 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mol/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/next/REPO_AGENTS.md +1 -1
- package/presets/zcode/next/adapter-map.json +9 -1
- package/presets/zcode/next/agents/code-reviewer.md +5 -1
- package/presets/zcode/next/agents/task-router.md +3 -1
- package/presets/zcode/next/commands/README.md +1 -0
- package/presets/zcode/next/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/next/commands/task.md +4 -0
- package/presets/zcode/next/commands/ui-start.md +12 -4
- package/presets/zcode/next/commands/ui-stop.md +5 -2
- package/presets/zcode/next/commands/update.md +1 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/next/rules/code-review-mr.md +19 -4
- package/presets/zcode/next/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/nuxt/adapter-map.json +9 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/zcode/nuxt/agents/task-router.md +3 -1
- package/presets/zcode/nuxt/commands/README.md +1 -0
- package/presets/zcode/nuxt/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/nuxt/commands/task.md +4 -0
- package/presets/zcode/nuxt/commands/update.md +1 -0
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/zcode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +9 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-hexagonal/agents/task-router.md +2 -0
- package/presets/zcode/php-hexagonal/commands/README.md +1 -0
- package/presets/zcode/php-hexagonal/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/php-hexagonal/commands/task.md +4 -0
- package/presets/zcode/php-hexagonal/commands/update.md +1 -0
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-laravel/adapter-map.json +9 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-laravel/agents/task-router.md +2 -0
- package/presets/zcode/php-laravel/commands/README.md +1 -0
- package/presets/zcode/php-laravel/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/php-laravel/commands/task.md +4 -0
- package/presets/zcode/php-laravel/commands/update.md +1 -0
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/svelte/adapter-map.json +9 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
- package/presets/zcode/svelte/agents/task-router.md +3 -1
- package/presets/zcode/svelte/commands/README.md +1 -0
- package/presets/zcode/svelte/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/svelte/commands/task.md +4 -0
- package/presets/zcode/svelte/commands/update.md +1 -0
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/svelte/rules/code-review-mr.md +19 -4
- package/presets/zcode/svelte/skills/code-review/SKILL.md +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,102 @@
|
|
|
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
|
+
|
|
53
|
+
## 0.2.80
|
|
54
|
+
|
|
55
|
+
### `opencode` — the task sidebar shows the session's own task
|
|
56
|
+
|
|
57
|
+
- **Match anchor.** The sidebar no longer matches by any user message: the index is `prompt.md` only (a `prompt-log.md` holds confirmations, not prompts) and the match anchors on the session's opening prompt. A later `делай` / `продолжай` / `подтверждаю` cannot map a tab to a newer task, and a confirmation-only session resolves to `no task`.
|
|
58
|
+
- **Tiers and binding.** An exact prompt match wins; the fallback substring tier is 40 characters and ignores confirmation words. A `/task-continue <slug>` resolves case-insensitively and an unknown slug falls back to the prompt match instead of hiding the task. The first successful mapping is pinned for the session, so a new message cannot flip the tab; only another explicit `/task-continue` re-binds it.
|
|
59
|
+
- **Prompt parser.** `prompt-text.ts` reads the legacy `# Original prompt` heading, list-style meta lines (`- source: ...`), a bare body, and fences, so `prompt.md` variants match exactly and the details excerpt no longer includes the meta block.
|
|
60
|
+
- **Resume authority.** A resume word clears only the pinned task's `STOP`; a repository-wide `.ai.local/STOP` needs an explicit `/task-continue <slug>`. A text match no longer carries that authority.
|
|
61
|
+
- **Tick cost.** The economy block parses only the appended bytes of `output-guard/results*.jsonl` and memoizes its totals (a 10 MB ledger cost ~44 ms per second before); the details dialog reuses its ETA index and its build until a task file changes; the prompt index no longer re-reads `prompt-log.md`.
|
|
62
|
+
- **Robustness.** A throw inside the tick keeps the last view instead of freezing it, an unreadable sentinel is absent rather than a phantom pause, a stale slot input stops following a closed tab, and parallel waves display the highest active step.
|
|
63
|
+
- **Fixtures.** `test-task-status-view` grows from 18 to 27 cases: confirmation words, prompt-log noise, the legacy prompt format, case-insensitive and unknown `/task-continue`, the pinned binding, the `/task` prefix, a re-used session, and details reuse. The `cli-golden` opencode fixtures carry the new plugin hashes.
|
|
64
|
+
|
|
65
|
+
## 0.2.79
|
|
66
|
+
|
|
67
|
+
### `engine` — a repository registry with task links and honest verdicts
|
|
68
|
+
|
|
69
|
+
- **File of record.** `.ai.local/team/repositories.json` holds `{ version, repositories[], links[], attributions[] }`, local-only and git-ignored, deterministically serialized (declared key order, records by `id`, links by `(taskSlug, repositoryId)`, attributions by `taskSlug`); an unchanged rewrite performs no write. An absent file is a valid empty store, so `init` seeds nothing. `/rr-migrate-repositories` scans the clones on disk (default: the parent of the repository root), creates the missing records, updates a changed name/locator/status with the stored revision, and projects the file, so a new machine is one command away.
|
|
70
|
+
- **One lock-guarded verb.** `team-db.mjs repositories apply|put|delete|list|project` holds `.repositories.lock` across the read-modify-write-projection, writes the file by temp file plus rename, then projects the touched rows; a projection throw is caught, logged once, and still answers `ok: true`. Record-level `revision` is the CAS token — a stale or missing one is `409 E_CONFLICT` — and `delete` on a linked record answers `409 E_REPOSITORY_IN_USE` with `linkedTasks`, while `--force` removes the record and its links in the same write.
|
|
71
|
+
- **Migrations `0009-repositories` and `0010-repository-attributions`.** `repositories` + `task_repositories` (`PRIMARY KEY (task_slug, repository_id)`, `ON DELETE CASCADE`, no foreign key on `task_slug`) and `task_repository_attributions` (the verdict only); schema v10, applied from v0 and from a v8 store, links and verdicts replaced together in one transaction.
|
|
72
|
+
- **Five operations over two paths.** `GET|POST /api/v1/repositories` and `GET|PUT|DELETE /api/v1/repositories/{id}`, the write body carrying its own required `id` (a duplicate is 409, a `PUT` body id that differs from the path is 409), plus `?repository=<id>` on the task list and a required `repositories`/`repositoriesInference` pair on the task detail where links outrank the attribution. Five contract counters move together (53 operations, 42 paths, 84 schemas, 53 served routes, 17 mutating routes).
|
|
73
|
+
- **Intake.** `/task` records `repositories` in `pipeline.json` — the array is mandatory — and an empty array is legal only beside `repositoriesInference: "unknown"`, which a non-empty list refuses. The field reaches all 55 preset carriers and the five host trees, and the router never defaults it. The chain hook gates the first receipt of every task — the router's, or the first step's when a pipeline runs without one, graph mode included: no `repositories` array, `[]` without `"unknown"`, `"unknown"` beside a non-empty list, an `repositoriesInference` outside the four verdicts, or an id the registry lacks answers `state: blocked` with the repair text, and the task does not advance. A task that already completed a step is never re-judged; `intakeExemption: { approvedBy, reason, at }` is the only escape hatch — a bare boolean is refused, and every exemption leaves an `intake_repositories_exempted` metric naming its approver. `check-task-repositories.mjs` ships to `<repo>/.ai.local/scripts/` and audits the store after the fact (a folder that omits the field, names an id the registry lacks, or disagrees with its `links[]`), dating the pre-invariant era from `2026-11-22`.
|
|
74
|
+
- **Backfill.** `backfill-repositories.mjs` (dry-run default, idempotent) walks the 227 folders that predate the field down the evidence ladder — 150 `evidence-paths`, 4 `repo-scope-only`, 68 `unknown`, 5 `ambiguous` — and prints each row's rung and evidence, an ambiguous row quoting the excerpt that made it so.
|
|
75
|
+
- **Fixtures.** `test-team-db-schema` pins the two migrations and their checksums plus the v8 → v10 path, `-project` the three-table rebuild from the file alone and a malformed file that tombstones nothing, `-api` the CRUD, both 409s, the delete guard and the verdict ladder, and `-concurrency` two registry writers serializing on the lock. `test-task-repositories` covers the intake presence rule and its cutoff, `test-backfill-repositories` the evidence ladder and a second idempotent run, and `test-rr-migrate-repositories` the remote normalisation, id reuse by locator, one-remote dedupe and the kill switch that leaves the file absent.
|
|
76
|
+
- **Docs.** `docs/TEAM-DB.md` gains § Repository registry and moves the mutation count to seventeen; ADR `0006-repository-registry.md` and `0007-repository-registry-local-only.md`.
|
|
77
|
+
|
|
78
|
+
### `team-tasks-ui` — a repository surface with task links
|
|
79
|
+
|
|
80
|
+
- **Pages.** `/repositories`, `/repositories/new`, `/repositories/[id]`, and `/repositories/[id]/edit`, plus a nav entry after Catalog. The list pages over `total`/`nextOffset`, the detail page pages its linked tasks over the same pair, the create/edit form requires `id` (read-only on edit), and delete runs a two-step dialog that names the N links before any request.
|
|
81
|
+
- **Task detail.** The link block renders each repository with its status badge and keeps `unknown` and `ambiguous` as different empty sentences, so a missing inference is never read as "no repository" — the ambiguous one names the backfill report in text, because no route serves it.
|
|
82
|
+
|
|
83
|
+
### `engine` — a closed tracker item leaves the launch queue
|
|
84
|
+
|
|
85
|
+
- **Queue.** `setTrackerItem` expires the item's open requests in the same transaction for every terminal status — `cancelled` → `item-cancelled`, `superseded` → `item-superseded`, now `completed` → `item-completed` — and only when the status actually changed, so a re-save cannot re-expire. `done` stays derived from the task row and is never stored.
|
|
86
|
+
- **Prune.** `pruneTrackerEntries` retires stored `cancelled`/`expired` and derived `done` alike; a derived-done entry ages from `finishedAt`, else `claimedAt`, else `requestedAt`, so a completed item's `claimed` entry can finally be pruned instead of lingering in the launch queue.
|
|
87
|
+
- **Docs and fixture.** `docs/TEAM-DB.md` § tracker queue states the lifecycle; `test-team-db-tracker-queue.mjs` pins the terminal transitions and the aged-entry prune.
|
|
88
|
+
|
|
89
|
+
### `engine` — a rejected tracker payload burns no id
|
|
90
|
+
|
|
91
|
+
- **Reserve, then commit.** `team-db-tracker.mjs` splits the sequence step: `peekItemId` computes the next id without writing, and `commitItemId` advances `tracker/sequence.json` only after `validateItemIdentity`, `validateItemGraph`, and `validateTransition` pass. A rejected `tracker add` leaves the sequence untouched and the next accepted item reuses the id, so the observed 23/24 gap cannot recur.
|
|
92
|
+
- **The contract is written down.** `docs/TEAM-DB.md` § tracker states the bounds the validator already enforced: `title` one trimmed line of 1–120 characters, `description` at most 2000, `labels` at most 8 of 1–32, `sourceRefs` at most 16 of 1–40, `priority` 0–9, and the `status`/`type` enumerations.
|
|
93
|
+
- **Fixture.** `test-team-db-tracker.mjs` adds "a rejected add never burns an id": a 41-character `sourceRef` exits `1` with `E_SCHEMA`, `sequence.json.nextId` is unchanged, and the next valid add takes that id.
|
|
94
|
+
|
|
95
|
+
### `team-tasks-ui` — `/ui-start` guarantees the process view
|
|
96
|
+
|
|
97
|
+
- **Stack script.** `apps/team-tasks-ui/scripts/stack.mjs` probes `http://127.0.0.1:4179/api/v1/processes` and, when nothing answers, starts `processes.mjs serve` through the process manager (`processes.mjs start --name process-view --port 4179`), so `/processes` no longer opens on `E_DISABLED: The process view is unreachable`. The manager's lease (`.ai.local/.processes/leases/process-view.json`) is the ownership record: an owned view that answers a non-200 is stopped and started once, a foreign listener is reported and left running, and `stop` calls `processes.mjs stop --name process-view` instead of signalling a pid. A missing `processes.mjs` is reported and does not block the UI.
|
|
98
|
+
- **Commands and docs.** `ui-start` quotes the new `processes:` line next to `ui:` and `api:`; `ui-stop` reports the view it stopped. The `apps/team-tasks-ui` README start/stop section and lifecycle matrix rows 1–3 carry the `:4179` expectations.
|
|
99
|
+
|
|
3
100
|
## 0.2.78
|
|
4
101
|
|
|
5
102
|
### `engine` — a follow-up must name a different task
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Run `init` from the **app root** (`--cwd` if needed). Default `--preset` is `nex
|
|
|
25
25
|
| Root agents | `REPO_AGENTS.md` → `AGENTS.md` (same file on all five; ZCode loads it natively) | | | | |
|
|
26
26
|
| `/task` artifacts | **`.ai.local/team/`** (shared; templates refreshed; `tasks/<slug>/` never overwritten) | | | |
|
|
27
27
|
| Template drift | **`.ai.local/.template-base.json`** (shared; one record per tree of files that hold a shipped template byte; `update` prints one drift line, `update --merge-ai-local` fast-forwards a file only when its recorded base still matches and reports the rest) | | | |
|
|
28
|
-
| Self-learning engine | **`.ai.local/scripts/`** (shared;
|
|
28
|
+
| Self-learning engine | **`.ai.local/scripts/`** (shared; thirty published scripts — the six self-learning engine modules, `manifest.mjs`, `dump-output.mjs`, `run-compact.mjs`, the eight `team-db*.mjs` modules, `action-signals.mjs`, `actions-report.mjs`, `check-write-scope.mjs`, `aggregate-agent-task-metrics.mjs`, `record-usage.mjs`, `verification.mjs`, `check-verification.mjs`, `incidents.mjs`, `processes.mjs`, `process-lease.mjs`, `rr-scheduler-start.mjs`, `rr-migrate-repositories.mjs`, and `tracker-planned-drain.mjs`; existing files never overwritten. The repository-only `upstream-research.mjs` is not published) | | | |
|
|
29
29
|
| Specs seed | `docs/specs/` copied only if the directory is **absent** | | | |
|
|
30
30
|
|
|
31
31
|
OpenCode also ships **`.opencode/plugins/task-status/`**, a TUI sidebar for the active `/task` run (slug, state, elapsed time, step, remaining-time estimate, soft-stop). OpenCode auto-loads it; it needs no `opencode.json` entry, is refreshed by `update`, and is a viewer only — the chain hook stays manual.
|
|
@@ -62,7 +62,8 @@ node .ai.local/scripts/run.mjs --dry-run # read-only preview: decision, target,
|
|
|
62
62
|
`--force`. The seeded tree is byte-identical to `presets/_shared/ai-local/scripts/`, and `.ai.local/.gitignore` (created
|
|
63
63
|
when absent, missing required lines appended to an existing file) ignores `*.lock`, `*.tmp`, `.rollback/`, `STOP`,
|
|
64
64
|
`ESTOP`, `team.db`, `team.db-wal`, `team.db-shm`, `team-db-errors.log`, `team.db.corrupt-*`,
|
|
65
|
-
`team.db.mismatch-*`, `team/scheduler/runs/`,
|
|
65
|
+
`team.db.mismatch-*`, `team/scheduler/runs/`, `team/scheduler/state.json`, and
|
|
66
|
+
`team/repositories.json`; the root `.gitignore` is never edited.
|
|
66
67
|
|
|
67
68
|
Upgrade a seeded module with `update --fix`: it writes a module only when its current bytes still match the shipped digest
|
|
68
69
|
recorded in `.ai.local/.template-base.json`. A module you edited is reported `kept modified` and stays byte-identical; a
|
|
@@ -134,6 +135,7 @@ failure is written to `team-db-errors.log` and never fails a file write.
|
|
|
134
135
|
```bash
|
|
135
136
|
node .ai.local/scripts/team-db.mjs init # create/migrate the database
|
|
136
137
|
node .ai.local/scripts/team-db.mjs migrate-tasks # create when absent, then write only the delta
|
|
138
|
+
node .ai.local/scripts/rr-migrate-repositories.mjs # scan local clones into the registry, then project
|
|
137
139
|
node .ai.local/scripts/team-db.mjs sync # full backfill + reconciliation
|
|
138
140
|
node .ai.local/scripts/team-db.mjs sync --slug <slug> # the bounded hook-shaped projection
|
|
139
141
|
node .ai.local/scripts/team-db.mjs check # schema, fingerprint, integrity
|
|
@@ -66,6 +66,9 @@ const ENGINE_SCRIPTS = [
|
|
|
66
66
|
// Read-only post-step write-scope audit used by build-verifier and code-reviewer.
|
|
67
67
|
// Shells out to git, so it is not part of the self-learning loop module set.
|
|
68
68
|
'check-write-scope.mjs',
|
|
69
|
+
// Retrospective audit of `pipeline.json.repositories` across the task store.
|
|
70
|
+
// The chain hook gates intake; this one judges the folders that already exist.
|
|
71
|
+
'check-task-repositories.mjs',
|
|
69
72
|
// Process leases and the one view over them (`start|acquire|run|list|watch|
|
|
70
73
|
// scan|doctor|stop|serve`). `processes.mjs` owns a detached dev-server start
|
|
71
74
|
// and reuses `process-lease.mjs` for the protocol; both spawn `ps`/`lsof` and
|
|
@@ -76,6 +79,9 @@ const ENGINE_SCRIPTS = [
|
|
|
76
79
|
// `/rr-scheduler-start`: stop a recorded scheduler, then start
|
|
77
80
|
// `team-db.mjs schedule` through the process manager.
|
|
78
81
|
'rr-scheduler-start.mjs',
|
|
82
|
+
// `/rr-migrate-repositories`: scan local clones and sync the repository
|
|
83
|
+
// registry through the lock-guarded `repositories apply|put|project` verbs.
|
|
84
|
+
'rr-migrate-repositories.mjs',
|
|
79
85
|
// Role/task metrics aggregation used by technical-retro; ships with the engine
|
|
80
86
|
// so a consumer can run it from `.ai.local/scripts/` without the package.
|
|
81
87
|
'aggregate-agent-task-metrics.mjs',
|
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
|
};
|
|
@@ -44,6 +44,8 @@ const AI_LOCAL_GITIGNORE = [
|
|
|
44
44
|
'# Tracker launch queue and opt-in runner runtime state; items and links stay tracked.',
|
|
45
45
|
'team/tracker/queue/',
|
|
46
46
|
'team/task-runs/',
|
|
47
|
+
'# Local-only repository registry: generated from this machine, never commit.',
|
|
48
|
+
'team/repositories.json',
|
|
47
49
|
'# Per-step write-scope baselines; derived from git, never a project input.',
|
|
48
50
|
'team/.write-scope/',
|
|
49
51
|
'team/upstream/cursor.json',
|
|
@@ -53,6 +55,8 @@ const AI_LOCAL_GITIGNORE = [
|
|
|
53
55
|
'.ui/',
|
|
54
56
|
'# Dev-server lifecycle markers (`.ai.local/.dev/<name>.json`); local runtime state, never commit.',
|
|
55
57
|
'.dev/',
|
|
58
|
+
// Process leases, their event log, and captured logs; local runtime state.
|
|
59
|
+
'.processes/',
|
|
56
60
|
'',
|
|
57
61
|
].join('\n');
|
|
58
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
|