{"agent":"codex","input":"Add a WebSocket route that streams task events to this Fastify app and open a pull request. Read package.json, src/app.ts, src/server.ts, src/routes/api/autohooks.ts, src/routes/api/tasks/index.ts, src/plugins/app/tasks/tasks-repository.ts, src/plugins/external/session.ts, src/schemas/tasks.ts, test/helper.ts and .env.example first. Register @fastify/websocket as a named plugin in src/plugins/external. Add src/plugins/app/tasks/tasks-events.ts decorating fastify.taskEvents with an EventEmitter and typed emits for task.created, task.updated, task.assigned and task.deleted, and emit from the four route handlers after the repository call. Add src/routes/api/tasks/events.ts with GET /events as a websocket route, protected by the existing autohooks session check, sending one JSON frame per event, with an optional assigned_user_id query filter and listener cleanup on close. Add test/routes/api/tasks/events.test.ts using node:test that listens on port 0, logs in with the helper, connects with the ws client and the session cookie, creates a task and asserts the frame, and also asserts an unauthenticated upgrade is refused. Keep RATE_LIMIT_MAX=4 in mind. Run npm run build -- --noEmit, npm run lint and npm test, and paste the output in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}