Many self-hosted machines have no management API, so add an SSH-based adapter (using ssh2) that connects with password or key auth and probes hostname/disk/mem/load via a single shell command, surfacing health status like the other integrations. Also fixes routes/integrations.ts's hardcoded type enum, which was out of sync with the IntegrationType union and rejected the new 'ssh' type. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbJV5nm8KPVH1oNJYKpnoF
31 lines
741 B
JSON
31 lines
741 B
JSON
{
|
|
"name": "archnest-backend",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/server.ts",
|
|
"build": "tsc -b",
|
|
"start": "node dist/server.js"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-ec2": "^3.1072.0",
|
|
"@aws-sdk/client-sts": "^3.1072.0",
|
|
"@fastify/cors": "^10.0.1",
|
|
"@fastify/jwt": "^9.0.4",
|
|
"@types/ssh2": "^1.15.5",
|
|
"bcryptjs": "^2.4.3",
|
|
"better-sqlite3": "^11.8.1",
|
|
"dotenv": "^16.6.1",
|
|
"fastify": "^5.2.1",
|
|
"ssh2": "^1.17.0",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/better-sqlite3": "^7.6.12",
|
|
"@types/node": "^22.10.5",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.3"
|
|
}
|
|
}
|