terminal-ai-helper 1.3.0 → 1.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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
package/bin/tai-install CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
  # npm's bin shim is a symlink into the package directory, and install.sh reads
3
3
  # its own location to decide what to install from — so resolve the symlink
4
- # chain to the real file first, then hand over to the installer beside it.
4
+ # chain to the real file first, then hand over to the installer at the
5
+ # package root, one level above bin/.
5
6
  set -e
6
7
  src="${BASH_SOURCE[0]:-$0}"
7
8
  while [ -L "$src" ]; do
@@ -9,4 +10,4 @@ while [ -L "$src" ]; do
9
10
  src="$(readlink "$src")"
10
11
  [ "${src:0:1}" = "/" ] || src="$dir/$src"
11
12
  done
12
- exec bash "$(cd "$(dirname "$src")" && pwd)/install.sh" "$@"
13
+ exec bash "$(cd "$(dirname "$src")/.." && pwd)/install.sh" "$@"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "terminal-ai-helper",
3
- "version": "1.3.0",
4
- "description": "The terminal that knows your next command — bash/zsh suggestions that learn from your own history. Offline, private, no account.",
3
+ "version": "1.3.1",
4
+ "description": "The terminal that knows your next command \u2014 bash/zsh suggestions that learn from your own history. Offline, private, no account.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
package/readme.md CHANGED
@@ -27,6 +27,8 @@ answered by the habit it shadows](assets/demo.gif)
27
27
  curl -fsSL https://raw.githubusercontent.com/mlibre/Terminal-AI-Helper/main/install.sh | bash
28
28
  ```
29
29
 
30
+ npm installs the same files: `npm i -g terminal-ai-helper`, then `tai-install`.
31
+
30
32
  The line downloads TAI to `~/.tai` and runs the installer from there; run it
31
33
  again later and it updates in place. It enables both shells, imports your
32
34
  history, and builds the first index: