38 lines
1.3 KiB
Plaintext
Executable File
38 lines
1.3 KiB
Plaintext
Executable File
WF-Agent Gen4 artifact bundle
|
|
|
|
Includes:
|
|
- versioned .proto source contracts
|
|
- YAML configuration layout
|
|
- code generation scripts
|
|
- runtime/dev dependency manifests
|
|
- systemd service example
|
|
- sysusers.d and tmpfiles.d examples
|
|
- backend runtime wiring for event and command contours
|
|
- CLI entrypoints for event and command submission/cancellation
|
|
- multi-YAML config loader and bootstrap logic
|
|
- smoke, unit, and integration tests
|
|
|
|
Runtime layout:
|
|
- backend service entrypoint: `python -m app.main`
|
|
- CLI entrypoint: `python -m app.cli`
|
|
- default root config: `/etc/wf-agent/app.yaml`
|
|
- event config includes: `/etc/wf-agent/events.yaml`
|
|
- command config includes: `/etc/wf-agent/commands.yaml`
|
|
- command executor includes: `/etc/wf-agent/executors/*.yaml`
|
|
- cron includes: `/etc/wf-agent/cron.yaml`
|
|
|
|
Typical workflow:
|
|
1. Install deps
|
|
2. Generate protobuf bindings
|
|
3. Load `/etc/wf-agent/app.yaml` as root config
|
|
4. Run tests
|
|
5. Start the backend service under systemd
|
|
6. Use the CLI to subscribe to events or submit/cancel commands
|
|
|
|
Systemd notes:
|
|
- the unit template is `deploy/systemd/wf-agent.service`
|
|
- the service runs as `wifi-agent:wifi-agent`
|
|
- runtime state is stored under `/var/lib/wf-agent`
|
|
- runtime sockets and transient state live under `/run/wf-agent`
|
|
- logs are journal-first, with `/var/log/wf-agent` reserved for file-backed output
|