tunacode-cli 0.0.42__py3-none-any.whl → 0.0.43__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/constants.py +1 -1
- tunacode/core/agents/main.py +26 -24
- {tunacode_cli-0.0.42.dist-info → tunacode_cli-0.0.43.dist-info}/METADATA +1 -1
- {tunacode_cli-0.0.42.dist-info → tunacode_cli-0.0.43.dist-info}/RECORD +8 -8
- {tunacode_cli-0.0.42.dist-info → tunacode_cli-0.0.43.dist-info}/WHEEL +0 -0
- {tunacode_cli-0.0.42.dist-info → tunacode_cli-0.0.43.dist-info}/entry_points.txt +0 -0
- {tunacode_cli-0.0.42.dist-info → tunacode_cli-0.0.43.dist-info}/licenses/LICENSE +0 -0
- {tunacode_cli-0.0.42.dist-info → tunacode_cli-0.0.43.dist-info}/top_level.txt +0 -0
tunacode/constants.py
CHANGED
tunacode/core/agents/main.py
CHANGED
|
@@ -974,27 +974,28 @@ async def process_request(
|
|
|
974
974
|
buffered_tasks = tool_buffer.flush()
|
|
975
975
|
start_time = time.time()
|
|
976
976
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
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
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
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
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
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:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
tunacode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
tunacode/constants.py,sha256=
|
|
2
|
+
tunacode/constants.py,sha256=zg52Wu7g5w4ZJuUNINGUeWx05WT98GaPKP_X-3UF8o4,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
|
|
@@ -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=
|
|
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
|
|
@@ -95,9 +95,9 @@ tunacode/utils/system.py,sha256=FSoibTIH0eybs4oNzbYyufIiV6gb77QaeY2yGqW39AY,1138
|
|
|
95
95
|
tunacode/utils/text_utils.py,sha256=6YBD9QfkDO44-6jxnwRWIpmfIifPG-NqMzy_O2NAouc,7277
|
|
96
96
|
tunacode/utils/token_counter.py,sha256=l5KemYLfsypAtAF_YrDtVKFtBEghydS_MA8c-8mpPvM,2721
|
|
97
97
|
tunacode/utils/user_configuration.py,sha256=Ilz8dpGVJDBE2iLWHAPT0xR8D51VRKV3kIbsAz8Bboc,3275
|
|
98
|
-
tunacode_cli-0.0.
|
|
99
|
-
tunacode_cli-0.0.
|
|
100
|
-
tunacode_cli-0.0.
|
|
101
|
-
tunacode_cli-0.0.
|
|
102
|
-
tunacode_cli-0.0.
|
|
103
|
-
tunacode_cli-0.0.
|
|
98
|
+
tunacode_cli-0.0.43.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
|
|
99
|
+
tunacode_cli-0.0.43.dist-info/METADATA,sha256=zVFTggb6Alb83hgJ6H6XmSaggZxfxY-HZ7jsRrky67c,5203
|
|
100
|
+
tunacode_cli-0.0.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
101
|
+
tunacode_cli-0.0.43.dist-info/entry_points.txt,sha256=hbkytikj4dGu6rizPuAd_DGUPBGF191RTnhr9wdhORY,51
|
|
102
|
+
tunacode_cli-0.0.43.dist-info/top_level.txt,sha256=lKy2P6BWNi5XSA4DHFvyjQ14V26lDZctwdmhEJrxQbU,9
|
|
103
|
+
tunacode_cli-0.0.43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|