fix(assistant): readable cards for any tool, and the CI round

- A card for a tool without one of its own names what it works on: the place
  of an assignment, the day, the note, the booking; its arguments sit under
  the labels the other cards use, a new order reads as the names in order.
  28 frequent tools carry their own action name in every language.
- The server's own steps without a card still refuse, as before.
- Tests: the rate limit is asked one request after another, the mention list
  closes on the caret move a browser reports, the place factory hands its
  category over as a plain id, eleven files formatted.
This commit is contained in:
Maurice
2026-10-21 22:28:34 +02:00
parent 4406d5085f
commit c37d3f773e
47 changed files with 1019 additions and 76 deletions
@@ -144,9 +144,7 @@ export function splitMentions(text: string, labels: readonly string[]): MentionS
let i = 0;
while (i < text.length) {
const token =
text[i] === '@'
? tokens.find((tk) => text.startsWith(tk, i) && endsWord(text, i + tk.length))
: undefined;
text[i] === '@' ? tokens.find((tk) => text.startsWith(tk, i) && endsWord(text, i + tk.length)) : undefined;
if (token) {
if (i > start) out.push({ text: text.slice(start, i), at: start, mention: false });
out.push({ text: token, at: i, mention: true });