dsh-plugin-memory 0.17.7 → 0.17.9
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 +13 -0
- package/docs/market/index.json +2 -2
- package/lib/client.js +19 -11
- package/package.json +1 -1
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.9] - 2026-11-06
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **「保存人格」按钮在深色主题下变成全白块**:按钮背景用了 `--dsw-alias-brand-primary`(深色主题映射为白色),文字又是写死的白色 → 白底白字。改为与宿主一致的反色主按钮:主文字色填充 + 背景色文字(深色主题=浅底深字、浅色主题=深底浅字)。
|
|
10
|
+
|
|
11
|
+
## [0.17.8] - 2026-11-06
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **开关改为跟随宿主的白/黑反转样式**:开启态轨道用主文字色(深色主题=白、浅色主题=黑)、滑块用背景色反色,不再使用品牌蓝;关闭态灰轨道 + 次要文字色滑块。
|
|
16
|
+
- **侧栏「记忆」多出一个齿轮图标**:DSH 设置导航行内的默认图标是**嵌套 SVG**,旧的隐藏规则只匹配直接子 `svg`,所以齿轮没被藏住、又叠了我们的脑图标;改为隐藏行内所有 `svg`,只保留自定义图标。
|
|
17
|
+
|
|
5
18
|
## [0.17.7] - 2026-11-06
|
|
6
19
|
|
|
7
20
|
### Fixed
|
package/docs/market/index.json
CHANGED
package/lib/client.js
CHANGED
|
@@ -493,12 +493,12 @@ window.__ModuleLoader__.load({
|
|
|
493
493
|
borderRadius: '11px',
|
|
494
494
|
border: 'none',
|
|
495
495
|
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
496
|
-
//
|
|
497
|
-
//
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
boxShadow:
|
|
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
|
+
background: checked
|
|
499
|
+
? 'var(--dsw-alias-label-primary, #1f2328)'
|
|
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)',
|
|
502
502
|
opacity: disabled ? 0.5 : 1,
|
|
503
503
|
transition: 'background 0.15s',
|
|
504
504
|
flexShrink: 0,
|
|
@@ -511,7 +511,11 @@ window.__ModuleLoader__.load({
|
|
|
511
511
|
width: '18px',
|
|
512
512
|
height: '18px',
|
|
513
513
|
borderRadius: '9px',
|
|
514
|
-
|
|
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)',
|
|
515
519
|
boxShadow: '0 1px 2px rgba(0,0,0,0.35)',
|
|
516
520
|
transition: 'left 0.15s',
|
|
517
521
|
},
|
|
@@ -901,9 +905,13 @@ window.__ModuleLoader__.load({
|
|
|
901
905
|
fontSize: '13px',
|
|
902
906
|
lineHeight: '18px',
|
|
903
907
|
borderRadius: '6px',
|
|
904
|
-
border: '1px solid
|
|
905
|
-
|
|
906
|
-
|
|
908
|
+
border: '1px solid transparent',
|
|
909
|
+
// Host-style inverted primary button: label-primary fill with a
|
|
910
|
+
// background-coloured label. Dark theme = light button + dark text,
|
|
911
|
+
// light theme = dark button + light text. Brand-primary maps to white
|
|
912
|
+
// on dark themes, which turned this into an unreadable white block.
|
|
913
|
+
background: 'var(--dsw-alias-label-primary, #1f2328)',
|
|
914
|
+
color: 'var(--dsw-alias-bg-layer-1, #ffffff)',
|
|
907
915
|
cursor: busy ? 'not-allowed' : 'pointer',
|
|
908
916
|
opacity: busy ? 0.6 : 1,
|
|
909
917
|
},
|
|
@@ -2427,7 +2435,7 @@ window.__ModuleLoader__.load({
|
|
|
2427
2435
|
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>`
|
|
2428
2436
|
const brainCircuitMaskUrl = (svg = brainCircuitSvg()) => `data:image/svg+xml,${encodeURIComponent(svg)}`
|
|
2429
2437
|
const navIconCss = (maskUrl) => [
|
|
2430
|
-
`[${NAV_ICON_ATTR}]
|
|
2438
|
+
`[${NAV_ICON_ATTR}] svg { display: none; }`,
|
|
2431
2439
|
`[${NAV_ICON_ATTR}]::before {`,
|
|
2432
2440
|
` content: '';`,
|
|
2433
2441
|
` 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.
|
|
4
|
+
"version": "0.17.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|