-
fix(cli): make output more LLM friendly (#3450)
发布于
2026-05-19 08:45:56 +00:00 Summary
- Route Effect pretty logger output to stderr and share a TTY-based
interactive detector for human-only CLI UI. - Gate upgrade notices and default browser login waiting on interactive
stdio; non-interactivecomposio loginnow emits session JSON and
exits. - Stream
composio runhelper/subagent logs to stderr (or only to the
run log with--logs-off) without polluting stdout. - Add a CLI patch changeset.
Tests
pnpm -C ts/packages/cli exec vitest run test/src/services/update-check.test.ts test/src/commands/login.cmd.test.ts test/src/commands/run.cmd.test.tspnpm --filter @composio/cli typecheckpnpm typecheckpnpm exec eslint ts/packages/cli/src/utils/stdio.ts ts/packages/cli/src/services/terminal-ui.ts ts/packages/cli/src/services/update-check.ts ts/packages/cli/src/cli-main.ts ts/packages/cli/src/commands/login.cmd.ts ts/packages/cli/src/commands/run.cmd.ts ts/packages/cli/src/services/run-helpers-runtime.ts --no-warn-ignoredpnpm exec prettier --check ts/packages/cli/src/utils/stdio.ts ts/packages/cli/src/services/terminal-ui.ts ts/packages/cli/src/services/update-check.ts ts/packages/cli/src/cli-main.ts ts/packages/cli/src/commands/login.cmd.ts ts/packages/cli/src/commands/run.cmd.ts ts/packages/cli/src/services/run-helpers-runtime.ts ts/packages/cli/test/src/services/update-check.test.ts ts/packages/cli/test/src/commands/login.cmd.test.ts
Notes
- Initial targeted
pnpm --filter @composio/cli test -- ...ran the
full CLI suite and failed before building@composio/cli-keyring; after
building/installing workspace deps, the targeted Vitest command above
passed.
下载附件
- Route Effect pretty logger output to stderr and share a TTY-based