dsh-free-model 3.2.0 → 3.3.0
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 +3 -2
- package/README_EN.md +3 -2
- package/SECURITY-AUDIT.md +2 -2
- package/client.js +1 -0
- package/package.json +1 -1
- package/vendor/channel-pack/pack.js +953 -81
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 个套件 → **32 个**。
|
|
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 # 32 个离线套件,无需网络、不花额度
|
|
146
146
|
node scripts/host-smoke-test.mjs # 只跑宿主 HTTP 面
|
|
147
147
|
node scripts/client-lint.mjs # 只跑浏览器半身(字典键一一对应 + CSS 规则可达)
|
|
148
148
|
```
|
|
@@ -166,6 +166,7 @@ node scripts/client-lint.mjs # 只跑浏览器半身(字典键一一
|
|
|
166
166
|
| `channel-codearts-ua-codes` | CodeArts 推理 UA 覆盖(华为 WAF 按 `deepseek-harness/` 前缀拒发)+ 三业务码单列 |
|
|
167
167
|
| `channel-zcode-version-generation` | ZCode 版本 × 身份块必须同代(跨代即 405+3012,全量用户不可用)|
|
|
168
168
|
| `channel-cline-snapshot-suffix` | Cline 模型带日期/快照后缀时继承基底能力(否则图片能力/窗口丢失)|
|
|
169
|
+
| `channel-doubao` | 豆包渠道:设备身份确定性派生(拒预验证 id)/ DSML 流式跨帧归一化 / 签到排除 |
|
|
169
170
|
| `channel-officeace-checkin` | OfficeAce 签到失败留痕 + 撤销占坑(否则本小时钉死、当天 1000 分白丢)|
|
|
170
171
|
| `channel-accio-rotate` | Accio 请求级账号轮换(402/429 换号+冷却、401 换号不冷却、400 不换号)|
|
|
171
172
|
| `channel-trae-image-order` | TRAE 多 tool_call 时工具结果图片必须排在全部 tool 之后(否则 4027 会话永久损坏)|
|
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 **32**. 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 # 32 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
|
```
|
|
@@ -172,6 +172,7 @@ node scripts/client-lint.mjs # the browser half only (dictionary keys, C
|
|
|
172
172
|
| `channel-codearts-ua-codes` | CodeArts inference UA override (Huawei WAF rejects the `deepseek-harness/` prefix) + three business codes classified separately |
|
|
173
173
|
| `channel-zcode-version-generation` | ZCode version and identity block must be the same generation (cross-generation means 405+3012 for every user) |
|
|
174
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-doubao` | Doubao channel: deterministic device identity (rejects pre-verification ids) / cross-frame DSML normalisation / check-in exclusion |
|
|
175
176
|
| `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
177
|
| `channel-accio-rotate` | Accio per-request account rotation (402/429 rotate+cooldown, 401 rotate *without* cooldown, 400 does not rotate) |
|
|
177
178
|
| `channel-trae-image-order` | TRAE: tool-result images must come after all `tool` messages (otherwise 4027 permanently breaks the session) |
|
package/SECURITY-AUDIT.md
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
| 文件 | sha256 |
|
|
12
12
|
| --- | --- |
|
|
13
13
|
| `index.js` | `a932bcb6bdeef608496071a60d1f9e8499997fca52765e0eb300171d8728aa57` |
|
|
14
|
-
| `client.js` | `
|
|
15
|
-
| `vendor/channel-pack/pack.js` | `
|
|
14
|
+
| `client.js` | `e74f1985665c6eed9c1ceeb730e4d00777d7d57dd1a5086b3e6d9d378c1922c2` |
|
|
15
|
+
| `vendor/channel-pack/pack.js` | `3ca7b5a7550f5558bc5a66a2654dca3b55454384a422705ccf862fc54191c923` |
|
|
16
16
|
|
|
17
17
|
⚠️ `pack.js` 的指纹随每次「刷新模型数据 / 移植上游修复」而变(它是构建产物)。
|
|
18
18
|
上面的值对应**3.2.0(2026-11-16:目录刷新改为每日一次 + 账号变更即时)之后**的版本;
|
package/client.js
CHANGED
|
@@ -1435,6 +1435,7 @@ window.__ModuleLoader__.load({
|
|
|
1435
1435
|
{ id: 'gemini', name: 'Gemini', org: 'Google Code Assist', accent: '#4285F4', note: '本地回调 OAuth 免费线', login: 'browser' },
|
|
1436
1436
|
{ id: 'officeace', name: 'OfficeAce', org: '华为云 ModelArts MaaS', accent: '#C7000B', note: '华为云 OAuth(PKCE + DPoP),云端直连、无需装客户端', login: 'browser' },
|
|
1437
1437
|
{ id: 'accio', name: 'Accio Work', org: '阿里', accent: '#FF6A00', note: '标准 OAuth + PKCE(公开客户端),可脱离 IDE 使用', login: 'browser' },
|
|
1438
|
+
{ id: 'doubao', name: '豆包', org: '字节跳动 · doubao.com', accent: '#3B82F6', note: '网页端私有协议:cookie 鉴权、模型目录与对话', login: 'browser' },
|
|
1438
1439
|
]
|
|
1439
1440
|
|
|
1440
1441
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-free-model",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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",
|