Skip to content

chore: release 5.13.0 - #315

Merged
finalerock44 merged 23 commits into
productionfrom
promote/cli-next
Nov 13, 2026
Merged

finalerock44 merged 23 commits into
productionfrom
promote/cli-next

Conversation

@riglar

@riglar riglar commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Releases 5.13.0 to npm latest (minor bump from 5.12.1, derived from the PR titles).

5.13.0 (2026-11-13)

Features

  • drop iPhone 16 Pro Max and gpu1 from help text (removed 9 Nov 2026) (#302) (55fb4a1)
  • auth: say when a dcd login session has expired (#303) (9fafa2f)
  • device: tap, type, swipe and press-key subcommands (#310) (12f4da5)
  • mcp: set up Codex with dcd mcp install, and document every hosted client (#306) (dab495b)

Bug Fixes

  • device: keep a missing --text on type inside the --json envelope (#311) (9f16ca2)
  • device: make --maestro a no-op now that device sessions have one engine (#317) (07df107)
  • mcp: find code and claude .cmd shims on Windows (#286) (18efa4f)
  • mcp: say why a tool is missing in read-only mode (#307) (9a54e3a)

Dependencies

  • bump @supabase/supabase-js from 2.118.0 to 2.119.0 in the minor-and-patch group across 1 directory (#304) (f5db0b0)

Code Refactoring

  • auth: stop calling Supabase directly for logout, login checks and live status (#312) (14ae83d)

Built by hand, as described under Releases in CLAUDE.md. The Promote to stable workflow stops on a merge conflict: production's 5.12.1 hotfix (#318) and dev's #320 both changed the back-merge step in release-please.yml and its sentence in CLAUDE.md. This branch is dev at 68a8250, with production (5.12.1) merged in and both conflicts resolved to dev's side, plus a commit that sets the version in package.json and server.json and adds the CHANGELOG.md section above. The top merge commit only fast-forwards the branch from its first build. The tree is the rebuilt release, unchanged.

🤖 Generated with Claude Code

finalerock44 and others added 17 commits November 7, 2026 03:43
…026) (#302)

iphone-16-pro-max and the gpu1 runner type are removed on 9 November
2026. iphone-16-pro stays supported.

- --ios-device help no longer lists iphone-16-pro-max. Validation already
  follows the live compatibility data, so the API's answer is what a run
  that names it gets.
- --runner-type help, its error for an unknown value, and the
  dcd_run_cloud_test runnerType schema list default, m4, m1 and cpu1 only.
- gpu1 is still accepted by --runner-type and by dcd_run_cloud_test, so
  scripts and agents that pass it keep working: the API runs it on cpu1.
  validateEnum takes an optional list of accepted values it leaves out of
  its error message, and the MCP schema's enum is overridden through zod
  metadata.
* chore: pin the 5.12.0 promotion

Release-As: 5.12.0

* chore(production): release 5.12.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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
When Supabase Auth refuses to refresh a `dcd login` session, the CLI used
to echo its message ("Failed to refresh session: Invalid Refresh Token:
Session Expired. Run `dcd login` again."). It now names the two common
causes, keyed on the error code Supabase sends:

- `session_expired` (the session passed the project's maximum length or
  inactivity timeout): "Your session expired. Run `dcd login` to sign in
  again."
- `session_not_found` / `refresh_token_not_found` (the session was ended):
  "Your session was signed out. Run `dcd login` to sign in again."

Other refusals keep Supabase's message. The code is kept on
SessionRefreshError. supabase-js reports `session_not_found` as an
AuthSessionMissingError rather than an AuthApiError, so that case was
treated as a transient failure and retried; it is now final like any other
refusal.

A poll that loses its session no longer repeats itself ("session expired
and could not be refreshed: Your session expired"): it shows the refresh
error, then the reconnect command. dcd-mcp gets the new text through
runTool.
… -> 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.
#306)

feat(mcp): set up Codex with dcd mcp install, and document every hosted client

- dcd mcp install codex runs codex mcp add (after codex mcp remove, so a
  rerun replaces the entry). Codex keeps servers in ~/.codex/config.toml,
  shared by its CLI, IDE extension and desktop app, so its own CLI writes
  the entry. --print shows the command.
- In read-only mode, dcd mcp asks the hosted server for its read-only tools
  too (/mcp?read_only=true). The local filter stays, so an API without the
  flag is still read-only here.
- README: the hosted server's setup for Claude Code, Cursor, VS Code,
  Codex and Claude Desktop, its read-only URL (quoted, since ? is a zsh
  glob), API-key sign-in, and Codex for dcd mcp.
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.
With --read-only, dcd mcp asks the hosted server for its read-only tools,
and the server then doesn't list the others at all. A call to one of them,
such as run, came back as a bare "Unknown tool: run". In read-only mode
an unknown tool now says the server offers only the tools that change
nothing.

The test stand-in for the hosted server now honours ?read_only=true as the
API does, which is how this slipped through. A second test plays an API
that lists every tool, so the local refusal stays covered.
The README's MCP section is now about dcd mcp: setting it up with
dcd mcp install, running it headless with DEVICE_CLOUD_API_KEY (for
example in CI), setting it up by hand, its dcd_* tools and read-only mode,
and the older dcd-mcp.

The server's instructions are sent before it knows which hosted tools an
account has, so they now name only the dcd_* tools; other tools explain
themselves in their own descriptions.
* fix(mcp): find code and claude .cmd shims on Windows

On Windows, VS Code's command line is code.cmd and npm installs Claude
Code as claude.cmd. Node's spawn without a shell skips .cmd files on
PATH and refuses to start them, so `dcd mcp install vscode` and
`dcd mcp install claude-code` said the command wasn't on PATH.

Find the command on PATH with PATHEXT ourselves. Run an .exe directly,
and a .cmd or .bat through cmd.exe with each argument escaped for both
of cmd's parse passes, so the --add-mcp JSON arrives unchanged.

Fixes #281

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

* fix(mcp): refuse a line break in an argument passed through cmd.exe

A line break ends cmd's command line, so caret escaping can't protect
an argument that holds one. No argument we pass can contain one today,
but refuse it rather than rely on that.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: finalerock44 <77282157+finalerock44@users.noreply.github.com>
`dcd device` could drive a session only with `run` (a Maestro flow). The
API's typed action route, POST /device/sessions/:id/actions, performs one
tap, typed text, swipe or key press and answers once the screen has
settled, so these four subcommands expose it:

  dcd device tap [id] --text "Log in" | --rid login_button | --x 50 --y 80
  dcd device type [id] --text "hello" [--sensitive]
  dcd device swipe [id] up|down|left|right | --from 90,50 --to 10,50
  dcd device press-key [id] back|home|enter|backspace|tab|volume_up|volume_down|lock|power

Same rules as the other subcommands: the session id may be left out when
one session is open, --json prints the envelope, a failed action exits 2
with the result. --maestro runs the action as a Maestro flow instead.
…pe (#311)

`type --text` was marked required, so citty rejected a missing value
before runDeviceCommand ran, and --json then printed the top-level
{ status, error } instead of the device envelope the command promises.
The flag is optional now; the command's own check answers the usage error
(exit 1) inside the envelope.
…-and-patch group across 1 directory (#304)

deps: bump @supabase/supabase-js

Bumps the minor-and-patch group with 1 update in the / directory: [@supabase/supabase-js](https://github.com/supabase/supabase-js/tree/HEAD/packages/core/supabase-js).


Updates `@supabase/supabase-js` from 2.118.0 to 2.119.0
- [Release notes](https://github.com/supabase/supabase-js/releases)
- [Changelog](https://github.com/supabase/supabase-js/blob/master/packages/core/supabase-js/CHANGELOG.md)
- [Commits](https://github.com/supabase/supabase-js/commits/v2.119.0/packages/core/supabase-js)

---
updated-dependencies:
- dependency-name: "@supabase/supabase-js"
  dependency-version: 2.119.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ks and live status (#312)

* refactor(auth): stop calling Supabase directly for logout, login checks and live status

- dcd logout now just deletes the stored session. It never revoked
  anything server-side, so the Supabase round trip did nothing useful.
- dcd login no longer probes Supabase's /auth/v1/user when the API
  rejects a new token. The error still names the token's issuer.
- dcd cloud / status no longer open a Supabase Realtime socket. It was
  only a speed-up over polling. Logged-in users now poll every 20s, the
  same as API-key users (was 60s plus realtime pushes).

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

* test: zero the renamed poll interval in the poll-cache loop test

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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>
# Conflicts:
#	.release-please-manifest.json
…316)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@riglar riglar mentioned this pull request Nov 13, 2026
finalerock44 and others added 6 commits November 13, 2026 11:45
#317)

fix(device): make --maestro a no-op now that device sessions have one engine

Device sessions run on a single engine (agent-device) and no longer on
Maestro, so there is no second path for a typed action to ask for.
`--maestro` on `dcd device tap|type|swipe|press-key` is still accepted,
so scripts that pass it keep working, but it is no longer sent to the API
(which accepts `mode: "maestro"` and ignores it) and its help says so.

`dcd device run` still takes Maestro YAML. Its help now says a device
session runs the common Maestro commands and no flow scripts.
…side (#320)

* ci: resolve version-file conflicts in the back-merge to production's side

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

* ci: resolve back-merge version conflicts hunk by hunk, keeping dev's other edits

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* chore: pin the 5.12.0 promotion

Release-As: 5.12.0

* chore(production): release 5.12.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

---------

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: Claude Opus 5.5 <noreply@anthropic.com>
production gained the 5.12.1 hotfix (#318) after this branch was built, so it no longer merged. The second parent is the release rebuilt the usual way: dev at 68a8250, production merged in with the release-please.yml and CLAUDE.md conflicts resolved to dev's side (#320), and a chore: release 5.13.0 commit. This merge takes that tree as-is, so the branch moves forward instead of being force-pushed.
@finalerock44
finalerock44 merged commit 28355c7 into production Nov 13, 2026
7 checks passed
@finalerock44
finalerock44 deleted the promote/cli-next branch November 13, 2026 17:21
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