hintshell 0.2.1 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +44 -15
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  </p>
4
4
 
5
5
  <h1 align="center">HintShell</h1>
6
- <p align="center"><strong>Next-Gen AI-Ready Real-time Command Suggestions for Your Terminal</strong></p>
6
+ <p align="center"><strong>Local, Context-Aware Real-time Command Suggestions for Your Terminal</strong></p>
7
7
 
8
8
  <p align="center">
9
9
  <a href="https://www.npmjs.com/package/hintshell"><img src="https://img.shields.io/npm/v/hintshell?color=CB3837&label=npm" alt="NPM Version" /></a>
@@ -14,14 +14,20 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- HintShell is an <strong>AI-ready productivity engine</strong> that <strong>embeds into your existing shell</strong> (PowerShell, Bash, or Zsh). It provides <strong>context-aware command suggestions</strong> in real-time, drastically reducing context-switching and boosting developer workflow efficiency. Built with <strong>Rust</strong> for maximum performance and minimum footprint.
17
+ HintShell is a <strong>local command-suggestion engine</strong> that <strong>embeds into your existing shell</strong> (PowerShell, Bash, or Zsh). It combines your command history with bounded context from the current directory and workspace, then presents suggestions without replacing native shell completion. Built with <strong>Rust</strong> for a small, responsive footprint.
18
18
  </p>
19
19
 
20
+ <p align="center">
21
+ <img src="assets/image1.png" alt="HintShell live suggestions in Git Bash" width="860" />
22
+ </p>
23
+ <p align="center">
24
+ <img src="assets/image2.png" alt="HintShell contextual suggestions in Git Bash" width="860" />
25
+ </p>
20
26
  ---
21
27
 
22
28
  ## ⚡ Why HintShell?
23
29
 
24
- Most shells offer basic, single-line autocomplete. HintShell replaces that with a <strong>smart, interactive suggestion panel</strong> — a context-aware UI/UX upgrade right inside your terminal. It's the <strong>modern alternative to PSReadLine and zsh-autosuggestions</strong>.
30
+ Most shells offer basic, single-line autocomplete. HintShell adds a <strong>smart, interactive suggestion panel</strong> while keeping each shell authoritative for its own completion behavior: Bash and PSReadLine still own path and flag completion, and HintShell only supplies advisory command suggestions.
25
31
 
26
32
  | Feature | HintShell | PowerShell <br>(PSReadLine) | Zsh <br>(zsh-autosuggestions) | Bash | Git Bash | Fish |
27
33
  |---|:---:|:---:|:---:|:---:|:---:|:---:|
@@ -78,26 +84,49 @@ source ~/.bashrc
78
84
 
79
85
  ## 📖 Usage
80
86
 
87
+ ### Git Bash (Windows)
88
+
89
+ After `hs init`, opening a normal interactive Git Bash session automatically starts `hintshell bash`, which renders a local live overlay as you type. `fzf` is not required for this live mode.
90
+
91
+ - **↑ / ↓** navigate HintShell suggestions; **Esc** closes the overlay; **Enter** executes through Git Bash.
92
+ - **Tab** accepts only a compatible command suggestion. Path input such as `cd src/comp`, flags such as `git --ver`, and empty overlays are forwarded to Bash's native completion.
93
+ - The overlay adapts near the bottom of the terminal: it shows fewer rows when space is limited and stays hidden when a complete frame would scroll the terminal.
94
+ - To bypass the wrapper for one shell, run:
95
+
96
+ ```bash
97
+ HINTSHELL_DISABLE_AUTO_BASH=1 bash
98
+ ```
99
+
100
+ - Set `HINTSHELL_BASH` to an explicit `bash.exe` path. Set `HINTSHELL_DISABLE_LIVE_OVERLAY=1` to reject the wrapper in unsupported terminals.
101
+
102
+ > **Preview limitation:** the live wrapper targets ANSI-capable Windows Terminal and mintty. For full-screen terminal applications, bypass the wrapper and open them from a normal Git Bash session.
103
+
104
+ ### Zsh / Bash (macOS/Linux)
105
+
106
+ **Tab-to-Suggest** uses `fzf` when available. Type `git ` and press **Tab** to open a ranked command picker; **Enter** fills the command line. If `fzf` is unavailable, HintShell uses the top matching command without emitting an executable-path error.
107
+
108
+ ### Context-aware suggestions
109
+
110
+ Each request includes the current working directory and shell. HintShell merges bounded contextual candidates with local and global history, then ranks the combined list once.
111
+
112
+ - Paths for supported argument positions, including `cd`, `pushd`, `mkdir`, `rmdir`, `cat`, `rg`, `git add`, and `docker build`.
113
+ - Git branches/remotes, npm-family scripts, Docker entities, SSH hosts, and zoxide directories when the command and local runtime are available.
114
+ - Local-history matches are boosted only for the active directory; prefix quality remains more important than contextual or fuzzy matches.
115
+ - Filesystem scans, workspace detection, and external commands are bounded, cached where appropriate, and fail closed. Context candidates never write themselves to command history.
116
+
81
117
  ### PowerShell (Windows/Unix)
82
- **Real-time Overlay**: Suggestions appear automatically as a floating panel beneath your cursor as you type.
118
+ **Real-time Overlay**: Suggestions appear automatically as a floating panel beneath your cursor as you type.
83
119
  - **↑ / ↓** : Navigate
84
120
  - **Tab** : Accept
85
121
  - **Esc** : Close
86
122
 
87
- ### Zsh / Bash (macOS/Linux/Git Bash)
88
- **Tab-to-Suggest**: To avoid conflicts with `zsh-autosuggestions`, HintShell activates when you press **Tab**.
89
- - **Type `git ` + Tab** : Opens a fuzzy picker with frequencies.
90
- - **Enter** : Select and fill the command line.
91
-
92
- > **Git Bash note:** HintShell resolves `fzf` to a real executable (e.g. under WinGet Packages). If you previously saw `Permission denied` on `WinGet/Links/fzf`, reinstall/update to **0.2.0+**, run `hs init` (or reload `~/.bashrc`), and open a new terminal.
93
-
94
123
  ---
95
124
 
96
- ## ✨ What's new in 0.2.1
125
+ ## ✨ What's new in 0.3.0
97
126
 
98
- - Daemon single-instance + IDE terminal reliability (no stacked `hintshell-core`, IPC health checks).
99
- - Safe update while running: `npm i -g hintshell@latest` / `hs update` stop the daemon before replacing Windows binaries.
100
- - Clearer start/status/update logs. See [CHANGELOG.md](./CHANGELOG.md).
127
+ - Context-aware suggestions merge local/global history with path, workspace, Git, npm, Docker, SSH, and zoxide candidates.
128
+ - Git Bash launches the live overlay automatically after `hs init`; Bash retains authority for path and flag completion.
129
+ - The live overlay scrolls long result sets and avoids stale rendering at the bottom of the terminal. See [CHANGELOG.md](./CHANGELOG.md).
101
130
 
102
131
  ## 🔄 Updating
103
132
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "hintshell",
3
- "version": "0.2.1",
4
- "description": "Next-gen AI-ready real-time command suggestions for your terminal. Smart, context-aware autocomplete for PowerShell, Bash, and Zsh.",
3
+ "version": "0.3.1",
4
+ "description": "Local, context-aware real-time command suggestions for PowerShell, Bash, and Zsh.",
5
5
  "keywords": [
6
- "ai-shell",
6
+ "shell-assistant",
7
7
  "shell-assistant",
8
8
  "terminal-autocomplete",
9
9
  "cli-productivity",