Skip to main content

Module named_agents

Module named_agents 

Source
Expand description

The named-agent RPCs (listnamedagents, hidenamedagent), moved out of identity::register unchanged as named functions. They power the picker’s My Agents and the Files pane, joining instance rows with the definition, account and bundle names so the frontend renders without follow-ups.

Structs§

Lookups 🔒
Everything a row’s names are looked up in, fetched once per response: with at most 200 rows and account and bundle counts in the low dozens, a linear lookup on cached lists beats per-row round-trips.

Constants§

DEFAULT_LIMIT 🔒
MAX_LIMIT 🔒

Functions§

hide_named_agent 🔒
Soft-delete (display_hidden = 1) so the row disappears from the dropdown. The working dir stays on disk.
instance_rows 🔒
No-registry fallback: drives the launch modal’s “Continue agent” dropdown directly. One entry per chain root, mirroring the registry path’s semantics.
list_named_agents 🔒
data is a Value: a malformed request means the defaults.
mirror_accounts_for 🔒
The global account mirror, read only when a link names an account this channel’s store doesn’t hold. The flag is set when that read fails, so a link that resolves to nothing is left empty, not “No auth”.
registry_rows 🔒