@wszhoho/dsh-file-attachment 0.2.0 → 0.2.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 +19 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,21 +30,33 @@ DeepSeek Harness (dsh) web GUI 插件:在会话输入框中**拖入或 Ctrl+V
|
|
|
30
30
|
- 时间戳/文件名清洗同时对 Windows 与 POSIX 命名规则安全
|
|
31
31
|
- Host 半直接 `node:fs/promises` 写字节,无 shell 依赖
|
|
32
32
|
|
|
33
|
-
## 安装(官方 `dsh plugin`
|
|
33
|
+
## 安装(官方 `dsh plugin` 方式)
|
|
34
34
|
|
|
35
|
-
本仓库是一个标准 dsh 插件包(声明了 `dsh.bundle.patch
|
|
35
|
+
本仓库是一个标准 dsh 插件包(声明了 `dsh.bundle.patch`),并已发布为 npm 包 `@wszhoho/dsh-file-attachment`。用官方 CLI 安装,pnpm 会自动处理依赖、并把本包加入 profile 的 `dsh.profile.bundles` 层。`dsh plugin add` 的参数会转发给 profile 目录的 pnpm 执行,三种来源任选其一:
|
|
36
|
+
|
|
37
|
+
### 从 npm 安装(普通用户推荐)
|
|
38
|
+
|
|
39
|
+
```powershell
|
|
40
|
+
dsh plugin --profile web add @wszhoho/dsh-file-attachment
|
|
41
|
+
# 重启 web GUI:dsh web(或从托盘重启)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 本地源码安装(开发用,边改边验)
|
|
36
45
|
|
|
37
46
|
```powershell
|
|
38
47
|
# 在仓库父目录执行(<parent> 换成放置仓库的实际目录,如 E:\wszhoho)
|
|
39
48
|
cd <parent>
|
|
40
49
|
dsh plugin --profile web add ./dsh-file-attachment
|
|
41
|
-
#
|
|
50
|
+
# ./dsh-file-attachment 相对路径等价 pnpm link;改完 lib/*.js 后重启 dsh web 即生效
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 从 GitHub 安装
|
|
54
|
+
|
|
55
|
+
```powershell
|
|
56
|
+
dsh plugin --profile web add github:<你的账号>/dsh-file-attachment
|
|
42
57
|
```
|
|
43
58
|
|
|
44
|
-
- `dsh
|
|
45
|
-
- 安装后自动进入 `dsh.profile.bundles`,无需手改 profile `package.json`;
|
|
46
|
-
- 改完 `lib/*.js` 后重启 `dsh web` 即生效,适合边改边验;
|
|
47
|
-
- 推送到 GitHub 后,其他人用 `dsh plugin --profile web add github:<你的账号>/dsh-file-attachment` 即可安装;
|
|
59
|
+
- 无论哪种来源,安装后都自动进入 `dsh.profile.bundles`,无需手改 profile `package.json`;
|
|
48
60
|
- 升级:`dsh plugin --profile web update dsh-file-attachment`。
|
|
49
61
|
|
|
50
62
|
## 架构
|