@yottameta/yotta-memory 1.0.1 → 1.0.3

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.3 (2026-11-29)
4
+
5
+ - **CLI 装配提示**:SKILL.md 第 0 步明确按「PATH 中版本匹配的 CLI → 当前技能目录的 `node bin/yotta-memory.js` → 精确版本 npx → 用户确认长期使用后全局安装」解析;不再因 `PATH` 缺命令直接安装。
6
+ - 每条路径都要求回读版本并与已装 `SKILL.md` 的 `version:` 对齐;随包入口可离线、零安装运行。
7
+ - 兼容性:记忆格式、索引格式、命令参数、MCP 工具和退出码不变;1.0.2 可直接升级。
8
+
9
+ ## v1.0.2 (2026-11-29)
10
+
11
+ - 重建元忆 Agent Plugin,修复 marketplace `shortDescription` 在词中断开的问题;插件版本继续与源技能版本同步。
12
+ - 记忆格式、索引格式、CLI 参数、MCP 工具和退出码不变;1.0.1 可直接升级。
13
+
3
14
  ## v1.0.1 (2026-11-28)
4
15
 
5
16
  - **局域网传输边界**:`references/lan-mode.md` 新增 4.5.1,明确 `serve` 的 MCP 默认是 HTTP 明文,`Authorization: Bearer` 与 `X-Agent-Key` 会随请求在网络上传输;只在可信局域网 / VPN / SSH 隧道内使用,跨网段改用 TLS 反向代理或 SSH 端口转发,`--no-auth` 只用于一次性排障。
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.1
4
+ version: 1.0.3
5
5
  license: MIT
6
6
  ---
7
7
 
@@ -27,15 +27,20 @@ license: MIT
27
27
  - `yotta-memory`:引擎 CLI,读写记忆库。`npx -y @yottameta/yotta-memory` 只临时运行引擎,不安装技能。
28
28
  - `yotta-memory-install`:技能安装器。安装或更新技能:`npx -y --package @yottameta/yotta-memory yotta-memory-install --agent <name>`(或 `--dir <技能目录>`)。目标基目录 / 技能目录是符号链接(含 Windows junction)时 fail-closed 拒绝,不写穿 Hub 链接。
29
29
 
30
- 更新顺序:先 `yotta-memory --version` 记录当前版本 → `npm i -g @yottameta/yotta-memory` 升级 CLI → 再用上面的安装器升级技能 → 回读 `yotta-memory --version` 与已装 `SKILL.md` 的 `version:`;两者不一致时不得声称更新成功。
30
+ 更新顺序:先按第 0 步选择当前可用入口并记录版本 → 需要更新全局 CLI 时按第 0 步执行 → 再用上面的安装器升级技能 → 用同一入口核对版本与已装 `SKILL.md` 的 `version:`;两者不一致时不得声称更新成功。
31
31
 
32
32
  ### 开工第一步(每次会话先做)
33
33
 
34
34
  **第 0 步:CLI 就绪**
35
35
 
36
- 1. 运行 `yotta-memory --version`(或 `where yotta-memory` / `command -v yotta-memory`)。
37
- 2. 未装 → 🔒 征得同意后安装,三选一:临时 `npx -y @yottameta/yotta-memory`;长期 `npm i -g @yottameta/yotta-memory`;离线 / 无 npm 时 `git clone` 后 `bash install.sh --agent <name>`。
38
- 3. 装后回读 `--version` 出版本即就绪。
36
+ 按下面的顺序解析,能用的第一个入口即可,不因 `PATH` 缺命令就直接全局安装:
37
+
38
+ 1. `PATH` 中已有 `yotta-memory`:运行 `yotta-memory --version`;版本与已装 `SKILL.md` 的 `version:` 一致 → 直接使用。
39
+ 2. `PATH` 缺失或版本不一致:当前技能根目录含 `bin/yotta-memory.js` 时,在该目录运行 `node bin/yotta-memory.js --version`;版本一致 → 本次会话用这个随包入口(离线、零安装)。
40
+ 3. 随包入口也不存在:🔒 征得同意后临时运行 `npx -y @yottameta/yotta-memory@<技能版本> --version`(需要联网)。
41
+ 4. 确认需要长期使用时:🔒 征得同意后运行 `npm i -g @yottameta/yotta-memory@<技能版本>`,再回到第 1 步回读版本;三条命令入口都必须与已装 SKILL 对齐。
42
+
43
+ 任一入口不可执行或版本不一致时,明确报告已尝试的入口与下一步,不继续读写记忆库。
39
44
 
40
45
  **A. 确认记忆库位置**(避免「recall 读空库 / 错库」)
41
46
 
@@ -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.1';
29
+ const VERSION = '1.0.3';
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.1",
3
+ "version": "1.0.3",
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": [
@@ -3,7 +3,7 @@
3
3
  "slug": "yotta-memory",
4
4
  "name": "元忆",
5
5
  "package": "@yottameta/yotta-memory",
6
- "version": "1.0.1",
6
+ "version": "1.0.3",
7
7
  "trust": "yottameta",
8
8
  "install": {
9
9
  "idempotent": true