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
76 changes: 38 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exclude = ["examples", "tests", "docs", "scripts"]
default-members = ["ras-cli", "ras-daemon"]

[workspace.package]
version = "3.4.0"
version = "3.5.0"
edition = "2024"
rust-version = "1.95.0"
license = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion ras-cdp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ tracing = { workspace = true }
url = { workspace = true }

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] }
url = { workspace = true }
serde_json = { workspace = true }
ras-types = { workspace = true }
ras-events = { workspace = true }
14 changes: 14 additions & 0 deletions ras-cdp/src/domain/repository.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use std::sync::Arc;

use async_trait::async_trait;
use ras_errors::AppError;
use ras_events::EventBus;
use ras_types::{BackendNodeId, ContextId, TargetId};
use serde::{Deserialize, Serialize};
use url::Url;
Expand Down Expand Up @@ -92,4 +95,15 @@ pub trait BrowserPort: Send + Sync + 'static {
"list_targets_in not supported by this BrowserPort".into(),
))
}

/// Forward this target's browser events to `bus` (per-session isolation).
///
/// Default: no-op. Override in adapters that support live CDP streams.
async fn attach_events(
&self,
_target: &TargetId,
_bus: Arc<dyn EventBus>,
) -> Result<(), AppError> {
Ok(())
}
}
Loading