dsh-snowbreak-heimdall 3.1.4 → 3.1.5

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  ## 当前状态
9
9
 
10
- - 插件:`dsh-snowbreak-heimdall@3.1.4`,profile `desktop` 已启用。
10
+ - 插件:`dsh-snowbreak-heimdall@3.1.5`,profile `desktop` 已启用。
11
11
  - 当前运行:`142164e9…9555`
12
12
  - `reapply=false`,这一版已经应用完成;**不需要再退出或重写 asar**。
13
13
  - **安装/启用后先确认再重启**:Host 检测到源码层未接入时弹「现在重启 DSH?」,选「是」才关闭当前 DSH、等待 helper 写入源码层,再自动启动 DSH;选「否」不重启。重启过程不弹进度窗。
@@ -100,7 +100,7 @@ DSH 完全退出后,helper 启动 **PowerShell WPF WS_POPUP**:
100
100
  不是“复制文件夹后双击即用”。对方需要:
101
101
 
102
102
  1. 同版本 DSH `0.2.2-rc.1`(补丁锚点按该版本校验,其他版本会拒绝写入)。
103
- 2. 在 DSH 插件管理器/安装指令中安装 npm 包 `dsh-snowbreak-heimdall@3.1.4`;安装后启用插件。
103
+ 2. 在 DSH 插件管理器/安装指令中安装 npm 包 `dsh-snowbreak-heimdall@3.1.5`;安装后启用插件。
104
104
  也可以手动把包安装到 profile 后加入 `dsh.profile.bundles`。
105
105
  3. 启用插件,然后完整退出 DSH;helper 才会写入源码层。
106
106
  4. Windows 用户;DSH 安装目录可写(默认 `%LOCALAPPDATA%\Programs\DeepSeek Harness`,自定义路径可设 `HEIMDALL_TARGET` / `HEIMDALL_RESOURCES`)。
package/SHA256SUMS.txt CHANGED
@@ -43,14 +43,14 @@ aef34c1fed4a009a78955f5316b999bbd157fd082d7441d34852d32f0a481c28 *assets\source\
43
43
  2a0b4b9c68d5f4b87bb8fbb768a1933c40394fe4e6f23c144fae88052ebe4a02 *cordis.patch.yml
44
44
  065af22a9be00dc76ce08bc647814d33da2779e937db6c5fa4ea0dcb8c65caa9 *icon.svg
45
45
  7370fd8aafe94e11442f61b8f4c2f272ef8f817adf217ee1f460516bec1f4067 *lib\client.js
46
- 7decedb0e8939d2b9ea8b6cdfd43e2c902b6c4305faf9937dc82513467f88aef *lib\index.js
46
+ 4544a13a98dbc610609c2191a482382e54f8df0ba5473b86970f735451570911 *lib\index.js
47
47
  0794a24c333ef529e56c6eb7b1dee62f4f5b8da1c56fe001885824ce2a3f8b2f *LICENSE
48
48
  de949631618eb48bf5cd6c06698a28214c8e9cb4bca23d298cd89462f4fb260e *locale\en.json
49
49
  e931cfb8c9b64aa4e01363e603537afee392e8309fe07daaff3e07e028ab8010 *locale\zh.json
50
- a91e630589de2f3d9c40a53dce6295261b8acbab840cf32dd295ec19bdec3290 *package.json
50
+ b9a679a61c010ee9cbaf64838a412b65060508f03ba6fdc43629b33e91e75480 *package.json
51
51
  8fa6aff9fa2ab7eb11cc813c7ed9cda2b9ae7757c039aad8d71d5b56b5b683d9 *patch\asar.py
52
52
  c9400731101b46a609b9318b8da85e2dfb00ceaa2d65c7e69f7d513c549b0e3c *patch\patcher.py
53
- 856331753cbade56832ab3f4744ee696478edb258c07c6f48d8d6d4fd47a3d40 *README.md
53
+ bf2a302700994af5ff4c999ce3b6972d301beebecafe32e41d15a046a79cf3af *README.md
54
54
  8978acd5618d9148ca20804d823af6decb0b20af4569b39e8a641f559277db0c *TEST-REPORT.md
55
55
  73ac5fa42ee7de25615deb7315de7e2609f76b52e636b6a03397c7203bf17bc2 *tools\build_assets.py
56
56
  a8c0badcd2e0cac12cf03528a892c51ec1e6cbde0352ebfb5d5243cbe1f59f8e *tools\build_client.py
package/lib/index.js CHANGED
@@ -17,7 +17,8 @@ import { fileURLToPath } from 'node:url';
17
17
  const requireFromHere = createRequire(import.meta.url);
18
18
 
19
19
  const ROOT = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
20
- const VERSION = '3.1.4';
20
+ const VERSION = '3.1.5';
21
+ let restartPrompted = false;
21
22
  const INSTALL = path.join(process.env.LOCALAPPDATA || '', 'Programs', 'DeepSeek Harness');
22
23
  const DEFAULT_RESOURCES = process.env.HEIMDALL_RESOURCES
23
24
  || (typeof process.resourcesPath === 'string' && /[\\/]resources$/i.test(process.resourcesPath)
@@ -395,11 +396,8 @@ export function apply(ctx) {
395
396
  writeState({ desired: 'on', pluginVersion: VERSION });
396
397
  const state = readState();
397
398
  const isPatched = state.status === 'patched';
398
- const marker = path.join(STATE_DIR, 'restart-confirm.pid');
399
- const alreadyAsked = fs.existsSync(marker)
400
- && fs.readFileSync(marker, 'utf8').trim() === String(process.pid);
401
- if (!isPatched && !alreadyAsked) {
402
- fs.writeFileSync(marker, String(process.pid), 'utf8');
399
+ if (!isPatched && !restartPrompted) {
400
+ restartPrompted = true;
403
401
  arm(true);
404
402
  askRestartConfirmation(writeRestartScript());
405
403
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-snowbreak-heimdall",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "《尘白禁区》海姆达尔终端 / 世界树公司源码级皮肤:加载画面、双主题、菜单/侧栏/图标,插件仅在加载后播放启动动画。Windows / DSH 0.2.2-rc.1。",
5
5
  "type": "module",
6
6
  "license": "MIT",