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): improve toolkits info visual output
Drop the dim background from note() by passing a no-op format function, and align auth field columns dynamically based on content width.
jkomyno committed
Feb 18, 2026 at 21:28 UTC
8388a420889696f1640318f83976d6d76ebe551f
2 files changed
+10
-2
ts/packages/cli/src/commands/toolkits/commands/toolkits.info.cmd.ts
+7
-1
@@ -26,9 +26,15 @@ function formatFields(fields: ReadonlyArray<AuthConfigDetail['fields']['auth_con
26
if (allFields.length === 0) {
27
lines.push(' (none)');
28
} else {
29
+ const nameWidth = Math.max(...allFields.map(f => f.name.length));
30
+ const labelWidth = Math.max(...allFields.map(f => f.label.length));
31
+ const typeWidth = Math.max(...allFields.map(f => f.type.length));
32
+
33
for (const field of allFields) {
34
const desc = field.description ? ` ${gray(`"${field.description}"`)}` : '';
31
- lines.push(` ${field.name.padEnd(16)} ${field.label.padEnd(10)} ${field.type}${desc}`);
35
+ lines.push(
36
+ ` ${field.name.padEnd(nameWidth)} ${field.label.padEnd(labelWidth)} ${field.type.padEnd(typeWidth)}${desc}`
37
+ );
38
}
39
}
40
}
ts/packages/cli/src/services/terminal-ui.ts
+3
-1
@@ -157,7 +157,9 @@ const makeLive: TerminalUI = {
157
},
158
159
note: (message, title) =>
160
- Effect.sync(() => decorate(() => p.note(message, title ?? '', { output: process.stderr }))),
160
+ Effect.sync(() =>
161
+ decorate(() => p.note(message, title ?? '', { format: line => line, output: process.stderr }))
162
+ ),
163
164
withSpinner: (message, effect, options) =>
165
isInteractive