@laraveladmin/dsh-stay-awake 0.2.6 → 0.2.7
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 +22 -4
- package/README.md +22 -4
- package/market/index.json +66 -0
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# 变更记录 · Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.7 — 2026-12-03
|
|
4
|
+
|
|
5
|
+
### 新功能
|
|
6
|
+
|
|
7
|
+
- 随包发布插件市场索引 `market/index.json`(format 1,已用 DSH 自带 `dsh-plugin-market-index` 校验器验证),
|
|
8
|
+
用户把它作为索引源添加到 Discover 后即可搜索与安装:
|
|
9
|
+
`https://cdn.jsdelivr.net/npm/@laraveladmin/dsh-stay-awake/market/index.json`
|
|
10
|
+
- `package.json` 声明 `engines.dsh: >=0.2.0`,市场可据此显示兼容性并阻止过旧版本安装。
|
|
11
|
+
- 新增 `scripts/build-index.mjs` 由 manifest 生成索引,`test/market-index.test.js` 防止索引与包版本漂移。
|
|
12
|
+
- README 中英文补充 Discover 安装步骤(含 npmmirror 备用索引地址)。
|
|
13
|
+
|
|
3
14
|
## 0.2.6 — 2026-12-03
|
|
4
15
|
|
|
5
16
|
### 文档
|
package/README.en.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
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.2.
|
|
10
|
+
<img alt="version" src="https://img.shields.io/badge/version-0.2.7-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>
|
|
@@ -63,7 +63,7 @@ A short alert when a task finishes, played on the machine that runs the DSH host
|
|
|
63
63
|
|
|
64
64
|
**Requirements**: DSH 0.2.x (Desktop or `dsh web`). The plugin has no third-party runtime dependencies and needs no Node toolchain.
|
|
65
65
|
|
|
66
|
-
Published on npm: [`@laraveladmin/dsh-stay-awake@0.2.
|
|
66
|
+
Published on npm: [`@laraveladmin/dsh-stay-awake@0.2.7`](https://www.npmjs.com/package/@laraveladmin/dsh-stay-awake)
|
|
67
67
|
|
|
68
68
|
### Option 1 — install from npm (recommended)
|
|
69
69
|
|
|
@@ -75,7 +75,23 @@ plugin_manager action: install_bundle target: @laraveladmin/dsh-stay-awake
|
|
|
75
75
|
|
|
76
76
|
Then **reload the session page** (`Cmd + R` on macOS, `Ctrl + R` on Windows); the `☾ Stay awake · …` indicator appears in the composer status bar.
|
|
77
77
|
|
|
78
|
-
### Option 2 — install from
|
|
78
|
+
### Option 2 — install from Discover (self-hosted index)
|
|
79
|
+
|
|
80
|
+
DSH ships no index source. Add the index file this npm package publishes and the plugin shows up in **Discover**:
|
|
81
|
+
|
|
82
|
+
1. Open **Plugins** → **More** → **Experimental plugins** and switch on **Custom plugin indexes**.
|
|
83
|
+
2. Open **Discover** → **Add index source** and paste:
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
https://cdn.jsdelivr.net/npm/@laraveladmin/dsh-stay-awake/market/index.json
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
3. Search for "Stay awake" or `dsh-stay-awake` and install a version.
|
|
90
|
+
|
|
91
|
+
> The index is a plugin-market format 1 document validated with DSH's own validator. If jsDelivr is slow on your network, pin the version through the npmmirror mirror:
|
|
92
|
+
> `https://registry.npmmirror.com/@laraveladmin/dsh-stay-awake/0.2.7/files/market/index.json`
|
|
93
|
+
|
|
94
|
+
### Option 3 — install from the DSH UI (local source directory)
|
|
79
95
|
|
|
80
96
|
Use this when you want to modify the code or prefer not to use npm:
|
|
81
97
|
|
|
@@ -89,7 +105,7 @@ Use this when you want to modify the code or prefer not to use npm:
|
|
|
89
105
|
3. Choose **Add plugin** and pick the cloned directory (the one containing `package.json`).
|
|
90
106
|
4. After installation, **reload the session page** (`Cmd + R` on macOS, `Ctrl + R` on Windows).
|
|
91
107
|
|
|
92
|
-
### Option
|
|
108
|
+
### Option 4 — ask the agent to install it
|
|
93
109
|
|
|
94
110
|
Send this to the agent in DSH:
|
|
95
111
|
|
|
@@ -194,6 +210,8 @@ systemd-inhibit --list
|
|
|
194
210
|
|
|
195
211
|
**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".
|
|
196
212
|
|
|
213
|
+
**Compatibility**: `package.json` declares `engines.dsh: >=0.2.0`, which the plugin market uses for its compatibility badge; older DSH versions are refused.
|
|
214
|
+
|
|
197
215
|
**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.
|
|
198
216
|
|
|
199
217
|
## Internationalization
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
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.2.
|
|
10
|
+
<img alt="version" src="https://img.shields.io/badge/version-0.2.7-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>
|
|
@@ -64,7 +64,7 @@ DSH 跑长任务时你离开电脑,系统按空闲策略休眠:进程被挂
|
|
|
64
64
|
|
|
65
65
|
**前置条件**:DSH 0.2.x(Desktop 或 `dsh web`)。插件零第三方运行时依赖,不需要 Node 工具链。
|
|
66
66
|
|
|
67
|
-
已发布到 npm:[`@laraveladmin/dsh-stay-awake@0.2.
|
|
67
|
+
已发布到 npm:[`@laraveladmin/dsh-stay-awake@0.2.7`](https://www.npmjs.com/package/@laraveladmin/dsh-stay-awake)
|
|
68
68
|
|
|
69
69
|
### 方式一:从 npm 安装(推荐)
|
|
70
70
|
|
|
@@ -76,7 +76,23 @@ plugin_manager action: install_bundle target: @laraveladmin/dsh-stay-awake
|
|
|
76
76
|
|
|
77
77
|
然后**刷新会话页面**(macOS `Cmd + R`,Windows `Ctrl + R`),输入框下方状态栏出现 `☾ 守夜 · …` 即安装成功。
|
|
78
78
|
|
|
79
|
-
###
|
|
79
|
+
### 方式二:从 Discover 安装(自建索引源)
|
|
80
|
+
|
|
81
|
+
DSH 默认不带任何索引源。添加本项目随 npm 包发布的索引文件后,就能在 **Discover** 里搜索并安装:
|
|
82
|
+
|
|
83
|
+
1. 打开 **插件(Plugins)** → **更多** → **实验性插件**,打开「自定义插件索引」。
|
|
84
|
+
2. 切到 **Discover** → **添加索引源**,粘贴:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
https://cdn.jsdelivr.net/npm/@laraveladmin/dsh-stay-awake/market/index.json
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
3. 搜索「守夜」或 `dsh-stay-awake`,选择版本安装。
|
|
91
|
+
|
|
92
|
+
> 索引是插件市场的 format 1 文档,已用 DSH 自带校验器验证。国内网络若访问 jsDelivr 不稳,可把版本号写死用备用地址:
|
|
93
|
+
> `https://registry.npmmirror.com/@laraveladmin/dsh-stay-awake/0.2.7/files/market/index.json`
|
|
94
|
+
|
|
95
|
+
### 方式三:DSH 界面安装(从本地源码目录)
|
|
80
96
|
|
|
81
97
|
想自己改代码、或暂时不用 npm 时:
|
|
82
98
|
|
|
@@ -90,7 +106,7 @@ plugin_manager action: install_bundle target: @laraveladmin/dsh-stay-awake
|
|
|
90
106
|
3. 点 **添加插件(Add plugin)**,选择克隆下来的目录(必须是含 `package.json` 的那一层)。
|
|
91
107
|
4. 安装完成后**刷新会话页面**(macOS `Cmd + R`,Windows `Ctrl + R`)。
|
|
92
108
|
|
|
93
|
-
###
|
|
109
|
+
### 方式四:让 AI 帮你装
|
|
94
110
|
|
|
95
111
|
把这句话发给 DSH 里的 AI:
|
|
96
112
|
|
|
@@ -197,6 +213,8 @@ systemd-inhibit --list
|
|
|
197
213
|
|
|
198
214
|
**验证范围**:macOS 为作者真机验收平台(逐条证据见 [验证记录](https://gitee.com/laravel-admin/dsh-stay-awake/blob/main/docs/VERIFICATION.md));Windows / Linux 提供实现与单元测试,电源效果需在对应真机用上面的命令确认。发布说明不会用「已实现」代替「已验证」。
|
|
199
215
|
|
|
216
|
+
**兼容性声明**:`package.json` 声明 `engines.dsh: >=0.2.0`,插件市场据此显示兼容性;低于该版本的 DSH 会被拒绝安装。
|
|
217
|
+
|
|
200
218
|
**本地写入**:只写一个状态文件 `~/.dsh/plugin-data/dsh-stay-awake/state.json`(弹层里的两个偏好),不碰系统电源计划、不申请提权、不联网、不读取会话内容。
|
|
201
219
|
|
|
202
220
|
## 多语言
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"title": {
|
|
4
|
+
"en": "Stay Awake",
|
|
5
|
+
"zh": "守夜"
|
|
6
|
+
},
|
|
7
|
+
"description": {
|
|
8
|
+
"en": "Keeps the host awake only while unattended DSH work is still running, and rings when a task finishes.",
|
|
9
|
+
"zh": "只在无人值守仍有工作在进行时保持系统不休眠,任务结束时给出提示音。"
|
|
10
|
+
},
|
|
11
|
+
"metadata": {
|
|
12
|
+
"categories": {
|
|
13
|
+
"desktop": {
|
|
14
|
+
"title": {
|
|
15
|
+
"en": "Desktop",
|
|
16
|
+
"zh": "桌面"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"labels": {},
|
|
21
|
+
"sortKeys": {}
|
|
22
|
+
},
|
|
23
|
+
"plugins": [
|
|
24
|
+
{
|
|
25
|
+
"name": "@laraveladmin/dsh-stay-awake",
|
|
26
|
+
"title": {
|
|
27
|
+
"en": "Stay Awake",
|
|
28
|
+
"zh": "守夜"
|
|
29
|
+
},
|
|
30
|
+
"description": {
|
|
31
|
+
"en": "Keeps the host awake only while unattended DSH work is still running — agent turns, background jobs and manual compaction — then releases automatically. Rings once when a task finishes.",
|
|
32
|
+
"zh": "只在会话执行、后台任务或手动压缩等「无人值守仍在继续」的工作存在时保持系统不休眠,工作结束自动释放;任务结束时响一声提示音。"
|
|
33
|
+
},
|
|
34
|
+
"icon": "https://cdn.jsdelivr.net/npm/@laraveladmin/dsh-stay-awake/icon.svg",
|
|
35
|
+
"author": "laraveladmin",
|
|
36
|
+
"homepage": "https://gitee.com/laravel-admin/dsh-stay-awake",
|
|
37
|
+
"repository": {
|
|
38
|
+
"url": "https://gitee.com/laravel-admin/dsh-stay-awake"
|
|
39
|
+
},
|
|
40
|
+
"metadata": {
|
|
41
|
+
"category": "desktop",
|
|
42
|
+
"keywords": [
|
|
43
|
+
"dsh-plugin",
|
|
44
|
+
"deepseek-harness",
|
|
45
|
+
"keep-awake",
|
|
46
|
+
"prevent-sleep",
|
|
47
|
+
"caffeinate"
|
|
48
|
+
],
|
|
49
|
+
"labels": [],
|
|
50
|
+
"sortKeys": {}
|
|
51
|
+
},
|
|
52
|
+
"versions": [
|
|
53
|
+
{
|
|
54
|
+
"version": "0.2.7",
|
|
55
|
+
"publishTimestamp": 1796273398,
|
|
56
|
+
"source": {
|
|
57
|
+
"type": "npm"
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"dsh": ">=0.2.0"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@laraveladmin/dsh-stay-awake",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "DeepSeek Harness plugin that keeps the machine awake only while unattended work runs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh-plugin",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"lib",
|
|
33
33
|
"cordis.patch.yml",
|
|
34
34
|
"locale/*.json",
|
|
35
|
+
"market",
|
|
35
36
|
"docs",
|
|
36
37
|
"icon.svg",
|
|
37
38
|
"README.md",
|
|
@@ -41,7 +42,8 @@
|
|
|
41
42
|
],
|
|
42
43
|
"scripts": {
|
|
43
44
|
"test": "node --test test/*.test.js",
|
|
44
|
-
"test:integration": "node --test test/integration/*.test.js"
|
|
45
|
+
"test:integration": "node --test test/integration/*.test.js",
|
|
46
|
+
"index": "node scripts/build-index.mjs"
|
|
45
47
|
},
|
|
46
48
|
"dsh": {
|
|
47
49
|
"bundle": {
|
|
@@ -58,5 +60,8 @@
|
|
|
58
60
|
"publishConfig": {
|
|
59
61
|
"access": "public",
|
|
60
62
|
"registry": "https://registry.npmjs.org/"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"dsh": ">=0.2.0"
|
|
61
66
|
}
|
|
62
67
|
}
|