{"_id":"@agent-hospital/client","_rev":"12-7b473f94669067535c0c9d7ba6549427","name":"@agent-hospital/client","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@agent-hospital/client","version":"0.1.0","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.1.0","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"f328ba19feb06f453d1f5bb8991f14fa4a888866","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.1.0.tgz","fileCount":11,"integrity":"sha512-HhSgZWgwY7wPFrLs+AdBsKCBsK2RRKpvtDSqjguqxCyMs/XTCLhMoCFPUpqDRZRKIE/uBNpAcwJA6zYXfAuVqA==","signatures":[{"sig":"MEQCIFcsMDjhufUAy1hswksdcVCRp6EANCLhtwZy+l7770mLAiBE6UKNZLyFi8Lv+QRf8c9dPHDKnCKrnKxBj7RFYc5lsg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":87256},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"aaa98e9cf00f25325b694585d672f997a8a5b295","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.0_1778586961120_0.31781712358077807","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.1.1":{"name":"@agent-hospital/client","version":"0.1.1","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.1.1","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"cffd7d834df879ed594dadc5922065a53e9e3817","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.1.1.tgz","fileCount":12,"integrity":"sha512-H3opDLcq+o85DzRlMNF/JrljQfFXM4KLzgP1Fvcu29wGjN5tPUbcliH/VDne7dfPmM5XDk8NgW6TLBdpUR9oow==","signatures":[{"sig":"MEQCID+5z5W80rCRAHWW2sb584dQUR50I2GSUnZmIRjodfYnAiBBVLPeAVNhHm6nkjxttp0jLwkLeFzGe3v6PIuEOFUCkw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92646},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"51ce87980f71ad5c081e764242257b1d8a674051","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.1_1778661446346_0.18188079767539156","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.1.2":{"name":"@agent-hospital/client","version":"0.1.2","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.1.2","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"d9e57a38d1aa65dc2d4e34cd3cdf57ee1c8b4019","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.1.2.tgz","fileCount":12,"integrity":"sha512-fp8ggqqKTag1N/1RJYqVQ70505n13LTR4RYpw61+W/9dyN5Nr0H1CL1/k6+6XXpT1J93qb7fXhkZC8sb9hdvrg==","signatures":[{"sig":"MEQCIBnlkncUgXG5UTubzT1mH36QORwTQlNHCepGZN1993IPAiB+uqiqkgqqWYprKknnZveR0kC/JBstyjDo4JyN5GHGDQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":109245},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"152ca140c916ab29685b9c8b81642bcf3361f675","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.2_1778777200315_0.06240544033077522","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.1.4":{"name":"@agent-hospital/client","version":"0.1.4","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.1.4","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"385c2a65f5fa00cb735ac6fd561d6413ce4424e5","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.1.4.tgz","fileCount":12,"integrity":"sha512-RSx/N6QpTmWAnUvBELXFcSEs5Cy96ol6LO3JX+p43K+gEXeaWikKqBJYfsrjgdcDeyqBRTZp+oFHdhmvTCO2lg==","signatures":[{"sig":"MEQCIEMvaDIJeTsOow5GKyPmAtSmbYglGwqO2qxBMVuMonPPAiBCnTeref3Ex9W8slNIrGPLxpMW7EwvZO3XJCwnBD70oA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":109894},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"2325dc897f67f65978b6380766b9f4c8f708b533","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.4_1778778901853_0.08247636582173445","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.1.5":{"name":"@agent-hospital/client","version":"0.1.5","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.1.5","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"8635184a6acdfb947ccef7da99b2c88e38182eee","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.1.5.tgz","fileCount":12,"integrity":"sha512-7er8xDnzOgstfKdH6RoFql4MsEabIB6kkpHCY1xJugwCerHi9TFp8RUt3AaejTJEJgUFoiCj2LayLWh8JvU84Q==","signatures":[{"sig":"MEYCIQCTSYKAca4nmRubid/kExIEIf+Xn3WeConOUAKw8VEYVgIhAOnAQtZNFL1HVMHau4ct/6KYbLKH6q7pJROfXdAtnMOW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":111054},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"4f0fc7ac6a013d6ff77655390725fd5b9c31f0ab","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.5_1778781521957_0.9250298173857483","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.1.6":{"name":"@agent-hospital/client","version":"0.1.6","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.1.6","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"085ef3a2319440a56d38194febd6d487ae12a420","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.1.6.tgz","fileCount":12,"integrity":"sha512-1rR+nPQ77yJVUsPBRqMk4eNl1WJn0fJDbDTqfQ7ohoGvruMKXjz4XsRi/Q/lQtWBOqQ7Nyx09KwMvXFmDJ/Amg==","signatures":[{"sig":"MEUCIF734PPCLS2zFY/oEgbNThjnz6k4hbKou3voYyENlyU9AiEA9YiTlhDIvizRNf6yODEovhUcjhe7qrdgVBHT3TTrbAg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110905},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"6b2d5371ccff68a6d90b68dace989795c869b7ec","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.6_1778927998635_0.4871683173589496","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.1.7":{"name":"@agent-hospital/client","version":"0.1.7","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.1.7","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"0dbf9f873c2086be565aaabbb2564d357eb7446c","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.1.7.tgz","fileCount":12,"integrity":"sha512-R/VtYxYZ42BV3pp3H1lQgT3P8W5Q7JHolAPWvfvAA80LBWuABDTeL0IMYGWRMovrhUx78pcxxa+W9KF2Ap5qFg==","signatures":[{"sig":"MEQCIF7GmDQUls3Hkx4ThprM77uK14f6sB2U+ojNA7DKiQroAiBi2tE72v8Ky6NqA5gI6GEpHMaM+eoO3HusRyaOgTkTsw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":111023},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"783adbd55f49d1527d22955f70140b49c3941dee","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.7_1778939115604_0.3791837103541984","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.2.0":{"name":"@agent-hospital/client","version":"0.2.0","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.2.0","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"1e47370087327ae14321babf5b9585a57e834021","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.2.0.tgz","fileCount":12,"integrity":"sha512-UypaB/P9jMWRSzBFwMvrpEEd4m9DyfmJk5aydW5OjsTUMGyNUK3wDa9X4o4VUdZccMDK17c5BwjLn0ZGkcB0LA==","signatures":[{"sig":"MEQCIDSakR1TkKtOjPz7Ios0fiKs/DDbp9QBUMa3vK8cd9VrAiBBExfMM0M9I6j69VX/A6Wp28cwpLkQ1dq3NO5MfjejAQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":111140},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"783adbd55f49d1527d22955f70140b49c3941dee","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.2.0_1778940415538_0.20690028249317582","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.2.1":{"name":"@agent-hospital/client","version":"0.2.1","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.2.1","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"33e36feb440180709bf1844b1f46f3a882f210af","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.2.1.tgz","fileCount":14,"integrity":"sha512-hdn3i0u9SVsBVu+aJO/iv4+ERHZVDZ0uwoyy1Pb0/MI+Lb7/HPgQ3xXwDBlDqjwybNcJABFEdrfdqnyfMYefUg==","signatures":[{"sig":"MEQCIBRx5sjpvScQNoU+mNw1vjBTPOyAd94yHIvIlDOxAnyzAiAl48gq/ox4ifI+g6j3mfhGRJZT7SisZOrXBg/LE1o8mA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122781},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"4c1542ba6a801b8ce00a6da7877b146f30e53010","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.2.1_1779012493737_0.3439711649938355","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.2.2":{"name":"@agent-hospital/client","version":"0.2.2","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.2.2","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"fb4a868a3f9c6aa8a7ae7bfcbcdfbed85e51f671","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.2.2.tgz","fileCount":14,"integrity":"sha512-zheiibPC9Yh3q0Q0GiudwOjb1leVzrepeGuWsfHW257Fii7jerJXToWW5q51iuZjfa3mOqzpim4LvoJHgaG/Qg==","signatures":[{"sig":"MEYCIQD46X42T+qQkfPYTqJDUNDpQq4r/zIvXF75TxWVqoOoYAIhAPiQCFnfiHn4WyvaId8qfTONJr9RKsfOACGv8c+NvD2X","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":129231},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"af0fa6d86e828851402efeac5e25b7114e56e115","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.2.2_1779013567484_0.9475870718389896","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"},"0.3.0":{"name":"@agent-hospital/client","version":"0.3.0","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"license":"MIT","_id":"@agent-hospital/client@0.3.0","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"bin":{"agent-hospital-client":"dist/index.js"},"dist":{"shasum":"1a1cc200bd1d88ca07ab70aac24a72a2968ee50a","tarball":"https://registry.npmjs.org/@agent-hospital/client/-/client-0.3.0.tgz","fileCount":16,"integrity":"sha512-yfU6STsPvPUO0IdZYw0EMlrCGczY8/1eImA2tcaRhS79Os7/WJZMNZYtmwjNZzrMoSp7UHoA4CNO45DQpGGYxA==","signatures":[{"sig":"MEYCIQDB6GZotRsQFLyWOeU65rJxJjvwlGZf1FuwmztLMGBRJwIhANUPEX4a6UkMj/Vnv12qY1bqslAX/AtNsfAnLIS9kf9N","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":137214},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"deb977ce653363455d09fe362400b78fcb7bddc2","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"madmecodes","email":"madmecodes@gmail.com"},"_npmVersion":"10.9.0","description":"Zero-config health check and healing client for Agent Hospital","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.3.0_1779508000957_0.6013090240506398","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @agent-hospital/sidecar heal instead"}},"time":{"created":"2026-05-12T11:56:01.012Z","modified":"2026-05-26T09:15:37.142Z","0.1.0":"2026-05-12T11:56:01.259Z","0.1.1":"2026-05-13T08:37:26.466Z","0.1.2":"2026-05-14T16:46:40.523Z","0.1.4":"2026-05-14T17:15:02.015Z","0.1.5":"2026-05-14T17:58:42.149Z","0.1.6":"2026-05-16T10:39:58.778Z","0.1.7":"2026-05-16T13:45:15.754Z","0.2.0":"2026-05-16T14:06:55.682Z","0.2.1":"2026-05-17T10:08:13.921Z","0.2.2":"2026-05-17T10:26:07.621Z","0.3.0":"2026-05-23T03:46:41.113Z"},"license":"MIT","keywords":["agent-hospital","ai-agent","health-check","openclaw","hermes"],"description":"Zero-config health check and healing client for Agent Hospital","maintainers":[{"name":"madmecodes","email":"madmecodes@gmail.com"}],"readme":"# @agent-hospital/client\n\nZero-config health check and healing client for [Agent Hospital](https://agent-hospital.ai). Diagnoses and repairs AI agents with a single command.\n\n## Usage\n\n```bash\nnpx @agent-hospital/client heal https://api.agent-hospital.ai\n```\n\nThat's it. The client will:\n\n1. Auto-detect your agent framework (OpenClaw or Hermes)\n2. Collect health data from your local environment\n3. Send it to Agent Hospital for AI-powered diagnosis\n4. Execute safe (whitelisted) repairs automatically\n5. Report results back and repeat until healthy or escalated\n\n## Options\n\n```bash\nnpx @agent-hospital/client heal <hospital-url> [--framework openclaw|hermes] [--json]\n```\n\n| Flag | Description |\n|------|-------------|\n| `--framework` | Override auto-detection. Must be `openclaw` or `hermes` |\n| `--json` | Output machine-readable JSON instead of human-readable text |\n\n## What Gets Collected\n\nThe client collects a comprehensive health report from your local agent environment:\n\n| Area | Data |\n|------|------|\n| Runtime | Process alive, PID, uptime |\n| Gateway | Alive, port, latency |\n| Integrations | Slack, Telegram, Discord, WhatsApp connectivity |\n| Memory | Store reachable, entry count, size, last write |\n| Model/LLM | Provider, API reachable, auth valid, latency |\n| Disk | Home dir, sessions, logs, total usage |\n| Workspace | SOUL.md, TOOLS.md, skills, pipeline config |\n| Sessions | Count, age, total size |\n| Logs | Error rate, top error patterns |\n| Config | Full config snapshot (secrets redacted) |\n\nFile contents (SOUL.md, TOOLS.md, config files) are sent with secrets automatically redacted.\n\n## Whitelisted Repairs\n\nThe client auto-executes these safe repair actions when prescribed by the doctor:\n\n### OpenClaw\n\n| Action | Description |\n|--------|-------------|\n| `restart-daemon` | Restart the OpenClaw daemon |\n| `prune-sessions` | Delete sessions older than 30 days |\n| `kill-port-conflict` | Kill processes blocking port 18789 |\n| `clean-logs` | Delete logs older than 7 days |\n| `fix-context-window` | Truncate oversized .jsonl files (>50MB) |\n\n### Hermes\n\n| Action | Description |\n|--------|-------------|\n| `restart-gateway` | Restart the Hermes gateway |\n| `prune-sessions` | Delete sessions older than 30 days |\n| `checkpoint-wal` | Checkpoint SQLite WAL file |\n| `kill-port-conflict` | Kill processes blocking port 8642 |\n| `clean-logs` | Delete logs older than 7 days |\n\nNon-whitelisted commands are shown as recommendations but never auto-executed.\n\n## JSON Output\n\nWith `--json`, the client outputs structured JSON for programmatic use:\n\n```bash\nnpx @agent-hospital/client heal https://api.agent-hospital.ai --json\n```\n\n**Healed:**\n```json\n{\n  \"decision\": \"healed\",\n  \"sessionId\": \"uuid\",\n  \"narrative\": \"All repairs succeeded. Agent is healthy.\",\n  \"confidence\": 0.92,\n  \"turnsUsed\": 2\n}\n```\n\n**Escalated:**\n```json\n{\n  \"decision\": \"escalate\",\n  \"sessionId\": \"uuid\",\n  \"narrative\": \"Cannot resolve automatically.\",\n  \"commands\": [{ \"action\": \"...\", \"description\": \"...\", \"whitelisted\": false }]\n}\n```\n\n## How It Works\n\n```\nClient                              Agent Hospital\n  |                                       |\n  |-- detect framework ----------------->|\n  |-- collect health data                 |\n  |-- POST /api/v1/heal ---------------->|\n  |                                       |-- AI diagnosis\n  |<- apiKey + diagnosis + commands ------|\n  |                                       |\n  |-- execute whitelisted repairs         |\n  |-- collect post-repair health          |\n  |-- POST /api/v1/heal/results -------->|\n  |                                       |-- AI evaluation\n  |<- decision (healed/more/escalate) ---|\n  |                                       |\n  |   [repeat until healed or max 6 turns]\n```\n\n- No API key needed on first call -- one is generated and returned automatically\n- The client stores nothing between runs -- fully stateless\n- Max 6 healing turns before forced exit\n\n## Requirements\n\n- Node.js 18+ (uses native `fetch`)\n- Zero runtime dependencies\n\n## Development\n\n```bash\ngit clone git@github.com:Clawies/agent-hospital-client.git\ncd agent-hospital-client\nnpm install\nnpm run build\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}