Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
launch: install.ps1 child scope and stderr note, tuning result line, Windows watch hint
Niko1221d24780209465
diff --git a/packaging/install.ps1 b/packaging/install.ps1index 37fe079a3..84afa615c 100644--- a/packaging/install.ps1+++ b/packaging/install.ps1@@ -17,6 +17,7 @@# folder (a URL) to use it, for example a local test feed: $env:STRATA_FEED='http://127.0.0.1:8099'; irm http://127.0.0.1:8099/install.ps1 | iex# Optional: $env:STRATA_DATA_DIR (default %LOCALAPPDATA%\Strata), $env:STRATA_INSTALL_TEST_TRUST='1' (a test feed: trust only its# test-trust.json for step 4), $env:STRATA_NO_PATH='1' (do not change the user PATH).+& { # a child scope: `irm | iex` runs in the caller's scope, and this script's variables must not overwrite the caller's$ErrorActionPreference = 'Stop'$ProgressPreference = 'SilentlyContinue'@@ -76,8 +77,11 @@ try {}Write-Host "Checking the release's signature..."$strata = Join-Path $incoming 'bin\strata.cmd'+ $prevEap = $ErrorActionPreference; $ErrorActionPreference = 'Continue' # a native program's stderr note must not stop the script$out = & $strata update --check --no-engine --feed $feed 2>&1 | Out-String- if ($LASTEXITCODE -ne 0) {+ $code = $LASTEXITCODE+ $ErrorActionPreference = $prevEap+ if ($code -ne 0) {($out -split "`n" | Select-Object -First 6 | ForEach-Object { " $_" }) | ForEach-Object { [Console]::Error.WriteLine($_) }Remove-Item -Recurse -Force $incomingDie "the release folder's signed feed could not be verified, so nothing was installed. If you trust this source, ask its owner to publish a signed feed."@@ -105,3 +109,4 @@ try {finally {Remove-Item -Recurse -Force $work -ErrorAction SilentlyContinue}+}diff --git a/strata_cli/launch/cmd.py b/strata_cli/launch/cmd.pyindex b539ebcd5..59d432cd7 100644--- a/strata_cli/launch/cmd.py+++ b/strata_cli/launch/cmd.py@@ -491,7 +491,9 @@ def run_launch(a: argparse.Namespace) -> int:for n in result.notices:_say(f"[!] {n}")local = next((u for u in result.urls if "127.0.0.1" in u), result.urls[0] if result.urls else "")- if result.key:+ if result.key and os.name == "nt":+ _say(f" Watch it: $env:STRATA_API_KEY = strata launch --show-key; strata monitor --url {local} --credential-env STRATA_API_KEY")+ elif result.key:_say(f" Watch it: STRATA_API_KEY=$(strata launch --show-key) strata monitor --url {local} --credential-env STRATA_API_KEY")else:_say(f" Watch it: strata monitor --url {local}")diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.pyindex 2a14f4bbc..d1415716c 100644--- a/strata_cli/launch/runner.py+++ b/strata_cli/launch/runner.py@@ -491,7 +491,7 @@ class Runner:s.tuned_preset, s.tuned_at = preset["id"], time.strftime("%Y-%m-%d")elif result and result.get("outcome") == "default_confirmed":s.tuned_at = time.strftime("%Y-%m-%d")- self.emit("tune", sentence, 100, level="info" if word in ("faster", "already fastest") else "warn", word=word)+ self.emit("tune", f"Tuning result: {word}. {sentence}", 100, level="info" if word in ("faster", "already fastest") else "warn", word=word)tune_word: str | None = None