@huanlin/dsh-plugin-ya-workspace-sidebar 0.3.3 → 0.6.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 +48 -46
- package/lib/client.js +2851 -2357
- package/lib/client.js.map +1 -1
- package/lib/types/client/VirtualRecentList.d.ts +20 -0
- package/lib/types/client/WorkspacePicker.d.ts +26 -26
- package/lib/types/client/contract.d.ts +76 -68
- package/lib/types/client/index.d.ts +9 -5
- package/lib/types/client/locales.d.ts +113 -111
- package/lib/types/client/model.d.ts +87 -53
- package/lib/types/client/navigation.d.ts +45 -0
- package/lib/types/client/settings.d.ts +37 -20
- package/lib/types/client/styles.d.ts +4 -4
- package/lib/types/index.d.ts +3 -3
- package/package.json +65 -29
- package/lib/invariant.js +0 -10
- package/lib/types/invariant.d.ts +0 -12
package/README.md
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://dshfind.com/zh/plugins/huanlinoto/dsh-plugin-ya-workspace-sidebar"><img src="https://dshfind.com/api/card/huanlinoto/dsh-plugin-ya-workspace-sidebar?lang=zh" alt="dsh-plugin-ya-workspace-sidebar card"></a>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
# ya-workspace-sidebar
|
|
6
|
-
|
|
7
|
-
[](https://www.npmjs.com/package/@huanlin/dsh-plugin-ya-workspace-sidebar)
|
|
8
|
-
|
|
9
|
-

|
|
10
|
-
|
|
11
|
-
DSH Web
|
|
12
|
-
|
|
13
|
-
## 运行
|
|
14
|
-
|
|
15
|
-
插件采用 bundle 形式,`cordis.patch.yml` 会禁用官方 `ui-workspace` 并插入 `@huanlin/dsh-plugin-ya-workspace-sidebar
|
|
16
|
-
|
|
17
|
-
```powershell
|
|
18
|
-
# 从 npm 安装(推荐):
|
|
19
|
-
dsh plugin --profile web add @huanlin/dsh-plugin-ya-workspace-sidebar
|
|
20
|
-
|
|
21
|
-
# 本地开发(热更新):
|
|
22
|
-
dsh plugin --profile web add "link:D:/Projects/deepseek-harness/ya-workspace-sidebar"
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
修改源码后重新运行 `pnpm run build`,再重启 `dsh web` 并硬刷新浏览器。
|
|
26
|
-
|
|
27
|
-
## 开发
|
|
28
|
-
|
|
29
|
-
```powershell
|
|
30
|
-
pnpm install
|
|
31
|
-
pnpm run typecheck
|
|
32
|
-
pnpm test
|
|
33
|
-
pnpm run build
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
`dsh/` 仅作为类型和行为参考,插件不会修改 DSH checkout。浏览器产物预构建到 `lib/client.js`,因此仓库发布时必须提交 `lib/`。
|
|
37
|
-
|
|
38
|
-
## 检查
|
|
39
|
-
|
|
40
|
-
```powershell
|
|
41
|
-
pnpm run typecheck
|
|
42
|
-
pnpm test
|
|
43
|
-
pnpm run build
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
构建后确认 `lib/index.js`、`lib/
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://dshfind.com/zh/plugins/huanlinoto/dsh-plugin-ya-workspace-sidebar"><img src="https://dshfind.com/api/card/huanlinoto/dsh-plugin-ya-workspace-sidebar?lang=zh" alt="dsh-plugin-ya-workspace-sidebar card"></a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# ya-workspace-sidebar
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/@huanlin/dsh-plugin-ya-workspace-sidebar)
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
DSH Web 工作区侧栏替代插件。顶部以虚拟滚动展示全局最近会话(完整列表,不限于 5 条),与下方 Workspace → Session 二级菜单之间有一条可拖拽分隔条(也支持方向键微调、双击复位),面包屑导航与选中工作区的会话按本地日历日期分组(今天/昨天/更早);搜索、添加工作区、重命名、删除、Fork 与归档继续使用 DSH 原生 Host 能力。
|
|
12
|
+
|
|
13
|
+
## 运行
|
|
14
|
+
|
|
15
|
+
插件采用 bundle 形式,`cordis.patch.yml` 会禁用官方 `ui-workspace` 并插入 `@huanlin/dsh-plugin-ya-workspace-sidebar`。DSH v0.1.2-alpha.1 起,官方 `ui-sidebar` / `ui-conversation` / `ui-agent-preset` 及目录选择器组合包会注入 `ctx.uiWorkspace` 服务,本插件 client entry 通过 `src/client/navigation.ts` 自供该服务的替身(含复用/新建会话导航、current/recent 回退、归档清理与启动自动选择策略),否则这些条目会永久 pending 导致 WebUI 启动死锁。安装:
|
|
16
|
+
|
|
17
|
+
```powershell
|
|
18
|
+
# 从 npm 安装(推荐):
|
|
19
|
+
dsh plugin --profile web add @huanlin/dsh-plugin-ya-workspace-sidebar
|
|
20
|
+
|
|
21
|
+
# 本地开发(热更新):
|
|
22
|
+
dsh plugin --profile web add "link:D:/Projects/deepseek-harness/ya-workspace-sidebar"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
修改源码后重新运行 `pnpm run build`,再重启 `dsh web` 并硬刷新浏览器。
|
|
26
|
+
|
|
27
|
+
## 开发
|
|
28
|
+
|
|
29
|
+
```powershell
|
|
30
|
+
pnpm install
|
|
31
|
+
pnpm run typecheck
|
|
32
|
+
pnpm test
|
|
33
|
+
pnpm run build
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`dsh/` 仅作为类型和行为参考,插件不会修改 DSH checkout。浏览器产物预构建到 `lib/client.js`,因此仓库发布时必须提交 `lib/`。
|
|
37
|
+
|
|
38
|
+
## 检查
|
|
39
|
+
|
|
40
|
+
```powershell
|
|
41
|
+
pnpm run typecheck
|
|
42
|
+
pnpm test
|
|
43
|
+
pnpm run build
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
构建后确认 `lib/index.js`、`lib/client.js` 和 `lib/types/` 存在,并确认 `lib/client.js` 使用 `window.__ModuleLoader__.load()` 包装。
|
|
47
|
+
|
|
48
|
+
> 本包自 v0.1.2-rc.1 起不再发布 `./invariant` 导出:本插件贡献的均为 client-only slot 条目,无独立可分歧的观察,按新 invariant 规则省略其源码与接线。
|