crew-dashboard · diff
git:20261016.9838871 to git:20261106.6976e1c
39 added, 42 removed. Audit B to B.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
name: crew-dashboard
- description: Lance un dashboard web local temps réel (tâches, batchs, sessions concurrentes) avec actions de gestion. Trigger — "/crew-dashboard", "interface crew", "dashboard des tâches".
+ description: Launches a local real-time web dashboard (tasks, batches, concurrent sessions) with management actions. Also triggers on — "/crew-dashboard", "interface crew", "dashboard des tâches", "task dashboard".
---
- Lance `scripts/dashboard/server.py` (FastAPI, `127.0.0.1` uniquement) dans
- un venv **isolé du projet cible**, jamais dans son propre environnement
- Python — un projet qui dépend déjà de FastAPI/uvicorn (n'importe quelle
- version) ou n'a aucun environnement Python (ex. Next.js) n'est jamais
- affecté. cwd = racine du projet courant : le serveur lit/écrit `./crew/`.
+ Runs `scripts/dashboard/server.py` (FastAPI, `127.0.0.1` only) in a venv
+ **isolated from the target project**, never in its own Python environment — a
+ project that already depends on FastAPI/uvicorn (any version) or has no Python
+ environment at all (e.g. Next.js) is never affected. cwd = root of the current
+ project: the server reads/writes `./crew/`.
- ## Étapes
+ ## Steps
- 1. **Bootstrap venv** (une fois, réutilisé ensuite) :
+ 1. **Bootstrap the venv** (once, reused afterwards):
```bash
PY=$(command -v python3 2>/dev/null || command -v python 2>/dev/null || echo python)
VENV="${CLAUDE_PLUGIN_ROOT}/.dashboard-venv"
if [ ! -d "$VENV" ]; then
"$PY" -m venv "$VENV"
fi
if [ -x "$VENV/bin/python" ]; then VPY="$VENV/bin/python"; else VPY="$VENV/Scripts/python.exe"; fi
"$VPY" -m pip install -q -r "${CLAUDE_PLUGIN_ROOT}/scripts/dashboard/requirements.txt"
```
- 2. **Lancer le serveur en arrière-plan** (bloquant sinon — ne jamais
- l'exécuter en foreground) :
+ 2. **Launch the server in the background** (it blocks otherwise — never run it in
+ the foreground):
```bash
"$VPY" "${CLAUDE_PLUGIN_ROOT}/scripts/dashboard/server.py"
```
- Le port réel (8943 par défaut, fallback OS-assigné si pris) est
- imprimé sur la première ligne de sortie — la lire avant de répondre à
- l'utilisateur, ne jamais supposer l'URL.
- 3. Communiquer l'URL à l'utilisateur (`http://127.0.0.1:<port>`).
+ The actual port (8943 by default, OS-assigned fallback if taken) is printed on
+ the first line of output — read it before answering the user, never assume the
+ URL.
+ 3. Give the URL to the user (`http://127.0.0.1:<port>`).
- ## Lancement alternatif standalone
+ ## Alternative standalone launch
- `crew/dashboard.bat` (Windows, double-clic, hors session Claude) fait le
- même travail mais avec son propre venv à la racine du projet
- (`<projet>/.dashboard-venv`, gitignoré) plutôt que le venv partagé
- `${CLAUDE_PLUGIN_ROOT}/.dashboard-venv` ci-dessus — `CLAUDE_PLUGIN_ROOT`
- n'existe pas hors d'une session Claude, donc les deux chemins sont
- délibérément distincts, pas une incohérence à corriger.
- Le `.bat` est copié par `/crew-init` (dossier `crew/`) et retrouve `server.py`
- dans le plugin installé (`%CREW_DASHBOARD_DIR%` > `scripts/dashboard/` > cache plugin).
+ `crew/dashboard.bat` (Windows, double-click, outside a Claude session) does the
+ same job but with its own venv at the project root (`<project>/.dashboard-venv`,
+ gitignored) rather than the shared `${CLAUDE_PLUGIN_ROOT}/.dashboard-venv` above
+ — `CLAUDE_PLUGIN_ROOT` does not exist outside a Claude session, so the two paths
+ are deliberately distinct, not an inconsistency to fix.
+ The `.bat` is copied by `/crew-init` (`crew/` folder) and finds `server.py` in
+ the installed plugin (`%CREW_DASHBOARD_DIR%` > `scripts/dashboard/` > plugin
+ cache).
- ## Tests (dev uniquement, pas partie du bootstrap ci-dessus)
+ ## Tests (dev only, not part of the bootstrap above)
- `scripts/dashboard/test_server.py` (pytest) n'est pas couvert par
- `requirements.txt` (fastapi/uvicorn seulement, ce que le venv bootstrap
- installe). Pour lancer la suite, installer en plus
- `scripts/dashboard/requirements-dev.txt` (pytest + httpx) dans le venv
- utilisé, par ex. `"$VPY" -m pip install -q -r
- "${CLAUDE_PLUGIN_ROOT}/scripts/dashboard/requirements-dev.txt"` puis
+ `scripts/dashboard/test_server.py` (pytest) is not covered by `requirements.txt`
+ (fastapi/uvicorn only, what the bootstrap venv installs). To run the suite,
+ additionally install `scripts/dashboard/requirements-dev.txt` (pytest + httpx) in
+ the venv in use, e.g. `"$VPY" -m pip install -q -r
+ "${CLAUDE_PLUGIN_ROOT}/scripts/dashboard/requirements-dev.txt"` then
`"$VPY" -m pytest scripts/dashboard/test_server.py`.
- ## Ce que ce skill ne fait pas
+ ## What this skill does not do
- - N'installe rien dans l'environnement du projet cible (§ isolation
- ci-dessus).
- - Ne remplace pas les invariants du hook Stop/PreToolUse
- (`scripts/crew_hook.py`) : le serveur importe directement sa logique de
- collision/lock plutôt que de la dupliquer (voir
+ - Installs nothing in the target project's environment (§ isolation above).
+ - Does not replace the invariants of the Stop/PreToolUse hook
+ (`scripts/crew_hook.py`): the server imports its collision/lock logic directly
+ rather than duplicating it (see
`docs/superpowers/specs/2026-09-02-crew-dashboard-design.md`).
- - Ne pousse jamais de commit : `POST /api/tasks/{slug}/move` fait un
- `git mv` local, comme le ferait `manager`, rien de plus.
- - N'expose pas de panneau UI pour `POST /api/tests/{file}/toggle` en v1
- (3 panneaux seulement : Tasks/Batches/Sessions) — l'endpoint existe et
- est testé, mais pour l'instant seulement appelable en HTTP direct, pas
- cliquable depuis le dashboard.
+ - Never pushes a commit: `POST /api/tasks/{slug}/move` does a local `git mv`, as
+ `manager` would, nothing more.
+ - Does not expose a UI panel for `POST /api/tests/{file}/toggle` in v1 (3 panels
+ only: Tasks/Batches/Sessions) — the endpoint exists and is tested, but for now
+ is only callable via direct HTTP, not clickable from the dashboard.