Initial commit

This commit is contained in:
xggz
2026-03-06 22:56:13 +08:00
commit 54d1097b41
273 changed files with 92457 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use super::agent::AgentType;
#[derive(Debug, Clone, Serialize)]
pub struct FolderHistoryEntry {
pub id: i32,
pub path: String,
pub name: String,
pub last_opened_at: DateTime<Utc>,
}
#[derive(Debug, Clone, Serialize)]
pub struct FolderDetail {
pub id: i32,
pub name: String,
pub path: String,
pub git_branch: Option<String>,
pub parent_branch: Option<String>,
pub default_agent_type: Option<AgentType>,
pub last_opened_at: DateTime<Utc>,
pub opened_conversations: Vec<OpenedConversation>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OpenedConversation {
pub conversation_id: i32,
pub agent_type: AgentType,
pub position: i32,
pub is_active: bool,
pub is_pinned: bool,
}
#[derive(Debug, Clone, Serialize)]
pub struct FolderCommandInfo {
pub id: i32,
pub folder_id: i32,
pub name: String,
pub command: String,
pub sort_order: i32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}