ai 6.0.157 → 6.0.159
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +2 -2
- package/src/ui/last-assistant-message-is-complete-with-approval-responses.ts +1 -2
package/dist/index.mjs
CHANGED
|
@@ -1143,7 +1143,7 @@ import {
|
|
|
1143
1143
|
} from "@ai-sdk/provider-utils";
|
|
1144
1144
|
|
|
1145
1145
|
// src/version.ts
|
|
1146
|
-
var VERSION = true ? "6.0.
|
|
1146
|
+
var VERSION = true ? "6.0.159" : "0.0.0-test";
|
|
1147
1147
|
|
|
1148
1148
|
// src/util/download/download.ts
|
|
1149
1149
|
var download = async ({
|
|
@@ -13320,7 +13320,7 @@ function lastAssistantMessageIsCompleteWithApprovalResponses({
|
|
|
13320
13320
|
const lastStepStartIndex = message.parts.reduce((lastIndex, part, index) => {
|
|
13321
13321
|
return part.type === "step-start" ? index : lastIndex;
|
|
13322
13322
|
}, -1);
|
|
13323
|
-
const lastStepToolInvocations = message.parts.slice(lastStepStartIndex + 1).filter(isToolUIPart)
|
|
13323
|
+
const lastStepToolInvocations = message.parts.slice(lastStepStartIndex + 1).filter(isToolUIPart);
|
|
13324
13324
|
return (
|
|
13325
13325
|
// has at least one tool approval response
|
|
13326
13326
|
lastStepToolInvocations.filter((part) => part.state === "approval-responded").length > 0 && // all tool approvals must have a response
|