pub struct ReviewSession {
pub session_id: Uuid,
pub draft_package_id: Uuid,
pub reviewer: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub state: ReviewState,
pub artifact_reviews: HashMap<String, ArtifactReview>,
pub session_notes: Vec<SessionNote>,
pub current_focus: Option<String>,
}Expand description
A persistent review session for a DraftPackage.
Tracks the reviewer’s progress through a draft across multiple CLI invocations, including comments, dispositions, and current focus.
Fields§
§session_id: UuidUnique session identifier.
draft_package_id: UuidThe DraftPackage being reviewed.
reviewer: StringReviewer identity.
created_at: DateTime<Utc>Session creation time.
updated_at: DateTime<Utc>Last activity time.
state: ReviewStateCurrent review state.
artifact_reviews: HashMap<String, ArtifactReview>Per-artifact review data (keyed by resource_uri).
session_notes: Vec<SessionNote>Session-level notes (not tied to specific artifacts).
current_focus: Option<String>Current focus: which artifact URI the reviewer is examining. Used by “ta draft review next” to resume from where they left off.
Implementations§
Source§impl ReviewSession
impl ReviewSession
Sourcepub fn new(draft_package_id: Uuid, reviewer: String) -> Self
pub fn new(draft_package_id: Uuid, reviewer: String) -> Self
Create a new review session for a draft package.
Sourcepub fn add_comment(
&mut self,
artifact_uri: &str,
commenter: &str,
text: &str,
) -> &CommentThread
pub fn add_comment( &mut self, artifact_uri: &str, commenter: &str, text: &str, ) -> &CommentThread
Add a comment to an artifact.
Sourcepub fn set_disposition(
&mut self,
artifact_uri: &str,
disposition: ArtifactDisposition,
)
pub fn set_disposition( &mut self, artifact_uri: &str, disposition: ArtifactDisposition, )
Set the disposition for an artifact.
Sourcepub fn add_session_note(&mut self, text: &str)
pub fn add_session_note(&mut self, text: &str)
Add a session-level note (not tied to a specific artifact).
Sourcepub fn get_disposition(&self, artifact_uri: &str) -> Option<ArtifactDisposition>
pub fn get_disposition(&self, artifact_uri: &str) -> Option<ArtifactDisposition>
Get the current disposition for an artifact (None if not yet reviewed).
Sourcepub fn artifacts_with_disposition(
&self,
disposition: &ArtifactDisposition,
) -> Vec<&ArtifactReview>
pub fn artifacts_with_disposition( &self, disposition: &ArtifactDisposition, ) -> Vec<&ArtifactReview>
Get all artifacts with a specific disposition.
Sourcepub fn disposition_counts(&self) -> DispositionCounts
pub fn disposition_counts(&self) -> DispositionCounts
Count artifacts by disposition.
Sourcepub fn finish(&mut self) -> DispositionCounts
pub fn finish(&mut self) -> DispositionCounts
Finish the review session and return final disposition summary.
Sourcepub fn has_unresolved_discuss(&self) -> bool
pub fn has_unresolved_discuss(&self) -> bool
Check if the session has any unresolved discuss items.
Trait Implementations§
Source§impl Clone for ReviewSession
impl Clone for ReviewSession
Source§fn clone(&self) -> ReviewSession
fn clone(&self) -> ReviewSession
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more