@snapcommit/cli 3.8.13 → 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.
@@ -174,6 +174,11 @@ async function tryQuickCommands(input, context) {
174
174
  (0, stats_1.statsCommand)();
175
175
  return true;
176
176
  }
177
+ // GitHub management commands (NOT git operations - these are handled in repl/index.ts)
178
+ if (lower === 'github connect' || lower === 'github status' || lower === 'github disconnect') {
179
+ // Skip - let repl/index.ts handle these
180
+ return false;
181
+ }
177
182
  // Push commands
178
183
  if (lower === 'push' || lower === 'push it' || lower === 'push that') {
179
184
  try {
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.13",
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": {