gims 0.6.2 β†’ 0.6.3

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.
@@ -8,7 +8,9 @@ g i # Interactive - Guided commit wizard
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
  ```
@@ -37,8 +39,9 @@ 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
@@ -32,7 +32,9 @@ g o # AI commit + push
32
32
  | `g i` | Interactive commit wizard |
33
33
  | `g o` | AI commit + push |
34
34
  | `g l` | AI commit locally |
35
- | `g h` | Commit history |
35
+ | `g ls` | Commit history (short) |
36
+ | `g ll` | Commit history (detailed) |
37
+ | `g h` | Commit history (alias for ls) |
36
38
  | `g a` | Smart amend |
37
39
 
38
40
  ## πŸ€– AI Models
@@ -51,7 +53,7 @@ g o # Quick commit + push
51
53
 
52
54
  # Advanced
53
55
  g sg --multiple # Get 3 AI suggestions
54
- g h --detailed # Detailed history
56
+ g ll # Detailed history
55
57
  g sync --rebase # Smart sync
56
58
  ```
57
59
 
package/bin/gims.js CHANGED
@@ -308,7 +308,9 @@ program.command('help-quick').alias('q')
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
 
@@ -320,7 +322,7 @@ program.command('help-quick').alias('q')
320
322
  console.log(color.bold('Essential Workflow:'));
321
323
  console.log(` ${color.cyan('g s')} Check what's changed`);
322
324
  console.log(` ${color.cyan('g i')} or ${color.cyan('g o')} Commit with AI`);
323
- console.log(` ${color.cyan('g h')} View history\n`);
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`);
@@ -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.3",
4
4
  "description": "Git Made Simple – AI‑powered git helper using Gemini / OpenAI",
5
5
  "author": "S41R4J",
6
6
  "license": "MIT",