@devries-cameron20 / composio Mirror · read-only / commits / 8b7f32f1c
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 08:15 UTC

cli: show total counts in toolkit search

jkomyno committed Feb 19, 2026 at 10:55 UTC 8b7f32f1ce05e3b10c65c2a3d3927f9779539c58
2 files changed +6 -3
ts/packages/cli/src/commands/toolkits/commands/toolkits.search.cmd.ts
+4 -1
@@ -47,8 +47,11 @@ export const toolkitsCmd$Search = Command.make('search', { query, limit }, ({ qu
47 return;
48 }
49
50 + const showing = result.items.length;
51 + const total = result.total_items;
52 +
53 yield* ui.log.info(
51 - `Found ${result.items.length} toolkits\n\n${formatToolkitsTable(result.items)}`
54 + `Found ${showing} of ${total} toolkits\n\n${formatToolkitsTable(result.items)}`
55 );
56
57 // Next step hint
ts/packages/cli/test/src/commands/toolkits/toolkits.search.cmd.test.ts
+2 -2
@@ -80,7 +80,7 @@ describe('CLI: composio toolkits search', () => {
80 expect(output).toContain('Gmail');
81 expect(output).toContain('Outlook');
82 expect(output).not.toContain('Slack');
83 - expect(output).toContain('Found 2 toolkits');
83 + expect(output).toContain('Found 2 of 2 toolkits');
84 })
85 );
86 }
@@ -110,7 +110,7 @@ describe('CLI: composio toolkits search', () => {
110 const lines = yield* MockConsole.getLines({ stripAnsi: true });
111 const output = lines.join('\n');
112
113 - expect(output).toContain('Found 1 toolkits');
113 + expect(output).toContain('Found 1 of 2 toolkits');
114 })
115 );
116 }