Skip to content
Eskais UI

Agent tasks

Liveness Indicator

A toned dot and label for an agent's computed liveness (running pulses, suspect_dead is destructive) and the time since its last activity, with now, locale and timeZone passed through.

Example

  • T-014-A1Finished
  • T-014-A2Runninglast activity
  • T-015-A1Possibly stucklast activity
  • T-016-A1Finished

Installation

npx shadcn@latest add @eskais/liveness-indicator

Usage

Import
import { LivenessIndicator, livenessLabels, livenessLabelsEs, livenessTones } from "@/components/ui/liveness-indicator"

API reference

LivenessIndicator

PropTypeDefault
livenessrequiredComputed by the data source; never derived here from times.Liveness–
lastActivityAtInstant–
nowOne `useNow()` per screen, passed down.Instant–
localestring–
timeZonestring–
labelsPartial<LivenessLabels>–

Also takes <span> attributes and render except children.

Other exports

livenessLabelslivenessLabelsEslivenessTonestype LivenessIndicatorPropstype LivenessLabels

Accessibility

  • A dot with a word; running pulses, and the pulse stops under reduced motion.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.