@ai-sdk/anthropic 4.0.105 → 4.0.107
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 +18 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js.map +1 -1
- package/package.json +5 -5
- package/src/tool/bash_20241022.ts +6 -1
- package/src/tool/bash_20250124.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/anthropic",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.107",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ai-sdk/provider": "4.0.
|
|
39
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
38
|
+
"@ai-sdk/provider": "4.0.39",
|
|
39
|
+
"@ai-sdk/provider-utils": "5.0.83"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@ai-sdk/test-server": "2.0.4",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "pnpm clean && tsdown",
|
|
74
74
|
"build:watch": "pnpm clean && tsdown --watch",
|
|
75
|
-
"clean": "del-cli docs
|
|
76
|
-
"type-check": "tsc --
|
|
75
|
+
"clean": "del-cli docs",
|
|
76
|
+
"type-check": "tsc --noEmit",
|
|
77
77
|
"test": "pnpm test:node && pnpm test:edge",
|
|
78
78
|
"test:update": "pnpm test:node -u",
|
|
79
79
|
"test:watch": "vitest --config vitest.node.config.js",
|
|
@@ -54,7 +54,12 @@ type Bash20241022OptionsWithNullableExecute<OUTPUT> = Omit<
|
|
|
54
54
|
execute?: Bash20241022Options<OUTPUT>['execute'] | null;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
// The default execute function does not pass `maxOutputLength`, so the
|
|
58
|
+
// sandbox returns the full output without the original stream lengths.
|
|
59
|
+
type Bash20241022DefaultOutput = Pick<
|
|
60
|
+
Awaited<ReturnType<SandboxSession['run']>>,
|
|
61
|
+
'exitCode' | 'stdout' | 'stderr'
|
|
62
|
+
>;
|
|
58
63
|
|
|
59
64
|
export function bash_20241022(
|
|
60
65
|
options?: Omit<Bash20241022Options<Bash20241022DefaultOutput>, 'execute'> & {
|
|
@@ -54,7 +54,12 @@ type Bash20250124OptionsWithNullableExecute<OUTPUT> = Omit<
|
|
|
54
54
|
execute?: Bash20250124Options<OUTPUT>['execute'] | null;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
// The default execute function does not pass `maxOutputLength`, so the
|
|
58
|
+
// sandbox returns the full output without the original stream lengths.
|
|
59
|
+
type Bash20250124DefaultOutput = Pick<
|
|
60
|
+
Awaited<ReturnType<SandboxSession['run']>>,
|
|
61
|
+
'exitCode' | 'stdout' | 'stderr'
|
|
62
|
+
>;
|
|
58
63
|
|
|
59
64
|
export function bash_20250124(
|
|
60
65
|
options?: Omit<Bash20250124Options<Bash20250124DefaultOutput>, 'execute'> & {
|