dsh-sidebar-fold 0.1.13 → 0.1.14

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/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ ## 0.1.14
4
+
5
+ - **CI 发版通道**:新增 `.github/workflows/release.yml`,打 tag 后由 GitHub Actions 依次完成
6
+ 版本对齐、门禁、`npm pack --dry-run`、幂等检查、`npm publish`、`dsh-*` 线标签同步与
7
+ GitHub Release(带 `Latest` 徽标)。
8
+ - **`scripts/release-notes.mjs`**:Release 正文生成器,优先级
9
+ `RELEASE-NOTES-v<ver>.md` > `CHANGELOG.md` 版本节 > tag 提交信息;正文短于 80 字符或命中
10
+ 空壳标记时拒绝写入,避免发布空壳 Release。
11
+ - **README 新增 Releases 一节**:写清本地 6 步与 CI 4 步的分界、dry_run 预演方式,以及
12
+ 幂等重跑与线标签降级行为。
13
+ - 本文件为首次引入;之后每个版本在顶部新增一节,CI 从该节取 Release 正文。
14
+
15
+ ## 0.1.13
16
+
17
+ - 折叠标记落在 panelEntry 包装层,避免与宿主行级 class 冲突(issue #2)。
18
+ - 新增第 10 种 runtime 字典 `pt`(巴西葡萄牙语),locale 文件与门禁同步到 10 种。
19
+ - README.pt.md 镜像翻译,`files[]` 收录。
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 drscrewdriver
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 drscrewdriver
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -103,6 +103,38 @@ npm run hosts:check # enumeration drift vs scripts/hosts.mjs (--write to repair
103
103
 
104
104
  `prepack` runs build + verify, so a stale `lib/client.js` cannot be published.
105
105
 
106
+ ## Releases
107
+
108
+ Releases are published by CI from a pushed tag; the local side only bumps and tags:
109
+
110
+ ```sh
111
+ npm run ci # 1 the gate, run locally first
112
+ # 2 bump package.json AND dsh.plugin.json to the same number
113
+ # 3 add the new version section at the top of CHANGELOG.md
114
+ git commit -am "release(0.1.14): ..." # 4 version and changes in one commit
115
+ git tag v0.1.14 # 5 the tag points at that commit
116
+ git push origin main v0.1.14 # 6 pushing the tag is the trigger
117
+ ```
118
+
119
+ `.github/workflows/release.yml` then does the rest: version alignment (tag / package.json /
120
+ `dsh.plugin.json`), dependency install, the gate, `npm pack --dry-run`, an idempotency guard
121
+ (`npm view <pkg>@<ver>`), `npm publish`, `dsh-*` line-tag sync with read-side retry, and the
122
+ GitHub Release carrying the `Latest` badge.
123
+
124
+ Two properties worth knowing before you tag:
125
+
126
+ - **Dry run first.** `gh workflow run release.yml -f tag=vX -f dry_run=true` runs every step
127
+ except publish / line-tag sync / Release, so a broken gate is found while the version is
128
+ still unpublished.
129
+ - **Re-publishing is idempotent.** If the version already exists in the registry the job skips
130
+ the publish block and warns instead of failing, so re-dispatching the same tag is safe.
131
+ A line-tag sync failure only warns (publish has already succeeded) and the job summary
132
+ prints the local repair command.
133
+
134
+ Release notes are built by `scripts/release-notes.mjs`: `RELEASE-NOTES-v<ver>.md` > the version
135
+ section of `CHANGELOG.md` > the tag message, with a minimum body length so that an empty shell
136
+ cannot be published.
137
+
106
138
  ## Supported hosts
107
139
 
108
140
  **DSH hosts `>=0.2.1-rc.3 <0.3.0`** (the "More" row first ships in 0.2.1-rc.3; newer 0.2.x rcs stay installable without a republish). Single source of truth: `scripts/hosts.mjs` — `engines.dsh` carries that bounded range, `peerDependencies` keep the per-rc enumeration (npm resolution never assumes `includePrerelease`), and `dsh.plugin.json` mirrors the range; all generated, never hand-edited.
package/cordis.patch.yml CHANGED
@@ -1,17 +1,17 @@
1
- # dsh-sidebar-fold bundle patch
2
- #
3
- # Assembly layer for the DSH profiles whose bundle list includes this package.
4
- # A pure ADDITION: one insert row carrying an id no shipped entry uses. No
5
- # shipped row is disabled, renamed, or reconfigured here, so the patch stays
6
- # safe to compose with any other plugin's patch.
7
- #
8
- # The row exists so the loader has a host-side entry point (src/index.js, which
9
- # installs nothing) and so the bundle's settings namespace is served under this
10
- # package's name; every behaviour lives in the browser half (lib/client.js).
11
- #
12
- # Install (recommended, official CLI):
13
- # dsh plugin --profile <profile> add dsh-sidebar-fold
14
-
15
- - insert:
16
- - id: dsh-sidebar-fold
17
- name: dsh-sidebar-fold
1
+ # dsh-sidebar-fold bundle patch
2
+ #
3
+ # Assembly layer for the DSH profiles whose bundle list includes this package.
4
+ # A pure ADDITION: one insert row carrying an id no shipped entry uses. No
5
+ # shipped row is disabled, renamed, or reconfigured here, so the patch stays
6
+ # safe to compose with any other plugin's patch.
7
+ #
8
+ # The row exists so the loader has a host-side entry point (src/index.js, which
9
+ # installs nothing) and so the bundle's settings namespace is served under this
10
+ # package's name; every behaviour lives in the browser half (lib/client.js).
11
+ #
12
+ # Install (recommended, official CLI):
13
+ # dsh plugin --profile <profile> add dsh-sidebar-fold
14
+
15
+ - insert:
16
+ - id: dsh-sidebar-fold
17
+ name: dsh-sidebar-fold
package/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-external/dsh-sidebar-fold",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "main": "./src/index.js",
5
5
  "description": "折叠左侧栏加项入口:在宿主「更多」行挂一个 28×28 方形箭头按钮,把自动化任务、agent 团队、插件市场、上下文页等加项面板行收纳成一行;设置卡每行三档:显示(一直显示)/ 折叠(允许折叠)/ 隐藏到更多(移进宿主「更多」菜单,宿主 0.2.2 起)。还可调默认态与行内文字图标对齐(左/居中/右)。",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-sidebar-fold",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Folds the sidebar's add-on panel rows under the shipped \"More\" row, and from host 0.2.2 on gives every row three states — show, fold, or hide in the host's own \"More\" list. The fold state persists per window, rows are read 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",
@@ -19,6 +19,7 @@
19
19
  "cordis.patch.yml",
20
20
  "dsh.plugin.json",
21
21
  "README.md",
22
+ "CHANGELOG.md",
22
23
  "README.zh.md",
23
24
  "README.pt.md"
24
25
  ],
package/screenshots.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "screenshots": [
3
- "assets/middle.png",
4
- "assets/fold.png"
5
- ]
6
- }
1
+ {
2
+ "screenshots": [
3
+ "assets/middle.png",
4
+ "assets/fold.png"
5
+ ]
6
+ }