beast-agent 0.23.0 → 0.23.1

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 +1 -1
  2. package/src/main.js +18 -12
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beast-agent",
3
3
  "productName": "Beast Agent",
4
- "version": "0.23.0",
4
+ "version": "0.23.1",
5
5
  "description": "Ultra-fast local agent shell for Windows.",
6
6
  "author": "algokodcom (AlgoKod)",
7
7
  "license": "MIT",
package/src/main.js CHANGED
@@ -4073,20 +4073,26 @@ function npmSelfUpdate() {
4073
4073
  " exit 1",
4074
4074
  "}",
4075
4075
  "L 'npm install tamam, yeniden baslatma'",
4076
- "$shim = Get-Command 'beast-agent.cmd' -ErrorAction SilentlyContinue",
4077
- "if ($shim) {",
4078
- " L \"shim uzerinden: $($shim.Source)\"",
4079
- " Start-Process -FilePath $shim.Source -WindowStyle Hidden",
4076
+ "$prefix = (& $npmCmd prefix -g 2>$null)",
4077
+ "if (-not $prefix) { $prefix = Join-Path $env:APPDATA 'npm' }",
4078
+ "$appDir = Join-Path $prefix 'node_modules\\beast-agent'",
4079
+ "$exe = Join-Path $appDir 'node_modules\\electron\\dist\\electron.exe'",
4080
+ "if (-not (Test-Path $exe)) { $exe = Join-Path $prefix 'node_modules\\electron\\dist\\electron.exe' }",
4081
+ "if (Test-Path $exe) {",
4082
+ " L \"dogrudan electron: $exe\"",
4083
+ " # WindowStyle Hidden KULLANMA: gizli bayragi Chromium miras alir, ilk pencere tray'de kaybolur",
4084
+ " Start-Process -FilePath $exe -ArgumentList \"`\"$appDir`\"\"",
4080
4085
  "} else {",
4081
- " $prefix = (& $npmCmd prefix -g 2>$null)",
4082
- " if (-not $prefix) { $prefix = Join-Path $env:APPDATA 'npm' }",
4083
- " $exe = Join-Path $prefix 'node_modules\\electron\\dist\\electron.exe'",
4084
- " if (-not (Test-Path $exe)) { $exe = Join-Path $prefix 'node_modules\\beast-agent\\node_modules\\electron\\dist\\electron.exe' }",
4085
- " $appDir = Join-Path $prefix 'node_modules\\beast-agent'",
4086
- " L \"shim bulunamadi - dogrudan: $exe\"",
4087
- " Start-Process -FilePath $exe -ArgumentList \"`\"$appDir`\"\" -WindowStyle Hidden",
4086
+ " $shim = Get-Command 'beast-agent.cmd' -ErrorAction SilentlyContinue",
4087
+ " if ($shim) {",
4088
+ " L \"shim uzerinden: $($shim.Source)\"",
4089
+ " Start-Process -FilePath $shim.Source",
4090
+ " } else {",
4091
+ " L 'HATA: electron.exe ve shim bulunamadi - yeniden baslatma yapilamadi'",
4092
+ " exit 1",
4093
+ " }",
4088
4094
  "}",
4089
- "L '=== self-update bitti ==='",
4095
+ "L '=== self-update bitti ==='",
4090
4096
  ].join('\r\n');
4091
4097
  const psFile = path.join(APP_DIR, 'update-helper.ps1');
4092
4098
  fs.writeFileSync(psFile, ps, 'utf8');