Skip to content

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

Merge #4473

milind-soni2c5f563415c3
diff --cc server/system-prompt.ts
index 7778077aad,ddfc9e58fb..b96a323f10
--- a/server/system-prompt.ts
+++ b/server/system-prompt.ts
@@@ -137,6 -137,21 +137,11 @@@ export const CLOUD_HOME_PLACE = "the us
// The Cloud prompt names the synced folders; index.ts reads the registry through here.
export { syncedFolders } from "./cloud-sync-store.ts";
-/** Their computer as they know it: "their PC MILIND-PC" on Windows, "their Mac" only on a Mac, else "their own computer". */
-function theirComputer(lent: ReadonlyArray<{ name: string; platform: "darwin" | "win32" | "linux" | null }>): { theirs: string; device: "PC" | "Mac" | "computer" } {
- const latest = lent[0];
- if (!latest) return { theirs: "their own computer", device: "computer" };
- const device = deviceWord(latest.platform);
- // eslint-disable-next-line no-control-regex
- const name = latest.name.replace(/[\u0000-\u001f\u007f\u202a-\u202e\u2066-\u2069]/g, " ").slice(0, 80);
- return { theirs: `their ${device} (${name})`, device };
-}
-
+ /** The AIs a Cloud's bots run on run on the Cloud itself: a sign-in or install anywhere else never reaches them. */
+ export const CLOUD_ENGINES_HERE = " The AIs bots run on (Claude, Codex, Cursor and the rest) run here, on My Cloud, not on their computer or their cloud computer."
+ + " If one needs installing or signing in, tell them to choose it in the model picker: its card does that here, with a sign-in link they open on any device."
+ + " Never tell them to run an AI's install or sign-in command on their own computer, and never run one on their cloud computer yourself: neither signs in the AIs here.";
+
/** `asks`: the person's own Cloud, whose bots ask them to turn on what their computer doesn't give now (ask_for_computer). */
export function cloudHomePrompt(sharedComputerTools: boolean, synced: ReadonlyArray<{ computerName: string; pcPath: string; cloudPath: string }> = [],
lent: ReadonlyArray<{ name: string; platform: "darwin" | "win32" | "linux" | null }> = [], asks = false): string {