Skip to content

v0.4.0 — streaming file transfers

Choose a tag to compare

@tommie-lg tommie-lg released this 23 Jul 10:34
· 33 commits to main since this release

Coordinated release: @labelgrid/core 0.2.0 · @labelgrid/mcp 0.4.0 · @labelgrid/cli 0.2.0

Highlights

  • Streaming uploads and downloads. File transfers no longer buffer whole files in memory: presigned uploads stream from disk (with an explicit Content-Length), and downloads stream to disk. Memory use stays flat regardless of file size, and oversized files get an honest FILE_TOO_LARGE error.
  • Safe downloads. Downloads write to a temp sibling and move into place atomically — a failed transfer never leaves a partial file, and CLI --force no longer touches the existing file until the new one has fully arrived.
  • Fixed: large multipart uploads timing out. Cover-art and license uploads were incorrectly bound to the 60-second request timeout; they now use the transfer timeout.
  • Configurable timeouts. LABELGRID_TIMEOUT_MS and LABELGRID_TRANSFER_TIMEOUT_MS env vars (both server and CLI), plus CLI --timeout / --transfer-timeout flags.
  • Download directory allow-list (MCP). download_statement now only writes inside LABELGRID_DOWNLOAD_DIR (default: ~/Downloads, else the working directory). Set the env var to change it — see the README.
  • CLI transfer progress on interactive terminals; silent in scripts and under --json.

See each package's CHANGELOG for details. The MCP bump to 0.4.0 signals the new download-directory default; no tool names or parameters changed.