Files
plugins/packages/doubao-work/package.json
T
yetone 28879fdc18 doubao-work 0.1.6: a model the app added since the last menu read is found at once (#1048)
The model list is read off the app's menu on sign-in and again only once
the cached list is six hours old. A model Doubao added in between (the new
DeepSeek, Kimi and GLM rows) was answered 404 "没有模型", whether picked
from the list or typed by hand. Now a request that names a model the
cached list doesn't have reads the menu again first, queued behind any
running ask, at most once a minute so a made-up name doesn't open the
menu each time. A menu that can't be read leaves the model unknown and
the list as it was. The 404 now names the models the menu has.

Run on a separate test Mac (Bun 1.4.2, temp HOME):
- bun test packages/doubao-work: 39 pass, 0 fail (3 new).
- bun scripts/check.mjs doubao-work: ok.
Broken by hand, each red then restored:
- the plugin never asks the menu again: 1 fail.
- no once-a-minute limit: 1 fail.
Not tried: the real 豆包工作 or 豆包 app (no install for a review); the
reporter's menu may differ in a way the read doesn't handle, so #1048
stays open for them.

Reported-by: lumiai101
2026-11-12 01:38:05 -08:00

31 lines
759 B
JSON

{
"name": "@magpie-community/opencode-doubao-work-auth",
"version": "0.1.6",
"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"
}
}