Files
plugins/packages/doubao-work/package.json
T
yetone b195b4f5a9 doubao-work 0.1.8: every model in the app's menu is listed, Kimi K3.1 Pro 高速 too (ul3140773077392 on X)
Two causes of a short list:
- Kimi K3.1 Pro and Kimi K3.1 Pro 高速 both became id kimi-k3.1-pro
  (idFor drops Chinese), so tableFrom kept only the first. 高速 is now
  "fast", and two rows that still collide get a numbered id.
- An account that signed in before 0.1.4 had no models.json, so the list
  stayed at the three built-in models until its first request. The
  provider.models hook now reads the menu once when the list was never
  read (queued behind an ask, once a minute at most), and only from an app
  the plugin has started before (its data folder exists).
Picking sends the row's own label to pickModel, unchanged.

Run on mote (Bun, temp HOME): bun test packages/doubao-work 44 pass,
bun scripts/check.mjs doubao-work ok. Tests use the screenshot's ten
literal labels. Broken by hand, each red: the 高速 mapping, the collision
numbering, the ensureList call (3 fail, restored).
Not tried: the real 豆包工作 app (none on mote or this Mac signed in; the
Windows box has only 豆包, unsigned).
2026-11-12 23:20:25 +08:00

31 lines
759 B
JSON

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