Delete decorative RepoModel scoring cargo

This commit is contained in:
Meta Vens 2026-08-23 15:18:05 +02:00
commit ab1afc27ec
2 changed files with 2 additions and 17 deletions

View file

@ -855,10 +855,6 @@ pub struct EpiphanyMemoryNode {
pub source_hashes: Vec<String>,
#[serde(default)]
pub lifecycle: EpiphanyMemoryLifecycle,
#[serde(default, skip_serializing_if = "is_zero_u32")]
pub salience: u32,
#[serde(default, skip_serializing_if = "is_zero_u32")]
pub confidence: u32,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub created_at: Option<String>,
@ -902,8 +898,6 @@ pub struct EpiphanyMemoryEdge {
pub anchors: Vec<EpiphanyMemoryAnchor>,
#[serde(default)]
pub lifecycle: EpiphanyMemoryLifecycle,
#[serde(default, skip_serializing_if = "is_zero_u32")]
pub confidence: u32,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
@ -924,9 +918,3 @@ pub struct EpiphanyMemoryAnchor {
#[ts(type = "string | null")]
pub note: Option<String>,
}
fn is_zero_u32(value: &u32) -> bool {
*value == 0
}