ai 6.0.68 → 6.0.70
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 +13 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/03-agents/06-subagents.mdx +362 -0
- package/docs/03-agents/index.mdx +7 -1
- package/docs/03-ai-sdk-core/35-image-generation.mdx +2 -2
- package/docs/04-ai-sdk-ui/02-chatbot.mdx +1 -1
- package/package.json +2 -2
- package/src/agent/create-agent-ui-stream.ts +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 6.0.70
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ae30443]
|
|
8
|
+
- @ai-sdk/gateway@3.0.33
|
|
9
|
+
|
|
10
|
+
## 6.0.69
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- d659305: fix(ai): auto-populate `originalMessages` in `createAgentUIStream`
|
|
15
|
+
|
|
3
16
|
## 6.0.68
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1205,7 +1205,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
|
|
|
1205
1205
|
var import_provider_utils4 = require("@ai-sdk/provider-utils");
|
|
1206
1206
|
|
|
1207
1207
|
// src/version.ts
|
|
1208
|
-
var VERSION = true ? "6.0.
|
|
1208
|
+
var VERSION = true ? "6.0.70" : "0.0.0-test";
|
|
1209
1209
|
|
|
1210
1210
|
// src/util/download/download.ts
|
|
1211
1211
|
var download = async ({ url }) => {
|
|
@@ -8516,6 +8516,7 @@ async function createAgentUIStream({
|
|
|
8516
8516
|
onStepFinish,
|
|
8517
8517
|
...uiMessageStreamOptions
|
|
8518
8518
|
}) {
|
|
8519
|
+
var _a21;
|
|
8519
8520
|
const validatedMessages = await validateUIMessages({
|
|
8520
8521
|
messages: uiMessages,
|
|
8521
8522
|
tools: agent.tools
|
|
@@ -8531,7 +8532,11 @@ async function createAgentUIStream({
|
|
|
8531
8532
|
experimental_transform,
|
|
8532
8533
|
onStepFinish
|
|
8533
8534
|
});
|
|
8534
|
-
return result.toUIMessageStream(
|
|
8535
|
+
return result.toUIMessageStream({
|
|
8536
|
+
...uiMessageStreamOptions,
|
|
8537
|
+
// TODO reading `originalMessages` is here for bc, always use `validatedMessages` in v7
|
|
8538
|
+
originalMessages: (_a21 = uiMessageStreamOptions.originalMessages) != null ? _a21 : validatedMessages
|
|
8539
|
+
});
|
|
8535
8540
|
}
|
|
8536
8541
|
|
|
8537
8542
|
// src/agent/create-agent-ui-stream-response.ts
|