Skip to content

Commit 2e59cd2

Browse files
committed
Revert "feat: rebrand paths from .aws/amazonq/ and .amazonq/ to .kiro-cli/"
This reverts commit 44dad82.
1 parent 3abca54 commit 2e59cd2

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

crates/chat-cli/src/cli/agent/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub struct Agent {
165165
#[serde(default)]
166166
#[schemars(schema_with = "tool_settings_schema")]
167167
pub tools_settings: HashMap<ToolSettingTarget, serde_json::Value>,
168-
/// Whether or not to include the legacy ~/.kiro-cli/mcp.json in the agent
168+
/// Whether or not to include the legacy ~/.aws/amazonq/mcp.json in the agent
169169
/// You can reference tools brought in by these servers as just as you would with the servers
170170
/// you configure in the mcpServers field in this config
171171
#[serde(default)]
@@ -197,7 +197,7 @@ impl Default for Agent {
197197
"file://AmazonQ.md",
198198
"file://AGENTS.md",
199199
"file://README.md",
200-
"file://.kiro-cli/rules/**/*.md",
200+
"file://.amazonq/rules/**/*.md",
201201
"file://.kiro/steering/**/*.md",
202202
]
203203
.into_iter()

crates/chat-cli/src/cli/chat/cli/prompts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ impl PromptsArgs {
731731
queue!(
732732
session.stderr,
733733
style::SetAttribute(Attribute::Bold),
734-
style::Print("Global (.kiro-cli/prompts):"),
734+
style::Print("Global (.aws/amazonq/prompts):"),
735735
StyledText::reset_attributes(),
736736
style::Print("\n"),
737737
)?;
@@ -748,7 +748,7 @@ impl PromptsArgs {
748748
queue!(
749749
session.stderr,
750750
style::SetAttribute(Attribute::Bold),
751-
style::Print("Local (.kiro-cli/prompts):"),
751+
style::Print("Local (.amazonq/prompts):"),
752752
StyledText::reset_attributes(),
753753
style::Print("\n"),
754754
)?;

crates/chat-cli/src/cli/chat/prompt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ pub fn rl(
586586
let mut rl = Editor::with_config(config)?;
587587
rl.set_helper(Some(h));
588588

589-
// Load history from ~/.kiro-cli/cli_history
589+
// Load history from ~/.aws/amazonq/cli_history
590590
if let Err(e) = rl.load_history(&rl.helper().unwrap().get_history_path()) {
591591
if !matches!(e, ReadlineError::Io(ref io_err) if io_err.kind() == std::io::ErrorKind::NotFound) {
592592
eprintln!("Warning: Failed to load history: {e}");

crates/chat-cli/src/cli/chat/tool_manager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ pub fn workspace_mcp_config_path(os: &Os) -> eyre::Result<PathBuf> {
113113
if kiro_path.exists() {
114114
Ok(kiro_path)
115115
} else {
116-
// Fallback to .kiro-cli (legacy format)
117-
Ok(current_dir.join(".kiro-cli").join("mcp.json"))
116+
// Fallback to .amazonq (legacy format)
117+
Ok(current_dir.join(".amazonq").join("mcp.json"))
118118
}
119119
}
120120

121121
pub fn global_mcp_config_path(os: &Os) -> eyre::Result<PathBuf> {
122-
Ok(home_dir(os)?.join(".kiro-cli").join("mcp.json"))
122+
Ok(home_dir(os)?.join(".aws").join("amazonq").join("mcp.json"))
123123
}
124124

125125
/// Messages used for communication between the tool initialization thread and the loading

crates/chat-cli/src/cli/chat/tools/delegate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use crate::theme::StyledText;
5050
/// - status: Check agent status (agent optional - defaults to 'all')
5151
/// - list: Show available agents
5252
///
53-
/// Only one task per agent. Files stored in ~/.kiro-cli/.subagents/
53+
/// Only one task per agent. Files stored in ~/.aws/amazonq/.subagents/
5454
///
5555
/// Examples:
5656
/// - Launch: {"operation": "launch", "agent": "rust-agent", "task": "Create snake game"}
@@ -377,7 +377,7 @@ async fn monitor_child_process(child: tokio::process::Child, mut execution: Agen
377377
format!("STDOUT:\n{stdout}\n\nSTDERR:\n{stderr}")
378378
};
379379

380-
// Save to ~/.kiro-cli/.subagents/{agent}.json
380+
// Save to ~/.aws/amazonq/.subagents/{agent}.json
381381
if let Err(e) = save_agent_execution(&os, &execution).await {
382382
eprintln!("Failed to save agent execution: {e}");
383383
}
@@ -388,7 +388,7 @@ async fn monitor_child_process(child: tokio::process::Child, mut execution: Agen
388388
execution.exit_code = Some(-1);
389389
execution.output = format!("Failed to wait for process: {e}");
390390

391-
// Save to ~/.kiro-cli/.subagents/{agent}.json
391+
// Save to ~/.aws/amazonq/.subagents/{agent}.json
392392
if let Err(e) = save_agent_execution(&os, &execution).await {
393393
eprintln!("Failed to save agent execution: {e}");
394394
}
@@ -515,7 +515,7 @@ pub async fn agent_file_path(os: &Os, agent: &str) -> Result<PathBuf> {
515515
}
516516

517517
pub async fn subagents_dir(os: &Os) -> Result<PathBuf> {
518-
let subagents_dir = os.env.current_dir()?.join(".kiro-cli").join(".subagents");
518+
let subagents_dir = os.env.current_dir()?.join(".amazonq").join(".subagents");
519519
if !subagents_dir.exists() {
520520
os.fs.create_dir_all(&subagents_dir).await?;
521521
}

crates/chat-cli/src/cli/chat/tools/todo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub async fn delete_todo(os: &Os, id: &str) -> Result<()> {
166166
/// Returns the local todo list storage directory
167167
pub fn get_todo_list_dir(os: &Os) -> Result<PathBuf> {
168168
let cwd = os.env.current_dir()?;
169-
Ok(cwd.join(".kiro-cli").join("cli-todo-lists"))
169+
Ok(cwd.join(".amazonq").join("cli-todo-lists"))
170170
}
171171

172172
/// Contains the command definitions that allow the model to create,

crates/chat-cli/src/util/directories.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ pub enum DirectoryError {
4242

4343
type 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
161161
pub 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

165165
pub 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
170170
pub 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`
265265
pub 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`.
270270
pub 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)]
276276
pub 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
281281
pub 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

Comments
 (0)