fix: keep wpm parameter

This commit is contained in:
zhom committed 2026-11-26 02:36:58 +04:00
1 parent 86902df9a9
commit 7a25d5123c
2 files changed
+17 -1

No files matched your search

+1 -1
View File
@@ -7102,7 +7102,7 @@ mod tests {
assert!(
type_request.contains(&"locator".to_string()) && type_request.contains(&"text".to_string())
);
for field in ["clear_first", "typos"] {
for field in ["clear_first", "typos", "wpm"] {
assert!(
!type_request.iter().any(|f| f == field),
"{field} must be optional on a type request, required list: {type_request:?}"
+16
View File
@@ -1352,6 +1352,10 @@ pub(crate) struct AgentTypeRequest {
/// Mistype and correct a few characters, as a hand does. Default true.
#[serde(default)]
pub typos: Option<bool>,
/// Words per minute. Accepted for compatibility; it has no effect.
#[serde(default)]
#[allow(dead_code)]
pub wpm: Option<f64>,
}
/// What `type_locator` did.
@@ -6249,6 +6253,10 @@ impl McpServer {
"instant": {
"type": "boolean",
"description": "Paste all text at once instead of human typing. WARNING: only use on targets without bot detection — using this on public websites risks the profile being flagged."
},
"wpm": {
"type": "number",
"description": "Words per minute. Accepted for compatibility; it has no effect."
}
},
"required": ["profile_id", "selector", "text"]
@@ -6403,6 +6411,10 @@ impl McpServer {
"instant": {
"type": "boolean",
"description": "Paste all text at once instead of human typing. WARNING: only use on targets without bot detection."
},
"wpm": {
"type": "number",
"description": "Words per minute. Accepted for compatibility; it has no effect."
}
},
"required": ["profile_id", "text"]
@@ -6821,6 +6833,10 @@ impl McpServer {
"typos": {
"type": "boolean",
"description": "Mistype and correct a few characters, as a hand does (default: true)"
},
"wpm": {
"type": "number",
"description": "Words per minute. Accepted for compatibility; it has no effect."
}
},
"required": ["profile_id", "locator", "text"]