xrkh-better-sidebar 0.18.0 → 0.18.2
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 +8 -16
- package/README_EN.md +9 -17
- package/lib/client-editor.js +188 -175
- package/lib/client-mermaid.js +189 -176
- package/lib/client-registry.js +2561 -2584
- package/lib/client-terminal.js +187 -174
- package/lib/client.js +2560 -2583
- package/lib/index.js +1 -1
- package/lib/types/client/builtins/viewers.d.ts +1 -1
- package/lib/types/client/locales.d.ts +4 -0
- package/lib/types/client/media-previews.d.ts +15 -0
- package/lib/types/client/service.d.ts +1 -1
- package/lib/types/client/state.d.ts +6 -0
- package/lib/types/subagent-activity.d.ts +10 -0
- package/package.json +12 -12
- package/src/client/FreeWindow.tsx +2 -2
- package/src/client/SideCardSection.tsx +6 -47
- package/src/client/SubagentView.tsx +11 -4
- package/src/client/TabBar.tsx +3 -3
- package/src/client/builtins/viewers.tsx +51 -25
- package/src/client/locales.ts +8 -0
- package/src/client/media-previews.tsx +113 -0
- package/src/client/service.ts +1 -1
- package/src/client/sidebar.module.css +51 -0
- package/src/client/state.ts +25 -2
- package/src/prefs-shared.ts +1 -1
- package/src/subagent-activity.ts +29 -0
package/README.md
CHANGED
|
@@ -3,33 +3,25 @@
|
|
|
3
3
|
> **读者**:XRK-Harness 终端用户 · 集成者
|
|
4
4
|
|
|
5
5
|
XRK-Harness(`xrkh`)标准侧边栏插件:资源管理器 · 编辑器 · 终端 · Git · 浏览器等工作台,按会话隔离。
|
|
6
|
-
Host 侧 `/sidebar/*`
|
|
6
|
+
Host 侧 `/sidebar/*` 由产品 Host 原生挂载(`createSidebarPublicHandler`);本包提供 **client 半包**。
|
|
7
7
|
|
|
8
8
|
## 安装
|
|
9
9
|
|
|
10
|
-
前置:`xrkh web` 或 `npx @xrkseek/harness-cli web`,Node ≥ 26
|
|
10
|
+
前置:`xrkh web` 或 `npx @xrkseek/harness-cli web`,Node ≥ 26。建议 Host **≥ 0.2.3**。推荐从 **npmjs** 安装:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
xrkh plugin add xrkh-better-sidebar@0.18.
|
|
13
|
+
xrkh plugin add xrkh-better-sidebar@0.18.1
|
|
14
14
|
xrkh restart
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
git clone git@github.com:xrkseek/xrkh-better-sidebar.git
|
|
21
|
-
xrkh plugin add ./xrkh-better-sidebar
|
|
22
|
-
xrkh restart
|
|
23
|
-
```
|
|
17
|
+
装完硬刷新浏览器(Ctrl+Shift+R)。
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
源码路径仍可用(非推荐):`git clone git@github.com:xrkseek/xrkh-better-sidebar.git` 后 `xrkh plugin add ./xrkh-better-sidebar`。
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
$env:XRK_PLUGINS_DIR = "./extensions"
|
|
29
|
-
pnpm xrk web --workspace .
|
|
30
|
-
```
|
|
21
|
+
## 0.18.1
|
|
31
22
|
|
|
32
|
-
|
|
23
|
+
- `subagents.live`:兼容嵌套 `tool` 与旧版扁平 `tool` wire,避免子代理活动预览崩溃
|
|
24
|
+
- 与 Host **0.2.3** 原生 `/sidebar/*`(嵌套 live 形状)对齐
|
|
33
25
|
|
|
34
26
|
## 0.18.0
|
|
35
27
|
|
package/README_EN.md
CHANGED
|
@@ -3,33 +3,25 @@
|
|
|
3
3
|
> **Audience**: XRK-Harness end users · integrators
|
|
4
4
|
|
|
5
5
|
Standard sidebar plugin for XRK-Harness (`xrkh`): explorer · editor · terminal · git · browser, isolated per session.
|
|
6
|
-
Host
|
|
6
|
+
Host mounts `/sidebar/*` natively (`createSidebarPublicHandler`); this package ships the **client** half.
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
|
-
Requires `xrkh web` or `npx @xrkseek/harness-cli web`, Node ≥ 26.
|
|
10
|
+
Requires `xrkh web` or `npx @xrkseek/harness-cli web`, Node ≥ 26. Prefer Host **≥ 0.2.3**. Install from **npmjs**:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
xrkh plugin add xrkh-better-sidebar@0.18.
|
|
13
|
+
xrkh plugin add xrkh-better-sidebar@0.18.1
|
|
14
14
|
xrkh restart
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
git clone git@github.com:xrkseek/xrkh-better-sidebar.git
|
|
21
|
-
xrkh plugin add ./xrkh-better-sidebar
|
|
22
|
-
xrkh restart
|
|
23
|
-
```
|
|
17
|
+
Hard-refresh the browser after install (Ctrl+Shift+R).
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
Source path still works (not preferred): `git clone git@github.com:xrkseek/xrkh-better-sidebar.git` then `xrkh plugin add ./xrkh-better-sidebar`.
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
$env:XRK_PLUGINS_DIR = "./extensions"
|
|
29
|
-
pnpm xrk web --workspace .
|
|
30
|
-
```
|
|
21
|
+
## 0.18.1
|
|
31
22
|
|
|
32
|
-
|
|
23
|
+
- `subagents.live`: accept nested `tool` and legacy flat `tool` wire so subagent activity previews do not crash
|
|
24
|
+
- Align with Host **0.2.3** native `/sidebar/*` (nested live shape)
|
|
33
25
|
|
|
34
26
|
## 0.18.0
|
|
35
27
|
|
|
@@ -46,7 +38,7 @@ Hard-refresh the browser after install (Ctrl+Shift+R).
|
|
|
46
38
|
| Repo | `xrkseek/xrkh-better-sidebar` |
|
|
47
39
|
| Manifest | `package.json` → `xrk.client` (client half) |
|
|
48
40
|
| Inject | `@xrkseek/client-*` (runtime, locale, slots, conversation, modules) |
|
|
49
|
-
| Host |
|
|
41
|
+
| Host | Native Host: `/sidebar/api` · `/sidebar/bundle` · PTY |
|
|
50
42
|
|
|
51
43
|
## Develop
|
|
52
44
|
|