@narumitw/pi-caffeinate 0.17.1 → 0.18.0

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,7 +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 the active keep-awake mode as status while an inhibitor is active.
13
+ - Publishes the active keep-awake mode as status while an inhibitor is active, unless quiet mode is enabled.
14
14
  - Supports macOS, Windows, WSL, and Linux.
15
15
  - Defaults to display-awake mode on every supported OS: prevent system sleep and keep the screen/display awake.
16
16
  - Provides a single `/caffeinate` command with menu-based controls and direct subcommands.
@@ -112,10 +112,11 @@ Example:
112
112
  ```
113
113
 
114
114
  Set `"quiet": true` to hide the routine `Keeping computer awake (...)` and
115
- `Released pi-caffeinate (agent finished)` lifecycle notifications. Quiet mode does not hide
116
- warnings, status updates, or feedback from `/caffeinate` commands such as `status`, mode changes,
117
- help, and manual stop. It defaults to `false` when omitted. The file is read at startup and on
118
- `/reload`; run `/reload` after editing it in a running Pi session before using mode commands.
115
+ `Released pi-caffeinate (agent finished)` lifecycle notifications and keep the `caffeinate` status
116
+ item clear while active or unavailable. Quiet mode does not hide warnings or explicit feedback from
117
+ `/caffeinate` commands such as `status`, mode changes, help, and manual stop. It defaults to `false`
118
+ when omitted. The file is read at startup and on `/reload`; run `/reload` after editing it in a
119
+ running Pi session before using mode commands.
119
120
 
120
121
  Missing, invalid, or deleted settings default back to `display` mode with quiet mode disabled on
121
122
  every supported OS.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-caffeinate",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
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
@@ -333,7 +333,7 @@ function stopInhibitor(ctx: ExtensionContext, reason: string, options: { notify?
333
333
  }
334
334
 
335
335
  function updateStatus(ctx: ExtensionContext) {
336
- if (state.disabled) {
336
+ if (state.disabled || state.quiet) {
337
337
  ctx.ui.setStatus(STATUS_KEY, undefined);
338
338
  return;
339
339
  }