Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(cli): simplify plugin setup status
Kshitij Jhunjhunwalab3b3f4efc08f
diff --git a/ts/packages/cli/src/commands/setup.cmd.ts b/ts/packages/cli/src/commands/setup.cmd.tsindex 0cccb202b..872a99788 100644--- a/ts/packages/cli/src/commands/setup.cmd.ts+++ b/ts/packages/cli/src/commands/setup.cmd.ts@@ -61,14 +61,6 @@ const setupBaseCmd = Command.make(pluginMessage = `Configured and enabled the Composio plugin for ${result.target}.`;}yield* ui.log.success(pluginMessage);-- if (result.target === 'codex') {- yield* ui.log.success('The Codex plugin includes the composio-cli skill.');- continue;- }- if (!result.skill_changed) {- yield* ui.log.success('The composio-cli skill for Claude Code is already installed.');- }}yield* ui.outro('Composio setup complete.');diff --git a/ts/packages/cli/test/src/commands/setup.cmd.test.ts b/ts/packages/cli/test/src/commands/setup.cmd.test.tsindex 5e6e22301..ba80c099e 100644--- a/ts/packages/cli/test/src/commands/setup.cmd.test.ts+++ b/ts/packages/cli/test/src/commands/setup.cmd.test.ts@@ -4,7 +4,7 @@ import { Cause, Effect, Exit, Fiber, TestClock } from 'effect';import { afterEach, vi } from 'vitest';import { CommandRunner } from 'src/services/command-runner';import { SetupSkillInstaller } from 'src/services/setup-skill-installer';-import { cli, TestLive } from 'test/__utils__';+import { cli, MockConsole, TestLive } from 'test/__utils__';type AgentHost = 'claude' | 'codex';type MarketplaceState = 'missing' | 'canonical' | 'conflict';@@ -322,12 +322,21 @@ describe('CLI: composio setup', () => {setupSkillInstaller: makeSkillInstaller(true),}))('automatic setup with both hosts', it => {- it.scoped('selects both detected hosts', () =>+ it.scoped('selects both detected hosts and reports only plugin status', () =>Effect.gen(function* () {yield* cli(['setup', '--target', 'auto', '--yes']);expect(autoBoth.commands.some(parts => parts[0] === 'claude')).toBe(true);expect(autoBoth.commands.some(parts => parts[0] === 'codex')).toBe(true);++ const output = (yield* MockConsole.getLines()).join('\n');+ expect(output).toContain(+ 'The Composio plugin for claude is already installed and enabled.'+ );+ expect(output).toContain(+ 'The Composio plugin for codex is already installed and enabled.'+ );+ expect(output).not.toContain('composio-cli skill');}));});