Closes the long-standing SSE TODO. The previous attempt with
`fastify-sse-v2 ^4` was incompatible with Fastify 5 and was never wired
in; the README/DEPLOYMENT.md kept advertising "real-time log streaming"
that didn't exist. The web client never used EventSource — `web/src/
lib/api.ts` already polls `/deployments/:id/logs` via the normal
`apiRequest` helper.
Resolution: remove the claim, not ship the feature.
- drop `fastify-sse-v2` dep from `backend/package.json` + lockfile
- delete the commented-out plugin import + register in `server.ts`,
replace with a NOTE explaining the JSON-polling decision and how
to add a stream later (`reply.raw`)
- remove the `TODO: Re-enable SSE` comment in `deployments/routes.ts`;
the endpoint already returns JSON, document that explicitly
- rewrite the README "Deployment Log Streaming" section as
"Deployment Logs" (JSON-polled, no SSE); fix the endpoint table
- flip the DEPLOYMENT.md bullet from "Real-time log streaming (SSE)"
to "Deployment log retrieval (JSON polling — no SSE)"
- mark REVIEW_ACTIONS #4 RESOLVED with the reasoning
- tick the roadmap checkbox
If a real-time stream is wanted later, ship it explicitly via
`reply.raw` and update README/DEPLOYMENT.md/the route comment in the
same change. Don't reintroduce a half-disabled plugin.
Generated with [Devin](https://cli.devin.ai/docs)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
44 lines
1.2 KiB
JSON
44 lines
1.2 KiB
JSON
{
|
|
"name": "@bytelyst/devops-backend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"packageManager": "pnpm@10.6.5",
|
|
"description": "ByteLyst DevOps backend — deployment orchestration and service monitoring",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "node --import tsx src/server.ts",
|
|
"build": "tsc",
|
|
"typecheck": "tsc --noEmit",
|
|
"start": "node dist/server.js",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"lint": "eslint src",
|
|
"migrate": "tsx src/scripts/run-migrations.ts up",
|
|
"migrate:rollback": "tsx src/scripts/run-migrations.ts down"
|
|
},
|
|
"dependencies": {
|
|
"@azure/cosmos": "^4.1.0",
|
|
"@azure/identity": "^4.5.0",
|
|
"@azure/keyvault-secrets": "^4.9.0",
|
|
"@fastify/rate-limit": "^10.2.1",
|
|
"@fastify/swagger": "^9.0.0",
|
|
"@fastify/swagger-ui": "^5.2.1",
|
|
"dotenv": "^16.4.5",
|
|
"fastify": "^5.2.1",
|
|
"jose": "^6.1.2",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.18.0",
|
|
"@types/node": "^25.0.3",
|
|
"@vitest/coverage-v8": "3.2.4",
|
|
"eslint": "^9.18.0",
|
|
"globals": "^15.14.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.20.0",
|
|
"vitest": "^3.1.2"
|
|
}
|
|
}
|