Repository navigation
v0.34.0-alpha.0 — 线索收集、划选、Git 可拖动分区与 DSH 0.2.3-alpha.2 适配 / Clues, selection, resizable Git sections, DSH 0.2.3-alpha.2
Pre-release安装 / Installation
需要 DSH 0.2.3-alpha.2 或更高的同线版本(alpha 线)。 / Requires DSH 0.2.3-alpha.2 or a newer release on the same alpha line.
dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.0将 web 换成你实际使用的 profile 名。安装或更新后,按 Cmd/Ctrl + Shift + R 硬刷新浏览器。
Replace web with your profile name. After installing or updating, hard-refresh the browser with Cmd/Ctrl + Shift + R.
| DSH 版本 / DSH version | 插件版本 / Plugin version |
|---|---|
| 0.2.3-alpha.2+(alpha 线 / alpha line) | 0.34.0-alpha.0 |
| 0.2.2-rc.3+ | 0.33.0 |
| 0.2.2-rc.2 | 0.32.1 |
| 0.2.2-rc.1 | 0.32.0 |
| 0.2.1-rc.1 ~ 0.2.1-rc.5 | 0.28.2 |
| 0.2.1-alpha.5 | 0.28.0-alpha.0 |
| 0.2.0-rc.2 | 0.26.1 |
⚠️ 插件版本必须与宿主线匹配:0.x 的依赖范围不跨 minor,一个构建只服务一条宿主线。本版只服务 DSH 0.2.3-alpha.2+,更早的宿主请固定上表对应版本。
Match the plugin to your host line — one build serves one host line. This release serves DSH 0.2.3-alpha.2+ only; older hosts should pin the version listed above.
中文|本版更新
🧭 新增「线索收集」:本地文件、飞书与 GitHub 收进一栏
右侧栏多出一个 tab,把四处上下文收在一起:顶部是来源分段(本地文件 / GitHub Issues / GitHub Pull requests / 飞书文档 / 飞书任务,记住上次选择),下面一行是范围(当前仓库或工作区)与共享搜索框;列表行 30px,行内动作只在悬停或键盘聚焦时出现,触控下恒显且 44px。
- 资料类型随栏宽切换:宽栏横排显示来源图标与名称,窄栏收成紧凑下拉;资料浏览与包内添加共用这套控件,拉宽收窄不会跳来源。
- 资料与资料包是可调分区:多个区块可以各自展开、同时显示,用鼠标、触控或键盘上下调整;布局写入插件设置,折叠不丢失搜索、列表位置与草稿。
- 统一浮窗:详情、包管理、添加成员、来源配置、新建包与分享都由同一个窗口宿主承载(记忆位置与尺寸、支持最大化)。宽屏下有会话时默认停靠右侧栏 tab,浮窗按钮仍可随时弹出同一实例;没有会话时保持浮窗。
- 预览与编辑分开:详情里是两个页签,打开只读预览,点「编辑」才读取可写文档,保存永远基于编辑文档自己的基线。
- 稳定引用:tab 内与输入框里的 @ 只落
[[dsh-clue:…]]/[[dsh-cluepack:…]]/[[dsh-clue-snapshot:…]]这类稳定 token,跨会话、跨工作区都能解析回同一条线索。 .cluepack分享:按包或单条线索导出 / 导入,references保留原引用;导入前给出可解析 / 不可解析的预览,未落地的行不写入。- 来源运行面:共享来源 runtime 负责依赖安装与连接授权(GitHub 走
gh,飞书走 lark-cli 设备码),表里逐来源显示就绪 / 缺依赖 / 未授权;只在显式读取时刷新,不轮询、不自动登录。授权提示带可扫的二维码。 - GitHub 预览:显示头像、名称、分支与红绿变更量;PR 概览分开显示合并、检查、评审与评论,没有数据时不显示虚假的就绪或审批数量。CI 概览一次显示最多 20 项检查,区分排队、运行、失败、跳过与取消,超出时跳转完整列表。
- 格式与渲染:Markdown、HTML、JSONL 与代码都有只读预览器;写盘前按磁盘现状还原编码与行尾,客户端只发送 LF。
- 设备码授权自动复查:拿到验证码后按 CLI 建议的间隔重发同一次显式轮询,页面隐藏暂停,完成 / 过期 / 取消即停,连续失败 3 次退回手动。
- 公共扩展面:宿主 Cordis 服务
betterSidebarClues与窗口能力一起开放(features新增clues/windowHost),外部插件用同一套 API 注册来源与浮窗,见docs/external-plugin-guide.md§7.1。
✨ 划选:独立翻译与可配置改写
文件编辑 / 预览与线索正文 / 评论共用一套划选菜单,支持总开关、逐项开关、主菜单与改写类型排序、内置提示词编辑 / 恢复和自定义操作。
- 翻译不建会话:直接调用宿主 LLM,不改原文,译文留在浮层里可复制、可重试;模型可独立配置,目标语言默认跟随界面语言。
- 改写收进二级菜单:扩写 / 去 AI 味 / 缩短 / 续写,默认在新的侧边会话立即执行,也可以先填草稿。只读内容、评论和当前有未保存编辑的表面不提供改写。
- 改写直接更新原资源:本地文件编辑原路径,远程正文沿用来源自己的保存能力。
- 插入只填草稿:「插入主会话 / 插入到侧边」不会直接发送;划选打开的侧边会话在宽屏浮动、窄屏以 Tab 打开。
- 紧凑布局:操作菜单与译文面板分开定宽;改写在悬停、点击或键盘进入时向有空间的一侧展开二级浮层。窄屏仍保持侧弹,必要时覆盖部分主菜单;译文的「返回 / 复制」改成并排底栏,长译文单独滚动。
- 选区保留来源:选择并插入时同时携带稳定
dsh-clue引用和选区原文;保存引用失败时保留选区供重试,不发送消息。
🎛 Git 页的 Changes 与 Graph 可以拖动改高度
两个分区放进与「线索收集」同一套可拖动堆叠,中间的分隔柄支持鼠标与触控拖拽,也可以按 Home / End / ↑ / ↓ 调整。两个分区各自内部滚动,折叠到只剩一个分区时分隔柄不显示;分区比例不写入设置,刷新后回到默认。
🧩 支持线前移到 DSH 0.2.3-alpha.2(alpha 线)
14 条 DSH peer 与 engines.dsh 同批抬到 0.2.3-alpha.2,Cordis 依赖线同步到 4.2.0-alpha.1。本版只服务 DSH 0.2.3-alpha.2+,更早的宿主请固定上表对应版本。
- 宿主删除了
@deepseek-ai/dsh-llm的./brand子路径,类型改从./types引入。 - 目录投影的权威事件从
working-directory/change换成workspace-root/change,侧边对话的 cwd 边界戳记与工作树跟随随之调整。 - 0.2.3 给宿主路由加了默认鉴权:插件的
/sidebar/*显式声明匿名访问,否则请求在进入处理函数前就被 401 / 503 挡掉。 - 删除所有旧宿主兼容分支(准入回退、旧目录事件、旧
data-slot锚点、getOrigin探测),不再维护运行时兼容层。 - 修掉线索包窗口的页脚贴底(实际 26px vs 设计的 14px),以及文件搜索按目录枚举顺序截断导致 Linux 上分页结果不稳定的问题。
🩹 其他修复
- PC 端文件树的右键菜单恢复(贡献者 PR #1222):菜单没有声明
contextual,宿主按普通菜单处理,contextmenu之后不渲染;补上声明后与宿主自己的右键菜单一致。 - 开始页更直观:「线索收集」标明 beta 并用一行说明用途——本地文件、飞书与 GitHub 的上下文信息中心;「侧边对话」移除 beta 标识。默认位置交换侧边对话与新建终端,用户已保存的自定义顺序不变。
- 侧栏细节:内容加载使用居中的环形动画并尊重减少动态效果偏好;转为浮窗后移除原标签页,草稿与滚动位置不变;浮窗边缘稍加粗,文件预览与线索收集使用更清晰的独立图标。
- 设置入口对齐:标签页、文件预览开关旁始终保留设置按钮;无设置项时禁用,有设置项时即使功能关闭也可配置。开始页「更多」新增「侧边栏设置」。
- 少一条栏带:线索详情的「本地缓存 · 刷新 · 打开原始来源」整行收进头部动作位,正文上方的 chrome 从 5 条压到 3 条。
⚡ 性能
- Git 提交图加载更多历史时不再重复比对(贡献者 PR #1241):追加一页时按完整提交哈希为已加载历史建立集合,再按原顺序追加新记录;整页重复时也会继续推进分页游标。
🧪 质量
- 界面组件收敛到同一层:任务窗口、侧边对话的附件与图片、标签页与预览(diff、终端、媒体 / PDF / 大文件)、文件树外壳的字段、行、空态、错误态、下载链接与开关改用同一套共享组件,信息层级、可访问性与主题令牌一致;行为与文案不变。
- 线索套件按「删了再重写」收敛:从约 5.0 万行压到约 1.8 万行(63 个冗余 spec 删除,其余保留契约、合并重复变体为表驱动)。
- 类型检查、lint 与全量单元测试通过(366 个测试文件、4626 项通过、18 项跳过);真实宿主 + Chromium 的挂载冒烟通过。
贡献者与致谢 / Contributors & thanks
感谢本次发布范围内提交功能与修复的贡献者!
| 贡献者 / Contributor | 本版贡献 / Contribution | PR |
|---|---|---|
| @whalestar-doc | PC 端文件树右键菜单恢复 / File tree right-click menu on PC | #1222 |
| @ai-zen-future | Git 提交图分页去重 / Git Graph pagination dedup | #1241 |
维护者 Menghuan1918 负责本版的 DSH 0.2.3-alpha.2 适配、线索收集与划选、Git 页可拖动分区、界面组件收敛与整体发布,并完成复核、集成和验证。也感谢所有试用预览版、提交截图和反馈的使用者。
Maintainer Menghuan1918 handled this release's DSH 0.2.3-alpha.2 adaptation, the Clues tab and selection work, resizable Git sections and the component-layer convergence, plus review, integration and verification. Thanks also to everyone who tried the preview, sent screenshots and reported issues.
English|What's new in v0.34.0-alpha.0
🧭 New Clues tab: local files, Feishu and GitHub in one column
The right sidebar gains a tab that gathers context from four places: a source segment on top (local files / GitHub issues / GitHub pull requests / Feishu docs / Feishu tasks, remembering the last choice), then a scope row (the current repository or workspace) and the shared search field. Rows are 30px, with row actions only on hover or keyboard focus and always visible at 44px on touch.
- Resource types adapt to the column width: wide panes show source icons and names in a row; narrow panes use a compact menu. The resource browser and the pack member picker share the control, so resizing never switches the selected source.
- Resources and Collections are resizable sections: expand several together and drag the dividers with mouse, touch or the keyboard. The layout is remembered in plugin settings, and collapsing a section preserves its search, list position and drafts.
- One window host: detail, pack management, add-member, source configuration, new pack and sharing all go through the same window host (it remembers position and size and supports maximize). With a session at hand they dock as right-column tabs by default; the float button still pops out the same instance, and a session-less window stays floating.
- Preview and edit are two paths: the detail opens a read-only preview, clicking Edit reads the writable document, and a save always uses the edit document's own baseline.
- Stable references: an @ pick inside the tab or in the composer only produces
[[dsh-clue:…]]/[[dsh-cluepack:…]]/[[dsh-clue-snapshot:…]]tokens, so a reference resolves back to the same clue across sessions and workspaces. .cluepacksharing: export and import by pack or single clue withreferencespreserved; the import preview says what resolves and what does not, and unresolved rows are never written.- Source runtime: one shared source runtime owns dependency installation and connection authorization (GitHub through
gh, Feishu through the lark-cli device code). The table shows ready / missing dependency / not authorized per source, refreshes only on an explicit read, and never polls or auto-logs-in. The authorization prompt carries a scannable QR code. - GitHub previews show avatars, names, branches and colored line changes; a PR overview separates merge readiness, checks, review and comments without inventing results or counts. The CI overview lists up to 20 checks from one read, distinguishes queued, running, failed, skipped and canceled, and links to GitHub for the complete list.
- Format and rendering: Markdown, HTML, JSONL and code get read-only previewers; a save restores the encoding and line endings found on disk, and the client only sends LF.
- Device-code authorization checks itself: after handing out a code it re-sends the same explicit poll at the CLI's suggested cadence — paused while the page is hidden, stopped on completion, expiry or cancel, and falling back to the button after three consecutive failures.
- Public extension surface: the host Cordis service
betterSidebarCluesand the window capability are exposed together (featuresgainsclues/windowHost), so another plugin registers sources and windows through the same API; seedocs/external-plugin-guide.md§7.1.
✨ Selection: standalone translation and configurable rewriting
File editing / previews and clue bodies / comments share one selection menu, with an overall switch, per-action switches, menu and rewrite ordering, editable / resettable prompts and custom actions.
- Translation creates no session: it calls the host LLM directly, never changes the source, and keeps the result in the popup with copy and retry. Configure a separate model; the target language follows the UI by default.
- Rewrite lives in a submenu: expand / naturalize / shorten / continue, running in a fresh side chat by default or filling a draft first. Read-only content, comments and surfaces with unsaved edits do not offer rewriting.
- Rewrite updates the original resource: local actions edit the original path; remote bodies use their source's own save flow.
- Insertion only fills a draft: "Insert into main / side chat" never sends; a selection side chat floats on wide screens and opens as a tab on narrow ones.
- Compact layout: action menus and translation results use separate widths, and rewrite opens a lateral flyout on hover, click or keyboard, flipping sides to fit. Narrow screens keep the flyout with partial parent overlap; translation results place Back and Copy together in a bottom bar, with long text scrolling separately.
- Selection provenance: inserting a clue body or comment selection carries both a stable
dsh-cluereference and the exact excerpt; a failed reference keeps the selection available for retry and never sends a message.
🎛 Changes and Graph on the Git page are resizable
Both sections join the same draggable stack as Clues, with a divider that responds to mouse and touch dragging as well as Home / End / ↑ / ↓. Each section scrolls on its own, no divider shows while only one section is open, and the split is not persisted — a refresh returns to the default.
🧩 Support line moves to DSH 0.2.3-alpha.2 (alpha line)
The 14 DSH peers and engines.dsh move to 0.2.3-alpha.2 together, with the Cordis line at 4.2.0-alpha.1. This build serves DSH 0.2.3-alpha.2+ only; older hosts should pin the version listed above.
- The host removed
@deepseek-ai/dsh-llm's./brandsubpath, so the type now comes from./types. - The projection authority moved from
working-directory/changetoworkspace-root/change; side-chat cwd stamps and worktree following moved with it. - DSH 0.2.3 added a default auth policy to host routes: the plugin's
/sidebar/*routes now declare anonymous access explicitly, otherwise requests are rejected with 401 / 503 before reaching their handler. - Every older-host compatibility branch is gone (the admission fallback, the legacy directory event, the old
data-slotanchor and thegetOriginprobe); there is no runtime compatibility layer. - The clue pack window's footer now sits on the window's bottom edge (it measured 26px instead of the designed 14px), and file search no longer truncates in directory enumeration order, which made pagination unstable on Linux.
🩹 Other fixes
- The file tree's right-click menu works on PC again (contributed PR #1222): the menu was not declared
contextual, so the host treated it as a regular menu and rendered nothing oncontextmenu. - A clearer start page: Clues is marked beta and described in one line as the context hub for local files, Feishu and GitHub; Side Chat drops its beta marker. Side Chat and New terminal exchange their default positions without changing saved custom ordering.
- Sidebar polish: content loading uses a centered ring animation that respects reduced motion; floating a window removes its former tab while preserving drafts and scroll position; floating edges are slightly stronger, and file preview and Clues have distinct, clearer icons.
- Aligned settings actions: tab and viewer switches always reserve a settings button, disabled only when no settings exist, and configuration stays accessible even when its feature is off. Start-page More now includes Sidebar settings.
- One band fewer: the clue detail's "local cache · Refresh · Open original" row moved into the header's action seat, taking the chrome above the body from five rows to three.
⚡ Performance
- Loading more Git Graph history no longer re-compares loaded commits (contributed PR #1241): each append indexes the full hashes of loaded commits before filtering the incoming page, new commits keep their page order, and duplicate-only pages still advance the cursor.
🧪 Quality
- One component layer across the interface: the task window, side-chat attachments and images, tabs and previews (diff, terminal, media / PDF / large files) and the file-tree shell now take their fields, rows, empty and error states, download links and switches from one shared kit, with consistent hierarchy, accessibility and theme tokens; behavior and copy are unchanged.
- The clue suite was rebuilt rather than patched: roughly 50k lines down to 18k (63 redundant specs deleted, the rest keeping their contracts and folding duplicate variants into tables).
- Typecheck, lint and the full unit suite pass (366 test files, 4,626 passed, 18 skipped), and the real-host + Chromium mount smoke passes.
完整变更 / Full changelog:CHANGELOG.md · CHANGELOG_EN.md