provider: Cursor's mover installs plugin 0.2.32, where a newer (merged) plan shows one Weekly window, not Other Models (majiang_ai on X)

majiang_ai on X: Cursor's newer plans have no third-party-model pool,
but magpie's Cursor card still showed Cursor Models, Other Models and
Total. Cursor's GetPlanInfo answers isMerged true and
includedUsagePeriod WEEKLY for such a plan, and its dashboard
(cursor.com/v2/usage) draws one "Weekly usage limit" meter from the
period's totalPercentUsed. @magpie-community/opencode-cursor-auth 0.2.32
(plugins 060722e) shows that plan's included usage as one Weekly window
counting every model; an unmerged plan keeps its two pools.

This commit raises the Cursor mover's min to 0.2.32, so keepMovedCurrent
installs it for every moved user.

Run (on mote, at this tree):
- gofmt -l internal/provider/migrate_side.go: nothing
- go vet ./...; GOOS=linux go vet -tags nogui ./...; GOOS=windows go
  vet ./...: ok
- go test -timeout 45m ./internal/provider: ok (253s)
- npm view @magpie-community/opencode-cursor-auth version --prefer-online:
  0.2.32; the published tarball's index.mjs reads isMerged.

Plugin side (recorded in plugins 060722e): whole plugins repo bun test
3229 pass, 0 fail; 5 new tests red with the merged branch turned off;
the owner's real Cursor account (a merged Premium plan) read with the
plugin directly: 0.2.31 showed Cursor Models 7% / Other Models 0% /
Total 7%, 0.2.32 shows Weekly 7% (resets 11-03), Grok Bot, On-demand.

Not run: the full go test ./... (only the mover's min changed); a move
in a sandbox magpie with the real account; an old unmerged plan's real
account (none at hand).
This commit is contained in:
yetone
2026-10-29 18:07:21 +08:00
parent fff5ad0ef7
commit 9f25de56c7
File diff suppressed because one or more lines are too long