codegpt-ai 1.8.0 → 1.10.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 +16 -3
- package/package.json +4 -3
package/chat.py
CHANGED
|
@@ -149,7 +149,9 @@ AI_TOOLS = {
|
|
|
149
149
|
"name": "Ollama",
|
|
150
150
|
"desc": "Run local LLMs (already installed)",
|
|
151
151
|
"bin": "ollama",
|
|
152
|
-
"install": ["
|
|
152
|
+
"install": ["pip", "install", "ollama"],
|
|
153
|
+
"install_termux": ["pkg", "install", "-y", "ollama"],
|
|
154
|
+
"install_win": ["winget", "install", "Ollama.Ollama"],
|
|
153
155
|
"default_args": ["run", "llama3.2"],
|
|
154
156
|
"needs_key": "None — runs locally",
|
|
155
157
|
},
|
|
@@ -157,7 +159,9 @@ AI_TOOLS = {
|
|
|
157
159
|
"name": "jq",
|
|
158
160
|
"desc": "JSON processor for the command line",
|
|
159
161
|
"bin": "jq",
|
|
160
|
-
"install": ["
|
|
162
|
+
"install": ["pip", "install", "jq"],
|
|
163
|
+
"install_termux": ["pkg", "install", "-y", "jq"],
|
|
164
|
+
"install_win": ["winget", "install", "jqlang.jq"],
|
|
161
165
|
"default_args": [],
|
|
162
166
|
"needs_key": "None",
|
|
163
167
|
},
|
|
@@ -5613,7 +5617,16 @@ def main():
|
|
|
5613
5617
|
audit_log(f"TOOL_EXIT", tool_key)
|
|
5614
5618
|
else:
|
|
5615
5619
|
print_sys(f"Installing {tool['name']}...")
|
|
5616
|
-
|
|
5620
|
+
|
|
5621
|
+
# Pick platform-specific install command
|
|
5622
|
+
is_termux = os.path.exists("/data/data/com.termux")
|
|
5623
|
+
if is_termux and "install_termux" in tool:
|
|
5624
|
+
install_cmd = list(tool["install_termux"])
|
|
5625
|
+
elif os.name == "nt" and "install_win" in tool:
|
|
5626
|
+
install_cmd = list(tool["install_win"])
|
|
5627
|
+
else:
|
|
5628
|
+
install_cmd = list(tool["install"])
|
|
5629
|
+
|
|
5617
5630
|
is_npm = install_cmd[0] in ("npm", "npm.cmd")
|
|
5618
5631
|
|
|
5619
5632
|
if is_npm and os.name == "nt":
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codegpt-ai",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Local AI Assistant Hub — 80+ commands, 29 tools, 8 agents, training, security",
|
|
5
5
|
"author": "ArukuX",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
8
|
-
"
|
|
9
|
-
"codegpt": "./bin/ai.js"
|
|
8
|
+
"code": "./bin/ai.js",
|
|
9
|
+
"codegpt": "./bin/ai.js",
|
|
10
|
+
"ai": "./bin/ai.js"
|
|
10
11
|
},
|
|
11
12
|
"scripts": {
|
|
12
13
|
"postinstall": "node bin/setup.js"
|