Merge branch 't3/implement-auth-deploy'

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.
This commit is contained in:
Florian Schmidt
2026-11-16 00:11:06 +01:00
24 changed files with 1232 additions and 21 deletions
+5 -1
View File
@@ -5,11 +5,14 @@
"type": "module",
"scripts": {
"dev": "tsx watch src/main.ts",
"build": "tsc -p tsconfig.json --noEmit",
"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",
@@ -21,6 +24,7 @@
"devDependencies": {
"@types/ssh2": "^1.15.6",
"@types/ws": "^8.18.2",
"esbuild": "^0.24.2",
"tsx": "^4.19.2"
}
}