feat(tui): add usage overlay and sidebar for displaying usage statistics and tasks
feat(tui): implement status bar with connection and turn state indicators feat(tui): create workflow panel for agent status and progress visualization feat(web): introduce web frontend interface with static file serving feat(ws): add WebSocket interface for real-time communication and session management
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
//! Pending review queue — tracks files modified by tools that have not
|
||||
//! yet been reviewed.
|
||||
|
||||
use std::collections::VecDeque;
|
||||
|
||||
/// A file mutation awaiting review.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct PendingReview {
|
||||
pub path: String,
|
||||
pub tool: String,
|
||||
pub reason: String,
|
||||
pub content_sha256: String,
|
||||
}
|
||||
|
||||
/// Queue of files modified but not yet reviewed.
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct PendingReviewQueue {
|
||||
entries: VecDeque<PendingReview>,
|
||||
}
|
||||
|
||||
impl PendingReviewQueue {
|
||||
pub fn new() -> Self {
|
||||
PendingReviewQueue {
|
||||
entries: VecDeque::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn push(&mut self, entry: PendingReview) {
|
||||
self.entries.push_back(entry);
|
||||
}
|
||||
|
||||
pub fn pop(&mut self) -> Option<PendingReview> {
|
||||
self.entries.pop_front()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.entries.is_empty()
|
||||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
self.entries.len()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user