The relay never knows names and a link is printed once, so a lost link made an owned film unreachable. media put now appends each upload and its grant to $XDG_CONFIG_HOME/shade/media-library.jsonl (0600, one JSON line per change: concurrent uploads cannot lose entries, a torn line costs only itself). media ls names uploads from it; media link <name|id> prints the link again; media rm forgets it. encodeGrant now writes meta in canonical (validateMeta) order, so one grant is always one link; media.json vectors regenerated (album and subtitle vectors only), Kotlin 82/0. Verified: 82 TS tests (library: fold, find, 0600, torn line, 200 concurrent appends, stable encoding); CLI put → ls → link gives back the identical link. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
84 KiB
84 KiB