@yottameta/yotta-memory 1.0.0 → 1.0.2
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 +11 -0
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/SKILL.md +4 -2
- package/USER_GUIDE.md +3 -0
- package/bin/yotta-memory.js +1 -1
- package/package.json +1 -1
- package/references/lan-mode.md +12 -0
- package/references/trust-card.md +3 -0
- package/skill-manifest.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.0.2 (2026-11-29)
|
|
4
|
+
|
|
5
|
+
- 重建元忆 Agent Plugin,修复 marketplace `shortDescription` 在词中断开的问题;插件版本继续与源技能版本同步。
|
|
6
|
+
- 记忆格式、索引格式、CLI 参数、MCP 工具和退出码不变;1.0.1 可直接升级。
|
|
7
|
+
|
|
8
|
+
## v1.0.1 (2026-11-28)
|
|
9
|
+
|
|
10
|
+
- **局域网传输边界**:`references/lan-mode.md` 新增 4.5.1,明确 `serve` 的 MCP 默认是 HTTP 明文,`Authorization: Bearer` 与 `X-Agent-Key` 会随请求在网络上传输;只在可信局域网 / VPN / SSH 隧道内使用,跨网段改用 TLS 反向代理或 SSH 端口转发,`--no-auth` 只用于一次性排障。
|
|
11
|
+
- **信任卡与 SKILL 同步**:`references/trust-card.md`「不承诺什么」补充「不承诺局域网传输机密性」;`SKILL.md` 数据边界补充同样的传输口径与文档指引。
|
|
12
|
+
- **兼容性**:只改文档,不改记忆格式、索引格式、CLI 参数或退出码;1.0.0 可直接升级。
|
|
13
|
+
|
|
3
14
|
## v1.0.0 (2026-11-28)
|
|
4
15
|
|
|
5
16
|
- **对外口径升级**:定位统一为「数据永不出你本机的下一代记忆引擎」——`--help` 首行、SKILL.md、README / README.zh-CN、USER_GUIDE 与各发布渠道门面同批更新。无云端、无账号、无遥测;局域网共享与本地 provider 都由用户显式发起。
|
package/README.md
CHANGED
|
@@ -154,6 +154,8 @@ After upgrading, check that `yotta-memory --version` and the installed `SKILL.md
|
|
|
154
154
|
|
|
155
155
|
The store can live on a desktop, a NAS or an external disk. Local agents use the CLI; other machines connect over MCP with a per-agent token and agent key. Setup, autostart and recovery steps: [`references/lan-mode.md`](references/lan-mode.md).
|
|
156
156
|
|
|
157
|
+
> Transport boundary: the MCP endpoint is plain HTTP by default, so the bearer token and agent key travel in clear text on the wire. Use it only on a trusted LAN, VPN or SSH tunnel; add a TLS reverse proxy for anything beyond that.
|
|
158
|
+
|
|
157
159
|
## Docs
|
|
158
160
|
|
|
159
161
|
| Document | What is inside |
|
package/README.zh-CN.md
CHANGED
|
@@ -154,6 +154,8 @@ npx -y --package @yottameta/yotta-memory yotta-memory-install --agent <智能体
|
|
|
154
154
|
|
|
155
155
|
记忆库可以放在台式机、NAS 或移动硬盘。本机智能体用 CLI 直连;其它机器经 MCP 接入,每个智能体一份 token 与 agent_key。配置、开机自启与故障恢复:[`references/lan-mode.md`](references/lan-mode.md)。
|
|
156
156
|
|
|
157
|
+
> 传输边界:MCP 默认走 HTTP 明文,Bearer token 与 agent_key 会在网络上明文传输。只在可信局域网 / VPN / SSH 隧道内使用;跨网段请加 TLS 反向代理。
|
|
158
|
+
|
|
157
159
|
## 文档
|
|
158
160
|
|
|
159
161
|
| 文档 | 内容 |
|
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(私密隔离,AES-256-GCM 信封加密)。触发:记住、别忘了、记一笔、记忆、remember、recall、跨会话、上次说到、续测、交接、归档、记忆盘、共享记忆、局域网记忆、画像、开工上下文、长期理解摘要、近期走廊、会话闭环、记忆守则、profile、context、越用越懂、语义检索、反馈、维护、反馈调权、maintain、distill、explain、压缩遗忘、consolidate、周期摘要、自动合并、分类型衰减、备份、backup、防误删、doctor、事务快照、恢复演练、记忆库安全扫描、上下文压缩审计。边界:不做云端同步、不做知识库检索、不替代元钥 / 元信;不用于未授权读取其它智能体的私密记忆。
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
license: MIT
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -142,7 +142,9 @@ license: MIT
|
|
|
142
142
|
### 数据边界
|
|
143
143
|
|
|
144
144
|
- **无云端、无账号、无遥测**;引擎自身不主动联网。会联网的只有你自己显式执行的 `npm i`,以及你显式配置的本地 provider 子进程(协议见 `references/provider-protocol.md`)。
|
|
145
|
-
- 局域网共享是你自己发起的多机模式:监听地址、Bearer token、agent_key
|
|
145
|
+
- 局域网共享是你自己发起的多机模式:监听地址、Bearer token、agent_key 都由你决定;
|
|
146
|
+
**MCP 默认 HTTP 明文**,只在可信局域网 / VPN / SSH 隧道内使用,跨网段请加 TLS 反代或
|
|
147
|
+
改走 SSH 隧道;`--no-auth` 只用于一次性排障(见 `references/lan-mode.md` 4.5.1)。
|
|
146
148
|
- 导入 / 导出只写你指定的路径;MCP 的 `export` / `import` 限制在记忆库内,MCP `distill` 不接受 `--model`。
|
|
147
149
|
- `scan` 在无授权密钥时不解密加密条目;凭证片段一律打码,不回显原文。
|
|
148
150
|
- 命中打点是本地元数据(稀疏日计数 + 查询指纹,不存查询原文);`config set usage_enabled false` 或单命令 `--no-usage` 可关。
|
package/USER_GUIDE.md
CHANGED
|
@@ -240,6 +240,9 @@ stdio MCP、`lan enable` 与备份调度只指向 `<runtimeRoot>/current/bin/yot
|
|
|
240
240
|
记忆放在一台主机(Linux / Windows 均可)上,本机 CLI 直连,局域网其它主机的 AI 经 MCP 接入。
|
|
241
241
|
引擎主机只需装 CLI。完整步骤见 `references/lan-mode.md`,这里是主干。
|
|
242
242
|
|
|
243
|
+
> 传输边界:MCP 默认 HTTP 明文,Bearer token 与 agent_key 会随请求传输。只在可信局域网 /
|
|
244
|
+
> VPN / SSH 隧道内使用;跨网段请加 TLS 反向代理,或把 `serve` 绑到 `127.0.0.1` 后走 SSH 端口转发。
|
|
245
|
+
|
|
243
246
|
**第 1 步:安装 CLI 并指定位置**
|
|
244
247
|
|
|
245
248
|
```bash
|
package/bin/yotta-memory.js
CHANGED
|
@@ -26,7 +26,7 @@ const zlib = require('zlib');
|
|
|
26
26
|
const child_process = require('child_process');
|
|
27
27
|
const { AsyncLocalStorage } = require('async_hooks');
|
|
28
28
|
|
|
29
|
-
const VERSION = '1.0.
|
|
29
|
+
const VERSION = '1.0.2';
|
|
30
30
|
const CLI_VALUE_OPTS = new Set(['--type', '--limit', '--days', '--out', '--owner', '--agent', '--agent-id', '--agent-key', '--agent-key-file', '--plugin-data', '--threshold', '--scope', '--host', '--port', '--dir', '--name', '--user', '--relationship', '--source', '--weight', '--budget', '--password', '--new-password', '--recovery-key', '--recovery-key-out', '--reason', '--merge', '--model', '--subject', '--embedding', '--focus', '--embedding-timeout', '--min-age', '--min-idle', '--max-utility', '--min-group', '--period', '--to', '--id', '--time', '--tools', '--mcp-config', '--skill-dir', '--year', '--evalset', '--k', '--seed', '--bootstrap', '--gate', '--against', '--template', '--path', '--from', '--from-plan', '--batch', '--profile']);
|
|
31
31
|
const CLI_FLAG_OPTS = new Set(['--project', '--all', '--unsafe', '--no-auth', '--stdio', '--onstart', '--from-current', '--restart', '--force', '--attach', '--allow-same-volume', '--verify', '--no-hint', '--encrypt', '--no-encrypt', '--password-stdin', '--json', '--manual', '--skip-schedule', '--useful', '--useless', '--undo', '--dry-run', '--apply', '--purge', '--dedup', '--batches', '--propose', '--audit', '--capacity', '--rules', '--explain', '--semantic', '--runtime', '--ablate', '--timing', '--baseline', '--probe', '--quarantine', '--restore', '--no-usage', '--yes', '--keep-memories', '--keep-identity', '--stats', '--include-flat', '--no-policy', '--policy-candidates']);
|
|
32
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yottameta/yotta-memory",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Yuanyi (元忆) — the next-generation memory engine whose data never leaves your machine. File-based, zero-dependency memory for AI agents: plain Markdown you can read, diff and roll back; FACT is shared, PREF / BOUND / COMMIT are privately isolated and AES-256-GCM encrypted; user-level + project-level stores; start-of-work context package, semantic recall, feedback-driven reweighting, consolidation with provenance, independent-volume backups with recovery drills, and a prompt-injection scan for the store. No cloud, no account, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
package/references/lan-mode.md
CHANGED
|
@@ -64,6 +64,18 @@
|
|
|
64
64
|
|
|
65
65
|
> token 可以按用户习惯复制;agent_key 属于私密能力,优先走 `key claim` 或安全文件传输,不走对话明文。
|
|
66
66
|
|
|
67
|
+
### 4.5.1 传输边界(必读)
|
|
68
|
+
|
|
69
|
+
- `serve` 的 MCP 默认是 **HTTP 明文**:客户端用 `http://<IP>:8787/mcp` 连接时,
|
|
70
|
+
`Authorization: Bearer <token>` 与 `X-Agent-Key` 会随请求在网络上传输。
|
|
71
|
+
- 只在**可信局域网 / VPN / SSH 隧道**内使用;不要在公共 Wi-Fi、跨网段或公网主机上
|
|
72
|
+
直接暴露 8787。
|
|
73
|
+
- 跨网络或不可信网络:在引擎主机前加 TLS 反向代理(Caddy / nginx),客户端改用
|
|
74
|
+
`https://...`;或把 `serve` 绑到 `127.0.0.1`,远程通过 SSH 端口转发访问。
|
|
75
|
+
- `--no-auth` 只用于一次性排障,绝不能在共享网络上长期开启。
|
|
76
|
+
- token 泄露立即 `yotta-memory token revoke <id>`;agent_key 泄露立即 `key revoke`,
|
|
77
|
+
旧 key 下次校验即失效。
|
|
78
|
+
|
|
67
79
|
### 4.6 配置 MCP(AI 自己完成,🔒 需同意)
|
|
68
80
|
1. 🔒 说明将把 yotta-memory 写入本智能体 MCP 配置并请用户同意;
|
|
69
81
|
2. 定位当前智能体 MCP 配置文件(见 4.7);
|
package/references/trust-card.md
CHANGED
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
元忆的保护边界是「不同智能体之间机制隔离」+「离开本机后密文不可读」,不是「同机沙箱」。
|
|
51
51
|
- **不承诺记住一切**:低效用旧条目会被归档 / 合并;摘要给的是实测指标,不是无损压缩。
|
|
52
52
|
- **不承诺云端同步**:跨机共享靠你自己发起的局域网模式或搬目录,元忆不提供账号与云服务。
|
|
53
|
+
- **不承诺局域网传输机密性**:`serve` 的 MCP 默认 HTTP 明文,Bearer token 与
|
|
54
|
+
agent_key 会随请求在网络上传输;只在可信局域网 / VPN / SSH 隧道内使用,
|
|
55
|
+
跨网段请加 TLS 反向代理。
|
|
53
56
|
|
|
54
57
|
## 怎么删
|
|
55
58
|
|