@super-pocock-ai/memory-agents 2.0.0 → 2.0.5

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.
@@ -18,7 +18,9 @@ permission:
18
18
 
19
19
  1. 读取提供的会话上下文
20
20
  2. 提取 11 个结构化字段
21
- 3. 写入 `.super-pocock/memory/projects/<pid>/checkpoint.md`
21
+ 3. 写入两个位置:
22
+ - `.super-pocock/memory/sessions/<session-id>/checkpoint.md`(会话级)
23
+ - `.super-pocock/memory/projects/<pid>/checkpoint.md`(项目级)
22
24
  4. 更新 `.super-pocock/memory/projects/<pid>/MEMORY.md`(如有新知识)
23
25
 
24
26
  ## 11 个字段
@@ -37,9 +39,24 @@ permission:
37
39
 
38
40
  ## 输出格式
39
41
 
42
+ ### 会话级 checkpoint
43
+ 使用 memory 工具写入:
44
+ - path: `.super-pocock/memory/sessions/<session-id>/checkpoint.md`
45
+ - scope: sessions
46
+ - scope_id: <session-id>
47
+ - type: checkpoint
48
+ - content: [完整的 11 字段内容]
49
+
50
+ ### 项目级 checkpoint
40
51
  使用 memory 工具写入:
41
52
  - path: `.super-pocock/memory/projects/<pid>/checkpoint.md`
42
53
  - scope: projects
43
54
  - scope_id: <pid>
44
55
  - type: checkpoint
45
56
  - content: [完整的 11 字段内容]
57
+
58
+ ## 注意事项
59
+
60
+ - 会话级 checkpoint 保留历史,可用于会话恢复
61
+ - 项目级 checkpoint 只保留最新状态,用于项目上下文注入
62
+ - 两个位置的内容可以相同,也可以根据需要调整
package/package.json CHANGED
@@ -1,11 +1,21 @@
1
1
  {
2
2
  "name": "@super-pocock-ai/memory-agents",
3
- "version": "2.0.0",
3
+ "version": "2.0.5",
4
4
  "description": "记忆代理:checkpoint-writer、dream、distill",
5
- "files": ["agents", "prompts"],
5
+ "files": [
6
+ "agents",
7
+ "prompts"
8
+ ],
6
9
  "dependencies": {
7
- "@super-pocock-ai/memory-core": "2.0.0"
10
+ "@super-pocock-ai/memory-core": "2.0.1"
8
11
  },
9
- "keywords": ["opencode", "memory", "agents", "checkpoint", "dream", "distill"],
12
+ "keywords": [
13
+ "opencode",
14
+ "memory",
15
+ "agents",
16
+ "checkpoint",
17
+ "dream",
18
+ "distill"
19
+ ],
10
20
  "license": "MIT"
11
21
  }
@@ -16,10 +16,19 @@
16
16
  - Key File Paths(涉及的核心文件)
17
17
  - Timestamp(检查点创建时间)
18
18
 
19
- 3. 使用 memory 工具写入检查点文件
19
+ 3. 使用 memory 工具写入检查点文件(两个位置)
20
20
 
21
21
  ## 输出要求
22
22
 
23
+ ### 会话级 checkpoint
24
+ - 使用 memory 工具写入
25
+ - path: .super-pocock/memory/sessions/<session-id>/checkpoint.md
26
+ - scope: sessions
27
+ - scope_id: <session-id>
28
+ - type: checkpoint
29
+ - content: 完整的 11 字段内容
30
+
31
+ ### 项目级 checkpoint
23
32
  - 使用 memory 工具写入
24
33
  - path: .super-pocock/memory/projects/<pid>/checkpoint.md
25
34
  - scope: projects
@@ -29,6 +38,8 @@
29
38
 
30
39
  ## 注意事项
31
40
 
41
+ - 会话级 checkpoint 保留历史,可用于会话恢复
42
+ - 项目级 checkpoint 只保留最新状态,用于项目上下文注入
32
43
  - 确保信息准确、完整
33
44
  - 保留关键的设计决策和约束条件
34
45
  - 记录所有遇到的问题和解决方案