tunacode-cli 0.0.42__py3-none-any.whl → 0.0.44__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.

tunacode/cli/main.py CHANGED
@@ -5,6 +5,7 @@ Enhanced CLI entry point with better styling while staying CLI-based.
5
5
  """
6
6
 
7
7
  import asyncio
8
+ import logging
8
9
 
9
10
  import typer
10
11
 
@@ -36,6 +37,9 @@ def main(
36
37
  ):
37
38
  """Start TunaCode - Your AI-powered development assistant"""
38
39
 
40
+ # Configure logging to suppress INFO messages by default
41
+ logging.basicConfig(level=logging.WARNING, force=True)
42
+
39
43
  async def async_main():
40
44
  if version:
41
45
  await ui.version()
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.42"
10
+ APP_VERSION = "0.0.44"
11
11
 
12
12
  # File patterns
13
13
  GUIDE_FILE_PATTERN = "{name}.md"
@@ -974,27 +974,28 @@ async def process_request(
974
974
  buffered_tasks = tool_buffer.flush()
975
975
  start_time = time.time()
976
976
 
977
- await ui.muted("\n" + "=" * 60)
978
- await ui.muted(
979
- f"🚀 FINAL BATCH: Executing {len(buffered_tasks)} buffered read-only tools"
980
- )
981
- await ui.muted("=" * 60)
977
+ if state_manager.session.show_thoughts:
978
+ await ui.muted("\n" + "=" * 60)
979
+ await ui.muted(
980
+ f"🚀 FINAL BATCH: Executing {len(buffered_tasks)} buffered read-only tools"
981
+ )
982
+ await ui.muted("=" * 60)
982
983
 
983
- for idx, (part, node) in enumerate(buffered_tasks, 1):
984
- tool_desc = f" [{idx}] {part.tool_name}"
985
- if hasattr(part, "args") and isinstance(part.args, dict):
986
- if part.tool_name == "read_file" and "file_path" in part.args:
987
- tool_desc += f" → {part.args['file_path']}"
988
- elif part.tool_name == "grep" and "pattern" in part.args:
989
- tool_desc += f" → pattern: '{part.args['pattern']}'"
990
- if "include_files" in part.args:
991
- tool_desc += f", files: '{part.args['include_files']}'"
992
- elif part.tool_name == "list_dir" and "directory" in part.args:
993
- tool_desc += f" → {part.args['directory']}"
994
- elif part.tool_name == "glob" and "pattern" in part.args:
995
- tool_desc += f" → pattern: '{part.args['pattern']}'"
996
- await ui.muted(tool_desc)
997
- await ui.muted("=" * 60)
984
+ for idx, (part, node) in enumerate(buffered_tasks, 1):
985
+ tool_desc = f" [{idx}] {part.tool_name}"
986
+ if hasattr(part, "args") and isinstance(part.args, dict):
987
+ if part.tool_name == "read_file" and "file_path" in part.args:
988
+ tool_desc += f" → {part.args['file_path']}"
989
+ elif part.tool_name == "grep" and "pattern" in part.args:
990
+ tool_desc += f" → pattern: '{part.args['pattern']}'"
991
+ if "include_files" in part.args:
992
+ tool_desc += f", files: '{part.args['include_files']}'"
993
+ elif part.tool_name == "list_dir" and "directory" in part.args:
994
+ tool_desc += f" → {part.args['directory']}"
995
+ elif part.tool_name == "glob" and "pattern" in part.args:
996
+ tool_desc += f" → pattern: '{part.args['pattern']}'"
997
+ await ui.muted(tool_desc)
998
+ await ui.muted("=" * 60)
998
999
 
999
1000
  await execute_tools_parallel(buffered_tasks, tool_callback)
1000
1001
 
@@ -1002,10 +1003,11 @@ async def process_request(
1002
1003
  sequential_estimate = len(buffered_tasks) * 100
1003
1004
  speedup = sequential_estimate / elapsed_time if elapsed_time > 0 else 1.0
1004
1005
 
1005
- await ui.muted(
1006
- f"✅ Final batch completed in {elapsed_time:.0f}ms "
1007
- f"(~{speedup:.1f}x faster than sequential)\n"
1008
- )
1006
+ if state_manager.session.show_thoughts:
1007
+ await ui.muted(
1008
+ f"✅ Final batch completed in {elapsed_time:.0f}ms "
1009
+ f"(~{speedup:.1f}x faster than sequential)\n"
1010
+ )
1009
1011
 
1010
1012
  # If we need to add a fallback response, create a wrapper
1011
1013
  if not response_state.has_user_response and i >= max_iterations and fallback_enabled:
@@ -4,8 +4,7 @@ import logging
4
4
  from functools import lru_cache
5
5
  from typing import Optional
6
6
 
7
- # Configure logging
8
- logging.basicConfig(level=logging.INFO)
7
+ # Get logger for this module
9
8
  logger = logging.getLogger(__name__)
10
9
 
11
10
  # Cache for tokenizer encodings
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tunacode-cli
3
- Version: 0.0.42
3
+ Version: 0.0.44
4
4
  Summary: Your agentic CLI developer.
5
5
  Author-email: larock22 <noreply@github.com>
6
6
  License-Expression: MIT
@@ -1,12 +1,12 @@
1
1
  tunacode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- tunacode/constants.py,sha256=Tteo8BguW-T3cNiGcNFsF49uNa1ddmWsvOvlROt7zBo,5168
2
+ tunacode/constants.py,sha256=e5ew-znjhA7bItbVdVDnF51SR7xhvENeVOR541rc9_E,5168
3
3
  tunacode/context.py,sha256=_gXVCyjU052jlyRAl9tklZSwl5U_zI_EIX8XN87VVWE,2786
4
4
  tunacode/exceptions.py,sha256=oDO1SVKOgjcKIylwqdbqh_g5my4roU5mB9Nv4n_Vb0s,3877
5
5
  tunacode/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  tunacode/setup.py,sha256=XPt4eAK-qcIZQv64jGZ_ryxcImDwps9OmXjJfIS1xcs,1899
7
7
  tunacode/types.py,sha256=Czq7jYXHq7fZQtyqkCN5_7eEu1wyYUcB50C6v3sTWDw,8188
8
8
  tunacode/cli/__init__.py,sha256=zgs0UbAck8hfvhYsWhWOfBe5oK09ug2De1r4RuQZREA,55
9
- tunacode/cli/main.py,sha256=ypefhvSt9hXzNOv0WpR-PlkUOSGadvcFbUIRT13n9oo,2619
9
+ tunacode/cli/main.py,sha256=erP6jNXcxVQOVn8sm6uNaLEAYevniVXl6Sem872mW68,2755
10
10
  tunacode/cli/repl.py,sha256=CMvl5wlxj7hr45mxil26fwbmWpDYxRsRVS9aIGJvKK0,18525
11
11
  tunacode/cli/commands/__init__.py,sha256=zmE9JcJ9Qd2xJhgdS4jMDJOoZsrAZmL5MAFxbKkk7F8,1670
12
12
  tunacode/cli/commands/base.py,sha256=GxUuDsDSpz0iXryy8MrEw88UM3C3yxL__kDK1QhshoA,2517
@@ -29,7 +29,7 @@ tunacode/core/tool_handler.py,sha256=BPjR013OOO0cLXPdLeL2FDK0ixUwOYu59FfHdcdFhp4
29
29
  tunacode/core/agents/__init__.py,sha256=UUJiPYb91arwziSpjd7vIk7XNGA_4HQbsOIbskSqevA,149
30
30
  tunacode/core/agents/dspy_integration.py,sha256=h3gJ-qr0fXpB2CRaU-MVv_8xG--ah-8nra7WO960Gbo,9152
31
31
  tunacode/core/agents/dspy_tunacode.py,sha256=tIluqDsHAv3nbNYtqFh4oyZA9yqMrnyY2G-QOpkTLCs,17398
32
- tunacode/core/agents/main.py,sha256=Ul-wGjt4kopyXals7WNB-GZpDtOI_VMIdVdn0SVhQeQ,48682
32
+ tunacode/core/agents/main.py,sha256=xYzstmOJgxC1aJ2VbMWw5cevPp87IjpdWU45xydAKMQ,48882
33
33
  tunacode/core/agents/utils.py,sha256=7kJAiUlkyWO3-b4T07XsGgycVrcNhv3NEPLdaktBnP4,12847
34
34
  tunacode/core/background/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  tunacode/core/background/manager.py,sha256=rJdl3eDLTQwjbT7VhxXcJbZopCNR3M8ZGMbmeVnwwMc,1126
@@ -93,11 +93,11 @@ tunacode/utils/ripgrep.py,sha256=AXUs2FFt0A7KBV996deS8wreIlUzKOlAHJmwrcAr4No,583
93
93
  tunacode/utils/security.py,sha256=e_zo9VmcOKFjgFMr9GOBIFhAmND4PBlJZgY7zqnsGjI,6548
94
94
  tunacode/utils/system.py,sha256=FSoibTIH0eybs4oNzbYyufIiV6gb77QaeY2yGqW39AY,11381
95
95
  tunacode/utils/text_utils.py,sha256=6YBD9QfkDO44-6jxnwRWIpmfIifPG-NqMzy_O2NAouc,7277
96
- tunacode/utils/token_counter.py,sha256=l5KemYLfsypAtAF_YrDtVKFtBEghydS_MA8c-8mpPvM,2721
96
+ tunacode/utils/token_counter.py,sha256=lLbkrNUraRQn5RMhwnGurqq1RHFDyn4AaFhruONWIxo,2690
97
97
  tunacode/utils/user_configuration.py,sha256=Ilz8dpGVJDBE2iLWHAPT0xR8D51VRKV3kIbsAz8Bboc,3275
98
- tunacode_cli-0.0.42.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
99
- tunacode_cli-0.0.42.dist-info/METADATA,sha256=VsQw_2wQ_Y1gnU-Ts2cNqnNRzEjvkkLAUwuKrM6Wi6Q,5203
100
- tunacode_cli-0.0.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
101
- tunacode_cli-0.0.42.dist-info/entry_points.txt,sha256=hbkytikj4dGu6rizPuAd_DGUPBGF191RTnhr9wdhORY,51
102
- tunacode_cli-0.0.42.dist-info/top_level.txt,sha256=lKy2P6BWNi5XSA4DHFvyjQ14V26lDZctwdmhEJrxQbU,9
103
- tunacode_cli-0.0.42.dist-info/RECORD,,
98
+ tunacode_cli-0.0.44.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
99
+ tunacode_cli-0.0.44.dist-info/METADATA,sha256=MNphC8b7Fo9Q2kGx7pWgCkqM5k9dNaON0d02wKOu-9o,5203
100
+ tunacode_cli-0.0.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
101
+ tunacode_cli-0.0.44.dist-info/entry_points.txt,sha256=hbkytikj4dGu6rizPuAd_DGUPBGF191RTnhr9wdhORY,51
102
+ tunacode_cli-0.0.44.dist-info/top_level.txt,sha256=lKy2P6BWNi5XSA4DHFvyjQ14V26lDZctwdmhEJrxQbU,9
103
+ tunacode_cli-0.0.44.dist-info/RECORD,,