From bd6dc4bdc37db70b5bef35c2276689ff0d2544fd Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 17 Jun 2026 10:17:57 +0800 Subject: [PATCH] refactor(agents): hide transport error extractor --- src/agents/transport-stream-shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/transport-stream-shared.ts b/src/agents/transport-stream-shared.ts index d00ca3daba3d..965b9bfbbcaf 100644 --- a/src/agents/transport-stream-shared.ts +++ b/src/agents/transport-stream-shared.ts @@ -186,7 +186,7 @@ function normalizeTransportErrorBody(value: unknown): string | undefined { return truncateErrorDetail(redactSensitiveText(text), 500); } -export function extractTransportErrorDetails(error: unknown): TransportErrorDetails { +function extractTransportErrorDetails(error: unknown): TransportErrorDetails { const errorObject = error && typeof error === "object" ? error : undefined; const nestedError = readObjectProperty(errorObject, "error"); const errorCode =