feat: initialize resume agent with OfferPai sync

This commit is contained in:
Codex
2026-08-05 20:20:18 +08:00
commit 61ec750031
197 changed files with 33291 additions and 0 deletions
@@ -0,0 +1,22 @@
"""Lazy shared expander for card-driven rewrites that lack an agent reference.
process_component_event is invoked by agent.py (over the 200-line edit limit, so its
call signature is fixed) with no agent handle. Card actions that need a rewrite
therefore share one process-wide expander built with the same factory as main.py.
"""
from __future__ import annotations
from typing import Any
_EXPANDER: Any = None
def shared_expander() -> Any:
global _EXPANDER
if _EXPANDER is None:
from ..resume_expansion import build_expander
from ..settings import load_settings
_EXPANDER = build_expander(load_settings())
return _EXPANDER