@zzz0350/our-workbuddy-standalone 5.31.4 → 5.31.5
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 +7 -2
- package/main.js +13 -3
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
把 WorkBuddy 变成一个**本地 OpenAI 兼容网关**。不依赖 DSH、不依赖 Cordis、不需要 `npm install` —— 一个 Node 进程,一个 `main.js` 文件,双击就能用。
|
|
4
4
|
|
|
5
|
-
当前版本 **5.31.
|
|
5
|
+
当前版本 **5.31.5**(已同步上游 `v5.31.4`)。侧栏显示独立版版本号,账号测试显示中文结果和 HTTP 错误提示,用量页默认显示最近一周。
|
|
6
|
+
|
|
7
|
+
5.31.4 同步 #293 和 #295 的渠道校验改词修复:将系统消息中的 Claude Code `official CLI` 自述句和 `runtime context` 检出目录说明改为中性表述,解决这两类文本触发的 400 / 11128 错误。#294 的路由鉴权调整仅适用于 DSH 宿主。
|
|
6
8
|
|
|
7
9
|
5.31.2 同步上游至 `v5.31.2`(修复 DSH 0.2.3 图片预算字段与非英文 macOS 宿主 PID 检测);默认改为后台无窗口启动,网关日志统一写入 `%USERPROFILE%\.our-workbuddy\logs\gateway.log`。
|
|
8
10
|
|
|
@@ -221,6 +223,9 @@ npm run release -- 5.32.0 --same/--dry-run
|
|
|
221
223
|
|
|
222
224
|
## 更新日志
|
|
223
225
|
|
|
226
|
+
### v5.31.5 (2026-11-25)
|
|
227
|
+
- 同步上游 v5.31.4(#293/#295 渠道校验改词修复,解决 Claude Code official CLI 自述句与 runtime context 触发的 400/11128 错误)
|
|
228
|
+
|
|
224
229
|
### v5.31.4 (2026-11-24)
|
|
225
230
|
- 版本更新内容改为展示中文功能变更说明,自动过滤 npm 临时占位版本
|
|
226
231
|
- 支持从 npm 发布说明与 README 更新日志自动汇总历史版本功能变更
|
|
@@ -480,7 +485,7 @@ logs/gateway.log 日志
|
|
|
480
485
|
|
|
481
486
|
## 同步上游并构建
|
|
482
487
|
|
|
483
|
-
在本仓库的 GitHub **Actions → Build standalone gateway → Run workflow** 里填写 `upstream_ref`。默认取 `dingminhua/dsh-connect-workbuddy` 的 `main`,也可以指定分支、标签或提交 SHA。要选用当前发布的上游基线,填 `
|
|
488
|
+
在本仓库的 GitHub **Actions → Build standalone gateway → Run workflow** 里填写 `upstream_ref`。默认取 `dingminhua/dsh-connect-workbuddy` 的 `main`,也可以指定分支、标签或提交 SHA。要选用当前发布的上游基线,填 `b8215700d238c252902d708bddfcee10e24b5089`(`v5.31.4`)。
|
|
484
489
|
|
|
485
490
|
GitHub runner 取上游源码,逐个应用 `source/patches/` 中的补丁,再复制独立网关和回归测试。一个补丁完整通过反向检查时视为上游已包含。三方合并冲突、构建或测试失败时,先处理日志里列出的错误再重新运行。
|
|
486
491
|
|
package/main.js
CHANGED
|
@@ -4692,7 +4692,8 @@ const CHANNEL_GATE_PHRASES = [
|
|
|
4692
4692
|
["and do not claim to have inspected it before reading.", "and never claim to have inspected it before reading it."],
|
|
4693
4693
|
["@\"...\" quotes a path containing spaces.", "A path containing spaces is quoted with @\"...\"."],
|
|
4694
4694
|
["without naming another target, they mean this GUI.", "and names no other target, the interface described here is meant."],
|
|
4695
|
-
["they mean this GUI.", "the interface described here is meant."]
|
|
4695
|
+
["they mean this GUI.", "the interface described here is meant."],
|
|
4696
|
+
["The runtime context names the DeepSeek Harness implementation checkout.", "The runtime context names the local implementation checkout."]
|
|
4696
4697
|
];
|
|
4697
4698
|
/**
|
|
4698
4699
|
* Shape-locked rewrites for THIRD-PARTY coding CLIs' self-introduction lines
|
|
@@ -4733,7 +4734,11 @@ const CHANNEL_GATE_PHRASES = [
|
|
|
4733
4734
|
* a digit) in the span patterns, so it can carry `4.6` / `2.1.327` but can never
|
|
4734
4735
|
* jump a sentence boundary.
|
|
4735
4736
|
*/
|
|
4736
|
-
const CHANNEL_GATE_PATTERNS = [
|
|
4737
|
+
const CHANNEL_GATE_PATTERNS = [
|
|
4738
|
+
[/\bYou are\s+(?:an?\s+)?(?:the\s+)?Grok\b(?:[^.\n]|\.(?=[\w])){0,60}?\b(?:(?:released|made|built|created|developed|trained|powered)\s+)?(?:by|from)\s+xAI\b[^.\n]*/gi, "You are an autonomous coding agent"],
|
|
4739
|
+
[/^[ \t]*You are\s+(?:[^.\n]|\.(?=\d)){0,120}?\b(?:released|made|built|created|developed|trained|powered)\s+(?:by|on|from)\s+(?:xAI|Anthropic|OpenAI|Google(?:\s+DeepMind)?|Meta|Mistral)\b[^.\n]*/gm, "You are an autonomous coding agent"],
|
|
4740
|
+
[/^[ \t]*You are\s+[\w-]+(?:\s+[\w.]+)?\s*,\s*(?:xAI|Anthropic|OpenAI|Google(?:\s+DeepMind)?|Meta|Mistral)'s\s+official\s+CLI\s+for\s+[\w-]+\b[^.\n]*/gim, "You are an autonomous coding agent"]
|
|
4741
|
+
];
|
|
4737
4742
|
/**
|
|
4738
4743
|
* Rewrite the measured gate phrases in one text part.
|
|
4739
4744
|
*
|
|
@@ -16428,8 +16433,13 @@ async function measureTps(input) {
|
|
|
16428
16433
|
* regions.<cn|global>.models.{enabledModelIds,contextWindowOverrides,offThinkingIds}
|
|
16429
16434
|
* regions.<cn|global>.{cnBase,pollMs}
|
|
16430
16435
|
*/
|
|
16431
|
-
const STANDALONE_VERSION = "5.31.
|
|
16436
|
+
const STANDALONE_VERSION = "5.31.5";
|
|
16432
16437
|
const BUILTIN_RELEASE_NOTES = [
|
|
16438
|
+
{
|
|
16439
|
+
version: "5.31.5",
|
|
16440
|
+
date: "2026-11-25",
|
|
16441
|
+
items: ["同步上游 v5.31.4(#293/#295 渠道校验改词修复,解决 Claude Code official CLI 自述句与 runtime context 触发的 400/11128 错误)"]
|
|
16442
|
+
},
|
|
16433
16443
|
{
|
|
16434
16444
|
version: "5.31.4",
|
|
16435
16445
|
date: "2026-11-24",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zzz0350/our-workbuddy-standalone",
|
|
3
|
-
"version": "5.31.
|
|
3
|
+
"version": "5.31.5",
|
|
4
4
|
"description": "Our WorkBuddy 独立本地网关:账号池轮换、自动签到、在线日志与一键更新",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -24,6 +24,13 @@
|
|
|
24
24
|
"registry": "https://registry.npmjs.org/"
|
|
25
25
|
},
|
|
26
26
|
"releaseNotes": [
|
|
27
|
+
{
|
|
28
|
+
"version": "5.31.5",
|
|
29
|
+
"date": "2026-11-25",
|
|
30
|
+
"items": [
|
|
31
|
+
"同步上游 v5.31.4(#293/#295 渠道校验改词修复,解决 Claude Code official CLI 自述句与 runtime context 触发的 400/11128 错误)"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
27
34
|
{
|
|
28
35
|
"version": "5.31.4",
|
|
29
36
|
"date": "2026-11-24",
|