github-search-cli 9.6.0 → 9.7.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 +42 -0
- package/README.md +25 -21
- package/completions/ghfind.bash +5 -1
- package/completions/ghfind.fish +2 -1
- package/completions/ghfind.zsh +3 -0
- package/dist/cli.js +363 -149
- package/package.json +1 -1
- package/release-notes/9.7.0.md +53 -0
- package/src/agent-skill.ts +7 -6
- package/src/cli.ts +119 -4
- package/src/compare.ts +76 -1
- package/src/deepdive.ts +195 -23
- package/src/mcp-server.ts +26 -55
- package/src/search.ts +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,48 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). Publish
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [9.7.0] — 2026-09-19 (released)
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **CLI parity with the MCP tools** — the three MCP-only capabilities are now
|
|
14
|
+
first-class CLI commands:
|
|
15
|
+
- `ghfind deep-dive <owner/repo> [--json]` — language breakdown, top
|
|
16
|
+
contributors, and a README excerpt (previously MCP-only; the agent skill
|
|
17
|
+
doc told agents to `curl` instead).
|
|
18
|
+
- `ghfind --compare` accepts `--json|--csv|--markdown` (previously
|
|
19
|
+
text-only) and reports repos that failed to resolve; it exits non-zero
|
|
20
|
+
when fewer than 2 repos resolve.
|
|
21
|
+
- Trending language filter on the CLI: `ghfind trending <lang>` (the form
|
|
22
|
+
the README already advertised), `ghfind --trending <lang>`, and
|
|
23
|
+
`ghfind --trending --language <lang>` — validated against the same
|
|
24
|
+
accepted-language list as the MCP tool.
|
|
25
|
+
- `ghfind deep-dive --json` exposes a structured payload (language percents,
|
|
26
|
+
contributor counts, raw README) suitable for agents and scripting.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- The MCP server now shares its repo-ref parsing, trending-language
|
|
31
|
+
validation, and deep-dive data pipeline with the CLI via new seams in
|
|
32
|
+
`deepdive.ts` and `search.ts` (no protocol behavior change).
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- **`ghfind mcp` failed to typecheck** — `processServerLine` declared `msg`
|
|
37
|
+
as a `let` binding, so TypeScript's aliased-conditional narrowing did not
|
|
38
|
+
apply and every `respond`/`respondError` call site errored on
|
|
39
|
+
`JsonRpcId | undefined`. HEAD did not compile. The id is now extracted
|
|
40
|
+
into a `const` before the notification check; runtime behavior is
|
|
41
|
+
unchanged (all 31 MCP tests pass against the previous behavior).
|
|
42
|
+
- **Deep-dive ran on a zeroed repo stub** — `ghfind deep-dive a/b --json`
|
|
43
|
+
reported `stars: 0`, `description: null`, and no timestamps because the
|
|
44
|
+
repo ref was never resolved. Both the CLI and the `ghfind_deep_dive` MCP
|
|
45
|
+
tool now fetch real repo metadata first (a 404 exits with
|
|
46
|
+
`Repo not found: owner/name`; network failures still degrade gracefully
|
|
47
|
+
to the stub).
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
9
51
|
## [9.6.0] — 2026-09-18 (released)
|
|
10
52
|
|
|
11
53
|
### Added
|
package/README.md
CHANGED
|
@@ -38,19 +38,19 @@ Or grab a **standalone binary** (no Node.js needed) from [GitHub Releases](https
|
|
|
38
38
|
|
|
39
39
|
## Why ghfind?
|
|
40
40
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
| Repo search + qualifiers
|
|
44
|
-
| Trending repos (day/week/month/year)
|
|
45
|
-
| Full-screen TUI, keyboard-driven
|
|
46
|
-
| Bookmarks, tags & release tracking
|
|
47
|
-
| Side-by-side repo compare
|
|
48
|
-
| Deep-dive (
|
|
49
|
-
| npm package search
|
|
50
|
-
| Org profile
|
|
51
|
-
| User profile
|
|
52
|
-
| Pipeable JSON / CSV / Markdown export
|
|
53
|
-
| No login required
|
|
41
|
+
| | `ghfind` | `gh search` (GitHub CLI) | `hub` |
|
|
42
|
+
| ------------------------------------------- | -------- | ------------------------ | ----- |
|
|
43
|
+
| Repo search + qualifiers | ✅ | ✅ | ❌ |
|
|
44
|
+
| Trending repos (day/week/month/year) | ✅ | ❌ | ❌ |
|
|
45
|
+
| Full-screen TUI, keyboard-driven | ✅ | ❌ | ❌ |
|
|
46
|
+
| Bookmarks, tags & release tracking | ✅ | ❌ | ❌ |
|
|
47
|
+
| Side-by-side repo compare (JSON/CSV/MD) | ✅ | ❌ | ❌ |
|
|
48
|
+
| Deep-dive (languages, contributors, README) | ✅ | ❌ | ❌ |
|
|
49
|
+
| npm package search | ✅ | ❌ | ❌ |
|
|
50
|
+
| Org profile | ✅ | ✅ | ❌ |
|
|
51
|
+
| User profile | ✅ | ❌ | ❌ |
|
|
52
|
+
| Pipeable JSON / CSV / Markdown export | ✅ | JSON only | ❌ |
|
|
53
|
+
| No login required | ✅ | ❌ | ❌ |
|
|
54
54
|
|
|
55
55
|
> **No separate runtime needed!** Only requires Node.js 20+. The TUI needs Bun,
|
|
56
56
|
> which is downloaded automatically at install time. Non-interactive modes work
|
|
@@ -88,9 +88,12 @@ ghfind "query" --format urls # one URL per line
|
|
|
88
88
|
ghfind "query" --pipe open # open in browser
|
|
89
89
|
ghfind "query" --pipe clone # clone commands
|
|
90
90
|
ghfind --trending --json # trending as JSON
|
|
91
|
+
ghfind trending rust --json # trending, filtered by language
|
|
91
92
|
ghfind --watch "query" # poll every 300s
|
|
92
93
|
ghfind --releases # new releases for bookmarked repos
|
|
93
94
|
ghfind --compare a/b c/d # side-by-side comparison
|
|
95
|
+
ghfind --compare a/b c/d --json # comparison as JSON|CSV|Markdown
|
|
96
|
+
ghfind deep-dive a/b --json # deep-dive: languages, contributors, README
|
|
94
97
|
ghfind pkg "query" --json # npm package search as JSON
|
|
95
98
|
```
|
|
96
99
|
|
|
@@ -281,14 +284,14 @@ cd ghfind
|
|
|
281
284
|
# With Bun (recommended for TUI)
|
|
282
285
|
bun install
|
|
283
286
|
bun start # TUI
|
|
284
|
-
bun test #
|
|
287
|
+
bun test # 355 tests
|
|
285
288
|
bun run check # format check + tests — the green gate
|
|
286
289
|
bun run build # build dist/
|
|
287
290
|
|
|
288
291
|
# Or with npm
|
|
289
292
|
npm install
|
|
290
293
|
npm start # TUI (requires Node 20+)
|
|
291
|
-
npm test #
|
|
294
|
+
npm test # 355 tests
|
|
292
295
|
npm run build # build dist/
|
|
293
296
|
|
|
294
297
|
> Want to contribute? See [CONTRIBUTING.md](CONTRIBUTING.md) for commands,
|
|
@@ -301,6 +304,13 @@ npm run build # build dist/
|
|
|
301
304
|
|
|
302
305
|
Recent releases (full history in [CHANGELOG.md](CHANGELOG.md)):
|
|
303
306
|
|
|
307
|
+
### v9.7.0
|
|
308
|
+
|
|
309
|
+
- **CLI parity with the MCP tools** — `ghfind deep-dive <owner/repo>` (languages, contributors, README excerpt, `--json`), `ghfind --compare` with `--json|--csv|--markdown`, and a trending language filter (`ghfind trending rust`, `--trending <lang>`)
|
|
310
|
+
- **Deep-dive metadata fix** — real stars, description, and topics are fetched first instead of a zeroed stub; a 404 exits with `Repo not found`
|
|
311
|
+
- Fixed `ghfind mcp` failing to typecheck (JSON-RPC id narrowing; runtime behavior unchanged)
|
|
312
|
+
- The MCP server and CLI now share repo-ref parsing, language validation, and the deep-dive pipeline
|
|
313
|
+
|
|
304
314
|
### v9.6.0
|
|
305
315
|
|
|
306
316
|
- **MCP server (beta)** — `ghfind mcp` turns ghfind into a tool server: Claude Code, Cursor, Codex, and any MCP client can call GitHub search over stdio (nine tools, no new dependencies)
|
|
@@ -314,12 +324,6 @@ Recent releases (full history in [CHANGELOG.md](CHANGELOG.md)):
|
|
|
314
324
|
- Fixed landing-screen keys leaking into the main view — `/`, `Space`, `t`, `c`, `?`, `q` all double-fired; `b` on the landing screen now opens Bookmarks
|
|
315
325
|
- Fixed the update panel clipping the changelog — release notes are now scrollable (`↑↓`/`j`/`k`, `PgUp`/`PgDn`, `Home`/`End`) in a taller panel
|
|
316
326
|
|
|
317
|
-
### v9.5.0
|
|
318
|
-
|
|
319
|
-
- New `ghfind user <name>` command — user profiles like `ghfind org`: repos, total stars/forks, followers, top languages, top repos
|
|
320
|
-
- Supports `--json`, `--csv`, `--markdown`, `--count`, `--limit`, `--token`; `@` prefix accepted
|
|
321
|
-
- Fixed `ghfind org` mangling multi-word names with dashes
|
|
322
|
-
|
|
323
327
|
---
|
|
324
328
|
|
|
325
329
|
## License
|
package/completions/ghfind.bash
CHANGED
|
@@ -7,7 +7,7 @@ _ghfind() {
|
|
|
7
7
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
8
8
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
9
9
|
|
|
10
|
-
opts="--json --csv --markdown --count --limit --sort --token --trending --since --pipe --format --registry --watch --interval --version --help --completion pkg login init doctor org mcp skill"
|
|
10
|
+
opts="--json --csv --markdown --count --limit --sort --token --trending --language --since --pipe --format --registry --watch --interval --version --help --completion pkg login init doctor org mcp skill trending deep-dive"
|
|
11
11
|
|
|
12
12
|
case "${prev}" in
|
|
13
13
|
--sort)
|
|
@@ -34,6 +34,10 @@ _ghfind() {
|
|
|
34
34
|
COMPREPLY=( $(compgen -W "npm" -- "${cur}") )
|
|
35
35
|
return 0
|
|
36
36
|
;;
|
|
37
|
+
--language)
|
|
38
|
+
COMPREPLY=( $(compgen -W "rust python typescript javascript go c c++ c# java ruby php swift kotlin zig" -- "${cur}") )
|
|
39
|
+
return 0
|
|
40
|
+
;;
|
|
37
41
|
--limit|--interval)
|
|
38
42
|
return 0
|
|
39
43
|
;;
|
package/completions/ghfind.fish
CHANGED
|
@@ -9,6 +9,7 @@ complete -c ghfind -l limit -d "Max results" -r
|
|
|
9
9
|
complete -c ghfind -l sort -d "Sort strategy" -r -f -a "best-match stars updated forks"
|
|
10
10
|
complete -c ghfind -l token -d "GitHub token" -r
|
|
11
11
|
complete -c ghfind -l trending -d "Trending mode"
|
|
12
|
+
complete -c ghfind -l language -d "Trending language filter" -r -f -a "rust python typescript javascript go c c++ c# java ruby php swift kotlin zig"
|
|
12
13
|
complete -c ghfind -l since -d "Trending period" -r -f -a "daily weekly monthly"
|
|
13
14
|
complete -c ghfind -l pipe -d "Pipe target" -r -f -a "clone open"
|
|
14
15
|
complete -c ghfind -l format -d "Output format" -r -f -a "urls names ssh-urls clone-commands ids"
|
|
@@ -20,4 +21,4 @@ complete -c ghfind -l version -d "Print version"
|
|
|
20
21
|
complete -c ghfind -l help -d "Print help"
|
|
21
22
|
complete -c ghfind -l completion -d "Shell" -r -f -a "bash zsh fish"
|
|
22
23
|
|
|
23
|
-
complete -c ghfind -f -a "login init doctor org pkg mcp skill"
|
|
24
|
+
complete -c ghfind -f -a "login init doctor org pkg mcp skill trending deep-dive"
|
package/completions/ghfind.zsh
CHANGED
|
@@ -12,6 +12,7 @@ _ghfind() {
|
|
|
12
12
|
'--sort[Sort strategy]:(best-match stars updated forks)'
|
|
13
13
|
'--token[GitHub token]:token:'
|
|
14
14
|
'--trending[Trending mode]'
|
|
15
|
+
'--language[Trending language filter]:language:'
|
|
15
16
|
'--since[Trending period]:(daily weekly monthly)'
|
|
16
17
|
'--pipe[Pipe target]:(clone open)'
|
|
17
18
|
'--format[Output format]:(urls names ssh-urls clone-commands ids)'
|
|
@@ -28,6 +29,8 @@ _ghfind() {
|
|
|
28
29
|
'doctor[Environment diagnostics]'
|
|
29
30
|
'org[Org profile]:org name:'
|
|
30
31
|
'pkg[Search packages]:query:'
|
|
32
|
+
'trending[Trending repos, optionally by language]'
|
|
33
|
+
'deep-dive[Repo deep-dive: languages, contributors, README]:owner/repo:'
|
|
31
34
|
'mcp[Run the MCP server for AI agents (stdio)]'
|
|
32
35
|
'skill[Print an agent skill guide]:skill name:'
|
|
33
36
|
)
|