@michengai/dsh-archive-manager 1.1.22 → 1.2.3
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 +17 -0
- package/CHANGELOG.zh-CN.md +17 -0
- package/README.md +11 -8
- package/README.zh-CN.md +11 -8
- package/lib/client.js +6 -5
- package/lib/index.js +20 -7
- package/lib/plugin-settings.js +48 -6
- package/lib/sidebar-entry.js +100 -35
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
Published release notes are retained below; new versions are added without removing earlier entries.
|
|
6
6
|
|
|
7
|
+
## 1.2.3 - 2026-11-03
|
|
8
|
+
|
|
9
|
+
- **Compatibility with latest DSH Web (0.2.2-alpha.3+) and context menu overhaul**:
|
|
10
|
+
- Fixes missing session context menu actions (delete session, favorite, move to workspace) under the latest Web host;
|
|
11
|
+
- Fixes missing workspace context menu items ("Archive workspace sessions", "Copy workspace path", etc.);
|
|
12
|
+
- Seamlessly integrates workspace actions into the host's native context menu system with reactive session count updates and native icon styling;
|
|
13
|
+
- Hardens icon registration and session lifecycle integration across varying host setups and sidebar combinations with safe fallbacks;
|
|
14
|
+
- Fully retains backward compatibility across all previously supported host releases.
|
|
15
|
+
|
|
16
|
+
## 1.2.0 - 2026-11-03
|
|
17
|
+
|
|
18
|
+
- **Entry placement upgraded to 3-state control** (#103):
|
|
19
|
+
- Replaces the single sidebar toggle in plugin settings with a native 3-state segmented control (All locations / Sidebar only / Settings only), preventing accidental panel loss caused by disabling both entry points;
|
|
20
|
+
- Choosing "Sidebar only" unregisters the "Archived sessions" entry from the settings dialog for a cleaner settings view;
|
|
21
|
+
- Shows an inline error message when saving entry placement fails, preventing silent rollbacks;
|
|
22
|
+
- Automatically migrates existing configurations seamlessly with full backward compatibility.
|
|
23
|
+
|
|
7
24
|
## 1.1.22 - 2026-10-30
|
|
8
25
|
|
|
9
26
|
- Add folder icons beside workspace names in the “Move to workspace” submenu, making destination workspaces easier to recognize.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
以下发布说明会持续保留;新增版本时不再删除较早记录。
|
|
6
6
|
|
|
7
|
+
## 1.2.3 - 2026-11-03
|
|
8
|
+
|
|
9
|
+
- **兼容 DSH Web 最新版本(0.2.2-alpha.3+)与上下文菜单重构**:
|
|
10
|
+
- 修复在新版 Web 宿主下侧边栏会话右键菜单(删除会话、收藏、移动工作区)未正常展示的问题;
|
|
11
|
+
- 修复工作区操作菜单中「归档工作区会话」、「复制工作区路径」等操作未正常展示的问题;
|
|
12
|
+
- 工作区操作菜单全面适配宿主原生上下文菜单体系,支持实时感知会话变动并自动对齐宿主原生图标与快捷交互;
|
|
13
|
+
- 加强菜单图标与会话生命周期在不同宿主定制环境与侧栏组合下的自适应加载与容错保护;
|
|
14
|
+
- 完整向后兼容所有已支持的旧版本宿主。
|
|
15
|
+
|
|
16
|
+
## 1.2.0 - 2026-11-03
|
|
17
|
+
|
|
18
|
+
- **入口展示位置升级为三选一设置**(#103):
|
|
19
|
+
- 在插件配置页将原有的侧边栏单选开关升级为原生分段选择器,支持选择「两边显示」、「仅侧边栏」或「仅设置」,彻底解决两处同时关闭可能导致的面板失联问题;
|
|
20
|
+
- 选择「仅侧边栏」时,系统设置弹窗中的「归档会话」菜单项会自动隐藏注销,保持设置界面整洁;
|
|
21
|
+
- 保存入口展示位置失败时在界面直接显示错误提示,不再静默回弹;
|
|
22
|
+
- 自动向后兼容旧版配置,已有配置无需重新设置。
|
|
23
|
+
|
|
7
24
|
## 1.1.22 - 2026-10-30
|
|
8
25
|
|
|
9
26
|
- 在「移动到工作区」子菜单的工作区名称旁增加文件夹图标,方便识别目标工作区。
|
package/README.md
CHANGED
|
@@ -123,15 +123,18 @@ Restart DSH Web, then refresh the page (or hard-refresh with `Ctrl+Shift+R`). Op
|
|
|
123
123
|
The plugin follows standard DSH bundle configuration conventions. Options are located at:
|
|
124
124
|
> **Sidebar → Plugins → Click `Archive Manager`** (the host's `plugins.bundle.config` slot).
|
|
125
125
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### 1.
|
|
129
|
-
- **
|
|
130
|
-
- **
|
|
126
|
+
Native configuration options are available:
|
|
127
|
+
|
|
128
|
+
### 1. Entry Location (`entryLocation`)
|
|
129
|
+
- **Options**:
|
|
130
|
+
- **All locations (`both`)**: Displays the Archive navigation icon in the left sidebar and keeps the menu entry under **Settings → Archived sessions**.
|
|
131
|
+
- **Sidebar only (`sidebar`)**: Displays the Archive navigation icon in the left sidebar and unregisters the settings section for a streamlined settings dialog.
|
|
132
|
+
- **Settings only (`settings`)** (Default): Keeps the entry under **Settings → Archived sessions** while maintaining a minimal sidebar.
|
|
133
|
+
- **Fail-safe Guarantee**: A mutually-exclusive 3-state segmented control ensures at least one entry point is always accessible, preventing accidental orphan states.
|
|
131
134
|
- **Effect**:
|
|
132
|
-
- When enabled, clicking the
|
|
133
|
-
- When
|
|
134
|
-
-
|
|
135
|
+
- When the sidebar is enabled, clicking the icon opens Archive Manager directly in the primary workspace with a **960px centered container** (matching host plugin manager conventions). This eliminates vertical scrolling constraints in narrow settings dialogs;
|
|
136
|
+
- When switching to **Settings only**, safely unregisters the sidebar entry (and resets the active panel gracefully if currently viewing the panel, preventing blank views);
|
|
137
|
+
- Backward compatible with legacy `sidebarEntry` boolean settings (`true` maps to `both`, `false` maps to `settings`).
|
|
135
138
|
|
|
136
139
|
### 2. Online Updates (`onlineUpdate` / `updater`)
|
|
137
140
|
- **Default**: Enabled (`true`)
|
package/README.zh-CN.md
CHANGED
|
@@ -127,15 +127,18 @@ dsh plugin --profile web add @michengai/dsh-archive-manager@latest --registry=ht
|
|
|
127
127
|
插件遵循 DSH 官方扩展配置规范,配置项位于:
|
|
128
128
|
> **主界面侧边栏「插件」→ 点击 `Archive Manager` 详情页**(对应宿主 `plugins.bundle.config` 槽位)。
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
### 1.
|
|
133
|
-
-
|
|
134
|
-
-
|
|
130
|
+
此处提供原生配置项:
|
|
131
|
+
|
|
132
|
+
### 1. 入口展示位置 (`entryLocation`)
|
|
133
|
+
- **选项范围**:
|
|
134
|
+
- **全部显示 (`both`)**:在左侧主导航栏显示「归档」图标,同时在「设置 → 归档会话」中保留菜单。
|
|
135
|
+
- **仅侧边栏 (`sidebar`)**:仅在左侧主导航栏显示「归档」图标,设置菜单中自动卸载隐藏,界面更精炼。
|
|
136
|
+
- **仅设置 (`settings`)**(默认):仅在「设置 → 归档会话」中显示,侧边栏保持极简。
|
|
137
|
+
- **防止失联保障**:采用互斥的三选一分段选择器,杜绝两处入口同时关闭导致面板失联的痛点。
|
|
135
138
|
- **生效效果**:
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
+
- 侧边栏开启时,点击即可直达归档中心,并在主工作区以 **960px 居中版心**(对齐官方插件管理与市场规范)展开完整大面板,彻底告别在设置弹窗狭窄视口内滚动的局限;
|
|
140
|
+
- 切换为「仅设置」关闭侧栏时安全注销侧栏槽位(若当前正停留在归档大面板,会自动安全切回默认视图,防止悬空和白屏);
|
|
141
|
+
- 向后完全兼容旧版 `sidebarEntry` 配置(`true` 自动映射为 `both`,`false` 自动映射为 `settings`)。
|
|
139
142
|
|
|
140
143
|
### 2. 在线更新 (`onlineUpdate` / `updater`)
|
|
141
144
|
- **默认状态**:开启(`true`)
|