dsh-snowbreak-heimdall 3.0.2 → 3.0.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/README.md +6 -5
- package/SHA256SUMS.txt +3 -3
- package/lib/index.js +41 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# 雪境 Heimdall Terminal
|
|
2
2
|
|
|
3
3
|
> 《尘白禁区》风格的 DeepSeek Harness **源码层皮肤**。
|
|
4
4
|
> 加载画面、主题、菜单、品牌、图标、欢迎页/更新页与主界面文案由 `app.asar` 和安装目录负责;插件只保留启动动画。
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
## 当前状态
|
|
9
9
|
|
|
10
|
-
- 插件:`dsh-snowbreak-heimdall@3.0.
|
|
10
|
+
- 插件:`dsh-snowbreak-heimdall@3.0.3`,profile `desktop` 已启用。
|
|
11
11
|
- 当前运行:`142164e9…9555`
|
|
12
12
|
- `reapply=false`,这一版已经应用完成;**不需要再退出或重写 asar**。
|
|
13
|
-
-
|
|
13
|
+
- **安装/启用后立即弹出原生 Windows 提示**:检测平台与 DSH 运行状态,提示「需要完全退出 DSH」;不依赖前端 HMR,客户端未刷新也会弹。
|
|
14
14
|
- `探索未至之境` → `接入零区`
|
|
15
15
|
- DSH 鲸鱼图标 → 世界树 mark
|
|
16
16
|
- `预览版` → `战术预览`
|
|
@@ -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.0.
|
|
103
|
+
2. 在 DSH 插件管理器/安装指令中安装 npm 包 `dsh-snowbreak-heimdall@3.0.3`;安装后启用插件。
|
|
104
104
|
也可以手动把包安装到 profile 后加入 `dsh.profile.bundles`。
|
|
105
105
|
3. 启用插件,然后完整退出 DSH;helper 才会写入源码层。
|
|
106
106
|
4. Windows 用户;DSH 安装目录可写(默认 `%LOCALAPPDATA%\Programs\DeepSeek Harness`,自定义路径可设 `HEIMDALL_TARGET` / `HEIMDALL_RESOURCES`)。
|
|
@@ -177,4 +177,5 @@ snowbreak-heimdall/
|
|
|
177
177
|
|
|
178
178
|
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
|
|
181
|
+
|
package/SHA256SUMS.txt
CHANGED
|
@@ -42,14 +42,14 @@ aef34c1fed4a009a78955f5316b999bbd157fd082d7441d34852d32f0a481c28 *assets\source\
|
|
|
42
42
|
2a0b4b9c68d5f4b87bb8fbb768a1933c40394fe4e6f23c144fae88052ebe4a02 *cordis.patch.yml
|
|
43
43
|
065af22a9be00dc76ce08bc647814d33da2779e937db6c5fa4ea0dcb8c65caa9 *icon.svg
|
|
44
44
|
ee9d6f7d37e0651950c9e7434060e784df0243165b0dfe64533436fe337ce8c9 *lib\client.js
|
|
45
|
-
|
|
45
|
+
1819e609788e3b8820a2e704bc5433975c5e78e3b3e9f1a23ae3a567aced5d39 *lib\index.js
|
|
46
46
|
0794a24c333ef529e56c6eb7b1dee62f4f5b8da1c56fe001885824ce2a3f8b2f *LICENSE
|
|
47
47
|
de949631618eb48bf5cd6c06698a28214c8e9cb4bca23d298cd89462f4fb260e *locale\en.json
|
|
48
48
|
e931cfb8c9b64aa4e01363e603537afee392e8309fe07daaff3e07e028ab8010 *locale\zh.json
|
|
49
|
-
|
|
49
|
+
6191b2f74eaa5609a6c7adde58bc8e6a27d8dab16701f4a0d9183d0580dd1a21 *package.json
|
|
50
50
|
8fa6aff9fa2ab7eb11cc813c7ed9cda2b9ae7757c039aad8d71d5b56b5b683d9 *patch\asar.py
|
|
51
51
|
771e160fc006714e373735a635638d33644eb686e0c7b41478262c136ad70710 *patch\patcher.py
|
|
52
|
-
|
|
52
|
+
b837f61e277dfe26fde48590d3c1b85bf6a23ce1683c0c9967294eb30a5f8c5c *README.md
|
|
53
53
|
8978acd5618d9148ca20804d823af6decb0b20af4569b39e8a641f559277db0c *TEST-REPORT.md
|
|
54
54
|
73ac5fa42ee7de25615deb7315de7e2609f76b52e636b6a03397c7203bf17bc2 *tools\build_assets.py
|
|
55
55
|
a8c0badcd2e0cac12cf03528a892c51ec1e6cbde0352ebfb5d5243cbe1f59f8e *tools\build_client.py
|
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { spawn } from 'node:child_process';
|
|
|
14
14
|
import { fileURLToPath } from 'node:url';
|
|
15
15
|
|
|
16
16
|
const ROOT = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
|
17
|
-
const VERSION = '3.0.
|
|
17
|
+
const VERSION = '3.0.3';
|
|
18
18
|
const INSTALL = path.join(process.env.LOCALAPPDATA || '', 'Programs', 'DeepSeek Harness');
|
|
19
19
|
const DEFAULT_RESOURCES = process.env.HEIMDALL_RESOURCES
|
|
20
20
|
|| (typeof process.resourcesPath === 'string' && /[\\/]resources$/i.test(process.resourcesPath)
|
|
@@ -222,10 +222,50 @@ function arm() {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
+
function psQuote(value) {
|
|
226
|
+
return "'" + String(value).replace(/'/g, "''") + "'";
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function showRestartPrompt() {
|
|
230
|
+
try {
|
|
231
|
+
const state = readState();
|
|
232
|
+
if (state.status === 'patched') return;
|
|
233
|
+
const marker = path.join(STATE_DIR, 'restart-prompt.pid');
|
|
234
|
+
if (fs.existsSync(marker) && fs.readFileSync(marker, 'utf8').trim() === String(process.pid)) return;
|
|
235
|
+
fs.mkdirSync(STATE_DIR, { recursive: true });
|
|
236
|
+
fs.writeFileSync(marker, String(process.pid), 'utf8');
|
|
237
|
+
const text = [
|
|
238
|
+
'安装完成。源码层尚未接入。',
|
|
239
|
+
'',
|
|
240
|
+
'平台:' + process.platform + ' ' + process.arch,
|
|
241
|
+
'DSH:' + (process.versions.electron || 'Electron'),
|
|
242
|
+
'',
|
|
243
|
+
'请完全退出 DSH(托盘退出,不是关闭窗口),再重新打开。',
|
|
244
|
+
'退出后 helper 会写入加载画面、主题、菜单与图标。',
|
|
245
|
+
].join('\n');
|
|
246
|
+
const script = "Add-Type -AssemblyName PresentationFramework; "
|
|
247
|
+
+ "[System.Windows.MessageBox]::Show(" + psQuote(text)
|
|
248
|
+
+ ", '海姆达尔终端 // 需要重启', 'OK', 'Warning') | Out-Null";
|
|
249
|
+
const encoded = Buffer.from(script, 'utf16le').toString('base64');
|
|
250
|
+
const powershell = path.join(
|
|
251
|
+
process.env.SystemRoot || 'C:\\Windows',
|
|
252
|
+
'System32', 'WindowsPowerShell', 'v1.0', 'powershell.exe',
|
|
253
|
+
);
|
|
254
|
+
const child = spawn(powershell, [
|
|
255
|
+
'-NoProfile', '-STA', '-WindowStyle', 'Hidden', '-EncodedCommand', encoded,
|
|
256
|
+
], { detached: true, stdio: 'ignore', windowsHide: true });
|
|
257
|
+
child.unref();
|
|
258
|
+
log('restart prompt shown');
|
|
259
|
+
} catch (error) {
|
|
260
|
+
log('restart prompt failed: ' + error.message);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
225
264
|
export function apply(ctx) {
|
|
226
265
|
try {
|
|
227
266
|
fs.mkdirSync(STATE_DIR, { recursive: true });
|
|
228
267
|
writeState({ desired: 'on', pluginVersion: VERSION });
|
|
268
|
+
showRestartPrompt();
|
|
229
269
|
arm();
|
|
230
270
|
if (ctx && typeof ctx.effect === 'function') {
|
|
231
271
|
ctx.effect(() => () => {
|