gims 0.6.2 β†’ 0.6.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.4] - 2025-10-19
4
+
5
+ ### πŸ”§ Command Aliases Fixed
6
+ - **Fixed `g i` alias**: Now correctly initializes a git repository (was incorrectly mapped to interactive mode)
7
+ - **Updated `g interactive` alias**: Changed from `g i` to `g int` to avoid conflicts
8
+ - **Verified `g ls` and `g ll`**: Both commands working correctly (short and detailed commit history)
9
+
10
+ ### πŸ“š Documentation Updates
11
+ - Updated `QUICK_REFERENCE.md` to reflect correct command aliases
12
+ - Updated help output (`g q`) to show correct mappings
13
+
14
+ ---
15
+
3
16
  ## [0.6.2] - 2024-12-19
4
17
 
5
18
  ### πŸš€ AI Model Updates
@@ -4,11 +4,13 @@
4
4
 
5
5
  ```bash
6
6
  g s # Status - Enhanced git status with AI insights
7
- g i # Interactive - Guided commit wizard
7
+ g i # Init - Initialize a new Git repository
8
8
  g p # Preview - See what will be committed
9
9
  g l # Local - AI commit locally
10
10
  g o # Online - AI commit + push
11
- g h # History - Numbered commit log
11
+ g ls # List - Short commit history
12
+ g ll # Large List - Detailed commit history
13
+ g h # History - Alias for list
12
14
  g a # Amend - Smart amend with AI
13
15
  g u # Undo - Undo last commit
14
16
  ```
@@ -32,13 +34,14 @@ g setup
32
34
  g s
33
35
 
34
36
  # 2. Commit with AI (choose one)
35
- g i # Interactive mode (guided)
37
+ g int # Interactive mode (guided)
36
38
  g o # One-command: commit + push
37
39
  g l # Local commit only
38
40
 
39
41
  # 3. View history
40
- g h # Recent commits
41
- g h --detailed --limit 10 # Detailed view
42
+ g ls # Recent commits (short)
43
+ g ll # Recent commits (detailed)
44
+ g h # Same as g ls
42
45
  ```
43
46
 
44
47
  ## Default AI Models
package/README.md CHANGED
@@ -29,10 +29,13 @@ g o # AI commit + push
29
29
  | Command | Description |
30
30
  |---------|-------------|
31
31
  | `g s` | Enhanced status with AI insights |
32
- | `g i` | Interactive commit wizard |
32
+ | `g i` | Initialize git repository |
33
+ | `g int` | Interactive commit wizard |
33
34
  | `g o` | AI commit + push |
34
35
  | `g l` | AI commit locally |
35
- | `g h` | Commit history |
36
+ | `g ls` | Commit history (short) |
37
+ | `g ll` | Commit history (detailed) |
38
+ | `g h` | Commit history (alias for ls) |
36
39
  | `g a` | Smart amend |
37
40
 
38
41
  ## πŸ€– AI Models
@@ -46,12 +49,12 @@ g o # AI commit + push
46
49
  ```bash
47
50
  # Daily workflow
48
51
  g s # Check what changed
49
- g i # Interactive commit
52
+ g int # Interactive commit
50
53
  g o # Quick commit + push
51
54
 
52
55
  # Advanced
53
56
  g sg --multiple # Get 3 AI suggestions
54
- g h --detailed # Detailed history
57
+ g ll # Detailed history
55
58
  g sync --rebase # Smart sync
56
59
  ```
57
60
 
package/bin/gims.js CHANGED
@@ -237,7 +237,7 @@ program.command('status').alias('s')
237
237
  }
238
238
  });
239
239
 
240
- program.command('interactive').alias('i')
240
+ program.command('interactive').alias('int')
241
241
  .description('Interactive commit wizard')
242
242
  .action(async () => {
243
243
  await ensureRepo();
@@ -304,11 +304,13 @@ program.command('help-quick').alias('q')
304
304
 
305
305
  console.log(color.bold('Single-Letter Workflow:'));
306
306
  console.log(` ${color.cyan('g s')} Status - Enhanced git status with AI insights`);
307
- console.log(` ${color.cyan('g i')} Interactive - Guided commit wizard`);
307
+ console.log(` ${color.cyan('g i')} Init - Initialize a new Git repository`);
308
308
  console.log(` ${color.cyan('g p')} Preview - See what will be committed`);
309
309
  console.log(` ${color.cyan('g l')} Local - AI commit locally`);
310
310
  console.log(` ${color.cyan('g o')} Online - AI commit + push`);
311
- console.log(` ${color.cyan('g h')} History - Numbered commit log`);
311
+ console.log(` ${color.cyan('g ls')} List - Short commit history`);
312
+ console.log(` ${color.cyan('g ll')} Large List - Detailed commit history`);
313
+ console.log(` ${color.cyan('g h')} History - Alias for list`);
312
314
  console.log(` ${color.cyan('g a')} Amend - Smart amend with AI`);
313
315
  console.log(` ${color.cyan('g u')} Undo - Undo last commit\n`);
314
316
 
@@ -319,14 +321,14 @@ program.command('help-quick').alias('q')
319
321
 
320
322
  console.log(color.bold('Essential Workflow:'));
321
323
  console.log(` ${color.cyan('g s')} Check what's changed`);
322
- console.log(` ${color.cyan('g i')} or ${color.cyan('g o')} Commit with AI`);
323
- console.log(` ${color.cyan('g h')} View history\n`);
324
+ console.log(` ${color.cyan('g int')} or ${color.cyan('g o')} Commit with AI (interactive or online)`);
325
+ console.log(` ${color.cyan('g ls')} or ${color.cyan('g h')} View history\n`);
324
326
 
325
327
  console.log(`For full help: ${color.cyan('g --help')}`);
326
328
  console.log(`For detailed docs: See README.md`);
327
329
  });
328
330
 
329
- program.command('init')
331
+ program.command('init').alias('i')
330
332
  .description('Initialize a new Git repository')
331
333
  .action(async () => {
332
334
  try {
@@ -736,9 +738,8 @@ program.command('amend').alias('a')
736
738
  }
737
739
  });
738
740
 
739
- program.command('list').alias('h')
740
- .description('Numbered git log (oldest β†’ newest)')
741
- .option('--detailed', 'Show detailed information')
741
+ program.command('list').alias('ls')
742
+ .description('Short numbered git log (oldest β†’ newest)')
742
743
  .option('--limit <n>', 'Limit number of commits', '20')
743
744
  .action(async (cmdOptions) => {
744
745
  await ensureRepo();
@@ -753,12 +754,7 @@ program.command('list').alias('h')
753
754
  }
754
755
 
755
756
  commits.forEach((c, i) => {
756
- if (cmdOptions.detailed) {
757
- const date = new Date(c.date).toLocaleString();
758
- console.log(`${color.cyan((i+1).toString())}. ${color.yellow(c.hash.slice(0,7))} | ${color.dim(date)} | ${color.green(c.author_name)} β†’ ${c.message}`);
759
- } else {
760
- console.log(`${color.cyan((i+1).toString())}. ${color.yellow(c.hash.slice(0,7))} ${c.message}`);
761
- }
757
+ console.log(`${color.cyan((i+1).toString())}. ${color.yellow(c.hash.slice(0,7))} ${c.message}`);
762
758
  });
763
759
 
764
760
  if (log.all.length >= limit) {
@@ -769,6 +765,61 @@ program.command('list').alias('h')
769
765
  }
770
766
  });
771
767
 
768
+ program.command('largelist').alias('ll')
769
+ .description('Detailed numbered git log (oldest β†’ newest)')
770
+ .option('--limit <n>', 'Limit number of commits', '20')
771
+ .action(async (cmdOptions) => {
772
+ await ensureRepo();
773
+ try {
774
+ const limit = parseInt(cmdOptions.limit) || 20;
775
+ const log = await git.log({ maxCount: limit });
776
+ const commits = [...log.all].reverse();
777
+
778
+ if (commits.length === 0) {
779
+ Progress.info('No commits found');
780
+ return;
781
+ }
782
+
783
+ commits.forEach((c, i) => {
784
+ const date = new Date(c.date).toLocaleString();
785
+ console.log(`${color.cyan((i+1).toString())}. ${color.yellow(c.hash.slice(0,7))} | ${color.dim(date)} | ${color.green(c.author_name)} β†’ ${c.message}`);
786
+ });
787
+
788
+ if (log.all.length >= limit) {
789
+ console.log(color.dim(`\n... showing last ${limit} commits (use --limit to see more)`));
790
+ }
791
+ } catch (e) {
792
+ handleError('Largelist error', e);
793
+ }
794
+ });
795
+
796
+ program.command('history').alias('h')
797
+ .description('Numbered git log (alias for list)')
798
+ .option('--limit <n>', 'Limit number of commits', '20')
799
+ .action(async (cmdOptions) => {
800
+ await ensureRepo();
801
+ try {
802
+ const limit = parseInt(cmdOptions.limit) || 20;
803
+ const log = await git.log({ maxCount: limit });
804
+ const commits = [...log.all].reverse();
805
+
806
+ if (commits.length === 0) {
807
+ Progress.info('No commits found');
808
+ return;
809
+ }
810
+
811
+ commits.forEach((c, i) => {
812
+ console.log(`${color.cyan((i+1).toString())}. ${color.yellow(c.hash.slice(0,7))} ${c.message}`);
813
+ });
814
+
815
+ if (log.all.length >= limit) {
816
+ console.log(color.dim(`\n... showing last ${limit} commits (use --limit to see more)`));
817
+ }
818
+ } catch (e) {
819
+ handleError('History error', e);
820
+ }
821
+ });
822
+
772
823
  program.command('branch <c> [name]').alias('b')
773
824
  .description('Branch from commit/index')
774
825
  .action(async (c, name) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gims",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Git Made Simple – AI‑powered git helper using Gemini / OpenAI",
5
5
  "author": "S41R4J",
6
6
  "license": "MIT",