gims 0.6.7 โ 0.8.1
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 +80 -0
- package/README.md +33 -13
- package/bin/gims.js +834 -103
- package/bin/lib/ai/providers.js +36 -34
- package/bin/lib/git/analyzer.js +118 -47
- package/bin/lib/utils/colors.js +15 -0
- package/bin/lib/utils/intelligence.js +421 -0
- package/bin/lib/utils/progress.js +70 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.1] - 2025-12-19
|
|
4
|
+
|
|
5
|
+
### ๐ Smart Sync Fix
|
|
6
|
+
New `g fix` command to handle branch sync issues (diverged/ahead/behind):
|
|
7
|
+
|
|
8
|
+
| Option | What it does |
|
|
9
|
+
|--------|--------------|
|
|
10
|
+
| `g fix` | Show status and available options |
|
|
11
|
+
| `g fix --ai` | Get AI recommendation for best approach |
|
|
12
|
+
| `g fix --merge` | Merge remote into local |
|
|
13
|
+
| `g fix --rebase` | Rebase local onto remote |
|
|
14
|
+
| `g fix --local --yes` | Force push local to remote |
|
|
15
|
+
| `g fix --remote --yes` | Reset to remote, discard local |
|
|
16
|
+
|
|
17
|
+
### ๐ง Conflict Helper
|
|
18
|
+
New `g conflicts` command shows conflicted files and how to resolve them.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## [0.8.0] - 2025-12-19
|
|
23
|
+
|
|
24
|
+
### ๐ New Workflow Shorthand Commands
|
|
25
|
+
Multi-step git workflows simplified to single commands:
|
|
26
|
+
|
|
27
|
+
| Command | Alias | What it does |
|
|
28
|
+
|---------|-------|--------------|
|
|
29
|
+
| `safe-pull` | `sp` | Stash โ Pull โ Stash pop (safe pull with uncommitted changes) |
|
|
30
|
+
| `main` | - | Switch to main/master and pull latest |
|
|
31
|
+
| `unstage` | `us` | Unstage all staged files |
|
|
32
|
+
| `discard` | `x` | Discard all changes (with --yes confirmation) |
|
|
33
|
+
| `stash-save` | `ss` | Quick stash all changes with auto-generated name |
|
|
34
|
+
| `stash-pop` | `pop` | Pop the latest stash |
|
|
35
|
+
| `delete-branch` | `del` | Delete branch locally and remotely |
|
|
36
|
+
| `cleanup` | `clean` | Remove local branches deleted from remote |
|
|
37
|
+
| `last` | - | Show last commit details and diff |
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## [0.7.2] - 2025-12-18
|
|
42
|
+
|
|
43
|
+
### ๐ Bug Fix
|
|
44
|
+
- **Fixed progress spinner garbage output**: Spinner now properly clears the line when stopping, preventing partial text artifacts like ` (1ms)rating AI review โ `
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## [0.7.1] - 2025-12-18
|
|
49
|
+
|
|
50
|
+
### ๐ Bug Fix
|
|
51
|
+
- **Fixed AI suggestions in interactive mode**: Multiple suggestions now correctly display message strings instead of `[object Object]`
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## [0.7.0] - 2025-12-18
|
|
56
|
+
|
|
57
|
+
### ๐ New Intelligent Commands
|
|
58
|
+
- **`g wip`**: Quick work-in-progress commit - stage all and commit instantly
|
|
59
|
+
- **`g today` / `g t`**: Show all commits made today with timestamps
|
|
60
|
+
- **`g stats`**: Personal commit statistics with streak tracking, type breakdown, and style analysis
|
|
61
|
+
- **`g review` / `g r`**: AI code review before committing - shows complexity, detected patterns, and suggested message
|
|
62
|
+
- **`g split`**: Smart suggestions for splitting large changesets into atomic commits
|
|
63
|
+
|
|
64
|
+
### โจ Enhanced Status
|
|
65
|
+
- **File type emojis**: ๐ JS, ๐จ CSS, ๐งช tests, โ๏ธ config, ๐ฆ package.json, etc.
|
|
66
|
+
- **Session awareness**: Shows time since last commit and daily commit count
|
|
67
|
+
- **Branch context**: Detects branch type from naming patterns (feat/, fix/, etc.)
|
|
68
|
+
- **Smarter insights**: Suggests staging, split commits, and more
|
|
69
|
+
|
|
70
|
+
### ๐ง Intelligence Module
|
|
71
|
+
- **Commit pattern analysis**: Learns your style from git history
|
|
72
|
+
- **Semantic change detection**: Identifies breaking changes, new features, bug fixes
|
|
73
|
+
- **Complexity analysis**: Visual indicators for simple/moderate/complex changes
|
|
74
|
+
|
|
75
|
+
### ๐ UX Improvements
|
|
76
|
+
- **Time elapsed display**: Shows how long operations take
|
|
77
|
+
- **Random tips**: Contextual tips to help learn GIMS features
|
|
78
|
+
- **Cached response indicators**: Know when AI cache is used
|
|
79
|
+
- **Better quick-help**: Reorganized command reference with new commands
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
3
83
|
## [0.6.7] - 2025-10-26
|
|
4
84
|
|
|
5
85
|
### ๐ง Fixes
|
package/README.md
CHANGED
|
@@ -26,17 +26,36 @@ g o # AI commit + push
|
|
|
26
26
|
|
|
27
27
|
## ๐ฏ Main Commands
|
|
28
28
|
|
|
29
|
+
### ๐ง Smart Commands
|
|
29
30
|
| Command | Description |
|
|
30
31
|
|---------|-------------|
|
|
31
32
|
| `g s` | Enhanced status with AI insights |
|
|
32
|
-
| `g i` | Initialize git repository |
|
|
33
|
-
| `g int` | Interactive commit wizard |
|
|
34
33
|
| `g o` | AI commit + push |
|
|
35
34
|
| `g l` | AI commit locally |
|
|
35
|
+
| `g wip` | Quick WIP commit |
|
|
36
|
+
| `g r` | AI code review |
|
|
37
|
+
| `g t` | Show today's commits |
|
|
38
|
+
| `g stats` | Personal commit statistics |
|
|
39
|
+
|
|
40
|
+
### โก Workflow Shortcuts
|
|
41
|
+
| Command | What it does |
|
|
42
|
+
|---------|--------------|
|
|
43
|
+
| `g sp` | **Safe Pull** (Stash โ Pull โ Pop) |
|
|
44
|
+
| `g fix` | **Smart Fix** for branch sync issues |
|
|
45
|
+
| `g main` | Switch to main/master + pull |
|
|
46
|
+
| `g ss` | Quick stash save |
|
|
47
|
+
| `g pop` | Pop latest stash |
|
|
48
|
+
| `g us` | Unstage all files |
|
|
49
|
+
| `g x` | Discard all changes (with confirm) |
|
|
50
|
+
|
|
51
|
+
### ๐ ๏ธ Helper Commands
|
|
52
|
+
| Command | Description |
|
|
53
|
+
|---------|-------------|
|
|
54
|
+
| `g last` | Show last commit details |
|
|
55
|
+
| `g conflicts` | Conflict resolution helper |
|
|
56
|
+
| `g clean` | Remove dead local branches |
|
|
36
57
|
| `g ls` | Commit history (short) |
|
|
37
|
-
| `g
|
|
38
|
-
| `g h` | Commit history (alias for ls) |
|
|
39
|
-
| `g a` | Amend previous commit (keeps message) |
|
|
58
|
+
| `g a` | Amend previous commit |
|
|
40
59
|
|
|
41
60
|
## ๐ค AI Models
|
|
42
61
|
|
|
@@ -48,14 +67,15 @@ g o # AI commit + push
|
|
|
48
67
|
|
|
49
68
|
```bash
|
|
50
69
|
# Daily workflow
|
|
51
|
-
g s # Check
|
|
52
|
-
g
|
|
53
|
-
g
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
g
|
|
58
|
-
g
|
|
70
|
+
g s # Check status
|
|
71
|
+
g sp # Safe pull updates
|
|
72
|
+
g fix # Fix any sync issues
|
|
73
|
+
g o # Commit + push
|
|
74
|
+
|
|
75
|
+
# Power functions
|
|
76
|
+
g r # Review code before commit
|
|
77
|
+
g stats # Check your streak
|
|
78
|
+
g split # Split big changesets
|
|
59
79
|
```
|
|
60
80
|
|
|
61
81
|
## ๐ง Configuration
|