@snapcommit/cli 3.8.4 → 3.8.6
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.
|
@@ -191,7 +191,13 @@ async function executeCommitWithAI(intent) {
|
|
|
191
191
|
rlFileSelect.question(chalk_1.default.cyan('Select files: ') +
|
|
192
192
|
chalk_1.default.gray('(Enter=all, 1-3=specific, 1,3,5=multiple): '), (ans) => {
|
|
193
193
|
// Don't close - just resolve and let it clean up
|
|
194
|
-
setImmediate(() =>
|
|
194
|
+
setImmediate(() => {
|
|
195
|
+
rlFileSelect.close();
|
|
196
|
+
// Resume stdin for parent REPL
|
|
197
|
+
if (process.stdin.isPaused()) {
|
|
198
|
+
process.stdin.resume();
|
|
199
|
+
}
|
|
200
|
+
});
|
|
195
201
|
resolve(ans.trim());
|
|
196
202
|
});
|
|
197
203
|
});
|
|
@@ -255,7 +261,13 @@ async function executeCommitWithAI(intent) {
|
|
|
255
261
|
const response = await new Promise((resolve) => {
|
|
256
262
|
rlCommit.question(chalk_1.default.gray('→ Press Enter to commit, or edit message: '), (ans) => {
|
|
257
263
|
// Don't close - just resolve and let it clean up
|
|
258
|
-
setImmediate(() =>
|
|
264
|
+
setImmediate(() => {
|
|
265
|
+
rlCommit.close();
|
|
266
|
+
// Resume stdin for parent REPL
|
|
267
|
+
if (process.stdin.isPaused()) {
|
|
268
|
+
process.stdin.resume();
|
|
269
|
+
}
|
|
270
|
+
});
|
|
259
271
|
resolve(ans.trim());
|
|
260
272
|
});
|
|
261
273
|
});
|
|
@@ -247,7 +247,7 @@ async function githubStatusCommand() {
|
|
|
247
247
|
const config = getGitHubConfig();
|
|
248
248
|
if (!config) {
|
|
249
249
|
console.log(chalk_1.default.yellow('\n⚠️ GitHub not connected\n'));
|
|
250
|
-
console.log(chalk_1.default.gray('Run
|
|
250
|
+
console.log(chalk_1.default.gray('Run ') + chalk_1.default.cyan('github connect') + chalk_1.default.gray(' inside snap to connect\n'));
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
253
|
console.log(chalk_1.default.green('\n✅ GitHub Connected\n'));
|
|
@@ -267,5 +267,5 @@ async function githubDisconnectCommand() {
|
|
|
267
267
|
console.log(chalk_1.default.yellow(`\n Disconnecting GitHub (@${config.username})...\n`));
|
|
268
268
|
clearGitHubToken();
|
|
269
269
|
console.log(chalk_1.default.green(' ✅ GitHub disconnected successfully!\n'));
|
|
270
|
-
console.log(chalk_1.default.gray(' Run
|
|
270
|
+
console.log(chalk_1.default.gray(' Run ') + chalk_1.default.cyan('github connect') + chalk_1.default.gray(' inside snap to reconnect.\n'));
|
|
271
271
|
}
|
package/dist/lib/github.js
CHANGED
|
@@ -106,7 +106,7 @@ async function findIssueNumber(context) {
|
|
|
106
106
|
async function githubRequest(endpoint, options = {}) {
|
|
107
107
|
const token = (0, github_connect_1.getGitHubToken)();
|
|
108
108
|
if (!token) {
|
|
109
|
-
throw new Error('GitHub not connected. Run
|
|
109
|
+
throw new Error('GitHub not connected. Run "github connect" inside snap');
|
|
110
110
|
}
|
|
111
111
|
const url = `${GITHUB_API}${endpoint}`;
|
|
112
112
|
const headers = {
|
|
@@ -369,7 +369,7 @@ async function getPullRequestDiff(prNumber) {
|
|
|
369
369
|
}
|
|
370
370
|
const token = (0, github_connect_1.getGitHubToken)();
|
|
371
371
|
if (!token) {
|
|
372
|
-
throw new Error('GitHub not connected. Run
|
|
372
|
+
throw new Error('GitHub not connected. Run "github connect" inside snap');
|
|
373
373
|
}
|
|
374
374
|
const response = await fetch(`${GITHUB_API}/repos/${repo.owner}/${repo.name}/pulls/${prNumber}`, {
|
|
375
375
|
headers: {
|
package/dist/repl.js
CHANGED
|
@@ -96,7 +96,7 @@ async function startREPL() {
|
|
|
96
96
|
console.log(chalk_1.default.yellow.bold('│ 🐙 GITHUB FEATURES (OPTIONAL) │'));
|
|
97
97
|
console.log(chalk_1.default.yellow.bold('└─────────────────────────────────────────┘\n'));
|
|
98
98
|
console.log(chalk_1.default.gray(' Want to use GitHub features? (create PRs, check CI, etc.)\n'));
|
|
99
|
-
console.log(chalk_1.default.gray(' Run: ') + chalk_1.default.cyan('
|
|
99
|
+
console.log(chalk_1.default.gray(' Run: ') + chalk_1.default.cyan('github connect') + chalk_1.default.gray(' (inside snap)'));
|
|
100
100
|
console.log(chalk_1.default.gray(' This creates a CLI token for GitHub API access.\n'));
|
|
101
101
|
}
|
|
102
102
|
console.log(chalk_1.default.gray('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n'));
|