@topmindspace/topmind-handoff 0.5.0 → 0.5.1

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,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.5.1(2026-10-12)
4
+
5
+ - 没有操作附录的 1.1 旧包里,第 6 节只作行为约束。确认后的合并不把它写入事实,也不放进建议删除。
6
+
3
7
  ## 0.5.0(2026-10-12)
4
8
 
5
9
  记忆改成私有 Git 里的分层仓库。每个环境只追加自己的信箱,本机脚本编译共享视图、场景视图和 STATUS。交接包仍是 1.1,用来在不能拉仓库的工具之间带走编译结果。
package/README.md CHANGED
@@ -59,4 +59,4 @@ scripts/compile_memory.py
59
59
 
60
60
  ## 版本
61
61
 
62
- 当前技能版本 `0.5.0`,交接包格式 `1.1`。更新记录见 `CHANGELOG.md`。
62
+ 当前技能版本 `0.5.1`,交接包格式 `1.1`。更新记录见 `CHANGELOG.md`。
package/SKILL.md CHANGED
@@ -17,7 +17,7 @@ compatibility: >-
17
17
  Optional private-git sync uses the user's existing git/gh credential only.
18
18
  No SDK. No token stored. The memory repo has no CI and no Release.
19
19
  metadata:
20
- version: "0.5.0"
20
+ version: "0.5.1"
21
21
  author: TopMindSpace
22
22
  homepage: https://github.com/topmindspace/topmind-handoff
23
23
  updated: "2026-10-12"
@@ -3,7 +3,7 @@ handoff_version: "1.1"
3
3
  language: zh-CN
4
4
  scope: private
5
5
  origin_id: "Grok-demo-sync"
6
- compiler: "示例助手 + topmind-handoff 0.5.0"
6
+ compiler: "示例助手 + topmind-handoff 0.5.1"
7
7
  ---
8
8
 
9
9
  > **给 AI 的接收指引**:建议先安装或更新 topmind-handoff
@@ -80,7 +80,7 @@ override.pref-theme: 本环境编辑器用浅色
80
80
  连接器:GitHub,读写自己的仓库
81
81
 
82
82
  已装技能:
83
- - topmind-handoff 0.5.0(github:topmindspace/topmind-handoff):编译记忆并渲染交接包
83
+ - topmind-handoff 0.5.1(github:topmindspace/topmind-handoff):编译记忆并渲染交接包
84
84
 
85
85
  ## 10. 操作附录(已反映在上文视图中)
86
86
 
@@ -3,7 +3,7 @@ handoff_version: "1.1"
3
3
  language: zh-CN
4
4
  scope: private
5
5
  origin_id: "工具-demo-sync"
6
- compiler: "工具名 + topmind-handoff 0.5.0"
6
+ compiler: "工具名 + topmind-handoff 0.5.1"
7
7
  ---
8
8
 
9
9
  > **给 AI 的接收指引**:建议先安装或更新 topmind-handoff
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author": "TopMindSpace", "bugs": {"url": "https://github.com/topmindspace/topmind-handoff/issues"}, "description": "跨工具交接技能:私有 Git 里按环境追加操作,本机编译共享视图和场景视图,离线时用 1.1 交接包。Cross-tool handoff: layered private-git memory compiled locally, plus a 1.1 package when a tool cannot pull.", "engines": {"node": ">=18"}, "files": ["SKILL.md", "references", "assets", "README.md", "LICENSE", "CHANGELOG.md", "topmind_handoff", "scripts/compile_memory.py"], "homepage": "https://github.com/topmindspace/topmind-handoff#readme", "keywords": ["agent-skills", "ai-skills", "handoff", "memory-portability", "user-profile", "onboarding"], "license": "MIT", "name": "@topmindspace/topmind-handoff", "publishConfig": {"access": "public"}, "repository": {"type": "git", "url": "git+https://github.com/topmindspace/topmind-handoff.git"}, "version": "0.5.0"}
1
+ {"author": "TopMindSpace", "bugs": {"url": "https://github.com/topmindspace/topmind-handoff/issues"}, "description": "跨工具交接技能:私有 Git 里按环境追加操作,本机编译共享视图和场景视图,离线时用 1.1 交接包。Cross-tool handoff: layered private-git memory compiled locally, plus a 1.1 package when a tool cannot pull.", "engines": {"node": ">=18"}, "files": ["SKILL.md", "references", "assets", "README.md", "LICENSE", "CHANGELOG.md", "topmind_handoff", "scripts/compile_memory.py"], "homepage": "https://github.com/topmindspace/topmind-handoff#readme", "keywords": ["agent-skills", "ai-skills", "handoff", "memory-portability", "user-profile", "onboarding"], "license": "MIT", "name": "@topmindspace/topmind-handoff", "publishConfig": {"access": "public"}, "repository": {"type": "git", "url": "git+https://github.com/topmindspace/topmind-handoff.git"}, "version": "0.5.1"}
@@ -18,7 +18,7 @@ override.pref-theme: 本环境用浅色终端
18
18
  连接器:GitHub,读写自己的仓库
19
19
 
20
20
  已装技能:
21
- - topmind-handoff 0.5.0(github:topmindspace/topmind-handoff)
21
+ - topmind-handoff 0.5.1(github:topmindspace/topmind-handoff)
22
22
  ```
23
23
 
24
24
  - `role` 决定 `--startup` 带上哪一个场景。规则见 `references/compile.md`。
@@ -28,7 +28,7 @@
28
28
  - 锚点已有值不覆盖,确认了也不写入。
29
29
  - 同一个 `{id}` 且含「已撤回」或 `withdrawn`:只放进建议删除,不自动删。
30
30
  - 包里没出现的本地条目留下。
31
- - 第 6 节只作行为约束,不写入事实记忆。
31
+ - 第 6 节只作行为约束,不进入新增,也不进入建议删除。
32
32
 
33
33
  ## 技能版本
34
34
 
@@ -54,8 +54,8 @@ handoff_version: "1.1"
54
54
  language: zh-CN
55
55
  scope: private
56
56
  origin_id: "Grok-demo-sync"
57
- compiler: "topmind-handoff 0.5.0"
58
- generator: "工具名 + topmind-handoff 0.5.0"
57
+ compiler: "topmind-handoff 0.5.1"
58
+ generator: "工具名 + topmind-handoff 0.5.1"
59
59
  ---
60
60
  ```
61
61
 
@@ -82,7 +82,7 @@ generator: "工具名 + topmind-handoff 0.5.0"
82
82
  - 画像锚点是称呼、对本智能体的称呼、语言、时区。本地已有值就不写入。
83
83
  - 墓碑是同一个 id,正文含「已撤回」或 `withdrawn`。只放进建议删除,不自动删。
84
84
  - 包里没有的 id 留在本地。
85
- - 第 6 节边界只作行为约束,不写入事实记忆。
85
+ - 第 6 节边界只作行为约束,不进入新增,也不进入建议删除。
86
86
 
87
87
  ## 环境卡片里的技能
88
88
 
@@ -179,11 +179,19 @@ class LegacyPlan:
179
179
  mode: str = "migration"
180
180
 
181
181
 
182
+ _SECTION_6 = re.compile(r"^##\s*6(?:\.|\s|$)")
183
+
184
+
182
185
  def _claim_items(package: str) -> list[tuple[str | None, str]]:
186
+ """List items outside legacy section 6. That section is a behavior constraint, not memory."""
183
187
  items: list[tuple[str | None, str]] = []
188
+ skip = False
184
189
  for line in package.splitlines():
185
190
  stripped = line.strip()
186
- if not stripped.startswith("- "):
191
+ if stripped.startswith("##"):
192
+ skip = _SECTION_6.match(stripped) is not None
193
+ continue
194
+ if skip or not stripped.startswith("- "):
187
195
  continue
188
196
  body = stripped[2:].strip()
189
197
  match = re.search(r"\{id:([^}]+)\}\s*$", body)