dsh-config-sync-plugin 0.3.65 → 0.3.66
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 +4 -1
- package/README.md +4 -1
- package/client.js +1 -1
- package/index.js +4 -4
- package/package.json +1 -1
- package/runtime/apply.ps1 +2 -1
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.
|
|
22
|
+
| npm | `npm i dsh-config-sync-plugin` | Use it as a dependency, or add `"dsh-config-sync-plugin": "^0.3.66"` 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
|
|
|
@@ -606,6 +606,9 @@ A clean isolated B machine (approot / dshome / wshome + bundled node runner) sim
|
|
|
606
606
|
|
|
607
607
|
Benign warnings (confirmed in the log): `--D-DeepSeekHarness-comfyUI--` / `--dsh-im-forward-confirm--` map to no workspace (special session dirs); `-SkipInstall` skipped 21 registry plugins (isolated offline run — without the flag on a networked machine they install); `dsh-config-sync-0.1.0` / `extra/manifest.json` have no archive/definition and are skipped; the `dsh-config-sync` slot has extra local leftovers (removed only with `-PruneWorkspace`).
|
|
608
608
|
|
|
609
|
+
### 2026-11-19: release 0.3.66 (.gitattributes silences LF/CRLF warnings)
|
|
610
|
+
- **Cross-platform line ending noise**: on Windows `core.autocrlf=true` converts LF in `session_projcache/*.json` to CRLF, causing Git to warn "LF will be replaced by CRLF" on push. Added `.gitattributes` marking that directory as binary (`binary`) and all other text files as `eol=lf`, eliminating the warning class entirely.
|
|
611
|
+
- Pure config change; no sync logic, behavior, or data changes.
|
|
609
612
|
### 2026-11-18: release 0.3.65 (refresh button feedback)
|
|
610
613
|
- **Top "Re-check"**: now always shows a clear toast after a click, whether or not data changed - success shows "Re-checked, data is up to date (time)", failure shows the reason, reusing the 5-second auto-dismiss notice. Previously, when the state was already current the page looked unchanged and users thought the click did nothing.
|
|
611
614
|
- **Card "Refresh" buttons**: the five refresh buttons (sync conflicts, plugin data, sync content, feedback, settings summary row) now switch their label to "Refreshing..." and disable while running, then return to "Refresh". Three of them (sync conflicts / sync content / feedback) had `load()` functions that never drove `busy` (label never changed) - fixed by adding `setBusy`; the top bar's "Checking..." and the local-path "Reading..." stay as they were.
|
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.
|
|
18
|
+
| npm | `npm i dsh-config-sync-plugin` | 适合把它当依赖管理,或在 profile 的 `package.json` 里写 `"dsh-config-sync-plugin": "^0.3.66"` 后 `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
|
|
|
@@ -582,6 +582,9 @@ pwsh -File sync.ps1 push -ScanHistory
|
|
|
582
582
|
|
|
583
583
|
非故障警告(日志已确认无害):`--D-DeepSeekHarness-comfyUI--` / `--dsh-im-forward-confirm--` 找不到对应工作区(特殊会话目录);`-SkipInstall` 跳过 21 个 registry 插件(隔离环境离线,真机有网时不加即补齐);`dsh-config-sync-0.1.0` / `extra/manifest.json` 无归档正常跳过;`dsh-config-sync` 槽位有本机多出的残留文件(加 `-PruneWorkspace` 才删)。
|
|
584
584
|
|
|
585
|
+
### 2026-11-19:发版 0.3.66(.gitattributes 消除 LF/CRLF 警告)
|
|
586
|
+
- **跨平台行尾噪音**:Windows 上 `core.autocrlf=true` 会把仓库里 LF 写入的 `session_projcache/*.json` 自动转成 CRLF,推送时 Git 报 "LF will be replaced by CRLF" 警告。新增 `.gitattributes` 将该目录标记为二进制(`binary`),其余文本文件统一 `eol=lf`,彻底消除该类警告。
|
|
587
|
+
- 纯配置项改动,不改变任何同步逻辑、行为与数据。
|
|
585
588
|
### 2026-11-18:发版 0.3.65(刷新按钮反馈)
|
|
586
589
|
- **顶部「重新检测」**:点击后无论数据是否变化都给明确 toast 反馈——成功显示「已重新检测,数据已是最新(时间)」,失败显示具体原因,复用 5 秒自动消失的提示条。此前状态本就是最新时页面看起来毫无变化,用户会以为没点上。
|
|
587
590
|
- **卡片「刷新」按钮**:同步冲突、插件数据、同步内容、问题反馈、设置摘要行五处刷新按钮,点击后文字变「刷新中…」并禁用,结束恢复「刷新」。其中同步冲突 / 同步内容 / 问题反馈三处原来的 `load()` 根本没驱动 `busy`(按钮文字永远不变),本次补齐 `setBusy`;顶部与本机路径的「检测中…/读取中…」保持不变。
|
package/client.js
CHANGED
|
@@ -929,7 +929,7 @@ window.__ModuleLoader__.load({
|
|
|
929
929
|
}
|
|
930
930
|
// 「手动还原」指引里的目标位置:认不出类型时按内容猜不到,索性把三类常见落点都摆出来
|
|
931
931
|
const manualTargets = () => [
|
|
932
|
-
M('插件本体 → 插件安装目录(如 D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.
|
|
932
|
+
M('插件本体 → 插件安装目录(如 D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.66)', 'Plugin files → the plugin install folder (e.g. D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.66)'),
|
|
933
933
|
M('会话目录(--xxx--)→ ~\\.dsh\\sessions', 'Session folders (--xxx--) → ~\\.dsh\\sessions'),
|
|
934
934
|
M('配置五件套(package.json / pnpm-lock.yaml / cordis.yml…)→ ~\\.dsh\\profiles\\desktop', 'Config files (package.json / pnpm-lock.yaml / cordis.yml…) → ~\\.dsh\\profiles\\desktop'),
|
|
935
935
|
]
|
package/index.js
CHANGED
|
@@ -976,9 +976,9 @@ async function inspect(config) {
|
|
|
976
976
|
const remoteFiles = remoteProbe ? remoteProbe.files : null
|
|
977
977
|
if (!appRoot) {
|
|
978
978
|
advice.push(t(
|
|
979
|
-
'定位不到客户端根目录:插件不在 <客户端根> 下(如 D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.
|
|
979
|
+
'定位不到客户端根目录:插件不在 <客户端根> 下(如 D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.66),'
|
|
980
980
|
+ '或客户端是打包版(resources\\app.asar)而这里没认出来 —— 三份同步脚本会因此生成不了',
|
|
981
|
-
'Cannot locate the client root: the plugin is not under <client root> (e.g. D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.
|
|
981
|
+
'Cannot locate the client root: the plugin is not under <client root> (e.g. D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.66), '
|
|
982
982
|
+ 'or this is a packaged build (resources\\app.asar) that was not recognized — the three sync scripts cannot be generated.',
|
|
983
983
|
))
|
|
984
984
|
}
|
|
@@ -3477,9 +3477,9 @@ async function handlePrepare(req, res, config) {
|
|
|
3477
3477
|
if (!appRoot) {
|
|
3478
3478
|
throw new Error(t(
|
|
3479
3479
|
'定位不到客户端根目录(要能找到 resources\\app\\package.json 或 resources\\app.asar):'
|
|
3480
|
-
+ '请确认插件装在 <客户端根> 下(例如 D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.
|
|
3480
|
+
+ '请确认插件装在 <客户端根> 下(例如 D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.66),或在设置里填客户端根 appRoot',
|
|
3481
3481
|
'Cannot locate the client root (needs resources\\app\\package.json or resources\\app.asar): '
|
|
3482
|
-
+ 'make sure the plugin is installed under <client root> (e.g. D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.
|
|
3482
|
+
+ 'make sure the plugin is installed under <client root> (e.g. D:\\DeepSeekHarness\\dsh-config-sync-plugin-0.3.66), or set appRoot in the settings',
|
|
3483
3483
|
))
|
|
3484
3484
|
}
|
|
3485
3485
|
const state = {...await repoState(repo), message}
|
package/package.json
CHANGED
package/runtime/apply.ps1
CHANGED
|
@@ -856,7 +856,8 @@ if ($dropped.Count -gt 0) { Ok "已剔除 $($dropped.Count) 个实验性 bundle
|
|
|
856
856
|
$localPluginMap = [ordered]@{
|
|
857
857
|
'dsh-our-free-model-2.8.0' = 'dsh-our-free-model'
|
|
858
858
|
'dsh-purge-1.4.0' = 'dsh-purge'
|
|
859
|
-
'dsh-config-sync-plugin-0.3.
|
|
859
|
+
'dsh-config-sync-plugin-0.3.66' = 'dsh-config-sync-plugin'
|
|
860
|
+
'dsh-config-sync-plugin-0.3.65' = 'dsh-config-sync-plugin'
|
|
860
861
|
'dsh-config-sync-plugin-0.3.64' = 'dsh-config-sync-plugin'
|
|
861
862
|
'dsh-config-sync-plugin-0.3.63' = 'dsh-config-sync-plugin'
|
|
862
863
|
'dsh-config-sync-plugin-0.3.62' = 'dsh-config-sync-plugin'
|