tmpa-cli 1.0.3 → 1.0.4

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/bin/index.js +2 -3
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -12,7 +12,6 @@ function loadConfig() {
12
12
  if (fs.existsSync(CONFIG_FILE)) {
13
13
  try {
14
14
  const data = JSON.parse(fs.readFileSync(CONFIG_FILE, 'utf8'));
15
- // Pastikan endpoint selalu ada nilainya agar tidak undefined
16
15
  if (!data.endpoint) {
17
16
  data.endpoint = 'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent';
18
17
  }
@@ -39,7 +38,8 @@ function showBanner() {
39
38
  ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝
40
39
  \x1b[0m───────────────────────────────────────────────────
41
40
  \x1b[32mThe Multi Platform AI [Interactive Mode]\x1b[0m
42
- /config : Ubah API | /connect : Hubungkan Web | /uninstall : Hapus CLI | /exit : Keluar
41
+ /config : Ubah API | /connect : Hubungkan Web
42
+ /uninstall : Hapus CLI | /exit : Keluar
43
43
  ───────────────────────────────────────────────────\n`);
44
44
  }
45
45
 
@@ -68,7 +68,6 @@ async function handleChat(prompt) {
68
68
  return askConfig(() => startPrompt());
69
69
  }
70
70
 
71
- // Pastikan endpoint aman dari undefined
72
71
  if (!config.endpoint) {
73
72
  config.endpoint = 'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent';
74
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmpa-cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "bin": {