Skip to content

chore: release 5.17.0 - #371

Open
dcd-release-please[bot] wants to merge 13 commits into
productionfrom
promote/cli-next
Open

dcd-release-please[bot] wants to merge 13 commits into
productionfrom
promote/cli-next

Conversation

@dcd-release-please

@dcd-release-please dcd-release-please Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Releases 5.17.0 to npm latest (minor bump from 5.16.0, derived from the PR titles).

5.17.0 (2026-12-04)

Features

  • sign release binaries (#382) (9da7637)
  • api: send the runtime (bun or node) with the CLI identity headers (#377) (ed3c255)
  • device: show the session's locale in dcd device status (#374) (ee995df)
  • retry: add dcd retry to rerun failed tests (#370) (e0d5827)
  • upload: record iOS executable architectures in binary metadata (#380) (1d3f2b4)

Bug Fixes

  • cloud: mask -e values in the options summary and debug log (#376) (6776b6e)
  • release: publish the beta tarball by its ./ path (#385) (f3d68af)

Kept current by the Promote to stable workflow, which rebuilds this branch on every push to dev: dev at f3d68af, with production merged in, plus a commit that sets the version in package.json and server.json and adds the CHANGELOG.md section above.

  • Merge with Create a merge commit, the only method production allows, when you want to release.
  • Merging is the release: the Release workflow tags v5.17.0, creates the GitHub Release from the section above, publishes npm latest and the binaries, and opens the back-merge PR into dev.
  • Leave it open until then; closing it only means the next push to dev opens a new one.

dcd-release-please Bot and others added 4 commits December 1, 2026 11:59
* chore: pin the 5.12.0 promotion

Release-As: 5.12.0

* chore(production): release 5.12.0

* chore: release 5.13.0

* ci: Replace release-please with a custom version that handles our dev -> prod flow (#305)

* ci: cut a stable release with one workflow run and one PR

A stable release used to take a hand-built promotion branch (dev, a merge
of production, and an empty Release-As pin commit), a promotion PR, then
release-please's own Release PR, then the back-merge PR.

A new "Promote to stable" workflow (promote.yml) now builds the release
branch: dev, with production merged in, plus one commit that sets the
version in package.json and server.json and adds the CHANGELOG.md
section. It opens that as the only PR into production. Merging it is the
release: the Release workflow tags the untagged version, creates the
GitHub Release from the changelog section, and publishes npm, the
binaries and the back-merge as before.

scripts/stable-release.mjs derives the version from the Conventional
Commit PR titles since the last release, as release-please did, but
never derives a major: a breaking marker stops the run until the version
is given explicitly. Its changelog lists each PR once, using the full
title when GitHub cut it short, where release-please listed such PRs
twice.

Production is merged in on every run because dev only allows squash
merges, so the back-merge can never make production an ancestor of dev.

release-please, its config and manifest, and the Release-As
promotion-pin check are removed. A release-check job verifies every PR
into production instead. Release PRs skip claude-review, like back-merge
PRs, because the review action rejects bot actors. The Release workflow
keeps the release-please.yml filename, because npm's trusted publisher
is registered against it.

* ci: keep the stable release PR open and current on every push to dev

Promote to stable now also runs on every push to dev. It rebuilds one
fixed branch, promote/cli-next, and opens the release PR into production
or updates the open one, so the PR always carries all of dev with the
version and changelog to match. Nothing ships until someone merges it.

- A push with nothing releasable since the last release (docs, the
  back-merge) does nothing.
- A version set by hand is kept on later runs (plan --keep) whenever it
  is above the derived one, so a major has to be given only once, and a
  breaking marker still never derives one.
- If production moved during the run, nothing is pushed; the back-merge
  push rebuilds the PR. The force-push is leased against the branch tip
  the run saw, and skipped when the content is unchanged.
- A PR into production from any other branch is left alone: push runs
  warn and stop.

(cherry picked from commit 6bebbef)

* ci: lint PR titles on pull_request instead of pull_request_target (#308)

GitHub blocks pull_request_target by default in public repositories from
2026-12-02. The PR title check only reads the event payload, so it runs on
pull_request, which also fires for fork PRs with a read-only token.

The CLA workflow has to write to fork PRs, so it stays on
pull_request_target. A repository Actions policy allows that trigger for
cla.yml only. Its header now says so.

(cherry picked from commit 02d99b9)

* fix: treat dev-api.devicecloud.dev as the dev environment (#314)

The dev API is now at dev-api.devicecloud.dev. Make it the dev apiUrl and
keep api.dev.devicecloud.dev as a legacy URL, so saved configs and CI
flags that name it still resolve to dev.

inferEnvFromApiUrl only recognised 'api.dev.', so a dev-api URL fell
through to prod and the Supabase copy of an upload would target the prod
project. Both hostnames now map to dev.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 25d09ca)

* deps: raise the hono override to 4.13.16 for new moderate advisories

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2476581)

* chore: release 5.12.1

* chore: release 5.13.0

* chore: release 5.14.0

* chore: release 5.14.1

* chore: release 5.15.0

* chore: release 5.16.0

---------

Co-authored-by: finalerock44 <ethan@devicecloud.dev>
Co-authored-by: finalerock44 <77282157+finalerock44@users.noreply.github.com>
Co-authored-by: dcd-release-please[bot] <296541543+dcd-release-please[bot]@users.noreply.github.com>
Co-authored-by: Tom Riglar <tom.riglar@moropo.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…369)

Two advisories published on 2026-12-01 turned `pnpm audit --audit-level
moderate` red on dev without any tree change:

- GHSA-ghv9-86vm-4v8m (critical, cross-spawn >=7.0.0 <7.1.0, Windows
  batch-file command injection), via eslint and @modelcontextprotocol/sdk.
  Pinned to 7.1.2 rather than 7.1.0: 7.1.1 fixes a second Windows
  injection (GHSA-w3gc-668g-rf8f, not yet in the advisory database) and
  7.1.2 fixes a 7.1.0 regression for batch files found in PATH.
- GHSA-qxr8-q827-836c (moderate, glob >=13.0.5 <=14.0.5), via mocha.
  Existing override bumped from 14.0.2 to 14.0.6.
* feat(retry): add dcd retry to rerun failed tests

Retry tests that already ran, without uploading anything:

- `--upload-id <id>` retries every failed test in the upload.
- `--upload-id <id> --flow <name>` retries the failed attempts of one flow,
  on each device it failed on. The flow can be given as a file name with or
  without its extension, or as its path.
- `--result-id <id>` retries one result.

Each retry is a new, billed run, so the request is never resent
automatically, and a --flow retry stops at the first refusal and says which
retries went through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(retry): say retries are free, not billed

The API charges nothing for a retry. Correct the help text and comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#375)

`pnpm audit --audit-level moderate` fails on every branch since advisories
published after dev's last green run (12-01 14:07Z):

- tar <8.0.0 (direct dependency, 7.5.23): 18 advisories, symlink escapes
  and PAX/parser differentials among them, fixed only in tar 8. The CLI
  calls `tar.extract({ cwd, file })` on Expo/EAS .tar.gz builds
  (src/utils/expo.ts), which tar 8 still takes: it returns a promise,
  reads `file` and detects gzip. Node >=22 matches our engines. ^8.0.5,
  not 8.0.2: 8.0.3-8.0.5 add parser hardening listed in tar's security
  notes. tar 8 has no runtime dependencies, so minipass, minizlib,
  chownr, yallist and @isaacs/fs-minipass leave the lockfile.
- minimatch 11.0.1 via mocha (dev only): GHSA-cf2h-pxjq-68xw (>=11.0.7)
  and GHSA-c859-jr93-m5j4 (>=11.0.8). The override goes to 11.0.9, which
  the rest of the tree already resolves to.

Checked: audit clean, lint, typecheck, 787 unit tests, build, dcd-mcp
tools/list (6 tools), and the built extractTarGz on a packed copy of the
testing repo's iOS fixture app: 304 paths byte-identical with tar 7's
output, and a symlink pointing outside the bundle refused.
The API's session block now carries `locale` (the locale the device was
set to, null when none was asked for) and `os_version` (the iOS version
or Android API level). Type both as optional, since older APIs don't send
them, and print a `locale` line when one is set. `model` already shows the
version, so there is no separate OS line. --json passes both through.
`dcd cloud` printed every `-e KEY=VALUE` pair in plain text: in the
Options summary it shows before submitting, and in the `--debug` line
that lists the run's environment variables. `-e` is how secrets reach
flows, and that output ends up in CI logs and agent transcripts.

Both now show each name with its value masked (`KEY=***`). The values
sent with the run are unchanged.

The summary rows are built by `optionsSummaryFields` in
`src/utils/options-summary.ts`, so they can be unit-tested.

Closes #372
…rs (#377)

Every API request now carries x-dcd-cli-runtime next to x-dcd-cli-version:
bun for the standalone binary, node for the npm package. A bug that only
one build has can then be traced to the requests and uploads it affected.

The header is set in resolveAuth's client headers, which covers the
--api-key, env, session, refresh and MCP paths, and in the e2e provider,
which builds its own headers. getRuntime() is now the one place that tells
the two builds apart; getInstallMethod() uses it.
…380)

* feat(upload): record iOS executable architectures in binary metadata

Read the Mach-O header of the app's main executable (CFBundleExecutable)
and send its CPU families as `architectures`, the same field APKs already
use. Only the first 4 KB of the executable is inflated.

An iOS simulator build with only an x86_64 slice runs under Rosetta on
Apple Silicon. Apple removes general-purpose Rosetta in macOS 28, so the
platform needs to know which builds have no arm64 slice before hosts
move there (dcd#1511). The CLI sees the build before it is encrypted, so
this works for encrypted uploads too.

Unknown stays unknown: a missing or unreadable executable leaves the
field out and never fails the upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(types): drop a private issue reference from the architectures comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The standalone binaries embed the Bun runtime, and both release workflows
installed it from a floating '1.3' range, so a release could pick up a new
runtime without any change in this repo. Pin it exactly in .bun-version
(1.4.5) and read that file from both workflows.

Also ignore dist-bin/ and Bun's *.bun-build temp files.
* feat: sign standalone release binaries and verify signatures on upgrade and install

Every standalone release now carries SHA256SUMS.sig: an ECDSA P-256 and an
ML-DSA-65 signature over the release version and the SHA-256 of SHA256SUMS.
The public keys are built into the CLI and the install scripts, and are in
release-keys/.

- dcd upgrade checks both signatures before it downloads the binary, then
  checks the binary against the signed SHA256SUMS. A release with no
  signature, a bad signature, or a signature for another version is refused
  and the running binary is left alone.
- install.sh and install.ps1 check the P-256 signature. A bad signature
  always aborts. A missing signature is fatal from the first signed release
  on; for older pinned versions, or with no openssl on the machine, they
  warn, and DCD_REQUIRE_SIGNATURE=1 makes that fatal too.
- Stable releases are signed from production in the cli-release-signing
  environment, betas from dev in cli-beta-signing with keys that are only
  valid for prerelease versions. Signing runs in its own job with no write
  token and no package install; a keyless job checks the result on the
  pinned Bun before anything is uploaded.
- Betas are cut from dev only.

* ci: take the pnpm version from packageManager in the signing test jobs

* test: give each PowerShell its own PSModulePath in the install.ps1 tests

* test: pass the shell key ids from the source keys, not from file names

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants