dsh-snowbreak-heimdall 3.7.1 → 3.7.2

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.
@@ -1,111 +1,101 @@
1
- /* ==========================================================================
2
- HEIMDALL TERMINAL // worldbuilding extras
3
- The HUD is a normal block inside the sidebar flow, placed just above the
4
- account block. It is never fixed and never carries a stacking order, so it
5
- cannot cover a menu, a popover, or the account row.
6
- ========================================================================== */
7
- #hm-extras{
8
- display:block;padding:6px 14px 8px;margin:0;
9
- border-top:1px solid rgba(47,106,142,.18);
10
- font-family:"Bahnschrift","Noto Sans SC","Segoe UI",sans-serif;
11
- color:#4A5A69;user-select:none;pointer-events:none;
12
- }
13
- #hm-extras .hm-hud__link{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:.13em}
14
- #hm-extras .hm-hud__link i{width:4px;height:4px;background:#2F6A8E;flex:0 0 auto;
15
- animation:hm-link-pulse 2.4s ease-in-out infinite}
16
- #hm-extras .hm-hud__link span{opacity:.82}
17
- #hm-extras .hm-hud__link b{font-weight:600;color:#2F6A8E;letter-spacing:.1em}
18
- @keyframes hm-link-pulse{0%,100%{opacity:.35}50%{opacity:1}}
19
-
20
- #hm-extras .hm-hud__env{display:flex;justify-content:space-between;align-items:baseline;
21
- gap:8px;margin-top:5px}
22
- #hm-extras .hm-hud__env div{display:flex;align-items:baseline;gap:3px;min-width:0}
23
- #hm-extras .hm-hud__env span{font-size:8px;letter-spacing:.08em;opacity:.8;white-space:nowrap}
24
- #hm-extras .hm-hud__env b{font-family:"Consolas",monospace;font-size:10px;font-weight:500;
25
- color:#22303D;font-variant-numeric:tabular-nums}
26
- #hm-extras .hm-hud__env em{font-size:7px;font-style:normal;opacity:.7}
27
-
28
- body[data-ds-dark-theme] #hm-extras{color:#A8B6C4;border-top-color:rgba(127,178,208,.16)}
29
- body[data-ds-dark-theme] #hm-extras .hm-hud__env b{color:#E2EBF3}
30
- body[data-ds-dark-theme] #hm-extras .hm-hud__link b{color:#8FBEDA}
31
- body[data-ds-dark-theme] #hm-extras .hm-hud__link i{background:#8FBEDA}
32
-
33
- /* ------------------------------------------------ 1 接入记录编号 / 2 密级 */
34
- .hm-row-code{
35
- display:inline-block;margin-right:5px;font-family:"Consolas",monospace;
36
- font-size:7.5px;letter-spacing:.04em;opacity:.55;vertical-align:middle;
37
- }
38
- .hm-row-level{
39
- display:inline-block;margin-right:6px;padding:0 3px;border:1px solid currentColor;
40
- border-radius:2px;font-size:7px;line-height:10px;letter-spacing:.04em;
41
- opacity:.55;vertical-align:middle;
42
- }
43
- .hm-row-level--2,.hm-row-level--3{opacity:.85;color:#A9481F}
44
- body[data-ds-dark-theme] .hm-row-level--2,
45
- body[data-ds-dark-theme] .hm-row-level--3{color:#D97745}
46
-
47
- /* -------------------------------- 2 零区污染度(真实上下文占用,分级着色) */
48
- button[data-hm-contam="high"]{color:#C2542A}
49
- button[data-hm-contam="critical"]{color:#D04A2A}
50
- #hm-extras[data-hm-stage="high"] .hm-hud__link b{color:#C2542A}
51
- #hm-extras[data-hm-stage="high"] .hm-hud__link i{background:#C2542A}
52
- #hm-extras[data-hm-stage="critical"] .hm-hud__link b{color:#D04A2A;animation:hm-contam-pulse 1.6s ease-in-out infinite}
53
- #hm-extras[data-hm-stage="critical"] .hm-hud__link i{background:#D04A2A}
54
- body[data-ds-dark-theme] #hm-extras[data-hm-stage="high"] .hm-hud__link b,
55
- body[data-ds-dark-theme] #hm-extras[data-hm-stage="critical"] .hm-hud__link b{color:#E08A55}
56
- @keyframes hm-contam-pulse{0%,100%{opacity:.6}50%{opacity:1}}
57
-
58
- /* ------------------------------------------- 5 世界树授权编号(审批卡片) */
59
- .hm-auth-code{
60
- margin-left:auto;font-family:"Consolas",monospace;font-size:8px;
61
- letter-spacing:.1em;opacity:.5;color:#A9481F;
62
- }
63
- body[data-ds-dark-theme] .hm-auth-code{color:#D97745;opacity:.72}
64
-
65
- /* ------------------------------------------------------------ 8 加密闪烁 */
66
- .hm-encrypt{
67
- position:fixed;left:50%;bottom:104px;transform:translateX(-50%);
68
- z-index:5;pointer-events:none;
69
- font-family:"Consolas",monospace;font-size:9px;letter-spacing:.34em;
70
- color:#2F6A8E;opacity:0;transition:opacity .12s ease;
71
- }
72
- .hm-encrypt.is-on{opacity:.9}
73
- body[data-ds-dark-theme] .hm-encrypt{color:#7FB2D0}
74
-
75
- /* ------------------------------------------------------------ 7 空闲呼吸 */
76
- html[data-hm-idle] #hm-ui-chrome .hm-ui-watermark{animation:hm-drift-a 16s ease-in-out infinite alternate}
77
- html[data-hm-idle] #hm-ui-chrome .hm-ui-grid{animation:hm-drift-b 22s ease-in-out infinite alternate}
78
- @keyframes hm-drift-a{from{transform:translate(0,0)}to{transform:translate(-14px,-10px) scale(1.02)}}
79
- @keyframes hm-drift-b{from{transform:translate(0,0)}to{transform:translate(10px,6px)}}
80
-
81
- /* -------------------------------------------------------------- 6 夜战模式 */
82
- html[data-hm-night] #root{filter:brightness(.9) saturate(.88) contrast(1.02)}
83
- html[data-hm-night] #hm-ui-chrome .hm-ui-scan{opacity:.55;animation-duration:11s}
84
- html[data-hm-night] #hm-extras .hm-hud__link b{color:#D97745}
85
- html[data-hm-night] #hm-extras .hm-hud__link i{background:#D97745}
86
-
87
- /* ------------------------------------------------------- 10 启动层进度条 */
88
- .hm-boot-progress{
89
- position:absolute;left:48px;right:48px;bottom:44px;z-index:3;
90
- display:flex;align-items:center;gap:14px;
91
- font-family:"Bahnschrift","Consolas",monospace;
92
- }
93
- .hm-boot-progress i{position:relative;flex:1;height:1px;background:rgba(127,178,208,.18)}
94
- .hm-boot-progress i::after{
95
- content:"";position:absolute;left:0;top:-1px;height:3px;width:var(--hm-p,0);
96
- background:linear-gradient(90deg,rgba(127,178,208,.2),#7FB2D0);
97
- transition:width .18s linear;
98
- }
99
- .hm-boot-progress__num{
100
- font-size:12px;letter-spacing:.12em;color:#E6EEF5;font-variant-numeric:tabular-nums;
101
- min-width:44px;text-align:right;
102
- }
103
- .hm-boot-progress__tag{
104
- font-family:"Noto Sans SC",sans-serif;font-size:10px;letter-spacing:.16em;
105
- color:#7E8E9E;min-width:132px;
106
- }
107
- @media (prefers-color-scheme: light){
108
- .hm-boot-progress__num{color:#101820}
109
- .hm-boot-progress i{background:rgba(47,106,142,.2)}
110
- .hm-boot-progress i::after{background:linear-gradient(90deg,rgba(47,106,142,.25),#2F6A8E)}
111
- }
1
+ /* ==========================================================================
2
+ HEIMDALL TERMINAL // worldbuilding extras
3
+ The HUD is a normal block inside the sidebar flow, placed just above the
4
+ account block. It is never fixed and never carries a stacking order, so it
5
+ cannot cover a menu, a popover, or the account row.
6
+ ========================================================================== */
7
+ #hm-extras{
8
+ display:block;padding:6px 14px 8px;margin:0;
9
+ border-top:1px solid rgba(47,106,142,.18);
10
+ font-family:"Bahnschrift","Noto Sans SC","Segoe UI",sans-serif;
11
+ color:#4A5A69;user-select:none;pointer-events:none;
12
+ }
13
+ #hm-extras .hm-hud__link{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:.13em}
14
+ #hm-extras .hm-hud__link i{width:4px;height:4px;background:#2F6A8E;flex:0 0 auto;
15
+ animation:hm-link-pulse 2.4s ease-in-out infinite}
16
+ #hm-extras .hm-hud__link span{opacity:.82}
17
+ #hm-extras .hm-hud__link b{font-weight:600;color:#2F6A8E;letter-spacing:.1em}
18
+ @keyframes hm-link-pulse{0%,100%{opacity:.35}50%{opacity:1}}
19
+
20
+ #hm-extras .hm-hud__env{display:flex;justify-content:space-between;align-items:baseline;
21
+ gap:8px;margin-top:5px}
22
+ #hm-extras .hm-hud__env div{display:flex;align-items:baseline;gap:3px;min-width:0}
23
+ #hm-extras .hm-hud__env span{font-size:8px;letter-spacing:.08em;opacity:.8;white-space:nowrap}
24
+ #hm-extras .hm-hud__env b{font-family:"Consolas",monospace;font-size:10px;font-weight:500;
25
+ color:#22303D;font-variant-numeric:tabular-nums}
26
+ #hm-extras .hm-hud__env em{font-size:7px;font-style:normal;opacity:.7}
27
+
28
+ body[data-ds-dark-theme] #hm-extras{color:#A8B6C4;border-top-color:rgba(127,178,208,.16)}
29
+ body[data-ds-dark-theme] #hm-extras .hm-hud__env b{color:#E2EBF3}
30
+ body[data-ds-dark-theme] #hm-extras .hm-hud__link b{color:#8FBEDA}
31
+ body[data-ds-dark-theme] #hm-extras .hm-hud__link i{background:#8FBEDA}
32
+
33
+ /* ------------------------------------------------ 1 接入记录编号 / 2 密级 */
34
+ .hm-row-code{
35
+ display:inline-block;margin-right:5px;font-family:"Consolas",monospace;
36
+ font-size:7.5px;letter-spacing:.04em;opacity:.55;vertical-align:middle;
37
+ }
38
+ .hm-row-level{
39
+ display:inline-block;margin-right:6px;padding:0 3px;border:1px solid currentColor;
40
+ border-radius:2px;font-size:7px;line-height:10px;letter-spacing:.04em;
41
+ opacity:.55;vertical-align:middle;
42
+ }
43
+ .hm-row-level--2,.hm-row-level--3{opacity:.85;color:#A9481F}
44
+ body[data-ds-dark-theme] .hm-row-level--2,
45
+ body[data-ds-dark-theme] .hm-row-level--3{color:#D97745}
46
+
47
+ /* -------------------------------- 2 零区污染度(真实上下文占用,分级着色) */
48
+ button[data-hm-contam="high"]{color:#C2542A}
49
+ button[data-hm-contam="critical"]{color:#D04A2A}
50
+ #hm-extras[data-hm-stage="high"] .hm-hud__link b{color:#C2542A}
51
+ #hm-extras[data-hm-stage="high"] .hm-hud__link i{background:#C2542A}
52
+ #hm-extras[data-hm-stage="critical"] .hm-hud__link b{color:#D04A2A;animation:hm-contam-pulse 1.6s ease-in-out infinite}
53
+ #hm-extras[data-hm-stage="critical"] .hm-hud__link i{background:#D04A2A}
54
+ body[data-ds-dark-theme] #hm-extras[data-hm-stage="high"] .hm-hud__link b,
55
+ body[data-ds-dark-theme] #hm-extras[data-hm-stage="critical"] .hm-hud__link b{color:#E08A55}
56
+ @keyframes hm-contam-pulse{0%,100%{opacity:.6}50%{opacity:1}}
57
+
58
+ /* ------------------------------------------- 5 世界树授权编号(审批卡片) */
59
+ .hm-auth-code{
60
+ margin-left:auto;font-family:"Consolas",monospace;font-size:8px;
61
+ letter-spacing:.1em;opacity:.5;color:#A9481F;
62
+ }
63
+ body[data-ds-dark-theme] .hm-auth-code{color:#D97745;opacity:.72}
64
+
65
+ /* ------------------------------------------------------------ 7 空闲呼吸 */
66
+ html[data-hm-idle] #hm-ui-chrome .hm-ui-watermark{animation:hm-drift-a 16s ease-in-out infinite alternate}
67
+ html[data-hm-idle] #hm-ui-chrome .hm-ui-grid{animation:hm-drift-b 22s ease-in-out infinite alternate}
68
+ @keyframes hm-drift-a{from{transform:translate(0,0)}to{transform:translate(-14px,-10px) scale(1.02)}}
69
+ @keyframes hm-drift-b{from{transform:translate(0,0)}to{transform:translate(10px,6px)}}
70
+
71
+ /* -------------------------------------------------------------- 6 夜战模式 */
72
+ html[data-hm-night] #root{filter:brightness(.9) saturate(.88) contrast(1.02)}
73
+ html[data-hm-night] #hm-ui-chrome .hm-ui-scan{opacity:.55;animation-duration:11s}
74
+ html[data-hm-night] #hm-extras .hm-hud__link b{color:#D97745}
75
+ html[data-hm-night] #hm-extras .hm-hud__link i{background:#D97745}
76
+
77
+ /* ------------------------------------------------------- 10 启动层进度条 */
78
+ .hm-boot-progress{
79
+ position:absolute;left:48px;right:48px;bottom:44px;z-index:3;
80
+ display:flex;align-items:center;gap:14px;
81
+ font-family:"Bahnschrift","Consolas",monospace;
82
+ }
83
+ .hm-boot-progress i{position:relative;flex:1;height:1px;background:rgba(127,178,208,.18)}
84
+ .hm-boot-progress i::after{
85
+ content:"";position:absolute;left:0;top:-1px;height:3px;width:var(--hm-p,0);
86
+ background:linear-gradient(90deg,rgba(127,178,208,.2),#7FB2D0);
87
+ transition:width .18s linear;
88
+ }
89
+ .hm-boot-progress__num{
90
+ font-size:12px;letter-spacing:.12em;color:#E6EEF5;font-variant-numeric:tabular-nums;
91
+ min-width:44px;text-align:right;
92
+ }
93
+ .hm-boot-progress__tag{
94
+ font-family:"Noto Sans SC",sans-serif;font-size:10px;letter-spacing:.16em;
95
+ color:#7E8E9E;min-width:132px;
96
+ }
97
+ @media (prefers-color-scheme: light){
98
+ .hm-boot-progress__num{color:#101820}
99
+ .hm-boot-progress i{background:rgba(47,106,142,.2)}
100
+ .hm-boot-progress i::after{background:linear-gradient(90deg,rgba(47,106,142,.25),#2F6A8E)}
101
+ }
@@ -1,7 +1,7 @@
1
1
  /* ==========================================================================
2
2
  HEIMDALL TERMINAL // worldbuilding extras
3
3
  1 接入记录编号 2 档案密级角标 3 战术链接状态条 4 权限身份行
4
- 5 零区环境数据 6 夜战模式 7 空闲呼吸 8 加密微动画
4
+ 5 零区环境数据 6 夜战模式 7 空闲呼吸
5
5
  9 错误措辞 10 启动层真实进度
6
6
 
7
7
  Rules learned the hard way:
@@ -351,31 +351,6 @@
351
351
  }
352
352
  }
353
353
 
354
- /* ---------------------------------------------------------- 8 加密闪烁 */
355
- var encryptEl = null;
356
- function flashEncrypt() {
357
- if (!flag("encrypt", true)) return;
358
- if (!encryptEl) {
359
- encryptEl = doc.createElement("div");
360
- encryptEl.className = "hm-encrypt";
361
- encryptEl.textContent = "ENCRYPTING…";
362
- doc.body.appendChild(encryptEl);
363
- }
364
- encryptEl.classList.add("is-on");
365
- setTimeout(function () { encryptEl.classList.remove("is-on"); }, 220);
366
- }
367
- doc.addEventListener("click", function (e) {
368
- var el = e.target;
369
- if (!el || !el.closest || !el.closest("button")) return;
370
- var label = (el.textContent || "").trim();
371
- if (label === "执行" || label === "发送" || el.getAttribute("aria-label") === "发送") flashEncrypt();
372
- }, true);
373
- doc.addEventListener("keydown", function (e) {
374
- if (e.key !== "Enter" || e.shiftKey) return;
375
- var t = e.target;
376
- if (t && (t.tagName === "TEXTAREA" || t.getAttribute("contenteditable") === "true")) flashEncrypt();
377
- }, true);
378
-
379
354
  /* ---------------------------------------------------------- 9 错误措辞 */
380
355
  var ERR = [
381
356
  [/Failed to fetch/i, "链路中断 · 检查网络"],
package/lib/index.js CHANGED
@@ -17,7 +17,7 @@ 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.7.1';
20
+ const VERSION = '3.7.2';
21
21
  let restartPrompted = false;
22
22
  const INSTALL = path.join(process.env.LOCALAPPDATA || '', 'Programs', 'DeepSeek Harness');
23
23
  const DEFAULT_RESOURCES = process.env.HEIMDALL_RESOURCES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-snowbreak-heimdall",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "description": "《尘白禁区》海姆达尔终端 / 世界树公司源码级皮肤:加载画面、双主题、菜单/侧栏/图标,插件仅在加载后播放启动动画。Windows / DSH 0.2.2-rc.x。",
5
5
  "type": "module",
6
6
  "license": "MIT",