Commit Graph
1124 Commits
Author SHA1 Message Date
Menghuan1918 795beabe22 chore(dsh): adapt to DSH 0.2.3-alpha.2 and drop pre-0.2.3 compatibility
Raise the whole baseline to the alpha line and stop carrying code that only
exists for older hosts (no runtime compatibility layer, per AGENTS §4):

- peers/engines: 14 DSH peers and engines.dsh -> 0.2.3-alpha.2, Cordis ->
  4.2.0-alpha.1, group/include 1.2.0-alpha.1, schemastery 3.20.0-alpha.1;
  dev pins and CI/e2e/install scripts move with them; plugin version
  0.34.0-alpha.0.
- admission: DSH 0.2.3 deleted `requestRejection`, so only the injected
  `connection.authentication` provider can call `admit`; the legacy branch
  and the direct-admit fallback are gone and the fence fails loudly.
- directory events: the projection authority is `workspace-root/change`;
  the side-chat cwd stamp emits it and the worktree scan no longer reads
  the retired `working-directory/change`.
- llm types: `@deepseek-ai/dsh-llm` no longer exports `./brand`, so
  MessageId comes from `./types`.
- client anchors: only `[data-slot="main.conversation"]`; the alpha.1
  `conversation` key is retired. `webServer.getOrigin` is called directly.

Gates: peers check, typecheck, lint, test (366 files / 4615 passed),
build, check:consumer-types.
2026-11-25 01:03:57 +08:00
Menghuan1918 8aa4ae32b1 chore: reconcile the clues line with dev's newest client surfaces
Upstream moved under the branch while it was being rebased: the changes
lens grew its own underline tabs (#1236) and kept ONE native branch
select (#944), the task graph squared its controls (#948), the host
admission call moved to rc.3's admit fallback, and the graph viewport
got a fixed 248px floor. Where the two designs collided this takes
upstream's newer chrome and re-applies the branch's kit only where it
defines our own surfaces.

- changes/GitGraphSection: keep the branch's kit buttons but restore the
  native branch select, and give it token colours plus the 32px / 44px
  touch sizes so it stops falling back to the OS chrome in a dark panel.
- sidebar/dock-fallback: upstream's 28px host-matched geometry plus the
  branch's 44px coarse-pointer target (no longer a 32px base).
- ui/workbench-section: the disclosure bar is exactly 28px INCLUDING its
  divider, so the sections keep the heights the changes graph measures.
- tests: theme.spec, dock-fallback, git-graph-ui and git-view-worktree
  follow upstream's newer shapes; the surface sweep stops demanding one
  identical tab for upstream's underline lens strip, and the graph e2e
  clicks the shared section disclosure instead of the old div > button.
2026-11-24 16:43:27 +08:00
Menghuan1918 51b77e36ea i18n(es): translate dev's new catalog keys 2026-11-24 16:43:27 +08:00
Menghuan1918 cea6282cec fix(rebase): keep the 0.33.0 surface and adapt to dev's newer host contracts 2026-11-24 16:43:27 +08:00
Menghuan1918 a90abe4304 feat(selection): compact popup with lateral rewrite flyout 2026-11-24 16:43:27 +08:00
Menghuan1918 99ecc6dee7 feat(navigation): clarify Clues labels and reorder default guide 2026-11-24 16:43:27 +08:00
Menghuan1918 08002a0211 feat(selection): configure rewriting and translate selections directly 2026-11-24 16:43:27 +08:00
Menghuan1918 39ccabcefb feat(sidebar): polish loading, floating windows and clue provenance 2026-11-24 16:43:27 +08:00
Menghuan1918 3313b8779f fix(clues): restore horizontal source selection in wide panes 2026-11-24 16:43:27 +08:00
Menghuan1918 dc3b8aba33 feat(clues): refine resizable workbench and resource previews 2026-11-24 16:43:27 +08:00
Menghuan1918andDevin 1ddabbc227 refactor(clues): restyle the detail, pack, collect and share windows
The clue windows kept redundant title inputs, bare radios and file pickers
and doubled footer borders. They now sit on the shared ListRow, SearchField
and Disclosure patterns with compact action footers, while the Feishu
preview follows the same density.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin de90a883a3 refactor(clues): rebuild the main tab as a two-section workbench
The tab stacked a path bar, wide source tabs and a nested pin strip over
the list. It now reads as a workbench: resources and packs collapse like
VS Code sections, the source picker is a compact SelectMenu over two
toolbar rows, pins fold into the list, and new packs are created inline.
The first-use help and the selection bubble got opaque, compact surfaces.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin 90854255fc feat(clues): prefer docked sidebar surfaces for heavy clue flows
Heavy clue flows always opened the same way regardless of how the user
works. A volatile windowSurface preference (sidebar by default, floating
as the alternative) now drives the detail, pack, share and settings
windows, exposed as a segmented row on the clue sources settings page
and in the host settings toggle; the settings surfaces were restyled to
match the shared Disclosure and row patterns.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin e32546bd25 refactor(ui): flatten shared fields, rows and disclosures on host tokens
The clue surfaces were carrying raw details markers, mismatched field
backdrops and doubled docked title bars. Give the shared layer a Disclosure
pattern, align the SearchField frame and window chrome on the host tokens,
and let docked windows drop their duplicate title row.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918 f082166211 feat(clues): list individual pull request checks from the detail read 2026-11-24 16:43:27 +08:00
Menghuan1918 891974c4a5 feat(clues): auto-check an authorizing device-code attempt at the CLI cadence 2026-11-24 16:43:27 +08:00
Menghuan1918 bcc0efa917 feat(windows): clue windows open docked in the right sidebar when a session is available 2026-11-24 16:43:27 +08:00
Menghuan1918 efbc21d65c refactor(i18n): ship only the official host languages, drop the better-locale override
Dictionaries now follow the host's own locale list: zh/en static, ja/de/es/fr/pt/ru
in the lazy locale chunk (new es dictionary). t() reads the host's active locale
directly (exact id, base language, then en); attachBetterLocale and the optional
@huanlin/dsh-plugin-better-locale peer are removed along with the 14 non-official
dictionaries.
2026-11-24 16:43:27 +08:00
Menghuan1918 30a73d38f5 chore(clues): drop internal-only exports, dead helpers and orphan facades
43 client clue symbols had no consumer outside their module; they are now
module-private. Removes the dead isClueSelectionServerAction, the scope-note
alias, the unused ClueTabSettings shape, the Feishu/GitHub/detail re-export
facades nothing imported, and the last orphan clue CSS rule.
2026-11-24 16:43:27 +08:00
Menghuan1918 594d75cd13 refactor(clues): settings facts, errors and empty state use the shared components
Dependency, plan, install and connection rows are FactRows (with a trailing
action seat and data-* passthrough); source-list failures are ErrorBlocks;
the empty catalogue is an EmptyState. Drops the settings sheet's dead rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 3af5dd0a9c refactor(clues): pack, detail and Feishu windows use the shared components
Pack footers, conflict/binding/add errors and empty states; detail failure
and footer actions (ActionButton); Feishu task/doc fields and save rows.
Field and ActionFooter pass data-* through for e2e locators. Drops the
window sheets' now-unreferenced rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 2f99b1ffea refactor(clues): tab states, scope fields and pins use the shared components
Catalogue/pin/refresh/search errors are ErrorBlocks (a busy retry stays
focusable via aria-disabled); idle/needs-scope/unsupported/no-workspace
states are EmptyStates; scope editor fields are Fields with real htmlFor;
pinned rows are ListRows. Drops 50 now-unreferenced clue-tab rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 cff412f554 refactor(clues): windows use the shared field/choice/error/footer components
ChoiceCard renders a fieldset so a busy window locks every option natively;
ActionFooter gains a bleed mode for gutter-padded window roots and a status
seat for its leading fact.
2026-11-24 16:43:26 +08:00
Menghuan1918 0edd9e9e81 refactor(clues): browse and pack rows use the shared row/state components
The pack shelf and the browse results each carried their own row shell, their
own empty state and their own error+retry line. They now share ListRow,
EmptyState and ErrorBlock, and the local copies are gone.

ListRow grew the two contracts those callers actually need:
- titleLabel so the accessible name can be "Manage pack: X" while the visible
  title stays "X";
- primary so the roving-focus marker (data-list-primary + its tab stop) lands
  on the title button, which is what useListNavigation focuses;
- a navigating row keeps name + subtitle inside that button, so the whole
  two-line caption is one click target and one accessible name.

Removed from clues-tab.module.css: the .packRow/.packOpen/.packGlyph/
.packName/.packMeta/.packCount/.packReference family plus the two coarse-
pointer orphans left behind. tests/clues-tab-css.spec.ts now asserts that
contract against the shared patterns sheet, where the rules actually live.
2026-11-24 16:43:26 +08:00
Menghuan1918 9056ea2c7c feat(ui): shared page-pattern layer (facts, rows, states, fields, choices)
The clue surface carried 31 hand-written fact rows, 14 list-row shells, 10
empty states, 14 error+retry blocks, 15 stacked fields, 6 choice groups, 11
status footers and 9 action bars — 968 lines of CSS in ten near-identical
families that had already drifted apart (four spellings of the retry row,
three different "selected" pictures).

These eight components own those shapes once, on the same token-only contract
as the global kit: flat fills, one 1px border language, no shadow, no resting
state painted, native keyboard semantics (a navigating title is a real
<button>, a choice is a real <input>), tabular figures, 44px touch targets.

patterns.module.css joins the theme guard and the host-token guard; the new
spec pins the contract structurally (default states unstyled, native controls
preserved) rather than cosmetically.
2026-11-24 16:43:26 +08:00
Menghuan1918 5ee81fb073 feat(clues): collect resources from files, Feishu and GitHub, adapted to DSH 0.2.2-rc.2
This lands the clue collection line on top of origin/dev (v0.32.1, DSH
0.2.2-rc.2). The 14 commits that carried it are squashed into this one
because every one of them overlapped upstream's own changes (version,
19 dictionaries, CHANGELOG), and each intermediate commit would have
failed to compile against rc.2's menu API. The pre-integration head is
kept at backup/clues-uiux-refresh-pre-rebase.

What the feature is:
- a Clues tab that reads local files, Feishu tasks/docs and GitHub
  issues/pulls through one source registry, with a scope row, shared
  search, filters, paging and stable [[dsh-clue:...]] references;
- one window host for detail, pack management, source configuration,
  new pack and sharing (preview and edit are separate paths: a read is
  never saved over);
- .cluepack export/import with per-row resolvability previews;
- a source runtime that owns dependency installs and connection
  authorization (gh, lark-cli device code) and only probes on an
  explicit read;
- the public betterSidebarClues service and the windows capability
  (features gains clues / windowHost).

Merged with upstream rather than over it:
- the settings section keeps upstream's start-page takeover group and
  this branch's clue sources group; navigation is now six groups;
- the dictionaries keep both sides' new keys (1211 each, verified equal
  across all 19), the external-plugin guide and CHANGELOG keep both
  histories, and service features list both capability sets.

Adapted to 0.2.2-rc.2:
- menu call sites use anchorPoint instead of getAnchorRect;
- the shared SelectMenu mounts the host menu only while open, because
  rc.2's Menu reads the DOM during render and broke server-rendered
  settings surfaces;
- the submenu flip workaround stays deleted (the host positions
  submenus now), pinned by an updated layout-css assertion.

Version 0.33.0 (three synced spots) with a new 未发布 / Unreleased
changelog section; package.json regains the ./clues export, lib/clues.js
and the uqr dependency that upstream never had.

Gates: typecheck, lint, 5410 unit tests, build, check:consumer-types and
the full mount lane (35 passed) against dsh 0.2.2-rc.2 in Chromium.
2026-11-24 16:43:26 +08:00
蔡少毅 089246e660 fix(host): 0.2.3 的 admit 需要注入 connection.authentication
DSH 0.2.3 起 Connection.admit 把凭据校验委托给嵌套服务
connection.authentication,而 cordis 只允许显式注入该服务的调用方读取它。插件
此前只注入 connection,admit 一被调用就抛 cannot get property
"connection.authentication" without inject,又被宿主兜底成空 body 的 400:底部
终端 chunk 加载、打开文件、侧边对话全部只剩 HTTP 400。

准入改为三级:requestRejection 存在时照旧;否则走
ctx.inject(['connection.authentication']) 子 fiber 里的 admit(0.2.3+ 的宿主
在这里能读到凭据校验器);再否则直接 admit。rc.2–rc.5 没有该嵌套服务,子 fiber
不激活,旧宿主行为不变;不重建信任表,无准入路径时仍直接抛错。

测试:tests/trusted-hosts.spec.ts 新增 0.2.3 形状——插件上下文调用 admit 抛
inject 错误、经注入的 provider 上下文裁决——覆盖放行 / 401 / 403 三档。

AI-Co-Authored-By: lead
2026-11-24 11:59:08 +08:00
hairyf 3e3d3196d5 chore(release): prepare v0.33.0
- bump package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION to 0.33.0
- move both changelogs out of Unreleased and add the four merged UI fixes
  (#1011, #1233, #945, #948) plus the recommended-catalog batch
- update README install commands, compatibility table, DSH badge and Recent Updates
- point the external plugin guide and the adaptation doc at v0.33.0 and the rc.3 floor
2026-11-24 11:53:51 +08:00
hairyfbot 4a6c1bd880 fix(changes): Git 详情面板的关闭按钮常驻 Tabs 行最右侧(#991)
底部面板的「提交详情 / 内容 / 差异」是一条 Tabs,但关闭整块面板的 X 原先画在「内容 / 差异」的页内头行上——切到「提交详情」时那条头行整块不渲染,于是该页签没有关闭入口,只能先切页签再点 X。

现在关闭按钮属于 Tabs 那一行:无论选中哪个页签都停在最右端、位置不变,点击关闭的是整块面板;「内容 / 差异」头行里重复的 X 已移除。只有一个视图、没有 Tabs 行的预览保持原来的头行位置。
2026-11-21 17:45:14 +08:00
Hairy 2cb529f1b2 Merge pull request #1238 from omdsh-dev/fix/blank-session-dock-entry
fix(sidebar): 空白会话在右侧栏展开时仍能打开底部工作台(#989)
2026-11-21 15:31:13 +08:00
hairyfbot fb9967b8df fix(sidebar): 空白会话在右侧栏展开时仍能打开底部工作台(#989)
blank 会话里宿主不渲染会话头 utilities,插件的底部工作台入口只剩右上角那个
备用入口;而它在宿主右侧面板展开时整个不渲染,于是「先开右栏」就再也打不开
底部工作台。#1053 修的是正常会话的会话头入口,这一处当时被留了下来。

现在展开态照常渲染,并改锚**面板左缘**:展开态宿主的 Split / Fullscreen /
Collapse 搬进了面板内部,锚在那簇控件左侧会落进面板、盖住面板内容;面板左缘
那一格是会话头那一行的右端空位,与收起态入口同一列。

真实宿主(DSH 0.2.2-rc.5 + Chromium,1440x900,空白新会话)实测:
- 收起态:入口 1364,11(不变);
- 展开态:修复前屏上 0 个入口,修复后 756,10(面板左缘 792),点击可打开底部面板。

tests/dock-fallback.spec.tsx 把「展开态不渲染」改成「展开态渲染且锚在面板左缘
756px 并仍可点击」(还原旧守卫即红);tests/e2e/blank-session-dock-entry.e2e.ts
新增真实宿主用例:展开右栏后入口仍在、屏上恰好一个、右缘不越过面板左缘。
2026-11-21 15:11:16 +08:00
ymac 69835c7b4f fix(files): align the native search header with the session tab rule
The right Sidebar's pane body starts directly under the host's 38px tab strip. The file tree's search header still used the workbench metrics (6px padding, 1px l1 border): its bottom rule landed at y=79 while the session tab bar's rule sits at y=76 on DSH 0.2.2-rc.5, so the two lines met in a 3px step with different weights and shades.

Match the header DSH's own ui-sidebar-files pane uses: a 38px border-box header with a .5px border-l3 hairline. The rule now joins the session tab bar's line at the split; the bottom workbench keeps its roomier header.
2026-11-21 15:02:24 +08:00
Hairy ddcd435f5f Merge pull request #1236 from omdsh-dev/fix/changes-lens-underline-tabs
fix(changes): 「Git / 本轮文件」切换恢复会话页的下划线 Tabs
2026-11-21 14:02:57 +08:00
hairyfbot 3f0f7c37e3 fix(changes): 「Git / 本轮文件」切换恢复会话页的下划线 Tabs
#1101 为摆脱宿主私有哈希类名(#1098)改用公开的 SegmentedControl,视觉随之退回灰底胶囊;#939 已按审阅意见改成官方会话页的下划线 Tabs,这一版把它丢了。

现在这条切换由插件自己的 changes.module.css 绘制:13px/500、未选中三级文字、选中态品牌色 + 2px 下划线压在页头分隔线上、24px 间距,ARIA 关联与左右方向键 / Home / End 漫游焦点照旧;不引用任何宿主私有类名。

Refs: #1235
2026-11-21 13:38:58 +08:00
Hairy a543cd257b Merge pull request #1233 from WinterXMQ/fix/sidebar-fullscreen-bottom-panel
fix: 侧边栏全屏时自动收起底部工作台
2026-11-21 12:58:15 +08:00
Hairy 1b36babe07 Merge pull request #945 from hairyf/fix/native-tab-chip-alignment
fix: 对齐原生 Tab 与官方图标尺寸、间距和居中
2026-11-21 12:54:45 +08:00
Hairy be0b5a3142 Merge pull request #948 from hairyf/fix/task-graph-square-control-items
fix: square task graph control items
2026-11-21 12:54:29 +08:00
hairyfbot 6024337a73 fix(host): 准入改用 admit 兜底,运行侧钉版抬到 rc.3
DSH 0.2.2-rc.3 之后官方删除 connection.requestRejection(升级指南写明用 admit
替代),插件此前每个请求第一句就抛 TypeError,被宿主兜底成空 body 的 400。
fence 改为:requestRejection 存在时照旧调用,缺席时改调 admit 读同一个
rejection 字段,两者都没有仍抛 TypeError,不重建信任表。

engines.dsh 已要求 rc.3,因此把真正运行插件的钉版同批抬到 rc.3:CI 的
npm install -g、e2e-common.sh 的 DSH_NPX_SPEC / expected、两个独立安装脚本的
npx 回退。dev 钉版与 14 条 peer 仍是 rc.2(rc.3 与本插件消费面无 API 差异),
tests/dsh-baseline.spec.ts 相应拆成两个常量。

关联 #1204。
2026-11-21 11:54:00 +08:00
WinterXMQ a5046aae12 fix: 侧边栏全屏时自动收起底部工作台 2026-11-20 23:09:51 +08:00
Menghuan1918 8d48469aea fix(catalog): install Session Sources without pinning better-sidebar (#1105) 2026-11-19 17:13:22 +08:00
Menghuan1918 09b01dd67e feat(sidechat): render PTC run_code sub-call rows
Fold the log-only PTC pair (tool/ptc-dispatch-start + tool/ptc-dispatch) into nested sub-call rows on the run_code transcript row. Sub-calls render indented below the root (outside its disclosure, so a collapsed root still shows them) through the same terminal/diff/read/search/web cards as direct calls; running, failed and start-less dispatches are covered. The run_code line shows the model description and its expanded body shows the program plus the final result. Successful PTC write/edit targets join the clickable path mentions; a PTC present keeps its top-level delivery card and also leaves a sub-call row. Tests: sidechat-ptc-rows, sidechat-ptc-subcalls, sidechat-mention-sources.
2026-11-18 16:56:36 +08:00
Luca Tzekos 168a572119 fix(catalog): drop the unpinned better-sidebar prerequisite from the five install lines 2026-11-18 16:18:07 +08:00
Luca Tzekos ddd5c58d87 feat(catalog): add five tab plugins (dsh-artifacts, dsh-conductor, dsh-mail, dsh-phone, dsh-voice) 2026-11-18 16:18:07 +08:00
CCColastic da0edff736 feat: add Session Sources to tab plugin catalog 2026-11-18 16:16:37 +08:00
shuuul 82e24d87b8 feat: add dsh-bioviewer to the file-previewer catalog
Register BioViewer as a recommended better-sidebar file previewer for
PDB, mmCIF, MRC maps, small molecules and Chimera .cmm markers.
2026-11-18 16:15:53 +08:00
vlln 47a27f1cca chore(catalog): pin dsh-pr-inbox v0.1.1 2026-11-18 16:14:40 +08:00
vlln d44fcb509c feat(catalog): add dsh-pr-inbox 2026-11-18 16:14:40 +08:00
Menghuan1918 4407b58d18 docs(locales): complete the dsh-zotero-workspace key set (#1140) 2026-11-18 16:13:47 +08:00
Hudson Hou 85d96b1090 catalog: localize dsh-zotero-workspace entry (zh/en/ja) 2026-11-18 16:13:47 +08:00
Hudson Hou 5c8477df1b catalog: add dsh-zotero-workspace (Zotero literature workspace tab) 2026-11-18 16:13:47 +08:00