/* The Search agents page: what Agent match on the Roles tab is measured * against, one agent at a time. * * Every agent from `/api/agents` is a card, newest first: its name, its * switch, its prompts, its gates in words, its weights, and a link to the * Roles tab in its order. The prompts are the body, since fit is measured * against the one a role fits best; the weights only share out the terms. * The form edits the prompts as rows, and the fetch gate in three parts: the * region (the scope select), the place (a short list of lines a role passes by * matching any one of: countries, towns, remote) and the role (the fetch terms * and the titles to leave out), over a row per remaining rule under Advanced; * a gate the three parts cannot say lands in a row, so a load and a save lose * nothing. A gate is a field, values and a mode (must, one of, not), with no * weight. After it come the feed order (the four weights of the final score and * the CV match weights), the cut (the best N by fit and the best M by CV * closeness, each with a minimum level) and the size of summarise. Edit turns a card * into the form from the page's `