Menghuan1918
fdaa597121
chore(release): prepare v0.30.0
...
- package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION already at 0.30.0
- CHANGELOG: 未发布 → v0.30.0 (25 entries, bilingual)
- README / README_ZH: install commands target 0.30.0; Recent Updates trimmed to
v0.30.0 / v0.29.0 / v0.28.2
- AGENTS + external-plugin-guide: baseline DSH 0.2.2-rc.1, current version v0.30.0
- plan record: docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md
2026-11-04 22:51:32 +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
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
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
Menghuan1918
a2a0dee305
Merge branch 'pr-972' into review/html-preview-mime
2026-10-29 23:27:19 +08:00
taekchef
cd1251be2d
feat: prepare Sidebar 0.29.0 GenUI provider release
2026-10-28 14:48:08 +08:00
taekchef
60c3fff158
merge: integrate Sidebar provider PR #1033 with current dev
2026-10-28 14:40:13 +08:00
Menghuan1918
e3d32cde42
chore(release): prepare v0.28.2
...
- bump package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION to 0.28.2
- CHANGELOG: v0.28.2 (cold cwd from the stored workspace header) with the
measured numbers; CHANGELOG_EN mirrors it
- README / README_ZH: install commands and installer args target 0.28.2;
Recent Updates trimmed to v0.28.2 / v0.28.1 / v0.28.0
- AGENTS + external-plugin-guide: current stable version is v0.28.2
- plan record: 40,157,518-byte session benchmark (1 header read, 0 full
reads, 3 ms, +0.3 MB RSS; pre-fix 6 calls = 6 full reads, +1.0 GB peak)
2026-10-27 22:58:01 +08:00
Atlas Zeng
8ae97dec5b
Update README.md
2026-10-26 20:19:26 +08:00
Menghuan1918
7ecf6a14af
perf(host): share one cold cwd read across concurrent /sidebar requests
...
cwdOf() resolves the session cwd for all twelve /sidebar routes. On a
detached session every call runs one host observation — the whole log read
plus decode — and the host's cold cache only helps AFTER a read completes,
so a session-switch burst decoded the same multi-MB log N times in parallel
(0.28.0: 39 MB × 44 requests ≈ 1.7 GB, OOM). Concurrent asks for the same
session + client cwd hint now share ONE resolution; there is no TTL (the
host already caches completed cold reads by persistence revision), and the
hint stays in the key so different fallbacks never leak across each other.
tests/smoke.spec.ts pins 12 concurrent calls → 1 observeSession (red before
this change: expected 12 to be 1) and the per-hint key. The dock-fallback
reserve test now clears localStorage per case — a previous case persisted
bottomOpen and made the new click toggle it closed.
2026-10-26 17:51:30 +08:00
Menghuan1918
8ee6e8de27
chore(release): prepare v0.28.1
...
- bump package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION to 0.28.1
- CHANGELOG: 未发布 → v0.28.1; CHANGELOG_EN gains the v0.28.1 summary
- README / README_ZH: install commands target 0.28.1; Recent Updates
trimmed to v0.28.1 / v0.28.0 / v0.27.0; Git screenshot alt + tags note
- refresh docs/screenshots/files-tree.png and changes-tree.png from a
neutral demo workspace (git colors + tag pills in the commit graph)
- AGENTS + external-plugin-guide: current stable version is v0.28.1
2026-10-26 17:43:39 +08:00
Menghuan1918
a1dd6b0eb8
merge #983 : 提交图显示 tag(独立 tag 预算 + 分页指纹)
...
# Conflicts:
# CHANGELOG.md
2026-10-26 15:20:04 +08:00
Menghuan1918
5bacf5fa0c
修复提交图标签缺失并校验标签分页快照
2026-10-26 15:19:02 +08:00
Menghuan1918
9d973ccf8c
docs: file the merged batch under 未发布 and refresh the version matrix
...
- CHANGELOG: move #929/#1013/#1020 entries out of released sections and add
the remaining merged-batch entries (#999 #956 #981 #965 #1012 #1002 #1052 )
- README/README_ZH: DSH npm latest is now 0.2.1-rc.2; spell out the old-host
pin and the marketplace latest-vs-host mismatch
- issue-triage: the 0.26.0/0.28.0 fixes are released; only #915 is still
dev-fixed-pending-release
2026-10-26 15:12:01 +08:00
Menghuan1918
66c91091bc
chore(release): adapt to DSH 0.2.1-rc.1 for 0.28.0
2026-10-17 14:03:22 +08:00
Menghuan1918
2b8a4da569
chore(release): prepare alpha.0 with latest dev fixes
2026-10-17 12:02:59 +08:00
Menghuan1918
6417547bb5
merge origin/dev: include Context diagnostics and graph layout fixes
...
# Conflicts:
# CHANGELOG.md
2026-10-17 11:52:48 +08:00
Menghuan1918
93c43b0ac9
feat: add optional Context diagnostics navigation
...
Use an activation-scoped Cordis controller for session, agent, and job-owner entries. Reuse native Context tabs, cancel stale navigation, and close source overlays without canceling pending requests.
Verify optional capability lifecycle, truthful job ownership, three real dsh-context configurations, and the existing mount regression suite.
2026-10-17 02:20:53 +08:00
Menghuan1918
4ebd3e9bdd
chore: adapt sidebar to DSH 0.2.1-alpha.5
2026-10-17 02:12:44 +08:00
Menghuan1918
b5fec8d9a2
chore(release): prepare 0.27.0 Git page integration
2026-10-16 21:57:02 +08:00
Menghuan1918
88ded478de
merge pr-969 ( #969 feat(git-graph): 只读提交图) into dev(@vlln)
...
融合(D5):#969 的图谱引擎作为 Git 镜头内的「提交图」区上线,不再新增第三个镜头。
- 保留:src/git-graph.ts(有界路由 + graph-stale/graph-limit)、graph-layout.ts、
graph.module.css、CommitDetails、DiffPane 的 PaneTabStrip 与 details/content/diff 分签、
hover 卡片、引用徽章、分支筛选、无限滚动、e2e 与设计文档;
- 落位:GitGraphLens → GitGraphSection(挂在 GitLens 的 Graph 区,目标读镜头自己的
仓库/worktree 选择,不再自持选择器);行右键接回 #944 的提交菜单(查看/复制/revert/cherry-pick);
- 去掉:第三镜头与 changesGraphLens 键、#944 的 GitGraph.tsx(及随之无消费者的
log 行样式与 historyLoadError/changesNoHistory 词典键);
- 镜头常驻保留(hidden 切换):Graph 的滚动/选中、Changes 的展开与草稿切走不丢,
同时 store 槽位与轮询按「可见 + 在屏」分别门控(切回不闪 loading);
- 两套重写过的测试按新契约对齐(底部面板分签、图谱区与 Git 镜头的关系、图行/历史断言)。
2026-10-16 17:30:44 +08:00
Siyan Li
0bc32a9945
fix: serve HTML preview assets with browser-compatible MIME types
2026-10-16 16:20:16 +08:00
vlln
ab7db3a313
docs(git-graph): 设计文档与 README 章节
...
`docs/plans/git-graph.md` 记录取舍:为什么第一版只读、为什么分页用不透明游标
而不是服务端游标缓存、为什么**没有**颜色图例(颜色属于泳道而不是分支,泳道可以
比创建它的分支活得更久,图例会暗示一种不存在的一一对应)、连线与徽章的配色
规则、底部面板固定的三个标签、以及 hover / 点击两档信息密度的分工。
README 中英双语各加一节 Git Graph:顶部选择入口、不 checkout / 不 fetch、
单行提交行的构成(徽章含义、✓ 表示当前分支)、统一底部面板的三个标签,以及
资源上限与分页过期的行为。
2026-10-15 20:44:33 -07:00
vlln
1718d2bdfa
feat(changes): 页签名「文件变动」改为「Git」
...
这个页签装的就是仓库视角(暂存 / 提交 / 历史 / 工作树),「文件变动」这个名字
没有把它和文件树区分开;改成「Git」后一眼能认出这是 Git 面板,也和里面第一个
镜头名对齐。21 份词典里的页签名是同一个语言中立的值,一起改。
- README 中英双语的徽章、能力表与特性条目同步(顺带把图片 alt 也改成 Git,
否则无障碍名还在念旧标题)。
- `tests/locales.spec.ts` 里那条「切换 zh 后读到中文」的断言换了个键:
`changes` 现在是语言中立值,两种词典相同,拿它证明不了语言已切到中文,
改用 `explorer`(资源管理器)这个仍然分语言的键,断言意图不变。
- `tests/builtins.spec.ts` 新增一条页签标题断言,把这个名字钉住。
- `tests/e2e/tree-scroll.e2e.ts` 的页签选择器改走宿主的 tab strip
(`[data-dockkit-strip] [role="tab"]`)而不是纯文本匹配:页签名变成 "Git"
之后,页签内部的镜头切换器上也有同一个词,纯文本过滤会数出两个元素。
2026-10-15 20:19:35 -07:00
Menghuan1918
38d4308a28
chore(release): v0.26.1 —— 版本号、CHANGELOG 定版(中英)与 README 最新版同步
...
稳态开销治理的补丁版:修掉 v0.25 引入的常驻轮询、每 tab 成本与 keepMounted 的
无界复利(社区反馈「0.24 没问题,之后就会卡」)。中英 CHANGELOG 各落一段,
README / README_ZH 的「最近更新」按既有约定在顶部加 v0.26.1 块并保留 v0.26.0,
dsh.plugin.json 版本与 package.json 同步(manifest-consistency 守护)。
2026-10-16 00:06:25 +08:00
Menghuan1918
99db903255
docs(readme): README 拆成英文默认版 + 中文 README_ZH.md,锚点守卫改用固定 fixture
...
- README.md 改为英文默认版,README_ZH.md 承接原中文 README,删除 README_EN.md;package.json 的 files 清单同步
- CHANGELOG.md / CHANGELOG_EN.md 顶部「最新版摘要」链接改指 README_ZH.md
- 特性区重排为表格布局并换用仓库内截图(docs/screenshots/*.png),README 里的目录(TOC)整块去掉
- 两条锚点守卫用例原本拿仓库 README 当真实文档(emoji 标题 + TOC 锚点 0/16 的回归),README 去掉目录后改用 tests/fixtures/github-toc-anchors.md 承载同一形状(emoji 标题 / U+FE0F 变体选择符 / & 转双横线):markdown-slug 只换文档来源,markdown-surface 的 CRLF 与「逐锚点点击真的滚动」两条同样改读 fixture,判别力不变
- tests/install-powershell.spec.ts 的 README 清单同步(README_EN.md → README_ZH.md)
维护者收尾:合并 origin/main(454afaf)后把「微信群二维码换新资源」移植到 README.md / README_ZH.md(旧资源 5d727d52 已换成 e9c77c37)
2026-10-15 21:52:59 +08:00
Atlas Zeng
454afaf8b0
Update README.md
2026-10-14 23:43:22 +08:00
Menghuan1918
e12cfd9d72
docs(readme): 支持线说明收回一句——alpha 通道不在本版范围
...
本版就钉 rc 线(npm `latest` / `next` = 0.2.0-rc.2)。原文把 0.2.1-alpha.x 的
不兼容写成了安装章节的一段警告,与「正式版适配 rc」的口径不符;改为一句括注,
表格里的 `0.2.0-rc.2+` 仍然说明一切。README_EN 同步。
2026-10-13 22:45:24 +08:00
Menghuan1918
8171beb5a2
chore(release): v0.26.0 —— 版本号、CHANGELOG 定版与补齐、README 与指南同步
...
**版本号三处同步**:`package.json` / `dsh.plugin.json` / `src/client/service.ts`
的 `SIDEBAR_SERVICE_VERSION` 0.25.0 → 0.26.0(`tests/manifest-consistency.spec.ts`
钉住前两者一致;service.ts 里其余 `v0.25.0+` 是历史功能标注,未动)。
**CHANGELOG**:`### Unreleased` 定版为 `### v0.26.0`;删掉任务面板那批的**首轮
旧稿重复块**(61–75 行与定稿重复且措辞互相矛盾,合并遗留);补上此前完全缺失的
三条——
- PR #925 侧边对话整批(实时推送 / 排队可见 / per-thread 模型选择 / 幽灵输入精确
清扫 / 底栏重构);
- 文件树的「加载中」占位把子树永久卡死(占位所有权跟着请求走 + 丢弃时补发一次);
- `.jsonl` 预览谎报「文件过大」(阈值决定提示,不是组件决定);
- 预览插件目录收录音频预览插件(#881)。
另外把 `.delta/` 排除那条工具修复并入 git 轮询条目的测试小节。
**README / README_EN**:修掉「v0.24.1 起要求 0.2.0-rc.2+」这处事实错误(v0.24.1 的
peer 是 `^0.2.0-rc.1`,v0.25.0 才是 `^0.2.0-rc.2`)、跟着过时的「`latest` 仍是
0.1.7-rc.2」、以及支持线表格与徽章 alt 里的旧版本号;**补上此前从未写过的 v0.25.0
条目**并新增 v0.26.0 条目(四件大事 + 性能段)。README_EN 同步。
**CHANGELOG_EN**:停在 v0.24.1 已两版(无门禁守护),补 v0.26.0 与 v0.25.0,
并把头部说明改成「中文 CHANGELOG 为逐条权威、本文件是英文摘要且历史上滞后」。
**指南**:§4.4 内置清单的 viewer 数 3 → 4(补 `jsonl`);`terminal-bottom` 的
`single` 列与实际不符(#926 已去掉 `single`、改为 `createTab` 每次铸新 id),
两处「`contentId` 恒定」同步订正为每页签一个实例。
2026-10-13 22:44:05 +08:00
Menghuan1918
6ecae3d7c3
merge origin/dev into feat/streaming-transfer-jsonl
...
冲突 21 个,全部是「两边在同一区域各加了 key」的机械冲突:
- 20 份词典 + src/client/locales.ts:dev 新增 pluginAudioDesc,我改写了紧邻的
pluginVideoPreviewDesc(去掉已不存在的 20MB mediaLimit 说法)。取并集——保留
我的 video 文案与 dev 的 audio 词条。tests/locales.spec.ts 的 key 集对齐断言
是这次解析的证明(20 例全绿)。
- CHANGELOG.md:两边各加了一个未发布段。按 dev 的标题惯例(### Unreleased)
合成**一个**段,我的条目在前(最新在前),dev 的任务面板条目在后。
CHANGELOG_EN.md 自动合并成功。
dev 还带进来一个新依赖(@formkit/auto-animate),已 pnpm install。
合并后门禁:tsc 0 error、eslint clean、tsdown 8 个 bundle、
vitest --maxWorkers=4 → 200 files / 2346 passed。
2026-10-12 00:22:35 +08:00
Menghuan1918
0377730fe8
merge origin/dev into feat/tasks-status-and-group-fold(#881 预览插件目录)
2026-10-12 00:05:42 +08:00
Menghuan1918
9ccc147e00
feat(tasks): 第二轮真机反馈——聚合条动作行、模式 chip、弹窗用量/耗时、原生侧栏转录、动效
...
用户在自己跑的 3080 实例上测完报回六条,逐条修:
1. 「已完成的聚合卡下方空荡荡」= 上一轮把计数收进徽标后那条只剩一个
chevron(我的取舍造成)。小条改为动作行:组图标 + 「展开」(新词条
tasksFoldExpandShort × 20 词典)+ 出错尾注 + 展开箭头。
2. 「展开后的子代理点不回去」= 真缺陷:expandedGroups 压过了 foldedIds,
展开组内卡片的 chevron 失效。改成手动折叠优先(手动 → 页级规则 →
组展开),补模型 + 组件两层判别性用例。
3. 「一次性一直显示」→ 模式词搬进徽标行成 chip(用户口径)。智能体卡不再
有 mono 元信息行,卡片高度预算拆成 GRAPH_AGENT_NODE_H / GRAPH_NODE_H
(只有 workflow run 卡保留元信息行),rowStrideFor(nodes) 按模型里有没有
run 选行距。
4. 动效:接入 @formkit/auto-animate(用户选定,~3KB、无依赖无安装脚本)+
useAutoAnimateRef 包装(WAAPI 守卫 → jsdom 空转、尊重 reduced-motion),
挂到画布卡片层 / 树视图 / 任务抽屉;详情卡另加 140ms 入场关键帧。核心
bundle +56KB(未压缩 CJS)。
5. 弹窗多两项:Token 用量(宿主 tokenUsage 四桶求和,悬停给明细)+ 耗时
(宿主 subagentTiming,按 3s 轮询刷新)。SidebarProjectionSnapshot 镜像
补两个键、模型新增 metrics 入参;**按存在性渲染**,没有测量就不显示这一
行(0 是投影初始态,与「没工作过」不可区分)。
6. 「查看转录」改为在原生右侧栏打开:宿主 ui-subagent 的 subagentchat tab
类型(宿主自己的子代理列表就是点行=主窗、点 chevron=侧栏)。插件照抄其
地址公式并调 openResource(..., { kind, preferNewPane: true }),三级降级回
主窗;页脚变「主按钮 + caret 菜单(在主窗口中打开)」。
测试 2238 passed / 17 skipped(191 文件)、tsc 0 错误、eslint 0 错误、构建
通过;新构建已装进 sidebar-test profile,:3080 上挂载正常、0 pageerror。
动效观感与真实数据的两行数值未在真机逐帧核验(右栏在无头上下文里被
transform 移出视口,合成点击不稳)——已如实记进设计文档的第二轮偏差段。
2026-10-11 23:15:40 +08:00
Menghuan1918
62b797665f
docs: 接入指南 / README / AGENTS / CHANGELOG 与设计文档同步
...
- 指南 §5.2 / §5.3 / §6:FileViewerProps 的 truncated → size + largeFile、
新增 visible;fs.read 三态;新增 fs.readPage;fs.write 迁到 raw 路由
- 指南 §6.1:打包改原生命令的完整说明(工具探测顺序、-y 与符号链接环、
公共祖先定位、临时文件 + 流式下发、unavailable 501),删掉已不存在的
ZIP_MAX_ENTRIES / ZIP_MAX_BYTES 与 src/zip.ts 的说法
- README / README_EN:挂载示例的四个限额收缩为 listLimit,并说明三个键
已删除、旧 profile 残留值会被静默忽略
- AGENTS §6 测试地图:6 tab + 4 viewer、新增的六个守护 spec
- CHANGELOG / CHANGELOG_EN:未发布段
- docs/plans/2026-10-11-streaming-transfer-jsonl-preview.md:设计过程、
与 VS Code Web 的对照(含「VS Code 并不分页」的纠错)与实施偏差记录
另修一处 lint:jsonl.ts 的 truncate 助手在重写摘要后成了死代码
2026-10-11 22:43:30 +08:00
Menghuan1918
ba9dc57f56
docs(tasks): README 的卡片与折叠两条按当前行为改写(维护者确认)
...
用户确认「现在就改写」那四条(README.md 的 v0.22.0 节 + README_EN 对应两条):
- 双段式节点卡:小条是状态点 + 原生状态文本,运行中/已结算都由活动行取代
状态词(不再念两遍),空闲与出错保留状态词、无数据时回退状态词。
- 折叠:徽标写真实计数、小条只留出错尾注与展开箭头;点聚合只展开该组,
页级展开/折叠仍在右下控制条且收起时会清掉按组展开。
设计文档的偏差条目随之改写为完整过程(先报偏差 → 维护者选择改写),
并补上「自查抓到判据反了 + 判别性用例」的记录。
2026-10-11 22:13:14 +08:00
Atlas Zeng
0c3e5e9279
merge #881 into dev(推荐目录收录音频预览插件 dsh-plugin-better-sidebar-plugin-audio)
...
Refs #881
2026-10-11 21:54:53 +08:00
Menghuan1918
a0cfd30b48
chore(release): v0.25.0 —— 支持线前移到 DSH 0.2.0-rc.2(npm latest)
...
- 版本 0.24.1 → 0.25.0;CHANGELOG 的 Unreleased 段落成 v0.25.0。
- **支持线**:peer 下限 `^0.2.0-rc.1` → `^0.2.0-rc.2`,CI 与挂载 lane 的钉版同步 →
`@deepseek-ai/dsh@0.2.0-rc.2`(`latest` 现在正是这一版),31 个 `@deepseek-ai/*`
devDependencies 与 lockfile 同批抬到 rc.2,`dsh.plugin.json` 的 engines 同步。
- **0.2.0-rc.1 及更早(含 0.1.7 线)请固定 v0.24.1**:caret 范围跨不过预发布元组,
`^0.2.0-rc.2` 对 rc.1 判定为 false,会被宿主启动预检整行静默禁用。
- 文档同步:AGENTS §2/§3.0、README / README_EN 的徽章与支持线、接入指南的活跃提法
(历史发布记录与 docs/plans 里的 rc.1 保留原样,那是记录不是声明)。
- 本版内容与贡献者致谢见 CHANGELOG 的 v0.25.0 段。
门禁:rc.2 上 typecheck / lint 干净,全量 189 文件 2213 通过(唯一红是
`fs-watch.spec.ts` 真起 fs.watch 的并行负载 flake,单跑 6/6 绿,与本版无关)。
2026-10-10 01:16:38 +08:00
HuanLinOTO
3d6d55d2ea
feat(catalog): 预览插件目录收录音频预览插件(dsh-plugin-better-sidebar-plugin-audio)
...
- src/client/plugins-viewers.ts:新增 PluginEntry,设置页「添加插件」弹窗的预览插件目录可一键复制安装命令
- i18n:pluginAudioName / pluginAudioDesc 同步全部 20 份词典(zh/en + 19 份第三语言),key 集合由 tests/locales.spec.ts 守护
- tests/plugin-list.spec.ts:该条目写进目录清单断言
- README.md / README_EN.md:预览插件表格 3 → 4
验证:pnpm typecheck 通过;vitest run tests/locales.spec.ts tests/plugin-list.spec.ts 全绿(29 用例)。本机全量 pnpm test 的 7 个失败与本改动无关(tasks-model 语言回退 / git / plugin-meta 打包 / editor-host),已在未改动的 dev 上复现同一失败集合。
2026-10-07 00:31:16 +08:00
NolanHo
0d9fee85b8
fix(fs-search): direct-open for pasted paths + fragment path matching ( #879 )
...
A query carrying a path separator can never match an entry NAME — names
never contain separators — so pasting any path into the search box was
structurally guaranteed to return {matches:[],truncated:true} while the
walk burned its full 100k-visit budget (measured: 1.9s on a Rust repo
whose two worktree forests alone held 97k entries; real directories were
never reached).
searchFiles now routes by query shape, all three modalities sharing one
result contract:
- A query naming one path (absolute, ~/…, ./x, ../x) resolves through
resolveTarget — the SAME primitive fs.read uses, so ~ expands (#713 ),
dot-anchored spellings join onto the session cwd, and win32
WSL/dsh-remote namespaces reinterpret — then stats the target. The hit
is the RESOLVED path (resolve() strips shell-completion trailing
separators, which the client's exact-string row comparisons could never
match); a missing target answers empty immediately. Directory targets
ride the #801 dirs contract. The exclude pref does not apply: a pasted
path is explicit intent, same as the fs.read the click performs.
- A separator-carrying relative fragment (records/exp1) matches by
root-relative PATH in the walk; the engines are name matchers (fd has
no --full-path here, rg's globs are single-segment) so argv
construction is untouched.
- Plain name queries are unchanged, and no NAME query is stolen: on
POSIX a backslash is a name character (the ~\ gesture counts only on
win32; util.ts~ / ~$doc.docx / .env stay name queries).
SKIP_DIR_NAMES gains the budget-eating forests seen in the wild:
.worktrees/.worktree (git worktree layouts), target, venv/.venv and
__pycache__ — shared by the walk and both engine argvs as before.
Client: a directory hit OUTSIDE the cwd (newly reachable via the paste
branch) only clears the query — the tree is cwd-rooted, and the old
ancestorDirs call synthesized junk expanded entries for foreign paths.
Verified: vitest fs-search/smoke/search-persist suites green; full run
2171 passed with one failure proven pre-existing on the clean tree
(git.spec checkout case, host git lacks --end-of-options; #841 );
typecheck/lint clean.
2026-10-06 08:25:30 -07:00
Menghuan1918
e4a4c3fa4c
merge origin/dev into feat/774-terminal-tab(#774 收尾前置)
...
dev 前进 12 个提交(titleBar 让位机制整体移除、#132 新建文件与排序三档、
#817 后台激活改标记未读、#412 Windows「在应用中打开」候选链等)。两处冲突,
都是「双方各自新增的内容」,无实质取舍:
- CHANGELOG.md:Unreleased 保留双方条目。#774 一组在最上(本分支的新条目),
其后是 dev 的「移除 titleBar 让位机制」「#132 新建文件 / 排序」一组,再往下
是既有的 #109 / #203 一组(与文件里原有的空行分组一致)。
- tests/e2e/mount.e2e.ts:只在下一条用例的标题行冲突——保留本分支新增的底部
终端用例(#774),标题取 dev 侧的新名(`a shell-stamped render URL mounts
normally; …`;dev 已把 WCO / preset 两条场景删掉)。
- 21 份词典、AGENTS.md、docs/external-plugin-guide.md、README 自动合并:dev 删的
12 个 titleBar 词典 key 保持删除,本分支新增的 3 个 terminal 词条保持新增。
2026-10-06 00:07:23 +08:00
Menghuan1918
2f66c921df
docs: 同步 #774 的接入契约、设计文档与内置清单
...
「接入 API 即文档」:src/client/service.ts 与 src/client/builtins/ 变了,
唯一权威接入文档必须跟着变。
- docs/external-plugin-guide.md:`bottomOnly` 全字段说明(含与 `hidden`
的区别、`openTab` 落点改道、为什么不注册原生承载面);承载面表把
「终端(已交还宿主)」拆成三条——宿主一条 + 插件底部一条(彼此独立)、
`bottomOnly`、底部终端的恢复语义;`target: 'side'` 行补上唯一的例外;
guide 条目行补「`bottomOnly` 同样不占行」;§4.4 内置清单加
`terminal-bottom` 行(5 → 6)。
- docs/plans/2026-10-05-bottom-terminal-tab.md:设计文档。五条已定决策、
从装好的钉版包里读出来的宿主契约(含 view() 的 createWhenMissing 分支、
SnapshotStore、帧协议、issue 枚举)、三条恢复语义的由来、降级矩阵、
证据清单,以及**未验证项**(真 Windows / 真浏览器观感 / 本轮是否跑过
真实挂载 lane)。
- README.md / README_EN.md / CHANGELOG.md / AGENTS.md:内置 5 tab → 6 tab
的计数同步(README 的终端行与排障行补上底部终端与它的失败模式)、
Unreleased 词条、AGENTS 的 chunk 名清单与关键测试守护条目。
2026-10-05 23:42:49 +08:00
Menghuan1918 and finley08
0655b88629
feat(explorer): 资源管理器补「新建文件」+ 排序三档(#132)
...
第一部分:新建文件(移植贡献者 PR #832 的交互语义,写路径改落服务端)
- 新增路由 fs.createFile → fs-operations.ts 的 createWorkspaceFile:单段名、
已存在即拒(fs-error 409,同一句 "x" already exists,绝不截断同名文件,
落盘用 wx)、拒绝 Windows 非法字符(< > : " | ? * 与控制字符)与保留设备名
(CON / PRN / AUX / NUL / COM1-9 / LPT1-9,带不带扩展名都拒)、路径穿越
(..、a/b、a\b)与空名一律 bad-request 400
- src/client/api.ts 镜像 fsCreateFile;FileTree 目录行右键「新建文件」与
「新建文件夹」并列,复用同一套行内输入(Enter 提交 / Escape 取消 / 失焦提交
/ IME 保护,图标跟随输入名),两者互斥;客户端先在已加载层做大小写不敏感的
占用检查(newFileExists),服务端仍是最终裁决
- 词条 newFile / newFilePlaceholder / newFileInvalid / newFileExists 进入
locales.ts 的 zh/en 与 19 份第三语言词典(ja 为真日文)
第二部分:排序三档(名称 / 类型 / 文件夹优先开关)
- 新增 src/client/file-tree-sort.ts:对 level.entries 的副本排序,不改服务端、
不原地重排共享目录缓存;默认(名称 + 文件夹优先)与宿主 fs-tree.ts 的
compareEntries 逐元素一致
- 控件落在文件树头部既有工具区(TreePanel 搜索行的刷新按钮旁):IconButton +
Menu(名称 / 类型打勾 + 文件夹优先独立开关),沿用既有控件样式与可访问名
- 「按修改时间」不在本批范围
测试:tests/fs-create-file.spec.ts(11)、tests/file-tree-new-file.spec.tsx(11)、
tests/file-tree-sort.spec.tsx(12),并修 tests/file-tree-hover-title.spec.tsx 的
夹具顺序(原夹具不是任何宿主会返回的目录序)
Co-authored-by: finley08 <fazhang08@163.com >
2026-10-05 22:57:58 +08:00
Menghuan1918
e88b7e02ed
feat(tab-bar): Tab 右键菜单补「关闭全部页签」与「在资源管理器中定位」
2026-10-05 21:53:08 +08:00
Menghuan1918
783ac9feb6
merge #600 into dev(草稿保护/冲突门/替换;删掉与 #587 重复的查找接线与词典键,换掉已删图标名)
...
贡献者 PR #600(feat/editor-draft-protection,head a14c1e8)以 --no-ff 落到 dev
基线(9b97e6f)。贡献者的提交原样保留,冲突解决体现为本次合并结果。
保留(PR 独有):
- 草稿保护:src/client/editor-dirty.ts(脏稿登记表 + confirmDiscardDraft)、EditorHost
的登记/卸载清理、Sidebar 的 closeTab 门与 beforeunload、closePathTabs 的确认参数。
- 保存冲突门:fs.read 回报 mtimeMs、fs.write 的 expectedMtimeMs(409 fs-conflict,在写
临时文件之前判定)、TextEditor 的 mtimeRef + 冲突横幅 + onReload、wire 的
fs-conflict 码,以及 fs-write-route / text-editor-conflict 两个新 spec。
- 查找/替换入口:TextEditor 工具栏放大镜按钮(打开 #587 的面板;可编辑视图的面板自带
替换行),文案用 #587 的 searchFind。
删除(与 #587 / 2e22b90 重复的部分):
- TextEditor 里重复的那份查找接线:本地 searchPhrases()、EditorState.phrases.of(...)、
search({ top: true })、编辑器 keymap 里的 ...searchKeymap,以及 search / searchKeymap
两个 import——#587 的 src/client/cm-search.ts 已提供同一套(面板、keymap、phrases 隔间、
令牌主题)。
- 20 份词典里被 #587 取代的 10 个键:find / replace / findNext / findPrevious / findAll /
findMatchCase / findRegexp / findByWord / replaceOne / replaceAll(命名以先落的 #587 为准:
searchFind / searchReplace / searchNext / searchPrevious / searchAll / searchMatchCase /
searchWholeWord / searchRegexp / searchReplaceAll)。
- src/index.ts 里已被 2e22b90 覆盖的临时文件改名(.dsh-write-<uuid>):保留 dev 的
.dsh-sidebar-tmp-<uuid>,tests/fs-write-route.spec.ts 的残留断言改指 dev 命名。
- tests/text-editor-search.spec.tsx 中与 editor-find.spec.tsx 重复的三个用例(en/zh 文案、
Mod-f),只留「工具栏按钮开面板并切到编辑态」这一个独有用例。
- README / README_EN / 指南里未实现的 Ctrl/Cmd + H 声明(PR 从未绑定 Mod-h,且浏览器保留
该组合键),改为如实描述「Ctrl/Cmd + F 的面板含替换行」,并补上 #587 已支持的
Ctrl/Cmd + G / Shift + Ctrl/Cmd + G / Ctrl/Cmd + D。
其它解冲突取舍(dev 上下文已漂移,不复活 PR 基线代码):
- 图标:IconSearchOutline16 在宿主图标整族改名后已不存在,换为 IconSearchOutlineRegular
size={16}(显式尺寸;旧 16 后缀已删,不传会按新默认尺寸)。
- 采纳 dev 侧:fs.read 的 ensureWorkspacePath 两参调用、truncation 横幅不带 mode 条件、
fs.write 的编码探测与 invalidateDirectoryCache、Sidebar 的 closeTab 里 PR 基线的终端
pty 释放块(dev 已移走)与 summaryCwd/pushedBottomHeight/collapsed 块(dev 已删)。
- 测试 harness 跟随 dev:ctx.sidebarRight.mounted、bottomSplits、先打开底部工作台、
apply() 需要的 ctx.on、api 模块改为部分 mock(保留 sessionPhase / sessionCwd)。
- 取舍记录写入 docs/plans/2026-09-09-editor-draft-protection-design.md。
Refs #600
2026-10-05 01:58:18 +08:00
Menghuan1918
f20bd4b0f4
merge #587 into dev(编辑器内查找,README 发布历史与 TextEditor 上下文解冲突)
...
Ctrl/Cmd+F 文件内查找:接入 @codemirror/search 的 search({top:true}) +
searchKeymap,面板文案走 phrases facet(CmSearchPhrases 隔间,语言切换
就地 reconfigure),20 份词典各新增 15 键。
解冲突:
- README.md / README_EN.md:dev 重排了发布历史,冲突整块为过期上下文,
取 dev 侧;仅把 PR 的「文件内查找」快捷键表 1 行按 dev 版式补回。
- src/client/TextEditor.tsx:dev 的 #733 readOnly 行与 PR 的查找接线
插在同一锚点,两段都留(查找两行在 themeComp.of(dark) 之后,仍先于
编辑器自有 keymap,Escape 优先次序与 Mod-s 归属不变)。
Refs #587
2026-10-05 01:40:51 +08:00
HuanLinOTO
afd96632d1
Merge branch 'feat/add-tylina-tab-catalog' into main (catalog train, includes train-breakage repair)
2026-10-01 15:21:04 +08:00
多玩幻灵qwq
32812f3f44
Merge pull request #795 from OMSociety/feat/omsociety-plugin-entries
...
feat(plugin-list): 把 dsh-git-forge 与 dsh-ssh-tunnel 两条指向维护中的仓库与 npm 包
2026-10-01 15:15:48 +08:00
多玩幻灵qwq
d99d42acce
Merge pull request #711 from Lukeknow0/main
...
docs: add Markdown output link preview plugin
2026-10-01 15:15:21 +08:00
Andor
737276b256
feat: list dsh-turn-outline in the plugin ecosystem (README + catalog)
...
Adds Andor-Z/dsh-turn-outline (turn-outline tab) to the ecosystem:
- README.md / README_EN.md tab-plugin table rows + header count 24 -> 26
(aligns with the actual row count, which was already 25)
- recommended-catalog entry in plugins-tabs.ts (npm install; better-sidebar
prereq pinned to 0.17.1 - stable-line policy, see the entry comment)
- pluginTurnOutlineName/pluginTurnOutlineDesc i18n keys across all 20
dictionaries (locales.ts zh/en + 19 locale chunks)
2026-09-30 15:48:24 +08:00
Atlas Zeng
492661a3ea
Update README.md
2026-09-29 00:45:34 +08:00
山海学社OMSociety
e3215e7e2a
feat(plugin-list): 把 dsh-git-forge 与 dsh-ssh-tunnel 两条指向维护中的仓库与 npm 包
...
这两个插件的维护线在 OMSociety,且已发布到 npm(条目 id 即 npm 包名):
- url: thirsty5034/<repo> → OMSociety/<repo>
- install: GitHub 源形态 → npm 形态(dsh plugin --profile web add <pkg>@1.0.0)
- 注释里「package is GitHub-sourced until npm publish」同步改为已发布 npm
- README.md / README_EN.md 对应两行的链接与 stars 徽章同步
条目 id 与 locale 串不变,tests/plugin-list.spec.ts 的唯一性与形态断言不受影响。
2026-09-28 23:26:03 +08:00