Skip to content

feat(models): merge show into list with an optional profile - #782

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
laolaoPlayer:feature/models-list-details
Sep 24, 2026
Merged

jeff-r2026 merged 1 commit into
Tencent:mainfrom
laolaoPlayer:feature/models-list-details

Conversation

@laolaoPlayer

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #675. Model catalogs usually hold one to three profiles, so a separate summary command and detail command added a step without much benefit. teamai models show also failed with missing required argument 'profile' when run without an argument.

  • teamai models list now prints every profile in full: API key source (never the key itself), gateway, models by protocol, compatible agents, and the agents where it is active.
  • teamai models list <profile> narrows the output to one profile; team: / local: qualification works as before.
  • teamai models show is removed. It has only shipped in the 0.26.0 betas.
  • Usage guides (en / zh-CN), the generated command reference, and the model E2E checks are updated.

Test plan

  • npm run build, npx tsc --noEmit
  • npx vitest run: 298 files, 4510 passed, 1 skipped
  • npx vitest run --config vitest.e2e.config.ts src/__tests__/e2e/model-cli-switch.test.ts
  • node scripts/model-routes-e2e.mjs (built CLI, isolated homes): passed for git, gitlab, github
  • Built CLI in an isolated home: list, list <profile>, an unknown profile, and the removed show

Test report (built CLI, isolated home)

$ teamai models list   (exit 0)
team:tokenhub — Tencent TokenHub
  API key: environment DEMO_KEY
  Gateway: https://tokenhub.tencentmaas.com
  Models:
    anthropic, openai-chat-completions: glm-5.3, deepseek-v4-flash
  Agents: claude, opencode, codebuddy, workbuddy
  Active: claude

local:mine — Mine
  API key: environment MY_KEY
  Gateway: https://gateway.example.com
  Models:
    openai-responses: glm-5.3
  Agents: codex, opencode
  Active: none

$ teamai models list mine   (exit 0)
local:mine — Mine
  API key: environment MY_KEY
  Gateway: https://gateway.example.com
  Models:
    openai-responses: glm-5.3
  Agents: codex, opencode
  Active: none

$ teamai models list nope   (exit 1)
✖ Unknown model profile: nope

$ teamai models show tokenhub   (exit 1)
error: unknown command 'show'

Model catalogs are small, so `teamai models list` now prints every profile in full: API key source, gateway, models by protocol, compatible agents, and where it is active. `teamai models list <profile>` narrows the output to one profile, and the separate `show` command is removed.
@jeff-r2026 jeff-r2026 self-assigned this Sep 24, 2026
@jeff-r2026
jeff-r2026 self-requested a review September 24, 2026 07:30
@github-actions

Copy link
Copy Markdown

No findings.

The PR description includes a sufficient test plan and real-CLI end-to-end verification record, including isolated homes and all three providers (git, gitlab, github). No blocking testing-documentation issue.

@jeff-r2026
jeff-r2026 merged commit 57afe76 into Tencent:main Sep 24, 2026
11 checks passed
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
)

Model catalogs are small, so `teamai models list` now prints every profile in full: API key source, gateway, models by protocol, compatible agents, and where it is active. `teamai models list <profile>` narrows the output to one profile, and the separate `show` command is removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants