provider: Cursor's plugin is at least 0.2.25, its tiered models named without the tier

ysm119 on Discord (Cursor Team account, after v0.1.1696): the Cursor
editor listed "Claude Opus 5 1M Medium Thinking", "Claude Opus 4.7 1M
Medium Thinking" and the like, read as one fixed tier each ("没法设置模型
档位"), and the picked claude-haiku-5-5-thinking failed Test models.

The mover's min is 0.2.25 (npm view --prefer-online: 0.2.25,
magpie-community/plugins cb776e2):
- a family only cursor-agent lists is named without the effort, Fast
  and 1M wherever Cursor's name has them (Claude Opus 5 Thinking); its
  tiers were already its reasoning levels, low to max;
- an id for a model with thinking that the account lists only without
  it (claude-haiku-5-5-thinking, listed by plugin 0.1.x), or the other
  way round, runs on the model the account has instead of going to
  Cursor as named ("AI Model Not Found").

Run at origin/main 32ea16c5a + this change:
- gofmt -l internal/provider clean; go vet -tags nogui ./internal/provider
  on darwin, GOOS=linux, GOOS=windows clean.
- go test -tags nogui ./internal/provider: ok but for
  TestUnreadLoginsWriteErrorsKeepCredentials (synctest crash on main,
  #3632; skipped) and TestFetchAsksOneListOnceForTwoBasesOfIt,
  TestFetchUnionsProtocolListsWithoutChat, TestFetchAsksASharedBaseOnce
  (red on main, #3854).
- Plugin side: bun test packages/cursor 310 pass; its three new tests
  fail on 0.2.24.

Not run: the full suite (a one-line min); a real Cursor account or the
reporter's Team list (the plugin tests use the reporter's names with
Cursor's id pattern); magpie end to end.
This commit is contained in:
yetone
2026-10-27 16:35:37 +08:00
parent d71362afcd
commit 8bd300399d
File diff suppressed because one or more lines are too long