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/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.
|
|
1196
|
+
var VERSION = true ? "6.0.253" : "0.0.0-test";
|
|
1197
1197
|
|
|
1198
1198
|
// src/util/download/download.ts
|
|
1199
1199
|
var download = async ({
|
|
@@ -5949,6 +5949,7 @@ function processUIMessageStream({
|
|
|
5949
5949
|
case "reasoning-start": {
|
|
5950
5950
|
const reasoningPart = {
|
|
5951
5951
|
type: "reasoning",
|
|
5952
|
+
id: chunk.id,
|
|
5952
5953
|
text: "",
|
|
5953
5954
|
providerMetadata: chunk.providerMetadata,
|
|
5954
5955
|
state: "streaming"
|
|
@@ -9276,6 +9277,7 @@ var uiMessagesSchema = lazySchema2(
|
|
|
9276
9277
|
}),
|
|
9277
9278
|
z8.object({
|
|
9278
9279
|
type: z8.literal("reasoning"),
|
|
9280
|
+
id: z8.string().optional(),
|
|
9279
9281
|
text: z8.string(),
|
|
9280
9282
|
state: z8.enum(["streaming", "done"]).optional(),
|
|
9281
9283
|
providerMetadata: providerMetadataSchema.optional()
|