@devries-cameron20 / composio-1 / commits / 4a2409a28
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.

cli: traverse descriptors for value tips

jkomyno committed Feb 19, 2026 at 11:06 UTC 4a2409a283a6fa823b62eabb4df4bee3ce02ecb9
1 file changed +5 -5
ts/packages/cli/src/bin.ts
+5 -5
@@ -1,7 +1,7 @@
1 import process from 'node:process';
2 import { Cause, Console, Effect, Exit, HashMap, Layer, Logger, Option } from 'effect';
3 import { captureErrors, prettyPrintFromCapturedErrors } from 'effect-errors/index';
4 -import { CliConfig, Command, HelpDoc, Usage, ValidationError } from '@effect/cli';
4 +import { CliConfig, CommandDescriptor, HelpDoc, Usage, ValidationError } from '@effect/cli';
5 import { FetchHttpClient } from '@effect/platform';
6 import { BunContext, BunRuntime, BunFileSystem } from '@effect/platform-bun';
7 import type { Teardown } from '@effect/platform/Runtime';
@@ -125,13 +125,13 @@ const collectValueOptionNamesFromUsage = (usage: Usage.Usage, acc: Set<string>)
125
126 const valueOptionNames = (() => {
127 const names = new Set<string>();
128 - const visit = (command: Command.Command<unknown>) => {
129 - collectValueOptionNamesFromUsage(Command.getUsage(command), names);
130 - for (const [, subcommand] of HashMap.toEntries(Command.getSubcommands(command))) {
128 + const visit = (command: CommandDescriptor.Command<unknown>) => {
129 + collectValueOptionNamesFromUsage(CommandDescriptor.getUsage(command), names);
130 + for (const [, subcommand] of HashMap.toEntries(CommandDescriptor.getSubcommands(command))) {
131 visit(subcommand);
132 }
133 };
134 - visit(rootCommand);
134 + visit(rootCommand.descriptor);
135 return names;
136 })();
137