Skip to main content

IdError

Type Alias IdError 

Source
pub type IdError = ProfileIdError;
Expand description

Errors returned by sanitize_agent_id. Wrapped through the caller into ToolInvocationError::ArgumentInvalid (see src/main.rs::shared_plugin_for). Canonical alias for ProfileIdError. Step 2 of the browser-multi-instance migration introduces the instance-namespace-aware name; both refer to the same enum so existing 0.2.x callers compile unchanged.

Aliased Type§

pub enum IdError {
    Empty,
    TooLong(String),
    Invalid(String),
}

Variants§

§

Empty

agent_id was empty or whitespace-only after trimming.

§

TooLong(String)

agent_id exceeds the [MAX_AGENT_ID_LEN] character cap.

§

Invalid(String)

agent_id contains a character outside the allowed set. Path traversal (.., /), control bytes, and Unicode punctuation are all rejected here.