fix(plugins): stop eager bundled plugin dep install (#69334)

* fix(plugins): stop eager bundled plugin dep install

* test(auto-reply): mock direct auth profile store imports
This commit is contained in:
Peter Steinberger
2026-04-20 14:41:18 +01:00
committed by GitHub
parent f006678f3c
commit 8a4332864b
3 changed files with 39 additions and 9 deletions

View File

@@ -24,6 +24,18 @@ vi.mock("../../agents/auth-profiles.js", () => ({
resolveAuthStorePathForDisplay: () => "/tmp/auth-profiles.json",
}));
vi.mock("../../agents/auth-profiles/store.js", () => ({
ensureAuthProfileStore: () => ({
version: 1,
profiles: authProfilesStoreMock.profiles,
}),
findPersistedAuthProfileCredential: ({ profileId }: { profileId: string }) =>
authProfilesStoreMock.profiles[profileId],
hasAnyAuthProfileStoreSource: () => Object.keys(authProfilesStoreMock.profiles).length > 0,
saveAuthProfileStore: vi.fn(),
updateAuthProfileStoreWithLock: vi.fn(),
}));
import { resolveAgentDir, resolveSessionAgentId } from "../../agents/agent-scope.js";
import {
clearRuntimeAuthProfileStoreSnapshots,