marmonitor 0.1.1 → 0.1.3

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
@@ -69,11 +69,38 @@ Running multiple AI coding agents in tmux is now the norm — Claude Code refact
69
69
 
70
70
  ## Install
71
71
 
72
+ ### 1. Install marmonitor
73
+
72
74
  ```bash
73
75
  npm install -g marmonitor
74
76
  ```
75
77
 
76
- Or from source:
78
+ ### 2. Add tmux plugin
79
+
80
+ Using [tpm](https://github.com/tmux-plugins/tpm) (recommended):
81
+
82
+ ```bash
83
+ # Add to ~/.tmux.conf
84
+ set -g @plugin 'mjjo16/marmonitor-tmux'
85
+ ```
86
+
87
+ Then press `prefix + I` inside tmux to install. Done.
88
+
89
+ <details>
90
+ <summary>Manual install (without tpm)</summary>
91
+
92
+ ```bash
93
+ git clone https://github.com/mjjo16/marmonitor-tmux ~/.tmux/plugins/marmonitor-tmux
94
+ ```
95
+
96
+ Add to `~/.tmux.conf`:
97
+ ```bash
98
+ run-shell ~/.tmux/plugins/marmonitor-tmux/marmonitor.tmux
99
+ ```
100
+ </details>
101
+
102
+ <details>
103
+ <summary>Install from source (development)</summary>
77
104
 
78
105
  ```bash
79
106
  git clone https://github.com/mjjo16/marmonitor.git
@@ -81,25 +108,26 @@ cd marmonitor
81
108
  npm install && npm run build
82
109
  npm link
83
110
  ```
111
+ </details>
84
112
 
85
113
  ## Quick Start
86
114
 
87
- ```bash
88
- # Full session inventory
89
- marmonitor status
90
-
91
- # Focused attention list — what needs your input?
92
- marmonitor attention
115
+ Once installed, your tmux status bar automatically shows AI session badges. You also get:
93
116
 
94
- # Long-running monitor
95
- marmonitor watch
96
- marmonitor dock # compact, for tmux panes
117
+ | Shortcut | Action |
118
+ |----------|--------|
119
+ | `prefix + a` | Attention popup — choose a session to review |
120
+ | `prefix + j` | Jump popup — pick a session to jump to |
121
+ | `prefix + m` | Dock — compact monitor pane |
122
+ | `Option+1~5` | Direct jump to attention session #1~5 |
97
123
 
98
- # Jump to a session's tmux pane
99
- marmonitor jump --attention-index 1
124
+ CLI commands:
100
125
 
101
- # tmux statusline widget
102
- marmonitor --statusline --statusline-format tmux-badges
126
+ ```bash
127
+ marmonitor status # Full session inventory
128
+ marmonitor attention # What needs your input?
129
+ marmonitor watch # Live full-screen monitor
130
+ marmonitor help # All commands and options
103
131
  ```
104
132
 
105
133
  ## Phase Icons
@@ -121,32 +149,15 @@ marmonitor --statusline --statusline-format tmux-badges
121
149
  | `[Dead]` | Session file exists but process is gone |
122
150
  | `[Unmatched]` | AI process found but no matching session |
123
151
 
124
- ## Terminal Integration
125
-
126
- ### tmux
127
-
128
- Add to your `~/.tmux.conf`:
129
-
130
- ```bash
131
- # Two-line status bar with AI session badges
132
- set -g status-right '#(marmonitor --statusline --statusline-format tmux-badges)'
133
-
134
- # Popup attention chooser (prefix + a)
135
- bind a display-popup -E -w 80 -h 20 "marmonitor attention --interactive"
136
-
137
- # Direct jump by number (Option+1~5)
138
- bind -n M-1 run-shell "marmonitor jump --attention-index 1"
139
- ```
140
-
141
- See [`examples/tmux/`](examples/tmux/) for full setup.
152
+ ## tmux Plugin
142
153
 
143
- ### Non-tmux terminal surfaces
154
+ The [marmonitor-tmux](https://github.com/mjjo16/marmonitor-tmux) plugin handles all tmux setup automatically:
144
155
 
145
- WezTerm / iTerm2 terminal-native surfaces are currently paused.
156
+ - 2nd status line with agent badges and attention pills
157
+ - Key bindings for popup, jump, and dock
158
+ - Option+1~5 direct jump
146
159
 
147
- - `marmonitor` is `tmux-first`
148
- - non-tmux bars are not part of the supported default setup right now
149
- - existing WezTerm example files remain in the repo as paused reference material, not active product surface
160
+ All settings are customizable via `@marmonitor-*` options. See the [plugin README](https://github.com/mjjo16/marmonitor-tmux) for details.
150
161
 
151
162
  ## Configuration
152
163
 
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.1.0";
1
+ export declare const VERSION: string;
package/dist/version.js CHANGED
@@ -1 +1,4 @@
1
- export const VERSION = "0.1.0";
1
+ import { createRequire } from "node:module";
2
+ const require = createRequire(import.meta.url);
3
+ const pkg = require("../package.json");
4
+ export const VERSION = pkg.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marmonitor",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "author": "MJ JO <mjjo16@gmail.com>",
5
5
  "description": "tmux status bar monitor for AI coding agents — track Claude Code, Codex, Gemini sessions, tokens, and phases in real time",
6
6
  "type": "module",