Keep downloads bound to their remote representation and publish through atomic destination-local staging. Serialize shared partial ownership. Keep explicit CA trust scoped to provider probes. Preserve checkpoint history and edited files, validate all profile inputs before dependency publication, and separate data removal from installed runtime ownership. Exclude machine-specific PM state from portable transfers. Keep plugin files and nested skill tools intact. Preserve native test isolation. Focused native Windows receipts cover the individual repairs and their integration. This commit does not claim a full-suite or release build.
14 lines
521 B
Python
14 lines
521 B
Python
"""Machine-specific state excluded from portable home transfers."""
|
|
from __future__ import annotations
|
|
|
|
|
|
# Dependency generations, downloaded tools, and partial transfers belong to this machine.
|
|
PM_RUNTIME_ROOT_DIRS = frozenset({"installs", "tools", "cache"})
|
|
|
|
|
|
def profile_root_entry(parts: tuple[str, ...]) -> str | None:
|
|
"""Locate a home-root entry without excluding same-named skill/plugin data."""
|
|
if len(parts) >= 3 and parts[0] == "profiles":
|
|
return parts[2]
|
|
return parts[0] if parts else None
|