mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:00:44 +00:00
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:
committed by
GitHub
parent
f006678f3c
commit
8a4332864b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user