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:
1 parent
76da55994b
commit
fbb61a373f
216 files changed
+27948
-1084
No files matched your search
@@ -11,6 +11,34 @@ import pytest
|
||||
from scripts.check_import_boundaries import Violation, find_violations
|
||||
|
||||
|
||||
@pytest.mark.parametrize("module", [
|
||||
"nanobot.agent.loop", "nanobot.session.state", "nanobot.runtime_admission",
|
||||
"nanobot.data_access", "nanobot.installation_lock",
|
||||
])
|
||||
def test_runtime_owners_do_not_depend_on_update_policy(module: str) -> None:
|
||||
assert find_violations("from nanobot.update_service import UpdateService", module) == [
|
||||
Violation("update-policy-direction", "nanobot.update_service.UpdateService", 1),
|
||||
]
|
||||
|
||||
|
||||
def test_updater_uses_process_contracts_not_agent_or_client_implementations() -> None:
|
||||
assert find_violations("from nanobot.agent.loop import AgentLoop", "nanobot.update_stop") == [
|
||||
Violation("update-domain", "nanobot.agent.loop.AgentLoop", 1),
|
||||
]
|
||||
assert find_violations(
|
||||
"from nanobot.gateway.runtime import GatewayRuntime", "nanobot.update_stop",
|
||||
) == []
|
||||
assert find_violations(
|
||||
"from nanobot.update_stop import watch_gateway_stop", "nanobot.cli.gateway_runtime",
|
||||
) == []
|
||||
assert find_violations(
|
||||
"from nanobot.cli.gateway_runtime import _run_gateway", "nanobot.update_restart",
|
||||
) == []
|
||||
assert find_violations(
|
||||
"from nanobot.agent.loop import AgentLoop", "nanobot.update_restart",
|
||||
) == [Violation("update-restart-adapter", "nanobot.agent.loop.AgentLoop", 1)]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("source", "target", "line"),
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user