dsh-better-workplace 1.4.2 → 1.4.3

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.4.3
4
+
5
+ - 包已发布到 npm:`npm view dsh-better-workplace version` 可查到;`dsh plugin add dsh-better-workplace`、DSH 面板里的「添加插件」输入裸包名都能直接装,不再需要 `github:` 前缀。
6
+ - 两条 README 的安装章节改为「npm 包名优先」,GitHub 地址与 Release 压缩包降为备选路径。
7
+ - 新增 npm 版本徽章。
8
+
3
9
  ## 1.4.2
4
10
 
5
11
  - 新增发布流水线:推送 `v*` 标签后,GitHub Actions 会核对语法、打出 `dsh-better-workplace-<版本>.tgz` 与源码 `zip`、生成 `SHA256SUMS`,并创建 Release。配置 `NPM_TOKEN` 后同一条流水线还会发布到 npm。
package/README.en.md CHANGED
@@ -8,6 +8,7 @@
8
8
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
9
9
  [![node](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](package.json)
10
10
  [![release](https://img.shields.io/github/v/release/Alail691/dsh-better-workplace)](https://github.com/Alail691/dsh-better-workplace/releases)
11
+ [![npm](https://img.shields.io/npm/v/dsh-better-workplace.svg)](https://www.npmjs.com/package/dsh-better-workplace)
11
12
 
12
13
  ![Workspace layout: a cluttered root before, one timestamped folder per conversation after](assets/en/overview.png)
13
14
 
@@ -110,35 +111,44 @@ after once the first message lands.
110
111
 
111
112
  ## Installation
112
113
 
113
- This is a standard DSH plugin package (`package.json` declares `dsh.bundle.patch`). Pick whichever of the three routes you prefer.
114
+ This is a standard DSH plugin bundle (its `package.json` declares `dsh.bundle.patch`), and it is published on npm. Pick whichever route suits you.
114
115
 
115
116
  ### 1. From the DSH panel (least work)
116
117
 
117
- 1. Open the plugins panel in the sidebar, then **Add plugin**.
118
- 2. Paste the **repository address** — a repository, not a bare package name:
118
+ 1. Open the plugin panel in the sidebar and pick **Add plugin**
119
+ 2. Enter the package name:
119
120
 
120
121
  ```
121
- github:Alail691/dsh-better-workplace
122
+ dsh-better-workplace
122
123
  ```
123
124
 
124
- `https://github.com/Alail691/dsh-better-workplace` works too.
125
- 3. Confirm. DSH clones the repository and registers the plugin in the active profile.
125
+ 3. Confirm, and DSH installs the bundle into the current profile and enables it.
126
126
 
127
- Typing just `dsh-better-workplace` answers "plugin not found": that is an npm package name, and this project lives on GitHub only — it is not published to npm.
127
+ If this profile cannot install npm packages (see "Make sure the profile can install anything at all" below), paste the GitHub address instead — the result is the same:
128
+
129
+ ```
130
+ github:Alail691/dsh-better-workplace
131
+ ```
128
132
 
129
133
  ### 2. From the command line
130
134
 
131
135
  ```bash
132
- dsh plugin --profile web add github:Alail691/dsh-better-workplace
136
+ dsh plugin --profile web add dsh-better-workplace
133
137
  ```
134
138
 
135
- Everything after `add` is handed to pnpm unchanged, so a repository address, an `https://` link, a local directory, or a `.tgz` all work:
139
+ Everything after `add` is handed straight to pnpm, so these all work:
136
140
 
137
141
  ```bash
138
- # From the .tgz attached to a release (no git required; replace <version> with the file name on the release page)
142
+ # pin a version
143
+ dsh plugin --profile web add dsh-better-workplace@1.4.3
144
+
145
+ # straight from the repository
146
+ dsh plugin --profile web add github:Alail691/dsh-better-workplace
147
+
148
+ # from the tarball attached to a release (no git needed; replace <version> with the real file name)
139
149
  dsh plugin --profile web add https://github.com/Alail691/dsh-better-workplace/releases/latest/download/dsh-better-workplace-<version>.tgz
140
150
 
141
- # From a local checkout
151
+ # from a local checkout
142
152
  dsh plugin --profile web add /path/to/dsh-better-workplace
143
153
  ```
144
154
 
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
4
  [![node](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](package.json)
5
5
  [![release](https://img.shields.io/github/v/release/Alail691/dsh-better-workplace)](https://github.com/Alail691/dsh-better-workplace/releases)
6
+ [![npm](https://img.shields.io/npm/v/dsh-better-workplace.svg)](https://www.npmjs.com/package/dsh-better-workplace)
6
7
 
7
8
  > 给 DeepSeek Harness(DSH)的每个对话一个独立工作目录。
8
9
  > 每个对话都有自己的分类文件夹,工作区根目录不再是杂物堆。
@@ -78,31 +79,40 @@ hover 卡片自带的那行是相对距离(「3 分钟前」),它由客户
78
79
 
79
80
  ## 安装
80
81
 
81
- 这是一个标准 DSH 插件包(`package.json` 里声明了 `dsh.bundle.patch`),三种装法,任选其一。
82
+ 这是一个标准 DSH 插件包(`package.json` 里声明了 `dsh.bundle.patch`),并且已经发布到 npm。四种装法,任选其一。
82
83
 
83
84
  ### 一、在 DSH 界面里装(最省事)
84
85
 
85
86
  1. 打开侧栏的插件面板 →「添加插件」
86
- 2. 粘贴 **GitHub 地址**,注意是仓库地址而不是包名:
87
+ 2. 输入包名:
87
88
 
88
89
  ```
89
- github:Alail691/dsh-better-workplace
90
+ dsh-better-workplace
90
91
  ```
91
92
 
92
- `https://github.com/Alail691/dsh-better-workplace` 也可以。
93
- 3. 确认安装,DSH 会克隆仓库并把插件登记进当前 profile。
93
+ 3. 确认安装,DSH 会把包装进当前 profile 并启用。
94
94
 
95
- 只输入 `dsh-better-workplace` 会提示「未找到插件」——那是 npm 包名,本项目目前只在 GitHub 上,没有发布到 npm。
95
+ 如果这台机器的 profile 装不了 npm 包(见下面「安装前先确认 profile 能装包」),就把输入框里的内容换成 GitHub 地址,效果一样:
96
+
97
+ ```
98
+ github:Alail691/dsh-better-workplace
99
+ ```
96
100
 
97
101
  ### 二、用命令行装
98
102
 
99
103
  ```bash
100
- dsh plugin --profile web add github:Alail691/dsh-better-workplace
104
+ dsh plugin --profile web add dsh-better-workplace
101
105
  ```
102
106
 
103
- `add` 之后的参数会原样交给 pnpm,所以仓库地址、`https://` 链接、本地目录、`.tgz` 文件都能用:
107
+ `add` 之后的参数会原样交给 pnpm,所以下面几种写法都成立:
104
108
 
105
109
  ```bash
110
+ # 指定版本
111
+ dsh plugin --profile web add dsh-better-workplace@1.4.3
112
+
113
+ # 直接从 GitHub 仓库装
114
+ dsh plugin --profile web add github:Alail691/dsh-better-workplace
115
+
106
116
  # 从 Release 里的 tgz 安装(不需要 git,把 <版本> 换成 Release 页面上的实际文件名)
107
117
  dsh plugin --profile web add https://github.com/Alail691/dsh-better-workplace/releases/latest/download/dsh-better-workplace-<版本>.tgz
108
118
 
@@ -112,6 +122,7 @@ dsh plugin --profile web add /path/to/dsh-better-workplace
112
122
 
113
123
  ### 三、手工挂载(完全离线,改动最少)
114
124
 
125
+
115
126
  ```bash
116
127
  git clone https://github.com/Alail691/dsh-better-workplace.git
117
128
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-better-workplace",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Per-session workspace subdirectories for DSH: folders appear at the first message, are named YYYYMMDDHHmmss, carry docs/src/data/assets/tmp category subfolders, and unused drafts leave nothing behind.",
5
5
  "type": "module",
6
6
  "main": "index.js",