This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Commit 6a1d707
feat: postinstall runs auth login for fresh installs, install --yes for upgrades
Previously postinstall ran 'install --yes' then printed a message telling
the user to run 'uncompact auth login' separately — two steps.
Now:
- Fresh install (not authenticated): postinstall runs 'auth login', which
handles browser OAuth + hook installation in one flow. npm install -g
uncompact is the only command a new user needs to run.
- Upgrade (already authenticated): postinstall runs 'install --yes' to
ensure hooks are current without re-prompting for auth.
Co-Authored-By: Grey Newell <greyshipscode@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent de189b2 commit 6a1d707
1 file changed
Lines changed: 20 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
| 190 | + | |
| 191 | + | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
194 | 195 | | |
195 | | - | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
204 | 202 | | |
205 | | - | |
206 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
207 | 215 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
| |||
0 commit comments