pre-migration commit

This commit is contained in:
2026-04-26 15:08:35 -07:00
parent c724cb36b1
commit 39ee857559
32 changed files with 335 additions and 106 deletions
+20 -3
View File
@@ -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: