dsh-cookie-cleaner 0.2.2 → 0.2.3

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/dsh.plugin.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "id": "dsh-cookie-cleaner",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "main": "./src/index.js",
5
5
  "description": "Cookie 清理器:解决桌面客户端启动报 `desktop welcome: Web authentication failed`(HTTP 431,随机端口致 dsh-auth-* cookie 堆积溢出请求头上限)的现象。只读播报 cookie 库里残留的本地登录凭据(dsh-auth-*,含请求头占用水位与距 431 阈值余量),随包分发「客户端完全退出后」可执行的清理命令(独占写锁 + .bak 备份,账号凭据/会话/插件配置不受影响);设置面可体检 profile 的 cordis.patch.yml 并一键修复 `connection.cookieMaxAgeDays`(cookie 有效期,可回滚)。",
6
6
  "engines": {
7
- "dsh": "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 || 0.2.2-rc.1"
7
+ "dsh": ">=0.2.1 <0.3.0"
8
8
  },
9
9
  "contributes": {}
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-cookie-cleaner",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Fixes the 'desktop welcome: Web authentication failed' (HTTP 431) launch failure caused by dsh-auth-* cookie pile-up in the desktop client's Chromium cookie store (random port per launch, ~70 entries overflow the 16KB header cap). Reports leftover entries with the estimated request-header occupancy and how much room is left before 431, and ships a standalone command that purges them once the client is fully closed (backup + atomic transaction, credentials/sessions/plugin config untouched); the settings panel audits your profile's cordis.patch.yml and one-click fixes connection.cookieMaxAgeDays (cookie lifetime, revertible). See README for usage.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -109,7 +109,7 @@
109
109
  ],
110
110
  "engines": {
111
111
  "node": "^22.19.0 || >=24.0.0",
112
- "dsh": "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 || 0.2.2-rc.1"
112
+ "dsh": ">=0.2.1 <0.3.0"
113
113
  },
114
114
  "keywords": [
115
115
  "deepseek-harness",
package/scripts/hosts.mjs CHANGED
@@ -7,7 +7,14 @@
7
7
  * 手工改其中一处而漏掉其余 = 假兼容/假拒绝的直接来源。
8
8
  */
9
9
 
10
- /** 已验证可装载的宿主线(逐 rc 单列,禁用 range 通配)。 */
10
+ /**
11
+ * 判定闸门声明面(2026-11-06 起改 range 声明,对齐 dsh-arrowkey-nav a6fb783 迁移):
12
+ * `engines.dsh` 两处写点(package.json / dsh.plugin.json)发这一串;
13
+ * HOSTS 枚举继续供 `dsh.compatibility.dshReleases` 展示与 peer range 下发。
14
+ */
15
+ export const ENGINES_RANGE = '>=0.2.1 <0.3.0'
16
+
17
+ /** 已验证可装载的宿主线(逐 rc 单列,供 compatibility 展示与 peer range)。 */
11
18
  export const HOSTS = [
12
19
  '0.1.0-rc.2',
13
20
  '0.1.0-rc.3',
@@ -7,7 +7,7 @@
7
7
  import fs from 'node:fs'
8
8
  import path from 'node:path'
9
9
  import { fileURLToPath } from 'node:url'
10
- import { HOSTS, STATUS, orRange } from './hosts.mjs'
10
+ import { HOSTS, STATUS, orRange, ENGINES_RANGE } from './hosts.mjs'
11
11
 
12
12
  const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
13
13
  const check = process.argv.includes('--check')
@@ -33,9 +33,9 @@ function compare(label, actual, expected) {
33
33
  failures.push(`${label}: 与 scripts/hosts.mjs 不一致\n 期望 ${JSON.stringify(expected)}\n 实际 ${JSON.stringify(actual)}`)
34
34
  }
35
35
 
36
- compare('package.json#engines.dsh', pkg.engines?.dsh, range)
36
+ compare('package.json#engines.dsh', pkg.engines?.dsh, ENGINES_RANGE)
37
37
  compare('package.json#dsh.compatibility.dshReleases', pkg.dsh?.compatibility?.dshReleases, releases)
38
- compare('dsh.plugin.json#engines.dsh', manifest.engines?.dsh, range)
38
+ compare('dsh.plugin.json#engines.dsh', manifest.engines?.dsh, ENGINES_RANGE)
39
39
  compare('dsh.plugin.json#version', manifest.version, pkg.version)
40
40
  // 兼容性闸门只读 @deepseek-ai/dsh* 前缀的 peer range(不读 engines.dsh),
41
41
  // 一个都不能漏:少了宿主换代时不会拒载,而是装载后运行期报错。
@@ -58,7 +58,7 @@ if (check) {
58
58
  }
59
59
  } else if (failures.length > 0) {
60
60
  // 版本号以 package.json 为源,把同号刷进 dsh.plugin.json(不然改版本必遗漏一处,V1 闸抓不到)
61
- pkg.engines = { ...pkg.engines, dsh: range }
61
+ pkg.engines = { ...pkg.engines, dsh: ENGINES_RANGE }
62
62
  pkg.dsh = { ...pkg.dsh, compatibility: { ...pkg.dsh?.compatibility, dshReleases: releases } }
63
63
  // peer 表重建:保留非 dsh-scope 的 peer(如 cordis),dsh* 项一律等于 client.inject 集合与同一 range
64
64
  const kept = Object.fromEntries(Object.entries(pkg.peerDependencies ?? {}).filter(([name]) => !name.startsWith('@deepseek-ai/dsh')))
@@ -67,7 +67,7 @@ if (check) {
67
67
  const meta = Object.fromEntries(Object.entries(pkg.peerDependenciesMeta ?? {}).filter(([name]) => !name.startsWith('@deepseek-ai/dsh')))
68
68
  for (const name of clientPeers) meta[name] = { ...meta[name], optional: true }
69
69
  pkg.peerDependenciesMeta = meta
70
- manifest.engines = { ...manifest.engines, dsh: range }
70
+ manifest.engines = { ...manifest.engines, dsh: ENGINES_RANGE }
71
71
  if (manifest.version !== pkg.version) {
72
72
  manifest.version = pkg.version
73
73
  process.stdout.write(`dsh.plugin.json#version 同步为 ${pkg.version}\n`)