dsh-cookie-cleaner 0.1.1 → 0.1.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/CHANGELOG.md +13 -0
- package/dsh.plugin.json +2 -2
- package/package.json +8 -2
- package/scripts/sync-hosts.mjs +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2 (2026-11-04)
|
|
4
|
+
|
|
5
|
+
装载身份与兼容性闸门修复(为后续 client 面板做准备)。
|
|
6
|
+
|
|
7
|
+
- `dsh.plugin.json#id`:`dsh-external/dsh-cookie-cleaner` → `dsh-cookie-cleaner`(= 包名)。
|
|
8
|
+
挂载 id 不等于包名时 client 半从不加载(VD-017-020-06),不修则以后加面板必定白做。
|
|
9
|
+
- `peerDependencies` 补 `@deepseek-ai/dsh-client-ui-renderer`(optional)。兼容性闸门
|
|
10
|
+
**只读 `@deepseek-ai/dsh`/`dsh-*` 前缀的 peer range**,不读 `engines.dsh`:0.1.0/0.1.1 一个
|
|
11
|
+
`dsh*` peer 都没有 → 对所有宿主线恒判兼容,宿主换代时不会干净拒载,而是装载后
|
|
12
|
+
运行期报错。现由 `scripts/sync-hosts.mjs` 从 `scripts/hosts.mjs` 单源下发,与 `engines.dsh` 逐串相同。
|
|
13
|
+
- 门禁:双清单校验加入 renderer peer 一项;新测试钉住「manifest.id = 包名」与
|
|
14
|
+
「至少有一个 `@deepseek-ai/dsh*` peer,且 renderer peer 与 engines.dsh 同串」。
|
|
15
|
+
|
|
3
16
|
## 0.1.1 (2026-11-04)
|
|
4
17
|
|
|
5
18
|
跨平台支持(macOS / Linux)与 9 语分发。
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "dsh-
|
|
3
|
-
"version": "0.1.
|
|
2
|
+
"id": "dsh-cookie-cleaner",
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"description": "Cookie 清理器:只读播报桌面客户端 cookie 库里残留的本地登录凭据(dsh-auth-*),并随包分发「客户端完全退出后」可执行的清理命令(独占写锁 + .bak 备份,账号凭据/会话/插件配置不受影响)。",
|
|
6
6
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-cookie-cleaner",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Cookie cleaner for DeepSeek Harness: reports the local dsh-auth-* entries left in the desktop client's Chromium cookie store and ships a standalone command that purges them once the client is fully closed (backup + atomic transaction, credentials/sessions/plugin config untouched).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,7 +64,13 @@
|
|
|
64
64
|
"@deepseek-ai/schemastery": "^3.18.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@deepseek-ai/cordis": ">=4.0.1 <5"
|
|
67
|
+
"@deepseek-ai/cordis": ">=4.0.1 <5",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5"
|
|
69
|
+
},
|
|
70
|
+
"peerDependenciesMeta": {
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-renderer": {
|
|
72
|
+
"optional": true
|
|
73
|
+
}
|
|
68
74
|
},
|
|
69
75
|
"devDependencies": {
|
|
70
76
|
"@eslint/js": "^10.0.1",
|
package/scripts/sync-hosts.mjs
CHANGED
|
@@ -17,6 +17,7 @@ const failures = []
|
|
|
17
17
|
|
|
18
18
|
const pkgPath = path.join(ROOT, 'package.json')
|
|
19
19
|
const manifestPath = path.join(ROOT, 'dsh.plugin.json')
|
|
20
|
+
const RENDERER = '@deepseek-ai/dsh-client-ui-renderer'
|
|
20
21
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'))
|
|
21
22
|
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'))
|
|
22
23
|
|
|
@@ -30,6 +31,9 @@ compare('package.json#engines.dsh', pkg.engines?.dsh, range)
|
|
|
30
31
|
compare('package.json#dsh.compatibility.dshReleases', pkg.dsh?.compatibility?.dshReleases, releases)
|
|
31
32
|
compare('dsh.plugin.json#engines.dsh', manifest.engines?.dsh, range)
|
|
32
33
|
compare('dsh.plugin.json#version', manifest.version, pkg.version)
|
|
34
|
+
// 兼容性闸门只读 @deepseek-ai/dsh* 前缀的 peer range(不读 engines.dsh),
|
|
35
|
+
// 所以这张卡漏不得:少了它宿主换代时不会拒载,而是装载后运行期报错。
|
|
36
|
+
compare('package.json#peerDependencies[renderer]', pkg.peerDependencies?.[RENDERER], range)
|
|
33
37
|
|
|
34
38
|
if (check) {
|
|
35
39
|
if (failures.length > 0) {
|
|
@@ -42,6 +46,7 @@ if (check) {
|
|
|
42
46
|
// 版本号以 package.json 为源,把同号刷进 dsh.plugin.json(不然改版本必遗漏一处,V1 闸抓不到)
|
|
43
47
|
pkg.engines = { ...pkg.engines, dsh: range }
|
|
44
48
|
pkg.dsh = { ...pkg.dsh, compatibility: { ...pkg.dsh?.compatibility, dshReleases: releases } }
|
|
49
|
+
pkg.peerDependencies = { ...pkg.peerDependencies, [RENDERER]: range }
|
|
45
50
|
manifest.engines = { ...manifest.engines, dsh: range }
|
|
46
51
|
if (manifest.version !== pkg.version) {
|
|
47
52
|
manifest.version = pkg.version
|