@@ -11,7 +11,7 @@ function getGlobalConfigFolderPath() {
1111 return configDir ;
1212}
1313
14- export const DEFFAULT_PROFILE = "default" ;
14+ export const DEFAULT_PROFILE = "default" ;
1515
1616const CONFIG_FILE = "config.json" ;
1717const OLD_CONFIG_FILE = "default.json" ;
@@ -27,7 +27,7 @@ type OldCliConfigFile = z.infer<typeof OldCliConfigFile>;
2727
2828const CliConfigFile = z . object ( {
2929 version : z . literal ( 2 ) ,
30- currentProfile : z . string ( ) . default ( DEFFAULT_PROFILE ) ,
30+ currentProfile : z . string ( ) . default ( DEFAULT_PROFILE ) ,
3131 profiles : z . record ( CliConfigProfileSettings ) ,
3232 settings : z
3333 . object ( {
@@ -55,7 +55,7 @@ function getAuthConfigFileBackupPath() {
5555function getBlankConfig ( ) : CliConfigFile {
5656 return {
5757 version : 2 ,
58- currentProfile : DEFFAULT_PROFILE ,
58+ currentProfile : DEFAULT_PROFILE ,
5959 profiles : { } ,
6060 settings : {
6161 hasSeenMCPInstallPrompt : false ,
@@ -83,7 +83,7 @@ export function readAuthConfigCurrentProfileName(): string {
8383
8484export function writeAuthConfigProfile (
8585 settings : CliConfigProfileSettings ,
86- profile : string = DEFFAULT_PROFILE
86+ profile : string = DEFAULT_PROFILE
8787) {
8888 const config = getConfig ( ) ;
8989
@@ -93,7 +93,7 @@ export function writeAuthConfigProfile(
9393}
9494
9595export function readAuthConfigProfile (
96- profile : string = DEFFAULT_PROFILE
96+ profile : string = DEFAULT_PROFILE
9797) : CliConfigProfileSettings | undefined {
9898 try {
9999 const config = getConfig ( ) ;
@@ -150,13 +150,13 @@ export function writeConfigLastRulesInstallPromptVersion(version: string) {
150150 writeAuthConfigFile ( config ) ;
151151}
152152
153- export function deleteAuthConfigProfile ( profile : string = DEFFAULT_PROFILE ) {
153+ export function deleteAuthConfigProfile ( profile : string = DEFAULT_PROFILE ) {
154154 const config = getConfig ( ) ;
155155
156156 delete config . profiles [ profile ] ;
157157
158158 if ( config . currentProfile === profile ) {
159- config . currentProfile = DEFFAULT_PROFILE ;
159+ config . currentProfile = DEFAULT_PROFILE ;
160160 }
161161
162162 writeAuthConfigFile ( config ) ;
@@ -182,7 +182,7 @@ export function readAuthConfigFile(): CliConfigFile | null {
182182
183183 const newConfigFormat = {
184184 version : 2 ,
185- currentProfile : DEFFAULT_PROFILE ,
185+ currentProfile : DEFAULT_PROFILE ,
186186 profiles : oldConfigFormat ,
187187 } satisfies CliConfigFile ;
188188
0 commit comments