Skip to content
Merged
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
1 change: 0 additions & 1 deletion .github/workflows/agent_engine_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ jobs:
rustup update --no-self-update stable
rustup target add ${{ matrix.target }}
rustup component add rust-src
cargo update --package auto_generate_cdp --precise 0.4.4

- name: setup cross-rs
if: matrix.cross
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/agent_engine_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
rustup update --no-self-update stable
rustup target add ${{ matrix.target }}
rustup component add rust-src
cargo update --package auto_generate_cdp --precise 0.4.4

- name: setup cross-rs
if: matrix.cross
Expand Down
2 changes: 1 addition & 1 deletion refact-agent/engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ futures-util = "0.3"
git2 = "0.19.0"
glob = "0.3.1"
hashbrown = "0.15.2"
headless_chrome = "1.0.15"
headless_chrome = "1.0.16"
home = "0.5"
html2text = "0.12.5"
hyper = { version = "0.14", features = ["server", "stream"] }
Expand Down
4 changes: 3 additions & 1 deletion refact-agent/engine/src/integrations/integr_chrome.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ async fn screenshot_jpeg_base64(
quality: Some(75),
from_surface: Some(true),
capture_beyond_viewport: Some(capture_beyond_viewport),
optimize_for_speed: None
}).map_err(|e| e.to_string())?.data
};

Expand Down Expand Up @@ -535,6 +536,7 @@ fn set_device_metrics_method(
scale: None, screen_width: None, screen_height: None,
position_x: None, position_y: None, dont_set_visible_size: None,
screen_orientation: None, viewport: None, display_feature: None,
device_posture: None,
}
}

Expand Down Expand Up @@ -931,7 +933,7 @@ async fn chrome_command_exec(
let log = {
let tab_lock = tab.lock().await;
match {
tab_lock.headless_tab.call_method(DOMEnable(None)).map_err(|e| e.to_string())?;
tab_lock.headless_tab.call_method(DOMEnable { include_whitespace: None}).map_err(|e| e.to_string())?;
tab_lock.headless_tab.call_method(CSSEnable(None)).map_err(|e| e.to_string())?;
let element = tab_lock.headless_tab.find_element(&args.selector).map_err(|e| e.to_string())?;
let computed_styles = element.get_computed_styles().map_err(|e| e.to_string())?;
Expand Down
Loading