Skip to content

@stagepass/cli 2.5.0

Choose a tag to compare

@arobertherz arobertherz released this 17 Nov 17:13
· 64 commits to master since this release
557e7d6

CLI-only release

Published on npm as @stagepass/cli@2.5.0 on 17 November 2026 at 18:06 Europe/Berlin. Source tag cli-v2.5.0 → 557e7d63de5fa6b0f19021494084d293cc9da80a. npm package shasum af14c64886db8df13e28633417101d421d98b876, integrity sha512-K6T7PwK3j4jMLyYDC/Gpzy9/KA7w+xM4b+ibY16khmArUbwDMtwsXAHoFzsnTiCLqQMG3IWTJZ0PiItmGTMx/Q==, tarball sha256 fe83b7ea5d0c8bb8e509191221a79e6588bf210085f7bd8e4db81a9ec563ceb3. npm dist-tag latest is 2.5.0. next remains 2.3.0-beta.1.

Install or update with npm install -g @stagepass/cli@2.5.0. Loader (2.5.0) and Modules (2.2.2) are separate packages and are not part of this release.

Highlights

Minor release on top of 2.4.1. Merged on master as 557e7d6 (PR #94).

Added

  • stagepass new and stagepass upgrade write AGENTS.stagepass.md, owned by the CLI. AGENTS.md stays user-owned and keeps only a short pointer between managed markers.
  • .cursor/rules/stagepass.mdc is written only when .cursor/ already exists, or when you pass --cursor-rule. An existing rule is never deleted.
  • After a successful start, the CLI prints the Webflow Custom Code head snippets: the loader, then only the modules declared in stagepass.json. The project footer is not printed. A failed start prints no head snippet.
  • stagepass upgrade can retrofit editor types in an existing project, including a stagepass.d.ts file when a plain types array is not present.
  • stagepass dev also watches api/ and .php/ when "php": true.

Changed

  • Without a TTY and without --yes, stagepass upgrade leaves an unmodified scripts/build.mjs in place and prints a hint. CLI 2.4.0 and 2.4.1 replaced that file.

Security

  • PHP projects created with CLI 2.5.0 refuse rate-limit storage faults unless APP_ENV is local, development, or dev. client_ip() reads X-Forwarded-For or Forwarded only when REMOTE_ADDR is listed in TRUSTED_PROXIES. stagepass upgrade does not change api/. Copy the files from a new scaffold, or re-scaffold.

Fixed

  • Snippet exact pins use published loader 2.5.0 and modules 2.2.2. Script src stays on the major pin @2.
  • Footer snippets use a jsDelivr GitHub file URL when origin is a GitHub remote, otherwise https://YOUR-PRODUCTION-URL/js/main.js and the matching CSS file.
  • The release workflow runs scripts/check-published-versions.mjs before npm stage publish.

Verification

  • Self-hosted CI on Cerebro for PR #94 was green before merge. Release run 44115245452 was green. macOS smoke on the merge commit 557e7d6 passed.
  • npm latest is 2.5.0 as of 17 November 2026, 18:06:42 Europe/Berlin.

Known limits

This is a CLI-only release. Loader and modules versions are unchanged. stagepass upgrade does not rewrite an existing project's api/ files; the rate-limit and trusted-proxy behaviour applies to new 2.5.0 PHP scaffolds, or to files copied from one.