myagent-ai 1.4.1 → 1.4.2

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/core/version.py CHANGED
@@ -11,7 +11,7 @@ import subprocess
11
11
  from pathlib import Path
12
12
 
13
13
  # ── 基线版本(与 setup.py / package.json 保持一致) ──
14
- BASE_VERSION = "1.4.1"
14
+ BASE_VERSION = "1.4.2"
15
15
 
16
16
 
17
17
  def _version_from_git() -> str:
@@ -9,7 +9,7 @@ param(
9
9
 
10
10
  $ErrorActionPreference = "Stop"
11
11
  $PKG_NAME = "myagent-ai"
12
- $PKG_VERSION = "1.4.0"
12
+ $PKG_VERSION = "1.4.2"
13
13
 
14
14
  # Allow running scripts for the current process
15
15
  if ($PSVersionTable.PSVersion.Major -ge 5) {
@@ -43,12 +43,12 @@ function Check-Python {
43
43
  $pyVer = (python --version 2>$null)
44
44
  if ($pyVer) {
45
45
  $verNum = [version]($pyVer -replace 'Python\s+(\S+)', '$1')
46
- if ($verNum -ge [version]"3.10") {
46
+ if ($verNum -ge [version]"3.14") {
47
47
  $Script:PythonCmd = "python"
48
48
  Write-Host "[OK] Python $verNum found" -ForegroundColor Green
49
49
  return $true
50
50
  } else {
51
- Write-Host "[!] Python $verNum found, but 3.10+ required" -ForegroundColor Yellow
51
+ Write-Host "[!] Python $verNum found, upgrading to 3.14 ..." -ForegroundColor Yellow
52
52
  return $false
53
53
  }
54
54
  }
@@ -68,7 +68,7 @@ function Check-Python {
68
68
  foreach ($pyPath in $commonPaths) {
69
69
  if (Test-Path $pyPath) {
70
70
  $verNum = (& $pyPath --version 2>$null) -replace 'Python\s+(\S+)', '$1'
71
- if ($verNum -and [version]$verNum -ge [version]"3.10") {
71
+ if ($verNum -and [version]$verNum -ge [version]"3.14") {
72
72
  $Script:PythonCmd = $pyPath
73
73
  Write-Host "[OK] Python $verNum found at $pyPath" -ForegroundColor Green
74
74
  return $true
@@ -142,7 +142,7 @@ function Install-Python {
142
142
  }
143
143
 
144
144
  Write-Host "[x] Failed to install Python." -ForegroundColor Red
145
- Write-Host " Please install Python 3.10+ manually: https://www.python.org/downloads/" -ForegroundColor Gray
145
+ Write-Host " Please install Python 3.14+ manually: https://www.python.org/downloads/" -ForegroundColor Gray
146
146
  exit 1
147
147
  }
148
148
 
@@ -21,7 +21,7 @@ NO_DEPS=false
21
21
  DRY_RUN=false
22
22
  SCRIPT_URL="https://raw.githubusercontent.com/ctz168/myagent/main/install/install.sh"
23
23
  PKG_NAME="myagent-ai"
24
- PKG_VERSION="1.4.0"
24
+ PKG_VERSION="1.4.2"
25
25
 
26
26
  for arg in "$@"; do
27
27
  case "$arg" in
@@ -99,12 +99,12 @@ check_python() {
99
99
  local major minor
100
100
  major="$(echo "$ver" | cut -d. -f1)"
101
101
  minor="$(echo "$ver" | cut -d. -f2)"
102
- if [ "$major" -ge 3 ] && [ "$minor" -ge 10 ]; then
102
+ if [ "$major" -ge 3 ] && [ "$minor" -ge 14 ]; then
103
103
  _PYTHON_CMD="$py_cmd"
104
104
  success "Python $ver ($py_cmd)"
105
105
  return 0
106
106
  fi
107
- warn "Python $ver found, but 3.10+ required"
107
+ warn "Python $ver found, upgrading to 3.14 ..."
108
108
  return 1
109
109
  }
110
110
 
@@ -221,7 +221,7 @@ install_python() {
221
221
  fi
222
222
  fi
223
223
 
224
- err "Failed to install Python. Please install Python 3.10+ manually."
224
+ err "Failed to install Python. Please install Python 3.14+ manually."
225
225
  info " macOS: https://www.python.org/downloads/"
226
226
  info " Linux: https://wiki.python.org/moin/BeginnersGuide/Download"
227
227
  exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
package/setup.py CHANGED
@@ -9,7 +9,7 @@ from pathlib import Path
9
9
  _version_path = Path(__file__).parent / "core" / "version.py"
10
10
  _version_vars = {}
11
11
  exec(_version_path.read_text(), _version_vars)
12
- __version__ = _version_vars.get("BASE_VERSION", "1.4.1")
12
+ __version__ = _version_vars.get("BASE_VERSION", "1.4.2")
13
13
 
14
14
  setup(
15
15
  name="myagent",