dsh-dl-server 0.4.0 → 0.4.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 +15 -5
- package/README.zh.md +15 -5
- package/lib/queue.js +893 -892
- package/lib/transport.js +44 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,23 +17,32 @@ A persistent download queue for DeepSeek Harness.
|
|
|
17
17
|
Settings → Plugins → Install a third-party plugin → Add plugin
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Type **`dsh-dl-server@0.
|
|
20
|
+
Type **`dsh-dl-server@0.4.0`**, confirm, then **restart DSH once**.
|
|
21
21
|
|
|
22
22
|
### From the command line
|
|
23
23
|
|
|
24
24
|
```sh
|
|
25
|
-
dsh plugin add dsh-dl-server@0.
|
|
25
|
+
dsh plugin add dsh-dl-server@0.4.0
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
> **Pin the version.** `0.1.0` declared `@deepseek-ai/dsh-storage-domain` as a regular dependency, so pnpm installed a second copy inside the plugin; the injected service then no longer matched the host and the plugin never mounted (every service stayed `pending`). `0.1.1` moves it to `peerDependencies`.
|
|
29
29
|
>
|
|
30
|
-
> pnpm also caches registry metadata — without an explicit version you may still resolve
|
|
30
|
+
> pnpm also caches registry metadata — without an explicit version you may still resolve an older release.
|
|
31
31
|
|
|
32
32
|
> `dsh` must be on your PATH. The desktop build ships one at
|
|
33
33
|
> `…\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd`; if you have never added it, use the UI path.
|
|
34
34
|
|
|
35
35
|
**Requires DSH 0.2.1-rc.5 or newer.**
|
|
36
|
-
**aria2 is optional** — install it for 16-way segmented downloading
|
|
36
|
+
**aria2 is optional but strongly recommended** — install it for 16-way segmented downloading. Without it the plugin falls back to a single-stream transfer: same features, roughly a tenth of the speed. The plugin warns at startup and reports the reason through `download_status`, so a slow first install is not a mystery.
|
|
37
|
+
|
|
38
|
+
| Platform | Install aria2 |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| Windows | `winget install aria2.aria2` |
|
|
41
|
+
| Ubuntu / Debian | `sudo apt install aria2` |
|
|
42
|
+
| Fedora | `sudo dnf install aria2` |
|
|
43
|
+
| Arch | `sudo pacman -S aria2` |
|
|
44
|
+
| macOS | `brew install aria2` |
|
|
45
|
+
|
|
37
46
|
|
|
38
47
|
---
|
|
39
48
|
|
|
@@ -136,7 +145,7 @@ The last row is the point: **on a per-connection-throttled host, segmentation be
|
|
|
136
145
|
- **Ownership is per session.** Any session on the machine can *see* every job; only the owner can mutate one.
|
|
137
146
|
- **`cleanup(scope="all")` deletes files.** The default `allWithoutFiles` only drops records.
|
|
138
147
|
- **Checkpoints live in DSH storage**, not as lock files dropped into your home directory — the plugin does not depend on `TMPDIR` or the working directory.
|
|
139
|
-
- **When aria2 is unavailable** the transport degrades to a single Node stream. No features lost, some speed lost.
|
|
148
|
+
- **When aria2 is unavailable** the transport degrades to a single Node stream. No features lost, some speed lost — and the plugin says so instead of staying quiet, because a silent 10× slowdown looks like a bug.
|
|
140
149
|
|
|
141
150
|
---
|
|
142
151
|
|
|
@@ -156,6 +165,7 @@ The roadmap names product stages (`v1`, `v1.1`, `v1.2`, `v1.3`, `v2`); npm versi
|
|
|
156
165
|
| `0.2.x` | v1.1 | mirrors / mirror cooldown / size-aware concurrency / session fairness / disk budget / loud failures | released |
|
|
157
166
|
| `0.3.x` | v1.2 | queue de-duplication / mirror self-verification | released |
|
|
158
167
|
| `0.4.x` | v1.3 | custom request headers (`Referer` / `Cookie` / `User-Agent`) on every attempt, validated at enqueue, redacted in output | released |
|
|
168
|
+
| `0.4.1` | patch | missing aria2 is now a loud, actionable warning instead of a silent speed cliff; `download_status` reports the channel | released |
|
|
159
169
|
| `1.0.0` | v2 | shell interception / torrents / own segmented engine / content addressing | planned |
|
|
160
170
|
| `1.1.x` | v3 | user panel + callbacks into the agent | planned |
|
|
161
171
|
|
package/README.zh.md
CHANGED
|
@@ -17,23 +17,32 @@
|
|
|
17
17
|
设置 → 插件 → 安装第三方插件 → 添加插件
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
输入框里填 **`dsh-dl-server@0.
|
|
20
|
+
输入框里填 **`dsh-dl-server@0.4.0`**,确认,然后**重启一次 DSH**。
|
|
21
21
|
|
|
22
22
|
### 方式二:命令行
|
|
23
23
|
|
|
24
24
|
```sh
|
|
25
|
-
dsh plugin add dsh-dl-server@0.
|
|
25
|
+
dsh plugin add dsh-dl-server@0.4.0
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
>
|
|
28
|
+
> **带上版本号。** `0.1.0` 把 `@deepseek-ai/dsh-storage-domain` 声明成了普通依赖,pnpm 会给插件装第二份,服务和宿主对不上、插件挂不住(全部 `pending`)。0.1.1 改成 `peerDependencies` 已修复。
|
|
29
29
|
>
|
|
30
|
-
> 另外 pnpm 会缓存 registry 元数据 ——
|
|
30
|
+
> 另外 pnpm 会缓存 registry 元数据 —— 不带版本号时可能仍然解析到旧版本。
|
|
31
31
|
|
|
32
32
|
> `dsh` 需要先在 PATH 里。桌面版自带的那份在
|
|
33
33
|
> `…\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd`,没加过 PATH 的话用方式一。
|
|
34
34
|
|
|
35
35
|
**要求 DSH 0.2.1 或以上。**
|
|
36
|
-
**aria2
|
|
36
|
+
**aria2 可选,但强烈建议装** —— 装了走 16 线程分段;没装走单流兜底,功能一个不少,速度大约只有十分之一。没装时插件会在启动日志里明确警告,`download_status` 也会报出原因,不会让你以为"DLS 就这速度"。
|
|
37
|
+
|
|
38
|
+
| 平台 | 装 aria2 |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| Windows | `winget install aria2.aria2` |
|
|
41
|
+
| Ubuntu / Debian | `sudo apt install aria2` |
|
|
42
|
+
| Fedora | `sudo dnf install aria2` |
|
|
43
|
+
| Arch | `sudo pacman -S aria2` |
|
|
44
|
+
| macOS | `brew install aria2` |
|
|
45
|
+
|
|
37
46
|
|
|
38
47
|
---
|
|
39
48
|
|
|
@@ -156,6 +165,7 @@ agent 会调 `download_enqueue` 两次拿到 `J#10` / `J#11`,然后 `download_
|
|
|
156
165
|
| `0.2.x` | v1.1 | 镜像表 / 镜像冷却 / 并发分档 / 会话公平 / 磁盘余量 / 失败显式化 | 已发布 |
|
|
157
166
|
| `0.3.x` | v1.2 | 队列去重 / 镜像自证同源 | 已发布 |
|
|
158
167
|
| `0.4.x` | v1.3 | 自定义请求头(`Referer` / `Cookie` / `User-Agent`):每次尝试都带,入队时校验,输出只列名字 | 已发布 |
|
|
168
|
+
| `0.4.1` | 补丁 | 没装 aria2 从"静默变慢"改成"明确警告 + 安装命令";`download_status` 能看出走的哪条通道 | 已发布 |
|
|
159
169
|
| `1.0.0` | v2 | 拦截 shell 下载 / 种子与磁力 / 自研分段引擎 / 内容寻址 | 计划 |
|
|
160
170
|
| `1.1.x` | v3 | 用户面板 + 操作回传 agent | 计划 |
|
|
161
171
|
|