Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Spell the app OpenMausBot on the Windows tray and startup screen

Ryan Wakeb2a1b0761393
diff --git a/docs/verification/startup-tray.md b/docs/verification/startup-tray.md
index 280c09844a..e24061e42e 100644
--- a/docs/verification/startup-tray.md
+++ b/docs/verification/startup-tray.md
@@ -28,5 +28,5 @@ These checks do not exercise physical clicks on the Windows notification-area
menu, the full packaged app, update downloads, or helper-console suppression.
For package acceptance, start a packaged Windows build in an isolated profile,
close during startup and after loading, reopen from the tray and a second
-launch, and use **Quit OpenMaus Bot**. Verify owned helpers exit and the tray
+launch, and use **Quit OpenMausBot**. Verify owned helpers exit and the tray
icon disappears. Repeat with an update-driven restart.
diff --git a/electron/native-language.node-test.mjs b/electron/native-language.node-test.mjs
index 1a8235328c..dd9ca8ba89 100644
--- a/electron/native-language.node-test.mjs
+++ b/electron/native-language.node-test.mjs
@@ -99,7 +99,7 @@ test("a new language redraws main's menu, both trays, the window title and the b
text.set("pt-br");
context.applyNativeLanguage();
assert.deepEqual(calls, [["menu", "Servidor"], ["title", "OpenMausBot — Hospedado: Office (office.example.test)"], ["badge", "Nenhuma conversa não lida"]]);
- assert.deepEqual(said(trays[0]), ["Abrir o OpenMaus Bot", "Sair do OpenMaus Bot"]);
+ assert.deepEqual(said(trays[0]), ["Abrir o OpenMausBot", "Sair do OpenMausBot"]);
assert.deepEqual(said(trays[1]), ["My Cloud com acesso a este PC", "Pausar", "Permitir que os Clouds executem comandos neste PC", "Ver atividade"]);
assert.equal(trays[1].tip, "OpenMausBot: My Cloud com acesso a este PC");
});
diff --git a/electron/startup-screen.mjs b/electron/startup-screen.mjs
index af25ba1fc8..c5bccfc82c 100644
--- a/electron/startup-screen.mjs
+++ b/electron/startup-screen.mjs
@@ -6,7 +6,7 @@ const attribute = (value) => String(value).replaceAll("&", "&").replaceAll('
export function startupScreenHtml(iconPath, { t = nativeText.englishText.t, lang = "en" } = {}) {
const icon = fs.readFileSync(iconPath).toString('base64');
- return `<!doctype html><html lang="${attribute(lang)}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src data:; style-src 'unsafe-inline'; script-src 'unsafe-inline'"><title>OpenMaus Bot</title><style>
+ return `<!doctype html><html lang="${attribute(lang)}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src data:; style-src 'unsafe-inline'; script-src 'unsafe-inline'"><title>OpenMausBot</title><style>
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:Segoe UI,system-ui,sans-serif;color:#f5f5f5;background:transparent}
main{height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #ffffff16;border-radius:20px;background:radial-gradient(ellipse at 50% 22%,#242529 0,#161719 54%,#111214 100%);-webkit-app-region:drag}
img{width:74px;height:74px;object-fit:contain;margin-bottom:18px;user-select:none;-webkit-user-drag:none}
@@ -16,7 +16,7 @@ export function startupScreenHtml(iconPath, { t = nativeText.englishText.t, lang
button{position:absolute;right:13px;top:13px;width:30px;height:30px;display:grid;place-items:center;padding:0;color:#999da5;border:0;border-radius:7px;background:transparent;cursor:pointer;-webkit-app-region:no-drag}
button:hover{color:#fff;background:#ffffff10}button:focus-visible{outline:2px solid #1686ff;outline-offset:2px}button svg{pointer-events:none}
@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none;border-color:#a6c9ff}}
- </style></head><body><main><button aria-label="${attribute(t("native.common.close"))}" onclick="window.startupScreen.close()"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><path d="m6 6 12 12M18 6 6 18"/></svg></button><img src="data:image/png;base64,${icon}" alt=""><h1>OpenMaus Bot</h1><div class="status" role="status"><span class="spinner" aria-hidden="true"></span>Opening your workspace…</div></main></body></html>`;
+ </style></head><body><main><button aria-label="${attribute(t("native.common.close"))}" onclick="window.startupScreen.close()"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><path d="m6 6 12 12M18 6 6 18"/></svg></button><img src="data:image/png;base64,${icon}" alt=""><h1>OpenMausBot</h1><div class="status" role="status"><span class="spinner" aria-hidden="true"></span>Opening your workspace…</div></main></body></html>`;
}
export function createStartupScreen({
@@ -29,7 +29,7 @@ export function createStartupScreen({
width: 440, height: 300, resizable: false, maximizable: false,
fullscreenable: false, frame: false, transparent: true,
backgroundColor: "#00000000", show: false, icon: iconPath,
- title: "OpenMaus Bot", autoHideMenuBar: true,
+ title: "OpenMausBot", autoHideMenuBar: true,
webPreferences: {
contextIsolation: true, sandbox: true, nodeIntegration: false,
preload: fileURLToPath(new URL("./startup-screen-preload.cjs", import.meta.url)),
diff --git a/electron/startup-tray.node-test.mjs b/electron/startup-tray.node-test.mjs
index 2309af45c8..08cd61c976 100644
--- a/electron/startup-tray.node-test.mjs
+++ b/electron/startup-tray.node-test.mjs
@@ -149,11 +149,11 @@ test("the tray's menu and the startup screen speak the app's language, and the t
}
const tray = createSystemTray({ Tray, Menu: { buildFromTemplate: value => value }, nativeImage: { createFromPath: () => ({ resize: () => ({}) }) },
iconPath, getWindow: () => null, onQuit: () => {}, t: text.t });
- assert.deepEqual(trayInstance.menu.map(item => item.label), ["Open OpenMaus Bot", undefined, "Quit OpenMaus Bot"]);
+ assert.deepEqual(trayInstance.menu.map(item => item.label), ["Open OpenMausBot", undefined, "Quit OpenMausBot"]);
text.set("pt-br");
tray.relabel();
- assert.deepEqual(trayInstance.menu.map(item => item.label), ["Abrir o OpenMaus Bot", undefined, "Sair do OpenMaus Bot"]);
- assert.equal(trayInstance.tooltip, "OpenMaus Bot");
+ assert.deepEqual(trayInstance.menu.map(item => item.label), ["Abrir o OpenMausBot", undefined, "Sair do OpenMausBot"]);
+ assert.equal(trayInstance.tooltip, "OpenMausBot");
const html = startupScreenHtml(iconPath, { t: text.t, lang: text.intlTag() });
assert.match(html, /<html lang="pt-BR">/);
assert.match(html, /<button aria-label="Fechar"/);
diff --git a/electron/system-tray.mjs b/electron/system-tray.mjs
index b9e409586c..3747e481f0 100644
--- a/electron/system-tray.mjs
+++ b/electron/system-tray.mjs
@@ -20,7 +20,7 @@ export function createSystemTray({ Tray, Menu, nativeImage, iconPath, getWindow,
{ type: "separator" },
{ label: t("native.tray.quit"), click: onQuit },
]));
- tray.setToolTip("OpenMaus Bot");
+ tray.setToolTip("OpenMausBot");
label();
tray.on("click", show);
tray.on("double-click", show);
diff --git a/scripts/verify-startup-tray.mjs b/scripts/verify-startup-tray.mjs
index bfd597b82a..0646267f13 100644
--- a/scripts/verify-startup-tray.mjs
+++ b/scripts/verify-startup-tray.mjs
@@ -61,7 +61,7 @@ if (!process.versions.electron) {
await delay(150);
mkdirSync(output, { recursive: true });
writeFileSync(join(output, "startup-screen.png"), (await active.webContents.capturePage()).toPNG());
- assert.equal(await active.webContents.executeJavaScript("document.querySelector('h1').textContent"), "OpenMaus Bot");
+ assert.equal(await active.webContents.executeJavaScript("document.querySelector('h1').textContent"), "OpenMausBot");
assert.equal(await active.webContents.executeJavaScript("typeof process"), "undefined");
// Exercise the actual renderer close button.
await active.webContents.executeJavaScript("document.querySelector('button').click()");
diff --git a/src/locales/en.json b/src/locales/en.json
index df0e4cfd02..cd299881de 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -9147,8 +9147,8 @@
"native.splash.openingNamed": "Opening {name}…",
"native.splash.wakingNamed": "Waking {name}…",
"native.common.close": "Close",
- "native.tray.open": "Open OpenMaus Bot",
- "native.tray.quit": "Quit OpenMaus Bot",
+ "native.tray.open": "Open OpenMausBot",
+ "native.tray.quit": "Quit OpenMausBot",
"native.lendTray.computer": "computer",
"native.lend.server": "Server: {origin}",
"native.lend.readWrite": "Read and write: {path}",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index eaae453b01..343bd4ffe2 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -9119,8 +9119,8 @@
"native.splash.openingNamed": "Abrindo {name}…",
"native.splash.wakingNamed": "Acordando {name}…",
"native.common.close": "Fechar",
- "native.tray.open": "Abrir o OpenMaus Bot",
- "native.tray.quit": "Sair do OpenMaus Bot",
+ "native.tray.open": "Abrir o OpenMausBot",
+ "native.tray.quit": "Sair do OpenMausBot",
"native.lendTray.computer": "computador",
"native.lend.server": "Servidor: {origin}",
"native.lend.readWrite": "Leitura e escrita: {path}",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index de7b7fa8c2..cd3386e396 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -32652,8 +32652,8 @@
"native.splash.openingNamed": "596315e0ad893633a4d5f602c8683b762202759ee4927ce7c558e44f9910b00c",
"native.splash.wakingNamed": "1551ab78d5cf128cdeeda1c5269df733a6a7966ae9583a1ec4503bbac5da9861",
"native.common.close": "7d9eb7acb13e24625c404401d8e88b2350e32162455885f18276cf802f7701ed",
- "native.tray.open": "eb4acf4c13cefffc9942a62b838f8e1ebf8ca26d9c90e2824958c9ae4a442162",
- "native.tray.quit": "834350c8a5307b57525ff8dae630a7abe79bddaa95676cce158c6a846cd80c7e",
+ "native.tray.open": "0c3af50ba8255f0bf2beec282472b6ce6851c6ffb8a3cede01e9c92d3c719018",
+ "native.tray.quit": "b6a8e6e8785b55de7a4369a87e288c8f135ae9bdb9b36811f49b4e211b30f350",
"native.lendTray.computer": "aa97302150fce811425cd84537028a5afbe37e3f1362ad45a51d467e17afdc9c",
"native.lend.server": "82cdfdd33f799b789379af06549786e394ff5a5dd56ba3164668ed23017d7def",
"native.lend.readWrite": "900006bb2f5416a83d1b002330f6f640e5bbde93a551103266e18109c0830486",
@@ -50475,8 +50475,8 @@
"native.splash.openingNamed": "596315e0ad893633a4d5f602c8683b762202759ee4927ce7c558e44f9910b00c",
"native.splash.wakingNamed": "1551ab78d5cf128cdeeda1c5269df733a6a7966ae9583a1ec4503bbac5da9861",
"native.common.close": "7d9eb7acb13e24625c404401d8e88b2350e32162455885f18276cf802f7701ed",
- "native.tray.open": "eb4acf4c13cefffc9942a62b838f8e1ebf8ca26d9c90e2824958c9ae4a442162",
- "native.tray.quit": "834350c8a5307b57525ff8dae630a7abe79bddaa95676cce158c6a846cd80c7e",
+ "native.tray.open": "0c3af50ba8255f0bf2beec282472b6ce6851c6ffb8a3cede01e9c92d3c719018",
+ "native.tray.quit": "b6a8e6e8785b55de7a4369a87e288c8f135ae9bdb9b36811f49b4e211b30f350",
"native.lendTray.computer": "aa97302150fce811425cd84537028a5afbe37e3f1362ad45a51d467e17afdc9c",
"native.lend.server": "82cdfdd33f799b789379af06549786e394ff5a5dd56ba3164668ed23017d7def",
"native.lend.readWrite": "900006bb2f5416a83d1b002330f6f640e5bbde93a551103266e18109c0830486",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index e1db7a8518..05dea9044b 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -9029,8 +9029,8 @@
"native.splash.openingNamed": "正在開啟 {name}…",
"native.splash.wakingNamed": "正在喚醒 {name}…",
"native.common.close": "關閉",
- "native.tray.open": "開啟 OpenMaus Bot",
- "native.tray.quit": "結束 OpenMaus Bot",
+ "native.tray.open": "開啟 OpenMausBot",
+ "native.tray.quit": "結束 OpenMausBot",
"native.lendTray.computer": "電腦",
"native.lend.server": "伺服器:{origin}",
"native.lend.readWrite": "可讀寫:{path}",