Metadata-Version: 2.4
Name: agent-workflow-ui
Version: 1.0.0
Summary: MCP plugin that gives opencode agents tools for visual interaction (HTML forms, dashboards) with users
Author: EnerJize
License: MIT
Project-URL: Homepage, https://github.com/EnerJizeIT/agentic-workflow
Project-URL: Repository, https://github.com/EnerJizeIT/agentic-workflow
Project-URL: Issues, https://github.com/EnerJizeIT/agentic-workflow/issues
Keywords: opencode,mcp,ai-agent,pipeline,dashboard,forms
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: mcp>=1.0
Requires-Dist: jinja2>=3.1
Requires-Dist: pyyaml>=6.0
Requires-Dist: awf>=1.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"

# agent-workflow-ui

MCP plugin для opencode. 29 typed tools (5 UI + 24 workflow).

## Установка

```bash
pip install -e ".[dev]"
```

Plugin автоматически регистрируется в opencode через `awf init`.

## Tools

### UI (5)
`open_form`, `read_submit`, `cancel_form`, `list_pending_forms`, `list_templates`

### Workflow (24)
`awf_init`, `awf_status`, `awf_start`, `awf_continue`, `awf_kill`, `awf_retry_stage`, `awf_baseline`, `awf_rollback`, `awf_approve`, `awf_reject`, `awf_report`, `awf_reset`, `awf_add_role`, `awf_analyze_roles`, `awf_dispatch_todo`, `awf_load_supervisor_context`, `awf_open_project_setup_form`, `awf_open_increment_planning_form`, `awf_open_pipeline_dashboard`, `awf_wait_for_event`, `awf_check_model_config`, `awf_current_step`, `awf_set_goal`, `awf_confirm_normalized`

Все workflow tools возвращают `next_action` — guide для supervisor.

## Структура

```
src/agent_workflow_ui/
├── server.py              # MCP server, 29 tools
├── tools/awf.py           # 24 awf wrappers (asyncio.to_thread + next_action)
├── tools/forms.py         # 5 UI wrappers
├── http_endpoint.py       # Form HTTP server
├── opencode_config.py     # Model discovery
├── roles_processor.py     # Role setup materialization
├── state.py               # Form state persistence
└── render/                # Jinja2 templates
```

Все workflow tools — thin async wrappers над `awf.api.*()`. Бизнес-логика в `awf`.
