dsh-plugin-memory 0.17.6 → 0.17.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  所有记录跟随 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/) 风格;版本号与 `package.json` 保持一致。
4
4
 
5
+ ## [0.17.8] - 2026-11-06
6
+
7
+ ### Fixed
8
+
9
+ - **开关改为跟随宿主的白/黑反转样式**:开启态轨道用主文字色(深色主题=白、浅色主题=黑)、滑块用背景色反色,不再使用品牌蓝;关闭态灰轨道 + 次要文字色滑块。
10
+ - **侧栏「记忆」多出一个齿轮图标**:DSH 设置导航行内的默认图标是**嵌套 SVG**,旧的隐藏规则只匹配直接子 `svg`,所以齿轮没被藏住、又叠了我们的脑图标;改为隐藏行内所有 `svg`,只保留自定义图标。
11
+
12
+ ## [0.17.7] - 2026-11-06
13
+
14
+ ### Fixed
15
+
16
+ - **深色主题开关在全白的问题(第二版)**:深色主题把 `--dsw-alias-brand-primary` 映射成白色、边框 token 也是半透明白,所以「主题 token」方案仍会全白。改为**固定色**:关闭态灰轨道(`rgba(128,128,128,0.5)`)、开启态品牌蓝(`#4c8bf5`)、滑块白色 + 阴影与内描边,明暗主题都清晰可辨。
17
+
5
18
  ## [0.17.6] - 2026-11-06
6
19
 
7
20
  ### Fixed
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "versions": [
28
28
  {
29
- "version": "0.17.5",
30
- "publishTimestamp": 1793859485,
29
+ "version": "0.17.7",
30
+ "publishTimestamp": 1793957459,
31
31
  "source": {
32
32
  "type": "npm"
33
33
  },
package/lib/client.js CHANGED
@@ -493,11 +493,12 @@ window.__ModuleLoader__.load({
493
493
  borderRadius: '11px',
494
494
  border: 'none',
495
495
  cursor: disabled ? 'not-allowed' : 'pointer',
496
- // Off track: a neutral border token (a text token turns near-white in
497
- // dark themes, which made the whole switch glow). On track: brand blue.
496
+ // Mirror the host switch: on = label-primary track (white in dark themes,
497
+ // black in light themes), off = neutral border track. No brand blue.
498
498
  background: checked
499
- ? 'var(--dsw-alias-brand-primary, #4c8bf5)'
499
+ ? 'var(--dsw-alias-label-primary, #1f2328)'
500
500
  : 'var(--dsw-alias-border-l2, rgba(128,128,128,0.45))',
501
+ boxShadow: 'inset 0 0 0 1px rgba(128,128,128,0.35)',
501
502
  opacity: disabled ? 0.5 : 1,
502
503
  transition: 'background 0.15s',
503
504
  flexShrink: 0,
@@ -510,7 +511,12 @@ window.__ModuleLoader__.load({
510
511
  width: '18px',
511
512
  height: '18px',
512
513
  borderRadius: '9px',
513
- background: '#fff',
514
+ // Knob is the inverse of the track: dark on the white (dark-theme) track,
515
+ // light on the black (light-theme) track.
516
+ background: checked
517
+ ? 'var(--dsw-alias-bg-layer-1, #1f2328)'
518
+ : 'var(--dsw-alias-label-secondary, #888)',
519
+ boxShadow: '0 1px 2px rgba(0,0,0,0.35)',
514
520
  transition: 'left 0.15s',
515
521
  },
516
522
  }))
@@ -2425,7 +2431,7 @@ window.__ModuleLoader__.load({
2425
2431
  const brainCircuitSvg = () => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="${ICON_MEDIUM_STROKE}" stroke-linecap="round" stroke-linejoin="round">${BRAIN_CIRCUIT_PATHS.map((p) => (p.kind === 'circle' ? `<circle cx="${p.cx}" cy="${p.cy}" r="${p.r}"/>` : `<path d="${p.d}"/>`)).join('')}</svg>`
2426
2432
  const brainCircuitMaskUrl = (svg = brainCircuitSvg()) => `data:image/svg+xml,${encodeURIComponent(svg)}`
2427
2433
  const navIconCss = (maskUrl) => [
2428
- `[${NAV_ICON_ATTR}] > svg { display: none; }`,
2434
+ `[${NAV_ICON_ATTR}] svg { display: none; }`,
2429
2435
  `[${NAV_ICON_ATTR}]::before {`,
2430
2436
  ` content: '';`,
2431
2437
  ` flex: none;`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-plugin-memory",
3
3
  "description": "Long-term memory plugin for DeepSeek Harness: persistent cross-session markdown memory with a soul/persona file, auto-injected at every session start, plus remember/recall/consolidate/forget workflows and portable migration tooling.",
4
- "version": "0.17.6",
4
+ "version": "0.17.8",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",