Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(host-runtime): expect the platform scratch separator in the launch-resolver test
liuzixiangee2f4fd0c215
diff --git a/packages/host-runtime/src/launch-resolver.test.ts b/packages/host-runtime/src/launch-resolver.test.tsindex 1a8e4679b..a893ae749 100644--- a/packages/host-runtime/src/launch-resolver.test.ts+++ b/packages/host-runtime/src/launch-resolver.test.ts@@ -1,3 +1,4 @@+import { join } from "node:path";import { describe, expect, it } from "vitest";import { createHeadlessLaunchResolver, type HostProviderRecord } from "./launch-resolver.js";@@ -68,7 +69,7 @@ describe("createHeadlessLaunchResolver", () => {expect(launch.projectPath).toBe("/work/project");expect(launch.sidecarParams.provider.apiKey).toBe("sk-test");expect(launch.sidecarParams.provider.modelConfig?.name).toBe("gpt-a");- expect(launch.sidecarParams.scratchDir).toBe("/data/scratch/s1");+ expect(launch.sidecarParams.scratchDir).toBe(join("/data", "scratch", "s1"));expect(launch.sidecarParams.pluginSkills).toEqual([{ id: "review", name: "Review", description: "Review code" }]);expect(launch.sidecarParams.pluginTools).toEqual([]);expect(launch.sidecarParams.projectMemory).toBe("remember me");