
























@@ -7,6 +7,7 @@ const OS_SCRIPT_PATHS = [
77"scripts/e2e/parallels-windows-smoke.sh",
88];
99const NPM_UPDATE_SCRIPT_PATH = "scripts/e2e/parallels-npm-update-smoke.sh";
10+const PARALLELS_PACKAGE_COMMON_PATH = "scripts/e2e/lib/parallels-package-common.sh";
10111112describe("Parallels smoke model selection", () => {
1213it("keeps the OpenAI smoke lane on the stable direct API model by default", () => {
@@ -22,12 +23,18 @@ describe("Parallels smoke model selection", () => {
2223});
23242425it("seeds agent workspace state before OS smoke agent turns", () => {
26+const seedHelper = readFileSync(PARALLELS_PACKAGE_COMMON_PATH, "utf8");
27+expect(seedHelper, PARALLELS_PACKAGE_COMMON_PATH).toContain("workspace-state.json");
28+expect(seedHelper, PARALLELS_PACKAGE_COMMON_PATH).toContain("IDENTITY.md");
29+expect(seedHelper, PARALLELS_PACKAGE_COMMON_PATH).toContain("BOOTSTRAP.md");
30+2531for (const scriptPath of OS_SCRIPT_PATHS) {
2632const script = readFileSync(scriptPath, "utf8");
33+const expectedSeedHelper = scriptPath.includes("windows")
34+ ? "parallels_powershell_seed_workspace_snippet"
35+ : "parallels_bash_seed_workspace_snippet";
273628-expect(script, scriptPath).toContain("workspace-state.json");
29-expect(script, scriptPath).toContain("IDENTITY.md");
30-expect(script, scriptPath).toContain("BOOTSTRAP.md");
37+expect(script, scriptPath).toContain(expectedSeedHelper);
3138expect(script, scriptPath).toMatch(/--session-id\s+['"]?parallels-/);
3239expect(script, scriptPath).toContain("agents.defaults.skipBootstrap true --strict-json");
3340}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。