@bonesofspring/ai-rules 0.2.63 → 0.2.65
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 +96 -1
- package/README.md +11 -4
- package/bin/cli.js +7 -5
- package/bin/lib/ai-local-drift.js +7 -6
- package/bin/lib/engine-scripts.js +17 -4
- package/bin/lib/engine-upgrade.js +10 -2
- package/bin/lib/manifest-schema.js +12 -0
- package/bin/lib/seed-ai-local-team.js +20 -0
- package/bin/mavis-install.js +4 -3
- package/bin/opencode-install.js +22 -6
- package/bin/zcode-install.js +4 -3
- package/docs/MCP-CATALOG.md +1 -1
- package/docs/OPENCODE-COMPATIBILITY.md +3 -2
- package/docs/OPENCODE.md +22 -2
- package/docs/PRESET-CONTRIBUTION.md +43 -2
- package/docs/TEAM-DB.md +213 -5
- package/docs/openapi/team-db.v1.json +5928 -3045
- package/mcp/defectdojo-mcp.mjs +44 -12
- package/mcp/lib/defectdojo.mjs +57 -2
- package/package.json +27 -15
- package/presets/_shared/ai-local/scripts/aggregate-agent-task-metrics.mjs +279 -0
- package/presets/_shared/ai-local/scripts/process-lease.mjs +576 -0
- package/presets/_shared/ai-local/scripts/processes.mjs +1618 -0
- package/presets/_shared/ai-local/scripts/run.mjs +5 -5
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +784 -7
- package/presets/_shared/ai-local/scripts/team-db-dashboard.mjs +235 -10
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +813 -7
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +397 -4
- package/presets/_shared/ai-local/scripts/team-db-scheduler.mjs +86 -10
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +221 -0
- package/presets/_shared/ai-local/scripts/team-db-task-runner.mjs +567 -0
- package/presets/_shared/ai-local/scripts/team-db-tracker.mjs +2069 -0
- package/presets/_shared/ai-local/scripts/team-db-ui.mjs +750 -0
- package/presets/_shared/ai-local/scripts/team-db.mjs +151 -7
- package/presets/_shared/ai-local/scripts/upstream-research.mjs +3 -0
- package/presets/_shared/core/agent-team/agent-task-metrics.md +7 -2
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +2 -1
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +314 -1
- package/presets/_shared/hooks/guard-shell-command.mjs.tmpl +40 -2
- package/presets/_shared/hooks/run-hook.mjs +2 -1
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/android-kotlin/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/android-kotlin/hooks/run-hook.mjs +2 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/android-kotlin/settings.json +6 -1
- package/presets/claude/go/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/go/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/go/hooks/run-hook.mjs +2 -1
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/go/settings.json +6 -1
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/ios-swift/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/ios-swift/hooks/run-hook.mjs +2 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/ios-swift/settings.json +6 -1
- package/presets/claude/java/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/java/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/java/hooks/run-hook.mjs +2 -1
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/java/settings.json +6 -1
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/mcp-ts/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/mcp-ts/hooks/run-hook.mjs +2 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/mcp-ts/settings.json +6 -1
- package/presets/claude/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/mol/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/mol/hooks/run-hook.mjs +2 -1
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/mol/settings.json +6 -1
- package/presets/claude/next/MCP.md +2 -0
- package/presets/claude/next/REPO_AGENTS.md +2 -0
- package/presets/claude/next/agents/build-verifier.md +1 -1
- package/presets/claude/next/agents/ci-investigator.md +3 -0
- package/presets/claude/next/agents/code-reviewer.md +1 -0
- package/presets/claude/next/agents/debugger.md +3 -0
- package/presets/claude/next/agents/feature-developer.md +3 -0
- package/presets/claude/next/agents/mockup-reviewer.md +4 -1
- package/presets/claude/next/agents/performance-auditor.md +2 -0
- package/presets/claude/next/agents/playwright-test-generator.md +3 -0
- package/presets/claude/next/agents/playwright-test-healer.md +3 -0
- package/presets/claude/next/agents/playwright-test-planner.md +3 -0
- package/presets/claude/next/agents/qa-tester.md +3 -0
- package/presets/claude/next/agents/task-analyst.md +2 -0
- package/presets/claude/next/commands/README.md +6 -0
- package/presets/claude/next/commands/task.md +7 -1
- package/presets/claude/next/commands/technical-retro.md +7 -1
- package/presets/claude/next/commands/ui-start.md +78 -0
- package/presets/claude/next/commands/ui-stop.md +71 -0
- package/presets/claude/next/commands/upstream-research.md +1 -1
- package/presets/claude/next/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/next/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/next/hooks/run-hook.mjs +2 -1
- package/presets/claude/next/rules/README.md +2 -1
- package/presets/claude/next/rules/stack/next-app-core.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/next/rules/tooling-and-review/dev-process-lifecycle.md +43 -0
- package/presets/claude/next/settings.json +6 -1
- package/presets/claude/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/claude/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/claude/next/team/README.md +5 -1
- package/presets/claude/next/team/upstream/jobs.json +34 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/nuxt/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/nuxt/hooks/run-hook.mjs +2 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/nuxt/settings.json +6 -1
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/php-hexagonal/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/php-hexagonal/hooks/run-hook.mjs +2 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/php-hexagonal/settings.json +6 -1
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/claude/php-laravel/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/php-laravel/hooks/run-hook.mjs +2 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/php-laravel/settings.json +6 -1
- package/presets/claude/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/claude/svelte/hooks/guard-shell-command.mjs +41 -2
- package/presets/claude/svelte/hooks/run-hook.mjs +2 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
- package/presets/claude/svelte/settings.json +6 -1
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/android-kotlin/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/android-kotlin/hooks/run-hook.mjs +2 -1
- package/presets/cursor/go/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/go/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/go/hooks/run-hook.mjs +2 -1
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/ios-swift/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/ios-swift/hooks/run-hook.mjs +2 -1
- package/presets/cursor/java/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/java/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/java/hooks/run-hook.mjs +2 -1
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/mcp-ts/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/mcp-ts/hooks/run-hook.mjs +2 -1
- package/presets/cursor/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/mol/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/mol/hooks/run-hook.mjs +2 -1
- package/presets/cursor/next/MCP.md +2 -0
- package/presets/cursor/next/REPO_AGENTS.md +2 -0
- package/presets/cursor/next/agents/build-verifier.md +1 -1
- package/presets/cursor/next/agents/ci-investigator.md +2 -0
- package/presets/cursor/next/agents/code-reviewer.md +1 -0
- package/presets/cursor/next/agents/debugger.md +2 -0
- package/presets/cursor/next/agents/feature-developer.md +2 -0
- package/presets/cursor/next/agents/mockup-reviewer.md +4 -1
- package/presets/cursor/next/agents/performance-auditor.md +2 -0
- package/presets/cursor/next/agents/playwright-test-generator.md +2 -0
- package/presets/cursor/next/agents/playwright-test-healer.md +2 -0
- package/presets/cursor/next/agents/playwright-test-planner.md +2 -0
- package/presets/cursor/next/agents/qa-tester.md +2 -0
- package/presets/cursor/next/agents/task-analyst.md +2 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +2 -1
- package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/cursor/next/commands/README.md +6 -0
- package/presets/cursor/next/commands/task.md +7 -1
- package/presets/cursor/next/commands/technical-retro.md +7 -1
- package/presets/cursor/next/commands/ui-start.md +78 -0
- package/presets/cursor/next/commands/ui-stop.md +71 -0
- package/presets/cursor/next/commands/upstream-research.md +1 -1
- package/presets/cursor/next/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/next/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/next/hooks/run-hook.mjs +2 -1
- package/presets/cursor/next/rules/README.md +2 -1
- package/presets/cursor/next/rules/dev-process-lifecycle.mdc +43 -0
- package/presets/cursor/next/rules/next-app-core.mdc +1 -0
- package/presets/cursor/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/cursor/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/cursor/next/team/README.md +5 -1
- package/presets/cursor/next/team/upstream/jobs.json +34 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/nuxt/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/nuxt/hooks/run-hook.mjs +2 -1
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/php-hexagonal/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/php-hexagonal/hooks/run-hook.mjs +2 -1
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/cursor/php-laravel/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/php-laravel/hooks/run-hook.mjs +2 -1
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/cursor/svelte/hooks/guard-shell-command.mjs +41 -2
- package/presets/cursor/svelte/hooks/run-hook.mjs +2 -1
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/go/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/java/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/mol/adapter-map.json +1 -1
- package/presets/mavis/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/next/MCP.md +2 -0
- package/presets/mavis/next/REPO_AGENTS.md +2 -0
- package/presets/mavis/next/adapter-map.json +33 -1
- package/presets/mavis/next/agents/build-verifier.md +1 -1
- package/presets/mavis/next/agents/ci-investigator.md +3 -0
- package/presets/mavis/next/agents/code-reviewer.md +1 -0
- package/presets/mavis/next/agents/debugger.md +3 -0
- package/presets/mavis/next/agents/feature-developer.md +3 -0
- package/presets/mavis/next/agents/mockup-reviewer.md +4 -1
- package/presets/mavis/next/agents/performance-auditor.md +2 -0
- package/presets/mavis/next/agents/playwright-test-generator.md +3 -0
- package/presets/mavis/next/agents/playwright-test-healer.md +3 -0
- package/presets/mavis/next/agents/playwright-test-planner.md +3 -0
- package/presets/mavis/next/agents/qa-tester.md +3 -0
- package/presets/mavis/next/agents/task-analyst.md +2 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +2 -1
- package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/mavis/next/commands/README.md +6 -0
- package/presets/mavis/next/commands/task.md +7 -1
- package/presets/mavis/next/commands/technical-retro.md +7 -1
- package/presets/mavis/next/commands/ui-start.md +73 -0
- package/presets/mavis/next/commands/ui-stop.md +66 -0
- package/presets/mavis/next/commands/upstream-research.md +1 -1
- package/presets/mavis/next/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/next/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/next/rules/dev-process-lifecycle.md +38 -0
- package/presets/mavis/next/rules/next-app-core.md +1 -0
- package/presets/mavis/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/mavis/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/mavis/next/team/README.md +5 -1
- package/presets/mavis/next/team/upstream/jobs.json +34 -0
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +2 -1
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/android-kotlin/OPENCODE.md +4 -1
- package/presets/opencode/android-kotlin/README.md +1 -0
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/hooks/README.md +4 -2
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/android-kotlin/opencode.json +5 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/go/OPENCODE.md +4 -1
- package/presets/opencode/go/README.md +1 -0
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/hooks/README.md +4 -2
- package/presets/opencode/go/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/go/opencode.json +5 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/ios-swift/OPENCODE.md +4 -1
- package/presets/opencode/ios-swift/README.md +1 -0
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/hooks/README.md +4 -2
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/ios-swift/opencode.json +5 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/java/OPENCODE.md +4 -1
- package/presets/opencode/java/README.md +1 -0
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/hooks/README.md +4 -2
- package/presets/opencode/java/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/java/opencode.json +5 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/mcp-ts/OPENCODE.md +4 -1
- package/presets/opencode/mcp-ts/README.md +1 -0
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/hooks/README.md +4 -2
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/mcp-ts/opencode.json +5 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/mol/OPENCODE.md +4 -1
- package/presets/opencode/mol/README.md +1 -0
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/hooks/README.md +4 -2
- package/presets/opencode/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/mol/opencode.json +4 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/next/MCP.md +2 -0
- package/presets/opencode/next/OPENCODE.md +4 -1
- package/presets/opencode/next/README.md +1 -0
- package/presets/opencode/next/REPO_AGENTS.md +2 -0
- package/presets/opencode/next/adapter-map.json +33 -1
- package/presets/opencode/next/agents/build-verifier.md +1 -1
- package/presets/opencode/next/agents/ci-investigator.md +3 -0
- package/presets/opencode/next/agents/code-reviewer.md +1 -0
- package/presets/opencode/next/agents/debugger.md +3 -0
- package/presets/opencode/next/agents/feature-developer.md +3 -0
- package/presets/opencode/next/agents/mockup-reviewer.md +4 -1
- package/presets/opencode/next/agents/performance-auditor.md +2 -0
- package/presets/opencode/next/agents/playwright-test-generator.md +3 -0
- package/presets/opencode/next/agents/playwright-test-healer.md +3 -0
- package/presets/opencode/next/agents/playwright-test-planner.md +3 -0
- package/presets/opencode/next/agents/qa-tester.md +3 -0
- package/presets/opencode/next/agents/task-analyst.md +2 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +2 -1
- package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/opencode/next/commands/README.md +6 -0
- package/presets/opencode/next/commands/task.md +7 -1
- package/presets/opencode/next/commands/technical-retro.md +7 -1
- package/presets/opencode/next/commands/ui-start.md +81 -0
- package/presets/opencode/next/commands/ui-stop.md +74 -0
- package/presets/opencode/next/commands/upstream-research.md +1 -1
- package/presets/opencode/next/hooks/README.md +4 -2
- package/presets/opencode/next/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/next/opencode.json +4 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/next/rules/dev-process-lifecycle.md +38 -0
- package/presets/opencode/next/rules/next-app-core.md +1 -0
- package/presets/opencode/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/opencode/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/opencode/next/team/README.md +5 -1
- package/presets/opencode/next/team/upstream/jobs.json +34 -0
- package/presets/opencode/nuxt/OPENCODE.md +4 -1
- package/presets/opencode/nuxt/README.md +1 -0
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/hooks/README.md +4 -2
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/nuxt/opencode.json +4 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/php-hexagonal/OPENCODE.md +4 -1
- package/presets/opencode/php-hexagonal/README.md +1 -0
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/hooks/README.md +4 -2
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/php-hexagonal/opencode.json +5 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/php-laravel/OPENCODE.md +4 -1
- package/presets/opencode/php-laravel/README.md +1 -0
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/hooks/README.md +4 -2
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/opencode/php-laravel/opencode.json +5 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +2 -1
- package/presets/opencode/platform-contract.json +6 -0
- package/presets/opencode/plugins/task-status/README.md +92 -0
- package/presets/opencode/plugins/task-status/details-data.ts +130 -0
- package/presets/opencode/plugins/task-status/details.tsx +84 -0
- package/presets/opencode/plugins/task-status/eta.ts +230 -0
- package/presets/opencode/plugins/task-status/index.ts +6 -0
- package/presets/opencode/plugins/task-status/package.json +10 -0
- package/presets/opencode/plugins/task-status/task-view.ts +606 -0
- package/presets/opencode/plugins/task-status/tui.tsx +139 -0
- package/presets/opencode/svelte/OPENCODE.md +4 -1
- package/presets/opencode/svelte/README.md +1 -0
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/hooks/README.md +4 -2
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/opencode/svelte/opencode.json +4 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/go/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/java/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/next/MCP.md +2 -0
- package/presets/zcode/next/REPO_AGENTS.md +2 -0
- package/presets/zcode/next/adapter-map.json +33 -1
- package/presets/zcode/next/agents/build-verifier.md +1 -1
- package/presets/zcode/next/agents/ci-investigator.md +3 -0
- package/presets/zcode/next/agents/code-reviewer.md +1 -0
- package/presets/zcode/next/agents/debugger.md +3 -0
- package/presets/zcode/next/agents/feature-developer.md +3 -0
- package/presets/zcode/next/agents/mockup-reviewer.md +4 -1
- package/presets/zcode/next/agents/performance-auditor.md +2 -0
- package/presets/zcode/next/agents/playwright-test-generator.md +3 -0
- package/presets/zcode/next/agents/playwright-test-healer.md +3 -0
- package/presets/zcode/next/agents/playwright-test-planner.md +3 -0
- package/presets/zcode/next/agents/qa-tester.md +3 -0
- package/presets/zcode/next/agents/task-analyst.md +2 -0
- package/presets/zcode/next/ai-local/rules-library/storybook-dev-compare-figma.md +2 -1
- package/presets/zcode/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/zcode/next/commands/README.md +6 -0
- package/presets/zcode/next/commands/task.md +7 -1
- package/presets/zcode/next/commands/technical-retro.md +7 -1
- package/presets/zcode/next/commands/ui-start.md +81 -0
- package/presets/zcode/next/commands/ui-stop.md +74 -0
- package/presets/zcode/next/commands/upstream-research.md +1 -1
- package/presets/zcode/next/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/next/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/next/rules/dev-process-lifecycle.md +38 -0
- package/presets/zcode/next/rules/next-app-core.md +1 -0
- package/presets/zcode/next/skills/figma-fidelity/SKILL.md +4 -1
- package/presets/zcode/next/skills/mockup-review/SKILL.md +4 -0
- package/presets/zcode/next/team/README.md +5 -1
- package/presets/zcode/next/team/upstream/jobs.json +34 -0
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +315 -2
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +2 -1
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +314 -1
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +2 -1
- package/scripts/aggregate-agent-task-metrics.mjs +48 -4
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Rules the shipped client keeps (asserted by `test-team-db-dashboard.mjs`):
|
|
9
9
|
* same-origin relative URLs only, every dynamic value through `textContent`,
|
|
10
|
-
* no HTML sink, and
|
|
11
|
-
*/
|
|
10
|
+
* no HTML sink, and a named mutating allowlist — the task surface mutates only
|
|
11
|
+
* through the rescan and the confirmed delete, the tracker surface never. */
|
|
12
12
|
|
|
13
13
|
export const DASHBOARD_HTML = `<!doctype html>
|
|
14
14
|
<html lang="en">
|
|
@@ -28,7 +28,7 @@ export const DASHBOARD_HTML = `<!doctype html>
|
|
|
28
28
|
</header>
|
|
29
29
|
<main id="main">
|
|
30
30
|
<section id="view-list" aria-labelledby="list-heading">
|
|
31
|
-
<h2 id="list-heading">Tasks</h2>
|
|
31
|
+
<h2 id="list-heading" tabindex="-1">Tasks</h2>
|
|
32
32
|
<form id="filters" class="filters" role="search" aria-label="Task filters">
|
|
33
33
|
<div class="field">
|
|
34
34
|
<label for="filter-q">Search</label>
|
|
@@ -163,12 +163,46 @@ export const DASHBOARD_HTML = `<!doctype html>
|
|
|
163
163
|
<summary>Prompts (verbatim, local only)</summary>
|
|
164
164
|
<div class="panel-body"></div>
|
|
165
165
|
</details>
|
|
166
|
-
<p class="detail-actions"><a id="link-export" href="/api/v1/tasks">Download task JSON</a></p>
|
|
166
|
+
<p class="detail-actions"><a id="link-export" href="/api/v1/tasks">Download task JSON</a> <button id="task-delete" type="button">Delete task</button></p>
|
|
167
|
+
<p id="task-delete-status" class="state" role="status" aria-live="polite" hidden></p>
|
|
167
168
|
</section>
|
|
168
169
|
<nav id="top-nav" class="top-nav" aria-label="Projection views">
|
|
169
170
|
<a id="nav-tasks" href="/" aria-current="page">Tasks</a>
|
|
171
|
+
<a id="nav-tracker" href="/?view=tracker">Tracker</a>
|
|
170
172
|
<a id="nav-jobs" href="/?view=jobs">Jobs</a>
|
|
171
173
|
</nav>
|
|
174
|
+
<section id="view-tracker" aria-labelledby="tracker-heading" hidden>
|
|
175
|
+
<h2 id="tracker-heading">Tracker</h2>
|
|
176
|
+
<p class="lede">Read-only. Create, update, enqueue and cancel stay in <code>team-db.mjs tracker</code> and the API.</p>
|
|
177
|
+
<p id="tracker-loading" class="state" role="status" aria-live="polite" hidden>Loading…</p>
|
|
178
|
+
<p id="tracker-error" class="state error" role="alert" hidden></p>
|
|
179
|
+
<p id="tracker-empty" class="state" role="status" aria-live="polite" hidden>No tracker items.</p>
|
|
180
|
+
<table id="tracker-table" class="tasks" aria-label="Tracker items">
|
|
181
|
+
<caption>Tracker items in the local projection</caption>
|
|
182
|
+
<thead>
|
|
183
|
+
<tr>
|
|
184
|
+
<th scope="col">Item</th>
|
|
185
|
+
<th scope="col">Title</th>
|
|
186
|
+
<th scope="col">Status</th>
|
|
187
|
+
<th scope="col">Priority</th>
|
|
188
|
+
<th scope="col">Type</th>
|
|
189
|
+
<th scope="col">Ready</th>
|
|
190
|
+
<th scope="col">Updated</th>
|
|
191
|
+
</tr>
|
|
192
|
+
</thead>
|
|
193
|
+
<tbody id="tracker-rows"></tbody>
|
|
194
|
+
</table>
|
|
195
|
+
<section id="tracker-item" class="panel" data-endpoint="/api/v1/tracker/{id}" aria-labelledby="tracker-item-title">
|
|
196
|
+
<h3 id="tracker-item-title">Item detail</h3>
|
|
197
|
+
<p id="tracker-item-empty" class="state">Select an item to see its dependencies, links and queue entries.</p>
|
|
198
|
+
<div class="panel-body"></div>
|
|
199
|
+
</section>
|
|
200
|
+
<section id="tracker-queue" class="panel" data-endpoint="/api/v1/tracker/queue" aria-labelledby="tracker-queue-title">
|
|
201
|
+
<h3 id="tracker-queue-title">Queue</h3>
|
|
202
|
+
<p id="tracker-queue-empty" class="state" hidden>No queue entries.</p>
|
|
203
|
+
<div class="panel-body"></div>
|
|
204
|
+
</section>
|
|
205
|
+
</section>
|
|
172
206
|
<section id="view-jobs" aria-labelledby="jobs-heading" hidden>
|
|
173
207
|
<h2 id="jobs-heading">Scheduled jobs</h2>
|
|
174
208
|
<form id="jobs-filters" class="filters" role="search" aria-label="Job filters">
|
|
@@ -782,6 +816,7 @@ export const DASHBOARD_JS = `(function () {
|
|
|
782
816
|
var failure = new Error(envelope.message || 'request failed');
|
|
783
817
|
failure.code = envelope.code || 'E_INTERNAL';
|
|
784
818
|
failure.status = response.status;
|
|
819
|
+
failure.details = envelope.details || null;
|
|
785
820
|
throw failure;
|
|
786
821
|
}
|
|
787
822
|
return parsed;
|
|
@@ -1180,6 +1215,8 @@ export const DASHBOARD_JS = `(function () {
|
|
|
1180
1215
|
state.slug = slug;
|
|
1181
1216
|
cache = {};
|
|
1182
1217
|
showView('view-detail');
|
|
1218
|
+
byId('task-delete-status').hidden = true;
|
|
1219
|
+
byId('task-delete-status').textContent = '';
|
|
1183
1220
|
byId('link-export').href = '/api/v1/tasks/' + encodeURIComponent(slug) + '/export';
|
|
1184
1221
|
writeUrl();
|
|
1185
1222
|
var sections = document.querySelectorAll('#view-detail [data-endpoint]');
|
|
@@ -1268,6 +1305,185 @@ export const DASHBOARD_JS = `(function () {
|
|
|
1268
1305
|
});
|
|
1269
1306
|
};
|
|
1270
1307
|
|
|
1308
|
+
var deleteTask = function () {
|
|
1309
|
+
var slug = state.slug;
|
|
1310
|
+
if (!slug) return;
|
|
1311
|
+
if (!confirm('Delete task ' + slug + ' and its projection rows? The task folder is removed.')) return;
|
|
1312
|
+
var status = byId('task-delete-status');
|
|
1313
|
+
var button = byId('task-delete');
|
|
1314
|
+
status.hidden = false;
|
|
1315
|
+
status.textContent = 'Deleting ' + slug + '…';
|
|
1316
|
+
button.disabled = true;
|
|
1317
|
+
request('/api/v1/tasks/' + encodeURIComponent(slug), { method: 'DELETE' })
|
|
1318
|
+
.then(function (payload) {
|
|
1319
|
+
// The success text lands in the page-level banner, not in
|
|
1320
|
+
// #task-delete-status: the list view replaces the detail view in this
|
|
1321
|
+
// same task, so a live region inside it would be hidden before it is
|
|
1322
|
+
// announced.
|
|
1323
|
+
var removed = payload && payload.slug ? payload.slug : slug;
|
|
1324
|
+
status.hidden = true;
|
|
1325
|
+
status.textContent = '';
|
|
1326
|
+
byId('banner').hidden = false;
|
|
1327
|
+
byId('banner').textContent = 'Deleted ' + removed + '. Back to the list.';
|
|
1328
|
+
state.slug = '';
|
|
1329
|
+
showList();
|
|
1330
|
+
loadList();
|
|
1331
|
+
byId('list-heading').focus();
|
|
1332
|
+
})
|
|
1333
|
+
.catch(function (error) {
|
|
1334
|
+
var described = describeError(error);
|
|
1335
|
+
var active = error.details && error.details.activeSlug ? ' Active task: ' + error.details.activeSlug + '.' : '';
|
|
1336
|
+
status.textContent = described.code + ': ' + described.message + active;
|
|
1337
|
+
})
|
|
1338
|
+
.then(function () {
|
|
1339
|
+
button.disabled = false;
|
|
1340
|
+
});
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
/* -------------------------------- tracker --------------------------------- */
|
|
1344
|
+
|
|
1345
|
+
var trackerState = { id: '' };
|
|
1346
|
+
|
|
1347
|
+
var trackerItemView = function (payload) {
|
|
1348
|
+
var item = payload.item;
|
|
1349
|
+
var wrapper = document.createElement('div');
|
|
1350
|
+
wrapper.appendChild(kv([
|
|
1351
|
+
['Item', item.id],
|
|
1352
|
+
['Title', item.title],
|
|
1353
|
+
['Status', badge(item.effectiveStatus)],
|
|
1354
|
+
['Declared status', item.status],
|
|
1355
|
+
['Priority', item.priority],
|
|
1356
|
+
['Type', item.type],
|
|
1357
|
+
['Ready', item.ready ? 'yes' : 'no'],
|
|
1358
|
+
['Waiting on', (item.waitingOn || []).join(', ')],
|
|
1359
|
+
['Source task', item.sourceTask],
|
|
1360
|
+
['Queue entry', item.queueEntryId],
|
|
1361
|
+
['Created', formatDate(item.createdAt)],
|
|
1362
|
+
['Updated', formatDate(item.updatedAt)]
|
|
1363
|
+
]));
|
|
1364
|
+
if (item.description) wrapper.appendChild(text('p', item.description));
|
|
1365
|
+
wrapper.appendChild(text('h4', 'Dependencies'));
|
|
1366
|
+
wrapper.appendChild(
|
|
1367
|
+
payload.dependencies.length === 0
|
|
1368
|
+
? text('p', 'No dependencies.')
|
|
1369
|
+
: miniTable(['Item', 'Title', 'Status', 'Satisfied'], payload.dependencies.map(function (dependency) {
|
|
1370
|
+
return [dependency.id, dependency.title, dependency.status, dependency.satisfied ? 'yes' : 'no'];
|
|
1371
|
+
}))
|
|
1372
|
+
);
|
|
1373
|
+
wrapper.appendChild(text('h4', 'Dependents'));
|
|
1374
|
+
wrapper.appendChild(
|
|
1375
|
+
payload.dependents.length === 0
|
|
1376
|
+
? text('p', 'No dependents.')
|
|
1377
|
+
: miniTable(['Item', 'Title', 'Status', 'Satisfied'], payload.dependents.map(function (dependent) {
|
|
1378
|
+
return [dependent.id, dependent.title, dependent.status, dependent.satisfied ? 'yes' : 'no'];
|
|
1379
|
+
}))
|
|
1380
|
+
);
|
|
1381
|
+
wrapper.appendChild(text('h4', 'Linked tasks'));
|
|
1382
|
+
wrapper.appendChild(
|
|
1383
|
+
payload.tasks.length === 0
|
|
1384
|
+
? text('p', 'No linked tasks.')
|
|
1385
|
+
: miniTable(['Task', 'Role', 'Decision', 'State', 'Entry status'], payload.tasks.map(function (task) {
|
|
1386
|
+
return [task.taskSlug, task.role, task.decision, task.effectiveState, task.entryStatus];
|
|
1387
|
+
}))
|
|
1388
|
+
);
|
|
1389
|
+
wrapper.appendChild(text('h4', 'Queue entries'));
|
|
1390
|
+
wrapper.appendChild(trackerQueueTable(payload.queue));
|
|
1391
|
+
return wrapper;
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
var trackerQueueTable = function (entries) {
|
|
1395
|
+
if (entries.length === 0) return text('p', 'No queue entries.');
|
|
1396
|
+
return miniTable(['Entry', 'Task', 'Status', 'Requested', 'Claimed', 'Finished'], entries.map(function (entry) {
|
|
1397
|
+
return [entry.entryId, entry.taskSlug, entry.status, formatDate(entry.requestedAt), formatDate(entry.claimedAt), formatDate(entry.finishedAt)];
|
|
1398
|
+
}));
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
var openTrackerItem = function (id) {
|
|
1402
|
+
trackerState.id = id;
|
|
1403
|
+
var body = byId('tracker-item').querySelector('.panel-body');
|
|
1404
|
+
byId('tracker-item-empty').hidden = true;
|
|
1405
|
+
clear(body);
|
|
1406
|
+
body.appendChild(text('p', 'Loading…', 'section-state'));
|
|
1407
|
+
request('/api/v1/tracker/' + encodeURIComponent(id))
|
|
1408
|
+
.then(function (payload) {
|
|
1409
|
+
clear(body);
|
|
1410
|
+
body.appendChild(trackerItemView(payload));
|
|
1411
|
+
})
|
|
1412
|
+
.catch(function (error) {
|
|
1413
|
+
var described = describeError(error);
|
|
1414
|
+
clear(body);
|
|
1415
|
+
body.appendChild(text('p', described.code + ': ' + described.message, 'section-error'));
|
|
1416
|
+
});
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
var renderTrackerRows = function (payload) {
|
|
1420
|
+
var body = byId('tracker-rows');
|
|
1421
|
+
clear(body);
|
|
1422
|
+
payload.items.forEach(function (item) {
|
|
1423
|
+
var tr = document.createElement('tr');
|
|
1424
|
+
var head = document.createElement('th');
|
|
1425
|
+
head.setAttribute('scope', 'row');
|
|
1426
|
+
var link = document.createElement('a');
|
|
1427
|
+
link.href = '/?view=tracker&item=' + encodeURIComponent(item.id);
|
|
1428
|
+
link.textContent = item.id;
|
|
1429
|
+
link.addEventListener('click', function (event) {
|
|
1430
|
+
event.preventDefault();
|
|
1431
|
+
openTrackerItem(item.id);
|
|
1432
|
+
});
|
|
1433
|
+
head.appendChild(link);
|
|
1434
|
+
tr.appendChild(head);
|
|
1435
|
+
tr.appendChild(text('td', item.title));
|
|
1436
|
+
tr.appendChild((function () { var td = document.createElement('td'); td.appendChild(badge(item.effectiveStatus)); return td; })());
|
|
1437
|
+
tr.appendChild(text('td', item.priority));
|
|
1438
|
+
tr.appendChild(text('td', item.type));
|
|
1439
|
+
tr.appendChild(text('td', item.ready ? 'yes' : 'no'));
|
|
1440
|
+
tr.appendChild(text('td', formatDate(item.updatedAt)));
|
|
1441
|
+
body.appendChild(tr);
|
|
1442
|
+
});
|
|
1443
|
+
byId('tracker-empty').hidden = payload.total !== 0;
|
|
1444
|
+
byId('tracker-table').hidden = payload.total === 0;
|
|
1445
|
+
};
|
|
1446
|
+
|
|
1447
|
+
var renderTrackerQueue = function (payload) {
|
|
1448
|
+
var body = byId('tracker-queue').querySelector('.panel-body');
|
|
1449
|
+
clear(body);
|
|
1450
|
+
body.appendChild(trackerQueueTable(payload.items));
|
|
1451
|
+
byId('tracker-queue-empty').hidden = payload.total !== 0;
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
var loadTracker = function () {
|
|
1455
|
+
byId('tracker-loading').hidden = false;
|
|
1456
|
+
byId('tracker-error').hidden = true;
|
|
1457
|
+
byId('tracker-table').setAttribute('aria-busy', 'true');
|
|
1458
|
+
var params = new URLSearchParams();
|
|
1459
|
+
params.set('limit', String(PAGE_SIZE));
|
|
1460
|
+
return Promise.all([
|
|
1461
|
+
request('/api/v1/tracker?' + params.toString()),
|
|
1462
|
+
request('/api/v1/tracker/queue?' + params.toString())
|
|
1463
|
+
])
|
|
1464
|
+
.then(function (payloads) {
|
|
1465
|
+
renderTrackerRows(payloads[0]);
|
|
1466
|
+
renderTrackerQueue(payloads[1]);
|
|
1467
|
+
})
|
|
1468
|
+
.catch(function (error) {
|
|
1469
|
+
var described = describeError(error);
|
|
1470
|
+
byId('tracker-error').hidden = false;
|
|
1471
|
+
byId('tracker-error').textContent = described.code + ': ' + described.message;
|
|
1472
|
+
})
|
|
1473
|
+
.then(function () {
|
|
1474
|
+
byId('tracker-loading').hidden = true;
|
|
1475
|
+
byId('tracker-table').setAttribute('aria-busy', 'false');
|
|
1476
|
+
});
|
|
1477
|
+
};
|
|
1478
|
+
|
|
1479
|
+
var showTracker = function () {
|
|
1480
|
+
state.slug = '';
|
|
1481
|
+
trackerState.id = '';
|
|
1482
|
+
showView('view-tracker');
|
|
1483
|
+
document.title = 'Tracker — agent team projection';
|
|
1484
|
+
loadTracker();
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1271
1487
|
/* ---------------------------------- jobs ---------------------------------- */
|
|
1272
1488
|
|
|
1273
1489
|
var JOB_COPY = {
|
|
@@ -1284,12 +1500,15 @@ export const DASHBOARD_JS = `(function () {
|
|
|
1284
1500
|
var jobsState = { offset: 0, total: 0, id: '', runId: '', run: null, poll: null, loaded: [], runsTotal: null, dirty: false };
|
|
1285
1501
|
|
|
1286
1502
|
var showView = function (name) {
|
|
1287
|
-
['view-list', 'view-detail', 'view-jobs', 'view-job', 'view-job-edit', 'view-run'].forEach(function (id) {
|
|
1503
|
+
['view-list', 'view-detail', 'view-tracker', 'view-jobs', 'view-job', 'view-job-edit', 'view-run'].forEach(function (id) {
|
|
1288
1504
|
var node = byId(id);
|
|
1289
1505
|
if (node) node.hidden = id !== name;
|
|
1290
1506
|
});
|
|
1291
|
-
|
|
1292
|
-
|
|
1507
|
+
var jobs = name === 'view-jobs' || name === 'view-job' || name === 'view-job-edit' || name === 'view-run';
|
|
1508
|
+
var tracker = name === 'view-tracker';
|
|
1509
|
+
byId('nav-tasks').setAttribute('aria-current', !jobs && !tracker ? 'page' : 'false');
|
|
1510
|
+
byId('nav-tracker').setAttribute('aria-current', tracker ? 'page' : 'false');
|
|
1511
|
+
byId('nav-jobs').setAttribute('aria-current', jobs ? 'page' : 'false');
|
|
1293
1512
|
};
|
|
1294
1513
|
|
|
1295
1514
|
var scheduleLabel = function (job) {
|
|
@@ -1817,11 +2036,12 @@ export const DASHBOARD_JS = `(function () {
|
|
|
1817
2036
|
if (byId('log-refresh')) byId('log-refresh').addEventListener('click', function () {
|
|
1818
2037
|
if (jobsState.id && jobsState.runId) openRun(jobsState.id, jobsState.runId);
|
|
1819
2038
|
});
|
|
1820
|
-
document.querySelectorAll('#nav-tasks, #nav-jobs, #back-to-jobs, #back-to-job').forEach(function (link) {
|
|
2039
|
+
document.querySelectorAll('#nav-tasks, #nav-tracker, #nav-jobs, #back-to-jobs, #back-to-job').forEach(function (link) {
|
|
1821
2040
|
link.addEventListener('click', function (event) {
|
|
1822
2041
|
event.preventDefault();
|
|
1823
2042
|
stopPolling();
|
|
1824
|
-
if (link.id === 'nav-
|
|
2043
|
+
if (link.id === 'nav-tracker') showTracker();
|
|
2044
|
+
else if (link.id === 'nav-jobs' || link.id === 'back-to-jobs') showJobs();
|
|
1825
2045
|
else if (link.id === 'back-to-job') openJob(jobsState.id);
|
|
1826
2046
|
else {
|
|
1827
2047
|
state.slug = '';
|
|
@@ -1849,6 +2069,8 @@ export const DASHBOARD_JS = `(function () {
|
|
|
1849
2069
|
if (more) more.addEventListener('click', loadMore);
|
|
1850
2070
|
var re = byId('rescan');
|
|
1851
2071
|
if (re) re.addEventListener('click', rescan);
|
|
2072
|
+
var remove = byId('task-delete');
|
|
2073
|
+
if (remove) remove.addEventListener('click', deleteTask);
|
|
1852
2074
|
bindJobs();
|
|
1853
2075
|
};
|
|
1854
2076
|
|
|
@@ -1868,7 +2090,10 @@ export const DASHBOARD_JS = `(function () {
|
|
|
1868
2090
|
} else if (params.get('new') === '1') openForm(null);
|
|
1869
2091
|
else if (view === 'job' && job) openJob(job);
|
|
1870
2092
|
else if (view === 'jobs') showJobs();
|
|
1871
|
-
else if (
|
|
2093
|
+
else if (view === 'tracker') {
|
|
2094
|
+
showTracker();
|
|
2095
|
+
if (params.get('item')) openTrackerItem(params.get('item'));
|
|
2096
|
+
} else if (slug) openDetail(slug);
|
|
1872
2097
|
else loadList();
|
|
1873
2098
|
};
|
|
1874
2099
|
|