tmpa-cli 1.0.1 β 1.0.2
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/README.md +91 -0
- package/bin/index.js +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# π TMPA CLI (The Multi Platform AI)
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/tmpa-cli)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
**TMPA CLI** is an interactive Node.js-based Command Line Interface (CLI) application that allows you to chat with various AI models (such as Google Gemini API or your own Custom REST API) directly from your terminal without opening a browser.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## β¨ Key Features
|
|
11
|
+
|
|
12
|
+
- π¨ **Modern Terminal UI**: Features a colorful futuristic ASCII Art banner and real-time loading indicators.
|
|
13
|
+
- π **Multi-Endpoint API**: Supports **Google Gemini API** (*default*) as well as your own **Custom REST API Endpoint**.
|
|
14
|
+
- βοΈ **Flexible Configuration**: Your API Key and Endpoint settings are securely saved in a local configuration file (`~/.tmpa_config.json`).
|
|
15
|
+
- β‘ **Instant Commands**: Internal command support such as `/config`, `/clear`, and `/exit`.
|
|
16
|
+
- πͺΆ **Lightweight & Fast**: Zero heavy dependencies, runs smoothly on Termux (Android), Linux, macOS, and Windows Terminal.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## π¦ Installation
|
|
21
|
+
|
|
22
|
+
### 1. Official Installation via npm (Recommended)
|
|
23
|
+
|
|
24
|
+
Make sure you have **Node.js** (v18+) installed in your terminal. Run the following global command:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install -g tmpa-cli
|
|
28
|
+
|
|
29
|
+
2. Installation via GitHub
|
|
30
|
+
βYou can also install directly from the GitHub repository:
|
|
31
|
+
|
|
32
|
+
npm install -g git+[https://github.com/zayyanathariz63-pixel/TMPA-CLI.git](https://github.com/zayyanathariz63-pixel/TMPA-CLI.git)
|
|
33
|
+
|
|
34
|
+
π Usage
|
|
35
|
+
βOnce installed, simply open your terminal and type:
|
|
36
|
+
|
|
37
|
+
bash :
|
|
38
|
+
tmpa
|
|
39
|
+
|
|
40
|
+
π First-Time Setup
|
|
41
|
+
βWhen you run the application for the first time, you will be prompted to enter:
|
|
42
|
+
|
|
43
|
+
1. API Key: Your API Key (e.g., from Google AI Studio).
|
|
44
|
+
2. API Endpoint URL:
|
|
45
|
+
βPress Enter to use the default Gemini API (gemini-2.5-flash).
|
|
46
|
+
βOr enter your own Custom REST API URL.
|
|
47
|
+
|
|
48
|
+
βπΉοΈ In-CLI Commands
|
|
49
|
+
βWhile inside the TMPA > chat session, you can use the following control commands:
|
|
50
|
+
|
|
51
|
+
Command Description
|
|
52
|
+
/config --> Update or change stored API Key and API Endpoint
|
|
53
|
+
/clear --> Clear the terminal screen and display the main banner
|
|
54
|
+
/exit --> Exit the TMPA CLI application
|
|
55
|
+
|
|
56
|
+
Preview Example :
|
|
57
|
+
βββββββββββββ βββββββββββ ββββββ
|
|
58
|
+
ββββββββββββββ βββββββββββββββββββββ
|
|
59
|
+
βββ βββββββββββββββββββββββββββ
|
|
60
|
+
βββ ββββββββββββββββββ ββββββββ
|
|
61
|
+
βββ βββ βββ ββββββ βββ βββ
|
|
62
|
+
βββ βββ ββββββ βββ βββ
|
|
63
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
64
|
+
The Multi Platform AI [Interactive Mode]
|
|
65
|
+
/config : Change API | /clear : Clear Screen | /exit : Exit
|
|
66
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
67
|
+
|
|
68
|
+
TMPA > hello, who are you?
|
|
69
|
+
TMPA CLI processing...
|
|
70
|
+
TMPA CLI : I am an AI assistant ready to help you!
|
|
71
|
+
|
|
72
|
+
π Project Structure :
|
|
73
|
+
tmpa-cli/
|
|
74
|
+
βββ bin/
|
|
75
|
+
β βββ index.js # Main CLI script (Node.js)
|
|
76
|
+
βββ .gitignore # Git ignore rules
|
|
77
|
+
βββ package.json # npm package manifest
|
|
78
|
+
βββ README.md # Official project documentation
|
|
79
|
+
|
|
80
|
+
## π Roadmap (Fitur Yang Akan Datang)
|
|
81
|
+
|
|
82
|
+
- [ ] π **Sistem Login Integration**: Auth langsung dari CLI ke akun TMPA.
|
|
83
|
+
- [ ] π **Perintah `/connect`**: Fitur interaktif untuk memilih dan terhubung ke berbagai endpoint/website TMPA secara langsung.
|
|
84
|
+
- [ ] π¨ **Tema UI Kustom**: Pilihan warna dan tampilan terminal.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
π License
|
|
88
|
+
βThis project is licensed under the MIT License.
|
|
89
|
+
βπ€ Developer
|
|
90
|
+
βDeveloped by Zayyan Athariz - GitHub: @zayyanathariz63-pixel
|
|
91
|
+
βnpm: tmpa-cli
|
package/bin/index.js
CHANGED
|
@@ -113,7 +113,7 @@ function handleUninstall() {
|
|
|
113
113
|
process.exit(0);
|
|
114
114
|
} catch (err) {
|
|
115
115
|
console.log('\nβ Gagal uninstall otomatis. Jalankan: npm uninstall -g tmpa-cli secara manual.\n');
|
|
116
|
-
|
|
116
|
+
process.exit(0);
|
|
117
117
|
}
|
|
118
118
|
} else {
|
|
119
119
|
console.log('Batal menghapus.\n');
|