Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 08:04
· 113 commits to main since this release
  • Big builds. Agents can publish a built site, such as a Vite dist/ folder with hundreds of
    files, in one step. The new MCP tool start_upload (and POST /api/v1/uploads) returns a
    single-use, 30-minute upload ticket. One curl of a gzipped tar to its upload_url publishes the
    folder or updates the artifact.
  • Smaller updates. An asset can be sent as {path, sha256} to reuse a file from the current
    version, so an update sends and stores only what changed. get_artifact lists each asset's
    sha256, and the storage quota counts each stored file once.
  • Safe retries. GET /api/v1/uploads/:id tells an agent whether an upload whose response was
    lost was published. A retry never creates a duplicate version or artifact.
  • CLI. plinth login, logout, whoami, publish <dir> and upload <dir> publish a build
    folder from any machine, with no checkout or wrangler. publish --id sends only the files that
    changed and exits 3 on a conflict.
  • Publish warnings. Publish results list warnings: missing files, root-absolute URLs, hosts
    outside the CDN allowlist and http: URLs.
  • Higher limits, now settings. MAX_VERSION_BYTES defaults to 50 MB (from 25 MB) and
    MAX_ASSETS_PER_VERSION to 511 files (from 200). GET /api/v1/config returns the instance's
    limits and CDN allowlist.
  • Faster repeat views. Artifact files get ETags and 304 responses, and files under versioned
    URLs are cached privately as immutable.
  • More reliable publishing. Files are stored before the version is committed, so an
    interrupted publish no longer leaves a broken version. An hourly cleanup removes what
    interrupted uploads leave behind. Instances without cron (local, tunnel, Docker) clean up when
    the next upload starts.
  • Source link. The banner under every artifact links to Plinth's source code. Set
    SHOW_SOURCE_LINK=false to remove the link.
  • CLI behaviour change. plinth publish --id --base-version N now exits 0 only when the
    current version (N or N+1) already matches the folder. Any later version, even with the same
    files, exits 3 as a conflict.
  • Admin. sweep-orphans requires --older-than-minutes of at least 45. erase-artifact also
    deletes the upload ticket that published the artifact.
  • Agent plugin 0.6.0. The skill covers built sites, reuse by hash and instance limits. Claude
    Code install guidance lists the plugin first.

Upgrading

  • Apply migrations 0006_stored_bytes.sql and 0007_upload_tickets.sql before deploying the
    Worker. plinth deploy does this for you.
  • Storage is forward-only. Once this release has written versions, don't roll the Worker back:
    an older Worker answers 404 for reused files and cannot update or restore those artifacts. Fix
    forward instead.
  • If you maintain your own wrangler config, add the enable_request_signal compatibility flag and
    the hourly cron trigger "triggers": { "crons": ["0 * * * *"] }. plinth deploy, plinth start and the Docker image add both for you. From a checkout, deploy with
    pnpm --filter @plinth/worker run deploy:production, which refuses a config that lacks them. On
    Workers Free, the cron counts toward the account's 5 Cron Triggers.
  • Details: docs/deploy-checklist.md.

Install: npx @mr0b0t0/plinth@0.4.0 · Docker: ghcr.io/mr0b0t0/plinth:0.4.0