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.
- api/auth.py +13 -0
- api/users.py +8 -0
- tunacode/cli/commands.py +115 -233
- tunacode/cli/repl.py +53 -63
- tunacode/cli/textual_bridge.py +4 -1
- tunacode/constants.py +10 -1
- tunacode/core/agents/__init__.py +0 -4
- tunacode/core/agents/main.py +454 -49
- tunacode/core/code_index.py +479 -0
- tunacode/core/setup/git_safety_setup.py +7 -9
- tunacode/core/state.py +5 -0
- tunacode/core/tool_handler.py +18 -0
- tunacode/exceptions.py +13 -0
- tunacode/prompts/system.md +269 -30
- tunacode/tools/glob.py +288 -0
- tunacode/tools/grep.py +168 -195
- tunacode/tools/list_dir.py +190 -0
- tunacode/tools/read_file.py +9 -3
- tunacode/tools/read_file_async_poc.py +188 -0
- tunacode/utils/text_utils.py +14 -5
- tunacode/utils/token_counter.py +23 -0
- {tunacode_cli-0.0.29.dist-info → tunacode_cli-0.0.31.dist-info}/METADATA +16 -7
- {tunacode_cli-0.0.29.dist-info → tunacode_cli-0.0.31.dist-info}/RECORD +27 -24
- {tunacode_cli-0.0.29.dist-info → tunacode_cli-0.0.31.dist-info}/top_level.txt +1 -0
- tunacode/core/agents/orchestrator.py +0 -213
- tunacode/core/agents/planner_schema.py +0 -9
- tunacode/core/agents/readonly.py +0 -65
- tunacode/core/llm/planner.py +0 -62
- {tunacode_cli-0.0.29.dist-info → tunacode_cli-0.0.31.dist-info}/WHEEL +0 -0
- {tunacode_cli-0.0.29.dist-info → tunacode_cli-0.0.31.dist-info}/entry_points.txt +0 -0
- {tunacode_cli-0.0.29.dist-info → tunacode_cli-0.0.31.dist-info}/licenses/LICENSE +0 -0
tunacode/cli/textual_bridge.py
CHANGED
|
@@ -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.
|
|
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"
|
tunacode/core/agents/__init__.py
CHANGED
|
@@ -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
|
]
|