From 612cecc5bd5dbfc73d4a3a9d38626378eaf39041 Mon Sep 17 00:00:00 2001 From: soryu Date: Wed, 4 Feb 2026 01:59:40 +0000 Subject: Remove chain supervisor capability Chains no longer spawn a supervisor task. Checkpoint contracts will be automatically run as part of the DAG execution when dependencies complete. - Remove supervisor task creation from start_chain handler - Remove chain supervisor CLI commands - Remove supervisor_task_id from StartChainResponse - Remove withSupervisor option from frontend Co-Authored-By: Claude Opus 4.5 --- makima/frontend/src/lib/api.ts | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (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 a08cba7..6a40aec 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -3323,7 +3323,6 @@ export interface UpdateContractDefinitionRequest { /** Response when starting a chain */ export interface StartChainResponse { chainId: string; - supervisorTaskId: string | null; contractsCreated: string[]; status: string; } @@ -3422,30 +3421,10 @@ export async function getChainDefinitionGraph( return res.json(); } -/** Options for starting a chain */ -export interface StartChainOptions { - /** Whether to create a supervisor task that monitors chain progress */ - withSupervisor?: boolean; - /** Repository URL for the supervisor task to work with */ - repositoryUrl?: string; -} - -/** Start a chain (creates root contracts and optionally spawns supervisor) */ -export async function startChain( - chainId: string, - options?: StartChainOptions -): Promise { - const body = options - ? JSON.stringify({ - withSupervisor: options.withSupervisor ?? false, - repositoryUrl: options.repositoryUrl, - }) - : undefined; - +/** Start a chain (creates root contracts based on DAG) */ +export async function startChain(chainId: string): Promise { const res = await authFetch(`${API_BASE}/api/v1/chains/${chainId}/start`, { method: "POST", - headers: body ? { "Content-Type": "application/json" } : undefined, - body, }); if (!res.ok) { const error = await res.json().catch(() => ({ message: res.statusText })); @@ -3454,7 +3433,7 @@ export async function startChain( return res.json(); } -/** Stop a chain (kills supervisor, marks as archived) */ +/** Stop a chain (marks as archived) */ export async function stopChain(chainId: string): Promise<{ stopped: boolean; status: string }> { const res = await authFetch(`${API_BASE}/api/v1/chains/${chainId}/stop`, { method: "POST", -- cgit v1.2.3