@@ -133,9 +133,7 @@ pub fn config_dir() -> Result<PathBuf> {
133133/// This should be removed at some point in the future, once all our users have migrated
134134/// - MacOS: `$HOME/Library/Application Support/codewhisperer`
135135pub fn old_fig_data_dir ( ) -> Result < PathBuf > {
136- Ok ( dirs:: data_local_dir ( )
137- . ok_or ( DirectoryError :: NoHomeDirectory ) ?
138- . join ( "codewhisperer" ) )
136+ Ok ( dirs:: data_local_dir ( ) . ok_or ( DirectoryError :: NoHomeDirectory ) ?. join ( "q" ) )
139137}
140138
141139/// The q data directory
@@ -448,11 +446,11 @@ pub fn bundle_metadata_path<Ctx: EnvProvider + PlatformProvider>(ctx: &Ctx) -> R
448446
449447/// The path to the fig settings file
450448///
451- /// - Linux: `$HOME/.local/share/{data_dir} /settings.json`
452- /// - MacOS: `$HOME/Library/Application Support/{data_dir} /settings.json`
453- /// - Windows: `%LOCALAPPDATA%\{data_dir}\ settings.json`
449+ /// - Linux: `$HOME/.aws/kiro-cli /settings.json`
450+ /// - MacOS: `$HOME/.aws/kiro-cli /settings.json`
451+ /// - Windows: `$HOME/.aws/kiro-cli/ settings.json`
454452pub fn settings_path ( ) -> Result < PathBuf > {
455- Ok ( fig_data_dir ( ) ?. join ( "settings.json" ) )
453+ Ok ( home_dir ( ) ?. join ( ".aws" ) . join ( "kiro-cli" ) . join ( "settings.json" ) )
456454}
457455
458456/// The path to the lock file used to indicate that the app is updating
@@ -691,7 +689,7 @@ mod tests {
691689 #[ test]
692690 fn snapshot_fig_data_dir ( ) {
693691 linux ! ( fig_data_dir( ) , @"$HOME/.local/share/amazon-q" ) ;
694- macos ! ( fig_data_dir( ) , @"$HOME/Library/Application Support/amazon-q " ) ;
692+ macos ! ( fig_data_dir( ) , @"$HOME/Library/Application Support/kiro-cli " ) ;
695693 windows ! ( fig_data_dir( ) , @r"C:\Users\$USER\AppData\Local\AmazonQ" ) ;
696694 }
697695
@@ -747,15 +745,15 @@ mod tests {
747745 #[ test]
748746 fn snapshot_settings_path ( ) {
749747 linux ! ( settings_path( ) , @"$HOME/.local/share/amazon-q/settings.json" ) ;
750- macos ! ( settings_path( ) , @"$HOME/Library/Application Support/amazon-q /settings.json" ) ;
748+ macos ! ( settings_path( ) , @"$HOME/.aws/kiro-cli /settings.json" ) ;
751749 windows ! ( settings_path( ) , @r"C:\Users\$USER\AppData\Local\AmazonQ\settings.json" ) ;
752750 }
753751
754752 #[ test]
755753 fn snapshot_update_lock_path ( ) {
756754 let ctx = Context :: new ( ) ;
757755 linux ! ( update_lock_path( & ctx) , @"$HOME/.local/share/amazon-q/update.lock" ) ;
758- macos ! ( update_lock_path( & ctx) , @"$HOME/Library/Application Support/amazon-q /update.lock" ) ;
756+ macos ! ( update_lock_path( & ctx) , @"$HOME/Library/Application Support/kiro-cli /update.lock" ) ;
759757 windows ! ( update_lock_path( & ctx) , @r"C:\Users\$USER\AppData\Local\AmazonQ\update.lock" ) ;
760758 }
761759
0 commit comments