@slahon/lazykit 1.0.1 → 1.0.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/init.js +11 -2
  2. package/package.json +1 -1
package/init.js CHANGED
@@ -18,7 +18,11 @@ async function init() {
18
18
 
19
19
  // ─── Step 1: Verify git repo ─────────────────────────────────────────────
20
20
  if (!isGitRepo()) {
21
- log.error('Not inside a git repository. Run this from your project root.');
21
+ log.error('Not inside a git repository.');
22
+ console.log(chalk.gray('\n LazyKit needs a git repo with a GitHub remote. To set one up:\n'));
23
+ console.log(chalk.cyan(' git init'));
24
+ console.log(chalk.cyan(' git remote add origin https://github.com/<you>/<repo>'));
25
+ console.log(chalk.gray('\n Then re-run: ') + chalk.cyan('npx @slahon/lazykit init\n'));
22
26
  process.exit(1);
23
27
  }
24
28
 
@@ -28,7 +32,12 @@ async function init() {
28
32
  if (repoInfo) {
29
33
  log.success(`Detected repo: ${chalk.cyan(`${repoInfo.owner}/${repoInfo.repo}`)}`);
30
34
  } else {
31
- log.warn('Could not detect GitHub repo from git remote. Continuing anyway.');
35
+ log.error('No GitHub remote detected.');
36
+ console.log(chalk.gray('\n LazyKit requires a GitHub repository with a remote set up.\n'));
37
+ console.log(chalk.gray(' To fix this, connect your repo to GitHub first:\n'));
38
+ console.log(chalk.cyan(' git remote add origin https://github.com/<you>/<repo>'));
39
+ console.log(chalk.gray('\n Then re-run: ') + chalk.cyan('npx @slahon/lazykit init\n'));
40
+ process.exit(1);
32
41
  }
33
42
 
34
43
  log.blank();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slahon/lazykit",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
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"