feat(api): implement phase 3 comprehensive control endpoints

This commit is contained in:
2026-03-11 23:14:09 -04:00
parent e88f0f1831
commit 4777dd957a
4 changed files with 132 additions and 9 deletions

View File

@@ -240,3 +240,21 @@ class ApiHookClient:
"""Gets the current patch modal status."""
return self._make_request('GET', '/api/patch/status') or {}
def spawn_mma_worker(self, data: dict) -> dict:
return self._make_request('POST', '/api/mma/workers/spawn', data=data) or {}
def kill_mma_worker(self, worker_id: str) -> dict:
return self._make_request('POST', '/api/mma/workers/kill', data={"worker_id": worker_id}) or {}
def pause_mma_pipeline(self) -> dict:
return self._make_request('POST', '/api/mma/pipeline/pause') or {}
def resume_mma_pipeline(self) -> dict:
return self._make_request('POST', '/api/mma/pipeline/resume') or {}
def inject_context(self, data: dict) -> dict:
return self._make_request('POST', '/api/context/inject', data=data) or {}
def mutate_mma_dag(self, data: dict) -> dict:
return self._make_request('POST', '/api/mma/dag/mutate', data=data) or {}