@modusensus/dsh-mneme 0.8.8 → 0.8.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/README.md +3 -4
- package/lib/api.js +1 -1
- package/lib/client.js +353 -163
- package/lib/continuity.js +1 -1
- package/lib/dream/sleep.js +4 -4
- package/lib/dream.js +6 -6
- package/lib/entities/extractor.js +2 -2
- package/lib/peak-hours.js +117 -117
- package/lib/summarize.js +2 -2
- package/package.json +1 -1
- package/src/api.js +1 -1
- package/src/continuity.js +1 -1
- package/src/dream/sleep.js +4 -4
- package/src/dream.js +6 -6
- package/src/entities/extractor.js +2 -2
- package/src/peak-hours.js +117 -117
- package/src/summarize.js +2 -2
- package/test/api.test.js +2 -1
- package/test/client.test.js +17 -6
- package/test/continuity.test.js +1 -1
- package/test/llm-message-source.test.js +32 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/@modusensus/dsh-mneme)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
|
|
8
|
-
[](https://github.com/slow-stack/mneme)
|
|
9
9
|
[](https://github.com/slow-stack/mneme/actions)
|
|
10
10
|
[](https://nodejs.org)
|
|
11
11
|
[](https://www.npmjs.com/package/@modusensus/dsh-mneme)
|
|
@@ -583,8 +583,7 @@ src/
|
|
|
583
583
|
├── api.js # HTTP 路由(Web 面板数据通道,含 /conflicts 冲突队列)
|
|
584
584
|
└── index.js # 插件接线
|
|
585
585
|
lib/ # src 的同步分发产物(npm run sync;发布前由 root prepack 的 check-sync.js 校验一致性;唯一手写例外 lib/client.js——Web 面板 bundle,sync 不覆盖)
|
|
586
|
-
test/ #
|
|
587
|
-
test/ # 1404 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
|
|
586
|
+
test/ # 1405 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
|
|
588
587
|
scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压测 · sync-lib.js 同步 · check-sync.js 发布闸门 · benchmark-recall.js / benchmark-embed.js / benchmark-rerank.js 基准 · sync-test-badge.mjs 测试徽章 · build-runtime-manifest.mjs 运行时清单
|
|
589
588
|
```
|
|
590
589
|
|
|
@@ -593,7 +592,7 @@ scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压
|
|
|
593
592
|
```bash
|
|
594
593
|
cd dsh-mneme
|
|
595
594
|
npm install # 安装 peer 依赖(以 devDependencies 形式,用于本地测试)
|
|
596
|
-
npm test # 运行
|
|
595
|
+
npm test # 运行 1405 个测试
|
|
597
596
|
npm run stress # 三轴线压测:长会话检索 / 冲突仲裁 / 多 Agent 并发(离线 mock LLM)
|
|
598
597
|
npm run sync # 把 src/ 同步到 lib/(发布时由 prepack 钩子自动执行)
|
|
599
598
|
```
|
package/lib/api.js
CHANGED
|
@@ -380,7 +380,7 @@ export function createApi(ctx, service, settings, commands, embedder, semantic =
|
|
|
380
380
|
{
|
|
381
381
|
role: "user",
|
|
382
382
|
content: [{ type: "text", text: "Reply with exactly one word: ok" }],
|
|
383
|
-
source: { kind: "plugin", plugin: "dsh-mneme" }
|
|
383
|
+
source: { kind: "plugin:dsh-mneme", plugin: "dsh-mneme" }
|
|
384
384
|
}
|
|
385
385
|
]
|
|
386
386
|
})) {
|