feat(mcp): подготовить сервер и доступ к приёмке

This commit is contained in:
Denozordec committed 2026-11-03 03:12:03 +07:00
commit bf3d50e1ff
3835 files changed
+537122

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { ApiClientError } from "@/shared/api/http-client"
/** Preserve the last confirmed snapshot only for this operation's explicit unknown receipt. */
export function isSpeedPersistenceUnknown(error: unknown, runId: string): boolean {
if (!(error instanceof ApiClientError) || error.status !== 502) return false
if (!error.payload || typeof error.payload !== "object") return false
const payload = error.payload as { outcome?: unknown; runId?: unknown }
return payload.outcome === "unknown" && payload.runId === runId
}