Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 39 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions codebase-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The chat implementation includes a robust tool system that allows Amazon Q to in
1. **Available Tools**:
- `fs_read`: Reads files or lists directories (similar to `cat` or `ls`)
- `fs_write`: Creates or modifies files with various operations (create, append, replace)
- `execute_bash`: Executes shell commands in the user's environment
- `execute_shell_commands`: Executes shell commands in the user's environment
- `use_aws`: Makes AWS CLI API calls with specified services and operations

2. **Tool Execution Flow**:
Expand All @@ -68,7 +68,7 @@ The chat implementation includes a robust tool system that allows Amazon Q to in
- The conversation continues with the tool results incorporated

3. **Security Considerations**:
- Tools that modify the system (like `fs_write` and `execute_bash`) require user confirmation
- Tools that modify the system (like `fs_write` and `execute_shell_commands`) require user confirmation
- The `/acceptall` command can toggle automatic acceptance for the session
- Tool responses are limited to prevent excessive output (30KB limit)

Expand Down
3 changes: 3 additions & 0 deletions crates/q_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ clap_complete_fig = "4.4.0"
color-eyre = "0.6.2"
color-print = "0.3.5"
convert_case.workspace = true
console = "0.15.11"
crossterm = { version = "0.28.1", features = ["event-stream"] }
ctrlc = "3.2.5"
dialoguer = { version = "0.11.0", features = ["fuzzy-select"] }
Expand Down Expand Up @@ -62,6 +63,8 @@ indoc.workspace = true
mimalloc.workspace = true
owo-colors = "4.2.0"
parking_lot.workspace = true
portable-pty = "0.9.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a workspace dependency

filedescriptor = "0.8.3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this a workspace dependency and update figterm as well? (figterm already depends on 0.8)

rand.workspace = true
regex.workspace = true
rustyline = { version = "15.0.0", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/q_cli/src/cli/chat/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ mod tests {
async fn test_parse() {
let _ = tracing_subscriber::fmt::try_init();
let tool_use_id = "TEST_ID".to_string();
let tool_name = "execute_bash".to_string();
let tool_name = "execute_shell_commands".to_string();
let tool_args = serde_json::json!({
"command": "echo hello"
})
Expand Down
Loading
Loading