This branch snapshots the in-progress desktop workspace so GitHub-hosted Windows and Linux runners can package the same source tree that already passes local verification on macOS. Constraint: Local Apple Silicon Docker/Wine packaging crashes before Windows artifacts are produced Rejected: Publish from the incomplete base repo state | remote typecheck failed because current source additions were missing Confidence: medium Scope-risk: broad Directive: Treat this branch as a build snapshot only; do not merge it without reviewing the unrelated workspace changes it contains Tested: local typecheck, lint, workspace typecheck, unit tests, integration tests, e2e smoke, macOS signed release upload Not-tested: Native Windows/Linux artifacts before this CI run
25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { normalizeCommandValue } from "@agentcompany/adapter-utils/server-utils";
|
|
import { commandLooksLike } from "@agentcompany/adapter-utils/test-utils";
|
|
|
|
describe("command path normalization", () => {
|
|
it("removes surrounding quotes from absolute executable paths", () => {
|
|
expect(normalizeCommandValue('"C:\\Users\\First Last\\AppData\\Local\\bin\\claude.exe"')).toBe(
|
|
"C:\\Users\\First Last\\AppData\\Local\\bin\\claude.exe",
|
|
);
|
|
expect(normalizeCommandValue("'C:\\Users\\First Last\\AppData\\Local\\bin\\claude.exe'")).toBe(
|
|
"C:\\Users\\First Last\\AppData\\Local\\bin\\claude.exe",
|
|
);
|
|
});
|
|
|
|
it("keeps bare commands unchanged", () => {
|
|
expect(normalizeCommandValue("claude")).toBe("claude");
|
|
expect(normalizeCommandValue("codex")).toBe("codex");
|
|
});
|
|
|
|
it("matches quoted commands against connector executables", () => {
|
|
expect(commandLooksLike('"C:\\Users\\First Last\\AppData\\Local\\bin\\claude.exe"', "claude")).toBe(true);
|
|
expect(commandLooksLike("'C:\\Users\\First Last\\AppData\\Local\\bin\\codex.exe'", "codex")).toBe(true);
|
|
});
|
|
});
|