dsh-up-session 1.0.0 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # 更新日志
2
2
 
3
+ ## 1.0.1 - 2026-10-24
4
+
5
+ ### 修复
6
+
7
+ - 兼容 DSH 0.2.1-rc.3
8
+
3
9
  ## 1.0.0 - 2026-10-22
4
10
 
5
11
  ### 新增
package/README.en.md CHANGED
@@ -15,7 +15,7 @@ A simple DeepSeek Harness sidebar plugin: it inserts two sections, "Pinned" and
15
15
 
16
16
  ## Installation and compatibility
17
17
 
18
- Currently supports DSH `0.2.1-rc.2`.
18
+ The DSH compatibility range is `>=0.2.1-rc.3`, allowing RC.3 and later versions to install; functionality still needs to be verified against the DSH version in use.
19
19
 
20
20
  **Web**
21
21
 
@@ -65,6 +65,20 @@ Rows in both sections read the same live status as the sidebar's own session row
65
65
 
66
66
  The marker sits at the left of the title and appears only when there is something to report, so an idle row keeps its original left edge; the archive and pin buttons still appear on hover where they always did.
67
67
 
68
+ ## Publishing
69
+
70
+ Publishing a GitHub Release triggers the [publishing workflow](./.github/workflows/publish.yml), which publishes the package at that tag to npm. The tag must match the version in `package.json`, for example `v1.0.1` or `1.0.1`. Stable versions use the npm `latest` tag; prerelease versions use `next` and must also be marked as prereleases on GitHub. Saving a draft or pushing a tag alone does not trigger publishing.
71
+
72
+ Before the first automated release, add a GitHub Actions trusted publisher in the npm settings for `dsh-up-session` ([official npm instructions](https://docs.npmjs.com/trusted-publishers/)):
73
+
74
+ - Organization or user: `kyrsieger`
75
+ - Repository: `dsh-up-session`
76
+ - Workflow filename: `publish.yml`
77
+ - Environment name: leave blank
78
+ - Allowed actions: allow direct publishing with `npm publish`
79
+
80
+ The workflow authenticates through OIDC, so no `NPM_TOKEN` is needed. Commit and push the workflow, version number, and changelog first, then create a tag for that commit and publish its Release. If publishing fails, rerun the failed job in GitHub Actions; npm versions that have already been published successfully cannot be published again.
81
+
68
82
  ## License
69
83
 
70
84
  This project is licensed under the [MIT License](./LICENSE).
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  ## 安装与兼容
17
17
 
18
- 当前支持 DSH `0.2.1-rc.2` 版本。
18
+ DSH 兼容版本声明为 `>=0.2.1-rc.3`,允许 RC.3 及后续版本安装;具体功能仍需与所用 DSH 版本验证。
19
19
 
20
20
  **Web 端**
21
21
 
@@ -65,6 +65,20 @@ dsh plugin --profile web add dsh-up-session
65
65
 
66
66
  状态标记插在标题左侧,只在需要提示时才出现,空闲的行保持原本的左边缘;归档、置顶等操作按钮在悬停时出现的位置不受影响。
67
67
 
68
+ ## 发布
69
+
70
+ 发布 GitHub Release 后,[发布工作流](./.github/workflows/publish.yml) 会自动将该 tag 对应的包发布到 npm。tag 必须与 `package.json` 的版本一致,例如 `v1.0.1` 或 `1.0.1`。正式版使用 npm 的 `latest` 标签;预发布版使用 `next`,且 GitHub Release 必须标记为预发布。仅保存草稿或推送 tag 不会触发发布。
71
+
72
+ 首次使用前,在 npm 的 `dsh-up-session` 包设置中添加 GitHub Actions 可信发布者([npm 官方说明](https://docs.npmjs.com/trusted-publishers/)):
73
+
74
+ - Organization or user:`kyrsieger`
75
+ - Repository:`dsh-up-session`
76
+ - Workflow filename:`publish.yml`
77
+ - Environment name:留空
78
+ - Allowed actions:允许直接执行 `npm publish`
79
+
80
+ 工作流使用 OIDC 认证,无需配置 `NPM_TOKEN`。先将工作流、版本号和更新日志提交并推送,再为该提交创建 tag 和发布 Release。发布失败时,可在 GitHub Actions 中重跑失败的任务;已成功发布的 npm 版本不能重复发布。
81
+
68
82
  ## 许可
69
83
 
70
84
  本项目基于 [MIT 许可证](./LICENSE) 授权。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-up-session",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "description": "Adds pinned and recent session sections above the workspace list in the DSH sidebar, with a small settings popup.",
6
6
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  "CHANGELOG.md"
43
43
  ],
44
44
  "engines": {
45
- "dsh": "0.2.1-rc.2"
45
+ "dsh": ">=0.2.1-rc.3"
46
46
  },
47
47
  "dsh": {
48
48
  "bundle": {