greptile 2.4.0 → 3.0.1

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 ADDED
@@ -0,0 +1,108 @@
1
+ # greptile
2
+
3
+ AI code review in your terminal. Get the same review Greptile runs on your team's pull requests, right inside your editor's shell, before you push.
4
+
5
+ ## Install
6
+
7
+ Pick whichever is easiest for you.
8
+
9
+ ```sh
10
+ # macOS, via Homebrew
11
+ brew install greptileai/tap/greptile
12
+
13
+ # Any platform with Node 22 or newer
14
+ npm install -g greptile
15
+
16
+ # Direct install for macOS (also needs Node 22+)
17
+ curl -fsSL https://raw.githubusercontent.com/greptileai/cli/main/install.sh | bash
18
+ ```
19
+
20
+ ## Quick start
21
+
22
+ ```sh
23
+ greptile login # opens your browser to sign in
24
+ cd path/to/your/repo
25
+ greptile review # review HEAD against the default branch
26
+ ```
27
+
28
+ That's it. Comments appear in the terminal as they come in.
29
+
30
+ ## Examples
31
+
32
+ **Review against a specific base branch:**
33
+
34
+ ```sh
35
+ greptile review -b main
36
+ ```
37
+
38
+ **Show findings next to the actual code lines:**
39
+
40
+ ```sh
41
+ greptile review --diff
42
+ ```
43
+
44
+ **Pipe to another tool or save the raw results:**
45
+
46
+ ```sh
47
+ greptile review --json > review.json
48
+ ```
49
+
50
+ **Re-open a previous review (pick from a list, or pass an ID):**
51
+
52
+ ```sh
53
+ greptile review show
54
+ greptile review show abc123
55
+ ```
56
+
57
+ **Keep going on a review that stopped halfway:**
58
+
59
+ ```sh
60
+ greptile review --resume
61
+ ```
62
+
63
+ ## More than one Greptile organization?
64
+
65
+ If you belong to several, tell greptile which one to use:
66
+
67
+ ```sh
68
+ greptile whoami # lists your organizations
69
+ export GREPTILE_TENANT=acme-corp
70
+ greptile review
71
+ ```
72
+
73
+ ## Diagrams
74
+
75
+ When a review's summary includes a Mermaid diagram, greptile renders it inline in kitty and Ghostty, and links the SVG file in other terminals. The first time a diagram needs to render, greptile downloads a small renderer ([mmdr](https://github.com/1jehuang/mermaid-rs-renderer)) into `~/.cache/greptile/`. To opt out, set `GREPTILE_NO_AUTO_INSTALL=1`.
76
+
77
+ ## Reference
78
+
79
+ Full command surface:
80
+
81
+ ```sh
82
+ greptile login | logout | whoami
83
+ greptile review [-b BRANCH] [--diff] [--resume] [--json | --text | --agent]
84
+ [--context LINES] [--width COLUMNS] [--no-color]
85
+ greptile review show [ID] # same review flags apply
86
+ ```
87
+
88
+ Environment variables:
89
+
90
+ | Variable | What it does |
91
+ | -------------------------- | -------------------------------------------------------------------------- |
92
+ | `GREPTILE_TENANT` | Which organization to use when you belong to more than one. |
93
+ | `GREPTILE_INLINE_IMAGES` | Force inline kitty diagrams on (`1`, `true`, `kitty`) or off (`0`, `off`). |
94
+ | `GREPTILE_NO_AUTO_INSTALL` | Skip the one-time mmdr download. |
95
+ | `NO_COLOR` | Turn off ANSI color. |
96
+ | `FORCE_COLOR` | Turn on ANSI color even when stdout is not a TTY. |
97
+ | `COLUMNS` | Override the output width. |
98
+
99
+ Exit codes (useful for scripting):
100
+
101
+ | Code | Meaning |
102
+ | ----- | --------------------------------------------------------------------------------- |
103
+ | `0` | Review finished. |
104
+ | `1` | Review couldn't finish (sign-in expired, server error, repo not connected, etc.). |
105
+ | `2` | Wrong invocation (not inside a git repo, invalid flag, etc.). |
106
+ | `130` | You hit Ctrl-C. |
107
+
108
+ Credentials live at `~/.greptile/auth.json` and refresh themselves automatically.