chore: apply ruff auto-fixes and remove dead AST scripts
This commit is contained in:
13
gui_2.py
13
gui_2.py
@@ -12,7 +12,7 @@ import uuid
|
||||
import requests
|
||||
from pathlib import Path
|
||||
from tkinter import filedialog, Tk
|
||||
from typing import Optional, Callable, Any, Dict, List, Tuple, Union
|
||||
from typing import Optional, Callable, Any
|
||||
import aggregate
|
||||
import ai_client
|
||||
import cost_tracker
|
||||
@@ -35,7 +35,7 @@ import multi_agent_conductor
|
||||
from models import Track, Ticket
|
||||
from file_cache import ASTParser
|
||||
|
||||
from fastapi import FastAPI, Depends, HTTPException, Security
|
||||
from fastapi import FastAPI, Depends, HTTPException
|
||||
from fastapi.security.api_key import APIKeyHeader
|
||||
from pydantic import BaseModel
|
||||
from imgui_bundle import imgui, hello_imgui, immapp
|
||||
@@ -431,7 +431,6 @@ class App:
|
||||
'btn_mma_start_track': self._cb_start_track,
|
||||
'btn_mma_create_track': lambda: self._cb_create_track(self.ui_new_track_name, self.ui_new_track_desc, self.ui_new_track_type),
|
||||
'btn_approve_tool': self._handle_approve_tool,
|
||||
'btn_approve_script': self._handle_approve_script,
|
||||
'btn_approve_mma_step': self._handle_approve_mma_step,
|
||||
'btn_approve_spawn': self._handle_approve_spawn,
|
||||
}
|
||||
@@ -1070,7 +1069,7 @@ class App:
|
||||
return
|
||||
self._scroll_disc_to_bottom = True
|
||||
for item in items:
|
||||
role = item.get("role", "unknown")
|
||||
item.get("role", "unknown")
|
||||
if item.get("role") and item["role"] not in self.disc_roles:
|
||||
self.disc_roles.append(item["role"])
|
||||
disc_sec = self.project.get("discussion", {})
|
||||
@@ -3389,7 +3388,7 @@ class App:
|
||||
imgui.begin_tooltip()
|
||||
imgui.text_colored(C_KEY, f"ID: {tid}")
|
||||
imgui.text_colored(C_LBL, f"Target: {target}")
|
||||
imgui.text_colored(C_LBL, f"Description:")
|
||||
imgui.text_colored(C_LBL, "Description:")
|
||||
imgui.same_line()
|
||||
imgui.text_wrapped(ticket.get('description', 'N/A'))
|
||||
deps = ticket.get('depends_on', [])
|
||||
@@ -3481,8 +3480,8 @@ class App:
|
||||
imgui.push_id(f"comms_{idx}")
|
||||
if blink_alpha > 0:
|
||||
# Draw a background highlight for the entry
|
||||
draw_list = imgui.get_window_draw_list()
|
||||
p_min = imgui.get_cursor_screen_pos()
|
||||
imgui.get_window_draw_list()
|
||||
imgui.get_cursor_screen_pos()
|
||||
# Estimate height or just use a fixed height for the background
|
||||
# It's better to wrap the entry in a group or just use separators
|
||||
# For now, let's just use the style color push if we are sure we pop it
|
||||
|
||||
Reference in New Issue
Block a user