refactor: split config.py into the beaver_agent package (vault, prompts, skills, policy, hands, agents, frontends, texts, memory, jobs)

This commit is contained in:
hh
2026-09-02 00:24:31 +02:00
parent f161d6a46d
commit 3b2f5057da
38 changed files with 1302 additions and 935 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Ночью после ротации: глубокие чаты, тихие два дня, закрываются, не больше трёх."""
from __future__ import annotations
import logging
from typing import TYPE_CHECKING
from beaver_agent.vault import LAUNCH
if TYPE_CHECKING:
from beaver_gateway.jobs.scheduler import JobRun
_log = logging.getLogger(__name__)
async def close_idle(run: JobRun) -> None:
for result in await run.close_idle(kind="deep", days=2, limit=3, since=LAUNCH):
_log.info(
"closed deep chat %s: digest=%s error=%s",
result.conversation.external_id,
result.digest.path if result.digest else None,
result.error,
)