[tools] CpuGuard: Full test runs wait for, then refuse, a machine above 80 % CPU

This commit is contained in:
2026-11-02 00:51:45 +01:00
parent 8b1c2eaee2
commit f9883e22ba
7 changed files with 195 additions and 4 deletions
+16
View File
@@ -0,0 +1,16 @@
{
"name": "@rosea/cpu-guard",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "Refuses to start a full test run while the machine is busy (CLAUDE.md §5.7). Never imported by the app.",
"scripts": {
"typecheck": "tsc -p tsconfig.json",
"test": "vitest run --reporter=verbose"
},
"devDependencies": {
"@types/node": "22.20.1",
"typescript": "5.9.3",
"vitest": "3.2.7"
}
}