Skip to content

Commit bd5bf3a

Browse files
committed
Bump version to 0.24.22
1 parent e4ee4f8 commit bd5bf3a

File tree

17 files changed

+50
-38
lines changed

17 files changed

+50
-38
lines changed

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ members = [
1313

1414
# Shared metadata for workspace members
1515
[workspace.package]
16-
version = "0.24.21"
16+
version = "0.24.22"
1717
edition = "2021" # From your original Cargo.toml
1818
license-file = "LICENSE"
1919

2020
# Centralized dependency definitions
2121
[workspace.dependencies]
2222
# Terminator Core library itself (for other members to depend on)
23-
terminator = { version = "0.24.21", path = "./crates/terminator", package = "terminator-rs" }
24-
terminator-computer-use = { version = "0.24.21", path = "./crates/terminator-computer-use" }
23+
terminator = { version = "0.24.22", path = "./crates/terminator", package = "terminator-rs" }
24+
terminator-computer-use = { version = "0.24.22", path = "./crates/terminator-computer-use" }
2525

2626
# Common dependencies from your original Cargo.toml
2727
serde = { version = "1.0.219", features = ["derive"] }

crates/terminator-cli/npm/win32-arm64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"type": "git",
1818
"url": "https://github.com/mediar-ai/terminator"
1919
},
20-
"version": "0.24.21"
20+
"version": "0.24.22"
2121
}

crates/terminator-cli/npm/win32-x64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"type": "git",
1818
"url": "https://github.com/mediar-ai/terminator"
1919
},
20-
"version": "0.24.21"
20+
"version": "0.24.22"
2121
}

crates/terminator-cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
],
1313
"name": "@mediar-ai/cli",
1414
"optionalDependencies": {
15-
"@mediar-ai/cli-win32-arm64-msvc": "0.24.21",
16-
"@mediar-ai/cli-win32-x64-msvc": "0.24.21"
15+
"@mediar-ai/cli-win32-arm64-msvc": "0.24.22",
16+
"@mediar-ai/cli-win32-x64-msvc": "0.24.22"
1717
},
1818
"repository": {
1919
"type": "git",
@@ -24,5 +24,5 @@
2424
"build:debug": "node ./utils/build-cli.js --debug",
2525
"sync-version": "node ./utils/sync-version.js"
2626
},
27-
"version": "0.24.21"
27+
"version": "0.24.22"
2828
}

crates/terminator-cli/src/main.rs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,8 @@ fn generate_snippet(args: McpSnippetArgs) -> Result<()> {
11161116
// For run_command with script_file, read the file content and inline it
11171117
if args.tool == "run_command" {
11181118
// Clone the script_file value to avoid borrow issues
1119-
let script_file_opt = args_value.get("script_file")
1119+
let script_file_opt = args_value
1120+
.get("script_file")
11201121
.and_then(|v| v.as_str())
11211122
.filter(|s| !s.is_empty())
11221123
.map(|s| s.to_string());
@@ -1137,20 +1138,31 @@ fn generate_snippet(args: McpSnippetArgs) -> Result<()> {
11371138

11381139
// Read the script file content
11391140
if script_path.exists() {
1140-
let content = std::fs::read_to_string(&script_path)
1141-
.with_context(|| format!("Failed to read script file: {}", script_path.display()))?;
1141+
let content = std::fs::read_to_string(&script_path).with_context(|| {
1142+
format!("Failed to read script file: {}", script_path.display())
1143+
})?;
11421144
let content_len = content.len();
11431145

11441146
// Replace script_file with run containing the file content
11451147
if let Some(obj) = args_value.as_object_mut() {
11461148
obj.remove("script_file");
11471149
obj.insert("run".to_string(), serde_json::Value::String(content));
11481150
// Add a marker so the snippet generator knows this was inlined
1149-
obj.insert("_inlined_from".to_string(), serde_json::Value::String(script_file.clone()));
1151+
obj.insert(
1152+
"_inlined_from".to_string(),
1153+
serde_json::Value::String(script_file.clone()),
1154+
);
11501155
}
1151-
eprintln!("[snippet] Inlined script_file: {} ({} bytes)", script_file, content_len);
1156+
eprintln!(
1157+
"[snippet] Inlined script_file: {} ({} bytes)",
1158+
script_file, content_len
1159+
);
11521160
} else {
1153-
eprintln!("[snippet] Warning: script_file not found: {} (tried: {})", script_file, script_path.display());
1161+
eprintln!(
1162+
"[snippet] Warning: script_file not found: {} (tried: {})",
1163+
script_file,
1164+
script_path.display()
1165+
);
11541166
}
11551167
}
11561168
}

crates/terminator-mcp-agent/npm/win32-arm64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"type": "git",
1818
"url": "https://github.com/mediar-ai/terminator"
1919
},
20-
"version": "0.24.21"
20+
"version": "0.24.22"
2121
}

crates/terminator-mcp-agent/npm/win32-x64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"type": "git",
1818
"url": "https://github.com/mediar-ai/terminator"
1919
},
20-
"version": "0.24.21"
20+
"version": "0.24.22"
2121
}

crates/terminator-mcp-agent/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
],
1818
"name": "terminator-mcp-agent",
1919
"optionalDependencies": {
20-
"terminator-mcp-win32-arm64-msvc": "0.24.21",
21-
"terminator-mcp-win32-x64-msvc": "0.24.21"
20+
"terminator-mcp-win32-arm64-msvc": "0.24.22",
21+
"terminator-mcp-win32-x64-msvc": "0.24.22"
2222
},
2323
"repository": {
2424
"type": "git",
@@ -31,5 +31,5 @@
3131
"sync-version": "node ./utils/sync-version.js",
3232
"update-badges": "node ./utils/update-badges.js"
3333
},
34-
"version": "0.24.21"
34+
"version": "0.24.22"
3535
}

crates/terminator-mcp-agent/src/sentry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ mod with_sentry {
9292
// - oss = Open source users running terminator directly
9393
// - backend-vm = Azure Windows VMs (Terraform/Packer deployed)
9494
// - desktop-client = User's local machine (mediar-app)
95-
let deployment_type = std::env::var("SENTRY_DEPLOYMENT_TYPE")
96-
.unwrap_or_else(|_| "oss".to_string());
95+
let deployment_type =
96+
std::env::var("SENTRY_DEPLOYMENT_TYPE").unwrap_or_else(|_| "oss".to_string());
9797
scope.set_tag("deployment_type", deployment_type);
9898

9999
// Add Azure VM context (only present on backend VMs)

0 commit comments

Comments
 (0)