codegpt-ai 1.24.0 → 1.25.0
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.
- package/chat.py +8 -31
- package/package.json +1 -1
package/chat.py
CHANGED
|
@@ -5692,30 +5692,14 @@ def main():
|
|
|
5692
5692
|
}
|
|
5693
5693
|
alt = alternatives.get(tool_key, "Check /tools for available alternatives")
|
|
5694
5694
|
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
title="[bold red]Not Available[/]",
|
|
5704
|
-
border_style="red", padding=(0, 1), width=tw(),
|
|
5705
|
-
))
|
|
5706
|
-
else:
|
|
5707
|
-
console.print(Panel(
|
|
5708
|
-
Text.from_markup(
|
|
5709
|
-
f"[bold red]{tool['name']} is not available on Termux[/]\n\n"
|
|
5710
|
-
f" [bold]Why:[/]\n"
|
|
5711
|
-
f" {reason}\n\n"
|
|
5712
|
-
f" [bold]Alternatives:[/]\n"
|
|
5713
|
-
f" [bright_cyan]{alt}[/]\n\n"
|
|
5714
|
-
f" [dim]Or use this tool on your PC instead.[/]"
|
|
5715
|
-
),
|
|
5716
|
-
title="[bold red]Not Supported[/]",
|
|
5717
|
-
border_style="red", padding=(1, 2), width=tw(),
|
|
5718
|
-
))
|
|
5695
|
+
console.print()
|
|
5696
|
+
console.print(Text.from_markup(f" [bold red]✗ {tool['name']} — not available on Termux[/]"))
|
|
5697
|
+
console.print()
|
|
5698
|
+
console.print(Text.from_markup(f" [bold]Why:[/] {reason}"))
|
|
5699
|
+
console.print()
|
|
5700
|
+
console.print(Text.from_markup(f" [bold]Try instead:[/] [bright_cyan]{alt}[/]"))
|
|
5701
|
+
console.print(Text(" Or use this tool on your PC.", style="dim"))
|
|
5702
|
+
console.print()
|
|
5719
5703
|
continue
|
|
5720
5704
|
tool_args = user_input[len(cmd):].strip()
|
|
5721
5705
|
|
|
@@ -5793,13 +5777,6 @@ def main():
|
|
|
5793
5777
|
print_sys("Back to CodeGPT.")
|
|
5794
5778
|
audit_log(f"TOOL_EXIT", tool_key)
|
|
5795
5779
|
else:
|
|
5796
|
-
# Check platform support
|
|
5797
|
-
is_termux = os.path.exists("/data/data/com.termux")
|
|
5798
|
-
if is_termux and not tool.get("termux", True):
|
|
5799
|
-
print_err(f"{tool['name']} doesn't support Termux/ARM.")
|
|
5800
|
-
print_sys("Use a desktop/PC for this tool.")
|
|
5801
|
-
continue
|
|
5802
|
-
|
|
5803
5780
|
# Pick platform-specific install command
|
|
5804
5781
|
if is_termux and "install_termux" in tool:
|
|
5805
5782
|
install_cmd = list(tool["install_termux"])
|