vibe-monitor 1.0.5 → 1.0.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/README.md +9 -4
- package/main.js +10 -9
- package/package.json +1 -1
- package/renderer.js +1 -1
- package/shared/config.js +2 -2
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
|
|
@@ -118,10 +117,16 @@ See [GitHub repository](https://github.com/nalbam/vibe-monitor) for full configu
|
|
|
118
117
|
|
|
119
118
|
### Kiro IDE
|
|
120
119
|
|
|
121
|
-
Copy hook
|
|
120
|
+
Copy hook script and hook files to `~/.kiro/hooks/`:
|
|
122
121
|
|
|
123
122
|
```bash
|
|
124
|
-
|
|
123
|
+
# Create hooks directory
|
|
124
|
+
mkdir -p ~/.kiro/hooks
|
|
125
|
+
|
|
126
|
+
# Copy hook script and hook files
|
|
127
|
+
cp config/kiro/hooks/vibe-monitor.sh ~/.kiro/hooks/
|
|
128
|
+
cp config/kiro/hooks/*.kiro.hook ~/.kiro/hooks/
|
|
129
|
+
chmod +x ~/.kiro/hooks/vibe-monitor.sh
|
|
125
130
|
```
|
|
126
131
|
|
|
127
132
|
## API
|
|
@@ -141,7 +146,7 @@ curl -X POST http://127.0.0.1:19280/status \
|
|
|
141
146
|
| Field | Description |
|
|
142
147
|
|-------|-------------|
|
|
143
148
|
| `state` | `start`, `idle`, `thinking`, `working`, `notification`, `done`, `sleep` |
|
|
144
|
-
| `event` | `PreToolUse`, `
|
|
149
|
+
| `event` | `SessionStart`, `PreToolUse`, `Stop`, etc. |
|
|
145
150
|
| `tool` | Tool name (e.g., `Bash`, `Read`, `Edit`) |
|
|
146
151
|
| `project` | Project name |
|
|
147
152
|
| `model` | Model name (e.g., `opus`, `sonnet`) |
|
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
|
|
19
|
-
const
|
|
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
|
-
},
|
|
292
|
-
} else if (currentState === 'idle'
|
|
293
|
-
// idle
|
|
292
|
+
}, IDLE_TIMEOUT);
|
|
293
|
+
} else if (currentState === 'idle') {
|
|
294
|
+
// idle -> sleep after 5 minutes
|
|
294
295
|
stateTimeoutTimer = setTimeout(() => {
|
|
295
296
|
updateState({ state: 'sleep' });
|
|
296
|
-
},
|
|
297
|
+
}, SLEEP_TIMEOUT);
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
|
package/package.json
CHANGED
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 === '
|
|
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
|
|
123
|
-
export const SLEEP_TIMEOUT =
|
|
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
|