refactor: split config.py into the beaver_agent package (vault, prompts, skills, policy, hands, agents, frontends, texts, memory, jobs)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from datetime import UTC, datetime, timedelta
|
||||
from pathlib import Path
|
||||
|
||||
from curator import Watched, briefing, last_run, new_replies
|
||||
from beaver_agent.memory.curator import Watched, briefing, last_run, new_replies
|
||||
|
||||
|
||||
def test_last_run_reads_first_line_or_default(tmp_path: Path) -> None:
|
||||
|
||||
@@ -4,7 +4,7 @@ from beaver_gateway.mcp.wrap import build_python_tool_server
|
||||
from fastmcp import Client
|
||||
from fastmcp.exceptions import ToolError
|
||||
|
||||
from mcps.komodo import Komodo
|
||||
from beaver_agent.hands.komodo import Komodo
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
from datetime import timedelta
|
||||
|
||||
from mcps.komodo_alerts import HOLD, AlertMemory, describe, parse, still_bad
|
||||
from beaver_agent.hands.komodo_alerts import (
|
||||
HOLD,
|
||||
AlertMemory,
|
||||
describe,
|
||||
parse,
|
||||
still_bad,
|
||||
)
|
||||
|
||||
|
||||
def alert(kind, *, resolved=False, level="CRITICAL", **data):
|
||||
|
||||
@@ -2,9 +2,9 @@ import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from beaver_gateway.core.policy import Deny, ToolCall
|
||||
from beaver_gateway.agents.policy import Deny, ToolCall
|
||||
|
||||
from policy import (
|
||||
from beaver_agent.policy import (
|
||||
Zones,
|
||||
bash_zones,
|
||||
forbid_skills,
|
||||
|
||||
+10
-3
@@ -1,10 +1,17 @@
|
||||
from datetime import UTC, date, datetime
|
||||
from pathlib import Path
|
||||
|
||||
from beaver_gateway.core.conversations import UserSaid
|
||||
from beaver_gateway.core.envelope import RecallContext
|
||||
from beaver_gateway.conversations.texts import UserSaid
|
||||
from beaver_gateway.conversations.envelope import RecallContext
|
||||
|
||||
from recall import LABEL, Recall, ReplyLog, frontmatter_aliases, mentions, notes_head
|
||||
from beaver_agent.memory.recall import (
|
||||
LABEL,
|
||||
Recall,
|
||||
ReplyLog,
|
||||
frontmatter_aliases,
|
||||
mentions,
|
||||
notes_head,
|
||||
)
|
||||
|
||||
|
||||
def _card(path: Path, aliases: list[str] | None = None) -> None:
|
||||
|
||||
@@ -4,7 +4,7 @@ from beaver_gateway.mcp.wrap import build_python_tool_server
|
||||
from fastmcp import Client
|
||||
from fastmcp.exceptions import ToolError
|
||||
|
||||
from mcps.vibegram import Vibegram, _cards, _event, _work
|
||||
from beaver_agent.hands.vibegram import Vibegram, _cards, _event, _work
|
||||
|
||||
|
||||
def test_events_render_and_unknown_kinds_are_skipped():
|
||||
|
||||
Reference in New Issue
Block a user