Skip to main content

Module accounts

Module accounts 

Source
Expand description

identity.accounts: the signed-in accounts on this machine as an agent sees them, and how identity.switch names one (docs/specs/SPEC_AGENTS_OPERATE_OTHER_MACHINES_2026_10_30.md §4.3, §4.4).

The same view answers a local call and, later, a remote one, so it holds only what a person reads off the Connectors page: the stable id, provider, email, label, whether it is signed in, whether it has quota and when that returns, and which agents run on it. Never a credential, a secret reference or a config directory.

Structs§

AccountAgent
An agent that runs on an account.
AccountQuota
Whether an account can take work now.
AccountView
One account, as identity.accounts lists it.
IdentityAccountsResult
identity.accounts.

Functions§

accounts 🔒
Every account of an agent provider on this machine. BLOCKING (store reads).
email_of 🔒
has_quota 🔒
Whether an account can take an agent now: signed in (or not checked yet) and not blocked by a pane’s limit or refused sign-in.
is_any_with_quota 🔒
"any with quota", in the words an agent may type.
pick 🔒
Name one account among accounts (one provider’s): by stable id, by local id or label, by email when exactly one account of that email has quota, or "any with quota". skip holds the accounts an agent is already on, which any with quota does not pick. The refusal lists what the caller could use, and says which kind it is: no such account, a name several share, or none with quota now.
quotas 🔒
The quota of each account that a pane’s stored failure puts out of work now, by local account id. An account missing from the map has quota as far as this machine knows: it learns of a limit when a pane hits it.