gh-manager-cli 1.17.0 → 1.18.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 +15 -0
- package/README.md +40 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [1.18.0](https://github.com/wiiiimm/gh-manager-cli/compare/v1.17.1...v1.18.0) (2025-09-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **workflows:** add missing normalize-pr-title.js script for PR title automation ([3a009b9](https://github.com/wiiiimm/gh-manager-cli/commit/3a009b979c9dbee7c2f7649ff71ecb385e917a6d))
|
|
7
|
+
|
|
8
|
+
## [1.17.1](https://github.com/wiiiimm/gh-manager-cli/compare/v1.17.0...v1.17.1) (2025-09-02)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* correct workflow syntax for GH_TOKEN check ([e9980a6](https://github.com/wiiiimm/gh-manager-cli/commit/e9980a69e15d1b74831cf95fe01985e052996489))
|
|
14
|
+
* make Homebrew tap update conditional on GH_TOKEN availability ([cbbe500](https://github.com/wiiiimm/gh-manager-cli/commit/cbbe5005d767ecbe1139f7ac1b603b41d157a060))
|
|
15
|
+
|
|
1
16
|
# [1.17.0](https://github.com/wiiiimm/gh-manager-cli/compare/v1.16.1...v1.17.0) (2025-09-02)
|
|
2
17
|
|
|
3
18
|
|
package/README.md
CHANGED
|
@@ -83,6 +83,7 @@ On first run, you'll be prompted to authenticate with GitHub (OAuth recommended)
|
|
|
83
83
|
- **Secure Storage**: Token stored with proper file permissions (0600)
|
|
84
84
|
- **Error Handling**: Graceful error recovery with retry mechanisms
|
|
85
85
|
- **Performance**: Efficient GraphQL queries with virtualized rendering and server-side filtering
|
|
86
|
+
- **Comprehensive Logging**: Structured JSON logging with automatic rotation and configurable verbosity
|
|
86
87
|
|
|
87
88
|
## Installation
|
|
88
89
|
|
|
@@ -275,7 +276,7 @@ pnpm start:dev # run with 5 repos per page and debug mode
|
|
|
275
276
|
|
|
276
277
|
Environment variables:
|
|
277
278
|
- `REPOS_PER_FETCH`: Number of repositories to fetch per page (1-50, default: 15)
|
|
278
|
-
- `GH_MANAGER_DEBUG=1`: Enables debug mode with performance metrics and
|
|
279
|
+
- `GH_MANAGER_DEBUG=1`: Enables debug mode with performance metrics, detailed errors, and console logging
|
|
279
280
|
|
|
280
281
|
Project layout:
|
|
281
282
|
- `src/index.tsx` — CLI entry and error handling
|
|
@@ -288,9 +289,47 @@ Project layout:
|
|
|
288
289
|
- `src/ui/OrgSwitcher.tsx` — organization switching component
|
|
289
290
|
- `src/github.ts` — GraphQL client and queries (repos + rateLimit)
|
|
290
291
|
- `src/config.ts` — token read/write and UI preferences
|
|
292
|
+
- `src/logger.ts` — structured logging with rotation
|
|
291
293
|
- `src/types.ts` — shared types
|
|
292
294
|
- `src/utils.ts` — utility functions (truncate, formatDate)
|
|
293
295
|
- `src/apolloMeta.ts` — Apollo cache management
|
|
296
|
+
- `viewlogs.sh` — utility script for viewing logs
|
|
297
|
+
|
|
298
|
+
## Logging
|
|
299
|
+
|
|
300
|
+
gh-manager-cli includes comprehensive logging for debugging and monitoring purposes.
|
|
301
|
+
|
|
302
|
+
### Log Location
|
|
303
|
+
|
|
304
|
+
Logs are automatically written to your system's standard log directory:
|
|
305
|
+
- **macOS**: `~/Library/Logs/gh-manager-cli/gh-manager-cli.log`
|
|
306
|
+
- **Linux**: `~/.local/state/gh-manager-cli-log/gh-manager-cli.log`
|
|
307
|
+
- **Windows**: `%LOCALAPPDATA%\gh-manager-cli\Log\gh-manager-cli.log`
|
|
308
|
+
|
|
309
|
+
### Viewing Logs
|
|
310
|
+
|
|
311
|
+
Use the included `viewlogs.sh` script to quickly view recent log entries:
|
|
312
|
+
```bash
|
|
313
|
+
./viewlogs.sh # View last 50 lines
|
|
314
|
+
./viewlogs.sh 100 # View last 100 lines
|
|
315
|
+
./viewlogs.sh -f # Follow log in real-time
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Log Features
|
|
319
|
+
|
|
320
|
+
- **Structured JSON**: Each log entry includes timestamp, level, message, and contextual data
|
|
321
|
+
- **Automatic Rotation**: Logs rotate at 5MB with up to 5 historical files kept
|
|
322
|
+
- **Comprehensive Coverage**: Tracks app lifecycle, API calls, user actions, and errors
|
|
323
|
+
- **Debug Mode**: Set `GH_MANAGER_DEBUG=1` to enable verbose logging to console
|
|
324
|
+
|
|
325
|
+
### What's Logged
|
|
326
|
+
|
|
327
|
+
- Application startup/shutdown with version info
|
|
328
|
+
- Authentication events (login/logout)
|
|
329
|
+
- Repository operations (fetch, delete, archive, visibility changes)
|
|
330
|
+
- API performance metrics and rate limit status
|
|
331
|
+
- Error details with stack traces
|
|
332
|
+
- User interface component lifecycle
|
|
294
333
|
|
|
295
334
|
## Apollo Cache (Performance)
|
|
296
335
|
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var require_package = __commonJS({
|
|
|
28
28
|
"package.json"(exports, module) {
|
|
29
29
|
module.exports = {
|
|
30
30
|
name: "gh-manager-cli",
|
|
31
|
-
version: "1.
|
|
31
|
+
version: "1.18.0",
|
|
32
32
|
private: false,
|
|
33
33
|
description: "Interactive CLI to manage your GitHub repos (personal) with Ink",
|
|
34
34
|
license: "MIT",
|