Skip to content

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

Merge origin/main into train/nov24-m

milind-soni901bfa1a5b4d
diff --cc server/drivers/pi.ts
index 640288a278,627d6c6487..f6f24a2b78
--- a/server/drivers/pi.ts
+++ b/server/drivers/pi.ts
@@@ -74,10 -72,50 +74,10 @@@ const PI_SESSION_SLOW_MS = 20_000
/** pi answered success:false: an explicit refusal from a live runtime, not a transport failure. */
class PiRpcRefusalError extends Error {}
- export function piThinkingLevel(effort: EffortLevel): (typeof EFFORT_LEVELS)[number] | "off" {
- return effort === "none" ? "off" : effort;
+ export function piThinkingLevel(effort: EffortLevel): (typeof PI_EFFORT_LEVELS)[number] | "off" {
+ return effort === "none" ? "off" : effort === "ultra" ? "max" : effort;
}
-interface PiModelEntry {
- provider: string;
- id: string;
- name?: string;
-}
-
-interface PiModelsResponse {
- type: "response";
- command: "get_available_models";
- success: boolean;
- data?: { models?: PiModelEntry[] };
-}
-
-function piCatalogFromFrame(frame: unknown, fallbackDefault: string): ModelCatalog | null {
- const res = frame as PiModelsResponse;
- if (res?.type !== "response" || res.command !== "get_available_models" || !res.success) return null;
- const options: Array<{ id: string; label: string; custom: true; provider: string }> = [];
- for (const m of res.data?.models ?? []) {
- if (!m?.provider || !m?.id) continue;
- const id = `${m.provider}/${m.id}`;
- options.push({ id, label: m.name ?? m.id, custom: true, provider: m.provider });
- }
- return { default: fallbackDefault || (options[0]?.id ?? ""), options };
-}
-
-export function parsePiCatalog(stdout: string, fallbackDefault = ""): ModelCatalog {
- for (const line of stdout.split("\n")) {
- if (!line.trim()) continue;
- let msg: unknown;
- try {
- msg = JSON.parse(line);
- } catch {
- continue;
- }
- const catalog = piCatalogFromFrame(msg, fallbackDefault);
- if (catalog) return catalog;
- }
- return { default: fallbackDefault, options: [] };
-}
-
export function splitPiModel(id: string): { provider: string; modelId: string } | null {
const inject = decodeInjectId(id);
if (inject) return { provider: inject.host, modelId: inject.model };
diff --cc src/lib/local-computer.ts
index b4aca4e607,5285ec1a70..c4da0173c8
--- a/src/lib/local-computer.ts
+++ b/src/lib/local-computer.ts
@@@ -39,13 -39,9 +39,13 @@@ export function localComputerDisabledRe
}): string | null {
if (!providerSupportsLocal) return t("computer.problem.localAiCannot");
if (capabilities.localComputer.available) return null;
- if (pageOnRemoteServer(capabilities)) return t("computer.problem.localRemoteServer");
+ if (pageOnRemoteServer(capabilities)) return t("computer.problem.lendRemoteServer");
if (capabilities.host.platform === "linux") {
- if (capabilities.localComputer.reasonCode === "linux-wayland-seat-safety-blocked") return t("computer.problem.localWaylandBlocked");
+ if (capabilities.localComputer.reasonCode === "linux-wayland-seat-safety-blocked") {
+ return t(capabilities.localComputer.ubuntuDesktop === false
+ ? "computer.problem.localWaylandBlockedOther"
+ : "computer.problem.localWaylandBlocked");
+ }
if (capabilities.localComputer.reasonCode === "wayland-compositor-unsupported") return t("computer.problem.localWaylandDesktop");
if (capabilities.localComputer.reasonCode === "linux-hyprland-plugin-required") return t("computer.problem.localHyprlandPlugin");
if (!capabilities.localComputer.enabled) return t("computer.problem.localTurnOn");
diff --cc src/locales/it.json
index a5590c6986,57947a6fae..8dbf00bd71
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@@ -11026,9 -10868,37 +11038,37 @@@
"settings.page.overview": "Panoramica",
"settings.page.plan": "Piano e fatturazione",
"settings.page.spending": "Spese",
+ "settings.page.storage": "Spazio",
+ "settings.storage.section": "Spazio usato",
+ "settings.storage.used": "{used} di {size} usati",
+ "settings.storage.full": "pieno",
+ "settings.storage.summary": "Spazio pieno al {percent}%",
+ "settings.storage.breakdown": "Cosa occupa lo spazio",
+ "settings.storage.group.work": "File dei tuoi bot",
+ "settings.storage.group.precious": "Conversazioni e impostazioni",
+ "settings.storage.group.rebuildable": "Cache e download",
+ "settings.storage.group.other": "Altro",
+ "settings.storage.group.unmeasured": "Non misurato",
+ "settings.storage.unmeasuredNote": "«Non misurato» è lo spazio del sistema e tutto ciò che è stato scritto dall'ultima misurazione.",
+ "settings.storage.measured": "Misurato {when}.",
+ "settings.storage.measureAgain": "Misura di nuovo",
+ "settings.storage.measuring": "Misurazione…",
+ "settings.storage.firstPass": "Misurazione di cosa occupa questo spazio. Su una Cloud grande può richiedere un po’ di tempo.",
+ "settings.storage.failed": "L'ultima misurazione non è terminata, quindi questi dati sono della precedente.",
+ "settings.storage.failedFirst": "Non è stato ancora possibile misurare cosa occupa questo spazio. Si riproverà automaticamente.",
+ "settings.storage.overcount": "Alcuni file potrebbero essere contati due volte, quindi le parti superano di {size} lo spazio usato.",
+ "settings.storage.bots": "Bot più grandi",
+ "settings.storage.botsNote": "La dimensione di un bot include la sua cache e i suoi download, contati anche in Cache e download.",
+ "settings.storage.unnamedBot": "Bot senza nome",
+ "settings.storage.privateBot": "Bot privato",
+ "settings.storage.deletedBots": "Bot eliminati",
+ "settings.storage.otherBots": "Altri bot",
+ "storageNotice.line": "Spazio pieno al {percent}%",
+ "storageNotice.open": "Apri Spazio nelle impostazioni",
+ "settings.page.devices": "Dispositivi",
"devicesPage.add": "Aggiungi un dispositivo",
- "devicesPage.mapLabel": "I tuoi dispositivi e come si collegano",
- "devicesPage.empty": "Non c'è ancora nient'altro di collegato. Aggiungi un telefono, un computer o il tuo server.",
+ "devicesPage.mapLabel": "I tuoi dispositivi e come si connettono",
+ "devicesPage.empty": "Nient'altro è ancora connesso. Aggiungi un telefono, un computer o un tuo server.",
"devicesPage.status.here": "Sei qui",
"devicesPage.status.online": "Online",
"devicesPage.status.offline": "Offline",
@@@ -11049,24 -10919,23 +11089,23 @@@
"devicesPage.route.paired": "Accesso effettuato",
"devicesPage.route.ssh": "SSH",
"devicesPage.kind.laptop": "Computer",
- "devicesPage.kind.desktop": "Computer fisso",
- "devicesPage.kind.server": "Il tuo server",
+ "devicesPage.kind.desktop": "Computer desktop",
+ "devicesPage.kind.server": "Il tuo server personale",
"devicesPage.kind.cloud": "Cloud",
"devicesPage.kind.phone": "Telefono",
- "devicesPage.kind.vm": "Computer del bot",
"devicesPage.group.computers": "Computer",
- "devicesPage.group.servers": "Cloud e i tuoi server",
+ "devicesPage.group.servers": "Cloud e server personali",
"devicesPage.group.phones": "Telefoni",
- "devicesPage.detail.kind": "Che cos'è",
- "devicesPage.detail.reaches": "Si collega tramite",
+ "devicesPage.detail.kind": "Tipo",
+ "devicesPage.detail.reaches": "Si connette tramite",
"devicesPage.detail.address": "Indirizzo",
"devicesPage.detail.version": "Versione",
- "devicesPage.detail.lastSeen": "Ultimo accesso",
+ "devicesPage.detail.lastSeen": "Ultima visualizzazione",
"devicesPage.detail.bots": "Bot",
- "devicesPage.detail.runsBots": "Ha i suoi bot",
+ "devicesPage.detail.runsBots": "Ha bot propri",
"devicesPage.detail.hostsComputer": "I bot possono lavorarci",
- "devicesPage.detail.reachesBots": "Parla con i bot di qui",
- "devicesPage.action.copyUpdate": "Copia il comando di aggiornamento",
+ "devicesPage.detail.reachesBots": "Comunica con i bot qui",
+ "devicesPage.action.copyUpdate": "Copia comando di aggiornamento",
"devicesPage.action.manage": "Gestisci",
"devicesPage.action.removeApps": "Rimuovi le sue app",
"devicesPage.action.signOut": "Disconnetti",
diff --cc src/locales/source-hashes.json
index 311532299d,a84a5d2629..2bb3cc0150
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@@ -4299,8 -4299,17 +4299,19 @@@
"skillBurger.run.addPathFailed": "969dd8cc30abc64e096bd0bf22d36198b8b082d004e31ceb4ece3261d05bf747",
"activity.tool.team.runWorkflow": "89bbf828d17d4d85dc2811f06cd02c3e2619ee3119475991e95b508c28c815a8",
"activity.tool.team.workflowEdit": "f4db6d696f437b450c9dcfb1e4b9976ae3774af77166d9df39f63835dac4c1e7",
+ "computer.problem.localWaylandBlockedOther": "350a7ad5cba076518d35be7a83a24eb473f6c8316f5204d05951319266b8e147",
- "computer.linux.waylandOtherDesktop": "3f2dd5c5c584d38fcd9dd39756a9096087a42af246781c13e41cb89c61c9be45"
++ "computer.linux.waylandOtherDesktop": "3f2dd5c5c584d38fcd9dd39756a9096087a42af246781c13e41cb89c61c9be45",
+ "engineSetup.pasteCodeHint": "83f1e5bc77baae3abf68ea4b844d4366ea03379fecba577435d84bc52dfca3db",
+ "engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129",
+ "engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6",
+ "engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",
+ "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",
+ "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",
+ "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",
+ "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6",
+ "engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee",
+ "engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f",
+ "engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"
},
"es": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@@ -38521,8 -38572,14 +38574,16 @@@
"skillBurger.run.addPathFailed": "969dd8cc30abc64e096bd0bf22d36198b8b082d004e31ceb4ece3261d05bf747",
"activity.tool.team.runWorkflow": "89bbf828d17d4d85dc2811f06cd02c3e2619ee3119475991e95b508c28c815a8",
"activity.tool.team.workflowEdit": "f4db6d696f437b450c9dcfb1e4b9976ae3774af77166d9df39f63835dac4c1e7",
+ "computer.problem.localWaylandBlockedOther": "350a7ad5cba076518d35be7a83a24eb473f6c8316f5204d05951319266b8e147",
- "computer.linux.waylandOtherDesktop": "3f2dd5c5c584d38fcd9dd39756a9096087a42af246781c13e41cb89c61c9be45"
++ "computer.linux.waylandOtherDesktop": "3f2dd5c5c584d38fcd9dd39756a9096087a42af246781c13e41cb89c61c9be45",
+ "engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6",
+ "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",
+ "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",
+ "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",
+ "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6",
+ "engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee",
+ "engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f",
+ "engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"
},
"zh": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",