@yottameta/yotta-memory 0.8.3 → 0.8.4
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 +7 -0
- package/README.md +28 -22
- package/README.zh-CN.md +28 -22
- package/SKILL.md +2 -2
- package/USER_GUIDE.md +3 -3
- package/bin/yotta-memory.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## v0.8.4 (2026-08-29)
|
|
4
|
+
|
|
5
|
+
- 安装方式统一为四方式(对齐发布规范 §3.3.1):方式一 `npx -y @yottameta/yotta-memory --agent <name>` / `--dir <dir>`(推荐,走 npm 源);方式二 `git clone https://github.com/YottaMeta/yotta-memory.git`;方式三 GitHub Download ZIP;方式四 `bash install.sh --agent/--dir/--list`。移除 `npx skills` 与 `-g` 推荐;中英双 README 安装节同步。
|
|
6
|
+
- 版本对齐:package.json / SKILL.md / CHANGELOG / 引擎 VERSION / 测试断言 / README 锚点 = 0.8.4。
|
|
7
|
+
- 修复:SKILL.md / USER_GUIDE.md 安装命令改 `--agent <name>` 合规形式(`npx -y --package @yottameta/yotta-memory yotta-memory-install --agent <name>`),移除 `-g` 与 `npx skills` 推荐。
|
|
8
|
+
- 无功能变更(仅文档与版本同步)。
|
|
9
|
+
|
|
3
10
|
## v0.8.3 (2026-08-28)
|
|
4
11
|
|
|
5
12
|
中英双语 README 对齐(老张拍板「英文门面 + 中文全档」):
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
> 📖 The user-facing operations manual lives in [USER_GUIDE.md](USER_GUIDE.md).
|
|
25
25
|
|
|
26
|
-
> 🆕 **v0.8.
|
|
26
|
+
> 🆕 **v0.8.4**: bilingual README alignment — README.md becomes the English facade (GitHub / npm / ClawHub homepage) and README.zh-CN.md carries the full Chinese doc; no functional changes.
|
|
27
27
|
|
|
28
28
|
## Core value
|
|
29
29
|
|
|
@@ -117,34 +117,40 @@ Each agent has a globally unique agent ID: it is the ownership key for private m
|
|
|
117
117
|
|
|
118
118
|
## Install
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
Yotta Memory ships as a **CLI + skill** pair: the `yotta-memory` command reads/writes the memory store, and the skill teaches agents the workflow. Pick any of the four methods below; the order is the recommended priority. Skill files always come from **npm** (GitHub can be slow without a proxy; npm supports mirrors).
|
|
121
121
|
|
|
122
|
-
### Method 1:
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
### Method 1: npm one-liner (recommended)
|
|
123
|
+
|
|
124
|
+
```text
|
|
125
|
+
# Optional China mirror: npm config set registry https://registry.npmmirror.com
|
|
126
|
+
npx -y --package @yottameta/yotta-memory yotta-memory-install --agent <agent-name> # install the skill to the agent's default user-level dir
|
|
127
|
+
npx -y --package @yottameta/yotta-memory yotta-memory-install --dir <your-skills-dir> # point to the skills dir itself (e.g. ~/.codex/skills)
|
|
125
128
|
```
|
|
126
|
-
> Auto-installs the skill files into detected agents (Claude Code / Codex / Cursor / OpenCode and 78+ more). This installs only the skill instructions (SKILL.md etc.); to use the `yotta-memory` read/write commands you also need the CLI: `npm install -g @yottameta/yotta-memory` (see method 2).
|
|
127
129
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
npm install -g @yottameta/yotta-memory
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
- `--agent <name>` installs to that agent's default user-level directory; `--list` shows each agent's default directory.
|
|
131
|
+
- `--dir <path>` installs to the given directory; for agents not in the preset list, point `--dir` at their skills directory.
|
|
132
|
+
- If the mirror has not synced the new package (404): add `--registry=https://registry.npmjs.org/` (a proxy may be needed in China), or wait for the mirror cache.
|
|
133
|
+
- To read/write memories, also install the CLI: `npm install -g @yottameta/yotta-memory` (see the CLI usage section below).
|
|
134
|
+
|
|
135
|
+
### Method 2: git clone (developers / git available)
|
|
136
|
+
|
|
137
|
+
```text
|
|
138
|
+
git clone https://github.com/YottaMeta/yotta-memory.git <your-skills-dir>/yotta-memory
|
|
135
139
|
```
|
|
136
140
|
|
|
137
|
-
|
|
141
|
+
### Method 3: GitHub Download ZIP (manual / no git)
|
|
138
142
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
bash install.sh --
|
|
143
|
+
On the GitHub repository `YottaMeta/yotta-memory`, click **Code → Download ZIP**, unzip it and put the `yotta-memory` folder into the agent's skills directory.
|
|
144
|
+
|
|
145
|
+
### Method 4: install.sh (multi-agent one-liner script)
|
|
146
|
+
|
|
147
|
+
```text
|
|
148
|
+
bash install.sh --agent <name> # install to the agent's default user-level directory
|
|
149
|
+
bash install.sh --dir <path> # install to the given directory
|
|
150
|
+
bash install.sh --list # list agents -> default directories
|
|
145
151
|
```
|
|
146
|
-
You can also copy the whole `yotta-memory` folder into the target agent's skills directory (common locations via install.sh --list).
|
|
147
152
|
|
|
153
|
+
> Method 1 uses the npm registry (npmmirror / npmjs) and does not depend on GitHub; Methods 2/3 use GitHub and may fail without a proxy in China.
|
|
148
154
|
## Upgrade
|
|
149
155
|
|
|
150
156
|
Two upgrade paths match the two install paths:
|
|
@@ -154,7 +160,7 @@ Two upgrade paths match the two install paths:
|
|
|
154
160
|
npm i -g @yottameta/yotta-memory
|
|
155
161
|
```
|
|
156
162
|
|
|
157
|
-
**Upgrade the skill**: rerun
|
|
163
|
+
**Upgrade the skill**: rerun your install command from the `## Install` section (e.g. `npx -y --package @yottameta/yotta-memory yotta-memory-install --agent <name>` or `bash install.sh --agent <name>`) to overwrite the old skill folder.
|
|
158
164
|
|
|
159
165
|
> Upgrades only affect commands and skill files — **they never touch your stored memories** (memory is independent of the install, kept in its own directory).
|
|
160
166
|
|
package/README.zh-CN.md
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
| **双级存储** | 用户级 `~/.yottamemory/`(跨项目)+ 项目级 `.yottamemory/`(随项目共享 / 交接)|
|
|
52
52
|
| **检索与生命周期** | 语义检索(v0.8.0:同义词 / 拼音 / 字段加权 / 模糊,零依赖)+ 效用分融合排序;统一效用分(盖棺分)规则层自动归档 / 遗忘候选 / 去重(`maintain`,默认 dry-run),记忆库越用越精简 |
|
|
53
53
|
| **越用越懂(v0.6.0)** | `profile` 画像聚合(零推断)+ `context` 开工上下文包(身份 / 画像 / 近期记忆 / 边界 / 承诺)+ SKILL「记忆守则」规则层,记忆随使用成长 |
|
|
54
|
-
| **生态分发** | GitHub + npm 双源同步发布;npx
|
|
54
|
+
| **生态分发** | GitHub + npm 双源同步发布;npx / git clone / Download ZIP / install.sh 四种安装方式,覆盖 17+ 类智能体目录 |
|
|
55
55
|
| **便携记忆盘(随盘走)** | 记忆库即引擎:装在硬盘 / 主机上,插上即恢复全部记忆;引擎主机只需装 CLI 当存放点,无需装任何 AI 智能体 |
|
|
56
56
|
| **局域网共享与自启** | 每智能体独立 token(Bearer + X-Agent-Id)鉴权、可吊销;`lan enable` 注册开机自启(Windows:优先计划任务,非管理员自动降级用户级 Startup 静默自启;Linux:systemd 用户单元,不可用时自动降级用户 crontab @reboot);MCP 工具集与 CLI 一致(8 个工具),管理动作不远程暴露 |
|
|
57
57
|
| **本地 / 局域网双模式** | 本地 `serve --stdio` 零进程、按需拉起(无常驻);局域网 streamable HTTP 常驻——两种模式可并存、按需选用 |
|
|
@@ -154,34 +154,40 @@
|
|
|
154
154
|
|
|
155
155
|
## 安装
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
元忆为「CLI + 技能」双体:`yotta-memory` 命令负责读写记忆库,技能负责教智能体工作流。以下四种方式任选,顺序即推荐优先级;技能文件一律从 **npm** 获取(GitHub 无代理较慢,npm 支持镜像)。
|
|
158
158
|
|
|
159
|
-
### 方式一:
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
### 方式一:npm 一行装(推荐)
|
|
160
|
+
|
|
161
|
+
```text
|
|
162
|
+
# 可选国内加速:npm config set registry https://registry.npmmirror.com
|
|
163
|
+
npx -y --package @yottameta/yotta-memory yotta-memory-install --agent <智能体名称> # 装到指定智能体默认用户级技能目录
|
|
164
|
+
npx -y --package @yottameta/yotta-memory yotta-memory-install --dir <智能体的技能目录> # 指到技能目录本身(如 ~/.codex/skills)
|
|
162
165
|
```
|
|
163
|
-
> 自动把技能文件装到已检测到的智能体(Claude Code / Codex / Cursor / OpenCode 等 78+ 智能体)。此方式只装「技能指令」(SKILL.md 等);要使用 `yotta-memory` 读写命令,需另装 CLI:`npm install -g @yottameta/yotta-memory`(见方式二)。
|
|
164
166
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
npm install -g @yottameta/yotta-memory
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
- `--agent <name>` 自动装到该智能体默认用户级目录;`--list` 可查看各智能体默认目录。
|
|
168
|
+
- `--dir <路径>` 装到指定的技能目录;未收录的智能体用 `--dir` 指到它的技能目录。
|
|
169
|
+
- npmmirror 未同步新包(404):加 `--registry=https://registry.npmjs.org/`(国内需代理),或稍等镜像缓存。
|
|
170
|
+
- 若要读写记忆,需安装 CLI:`npm install -g @yottameta/yotta-memory`(用法见「CLI 用法」)。
|
|
171
|
+
|
|
172
|
+
### 方式二:git clone(开发者 / 有 git 环境)
|
|
173
|
+
|
|
174
|
+
```text
|
|
175
|
+
git clone https://github.com/YottaMeta/yotta-memory.git <智能体的技能目录>/yotta-memory
|
|
172
176
|
```
|
|
173
177
|
|
|
174
|
-
|
|
178
|
+
### 方式三:GitHub 下载压缩包(手动 / 无 git 环境)
|
|
175
179
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
bash install.sh --
|
|
180
|
+
在 GitHub 仓库 `YottaMeta/yotta-memory` 点 **Code → Download ZIP**,解压后把 `yotta-memory` 文件夹放进智能体技能目录。
|
|
181
|
+
|
|
182
|
+
### 方式四:install.sh(多智能体一键脚本)
|
|
183
|
+
|
|
184
|
+
```text
|
|
185
|
+
bash install.sh --agent <name> # 装到指定智能体默认用户级目录
|
|
186
|
+
bash install.sh --dir <path> # 装到指定目录
|
|
187
|
+
bash install.sh --list # 列出智能体 -> 默认目录
|
|
182
188
|
```
|
|
183
|
-
也可把整个 `yotta-memory` 文件夹复制到目标智能体的 skills 目录(常见位置见 install.sh --list)。
|
|
184
189
|
|
|
190
|
+
> 方式一走 npm 源(npmmirror / npmjs),不依赖 GitHub;方式二 / 三走 GitHub,国内无代理可能失败。
|
|
185
191
|
## 升级
|
|
186
192
|
|
|
187
193
|
两种升级方式对应两种安装方式:
|
|
@@ -191,7 +197,7 @@ bash install.sh --dir /path/to/skills
|
|
|
191
197
|
npm i -g @yottameta/yotta-memory
|
|
192
198
|
```
|
|
193
199
|
|
|
194
|
-
|
|
200
|
+
**升级技能**:重跑「安装」节中的命令(如 `npx -y --package @yottameta/yotta-memory yotta-memory-install --agent <name>` 或 `bash install.sh --agent <name>`),覆盖旧版技能文件夹。
|
|
195
201
|
|
|
196
202
|
> 升级只影响命令与技能文件,**不会动你已存的记忆**(记忆是独立于安装的文件,保留在原目录)。
|
|
197
203
|
|
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 候选预过滤"
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.4
|
|
5
5
|
license: MIT
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -113,7 +113,7 @@ license: MIT
|
|
|
113
113
|
- 未装 → 🔒 **征得同意后**自动安装(三选一,AI 判断;装后回读 `--version` 出版本即就绪):
|
|
114
114
|
- 临时使用:`npx -y @yottameta/yotta-memory`
|
|
115
115
|
- 长期使用:`npm i -g @yottameta/yotta-memory`
|
|
116
|
-
- 离线 / 国内 / 无 npm:git clone 仓库(或手动下载 install.sh)后执行 `bash install.sh
|
|
116
|
+
- 离线 / 国内 / 无 npm:git clone 仓库(或手动下载 install.sh)后执行 `bash install.sh --agent <name>`
|
|
117
117
|
|
|
118
118
|
**A. 确认记忆库位置**(AI 不会自动知道记忆库在哪,先检测,避免「recall 读空库 / 错库」):
|
|
119
119
|
|
package/USER_GUIDE.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|---|---|---|
|
|
43
43
|
| npm 全局(推荐) | `npm i -g @yottameta/yotta-memory` | 长期使用 |
|
|
44
44
|
| npx 临时 | `npx -y @yottameta/yotta-memory` | 临时试用 |
|
|
45
|
-
| install.sh | git clone 仓库后 `bash install.sh
|
|
45
|
+
| install.sh | git clone 仓库后 `bash install.sh --agent <name>`(或手动下载 install.sh 执行)| 离线 / 国内 / 无 npm |
|
|
46
46
|
|
|
47
47
|
安装后验证:`yotta-memory --version` 能输出版本号即成功。
|
|
48
48
|
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
|
|
51
51
|
| 方式 | 命令 | 适用 |
|
|
52
52
|
|---|---|---|
|
|
53
|
-
| npx
|
|
54
|
-
| 安装器(npm 全局时) | `yotta-memory-install
|
|
53
|
+
| npx 一行装(推荐) | `npx -y --package @yottameta/yotta-memory yotta-memory-install --agent <name>` | 装到指定智能体默认用户级目录 |
|
|
54
|
+
| 安装器(npm 全局时) | `yotta-memory-install --agent <name>` | 装到指定智能体目录 |
|
|
55
55
|
| 手动 | 把整个 `yotta-memory` 文件夹复制到智能体的 skills 目录 | 离线 |
|
|
56
56
|
|
|
57
57
|
> CLI 与技能分工不同:CLI 让命令行能读写记忆;技能让 AI 知道「开工 recall 恢复上下文、重要信息 remember 落盘、收工归档」。只装 CLI 不装技能,AI 不会自动使用这套工作流。
|
package/bin/yotta-memory.js
CHANGED
|
@@ -22,7 +22,7 @@ const crypto = require('crypto');
|
|
|
22
22
|
const http = require('http');
|
|
23
23
|
const child_process = require('child_process');
|
|
24
24
|
|
|
25
|
-
const VERSION = '0.8.
|
|
25
|
+
const VERSION = '0.8.4';
|
|
26
26
|
const TYPES = ['FACT', 'PREF', 'BOUND', 'COMMIT'];
|
|
27
27
|
const TYPE_DIRS = { FACT: 'facts', PREF: 'prefs', BOUND: 'bounds', COMMIT: 'commits' };
|
|
28
28
|
const PUBLIC_DIR = 'facts';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yottameta/yotta-memory",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Yuanyi (元忆) — boundary-aware, file-based memory for AI agents. File-based, zero-dependency, diff/rollback-able; FACT/PREF/BOUND/COMMIT four types (public shared / private isolated), user-level + project-level storage; v0.8 semantic search + usage feedback loop + rule-layer self-organization + psychological-log distillation (self-learning/self-evolving/self-improving).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|