gh-glance 0.18.1 → 0.19.0
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/CHANGELOG.md +31 -1
- package/README.md +78 -26
- package/index.mjs +921 -105
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.19.0] - 2026-11-02
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- A fifth section, `5:Notifications` (`Notices` on narrow panes), keeps an
|
|
15
|
+
in-memory history of status events for the pane: automatic waits, failed
|
|
16
|
+
refreshes, Security source notes, refreshes and cleared causes, newest
|
|
17
|
+
first. It starts with earlier recovery transitions from the shared journal.
|
|
18
|
+
The tab shows an unread count, red for problems and causes that need action,
|
|
19
|
+
yellow for waits.
|
|
20
|
+
- Notifications reports GitHub's platform status from githubstatus.com:
|
|
21
|
+
incidents and outages for API Requests, Actions, Issues, Pull Requests, Git
|
|
22
|
+
Operations and Webhooks. It checks every 10 minutes, on opening the view, on
|
|
23
|
+
`r` in the view and when a tab starts failing, spends no GitHub API quota,
|
|
24
|
+
runs only for `github.com`, and is off with `GH_GLANCE_GITHUB_STATUS=off`.
|
|
25
|
+
An incident posted without a component is a problem only when its name
|
|
26
|
+
names something the dashboard shows; otherwise it is listed as information.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Lines above a table now appear only for causes that need you to act, such
|
|
31
|
+
as `gh-glance --doctor` or `gh auth status`. Waits such as "GitHub budget
|
|
32
|
+
evidence is old", `Waiting to update`, `Checked HH:MM`, `cached` ages and the
|
|
33
|
+
Security "not enabled" notes moved to Notifications, so the table no longer
|
|
34
|
+
moves when they start or end.
|
|
35
|
+
- The tab bar fits five sections on one row: full names from about 98
|
|
36
|
+
columns, short names below that, digits with counts on narrow panes, and
|
|
37
|
+
bare digits (keeping the Notifications count) below about 30 columns.
|
|
38
|
+
|
|
10
39
|
## [0.18.1] - 2026-10-31
|
|
11
40
|
|
|
12
41
|
### Fixed
|
|
@@ -1392,7 +1421,8 @@ engineering, security, QA and UX. What follows is what changed as a result.
|
|
|
1392
1421
|
- The `main` field from `package.json`. It advertised the file as importable,
|
|
1393
1422
|
but importing it took over the terminal or exited the host process.
|
|
1394
1423
|
|
|
1395
|
-
[Unreleased]: https://github.com/juan294/gh-glance/compare/v0.
|
|
1424
|
+
[Unreleased]: https://github.com/juan294/gh-glance/compare/v0.19.0...HEAD
|
|
1425
|
+
[0.19.0]: https://github.com/juan294/gh-glance/compare/v0.18.1...v0.19.0
|
|
1396
1426
|
[0.18.1]: https://github.com/juan294/gh-glance/compare/v0.18.0...v0.18.1
|
|
1397
1427
|
[0.18.0]: https://github.com/juan294/gh-glance/compare/v0.17.1...v0.18.0
|
|
1398
1428
|
[0.17.1]: https://github.com/juan294/gh-glance/compare/v0.17.0...v0.17.1
|
package/README.md
CHANGED
|
@@ -20,15 +20,15 @@ pane next to your editor) where you want an always-on glance at repo activity
|
|
|
20
20
|
without switching to the browser.
|
|
21
21
|
|
|
22
22
|
```
|
|
23
|
-
[1:Actions (4)]
|
|
23
|
+
[1:Actions (4)] 2:Issues 3:PRs 4:Security 5:Notices
|
|
24
24
|
───────────────────────────────────────────────────────────────────────────
|
|
25
25
|
╭─ Actions · owner/repo ──────────────────────────────────────────────────╮
|
|
26
26
|
│ TITLE │WORKFLOW │BRANCH │TIME │UPDATED │
|
|
27
27
|
│ ─────────────────────────────────────────────────────────────────────── │
|
|
28
|
-
│ >+ ci: pin actions to com… #443 CI develop 1m20s
|
|
29
|
-
│ x fix: restore the prima… #442 Code… develop 1m28s
|
|
30
|
-
│ + chore: bump dependenci… #441 CI dependa…int-10 30s
|
|
31
|
-
│ - docs: update the readme #440 CI develop 15s
|
|
28
|
+
│ >+ ci: pin actions to com… #443 CI develop 1m20s 93d ago │
|
|
29
|
+
│ x fix: restore the prima… #442 Code… develop 1m28s 93d ago │
|
|
30
|
+
│ + chore: bump dependenci… #441 CI dependa…int-10 30s 93d ago │
|
|
31
|
+
│ - docs: update the readme #440 CI develop 15s 94d ago │
|
|
32
32
|
│ │
|
|
33
33
|
│ │
|
|
34
34
|
╰──────────────────────────────────────────────────────────────── 4 of 4 ─╯
|
|
@@ -47,7 +47,8 @@ without switching to the browser.
|
|
|
47
47
|
> red" is answerable without switching to that tab — an `x` means the tab's
|
|
48
48
|
> latest fetch failed, and a `?` in place of the Security count means its
|
|
49
49
|
> endpoints could not be read, which is not the same as there being nothing to
|
|
50
|
-
> report.
|
|
50
|
+
> report. `5:Notices` gains an unread count such as `(3)` when waits or
|
|
51
|
+
> problems arrive while it is closed; see [Notifications](#notifications).
|
|
51
52
|
|
|
52
53
|
<!-- contract:allow-emoji -- the check/cross above stand in for Nerd Font
|
|
53
54
|
Octicons the app actually draws; they are literal examples, not decoration. -->
|
|
@@ -86,7 +87,10 @@ current.
|
|
|
86
87
|
set may still be incomplete. Code and secret scanning require GitHub Advanced
|
|
87
88
|
Security -- see [Limitations](#limitations).
|
|
88
89
|
- Tab bar with live counts, pinned to the top of the pane above a divider,
|
|
89
|
-
switchable via `1`-`
|
|
90
|
+
switchable via `1`-`5`, arrow keys, or `Tab`/`Shift+Tab`
|
|
91
|
+
- **[Notifications](#notifications)** -- `5` opens the pane's status history:
|
|
92
|
+
automatic waits, failed refreshes, Security source notes, cleared causes and
|
|
93
|
+
GitHub's own platform status. Only causes that need you stay above a table
|
|
90
94
|
- Adjustable full-table columns, with visible header grips, a keyboard width
|
|
91
95
|
mode, and preferences kept separately for each tab
|
|
92
96
|
- `lazygit`-style panel frame: the tab name sits in the top border, the
|
|
@@ -302,7 +306,8 @@ stdout isn't a terminal rather than streaming redraw frames into a pipe.
|
|
|
302
306
|
| Key | Action |
|
|
303
307
|
|---|---|
|
|
304
308
|
| `1` `2` `3` `4` | Jump to Actions / Issues / Pull Requests / Security |
|
|
305
|
-
|
|
|
309
|
+
| `5` | Open Notifications, the pane's status history. `↑` / `↓` and `PgUp` / `PgDn` scroll it, `r` checks GitHub's status page, and `1`-`4` or `Esc` return to a section. |
|
|
310
|
+
| `←` / `→` | Previous / next tab (Notifications is the fifth position) |
|
|
306
311
|
| `Tab` / `Shift+Tab` | Next / previous tab |
|
|
307
312
|
| `↑` / `↓` or `j` / `k` | Move the cursor between rows |
|
|
308
313
|
| `PgUp` / `PgDn` | Move a page at a time |
|
|
@@ -322,6 +327,47 @@ stdout isn't a terminal rather than streaming redraw frames into a pipe.
|
|
|
322
327
|
| `?` | Open or close contextual help; `n` / `p` moves through its pages |
|
|
323
328
|
| `q` / `Esc` / `Ctrl+C` | Quit from ordinary navigation; `Esc` leaves feature views, editors and width mode. While editing a query or range, `q` is text and `Ctrl+C` quits. |
|
|
324
329
|
|
|
330
|
+
### Notifications
|
|
331
|
+
|
|
332
|
+
Lines above a table appear only when you must act: a local coordination store
|
|
333
|
+
that needs `gh-glance --doctor`, a lost GitHub login, an inaccessible
|
|
334
|
+
repository, or a repeated request limit that waits for `r`. Everything else
|
|
335
|
+
goes to the fifth section, `5:Notifications`: automatic waits (budget checks,
|
|
336
|
+
quota pacing, other panes), failed refreshes with their raw text, Security
|
|
337
|
+
sources that are not enabled or not available, refreshes, and the moment each
|
|
338
|
+
cause cleared. The table no longer moves when a wait starts or ends.
|
|
339
|
+
|
|
340
|
+
Events are listed newest first, with the time, a level glyph, the source and
|
|
341
|
+
the text; repeats are counted (`x12`), and an open wait shows its next retry.
|
|
342
|
+
History is in memory for the pane, starts with the earlier recovery
|
|
343
|
+
transitions from the shared journal (dimmed, `Earlier session`), and keeps the
|
|
344
|
+
latest 500 events.
|
|
345
|
+
|
|
346
|
+
The first row of the view is GitHub's own platform status, read from
|
|
347
|
+
`https://www.githubstatus.com/api/v2/summary.json` every 10 minutes (15 after
|
|
348
|
+
a failure), when you open the view, when you press `r` in it, and when a tab
|
|
349
|
+
starts failing (at most once a minute). It is a plain HTTPS request with a
|
|
350
|
+
validator, outside `gh` and the API governor, so it spends no GitHub API
|
|
351
|
+
quota. Incidents and outages that touch API Requests, Actions, Issues, Pull
|
|
352
|
+
Requests, Git Operations or Webhooks are problems: each keeps the badge red
|
|
353
|
+
until it resolves. About a third of GitHub's incidents are posted without a
|
|
354
|
+
component; those count as problems when the name names something the
|
|
355
|
+
dashboard shows (Actions, runners, requests, the API, Git, repositories,
|
|
356
|
+
Dependabot, code or secret scanning, or "GitHub services"), and are listed as
|
|
357
|
+
information otherwise, so a Copilot or billing incident never turns the badge
|
|
358
|
+
red. Incidents tagged only with other products are not listed. The check runs only
|
|
359
|
+
when the target host is `github.com` and is off with
|
|
360
|
+
`GH_GLANCE_GITHUB_STATUS=off` (see [Configuration](#configuration)). The
|
|
361
|
+
request uses Node's built-in `fetch`, which does not read `HTTPS_PROXY`; where
|
|
362
|
+
only a proxy reaches the internet the row reads "GitHub status unavailable",
|
|
363
|
+
and `GH_GLANCE_GITHUB_STATUS=off` turns it off.
|
|
364
|
+
|
|
365
|
+
The tab label shows how many waits and problems arrived since you last opened
|
|
366
|
+
the view, for example `5:Notifications (3)`: red when any is a problem or needs
|
|
367
|
+
action, yellow when all are waits. Routine refreshes never change the badge, so
|
|
368
|
+
an idle pane still redraws nothing. The status bar keeps its one-row state
|
|
369
|
+
(`Paused`, `Stale`, ...) as before.
|
|
370
|
+
|
|
325
371
|
### Adjusting column widths
|
|
326
372
|
|
|
327
373
|
Press `w` to adjust the named fixed-width columns in the visible full table.
|
|
@@ -631,6 +677,7 @@ Environment variables work too, and the flags take precedence:
|
|
|
631
677
|
| `GH_TOKEN`, `GITHUB_TOKEN`, `GH_ENTERPRISE_TOKEN`, `GITHUB_ENTERPRISE_TOKEN` | Used by the default `gh` provider with `gh`'s host-specific precedence. gh-glance never logs or stores the raw values. One-way credential digests keep private rows access-partitioned; credentials GitHub verifies as the same principal share its quota ledger. App-provider children remove these variables before setting their memory-only installation token. |
|
|
632
678
|
| `GH_CONFIG_DIR` | Selects `gh`'s account configuration and contributes its normalized identity to the cache and governor namespaces. Separate values can isolate simultaneous panes on different accounts; see [No account pinning](#limitations). |
|
|
633
679
|
| `GH_GLANCE_REFRESH=<seconds>` | Minimum active-tab poll interval, 2-3600. Sets the floor for every pane in a shell; `--refresh` takes precedence. See [Rate limit](#rate-limit). |
|
|
680
|
+
| `GH_GLANCE_GITHUB_STATUS=off` | Turn off the GitHub platform status check in Notifications. An `http(s)` URL instead points it at another Statuspage `summary.json` endpoint. Any other value also turns it off and says so in the view. |
|
|
634
681
|
| `GH_GLANCE_ICONS=unicode` | Unicode status glyphs and single-cell text substitutes for Nerd Font row icons |
|
|
635
682
|
| `GH_GLANCE_ICONS=ascii` | ASCII-only status and row icons |
|
|
636
683
|
| `GH_GLANCE_NO_ANIMATION=1` | Stop status and run-state motion. Semantic words such as Watching, Checking, and Paused still report what is happening. |
|
|
@@ -936,18 +983,20 @@ recurring polling interval. When another live local pane alone owns the lane
|
|
|
936
983
|
ahead of this pane, the detail says `sharing N` instead. The detail is capped
|
|
937
984
|
at `99m+`.
|
|
938
985
|
|
|
939
|
-
When a refresh fails, the last successful rows stay visible
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
observation. A
|
|
950
|
-
|
|
986
|
+
When a refresh fails, the last successful rows stay visible instead of
|
|
987
|
+
disappearing. If gh-glance is restarted while GitHub is still rate-limiting, it
|
|
988
|
+
loads the saved rows for that same target immediately. Their age remains
|
|
989
|
+
explicit through the `stale` label, and the footer still reports the current
|
|
990
|
+
hold; cached data never turns a failure into a false success. A rate limit
|
|
991
|
+
retries automatically, so it does not take rows from the table: a sustained
|
|
992
|
+
hold is listed in [Notifications](#notifications) with its cause (Core,
|
|
993
|
+
GraphQL, or the tab that hit it) and next automatic retry, and the badge turns
|
|
994
|
+
yellow. Only a hold that needs you, such as a repeated limit that waits for
|
|
995
|
+
`r`, stays above the table with its action and the age of the last complete
|
|
996
|
+
source observation. A successful budget check, cache load, or heartbeat cannot
|
|
997
|
+
make old rows fresh. A validated unchanged `304` response does count as a new
|
|
998
|
+
source observation. A Security check answered only from capability backoff
|
|
999
|
+
sends no request and does not count. Unknown older spend remains charged until
|
|
951
1000
|
owner/child quiescence and a later matching observer establish safe retirement.
|
|
952
1001
|
A verified new system boot can establish that boundary for otherwise
|
|
953
1002
|
unidentifiable older children; the app does not assume a restart or reset alone
|
|
@@ -1056,9 +1105,12 @@ monitor makes no GitHub request or coordination write.
|
|
|
1056
1105
|
- **Security tab**: code scanning and secret scanning alerts require [GitHub
|
|
1057
1106
|
Advanced Security](https://docs.github.com/en/code-security/getting-started/github-security-features).
|
|
1058
1107
|
On repos/plans without it, `gh-glance` doesn't crash or spam errors -- it
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1108
|
+
lists each disabled source, such as `Code scanning: not enabled (needs GitHub
|
|
1109
|
+
Advanced Security)`, in [Notifications](#notifications) instead of above the
|
|
1110
|
+
table (when no alerts are shown, the Security panel collapses them into one
|
|
1111
|
+
line such as `Code scanning, Secret scanning: not enabled here`), and still
|
|
1112
|
+
displays whatever it *can* get (Dependabot alerts work independently of
|
|
1113
|
+
GHAS). If your repo has GHAS enabled, those alerts just
|
|
1062
1114
|
show up automatically -- no configuration needed.
|
|
1063
1115
|
|
|
1064
1116
|
If the alert endpoints cannot be read at all -- an expired SAML session, a
|
|
@@ -1143,11 +1195,11 @@ GH_GLANCE_ICONS=ascii gh-glance
|
|
|
1143
1195
|
| `GraphQL: Could not resolve to a Repository...` in older gh-glance versions | The response has the same ambiguity: a missing or renamed target, or a private repository not visible to the active account. Run `gh-glance --doctor --probe`. |
|
|
1144
1196
|
| Actions says `not available for this repository` while Repository access is `ok` | The repository resolved, but that endpoint is unavailable; inspect the corresponding `--doctor --probe` block. |
|
|
1145
1197
|
| Row icons are blank boxes | Your terminal font is not a Nerd Font. Use `GH_GLANCE_ICONS=unicode`. |
|
|
1146
|
-
|
|
|
1198
|
+
| Notifications lists a Security "not enabled" note | Code scanning and secret scanning need GitHub Advanced Security. Dependabot alerts work independently. The note appears only when the feature genuinely is unavailable: auth, SSO and network failures show the real error instead. |
|
|
1147
1199
|
| `none of the git remotes ... point to a known GitHub host` | `gh` is not authenticated for that host. Run `gh auth login --hostname <host>`. |
|
|
1148
1200
|
| Security tab empty on an enterprise host in an older gh-glance version | Older versions could route alert endpoints separately. Current gh-glance routes every API call and the governor to one effective host; use `--repo host/owner/name`, `GH_HOST`, or a qualified `GH_REPO`, then confirm the resolved host with `--doctor`. |
|
|
1149
1201
|
| Tabs start failing after working for a while | The enterprise SAML session lapsed. Re-authorize in the browser; the dashboard recovers within about 30 seconds. Run `gh-glance --doctor --probe` to confirm. |
|
|
1150
|
-
| A tab's count is red | That tab's last fetch failed. The error
|
|
1202
|
+
| A tab's count is red | That tab's last fetch failed. The error is listed in Notifications (`5`); when it needs you (login, repository or endpoint access), it also stays above that tab's table, translated into what to do about it where `gh-glance` recognises the failure. |
|
|
1151
1203
|
| Security tab shows `?` instead of a number | The alert endpoints could not be read at all -- an expired SAML session, a token without `security_events`, or an org OAuth restriction. `?` means "unknown", not "zero"; run `gh-glance --doctor --probe` to see which probe failed and how it was classified. |
|
|
1152
1204
|
| `Watching` with `next 2m` | The active tab has a shared budget probe or safe grant scheduled. The interval names this grant only; it is not a recurring polling interval. Pressing `r` raises safe priority but cannot bypass the lane or reserve. |
|
|
1153
1205
|
| `Shared` | This pane is using a generation acquired for matching local subscribers. This is coalescing, not quota scarcity. |
|
|
@@ -1155,7 +1207,7 @@ GH_GLANCE_ICONS=ascii gh-glance
|
|
|
1155
1207
|
| `Paused` without a reset time | Budget or coordinator evidence is unknown, corrupt, locked, or unwritable. No data call is started. Run `gh-glance --doctor`; also check the config directory permissions and whether another live process owns its private lock. |
|
|
1156
1208
|
| `--doctor` reports an acquisition lock as `orphaned` | A dead owner or an aged incomplete lock record was found. A running pane retries recovery through the private lock protocol; plain doctor only inspects it. If the state does not change, inspect the reported lock age and the config directory permissions. |
|
|
1157
1209
|
| `--doctor` reports an acquisition lock as `busy` | A live or unconfirmed owner, or a recent incomplete lock record, is present. Keep the other pane running and check again after the reported age advances; plain doctor does not steal a lock. |
|
|
1158
|
-
| Rows stay old while the footer shows a coordination reason | The rows remain last-known-good data. The reason persists until a valid shared snapshot or completed cleanup clears that acquisition failure; a healthy rate-budget probe alone does not prove that acquisition succeeded. The footer shows the source age and
|
|
1210
|
+
| Rows stay old while the footer shows a coordination reason | The rows remain last-known-good data. The reason persists until a valid shared snapshot or completed cleanup clears that acquisition failure; a healthy rate-budget probe alone does not prove that acquisition succeeded. The footer shows the source age and Notifications (`5`) gives the longer reason. |
|
|
1159
1211
|
| A failing tab seems to have stopped retrying | Recognized endpoint failures back off rather than re-spawning `gh` at the floor. Press `r` to request a higher-priority retry, or `R` to also clear the endpoint backoff; either way the retry waits for a safe grant, so the tab remains Watching or Paused. |
|
|
1160
1212
|
| `unknown argument: -v` | `-v` used to mean `--version` and no longer does, because this CLI also has `--verbose`. Use `--version` or `--verbose` explicitly. |
|
|
1161
1213
|
| Cached rows plus `Paused`, `Stale`, or `Disconnected` | The rows are last-known-good data while the live source is blocked, overdue, or unavailable. A cache read never advances source success. The footer never calls stale or disconnected rows `Watching`. |
|