Skip to main content

Module semantic

Module semantic 

Source
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§

AgentStatusProps
Properties for the AgentStatus component.
ApprovalProps
Properties for the Approval component.
DeviceAuthProps
Properties for the DeviceAuth component.
MetricProps
Properties for the Metric component.
Record
The runtime record a card mirrors into data-fc-*.
TransferProps
Properties for the Transfer component.
UserPromptProps
Properties for the UserPrompt component.

Functions§

AgentStatus
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.
DeviceAuth
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.
UserPrompt
A question an agent puts to the user, as a form. onsubmit receives nothing: read the answer from the controls’ own state. With region it is a plain named section, for when there is nothing to submit.