ГЛОБАЛЬНЫЙ РЕФАКТОРИНГ АРХИТЕКТУРЫ - Рефакторинг этапов 2.85 - 2.88 - Убран последний as any из backend/src и довел тип debug до конца цепочки deep-turn

This commit is contained in:
2026-04-11 10:58:28 +03:00
parent dedf193542
commit 966be04af9
19 changed files with 485 additions and 159 deletions
@@ -1,4 +1,4 @@
import type { AssistantMessageResponsePayload } from "../types/assistant";
import type { AssistantDebugPayload, AssistantMessageResponsePayload } from "../types/assistant";
import type { NormalizeResponsePayload, RouteHintSummary } from "../types/normalizer";
import type { InvestigationStateWithProblemUnits } from "../types/stage2ProblemUnits";
import {
@@ -70,7 +70,7 @@ export interface RunAssistantDeepTurnResponseRuntimeInput {
export interface RunAssistantDeepTurnResponseRuntimeOutput {
response: AssistantMessageResponsePayload;
debug: Record<string, unknown>;
debug: AssistantDebugPayload;
}
function toRecordObject(value: unknown): Record<string, unknown> | null {