xrkh-better-sidebar 0.18.23 → 0.18.26

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.
Files changed (161) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +6 -6
  3. package/README_EN.md +6 -6
  4. package/lib/client-editor.js +262 -262
  5. package/lib/client-mermaid.js +260 -260
  6. package/lib/client-registry.js +582 -522
  7. package/lib/client-terminal.js +330 -289
  8. package/lib/client.js +582 -522
  9. package/lib/index.js +1 -1
  10. package/lib/types/client/TerminalView.d.ts +7 -1
  11. package/lib/types/client/locales.d.ts +6 -6
  12. package/lib/types/client/open-when-sized.d.ts +2 -10
  13. package/lib/types/client/prefs.d.ts +7 -7
  14. package/lib/types/client/state.d.ts +3 -2
  15. package/lib/types/client/terminal-paint.d.ts +10 -0
  16. package/lib/types/prefs-shared.d.ts +1 -1
  17. package/package.json +1 -1
  18. package/scripts/install-xrkh.ps1 +15 -15
  19. package/scripts/install-xrkh.sh +12 -12
  20. package/src/agent-opens.ts +265 -265
  21. package/src/agent-pty.ts +527 -527
  22. package/src/browser-probe.ts +26 -26
  23. package/src/bundle-route.ts +129 -129
  24. package/src/client/BrowserView.tsx +298 -298
  25. package/src/client/DiffTab.tsx +115 -115
  26. package/src/client/EditorHost.tsx +563 -563
  27. package/src/client/FenceErrorNotice.tsx +40 -40
  28. package/src/client/FileTree.tsx +707 -707
  29. package/src/client/FreeWindow.tsx +337 -337
  30. package/src/client/MarkdownHtml.tsx +296 -296
  31. package/src/client/OrphanedTab.tsx +27 -27
  32. package/src/client/PdfView.tsx +110 -110
  33. package/src/client/RenderBoundary.tsx +49 -49
  34. package/src/client/SandboxStatusBar.tsx +60 -60
  35. package/src/client/SideCardSection.module.css +960 -960
  36. package/src/client/SideCardSection.tsx +1117 -1117
  37. package/src/client/Sidebar.tsx +91 -44
  38. package/src/client/SubagentView.module.css +547 -547
  39. package/src/client/SubagentView.tsx +894 -894
  40. package/src/client/TabBar.tsx +365 -365
  41. package/src/client/TerminalView.tsx +75 -2
  42. package/src/client/TextEditor.tsx +485 -485
  43. package/src/client/TreePanel.tsx +279 -279
  44. package/src/client/UploadOverlay.tsx +62 -62
  45. package/src/client/add-plugin-modal.tsx +199 -199
  46. package/src/client/api.ts +364 -364
  47. package/src/client/binary-download.tsx +23 -23
  48. package/src/client/breakpoints.ts +61 -61
  49. package/src/client/browser.ts +167 -167
  50. package/src/client/builtins/index.ts +37 -37
  51. package/src/client/builtins/tabs.tsx +346 -346
  52. package/src/client/builtins/viewers.tsx +151 -151
  53. package/src/client/changes/ChangesTab.tsx +204 -204
  54. package/src/client/changes/DiffPane.tsx +313 -313
  55. package/src/client/changes/GitLens.tsx +734 -734
  56. package/src/client/changes/SessionLens.tsx +102 -102
  57. package/src/client/changes/changes.module.css +399 -399
  58. package/src/client/changes/ops.ts +230 -230
  59. package/src/client/chunk-loader.ts +350 -350
  60. package/src/client/chunks/editor.tsx +9 -9
  61. package/src/client/chunks/mermaid.tsx +10 -10
  62. package/src/client/chunks/terminal.tsx +9 -9
  63. package/src/client/cm-themes.ts +129 -129
  64. package/src/client/conversation-draft.ts +65 -65
  65. package/src/client/css-modules.d.ts +5 -5
  66. package/src/client/desktop-env.ts +72 -72
  67. package/src/client/diff/DiffFiles.tsx +122 -122
  68. package/src/client/diff/DiffRows.tsx +271 -271
  69. package/src/client/diff/diff.module.css +86 -86
  70. package/src/client/diff/highlight.ts +383 -383
  71. package/src/client/diff/rows.ts +473 -473
  72. package/src/client/editor-load.ts +92 -92
  73. package/src/client/frame-batcher.ts +56 -56
  74. package/src/client/icons.tsx +175 -175
  75. package/src/client/image-types.ts +8 -8
  76. package/src/client/ime-guard.ts +47 -47
  77. package/src/client/index.tsx +390 -390
  78. package/src/client/intercept.tsx +172 -172
  79. package/src/client/lang.ts +225 -225
  80. package/src/client/layout-push.ts +40 -37
  81. package/src/client/layout.css +105 -101
  82. package/src/client/lazy-chunk.tsx +89 -89
  83. package/src/client/link-intercept.ts +73 -73
  84. package/src/client/locales-ar.ts +1 -1
  85. package/src/client/locales-de.ts +1 -1
  86. package/src/client/locales-fr.ts +4 -4
  87. package/src/client/locales-hi.ts +1 -1
  88. package/src/client/locales-id.ts +4 -4
  89. package/src/client/locales-it.ts +1 -1
  90. package/src/client/locales-ja.ts +1 -1
  91. package/src/client/locales-ko.ts +1 -1
  92. package/src/client/locales-nl.ts +1 -1
  93. package/src/client/locales-pl.ts +1 -1
  94. package/src/client/locales-pt.ts +4 -4
  95. package/src/client/locales-ru.ts +1 -1
  96. package/src/client/locales-sv.ts +1 -1
  97. package/src/client/locales-th.ts +1 -1
  98. package/src/client/locales-tr.ts +1 -1
  99. package/src/client/locales-vi.ts +1 -1
  100. package/src/client/locales-zh-HK.ts +2 -2
  101. package/src/client/locales-zh-MO.ts +2 -2
  102. package/src/client/locales-zh-TW.ts +2 -2
  103. package/src/client/locales.ts +25 -25
  104. package/src/client/markdown-html.ts +331 -331
  105. package/src/client/markdown-images.ts +137 -137
  106. package/src/client/markdown-labels.tsx +22 -22
  107. package/src/client/md-toc.tsx +127 -127
  108. package/src/client/mermaid-blocks.ts +110 -110
  109. package/src/client/mermaid-sanitize.ts +93 -93
  110. package/src/client/mermaid.tsx +406 -406
  111. package/src/client/open-when-sized.ts +43 -73
  112. package/src/client/open-with-settings.tsx +135 -135
  113. package/src/client/open-with.ts +221 -221
  114. package/src/client/openpath-intercept.ts +79 -79
  115. package/src/client/paths.ts +72 -72
  116. package/src/client/pdf-types.ts +4 -4
  117. package/src/client/pinned.ts +184 -184
  118. package/src/client/plugin-settings.ts +43 -43
  119. package/src/client/plugins-shared.ts +22 -22
  120. package/src/client/plugins-tabs.ts +7 -7
  121. package/src/client/plugins-viewers.ts +7 -7
  122. package/src/client/prefs.ts +219 -219
  123. package/src/client/produced-files.ts +120 -120
  124. package/src/client/selection-payload.ts +86 -86
  125. package/src/client/settings-nav-icon.ts +45 -45
  126. package/src/client/shell-presets.ts +83 -83
  127. package/src/client/sidebar.module.css +2615 -2611
  128. package/src/client/split-pane.tsx +333 -333
  129. package/src/client/state.ts +1704 -1678
  130. package/src/client/subagent-detect.ts +137 -137
  131. package/src/client/subagent-jobs.ts +203 -203
  132. package/src/client/tab-content-memo.ts +55 -55
  133. package/src/client/terminal-font.ts +224 -224
  134. package/src/client/terminal-links.ts +194 -194
  135. package/src/client/terminal-paint.ts +16 -0
  136. package/src/client/theme.ts +110 -110
  137. package/src/client/titlebar-strip.ts +52 -52
  138. package/src/client/upload.ts +187 -187
  139. package/src/client/wco.ts +120 -120
  140. package/src/config.ts +157 -157
  141. package/src/context-types.ts +577 -577
  142. package/src/fs-operations.ts +97 -97
  143. package/src/fs-search.ts +113 -113
  144. package/src/fs-tree.ts +158 -158
  145. package/src/git.ts +446 -446
  146. package/src/html-route.ts +106 -106
  147. package/src/identity.ts +13 -13
  148. package/src/index.ts +1340 -1340
  149. package/src/invariant.ts +32 -32
  150. package/src/jobs-routes.ts +257 -257
  151. package/src/open-external.ts +89 -89
  152. package/src/path-security.ts +81 -81
  153. package/src/prefs-shared.ts +313 -312
  154. package/src/pty-deps.ts +226 -226
  155. package/src/pty-manager.ts +376 -376
  156. package/src/side-label.ts +10 -10
  157. package/src/subagent-activity.ts +120 -120
  158. package/src/subagent-live-route.ts +93 -93
  159. package/src/tools.ts +482 -482
  160. package/src/trust-fence.ts +84 -84
  161. package/src/wire.ts +99 -99
package/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 xrkseek
4
- Copyright (c) 2026 dsh-external
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 xrkseek
4
+ Copyright (c) 2026 dsh-external
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
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.18.23
13
+ xrkh plugin add xrkh-better-sidebar@0.18.26
14
14
  xrkh restart
15
15
  ```
16
16
 
@@ -18,12 +18,12 @@ 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.18.23
21
+ ## 0.18.26
22
22
 
23
- - 终端 `openWhenSized`:除尺寸外还等宿主真正可见(避开底栏 `centerMeasured` 前 `visibility:hidden` 仍报非零尺寸 → xterm 空开整页空白)
24
- - 底栏 layout push(`--dsh-sidebar-height`)等到 `centerMeasured` 后再写,避免先挖洞、面板仍 hidden 时的空白任务栏
25
- - `bottomPanelAutoTerminal` 默认改为 `false`(与 Host `sidebar-prefs-store` 一致)
26
- - 展开右侧面板时把 `activePane` 钉回侧栏分栏,避免焦点仍停在底栏
23
+ - 终端:挂起唤醒后画布空白时 fit/refresh;网格仍死则 remount 并重挂 PTY;关闭 `allowTransparency` 减轻 GPU 挂起后整页空白
24
+ - Desktop:忽略塌缩的 `visualViewport` 当键盘 inset(避免布局推挤空白条与 `overflow: clip` 裁切面板)
25
+ - 偏好默认与 Host 对齐:`openByDefault` / `bottomPanelAutoTerminal` 默认关
26
+ - 布局:双写 `data-xrkh-sidebar-*` 与 `--xrkh-workbench-*`;存储键 `xrkh-sidebar:v1`(迁移旧 `dsh-sidebar:v1`)
27
27
 
28
28
  ## 0.18.21
29
29
 
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.18.23
13
+ xrkh plugin add xrkh-better-sidebar@0.18.26
14
14
  xrkh restart
15
15
  ```
16
16
 
@@ -18,12 +18,12 @@ 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.18.23
21
+ ## 0.18.26
22
22
 
23
- - Terminal `openWhenSized`: wait until the host is paint-visible, not only sized (avoids xterm opening under the bottom panel's pre-measure `visibility:hidden`, which blanked the pane)
24
- - Defer bottom layout push (`--dsh-sidebar-height`) until `centerMeasured` so the shell does not reserve an empty strip while the panel is still hidden
25
- - Default `bottomPanelAutoTerminal` to `false` (aligned with Host `sidebar-prefs-store`)
26
- - Expanding the right panel pins `activePane` back to the side split tree
23
+ - Terminal: after OS sleep/wake, fit/refresh a blank xterm canvas; remount + reattach PTY if the grid stays dead; disable `allowTransparency` to reduce GPU-sleep blanking
24
+ - Desktop: ignore collapsed `visualViewport` as a keyboard inset (stops a blank layout-push strip and panels clipped by `overflow: clip`)
25
+ - Pref defaults match Host: `openByDefault` / `bottomPanelAutoTerminal` off
26
+ - Layout: dual-write `data-xrkh-sidebar-*` and `--xrkh-workbench-*`; storage key `xrkh-sidebar:v1` (migrates legacy `dsh-sidebar:v1`)
27
27
 
28
28
  ## 0.18.21
29
29