@michengai/dsh-archive-manager 0.1.18 → 0.1.19

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,12 @@
4
4
 
5
5
  Published release notes are retained below; new versions are added without removing earlier entries.
6
6
 
7
+ ## 0.1.19 — 2026-08-30
8
+
9
+ - Fixed the workspace-row **+** action on DSH `v0.1.2-alpha.1` by resolving the `uiWorkspace` service when the action runs, removing its dependency on plugin load order and avoiding the removed legacy `startSession` API.
10
+
11
+ Published package: [`@michengai/dsh-archive-manager@0.1.19`](https://www.npmjs.com/package/@michengai/dsh-archive-manager/v/0.1.19).
12
+
7
13
  ## 0.1.18 — 2026-08-28
8
14
 
9
15
  - Added client compatibility for the split store layout in DSH `v0.1.2-alpha.1` while preserving the legacy runtime fallback used by `v0.1.1-rc.2`.
@@ -4,6 +4,12 @@
4
4
 
5
5
  以下发布说明会持续保留;新增版本时不再删除较早记录。
6
6
 
7
+ ## 0.1.19 — 2026-08-30
8
+
9
+ - 修复 DSH `v0.1.2-alpha.1` 中工作区行 **+** 操作:在操作执行时再获取 `uiWorkspace` 服务,避免受插件加载顺序影响,也不再落入已移除的旧版 `startSession` API。
10
+
11
+ 发布包:[`@michengai/dsh-archive-manager@0.1.19`](https://www.npmjs.com/package/@michengai/dsh-archive-manager/v/0.1.19)。
12
+
7
13
  ## 0.1.18 — 2026-08-28
8
14
 
9
15
  - 兼容 DSH `v0.1.2-alpha.1` 拆分后的客户端 Store 布局,同时保留 `v0.1.1-rc.2` 使用的旧版 Runtime 回退路径。
package/lib/client.js CHANGED
@@ -3466,7 +3466,10 @@ window.__ModuleLoader__.load({
3466
3466
  zh,
3467
3467
  en
3468
3468
  }), "dsh-archive-manager: dictionaries");
3469
- const uiWorkspace = ctx.get("uiWorkspace");
3469
+ // Resolve the navigation service lazily: this plugin provides the fallback
3470
+ // implementation during its own apply, and cordis strict ctx.get only
3471
+ // returns a service once the providing fiber is ACTIVE.
3472
+ const uiWorkspaceAt = () => ctx.get("uiWorkspace");
3470
3473
  const searchSessions = async (query, signal) => {
3471
3474
  const result = await ctx.sessions.search(query, signal);
3472
3475
  if (!result.ok) throw new Error(result.error.message);
@@ -3513,6 +3516,7 @@ window.__ModuleLoader__.load({
3513
3516
  };
3514
3517
  const browserInjected = () => ({
3515
3518
  startSession: (workspaceId) => {
3519
+ const uiWorkspace = uiWorkspaceAt();
3516
3520
  if (uiWorkspace !== void 0) uiWorkspace.startSession(workspaceId);
3517
3521
  else ctx.workspaces.startSession(workspaceId);
3518
3522
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-archive-manager",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "NPM-installable DSH Web plugin for managing archived sessions.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.21.0",