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

next
md 818 Bytes

Client Cache Sync

ts/packages/cli/src/services/composio-clients-cached.ts spreads the underlying ComposioToolkitsRepository from ts/packages/cli/src/services/composio-clients.ts and overrides only the methods it caches: getToolkits, getProjectToolkits, getToolkitsBySlugs, getToolsAsEnums, getTriggerTypesAsEnums, getTriggerTypes, and getTools.

Checklist:

  • New passthrough method: add it to the repository only; the spread exposes it.
  • New full-catalog fetch that should be cached: add a cached override.
  • Signature or result change on a cached method: update both services.
  • Removed cached method: remove its override.
  • Validation, search, single-item, and CRUD methods stay passthrough.

Verification:

pnpm --filter @composio/cli typecheck
pnpm --filter @composio/cli test