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

+25 -1
View File
@@ -3,10 +3,32 @@
from __future__ import annotations
from collections.abc import Mapping
from typing import Any, Protocol, runtime_checkable
QueryParams = Mapping[str, list[str]]
class ChannelConnector(Protocol):
"""Channel-owned setup actions called by the settings request owner."""
async def handle(self, action: str, query: QueryParams) -> dict[str, Any]: ...
@runtime_checkable
class ManagedChannelConnector(ChannelConnector, Protocol):
"""Setup whose detached work can participate in gateway maintenance.
The synchronous property must stay true through awaited cleanup. ``close``
returns only after owned writers have stopped; failure retains ownership.
Settings requests account for their own awaited work separately.
"""
@property
def has_pending_work(self) -> bool: ...
async def close(self) -> None: ...
class ChannelConnectError(Exception):
"""User-facing channel connection failure."""
@@ -21,4 +43,6 @@ def query_first(query: QueryParams, key: str) -> str | None:
return values[0] if values else None
__all__ = ["ChannelConnectError", "QueryParams", "query_first"]
__all__ = [
"ChannelConnectError", "ChannelConnector", "ManagedChannelConnector", "QueryParams", "query_first",
]