import os
import time
from .audit import audit_tool_call
import subprocess

TANIA_BASE_URL = os.getenv("TANIA_BASE_URL", "http://localhost:3000")


def check():
    _t = time.time()
    out = {"url": TANIA_BASE_URL}
    audit_tool_call("tool_tania_control.check", {}, {"ok": True}, True, int((time.time()-_t)*1000))
    return out


def start():
    return {"status": "noop"}


def stop():
    return {"status": "noop"}
