began to go through the files and organize imports and gui_2.py's new context defs
still a bunch to sift through after the last ai passes
This commit is contained in:
+13
-7
@@ -1,16 +1,22 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import json
|
||||
import logging
|
||||
import sys
|
||||
import threading
|
||||
import uuid
|
||||
import sys
|
||||
import asyncio
|
||||
from http.server import ThreadingHTTPServer, BaseHTTPRequestHandler
|
||||
from typing import Any
|
||||
import logging
|
||||
import websockets
|
||||
|
||||
# TODO(Ed): Eliminate these?
|
||||
from http.server import ThreadingHTTPServer, BaseHTTPRequestHandler
|
||||
from typing import Any
|
||||
from websockets.asyncio.server import serve
|
||||
from src import session_logger
|
||||
|
||||
from src import cost_tracker
|
||||
from src import session_logger
|
||||
|
||||
|
||||
"""
|
||||
API Hooks - REST API for external automation and state inspection.
|
||||
|
||||
@@ -820,4 +826,4 @@ class WebSocketServer:
|
||||
return
|
||||
message = json.dumps({"channel": channel, "payload": payload})
|
||||
for ws in list(self.clients[channel]):
|
||||
asyncio.run_coroutine_threadsafe(ws.send(message), self.loop)
|
||||
asyncio.run_coroutine_threadsafe(ws.send(message), self.loop)
|
||||
|
||||
Reference in New Issue
Block a user