@restregular/dsh-powerup 0.19.4 → 0.19.5

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.
Files changed (2) hide show
  1. package/client.js +6 -4
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -85,7 +85,7 @@
85
85
  const requirementCreateDraft = { workspaceId: null, title: '', text: '', scope: 'current' };
86
86
  /** Fallback bucket when the hero cannot resolve an owning workspace yet. */
87
87
  const UNSCOPED_WORKSPACE = '__unscoped__';
88
- const VERSION = '0.19.4';
88
+ const VERSION = '0.19.5';
89
89
  const MENU_GAP = 8;
90
90
  const MENU_WIDTH = 248;
91
91
  /** Reference scheme understood by the Host's `powerup_step_read` tool. */
@@ -11385,10 +11385,12 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
11385
11385
  const reqs = useRequirements();
11386
11386
  // Resolve the owning workspace for requirement filtering + create modal.
11387
11387
  // Prefer the slot-provided scoped `useWorkspaces` hook (the client-side
11388
- // `workspaces` service has no `.list`; that is Host-only). Fall back to
11389
- // the live DOM session id if the hook is absent on an older host.
11388
+ // `workspaces` service has no `.list`; that is Host-only). Use sessionId
11389
+ // directly here — sessionRef is declared further down, and referencing it
11390
+ // here throws a TDZ ReferenceError when the hook evaluates the selector
11391
+ // during render, crashing the control so its entry button never renders.
11390
11392
  const workspaceSelector = useMemo(
11391
- () => (snapshot) => resolveWorkspaceIdFromSnapshot(snapshot, sessionRef.current),
11393
+ () => (snapshot) => resolveWorkspaceIdFromSnapshot(snapshot, sessionId),
11392
11394
  [sessionId],
11393
11395
  );
11394
11396
  const workspaceId = typeof useWorkspaces === 'function'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restregular/dsh-powerup",
3
- "version": "0.19.4",
3
+ "version": "0.19.5",
4
4
  "description": "为 DeepSeek Harness 提供一组可选的小型增强:轨迹右键菜单与步骤引用、后台任务停止原因、插件一键安装、侧边栏图标网格、会话切换、定位当前会话、工作区提示词、旁路模型生成的结构化任务进度;所有功能均可在 Power-Up 页面独立开关。 · Opt-in upgrades for DeepSeek Harness: Trajectory context menu and step references, job stop reasons, one-click plugin install, an adaptive sidebar launcher, session switching, locating the current session, workspace prompts, and non-blocking model-generated structured task progress — each toggled independently on the Power-Up page.",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",