Skip to content
Open
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
245 changes: 162 additions & 83 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ anyhow = "1.0.102"
async-recursion = "1.1.1"
async-trait = "0.1.89"
aws-config = { version = "1.8.12", features = ["behavior-version-latest"], default-features = false }
aws-sdk-bedrockruntime = { version = "1.127.0", features = ["behavior-version-latest"], default-features = false }
aws-sdk-bedrockruntime = { version = "1.132.0", features = ["behavior-version-latest"], default-features = false }
aws-smithy-types = "1.4"
aws-smithy-async = { version = "1.2", features = ["rt-tokio"] }
base64 = "0.22.1"
Expand All @@ -38,8 +38,8 @@ html2md = "0.2.15"
http = "1.2.0"
ignore = "0.4.23"
is_ci = "1.2.0"
indexmap = "2.13.0"
insta = { version = "1.46.3", features = ["json", "yaml"] }
indexmap = "2.14.0"
insta = { version = "1.47.2", features = ["json", "yaml"] }
infer = "0.19.0"
lazy_static = "1.4.0"
machineid-rs = "1.2.4"
Expand Down Expand Up @@ -90,7 +90,7 @@ tracing-appender = "0.2.3"
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "json"] }
url = { version = "2.5.8", features = ["serde"] }
backon = "1.5.2"
uuid = { version = "1.22.0", features = [
uuid = { version = "1.23.2", features = [
"v4",
"fast-rng",
"serde",
Expand Down
2 changes: 1 addition & 1 deletion crates/paws_app/src/operation_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ fn test_net_fetch_truncated() {
let long_content = format!(
"{}{}",
"A".repeat(env.fetch_truncation_limit),
&truncated_content
truncated_content
);
let fixture = ToolOperation::NetFetch {
input: paws_domain::NetFetch {
Expand Down
3 changes: 1 addition & 2 deletions crates/paws_domain/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ impl ContextMessage {
reasoning_details: Option<Vec<ReasoningFull>>,
tool_calls: Option<Vec<ToolCallFull>>,
) -> Self {
let tool_calls =
tool_calls.and_then(|calls| if calls.is_empty() { None } else { Some(calls) });
let tool_calls = tool_calls.filter(|calls| !calls.is_empty());
TextMessage {
role: Role::Assistant,
content: content.to_string(),
Expand Down
2 changes: 1 addition & 1 deletion crates/paws_infra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version = "0.35.0"
features = ["bundled"]

[dev-dependencies]
serial_test = "3.4"
serial_test = "3.5"

[dependencies.anyhow]
workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/paws_infra/src/mcp_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ fn resolve_http_templates(
let template_data = serde_json::json!({"env": env_vars});

// Resolve templates in headers
for (_, value) in http.headers.iter_mut() {
for value in http.headers.values_mut() {
// Try to render the template, but keep original value if it fails
if let Ok(resolved) = handlebars.render_template(value, &template_data) {
*value = resolved;
Expand Down
2 changes: 1 addition & 1 deletion crates/paws_main/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ futures.workspace = true
paws_services.workspace = true

[dev-dependencies]
serial_test = "3.4"
serial_test = "3.5"
strip-ansi-escapes = "0.2"

[dependencies.clap]
Expand Down
2 changes: 1 addition & 1 deletion crates/paws_repo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ paws_services.workspace = true


[dev-dependencies]
serial_test = "3.4"
serial_test = "3.5"

[dependencies.paws_app]
workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/paws_repo/src/app_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl<F: EnvironmentInfra + FileReaderInfra + FileWriterInfra> AppConfigRepositor
}
} else {
// Update all existing provider models
for (_, mut_model_id) in config.model.iter_mut() {
for mut_model_id in config.model.values_mut() {
*mut_model_id = model_id.clone();
}
}
Expand Down
8 changes: 1 addition & 7 deletions crates/paws_services/src/tool_services/fs_patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,7 @@ fn apply_replacement(
content: &str,
) -> Result<String, Error> {
// Handle empty search string - only certain operations make sense here
if let Some(needle) = search.and_then(|needle| {
if needle.is_empty() {
None // Empty search is not valid for matching
} else {
Some(needle)
}
}) {
if let Some(needle) = search.filter(|needle| !needle.is_empty()) {
// Find the exact match to operate on
let patch: Range = Range::find_exact(&haystack, needle.as_str())
.ok_or_else(|| Error::NoMatch(needle.to_string()))?;
Expand Down
Loading