memory-eternal 0.3.8 → 0.8.0
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 +2 -0
- package/README.md +3 -0
- package/lib/client.js +94 -49
- package/lib/db.js +6 -0
- package/package.json +1 -1
- package/web/app.js +98 -53
package/lib/db.js
CHANGED
|
@@ -177,6 +177,12 @@ export function closeDb(root) {
|
|
|
177
177
|
if (db) { db.close(); instances.delete(resolved) }
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
/** 关闭全部缓存连接(测试清理用:Windows 上开着连接删目录会 EBUSY)。 */
|
|
181
|
+
export function closeAllDb() {
|
|
182
|
+
for (const db of instances.values()) { try { db.close() } catch {} }
|
|
183
|
+
instances.clear()
|
|
184
|
+
}
|
|
185
|
+
|
|
180
186
|
/**
|
|
181
187
|
* SQLite 备份:用 VACUUM INTO 创建紧凑副本。
|
|
182
188
|
* 保留最近 maxKeep 个备份,自动清理旧的。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memory-eternal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "记忆核心(Memory Eternal):自研的 DeepSeek Harness 记忆插件,不移植任何既有记忆框架——对话结束后自动沉淀知识卡到本地 Markdown Vault(自研去重、自研 CJK 检索、可 git 管理),设置页提供图形化知识库(统计 / 搜索 / 知识图谱 + 侧边栏一键弹窗),Agent 通过 memory_recall 工具按需召回历史上下文。零人工干预。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|