Vendor Codex and land Phase 1 Epiphany state slice
This commit is contained in:
parent
130e074c69
commit
2042687e30
3959 changed files with 953751 additions and 7 deletions
28
vendor/codex/codex-rs/debug-client/src/state.rs
vendored
Normal file
28
vendor/codex/codex-rs/debug-client/src/state.rs
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use codex_app_server_protocol::RequestId;
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
pub struct State {
|
||||
pub pending: HashMap<RequestId, PendingRequest>,
|
||||
pub thread_id: Option<String>,
|
||||
pub known_threads: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum PendingRequest {
|
||||
Start,
|
||||
Resume,
|
||||
List,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum ReaderEvent {
|
||||
ThreadReady {
|
||||
thread_id: String,
|
||||
},
|
||||
ThreadList {
|
||||
thread_ids: Vec<String>,
|
||||
next_cursor: Option<String>,
|
||||
},
|
||||
}
|
||||
Reference in a new issue