DeepSeek-V4.1-Flash, which Trae CN's SOLO picker offers, was missing from magpie's list: the plugin read the account's models from /api/ide/v1/get_detail_param for chat_v3 (the classic IDE's chat) only, and SOLO's models (the user's list showed DeepSeek-V4-Flash-Official and the custom_model_* entries of chat_v3, no V4.1) come under solo_work_lite. Now the list is asked for every chat function (chat_v3, solo_work_lite) and put together, chat_v3's first; one list failing leaves the other's, a lapsed sign-in still throws. A model only SOLO lists is asked through solo_work_lite first, the 4001/4023/1005 fallback kept. usage.test.mjs "SOLO's models are listed too" fails on 0.1.0 (V4.1 absent) and passes; bun test: 21 pass. Not tried with a real Trae CN account (none signed in here).
13 lines
564 B
JSON
13 lines
564 B
JSON
{
|
|
"name": "@magpie-community/opencode-trae-auth",
|
|
"version": "0.1.1",
|
|
"description": "OpenCode provider plugin for Trae CN (trae.cn): your Trae CN account's models, free tier included, with Trae's own browser sign-in",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "trae", "trae-cn", "bytedance"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/trae" }
|
|
}
|