@slahon/lazykit 1.3.1 → 1.3.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.
Files changed (3) hide show
  1. package/README.md +10 -6
  2. package/init.js +8 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -141,16 +141,20 @@ LazyKit uses your Claude Pro/Max subscription via an OAuth token — no pay-per-
141
141
 
142
142
  During `init`, LazyKit runs `claude setup-token` and tries to capture the token automatically. On many systems a browser window opens, you approve access, and the token is stored as `CLAUDE_CODE_OAUTH_TOKEN` in your repo secrets without any extra steps.
143
143
 
144
- If the token can't be captured automatically (varies by system), LazyKit falls back and asks you to paste it:
144
+ If the token can't be captured automatically (varies by system), LazyKit falls back and shows you how to get it:
145
145
 
146
+ **Option A — run in a new terminal:**
147
+ ```bash
148
+ claude setup-token
146
149
  ```
147
- Could not capture the token automatically.
148
- If a browser opened, complete the auth and copy the token it shows.
150
+ If the browser doesn't open, copy the URL it prints and open it manually in your browser.
149
151
 
150
- Paste your token here (or press Enter to skip) ›
151
- ```
152
+ **Option B get it directly from Claude.ai:**
153
+ 1. Go to `https://claude.ai/settings/claude-code`
154
+ 2. Click **"Generate token"**
155
+ 3. Copy the token (starts with `sk-ant-oat...`)
152
156
 
153
- Just paste the token from your terminal and LazyKit sets the secret for you. If you skip, you'll get step-by-step instructions to add it manually.
157
+ Then paste it when LazyKit prompts you it sets the GitHub secret automatically.
154
158
 
155
159
  **Token expiry:** OAuth tokens can expire. Run `lazykit status` to check the age of your token. If it's expired, re-run `npx @slahon/lazykit@latest init` to generate and store a fresh one.
156
160
 
package/init.js CHANGED
@@ -213,7 +213,14 @@ async function init({ dryRun = false } = {}) {
213
213
  if (!token) {
214
214
  console.log();
215
215
  log.warn('Could not capture the token automatically.');
216
- console.log(chalk.gray(' If a browser opened, complete the auth and copy the token it shows.\n'));
216
+ console.log(chalk.gray('\n If no browser opened, here\'s how to get your token manually:\n'));
217
+ console.log(chalk.bold(' Option A — run in a new terminal window:'));
218
+ console.log(chalk.cyan(' claude setup-token'));
219
+ console.log(chalk.gray(' If the browser still doesn\'t open, copy the URL it prints and open it manually.\n'));
220
+ console.log(chalk.bold(' Option B — get it directly from Claude.ai:'));
221
+ console.log(chalk.gray(' 1. Go to: ') + chalk.cyan('https://claude.ai/settings/claude-code'));
222
+ console.log(chalk.gray(' 2. Click "Generate token"'));
223
+ console.log(chalk.gray(' 3. Copy the token (starts with sk-ant-oat...)\n'));
217
224
  const pasted = await ask('Paste your token here (or press Enter to skip)', '');
218
225
  if (pasted && pasted.trim().startsWith('sk-ant-oat')) {
219
226
  token = pasted.trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slahon/lazykit",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Drop an issue, get a PR. AI-powered issue-to-PR automation using Claude.",
5
5
  "bin": {
6
6
  "lazykit": "./index.js"