mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 09:37:15 +00:00
feat: add Conductor plugin for Context-Driven Development
Add comprehensive Conductor plugin implementing Context-Driven Development methodology with tracks, specs, and phased implementation plans. Components: - 5 commands: setup, new-track, implement, status, revert - 1 agent: conductor-validator - 3 skills: context-driven-development, track-management, workflow-patterns - 18 templates for project artifacts Documentation updates: - README.md: Updated counts (68 plugins, 100 agents, 110 skills, 76 tools) - docs/plugins.md: Added Conductor to Workflows section - docs/agents.md: Added conductor-validator agent - docs/agent-skills.md: Added Conductor skills section Also includes Prettier formatting across all project files.
This commit is contained in:
@@ -39,6 +39,7 @@ async def test_workflow_execution(workflow_env):
|
||||
```
|
||||
|
||||
**Key Benefits**:
|
||||
|
||||
- `workflow.sleep(timedelta(days=30))` completes instantly
|
||||
- Fast feedback loop (milliseconds vs hours)
|
||||
- Deterministic test execution
|
||||
@@ -46,6 +47,7 @@ async def test_workflow_execution(workflow_env):
|
||||
### Time-Skipping Examples
|
||||
|
||||
**Sleep Advancement**:
|
||||
|
||||
```python
|
||||
@pytest.mark.asyncio
|
||||
async def test_workflow_with_delays(workflow_env):
|
||||
@@ -72,6 +74,7 @@ async def test_workflow_with_delays(workflow_env):
|
||||
```
|
||||
|
||||
**Manual Time Control**:
|
||||
|
||||
```python
|
||||
@pytest.mark.asyncio
|
||||
async def test_workflow_manual_time(workflow_env):
|
||||
@@ -99,6 +102,7 @@ async def test_workflow_manual_time(workflow_env):
|
||||
### Testing Workflow Logic
|
||||
|
||||
**Decision Testing**:
|
||||
|
||||
```python
|
||||
@pytest.mark.asyncio
|
||||
async def test_workflow_branching(workflow_env):
|
||||
@@ -160,6 +164,7 @@ async def test_activity_basic():
|
||||
### Testing Activity Context
|
||||
|
||||
**Heartbeat Testing**:
|
||||
|
||||
```python
|
||||
async def test_activity_heartbeat():
|
||||
"""Verify heartbeat calls"""
|
||||
@@ -177,6 +182,7 @@ async def test_activity_heartbeat():
|
||||
```
|
||||
|
||||
**Cancellation Testing**:
|
||||
|
||||
```python
|
||||
async def test_activity_cancellation():
|
||||
"""Test activity cancellation handling"""
|
||||
@@ -199,6 +205,7 @@ async def test_activity_cancellation():
|
||||
### Testing Error Handling
|
||||
|
||||
**Exception Propagation**:
|
||||
|
||||
```python
|
||||
async def test_activity_error():
|
||||
"""Test activity error handling"""
|
||||
@@ -270,6 +277,7 @@ async def test_activity_parameterized(activity_env, input, expected):
|
||||
## Common Patterns
|
||||
|
||||
**Testing Retry Logic**:
|
||||
|
||||
```python
|
||||
@pytest.mark.asyncio
|
||||
async def test_workflow_with_retries(workflow_env):
|
||||
|
||||
Reference in New Issue
Block a user