Skip to content

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

VPS limits: keep memory and cores, drop CPU pinning and the SSH config host list

milind-soni7f08fc31c3d3
diff --git a/docs/byo-vps.md b/docs/byo-vps.md
index 57d76af43d..d122e0e101 100644
--- a/docs/byo-vps.md
+++ b/docs/byo-vps.md
@@ -201,17 +201,14 @@ policies, including the legacy `no` policy. OpenMausBot does not reset those set
container to enforce its defaults. Restart behavior follows the chosen Docker policy; for example,
`always` can wake a slept container after a Docker daemon restart.
-Memory (2–128 GiB), CPU cores (1–64) and an optional CPU pinning are set in Settings under **Self-hosted VPS**, for
-the default server and, separately, for each named server; a named server that leaves memory or cores empty uses the
-default server's. Pinning is a list of logical CPU ids such as `0,2` or `4-7` (Docker's `--cpuset-cpus`); it may not
-name more CPUs than the cores field, and a named server never inherits the default server's pinning. The dropdown for
-a new server's SSH alias lists the plain `Host` names in `~/.ssh/config`, including files it `Include`s.
+Memory (2–128 GiB) and CPU cores (1–64) are set in Settings under **Self-hosted VPS**, for the default server and,
+separately, for each named server. The default server uses 4 GiB and 2 cores until you change them; a named server
+that leaves memory or cores empty uses the default server's.
A new container takes the limits at once. A stopped one takes them when it next starts. A running container keeps
-its limits until it stops; the next start applies the current ones, so recreating it is not needed. Docker cannot
-remove a pin from an existing container, so a removed pin applies to desktops made afterwards. When you save a limit, OpenMausBot asks the VPS's Docker engine for its CPU count and
-memory over SSH and refuses cores, memory or a pinning the machine does not have. A host that does not answer does
-not hold the save up.
+its limits until it stops; the next start applies the current ones, so recreating it is not needed. When you save a
+limit, OpenMausBot asks the VPS's Docker engine for its CPU count and memory over SSH and refuses cores or memory the
+machine does not have. A host that does not answer does not hold the save up.
- **Provision** (choosing **Cloud** for the bot, or the panel's button): builds the pinned Cua image on the
VPS if needed, creates the container if missing, starts it if stopped, and waits until the desktop answers.
diff --git a/server/container-limits.test.ts b/server/container-limits.test.ts
deleted file mode 100644
index c454afffc3..0000000000
--- a/server/container-limits.test.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import { describe, expect, it } from "vitest";
-
-import { cpusetSize, isValidCpuset, resourceArgs } from "./container-limits.ts";
-import { normalizeVpsConfig, vpsServersSchema } from "./vps-config.ts";
-import { vpsLimits } from "./vps-hosts.ts";
-
-describe("CPU pinning", () => {
- it("accepts CPU ids and ranges and refuses anything else", () => {
- for (const ok of ["0", "0,2", "4-7", "0-1,4,6-7"]) expect(isValidCpuset(ok)).toBe(true);
- for (const bad of ["", "a", "7-4", "0,", "1 2", "0-", "--1", "0;rm"]) expect(isValidCpuset(bad)).toBe(false);
- });
-
- it("passes --cpuset-cpus to the container only when pinned", () => {
- expect(resourceArgs({ memoryGb: 4, cpus: 2 }, { swap: true })).not.toContain("--cpuset-cpus");
- expect(resourceArgs({ memoryGb: 4, cpus: 2, cpuset: "4-7" }, { swap: true }).slice(-2)).toEqual(["--cpuset-cpus", "4-7"]);
- });
-
- it("stores the default server's pinning, keeps it when a patch leaves it out, and clears it with an empty string", () => {
- expect(normalizeVpsConfig({ sshAlias: "a", cpuset: "0,2" })).toEqual({ sshAlias: "a", cpuset: "0,2" });
- expect(normalizeVpsConfig({ sshAlias: "a" }, { cpuset: "0,2" })).toEqual({ sshAlias: "a", cpuset: "0,2" });
- expect(normalizeVpsConfig({ sshAlias: "a", cpuset: "" }, { cpuset: "0,2" })).toEqual({ sshAlias: "a" });
- expect(() => normalizeVpsConfig({ sshAlias: "a", cpuset: "9-1" })).toThrow(/cpuset/);
- });
-
- it("counts the CPUs a pinning names and refuses one above the cores", () => {
- expect([cpusetSize("0"), cpusetSize("0,2"), cpusetSize("4-7"), cpusetSize("0-1,4,6-7")]).toEqual([1, 2, 4, 5]);
- expect(normalizeVpsConfig({ sshAlias: "a", cpus: 4, cpuset: "0-3" })).toEqual({ sshAlias: "a", cpus: 4, cpuset: "0-3" });
- expect(() => normalizeVpsConfig({ sshAlias: "a", cpus: 4, cpuset: "0-4" })).toThrow(/5 CPUs but vps.cpus is 4/);
- expect(() => normalizeVpsConfig({ sshAlias: "a", cpuset: "0-2" })).toThrow(/3 CPUs but vps.cpus is 2/);
- expect(vpsServersSchema.safeParse([{ name: "Lab", sshAlias: "lab", cpus: 4, cpuset: "0-4" }]).success).toBe(false);
- expect(vpsServersSchema.safeParse([{ name: "Lab", sshAlias: "lab", cpus: 4, cpuset: "0-3" }]).success).toBe(true);
- });
-
- it("refuses a bad pinning on a named server", () => {
- expect(vpsServersSchema.safeParse([{ name: "Lab", sshAlias: "lab", cpuset: "4-7" }]).success).toBe(true);
- expect(vpsServersSchema.safeParse([{ name: "Lab", sshAlias: "lab", cpuset: "x" }]).success).toBe(false);
- });
-
- it("never lends the default server's pinning to a named server", () => {
- const cfg = { vps: { sshAlias: "main", memoryGb: 6, cpus: 3, cpuset: "0-1" }, vpsServers: [{ name: "Lab", sshAlias: "lab" }, { name: "Pinned", sshAlias: "pin", cpuset: "2" }] };
- expect(vpsLimits(cfg, "main")).toEqual({ memoryGb: 6, cpus: 3, cpuset: "0-1" });
- expect(vpsLimits(cfg, "lab")).toEqual({ memoryGb: 6, cpus: 3 });
- expect(vpsLimits(cfg, "pin")).toEqual({ memoryGb: 6, cpus: 3, cpuset: "2" });
- });
-});
-
-describe("CPU pinning size", () => {
- it("counts distinct CPUs when ranges overlap", () => {
- expect(cpusetSize("0-3,2-5")).toBe(6);
- expect(cpusetSize("0,2,4-7")).toBe(6);
- });
-});
diff --git a/server/container-limits.ts b/server/container-limits.ts
index 3c47f9aced..580af22157 100644
--- a/server/container-limits.ts
+++ b/server/container-limits.ts
@@ -7,28 +7,6 @@ const PREVIOUS_PIDS_LIMIT = 512;
export interface DesktopResources {
memoryGb: number;
cpus: number;
- /** Logical CPU ids the desktop may run on, in `docker --cpuset-cpus` form ("0,2", "4-7"); unset lets the host choose. */
- cpuset?: string;
-}
-
-const CPUSET = /^\d{1,4}(-\d{1,4})?(,\d{1,4}(-\d{1,4})?)*$/;
-
-/** How many distinct CPUs a valid `cpuset` names: "0,2" is 2, "4-7" is 4, "0-3,2-5" is 6. */
-export function cpusetSize(value: string): number {
- const ids = new Set<number>();
- for (const part of value.split(",")) {
- const [from, to = from] = part.split("-").map(Number);
- for (let id = from!; id <= to!; id++) ids.add(id);
- }
- return ids.size;
-}
-
-export function isValidCpuset(value: unknown): value is string {
- if (typeof value !== "string" || !CPUSET.test(value)) return false;
- return value.split(",").every((part) => {
- const [from, to = from] = part.split("-").map(Number);
- return from! <= to!;
- });
}
export const DEFAULT_DESKTOP_RESOURCES: DesktopResources = { memoryGb: 4, cpus: 2 };
@@ -41,7 +19,7 @@ export const MAX_DESKTOP_CPUS = 64;
* letting it thrash the host. */
export function resourceArgs(resources: DesktopResources, options: { swap: boolean }): string[] {
const memory = `${resources.memoryGb}g`;
- return ["--memory", memory, ...(options.swap ? ["--memory-swap", memory] : []), "--cpus", String(resources.cpus), ...(resources.cpuset ? ["--cpuset-cpus", resources.cpuset] : [])];
+ return ["--memory", memory, ...(options.swap ? ["--memory-swap", memory] : []), "--cpus", String(resources.cpus)];
}
const raised = new Set<string>();
@@ -58,26 +36,11 @@ export function raisePidsLimit(
void Promise.resolve().then(() => docker(["update", "--pids-limit", String(PIDS_LIMIT), container], 15_000)).catch(() => {});
}
-/** A stopped desktop takes the configured limits before it starts. An engine without `update --memory` keeps the old ones,
- * so a failed update is returned for the caller to report, never thrown: the desktop still starts. */
+/** A stopped desktop takes the configured limits before it starts. An engine without `update --memory` keeps the old ones. */
export async function applyResourcesBeforeStart(
container: string,
resources: DesktopResources,
docker: (args: string[], timeoutMs?: number) => Promise<unknown>,
-): Promise<string | null> {
- return docker(["update", ...resourceArgs(resources, { swap: true }), container], 15_000).then(
- () => null,
- (error: unknown) => `The desktop started with its previous limits: ${error instanceof Error ? error.message : String(error)}`,
- );
-}
-
-/** Starts a stopped desktop after applying the limits; returns the warning when they could not be applied. */
-export async function startWithResources(
- container: string,
- resources: DesktopResources,
- docker: (args: string[], timeoutMs?: number) => Promise<unknown>,
-): Promise<string | null> {
- const warning = await applyResourcesBeforeStart(container, resources, docker);
- await docker(["start", container]);
- return warning;
+): Promise<void> {
+ await docker(["update", ...resourceArgs(resources, { swap: true }), container], 15_000).catch(() => {});
}
diff --git a/server/index.test.ts b/server/index.test.ts
index 876c399a8c..cdfd18851e 100644
--- a/server/index.test.ts
+++ b/server/index.test.ts
@@ -11212,13 +11212,13 @@ describe("harness HTTP API", () => {
expect(saved.status, JSON.stringify(saved.body)).toBe(200);
expect((await api("GET", "/api/config")).body.vps.sshAlias).toBe("rockpi4");
- const replaced = await api("PUT", "/api/config", { vps: { sshAlias: "example-host" } });
+ const replaced = await api("PUT", "/api/config", { vps: { sshAlias: "dietpi" } });
expect(replaced.status, JSON.stringify(replaced.body)).toBe(200);
- expect((await api("GET", "/api/config")).body.vps.sshAlias).toBe("example-host");
+ expect((await api("GET", "/api/config")).body.vps.sshAlias).toBe("dietpi");
const cleared = await api("PUT", "/api/config", { vps: { sshAlias: "" } });
expect(cleared.status, JSON.stringify(cleared.body)).toBe(200);
- expect(cleared.body.notice).toContain("Removed. example-host could not be reached");
+ expect(cleared.body.notice).toContain("Removed. dietpi could not be reached");
expect((await api("GET", "/api/config")).body.vps.sshAlias).toBe("");
} finally {
rmSync(fakeSshUnavailable, { force: true });
diff --git a/server/routes/computers.ts b/server/routes/computers.ts
index 6d1f9c8099..caf242504b 100644
--- a/server/routes/computers.ts
+++ b/server/routes/computers.ts
@@ -25,7 +25,6 @@ import type { SessionRegistry } from "../sessions.ts";
import { sectionKey, type BotRecord, type Store } from "../store.ts";
import { teamComputerAssignment, teamComputerCreate, teamComputerOwner, type TeamComputerRecord, type TeamComputers } from "../team-computers.ts";
import * as vps from "../vps-computer.ts";
-import { sshConfigHosts } from "../ssh-config-hosts.ts";
import { vpsAliasesInPlay } from "../vps-hosts.ts";
import type { BusyFlag, RemoteComputerProvider } from "./config.ts";
import { createCloudComputerRecoveryRoutes, type CloudComputerRecoveryRouteDeps } from "./cloud-computer-recovery.ts";
@@ -256,12 +255,6 @@ export function createComputerRoutes(deps: ComputerRouteDeps): RouteHandler {
vpsAliasesInPlay(cfg, store.bots),
));
}
- if (method === "GET" && path === "/api/computers/vps/ssh-hosts") {
- res.setHeader("cache-control", "private, no-store");
- // Aliases are the server's SSH setup: only an admin sees them, as with the saved alias.
- if (!auth.scopes.includes("admin")) return json(res, 403, { error: "admin only" });
- return json(res, 200, { hosts: sshConfigHosts() });
- }
m = path.match(/^\/api\/computers\/vps\/([\w-]+)\/remove$/);
if (m && method === "POST") {
if (!String(req.headers["content-type"] ?? "").toLowerCase().startsWith("application/json")) {
diff --git a/server/routes/config.ts b/server/routes/config.ts
index 6b36d529ed..7164d923a9 100644
--- a/server/routes/config.ts
+++ b/server/routes/config.ts
@@ -209,7 +209,7 @@ export function createConfigRoutes(deps: ConfigRouteDeps): RouteHandler {
if (patch.vps !== undefined || patch.vpsServers !== undefined) {
providerConfigBusy.set(true);
const overHost = await vpsHostLimitProblem(cfg, patch).finally(() => providerConfigBusy.set(false));
- if (overHost) return json(res, 400, { error: overHost });
+ if (overHost) return json(res, 400, overHost);
}
if (patch.browserProfiles !== undefined && body.expectedBrowserProfiles !== undefined) {
const current = (cfg.browserProfiles ?? []).map(({ id, name, browser }) => ({ id, name, ...(browser ? { browser } : {}) }));
diff --git a/server/ssh-config-hosts.test.ts b/server/ssh-config-hosts.test.ts
deleted file mode 100644
index 2b0c362569..0000000000
--- a/server/ssh-config-hosts.test.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import { describe, expect, it } from "vitest";
-
-import { sshConfigHosts, type SshConfigFiles } from "./ssh-config-hosts.ts";
-
-function files(map: Record<string, string>): SshConfigFiles {
- return {
- read: (path) => map[path] ?? null,
- list: (directory) => Object.keys(map).filter((path) => path.startsWith(`${directory}/`) && !path.slice(directory.length + 1).includes("/")).map((path) => path.slice(directory.length + 1)).sort(),
- };
-}
-
-describe("sshConfigHosts", () => {
- it("lists concrete Host names once, in order, and skips patterns and negations", () => {
- const hosts = sshConfigHosts("/h/.ssh", files({
- "/h/.ssh/config": "Host *\n User me\nHost example-host home-lab # comment\n HostName 10.0.0.2\nhost = Prod\nHost *.corp !skip web?\nHost example-host\n",
- }));
- expect(hosts).toEqual(["example-host", "home-lab", "Prod"]);
- });
-
- it("follows Include, relative to ~/.ssh and with a wildcard, and survives a loop", () => {
- const hosts = sshConfigHosts("/h/.ssh", files({
- "/h/.ssh/config": "Include config.d/*\nInclude config\nHost first\n",
- "/h/.ssh/config.d/a": "Host from-a\n",
- "/h/.ssh/config.d/b": "Host from-b\n",
- }));
- expect(hosts).toEqual(["from-a", "from-b", "first"]);
- });
-
- it("is empty with no config file, and drops names that are not simple aliases", () => {
- expect(sshConfigHosts("/h/.ssh", files({}))).toEqual([]);
- expect(sshConfigHosts("/h/.ssh", files({ "/h/.ssh/config": "Host bad;name ok-name user@host\n" }))).toEqual(["ok-name"]);
- });
-});
-
-describe("sshConfigHosts quoting and wildcards", () => {
- it("reads quoted names and quoted Include paths with spaces", () => {
- const hosts = sshConfigHosts("/h/.ssh", files({
- "/h/.ssh/config": 'Host "prod" # note\nInclude "work hosts/a.conf"\n',
- "/h/.ssh/work hosts/a.conf": "Host staging\n",
- }));
- expect(hosts).toEqual(["prod", "staging"]);
- });
-
- it("expands wildcards in directory components", () => {
- const map: Record<string, string> = {
- "/h/.ssh/config": "Include config.d/*/*.conf\n",
- "/h/.ssh/config.d/a/one.conf": "Host one\n",
- "/h/.ssh/config.d/b/two.conf": "Host two\n",
- };
- const children = (directory: string) => [...new Set(Object.keys(map).filter((path) => path.startsWith(`${directory}/`)).map((path) => path.slice(directory.length + 1).split("/")[0]!))].sort();
- expect(sshConfigHosts("/h/.ssh", { read: (path) => map[path] ?? null, list: children })).toEqual(["one", "two"]);
- });
-});
diff --git a/server/ssh-config-hosts.ts b/server/ssh-config-hosts.ts
deleted file mode 100644
index c006c2efaa..0000000000
--- a/server/ssh-config-hosts.ts
+++ /dev/null
@@ -1,106 +0,0 @@
-import { readdirSync, readFileSync, statSync } from "node:fs";
-import { homedir } from "node:os";
-import { isAbsolute, join } from "node:path";
-
-import { isValidSshAlias } from "./vps-config.ts";
-
-const MAX_HOSTS = 200;
-const MAX_FILE_BYTES = 256 * 1024;
-const MAX_INCLUDE_DEPTH = 4;
-const MAX_INCLUDE_TARGETS = 200;
-
-export interface SshConfigFiles {
- read(path: string): string | null;
- list(directory: string): string[];
-}
-
-const nodeFiles: SshConfigFiles = {
- read(path) {
- try {
- if (statSync(path).size > MAX_FILE_BYTES) return null;
- return readFileSync(path, "utf8");
- } catch {
- return null;
- }
- },
- list(directory) {
- try {
- return readdirSync(directory).sort();
- } catch {
- return [];
- }
- },
-};
-
-const wildcard = (pattern: string) => /[*?]/.test(pattern);
-
-const segmentMatcher = (segment: string) =>
- new RegExp(`^${segment.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/\?/g, ".")}$`);
-
-/** Expands `*` and `?` in every path segment, in lexical order, like OpenSSH's Include. */
-function includeTargets(pattern: string, sshDir: string, files: SshConfigFiles): string[] {
- const expanded = pattern.startsWith("~/") ? join(homedir(), pattern.slice(2)) : pattern;
- const path = isAbsolute(expanded) ? expanded : join(sshDir, expanded);
- let paths = [path.startsWith("/") ? "/" : ""];
- for (const segment of path.split("/").filter(Boolean)) {
- const next: string[] = [];
- for (const parent of paths) {
- if (!wildcard(segment)) next.push(join(parent, segment));
- else for (const name of files.list(parent || ".").filter((entry) => segmentMatcher(segment).test(entry))) next.push(join(parent, name));
- }
- paths = next.slice(0, MAX_INCLUDE_TARGETS);
- }
- return paths;
-}
-
-/** Splits a config line into arguments the way ssh_config does: double quotes group, `=` may follow the keyword, `#` outside quotes starts a comment. */
-function tokenize(line: string): string[] {
- const tokens: string[] = [];
- let current = "";
- let started = false;
- let quoted = false;
- for (const char of line) {
- if (quoted) {
- if (char === '"') quoted = false;
- else current += char;
- } else if (char === '"') {
- quoted = true;
- started = true;
- } else if (char === "#") {
- break;
- } else if (/\s/.test(char) || (char === "=" && tokens.length === 0)) {
- if (started) tokens.push(current);
- current = "";
- started = false;
- } else {
- current += char;
- started = true;
- }
- }
- if (started) tokens.push(current);
- return tokens;
-}
-
-function collect(path: string, sshDir: string, files: SshConfigFiles, depth: number, seen: Set<string>, out: string[]): void {
- if (depth > MAX_INCLUDE_DEPTH || seen.has(path)) return;
- seen.add(path);
- const text = files.read(path);
- if (text === null) return;
- for (const raw of text.split(/\r?\n/)) {
- const [keyword = "", ...rest] = tokenize(raw);
- const key = keyword.toLowerCase();
- if (key === "host") {
- for (const name of rest) if (!name.startsWith("!") && !wildcard(name) && isValidSshAlias(name) && !out.includes(name)) out.push(name);
- } else if (key === "include") {
- for (const pattern of rest) for (const target of includeTargets(pattern, sshDir, files)) collect(target, sshDir, files, depth + 1, seen, out);
- }
- if (out.length >= MAX_HOSTS) return;
- }
-}
-
-/** The concrete `Host` names in the user's SSH config, in file order, including files it `Include`s. Patterns, negations and names that are no valid alias are left out. */
-export function sshConfigHosts(sshDir = join(homedir(), ".ssh"), files: SshConfigFiles = nodeFiles): string[] {
- const out: string[] = [];
- collect(join(sshDir, "config"), sshDir, files, 0, new Set(), out);
- return out.slice(0, MAX_HOSTS);
-}
diff --git a/server/user-errors.ts b/server/user-errors.ts
index 4684cf2d86..366c41494a 100644
--- a/server/user-errors.ts
+++ b/server/user-errors.ts
@@ -229,6 +229,8 @@ export const USER_ERROR = {
"serverError.voice.fishTranscribeConnection": "Couldn't reach Fish Audio to hear you — check your connection.",
"serverError.voice.elevenLabsTranscribeConnection": "Couldn't reach ElevenLabs to hear you — check your connection.",
"serverError.file.tooLarge": "This file is {size}, over the {limit} limit for opening files from chat. The file itself is still saved as {name}.",
+ "serverError.vps.tooManyCores": "{server} has {cores} CPU cores in all. Choose {cores} or fewer.",
+ "serverError.vps.tooMuchMemory": "{server} has about {memory} GB of memory. Choose {memory} GB or less.",
} as const;
export type UserErrorKey = keyof typeof USER_ERROR;
diff --git a/server/vps-computer.ts b/server/vps-computer.ts
index 826a35526b..032545774c 100644
--- a/server/vps-computer.ts
+++ b/server/vps-computer.ts
@@ -20,7 +20,7 @@ import {
MANAGED_LABEL,
} from "./container-computer.ts";
import { desktopCapArgs, dockerSecurityIsHardened, type DockerHardeningConfig } from "./container-isolation.ts";
-import { startWithResources, DEFAULT_DESKTOP_RESOURCES, PIDS_LIMIT, raisePidsLimit, resourceArgs, type DesktopResources } from "./container-limits.ts";
+import { applyResourcesBeforeStart, DEFAULT_DESKTOP_RESOURCES, PIDS_LIMIT, raisePidsLimit, resourceArgs, type DesktopResources } from "./container-limits.ts";
import { DATA_DIR, isValidSshAlias, vpsResources, vpsSshAlias, type AppConfig } from "./config.ts";
import { augmentedPath } from "./env-path.ts";
import { COMMAND_TIMEOUT_KILL_GRACE_MS, defaultRunner, VpsHostUnreachableError, type VpsCommandRunner } from "./vps-command.ts";
@@ -118,7 +118,6 @@ export interface VpsComputerStatus {
container_name: string;
container_id: string | null;
image_id: string | null;
- /** Set when a start could not apply the saved limits: the desktop runs with its previous ones. */ warning?: string;
}
export interface ManagedVpsOwner {
@@ -975,7 +974,6 @@ export async function vpsComputerAction(
const run = (args: string[], timeoutMs = 2 * 60_000) => runner(vpsDockerArgs(alias, args), { timeoutMs });
const containerRef = before.container_id ?? before.container_name;
- let warning: string | null = null;
if (action === "provision") {
if (before.container === "missing") {
let imageRef = before.image ? before.image_id : null;
@@ -988,14 +986,16 @@ export async function vpsComputerAction(
} else {
assertUsableContainer(before);
if (before.container === "stopped") {
- warning = await startWithResources(containerRef, vpsResources(cfg), run);
+ await applyResourcesBeforeStart(containerRef, vpsResources(cfg), run);
+ await run(["start", containerRef]);
}
}
} else if (action === "start") {
if (before.container === "missing") throw Object.assign(new Error("No VPS container exists for this bot"), { status: 409 });
if (before.container === "running") throw Object.assign(new Error("The VPS container is already running"), { status: 409 });
assertUsableContainer(before);
- warning = await startWithResources(containerRef, vpsResources(cfg), run);
+ await applyResourcesBeforeStart(containerRef, vpsResources(cfg), run);
+ await run(["start", containerRef]);
} else if (action === "remove") {
// Skips the usability check (remove escapes a broken container); the ownership labels are the only gate.
if (before.container === "missing") return before;
@@ -1012,7 +1012,7 @@ export async function vpsComputerAction(
assertUsableContainer(before);
await run(["stop", containerRef]);
}
- return Object.assign(await (action === "stop" ? computeVpsComputerStatus(cfg, botId, runner) : waitForVpsReady(cfg, botId, runner)), warning ? { warning } : {});
+ return await (action === "stop" ? computeVpsComputerStatus(cfg, botId, runner) : waitForVpsReady(cfg, botId, runner));
} finally {
invalidateVpsStatus(key);
}
diff --git a/server/vps-config.ts b/server/vps-config.ts
index f757d7e6b2..80bd6ef260 100644
--- a/server/vps-config.ts
+++ b/server/vps-config.ts
@@ -1,7 +1,7 @@
/** The self-hosted VPS settings: the default SSH alias (`vps`) and the named servers (`vpsServers`). */
import { z } from "zod";
-import { cpusetSize, DEFAULT_DESKTOP_RESOURCES, isValidCpuset, MAX_DESKTOP_CPUS, MAX_DESKTOP_MEMORY_GB, MIN_DESKTOP_CPUS, MIN_DESKTOP_MEMORY_GB, type DesktopResources } from "./container-limits.ts";
+import { DEFAULT_DESKTOP_RESOURCES, MAX_DESKTOP_CPUS, MAX_DESKTOP_MEMORY_GB, MIN_DESKTOP_CPUS, MIN_DESKTOP_MEMORY_GB, type DesktopResources } from "./container-limits.ts";
const SSH_ALIAS = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$/;
@@ -10,7 +10,6 @@ export function vpsResources(cfg: { vps?: VpsConfig }): DesktopResources {
return {
memoryGb: cfg.vps?.memoryGb ?? DEFAULT_DESKTOP_RESOURCES.memoryGb,
cpus: cfg.vps?.cpus ?? DEFAULT_DESKTOP_RESOURCES.cpus,
- ...(cfg.vps?.cpuset ? { cpuset: cfg.vps.cpuset } : {}),
};
}
@@ -18,10 +17,10 @@ export function isValidSshAlias(value: unknown): value is string {
return typeof value === "string" && SSH_ALIAS.test(value);
}
-/** A named host from the user's SSH config, authentication stays with SSH. `memoryGb` (no swap beyond it, 4 when unset) and `cpus` (2 when unset) cap each bot's VPS desktop; a running desktop takes a change when it is next provisioned or started. */
-export type VpsConfig = { sshAlias?: string; memoryGb?: number; cpus?: number; cpuset?: string };
+/** A named host from the user's SSH config; authentication stays with SSH. `memoryGb` (no swap beyond it, 4 when unset) and `cpus` (2 when unset) cap each bot's VPS desktop; a running desktop takes a change when it is next provisioned or started. */
+export type VpsConfig = { sshAlias?: string; memoryGb?: number; cpus?: number };
-/** The alias is replaced by every save; a limit the patch leaves out keeps its stored value. */
+/** The alias is replaced by every save (left out, it is cleared); a limit the patch leaves out keeps its stored value. */
export function normalizeVpsConfig(raw: unknown, stored?: unknown): VpsConfig {
if (raw === undefined || raw === null) return {};
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
@@ -45,38 +44,24 @@ export function normalizeVpsConfig(raw: unknown, stored?: unknown): VpsConfig {
}
out[key] = value;
}
- const cpuset = "cpuset" in patch ? patch.cpuset : kept.cpuset;
- if (cpuset !== undefined && cpuset !== "") {
- if (!isValidCpuset(cpuset)) throw new Error("vps.cpuset must be CPU ids like 0,2 or 4-7");
- const cores = out.cpus ?? DEFAULT_DESKTOP_RESOURCES.cpus;
- if (cpusetSize(cpuset) > cores) throw new Error(`vps.cpuset names ${cpusetSize(cpuset)} CPUs but vps.cpus is ${cores}`);
- out.cpuset = cpuset;
- }
return out;
}
const memoryGbSchema = z.number().int().min(MIN_DESKTOP_MEMORY_GB).max(MAX_DESKTOP_MEMORY_GB);
-/** Empty clears the pinning on the default server; a named server just leaves it out. */
-const cpusetSchema = z.string().refine((value) => value === "" || isValidCpuset(value), { message: "must be CPU ids like 0,2 or 4-7" });
const cpusSchema = z.number().int().min(MIN_DESKTOP_CPUS).max(MAX_DESKTOP_CPUS);
export const vpsConfigSchema = z.object({
sshAlias: z.string().refine((value) => value === "" || isValidSshAlias(value), { message: "must be a simple SSH config alias" }).optional(),
memoryGb: memoryGbSchema.optional(),
cpus: cpusSchema.optional(),
- cpuset: cpusetSchema.optional(),
});
export const MAX_VPS_SERVERS = 20;
/** `memoryGb` and `cpus` cap this server's desktops; a limit left out is the default server's (`vps`). */
-export interface VpsServer { name: string; sshAlias: string; memoryGb?: number; cpus?: number; cpuset?: string }
+export interface VpsServer { name: string; sshAlias: string; memoryGb?: number; cpus?: number }
export const vpsServerSchema = z.object({
- memoryGb: memoryGbSchema.optional(),
- cpus: cpusSchema.optional(),
- cpuset: z.string().refine(isValidCpuset, { message: "must be CPU ids like 0,2 or 4-7" }).optional(),
name: z.string().trim().min(1).max(60).refine((value) => !/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/u.test(value), { message: "must be plain text" }),
sshAlias: z.string().refine(isValidSshAlias, { message: "must be a simple SSH config alias" }),
-}).refine((server) => !server.cpuset || !server.cpus || cpusetSize(server.cpuset) <= server.cpus, {
- message: "cpuset names more CPUs than cpus allows",
- path: ["cpuset"],
+ memoryGb: memoryGbSchema.optional(),
+ cpus: cpusSchema.optional(),
});
/** Named servers a bot can be put on; the default server stays in `vps`, so saving this list never moves a bot. */
export const vpsServersSchema = z.array(vpsServerSchema).max(MAX_VPS_SERVERS)
diff --git a/server/vps-host-limits.test.ts b/server/vps-host-limits.test.ts
index 80438e272d..3b3c7185be 100644
--- a/server/vps-host-limits.test.ts
+++ b/server/vps-host-limits.test.ts
@@ -13,43 +13,56 @@ describe("VPS host limits", () => {
expect(await vpsHostCapacity("example-host", async () => ({ stdout: "x", stderr: "" }))).toBeNull();
});
- it("refuses more cores or memory than the machine has, and pins to CPUs it does not have", () => {
+ it("refuses more cores or memory than the machine has, with the words' key and params", () => {
const host = { cpus: 6, memoryBytes: 3.7 * GIB };
- expect(hostLimitProblem("example-host", host, { cpus: 6, cpuset: "0-5", memoryGb: 4 })).toBeNull();
- expect(hostLimitProblem("example-host", host, { cpus: 8 })).toBe("example-host has 6 CPU cores, so 8 cores can't be set");
- expect(hostLimitProblem("example-host", host, { cpuset: "4-7" })).toBe("example-host has CPUs 0-5, so CPU pinning 4-7 can't be set");
- expect(hostLimitProblem("example-host", host, { memoryGb: 6 })).toBe("example-host has 3.7 GB of memory, so 6 GB can't be set");
- expect(hostLimitProblem("example-host", { cpus: 1, memoryBytes: 4 * GIB }, { cpus: 2 })).toBe("example-host has 1 CPU core, so 2 cores can't be set");
+ expect(hostLimitProblem("example-host", host, { cpus: 6, memoryGb: 4 })).toBeNull();
+ expect(hostLimitProblem("example-host", host, { cpus: 8 })).toEqual({
+ error: "example-host has 6 CPU cores in all. Choose 6 or fewer.",
+ errorKey: "serverError.vps.tooManyCores",
+ errorParams: { server: "example-host", cores: 6 },
+ });
+ expect(hostLimitProblem("example-host", host, { memoryGb: 6 })?.error).toBe("example-host has about 4 GB of memory. Choose 4 GB or less.");
});
- it("checks only the limits a save adds or changes, once per host, and lets an unreachable host through", async () => {
+ it("checks only the limits a save adds or changes, and lets an unreachable host through", async () => {
const host = vi.fn(async (alias: string) => (alias === "off" ? null : { cpus: 4, memoryBytes: 8 * GIB }));
const cfg = { vps: { sshAlias: "main", cpus: 2, memoryGb: 4 }, vpsServers: [{ name: "Lab", sshAlias: "lab", cpus: 8, memoryGb: 64 }] };
expect(await vpsHostLimitProblem(cfg, { vpsServers: cfg.vpsServers }, host)).toBeNull();
expect(host).not.toHaveBeenCalled();
- expect(await vpsHostLimitProblem(cfg, { vps: { cpus: 5 } }, host)).toBe("main has 4 CPU cores, so 5 cores can't be set");
- expect(await vpsHostLimitProblem(cfg, { vps: { memoryGb: 16 } }, host)).toBe("main has 8.0 GB of memory, so 16 GB can't be set");
- expect(await vpsHostLimitProblem(cfg, { vpsServers: [{ name: "Lab", sshAlias: "lab", cpus: 8, memoryGb: 64, cpuset: "0-1" }] }, host)).toBe("lab has 4 CPU cores, so 8 cores can't be set");
+ expect((await vpsHostLimitProblem(cfg, { vps: { sshAlias: "main", cpus: 5 } }, host))?.error).toBe("main has 4 CPU cores in all. Choose 4 or fewer.");
+ expect((await vpsHostLimitProblem(cfg, { vps: { sshAlias: "main", memoryGb: 16 } }, host))?.error).toBe("main has about 8 GB of memory. Choose 8 GB or less.");
+ expect((await vpsHostLimitProblem(cfg, { vpsServers: [{ name: "Lab", sshAlias: "lab", cpus: 6, memoryGb: 64 }] }, host))?.errorKey).toBe("serverError.vps.tooManyCores");
expect(await vpsHostLimitProblem(cfg, { vpsServers: [{ name: "Off", sshAlias: "off", cpus: 64, memoryGb: 128 }] }, host)).toBeNull();
- expect(await vpsHostLimitProblem(cfg, { vps: { cpus: 4, memoryGb: 8, cpuset: "0-3" } }, host)).toBeNull();
- expect(host).toHaveBeenCalledTimes(5);
+ expect(await vpsHostLimitProblem(cfg, { vps: { sshAlias: "main", cpus: 4, memoryGb: 8 } }, host)).toBeNull();
});
-});
-describe("VPS host limits across servers", () => {
- const host = async () => ({ cpus: 4, memoryBytes: 16 * GIB });
- it("does not check the default server when its alias is cleared", async () => {
- const small = async () => ({ cpus: 1, memoryBytes: 16 * GIB });
+ it("reads the default server's patch the way the save does: an alias left out clears it", async () => {
+ const small = vi.fn(async () => ({ cpus: 1, memoryBytes: 16 * GIB }));
expect(await vpsHostLimitProblem({ vps: { sshAlias: "main", cpus: 2 } }, { vps: { sshAlias: "" } }, small)).toBeNull();
+ expect(await vpsHostLimitProblem({ vps: { sshAlias: "main", cpus: 2 } }, { vps: { cpus: 4 } }, small)).toBeNull();
+ expect(small).not.toHaveBeenCalled();
});
- it("checks a named server that inherits a raised default", async () => {
+
+ it("checks a named server that inherits a raised default, asking every host at once", async () => {
const cfg = { vps: { sshAlias: "main", cpus: 2 }, vpsServers: [{ name: "Small", sshAlias: "small" }] };
- const capacity = async (alias: string) => (alias === "small" ? { cpus: 2, memoryBytes: 16 * GIB } : { cpus: 8, memoryBytes: 16 * GIB });
- expect(await vpsHostLimitProblem(cfg, { vps: { cpus: 4 } }, capacity)).toContain("small has 2 CPU cores");
+ const asked: string[] = [];
+ let release!: () => void;
+ const gate = new Promise<void>((resolve) => { release = resolve; });
+ const capacity = async (alias: string) => {
+ asked.push(alias);
+ await gate;
+ return alias === "small" ? { cpus: 2, memoryBytes: 16 * GIB } : { cpus: 8, memoryBytes: 16 * GIB };
+ };
+ const checking = vpsHostLimitProblem(cfg, { vps: { sshAlias: "main", cpus: 4 } }, capacity);
+ await Promise.resolve();
+ expect(asked.sort()).toEqual(["main", "small"]);
+ release();
+ expect((await checking)?.error).toContain("small has 2 CPU cores");
});
- it("refuses a pin larger than the effective core limit", async () => {
- const cfg = { vps: { sshAlias: "main", cpus: 2 }, vpsServers: [] };
- const patch = { vpsServers: [{ name: "Pinned", sshAlias: "pinned", cpuset: "0-3" }] };
- expect(await vpsHostLimitProblem(cfg, patch, host)).toContain("pins 4 CPUs");
+
+ it("checks a new server against the default's limits it inherits", async () => {
+ const cfg = { vps: { sshAlias: "main", memoryGb: 16 }, vpsServers: [] };
+ const host = async () => ({ cpus: 4, memoryBytes: 8 * GIB });
+ expect((await vpsHostLimitProblem(cfg, { vpsServers: [{ name: "Spare", sshAlias: "spare" }] }, host))?.errorKey).toBe("serverError.vps.tooMuchMemory");
});
});
diff --git a/server/vps-host-limits.ts b/server/vps-host-limits.ts
index 6380ce7926..d8079f3a55 100644
--- a/server/vps-host-limits.ts
+++ b/server/vps-host-limits.ts
@@ -1,9 +1,11 @@
import type { AppConfig, VpsServer } from "./config.ts";
-import { cpusetSize } from "./container-limits.ts";
+import { userError, type UserError } from "./user-errors.ts";
+import { normalizeVpsConfig } from "./vps-config.ts";
import { vpsLimits } from "./vps-hosts.ts";
import { defaultRunner, vpsDockerArgs, type VpsCommandRunner } from "./vps-computer.ts";
export interface HostCapacity { cpus: number; memoryBytes: number }
+type Limits = { cpus?: number; memoryGb?: number };
const GIB = 1024 ** 3;
@@ -18,62 +20,54 @@ export async function vpsHostCapacity(alias: string, runner: VpsCommandRunner =
}
}
-function highestCpu(cpuset: string): number {
- return Math.max(...cpuset.split(",").map((part) => Number(part.split("-").pop())));
-}
-
-/** Words for a limit the machine cannot honour, or null. */
-export function hostLimitProblem(alias: string, host: HostCapacity, limits: { cpus?: number; cpuset?: string; memoryGb?: number }): string | null {
+/** The refusal for a limit the machine cannot honour, or null. */
+export function hostLimitProblem(alias: string, host: HostCapacity, limits: Limits): UserError | null {
if (limits.cpus !== undefined && limits.cpus > host.cpus) {
- return `${alias} has ${host.cpus} CPU core${host.cpus === 1 ? "" : "s"}, so ${limits.cpus} cores can't be set`;
- }
- if (limits.cpuset && highestCpu(limits.cpuset) >= host.cpus) {
- return `${alias} has CPUs 0-${host.cpus - 1}, so CPU pinning ${limits.cpuset} can't be set`;
+ return userError("serverError.vps.tooManyCores", { server: alias, cores: host.cpus });
}
// A machine sold as 4 GB reports a little less; round before comparing.
- if (limits.memoryGb !== undefined && limits.memoryGb > Math.round(host.memoryBytes / GIB)) {
- return `${alias} has ${(host.memoryBytes / GIB).toFixed(1)} GB of memory, so ${limits.memoryGb} GB can't be set`;
+ const memoryGb = Math.round(host.memoryBytes / GIB);
+ if (limits.memoryGb !== undefined && limits.memoryGb > memoryGb) {
+ return userError("serverError.vps.tooMuchMemory", { server: alias, memory: memoryGb });
}
return null;
}
-type Patch = { vps?: { sshAlias?: string; cpus?: number; cpuset?: string; memoryGb?: number }; vpsServers?: VpsServer[] };
-type Limits = { cpus?: number; cpuset?: string; memoryGb?: number };
+type Patch = { vps?: unknown; vpsServers?: VpsServer[] };
-/** The config as it will be once `patch` is saved: an omitted default alias is kept, an empty one clears it, and an empty pin removes it. */
+/** The config as it will be once `patch` is saved, read the same way the save reads it. */
function afterPatch(cfg: AppConfig, patch: Patch): AppConfig {
- if (patch.vps === undefined && patch.vpsServers === undefined) return cfg;
- const { sshAlias, cpus, memoryGb, cpuset } = patch.vps ?? {};
- const vps = { ...cfg.vps, ...(sshAlias === undefined ? {} : { sshAlias }), ...(cpus === undefined ? {} : { cpus }), ...(memoryGb === undefined ? {} : { memoryGb }) };
- if (patch.vps && "cpuset" in patch.vps) delete vps.cpuset;
- if (cpuset) vps.cpuset = cpuset;
+ let vps = cfg.vps;
+ try {
+ if (patch.vps !== undefined) vps = normalizeVpsConfig(patch.vps, cfg.vps);
+ } catch {
+ // The save refuses it with its own words.
+ }
return { ...cfg, vps, vpsServers: patch.vpsServers ?? cfg.vpsServers };
}
-const sameLimits = (a: Limits, b: Limits) => a.cpus === b.cpus && a.cpuset === b.cpuset && a.memoryGb === b.memoryGb;
+const sameLimits = (a: Limits, b: Limits) => a.cpus === b.cpus && a.memoryGb === b.memoryGb;
-/** Checks each CPU and memory limit this save adds or changes, as each server will effectively have it, against what the machine has. */
-export async function vpsHostLimitProblem(cfg: AppConfig, patch: Patch, capacity: (alias: string) => Promise<HostCapacity | null> = vpsHostCapacity): Promise<string | null> {
+/** Checks each memory and core limit this save adds or changes, as each server will effectively have it, against what
+ * the machine has. Every host that needs a look is asked at once. */
+export async function vpsHostLimitProblem(
+ cfg: AppConfig,
+ patch: Patch,
+ capacity: (alias: string) => Promise<HostCapacity | null> = vpsHostCapacity,
+): Promise<UserError | null> {
const after = afterPatch(cfg, patch);
const aliases = new Set<string>();
if (after.vps?.sshAlias) aliases.add(after.vps.sshAlias);
for (const server of after.vpsServers ?? []) aliases.add(server.sshAlias);
- const targets: ({ alias: string } & Limits)[] = [];
- for (const alias of aliases) {
+ const known = (alias: string) => alias === cfg.vps?.sshAlias || (cfg.vpsServers ?? []).some((server) => server.sshAlias === alias);
+ const targets = [...aliases].flatMap((alias) => {
const limits = vpsLimits(after, alias);
- if (limits.cpuset && limits.cpus !== undefined && cpusetSize(limits.cpuset) > limits.cpus) {
- return `${alias} pins ${cpusetSize(limits.cpuset)} CPUs (${limits.cpuset}), more than its ${limits.cpus} cores`;
- }
- const known = alias === cfg.vps?.sshAlias || (cfg.vpsServers ?? []).some((server) => server.sshAlias === alias);
- const hasLimits = limits.cpus !== undefined || limits.memoryGb !== undefined || Boolean(limits.cpuset);
- if (hasLimits && !(known && sameLimits(limits, vpsLimits(cfg, alias)))) targets.push({ alias, ...limits });
- }
- const hosts = new Map<string, Promise<HostCapacity | null>>();
- for (const target of targets) {
- if (!hosts.has(target.alias)) hosts.set(target.alias, capacity(target.alias));
- const host = await hosts.get(target.alias)!;
- const problem = host === null ? null : hostLimitProblem(target.alias, host, target);
- if (problem) return problem;
- }
- return null;
+ const hasLimits = limits.cpus !== undefined || limits.memoryGb !== undefined;
+ return hasLimits && !(known(alias) && sameLimits(limits, vpsLimits(cfg, alias))) ? [{ alias, limits }] : [];
+ });
+ const problems = await Promise.all(targets.map(async ({ alias, limits }) => {
+ const host = await capacity(alias);
+ return host === null ? null : hostLimitProblem(alias, host, limits);
+ }));
+ return problems.find((problem) => problem !== null) ?? null;
}
diff --git a/server/vps-hosts.ts b/server/vps-hosts.ts
index c8d9f5912e..9ff78cadce 100644
--- a/server/vps-hosts.ts
+++ b/server/vps-hosts.ts
@@ -1,13 +1,12 @@
// Which VPS host a bot's computer lives on: the app-wide SSH alias, or the bot's own.
import { isValidSshAlias, vpsSshAlias, type AppConfig, type VpsConfig } from "./config.ts";
-/** A named server's own limits, each falling back to the default server's. CPU pinning is per machine, so a named server never inherits the default's. */
-export function vpsLimits(cfg: AppConfig, alias?: string | null): Pick<VpsConfig, "memoryGb" | "cpus" | "cpuset"> {
+/** A named server's own limits, each falling back to the default server's; unset ones are left out (4 GB and 2 cores apply). */
+export function vpsLimits(cfg: AppConfig, alias?: string | null): Pick<VpsConfig, "memoryGb" | "cpus"> {
const own = alias ? cfg.vpsServers?.find((server) => server.sshAlias === alias) : undefined;
const memoryGb = own?.memoryGb ?? cfg.vps?.memoryGb;
const cpus = own?.cpus ?? cfg.vps?.cpus;
- const cpuset = own ? own.cpuset : cfg.vps?.cpuset;
- return { ...(memoryGb ? { memoryGb } : {}), ...(cpus ? { cpus } : {}), ...(cpuset ? { cpuset } : {}) };
+ return { ...(memoryGb ? { memoryGb } : {}), ...(cpus ? { cpus } : {}) };
}
/** A bot's own SSH alias wins over the default; both are validated the same way. */
diff --git a/src/locales/de.json b/src/locales/de.json
index 7baa833746..f0cbd6d24f 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -4108,9 +4108,13 @@
"chat.handoffExchange.loading": "Unterhaltung wird geladen…",
"chat.handoffExchange.failed": "Die Unterhaltung konnte nicht geladen werden.",
"chat.handoffExchange.empty": "Noch keine Nachrichten.",
+ "keys.vps.servers.title": "Benannte Server",
+ "keys.vps.servers.hint": "Füge weitere Server mit Namen hinzu. Jeder Bot kann dann in seinen eigenen Computer-Einstellungen einen davon wählen; der Alias oben bleibt der Standard.",
"keys.vps.servers.name": "Servername",
+ "keys.vps.servers.namePlaceholder": "Heimlabor",
"keys.vps.servers.alias": "SSH-Config-Alias des Servers",
"keys.vps.servers.add": "Hinzufügen",
+ "keys.vps.servers.removeAria": "{name} entfernen",
"botAccess.cloud.serverPick": "Server für diesen Bot wählen",
"botAccess.cloud.serverPickHint": "Wähle einen benannten Server oder gib einen anderen SSH-Alias ein.",
"botAccess.cloud.serverPickDefault": "Standardserver ({alias})",
diff --git a/src/locales/en.json b/src/locales/en.json
index 4f3b5ccf93..7f1655c95f 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -4298,25 +4298,19 @@
"keys.vps.descAfter": " for the required SSH alias shape.",
"keys.vps.anyMachine": "Any Linux machine with Docker that you reach over SSH works, including a computer on your Tailscale network: use its Tailscale name as the alias's HostName.",
"keys.vps.aria": "Self-hosted VPS SSH config alias",
- "keys.vps.col.memory": "Memory",
- "keys.vps.col.cpu": "CPU cores",
- "keys.vps.aliasLine": "SSH alias: {alias}",
- "keys.vps.unitGb": "GB",
- "keys.vps.unitCores": "cores",
- "keys.vps.edit": "Edit",
- "keys.vps.editAria": "Edit {name} name and alias",
- "keys.vps.lessAria": "Less: {what}",
- "keys.vps.moreAria": "More: {what}",
- "keys.vps.serverMemoryAria": "{name} memory (GB)",
- "keys.vps.serverCpusAria": "{name} CPU cores",
- "keys.vps.servers.addTitle": "Add server",
- "keys.vps.servers.greyHint": "Grey values are inherited. CPU pinning is optional: logical CPU IDs like 0,2 or 4-7; blank lets the host choose. A desktop that already exists keeps a removed pin until it is recreated.",
+ "keys.vps.servers.title": "Named servers",
+ "keys.vps.servers.hint": "Add more servers by name. Each bot can then pick one in its own computer settings; the alias above stays the default.",
"keys.vps.servers.name": "Server name",
+ "keys.vps.servers.namePlaceholder": "Home lab",
"keys.vps.servers.alias": "Server SSH config alias",
"keys.vps.servers.add": "Add",
- "keys.vps.memory": "Memory (GB)",
- "keys.vps.cpus": "CPU cores",
- "keys.vps.resourcesHelp": "The most each bot's VPS desktop on the default server may use; named servers below can set their own. A new desktop takes a change at once; a stopped one takes it when it next starts. A running one keeps its limits until it is stopped and started again. Keep these within what the VPS has.",
+ "keys.vps.servers.removeAria": "Remove {name}",
+ "keys.vps.servers.nameOf": "{alias} server name",
+ "keys.vps.serverMemoryAria": "{name} memory (GB)",
+ "keys.vps.serverCpusAria": "{name} CPU cores",
+ "keys.vps.unitGb": "GB",
+ "keys.vps.unitCores": "cores",
+ "keys.vps.limitsHint": "Memory and cores are the most each bot's desktop on a server may use. Left empty, a named server uses the default server's, and the default uses 4 GB and 2 cores. A running desktop takes a change the next time it starts. Saving checks that the machine has them.",
"usage.title": "Usage",
"planUsage.title": "Plan usage",
"planUsage.subtitle": "Remaining allowance on each signed-in provider. 5-hour and weekly windows, when that plan has them.",
@@ -10534,6 +10528,8 @@
"serverError.voice.fishTranscribeConnection": "Couldn't reach Fish Audio to hear you — check your connection.",
"serverError.voice.elevenLabsTranscribeConnection": "Couldn't reach ElevenLabs to hear you — check your connection.",
"serverError.file.tooLarge": "This file is {size}, over the {limit} limit for opening files from chat. The file itself is still saved as {name}.",
+ "serverError.vps.tooManyCores": "{server} has {cores} CPU cores in all. Choose {cores} or fewer.",
+ "serverError.vps.tooMuchMemory": "{server} has about {memory} GB of memory. Choose {memory} GB or less.",
"server.botApi.engineRefusal": "This thread came in through the Bot API, and this bot's AI can't work in it. Start a new conversation.",
"server.botApi.confinedWhy": "This call came in through the Bot API, so it can only answer from what this bot already knows.",
"voice.openai.description": "Read replies and voice messages with AI-generated voices. Uses your OpenAI API key and is billed by OpenAI based on API usage. Live call settings are separate.",
@@ -11519,13 +11515,6 @@
"chat.handoffExchange.loading": "Loading the conversation…",
"chat.handoffExchange.failed": "Couldn't load the conversation.",
"chat.handoffExchange.empty": "No messages yet.",
- "keys.vps.col.pin": "CPU pinning",
- "keys.vps.pinAuto": "Auto",
- "keys.vps.deleteAria": "Delete {name}",
- "keys.vps.serverPinAria": "{name} CPU pinning",
- "keys.vps.servers.aliasPlaceholder": "SSH alias",
- "keys.vps.details": "Limits and pinning details",
- "keys.vps.pinTooMany": "Pinning names {pinned} CPUs, more than the {cores} cores set. Lower the pinning or raise the cores.",
"sidebar.threads.hidden": "Thread hidden",
"sidebar.threads.hide": "Hide {title}",
"sidebar.threads.hideShort": "Hide",
@@ -11568,7 +11557,5 @@
"skillBurger.menu.aria": "More for {name}",
"skillBurger.menu.rename": "Rename…",
"skillBurger.card.everyChat": "Every chat",
- "skillBurger.page.empty": "Skill Burgers your bots make show up here.",
- "keys.vps.servers.displayNamePlaceholder": "Display name",
- "keys.vps.servers.listHint": "Each bot picks one of these servers in its computer settings. Blank limits inherit the first server's."
+ "skillBurger.page.empty": "Skill Burgers your bots make show up here."
}
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 02c573db8c..10b7a07e51 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -4091,9 +4091,19 @@
"keys.vps.descAfter": " para ver o formato de apelido SSH exigido.",
"keys.vps.anyMachine": "Funciona qualquer máquina Linux com Docker que você acesse por SSH, inclusive um computador da sua rede Tailscale: use o nome dele no Tailscale como HostName do alias.",
"keys.vps.aria": "Apelido na configuração SSH do VPS próprio",
+ "keys.vps.servers.title": "Servidores com nome",
+ "keys.vps.servers.hint": "Adicione mais servidores com um nome. Cada bot pode escolher um deles nas próprias configurações de computador; o apelido acima continua sendo o padrão.",
"keys.vps.servers.name": "Nome do servidor",
+ "keys.vps.servers.namePlaceholder": "Laboratório em casa",
"keys.vps.servers.alias": "Apelido do servidor na configuração SSH",
"keys.vps.servers.add": "Adicionar",
+ "keys.vps.servers.removeAria": "Remover {name}",
+ "keys.vps.servers.nameOf": "Nome do servidor {alias}",
+ "keys.vps.serverMemoryAria": "Memória de {name} (GB)",
+ "keys.vps.serverCpusAria": "Núcleos de CPU de {name}",
+ "keys.vps.unitGb": "GB",
+ "keys.vps.unitCores": "núcleos",
+ "keys.vps.limitsHint": "Memória e núcleos são o máximo que o desktop de cada bot em um servidor pode usar. Vazios, um servidor nomeado usa os do servidor padrão, e o padrão usa 4 GB e 2 núcleos. Um desktop em execução assume a mudança na próxima vez que iniciar. Ao salvar, verificamos se a máquina tem esses recursos.",
"usage.title": "Uso",
"planUsage.title": "Uso do plano",
"planUsage.subtitle": "Saldo restante em cada provedor em que você fez login. Períodos de 5 horas e semanais, quando disponíveis no plano.",
@@ -10425,6 +10435,8 @@
"serverError.voice.fishTranscribeConnection": "Não foi possível conectar ao Fish Audio para ouvir você. Confira sua conexão.",
"serverError.voice.elevenLabsTranscribeConnection": "Não foi possível conectar ao ElevenLabs para ouvir você. Confira sua conexão.",
"serverError.file.tooLarge": "Este arquivo tem {size}, acima do limite de {limit} para abrir arquivos do chat. O arquivo continua salvo como {name}.",
+ "serverError.vps.tooManyCores": "{server} tem {cores} núcleos de CPU no total. Escolha {cores} ou menos.",
+ "serverError.vps.tooMuchMemory": "{server} tem cerca de {memory} GB de memória. Escolha {memory} GB ou menos.",
"server.botApi.engineRefusal": "Esta conversa veio pela API do bot, e a IA deste bot não pode trabalhar nela. Inicie uma nova conversa.",
"server.botApi.confinedWhy": "Esta chamada veio pela API do bot, então ele só pode responder com o que já sabe.",
"voice.openai.description": "Leia respostas e mensagens de voz com vozes geradas por IA. Usa sua chave de API da OpenAI e é cobrado pela OpenAI conforme o uso da API. As configurações das chamadas ao vivo são separadas.",
@@ -11545,30 +11557,5 @@
"skillBurger.menu.aria": "Mais de {name}",
"skillBurger.menu.rename": "Renomear…",
"skillBurger.card.everyChat": "Todos os chats",
- "skillBurger.page.empty": "Os Skill Burgers dos seus bots aparecem aqui.",
- "keys.vps.col.memory": "Memória",
- "keys.vps.col.cpu": "Núcleos de CPU",
- "keys.vps.col.pin": "Fixação de CPU",
- "keys.vps.aliasLine": "Apelido SSH: {alias}",
- "keys.vps.unitGb": "GB",
- "keys.vps.unitCores": "núcleos",
- "keys.vps.edit": "Editar",
- "keys.vps.editAria": "Editar nome e apelido de {name}",
- "keys.vps.lessAria": "Menos: {what}",
- "keys.vps.moreAria": "Mais: {what}",
- "keys.vps.serverMemoryAria": "Memória de {name} (GB)",
- "keys.vps.serverCpusAria": "Núcleos de CPU de {name}",
- "keys.vps.serverPinAria": "Fixação de CPU de {name}",
- "keys.vps.servers.addTitle": "Adicionar servidor",
- "keys.vps.servers.greyHint": "Os valores em cinza são herdados. A fixação de CPU é opcional: IDs lógicos de CPU como 0,2 ou 4-7; em branco, o host decide. Um desktop que já existe mantém uma fixação removida até ser recriado.",
- "keys.vps.servers.aliasPlaceholder": "Apelido SSH",
- "keys.vps.memory": "Memória (GB)",
- "keys.vps.cpus": "Núcleos de CPU",
- "keys.vps.resourcesHelp": "O máximo que o desktop VPS de cada bot pode usar no servidor padrão; os servidores nomeados abaixo podem definir os seus. Um desktop novo assume a mudança na hora; um parado a assume quando for iniciado de novo. Um desktop em execução mantém seus limites até ser parado e iniciado outra vez. Mantenha esses valores dentro do que o VPS tem.",
- "keys.vps.pinAuto": "Auto",
- "keys.vps.deleteAria": "Excluir {name}",
- "keys.vps.details": "Detalhes de limites e fixação",
- "keys.vps.pinTooMany": "A fixação cita {pinned} CPUs, mais do que os {cores} núcleos definidos. Reduza a fixação ou aumente os núcleos.",
- "keys.vps.servers.displayNamePlaceholder": "Nome de exibição",
- "keys.vps.servers.listHint": "Cada bot escolhe um desses servidores nas configurações do próprio computador. Limites em branco herdam os do primeiro servidor."
+ "skillBurger.page.empty": "Os Skill Burgers dos seus bots aparecem aqui."
}
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 8c17d3cfe8..08bdb77b12 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -898,7 +898,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"usage.bot.empty": "a5580dec31af0c3535d045bfcf97c3379665e1ac24f67fe95ef3819c4fd57bc6",
"usage.bot.unpriced": "d1ab4626ee54f9f122bea709d4a19ee2bb080531f5a255ec7c700f8cc4435c11",
@@ -6513,7 +6512,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -11443,7 +11441,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"usage.bot.empty": "a5580dec31af0c3535d045bfcf97c3379665e1ac24f67fe95ef3819c4fd57bc6",
"usage.bot.unpriced": "d1ab4626ee54f9f122bea709d4a19ee2bb080531f5a255ec7c700f8cc4435c11",
@@ -15274,7 +15271,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"usage.bot.empty": "a5580dec31af0c3535d045bfcf97c3379665e1ac24f67fe95ef3819c4fd57bc6",
"usage.bot.unpriced": "d1ab4626ee54f9f122bea709d4a19ee2bb080531f5a255ec7c700f8cc4435c11",
@@ -20743,7 +20739,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -29592,7 +29587,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -38872,7 +38866,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"usage.bot.empty": "a5580dec31af0c3535d045bfcf97c3379665e1ac24f67fe95ef3819c4fd57bc6",
"usage.bot.unpriced": "d1ab4626ee54f9f122bea709d4a19ee2bb080531f5a255ec7c700f8cc4435c11",
@@ -49404,7 +49397,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -58999,7 +58991,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"usage.bot.empty": "a5580dec31af0c3535d045bfcf97c3379665e1ac24f67fe95ef3819c4fd57bc6",
"usage.bot.unpriced": "d1ab4626ee54f9f122bea709d4a19ee2bb080531f5a255ec7c700f8cc4435c11",
@@ -64131,7 +64122,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -70054,7 +70044,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -76457,7 +76446,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -83613,7 +83601,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -90724,7 +90711,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",
@@ -102549,7 +102535,6 @@
"keys.vps.descLink": "1c00384ac1c557ba0f8af07f68a2beecb528957c3db26d9d4bfe3dafd8fcfde7",
"keys.vps.descAfter": "acf6265b6097a97e9aa684a27d42516f69ca1c1af6bb984357d5e9ed0ea51ac3",
"keys.vps.aria": "b6979bc621bf00393e04cceafe629492c15fba10efe5f726841765d7d43846c7",
- "keys.vps.removeAlias": "6caa1c661f0e0803d93ead04f95371361d5f73b30df69fe170183ed2cafe7f79",
"usage.title": "8d59829c1e15afe1a7fae93e8e5e32d8511bec5fd598a09f4fea6033b31e8a66",
"planUsage.title": "eb55e9232d2a7503c819491be60761e99458daf4947df9676c5cc86b653f59f4",
"planUsage.subtitle": "d3f87269691be6a10ae5f88225c67645c9c122df3663de8b4c5abe1acfec6015",