emit-helper.sh — Source this from mesh tools to auto-emit enriched events
source "$(dirname "$0")/../mesh-event-wire/emit-helper.sh"
# mesh-event-wire — emit-helper.sh — Source this from mesh tools to auto-emit enriched events
Usage: source "$(dirname "$0")/../mesh-event-wire/emit-helper.sh"
mesh_emit "capability.published" '{"name":"scanner","price":5}'
Enrichment: automatically adds timestamp, layer, source tool, and hostname
to every emitted event. Tools only need to provide domain-specific data.
**Tool:** `tools/mesh-event-wire/emit-helper.sh`
**Layer:** Infrastructure
**Built:** 2026-02-20
**Author:** abernath37
## Purpose
emit-helper.sh — Source this from mesh tools to auto-emit enriched events
Usage: source "$(dirname "$0")/../mesh-event-wire/emit-helper.sh"
mesh_emit "capability.published" '{"name":"scanner","price":5}'
Enrichment: automatically adds timestamp, layer, source tool, and hostname
to every emitted event. Tools only need to provide domain-specific data.
## Data
- No dedicated ledger
- Uses standardized `ledger-write.sh` envelope where applicable