@magpie-community/opencode-trae-auth 0.2.22 → 0.2.23
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.
- package/README.md +3 -1
- package/index.mjs +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -231,7 +231,9 @@ which levels it takes — its `reasoning_effort_config`, with the options
|
|
|
231
231
|
(`light`, `high`, `extra_high`) and the default. The request takes the same
|
|
232
232
|
names as `reasoning_effort`, so a level an agent picks is sent as Trae
|
|
233
233
|
spells it: the plugin offers each model's own levels as `variants`
|
|
234
|
-
(`low`/`high`/`xhigh` for `light`/`high`/`extra_high`
|
|
234
|
+
(`low`/`high`/`xhigh` for `light`/`high`/`extra_high`; `medium` and `max`
|
|
235
|
+
keep their names, offered only where the entry names them, as for DeepSeek
|
|
236
|
+
V4.1 Flash's `max` in Trae's app), and sends nothing
|
|
235
237
|
for a level the model doesn't name, or for a model whose entry names none —
|
|
236
238
|
Trae then serves it at its own default. An entry naming levels this map
|
|
237
239
|
can't spell offers none, rather than being sent one Trae would reject. A
|
package/index.mjs
CHANGED
|
@@ -2593,13 +2593,16 @@ const MAX = "-max"
|
|
|
2593
2593
|
// (light, high, extra_high) and the one it defaults to. The request takes the
|
|
2594
2594
|
// same names, as reasoning_effort, so a level an agent picks is sent as Trae
|
|
2595
2595
|
// spells it. OpenCode knows the three as low/high/xhigh, so the map goes both
|
|
2596
|
-
// ways.
|
|
2596
|
+
// ways. Trae's client names two more, medium and max (its bundle's
|
|
2597
|
+
// reasoning_effort.{low,medium,high,extra_high,max}), handed out per model:
|
|
2598
|
+
// its app offers DeepSeek V4.1 Flash max (#434), so they are spelled here too,
|
|
2599
|
+
// and still offered only for a model whose entry names them.
|
|
2597
2600
|
//
|
|
2598
2601
|
// An entry without the config takes no level: Trae serves it at its own
|
|
2599
2602
|
// default and nothing is sent. The plugin used to send none for every model,
|
|
2600
2603
|
// which read as "Trae takes no level" — it takes them, per model, and an
|
|
2601
2604
|
// entry that names none is the exception rather than the rule.
|
|
2602
|
-
const LEVELS = { light: "low", high: "high", extra_high: "xhigh" }
|
|
2605
|
+
const LEVELS = { light: "low", medium: "medium", high: "high", extra_high: "xhigh", max: "max" }
|
|
2603
2606
|
|
|
2604
2607
|
// levelsOf is an entry's levels in OpenCode's names, in Trae's order: [] when
|
|
2605
2608
|
// the entry names none, null when it names ones this map can't spell (so a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpie-community/opencode-trae-auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"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",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|