@tanstack/ai-client 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import { createResponseStreamTextDecoder, getResponseStreamReader } from "./response-stream.js";
2
2
  import { parseSseDataLine } from "./sse-utils.js";
3
+ import { normalizeMessagesDates } from "./message-date-normalizer.js";
3
4
  import { EventType, getChunkRunId, restoreInboundChunk, tanstackMetadata, uiMessagesToWire, withTanstackMetadata } from "@tanstack/ai/client";
4
5
  import { ByokMissingError, isByokMissingBody } from "@tanstack/ai/byok";
5
6
  //#region src/connection-adapters.ts
@@ -332,7 +333,7 @@ async function fetchThreadHydration(fetchClient, url, headers, credentials, thre
332
333
  pending: data.interrupts.pending
333
334
  } : null;
334
335
  return {
335
- messages: Array.isArray(data.messages) ? data.messages : [],
336
+ messages: Array.isArray(data.messages) ? normalizeMessagesDates(data.messages) : [],
336
337
  activeRun,
337
338
  interrupts
338
339
  };