testsAndMisc/docs/superpowers/evidence/kcd2-dice-solver-run-sh-2026-07-21.json
Krzysztof kuhy Rudnicki 3babda92d2 Track kcd2_dice_solver app and add run.sh dependency installer
The Vite/React/TS dice solver had no git history yet. Commit it alongside
a run.sh that ensures Node/pnpm are present, installs deps, and starts
the dev server with a single command.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 18:17:13 +02:00

33 lines
1.4 KiB
JSON

{
"intent": "Add a run.sh to kcd2_dice_solver that installs dependencies and starts the dice solver's dev server with a single command.",
"scope": ["kcd2_dice_solver/run.sh (new file)", "No changes to app source, tests, or build config"],
"changes": [
"run.sh ensures Node >=22 (installing the LTS via nvm if missing/too old) and pnpm (via corepack) if missing",
"run.sh runs `pnpm install` then `exec pnpm dev` from the script's own directory"
],
"verification": [
{
"command": "shellcheck kcd2_dice_solver/run.sh",
"result": "pass",
"evidence": "No warnings after fixing one SC2155 (declare/assign separately)"
},
{
"command": "./run.sh (foreground, timeout 25s)",
"result": "pass",
"evidence": "Installed deps, then 'VITE v6.4.3 ready in 132 ms' / Local: http://localhost:5174/"
},
{
"command": "./run.sh (background) + curl -s -o /dev/null -w '%{http_code}' http://localhost:5174/",
"result": "pass",
"evidence": "HTTP 200"
},
{
"command": "pre-commit run --files kcd2_dice_solver/run.sh",
"result": "pass",
"evidence": "All applicable hooks Passed (shellcheck, executables-have-shebangs, ai-evidence-contract, etc.)"
}
],
"risks": ["If nvm is not installed on a machine, run.sh exits with an explicit error instead of installing nvm itself (out of scope)"],
"rollback": ["Delete kcd2_dice_solver/run.sh", "No other files depend on it"]
}