@repolensai/cli 0.1.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 +70 -0
- package/bin/repolens.mjs +3518 -0
- package/lib/auth-store.d.ts +21 -0
- package/lib/auth-store.mjs +68 -0
- package/lib/git-history.d.ts +214 -0
- package/lib/git-history.mjs +1064 -0
- package/lib/history-metadata-shared.d.ts +18 -0
- package/lib/history-metadata-shared.mjs +87 -0
- package/lib/history-report-shared.d.ts +6 -0
- package/lib/history-report-shared.mjs +410 -0
- package/lib/protocol-handler.d.ts +15 -0
- package/lib/protocol-handler.mjs +158 -0
- package/lib/publish-shared.d.ts +14 -0
- package/lib/publish-shared.mjs +299 -0
- package/lib/runtime-events.d.ts +31 -0
- package/lib/runtime-events.mjs +80 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# @repolensai/cli
|
|
2
|
+
|
|
3
|
+
RepoLens terminal client for:
|
|
4
|
+
|
|
5
|
+
- connecting a terminal session to the RepoLens web product
|
|
6
|
+
- linking a local repo checkout to a RepoLens board
|
|
7
|
+
- building local context packs for Codex or Claude
|
|
8
|
+
- publishing local structured outputs back into RepoLens
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g @repolensai/cli
|
|
14
|
+
repolens doctor
|
|
15
|
+
repolens login --app-url https://repolens.ai
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Login
|
|
19
|
+
|
|
20
|
+
1. Sign into RepoLens on the web.
|
|
21
|
+
2. Run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
repolens login --app-url https://repolens.ai
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
3. Approve the terminal login in the browser.
|
|
28
|
+
4. Return to the terminal and let RepoLens finish login automatically.
|
|
29
|
+
|
|
30
|
+
On macOS, RepoLens stores the token in Keychain when available. Other platforms use the local RepoLens config file with restrictive permissions.
|
|
31
|
+
|
|
32
|
+
Manual fallback: `repolens login --app-url https://repolens.ai --token <token>` still works when browser approval is not available.
|
|
33
|
+
|
|
34
|
+
RepoLens can register a custom `repolens-cli://` protocol for one-click handoff from the web app into the local CLI. On macOS, Linux, and Windows, `repolens login` attempts to install RepoLens Launcher automatically. Copy-and-run remains the fallback when protocol support is unavailable.
|
|
35
|
+
|
|
36
|
+
On macOS, you can register that handler now:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
repolens install-protocol
|
|
40
|
+
repolens doctor
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
After that, RepoLens chat can attempt `Open in RepoLens Launcher` for suggested commands, and linked boards can resolve back to their local repo checkout.
|
|
44
|
+
|
|
45
|
+
## Release
|
|
46
|
+
|
|
47
|
+
This package is published from the repo via the `CLI Release` GitHub Actions workflow.
|
|
48
|
+
Before publishing, maintainers can run:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pnpm cli:smoke
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Common Commands
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
repolens whoami
|
|
58
|
+
repolens boards
|
|
59
|
+
repolens link --board-id <board-id>
|
|
60
|
+
repolens context --base origin/main --head HEAD --output .repolens/context.md
|
|
61
|
+
repolens evolution --path src/lib/auth.ts --since origin/main --output .repolens/evolution.md
|
|
62
|
+
repolens hotspots --since origin/main --output .repolens/hotspots.md
|
|
63
|
+
repolens ownership --path src/lib/auth.ts --since origin/main --output .repolens/ownership.md
|
|
64
|
+
repolens start-here --path src/features/billing --since origin/main --output .repolens/start-here.md
|
|
65
|
+
repolens trace --query auth --since origin/main --output .repolens/trace.md
|
|
66
|
+
repolens trace --query BillingService --since origin/main --publish-board-id <board-id>
|
|
67
|
+
repolens run codex --task "Explain this change" --mode change-brief --base origin/main --head HEAD
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
`evolution` and `ownership` now surface rename / move history when git can resolve it, directory targets now produce subsystem summaries, `start-here` builds reading order plus commit themes and why-changed context, `trace` now recognizes exact symbols and likely definitions, and all five history commands can publish directly into a linked board with `--publish-board-id`.
|