dsh-config-sync-plugin 0.3.84 → 0.3.85
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 +22 -2
- package/README.md +22 -2
- package/client.js +0 -21
- package/package.json +1 -1
- package/tools/selftest.mjs +2 -2
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.85"` 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
|
|
|
@@ -239,7 +239,7 @@ Each workspace switches between the three states independently; expanding it let
|
|
|
239
239
|
Five interaction refinements on top of the 0.3.76 "Workspace visibility" card:
|
|
240
240
|
|
|
241
241
|
1. **Session names**: each expanded session shows a readable title (from the `session/title` event, falling back to the first user message text); hover for the full session ID. Titles are cached and rebuilt from the local logs on each machine.
|
|
242
|
-
2. **Edit button**: the state dropdown and per-session Hide/Show buttons stay hidden until you click Edit on that workspace; click Done to leave edit mode, so states cannot be changed by accident.
|
|
242
|
+
2. **Edit button**: the state dropdown and per-session Hide/Show buttons stay hidden until you click Edit on that workspace; click Done to leave edit mode, so states cannot be changed by accident. (From 0.3.84 there is a single Edit button for the whole card — see below.)
|
|
243
243
|
3. **Click to expand**: click anywhere on a workspace row to expand/collapse its sessions; no separate expand button.
|
|
244
244
|
4. **Card position**: the Workspace visibility card moved just above Feedback, as the last configuration step.
|
|
245
245
|
5. **Sticky title + quick jump**: the panel title bar is sticky, with shortcut tabs below it (Overview / Workspaces / Targets / Automation / Scripts / Restore / Content / Plugin data / Feedback); clicking one smoothly scrolls to that section.
|
|
@@ -253,6 +253,23 @@ 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
|
+
### Workspace visibility card: one Edit button for the whole card, sessions paired with their toggles (0.3.84 / 0.3.85)
|
|
257
|
+
|
|
258
|
+
The edit interaction of the "Workspace visibility" card was rebuilt:
|
|
259
|
+
|
|
260
|
+
1. **A single Edit button for the entire card** (0.3.84): previously every workspace row carried its own Edit/Done button, and once there were several rows the buttons no longer lined up with the sessions. Now there is one button on the right of the header row — "Edit" when idle, switching to "Done" (primary colour, same position) once you are editing — and it unlocks every workspace tri-state plus every session toggle at once; clicking again leaves edit mode. The per-row button is gone.
|
|
261
|
+
2. **Session/button pairing made concrete** (0.3.84): each session gets its own row with a divider between rows; in edit mode the whole row gets a background and rounded corners, framing "this session" together with "its button". The toggle sits at the end of that row with a fixed width, so a wrap never puts it next to a different session. The word and colour distinguish Hide (red) from Show (green), the `title` carries the session name, and hidden sessions get a struck-through, dimmed name (the separate "Hidden" label was dropped).
|
|
262
|
+
3. **No tinted explanation banner** (0.3.85): edit mode no longer inserts a yellow-bordered hint row above the list; whether you are editing is read from the header button alone.
|
|
263
|
+
|
|
264
|
+
### Workspace visibility card: blank sessions and idle-review parents are collapsed too (0.3.83)
|
|
265
|
+
|
|
266
|
+
On top of 0.3.82's "collapse agent child sessions by default", two more kinds of noise are folded away:
|
|
267
|
+
|
|
268
|
+
1. **Blank sessions**: entries that were created but never used — no message, no turn (empty `origin` in the session header, and the log only holds permission / sandbox / approval / session-end-seed events, no `turn/start` and no `user/message`).
|
|
269
|
+
2. **Mnemon idle-review parents**: `mnemon-review-owner-v1-*`, which carry only a `subagent/catalog` event — the actual content lives in the `mnemon-review-v1-*` child session they point at.
|
|
270
|
+
|
|
271
|
+
Both naturally satisfy the same "blank" test, so one rule folds them away; no name matching is needed. A "Show blank" checkbox in the header row brings them back, and the footer reports how many blank and how many agent sessions were collapsed. On this machine the default view drops from 99 entries to 10.
|
|
272
|
+
|
|
256
273
|
### Workspace visibility card: agent sessions collapsed by default + instant hide/show (0.3.82)
|
|
257
274
|
|
|
258
275
|
Two changes to the "Workspace visibility" card:
|
|
@@ -652,6 +669,9 @@ The log shows which path ran: `文件比较(快筛):比对 N 个,深哈
|
|
|
652
669
|
|
|
653
670
|
| Date | Version | Summary |
|
|
654
671
|
|---|---|---|
|
|
672
|
+
| 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 |
|
|
673
|
+
| 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 |
|
|
674
|
+
| 2026-11-23 | 0.3.83 | Workspace visibility card also collapses blank sessions and Mnemon idle-review parents; default view on this machine 99 → 10 |
|
|
655
675
|
| 2026-11-23 | 0.3.82 | Workspace visibility card collapses agent sessions by default; hide/show goes through workspaceRegistry and applies instantly (no restart) |
|
|
656
676
|
| 2026-11-21 | 0.3.75 | Sync hidden/archived workspaces across machines (workspace-archives.v1.json into settings); hidden workspaces and sessions stay hidden on B after pull |
|
|
657
677
|
| 2026-11-19 | 0.3.69 | Carry billion-context compaction state across machines (bili-state.mjs); two new notice kinds (plugin-missing / context-state) |
|
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.85"` 后 `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
|
|
|
@@ -259,7 +259,7 @@ pwsh -File runtime\sync.ps1 pull `
|
|
|
259
259
|
在 0.3.76「工作区显示」卡片之上做了五点交互调整:
|
|
260
260
|
|
|
261
261
|
1. **会话名称**:工作区展开后每条会话显示可读标题(从 `session/title` 事件提取,取不到时回退到首条用户消息文本),鼠标悬停可看完整会话 ID;标题提取带缓存,换机器后按新机器日志重建。
|
|
262
|
-
2. **修改按钮**:三态下拉与会话的「隐藏 /
|
|
262
|
+
2. **修改按钮**:三态下拉与会话的「隐藏 / 显示」按钮默认不出现,点该工作区的「修改」才进入编辑态,点「完成」退出,避免误改。(0.3.84 起改为**整卡一个**「修改」按钮,见下文。)
|
|
263
263
|
3. **点行展开**:点工作区整行即可展开 / 收起会话,不再单独点展开按钮。
|
|
264
264
|
4. **卡片位置**:工作区显示卡片移到「问题反馈」前,作为配置调整的最后一步。
|
|
265
265
|
5. **固定标题 + 快速跳转**:面板标题栏吸顶;标题下方增加快捷标签(概览 / 工作区显示 / 同步目标 / 自动化 / 生成脚本 / 还原备份 / 同步内容 / 插件数据 / 问题反馈),点击平滑滚动到对应分区。
|
|
@@ -273,6 +273,23 @@ pwsh -File runtime\sync.ps1 pull `
|
|
|
273
273
|
1. **跳转顺序对齐卡片**:快捷标签顺序改为与分区实际渲染顺序完全一致(概览 / 同步冲突[有冲突时] / 本机路径[展开时] / 同步目标 / 自动化与插件更新 / 生成脚本 / 还原备份 / 同步内容 / 插件数据 / 工作区显示 / 问题反馈)。同步冲突、本机路径两个条件分区只在卡片存在时才出现在标签里。
|
|
274
274
|
2. **滚动落点在标题下方**:标题栏改为不透明背景(面板卡片同色),滚动时内容不再从标题背后透出;点标签跳转时按标题栏实际高度设置滚动落点,目标分区完整显示在标题下方,不再被遮住。
|
|
275
275
|
|
|
276
|
+
### 工作区显示卡片:整卡一个「修改」按钮,会话与开关一一对应(0.3.84 / 0.3.85)
|
|
277
|
+
|
|
278
|
+
「工作区显示」卡片的编辑交互重做:
|
|
279
|
+
|
|
280
|
+
1. **整张卡片只有一个「修改」按钮**(0.3.84):以前每个工作区行各带一个「修改 / 完成」,按钮一多就和会话对不上。现在标题行右侧只有一个按钮 —— 非编辑态是「修改」,点进去变成「完成」(主色高亮,位置不动),所有工作区的三态下拉和所有会话的显隐开关一起解锁,再点一次统一退出。行内那个按钮已删除。
|
|
281
|
+
2. **会话与按钮的对应关系做实**(0.3.84):每条会话独占一行,行间加分隔线;编辑态下整行加底色 + 圆角,把「这一行会话」和「这一行按钮」框在一起。开关贴在该行最右侧且等宽,换行也不会漂到别的会话旁边。按钮文案与颜色区分「隐藏」(红)/「显示」(绿),`title` 里带会话名,隐藏的会话名加删除线并变灰(原来那个单独的「已隐藏」小字去掉了)。
|
|
282
|
+
3. **不额外插强调色说明条**(0.3.85):编辑态不再在列表上方插一条黄底提示,是否在编辑只看标题行那个按钮本身。
|
|
283
|
+
|
|
284
|
+
### 工作区显示卡片:连空会话与空闲审查父容器一起折叠(0.3.83)
|
|
285
|
+
|
|
286
|
+
在 0.3.82「默认折叠智能体子会话」之外,再默认折叠两类干扰条目:
|
|
287
|
+
|
|
288
|
+
1. **空会话**:建了但从没发过消息、也没跑过 turn 的历史条目(会话头 `origin` 为空,日志里只有 permission / sandbox / approval / session-end-seed 这几条,没有 `turn/start`、没有 `user/message`)。
|
|
289
|
+
2. **Mnemon 空闲审查的父容器**:`mnemon-review-owner-v1-*`,它自己只有一条 `subagent/catalog` 事件,真正的内容都在它指向的 `mnemon-review-v1-*` 子会话里。
|
|
290
|
+
|
|
291
|
+
两类都天然满足「blank」判据,所以用同一条规则折掉,不需要单独写名字匹配。卡片标题行新增「显示空会话」勾选项,需要时可以放回来;footer 会分别说明折叠了多少条空会话和多少条智能体会话。本机默认视图从 99 条降到 10 条。
|
|
292
|
+
|
|
276
293
|
### 工作区显示卡片:默认折叠智能体会话 + 隐藏/显示即时生效(0.3.82)
|
|
277
294
|
|
|
278
295
|
「工作区显示」卡片两处改动:
|
|
@@ -634,6 +651,9 @@ pwsh -File sync.ps1 push -ScanHistory
|
|
|
634
651
|
|
|
635
652
|
| 日期 | 版本 | 要点 |
|
|
636
653
|
|---|---|---|
|
|
654
|
+
| 2026-11-23 | 0.3.85 | 去掉工作区显示卡片编辑态的强调色说明条,编辑与否只看标题行「修改」/「完成」按钮 |
|
|
655
|
+
| 2026-11-23 | 0.3.84 | 工作区显示卡片改成整卡一个「修改」按钮;会话行自带开关、加底色与分隔线,隐藏态删除线 |
|
|
656
|
+
| 2026-11-23 | 0.3.83 | 工作区显示卡片再折叠空会话与 Mnemon 空闲审查父容器;本机默认视图 99 → 10 条 |
|
|
637
657
|
| 2026-11-23 | 0.3.82 | 工作区显示卡片默认折叠智能体会话;隐藏/显示改走 workspaceRegistry,切完即时生效(不再需要重启) |
|
|
638
658
|
| 2026-11-21 | 0.3.75 | 隐藏/归档的工作区跨机同步(workspace-archives.v1.json 纳入 settings),B 机拉取后不再显示已隐藏的工作区与会话 |
|
|
639
659
|
| 2026-11-19 | 0.3.69 | 跨机搬运 billion-context 压缩状态(bili-state.mjs);同步清单新增 plugin-missing / context-state 两类提示 |
|
package/client.js
CHANGED
|
@@ -1670,26 +1670,6 @@ window.__ModuleLoader__.load({
|
|
|
1670
1670
|
const archived = wss.filter(w => w.state === 'archive').length
|
|
1671
1671
|
const agentHidden = Number(data.agentHidden || 0)
|
|
1672
1672
|
const blankHidden = Number(data.blankHidden || 0)
|
|
1673
|
-
// 编辑态用一条明显的强调色说明条,让「现在可改」这件事一眼可见。
|
|
1674
|
-
const editBanner = editing
|
|
1675
|
-
? h('div', {
|
|
1676
|
-
style: {
|
|
1677
|
-
display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'wrap',
|
|
1678
|
-
padding: '7px 10px', borderRadius: '8px',
|
|
1679
|
-
background: 'var(--dsw-alias-state-warn-secondary, transparent)',
|
|
1680
|
-
color: 'var(--dsw-alias-label-primary)',
|
|
1681
|
-
fontSize: '12px', lineHeight: '18px',
|
|
1682
|
-
},
|
|
1683
|
-
},
|
|
1684
|
-
h('span', { style: { fontWeight: 600 } }, M('编辑中', 'Editing')),
|
|
1685
|
-
h('span', { style: { flex: 1, minWidth: '160px' } },
|
|
1686
|
-
M('现在可以改工作区三态和每条会话的显示/隐藏;点「完成」退出编辑。', 'You can change workspace states and toggle each session now; click Done to finish.')),
|
|
1687
|
-
h('button', {
|
|
1688
|
-
type: 'button', style: { ...S.btn, fontWeight: 600 }, disabled: busy,
|
|
1689
|
-
onClick: () => setEditing(false),
|
|
1690
|
-
}, M('完成', 'Done')),
|
|
1691
|
-
)
|
|
1692
|
-
: null
|
|
1693
1673
|
return h('div', { style: S.card },
|
|
1694
1674
|
h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'wrap' } },
|
|
1695
1675
|
h('div', { style: S.cardTitle }, M('工作区显示状态', 'Workspace visibility')),
|
|
@@ -1731,7 +1711,6 @@ window.__ModuleLoader__.load({
|
|
|
1731
1711
|
}, editing ? M('完成', 'Done') : M('修改', 'Edit')),
|
|
1732
1712
|
h('button', { type: 'button', style: S.btn, disabled: busy, onClick: load }, busy ? M('刷新中…', 'Refreshing…') : M('刷新', 'Refresh')),
|
|
1733
1713
|
),
|
|
1734
|
-
editBanner,
|
|
1735
1714
|
msg ? h('div', { style: { ...S.hint, color: 'var(--dsw-alias-state-success-primary, #1a7f37)' } }, msg) : null,
|
|
1736
1715
|
err ? h('div', { style: { ...S.hint, color: 'var(--dsw-alias-state-error-primary)' } }, err) : null,
|
|
1737
1716
|
h('div', { style: S.footnote },
|
package/package.json
CHANGED
package/tools/selftest.mjs
CHANGED
|
@@ -1688,8 +1688,8 @@ console.log('== 配置同步页面 5 点调整 ==')
|
|
|
1688
1688
|
&& cliSrc.includes('onClick: () => setEditing(v => !v)')
|
|
1689
1689
|
&& cliSrc.includes('changeWorkspace(w.workspaceId, e.target.value)')
|
|
1690
1690
|
&& cliSrc.includes('changeSession(s.id, !s.hidden)')
|
|
1691
|
-
//
|
|
1692
|
-
&& cliSrc.includes("M('编辑中', 'Editing')"), 'client.js 编辑态')
|
|
1691
|
+
// 编辑态只靠顶部按钮本身表达状态,不再额外插入强调色说明条
|
|
1692
|
+
&& !cliSrc.includes('editBanner') && !cliSrc.includes("M('编辑中', 'Editing')"), 'client.js 编辑态')
|
|
1693
1693
|
// 3) 点工作区整行即展开,不再单独展开按钮
|
|
1694
1694
|
check('点工作区即展开(整行 onClick,无独立展开按钮)',
|
|
1695
1695
|
cliSrc.includes("onClick: () => setExpanded(e => ({ ...e, [w.workspaceId]: !open }))")
|