Close canonical RepoModel organ loop
This commit is contained in:
parent
995d783fd3
commit
0c90e4471d
28 changed files with 4070 additions and 278 deletions
|
|
@ -819,11 +819,24 @@ pub struct RepoModelPatch {
|
|||
pub base_revision: u64,
|
||||
pub base_hash: String,
|
||||
pub applied_at: String,
|
||||
pub purpose: RepoModelPatchPurpose,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<RepoModelPatchOperation>")]
|
||||
pub operations: Vec<RepoModelPatchOperation>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
#[serde(tag = "kind", rename_all = "snake_case")]
|
||||
#[ts(tag = "kind", rename_all = "snake_case")]
|
||||
pub enum RepoModelPatchPurpose {
|
||||
#[default]
|
||||
Evolution,
|
||||
IncorporateFrontierVerdict {
|
||||
route_id: String,
|
||||
soul_verdict_receipt_id: String,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(tag = "operation", rename_all = "snake_case")]
|
||||
#[ts(tag = "operation", rename_all = "snake_case")]
|
||||
|
|
@ -1185,6 +1198,10 @@ pub struct EpiphanyMemoryContextQuery {
|
|||
pub struct EpiphanyMemoryContextPacket {
|
||||
pub id: String,
|
||||
pub query_id: String,
|
||||
#[serde(default)]
|
||||
pub repo_model_revision: u64,
|
||||
#[serde(default, skip_serializing_if = "String::is_empty")]
|
||||
pub repo_model_hash: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyMemoryNode>")]
|
||||
pub nodes: Vec<EpiphanyMemoryNode>,
|
||||
|
|
|
|||
Reference in a new issue