@huanlin/dsh-plugin-ya-workspace-sidebar 0.1.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/LICENSE +664 -0
- package/README.md +36 -0
- package/cordis.patch.yml +9 -0
- package/lib/client.js +1142 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +7 -0
- package/lib/invariant.js +10 -0
- package/package.json +97 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# ya-workspace-sidebar
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
DSH Web 工作区侧栏替代插件。顶部固定展示 5 条全局最近会话,下方使用 Workspace → Session 二级菜单和面包屑导航;搜索、添加工作区、重命名、删除、Fork、归档与拖拽排序继续使用 DSH 原生 Host 能力。
|
|
6
|
+
|
|
7
|
+
## 运行
|
|
8
|
+
|
|
9
|
+
插件采用 bundle 形式,`cordis.patch.yml` 会禁用官方 `ui-workspace` 并插入 `@huanlin/dsh-plugin-ya-workspace-sidebar`。本地开发安装:
|
|
10
|
+
|
|
11
|
+
```powershell
|
|
12
|
+
dsh plugin --profile web add "link:D:/Projects/deepseek-harness/ya-workspace-sidebar"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
修改源码后重新运行 `pnpm run build`,再重启 `dsh web` 并硬刷新浏览器。
|
|
16
|
+
|
|
17
|
+
## 开发
|
|
18
|
+
|
|
19
|
+
```powershell
|
|
20
|
+
pnpm install
|
|
21
|
+
pnpm run typecheck
|
|
22
|
+
pnpm test
|
|
23
|
+
pnpm run build
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`dsh/` 仅作为类型和行为参考,插件不会修改 DSH checkout。浏览器产物预构建到 `lib/client.js`,因此仓库发布时必须提交 `lib/`。
|
|
27
|
+
|
|
28
|
+
## 检查
|
|
29
|
+
|
|
30
|
+
```powershell
|
|
31
|
+
pnpm run typecheck
|
|
32
|
+
pnpm test
|
|
33
|
+
pnpm run build
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
构建后确认 `lib/index.js`、`lib/invariant.js`、`lib/client.js` 和 `lib/types/` 存在,并确认 `lib/client.js` 使用 `window.__ModuleLoader__.load()` 包装。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Replace the official workspace browser. The official client package claims
|
|
2
|
+
# both sidebar.workspaces and conversation.hero.workspace, so the replacement
|
|
3
|
+
# provides both seats before taking over the browsing information architecture.
|
|
4
|
+
- id: ui-workspace
|
|
5
|
+
disabled: true
|
|
6
|
+
|
|
7
|
+
- insert:
|
|
8
|
+
- id: ya-workspace-sidebar
|
|
9
|
+
name: '@huanlin/dsh-plugin-ya-workspace-sidebar'
|