ai 6.0.252 → 6.0.253

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.253
4
+
5
+ ### Patch Changes
6
+
7
+ - d91d30b: Preserve reasoning block IDs from UI message streams on reasoning UI parts.
8
+ - Updated dependencies [0ec239b]
9
+ - @ai-sdk/gateway@3.0.172
10
+
3
11
  ## 6.0.252
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1635,6 +1635,10 @@ type TextUIPart = {
1635
1635
  */
1636
1636
  type ReasoningUIPart = {
1637
1637
  type: 'reasoning';
1638
+ /**
1639
+ * The reasoning part ID.
1640
+ */
1641
+ id?: string;
1638
1642
  /**
1639
1643
  * The reasoning text.
1640
1644
  */
package/dist/index.d.ts CHANGED
@@ -1635,6 +1635,10 @@ type TextUIPart = {
1635
1635
  */
1636
1636
  type ReasoningUIPart = {
1637
1637
  type: 'reasoning';
1638
+ /**
1639
+ * The reasoning part ID.
1640
+ */
1641
+ id?: string;
1638
1642
  /**
1639
1643
  * The reasoning text.
1640
1644
  */
package/dist/index.js CHANGED
@@ -1304,7 +1304,7 @@ function detectMediaType({
1304
1304
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
1305
1305
 
1306
1306
  // src/version.ts
1307
- var VERSION = true ? "6.0.252" : "0.0.0-test";
1307
+ var VERSION = true ? "6.0.253" : "0.0.0-test";
1308
1308
 
1309
1309
  // src/util/download/download.ts
1310
1310
  var download = async ({
@@ -6023,6 +6023,7 @@ function processUIMessageStream({
6023
6023
  case "reasoning-start": {
6024
6024
  const reasoningPart = {
6025
6025
  type: "reasoning",
6026
+ id: chunk.id,
6026
6027
  text: "",
6027
6028
  providerMetadata: chunk.providerMetadata,
6028
6029
  state: "streaming"
@@ -9338,6 +9339,7 @@ var uiMessagesSchema = (0, import_provider_utils24.lazySchema)(
9338
9339
  }),
9339
9340
  import_v48.z.object({
9340
9341
  type: import_v48.z.literal("reasoning"),
9342
+ id: import_v48.z.string().optional(),
9341
9343
  text: import_v48.z.string(),
9342
9344
  state: import_v48.z.enum(["streaming", "done"]).optional(),
9343
9345
  providerMetadata: providerMetadataSchema.optional()