@@ -35,7 +35,7 @@ import {
3535} from "./persisted.js" ;
3636import {
3737 clearRuntimeAuthProfileStoreSnapshots as clearRuntimeAuthProfileStoreSnapshotsImpl ,
38- getRuntimeAuthProfileStoreSnapshot ,
38+ getRuntimeAuthProfileStoreSnapshot as getRuntimeAuthProfileStoreSnapshotImpl ,
3939 hasRuntimeAuthProfileStoreSnapshot ,
4040 replaceRuntimeAuthProfileStoreSnapshots as replaceRuntimeAuthProfileStoreSnapshotsImpl ,
4141 setRuntimeAuthProfileStoreSnapshot ,
@@ -150,8 +150,8 @@ function resolveRuntimeAuthProfileStore(
150150) : AuthProfileStore | null {
151151 const mainKey = resolveAuthStorePath ( undefined ) ;
152152 const requestedKey = resolveAuthStorePath ( agentDir ) ;
153- const mainStore = getRuntimeAuthProfileStoreSnapshot ( undefined ) ;
154- const requestedStore = getRuntimeAuthProfileStoreSnapshot ( agentDir ) ;
153+ const mainStore = getRuntimeAuthProfileStoreSnapshotImpl ( undefined ) ;
154+ const requestedStore = getRuntimeAuthProfileStoreSnapshotImpl ( agentDir ) ;
155155
156156 if ( ! agentDir || requestedKey === mainKey ) {
157157 if ( ! mainStore ) {
@@ -899,6 +899,8 @@ export function ensureAuthProfileStore(
899899 externalCli ?: ExternalCliAuthDiscovery ;
900900 externalCliProviderIds ?: Iterable < string > ;
901901 externalCliProfileIds ?: Iterable < string > ;
902+ readOnly ?: boolean ;
903+ syncExternalCli ?: boolean ;
902904 } ,
903905) : AuthProfileStore {
904906 const externalCli = resolveExternalCliOverlayOptions ( options ) ;
@@ -921,7 +923,12 @@ export function ensureAuthProfileStore(
921923
922924export function ensureAuthProfileStoreWithoutExternalProfiles (
923925 agentDir ?: string ,
924- options ?: { allowKeychainPrompt ?: boolean ; resolveLegacyOAuthSidecars ?: boolean } ,
926+ options ?: {
927+ allowKeychainPrompt ?: boolean ;
928+ readOnly ?: boolean ;
929+ resolveLegacyOAuthSidecars ?: boolean ;
930+ syncExternalCli ?: boolean ;
931+ } ,
925932) : AuthProfileStore {
926933 const effectiveOptions : LoadAuthProfileStoreOptions = {
927934 ...options ,
@@ -1015,6 +1022,12 @@ export function ensureAuthProfileStoreForLocalUpdate(agentDir?: string): AuthPro
10151022
10161023export { hasAnyAuthProfileStoreSource } from "./source-check.js" ;
10171024
1025+ export function getRuntimeAuthProfileStoreSnapshot (
1026+ agentDir ?: string ,
1027+ ) : AuthProfileStore | undefined {
1028+ return getRuntimeAuthProfileStoreSnapshotImpl ( agentDir ) ;
1029+ }
1030+
10181031export function replaceRuntimeAuthProfileStoreSnapshots (
10191032 entries : Array < { agentDir ?: string ; store : AuthProfileStore } > ,
10201033) : void {
0 commit comments