vibe-monitor 1.0.6 → 1.0.8

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
@@ -25,7 +25,6 @@ curl -X POST http://127.0.0.1:19280/quit
25
25
 
26
26
  # or
27
27
  pkill -f vibe-monitor
28
- killall Electron
29
28
  ```
30
29
 
31
30
  ## Installation
@@ -56,7 +55,7 @@ npm start
56
55
  | `working` | Blue | Tool executing |
57
56
  | `notification` | Yellow | User input needed |
58
57
  | `done` | Green | Tool completed |
59
- | `sleep` | Navy | 10min inactivity |
58
+ | `sleep` | Navy | 5min inactivity |
60
59
 
61
60
  ## Characters
62
61
 
package/main.js CHANGED
@@ -13,10 +13,11 @@ let currentTool = '';
13
13
  let currentModel = '';
14
14
  let currentMemory = '';
15
15
 
16
- // State timeout management
16
+ // State timeout management (must match shared/config.js)
17
+ // NOTE: Cannot import ESM from CommonJS, keep in sync manually
17
18
  let stateTimeoutTimer = null;
18
- const DONE_TO_IDLE_TIMEOUT = 60 * 1000; // 1 minute
19
- const IDLE_TO_SLEEP_TIMEOUT = 10 * 60 * 1000; // 10 minutes
19
+ const IDLE_TIMEOUT = 60 * 1000; // 1 minute (start/done -> idle)
20
+ const SLEEP_TIMEOUT = 5 * 60 * 1000; // 5 minutes (idle -> sleep)
20
21
 
21
22
  // HTTP server for receiving status updates
22
23
  let httpServer;
@@ -284,16 +285,16 @@ function clearStateTimeout() {
284
285
  function setupStateTimeout() {
285
286
  clearStateTimeout();
286
287
 
287
- if (currentState === 'done') {
288
- // done -> idle after 1 minute
288
+ if (currentState === 'start' || currentState === 'done') {
289
+ // start/done -> idle after 1 minute
289
290
  stateTimeoutTimer = setTimeout(() => {
290
291
  updateState({ state: 'idle' });
291
- }, DONE_TO_IDLE_TIMEOUT);
292
- } else if (currentState === 'idle' || currentState === 'start') {
293
- // idle/start -> sleep after 10 minutes
292
+ }, IDLE_TIMEOUT);
293
+ } else if (currentState === 'idle' || currentState === 'notification') {
294
+ // idle/notification -> sleep after 5 minutes
294
295
  stateTimeoutTimer = setTimeout(() => {
295
296
  updateState({ state: 'sleep' });
296
- }, IDLE_TO_SLEEP_TIMEOUT);
297
+ }, SLEEP_TIMEOUT);
297
298
  }
298
299
  }
299
300
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-monitor",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "AI coding assistant status monitor",
5
5
  "main": "main.js",
6
6
  "bin": {
package/renderer.js CHANGED
@@ -167,7 +167,7 @@ function updateLoadingDots(slow = false) {
167
167
 
168
168
  // Check sleep timer
169
169
  function checkSleepTimer() {
170
- if (currentState === 'start' || currentState === 'idle' || currentState === 'done') {
170
+ if (currentState === 'idle') {
171
171
  const elapsed = Date.now() - lastActivityTime;
172
172
  if (elapsed >= SLEEP_TIMEOUT) {
173
173
  currentState = 'sleep';
package/shared/config.js CHANGED
@@ -119,8 +119,8 @@ export const CHAR_X_BASE = 22;
119
119
  export const CHAR_Y_BASE = 20;
120
120
 
121
121
  // State timeouts
122
- export const DONE_TO_IDLE_TIMEOUT = 60 * 1000; // 1 minute
123
- export const SLEEP_TIMEOUT = 600 * 1000; // 10 minutes
122
+ export const IDLE_TIMEOUT = 60 * 1000; // 1 minute (start/done -> idle)
123
+ export const SLEEP_TIMEOUT = 5 * 60 * 1000; // 5 minutes (idle -> sleep)
124
124
 
125
125
  // Animation constants
126
126
  export const FRAME_INTERVAL = 100; // 100ms per frame