Commit Graph
426 Commits
Author SHA1 Message Date
workbuddy-mac13 20d8b9056a feat(apesi): 以上游 v0.34.0-alpha.1 为基线重建定制侧边栏
CI / ci (push) Waiting to run
CI / ci-windows (push) Waiting to run
CI / plugin-mount (push) Waiting to run
基线:upstream omdsh-dev/DSH-better-sidebar @ 96d6ef4(main,npm 0.34.0-alpha.1,MIT)
宿主:DSH 0.2.3-alpha.2 / cordis 4.2.0-alpha.1(Desktop Beta 2.0.24-beta.2 实测)

改动(改名 + 身份对齐,不改架构):
- package.json:name → dsh-apes-sidebar,version 2.0.0,peer 升 ^0.2.3-alpha.2,cordis 钉 ^4.2.0-alpha.1
- dsh.plugin.json:id → dsh-external/dsh-apes-sidebar,engines.dsh >=0.2.3-alpha.2 <0.3.0
- cordis.patch.yml:挂载行 id better-sidebar → apes-sidebar
- tsdown.config.ts:客户端 factory id → dsh-apes-sidebar / dsh-external/dsh-apes-sidebar
- src/index.ts:SIDEBAR_PACKAGE_NAME → dsh-apes-sidebar(loader 行自查找)
- settings 命名空间保留 dsh-better-sidebar(用户既有偏好不丢)

文档:README.md(我们自己的)、NOTICE.md(上游 MIT 出处)、docs/apesi/(规则 + 第一代材料 + 重建记录)

实测:boot 18–29s,include:apes-sidebar ready,无重复 factory 注册 / 无 loader 行告警 / 无 React #130
2026-11-28 19:08:52 +08:00
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
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
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 bf4e25db13 chore: 合入 dev(0.2.3 基线适配)到统一组件分支 2026-11-25 02:06:34 +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 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 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 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
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 dc3b8aba33 feat(clues): refine resizable workbench and resource previews 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 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 e2544268a1 docs(screenshots): issue #991 修复前后对照
真实 dsh web + Chromium,同一 fixture / 视口 1440x900 / 浅色主题:details 与 diff 两个页签的 Before / After。
2026-11-21 17:55:11 +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
hairyfbot 513ba567aa docs(plans): 收紧 #985 记录里插件侧渲染路径的措辞 2026-11-21 14:51:27 +08:00
hairyfbot 5ab0d49bfc docs(plans): 记录 issue #985 诊断(docx 预览报 toHex 缺失,宿主侧) 2026-11-21 14:48:59 +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 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
hairyfbot be5dbb6db2 chore(manifest): 声明 engines.dsh,旧宿主的安装失败改判为「先升级 DSH」
package.json#engines.dsh 从缺席改为 >=0.2.2-rc.3 <0.3.0,dsh.plugin.json 同步。
宿主预检优先读该字段,字段存在时只按它判定,不再看 14 条 DSH peer(peer 仍为
^0.2.2-rc.2,未改)。

效果:停在 0.2.1 及更早宿主的安装失败,在插件市场里由 hostIncompatible 改判为
[dsh-too-old],给用户「先升级 DSH」的指引,不再作为插件缺陷自动给本仓库开 issue。

代价:engines.dsh 成为唯一裁决者,实际安装下限从 rc.2 抬到 rc.3;0.2.2-rc.2 及
更早的 0.2.2 宿主停在 v0.32.1。

按维护者在 #1230 的决定,不新增 engines/peer 同步守护测试。
2026-11-21 11:41:14 +08:00
Menghuan1918 aa2a058037 docs(editor): drop the retired new-session tab seed claim; pin the blank-session right-column open
The editorExplorer comment still promised that new sessions seed an empty
editor tab, and the external plugin guide repeated it. Neither is true since
the plugin's own right panel was retired: the host owns the right column and
a brand-new session starts with no tab, so its first open lands on the start
page this plugin takes over (#1218).

Adds the one e2e case the mount lane was missing: a blank session's first
right-column expand must already render the start-page takeover, with no host
Split action in between.
2026-11-18 10:55:36 +08:00
Menghuan1918 bd8ce7da55 docs: record the 2026-11-17 open-PR/issue scan and UX-blocking batch 2026-11-18 00:15:23 +08:00
Menghuan1918 62a9ceeed5 fix(editor): keep a single very long line out of the edit buffer (closes #1165) 2026-11-18 00:07:11 +08:00
Menghuan1918 da13770e35 fix(editor): offer find when the host owns the header (closes #1214) 2026-11-18 00:02:24 +08:00
Menghuan1918 2647fbac2d docs: record local and rc3 verification results 2026-11-16 01:01:45 +08:00
Menghuan1918 5575ee29b9 docs: record the contributor batch, rc3 evidence and release dependency slim-down (#1115 #1130 #882 #1191) 2026-11-16 00:49:08 +08:00
Menghuan1918 0441249314 feat(sidechat): make the native page mode configurable (#1115)
Keep the contributor independent-page implementation, but make it opt-in: the default is still one shared page with the session last/newest reattach, and Settings -> Side card -> Side chat can switch to one native page per thread. The descriptor gains a dynamic multiple predicate, native sync re-registers on a flip, and occurrence bindings are read/written only for sidebar://sidechat/<uuid> contentIds so the shared page can never be captured by an old binding.
2026-11-16 00:47:59 +08:00
peng xiang ba6f3a3423 fix(sidechat): preserve independent native tabs and exact thread bindings 2026-11-16 00:39:39 +08:00
Menghuan1918 a2419e97c4 docs: fix stale wording after code slimming 2026-11-13 01:48:55 +08:00
Menghuan1918 e6f1af2f82 chore(dsh): 适配 DSH 0.2.2-rc.2 并补齐插件页图文详情(v0.32.1) 2026-11-12 21:20:46 +08:00
Menghuan1918 363f740be8 chore(release): prepare v0.32.0
- bump package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION to 0.32.0
- move the changelog out of Unreleased
- update README install commands, compatibility table and Recent Updates
- point the DSH plugin description at Settings → Side card and keep the SVG icon wiring
- refresh the external plugin guide version line
2026-11-12 14:59:16 +08:00
Menghuan1918 973713b157 fix(native): unify start-page switches and repair toggle
Better Sidebar rows now use the same tabsEnabled feature switch in the reorder dialog and the start-page inventory; disabled rows stay in the inventory so they can be turned back on. The shared Switch now derives the next value from the controlled prop, fixing switches that could be turned off but not back on.
2026-11-12 00:05:55 +08:00
Menghuan1918 64a91dac53 fix(native): keep host shell menu and start-page plugin actions
Call webTerminals launcher methods on the service (the detached call lost its remote receiver), and restore the host browse/create plugin rows in an always-present More card alongside icon-plus-title overflow rows.
2026-11-12 00:05:55 +08:00
Menghuan1918 a4d11d7c09 feat(native): align, take over, and reorder start page refinements
Add centered/top alignment, a default-on start-page takeover switch, icon-plus-title More rows, and share the row-count input between settings and the reorder dialog.
2026-11-12 00:05:55 +08:00
Menghuan1918 a92252c5d3 feat(native): take over the right sidebar start page
Replace the host guide body with a plugin start page: responsive two-column cards, configurable rows, a More card for overflow, persisted order and visibility in Side Card settings, and the terminal card shell menu through the host webTerminals service.
2026-11-12 00:05:55 +08:00
Menghuan1918 9c3c01cf8e feat(markdown): render file:// image URLs through the media routes
Markdown-syntax and raw-HTML file: destinations are converted to an absolute local path before rendering or sanitization, then served by the same session media route as relative images. POSIX, Windows drive, localhost, UNC and percent-encoded URLs are covered; the file: scheme is never handed to the renderer or DOMPurify. Also prepares v0.31.1.
2026-11-11 21:58:56 +08:00
Menghuan1918 ce54c074ac chore(release): prepare v0.31.0
Version 0.31.0 across package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION; move both changelogs to v0.31.0; refresh README install commands and the three recent-release blocks; update the external plugin guide's current version.
2026-11-11 21:33:20 +08:00
Menghuan1918 ba7d069842 fix(preview): render data images and self-contain desktop HTML previews
Markdown syntax now passes data:image/* through the image vocabulary (the host allowlist already accepts it); every other data payload stays inert. The desktop shell's sandboxed HTML preview is self-contained: the trusted top frame fetches the document and its same-origin assets, inlines them, and frames a sandboxed blob instead of a dsh-app route the shell rejects from an opaque subframe. The sandbox never gains allow-same-origin; browser and explicitly-unsandboxed paths are unchanged.
2026-11-11 21:28:39 +08:00
NolanHo bed56758c7 feat(sidechat): align the side conversation with the main pane
The side chat inherited none of the main pane's reading behaviour and could
not say where it forked off. This change brings it in line and keeps the
upstream v0.30.1 release intact.

Work details follow the main conversation's setting (transcriptView +
collapseTiming): settled turns fold behind the host's own "Completed in Ns"
line, running turns stay open, verbose never folds.

The transcript now names its origin: the events route reports the fork point,
and the block above the first row renders the inherited question as an
ordinary user bubble and the inherited answer as ordinary assistant prose,
bracketed by two divider lines and carried verbatim.

Reading the thread got cheaper and calmer: only the tail is mounted with a
step-wise reveal, scroll-follow answers an explicit intent, and the composer
guards IME composition, key repeat and the submit-gesture choice while send
and stop stay independent controls.

Everything visual rides the host's own surface: content-size and code font
axes, the host's markdown surface for reasoning, host cards for search/web/
terminal/diff results, compaction and retry rows, and host-defined design
tokens (six borders and eleven colours had referenced tokens the host never
defines, so they never painted).

Thread creation became reliable: a stored parent is resumed through the
session controller, the create budget is a deployment setting instead of a
hard-coded 15 seconds, and the child attaches at the parent's workspace cwd
while its tools keep running in the reader's current directory.

Upstream v0.30.1 brings side-chat images, clickable quote chips, editor draft
backup, the settings icon slot and the 0.2.2 model seam; its per-thread draft
owner and image projection replace the hand-written paths this branch used to
carry, so only one implementation of each survives.
2026-11-09 11:59:12 +08:00
Menghuan1918 376a57bfe5 merge #1027: feat(media) built-in audio/video preview with range support
# Conflicts:
#	CHANGELOG.md
#	CHANGELOG_EN.md
#	docs/external-plugin-guide.md
#	src/index.ts
2026-11-08 12:17:07 +08:00