@loguro/cli 1.0.4 โ 1.1.1
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 +53 -3
- package/dist/index.js +52529 -7043
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -142,13 +142,13 @@ loguro pin Pin recurring logs to track (๐ marker auto-shown on lis
|
|
|
142
142
|
loguro share Create / list / revoke public markdown shares of logs (single or multi-log)
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
### Interactive mode
|
|
145
|
+
### Interactive mode (legacy, `logs -i`)
|
|
146
146
|
|
|
147
147
|
```
|
|
148
148
|
loguro logs --interactive # or -i
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
The original one-shot TUI navigator built on top of `loguro logs`:
|
|
152
152
|
|
|
153
153
|
- `โโ` / `jk` navigate, `enter` to inspect a log, `esc` back
|
|
154
154
|
- `/` live fuzzy search (highlights matches; prefix `=` for exact substring)
|
|
@@ -163,7 +163,57 @@ In log detail:
|
|
|
163
163
|
- `s` create public share, URL auto-copied to clipboard
|
|
164
164
|
- `c` copy log ID, `o` open in web console, `j` toggle JSON-colored context
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
Pipe-friendly: without `-i` everything stays plain text streamable.
|
|
167
|
+
|
|
168
|
+
### TUI (multi-view app, `loguro tui`)
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
loguro tui # opens at Logs view
|
|
172
|
+
loguro tui --view=saved-views # jump straight to a specific view
|
|
173
|
+
loguro tui --app=prod # use a configured app shortcut
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
A persistent multi-view Ink app. Unlike `logs -i` (one shot, one feed), `loguro tui` is a small terminal app with view stack, navigation, command palette, and shared search state. Press `?` inside for the full keybinding reference (multi-section, navigable with โ โ).
|
|
177
|
+
|
|
178
|
+
**Views**
|
|
179
|
+
- **Logs** (`1`) โ live tail with cursor + paging. Scroll position, applied filter and live/pause state survive when you go into a detail view and come back. `space` toggles live polling (green โ live, yellow โธ paused).
|
|
180
|
+
- **Pins** (`2`) โ manage pinned logs (fingerprint-based). Resolve / mark-watching / delete inline.
|
|
181
|
+
- **Saved Views** (`3`) โ backend-synced saved filters (same store the web console uses). `enter` to apply, `d` to delete. Create new ones from Logs with `s`.
|
|
182
|
+
- **Docs** (`4`) โ browse `logu.ro/docs/*` inline. `/` fuzzy-search across all pages, `enter` opens, `tab` switches focus list/body, `r` refreshes cache. Markdown is rendered with headings/code/lists/quotes. Cached locally for 24h in `~/.config/loguro/docs-cache/`.
|
|
183
|
+
- **Alerts** (`5`) โ list / toggle / delete project alerts. `c` opens the create-alert wizard (name โ channel โ levels โ message-substring โ cooldown). You can also derive an alert from a log: open the log and press `a` to start the wizard with name/level/message pre-filled.
|
|
184
|
+
- **Log detail** โ `a` create alert from this log (wizard pre-filled with name/level/message), `p` pin, `t` trace, `c` copy id, `o` open in web, `j` JSON view, `y` copy full JSON.
|
|
185
|
+
- **Trace** โ every log sharing a trace id, in order.
|
|
186
|
+
- **Command palette** (`:`) โ fuzzy-search every registered action and view by title/keyword.
|
|
187
|
+
|
|
188
|
+
**Global keys**
|
|
189
|
+
- `1` / `2` / `3` / `4` / `5` โ switch to Logs / Pins / Saved Views / Docs / Alerts
|
|
190
|
+
- `/` โ focus search bar (filter logs by the same query syntax as the web)
|
|
191
|
+
- `:` โ command palette
|
|
192
|
+
- `?` โ multi-section help (this is the source of truth for every key)
|
|
193
|
+
- `q` โ pop one view from the stack
|
|
194
|
+
- `Q` โ quit the TUI
|
|
195
|
+
- `esc` โ close overlay / unfocus search / pop view
|
|
196
|
+
|
|
197
|
+
**Logs navigation**
|
|
198
|
+
- `โ/โ` or `j/k` โ move by 1
|
|
199
|
+
- `ctrl+โ/โ` โ jump 10 lines
|
|
200
|
+
- `g` / `G` โ top / bottom
|
|
201
|
+
- `n` โ next page (older logs)
|
|
202
|
+
- `r` โ reload
|
|
203
|
+
- `space` โ pause / resume live tail
|
|
204
|
+
- `s` โ save current filter as a saved view
|
|
205
|
+
- `v` โ open Saved Views list
|
|
206
|
+
- `x` โ clear current filter
|
|
207
|
+
|
|
208
|
+
**Filter syntax**
|
|
209
|
+
|
|
210
|
+
Same as the web console: `level:error @last-1h !context.env:staging "payment timeout"`. The search bar offers static completions today (filter keys + common operators); live values are next.
|
|
211
|
+
|
|
212
|
+
**Layout**
|
|
213
|
+
|
|
214
|
+
Top: a two-row header โ first row shows `loguro ยท <slug>` on the left and a **health badge** on the right (`โ healthy 3% โ` / `โ warning 8% โ` / `โ critical 25% โ` / `ยท idle` for empty projects). The badge polls every 60s, derived from the error-rate trend over the last 20 minutes. Second row: view tabs. Bottom: status bar (item count, live state, applied query), search bar, shortcuts row. The shortcuts row auto-truncates to terminal width and shows `+N ?` if anything was hidden โ open `?` for the full keymap.
|
|
215
|
+
|
|
216
|
+
All actions hit the same backend endpoints as the standalone commands. Anything you do in the TUI (pins, saved views, alerts, etc.) shows up on the web too.
|
|
167
217
|
|
|
168
218
|
### Zero-UI workflow
|
|
169
219
|
|