Commit Graph
390 Commits
Author SHA1 Message Date
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
Menghuan1918 f433f98eed fix(tab-actions): keep the in-flight guard until the run settles (#1137) 2026-11-08 12:14:31 +08:00
Menghuan1918 77cbf420ce merge #1043: fix(editor) resolve markdown preview images on the page base
# Conflicts:
#	src/client/markdown-images.ts
#	src/client/markdown-labels.tsx
#	src/client/markdown-navigation.ts
#	tests/markdown-images.spec.ts
2026-11-08 00:19:09 +08:00
lu.wang7 d346322860 docs: 新条目归入「未发布」,同步扩展点计数与版本标注
- CHANGELOG 中英:两个新能力从 `v0.30.1` 段移出,落到新的「未发布 / Unreleased」段。
  v0.30.1 是上游已发布版本,本 PR 的内容属于下一个版本,混进已发布段会让读者以为
  这两个能力已在 0.30.1 里。
- README 中英:扩展点由四个改为五个,补上 `registerTabAction`(此前只列了
  `registerFileAction`)。
- `tabActions` 的版本标注由 `v0.32.0` 统一为 `v0.31.0`:两个能力在同一个 PR 合入,
  下一个版本同时携带,不该写成两个版本号。
2026-11-08 00:17:14 +08:00
Menghuan1918 c67a8d1aa8 merge #1139: fix(tasks) read the team roster from subagentCatalog
# Conflicts:
#	CHANGELOG.md
#	CHANGELOG_EN.md
2026-11-08 00:17:14 +08:00
Menghuan1918 dc4dc11730 merge #1030: fix(editor) open a directory target as the folder window
# Conflicts:
#	CHANGELOG.md
#	CHANGELOG_EN.md
#	src/client/EditorHost.tsx
2026-11-08 00:15:31 +08:00
Menghuan1918 b8988aa389 merge #1117: fix(floating) clear the desktop shell's native title-bar band 2026-11-08 00:10:32 +08:00
majt415 01146717c0 feat(editor-header): 编辑器头部支持外部插件注册动作(registerTabAction,feature 'tabActions')
宿主的 sidebar.right.tab.document.actions 插槽属于宿主自己的文档预览面;
本插件接管 dsh-resource://file/** 之后文件不再进宿主预览,该插槽无人渲染,
「上传到云端」「存到云盘」「在 App 中打开」这类按钮整体消失。

新增 registerTabAction/getTabActions:按钮渲染在刷新与文件树开关右侧,
回调拿到 tabId/tabType/sessionId/path/isDir/title 与 fail 出口,失败落错误条,
同一 (id, tabId) 飞行中重复点击忽略,when 抛错只隐藏自身。
2026-11-08 00:07:03 +08:00
lu.wang7 bff5beb689 feat(file-tree): 行菜单支持外部插件注册动作(registerFileAction,feature 'fileActions')
文件树的行菜单此前完全由插件自己组装(打开方式 / 下载 / 上传到此目录 /
复制 / 重命名 / 删除),外部插件没有任何位置能加一项——「把这个文件传到
我的云端」这类入口只能另开界面,而它需要的恰恰是这个文件。

新增第四个注册表 `registerFileAction(descriptor)`(能力 'fileActions'):

- 菜单项排在内置打开/下载行之后、复制/重命名之前,多条外部动作之间不加
  分隔线,第一个之前有一条;排序 order 升序、同 order 按注册序;
- `row: true` 在行右侧「引用」按钮旁再加一个悬停按钮(要求同时给 icon,
  无图标的注册只进菜单);
- 回调拿到行的绝对路径 + 这棵树的 root 与会话;目录默认不认领(`dirs`);
- `when` 每行渲染与每次开菜单各调一次,抛错只隐藏该注册,不打断文件树;
- `run` 抛错/reject 以 error.message 落进既有错误条,resolve 静默(成功
  提示由注册方自己给),同一 (id, path) 在飞行中的重复点击被忽略;
- 树只提供入口:不替注册方上传、复制或移动任何东西。

文档:指南新增 §7.3(类型、用例、渲染位置、两条约定),§1/§7 能力清单与
README 扩展点计数同步;CHANGELOG 中英各一条。

测试:新增 tests/file-actions.spec.tsx(12 例,注册表 5 + 文件树 7);
tests/file-tree-row-memo / file-tree-menu-perf 的最小 service stub 补
getFileActions(它们的计数器仍是重渲染探针)。
2026-11-08 00:07:03 +08:00
Menghuan1918 bd6363021d docs: 重构 AGENTS.md,把发版手册 / 开发规范 / 版本适配拆成独立文档
- docs/release.md: 完整发版流程、版本号同步清单、Release note 模板与写作规则
- docs/development.md: 开发红线细则(构建纯度 / chunk / i18n / 皮肤 / 图标 / 稳态 / 测试矩阵 / 跨平台)
- docs/dsh-version-adaptation.md: 基线、支持线矩阵、抬基线清单、0.2.1→0.2.2 差异
- AGENTS.md: 收缩为每次都要遵守的规则 + 索引,删掉过期的 0.2.x 历史与冗长叙述
- 修正 AGENTS §3/§3.10 的失效交叉引用(host-contracts / 指南 / 一个 spec 注释)
2026-11-07 22:17:22 +08:00
榆乾 b6c2017410 fix(tasks): 团队名册改读 subagentCatalog,适配 agentTeam 去掉 members 后的投影
DSH 0.2.2 的 `agentTeam` 投影不再携带 `members`(Team 包迁移 122dc3af42,wire
schema 只剩 `enabled` / `tasks` / `failure`),团队成员改为 Lead 的直接
subagent,由 `subagentCatalog` 提供。此前 team-projection.ts 仍读
`team.members.map(...)`,`members` 为 undefined 时整个任务管理页抛
"Cannot read properties of undefined (reading 'map')"。

- 名册 = Lead 行 + Lead 的 subagentCatalog 行(名字取 name ?? label ?? id)
- 投影新增 `enabled`:为 false 时不画团队板;旧宿主没有该字段时视为启用
- roster 的 phase 与 per-member error 随投影一起消失,节点状态只剩 running / idle
- 任务归属额外接受空串路径(Lead 自身的 agent path)
- CHANGELOG(中/英)+ docs/plans 适配记录

🤖 Generated with [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
2026-11-06 11:01:50 +08:00
unsc9 a9c2ff0fce fix(floating): 修正控件带通知与无带子时的布局偏差
viewport-inset 的快照原本是 { top } 对象,重读时每次新建,引用比较永远不等:
带子存在时每次 resize / geometrychange 都会广播,三个浮层各重渲染一次。改为
直接存数字,值不变就不通知。

AnchoredPopover 新增的让位原本无条件执行,普通浏览器里锚点贴到视口最顶时
弹层会从 6px 变 8px,与「无带子时逐字等价」的承诺不符。改为只在带子存在时
才抬高。

顺带删除 mermaid 工具栏里恒被内联样式覆盖的 CSS top(不跑 JS 时该弹层不存在,
不是降级),并补上测试:同值不广播、resize 兜底、visible 运行时翻转、浮窗
高度让位、AnchoredPopover 三个位置用例。

文档:接入指南的 WCO 例外改标「尚未发布」(v0.29.0 从未发布到 npm),计划
文档修正 #430 对照表与测试清单。
2026-11-05 13:16:39 +08:00
unsc9 353a234cf4 docs: 记录原生窗口控件带让位的设计、接入指南例外与变更日志 2026-11-05 13:16:39 +08:00
Menghuan1918 050ae69d40 chore(release): prepare v0.30.1
- package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION -> 0.30.1
- CHANGELOG: 未发布 -> v0.30.1 (bilingual)
- README / README_ZH: install commands target 0.30.1; Recent Updates trimmed to
  v0.30.1 / v0.30.0 / v0.29.0
- external-plugin-guide: current version v0.30.1
2026-11-05 11:00:34 +08:00
Menghuan1918 908db10904 docs: 记录 0.2.2 模型切换去重的那一笔 2026-11-04 22:22:05 +08:00
Menghuan1918 7a4a15292e chore(dsh): 适配 DSH 0.2.2-rc.1(基线/peer/CI/脚本/文档 + AgentModel 与 PTC 类型变化) 2026-11-04 22:13:07 +08:00
Menghuan1918 09b83cc6aa docs: 记录 2026-11-04 分诊与合入批次(10 个 PR/分支、18 条 issue 关闭、1 条判为宿主侧) 2026-11-04 21:18:32 +08:00
Menghuan1918 91a5d79f19 merge #1072/#1071: fix(editor) 原生页签关闭与桌面退出保留未保存草稿(宿主无确认钩子,改草稿备份 + 重开恢复)
# Conflicts:
#	CHANGELOG.md
#	CHANGELOG_EN.md
2026-11-04 21:06:04 +08:00
Menghuan1918 cafb73b21b merge #1109: fix(sidechat) 压缩 seed 里重映射 delivery 水位线,不再产出不可读的子会话日志
# Conflicts:
#	CHANGELOG.md
#	CHANGELOG_EN.md
2026-11-04 21:05:59 +08:00
Menghuan1918 4224c78a98 fix(editor): 原生页签关闭与桌面退出保留未保存草稿(#1072 / #1071)
宿主原生页签条的关闭路径只有一个同步清理钩子(唯一的阻止方式是 throw,
会把异常抛给 replaceTab / 公共 close() 调用方),桌面 Cmd+Q 则完全在壳内
完成(before-quit → app.exitRequested),页面没有可取消事件;壳内也没有
will-prevent-unload 处理器。插件因此不伪造拦截,改为降低损失:

- 草稿变脏时按 1 s 节流把实时文档写入 localStorage(sessionId::path,
  单条 200k 字符 / 总计 600k / 最多 8 条 FIFO)
- 原生 registerCloseHandler('editor') 与 beforeunload 时立即 flush
- 重开同一文件提示恢复;保存、确认丢弃、确认刷新/换文件即删除备份

新增 src/client/editor-draft-backup.ts;docs/host-contracts.md §C 记录宿主
限制与将来的接法。测试:新增 editor-draft-backup.spec.tsx(8 例)+ guard
spec 2 例;去掉任一修复点后对应用例均转红。
2026-11-04 21:04:16 +08:00
Menghuan1918 4c1d4177d9 fix(install): 装完先查 profile 自带的宿主包是否混版(#1107)
profile 自带的 @deepseek-ai/dsh-* 会覆盖宿主安装的同一批包(DSH 的 profile
解析先取 profile 前缀内的副本),本插件静态 import 的 dsh-subagent 因此绑到
混搭版本;混版缺导出时宿主只报 DesktopHostFatalError / required plugins did
not activate,看不到是哪个包缺了什么。

新增随包发布的 scripts/check-profile-host-tree.mjs:按 DSH 的 profile 解析
规则(只看 profile 前缀内的副本、上级 profiles/node_modules 不参与)判定
dsh-subagent 精确声明的 dsh-attachment peer。install.sh / install.ps1 装完
运行它,混版时打印两份版本号与修复命令并退出,不再提示重启。README 常见
问题、docs/host-contracts.md 与中英 CHANGELOG 同批记录;新增
tests/install-host-tree.spec.ts 真跑发布脚本钉住行为。
2026-11-04 21:03:54 +08:00
Menghuan1918 45b4d42ef6 fix(sidechat): rebase inherited delivery watermarks in the compaction seed
A side thread opened while the parent was mid-turn could persist a child
session the host can never read again: SessionFormatError "delivery
throughSeq must precede its marker".

Root cause: when the parent has compacted, buildSidechatInheritance copies
the log around its last checkpoint with RENUMBERED seqs, but the inherited
session-log-deepseek/delivery-accepted watermark (throughSeq) is an
absolute seq. Left alone it keeps pointing at the parent's position and
can land at or after the marker's own new seq, which the v4 reader treats
as corrupt; the parent's includeDescendants export then fails with it.

The rebase now carries the watermark through the same map it applies to
every other seq citation, and drops the record when the watermark fell
inside the dropped span (there is no child-side equivalent). The verbatim
full-copy path is untouched — seqs are identity there, so nothing changes.

Tests: tests/sidechat-compaction-seed.spec.ts builds a compacted parent
carrying real delivery markers and asserts every surviving marker cites
the same earlier event the parent marked, while markers whose watermark
was trimmed away do not survive (red before the fix: throughSeq 15 for a
marker at seq 8).

Closes #1109
2026-11-04 20:59:08 +08:00
Menghuan1918 89b85a82a8 merge #1111: feat(sidebar) 划选引用 chip 可点击回跳源文件并闪行段(合入前修正:二次点击 nonce、落盘失败回退、注册契约与文档)
# Conflicts:
#	CHANGELOG.md
#	CHANGELOG_EN.md
2026-11-04 20:48:47 +08:00
Menghuan1918 45b538283d merge #1099: feat(sidechat) 支持粘贴/选中图片(合入前修正:大 body 才计入准入、宿主附件错误分类、文档与常量收敛)
# Conflicts:
#	CHANGELOG.md
2026-11-04 20:47:47 +08:00
Menghuan1918 30093748a2 docs: 同步 14 条 DSH peer,修正 chip 底部入口与行号漂移说明 2026-11-04 20:46:52 +08:00
Menghuan1918 9c64e43e08 docs: move the side chat image section under the API chapter
The section was nested under the removed free-window chapter; it now sits after the archive routes as 6.2, drops the false claim that the image-remove control is the host Button, and points the connection-admission references at section 6.
2026-11-04 20:45:25 +08:00
xiangzz 805a03f91f feat(sidebar): 划选「添加到对话」落可点击引用 chip(点击回跳源文件并闪行段)
- 移植到 dev 基线(#1052 / #1002 之上):只加「可点击 + 行段落地」,不重做 chip 本体
- 自有 input-trigger source `betterSidebarQuote`:`openReference` 校验会话后回跳,
  `codec.serialize` 在发送时还原成与升级前字节一致的 `路径:起止` + 围栏正文
- 行段末行走模块级一次性旁路 `src/client/line-target.ts`(key = path + line,cap 32),
  不写进宿主导航参数(宿主 `SidebarRightResourceParamsMap.file` 只声明了 `line`)
- 引用记录存 `localStorage`(`dsh-better-sidebar:quote-refs`,FIFO 200):模块同时进
  core bundle 与 lazy editor chunk,两个实例只能靠它互见;插入失败即回滚记录
- 行段闪光用 CodeMirror 行装饰 + 皮肤令牌 `--dsw-alias-interactive-bg-hover-accent`
- 三级降级:自有 chip → #1052 内置 chip → 纯文本,永不比升级前更差
- 新增 peer `@deepseek-ai/dsh-client-ui-input-trigger` `^0.2.1-rc.1`(DSH peer 增至 14 条)
- 文档:指南新增 §7.2,并补 `openFile` options / `FileViewerProps.lineEnd` / peer 说明;
  AGENTS §3、CHANGELOG 双语、README 双语、`docs/plans/2026-11-03-selection-quote-chip.md`
- 测试:`selection-quote` 23、`quote-flash` 13、`line-target` 7,`conversation-draft` +2
2026-11-04 01:47:15 +08:00
Kunping Wang 3ce803c691 fix(changes): 修复 Changes 视角切换按钮样式 2026-11-02 20:57:24 +08:00
CCColastic 9601182720 test(sidechat): verify image input through a real host 2026-11-02 15:19:28 +08:00
CCColastic ba72fc4c9c fix(sidechat): defer image reads until message projection 2026-11-02 14:02:44 +08:00
CCColastic 23a2b61f33 feat(sidechat): accept pasted and selected image prompts 2026-11-02 13:37:43 +08:00
Menghuan1918 bd6cfa55b4 test(e2e): measure the folder-archive flow in the perf audit 2026-10-30 02:14:40 +08:00
Menghuan1918 e9003fc8c0 docs(perf): list the audit gaps (settings UI, live tasks, desktop shells) 2026-10-30 02:02:24 +08:00
Menghuan1918 f1323d6c57 chore(e2e): launch dsh web with --no-open and add the opt-in page/API perf audit 2026-10-30 02:01:47 +08:00
Menghuan1918 edde9de733 docs: record the 2026-10-30 UX PR batch (verdicts, gates, residuals) 2026-10-30 00:31:14 +08:00
Menghuan1918 d77adf25e3 merge fix/1009-card-toggles: hidden tab types are not settings cards (#1009) 2026-10-29 23:53:10 +08:00