glassbox 1.1.2 → 1.2.0-beta.2
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/README.md +31 -13
- package/dist/cli.js +3225 -2826
- package/dist/client/app.global.js +45 -45
- package/dist/client/history.global.js +33 -37
- package/dist/client/styles.css +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
### Stop hoping your AI got it right. Review the diff, leave precise feedback, and let AI fix it — in one loop.
|
|
6
6
|
|
|
7
|
+
<p>
|
|
8
|
+
<a href="https://www.npmjs.com/package/glassbox"><img src="https://img.shields.io/npm/v/glassbox.svg" alt="npm version" /></a>
|
|
9
|
+
<a href="https://github.com/brianwestphal/glassbox/releases"><img src="https://img.shields.io/github/v/release/brianwestphal/glassbox?label=desktop%20app" alt="Latest desktop app release" /></a>
|
|
10
|
+
<img src="https://img.shields.io/badge/node-%E2%89%A520-brightgreen.svg" alt="Node.js 20 or newer" />
|
|
11
|
+
<img src="https://img.shields.io/npm/l/glassbox.svg" alt="MIT license" />
|
|
12
|
+
</p>
|
|
13
|
+
|
|
7
14
|
<br>
|
|
8
15
|
|
|
9
16
|
**Glassbox** is a local, browser-based code review tool built for the AI coding workflow. You review the changes your AI made, annotate what's wrong (or right), and export structured feedback that AI tools can read and act on instantly.
|
|
@@ -85,32 +92,43 @@ Then you run `glassbox` again. Your previous annotations carry forward — match
|
|
|
85
92
|
|
|
86
93
|
## Features
|
|
87
94
|
|
|
95
|
+
### Diffs & viewing
|
|
96
|
+
|
|
88
97
|
- **Split and unified diffs** with syntax-colored add/remove/context lines
|
|
89
|
-
- **Line-level annotations** — click any line to add feedback with a category
|
|
90
98
|
- **Image and SVG diffs** — binary images and SVGs render in a **side-by-side** layout (with a left/right or over/under toggle), a **difference overlay**, a **swipeable slice tool**, single-side **A / B focus** modes, and pixel-precision synced zoom/pan. SVGs offer a *Code* / *Rendered* toggle so you can review either the source or the live-rendered output.
|
|
91
|
-
- **
|
|
99
|
+
- **Compare any two paths** — `glassbox --diff <A> <B>` reviews two arbitrary files or two arbitrary folders by path — no git repository required.
|
|
92
100
|
- **Ground-truth image comparison** — `glassbox --ground-truth <manifest>` compares an **actual** render against an **expected** one (a design spec, a reference, or a previous baseline — even outside the repo), scores the perceptual difference, sorts most-changed-first, and lets you **promote** a new actual to the baseline. Great for catching visual regressions.
|
|
101
|
+
- **Content plugins** — opt-in renderers turn diagram source (Graphviz, PlantUML, Mermaid) into pictures: diagram files diff like images, and diagram artifacts on AI review notes render inline
|
|
102
|
+
- **Go-to-definition and a nav stack** — click any symbol to jump to its definition, with back/forward through your trail
|
|
103
|
+
- **Collapsible folder tree** in the sidebar with file filter
|
|
104
|
+
- **Resizable sidebar** and word wrap toggle
|
|
105
|
+
- **Keyboard navigation** — `j`/`k` to move between files, `Cmd+Enter` to save
|
|
106
|
+
- **Themes** — sixteen built-in themes (Dark, Light, High Contrast Dark/Light, Dracula, Tokyo Night, One Dark Pro, Solarized Dark/Light, Monokai, Nord, Gruvbox Dark/Light, GitHub Dark, Rosé Pine, Ayu Dark) — the ones that meet WCAG AA contrast are marked — plus a custom theme editor with live preview
|
|
107
|
+
|
|
108
|
+
### Annotations & feedback
|
|
109
|
+
|
|
110
|
+
- **Line-level annotations** — click any line to add feedback with a category
|
|
111
|
+
- **Comment on images** — leave a general comment on any image, or **draw a rectangle region** to anchor feedback to a specific spot (per A/B side), just like a line annotation.
|
|
93
112
|
- **Attach files to any comment** — drag, paste, or browse to attach screenshots, logs, or any file to a line comment, image comment, or note reply. Image attachments show a thumbnail and open in a lightbox; the export lists each file's path so your AI tool can read it.
|
|
94
|
-
- **Compare any two paths** — `glassbox --diff <A> <B>` reviews two arbitrary files or two arbitrary folders by path — no git repository required.
|
|
95
113
|
- **Drag and drop** annotations to different lines
|
|
96
114
|
- **Double-click** to edit, click the category badge to reclassify
|
|
97
|
-
- **
|
|
115
|
+
- **Stale annotation detection** — comments that can't be matched to the updated diff are flagged with a visual indicator
|
|
116
|
+
- **Structured export** — markdown output with file paths, line numbers, categories, and instructions for AI consumption
|
|
117
|
+
|
|
118
|
+
### AI assistance (optional)
|
|
119
|
+
|
|
120
|
+
- **AI review notes** — render the generating AI's line-anchored rationale and proof, committed alongside the code in `.pr-notes/`, right in the diff — and reply to any note inline
|
|
121
|
+
- **AI-powered analysis** — risk scoring, narrative reading order, and guided review, powered by cloud, local (Ollama / LM Studio), or on-device (Apple) models
|
|
122
|
+
|
|
123
|
+
### Workflow & data
|
|
124
|
+
|
|
98
125
|
- **Right-click any file** in the sidebar — reveal in your file manager, copy its path, open it in your editor, or mark it reviewed
|
|
99
|
-
- **Resizable sidebar** and word wrap toggle
|
|
100
|
-
- **Keyboard navigation** — `j`/`k` to move between files, `Cmd+Enter` to save
|
|
101
|
-
- **Go-to-definition and a nav stack** — click any symbol to jump to its definition, with back/forward through your trail
|
|
102
|
-
- **Themes** — thirteen built-in themes (Dark, Light, High Contrast Dark/Light, Dracula, Tokyo Night, One Dark Pro, Solarized Dark/Light, Monokai, Nord, Gruvbox Dark/Light), plus a custom theme editor with live preview
|
|
103
126
|
- **Session persistence** — reviews survive restarts, pick up where you left off
|
|
104
127
|
- **Smart review reuse** — re-running `glassbox` on the same commit updates diffs in place and migrates annotations to their new line positions
|
|
105
|
-
- **Stale annotation detection** — comments that can't be matched to the updated diff are flagged with a visual indicator
|
|
106
128
|
- **Review history** — browse, reopen, or delete past reviews
|
|
107
|
-
- **Structured export** — markdown output with file paths, line numbers, categories, and instructions for AI consumption
|
|
108
|
-
- **Content plugins** — opt-in renderers turn diagram source (Graphviz, PlantUML, Mermaid) into pictures: diagram files diff like images, and diagram artifacts on AI review notes render inline
|
|
109
129
|
- **Automatic .gitignore** — keeps `.glassbox/` out of version control for you at launch, while leaving the per-project `.glassbox/settings.json` tracked
|
|
110
130
|
- **Auto port selection** — if the default port is busy, it finds an open one
|
|
111
131
|
- **Fully local** — no network calls (unless you opt into AI features), no accounts, no telemetry. Your code stays on your machine.
|
|
112
|
-
- **AI review notes** _(optional)_ — render the generating AI's line-anchored rationale and proof, committed alongside the code in `.pr-notes/`, right in the diff — and reply to any note inline
|
|
113
|
-
- **AI-powered analysis** _(optional)_ — risk scoring, narrative reading order, and guided review, powered by cloud, local (Ollama / LM Studio), or on-device (Apple) models
|
|
114
132
|
|
|
115
133
|
---
|
|
116
134
|
|