Connect Sybil to the Pi root conversation with authenticated REST and WebSocket APIs, persistent read state, and a dedicated agent tab. Keep optimistic messages stable through delivery and retries, and animate arrivals without losing the reader's scroll position. Share bubble styling with regular chats and remove the obsolete admission sender. Reject malformed upstream receipts and WebSocket upgrade requests, with regression coverage and updated API documentation. Validated with 51 web tests, 44 server tests, both production builds, desktop/mobile bubble comparisons, and 11 browser animation and scrolling checks.
44 lines
1.4 KiB
JSON
44 lines
1.4 KiB
JSON
{
|
|
"name": "sybil-server",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "LLM multiplexer + personal chat database backend",
|
|
"scripts": {
|
|
"postinstall": "node scripts/ensure-prisma-client.mjs",
|
|
"predev": "node scripts/ensure-prisma-client.mjs",
|
|
"prestart": "node scripts/ensure-prisma-client.mjs",
|
|
"prebuild": "node scripts/ensure-prisma-client.mjs",
|
|
"dev": "node ./node_modules/tsx/dist/cli.mjs watch src/index.ts",
|
|
"start": "node dist/index.js",
|
|
"test": "node --test --import tsx tests/**/*.test.ts",
|
|
"build": "node ./node_modules/typescript/bin/tsc -p tsconfig.json",
|
|
"prisma:generate": "node ./node_modules/prisma/build/index.js generate",
|
|
"db:migrate": "node ./node_modules/prisma/build/index.js migrate dev",
|
|
"db:studio": "node ./node_modules/prisma/build/index.js studio"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.71.2",
|
|
"@fastify/cors": "^11.2.0",
|
|
"@fastify/sensible": "^6.0.4",
|
|
"@fastify/swagger": "^9.6.1",
|
|
"@fastify/swagger-ui": "^5.2.5",
|
|
"@prisma/client": "^6.6.0",
|
|
"dotenv": "^17.2.3",
|
|
"exa-js": "^2.4.0",
|
|
"fastify": "^5.7.2",
|
|
"html-to-text": "^9.0.5",
|
|
"openai": "^6.16.0",
|
|
"pino-pretty": "^13.1.3",
|
|
"prisma": "^6.6.0",
|
|
"ws": "8.22.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.0.10",
|
|
"@types/ws": "8.18.1",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|