Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(tests): repair main's failing and flaky checks (#3977)
zicochaos6c121ca5e27f
diff --git a/scripts/ci-scope.mjs b/scripts/ci-scope.mjsindex 51c265a514..ea56ff2d10 100644--- a/scripts/ci-scope.mjs+++ b/scripts/ci-scope.mjs@@ -50,7 +50,7 @@ export const VITEST_SUBSETS = {"server/server-lines.test.ts", "server/host/devs-reports.test.ts", "server/automation-reports.test.ts", "server/incidents.test.ts","server/routine-run-card.test.ts", "server/host/chief-notices-retry.test.ts", "server/connector-card-text.test.ts", "server/host/secret-cards.test.ts","server/notify.test.ts", "server/room-lines.test.ts", "server/post-to-room.test.ts",- "server/teammate-lines.test.ts"],+ "server/teammate-lines.test.ts", "server/cloud-send-arrived.test.ts"],shards: 2,nodeTests: true,},diff --git a/server/browser-steps.test.ts b/server/browser-steps.test.tsindex 7bebb686b5..d9babb5ca7 100644--- a/server/browser-steps.test.ts+++ b/server/browser-steps.test.ts@@ -265,7 +265,7 @@ describe("around every bot's browser call", () => {['Typed •••• into the element "#cvc"', "secret-on-screen"],]);expect(kept.at(-1)!.verify).toMatchObject({ landed: null });- expect(JSON.stringify(kept)).not.toContain("4242");+ expect(JSON.stringify(kept.map(step => ({ ...step, at: 0 })))).not.toContain("4242");});it("records closing the browser without a screenshot, and forgets its page", async () => {diff --git a/server/claude-account-api.test.ts b/server/claude-account-api.test.tsindex 48206f233b..528475a221 100644--- a/server/claude-account-api.test.ts+++ b/server/claude-account-api.test.ts@@ -214,7 +214,7 @@ describe("Claude account HTTP API", () => {try {await stream.until(frame => frame.kind === "hello");expect((await api("POST", `/api/bots/${runningBot.id}/messages`, { text: "remain active" })).status).toBe(202);- await expect.poll(() => existsSync(join(active.dir, "spawn.json"))).toBe(true);+ await expect.poll(() => existsSync(join(active.dir, "spawn.json")), { timeout: 10_000 }).toBe(true);const originalPid = JSON.parse(readFileSync(join(active.dir, "spawn.json"), "utf8")).pid;expect((await bot(runningBot.id)).busy).toBe(true);expect((await api("PATCH", `/api/instances/${active.id}`, { cli })).status).toBe(409);diff --git a/server/cloud-send-arrived.test.ts b/server/cloud-send-arrived.test.tsindex 1067aea03c..ca6f8e9a2e 100644--- a/server/cloud-send-arrived.test.ts+++ b/server/cloud-send-arrived.test.ts@@ -4,18 +4,20 @@ import { join } from "node:path";import { afterEach, describe, expect, it } from "vitest";import { arrivedRoute, automationsOffRoute, homeRoute, movedFrom, webhookHomeLine, webhookMovedLine } from "./cloud-send-arrived.ts";+import "./server-line-packs.ts";import type { MoveAutomations } from "./move-freeze.ts";const dirs: string[] = [];afterEach(() => { for (const dir of dirs.splice(0)) rmSync(dir, { recursive: true, force: true }); });-function cloud(owner = true) {+function cloud(owner = true, language?: string) {const dataDir = mkdtempSync(join(tmpdir(), "omb-arrived-")); dirs.push(dataDir);const lines: Array<{ threadId: string; text?: string }> = [];const deps = {dataDir,store: { bot: (id: string) => (id === "scout" ? { threadId: "t-scout" } : undefined), appendMessage: (threadId: string, message: { text?: string }) => { lines.push({ threadId, text: message.text }); return message; } } as never,webhooks: () => ({ list: () => [{ id: "w1", name: "Orders", botId: "scout" }, { id: "w2", name: "Gone", botId: "nobody" }] }) as never,+ lineLanguage: (person?: string) => person === "p_owner" ? language : "en",owner: () => (owner ? { person: "p_owner", name: "Owner" } : null),};const ask = async (body: unknown) => {@@ -38,6 +40,15 @@ describe("POST /api/cloud-send/arrived", () => {expect(lines).toHaveLength(1);});+ it.each([+ [undefined, 'Now that I live on Garage server, my webhook "Orders" has a new address. Open Automations, choose Copy address on "Orders", and paste it into the app that sends to it.'],+ ["de", 'Jetzt, wo ich auf Garage server lebe, hat mein Webhook „Orders“ eine neue Adresse. Öffne Automatisierungen, wähle bei „Orders“ die Option „Adresse kopieren“ und füge sie in die App ein, die Daten dorthin sendet.'],+ ])("writes the move notice in the owner's language (%s), keeping the server and webhook names", async (language, text) => {+ const { lines, ask } = cloud(true, language);+ expect((await ask({ v: 1, computer: "MacBook Air", webhooks: ["w1"], place: "Garage server" })).status).toBe(200);+ expect(lines).toEqual([{ threadId: "t-scout", text }]);+ });+it("only from My Cloud's owner", async () => {const { dataDir, lines, ask } = cloud(false);expect((await ask({ v: 1, computer: "MacBook Air", webhooks: ["w1"] })).status).toBe(403);diff --git a/server/cloud-send-arrived.ts b/server/cloud-send-arrived.tsindex 93b1056071..b255dce30a 100644--- a/server/cloud-send-arrived.ts+++ b/server/cloud-send-arrived.ts@@ -9,6 +9,7 @@ import { z } from "zod";import { writeFileAtomic } from "./atomic.ts";import type { CloudOwner } from "./cloud-owner-lines.ts";import { switchAutomationsOff, type MoveAutomations } from "./move-freeze.ts";+import { serverLine, type LineLanguage } from "./server-lines.ts";import type { RequestAuth } from "./request-auth.ts";import type { RouteContext } from "./routes/table.ts";import type { Store } from "./store.ts";@@ -27,8 +28,8 @@ export function movedFrom(dataDir: string): MovedFrom | null {}/** `place`: the server of the person's own the bot moved to, by the name they know it by; My Cloud without one. */-export const webhookMovedLine = (name: string, place = "My Cloud") =>- `Now that I live on ${place}, my webhook "${name}" has a new address. Open Automations, choose Copy address on "${name}", and paste it into the app that sends to it.`;+export const webhookMovedLine = (name: string, place = "My Cloud", language?: string) =>+ serverLine(language, "server.moves.webhookMoved", { name, place });export const webhookHomeLine = (name: string) =>`I'm back on this computer, so my webhook "${name}" has an address here again. Open Automations, choose Copy address on "${name}", and paste it into the app that sends to it.`;@@ -38,6 +39,7 @@ export interface ArrivedDeps {store: Pick<Store, "bot" | "appendMessage">;webhooks(): Pick<WebhookManager, "list"> | null;owner(auth: RequestAuth): CloudOwner | null;+ lineLanguage?: LineLanguage;}const arrivedBody = z.object({ v: z.literal(1), computer: z.string().trim().min(1).max(120), webhooks: z.array(z.string().regex(/^[\w-]{1,128}$/u)).max(500),@@ -48,7 +50,8 @@ export async function arrivedRoute(deps: ArrivedDeps, { req, res, path, method,if (path !== "/api/cloud-send/arrived") return false;const refuse = (status: number, error: string) => { json(res, status, { error }); return true; };if (method !== "POST") return refuse(405, "method not allowed");- if (!deps.owner(auth)) return refuse(403, "Only My Cloud's owner can finish a move into it.");+ const owner = deps.owner(auth);+ if (!owner) return refuse(403, "Only My Cloud's owner can finish a move into it.");const body = arrivedBody.safeParse(await readBody(req, 64 * 1024));if (!body.success) return refuse(400, "send { v: 1, computer, webhooks }");const kept = movedFrom(deps.dataDir);@@ -62,7 +65,7 @@ export async function arrivedRoute(deps: ArrivedDeps, { req, res, path, method,for (const { id } of telling) told.add(id);// Recorded before the lines go: a move cut short here never has a bot say it twice.writeFileAtomic(join(deps.dataDir, FILE), JSON.stringify({ computer: body.data.computer, at: kept?.at ?? Date.now(), told: [...told] }), { mode: 0o600 });- for (const line of telling) deps.store.appendMessage(line.threadId, { role: "bot", kind: "text", text: webhookMovedLine(line.name, body.data.place) });+ for (const line of telling) deps.store.appendMessage(line.threadId, { role: "bot", kind: "text", text: webhookMovedLine(line.name, body.data.place, deps.lineLanguage?.(owner.person)) });json(res, 200, { v: 1, told: telling.length });return true;}diff --git a/server/guarded-messages-api.test.ts b/server/guarded-messages-api.test.tsindex 71325912a6..a181887b80 100644--- a/server/guarded-messages-api.test.ts+++ b/server/guarded-messages-api.test.ts@@ -271,8 +271,10 @@ it("refuses a parked conversation after its own provider settles while its teammawait expect.poll(async () => (await api("PATCH", `/api/bots/${chief.id}/tasks/${chief.activeTaskId}`, { approvalMode: "ask" })).status,{ timeout: 15_000 }).toBe(200);const pagePath = `/api/threads/${chief.activeTaskId}/messages?limit=100`;+ await expect.poll(async () => ((await api("GET", pagePath)).body as Page).messages.some(message =>+ message.text === "The teammate owns the outstanding check." && message.turnTerminal,+ ), { timeout: 15_000 }).toBe(true);const baseline = (await api("GET", pagePath)).body as Page;- expect(baseline.messages.some(message => message.text === "The teammate owns the outstanding check." && message.turnTerminal)).toBe(true);expect(nodes().find(node => node.botId === teammate.id)?.status).toBe("running");const refusal = await api("POST", `/api/bots/${chief.id}/messages/guarded`, {threadId: chief.activeTaskId, sendId: randomUUID(), text: "THIS_GUARDED_FOLLOWUP_MUST_NOT_RUN", expectedActiveLeafId: baseline.activeLeafId,diff --git a/server/index.ts b/server/index.tsindex 45a91d7aef..fcf42a80f1 100644--- a/server/index.ts+++ b/server/index.ts@@ -12360,7 +12360,7 @@ ROUTES.push(createBotMemoryRoutes({broadcast({ kind: "config", ...configStatus() });},}));-const teamMoveIn = CLOUD_TEAM ? createTeamMoveIn({ team: CLOUD_TEAM, dataDir: DATA_DIR, sessions, store, routines: () => routines, library: () => readSkillLibraryIndex(), starters: threadStarters }) : null; const cloudSendOwner = (auth: RequestAuth) => teamMoveIn ? teamMoveIn.owner(auth) : (CLOUD_HOME && auth.kind === "session" && auth.scopes.includes("admin")) || ownHome.owner(auth) ? { person: actorKey(auth as RequestAuth & { kind: "session" }), name: cfg.profile?.name?.trim() || "User" } : null; const botMoves = CLOUD_PERSONAL ? createBotMoves({ store, routines: () => routines, webhooks: () => webhooks, appEvents: () => appTriggers.manager, waits: () => botWaits, busy: (id) => botHasActiveTurn(id) || Boolean(routines?.activeRunForBot(id)) }) : null; ROUTES.push(createBotMoveRoutes({ moves: botMoves, enabled: CLOUD_PERSONAL })); if (teamMoveIn) { ROUTES.unshift(teamMoveIn.guard); ROUTES.push(teamMoveIn.routes); teamOwners.backfill(teamMoveIn.list()); } ROUTES.push(createDeciderRoutes({ decider, extractor, config: () => cfg }), createTtsRoutes({ config: () => cfg }), createHelperSuggestionRoutes({ notNow: proactive.suggestionNotNow }), createSetupRequestRoutes({ store, language: () => appLanguage() ?? Intl.DateTimeFormat().resolvedOptions().locale, sendRefusal: cloudGuestSendRefusal, presser: (auth) => setupPresser(sharedMembership(), auth, messageSender(auth)), canSetUp: (botId, threadId) => registry.get(store.projectBotForTask(botId, threadId)?.modelSelection.instanceId ?? "")?.adapter.capabilities.agentsMcp === true, send: (auth, botId, threadId, text) => acceptDirectSend({ botId, threadId, text, sender: messageSender(auth), trigger: usageTriggerFor(auth), personPresent: auth.kind === "session" || DESKTOP_MANAGED }) }), createNotificationRoutes(undefined, threadShown, CLOUD_TEAM ? (auth, entry) => teamOwners.routing.notificationReaches(teamOwners.viewer(auth), entry) : undefined), createUpdateCheckRoutes({ check: serverUpdateChecker({ desktopManaged: DESKTOP_MANAGED, managed: Boolean(CLOUD_HOME || HOSTED_WORKSPACE) }) }), createTimeZoneRoutes({ adopts: Boolean(CLOUD_HOME), dataDir: DATA_DIR, changed: () => routines?.rescheduleLocalTimes() }), createCloudSendRoutes({ appVersion: serverVersion(), ...(CLOUD_TEAM ? { refusal: personalMoveRefusal(CLOUD_TEAM), scope: (auth) => teamMoveIn?.scope(auth) ?? null } : {}), bots: () => store.bots, messagesTail: (threadId, limit) => store.messagesTail(threadId, limit), skills: (bot) => listSkills(bot.id), logins, config: () => cfg, chats: { store, dataDir: DATA_DIR, owner: cloudSendOwner, ...(CLOUD_OWNER_KEY ? { ownerKey: CLOUD_OWNER_KEY } : {}), stamped: (threadId) => ownerOnlyCache.delete(threadId), instanceExists: (id) => Boolean(registry.get(id)), approvalSupported: (selection, mode) => supportsApprovalMode(selection, mode) }, cloudHome: Boolean(CLOUD_HOME), ownHome: ownHome.owner, automations: { routines: () => routines, calls: () => calendarCalls, webhooks: () => webhooks, appEvents: () => appTriggers.manager, waits: () => botWaits }, connections: () => cloudConnections.connections(), connectionFingerprints: (nonce) => cloudConnections.fingerprints(nonce), move: { dataDir: DATA_DIR, store, routines: () => routines, calls: () => calendarCalls, webhooks: () => webhooks, appEvents: () => appTriggers.manager, claudeCodeSkills: () => (claudeUserSkillsEnabled(cfg) ? claudeCodeSkillInputs() : []), instanceExists: (id) => Boolean(registry.get(id)), owner: cloudSendOwner, ownRoutine: (routine, person) => { cloudRoutineAuthors?.record(routine.id, routine); cloudRoutineAuthors?.wrote(routine.id, person); }, arrived: () => ownerOnlyCache.clear(), teamMemory, aboutMe: () => cfg.profile?.aboutMe ?? "", saveAboutMe: (text) => { saveConfig({ profile: { ...cfg.profile, aboutMe: text } }); Object.assign(cfg, loadConfig()); broadcast({ kind: "config", ...configStatus() }); } } }), cloudConnections.routes, createTodayRoutes({ visibleFor: (auth) => visibleTo(viewerFor(auth)), ...(teamOwners.asks ? { asks: teamOwners.asks, messages: teamMessages.needsYou } : {}), sources: () => ({ bots: store.bots, groups: store.groups, routines, parked: coordinator.active(), engines: registry.instances().map((instance) => ({ instanceId: instance.instanceId, snapshot: registry.lastSnapshot(instance.instanceId) })) }) }), createInboxRoutes(teamMessages));+const teamMoveIn = CLOUD_TEAM ? createTeamMoveIn({ team: CLOUD_TEAM, dataDir: DATA_DIR, sessions, store, routines: () => routines, library: () => readSkillLibraryIndex(), starters: threadStarters }) : null; const cloudSendOwner = (auth: RequestAuth) => teamMoveIn ? teamMoveIn.owner(auth) : (CLOUD_HOME && auth.kind === "session" && auth.scopes.includes("admin")) || ownHome.owner(auth) ? { person: actorKey(auth as RequestAuth & { kind: "session" }), name: cfg.profile?.name?.trim() || "User" } : null; const botMoves = CLOUD_PERSONAL ? createBotMoves({ store, routines: () => routines, webhooks: () => webhooks, appEvents: () => appTriggers.manager, waits: () => botWaits, busy: (id) => botHasActiveTurn(id) || Boolean(routines?.activeRunForBot(id)) }) : null; ROUTES.push(createBotMoveRoutes({ moves: botMoves, enabled: CLOUD_PERSONAL })); if (teamMoveIn) { ROUTES.unshift(teamMoveIn.guard); ROUTES.push(teamMoveIn.routes); teamOwners.backfill(teamMoveIn.list()); } ROUTES.push(createDeciderRoutes({ decider, extractor, config: () => cfg }), createTtsRoutes({ config: () => cfg }), createHelperSuggestionRoutes({ notNow: proactive.suggestionNotNow }), createSetupRequestRoutes({ store, language: () => appLanguage() ?? Intl.DateTimeFormat().resolvedOptions().locale, sendRefusal: cloudGuestSendRefusal, presser: (auth) => setupPresser(sharedMembership(), auth, messageSender(auth)), canSetUp: (botId, threadId) => registry.get(store.projectBotForTask(botId, threadId)?.modelSelection.instanceId ?? "")?.adapter.capabilities.agentsMcp === true, send: (auth, botId, threadId, text) => acceptDirectSend({ botId, threadId, text, sender: messageSender(auth), trigger: usageTriggerFor(auth), personPresent: auth.kind === "session" || DESKTOP_MANAGED }) }), createNotificationRoutes(undefined, threadShown, CLOUD_TEAM ? (auth, entry) => teamOwners.routing.notificationReaches(teamOwners.viewer(auth), entry) : undefined), createUpdateCheckRoutes({ check: serverUpdateChecker({ desktopManaged: DESKTOP_MANAGED, managed: Boolean(CLOUD_HOME || HOSTED_WORKSPACE) }) }), createTimeZoneRoutes({ adopts: Boolean(CLOUD_HOME), dataDir: DATA_DIR, changed: () => routines?.rescheduleLocalTimes() }), createCloudSendRoutes({ appVersion: serverVersion(), ...(CLOUD_TEAM ? { refusal: personalMoveRefusal(CLOUD_TEAM), scope: (auth) => teamMoveIn?.scope(auth) ?? null } : {}), bots: () => store.bots, messagesTail: (threadId, limit) => store.messagesTail(threadId, limit), skills: (bot) => listSkills(bot.id), logins, config: () => cfg, lineLanguage: personLanguages.forLine, chats: { store, dataDir: DATA_DIR, owner: cloudSendOwner, ...(CLOUD_OWNER_KEY ? { ownerKey: CLOUD_OWNER_KEY } : {}), stamped: (threadId) => ownerOnlyCache.delete(threadId), instanceExists: (id) => Boolean(registry.get(id)), approvalSupported: (selection, mode) => supportsApprovalMode(selection, mode) }, cloudHome: Boolean(CLOUD_HOME), ownHome: ownHome.owner, automations: { routines: () => routines, calls: () => calendarCalls, webhooks: () => webhooks, appEvents: () => appTriggers.manager, waits: () => botWaits }, connections: () => cloudConnections.connections(), connectionFingerprints: (nonce) => cloudConnections.fingerprints(nonce), move: { dataDir: DATA_DIR, store, routines: () => routines, calls: () => calendarCalls, webhooks: () => webhooks, appEvents: () => appTriggers.manager, claudeCodeSkills: () => (claudeUserSkillsEnabled(cfg) ? claudeCodeSkillInputs() : []), instanceExists: (id) => Boolean(registry.get(id)), owner: cloudSendOwner, ownRoutine: (routine, person) => { cloudRoutineAuthors?.record(routine.id, routine); cloudRoutineAuthors?.wrote(routine.id, person); }, arrived: () => ownerOnlyCache.clear(), teamMemory, aboutMe: () => cfg.profile?.aboutMe ?? "", saveAboutMe: (text) => { saveConfig({ profile: { ...cfg.profile, aboutMe: text } }); Object.assign(cfg, loadConfig()); broadcast({ kind: "config", ...configStatus() }); } } }), cloudConnections.routes, createTodayRoutes({ visibleFor: (auth) => visibleTo(viewerFor(auth)), ...(teamOwners.asks ? { asks: teamOwners.asks, messages: teamMessages.needsYou } : {}), sources: () => ({ bots: store.bots, groups: store.groups, routines, parked: coordinator.active(), engines: registry.instances().map((instance) => ({ instanceId: instance.instanceId, snapshot: registry.lastSnapshot(instance.instanceId) })) }) }), createInboxRoutes(teamMessages));if (CLOUD_TEAM) teamHost.adoptServerProfile(sessions.list().flatMap((session) => session.email ? [session.email] : []));ROUTES.push(createSidebarSectionRoutes({ store, teamComputers, maxBots: MAX_WORKSPACE_BOTS, assertTeamComputerChangeIdle, wireBot }), createPresenceRoutes({ isOwner: ownerOrAdmin, heard: (auth, language) => personLanguages.heard(auth.kind === "session" ? actorKey(auth) : THIS_COMPUTER, language), sawChat: (auth, threadId) => { if (ownerOrAdmin(auth) && store.botByThread(threadId)) sawThread(threadId); }, active: async (source, zone, language) => { const answer = await proactive.brief.active(source, zone, language); firstHourHooks.arrived(); return answer; }, ...(CLOUD_TEAM ? { member: teamMessages.arrived } : {}) }), createMeRoutes({ team: CLOUD_TEAM, session: (auth) => (auth.kind === "session" ? auth.session : null), profile: teamHost.memberProfile, save: teamHost.saveMemberProfile, seed: teamHost.seedMemberProfile, seeded: teamHost.seededFields, changed: () => broadcast({ kind: "config", ...configStatus() }) }), createTeamPhoneRoutes({ team: CLOUD_TEAM, sessions, publicBase: (req, auth) => publicUrl() ?? (auth.kind === "session" ? requestOrigin(req) : null) }),createTeamConnectionRoutes({ host: teamConnections, cfg: () => cfg, composio, publicOrigin: CLOUD_HOME?.publicOrigin ?? null, record: (auth, row) => appendAdminAction(DATA_DIR, { ...row, actor: decisionActorFor(auth) }) }), createSignInCardRoutes({ settle: signInSettle.settle, saveLogin: (botId, threadId, messageId, body, auth) => CLOUD_TEAM && !auth.scopes.includes("admin") ? Promise.resolve({ status: 403 as const, body: { error: memberLoginRefusal(CLOUD_TEAM) } }) : saveLoginFromCard(botId, threadId, messageId, body), saveTarget: signInSaveTarget, threadVisible: (auth, threadId) => visibleTo(viewerFor(auth)).thread(threadId) }));diff --git a/server/routes/cloud-send.ts b/server/routes/cloud-send.tsindex 8c64a43b77..24096b2719 100644--- a/server/routes/cloud-send.ts+++ b/server/routes/cloud-send.ts@@ -21,6 +21,7 @@ import type { AppConfig } from "../config.ts";import type { LoginStore } from "../login-store.ts";import type { MoveAutomations } from "../move-freeze.ts";import { threadHeads } from "../message-db.ts";+import type { LineLanguage } from "../server-lines.ts";import type { RequestAuth } from "../request-auth.ts";import type { BotRecord } from "../store.ts";import { PASS, type RouteHandler } from "./table.ts";@@ -29,6 +30,7 @@ export interface CloudSendRouteDeps extends Pick<CloudSendSources, "appVersion"messagesTail(threadId: string, limit: number): { messages: ReadonlyArray<{ role: string; text?: string }>; hasMore: boolean };logins: Pick<LoginStore, "changes" | "get" | "onePasswordConnectedAt" | "onePasswordGrants" | "onePasswordToken">;config(): Pick<AppConfig, "profile" | "language">;+ lineLanguage?: LineLanguage;chats?: CloudSendChatsDeps;/** This server is the person's own Cloud: it answers what a move asks of the Cloud it moves to. */cloudHome?: boolean;@@ -81,7 +83,7 @@ export function createCloudSendRoutes(deps: CloudSendRouteDeps): RouteHandler {if (move && await moveKindsRoute(move, ctx)) return;if (move && await moveMemoryRoute({ ...move, bot: (id) => move.store.bot(id) ?? undefined }, ctx)) return;if (move && await moveFilesRoute({ dataDir: move.dataDir, bots: () => (bot ? move.store.bots.filter((entry) => entry.id === bot) : move.store.bots), owner: move.owner }, ctx)) return;- if (move && home && await arrivedRoute({ dataDir: move.dataDir, store: move.store, webhooks: move.webhooks, owner: move.owner }, ctx)) return;+ if (move && home && await arrivedRoute({ dataDir: move.dataDir, store: move.store, webhooks: move.webhooks, owner: move.owner, lineLanguage: deps.lineLanguage ?? (() => deps.config().language) }, ctx)) return;if (move && deps.cloudHome && deps.automations && await automationsOffRoute({ automations: deps.automations, owner: move.owner }, ctx)) return;if (move && !deps.cloudHome && await homeRoute({ dataDir: move.dataDir, store: move.store, webhooks: move.webhooks }, ctx)) return;if (path === "/api/cloud-send/manifest") {diff --git a/src/locales/de.json b/src/locales/de.jsonindex 867f4881b0..fac6f2ecca 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -37,6 +37,7 @@"notice.dismiss": "Dauerhaft ausblenden","notice.notNow": "Jetzt nicht","notice.openFailed": "Dein Browser konnte nicht geöffnet werden. Bitte versuche es erneut.",+ "server.moves.webhookMoved": "Jetzt, wo ich auf {place} lebe, hat mein Webhook „{name}“ eine neue Adresse. Öffne Automatisierungen, wähle bei „{name}“ die Option „Adresse kopieren“ und füge sie in die App ein, die Daten dorthin sendet.","server.teammates.sameRequest": "Ein anderes Teammitglied hat eben dasselbe gefragt, daher bekommt dies dieselbe Antwort statt einer zweiten.","server.reports.sent": "An das MausBot-Team gesendet (Bericht {report}). Milind und Omkar bekommen ihn per E-Mail.","server.reports.sentReply": "An das MausBot-Team gesendet (Bericht {report}). Milind und Omkar bekommen ihn per E-Mail und antworten dir an {contact}.",diff --git a/src/locales/en.json b/src/locales/en.jsonindex e763971e26..2855bc7e71 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -134,6 +134,7 @@"notice.dismiss": "Dismiss for good","notice.notNow": "Not now","notice.openFailed": "Could not open your browser. Please try again.",+ "server.moves.webhookMoved": "Now that I live on {place}, my webhook \"{name}\" has a new address. Open Automations, choose Copy address on \"{name}\", and paste it into the app that sends to it.","server.teammates.sameRequest": "Another teammate asked the same a moment ago, so this gets that answer instead of a second one.","server.reports.sent": "Sent to the MausBot team (report {report}). Milind and Omkar get it by email.","server.reports.sentReply": "Sent to the MausBot team (report {report}). Milind and Omkar get it by email and will reply to {contact}.",diff --git a/src/locales/server-lines.test.ts b/src/locales/server-lines.test.tsindex f23f27f9f2..38a0c3cb33 100644--- a/src/locales/server-lines.test.ts+++ b/src/locales/server-lines.test.ts@@ -508,7 +508,6 @@ const PENDING: Readonly<Record<string, ReadonlyArray<readonly [file: string, sni["shared/first-reply-rescue.ts", "notice: … hasn't heard back from … yet."],],"moves to the Cloud": [- ["server/cloud-send-arrived.ts", "Now that I live on … , my webhook \" … \" has a new address. Open Autom"],["server/cloud-send-arrived.ts", "I'm back on this computer, so my webhook \" … \" has an address here aga"],],"calls": [