Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| API and MCP server, Rust identity service, registration, site redesign | 1 | //! Types and service interfaces shared by every g1t service. |
| 2 | //! | |
| 3 | //! Each service has a module here holding the data it exchanges and the | |
| 4 | //! arguments of each of its methods. Services and their callers depend on | |
| 5 | //! this crate, never on each other's code. | |
| 6 | ||
| Rust repos service with shipping; pull requests kept in the model | 7 | pub mod events; |
| API and MCP server, Rust identity service, registration, site redesign | 8 | pub mod identity; |
| 9 | mod ids; | |
| 10 | mod names; | |
| 11 | mod outcome; | |
| Rust repos service with shipping; pull requests kept in the model | 12 | pub mod repos; |
| API and MCP server, Rust identity service, registration, site redesign | 13 | |
| 14 | pub use ids::new_id; | |
| 15 | pub use names::{is_valid_namespace, is_valid_repo_name}; | |
| 16 | pub use outcome::{Failure, FailureCode, Outcome}; | |
| 17 | ||
| 18 | use serde::{Deserialize, Serialize}; | |
| 19 | ||
| 20 | #[derive(Clone, Debug, Serialize, Deserialize)] | |
| 21 | pub struct User { | |
| 22 | pub id: String, | |
| 23 | pub username: String, | |
| Email verification, password reset, and Git for AI scale positioning | 24 | /// Whether the account's email address has been confirmed. Unverified |
| 25 | /// accounts can sign in but cannot create or change anything. | |
| 26 | #[serde(default)] | |
| 27 | pub verified: bool, | |
| API and MCP server, Rust identity service, registration, site redesign | 28 | } |
| 29 | ||
| 30 | /// Who is asking. Every read and write in every service takes one. | |
| 31 | pub type Viewer = Option<User>; |