With Doubao closed or the menu read failed, models() served the built-in three (or an older cache) unmarked.
Archivemylife on X (agy-cli): "配置后报存提示成功,再打开还是全部都启用".
The same class as agy-cli 0.1.61: a list that isn't the account's own,
handed back as if it were, makes magpie relist on it and drop the models
the user picked that aren't in it. Marked with
Symbol.for("magpie.fellBack"), magpie's plugin host keeps the last good
list (keepListed) and the picks.
Run (mote-run, HOME=mktemp -d): doubao-work.test.mjs 59 pass on this change: all pass.
Red on the old code with the new test: "models() and usage never start Doubao" fails.
Not tried: a real account.
31 lines
760 B
JSON
31 lines
760 B
JSON
{
|
|
"name": "@magpie-community/opencode-doubao-work-auth",
|
|
"version": "0.1.13",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"files": [
|
|
"index.mjs",
|
|
"cdp.mjs",
|
|
"doubao.mjs",
|
|
"openai.mjs",
|
|
"prompt.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.mjs",
|
|
"README.md"
|
|
],
|
|
"description": "Doubao Work (豆包工作) as a model provider, by driving the 豆包工作 (or 豆包) desktop app the way a person does",
|
|
"magpie": {
|
|
"maxConcurrency": 1
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/doubao-work"
|
|
},
|
|
"keywords": ["magpie", "magpie-plugin", "doubao", "doubao-work"],
|
|
"license": "MIT",
|
|
"exports": {
|
|
".": "./opencode2.mjs"
|
|
}
|
|
}
|