perf(tui): shrink standalone builds and target native bindings (#6432)
* perf(tui): shrink standalone builds without dropping features * fix(tui): resolve macOS diagram fonts through CoreText * fix(webui): preserve history pagination at the page boundary * docs(tui): streamline release preflight guidance --------- Co-authored-by: Xubin Ren <52506698+Re-bin@users.noreply.github.com>
This commit is contained in:
1 parent
0e0df327c8
commit
ae7fed88e2
21 files changed
+424
-82
No files matched your search
@@ -1,7 +1,9 @@
|
||||
"""Keep shipped relinking instructions aligned with the pinned TUI runtime."""
|
||||
"""Keep shipped corresponding source and runtime materials complete and aligned."""
|
||||
|
||||
import importlib.util
|
||||
import io
|
||||
import json
|
||||
import tarfile
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
@@ -13,6 +15,22 @@ packager = importlib.util.module_from_spec(SPEC)
|
||||
SPEC.loader.exec_module(packager)
|
||||
|
||||
|
||||
def test_corresponding_source_contains_build_helpers_byte_for_byte():
|
||||
root = ROOT / "tui"
|
||||
with tarfile.open(fileobj=io.BytesIO(packager._source_archive(root)), mode="r:gz") as archive:
|
||||
for relative in (
|
||||
"scripts/build.ts",
|
||||
"scripts/targets.ts",
|
||||
"scripts/target-bindings.ts",
|
||||
"scripts/prepare-target.ts",
|
||||
"scripts/release-notices.ts",
|
||||
"scripts/package-release.py",
|
||||
):
|
||||
source = archive.extractfile(f"nanobot-tui-source/tui/{relative}")
|
||||
assert source is not None
|
||||
assert source.read() == (root / relative).read_bytes(), relative
|
||||
|
||||
|
||||
def test_current_relinking_matches_pinned_opentui():
|
||||
root = ROOT / "tui"
|
||||
version = json.loads((root / "package.json").read_text())["dependencies"]["@opentui/core"]
|
||||
|
||||
Reference in new issue
Block a user