Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
312bb0d65b | ||
|
|
cff003c333 | ||
|
|
f2b0c2ea9b | ||
|
|
ea58bce19e |
Generated
+1
-1
@@ -45,7 +45,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "agent-browser-stealth"
|
name = "agent-browser-stealth"
|
||||||
version = "0.27.0-fork.21"
|
version = "0.27.0-fork.23"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes-gcm",
|
"aes-gcm",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "agent-browser-stealth"
|
name = "agent-browser-stealth"
|
||||||
version = "0.27.0-fork.21"
|
version = "0.27.0-fork.23"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Fast browser automation CLI for AI agents"
|
description = "Fast browser automation CLI for AI agents"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
|
|||||||
+8
-1
@@ -658,8 +658,15 @@ fn main() {
|
|||||||
if clean.get(1).map(|s| s.as_str()) == Some("connect") {
|
if clean.get(1).map(|s| s.as_str()) == Some("connect") {
|
||||||
match connect::relay_url() {
|
match connect::relay_url() {
|
||||||
Some(url) => {
|
Some(url) => {
|
||||||
|
// The connect path reads `flags.cdp` (parsed from the original
|
||||||
|
// argv, which was `extension connect` → None), NOT `clean`.
|
||||||
|
// Without this the relay URL is dropped and we fall through to
|
||||||
|
// auto-connect, grabbing some other Chrome (stale :9222) or
|
||||||
|
// popping the remote-debug prompt. Point the daemon at the
|
||||||
|
// relay explicitly.
|
||||||
|
flags.cdp = Some(url.clone());
|
||||||
|
flags.auto_connect = false;
|
||||||
clean = vec!["connect".to_string(), url];
|
clean = vec!["connect".to_string(), url];
|
||||||
// fall through to the normal connect handling below
|
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
|
|||||||
@@ -106,7 +106,13 @@ pub struct TargetInfo {
|
|||||||
pub target_id: String,
|
pub target_id: String,
|
||||||
#[serde(rename = "type")]
|
#[serde(rename = "type")]
|
||||||
pub target_type: String,
|
pub target_type: String,
|
||||||
|
// Tolerate minimal targetInfo: the ab-connect relay's synthesized
|
||||||
|
// Target.attachedToTarget (re-announce path) omits title/url, and real CDP
|
||||||
|
// occasionally omits them too. Default to empty rather than fail the whole
|
||||||
|
// Target.getTargets deserialize.
|
||||||
|
#[serde(default)]
|
||||||
pub title: String,
|
pub title: String,
|
||||||
|
#[serde(default)]
|
||||||
pub url: String,
|
pub url: String,
|
||||||
pub attached: Option<bool>,
|
pub attached: Option<bool>,
|
||||||
pub browser_context_id: Option<String>,
|
pub browser_context_id: Option<String>,
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "agent-browser-stealth",
|
"name": "agent-browser-stealth",
|
||||||
"version": "0.27.0-fork.21",
|
"version": "0.27.0-fork.23",
|
||||||
"description": "Browser automation CLI for AI agents \u2014 stealth fork with anti-detection",
|
"description": "Browser automation CLI for AI agents \u2014 stealth fork with anti-detection",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"packageManager": "pnpm@11.1.3",
|
"packageManager": "pnpm@11.1.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user