@iasiv5/dsh-skip-browser-auth 0.4.2 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +4 -2
  2. package/icon.svg +17 -0
  3. package/package.json +9 -6
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @iasiv5/dsh-skip-browser-auth
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@iasiv5/dsh-skip-browser-auth?label=npm&color=cb3837)](https://www.npmjs.com/package/@iasiv5/dsh-skip-browser-auth)
4
- [![DSH Web](https://img.shields.io/badge/DSH_Web-0.1.2--rc.1_%7C_0.1.5--rc.1_%7C_0.1.5--rc.2_%7C_0.1.7--rc.1_%7C_0.1.7--rc.2_%7C_0.2.0--rc.1_%7C_0.2.0--rc.2_%7C_0.2.1--rc.1_%7C_0.2.1--rc.2_verified-blue)](#兼容版本)
4
+ [![DSH Web](https://img.shields.io/badge/DSH_Web-0.1.2--rc.1_%7C_0.1.5--rc.1_%7C_0.1.5--rc.2_%7C_0.1.7--rc.1_%7C_0.1.7--rc.2_%7C_0.2.0--rc.1_%7C_0.2.0--rc.2_%7C_0.2.1--rc.1_%7C_0.2.1--rc.2_%7C_0.2.1--rc.3_verified-blue)](#兼容版本)
5
5
  [![License](https://img.shields.io/github/license/iasiv5/dsh-skip-browser-auth?color=green)](./LICENSE)
6
6
 
7
7
  个人自用的 DSH Web 插件:在已验证的 DSH compatibility profile 上自动跳过 BrowserAuth,打开 Web 地址即可直接使用,**不必每次把启动 URL 里那串随机 token 抄进浏览器**。
@@ -64,6 +64,8 @@ sudo systemctl restart deepseek-harness.service
64
64
 
65
65
  ## 兼容版本与 profile
66
66
 
67
+ 宿主最低版本声明为 DSH `>=0.1.2-rc.1`;插件只在下表的精确 runtime/connection 版本对上激活,其他版本或混合版本对自动休眠。
68
+
67
69
  | DSH runtime / connection 版本对 | Profile | Host/client 适配 | 状态 |
68
70
  | --- | --- | --- | --- |
69
71
  | `0.1.2-rc.1` + `0.1.2-rc.1` | `legacy-web-v1` | legacy `/api` prefix + 0.1.2 client | ✅ active |
@@ -75,7 +77,7 @@ sudo systemctl restart deepseek-harness.service
75
77
  | `0.2.0-rc.2` + `0.2.0-rc.2` | `carrier-neutral-v3` | 同上(0.2.0-rc.2 为依赖对齐重发布 + 无关 Desktop CLI 演进:插件契约面代码逐字节一致) | ✅ active(npm diff 审计 + 真实 0.2.0-rc.2 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.7;实机 checklist 见当日升级记录) |
76
78
  | `0.2.1-rc.1` + `0.2.1-rc.1` | `carrier-neutral-v4` | carrier-neutral-021:Peer/principal 准入 + `admission.peer` 透传 bridge + `/connect` 交换通道 + webStartup 信任来源 + 0.2.1 browser client | ✅ active(§5.8 契约审计定谳新代际 + 真实 0.2.1-rc.1 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.9;实机 checklist 待宿主升级后回填) |
77
79
  | `0.2.1-rc.2` + `0.2.1-rc.2` | `carrier-neutral-v4` | 同上(0.2.1-rc.2 为契约面等价重发布:web-app patch 仅新增非 connection 行,connection 行逐字段一致) | ✅ active(npm diff 审计 + 真实 0.2.1-rc.2 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.10;实机 checklist 待宿主升级后回填) |
78
- | `0.2.1-rc.3` + `0.2.1-rc.3` | `carrier-neutral-v4` | 同上(0.2.1-rc.3 为契约面等价重发布:web-app patch 仅新增非 connection 行,connection 行逐字段一致) | ✅ active(npm diff 审计 + 真实 0.2.1-rc.3 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.11;实机 checklist 待宿主升级后回填) |
80
+ | `0.2.1-rc.3` + `0.2.1-rc.3` | `carrier-neutral-v4` | 同上(0.2.1-rc.3 为契约面等价重发布:web-app patch 仅新增非 connection 行,connection 行逐字段一致) | ✅ active(npm diff 审计 + 真实 rc.3 fixture 测试,见 docs/COMPATIBILITY.md §5.11;2026-10-25 Web 实测:BrowserAuth 横幅出现、无 token GET / 返回 200) |
79
81
  | desktop profile(存在 dsh-desktop-host 的环境,任意版本对) | — | 😴 dormant-by-design:desktop 一律休眠 | dormant |
80
82
  | 其它版本或混合版本对 | — | 😴 自动休眠:官方行为分毫不变 | dormant |
81
83
 
package/icon.svg ADDED
@@ -0,0 +1,17 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="dsh-skip-browser-auth">
2
+ <!-- dsh-skip-browser-auth 跳过浏览器认证:前置小点(被跳过的 Token 输入)
3
+ + 双快进箭头(蓝→青)= 免输 Token 直接通过 -->
4
+ <circle cx="5.8" cy="18" r="2" fill="url(#b)"/>
5
+ <path d="M10.5 10.5L19.5 18L10.5 25.5Z" fill="url(#b)" stroke="url(#b)" stroke-width="2.6" stroke-linejoin="round"/>
6
+ <path d="M20.5 10.5L29.5 18L20.5 25.5Z" fill="url(#t)" stroke="url(#t)" stroke-width="2.6" stroke-linejoin="round"/>
7
+ <defs>
8
+ <linearGradient id="b" x1="9" y1="12" x2="19" y2="24" gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#69B9FF"/>
10
+ <stop offset="1" stop-color="#324DE2"/>
11
+ </linearGradient>
12
+ <linearGradient id="t" x1="20" y1="12" x2="30" y2="24" gradientUnits="userSpaceOnUse">
13
+ <stop stop-color="#45E7A4"/>
14
+ <stop offset="1" stop-color="#05909D"/>
15
+ </linearGradient>
16
+ </defs>
17
+ </svg>
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@iasiv5/dsh-skip-browser-auth",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "替换官方 Connection 提供方跳过 BrowserAuth,免输 Token;已适配 0.1.2-rc.1、0.1.5-rc.1/rc.2、0.1.7-rc.1/rc.2、0.2.0-rc.1/rc.2 与 0.2.1-rc.1/rc.2/rc.3,详见仓库。仅支持 web(宿主二进制须为 node);desktop 宿主一律自动休眠(多进程树判别:安装槽位/启动器 argv/宿主二进制),属设计行为。",
5
+ "icon": "./icon.svg",
5
6
  "keywords": [
6
7
  "dsh",
7
8
  "deepseek-harness",
@@ -26,7 +27,8 @@
26
27
  "cordis.patch.yml",
27
28
  "README.md",
28
29
  "LICENSE",
29
- "NOTICE"
30
+ "NOTICE",
31
+ "icon.svg"
30
32
  ],
31
33
  "engines": {
32
34
  "node": "^22.19.0 || >=24"
@@ -40,14 +42,15 @@
40
42
  "typecheck": "tsc -p tsconfig.json --noEmit",
41
43
  "pretest": "npm run build",
42
44
  "test": "node --test tests/*.test.mjs tests/composition/*.test.mjs",
43
- "test:rc2-fixture": "node scripts/install-rc2-fixture.mjs",
44
- "test:rc15-fixture": "node scripts/install-rc15-fixture.mjs",
45
- "test:rc17-fixture": "node scripts/install-rc17-fixture.mjs",
46
- "test:all": "npm run test:rc2-fixture && npm run test:rc15-fixture && npm run test:rc17-fixture && npm run typecheck && npm test",
45
+ "test:fixtures": "node scripts/install-fixtures.mjs",
46
+ "test:all": "npm run test:fixtures && npm run typecheck && npm test",
47
47
  "audit-candidate": "node scripts/audit-candidate.mjs",
48
48
  "prepare": "npm run build"
49
49
  },
50
50
  "dsh": {
51
+ "engines": {
52
+ "dsh": ">=0.1.2-rc.1"
53
+ },
51
54
  "bundle": {
52
55
  "patch": "./cordis.patch.yml"
53
56
  },