@alanzhao/dsh-memory-lite 0.2.6 → 0.2.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/README.en.md +1 -1
- package/README.md +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +82 -66
- package/lib/index.js.map +1 -1
- package/package.json +10 -6
package/README.en.md
CHANGED
|
@@ -139,7 +139,7 @@ Your memories are not deleted: `~/.agent-memory` is left for you to keep or remo
|
|
|
139
139
|
- `forget_memory` has no approval gate (the model can soft-delete directly).
|
|
140
140
|
- `## Related` auto-maintenance is not implemented.
|
|
141
141
|
- No CLI / MCP entry point.
|
|
142
|
-
- The browser half (indicator + settings page)
|
|
142
|
+
- The browser half (indicator + settings page) needs the web profile's `connection` service; under a headless profile the plugin still loads (tools + extraction work) and simply has no browser surfaces.
|
|
143
143
|
- Extraction quality depends on the model you pick; small models produce JSON that needs repair more often.
|
|
144
144
|
|
|
145
145
|
## Development
|
package/README.md
CHANGED
|
@@ -138,7 +138,7 @@ dsh plugin --profile web remove @alanzhao/dsh-memory-lite
|
|
|
138
138
|
- `forget_memory` 没有审批门控(模型可以直接软删除)。
|
|
139
139
|
- `## Related` 的自动维护还没做。
|
|
140
140
|
- 没有 CLI / MCP 入口。
|
|
141
|
-
- 浏览器半边(指示器 +
|
|
141
|
+
- 浏览器半边(指示器 + 设置页)需要 web profile 的 `connection` 服务;headless profile 下插件照常加载(工具 + 提取可用),只是没有这两个界面。
|
|
142
142
|
- 隐式提取的质量取决于你选的模型;小模型更容易产出需要 repair 的 JSON。
|
|
143
143
|
|
|
144
144
|
## 开发
|
package/lib/index.d.ts
CHANGED
|
@@ -21,8 +21,10 @@ import { Config } from './config.js';
|
|
|
21
21
|
import type { MemoryConfig } from './config.js';
|
|
22
22
|
/** Cordis plugin name used by loader diagnostics. */
|
|
23
23
|
export declare const name = "dsh-memory-lite";
|
|
24
|
-
/** Services this plugin
|
|
25
|
-
* and the timer service (ctx.timeout for the extraction idle
|
|
24
|
+
/** Services this plugin requires to activate: the tool registry, the agent registry,
|
|
25
|
+
* the LLM stream, and the timer service (ctx.timeout for the extraction idle
|
|
26
|
+
* backstop). `connection` is a web-app service and is injected optionally below, so
|
|
27
|
+
* a headless profile loads the plugin (tools + extraction) without browser surfaces. */
|
|
26
28
|
export declare const inject: string[];
|
|
27
29
|
export { Config };
|
|
28
30
|
/** Register the memory capability for the lifetime of `ctx`. */
|
package/lib/index.js
CHANGED
|
@@ -29,9 +29,11 @@ import { applyExtraction } from './extract/index.js';
|
|
|
29
29
|
import { createStatusTracker } from './status.js';
|
|
30
30
|
/** Cordis plugin name used by loader diagnostics. */
|
|
31
31
|
export const name = 'dsh-memory-lite';
|
|
32
|
-
/** Services this plugin
|
|
33
|
-
* and the timer service (ctx.timeout for the extraction idle
|
|
34
|
-
|
|
32
|
+
/** Services this plugin requires to activate: the tool registry, the agent registry,
|
|
33
|
+
* the LLM stream, and the timer service (ctx.timeout for the extraction idle
|
|
34
|
+
* backstop). `connection` is a web-app service and is injected optionally below, so
|
|
35
|
+
* a headless profile loads the plugin (tools + extraction) without browser surfaces. */
|
|
36
|
+
export const inject = ['tools', 'agents', 'llm', 'timer'];
|
|
35
37
|
export { Config };
|
|
36
38
|
/**
|
|
37
39
|
* Install the memory-lite settings namespace on the host SettingsProvider
|
|
@@ -118,7 +120,12 @@ export function apply(ctx, config = {}) {
|
|
|
118
120
|
// (see installSettingsSection below), so every consumer reading through the
|
|
119
121
|
// deps getter sees the newest value without re-registering.
|
|
120
122
|
let live = resolveConfig(config);
|
|
121
|
-
|
|
123
|
+
// MemoryStore pins root + sharing at construction, so build it on first use:
|
|
124
|
+
// the settings layer installs asynchronously at boot, and it must be able to
|
|
125
|
+
// supply root/sharing for THIS boot (a later edit stays restart-applied —
|
|
126
|
+
// see the onChange pinning below).
|
|
127
|
+
let store;
|
|
128
|
+
const storeOf = () => (store ??= new MemoryStore(live.root, live.sharing));
|
|
122
129
|
const defaultModel = () => {
|
|
123
130
|
const svc = ctx.get('agentDefaultModel');
|
|
124
131
|
if (svc?.currentSelection === undefined)
|
|
@@ -130,7 +137,7 @@ export function apply(ctx, config = {}) {
|
|
|
130
137
|
return { provider: '', model: '' };
|
|
131
138
|
}
|
|
132
139
|
};
|
|
133
|
-
const deps = { config: () => live, store, defaultModel };
|
|
140
|
+
const deps = { config: () => live, get store() { return storeOf(); }, defaultModel };
|
|
134
141
|
const readTool = applyReadMemoryTool(ctx, deps);
|
|
135
142
|
applySearchMemoryTool(ctx, deps);
|
|
136
143
|
applyRememberTool(ctx, deps);
|
|
@@ -148,79 +155,88 @@ export function apply(ctx, config = {}) {
|
|
|
148
155
|
if (header?.cwd === undefined || header?.origin === 'subagent')
|
|
149
156
|
return;
|
|
150
157
|
const peer = peerForHeader(header, live);
|
|
151
|
-
void
|
|
158
|
+
void storeOf().rememberPeerCwd(peer, header.cwd);
|
|
152
159
|
});
|
|
153
160
|
// Settings-backed overrides (方案 A, IMPLEMENTATION.md §16): the cordis row
|
|
154
161
|
// config is the composition base; user edits land in ~/.dsh/settings.yaml
|
|
155
|
-
// under the dsh-memory-lite namespace. root
|
|
156
|
-
//
|
|
157
|
-
//
|
|
162
|
+
// under the dsh-memory-lite namespace. `root` + `sharing` are restart-applied
|
|
163
|
+
// (MemoryStore holds both at construction): the settings layer supplies them
|
|
164
|
+
// until the store is built, then the built pair stays pinned; every other
|
|
165
|
+
// field resolves live on each change.
|
|
158
166
|
let source = () => config;
|
|
159
167
|
installSettingsCompat(ctx, 'dsh-memory-lite', Config, config, {
|
|
160
168
|
setSource: (get) => { source = get; },
|
|
161
169
|
onChange: () => {
|
|
162
170
|
const next = resolveConfig(source());
|
|
163
|
-
live =
|
|
171
|
+
live = store === undefined
|
|
172
|
+
? next
|
|
173
|
+
: { ...next, root: live.root, sharing: live.sharing };
|
|
164
174
|
},
|
|
165
175
|
});
|
|
166
|
-
// Browser
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
176
|
+
// Browser-facing RPC routes (status indicator + settings page). `connection`
|
|
177
|
+
// is a web-app service, so inject it optionally: a headless profile then loads
|
|
178
|
+
// the plugin (tools + extraction) and simply gets no browser surfaces, instead
|
|
179
|
+
// of failing the whole profile boot on a missing service.
|
|
180
|
+
void ctx.inject(['connection'], (cctx) => {
|
|
181
|
+
// Browser indicator channel: the header dot polls this snapshot.
|
|
182
|
+
cctx.effect(() => cctx.connection.fetch.register(rpcRoute('memory-status/snapshot', async (_endpoint, _payload, _signal) => ({
|
|
183
|
+
ok: true,
|
|
184
|
+
value: tracker.snapshot(live.extraction.mode),
|
|
185
|
+
}))), 'dsh-memory-lite: /api/memory-status/snapshot');
|
|
186
|
+
// Settings UI: list existing peers so sharing.mounts can be edited as
|
|
187
|
+
// checkboxes instead of raw YAML (IMPLEMENTATION.md §16.9 known limit).
|
|
188
|
+
cctx.effect(() => cctx.connection.fetch.register(rpcRoute('memory-peers/snapshot', async (_endpoint, _payload, _signal) => ({
|
|
189
|
+
ok: true,
|
|
190
|
+
value: {
|
|
191
|
+
peers: await storeOf().listPeers(),
|
|
192
|
+
mounts: live.sharing.mounts.map(m => ({ name: m.name, peer: m.peer, subpath: m.subpath, readonly: m.readonly })),
|
|
193
|
+
},
|
|
194
|
+
}))), 'dsh-memory-lite: /api/memory-peers/snapshot');
|
|
195
|
+
// Settings UI: model catalog for the extraction-model dropdown (§17). rc.1
|
|
196
|
+
// removed the browser connection.api.llm.models aggregate; rebuild the same
|
|
197
|
+
// {groups:[{id,name,models:[{id,name,reasoning?}]}]} shape host-side from
|
|
198
|
+
// ctx.llm (listProviders + listModels + resolveModelInfo) so the client
|
|
199
|
+
// settings page keeps working across host versions over our own RPC.
|
|
200
|
+
cctx.effect(() => cctx.connection.fetch.register(rpcRoute('memory-models/snapshot', async (_endpoint, _payload, _signal) => {
|
|
201
|
+
const groups = [];
|
|
202
|
+
try {
|
|
203
|
+
const llm = ctx.llm;
|
|
204
|
+
if (llm?.listProviders !== undefined) {
|
|
205
|
+
const providers = llm.listProviders();
|
|
206
|
+
for (const provider of providers) {
|
|
207
|
+
const models = llm.listModels !== undefined ? await llm.listModels(provider.id) : [];
|
|
208
|
+
groups.push({ id: provider.id, name: provider.name, models });
|
|
209
|
+
}
|
|
194
210
|
}
|
|
195
211
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
})
|
|
212
|
+
catch (error) {
|
|
213
|
+
cctx.logger.warn('dsh-memory-lite: /memory-models failed: ' + String(error));
|
|
214
|
+
}
|
|
215
|
+
return { ok: true, value: { groups } };
|
|
216
|
+
})), 'dsh-memory-lite: /api/memory-models/snapshot');
|
|
217
|
+
// Per-route reasoning efforts for the effort dropdown: resolved lazily so
|
|
218
|
+
// the catalog RPC stays cheap (resolveModelInfo per model would be N calls).
|
|
219
|
+
cctx.effect(() => cctx.connection.fetch.register(rpcRoute('memory-model-efforts/snapshot', async (_endpoint, payload, _signal) => {
|
|
220
|
+
const route = String(payload?.route ?? '');
|
|
221
|
+
const slash = route.indexOf('/');
|
|
222
|
+
if (slash <= 0)
|
|
223
|
+
return { ok: true, value: { efforts: [], defaultEffort: undefined } };
|
|
224
|
+
const provider = route.slice(0, slash);
|
|
225
|
+
const model = route.slice(slash + 1);
|
|
226
|
+
let efforts = [];
|
|
227
|
+
let defaultEffort;
|
|
228
|
+
try {
|
|
229
|
+
const llm = ctx.llm;
|
|
230
|
+
const info = llm?.resolveModelInfo !== undefined ? await llm.resolveModelInfo(provider, model) : undefined;
|
|
231
|
+
efforts = info?.reasoning?.efforts ?? [];
|
|
232
|
+
defaultEffort = info?.reasoning?.defaultEffort;
|
|
233
|
+
}
|
|
234
|
+
catch (error) {
|
|
235
|
+
cctx.logger.warn('dsh-memory-lite: /memory-model-efforts failed: ' + String(error));
|
|
236
|
+
}
|
|
237
|
+
return { ok: true, value: { efforts, defaultEffort } };
|
|
238
|
+
})), 'dsh-memory-lite: /api/memory-model-efforts/snapshot');
|
|
239
|
+
});
|
|
224
240
|
ctx.logger.info(`dsh-memory-lite: memory enabled (root ${live.root}, default peer ${live.defaultPeer}, extraction ${live.extraction.mode})`);
|
|
225
241
|
}
|
|
226
242
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAWH,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO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AE,CAAA;gBACxC,aAAa,GAAG,IAAI,EAAE,SAAS,EAAE,aAAa,CAAA;YAChD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iDAAiD,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;YACrF,CAAC;YACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,CAAA;QACxD,CAAC,CAAC,CAAC,EACH,qDAAqD,CACtD,CAAA;IACH,CAAC,CAAC,CAAA;IACF,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,yCAAyC,IAAI,CAAC,IAAI,kBAAkB,IAAI,CAAC,WAAW,gBAAgB,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,CAAA;AAC9I,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alanzhao/dsh-memory-lite",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
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",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@deepseek-ai/dsh-atomic-write": "0.1.2-rc.1",
|
|
52
|
-
"@deepseek-ai/dsh-home-paths": "^0.1.2-rc.1",
|
|
53
|
-
"@deepseek-ai/dsh-settings": "0.1.2-rc.1",
|
|
54
|
-
"@deepseek-ai/dsh-tools": "0.1.2-rc.1",
|
|
55
51
|
"@deepseek-ai/schemastery": "^3.18.1"
|
|
56
52
|
},
|
|
57
53
|
"peerDependencies": {
|
|
58
|
-
"@deepseek-ai/cordis": "^4.0.1"
|
|
54
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
55
|
+
"@deepseek-ai/dsh-atomic-write": ">=0.1.2-rc.1",
|
|
56
|
+
"@deepseek-ai/dsh-home-paths": ">=0.1.2-rc.1",
|
|
57
|
+
"@deepseek-ai/dsh-llm": ">=0.1.2-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-tools": ">=0.1.2-rc.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
66
66
|
"@deepseek-ai/cordis-plugin-timer": "^1.1.4",
|
|
67
67
|
"@deepseek-ai/dsh-agent": "0.1.2-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.2-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-home-paths": "0.1.2-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-settings": "0.1.2-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-tools": "0.1.2-rc.1",
|
|
68
72
|
"@deepseek-ai/dsh-app-boot": "0.1.2-rc.1",
|
|
69
73
|
"@deepseek-ai/dsh-brand": "^0.1.2-rc.1",
|
|
70
74
|
"@deepseek-ai/dsh-client-connection": "^0.1.5-rc.1",
|