@composio/vercel 0.13.0 → 0.13.1-canary.2
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/README.md +6 -0
- package/dist/index.d.mts +13 -3
- package/dist/index.mjs +1 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Composio provider for the [Vercel AI SDK](https://sdk.vercel.ai) (`ai`). It conv
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
You need **Node.js 22.22.3 or newer**. The SDK is **ESM-only**: use `import` rather than CommonJS `require()`, and set `"type": "module"` in your project's `package.json`.
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
10
|
npm install @composio/core @composio/vercel ai @ai-sdk/anthropic
|
|
9
11
|
```
|
|
@@ -15,6 +17,10 @@ Set two environment variables:
|
|
|
15
17
|
- `COMPOSIO_API_KEY` from the [Composio dashboard](https://dashboard.composio.dev/settings)
|
|
16
18
|
- `ANTHROPIC_API_KEY` from [Anthropic](https://console.anthropic.com/settings/keys) (or the key for your chosen model provider)
|
|
17
19
|
|
|
20
|
+
### Verified SDK versions
|
|
21
|
+
|
|
22
|
+
The published packages `@composio/core@0.28.0`, `@composio/vercel@0.13.0`, and `ai@7.0.162` pass a consumer typecheck on Node.js 24.22.1 with TypeScript 6.0.2. The check passes session tools to both `generateText` and `streamText` and loads the compiled ESM imports. This verifies the TypeScript integration, not live model or tool execution.
|
|
23
|
+
|
|
18
24
|
## Quickstart
|
|
19
25
|
|
|
20
26
|
Create a session for your user, pass its tools to the AI SDK, and cap the run with `stopWhen`:
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vercel AI Provider
|
|
3
|
+
* To be used with the Vercel AI SDK
|
|
4
|
+
*
|
|
5
|
+
* Author: Musthaq Ahamad <musthaq@composio.dev>
|
|
6
|
+
* Legacy Reference: https://github.com/ComposioHQ/composio/blob/master/js/src/frameworks/vercel.ts
|
|
7
|
+
*
|
|
8
|
+
* This provider provides a set of tools for interacting with Vercel AI SDK.
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @module providers/vercel
|
|
12
|
+
*/
|
|
1
13
|
import { BaseAgenticProvider, ExecuteToolFn, McpServerGetResponse, McpUrlResponse, Tool } from "@composio/core";
|
|
2
14
|
import { Tool as Tool$1, ToolSet } from "ai";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
15
|
export type VercelToolCollection = ToolSet;
|
|
5
16
|
export declare class VercelProvider extends BaseAgenticProvider<VercelToolCollection, Tool$1, McpServerGetResponse> {
|
|
6
17
|
readonly name = "vercel";
|
|
@@ -158,5 +169,4 @@ export declare class VercelProvider extends BaseAgenticProvider<VercelToolCollec
|
|
|
158
169
|
* @returns Standard MCP server response format
|
|
159
170
|
*/
|
|
160
171
|
wrapMcpServerResponse(data: McpUrlResponse): McpServerGetResponse;
|
|
161
|
-
}
|
|
162
|
-
//#endregion
|
|
172
|
+
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseAgenticProvider, deduplicateJsonSchemaRequiredArrays, dereferenceJsonSchema, jsonSchemaToZodSchema, logger, normalizeToolArguments, omitNullToolArguments, toStrictJsonSchema } from "@composio/core";
|
|
2
2
|
import { jsonSchema, tool } from "ai";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* Vercel AI Provider
|
|
7
7
|
* To be used with the Vercel AI SDK
|
|
@@ -224,5 +224,4 @@ var VercelProvider = class extends BaseAgenticProvider {
|
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
|
|
227
|
-
//#endregion
|
|
228
227
|
export { VercelProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/vercel",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1-canary.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"author": "",
|
|
34
34
|
"license": "ISC",
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@composio/core": "
|
|
36
|
+
"@composio/core": "0.33.1-canary.2",
|
|
37
37
|
"ai": "^6.0.0 || ^7.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"ai": "
|
|
41
|
-
"tsdown": "^0.23.
|
|
40
|
+
"ai": "7.0.187",
|
|
41
|
+
"tsdown": "^0.23.7",
|
|
42
42
|
"typescript": "^7.0.2",
|
|
43
|
-
"vitest": "^5.0
|
|
44
|
-
"zod": "^4.
|
|
45
|
-
"@composio/core": "0.
|
|
43
|
+
"vitest": "^5.1.0",
|
|
44
|
+
"zod": "^4.6.7",
|
|
45
|
+
"@composio/core": "0.33.1-canary.2"
|
|
46
46
|
},
|
|
47
47
|
"gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064",
|
|
48
48
|
"scripts": {
|