bit-office 0.1.2 → 0.1.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.
- package/dist/index.js +3 -14
- package/dist/index.js.map +1 -1
- package/dist/web/out/404.html +2 -2
- package/dist/web/out/index.html +2 -2
- package/dist/web/out/index.txt +1 -1
- package/dist/web/out/office.html +2 -2
- package/dist/web/out/office.txt +1 -1
- package/dist/web/out/pair.html +2 -2
- package/dist/web/out/pair.txt +1 -1
- package/dist/web/out/sw.js +1 -1
- package/package.json +1 -1
- /package/dist/web/out/_next/static/{SlZZOrDlrWsYowqnfc5sb → cj3y0KrOWGVoa7jq43eZZ}/_buildManifest.js +0 -0
- /package/dist/web/out/_next/static/{SlZZOrDlrWsYowqnfc5sb → cj3y0KrOWGVoa7jq43eZZ}/_ssgManifest.js +0 -0
package/dist/index.js
CHANGED
|
@@ -4954,7 +4954,6 @@ var telegramChannel = {
|
|
|
4954
4954
|
|
|
4955
4955
|
// src/setup.ts
|
|
4956
4956
|
import { createInterface } from "readline";
|
|
4957
|
-
var AGENT_NAMES = ["Alex (Frontend Dev)", "Mia (Backend Dev)", "Leo (Fullstack Dev)", "Sophie (Code Reviewer)", "Yuki (QA / Tester)", "Marcus (Architect)"];
|
|
4958
4957
|
function ask(rl, question) {
|
|
4959
4958
|
return new Promise((resolve2) => {
|
|
4960
4959
|
rl.question(question, (answer) => resolve2(answer.trim()));
|
|
@@ -4970,24 +4969,14 @@ async function runSetup() {
|
|
|
4970
4969
|
console.log("Press Enter to skip any step.\n");
|
|
4971
4970
|
console.log("\u2500\u2500 Remote Access (Ably) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
4972
4971
|
console.log("Enables access from outside your LAN.");
|
|
4973
|
-
const ablyApiKey = await ask(rl, "Ably API Key: ");
|
|
4974
|
-
console.log("\n\u2500\u2500 Telegram Bots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
4975
|
-
console.log("Each bot becomes one AI agent.");
|
|
4976
|
-
console.log("Create bots via @BotFather on Telegram.\n");
|
|
4977
|
-
const tokens = [];
|
|
4978
|
-
for (let i = 0; i < 6; i++) {
|
|
4979
|
-
const token = await ask(rl, ` ${i + 1}. ${AGENT_NAMES[i]} token: `);
|
|
4980
|
-
tokens.push(token || null);
|
|
4981
|
-
}
|
|
4972
|
+
const ablyApiKey = await ask(rl, "Ably API Key (optional): ");
|
|
4982
4973
|
rl.close();
|
|
4983
4974
|
saveConfig({
|
|
4984
|
-
ablyApiKey: ablyApiKey || void 0
|
|
4985
|
-
telegramBotTokens: tokens
|
|
4975
|
+
ablyApiKey: ablyApiKey || void 0
|
|
4976
|
+
// telegramBotTokens: tokens,
|
|
4986
4977
|
});
|
|
4987
|
-
const activeCount = tokens.filter(Boolean).length;
|
|
4988
4978
|
console.log("\n\u2713 Config saved to ~/.bit-office/config.json");
|
|
4989
4979
|
if (ablyApiKey) console.log(" \u2022 Ably: enabled");
|
|
4990
|
-
if (activeCount > 0) console.log(` \u2022 Telegram: ${activeCount} bot(s)`);
|
|
4991
4980
|
console.log(" \u2022 Run with --setup to reconfigure\n");
|
|
4992
4981
|
}
|
|
4993
4982
|
|