diff options
| author | soryu <soryu@soryu.co> | 2026-02-13 19:19:39 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-13 19:19:39 +0000 |
| commit | a6677bafe52d9988c9948df34c1635e4411c9591 (patch) | |
| tree | a3d05924fe6ff1a06c1abdfe1fa165e0d0546406 /makima/src/db/models.rs | |
| parent | 5edaf1228b4e48a441b98c49f58de312b7924ed6 (diff) | |
| download | soryu-a6677bafe52d9988c9948df34c1635e4411c9591.tar.gz soryu-a6677bafe52d9988c9948df34c1635e4411c9591.zip | |
Fix worktree branching for directive tasks and remove memories
Diffstat (limited to 'makima/src/db/models.rs')
| -rw-r--r-- | makima/src/db/models.rs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/makima/src/db/models.rs b/makima/src/db/models.rs index 66c0a30..131dffc 100644 --- a/makima/src/db/models.rs +++ b/makima/src/db/models.rs @@ -2714,7 +2714,6 @@ pub struct Directive { pub pr_url: Option<String>, pub pr_branch: Option<String>, pub completion_task_id: Option<Uuid>, - pub memory_enabled: bool, pub goal_updated_at: DateTime<Utc>, pub started_at: Option<DateTime<Utc>>, pub version: i32, @@ -2764,7 +2763,6 @@ pub struct DirectiveSummary { pub orchestrator_task_id: Option<Uuid>, pub pr_url: Option<String>, pub completion_task_id: Option<Uuid>, - pub memory_enabled: bool, pub version: i32, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, @@ -2791,8 +2789,6 @@ pub struct CreateDirectiveRequest { pub repository_url: Option<String>, pub local_path: Option<String>, pub base_branch: Option<String>, - #[serde(default)] - pub memory_enabled: bool, } /// Request to update a directive. @@ -2808,7 +2804,6 @@ pub struct UpdateDirectiveRequest { pub orchestrator_task_id: Option<Uuid>, pub pr_url: Option<String>, pub pr_branch: Option<String>, - pub memory_enabled: Option<bool>, pub version: Option<i32>, } @@ -2853,43 +2848,3 @@ pub struct UpdateDirectiveStepRequest { pub order_index: Option<i32>, } -// ============================================================================= -// Directive Memory Types -// ============================================================================= - -/// A memory entry for a directive — key-value context that persists across tasks. -#[derive(Debug, Clone, FromRow, Serialize, Deserialize, ToSchema)] -#[serde(rename_all = "camelCase")] -pub struct DirectiveMemory { - pub id: Uuid, - pub directive_id: Uuid, - pub key: String, - pub value: String, - pub category: Option<String>, - pub created_at: DateTime<Utc>, - pub updated_at: DateTime<Utc>, -} - -/// Request to set a memory entry (upsert by key). -#[derive(Debug, Deserialize, ToSchema)] -#[serde(rename_all = "camelCase")] -pub struct SetDirectiveMemoryRequest { - pub key: String, - pub value: String, - pub category: Option<String>, -} - -/// Request to batch set memory entries. -#[derive(Debug, Deserialize, ToSchema)] -#[serde(rename_all = "camelCase")] -pub struct BatchSetDirectiveMemoryRequest { - pub entries: Vec<SetDirectiveMemoryRequest>, -} - -/// Response for listing memories. -#[derive(Debug, Serialize, ToSchema)] -#[serde(rename_all = "camelCase")] -pub struct DirectiveMemoryListResponse { - pub memories: Vec<DirectiveMemory>, - pub total: i64, -} |
