refactor(download): remove ProviderCore/download.py, move sanitize_filename to SYS.utils, replace callers to use API.HTTP.HTTPClient

This commit is contained in:
2026-01-06 01:38:59 -08:00
parent 3b363dd536
commit 41c11d39fd
38 changed files with 2640 additions and 526 deletions

View File

@@ -219,17 +219,18 @@ class SharedArgs:
SharedArgs.STORE.choices = SharedArgs.get_store_choices(config)
"""
try:
from Store import Store
# Use the non-instantiating helper so autocomplete doesn't trigger backend init.
from Store.registry import list_configured_backend_names
# If no config provided, try to load it
if config is None:
try:
from SYS.config import load_config
config = load_config()
except Exception:
return []
store = Store(config)
return store.list_backends()
return list_configured_backend_names(config)
except Exception:
# Fallback to empty list if FileStorage isn't available
return []