codegpt-ai 2.12.0 → 2.15.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 +31 -0
  2. package/package.json +10 -7
package/chat.py CHANGED
@@ -438,6 +438,7 @@ COMMANDS = {
438
438
  "/audit": "View security audit log",
439
439
  "/security": "Security status dashboard",
440
440
  "/permissions": "View/reset action permissions",
441
+ "/desktop": "Launch CodeGPT desktop app",
441
442
  "/skill": "Create a custom command (/skill name prompt)",
442
443
  "/skills": "List custom skills",
443
444
  "/browse": "Browse a URL and summarize (/browse url)",
@@ -7169,6 +7170,36 @@ def main():
7169
7170
  print_sys(f" Prompt: {skill['prompt'][:60]}...")
7170
7171
  continue
7171
7172
 
7173
+ elif cmd == "/desktop":
7174
+ # Install pywebview if needed, then launch desktop app
7175
+ try:
7176
+ import webview
7177
+ print_sys("Launching desktop app...")
7178
+ project_dir = str(Path(__file__).parent)
7179
+ subprocess.Popen(
7180
+ [sys.executable, os.path.join(project_dir, "desktop.py")],
7181
+ cwd=project_dir,
7182
+ )
7183
+ print_sys("Desktop app opened in a new window.")
7184
+ except ImportError:
7185
+ print_sys("Installing desktop app (pywebview)...")
7186
+ result = subprocess.run(
7187
+ [sys.executable, "-m", "pip", "install", "pywebview"],
7188
+ capture_output=True, text=True, timeout=120,
7189
+ )
7190
+ if result.returncode == 0:
7191
+ print_success("Installed. Launching...")
7192
+ project_dir = str(Path(__file__).parent)
7193
+ subprocess.Popen(
7194
+ [sys.executable, os.path.join(project_dir, "desktop.py")],
7195
+ cwd=project_dir,
7196
+ )
7197
+ print_sys("Desktop app opened.")
7198
+ else:
7199
+ print_err(f"Install failed: {result.stderr[:200]}")
7200
+ print_sys("Try manually: pip install pywebview")
7201
+ continue
7202
+
7172
7203
  elif cmd == "/permissions":
7173
7204
  sub = user_input[len("/permissions "):].strip().lower()
7174
7205
  if sub == "reset":
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "codegpt-ai",
3
- "version": "2.12.0",
4
- "description": "Local AI Assistant Hub — 80+ commands, 29 tools, 8 agents, training, security",
3
+ "version": "2.15.0",
4
+ "description": "Local AI Assistant Hub — 123 commands, 26 tools, 8 agents, multi-AI, security. No cloud needed.",
5
5
  "author": "ArukuX",
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -16,9 +16,15 @@
16
16
  "ollama",
17
17
  "llm",
18
18
  "chatgpt",
19
+ "claude",
20
+ "codex",
21
+ "gemini",
19
22
  "terminal",
20
23
  "assistant",
21
- "agents"
24
+ "agents",
25
+ "local-ai",
26
+ "coding",
27
+ "security"
22
28
  ],
23
29
  "repository": {
24
30
  "type": "git",
@@ -34,8 +40,5 @@
34
40
  "ai_cli/",
35
41
  "CLAUDE.md",
36
42
  "README.md"
37
- ],
38
- "dependencies": {
39
- "codegpt-ai": "^1.28.2"
40
- }
43
+ ]
41
44
  }