Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 09:45 UTC
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