# Instaleaza Artemis — aplicație desktop nativă pentru agentul Qwen3.8-Flash-Next. # # irm http://10.11.90.169:8088/artemis.ps1 | iex # # Ruleaz-o din nou oricand ca sa actualizezi: aduce ultima versiune si repornește. function Install-Artemis { $ProgressPreference = 'SilentlyContinue' try { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 } catch {} $srv = if ($env:ARTEMIS_SRV) { $env:ARTEMIS_SRV } else { 'http://10.11.90.169:8088' } $modelSrv = if ($env:ARTEMIS_MODEL) { $env:ARTEMIS_MODEL } else { 'http://10.11.90.169:8099' } $dir = Join-Path $env:LOCALAPPDATA 'Artemis' $bin = Join-Path $dir 'artemis.exe' function ok($m) { Write-Host " [ok] $m" -ForegroundColor Green } function rau($m) { Write-Host " [nu] $m" -ForegroundColor Red } function info($m) { Write-Host " $m" -ForegroundColor DarkGray } Write-Host "== Artemis ==" -ForegroundColor Cyan # ---- 1. WebView2: motorul ferestrei. Pe Win10/11 e de obicei deja instalat. ---- $w1 = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' $w2 = 'HKCU:\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' if ((Test-Path $w1) -or (Test-Path $w2)) { ok "WebView2 prezent" } else { info "instalez WebView2 (motorul ferestrei)..." try { $s = Join-Path $env:TEMP 'MicrosoftEdgeWebview2Setup.exe' Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/p/?LinkId=2124703' -OutFile $s -TimeoutSec 300 Start-Process -FilePath $s -ArgumentList '/silent','/install' -Wait Remove-Item $s -ErrorAction SilentlyContinue ok "WebView2 instalat" } catch { rau "nu am putut instala WebView2: $_"; info "ia-l manual de la microsoft.com/edge/webview2" } } # ---- 2. serverul de model ---- try { $null = Invoke-RestMethod -Uri "$modelSrv/v1/models" -TimeoutSec 10 ok "serverul de model răspunde: $modelSrv" } catch { rau "nu ajung la $modelSrv" info "ești pe VPN? e pornit serverul? Aplicația se instalează oricum;" info "adresa se poate schimba din Setări." } # ---- 3. binarul ---- New-Item -ItemType Directory -Force -Path $dir | Out-Null Get-Process artemis -ErrorAction SilentlyContinue | ForEach-Object { $_.Kill(); info "am oprit instanța care rula" } Start-Sleep -Milliseconds 700 try { Invoke-WebRequest -Uri "$srv/artemis.exe" -OutFile "$bin.nou" -TimeoutSec 600 Move-Item "$bin.nou" $bin -Force ok "instalat: $bin ($([math]::Round((Get-Item $bin).Length / 1MB, 1)) MB)" } catch { rau "nu am putut descărca aplicația: $_"; return } # ---- 4. scurtături ---- try { $ws = New-Object -ComObject WScript.Shell foreach ($loc in @( (Join-Path ([Environment]::GetFolderPath('Desktop')) 'Artemis.lnk'), (Join-Path ([Environment]::GetFolderPath('StartMenu')) 'Programs\Artemis.lnk') )) { New-Item -ItemType Directory -Force -Path (Split-Path $loc) | Out-Null $sc = $ws.CreateShortcut($loc) $sc.TargetPath = $bin $sc.WorkingDirectory = $dir $sc.Description = 'Agent local Qwen3.8-Flash-Next' $sc.Save() } ok "scurtături pe desktop și în meniul Start" } catch { info "nu am putut face scurtăturile: $_" } Write-Host "" ok "gata — pornesc Artemis" info "data viitoare: din meniul Start sau de pe desktop" info "actualizare: rulează din nou aceeași comandă irm" Write-Host "" # ---- 5. pornire ---- $env:ARTEMIS_MODEL_SRV = $modelSrv Start-Process -FilePath $bin -WorkingDirectory $dir } Install-Artemis