|
|
||
|---|---|---|
| .codex | ||
| agent | ||
| backend | ||
| tmp | ||
| typings/pytest | ||
| .gitignore | ||
| AGENTS.md | ||
| README.md | ||
| pyrightconfig.json | ||
README.md
wfagent Monorepo
This repository contains two independent Python applications:
Each application has its own README.md, pyproject.toml, tests, and example configuration.
Layout
agent/README.mdagent/pyproject.tomlagent/wfagent.example.yamlbackend/README.mdbackend/pyproject.tomlbackend/wfagent_backend.example.yaml
Code Navigation
Agent
agent/src/wfagent/__main__.py-python -m wfagententry pointagent/src/wfagent/cli.py- CLI bootstrap and config loadingagent/src/wfagent/config.py- YAML config parsing and validationagent/src/wfagent/sources.py- D-Bus,ctrl_iface, and runtime sourcesagent/src/wfagent/pipeline.py- filtering, normalization, classification, triggers, runtime orchestrationagent/src/wfagent/commands.py- command clients for D-Bus andctrl_ifaceagent/src/wfagent/payloads/- payload/blob decoding helpersagent/src/wfagent/delivery/- webhook delivery, spool, and retryagent/src/wfagent/enrichment.py- optional navigation enrichmentagent/tests/- agent unit and integration tests
Backend
backend/src/wfagent_backend/cli.py- backend CLI bootstrap and config loadingbackend/src/wfagent_backend/server.py- HTTP server and routingbackend/src/wfagent_backend/app.py- ingest normalization and stdout batch loggingbackend/src/wfagent_backend/mapping.py- event-to-metric mappingbackend/src/wfagent_backend/queue.py- queueing, TTL, and retrybackend/src/wfagent_backend/sender.py-zabbix_senderadapterbackend/src/wfagent_backend/contracts.py- canonical ingest and delivery data modelsbackend/tests/- backend tests
Install
Install the agent:
cd agent
python -m pip install -e .
Install the backend:
cd backend
python -m pip install -e .
Run
Run the agent:
cd agent
wfagent --config wfagent.example.yaml
Run the backend:
cd backend
wfagent_backend --config wfagent_backend.example.yaml
Test
Run the agent tests:
pytest agent/tests
Run the backend tests:
pytest backend/tests
More Information
- Agent architecture and configuration:
agent/README.md - Backend architecture and configuration:
backend/README.md - Backend architecture notes:
backend/wfagent_backend_architecture.md