@banzhe/dsh-workbench 0.0.0-stage → 0.2.0
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 +50 -2
- package/README.zh-CN.md +51 -0
- package/cordis.patch.yml +10 -0
- package/lib/client.js +6778 -0
- package/lib/client.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -0
- package/package.json +125 -3
package/README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @banzhe/dsh-workbench
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The sidebar's Workspace browsing region, the Session hero's Workspace picker, and the In work region that leads the list, delivered as one Bundle that **replaces** the shipped `ui-workspace` row.
|
|
4
|
+
|
|
5
|
+
[中文版](./README.zh-CN.md)
|
|
6
|
+
|
|
7
|
+
A Web Client [DSH](https://github.com/deepseek-ai/deepseek-harness) Bundle for the **web** profile.
|
|
8
|
+
|
|
9
|
+
## What it contributes
|
|
10
|
+
|
|
11
|
+
- `sidebar.workspaces` — the whole browsing region: the In work region, section header, search, grouped/flat Session rows, the "Show more" watermark, Workspace dialogs, and the Session row's leading/trailing/hover seats.
|
|
12
|
+
- `conversation.hero.workspace` — the picker in the blank-Session hero and the New Session view.
|
|
13
|
+
- The `uiWorkspace` client service, the `useWorkspaces` / `useWorkspaceAccess` root hooks, the `workspace` locale namespace, and the navigation shortcuts (new session, session search, add workspace, rename, fork, archive).
|
|
14
|
+
- **In work** — a block above the list with two independent, collapsible groups: **Running** (every Session with live work, pinned or not) and **Unread** (finished-unread Sessions plus pinned Sessions with no running work). A Session lists once: pinned running work stays in Running, and pinned unread or idle work stays in Unread. Each group header carries its own count, and the region draws no title or total above them: an empty group renders no fold, and with both groups empty the region renders nothing. It persists nothing and refreshes nothing: opening a row goes through the workspace owner's navigation, which is what clears an unread finish, and the only write is releasing a pin. This is where the retired `@banzhe/dsh-session-attention` panel's content now lives.
|
|
15
|
+
- Its own `cordis.patch.yml` disables the shipped `ui-workspace` row and inserts this Bundle as `workbench-personal`. Exactly one row may own those slots and the `uiWorkspace` service, so the two are never active together.
|
|
16
|
+
|
|
17
|
+
Behaviour is a fork of the shipped plugin at DSH `0.2.2-rc.2`; `ui-schedule`, `ui-open-in-app`, the directory pickers, `ui-context-menu` and this workspace's other Bundles keep contributing through the same slot declarations.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
npm:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
dsh plugin --profile web add @banzhe/dsh-workbench
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Local checkout (the Bundle's `dsh.bundle` patch is what replaces the shipped row):
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
pnpm install
|
|
31
|
+
pnpm --filter @banzhe/dsh-workbench build
|
|
32
|
+
dsh plugin --profile web add link:$(pwd)/plugins/workbench
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Remove:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
dsh plugin --profile web remove @banzhe/dsh-workbench
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Rebuild after a source change and restart `dsh web`: the profile's client modules are read from `lib/`, and no client HMR watches this directory.
|
|
42
|
+
|
|
43
|
+
## Credits
|
|
44
|
+
|
|
45
|
+
The workspace browsing region and picker are forked from `@deepseek-ai/dsh-client-ui-workspace` in [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) (`packages/client/ui-workspace`), MIT, copyright DeepSeek.
|
|
46
|
+
|
|
47
|
+
The In work model is adapted from `plugins/session-attention` in this repository (MIT).
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @banzhe/dsh-workbench
|
|
2
|
+
|
|
3
|
+
侧栏工作区浏览区、会话 hero 的工作区选择器,以及列表上方的进行中区,作为一个 Bundle 交付,并**替换**官方 `ui-workspace` 行。
|
|
4
|
+
|
|
5
|
+
[English](./README.md)
|
|
6
|
+
|
|
7
|
+
适用于 **web** profile 的 Web Client [DSH](https://github.com/deepseek-ai/deepseek-harness) Bundle。
|
|
8
|
+
|
|
9
|
+
## 提供什么
|
|
10
|
+
|
|
11
|
+
- `sidebar.workspaces` —— 整个浏览区:进行中区、分区标题、搜索、分组/扁平会话行、"显示更多"水位、工作区弹窗,以及会话行的 leading/trailing/hover 座位。
|
|
12
|
+
- `conversation.hero.workspace` —— 空白会话 hero 与新会话视图里的选择器。
|
|
13
|
+
- `uiWorkspace` 客户端服务、`useWorkspaces` / `useWorkspaceAccess` 根 hooks、`workspace` locale 命名空间,以及导航快捷键(新建会话、会话搜索、添加工作区、重命名、分叉、归档)。
|
|
14
|
+
- **进行中** —— 列表上方的一块,包含两个各自可收起的组:**运行中**(所有仍在运行的会话,含置顶)与**未读**(已完成未读的会话,以及没有运行任务的置顶会话)。每个会话只出现一次:置顶且运行中的只进运行中,置顶且未读或静止的只进未读。每组标题各自显示本组计数,两组之上没有总标题也没有总数:空组不渲染折叠,两组都为空时整块不渲染。它不持久化任何状态、不发起额外刷新:点击行走工作区所有者的导航(未读标记由那里的 ui-session 清除),唯一的写入是取消置顶。已停用的 `@banzhe/dsh-session-attention` 面板内容现在在这里。
|
|
15
|
+
- 自带的 `cordis.patch.yml` 会禁用官方 `ui-workspace` 行并以 `workbench-personal` 插入本 Bundle。这些槽位与 `uiWorkspace` 服务只能有一个所有者,因此两行永不共存。
|
|
16
|
+
|
|
17
|
+
行为是 DSH `0.2.2-rc.2` 官方插件的分叉;`ui-schedule`、`ui-open-in-app`、目录选择器、`ui-context-menu` 以及本仓库其它 Bundle 仍通过相同的槽位声明继续贡献。
|
|
18
|
+
|
|
19
|
+
## 安装
|
|
20
|
+
|
|
21
|
+
npm:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
dsh plugin --profile web add @banzhe/dsh-workbench
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
本地 checkout(替换官方行靠本 Bundle 的 `dsh.bundle` patch):
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
pnpm install
|
|
31
|
+
pnpm --filter @banzhe/dsh-workbench build
|
|
32
|
+
dsh plugin --profile web add link:$(pwd)/plugins/workbench
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
移除:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
dsh plugin --profile web remove @banzhe/dsh-workbench
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
改动源码后需重新构建并重启 `dsh web`:profile 的客户端模块从 `lib/` 读取,且没有客户端 HMR 监视该目录。
|
|
42
|
+
|
|
43
|
+
## 致谢
|
|
44
|
+
|
|
45
|
+
工作区浏览区与选择器分叉自 [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) 的 `@deepseek-ai/dsh-client-ui-workspace`(`packages/client/ui-workspace`),MIT,版权归 DeepSeek。
|
|
46
|
+
|
|
47
|
+
进行中模型改编自本仓库的 `plugins/session-attention`(MIT)。
|
|
48
|
+
|
|
49
|
+
## 许可
|
|
50
|
+
|
|
51
|
+
MIT
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Full replacement, not a shadow: the shipped ui-workspace row owns the
|
|
2
|
+
# `uiWorkspace` service and both `sidebar.workspaces` / `conversation.hero.workspace`
|
|
3
|
+
# slot declarations, so exactly one of the two rows may be active. This layer is
|
|
4
|
+
# applied after the web-app bundle that declares `ui-workspace`.
|
|
5
|
+
- id: ui-workspace
|
|
6
|
+
disabled: true
|
|
7
|
+
|
|
8
|
+
- insert:
|
|
9
|
+
- id: workbench-personal
|
|
10
|
+
name: '@banzhe/dsh-workbench'
|