@michengai/dsh-codex-ui 0.2.65 → 0.2.67

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/dist/client.js CHANGED
@@ -1487,7 +1487,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1487
1487
  };
1488
1488
  const renderGroup = (workspace, zone) => {
1489
1489
  const expandKey = zone === "pinned" ? `pin:${workspace.workspaceId}` : String(workspace.workspaceId);
1490
- const isExpanded = expanded[expandKey] ?? zone !== "pinned";
1490
+ const isExpanded = expanded[expandKey] ?? true;
1491
1491
  const shownIds = workspace.visibleIds.filter((id) => !pinSectionSessions.includes(id));
1492
1492
  const menuOpen = menu?.type === "workspace" && menu.id === workspace.workspaceId;
1493
1493
  const menuAt = menuOpen && menu.x !== void 0 && menu.y !== void 0 ? {
@@ -1575,7 +1575,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1575
1575
  setPinSlot(void 0);
1576
1576
  },
1577
1577
  onClick: () => {
1578
- if (zone !== "pinned") toggleGroup(expandKey, true);
1578
+ toggleGroup(expandKey, true);
1579
1579
  },
1580
1580
  onContextMenu: (event) => {
1581
1581
  event.preventDefault();
@@ -1604,7 +1604,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1604
1604
  onKeyDown: (event) => {
1605
1605
  if (event.key === "Enter" || event.key === " ") {
1606
1606
  event.preventDefault();
1607
- if (zone !== "pinned") toggleGroup(expandKey, true);
1607
+ toggleGroup(expandKey, true);
1608
1608
  }
1609
1609
  },
1610
1610
  children: [
@@ -1627,7 +1627,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1627
1627
  top: box.top
1628
1628
  }, { immediate: true });
1629
1629
  },
1630
- children: zone !== "pinned" && isExpanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpenOutline16, { size: 16 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderClose16, { size: 16 })
1630
+ children: isExpanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpenOutline16, { size: 16 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderClose16, { size: 16 })
1631
1631
  }),
1632
1632
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1633
1633
  className: "dcu-wb-project-title",
@@ -1697,11 +1697,11 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
1697
1697
  })
1698
1698
  ]
1699
1699
  }),
1700
- zone !== "pinned" && isExpanded && shownIds.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1700
+ isExpanded && shownIds.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1701
1701
  className: "dcu-wb-nochat",
1702
1702
  children: t("workspace.noChat")
1703
1703
  }),
1704
- zone !== "pinned" && isExpanded && shownIds.map((id) => {
1704
+ isExpanded && shownIds.map((id) => {
1705
1705
  const session = sessions.byId[id];
1706
1706
  if (session === void 0) return null;
1707
1707
  const path = session.cwd ?? workspace.path;
package/dist/index.mjs CHANGED
@@ -83,7 +83,7 @@ function resolveDshPluginTarget(installing, _declared = []) {
83
83
  function isOfficialRuntimePackage(packageName) {
84
84
  return packageName === "@deepseek-ai/dsh" || packageName.startsWith("@deepseek-ai/dsh-");
85
85
  }
86
- /** 从全局 npm 安装的 dsh CLI 入口反推出包根目录;源码启动不匹配该目录结构。 */
86
+ /** 从全局 npm 安装的 dsh CLI 入口反推出包含 node_modules 的运行时目录;源码启动不匹配该目录结构。 */
87
87
  function resolveDshRuntimeRoot(entry = process.argv[1], cwd = process.cwd()) {
88
88
  if (entry === void 0 || entry === "") return void 0;
89
89
  const cliEntry = resolveDshCliEntry(entry, cwd);
@@ -95,7 +95,9 @@ function resolveDshRuntimeRoot(entry = process.argv[1], cwd = process.cwd()) {
95
95
  const index = cliEntry.toLowerCase().lastIndexOf(marker.toLowerCase());
96
96
  if (index === -1) return void 0;
97
97
  const end = index + marker.length;
98
- return end === cliEntry.length || cliEntry[end] === sep ? cliEntry.slice(0, end) : void 0;
98
+ if (end !== cliEntry.length && cliEntry[end] !== sep) return void 0;
99
+ const root = cliEntry.slice(0, index);
100
+ return root.endsWith(sep) ? root.slice(0, -1) : root;
99
101
  }
100
102
  function packageLookupRoots(packageName) {
101
103
  if (!isOfficialRuntimePackage(packageName)) return [profileDirectory()];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "0.2.65",
3
+ "version": "0.2.67",
4
4
  "description": "以 Codex 风格重构 DSH Web 侧栏的独立客户端插件",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {