pushing latest gui_2.py, adjustment to regions in app controller.

This commit is contained in:
2026-05-13 21:29:04 -04:00
parent d67997c770
commit 242ea051ad
2 changed files with 2 additions and 14 deletions
+1 -13
View File
@@ -21,7 +21,6 @@ import typing
from defer import defer
from imgui_bundle import imgui, hello_imgui, immapp, imgui_node_editor as ed, imgui_color_text_edit as ced
from pathlib import Path
from pydantic import BaseModel
from tkinter import filedialog, Tk
from typing import Optional, Any
from src.diff_viewer import apply_patch_to_file
@@ -40,6 +39,7 @@ from src import session_logger
from src import log_registry
from src import log_pruner
from src import models
from src.models import GenerateRequest, ConfirmRequest
from src import mcp_client
from src import markdown_helper
from src import shaders
@@ -62,7 +62,6 @@ def hide_tk_root() -> Tk:
root.withdraw()
root.wm_attributes("-topmost", True)
return root
# Color Helpers
def vec4(r: float, g: float, b: float, a: float = 1.0) -> imgui.ImVec4: return imgui.ImVec4(r/255, g/255, b/255, a)
@@ -96,17 +95,6 @@ def truncate_entries(entries: list[dict[str, Any]], max_pairs: int) -> list[dict
return entries[i:]
return entries
class GenerateRequest(BaseModel):
prompt: str
auto_add_history: bool = True
temperature: float | None = None
top_p: float | None = None
max_tokens: int | None = None
class ConfirmRequest(BaseModel):
approved: bool
script: Optional[str] = None
class App:
"""The main ImGui interface orchestrator for Manual Slop."""