Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Routine kept computer: a run that continues a conversation is checked by that conversation's pin
AdityaUmaleb40a7bff801d
diff --git a/server/host/cloud-computer-run-gate.ts b/server/host/cloud-computer-run-gate.tsindex 325d67b670..290e718afb 100644--- a/server/host/cloud-computer-run-gate.ts+++ b/server/host/cloud-computer-run-gate.ts@@ -20,12 +20,12 @@ const SLEEPING = new Set(["archived", "archiving"]);/** `wakeRetries`: how often the run was queued again because its computer did not wake (routine-wake-retry.ts); it counts* only while the run has not started since (`startedAt`, `retried`). */-interface RunLike { routineId: string; botId: string; target: string; runOn?: string; computer?: string; wakeRetries?: number; startedAt?: number; retried?: string }+export interface RunLike { routineId: string; botId: string; target: string; runOn?: string; computer?: string; wakeRetries?: number; startedAt?: number; retried?: string }interface Machine { id: string; state: string }-export interface RunComputerGateDeps {+export interface RunComputerGateDeps<R extends RunLike = RunLike> {/** The owner key of the cloud computer this run's turns use, or null when they use none. */- computerOf(run: RunLike): string | null;+ computerOf(run: R): string | null;find(owner: string): Promise<Machine | null>;/** Wakes the owner's sleeping computer, never creates one; null when it did not wake in time. */wake(owner: string, budgetMs: number): Promise<Machine | null>;@@ -62,7 +62,7 @@ const VERDICT_LINE: Record<RecoveryVerdict, string> = {"restart-limited": RUN_COMPUTER_LINES.restartLimited, shared: RUN_COMPUTER_LINES.shared,};-export function createRunComputerGate(deps: RunComputerGateDeps) {+export function createRunComputerGate<R extends RunLike = RunLike>(deps: RunComputerGateDeps<R>) {const now = deps.now ?? Date.now;/** Routines whose runs have used the cloud computer. */const usesComputer = new Set<string>(deps.remember?.load().slice(-MAX_ROUTINES) ?? []);@@ -114,7 +114,7 @@ export function createRunComputerGate(deps: RunComputerGateDeps) {return {/** null: nothing to wait for. Otherwise resolves null once the computer answers, or with why the run cannot start. */- prepare(run: RunLike, signal?: AbortSignal): Promise<string | null> | null {+ prepare(run: R, signal?: AbortSignal): Promise<string | null> | null {if (run.target !== "bot" || !usesComputer.has(run.routineId)) return null;const owner = deps.computerOf(run);if (!owner) return null;diff --git a/server/index.ts b/server/index.tsindex 6a1d811e3e..5cc5b4ae7d 100644--- a/server/index.ts+++ b/server/index.ts@@ -5599,12 +5599,12 @@ const localVmIdleMs = () => localVmIdleTimeoutMinutes(cfg) * 60_000;const localVmIdles = new Map<string, ComputerIdleTimer>();const { activeVpsThreads, vpsThreadStarted, vpsThreadEnded, vpsIdles, vpsIdleMs, cancelVpsIdle, touchVpsIdle, vpsServerSwitched, recover: recoverVpsIdles, cancelAll: cancelAllVpsIdles } = createVpsIdleHost({ cfg, store, botHasActiveTurn, hasActiveRoutine: (id) => Boolean(routines?.activeRunForBot(id)), isSharedVmHeld: (id) => sharedVm.snapshot(id).held, hasComputerPreview: (id) => computerPreviews.has(id), isVpsConfigTransitioning: () => computerProviderConfigTransitions.has("vps"), isLifecycleBusy: (id) => boatLifecycleBusyBots.has(id), claimBotComputerLifecycle, isShuttingDown: () => companyShutdown });-const runCloudDeps: RunCloudComputerDeps<BotRecord> = { bot: (botId) => store.bot(botId), provider: (bot, runOn, pinned) => turnProvider(bot, runOn as RoutineRunOn | undefined, undefined, pinned), owner: botComputerControlKey }; const meetingsHost = createMeetingsHost({ cfg, dataDir: DATA_DIR, store, startTurn: (botId, text, opts) => startTurn(botId, text, opts), threadBusy, power: () => cloudComputerPower, computerOwner: (bot) => botComputerControlKey(bot), routines: () => routines, log: (line) => console.warn(line) }, () => ({ personName: personNameIn, sendsFreely: (botId, threadId) => roomTurnLevels.forRequest(threadId, botId, () => sourceApprovalMode(botId, threadId)) === "full", outbound: () => outboundHold, markOutside: (threadId) => outsideLineage.mark(threadId), folder: (botId, threadId) => messageFileRootsForThread(botId, threadId).filter((root) => root !== ATTACHMENTS_DIR)[0] ?? null })); const cloudComputerPower = createCloudComputerPower({+const runCloudDeps: RunCloudComputerDeps<BotRecord> = { bot: (botId) => store.bot(botId), provider: (bot, runOn, pinned, threadId) => turnProvider(bot, runOn as RoutineRunOn | undefined, threadId, pinned), owner: botComputerControlKey }; const meetingsHost = createMeetingsHost({ cfg, dataDir: DATA_DIR, store, startTurn: (botId, text, opts) => startTurn(botId, text, opts), threadBusy, power: () => cloudComputerPower, computerOwner: (bot) => botComputerControlKey(bot), routines: () => routines, log: (line) => console.warn(line) }, () => ({ personName: personNameIn, sendsFreely: (botId, threadId) => roomTurnLevels.forRequest(threadId, botId, () => sourceApprovalMode(botId, threadId)) === "full", outbound: () => outboundHold, markOutside: (threadId) => outsideLineage.mark(threadId), folder: (botId, threadId) => messageFileRootsForThread(botId, threadId).filter((root) => root !== ATTACHMENTS_DIR)[0] ?? null })); const cloudComputerPower = createCloudComputerPower({cfg, owners: managedBoatOwners, broadcast, log: line => console.warn(line), routines: () => routines?.listRoutines() ?? [], wakeTimedOut: (owner, boxId, ctx) => boatRecovery.wakeTimedOut(owner, boxId, ctx),routineComputer: routine => runCloudComputerOwner(routine, runCloudDeps),busy: owner => computerProviderConfigTransitions.has("box") || boatLifecycleBusyBots.has(owner) || cloudBrowserBusy(owner) || managedBoatOwners().some(entry => entry.botId === owner && entry.inUse) || meetingsHost.keepsAwake(owner),claim: owner => { const team = teamComputers.list().find(entry => teamComputerOwner(entry.id) === owner); return team ? claimTeamComputerLifecycle(team) : claimBotComputerLifecycle(owner); },-}); const boatRecovery = createBoatRecovery({ cfg: () => cfg, log: line => console.warn(line), eligible: owner => { const bot = store.bot(owner); return Boolean(bot) && botComputerControlKey(bot!) === owner; }, personActive: owner => computerControl.snapshot(owner).held || desktopViewer.viewing(owner) > 0, usedByOther: (owner, boxId, asking) => usedByAnotherBot(owner, boxId, { holder: resource => turnResources.holder(resource), botOfThread: threadId => store.botByThread(threadId)?.id ?? null }, asking), created: owner => cloudComputerPower.used(owner), turnWaiting: boxId => cloudComputerPower.waiting(boxId), tell: (owner, key, vars) => { const team = teamComputers.list().find(entry => teamComputerOwner(entry.id) === owner); if (team) { teamComputers.setProblem(team.id, serverLine(appLanguage(), CLOUD_COMPUTER_PERSON_LINES.teamNotResponding, { name: team.name })); return; } const bot = store.bot(owner); if (!bot) return; const text = serverLine(conversationLanguage(bot.threadId), CLOUD_COMPUTER_PERSON_LINES[key], { ...vars, name: bot.name }); store.appendMessage(bot.threadId, { role: "bot", kind: "activity", tool: { name: `recovery: ${text}`, ok: true } }); notify(buildNoticeNotification(bot, bot.threadId, text)); } }); const runComputers = createRunComputerGate({ computerOf: (run) => runCloudComputerOwner(run, runCloudDeps), find: (owner) => boat.findBoat(cfg, owner), wake: (owner, budgetMs) => boat.readyBoat(cfg, owner, budgetMs), awaitAnswer: (boxId, opts) => boatReadiness.awaitAnswer(cfg, boxId, opts), verdict: (owner, since) => boatRecovery.verdict(owner, since), recoveryState: (owner) => boatRecovery.status(owner)?.state ?? null, used: (owner) => cloudComputerPower.used(owner), disk: (boxId, signal) => cloudComputerDisk.beforeRun(cfg, boxId, signal), remember: runComputerMemory(join(DATA_DIR, "routine-computers.json")), routineOf: (botId, threadId) => { const run = routines?.activeRunForBot(botId); return run?.threadId === threadId ? run.routineId : null; }, log: (line) => console.warn(line) });+}); const boatRecovery = createBoatRecovery({ cfg: () => cfg, log: line => console.warn(line), eligible: owner => { const bot = store.bot(owner); return Boolean(bot) && botComputerControlKey(bot!) === owner; }, personActive: owner => computerControl.snapshot(owner).held || desktopViewer.viewing(owner) > 0, usedByOther: (owner, boxId, asking) => usedByAnotherBot(owner, boxId, { holder: resource => turnResources.holder(resource), botOfThread: threadId => store.botByThread(threadId)?.id ?? null }, asking), created: owner => cloudComputerPower.used(owner), turnWaiting: boxId => cloudComputerPower.waiting(boxId), tell: (owner, key, vars) => { const team = teamComputers.list().find(entry => teamComputerOwner(entry.id) === owner); if (team) { teamComputers.setProblem(team.id, serverLine(appLanguage(), CLOUD_COMPUTER_PERSON_LINES.teamNotResponding, { name: team.name })); return; } const bot = store.bot(owner); if (!bot) return; const text = serverLine(conversationLanguage(bot.threadId), CLOUD_COMPUTER_PERSON_LINES[key], { ...vars, name: bot.name }); store.appendMessage(bot.threadId, { role: "bot", kind: "activity", tool: { name: `recovery: ${text}`, ok: true } }); notify(buildNoticeNotification(bot, bot.threadId, text)); } }); const runComputers = createRunComputerGate<RoutineRun>({ computerOf: (run) => runCloudComputerOwner(run, runCloudDeps, run.threadId || runConversation(run)), find: (owner) => boat.findBoat(cfg, owner), wake: (owner, budgetMs) => boat.readyBoat(cfg, owner, budgetMs), awaitAnswer: (boxId, opts) => boatReadiness.awaitAnswer(cfg, boxId, opts), verdict: (owner, since) => boatRecovery.verdict(owner, since), recoveryState: (owner) => boatRecovery.status(owner)?.state ?? null, used: (owner) => cloudComputerPower.used(owner), disk: (boxId, signal) => cloudComputerDisk.beforeRun(cfg, boxId, signal), remember: runComputerMemory(join(DATA_DIR, "routine-computers.json")), routineOf: (botId, threadId) => { const run = routines?.activeRunForBot(botId); return run?.threadId === threadId ? run.routineId : null; }, log: (line) => console.warn(line) });function inheritedTeamComputer(bot: Pick<BotRecord, "section" | "computer" | "cloudBackend">): TeamComputerRecord | undefined {return teamComputers.forBot(bot);@@ -8494,6 +8494,15 @@ async function beginTurn(return userMessage;}+/** The conversation a run continues instead of starting its own (null: it starts one). */ function runConversation(run: RoutineRun): string | null {+ if (run.eventSource === "wait") return waitRunChat(run, directChatOf, Boolean(CLOUD_HOME));+ if (run.sameConversation) return continuedConversation(routines?.listRuns() ?? [], run, (threadId) => Boolean(store.taskByThread(run.botId, threadId)));+ const continues = routines?.listRoutines().some((routine) => routine.id === run.routineId && routine.schedule.type === "limit_reset");+ if (!continues || run.target !== "bot") return null;+ const source = routineSourceOwner(run);+ if (!source || source.group || source.bot.id !== run.botId) return null;+ return source.threadId;+}function routineSourceOwner(run: Pick<RoutineRun, "botId" | "sourceThreadId" | "resultsThreadId">) {if (run.resultsThreadId) {const bot = store.bot(run.botId);@@ -8676,16 +8685,7 @@ routines = new RoutineManager({const pin = task && run ? runComputerPin(run) : undefined; if (task && pin) store.patchTask(botId, task.threadId, pin);return task;},- joinConversation: (run) => {- if (run.eventSource === "wait") return waitRunChat(run, directChatOf, Boolean(CLOUD_HOME));- if (run.sameConversation) return continuedConversation(routines?.listRuns() ?? [], run, (threadId) => Boolean(store.taskByThread(run.botId, threadId)));- const continues = routines?.listRoutines().some((routine) => routine.id === run.routineId && routine.schedule.type === "limit_reset");- if (!continues || run.target !== "bot") return null;- const source = routineSourceOwner(run);- if (!source || source.group || source.bot.id !== run.botId) return null;- return source.threadId;- },- createGoalTask: (groupId, title) => store.createGroupTask(groupId, title, false),+ joinConversation: runConversation, createGoalTask: (groupId, title) => store.createGroupTask(groupId, title, false),isResultsThread: (botId, threadId) => {const bot = store.bot(botId);const task = store.taskByThread(botId, threadId);diff --git a/server/routine-computer.test.ts b/server/routine-computer.test.tsindex d4195953b2..3cff52df26 100644--- a/server/routine-computer.test.ts+++ b/server/routine-computer.test.ts@@ -156,6 +156,17 @@ describe("the start check of a run that keeps a computer", () => {expect(owner({ botId: "cloudy", computer: "local", target: "bot" })).toBeNull();});+ it("checks a run that continues a conversation by that conversation's pin, not the routine's kept computer", () => {+ const pins: Record<string, "vm" | "cloud"> = { "on-vm": "vm", "on-cloud": "cloud" };+ const joined = (run: { botId: string; computer?: "local" | "vm" | "cloud"; target: "bot" }, threadId: string) => runCloudComputerOwner(run, {+ bot: (botId) => bots[botId] ?? null,+ provider: (bot, runOn, pinned, thread) => (thread ? pins[thread] ?? bot.computer : pinned ?? bot.computer) === "cloud" ? "box" : null,+ owner: (bot) => `owner-${bot.id}`,+ }, threadId);+ expect(joined({ botId: "plain", computer: "cloud", target: "bot" }, "on-vm")).toBeNull();+ expect(joined({ botId: "cloudy", computer: "vm", target: "bot" }, "on-cloud")).toBe("owner-cloudy");+ });+it("waits for it as before when the run keeps none or keeps the cloud computer", () => {expect(owner({ botId: "cloudy", runOn: "maus", target: "bot" })).toBe("owner-cloudy");expect(owner({ botId: "plain", computer: "cloud", target: "bot" })).toBe("owner-plain");diff --git a/server/routine-computer.ts b/server/routine-computer.tsindex f3bce1fadc..dad15b1725 100644--- a/server/routine-computer.ts+++ b/server/routine-computer.ts@@ -22,13 +22,17 @@ export function runComputerPin(run: { computer?: unknown; runOn?: RoutineRun["ruexport interface RunCloudComputerDeps<B> {bot(botId: string): B | null | undefined;- provider(bot: B, runOn: string | undefined, pinned: RoutineComputer | undefined): string | null;+ /** `pinned`: the kept computer of a run that starts a conversation; `threadId`: the conversation a run continues. */+ provider(bot: B, runOn: string | undefined, pinned: RoutineComputer | undefined, threadId?: string): string | null;owner(bot: B): string;}/** The owner of the cloud computer a run (or a routine's next run) needs, so its start check waits for it and it stays- * awake. The kept computer decides before the bot's Works on setting, as it does for the run's turns. */-export function runCloudComputerOwner<B>(run: { botId: string; computer?: unknown; runOn?: RoutineRun["runOn"] | string; target?: RoutineRun["target"] | string }, deps: RunCloudComputerDeps<B>): string | null {+ * awake. The kept computer decides before the bot's Works on setting, as it does for the run's turns. A run that continues+ * a conversation (`joined`) works where that conversation is pinned, as its turns do, so that pin decides instead. */+export function runCloudComputerOwner<B>(run: { botId: string; computer?: unknown; runOn?: RoutineRun["runOn"] | string; target?: RoutineRun["target"] | string }, deps: RunCloudComputerDeps<B>, joined?: string | null): string | null {const bot = deps.bot(run.botId);- return bot && deps.provider(bot, run.runOn, routineComputer(run.computer, run)) === "box" ? deps.owner(bot) : null;+ if (!bot) return null;+ const provider = joined ? deps.provider(bot, run.runOn, undefined, joined) : deps.provider(bot, run.runOn, routineComputer(run.computer, run));+ return provider === "box" ? deps.owner(bot) : null;}diff --git a/src/locales/de.json b/src/locales/de.jsonindex 1ebb797384..7274d9ea5a 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -1962,7 +1962,7 @@"routines.runsOn.keptHint": "Für diese Routine festgelegt: Ein Lauf, der eine neue Unterhaltung beginnt, nutzt ihn; einer, der eine Unterhaltung fortsetzt, behält deren Computer. Unter Bearbeiten änderbar.","routines.computer.label": "Computer","routines.computer.worksOn": "Die Einstellung „Arbeitet auf“ des Bots",- "routines.computer.help": "Jeder Lauf arbeitet auf diesem Computer. Eine Routine, die dieser Bot in einem Chat erstellt, behält den Computer, den du für diesen Chat gewählt hast.",+ "routines.computer.help": "Ein Lauf, der eine neue Unterhaltung beginnt, arbeitet auf diesem Computer; einer, der eine Unterhaltung fortsetzt, behält deren Computer. Eine Routine, die dieser Bot in einem Chat erstellt, behält den Computer, den du für diesen Chat gewählt hast.","routines.runsOn.boat": "Cloud-Desktop","routines.scheduleNote.local": "Läuft, solange {app} auf diesem Computer geöffnet ist. Ein schlafender Computer wird nicht geweckt; ein um weniger als 12 Stunden verpasster Lauf wird nachgeholt, sobald die App wieder läuft.","routines.scheduleNote.addCloud": "Füge eine Cloud hinzu, damit Routinen rund um die Uhr laufen.",diff --git a/src/locales/en.json b/src/locales/en.jsonindex 09b024e00a..20cad656dd 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -5936,7 +5936,7 @@"routines.runsOn.keptHint": "Set for this routine: a run that starts a new conversation uses it, one that continues a conversation keeps that conversation's computer. Change it in Edit.","routines.computer.label": "Computer","routines.computer.worksOn": "The bot's Works on setting",- "routines.computer.help": "Each run works on this computer. A routine this bot makes in a chat keeps the computer you chose for that chat.",+ "routines.computer.help": "A run that starts a new conversation works on this computer; one that continues a conversation keeps that conversation's computer. A routine this bot makes in a chat keeps the computer you chose for that chat.","routines.runsOn.boat": "Cloud desktop","routines.scheduleNote.local": "Runs while {app} is open on this computer. It can't wake a sleeping computer; a run missed by less than 12 hours happens when the app is back.","routines.scheduleNote.addCloud": "To run routines 24/7, add a Cloud.",diff --git a/src/locales/es.json b/src/locales/es.jsonindex 3923981fb2..edf8dbd1dc 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -4077,7 +4077,7 @@"routines.runsOn.keptHint": "Fijado para esta rutina: una ejecución que inicia una conversación nueva lo usa; una que continúa una conversación conserva el equipo de esa conversación. Cámbialo en Editar.","routines.computer.label": "Equipo","routines.computer.worksOn": "El ajuste «Trabaja en» del bot",- "routines.computer.help": "Cada ejecución trabaja en este equipo. Una rutina que este bot crea en un chat conserva el equipo que elegiste para ese chat.",+ "routines.computer.help": "Una ejecución que inicia una conversación nueva trabaja en este equipo; una que continúa una conversación conserva el equipo de esa conversación. Una rutina que este bot crea en un chat conserva el equipo que elegiste para ese chat.","routines.runsOn.boat": "Escritorio en la nube","routines.scheduleNote.local": "Se ejecuta mientras {app} está abierto en este equipo. No puede despertar un equipo en reposo; una ejecución perdida hace menos de 12 horas se hace cuando la app vuelve.","routines.scheduleNote.addCloud": "Para ejecutar rutinas las 24 horas, añade una Cloud.",diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex 7f0e11e561..0f5a033ebb 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -1805,7 +1805,7 @@"routines.runsOn.keptHint": "Défini pour cette routine : une exécution qui démarre une nouvelle discussion l'utilise, une qui poursuit une discussion garde l'ordinateur de cette discussion. Modifiable dans Modifier.","routines.computer.label": "Ordinateur","routines.computer.worksOn": "Le réglage « Travaille sur » du bot",- "routines.computer.help": "Chaque exécution travaille sur cet ordinateur. Une routine que ce bot crée dans une discussion garde l'ordinateur que vous avez choisi pour cette discussion.",+ "routines.computer.help": "Une exécution qui démarre une nouvelle discussion travaille sur cet ordinateur ; une qui poursuit une discussion garde l'ordinateur de cette discussion. Une routine que ce bot crée dans une discussion garde l'ordinateur que vous avez choisi pour cette discussion.","routines.runsOn.boat": "Bureau cloud","routines.scheduleNote.local": "S'exécute tant que {app} est ouvert sur cet ordinateur. Un ordinateur en veille n'est pas réveillé ; une exécution manquée depuis moins de 12 heures a lieu quand l'app revient.","routines.scheduleNote.addCloud": "Pour exécuter des routines 24 h/24, ajoutez un Cloud.",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex e69a562680..25ef79d5d7 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -1803,7 +1803,7 @@"routines.runsOn.keptHint": "इस रूटीन के लिए तय है: नई बातचीत शुरू करने वाला रन इसका उपयोग करता है, किसी बातचीत को जारी रखने वाला रन उस बातचीत का कंप्यूटर रखता है। इसे संपादित करें में बदलें।","routines.computer.label": "कंप्यूटर","routines.computer.worksOn": "बॉट की \"काम करता है\" सेटिंग",- "routines.computer.help": "हर रन इसी कंप्यूटर पर काम करता है। यह बॉट किसी चैट में जो रूटीन बनाता है, वह उस चैट के लिए आपका चुना कंप्यूटर रखता है।",+ "routines.computer.help": "नई बातचीत शुरू करने वाला रन इसी कंप्यूटर पर काम करता है; किसी बातचीत को जारी रखने वाला रन उस बातचीत का कंप्यूटर रखता है। यह बॉट किसी चैट में जो रूटीन बनाता है, वह उस चैट के लिए आपका चुना कंप्यूटर रखता है।","routines.runsOn.boat": "क्लाउड डेस्कटॉप","routines.scheduleNote.local": "यह तब तक चलता है जब तक इस कंप्यूटर पर {app} खुला है। यह स्लीप में गए कंप्यूटर को नहीं जगा सकता; 12 घंटे से कम पहले छूटा रन ऐप लौटने पर हो जाता है।","routines.scheduleNote.addCloud": "रूटीन 24/7 चलाने के लिए Cloud जोड़ें।",diff --git a/src/locales/it.json b/src/locales/it.jsonindex a869fde4ad..251d58a08b 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -5909,7 +5909,7 @@"routines.runsOn.keptHint": "Impostato per questa routine: un'esecuzione che avvia una nuova conversazione lo usa, una che continua una conversazione mantiene il computer di quella conversazione. Cambialo in Modifica.","routines.computer.label": "Computer","routines.computer.worksOn": "L'impostazione «Lavora su» del bot",- "routines.computer.help": "Ogni esecuzione lavora su questo computer. Una routine che questo bot crea in una chat mantiene il computer che hai scelto per quella chat.",+ "routines.computer.help": "Un'esecuzione che avvia una nuova conversazione lavora su questo computer; una che continua una conversazione mantiene il computer di quella conversazione. Una routine che questo bot crea in una chat mantiene il computer che hai scelto per quella chat.","routines.runsOn.boat": "desktop cloud","routines.scheduleNote.local": "Si esegue mentre {app} è aperto su questo computer. Non può risvegliare un computer in sospensione; un'esecuzione persa da meno di 12 ore parte quando l'app è di nuovo aperta.","routines.scheduleNote.addCloud": "Per eseguire le routine 24 ore su 24, aggiungi un Cloud.",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex 7364dfa01f..9492bc5ae7 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -5044,7 +5044,7 @@"routines.runsOn.keptHint": "このルーティン用に設定済みです。新しい会話を始める実行はこれを使い、会話を続ける実行はその会話のコンピューターを使い続けます。編集で変更できます。","routines.computer.label": "コンピューター","routines.computer.worksOn": "ボットの作業先の設定",- "routines.computer.help": "毎回の実行はこのコンピューターで作業します。このボットがチャットで作成したルーティンは、そのチャットで選んだコンピューターを使い続けます。",+ "routines.computer.help": "新しい会話を始める実行はこのコンピューターで作業し、会話を続ける実行はその会話のコンピューターを使い続けます。このボットがチャットで作成したルーティンは、そのチャットで選んだコンピューターを使い続けます。","routines.runsOn.boat": "クラウドデスクトップ","routines.scheduleNote.local": "このコンピューターで {app} が開いている間に実行されます。スリープ中のコンピューターは起動できません。見逃してから 12 時間以内の実行は、アプリが戻ったときに行われます。","routines.scheduleNote.addCloud": "ルーティンを 24 時間実行するには、Cloud を追加してください。",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex 34d9ecebb0..b735ff5cf1 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -4838,7 +4838,7 @@"routines.runsOn.keptHint": "이 루틴에 설정됨: 새 대화를 시작하는 실행은 이것을 사용하고, 대화를 이어가는 실행은 그 대화의 컴퓨터를 유지합니다. 수정에서 바꿀 수 있습니다.","routines.computer.label": "컴퓨터","routines.computer.worksOn": "봇의 작업 위치 설정",- "routines.computer.help": "매 실행이 이 컴퓨터에서 작업합니다. 이 봇이 채팅에서 만든 루틴은 그 채팅에 선택한 컴퓨터를 유지합니다.",+ "routines.computer.help": "새 대화를 시작하는 실행은 이 컴퓨터에서 작업하고, 대화를 이어가는 실행은 그 대화의 컴퓨터를 유지합니다. 이 봇이 채팅에서 만든 루틴은 그 채팅에 선택한 컴퓨터를 유지합니다.","routines.runsOn.boat": "클라우드 데스크톱","routines.scheduleNote.local": "이 컴퓨터에서 {app}이 열려 있는 동안 실행돼요. 잠든 컴퓨터를 깨우지는 못하며, 12시간 이내에 놓친 실행은 앱이 다시 열리면 실행돼요.","routines.scheduleNote.addCloud": "루틴을 24시간 실행하려면 클라우드를 추가하세요.",diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex 4519a712ec..42c343936f 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -4431,7 +4431,7 @@"routines.runsOn.keptHint": "Ustawiony dla tej rutyny: uruchomienie, które zaczyna nową rozmowę, go używa, a takie, które kontynuuje rozmowę, zachowuje jej komputer. Zmień w Edytuj.","routines.computer.label": "Komputer","routines.computer.worksOn": "Ustawienie „Działa na” bota",- "routines.computer.help": "Każde uruchomienie działa na tym komputerze. Rutyna, którą ten bot tworzy w czacie, zachowuje komputer wybrany przez Ciebie dla tego czatu.",+ "routines.computer.help": "Uruchomienie, które zaczyna nową rozmowę, działa na tym komputerze, a takie, które kontynuuje rozmowę, zachowuje jej komputer. Rutyna, którą ten bot tworzy w czacie, zachowuje komputer wybrany przez Ciebie dla tego czatu.","routines.runsOn.boat": "Pulpit w chmurze","routines.scheduleNote.local": "Działa, gdy {app} jest otwarty na tym komputerze. Nie może wybudzić uśpionego komputera; uruchomienie pominięte o mniej niż 12 godzin nastąpi po powrocie aplikacji.","routines.scheduleNote.addCloud": "Aby rutyny działały 24/7, dodaj Chmurę.",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex d510b6493b..496e5c9c7f 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -5565,7 +5565,7 @@"routines.runsOn.keptHint": "Definido para esta rotina: uma execução que inicia uma conversa nova o usa; uma que continua uma conversa mantém o computador dessa conversa. Mude em Editar.","routines.computer.label": "Computador","routines.computer.worksOn": "A configuração \"Trabalha em\" do bot",- "routines.computer.help": "Cada execução trabalha neste computador. Uma rotina que este bot cria em um chat mantém o computador que você escolheu para esse chat.",+ "routines.computer.help": "Uma execução que inicia uma conversa nova trabalha neste computador; uma que continua uma conversa mantém o computador dessa conversa. Uma rotina que este bot cria em um chat mantém o computador que você escolheu para esse chat.","routines.runsOn.boat": "Desktop na nuvem","routines.scheduleNote.local": "Roda enquanto o app {app} estiver aberto neste computador. Não consegue acordar um computador em repouso. Se uma execução estiver atrasada há menos de 12 horas, ela acontece quando o app volta.","routines.scheduleNote.addCloud": "Para rodar rotinas 24 horas por dia, adicione um Cloud.",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex 20be264c06..8ee8ef97ae 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -4479,7 +4479,7 @@"routines.runsOn.keptHint": "Задан для этой рутины: запуск, который начинает новый разговор, использует его, а запуск, который продолжает разговор, сохраняет компьютер этого разговора. Можно изменить в разделе «Изменить».","routines.computer.label": "Компьютер","routines.computer.worksOn": "Настройка бота «Работает на»",- "routines.computer.help": "Каждый запуск работает на этом компьютере. Рутина, которую этот бот создаёт в чате, сохраняет компьютер, выбранный вами для этого чата.",+ "routines.computer.help": "Запуск, который начинает новый разговор, работает на этом компьютере, а запуск, который продолжает разговор, сохраняет компьютер этого разговора. Рутина, которую этот бот создаёт в чате, сохраняет компьютер, выбранный вами для этого чата.","routines.runsOn.boat": "Облачный рабочий стол","routines.scheduleNote.local": "Выполняется, пока {app} открыт на этом компьютере. Приложение не может разбудить спящий компьютер; запуск, пропущенный менее 12 часов назад, выполнится, когда приложение снова заработает.","routines.scheduleNote.addCloud": "Чтобы рутины выполнялись круглосуточно, добавьте Cloud.",diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex a4e7b91493..0bea7863bf 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -3502,7 +3502,7 @@"routines.runsOn.keptHint": "Bu rutin için ayarlandı: yeni bir sohbet başlatan çalıştırma bunu kullanır, bir sohbete devam eden çalıştırma o sohbetin bilgisayarını korur. Düzenle'den değiştirin.","routines.computer.label": "Bilgisayar","routines.computer.worksOn": "Botun \"Çalıştığı ortam\" ayarı",- "routines.computer.help": "Her çalıştırma bu bilgisayarda çalışır. Bu botun bir sohbette oluşturduğu rutin, o sohbet için seçtiğiniz bilgisayarı korur.",+ "routines.computer.help": "Yeni bir sohbet başlatan çalıştırma bu bilgisayarda çalışır, bir sohbete devam eden çalıştırma o sohbetin bilgisayarını korur. Bu botun bir sohbette oluşturduğu rutin, o sohbet için seçtiğiniz bilgisayarı korur.","routines.runsOn.boat": "Bulut masaüstü","routines.scheduleNote.local": "{app} bu bilgisayarda açıkken çalışır. Uyku modundaki bir bilgisayarı uyandıramaz; 12 saatten daha kısa bir süre önce kaçırılan bir çalıştırma, uygulama yeniden açıldığında gerçekleşir.","routines.scheduleNote.addCloud": "Rutinleri 7/24 çalıştırmak için bir Cloud ekleyin.",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex 6a709b2015..64f9d4b3cb 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -2184,7 +2184,7 @@"routines.runsOn.keptHint": "Задано для цієї рутини: запуск, що починає нову розмову, використовує його, а запуск, що продовжує розмову, зберігає комп'ютер цієї розмови. Змінити можна в розділі «Редагувати».","routines.computer.label": "Комп'ютер","routines.computer.worksOn": "Налаштування бота «Працює на»",- "routines.computer.help": "Кожен запуск працює на цьому комп'ютері. Рутина, яку цей бот створює в чаті, зберігає комп'ютер, вибраний вами для цього чату.",+ "routines.computer.help": "Запуск, що починає нову розмову, працює на цьому комп'ютері, а запуск, що продовжує розмову, зберігає комп'ютер цієї розмови. Рутина, яку цей бот створює в чаті, зберігає комп'ютер, вибраний вами для цього чату.","routines.runsOn.boat": "Хмарний робочий стіл","routines.scheduleNote.local": "Виконується, поки {app} відкритий на цьому комп’ютері. Він не може розбудити сплячий комп’ютер; запуск, пропущений менше ніж на 12 годин, відбудеться, коли застосунок повернеться.","routines.scheduleNote.addCloud": "Щоб рутини працювали цілодобово, додайте Cloud.",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex 21422b4643..35f1148d23 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -3502,7 +3502,7 @@"routines.runsOn.keptHint": "Đã đặt cho quy trình này: lần chạy bắt đầu cuộc trò chuyện mới sẽ dùng nó, lần chạy tiếp tục một cuộc trò chuyện giữ máy tính của cuộc trò chuyện đó. Đổi trong Chỉnh sửa.","routines.computer.label": "Máy tính","routines.computer.worksOn": "Cài đặt \"Chạy trên\" của bot",- "routines.computer.help": "Mỗi lần chạy làm việc trên máy tính này. Quy trình mà bot này tạo trong một cuộc trò chuyện giữ máy tính bạn đã chọn cho cuộc trò chuyện đó.",+ "routines.computer.help": "Lần chạy bắt đầu cuộc trò chuyện mới làm việc trên máy tính này, lần chạy tiếp tục một cuộc trò chuyện giữ máy tính của cuộc trò chuyện đó. Quy trình mà bot này tạo trong một cuộc trò chuyện giữ máy tính bạn đã chọn cho cuộc trò chuyện đó.","routines.runsOn.boat": "Desktop đám mây","routines.scheduleNote.local": "Chỉ chạy khi {app} đang mở trên máy tính này. Ứng dụng không thể đánh thức máy tính đang ở chế độ ngủ; nếu bị lỡ dưới 12 giờ, tác vụ sẽ chạy lại khi ứng dụng hoạt động trở lại.","routines.scheduleNote.addCloud": "Để chạy tác vụ định kỳ 24/7, hãy thêm máy chủ Cloud.",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 01b1047d25..deaf143b34 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -5231,7 +5231,7 @@"routines.runsOn.keptHint": "已為此例行工作設定:開始新對話的執行會使用它,接續對話的執行會保留該對話的電腦。可在「編輯」中變更。","routines.computer.label": "電腦","routines.computer.worksOn": "機器人的「執行位置」設定",- "routines.computer.help": "每次執行都在這台電腦上工作。此機器人在聊天中建立的例行工作,會保留你為該聊天選擇的電腦。",+ "routines.computer.help": "開始新對話的執行會在這台電腦上工作,接續對話的執行會保留該對話的電腦。此機器人在聊天中建立的例行工作,會保留你為該聊天選擇的電腦。","routines.runsOn.boat": "雲端桌面","routines.scheduleNote.local": "在這台電腦開著 {app} 時執行。它無法喚醒睡眠中的電腦;錯過不到 12 小時的執行會在 App 回來時進行。","routines.scheduleNote.addCloud": "若要全天候執行例行工作,請新增 Cloud。",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex d6539b4680..1b52990c2b 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -5897,7 +5897,7 @@"routines.runsOn.keptHint": "已为此例行任务设置:开始新对话的运行会使用它,继续对话的运行会保留该对话的电脑。可在“编辑”中更改。","routines.computer.label": "电脑","routines.computer.worksOn": "机器人的“工作位置”设置",- "routines.computer.help": "每次运行都在这台电脑上工作。此机器人在聊天中创建的例行任务,会保留你为该聊天选择的电脑。",+ "routines.computer.help": "开始新对话的运行会在这台电脑上工作,继续对话的运行会保留该对话的电脑。此机器人在聊天中创建的例行任务,会保留你为该聊天选择的电脑。","routines.runsOn.boat": "云端桌面","routines.scheduleNote.local": "在这台电脑上打开 {app} 时运行。它无法唤醒睡眠中的电脑;错过不到 12 小时的运行会在应用回来时进行。","routines.scheduleNote.addCloud": "如需全天候运行例行任务,请添加 Cloud。",