diff options
| author | soryu <soryu@soryu.co> | 2026-02-17 16:48:39 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-17 16:48:39 +0000 |
| commit | aee6cda5fc8c44ebc45b274d07a1ed64052e3699 (patch) | |
| tree | b484ced697dab34004ceeec826e1b884162f0f49 /makima/frontend/src/lib/api.ts | |
| parent | 049fd3e8a15952627954678838ca5382c11ecd04 (diff) | |
| download | soryu-aee6cda5fc8c44ebc45b274d07a1ed64052e3699.tar.gz soryu-aee6cda5fc8c44ebc45b274d07a1ed64052e3699.zip | |
feat: smart cleanup, order linking, and improved PR titles (#69)
* feat: soryu-co/soryu: Reorder navigation: move Orders before Contracts
* feat: soryu-co/soryu: Generate PR titles from step content instead of directive title
* feat: soryu-co/soryu: Add orderId field to step creation and link orders to steps
* feat: soryu-co/soryu: Handle completed orders during plan-orders flow
* WIP: heartbeat checkpoint
* Merge origin/makima/soryu-co-soryu--handle-completed-orders-during-pla-5aa9a15b (resolved conflicts)
Diffstat (limited to 'makima/frontend/src/lib/api.ts')
| -rw-r--r-- | makima/frontend/src/lib/api.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index ed628f7..43eaa05 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -3248,11 +3248,11 @@ export async function updateDirectiveGoal(id: string, goal: string): Promise<Dir return res.json(); } -export async function cleanupDirectiveTasks(id: string): Promise<{ deleted: number }> { - const res = await authFetch(`${API_BASE}/api/v1/directives/${id}/cleanup-tasks`, { +export async function cleanupDirective(id: string): Promise<{ message: string; taskId: string | null }> { + const res = await authFetch(`${API_BASE}/api/v1/directives/${id}/cleanup`, { method: "POST", }); - if (!res.ok) throw new Error(`Failed to cleanup tasks: ${res.statusText}`); + if (!res.ok) throw new Error(`Failed to cleanup directive: ${res.statusText}`); return res.json(); } |
