arisa 4.0.6 → 4.0.8
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/package.json +1 -1
- package/src/runtime/bootstrap.js +13 -3
package/package.json
CHANGED
package/src/runtime/bootstrap.js
CHANGED
|
@@ -6,6 +6,15 @@ import { createPiOAuthLogin } from "../core/agent/pi-auth-login.js";
|
|
|
6
6
|
import { createPiRuntime, hasProviderAuth, listPiProviders, listProviderModels, supportsProviderOAuth } from "../core/agent/pi-runtime.js";
|
|
7
7
|
import { configFile, ensureArisaHome } from "./paths.js";
|
|
8
8
|
|
|
9
|
+
const ARISA_BANNER = [
|
|
10
|
+
" █████╗ ██████╗ ██╗███████╗ █████╗ ",
|
|
11
|
+
"██╔══██╗██╔══██╗██║██╔════╝██╔══██╗",
|
|
12
|
+
"███████║██████╔╝██║███████╗███████║",
|
|
13
|
+
"██╔══██║██╔══██╗██║╚════██║██╔══██║",
|
|
14
|
+
"██║ ██║██║ ██║██║███████║██║ ██║",
|
|
15
|
+
"╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝"
|
|
16
|
+
].join("\n");
|
|
17
|
+
|
|
9
18
|
async function exists(file) {
|
|
10
19
|
try {
|
|
11
20
|
await readFile(file, "utf8");
|
|
@@ -282,9 +291,10 @@ export async function bootstrapIfNeeded({ force = false, cliConfigOverrides = {}
|
|
|
282
291
|
return value || fallback;
|
|
283
292
|
};
|
|
284
293
|
|
|
285
|
-
console.log(
|
|
286
|
-
console.log("
|
|
287
|
-
|
|
294
|
+
console.log(`\n${ARISA_BANNER}`);
|
|
295
|
+
console.log("-------- https://arisa.sh --------\n");
|
|
296
|
+
console.log("Get Telegram bot token from https://t.me/BotFather");
|
|
297
|
+
const telegramApiKey = await ask("Telegram bot token");
|
|
288
298
|
const telegramMaxChatIds = Number(await ask("Maximum authorized chat IDs", "1"));
|
|
289
299
|
|
|
290
300
|
const runtime = createPiRuntime();
|