@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.
Files changed (3) hide show
  1. package/README.en.md +45 -36
  2. package/README.md +4 -4
  3. package/package.json +1 -1
package/README.en.md CHANGED
@@ -1,36 +1,45 @@
1
- # dsh-user-sync
2
-
3
- #### Description
4
- dsh用户级配置同步
5
-
6
- #### Software Architecture
7
- Software architecture description
8
-
9
- #### Installation
10
-
11
- 1. xxxx
12
- 2. xxxx
13
- 3. xxxx
14
-
15
- #### Instructions
16
-
17
- 1. xxxx
18
- 2. xxxx
19
- 3. xxxx
20
-
21
- #### Contribution
22
-
23
- 1. Fork the repository
24
- 2. Create Feat_xxx branch
25
- 3. Commit your code
26
- 4. Create Pull Request
27
-
28
-
29
- #### Gitee Feature
30
-
31
- 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
32
- 2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
33
- 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
34
- 4. The most valuable open source project [GVP](https://gitee.com/gvp)
35
- 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
36
- 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
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
- > 当前状态:**v0.1.0 开发版**。本机打包/应用、跨机上传/恢复、缺插件装回、自动检查均已实现并实测;服务端已部署(见 [部署文档](docs/deploy.md))。
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` + `AGENTS.md`)、用户记忆(`memories/` 根);项目记忆与会话默认不选。
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
- 服务端地址在「传输与自动检查」里配置(默认内置;开发环境填 `https://dsh-user-sync-test.wenzhi.info`)。
47
+ 服务地址默认内置(`https://dsh-user-sync-test.wenzhi.info`),传输固定走运营方 API,面板不再暴露这两项配置。
48
48
 
49
49
  ## 服务端
50
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandablessing/dsh-user-sync",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "DeepSeek Harness 用户级配置同步插件",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",