pub enum CortexEvent {
Show 17 variants
MapStarted {
domain: String,
timestamp: String,
},
SitemapDiscovered {
domain: String,
url_count: usize,
elapsed_ms: u64,
},
HeadScanProgress {
domain: String,
scanned: usize,
total: usize,
live: usize,
dead: usize,
},
StructuredDataExtracted {
domain: String,
pages_fetched: usize,
jsonld_found: usize,
opengraph_found: usize,
patterns_used: usize,
elapsed_ms: u64,
},
LayerComplete {
domain: String,
layer: u8,
layer_name: String,
nodes_added: usize,
features_filled: usize,
elapsed_ms: u64,
},
MapComplete {
domain: String,
node_count: usize,
edge_count: usize,
page_types: usize,
total_ms: u64,
browser_contexts_used: usize,
jsonld_coverage: f32,
},
MapFailed {
domain: String,
error: String,
elapsed_ms: u64,
},
ActionStarted {
domain: String,
node: usize,
action_type: String,
execution_path: String,
},
ActionComplete {
domain: String,
node: usize,
action_type: String,
success: bool,
execution_path: String,
elapsed_ms: u64,
},
AuthStarted {
domain: String,
method: String,
},
AuthComplete {
domain: String,
method: String,
success: bool,
},
AuthConsentRequired {
domain: String,
provider: String,
scopes: Vec<String>,
},
QueryExecuted {
domain: String,
query_type: String,
results_count: usize,
elapsed_us: u64,
},
RuntimeStarted {
version: String,
http_port: Option<u16>,
socket_path: String,
},
AgentConnected {
agent_type: String,
agent_name: Option<String>,
},
AgentDisconnected {
agent_type: String,
},
CacheStatus {
maps_cached: usize,
total_nodes: usize,
memory_mb: f32,
},
}Expand description
Every event Cortex emits. Serialized to JSON for SSE, MCP, and socket streaming.
Variants§
MapStarted
A new mapping operation has started.
SitemapDiscovered
Sitemap/robots.txt discovery found URLs.
HeadScanProgress
HEAD scan progress (emitted every ~500 URLs for large scans).
StructuredDataExtracted
Structured data extraction complete for a batch of pages.
Fields
LayerComplete
A mapping layer finished processing.
Fields
MapComplete
Mapping completed successfully.
Fields
MapFailed
Mapping failed with an error.
ActionStarted
An action (add to cart, submit form, etc.) has started.
ActionComplete
An action completed.
Fields
AuthStarted
Authentication flow started.
AuthComplete
Authentication flow completed.
AuthConsentRequired
User consent is required for OAuth/SSO.
QueryExecuted
A query/pathfind operation was executed.
RuntimeStarted
Cortex runtime started.
AgentConnected
An agent client connected.
AgentDisconnected
An agent client disconnected.
CacheStatus
Periodic cache status update.
Trait Implementations§
Source§impl Clone for CortexEvent
impl Clone for CortexEvent
Source§fn clone(&self) -> CortexEvent
fn clone(&self) -> CortexEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CortexEvent
impl Debug for CortexEvent
Source§impl<'de> Deserialize<'de> for CortexEvent
impl<'de> Deserialize<'de> for CortexEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CortexEvent
impl RefUnwindSafe for CortexEvent
impl Send for CortexEvent
impl Sync for CortexEvent
impl Unpin for CortexEvent
impl UnsafeUnpin for CortexEvent
impl UnwindSafe for CortexEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more