@yottameta/yotta-memory 0.13.0 → 0.13.1
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/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/README.zh-CN.md +3 -3
- package/SKILL.md +2 -2
- package/bin/yotta-memory.js +7 -4
- package/package.json +1 -1
- package/skill-manifest.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## v0.13.1 (2026-09-13)
|
|
2
|
+
|
|
3
|
+
- 清理发布文档与测试夹具中的本机专属盘符 / 路径示例,统一改为 `~/.yottamemory` 或占位路径。
|
|
4
|
+
- 修复 `forget --unsafe` 未透传到核心的缺陷,并补 CLI 回归测试;显式授权清理其它 owner 私密条目时行为与帮助文案一致。
|
|
5
|
+
- 发布前新增机器专属路径硬编码扫描闸门后,此类问题不允许再进入发布件。
|
|
6
|
+
|
|
1
7
|
## v0.13.0 (2026-09-13)
|
|
2
8
|
|
|
3
9
|
**P0-4.6 元忆 after_milestone 试点**:
|
package/README.md
CHANGED
|
@@ -196,14 +196,14 @@ This package exposes two separate commands:
|
|
|
196
196
|
**init**:
|
|
197
197
|
|
|
198
198
|
```text
|
|
199
|
-
Memory store initialized:
|
|
199
|
+
Memory store initialized: ~/.yottamemory
|
|
200
200
|
Master password set; recovery key: xxxx-xxxx-xxxx-xxxx (keep it safe)
|
|
201
201
|
```
|
|
202
202
|
|
|
203
203
|
**remember** (with verify):
|
|
204
204
|
|
|
205
205
|
```text
|
|
206
|
-
Recorded:
|
|
206
|
+
Recorded: ~/.yottamemory/facts/2026-09-01-0001.md
|
|
207
207
|
[verify] read-back OK: facts/2026-09-01-0001.md
|
|
208
208
|
```
|
|
209
209
|
|
|
@@ -211,7 +211,7 @@ Recorded: D:/.yottamemory/facts/2026-09-01-0001.md
|
|
|
211
211
|
|
|
212
212
|
```text
|
|
213
213
|
3 memories (top 3):
|
|
214
|
-
[FACT] subject: statement... (
|
|
214
|
+
[FACT] subject: statement... (~/.yottamemory/facts/xxx.md)
|
|
215
215
|
```
|
|
216
216
|
|
|
217
217
|
**context**:
|
package/README.zh-CN.md
CHANGED
|
@@ -235,14 +235,14 @@ bash install.sh --list # 列出智能体 -> 默认目录
|
|
|
235
235
|
**init(初始化记忆库)**:
|
|
236
236
|
|
|
237
237
|
```text
|
|
238
|
-
|
|
238
|
+
初始化记忆库成功:~/.yottamemory
|
|
239
239
|
主口令已设置;恢复钥匙:xxxx-xxxx-xxxx-xxxx(请妥善保存)
|
|
240
240
|
```
|
|
241
241
|
|
|
242
242
|
**remember(写入记忆,带 verify 回读)**:
|
|
243
243
|
|
|
244
244
|
```text
|
|
245
|
-
已记录:
|
|
245
|
+
已记录: ~/.yottamemory/facts/2026-09-01-0001.md
|
|
246
246
|
[verify] 已写回读 OK: facts/2026-09-01-0001.md
|
|
247
247
|
```
|
|
248
248
|
|
|
@@ -250,7 +250,7 @@ bash install.sh --list # 列出智能体 -> 默认目录
|
|
|
250
250
|
|
|
251
251
|
```text
|
|
252
252
|
共 3 条记忆(前 3 条):
|
|
253
|
-
[FACT] 项目名:
|
|
253
|
+
[FACT] 项目名: 描述……(~/.yottamemory/facts/xxx.md)
|
|
254
254
|
```
|
|
255
255
|
|
|
256
256
|
**context(开工上下文包)**:
|
package/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: yotta-memory
|
|
3
3
|
description: 元忆 —— 有权限边界的文件式智能体记忆。文件式、零依赖、可 diff/可回滚:让任何 AI 智能体活过会话,开工 recall 恢复上下文、重要信息 remember 落盘、收工归档。类型体系 FACT(公共共享)/ PREF / BOUND / COMMIT(私密隔离)。触发:记住、别忘了、记一笔、记忆、remember、recall、跨会话、上次说到、续测、交接、归档、记忆盘、共享记忆、局域网记忆、画像、开工上下文、记忆守则、profile、context、越用越懂、语义检索、反馈、维护、蒸馏、feedback、maintain、distill、explain、自我学习、自我进化、自我提升、查看平台分页、recall 候选预过滤、任务相关记忆、--focus、--embedding、压缩遗忘、consolidate、周期摘要、自动合并、分类型衰减、回滚、备份、backup、防误删、doctor、事务快照
|
|
4
|
-
version: 0.13.
|
|
4
|
+
version: 0.13.1
|
|
5
5
|
license: MIT
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -340,7 +340,7 @@ yotta-memory doctor --json
|
|
|
340
340
|
|---|---|---|
|
|
341
341
|
| 用户级(默认) | `~/.yottamemory` | 个人跨项目记忆 |
|
|
342
342
|
| 项目级 | `<repo>/.yottamemory` | 随项目提交共享 |
|
|
343
|
-
| 便携记忆盘 |
|
|
343
|
+
| 便携记忆盘 | 任意盘符或挂载点下的目录(如 `<memory-disk>/yottamemory`) | 记忆盘 / 局域网共享 |
|
|
344
344
|
|
|
345
345
|
**步骤 0.3 接入现有 vs 初始化新库(关键判断)**
|
|
346
346
|
1. 检查目标目录是否已是记忆库:存在 `facts/` 等子目录或 `index.json`。
|
package/bin/yotta-memory.js
CHANGED
|
@@ -23,7 +23,7 @@ const crypto = require('crypto');
|
|
|
23
23
|
const http = require('http');
|
|
24
24
|
const child_process = require('child_process');
|
|
25
25
|
|
|
26
|
-
const VERSION = '0.13.
|
|
26
|
+
const VERSION = '0.13.1';
|
|
27
27
|
// MCP 协议(2026-07-28 无状态 + 2025-11-25 legacy 握手,dual-era)
|
|
28
28
|
const MCP_PROTOCOL_MODERN = '2026-07-28';
|
|
29
29
|
const MCP_PROTOCOL_LEGACY = '2025-11-25';
|
|
@@ -3447,8 +3447,11 @@ function cmdDistill(opts) {
|
|
|
3447
3447
|
console.log(r.text);
|
|
3448
3448
|
if (r.error) process.exit(2);
|
|
3449
3449
|
}
|
|
3450
|
-
function cmdForget(fileRef) {
|
|
3451
|
-
const r = forgetCore(fileRef
|
|
3450
|
+
function cmdForget(fileRef, opts) {
|
|
3451
|
+
const r = forgetCore(fileRef, {
|
|
3452
|
+
selfAgent: currentAgent(),
|
|
3453
|
+
unsafe: !!(opts && opts.unsafe),
|
|
3454
|
+
});
|
|
3452
3455
|
console.log(r.text);
|
|
3453
3456
|
if (r.error) process.exit(2);
|
|
3454
3457
|
}
|
|
@@ -5488,7 +5491,7 @@ async function main() {
|
|
|
5488
5491
|
case 'maintain': cmdMaintain(opts); break;
|
|
5489
5492
|
case 'distill': cmdDistill(opts); break;
|
|
5490
5493
|
case 'consolidate': if (opts.undo === true && rest.length) opts.undo = rest[0]; cmdConsolidate(opts); break;
|
|
5491
|
-
case 'forget': cmdForget(rest[0]); break;
|
|
5494
|
+
case 'forget': cmdForget(rest[0], opts); break;
|
|
5492
5495
|
case 'archive': cmdArchive(opts); break;
|
|
5493
5496
|
case 'backup': {
|
|
5494
5497
|
const sub = rest[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yottameta/yotta-memory",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Yuanyi (元忆) — boundary-aware, file-based memory for AI agents. File-based, zero-dependency, diff/rollback-able; FACT/PREF/BOUND/COMMIT types (public shared / private isolated), user-level + project-level storage; v0.12 reliability baseline (init guard, trash-based deletion, independent-volume backup/list/doctor/restore, start-of-work doctor, transactional snapshots before destructive writes), v0.10 consolidation (periodic summaries with provenance, near-duplicate auto-merge, per-type decay, batch audit + rollback), v0.9 recall quality + context focus + optional local embedding plugin, plus v0.8 semantic search, feedback loop, self-organization and distillation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|