wangchuan 2.3.0 → 2.3.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/package.json +1 -1
- package/skill/SKILL.md +42 -48
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -1,80 +1,74 @@
|
|
|
1
|
-
# wangchuan —
|
|
1
|
+
# wangchuan — AI Agent Memory Sync Skill
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
忘川(Wangchuan)AI 记忆同步系统的 OpenClaw Skill 封装。在对话中直接调用以同步 AI 智能体的配置文件,跨环境永不遗失记忆。
|
|
3
|
+
## Overview
|
|
6
4
|
|
|
7
5
|
OpenClaw Skill wrapper for the Wangchuan AI memory sync system. Invoke directly in conversation to sync AI agent configs — memories never lost across environments.
|
|
8
6
|
|
|
9
|
-
##
|
|
7
|
+
## Command Reference
|
|
10
8
|
|
|
11
9
|
```
|
|
12
|
-
wangchuan list [--agent openclaw|claude|gemini]
|
|
13
|
-
wangchuan status [--agent openclaw|claude|gemini]
|
|
14
|
-
wangchuan diff [--agent openclaw|claude|gemini]
|
|
15
|
-
wangchuan pull [--agent openclaw|claude|gemini]
|
|
16
|
-
wangchuan push [--agent <name>] [-m "
|
|
17
|
-
wangchuan dump [--agent openclaw|claude|gemini]
|
|
18
|
-
wangchuan init --repo <git
|
|
10
|
+
wangchuan list [--agent openclaw|claude|gemini] List managed configs
|
|
11
|
+
wangchuan status [--agent openclaw|claude|gemini] Show sync status & diff summary
|
|
12
|
+
wangchuan diff [--agent openclaw|claude|gemini] Show line-level file diff
|
|
13
|
+
wangchuan pull [--agent openclaw|claude|gemini] Pull & restore from repo
|
|
14
|
+
wangchuan push [--agent <name>] [-m "<msg>"] Encrypt & push to repo
|
|
15
|
+
wangchuan dump [--agent openclaw|claude|gemini] Plaintext snapshot to temp dir
|
|
16
|
+
wangchuan init --repo <git-url> First-time init
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
##
|
|
19
|
+
## Invocation Examples
|
|
22
20
|
|
|
23
|
-
>
|
|
21
|
+
> List all files managed by Wangchuan
|
|
24
22
|
|
|
25
|
-
>
|
|
23
|
+
> Check Wangchuan sync status
|
|
26
24
|
|
|
27
|
-
>
|
|
25
|
+
> Show diff for openclaw only
|
|
28
26
|
|
|
29
|
-
>
|
|
27
|
+
> Pull the latest AI memories to local
|
|
30
28
|
|
|
31
|
-
>
|
|
29
|
+
> Pull openclaw configs only
|
|
32
30
|
|
|
33
|
-
>
|
|
31
|
+
> Push my MEMORY.md changes with note "update project memory"
|
|
34
32
|
|
|
35
|
-
>
|
|
33
|
+
> Push claude configs only
|
|
36
34
|
|
|
37
|
-
>
|
|
35
|
+
> Generate a plaintext dump so I can inspect
|
|
38
36
|
|
|
39
|
-
##
|
|
37
|
+
## Output Guide
|
|
40
38
|
|
|
41
39
|
### list
|
|
42
|
-
- `✔
|
|
43
|
-
- `✔
|
|
44
|
-
- `✖
|
|
45
|
-
- `[enc]` —
|
|
46
|
-
- `[
|
|
40
|
+
- `✔ local ✔ repo` — Present on both sides, in sync
|
|
41
|
+
- `✔ local · repo` — Local only, not yet pushed
|
|
42
|
+
- `✖ local ✔ repo` — In repo but missing locally, run pull
|
|
43
|
+
- `[enc]` — Encrypted (AES-256-GCM)
|
|
44
|
+
- `[field]` — JSON field-level extraction (only syncs specified fields)
|
|
47
45
|
|
|
48
46
|
### diff
|
|
49
|
-
- `+`
|
|
50
|
-
- `-`
|
|
51
|
-
-
|
|
52
|
-
- `[enc]` —
|
|
47
|
+
- `+` green lines — Local additions
|
|
48
|
+
- `-` red lines — Removed locally
|
|
49
|
+
- Gray lines — Context (unchanged)
|
|
50
|
+
- `[enc]` — Encrypted files auto-decrypted for comparison
|
|
53
51
|
|
|
54
52
|
### push / pull
|
|
55
|
-
- `[
|
|
56
|
-
- `[
|
|
57
|
-
- `⚠
|
|
58
|
-
|
|
59
|
-
## --agent 说明 / --agent Filter
|
|
53
|
+
- `[encrypted]` / `[decrypted]` — Processed with AES-256-GCM
|
|
54
|
+
- `[pruned]` — Stale files removed from repo (delete propagation)
|
|
55
|
+
- `⚠ local-only` — Local-only files detected, suggest push
|
|
60
56
|
|
|
61
|
-
|
|
57
|
+
## --agent Filter
|
|
62
58
|
|
|
63
59
|
All commands support `--agent` to filter by agent.
|
|
64
60
|
|
|
65
|
-
|
|
|
66
|
-
|
|
67
|
-
| `openclaw` | MEMORY.md(
|
|
68
|
-
| `claude` | CLAUDE.md
|
|
69
|
-
| `gemini` | settings.internal.json→security+model
|
|
70
|
-
|
|
71
|
-
不指定 `--agent` 时,同时操作所有已启用的 agent 及 shared 共享层(skills/MCP/共享记忆)。
|
|
61
|
+
| Value | Description |
|
|
62
|
+
|-------|-------------|
|
|
63
|
+
| `openclaw` | MEMORY.md (enc), AGENTS.md, SOUL.md — default ~/.openclaw/workspace/ |
|
|
64
|
+
| `claude` | CLAUDE.md, settings.json (enc), .claude.json → mcpServers field extraction (enc) — default ~/.claude-internal/ |
|
|
65
|
+
| `gemini` | settings.internal.json → security + model field extraction (enc) — default ~/.gemini/ |
|
|
72
66
|
|
|
73
67
|
When omitted, operates on all enabled agents plus the shared tier (skills/MCP/shared memory).
|
|
74
68
|
|
|
75
|
-
##
|
|
69
|
+
## Prerequisites
|
|
76
70
|
|
|
77
71
|
1. Node.js ≥ 18
|
|
78
|
-
2.
|
|
79
|
-
3.
|
|
80
|
-
4.
|
|
72
|
+
2. `wangchuan init` has been run (~/.wangchuan/config.json exists)
|
|
73
|
+
3. Local SSH key has access to the target git repo
|
|
74
|
+
4. Copy `~/.wangchuan/master.key` manually when migrating across machines
|