Private
Public Access
more app controller org
This commit is contained in:
+337
-361
File diff suppressed because it is too large
Load Diff
+15
-15
@@ -107,11 +107,11 @@ from src import cost_tracker
|
||||
from src import history
|
||||
from src import imgui_scopes as imscope
|
||||
from src import paths
|
||||
from src import presets
|
||||
# from src import presets
|
||||
from src import project_manager
|
||||
from src import session_logger
|
||||
from src import log_registry
|
||||
from src import log_pruner
|
||||
# from src import log_pruner
|
||||
from src import models
|
||||
from src.models import GenerateRequest, ConfirmRequest
|
||||
from src import mcp_client
|
||||
@@ -702,19 +702,19 @@ class App:
|
||||
from src import history
|
||||
import copy
|
||||
return history.UISnapshot(
|
||||
ai_input=self.ui_ai_input,
|
||||
project_system_prompt=self.ui_project_system_prompt,
|
||||
global_system_prompt=self.ui_global_system_prompt,
|
||||
base_system_prompt=self.ui_base_system_prompt,
|
||||
use_default_base_prompt=self.ui_use_default_base_prompt,
|
||||
temperature=self.temperature,
|
||||
top_p=self.top_p,
|
||||
max_tokens=self.max_tokens,
|
||||
auto_add_history=self.ui_auto_add_history,
|
||||
disc_entries=copy.deepcopy(self.disc_entries),
|
||||
files=[f.to_dict() if hasattr(f, 'to_dict') else f for f in self.files],
|
||||
context_files=[f.to_dict() if hasattr(f, 'to_dict') else f for f in self.context_files],
|
||||
screenshots=list(self.screenshots)
|
||||
ai_input = self.ui_ai_input,
|
||||
project_system_prompt = self.ui_project_system_prompt,
|
||||
global_system_prompt = self.ui_global_system_prompt,
|
||||
base_system_prompt = self.ui_base_system_prompt,
|
||||
use_default_base_prompt = self.ui_use_default_base_prompt,
|
||||
temperature = self.temperature,
|
||||
top_p = self.top_p,
|
||||
max_tokens = self.max_tokens,
|
||||
auto_add_history = self.ui_auto_add_history,
|
||||
disc_entries = copy.deepcopy(self.disc_entries),
|
||||
files = [f.to_dict() if hasattr(f, 'to_dict') else f for f in self.files],
|
||||
context_files = [f.to_dict() if hasattr(f, 'to_dict') else f for f in self.context_files],
|
||||
screenshots = list(self.screenshots)
|
||||
)
|
||||
|
||||
def _apply_snapshot(self, snapshot: history.UISnapshot) -> None:
|
||||
|
||||
@@ -1304,8 +1304,6 @@ def get_external_mcp_manager() -> ExternalMCPManager:
|
||||
|
||||
def dispatch(tool_name: str, tool_input: dict[str, Any]) -> str:
|
||||
"""
|
||||
|
||||
|
||||
Dispatch an MCP tool call by name. Returns the result as a string.
|
||||
[C: tests/test_gemini_cli_edge_cases.py:test_gemini_cli_parameter_resilience, tests/test_mcp_client_beads.py:test_bd_mcp_tools, tests/test_mcp_ts_integration.py:test_ts_c_get_code_outline_dispatch, tests/test_mcp_ts_integration.py:test_ts_c_get_definition_dispatch, tests/test_mcp_ts_integration.py:test_ts_c_get_signature_dispatch, tests/test_mcp_ts_integration.py:test_ts_c_get_skeleton_dispatch, tests/test_mcp_ts_integration.py:test_ts_c_update_definition_dispatch, tests/test_mcp_ts_integration.py:test_ts_cpp_get_code_outline_dispatch, tests/test_mcp_ts_integration.py:test_ts_cpp_get_definition_dispatch, tests/test_mcp_ts_integration.py:test_ts_cpp_get_signature_dispatch, tests/test_mcp_ts_integration.py:test_ts_cpp_get_skeleton_dispatch, tests/test_mcp_ts_integration.py:test_ts_cpp_update_definition_dispatch, tests/test_py_struct_tools.py:test_mcp_dispatch_errors, tests/test_py_struct_tools.py:test_mcp_dispatch_integration]
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user