Delete unreachable RepoModel summary authority
This commit is contained in:
parent
5218cf2cae
commit
8bb039afff
12 changed files with 26 additions and 301 deletions
|
|
@ -658,9 +658,6 @@ pub struct EpiphanyMemoryGraphSnapshot {
|
|||
#[ts(type = "Array<EpiphanyMemoryEdge>")]
|
||||
pub edges: Vec<EpiphanyMemoryEdge>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyMemorySummary>")]
|
||||
pub summaries: Vec<EpiphanyMemorySummary>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<RepoFrontierItem>")]
|
||||
pub frontier: Vec<RepoFrontierItem>,
|
||||
}
|
||||
|
|
@ -928,33 +925,6 @@ pub struct EpiphanyMemoryAnchor {
|
|||
pub note: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyMemorySummary {
|
||||
pub id: String,
|
||||
pub domain_id: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub covers_node_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub covers_edge_ids: Vec<String>,
|
||||
pub target: String,
|
||||
pub claim: String,
|
||||
pub question: String,
|
||||
pub tension: String,
|
||||
pub action_implication: String,
|
||||
#[serde(default, skip_serializing_if = "is_zero_u32")]
|
||||
pub anchor_count: u32,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub source_hashes: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "is_zero_u32")]
|
||||
pub confidence: u32,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
pub known_omissions: Vec<String>,
|
||||
}
|
||||
|
||||
|
||||
|
||||
fn is_zero_u32(value: &u32) -> bool {
|
||||
|
|
|
|||
Reference in a new issue