github ComposioHQ/composio py@0.11.6

latest releases: @composio/cli@0.6.5-beta.595, @composio/cli@0.6.5-beta.594, @composio/cli@0.6.5-beta.592...
7 months ago
  • Sensitive path blocking — Before auto-uploading a local file, paths are checked against a built-in denylist (segments like .ssh, .aws, etc., plus risky filenames). Configurable via Composio(..., sensitive_file_upload_protection=..., file_upload_path_deny_segments=...).
  • @before_file_upload modifiers — File path hooks are only via modifiers (same idea as @before_execute): decorate a function, pass it in modifiers=[...] on tools.get / tools.execute (and tool router session.tools(...)). Hooks are composed with merge_before_file_upload and run when substituting file_uploadable paths, before before_execute modifiers.
  • Removed standalone kwargs — There is no before_file_upload= on Composio, get, execute, or the tool router; FileHelper no longer stores a default hook on the client—only the merged modifier hook (or None) per call.
  • Errors — SensitiveFilePathBlockedError / FileUploadAbortedError (and related) when a path is blocked or a hook returns False.
  • Tests & exports — Tests for merge/scoping/execute wiring; before_file_upload and glue exported from the package as needed.

Version note: composio is 0.11.6 in pyproject.toml, with Python >=3.10.

Don't miss a new composio release

NewReleases is sending notifications on new releases.