Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
# Changelog

## Unreleased
## 0.7.1 (2026-11-25)

- Web: `typeFocused()` with no text field focused throws `ACTION_FAILED` with the new reason `no_focused_input` and the message `Nothing was typed: no text field has focus (no_focused_input). Use type({ target: 'the email field' }, text), which taps the field and types into it, or tap the field first.` Revyl answers this with HTTP 409, which 0.7.0 reported as `SESSION_BUSY`, so a script or agent gave up on a call it could fix. Your own model's loop now feeds the message back to the model instead of ending the step, because `ACTION_FAILED` doesn't abort it. A session that really is busy, such as a second step while one runs, still throws `SESSION_BUSY`.
- Typing has one rule on every platform: `type({ target }, text)`. Mac computers now take `type(at, text, { clear })`: it clicks the field (a description or a point), selects its text with Command+A (Ctrl+A on Linux) unless `clear` is `false`, types, and resolves with the point clicked. It refuses control characters other than `\n` and `\t` before clicking. `typeFocused()` on iOS and Android still throws `NOT_AVAILABLE_ON_PLATFORM` before anything is sent, now naming `type({ target: 'the email field' }, text)`. The README, the API page and the web, mobile, computers, errors and agents pages teach `type({ target }, text)` as the way to type everywhere, and your own model's tool list describes `type` as the way to type and `type_focused` as needing a focused field.
- Computers: `recording()` after `close()` waits until Revyl has saved the video, asking every 5 seconds, and returns it; it returns `null` only when none was saved within `timeoutMs` (`recording({ timeoutMs })`, 15 minutes by default, 0 to ask once). Revyl saves the video a few seconds after release, so 0.7.0's `recording()` right after `close()` returned `null`, and `attach()` can't reopen a closed computer to fetch it later. Called on a running computer it still throws `SESSION_BUSY`, now saying to call `close()` first. The docs say to call `recording()` on the same object after `close()`, before the script exits.
- Docs: session profiles run on Revyl's production backend, so the API page and the Python and Go READMEs no longer say a profile name is refused there (#66).
- Computers: a Mac computer create that Revyl refuses with `computer_not_enabled` and `unlocks_with_card: true`, as it does for a Free-plan organization, throws `NOT_AVAILABLE_ON_PLATFORM` with the new reason `upgrade_required` instead of no reason and the generic support guidance. The message reads `Mac computers come with Pro, so Revyl refused this computer (computer_not_enabled, upgrade_required).`, then Revyl's upgrade offer and billing link (`<offer message>: <https billing link>`) when Revyl sends one with an HTTPS link and a single-line message of at most 160 characters, and otherwise `Add a card in Revyl's billing settings to unlock them.` `open()` adds the session link as before; `openPersistent()` refuses the same way. The code is unchanged, the create is still not retried and no stop is sent, and any other `computer_not_enabled` refusal keeps its current message.
- Python: the same, with `reason="upgrade_required"` on `open()` and `open_persistent()`.
- Go: the same, with `Reason` `ReasonUpgradeRequired` on `Open` and `OpenPersistent`.

## Go 0.6.1 (2026-11-25)

To be published as the `go/v0.6.1` tag.

- Web: `TypeFocused` with no text field focused returns `ErrActionFailed` with `Reason` `ReasonNoFocusedInput` and a message naming `session.Type(ctx, verify.Element("the email field"), text)`, as in TypeScript 0.7.1, instead of `ErrSessionBusy`. A session that really is busy still returns `ErrSessionBusy`.
- `Type(ctx, at, text, TypeOptions{Clear})` works on Mac computers, as in TypeScript 0.7.1. `TypeFocused` on iOS and Android names `Type(ctx, verify.Element(…), text)`.
- Computers: `Recording(ctx)` after `Close` waits until Revyl has saved the video, for up to 15 minutes or `ctx`'s deadline, as in TypeScript 0.7.1; it returns `(nil, nil)` only when none was saved by then, and `ctx.Err()` when `ctx` is canceled.
- A Mac computer create refused with `computer_not_enabled` and `unlocks_with_card: true` returns `ErrNotAvailableOnPlatform` with `Reason` `ReasonUpgradeRequired` on `Open` and `OpenPersistent`, as in TypeScript 0.7.1.
- `verify.Version` and the `User-Agent` report 0.6.1.

## Python 0.5.1 (2026-11-25)

- Web: `type_focused()` with no text field focused raises `ACTION_FAILED` with `reason="no_focused_input"` and a message naming `type("the email field", text)`, as in TypeScript 0.7.1, instead of `SESSION_BUSY`. A session that really is busy still raises `SESSION_BUSY`.
- `type(at, text, clear=True)` works on Mac computers, as in TypeScript 0.7.1. `type_focused()` on iOS and Android names `type("the email field", text)`.
- Computers: `recording(timeout=900)` after the computer is closed waits until Revyl has saved the video, as in TypeScript 0.7.1, and returns `None` only when none was saved within `timeout` seconds. `AsyncSession.recording()` takes `timeout` too.
- A Mac computer create refused with `computer_not_enabled` and `unlocks_with_card: true` raises `NOT_AVAILABLE_ON_PLATFORM` with `reason="upgrade_required"` on `open()` and `open_persistent()`, as in TypeScript 0.7.1.
- The `User-Agent` reports 0.5.1.

## 0.7.0 (2026-11-23)

Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ await session.instruction('Accept the terms if they are shown'); // the age
await session.validation('The welcome screen is shown');
```

`doubleTap`, `typeFocused`, `back`, `goHome`, `openUrl`, `launchApp`, `locate` and `screenSize` round them out; [which call works where](#which-call-works-where) shows the platform limits. Early access. Since TypeScript (`@revyl/verify`) 0.4.0, Python (`revyl-verify`) 0.2.0 and Go v0.3.0. `doubleTap`, `longPress`, `drag`, `typeFocused`, `goHome`, and Web keys and modifiers in `pressKey`, are new in TypeScript 0.5.0, Python 0.3.0 and Go v0.4.0. On a Mac computer's screen, `tap` (by point or by description), `screenSize`, `typeFocused` and `pressKey` are new in TypeScript 0.6.0, Python 0.4.0 and Go v0.5.0. The [Python](https://github.com/RevylAI/verify/blob/v0.7.0/python/README.md#exact-actions) and [Go](https://github.com/RevylAI/verify/blob/v0.7.0/go/README.md#exact-actions) READMEs show them with each language's names. The [web](packages/verify/docs/web.md#exact-actions) and [mobile](packages/verify/docs/mobile.md#exact-actions) guides have runnable scripts, and [api.md](packages/verify/docs/api.md#exact-actions) lists every call.
**Typing: one rule on every platform.** To type, call `type({ target: 'Email field' }, text)`: it taps the field you describe and types into it, replacing its text unless you pass `{ clear: false }`. It works the same on Web, iOS, Android and a Mac computer. `typeFocused(text)` types wherever focus already is, without tapping, and only on Web and computers; on Web, when no field has focus it throws `ACTION_FAILED` with reason `no_focused_input` and types nothing.

`doubleTap`, `typeFocused`, `back`, `goHome`, `openUrl`, `launchApp`, `locate` and `screenSize` round them out; [which call works where](#which-call-works-where) shows the platform limits. Early access. Since TypeScript (`@revyl/verify`) 0.4.0, Python (`revyl-verify`) 0.2.0 and Go v0.3.0. `doubleTap`, `longPress`, `drag`, `typeFocused`, `goHome`, and Web keys and modifiers in `pressKey`, are new in TypeScript 0.5.0, Python 0.3.0 and Go v0.4.0. On a Mac computer's screen, `tap` (by point or by description), `screenSize`, `typeFocused` and `pressKey` are new in TypeScript 0.6.0, Python 0.4.0 and Go v0.5.0, and `type` in TypeScript 0.7.1, Python 0.5.1 and Go v0.6.1. The [Python](https://github.com/RevylAI/verify/blob/v0.7.1/python/README.md#exact-actions) and [Go](https://github.com/RevylAI/verify/blob/v0.7.1/go/README.md#exact-actions) READMEs show them with each language's names. The [web](packages/verify/docs/web.md#exact-actions) and [mobile](packages/verify/docs/mobile.md#exact-actions) guides have runnable scripts, and [api.md](packages/verify/docs/api.md#exact-actions) lists every call.

## Your own model

Expand All @@ -74,15 +76,15 @@ await session.instruction('Open Privacy', { model: 'openai/gpt-5.5' });
await open('ios', { model: { id: 'qwen-3.8-27b', baseURL: 'https://api.cerebras.ai/v1', apiKey: process.env.CEREBRAS_API_KEY } });
```

Since TypeScript (`@revyl/verify`) 0.4.0, Python (`revyl-verify`) 0.2.0 and Go v0.3.0; the [Python](https://github.com/RevylAI/verify/blob/v0.7.0/python/README.md#your-own-model) and [Go](https://github.com/RevylAI/verify/blob/v0.7.0/go/README.md#your-own-model) READMEs show them with each language's names. Built in: `anthropic`, `openai`, `google`, `openrouter`, `groq`, `cerebras`, `xai` and `ollama`; anything OpenAI-compatible works through `baseURL`. Early access; [Use your own model](packages/verify/docs/own-model.md) covers the providers, picking a model, what Revyl still sees, limits and troubleshooting.
Since TypeScript (`@revyl/verify`) 0.4.0, Python (`revyl-verify`) 0.2.0 and Go v0.3.0; the [Python](https://github.com/RevylAI/verify/blob/v0.7.1/python/README.md#your-own-model) and [Go](https://github.com/RevylAI/verify/blob/v0.7.1/go/README.md#your-own-model) READMEs show them with each language's names. Built in: `anthropic`, `openai`, `google`, `openrouter`, `groq`, `cerebras`, `xai` and `ollama`; anything OpenAI-compatible works through `baseURL`. Early access; [Use your own model](packages/verify/docs/own-model.md) covers the providers, picking a model, what Revyl still sees, limits and troubleshooting.

## Packages

| Package | Install | Status |
| --- | --- | --- |
| [`@revyl/verify`](https://www.npmjs.com/package/@revyl/verify) | `npm install @revyl/verify` | TypeScript SDK and the `verify` CLI (`init`, `login`, `logout`, `whoami`). Published on npm, Node.js 22.18 or later. |
| [`revyl-verify`](https://www.npmjs.com/package/revyl-verify) (npm) | `npm install revyl-verify` | Alias of `@revyl/verify` at the same version. |
| [Go module](https://github.com/RevylAI/verify/tree/go/v0.6.0/go) | `go get github.com/RevylAI/verify/go@v0.6.0` | Published as the `go/v0.6.0` tag, Go 1.26.9 or later. Calls return errors instead of throwing. |
| [Go module](https://github.com/RevylAI/verify/tree/go/v0.6.1/go) | `go get github.com/RevylAI/verify/go@v0.6.1` | Published as the `go/v0.6.1` tag, Go 1.26.9 or later. Calls return errors instead of throwing. |
| [`revyl-verify`](https://pypi.org/project/revyl-verify/) (PyPI) | `pip install revyl-verify` or `uv add revyl-verify` | Python SDK, published on PyPI. Python 3.10 or later, sync and asyncio APIs, no CLI; see the [Python guide](python/README.md). |

## Platforms
Expand All @@ -92,17 +94,18 @@ Since TypeScript (`@revyl/verify`) 0.4.0, Python (`revyl-verify`) 0.2.0 and Go v
| Web | Yes | Yes | — | Yes |
| iOS simulator | Yes | Yes | — | Yes |
| Android emulator | Yes | Yes | — | Yes |
| Mac computer | — | Screen: `tap`, `typeFocused`, `pressKey` | Yes | Yes |
| Mac computer | — | Screen: `tap`, `type`, `typeFocused`, `pressKey` | Yes | Yes |

### Which call works where

| Call | Web | iOS | Android | Mac computer |
| --- | --- | --- | --- | --- |
| `tap({ x, y })`, `tap({ target })`, `screenSize` | Yes | Yes | Yes | Yes |
| `locate` | Yes | Yes | Yes | No, use `tap({ target })`, which returns the point it clicked, or read the point off `screenshot()` |
| `doubleTap`, `longPress`, `type`, `swipe`, `drag` | Yes | Yes | Yes | No |
| `type({ target }, text)`, the way to type | Yes | Yes | Yes | Yes: clicks the field, selects its text unless `{ clear: false }`, then types |
| `doubleTap`, `longPress`, `swipe`, `drag` | Yes | Yes | Yes | No |
| `pressKey(key, { modifiers })` | Yes: `'enter'`, `'backspace'`, `'tab'`, `'escape'`, arrows and more, with modifiers | `'enter'` and `'backspace'` only | `'enter'` and `'backspace'` only | Yes: the Web keys and modifiers, where `'meta'` is Command |
| `typeFocused(text, { clear })` | Yes, types into the focused field | No, use `type(location, text)` | No, use `type(location, text)` | Yes, with `{ clear: false }` |
| `typeFocused(text, { clear })` | Yes, types into the focused field; `ACTION_FAILED` (`no_focused_input`) when none has focus | No, use `type({ target }, text)` | No, use `type({ target }, text)` | Yes, with `{ clear: false }` |
| `back()` | Yes, browser history | No, tap the on-screen back control | Yes, the system back button | No |
| `goHome()` | No, use `openUrl` or `navigate` | Yes, the home screen | Yes, the home screen | No |
| `openUrl(url)` | Yes, loads an http(s) URL in the tab | Yes, a URL or deep link | Yes, a URL or deep link | No |
Expand All @@ -116,7 +119,7 @@ Since TypeScript (`@revyl/verify`) 0.4.0, Python (`revyl-verify`) 0.2.0 and Go v

A call a platform doesn't support throws `NOT_AVAILABLE_ON_PLATFORM`, and its message names the alternative.

Web is available to every organization. Mac computers are available to organizations on a current paid Revyl plan and have a server-bounded lifetime; see [computers](packages/verify/docs/computers.md).
Web is available to every organization. Mac computers are available to organizations on a current paid Revyl plan and have a server-bounded lifetime; see [computers](packages/verify/docs/computers.md). To get a Mac computer's screen recording, call `await computer.close()` and then `await computer.recording()` on the same object, in the same process: it waits until Revyl has saved the video, usually a few seconds, and returns `{ url, durationSeconds?, startedAt? }`, or `null` if none was saved within `timeoutMs` (15 minutes by default; a check under way at that point can take up to 30 seconds more). `attach()` can't reopen a closed computer, so fetch the recording before your script exits.

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion examples/agent-platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ One task fans out to a cloud browser and an iOS simulator through `@revyl/verify

You need Node.js **22.18+**, the [Revyl CLI](https://docs.revyl.com/cli), and a Revyl account with web and mobile session access. No Xcode, Android SDK, extra app IDs, or mobile builds are needed.

This checkout uses the local workspace SDK (**0.7.0**). From the repository root, install and build once, before loading any API credentials:
This checkout uses the local workspace SDK (**0.7.1**). From the repository root, install and build once, before loading any API credentials:

```sh
npm ci
Expand Down
2 changes: 1 addition & 1 deletion examples/agent-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typecheck": "tsc -p tsconfig.json"
},
"devDependencies": {
"@revyl/verify": "0.7.0",
"@revyl/verify": "0.7.1",
"@types/node": "^22.10.0",
"typescript": "^5.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/byo-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typecheck": "tsc -p tsconfig.json"
},
"devDependencies": {
"@revyl/verify": "0.7.0",
"@revyl/verify": "0.7.1",
"@types/node": "^22.10.0",
"typescript": "^5.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/mac-workspace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typecheck": "tsc -p tsconfig.json"
},
"devDependencies": {
"@revyl/verify": "0.7.0",
"@revyl/verify": "0.7.1",
"@types/node": "^22.10.0",
"typescript": "^5.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/mobile-settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typecheck": "tsc -p tsconfig.json"
},
"devDependencies": {
"@revyl/verify": "0.7.0",
"@revyl/verify": "0.7.1",
"@types/node": "^22.10.0",
"typescript": "^5.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/web-cdp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typecheck": "tsc -p tsconfig.json"
},
"devDependencies": {
"@revyl/verify": "0.7.0",
"@revyl/verify": "0.7.1",
"@types/node": "^22.10.0",
"playwright-core": "^1.65.1",
"typescript": "^5.9.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/web-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typecheck": "tsc -p tsconfig.json"
},
"devDependencies": {
"@revyl/verify": "0.7.0",
"@revyl/verify": "0.7.1",
"@types/node": "^22.10.0",
"typescript": "^5.9.0"
}
Expand Down
Loading
Loading