Expand description
Lifecycle-aware cards for agent interfaces: agent status, metric, transfer, approval, user prompt, and device authorization, from their stylesheets of the same names.
Each carries upstream’s dual-audience contract: data-fc-kind names what it is, and
data-fc-id, data-fc-seq, data-fc-state, and data-fc-ts mirror the runtime record,
so automation can read the state without parsing text. Styling keys off
data-fc-state, the single source of truth for both audiences.
Re-exports§
pub use AgentStatus_completions::Component::AgentStatus;pub use Metric_completions::Component::Metric;pub use Transfer_completions::Component::Transfer;pub use Approval_completions::Component::Approval;pub use UserPrompt_completions::Component::UserPrompt;pub use DeviceAuth_completions::Component::DeviceAuth;
Structs§
- Agent
Status Props - Properties for the
AgentStatuscomponent. - Approval
Props - Properties for the
Approvalcomponent. - Device
Auth Props - Properties for the
DeviceAuthcomponent. - Metric
Props - Properties for the
Metriccomponent. - Record
- The runtime record a card mirrors into
data-fc-*. - Transfer
Props - Properties for the
Transfercomponent. - User
Prompt Props - Properties for the
UserPromptcomponent.
Functions§
- Agent
Status - One live line saying what an agent is doing, with a sparkle and an elapsed time.
- Approval
- A request for the user’s permission, e.g. to run a tool, with what exactly is asked.
- Device
Auth - A device-code sign-in: where to go and the code to enter there.
- Metric
- A number worth watching, as a term and its value.
- Transfer
- A file moving in or out, with progress while it runs.
- User
Prompt - A question an agent puts to the user, as a form.
onsubmitreceives nothing: read the answer from the controls’ own state. Withregionit is a plain named section, for when there is nothing to submit.