Download codex-rs/app-server-protocol/src/protocol/v2/review.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 2.25 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol/src/protocol/v2/review.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/app-server-protocol/src/protocol/v2/review.rs
-
curl -L -o review.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol/src/protocol/v2/review.rs
2.25 kB
| use super::Turn; | |
| use super::shared::v2_enum_from_core; | |
| use crate::JsonSchema; | |
| use crate::TS; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| v2_enum_from_core!( | |
| pub enum ReviewDelivery from codex_protocol::protocol::ReviewDelivery { | |
| Inline, Detached | |
| } | |
| ); | |
| pub struct ReviewStartParams { | |
| pub thread_id: String, | |
| pub target: ReviewTarget, | |
| /// Where to run the review: inline (default) on the current thread or | |
| /// detached on a new thread (returned in `reviewThreadId`). | |
| /// Detached delivery is deprecated and emits `deprecationNotice`. | |
| /// Use `thread/start` followed by an inline review for a separate review thread. | |
| pub delivery: Option<ReviewDelivery>, | |
| } | |
| pub struct ReviewStartResponse { | |
| pub turn: Turn, | |
| /// Identifies the thread where the review runs. | |
| /// | |
| /// For inline reviews, this is the original thread id. | |
| /// For detached reviews, this is the id of the new review thread. | |
| pub review_thread_id: String, | |
| } | |
| pub enum ReviewTarget { | |
| /// Review the working tree: staged, unstaged, and untracked files. | |
| UncommittedChanges, | |
| /// Review changes between the current branch and the given base branch. | |
| BaseBranch { branch: String }, | |
| /// Review the changes introduced by a specific commit. | |
| Commit { | |
| sha: String, | |
| /// Optional human-readable label (e.g., commit subject) for UIs. | |
| title: Option<String>, | |
| }, | |
| /// Arbitrary instructions, equivalent to the old free-form prompt. | |
| Custom { instructions: String }, | |
| } | |