gims 0.6.3 β†’ 0.6.5

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,31 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.5] - 2025-10-20
4
+
5
+ ### πŸ”§ Command Behavior Updated
6
+ - **`g a` (amend) default behavior changed**: Now keeps the original commit message by default (`--no-edit`)
7
+ - **New `--edit` flag**: Use `g a --edit` to generate a new AI commit message
8
+ - **Simpler workflow**: `g a` simply merges current changes into previous commit without editing the message
9
+
10
+ ### πŸ“š Documentation Updates
11
+ - Updated all documentation to reflect the new amend behavior
12
+ - Clarified that `g a` merges changes while keeping the original message
13
+
14
+ ---
15
+
16
+ ## [0.6.4] - 2025-10-19
17
+
18
+ ### πŸ”§ Command Aliases Fixed
19
+ - **Fixed `g i` alias**: Now correctly initializes a git repository (was incorrectly mapped to interactive mode)
20
+ - **Updated `g interactive` alias**: Changed from `g i` to `g int` to avoid conflicts
21
+ - **Verified `g ls` and `g ll`**: Both commands working correctly (short and detailed commit history)
22
+
23
+ ### πŸ“š Documentation Updates
24
+ - Updated `QUICK_REFERENCE.md` to reflect correct command aliases
25
+ - Updated help output (`g q`) to show correct mappings
26
+
27
+ ---
28
+
3
29
  ## [0.6.2] - 2024-12-19
4
30
 
5
31
  ### πŸš€ AI Model Updates
@@ -4,14 +4,14 @@
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
11
  g ls # List - Short commit history
12
12
  g ll # Large List - Detailed commit history
13
13
  g h # History - Alias for list
14
- g a # Amend - Smart amend with AI
14
+ g a # Amend - Merge changes into previous commit (keeps message)
15
15
  g u # Undo - Undo last commit
16
16
  ```
17
17
 
@@ -34,7 +34,7 @@ g setup
34
34
  g s
35
35
 
36
36
  # 2. Commit with AI (choose one)
37
- g i # Interactive mode (guided)
37
+ g int # Interactive mode (guided)
38
38
  g o # One-command: commit + push
39
39
  g l # Local commit only
40
40
 
@@ -55,7 +55,8 @@ g h # Same as g ls
55
55
  ```bash
56
56
  g sg --multiple # Get 3 AI suggestions
57
57
  g p # Preview before committing
58
- g a # Smart amend with new AI message
58
+ g a # Amend: merge changes to previous commit (keeps message)
59
+ g a --edit # Amend with new AI-generated message
59
60
  g sync --rebase # Smart sync with rebase
60
61
  g stash # Stash with AI description
61
62
  ```
package/README.md CHANGED
@@ -29,13 +29,14 @@ 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
36
  | `g ls` | Commit history (short) |
36
37
  | `g ll` | Commit history (detailed) |
37
38
  | `g h` | Commit history (alias for ls) |
38
- | `g a` | Smart amend |
39
+ | `g a` | Amend previous commit (keeps message) |
39
40
 
40
41
  ## πŸ€– AI Models
41
42
 
@@ -48,7 +49,7 @@ g o # AI commit + push
48
49
  ```bash
49
50
  # Daily workflow
50
51
  g s # Check what changed
51
- g i # Interactive commit
52
+ g int # Interactive commit
52
53
  g o # Quick commit + push
53
54
 
54
55
  # Advanced
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,14 +304,14 @@ 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
311
  console.log(` ${color.cyan('g ls')} List - Short commit history`);
312
312
  console.log(` ${color.cyan('g ll')} Large List - Detailed commit history`);
313
313
  console.log(` ${color.cyan('g h')} History - Alias for list`);
314
- console.log(` ${color.cyan('g a')} Amend - Smart amend with AI`);
314
+ console.log(` ${color.cyan('g a')} Amend - Merge changes to previous commit (keeps message)`);
315
315
  console.log(` ${color.cyan('g u')} Undo - Undo last commit\n`);
316
316
 
317
317
  console.log(color.bold('Quick Setup:'));
@@ -321,14 +321,14 @@ program.command('help-quick').alias('q')
321
321
 
322
322
  console.log(color.bold('Essential Workflow:'));
323
323
  console.log(` ${color.cyan('g s')} Check what's changed`);
324
- console.log(` ${color.cyan('g i')} or ${color.cyan('g o')} Commit with AI`);
324
+ console.log(` ${color.cyan('g int')} or ${color.cyan('g o')} Commit with AI (interactive or online)`);
325
325
  console.log(` ${color.cyan('g ls')} or ${color.cyan('g h')} View history\n`);
326
326
 
327
327
  console.log(`For full help: ${color.cyan('g --help')}`);
328
328
  console.log(`For detailed docs: See README.md`);
329
329
  });
330
330
 
331
- program.command('init')
331
+ program.command('init').alias('i')
332
332
  .description('Initialize a new Git repository')
333
333
  .action(async () => {
334
334
  try {
@@ -701,8 +701,8 @@ program.command('stash')
701
701
  });
702
702
 
703
703
  program.command('amend').alias('a')
704
- .description('Stage all changes and amend last commit')
705
- .option('--no-edit', 'Keep existing commit message')
704
+ .description('Stage all changes and amend last commit (keeps message)')
705
+ .option('--edit', 'Generate new AI commit message')
706
706
  .action(async (cmdOptions) => {
707
707
  await ensureRepo();
708
708
  try {
@@ -721,10 +721,7 @@ program.command('amend').alias('a')
721
721
  return;
722
722
  }
723
723
 
724
- if (cmdOptions.noEdit) {
725
- await git.raw(['commit', '--amend', '--no-edit']);
726
- Progress.success('Amended last commit with staged changes');
727
- } else {
724
+ if (cmdOptions.edit) {
728
725
  // Generate new message for amend
729
726
  Progress.start('πŸ€– Generating updated commit message');
730
727
  const newMessage = await generateCommitMessage(rawDiff, getOpts());
@@ -732,6 +729,10 @@ program.command('amend').alias('a')
732
729
 
733
730
  await git.raw(['commit', '--amend', '-m', newMessage]);
734
731
  Progress.success(`Amended commit: "${newMessage}"`);
732
+ } else {
733
+ // Default: Keep existing message (--no-edit)
734
+ await git.raw(['commit', '--amend', '--no-edit']);
735
+ Progress.success('Amended last commit with staged changes (kept original message)');
735
736
  }
736
737
  } catch (e) {
737
738
  handleError('Amend error', e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gims",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "Git Made Simple – AI‑powered git helper using Gemini / OpenAI",
5
5
  "author": "S41R4J",
6
6
  "license": "MIT",