Skip to content

Commit a1cf500

Browse files
committed
chore: bump to 0.4.0, update tests for new behavior
- Version 0.4.0 in pyproject.toml and __init__.py - AlarmChecker test updated for title= kwarg in fire_notification - Agent rebind test updated to reflect auto-rebind behavior
1 parent cb014bf commit a1cf500

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hive-agent"
3-
version = "0.3.2"
3+
version = "0.4.0"
44
description = "Local-first agent OS. Spawn persistent AI agents that collaborate, write code, and use tools autonomously."
55
authors = [{ name = "chiruu12" }]
66
license = { text = "MIT" }

src/hive/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Hive - Autonomous agent OS."""
22

3-
__version__ = "0.3.2"
3+
__version__ = "0.4.0"
44

55
from hive.agents.existence import ExistenceLoop
66
from hive.agents.goal_strategy import Goal, GoalContext, GoalStrategy

src/hive/tools/a2a/toolkit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def __init__(
3434
self._spec = specialization
3535

3636
@tool()
37-
async def send_request(self, to_agent: str, subject: str, body: str, priority: str = "4") -> str:
37+
async def send_request(
38+
self, to_agent: str, subject: str, body: str, priority: str = "4"
39+
) -> str:
3840
"""Send a request to another agent expecting a response."""
3941
msg = A2AMessage(
4042
type=A2AMessageType.REQUEST,

tests/runtime/test_persona.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,12 +521,12 @@ def test_goals_property_inherited(self) -> None:
521521
p = Persona(instructions=["Goal A", "Goal B"])
522522
assert p.goals == ["Goal A", "Goal B"]
523523

524-
def test_agent_does_not_rebind_prebound_toolkits(self) -> None:
524+
def test_agent_rebinds_prebound_toolkits(self) -> None:
525525
provider = MagicMock()
526526
tk = _MockToolkit()
527527
tk.bind("coder-abc12345")
528528
Agent(name="coder", model=provider, toolkits=[tk])
529-
assert tk._agent_id == "coder-abc12345"
529+
assert tk._agent_id == "coder"
530530

531531
def test_agent_binds_unbound_toolkits(self) -> None:
532532
provider = MagicMock()

tests/tools/test_alarm_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def test_check_once_fires_due(self, mock_notify, db_path, store):
4141
fired = await checker.check_once()
4242

4343
assert fired == ["a1"]
44-
mock_notify.assert_called_once_with("Past alarm")
44+
mock_notify.assert_called_once_with("Past alarm", title="Hive Alarm")
4545

4646
@pytest.mark.asyncio
4747
@patch("hive.tools.alarms.checker.fire_notification", new_callable=AsyncMock)

0 commit comments

Comments
 (0)