diff --git a/services/mcp-server/src/modules/a2a/agents/diagnostics-orchestrator.ts b/services/mcp-server/src/modules/a2a/agents/diagnostics-orchestrator.ts index fb4f25f9..03659519 100644 --- a/services/mcp-server/src/modules/a2a/agents/diagnostics-orchestrator.ts +++ b/services/mcp-server/src/modules/a2a/agents/diagnostics-orchestrator.ts @@ -4,18 +4,9 @@ */ import { randomUUID } from 'node:crypto'; -import { diagnosticsCreateSession } from '../../../lib/platform-client.js'; +import { diagnosticsCreateSession, type DebugSession } from '../../../lib/platform-client.js'; import type { DispatchDecision, TelemetryFindings, DiagnosticsSessionResult } from '../types.js'; -interface CreatedSession { - id: string; - status: string; - expiresAt: string; - collectionLevel?: string; - targetUserId?: string; - targetAnonymousId?: string; -} - export async function orchestrate( decision: DispatchDecision, findings: TelemetryFindings, @@ -43,7 +34,7 @@ export async function orchestrate( const collectionLevel = hasFatal ? 'trace' : 'debug'; try { - const session = (await diagnosticsCreateSession( + const session: DebugSession = await diagnosticsCreateSession( { productId: brief.productId, targetUserId: brief.userReport.userId, @@ -54,7 +45,7 @@ export async function orchestrate( maxDurationMinutes: 30, }, { token: opts.token, requestId: findings.runContext.requestId, productId: brief.productId } - )) as CreatedSession; + ); return { runContext: ctx,