sarangai-cli 1.0.2 → 1.0.3

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/dist/index.cjs +7 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -205,17 +205,21 @@ program.name("sarang").description(import_chalk.default.cyanBright("SarangAI CLI
205
205
  startInteractiveSession();
206
206
  });
207
207
  program.command("login").description("Hubungkan API Key SarangAI akun Anda").action(async () => {
208
+ const baseUrl = resolveBaseUrl();
209
+ console.log(import_chalk.default.cyanBright("\n\u{1F510} Autentikasi SarangAI CLI"));
210
+ console.log(import_chalk.default.gray("Dapatkan API Key Anda di: ") + import_chalk.default.underline.cyan(`${baseUrl}/dashboard`));
211
+ console.log(import_chalk.default.gray("--------------------------------------------------\n"));
208
212
  const res = await (0, import_prompts.default)({
209
213
  type: "password",
210
214
  name: "key",
211
- message: "Masukkan SarangAI API Key Anda (dari dashboard panel):"
215
+ message: "Masukkan SarangAI API Key Anda:"
212
216
  });
213
217
  if (!res.key) {
214
- console.log(import_chalk.default.red("Login dibatalkan."));
218
+ console.log(import_chalk.default.red("\nLogin dibatalkan.\n"));
215
219
  return;
216
220
  }
217
221
  saveConfig({ apiKey: res.key.trim() });
218
- console.log(import_chalk.default.green("\u2714 API Key berhasil disimpan di ~/.sarangairc"));
222
+ console.log(import_chalk.default.green("\n\u2714 Berhasil terhubung! API Key tersimpan di ~/.sarangairc\n"));
219
223
  });
220
224
  program.command("balance").description("Cek sisa saldo kredit akun SarangAI Anda").action(async () => {
221
225
  const cfg = getConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sarangai-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CLI resmi SarangAI — Gateway multi-model AI langsung dari terminal Anda",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {