Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Fix DeepSeek Harness CLI detection in the Windows desktop app
bore085c5a0f6ee9
diff --git a/server/env-path.test.ts b/server/env-path.test.tsindex fed156adec..75fc5c0396 100644--- a/server/env-path.test.ts+++ b/server/env-path.test.ts@@ -659,13 +659,18 @@ winOnly("resolveCli (Windows)", () => {expect(resolveCli("ombfake", [], { PATH: "", PATHEXT: ".CMD" })).toEqual({ command: "ombfake", args: [] });});- it("preserves the DeepSeek desktop shim's Electron CLI entry point", () => {+ it.each(["archive file", "virtual directory"])("resolves the DeepSeek desktop CLI with an ASAR %s", (archiveType) => {const exe = join(dir, "DeepSeek Harness.exe");const archive = join(dir, "resources", "app.asar");const shim = join(dir, "dsh.cmd");writeFileSync(exe, "MZ");mkdirSync(join(dir, "resources"));- writeFileSync(archive, "");+ if (archiveType === "virtual directory") {+ mkdirSync(join(archive, "dsh"), { recursive: true });+ writeFileSync(join(archive, "dsh", "cli.js"), "");+ } else {+ writeFileSync(archive, "");+ }writeFileSync(shim, ["@echo off",'set "ELECTRON_RUN_AS_NODE=1"',diff --git a/server/env-path.ts b/server/env-path.tsindex 9e5d081531..ac8218c9ef 100644--- a/server/env-path.ts+++ b/server/env-path.ts@@ -392,7 +392,7 @@ function parseCmdShim(shim: string, env?: NodeJS.ProcessEnv): ResolvedSpawn | nuconst command = join(dir, desktop[1]);const archive = join(dir, desktop[2]);const script = join(archive, desktop[3]);- if (isFile(command) && isFile(archive)) {+ if (isFile(command) && (isFile(archive) || isFile(script))) {return { command, args: ["--expose-internals", script], env: { ELECTRON_RUN_AS_NODE: "1" } };}}