Commit Graph
1739 Commits
Author SHA1 Message Date
Menghuan1918 fa8f2445c6 chore(release): prepare v0.34.0-alpha.1
- 版本号三处同步到 0.34.0-alpha.1:package.json、dsh.plugin.json、SIDEBAR_SERVICE_VERSION
- CHANGELOG 中英:「未发布 / Unreleased」改为 v0.34.0-alpha.1(侧边对话归档线程修复,含 #1265)
- README 双语:安装命令、一键脚本、版本对照表、兼容性警告与常见问题同步;「最近更新」新增本版,保留最近三条
- docs/external-plugin-guide.md:当前版本行同步
2026-11-27 21:24:54 +08:00
Atlas Zeng 0b6cd9be32 Merge pull request #1283 from omdsh-dev/fix/sidechat-archived-thread
fix(sidechat): 关闭 Tab 不再归档线程,修复重开后「发不出去」(#1265)
2026-11-27 21:23:22 +08:00
Menghuan1918 5606f7d9b5 fix(sidechat): 关闭 Tab 不再归档线程,修复重开后「发不出去」(#1265)
关闭侧边对话 Tab 时 releaseSidechat() 会 archiveSession(),而宿主会拒绝
归档会话的每一次唤醒:sidechat.prompt 返回 accepted,随后
turn/start → turn/end{kind:"blocked"},没有模型请求也没有回答;前端又把
blocked 丢弃,页面看起来完全沉默。

- builtins/tabs.tsx:关闭 Tab 只 sidechatDispose,不再归档(归档对侧线程
  是单向门,#949 因此禁用了归档按钮);会话仍持久化,重开可重绑续聊。
- SideChatView.tsx:绑定到已归档线程时用 uiWorkspace.unarchiveSession
  恢复;reattachTarget() 不再返回已归档线程(宿主没有 unarchive 时才放弃
  重绑);handleSend() 与 GenUI sendSurfacePrompt() 在 prompt 前再检查一次
  并解除归档,覆盖「面板开着时线程才被归档」的竞态。
- sidechat-transcript.ts + SideChatView.tsx:turn/end{kind:"blocked"} 映射为
  独立 terminal 行(sideChatTerminalBlocked,七种语言同步),宿主再次拒绝
  时至少能看到原因。
- 测试:关闭只 dispose 不 archive;绑定/重绑/发送前解归档三例;blocked 的
  映射与文案;CHANGELOG 中英补「未发布」条目;新增复现与根因记录。
2026-11-27 20:43:01 +08:00
Atlas Zeng d00f0211dd Merge pull request #1275 from omdsh-dev/test/settle-selection-popup-resize
test(e2e): 等划选浮层在窗口缩放后重排再量几何(修 mount lane 间歇失败)
2026-11-26 14:16:29 +08:00
Menghuan1918 3203ab5859 test(e2e): 等待划选浮层在窗口缩放后重排再量几何
菜单的 left/width 由 useViewportSize 推导,而该 hook 在 resize 事件里
经过一次 requestAnimationFrame 才测量。测试在 setViewportSize() 之后
立刻读 boundingBox,偶发读到 resize 前的旧几何(CI 上实测
x+width = 529 > 390),于是 mount lane 间歇性失败。

改成用 expect.poll 等浮层重排到视口内再断言,断言本身不变:仍然要求
x >= 0、x+width <= 390。
2026-11-26 14:01:10 +08:00
Menghuan1918 7b88125279 chore(release): prepare v0.34.0-alpha.0
- CHANGELOG:未发布 → v0.34.0-alpha.0,补 Git 页可拖动分区、界面组件收敛、文件树右键修复三条
- CHANGELOG_EN:同步英文段
- README / README_ZH:安装脚本版本改为 0.34.0-alpha.0,最近更新加入本版并保留最近三条
- docs/external-plugin-guide:当前版本行与版本对照提醒抬到 0.2.3-alpha.2 线
- docs/dsh-version-adaptation:支持线表去掉「进行中」
2026-11-26 13:42:11 +08:00
Menghuan1918 29a66d0080 chore: 合入 main 的 0.2.3 准入与文件树右键修复(#1222) 2026-11-26 13:38:57 +08:00
Menghuan1918 ddc50e6163 test(e2e): Git 页几何断言跟随可拖动分区堆叠
- 图区高度以滚动容器的裁剪边为准:窗口变矮时 Stack 按最小高度滚动,Graph 被裁在 footer 上方,旧断言量的是未裁剪几何
- 外层 body 不再承担滚动(分区内部各自滚动),40 个新文件改断言 changes 内部滚动条
- 被裁剪的行不再算「越界」,只有整行可见时才校验分区/页脚/预览面板不重叠
2026-11-26 12:04:26 +08:00
Menghuan1918 c301c38e94 refactor(ui): 合入 G1 Git 页可拖动分区堆叠 2026-11-26 11:42:44 +08:00
Menghuan1918 8d59fbe44e chore: 合入 dev 最新提交(#1241 Git Graph 分页去重) 2026-11-26 11:42:40 +08:00
Hairy 1313b1f11b Merge pull request #1241 from ai-zen-future/fix/1063-git-graph-page-dedup
perf(git): index loaded commits during graph pagination
2026-11-25 13:27:05 +08:00
Menghuan1918 86dc34bd84 fix(ui): Git 页的 Changes 与 Graph 接入可拖动分区堆叠
把线索页的 SectionStack 抽成统一组件 WorkbenchStack(ui/WorkbenchStack.tsx +
workbench-stack.module.css,从 ui/index.ts 导出),线索页改为从统一层引用,
行为与权重持久化不变。

Git 页把 Changes 与 Graph 两个 WorkbenchSection 放进同一个堆叠:两区之间出现
可拖动的 sash(role=separator、aria-controls、Home/End/ArrowUp/ArrowDown),
权重只存本地 state——Git 页目前没有自己的设置键,不为此新增持久化。

布局:每个打开的分区各自内部滚动(changes 的 body 与 graph 区域),footer 仍是
贴底不滚;gitScroll 保留为 notices 的滚动容器。折叠到一个分区时 sash 消失。

测试:git-scm 新增「两个分区都开时存在 sash、键盘拖动改变两 pane 的 flexGrow、
折叠一个后 sash 消失」;changes-tab 的分隔条查询改为结构判别(sash 有
aria-controls、底部预览手柄没有),并把 .changesSection 的 CSS 契约从 flex:none
更新为 flex:1(现在由堆叠分配高度)。
2026-11-25 11:04:37 +08:00
ai-zen-future 4d551d8706 Merge dev and reconcile Git Graph pagination release notes 2026-11-25 09:40:59 +08:00
Menghuan1918 bf4e25db13 chore: 合入 dev(0.2.3 基线适配)到统一组件分支 2026-11-25 02:06:34 +08:00
Atlas Zeng a522d47776 chore(dsh): 适配 DSH 0.2.3-alpha.2 并删除旧宿主兼容代码
peer/engines 抬到 0.2.3-alpha.2;删除 requestRejection 准入回退、旧目录事件、旧 data-slot 锚点与 getOrigin 探测;修 0.2.3 路由默认 auth 的 401 与搜索/几何两个 CI 暴露的问题。

Gates: ci + plugin-mount 绿;ci-windows 的失败与 dev 基线同一批(Windows 环境问题,非本批引入)。
2026-11-25 02:06:15 +08:00
Menghuan1918 51cd629b9c fix(clues): keep the pack footer on the window's bottom edge
The bleed footer's negative bottom margin cannot pull it past the content box
once the flexing `.content` consumes every pixel, so the pack window measured
26px from its 2px floating edge to the footer's button instead of the intended
14px (12px gutter + 2px edge). Cancelling the root's bottom inset whenever a
bleed footer owns the edge makes the geometry independent of free space; the
mount lane's `clues-uiux` assertion is 14 again.

Gates: typecheck, lint, test (366 files / 4615 passed), build, consumer-types,
plus `bash scripts/e2e-mount.sh --grep "clues workbench stays usable"`.
2026-11-25 01:38:54 +08:00
Menghuan1918 f9cf2e0b66 fix(host): keep plugin routes anonymous on 0.2.3 and make the search walk deterministic
DSH 0.2.3's webserver gained a per-route `auth` policy that defaults to
`required`, so every plugin route was answered with 401/503 before its handler
— the loopback clue read lost its credential-free semantics and the mount lane
saw 401 on `/sidebar/agent/clues/read`. Every route (HTTP and upgrade, including
the bundle and clue share routes) now declares `auth: 'anonymous'` and keeps its
own fence, exactly the pre-0.2.3 contract; the two agent clue routes keep their
loopback-only rule.

The CI unit lane also exposed a non-deterministic walk: `maxMatches` truncated
the search while iterating in readdir order, so on Linux (hashed directory
entries) a page could skip 'b.txt'. The walk now sorts each directory's entries
by name before iterating, which makes the truncated page stable everywhere.

Gates: typecheck, lint, test (366 files / 4615 passed), build, consumer-types.
2026-11-25 01:20:24 +08:00
Menghuan1918 ac547a3f3d refactor(ui): 合入 B4 外壳与残余件(Switch→ToggleSwitch) 2026-11-25 01:05:44 +08:00
Menghuan1918 daf0329666 refactor(ui): 外壳与残余件接入统一组件层(B4)
- Switch.tsx 删除,唯一消费者 native/guide-order.tsx 改用 ui 的 ToggleSwitch
  (native checkbox → button role="switch",受控写回契约不变:下一次值仍由 prop 推导)。
- tests/switch.spec.tsx 改名 tests/toggle-switch.spec.tsx,断言改 aria-checked;
  native-guide 两处开关查询同步改选择器。
- sidebar/dock-fallback.tsx 与 split-pane.tsx 判断不接入:前者只有定位/让位逻辑
  与 BottomDockToggle 包壳,后者是纯布局与 pointer 拖拽手柄,统一层没有语义对应件。
- 收敛文档补 B4 实施记录,并把映射表中这两行改为「判断不接入」及理由。
2026-11-25 01:05:35 +08:00
Menghuan1918 a16f8a9056 refactor(ui): 附件卡切到 FileAttachmentChip 并记录消费点判断
- SidechatAttachments 的非交互文件附件改用共享 FileAttachmentChip,删掉零引用的 .sidechatAttachmentFile
- SideChatView 的交付物项与 DiffFiles 表头经核对保持原控件(语义不同,见收敛文档 R2 一节)
- StatusLine alert 变体暂无行级消费点
2026-11-25 01:05:09 +08:00
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 935b674c0b refactor(ui): 合入组件层缺件(FileAttachmentChip / StatusLine alert / ListRow aria) 2026-11-25 01:03:08 +08:00
Menghuan1918 0cd0765fad refactor(ui): 删除组件替换后失效的样式规则(B3 收尾)
- sidebar.module.css: 删掉 editorDownloadLink(含 :hover 与 focus-visible 组内一行)、mediaPreviewNotice、largeFileDownload 及其说明注释;largeFileNoticeAction 仍被 LargeFileView 使用,保留。
- terminal.module.css: 删掉 .notice / .error / .action / .action:hover,以及同组零引用的 .noticeBlock。
2026-11-25 01:02:40 +08:00
Menghuan1918 6f9dbdf403 refactor(ui): 补三处组件层缺件并记入收敛文档
- 新增 FileAttachmentChip:非交互的静态文件附件卡(宿主 FileTypeIcon + 名称 + 大小 +
  可选 title),补上 B2 报告的「附件卡在 SidechatAttachments 与 SideChatView 各手写一份」。
- StatusLine 的 role 扩到 'status' | 'alert',让失败行可以中断式播报,默认行为不变。
- ListRow 增加 disabled 与 aria-expanded / aria-controls / aria-label 直通:disabled 落
  disabled + data-disabled,aria 落标题按钮(plain 行落外壳),供可折叠分组头使用。
- 契约测试:FileAttachmentChip 2 例、ListRow 2 例、StatusLine 1 例。
- docs/plans/2026-11-25-ui-kit-convergence.md 追加「组件层补件记录」,写明缺口来源、
  补了什么、以及合并后需要切换的消费点。

门禁:typecheck / lint 无错;test 366 文件、4630 通过、18 skipped。
2026-11-25 01:01:36 +08:00
Menghuan1918 5a8ab2f805 refactor(ui): 合入 B3 —— diff、终端与预览宿主接入统一组件层 2026-11-25 01:00:09 +08:00
Menghuan1918 09e9e046ae refactor(ui): 合入 B2 —— 侧边对话附件与图片状态接入统一组件层 2026-11-25 01:00:09 +08:00
Menghuan1918 387379aa8b refactor(ui): 合入 B1 —— 任务窗口、任务图与共享任务结构接入统一组件层 2026-11-25 01:00:09 +08:00
Menghuan1918 356cdbd18d refactor(ui): 任务窗口与任务图接入统一组件层
- TaskWindow:所有者/阻塞信息改用 FactList,视图与编辑态的两个字段改用
  Field(label 关联 input/textarea),空描述改用 Notice(hint),冲突/错误
  提示改用 Notice(error);窗口底部动作改用 ActionButton,图标移入按钮内容。
  MultilineField 增加可选 id,供 Field 的 label 关联。
- TasksGraph:空画布加载行改用共享 LoadingIndicator,删除自绘的旋转图标
  行与对应 CSS。
- tasks-graph.module.css:表单「描述字段吃满窗口」的规则跟随 Field 的 div
  结构改写;删除随替换失效的 .teamNote/.taskLabel/.jobPopMeta 作用域规则。
- 行为、文案、aria 名称与 data-* 均未改变;图形卡片与右下控件簇是图形
  专用形状,本轮不动(见报告)。
2026-11-25 00:59:30 +08:00
Menghuan1918 efc7900de4 refactor(ui): 标签页与预览宿主接入统一组件(B3)
- `diff/DiffFiles.tsx`:文件头徽标改 `StatusBadge`,`fileTag()` 改返回 `{ tone, label }`,tone 直接用组件自带的 added/deleted/renamed/neutral
- `diff/DiffRows.tsx`:「展开全部」改 `ActionButton`;折叠行保留原生 `[data-expandable]` 结构
- `TerminalView.tsx`:状态行改 `StatusLine` + `ActionButton`;不可用/连接错误改 `ErrorBlock`;终端失联改 `FallbackPane role="alert"`
- `builtins/media-preview.tsx`:不可播放改 `FallbackPane role="status"`,下载出口改 `DownloadLink`
- `PdfView.tsx`:工具栏下载改 `DownloadLink`,加载失败改 `ErrorBlock`
- `LargeFileView.tsx`:提示条下载改 `DownloadLink`,空文件占位改 `EmptyState`
- 收敛文档记录 B3 实施结果,以及两处统一层缺口(`StatusLine` 无 alert 角色、`ListRow` 无 disabled/aria 直通)

行为、文案、aria 名称与 `data-*` 不变,测试断言未改。门禁:typecheck、lint、全量 test(366 文件 / 4625 通过 / 18 skipped)全绿。
2026-11-25 00:58:51 +08:00
Menghuan1918 72f79f7bd6 refactor(ui): 侧边对话的附件与图片状态接入统一组件层
- SidechatImages:加载态改用 Notice(inline, loading),不可用改用 StatusLine(plain, role=status);
  缩略图仍是 blob URL 的 <a target=_blank><img>,行为不变。
- SidechatAttachments:读取失败的占位改用 StatusLine(plain);文件附件从手写 chip 换成
  ListRow(leading=FileTypeIcon、title=name、meta=size),外层 span 只保留宽度约束与悬浮 title。
- SideChatView.module.css:删除随之失效的 .sidechatAttachmentFailed / .sidechatAttachmentName /
  .sidechatAttachmentSize,.sidechatAttachmentFile 收成布局壳。
- 行为、文案、可访问性名称与 data-* 未变;测试断言零改动。

缺口(未在 ui/** 造件,按任务约束只报告):非交互的文件 chip 仍缺共享件,
当前由 SidechatAttachments.FileChip 与 SideChatView.tsx 的附件卡手写两处。
2026-11-25 00:58:06 +08:00
Menghuan1918 fd13838b09 refactor(ui): 统一组件层地基与批次规划
- 新增 DownloadLink(kit.tsx)与 FallbackPane(patterns.tsx),从 ui/index.ts 导出;
  样式只用 --dsw-* / --ds-* 令牌,覆盖下载出口与 pane 级兜底消息两个跨页面模式
- 示范替换孤儿标签页占位组件(改用 FallbackPane role="status",文案与类型 chip 不变)
  与 binary-download(整页 FallbackPane + DownloadLink),删除 binary 独占的
  .editorBinary / .editorBinaryNotice 规则
- tests/ui-kit.spec.tsx、tests/ui-patterns.spec.tsx 补两个新组件的契约:
  download 属性、inline 变体、role 只在调用方要求时透传
- docs/plans/2026-11-25-ui-kit-convergence.md:36 个未接入 tsx 的 A/B/C 分类与
  B1–B4 批次(任务/作业 → 侧边对话 → 标签页与预览宿主 → 文件树与侧栏外壳)
2026-11-25 00:55:07 +08:00
Hairy ecf8ebae73 Merge pull request #1222 from whalestar-doc/main
fix: PC 文件树右键不弹菜单 + DSH master 上 HTTP 准入失效
2026-11-24 18:28:27 +08:00
Menghuan1918 d7e525471e docs(changelog): rebuild the unreleased section after rebasing onto v0.33.0
0.33.0 已把原来的「未发布」条目全部发出去,rebase 后这些条目与 main 的
v0.33.0 段重复。这里以 main 的发布段为准,只保留仍未发布的线索工作台与
划选相关条目,避免同一批修复出现两次。
2026-11-24 16:43:50 +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 bdbd9f4ff6 test(e2e): pin the pack shelf's own scroll before measuring the settled row 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 934d57655a test(clues): follow the rebuilt workbench surfaces
The specs still drove the wide source tabs, the nested pin strip and a
separate create-pack window. Helpers and assertions now exercise the
SelectMenu source picker, the inline pack form, the docked-or-floating
window helper and the 12px workbench axis, with touch targets at 44px.

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 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 7c6ab16362 test(e2e): follow the docked clue windows and the rebuilt tab hooks 2026-11-24 16:43:27 +08:00
Menghuan1918 3bb884db1b test(clues): rebuild the clue suite down to 18k lines, keeping each contract 2026-11-24 16:43:27 +08:00