tunacode-cli 0.0.29__py3-none-any.whl → 0.0.31__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tunacode-cli might be problematic. Click here for more details.

@@ -72,7 +72,10 @@ class TextualAgentBridge:
72
72
  try:
73
73
  from tunacode.utils.text_utils import expand_file_refs
74
74
 
75
- text = expand_file_refs(text)
75
+ text, referenced_files = expand_file_refs(text)
76
+ # Track the referenced files
77
+ for file_path in referenced_files:
78
+ self.state_manager.session.files_in_context.add(file_path)
76
79
  except ValueError as e:
77
80
  return f"Error: {str(e)}"
78
81
 
tunacode/constants.py CHANGED
@@ -7,7 +7,7 @@ Centralizes all magic strings, UI text, error messages, and application constant
7
7
 
8
8
  # Application info
9
9
  APP_NAME = "TunaCode"
10
- APP_VERSION = "0.0.29"
10
+ APP_VERSION = "0.0.31"
11
11
 
12
12
  # File patterns
13
13
  GUIDE_FILE_PATTERN = "{name}.md"
@@ -29,6 +29,15 @@ TOOL_READ_FILE = "read_file"
29
29
  TOOL_WRITE_FILE = "write_file"
30
30
  TOOL_UPDATE_FILE = "update_file"
31
31
  TOOL_RUN_COMMAND = "run_command"
32
+ TOOL_BASH = "bash"
33
+ TOOL_GREP = "grep"
34
+ TOOL_LIST_DIR = "list_dir"
35
+ TOOL_GLOB = "glob"
36
+
37
+ # Tool categorization
38
+ READ_ONLY_TOOLS = [TOOL_READ_FILE, TOOL_GREP, TOOL_LIST_DIR, TOOL_GLOB]
39
+ WRITE_TOOLS = [TOOL_WRITE_FILE, TOOL_UPDATE_FILE]
40
+ EXECUTE_TOOLS = [TOOL_BASH, TOOL_RUN_COMMAND]
32
41
 
33
42
  # Commands
34
43
  CMD_HELP = "/help"
@@ -1,12 +1,8 @@
1
1
  """Agent helper modules."""
2
2
 
3
3
  from .main import get_or_create_agent, process_request
4
- from .orchestrator import OrchestratorAgent
5
- from .readonly import ReadOnlyAgent
6
4
 
7
5
  __all__ = [
8
6
  "process_request",
9
7
  "get_or_create_agent",
10
- "OrchestratorAgent",
11
- "ReadOnlyAgent",
12
8
  ]