@devries-cameron20 / composio-1 / commits / b3b3f4efc
Fork 0

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

fix(cli): simplify plugin setup status

Kshitij Jhunjhunwala committed Jul 14, 2026 at 15:08 UTC b3b3f4efc08ff3d2650204f2fe58110fb6ae1f72
2 files changed +11 -10
ts/packages/cli/src/commands/setup.cmd.ts
-8
@@ -61,14 +61,6 @@ const setupBaseCmd = Command.make(
61 pluginMessage = `Configured and enabled the Composio plugin for ${result.target}.`;
62 }
63 yield* ui.log.success(pluginMessage);
64 -
65 - if (result.target === 'codex') {
66 - yield* ui.log.success('The Codex plugin includes the composio-cli skill.');
67 - continue;
68 - }
69 - if (!result.skill_changed) {
70 - yield* ui.log.success('The composio-cli skill for Claude Code is already installed.');
71 - }
64 }
65
66 yield* ui.outro('Composio setup complete.');
ts/packages/cli/test/src/commands/setup.cmd.test.ts
+11 -2
@@ -4,7 +4,7 @@ import { Cause, Effect, Exit, Fiber, TestClock } from 'effect';
4 import { afterEach, vi } from 'vitest';
5 import { CommandRunner } from 'src/services/command-runner';
6 import { SetupSkillInstaller } from 'src/services/setup-skill-installer';
7 -import { cli, TestLive } from 'test/__utils__';
7 +import { cli, MockConsole, TestLive } from 'test/__utils__';
8
9 type AgentHost = 'claude' | 'codex';
10 type MarketplaceState = 'missing' | 'canonical' | 'conflict';
@@ -322,12 +322,21 @@ describe('CLI: composio setup', () => {
322 setupSkillInstaller: makeSkillInstaller(true),
323 })
324 )('automatic setup with both hosts', it => {
325 - it.scoped('selects both detected hosts', () =>
325 + it.scoped('selects both detected hosts and reports only plugin status', () =>
326 Effect.gen(function* () {
327 yield* cli(['setup', '--target', 'auto', '--yes']);
328
329 expect(autoBoth.commands.some(parts => parts[0] === 'claude')).toBe(true);
330 expect(autoBoth.commands.some(parts => parts[0] === 'codex')).toBe(true);
331 +
332 + const output = (yield* MockConsole.getLines()).join('\n');
333 + expect(output).toContain(
334 + 'The Composio plugin for claude is already installed and enabled.'
335 + );
336 + expect(output).toContain(
337 + 'The Composio plugin for codex is already installed and enabled.'
338 + );
339 + expect(output).not.toContain('composio-cli skill');
340 })
341 );
342 });