@narumitw/pi-caffeinate 0.1.14 → 0.1.16

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-caffeinate",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Pi extension that keeps the computer awake while the agent is running.",
5
5
  "type": "module",
6
6
  "license": "MIT",
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, "caffeinate: disabled");
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, `caffeinate: on (${state.command?.description ?? "active"})`);
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, "caffeinate: idle");
296
+ ctx.ui.setStatus(STATUS_KEY, undefined);
297
297
  }
298
298
 
299
299
  function describeState() {