dsh-config-sync-plugin 0.3.87 → 0.3.88

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 CHANGED
@@ -19,7 +19,7 @@ The package name is **`dsh-config-sync-plugin`** (the `dsh-config-sync` name on
19
19
 
20
20
  | Way | Command / entry | Notes |
21
21
  |---|---|---|
22
- | npm | `npm i dsh-config-sync-plugin` | Use it as a dependency, or add `"dsh-config-sync-plugin": "^0.3.87"` to the profile's `package.json` and run `pnpm i`. The name matches the `cordis.patch.yml` insert name and the install folder `dsh-config-sync-plugin-<ver>` |
22
+ | npm | `npm i dsh-config-sync-plugin` | Use it as a dependency, or add `"dsh-config-sync-plugin": "^0.3.88"` to the profile's `package.json` and run `pnpm i`. The name matches the `cordis.patch.yml` insert name and the install folder `dsh-config-sync-plugin-<ver>` |
23
23
  | Marketplace | client → Plugins → Discover → “Config Sync” | Installs from the git commit registered in `market-index.json` |
24
24
  | Offline tgz | `releases\dsh-config-sync-plugin-<ver>.tgz` | GitHub Release asset for air-gapped machines; the panel's Update button downloads the same file |
25
25
 
@@ -253,7 +253,7 @@ Two display fixes on top of 0.3.77:
253
253
  1. **Jump order matches section order**: the quick-jump tabs now follow the exact render order of the sections (Overview / Sync conflicts [when present] / Local paths [when expanded] / Targets / Automation & updates / Scripts / Restore / Content / Plugin data / Workspace visibility / Feedback). The two conditional sections (conflicts, local paths) appear in the tabs only when their cards are shown.
254
254
  2. **Scroll lands below the title**: the sticky title bar now uses an opaque background (same fill as panel cards), so content no longer shows through it; jumping to a tab sets the scroll offset from the title bar's actual height, so the target section lands fully below the title instead of being covered.
255
255
 
256
- ### Plugin update falls back to npm download (0.3.87)
256
+ ### Plugin update falls back to npm download (0.3.88)
257
257
 
258
258
  The "Plugin update" card now shows an **npm download URL** line with the actual fallback address (`https://registry.npmmirror.com/dsh-config-sync-plugin/-/dsh-config-sync-plugin-<ver>.tgz`). When the GitHub release download is unreachable (common in mainland China), the update package automatically falls back to the npm mirror. It is still verified against the authoritative sha256 in `version.json` — switching source never relaxes verification. The npm tarball is byte-identical to the GitHub release tgz (same sha256).
259
259
 
@@ -681,7 +681,7 @@ The log shows which path ran: `文件比较(快筛):比对 N 个,深哈
681
681
 
682
682
  | Date | Version | Summary |
683
683
  |---|---|---|
684
- | 2026-11-24 | 0.3.87 | Plugin update card shows an "npm download URL"; falls back to the npm mirror when GitHub release is unreachable, still verified against the authoritative sha256 |
684
+ | 2026-11-24 | 0.3.88 | Plugin update card shows an "npm download URL"; falls back to the npm mirror when GitHub release is unreachable, still verified against the authoritative sha256 |
685
685
  | 2026-11-23 | 0.3.86 | Moved "Local data" into Overview / To-do, grouped pending files by the twelve sync-content groups, and show session names instead of session ids in the sample |
686
686
  | 2026-11-23 | 0.3.85 | Removed the tinted banner above the workspace list in edit mode; edit state is read from the Edit/Done button in the header |
687
687
  | 2026-11-23 | 0.3.84 | Workspace visibility card uses one Edit button for the whole card; each session row carries its own toggle with a background and divider, hidden names struck through |
package/README.md CHANGED
@@ -15,7 +15,7 @@ DSH 插件:左侧栏多一行「配置同步」,点开是整页体检面板
15
15
 
16
16
  | 方式 | 命令 / 入口 | 说明 |
17
17
  |---|---|---|
18
- | npm | `npm i dsh-config-sync-plugin` | 适合把它当依赖管理,或在 profile 的 `package.json` 里写 `"dsh-config-sync-plugin": "^0.3.87"` 后 `pnpm i`;包名与 `cordis.patch.yml` 里注册的名字、插件目录 `dsh-config-sync-plugin-<ver>` 一致 |
18
+ | npm | `npm i dsh-config-sync-plugin` | 适合把它当依赖管理,或在 profile 的 `package.json` 里写 `"dsh-config-sync-plugin": "^0.3.88"` 后 `pnpm i`;包名与 `cordis.patch.yml` 里注册的名字、插件目录 `dsh-config-sync-plugin-<ver>` 一致 |
19
19
  | 插件市场 | 客户端「插件市场 → 发现」搜「配置同步」 | 走 `market-index.json` 登记的 git 提交,版本与 README 对齐 |
20
20
  | 离线 tgz | `releases\dsh-config-sync-plugin-<ver>.tgz` | GitHub Release 附件,适合内网机器;面板「更新」按钮下载的也是它 |
21
21
 
@@ -273,7 +273,7 @@ pwsh -File runtime\sync.ps1 pull `
273
273
  1. **跳转顺序对齐卡片**:快捷标签顺序改为与分区实际渲染顺序完全一致(概览 / 同步冲突[有冲突时] / 本机路径[展开时] / 同步目标 / 自动化与插件更新 / 生成脚本 / 还原备份 / 同步内容 / 插件数据 / 工作区显示 / 问题反馈)。同步冲突、本机路径两个条件分区只在卡片存在时才出现在标签里。
274
274
  2. **滚动落点在标题下方**:标题栏改为不透明背景(面板卡片同色),滚动时内容不再从标题背后透出;点标签跳转时按标题栏实际高度设置滚动落点,目标分区完整显示在标题下方,不再被遮住。
275
275
 
276
- ### 插件更新支持 npm 兜底下载(0.3.87)
276
+ ### 插件更新支持 npm 兜底下载(0.3.88)
277
277
 
278
278
  「插件更新」卡新增一行 **npm 下载路径**,直接显示实际兜底地址(`https://registry.npmmirror.com/dsh-config-sync-plugin/-/dsh-config-sync-plugin-<ver>.tgz`)。GitHub release 整段不通时(国内常见),更新包会自动兜底从 npm 镜像下载;仍按 `version.json` 里的权威 sha256 校验,换源不放宽校验。实测 npm tarball 与 GitHub release tgz 是同一份产物、sha256 完全一致。
279
279
 
@@ -663,7 +663,7 @@ pwsh -File sync.ps1 push -ScanHistory
663
663
 
664
664
  | 日期 | 版本 | 要点 |
665
665
  |---|---|---|
666
- | 2026-11-24 | 0.3.87 | 插件更新卡新增「npm 下载路径」;GitHub release 不通时兜底 npm 镜像下载,仍按权威 sha256 校验 |
666
+ | 2026-11-24 | 0.3.88 | 插件更新卡新增「npm 下载路径」;GitHub release 不通时兜底 npm 镜像下载,仍按权威 sha256 校验 |
667
667
  | 2026-11-23 | 0.3.86 | 「本机数据」挪进概览-待办,按同步内容的 12 组口径分类统计,会话样本显示会话标题而非 session id |
668
668
  | 2026-11-23 | 0.3.85 | 去掉工作区显示卡片编辑态的强调色说明条,编辑与否只看标题行「修改」/「完成」按钮 |
669
669
  | 2026-11-23 | 0.3.84 | 工作区显示卡片改成整卡一个「修改」按钮;会话行自带开关、加底色与分隔线,隐藏态删除线 |
package/index.js CHANGED
@@ -2151,7 +2151,7 @@ function compareVersion(a, b) {
2151
2151
  }
2152
2152
 
2153
2153
  /**
2154
- * 0.3.87:npm registry 的 tarball 地址。npm 包与 GitHub release 的 tgz 是同一份发布产物
2154
+ * 0.3.88:npm registry 的 tarball 地址。npm 包与 GitHub release 的 tgz 是同一份发布产物
2155
2155
  * (实测两者 sha256 完全一致),所以 GitHub release 下载不通时能自动从 npm 镜像取,
2156
2156
  * 清单里的权威 sha256 照常校验,不会因换源而放松校验。
2157
2157
  */
@@ -2171,7 +2171,7 @@ function resolveTgzCandidates(manifest, manifestUrl = '') {
2171
2171
  const withNpm = (list) => (npmTgz && !list.includes(npmTgz) ? [...list, npmTgz] : list)
2172
2172
  // 清单没给 tgz 时,也留 npm 这一条路(有版本就能拼出 tarball)
2173
2173
  if (!tgz) return npmTgz ? [npmTgz] : []
2174
- // 清单里写了绝对地址:先照它来,末尾追加 npm 兜底(0.3.87 起不再直接 return)
2174
+ // 清单里写了绝对地址:先照它来,末尾追加 npm 兜底(0.3.88 起不再直接 return)
2175
2175
  if (/^https?:\/\//i.test(tgz)) return withNpm([tgz])
2176
2176
  const rel = tgz.replace(/^\.?\//, '')
2177
2177
  const bases = []
@@ -2308,7 +2308,7 @@ function updatePayload(state, settings = {}) {
2308
2308
  notesEn: String(remote.notesEn || ''),
2309
2309
  releasedAt: String(remote.releasedAt || ''),
2310
2310
  tgz: resolveTgzUrl(remote, state.url),
2311
- // 0.3.87:GitHub release 不通时的 npm 兜底下载地址,面板上单独显示一行
2311
+ // 0.3.88:GitHub release 不通时的 npm 兜底下载地址,面板上单独显示一行
2312
2312
  npmTgz: npmTgzUrl(remote.version),
2313
2313
  sha256: String(remote.sha256 || ''),
2314
2314
  } : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-config-sync-plugin",
3
- "version": "0.3.87",
3
+ "version": "0.3.88",
4
4
  "type": "module",
5
5
  "description": "在 DSH 设置里查看 dsh-config 仓库与本机的同步状态,并生成退出后执行的 push/pull 脚本。同步动作本身不在应用内执行。面板与文案跟随客户端语言(中文/English)。",
6
6
  "main": "./index.js",