Integrate auth, config, watcher and terminal wiring in buildApp: auth guards every API route by default, notebook watcher events feed the /api/events hub, the terminal runs in the configured workspace, and SHELLBOOK_DATA_DIR is the single data directory variable. The systemd unit uses KillMode=process so tmux sessions survive service restarts.
31 lines
955 B
JSON
31 lines
955 B
JSON
{
|
|
"name": "@shellbook/server",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/main.ts",
|
|
"build": "esbuild src/main.ts src/cli/set-password.ts --bundle --platform=node --target=node22 --format=esm --packages=external --outdir=dist --outbase=src --external:node-pty --alias:@shellbook/core=../../packages/core/src/index.ts",
|
|
"start": "node dist/main.js",
|
|
"set-password": "tsx src/cli/set-password.ts",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "vitest run --passWithNoTests"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/static": "^8.0.0",
|
|
"@fastify/websocket": "^11.0.1",
|
|
"@shellbook/core": "workspace:*",
|
|
"fastify": "^5.1.0",
|
|
"chokidar": "^4.0.3",
|
|
"node-pty": "^1.1.0",
|
|
"ssh2": "^1.17.0",
|
|
"yaml": "^2.9.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/ssh2": "^1.15.6",
|
|
"@types/ws": "^8.18.2",
|
|
"esbuild": "^0.24.2",
|
|
"tsx": "^4.19.2"
|
|
}
|
|
}
|