codegpt-ai 1.10.0 → 1.12.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.
Files changed (2) hide show
  1. package/chat.py +12 -1
  2. package/package.json +1 -1
package/chat.py CHANGED
@@ -96,6 +96,7 @@ AI_TOOLS = {
96
96
  "install": ["npm", "i", "-g", "opencode-ai"],
97
97
  "default_args": [],
98
98
  "needs_key": "ANTHROPIC_API_KEY or OPENAI_API_KEY",
99
+ "platforms": ["win32", "linux", "darwin"], # No ARM/Termux
99
100
  },
100
101
  "codex": {
101
102
  "name": "Codex",
@@ -5616,10 +5617,20 @@ def main():
5616
5617
  print_sys("Back to CodeGPT.")
5617
5618
  audit_log(f"TOOL_EXIT", tool_key)
5618
5619
  else:
5620
+ # Check platform support
5621
+ is_termux = os.path.exists("/data/data/com.termux")
5622
+ platforms = tool.get("platforms")
5623
+ if platforms:
5624
+ if is_termux and "termux" not in platforms and "linux" not in platforms:
5625
+ print_err(f"{tool['name']} doesn't support Termux/ARM.")
5626
+ continue
5627
+ elif sys.platform not in platforms and not is_termux:
5628
+ print_err(f"{tool['name']} doesn't support this platform.")
5629
+ continue
5630
+
5619
5631
  print_sys(f"Installing {tool['name']}...")
5620
5632
 
5621
5633
  # Pick platform-specific install command
5622
- is_termux = os.path.exists("/data/data/com.termux")
5623
5634
  if is_termux and "install_termux" in tool:
5624
5635
  install_cmd = list(tool["install_termux"])
5625
5636
  elif os.name == "nt" and "install_win" in tool:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codegpt-ai",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "description": "Local AI Assistant Hub — 80+ commands, 29 tools, 8 agents, training, security",
5
5
  "author": "ArukuX",
6
6
  "license": "MIT",