dsh-free-model 0.5.1 → 0.5.2
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/SECURITY-AUDIT.md +3 -3
- package/package.json +1 -1
- package/vendor/channel-pack/pack.js +48 -0
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` | `db742c3cfc418d0cca600d914c033fdbb3c8ba82ed6d7d36b97dbf20352c5ba9` |
|
|
16
16
|
|
|
17
17
|
⚠️ `pack.js` 的指纹随每次「刷新模型数据 / 移植上游修复」而变(它是构建产物)。
|
|
18
|
-
上面的值对应**补上 DSH
|
|
18
|
+
上面的值对应**补上 DSH `@` 文件引用说明句指纹(2026-10-29,照上游 82d007a6)之后**的版本;
|
|
19
19
|
域名面结论未变,`scripts/egress-audit.mjs` 可随时重跑复验。
|
|
20
|
-
(上一版 `
|
|
20
|
+
(上一版 `b0162b38…` 是 DSH 自身首句指纹后的产物。)
|
|
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.2",
|
|
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",
|
|
@@ -34571,6 +34571,54 @@ var CONTENT_FINGERPRINTS = [
|
|
|
34571
34571
|
replace: "You are an AI agent running on DeepSeek Harness.",
|
|
34572
34572
|
note: "2026-10-21 \u672C\u673A\u5BF9 copilot.tencent.com \u5B9E\u6D4B\uFF1A\u539F\u53E5 400/11128\u3001\u6539\u5199\u540E 200\uFF083 \u6A21\u578B\u590D\u9A8C\uFF09"
|
|
34573
34573
|
},
|
|
34574
|
+
{
|
|
34575
|
+
// ★ **DSH 的 `@` 文件引用说明句**(上游 `82d007a6`;本 fork 2026-10-29 移植+真机复验)。
|
|
34576
|
+
//
|
|
34577
|
+
// ## ⚠️⚠️ 本条**不含任何品牌词** —— 这正是它被前一轮漏掉的原因
|
|
34578
|
+
//
|
|
34579
|
+
// 上一轮(2026-10-21)登记的是 `You are an AI agent powered by DeepSeek Harness.`
|
|
34580
|
+
// 那条带品牌名,靠「找含 DeepSeek Harness 的句子」能扫到。而本条是**纯功能描述**:
|
|
34581
|
+
// 没有 `DeepSeek`、没有 `dsh`、没有 `Harness` ⇒ 按品牌名普查**必然漏掉**。
|
|
34582
|
+
// ⇒ **判据不是品牌名,是「`@` 路径引用语法说明」这个 DSH 独有写法。**
|
|
34583
|
+
// 以后新增登记时请回来读这一行:**别只按品牌名普查**。
|
|
34584
|
+
//
|
|
34585
|
+
// ## 出处(极易被漏第二次,故写明)
|
|
34586
|
+
//
|
|
34587
|
+
// `@deepseek-ai/dsh-file-reference-local` 注入的 `context:file-reference` 段
|
|
34588
|
+
// (`FILE_REFERENCE_PROMPT`)。它在 agent 有 `read` 工具时**恒非空** ⇒ **每轮必带**,
|
|
34589
|
+
// 与加载了哪些插件 / skill **完全无关**(上游曾误判为 superpowers 撑大 system 所致,
|
|
34590
|
+
// 实测删掉整段后仍被拦,该假设已证伪)。
|
|
34591
|
+
//
|
|
34592
|
+
// ## 本 fork 真机复验(2026-10-29,`copilot.tencent.com`,真实账号)
|
|
34593
|
+
//
|
|
34594
|
+
// | 探针 | 结果 |
|
|
34595
|
+
// |---|---|
|
|
34596
|
+
// | 中性基线 | ✅ 200 |
|
|
34597
|
+
// | 原句 `Tokens prefixed with @ … workspace root` | ❌ **400/11128** |
|
|
34598
|
+
// | 上游 `replace`(只调语序) | ✅ **200** |
|
|
34599
|
+
//
|
|
34600
|
+
// 且已确认**我们 DSH 的真实 system 里就有这句**(从 10-28 的会话日志逐字取出,
|
|
34601
|
+
// 前半段与下方 `find` 完全一致)⇒ 不登记 = 腾讯系渠道每轮必拦。
|
|
34602
|
+
//
|
|
34603
|
+
// ## 上游的逐格实测要点(`82d007a6`,勿删,用来判「以后要不要再登记同族」)
|
|
34604
|
+
//
|
|
34605
|
+
// - 字面量 **111 字符**:110 前缀放行 / 111 拦 ⇒ **必须写满整句**;
|
|
34606
|
+
// - 只发前半句(48 字符)或只发后半句(44 字符)**各自都放行** ⇒ 触发串
|
|
34607
|
+
// **跨句边界**,切一半会**空跑**(探针会得出「已放行」的假阴性);
|
|
34608
|
+
// - **位置无关**(裸串/前接空格/换行/中文/嵌在句中 全 ❌)——与本文件的
|
|
34609
|
+
// `Main branch …` 那条同型,区别于「Claude Code 身份句」的行首锚定;
|
|
34610
|
+
// - **大小写不敏感**。
|
|
34611
|
+
//
|
|
34612
|
+
// ⚠️ 已知边界(上游明列):服务端认**逐字符长字面量** ⇒ DSH 哪天改动这两句任一
|
|
34613
|
+
// 字符,本规则会**静默停止匹配**(症状 = 该渠道整轮 400 复发,与「完全没登记」同形)。
|
|
34614
|
+
// 守卫见 `scripts/channel-fingerprint-test.mjs`。
|
|
34615
|
+
find: "Tokens prefixed with @ are paths the user explicitly referenced. Relative paths resolve from the workspace root",
|
|
34616
|
+
// 只调整语序:`相对路径从工作区根解析` → `路径相对工作区根解析`。语义不变,
|
|
34617
|
+
// 且**整句其余部分逐字不动** —— 后半段(目录 list / 用 read / 不得声称已读过 /
|
|
34618
|
+
// 引号语法)是防模型编造文件内容的核心约束,一个字都不许删。
|
|
34619
|
+
replace: "Tokens prefixed with @ are paths the user explicitly referenced. Paths resolve relative to the workspace root",
|
|
34620
|
+
note: "\u4E0A\u6E38 82d007a6\uFF082026-10-28 \u771F\u5B9E\u62A5\u969C\uFF09+ \u672C\u673A 2026-10-29 \u590D\u9A8C\uFF1A\u539F\u53E5 400\u3001\u8C03\u8BED\u5E8F\u540E 200\uFF1B\u26A0\uFE0F \u672C\u6761\u4E0D\u542B\u54C1\u724C\u8BCD\uFF0C\u6309\u300C\u627E\u542B DeepSeek Harness \u7684\u53E5\u5B50\u300D\u666E\u67E5\u5FC5\u6F0F"
|
|
34621
|
+
},
|
|
34574
34622
|
{
|
|
34575
34623
|
// ZCode 内建常量:`$Js="Main branch (you will usually use this for PRs)"`。
|
|
34576
34624
|
// 每个 git 仓库里的会话都会被注入(拼在 `Main branch … : <分支名>` 这一行)。
|