nautd/webui: scripting, labels, settings, set-location, pause fix

Session checkpoint on webui-plugin:
- engine dump (nautctl dump) + engine endgame integration
- per-file move locations persistence; torrent-level "Set location"
  with reset/keep-relative/leave-separate handling + residual prune
- Lua: naut.get_labels, define_settings/get_setting (script_host struct)
- daemon-owned labels (category+tags) + taxonomy persistence; webui write-through
- fix: pausing a completed/seeding torrent now sticks (stop wins over result)
- automation tab responsive layout; anime_sort label gating + settings

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ookami125 2026-06-21 23:19:41 -04:00
parent 6dc711cf57
commit b633b7d216
40 changed files with 3305 additions and 3267 deletions

View file

@ -18,6 +18,12 @@ typedef struct naut_storage naut_storage;
typedef struct {
bool direct_io;
bool preallocate;
/* Optional per-file path overrides, e.g. files moved out of `root` on a
* prior run. If non-NULL the array has one entry per file: where overrides[i]
* is non-NULL the file is opened at that path instead of `root`/<rel-path>,
* so a relocated file is picked up in place (no re-download, no placeholder
* recreated under `root`). A NULL entry uses the default location. */
const char *const *overrides;
} naut_storage_opts;
/* Open (creating + preallocating) all files under `root`. */