The binary was looked up only at %LOCALAPPDATA%\DoubaoWork (or DOUBAO_WORK_APP), so an install in D:\Apps\DoubaoWork was never found. When the usual place has nothing, the plugin now asks the system once: on Windows the Uninstall keys (HKCU, HKLM, WOW6432Node: InstallLocation, DisplayIcon, UninstallString), App Paths and the path of a running DoubaoWork.exe/Doubao.exe; on macOS Spotlight by bundle id, ps, and one folder down in /Applications, ~/Applications and /Volumes/*. The usual place still wins and nothing is asked then. zhaodengfeng on X (third-party models): 豆包工作 keeps no local list of them (model_config_list is served from its cloud config; no custom-model store found in the app's data). Models on the user's own key are a direct call to that vendor, not a Doubao task, so they are not served; README says to add that API to magpie as its own provider. Run: bun test packages/doubao-work (41 pass, 3 new assertions groups; the Application\app candidate was red first). bun scripts/check.mjs. win-run on xiaomi-gpu: the real registry and running Doubao.exe found ...\Doubao\Application\app\Doubao.exe with LOCALAPPDATA pointed at C:\nowhere. Not tried: a real DoubaoWork install on D:\ (only 豆包 is on that box), the macOS finders against a real DoubaoWork.app (this Mac has only Doubao.app and Spotlight returned nothing; the folder scan covers it).
31 lines
759 B
JSON
31 lines
759 B
JSON
{
|
|
"name": "@magpie-community/opencode-doubao-work-auth",
|
|
"version": "0.1.7",
|
|
"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"
|
|
}
|
|
}
|