@bonesofspring/ai-rules 0.2.80 → 0.2.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -0
- package/bin/lib/merged-config.js +49 -0
- package/bin/lib/seed-ai-local-team.js +2 -0
- package/bin/mavis-install.js +53 -3
- package/docs/MAVIS-COMPATIBILITY.md +136 -8
- package/docs/PRESET-CONTRIBUTION.md +25 -7
- package/docs/TEAM-DB.md +76 -3
- package/docs/openapi/team-db.v1.json +7069 -5895
- package/package.json +8 -2
- package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +20 -2
- package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
- package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +66 -16
- package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +253 -15
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +310 -4
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +733 -8
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +44 -0
- package/presets/_shared/ai-local/scripts/team-db.mjs +43 -3
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
- package/presets/_shared/core/review/code-review-mr.md +19 -4
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +40 -0
- package/presets/_shared/hooks/compact-shell-output.mjs +16 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/claude/android-kotlin/commands/update.md +1 -0
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/claude/go/agents/code-reviewer.md +5 -1
- package/presets/claude/go/commands/update.md +1 -0
- package/presets/claude/go/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/go/skills/code-review/SKILL.md +2 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/claude/ios-swift/commands/update.md +1 -0
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/claude/java/agents/code-reviewer.md +5 -1
- package/presets/claude/java/commands/update.md +1 -0
- package/presets/claude/java/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/java/skills/code-review/SKILL.md +2 -1
- package/presets/claude/mcp-ts/commands/update.md +1 -0
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/mol/REPO_AGENTS.md +1 -1
- package/presets/claude/mol/agents/code-reviewer.md +5 -1
- package/presets/claude/mol/agents/task-router.md +1 -1
- package/presets/claude/mol/commands/update.md +1 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/mol/skills/code-review/SKILL.md +2 -1
- package/presets/claude/next/REPO_AGENTS.md +1 -1
- package/presets/claude/next/agents/build-verifier.md +2 -1
- package/presets/claude/next/agents/code-reviewer.md +5 -1
- package/presets/claude/next/agents/feature-developer.md +1 -1
- package/presets/claude/next/agents/task-router.md +1 -1
- package/presets/claude/next/commands/update.md +1 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/next/skills/code-review/SKILL.md +2 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +5 -1
- package/presets/claude/nuxt/agents/task-router.md +1 -1
- package/presets/claude/nuxt/commands/update.md +1 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/claude/php-hexagonal/commands/update.md +1 -0
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/claude/php-laravel/commands/update.md +1 -0
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/claude/svelte/agents/code-reviewer.md +5 -1
- package/presets/claude/svelte/agents/task-router.md +1 -1
- package/presets/claude/svelte/commands/update.md +1 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/cursor/android-kotlin/commands/update.md +1 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/go/agents/code-reviewer.md +5 -1
- package/presets/cursor/go/commands/update.md +1 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/go/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/go/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/go/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/cursor/ios-swift/commands/update.md +1 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/java/agents/code-reviewer.md +5 -1
- package/presets/cursor/java/commands/update.md +1 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/java/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/java/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/java/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/mcp-ts/commands/update.md +1 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/REPO_AGENTS.md +1 -1
- package/presets/cursor/mol/agents/code-reviewer.md +5 -1
- package/presets/cursor/mol/agents/task-router.md +1 -1
- package/presets/cursor/mol/commands/update.md +1 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/mol/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mol/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/next/REPO_AGENTS.md +1 -1
- package/presets/cursor/next/agents/build-verifier.md +2 -1
- package/presets/cursor/next/agents/code-reviewer.md +5 -1
- package/presets/cursor/next/agents/feature-developer.md +1 -1
- package/presets/cursor/next/agents/task-router.md +1 -1
- package/presets/cursor/next/commands/update.md +1 -0
- package/presets/cursor/next/hooks/README.md +2 -0
- package/presets/cursor/next/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/next/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/next/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +5 -1
- package/presets/cursor/nuxt/agents/task-router.md +1 -1
- package/presets/cursor/nuxt/commands/update.md +1 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-hexagonal/commands/update.md +1 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-laravel/commands/update.md +1 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +5 -1
- package/presets/cursor/svelte/agents/task-router.md +1 -1
- package/presets/cursor/svelte/commands/update.md +1 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/svelte/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/svelte/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/android-kotlin/MAVIS.md +9 -3
- package/presets/mavis/android-kotlin/README.md +3 -1
- package/presets/mavis/android-kotlin/adapter-map.json +104 -44
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/mavis/android-kotlin/commands/update.md +1 -0
- package/presets/mavis/android-kotlin/hooks/README.md +29 -7
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/android-kotlin/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/android-kotlin/hooks/run-hook.mjs +103 -0
- package/presets/mavis/android-kotlin/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/android-kotlin/native-skills/README.md +15 -0
- package/presets/mavis/android-kotlin/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/android-kotlin/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/android-kotlin/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/android-kotlin/native-skills/instrumentation-ui-e2e/SKILL.md +23 -0
- package/presets/mavis/android-kotlin/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/android-kotlin/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/android-kotlin/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/android-kotlin/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/android-kotlin/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/android-kotlin/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/android-kotlin/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/android-kotlin/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/android-kotlin/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/go/MAVIS.md +9 -3
- package/presets/mavis/go/README.md +3 -1
- package/presets/mavis/go/adapter-map.json +94 -40
- package/presets/mavis/go/agents/code-reviewer.md +5 -1
- package/presets/mavis/go/commands/update.md +1 -0
- package/presets/mavis/go/hooks/README.md +29 -7
- package/presets/mavis/go/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/go/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/go/hooks/run-hook.mjs +103 -0
- package/presets/mavis/go/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/go/native-skills/README.md +15 -0
- package/presets/mavis/go/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/go/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/go/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/go/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/go/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/go/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/go/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/go/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/go/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/go/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/go/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/go/rules/code-review-mr.md +19 -4
- package/presets/mavis/go/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/ios-swift/MAVIS.md +9 -3
- package/presets/mavis/ios-swift/README.md +3 -1
- package/presets/mavis/ios-swift/adapter-map.json +104 -44
- package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/mavis/ios-swift/commands/update.md +1 -0
- package/presets/mavis/ios-swift/hooks/README.md +29 -7
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/ios-swift/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/ios-swift/hooks/run-hook.mjs +103 -0
- package/presets/mavis/ios-swift/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/ios-swift/native-skills/README.md +15 -0
- package/presets/mavis/ios-swift/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/ios-swift/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/ios-swift/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/ios-swift/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/ios-swift/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/ios-swift/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/ios-swift/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/ios-swift/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/ios-swift/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/ios-swift/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/ios-swift/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/ios-swift/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/ios-swift/native-skills/xcuitest-e2e/SKILL.md +39 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/mavis/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/java/MAVIS.md +9 -3
- package/presets/mavis/java/README.md +3 -1
- package/presets/mavis/java/adapter-map.json +94 -40
- package/presets/mavis/java/agents/code-reviewer.md +5 -1
- package/presets/mavis/java/commands/update.md +1 -0
- package/presets/mavis/java/hooks/README.md +29 -7
- package/presets/mavis/java/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/java/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/java/hooks/run-hook.mjs +103 -0
- package/presets/mavis/java/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/java/native-skills/README.md +15 -0
- package/presets/mavis/java/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/java/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/java/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/java/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/java/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/java/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/java/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/java/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/java/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/java/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/java/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/java/rules/code-review-mr.md +19 -4
- package/presets/mavis/java/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/mcp-ts/MAVIS.md +9 -3
- package/presets/mavis/mcp-ts/README.md +3 -1
- package/presets/mavis/mcp-ts/adapter-map.json +77 -32
- package/presets/mavis/mcp-ts/commands/update.md +1 -0
- package/presets/mavis/mcp-ts/hooks/README.md +29 -7
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/mcp-ts/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mcp-ts/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mcp-ts/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mcp-ts/native-skills/README.md +15 -0
- package/presets/mavis/mcp-ts/native-skills/code-review/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/debug-investigation/SKILL.md +51 -0
- package/presets/mavis/mcp-ts/native-skills/feature-delivery/SKILL.md +42 -0
- package/presets/mavis/mcp-ts/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mcp-ts/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mcp-ts/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mcp-ts/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mcp-ts/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/mcp-ts/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/mcp-ts/native-skills/technical-retro/SKILL.md +95 -0
- package/presets/mavis/mcp-ts/native-skills/unit-testing/SKILL.md +22 -0
- package/presets/mavis/mcp-ts/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/MAVIS.md +9 -3
- package/presets/mavis/mol/README.md +3 -1
- package/presets/mavis/mol/REPO_AGENTS.md +1 -1
- package/presets/mavis/mol/adapter-map.json +94 -40
- package/presets/mavis/mol/agents/code-reviewer.md +5 -1
- package/presets/mavis/mol/agents/task-router.md +1 -1
- package/presets/mavis/mol/commands/update.md +1 -0
- package/presets/mavis/mol/hooks/README.md +29 -7
- package/presets/mavis/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/mol/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mol/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mol/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mol/native-skills/README.md +15 -0
- package/presets/mavis/mol/native-skills/ci-investigation/SKILL.md +49 -0
- package/presets/mavis/mol/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/debug-investigation/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/feature-delivery/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mol/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mol/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/task/SKILL.md +82 -0
- package/presets/mavis/mol/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/mol/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/mol/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/mol/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/mol/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mol/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/next/MAVIS.md +9 -3
- package/presets/mavis/next/README.md +3 -1
- package/presets/mavis/next/REPO_AGENTS.md +1 -1
- package/presets/mavis/next/adapter-map.json +128 -53
- package/presets/mavis/next/agents/build-verifier.md +2 -1
- package/presets/mavis/next/agents/code-reviewer.md +5 -1
- package/presets/mavis/next/agents/feature-developer.md +1 -1
- package/presets/mavis/next/agents/task-router.md +1 -1
- package/presets/mavis/next/commands/update.md +1 -0
- package/presets/mavis/next/hooks/README.md +29 -7
- package/presets/mavis/next/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/next/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/next/hooks/run-hook.mjs +103 -0
- package/presets/mavis/next/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/next/native-skills/README.md +15 -0
- package/presets/mavis/next/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/next/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/next/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/feature-delivery/SKILL.md +45 -0
- package/presets/mavis/next/native-skills/figma-fidelity/SKILL.md +131 -0
- package/presets/mavis/next/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/next/native-skills/mockup-review/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/playwright-e2e/SKILL.md +39 -0
- package/presets/mavis/next/native-skills/react-performance/SKILL.md +49 -0
- package/presets/mavis/next/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/next/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/next/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/next/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/task/SKILL.md +88 -0
- package/presets/mavis/next/native-skills/task-continue/SKILL.md +87 -0
- package/presets/mavis/next/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/next/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/next/native-skills/ui-start/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/ui-stop/SKILL.md +48 -0
- package/presets/mavis/next/native-skills/unit-testing/SKILL.md +40 -0
- package/presets/mavis/next/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/next/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/next/rules/code-review-mr.md +19 -4
- package/presets/mavis/next/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/nuxt/MAVIS.md +9 -3
- package/presets/mavis/nuxt/README.md +3 -1
- package/presets/mavis/nuxt/adapter-map.json +109 -46
- package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
- package/presets/mavis/nuxt/agents/task-router.md +1 -1
- package/presets/mavis/nuxt/commands/update.md +1 -0
- package/presets/mavis/nuxt/hooks/README.md +29 -7
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/nuxt/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/nuxt/hooks/run-hook.mjs +103 -0
- package/presets/mavis/nuxt/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/nuxt/native-skills/README.md +15 -0
- package/presets/mavis/nuxt/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/nuxt/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/nuxt/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/nuxt/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/nuxt/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/nuxt/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/nuxt/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/nuxt/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/nuxt/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/nuxt/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/nuxt/native-skills/vue-performance/SKILL.md +58 -0
- package/presets/mavis/nuxt/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/nuxt/rules/code-review-mr.md +19 -4
- package/presets/mavis/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +9 -3
- package/presets/mavis/php-hexagonal/README.md +3 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +94 -40
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-hexagonal/commands/update.md +1 -0
- package/presets/mavis/php-hexagonal/hooks/README.md +29 -7
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/php-hexagonal/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-hexagonal/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-hexagonal/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-hexagonal/native-skills/README.md +15 -0
- package/presets/mavis/php-hexagonal/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-hexagonal/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-hexagonal/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-hexagonal/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-hexagonal/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-hexagonal/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-hexagonal/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-hexagonal/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-laravel/MAVIS.md +9 -3
- package/presets/mavis/php-laravel/README.md +3 -1
- package/presets/mavis/php-laravel/adapter-map.json +94 -40
- package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-laravel/commands/update.md +1 -0
- package/presets/mavis/php-laravel/hooks/README.md +29 -7
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/php-laravel/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-laravel/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-laravel/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-laravel/native-skills/README.md +15 -0
- package/presets/mavis/php-laravel/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-laravel/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-laravel/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-laravel/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-laravel/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-laravel/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-laravel/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-laravel/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-laravel/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-laravel/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-laravel/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/platform-contract.json +18 -5
- package/presets/mavis/svelte/MAVIS.md +9 -3
- package/presets/mavis/svelte/README.md +3 -1
- package/presets/mavis/svelte/adapter-map.json +109 -46
- package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
- package/presets/mavis/svelte/agents/task-router.md +1 -1
- package/presets/mavis/svelte/commands/update.md +1 -0
- package/presets/mavis/svelte/hooks/README.md +29 -7
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/svelte/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/svelte/hooks/run-hook.mjs +103 -0
- package/presets/mavis/svelte/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/svelte/native-skills/README.md +15 -0
- package/presets/mavis/svelte/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/svelte/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/svelte/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/svelte/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/svelte/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/svelte-performance/SKILL.md +57 -0
- package/presets/mavis/svelte/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/svelte/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/svelte/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/svelte/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/svelte/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/svelte/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/svelte/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/svelte/rules/code-review-mr.md +19 -4
- package/presets/mavis/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/opencode/android-kotlin/commands/update.md +1 -0
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +5 -1
- package/presets/opencode/go/commands/update.md +1 -0
- package/presets/opencode/go/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/go/rules/code-review-mr.md +19 -4
- package/presets/opencode/go/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/opencode/ios-swift/commands/update.md +1 -0
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/opencode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +5 -1
- package/presets/opencode/java/commands/update.md +1 -0
- package/presets/opencode/java/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/java/rules/code-review-mr.md +19 -4
- package/presets/opencode/java/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/commands/update.md +1 -0
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/REPO_AGENTS.md +1 -1
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/agents/code-reviewer.md +5 -1
- package/presets/opencode/mol/agents/task-router.md +1 -1
- package/presets/opencode/mol/commands/update.md +1 -0
- package/presets/opencode/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mol/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/next/REPO_AGENTS.md +1 -1
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/agents/build-verifier.md +2 -1
- package/presets/opencode/next/agents/code-reviewer.md +5 -1
- package/presets/opencode/next/agents/feature-developer.md +1 -1
- package/presets/opencode/next/agents/task-router.md +1 -1
- package/presets/opencode/next/commands/update.md +1 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/next/rules/code-review-mr.md +19 -4
- package/presets/opencode/next/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/opencode/nuxt/agents/task-router.md +1 -1
- package/presets/opencode/nuxt/commands/update.md +1 -0
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/opencode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-hexagonal/commands/update.md +1 -0
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-laravel/commands/update.md +1 -0
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/plugins/task-status/README.md +4 -3
- package/presets/opencode/plugins/task-status/deepseek.ts +68 -34
- package/presets/opencode/plugins/task-status/task-view.ts +4 -1
- package/presets/opencode/plugins/task-status/tui.tsx +16 -18
- package/presets/opencode/plugins/task-status/types.ts +5 -1
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
- package/presets/opencode/svelte/agents/task-router.md +1 -1
- package/presets/opencode/svelte/commands/update.md +1 -0
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/svelte/rules/code-review-mr.md +19 -4
- package/presets/opencode/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/zcode/android-kotlin/commands/update.md +1 -0
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/agents/code-reviewer.md +5 -1
- package/presets/zcode/go/commands/update.md +1 -0
- package/presets/zcode/go/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/go/rules/code-review-mr.md +19 -4
- package/presets/zcode/go/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/zcode/ios-swift/commands/update.md +1 -0
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/zcode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/agents/code-reviewer.md +5 -1
- package/presets/zcode/java/commands/update.md +1 -0
- package/presets/zcode/java/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/java/rules/code-review-mr.md +19 -4
- package/presets/zcode/java/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/commands/update.md +1 -0
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/REPO_AGENTS.md +1 -1
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/agents/code-reviewer.md +5 -1
- package/presets/zcode/mol/agents/task-router.md +1 -1
- package/presets/zcode/mol/commands/update.md +1 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mol/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/next/REPO_AGENTS.md +1 -1
- package/presets/zcode/next/adapter-map.json +1 -1
- package/presets/zcode/next/agents/build-verifier.md +2 -1
- package/presets/zcode/next/agents/code-reviewer.md +5 -1
- package/presets/zcode/next/agents/feature-developer.md +1 -1
- package/presets/zcode/next/agents/task-router.md +1 -1
- package/presets/zcode/next/commands/update.md +1 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/next/rules/code-review-mr.md +19 -4
- package/presets/zcode/next/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/zcode/nuxt/agents/task-router.md +1 -1
- package/presets/zcode/nuxt/commands/update.md +1 -0
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/zcode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-hexagonal/commands/update.md +1 -0
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-laravel/commands/update.md +1 -0
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
- package/presets/zcode/svelte/agents/task-router.md +1 -1
- package/presets/zcode/svelte/commands/update.md +1 -0
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/svelte/rules/code-review-mr.md +19 -4
- package/presets/zcode/svelte/skills/code-review/SKILL.md +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonesofspring/ai-rules",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.86",
|
|
4
4
|
"description": "Presets of Cursor, Claude, Mavis, OpenCode, and ZCode rules/commands for Revy Ross personal use",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Revy Ross",
|
|
@@ -40,10 +40,12 @@
|
|
|
40
40
|
],
|
|
41
41
|
"scripts": {
|
|
42
42
|
"check:fast": "bash scripts/check-preset-fast.sh",
|
|
43
|
+
"check:classified": "node scripts/run-classified-gates.mjs",
|
|
43
44
|
"check:changed": "node scripts/check-preset-delta.mjs --base HEAD",
|
|
44
45
|
"check:task": "node scripts/check-preset-delta.mjs --since-task",
|
|
45
46
|
"test:hooks": "node scripts/test-chain-team-phases-coverage.mjs && node scripts/test-chain-team-phases-resume-blocked.mjs && node scripts/test-agent-task-metrics-hooks.mjs && node scripts/test-chain-team-phases-dev-cleanup.mjs",
|
|
46
47
|
"check:preset-structure": "bash scripts/check-preset-structure.sh",
|
|
48
|
+
"test:tooling": "node scripts/run-locked.mjs --label test:tooling -- bash scripts/run-tooling-tests.sh",
|
|
47
49
|
"release:gate": "bash scripts/release-gate.sh",
|
|
48
50
|
"check:platform-scripts": "node scripts/check-platform-scripts.mjs",
|
|
49
51
|
"test:platform": "node scripts/run-platform-tests.mjs",
|
|
@@ -76,6 +78,8 @@
|
|
|
76
78
|
"test:task-repositories-fixtures": "node scripts/test-task-repositories.mjs",
|
|
77
79
|
"test:backfill-repositories": "node scripts/test-backfill-repositories.mjs",
|
|
78
80
|
"test:rr-migrate-repositories": "node scripts/test-rr-migrate-repositories.mjs",
|
|
81
|
+
"test:check-verification": "node scripts/test-check-verification.mjs",
|
|
82
|
+
"check:engine-test-coverage": "node scripts/check-engine-test-coverage.mjs",
|
|
79
83
|
"check:product-specs": "bash scripts/check-product-specs.sh",
|
|
80
84
|
"check:product-specs:self-test": "bash scripts/check-product-specs.sh --self-test",
|
|
81
85
|
"check:product-specs:dogfood": "bash scripts/check-product-specs.sh ../../dogfood/mcp-ts-sample",
|
|
@@ -136,6 +140,7 @@
|
|
|
136
140
|
"check:mavis-local-overlay": "node scripts/check-mavis-local-overlay.mjs",
|
|
137
141
|
"test:mavis-context-budget": "node scripts/test-mavis-context-budget.mjs",
|
|
138
142
|
"test:mavis-orchestration": "node scripts/test-mavis-orchestration.mjs",
|
|
143
|
+
"test:mavis-chain-decision": "node scripts/test-mavis-chain-decision.mjs",
|
|
139
144
|
"check:opencode-platform-contract": "node scripts/check-opencode-platform-contract.mjs --self-test",
|
|
140
145
|
"check:opencode-adapter-map": "node scripts/check-opencode-adapter-map.mjs --self-test",
|
|
141
146
|
"check:opencode-token-budget": "node scripts/check-opencode-token-budget.mjs",
|
|
@@ -146,7 +151,8 @@
|
|
|
146
151
|
"check:zcode-local-overlay": "node scripts/check-zcode-local-overlay.mjs",
|
|
147
152
|
"test:opencode-context-budget": "node scripts/test-opencode-context-budget.mjs",
|
|
148
153
|
"test:probe-mavis-capabilities": "node scripts/test-probe-mavis-capabilities.mjs",
|
|
149
|
-
"
|
|
154
|
+
"check:task-receipt": "node scripts/check-task-receipt.mjs",
|
|
155
|
+
"preset:loop": "yarn fix:generated && yarn check:classified",
|
|
150
156
|
"fix:generated": "node scripts/fix-generated.mjs",
|
|
151
157
|
"generate:claude": "node scripts/generate-claude.mjs",
|
|
152
158
|
"generate:mavis": "node scripts/generate-mavis.mjs",
|
|
@@ -136,6 +136,9 @@ function readJson(file) {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
/** `readJson` returns `undefined` for a parse error and `null` for a non-object. */
|
|
140
|
+
const unusableJson = (value) => value === undefined || value === null;
|
|
141
|
+
|
|
139
142
|
/** The registry's view of one slug: the ids its links name, sorted. */
|
|
140
143
|
function linkedIds(registry, slug) {
|
|
141
144
|
if (registry === null) return null;
|
|
@@ -148,6 +151,7 @@ function linkedIds(registry, slug) {
|
|
|
148
151
|
|
|
149
152
|
function main() {
|
|
150
153
|
const args = parseArgs(process.argv.slice(2));
|
|
154
|
+
const warnings = [];
|
|
151
155
|
if (!fs.existsSync(args.tasksRoot)) {
|
|
152
156
|
if (args.explicitRoot) usageError(`--tasks-root is not a directory: ${args.tasksRoot}`);
|
|
153
157
|
// A fresh clone has no task store (`.ai.local/team/tasks/*` is gitignored):
|
|
@@ -159,10 +163,18 @@ function main() {
|
|
|
159
163
|
let activeSlug = null;
|
|
160
164
|
if (fs.existsSync(activeTaskFile)) {
|
|
161
165
|
const active = readJson(activeTaskFile);
|
|
162
|
-
if (active
|
|
166
|
+
if (active === undefined) {
|
|
167
|
+
warnings.push('active-task.json is not valid JSON; no slug excluded as in-flight');
|
|
168
|
+
} else if (!unusableJson(active) && typeof active.slug === 'string') {
|
|
169
|
+
activeSlug = active.slug;
|
|
170
|
+
}
|
|
163
171
|
}
|
|
164
|
-
|
|
172
|
+
let registry = fs.existsSync(args.registry) ? readJson(args.registry) : null;
|
|
165
173
|
if (registry === undefined) usageError(`--registry is not valid JSON: ${args.registry}`);
|
|
174
|
+
if (registry !== null && (!Array.isArray(registry.repositories) || !Array.isArray(registry.links))) {
|
|
175
|
+
warnings.push(`registry ${args.registry} has no repositories[]/links[] arrays; id and link checks skipped`);
|
|
176
|
+
registry = null;
|
|
177
|
+
}
|
|
166
178
|
const knownIds = registry === null ? null : new Set(registry.repositories.map((record) => record.id));
|
|
167
179
|
|
|
168
180
|
const folders = fs
|
|
@@ -195,6 +207,10 @@ function main() {
|
|
|
195
207
|
report('pipeline.json is not valid JSON');
|
|
196
208
|
continue;
|
|
197
209
|
}
|
|
210
|
+
if (pipeline === null) {
|
|
211
|
+
report('pipeline.json is not a JSON object');
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
198
214
|
if (!Object.prototype.hasOwnProperty.call(pipeline, 'repositories')) {
|
|
199
215
|
report('pipeline.json without repositories');
|
|
200
216
|
continue;
|
|
@@ -234,6 +250,7 @@ function main() {
|
|
|
234
250
|
const summary = `${folders.length} task folders, ${checked} with pipeline.json${
|
|
235
251
|
legacy.length > 0 ? `, legacy before ${args.cutoff}: ${legacy.length}` : ''
|
|
236
252
|
}${excluded.length > 0 ? `, excluded (active): ${excluded.join(', ')}` : ''}`;
|
|
253
|
+
for (const warning of warnings) console.error(`WARN ${warning}`);
|
|
237
254
|
if (args.json) {
|
|
238
255
|
console.log(
|
|
239
256
|
JSON.stringify(
|
|
@@ -246,6 +263,7 @@ function main() {
|
|
|
246
263
|
excluded,
|
|
247
264
|
violations,
|
|
248
265
|
legacy,
|
|
266
|
+
warnings,
|
|
249
267
|
},
|
|
250
268
|
null,
|
|
251
269
|
2,
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
* and which carry a zero-input gate row. It reports; it never edits a report,
|
|
6
6
|
* never writes a metric, and never fails a scan that actually looked at tasks.
|
|
7
7
|
*
|
|
8
|
-
* The one non-zero exit is the vacuity rule: a scan
|
|
9
|
-
* `checked: 0` and exits 1 unless `check-verification` is listed under
|
|
10
|
-
* `zeroInputAllowlist` in `.ai.local/pipeline-gates.json` with a reason.
|
|
8
|
+
* The one non-zero exit is the vacuity rule: a scan that read zero reports
|
|
9
|
+
* prints `checked: 0` and exits 1 unless `check-verification` is listed under
|
|
10
|
+
* `zeroInputAllowlist` in `.ai.local/pipeline-gates.json` with a reason. Folders
|
|
11
|
+
* without a report are counted as `folders`, never as `checked`.
|
|
11
12
|
*
|
|
12
13
|
* Usage:
|
|
13
14
|
* node .ai.local/scripts/check-verification.mjs [--team-root <dir>] [--json]
|
|
@@ -179,11 +180,15 @@ const run = () => {
|
|
|
179
180
|
|
|
180
181
|
const buckets = { missingTree: 0, staleTree: 0, zeroInput: 0, zeroInputAllowlisted: 0, legacy: 0 };
|
|
181
182
|
const findings = [];
|
|
183
|
+
// A folder without a report verifies nothing, so the pass counts reports read,
|
|
184
|
+
// not folders found.
|
|
185
|
+
let checked = 0;
|
|
182
186
|
|
|
183
187
|
for (const slug of slugs) {
|
|
184
188
|
const taskDir = path.join(tasksRoot, slug);
|
|
185
189
|
const report = reportFor(taskDir);
|
|
186
190
|
if (report === null) continue;
|
|
191
|
+
checked += 1;
|
|
187
192
|
if (lastTouched(taskDir) < cutoffMs) {
|
|
188
193
|
buckets.legacy += 1;
|
|
189
194
|
findings.push({ slug, reason: 'legacy', detail: `last update before ${CUTOFF}` });
|
|
@@ -228,7 +233,7 @@ const run = () => {
|
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
const gateAllowed = allowlist.find((item) => item.gate === GATE_ID);
|
|
231
|
-
const vacuous =
|
|
236
|
+
const vacuous = checked === 0;
|
|
232
237
|
const exitCode = vacuous && !gateAllowed ? 1 : 0;
|
|
233
238
|
|
|
234
239
|
if (args.json) {
|
|
@@ -237,7 +242,8 @@ const run = () => {
|
|
|
237
242
|
{
|
|
238
243
|
ok: exitCode === 0,
|
|
239
244
|
gate: GATE_ID,
|
|
240
|
-
checked
|
|
245
|
+
checked,
|
|
246
|
+
folders: slugs.length,
|
|
241
247
|
cutoff: CUTOFF,
|
|
242
248
|
tree,
|
|
243
249
|
buckets,
|
|
@@ -249,7 +255,8 @@ const run = () => {
|
|
|
249
255
|
)}\n`,
|
|
250
256
|
);
|
|
251
257
|
} else {
|
|
252
|
-
process.stdout.write(`checked: ${
|
|
258
|
+
process.stdout.write(`checked: ${checked}\n`);
|
|
259
|
+
process.stdout.write(`folders: ${slugs.length}\n`);
|
|
253
260
|
process.stdout.write(`tree: ${tree ? `${tree.head} (+${tree.dirtyFiles} dirty)` : 'no-git'}\n`);
|
|
254
261
|
process.stdout.write(`cutoff: ${CUTOFF}\n`);
|
|
255
262
|
process.stdout.write(`missing-tree: ${buckets.missingTree}\n`);
|
|
@@ -15,9 +15,13 @@
|
|
|
15
15
|
* submodule or a linked worktree, not a repository of its own, and is skipped;
|
|
16
16
|
* - hidden directories, `node_modules`, and symlinked directories are skipped;
|
|
17
17
|
* - repositories with one remote are collapsed to the shallowest clone.
|
|
18
|
+
* - a remote URL is stored without its clone-time credentials, so a token in
|
|
19
|
+
* `remote.origin.url` never reaches the registry or the projection.
|
|
18
20
|
*
|
|
19
21
|
* Records are never deleted: a repository absent from the current scan may have
|
|
20
|
-
* been moved, or the scan may cover only part of the disk.
|
|
22
|
+
* been moved, or the scan may cover only part of the disk. An absent record's id
|
|
23
|
+
* is reused only with `--reuse-orphan-ids`: a same-named clone can just as well
|
|
24
|
+
* be a different repository, and a silent reuse re-points every task link.
|
|
21
25
|
*
|
|
22
26
|
* Usage:
|
|
23
27
|
* node .ai.local/scripts/rr-migrate-repositories.mjs [options]
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
* --repo-root <dir> repository whose parent is scanned by default (default: git toplevel, else cwd)
|
|
30
34
|
* --dry-run print the plan and write nothing
|
|
31
35
|
* --no-update create missing records only; never update an existing one
|
|
36
|
+
* --reuse-orphan-ids reuse an absent record's id for a same-named clone (a renamed remote)
|
|
32
37
|
* --json machine-readable summary
|
|
33
38
|
* --help
|
|
34
39
|
*
|
|
@@ -57,6 +62,7 @@ export const USAGE = `Usage: node .ai.local/scripts/rr-migrate-repositories.mjs
|
|
|
57
62
|
--repo-root <dir> repository whose parent is scanned by default
|
|
58
63
|
--dry-run print the plan and write nothing
|
|
59
64
|
--no-update create missing records only; never update an existing one
|
|
65
|
+
--reuse-orphan-ids reuse an absent record's id for a same-named clone (a renamed remote)
|
|
60
66
|
--json machine-readable summary
|
|
61
67
|
--help this text`;
|
|
62
68
|
|
|
@@ -75,10 +81,18 @@ export const normaliseLocator = (locator) =>
|
|
|
75
81
|
.replace(/^git\+/, '')
|
|
76
82
|
.replace(/^ssh:\/\/git@/, '')
|
|
77
83
|
.replace(/^git@([^:]+):/, '$1/')
|
|
84
|
+
// A clone-time credential is not part of a repository's identity.
|
|
85
|
+
.replace(/^(?:https?|ssh|git):\/\/[^/@]*@/, '')
|
|
78
86
|
.replace(/^(?:https?|ssh|git):\/\//, '')
|
|
79
87
|
.replace(/\.git\/?$/, '')
|
|
80
88
|
.replace(/\/+$/, '');
|
|
81
89
|
|
|
90
|
+
/** The same locator with any clone-time credential removed. */
|
|
91
|
+
export const redactCredentials = (locator) =>
|
|
92
|
+
String(locator)
|
|
93
|
+
.trim()
|
|
94
|
+
.replace(/^(git\+)?(https?|ssh|git):\/\/[^/@]*@/i, '$1$2://');
|
|
95
|
+
|
|
82
96
|
/** A stable registry key for a remote URL or an absolute path. */
|
|
83
97
|
export const locatorKey = (locator) => {
|
|
84
98
|
const value = String(locator).trim();
|
|
@@ -140,7 +154,7 @@ export const collectFromRoot = (root, depth) => {
|
|
|
140
154
|
skipped.push({ path: directory, reason: 'submodule-or-worktree' });
|
|
141
155
|
return;
|
|
142
156
|
}
|
|
143
|
-
const remote = gitValue(directory, ['config', '--get', 'remote.origin.url']);
|
|
157
|
+
const remote = redactCredentials(gitValue(directory, ['config', '--get', 'remote.origin.url']));
|
|
144
158
|
found.push({
|
|
145
159
|
path: directory,
|
|
146
160
|
real,
|
|
@@ -190,11 +204,13 @@ export const dedupeRepositories = (found) => {
|
|
|
190
204
|
return { repositories, duplicates };
|
|
191
205
|
};
|
|
192
206
|
|
|
207
|
+
const limitId = (value) => value.slice(0, MAX_ID_LENGTH).replace(/-+$/, '') || 'repository';
|
|
208
|
+
|
|
193
209
|
/**
|
|
194
210
|
* Assign an id to every scanned repository. A record whose locator already
|
|
195
211
|
* exists keeps its id, so a re-run never renames or duplicates a record.
|
|
196
212
|
*/
|
|
197
|
-
export const assignIds = (repositories, existingRecords) => {
|
|
213
|
+
export const assignIds = (repositories, existingRecords, { reuseOrphanIds = false } = {}) => {
|
|
198
214
|
const existingByKey = new Map();
|
|
199
215
|
const existingById = new Map();
|
|
200
216
|
for (const record of existingRecords) {
|
|
@@ -214,27 +230,36 @@ export const assignIds = (repositories, existingRecords) => {
|
|
|
214
230
|
const key = locatorKey(entry.locator);
|
|
215
231
|
const known = existingByKey.get(key);
|
|
216
232
|
let id = known ? known.id : slugify(entry.name);
|
|
233
|
+
let orphanCandidate = null;
|
|
217
234
|
if (!known) {
|
|
218
|
-
//
|
|
219
|
-
//
|
|
235
|
+
// An absent record whose directory name matches is a candidate for a
|
|
236
|
+
// renamed remote — reported, and reused only on request, because the same
|
|
237
|
+
// name can just as well be a different repository.
|
|
220
238
|
const orphan = existingById.get(id);
|
|
221
|
-
|
|
222
|
-
|
|
239
|
+
if (orphan !== undefined && !matched.has(id) && !reused.has(id)) {
|
|
240
|
+
orphanCandidate = { id: orphan.id, locator: orphan.locator };
|
|
241
|
+
}
|
|
242
|
+
if (orphanCandidate !== null && reuseOrphanIds) {
|
|
223
243
|
reused.add(id);
|
|
224
244
|
} else if (used.has(id)) {
|
|
225
245
|
const parent = slugify(path.basename(path.dirname(entry.path)));
|
|
226
|
-
let candidate = `${parent}-${id}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
candidate = `${id
|
|
246
|
+
let candidate = limitId(`${parent}-${id}`);
|
|
247
|
+
let counter = 2;
|
|
248
|
+
while (used.has(candidate)) {
|
|
249
|
+
const suffix = `-${counter}`;
|
|
250
|
+
candidate = limitId(`${id.slice(0, MAX_ID_LENGTH - suffix.length)}${suffix}`);
|
|
251
|
+
counter += 1;
|
|
231
252
|
}
|
|
232
253
|
id = candidate;
|
|
233
|
-
used.add(id);
|
|
234
254
|
}
|
|
235
255
|
}
|
|
236
256
|
used.add(id);
|
|
237
|
-
planned.push({
|
|
257
|
+
planned.push({
|
|
258
|
+
...entry,
|
|
259
|
+
id,
|
|
260
|
+
orphanCandidate,
|
|
261
|
+
orphanReused: orphanCandidate !== null && reuseOrphanIds,
|
|
262
|
+
});
|
|
238
263
|
}
|
|
239
264
|
return planned;
|
|
240
265
|
};
|
|
@@ -266,7 +291,11 @@ export const derivePlan = (planned, existingRecords, { update = true } = {}) =>
|
|
|
266
291
|
continue;
|
|
267
292
|
}
|
|
268
293
|
const same =
|
|
269
|
-
prior.name === name &&
|
|
294
|
+
prior.name === name &&
|
|
295
|
+
locatorKey(prior.locator) === locatorKey(entry.locator) &&
|
|
296
|
+
// A credential-bearing locator written by an older run is rewritten.
|
|
297
|
+
prior.locator === entry.locator &&
|
|
298
|
+
prior.status === 'active';
|
|
270
299
|
if (same) {
|
|
271
300
|
unchanged.push(entry.id);
|
|
272
301
|
continue;
|
|
@@ -299,6 +328,7 @@ const parseArgs = (argv) => {
|
|
|
299
328
|
repoRoot: null,
|
|
300
329
|
dryRun: false,
|
|
301
330
|
update: true,
|
|
331
|
+
reuseOrphanIds: false,
|
|
302
332
|
json: false,
|
|
303
333
|
};
|
|
304
334
|
const value = (token, index) => {
|
|
@@ -326,6 +356,8 @@ const parseArgs = (argv) => {
|
|
|
326
356
|
options.dryRun = true;
|
|
327
357
|
} else if (token === '--no-update') {
|
|
328
358
|
options.update = false;
|
|
359
|
+
} else if (token === '--reuse-orphan-ids') {
|
|
360
|
+
options.reuseOrphanIds = true;
|
|
329
361
|
} else if (token === '--json') {
|
|
330
362
|
options.json = true;
|
|
331
363
|
} else if (token === '--help' || token === '-h') {
|
|
@@ -416,8 +448,17 @@ function main() {
|
|
|
416
448
|
|
|
417
449
|
const listed = runTeamDb(['repositories', 'list', '--root', teamRoot]).summary;
|
|
418
450
|
const existing = Array.isArray(listed?.repositories) ? listed.repositories : [];
|
|
419
|
-
const planned = assignIds(repositories, existing);
|
|
451
|
+
const planned = assignIds(repositories, existing, { reuseOrphanIds: options.reuseOrphanIds });
|
|
420
452
|
const plan = derivePlan(planned, existing, { update: options.update });
|
|
453
|
+
const orphanCandidates = planned
|
|
454
|
+
.filter((entry) => entry.orphanCandidate !== null)
|
|
455
|
+
.map((entry) => ({
|
|
456
|
+
id: entry.orphanCandidate.id,
|
|
457
|
+
previousLocator: entry.orphanCandidate.locator,
|
|
458
|
+
locator: entry.locator,
|
|
459
|
+
path: entry.path,
|
|
460
|
+
reused: entry.orphanReused,
|
|
461
|
+
}));
|
|
421
462
|
|
|
422
463
|
const disabled = isDisabled(process.env.AI_RULES_TEAM_DB_DISABLE);
|
|
423
464
|
const summary = {
|
|
@@ -430,6 +471,7 @@ function main() {
|
|
|
430
471
|
repositories: planned.length,
|
|
431
472
|
duplicates: duplicates.length,
|
|
432
473
|
skipped: skipped.length,
|
|
474
|
+
orphanCandidates,
|
|
433
475
|
registry: {
|
|
434
476
|
existing: existing.length,
|
|
435
477
|
create: plan.create.length,
|
|
@@ -464,6 +506,14 @@ function main() {
|
|
|
464
506
|
console.log(
|
|
465
507
|
`registry: existing=${summary.registry.existing} create=${summary.registry.create} update=${summary.registry.update} unchanged=${summary.registry.unchanged} not-on-disk=${summary.registry.notOnDisk}`,
|
|
466
508
|
);
|
|
509
|
+
for (const candidate of orphanCandidates) {
|
|
510
|
+
console.log(
|
|
511
|
+
`orphan-id: ${candidate.id} ${candidate.reused ? 'reused' : 'available'} was=${candidate.previousLocator} now=${candidate.locator} path=${candidate.path}`,
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
if (!options.reuseOrphanIds && orphanCandidates.length > 0) {
|
|
515
|
+
console.log('orphan-id: pass --reuse-orphan-ids to treat a same-named clone as a renamed remote');
|
|
516
|
+
}
|
|
467
517
|
if (summary.dryRun) {
|
|
468
518
|
console.log(disabled ? DISABLED_LINE : 'dry-run: nothing written');
|
|
469
519
|
if (disabled) console.log('run with AI_RULES_TEAM_DB_DISABLE unset to write');
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Run a command, store its combined output, and print a short view.
|
|
3
3
|
// Exit with the child status so a passing store cannot hide a failing test.
|
|
4
|
+
// The child writes straight into a file: a buffer cap here would kill a verbose
|
|
5
|
+
// run and report a failure the command never produced.
|
|
4
6
|
|
|
5
7
|
import { spawnSync } from 'node:child_process';
|
|
6
8
|
import fs from 'node:fs';
|
|
@@ -12,7 +14,7 @@ import { resolveTeamRoot } from './dump-output.mjs';
|
|
|
12
14
|
const PASS_THROUGH_BYTES = 4096;
|
|
13
15
|
const HEAD_LINES = 40;
|
|
14
16
|
const HEAD_BYTES = 8 * 1024;
|
|
15
|
-
const
|
|
17
|
+
const SCAN_BYTES = 8 * 1024 * 1024;
|
|
16
18
|
const FAIL_LINE = /\b(FAIL|ERROR|Error|AssertionError)\b|✗|×/u;
|
|
17
19
|
|
|
18
20
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
@@ -50,6 +52,24 @@ const footerOf = (dumpStdout) =>
|
|
|
50
52
|
.filter((line) => line.startsWith('bytes: ') || line.startsWith('path: ') || line.startsWith('grep -n '))
|
|
51
53
|
.join('\n');
|
|
52
54
|
|
|
55
|
+
/** First `limit` bytes of a file, so a multi-gigabyte dump never lands in memory. */
|
|
56
|
+
const readHead = (file, limit) => {
|
|
57
|
+
const fd = fs.openSync(file, 'r');
|
|
58
|
+
try {
|
|
59
|
+
const size = Math.min(fs.fstatSync(fd).size, limit);
|
|
60
|
+
const buffer = Buffer.alloc(size);
|
|
61
|
+
let read = 0;
|
|
62
|
+
while (read < size) {
|
|
63
|
+
const chunk = fs.readSync(fd, buffer, read, size - read, read);
|
|
64
|
+
if (chunk === 0) break;
|
|
65
|
+
read += chunk;
|
|
66
|
+
}
|
|
67
|
+
return buffer.subarray(0, read).toString('utf8');
|
|
68
|
+
} finally {
|
|
69
|
+
fs.closeSync(fd);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
53
73
|
const failureLines = (text) => {
|
|
54
74
|
const lines = text.split('\n');
|
|
55
75
|
if (lines.length > 0 && lines[lines.length - 1] === '') lines.pop();
|
|
@@ -81,16 +101,24 @@ const viewFor = ({ dumpStdout, storedText, storedBytes }) => {
|
|
|
81
101
|
const run = ({ task, root, child }) => {
|
|
82
102
|
const teamRoot = root ? path.resolve(root) : resolveTeamRoot(process.cwd());
|
|
83
103
|
if (!teamRoot) usageFail('no .ai.local/team found above the current directory; pass --root <team-dir>');
|
|
84
|
-
const captured = spawnSync(child[0], child.slice(1), {
|
|
85
|
-
cwd: process.cwd(),
|
|
86
|
-
maxBuffer: CAPTURE_BYTES,
|
|
87
|
-
});
|
|
88
|
-
const status = captured.status ?? 128;
|
|
89
|
-
const body = Buffer.concat([captured.stdout ?? Buffer.alloc(0), captured.stderr ?? Buffer.alloc(0)]);
|
|
90
104
|
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'run-compact-'));
|
|
91
105
|
const input = path.join(dir, 'output.bin');
|
|
92
106
|
try {
|
|
93
|
-
fs.
|
|
107
|
+
const fd = fs.openSync(input, 'w');
|
|
108
|
+
let captured;
|
|
109
|
+
try {
|
|
110
|
+
captured = spawnSync(child[0], child.slice(1), {
|
|
111
|
+
cwd: process.cwd(),
|
|
112
|
+
stdio: ['ignore', fd, fd],
|
|
113
|
+
});
|
|
114
|
+
} finally {
|
|
115
|
+
fs.closeSync(fd);
|
|
116
|
+
}
|
|
117
|
+
if (captured.error) {
|
|
118
|
+
process.stderr.write(`run-compact: ${captured.error.message}\n`);
|
|
119
|
+
return 127;
|
|
120
|
+
}
|
|
121
|
+
const status = captured.status ?? 128;
|
|
94
122
|
const stored = spawnSync(
|
|
95
123
|
process.execPath,
|
|
96
124
|
[dumpScript, '--input', input, '--task', task, '--label', 'compact', '--root', teamRoot],
|
|
@@ -101,8 +129,8 @@ const run = ({ task, root, child }) => {
|
|
|
101
129
|
return status;
|
|
102
130
|
}
|
|
103
131
|
const storedBytesMatch = stored.stdout.match(/^bytes: (\d+)/m);
|
|
104
|
-
const storedBytes = storedBytesMatch ? Number(storedBytesMatch[1]) :
|
|
105
|
-
const storedText =
|
|
132
|
+
const storedBytes = storedBytesMatch ? Number(storedBytesMatch[1]) : fs.statSync(input).size;
|
|
133
|
+
const storedText = readHead(input, SCAN_BYTES);
|
|
106
134
|
const view = viewFor({ dumpStdout: stored.stdout, storedText, storedBytes });
|
|
107
135
|
const shownBytes = Buffer.byteLength(view);
|
|
108
136
|
process.stdout.write(view);
|