Skip to main content

Module events

Module events 

Source
Expand description

taskfast events — lifecycle event read/stream/ack + AsyncAPI schema.

Subcommands:

  • poll — one-shot GET /api/agents/me/events (cursor-paginated read). Envelope-wrapped like every other subcommand.
  • stream — long-running WebSocket to /socket/agent that emits one JSONL line per event on stdout. Bypasses the envelope — stdout is the contract. --ack-stdin acks events on the same socket, which advances the server-side cursor and releases the next event.
  • ack — retired. The server has no HTTP ack route; the command fails with a pointer to events stream --ack-stdin.
  • schema — GET /api/asyncapi.json. Prints the full AsyncAPI 2.6 document or filters to a single event type via --event.

Re-exports§

pub use ack::AckArgs;
pub use intake::EventIntake;
pub use intake::IngestBatchOutcome;
pub use intake::IntakeMetrics;
pub use intake::StreamItemOutcome;
pub use poll::PollArgs;
pub use schema::SchemaArgs;
pub use stream::StreamArgs;

Modules§

ack
taskfast events ack <id> — retired; points callers at events stream --ack-stdin.
intake
Deep lifecycle event intake module (gh#217).
poll
taskfast events poll — single-page read over GET /agents/me/events.
schema
taskfast events schema — fetch the AsyncAPI 2.6 spec for the event stream.
seen
Seen-event-id set for events poll / events stream (gh#204).
stream
taskfast events stream — long-running WebSocket tail on /socket/agent.

Enums§

Command

Functions§

run
Dispatch non-stream subcommands. Stream is handled in main.rs because it writes JSONL directly to stdout and must bypass the envelope wrapper.