fix: fjern duplikat tui_command-funksjon i server.py

This commit is contained in:
Chris Christiansen 2026-07-02 17:25:41 +00:00
parent 56e1f61753
commit bc8eb70c16

View File

@ -271,14 +271,6 @@ async def get_telemetry(p): return await _opax_get("/telemetry/history")
async def run_terminal(p):
return await _opax_post("/terminal/exec", {"cmd": p.get("command", p.get("cmd", "help"))})
async def tui_command(p):
"""Kjør én sekvensiert shell-kommando via TUI-broen og returner stdout/stderr/exit_code."""
return await _opax_post("/tui-command", {
"command": p.get("command", ""),
"timeout": p.get("timeout", 30),
})
async def list_commits(p):
return await _gitea_get(f"/repos/{p.get('repo', GITEA_REPO)}/commits?limit={p.get('limit', 10)}")