dsh-free-model 0.5.2 → 0.5.4
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 +12 -2
- package/README_EN.md +12 -2
- package/SECURITY-AUDIT.md +3 -3
- package/package.json +1 -1
- package/vendor/channel-pack/pack.js +1041 -297
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ dsh plugin --profile web add dsh-our-free-model # 回滚到上游 2.1.0
|
|
|
88
88
|
| `packages/standalone/`(独立 Web 产品)、`worker/`(EAC 的 Cloudflare 授权网关)、`feed/` + `catalog/`(公告源与发布清单) | 三块卫星全部 `import` 被删车道,留着就是一套永远跑不起来的代码。 |
|
|
89
89
|
|
|
90
90
|
规模变化:`src/` 从 **58 个模块 → 5 个**(`store/key/chan-relay/egress/trust`),宿主 `index.js` 从
|
|
91
|
-
**2343 行 → 684 行**,浏览器半身 `client.js` 从 **5992 行 → 2531 行**,离线测试从 45 个套件 → **
|
|
91
|
+
**2343 行 → 684 行**,浏览器半身 `client.js` 从 **5992 行 → 2531 行**,离线测试从 45 个套件 → **30 个**。
|
|
92
92
|
界面里所有 `animation` 与 `@keyframes` 也已删除。
|
|
93
93
|
|
|
94
94
|
## 配置
|
|
@@ -142,7 +142,7 @@ POST /chan-gateway/rotate 轮换中继密钥
|
|
|
142
142
|
## 测试
|
|
143
143
|
|
|
144
144
|
```bash
|
|
145
|
-
npm test #
|
|
145
|
+
npm test # 30 个离线套件,无需网络、不花额度
|
|
146
146
|
node scripts/host-smoke-test.mjs # 只跑宿主 HTTP 面
|
|
147
147
|
node scripts/client-lint.mjs # 只跑浏览器半身(字典键一一对应 + CSS 规则可达)
|
|
148
148
|
```
|
|
@@ -161,6 +161,16 @@ node scripts/client-lint.mjs # 只跑浏览器半身(字典键一一
|
|
|
161
161
|
| `channel-officeace-lock` / `channel-officeace-login` | 移植渠道 OfficeAce:登录闭环真走 RPC(authorize URL → poll → 换 token → 落库);锁定分道的**判定与执行**逐条断言(未锁定逐字走旧路径、锁定+只剩永久桶必须抛错不回落)|
|
|
162
162
|
| `channel-accio` | 移植渠道 Accio:真走 RPC 完成回调式登录(授权页 → 本地回调 → 换 token → 按**账号 ref** 落库),并断言自动续期表覆盖 accio / officeace(漏一项 = 静默不续期且零日志)|
|
|
163
163
|
| `channel-buddy-conv` | WorkBuddy/CodeBuddy:`send()` 必发三枚非空 `X-Conversation-*`(缺则特定账号整条渠道 `400/11128` 全灭);渠道校验档换号、**不写冷却**、报 `PERMISSION_DENIED` 指向账号;单账号池不误报 `QUOTA_EXCEEDED`;11140 仍写冷却 |
|
|
164
|
+
| `channel-zcode-system-blocks` | ZCode `system` 数组恒 3 块(第 4 块 ⇒ 405+3012);调用方 system 走 messages |
|
|
165
|
+
| `channel-zcode-405` | ZCode `405` 恒不可重试(旧归 SERVER ⇒ 白重试 5 轮并累积账号冷却惩罚)|
|
|
166
|
+
| `channel-codearts-ua-codes` | CodeArts 推理 UA 覆盖(华为 WAF 按 `deepseek-harness/` 前缀拒发)+ 三业务码单列 |
|
|
167
|
+
| `channel-zcode-version-generation` | ZCode 版本 × 身份块必须同代(跨代即 405+3012,全量用户不可用)|
|
|
168
|
+
| `channel-cline-snapshot-suffix` | Cline 模型带日期/快照后缀时继承基底能力(否则图片能力/窗口丢失)|
|
|
169
|
+
| `channel-officeace-checkin` | OfficeAce 签到失败留痕 + 撤销占坑(否则本小时钉死、当天 1000 分白丢)|
|
|
170
|
+
| `channel-accio-rotate` | Accio 请求级账号轮换(402/429 换号+冷却、401 换号不冷却、400 不换号)|
|
|
171
|
+
| `channel-trae-image-order` | TRAE 多 tool_call 时工具结果图片必须排在全部 tool 之后(否则 4027 会话永久损坏)|
|
|
172
|
+
| `channel-catalog-refresh` | 模型上下架自适应(10 家 `refreshCatalog` + 30 分钟定时保鲜 + 失败保留旧目录)|
|
|
173
|
+
| `channel-credit-exhausted` / `channel-tool-args` / `channel-expiry-terminal` | 额度耗尽 14018 不按 1h 兜底 / 工具参数三分(掐断 vs 写坏)/ 续期落盘失败=终态(各家注入自己的错误类)|
|
|
164
174
|
| `channel-fingerprint` | 腾讯系内容指纹改写:assistant 正文那格一旦漏改,带毒历史每轮重放 ⇒ **会话报废且换任何腾讯系模型都一样**;白名单严格只有 buddy/workbuddy;良性文本不被破坏 |
|
|
165
175
|
|
|
166
176
|
上游的 45 个套件里,其余的都在测被删掉的车道,已一并移除。测试**只在仓库里跑**(npm 包不含 `scripts/`)。
|
package/README_EN.md
CHANGED
|
@@ -95,7 +95,7 @@ Four settings pages (down from nine):
|
|
|
95
95
|
|
|
96
96
|
Sizes: `src/` went from **58 modules to 5** (`store/key/chan-relay/egress/trust`), the host `index.js`
|
|
97
97
|
from **2343 to 684 lines**, the browser half `client.js` from **5992 to 2538 lines**, and the offline
|
|
98
|
-
suites from 45 to **
|
|
98
|
+
suites from 45 to **30**. Every `animation` and `@keyframes` rule is gone as well.
|
|
99
99
|
|
|
100
100
|
## Configuration
|
|
101
101
|
|
|
@@ -148,7 +148,7 @@ the browser half talks to it over the shell's `connection` RPC (`usage.tokenLedg
|
|
|
148
148
|
## Tests
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
|
-
npm test #
|
|
151
|
+
npm test # 30 offline suites: no network, no quota
|
|
152
152
|
node scripts/host-smoke-test.mjs # the host HTTP surface only
|
|
153
153
|
node scripts/client-lint.mjs # the browser half only (dictionary keys, CSS reachability)
|
|
154
154
|
```
|
|
@@ -167,6 +167,16 @@ node scripts/client-lint.mjs # the browser half only (dictionary keys, C
|
|
|
167
167
|
| `channel-officeace-lock` / `channel-officeace-login` | The ported OfficeAce channel: the login loop really goes through RPC (authorize URL → poll → token → persisted); the lock **decision and its execution** are asserted case by case (unlocked keeps the old path verbatim, locked-with-only-permanent must throw and never fall back to the pool) |
|
|
168
168
|
| `channel-accio` | The ported Accio channel: a callback-style login really goes through RPC (authorize page → local callback → token exchange → persisted under the **account's own ref**), plus the auto-renew table is asserted to cover accio / officeace (a missing entry = silently never renewed, with no log) |
|
|
169
169
|
| `channel-buddy-conv` | WorkBuddy/CodeBuddy: `send()` must emit three non-empty `X-Conversation-*` headers (without them, certain accounts get the whole channel dead on `400/11128` every turn); the channel-verification tier rotates accounts, **writes no cooldown**, and reports `PERMISSION_DENIED` pointing at the account; a single-account pool must not misreport `QUOTA_EXCEEDED`; 11140 still writes its cooldown |
|
|
170
|
+
| `channel-zcode-system-blocks` | ZCode's `system` array must stay at exactly 3 blocks (a 4th one ⇒ 405+3012); caller system goes into messages |
|
|
171
|
+
| `channel-zcode-405` | ZCode `405` is never retryable (classifying it as SERVER caused 5 pointless retries plus account-cooldown penalties) |
|
|
172
|
+
| `channel-codearts-ua-codes` | CodeArts inference UA override (Huawei WAF rejects the `deepseek-harness/` prefix) + three business codes classified separately |
|
|
173
|
+
| `channel-zcode-version-generation` | ZCode version and identity block must be the same generation (cross-generation means 405+3012 for every user) |
|
|
174
|
+
| `channel-cline-snapshot-suffix` | Cline models with date/snapshot suffixes inherit the base model's capabilities (otherwise image support and context window are lost) |
|
|
175
|
+
| `channel-officeace-checkin` | OfficeAce daily check-in: failures must log and release the hourly slot (otherwise the hour is pinned and the day's 1000 points are lost) |
|
|
176
|
+
| `channel-accio-rotate` | Accio per-request account rotation (402/429 rotate+cooldown, 401 rotate *without* cooldown, 400 does not rotate) |
|
|
177
|
+
| `channel-trae-image-order` | TRAE: tool-result images must come after all `tool` messages (otherwise 4027 permanently breaks the session) |
|
|
178
|
+
| `channel-catalog-refresh` | Model catalogue self-refresh (10 adapters expose `refreshCatalog`, a 30-minute timer keeps it fresh, failures keep the old catalogue) |
|
|
179
|
+
| `channel-credit-exhausted` / `channel-tool-args` / `channel-expiry-terminal` | 14018 credit exhaustion must not fall back to 1h / tool args triage (truncated vs invalid) / save-failure after a successful refresh is terminal, with per-provider error classes |
|
|
170
180
|
| `channel-fingerprint` | Tencent content-fingerprint rewriting: missing the assistant-body case means a poisoned history replays every turn — the session is dead **and switching to any other Tencent model does not help**; the allowlist is exactly buddy/workbuddy; benign text is left intact |
|
|
171
181
|
|
|
172
182
|
The other 37 of upstream's 45 suites tested lanes this fork deletes. The suites run **from a checkout
|
package/SECURITY-AUDIT.md
CHANGED
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
| --- | --- |
|
|
13
13
|
| `index.js` | `a932bcb6bdeef608496071a60d1f9e8499997fca52765e0eb300171d8728aa57` |
|
|
14
14
|
| `client.js` | `13332f9b4102e5cc7125998983126df7b50cfa6a32ef5e20aefc51aca0a5e820` |
|
|
15
|
-
| `vendor/channel-pack/pack.js` | `
|
|
15
|
+
| `vendor/channel-pack/pack.js` | `9255642fdaf064b11e0f1e233b0d771419515e8803dbe0e173c0cb6a9f76bfba` |
|
|
16
16
|
|
|
17
17
|
⚠️ `pack.js` 的指纹随每次「刷新模型数据 / 移植上游修复」而变(它是构建产物)。
|
|
18
|
-
|
|
18
|
+
上面的值对应**上游跟进第二批(2026-11-09:codearts UA/业务码 + zcode 3.17 身份块 + 第四条指纹 + cline 快照后缀)之后**的版本;
|
|
19
19
|
域名面结论未变,`scripts/egress-audit.mjs` 可随时重跑复验。
|
|
20
|
-
(上一版 `
|
|
20
|
+
(上一版 `b1d9d582…` 是目录自适应 + 12 项修复后的产物。)
|
|
21
21
|
|
|
22
22
|
## 结论
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-free-model",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "dsh 插件(DeepSeek Harness / cordis bundle)· 模型接入 —— 把 CodeArts、CodeBuddy / WorkBuddy、LobsterAI、Qoder / Qoder CN、TRAE、Cline、Loomy、Raccoon、MiniMax Code、ZCode、Gemini、OfficeAce、Accio Work 十五个账号渠道接进 dsh 的模型选择器,并保留数据看板、运行日志与本地网关(含局域网中继)。上游 2.1.0 的匿名免费车道、EAC 协付车道、聚合渠道、省 Token、路由、公告/升级/热重载与独立 Web 产品已全部移除。",
|
|
6
6
|
"main": "./index.js",
|