@magpie-community/opencode-workbuddy-auth 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/index.mjs +8 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,7 +85,10 @@ default one, as the app does.
|
|
|
85
85
|
|
|
86
86
|
WorkBuddy refuses some agents' identity lines as an "unapproved channel"
|
|
87
87
|
(11128), so those lines are reworded before a chat goes out. Since 0.1.27
|
|
88
|
-
(#279) that includes DeepSeek Harness's opening line.
|
|
88
|
+
(#279) that includes DeepSeek Harness's opening line. A refusal of words
|
|
89
|
+
not reworded yet ends in a hint that names no one client (since 0.1.28):
|
|
90
|
+
WorkBuddy refused words in this client's prompt; use it from Hermes,
|
|
91
|
+
OpenCode or Pi, or add another provider to the group.
|
|
89
92
|
|
|
90
93
|
The loader also translates OpenAI-compatible request spellings WorkBuddy
|
|
91
94
|
doesn't take: `max_completion_tokens` becomes `max_tokens`, `developer`
|
package/index.mjs
CHANGED
|
@@ -1699,11 +1699,15 @@ function makePlugin(site) {
|
|
|
1699
1699
|
|
|
1700
1700
|
// REFUSED_HINT is what the user can do about WorkBuddy's "Illegal API
|
|
1701
1701
|
// invocation from an unapproved channel": both builds answer it to a chat
|
|
1702
|
-
// holding words
|
|
1703
|
-
//
|
|
1704
|
-
//
|
|
1702
|
+
// holding words they turn away, whatever the headers. Codex's and Claude
|
|
1703
|
+
// Code's were the first (magpie #182), DeepSeek Harness's and Claude
|
|
1704
|
+
// Desktop's came later (#279, #170), and WorkBuddy reads every message, so
|
|
1705
|
+
// it names no client. FLAGGED rewrites the words known; this is for ones it
|
|
1706
|
+
// doesn't know. It ends the error's message word for word as magpie's
|
|
1707
|
+
// Routing page has it (WB_REFUSED in its routing client.js), which says it
|
|
1708
|
+
// apart from WorkBuddy's own words.
|
|
1705
1709
|
const REFUSED_HINT =
|
|
1706
|
-
"WorkBuddy
|
|
1710
|
+
"WorkBuddy refused words in this client's prompt (most often its system prompt); use it from Hermes, OpenCode or Pi, or add another provider to this group"
|
|
1707
1711
|
const REFUSED = /unapproved channel|illegal api invocation/i
|
|
1708
1712
|
|
|
1709
1713
|
// RESTRICTED_HINT is what the user can do about WorkBuddy's 403 code 11140
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|