Commit Graph
1583 Commits
Author SHA1 Message Date
Menghuan1918 8d8592bb0e release: merge dev for v0.31.1 (file:// image URLs in Markdown) 2026-11-11 21:59:07 +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 4b578d83e1 release: merge dev for v0.31.0 (Markdown data images, desktop HTML preview inlining) 2026-11-11 21:33:40 +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
Menghuan1918 3f4d75a090 docs(changelog): keep the final #1147 sidechat behavior 2026-11-09 12:13:05 +08:00
Menghuan1918 a3f057528a docs(changelog): record #1147 and the GBK euro fix 2026-11-09 12:09:54 +08:00
Menghuan1918 de29aae2a6 fix(encoding): use the canonical two-byte GBK euro mapping 2026-11-09 12:09:54 +08:00
NolanHo 0bc07a016c feat(sidechat): collapse the pre-fork context behind one divider line
A side thread opens on its own question, so the inherited exchange belongs
behind a boundary, not on the first screen: rendered open it read as if the
side thread had asked the parent's question. The fork block is now a native
disclosure, closed on first render and controlled through its toggle event
(React would otherwise reset the DOM's own `open` on the next poll render).

Collapsed, the block is exactly the opening divider: the summary carries the
`sideChatForkDivider` copy and the chevron, never any inherited text.
Expanded, the body keeps the established order — the question in the user
bubble, the answer as assistant prose through the same markdown renderer,
both verbatim — then the closing `sideChatForkDividerEnd` line. With no
answer the body is the question and the closing line only. The block stays
chrome: it is not a transcript row, the row count does not move when it opens
or closes, and it adds no button or link beyond the summary.
2026-11-09 11:59:17 +08:00
NolanHo 0bc77c551f feat(sidechat): keep a thread's draft across a rebind
The upstream draft owner lives and dies with the binding, so leaving a thread
threw its words and screenshots away. A thread now owns its draft: a bounded
LRU cache (8 threads) keeps the text and the images, restores them when the
binding comes back, reuses the preview URLs instead of minting new ones, and
revokes a preview when its draft is evicted, sent, or has its image removed.
A draft whose prompt is already under way is never restored, so a send cannot
be replayed by switching away and back.
2026-11-09 11:59:15 +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 e9883addeb docs: add external PR integration skill 2026-11-09 11:58:12 +08:00
Menghuan1918 37db37f57e docs: list contributors and prefer rebase/ff integration 2026-11-09 11:57:01 +08:00
Menghuan1918 2963286f27 fix(files): reveal Windows paths via an escaped file URL (#513) 2026-11-08 15:51:45 +08:00
Menghuan1918 b9d2934b1b fix(sidebar): treat a zero-sized dock anchor as absent (#1157) 2026-11-08 15:50:47 +08:00
Menghuan1918 920d219d67 fix(terminal): support Ctrl/Cmd+C and V copy/paste (#1103) 2026-11-08 15:37:39 +08:00
Menghuan1918 d6e43a007e docs: sync built-in viewer and tab-action test counts 2026-11-08 12:34:06 +08:00
Menghuan1918 bc66e8dc53 feat(changes): add reveal/open exits to the diff content view (#1092) 2026-11-08 12:18:50 +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 275ee76699 fix(tasks): open a transcript in the current right pane by default (#1141) 2026-11-08 11:50:37 +08:00
Menghuan1918 f3ff9d39df fix(preview): keep the CSP sandbox scoped to scriptable documents (#1123) 2026-11-08 11:47:24 +08:00
Menghuan1918 641bf969ca merge #1123: fix(preview) sandbox streamed files and fix bundled KaTeX 2026-11-08 11:39:54 +08:00
Menghuan1918 a83f616dc3 merge #1135: fix(git) run git inside the WSL distribution for UNC workspaces 2026-11-08 11:39:22 +08:00
gardenerHan 18fd83df51 chore(lockfile): regenerate for schemastery peer move
CI runs pnpm install --frozen-lockfile (pnpm@11.8.0); the committed lock still
pinned the old ~3.18.5 spec and 3.18.5 resolution, which would fail the gate.
Regenerated with pnpm@11.8.0 --lockfile-only; the diff is confined to the
schemastery version graph (3.18.5 -> 3.19.0).

(cherry picked from commit 5c74da5a5a9d716376d920c16c166e2e75eb3018)
2026-11-08 11:38:45 +08:00
gardenerHan 1ea716b6d6 fix(deps): declare @deepseek-ai/schemastery as peerDependency, not dependency
The host (dsh) bundles schemastery and expects plugins to share that single
instance (the schema type registry is module-level). Declaring it as a
dependency with ~3.18.5 makes pnpm install a profile-local 3.18.x copy that
cannot match the host's 3.19.0 on dsh 0.2.2+, so Node's nearest-resolution
loads two instances and the nearer copy shadows the core service.

Verified 3.18.5 and 3.19.0 export identical APIs (26/26) and this plugin
only uses the default export, so sharing the host instance is safe.

Fixes #546

(cherry picked from commit f3591ace5d7984bb89a9ae4e80ed063159e9f985)
2026-11-08 11:38:45 +08:00
Menghuan1918 ee04b5d4b3 test(fs): compare the session-relative tail in the missing-file message (#963) 2026-11-08 00:52:16 +08:00
Menghuan1918 fb1bf44ed2 test(e2e): use the shared onboarding dismissal and assert the visible marker (#963) 2026-11-08 00:37:31 +08:00
Menghuan1918 6cfbad5ce4 docs(changelog): restore the full release history and record the merged batch 2026-11-08 00:27:05 +08:00
Menghuan1918 64ec9d9745 test(tasks): keep the owned-task owner on a catalog row (#1026 after #1139) 2026-11-08 00:24:35 +08:00
Menghuan1918 69c32e78c6 merge #1026: fix(tasks) keep owned task labels consistent with the board 2026-11-08 00:23:29 +08:00
Menghuan1918 041faf3412 merge #829: fix(mermaid) zoom the content and frame on open
# Conflicts:
#	src/client/mermaid.tsx
2026-11-08 00:23:27 +08:00
Menghuan1918 acea51ad13 merge #1048: fix(editor) readable Windows markdown path failures and repair choices
# Conflicts:
#	CHANGELOG.md
#	src/client/EditorHost.tsx
#	src/index.ts
2026-11-08 00:22:24 +08:00
Menghuan1918 11b9d4f963 merge #963: fix(sidebar) resolve relative file links from the session cwd
# Conflicts:
#	src/active-worktree.ts
2026-11-08 00:21:05 +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 6145f758da merge #976: fix(active-worktree) invalidate cached roots whose directory is gone
# Conflicts:
#	CHANGELOG.md
#	CHANGELOG_EN.md
#	src/active-worktree.ts
#	tests/active-worktree.spec.ts
2026-11-08 00:16:42 +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 8b056f316c fix(steady-state): declare the agent-opens heartbeat timer in the ledger (#954) 2026-11-08 00:14:24 +08:00
Menghuan1918 31449826ae merge #1146: fix(data-safety) literal pathspecs, archive operands, save races, task CAS, release dry-run 2026-11-08 00:11:16 +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
kousaka 1f1f29743c fix(native): single-page tab chips take their title from the tab registry
(cherry picked from commit 5c65dd6bf49969983d83ddc612834c8dbe568b4c)
2026-11-08 00:10:06 +08:00
Menghuan1918 f65ac689fc merge #954: fix(sidebar) agent-opens heartbeat and never-give-up reconnect 2026-11-08 00:09:36 +08:00
Menghuan1918 7c395231b8 merge #1129: fix(editor) selection popup uses host floating-button tokens 2026-11-08 00:09:10 +08:00
Menghuan1918 67c1f860bf merge #1132: fix(sidebar) merge quote records from other pages of the same origin 2026-11-08 00:08:07 +08:00
Menghuan1918 076fd17ef3 merge #1131: fix(editor) restored drafts keep their mtime baseline 2026-11-08 00:07:45 +08:00
Menghuan1918 315193ad1f merge #1154: fix(markdown) restores nested code-region masks 2026-11-08 00:07:19 +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