ai 6.0.242 → 6.0.244

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/dist/index.mjs CHANGED
@@ -1193,7 +1193,7 @@ import {
1193
1193
  } from "@ai-sdk/provider-utils";
1194
1194
 
1195
1195
  // src/version.ts
1196
- var VERSION = true ? "6.0.242" : "0.0.0-test";
1196
+ var VERSION = true ? "6.0.244" : "0.0.0-test";
1197
1197
 
1198
1198
  // src/util/download/download.ts
1199
1199
  var download = async ({
@@ -9629,7 +9629,7 @@ async function safeValidateUIMessages({
9629
9629
  })
9630
9630
  };
9631
9631
  }
9632
- if (toolPart.state === "input-available" || toolPart.state === "output-available") {
9632
+ if (toolPart.state === "input-available") {
9633
9633
  await validateTypes3({
9634
9634
  value: toolPart.input,
9635
9635
  schema: tool2.inputSchema,
@@ -13977,7 +13977,7 @@ var AbstractChat = class {
13977
13977
  try {
13978
13978
  const response = {
13979
13979
  state: createStreamingUIMessageState({
13980
- lastMessage: this.state.snapshot(lastMessage),
13980
+ lastMessage: trigger === "regenerate-message" ? void 0 : this.state.snapshot(lastMessage),
13981
13981
  messageId: this.generateId()
13982
13982
  }),
13983
13983
  abortController: new AbortController()