dsh-autorestart 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 +31 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# dsh-autorestart
|
|
2
2
|
|
|
3
|
+
## 它解决什么问题
|
|
4
|
+
|
|
5
|
+
- DeepSeek Harness 在装插件、升级、崩溃、或关掉重开时,正在跑的任务会被打断。这个插件把"重启"变成一件可恢复的事,不再需要你事后补一句"继续":
|
|
6
|
+
- 等所有对话都空闲了才重启:不会在你或别的会话正在跑的时候把应用关掉;
|
|
7
|
+
- 重启后自动接着干:被打断的会话自动恢复,目标(goal)会重新武装继续跑;
|
|
8
|
+
- 多个会话同时要求重启时合并成一次,且每个请求者都会被唤醒;
|
|
9
|
+
- 重启前有两道检查:宿主侧查一次,独立 helper 在杀进程前再查一次;
|
|
10
|
+
- 界面上能看到状态:输入框工具行左侧的"待重启 · 被 N 个会话占用"小胶囊、左侧栏会话标题旁的圆点;快重启时圆点呼吸,点胶囊看详情;
|
|
11
|
+
- 可配置:静默窗口(默认 2 秒)、杀进程前等待(默认 2 秒)、忙碌时是否允许强制重启等。
|
|
12
|
+
|
|
13
|
+
场景对照:
|
|
14
|
+
|
|
15
|
+
| 场景 | 没有它 | 有它 |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| Agent 正在跑长任务,DSH 被重启/崩溃 | 这一轮丢失,必须人工催"继续" | 新进程启动后自动 resume 该会话并注入续接提示,继续干活 |
|
|
18
|
+
| Agent 有一个持久 goal(`create_goal`)跨重启 | goal 的 activation 是进程内的,重启后变回 `disarmed`,自动续跑停止 | 启动时重新 `goals.resume()`,goal round driver 立刻开始下一轮 |
|
|
19
|
+
| Agent 想装/升级插件但"重启必打断" | 只能等或赌 | 调 `continuum_restart`:等所有 agent idle(当前这一轮跑完)再重启,回来自己接着做 |
|
|
20
|
+
|
|
21
|
+
## 适合谁 / 不适合谁
|
|
22
|
+
|
|
23
|
+
适合:经常因为装插件、升级、应用崩溃而丢掉正在进行的长任务,希望重启后自动接续的人。
|
|
24
|
+
|
|
25
|
+
不适合:无法接受应用窗口关闭再重开的人;非 Windows 桌面且未配置 restartMode 为 command 的 web 部署(重启功能不可用);正在跑关键任务的 profile(建议先在测试 profile 验证)。
|
|
26
|
+
|
|
3
27
|
> **包名说明**:原先的包名在公共 npm registry(npmjs.com)上已被其他作者占用,因此本包更名为 **dsh-autorestart**。
|
|
4
28
|
|
|
5
29
|
**重启不断线 / Cross-restart continuation for DeepSeek Harness (dsh).**
|
|
@@ -13,14 +37,6 @@ session resume on boot, durable-goal re-arm, and an agent-callable idle-aware gr
|
|
|
13
37
|
|
|
14
38
|
---
|
|
15
39
|
|
|
16
|
-
## 它解决什么
|
|
17
|
-
|
|
18
|
-
| 场景 | 没有它 | 有它 |
|
|
19
|
-
| --- | --- | --- |
|
|
20
|
-
| Agent 正在跑长任务,DSH 被重启/崩溃 | 这一轮丢失,必须人工催"继续" | 新进程启动后自动 resume 该会话并注入续接提示,继续干活 |
|
|
21
|
-
| Agent 有一个持久 goal(`create_goal`)跨重启 | goal 的 activation 是进程内的,重启后变回 `disarmed`,自动续跑停止 | 启动时重新 `goals.resume()`,goal round driver 立刻开始下一轮 |
|
|
22
|
-
| Agent 想装/升级插件但"重启必打断" | 只能等或赌 | 调 `continuum_restart`:等所有 agent idle(当前这一轮跑完)再重启,回来自己接着做 |
|
|
23
|
-
|
|
24
40
|
## 工作方式
|
|
25
41
|
|
|
26
42
|
```
|
|
@@ -320,7 +336,7 @@ or by requesting the health path with ?gate=1.
|
|
|
320
336
|
|
|
321
337
|
```powershell
|
|
322
338
|
# 1. 打包
|
|
323
|
-
npm pack # -> dsh-autorestart-0.2.
|
|
339
|
+
npm pack # -> dsh-autorestart-0.2.1.tgz
|
|
324
340
|
# 2. 发布到 registry
|
|
325
341
|
npm publish
|
|
326
342
|
# 3. 从市场安装
|
|
@@ -331,3 +347,9 @@ npm publish
|
|
|
331
347
|
`package.json` 里已经带齐市场需要的元数据:MIT license、`keywords`、`repository`,以及
|
|
332
348
|
`dsh.compatibility.dshReleases`(声明在 DSH `0.2.1-rc.2` 上实测兼容)。
|
|
333
349
|
改了代码记得重新 `npm pack`——市场里装的是 tarball,不是工作区目录。
|
|
350
|
+
|
|
351
|
+
## AI 生成声明
|
|
352
|
+
|
|
353
|
+
本插件由 AI 生成,**未经人工代码审核**。它会重启你的 DSH 进程并读写本地状态文件。请先在测试 profile 里验证行为符合预期,再用于日常/生产 profile;使用风险由使用者自行评估。
|
|
354
|
+
|
|
355
|
+
This plugin was generated by an AI and has **not been reviewed by a human**. It restarts your DSH process and writes local state files. Verify it in a test profile before using it in your working profile.
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-autorestart",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "DeepSeek Harness plugin: restart without losing work. Waits until every conversation is idle, restarts the host, then automatically resumes the interrupted sessions. AI-generated, not human-reviewed: use with caution.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"dsh",
|