@bonesofspring/ai-rules 0.2.60 → 0.2.63
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 +102 -0
- package/README.md +62 -29
- package/bin/cli.js +368 -59
- package/bin/lib/ai-local-drift.js +18 -0
- package/bin/lib/engine-scripts.js +22 -5
- package/bin/lib/engine-upgrade.js +279 -0
- package/bin/lib/mcp/catalog.js +66 -5
- package/bin/lib/mcp/clients.js +4 -4
- package/bin/lib/mcp/credentials.js +88 -0
- package/bin/lib/mcp/doctor.js +100 -8
- package/bin/lib/mcp/npx.js +17 -0
- package/bin/lib/mcp/registry.js +2 -0
- package/bin/lib/merged-config.js +38 -0
- package/bin/lib/seed-ai-local-team.js +32 -14
- package/bin/mavis-install.js +3 -1
- package/bin/opencode-install.js +3 -1
- package/bin/zcode-install.js +3 -1
- package/docs/MAVIS.md +5 -2
- package/docs/MCP-CATALOG.md +30 -2
- package/docs/MCP-SETUP.md +30 -6
- package/docs/OPENCODE.md +27 -4
- package/docs/PLATFORMS.md +38 -0
- package/docs/PRESET-CONTRIBUTION.md +27 -14
- package/docs/TEAM-DB.md +194 -21
- package/docs/openapi/team-db.v1.json +4443 -2083
- package/mcp/defectdojo-mcp.mjs +353 -0
- package/mcp/gitlab.mjs +5 -1
- package/mcp/lib/defectdojo.mjs +249 -0
- package/mcp/lib/yandex.mjs +39 -15
- package/package.json +11 -5
- package/presets/_shared/ai-local/scripts/check-write-scope.mjs +176 -28
- package/presets/_shared/ai-local/scripts/lock.mjs +128 -69
- package/presets/_shared/ai-local/scripts/signals.mjs +17 -1
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +496 -67
- package/presets/_shared/ai-local/scripts/team-db-dashboard.mjs +816 -5
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +761 -6
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +10 -0
- package/presets/_shared/ai-local/scripts/team-db-scheduler.mjs +2360 -0
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +87 -0
- package/presets/_shared/ai-local/scripts/team-db.mjs +151 -9
- package/presets/_shared/ai-local/scripts/upstream-research.mjs +2961 -0
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +17 -0
- package/presets/_shared/core/agent-team/agent-team-intake.md +1 -0
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +5 -2
- package/presets/_shared/core/meta/preset-pr-checklist.md +4 -4
- package/presets/_shared/core/meta/preset-twin-sync.md +1 -1
- package/presets/_shared/hooks/README.md +23 -3
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +57 -3
- package/presets/_shared/hooks/check-preset-update.mjs +4 -3
- package/presets/{claude/nuxt/hooks/guard-shell-command.sh → _shared/hooks/guard-shell-command.mjs.tmpl} +29 -35
- package/presets/_shared/hooks/run-hook.mjs +102 -0
- package/presets/claude/android-kotlin/hooks/README.md +4 -3
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/android-kotlin/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/android-kotlin/hooks/examples/README.md +2 -2
- package/presets/claude/android-kotlin/hooks/guard-shell-command.mjs +96 -0
- package/presets/claude/android-kotlin/hooks/run-hook.mjs +102 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/android-kotlin/settings.json +2 -2
- package/presets/claude/android-kotlin/team/README.md +5 -0
- package/presets/claude/go/hooks/README.md +4 -3
- package/presets/claude/go/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/go/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/go/hooks/examples/README.md +2 -2
- package/presets/claude/go/hooks/guard-shell-command.mjs +95 -0
- package/presets/claude/go/hooks/run-hook.mjs +102 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/go/settings.json +2 -2
- package/presets/claude/go/team/README.md +5 -0
- package/presets/claude/ios-swift/hooks/README.md +4 -3
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/ios-swift/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/ios-swift/hooks/examples/README.md +2 -2
- package/presets/claude/ios-swift/hooks/guard-shell-command.mjs +95 -0
- package/presets/claude/ios-swift/hooks/run-hook.mjs +102 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/ios-swift/settings.json +2 -2
- package/presets/claude/ios-swift/team/README.md +5 -0
- package/presets/claude/java/hooks/README.md +4 -3
- package/presets/claude/java/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/java/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/java/hooks/examples/README.md +2 -2
- package/presets/claude/java/hooks/{guard-shell-command.sh → guard-shell-command.mjs} +31 -38
- package/presets/claude/java/hooks/run-hook.mjs +102 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/java/settings.json +2 -2
- package/presets/claude/java/team/README.md +5 -0
- package/presets/claude/mcp-ts/hooks/README.md +4 -3
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/mcp-ts/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/mcp-ts/hooks/examples/README.md +1 -1
- package/presets/claude/mcp-ts/hooks/guard-shell-command.mjs +95 -0
- package/presets/claude/mcp-ts/hooks/run-hook.mjs +102 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/mcp-ts/settings.json +2 -2
- package/presets/claude/mcp-ts/team/README.md +5 -0
- package/presets/claude/mol/hooks/README.md +20 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/mol/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/{svelte/hooks/guard-shell-command.sh → mol/hooks/guard-shell-command.mjs} +29 -35
- package/presets/claude/mol/hooks/run-hook.mjs +102 -0
- package/presets/claude/mol/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/mol/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/mol/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/mol/settings.json +2 -2
- package/presets/claude/mol/team/README.md +5 -0
- package/presets/claude/next/agents/build-verifier.md +18 -3
- package/presets/claude/next/agents/code-reviewer.md +2 -0
- package/presets/claude/next/agents/feature-developer.md +3 -1
- package/presets/claude/next/agents/task-analyst.md +6 -0
- package/presets/claude/next/agents/task-router.md +5 -3
- package/presets/claude/next/commands/README.md +1 -0
- package/presets/claude/next/commands/task-continue.md +1 -1
- package/presets/claude/next/commands/upstream-research.md +23 -0
- package/presets/claude/next/hooks/README.md +4 -3
- package/presets/claude/next/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/next/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/next/hooks/examples/README.md +2 -2
- package/presets/claude/next/hooks/guard-shell-command.mjs +94 -0
- package/presets/claude/next/hooks/run-hook.mjs +102 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/next/settings.json +2 -2
- package/presets/claude/next/team/README.md +23 -0
- package/presets/claude/next/team/upstream/config.json +31 -0
- package/presets/claude/next/team/upstream/digest-template.md +55 -0
- package/presets/claude/next/team/upstream/opencode.json +34 -0
- package/presets/claude/next/team/upstream/projects.json +4 -0
- package/presets/claude/next/team/upstream/prompt.md +77 -0
- package/presets/claude/next/team/upstream/signatures.json +9 -0
- package/presets/claude/nuxt/hooks/README.md +4 -3
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/nuxt/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/nuxt/hooks/examples/README.md +2 -2
- package/presets/claude/{ios-swift/hooks/guard-shell-command.sh → nuxt/hooks/guard-shell-command.mjs} +29 -37
- package/presets/claude/nuxt/hooks/run-hook.mjs +102 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/nuxt/settings.json +2 -2
- package/presets/claude/nuxt/team/README.md +5 -0
- package/presets/claude/php-hexagonal/hooks/README.md +4 -3
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/php-hexagonal/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/php-hexagonal/hooks/examples/README.md +2 -2
- package/presets/claude/php-hexagonal/hooks/guard-shell-command.mjs +96 -0
- package/presets/claude/php-hexagonal/hooks/run-hook.mjs +102 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/php-hexagonal/settings.json +2 -2
- package/presets/claude/php-hexagonal/team/README.md +5 -0
- package/presets/claude/php-laravel/hooks/README.md +4 -3
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/php-laravel/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/php-laravel/hooks/examples/README.md +2 -2
- package/presets/claude/php-laravel/hooks/guard-shell-command.mjs +96 -0
- package/presets/claude/php-laravel/hooks/run-hook.mjs +102 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/php-laravel/settings.json +2 -2
- package/presets/claude/php-laravel/team/README.md +5 -0
- package/presets/claude/svelte/hooks/README.md +4 -3
- package/presets/claude/svelte/hooks/chain-team-phases.sh +57 -3
- package/presets/claude/svelte/hooks/check-preset-update.mjs +4 -3
- package/presets/claude/svelte/hooks/examples/README.md +2 -2
- package/presets/claude/svelte/hooks/guard-shell-command.mjs +94 -0
- package/presets/claude/svelte/hooks/run-hook.mjs +102 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +5 -2
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +4 -4
- package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +1 -1
- package/presets/claude/svelte/settings.json +2 -2
- package/presets/claude/svelte/team/README.md +5 -0
- package/presets/cursor/android-kotlin/hooks/README.md +2 -1
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/android-kotlin/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/android-kotlin/hooks/examples/README.md +1 -1
- package/presets/cursor/android-kotlin/hooks/guard-shell-command.mjs +96 -0
- package/presets/cursor/android-kotlin/hooks/run-hook.mjs +102 -0
- package/presets/cursor/android-kotlin/hooks.json +2 -2
- package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/android-kotlin/team/README.md +5 -0
- package/presets/cursor/go/hooks/README.md +2 -1
- package/presets/cursor/go/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/go/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/go/hooks/examples/README.md +1 -1
- package/presets/cursor/go/hooks/guard-shell-command.mjs +95 -0
- package/presets/cursor/go/hooks/run-hook.mjs +102 -0
- package/presets/cursor/go/hooks.json +2 -2
- package/presets/cursor/go/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/go/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/go/team/README.md +5 -0
- package/presets/cursor/ios-swift/hooks/README.md +2 -1
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/ios-swift/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/ios-swift/hooks/examples/README.md +1 -1
- package/presets/cursor/ios-swift/hooks/guard-shell-command.mjs +95 -0
- package/presets/cursor/ios-swift/hooks/run-hook.mjs +102 -0
- package/presets/cursor/ios-swift/hooks.json +2 -2
- package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/ios-swift/team/README.md +5 -0
- package/presets/cursor/java/hooks/README.md +2 -1
- package/presets/cursor/java/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/java/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/java/hooks/examples/README.md +1 -1
- package/presets/cursor/java/hooks/guard-shell-command.mjs +96 -0
- package/presets/cursor/java/hooks/run-hook.mjs +102 -0
- package/presets/cursor/java/hooks.json +2 -2
- package/presets/cursor/java/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/java/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/java/team/README.md +5 -0
- package/presets/cursor/mcp-ts/hooks/README.md +2 -1
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/mcp-ts/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/mcp-ts/hooks/guard-shell-command.mjs +95 -0
- package/presets/cursor/mcp-ts/hooks/run-hook.mjs +102 -0
- package/presets/cursor/mcp-ts/hooks.json +2 -2
- package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/mcp-ts/team/README.md +5 -0
- package/presets/cursor/mol/hooks/README.md +2 -1
- package/presets/cursor/mol/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/mol/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/mol/hooks/examples/README.md +1 -1
- package/presets/{claude/next/hooks/guard-shell-command.sh → cursor/mol/hooks/guard-shell-command.mjs} +29 -35
- package/presets/cursor/mol/hooks/run-hook.mjs +102 -0
- package/presets/cursor/mol/hooks.json +2 -2
- package/presets/cursor/mol/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/mol/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/mol/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/mol/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/mol/team/README.md +5 -0
- package/presets/cursor/next/agents/build-verifier.md +18 -3
- package/presets/cursor/next/agents/code-reviewer.md +2 -0
- package/presets/cursor/next/agents/feature-developer.md +3 -1
- package/presets/cursor/next/agents/task-analyst.md +6 -0
- package/presets/cursor/next/agents/task-router.md +5 -3
- package/presets/cursor/next/commands/README.md +1 -0
- package/presets/cursor/next/commands/task-continue.md +1 -1
- package/presets/cursor/next/commands/upstream-research.md +23 -0
- package/presets/cursor/next/hooks/README.md +2 -1
- package/presets/cursor/next/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/next/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/next/hooks/examples/README.md +1 -1
- package/presets/cursor/next/hooks/guard-shell-command.mjs +94 -0
- package/presets/cursor/next/hooks/run-hook.mjs +102 -0
- package/presets/cursor/next/hooks.json +2 -2
- package/presets/cursor/next/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/next/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/next/team/README.md +23 -0
- package/presets/cursor/next/team/upstream/config.json +31 -0
- package/presets/cursor/next/team/upstream/digest-template.md +55 -0
- package/presets/cursor/next/team/upstream/opencode.json +34 -0
- package/presets/cursor/next/team/upstream/projects.json +4 -0
- package/presets/cursor/next/team/upstream/prompt.md +77 -0
- package/presets/cursor/next/team/upstream/signatures.json +9 -0
- package/presets/cursor/nuxt/hooks/README.md +2 -1
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/nuxt/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/nuxt/hooks/examples/README.md +1 -1
- package/presets/cursor/nuxt/hooks/guard-shell-command.mjs +94 -0
- package/presets/cursor/nuxt/hooks/run-hook.mjs +102 -0
- package/presets/cursor/nuxt/hooks.json +2 -2
- package/presets/cursor/nuxt/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/nuxt/team/README.md +5 -0
- package/presets/cursor/php-hexagonal/hooks/README.md +2 -1
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/php-hexagonal/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/php-hexagonal/hooks/examples/README.md +1 -1
- package/presets/cursor/php-hexagonal/hooks/guard-shell-command.mjs +96 -0
- package/presets/cursor/php-hexagonal/hooks/run-hook.mjs +102 -0
- package/presets/cursor/php-hexagonal/hooks.json +2 -2
- package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/php-hexagonal/team/README.md +5 -0
- package/presets/cursor/php-laravel/hooks/README.md +2 -1
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/php-laravel/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/php-laravel/hooks/examples/README.md +1 -1
- package/presets/cursor/php-laravel/hooks/guard-shell-command.mjs +96 -0
- package/presets/cursor/php-laravel/hooks/run-hook.mjs +102 -0
- package/presets/cursor/php-laravel/hooks.json +2 -2
- package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/php-laravel/team/README.md +5 -0
- package/presets/cursor/svelte/hooks/README.md +2 -1
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +57 -3
- package/presets/cursor/svelte/hooks/check-preset-update.mjs +4 -3
- package/presets/cursor/svelte/hooks/examples/README.md +1 -1
- package/presets/cursor/svelte/hooks/guard-shell-command.mjs +94 -0
- package/presets/cursor/svelte/hooks/run-hook.mjs +102 -0
- package/presets/cursor/svelte/hooks.json +2 -2
- package/presets/cursor/svelte/rules/agent-team-intake.mdc +1 -0
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +2 -1
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +4 -4
- package/presets/cursor/svelte/rules/preset-twin-sync.mdc +1 -1
- package/presets/cursor/svelte/team/README.md +5 -0
- package/presets/mavis/android-kotlin/adapter-map.json +11 -3
- package/presets/mavis/android-kotlin/hooks/README.md +2 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/android-kotlin/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +1 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/android-kotlin/team/README.md +5 -0
- package/presets/mavis/go/adapter-map.json +11 -3
- package/presets/mavis/go/hooks/README.md +2 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/go/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/go/rules/agent-team-intake.md +1 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/go/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/go/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/go/team/README.md +5 -0
- package/presets/mavis/ios-swift/adapter-map.json +11 -3
- package/presets/mavis/ios-swift/hooks/README.md +2 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/ios-swift/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +1 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/ios-swift/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/ios-swift/team/README.md +5 -0
- package/presets/mavis/java/adapter-map.json +11 -3
- package/presets/mavis/java/hooks/README.md +2 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/java/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/java/rules/agent-team-intake.md +1 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/java/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/java/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/java/team/README.md +5 -0
- package/presets/mavis/mcp-ts/adapter-map.json +11 -3
- package/presets/mavis/mcp-ts/hooks/README.md +2 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/mcp-ts/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +1 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/mcp-ts/team/README.md +5 -0
- package/presets/mavis/mol/adapter-map.json +11 -3
- package/presets/mavis/mol/hooks/README.md +2 -1
- package/presets/mavis/mol/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/mol/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/mol/rules/agent-team-intake.md +1 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/mol/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/mol/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/mol/team/README.md +5 -0
- package/presets/mavis/next/adapter-map.json +67 -3
- package/presets/mavis/next/agents/build-verifier.md +18 -3
- package/presets/mavis/next/agents/code-reviewer.md +2 -0
- package/presets/mavis/next/agents/feature-developer.md +3 -1
- package/presets/mavis/next/agents/task-analyst.md +6 -0
- package/presets/mavis/next/agents/task-router.md +5 -3
- package/presets/mavis/next/commands/README.md +1 -0
- package/presets/mavis/next/commands/task-continue.md +1 -1
- package/presets/mavis/next/commands/upstream-research.md +18 -0
- package/presets/mavis/next/hooks/README.md +2 -1
- package/presets/mavis/next/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/next/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/next/rules/agent-team-intake.md +1 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/next/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/next/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/next/team/README.md +23 -0
- package/presets/mavis/next/team/upstream/config.json +31 -0
- package/presets/mavis/next/team/upstream/digest-template.md +55 -0
- package/presets/mavis/next/team/upstream/opencode.json +34 -0
- package/presets/mavis/next/team/upstream/projects.json +4 -0
- package/presets/mavis/next/team/upstream/prompt.md +77 -0
- package/presets/mavis/next/team/upstream/signatures.json +9 -0
- package/presets/mavis/nuxt/adapter-map.json +11 -3
- package/presets/mavis/nuxt/hooks/README.md +2 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/nuxt/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/nuxt/rules/agent-team-intake.md +1 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/nuxt/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/nuxt/team/README.md +5 -0
- package/presets/mavis/php-hexagonal/adapter-map.json +11 -3
- package/presets/mavis/php-hexagonal/hooks/README.md +2 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/php-hexagonal/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +1 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/php-hexagonal/team/README.md +5 -0
- package/presets/mavis/php-laravel/adapter-map.json +11 -3
- package/presets/mavis/php-laravel/hooks/README.md +2 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/php-laravel/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +1 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/php-laravel/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/php-laravel/team/README.md +5 -0
- package/presets/mavis/svelte/adapter-map.json +11 -3
- package/presets/mavis/svelte/hooks/README.md +2 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +57 -3
- package/presets/mavis/svelte/hooks/check-preset-update.mjs +4 -3
- package/presets/mavis/svelte/rules/agent-team-intake.md +1 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +5 -2
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +4 -4
- package/presets/mavis/svelte/rules/preset-twin-sync.md +1 -1
- package/presets/mavis/svelte/team/README.md +5 -0
- package/presets/opencode/android-kotlin/OPENCODE.md +1 -1
- package/presets/opencode/android-kotlin/README.md +1 -1
- package/presets/opencode/android-kotlin/adapter-map.json +11 -3
- package/presets/opencode/android-kotlin/hooks/README.md +3 -2
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/android-kotlin/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +1 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/android-kotlin/team/README.md +5 -0
- package/presets/opencode/go/OPENCODE.md +1 -1
- package/presets/opencode/go/README.md +1 -1
- package/presets/opencode/go/adapter-map.json +11 -3
- package/presets/opencode/go/hooks/README.md +3 -2
- package/presets/opencode/go/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/go/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/go/rules/agent-team-intake.md +1 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/go/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/go/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/go/team/README.md +5 -0
- package/presets/opencode/ios-swift/OPENCODE.md +1 -1
- package/presets/opencode/ios-swift/README.md +1 -1
- package/presets/opencode/ios-swift/adapter-map.json +11 -3
- package/presets/opencode/ios-swift/hooks/README.md +3 -2
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/ios-swift/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +1 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/ios-swift/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/ios-swift/team/README.md +5 -0
- package/presets/opencode/java/OPENCODE.md +1 -1
- package/presets/opencode/java/README.md +1 -1
- package/presets/opencode/java/adapter-map.json +11 -3
- package/presets/opencode/java/hooks/README.md +3 -2
- package/presets/opencode/java/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/java/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/java/rules/agent-team-intake.md +1 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/java/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/java/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/java/team/README.md +5 -0
- package/presets/opencode/mcp-ts/OPENCODE.md +1 -1
- package/presets/opencode/mcp-ts/README.md +1 -1
- package/presets/opencode/mcp-ts/adapter-map.json +11 -3
- package/presets/opencode/mcp-ts/hooks/README.md +3 -2
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/mcp-ts/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +1 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/mcp-ts/team/README.md +5 -0
- package/presets/opencode/mol/OPENCODE.md +1 -1
- package/presets/opencode/mol/README.md +1 -1
- package/presets/opencode/mol/adapter-map.json +11 -3
- package/presets/opencode/mol/hooks/README.md +3 -2
- package/presets/opencode/mol/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/mol/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/mol/rules/agent-team-intake.md +1 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/mol/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/mol/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/mol/team/README.md +5 -0
- package/presets/opencode/next/OPENCODE.md +1 -1
- package/presets/opencode/next/README.md +1 -1
- package/presets/opencode/next/adapter-map.json +67 -3
- package/presets/opencode/next/agents/build-verifier.md +18 -3
- package/presets/opencode/next/agents/code-reviewer.md +2 -0
- package/presets/opencode/next/agents/feature-developer.md +3 -1
- package/presets/opencode/next/agents/task-analyst.md +6 -0
- package/presets/opencode/next/agents/task-router.md +5 -3
- package/presets/opencode/next/commands/README.md +1 -0
- package/presets/opencode/next/commands/task-continue.md +1 -1
- package/presets/opencode/next/commands/upstream-research.md +26 -0
- package/presets/opencode/next/hooks/README.md +3 -2
- package/presets/opencode/next/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/next/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/next/rules/agent-team-intake.md +1 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/next/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/next/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/next/team/README.md +23 -0
- package/presets/opencode/next/team/upstream/config.json +31 -0
- package/presets/opencode/next/team/upstream/digest-template.md +55 -0
- package/presets/opencode/next/team/upstream/opencode.json +34 -0
- package/presets/opencode/next/team/upstream/projects.json +4 -0
- package/presets/opencode/next/team/upstream/prompt.md +77 -0
- package/presets/opencode/next/team/upstream/signatures.json +9 -0
- package/presets/opencode/nuxt/OPENCODE.md +1 -1
- package/presets/opencode/nuxt/README.md +1 -1
- package/presets/opencode/nuxt/adapter-map.json +11 -3
- package/presets/opencode/nuxt/hooks/README.md +3 -2
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/nuxt/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/nuxt/rules/agent-team-intake.md +1 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/nuxt/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/nuxt/team/README.md +5 -0
- package/presets/opencode/php-hexagonal/OPENCODE.md +1 -1
- package/presets/opencode/php-hexagonal/README.md +1 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +11 -3
- package/presets/opencode/php-hexagonal/hooks/README.md +3 -2
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/php-hexagonal/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +1 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/php-hexagonal/team/README.md +5 -0
- package/presets/opencode/php-laravel/OPENCODE.md +1 -1
- package/presets/opencode/php-laravel/README.md +1 -1
- package/presets/opencode/php-laravel/adapter-map.json +11 -3
- package/presets/opencode/php-laravel/hooks/README.md +3 -2
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/php-laravel/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +1 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/php-laravel/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/php-laravel/team/README.md +5 -0
- package/presets/opencode/svelte/OPENCODE.md +1 -1
- package/presets/opencode/svelte/README.md +1 -1
- package/presets/opencode/svelte/adapter-map.json +11 -3
- package/presets/opencode/svelte/hooks/README.md +3 -2
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +57 -3
- package/presets/opencode/svelte/hooks/check-preset-update.mjs +4 -3
- package/presets/opencode/svelte/rules/agent-team-intake.md +1 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +5 -2
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +4 -4
- package/presets/opencode/svelte/rules/preset-twin-sync.md +1 -1
- package/presets/opencode/svelte/team/README.md +5 -0
- package/presets/zcode/android-kotlin/adapter-map.json +11 -3
- package/presets/zcode/android-kotlin/hooks/README.md +2 -1
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/android-kotlin/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/android-kotlin/rules/agent-team-intake.md +1 -0
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/android-kotlin/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/android-kotlin/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/android-kotlin/team/README.md +5 -0
- package/presets/zcode/go/adapter-map.json +11 -3
- package/presets/zcode/go/hooks/README.md +2 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/go/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/go/rules/agent-team-intake.md +1 -0
- package/presets/zcode/go/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/go/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/go/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/go/team/README.md +5 -0
- package/presets/zcode/ios-swift/adapter-map.json +11 -3
- package/presets/zcode/ios-swift/hooks/README.md +2 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/ios-swift/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/ios-swift/rules/agent-team-intake.md +1 -0
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/ios-swift/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/ios-swift/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/ios-swift/team/README.md +5 -0
- package/presets/zcode/java/adapter-map.json +11 -3
- package/presets/zcode/java/hooks/README.md +2 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/java/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/java/rules/agent-team-intake.md +1 -0
- package/presets/zcode/java/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/java/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/java/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/java/team/README.md +5 -0
- package/presets/zcode/mcp-ts/adapter-map.json +11 -3
- package/presets/zcode/mcp-ts/hooks/README.md +2 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/mcp-ts/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/mcp-ts/rules/agent-team-intake.md +1 -0
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/mcp-ts/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/mcp-ts/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/mcp-ts/team/README.md +5 -0
- package/presets/zcode/mol/adapter-map.json +11 -3
- package/presets/zcode/mol/hooks/README.md +2 -1
- package/presets/zcode/mol/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/mol/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/mol/rules/agent-team-intake.md +1 -0
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/mol/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/mol/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/mol/team/README.md +5 -0
- package/presets/zcode/next/adapter-map.json +67 -3
- package/presets/zcode/next/agents/build-verifier.md +18 -3
- package/presets/zcode/next/agents/code-reviewer.md +2 -0
- package/presets/zcode/next/agents/feature-developer.md +3 -1
- package/presets/zcode/next/agents/task-analyst.md +6 -0
- package/presets/zcode/next/agents/task-router.md +5 -3
- package/presets/zcode/next/commands/README.md +1 -0
- package/presets/zcode/next/commands/task-continue.md +1 -1
- package/presets/zcode/next/commands/upstream-research.md +26 -0
- package/presets/zcode/next/hooks/README.md +2 -1
- package/presets/zcode/next/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/next/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/next/rules/agent-team-intake.md +1 -0
- package/presets/zcode/next/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/next/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/next/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/next/team/README.md +23 -0
- package/presets/zcode/next/team/upstream/config.json +31 -0
- package/presets/zcode/next/team/upstream/digest-template.md +55 -0
- package/presets/zcode/next/team/upstream/opencode.json +34 -0
- package/presets/zcode/next/team/upstream/projects.json +4 -0
- package/presets/zcode/next/team/upstream/prompt.md +77 -0
- package/presets/zcode/next/team/upstream/signatures.json +9 -0
- package/presets/zcode/nuxt/adapter-map.json +11 -3
- package/presets/zcode/nuxt/hooks/README.md +2 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/nuxt/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/nuxt/rules/agent-team-intake.md +1 -0
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/nuxt/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/nuxt/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/nuxt/team/README.md +5 -0
- package/presets/zcode/php-hexagonal/adapter-map.json +11 -3
- package/presets/zcode/php-hexagonal/hooks/README.md +2 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/php-hexagonal/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/php-hexagonal/rules/agent-team-intake.md +1 -0
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/php-hexagonal/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/php-hexagonal/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/php-hexagonal/team/README.md +5 -0
- package/presets/zcode/php-laravel/adapter-map.json +11 -3
- package/presets/zcode/php-laravel/hooks/README.md +2 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/php-laravel/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/php-laravel/rules/agent-team-intake.md +1 -0
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/php-laravel/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/php-laravel/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/php-laravel/team/README.md +5 -0
- package/presets/zcode/svelte/adapter-map.json +11 -3
- package/presets/zcode/svelte/hooks/README.md +2 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +57 -3
- package/presets/zcode/svelte/hooks/check-preset-update.mjs +4 -3
- package/presets/zcode/svelte/rules/agent-team-intake.md +1 -0
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +5 -2
- package/presets/zcode/svelte/rules/preset-pr-checklist.md +4 -4
- package/presets/zcode/svelte/rules/preset-twin-sync.md +1 -1
- package/presets/zcode/svelte/team/README.md +5 -0
- package/presets/claude/android-kotlin/hooks/guard-shell-command.sh +0 -103
- package/presets/claude/go/hooks/guard-shell-command.sh +0 -102
- package/presets/claude/mcp-ts/hooks/guard-shell-command.sh +0 -102
- package/presets/claude/php-hexagonal/hooks/guard-shell-command.sh +0 -103
- package/presets/claude/php-laravel/hooks/guard-shell-command.sh +0 -103
- package/presets/cursor/android-kotlin/hooks/guard-shell-command.sh +0 -80
- package/presets/cursor/go/hooks/guard-shell-command.sh +0 -79
- package/presets/cursor/ios-swift/hooks/guard-shell-command.sh +0 -79
- package/presets/cursor/java/hooks/guard-shell-command.sh +0 -80
- package/presets/cursor/mcp-ts/hooks/guard-shell-command.sh +0 -79
- package/presets/cursor/mol/hooks/guard-shell-command.sh +0 -77
- package/presets/cursor/next/hooks/guard-shell-command.sh +0 -77
- package/presets/cursor/nuxt/hooks/guard-shell-command.sh +0 -77
- package/presets/cursor/php-hexagonal/hooks/guard-shell-command.sh +0 -80
- package/presets/cursor/php-laravel/hooks/guard-shell-command.sh +0 -80
- package/presets/cursor/svelte/hooks/guard-shell-command.sh +0 -77
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,107 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
### Preset update notice
|
|
6
|
+
|
|
7
|
+
- **The `Shape:` sample carries the recorded version.** `check-preset-update.mjs` interpolated `latest` but left `<installed>` as a literal, so an agent that copied the sample verbatim printed the placeholder to the user instead of the installed version.
|
|
8
|
+
- **ZCode installs are checked.** `TOOL_ROOTS` includes `.zcode`, so a ZCode-only install is compared with the latest release and appears in the notice.
|
|
9
|
+
|
|
10
|
+
### Release gate and a fast loop gate
|
|
11
|
+
|
|
12
|
+
- **`yarn release:gate`.** The full structure composite, the `.ai.local` engine tests, and the strict product-specs dogfood run in one release-only command. It refuses `AI_RULES_SKIP_HOOK_TESTS=1` / `AI_RULES_SKIP_PACK_TESTS=1` and a dirty tracked tree, records the release `HEAD`, and writes a report under `.release-gate/`.
|
|
13
|
+
- **`yarn check:fast`.** The loop gate is now `check-preset-fast.sh` (~50 s: generated drift, twin drift, token budget, frontmatter, consumer links, next attached budget, OpenCode platform contract self-test), not the composite with the hook suites skipped. `test-cli-init-clean` moves to the delta gates and CI.
|
|
14
|
+
- **`yarn check:changed`.** The delta classifier prints `affected loop gates` and a separate `release-only gates` line; the preset-domain list names the targeted checks instead of `check:preset-structure (full)`.
|
|
15
|
+
- **Preset agent DoD.** `feature-developer` and `build-verifier` send preset-source changes to `check:changed` + `check:fast`; the full gate is release-only. The PR checklist separates merge from release.
|
|
16
|
+
- **`check:all` removed.** It duplicated the composite; use `yarn release:gate`.
|
|
17
|
+
|
|
18
|
+
## 0.2.62
|
|
19
|
+
|
|
20
|
+
### Engine lock and write audit
|
|
21
|
+
|
|
22
|
+
- **One lock protocol.** `<lock>.d` is the only mutual exclusion for the self-learning journal: a `mkdir` with `owner.json`, no `perl`, no `flock`, no shell. Before, a host with `perl` and a container without it locked different paths (`flock` on the file, `mkdir` on the sibling directory) and could enter together; the `AI_RULES_LOCK_NO_PERL` switch and the short-lived `perl` helper are gone, which also removes one fork per acquisition and the `lock timeout` it could raise while the mutex was free.
|
|
23
|
+
- **Reclaim cannot evict a live owner.** A dead owner is removed inside an atomic `<lock>.d.reclaim` guard, and the owner is re-read after the guard is taken. The previous rename could move a directory another contender had just created, admitting two writers to the journal and the manifest. Fixture: `test-platform-lock-exclusion.mjs` (cross-mode exclusion both ways, plus a five-iteration two-contender reclaim race).
|
|
24
|
+
- **Step-scoped write audit.** `check-write-scope.mjs --step <id> --save-baseline` records every dirty path with its content hash before a step writes; the audit then reports only paths the step created or changed. `--base HEAD` alone attributed every earlier step of the session to the current one, because agents never commit. `--paths` and `--base` stay as escape hatches.
|
|
25
|
+
- **A legacy pipeline is a skip.** `check-write-scope.mjs` exits `3` (SKIP, with `skipReason` and a `hint` in the JSON payload) when the pipeline has no step ids or no `writeScopes`. `build-verifier` records that under `## Soft notes` instead of failing, so a mandatory gate no longer becomes unsatisfiable for work that predates the schema. Step ids are backfillable with `team-db.mjs migrate-tasks`; `writeScopes` are only ever declared by `task-router`.
|
|
26
|
+
- **Install surface.** `.ai.local/.gitignore` gains `team/.write-scope/`; `update` adds the line to an existing ignore file and seeds the unchanged scripts.
|
|
27
|
+
|
|
28
|
+
## 0.2.61
|
|
29
|
+
|
|
30
|
+
### Cross-platform support
|
|
31
|
+
|
|
32
|
+
- **Hook registration through Node.** Every Cursor and Claude stack registers the guard and the chain hook as `node <file>.mjs` commands, so hook startup no longer depends on a shell being executable. `failClosed: true` stays on the guard; the chain hook stays fail-open.
|
|
33
|
+
- **Guard as an `.mjs` file.** The bash guard is replaced by one Node source rendered per stack; the deny/allow contract is unchanged (malformed stdin → `allow`, destructive git → `ask`, package-manager mismatch → `ask`). An existing consumer tree keeps the old `.cursor/hooks/guard-shell-command.sh` / `.claude/hooks/guard-shell-command.sh` as an inert, unmanaged file, because `init` does not delete paths it no longer manages — delete it manually after upgrading. The `.claude/settings.json` merge drops the two legacy bash commands (`guard-shell-command.sh`, `chain-team-phases.sh`) from every event group before it adds the Node commands, so a re-init does not leave a dead hook beside the live one; no other consumer command is touched.
|
|
34
|
+
- **Chain-hook bash resolver.** A Node resolver locates `bash` (PATH, then the usual Git Bash locations on Windows), forwards stdin/stdout, and exits 0 with one actionable line when bash is absent, so a machine without bash no longer blocks the pipeline silently.
|
|
35
|
+
- **Node 20 floor.** `engines.node` is `>=20` in the package and the workspace, and both READMEs link the platform matrix. The `team-db` SQLite projection still needs Node 22.13+ and degrades to file-only below it.
|
|
36
|
+
- **`.gitattributes`.** A repository-root attribute file forces LF for shell scripts, JavaScript, JSON, Markdown, and workflow files, so a Windows checkout cannot produce CRLF shebangs or byte-digest drift; image and font assets stay binary.
|
|
37
|
+
- **Perl-less engine lock.** The self-learning lock keeps the `perl` `flock` fast path but falls back to an atomic directory lock with owner-pid stale recovery, so `manifest.mjs`, `signals.mjs`, and `rule-improver.mjs` work when `perl` is absent without opening a double-writer window.
|
|
38
|
+
- **Windows fixes.** The GitLab MCP runtime and `mcp doctor` launch `npx`/`npm` through the platform-aware invocation (a `.cmd` needs a shell on current Node); the scheduler forwards the Windows child environment and resolves `.cmd` executables; `team-db serve --open` survives a missing browser opener and prints one diagnostic line; signal paths are normalized from `\` to `/` before the traversal guard runs.
|
|
39
|
+
|
|
40
|
+
### Scheduled jobs
|
|
41
|
+
|
|
42
|
+
- **`team-db.mjs schedule`.** One timer per team root: `scheduler/jobs.json` holds the definitions, the lease file `scheduler/scheduler.lock` refuses a second process with exit 4 and goes stale after 90 s, and every due occurrence is claimed inside `BEGIN IMMEDIATE` against `job_runs` — so two racing firings produce one child and one `skipped` row, and `concurrency: allow` still works (no unique active-run index exists).
|
|
43
|
+
- **Bounded children.** A claimed run spawns detached in its own process group, is bounded by the job's `timeoutMs` (`SIGTERM`, a 5 s grace, then `SIGKILL` to the group), and records `succeeded` / `failed` / `timeout` / `skipped` / `interrupted` in a run manifest that is written twice (claim and finalize). `stdout` and `stderr` land in separate files capped at 1 MiB, with the byte count, sha256, and truncation flag on the row.
|
|
44
|
+
- **Two payload kinds.** `command` spawns `payload.argv` with `shell: false` (a resolved Windows `.cmd`/`.bat` is the one exception: it needs a shell); `pipeline` renders `payload.promptTemplate` into `<runDir>/prompt.md` and substitutes `{promptFile}` in a consumer-configured `payload.runner`. The child environment is `PATH`, `HOME`, `TMPDIR`, `LANG`, `TZ` plus `envPassthrough` names (plus the Windows system names on `win32`); no `AI_RULES_TEAM_DB_*` value is forwarded and no new dependency is added — the cron parser and next-fire are hand-written on `node:*` with `Intl` zone math (both `Europe/Berlin` 2027 DST transitions are fixtures).
|
|
45
|
+
- **Definitions are files.** `jobs list|get|put|delete|enable|disable|reconcile|run` write `scheduler/jobs.json` first (sorted by `id`, atomic, an unchanged rewrite is byte-identical) and project `scheduled_jobs`; `--dry-run` writes nothing, a stale `revision` is `409 E_CONFLICT`, and an invalid definition is refused with the offending parameter and the file untouched.
|
|
46
|
+
- **Retention and recovery.** 1 MiB per stream per run, 200 runs per job, 30 days, 2 GiB per team root, never pruning an active run; `state.json` keeps the last fire instant, so a restart replays a gap once (`run-once`) or up to five occurrences (`catch-up`) and a clock jump backwards never re-fires. A `claimed`/`running` run whose process is gone is reconciled to `interrupted` with `E_ORPHANED` before the first fire; `sync --rebuild` and `sync --vacuum` refuse with `E_SCHEDULER_RUNNING` while a fresh lease exists. The kill switch drains: no new claim, the in-flight child finishes, exit 0.
|
|
47
|
+
- **No redaction.** Run output is persisted verbatim under `scheduler/runs/**`, which `.ai.local/.gitignore` ignores together with `state.json`; `jobs.json` stays tracked.
|
|
48
|
+
- **Schema v2.** Migration `0002-scheduler` adds `scheduled_jobs`, `job_runs`, `job_run_events`, and five indexes; migration 1's bytes and checksum literal are unchanged. A v1 database carries a fingerprint that no longer describes the schema, so the next open moves it aside as `team.db.mismatch-<stamp>` and rebuilds from the task files.
|
|
49
|
+
- **Contract.** Nine job routes take the API to 32 operations (`jobs` list/create, `jobs/{id}` read/update/delete, its runs and run log, and run-now), with per-route body bounds (64 KiB for a job write, 1 KiB for run-now), `E_CONFLICT` / `E_SCHEDULER_OFFLINE` in the documented code table plus `E_ORPHANED` as the run reason, `capabilities` gaining `jobs` and `schedule`, and `Health.scheduler` derived from the lease. The two existing `spawnSync` mutations became asynchronous bounded children, so no request path blocks the event loop.
|
|
50
|
+
- **Dashboard.** `team-db.mjs serve` gains a jobs list with filters and load-more, a job detail with recent runs, a run page with two incremental log streams polled at 2 000 ms by byte offset, a create/edit form with per-field errors, enable/disable, run-now, and delete — each destructive action behind its own confirmation, and every section with empty, error, and loading states.
|
|
51
|
+
- **Install surface.** `team-db-scheduler.mjs` joins `ENGINE_SCRIPTS` (fifteen modules) and the seeded `.ai.local/.gitignore`; an existing consumer receives it plus migration 2 through one `update --fix` (the missing module by the seed, the stale schema by the guard, backed up before it is overwritten). `update --check` names that eligible rel set and writes none of it; a module the consumer edited is kept byte-identical.
|
|
52
|
+
- **Gates.** New `test-team-db-scheduler.mjs`; `test-team-db-concurrency.mjs` adds a scheduler-versus-projector run on one database, a `SIGKILL`ed scheduler that leaves `integrity_check` ok and one `interrupted` row, 50 finalized runs inside the WAL bound, and a held exclusive lock that neither hangs nor leaves a lease; `test-team-db-fixtures.mjs` plants a defect for every new or edited gate (migration 2 checksum, claim overlap, capture cap, route parity at 32, `E_DISABLED` ordering, the dashboard per-route table, the app operations table). Both suites are wired into `check-preset-structure.sh` and `yarn test:team-db`.
|
|
53
|
+
|
|
54
|
+
### Upstream research
|
|
55
|
+
|
|
56
|
+
- **Weekly and manual evolution review.** A new `upstream-research` pipeline job runs one engine module, `.ai.local/scripts/upstream-research.mjs`, over a growing registry of comparison repositories. A run probes `opencode` first (exit `10` / `11` before any cursor, digest, or project write), scans each due clone with `git fetch --depth 1`, labels exactly one window (`range`, `baseline`, `unprovable`, `no-change`), calls a read-only agent, validates a marked JSON answer, re-checks every citation inside the clone, dedupes by mechanism, and commits one ranked digest to `docs/upstream/digest-<runId>.md`.
|
|
57
|
+
- **Registry and caps are data.** `.ai.local/team/upstream/projects.json` is typed and bounded (`schemaVersion: 1`, named `E_REGISTRY_*` errors, ≤ 100 entries, `refs.branch` must be a git ref name and never a `git` option); `config.json` carries the frozen caps (5 projects, 20 minutes per project, 60 minutes total, 3 digest items) with the same loader; the per-project cursor is git-ignored, type-checked, and rebuilt from the newest `report.json`. `config.agent.model` is `null` by default, so the call uses the model the installed `opencode` resolves; a `provider/model` id adds `--model` to the call with no code change.
|
|
58
|
+
- **Read-only agent.** `team/upstream/opencode.json` ships `agent.upstream-researcher` with a global `"*": "deny"` — no built-in, MCP, or custom tool — plus `edit`, `bash`, `read`, `glob`, `grep`, `list`, `webfetch`, `websearch`, `task`, and `external_directory` denied on `*`; the invocation is `opencode run --agent upstream-researcher --format json --archived --auto`, never `--worktree`. Before phase 1 the runner resolves the installed agent with `opencode debug agents` and fails `E_AGENT_CONFIG_INVALID` (12) if the wildcard or any named action was widened, or if the deciding deny is narrower than resource `*`. The runner also compares `git status --porcelain` before and after each call (`E_WORKTREE_CHANGED`, `E_UPSTREAM_DIRTY`).
|
|
59
|
+
- **Durable dedupe.** The attribution list is git-ignored, so `.ai.local/team/upstream/signatures.json` is the durable index (`generatedFrom.{path,sha256,rows}`). An adopted mechanism drops; a rejected one returns only with an `invalidates` change inside the window; a near-miss is kept and annotated; missing prior art marks every idea `dedupe: unverified` and never new.
|
|
60
|
+
- **Failure isolation.** One failed project leaves the run successful; every project failing exits `13` with a digest; `budget.maxConsecutiveAgentFailures` stops starting projects and marks the tail `skipped: agent-unavailable`; one `budget.projectTimeoutMs` deadline bounds a project's scan and both agent attempts; `concurrency: skip` records `E_CONCURRENCY_SKIP`; the scheduler's closed reason codes stay untouched, so the job row reports `E_EXIT_<n>`.
|
|
61
|
+
- **Install surface.** `upstream-research.mjs` joins `ENGINE_SCRIPTS`; `.ai.local/.gitignore` gains `team/upstream/cursor.json`; `init`/`update` refresh `prompt.md`, `digest-template.md`, and `opencode.json` while seeding `projects.json`, `config.json`, and `signatures.json` only when absent; `/upstream-research` queues a run and adds one `schedule --once` tick when the timer is offline. Docs: `docs/TEAM-DB.md` § Upstream research job, `docs/OPENCODE.md` § Upstream research agent.
|
|
62
|
+
- **Gates.** New `scripts/test-upstream-research.mjs` covers the probe failures, registry and policy bounds, the four window labels, the fetch-failure cursor guarantee, the answer schema and one-retry path, the full read-only deny set plus the runtime `debug agents` assertion, the ref-option and digest-forgery FAIL-direction fixtures, the evidence drop, prior-art parsing and dedupe, the digest ranking/state machine/prune survival, and the isolation/budget/ordering rules; `scripts/test-team-db-scheduler.mjs` stays green with `team-db-scheduler.mjs` byte-identical. All 55 CLI goldens are recaptured by `fix:generated`.
|
|
63
|
+
|
|
64
|
+
### Engine repair verbs
|
|
65
|
+
|
|
66
|
+
- **`update --fix`.** Upgrades a seeded `.ai.local/scripts/` module only when its current bytes still match the shipped digest recorded in `.ai.local/.template-base.json`. A consumer-edited module is reported `kept modified` and left byte-identical; a module with no recorded base is reported `unattributable` and never written; a symlinked module is reported `skipped symlink` and never written through. `--no-backup` skips the durable copy; failure atomicity and the `safe-path` refusal stay on.
|
|
67
|
+
- **Backup and restore.** The default run writes `.ai.local/.rollback/engine-<stamp>/<rel>` for every overwritten module before the first module write, keeps the five newest `engine-*` runs, and never touches `template-drift/` or `legacy-team-*`. Restore with `cp -R .ai.local/.rollback/engine-<stamp>/.ai.local .`.
|
|
68
|
+
- **`update --check` parity.** The `check fast-forward .ai.local/scripts/<name>` set is computed from the same plan as the `--fix` write set — including a module whose recorded base names a tool you have since cleaned — and is exactly that set; `--check` still writes nothing.
|
|
69
|
+
- **`doctor --fix` and `fixable`.** Every doctor finding now carries `fixable` (`stale-engine` → `true`; `missing-engine`, `modified`, `legacy-manifest`, and `version-mismatch` → `false`). `doctor --fix` runs the same plan and writer, re-runs its checks, prints the post-state, and exits `0` only when that state is clean; `doctor --json` keeps `schemaVersion: 1` and adds one `fix` field when `--fix` ran.
|
|
70
|
+
- **Finding split.** `stale-engine` now means "bytes still equal the recorded shipped base, so the module is safely upgradeable". A consumer-edited module is `modified` (`fixable: false`), removing the conflation that made the old `stale-engine` report unsafe to repair.
|
|
71
|
+
- **`init --fix`.** Rejected with exit `1` and a message pointing at `update --fix`; `init` keeps skip-if-exists and never overwrites a consumer module.
|
|
72
|
+
- **Gates.** `test-engine-upgrade.mjs` covers `current`, `modified`, `stale`, and `no-base`, the `--check`/`--fix` set equality, backup/restore/retention, a backup-failure abort, `init --fix`, the `fixable` table, and the help block; it is wired into `check-preset-structure.sh` after `cli-install-doctor`.
|
|
73
|
+
|
|
74
|
+
### Project MCP catalog
|
|
75
|
+
|
|
76
|
+
- **`init mcp`.** `ai-rules init mcp <name…|--all> [--tools <list>]` writes the third-party servers this package uses into every detected client (`--tools` narrows the set and warns for a client that is not installed). One canonical catalog in `bin/lib/mcp/catalog.js` renders into each client's native shape: Cursor `.cursor/mcp.json` (`mcpServers`), Claude `.mcp.json` (remotes carry `type: "http"`), Mavis `.mavis/mcp.json`, OpenCode `opencode.json` (`local` argv / `remote` url), ZCode `.zcode/config.json` (nested `mcp.servers`). Names: `context7`, `playwright` (Claude's own id is `playwright-test`), `chrome-devtools`, `next-devtools`, `semgrep`, `sentry`, `figma-desktop` (alias `figma`), `figma-cloud`, `storybook`, plus the runtime rows `defectdojo`, `gitlab`, `github`, `yandex-tracker`, `yandex-wiki` that resolve to `npx -y @bonesofspring/ai-rules@<version> mcp run <slug>`.
|
|
77
|
+
- **Merge and idempotence.** A catalog id is written or refreshed and its scalar fields (`command`, `args`, `url`, `type`) win; a foreign server id, consumer `env` / `headers`, and other top-level keys stay. A second run is byte-identical and does not move the file mtime (it prints `already up to date`); a file that is not valid JSON, or whose `mcp` / `mcpServers` key is not an object, exits `1` untouched. Pins mirror `presets/<tool>/next/mcp.json`, and `test-cli-mcp-catalog.mjs` — wired into `check-preset-structure.sh` — fails when the two drift, when a catalog row is missing on any client shape, or when the doctor stops reporting a registered-but-unconfigured provider.
|
|
78
|
+
- **DefectDojo runtime provider.** `mcp/defectdojo-mcp.mjs` over `mcp/lib/defectdojo.mjs` is the new stdio wrapper; `mcp setup defectdojo` reads `DEFECTDOJO_URL` / `DEFECTDOJO_TOKEN` from the shell or `.env.defectdojo` in the project root, refuses to run while that file is not git-ignored, validates the pair with `GET /api/v2/findings/` before registering anything, and never writes the secret. `mcp doctor` with no provider now covers five providers (GitLab, GitHub, Yandex Tracker, Yandex Wiki, DefectDojo) and names one next step per failure; `mcp remove --purge` deletes only `.ai-rules/mcp/{credentials,config}.env` and never the consumer's `.env.defectdojo`. Docs: `docs/MCP-CATALOG.md`, `docs/MCP-SETUP.md` § 4.
|
|
79
|
+
|
|
80
|
+
### Chain hook: per-session slug binding
|
|
81
|
+
|
|
82
|
+
- **Resolution order.** The chain hook now resolves the task slug from `TEAM_TASK_SLUG`, then from a per-session lease `.ai.local/team/.session-leases/<session>.json` (session id from `OPENCODE_SESSION_ID` or `AI_RULES_SESSION_ID`, `[A-Za-z0-9_-]{1,128}`), then from `active-task.json`. A lease is written atomically (temp + rename), expires after 7 days, and stale leases are pruned on every write; the lease is best-effort and never gates a hook.
|
|
83
|
+
- **Write and warning.** Only an explicit `TEAM_TASK_SLUG` writes the lease, so a fallback-derived slug never becomes another session's binding. Every fallback prints one stderr line naming the slug and the source; an explicit binding or a lease prints none. Two parallel OpenCode sessions no longer no-op each other's handoffs, and a missing env is visible instead of silent.
|
|
84
|
+
- **Surface and gates.** The shared template and all 55 hooks carry the resolver. The `next` command twins, every stack's orchestrator rule, the OpenCode-generated `README.md` / `OPENCODE.md`, and the published `docs/OPENCODE.md` show `TEAM_TASK_SLUG=<slug>` on the manual call. The seeded `.ai.local/.gitignore` gains `team/.session-leases/` (an existing install gets the line appended by `init`/`update`). `test-chain-team-phases-session-lease.mjs` covers the explicit write, a same-session lease beating a foreign pointer, a foreign session falling back with the warning and writing no lease, and an explicit rebind; it is wired into `check-preset-structure.sh`, and the pre-existing postflight suite now binds the slug from the pointer before it calls the hook, so its runs stay warning-free.
|
|
85
|
+
|
|
86
|
+
### Leaner pipeline defaults
|
|
87
|
+
|
|
88
|
+
- **Profile caps.** `task-router` selects `full` only for app code that carries a named risk flag or an e2e AC; preset-only, docs, review, and test-only tasks are never `full`, and a `high` classification without a named flag stays `standard`. Generated trees, snapshots, CLI goldens, docs, and test fixtures do not raise the profile, so a large mechanical diff no longer buys the heavy pipeline. `light` keeps its explicit-AC meaning.
|
|
89
|
+
- **Artifact budgets.** `agent-artifact-contracts.md` ships a size table — `brief.md` ≤ 80 prose lines, `decomposition.md` ≤ 60 and only when the task has more than 3 work packages, `implementation.md` ≤ 80, `validation-report.md` ≤ 40, `review.md` ≤ 100, `.memlog.md` ≤ 40 — with evidence tables and finding rows exempt. The four producer prompts (`task-analyst`, `feature-developer`, `build-verifier`, `code-reviewer`) carry their own cap; the Cursor source, the Claude twins, the generated trees, and the goldens carry the same text.
|
|
90
|
+
- **Requirements registry removed (repo-local).** The 28-R-ID registry left this repository: `.ai.local/requirements/**`, `check-requirements-compliance.mjs`, `requirements-registry.mjs`, and `requirements-block.mjs` are gone, the two auto-created gate rules merged into `agent-pipeline-gates.md`, and `task-levels.md` is now L0–L2 with the artifact budgets above. The preset-development checklist is six lines in `.ai.local/conventions.md` § Patterns. These modules were never in `ENGINE_SCRIPTS`; consumers of `0.2.60` did not receive them and need no action.
|
|
91
|
+
|
|
92
|
+
### Faster iteration gates
|
|
93
|
+
|
|
94
|
+
- **`yarn check:changed`.** The changed-domain classifier gets a script alias (`check-preset-delta.mjs --base HEAD`), so the cheap loop is one command that names the gates a diff can affect; `yarn check:fast` stays the structure gate without the hook matrix, and `yarn check:preset-structure` remains the release gate. `docs/PRESET-CONTRIBUTION.md` gains an "iteration versus release" section.
|
|
95
|
+
- **Generated-tree cache.** `check-generated-drift.mjs` caches each generated subtree in the OS temp directory under a digest of `presets/cursor/<stack>`, `presets/_shared`, `scripts/lib`, and `package.json` (the Claude tree adds its mapping table). A source or generator edit changes the key and forces a fresh generation; a hit compares the working tree against byte-identical generated output, so the cache can never hide drift, and it is pruned after 7 days. `test-generated-cache.mjs` covers a hit, a source-edit invalidation, and the temp-directory location, and runs as its own gate row.
|
|
96
|
+
- **Hook matrix.** The coverage suite's dynamic fixtures run on the `cursor/next` representative hook instead of all 55; the other 54 stay held by the static `check-chain-hook-coverage.sh`, `check-hook-body-parity.mjs`, and the pause/stale-attempt suites. The suite drops from 15–20 minutes to ~41 s while every generated body is still asserted.
|
|
97
|
+
|
|
98
|
+
### Upgrade
|
|
99
|
+
|
|
100
|
+
- Run `npx @bonesofspring/ai-rules update` to refresh the 55 hooks, the commands, the shared rules, and the `next` agents. Pass `TEAM_TASK_SLUG=<slug>` on every manual hook call: the fallback still works, but it now warns and the lease only binds from an explicit slug. A registered host hook that cannot set the env still resolves `active-task.json` and prints that warning on each call — the intended loud signal, not an error. An existing `.ai.local/.gitignore` receives `team/.session-leases/` from the same run.
|
|
101
|
+
- `npx @bonesofspring/ai-rules init mcp --all` (or a named subset) wires the third-party servers into the installed clients; nothing is registered until you run it. Use `mcp setup defectdojo` for the new provider, and `mcp doctor` to see all five credential-bearing providers.
|
|
102
|
+
- `upstream-research.mjs` joins the sixteen-module engine seed; the next `init`/`update` installs it, and `update --fix` upgrades a seeded module whose bytes still match the recorded base (`update --check` names that set without writing).
|
|
103
|
+
- Profile caps and artifact budgets change routing and artifact size only: no file migration, no schema change, no consumer action.
|
|
104
|
+
|
|
3
105
|
## 0.2.60
|
|
4
106
|
|
|
5
107
|
`0.2.58` (no tag, no npm version) and `0.2.59` (a tag, no npm version) were never published — their notes ship as `0.2.60`.
|
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @bonesofspring/ai-rules
|
|
2
2
|
|
|
3
|
-
Presets for **Cursor**, **Claude Code**, **Mavis** (MiniMax `mcode`), **OpenCode**, and **ZCode**. Node
|
|
3
|
+
Presets for **Cursor**, **Claude Code**, **Mavis** (MiniMax `mcode`), **OpenCode**, and **ZCode**. Node 20+. Platform support, prerequisites, and the Windows setup (Git Bash): [`docs/PLATFORMS.md`](docs/PLATFORMS.md).
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npx @bonesofspring/ai-rules init multi --preset next
|
|
7
7
|
npx @bonesofspring/ai-rules update # reinstall tools already recorded in this repo
|
|
8
8
|
npx @bonesofspring/ai-rules update --merge-ai-local # fast-forward files whose recorded base still matches; edits and pre-record files stay put
|
|
9
|
-
npx @bonesofspring/ai-rules doctor #
|
|
9
|
+
npx @bonesofspring/ai-rules doctor # install health: managed files, engine set, version; --fix upgrades stale engine modules
|
|
10
10
|
npx @bonesofspring/ai-rules clean cursor # never deletes .ai.local/
|
|
11
|
-
npx @bonesofspring/ai-rules init mcp --all #
|
|
11
|
+
npx @bonesofspring/ai-rules init mcp --all # catalog: context7, playwright, chrome/next-devtools, semgrep, sentry, figma, storybook, defectdojo, gitlab/github, yandex-*
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Run `init` from the **app root** (`--cwd` if needed). Default `--preset` is `next`. Forms: `init cursor --preset next`, `init cursor next`, `init cursor`. Global: `npm i -g @bonesofspring/ai-rules`.
|
|
@@ -25,12 +25,12 @@ 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; sixteen scripts — the six self-learning engine modules, `manifest.mjs`, the seven `team-db*.mjs` projection and scheduler modules, the `upstream-research.mjs` review, and the read-only `check-write-scope.mjs` write audit; existing files never overwritten) | | | |
|
|
29
29
|
| Specs seed | `docs/specs/` copied only if the directory is **absent** | | | |
|
|
30
30
|
|
|
31
31
|
### Project MCP catalog
|
|
32
32
|
|
|
33
|
-
`init mcp` writes the third-party servers this package
|
|
33
|
+
`init mcp` writes the third-party servers this package ships plus Storybook, DefectDojo, and the packaged GitLab / GitHub / Yandex runtime entries into every installed client; `--tools` narrows the list to the clients you name. Entries render in each client's native shape and merge like `init`: extra servers, the consumer's `env` / `headers`, and other top-level keys stay. Names: `context7`, `playwright` (Claude's id is `playwright-test`), `chrome-devtools`, `next-devtools`, `semgrep`, `sentry`, `figma-desktop` (alias `figma`, the local `http://127.0.0.1:3845/mcp` server), `figma-cloud` (the remote `https://mcp.figma.com/mcp` server), `storybook` (`http://localhost:6200/mcp`), `defectdojo`, `gitlab`, `github`, `yandex-tracker`, and `yandex-wiki`; `--all` selects every one. The last five are packaged runtime entries: they are registered without credentials and need `mcp setup <provider>` once (DefectDojo reads `.env.defectdojo`). Next.js DevTools needs a running `next dev` on Next.js 16+; Semgrep needs the `semgrep` CLI; Sentry uses OAuth.
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
36
|
npx @bonesofspring/ai-rules init mcp context7
|
|
@@ -38,7 +38,7 @@ npx @bonesofspring/ai-rules init mcp figma-desktop figma-cloud
|
|
|
38
38
|
npx @bonesofspring/ai-rules init mcp --all --tools cursor,claude
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Details: [`docs/MCP-CATALOG.md`](docs/MCP-CATALOG.md). The credential-bearing pack (GitLab, GitHub, Yandex) is
|
|
41
|
+
Details: [`docs/MCP-CATALOG.md`](docs/MCP-CATALOG.md). The credential-bearing pack (GitLab, GitHub, Yandex, DefectDojo) is the `mcp setup|add|remove|doctor|refresh|run` namespace.
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
The engine is the in-task self-learning loop: `.ai.local/signals.jsonl` → `.ai.local/rule-changes.jsonl` →
|
|
@@ -52,31 +52,35 @@ node .ai.local/scripts/run.mjs --strict # read-only check: exit 1 when capture
|
|
|
52
52
|
node .ai.local/scripts/run.mjs --dry-run # read-only preview: decision, target, before/after, exact writes
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
`build-verifier` and `code-reviewer` also run the read-only write audit `node .ai.local/scripts/check-write-scope.mjs --slug <slug> --step <step-id>`: it labels every changed path `declared`, `derived`, or `out-of-scope` against the step's `writeScopes`. It is never a hook gate.
|
|
55
|
+
`build-verifier` and `code-reviewer` also run the read-only write audit `node .ai.local/scripts/check-write-scope.mjs --slug <slug> --step <step-id>`: it labels every changed path `declared`, `derived`, or `out-of-scope` against the step's `writeScopes`. The orchestrator saves the step baseline (`--step <step-id> --save-baseline`) before the step writes, so the audit covers that step rather than the whole session. A pipeline that predates `writeScopes` exits `3` (skip), never a failure. It is never a hook gate.
|
|
56
56
|
|
|
57
57
|
`init` seeds the engine with **skip-if-exists** — a modified `run.mjs` stays yours and is reported as kept; there is no
|
|
58
|
-
`--force`.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
`team.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
`--force`. The seeded tree is byte-identical to `presets/_shared/ai-local/scripts/`, and `.ai.local/.gitignore` (created
|
|
59
|
+
when absent, missing required lines appended to an existing file) ignores `*.lock`, `*.tmp`, `.rollback/`, `STOP`,
|
|
60
|
+
`ESTOP`, `team.db`, `team.db-wal`, `team.db-shm`, `team-db-errors.log`, `team/scheduler/runs/`, and
|
|
61
|
+
`team/scheduler/state.json`; the root `.gitignore` is never edited.
|
|
62
|
+
|
|
63
|
+
Upgrade a seeded module with `update --fix`: it writes a module only when its current bytes still match the shipped digest
|
|
64
|
+
recorded in `.ai.local/.template-base.json`. A module you edited is reported `kept modified` and stays byte-identical; a
|
|
65
|
+
module with no recorded base (installed before the record existed) is reported `unattributable` and never written — delete
|
|
66
|
+
that one file and re-run `init` to adopt it. Every overwritten module is backed up by default to
|
|
67
|
+
`.ai.local/.rollback/engine-<stamp>/` (the five newest runs are kept); `--no-backup` skips the durable copy while keeping
|
|
68
|
+
the failure rollback. Restore a run with:
|
|
68
69
|
|
|
69
70
|
```bash
|
|
70
|
-
|
|
71
|
-
rm .ai.local/scripts/run.mjs
|
|
72
|
-
rm .ai.local/scripts/team-db-schema.mjs
|
|
73
|
-
npx @bonesofspring/ai-rules update
|
|
71
|
+
cp -R .ai.local/.rollback/engine-<stamp>/.ai.local .
|
|
74
72
|
```
|
|
75
73
|
|
|
76
|
-
|
|
74
|
+
`update --check` prints the same `check fast-forward .ai.local/scripts/<name>` lines and writes nothing, so it previews the
|
|
75
|
+
`--fix` write set; both come from one plan, including a module whose recorded base names a tool you have since cleaned. A
|
|
76
|
+
symlinked module is reported `skipped symlink` and never written through. `doctor --json` marks every engine finding
|
|
77
|
+
`fixable` (`stale-engine` → `true`; `modified`, `missing-engine`, `legacy-manifest`, and `version-mismatch` → `false`), and
|
|
78
|
+
`doctor --fix` runs the same plan and writer before printing the post-state. A consumer that already holds
|
|
79
|
+
`.ai.local/scripts/rule-improver.mjs` keeps the old engine
|
|
80
|
+
until it upgrades; `--dry-run` and `--rollback` live in the newer `run.mjs` / `rule-improver.mjs`.
|
|
77
81
|
|
|
78
82
|
The 0.2.56 delete-task release also changes `team-db.mjs`, `team-db-project.mjs`, `team-db-api.mjs`, and
|
|
79
|
-
`team-db-openapi.mjs`;
|
|
83
|
+
`team-db-openapi.mjs`; `update --fix` takes those too when you never edited them.
|
|
80
84
|
|
|
81
85
|
Promote a staged seed by hand; the engine never activates one on its own:
|
|
82
86
|
|
|
@@ -130,6 +134,8 @@ node .ai.local/scripts/team-db.mjs sync # full backfill + reconc
|
|
|
130
134
|
node .ai.local/scripts/team-db.mjs sync --slug <slug> # the bounded hook-shaped projection
|
|
131
135
|
node .ai.local/scripts/team-db.mjs check # schema, fingerprint, integrity
|
|
132
136
|
node .ai.local/scripts/team-db.mjs serve # http://127.0.0.1:4178 + dashboard
|
|
137
|
+
node .ai.local/scripts/team-db.mjs schedule # the timer: claims, runs, captures, reconciles
|
|
138
|
+
node .ai.local/scripts/team-db.mjs jobs list # definitions + next fire, file-authoritative
|
|
133
139
|
AI_RULES_TEAM_DB_DISABLE=1 node .ai.local/scripts/team-db.mjs sync # no-op: file-only mode
|
|
134
140
|
```
|
|
135
141
|
|
|
@@ -137,9 +143,36 @@ Requires Node 22.13.0+ for `node:sqlite`; older runtimes stay file-only with one
|
|
|
137
143
|
`migrate-tasks` is the one-command path: it creates the database when it is absent and writes
|
|
138
144
|
only the delta against an existing one, so a fresh workspace and a populated database converge
|
|
139
145
|
in one invocation.
|
|
140
|
-
`team-db.mjs serve` binds loopback only, is read-only apart from
|
|
141
|
-
|
|
142
|
-
and rollback:
|
|
146
|
+
`team-db.mjs serve` binds loopback only, is read-only apart from the six documented mutations
|
|
147
|
+
(`POST /api/v1/sync`, the task delete, and four job writes), and serves the OpenAPI 3.1
|
|
148
|
+
document at `/openapi.json`. Details, environment names, retention, and rollback:
|
|
149
|
+
[`docs/TEAM-DB.md`](docs/TEAM-DB.md).
|
|
150
|
+
|
|
151
|
+
### Scheduled jobs
|
|
152
|
+
|
|
153
|
+
`scheduler/jobs.json` defines cron or interval jobs — a `command` argv or a `pipeline` prompt
|
|
154
|
+
lowered to a consumer-configured runner — and `team-db.mjs schedule` runs one at a time per
|
|
155
|
+
team root: one `BEGIN IMMEDIATE` claim per occurrence, a detached child with a process-group
|
|
156
|
+
timeout kill, split `stdout`/`stderr` capped at 1 MiB, and a reconciled restart. The
|
|
157
|
+
definitions are committed, run output and `state.json` are ignored, and the captured output is
|
|
158
|
+
never redacted. The `queue` concurrency policy and the `run-once` / `catch-up` (five
|
|
159
|
+
occurrences) misfire policies cover overlap and downtime; the kill switch drains instead of
|
|
160
|
+
dropping a claim. The same nine job routes drive the shipped dashboard (its Jobs tab under
|
|
161
|
+
`team-db.mjs serve`) and any other client. Schema v2 adds the three projection tables; a
|
|
162
|
+
pre-v2 database is rebuilt from the files on the next `sync`.
|
|
163
|
+
|
|
164
|
+
### Upstream research
|
|
165
|
+
|
|
166
|
+
The `next` preset ships a weekly `upstream-research` job and a read-only `opencode` agent for
|
|
167
|
+
it. The runner (`.ai.local/scripts/upstream-research.mjs`) probes `opencode`, loads
|
|
168
|
+
`upstream/projects.json` and `upstream/config.json`, fetches each due clone with
|
|
169
|
+
`git fetch --depth 1`, labels the window (`range`, `baseline`, `unprovable`, `no-change`),
|
|
170
|
+
validates the agent's marked JSON, re-checks every citation inside the clone, dedupes by
|
|
171
|
+
mechanism against the committed `upstream/signatures.json`, and writes one ranked digest to
|
|
172
|
+
`docs/upstream/digest-<runId>.md`. The cursor is git-ignored; the caps are data. `/upstream-research`
|
|
173
|
+
queues a run and adds one `schedule --once` tick when no timer is online. Details:
|
|
174
|
+
[`docs/TEAM-DB.md`](docs/TEAM-DB.md#upstream-research-job) and
|
|
175
|
+
[`docs/OPENCODE.md`](docs/OPENCODE.md#upstream-research-agent).
|
|
143
176
|
|
|
144
177
|
Living exceptions: **`.ai.local/rules/`** and **`.ai.local/conventions.md`** (`init` does not overwrite them). The only exception is opt-in and hash-gated: `update --merge-ai-local` fast-forwards a file whose recorded base in `.ai.local/.template-base.json` still matches, keeps an edited file byte-identical, and diverts its unified diff to `.ai.local/.rollback/template-drift/` (never a `.md`, never a conflict marker). Plain `update` only prints one drift line and records the files that already hold the shipped template; your own bytes never become a base. Overlay does not load `.ai.local/team/**` as rules; see [`docs/LOCAL-OVERLAY.md`](docs/LOCAL-OVERLAY.md#template-drift).
|
|
145
178
|
|
|
@@ -157,7 +190,7 @@ Mavis never writes `~/.minimax/**`. OpenCode never writes `~/.config/opencode/**
|
|
|
157
190
|
|
|
158
191
|
`update` reinstalls each tool whose `<tool>/.ai-rules-install.json` is already present, using the `preset` field `init` wrote (`platform` + `preset`). Slash command `/update` runs that CLI. A tool without a manifest stays uninstalled, and the recorded preset stays as stored. To switch preset, run `init <tool> --preset <name>`.
|
|
159
192
|
|
|
160
|
-
`doctor` is the
|
|
193
|
+
`doctor` is the install-state check. For every installed platform it reports `missing` or `modified` managed files, a manifest without a `managedFiles` map, `legacy-manifest` for schema v1, and a `version-mismatch` between the manifest's `packageVersion` and the package you are running. Once per project it classifies `.ai.local/scripts/` with the same predicate `update --fix` writes with: `stale-engine` is safely upgradeable (`fixable: true`), `modified` is your edit (`fixable: false`), and `missing-engine`, `legacy-manifest`, and `version-mismatch` are not fixable. `--json` prints one object with `fixable` on every finding and adds one `fix` field when `--fix` ran. Exit `0` means clean, `1` means findings, `2` means a usage error (unknown option, bad positional, bad `--cwd`). `doctor --fix` applies the same plan and writer as `update --fix`, re-runs the check, prints the post-state, and exits `0` only when that post-state is clean; a `modified` module is never overwritten, and a module with no recorded base needs the delete + `init` remedy.
|
|
161
194
|
|
|
162
195
|
On session start (Cursor and Claude hooks; Mavis, OpenCode, and ZCode on the first reply) the preset compares that recorded `packageVersion` with the latest `@bonesofspring/ai-rules` release. When a newer release exists, the reply opens with a level-2 heading and a blockquote naming the installed version, the latest version, and `/update`. That block stays out of the task answer. `/update` then says the update finished successfully, or that it did not, without quoting the exit code.
|
|
163
196
|
|
|
@@ -184,7 +217,7 @@ Optional check: `yarn check:product-specs [<repo-root>]` (WARN) or `--strict`. T
|
|
|
184
217
|
|
|
185
218
|
## Anti-hallucination
|
|
186
219
|
|
|
187
|
-
Every installed preset ships requestable `anti-hallucination-contract` (not always-on). Writer roles — implementer, unit-test, e2e, qa, and `code-reviewer` — also load that stack's floor stem. `yarn
|
|
220
|
+
Every installed preset ships requestable `anti-hallucination-contract` (not always-on). Writer roles — implementer, unit-test, e2e, qa, and `code-reviewer` — also load that stack's floor stem. `yarn release:gate` fails if a role or skill binding is removed. Register a new skill family in `SKILL_CONTRACT_CLASS` (`writer` or `reader`). Details: [`docs/PRESET-CONTRIBUTION.md`](docs/PRESET-CONTRIBUTION.md).
|
|
188
221
|
|
|
189
222
|
## Contributing
|
|
190
223
|
|
|
@@ -194,7 +227,7 @@ Every installed preset ships requestable `anti-hallucination-contract` (not alwa
|
|
|
194
227
|
- MCP setup: [`docs/MCP-SETUP.md`](docs/MCP-SETUP.md)
|
|
195
228
|
- MCP catalog: [`docs/MCP-CATALOG.md`](docs/MCP-CATALOG.md)
|
|
196
229
|
- Dogfood: [`scripts/sync-dogfood-cursor.sh`](scripts/sync-dogfood-cursor.sh), [`scripts/sync-dogfood-claude.sh`](scripts/sync-dogfood-claude.sh), [`scripts/sync-dogfood-mavis.sh`](scripts/sync-dogfood-mavis.sh), [`scripts/sync-dogfood-opencode.sh`](scripts/sync-dogfood-opencode.sh) — seeds `.ai.local/team`, preserves slugs
|
|
197
|
-
- Gates: `yarn check:
|
|
230
|
+
- Gates: loop `yarn check:changed` + `yarn check:fast`; release `yarn release:gate`
|
|
198
231
|
|
|
199
232
|
`_shared` is not an installable `--preset`.
|
|
200
233
|
|