@devries-cameron20 / composio-1 / commits / f9a972b4f
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

chore: move owned clients to `2.0.0-rc.16` (#4901)

This PR: - no Linear issue - moves `@composio/client` (pnpm catalog and lockfile) and `composio-client` (`python/pyproject.toml`, `python/setup.py`, `uv.lock`) from `2.0.0-rc.14` to `2.0.0-rc.16` ([release](https://github.com/ComposioHQ/composio-client/releases/tag/client-v2.0.0-rc.16), https://github.com/ComposioHQ/composio-client/pull/88), covering the TypeScript SDK, Python SDK, and CLI - constructs the client with `transport: createFetchTransport({ fetch })` in three core tests that passed `fetch` directly: `test/models/inputRequiredExecution.test.ts`, `test/models/noRetryExecution.test.ts`, `test/models/mcp.deprecation.test.ts`; every assertion is unchanged - fixes the `createSession()` doc comment, which documented a `fetchOptions` parameter the method no longer takes - adds a patch changeset for `@composio/core` and `@composio/slim`, a CLI `CHANGELOG.md` entry, and updates the version quoted in `ts/packages/cli/AGENTS.md` ## Context rc.16 removes three things from the client: - the Promise client no longer accepts `fetch` or `fetchOptions` in its constructor, nor `fetchOptions` per request; the replacement is `transport: createFetchTransport({ fetch, defaults })` - neither client accepts `defaultQuery` - `client.custom.deleteToolkit(slug, options)` is gone; only `(slug, query?, options?)` remains The SDK source used none of them: `composio.ts` constructs the client without `fetch`, and `CustomToolkits.delete()` already calls `deleteToolkit(slug, {}, requestOptions)`. The CLI uses only `@composio/client/effect` and needed no code change. rc.15 added nothing breaking; the Python package has no change beyond the version. The `uv.lock` change is the four `composio-client` lines. Not in this PR: the migrations the client plans for later release candidates (identity headers, `auth`/`scope`, logging, removing casts). Verified locally: - `pnpm typecheck` (workspace): 14/14 tasks successful - `pnpm lint`: exit 0 (warnings only, none in changed files) - `pnpm --filter @composio/core test`: 73 files, 1827 passed, 2 expected fail - `pnpm --filter @composio/cli test`: validators pass; 152 files, 1673 passed, 1 skipped - `pnpm --filter @composio/cli run lint:effect`: 0 errors, 0 warnings - `pnpm --filter @composio/cli build`: build succeeded - `pnpm run validate:changesets`, `validate:agent-skills`, `validate:skill-routing`: pass - `make tst` (python/): 2379 passed, 4 skipped; providers 11 + 16 + 6 passed - `uv run --package composio python -c "import composio"`: imports with `composio-client` 2.0.0rc16

Alberto Schiabel committed Oct 15, 2026 at 22:49 UTC f9a972b4fbc1fdb0971699ecdf1d8a9935cf37fa
12 files changed +41 -28
.changeset/owned-client-rc16.md new
+6
@@ -0,0 +1,6 @@
1 +---
2 +'@composio/core': patch
3 +'@composio/slim': patch
4 +---
5 +
6 +Update the owned API client to `@composio/client@2.0.0-rc.16`. The SDK's public API and runtime behavior are unchanged.
pnpm-lock.yaml
+9 -9
@@ -28,8 +28,8 @@ catalogs:
28 specifier: ^5.20261012.1
29 version: 5.20261012.1
30 '@composio/client':
31 - specifier: 2.0.0-rc.14
32 - version: 2.0.0-rc.14
31 + specifier: 2.0.0-rc.16
32 + version: 2.0.0-rc.16
33 '@effect/language-service':
34 specifier: ^0.87.4
35 version: 0.87.4
@@ -968,7 +968,7 @@ importers:
968 dependencies:
969 '@composio/client':
970 specifier: 'catalog:'
971 - version: 2.0.0-rc.14(effect@4.0.3)
971 + version: 2.0.0-rc.16(effect@4.0.3)
972 '@composio/core':
973 specifier: workspace:*
974 version: link:../../packages/core
@@ -1216,7 +1216,7 @@ importers:
1216 version: link:../cli-keyring
1217 '@composio/client':
1218 specifier: 'catalog:'
1219 - version: 2.0.0-rc.14(effect@4.0.3)
1219 + version: 2.0.0-rc.16(effect@4.0.3)
1220 '@composio/core':
1221 specifier: workspace:*
1222 version: link:../core
@@ -1322,7 +1322,7 @@ importers:
1322 dependencies:
1323 '@composio/client':
1324 specifier: 'catalog:'
1325 - version: 2.0.0-rc.14(effect@4.0.3)
1325 + version: 2.0.0-rc.16(effect@4.0.3)
1326 '@composio/json-schema-to-zod':
1327 specifier: workspace:*
1328 version: link:../json-schema-to-zod
@@ -1727,7 +1727,7 @@ importers:
1727 dependencies:
1728 '@composio/client':
1729 specifier: 'catalog:'
1730 - version: 2.0.0-rc.14(effect@4.0.3)
1730 + version: 2.0.0-rc.16(effect@4.0.3)
1731 '@composio/json-schema-to-zod':
1732 specifier: workspace:*
1733 version: link:../json-schema-to-zod
@@ -2291,8 +2291,8 @@ packages:
2291 resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==}
2292 engines: {node: '>=0.1.90'}
2293
2294 - '@composio/client@2.0.0-rc.14':
2295 - resolution: {integrity: sha512-AI8peOJpZjIZOC5+7uWeaQSgjwU9XsMHLXmHLrO3xE4qREb17pT1rb64AcaY9N4VFAevg321yLGA08RKCmcWDw==}
2294 + '@composio/client@2.0.0-rc.16':
2295 + resolution: {integrity: sha512-uT0oWMslDWpv4Hx8ZlVK6YwLhxKk69J41BK5RFs5kTcT1vCTH7jat2uVcW6VS1V8FJAl8ZwKkuruqLmGQJ1BUw==}
2296 engines: {node: '>=22'}
2297 peerDependencies:
2298 effect: '*'
@@ -7581,7 +7581,7 @@ snapshots:
7581 '@colors/colors@1.5.0':
7582 optional: true
7583
7584 - '@composio/client@2.0.0-rc.14(effect@4.0.3)':
7584 + '@composio/client@2.0.0-rc.16(effect@4.0.3)':
7585 optionalDependencies:
7586 effect: 4.0.3
7587
pnpm-workspace.yaml
+1 -1
@@ -33,7 +33,7 @@ catalog:
33 '@clack/prompts': '^1.8.1'
34 '@cloudflare/vitest-pool-workers': 0.23.0
35 '@cloudflare/workers-types': ^5.20261012.1
36 - '@composio/client': 2.0.0-rc.14
36 + '@composio/client': 2.0.0-rc.16
37 '@effect/language-service': ^0.87.4
38 '@effect/platform-bun': 4.0.3
39 '@effect/vitest': 4.0.3
python/pyproject.toml
+1 -1
@@ -7,7 +7,7 @@ requires-python = ">=3.11,<3.16"
7 dependencies = [
8 "pysher>=1.0.8",
9 "pydantic>=2.11.9",
10 - "composio-client==2.0.0rc14",
10 + "composio-client==2.0.0rc16",
11 "typing-extensions>=4.16.0",
12 "openai>=2.48.0",
13 "json-schema-to-pydantic>=0.4.11",
python/setup.py
+1 -1
@@ -25,7 +25,7 @@ setup(
25 install_requires=[
26 "pysher>=1.0.8",
27 "pydantic>=2.11.9",
28 - "composio-client==2.0.0rc14",
28 + "composio-client==2.0.0rc16",
29 "typing-extensions>=4.16.0",
30 "openai>=2.48.0",
31 "json-schema-to-pydantic>=0.4.11",
ts/packages/cli/AGENTS.md
+1 -1
@@ -152,7 +152,7 @@ Steps 3–4 (and the TypeScript compiler they need) ship as the `generation-runt
152
153 ### Key Dependencies
154
155 -`effect` (pinned `4.0.3`; `@effect/cli` and `@effect/platform` no longer exist as separate packages — folded into `effect`'s barrel and `effect/{cli,http,process}`), `@effect/platform-bun`, `@effect/vitest` (same exact pin), `@clack/prompts` (terminal UI — stderr by default), `picocolors`, `@composio/client` (owned Composio API client, `2.0.0-rc.14` via the workspace catalog; the CLI calls it through the `@composio/client/effect` entry point and imports only types from the rest of the package), `@composio/core` (types), `@composio/ts-builders` (AST gen), `@composio/cli-keyring` (OS credential store), `@composio/json-schema-to-effect-schema`, `semver`, `open`, `extract-zip`.
155 +`effect` (pinned `4.0.3`; `@effect/cli` and `@effect/platform` no longer exist as separate packages — folded into `effect`'s barrel and `effect/{cli,http,process}`), `@effect/platform-bun`, `@effect/vitest` (same exact pin), `@clack/prompts` (terminal UI — stderr by default), `picocolors`, `@composio/client` (owned Composio API client, `2.0.0-rc.16` via the workspace catalog; the CLI calls it through the `@composio/client/effect` entry point and imports only types from the rest of the package), `@composio/core` (types), `@composio/ts-builders` (AST gen), `@composio/cli-keyring` (OS credential store), `@composio/json-schema-to-effect-schema`, `semver`, `open`, `extract-zip`.
156
157 ## Output Conventions: Composable CLI Output
158
ts/packages/cli/CHANGELOG.md
+5
@@ -2,6 +2,11 @@
2
3 ## Unreleased
4
5 +### Patch Changes
6 +
7 +- The CLI now uses `@composio/client@2.0.0-rc.16` (up from `2.0.0-rc.14`). No
8 + command changes.
9 +
10 ## 0.4.4
11
12 ### Patch Changes
ts/packages/core/src/composio.ts
+2 -2
@@ -638,8 +638,8 @@ export class Composio<
638 * instance directly with the headers you need: `new Composio({ ...existingConfig, defaultHeaders })`.
639 * For one-off overrides, pass per-call `requestOptions` where supported.
640 *
641 - * @param {MergedRequestInit} fetchOptions - Custom request options to be used for all API calls in this session.
642 - * This follows the Fetch API RequestInit interface with additional options.
641 + * @param {object} [options] - Options for the new instance.
642 + * @param {ComposioRequestHeaders} [options.headers] - Headers sent with every API call the new instance makes.
643 * @returns {Composio<TProvider>} A new Composio instance with the custom request options applied.
644 *
645 * @example
ts/packages/core/test/models/inputRequiredExecution.test.ts
+2 -2
@@ -1,5 +1,5 @@
1 import { describe, it, expect, vi, assert } from 'vitest';
2 -import ComposioClient from '@composio/client';
2 +import ComposioClient, { createFetchTransport } from '@composio/client';
3 import { z } from 'zod/v3';
4 import { Tools } from '../../src/models/Tools';
5 import { ToolRouterSession } from '../../src/models/ToolRouterSession';
@@ -54,7 +54,7 @@ const createClient = (body: unknown) => {
54 const client = new ComposioClient({
55 apiKey: 'test-api-key',
56 baseURL: 'https://backend.invalid',
57 - fetch,
57 + transport: createFetchTransport({ fetch }),
58 });
59 return { client, fetch };
60 };
ts/packages/core/test/models/mcp.deprecation.test.ts
+7 -5
@@ -1,5 +1,5 @@
1 import { describe, it, expect, vi } from 'vitest';
2 -import ComposioClient from '@composio/client';
2 +import ComposioClient, { createFetchTransport } from '@composio/client';
3 import { MCP } from '../../src/models/MCP';
4 import logger from '../../src/utils/logger';
5
@@ -18,10 +18,12 @@ describe('MCP.generate managed auth deprecation', () => {
18 baseURL: 'https://backend.composio.test',
19 logger: clientLogger,
20 logLevel: 'warn',
21 - fetch: async input =>
22 - String(input).includes('/generate')
23 - ? json({ mcp_url: 'https://mcp.test', connected_account_urls: [], user_ids_url: ['u'] })
24 - : json({ id: 'mcp_123', name: 'server', allowed_tools: [], auth_config_ids: [] }),
21 + transport: createFetchTransport({
22 + fetch: async input =>
23 + String(input).includes('/generate')
24 + ? json({ mcp_url: 'https://mcp.test', connected_account_urls: [], user_ids_url: ['u'] })
25 + : json({ id: 'mcp_123', name: 'server', allowed_tools: [], auth_config_ids: [] }),
26 + }),
27 });
28 const sdkWarn = vi.spyOn(logger, 'warn').mockImplementation(() => {});
29 const mcp = new MCP(client);
ts/packages/core/test/models/noRetryExecution.test.ts
+2 -2
@@ -1,5 +1,5 @@
1 import { describe, it, expect, vi } from 'vitest';
2 -import ComposioClient from '@composio/client';
2 +import ComposioClient, { createFetchTransport } from '@composio/client';
3 import { Tools } from '../../src/models/Tools';
4 import { ToolRouterSession } from '../../src/models/ToolRouterSession';
5 import { SessionContextImpl } from '../../src/models/SessionContext';
@@ -35,7 +35,7 @@ const createFailingClient = () => {
35 const client = new ComposioClient({
36 apiKey: 'test-api-key',
37 baseURL: 'https://backend.invalid',
38 - fetch,
38 + transport: createFetchTransport({ fetch }),
39 });
40 return { client, fetch };
41 };
uv.lock
+4 -4
@@ -757,7 +757,7 @@ dev = [
757
758 [package.metadata]
759 requires-dist = [
760 - { name = "composio-client", specifier = "==2.0.0rc14" },
760 + { name = "composio-client", specifier = "==2.0.0rc16" },
761 { name = "json-schema-to-pydantic", specifier = ">=0.4.11" },
762 { name = "jsonschema", specifier = ">=4.23.0" },
763 { name = "openai", specifier = ">=2.48.0" },
@@ -803,16 +803,16 @@ requires-dist = [
803
804 [[package]]
805 name = "composio-client"
806 -version = "2.0.0rc14"
806 +version = "2.0.0rc16"
807 source = { registry = "https://pypi.org/simple" }
808 dependencies = [
809 { name = "httpx" },
810 { name = "pydantic" },
811 { name = "typing-extensions" },
812 ]
813 -sdist = { url = "https://files.pythonhosted.org/packages/31/a3/a856ba17fa20d2a0ab1317d4dba99e875a5d27eb105125e12f259f1756ea/composio_client-2.0.0rc14.tar.gz", hash = "sha256:7eb1454107cff344870a9ff9c0ef0f41a45ff99050e1eb48394070cd6bce6bdc", size = 618158, upload-time = "2026-10-14T15:06:51.783Z" }
813 +sdist = { url = "https://files.pythonhosted.org/packages/a4/93/8bc5924aef6c42e4a6c410134c3e2cdfb15afe8517edd2c8125c17baf417/composio_client-2.0.0rc16.tar.gz", hash = "sha256:f4c6bd3414c54ff2942a42cd3692a8e6e3a84e5ab0b2daade7e7c52df02a3faa", size = 618227, upload-time = "2026-10-15T18:17:33.727Z" }
814 wheels = [
815 - { url = "https://files.pythonhosted.org/packages/93/e9/f5f9c8f686ee16ba0e1bedb647e1f83fbc6ba2694e22cbcab52fe73f9f6f/composio_client-2.0.0rc14-py3-none-any.whl", hash = "sha256:90f84bd4e624c9cd403c1aa2b6bc52b8a0229ab860d45458ca661196cb8b1048", size = 445953, upload-time = "2026-10-14T15:06:49.914Z" },
815 + { url = "https://files.pythonhosted.org/packages/e6/eb/de39ebd072e7bf670b31ae6fc73834a00728b7a959558709a39ceee2cefb/composio_client-2.0.0rc16-py3-none-any.whl", hash = "sha256:9f82079f1d22f59d603471d5ce3aae6b617d2cfa2427e50ec844f8a099876c4c", size = 445953, upload-time = "2026-10-15T18:17:31.873Z" },
816 ]
817
818 [[package]]