@smyslenny/agent-memory 2.0.0 → 2.1.0

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.
@@ -0,0 +1,22 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ vitest:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ node: [18, 20, 22]
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v4
17
+ with:
18
+ node-version: ${{ matrix.node }}
19
+ cache: npm
20
+ - run: npm ci
21
+ - run: npm test
22
+
package/README.md CHANGED
@@ -37,8 +37,8 @@ Inspired by how human brains consolidate memories during sleep, AgentMemory mana
37
37
  | 🕸️ **Knowledge Graph** | Multi-hop traversal across memory associations | PowerMem |
38
38
  | 📸 **Snapshots** | Auto-snapshot before every change, one-click rollback | nocturne + Memory Palace |
39
39
  | 🔍 **Intent-Aware Search** | Factual / temporal / causal / exploratory query routing | Memory Palace |
40
- | 🌙 **Sleep Cycle** | Automated sync → decay → tidy → govern pipeline | **Our original design** |
41
- | 💚 **Priority System** | P0 identity (never decays) → P3 event (14-day half-life) | **Our original design** |
40
+ | 🌙 **Sleep Cycle** | Automated sync → decay → tidy → govern pipeline | - |
41
+ | 💚 **Priority System** | P0 identity (never decays) → P3 event (14-day half-life) | - |
42
42
  | 🤝 **Multi-Agent** | Agent isolation via `agent_id` scope | PowerMem |
43
43
  | 🔌 **MCP Server** | 9 tools, works with Claude Code / Cursor / OpenClaw | Standard MCP |
44
44
 
@@ -47,7 +47,7 @@ Inspired by how human brains consolidate memories during sleep, AgentMemory mana
47
47
  ### Install
48
48
 
49
49
  ```bash
50
- npm install agent-memory
50
+ npm install @smyslenny/agent-memory
51
51
  ```
52
52
 
53
53
  ### CLI
@@ -79,7 +79,7 @@ agent-memory status
79
79
  ### Library
80
80
 
81
81
  ```typescript
82
- import { openDatabase, syncOne, searchBM25, boot, runDecay } from 'agent-memory';
82
+ import { openDatabase, syncOne, searchBM25, boot, runDecay } from '@smyslenny/agent-memory';
83
83
 
84
84
  const db = openDatabase({ path: './memory.db' });
85
85
 
@@ -106,9 +106,9 @@ runDecay(db);
106
106
  ```json
107
107
  {
108
108
  "mcpServers": {
109
- "agent-memory": {
109
+ "@smyslenny/agent-memory": {
110
110
  "command": "node",
111
- "args": ["node_modules/agent-memory/dist/mcp/server.js"],
111
+ "args": ["node_modules/@smyslenny/agent-memory/dist/mcp/server.js"],
112
112
  "env": {
113
113
  "AGENT_MEMORY_DB": "./memory.db"
114
114
  }
package/README.zh-CN.md CHANGED
@@ -36,8 +36,8 @@ AI Agent 每次会话都会遗忘一切。上下文窗口有限,对话历史
36
36
  | 🕸️ **知识图谱** | 记忆关联的多跳遍历 | PowerMem |
37
37
  | 📸 **快照系统** | 每次修改前自动快照,一键回滚 | nocturne + Memory Palace |
38
38
  | 🔍 **意图感知搜索** | 事实型/时间型/因果型/探索型查询路由 | Memory Palace |
39
- | 🌙 **睡眠周期** | 自动化 sync → decay → tidy → govern 流水线 | **我们的原创设计** |
40
- | 💚 **优先级系统** | P0 身份(永不衰减)→ P3 事件(14天半衰期) | **我们的原创设计** |
39
+ | 🌙 **睡眠周期** | 自动化 sync → decay → tidy → govern 流水线 | - |
40
+ | 💚 **优先级系统** | P0 身份(永不衰减)→ P3 事件(14天半衰期) | - |
41
41
  | 🤝 **多 Agent** | 通过 `agent_id` 实现记忆隔离 | PowerMem |
42
42
  | 🔌 **MCP Server** | 9 个工具,支持 Claude Code / Cursor / OpenClaw | 标准 MCP |
43
43
 
@@ -46,7 +46,7 @@ AI Agent 每次会话都会遗忘一切。上下文窗口有限,对话历史
46
46
  ### 安装
47
47
 
48
48
  ```bash
49
- npm install agent-memory
49
+ npm install @smyslenny/agent-memory
50
50
  ```
51
51
 
52
52
  ### 命令行
@@ -78,7 +78,7 @@ agent-memory status
78
78
  ### 作为库使用
79
79
 
80
80
  ```typescript
81
- import { openDatabase, syncOne, searchBM25, boot, runDecay } from 'agent-memory';
81
+ import { openDatabase, syncOne, searchBM25, boot, runDecay } from '@smyslenny/agent-memory';
82
82
 
83
83
  const db = openDatabase({ path: './memory.db' });
84
84
 
@@ -105,9 +105,9 @@ runDecay(db);
105
105
  ```json
106
106
  {
107
107
  "mcpServers": {
108
- "agent-memory": {
108
+ "@smyslenny/agent-memory": {
109
109
  "command": "node",
110
- "args": ["node_modules/agent-memory/dist/mcp/server.js"],
110
+ "args": ["node_modules/@smyslenny/agent-memory/dist/mcp/server.js"],
111
111
  "env": {
112
112
  "AGENT_MEMORY_DB": "./memory.db"
113
113
  }