Reads Doubao Work's model list from the app's own model menu, keeps it in models.json, and offers those models (0.1.4). Reviewed at 43b3d5d (the author's 50c1448 plus a maintainer fix: the config hook now keeps a model the user declared themselves, as every other package does). Run on mote: bun test packages/doubao-work 34 pass; bun scripts/check.mjs doubao-work ok. Broken by hand: model lookup back on the built-in table fails 2 tests; the old merge order fails the user-settings assertion. Not tried: a real Doubao app (the author ran it on macOS, 8 models).
31 lines
741 B
JSON
31 lines
741 B
JSON
{
|
|
"name": "@magpie-community/opencode-doubao-work-auth",
|
|
"version": "0.1.4",
|
|
"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 Doubao 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"
|
|
}
|
|
}
|