@xxgxiaoyu/dsh-session-sync 0.8.2 → 0.8.4
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 +12 -0
- package/CHANGELOG_ZH.md +12 -0
- package/README.md +12 -10
- package/README_ZH.md +12 -10
- package/lib/client.js +1 -1
- package/package.json +1 -5
- package/screenshots.json +1 -5
- package/docs/preview-en.png +0 -0
- package/docs/preview-transfer.png +0 -0
- package/docs/preview.png +0 -0
- package/docs/queue.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.4 — 2026-10-22
|
|
4
|
+
|
|
5
|
+
- **README now installs from npm first.** The primary command is `dsh plugin --profile web add @xxgxiaoyu/dsh-session-sync`; GitHub remains as the track-latest-commit fallback. The manual profile example uses the scoped dependency and bundle name.
|
|
6
|
+
- Removed the broken prebuilt-tarball link (the release has no such asset) and pointed at Releases; added an npm badge.
|
|
7
|
+
- Code identical to 0.8.3; **60** tests passing.
|
|
8
|
+
|
|
9
|
+
## 0.8.3 — 2026-10-22
|
|
10
|
+
|
|
11
|
+
- **Privacy fix: removed every screenshot containing real device names, IPs, paths or session titles.** This covers the README images (`docs/preview*.png`, `docs/queue.png`) and the older `docs/mockups/*.png`. The repository no longer contains them, and the npm package no longer bundles them.
|
|
12
|
+
- Sample data in the design draft now uses placeholders (device names, IPs, paths, session titles); the HTML/CSS draft stays, the preview images do not.
|
|
13
|
+
- Code unchanged; **60** tests passing.
|
|
14
|
+
|
|
3
15
|
## 0.8.2 — 2026-10-22
|
|
4
16
|
|
|
5
17
|
- **npm package renamed to `@xxgxiaoyu/dsh-session-sync`.** The unscoped `dsh-session-sync` belongs to another project (`perrylink`, 0.2.30), so the current account cannot publish it. The bundle patch mount name is updated too; plugin/slot ids and the client namespace are unchanged.
|
package/CHANGELOG_ZH.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## 0.8.4 — 2026-10-22
|
|
4
|
+
|
|
5
|
+
- **README 安装方式改为 npm 优先。** 主命令改成 `dsh plugin --profile web add @xxgxiaoyu/dsh-session-sync`;GitHub 安装保留为跟踪最新提交的备选。手动 profile 示例的依赖名和 `bundles` 也改成 scoped 名。
|
|
6
|
+
- 删掉失效的预构建 tarball 链接(Release 没有该 asset),改为指向 Releases 页面;补 npm 版本徽章。
|
|
7
|
+
- 代码与 0.8.3 一致;测试 **60 项**通过。
|
|
8
|
+
|
|
9
|
+
## 0.8.3 — 2026-10-22
|
|
10
|
+
|
|
11
|
+
- **隐私修复:移除所有含真实设备名、IP、路径和会话标题的截图。** 受影响的是 README 里的 `docs/preview*.png`、`docs/queue.png`,以及旧设计稿 `docs/mockups/*.png`。仓库不再包含这些图片,npm 包也不再打包它们。
|
|
12
|
+
- 设计稿里的示例数据同步改成占位符(设备名、IP、路径、会话标题),避免源码继续暴露;设计稿的 HTML/CSS 仍在,预览图不再随仓库发布。
|
|
13
|
+
- 测试 **60 项**通过;代码逻辑未改。
|
|
14
|
+
|
|
3
15
|
## 0.8.2 — 2026-10-22
|
|
4
16
|
|
|
5
17
|
- **npm 发布名改为 `@xxgxiaoyu/dsh-session-sync`。** npm 上的 `dsh-session-sync` 已被 `perrylink` 的项目占用(0.2.30),无法用当前账号发布原名;scope 包名与 `cordis.patch.yml` 的挂载 `name` 同步更新。插件 id、槽位 id 和客户端命名空间保持不变。
|
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<div align="center">
|
|
7
7
|
|
|
8
8
|
[](https://github.com/XXGxiaoyu/dsh-session-sync/actions/workflows/ci.yml)
|
|
9
|
+
[](https://www.npmjs.com/package/@xxgxiaoyu/dsh-session-sync)
|
|
9
10
|
[](https://github.com/XXGxiaoyu/dsh-session-sync/stargazers)
|
|
10
11
|
[](https://opensource.org/licenses/MIT)
|
|
11
12
|
[](https://www.npmjs.com/package/@deepseek-ai/dsh)
|
|
@@ -16,9 +17,7 @@
|
|
|
16
17
|
|
|
17
18
|
> **0.8.0 UI rebuild**: session desk, whole-row selection, selection bar, transfer dock and settings were redrawn. The full draft (19 scenes, dark/light, zh/en) is in [`docs/redesign/index.html`](https://github.com/XXGxiaoyu/dsh-session-sync/tree/main/docs/redesign); implementation mapping and acceptance are in [`DESIGN.md`](https://github.com/XXGxiaoyu/dsh-session-sync/blob/main/docs/redesign/DESIGN.md). The whole-session file transfer design (chunks / resume) is in [`session-bundle-transfer.md`](https://github.com/XXGxiaoyu/dsh-session-sync/blob/main/docs/architecture/session-bundle-transfer.md) (next phase).
|
|
18
19
|
|
|
19
|
-

|
|
20
20
|
|
|
21
|
-

|
|
22
21
|
|
|
23
22
|
## ✨ Features
|
|
24
23
|
|
|
@@ -41,19 +40,23 @@
|
|
|
41
40
|
|
|
42
41
|
## 🚀 Installation
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
# From GitHub (recommended, tracks the latest commit)
|
|
46
|
-
dsh plugin --profile web add github:XXGxiaoyu/dsh-session-sync
|
|
43
|
+
From npm (scoped name; the unscoped `dsh-session-sync` belongs to another project):
|
|
47
44
|
|
|
48
|
-
|
|
45
|
+
```sh
|
|
49
46
|
dsh plugin --profile web add @xxgxiaoyu/dsh-session-sync
|
|
50
47
|
```
|
|
51
48
|
|
|
49
|
+
Or from GitHub to track the latest commit:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
dsh plugin --profile web add github:XXGxiaoyu/dsh-session-sync
|
|
53
|
+
```
|
|
54
|
+
|
|
52
55
|
Requires DSH **0.2.1-rc.2** (the version bundled with the current desktop app) and Node 22+.
|
|
53
56
|
|
|
54
57
|
Then restart the DSH desktop app (host-side changes load at boot; open pages pick up the new UI on refresh). The page footer shows the build that is actually running — if it reads an older number than the latest release, the process has not been restarted yet. The install is auto-activated: the package declares `dsh.bundle`, so `dsh plugin add` adds it to `dsh.profile.bundles` on its own.
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
Releases: <https://github.com/XXGxiaoyu/dsh-session-sync/releases>
|
|
57
60
|
|
|
58
61
|
<details>
|
|
59
62
|
<summary>Manual install from a local checkout</summary>
|
|
@@ -62,11 +65,11 @@ Prebuilt tarball (no build step): <https://github.com/XXGxiaoyu/dsh-session-sync
|
|
|
62
65
|
// ~/.dsh/profiles/<profile>/package.json
|
|
63
66
|
{
|
|
64
67
|
"dependencies": {
|
|
65
|
-
"dsh-session-sync": "link:/absolute/path/to/dsh-session-sync"
|
|
68
|
+
"@xxgxiaoyu/dsh-session-sync": "link:/absolute/path/to/dsh-session-sync"
|
|
66
69
|
},
|
|
67
70
|
"dsh": {
|
|
68
71
|
"profile": {
|
|
69
|
-
"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-session-sync"]
|
|
72
|
+
"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "@xxgxiaoyu/dsh-session-sync"]
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
}
|
|
@@ -111,7 +114,6 @@ settings.locale = 'auto' | 'zh' | 'en' // persisted in <home>/session-sync/sta
|
|
|
111
114
|
|
|
112
115
|
The plugin reads `ctx.locale.getSnapshot().active` (`zh*` → Chinese, everything else → English) and only falls back to `navigator.languages` when no locale service exists. A language change is written to disk **before** the UI switches, so it never reverts on the next open. Sidebar/settings labels are resolved by the host, so the plugin re-registers its slots when the language changes — the page and the sidebar row never disagree.
|
|
113
116
|
|
|
114
|
-

|
|
115
117
|
|
|
116
118
|
## 🎨 Look and motion
|
|
117
119
|
|
package/README_ZH.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<div align="center">
|
|
7
7
|
|
|
8
8
|
[](https://github.com/XXGxiaoyu/dsh-session-sync/actions/workflows/ci.yml)
|
|
9
|
+
[](https://www.npmjs.com/package/@xxgxiaoyu/dsh-session-sync)
|
|
9
10
|
[](https://github.com/XXGxiaoyu/dsh-session-sync/stargazers)
|
|
10
11
|
[](https://opensource.org/licenses/MIT)
|
|
11
12
|
[](https://www.npmjs.com/package/@deepseek-ai/dsh)
|
|
@@ -16,9 +17,7 @@
|
|
|
16
17
|
|
|
17
18
|
> **0.8.0 界面重构**:会话台、整行选择、选择条、传输坞与设置页全部重画。完整稿(19 个场景,可切深浅主题 / 中英文)见 [`docs/redesign/index.html`](https://github.com/XXGxiaoyu/dsh-session-sync/tree/main/docs/redesign),实现映射与验收见 [`DESIGN.md`](https://github.com/XXGxiaoyu/dsh-session-sync/blob/main/docs/redesign/DESIGN.md)。整包文件迁移的分片 / 断点续传设计见 [`session-bundle-transfer.md`](https://github.com/XXGxiaoyu/dsh-session-sync/blob/main/docs/architecture/session-bundle-transfer.md)(下一阶段)。
|
|
18
19
|
|
|
19
|
-

|
|
20
20
|
|
|
21
|
-

|
|
22
21
|
|
|
23
22
|
## ✨ 功能
|
|
24
23
|
|
|
@@ -42,19 +41,23 @@
|
|
|
42
41
|
|
|
43
42
|
## 🚀 安装
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
# 从 GitHub 安装(推荐,包含最新提交)
|
|
47
|
-
dsh plugin --profile web add github:XXGxiaoyu/dsh-session-sync
|
|
44
|
+
从 npm 安装(scope 包名;npm 上的 `dsh-session-sync` 属于另一个项目):
|
|
48
45
|
|
|
49
|
-
|
|
46
|
+
```sh
|
|
50
47
|
dsh plugin --profile web add @xxgxiaoyu/dsh-session-sync
|
|
51
48
|
```
|
|
52
49
|
|
|
50
|
+
或从 GitHub 跟踪最新提交:
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
dsh plugin --profile web add github:XXGxiaoyu/dsh-session-sync
|
|
54
|
+
```
|
|
55
|
+
|
|
53
56
|
需要 DSH **0.2.1-rc.2**(当前桌面版内置的版本)与 Node 22+。
|
|
54
57
|
|
|
55
58
|
然后重启 DSH 桌面应用(宿主半边的改动在启动时加载,页面刷新即可拿到新 UI)。装完会自动启用:包里声明了 `dsh.bundle`,`dsh plugin add` 会自己把它加进 `dsh.profile.bundles`。页脚显示的是**真正在运行**的那份构建;如果比 Latest 版本旧,说明进程还没重启。
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
发布页:<https://github.com/XXGxiaoyu/dsh-session-sync/releases>
|
|
58
61
|
|
|
59
62
|
<details>
|
|
60
63
|
<summary>从本地目录手动安装</summary>
|
|
@@ -63,11 +66,11 @@ dsh plugin --profile web add @xxgxiaoyu/dsh-session-sync
|
|
|
63
66
|
// ~/.dsh/profiles/<profile>/package.json
|
|
64
67
|
{
|
|
65
68
|
"dependencies": {
|
|
66
|
-
"dsh-session-sync": "link:/absolute/path/to/dsh-session-sync"
|
|
69
|
+
"@xxgxiaoyu/dsh-session-sync": "link:/absolute/path/to/dsh-session-sync"
|
|
67
70
|
},
|
|
68
71
|
"dsh": {
|
|
69
72
|
"profile": {
|
|
70
|
-
"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-session-sync"]
|
|
73
|
+
"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "@xxgxiaoyu/dsh-session-sync"]
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
}
|
|
@@ -112,7 +115,6 @@ settings.locale = 'auto' | 'zh' | 'en' // 持久化在 <home>/session-sync/sta
|
|
|
112
115
|
|
|
113
116
|
插件读 `ctx.locale.getSnapshot().active`(`zh*` → 中文,其余 → English);只有拿不到 locale 服务时才退回 `navigator.languages`。切换语言先落盘再换 UI,不会出现「下次打开又变回去」。侧栏行和设置项的文字由宿主解析,所以语言变化时插件会重新登记槽位——页面和侧栏永远不会一个中文一个英文。
|
|
114
117
|
|
|
115
|
-

|
|
116
118
|
|
|
117
119
|
## 🎨 界面风格
|
|
118
120
|
|
package/lib/client.js
CHANGED
|
@@ -29,7 +29,7 @@ window.__ModuleLoader__.load({
|
|
|
29
29
|
// Bumped together with package.json (a test enforces the pair). The footer
|
|
30
30
|
// shows the *running* host version next to it, so a stale process is
|
|
31
31
|
// obvious instead of looking like a publishing mistake.
|
|
32
|
-
const CLIENT_VERSION = '0.8.
|
|
32
|
+
const CLIENT_VERSION = '0.8.4'
|
|
33
33
|
const POLL_MS = 4000
|
|
34
34
|
|
|
35
35
|
// ── styles ────────────────────────────────────────────────────────────
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xxgxiaoyu/dsh-session-sync",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "DSH LAN session sync: auto-discover devices running this plugin, browse/pull/push sessions over HTTP, verify them with SHA-256, and keep a local-only nickname per device.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
"CHANGELOG_ZH.md",
|
|
19
19
|
"LICENSE",
|
|
20
20
|
"icon.svg",
|
|
21
|
-
"docs/preview.png",
|
|
22
|
-
"docs/preview-en.png",
|
|
23
|
-
"docs/preview-transfer.png",
|
|
24
|
-
"docs/queue.png",
|
|
25
21
|
"screenshots.json",
|
|
26
22
|
"scripts/repair-sessions.mjs"
|
|
27
23
|
],
|
package/screenshots.json
CHANGED
package/docs/preview-en.png
DELETED
|
Binary file
|
|
Binary file
|
package/docs/preview.png
DELETED
|
Binary file
|
package/docs/queue.png
DELETED
|
Binary file
|