dsh-sidebar-fold 0.1.0 → 0.1.1
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 +25 -6
- package/README.zh.md +22 -5
- package/dsh.plugin.json +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# dsh-sidebar-fold
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-sidebar-fold)
|
|
4
|
+
[](https://github.com/drscrewdriver/dsh-sidebar-fold/blob/main/LICENSE)
|
|
5
|
+
|
|
3
6
|
Collapse the DSH sidebar's add-on entries into the shipped **“More”** row.
|
|
4
7
|
|
|
5
8
|
The left column's *Global panels* list grows with every installed plugin: schedules,
|
|
@@ -38,7 +41,7 @@ dsh plugin --profile <profile> add dsh-sidebar-fold
|
|
|
38
41
|
# local build
|
|
39
42
|
npm run build && npm run verify
|
|
40
43
|
npm pack --pack-destination .
|
|
41
|
-
dsh plugin --profile <profile> add ./dsh-sidebar-fold-0.1.
|
|
44
|
+
dsh plugin --profile <profile> add ./dsh-sidebar-fold-0.1.1.tgz
|
|
42
45
|
```
|
|
43
46
|
|
|
44
47
|
Then add `dsh-sidebar-fold` to the profile's `dsh.profile.bundles` list (or
|
|
@@ -76,12 +79,28 @@ npm run hosts:check # enumeration drift vs scripts/hosts.mjs (--write to repair
|
|
|
76
79
|
|
|
77
80
|
## Supported hosts
|
|
78
81
|
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
**DSH 0.2.1-rc.3 only.** Single source of truth: `scripts/hosts.mjs` (the three
|
|
83
|
+
declarations — `engines.dsh`, `peerDependencies`, `dsh.plugin.json` — are generated
|
|
84
|
+
from it and must not be edited by hand).
|
|
85
|
+
|
|
86
|
+
Why not wider: mounting needs the sidebar's panel list **and** the shipped "More"
|
|
87
|
+
row. Measured on every published `dsh-client-ui-sidebar` rc:
|
|
81
88
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
89
|
+
| host line | panel list | "More" row |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| 0.1.0-rc.8 / 0.1.1-rc.2 / 0.1.2-rc.1 | no | no |
|
|
92
|
+
| 0.1.5-rc.3 / 0.1.7-rc.2 / 0.2.0-rc.2 | yes | no |
|
|
93
|
+
| 0.2.1-rc.1 / 0.2.1-rc.2 | yes | no |
|
|
94
|
+
| **0.2.1-rc.3** | yes | **yes** |
|
|
95
|
+
|
|
96
|
+
On a line without the More row the plugin degrades quietly — it injects nothing and
|
|
97
|
+
leaves the sidebar as shipped. Declaring such a host would only install a plugin
|
|
98
|
+
that does nothing.
|
|
99
|
+
|
|
100
|
+
After a host upgrade, re-run the browser smoke test before widening this list:
|
|
101
|
+
CSS-module hashes drift every build (rc.2 emitted `wtg9ga_`, rc.3 emits `hHd-Xa_`),
|
|
102
|
+
so only the fragment selectors (`_panelList`, `_panelRow`, `_moreAnchor`,
|
|
103
|
+
`_collapsed`) are stable.
|
|
85
104
|
|
|
86
105
|
## Upgrade guardrail
|
|
87
106
|
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# dsh-sidebar-fold
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-sidebar-fold)
|
|
4
|
+
[](https://github.com/drscrewdriver/dsh-sidebar-fold/blob/main/LICENSE)
|
|
5
|
+
|
|
3
6
|
把 DSH 左侧栏的「加项入口」收进宿主的 **「更多」行**。
|
|
4
7
|
|
|
5
8
|
左侧栏的「全局面板」列表会随安装变长:自动化任务、agent 团队、插件市场、上下文页……
|
|
@@ -29,7 +32,7 @@ dsh plugin --profile <profile> add dsh-sidebar-fold
|
|
|
29
32
|
# 本地构建
|
|
30
33
|
npm run build && npm run verify
|
|
31
34
|
npm pack --pack-destination .
|
|
32
|
-
dsh plugin --profile <profile> add ./dsh-sidebar-fold-0.1.
|
|
35
|
+
dsh plugin --profile <profile> add ./dsh-sidebar-fold-0.1.1.tgz
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
装完把 `dsh-sidebar-fold` 补进 profile 的 `dsh.profile.bundles`(或在应用内启用该
|
|
@@ -64,11 +67,25 @@ npm run hosts:check # 与 scripts/hosts.mjs 的枚举漂移检查(--write 修
|
|
|
64
67
|
|
|
65
68
|
## 支持宿主
|
|
66
69
|
|
|
67
|
-
|
|
68
|
-
`
|
|
70
|
+
**仅 DSH 0.2.1-rc.3。** 唯一事实源 `scripts/hosts.mjs`(三处声明 —— `engines.dsh`、
|
|
71
|
+
`peerDependencies`、`dsh.plugin.json` —— 都由它生成,禁止手改)。
|
|
72
|
+
|
|
73
|
+
为什么不放宽:挂载同时需要侧边栏的**面板列表**与宿主**「更多」行**。逐版本实测
|
|
74
|
+
所有已发布的 `dsh-client-ui-sidebar` rc:
|
|
75
|
+
|
|
76
|
+
| 宿主线 | 面板列表 | 「更多」行 |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| 0.1.0-rc.8 / 0.1.1-rc.2 / 0.1.2-rc.1 | 无 | 无 |
|
|
79
|
+
| 0.1.5-rc.3 / 0.1.7-rc.2 / 0.2.0-rc.2 | 有 | 无 |
|
|
80
|
+
| 0.2.1-rc.1 / 0.2.1-rc.2 | 有 | 无 |
|
|
81
|
+
| **0.2.1-rc.3** | 有 | **有** |
|
|
82
|
+
|
|
83
|
+
没有「更多」行的宿主上,插件按设计静默降级——不注入、不改坏侧边栏;声明这类宿主
|
|
84
|
+
只会让用户装上一个什么都不做的插件。
|
|
69
85
|
|
|
70
|
-
|
|
71
|
-
|
|
86
|
+
宿主换代后先跑浏览器冒烟再扩表:CSS-module hash 每次构建都漂移(rc.2 是
|
|
87
|
+
`wtg9ga_`,rc.3 是 `hHd-Xa_`),只有片段选择器(`_panelList`、`_panelRow`、
|
|
88
|
+
`_moreAnchor`、`_collapsed`)是稳的。
|
|
72
89
|
|
|
73
90
|
## 升级护栏
|
|
74
91
|
|
package/dsh.plugin.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-sidebar-fold",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"description": "折叠左侧栏加项入口:在宿主「更多」行挂一个 28×28 方形箭头按钮,把自动化任务、agent 团队、插件市场、上下文页等加项面板行收纳成一行,再点展开;折叠状态按窗口持久化。插件设置页可调默认态、保持可见的入口行(按当前侧边栏实时枚举),以及被管理行的文字与图标对齐(左/居中/右)。",
|
|
6
6
|
"engines": {
|
|
7
|
-
"dsh": "0.
|
|
7
|
+
"dsh": "0.2.1-rc.3"
|
|
8
8
|
},
|
|
9
9
|
"contributes": {
|
|
10
10
|
"tools": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-sidebar-fold",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Folds the sidebar's add-on panel rows (schedules, agent teams, plugin market, context pages, …) under the shipped \"More\" row: a 28×28 square toggle collapses them to that single header line and expands them back. The fold state persists per window, kept-visible rows are picked from the live sidebar, and the managed rows' icon + label can be aligned left, centre or right.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=22.6.0",
|
|
54
|
-
"dsh": "0.
|
|
54
|
+
"dsh": "0.2.1-rc.3"
|
|
55
55
|
},
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"repository": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@deepseek-ai/schemastery": "^3.18.4"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"typescript": "^5.6.0"
|