@modusensus/dsh-mneme 0.8.7 → 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 CHANGED
@@ -5,8 +5,7 @@
5
5
  [![npm version](https://img.shields.io/npm/v/@modusensus/dsh-mneme?color=blue&label=npm)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
6
6
  [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
7
7
  [![Awesome](https://awesome-dsh-plugin.com/badge.svg)](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
8
- [![tests](https://img.shields.io/badge/tests-1370%20passed-success)](https://github.com/slow-stack/mneme)
9
- [![tests](https://img.shields.io/badge/tests-1370%20passed-success)](https://github.com/slow-stack/mneme)
8
+ [![tests](https://img.shields.io/badge/tests-1405%20passed-success)](https://github.com/slow-stack/mneme)
10
9
  [![CI](https://img.shields.io/github/actions/workflow/status/slow-stack/mneme/ci.yml)](https://github.com/slow-stack/mneme/actions)
11
10
  [![node](https://img.shields.io/badge/node-22%2B-blue)](https://nodejs.org)
12
11
  [![npm downloads](https://img.shields.io/npm/d18m/@modusensus/dsh-mneme.svg?color=blue&label=downloads)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
@@ -348,6 +347,8 @@ dsh web
348
347
  | `dreamSummaryProvider` / `dreamSummaryModel` | 空 | 总览(dream_summarize)专用模型路由(留空 = 沿用 `dreamProvider`/`dreamModel`)。consolidate 有窗口(`dreamMaxSnapshotSize`)而总览输入随库增长,ctx 需求差数倍——用小 ctx 模型跑巩固时把总览指到大 ctx 模型(issue #258) |
349
348
  | `dreamSummaryMaxInputs` | `0` | 总览输入条数硬上限(0 = 不设上限):超过时按 `updated_at` 倒序只保留最新 N 条进总览,防小 ctx 模型被全库输入撑爆;总览口径脚注的条数随实际输入变化 |
350
349
  | `dreamMinIntervalMinutes` | `0` | autoDream 最小触发间隔(0-10080,0=不限):失败/degraded run 也占用 |
350
+ | `dreamPeakHours` | 空 | 巩固侧高峰时段(本地时间,与 `summarizePeakHours` **同一份语法**):空=关;命中时不调模型、baseline 不刷新(阈值继续累积,留到非高峰一次性巩固)、登记 `skipped`/`peak-hours` 审计并顺延到最近的高峰结束时刻。适合「白天要留算力给交互、巩固挪到夜里」的场景(#239 第 4 项镜像到巩固) |
351
+ | `dreamPeakMaxDeferMinutes` | `120` | 巩固侧高峰顺延上限(0-1440 分钟,0=不设上限):到点仍处高峰就照常跑,避免长高峰把巩固饿死(#239) |
351
352
  | `dreamNarrativeEnabled` | `false` | 叙述条总开关(#164 对齐,v0.8.4):按共享 tag 主题簇合成叙述 + evidence 证据链,注入候选排除(按需检索,常驻位只留 dream 总览);也走 feature_flags 白名单,lightMode 强制关 |
352
353
  | `dreamNarrativeMinCluster` | `3` | 主题簇合成叙述的最小成员数(2-20,v0.8.4) |
353
354
  | `apiToken` | 空 | 可选 API 鉴权 token;设置后写操作与密钥接口要求 `Authorization: Bearer <apiToken>` |
@@ -582,8 +583,7 @@ src/
582
583
  ├── api.js # HTTP 路由(Web 面板数据通道,含 /conflicts 冲突队列)
583
584
  └── index.js # 插件接线
584
585
  lib/ # src 的同步分发产物(npm run sync;发布前由 root prepack 的 check-sync.js 校验一致性;唯一手写例外 lib/client.js——Web 面板 bundle,sync 不覆盖)
585
- test/ # 1342 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
586
- test/ # 1342 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
586
+ test/ # 1405 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
587
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 运行时清单
588
588
  ```
589
589
 
@@ -592,8 +592,7 @@ scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压
592
592
  ```bash
593
593
  cd dsh-mneme
594
594
  npm install # 安装 peer 依赖(以 devDependencies 形式,用于本地测试)
595
- npm test # 运行 1342 个测试
596
- npm test # 运行 1342 个测试
595
+ npm test # 运行 1405 个测试
597
596
  npm run stress # 三轴线压测:长会话检索 / 冲突仲裁 / 多 Agent 并发(离线 mock LLM)
598
597
  npm run sync # 把 src/ 同步到 lib/(发布时由 prepack 钩子自动执行)
599
598
  ```
@@ -606,6 +605,7 @@ npm run sync # 把 src/ 同步到 lib/(发布时由 prepack 钩子自动
606
605
 
607
606
  > 设计文档位于仓库根 `docs/`,链接以 `../docs/` 相对路径指向(GitHub 上从本目录打开可正常跳转)。
608
607
 
608
+ - [配置说明(全键参考)](docs/CONFIGURATION.md)
609
609
  - [实体结构化记忆设计](docs/ENTITIES.md)
610
610
  - [语义增强架构](docs/SEMANTIC.md)
611
611
  - [本地模型部署指南](docs/LOCAL_MODEL.md)
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
  })) {