Files
plugins/packages/workbuddy/package.json
T
yetone 4883f9437f workbuddy 0.2.4: the filter's canned line is taken out of a reply it ends content_filter (#540)
itspig (#540): deepseek-v4.1-flash on copilot.tencent.com, through a
group, reasoned, said "Sorry, I can't respond to this question.", and
ended finish_reason content_filter with 0 output tokens, all under a
200. magpie recorded the try done/200, never asked the group's next
member, and DeepSeek Harness failed "The model refused to complete the
request".

unsaid() now reads a streamed chat's events: text that is still the
filter's line (FILTER_SAYS, the issue's literal words) is held; when the
reply ends content_filter with nothing else said, that text is taken out,
so magpie sees reasoning then content_filter with nothing said, which it
hands on (magpie holds DeepSeek's reasoning for that from its next
release). Any other text goes as it comes, released at its first word that
isn't the filter's; the same words ending stop, and a reply the filter
cuts off after other words, go through byte for byte. Native (Messages)
requests are not touched.

Run on mote at this tree: HOME=$(mktemp -d) bun test: 3970 pass, 9 skip,
0 fail; bun scripts/check.mjs: every package ok. Broken by hand: without
unsaid() in the chat path, the 5 refusal cases of filtered.test.mjs go red
and the 4 pass-through cases stay green.

Not tried: a real WorkBuddy refusal (I have no prompt that reproduces
it); the stream's literal chunking is not in the issue, so the tests cut
the line into one delta, three deltas, the finish chunk itself, and 7-byte
writes. Only the English line from the issue is known; a Chinese variant
would pass through as before.
2026-10-31 05:56:05 +08:00

25 lines
611 B
JSON

{
"name": "@magpie-community/opencode-workbuddy-auth",
"version": "0.2.4",
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
"type": "module",
"main": "./index.mjs",
"exports": "./index.mjs",
"files": [
"index.mjs",
"README.md"
],
"keywords": [
"opencode",
"opencode-plugin",
"workbuddy",
"codebuddy"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/workbuddy"
}
}