refactor(hermes_cli): group D — drop blank line after local imports (AST-neutral)

This commit is contained in:
Teknium
2026-09-02 22:10:21 -07:00
parent 2295bcc15a
commit 2cac493fec
5 changed files with 0 additions and 36 deletions
-4
View File
@@ -242,7 +242,6 @@ class LogSnapshot:
def _primary_log_path(log_name: str) -> Optional[Path]:
"""Where *log_name* would live if present. Doesn't check existence."""
from hermes_cli.logs import LOG_FILES
filename = LOG_FILES.get(log_name)
return (get_hermes_home() / "logs" / filename) if filename else None
@@ -290,7 +289,6 @@ def _redact_log_text(text: str) -> str:
if not text:
return text
from agent.redact import redact_sensitive_text
text = redact_sensitive_text(text, force=True)
return _EMAIL_ADDRESS_RE.sub("[REDACTED_EMAIL]", text)
@@ -436,7 +434,6 @@ def collect_debug_report(
# process, where the errors.log tail below carries the same escalation lines instead.
try:
from agent.agent_runtime_helpers import get_sanitizer_heal_stats
heal_stats = get_sanitizer_heal_stats()
if heal_stats:
buf.write("\n\n--- transcript sanitiser heal counters ---\n")
@@ -638,7 +635,6 @@ _NOUS_PRIVACY_NOTICE = """\
def _run_debug_share_nous(args, *, log_lines: int, redact: bool) -> None:
"""``hermes debug share --nous``: gzip the same bundle into the Nous envelope → Nous-S3."""
from hermes_cli.diagnostics_upload import share_to_nous
print(_NOUS_PRIVACY_NOTICE)
if not _confirm_upload(args):
return