Skip to content

lxask 1.4.0

Choose a tag to compare

@arxhr007 arxhr007 released this 22 Nov 06:44
· 79 commits to main since this release
19694c7

Fixed

  • Garbled explanations. Some option descriptions came from the wrong lines of a man page: lxask --explain "lsof -i" said "+|-L, -o, +|-r, -s, -S, -T, -x and -z". It now gives lsof's own description. 4,122 descriptions are corrected, most of them gcc and ld options.
  • Options missing their value. findmnt --types with nothing after it now gets unverified: findmnt: --types needs a value and has none, so lxask tries another answer. Options whose value is optional, such as lsof -i and make -j, are not flagged.
  • sh -c '...' scripts are checked. The programs and options inside the script are now checked and explained like the rest of the line. [[ ]] in a script run by sh is flagged: on Debian and Ubuntu, sh is dash, which does not have it.

What the check covers

The docs now say it plainly: the check proves the programs and options exist and the line can run, not that it does what you meant. A valid pipeline can still take the wrong column. Options after a subcommand that has no man page (docker run, kubectl get) are not checked. See what the check cannot tell you.

Thanks to the people on Reddit who tried lxask on harder requests and said where it fell short.

Same model, new docs index

The model, both adapters and the encoder are byte-identical to 1.3.2's, so the numbers in docs/accuracy.md stand. docs.sqlite is rebuilt: only its table of options changed, and retrieval is the same. To upgrade without downloading the model again, run install.sh --from on a directory that holds the model files with this release's program, docs.sqlite and SHA256SUMS.

Checked with these files

  • 38,517 commands (eval references, every tldr example, saved model answers) checked before and after. No real command is newly flagged by mistake.
  • Regressions, multi-part, forbidden-program and everyday sets (208 requests): the same scores as 1.3.2.
  • A fresh install on Ubuntu 24.04, and an upgrade from 1.3.2 on Fedora 41 without cmp.

The binaries need glibc 2.28 or newer. Pick lxask-x86_64-v3 for x86 PCs from about 2015 on, lxask-x86_64 for older ones, and lxask-aarch64 for ARM64. install.sh installs everything, or installs from a directory with --from.