Commit Graph
15 Commits
Author SHA1 Message Date
叫我小杨同学andClaude f41ecc238c fix: allowBuilds 只写裸包名,清除所有 dsh-purge@* 键,避免 pnpm 11 崩溃(#185)
- pnpm 的 allowBuilds 按包名匹配,裸包名 dsh-purge 对 tarball / git /
  registry 三种安装形态都放行;而 dsh-purge@https://... 这类键在 pnpm 11
  (DSH 内置 11.2.2)会被 semver 解析器当成版本联合,直接报
  [ERR_PNPM_INVALID_VERSION_UNION] Invalid versions union 让 install 崩掉
- purgePnpmBuildSpecs() 只返回 ["dsh-purge"],不再拼 tarball URL 键
- 自愈时所有 dsh-purge@* 历史键(URL 键、旧截断键 dsh-purge@https、
  @1.1.81 之类版本键)一律丢弃,只保留裸包名;非 purge 键原样保留
- 删除随之失效的 readPurgeTarballFromLock() / readPkgTarball()
- 新增用例:输入只含 URL 键时重写后只剩裸包名;健康文件重写输出等于输入,
  零写入

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-30 12:25:32 +08:00
叫我小杨同学 6345f22cd5 fix: allowBuilds URL 键截断与污染自愈,健康文件零写入(#180)
- parseAllowBuildLine 未引号键只在冒号+空白处切分,URL 键不再截断;
  引号键照旧,行尾无值也能解析
- 含 :// 的键写回加引号,避免 YAML 冒号歧义
- 重写只保留精确等于期望键的 dsh-purge@*,畸形/过期键自动清掉
- 期望键优先读 profile 的 pnpm-lock.yaml 实际 tarball(固定 commit 安装
  不再有双 URL 键),退回 package.json,再退裸包名;profileDir 参数可选
- 重写结果先过最小校验(键不重复、round-trip 无损),不过不写盘;
  健康文件 next === current 零写入
- 新增 test/profile-insert.test.js(13 条,全量 36 条全过),版本 1.1.82
2026-10-28 20:14:18 +08:00
叫我小杨同学 50c269a642 fix: 收录 DSH NEXT 识别与单测(#174 #175)
#171/#173 已在 1.1.80;#174 按官方 asar 路径认 DSH NEXT,不把任意 app.asar 当桌面。
2026-10-28 00:03:24 +08:00
叫我小杨同学 f666cf6bba 1.1.80: 修复 bug,修复稳定性(#168 #169 #170 #172 #176) 2026-10-27 23:34:55 +08:00
叫我小杨同学 82da559cff 1.1.79: 修复 bug,修复稳定性(#165 #166 #167) 2026-10-27 01:25:57 +08:00
叫我小杨同学 add692e491 fix: 命令撞名只丢那一条;主插件 insert 自愈(#162 #159) 2026-10-26 11:15:56 +08:00
叫我小杨同学 2a3c7cef6a fix: Apply 不再覆盖 npm 全局 dsh 软链;pnpm/plugin add 补本体 insert(#157 #154 #155) 2026-10-24 20:38:05 +08:00
叫我小杨同学 c6170078da fix: 停用/卸载时清掉 selectedDefault=redteam(#108) 2026-10-24 14:42:42 +08:00
叫我小杨同学 c9dd642a66 1.1.77: 修复 bug,修复稳定性(长红队任务公网门禁) 2026-10-24 01:51:07 +08:00
叫我小杨同学 deef072b81 1.1.74: 优化 bug(靶场门禁、预设加载、演练台中文、禁止外挂) 2026-10-23 18:15:45 +08:00
叫我小杨同学 ba1ad9d824 fix: judge lab targets by resolved private IPs, not domain suffixes. 2026-10-23 18:04:32 +08:00
叫我小杨同学 e8e444dfec fix: strip leftover toolFilter from installed redteam presets on DSH 0.2.1. 2026-10-23 17:46:57 +08:00
叫我小杨同学 0aeef1e428 fix: seal object JSON schemas so redteam preset loads on DSH 0.2.1. 2026-10-23 17:44:58 +08:00
叫我小杨同学 fbf1803468 fix: restore Chinese UI for the drill console. 2026-10-23 16:08:10 +08:00
叫我小杨同学 175e254044 1.1.73: open-source local-lab only; drop skills and knowledge base. 2026-10-23 15:55:53 +08:00