icex-dsh-memory 0.2.0 → 0.2.4
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 +1 -0
- package/client.js +280 -0
- package/docs/DETAIL.md +11 -0
- package/index.js +64 -0
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Cross-session memory for DeepSeek Harness, in one host plugin.
|
|
4
4
|
|
|
5
5
|
- **Injected once per session** — a budgeted digest of durable facts enters the context as an inbox message (`agent.inject`), so the system-prompt prefix stays stable and the model can see exactly which memories it received in the session log.
|
|
6
|
+
- **Settings-page editor** — the plugin's page in Plugins shows the current store and lets you edit it, global or per working directory.
|
|
6
7
|
- **One tool, five actions** — `memory` with `add`, `replace`, `forget`, `search`, `list`.
|
|
7
8
|
- **Plain Markdown store** you can read, edit and version: `~/.dsh/memory/MEMORY.md` (global) and `<cwd>/.dsh/memory/MEMORY.md` (per working directory).
|
|
8
9
|
- **Provenance** — every entry carries `src=<session>@<seq>` and a date; memory is an index into the session log, never a replacement for it.
|
package/client.js
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* icex-dsh-memory client bundle: the settings-page editor for the memory store.
|
|
3
|
+
*
|
|
4
|
+
* The Host half serves GET/POST /api/icex-memory (global or project scope); this
|
|
5
|
+
* module renders the textarea and calls it. No build step: the DSH module loader
|
|
6
|
+
* runs the factory and React comes from the platform module table.
|
|
7
|
+
*/
|
|
8
|
+
window.__ModuleLoader__.load({
|
|
9
|
+
id: 'icex-dsh-memory',
|
|
10
|
+
factory(require) {
|
|
11
|
+
const React = require('react')
|
|
12
|
+
const h = React.createElement
|
|
13
|
+
const useEffect = React.useEffect
|
|
14
|
+
const useState = React.useState
|
|
15
|
+
|
|
16
|
+
const PACKAGE = 'icex-dsh-memory'
|
|
17
|
+
const NS = 'icex-dsh-memory'
|
|
18
|
+
|
|
19
|
+
const en = {
|
|
20
|
+
'settings.title': 'Memory',
|
|
21
|
+
'settings.scope': 'Scope',
|
|
22
|
+
'settings.scope.global': 'Global',
|
|
23
|
+
'settings.scope.project': 'Project',
|
|
24
|
+
'settings.dir.label': 'Working directory',
|
|
25
|
+
'settings.dir.placeholder': '/Users/me/codes/project',
|
|
26
|
+
'settings.dir.hint': 'Absolute path, or start with ~/ . The file is <dir>/.dsh/memory/MEMORY.md.',
|
|
27
|
+
'settings.dir.load': 'Load',
|
|
28
|
+
'settings.loading': 'Loading…',
|
|
29
|
+
'settings.saving': 'Saving…',
|
|
30
|
+
'settings.save': 'Save',
|
|
31
|
+
'settings.reload': 'Reload',
|
|
32
|
+
'settings.placeholder': 'One fact per line: - [pref] … <!-- id=… src=… at=… -->',
|
|
33
|
+
'settings.entries': '{count} entries',
|
|
34
|
+
'settings.path': 'File: {path}',
|
|
35
|
+
'settings.saved': 'Saved. New sessions pick it up at startup.',
|
|
36
|
+
'settings.unsaved': 'Unsaved changes.',
|
|
37
|
+
'settings.error': 'Failed: {message}',
|
|
38
|
+
'settings.hint': 'Entries are injected at the start of the next session. Keep one fact per line, at most 200 characters.',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const zh = {
|
|
42
|
+
'settings.title': '记忆',
|
|
43
|
+
'settings.scope': '作用域',
|
|
44
|
+
'settings.scope.global': '全局',
|
|
45
|
+
'settings.scope.project': '项目',
|
|
46
|
+
'settings.dir.label': '工作目录',
|
|
47
|
+
'settings.dir.hint': '绝对路径,可用 ~/ 开头。文件是 <目录>/.dsh/memory/MEMORY.md。',
|
|
48
|
+
'settings.dir.placeholder': '/Users/me/codes/project',
|
|
49
|
+
'settings.dir.load': '读取',
|
|
50
|
+
'settings.loading': '读取中…',
|
|
51
|
+
'settings.saving': '保存中…',
|
|
52
|
+
'settings.save': '保存',
|
|
53
|
+
'settings.reload': '重新读取',
|
|
54
|
+
'settings.placeholder': '一行一条:- [pref] … <!-- id=… src=… at=… -->',
|
|
55
|
+
'settings.entries': '{count} 条',
|
|
56
|
+
'settings.path': '文件:{path}',
|
|
57
|
+
'settings.saved': '已保存,下个会话开始时生效。',
|
|
58
|
+
'settings.unsaved': '有未保存的修改。',
|
|
59
|
+
'settings.error': '失败:{message}',
|
|
60
|
+
'settings.hint': '记忆会在下一个会话开始时注入。一行一条事实,每条不超过 200 字。',
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** Minimal translator with {name} interpolation over the slot's locale texts. */
|
|
64
|
+
function translator(source) {
|
|
65
|
+
const table = source !== null && typeof source === 'object' ? source : en
|
|
66
|
+
return function t(key, values) {
|
|
67
|
+
const template = typeof table[key] === 'string' ? table[key] : key
|
|
68
|
+
if (values === undefined) return template
|
|
69
|
+
return template.replace(/\{(\w+)\}/g, function (match, name) {
|
|
70
|
+
return values[name] === undefined ? match : String(values[name])
|
|
71
|
+
})
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function installStyles() {
|
|
76
|
+
if (typeof document === 'undefined') return function () {}
|
|
77
|
+
const style = document.createElement('style')
|
|
78
|
+
style.dataset.icexMemory = 'true'
|
|
79
|
+
style.textContent = [
|
|
80
|
+
'.icex-memory { display: flex; flex-direction: column; gap: 12px; }',
|
|
81
|
+
'.icex-memory-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }',
|
|
82
|
+
'.icex-memory-tabs { display: inline-flex; border: 1px solid var(--dsw-alias-border-l2); border-radius: var(--dsw-radius-md); overflow: hidden; }',
|
|
83
|
+
'.icex-memory-tab { padding: 4px 12px; border: 0; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; font: inherit; }',
|
|
84
|
+
'.icex-memory-tab[data-active="true"] { background: var(--dsw-alias-state-business-primary); color: var(--dsw-alias-label-on-color); }',
|
|
85
|
+
'.icex-memory-dir { flex: 1 1 240px; min-width: 160px; padding: 5px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: var(--dsw-radius-md); background: var(--dsw-specific-menu); color: var(--dsw-alias-label-primary); font: inherit; }',
|
|
86
|
+
'.icex-memory-text { width: 100%; min-height: 260px; resize: vertical; padding: 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: var(--dsw-radius-md); background: var(--dsw-specific-menu); color: var(--dsw-alias-label-primary); font-family: var(--dsw-font-mono, ui-monospace, monospace); font-size: 12px; line-height: 1.55; white-space: pre; }',
|
|
87
|
+
'.icex-memory-button { padding: 5px 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: var(--dsw-radius-md); background: transparent; color: var(--dsw-alias-label-primary); cursor: pointer; font: inherit; }',
|
|
88
|
+
'.icex-memory-button[data-primary="true"] { background: var(--dsw-alias-state-business-primary); border-color: transparent; color: var(--dsw-alias-label-on-color); }',
|
|
89
|
+
'.icex-memory-button:disabled { opacity: 0.5; cursor: default; }',
|
|
90
|
+
'.icex-memory-meta { color: var(--dsw-alias-label-secondary); font-size: 12px; }',
|
|
91
|
+
'.icex-memory-hint { color: var(--dsw-alias-label-secondary); font-size: 12px; }',
|
|
92
|
+
'.icex-memory-error { color: var(--dsw-alias-state-error-primary); font-size: 12px; }',
|
|
93
|
+
].join('\n')
|
|
94
|
+
document.head.appendChild(style)
|
|
95
|
+
return function () {
|
|
96
|
+
style.remove()
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function MemoryPanel(props) {
|
|
101
|
+
const t = translator(props.t)
|
|
102
|
+
const [scope, setScope] = useState('global')
|
|
103
|
+
const [dir, setDir] = useState(function () {
|
|
104
|
+
try {
|
|
105
|
+
return window.localStorage.getItem('icex-memory.projectDir') ?? ''
|
|
106
|
+
} catch (error) {
|
|
107
|
+
return ''
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
const [text, setText] = useState('')
|
|
111
|
+
const [path, setPath] = useState('')
|
|
112
|
+
const [entries, setEntries] = useState(0)
|
|
113
|
+
const [dirty, setDirty] = useState(false)
|
|
114
|
+
const [busy, setBusy] = useState(false)
|
|
115
|
+
const [message, setMessage] = useState(null)
|
|
116
|
+
|
|
117
|
+
function endpoint() {
|
|
118
|
+
const query = '?scope=' + scope + (scope === 'project' ? '&dir=' + encodeURIComponent(dir) : '')
|
|
119
|
+
return '/api/icex-memory' + query
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async function load() {
|
|
123
|
+
if (scope === 'project' && dir.trim() === '') {
|
|
124
|
+
setMessage(null)
|
|
125
|
+
return
|
|
126
|
+
}
|
|
127
|
+
setBusy(true)
|
|
128
|
+
setMessage(null)
|
|
129
|
+
try {
|
|
130
|
+
if (scope === 'project') {
|
|
131
|
+
try {
|
|
132
|
+
window.localStorage.setItem('icex-memory.projectDir', dir.trim())
|
|
133
|
+
} catch (error) {
|
|
134
|
+
// A blocked localStorage only costs the remembered directory.
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const response = await fetch(endpoint(), { credentials: 'same-origin' })
|
|
138
|
+
const body = await response.json()
|
|
139
|
+
if (body.ok !== true) throw new Error(body.error ?? response.status)
|
|
140
|
+
setText(body.text ?? '')
|
|
141
|
+
setPath(body.path ?? '')
|
|
142
|
+
setEntries(body.entries ?? 0)
|
|
143
|
+
setDirty(false)
|
|
144
|
+
} catch (error) {
|
|
145
|
+
setMessage({ kind: 'error', text: t('settings.error', { message: String(error.message ?? error) }) })
|
|
146
|
+
} finally {
|
|
147
|
+
setBusy(false)
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
async function save() {
|
|
152
|
+
setBusy(true)
|
|
153
|
+
setMessage(null)
|
|
154
|
+
try {
|
|
155
|
+
const response = await fetch(endpoint(), {
|
|
156
|
+
method: 'POST',
|
|
157
|
+
credentials: 'same-origin',
|
|
158
|
+
headers: { 'content-type': 'application/json' },
|
|
159
|
+
body: JSON.stringify({ text }),
|
|
160
|
+
})
|
|
161
|
+
const body = await response.json()
|
|
162
|
+
if (body.ok !== true) throw new Error(body.error ?? response.status)
|
|
163
|
+
setEntries(body.entries ?? 0)
|
|
164
|
+
setPath(body.path ?? path)
|
|
165
|
+
setDirty(false)
|
|
166
|
+
setMessage({ kind: 'ok', text: t('settings.saved') })
|
|
167
|
+
} catch (error) {
|
|
168
|
+
setMessage({ kind: 'error', text: t('settings.error', { message: String(error.message ?? error) }) })
|
|
169
|
+
} finally {
|
|
170
|
+
setBusy(false)
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
useEffect(() => {
|
|
175
|
+
if (scope === 'global') void load()
|
|
176
|
+
}, [scope])
|
|
177
|
+
|
|
178
|
+
if (props.view === 'summary') return null
|
|
179
|
+
|
|
180
|
+
return h('section', { className: 'icex-memory', 'aria-label': t('settings.title') },
|
|
181
|
+
h('div', { className: 'icex-memory-row' },
|
|
182
|
+
h('span', { className: 'icex-memory-meta' }, t('settings.scope')),
|
|
183
|
+
h('div', { className: 'icex-memory-tabs' },
|
|
184
|
+
['global', 'project'].map(function (value) {
|
|
185
|
+
return h('button', {
|
|
186
|
+
key: value,
|
|
187
|
+
type: 'button',
|
|
188
|
+
className: 'icex-memory-tab',
|
|
189
|
+
'data-active': scope === value ? 'true' : 'false',
|
|
190
|
+
onClick: function () {
|
|
191
|
+
setScope(value)
|
|
192
|
+
if (value === 'global') void load()
|
|
193
|
+
},
|
|
194
|
+
}, t('settings.scope.' + value))
|
|
195
|
+
}))),
|
|
196
|
+
scope === 'project'
|
|
197
|
+
? h('div', { className: 'icex-memory-row' },
|
|
198
|
+
h('span', { className: 'icex-memory-meta' }, t('settings.dir.label')),
|
|
199
|
+
h('input', {
|
|
200
|
+
className: 'icex-memory-dir',
|
|
201
|
+
value: dir,
|
|
202
|
+
placeholder: t('settings.dir.placeholder'),
|
|
203
|
+
spellCheck: false,
|
|
204
|
+
onChange: function (event) {
|
|
205
|
+
setDir(event.target.value)
|
|
206
|
+
},
|
|
207
|
+
onKeyDown: function (event) {
|
|
208
|
+
if (event.key === 'Enter' && event.currentTarget.value.trim() !== '') void load()
|
|
209
|
+
},
|
|
210
|
+
}),
|
|
211
|
+
h('button', {
|
|
212
|
+
type: 'button',
|
|
213
|
+
className: 'icex-memory-button',
|
|
214
|
+
disabled: busy || dir.trim() === '',
|
|
215
|
+
onClick: function () {
|
|
216
|
+
void load()
|
|
217
|
+
},
|
|
218
|
+
}, t('settings.dir.load')),
|
|
219
|
+
h('div', { className: 'icex-memory-hint' }, t('settings.dir.hint')))
|
|
220
|
+
: null,
|
|
221
|
+
h('textarea', {
|
|
222
|
+
className: 'icex-memory-text',
|
|
223
|
+
spellCheck: false,
|
|
224
|
+
value: text,
|
|
225
|
+
placeholder: t('settings.placeholder'),
|
|
226
|
+
onChange: function (event) {
|
|
227
|
+
setText(event.target.value)
|
|
228
|
+
setDirty(true)
|
|
229
|
+
},
|
|
230
|
+
}),
|
|
231
|
+
h('div', { className: 'icex-memory-row' },
|
|
232
|
+
h('button', {
|
|
233
|
+
type: 'button',
|
|
234
|
+
className: 'icex-memory-button',
|
|
235
|
+
'data-primary': 'true',
|
|
236
|
+
disabled: busy || !dirty,
|
|
237
|
+
onClick: function () {
|
|
238
|
+
void save()
|
|
239
|
+
},
|
|
240
|
+
}, busy ? t('settings.saving') : t('settings.save')),
|
|
241
|
+
h('button', {
|
|
242
|
+
type: 'button',
|
|
243
|
+
className: 'icex-memory-button',
|
|
244
|
+
disabled: busy,
|
|
245
|
+
onClick: function () {
|
|
246
|
+
void load()
|
|
247
|
+
},
|
|
248
|
+
}, busy ? t('settings.loading') : t('settings.reload')),
|
|
249
|
+
h('span', { className: 'icex-memory-meta' }, t('settings.entries', { count: entries })),
|
|
250
|
+
dirty ? h('span', { className: 'icex-memory-meta' }, t('settings.unsaved')) : null),
|
|
251
|
+
message === null
|
|
252
|
+
? null
|
|
253
|
+
: h('div', {
|
|
254
|
+
className: message.kind === 'error' ? 'icex-memory-error' : 'icex-memory-meta',
|
|
255
|
+
role: message.kind === 'error' ? 'alert' : 'status',
|
|
256
|
+
}, message.text),
|
|
257
|
+
path === '' ? null : h('div', { className: 'icex-memory-meta' }, t('settings.path', { path })),
|
|
258
|
+
h('div', { className: 'icex-memory-hint' }, t('settings.hint')))
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function apply(ctx) {
|
|
262
|
+
ctx.effect(installStyles, 'icex-dsh-memory: styles')
|
|
263
|
+
ctx.effect(function () {
|
|
264
|
+
return ctx.locale.register(NS, { en: en, zh: zh })
|
|
265
|
+
}, 'icex-dsh-memory: locale')
|
|
266
|
+
ctx.slots.inject('plugins.bundle.config', function () {
|
|
267
|
+
return ctx.slots.register({
|
|
268
|
+
name: 'plugins.bundle.config',
|
|
269
|
+
key: PACKAGE,
|
|
270
|
+
locale: NS,
|
|
271
|
+
}, MemoryPanel)
|
|
272
|
+
})
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
return {
|
|
276
|
+
inject: ['slots', 'locale'],
|
|
277
|
+
apply: apply,
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
})
|
package/docs/DETAIL.md
CHANGED
|
@@ -69,6 +69,17 @@
|
|
|
69
69
|
| `dedupeSimilarity` | `0.85` | 判定重复的相似度阈值(0.5–0.99) |
|
|
70
70
|
|
|
71
71
|
|
|
72
|
+
## 设置页编辑
|
|
73
|
+
|
|
74
|
+
插件在 **Plugins → Icex DSH Memory** 的配置区里提供一个「记忆」板块:
|
|
75
|
+
|
|
76
|
+
- 作用域切换:**全局**(`~/.dsh/memory/MEMORY.md`)或**项目**(填一个工作目录,编辑 `<dir>/.dsh/memory/MEMORY.md`)
|
|
77
|
+
- 直接编辑整个文件,保存后原子写入,下个会话开始时生效
|
|
78
|
+
- 显示条数、文件路径、未保存状态;保存时同样拦截疑似凭证,单文件上限 256 KiB
|
|
79
|
+
|
|
80
|
+
接口是 `GET/POST /api/icex-memory?scope=global|project&dir=<abs>`,只对已认证的本机浏览器 Peer 开放。
|
|
81
|
+
|
|
82
|
+
|
|
72
83
|
## 安装
|
|
73
84
|
|
|
74
85
|
```sh
|
package/index.js
CHANGED
|
@@ -417,11 +417,75 @@ function tuningOf(config) {
|
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
+
/** Largest memory file the settings editor accepts. */
|
|
421
|
+
const MAX_EDIT_BYTES = 256 * 1024
|
|
422
|
+
|
|
423
|
+
/** JSON response helper for the settings editor route. */
|
|
424
|
+
function jsonResponse(body, status = 200) {
|
|
425
|
+
return new Response(JSON.stringify(body), {
|
|
426
|
+
status,
|
|
427
|
+
headers: { 'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-store' },
|
|
428
|
+
})
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/** Resolve the store file named by the editor's query string. */
|
|
432
|
+
/** Expand a leading ~/ so the settings page can take a home-relative path. */
|
|
433
|
+
function expandHome(dir) {
|
|
434
|
+
if (dir === '~') return homedir()
|
|
435
|
+
if (dir.startsWith('~/')) return join(homedir(), dir.slice(2))
|
|
436
|
+
return dir
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
function editorTarget(params) {
|
|
440
|
+
if (params.get('scope') !== 'project') return { scope: 'global', file: GLOBAL_FILE }
|
|
441
|
+
const dir = expandHome(String(params.get('dir') ?? '').trim())
|
|
442
|
+
if (!dir.startsWith('/')) return { scope: 'project', error: 'project scope needs an absolute directory (a leading ~/ works)' }
|
|
443
|
+
if (!existsSync(dir)) return { scope: 'project', error: 'directory does not exist: ' + dir }
|
|
444
|
+
return { scope: 'project', dir, file: projectFile(dir) }
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/** GET reads a store, POST replaces it; both are owner-only by the route registry. */
|
|
448
|
+
export async function handleEditorRequest(request) {
|
|
449
|
+
const target = editorTarget(new URL(request.url).searchParams)
|
|
450
|
+
if (target.error !== undefined) return jsonResponse({ ok: false, error: target.error }, 400)
|
|
451
|
+
|
|
452
|
+
if (request.method === 'GET') {
|
|
453
|
+
const text = existsSync(target.file) ? readFileSync(target.file, 'utf8') : ''
|
|
454
|
+
return jsonResponse({ ok: true, scope: target.scope, path: target.file, text, entries: parseEntries(text).length })
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
let body
|
|
458
|
+
try {
|
|
459
|
+
body = await request.json()
|
|
460
|
+
} catch (error) {
|
|
461
|
+
return jsonResponse({ ok: false, error: 'body is not JSON' }, 400)
|
|
462
|
+
}
|
|
463
|
+
const text = typeof body?.text === 'string' ? body.text : ''
|
|
464
|
+
if (text.length > MAX_EDIT_BYTES) return jsonResponse({ ok: false, error: 'content exceeds 256 KiB' }, 413)
|
|
465
|
+
if (looksSecret(text)) return jsonResponse({ ok: false, error: 'refusing to save: content looks like a credential' }, 400)
|
|
466
|
+
writeAtomic(target.file, text)
|
|
467
|
+
return jsonResponse({ ok: true, scope: target.scope, path: target.file, entries: parseEntries(text).length })
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/** Claim the settings-editor route when this host carries a browser connection. */
|
|
471
|
+
function registerEditorRoute(ctx) {
|
|
472
|
+
const connection = ctx.get('connection')
|
|
473
|
+
if (connection === undefined || connection.fetch === undefined || typeof connection.fetch.register !== 'function') return
|
|
474
|
+
ctx.effect(() => connection.fetch.register({
|
|
475
|
+
path: '/api/icex-memory',
|
|
476
|
+
methods: ['GET', 'POST'],
|
|
477
|
+
requestBody: 'buffered',
|
|
478
|
+
fetch: handleEditorRequest,
|
|
479
|
+
}), 'icex-dsh-memory: settings editor route')
|
|
480
|
+
}
|
|
481
|
+
|
|
420
482
|
/** Apply the plugin: one prompt section, one injection, optionally one tool. */
|
|
421
483
|
export function apply(ctx, config) {
|
|
422
484
|
const tuning = tuningOf(config)
|
|
423
485
|
const globalFile = GLOBAL_FILE
|
|
424
486
|
|
|
487
|
+
registerEditorRoute(ctx)
|
|
488
|
+
|
|
425
489
|
ctx.systemPrompt.section({
|
|
426
490
|
name: 'tool:memory',
|
|
427
491
|
order: 900,
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "icex-dsh-memory",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cross-session memory for DeepSeek Harness: a budgeted MEMORY.md digest injected once per session, plus one memory tool with provenance back to the producing session.",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./index.js",
|
|
8
|
+
"./client": "./client.js",
|
|
8
9
|
"./locale/*.json": "./locale/*.json",
|
|
9
10
|
"./icon": "./icon.svg"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|
|
12
13
|
"index.js",
|
|
14
|
+
"client.js",
|
|
13
15
|
"cordis.patch.yml",
|
|
14
16
|
"locale/*.json",
|
|
15
17
|
"docs",
|
|
@@ -19,6 +21,10 @@
|
|
|
19
21
|
"dsh": {
|
|
20
22
|
"bundle": {
|
|
21
23
|
"patch": "./cordis.patch.yml"
|
|
24
|
+
},
|
|
25
|
+
"client": {
|
|
26
|
+
"platform": "web",
|
|
27
|
+
"inject": []
|
|
22
28
|
}
|
|
23
29
|
},
|
|
24
30
|
"license": "MIT",
|