- db: migration id=4 `push_subscriptions` (liées au token d'auth) ; clés VAPID en settings - PushService: bootstrap idempotent des clés VAPID, subscribe/unsubscribe/count, notify() best-effort (purge des abonnements 410/404 Gone) ; sender injectable pour les tests - routes/push.ts: GET vapid-public-key, POST subscribe/unsubscribe/test (toutes sous auth globale) - pty-manager: déclencheur push sur FRONT MONTANT vers waiting, débouncé 1500ms et annulable (faux positif ignoré) ; câblage app/index/config (--vapid-contact) - shared/api.ts: types VapidKeyResponse / PushSubscribeRequest / PushUnsubscribeRequest - deps: web-push (+ @types/web-push) côté serveur - tests: push-service (idempotence, UPSERT, 410-purge, payload) + trigger pty-manager (169 verts)
39 lines
925 B
JSON
39 lines
925 B
JSON
{
|
|
"name": "git-arboretum",
|
|
"version": "0.1.0",
|
|
"description": "Self-hosted web dashboard for git worktrees and the Claude Code sessions running on them",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"bin": {
|
|
"arboretum": "./dist/index.js"
|
|
},
|
|
"main": "./dist/app.js",
|
|
"files": [
|
|
"dist",
|
|
"public"
|
|
],
|
|
"engines": {
|
|
"node": ">=22.16"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -b",
|
|
"dev": "tsc -b --watch & node --watch dist/index.js",
|
|
"prepack": "node scripts/copy-web.mjs",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@arboretum/shared": "0.1.0",
|
|
"@fastify/cookie": "^11.0.0",
|
|
"@fastify/static": "^8.0.0",
|
|
"@fastify/websocket": "^11.0.0",
|
|
"@homebridge/node-pty-prebuilt-multiarch": "^0.13.0",
|
|
"@xterm/headless": "^6.0.0",
|
|
"fastify": "^5.0.0",
|
|
"web-push": "^3.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/web-push": "^3.6.4",
|
|
"@types/ws": "^8.5.0"
|
|
}
|
|
}
|