Repository navigation
margin 0.1.4
A redesigned web UI, a security fix for SQLite table names in Data Storyteller, and small fixes across all five packages.
pip install -U margin-core margin-cli margin-api margin-ai-code-detector margin-data-storyteller
Security fix (Data Storyteller). A table name in a SQLite file could lead the cleaned CSV and the report out of the output folder. Table names are now cleaned of folders and special characters before they're used. Table names containing / no longer break runs on Linux and macOS, and paths to devices or pipes are refused with a clear error.
Redesigned web UI (margin-api). The bundled web UI is redesigned around a ruled margin: notes on the left, content on the right, red for what was flagged and blue for what was checked. Also added:
- "Run again" via
RunView.input(the input as sent, without the run's own output folder). - Browser tabs named after the current page, showing a run's progress or when it needs an answer.
- Lazy-loaded result views, plus a view for the upcoming Commit Graph agent (tree with margin notes, replay slider, chapters and file/finding highlights).
- Uploads named after Windows devices (such as
NULorcon.csv) are prefixed with_so Windows saves them as files.
Other fixes:
- CLI: on Windows,
margin runwrites UTF-8 to stdout instead of crashing withUnicodeEncodeErrorwhen a report with characters like→is piped or redirected. - Core: multi-choice answers format cleanly as one list (stripping trailing full stops and using semicolons when choices contain commas), and "Not confirmed" warnings no longer end with two full stops.
- AI Code Detector: confidence reasons read in plain words ("only 1 file could be analysed", "1 kind of signal", "no kind of signal gave any evidence").
Versions: margin-core 0.1.4, margin-cli 0.1.3, margin-api 0.1.3, margin-ai-code-detector 0.2.2 and margin-data-storyteller 0.1.2.