@michengai/dsh-archive-manager 1.0.11 → 1.0.13

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 CHANGED
@@ -4,6 +4,21 @@
4
4
 
5
5
  Published release notes are retained below; new versions are added without removing earlier entries.
6
6
 
7
+ ## Unreleased
8
+
9
+ ## 1.0.13 - 2026-10-06
10
+
11
+ - The plugin list keeps the product name Archive Manager in Chinese as well as English, matching the other plugins. The settings page title is unchanged.
12
+
13
+ ## 1.0.12 - 2026-10-06
14
+
15
+ - Disabling this plugin no longer disables the official workspace or projection cache, so creating a workspace keeps working. Archive behavior is installed on those live services and removed when this plugin stops.
16
+ - Diagnosis uses the same plugin entry as the archive page. Turning the plugin off and on again remounts those endpoints instead of leaving a separately disabled host row.
17
+ - Enabling the plugin again no longer fails when the update route is still registered.
18
+ - The plugin list shows a localized name and description, using the same locale metadata as Codex UI.
19
+ - Archive and delete confirmations stay inside the settings page, and a failed deletion shows its error so it can be retried.
20
+ - Installing from GitHub now includes the compiled runtime, so no manual build is required.
21
+
7
22
  ## 1.0.11 - 2026-10-01
8
23
 
9
24
  - Batch delete of archived sessions now uses one storage listing and one host call. Deleted sessions are not put back into the in-memory index.
@@ -4,6 +4,21 @@
4
4
 
5
5
  以下发布说明会持续保留;新增版本时不再删除较早记录。
6
6
 
7
+ ## 未发布
8
+
9
+ ## 1.0.13 - 2026-10-06
10
+
11
+ - 插件列表的中文标题也用产品名 Archive Manager,与其他插件一致。设置页标题不变。
12
+
13
+ ## 1.0.12 - 2026-10-06
14
+
15
+ - 禁用本插件不再关掉官方工作区和投影缓存,创建工作区可以继续。归档能力装在这两个正在运行的服务上,插件停掉时卸下。
16
+ - 诊断和归档页走同一条插件入口。关掉再打开会重新挂上这些接口,不会留下一条单独停用的宿主行。
17
+ - 再次启用不再因为残留的更新路由而失败。
18
+ - 插件列表按 Codex UI 的方式显示中英文名称和说明。
19
+ - 归档和删除确认框留在设置页内。删除失败会显示原因,可以重试。
20
+ - 从 GitHub 安装时已包含运行文件,不必再手动构建。
21
+
7
22
  ## 1.0.11 - 2026-10-01
8
23
 
9
24
  - 批量删除已归档会话改为一次存储列举、一次宿主调用。已删除的会话不会被写回内存索引。
package/README.md CHANGED
@@ -159,7 +159,7 @@ $OutputEncoding = [System.Text.Encoding]::UTF8
159
159
  dsh --profile web --dump-config
160
160
  ```
161
161
 
162
- The configuration should include `workspace-archive-manager` and `ui-workspace-archive-manager`. On DSH 0.1.6+, official `ui-settings-unarchive-sessions` should be `disabled: true` so Settings keeps only this plugin's Archived sessions page. If you previously set the official `ui-workspace` to `disabled: true` in your profile's `cordis.patch.yml`, remove that disabling override and restart.
162
+ The configuration should include `ui-workspace-archive-manager` and must not disable official `workspace` or `session-projection-cache`. A leftover `archive-manager-host` override can be removed. On DSH 0.1.6+, official `ui-settings-unarchive-sessions` should be `disabled: true` so Settings keeps only this plugin's Archived sessions page. If your profile's `cordis.patch.yml` still disables `workspace`, `session-projection-cache`, or `ui-workspace`, remove those overrides and restart.
163
163
 
164
164
  ### How is archiving different from deletion?
165
165
 
@@ -189,7 +189,7 @@ pnpm build
189
189
  dsh plugin --profile web add .
190
190
  ```
191
191
 
192
- Restart DSH Web and hard-refresh your browser afterward. Source code in [src](src) uses strict TypeScript. Generated `lib` files are excluded from Git; `prepack` rebuilds them automatically. Published JavaScript entry points and runtime modules remain unchanged; installing the npm package does not require TypeScript. Run `pnpm typecheck` for type checking, `pnpm test` to validate changes, or `pnpm verify` for the full checks.
192
+ Restart DSH Web and hard-refresh your browser afterward. Source code in [src](src) uses strict TypeScript. Both GitHub and npm include a ready-to-run `lib`. After changing source, run `pnpm build` before committing, or a source install keeps the previous runtime. Published JavaScript entry points and runtime modules remain unchanged; installing the npm package does not require TypeScript. Run `pnpm typecheck` for type checking, `pnpm test` to validate changes, or `pnpm verify` for the full checks.
193
193
 
194
194
  </details>
195
195
 
package/README.zh-CN.md CHANGED
@@ -163,7 +163,7 @@ $OutputEncoding = [System.Text.Encoding]::UTF8
163
163
  dsh --profile web --dump-config
164
164
  ```
165
165
 
166
- 配置中应包含 `workspace-archive-manager` 和 `ui-workspace-archive-manager`。DSH 0.1.6+ 上官方 `ui-settings-unarchive-sessions` 应为 `disabled: true`,设置里只保留本插件的「归档会话」。若曾在 profile 的 `cordis.patch.yml` 中手动将官方 `ui-workspace` 设为 `disabled: true`,请移除该禁用覆盖,再重启。
166
+ 配置中应包含 `ui-workspace-archive-manager`,且不应再禁用官方 `workspace` 或 `session-projection-cache`。若还留着 `archive-manager-host` 的禁用覆盖,可以删掉。DSH 0.1.6+ 上官方 `ui-settings-unarchive-sessions` 应为 `disabled: true`,设置里只保留本插件的「归档会话」。若 profile 的 `cordis.patch.yml` 仍禁用 `workspace`、`session-projection-cache` 或 `ui-workspace`,请移除这些覆盖,再重启。
167
167
 
168
168
  ### 归档和删除有什么区别?
169
169
 
@@ -193,7 +193,7 @@ pnpm build
193
193
  dsh plugin --profile web add .
194
194
  ```
195
195
 
196
- 完成后重启 DSH Web 并硬刷新浏览器。业务源码统一在 [src](src) 中使用 TypeScript 严格模式;共享协议在 `contracts.ts`,宿主版本适配在 `host-compat.ts`、`client-compat.ts`,客户端组件与状态类型在 `client-types.ts`。`lib` 是本地构建目录,不纳入 Git,也不直接编辑;`prepack` 会在打包前自动构建,npm 包仍包含 `lib`。`pnpm typecheck` 检查业务源码和类型负例,`pnpm test` 先检查类型、构建再执行回归,`pnpm verify` 还执行兼容矩阵、打包和生成物不被 Git 跟踪的检查。测试与构建脚本继续使用 `.mjs`;对外发布仍为 JavaScript,不要求宿主加载 TypeScript。
196
+ 完成后重启 DSH Web 并硬刷新浏览器。业务源码统一在 [src](src) 中使用 TypeScript 严格模式;共享协议在 `contracts.ts`,宿主版本适配在 `host-compat.ts`、`client-compat.ts`,客户端组件与状态类型在 `client-types.ts`。GitHub 与 npm 都包含可直接运行的 `lib`。改了源码后,提交前运行 `pnpm build`,否则源码安装仍是旧的运行文件。`pnpm typecheck` 检查业务源码和类型负例,`pnpm test` 先检查类型、构建再执行回归,`pnpm verify` 还执行兼容矩阵和打包检查。测试与构建脚本继续使用 `.mjs`;对外发布仍为 JavaScript,不要求宿主加载 TypeScript。
197
197
 
198
198
  </details>
199
199
 
@@ -1,4 +1,4 @@
1
1
  中文 README 使用 dsh-banner.webp,英文 README 使用 dsh-banner-en.webp,全宽展示。
2
2
  两张横幅均为 1.0.0 版本,尺寸 2172×724,通过 custom API 生成并经用户确认。
3
- 仓库标识仍保留 assets/icon.png,供插件图标和其他入口复用。
3
+ assets/icon.png 是外部软件标识,不要用作本插件在插件列表里的 logo。
4
4
  横幅采用 WebP quality=90、method=6,截图采用无损 WebP;均保留原始分辨率。
package/cordis.patch.yml CHANGED
@@ -1,26 +1,18 @@
1
- # 保留官方工作区 UI,仅替换归档需要的后端服务。
1
+ # 不替换官方 workspace / session-projection-cache。
2
+ # 这两个服务分别撑着 workspaceController 和会话投影。
3
+ # 禁用本插件时如果把它们关掉,官方实现又不会回来,侧栏工作区会消失,
4
+ # 创建工作区会报 workspaceController unavailable。
5
+ # 归档能力由 ui-workspace-archive-manager 这一条入口装上,停用时卸下。
6
+ # 不要再插入单独的 host 行:插件页可以只关掉那一行,界面还在,诊断就会 404。
2
7
  # 自定义侧栏通过优先级覆盖插槽;发布后的安装命令:
3
8
  # dsh plugin --profile web add @michengai/dsh-archive-manager
4
9
  #
5
- # workspace / session-projection-cache:宿主注册表与投影缓存,不是设置页。
6
- # 换成本插件子类,才能加批量归档、永久删除和安全缓存域。
7
10
  # ui-settings-unarchive-sessions:DSH 0.1.6+官方「已归档会话」设置页,只能单条恢复;
8
11
  # 禁用后只保留本插件的归档管理入口。旧宿主没有该 id 时补丁被忽略。
9
- - id: workspace
10
- disabled: true
11
- - id: session-projection-cache
12
- disabled: true
13
12
  - id: ui-settings-unarchive-sessions
14
13
  disabled: true
15
14
  - id: ui-workspace
16
15
  disabled: false
17
16
  - insert:
18
- - id: workspace-archive-manager
19
- name: '@michengai/dsh-archive-manager/workspace'
20
- - id: session-projection-cache-archive-manager
21
- name: '@michengai/dsh-archive-manager/projcache'
22
- config:
23
- writeEveryEvents: 200
24
- writeIntervalMs: 5000
25
17
  - id: ui-workspace-archive-manager
26
18
  name: '@michengai/dsh-archive-manager'