@yottameta/yotta-memory 0.2.0 → 0.2.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/README.md CHANGED
@@ -1,13 +1,14 @@
1
- # yotta-memory
1
+ # 元忆(yotta-memory)
2
2
 
3
- > 文件式跨智能体记忆协议与零依赖读写工具:让任何 AI 智能体活过会话。
3
+ > 元忆 —— 有权限边界的文件式智能体记忆。文件式、零依赖、可 diff / 回滚;FACT 共享、PREF / BOUND / COMMIT 私密隔离——谁该读、谁不该读,由机制而非 AI 自觉决定。
4
4
 
5
5
  ## 这是什么
6
6
 
7
7
  - **文件式记忆标准**:记忆 = Markdown + YAML frontmatter 文件,git 可版本化,任何智能体可读,数据主权在用户本地。
8
8
  - **零依赖**:无 daemon / 无数据库 / 无向量库,Node.js 自带即可运行。
9
9
  - **类型体系**:FACT(事实,公共共享)/ PREF(偏好)/ BOUND(边界)/ COMMIT(承诺)——后三者私密、per-agent 隔离。
10
- - **双级存储**:用户级 `~/.yottamemory/` + 项目级 `.yottamemory/`。
10
+ - **双级存储**:用户级 ~/.yottamemory/ + 项目级 .yottamemory/。
11
+ - **有权限边界**:FACT 进公共区共享;PREF / BOUND / COMMIT 进私密区、按 agent 隔离;读取按 scope/owner 分区,默认只返当前 agent 可读项。
11
12
 
12
13
  适用场景:跨会话续测、个人偏好与边界沉淀、多智能体协作、项目交接、收工归档。
13
14
 
@@ -19,18 +20,19 @@
19
20
  ```bash
20
21
  npx skills add YottaMeta/yotta-memory
21
22
  ```
22
- > 自动安装到已检测到的智能体(Claude Code / Codex / Cursor / OpenCode 等 78+ 智能体)。
23
+ > 自动把技能文件装到已检测到的智能体(Claude Code / Codex / Cursor / OpenCode 等 78+ 智能体)。此方式只装「技能指令」(SKILL.md 等);要使用 `yotta-memory` 读写命令,需另装 CLI:`npm install -g @yottameta/yotta-memory`(见方式二)。
23
24
 
24
25
  ### 方式二:npm 直接安装(CLI + 技能)
25
26
  ```bash
26
27
  # 国内加速(可选):npm config set registry https://registry.npmmirror.com
27
28
  npm install -g @yottameta/yotta-memory
28
29
  yotta-memory init # 初始化记忆库
29
- # 若要把技能文件装进某个智能体的 skills 目录:
30
- npx -y @yottameta/yotta-memory-install -g
31
- npx -y @yottameta/yotta-memory-install --agent codex
30
+ yotta-memory-install -g # 装进所有已识别智能体(用户级)
31
+ yotta-memory-install --agent codex # 只装进指定智能体
32
32
  ```
33
33
 
34
+ > 全局安装后 `yotta-memory`(读写下)与 `yotta-memory-install`(安装器)两个命令均已加入 PATH。若不想全局安装,可一行运行安装器:`npx -y --package @yottameta/yotta-memory yotta-memory-install -g`。
35
+
34
36
  ### 方式三:install.sh / 手动复制
35
37
  获取技能文件夹后(`npm pack` 解包或 `git clone`),进入技能文件夹:
36
38
  ```bash
package/SKILL.md CHANGED
@@ -1,14 +1,14 @@
1
1
  ---
2
2
  name: yotta-memory
3
- description: "文件式跨智能体记忆协议与零依赖读写工具。让任何 AI 智能体活过会话:开工 recall 恢复上下文、重要信息 remember 落盘、收工归档。类型体系 FACT(公共共享)/ PREF / BOUND / COMMIT(私密隔离)。触发:记住、别忘了、记一笔、记忆、remember、recall、跨会话、上次说到、续测、交接、归档"
4
- version: 0.2.0
3
+ description: "元忆 —— 有权限边界的文件式智能体记忆。文件式、零依赖、可 diff/回滚:让任何 AI 智能体活过会话,开工 recall 恢复上下文、重要信息 remember 落盘、收工归档。类型体系 FACT(公共共享)/ PREF / BOUND / COMMIT(私密隔离)。触发:记住、别忘了、记一笔、记忆、remember、recall、跨会话、上次说到、续测、交接、归档"
4
+ version: 0.2.2
5
5
  license: MIT
6
6
  ---
7
7
 
8
- # yotta-memory — 文件式跨智能体记忆
8
+ # yotta-memory(元忆)— 有权限边界的文件式智能体记忆
9
9
 
10
- > 一句话:定义记忆协议 + 提供零依赖读写 CLI,让任何 AI 智能体活过会话。
11
- > 版本:0.2.0 | 最后更新:2026-08-23
10
+ > 一句话:元忆 —— 有权限边界的文件式智能体记忆(不注入、可 diff、能回滚;FACT 共享、PREF / BOUND / COMMIT 私密隔离)。
11
+ > 版本:0.2.2 | 最后更新:2026-08-23
12
12
 
13
13
  ## 这是什么
14
14
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // yotta-memory: 文件式跨智能体记忆 CLI(零依赖)v0.2
2
+ // yotta-memory(元忆): 有权限边界的文件式智能体记忆 CLI(零依赖)
3
3
  // v0.2 增强:① index.json 索引+TF 打分 ② 质量分+盖棺分(access_count/last_accessed)③ 读取分区(scope/owner)
4
4
  'use strict';
5
5
 
@@ -7,7 +7,7 @@ const fs = require('fs');
7
7
  const path = require('path');
8
8
  const os = require('os');
9
9
 
10
- const VERSION = '0.2.0';
10
+ const VERSION = '0.2.2';
11
11
  const TYPES = ['FACT', 'PREF', 'BOUND', 'COMMIT'];
12
12
  const TYPE_DIRS = { FACT: 'facts', PREF: 'prefs', BOUND: 'bounds', COMMIT: 'commits' };
13
13
  const ARCHIVE_DIR = '.archive';
@@ -110,7 +110,7 @@ function ensureInit(root) {
110
110
  fs.mkdirSync(path.join(root, ARCHIVE_DIR), { recursive: true });
111
111
  const readme = path.join(root, 'README.md');
112
112
  if (!fs.existsSync(readme)) {
113
- fs.writeFileSync(readme, '# yotta-memory 记忆库\n\n文件式跨智能体记忆协议存储目录。结构:facts/ prefs/ bounds/ commits/ .archive/。\n', 'utf8');
113
+ fs.writeFileSync(readme, '# yotta-memory(元忆)记忆库\n\n有权限边界的文件式智能体记忆存储目录。结构:facts/ prefs/ bounds/ commits/ .archive/。\n', 'utf8');
114
114
  }
115
115
  }
116
116
  function nextSeq(dir) {
@@ -501,7 +501,7 @@ function cmdImport(src) {
501
501
 
502
502
  function usage() {
503
503
  console.log([
504
- 'yotta-memory v' + VERSION + ' — 文件式跨智能体记忆(v0.2)',
504
+ 'yotta-memory v' + VERSION + ' — 元忆:有权限边界的文件式智能体记忆',
505
505
  '',
506
506
  '用法:',
507
507
  ' yotta-memory init [--project] 初始化记忆库(默认用户级 ~/.yottamemory)',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yottameta/yotta-memory",
3
- "version": "0.2.0",
4
- "description": "文件式跨智能体记忆协议与零依赖读写工具:让任何 AI 智能体活过会话(FACT/PREF/BOUND/COMMIT 四分类,用户级+项目级双级存储)。",
3
+ "version": "0.2.2",
4
+ "description": "元忆 —— 有权限边界的文件式智能体记忆。文件式、零依赖、可 diff/回滚;FACT/PREF/BOUND/COMMIT 四分类(公共共享/私密隔离),用户级+项目级双级存储。",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "agent-skills",