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++
packaging: the monitor bundle's LICENSE check accepts CRLF; LICENSE is eol=lf in .gitattributes
Niko1221d442b0307f16
diff --git a/.gitattributes b/.gitattributesindex bd4b5d527..112d6aa74 100644--- a/.gitattributes+++ b/.gitattributes@@ -10,3 +10,6 @@ tests/data/native_experts/** -text# the quant yardstick's text set: tokenized byte for byte (set.ids.json), never convert its line endingsdata/quant_quality/** -text++# the license text is shipped and checked as LF text on every checkout+LICENSE text eol=lfdiff --git a/packaging/monitor_bundle.py b/packaging/monitor_bundle.pyindex 41f3e2bbf..ea67cddcc 100644--- a/packaging/monitor_bundle.py+++ b/packaging/monitor_bundle.py@@ -116,7 +116,7 @@ def verify(bundle: Path) -> dict:if archive.testzip() is not None:raise ValueError("bundle CRC failure")files = {name: digest(archive.read(name)) for name in members}- if report["schema_version"] >= 2 and not archive.read(LICENSE_NOTICE).startswith(b"MIT License\n"):+ if report["schema_version"] >= 2 and not archive.read(LICENSE_NOTICE).replace(b"\r\n", b"\n").startswith(b"MIT License\n"):raise ValueError("bundle license notice is invalid")if report.get("files") != files:raise ValueError("bundle member checksum mismatch")diff --git a/tests/terminal/test_monitor_bundle.py b/tests/terminal/test_monitor_bundle.pyindex 9bfe139f2..5164f034b 100644--- a/tests/terminal/test_monitor_bundle.py+++ b/tests/terminal/test_monitor_bundle.py@@ -48,6 +48,25 @@ class MonitorBundleTests(unittest.TestCase):verify(destination)return destination+ def test_crlf_license_checkout_still_verifies(self):+ """A Windows checkout (autocrlf) ships LICENSE with CRLF; the bundle must still verify."""+ real_copy = BUILDER_MODULE.shutil.copyfile++ def crlf_license(src, dst, *args, **kwargs):+ if Path(src).name != "LICENSE":+ return real_copy(src, dst, *args, **kwargs)+ text = Path(src).read_bytes().replace(b"\r\n", b"\n").replace(b"\n", b"\r\n")+ Path(dst).write_bytes(text)+ return dst++ with tempfile.TemporaryDirectory() as directory:+ bundle = Path(directory) / "monitor.pyz"+ with mock.patch.object(BUILDER_MODULE.shutil, "copyfile", crlf_license):+ build(bundle)+ with zipfile.ZipFile(bundle) as archive:+ self.assertIn(b"MIT License\r\n", archive.read("LICENSE"))+ self.assertEqual(verify(bundle)["schema_version"], 4)+def test_update_rollback_and_commit_keep_one_verified_previous_copy(self):with tempfile.TemporaryDirectory() as directory:root = Path(directory)