From ffbd8fed748ff4b60c53ee6ac54d7cf0548a7048 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 12 Feb 2026 03:04:26 +0000 Subject: Add task cleanup and directive PR updating --- makima/frontend/src/lib/api.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'makima/frontend/src/lib/api.ts') diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index 552829a..9d9cb1c 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -3238,6 +3238,14 @@ export async function updateDirectiveGoal(id: string, goal: string): Promise { + const res = await authFetch(`${API_BASE}/api/v1/directives/${id}/cleanup-tasks`, { + method: "POST", + }); + if (!res.ok) throw new Error(`Failed to cleanup tasks: ${res.statusText}`); + return res.json(); +} + // ============================================================================= // Directive Memory Types & API // ============================================================================= -- cgit v1.2.3