/* 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 for the * usual location rules over a row per remaining rule; 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 `