Cleaner interactive output
- Pickers take only the rows their options need, twelve at most, and are cleared once a choice is made. Output continues where the picker began, with no blank rows left behind.
- The live progress view is cleared when the runs end, with no blank rows left behind. While it is shown, a run’s results and summary are printed above it as ordinary lines, so long paths wrap and copy whole.
- A run’s summary lists the files it wrote (
→ path) only when stdout is not the terminal, so the paths are not shown twice. - The terminal is always restored, with its cursor shown, even when the command fails or crashes.
- Ctrl-Z suspends capdag from a picker or the live progress view;
fgresumes it. - On
TERM=dumbthere are no pickers, no live progress view and no colour.--progress liveis refused there. capdag model searchandcapdag model listprint their results without a run summary.- Piping into a command that closes early, such as
capdag caps | head, ends quietly with exit status 0 instead of crashing. - Progress lines and
--jsonrecords print each log line once. A failing item’s message in a map run was repeated a varying number of times.
Results are never lost when they cannot be saved
When a run’s results cannot be written where asked, because a file of the same name exists and
--force was not given or the directory is not writable, capdag keeps them and the error says
where each went:
- Text is printed to stdout, under its name on a terminal.
- Other results, such as images, go to stdout when stdout is a pipe or a file. On a terminal they
are saved to a new directory, named in the error (
kept instead: …). - With
--json, every result is saved and reported in anunsavedrecord (output,kept).
Results written before the failure are kept and listed, and the command exits 1.
-o is checked before anything runs, so no work is wasted. A file given as -o is a usage error
(exit status 2). A directory that cannot be created or written fails (exit status 1).
Separate crates for the command and the library
The capdag library no longer contains terminal code and has no cli feature. The command’s
terminal interface is the new capdag-tuikit crate, and the capdag binary is built by the new
capdag-cli crate. The command works as before. The library’s test builders are available to other
crates through the test-fixtures feature. Two new documentation pages, in English and Italian,
describe the terminal interface’s crates and how to work on it.
lungo 1.131.83
All capdag libraries now use code generated by lungo 1.131.83 and require exactly that lungo runtime. Behaviour is unchanged. The TypeScript declarations of capdag-js now document every exported function and type.
The proved model also states, as checked theorems, why two earlier rules were wrong: reading a
request’s open input as “any input will do” (serves_needs_what_is_sent), and requiring a cap to
cover a pattern’s output (fits_asks_what_the_cap_gives). The tests guarding those paths in every
library cite them.
Fixes
- The Rust library builds without compiler warnings.
- The CLI reference shows all its sections again. Two examples broke the Markdown, hiding everything after the command table. Fixed in English and Italian.
- Links from the machine notation and planner pages to the predicates’ section on complete things,
satisfiesandmay_satisfy, now go to that section instead of the top of the page, in English and Italian.