@bonesofspring/ai-rules 0.2.78 → 0.2.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -0
- package/README.md +4 -2
- package/bin/lib/engine-scripts.js +6 -0
- package/bin/lib/merged-config.js +49 -0
- package/bin/lib/seed-ai-local-team.js +4 -0
- package/bin/mavis-install.js +53 -3
- package/docs/MAVIS-COMPATIBILITY.md +136 -8
- package/docs/PRESET-CONTRIBUTION.md +9 -0
- package/docs/TEAM-DB.md +118 -15
- package/docs/openapi/team-db.v1.json +2879 -1858
- package/package.json +8 -1
- package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +282 -0
- package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
- package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +531 -0
- package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +211 -12
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +289 -3
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +857 -1
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +68 -0
- package/presets/_shared/ai-local/scripts/team-db-tracker.mjs +29 -10
- package/presets/_shared/ai-local/scripts/team-db.mjs +46 -1
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
- package/presets/_shared/core/review/code-review-mr.md +19 -4
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +109 -1
- package/presets/_shared/hooks/compact-shell-output.mjs +16 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/claude/android-kotlin/agents/task-router.md +2 -0
- package/presets/claude/android-kotlin/commands/README.md +1 -0
- package/presets/claude/android-kotlin/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/android-kotlin/commands/task.md +4 -0
- package/presets/claude/android-kotlin/commands/update.md +1 -0
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/claude/go/agents/code-reviewer.md +5 -1
- package/presets/claude/go/agents/task-router.md +2 -0
- package/presets/claude/go/commands/README.md +1 -0
- package/presets/claude/go/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/go/commands/task.md +4 -0
- package/presets/claude/go/commands/update.md +1 -0
- package/presets/claude/go/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/go/skills/code-review/SKILL.md +2 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/claude/ios-swift/agents/task-router.md +2 -0
- package/presets/claude/ios-swift/commands/README.md +1 -0
- package/presets/claude/ios-swift/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/ios-swift/commands/task.md +4 -0
- package/presets/claude/ios-swift/commands/update.md +1 -0
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/claude/java/agents/code-reviewer.md +5 -1
- package/presets/claude/java/agents/task-router.md +2 -0
- package/presets/claude/java/commands/README.md +1 -0
- package/presets/claude/java/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/java/commands/task.md +4 -0
- package/presets/claude/java/commands/update.md +1 -0
- package/presets/claude/java/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/java/skills/code-review/SKILL.md +2 -1
- package/presets/claude/mcp-ts/agents/task-router.md +2 -0
- package/presets/claude/mcp-ts/commands/README.md +1 -0
- package/presets/claude/mcp-ts/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/mcp-ts/commands/task.md +4 -0
- package/presets/claude/mcp-ts/commands/update.md +1 -0
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/mol/REPO_AGENTS.md +1 -1
- package/presets/claude/mol/agents/code-reviewer.md +5 -1
- package/presets/claude/mol/agents/task-router.md +3 -1
- package/presets/claude/mol/commands/README.md +1 -0
- package/presets/claude/mol/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/mol/commands/task.md +4 -0
- package/presets/claude/mol/commands/update.md +1 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/mol/skills/code-review/SKILL.md +2 -1
- package/presets/claude/next/REPO_AGENTS.md +1 -1
- package/presets/claude/next/agents/code-reviewer.md +5 -1
- package/presets/claude/next/agents/task-router.md +3 -1
- package/presets/claude/next/commands/README.md +1 -0
- package/presets/claude/next/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/next/commands/task.md +4 -0
- package/presets/claude/next/commands/ui-start.md +12 -4
- package/presets/claude/next/commands/ui-stop.md +5 -2
- package/presets/claude/next/commands/update.md +1 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/next/skills/code-review/SKILL.md +2 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +5 -1
- package/presets/claude/nuxt/agents/task-router.md +3 -1
- package/presets/claude/nuxt/commands/README.md +1 -0
- package/presets/claude/nuxt/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/nuxt/commands/task.md +4 -0
- package/presets/claude/nuxt/commands/update.md +1 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/claude/php-hexagonal/agents/task-router.md +2 -0
- package/presets/claude/php-hexagonal/commands/README.md +1 -0
- package/presets/claude/php-hexagonal/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/php-hexagonal/commands/task.md +4 -0
- package/presets/claude/php-hexagonal/commands/update.md +1 -0
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/claude/php-laravel/agents/task-router.md +2 -0
- package/presets/claude/php-laravel/commands/README.md +1 -0
- package/presets/claude/php-laravel/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/php-laravel/commands/task.md +4 -0
- package/presets/claude/php-laravel/commands/update.md +1 -0
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/claude/svelte/agents/code-reviewer.md +5 -1
- package/presets/claude/svelte/agents/task-router.md +3 -1
- package/presets/claude/svelte/commands/README.md +1 -0
- package/presets/claude/svelte/commands/rr-migrate-repositories.md +59 -0
- package/presets/claude/svelte/commands/task.md +4 -0
- package/presets/claude/svelte/commands/update.md +1 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/cursor/android-kotlin/agents/task-router.md +2 -0
- package/presets/cursor/android-kotlin/commands/README.md +1 -0
- package/presets/cursor/android-kotlin/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/android-kotlin/commands/task.md +4 -0
- package/presets/cursor/android-kotlin/commands/update.md +1 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/go/agents/code-reviewer.md +5 -1
- package/presets/cursor/go/agents/task-router.md +2 -0
- package/presets/cursor/go/commands/README.md +1 -0
- package/presets/cursor/go/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/go/commands/task.md +4 -0
- package/presets/cursor/go/commands/update.md +1 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/go/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/go/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/go/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/cursor/ios-swift/agents/task-router.md +2 -0
- package/presets/cursor/ios-swift/commands/README.md +1 -0
- package/presets/cursor/ios-swift/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/ios-swift/commands/task.md +4 -0
- package/presets/cursor/ios-swift/commands/update.md +1 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/java/agents/code-reviewer.md +5 -1
- package/presets/cursor/java/agents/task-router.md +2 -0
- package/presets/cursor/java/commands/README.md +1 -0
- package/presets/cursor/java/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/java/commands/task.md +4 -0
- package/presets/cursor/java/commands/update.md +1 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/java/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/java/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/java/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/mcp-ts/agents/task-router.md +2 -0
- package/presets/cursor/mcp-ts/commands/README.md +1 -0
- package/presets/cursor/mcp-ts/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/mcp-ts/commands/task.md +4 -0
- package/presets/cursor/mcp-ts/commands/update.md +1 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/REPO_AGENTS.md +1 -1
- package/presets/cursor/mol/agents/code-reviewer.md +5 -1
- package/presets/cursor/mol/agents/task-router.md +3 -1
- package/presets/cursor/mol/commands/README.md +1 -0
- package/presets/cursor/mol/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/mol/commands/task.md +4 -0
- package/presets/cursor/mol/commands/update.md +1 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/mol/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mol/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/next/REPO_AGENTS.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +5 -1
- package/presets/cursor/next/agents/task-router.md +3 -1
- package/presets/cursor/next/commands/README.md +1 -0
- package/presets/cursor/next/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/next/commands/task.md +4 -0
- package/presets/cursor/next/commands/ui-start.md +12 -4
- package/presets/cursor/next/commands/ui-stop.md +5 -2
- package/presets/cursor/next/commands/update.md +1 -0
- package/presets/cursor/next/hooks/README.md +2 -0
- package/presets/cursor/next/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/next/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/next/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +5 -1
- package/presets/cursor/nuxt/agents/task-router.md +3 -1
- package/presets/cursor/nuxt/commands/README.md +1 -0
- package/presets/cursor/nuxt/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/nuxt/commands/task.md +4 -0
- package/presets/cursor/nuxt/commands/update.md +1 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-hexagonal/agents/task-router.md +2 -0
- package/presets/cursor/php-hexagonal/commands/README.md +1 -0
- package/presets/cursor/php-hexagonal/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/php-hexagonal/commands/task.md +4 -0
- package/presets/cursor/php-hexagonal/commands/update.md +1 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-laravel/agents/task-router.md +2 -0
- package/presets/cursor/php-laravel/commands/README.md +1 -0
- package/presets/cursor/php-laravel/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/php-laravel/commands/task.md +4 -0
- package/presets/cursor/php-laravel/commands/update.md +1 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +5 -1
- package/presets/cursor/svelte/agents/task-router.md +3 -1
- package/presets/cursor/svelte/commands/README.md +1 -0
- package/presets/cursor/svelte/commands/rr-migrate-repositories.md +59 -0
- package/presets/cursor/svelte/commands/task.md +4 -0
- package/presets/cursor/svelte/commands/update.md +1 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/cursor/svelte/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/svelte/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/android-kotlin/MAVIS.md +9 -3
- package/presets/mavis/android-kotlin/README.md +3 -1
- package/presets/mavis/android-kotlin/adapter-map.json +111 -43
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/mavis/android-kotlin/agents/task-router.md +2 -0
- package/presets/mavis/android-kotlin/commands/README.md +1 -0
- package/presets/mavis/android-kotlin/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/android-kotlin/commands/task.md +4 -0
- package/presets/mavis/android-kotlin/commands/update.md +1 -0
- package/presets/mavis/android-kotlin/hooks/README.md +29 -7
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/android-kotlin/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/android-kotlin/hooks/run-hook.mjs +103 -0
- package/presets/mavis/android-kotlin/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/android-kotlin/native-skills/README.md +15 -0
- package/presets/mavis/android-kotlin/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/android-kotlin/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/android-kotlin/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/android-kotlin/native-skills/instrumentation-ui-e2e/SKILL.md +23 -0
- package/presets/mavis/android-kotlin/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/android-kotlin/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/android-kotlin/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/android-kotlin/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/android-kotlin/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/android-kotlin/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/android-kotlin/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/android-kotlin/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/android-kotlin/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/go/MAVIS.md +9 -3
- package/presets/mavis/go/README.md +3 -1
- package/presets/mavis/go/adapter-map.json +101 -39
- package/presets/mavis/go/agents/code-reviewer.md +5 -1
- package/presets/mavis/go/agents/task-router.md +2 -0
- package/presets/mavis/go/commands/README.md +1 -0
- package/presets/mavis/go/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/go/commands/task.md +4 -0
- package/presets/mavis/go/commands/update.md +1 -0
- package/presets/mavis/go/hooks/README.md +29 -7
- package/presets/mavis/go/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/go/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/go/hooks/run-hook.mjs +103 -0
- package/presets/mavis/go/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/go/native-skills/README.md +15 -0
- package/presets/mavis/go/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/go/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/go/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/go/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/go/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/go/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/go/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/go/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/go/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/go/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/go/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/go/rules/code-review-mr.md +19 -4
- package/presets/mavis/go/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/ios-swift/MAVIS.md +9 -3
- package/presets/mavis/ios-swift/README.md +3 -1
- package/presets/mavis/ios-swift/adapter-map.json +111 -43
- package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/mavis/ios-swift/agents/task-router.md +2 -0
- package/presets/mavis/ios-swift/commands/README.md +1 -0
- package/presets/mavis/ios-swift/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/ios-swift/commands/task.md +4 -0
- package/presets/mavis/ios-swift/commands/update.md +1 -0
- package/presets/mavis/ios-swift/hooks/README.md +29 -7
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/ios-swift/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/ios-swift/hooks/run-hook.mjs +103 -0
- package/presets/mavis/ios-swift/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/ios-swift/native-skills/README.md +15 -0
- package/presets/mavis/ios-swift/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/ios-swift/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/ios-swift/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/ios-swift/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/ios-swift/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/ios-swift/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/ios-swift/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/ios-swift/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/ios-swift/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/ios-swift/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/ios-swift/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/ios-swift/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/ios-swift/native-skills/xcuitest-e2e/SKILL.md +39 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/mavis/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/java/MAVIS.md +9 -3
- package/presets/mavis/java/README.md +3 -1
- package/presets/mavis/java/adapter-map.json +101 -39
- package/presets/mavis/java/agents/code-reviewer.md +5 -1
- package/presets/mavis/java/agents/task-router.md +2 -0
- package/presets/mavis/java/commands/README.md +1 -0
- package/presets/mavis/java/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/java/commands/task.md +4 -0
- package/presets/mavis/java/commands/update.md +1 -0
- package/presets/mavis/java/hooks/README.md +29 -7
- package/presets/mavis/java/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/java/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/java/hooks/run-hook.mjs +103 -0
- package/presets/mavis/java/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/java/native-skills/README.md +15 -0
- package/presets/mavis/java/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/java/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/java/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/java/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/java/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/java/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/java/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/java/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/java/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/java/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/java/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/java/rules/code-review-mr.md +19 -4
- package/presets/mavis/java/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/mcp-ts/MAVIS.md +9 -3
- package/presets/mavis/mcp-ts/README.md +3 -1
- package/presets/mavis/mcp-ts/adapter-map.json +84 -31
- package/presets/mavis/mcp-ts/agents/task-router.md +2 -0
- package/presets/mavis/mcp-ts/commands/README.md +1 -0
- package/presets/mavis/mcp-ts/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/mcp-ts/commands/task.md +4 -0
- package/presets/mavis/mcp-ts/commands/update.md +1 -0
- package/presets/mavis/mcp-ts/hooks/README.md +29 -7
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/mcp-ts/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mcp-ts/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mcp-ts/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mcp-ts/native-skills/README.md +15 -0
- package/presets/mavis/mcp-ts/native-skills/code-review/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/debug-investigation/SKILL.md +51 -0
- package/presets/mavis/mcp-ts/native-skills/feature-delivery/SKILL.md +42 -0
- package/presets/mavis/mcp-ts/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mcp-ts/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mcp-ts/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mcp-ts/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mcp-ts/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/mcp-ts/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/mcp-ts/native-skills/technical-retro/SKILL.md +95 -0
- package/presets/mavis/mcp-ts/native-skills/unit-testing/SKILL.md +22 -0
- package/presets/mavis/mcp-ts/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/MAVIS.md +9 -3
- package/presets/mavis/mol/README.md +3 -1
- package/presets/mavis/mol/REPO_AGENTS.md +1 -1
- package/presets/mavis/mol/adapter-map.json +101 -39
- package/presets/mavis/mol/agents/code-reviewer.md +5 -1
- package/presets/mavis/mol/agents/task-router.md +3 -1
- package/presets/mavis/mol/commands/README.md +1 -0
- package/presets/mavis/mol/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/mol/commands/task.md +4 -0
- package/presets/mavis/mol/commands/update.md +1 -0
- package/presets/mavis/mol/hooks/README.md +29 -7
- package/presets/mavis/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/mol/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mol/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mol/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mol/native-skills/README.md +15 -0
- package/presets/mavis/mol/native-skills/ci-investigation/SKILL.md +49 -0
- package/presets/mavis/mol/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/debug-investigation/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/feature-delivery/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mol/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mol/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/task/SKILL.md +82 -0
- package/presets/mavis/mol/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/mol/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/mol/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/mol/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/mol/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mol/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/next/MAVIS.md +9 -3
- package/presets/mavis/next/README.md +3 -1
- package/presets/mavis/next/REPO_AGENTS.md +1 -1
- package/presets/mavis/next/adapter-map.json +135 -52
- package/presets/mavis/next/agents/code-reviewer.md +5 -1
- package/presets/mavis/next/agents/task-router.md +3 -1
- package/presets/mavis/next/commands/README.md +1 -0
- package/presets/mavis/next/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/next/commands/task.md +4 -0
- package/presets/mavis/next/commands/ui-start.md +12 -4
- package/presets/mavis/next/commands/ui-stop.md +5 -2
- package/presets/mavis/next/commands/update.md +1 -0
- package/presets/mavis/next/hooks/README.md +29 -7
- package/presets/mavis/next/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/next/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/next/hooks/run-hook.mjs +103 -0
- package/presets/mavis/next/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/next/native-skills/README.md +15 -0
- package/presets/mavis/next/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/next/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/next/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/feature-delivery/SKILL.md +45 -0
- package/presets/mavis/next/native-skills/figma-fidelity/SKILL.md +131 -0
- package/presets/mavis/next/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/next/native-skills/mockup-review/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/playwright-e2e/SKILL.md +39 -0
- package/presets/mavis/next/native-skills/react-performance/SKILL.md +49 -0
- package/presets/mavis/next/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/next/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/next/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/next/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/task/SKILL.md +88 -0
- package/presets/mavis/next/native-skills/task-continue/SKILL.md +87 -0
- package/presets/mavis/next/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/next/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/next/native-skills/ui-start/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/ui-stop/SKILL.md +48 -0
- package/presets/mavis/next/native-skills/unit-testing/SKILL.md +40 -0
- package/presets/mavis/next/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/next/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/next/rules/code-review-mr.md +19 -4
- package/presets/mavis/next/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/nuxt/MAVIS.md +9 -3
- package/presets/mavis/nuxt/README.md +3 -1
- package/presets/mavis/nuxt/adapter-map.json +116 -45
- package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
- package/presets/mavis/nuxt/agents/task-router.md +3 -1
- package/presets/mavis/nuxt/commands/README.md +1 -0
- package/presets/mavis/nuxt/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/nuxt/commands/task.md +4 -0
- package/presets/mavis/nuxt/commands/update.md +1 -0
- package/presets/mavis/nuxt/hooks/README.md +29 -7
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/nuxt/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/nuxt/hooks/run-hook.mjs +103 -0
- package/presets/mavis/nuxt/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/nuxt/native-skills/README.md +15 -0
- package/presets/mavis/nuxt/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/nuxt/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/nuxt/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/nuxt/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/nuxt/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/nuxt/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/nuxt/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/nuxt/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/nuxt/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/nuxt/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/nuxt/native-skills/vue-performance/SKILL.md +58 -0
- package/presets/mavis/nuxt/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/nuxt/rules/code-review-mr.md +19 -4
- package/presets/mavis/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +9 -3
- package/presets/mavis/php-hexagonal/README.md +3 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +101 -39
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-hexagonal/agents/task-router.md +2 -0
- package/presets/mavis/php-hexagonal/commands/README.md +1 -0
- package/presets/mavis/php-hexagonal/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/php-hexagonal/commands/task.md +4 -0
- package/presets/mavis/php-hexagonal/commands/update.md +1 -0
- package/presets/mavis/php-hexagonal/hooks/README.md +29 -7
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/php-hexagonal/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-hexagonal/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-hexagonal/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-hexagonal/native-skills/README.md +15 -0
- package/presets/mavis/php-hexagonal/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-hexagonal/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-hexagonal/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-hexagonal/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-hexagonal/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-hexagonal/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-hexagonal/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-hexagonal/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-laravel/MAVIS.md +9 -3
- package/presets/mavis/php-laravel/README.md +3 -1
- package/presets/mavis/php-laravel/adapter-map.json +101 -39
- package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-laravel/agents/task-router.md +2 -0
- package/presets/mavis/php-laravel/commands/README.md +1 -0
- package/presets/mavis/php-laravel/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/php-laravel/commands/task.md +4 -0
- package/presets/mavis/php-laravel/commands/update.md +1 -0
- package/presets/mavis/php-laravel/hooks/README.md +29 -7
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/php-laravel/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-laravel/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-laravel/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-laravel/native-skills/README.md +15 -0
- package/presets/mavis/php-laravel/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-laravel/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-laravel/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-laravel/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-laravel/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-laravel/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-laravel/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-laravel/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-laravel/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-laravel/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-laravel/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/platform-contract.json +18 -5
- package/presets/mavis/svelte/MAVIS.md +9 -3
- package/presets/mavis/svelte/README.md +3 -1
- package/presets/mavis/svelte/adapter-map.json +116 -45
- package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
- package/presets/mavis/svelte/agents/task-router.md +3 -1
- package/presets/mavis/svelte/commands/README.md +1 -0
- package/presets/mavis/svelte/commands/rr-migrate-repositories.md +54 -0
- package/presets/mavis/svelte/commands/task.md +4 -0
- package/presets/mavis/svelte/commands/update.md +1 -0
- package/presets/mavis/svelte/hooks/README.md +29 -7
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/mavis/svelte/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/svelte/hooks/run-hook.mjs +103 -0
- package/presets/mavis/svelte/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/svelte/native-skills/README.md +15 -0
- package/presets/mavis/svelte/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/svelte/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/svelte/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/svelte/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/svelte/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/svelte-performance/SKILL.md +57 -0
- package/presets/mavis/svelte/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/svelte/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/svelte/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/svelte/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/svelte/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/svelte/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/svelte/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/svelte/rules/code-review-mr.md +19 -4
- package/presets/mavis/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/android-kotlin/adapter-map.json +9 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/opencode/android-kotlin/agents/task-router.md +2 -0
- package/presets/opencode/android-kotlin/commands/README.md +1 -0
- package/presets/opencode/android-kotlin/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/android-kotlin/commands/task.md +4 -0
- package/presets/opencode/android-kotlin/commands/update.md +1 -0
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/go/adapter-map.json +9 -1
- package/presets/opencode/go/agents/code-reviewer.md +5 -1
- package/presets/opencode/go/agents/task-router.md +2 -0
- package/presets/opencode/go/commands/README.md +1 -0
- package/presets/opencode/go/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/go/commands/task.md +4 -0
- package/presets/opencode/go/commands/update.md +1 -0
- package/presets/opencode/go/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/go/rules/code-review-mr.md +19 -4
- package/presets/opencode/go/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/ios-swift/adapter-map.json +9 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/opencode/ios-swift/agents/task-router.md +2 -0
- package/presets/opencode/ios-swift/commands/README.md +1 -0
- package/presets/opencode/ios-swift/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/ios-swift/commands/task.md +4 -0
- package/presets/opencode/ios-swift/commands/update.md +1 -0
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/opencode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/java/adapter-map.json +9 -1
- package/presets/opencode/java/agents/code-reviewer.md +5 -1
- package/presets/opencode/java/agents/task-router.md +2 -0
- package/presets/opencode/java/commands/README.md +1 -0
- package/presets/opencode/java/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/java/commands/task.md +4 -0
- package/presets/opencode/java/commands/update.md +1 -0
- package/presets/opencode/java/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/java/rules/code-review-mr.md +19 -4
- package/presets/opencode/java/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/mcp-ts/adapter-map.json +9 -1
- package/presets/opencode/mcp-ts/agents/task-router.md +2 -0
- package/presets/opencode/mcp-ts/commands/README.md +1 -0
- package/presets/opencode/mcp-ts/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/mcp-ts/commands/task.md +4 -0
- package/presets/opencode/mcp-ts/commands/update.md +1 -0
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/REPO_AGENTS.md +1 -1
- package/presets/opencode/mol/adapter-map.json +9 -1
- package/presets/opencode/mol/agents/code-reviewer.md +5 -1
- package/presets/opencode/mol/agents/task-router.md +3 -1
- package/presets/opencode/mol/commands/README.md +1 -0
- package/presets/opencode/mol/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/mol/commands/task.md +4 -0
- package/presets/opencode/mol/commands/update.md +1 -0
- package/presets/opencode/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mol/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/next/REPO_AGENTS.md +1 -1
- package/presets/opencode/next/adapter-map.json +9 -1
- package/presets/opencode/next/agents/code-reviewer.md +5 -1
- package/presets/opencode/next/agents/task-router.md +3 -1
- package/presets/opencode/next/commands/README.md +1 -0
- package/presets/opencode/next/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/next/commands/task.md +4 -0
- package/presets/opencode/next/commands/ui-start.md +12 -4
- package/presets/opencode/next/commands/ui-stop.md +5 -2
- package/presets/opencode/next/commands/update.md +1 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/next/rules/code-review-mr.md +19 -4
- package/presets/opencode/next/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/nuxt/adapter-map.json +9 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/opencode/nuxt/agents/task-router.md +3 -1
- package/presets/opencode/nuxt/commands/README.md +1 -0
- package/presets/opencode/nuxt/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/nuxt/commands/task.md +4 -0
- package/presets/opencode/nuxt/commands/update.md +1 -0
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/opencode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +9 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-hexagonal/agents/task-router.md +2 -0
- package/presets/opencode/php-hexagonal/commands/README.md +1 -0
- package/presets/opencode/php-hexagonal/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/php-hexagonal/commands/task.md +4 -0
- package/presets/opencode/php-hexagonal/commands/update.md +1 -0
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-laravel/adapter-map.json +9 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-laravel/agents/task-router.md +2 -0
- package/presets/opencode/php-laravel/commands/README.md +1 -0
- package/presets/opencode/php-laravel/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/php-laravel/commands/task.md +4 -0
- package/presets/opencode/php-laravel/commands/update.md +1 -0
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/plugins/task-status/README.md +16 -7
- package/presets/opencode/plugins/task-status/deepseek.ts +217 -0
- package/presets/opencode/plugins/task-status/details-data.ts +39 -2
- package/presets/opencode/plugins/task-status/prompt-text.ts +18 -8
- package/presets/opencode/plugins/task-status/task-view.ts +253 -63
- package/presets/opencode/plugins/task-status/tui.tsx +48 -11
- package/presets/opencode/svelte/adapter-map.json +9 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
- package/presets/opencode/svelte/agents/task-router.md +3 -1
- package/presets/opencode/svelte/commands/README.md +1 -0
- package/presets/opencode/svelte/commands/rr-migrate-repositories.md +62 -0
- package/presets/opencode/svelte/commands/task.md +4 -0
- package/presets/opencode/svelte/commands/update.md +1 -0
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/svelte/rules/code-review-mr.md +19 -4
- package/presets/opencode/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/android-kotlin/adapter-map.json +9 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/zcode/android-kotlin/agents/task-router.md +2 -0
- package/presets/zcode/android-kotlin/commands/README.md +1 -0
- package/presets/zcode/android-kotlin/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/android-kotlin/commands/task.md +4 -0
- package/presets/zcode/android-kotlin/commands/update.md +1 -0
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/go/adapter-map.json +9 -1
- package/presets/zcode/go/agents/code-reviewer.md +5 -1
- package/presets/zcode/go/agents/task-router.md +2 -0
- package/presets/zcode/go/commands/README.md +1 -0
- package/presets/zcode/go/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/go/commands/task.md +4 -0
- package/presets/zcode/go/commands/update.md +1 -0
- package/presets/zcode/go/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/go/rules/code-review-mr.md +19 -4
- package/presets/zcode/go/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/ios-swift/adapter-map.json +9 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/zcode/ios-swift/agents/task-router.md +2 -0
- package/presets/zcode/ios-swift/commands/README.md +1 -0
- package/presets/zcode/ios-swift/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/ios-swift/commands/task.md +4 -0
- package/presets/zcode/ios-swift/commands/update.md +1 -0
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/zcode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/java/adapter-map.json +9 -1
- package/presets/zcode/java/agents/code-reviewer.md +5 -1
- package/presets/zcode/java/agents/task-router.md +2 -0
- package/presets/zcode/java/commands/README.md +1 -0
- package/presets/zcode/java/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/java/commands/task.md +4 -0
- package/presets/zcode/java/commands/update.md +1 -0
- package/presets/zcode/java/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/java/rules/code-review-mr.md +19 -4
- package/presets/zcode/java/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/mcp-ts/adapter-map.json +9 -1
- package/presets/zcode/mcp-ts/agents/task-router.md +2 -0
- package/presets/zcode/mcp-ts/commands/README.md +1 -0
- package/presets/zcode/mcp-ts/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/mcp-ts/commands/task.md +4 -0
- package/presets/zcode/mcp-ts/commands/update.md +1 -0
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/REPO_AGENTS.md +1 -1
- package/presets/zcode/mol/adapter-map.json +9 -1
- package/presets/zcode/mol/agents/code-reviewer.md +5 -1
- package/presets/zcode/mol/agents/task-router.md +3 -1
- package/presets/zcode/mol/commands/README.md +1 -0
- package/presets/zcode/mol/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/mol/commands/task.md +4 -0
- package/presets/zcode/mol/commands/update.md +1 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mol/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/next/REPO_AGENTS.md +1 -1
- package/presets/zcode/next/adapter-map.json +9 -1
- package/presets/zcode/next/agents/code-reviewer.md +5 -1
- package/presets/zcode/next/agents/task-router.md +3 -1
- package/presets/zcode/next/commands/README.md +1 -0
- package/presets/zcode/next/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/next/commands/task.md +4 -0
- package/presets/zcode/next/commands/ui-start.md +12 -4
- package/presets/zcode/next/commands/ui-stop.md +5 -2
- package/presets/zcode/next/commands/update.md +1 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/next/rules/code-review-mr.md +19 -4
- package/presets/zcode/next/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/nuxt/adapter-map.json +9 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/zcode/nuxt/agents/task-router.md +3 -1
- package/presets/zcode/nuxt/commands/README.md +1 -0
- package/presets/zcode/nuxt/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/nuxt/commands/task.md +4 -0
- package/presets/zcode/nuxt/commands/update.md +1 -0
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/zcode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +9 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-hexagonal/agents/task-router.md +2 -0
- package/presets/zcode/php-hexagonal/commands/README.md +1 -0
- package/presets/zcode/php-hexagonal/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/php-hexagonal/commands/task.md +4 -0
- package/presets/zcode/php-hexagonal/commands/update.md +1 -0
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-laravel/adapter-map.json +9 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-laravel/agents/task-router.md +2 -0
- package/presets/zcode/php-laravel/commands/README.md +1 -0
- package/presets/zcode/php-laravel/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/php-laravel/commands/task.md +4 -0
- package/presets/zcode/php-laravel/commands/update.md +1 -0
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/svelte/adapter-map.json +9 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
- package/presets/zcode/svelte/agents/task-router.md +3 -1
- package/presets/zcode/svelte/commands/README.md +1 -0
- package/presets/zcode/svelte/commands/rr-migrate-repositories.md +62 -0
- package/presets/zcode/svelte/commands/task.md +4 -0
- package/presets/zcode/svelte/commands/update.md +1 -0
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +109 -1
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/svelte/rules/code-review-mr.md +19 -4
- package/presets/zcode/svelte/skills/code-review/SKILL.md +2 -1
|
@@ -7,7 +7,7 @@ import type { SessionEconomy } from "./economy.ts"
|
|
|
7
7
|
import { createEtaStats, estimateEta } from "./eta.ts"
|
|
8
8
|
import type { EtaStats } from "./eta.ts"
|
|
9
9
|
import { formatAge, formatDuration, formatEta } from "./format.ts"
|
|
10
|
-
import {
|
|
10
|
+
import { normalize, verbatimPrompt } from "./prompt-text.ts"
|
|
11
11
|
import type {
|
|
12
12
|
Metrics,
|
|
13
13
|
MetricEvent,
|
|
@@ -44,7 +44,6 @@ const SESSION_CACHE = 4
|
|
|
44
44
|
const STALE_ATTEMPT_MS = 6 * 60 * 60 * 1000
|
|
45
45
|
const STALE_GATE_MS = 24 * 60 * 60 * 1000
|
|
46
46
|
const STALE_P90_FACTOR = 2
|
|
47
|
-
const MIN_PARTIAL = 24
|
|
48
47
|
const TERMINAL = new Set(["completed"])
|
|
49
48
|
|
|
50
49
|
const DEBUG = process.env.OPENCODE_TASK_STATUS_DEBUG === "1"
|
|
@@ -128,7 +127,9 @@ const isPresent = (file: string): boolean => {
|
|
|
128
127
|
try {
|
|
129
128
|
return fs.statSync(file).isFile()
|
|
130
129
|
} catch (error) {
|
|
131
|
-
|
|
130
|
+
const code = (error as { code?: string }).code
|
|
131
|
+
// An unreadable path is absent: an EACCES sentinel must not show a phantom pause.
|
|
132
|
+
return code !== "ENOENT" && code !== "ENOTDIR" && code !== "EACCES"
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
135
|
|
|
@@ -228,6 +229,25 @@ const progressBar = (value: number, total: number, width = 8): string => {
|
|
|
228
229
|
return `${"█".repeat(filled)}${"░".repeat(width - filled)}`
|
|
229
230
|
}
|
|
230
231
|
|
|
232
|
+
const TASK_COMMAND = /^\s*\/(?:task|task-evil|task-continue|spec-start)\s+/i
|
|
233
|
+
|
|
234
|
+
const stripCommand = (text: string): string => text.replace(TASK_COMMAND, "").trim()
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The prompt as typed and, when it carries a `/task ...` prefix, the words
|
|
238
|
+
* after the command: `prompt.md` may hold either form.
|
|
239
|
+
*/
|
|
240
|
+
const promptVariants = (raw: string): string[] => {
|
|
241
|
+
const text = normalize(verbatimPrompt(raw))
|
|
242
|
+
if (text === "") return []
|
|
243
|
+
const stripped = normalize(stripCommand(text))
|
|
244
|
+
return stripped !== "" && stripped !== text ? [text, stripped] : [text]
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* `prompt.md` is the session anchor. `prompt-log.md` stores every follow-up,
|
|
249
|
+
* confirmations included, so it is not a matching source.
|
|
250
|
+
*/
|
|
231
251
|
const buildPromptIndex = (root: string): PromptEntry[] => {
|
|
232
252
|
const dir = path.join(root, "tasks")
|
|
233
253
|
let entries: Dirent[]
|
|
@@ -239,23 +259,15 @@ const buildPromptIndex = (root: string): PromptEntry[] => {
|
|
|
239
259
|
const index: PromptEntry[] = []
|
|
240
260
|
for (const entry of entries) {
|
|
241
261
|
if (!entry.isDirectory()) continue
|
|
242
|
-
const
|
|
243
|
-
|
|
262
|
+
const promptFile = path.join(dir, entry.name, "prompt.md")
|
|
263
|
+
let texts: string[]
|
|
244
264
|
let updatedAt = 0
|
|
245
|
-
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
const parts = file === "prompt.md" ? [verbatimPrompt(raw)] : logTexts(raw)
|
|
252
|
-
for (const part of parts) {
|
|
253
|
-
const text = normalize(part)
|
|
254
|
-
if (text.length > 0) texts.push(text)
|
|
255
|
-
}
|
|
256
|
-
} catch {
|
|
257
|
-
// prompt files are optional
|
|
258
|
-
}
|
|
265
|
+
try {
|
|
266
|
+
const stat = fs.statSync(promptFile)
|
|
267
|
+
updatedAt = stat.mtimeMs
|
|
268
|
+
texts = promptVariants(fs.readFileSync(promptFile, "utf8"))
|
|
269
|
+
} catch {
|
|
270
|
+
continue
|
|
259
271
|
}
|
|
260
272
|
if (texts.length === 0) continue
|
|
261
273
|
const status = readJson<Status>(statusFile(root, entry.name))
|
|
@@ -270,63 +282,104 @@ const buildPromptIndex = (root: string): PromptEntry[] => {
|
|
|
270
282
|
* substring can never outrank a shorter match from a better tier, and an
|
|
271
283
|
* exact match (handled outright in `computeMatch`) always wins.
|
|
272
284
|
*/
|
|
285
|
+
const MIN_FALLBACK = 40
|
|
286
|
+
const CONTINUE_COMMAND = /(?:^|\s)\/task-continue\s+([a-z0-9][a-z0-9._-]*)/gi
|
|
287
|
+
const TASK_INVOCATION = /^\s*\/(?:task|task-evil)(?:\s|$)/i
|
|
288
|
+
// <!-- i18n-keep: E4 — Russian confirmation keywords -->
|
|
289
|
+
const NOISE =
|
|
290
|
+
/^(?:делай|продолжай|продолжить|continue|resume|дальше|го|да|ок|окей|запускай|запусти|принято|подтверждаю.*|утверждаю.*|согласен.*)$/i
|
|
291
|
+
|
|
292
|
+
const isNoise = (text: string): boolean => NOISE.test(text) || RESUME_WORD.test(text)
|
|
293
|
+
|
|
294
|
+
const explicitSlug = (messages: string[]): string | undefined => {
|
|
295
|
+
// Only a `/task-continue` issued for the current task counts: an approval for
|
|
296
|
+
// an older task in a re-used session must not pin the new one.
|
|
297
|
+
const from = messages.reduce((start, message, index) => (TASK_INVOCATION.test(message) ? index + 1 : start), 0)
|
|
298
|
+
let slug: string | undefined
|
|
299
|
+
for (const message of messages.slice(from)) {
|
|
300
|
+
for (const match of message.matchAll(CONTINUE_COMMAND)) slug = match[1].toLowerCase()
|
|
301
|
+
}
|
|
302
|
+
return slug
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const messageVariants = (message: string): string[] => {
|
|
306
|
+
const stripped = normalize(stripCommand(message))
|
|
307
|
+
return stripped !== "" && stripped !== message ? [message, stripped] : [message]
|
|
308
|
+
}
|
|
309
|
+
|
|
273
310
|
const scoreFor = (message: string, prompt: string): number => {
|
|
274
311
|
if (message === prompt) return 3000 + prompt.length
|
|
275
|
-
if (prompt.length >=
|
|
312
|
+
if (prompt.length >= MIN_FALLBACK && message.includes(prompt)) {
|
|
276
313
|
return 2000 + Math.min(prompt.length, 999)
|
|
277
314
|
}
|
|
278
|
-
if (message.length >=
|
|
315
|
+
if (message.length >= MIN_FALLBACK && prompt.includes(message)) {
|
|
279
316
|
return 1000 + Math.min(message.length, 999)
|
|
280
317
|
}
|
|
281
318
|
return 0
|
|
282
319
|
}
|
|
283
320
|
|
|
284
|
-
const
|
|
285
|
-
if (messages.length === 0) return undefined
|
|
286
|
-
|
|
287
|
-
let continued: string | undefined
|
|
288
|
-
for (const message of messages) {
|
|
289
|
-
const match = /(?:^|\s)\/task-continue\s+([a-z0-9][a-z0-9-]*)/i.exec(message)
|
|
290
|
-
if (match) continued = match[1]
|
|
291
|
-
}
|
|
292
|
-
if (continued) return continued
|
|
293
|
-
|
|
294
|
-
// An exact prompt match wins outright whatever the lengths involved; the
|
|
295
|
-
// substring tiers only rank the remaining candidates. Newest exact wins.
|
|
296
|
-
let exact: PromptEntry | undefined
|
|
297
|
-
for (const entry of index) {
|
|
298
|
-
if (!entry.texts.some((prompt) => messages.includes(prompt))) continue
|
|
299
|
-
if (!exact || entry.updatedAt > exact.updatedAt) exact = entry
|
|
300
|
-
}
|
|
301
|
-
if (exact) return exact.slug
|
|
302
|
-
|
|
321
|
+
const bestFor = (index: PromptEntry[], messages: string[]): PromptEntry | undefined => {
|
|
303
322
|
let best: PromptEntry | undefined
|
|
304
323
|
let bestScore = 0
|
|
305
324
|
for (const entry of index) {
|
|
306
325
|
let score = 0
|
|
307
326
|
for (const message of messages) {
|
|
308
|
-
|
|
309
|
-
|
|
327
|
+
if (isNoise(message)) continue
|
|
328
|
+
for (const variant of messageVariants(message)) {
|
|
329
|
+
for (const prompt of entry.texts) score = Math.max(score, scoreFor(variant, prompt))
|
|
310
330
|
}
|
|
311
331
|
}
|
|
312
332
|
if (score === 0) continue
|
|
313
|
-
// Recency breaks ties inside a tier; `scoreFor` keeps the tiers monotonic.
|
|
314
333
|
if (!best || score > bestScore || (score === bestScore && entry.updatedAt > best.updatedAt)) {
|
|
315
334
|
best = entry
|
|
316
335
|
bestScore = score
|
|
317
336
|
}
|
|
318
337
|
}
|
|
319
|
-
return best
|
|
338
|
+
return best
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* The match anchors on the session's opening prompt. A later confirmation
|
|
343
|
+
* <!-- i18n-keep: E4 — Russian confirmation keywords -->
|
|
344
|
+
* (`делай`, `продолжай`) must never re-map the tab to a newer task; only a
|
|
345
|
+
* session whose first message yields nothing falls back to its later messages,
|
|
346
|
+
* and those must be long enough to mean something.
|
|
347
|
+
*/
|
|
348
|
+
const CONTINUE_ONLY = /^\s*\/task-continue\s+[a-z0-9][a-z0-9._-]*\s*$/i
|
|
349
|
+
|
|
350
|
+
const computeMatch = (index: PromptEntry[], messages: string[]): string | undefined => {
|
|
351
|
+
if (messages.length === 0) return undefined
|
|
352
|
+
// A bare `/task-continue <slug>` is a command, not a prompt: an unknown slug
|
|
353
|
+
// must not hide the session's real opening prompt.
|
|
354
|
+
const prompts = messages.filter((message) => !CONTINUE_ONLY.test(message))
|
|
355
|
+
const opening = prompts[0]
|
|
356
|
+
if (opening) {
|
|
357
|
+
const hit = bestFor(index, [opening])
|
|
358
|
+
if (hit) return hit.slug
|
|
359
|
+
}
|
|
360
|
+
const rest = prompts.slice(1).filter((message) => message.length >= MIN_FALLBACK)
|
|
361
|
+
if (rest.length === 0) return undefined
|
|
362
|
+
return bestFor(index, rest)?.slug
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const fingerprint = (messages: string[]): string => {
|
|
366
|
+
let hash = 0
|
|
367
|
+
for (const message of messages) {
|
|
368
|
+
hash = (Math.imul(hash, 31) + message.length) | 0
|
|
369
|
+
hash = (Math.imul(hash, 31) + (message.charCodeAt(0) | 0)) | 0
|
|
370
|
+
hash = (Math.imul(hash, 31) + (message.charCodeAt(message.length - 1) | 0)) | 0
|
|
371
|
+
}
|
|
372
|
+
return `${messages.length}:${hash}`
|
|
320
373
|
}
|
|
321
374
|
|
|
322
375
|
const matchCache = new WeakMap<PromptEntry[], { key: string; slug: string | undefined }>()
|
|
323
376
|
|
|
324
377
|
/**
|
|
325
378
|
* The sidebar re-renders every second, so matching is memoized on the index
|
|
326
|
-
* generation and
|
|
379
|
+
* generation and a fingerprint of every message; a rebuilt index drops it.
|
|
327
380
|
*/
|
|
328
381
|
const matchTask = (index: PromptEntry[], messages: string[]): string | undefined => {
|
|
329
|
-
const key =
|
|
382
|
+
const key = fingerprint(messages)
|
|
330
383
|
const hit = matchCache.get(index)
|
|
331
384
|
if (hit && hit.key === key) return hit.slug
|
|
332
385
|
const slug = computeMatch(index, messages)
|
|
@@ -432,11 +485,15 @@ const buildTaskView = (
|
|
|
432
485
|
current?.id ?? status.lastCompletedAttempt?.attemptId,
|
|
433
486
|
current?.agent ?? status.currentAgent ?? plannedAgent,
|
|
434
487
|
)
|
|
488
|
+
const waveStep = attempts.reduce<number | undefined>(
|
|
489
|
+
(max, attempt) => (attempt.stepIndex === undefined ? max : Math.max(max ?? 0, attempt.stepIndex)),
|
|
490
|
+
undefined,
|
|
491
|
+
)
|
|
435
492
|
const totalSteps = pipeline?.steps?.length
|
|
436
493
|
const stepNumber = done
|
|
437
494
|
? totalSteps
|
|
438
|
-
:
|
|
439
|
-
?
|
|
495
|
+
: waveStep !== undefined
|
|
496
|
+
? waveStep + 1
|
|
440
497
|
: status.pipelineIndex !== undefined
|
|
441
498
|
? status.pipelineIndex + 1
|
|
442
499
|
: undefined
|
|
@@ -460,7 +517,8 @@ const buildTaskView = (
|
|
|
460
517
|
const statusLine = offline ? `${baseState} · offline` : baseState
|
|
461
518
|
|
|
462
519
|
const agents = attempts.map((attempt) => attempt.agent).filter((agent): agent is string => Boolean(agent))
|
|
463
|
-
const
|
|
520
|
+
const leadAgent = current?.agent ?? agents[0]
|
|
521
|
+
const agentText = agents.length > 1 ? `${leadAgent} +${agents.length - 1}` : leadAgent ?? actor.agent
|
|
464
522
|
|
|
465
523
|
let stepLine: string
|
|
466
524
|
if (state === "paused") {
|
|
@@ -557,6 +615,27 @@ const buildPromptView = (title: string, texts: string[]): TaskView => {
|
|
|
557
615
|
}
|
|
558
616
|
}
|
|
559
617
|
|
|
618
|
+
const resolveSlug = (root: string, slug: string | undefined): string | undefined => {
|
|
619
|
+
if (!slug) return undefined
|
|
620
|
+
if (fs.existsSync(path.join(root, "tasks", slug))) return slug
|
|
621
|
+
try {
|
|
622
|
+
return fs.readdirSync(path.join(root, "tasks")).find((name) => name.toLowerCase() === slug.toLowerCase())
|
|
623
|
+
} catch {
|
|
624
|
+
return undefined
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
const readSessionTitle = (
|
|
629
|
+
options: Pick<TaskWatcherOptions, "sessionTitle">,
|
|
630
|
+
sessionID: string,
|
|
631
|
+
): string => {
|
|
632
|
+
try {
|
|
633
|
+
return options.sessionTitle(sessionID) ?? ""
|
|
634
|
+
} catch {
|
|
635
|
+
return ""
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
560
639
|
const buildSessionView = (
|
|
561
640
|
root: string,
|
|
562
641
|
sessionID: string,
|
|
@@ -567,13 +646,20 @@ const buildSessionView = (
|
|
|
567
646
|
etaStats?: EtaStats,
|
|
568
647
|
offline = false,
|
|
569
648
|
normalized?: string[],
|
|
649
|
+
preferred?: string,
|
|
570
650
|
): TaskView => {
|
|
571
|
-
const
|
|
572
|
-
|
|
651
|
+
const messages = normalized ?? texts.map(normalize).filter(Boolean)
|
|
652
|
+
// An explicit `/task-continue` wins; an unknown slug falls through to the
|
|
653
|
+
// pinned task and then to the prompt match.
|
|
654
|
+
const explicit = resolveSlug(root, explicitSlug(messages))
|
|
655
|
+
const pinned = explicit ? undefined : resolveSlug(root, preferred)
|
|
656
|
+
const matched = explicit || pinned ? undefined : resolveSlug(root, matchTask(index, messages))
|
|
657
|
+
const slug = explicit ?? pinned ?? matched
|
|
658
|
+
if (slug) {
|
|
573
659
|
const status = readJson<Status>(statusFile(root, slug))
|
|
574
660
|
return status ? buildTaskView(root, slug, status, now, etaStats, offline) : buildNoteView(root, slug, now)
|
|
575
661
|
}
|
|
576
|
-
return buildPromptView(options
|
|
662
|
+
return buildPromptView(readSessionTitle(options, sessionID), texts)
|
|
577
663
|
}
|
|
578
664
|
|
|
579
665
|
export const resolveTaskView = (
|
|
@@ -583,6 +669,7 @@ export const resolveTaskView = (
|
|
|
583
669
|
now: number,
|
|
584
670
|
sessionTitle: (sessionID: string) => string | undefined,
|
|
585
671
|
offline = false,
|
|
672
|
+
preferred?: string,
|
|
586
673
|
): TaskView =>
|
|
587
674
|
buildSessionView(
|
|
588
675
|
root,
|
|
@@ -593,6 +680,8 @@ export const resolveTaskView = (
|
|
|
593
680
|
buildPromptIndex(root),
|
|
594
681
|
createEtaStats(root, readJson),
|
|
595
682
|
offline,
|
|
683
|
+
undefined,
|
|
684
|
+
preferred,
|
|
596
685
|
)
|
|
597
686
|
|
|
598
687
|
type SessionState = {
|
|
@@ -605,11 +694,70 @@ type SessionState = {
|
|
|
605
694
|
resumeFor?: string
|
|
606
695
|
}
|
|
607
696
|
|
|
608
|
-
|
|
697
|
+
type LedgerRow = Record<string, unknown>
|
|
698
|
+
type LedgerCache = { size: number; rows: LedgerRow[] }
|
|
699
|
+
|
|
700
|
+
const ledgerCache = new Map<string, LedgerCache>()
|
|
701
|
+
let economyCache: { key: string; value: SessionEconomy } | undefined
|
|
702
|
+
|
|
703
|
+
const parseRows = (text: string): LedgerRow[] => {
|
|
704
|
+
const rows: LedgerRow[] = []
|
|
705
|
+
for (const line of text.split("\n")) {
|
|
706
|
+
const trimmed = line.trim()
|
|
707
|
+
if (trimmed === "") continue
|
|
708
|
+
try {
|
|
709
|
+
const parsed = JSON.parse(trimmed) as unknown
|
|
710
|
+
if (parsed !== null && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
711
|
+
rows.push(parsed as LedgerRow)
|
|
712
|
+
}
|
|
713
|
+
} catch {
|
|
714
|
+
// A torn last line is read again on the next tick.
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
return rows
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* The ledger grows on every tool call; parse only the appended bytes so the
|
|
722
|
+
* one-second tick never re-reads a multi-megabyte file.
|
|
723
|
+
*/
|
|
724
|
+
const readLedgerRows = (file: string): LedgerRow[] => {
|
|
725
|
+
let size: number
|
|
609
726
|
try {
|
|
610
|
-
|
|
727
|
+
size = fs.statSync(file).size
|
|
611
728
|
} catch {
|
|
612
|
-
return
|
|
729
|
+
return []
|
|
730
|
+
}
|
|
731
|
+
const hit = ledgerCache.get(file)
|
|
732
|
+
if (hit && hit.size === size) return hit.rows
|
|
733
|
+
if (!hit || size < hit.size) {
|
|
734
|
+
try {
|
|
735
|
+
const rows = parseRows(fs.readFileSync(file, "utf8"))
|
|
736
|
+
ledgerCache.set(file, { size, rows })
|
|
737
|
+
return rows
|
|
738
|
+
} catch {
|
|
739
|
+
return []
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
try {
|
|
743
|
+
const fd = fs.openSync(file, "r")
|
|
744
|
+
try {
|
|
745
|
+
const length = size - hit.size
|
|
746
|
+
const buffer = Buffer.alloc(length)
|
|
747
|
+
const bytesRead = fs.readSync(fd, buffer, 0, length, hit.size)
|
|
748
|
+
if (bytesRead <= 0) return hit.rows
|
|
749
|
+
const chunk = buffer.subarray(0, bytesRead)
|
|
750
|
+
const newline = chunk.lastIndexOf(0x0a)
|
|
751
|
+
if (newline >= 0) {
|
|
752
|
+
hit.rows.push(...parseRows(chunk.subarray(0, newline + 1).toString("utf8")))
|
|
753
|
+
hit.size += newline + 1
|
|
754
|
+
}
|
|
755
|
+
return hit.rows
|
|
756
|
+
} finally {
|
|
757
|
+
fs.closeSync(fd)
|
|
758
|
+
}
|
|
759
|
+
} catch {
|
|
760
|
+
return hit.rows
|
|
613
761
|
}
|
|
614
762
|
}
|
|
615
763
|
|
|
@@ -617,11 +765,16 @@ const readLedgerText = (file: string): string | undefined => {
|
|
|
617
765
|
const economyForSession = (root: string, sessionID: string): SessionEconomy => {
|
|
618
766
|
try {
|
|
619
767
|
const dir = path.join(root, "output-guard")
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
]
|
|
768
|
+
const sources = [
|
|
769
|
+
readLedgerRows(path.join(dir, "results.jsonl")),
|
|
770
|
+
readLedgerRows(path.join(dir, "results.1.jsonl")),
|
|
771
|
+
readLedgerRows(path.join(dir, "results.2.jsonl")),
|
|
772
|
+
]
|
|
773
|
+
const key = `${sessionID}|${sources.map((rows) => rows.length).join(",")}`
|
|
774
|
+
if (economyCache && economyCache.key === key) return economyCache.value
|
|
775
|
+
const value = sessionEconomy(sessionID, sources)
|
|
776
|
+
economyCache = { key, value }
|
|
777
|
+
return value
|
|
625
778
|
} catch {
|
|
626
779
|
return sessionEconomy("", [])
|
|
627
780
|
}
|
|
@@ -634,6 +787,7 @@ export const createTaskWatcher = (storage: MemoryStorage, options: TaskWatcherOp
|
|
|
634
787
|
let etaStats: EtaStats | undefined
|
|
635
788
|
let etaAt = 0
|
|
636
789
|
const sessions = new Map<string, SessionState>()
|
|
790
|
+
const bindings = new Map<string, string>()
|
|
637
791
|
|
|
638
792
|
const sessionState = (id: string): SessionState => {
|
|
639
793
|
const existing = sessions.get(id)
|
|
@@ -648,6 +802,7 @@ export const createTaskWatcher = (storage: MemoryStorage, options: TaskWatcherOp
|
|
|
648
802
|
const oldest = sessions.keys().next().value
|
|
649
803
|
if (oldest === undefined) break
|
|
650
804
|
sessions.delete(oldest)
|
|
805
|
+
bindings.delete(oldest)
|
|
651
806
|
}
|
|
652
807
|
return created
|
|
653
808
|
}
|
|
@@ -680,13 +835,20 @@ export const createTaskWatcher = (storage: MemoryStorage, options: TaskWatcherOp
|
|
|
680
835
|
const key = `${current.texts.length}:${latest}`
|
|
681
836
|
if (!latest || current.resumeFor === key || !resumeIntent(latest)) return
|
|
682
837
|
current.resumeFor = key
|
|
683
|
-
|
|
838
|
+
// Only an explicit `/task-continue <slug>` may lift a repository-wide stop;
|
|
839
|
+
// a text match does not carry that authority.
|
|
840
|
+
const scope =
|
|
841
|
+
explicitSlug([normalize(latest)]) === slug.toLowerCase()
|
|
842
|
+
? resumableScope(root, slug)
|
|
843
|
+
: isPresent(taskSentinel(root, slug))
|
|
844
|
+
? "task"
|
|
845
|
+
: null
|
|
684
846
|
if (scope && clearPause(root, slug, scope)) {
|
|
685
847
|
logTaskDebug(`resume intent cleared ${scope} pause for ${slug}`)
|
|
686
848
|
}
|
|
687
849
|
}
|
|
688
850
|
|
|
689
|
-
const
|
|
851
|
+
const refreshView = () => {
|
|
690
852
|
const start = options.directory()
|
|
691
853
|
const now = Date.now()
|
|
692
854
|
const root = start ? cachedTeamRoot(start, now) : null
|
|
@@ -718,7 +880,26 @@ export const createTaskWatcher = (storage: MemoryStorage, options: TaskWatcherOp
|
|
|
718
880
|
const current = sessionState(sessionID)
|
|
719
881
|
syncSession(sessionID)
|
|
720
882
|
const offline = current.errorAt !== undefined && now - current.errorAt < OFFLINE_MS
|
|
721
|
-
const
|
|
883
|
+
const pinned = bindings.get(sessionID)
|
|
884
|
+
const view = buildSessionView(
|
|
885
|
+
root,
|
|
886
|
+
sessionID,
|
|
887
|
+
current.texts,
|
|
888
|
+
now,
|
|
889
|
+
options,
|
|
890
|
+
index,
|
|
891
|
+
etaStats,
|
|
892
|
+
offline,
|
|
893
|
+
current.textsNorm,
|
|
894
|
+
pinned,
|
|
895
|
+
)
|
|
896
|
+
// Pin the first successful mapping so a later follow-up cannot flip the tab
|
|
897
|
+
// to another task. An explicit `/task-continue` still re-binds.
|
|
898
|
+
if (view.slug) {
|
|
899
|
+
if (pinned !== view.slug) bindings.set(sessionID, view.slug)
|
|
900
|
+
} else if (pinned && !resolveSlug(root, pinned)) {
|
|
901
|
+
bindings.delete(sessionID)
|
|
902
|
+
}
|
|
722
903
|
const economy = economyForSession(root, sessionID)
|
|
723
904
|
resume(root, current, view.slug)
|
|
724
905
|
update((draft) => {
|
|
@@ -730,6 +911,15 @@ export const createTaskWatcher = (storage: MemoryStorage, options: TaskWatcherOp
|
|
|
730
911
|
)
|
|
731
912
|
}
|
|
732
913
|
|
|
914
|
+
const refresh = () => {
|
|
915
|
+
try {
|
|
916
|
+
refreshView()
|
|
917
|
+
} catch (error) {
|
|
918
|
+
// A throw inside the tick must not freeze the sidebar on an old view.
|
|
919
|
+
logTaskDebug(`refresh failed: ${error instanceof Error ? error.message : String(error)}`)
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
|
|
733
923
|
refresh()
|
|
734
924
|
const timer = setInterval(refresh, TICK_MS)
|
|
735
925
|
return { state, stop: () => clearInterval(timer) }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Plugin, usePlugin } from "@opencode/plugin/tui"
|
|
2
|
+
import { deepseekRate, zaiRate } from "./deepseek.ts"
|
|
2
3
|
import { sessionEconomy } from "./economy.ts"
|
|
3
4
|
import { clearPause, createTaskWatcher, engagePause, logTaskDebug } from "./task-view.ts"
|
|
4
5
|
import { TaskDetails } from "./details.tsx"
|
|
@@ -7,6 +8,8 @@ import type { TaskStore, TaskTone } from "./task-view.ts"
|
|
|
7
8
|
let taskStore: TaskStore = { view: undefined }
|
|
8
9
|
let slot: { readonly sessionID?: string } | undefined
|
|
9
10
|
let lastSessionKey = ""
|
|
11
|
+
// Rebound in setup(); the DeepSeek rate reads the catalog under the live project directory.
|
|
12
|
+
let projectDirectory: () => string | undefined = () => undefined
|
|
10
13
|
|
|
11
14
|
const TaskSidebar = () => {
|
|
12
15
|
const context = usePlugin()
|
|
@@ -20,6 +23,13 @@ const TaskSidebar = () => {
|
|
|
20
23
|
return theme.text.muted
|
|
21
24
|
}
|
|
22
25
|
|
|
26
|
+
const rateColor = (rate: string) =>
|
|
27
|
+
rate === "peak" ? theme.text.feedback.error.base : theme.text.feedback.success.base
|
|
28
|
+
const billingRows = [
|
|
29
|
+
{ label: "DeepSeek", rate: deepseekRate(new Date(), projectDirectory()) },
|
|
30
|
+
{ label: "Z.AI", rate: zaiRate(new Date(), projectDirectory()) },
|
|
31
|
+
]
|
|
32
|
+
|
|
23
33
|
const toggle = () => {
|
|
24
34
|
void updatePanel((draft) => {
|
|
25
35
|
draft.open = !draft.open
|
|
@@ -119,6 +129,16 @@ const TaskSidebar = () => {
|
|
|
119
129
|
</box>
|
|
120
130
|
))
|
|
121
131
|
)}
|
|
132
|
+
{billingRows.map((billing) => (
|
|
133
|
+
<box flexDirection="row" gap={1} minWidth={0} key={billing.label}>
|
|
134
|
+
<text flexShrink={0} fg={theme.text.base}>
|
|
135
|
+
<b>{billing.label}</b>
|
|
136
|
+
</text>
|
|
137
|
+
<text fg={rateColor(billing.rate)} wrapMode="none" truncate flexGrow={1} flexShrink={1} minWidth={0}>
|
|
138
|
+
[{billing.rate}]
|
|
139
|
+
</text>
|
|
140
|
+
</box>
|
|
141
|
+
))}
|
|
122
142
|
</box>
|
|
123
143
|
) : null}
|
|
124
144
|
<box flexDirection="column">
|
|
@@ -141,22 +161,33 @@ const TaskSidebar = () => {
|
|
|
141
161
|
export default Plugin.define({
|
|
142
162
|
id: "ai-rules.task-status",
|
|
143
163
|
setup(context) {
|
|
164
|
+
const liveSession = (id: string | undefined): string | undefined => {
|
|
165
|
+
if (!id) return undefined
|
|
166
|
+
try {
|
|
167
|
+
return context.data.session.get(id) ? id : undefined
|
|
168
|
+
} catch {
|
|
169
|
+
return id
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
projectDirectory = () => {
|
|
173
|
+
try {
|
|
174
|
+
return context.location?.directory ?? context.data.location.default().directory
|
|
175
|
+
} catch {
|
|
176
|
+
return undefined
|
|
177
|
+
}
|
|
178
|
+
}
|
|
144
179
|
const watcher = createTaskWatcher(context.storage, {
|
|
145
|
-
directory:
|
|
146
|
-
try {
|
|
147
|
-
return context.location?.directory ?? context.data.location.default().directory
|
|
148
|
-
} catch {
|
|
149
|
-
return undefined
|
|
150
|
-
}
|
|
151
|
-
},
|
|
180
|
+
directory: projectDirectory,
|
|
152
181
|
sessionID: () => {
|
|
153
182
|
const route = context.ui.router.current()
|
|
154
183
|
const routeSession = route.type === "session" ? route.sessionID : undefined
|
|
155
|
-
|
|
156
|
-
const
|
|
184
|
+
// A slot input can outlive its tab; only trust it while the session exists.
|
|
185
|
+
const slotSession = liveSession(slot?.sessionID)
|
|
186
|
+
const chosen = slotSession ?? routeSession
|
|
187
|
+
const key = `${slotSession ?? "-"}|${routeSession ?? "-"}`
|
|
157
188
|
if (key !== lastSessionKey) {
|
|
158
189
|
lastSessionKey = key
|
|
159
|
-
logTaskDebug(`slot=${
|
|
190
|
+
logTaskDebug(`slot=${slotSession ?? "-"} route=${routeSession ?? "-"}`)
|
|
160
191
|
}
|
|
161
192
|
if (!chosen) return undefined
|
|
162
193
|
try {
|
|
@@ -165,7 +196,13 @@ export default Plugin.define({
|
|
|
165
196
|
return chosen
|
|
166
197
|
}
|
|
167
198
|
},
|
|
168
|
-
sessionTitle: (sessionID) =>
|
|
199
|
+
sessionTitle: (sessionID) => {
|
|
200
|
+
try {
|
|
201
|
+
return context.data.session.get(sessionID)?.title
|
|
202
|
+
} catch {
|
|
203
|
+
return undefined
|
|
204
|
+
}
|
|
205
|
+
},
|
|
169
206
|
userTexts: async (sessionID) => {
|
|
170
207
|
const texts: string[] = []
|
|
171
208
|
let cursor: string | undefined
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "svelte",
|
|
5
5
|
"semanticSource": "cursor/svelte",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "fc3d5cf52fc5a1435279f1860867af5823a51da1b4b071d8163fc85b7a1f8521",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -269,6 +269,14 @@
|
|
|
269
269
|
"loadMode": "native-skill",
|
|
270
270
|
"reason": "Native slash commands under .opencode/commands; $ARGUMENTS kept"
|
|
271
271
|
},
|
|
272
|
+
{
|
|
273
|
+
"source": "commands/rr-migrate-repositories.md",
|
|
274
|
+
"target": "commands/rr-migrate-repositories.md",
|
|
275
|
+
"category": "commands",
|
|
276
|
+
"disposition": "transform",
|
|
277
|
+
"loadMode": "native-skill",
|
|
278
|
+
"reason": "Native slash commands under .opencode/commands; $ARGUMENTS kept"
|
|
279
|
+
},
|
|
272
280
|
{
|
|
273
281
|
"source": "commands/rr-scheduler-start.md",
|
|
274
282
|
"target": "commands/rr-scheduler-start.md",
|
|
@@ -77,8 +77,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
|
|
|
77
77
|
# Code review: <slug>
|
|
78
78
|
|
|
79
79
|
## Verdict
|
|
80
|
-
APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
80
|
+
APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
81
81
|
Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
|
|
82
|
+
`APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
|
|
82
83
|
|
|
83
84
|
## Critical (must fix)
|
|
84
85
|
- ...
|
|
@@ -89,6 +90,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
|
|
|
89
90
|
## Suggestions (nice to have)
|
|
90
91
|
- ...
|
|
91
92
|
|
|
93
|
+
## Open questions
|
|
94
|
+
- <question> — check: <what would settle it> — blocker-candidate: yes | no
|
|
95
|
+
|
|
92
96
|
## Depth passes
|
|
93
97
|
| Pass | Outcome | Evidence or reason |
|
|
94
98
|
|------|---------|--------------------|
|
|
@@ -74,7 +74,7 @@ Set optional top-level `"profile": "full" | "standard" | "light"` in `pipeline.j
|
|
|
74
74
|
|
|
75
75
|
**Closure order:** the last authoring step (`feature-developer`, `qa-tester`, a test generator) is always followed by exactly one `build-verifier`; `code-reviewer` reviews the validated tree. A review fix re-enters the delta verifier before the reviewer sees it again.
|
|
76
76
|
|
|
77
|
-
**Light signals:** one file, one layer, explicit AC in the prompt, no architecture risk. **Never skip `build-verifier`** after developer when app sources changed. **Skip `code-reviewer`**
|
|
77
|
+
**Light signals:** one file, one layer, explicit AC in the prompt, no architecture risk. **Never skip `build-verifier`** after developer when app sources changed. **Skip `code-reviewer`** only when every changed path is prose (`*.md`, docs, snapshots); a diff that touches scripts, hooks, CI, or source runs it at every profile, `light` included.
|
|
78
78
|
|
|
79
79
|
## Task class (spike / bounded / architectural)
|
|
80
80
|
|
|
@@ -218,6 +218,8 @@ Do **not** add a dedicated `spec-author` agent for `docs/specs/**`. Do not requi
|
|
|
218
218
|
|
|
219
219
|
**specMode (optional `pipeline.json` field):** `none` for spike/research; `generate` for `spec-gen` / `/spec-start`; `consume` default when INDEX exists. Echo top-level `specMode`. Brief `## Spec mode` wins on conflict.
|
|
220
220
|
|
|
221
|
+
**repositories (mandatory `pipeline.json` field):** echo `"repositories": [<ids>]` and `"repositoriesInference": "evidence-paths" | "repo-scope-only" | "unknown" | "ambiguous"` immediately after `specMode`, before `summary`; the ids come from `.ai.local/team/repositories.json` and are never defaulted to the workspace repository. Then record the same list as link rows through `node .ai.local/scripts/team-db.mjs repositories apply --file -` — one `{"links": [{taskSlug, repositoryId, source: "intake", inference: "evidence-paths"}]}` envelope per touched repository (the verb takes the envelope, never a bare row). When the request names no repository, write `"repositories": []` with `"unknown"` and one `{"attributions": [{taskSlug, verdict: "unknown", evidence: ""}]}` envelope; `yarn check:task-repositories` fails a folder without the field.
|
|
222
|
+
|
|
221
223
|
Do **not** add a pipeline step for `spec-discovery`. Instruct analyst to load that skill only when the user/AC asks research-before-spec.
|
|
222
224
|
|
|
223
225
|
## Runtime initialization
|
|
@@ -11,6 +11,7 @@ Slash commands are copied to `.opencode/commands/` on `ai-rules init opencode --
|
|
|
11
11
|
| `/technical-retro [slug]` | Retro; with slug — “Agent work” block |
|
|
12
12
|
| `/update` | Reinstall each installed tool with the preset recorded at init |
|
|
13
13
|
| `/migrate-tasks` | Create or reconcile `.ai.local/team/team.db`; writes only the delta |
|
|
14
|
+
| `/rr-migrate-repositories` | Scan repositories on disk, add the missing ones to the local registry, and project the file into `team.db` |
|
|
14
15
|
|
|
15
16
|
## `/task` examples
|
|
16
17
|
|