matex-cli 1.2.27 → 1.2.29

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.
@@ -0,0 +1,23 @@
1
+ #!/bin/bash
2
+ # đŸ›Ąī¸ MATEX - Non-Sudo Global Config Fix
3
+ # This script configures npm to never need 'sudo' for global installs.
4
+
5
+ echo "📂 Creating local global directory..."
6
+ mkdir -p ~/.npm-global
7
+
8
+ echo "âš™ī¸ Configuring npm to use local prefix..."
9
+ npm config set prefix '~/.npm-global'
10
+
11
+ echo "📝 Adding to PATH (in .zshrc)..."
12
+ if ! grep -q ".npm-global/bin" ~/.zshrc; then
13
+ echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
14
+ echo "✅ PATH update added to ~/.zshrc"
15
+ else
16
+ echo "â„šī¸ PATH already configured in ~/.zshrc"
17
+ fi
18
+
19
+ echo "🔄 Refreshing current session PATH..."
20
+ export PATH=~/.npm-global/bin:$PATH
21
+
22
+ echo "✅ Done! You can now run 'npm install -g matex-cli@latest' WITHOUT sudo."
23
+ echo "👉 Please run this command to refresh your terminal: source ~/.zshrc"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matex-cli",
3
- "version": "1.2.27",
3
+ "version": "1.2.29",
4
4
  "description": "Official CLI tool for MATEX AI - Access powerful AI models from your terminal",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -0,0 +1,16 @@
1
+ #!/bin/bash
2
+ # 🚀 MATEX CLI - Local Global Publisher
3
+ # This script builds and links the CLI globally on your machine without sudo.
4
+
5
+ echo "🔨 Building MATEX CLI..."
6
+ npm run build
7
+
8
+ echo "đŸ›Ąī¸ Setting permissions..."
9
+ chmod +x bin/matex
10
+
11
+ echo "🔗 Linking globally..."
12
+ # Using --force to overwrite existing links
13
+ npm link --force
14
+
15
+ echo "✅ Success! You can now use the 'matex' command from anywhere."
16
+ echo "👉 Try running: matex --version"