/* The Search agents page: what Best 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 gates as a Where block, a * short list of lines a role passes by matching any one of, over a row per * remaining rule under Advanced; a gate Where cannot say lands in a row, so * a load and a save lose nothing. Edit turns a card * into the form from the page's `