@narumitw/pi-caffeinate 0.1.14 → 0.1.15
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 +1 -0
- package/package.json +1 -1
- package/src/caffeinate.ts +3 -3
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ It is designed for long-running coding, refactoring, debugging, web research, an
|
|
|
10
10
|
|
|
11
11
|
- Starts an OS sleep inhibitor when Pi begins processing (`agent_start`).
|
|
12
12
|
- Releases the inhibitor when processing ends (`agent_end`) or the session shuts down.
|
|
13
|
+
- Publishes an `awake` status only while an inhibitor is active.
|
|
13
14
|
- Supports macOS, Windows, WSL, and Linux.
|
|
14
15
|
- Provides `/caffeinate-status` and `/caffeinate-stop` commands.
|
|
15
16
|
- Allows a custom inhibitor command through environment configuration.
|
package/package.json
CHANGED
package/src/caffeinate.ts
CHANGED
|
@@ -279,12 +279,12 @@ function isWsl() {
|
|
|
279
279
|
|
|
280
280
|
function updateStatus(ctx: ExtensionContext) {
|
|
281
281
|
if (state.disabled) {
|
|
282
|
-
ctx.ui.setStatus(STATUS_KEY,
|
|
282
|
+
ctx.ui.setStatus(STATUS_KEY, undefined);
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
if (state.process) {
|
|
287
|
-
ctx.ui.setStatus(STATUS_KEY,
|
|
287
|
+
ctx.ui.setStatus(STATUS_KEY, "caffeinate: awake");
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
|
|
@@ -293,7 +293,7 @@ function updateStatus(ctx: ExtensionContext) {
|
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
ctx.ui.setStatus(STATUS_KEY,
|
|
296
|
+
ctx.ui.setStatus(STATUS_KEY, undefined);
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
function describeState() {
|