dsh-selfupdater 0.3.3 → 0.3.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.
@@ -371,6 +371,7 @@ async function main() {
371
371
  renameSync(profileDir, bakProfileDir);
372
372
  // 注意:不再立即还原备份!备份目录需要保留到更新成功完成,
373
373
  // 这样如果更新失败,rollback() 函数才能从备份恢复。
374
+ mkdirSync(profileDir, { recursive: true });
374
375
  mkdirSync(stagingDir, { recursive: true });
375
376
 
376
377
  // 阶段三:逐个下载 tgz 并离线安装;任一失败立即整体回滚。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-selfupdater",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Self-update plugin for DeepSeek Harness: check npm for newer @deepseek-ai/dsh, swap node_modules atomically, restart, health-check and roll back on failure; also supports one-click online update of installed DSH plugins. DSH 主程序与已装插件的一站式在线更新插件。",
5
5
  "license": "MIT",
6
6
  "type": "module",