Merged via squash. Prepared head SHA: 54b1513c78613bddd8cae16ab2d617788a0dacb6 Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com> Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com> Reviewed-by: @obviyus
35 lines
976 B
TypeScript
35 lines
976 B
TypeScript
import { vi } from "vitest";
|
|
import {
|
|
makeIsolatedAgentJobFixture,
|
|
makeIsolatedAgentParamsFixture,
|
|
} from "./isolated-agent/job-fixtures.js";
|
|
|
|
vi.mock("../agents/pi-embedded.js", () => ({
|
|
abortEmbeddedPiRun: vi.fn().mockReturnValue(false),
|
|
runEmbeddedPiAgent: vi.fn(),
|
|
resolveEmbeddedSessionLane: (key: string) => `session:${key.trim() || "main"}`,
|
|
}));
|
|
|
|
vi.mock("../agents/model-catalog.js", () => ({
|
|
loadModelCatalog: vi.fn(),
|
|
}));
|
|
|
|
vi.mock("../agents/model-selection.js", async (importOriginal) => {
|
|
const actual = await importOriginal<typeof import("../agents/model-selection.js")>();
|
|
return {
|
|
...actual,
|
|
isCliProvider: vi.fn(() => false),
|
|
};
|
|
});
|
|
|
|
vi.mock("../agents/subagent-announce.js", () => ({
|
|
runSubagentAnnounceFlow: vi.fn(),
|
|
}));
|
|
|
|
vi.mock("../gateway/call.js", () => ({
|
|
callGateway: vi.fn(),
|
|
}));
|
|
|
|
export const makeIsolatedAgentJob = makeIsolatedAgentJobFixture;
|
|
export const makeIsolatedAgentParams = makeIsolatedAgentParamsFixture;
|