xray-code 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/auth.js +22 -1
  2. package/package.json +1 -1
package/dist/auth.js CHANGED
@@ -137,7 +137,28 @@ async function login() {
137
137
  // Step 4: Fetch user info
138
138
  const username = await fetchGitHubUser(token.access_token);
139
139
  console.log(` Logged in as @${username}\n`);
140
- // Step 5: Save credentials
140
+ // Step 5: Install the GitHub App (grants repo access)
141
+ console.log(` Now install the XRay app on your GitHub account to grant repo access.\n`);
142
+ const installUrl = "https://github.com/apps/proven-dev-xray/installations/new";
143
+ console.log(` Opening: ${installUrl}\n`);
144
+ try {
145
+ const { exec } = await import("node:child_process");
146
+ exec(`open "${installUrl}"`);
147
+ }
148
+ catch {
149
+ console.log(` Please open this URL manually: ${installUrl}\n`);
150
+ }
151
+ // Wait for user to complete installation
152
+ const readline = await import("node:readline");
153
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
154
+ await new Promise((resolve) => {
155
+ rl.question(" Press Enter after you've installed the app on GitHub... ", () => {
156
+ rl.close();
157
+ resolve();
158
+ });
159
+ });
160
+ console.log("");
161
+ // Step 6: Save credentials
141
162
  const creds = {
142
163
  access_token: token.access_token,
143
164
  token_type: token.token_type || "bearer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xray-code",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "XRay — code intelligence CLI. X-ray your codebase with instant cross-references.",
5
5
  "bin": {
6
6
  "xray": "dist/cli.js"