Add Epiphany runtime job bindings
This commit is contained in:
parent
3ac09f9d1b
commit
2c067eca30
35 changed files with 1822 additions and 56 deletions
|
|
@ -1820,6 +1820,7 @@ mod tests {
|
|||
scope: "/workspace".to_string(),
|
||||
owner_role: "epiphany-core".to_string(),
|
||||
status: v2::ThreadEpiphanyJobStatus::Needed,
|
||||
runtime_agent_job_id: None,
|
||||
items_processed: Some(12),
|
||||
items_total: None,
|
||||
progress_note: Some(
|
||||
|
|
@ -1827,6 +1828,7 @@ mod tests {
|
|||
),
|
||||
last_checkpoint_at_unix_seconds: Some(1_744_500_000),
|
||||
blocking_reason: None,
|
||||
active_thread_ids: Vec::new(),
|
||||
linked_subgoal_ids: vec!["phase-6".to_string()],
|
||||
linked_graph_node_ids: vec!["retrieval".to_string()],
|
||||
}],
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ use codex_protocol::protocol::EpiphanyGraphs as CoreEpiphanyGraphs;
|
|||
use codex_protocol::protocol::EpiphanyInvariant as CoreEpiphanyInvariant;
|
||||
use codex_protocol::protocol::EpiphanyInvestigationCheckpoint as CoreEpiphanyInvestigationCheckpoint;
|
||||
use codex_protocol::protocol::EpiphanyInvestigationDisposition as CoreEpiphanyInvestigationDisposition;
|
||||
use codex_protocol::protocol::EpiphanyJobBinding as CoreEpiphanyJobBinding;
|
||||
use codex_protocol::protocol::EpiphanyModeState as CoreEpiphanyModeState;
|
||||
use codex_protocol::protocol::EpiphanyObservation as CoreEpiphanyObservation;
|
||||
use codex_protocol::protocol::EpiphanyRetrievalStatus as CoreEpiphanyRetrievalStatus;
|
||||
|
|
@ -4291,7 +4292,11 @@ pub enum ThreadEpiphanyJobKind {
|
|||
pub enum ThreadEpiphanyJobStatus {
|
||||
Idle,
|
||||
Needed,
|
||||
Pending,
|
||||
Running,
|
||||
Completed,
|
||||
Failed,
|
||||
Cancelled,
|
||||
Blocked,
|
||||
Unavailable,
|
||||
}
|
||||
|
|
@ -4307,6 +4312,9 @@ pub struct ThreadEpiphanyJob {
|
|||
pub status: ThreadEpiphanyJobStatus,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub runtime_agent_job_id: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub items_processed: Option<u32>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
|
|
@ -4321,6 +4329,8 @@ pub struct ThreadEpiphanyJob {
|
|||
#[ts(optional = nullable)]
|
||||
pub blocking_reason: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub active_thread_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub linked_subgoal_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub linked_graph_node_ids: Vec<String>,
|
||||
|
|
@ -4727,6 +4737,9 @@ pub struct ThreadEpiphanyUpdatePatch {
|
|||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub investigation_checkpoint: Option<CoreEpiphanyInvestigationCheckpoint>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub job_bindings: Option<Vec<CoreEpiphanyJobBinding>>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub observations: Vec<CoreEpiphanyObservation>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
|
|
@ -4780,6 +4793,7 @@ pub enum ThreadEpiphanyStateUpdatedField {
|
|||
GraphCheckpoint,
|
||||
Scratch,
|
||||
InvestigationCheckpoint,
|
||||
JobBindings,
|
||||
Observations,
|
||||
Evidence,
|
||||
Churn,
|
||||
|
|
|
|||
Reference in a new issue