@misterhuydo/sentinel 1.5.50 → 1.5.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.5.
|
|
1
|
+
__version__ = "1.5.51"
|
|
@@ -2950,13 +2950,13 @@ async def _run_tool(name: str, inputs: dict, cfg_loader, store, slack_client=Non
|
|
|
2950
2950
|
"If just started, wait a minute then try again.",
|
|
2951
2951
|
})
|
|
2952
2952
|
|
|
2953
|
-
all_matches = [] # list of (
|
|
2953
|
+
all_matches = [] # list of (file_label, line)
|
|
2954
2954
|
sources_hit = set()
|
|
2955
2955
|
for src_dir, is_temp in search_pairs:
|
|
2956
|
-
label = src_dir.name + (" [temp]" if is_temp else "")
|
|
2957
2956
|
for log_file in sorted(src_dir.glob("**/*")):
|
|
2958
2957
|
if not log_file.is_file():
|
|
2959
2958
|
continue
|
|
2959
|
+
file_label = log_file.name + (" [temp]" if is_temp else "")
|
|
2960
2960
|
try:
|
|
2961
2961
|
lines = log_file.read_text(encoding="utf-8", errors="replace").splitlines()
|
|
2962
2962
|
seen_indices = set()
|
|
@@ -2975,8 +2975,8 @@ async def _run_tool(name: str, inputs: dict, cfg_loader, store, slack_client=Non
|
|
|
2975
2975
|
if j not in seen_indices:
|
|
2976
2976
|
seen_indices.add(j)
|
|
2977
2977
|
prefix = ">" if j == i else " "
|
|
2978
|
-
all_matches.append((
|
|
2979
|
-
sources_hit.add(
|
|
2978
|
+
all_matches.append((file_label, f"{prefix} {lines[j][:300]}"))
|
|
2979
|
+
sources_hit.add(file_label)
|
|
2980
2980
|
if len(all_matches) >= max_matches:
|
|
2981
2981
|
break
|
|
2982
2982
|
except Exception:
|