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++
Merge f-022-bench: strata bench run fixes from the first real run
Niko122194248305167b
diff --cc packaging/package_terminal.pyindex afa0ee4a9,6deee040e..41005f360--- a/packaging/package_terminal.py+++ b/packaging/package_terminal.py@@@ -281,19 -281,19 +281,25 @@@ def write_archive(root: Path, name: strreturn path- def source_commit() -> str:- """The commit the sources are from. STRATA_BUILD_COMMIT wins (a Docker build copies the files without .git and without git);- otherwise `git rev-parse HEAD`, when git exists and ROOT is a checkout. Empty when neither answers: the archive just has no COMMIT."""- given = os.environ.get("STRATA_BUILD_COMMIT", "").strip().lower()- if re.fullmatch(r"[0-9a-f]{40}", given):- return given+ def build_commit(explicit: str | None = None) -> str | None:- """The full commit this archive is built from: --commit, the STRATA_COMMIT variable, or `git rev-parse HEAD` of the- source tree. None when none of them gives 40 hex digits (a tree copy without .git)."""- for candidate in (explicit, os.environ.get("STRATA_COMMIT")):++ """The full commit this archive is built from: --commit, the STRATA_COMMIT variable, STRATA_BUILD_COMMIT (a Docker build++ copies the files without .git and without git), or `git rev-parse HEAD` of the source tree. None when none of them gives++ 40 hex digits (a tree copy without .git)."""++ for candidate in (explicit, os.environ.get("STRATA_COMMIT"), os.environ.get("STRATA_BUILD_COMMIT")):+ if candidate and re.fullmatch(r"[0-9a-fA-F]{40}", candidate.strip()):+ return candidate.strip().lower()try:- out = subprocess.run(["git", "-C", str(ROOT), "rev-parse", "HEAD"], capture_output=True, text=True).stdout+ out = subprocess.run(["git", "-C", str(ROOT), "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip().lower()- except OSError:+ except OSError: # no git installed- return ""- return out.strip().lower()+ return None+ return out if re.fullmatch(r"[0-9a-f]{40}", out) else None++++def source_commit() -> str:++ """`build_commit()` without an explicit value, as a string (empty when unknown)."""++ return build_commit() or ""++def main() -> int:ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)ap.add_argument("--out", required=True, help="directory to write the archive into")