feat(update): integrate managed installs and recoverable in-app updates (#6168)

Add owner-aware Stable and Preview updates with explicit consent, verified release plans, protected process handoff and bounded service recovery. Keep configuration and conversations separate from program rollback.

Include the compact About controls, Windows long-path support, native package recovery checks and optional macOS Dock lifecycle integration. Preserve documented guidance for installations owned by other managers.

This code integration does not publish packages, enable signing or advance the public update channel.

Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
This commit is contained in:
Xubin Renandchengyongru authored and GitHub committed 2026-10-21 19:16:56 +08:00
1 parent 76da55994b
commit fbb61a373f
216 files changed
+27948 -1084

No files matched your search

+3 -3
View File
@@ -196,7 +196,7 @@ class TestHistoryWithCursor:
assert [entry["cursor"] for entry in entries] == list(range(21, 101))
def test_write_entries_uses_atomic_write(self, tmp_path):
"""_write_entries uses temp file + os.replace for atomicity."""
"""_write_entries uses a temporary file and atomic replacement."""
store = MemoryStore(tmp_path)
store.append_history("event 1")
store.append_history("event 2")
@@ -221,11 +221,11 @@ class TestHistoryWithCursor:
store.append_history("event 1")
entries = store.read_unprocessed_history(since_cursor=0)
# Mock os.replace to raise an exception
# Fail the platform-independent replacement boundary.
def failing_replace(*args, **kwargs):
raise RuntimeError("Simulated failure")
monkeypatch.setattr('os.replace', failing_replace)
monkeypatch.setattr('nanobot.utils.atomic_file.replace_atomic', failing_replace)
with pytest.raises(RuntimeError):
store._write_entries(entries)