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, 08:30 UTC
Release: update version (#4895)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated. # Releases ## @composio/core@0.25.0 ### Minor Changes - 79c2d1d: Requires `@composio/client` `2.0.0-rc.17`. The SDK now reports itself to the API client through the client's `identity` option instead of default headers. The headers sent with each request are unchanged, with one exception: on Cloudflare Workers and Vercel Edge with Node.js compatibility enabled, `x-client-runtime` now names that runtime instead of `nodejs`, and the polyfilled Node.js version is no longer sent as `x-runtime-version`. A `createSession()` clone no longer copies these headers into its `defaultHeaders`. The API client owns these headers, so `defaultHeaders` and `createSession({ headers })` now reject `x-client-provenance`, `x-client-version`, `x-client-library`, `x-client-library-version`, `x-client-language`, `x-client-runtime`, `x-sdk-version`, `x-source`, `x-framework`, `x-runtime` and `x-runtime-version` with a `ComposioError` from `@composio/client`. The SDK used to overwrite such entries silently. A custom provider whose `name` cannot be sent as a header value (anything other than printable ASCII with no leading or trailing whitespace) is reported as `unknown` in `x-framework`. - 40546c3: Add experimental support for tool calls that need the user's approval. Sessions accept a `requireApproval` list next to the `toolkits`, `tools` and `tags` filters on `create()` and `update()`. A call to a matching tool doesn't run: `session.execute()` and `session.executeMeta()` throw `ComposioToolInputRequiredError` with the questions on `inputRequests`. To answer, repeat the same call with the user's answers in `inputResponses` and the error's `requestState`: ```ts const session = await composio.create('user_123', { tools: { gmail: { requireApproval: ['GMAIL_SEND_EMAIL'] } }, }); try { await session.execute('GMAIL_SEND_EMAIL', args); } catch (error) { if (!(error instanceof ComposioToolInputRequiredError)) throw error; const inputResponses = await promptUser(error.inputRequests); await session.execute('GMAIL_SEND_EMAIL', args, { inputResponses, requestState: error.requestState, }); } ``` `promptUser` is a placeholder for your application's consent UI. Display each request, wait for the user's response, and return the answers keyed by request ID. Forward `decline` and `cancel` responses unchanged. `experimental.noElicitationSupportFallback` (`'deny'` or `'allow'`) sets what happens to such a call when the session's MCP client can't ask the user. `session.executeMeta()` now takes these answers as its third argument, so its request options move to the fourth. The Python SDK gains the same `require_approval` lists, `experimental.no_elicitation_support_fallback`, and `input_responses` and `request_state` on `session.execute()` and `session.execute_meta()`. ### Patch Changes - f9a972b: Update the owned API client to `@composio/client@2.0.0-rc.16`. The SDK's public API and runtime behavior are unchanged. - 04cd5c4: Fix the trigger subscription lifecycle and contain errors from trigger handlers. - `triggers.unsubscribe()` now closes the realtime connection, so a Node process can exit once it has unsubscribed. A later `triggers.subscribe()` opens a new connection. - `triggers.unsubscribe()` before any `subscribe()` no longer fetches realtime credentials or creates a client. - Concurrent `subscribe()` calls share one connection, and `unsubscribe()` cancels a subscription that is still connecting, so it never opens a connection or delivers events afterwards. - A rejected promise from an `async` trigger handler is logged like a synchronous throw instead of escaping as an unhandled rejection that ends the process. Handler failures log the error's message rather than `{}`. ## @composio/slim@0.25.0 ### Minor Changes - 79c2d1d: Requires `@composio/client` `2.0.0-rc.17`. The SDK now reports itself to the API client through the client's `identity` option instead of default headers. The headers sent with each request are unchanged, with one exception: on Cloudflare Workers and Vercel Edge with Node.js compatibility enabled, `x-client-runtime` now names that runtime instead of `nodejs`, and the polyfilled Node.js version is no longer sent as `x-runtime-version`. A `createSession()` clone no longer copies these headers into its `defaultHeaders`. The API client owns these headers, so `defaultHeaders` and `createSession({ headers })` now reject `x-client-provenance`, `x-client-version`, `x-client-library`, `x-client-library-version`, `x-client-language`, `x-client-runtime`, `x-sdk-version`, `x-source`, `x-framework`, `x-runtime` and `x-runtime-version` with a `ComposioError` from `@composio/client`. The SDK used to overwrite such entries silently. A custom provider whose `name` cannot be sent as a header value (anything other than printable ASCII with no leading or trailing whitespace) is reported as `unknown` in `x-framework`. - 40546c3: Add experimental support for tool calls that need the user's approval. Sessions accept a `requireApproval` list next to the `toolkits`, `tools` and `tags` filters on `create()` and `update()`. A call to a matching tool doesn't run: `session.execute()` and `session.executeMeta()` throw `ComposioToolInputRequiredError` with the questions on `inputRequests`. To answer, repeat the same call with the user's answers in `inputResponses` and the error's `requestState`: ```ts const session = await composio.create('user_123', { tools: { gmail: { requireApproval: ['GMAIL_SEND_EMAIL'] } }, }); try { await session.execute('GMAIL_SEND_EMAIL', args); } catch (error) { if (!(error instanceof ComposioToolInputRequiredError)) throw error; const inputResponses = await promptUser(error.inputRequests); await session.execute('GMAIL_SEND_EMAIL', args, { inputResponses, requestState: error.requestState, }); } ``` `promptUser` is a placeholder for your application's consent UI. Display each request, wait for the user's response, and return the answers keyed by request ID. Forward `decline` and `cancel` responses unchanged. `experimental.noElicitationSupportFallback` (`'deny'` or `'allow'`) sets what happens to such a call when the session's MCP client can't ask the user. `session.executeMeta()` now takes these answers as its third argument, so its request options move to the fourth. The Python SDK gains the same `require_approval` lists, `experimental.no_elicitation_support_fallback`, and `input_responses` and `request_state` on `session.execute()` and `session.execute_meta()`. ### Patch Changes - f9a972b: Update the owned API client to `@composio/client@2.0.0-rc.16`. The SDK's public API and runtime behavior are unchanged. - 04cd5c4: Fix the trigger subscription lifecycle and contain errors from trigger handlers. - `triggers.unsubscribe()` now closes the realtime connection, so a Node process can exit once it has unsubscribed. A later `triggers.subscribe()` opens a new connection. - `triggers.unsubscribe()` before any `subscribe()` no longer fetches realtime credentials or creates a client. - Concurrent `subscribe()` calls share one connection, and `unsubscribe()` cancels a subscription that is still connecting, so it never opens a connection or delivers events afterwards. - A rejected promise from an `async` trigger handler is logged like a synchronous throw instead of escaping as an unhandled rejection that ends the process. Handler failures log the error's message rather than `{}`. ## @e2e-tests/cf-workers-basic@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## @e2e-tests/cf-workers-files@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## @e2e-tests/cf-workers-tool-router-ai@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/vercel@0.12.1 ## @e2e-tests/node-claude-agent-sdk@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/claude-agent-sdk@0.12.2 ## @e2e-tests/node-custom-tools@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## @e2e-tests/node-mastra-tool-router-zod-v3@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/mastra@0.10.6 ## @e2e-tests/node-mastra-tool-router-zod-v4@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/mastra@0.10.6 ## @e2e-tests/node-tool-router-files@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## @e2e-tests/node-tool-router-pagination@0.0.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## @e2e-tests/node-tool-router-proxy-execute@0.0.2 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## @e2e-tests/node-tool-router-session-update@0.0.5 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## anthropic-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/anthropic@0.11.5 - @composio/claude-agent-sdk@0.12.2 ## cloudflare-wrangler-example@0.0.8 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## connected-accounts-example@0.1.18 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## error-handling-example@0.1.18 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## file-handling-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## google-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/google@0.12.0 ## json-schema-to-zod-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## langchain-example@0.1.18 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/langchain@0.11.2 ## llamaindex-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/llamaindex@0.11.1 ## mastra-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/mastra@0.10.6 ## mcp-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/vercel@0.12.1 ## modifiers-example@0.1.18 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/vercel@0.12.1 ## openai-example@0.1.18 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/openai@0.13.0 - @composio/openai-agents@0.11.2 ## session-management-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## tool-router-example@1.0.19 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/claude-agent-sdk@0.12.2 - @composio/openai-agents@0.11.2 - @composio/vercel@0.12.1 ## toolkits-example@0.1.18 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/vercel@0.12.1 ## tools-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/vercel@0.12.1 ## triggers-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 ## typesafe-example@0.0.7 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/openai@0.13.0 - @composio/typesafe@0.1.1 ## vercel-example@0.1.18 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 - @composio/vercel@0.12.1 ## versioning-example@0.1.9 ### Patch Changes - Updated dependencies [79c2d1d] - Updated dependencies [f9a972b] - Updated dependencies [40546c3] - Updated dependencies [04cd5c4] - @composio/core@0.25.0 Co-authored-by: sdkrelease[bot] <294075132+sdkrelease[bot]@users.noreply.github.com>