@@ -6,7 +6,14 @@ import * as path from "path"
66import { getWorkspacePath } from "../utils/path"
77import { ClineProvider } from "../core/webview/ClineProvider"
88import { openClineInNewTab } from "../activate/registerCommands"
9- import { RooCodeSettings , RooCodeEvents , RooCodeEventName , ProviderSettings , ProviderSettingsEntry } from "../schemas"
9+ import {
10+ RooCodeSettings ,
11+ RooCodeEvents ,
12+ RooCodeEventName ,
13+ ProviderSettings ,
14+ ProviderSettingsEntry ,
15+ isSecretStateKey ,
16+ } from "../schemas"
1017import { IpcOrigin , IpcMessageType , TaskCommandName , TaskEvent } from "../schemas/ipc"
1118
1219import { RooCodeAPI } from "./interface"
@@ -246,8 +253,10 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
246253
247254 // Global Settings Management
248255
249- public getConfiguration ( ) {
250- return this . sidebarProvider . getValues ( )
256+ public getConfiguration ( ) : RooCodeSettings {
257+ return Object . fromEntries (
258+ Object . entries ( this . sidebarProvider . getValues ( ) ) . filter ( ( [ key ] ) => ! isSecretStateKey ( key ) ) ,
259+ )
251260 }
252261
253262 public async setConfiguration ( values : RooCodeSettings ) {
@@ -266,10 +275,6 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
266275 return this . sidebarProvider . getProviderProfileEntry ( name )
267276 }
268277
269- public async getProfile ( name : string ) : Promise < ProviderSettings | undefined > {
270- return this . sidebarProvider . providerSettingsManager . getProfile ( { name } )
271- }
272-
273278 public async createProfile ( name : string , profile ?: ProviderSettings , activate : boolean = true ) {
274279 const entry = this . getProfileEntry ( name )
275280
0 commit comments