
























@@ -1,5 +1,6 @@
11import fs from "node:fs";
22import { isDeepStrictEqual } from "node:util";
3+import type { OpenClawConfig } from "../../config/types.openclaw.js";
34import { withFileLock } from "../../infra/file-lock.js";
45import { saveJsonFile } from "../../infra/json-file.js";
56import {
@@ -36,6 +37,7 @@ import type { AuthProfileStore } from "./types.js";
36373738type LoadAuthProfileStoreOptions = {
3839allowKeychainPrompt?: boolean;
40+config?: OpenClawConfig;
3941readOnly?: boolean;
4042syncExternalCli?: boolean;
4143externalCliProviderIds?: Iterable<string>;
@@ -359,6 +361,7 @@ export function loadAuthProfileStoreForRuntime(
359361return overlayExternalAuthProfiles(store, {
360362 agentDir,
361363allowKeychainPrompt: options?.allowKeychainPrompt,
364+config: options?.config,
362365externalCliProviderIds: options?.externalCliProviderIds,
363366externalCliProfileIds: options?.externalCliProfileIds,
364367});
@@ -368,6 +371,7 @@ export function loadAuthProfileStoreForRuntime(
368371return overlayExternalAuthProfiles(mergeAuthProfileStores(mainStore, store), {
369372 agentDir,
370373allowKeychainPrompt: options?.allowKeychainPrompt,
374+config: options?.config,
371375externalCliProviderIds: options?.externalCliProviderIds,
372376externalCliProfileIds: options?.externalCliProfileIds,
373377});
@@ -394,6 +398,7 @@ export function ensureAuthProfileStore(
394398agentDir?: string,
395399options?: {
396400allowKeychainPrompt?: boolean;
401+config?: OpenClawConfig;
397402externalCliProviderIds?: Iterable<string>;
398403externalCliProfileIds?: Iterable<string>;
399404},
@@ -403,6 +408,7 @@ export function ensureAuthProfileStore(
403408{
404409 agentDir,
405410allowKeychainPrompt: options?.allowKeychainPrompt,
411+config: options?.config,
406412externalCliProviderIds: options?.externalCliProviderIds,
407413externalCliProfileIds: options?.externalCliProfileIds,
408414},
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。