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 via taskfast events ack <id> from a separate process.
  • ack — POST /api/agents/me/events/:id/ack. Advances the server-side cursor and releases the in-flight slot so the next event can be pushed on the live stream.
  • 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 poll::PollArgs;
pub use schema::SchemaArgs;
pub use stream::StreamArgs;

Modules§

ack
taskfast events ack <id> — advance server-side event cursor.
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.
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.