Add local spoken passages with Google retrieval and isolated runtime setup

This commit is contained in:
karl committed 2026-10-13 20:18:44 +02:00
1 parent bc9459785d
commit dab703413e
55 files changed
+3633 -70

No files matched your search

+2 -2
View File
@@ -258,7 +258,7 @@ def _preserved_snapshot(destination, owned):
return snapshot
def stage_resources(destination, sources, validate=None):
def stage_resources(destination, sources, validate=None, owned_names=None):
"""Replace a verified complete resource directory and preserve other assets."""
destination = Path(destination).absolute()
if destination.parent != destination.parent.resolve():
@@ -272,7 +272,7 @@ def stage_resources(destination, sources, validate=None):
_check_tree(destination)
if (destination / ".searchi-stage-complete").exists():
raise RuntimeError("Reserved staging completion marker exists without its journal")
owned = _previous_owned(destination)
owned = _previous_owned(destination) if owned_names is None else set(owned_names)
owned_keys = {_resource_key(path) for path in owned}
preserved = _preserved_snapshot(destination, owned_keys)
records = []