Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(show): map macos universal runtime archives

cyh93cbdf2ef1a8
diff --git a/core/show_runtime.py b/core/show_runtime.py
index 4c37ab67e..b52f6ea10 100644
--- a/core/show_runtime.py
+++ b/core/show_runtime.py
@@ -7,6 +7,7 @@ import importlib.resources as package_resources
import json
import logging
import os
+import platform
import shlex
import shutil
import signal
@@ -517,6 +518,8 @@ def _default_runtime_archive_url() -> str:
def _runtime_platform_tag() -> str:
raw = get_platform().lower()
machine = raw.rsplit("-", 1)[-1]
+ if machine == "universal2":
+ machine = platform.machine().lower()
if machine in {"amd64", "x86_64"}:
arch = "x64"
elif machine in {"arm64", "aarch64"}:
diff --git a/tests/test_ui_show_pages.py b/tests/test_ui_show_pages.py
index e5783548b..86696e967 100644
--- a/tests/test_ui_show_pages.py
+++ b/tests/test_ui_show_pages.py
@@ -6,7 +6,7 @@ import pytest
from config import paths
from core.show_pages import ShowPageStore, ensure_show_page_dir
-from core.show_runtime import ShowRuntimeManager, _safe_extract_tar, set_show_runtime_manager_for_tests
+from core.show_runtime import ShowRuntimeManager, _runtime_platform_tag, _safe_extract_tar, set_show_runtime_manager_for_tests
from tests.test_ui_remote_access_auth import _mock_interface, _remote_peer, _save_config
from vibe import remote_access
from vibe.ui_server import app
@@ -305,6 +305,13 @@ def test_show_runtime_manager_uses_managed_runtime_bin(tmp_path):
assert asyncio.run(manager._resolve_managed_command()) == [str(bin_path)]
+def test_show_runtime_archive_platform_tag_maps_macos_universal2_to_machine(monkeypatch):
+ monkeypatch.setattr("core.show_runtime.get_platform", lambda: "macosx-14.0-universal2")
+ monkeypatch.setattr("core.show_runtime.platform.machine", lambda: "arm64")
+
+ assert _runtime_platform_tag() == "darwin-arm64"
+
+
def test_show_runtime_manager_installs_from_prebuilt_archive(monkeypatch, tmp_path):
archive_root = tmp_path / "archive-root"
cli_path = archive_root / "node_modules" / "@avibe" / "show-runtime" / "dist" / "cli.js"