Home
runx-runtime

runx_runtime::config

Modules §

managed_agent_provider §

Canonical managed agent provider identifiers. The wire form on ManagedAgentConfig::provider is an open NonEmptyString; this module is for discoverability and shared default constants.

Structs §

RunxConfigFile §

pub struct runx_runtime::config::RunxConfigFile { /* ... */ }

Trait Implementations §

impl Borrow for RunxConfigFile

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxConfigFile

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for RunxConfigFile

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for RunxConfigFile

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for RunxConfigFile

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxConfigFile

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for RunxConfigFile

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxConfigFile

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxConfigFile

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for RunxConfigFile

Output

impl Equivalent for RunxConfigFile

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for RunxConfigFile

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for RunxConfigFile

clone

fn clone(self: &Self) -> RunxConfigFile

impl Debug for RunxConfigFile

impl Default for RunxConfigFile

default

fn default() -> RunxConfigFile

impl PartialEq for RunxConfigFile

eq

fn eq(self: &Self, other: &RunxConfigFile) -> bool

impl Serialize for RunxConfigFile

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for RunxConfigFile

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl Send for RunxConfigFile

impl Sync for RunxConfigFile

impl Freeze for RunxConfigFile

impl UnsafeUnpin for RunxConfigFile

impl Unpin for RunxConfigFile

impl UnwindSafe for RunxConfigFile

impl RefUnwindSafe for RunxConfigFile

impl DeserializeOwned for RunxConfigFile

impl StructuralPartialEq for RunxConfigFile

impl Eq for RunxConfigFile

RunxAgentConfig §

pub struct runx_runtime::config::RunxAgentConfig { /* ... */ }

Trait Implementations §

impl Borrow for RunxAgentConfig

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxAgentConfig

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for RunxAgentConfig

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for RunxAgentConfig

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for RunxAgentConfig

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxAgentConfig

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for RunxAgentConfig

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxAgentConfig

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxAgentConfig

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for RunxAgentConfig

Output

impl Equivalent for RunxAgentConfig

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for RunxAgentConfig

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for RunxAgentConfig

clone

fn clone(self: &Self) -> RunxAgentConfig

impl Debug for RunxAgentConfig

impl Default for RunxAgentConfig

default

fn default() -> RunxAgentConfig

impl PartialEq for RunxAgentConfig

eq

fn eq(self: &Self, other: &RunxAgentConfig) -> bool

impl Serialize for RunxAgentConfig

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for RunxAgentConfig

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl Send for RunxAgentConfig

impl Sync for RunxAgentConfig

impl Freeze for RunxAgentConfig

impl UnsafeUnpin for RunxAgentConfig

impl Unpin for RunxAgentConfig

impl UnwindSafe for RunxAgentConfig

impl RefUnwindSafe for RunxAgentConfig

impl DeserializeOwned for RunxAgentConfig

impl StructuralPartialEq for RunxAgentConfig

impl Eq for RunxAgentConfig

ManagedAgentConfig §

pub struct runx_runtime::config::ManagedAgentConfig { /* ... */ }

Trait Implementations §

impl Borrow for ManagedAgentConfig

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ManagedAgentConfig

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ManagedAgentConfig

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ManagedAgentConfig

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ManagedAgentConfig

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ManagedAgentConfig

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ManagedAgentConfig

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ManagedAgentConfig

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ManagedAgentConfig

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ManagedAgentConfig

Output

impl Equivalent for ManagedAgentConfig

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for ManagedAgentConfig

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for ManagedAgentConfig

clone

fn clone(self: &Self) -> ManagedAgentConfig

impl Debug for ManagedAgentConfig

impl PartialEq for ManagedAgentConfig

eq

fn eq(self: &Self, other: &ManagedAgentConfig) -> bool

impl Send for ManagedAgentConfig

impl Sync for ManagedAgentConfig

impl Freeze for ManagedAgentConfig

impl UnsafeUnpin for ManagedAgentConfig

impl Unpin for ManagedAgentConfig

impl UnwindSafe for ManagedAgentConfig

impl RefUnwindSafe for ManagedAgentConfig

impl StructuralPartialEq for ManagedAgentConfig

impl Eq for ManagedAgentConfig

ResolvedLocalProfile §

pub struct runx_runtime::config::ResolvedLocalProfile { /* ... */ }

Trait Implementations §

impl Borrow for ResolvedLocalProfile

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ResolvedLocalProfile

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ResolvedLocalProfile

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ResolvedLocalProfile

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ResolvedLocalProfile

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ResolvedLocalProfile

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ResolvedLocalProfile

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ResolvedLocalProfile

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ResolvedLocalProfile

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ResolvedLocalProfile

Output

impl Equivalent for ResolvedLocalProfile

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for ResolvedLocalProfile

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for ResolvedLocalProfile

clone

fn clone(self: &Self) -> ResolvedLocalProfile

impl Debug for ResolvedLocalProfile

impl PartialEq for ResolvedLocalProfile

eq

fn eq(self: &Self, other: &ResolvedLocalProfile) -> bool

impl Send for ResolvedLocalProfile

impl Sync for ResolvedLocalProfile

impl Freeze for ResolvedLocalProfile

impl UnsafeUnpin for ResolvedLocalProfile

impl Unpin for ResolvedLocalProfile

impl UnwindSafe for ResolvedLocalProfile

impl RefUnwindSafe for ResolvedLocalProfile

impl StructuralPartialEq for ResolvedLocalProfile

impl Eq for ResolvedLocalProfile

Enums §

ConfigKey §

pub enum runx_runtime::config::ConfigKey { /* ... */ }

Trait Implementations §

impl Borrow for ConfigKey

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ConfigKey

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ConfigKey

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ConfigKey

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ConfigKey

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ConfigKey

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ConfigKey

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ConfigKey

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ConfigKey

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ConfigKey

Output

impl Equivalent for ConfigKey

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for ConfigKey

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for ConfigKey

clone

fn clone(self: &Self) -> ConfigKey

impl Debug for ConfigKey

impl PartialEq for ConfigKey

eq

fn eq(self: &Self, other: &ConfigKey) -> bool

impl Send for ConfigKey

impl Sync for ConfigKey

impl Freeze for ConfigKey

impl UnsafeUnpin for ConfigKey

impl Unpin for ConfigKey

impl UnwindSafe for ConfigKey

impl RefUnwindSafe for ConfigKey

impl Copy for ConfigKey

impl StructuralPartialEq for ConfigKey

impl Eq for ConfigKey

LocalProfileSource §

pub enum runx_runtime::config::LocalProfileSource { /* ... */ }

Trait Implementations §

impl Borrow for LocalProfileSource

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for LocalProfileSource

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for LocalProfileSource

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for LocalProfileSource

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for LocalProfileSource

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for LocalProfileSource

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for LocalProfileSource

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for LocalProfileSource

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for LocalProfileSource

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for LocalProfileSource

Output

impl Equivalent for LocalProfileSource

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for LocalProfileSource

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for LocalProfileSource

clone

fn clone(self: &Self) -> LocalProfileSource

impl Debug for LocalProfileSource

impl PartialEq for LocalProfileSource

eq

fn eq(self: &Self, other: &LocalProfileSource) -> bool

impl Send for LocalProfileSource

impl Sync for LocalProfileSource

impl Freeze for LocalProfileSource

impl UnsafeUnpin for LocalProfileSource

impl Unpin for LocalProfileSource

impl UnwindSafe for LocalProfileSource

impl RefUnwindSafe for LocalProfileSource

impl StructuralPartialEq for LocalProfileSource

impl Eq for LocalProfileSource

ConfigError §

pub enum runx_runtime::config::ConfigError { /* ... */ }

Trait Implementations §

impl Borrow for ConfigError

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ConfigError

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl Into for ConfigError

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ConfigError

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ConfigError

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ConfigError

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ConfigError

type_id

fn type_id(self: &Self) -> TypeId

impl ToString for ConfigError

to_string

fn to_string(self: &Self) -> String

impl Same for ConfigError

Output

impl Debug for ConfigError

impl Error for ConfigError

impl Display for ConfigError

fmt

fn fmt(self: &Self, __formatter: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result

impl From for ConfigError

from

fn from(source: io::Error) -> Self

impl Send for ConfigError

impl Sync for ConfigError

impl Freeze for ConfigError

impl UnsafeUnpin for ConfigError

impl Unpin for ConfigError

impl UnwindSafe for ConfigError

impl RefUnwindSafe for ConfigError

Functions §

parse_config_key §

fn parse_config_key(key: &str) -> Result<ConfigKey, ConfigError>

resolve_path_from_user_input §

fn resolve_path_from_user_input( user_path: &str, env: &std::collections::BTreeMap<String, String>, cwd: &std::path::Path, prefer_existing: bool ) -> std::path::PathBuf

resolve_runx_global_home_dir §

fn resolve_runx_global_home_dir( env: &std::collections::BTreeMap<String, String>, cwd: &std::path::Path ) -> std::path::PathBuf

resolve_runx_home_dir §

fn resolve_runx_home_dir( env: &std::collections::BTreeMap<String, String>, cwd: &std::path::Path ) -> std::path::PathBuf

load_runx_config_file §

fn load_runx_config_file(config_path: &std::path::Path) -> Result<RunxConfigFile, ConfigError>

write_runx_config_file §

fn write_runx_config_file( config_path: &std::path::Path, config: &RunxConfigFile ) -> Result<(), ConfigError>

update_runx_config_value §

fn update_runx_config_value( config: RunxConfigFile, key: ConfigKey, value: &str, config_dir: &std::path::Path ) -> Result<RunxConfigFile, ConfigError>

lookup_runx_config_value §

fn lookup_runx_config_value(config: &RunxConfigFile, key: ConfigKey) -> Option<String>

mask_runx_config_file §

fn mask_runx_config_file(config: &RunxConfigFile) -> RunxConfigFile

load_local_agent_api_key §

fn load_local_agent_api_key( config_dir: &std::path::Path, key_ref: &str ) -> Result<String, ConfigError>

load_managed_agent_config §

fn load_managed_agent_config( env: &std::collections::BTreeMap<String, String>, cwd: &std::path::Path ) -> Result<Option<ManagedAgentConfig>, ConfigError>

resolve_local_skill_profile §

fn resolve_local_skill_profile( skill_path: &std::path::Path, skill_name: &str ) -> Result<ResolvedLocalProfile, ConfigError>