|
@@ -35,6 +35,7 @@ export interface ExtensionStateContextType extends ExtensionState {
|
|
|
filePaths: string[]
|
|
filePaths: string[]
|
|
|
openedTabs: Array<{ label: string; isActive: boolean; path?: string }>
|
|
openedTabs: Array<{ label: string; isActive: boolean; path?: string }>
|
|
|
organizationAllowList: OrganizationAllowList
|
|
organizationAllowList: OrganizationAllowList
|
|
|
|
|
+ cloudIsAuthenticated: boolean
|
|
|
maxConcurrentFileReads?: number
|
|
maxConcurrentFileReads?: number
|
|
|
condensingApiConfigId?: string
|
|
condensingApiConfigId?: string
|
|
|
setCondensingApiConfigId: (value: string) => void
|
|
setCondensingApiConfigId: (value: string) => void
|
|
@@ -199,6 +200,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
|
|
terminalCompressProgressBar: true, // Default to compress progress bar output
|
|
terminalCompressProgressBar: true, // Default to compress progress bar output
|
|
|
historyPreviewCollapsed: false, // Initialize the new state (default to expanded)
|
|
historyPreviewCollapsed: false, // Initialize the new state (default to expanded)
|
|
|
cloudUserInfo: null,
|
|
cloudUserInfo: null,
|
|
|
|
|
+ cloudIsAuthenticated: false,
|
|
|
organizationAllowList: ORGANIZATION_ALLOW_ALL,
|
|
organizationAllowList: ORGANIZATION_ALLOW_ALL,
|
|
|
autoCondenseContext: true,
|
|
autoCondenseContext: true,
|
|
|
autoCondenseContextPercent: 100,
|
|
autoCondenseContextPercent: 100,
|
|
@@ -317,6 +319,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
|
|
writeDelayMs: state.writeDelayMs,
|
|
writeDelayMs: state.writeDelayMs,
|
|
|
screenshotQuality: state.screenshotQuality,
|
|
screenshotQuality: state.screenshotQuality,
|
|
|
routerModels: extensionRouterModels,
|
|
routerModels: extensionRouterModels,
|
|
|
|
|
+ cloudIsAuthenticated: state.cloudIsAuthenticated ?? false,
|
|
|
setExperimentEnabled: (id, enabled) =>
|
|
setExperimentEnabled: (id, enabled) =>
|
|
|
setState((prevState) => ({ ...prevState, experiments: { ...prevState.experiments, [id]: enabled } })),
|
|
setState((prevState) => ({ ...prevState, experiments: { ...prevState.experiments, [id]: enabled } })),
|
|
|
setApiConfiguration,
|
|
setApiConfiguration,
|