mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:23:23 +08:00
Simplify oclaw product surface: drop niche specialists and admin noise.
Remove stock/image/video specialists, Gmail watcher, CocoLoop market, desktop packaging, and extra memory plugins; disable dynamic agents and hide Session Monitor / API grants / Admin Audit from nav. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
efa72df362
commit
cf31fd104d
290 changed files with 127 additions and 64576 deletions
|
|
@ -25,28 +25,6 @@ class _HooksState:
|
|||
|
||||
|
||||
_STATE = _HooksState()
|
||||
_log_gmail = logging.getLogger("oclaw.hooks.gmail")
|
||||
|
||||
|
||||
class _GmailWatcherLogAdapter:
|
||||
def info(self, msg: str) -> None:
|
||||
_log_gmail.info("%s", msg)
|
||||
|
||||
def warn(self, msg: str) -> None:
|
||||
_log_gmail.warning("%s", msg)
|
||||
|
||||
def error(self, msg: str) -> None:
|
||||
_log_gmail.error("%s", msg)
|
||||
|
||||
|
||||
def _maybe_start_gmail_watcher_with_logs(resolved_cfg: dict[str, Any]) -> None:
|
||||
"""After hooks load: parity hook for OpenClaw gateway post-attach Gmail lifecycle."""
|
||||
try:
|
||||
from runtime.hooks.gmail_watcher_lifecycle import start_gmail_watcher_with_logs
|
||||
|
||||
start_gmail_watcher_with_logs(cfg=resolved_cfg, log=_GmailWatcherLogAdapter())
|
||||
except Exception:
|
||||
_log_gmail.exception("gmail watcher lifecycle failed")
|
||||
|
||||
|
||||
def _reset_hooks_runtime_state_for_test() -> None:
|
||||
|
|
@ -146,7 +124,6 @@ def initialize_hooks_runtime(
|
|||
_STATE.hooks_mod = hooks_mod
|
||||
_STATE.resolved_config = resolved_cfg
|
||||
_STATE.last_error = ""
|
||||
_maybe_start_gmail_watcher_with_logs(resolved_cfg)
|
||||
return loaded
|
||||
except Exception as exc:
|
||||
_STATE.initialized = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue