Merge nucleic/hazy-cedar-badger-mzt0 into dev
This commit is contained in:
@@ -104,8 +104,13 @@ enum SandboxToolDisplay {
|
||||
return [verb, point].compactMap { $0 }.joined(separator: " ")
|
||||
case "type":
|
||||
return string(step, "text").map { "\(verb) “\(clip(singleLine($0)))”" } ?? verb
|
||||
case "key", "launch_app", "open_browser":
|
||||
case "key", "launch_app":
|
||||
return string(step, "text").map { "\(verb) \(clip($0))" } ?? verb
|
||||
// The starting page is the informative half of an `open_browser` with a `url` — "open chrome"
|
||||
// says far less than the address it lands on.
|
||||
case "open_browser":
|
||||
let target = string(step, "url") ?? string(step, "text")
|
||||
return target.map { "\(verb) \(clip($0))" } ?? verb
|
||||
case "scroll":
|
||||
let amount = step["scroll_amount"]?.intValue.map { String($0) }
|
||||
return [verb, string(step, "scroll_direction"), amount].compactMap { $0 }
|
||||
|
||||
Reference in New Issue
Block a user