@snapcommit/cli 3.8.14 → 3.8.15

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/repl.js +20 -0
  2. package/package.json +1 -1
package/dist/repl.js CHANGED
@@ -259,11 +259,31 @@ async function startREPL() {
259
259
  console.log(chalk_1.default.gray(' • ') + chalk_1.default.cyan('stats') + chalk_1.default.gray(' - Show commit stats (stats today/week/month/year)'));
260
260
  console.log(chalk_1.default.gray(' • ') + chalk_1.default.cyan('cd <path>') + chalk_1.default.gray(' - Navigate to different repo'));
261
261
  console.log(chalk_1.default.gray(' • ') + chalk_1.default.cyan('update') + chalk_1.default.gray(' - Update to latest version'));
262
+ console.log(chalk_1.default.gray(' • ') + chalk_1.default.cyan('github connect') + chalk_1.default.gray(' - Connect GitHub for PR/CI features'));
262
263
  console.log(chalk_1.default.gray(' • ') + chalk_1.default.cyan('exit/quit') + chalk_1.default.gray(' - Exit SnapCommit\n'));
263
264
  console.log(chalk_1.default.gray('💡 I\'ll show you what I\'ll do before executing anything!\n'));
264
265
  rl.prompt();
265
266
  return;
266
267
  }
268
+ // GitHub commands - handle these BEFORE natural language processing!
269
+ if (line === 'github connect' || line === 'connect github') {
270
+ const { githubConnectCommand } = await Promise.resolve().then(() => __importStar(require('./commands/github-connect')));
271
+ await githubConnectCommand();
272
+ rl.prompt();
273
+ return;
274
+ }
275
+ if (line === 'github status' || line === 'github info') {
276
+ const { githubStatusCommand } = await Promise.resolve().then(() => __importStar(require('./commands/github-connect')));
277
+ await githubStatusCommand();
278
+ rl.prompt();
279
+ return;
280
+ }
281
+ if (line === 'github disconnect') {
282
+ const { githubDisconnectCommand } = await Promise.resolve().then(() => __importStar(require('./commands/github-connect')));
283
+ await githubDisconnectCommand();
284
+ rl.prompt();
285
+ return;
286
+ }
267
287
  // Everything else is natural language
268
288
  try {
269
289
  rl.pause(); // Pause REPL readline to avoid conflicts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapcommit/cli",
3
- "version": "3.8.14",
3
+ "version": "3.8.15",
4
4
  "description": "Instant AI commits. Beautiful progress tracking. Never write commit messages again.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {