Expand description
The names no agent may have: ones that read as the person using AgentMux or as AgentMux itself.
One list (RESERVED), one check (check). Every way an agent comes to exist or to be called
something else (create, spawn, rename, define, import, fork) refuses a reserved id, slug or display
name with check_all. An agent that already has such a name is left alone (see reserved_in).
A name is compared case-insensitively, after trimming, with look-alike characters folded to the letter
they imitate (fullwidth forms, the Cyrillic and Greek letters that copy Latin ones, and the digits and
signs that stand in for letters), and with separators dropped: Op3rator, оperator (Cyrillic о),
O.P.E.R.A.T.O.R and operator-2 all read as operator.
Constants§
- RESERVED
- Words that read as the person or the system, and the names AgentMux uses for its own senders.
Functions§
- check
- The reserved word
namereads as, orNone: the whole name, or that word with a counting number after it (admin2,user-3). - check_
all Errwith the refusal for the first ofnamesthat is reserved. Empty names are skipped: a missing name is another check’s business.- refusal
- What an id, slug or display name is refused with: the name is reserved, and what to do instead.
- reserved_
in - The names among
namesthat read as reserved, for listing the agents that already have one.