@pandablessing/dsh-user-sync 1.0.0 → 1.0.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.en.md +45 -36
- package/README.md +4 -4
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -1,36 +1,45 @@
|
|
|
1
|
-
# dsh-user-sync
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
# dsh-user-sync
|
|
2
|
+
|
|
3
|
+
User-level configuration sync for [DeepSeek Harness](https://github.com/deepseek-ai) (DSH): move your skills, plugin manifest, config and user memory between machines, with snapshot-before-apply and a single "remote keeps one package" rule.
|
|
4
|
+
|
|
5
|
+
## What it syncs
|
|
6
|
+
|
|
7
|
+
| Module | Content | Default |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| Skills | `~/.agents/skills/<name>/SKILL.md` and files | ✅ |
|
|
10
|
+
| Plugin manifest | `package.json`, `pnpm-lock.yaml`, `pnpm-workspace.yaml`, `cordis.yml` | ✅ |
|
|
11
|
+
| Config | `cordis.patch.yml` | ✅ |
|
|
12
|
+
| User memory | `AGENTS.md` + `memories/` root | ✅ |
|
|
13
|
+
| Project memory | `memories/projects/` and `daily/` | ⬜ |
|
|
14
|
+
| Sessions | — | never synced |
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```powershell
|
|
19
|
+
cd ~/.dsh/profiles/desktop
|
|
20
|
+
pnpm add @pandablessing/dsh-user-sync
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Restart DSH, then open Settings → **设置同步** (Sync Settings), accept the consent card and click **上传用户配置** (Upload).
|
|
24
|
+
|
|
25
|
+
## Behavior
|
|
26
|
+
|
|
27
|
+
- **Implicit remote** (LWW): pushing overwrites the remote; pulling overwrites local. No conflict merge.
|
|
28
|
+
- **Safety first**: every apply snapshots local files first; a single remote package is kept; sessions are excluded.
|
|
29
|
+
- **Plugins**: sync restores declarations only; missing plugins are listed and can be installed with one click.
|
|
30
|
+
- **Auto check**: on start and every 6 hours (configurable), read-only — it only notifies, never applies.
|
|
31
|
+
|
|
32
|
+
## Development
|
|
33
|
+
|
|
34
|
+
```powershell
|
|
35
|
+
pnpm install
|
|
36
|
+
pnpm run build # src/*.ts → lib/*.js
|
|
37
|
+
pnpm run build:server # server/src/*.ts → server/dist/*.js
|
|
38
|
+
pnpm test # 144 tests
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Docs: [design](docs/design.md) · [test cases](docs/test-cases.md) · [deploy](docs/deploy.md) · [changelog](CHANGELOG.md).
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
[MulanPSL-2.0](LICENSE)
|
package/README.md
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
DeepSeek Harness(DSH)的**用户级配置同步插件**:把技能、插件清单、配置、记忆四类资产在设备间对齐。
|
|
4
4
|
|
|
5
|
-
> 当前状态:**
|
|
5
|
+
> 当前状态:**v1.0.1**(已发布 npm:`@pandablessing/dsh-user-sync`)。本机打包/应用、跨机上传/恢复、缺插件装回、自动检查均已实现并实测;服务端已部署(见 [部署文档](docs/deploy.md))。
|
|
6
6
|
> 设计依据:[docs/design.md](docs/design.md);测试用例:[docs/test-cases.md](docs/test-cases.md)。
|
|
7
7
|
|
|
8
8
|
## 功能
|
|
9
9
|
|
|
10
|
-
- **四类用户级资产**:技能(`~/.agents/skills`)、插件清单(profile 声明)、配置(`cordis.patch.yml` + `
|
|
10
|
+
- **四类用户级资产**:技能(`~/.agents/skills`)、插件清单(profile 声明)、配置(`cordis.patch.yml`)、用户记忆(`AGENTS.md` + `memories/` 根);项目记忆默认不选,会话不参与同步。
|
|
11
11
|
- **新覆盖旧**:包级 `createdAt` 比较,不做合并;覆盖前必须确认,先快照再写盘,失败可整批还原。
|
|
12
12
|
- **敏感数据硬拒绝**:文件名黑名单 + 内容模式,命中即拒绝打包并列出文件与行号。
|
|
13
13
|
- **官方账号自动配对**:用 `deepseekAccount` 取账号 id 派生 `accountKey`,自动向服务端换 token,**没有运营方账号登录入口**。
|
|
@@ -39,12 +39,12 @@ scripts\uninstall-dev.cmd # 双击即可
|
|
|
39
39
|
|
|
40
40
|
## 使用
|
|
41
41
|
|
|
42
|
-
1. 设置 →
|
|
42
|
+
1. 设置 → 设置同步 → 首次点「同意并启用上传」(说明上传范围与存储位置);
|
|
43
43
|
2. 勾选同步范围(默认四类用户级);
|
|
44
44
|
3. 「上传用户配置」→ 打包并上传;
|
|
45
45
|
4. 「从远端同步」→ 检查远端,覆盖前确认。
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
服务地址默认内置(`https://dsh-user-sync-test.wenzhi.info`),传输固定走运营方 API,面板不再暴露这两项配置。
|
|
48
48
|
|
|
49
49
|
## 服务端
|
|
50
50
|
|