@votadev/tooncode 2.2.6 → 2.2.7

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/package.json +2 -2
  2. package/tooncode.py +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@votadev/tooncode",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "🇹🇭 Thai Coding Agent CLI — Claude Code alternative powered by free models. 20 tools, multi-agent team, browser automation, MCP servers.",
5
5
  "author": "VotaLab",
6
6
  "license": "MIT",
@@ -39,4 +39,4 @@
39
39
  "engines": {
40
40
  "node": ">=16"
41
41
  }
42
- }
42
+ }
package/tooncode.py CHANGED
@@ -8,7 +8,7 @@ Usage:
8
8
  python tooncode.py
9
9
  """
10
10
 
11
- VERSION = "2.2.6"
11
+ VERSION = "2.2.7"
12
12
 
13
13
  import httpx
14
14
  import json
@@ -4634,7 +4634,9 @@ OUTPUT THE JSON ARRAY NOW:"""
4634
4634
  shell=True, capture_output=True, text=True,
4635
4635
  encoding="utf-8", errors="replace", timeout=120)
4636
4636
  if r2.returncode == 0:
4637
- console.print(f"[bold green]Updated to v{latest}! Restart tooncode to use new version.[/bold green]")
4637
+ console.print(f"[bold green]Updated to v{latest}! Restarting...[/bold green]")
4638
+ # Auto-restart with same args
4639
+ os.execv(sys.executable, [sys.executable] + sys.argv)
4638
4640
  else:
4639
4641
  console.print(f"[error]Update failed: {r2.stderr[:200]}[/error]")
4640
4642
  console.print("[dim]Try manually: npm install -g @votadev/tooncode[/dim]")