langsuite 1.0.1
A hardening release: friendlier errors, a sturdier Telegram bot and faster startup. No data or workspace format changes; upgrade with pipx upgrade langsuite.
Fixed
- Every CLI error is now one
error:line plus ahint:line, with no Click boxes or tracebacks (use--debugfor those). Bad options exit 2; Ctrl-C prints "Interrupted." and exits 130; an unexpected crash exits 70 with a link to report it; a closed pipe (| head) exits quietly. query "score>=70"andrank --filter "grade>=Z"gave a stale "not built yet (M5c)" error; they now explain score fields and valid grades.- The Explore pane listed Docs, Score and Snippets as "planned"; they are built.
- Finding commands kept
\uXXXXescapes for non-ASCII text; they now show the text. - An unreadable
account.jsonwas silently replaced; it is now kept asaccount.json.badwith a warning. dashboard rename 3 xnow explains that rename takes the medoid language, not a cluster number.- The no-base hint said a 15 MB download; it is about 11 MB.
bot trywith a non-command now says the bot answers only /commands.
Bot
- Global error handler: any failure is logged (token redacted) and the person always gets a reply.
- Telegram calls have connect/read/write timeouts and retry flood waits and network errors (3 tries); a reply Telegram will not parse as MarkdownV2 is resent as plain text; one command is capped at 120 s.
- CLI usage errors in the bot point to /help instead of
-h.
Performance
- Lazy imports: numpy, telegram, textual and urllib load only when a command needs them;
import langsuite.cli.appwent from about 228 ms to 125 ms, and--versionfrom 312 ms to 236 ms. - Similarity baselines are cached on disk per base snapshot (
<home>/cache/baselines/), so repeatsimilar/compareruns skip the permutation baseline;similarwent from 529 ms to 385 ms.
Exit codes
0 ok · 1 verification failed · 2 no result or bad input · 3 data error · 4 auth · 5 quota · 70 internal error · 130 interrupted.