@laraveladmin/dsh-stay-awake 0.1.0 → 0.1.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 +11 -0
- package/README.en.md +21 -22
- package/README.md +21 -22
- package/docs/VERIFICATION.md +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
# 变更记录 · Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1 — 2026-12-03
|
|
4
|
+
|
|
5
|
+
### 修复
|
|
6
|
+
|
|
7
|
+
- npm 包页面上的相对链接(语言切换 `README.en.md`、`LICENSE`、`docs/VERIFICATION.md`)在 npmjs 上解析错误,
|
|
8
|
+
点击「English」会跳到不存在的 npm 路径;现全部改为 Gitee 绝对地址,中英文文档、许可证与验证记录均可直接打开。
|
|
9
|
+
|
|
3
10
|
## 0.1.0 — 2026-12-03
|
|
4
11
|
|
|
5
12
|
首个版本。
|
|
6
13
|
|
|
14
|
+
### 发布
|
|
15
|
+
|
|
16
|
+
- 已发布到 npm:`@laraveladmin/dsh-stay-awake@0.1.0`(2026-12-03)。
|
|
17
|
+
|
|
7
18
|
### 功能
|
|
8
19
|
|
|
9
20
|
- **三类活跃源**:运行中的会话(`agent/status`)、手动 `/compact` 的维护期(会话事件 `compaction/start` → `compaction/end`)、后台任务(`ctx.jobs` + 持久事件 `job/registered` / `job/settled`)。
|
package/README.en.md
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
**A DeepSeek Harness plugin that keeps the machine awake only while unattended work is still running, then releases automatically.**
|
|
4
4
|
|
|
5
|
-
[简体中文](README.md) · [English](README.en.md) · [Repository](https://gitee.com/laravel-admin/dsh-stay-awake)
|
|
5
|
+
[简体中文](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.md) · [English](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.en.md) · [Repository](https://gitee.com/laravel-admin/dsh-stay-awake)
|
|
6
6
|
|
|
7
7
|
`@laraveladmin/dsh-stay-awake` · macOS / Windows / Linux
|
|
8
8
|
|
|
9
9
|
<p>
|
|
10
|
-
<img alt="version" src="https://img.shields.io/badge/version-0.1.
|
|
10
|
+
<img alt="version" src="https://img.shields.io/badge/version-0.1.1-blue">
|
|
11
11
|
<img alt="platform" src="https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Linux-4c6ef5">
|
|
12
12
|
<img alt="license" src="https://img.shields.io/badge/license-MIT-green">
|
|
13
13
|
</p>
|
|
@@ -54,7 +54,21 @@ The rule is a pure function: `wanted = enabled && (agents + maintenance + jobs >
|
|
|
54
54
|
|
|
55
55
|
**Requirements**: DSH 0.2.x (Desktop or `dsh web`). The plugin has no third-party runtime dependencies and needs no Node toolchain.
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
Published on npm: [`@laraveladmin/dsh-stay-awake@0.1.1`](https://www.npmjs.com/package/@laraveladmin/dsh-stay-awake)
|
|
58
|
+
|
|
59
|
+
### Option 1 — install from npm (recommended)
|
|
60
|
+
|
|
61
|
+
Run this in a DSH session:
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
plugin_manager action: install_bundle target: @laraveladmin/dsh-stay-awake
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Then **reload the session page** (`Cmd + R` on macOS, `Ctrl + R` on Windows); the `☾ Stay awake · …` indicator appears in the composer status bar.
|
|
68
|
+
|
|
69
|
+
### Option 2 — install from the DSH UI (local source directory)
|
|
70
|
+
|
|
71
|
+
Use this when you want to modify the code or prefer not to use npm:
|
|
58
72
|
|
|
59
73
|
1. Clone the repository:
|
|
60
74
|
|
|
@@ -65,27 +79,12 @@ The rule is a pure function: `wanted = enabled && (agents + maintenance + jobs >
|
|
|
65
79
|
2. Open DSH and go to **Plugins**.
|
|
66
80
|
3. Choose **Add plugin** and pick the cloned directory (the one containing `package.json`).
|
|
67
81
|
4. After installation, **reload the session page** (`Cmd + R` on macOS, `Ctrl + R` on Windows).
|
|
68
|
-
5. The `☾ Stay awake · …` indicator appears in the composer status bar.
|
|
69
|
-
|
|
70
|
-
### Option 2 — plugin manager command
|
|
71
|
-
|
|
72
|
-
Run this in a DSH session, or use the plugin manager's local-directory entry:
|
|
73
|
-
|
|
74
|
-
```text
|
|
75
|
-
plugin_manager action: install_bundle target: /absolute/path/to/dsh-stay-awake
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Once published to npm you can install it by package name:
|
|
79
|
-
|
|
80
|
-
```text
|
|
81
|
-
plugin_manager action: install_bundle target: @laraveladmin/dsh-stay-awake
|
|
82
|
-
```
|
|
83
82
|
|
|
84
83
|
### Option 3 — ask the agent to install it
|
|
85
84
|
|
|
86
85
|
Send this to the agent in DSH:
|
|
87
86
|
|
|
88
|
-
>
|
|
87
|
+
> Install @laraveladmin/dsh-stay-awake into the current DSH profile (or clone https://gitee.com/laravel-admin/dsh-stay-awake and install it).
|
|
89
88
|
|
|
90
89
|
### Post-install checks
|
|
91
90
|
|
|
@@ -176,7 +175,7 @@ systemd-inhibit --list
|
|
|
176
175
|
|
|
177
176
|
**What no user-space tool can block**: lid-close sleep, manual sleep, critical-battery sleep, and MDM policies. On macOS a closed lid keeps running only through clamshell mode (power plus an external display). Inside WSL the plugin can only inhibit the distribution, not the Windows host.
|
|
178
177
|
|
|
179
|
-
**Verification scope**: macOS is the author's real-hardware acceptance platform; see the [verification record](docs/VERIFICATION.md) (Chinese) for per-case evidence. Windows and Linux ship with implementations and unit tests, but their power effect must be confirmed on the corresponding machine. A release note will never present "implemented" as "verified".
|
|
178
|
+
**Verification scope**: macOS is the author's real-hardware acceptance platform; see the [verification record](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/docs/VERIFICATION.md) (Chinese) for per-case evidence. Windows and Linux ship with implementations and unit tests, but their power effect must be confirmed on the corresponding machine. A release note will never present "implemented" as "verified".
|
|
180
179
|
|
|
181
180
|
**Local writes**: exactly one state file, `~/.dsh/plugin-data/dsh-stay-awake/state.json` (the two panel preferences). It does not modify system power plans, request privileges, use the network, or read session content.
|
|
182
181
|
|
|
@@ -184,7 +183,7 @@ systemd-inhibit --list
|
|
|
184
183
|
|
|
185
184
|
- The composer indicator follows the active DSH locale, with built-in Simplified Chinese and English; other locales fall back to English.
|
|
186
185
|
- The plugin manager title and description are localized as well (`locale/zh.json`, `locale/en.json`).
|
|
187
|
-
- Repository documentation: [简体中文](README.md) / [English](README.en.md).
|
|
186
|
+
- Repository documentation: [简体中文](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.md) / [English](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.en.md).
|
|
188
187
|
|
|
189
188
|
## Development
|
|
190
189
|
|
|
@@ -221,4 +220,4 @@ npm publish # package.json sets publishCo
|
|
|
221
220
|
|
|
222
221
|
## License
|
|
223
222
|
|
|
224
|
-
Released under the [MIT](LICENSE) license: use, modify, redistribute and sell freely, as long as the copyright and permission notice are retained.
|
|
223
|
+
Released under the [MIT](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/LICENSE) license: use, modify, redistribute and sell freely, as long as the copyright and permission notice are retained.
|
package/README.md
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
**DeepSeek Harness 插件:只在「无人值守但仍需继续的工作」存在时保持机器不休眠,工作结束自动释放。**
|
|
4
4
|
|
|
5
|
-
[简体中文](README.md) · [English](README.en.md) · [仓库](https://gitee.com/laravel-admin/dsh-stay-awake)
|
|
5
|
+
[简体中文](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.md) · [English](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.en.md) · [仓库](https://gitee.com/laravel-admin/dsh-stay-awake)
|
|
6
6
|
|
|
7
7
|
`@laraveladmin/dsh-stay-awake` · macOS / Windows / Linux
|
|
8
8
|
|
|
9
9
|
<p>
|
|
10
|
-
<img alt="version" src="https://img.shields.io/badge/version-0.1.
|
|
10
|
+
<img alt="version" src="https://img.shields.io/badge/version-0.1.1-blue">
|
|
11
11
|
<img alt="platform" src="https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Linux-4c6ef5">
|
|
12
12
|
<img alt="license" src="https://img.shields.io/badge/license-MIT-green">
|
|
13
13
|
</p>
|
|
@@ -55,7 +55,21 @@ DSH 跑长任务时你离开电脑,系统按空闲策略休眠:进程被挂
|
|
|
55
55
|
|
|
56
56
|
**前置条件**:DSH 0.2.x(Desktop 或 `dsh web`)。插件零第三方运行时依赖,不需要 Node 工具链。
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
已发布到 npm:[`@laraveladmin/dsh-stay-awake@0.1.1`](https://www.npmjs.com/package/@laraveladmin/dsh-stay-awake)
|
|
59
|
+
|
|
60
|
+
### 方式一:从 npm 安装(推荐)
|
|
61
|
+
|
|
62
|
+
在 DSH 会话里执行:
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
plugin_manager action: install_bundle target: @laraveladmin/dsh-stay-awake
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
然后**刷新会话页面**(macOS `Cmd + R`,Windows `Ctrl + R`),输入框下方状态栏出现 `☾ 守夜 · …` 即安装成功。
|
|
69
|
+
|
|
70
|
+
### 方式二:DSH 界面安装(从本地源码目录)
|
|
71
|
+
|
|
72
|
+
想自己改代码、或暂时不用 npm 时:
|
|
59
73
|
|
|
60
74
|
1. 克隆仓库:
|
|
61
75
|
|
|
@@ -66,27 +80,12 @@ DSH 跑长任务时你离开电脑,系统按空闲策略休眠:进程被挂
|
|
|
66
80
|
2. 打开 DSH,进入 **插件(Plugins)** 页面。
|
|
67
81
|
3. 点 **添加插件(Add plugin)**,选择克隆下来的目录(必须是含 `package.json` 的那一层)。
|
|
68
82
|
4. 安装完成后**刷新会话页面**(macOS `Cmd + R`,Windows `Ctrl + R`)。
|
|
69
|
-
5. 输入框下方状态栏出现 `☾ 守夜 · …` 即安装成功。
|
|
70
|
-
|
|
71
|
-
### 方式二:插件管理器命令
|
|
72
|
-
|
|
73
|
-
在 DSH 会话里执行,或使用插件管理器的本地目录安装入口:
|
|
74
|
-
|
|
75
|
-
```text
|
|
76
|
-
plugin_manager action: install_bundle target: /absolute/path/to/dsh-stay-awake
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
发布到 npm 之后也可以直接按包名安装:
|
|
80
|
-
|
|
81
|
-
```text
|
|
82
|
-
plugin_manager action: install_bundle target: @laraveladmin/dsh-stay-awake
|
|
83
|
-
```
|
|
84
83
|
|
|
85
84
|
### 方式三:让 AI 帮你装
|
|
86
85
|
|
|
87
86
|
把这句话发给 DSH 里的 AI:
|
|
88
87
|
|
|
89
|
-
> 帮我把 https://gitee.com/laravel-admin/dsh-stay-awake
|
|
88
|
+
> 帮我把 @laraveladmin/dsh-stay-awake 安装到当前 DSH profile(或从 https://gitee.com/laravel-admin/dsh-stay-awake 克隆后安装)。
|
|
90
89
|
|
|
91
90
|
### 安装后自检
|
|
92
91
|
|
|
@@ -179,7 +178,7 @@ systemd-inhibit --list
|
|
|
179
178
|
|
|
180
179
|
**挡不住的**(任何用户态方案都一样):合盖休眠、手动点「睡眠」、低电量强制睡眠、企业 MDM 策略。macOS 合盖时要继续跑,只能靠「插电 + 外接显示器」进入合盖模式。WSL 内只能约束 WSL,管不到 Windows 宿主。
|
|
181
180
|
|
|
182
|
-
**验证范围**:macOS 为作者真机验收平台(逐条证据见 [验证记录](docs/VERIFICATION.md));Windows / Linux 提供实现与单元测试,电源效果需在对应真机用上面的命令确认。发布说明不会用「已实现」代替「已验证」。
|
|
181
|
+
**验证范围**:macOS 为作者真机验收平台(逐条证据见 [验证记录](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/docs/VERIFICATION.md));Windows / Linux 提供实现与单元测试,电源效果需在对应真机用上面的命令确认。发布说明不会用「已实现」代替「已验证」。
|
|
183
182
|
|
|
184
183
|
**本地写入**:只写一个状态文件 `~/.dsh/plugin-data/dsh-stay-awake/state.json`(弹层里的两个偏好),不碰系统电源计划、不申请提权、不联网、不读取会话内容。
|
|
185
184
|
|
|
@@ -187,7 +186,7 @@ systemd-inhibit --list
|
|
|
187
186
|
|
|
188
187
|
- 状态栏指示器跟随 DSH 当前语言,内置简体中文与英文,其余语言回退到英文。
|
|
189
188
|
- 插件管理器中的标题与说明同样提供中英文(`locale/zh.json`、`locale/en.json`)。
|
|
190
|
-
- 仓库文档:[简体中文](README.md) / [English](README.en.md)。
|
|
189
|
+
- 仓库文档:[简体中文](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.md) / [English](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/README.en.md)。
|
|
191
190
|
|
|
192
191
|
## 开发
|
|
193
192
|
|
|
@@ -224,4 +223,4 @@ npm publish # package.json 已配置 publ
|
|
|
224
223
|
|
|
225
224
|
## 许可证
|
|
226
225
|
|
|
227
|
-
本项目以 [MIT](LICENSE) 协议开源:可自由使用、修改、分发与商用,保留版权与许可声明即可。
|
|
226
|
+
本项目以 [MIT](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/LICENSE) 协议开源:可自由使用、修改、分发与商用,保留版权与许可声明即可。
|
package/docs/VERIFICATION.md
CHANGED
|
@@ -91,7 +91,10 @@
|
|
|
91
91
|
- 把 tarball 解包后用假 DSH 上下文跑了一次冒烟:`start()` 能正常订阅事件并在会话 running 时持有恰好 1 个断言(`SMOKE OK`)。
|
|
92
92
|
- npm 上 `@laraveladmin/dsh-stay-awake` 尚不存在(404)。
|
|
93
93
|
- 已确认发布账号 `laraveladmin.cn` **同时拥有 `@laraveladmin` 与 `qlzt` 两个 org 的 owner 权限**,包名与作用域均无问题。
|
|
94
|
-
-
|
|
94
|
+
- 账号开启 2FA,`npm login` 的会话 token 不能发布;最终使用**勾选了 Bypass 2FA 的 granular access token** 完成发布。
|
|
95
|
+
- **已发布**:`@laraveladmin/dsh-stay-awake@0.1.0`,dist-tag `latest`,`dist.shasum = c604252dc9ebaf54a0ddaae9d6f5b1768e47b66a`;从 npm 拉回的 tarball sha1 与之一致,解包后冒烟通过(SMOKE OK)。
|
|
96
|
+
- 发布接口返回 202「processing」,注册表约 **3.5 分钟**后才可读取(期间 `npm view` 返回 404,属正常传播延迟,与网络/代理无关)。
|
|
97
|
+
- 包上存在一个 `0.0.0-stage` 占位版本(发布流程产生),`latest` 指向 0.1.0、不影响安装;npm 禁止 bypass-2FA token 执行 unpublish,需带 2FA 的手动操作才能清理。
|
|
95
98
|
- README 中的图片已改为 Gitee raw 绝对地址,保证 npm 包页面上也能正常显示(npmjs 不解析仓库相对路径)。
|
|
96
99
|
|
|
97
100
|
## 未验证(明确记录,不代替验证)
|