review-fix(whitespace): strip trailing whitespace and EOF blank lines introduced by this PR
Trailing-whitespace-only edits so 'git diff --check BASE HEAD' is clean (16 diagnostics across 11 files). No code changes.
This commit is contained in:
@@ -193,4 +193,3 @@ def get_active_search_provider() -> Optional[WebSearchProvider]:
|
||||
def get_active_extract_provider() -> Optional[WebSearchProvider]:
|
||||
"""Resolve the currently-active web extract provider."""
|
||||
return _resolve(_configured_backend("extract"), capability="extract")
|
||||
|
||||
|
||||
@@ -3031,7 +3031,7 @@ class HermesCLI(CLIAgentSetupMixin, CLICommandsMixin, CLIBillingMixin, CLITuiMix
|
||||
terminal_env = os.getenv("TERMINAL_ENV", "local")
|
||||
terminal_cwd = os.getenv("TERMINAL_CWD", os.getcwd())
|
||||
terminal_timeout = os.getenv("TERMINAL_TIMEOUT", "60")
|
||||
|
||||
|
||||
config_path = _hermes_home / 'config.yaml'
|
||||
if not config_path.exists():
|
||||
config_path = Path(__file__).parent / 'cli-config.yaml'
|
||||
@@ -3087,7 +3087,7 @@ class HermesCLI(CLIAgentSetupMixin, CLICommandsMixin, CLIBillingMixin, CLITuiMix
|
||||
for label, value in rows:
|
||||
print(f" {label} {value}")
|
||||
print()
|
||||
|
||||
|
||||
# canonical command -> (method name, pass cmd_original?). Absent commands resolve to
|
||||
# ``_handle_<name>_command(cmd)``. Looked up via getattr at dispatch time so
|
||||
# monkeypatching works. A handler returning False exits the REPL.
|
||||
|
||||
+2
-2
@@ -2614,7 +2614,7 @@ def _repair_timezone_shifted_cron(d: _DueJob) -> bool:
|
||||
def _rearm_stale_error_recurring(d: _DueJob) -> datetime:
|
||||
"""Re-arm a recurring job wedged in persisted last_status=error; returns the effective
|
||||
next_run_dt.
|
||||
|
||||
|
||||
Such a job errored, mark_job_run parked next_run_at in the future, and nothing re-dispatched it
|
||||
(the in-memory stale-claim sweep cannot see it). Interval jobs re-arm to now (always a legal
|
||||
fire); cron jobs re-arm to the next LEGAL occurrence, since re-arming to now would fire at times
|
||||
@@ -2680,7 +2680,7 @@ def _reanchor_stale_cron(d: _DueJob) -> bool:
|
||||
|
||||
def _fast_forward_missed_recurring(d: _DueJob, grace: int) -> None:
|
||||
"""Recurring job past its grace window: skip the accumulated misses, fire once now.
|
||||
|
||||
|
||||
The fast-forward is persisted immediately — NOT redundant with advance_next_run/mark_job_run:
|
||||
it
|
||||
protects the crash window before mark_job_run and covers the external fire_due path, which never
|
||||
|
||||
@@ -3693,4 +3693,3 @@ class GatewayTurnMixin:
|
||||
await self._run_agent_mark_streamed_delivery(response, turn_ctx)
|
||||
self._run_agent_schedule_bubble_cleanup(response, _cleanup_adapter, turn_ctx)
|
||||
return response
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ class CLISessionMixin:
|
||||
if is_session_yolo_enabled(session_key):
|
||||
return
|
||||
enable_session_yolo(session_key)
|
||||
_dim_notice(self,
|
||||
_dim_notice(self,
|
||||
"⚡ YOLO mode restored from session — all commands auto-approved. /yolo to turn off.",
|
||||
quiet)
|
||||
|
||||
|
||||
@@ -2228,9 +2228,9 @@ def save_config(
|
||||
if is_managed():
|
||||
managed_error("save configuration")
|
||||
return
|
||||
|
||||
|
||||
config = _strip_managed_keys_for_save(config)
|
||||
|
||||
|
||||
ensure_hermes_home()
|
||||
config_path = get_config_path()
|
||||
require_readable_config_before_write(config_path)
|
||||
|
||||
@@ -2369,5 +2369,3 @@ def cached_fetch_api_models(
|
||||
if _cache_entry_valid(entry, fp):
|
||||
return list(entry["models"])
|
||||
return live
|
||||
|
||||
|
||||
|
||||
@@ -6196,4 +6196,3 @@ def register(ctx) -> None:
|
||||
install_hint="Run `hermes setup` to install Telegram support.", setup_fn=interactive_setup, apply_yaml_config_fn=_apply_yaml_config,
|
||||
allowed_users_env="TELEGRAM_ALLOWED_USERS", allow_all_env="TELEGRAM_ALLOW_ALL_USERS", cron_deliver_env_var="TELEGRAM_HOME_CHANNEL",
|
||||
standalone_sender_fn=_standalone_send, max_message_length=4096, emoji="✈️", allow_update_command=True)
|
||||
|
||||
|
||||
+3
-3
@@ -1341,13 +1341,13 @@ _LIST_TOOLS_USAGE = """
|
||||
python run_agent.py --enabled_toolsets=research --query='search for Python news'
|
||||
python run_agent.py --enabled_toolsets=development --query='debug this code'
|
||||
python run_agent.py --enabled_toolsets=safe --query='analyze without terminal'
|
||||
|
||||
|
||||
# Combine multiple toolsets
|
||||
python run_agent.py --enabled_toolsets=web,vision --query='analyze website'
|
||||
|
||||
|
||||
# Disable toolsets
|
||||
python run_agent.py --disabled_toolsets=terminal --query='no command execution'
|
||||
|
||||
|
||||
# Run with trajectory saving enabled
|
||||
python run_agent.py --save_trajectories --query='your question here'"""
|
||||
|
||||
|
||||
@@ -342,4 +342,3 @@ def ensure_hub_dirs() -> None:
|
||||
):
|
||||
if not path.exists():
|
||||
path.write_text(initial, encoding="utf-8")
|
||||
|
||||
|
||||
@@ -166,4 +166,3 @@ def tts_lease_holders() -> List[str]:
|
||||
def _reset_tts_leases_for_tests() -> None:
|
||||
with _tts_lease_lock:
|
||||
_tts_leases.clear()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user