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 -1
View File
@@ -403,6 +403,7 @@ def _api_token_stats(controller: 'AppController') -> dict[str, Any]:
""" """
return controller._token_stats return controller._token_stats
#endregion #endregion
#region: GUI Task Handlers #region: GUI Task Handlers
def _handle_ai_response(controller: 'AppController', task: dict): def _handle_ai_response(controller: 'AppController', task: dict):
@@ -703,7 +704,6 @@ def _handle_hide_patch_modal(controller: 'AppController', task: dict):
controller._pending_patch_files = [] controller._pending_patch_files = []
#endregion #endregion
#endregion
class AppController: class AppController:
""" """
+1 -13
View File
@@ -21,7 +21,6 @@ import typing
from defer import defer from defer import defer
from imgui_bundle import imgui, hello_imgui, immapp, imgui_node_editor as ed, imgui_color_text_edit as ced from imgui_bundle import imgui, hello_imgui, immapp, imgui_node_editor as ed, imgui_color_text_edit as ced
from pathlib import Path from pathlib import Path
from pydantic import BaseModel
from tkinter import filedialog, Tk from tkinter import filedialog, Tk
from typing import Optional, Any from typing import Optional, Any
from src.diff_viewer import apply_patch_to_file 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_registry
from src import log_pruner from src import log_pruner
from src import models from src import models
from src.models import GenerateRequest, ConfirmRequest
from src import mcp_client from src import mcp_client
from src import markdown_helper from src import markdown_helper
from src import shaders from src import shaders
@@ -62,7 +62,6 @@ def hide_tk_root() -> Tk:
root.withdraw() root.withdraw()
root.wm_attributes("-topmost", True) root.wm_attributes("-topmost", True)
return root 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) 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[i:]
return entries 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: class App:
"""The main ImGui interface orchestrator for Manual Slop.""" """The main ImGui interface orchestrator for Manual Slop."""