zwarm 2.3.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ """Tests for orchestrator watcher integration."""
2
+
3
+ from zwarm.core.config import WeaveConfig, ZwarmConfig
4
+ from zwarm.core.environment import OrchestratorEnv
5
+ from zwarm.orchestrator import Orchestrator
6
+ from zwarm.prompts import get_orchestrator_prompt
7
+ from zwarm.watchers import WatcherAction
8
+
9
+
10
+ def test_run_watchers_builds_context(tmp_path):
11
+ """Orchestrator should build WatcherContext without crashing."""
12
+ config = ZwarmConfig(weave=WeaveConfig(enabled=False))
13
+ env = OrchestratorEnv(task="Test task", working_dir=tmp_path)
14
+
15
+ orchestrator = Orchestrator(
16
+ config=config,
17
+ working_dir=tmp_path,
18
+ system_prompt=get_orchestrator_prompt(working_dir=str(tmp_path)),
19
+ maxSteps=3,
20
+ env=env,
21
+ )
22
+
23
+ assert orchestrator._run_watchers() == WatcherAction.CONTINUE
@@ -0,0 +1,17 @@
1
+ """Orchestrator tools for delegating work to executors."""
2
+
3
+ from zwarm.tools.delegation import (
4
+ check_session,
5
+ converse,
6
+ delegate,
7
+ end_session,
8
+ list_sessions,
9
+ )
10
+
11
+ __all__ = [
12
+ "delegate",
13
+ "converse",
14
+ "check_session",
15
+ "end_session",
16
+ "list_sessions",
17
+ ]