ai 7.0.157 → 7.0.158
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 +17 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +1 -1
- package/docs/02-foundations/02-providers-and-models.mdx +32 -5
- package/docs/03-agents/01-overview.mdx +7 -0
- package/docs/03-agents/10-eve.mdx +96 -0
- package/docs/03-agents/index.mdx +6 -0
- package/docs/03-ai-sdk-core/16-mcp-tools.mdx +13 -7
- package/docs/03-ai-sdk-core/17-mcp-apps.mdx +3 -8
- package/docs/06-advanced/10-vercel-deployment-guide.mdx +7 -0
- package/docs/07-reference/01-ai-sdk-core/23-create-mcp-client.mdx +6 -8
- package/docs/07-reference/01-ai-sdk-core/24-mcp-stdio-transport.mdx +4 -4
- package/docs/07-reference/01-ai-sdk-core/34-sandbox.mdx +114 -6
- package/docs/07-reference/02-ai-sdk-ui/48-mcp-app-renderer.mdx +6 -11
- package/docs/07-reference/02-ai-sdk-ui/index.mdx +1 -1
- package/package.json +12 -12
- package/src/index.ts +2 -0
- package/src/test/mock-sandbox.ts +7 -1
- package/src/util/fix-json.ts +0 -1
package/src/index.ts
CHANGED
package/src/test/mock-sandbox.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Experimental_SandboxSession } from '@ai-sdk/provider-utils';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* File stubs and an unimplemented spawn method on `Experimental_SandboxSession`,
|
|
4
|
+
* File and path stubs and an unimplemented spawn method on `Experimental_SandboxSession`,
|
|
5
5
|
* intended to be spread into test fixtures that only care about `run`.
|
|
6
6
|
*/
|
|
7
7
|
export const mockSandboxSessionFileStubs: Pick<
|
|
@@ -12,6 +12,9 @@ export const mockSandboxSessionFileStubs: Pick<
|
|
|
12
12
|
| 'writeFile'
|
|
13
13
|
| 'writeBinaryFile'
|
|
14
14
|
| 'writeTextFile'
|
|
15
|
+
| 'stat'
|
|
16
|
+
| 'listDirectory'
|
|
17
|
+
| 'deleteFile'
|
|
15
18
|
| 'spawn'
|
|
16
19
|
> = {
|
|
17
20
|
readFile: async () => null,
|
|
@@ -20,6 +23,9 @@ export const mockSandboxSessionFileStubs: Pick<
|
|
|
20
23
|
writeFile: async () => {},
|
|
21
24
|
writeBinaryFile: async () => {},
|
|
22
25
|
writeTextFile: async () => {},
|
|
26
|
+
stat: async () => null,
|
|
27
|
+
listDirectory: async () => null,
|
|
28
|
+
deleteFile: async () => false,
|
|
23
29
|
spawn: async () => {
|
|
24
30
|
throw new Error('spawn is not implemented in this mock.');
|
|
25
31
|
},
|