@magpie-community/opencode-workbuddy-auth 0.1.45 → 0.1.46

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.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.mjs +9 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -126,8 +126,8 @@ Each chat carries WorkBuddy's headers:
126
126
  - `Authorization`, `X-User-Id`, `X-Domain`, `X-Product: SaaS`, `X-IDE-Type: WorkBuddy`;
127
127
  - the desktop CLI's `User-Agent`, `WorkBuddy/<app> <appName>/<app> CLI/<cli>`:
128
128
  `WorkBuddy/5.9.3 WorkBuddy/5.9.3 CLI/2.165.0` on the China build and
129
- `WorkBuddy/5.8.4 workbuddy-ai/5.8.4 CLI/2.161.0` on WorkBuddy AI, each
130
- build's current app on 2026-10-28; `X-IDE-Version` is the app's version.
129
+ `WorkBuddy/5.9.3 workbuddy-ai/5.9.3 CLI/2.165.0` on WorkBuddy AI, each
130
+ build's current app on 2026-10-29; `X-IDE-Version` is the app's version.
131
131
  A User-Agent not starting `WorkBuddy/<version>` is answered error 10085;
132
132
  - the client's, which WorkBuddy's usage list shows as the client that asked
133
133
  (使用端): `X-Agent-Purpose: conversation`, `X-IDE-Name: WorkBuddy`,
@@ -144,7 +144,7 @@ Each chat carries WorkBuddy's headers:
144
144
  one, a made-up conversation of the request's own being what splits one
145
145
  conversation into many in the usage detail;
146
146
  - what the CLI adds to a model request alone: `X-Agent-Type: main` on both
147
- builds, `X-Agent-Runtime: local-agent` on the China build (new in 5.9),
147
+ builds, `X-Agent-Runtime: local-agent` (new in 5.9),
148
148
  `Accept: application/json`, and the `X-Stainless-*` headers of the OpenAI
149
149
  SDK it sends through (openai 6.25.0 on Electron 37's Node v22.21.1, a
150
150
  1200s timeout, no retries).
package/index.mjs CHANGED
@@ -92,11 +92,15 @@ const SITES = {
92
92
  authID: "workbuddy-desktop-ai",
93
93
  platform: "workbuddy-ai",
94
94
  ai: true,
95
- // WorkBuddy AI 5.8.4.41366630, its update feed's current build on
96
- // 2026-10-28 (see the China build's)
97
- app: "5.8.4",
98
- cli: "2.161.0",
95
+ // WorkBuddy AI 5.9.3.42398134, its update feed's current build on
96
+ // 2026-10-29 (see the China build's): the same CLI as the China
97
+ // build's 5.9.3, byte for byte but for product.json, and the same
98
+ // Electron (37.10.3); its desktop puts agentRuntime local-agent in the
99
+ // prompt meta as the China build's does
100
+ app: "5.9.3",
101
+ cli: "2.165.0",
99
102
  appName: "workbuddy-ai",
103
+ runtime: "local-agent",
100
104
  keys: "https://www.workbuddy.ai/profile/keys",
101
105
  models: AI_MODELS,
102
106
  // models whose images WorkBuddy AI drops though its config says they
@@ -1328,7 +1332,7 @@ function fitted(body) {
1328
1332
 
1329
1333
  // gzipped is a chat's body compressed, as WorkBuddy's own client sends its
1330
1334
  // model requests: its CLI's GzipRequestProcessor (WorkBuddy 5.9.3, CLI
1331
- // 2.165.0; WorkBuddy AI 5.8.4 the same) gzips each POST's body and sets
1335
+ // 2.165.0, on both builds) gzips each POST's body and sets
1332
1336
  // Content-Encoding: gzip when the product's RequestBodyGzip feature is on,
1333
1337
  // which both builds' product.json turn on and /v3/config (merged over it)
1334
1338
  // doesn't turn off. Sent as plain JSON, a long agent conversation went up
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magpie-community/opencode-workbuddy-auth",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
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",