xrkh-better-sidebar 0.20.3 → 0.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/README_EN.md +18 -1
- package/lib/client-editor.js +325 -303
- package/lib/client-mermaid.js +329 -307
- package/lib/client-registry.js +1384 -1212
- package/lib/client-terminal.js +326 -304
- package/lib/client.js +1381 -1209
- package/lib/types/client/EditorHost.d.ts +2 -1
- package/lib/types/client/FileTree.d.ts +7 -4
- package/lib/types/client/TabBar.d.ts +6 -0
- package/lib/types/client/TreePanel.d.ts +4 -3
- package/lib/types/client/intercept.d.ts +12 -6
- package/lib/types/client/locales.d.ts +2 -1
- package/lib/types/client/paths.d.ts +4 -2
- package/lib/types/client/service.d.ts +3 -3
- package/lib/types/client/session-cwd.d.ts +29 -0
- package/lib/types/client/state.d.ts +69 -16
- package/lib/types/client/tab-content-memo.d.ts +2 -2
- package/package.json +1 -1
- package/src/client/BrowserView.tsx +10 -10
- package/src/client/DiffTab.tsx +2 -2
- package/src/client/EditorHost.tsx +236 -160
- package/src/client/FileTree.tsx +33 -27
- package/src/client/FreeWindow.tsx +2 -2
- package/src/client/SideCardSection.tsx +5 -5
- package/src/client/Sidebar.tsx +29 -12
- package/src/client/SubagentView.tsx +3 -3
- package/src/client/TabBar.tsx +15 -6
- package/src/client/TextEditor.tsx +2 -2
- package/src/client/TreePanel.tsx +7 -6
- package/src/client/builtins/tabs.tsx +7 -7
- package/src/client/builtins/viewers.tsx +6 -6
- package/src/client/changes/DiffPane.tsx +4 -4
- package/src/client/changes/GitLens.tsx +13 -13
- package/src/client/intercept.tsx +71 -53
- package/src/client/locales-ar.ts +405 -404
- package/src/client/locales-de.ts +390 -389
- package/src/client/locales-fr.ts +397 -396
- package/src/client/locales-hi.ts +404 -403
- package/src/client/locales-id.ts +402 -401
- package/src/client/locales-it.ts +395 -394
- package/src/client/locales-ja.ts +404 -403
- package/src/client/locales-ko.ts +396 -395
- package/src/client/locales-nl.ts +402 -401
- package/src/client/locales-pl.ts +406 -405
- package/src/client/locales-pt.ts +387 -386
- package/src/client/locales-ru.ts +402 -401
- package/src/client/locales-sv.ts +387 -386
- package/src/client/locales-th.ts +404 -403
- package/src/client/locales-tr.ts +404 -403
- package/src/client/locales-vi.ts +404 -403
- package/src/client/locales-zh-HK.ts +419 -418
- package/src/client/locales-zh-MO.ts +419 -418
- package/src/client/locales-zh-TW.ts +419 -418
- package/src/client/locales.ts +10 -8
- package/src/client/md-toc.tsx +2 -2
- package/src/client/mermaid.tsx +2 -2
- package/src/client/open-with-settings.tsx +2 -2
- package/src/client/paths.ts +7 -4
- package/src/client/service.ts +6 -11
- package/src/client/session-cwd.ts +74 -0
- package/src/client/sidebar.module.css +53 -19
- package/src/client/split-pane.tsx +5 -1
- package/src/client/state.ts +130 -38
- package/src/client/tab-content-memo.ts +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Host 侧 `/sidebar/*` 由产品 Host 原生挂载(`createSidebarPublicHandler`
|
|
|
10
10
|
前置:`xrkh web` 或 `npx @xrkseek/harness-cli web`,Node ≥ 26。建议 Host **≥ 0.3.4**。推荐从 **npmjs** 安装:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
xrkh plugin add xrkh-better-sidebar@0.20.
|
|
13
|
+
xrkh plugin add xrkh-better-sidebar@0.20.5
|
|
14
14
|
xrkh restart
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -18,9 +18,34 @@ xrkh restart
|
|
|
18
18
|
|
|
19
19
|
源码路径仍可用(非推荐):`git clone git@github.com:xrkseek/xrkh-better-sidebar.git` 后 `xrkh plugin add ./xrkh-better-sidebar`。
|
|
20
20
|
|
|
21
|
+
## 0.20.5
|
|
22
|
+
|
|
23
|
+
- 适配 Host **0.6.19** 图标表面:产品图标只保留 `IconXxxRegular` / `IconXxxMedium` 权重名,旧的 `IconXxx14` / `IconXxx16` 已从 `@xrkseek/client-ui-primitives` 移除。本插件客户端全部迁到 Regular,修复启动时 Sidebar 因 `undefined` 组件白屏(`Element type is invalid … Check the render method of Sidebar`)。
|
|
24
|
+
|
|
25
|
+
## 0.20.4
|
|
26
|
+
|
|
27
|
+
- 修「文件不存在」:某些会话里点击对话中的文件路径会报 file miss(文件其实在)。根因是会话目录在
|
|
28
|
+
`working_directory` / worktree / 隔离子代理下与客户端缓存的摘要不一致,客户端拿旧目录拼出了
|
|
29
|
+
错误的绝对路径。现在客户端统一以 Host 上报的会话目录为准,并对 chat 传来的路径做重定位。
|
|
30
|
+
- 文件(editor)窗口右侧恢复**可开关的资源管理器面板**(VSCode 式):头部文件夹按钮切换显隐、
|
|
31
|
+
左缘分隔条拖拽调宽,展开/宽度按 tab 记忆(`meta.treeOpen` / `meta.treeWidth`);无路径的
|
|
32
|
+
「文件」窗口默认展开,文件窗口默认收起。
|
|
33
|
+
- 点对话里的文件链接:在右侧打开该文件的同时**自动展开它所在窗口的资源管理器并定位高亮**该文件
|
|
34
|
+
(展开祖先目录 + 滚动居中),与「在文件夹中显示」同一条 reveal 语义;打开的文件标签也会闪一下。
|
|
35
|
+
- 「在文件夹中显示」:揭示会话工作目录,并打开无路径的「文件」窗口把该目录行染色定位。
|
|
36
|
+
- 停靠资源管理器面板收尾:宽度上限与 CSS `max-width: 70%` 对齐(窄侧栏不再出现「拖不动、`aria-valuemax` 却报更宽」),
|
|
37
|
+
`aria-valuemax` 跟随实测上限;右键/中键按分隔条不再开始拖拽;拖拽中指针捕获丢失(`lostpointercapture`)会中止拖拽;
|
|
38
|
+
只点击不移动不再误写 `meta.treeWidth`。
|
|
39
|
+
- 修复「展开/收起」二次点击失效:文件夹按钮改读实时 `meta`,不再被闭包里的旧状态吞掉。
|
|
40
|
+
- 修复 reveal 高亮被 hover 抹掉:鼠标划过刚被高亮的行时底色不再消失(`.explorerRow:not(.explorerRowRevealed):hover`)。
|
|
41
|
+
- 新建文件 / 新建文件夹 / 重命名后**展开**父目录(原为切换:父目录已展开时会把它折叠起来,反而看不到新建的条目)。
|
|
42
|
+
- 文件操作失败(新建 / 重命名 / 删除)改用专门的失败提示,不再复用「无法在外部打开」文案;二进制文件预览不再
|
|
43
|
+
同时显示编辑器与下载页两条重复的失败 notice。
|
|
44
|
+
- 新增 `session-cwd` 客户端会话目录模块(统一以 Host 上报为准 + 路径重定位),补齐对应单测。
|
|
45
|
+
|
|
21
46
|
## 0.20.3
|
|
22
47
|
|
|
23
|
-
- 对话交付物 /
|
|
48
|
+
- 对话交付物 / 提及点击打开文件时:展开祖先目录、短暂高亮**打开的文件标签**(此前只开编辑器、树默认收起看不到高亮)。
|
|
24
49
|
|
|
25
50
|
## 0.20.2
|
|
26
51
|
|
package/README_EN.md
CHANGED
|
@@ -10,7 +10,7 @@ Host mounts `/sidebar/*` natively (`createSidebarPublicHandler`); this package s
|
|
|
10
10
|
Requires `xrkh web` or `npx @xrkseek/harness-cli web`, Node ≥ 26. Prefer Host **≥ 0.3.4**. Install from **npmjs**:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
xrkh plugin add xrkh-better-sidebar@0.20.
|
|
13
|
+
xrkh plugin add xrkh-better-sidebar@0.20.5
|
|
14
14
|
xrkh restart
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -18,6 +18,23 @@ Hard-refresh the browser after install (Ctrl+Shift+R).
|
|
|
18
18
|
|
|
19
19
|
Source path still works (not preferred): `git clone git@github.com:xrkseek/xrkh-better-sidebar.git` then `xrkh plugin add ./xrkh-better-sidebar`.
|
|
20
20
|
|
|
21
|
+
## 0.20.5
|
|
22
|
+
|
|
23
|
+
- Host **0.6.19** icon surface: product icons keep only weighted `IconXxxRegular` / `IconXxxMedium` names; the old `IconXxx14` / `IconXxx16` exports are gone from `@xrkseek/client-ui-primitives`. This client migrates every call site to Regular, fixing the boot white-screen where Sidebar rendered an `undefined` element (`Element type is invalid … Check the render method of Sidebar`).
|
|
24
|
+
|
|
25
|
+
## 0.20.4
|
|
26
|
+
|
|
27
|
+
- Fix "file not found": clicking a file path in chat could report a file miss for a file that exists. The session directory (a `working_directory` call, a linked worktree, an isolated subagent) had moved on the host while the client kept the stale summary, so the client spelled the absolute path against a directory the session had left. The client now takes the host's reported session cwd as authoritative and re-bases the paths chat hands it.
|
|
28
|
+
- The editor window regains a toggleable docked explorer panel (VSCode-style): a header folder button shows/hides it, the left-edge splitter drags to resize, and open/width are remembered per tab (`meta.treeOpen` / `meta.treeWidth`). The path-less "Files" window docks it open by default, file windows stay collapsed.
|
|
29
|
+
- Clicking a file link in chat opens the file on the right **and** expands that window's explorer, scrolling the row into view and flashing it — the same reveal semantics as "Show in folder". The tab the open produced flashes too.
|
|
30
|
+
- "Show in folder" reveals the session working directory and opens the path-less "Files" window with that row tinted.
|
|
31
|
+
- Docked-explorer polish: the width ceiling now matches the stylesheet's `max-width: 70%` (a narrow sidebar no longer shows a dock that will not widen while `aria-valuemax` claims more), `aria-valuemax` follows the measured ceiling, a right/middle press on the splitter no longer starts a drag, a lost pointer capture (`lostpointercapture`) aborts the drag, and a bare click no longer writes `meta.treeWidth`.
|
|
32
|
+
- Fix the docked-explorer toggle going dead on the second click: the handler reads the live `meta` instead of a stale closure.
|
|
33
|
+
- Fix a reveal tint being wiped by hover: moving the pointer across a just-highlighted row no longer drops its background (`.explorerRow:not(.explorerRowRevealed):hover`).
|
|
34
|
+
- File create / folder create / rename now **expand** the parent directory instead of toggling it (a toggle folded an already-open parent shut and hid the row it had just created).
|
|
35
|
+
- File-operation failures (create / rename / delete) get their own message instead of reusing the "cannot open externally" copy, and the binary preview no longer shows two duplicate failure notices (editor + download pane).
|
|
36
|
+
- New `session-cwd` client module (host-authoritative session directory + path rebase) with its own tests.
|
|
37
|
+
|
|
21
38
|
## 0.20.3
|
|
22
39
|
|
|
23
40
|
- Opening a file from chat deliverables / mentions expands ancestors, opens the explorer tree, and briefly highlights the row (previously only the editor opened; path tabs keep the tree closed by default).
|