@bonesofspring/ai-rules 0.2.86 → 0.2.90
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 +60 -0
- package/README.md +9 -1
- package/bin/lib/engine-scripts.js +11 -0
- package/bin/lib/seed-ai-local-team.js +79 -2
- package/bin/opencode-install.js +14 -12
- package/docs/OPENCODE-COMPATIBILITY.md +6 -4
- package/docs/OPENCODE.md +15 -8
- package/docs/PRESET-CONTRIBUTION.md +6 -6
- package/docs/TOKEN-ECONOMY.md +20 -0
- package/docs/openapi/team-db.v1.json +2 -2
- package/package.json +1 -1
- package/presets/_shared/ai-local/env.example +54 -0
- package/presets/_shared/ai-local/scripts/aggregate-agent-task-metrics.mjs +34 -5
- package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +25 -22
- package/presets/_shared/ai-local/scripts/process-lease.mjs +3 -2
- package/presets/_shared/ai-local/scripts/processes.mjs +52 -20
- package/presets/_shared/ai-local/scripts/report-step-cost.mjs +544 -0
- package/presets/_shared/ai-local/scripts/run.mjs +38 -6
- package/presets/_shared/ai-local/scripts/settings.mjs +246 -0
- package/presets/_shared/ai-local/scripts/task-worktree.mjs +364 -0
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +2 -2
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +87 -14
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +102 -12
- package/presets/_shared/ai-local/scripts/team-db-tracker.mjs +35 -0
- package/presets/_shared/ai-local/scripts/tracker-planned-drain.mjs +10 -1
- package/presets/_shared/ai-local/scripts/verification.mjs +106 -11
- package/presets/_shared/assets/model-tiers.json +6 -0
- package/presets/_shared/core/agent-team/agent-task-metrics.md +10 -2
- package/presets/_shared/core/agent-team/agent-team-intake.md +2 -0
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +5 -5
- package/presets/_shared/core/meta/preset-writing-style.md +8 -0
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +541 -61
- package/presets/_shared/hooks/guard-shell-command.mjs.tmpl +841 -97
- package/presets/_shared/hooks/prompt-autoroute.mjs.tmpl +153 -0
- package/presets/claude/android-kotlin/CLAUDE.md +2 -4
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/android-kotlin/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/android-kotlin/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/android-kotlin/settings.json +15 -5
- package/presets/claude/go/CLAUDE.md +2 -4
- package/presets/claude/go/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/go/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/go/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/go/settings.json +15 -5
- package/presets/claude/ios-swift/CLAUDE.md +2 -4
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/ios-swift/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/ios-swift/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/ios-swift/settings.json +15 -5
- package/presets/claude/java/CLAUDE.md +2 -4
- package/presets/claude/java/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/java/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/java/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/java/settings.json +15 -5
- package/presets/claude/mcp-ts/CLAUDE.md +2 -4
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/mcp-ts/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/mcp-ts/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/mcp-ts/settings.json +15 -5
- package/presets/claude/mol/CLAUDE.md +2 -4
- package/presets/claude/mol/agents/feature-developer.md +1 -1
- package/presets/claude/mol/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/claude/mol/commands/task-evil.md +8 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/mol/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/mol/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/mol/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/mol/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/mol/settings.json +15 -4
- package/presets/claude/next/CLAUDE.md +2 -4
- package/presets/claude/next/REPO_AGENTS.md +2 -0
- package/presets/claude/next/agents/feature-developer.md +1 -1
- package/presets/claude/next/agents/task-analyst.md +1 -7
- package/presets/claude/next/agents/task-router.md +1 -1
- package/presets/claude/next/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/claude/next/commands/spec-start.md +3 -4
- package/presets/claude/next/commands/task-continue.md +9 -8
- package/presets/claude/next/commands/task-evil.md +8 -0
- package/presets/claude/next/commands/task.md +1 -1
- package/presets/claude/next/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/next/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/next/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/next/settings.json +15 -4
- package/presets/claude/next/team/README.md +1 -1
- package/presets/claude/nuxt/CLAUDE.md +2 -4
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/nuxt/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/nuxt/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/nuxt/settings.json +15 -4
- package/presets/claude/php-hexagonal/CLAUDE.md +2 -4
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/php-hexagonal/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/php-hexagonal/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/php-hexagonal/settings.json +15 -5
- package/presets/claude/php-laravel/CLAUDE.md +2 -4
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/php-laravel/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/php-laravel/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/php-laravel/settings.json +15 -5
- package/presets/claude/svelte/CLAUDE.md +2 -4
- package/presets/claude/svelte/hooks/chain-team-phases.sh +541 -61
- package/presets/claude/svelte/hooks/guard-shell-command.mjs +841 -97
- package/presets/claude/svelte/hooks/prompt-autoroute.mjs +153 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +2 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +8 -0
- package/presets/claude/svelte/settings.json +15 -4
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/android-kotlin/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/go/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/go/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/go/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/ios-swift/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/java/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/java/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/java/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/mcp-ts/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/mol/agents/feature-developer.md +1 -1
- package/presets/cursor/mol/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/cursor/mol/commands/task-evil.md +8 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/mol/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/mol/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/mol/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/mol/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/next/REPO_AGENTS.md +2 -0
- package/presets/cursor/next/agents/feature-developer.md +1 -1
- package/presets/cursor/next/agents/task-analyst.md +1 -7
- package/presets/cursor/next/agents/task-router.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/cursor/next/commands/spec-start.md +3 -4
- package/presets/cursor/next/commands/task-continue.md +9 -8
- package/presets/cursor/next/commands/task-evil.md +8 -0
- package/presets/cursor/next/commands/task.md +1 -1
- package/presets/cursor/next/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/next/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/next/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +5 -5
- package/presets/cursor/next/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/next/team/README.md +1 -1
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/nuxt/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/nuxt/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/nuxt/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/php-hexagonal/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/php-laravel/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +8 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +541 -61
- package/presets/cursor/svelte/hooks/guard-shell-command.mjs +841 -97
- package/presets/cursor/svelte/rules/agent-team-intake.mdc +2 -0
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/svelte/rules/preset-writing-style.mdc +8 -0
- package/presets/mavis/android-kotlin/MAVIS.md +1 -1
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +2 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/android-kotlin/rules/preset-writing-style.md +8 -0
- package/presets/mavis/go/MAVIS.md +1 -1
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/go/rules/agent-team-intake.md +2 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/go/rules/preset-writing-style.md +8 -0
- package/presets/mavis/ios-swift/MAVIS.md +1 -1
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +2 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/ios-swift/rules/preset-writing-style.md +8 -0
- package/presets/mavis/java/MAVIS.md +1 -1
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/java/rules/agent-team-intake.md +2 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/java/rules/preset-writing-style.md +8 -0
- package/presets/mavis/mcp-ts/MAVIS.md +1 -1
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +2 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/mcp-ts/rules/preset-writing-style.md +8 -0
- package/presets/mavis/mol/MAVIS.md +1 -1
- package/presets/mavis/mol/adapter-map.json +1 -1
- package/presets/mavis/mol/agents/feature-developer.md +1 -1
- package/presets/mavis/mol/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/mavis/mol/commands/task-evil.md +8 -0
- package/presets/mavis/mol/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/mol/native-skills/task-evil/SKILL.md +8 -0
- package/presets/mavis/mol/rules/agent-team-intake.md +2 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/mol/rules/preset-writing-style.md +8 -0
- package/presets/mavis/next/MAVIS.md +1 -1
- package/presets/mavis/next/REPO_AGENTS.md +2 -0
- package/presets/mavis/next/adapter-map.json +1 -1
- package/presets/mavis/next/agents/feature-developer.md +1 -1
- package/presets/mavis/next/agents/task-analyst.md +1 -7
- package/presets/mavis/next/agents/task-router.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/mavis/next/commands/spec-start.md +3 -4
- package/presets/mavis/next/commands/task-continue.md +9 -8
- package/presets/mavis/next/commands/task-evil.md +8 -0
- package/presets/mavis/next/commands/task.md +1 -1
- package/presets/mavis/next/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/next/native-skills/spec-start/SKILL.md +3 -4
- package/presets/mavis/next/native-skills/task/SKILL.md +1 -1
- package/presets/mavis/next/native-skills/task-continue/SKILL.md +9 -8
- package/presets/mavis/next/native-skills/task-evil/SKILL.md +8 -0
- package/presets/mavis/next/rules/agent-team-intake.md +2 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/next/rules/preset-writing-style.md +8 -0
- package/presets/mavis/next/team/README.md +1 -1
- package/presets/mavis/nuxt/MAVIS.md +1 -1
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/nuxt/rules/agent-team-intake.md +2 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/nuxt/rules/preset-writing-style.md +8 -0
- package/presets/mavis/php-hexagonal/MAVIS.md +1 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +2 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/php-hexagonal/rules/preset-writing-style.md +8 -0
- package/presets/mavis/php-laravel/MAVIS.md +1 -1
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +2 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/php-laravel/rules/preset-writing-style.md +8 -0
- package/presets/mavis/svelte/MAVIS.md +1 -1
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +541 -61
- package/presets/mavis/svelte/rules/agent-team-intake.md +2 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/svelte/rules/preset-writing-style.md +8 -0
- package/presets/opencode/android-kotlin/OPENCODE.md +5 -66
- package/presets/opencode/android-kotlin/adapter-map.json +42 -42
- package/presets/opencode/android-kotlin/agents/accessibility-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/opencode/android-kotlin/agents/ci-investigator.md +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
- package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/opencode/android-kotlin/agents/instrumentation-test-generator.md +1 -1
- package/presets/opencode/android-kotlin/agents/instrumentation-test-healer.md +1 -1
- package/presets/opencode/android-kotlin/agents/instrumentation-test-planner.md +1 -1
- package/presets/opencode/android-kotlin/agents/migration-specialist.md +1 -1
- package/presets/opencode/android-kotlin/agents/mockup-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/openspec-author.md +1 -1
- package/presets/opencode/android-kotlin/agents/performance-auditor.md +1 -1
- package/presets/opencode/android-kotlin/agents/qa-tester.md +1 -1
- package/presets/opencode/android-kotlin/agents/security-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/solution-architect.md +1 -1
- package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/opencode/android-kotlin/agents/task-router.md +1 -1
- package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
- package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
- package/presets/opencode/android-kotlin/agents/unit-test-healer.md +1 -1
- package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
- package/presets/opencode/android-kotlin/commands/task-continue.md +1 -1
- package/presets/opencode/android-kotlin/hooks/README.md +12 -1
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/android-kotlin/hooks/guard-shell-command.mjs +879 -0
- package/presets/opencode/android-kotlin/opencode.json +4 -4
- package/presets/opencode/android-kotlin/plugins/rule-attach/globs.json +167 -0
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +2 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/android-kotlin/rules/preset-writing-style.md +8 -0
- package/presets/opencode/go/OPENCODE.md +5 -51
- package/presets/opencode/go/adapter-map.json +45 -45
- package/presets/opencode/go/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/go/agents/build-verifier.md +1 -1
- package/presets/opencode/go/agents/ci-investigator.md +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +1 -1
- package/presets/opencode/go/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/go/agents/debugger.md +1 -1
- package/presets/opencode/go/agents/feature-developer.md +1 -1
- package/presets/opencode/go/agents/integration-test-generator.md +1 -1
- package/presets/opencode/go/agents/integration-test-healer.md +1 -1
- package/presets/opencode/go/agents/integration-test-planner.md +1 -1
- package/presets/opencode/go/agents/migration-specialist.md +1 -1
- package/presets/opencode/go/agents/openspec-author.md +1 -1
- package/presets/opencode/go/agents/performance-auditor.md +1 -1
- package/presets/opencode/go/agents/qa-tester.md +1 -1
- package/presets/opencode/go/agents/security-reviewer.md +1 -1
- package/presets/opencode/go/agents/solution-architect.md +1 -1
- package/presets/opencode/go/agents/task-analyst.md +1 -1
- package/presets/opencode/go/agents/task-router.md +1 -1
- package/presets/opencode/go/agents/tech-writer.md +1 -1
- package/presets/opencode/go/agents/unit-test-generator.md +1 -1
- package/presets/opencode/go/agents/unit-test-healer.md +1 -1
- package/presets/opencode/go/agents/unit-test-planner.md +1 -1
- package/presets/opencode/go/commands/task-continue.md +1 -1
- package/presets/opencode/go/hooks/README.md +12 -1
- package/presets/opencode/go/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/go/hooks/guard-shell-command.mjs +878 -0
- package/presets/opencode/go/opencode.json +4 -4
- package/presets/opencode/go/plugins/rule-attach/globs.json +198 -0
- package/presets/opencode/go/rules/agent-team-intake.md +2 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/go/rules/preset-writing-style.md +8 -0
- package/presets/opencode/ios-swift/OPENCODE.md +5 -66
- package/presets/opencode/ios-swift/adapter-map.json +41 -41
- package/presets/opencode/ios-swift/agents/accessibility-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/build-verifier.md +1 -1
- package/presets/opencode/ios-swift/agents/ci-investigator.md +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/ios-swift/agents/debugger.md +1 -1
- package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
- package/presets/opencode/ios-swift/agents/migration-specialist.md +1 -1
- package/presets/opencode/ios-swift/agents/mockup-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/openspec-author.md +1 -1
- package/presets/opencode/ios-swift/agents/performance-auditor.md +1 -1
- package/presets/opencode/ios-swift/agents/qa-tester.md +1 -1
- package/presets/opencode/ios-swift/agents/security-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/solution-architect.md +1 -1
- package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
- package/presets/opencode/ios-swift/agents/task-router.md +1 -1
- package/presets/opencode/ios-swift/agents/tech-writer.md +1 -1
- package/presets/opencode/ios-swift/agents/unit-test-generator.md +1 -1
- package/presets/opencode/ios-swift/agents/unit-test-healer.md +1 -1
- package/presets/opencode/ios-swift/agents/unit-test-planner.md +1 -1
- package/presets/opencode/ios-swift/agents/xcuitest-test-generator.md +1 -1
- package/presets/opencode/ios-swift/agents/xcuitest-test-healer.md +1 -1
- package/presets/opencode/ios-swift/agents/xcuitest-test-planner.md +1 -1
- package/presets/opencode/ios-swift/commands/task-continue.md +1 -1
- package/presets/opencode/ios-swift/hooks/README.md +12 -1
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/ios-swift/hooks/guard-shell-command.mjs +878 -0
- package/presets/opencode/ios-swift/opencode.json +4 -4
- package/presets/opencode/ios-swift/plugins/rule-attach/globs.json +160 -0
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +2 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/ios-swift/rules/preset-writing-style.md +8 -0
- package/presets/opencode/java/OPENCODE.md +5 -58
- package/presets/opencode/java/adapter-map.json +45 -45
- package/presets/opencode/java/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/java/agents/build-verifier.md +1 -1
- package/presets/opencode/java/agents/ci-investigator.md +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +1 -1
- package/presets/opencode/java/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/java/agents/debugger.md +1 -1
- package/presets/opencode/java/agents/feature-developer.md +1 -1
- package/presets/opencode/java/agents/integration-test-generator.md +1 -1
- package/presets/opencode/java/agents/integration-test-healer.md +1 -1
- package/presets/opencode/java/agents/integration-test-planner.md +1 -1
- package/presets/opencode/java/agents/migration-specialist.md +1 -1
- package/presets/opencode/java/agents/openspec-author.md +1 -1
- package/presets/opencode/java/agents/performance-auditor.md +1 -1
- package/presets/opencode/java/agents/qa-tester.md +1 -1
- package/presets/opencode/java/agents/security-reviewer.md +1 -1
- package/presets/opencode/java/agents/solution-architect.md +1 -1
- package/presets/opencode/java/agents/task-analyst.md +1 -1
- package/presets/opencode/java/agents/task-router.md +1 -1
- package/presets/opencode/java/agents/tech-writer.md +1 -1
- package/presets/opencode/java/agents/unit-test-generator.md +1 -1
- package/presets/opencode/java/agents/unit-test-healer.md +1 -1
- package/presets/opencode/java/agents/unit-test-planner.md +1 -1
- package/presets/opencode/java/commands/task-continue.md +1 -1
- package/presets/opencode/java/hooks/README.md +12 -1
- package/presets/opencode/java/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/java/hooks/guard-shell-command.mjs +879 -0
- package/presets/opencode/java/opencode.json +4 -4
- package/presets/opencode/java/plugins/rule-attach/globs.json +230 -0
- package/presets/opencode/java/rules/agent-team-intake.md +2 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/java/rules/preset-writing-style.md +8 -0
- package/presets/opencode/mcp-ts/OPENCODE.md +5 -48
- package/presets/opencode/mcp-ts/adapter-map.json +36 -36
- package/presets/opencode/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/opencode/mcp-ts/agents/security-reviewer.md +1 -1
- package/presets/opencode/mcp-ts/agents/solution-architect.md +1 -1
- package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/opencode/mcp-ts/agents/task-router.md +1 -1
- package/presets/opencode/mcp-ts/commands/task-continue.md +1 -1
- package/presets/opencode/mcp-ts/hooks/README.md +12 -1
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/mcp-ts/hooks/guard-shell-command.mjs +878 -0
- package/presets/opencode/mcp-ts/opencode.json +4 -4
- package/presets/opencode/mcp-ts/plugins/rule-attach/globs.json +151 -0
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +2 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/mcp-ts/rules/preset-writing-style.md +8 -0
- package/presets/opencode/mol/OPENCODE.md +5 -56
- package/presets/opencode/mol/adapter-map.json +31 -31
- package/presets/opencode/mol/agents/accessibility-reviewer.md +1 -1
- package/presets/opencode/mol/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/mol/agents/build-verifier.md +1 -1
- package/presets/opencode/mol/agents/ci-investigator.md +1 -1
- package/presets/opencode/mol/agents/code-reviewer.md +1 -1
- package/presets/opencode/mol/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/mol/agents/debugger.md +1 -1
- package/presets/opencode/mol/agents/feature-developer.md +2 -2
- package/presets/opencode/mol/agents/migration-specialist.md +1 -1
- package/presets/opencode/mol/agents/mockup-reviewer.md +1 -1
- package/presets/opencode/mol/agents/openspec-author.md +1 -1
- package/presets/opencode/mol/agents/performance-auditor.md +1 -1
- package/presets/opencode/mol/agents/playwright-test-generator.md +1 -1
- package/presets/opencode/mol/agents/playwright-test-healer.md +1 -1
- package/presets/opencode/mol/agents/playwright-test-planner.md +1 -1
- package/presets/opencode/mol/agents/qa-tester.md +1 -1
- package/presets/opencode/mol/agents/security-reviewer.md +1 -1
- package/presets/opencode/mol/agents/solution-architect.md +1 -1
- package/presets/opencode/mol/agents/task-analyst.md +1 -1
- package/presets/opencode/mol/agents/task-router.md +1 -1
- package/presets/opencode/mol/agents/tech-writer.md +1 -1
- package/presets/opencode/mol/agents/unit-test-generator.md +1 -1
- package/presets/opencode/mol/agents/unit-test-healer.md +1 -1
- package/presets/opencode/mol/agents/unit-test-planner.md +1 -1
- package/presets/opencode/mol/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/opencode/mol/commands/task-continue.md +1 -1
- package/presets/opencode/mol/commands/task-evil.md +8 -0
- package/presets/opencode/mol/hooks/README.md +12 -1
- package/presets/opencode/mol/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/mol/hooks/guard-shell-command.mjs +877 -0
- package/presets/opencode/mol/opencode.json +4 -4
- package/presets/opencode/mol/plugins/rule-attach/globs.json +112 -0
- package/presets/opencode/mol/rules/agent-team-intake.md +2 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/mol/rules/preset-writing-style.md +8 -0
- package/presets/opencode/next/OPENCODE.md +5 -55
- package/presets/opencode/next/REPO_AGENTS.md +2 -0
- package/presets/opencode/next/adapter-map.json +56 -56
- package/presets/opencode/next/agents/accessibility-reviewer.md +1 -1
- package/presets/opencode/next/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/next/agents/build-verifier.md +1 -1
- package/presets/opencode/next/agents/ci-investigator.md +1 -1
- package/presets/opencode/next/agents/code-reviewer.md +1 -1
- package/presets/opencode/next/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/next/agents/debugger.md +1 -1
- package/presets/opencode/next/agents/feature-developer.md +2 -2
- package/presets/opencode/next/agents/migration-specialist.md +1 -1
- package/presets/opencode/next/agents/mockup-reviewer.md +1 -1
- package/presets/opencode/next/agents/openspec-author.md +1 -1
- package/presets/opencode/next/agents/performance-auditor.md +1 -1
- package/presets/opencode/next/agents/playwright-test-generator.md +1 -1
- package/presets/opencode/next/agents/playwright-test-healer.md +1 -1
- package/presets/opencode/next/agents/playwright-test-planner.md +1 -1
- package/presets/opencode/next/agents/qa-tester.md +1 -1
- package/presets/opencode/next/agents/security-reviewer.md +1 -1
- package/presets/opencode/next/agents/solution-architect.md +1 -1
- package/presets/opencode/next/agents/task-analyst.md +2 -8
- package/presets/opencode/next/agents/task-router.md +2 -2
- package/presets/opencode/next/agents/tech-writer.md +1 -1
- package/presets/opencode/next/agents/unit-test-generator.md +1 -1
- package/presets/opencode/next/agents/unit-test-healer.md +1 -1
- package/presets/opencode/next/agents/unit-test-planner.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/opencode/next/commands/spec-start.md +3 -4
- package/presets/opencode/next/commands/task-continue.md +10 -9
- package/presets/opencode/next/commands/task-evil.md +8 -0
- package/presets/opencode/next/commands/task.md +1 -1
- package/presets/opencode/next/hooks/README.md +12 -1
- package/presets/opencode/next/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/next/hooks/guard-shell-command.mjs +877 -0
- package/presets/opencode/next/opencode.json +4 -4
- package/presets/opencode/next/plugins/rule-attach/globs.json +276 -0
- package/presets/opencode/next/rules/agent-team-intake.md +2 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/next/rules/preset-writing-style.md +8 -0
- package/presets/opencode/next/team/README.md +1 -1
- package/presets/opencode/nuxt/OPENCODE.md +5 -54
- package/presets/opencode/nuxt/adapter-map.json +51 -51
- package/presets/opencode/nuxt/agents/accessibility-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/build-verifier.md +1 -1
- package/presets/opencode/nuxt/agents/ci-investigator.md +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/nuxt/agents/debugger.md +1 -1
- package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
- package/presets/opencode/nuxt/agents/migration-specialist.md +1 -1
- package/presets/opencode/nuxt/agents/mockup-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/openspec-author.md +1 -1
- package/presets/opencode/nuxt/agents/performance-auditor.md +1 -1
- package/presets/opencode/nuxt/agents/playwright-test-generator.md +1 -1
- package/presets/opencode/nuxt/agents/playwright-test-healer.md +1 -1
- package/presets/opencode/nuxt/agents/playwright-test-planner.md +1 -1
- package/presets/opencode/nuxt/agents/qa-tester.md +1 -1
- package/presets/opencode/nuxt/agents/security-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/solution-architect.md +1 -1
- package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
- package/presets/opencode/nuxt/agents/task-router.md +1 -1
- package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
- package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
- package/presets/opencode/nuxt/agents/unit-test-healer.md +1 -1
- package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
- package/presets/opencode/nuxt/commands/task-continue.md +1 -1
- package/presets/opencode/nuxt/hooks/README.md +12 -1
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/nuxt/hooks/guard-shell-command.mjs +877 -0
- package/presets/opencode/nuxt/opencode.json +4 -4
- package/presets/opencode/nuxt/plugins/rule-attach/globs.json +266 -0
- package/presets/opencode/nuxt/rules/agent-team-intake.md +2 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/nuxt/rules/preset-writing-style.md +8 -0
- package/presets/opencode/php-hexagonal/OPENCODE.md +5 -60
- package/presets/opencode/php-hexagonal/adapter-map.json +45 -45
- package/presets/opencode/php-hexagonal/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/opencode/php-hexagonal/agents/ci-investigator.md +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
- package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/integration-test-generator.md +1 -1
- package/presets/opencode/php-hexagonal/agents/integration-test-healer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/integration-test-planner.md +1 -1
- package/presets/opencode/php-hexagonal/agents/migration-specialist.md +1 -1
- package/presets/opencode/php-hexagonal/agents/openspec-author.md +1 -1
- package/presets/opencode/php-hexagonal/agents/performance-auditor.md +1 -1
- package/presets/opencode/php-hexagonal/agents/qa-tester.md +1 -1
- package/presets/opencode/php-hexagonal/agents/security-reviewer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/solution-architect.md +1 -1
- package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/opencode/php-hexagonal/agents/task-router.md +1 -1
- package/presets/opencode/php-hexagonal/agents/tech-writer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/unit-test-generator.md +1 -1
- package/presets/opencode/php-hexagonal/agents/unit-test-healer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/unit-test-planner.md +1 -1
- package/presets/opencode/php-hexagonal/commands/task-continue.md +1 -1
- package/presets/opencode/php-hexagonal/hooks/README.md +12 -1
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/php-hexagonal/hooks/guard-shell-command.mjs +879 -0
- package/presets/opencode/php-hexagonal/opencode.json +4 -4
- package/presets/opencode/php-hexagonal/plugins/rule-attach/globs.json +242 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +2 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/php-hexagonal/rules/preset-writing-style.md +8 -0
- package/presets/opencode/php-laravel/OPENCODE.md +5 -60
- package/presets/opencode/php-laravel/adapter-map.json +45 -45
- package/presets/opencode/php-laravel/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/php-laravel/agents/build-verifier.md +1 -1
- package/presets/opencode/php-laravel/agents/ci-investigator.md +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-laravel/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/php-laravel/agents/debugger.md +1 -1
- package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
- package/presets/opencode/php-laravel/agents/integration-test-generator.md +1 -1
- package/presets/opencode/php-laravel/agents/integration-test-healer.md +1 -1
- package/presets/opencode/php-laravel/agents/integration-test-planner.md +1 -1
- package/presets/opencode/php-laravel/agents/migration-specialist.md +1 -1
- package/presets/opencode/php-laravel/agents/openspec-author.md +1 -1
- package/presets/opencode/php-laravel/agents/performance-auditor.md +1 -1
- package/presets/opencode/php-laravel/agents/qa-tester.md +1 -1
- package/presets/opencode/php-laravel/agents/security-reviewer.md +1 -1
- package/presets/opencode/php-laravel/agents/solution-architect.md +1 -1
- package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
- package/presets/opencode/php-laravel/agents/task-router.md +1 -1
- package/presets/opencode/php-laravel/agents/tech-writer.md +1 -1
- package/presets/opencode/php-laravel/agents/unit-test-generator.md +1 -1
- package/presets/opencode/php-laravel/agents/unit-test-healer.md +1 -1
- package/presets/opencode/php-laravel/agents/unit-test-planner.md +1 -1
- package/presets/opencode/php-laravel/commands/task-continue.md +1 -1
- package/presets/opencode/php-laravel/hooks/README.md +12 -1
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/php-laravel/hooks/guard-shell-command.mjs +879 -0
- package/presets/opencode/php-laravel/opencode.json +4 -4
- package/presets/opencode/php-laravel/plugins/rule-attach/globs.json +232 -0
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +2 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/php-laravel/rules/preset-writing-style.md +8 -0
- package/presets/opencode/platform-contract.json +4 -0
- package/presets/opencode/plugins/output-guard/README.md +1 -1
- package/presets/opencode/plugins/output-guard/index.ts +8 -2
- package/presets/opencode/plugins/output-guard/rewrite.ts +37 -0
- package/presets/opencode/plugins/rule-attach/README.md +34 -0
- package/presets/opencode/plugins/rule-attach/attach.ts +224 -0
- package/presets/opencode/plugins/rule-attach/index.ts +169 -0
- package/presets/opencode/plugins/rule-attach/package.json +9 -0
- package/presets/opencode/plugins/settings-guard/README.md +25 -0
- package/presets/opencode/plugins/settings-guard/index.ts +114 -0
- package/presets/opencode/plugins/settings-guard/package.json +9 -0
- package/presets/opencode/plugins/settings-guard/policy.mjs +85 -0
- package/presets/opencode/plugins/settings-guard/prompt-face.mjs +153 -0
- package/presets/opencode/plugins/task-status/README.md +9 -4
- package/presets/opencode/plugins/task-status/eta.ts +20 -7
- package/presets/opencode/plugins/task-status/index.ts +14 -1
- package/presets/opencode/plugins/task-status/task-view.ts +160 -5
- package/presets/opencode/plugins/task-status/timing.ts +244 -0
- package/presets/opencode/plugins/task-status/types.ts +6 -0
- package/presets/opencode/svelte/OPENCODE.md +5 -54
- package/presets/opencode/svelte/adapter-map.json +51 -51
- package/presets/opencode/svelte/agents/accessibility-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/api-contract-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/build-verifier.md +1 -1
- package/presets/opencode/svelte/agents/ci-investigator.md +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/codebase-analyzer.md +1 -1
- package/presets/opencode/svelte/agents/debugger.md +1 -1
- package/presets/opencode/svelte/agents/feature-developer.md +1 -1
- package/presets/opencode/svelte/agents/migration-specialist.md +1 -1
- package/presets/opencode/svelte/agents/mockup-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/openspec-author.md +1 -1
- package/presets/opencode/svelte/agents/performance-auditor.md +1 -1
- package/presets/opencode/svelte/agents/playwright-test-generator.md +1 -1
- package/presets/opencode/svelte/agents/playwright-test-healer.md +1 -1
- package/presets/opencode/svelte/agents/playwright-test-planner.md +1 -1
- package/presets/opencode/svelte/agents/qa-tester.md +1 -1
- package/presets/opencode/svelte/agents/security-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/solution-architect.md +1 -1
- package/presets/opencode/svelte/agents/task-analyst.md +1 -1
- package/presets/opencode/svelte/agents/task-router.md +1 -1
- package/presets/opencode/svelte/agents/tech-writer.md +1 -1
- package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
- package/presets/opencode/svelte/agents/unit-test-healer.md +1 -1
- package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
- package/presets/opencode/svelte/commands/task-continue.md +1 -1
- package/presets/opencode/svelte/hooks/README.md +12 -1
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +541 -61
- package/presets/opencode/svelte/hooks/guard-shell-command.mjs +877 -0
- package/presets/opencode/svelte/opencode.json +4 -4
- package/presets/opencode/svelte/plugins/rule-attach/globs.json +245 -0
- package/presets/opencode/svelte/rules/agent-team-intake.md +2 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +7 -7
- package/presets/opencode/svelte/rules/preset-writing-style.md +8 -0
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/android-kotlin/rules/agent-team-intake.md +2 -0
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/android-kotlin/rules/preset-writing-style.md +8 -0
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/go/rules/agent-team-intake.md +2 -0
- package/presets/zcode/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/go/rules/preset-writing-style.md +8 -0
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/ios-swift/rules/agent-team-intake.md +2 -0
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/ios-swift/rules/preset-writing-style.md +8 -0
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/java/rules/agent-team-intake.md +2 -0
- package/presets/zcode/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/java/rules/preset-writing-style.md +8 -0
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/mcp-ts/rules/agent-team-intake.md +2 -0
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/mcp-ts/rules/preset-writing-style.md +8 -0
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/agents/feature-developer.md +1 -1
- package/presets/zcode/mol/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/zcode/mol/commands/task-evil.md +8 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/mol/rules/agent-team-intake.md +2 -0
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/mol/rules/preset-writing-style.md +8 -0
- package/presets/zcode/next/REPO_AGENTS.md +2 -0
- package/presets/zcode/next/adapter-map.json +1 -1
- package/presets/zcode/next/agents/feature-developer.md +1 -1
- package/presets/zcode/next/agents/task-analyst.md +1 -7
- package/presets/zcode/next/agents/task-router.md +1 -1
- package/presets/zcode/next/ai-local/rules-library/commit-hygiene.md +1 -1
- package/presets/zcode/next/commands/spec-start.md +3 -4
- package/presets/zcode/next/commands/task-continue.md +9 -8
- package/presets/zcode/next/commands/task-evil.md +8 -0
- package/presets/zcode/next/commands/task.md +1 -1
- package/presets/zcode/next/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/next/rules/agent-team-intake.md +2 -0
- package/presets/zcode/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/next/rules/preset-writing-style.md +8 -0
- package/presets/zcode/next/team/README.md +1 -1
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/nuxt/rules/agent-team-intake.md +2 -0
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/nuxt/rules/preset-writing-style.md +8 -0
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/php-hexagonal/rules/agent-team-intake.md +2 -0
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/php-hexagonal/rules/preset-writing-style.md +8 -0
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/php-laravel/rules/agent-team-intake.md +2 -0
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/php-laravel/rules/preset-writing-style.md +8 -0
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +541 -61
- package/presets/zcode/svelte/rules/agent-team-intake.md +2 -0
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/svelte/rules/preset-writing-style.md +8 -0
- package/scripts/report-context-cost.mjs +1 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.90
|
|
4
|
+
|
|
5
|
+
Records the package commits after `## 0.2.89`: `59b43f32` (per-task worktree), `902fcb33` (OpenCode settings guard), `989ae95e` (attempt time split and session leases).
|
|
6
|
+
|
|
7
|
+
### Per-task git worktree
|
|
8
|
+
|
|
9
|
+
- **`task-worktree.mjs`.** `create <slug>`, `list`, and `remove <slug>` join `ENGINE_SCRIPTS` and are mirrored to `.ai.local/scripts/`. `create` checks the slug, refuses a missing task, an existing `.ai.local/worktrees/<slug>` directory, or an existing `task/<slug>` branch, then runs `git worktree add` from the repo root. It copies `scripts/`, `rules/`, `conventions.md`, and `.env` read-only and best-effort symlinks `.ai.local/team` at the main store. A refused symlink warns and leaves env-only binding. The activation line is `AI_RULES_TEAM_ROOT=<abs main team root>`. A complete pair is a no-op success. Git failures are printed verbatim and left for `git worktree prune`.
|
|
10
|
+
- **`list` and `remove`.** `list` prints slug, branch, path, live or terminal state from the main store, and the resolved store. `remove` refuses a live slug and an unmerged branch. `--force` says it is deleting the unmerged branch (`git branch -D`). An already-removed pair exits 0.
|
|
11
|
+
- **One store.** The chain hook `TEAM_ROOT`, `team-db-schema.mjs` `resolveTeamRoot`, and `check-preset-delta.mjs` baseline resolution read `AI_RULES_TEAM_ROOT` before the cwd or script-dir default. `AI_RULES_TEAM_DB_ROOT` stays the legacy fallback. There is no `AI_RULES_REPO_ROOT`. The scheduler and `apps/team-tasks-ui` are unchanged.
|
|
12
|
+
- **Ignore.** The seeded `.ai.local/.gitignore` and this repo's copy gain `worktrees/`.
|
|
13
|
+
|
|
14
|
+
### OpenCode applies `.ai.local/.env` from a plugin
|
|
15
|
+
|
|
16
|
+
- **Settings guard.** `.opencode/plugins/settings-guard/` is the enforcement layer. It calls `evaluate` from `guard-shell-command.mjs` on `ctx.permission.hook("evaluate")` and, when that hook is absent, on `ctx.tool.hook("execute.before")`. `opencode.json` `permission.bash` stays the static floor. A configured `deny` (the `task-evil` agent) never reaches the plugin. The unregistered CLI file is not the enforcement path.
|
|
17
|
+
- **Git writes.** An `allow` on a plain `git commit` / `git push` lifts the static ask. An `ask` keeps the prompt; on a host with no permission hook the tool hook throws, so the command does not run. `false`, a missing file, and a broken file stay `ask`. Destructive, alias, and indirect shapes stay `ask`.
|
|
18
|
+
- **Autoroute.** The plugin's `prompt` hook appends the same directive as Claude's `UserPromptSubmit` when `AI_RULES_AUTOROUTE_UNCHAINED_PROMPTS` is `true` and the live-slug count is below `AI_RULES_MAX_PARALLEL_TASKS`. `generate-opencode` rewrites `prompt-face.mjs` from the prompt-autoroute template. Cursor, Mavis, and ZCode still follow the entry-prose check.
|
|
19
|
+
- **Boolean spelling.** `settings.mjs` treats `false` and `0` as silent off. Quoted `"true"`, an `export` prefix, a trailing comment, and every other value warn and stay `false`. `.env.example` names the OpenCode plugin, the integer cap, and which hosts have a prompt hook. `test-settings-guard.mjs` covers the plugin.
|
|
20
|
+
|
|
21
|
+
### Attempt time splits into work, gate, pause, sleep, and idle
|
|
22
|
+
|
|
23
|
+
- **`attempt_finished` carries the split.** The chain hook writes `durationMs` / `wallMs`, `activeMs`, and `idleMs`. Active time is wall time minus proven non-work (a human gate, an operator pause, a host suspension in `<slug>/.suspend.jsonl`), capped by `AI_RULES_ATTEMPT_MAX_MS` (default 4h, floor 10 minutes). `idleMs` is the remainder, so wall = active + idle. A live `STOP` sentinel is charged from its mtime, before `task_paused` is written.
|
|
24
|
+
- **Pause is a ledger interval.** One `task_paused` per engagement and one `task_resumed` when the sentinel is gone. A second pause while one is open is not recorded.
|
|
25
|
+
- **Sidebar.** The OpenCode task-status `time` row reads `work` / `gate` / `paused` / `sleep` / `idle`. A zero bucket is hidden. Older ledgers without `activeMs` use `durationMs` capped at 4h. A parallel wave reads `N agents` and clocks from the oldest start. The plugin appends `.suspend.jsonl` when the wall clock outruns a monotonic clock by more than 60s; a suspend while OpenCode is closed stays in `idle`. ETA samples use `activeMs` and skip `stale` / `unknown` closes.
|
|
26
|
+
- **Session lease.** Slug resolution is `TEAM_TASK_SLUG`, then `.ai.local/team/.session-leases/<session>.json` (7-day mtime TTL), then `active-task.json`. Only an explicit env slug writes the lease from the hook. The task-status plugin writes the same file when it pins a tab and sets `AI_RULES_SESSION_ID` and `OPENCODE_SESSION_ID` on `shell.env`, so a later hook call in that tab resolves the pin when `TEAM_TASK_SLUG` is omitted. With more than one live slug the pointer fallback still refuses. `aggregate-agent-task-metrics.mjs` averages `activeMs` (legacy rows capped at 4h), reports `pausedMs`, and puts the unattributed remainder in `idleMs`. `longestAttemptMs` stays wall clock.
|
|
27
|
+
|
|
28
|
+
## 0.2.89
|
|
29
|
+
|
|
30
|
+
Records commit `a3e7751c`, the parallel-slug tree that landed after `## 0.2.88`.
|
|
31
|
+
|
|
32
|
+
### Parallel `/task` slugs: the pointer becomes a projection, autoroute learns a cap
|
|
33
|
+
|
|
34
|
+
- **`active-task.json` is a UI projection, not a routing pointer.** The schema is `{"schemaVersion": 1, "slugs": [...], "updatedAt"}` — sorted live slugs only, rebuilt atomically by `team-db sync` (both `--slug` and full) and refreshed by `team-db delete`; the only writer. Readers accept the legacy `{"slug"}` shape forever; an old hook reading the new shape degrades to the same no-op as a missing file. `/task`, `/task-continue`, `/spec-start`, `/task-evil`, task-router, and task-analyst no longer write it.
|
|
35
|
+
- **Slug routing binds to `TEAM_TASK_SLUG`.** The chain hook postflight (team-db projection, dev-server cleanup, self-learning ratchet) resolves the env slug first (grammar-validated, so `tasks/<slug>` cannot escape the tree); the pointer is a last resort that is skipped — loudly for the projection (`WARNING: pointer-resolved projection skipped; N live slugs`), silently for the ratchet — when any other live slug exists. Dev-server cleanup no longer falls back to the pointer at all.
|
|
36
|
+
- **The pointer fallback refuses under ambiguity.** When the slug resolved from `active-task.json` and at least one other slug is live (`status.json` state not in `completed`/`blocked`/`changes_requested`/`validation_failed`), the hook answers `{"ok":false,"reason":"active-task-pointer-ambiguous","slug",...}` with a stderr `ERROR:` line and exit 0 — the hook's refusal convention — so the caller re-runs with `TEAM_TASK_SLUG=<slug>`. With exactly one live slug the old warning-only behaviour is unchanged.
|
|
37
|
+
- **Autoroute wraps in parallel, bounded.** `prompt-autoroute` replaced the single-pointer `liveSlug()` with a `liveSlugs()` scan over `tasks/*/status.json` and wraps while the count is below `AI_RULES_MAX_PARALLEL_TASKS` — a new `settings.mjs` key (`get` prints the number): default `4`, non-numeric values warn and fall back to `4`, `0` = unlimited. The intake rule text carries the same predicate plus the new-vs-continue disambiguation (a named slug or a resume intent routes to `/task-continue <slug>` regardless of the cap); the orchestrator rule makes `TEAM_TASK_SLUG` on every hook call a MUST.
|
|
38
|
+
- **Delete guard per slug.** `team-db delete` refuses `E_ACTIVE_TASK` (same exit 1, same `details.activeSlug` in the API) when the *requested* slug's own `status.json` is non-terminal — no pointer involved — and `check-task-repositories` excludes every live slug from the audit (`excluding live: a, b` in the OK line), not just the pointer-named one.
|
|
39
|
+
- **Gate evidence is scoped to the task.** `worktreeHash` is renamed `environmentHash` (whole-tree capture, diagnostic only). New fields `scopeHash`, `scopePaths`, and `scopeBasis` (`write-scope` | `whole-tree` | `none`) bind freshness to the union of the task's `.write-scope` step baselines. Basis `none` (no baseline and more than one live slug) reports `scope-unbound` and is not fresh. Snapshots recorded before the rename still compare through `worktreeHash`. A file created after baseline activation outside the claimed path set stays invisible to `scopeHash`; the write-scope audit still attributes it at gate time.
|
|
40
|
+
- **A baseline-less gate list errors in parallel mode.** `yarn check:task <slug>` with no `.write-scope` baseline and more than one live slug exits 2 and writes `E_NO_TASK_BASELINE`, naming `yarn check:task <slug> --save-baseline`. At most one live slug keeps the warning and the repo-wide diff.
|
|
41
|
+
- **Resume is scoped to one slug.** `/task-continue <slug>` removes only `.ai.local/team/tasks/<slug>/STOP`. `/task-continue --all` removes `.ai.local/STOP`, `.ai.local/ESTOP`, and every per-slug `STOP`, appending one `.memlog.md` line per slug. The hook's sentinel reader is unchanged.
|
|
42
|
+
- **Repo-global locks queue instead of colliding.** `ensureWal` runs after migrations, outside any transaction, so an existing `team.db` reaches `journal_mode=WAL` on the next writable open without a table rewrite; `SQLITE_BUSY` retries once, then one `E_WAL_DEFERRED` line, and the next open retries. `check` prints `journalMode`. `AI_RULES_TEAM_DB_BUSY_MS` sets `busy_timeout` (integer milliseconds, default `5000`; an invalid value warns once and uses the default). The tracker drain returns before the lock when the queue directory is empty. `yarn fix:generated` waits 30000 ms when neither `--wait` nor `AI_RULES_LOCK_WAIT_MS` is set; `run-locked.mjs` and the shell gates stay fail-fast. `start` / `run` / `acquire --task <slug>` record `leases/<name>#<slug>.json`; `stop` / `list --name X` match `X.json` and every `X#*.json`; `stop --task` stays a tag filter. `run.mjs` holds one fail-fast `.self-learning.lock` across derive → append → improve and prints the existing skip line when the lock is held.
|
|
43
|
+
|
|
44
|
+
## 0.2.88
|
|
45
|
+
|
|
46
|
+
### Env settings, the shell-command guard, and prompt autoroute
|
|
47
|
+
|
|
48
|
+
Documents the package commits already on `HEAD` after `## 0.2.87` (`bc10f528`, `a5334707`). The parallel-slug work stays under `## Unreleased` until that tree is committed.
|
|
49
|
+
|
|
50
|
+
- **Settings module.** `AI_RULES_*` keys are read through `settings.mjs`; `.env.example` lists them. The shell-command guard and `prompt-autoroute` ship in the hook templates.
|
|
51
|
+
- **Writing style.** The preset-writing-style shell-guard section is in the shared core and the generated platform copies.
|
|
52
|
+
|
|
53
|
+
## 0.2.87
|
|
54
|
+
|
|
55
|
+
### OpenCode attaches each stack's globs, and step cost stops double-counting
|
|
56
|
+
|
|
57
|
+
- **Per-stack rule catalog.** `rule-attach` `globs.json` is generated from that stack's Cursor frontmatter and installed ahead of the shared plugin tree. A Go test file matches `**/*_test.go`, not the Next unit-test glob.
|
|
58
|
+
- **Shell path tokens.** A `bash` / `shell` / `sh` command contributes path tokens. The command is not executed. A quoted sentence with spaces is not a path, and neither is `NAME=$var`.
|
|
59
|
+
- **Step cost.** Attempt windows are clipped at the next later start. Attempts that share a start (a parallel step or a ready wave) are one phase, so the row is counted once. Rows with no dedupe id stay in `unattributed` and in the totals for the host window; a session lease moves them to `excluded`. A chain invocation is a shell token that runs `chain-team-phases.sh`. When a session lease names the task, other sessions are excluded; otherwise the report says the window is the host ledger. The text table shows the attempt id.
|
|
60
|
+
- **Unfilled tier template.** An OpenCode install still seeds an empty `model-tiers.json`. While `tiers` and `approvedBy` are empty, the session model applies. After the map is approved, a declared tier with no mapping still stops with `model-tier-unmapped`.
|
|
61
|
+
- **Tooling tier.** `yarn test:tooling` lists 85 suites. The four added rows are rule-attach, the OpenCode text contract, the model-tiers seed, and the step-cost report. `release-gate` phase 2 names that count.
|
|
62
|
+
|
|
3
63
|
## 0.2.86
|
|
4
64
|
|
|
5
65
|
### Project entity: registry, migration 0011, seven routes, derived task attribution
|
package/README.md
CHANGED
|
@@ -25,13 +25,21 @@ 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; thirty published scripts — the six self-learning engine modules, `manifest.mjs`, `dump-output.mjs`, `run-compact.mjs`, the eight `team-db*.mjs` modules, `action-signals.mjs`, `actions-report.mjs`, `check-write-scope.mjs`, `aggregate-agent-task-metrics.mjs`, `record-usage.mjs`, `verification.mjs`, `check-verification.mjs`, `incidents.mjs`, `processes.mjs`, `process-lease.mjs`, `rr-scheduler-start.mjs`, `rr-migrate-repositories.mjs`,
|
|
28
|
+
| Self-learning engine | **`.ai.local/scripts/`** (shared; thirty-four published scripts — the six self-learning engine modules, `manifest.mjs`, `dump-output.mjs`, `run-compact.mjs`, the eight `team-db*.mjs` modules, `action-signals.mjs`, `actions-report.mjs`, `check-write-scope.mjs`, `aggregate-agent-task-metrics.mjs`, `record-usage.mjs`, `verification.mjs`, `check-verification.mjs`, `incidents.mjs`, `processes.mjs`, `process-lease.mjs`, `rr-scheduler-start.mjs`, `rr-migrate-repositories.mjs`, `tracker-planned-drain.mjs`, and `task-worktree.mjs`; existing files never overwritten. The repository-only `upstream-research.mjs` is not published) | | | |
|
|
29
29
|
| Specs seed | `docs/specs/` copied only if the directory is **absent** | | | |
|
|
30
30
|
|
|
31
31
|
OpenCode also ships **`.opencode/plugins/task-status/`**, a TUI sidebar for the active `/task` run (slug, state, elapsed time, step, remaining-time estimate, soft-stop). OpenCode auto-loads it; it needs no `opencode.json` entry, is refreshed by `update`, and is a viewer only — the chain hook stays manual.
|
|
32
32
|
|
|
33
33
|
**`.opencode/plugins/output-guard/`** is the server counterpart: a `tool-result` over 8 KB is stored under `.ai.local/team/output-guard/` and replaced with a bounded head + tail, the path, and one `grep` hint. It registers `ctx.session.hook("context")`, so it works for a prompt without `/task`; `AI_RULES_OUTPUT_GUARD=0` disables it and a host without the hook no-ops. It is a token-economy mechanism, not a security boundary. Measure it with `yarn report:efficiency` (text/JSON/HTML) and `yarn bench:efficiency --model <provider/model> --runs 5` (A/B with a deterministic oracle); a byte saving is never reported as a token saving.
|
|
34
34
|
|
|
35
|
+
**Parallel `/task` slugs.** Several tasks can be live in one repo. `.ai.local/team/active-task.json` is no longer a routing pointer: it is a UI projection of the live slugs — `{"schemaVersion": 1, "slugs": [...], "updatedAt"}`, rebuilt atomically by `team-db sync` (and refreshed by `team-db delete`); readers accept the legacy `{"slug"}` shape forever, and nothing but the projection writes the file. Hooks take the slug from `TEAM_TASK_SLUG` (the orchestrator passes it on every hook call); the pointer fallback refuses with `ok:false` / `active-task-pointer-ambiguous` when more than one slug is live, so an omitted env can never act on the wrong task. The Claude autoroute prompt face wraps unchained prompts while the live-slug count is below `AI_RULES_MAX_PARALLEL_TASKS` (read through `node .ai.local/scripts/settings.mjs get AI_RULES_MAX_PARALLEL_TASKS`; default `4`, `0` = unlimited); a prompt that names an existing slug or is a resume intent routes to `/task-continue <slug>` regardless of the cap.
|
|
36
|
+
|
|
37
|
+
Gate evidence is scoped to the task. `gitSnapshot()` keeps `environmentHash` as the whole-tree capture (diagnostic only) and adds `scopeHash`, `scopePaths`, and `scopeBasis` (`write-scope` when `.ai.local/team/.write-scope/<slug>/` baselines exist, `whole-tree` when none exist and at most one slug is live, `none` otherwise). Freshness binds to `scopeHash` on a `write-scope` basis; basis `none` is not fresh (`scope-unbound`). `yarn check:task <slug>` with no baseline and more than one live slug exits 2 with `E_NO_TASK_BASELINE` and names `yarn check:task <slug> --save-baseline`; a solo tree keeps today's warning and the repo-wide diff. `/task-continue <slug>` removes only `.ai.local/team/tasks/<slug>/STOP`. `/task-continue --all` is the repo-level resume: it removes `.ai.local/STOP`, `.ai.local/ESTOP`, and every per-slug `STOP`, with one `.memlog.md` line per slug.
|
|
38
|
+
|
|
39
|
+
A task can run in its own git worktree without a second team store. `node .ai.local/scripts/task-worktree.mjs create <slug>` (also `list`, `remove <slug> [--force]`) adds `.ai.local/worktrees/<slug>` on branch `task/<slug>`, copies `scripts/`, `rules/`, `conventions.md`, and `.env` read-only, and best-effort symlinks `.ai.local/team` at the main store. A refused symlink warns and leaves env-only binding. The activation line is `AI_RULES_TEAM_ROOT=<abs main team root>`; the chain hook, `team-db` open, and `check-preset-delta` read that name before the cwd default (`AI_RULES_TEAM_DB_ROOT` stays the legacy fallback). `list` shows slug, branch, path, live or terminal state, and the resolved store. `remove` refuses a live slug and an unmerged branch; `--force` says it is deleting that branch. Re-creating a complete pair and removing an already-removed pair both exit 0. Git failures are printed verbatim and left for `git worktree prune`. Hold create through `processes.mjs run --name worktree --task <slug> --`. The scheduler stays in the main checkout. `.ai.local/.gitignore` ignores `worktrees/`.
|
|
40
|
+
|
|
41
|
+
Repo-global locks queue instead of colliding. An existing `team.db` switches to `journal_mode=WAL` on the next writable open (`ensureWal` after migrations, outside any transaction; a contended switch retries once on `SQLITE_BUSY`, logs one `E_WAL_DEFERRED` line, and the next open retries). `AI_RULES_TEAM_DB_BUSY_MS` is the connection `busy_timeout` in milliseconds (integer, default `5000`; an invalid value warns once and uses the default). `yarn fix:generated` waits up to 30000 ms for the preset-tree lock when neither `--wait` nor `AI_RULES_LOCK_WAIT_MS` is set (`--wait` wins over the env, and `0` stays fail-fast); `run-locked.mjs` and the shell gates stay fail-fast. `processes.mjs start`, `run`, and `acquire` with `--task <slug>` hold `leases/<name>#<slug>.json` (the JSON `name` stays `<name>`, `owner.task` stays the slug), so two tasks can hold `dev-server#a` and `dev-server#b`. `stop` and `list --name <name>` match `<name>.json` and every `<name>#*.json`. `stop --task <slug>` stays a tag filter.
|
|
42
|
+
|
|
35
43
|
### Project MCP catalog
|
|
36
44
|
|
|
37
45
|
`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.
|
|
@@ -76,6 +76,10 @@ const ENGINE_SCRIPTS = [
|
|
|
76
76
|
// of the self-learning loop modules.
|
|
77
77
|
'process-lease.mjs',
|
|
78
78
|
'processes.mjs',
|
|
79
|
+
// Per-task git worktree: `create` / `list` / `remove`. Seeds the worktree
|
|
80
|
+
// `.ai.local` and prints `AI_RULES_TEAM_ROOT` for the one main store. Shells
|
|
81
|
+
// out to git, so it is not part of the self-learning loop modules.
|
|
82
|
+
'task-worktree.mjs',
|
|
79
83
|
// `/rr-scheduler-start`: stop a recorded scheduler, then start
|
|
80
84
|
// `team-db.mjs schedule` through the process manager.
|
|
81
85
|
'rr-scheduler-start.mjs',
|
|
@@ -97,6 +101,13 @@ const ENGINE_SCRIPTS = [
|
|
|
97
101
|
'check-verification.mjs',
|
|
98
102
|
// Append-only incident registry: recurrence threshold, promotion gate, advice.
|
|
99
103
|
'incidents.mjs',
|
|
104
|
+
// Per-phase step cost for one task: turns, calls by tool and chain
|
|
105
|
+
// invocations, grouped by the attempt windows `metrics.json` records. Reads
|
|
106
|
+
// the output-guard ledgers and writes nothing, so it ships with the engine.
|
|
107
|
+
'report-step-cost.mjs',
|
|
108
|
+
// The only reader of `.ai.local/.env` (`get <key>` / `list [--json]`). A hook
|
|
109
|
+
// imports it through an injected resolver; a broken file resolves to `false`.
|
|
110
|
+
'settings.mjs',
|
|
100
111
|
];
|
|
101
112
|
|
|
102
113
|
/** Package `presets/`-relative directory holding the engine source of truth. */
|
|
@@ -55,8 +55,13 @@ const AI_LOCAL_GITIGNORE = [
|
|
|
55
55
|
'.ui/',
|
|
56
56
|
'# Dev-server lifecycle markers (`.ai.local/.dev/<name>.json`); local runtime state, never commit.',
|
|
57
57
|
'.dev/',
|
|
58
|
+
'# Per-machine settings. A committed `true` enables git writes on every clone.',
|
|
59
|
+
'# `.env.example` stays tracked. Remove this line to opt in to committing `.env`.',
|
|
60
|
+
'.env',
|
|
58
61
|
// Process leases, their event log, and captured logs; local runtime state.
|
|
59
62
|
'.processes/',
|
|
63
|
+
'# Per-task git worktrees; local checkouts, never commit.',
|
|
64
|
+
'worktrees/',
|
|
60
65
|
'',
|
|
61
66
|
].join('\n');
|
|
62
67
|
const POINTER_README = `# Agent team artifacts moved
|
|
@@ -422,6 +427,36 @@ function copyTemplates(presetTeamSrc, dest) {
|
|
|
422
427
|
return written;
|
|
423
428
|
}
|
|
424
429
|
|
|
430
|
+
/** The shared-asset tier map an OpenCode install seeds; other platforms pin in frontmatter. */
|
|
431
|
+
function modelTiersTemplate(presetTeamSrc) {
|
|
432
|
+
return path.resolve(path.dirname(presetTeamSrc), '..', '..', '_shared', 'assets', 'model-tiers.json');
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Seed `.ai.local/team/model-tiers.json` for an OpenCode install, absent-only.
|
|
437
|
+
*
|
|
438
|
+
* The map names provider model ids only the consumer can approve, so this is
|
|
439
|
+
* the same contract as the research data beside it: a re-init never rewrites a
|
|
440
|
+
* file the consumer has filled in.
|
|
441
|
+
*
|
|
442
|
+
* @returns {string | null} the rel this call wrote
|
|
443
|
+
*/
|
|
444
|
+
function seedModelTiers(presetTeamSrc, dest, source) {
|
|
445
|
+
if (!presetTeamSrc || typeof source !== 'string' || !source.startsWith('opencode/')) {
|
|
446
|
+
return null;
|
|
447
|
+
}
|
|
448
|
+
const template = modelTiersTemplate(presetTeamSrc);
|
|
449
|
+
if (!fs.existsSync(template)) {
|
|
450
|
+
return null;
|
|
451
|
+
}
|
|
452
|
+
const target = path.join(dest, 'model-tiers.json');
|
|
453
|
+
if (fs.existsSync(target)) {
|
|
454
|
+
return null;
|
|
455
|
+
}
|
|
456
|
+
copyFile(template, target);
|
|
457
|
+
return '.ai.local/team/model-tiers.json';
|
|
458
|
+
}
|
|
459
|
+
|
|
425
460
|
/**
|
|
426
461
|
* Seed `.ai.local/conventions.md` (the living-conventions file the overlay probes)
|
|
427
462
|
* from the preset template. Never overwrites an existing consumer file.
|
|
@@ -445,6 +480,38 @@ function seedConventions(presetTeamSrc, cwd) {
|
|
|
445
480
|
return '.ai.local/conventions.md';
|
|
446
481
|
}
|
|
447
482
|
|
|
483
|
+
/**
|
|
484
|
+
* `<presets>/_shared/ai-local` for a `<presets>/<platform>/<stack>/team` source.
|
|
485
|
+
* The settings template and the engine scripts are shared across platforms, so
|
|
486
|
+
* they are read from `_shared/` rather than the per-stack `ai-local/` tree.
|
|
487
|
+
*/
|
|
488
|
+
function sharedAiLocalDir(presetTeamSrc) {
|
|
489
|
+
return path.join(path.resolve(presetTeamSrc, '..', '..', '..'), '_shared', 'ai-local');
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Seed `.ai.local/.env.example` from the shared preset template. Never
|
|
494
|
+
* overwrites an existing consumer file and never creates `.ai.local/.env`.
|
|
495
|
+
*
|
|
496
|
+
* @returns {string | null} the rel this call wrote
|
|
497
|
+
*/
|
|
498
|
+
function seedSettings(presetTeamSrc, cwd) {
|
|
499
|
+
if (!presetTeamSrc) {
|
|
500
|
+
return null;
|
|
501
|
+
}
|
|
502
|
+
const template = path.join(sharedAiLocalDir(presetTeamSrc), 'env.example');
|
|
503
|
+
if (!fs.existsSync(template)) {
|
|
504
|
+
return null;
|
|
505
|
+
}
|
|
506
|
+
const dest = path.join(cwd, '.ai.local', '.env.example');
|
|
507
|
+
if (fs.existsSync(dest)) {
|
|
508
|
+
return null;
|
|
509
|
+
}
|
|
510
|
+
copyFile(template, dest);
|
|
511
|
+
console.log('Seeded .ai.local/.env.example');
|
|
512
|
+
return '.ai.local/.env.example';
|
|
513
|
+
}
|
|
514
|
+
|
|
448
515
|
/**
|
|
449
516
|
* Seed `.ai.local/rules-library/` from `presets/<opt>/<stack>/ai-local/rules-library/`.
|
|
450
517
|
* Opt-in discipline rules the consumer enables by moving a file into
|
|
@@ -704,7 +771,7 @@ function migrateLegacyTeams(cwd, dest) {
|
|
|
704
771
|
*
|
|
705
772
|
* @returns {Map<string, Buffer>} rel → template bytes
|
|
706
773
|
*/
|
|
707
|
-
function templateEntries(presetTeamSrc) {
|
|
774
|
+
function templateEntries(presetTeamSrc, source) {
|
|
708
775
|
const out = new Map();
|
|
709
776
|
const addFile = (rel, abs) => {
|
|
710
777
|
let stat;
|
|
@@ -740,6 +807,7 @@ function templateEntries(presetTeamSrc) {
|
|
|
740
807
|
const presetBase = path.dirname(presetTeamSrc);
|
|
741
808
|
const libraryDir = path.join(presetBase, 'ai-local', 'rules-library');
|
|
742
809
|
addFile('.ai.local/conventions.md', path.join(presetBase, 'ai-local', 'conventions.md'));
|
|
810
|
+
addFile('.ai.local/.env.example', path.join(sharedAiLocalDir(presetTeamSrc), 'env.example'));
|
|
743
811
|
addDir('.ai.local/rules-library/', libraryDir, (name) => name.endsWith('.md'));
|
|
744
812
|
// The activation seed is a template byte too: `activateRouterPagesSeed` copies it
|
|
745
813
|
// into `rules/` when the repo shape matches, and an active copy shipped by the
|
|
@@ -752,6 +820,11 @@ function templateEntries(presetTeamSrc) {
|
|
|
752
820
|
addFile(`.ai.local/scripts/${name}`, path.join(engineDir, name));
|
|
753
821
|
}
|
|
754
822
|
}
|
|
823
|
+
// OpenCode resolves a tier through the map; the file is a template byte there
|
|
824
|
+
// so a consumer edit reports drift instead of being rewritten by a re-init.
|
|
825
|
+
if (typeof source === 'string' && source.startsWith('opencode/')) {
|
|
826
|
+
addFile('.ai.local/team/model-tiers.json', modelTiersTemplate(presetTeamSrc));
|
|
827
|
+
}
|
|
755
828
|
out.set('.ai.local/.gitignore', Buffer.from(AI_LOCAL_GITIGNORE));
|
|
756
829
|
return out;
|
|
757
830
|
}
|
|
@@ -817,7 +890,9 @@ function seedAiLocalTeam({ cwd, presetTeamSrc, source, packageVersion, mergeAiLo
|
|
|
817
890
|
];
|
|
818
891
|
const migrated = migrateLegacyTeams(cwd, dest);
|
|
819
892
|
const templateWritten = copyTemplates(presetTeamSrc, dest);
|
|
893
|
+
const modelTiersRel = seedModelTiers(presetTeamSrc, dest, source);
|
|
820
894
|
const conventionsRel = seedConventions(presetTeamSrc, cwd);
|
|
895
|
+
const settingsRel = seedSettings(presetTeamSrc, cwd);
|
|
821
896
|
const rulesSeed = seedAiLocalRules(presetTeamSrc, cwd);
|
|
822
897
|
const rulesLibrarySeeded = rulesSeed.seeded;
|
|
823
898
|
if (!freshPaths.includes(path.join(aiLocalRoot, 'rules'))) {
|
|
@@ -826,7 +901,9 @@ function seedAiLocalTeam({ cwd, presetTeamSrc, source, packageVersion, mergeAiLo
|
|
|
826
901
|
|
|
827
902
|
const written = [
|
|
828
903
|
...templateWritten,
|
|
904
|
+
...(modelTiersRel ? [modelTiersRel] : []),
|
|
829
905
|
...(conventionsRel ? [conventionsRel] : []),
|
|
906
|
+
...(settingsRel ? [settingsRel] : []),
|
|
830
907
|
...rulesSeed.written,
|
|
831
908
|
...engine.written,
|
|
832
909
|
...(ignoreCreated ? ['.ai.local/.gitignore'] : []),
|
|
@@ -834,7 +911,7 @@ function seedAiLocalTeam({ cwd, presetTeamSrc, source, packageVersion, mergeAiLo
|
|
|
834
911
|
runTemplateDrift({
|
|
835
912
|
cwd,
|
|
836
913
|
written,
|
|
837
|
-
templates: templateEntries(presetTeamSrc),
|
|
914
|
+
templates: templateEntries(presetTeamSrc, source),
|
|
838
915
|
source,
|
|
839
916
|
packageVersion,
|
|
840
917
|
mergeAiLocal,
|
package/bin/opencode-install.js
CHANGED
|
@@ -98,8 +98,9 @@ function buildPlan({ contract, sourceBase, sharedSourceBase, cwd }) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
//
|
|
102
|
-
//
|
|
101
|
+
// Stack directory mappings run first. A stack `plugins/rule-attach/globs.json`
|
|
102
|
+
// therefore wins over the shared plugin tree; every other plugin file still
|
|
103
|
+
// comes from the shared copy.
|
|
103
104
|
for (const mapping of contract.sharedDirectoryMappings || []) {
|
|
104
105
|
const sourceDir = path.join(sharedSourceBase, mapping.source);
|
|
105
106
|
if (!fs.existsSync(sourceDir)) {
|
|
@@ -211,11 +212,12 @@ function mergeInstructionList(existingInstructions, presetInstructions) {
|
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
/**
|
|
214
|
-
* Universal
|
|
215
|
-
* `scripts/lib/stack-platform-profiles.mjs` (`
|
|
216
|
-
* published `files` allowlist does not ship `scripts/`, so the list is
|
|
217
|
-
* and set-equality is asserted by
|
|
218
|
-
* The bare forms are listed
|
|
215
|
+
* Universal git-write guards. Source of truth is
|
|
216
|
+
* `scripts/lib/stack-platform-profiles.mjs` (`UNIVERSAL_GUARD_ROWS`); the
|
|
217
|
+
* published `files` allowlist does not ship `scripts/`, so the list is
|
|
218
|
+
* duplicated and set-equality is asserted by
|
|
219
|
+
* `scripts/check-opencode-platform-contract.mjs`. The bare forms are listed
|
|
220
|
+
* because `git commit *` does not match `git commit`.
|
|
219
221
|
*/
|
|
220
222
|
const UNIVERSAL_GUARD_PATTERNS = ['git commit', 'git commit *', 'git push', 'git push *'];
|
|
221
223
|
|
|
@@ -244,12 +246,12 @@ function mergePermission(existingPermission, presetPermission) {
|
|
|
244
246
|
return merged;
|
|
245
247
|
}
|
|
246
248
|
merged.bash = { ...presetBash, ...prior };
|
|
247
|
-
// The universal
|
|
248
|
-
// `"git push *": "allow"` must not defeat
|
|
249
|
-
// every other key, including the package-manager
|
|
249
|
+
// The universal guard rows are the exception to consumer-wins: a pre-existing
|
|
250
|
+
// `"git push *": "allow"` must not defeat the static `ask`. Scoped to these
|
|
251
|
+
// rows only — every other key, including the package-manager guards, stays
|
|
250
252
|
// consumer-wins, so this is not a global precedence inversion.
|
|
251
253
|
for (const pattern of UNIVERSAL_GUARD_PATTERNS) {
|
|
252
|
-
if (presetBash[pattern]
|
|
254
|
+
if (presetBash[pattern]) merged.bash[pattern] = presetBash[pattern];
|
|
253
255
|
}
|
|
254
256
|
if (foldedShell) delete merged.shell;
|
|
255
257
|
return merged;
|
|
@@ -281,7 +283,7 @@ function mergeOpencodeConfig(presetObj, existingObj) {
|
|
|
281
283
|
merged.mcp = mergedMcp;
|
|
282
284
|
// Re-init re-asserts preset instruction paths and missing bash keys so an
|
|
283
285
|
// upgrade is picked up. Consumer extras and same-key overrides stay, except the
|
|
284
|
-
// universal guard rows, which mergePermission re-applies
|
|
286
|
+
// universal guard rows, which mergePermission re-applies from the preset.
|
|
285
287
|
// A non-array `instructions` or non-object `permission` is left untouched.
|
|
286
288
|
const prevInstructions = merged.instructions;
|
|
287
289
|
const instructions = mergeInstructionList(prevInstructions, preset.instructions);
|
|
@@ -30,14 +30,14 @@ Allowed status values are `confirmed`, `partial`, `unknown`, `manual`, and `no-e
|
|
|
30
30
|
| Explicit role file | `confirmed` | opencode.ai/docs/agents | `.opencode/agents/<name>.md` | Native `@name` / Task |
|
|
31
31
|
| Deterministic structured output | `unknown` | no probe | — | Do not require a JSON schema from agents |
|
|
32
32
|
| `opencode` `/init` | `unknown` | docs describe `/init`; not used by this package | TTY / interactive | Use `ai-rules init opencode` |
|
|
33
|
-
| Project rule discovery (no reference) | `no-equivalent` | no `.opencode/rules` alwaysApply/globs engine | `.mdc` globs do not exist |
|
|
33
|
+
| Project rule discovery (no reference) | `no-equivalent` | no `.opencode/rules` alwaysApply/globs engine | `.mdc` globs do not exist | `rule-attach` plugin injects a matched stem; the four essential rules stay in `opencode.json` `instructions` |
|
|
34
34
|
| Project rule discovery (explicit root reference) | `confirmed` | docs “Referencing External Files” | Agent can `Read` listed paths | Essential four rules in `AGENTS.md` |
|
|
35
35
|
| Workspace agent discovery | `confirmed` | opencode.ai/docs/agents | `.opencode/agents/` | Native |
|
|
36
36
|
| Workspace Skill discovery | `confirmed` | opencode.ai/docs/skills | `.opencode/skills/<name>/SKILL.md` | Native `skill` tool |
|
|
37
37
|
| Project MCP | `confirmed` | opencode.ai/docs/mcp-servers | `opencode.json` `mcp` | Merge on init |
|
|
38
|
-
| TUI plugin discovery | `confirmed` | opencode.ai/docs/plugins | `.opencode/plugins/<name>/` loads automatically | Ships `task-status` TUI sidebar |
|
|
38
|
+
| TUI plugin discovery | `confirmed` | opencode.ai/docs/plugins | `.opencode/plugins/<name>/` loads automatically | Ships `task-status` TUI sidebar, `output-guard`, `rule-attach` |
|
|
39
39
|
| Tool-output guard (server plugin) | `confirmed` | opencode.ai/docs/build/plugins/server + live probe 2026-11-13 | `ctx.session.hook("context")` mutates assembled messages before dispatch | Ships `output-guard`; a host without the hook no-ops |
|
|
40
|
-
| Project hooks (`hooks.json`) | `manual` |
|
|
40
|
+
| Project hooks (`hooks.json`) | `manual` | probe 2026-11-25 on OpenCode v2.4.1: `ctx.session.hook` dispatches `context` / `compaction` / `generate` / `prompt` and passes other names through unvalidated to a bus nothing triggers; no `subagentStop`, and `tool.execute.after` produced 0 timing rows in 32,841 ledger rows (575 `subagent` calls) | The event that would end a step carries no attemptId | Manual `chain-team-phases.sh` |
|
|
41
41
|
| Slash commands | `confirmed` | opencode.ai/docs/commands | `.opencode/commands/<name>.md` | Native `/task` |
|
|
42
42
|
| Plugin / skill / MCP combo | `confirmed` | skills + mcp docs | MCP inflates context | Gate unused servers in operator config |
|
|
43
43
|
| Native Team lifecycle | `partial` | file pipeline is ai-rules SoT | No native team runtime | Hook owns `status.json` / `metrics.json` |
|
|
@@ -45,9 +45,11 @@ Allowed status values are `confirmed`, `partial`, `unknown`, `manual`, and `no-e
|
|
|
45
45
|
|
|
46
46
|
## What we do not claim
|
|
47
47
|
|
|
48
|
-
- Cursor `alwaysApply` / `globs` on OpenCode
|
|
48
|
+
- Cursor `alwaysApply` / `globs` on OpenCode (the `rule-attach` plugin reproduces the outcome, not the mechanism)
|
|
49
49
|
- Claude topic-folder twins as the OpenCode source
|
|
50
50
|
- Auto-registration of `hooks.json` or a hook plugin in v1
|
|
51
|
+
- A plugin-side `subagentStop` / `tool.execute.*` event: the name is not on the
|
|
52
|
+
host's plugin bus, so the chain stays manual
|
|
51
53
|
- `init opencode --dry-run` / manifest preview (v1 is apply + rollback only)
|
|
52
54
|
- Writes to `~/.config/opencode/**` or `~/.opencode/**`
|
|
53
55
|
|
package/docs/OPENCODE.md
CHANGED
|
@@ -45,14 +45,14 @@ OpenCode has **no** `.mdc` `alwaysApply` / `globs` engine. The preset uses three
|
|
|
45
45
|
|-----------|------|----------|
|
|
46
46
|
| Root `AGENTS.md` + `.opencode/AGENTS.md` | Always-on core (essential rules + entry maps) for the **parent** | yes |
|
|
47
47
|
| `opencode.json` `instructions` | Compact hedge (`alwaysOn` paths + `.opencode/AGENTS.md`) for the **parent**; re-init unions preset paths into the consumer list | V1 yes, V2 uncertain (kept narrow) |
|
|
48
|
-
| `## Rules to load (subagent context)` block in every `.opencode/agents/*.md` | Authoritative for **subagents** (`Task`/`@name`); alwaysOn + stack zone rules filtered to existing stems | yes |
|
|
48
|
+
| `## Rules to load (subagent context)` block in every `.opencode/agents/*.md` | Authoritative for **subagents** (`Task`/`@name`); alwaysOn + stack zone rules filtered to existing stems. A stem `rule-attach` already attached need not be Read again | yes |
|
|
49
49
|
|
|
50
50
|
`bin/opencode-install.js` `mergeOpencodeConfig` on re-init **unions** preset `instructions` paths into the existing list, **fills missing** `permission.bash` keys, and re-applies the universal `git commit` / `git push` deny rows even when the consumer file already set that key. Other bash keys stay consumer-wins. An empty `instructions: []` receives the preset paths. A non-array `instructions` value is left as-is. A top-level `policies` array is not a tool deny; re-init leaves it untouched. The v1 tool key is `bash` ([permissions](https://opencode.ai/docs/permissions/)). v2 is a different document: a `permissions` array whose action is `shell`. This preset emits the v1 object, not `permission.shell`.
|
|
51
51
|
|
|
52
52
|
| Kind | How it loads |
|
|
53
53
|
|------|----------------|
|
|
54
54
|
| Essential rules | Root `AGENTS.md` + `.opencode/AGENTS.md` list four paths — **Read immediately** |
|
|
55
|
-
| Other rules |
|
|
55
|
+
| Other rules | `rule-attach` injects stems whose stack `globs.json` matches a touched path, including a path token in a `bash` or `shell` command. The catalog is that stack's Cursor `globs:`. A stem with no glob stays a lazy `Read` |
|
|
56
56
|
| Agents | Native `.opencode/agents/*.md` (`@name` / Task). `mode: subagent`. Each ships the **rules-to-load block** so subagents see the always-on + zone set |
|
|
57
57
|
| MCP | `opencode.json` `mcp` — preset ships context7 / playwright / chrome-devtools / figma; merge keeps extras |
|
|
58
58
|
| Harness enforcement | `opencode.json` `permission.bash` — universal `git commit/push deny` + JS-stack `npm/npx/pnpm/bun ask` + `npx jest* deny`. An agent-level `permission` block can override the global map |
|
|
@@ -62,7 +62,7 @@ OpenCode has **no** `.mdc` `alwaysApply` / `globs` engine. The preset uses three
|
|
|
62
62
|
|
|
63
63
|
**Every turn:** read root `AGENTS.md`, then `.opencode/AGENTS.md`, then the four essential rules. Probe `.ai.local` (see [`LOCAL-OVERLAY.md`](./LOCAL-OVERLAY.md)).
|
|
64
64
|
|
|
65
|
-
Do not pin a provider model in agent frontmatter.
|
|
65
|
+
Do not pin a provider model in agent frontmatter. `init` seeds `.ai.local/team/model-tiers.json` absent-only with an empty `tiers` map and an empty `approvedBy`. That template is not a map yet: the session model applies. After `approvedBy` or any tier is set, a declared tier with no mapping stops the step with `model-tier-unmapped`. A re-init leaves a filled file byte-identical.
|
|
66
66
|
|
|
67
67
|
## Task pipeline (semi-auto)
|
|
68
68
|
|
|
@@ -78,7 +78,7 @@ printf '%s\n' '{"status":"completed","attemptId":"<from-status.json>"}' \
|
|
|
78
78
|
| TEAM_TASK_SLUG=<slug> bash .opencode/hooks/chain-team-phases.sh
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
Human gates pause with `awaitingHumanGate: true`. Resume with `/task-continue`. There is **no** shipped `hooks.json
|
|
81
|
+
Human gates pause with `awaitingHumanGate: true`. Resume with `/task-continue`. There is **no** shipped `hooks.json`: on OpenCode v2.4.1 `ctx.session.hook` dispatches `context` / `compaction` / `generate` / `prompt` only, so no plugin observes a subagent return and the chain stays a manual run. The `task-status` plugin writes this tab's pin to `.ai.local/team/.session-leases/<sessionID>.json` and tries to set `AI_RULES_SESSION_ID` on `shell.env`. That registration is best-effort: if the host rejects the name, the lease file remains, and a later hook call in the same tab resolves the pin when the session id is already in the environment. `active-task.json` stays the list of live slugs. The other shipped plugins are `output-guard` (compaction) and `rule-attach` (path-glob rule delivery).
|
|
82
82
|
|
|
83
83
|
Full team layout: `.ai.local/team/README.md`.
|
|
84
84
|
|
|
@@ -90,6 +90,9 @@ dispatch. A `tool-result` over 8 KB is written to
|
|
|
90
90
|
`.ai.local/team/output-guard/<sessionID>/outputs/` and replaced with a bounded
|
|
91
91
|
head + tail. The 8–20 KB band uses the structured shape: a whole-line gap is a `sed -n` range, a mid-line cut is a `tail -c` byte window, and JSON keys are listed only when they sit in that gap. Above 20 KB stays the flat renderer.
|
|
92
92
|
`AI_RULES_OUTPUT_GUARD_SHAPE=flat` forces the flat renderer inside the band.
|
|
93
|
+
A `read` of `.opencode/rules/**` or `.ai.local/rules/**` is never replaced: a rule
|
|
94
|
+
is the instruction the agent follows, and a compacted rule is a contract read at
|
|
95
|
+
a fraction of its bytes. Every other `read` stays guarded.
|
|
93
96
|
It works for every prompt,
|
|
94
97
|
including one without `/task`.
|
|
95
98
|
|
|
@@ -105,8 +108,12 @@ including one without `/task`.
|
|
|
105
108
|
|
|
106
109
|
- Reads the nearest `.ai.local/team/` above the session directory and maps the
|
|
107
110
|
active session to a task by its user messages.
|
|
108
|
-
- Renders slug, state,
|
|
109
|
-
TUI `sidebar.content` slot. Toggle the sidebar
|
|
111
|
+
- Renders slug, state, the `work`/`gate`/`paused`/`sleep`/`idle` time split, current
|
|
112
|
+
step, and a soft-stop button in the TUI `sidebar.content` slot. Toggle the sidebar
|
|
113
|
+
with `ctrl+x b`. The split comes from `metrics.json`: `attempt_finished.activeMs`
|
|
114
|
+
(wall time minus gate, pause and host-suspension intervals), paired gate and
|
|
115
|
+
`task_paused`/`task_resumed` events, and the `.suspend.jsonl` gaps the plugin
|
|
116
|
+
records when the wall clock outruns a monotonic clock by more than 60s.
|
|
110
117
|
- Shows a `~p50 · p90` estimate for the remaining steps, built from the attempt
|
|
111
118
|
durations of every ledger under the team root; hidden on a human gate, pause,
|
|
112
119
|
stale run, or completion. It estimates agent work, not wall-clock time.
|
|
@@ -135,8 +142,8 @@ Labels from official OpenCode docs (live CLI probe not yet run). Full matrix: [`
|
|
|
135
142
|
| Root `AGENTS.md` | **confirmed** (docs) | Native always-on; reference rules explicitly |
|
|
136
143
|
| `.opencode/agents` / `skills` / `commands` | **confirmed** (docs) | Native discovery |
|
|
137
144
|
| `opencode.json` MCP | **confirmed** (docs) | Merge `mcp` |
|
|
138
|
-
| Glob / alwaysApply rules | **no-equivalent** |
|
|
139
|
-
| `hooks.json` / subagentStop | **manual** | `TEAM_TASK_SLUG=<slug> bash .opencode/hooks/chain-team-phases.sh` after receipts
|
|
145
|
+
| Glob / alwaysApply rules | **no-equivalent** | No host glob engine; `rule-attach` injects the stems whose stack `globs.json` matches a touched path (file tools and a `bash`/`shell` path token), and a stem with no glob stays a lazy Read |
|
|
146
|
+
| `hooks.json` / subagentStop | **manual** | `TEAM_TASK_SLUG=<slug> bash .opencode/hooks/chain-team-phases.sh` after receipts. `task-status` pins the tab in `.session-leases/<sessionID>.json`; it does not run the chain |
|
|
140
147
|
| Native Team lifecycle | **partial** | File pipeline is SoT; hook is single lifecycle writer |
|
|
141
148
|
|
|
142
149
|
Do not pin OpenCode CLI or TUI versions in the contract.
|
|
@@ -433,8 +433,8 @@ uses the carrier instead of printing.
|
|
|
433
433
|
| `scripts/check-preset-self-review-contract.sh` / `yarn check:preset-structure` | **FAIL** if the producer-side self-review / context-hygiene contract is absent: the core `_shared/core/quality/self-review-and-context-hygiene.md` tokens (G0 non-vacuous guard), the `<!-- shared-core: quality/self-review-and-context-hygiene.md -->` marker on `task-analyst` / `feature-developer` / `build-verifier` (×10) and on `debugger` / `code-reviewer` where present (skip-if-absent → `mcp-ts`), the `Self-review` + `re-anchor` tokens on every orchestrator rule, `Self-review` in `team/README.md` + `commands/task.md`, and leakage-free core + docs; **refuses vacuous PASS** when the iteration set is empty. Also holds two prose contracts: the canonical self-learning-loop sentence must not be followed by unsanctioned prose (an allowlist of sanctioned clauses; the tail is bounded by the carrier's **section**, not by a blank line, so prose moved one paragraph down still fails — a tail in a later `## ` section is out of scope), and every retro carrier (command, skill, rule) must state `finding_category`. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-self-review-contract-fixtures.mjs`. |
|
|
434
434
|
| `scripts/check-anti-hallucination-coverage.mjs` | **FAIL** when the shared contract, a Cursor load-line embed, a writer stack floor, or a generated Rules-to-load stem is missing. Writer roles are `implementer`, `unit-test`, `e2e`, `qa`, and `reviewer` (`code-reviewer` loads `STACK_FLOOR_STEMS` plus the contract). `/task` and the orchestrator must not name a floor stem. Does not scan consumer `app/**` and does not call Context7. Fixture `test-anti-hallucination-coverage.mjs` deletes `anti-hallucination-contract` from `next.reviewer` in memory and expects FAIL mentioning `next` and `reviewer`. Wired into `check-preset-structure.sh` immediately after `check-claude-agent-blocks.mjs`. |
|
|
435
435
|
| `presets/_shared/ai-local/scripts/check-write-scope.mjs` | Read-only post-step audit: compares the actual changed paths with the current `pipeline.json` step's `writeScopes` and labels each path `declared`, `derived` (task folder, engine mirror, generated platform tree/golden/hook, dogfood tree, adapter map), or `out-of-scope`, with the source named. Shipped to consumers as `.ai.local/scripts/check-write-scope.mjs` (`ENGINE_SCRIPTS`). `--slug <slug> [--step <id>] [--base <ref>] [--root <project>] [--paths a,b] [--save-baseline] [--json]`. Baseline resolution: `--paths`, then `--base <ref>`, then the step baseline written by `--step <id> --save-baseline` (every dirty path with its content hash, plus the files its declared `writeScopes` cover — passed as `--paths` — so a step armed on a clean tree still owns its surface), then `HEAD` (whole uncommitted change-set, reported with a notice). Exit `1` for an out-of-scope path on an implementation step, `0` for a reviewer/verifier step (advisory), `2` on a usage/config error, `3` (SKIP) when the pipeline predates step ids or `writeScopes` and is therefore not auditable. Fixture `test-write-scope.mjs`; wired into the build-verifier and code-reviewer prompts, never a hook. |
|
|
436
|
-
| `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Low-level orchestrator: twin-map + token-budget + leakage + shared-core drift + anti-hallucination coverage + rule-eval (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Runs the
|
|
437
|
-
| `scripts/run-tooling-tests.sh` / `yarn test:tooling` | The tooling self-test tier: the
|
|
436
|
+
| `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Low-level orchestrator: twin-map + token-budget + leakage + shared-core drift + anti-hallucination coverage + rule-eval (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Runs the 52 preset checks only (~2 min); `--list` prints their labels. Invoked by `yarn release:gate` and CI; not a feature-task gate. |
|
|
437
|
+
| `scripts/run-tooling-tests.sh` / `yarn test:tooling` | The tooling self-test tier: the 85 `test-*` suites that guard the preset tooling itself (preset fixtures, CLI install, team-db, hook lifecycle, contract guards, tooling core). One command, one exit code, ~21 min; `--list` prints the 85 labels. Reached through `run-locked.mjs --label test:tooling`, so it holds the same `preset-tree-lock` as the composite; a direct `bash` run warns that it holds none. Its failures are downgraded only by `scripts/_lib/structure-known-failures.json`, and it is the second phase of `yarn release:gate`. CI runs it from the `tooling-suites` job when the change-set touches the tooling domains (`ci-tooling-tier-gate.sh`). |
|
|
438
438
|
| `scripts/check-product-specs.sh` / `yarn check:product-specs` | Opt-in consumer tree check: frontmatter v1 keys + required body headings on `docs/specs/**` (bash; does **not** run JSON Schema). Ships in the npm package `files` (`scripts/`). **WARN** by default; **`--strict`** exits non-zero. |
|
|
439
439
|
| `yarn check:product-specs:dogfood` | Same script against monorepo `dogfood/mcp-ts-sample`. Soft WARN inside the composite + CI step (`continue-on-error`); the release gate runs `--strict`; not a hard consumer CI gate. |
|
|
440
440
|
| `scripts/check-rule-eval.mjs` / `yarn check:rule-eval` | **Hard gate** inside `check-preset-structure.sh`: validates Incorrect/Correct pairs + `impact:` on **next-only** golden stems (`eval/next/manifest.json`). Backend / ios / php-hexagonal / php-laravel stems are out of scope until a stack adds `eval/<stack>/`. |
|
|
@@ -449,9 +449,9 @@ The ladder, one composite run per change-set:
|
|
|
449
449
|
1. **Targeted (seconds):** `node scripts/check-preset-twin-drift.mjs`, `check-claude-agent-parity.mjs`, `test-cli-init-clean.mjs`, `test-generated-cache.mjs` — a source edit that is not mirrored in the Claude twin fails here, not after the ~2-minute composite, and not 21 minutes into `yarn test:tooling`.
|
|
450
450
|
2. **Regenerate:** `yarn fix:generated` after a source or generator edit; it rewrites every platform stack and the CLI goldens.
|
|
451
451
|
3. **Classified:** `yarn check:changed` — the classifier names the gates the change-set affects.
|
|
452
|
-
4. **Composite, once:** `bash scripts/check-preset-structure.sh` after the last edit. `--fail-fast` stops at the first failure the allowlist does not declare (a known one is printed and the sweep continues), `--list` prints the
|
|
452
|
+
4. **Composite, once:** `bash scripts/check-preset-structure.sh` after the last edit. `--fail-fast` stops at the first failure the allowlist does not declare (a known one is printed and the sweep continues), `--list` prints the 52 preset checks, and a single gate is its own script under `scripts/` — run that directly rather than filtering the composite. The 85 tooling self-test suites (`test-*`) run from `yarn test:tooling` (~23 min, one command, one exit code); `--list` on `scripts/run-tooling-tests.sh` prints those 85 labels. The union of the two label sets is the 137 the two entry points now carry, pinned by `test-structure-tier-partition.mjs`.
|
|
453
453
|
|
|
454
|
-
The composite exits 0 when every failure is already listed in `scripts/_lib/structure-known-failures.json` (each entry carries owner, reason, and date). A known failure that starts passing prints a stale-entry warning and the aggregate exits 1, so the row cannot hide the next regression. Both entry points read that file, but each tier reports only its own labels: the composite prints one `NOTE:` line for an allowlisted suite that belongs to the tooling tier, and `yarn test:tooling` owns the stale-entry warning for its
|
|
454
|
+
The composite exits 0 when every failure is already listed in `scripts/_lib/structure-known-failures.json` (each entry carries owner, reason, and date). A known failure that starts passing prints a stale-entry warning and the aggregate exits 1, so the row cannot hide the next regression. Both entry points read that file, but each tier reports only its own labels: the composite prints one `NOTE:` line for an allowlisted suite that belongs to the tooling tier, and `yarn test:tooling` owns the stale-entry warning for its 85. A malformed allowlist exits 2. Two runs may fill the same cache key at once — `generated-cache.mjs` publishes with one rename — while the preset-tree lock still keeps a gate away from a running `fix:generated`.
|
|
455
455
|
|
|
456
456
|
Run from `packages/ai-rules/`:
|
|
457
457
|
|
|
@@ -473,12 +473,12 @@ Iteration versus release:
|
|
|
473
473
|
- **`yarn check:task <slug>`** — the task-scoped classifier (`check-preset-delta.mjs --since-task <slug>`). It reads `.ai.local/team/.write-scope/<slug>/*.json`, unions the step baselines, and returns only this task's change-set; `--save-baseline` snapshots an inline task before its first write. A missing baseline falls back to `--base HEAD` with a warning.
|
|
474
474
|
- **`yarn check:changed`** — the repo-wide classifier (`check-preset-delta.mjs --base HEAD`, or `--paths a,b`). Use it on a clean tree or pass the task paths explicitly; otherwise earlier uncommitted batches are attributed to this task. It prints `affected loop gates` and a separate `release-only gates` line.
|
|
475
475
|
- **`yarn check:fast`** — the fallback gate (`check-preset-fast.sh`: the content floor — twin map, twin drift, generated drift, semantic parity, token budget, leakage, frontmatter — plus frontmatter dogfood, consumer links, next attached budget, and the OpenCode platform-contract self-test). Run it only when the classifier names no gate. A `preset-content` diff names that floor plus the path slice for the file that changed: hooks also name chain-hook coverage and hook-token lock, a router edit names parallel-plan, and preset prose names hard i18n. `test-cli-init-clean` stays on `preset-install` / `preset-generator` and in `yarn test:tooling`, not on a rule edit.
|
|
476
|
-
- **`yarn release:gate`** — the full release gate, four phases: `preset-structure` (the
|
|
476
|
+
- **`yarn release:gate`** — the full release gate, four phases: `preset-structure` (the 52 preset checks), `tooling-tests` (`yarn test:tooling`, the 85 tooling suites — `AI_RULES_SKIP_HOOK_TESTS` / `AI_RULES_SKIP_PACK_TESTS` are refused), `test:ai-local`, and the strict product-specs dogfood. Each phase writes its own `exit`, so a red tooling suite fails the release without hiding a green preset tier. Run it alone on the release commit before a tag.
|
|
477
477
|
- **`yarn check:preset-structure`** — the low-level composite; CI and `release:gate` call it. It runs the preset tier only. Do not run it in a feature task.
|
|
478
478
|
|
|
479
479
|
`check-generated-drift` caches generated trees in the OS temp directory, keyed by a digest of the Cursor/`_shared` sources and the generator libraries. A source or generator edit misses the cache and regenerates; the cache is disposable and never hides drift.
|
|
480
480
|
|
|
481
|
-
CI: [`.github/workflows/preset-structure.yml`](../../../.github/workflows/preset-structure.yml) runs the
|
|
481
|
+
CI: [`.github/workflows/preset-structure.yml`](../../../.github/workflows/preset-structure.yml) runs the 52 preset checks on PRs touching `packages/ai-rules/**`; its `classify` job reads the change-set domains from `check-preset-delta.mjs` and the `tooling-suites` job runs `yarn test:tooling` only when they touch `preset-tooling`, `preset-generator`, `preset-install`, `preset-engine`, or `team-db` (a prose-only `preset-content` change stays on the 52-check job; a skip is announced in the job summary). The other workflows in `.github/workflows/`: `platform-smoke.yml` (3-OS smoke: `init multi`, `update`, `doctor`, platform suites, script gate), `rule-eval.yml` (opt-in next rule-eval via `scripts/check-rule-eval.mjs`), `team-tasks-ui.yml` (lint, type-check, and unit tests for `apps/team-tasks-ui`; no e2e), and `release-gate.yml` (`yarn release:gate` on a `v*` tag or a chosen ref; uploads the `.release-gate/` report as an artifact).
|
|
482
482
|
|
|
483
483
|
---
|
|
484
484
|
|
package/docs/TOKEN-ECONOMY.md
CHANGED
|
@@ -105,6 +105,26 @@ The OpenCode row counts `instructions` only; the root `AGENTS.md` is loaded nati
|
|
|
105
105
|
|
|
106
106
|
Re-run the command for the current tree; these numbers move with any rule edit.
|
|
107
107
|
|
|
108
|
+
## Step cost
|
|
109
|
+
|
|
110
|
+
Bytes are the fixed part; `report-step-cost.mjs` counts the per-run part — how
|
|
111
|
+
many turns and tool calls each pipeline phase spent, and how many of those calls
|
|
112
|
+
were the manual `chain-team-phases.sh` step:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
node .ai.local/scripts/report-step-cost.mjs --task <slug> --json
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The phases are the task's own `attempt_started` / `attempt_finished` windows from
|
|
119
|
+
`metrics.json`, clipped so they do not overlap. Attempts that share a start are
|
|
120
|
+
one phase. The counts are the deduped `usage.jsonl` turns and `results.jsonl`
|
|
121
|
+
tool calls inside each window. A row with no id stays in `unattributed` for the
|
|
122
|
+
host window; a session lease moves it to `excluded` with the other sessions.
|
|
123
|
+
With no lease the text says the window is the whole host ledger. A chain
|
|
124
|
+
invocation is a shell command that runs the script. A task with no ledger rows
|
|
125
|
+
prints zeros. Read-only, writes nothing. This is the before/after measure for
|
|
126
|
+
the step-count work; it is not a latency claim.
|
|
127
|
+
|
|
108
128
|
## Bytes are not tokens
|
|
109
129
|
|
|
110
130
|
`estimatedTokens` is `Math.round(bytes / 4)` for every host. The JSON key, the human output, and this page call it an estimate. No tokenizer runs, no model is called, no session is observed.
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
"tasks"
|
|
624
624
|
],
|
|
625
625
|
"summary": "Delete one task: the task folder first, then its projection rows",
|
|
626
|
-
"description": "Confirmed, destructive and irreversible. The task folder `.ai.local/team/tasks/{slug}` is removed before the database rows, so a crash between the two legs converges toward deleted on the next rescan and never resurrects content. The row delete is one transaction: the task row plus every child row by cascade, plus the task's search rows.
|
|
626
|
+
"description": "Confirmed, destructive and irreversible. The task folder `.ai.local/team/tasks/{slug}` is removed before the database rows, so a crash between the two legs converges toward deleted on the next rescan and never resurrects content. The row delete is one transaction: the task row plus every child row by cascade, plus the task's search rows. A slug whose own `status.json` state is live (not one of the terminal states) is refused with 409 `E_ACTIVE_TASK` — the guard reads the requested slug's status, never the `active-task.json` pointer. An unknown slug answers 404 `E_NOT_FOUND` and touches nothing. The request body is ignored and no query parameters are declared. Executed as a bounded child process; `AI_RULES_TEAM_DB_DISABLE=1` answers 503 `E_DISABLED` before anything runs.",
|
|
627
627
|
"operationId": "deleteTask",
|
|
628
628
|
"parameters": [
|
|
629
629
|
{
|
|
@@ -697,7 +697,7 @@
|
|
|
697
697
|
}
|
|
698
698
|
},
|
|
699
699
|
"409": {
|
|
700
|
-
"description": "The slug is
|
|
700
|
+
"description": "The slug is live (its own `status.json` state is not terminal); the delete is refused with `details.activeSlug` naming it",
|
|
701
701
|
"content": {
|
|
702
702
|
"application/json": {
|
|
703
703
|
"schema": {
|
package/package.json
CHANGED