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 +8 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +4 -0
- package/package.json +2 -2
- package/src/ui/process-ui-message-stream.ts +1 -0
- package/src/ui/ui-messages.ts +5 -0
- package/src/ui/validate-ui-messages.ts +1 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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.
|
|
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()
|