Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Fix: Treating params as array instead of object in Proxy Execute (#1758)
Musthaq Ahamad91c36473ddb8
diff --git a/.changeset/pre.json b/.changeset/pre.jsonindex fa5327a98..022f6f578 100644--- a/.changeset/pre.json+++ b/.changeset/pre.json@@ -22,12 +22,14 @@"modern-parents-bake","modern-webs-admire","polite-suits-accept",+ "red-pigs-cross","slimy-showers-burn","sour-ravens-behave","tame-jobs-train","tasty-suns-check","thick-keys-work","wide-mugs-add",+ "yellow-mangos-kneel","young-waves-study"]}diff --git a/.changeset/red-pigs-cross.md b/.changeset/red-pigs-cross.mdnew file mode 100644index 000000000..33842c420--- /dev/null+++ b/.changeset/red-pigs-cross.md@@ -0,0 +1,13 @@+---+'@composio/core': patch+'@composio/anthropic': patch+'@composio/cloudflare': patch+'@composio/google': patch+'@composio/langchain': patch+'@composio/mastra': patch+'@composio/openai': patch+'@composio/openai-agents': patch+'@composio/vercel': patch+---++Update depsdiff --git a/.changeset/yellow-mangos-kneel.md b/.changeset/yellow-mangos-kneel.mdnew file mode 100644index 000000000..8c716c6f7--- /dev/null+++ b/.changeset/yellow-mangos-kneel.md@@ -0,0 +1,13 @@+---+'@composio/core': patch+'@composio/anthropic': patch+'@composio/cloudflare': patch+'@composio/google': patch+'@composio/langchain': patch+'@composio/mastra': patch+'@composio/openai': patch+'@composio/openai-agents': patch+'@composio/vercel': patch+---++Fix proxy execute params and bump langchain packagesdiff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex a24fbd9a8..fc4c0bfe9 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -92,10 +92,10 @@ importers:version: link:../ts/packages/providers/vercel'@langchain/langgraph':specifier: ^0.2.72- version: 0.2.74(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected]))+ version: 0.2.74(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected]))'@langchain/openai':specifier: ^0.5.10- version: 0.5.13(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])+ version: 0.5.13(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])'@types/convict':specifier: ^6.1.6version: 6.1.6@@ -116,7 +116,7 @@ importers:version: 4.3.16([email protected])([email protected])composio-core:specifier: ^0.5.39- version: 0.5.39(@ai-sdk/[email protected]([email protected]))(@cloudflare/[email protected])(@langchain/[email protected]([email protected]([email protected])([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected]))([email protected]([email protected])([email protected]))([email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected])([email protected]))+ version: 0.5.39(@ai-sdk/[email protected]([email protected]))(@cloudflare/[email protected])(@langchain/[email protected]([email protected]([email protected])([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected]))([email protected]([email protected])([email protected]))([email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected])([email protected]))hono:specifier: ^4.7.11version: 4.8.0@@ -308,14 +308,14 @@ importers:specifier: workspace:*version: link:../../packages/providers/langchain'@langchain/core':- specifier: ^0.3.56+ specifier: ^0.3.63'@langchain/langgraph':- specifier: ^0.2.72- version: 0.2.74(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected]))+ specifier: ^0.3.8+ version: 0.3.8(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected]([email protected]))([email protected])([email protected]([email protected]))'@langchain/openai':- specifier: ^0.5.10- version: 0.5.13(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])+ specifier: ^0.6.1+ version: 0.6.1(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])dotenv:specifier: ^16.5.0version: 16.5.0@@ -707,8 +707,8 @@ importers:ts/packages/providers/langchain:dependencies:'@langchain/core':- specifier: ^0.3.44+ specifier: ^0.3.63devDependencies:'@composio/core':specifier: workspace:*@@ -1977,12 +1977,8 @@ packages:'@jsdevtools/[email protected]':resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==}- '@langchain/[email protected]':- resolution: {integrity: sha512-HLkOtVofgBHefaUae/+2fLNkpMLzEjHSavTmUF0YC7bDa5NPIZGlP80CGrSFXAeJ+WCPd8rIK8K/p6AW94inUQ==}- engines: {node: '>=18'}-- '@langchain/[email protected]':- resolution: {integrity: sha512-YAvnx0z3A8z5MvyjZzjC9ZxXZYM20ivFdUeLzANSPCoPCNIQ1/EppWP82RI24PcmWkNtuXsFVaj5juWiIpZvxg==}+ '@langchain/[email protected]':+ resolution: {integrity: sha512-CQfyu4WgwizUhSc1YsDDzzHga6WVhLqeuAyCD4VpGAPa3k3QI+H0b3ECFr/WjJMw0amMtHtfgPWMa1tS7P7qVg==}engines: {node: '>=18'}'@langchain/[email protected]':@@ -2002,6 +1998,20 @@ packages:react:optional: true+ '@langchain/[email protected]':+ resolution: {integrity: sha512-nfchDZUTJMTS4AtH5NyEhoGLUyhVQqBSm8liK0ApHc/PQhSlW7qumfsF85E+utnqWKWgdc9osSKl5jDff4j/HA==}+ peerDependencies:+ '@langchain/core': '>=0.2.31 <0.4.0'+ react: ^18 || ^19+ react-dom: ^18 || ^19+ peerDependenciesMeta:+ '@langchain/core':+ optional: true+ react:+ optional: true+ react-dom:+ optional: true+'@langchain/[email protected]':resolution: {integrity: sha512-oHpEi5sTZTPaeZX1UnzfM2OAJ21QGQrwReTV6+QnX7h8nDCBzhtipAw1cK616S+X8zpcVOjgOtJuaJhXa4mN8w==}engines: {node: '>=18'}@@ -2012,12 +2022,28 @@ packages:zod-to-json-schema:optional: true+ '@langchain/[email protected]':+ resolution: {integrity: sha512-JOtYNMa7BixzXrAtV76x1lS2+Blt4WLcbFUWwtiEqTMzwNg00fSvUQ6FaPeootL66iYamg67AVq12PerqMrelw==}+ engines: {node: '>=18'}+ peerDependencies:+ '@langchain/core': '>=0.3.58 < 0.4.0'+ zod-to-json-schema: ^3.x+ peerDependenciesMeta:+ zod-to-json-schema:+ optional: true+'@langchain/[email protected]':resolution: {integrity: sha512-t5UsO7XYE+DBQlXQ21QK74Y+LH4It20wnENrmueNvxIWTn0nHDIGVmO6wo4rJxbmOOPRQ4l/oAxGRnYU8B8v6w==}engines: {node: '>=18'}peerDependencies:'@langchain/core': '>=0.3.58 <0.4.0'+ '@langchain/[email protected]':+ resolution: {integrity: sha512-jm8MzMEjAKPReYma4Lewb9vGnocKbhoClqPuRTxtKPDgqQ5yJWSisNy4iZO/a1d6ag/7MnxwKMjVsJdy1cBsxw==}+ engines: {node: '>=18'}+ peerDependencies:+ '@langchain/core': '>=0.3.58 <0.4.0'+'@langchain/[email protected]':resolution: {integrity: sha512-djI4uw9rlkAb5iMhtLED+xJebDdAG935AdP4eRTB02R7OB/act55Bj9wsskhZsvuyQRpO4O1wQOp85s6T6GWmw==}engines: {node: '>=18'}@@ -4623,14 +4649,6 @@ packages:typeorm:optional: true- resolution: {integrity: sha512-9lwuLZuN3tXFYQ6eMg0rmbBw7oxQo4bu1NYeylbjz27bOdG1XB9XNoxaiIArkK4ciLdOIOhPMBXP4bkvZOgHRw==}- peerDependencies:- openai: '*'- peerDependenciesMeta:- openai:- optional: true-resolution: {integrity: sha512-imNIaBL6+ElE5eMzNHYwFxo6W/6rHlqcaUjCYoIeGdCYWlARxE3CTGKul5DJnaUgGP2CTLFeNXyvRx5HWC/4KQ==}peerDependencies:@@ -7585,14 +7603,14 @@ snapshots:'@jsdevtools/[email protected]': {}dependencies:'@cfworker/json-schema': 4.1.1ansi-styles: 5.2.0camelcase: 6.3.0decamelize: 1.2.0js-tiktoken: 1.0.20mustache: 4.2.0p-queue: 6.6.2p-retry: 4.6.2@@ -7602,14 +7620,14 @@ snapshots:transitivePeerDependencies:- openaidependencies:'@cfworker/json-schema': 4.1.1ansi-styles: 5.2.0camelcase: 6.3.0decamelize: 1.2.0js-tiktoken: 1.0.20mustache: 4.2.0p-queue: 6.6.2p-retry: 4.6.2@@ -7619,26 +7637,37 @@ snapshots:transitivePeerDependencies:- openai- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))':dependencies:uuid: 10.0.0- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])':+ dependencies:+ '@types/json-schema': 7.0.15+ p-queue: 6.6.2+ p-retry: 4.6.2+ uuid: 9.0.1+ optionalDependencies:+ react: 18.3.1++ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected]([email protected]))([email protected])':dependencies:'@types/json-schema': 7.0.15p-queue: 6.6.2p-retry: 4.6.2uuid: 9.0.1optionalDependencies:react: 18.3.1+ react-dom: 19.1.0([email protected])- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected]))':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected]))':dependencies:- '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))- '@langchain/langgraph-sdk': 0.0.84(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])+ '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))+ '@langchain/langgraph-sdk': 0.0.84(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])uuid: 10.0.0zod: 3.25.67optionalDependencies:@@ -7646,9 +7675,22 @@ snapshots:transitivePeerDependencies:- react- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected]([email protected]))([email protected])([email protected]([email protected]))':dependencies:+ '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))+ '@langchain/langgraph-sdk': 0.0.95(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected]([email protected]))([email protected])+ uuid: 10.0.0+ zod: 3.25.67+ optionalDependencies:+ zod-to-json-schema: 3.24.5([email protected])+ transitivePeerDependencies:+ - react+ - react-dom++ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])':+ dependencies:js-tiktoken: 1.0.20openai: 4.104.0([email protected])([email protected])zod: 3.25.32@@ -7656,9 +7698,18 @@ snapshots:- encoding- ws- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])':dependencies:+ js-tiktoken: 1.0.20+ openai: 5.5.1([email protected])([email protected])+ zod: 3.25.67+ transitivePeerDependencies:+ - ws++ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))':+ dependencies:js-tiktoken: 1.0.20'@manypkg/[email protected]':@@ -9697,21 +9748,21 @@ snapshots:has-own-prop: 2.0.0repeat-string: 1.6.1- [email protected](@ai-sdk/[email protected]([email protected]))(@cloudflare/[email protected])(@langchain/[email protected]([email protected]([email protected])([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected]))([email protected]([email protected])([email protected]))([email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected])([email protected])):+ [email protected](@ai-sdk/[email protected]([email protected]))(@cloudflare/[email protected])(@langchain/[email protected]([email protected]([email protected])([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected]))([email protected]([email protected])([email protected]))([email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected])([email protected])):dependencies:'@ai-sdk/openai': 1.3.22([email protected])'@cloudflare/workers-types': 4.20250619.0'@composio/mcp': 1.0.3-0'@hey-api/client-axios': 0.2.12([email protected])- '@langchain/openai': 0.5.13(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])+ '@langchain/openai': 0.5.13(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])ai: 4.3.16([email protected])([email protected])axios: 1.10.0chalk: 4.1.2cli-progress: 3.12.0commander: 12.1.0inquirer: 10.2.2- langchain: 0.3.28(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected])+ langchain: 0.3.28(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected])open: 8.4.2openai: 4.104.0([email protected])([email protected])pusher-js: 8.4.0-rc2@@ -10661,11 +10712,11 @@ snapshots:- [email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected]):+ [email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected]):dependencies:- '@langchain/openai': 0.5.13(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])- '@langchain/textsplitters': 0.1.0(@langchain/[email protected]([email protected]([email protected])([email protected])))+ '@langchain/openai': 0.5.13(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])+ '@langchain/textsplitters': 0.1.0(@langchain/[email protected]([email protected]([email protected])([email protected])))js-tiktoken: 1.0.20js-yaml: 4.1.0jsonpointer: 5.0.1@@ -10682,7 +10733,7 @@ snapshots:- openai- wsdependencies:'@types/uuid': 10.0.0chalk: 4.1.2@@ -10692,9 +10743,9 @@ snapshots:semver: 7.7.2uuid: 10.0.0optionalDependencies:- openai: 5.5.1([email protected])([email protected])+ openai: 4.104.0([email protected])([email protected])dependencies:'@types/uuid': 10.0.0chalk: 4.1.2@@ -10704,7 +10755,7 @@ snapshots:semver: 7.7.2uuid: 10.0.0optionalDependencies:- openai: 4.104.0([email protected])([email protected])+ openai: 5.5.1([email protected])([email protected])dependencies:diff --git a/ts/examples/langchain/package.json b/ts/examples/langchain/package.jsonindex 5b24cb7a7..ffa508451 100644--- a/ts/examples/langchain/package.json+++ b/ts/examples/langchain/package.json@@ -16,9 +16,9 @@"dependencies": {"@composio/core": "workspace:*","@composio/langchain": "workspace:*",- "@langchain/core": "^0.3.56",- "@langchain/langgraph": "^0.2.72",- "@langchain/openai": "^0.5.10",+ "@langchain/core": "^0.3.63",+ "@langchain/langgraph": "^0.3.8",+ "@langchain/openai": "^0.6.1","dotenv": "^16.5.0","openai": "^4.94.0"},diff --git a/ts/packages/core/CHANGELOG.md b/ts/packages/core/CHANGELOG.mdindex 0c304166b..7677b36d2 100644--- a/ts/packages/core/CHANGELOG.md+++ b/ts/packages/core/CHANGELOG.md@@ -1,5 +1,17 @@# @composio/core+## 0.1.36-next.12++### Patch Changes++- Update deps++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/core/package.json b/ts/packages/core/package.jsonindex 330c84590..cb21f4058 100644--- a/ts/packages/core/package.json+++ b/ts/packages/core/package.json@@ -1,6 +1,6 @@{"name": "@composio/core",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "","main": "src/index.ts","type": "module",diff --git a/ts/packages/core/src/models/Tools.ts b/ts/packages/core/src/models/Tools.tsindex 2dde9e9de..fce9993e1 100644--- a/ts/packages/core/src/models/Tools.ts+++ b/ts/packages/core/src/models/Tools.ts@@ -876,8 +876,8 @@ export class Tools<if (toolProxyParams.data.parameters) {parameters.push(- ...Object.entries(toolProxyParams.data.parameters).map(([key, value]) => ({- name: key,+ ...(toolProxyParams.data.parameters ?? []).map(value => ({+ name: value.name,type: value.in === 'header' ? parameterTypes.header : parameterTypes.query,value: value.value.toString(),}))diff --git a/ts/packages/core/test/tools/tools.test.ts b/ts/packages/core/test/tools/tools.test.tsindex 73e1229b4..e6619484a 100644--- a/ts/packages/core/test/tools/tools.test.ts+++ b/ts/packages/core/test/tools/tools.test.ts@@ -446,4 +446,270 @@ describe('Tools', () => {expect(result).toEqual(toolMocks.toolExecuteResponse);});});++ describe('proxyExecute', () => {+ it('should handle proxy request with headers and query parameters correctly', async () => {+ const proxyParams = {+ endpoint: '/api/test',+ method: 'POST' as const,+ body: { data: 'test' },+ parameters: [+ {+ in: 'header' as const,+ name: 'Authorization',+ value: 'Bearer token123',+ },+ {+ in: 'header' as const,+ name: 'Content-Type',+ value: 'application/json',+ },+ {+ in: 'query' as const,+ name: 'page',+ value: 1,+ },+ {+ in: 'query' as const,+ name: 'limit',+ value: 10,+ },+ ],+ connectedAccountId: 'test-account-id',+ };++ const expectedProxyResponse = {+ data: { success: true },+ successful: true,+ };++ mockClient.tools.proxy.mockResolvedValueOnce(expectedProxyResponse);++ const result = await context.tools.proxyExecute(proxyParams);++ expect(mockClient.tools.proxy).toHaveBeenCalledWith({+ endpoint: '/api/test',+ method: 'POST',+ body: { data: 'test' },+ connected_account_id: 'test-account-id',+ parameters: [+ {+ name: 'Authorization',+ type: 'header',+ value: 'Bearer token123',+ },+ {+ name: 'Content-Type',+ type: 'header',+ value: 'application/json',+ },+ {+ name: 'page',+ type: 'query',+ value: '1',+ },+ {+ name: 'limit',+ type: 'query',+ value: '10',+ },+ ],+ });++ expect(result).toEqual(expectedProxyResponse);+ });++ it('should handle proxy request with only header parameters', async () => {+ const proxyParams = {+ endpoint: '/api/headers-only',+ method: 'GET' as const,+ parameters: [+ {+ in: 'header' as const,+ name: 'Authorization',+ value: 'Bearer token123',+ },+ {+ in: 'header' as const,+ name: 'Accept',+ value: 'application/json',+ },+ ],+ };++ const expectedProxyResponse = {+ data: { result: 'success' },+ successful: true,+ };++ mockClient.tools.proxy.mockResolvedValueOnce(expectedProxyResponse);++ const result = await context.tools.proxyExecute(proxyParams);++ expect(mockClient.tools.proxy).toHaveBeenCalledWith({+ endpoint: '/api/headers-only',+ method: 'GET',+ body: undefined,+ connected_account_id: undefined,+ parameters: [+ {+ name: 'Authorization',+ type: 'header',+ value: 'Bearer token123',+ },+ {+ name: 'Accept',+ type: 'header',+ value: 'application/json',+ },+ ],+ });++ expect(result).toEqual(expectedProxyResponse);+ });++ it('should handle proxy request with only query parameters', async () => {+ const proxyParams = {+ endpoint: '/api/search',+ method: 'GET' as const,+ parameters: [+ {+ in: 'query' as const,+ name: 'q',+ value: 'test search',+ },+ {+ in: 'query' as const,+ name: 'page',+ value: 2,+ },+ ],+ };++ const expectedProxyResponse = {+ data: { results: ['item1', 'item2'] },+ successful: true,+ };++ mockClient.tools.proxy.mockResolvedValueOnce(expectedProxyResponse);++ const result = await context.tools.proxyExecute(proxyParams);++ expect(mockClient.tools.proxy).toHaveBeenCalledWith({+ endpoint: '/api/search',+ method: 'GET',+ body: undefined,+ connected_account_id: undefined,+ parameters: [+ {+ name: 'q',+ type: 'query',+ value: 'test search',+ },+ {+ name: 'page',+ type: 'query',+ value: '2',+ },+ ],+ });++ expect(result).toEqual(expectedProxyResponse);+ });++ it('should handle proxy request without parameters', async () => {+ const proxyParams = {+ endpoint: '/api/no-params',+ method: 'PUT' as const,+ body: { update: 'data' },+ connectedAccountId: 'test-account-id',+ };++ const expectedProxyResponse = {+ data: { updated: true },+ successful: true,+ };++ mockClient.tools.proxy.mockResolvedValueOnce(expectedProxyResponse);++ const result = await context.tools.proxyExecute(proxyParams);++ expect(mockClient.tools.proxy).toHaveBeenCalledWith({+ endpoint: '/api/no-params',+ method: 'PUT',+ body: { update: 'data' },+ connected_account_id: 'test-account-id',+ parameters: [],+ });++ expect(result).toEqual(expectedProxyResponse);+ });++ it('should convert numeric parameter values to strings', async () => {+ const proxyParams = {+ endpoint: '/api/numeric',+ method: 'GET' as const,+ parameters: [+ {+ in: 'query' as const,+ name: 'count',+ value: 42,+ },+ {+ in: 'header' as const,+ name: 'Version',+ value: 1.5,+ },+ ],+ };++ const expectedProxyResponse = {+ data: { result: 'ok' },+ successful: true,+ };++ mockClient.tools.proxy.mockResolvedValueOnce(expectedProxyResponse);++ const result = await context.tools.proxyExecute(proxyParams);++ expect(mockClient.tools.proxy).toHaveBeenCalledWith({+ endpoint: '/api/numeric',+ method: 'GET',+ body: undefined,+ connected_account_id: undefined,+ parameters: [+ {+ name: 'count',+ type: 'query',+ value: '42',+ },+ {+ name: 'Version',+ type: 'header',+ value: '1.5',+ },+ ],+ });++ expect(result).toEqual(expectedProxyResponse);+ });++ it('should throw validation error for invalid parameters', async () => {+ const invalidProxyParams = {+ endpoint: '/api/test',+ method: 'INVALID_METHOD' as any,+ parameters: [+ {+ in: 'header' as const,+ name: 'Authorization',+ value: 'Bearer token123',+ },+ ],+ };++ await expect(context.tools.proxyExecute(invalidProxyParams)).rejects.toThrow(+ 'Invalid tool proxy parameters'+ );+ });+ });});diff --git a/ts/packages/providers/anthropic/CHANGELOG.md b/ts/packages/providers/anthropic/CHANGELOG.mdindex 9e2b6807a..424caf5fb 100644--- a/ts/packages/providers/anthropic/CHANGELOG.md+++ b/ts/packages/providers/anthropic/CHANGELOG.md@@ -1,5 +1,21 @@# @composio/anthropic+## 0.1.36-next.12++### Patch Changes++- Update deps+- Updated dependencies+ - @composio/[email protected]++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+- Updated dependencies+ - @composio/[email protected]+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/providers/anthropic/package.json b/ts/packages/providers/anthropic/package.jsonindex 1c4fdd9d9..4b30c57d0 100644--- a/ts/packages/providers/anthropic/package.json+++ b/ts/packages/providers/anthropic/package.json@@ -1,6 +1,6 @@{"name": "@composio/anthropic",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "Non-Agentic Provider for Anthropic in Composio SDK","main": "src/index.ts","type": "module",@@ -35,7 +35,7 @@"packageManager": "[email protected]","peerDependencies": {"@anthropic-ai/sdk": "^0.52.0",- "@composio/core": "0.1.36-next.10"+ "@composio/core": "0.1.36-next.12"},"devDependencies": {"@composio/core": "workspace:*",diff --git a/ts/packages/providers/cloudflare/CHANGELOG.md b/ts/packages/providers/cloudflare/CHANGELOG.mdindex 35ec60ccf..3d9a979f9 100644--- a/ts/packages/providers/cloudflare/CHANGELOG.md+++ b/ts/packages/providers/cloudflare/CHANGELOG.md@@ -1,5 +1,21 @@# @composio/cloudflare+## 0.1.36-next.12++### Patch Changes++- Update deps+- Updated dependencies+ - @composio/[email protected]++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+- Updated dependencies+ - @composio/[email protected]+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/providers/cloudflare/package.json b/ts/packages/providers/cloudflare/package.jsonindex 1edff9f13..544e78bf3 100644--- a/ts/packages/providers/cloudflare/package.json+++ b/ts/packages/providers/cloudflare/package.json@@ -1,6 +1,6 @@{"name": "@composio/cloudflare",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "","main": "src/index.ts","type": "module",@@ -31,7 +31,7 @@"packageManager": "[email protected]","peerDependencies": {"@cloudflare/workers-types": "^4.20250416.0",- "@composio/core": "0.1.36-next.10"+ "@composio/core": "0.1.36-next.12"},"devDependencies": {"@composio/core": "workspace:*",diff --git a/ts/packages/providers/google/CHANGELOG.md b/ts/packages/providers/google/CHANGELOG.mdindex b6e6b4714..18a5e8a71 100644--- a/ts/packages/providers/google/CHANGELOG.md+++ b/ts/packages/providers/google/CHANGELOG.md@@ -1,5 +1,21 @@# @composio/google+## 0.1.36-next.12++### Patch Changes++- Update deps+- Updated dependencies+ - @composio/[email protected]++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+- Updated dependencies+ - @composio/[email protected]+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/providers/google/package.json b/ts/packages/providers/google/package.jsonindex 6b804a845..9d4adb8ed 100644--- a/ts/packages/providers/google/package.json+++ b/ts/packages/providers/google/package.json@@ -1,6 +1,6 @@{"name": "@composio/google",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "Google GenAI Provider for Composio SDK","main": "src/index.ts","type": "module",@@ -36,7 +36,7 @@"license": "ISC","packageManager": "[email protected]","peerDependencies": {- "@composio/core": "0.1.36-next.10",+ "@composio/core": "0.1.36-next.12","@google/genai": "^1.1.0"},"devDependencies": {diff --git a/ts/packages/providers/langchain/CHANGELOG.md b/ts/packages/providers/langchain/CHANGELOG.mdindex f1a7770dd..c959b14bb 100644--- a/ts/packages/providers/langchain/CHANGELOG.md+++ b/ts/packages/providers/langchain/CHANGELOG.md@@ -1,5 +1,21 @@# @composio/langchain+## 0.1.36-next.12++### Patch Changes++- Update deps+- Updated dependencies+ - @composio/[email protected]++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+- Updated dependencies+ - @composio/[email protected]+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/providers/langchain/package.json b/ts/packages/providers/langchain/package.jsonindex 37fb890ca..1759d15cc 100644--- a/ts/packages/providers/langchain/package.json+++ b/ts/packages/providers/langchain/package.json@@ -1,6 +1,6 @@{"name": "@composio/langchain",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "","main": "dist/index.js","type": "module",@@ -30,8 +30,8 @@"license": "ISC","packageManager": "[email protected]","peerDependencies": {- "@composio/core": "0.1.36-next.10",- "@langchain/core": "^0.3.44"+ "@composio/core": "0.1.36-next.12",+ "@langchain/core": "^0.3.63"},"devDependencies": {"@composio/core": "workspace:*",diff --git a/ts/packages/providers/mastra/CHANGELOG.md b/ts/packages/providers/mastra/CHANGELOG.mdindex caa39dd53..1d6e427da 100644--- a/ts/packages/providers/mastra/CHANGELOG.md+++ b/ts/packages/providers/mastra/CHANGELOG.md@@ -1,5 +1,21 @@# @composio/mastra+## 0.1.36-next.12++### Patch Changes++- Update deps+- Updated dependencies+ - @composio/[email protected]++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+- Updated dependencies+ - @composio/[email protected]+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/providers/mastra/package.json b/ts/packages/providers/mastra/package.jsonindex 012a5d8b2..9b44a873b 100644--- a/ts/packages/providers/mastra/package.json+++ b/ts/packages/providers/mastra/package.json@@ -1,6 +1,6 @@{"name": "@composio/mastra",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "Agentic Provider for mastra in Composio SDK","main": "src/index.ts","type": "module",@@ -34,7 +34,7 @@"license": "ISC","packageManager": "[email protected]","peerDependencies": {- "@composio/core": "0.1.36-next.10",+ "@composio/core": "0.1.36-next.12","@mastra/core": "^0.10.0"},"devDependencies": {diff --git a/ts/packages/providers/openai-agents/CHANGELOG.md b/ts/packages/providers/openai-agents/CHANGELOG.mdindex 352c3ab4a..b9a71de37 100644--- a/ts/packages/providers/openai-agents/CHANGELOG.md+++ b/ts/packages/providers/openai-agents/CHANGELOG.md@@ -1,5 +1,21 @@# @composio/vercel+## 0.1.36-next.12++### Patch Changes++- Update deps+- Updated dependencies+ - @composio/[email protected]++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+- Updated dependencies+ - @composio/[email protected]+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/providers/openai-agents/package.json b/ts/packages/providers/openai-agents/package.jsonindex 9871b6ddd..a7e90adb5 100644--- a/ts/packages/providers/openai-agents/package.json+++ b/ts/packages/providers/openai-agents/package.json@@ -1,6 +1,6 @@{"name": "@composio/openai-agents",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "","main": "src/index.ts","type": "module",@@ -30,7 +30,7 @@"license": "ISC","packageManager": "[email protected]","peerDependencies": {- "@composio/core": "0.1.36-next.10",+ "@composio/core": "0.1.36-next.12","@openai/agents": "^0.0.7"},"devDependencies": {diff --git a/ts/packages/providers/openai/CHANGELOG.md b/ts/packages/providers/openai/CHANGELOG.mdindex f692d41f2..c334202a0 100644--- a/ts/packages/providers/openai/CHANGELOG.md+++ b/ts/packages/providers/openai/CHANGELOG.md@@ -1,5 +1,21 @@# @composio/openai+## 0.1.36-next.12++### Patch Changes++- Update deps+- Updated dependencies+ - @composio/[email protected]++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+- Updated dependencies+ - @composio/[email protected]+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/providers/openai/package.json b/ts/packages/providers/openai/package.jsonindex 6c3f50e32..bad78fd65 100644--- a/ts/packages/providers/openai/package.json+++ b/ts/packages/providers/openai/package.json@@ -1,6 +1,6 @@{"name": "@composio/openai",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "","main": "src/index.ts","type": "module",@@ -30,7 +30,7 @@"license": "ISC","packageManager": "[email protected]","peerDependencies": {- "@composio/core": "0.1.36-next.10",+ "@composio/core": "0.1.36-next.12","openai": "^4.3.8"},"devDependencies": {diff --git a/ts/packages/providers/vercel/CHANGELOG.md b/ts/packages/providers/vercel/CHANGELOG.mdindex 352c3ab4a..b9a71de37 100644--- a/ts/packages/providers/vercel/CHANGELOG.md+++ b/ts/packages/providers/vercel/CHANGELOG.md@@ -1,5 +1,21 @@# @composio/vercel+## 0.1.36-next.12++### Patch Changes++- Update deps+- Updated dependencies+ - @composio/[email protected]++## 0.1.36-next.11++### Patch Changes++- Fix proxy execute params and bump langchain packages+- Updated dependencies+ - @composio/[email protected]+## 0.1.36-next.10### Patch Changesdiff --git a/ts/packages/providers/vercel/package.json b/ts/packages/providers/vercel/package.jsonindex 6fbda86b8..99082de79 100644--- a/ts/packages/providers/vercel/package.json+++ b/ts/packages/providers/vercel/package.json@@ -1,6 +1,6 @@{"name": "@composio/vercel",- "version": "0.1.36-next.10",+ "version": "0.1.36-next.12","description": "","main": "src/index.ts","type": "module",@@ -30,7 +30,7 @@"license": "ISC","packageManager": "[email protected]","peerDependencies": {- "@composio/core": "0.1.36-next.10",+ "@composio/core": "0.1.36-next.12","ai": "^4.3.8"},"devDependencies": {