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
19 changes: 16 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
# Changelog

## 0.17.5
## 0.17.6

<!-- release:start -->

### New Features

- **An emulator WebSocket endpoint.** `GET /_emulate/openai/websocket` (`wss://` hosted, `ws://` locally) accepts a WebSocket upgrade and echoes each message, text or binary, as it was received. With `?chunks=N&interval_ms=M`, the paced-answer controls, it also sends N messages of its own M ms apart, then stays open, for a busy connection or an idle one. It closes when the client closes, with the client's code. An emulator control, not OpenAI's Realtime or WebSocket-mode protocol, which remain unsupported.
- **WebSockets for emulator routes.** `upgradeWebSocket(request, session)` in `@emulators/core` serves one session interface on the Workers runtime and on the local Node server, which now speaks the server side of RFC 6455.
- **Revoke one token.** `POST /_emulate/tokens/revoke` with `{ "token": "..." }`: later requests with that token get the provider's own 401, every other token keeps working, and a hosted instance keeps the revocation across unloads. It covers the tokens in the shared token map and, through a new `ServicePlugin.revokeToken` hook, those X, Zapier, PlanetScale and Miro keep, OpenAI API keys, and WorkOS API keys and refresh tokens. A revoked token is refused even where unknown tokens fall back to a default user.
- **GitHub token revocation, as on GitHub.** `DELETE /applications/:client_id/token` with Basic client auth answers `204`, and a token GitHub would not accept now gets `401 Bad credentials` on REST routes instead of being treated as anonymous.
- **Faults that match a header.** `match.headers` matches request headers by exact value, so a fault can target one caller's `Authorization`.

### Fixes

- **The OpenAI emulator answers a request of any shape at its stated limit.** A body of many messages within 32 MiB used to answer 500 and record no usage (the token count spread every message into one call), and a long input could exhaust the instance's memory.
- **The MCP sign-in pages' seed hint works.** It now names `POST /_emulate/seed` with `{"users":[...]}`, which adds a user on the MCP service and on GitHub's MCP surface, instead of a `/__seed` body that seeded nothing there and replaced the instance.

<!-- release:end -->

## 0.17.5

### New Features

- **An emulator WebSocket endpoint.** `GET /_emulate/openai/websocket` (`wss://` hosted, `ws://` locally) accepts a WebSocket upgrade and echoes each message, text or binary, as it was received. With `?chunks=N&interval_ms=M`, the paced-answer controls, it also sends N messages of its own M ms apart, then stays open, for a busy connection or an idle one. It closes when the client closes, with the client's code. An emulator control, not OpenAI's Realtime or WebSocket-mode protocol, which remain unsupported.
- **WebSockets for emulator routes.** `upgradeWebSocket(request, session)` in `@emulators/core` serves one session interface on the Workers runtime and on the local Node server, which now speaks the server side of RFC 6455.

## 0.17.4

### New Features
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/adapter-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/adapter-next",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/apple/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/apple",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/autumn/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/autumn",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/aws/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/aws",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/clerk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/clerk",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/cloudflare",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/context/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/context",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/core",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/github/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/github",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/gitlab/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/gitlab",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/google/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/google",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/mcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/mcp",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/microsoft/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/microsoft",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/miro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/miro",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/mongoatlas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/mongoatlas",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/okta/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/okta",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/openai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/openai",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/planetscale/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/planetscale",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/posthog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/posthog",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/resend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/resend",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/slack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/slack",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/spotify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/spotify",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/stripe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/stripe",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/vercel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/vercel",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/workos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/workos",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/x/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/x",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@emulators/zapier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emulators/zapier",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/emulate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@executor-js/emulate",
"version": "0.17.5",
"version": "0.17.6",
"description": "Local drop-in replacement services for CI and no-network sandboxes",
"license": "Apache-2.0",
"type": "module",
Expand Down
Loading