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, 18:30 UTC
feat(cli): install Claude and Codex plugins with composio setup (#3835)
This PR: - supersedes https://github.com/ComposioHQ/composio/pull/3807 while preserving Kshitij's original commits and authorship - lets users configure the public Composio plugin for Claude Code, Codex, or every detected host with `composio setup` - centralizes host-specific commands, JSON keys, scope rules, and skill policy in a typed adapter map - requires explicit `--yes` approval outside an interactive terminal and keeps action-command stdout empty - accepts only canonical HTTPS marketplace sources, requires Claude's user-scoped plugin, and verifies a readable release-matched skill - preflights every selected host before mutation, reinstalls plugins after marketplace repair, and reports partial completion if a later host fails - fails closed on native inspection errors or malformed JSON and bounds host subprocesses to two minutes - verifies final native state so successful subprocess exits cannot masquerade as a ready setup - uses Effect filesystem and path services throughout the touched installer source and tests ## Validation - `pnpm typecheck`: 12 tasks passed across the TypeScript workspace - `pnpm --filter @composio/cli test`: 83 files passed; 760 tests passed; 1 skipped - focused installer regressions: 18 passed - focused ESLint, direct `node:fs` / `node:path` audit, and `git diff --check`: clean - Docker CLI E2E: Claude and Codex install once, remain idempotent on rerun, and fail clearly when no host is available ## Known release artifact The VHS recording remains deferred until the clean-home real-host smoke test because recording this workflow mutates external agent-host state. The deterministic Docker E2E covers the packaged CLI boundary in the meantime.
No changes.