Files
plugins/packages/trae/package.json
T
yetone 054876c9aa trae 0.2.40: an enterprise seat pool of nothing is an error naming what was read, not a blank card (#1143)
shex816's Trae CN enterprise account (#1143) shows in /v1/magpie/quotas
as {plan: "Enterprise", user: "Signed in", windows: []}: no error, no
window. That is ent.read when the console's seat pool is 0 (not
unlimited) and the credits page gives no row, so the card stood empty
with no word of why.

- Trae CN: with no window and no balance, the read is an error naming
  the pool and what the credits page did ("could not be read", "shows
  no allowance", "says unlimited").
- Trae Global: a pool of nothing is an error naming the pool.
- A pool of nothing beside a credits page with an allowance still shows
  the credits row, as before.

Run (mote, HOME=$(mktemp -d)):
- bun test in packages/trae: 277 pass, 0 fail.
- bun scripts/check.mjs trae: ok.

Broken by hand: 0.2.39's index.mjs with the new tests: 3 fail (the two
CN errors, the Global error); the credits-row test passes on both.

Not tried: shex816's real account (the pool of 0 is inferred from the
empty card's shape; their console answer is not in hand).
2026-11-16 12:41:09 +08:00

32 lines
713 B
JSON

{
"name": "@magpie-community/opencode-trae-auth",
"version": "0.2.40",
"description": "OpenCode provider plugins for Trae: Trae CN (trae.cn) and Trae Global (trae.ai), free tier included, with Trae's own browser sign-in",
"type": "module",
"main": "./opencode.mjs",
"exports": {
".": "./opencode2.mjs"
},
"files": [
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"README.md"
],
"keywords": [
"opencode",
"opencode-plugin",
"magpie",
"trae",
"trae-cn",
"trae-global",
"bytedance"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/trae"
}
}