Skip to content

Releases: SyaJask/dsh-2sidebar

dsh-2sidebar v0.1.3

Choose a tag to compare

@SyaJask SyaJask released this 01 Nov 09:17

dsh-2sidebar v0.1.3

客户端改用框架标准的 useSessions 读取会话工作区,并移除不再使用的 sessions 服务注入;行为不变。

English → | 中文


改进

  • 客户端契约对齐:分栏页签通过框架标准 useSessions prop 读取会话工作目录,不再自行订阅 ctx.sessions;组件内不再包含订阅机制。
  • 清单收敛:客户端 inject 列表移除不再使用的 sessions 服务;dsh.client.inject 仍保留 @deepseek-ai/dsh-client-ui-session,它是 useSessions 的提供方。
  • 兼容性下限:engines.dsh 的最低版本更新为 0.2.1-rc.5,与已验证环境一致。

安装

  • 从 npm:dsh plugin --profile desktop add dsh-2sidebar
  • 本地开发:dsh plugin --profile desktop add "link:<repo>"
  • 自检:node --check client.js、npm pack --dry-run

限制

  • 仅文本与图片预览;PDF / Office / HTML 用 DSH 原生预览页签。
  • 需要提供 useSessions 标准 prop 与 @deepseek-ai/dsh-client-ui-primitives 基线的 DSH 版本;客户端 API 已按 0.2.1-rc.5 核对。
  • 其余上限与限制见 README。

完整的技术细节请见 CHANGELOG。

English

The client now reads the session workspace through the framework's standard useSessions prop and no longer injects the unused sessions service; behavior is unchanged.

Changed

  • Client contract alignment: the split tab reads the session working directory through the standard useSessions prop instead of subscribing to ctx.sessions itself; components carry no subscription machinery.
  • Manifest cleanup: the client inject list no longer includes the unused sessions service; dsh.client.inject keeps @deepseek-ai/dsh-client-ui-session, the provider of useSessions.
  • Compatibility floor: engines.dsh now starts at 0.2.1-rc.5, matching the verified environment.

Install

  • From npm: dsh plugin --profile desktop add dsh-2sidebar
  • Local development: dsh plugin --profile desktop add "link:<repo>"
  • Verify: node --check client.js, npm pack --dry-run

Limitations

  • Text and image previews only; use DSH's native preview tabs for PDF / Office / HTML.
  • Requires a DSH version with the useSessions standard prop and the @deepseek-ai/dsh-client-ui-primitives baseline; the client APIs were checked against 0.2.1-rc.5.
  • Other caps and limitations: README.

Full technical details: CHANGELOG.

dsh-2sidebar v0.1.2

Choose a tag to compare

@SyaJask SyaJask released this 01 Nov 01:38

dsh-2sidebar v0.1.2

分栏界面重构、会话标题栏打开修复,以及包结构与清单整理;除修复项外没有其他行为变化。

English → | 中文


改进

界面

  • 对齐 DSH 原生侧栏:13 px 内容字阶、38 px header、28 px 工具按钮、5×10 px 行内边距、每级 18 px 缩进。
  • 复用宿主组件与图标:共享 PathLabel、文件夹开/合图标、按扩展名着色的文件类型图标;目录优先 + 自然排序。
  • 统一设计 token:分栏、文本预览、滚动条、空/错误状态和图片背景使用 --dsw-alias-* / --dsw-radius-*。
  • 统一图标:页签标题、会话标题栏按钮与右侧栏引导卡片使用原生 compare-split 图标。

打包与结构

  • npm 包根改为仓库根:package.json、index.js、client.js、cordis.patch.yml、locale/、icon.svg 直接位于仓库根目录,plugin/ 子目录已移除。
  • 清单对齐 DSH 插件契约:engines.dsh、导出的 ./package.json、Host 半侧的 name、包名形式的 dsh.client.inject,并移除空 config 与 immediately 预取。

修复

  • 打开分栏不再先展开空侧栏:新会话或关闭全部页签后只出现「目录分栏」,不会同时留下「开始」页;活动的「开始」页按官方引导卡片规则让位。

安装

  • 从 npm:dsh plugin --profile desktop add dsh-2sidebar
  • 本地开发:dsh plugin --profile desktop add "link:<repo>"
  • 自检:node --check client.js、npm pack --dry-run

限制

  • 仅文本与图片预览;PDF / Office / HTML 用 DSH 原生预览页签。
  • 需要包含 @deepseek-ai/dsh-client-ui-primitives 基线的 DSH 版本;客户端 API 已按 0.2.1-rc.5 核对。
  • 其余上限与限制见 README。

完整的技术细节请见 CHANGELOG。

English

Split-view UI refactor, session-header fix, and bundle layout/manifest cleanup; apart from the fix, behavior is unchanged.

Changed

UI

  • Follows the native DSH sidebar: 13 px content type, 38 px headers, 28 px tool buttons, 5×10 px row padding, 18 px nested indentation.
  • Reuses host primitives and icons: shared PathLabel, folder open/close icons, per-extension file-type icons; directories first with natural ordering.
  • Design tokens: split and text-preview headers, scrollbars, empty/error states and image surfaces use --dsw-alias-* / --dsw-radius-*.
  • Native icon: tab chip, session-header button and guide card use the native compare-split icon.

Packaging and layout

  • npm package root is the repository root: package.json, index.js, client.js, cordis.patch.yml, locale/ and icon.svg live there directly; plugin/ is gone.
  • Manifest follows the DSH plugin contract: engines.dsh, an exported ./package.json, a Host-half name, package-name dsh.client.inject edges, and no empty config or immediately prefetch.

Fixed

  • Opening the split tab no longer expands an empty sidebar first: a fresh or fully closed session shows only the split tab, and an active Start page gives way as the host's guide entries do.

Install

  • From npm: dsh plugin --profile desktop add dsh-2sidebar
  • Local development: dsh plugin --profile desktop add "link:<repo>"
  • Verify: node --check client.js, npm pack --dry-run

Limitations

  • Text and image previews only; use DSH's native preview tabs for PDF / Office / HTML.
  • Requires a DSH version with the @deepseek-ai/dsh-client-ui-primitives baseline; the client APIs were checked against 0.2.1-rc.5.
  • Other caps and limitations: README.

Full technical details: CHANGELOG.

dsh-2sidebar v0.1.1

Choose a tag to compare

@SyaJask SyaJask released this 29 Oct 16:42

dsh-2sidebar v0.1.1

发布流程版本:首次由 GitHub Actions 的 npm trusted publishing(OIDC)发布,并带 npm provenance;插件行为没有变化。

English → | 中文


改进

  • npm 发布改为 GitHub Actions:tag v0.1.1 触发的 workflow 负责发布,不再需要本地 token。
  • 带 provenance:npm 包附带 SLSA provenance,源码提交为 3c79804。

安装

  • npm:dsh-2sidebar@0.1.1,对应源码提交 3c79804(与 v0.1.1 tag 一致)。
  • dsh plugin --profile desktop add dsh-2sidebar
  • 升级:保留原有 localStorage 状态,无需额外操作。

完整的技术细节请见 CHANGELOG。

English

Release-process release: the first package published by GitHub Actions through npm trusted publishing (OIDC), with npm provenance. No plugin behavior changes.

Changed

  • npm publishing moved to GitHub Actions: the workflow triggered by tag v0.1.1 publishes the package; no local token is needed.
  • Provenance: the npm package ships an SLSA provenance whose source commit is 3c79804.

Install

  • npm: dsh-2sidebar@0.1.1, source commit 3c79804 (matching the v0.1.1 tag).
  • dsh plugin --profile desktop add dsh-2sidebar
  • Upgrade: existing localStorage state is kept; no extra action is needed.

Full technical details: CHANGELOG.

dsh-2sidebar v0.1.0

Choose a tag to compare

@SyaJask SyaJask released this 27 Oct 15:37

dsh-2sidebar v0.1.0

首个版本:给 DSH 右侧栏用的「目录分栏」插件,左侧目录树、右侧文件内容,两栏同时可见,切换文件时目录树不动。

English → | 中文


新增

  • 右侧栏分栏页签:目录树 + 文本/图片预览,可停靠、分栏、全屏。
  • 文本分页读取:每页 2,000 行,可「加载更多」,到底显示「已到文件末尾」,并显示文件大小。
  • 图片预览:png、jpg、jpeg、gif、webp、bmp、ico、avif、svg。
  • 可拖动分隔条:调整左右比例;比例与目录树状态保存在 localStorage。
  • 中英文界面,跟随宿主主题。

安装

  • npm:dsh-2sidebar@0.1.0(实际发布的代码内容对应提交 66ba273;registry 的 gitHead 为 5e2a7bd,v0.1.0 tag 指向更早的源码快照 90d2255)。
  • dsh plugin --profile desktop add dsh-2sidebar

限制

  • 仅文本与图片预览;PDF / Office / HTML 用 DSH 原生预览页签。
  • 目录树以会话工作目录为根,不提供浏览工作区之外的入口。
  • 读取受宿主 workspaceFiles 上限约束(每页 2 MiB / 5,000 行 / 目录 2,000 项)。

完整的技术细节请见 CHANGELOG。

English

The first release: a split-pane file browser for the DSH right sidebar — directory tree on the left, file content on the right, both visible at once, and switching files never moves the tree.

Added

  • Right-sidebar split tab: directory tree plus text/image preview, dockable, splittable and fullscreen.
  • Paged text reads: 2,000 lines per page, Load more, End of file, and a byte counter.
  • Image preview: png, jpg, jpeg, gif, webp, bmp, ico, avif, svg.
  • Draggable divider: changes the pane ratio; the ratio and tree state persist in localStorage.
  • English and Chinese UI, following the host theme.

Install

  • npm: dsh-2sidebar@0.1.0 (the published content corresponds to commit 66ba273; the registry records gitHead 5e2a7bd, while the v0.1.0 tag points at the earlier source snapshot 90d2255).
  • dsh plugin --profile desktop add dsh-2sidebar

Limitations

  • Text and image previews only; use DSH's native preview tabs for PDF / Office / HTML.
  • The tree is rooted at the session working directory; there is no entry to browse outside the workspace.
  • Reads follow the host's workspaceFiles caps (2 MiB per page / 5,000 lines / 2,000 directory entries).

Full technical details: CHANGELOG.