marmonitor 0.2.2 → 0.2.4
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.ko.md +60 -17
- package/README.md +37 -2
- package/bin/postinstall.cjs +1 -0
- package/dist/cli.js +277 -103
- package/dist/config/index.d.ts +2 -1
- package/dist/config/index.js +1 -0
- package/dist/output/badge-themes.js +14 -0
- package/dist/output/index.d.ts +1 -0
- package/dist/output/index.js +154 -32
- package/dist/output/utils.d.ts +3 -2
- package/dist/output/utils.js +14 -2
- package/dist/scanner/activity-log.d.ts +29 -0
- package/dist/scanner/activity-log.js +225 -0
- package/dist/scanner/cache.d.ts +1 -0
- package/dist/scanner/cache.js +1 -0
- package/dist/scanner/codex-binding-registry.d.ts +30 -0
- package/dist/scanner/codex-binding-registry.js +87 -0
- package/dist/scanner/codex-sqlite.d.ts +6 -1
- package/dist/scanner/codex-sqlite.js +27 -7
- package/dist/scanner/codex.d.ts +3 -1
- package/dist/scanner/codex.js +14 -4
- package/dist/scanner/daemon-entry.js +3 -0
- package/dist/scanner/daemon-loop.d.ts +3 -0
- package/dist/scanner/daemon-loop.js +88 -4
- package/dist/scanner/index.js +73 -7
- package/dist/scanner/process.js +6 -0
- package/dist/scanner/session-registry.d.ts +4 -1
- package/dist/scanner/session-registry.js +16 -9
- package/dist/scanner/status.d.ts +3 -1
- package/dist/scanner/status.js +53 -8
- package/dist/scanner/types.d.ts +4 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<strong>Claude Code
|
|
6
|
+
<strong>Claude Code · Codex · Gemini용 tmux 상태바 모니터 — AI 코딩 세션을 실시간으로 추적하세요</strong>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
|
|
22
22
|
## 왜 marmonitor인가?
|
|
23
23
|
|
|
24
|
-
tmux에서 여러 AI 코딩 에이전트를 동시에 실행하는
|
|
24
|
+
tmux에서 여러 AI 코딩 에이전트를 동시에 실행하는 건 이제 일상입니다 — Claude Code가 백엔드를 리팩토링하고, Codex가 다른 패널에서 테스트를 작성하고, Gemini가 문서를 검토합니다. 하지만 세션이 늘어날수록 같은 문제에 부딪힙니다:
|
|
25
25
|
|
|
26
26
|
- 패널로 전환했더니 에이전트가 10분째 `allow` 승인을 기다리고 있었다
|
|
27
27
|
- 방금 작업하던 Codex 세션이 어느 윈도우에 있는지 기억나지 않는다
|
|
28
28
|
- 여러 세션에서 토큰을 얼마나 소모했는지 알 수 없다
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
**이걸 보여주는 대시보드가 없습니다.** 패널을 하나하나 돌아가며 직접 확인해야 합니다.
|
|
31
31
|
|
|
32
|
-
**marmonitor**가 이 문제를 해결합니다. tmux.conf에 한 줄만 추가하면, 상태바가 머신에서 실행 중인 모든 AI
|
|
32
|
+
**marmonitor**가 이 문제를 해결합니다. tmux.conf에 한 줄만 추가하면, 상태바가 로컬 머신에서 실행 중인 모든 AI 세션을 실시간으로 보여주는 컨트롤 패널이 됩니다.
|
|
33
33
|
|
|
34
34
|
<p align="center">
|
|
35
35
|
<img src="docs/use_sample.png" alt="marmonitor tmux 상태바" width="640">
|
|
36
36
|
<br>
|
|
37
|
-
<em>에이전트 수, 단계 뱃지,
|
|
37
|
+
<em>에이전트 수, 단계 뱃지, 번호 붙은 어텐션 필 — 모두 tmux 상태바에서 확인할 수 있습니다</em>
|
|
38
38
|
</p>
|
|
39
39
|
|
|
40
40
|
### 주요 기능
|
|
@@ -59,9 +59,9 @@ tmux에서 여러 AI 코딩 에이전트를 동시에 실행하는 것은 이제
|
|
|
59
59
|
<em>모든 세션의 상태, 토큰, 단계, CPU/MEM, 워커 프로세스 트리</em>
|
|
60
60
|
</p>
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
**에이전트 수정 불필요** — API 키, 플러그인, 코드 변경 없이 바로 쓸 수 있습니다. marmonitor는 외부에서 로컬 프로세스 정보와 세션 파일을 읽습니다. 명령어 두 개만 실행하면 됩니다: `npm install -g marmonitor`, `marmonitor setup tmux`.
|
|
63
63
|
|
|
64
|
-
> **tmux + AI 멀티세션
|
|
64
|
+
> **tmux + AI 멀티세션 워크플로우에 맞춰 만들었습니다.** 매일 5개 이상의 AI 코딩 세션을 여러 프로젝트에서 실행한다면, marmonitor가 컨텍스트 전환을 추측에서 상태바 한 번 확인으로 바꿔줍니다.
|
|
65
65
|
|
|
66
66
|
## 지원 에이전트
|
|
67
67
|
|
|
@@ -87,7 +87,7 @@ marmonitor setup tmux
|
|
|
87
87
|
|
|
88
88
|
[marmonitor-tmux](https://github.com/mjjo16/marmonitor-tmux) 플러그인을 `~/.tmux.conf`에 추가합니다. tmux 안에서 `prefix + I`을 눌러 활성화하세요.
|
|
89
89
|
|
|
90
|
-
`marmonitor`를 업그레이드한 뒤에는
|
|
90
|
+
`marmonitor`를 업그레이드한 뒤에는 tmux 연동도 업데이트가 필요한지 확인하세요:
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
93
|
marmonitor update-integration
|
|
@@ -137,7 +137,19 @@ npm link
|
|
|
137
137
|
|
|
138
138
|
## 빠른 시작
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
### 데몬 시작
|
|
141
|
+
|
|
142
|
+
marmonitor는 2초마다 AI 세션을 스캔하는 백그라운드 데몬으로 실행됩니다:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
marmonitor start # 데몬 시작
|
|
146
|
+
marmonitor stop # 데몬 중지
|
|
147
|
+
marmonitor restart # 데몬 재시작 (예: npm 업데이트 후)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
모든 명령어가 동작하려면 데몬이 실행 중이어야 합니다. `marmonitor setup tmux`를 실행하면 자동으로 시작됩니다.
|
|
151
|
+
|
|
152
|
+
### tmux 단축키
|
|
141
153
|
|
|
142
154
|
| 단축키 | 동작 |
|
|
143
155
|
|--------|------|
|
|
@@ -145,16 +157,33 @@ npm link
|
|
|
145
157
|
| `prefix + j` | 점프 팝업 — 이동할 세션 선택 |
|
|
146
158
|
| `prefix + m` | 독 — 컴팩트 모니터 패널 |
|
|
147
159
|
| `Option+1~5` | 어텐션 세션 #1~5로 바로 이동 |
|
|
160
|
+
| `Option+`` | 이전 패널로 돌아가기 |
|
|
148
161
|
|
|
149
|
-
CLI
|
|
162
|
+
### CLI 명령어
|
|
150
163
|
|
|
151
164
|
```bash
|
|
152
165
|
marmonitor status # 전체 세션 목록
|
|
153
166
|
marmonitor attention # 입력이 필요한 세션 확인
|
|
167
|
+
marmonitor activity # 각 세션의 활동 내역 (도구 호출 + 토큰)
|
|
154
168
|
marmonitor watch # 실시간 전체 화면 모니터
|
|
169
|
+
marmonitor jump-back # 마지막 점프 이전 패널로 복귀
|
|
155
170
|
marmonitor help # 모든 명령어 및 옵션
|
|
156
171
|
```
|
|
157
172
|
|
|
173
|
+
### 활동 로그
|
|
174
|
+
|
|
175
|
+
AI 세션이 실제로 수행한 작업을 추적합니다 — 파일 편집, bash 명령어, 사용 토큰:
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
marmonitor activity # 오늘의 활동
|
|
179
|
+
marmonitor activity --pid 1234 # PID로 필터링
|
|
180
|
+
marmonitor activity --session abc # 세션 ID로 필터링
|
|
181
|
+
marmonitor activity --days 3 # 최근 3일
|
|
182
|
+
marmonitor activity --json # JSON 출력
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
활동 내역은 데몬이 자동으로 수집하며 `~/.config/marmonitor/activity-log/`에 저장됩니다 (7일 보관).
|
|
186
|
+
|
|
158
187
|
## 단계 아이콘
|
|
159
188
|
|
|
160
189
|
| 아이콘 | 단계 | 의미 |
|
|
@@ -169,10 +198,10 @@ marmonitor help # 모든 명령어 및 옵션
|
|
|
169
198
|
| 레이블 | 의미 |
|
|
170
199
|
|--------|------|
|
|
171
200
|
| `[Active]` | CPU 활동 감지됨 |
|
|
172
|
-
| `[Idle]` |
|
|
201
|
+
| `[Idle]` | 프로세스는 살아 있지만 최근 활동 없음 |
|
|
173
202
|
| `[Stalled]` | 장기간 활동 없음 |
|
|
174
203
|
| `[Dead]` | 세션 파일은 있지만 프로세스가 종료됨 |
|
|
175
|
-
| `[Unmatched]` | AI 프로세스는 발견되었지만
|
|
204
|
+
| `[Unmatched]` | AI 프로세스는 발견되었지만 일치하는 세션 없음 |
|
|
176
205
|
|
|
177
206
|
## tmux 플러그인
|
|
178
207
|
|
|
@@ -182,11 +211,20 @@ marmonitor help # 모든 명령어 및 옵션
|
|
|
182
211
|
- 팝업, 점프, 독 키 바인딩
|
|
183
212
|
- Option+1~5 다이렉트 점프
|
|
184
213
|
|
|
185
|
-
|
|
214
|
+
`@marmonitor-*` 옵션으로 원하는 대로 바꿀 수 있습니다. 자세한 내용은 [플러그인 README](https://github.com/mjjo16/marmonitor-tmux)를 참조하세요.
|
|
215
|
+
|
|
216
|
+
### 뱃지 스타일
|
|
217
|
+
|
|
218
|
+
`integration.tmux.badgeStyle`로 tmux 뱃지와 터미널 텍스트 출력의 스타일을 통일할 수 있습니다.
|
|
219
|
+
|
|
220
|
+
- `basic` — 기본 컬러 필
|
|
221
|
+
- `basic-mono` — Powerline 테두리의 단색 필
|
|
222
|
+
- `text` — 배경 없는 컬러 텍스트
|
|
223
|
+
- `text-mono` — 회색조 텍스트 전용
|
|
186
224
|
|
|
187
225
|
## 설정
|
|
188
226
|
|
|
189
|
-
|
|
227
|
+
다음 경로를 순서대로 찾아 먼저 발견된 파일을 적용합니다:
|
|
190
228
|
|
|
191
229
|
1. `$XDG_CONFIG_HOME/marmonitor/settings.json`
|
|
192
230
|
2. `~/.config/marmonitor/settings.json`
|
|
@@ -220,6 +258,7 @@ marmonitor settings-init --stdout
|
|
|
220
258
|
},
|
|
221
259
|
"integration": {
|
|
222
260
|
"tmux": {
|
|
261
|
+
"badgeStyle": "basic",
|
|
223
262
|
"keys": {
|
|
224
263
|
"attentionPopup": "a",
|
|
225
264
|
"jumpPopup": "j",
|
|
@@ -241,10 +280,14 @@ npm uninstall -g marmonitor # CLI 제거
|
|
|
241
280
|
## 안전성
|
|
242
281
|
|
|
243
282
|
- **기본적으로 읽기 전용** — 관찰만 하며, 세션을 수정하지 않습니다
|
|
244
|
-
- **네트워크 미사용** —
|
|
283
|
+
- **네트워크 미사용** — 외부로 연결하지 않으며, 모든 데이터는 로컬에 남습니다
|
|
245
284
|
- **보수적인 기본값** — 모든 연동 기능은 옵트인 방식입니다
|
|
246
285
|
- **tmux 우선** — WezTerm/iTerm2 네이티브 지원은 현재 일시 중단 상태입니다
|
|
247
286
|
|
|
287
|
+
## 변경 이력
|
|
288
|
+
|
|
289
|
+
릴리스 이력과 호환성 변경사항은 [CHANGELOG.md](CHANGELOG.md)를 참조하세요.
|
|
290
|
+
|
|
248
291
|
## 기여하기
|
|
249
292
|
|
|
250
293
|
설정, 커밋 규칙, PR 가이드라인은 [CONTRIBUTING.md](CONTRIBUTING.md)를 참조하세요. 아키텍처 세부사항은 [ARCHITECTURE.md](ARCHITECTURE.md)를 확인하세요.
|
|
@@ -252,10 +295,10 @@ npm uninstall -g marmonitor # CLI 제거
|
|
|
252
295
|
## 알려진 제한사항
|
|
253
296
|
|
|
254
297
|
- 패널 점프 기능은 tmux가 필요합니다
|
|
255
|
-
- WezTerm / iTerm2 네이티브 바 지원은
|
|
298
|
+
- WezTerm / iTerm2 네이티브 바 지원은 일시 중단 상태이며, 현재 tmux만 지원합니다
|
|
256
299
|
- Gemini 권한 감지는 Ink TUI 아키텍처로 인해 제한적입니다
|
|
257
300
|
- 단계 감지는 휴리스틱 기반으로, 에이전트별 정확도가 다를 수 있습니다
|
|
258
|
-
- macOS
|
|
301
|
+
- macOS 기준으로 개발했으며, Linux에서는 아직 테스트하지 않았습니다
|
|
259
302
|
|
|
260
303
|
## 라이선스
|
|
261
304
|
|
package/README.md
CHANGED
|
@@ -139,7 +139,19 @@ npm link
|
|
|
139
139
|
|
|
140
140
|
## Quick Start
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
### Start the daemon
|
|
143
|
+
|
|
144
|
+
marmonitor runs as a background daemon that scans your AI sessions every 2 seconds:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
marmonitor start # Start the daemon
|
|
148
|
+
marmonitor stop # Stop the daemon
|
|
149
|
+
marmonitor restart # Restart (e.g. after npm update)
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
The daemon must be running for all other commands to work. `marmonitor setup tmux` starts it automatically.
|
|
153
|
+
|
|
154
|
+
### tmux shortcuts
|
|
143
155
|
|
|
144
156
|
| Shortcut | Action |
|
|
145
157
|
|----------|--------|
|
|
@@ -147,16 +159,33 @@ Once installed, your tmux status bar automatically shows AI session badges. You
|
|
|
147
159
|
| `prefix + j` | Jump popup — pick a session to jump to |
|
|
148
160
|
| `prefix + m` | Dock — compact monitor pane |
|
|
149
161
|
| `Option+1~5` | Direct jump to attention session #1~5 |
|
|
162
|
+
| `Option+`` | Jump back to previous pane |
|
|
150
163
|
|
|
151
|
-
CLI commands
|
|
164
|
+
### CLI commands
|
|
152
165
|
|
|
153
166
|
```bash
|
|
154
167
|
marmonitor status # Full session inventory
|
|
155
168
|
marmonitor attention # What needs your input?
|
|
169
|
+
marmonitor activity # What did each session do? (tool calls + tokens)
|
|
156
170
|
marmonitor watch # Live full-screen monitor
|
|
171
|
+
marmonitor jump-back # Return to pane before last jump
|
|
157
172
|
marmonitor help # All commands and options
|
|
158
173
|
```
|
|
159
174
|
|
|
175
|
+
### Activity log
|
|
176
|
+
|
|
177
|
+
Track what your AI sessions actually did — file edits, bash commands, tokens used:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
marmonitor activity # Today's activity
|
|
181
|
+
marmonitor activity --pid 1234 # Filter by PID
|
|
182
|
+
marmonitor activity --session abc # Filter by session ID
|
|
183
|
+
marmonitor activity --days 3 # Last 3 days
|
|
184
|
+
marmonitor activity --json # JSON output
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Activity is collected automatically by the daemon and stored in `~/.config/marmonitor/activity-log/` (7-day retention).
|
|
188
|
+
|
|
160
189
|
## Phase Icons
|
|
161
190
|
|
|
162
191
|
| Icon | Phase | Meaning |
|
|
@@ -192,6 +221,8 @@ tmux badges and terminal text output can share one style via `integration.tmux.b
|
|
|
192
221
|
|
|
193
222
|
- `basic` — default colored pills
|
|
194
223
|
- `basic-mono` — monochrome pills with Powerline borders
|
|
224
|
+
- `block` — filled background badges without Powerline separator glyphs
|
|
225
|
+
- `block-mono` — monochrome filled badges without Powerline separator glyphs
|
|
195
226
|
- `text` — plain colored text, no filled background
|
|
196
227
|
- `text-mono` — grayscale text only
|
|
197
228
|
|
|
@@ -257,6 +288,10 @@ npm uninstall -g marmonitor # Remove CLI
|
|
|
257
288
|
- **Conservative defaults** — all integrations are opt-in
|
|
258
289
|
- **tmux-first** — terminal-native WezTerm/iTerm2 surfaces are currently paused
|
|
259
290
|
|
|
291
|
+
## Changelog
|
|
292
|
+
|
|
293
|
+
See [CHANGELOG.md](CHANGELOG.md) for release history and breaking changes.
|
|
294
|
+
|
|
260
295
|
## Contributing
|
|
261
296
|
|
|
262
297
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, commit conventions, and PR guidelines. For architecture details, see [ARCHITECTURE.md](ARCHITECTURE.md).
|
package/bin/postinstall.cjs
CHANGED