feat: add runtime dynamic team controls

This commit is contained in:
2026-04-03 13:48:31 +08:00
parent dc0b250adc
commit ecfbd87244
16 changed files with 2146 additions and 147 deletions

View File

@@ -131,6 +131,13 @@ def _coerce_bool(value: Any) -> bool:
return bool(value)
def _normalize_schedule_mode(value: Any) -> str:
mode = str(value or "daily").strip().lower()
if mode == "intraday":
return "interval"
return mode or "daily"
def resolve_runtime_config(
project_root: Path,
config_name: str,
@@ -162,9 +169,9 @@ def resolve_runtime_config(
get_env_int("MAX_COMM_CYCLES", 2),
),
),
"schedule_mode": str(
"schedule_mode": _normalize_schedule_mode(
bootstrap.get("schedule_mode", schedule_mode),
).strip().lower() or schedule_mode,
),
"interval_minutes": int(
bootstrap.get(
"interval_minutes",