@alanzhao/dsh-memory-lite 0.3.3 → 0.3.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/lib/client.js +27 -7
- package/package.json +3 -2
package/lib/client.js
CHANGED
|
@@ -22,6 +22,12 @@ window.__ModuleLoader__.load({
|
|
|
22
22
|
const { jsx, jsxs } = require('react/jsx-runtime');
|
|
23
23
|
const { useCallback, useEffect, useState } = require('react');
|
|
24
24
|
|
|
25
|
+
let Tooltip = null;
|
|
26
|
+
try {
|
|
27
|
+
const primitives = require('@deepseek-ai/dsh-client-ui-primitives');
|
|
28
|
+
if (primitives && primitives.Tooltip) Tooltip = primitives.Tooltip;
|
|
29
|
+
} catch (_) {}
|
|
30
|
+
|
|
25
31
|
const POLL_MS = 10000;
|
|
26
32
|
const LABEL = 'memory-lite';
|
|
27
33
|
const NS = 'dsh-memory-lite';
|
|
@@ -94,20 +100,34 @@ window.__ModuleLoader__.load({
|
|
|
94
100
|
|
|
95
101
|
// The header utilities row is horizontal; match the 32px capsule chrome
|
|
96
102
|
// of the built-in "Session log" button so the pair reads as one cluster.
|
|
97
|
-
|
|
103
|
+
const capsule = jsx('div', {
|
|
98
104
|
style: {
|
|
99
105
|
display: 'inline-flex', alignItems: 'center', gap: 6,
|
|
100
106
|
height: 32, padding: '0 12px', boxSizing: 'border-box',
|
|
101
107
|
borderRadius: 18, border: '1px solid var(--dsw-alias-border-l2)',
|
|
102
108
|
background: 'transparent', cursor: 'default', flexShrink: 0,
|
|
103
|
-
whiteSpace: 'nowrap',
|
|
109
|
+
whiteSpace: 'nowrap', WebkitAppRegion: 'no-drag',
|
|
104
110
|
},
|
|
105
|
-
title,
|
|
106
|
-
children: [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
111
|
+
...(Tooltip ? {} : { title }),
|
|
112
|
+
children: [
|
|
113
|
+
jsx('span', {
|
|
114
|
+
style: { fontSize: 12, lineHeight: '20px', color: 'var(--dsw-alias-label-tertiary)' },
|
|
115
|
+
children: LABEL,
|
|
116
|
+
}),
|
|
117
|
+
dot,
|
|
118
|
+
],
|
|
110
119
|
});
|
|
120
|
+
|
|
121
|
+
if (Tooltip) {
|
|
122
|
+
return jsx(Tooltip, {
|
|
123
|
+
label: title,
|
|
124
|
+
side: 'bottom',
|
|
125
|
+
delayMs: 300,
|
|
126
|
+
children: capsule,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return capsule;
|
|
111
131
|
}
|
|
112
132
|
|
|
113
133
|
// ---- settings page (方案 A §16) ----
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alanzhao/dsh-memory-lite",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Lightweight zero-dependency memory plugin for DeepSeek Harness: Markdown-file memory store, L0 catalog injection, and 5 model-facing tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"@deepseek-ai/dsh-client-runtime",
|
|
43
43
|
"@deepseek-ai/dsh-client-connection",
|
|
44
44
|
"@deepseek-ai/dsh-client-locale",
|
|
45
|
-
"@deepseek-ai/dsh-client-ui-settings"
|
|
45
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-primitives"
|
|
46
47
|
],
|
|
47
48
|
"platform": "web"
|
|
48
49
|
}
|