| 117 | /// Where a resolved agent identity came from. |
| 118 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
| 119 | pub enum AgentIdentitySource { |
| 120 | /// The `ATOMIC_AGENT_IDENTITY` environment variable. |
| 121 | EnvVar, |
| 122 | /// The global `agent_identity` setting in `~/.atomic/config.toml`. |
| 123 | GlobalSetting, |
| 124 | /// The active server profile's `agent_identity` binding. |
| 125 | ServerProfile, |
| 126 | } |
| 127 | |
| 128 | impl std::fmt::Display for AgentIdentitySource { |
| 129 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
nothing calls this directly
no outgoing calls
no test coverage detected