@composio/vercel 0.1.44 → 0.2.0
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/dist/index.cjs +2 -1
- package/dist/index.js +5 -3
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -107,9 +107,10 @@ var VercelProvider = class extends import_core.BaseAgenticProvider {
|
|
|
107
107
|
const parameters = this.strict && inputParams?.type === "object" ? (0, import_core.removeNonRequiredProperties)(
|
|
108
108
|
inputParams
|
|
109
109
|
) : inputParams ?? {};
|
|
110
|
+
const inputParametersSchema = (0, import_core.jsonSchemaToZodSchema)(parameters);
|
|
110
111
|
return (0, import_ai.tool)({
|
|
111
112
|
description: composioTool.description,
|
|
112
|
-
|
|
113
|
+
inputSchema: inputParametersSchema,
|
|
113
114
|
execute: async (params) => {
|
|
114
115
|
const input = typeof params === "string" ? JSON.parse(params) : params;
|
|
115
116
|
return await executeTool(composioTool.slug, input);
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import {
|
|
3
3
|
BaseAgenticProvider,
|
|
4
|
-
removeNonRequiredProperties
|
|
4
|
+
removeNonRequiredProperties,
|
|
5
|
+
jsonSchemaToZodSchema
|
|
5
6
|
} from "@composio/core";
|
|
6
|
-
import {
|
|
7
|
+
import { tool } from "ai";
|
|
7
8
|
var VercelProvider = class extends BaseAgenticProvider {
|
|
8
9
|
name = "vercel";
|
|
9
10
|
strict;
|
|
@@ -86,9 +87,10 @@ var VercelProvider = class extends BaseAgenticProvider {
|
|
|
86
87
|
const parameters = this.strict && inputParams?.type === "object" ? removeNonRequiredProperties(
|
|
87
88
|
inputParams
|
|
88
89
|
) : inputParams ?? {};
|
|
90
|
+
const inputParametersSchema = jsonSchemaToZodSchema(parameters);
|
|
89
91
|
return tool({
|
|
90
92
|
description: composioTool.description,
|
|
91
|
-
|
|
93
|
+
inputSchema: inputParametersSchema,
|
|
92
94
|
execute: async (params) => {
|
|
93
95
|
const input = typeof params === "string" ? JSON.parse(params) : params;
|
|
94
96
|
return await executeTool(composioTool.slug, input);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/vercel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,12 +23,13 @@
|
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@composio/core": "0.1.44",
|
|
26
|
-
"ai": "^
|
|
26
|
+
"ai": "^5.0.16"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"tsup": "^8.4.0",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
31
|
"vitest": "^3.1.4",
|
|
32
|
+
"ai": "^5.0.16",
|
|
32
33
|
"@composio/core": "0.1.44"
|
|
33
34
|
},
|
|
34
35
|
"gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064",
|