fix: backend TS errors — agent role type, WebSocket SocketStream, jwt.sign cast

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-26 23:22:20 +03:00
parent 239846c077
commit cd5b5e4c4e
3 changed files with 7 additions and 4 deletions

View File

@@ -173,7 +173,8 @@ const workstationRoutes: FastifyPluginAsync = async (fastify) => {
)
// Выдаём токен агенту (подписываем как обычный JWT с role=agent)
const token = fastify.jwt.sign(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const token = (fastify.jwt.sign as any)(
{
sub: agent_id,
role: 'agent',