New package @llm-gateway/ctx-health (packages/ctx-health/) — a TypeScript infrastructure monitoring and auto-healing daemon. Monitors 8 subsystems every 60s (PM2, PostgreSQL, Ollama, Cloudflare tunnel, disk, memory, network, WireGuard), gets AI-powered root cause analysis via the gateway (ctxhealer caller / ctx_health_diagnose task_type), executes healing actions with cooldown (5min) and escalation guards (3+ failures → human escalation), persists all incidents to ctx_health_incidents and ctx_health_status tables. Dry-run mode via CTX_HEALTH_DRY_RUN=true. Runs as ctx-health PM2 process on Erik server.
26 lines
607 B
JSON
26 lines
607 B
JSON
{
|
|
"name": "@llm-gateway/ctx-health",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"description": "CtxHealth — Infrastructure self-healing daemon",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"start": "node --import tsx/esm src/index.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"node-cron": "^3.0.3",
|
|
"pino": "^9.0.0",
|
|
"pg": "^8.11.3",
|
|
"axios": "^1.6.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@types/pg": "^8.11.3",
|
|
"@types/node-cron": "^3.0.11",
|
|
"pino-pretty": "^13.0.0",
|
|
"tsx": "^4.7.2",
|
|
"typescript": "^5.4.5"
|
|
}
|
|
}
|