Files
plugins/packages/doubao-work/package.json
T
yetone f379bf907c doubao-work 0.1.2: say at once that an open Doubao must be quit
The owner's sign-in spun with no end. Doubao runs one copy at a time: with
the user's own Doubao open, the plugin's copy (its own profile, debugging
port) quits within a second of starting, so the port never opens.
waitSignedIn took every error but app_missing as "not signed in yet" and
started it again for five minutes, saying nothing.

- App.start looks for a running copy of the binary on another profile
  before it starts one, and fails with app_busy. The user's copy can't be
  driven instead: Chromium allows debugging only off the default profile.
- waitSignedIn ends on any app_* error (busy, missing, start timeout) and
  on abort; only a window still loading is waited for.
- Sign-in and requests say: quit Doubao (⌘Q) and try again. A request
  gets 503.

Run: bun test packages/doubao-work on mote (+ check.mjs), Linux (WSL) and
Windows: 28 pass, 0 fail. With waitSignedIn's old catch put back, the new
waitSignedIn test is red (60s timeout instead of app_busy). Live on this
Mac, with a Doubao running from another profile: waitSignedIn threw
app_busy in 92ms, nothing spawned, no profile made. That a second copy
quits was tried first: Doubao with a fresh profile and port exited in ~1s,
port never up.
Not tried: the owner's Mac (10.0.0.175) itself.
2026-11-09 06:53:05 +08:00

31 lines
741 B
JSON

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