The sibling of qoder's #1113 (0.2.68). A reply that writes its calls as one JSON object in OpenAI's own wire shape went out as the answer with "stop". A whole {"tool_calls":[…]} object on a line of its own, outside code, is now those calls (finish tool_calls), with arguments as an object or as a JSON string. While the reply streams, such a line, or a tail that could become one, is held and never shown as text. JSON in prose or in a fence, an empty list, a nameless entry and unreadable arguments stay text, as an unreadable <tool_call> block does in this package. Run: bun test in packages/doubao-work on WSL (magpie-desktop), HOME=$(mktemp -d): 62 pass, 0 fail (jsoncall.test.mjs new, with #1113's bytes). bun scripts/check.mjs doubao-work ok. Broken by hand: without the lift and the hold, both jsoncall tests that are about them go red (2 fail). Not tried: a real Doubao reply in this shape; none has been reported.
31 lines
760 B
JSON
31 lines
760 B
JSON
{
|
|
"name": "@magpie-community/opencode-doubao-work-auth",
|
|
"version": "0.1.12",
|
|
"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"
|
|
}
|
|
}
|