wangchuan 2.5.0 → 2.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/README.md +20 -2
- package/dist/bin/wangchuan.js +1 -1
- package/package.json +1 -1
- package/skill/SKILL.md +5 -0
package/README.md
CHANGED
|
@@ -23,9 +23,11 @@ AI memory sync system — encrypted backup and cross-environment migration for O
|
|
|
23
23
|
| `diff` | 逐文件显示本地与仓库的行级差异(自动解密)/ Show line-level diff per file (auto-decrypt) |
|
|
24
24
|
| `list` | 列出所有托管文件,显示本地/仓库存在状态 / List all managed files with local/repo presence |
|
|
25
25
|
| `dump` | 生成明文快照到临时目录,方便检查同步内容 / Generate plaintext snapshot to temp dir for inspection |
|
|
26
|
+
| `lang` | 切换 CLI 显示语言(zh/en)/ Switch CLI display language (zh/en) |
|
|
26
27
|
|
|
27
28
|
- **AES-256-GCM** 加密:密钥本地存储,永不提交 Git / Encryption: keys stored locally, never committed to Git
|
|
28
29
|
- 全局 `--agent` 过滤:只操作指定智能体 / Global `--agent` filter: operate on a single agent only
|
|
30
|
+
- **多语言 / i18n**:`wangchuan lang zh|en` 切换 CLI 显示语言,支持环境变量 `WANGCHUAN_LANG` 覆盖 / `wangchuan lang zh|en` to switch CLI language, `WANGCHUAN_LANG` env override
|
|
29
31
|
- **细粒度同步 / Fine-grained sync**:JSON 字段级提取(如 `.claude.json` 只同步 `mcpServers`) / JSON field-level extraction (e.g. only sync `mcpServers` from `.claude.json`)
|
|
30
32
|
- **跨 agent 共享 / Cross-agent sharing**:Skills 和 MCP 配置自动在所有 agent 间分发 / Skills and MCP configs auto-distributed across all agents
|
|
31
33
|
- **删除传播 / Delete propagation**:所有 agent 都删除的 skill/MCP → 自动从 repo 清理 / Items deleted from all agents are pruned from repo
|
|
@@ -84,7 +86,21 @@ wangchuan pull
|
|
|
84
86
|
wangchuan status
|
|
85
87
|
```
|
|
86
88
|
|
|
87
|
-
### 5.
|
|
89
|
+
### 5. 切换显示语言 / Switch display language
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
wangchuan lang # 查看当前语言 / Show current language
|
|
93
|
+
wangchuan lang en # 切换到英文 / Switch to English
|
|
94
|
+
wangchuan lang zh # 切换到中文 / Switch to Chinese
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
也可通过环境变量覆盖 / Or override via env var:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
WANGCHUAN_LANG=en wangchuan status
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### 6. 只操作指定智能体 / Filter by agent
|
|
88
104
|
|
|
89
105
|
```bash
|
|
90
106
|
wangchuan push --agent openclaw -m "更新 OpenClaw 记忆"
|
|
@@ -239,12 +255,14 @@ wangchuan/
|
|
|
239
255
|
│ │ ├── status.ts 状态命令 / status command
|
|
240
256
|
│ │ ├── diff.ts 差异命令 / diff command
|
|
241
257
|
│ │ ├── list.ts 清单命令 / list command (shared/agents grouping)
|
|
242
|
-
│ │
|
|
258
|
+
│ │ ├── dump.ts 明文快照 / dump command (plaintext snapshot)
|
|
259
|
+
│ │ └── lang.ts 语言切换 / lang command (i18n switching)
|
|
243
260
|
│ ├── utils/
|
|
244
261
|
│ │ ├── logger.ts 日志工具 / Logger
|
|
245
262
|
│ │ ├── validator.ts 参数校验 / Validator
|
|
246
263
|
│ │ ├── linediff.ts LCS 行级差异算法 / LCS line diff
|
|
247
264
|
│ │ └── prompt.ts 交互式冲突提示 / Interactive conflict prompt
|
|
265
|
+
│ ├── i18n.ts 国际化消息字典 / i18n message dictionary & t() helper
|
|
248
266
|
│ └── types.ts 全局类型定义 / Global type definitions
|
|
249
267
|
├── skill/
|
|
250
268
|
│ ├── SKILL.md OpenClaw Skill 说明 / OpenClaw Skill doc
|
package/dist/bin/wangchuan.js
CHANGED
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -13,6 +13,7 @@ wangchuan diff [--agent openclaw|claude|gemini] Show line-level file diff
|
|
|
13
13
|
wangchuan pull [--agent openclaw|claude|gemini] Pull & restore from repo
|
|
14
14
|
wangchuan push [--agent <name>] [-m "<msg>"] Encrypt & push to repo
|
|
15
15
|
wangchuan dump [--agent openclaw|claude|gemini] Plaintext snapshot to temp dir
|
|
16
|
+
wangchuan lang [zh|en] Switch CLI display language
|
|
16
17
|
wangchuan init --repo <git-url> First-time init
|
|
17
18
|
```
|
|
18
19
|
|
|
@@ -34,6 +35,10 @@ wangchuan init --repo <git-url> First-time init
|
|
|
34
35
|
|
|
35
36
|
> Generate a plaintext dump so I can inspect
|
|
36
37
|
|
|
38
|
+
> Switch to English output
|
|
39
|
+
|
|
40
|
+
> Switch back to Chinese
|
|
41
|
+
|
|
37
42
|
## Output Guide
|
|
38
43
|
|
|
39
44
|
### list
|