The base context object provided to all Popii event, command, snap, and task handlers.
Every handler receives this as its first argument. It provides the client reference,
localization helpers, a shared KV store (the Cooler), request-scoped caching,
structured logging, and utilities for scheduling tasks and making HTTP requests.
Commands and snaps receive the richer Pop subtype, which adds reply(),
defer(), options, and other interaction-specific members.
Example: Accessing the client and logging in an event
The base context object provided to all Popii event, command, snap, and task handlers.
Every handler receives this as its first argument. It provides the client reference, localization helpers, a shared KV store (the Cooler), request-scoped caching, structured logging, and utilities for scheduling tasks and making HTTP requests.
Commands and snaps receive the richer Pop subtype, which adds
reply(),defer(),options, and other interaction-specific members.Example: Accessing the client and logging in an event