github-search-cli 9.7.1 → 9.8.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 +34 -0
- package/README.md +10 -11
- package/dist/cli.js +829 -248
- package/package.json +7 -2
- package/release-notes/9.8.0.md +55 -0
- package/src/help.ts +2 -1
- package/src/image-loader.ts +248 -0
- package/src/image-render.ts +209 -0
- package/src/markdown-images.ts +123 -0
- package/src/markdown-view.ts +300 -0
- package/src/png.ts +260 -0
- package/src/tui.ts +77 -41
- package/src/markdown-render.ts +0 -211
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,40 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). Publish
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [9.8.0] — 2026-09-22 (released)
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **README viewer now renders full markdown, including inline images.** The
|
|
14
|
+
viewer used to approximate markdown with box-drawing text; it now drives
|
|
15
|
+
OpenTUI's `MarkdownRenderable` with a theme-derived syntax style, so
|
|
16
|
+
headings, emphasis, links, lists, blockquotes, boxed tables, and fenced
|
|
17
|
+
code blocks render as markdown rather than as decorated plain text.
|
|
18
|
+
- **Images in READMEs render in the terminal.** Relative and root-relative
|
|
19
|
+
paths resolve against the branch the README was loaded from,
|
|
20
|
+
`github.com/.../blob/...` links are rewritten to raw content, and downloads
|
|
21
|
+
are cached and capped by size. SVG and badge-service images are skipped
|
|
22
|
+
(they carry text that survives rasterising poorly), and anything that fails
|
|
23
|
+
to load falls back to an `🖼 alt text` caption. Images are drawn with
|
|
24
|
+
truecolor half blocks, so they work on any truecolor terminal with no image
|
|
25
|
+
protocol support; press `i` in the viewer to toggle them off. The pipeline
|
|
26
|
+
lives in `src/png.ts` (PNG decoder), `src/image-render.ts`
|
|
27
|
+
(image → cells), `src/image-loader.ts` (URL resolution + fetch cache),
|
|
28
|
+
`src/markdown-images.ts` (token helpers) and `src/markdown-view.ts` (the
|
|
29
|
+
renderable), and degrades to captions on runtimes without `Bun.Image`.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **The update modal's release notes render as markdown too.** The in-app
|
|
34
|
+
update panel reused the same text approximation as the README viewer; it
|
|
35
|
+
now shares `MarkdownRenderable` via the new view, so release notes show
|
|
36
|
+
real headings, lists, inline code, and boxed tables. Inline images stay
|
|
37
|
+
off there (the panel is narrow and notes are prose).
|
|
38
|
+
- With both surfaces migrated, the plain-text markdown renderer
|
|
39
|
+
(`src/markdown-render.ts`) is no longer used and has been removed.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
9
43
|
## [9.7.1] — 2026-09-20 (released)
|
|
10
44
|
|
|
11
45
|
### Fixed
|
package/README.md
CHANGED
|
@@ -207,7 +207,7 @@ Actions shown depend on current mode (search vs trending) and selection:
|
|
|
207
207
|
| Refresh | Re-run current search (or reload trending) |
|
|
208
208
|
| Toggle trending | Switch between search and trending views |
|
|
209
209
|
| Deep-dive | Show languages, contributors, README excerpt |
|
|
210
|
-
| Readme | Full README viewer
|
|
210
|
+
| Readme | Full markdown README viewer (inline images included) |
|
|
211
211
|
| Activity graph | Toggle commit chart fullscreen |
|
|
212
212
|
| Bookmark | Save / unsave selected repo |
|
|
213
213
|
| Compare | Add/remove repo to comparison set |
|
|
@@ -233,6 +233,7 @@ Actions shown depend on current mode (search vs trending) and selection:
|
|
|
233
233
|
| `d` | History / Bookmarks / Saved searches / Notifications | Delete current entry |
|
|
234
234
|
| `Ctrl+X` | History | Clear all history |
|
|
235
235
|
| `Ctrl+C` | Notifications | Dismiss all notifications |
|
|
236
|
+
| `i` | README viewer | Toggle inline images on/off |
|
|
236
237
|
| `Y` / `N` / `L` | Update modal | Yes (install) / No (skip) / Later (dismiss) |
|
|
237
238
|
| `↑` / `↓` — `j` / `k` | Update modal | Scroll release notes |
|
|
238
239
|
| `PgUp` / `PgDn` / `Home` / `End` | Update modal | Jump through release notes |
|
|
@@ -284,14 +285,14 @@ cd ghfind
|
|
|
284
285
|
# With Bun (recommended for TUI)
|
|
285
286
|
bun install
|
|
286
287
|
bun start # TUI
|
|
287
|
-
bun test #
|
|
288
|
+
bun test # 414 tests
|
|
288
289
|
bun run check # format check + tests — the green gate
|
|
289
290
|
bun run build # build dist/
|
|
290
291
|
|
|
291
292
|
# Or with npm
|
|
292
293
|
npm install
|
|
293
294
|
npm start # TUI (requires Node 20+)
|
|
294
|
-
npm test #
|
|
295
|
+
npm test # 414 tests
|
|
295
296
|
npm run build # build dist/
|
|
296
297
|
|
|
297
298
|
> Want to contribute? See [CONTRIBUTING.md](CONTRIBUTING.md) for commands,
|
|
@@ -304,6 +305,12 @@ npm run build # build dist/
|
|
|
304
305
|
|
|
305
306
|
Recent releases (full history in [CHANGELOG.md](CHANGELOG.md)):
|
|
306
307
|
|
|
308
|
+
### v9.8.0
|
|
309
|
+
|
|
310
|
+
- **README viewer renders real markdown** — headings, emphasis, links, lists, blockquotes, boxed tables, and fenced code now come from OpenTUI's markdown renderable with a theme-derived syntax style instead of a box-drawing text approximation
|
|
311
|
+
- **Images render inline** — relative and `/`-rooted paths resolve against the README's branch, `github.com/.../blob/...` links are rewritten to raw content, downloads are cached and size-capped, SVG and badge-service images are skipped, and anything unloadable falls back to an `🖼 alt` caption; press `i` in the viewer to toggle images
|
|
312
|
+
- **No new dependencies** — the PNG decoder, image-to-cells rasteriser, and fetch cache are plain TypeScript, and images draw with truecolor half blocks, so they work on any truecolor terminal without image-protocol support
|
|
313
|
+
|
|
307
314
|
### v9.7.1
|
|
308
315
|
|
|
309
316
|
- **In-app update actually works now** — it used to `bun install -g` into `~/.bun` while your running copy lives in an npm prefix, reporting success while nothing changed; it now detects which package manager owns the running install and updates it in place
|
|
@@ -318,14 +325,6 @@ Recent releases (full history in [CHANGELOG.md](CHANGELOG.md)):
|
|
|
318
325
|
- Fixed `ghfind mcp` failing to typecheck (JSON-RPC id narrowing; runtime behavior unchanged)
|
|
319
326
|
- The MCP server and CLI now share repo-ref parsing, language validation, and the deep-dive pipeline
|
|
320
327
|
|
|
321
|
-
### v9.6.0
|
|
322
|
-
|
|
323
|
-
- **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)
|
|
324
|
-
- **Agent skill (beta)** — `ghfind skill` gives coding agents a token-efficient usage guide; `ghfind trending` accepts a language filter (`ghfind trending rust`)
|
|
325
|
-
- **curl installer** — `curl -fsSL https://raw.githubusercontent.com/codersdfs/search-cli/main/scripts/install.sh | sh` downloads the standalone binary and verifies it against the release's `SHA256SUMS.txt`
|
|
326
|
-
- **`NO_COLOR` support** — `ghfind --doctor` drops ANSI colors when `NO_COLOR` is set or stdout isn't a TTY
|
|
327
|
-
- Fixed the stale `scripts/brew.rb` formula (wrong repo, version, and asset names)
|
|
328
|
-
|
|
329
328
|
---
|
|
330
329
|
|
|
331
330
|
## License
|