mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 13:03:46 +00:00
refactor: rename sandbox-daemon to sandbox-agent
This commit is contained in:
parent
f92ecd9b9a
commit
a49ea094f3
41 changed files with 808 additions and 134 deletions
|
|
@ -1,7 +1,9 @@
|
|||
[package]
|
||||
name = "sandbox-daemon-error"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
name = "sandbox-agent-error"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
authors.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
|
|
|||
|
|
@ -24,18 +24,18 @@ pub enum ErrorType {
|
|||
impl ErrorType {
|
||||
pub fn as_urn(&self) -> &'static str {
|
||||
match self {
|
||||
Self::InvalidRequest => "urn:sandbox-daemon:error:invalid_request",
|
||||
Self::UnsupportedAgent => "urn:sandbox-daemon:error:unsupported_agent",
|
||||
Self::AgentNotInstalled => "urn:sandbox-daemon:error:agent_not_installed",
|
||||
Self::InstallFailed => "urn:sandbox-daemon:error:install_failed",
|
||||
Self::AgentProcessExited => "urn:sandbox-daemon:error:agent_process_exited",
|
||||
Self::TokenInvalid => "urn:sandbox-daemon:error:token_invalid",
|
||||
Self::PermissionDenied => "urn:sandbox-daemon:error:permission_denied",
|
||||
Self::SessionNotFound => "urn:sandbox-daemon:error:session_not_found",
|
||||
Self::SessionAlreadyExists => "urn:sandbox-daemon:error:session_already_exists",
|
||||
Self::ModeNotSupported => "urn:sandbox-daemon:error:mode_not_supported",
|
||||
Self::StreamError => "urn:sandbox-daemon:error:stream_error",
|
||||
Self::Timeout => "urn:sandbox-daemon:error:timeout",
|
||||
Self::InvalidRequest => "urn:sandbox-agent:error:invalid_request",
|
||||
Self::UnsupportedAgent => "urn:sandbox-agent:error:unsupported_agent",
|
||||
Self::AgentNotInstalled => "urn:sandbox-agent:error:agent_not_installed",
|
||||
Self::InstallFailed => "urn:sandbox-agent:error:install_failed",
|
||||
Self::AgentProcessExited => "urn:sandbox-agent:error:agent_process_exited",
|
||||
Self::TokenInvalid => "urn:sandbox-agent:error:token_invalid",
|
||||
Self::PermissionDenied => "urn:sandbox-agent:error:permission_denied",
|
||||
Self::SessionNotFound => "urn:sandbox-agent:error:session_not_found",
|
||||
Self::SessionAlreadyExists => "urn:sandbox-agent:error:session_already_exists",
|
||||
Self::ModeNotSupported => "urn:sandbox-agent:error:mode_not_supported",
|
||||
Self::StreamError => "urn:sandbox-agent:error:stream_error",
|
||||
Self::Timeout => "urn:sandbox-agent:error:timeout",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue