You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add remaining time and group names to grant status (#36)
Track elevation timestamps locally in ~/.grant/cache/session_timestamps.json
so grant status can show remaining session time instead of total duration.
Resolve group names from the groups eligibility API so group sessions display
human-readable names instead of UUIDs.
Both features degrade gracefully: sessions elevated outside grant show total
duration, and unresolved groups fall back to UUID display. JSON output adds
remainingSeconds and groupName as additive omitempty fields.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,10 @@ All notable changes to this project will be documented in this file.
9
9
- TTY detection with fail-fast: all interactive prompts now return a descriptive error instead of hanging when stdin is not a terminal (pipes, CI, LLM agents)
10
10
-`--output json` / `-o json` global flag for machine-readable output on all commands (`grant`, `env`, `status`, `revoke`, `favorites list`)
11
11
-`grant list` command to discover eligible cloud targets and Entra ID groups without triggering elevation; supports `--provider`, `--groups`, `--refresh`, and `--output json`
12
+
-`grant status` now shows remaining session time instead of total duration for sessions elevated via `grant` or `grant env`; sessions elevated outside the CLI continue to show total duration
13
+
-`grant status` now resolves group names from the groups eligibility API — group sessions display `Group: CloudAdmins in Contoso` instead of `Group: d554b344-uuid in 29cb7961-uuid`
14
+
- JSON output for `grant status` includes new additive fields: `remainingSeconds` (omitted when unknown) and `groupName` (omitted when unresolved)
15
+
- Session elevation timestamps tracked locally in `~/.grant/cache/session_timestamps.json` with automatic cleanup of stale entries
0 commit comments