@devries-cameron20 / composio Mirror · read-only / commits / a0bef5d98
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 19:45 UTC

chore(deps): bump composio client SDKs (TS alpha.74, Py 1.41.0) (#3609)

This PR: - bumps the TS catalog `@composio/client` from `0.1.0-alpha.72` to `0.1.0-alpha.74` (published from ComposioHQ/composio-base-ts#84) and refreshes `pnpm-lock.yaml` - bumps the Python `composio-client` pin from `1.39.0` to `1.41.0` (published from ComposioHQ/composio-base-py#69) - adds a patch changeset for `@composio/core` and `@composio/cli` so the client bump actually ships in the next release ## Context Neither client is auto-bumped in this repo — there is no Stainless→consumer bot, and Dependabot does not touch the pnpm `catalog:` pin (TS) or the exact `composio-client==` pin (Py), so these were a manual catch-up. The Python `1.41.0` PyPI publish initially failed with a `403 Forbidden` (stale `PYPI_TOKEN`); it was re-run successfully before this bump, so `1.41.0` is live on PyPI.

Alberto Schiabel committed Jun 19, 2026 at 18:42 UTC a0bef5d986d594a281c92a3f7f1fac5df0f27d54
8 files changed +57 -15
.changeset/bump-composio-client-alpha74.md new
+6
@@ -0,0 +1,6 @@
1 +---
2 +'@composio/core': minor
3 +'@composio/cli': minor
4 +---
5 +
6 +Bump `@composio/client` to `0.1.0-alpha.74`.
AGENTS.md
+20
@@ -237,4 +237,24 @@ mise lock --platform linux-x64,linux-arm64,macos-arm64,macos-x64
237
238 Commit `mise.lock` with the version bump. The "Prerequisites" section in `ts/docs/internal/release.md` references `mise.toml` so it stays current automatically.
239
240 +### When Bumping the Generated SDK Client (`@composio/client` / `composio-client`)
241 +
242 +The Stainless-generated clients are published from separate repos (`ComposioHQ/composio-base-ts` → `@composio/client` on npm; `ComposioHQ/composio-base-py` → `composio-client` on PyPI). **Nothing auto-bumps them here** — there is no Stainless→consumer bot, and Dependabot does not touch the pnpm `catalog:` pin (TS) or the exact `composio-client==` pin (Python). Bumping is manual, and the pin lives in **multiple files that must move together**:
243 +
244 +1. **Confirm the version is actually published first.** Check `npm view @composio/client version` / `pip index versions composio-client`. The Python PyPI publish in `composio-base-py` can fail silently (e.g. `403 Forbidden` from a stale `PYPI_TOKEN`) even when the GitHub release/tag exists — verify the package resolves before bumping.
245 +
246 +2. **TypeScript** — edit the catalog pin, refresh the lockfile, add a changeset:
247 + ```bash
248 + # edit pnpm-workspace.yaml -> catalog: '@composio/client'
249 + pnpm install --lockfile-only # updates pnpm-lock.yaml
250 + # add a patch changeset for @composio/core and @composio/cli (both consume it)
251 + ```
252 +
253 +3. **Python** — the pin lives in **three** places; update all of them or `uv sync` / published metadata will be inconsistent:
254 + - `python/pyproject.toml` (`dependencies`)
255 + - `python/setup.py` (`install_requires`) — easy to miss; setuptools fallback metadata
256 + - root `uv.lock` — regenerate from the workspace root: `uv lock --upgrade-package composio-client`
257 +
258 +4. **A version bump is not enough across a breaking regen.** The generated client can remove or restructure modules between releases (e.g. `composio-client` 1.41.0 deleted `types.tool_router_create_session_params`), which surfaces as an *import-time* `ModuleNotFoundError` that reds every job importing the SDK. After bumping, actually import/typecheck the consuming code (`uv run --package composio python -c "import composio"`, `pnpm typecheck`) and migrate any references the new client dropped. Prefer decoupling from churny generated types — define small local TypedDicts instead of importing internal client submodules.
259 +
260 This monorepo uses pnpm workspaces and Turbo for efficient builds and development.
pnpm-lock.yaml
+7 -7
@@ -25,8 +25,8 @@ catalogs:
25 specifier: ^4.20250917.0
26 version: 4.20260218.0
27 '@composio/client':
28 - specifier: 0.1.0-alpha.72
29 - version: 0.1.0-alpha.72
28 + specifier: 0.1.0-alpha.74
29 + version: 0.1.0-alpha.74
30 '@effect/cli':
31 specifier: ^0.73.2
32 version: 0.73.2
@@ -1061,7 +1061,7 @@ importers:
1061 version: link:../cli-local-tools
1062 '@composio/client':
1063 specifier: 'catalog:'
1064 - version: 0.1.0-alpha.72
1064 + version: 0.1.0-alpha.74
1065 '@composio/core':
1066 specifier: workspace:*
1067 version: link:../core
@@ -1231,7 +1231,7 @@ importers:
1231 dependencies:
1232 '@composio/client':
1233 specifier: 'catalog:'
1234 - version: 0.1.0-alpha.72
1234 + version: 0.1.0-alpha.74
1235 '@composio/json-schema-to-zod':
1236 specifier: workspace:*
1237 version: link:../json-schema-to-zod
@@ -1894,8 +1894,8 @@ packages:
1894 resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==}
1895 engines: {node: '>=0.1.90'}
1896
1897 - '@composio/client@0.1.0-alpha.72':
1898 - resolution: {integrity: sha512-2WYXgdlMvhoaJCsaSfyMAYGQ2tS5l2Fqdh2cMRqNi8NybIoOkFZy2ApBJJOoQwqfpUr41VymMW6FtiNQm7JavQ==}
1897 + '@composio/client@0.1.0-alpha.74':
1898 + resolution: {integrity: sha512-/EHJsFxCpWfRxNvXURRrGVZfJSltSpN4Gkd9M9Cl5gPOirG+NpbXf2B8d4B72H87m7cnOguMKjOH42ogQ84/Ww==}
1899
1900 '@cspotcode/source-map-support@0.8.1':
1901 resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}
@@ -7019,7 +7019,7 @@ snapshots:
7019 '@colors/colors@1.5.0':
7020 optional: true
7021
7022 - '@composio/client@0.1.0-alpha.72': {}
7022 + '@composio/client@0.1.0-alpha.74': {}
7023
7024 '@cspotcode/source-map-support@0.8.1':
7025 dependencies:
pnpm-workspace.yaml
+1 -1
@@ -22,7 +22,7 @@ catalog:
22 '@clack/prompts': '^1.0.1'
23 '@cloudflare/vitest-pool-workers': 0.16.12
24 '@cloudflare/workers-types': ^4.20250917.0
25 - '@composio/client': 0.1.0-alpha.72
25 + '@composio/client': 0.1.0-alpha.74
26 '@effect/cli': ^0.73.2
27 '@effect/eslint-plugin': ^0.3.2
28 '@effect/language-service': ^0.74.0
python/composio/core/models/mcp.py
+17 -1
@@ -10,7 +10,6 @@ import typing as t
10
11 import typing_extensions as te
12 from composio_client.types.mcp.custom_create_response import CustomCreateResponse
13 -from composio_client.types.tool_router_create_session_params import ConfigToolkit
13
14 from composio.client import HttpClient
15 from composio.core.models.base import Resource
@@ -20,6 +19,23 @@ from composio.utils.pydantic import none_to_omit
19 # Data Types (matching TypeScript specification)
20
21
22 +class ConfigToolkit(te.TypedDict, total=False):
23 + """Toolkit configuration for an MCP server.
24 +
25 + Defined locally rather than imported from ``composio_client``: the generated
26 + client removed ``types.tool_router_create_session_params.ConfigToolkit`` in
27 + 1.41.0 when the tool-router session schema was redesigned. The MCP surface
28 + only needs the toolkit slug and optional auth config, so we keep our own
29 + minimal shape and stay decoupled from tool-router regen churn.
30 + """
31 +
32 + toolkit: te.Required[str]
33 + """Toolkit identifier (e.g., gmail, slack, github)."""
34 +
35 + auth_config_id: str
36 + """Specific auth configuration ID for this toolkit."""
37 +
38 +
39 class MCPCreateResponse(CustomCreateResponse):
40 """MCP Create Response with generate method (extends CustomCreateResponse)."""
41
python/pyproject.toml
+1 -1
@@ -7,7 +7,7 @@ requires-python = ">=3.10,<4"
7 dependencies = [
8 "pysher>=1.0.8",
9 "pydantic>=2.6.4",
10 - "composio-client==1.39.0",
10 + "composio-client==1.41.0",
11 "typing-extensions>=4.0.0",
12 "openai",
13 "json-schema-to-pydantic>=0.4.8",
python/setup.py
+1 -1
@@ -25,7 +25,7 @@ setup(
25 install_requires=[
26 "pysher>=1.0.8",
27 "pydantic>=2.6.4",
28 - "composio-client==1.39.0",
28 + "composio-client==1.41.0",
29 "typing-extensions>=4.0.0",
30 "openai",
31 "json-schema-to-pydantic>=0.4.8",
uv.lock
+4 -4
@@ -622,7 +622,7 @@ dev = [
622
623 [package.metadata]
624 requires-dist = [
625 - { name = "composio-client", specifier = "==1.39.0" },
625 + { name = "composio-client", specifier = "==1.41.0" },
626 { name = "json-schema-to-pydantic", specifier = ">=0.4.8" },
627 { name = "openai" },
628 { name = "pydantic", specifier = ">=2.6.4" },
@@ -664,7 +664,7 @@ requires-dist = [
664
665 [[package]]
666 name = "composio-client"
667 -version = "1.39.0"
667 +version = "1.41.0"
668 source = { registry = "https://pypi.org/simple" }
669 dependencies = [
670 { name = "anyio" },
@@ -674,9 +674,9 @@ dependencies = [
674 { name = "sniffio" },
675 { name = "typing-extensions" },
676 ]
677 -sdist = { url = "https://files.pythonhosted.org/packages/0d/78/efc71b2df0d580c4550ee60644193644ae3ddc06fc89f3fc92998db6393c/composio_client-1.39.0.tar.gz", hash = "sha256:2086493925117b956a3166da18414925cb50829172c8211591137fcdc3d60c7d", size = 248246, upload-time = "2026-05-12T14:28:13.071Z" }
677 +sdist = { url = "https://files.pythonhosted.org/packages/2a/b1/3eaeb0bf6f45a5a4114c0464479aab3181b4676644cf84ff08ab7ef389e2/composio_client-1.41.0.tar.gz", hash = "sha256:5b37205123b38a4568d6a75c4227d38929b8f9526adc8d0810281733e547d8a6", size = 244988, upload-time = "2026-06-19T12:15:31.258Z" }
678 wheels = [
679 - { url = "https://files.pythonhosted.org/packages/88/59/f4ddca56b9f02c8fed3277584111a687c9be986d0d2e8b421c80a20caa03/composio_client-1.39.0-py3-none-any.whl", hash = "sha256:bf6050dc0d523bd1e9d52e39e162f5b23bd029aa441b5c4a18e1751aae58571d", size = 284163, upload-time = "2026-05-12T14:28:11.681Z" },
679 + { url = "https://files.pythonhosted.org/packages/78/34/8841fcc4da6e4ccb74daac47c4714607f9314240c5bf43a0ef653f758e50/composio_client-1.41.0-py3-none-any.whl", hash = "sha256:18344f1b9209c56c25258c87c9a2f0423553690c94a4e62fb933072f76b37cd1", size = 276180, upload-time = "2026-06-19T12:15:29.949Z" },
680 ]
681
682 [[package]]