发布

  • fix(cli): make output more LLM friendly (#3450)

    frostbyte_neo 发布于 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-interactive composio login now emits session JSON and
      exits.
    • Stream composio run helper/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.ts
    • pnpm --filter @composio/cli typecheck
    • pnpm typecheck
    • pnpm 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-ignored
    • pnpm 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.
    下载附件