@slahon/lazykit 1.0.0 ā 1.0.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.
- package/index.js +1 -1
- package/init.js +11 -6
- package/package.json +2 -2
package/index.js
CHANGED
package/init.js
CHANGED
|
@@ -6,11 +6,11 @@ const { execSync } = require('child_process');
|
|
|
6
6
|
const chalk = require('chalk');
|
|
7
7
|
const ora = require('ora');
|
|
8
8
|
|
|
9
|
-
const { log } = require('
|
|
10
|
-
const { ask, confirm, select } = require('
|
|
11
|
-
const { isGitRepo, getGitRemote, parseGitHubRepo, isGhCliAvailable } = require('
|
|
12
|
-
const { generateWorkflow } = require('
|
|
13
|
-
const { generateClaudeMd } = require('
|
|
9
|
+
const { log } = require('./logger');
|
|
10
|
+
const { ask, confirm, select } = require('./prompt');
|
|
11
|
+
const { isGitRepo, getGitRemote, parseGitHubRepo, isGhCliAvailable } = require('./git');
|
|
12
|
+
const { generateWorkflow } = require('./workflow');
|
|
13
|
+
const { generateClaudeMd } = require('./claude-md');
|
|
14
14
|
|
|
15
15
|
async function init() {
|
|
16
16
|
console.log(chalk.bold.white('\n𦄠LazyKit ā Drop an issue, get a PR.\n'));
|
|
@@ -28,7 +28,12 @@ async function init() {
|
|
|
28
28
|
if (repoInfo) {
|
|
29
29
|
log.success(`Detected repo: ${chalk.cyan(`${repoInfo.owner}/${repoInfo.repo}`)}`);
|
|
30
30
|
} else {
|
|
31
|
-
log.
|
|
31
|
+
log.error('No GitHub remote detected.');
|
|
32
|
+
console.log(chalk.gray('\n LazyKit requires a GitHub repository with a remote set up.\n'));
|
|
33
|
+
console.log(chalk.gray(' To fix this, connect your repo to GitHub first:\n'));
|
|
34
|
+
console.log(chalk.cyan(' git remote add origin https://github.com/<you>/<repo>'));
|
|
35
|
+
console.log(chalk.gray('\n Then re-run: ') + chalk.cyan('npx @slahon/lazykit init\n'));
|
|
36
|
+
process.exit(1);
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
log.blank();
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slahon/lazykit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Drop an issue, get a PR. AI-powered issue-to-PR automation using Claude.",
|
|
5
5
|
"bin": {
|
|
6
|
-
"lazykit": "./
|
|
6
|
+
"lazykit": "./index.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"start": "node bin/index.js"
|