Skip to main content

Module stream

Module stream 

Source
Expand description

Poll-based audit event streaming with multi-worktree support.

Provides a simple file-watching mechanism that polls the JSONL audit log for new events at a configurable interval. Supports monitoring events across multiple git worktrees.

Structs§

StreamConfig
Configuration for the event stream.
StreamEvent
A streamed event with its source label.
StreamSource
A single stream source: either the main project or a worktree.

Functions§

poll_new_events
Poll all sources for new events since the last check.
read_initial_events
Read the initial batch of events for streaming (the last N events).