@@ -42,12 +42,12 @@ pub enum DirectoryError {
4242
4343type Result < T , E = DirectoryError > = std:: result:: Result < T , E > ;
4444
45- const WORKSPACE_AGENT_DIR_RELATIVE : & str = ".kiro-cli /cli-agents" ;
46- const GLOBAL_SHADOW_REPO_DIR : & str = ".kiro-cli /cli-checkpoints" ;
47- const GLOBAL_AGENT_DIR_RELATIVE_TO_HOME : & str = ".kiro-cli /cli-agents" ;
48- const WORKSPACE_PROMPTS_DIR_RELATIVE : & str = ".kiro-cli /prompts" ;
49- const GLOBAL_PROMPTS_DIR_RELATIVE_TO_HOME : & str = ".kiro-cli /prompts" ;
50- const CLI_BASH_HISTORY_PATH : & str = ".kiro-cli /.cli_bash_history" ;
45+ const WORKSPACE_AGENT_DIR_RELATIVE : & str = ".amazonq /cli-agents" ;
46+ const GLOBAL_SHADOW_REPO_DIR : & str = ".aws/amazonq /cli-checkpoints" ;
47+ const GLOBAL_AGENT_DIR_RELATIVE_TO_HOME : & str = ".aws/amazonq /cli-agents" ;
48+ const WORKSPACE_PROMPTS_DIR_RELATIVE : & str = ".amazonq /prompts" ;
49+ const GLOBAL_PROMPTS_DIR_RELATIVE_TO_HOME : & str = ".aws/amazonq /prompts" ;
50+ const CLI_BASH_HISTORY_PATH : & str = ".aws/amazonq /.cli_bash_history" ;
5151
5252/// The directory of the users home
5353///
@@ -159,7 +159,7 @@ pub fn example_agent_config(os: &Os) -> Result<PathBuf> {
159159
160160/// Legacy global MCP server config path
161161pub fn chat_legacy_global_mcp_config ( os : & Os ) -> Result < PathBuf > {
162- Ok ( home_dir ( os) ?. join ( ".kiro-cli " ) . join ( "mcp.json" ) )
162+ Ok ( home_dir ( os) ?. join ( ".aws" ) . join ( "amazonq ") . join ( "mcp.json" ) )
163163}
164164
165165pub fn chat_cli_bash_history_path ( os : & Os ) -> Result < PathBuf > {
@@ -169,7 +169,7 @@ pub fn chat_cli_bash_history_path(os: &Os) -> Result<PathBuf> {
169169/// Legacy workspace MCP server config path
170170pub fn chat_legacy_workspace_mcp_config ( os : & Os ) -> Result < PathBuf > {
171171 let cwd = os. env . current_dir ( ) ?;
172- Ok ( cwd. join ( ".kiro-cli " ) . join ( "mcp.json" ) )
172+ Ok ( cwd. join ( ".amazonq " ) . join ( "mcp.json" ) )
173173}
174174
175175/// The directory to the directory containing global agents
@@ -261,25 +261,25 @@ pub fn add_gitignore_globs(builder: &mut GlobSetBuilder, path: &str) -> Result<(
261261/// A workspace directory is a directory where kiro-cli chat is to be launched
262262///
263263/// For example, if the given path is /path/one, then the derived config path would be
264- /// `/path/one/.kiro-cli /agents`
264+ /// `/path/one/.amazonq /agents`
265265pub fn agent_config_dir ( workspace_dir : PathBuf ) -> Result < PathBuf > {
266266 Ok ( workspace_dir. join ( WORKSPACE_AGENT_DIR_RELATIVE ) )
267267}
268268
269269/// The directory to the directory containing config for the `/context` feature in `kiro-cli chat`.
270270pub fn chat_global_context_path ( os : & Os ) -> Result < PathBuf > {
271- Ok ( home_dir ( os) ?. join ( ".kiro-cli " ) . join ( "global_context.json" ) )
271+ Ok ( home_dir ( os) ?. join ( ".aws" ) . join ( "amazonq ") . join ( "global_context.json" ) )
272272}
273273
274274/// The directory to the directory containing config for the `/context` feature in `kiro-cli chat`.
275275#[ allow( dead_code) ]
276276pub fn chat_profiles_dir ( os : & Os ) -> Result < PathBuf > {
277- Ok ( home_dir ( os) ?. join ( ".kiro-cli " ) . join ( "profiles" ) )
277+ Ok ( home_dir ( os) ?. join ( ".aws" ) . join ( "amazonq ") . join ( "profiles" ) )
278278}
279279
280280/// The directory for knowledge base storage
281281pub fn knowledge_bases_dir ( os : & Os ) -> Result < PathBuf > {
282- Ok ( home_dir ( os) ?. join ( ".kiro-cli " ) . join ( "knowledge_bases" ) )
282+ Ok ( home_dir ( os) ?. join ( ".aws" ) . join ( "amazonq ") . join ( "knowledge_bases" ) )
283283}
284284
285285/// The directory for agent-specific knowledge base storage
0 commit comments