@magpie-community/opencode-cursor-auth 0.2.25 → 0.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +4 -1
  2. package/index.mjs +8 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -210,7 +210,10 @@ minutes), the way pi-cursor-sdk lists Cursor's catalog:
210
210
  them), fast the request's `service_tier`.
211
211
  - An id for a model with thinking that the account lists only without it
212
212
  (`claude-haiku-5-5-thinking` when the list has Claude Haiku 5.5 alone),
213
- or the other way round, runs as the model the account has.
213
+ or the other way round, runs as the model the account has. So does a
214
+ picker model whose default thinks while the account lists it only
215
+ without thinking (`claude-haiku-5-5`), or the other way round: each of
216
+ its variant ids goes as the id the account lists.
214
217
  - An `@<size>` id the list no longer has (`claude-opus-5-5@1m` when only
215
218
  300k is listed, or the model is listed unsized) runs at the model's
216
219
  nearest size, in Max Mode when the size asked for is over the model's
package/index.mjs CHANGED
@@ -827,7 +827,14 @@ function modelsOf(picker, ids, listed = []) {
827
827
  const def = defaultVariant({ variants })
828
828
  const { pid, levels: all } = effortsOf(defs)
829
829
  const levels = Object.fromEntries(Object.entries(all).filter(([, value]) => has(pid, value)))
830
- const fam = fams.get(familyOf(def?.legacySlug || m.name).family) ?? []
830
+ // the usable ids of its default's family, else of the same model with
831
+ // thinking or without it: a Team's picker can default Claude Haiku 5.5
832
+ // to thinking while cursor-agent lists it as claude-haiku-5-5 alone
833
+ // (ysm119 on Discord, after 0.2.25), and a variant id it lacks is then
834
+ // asked as that one, as named() takes such an id
835
+ const own = familyOf(def?.legacySlug || m.name).family
836
+ const bare = own.replace(/-thinking$/, "")
837
+ const fam = fams.get(own) ?? fams.get(bare) ?? fams.get(bare + "-thinking") ?? []
831
838
  const base = { run: m.name, title: clean(m.clientDisplayName || m.name), pid, levels, fast: !!defs.fast?.length, variants, def, partial, model: m, fam, ids }
832
839
  const contexts = (defs.context ?? []).filter((c) => has("context", c))
833
840
  if (contexts.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magpie-community/opencode-cursor-auth",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "Cursor subscriptions (Pro, Pro+, Ultra, Teams) in OpenCode and magpie, through the API cursor-agent talks to",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",