chore: fix clippy warnings, add embedding/omni_patch, update telemetry, and ignore temp files

This commit is contained in:
Riz Ashraf committed 2026-09-29 06:42:29 +01:00
1 parent 495304f3fa
commit 98a1716ac8
23 files changed
+2253 -75

No files matched your search

+22
View File
@@ -14,6 +14,8 @@ pub struct CodeChange {
pub struct StickyNote {
pub timestamp: u64,
pub content: String,
#[serde(default)]
pub expires_at: Option<u64>,
}
pub fn default_namespace() -> String {
"global".to_string()
@@ -63,6 +65,8 @@ pub struct Task {
#[serde(default)]
pub parent_id: Option<String>,
#[serde(default)]
pub expires_at: Option<u64>,
#[serde(default)]
pub dependencies: Vec<String>,
#[serde(default)]
pub acceptance_criteria: Vec<AcceptanceCriteria>,
@@ -74,6 +78,8 @@ pub struct Snippet {
pub code: String,
pub description: String,
pub updated_at: u64,
#[serde(default)]
pub embedding: Option<Vec<f32>>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct Adr {
@@ -105,6 +111,8 @@ pub struct ErrorFix {
pub timestamp: u64,
pub git_commit: Option<String>,
pub git_branch: Option<String>,
#[serde(default)]
pub embedding: Option<Vec<f32>>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct PinnedFile {
@@ -118,12 +126,16 @@ pub struct SessionSummary {
pub timestamp: u64,
pub summary: String,
pub namespace: String,
#[serde(default)]
pub expires_at: Option<u64>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct HandoffMemo {
pub id: String,
pub author: String,
pub content: String,
#[serde(default)]
pub expires_at: Option<u64>,
pub namespace: String,
pub timestamp: u64,
}
@@ -175,6 +187,8 @@ pub struct TechDebt {
pub created_at: u64,
pub git_commit: Option<String>,
pub git_branch: Option<String>,
#[serde(default)]
pub embedding: Option<Vec<f32>>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct ContextWorkspace {
@@ -196,3 +210,11 @@ pub struct GateRecord {
pub reason: Option<String>,
pub timestamp: u64,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct TerminalHistory {
pub command: String,
pub exit_code: i32,
pub timestamp: u64,
}