Computer use CLI for AI agents
Rust accessibilityaccessibility-apiai-agentsautomationclicomputer-usecomputer-use-agentcomputer-use-agentsdesktop-automationmacosmcprust
fix: reject percent-encoded NUL in file URLs; extend gitleaks Windows path allowlist
detail-app[bot]ec85b3047ffe
diff --git a/.gitleaks.toml b/.gitleaks.tomlindex d28d7a86f..ede58d512 100644--- a/.gitleaks.toml+++ b/.gitleaks.toml@@ -71,7 +71,7 @@ regexes = [# Generic doc examples that teach path shape rather than expose one.'''(?i)/Users/(name|user|username|you|youruser|me|someone)''','''(?i)/home/(name|user|username|you|youruser|runner|me|someone|example-user)''',- '''(?i)[A-Za-z]:\\Users\\(name|user|username|you|youruser|runner)''',+ '''(?i)[A-Za-z]:\\Users\\(name|user|username|you|youruser|runner|me|someone)''',# CI runner home paths are not operator identity.'''/Users/runner''','''/home/runner''',diff --git a/crates/macos/src/input/clipboard_file_urls.rs b/crates/macos/src/input/clipboard_file_urls.rsindex c9f81b015..22d85ca30 100644--- a/crates/macos/src/input/clipboard_file_urls.rs+++ b/crates/macos/src/input/clipboard_file_urls.rs@@ -148,7 +148,7 @@ unsafe fn read_file_urls_inner(pb: Id, deadline: Deadline) -> Result<Vec<String>}pub(crate) fn file_url_to_path(url_string: &str) -> Option<String> {- if !url_string.starts_with("file:///") || url_string.contains('\0') {+ if !url_string.starts_with("file:///") || url_string.contains('\0') || url_string.contains("%00") {return None;}let value = CFString::new(url_string);