pre-migration commit
This commit is contained in:
+1
-1
@@ -249,7 +249,7 @@ class SharedArgs:
|
||||
if config is None:
|
||||
try:
|
||||
from SYS.config import load_config
|
||||
config = load_config()
|
||||
config = load_config(emit_summary=False)
|
||||
except Exception:
|
||||
SharedArgs._cached_available_stores = []
|
||||
return
|
||||
|
||||
+20
-3
@@ -13,7 +13,7 @@ import html
|
||||
import time
|
||||
from urllib.parse import urlparse, parse_qs, unquote, urljoin
|
||||
|
||||
from SYS.logger import log, debug
|
||||
from SYS.logger import log, debug, debug_panel
|
||||
from SYS.payload_builders import build_file_result_payload, normalize_file_extension
|
||||
from ProviderCore.registry import get_search_plugin, list_search_plugins
|
||||
from SYS.rich_display import (
|
||||
@@ -1560,9 +1560,26 @@ class search_file(Cmdlet):
|
||||
source_cmd, source_args = provider.get_source_command(args_list)
|
||||
table.set_source_command(source_cmd, source_args)
|
||||
|
||||
debug(f"[search-file] Calling {plugin_name}.search(filters={search_filters})")
|
||||
debug_panel(
|
||||
"search-file provider request",
|
||||
[
|
||||
("provider", plugin_name),
|
||||
("query", query),
|
||||
("limit", limit),
|
||||
("filters", search_filters or "<none>"),
|
||||
],
|
||||
border_style="cyan",
|
||||
)
|
||||
results = provider.search(query, limit=limit, filters=search_filters or None)
|
||||
debug(f"[search-file] {plugin_name} -> {len(results or [])} result(s)")
|
||||
debug_panel(
|
||||
"search-file provider response",
|
||||
[
|
||||
("provider", plugin_name),
|
||||
("results", len(results or [])),
|
||||
("table", table_type),
|
||||
],
|
||||
border_style="cyan",
|
||||
)
|
||||
|
||||
# Allow providers to apply provider-specific UX transforms (e.g. auto-expansion)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user