Skip to content

Commit 87a4877

Browse files
authored
Merge pull request #868 from AikidoSec/ai-sdk-v6
Support AI SDK v6
2 parents 5f27066 + 4cb5fcd commit 87a4877

11 files changed

Lines changed: 2336 additions & 5752 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Zen instruments the following AI SDKs to track which models are used and how man
111111
-[`@mistralai/mistralai`](https://www.npmjs.com/package/@mistralai/mistralai) 1.x
112112
-[`@anthropic-ai/sdk`](https://www.npmjs.com/package/@anthropic-ai/sdk) ^0.40.x
113113
-[`@aws-sdk/client-bedrock-runtime`](https://www.npmjs.com/package/@aws-sdk/client-bedrock-runtime) 3.x
114-
-[`ai`](https://www.npmjs.com/package/ai) 5.x, 4.x
114+
-[`ai`](https://www.npmjs.com/package/ai) 6.x, 5.x, 4.x
115115
-[`@google/genai`](https://www.npmjs.com/package/@google/genai) ^1.6.0
116116

117117
_Note: Prompt injection attacks are currently not covered by Zen._

library/agent/Agent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ t.test("it sends started event", async (t) => {
109109
t.same(logger.getMessages(), [
110110
"Starting agent v0.0.0...",
111111
"Found token, reporting enabled!",
112-
"mongodb@6.20.0 is supported!",
112+
"mongodb@6.21.0 is supported!",
113113
]);
114114
});
115115

library/helpers/getPackageVersion.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as t from "tap";
22
import { getPackageVersion } from "./getPackageVersion";
33

44
t.test("it resolves the version of a package", async (t) => {
5-
t.same(getPackageVersion("express"), "5.1.0");
5+
t.same(getPackageVersion("express"), "5.2.1");
66
t.same(getPackageVersion("non-existing-package"), undefined);
7-
t.same(getPackageVersion("@google-cloud/functions-framework"), "4.0.0");
7+
t.same(getPackageVersion("@google-cloud/functions-framework"), "4.0.1");
88
});

0 commit comments

Comments
 (0)