@crvouga/mockingbird-service-livekit 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -4
- package/README.md +8 -4
- package/SUPPORT.md +6 -3
- package/dist/chunk-CSYY4RPI.js +4078 -0
- package/dist/chunk-CSYY4RPI.js.map +7 -0
- package/dist/{chunk-2GG6WCKV.js → chunk-YCECOXSF.js} +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +196 -148
- package/dist/index.js +1 -1
- package/dist/server.d.ts +384 -332
- package/dist/server.js +2 -2
- package/openapi.yaml +183 -1
- package/package.json +4 -3
- package/dist/chunk-RIGGRABC.js +0 -3881
- package/dist/chunk-RIGGRABC.js.map +0 -7
- /package/dist/{chunk-2GG6WCKV.js.map → chunk-YCECOXSF.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-livekit
|
|
2
2
|
|
|
3
|
+
## 2.3.0 (2026-10-05)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- compose mock admin APIs ([952bd1f](https://github.com/crvouga/mockingbird/commit/952bd1f679bd442c9a5348a0d9c4d40ad0ac165c))
|
|
8
|
+
- add Fargate task acceptance mock ([f65fc3f](https://github.com/crvouga/mockingbird/commit/f65fc3f293b2fdb41fd45dd1693a5420c6a5109a))
|
|
9
|
+
- keep resource views live ([82c80e1](https://github.com/crvouga/mockingbird/commit/82c80e110b4aa551a17d0ee451c5d08167755267))
|
|
10
|
+
- add LocalStack free tier mocks ([84b7d0c](https://github.com/crvouga/mockingbird/commit/84b7d0ccf4acc7257bb3c3b466a38e30d5b4ab33))
|
|
11
|
+
- implement github reference semantics ([10143e8](https://github.com/crvouga/mockingbird/commit/10143e8364905d77ccfa188d8b6573b1f1003c56))
|
|
12
|
+
- implement docker attach upgrade handshake ([39ad1a3](https://github.com/crvouga/mockingbird/commit/39ad1a39b47aeb423b11bc96230d59f1f5985fa0))
|
|
13
|
+
- preserve accepted docker mutations across response loss ([c2b2d7d](https://github.com/crvouga/mockingbird/commit/c2b2d7dafffe653b3ae9667ec5019d342a68e802))
|
|
14
|
+
|
|
15
|
+
### Fixes and improvements
|
|
16
|
+
|
|
17
|
+
- reconcile combined PR integration ([124d5be](https://github.com/crvouga/mockingbird/commit/124d5bed7576535ff481ce6da7d2369957799665))
|
|
18
|
+
- preserve inferred form headers ([02bdd28](https://github.com/crvouga/mockingbird/commit/02bdd2806a9a934607ecd7ffd0cfbe4f6ba80c91))
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
23
|
+
|
|
24
|
+
## 2.2.0 (2026-10-04)
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
- add scripted local API mock ([4a76a11](https://github.com/crvouga/mockingbird/commit/4a76a114e2efad45934e0a93cf29576fd418e15c))
|
|
29
|
+
- model room agent dispatches ([fb3bcf1](https://github.com/crvouga/mockingbird/commit/fb3bcf1f1d04975fa4533d95b69e6ba0e348f635))
|
|
30
|
+
|
|
31
|
+
### Fixes and improvements
|
|
32
|
+
|
|
33
|
+
- support embedded route parameters ([127cad9](https://github.com/crvouga/mockingbird/commit/127cad997ef106950c1b866070eea191ba54403f))
|
|
34
|
+
- preserve namespace URLs after main sync ([62a15ce](https://github.com/crvouga/mockingbird/commit/62a15ce9bd453069bde69e3a30c91efc01f8871b))
|
|
35
|
+
|
|
3
36
|
## 2.1.0 (2026-10-04)
|
|
4
37
|
|
|
5
38
|
### Features
|
|
@@ -12,10 +45,6 @@
|
|
|
12
45
|
- fill the embedded viewport ([c1a35a4](https://github.com/crvouga/mockingbird/commit/c1a35a4789389ee9cd06c286d09bd47c4d06c71e))
|
|
13
46
|
- make dialog cleanup immediate ([0c1a3c5](https://github.com/crvouga/mockingbird/commit/0c1a3c5b12584d50c19dcae595b951b8e5417b9c))
|
|
14
47
|
|
|
15
|
-
### Dependencies
|
|
16
|
-
|
|
17
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
18
|
-
|
|
19
48
|
## 2.0.0 (2026-10-04)
|
|
20
49
|
|
|
21
50
|
### ⚠️ Breaking changes
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Familiar calls. Faithful echoes. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
|
|
4
4
|
|
|
5
|
-
Stateful LiveKit mock for `livekit-server-sdk`. It serves Twirp JSON room APIs, validates genuine HS256 LiveKit grants, models participant/track/data state, exposes deterministic SIP and egress controls, and emits correctly signed lifecycle webhooks.
|
|
5
|
+
Stateful LiveKit mock for `livekit-server-sdk`. It serves Twirp JSON room and agent-dispatch APIs, validates genuine HS256 LiveKit grants, models participant/track/data state, exposes deterministic SIP and egress controls, and emits correctly signed lifecycle webhooks.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -25,6 +25,8 @@ const health = await fetch(`${mock.url}/__admin/health`)
|
|
|
25
25
|
|
|
26
26
|
Point `RoomServiceClient` at `mock.url`. Supported RoomService calls include CreateRoom, ListRooms, DeleteRoom, UpdateRoomMetadata, ListParticipants, GetParticipant, RemoveParticipant, UpdateParticipant, MutePublishedTrack, and SendData. Room creation is idempotent by name and participant identity is unique within a room.
|
|
27
27
|
|
|
28
|
+
`AgentDispatchClient` uses the same URL and genuine `roomAdmin` JWTs for `createDispatch`, `listDispatch`, `getDispatch`, and `deleteDispatch`. Both snake_case and camelCase request fields work. A dispatch creates a missing room, starts with no assigned jobs, and preserves its agent name and opaque metadata. Lists read shared room dispatch state, with an optional dispatch-id filter; deleting a dispatch removes its membership. Deleting or expiring a room removes its dispatches. Dispatch/job timestamps are mock-clock Unix seconds encoded as protobuf JSON strings (the SDK exposes bigint values). Tests exercise the existing 2.19.1 SDK and the reporter's exact 2.19.0 over HTTP.
|
|
29
|
+
|
|
28
30
|
## Controls
|
|
29
31
|
|
|
30
32
|
- `POST /__admin/rooms/:room/participants` joins a synthetic participant.
|
|
@@ -32,6 +34,8 @@ Point `RoomServiceClient` at `mock.url`. Supported RoomService calls include Cre
|
|
|
32
34
|
- `POST /__admin/rooms/:room/participants/:identity/tracks` publishes a track.
|
|
33
35
|
- `GET /__admin/rooms/:room/participants/:identity/inbox` inspects targeted data.
|
|
34
36
|
- `GET /__admin/resources` and `POST /__admin/resources/:id/transition` inspect and advance SIP/egress state.
|
|
37
|
+
- `POST /__admin/dispatches/:id/jobs` scripts one room job with `{status?: "JS_PENDING"|"JS_RUNNING"|"JS_SUCCESS"|"JS_FAILED", workerId?, agentId?, participantIdentity?, error?}`. First assignment creates a stable job id; later calls update it and stamp its start/end/update times. The default status is running.
|
|
38
|
+
- Dispatches and jobs participate in namespaces, reset, snapshots, Timeline and fault recovery alongside room state.
|
|
35
39
|
- Fault presets include rate limiting, network loss, and webhook duplicate/reorder/drop delivery.
|
|
36
40
|
|
|
37
41
|
Webhooks cover room, participant, track, egress, and SIP transitions. Each raw body is signed by a short-lived LiveKit access token whose `sha256` claim is accepted by the official `WebhookReceiver`.
|
|
@@ -39,7 +43,7 @@ Webhooks cover room, participant, track, egress, and SIP transitions. Each raw b
|
|
|
39
43
|
## API
|
|
40
44
|
|
|
41
45
|
- `LiveKitAPI`, `LiveKitAPIOptions`, `LiveKitEvent`: handler and event contract.
|
|
42
|
-
- `LiveKitRoom`, `LiveKitParticipant`, `LiveKitTrack`, `DataMessage`, `AsyncResource`: durable state.
|
|
46
|
+
- `LiveKitRoom`, `LiveKitParticipant`, `LiveKitTrack`, `DataMessage`, `AsyncResource`, `AgentDispatch`, `AgentJob`, `JobStatus`: durable state.
|
|
43
47
|
- `createRuntime`, `LiveKitRuntime`, `LiveKitRuntimeOptions`: full runtime and webhook hub.
|
|
44
48
|
- `LIVEKIT_NAMESPACE`, `LIVEKIT_PRESETS`: constants and fault controls.
|
|
45
49
|
- `document`, `operationIds`, `supportedOperationIds`: generated OpenAPI metadata.
|
|
@@ -47,6 +51,6 @@ Webhooks cover room, participant, track, egress, and SIP transitions. Each raw b
|
|
|
47
51
|
|
|
48
52
|
## Deliberately not modelled
|
|
49
53
|
|
|
50
|
-
WebRTC media transport, signaling sockets, transcoding, PSTN calls, production scaling, billing, and dashboards are not modelled. The deterministic server API and lifecycle contract is the initial fidelity boundary.
|
|
54
|
+
Real agent worker registration, job execution, publisher dispatch, restart/deployment policies, WebRTC media transport, signaling sockets, transcoding, PSTN calls, production scaling, billing, and dashboards are not modelled. The deterministic server API and lifecycle contract is the initial fidelity boundary.
|
|
51
55
|
|
|
52
|
-
Official
|
|
56
|
+
Official oracles: [LiveKit RoomService API](https://docs.livekit.io/reference/other/roomservice-api/) and [AgentDispatchService API](https://docs.livekit.io/reference/agents/agent-dispatch-service-api/).
|
package/SUPPORT.md
CHANGED
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Generated from `openapi.yaml`; do not edit by hand.
|
|
4
4
|
|
|
5
|
-
- operations in spec: **
|
|
6
|
-
- supported by the mock: **
|
|
7
|
-
- parity enabled: **
|
|
5
|
+
- operations in spec: **6**
|
|
6
|
+
- supported by the mock: **6**
|
|
7
|
+
- parity enabled: **6**
|
|
8
8
|
|
|
9
9
|
| operationId | route | mock | parity | notes |
|
|
10
10
|
| --- | --- | --- | --- | --- |
|
|
11
|
+
| `CreateDispatch` | `POST /twirp/livekit.AgentDispatchService/CreateDispatch` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
12
|
+
| `ListDispatch` | `POST /twirp/livekit.AgentDispatchService/ListDispatch` | ✅ supported | ✅ | |
|
|
13
|
+
| `DeleteDispatch` | `POST /twirp/livekit.AgentDispatchService/DeleteDispatch` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
11
14
|
| `RoomService` | `POST /twirp/livekit.RoomService/{method}` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
12
15
|
| `EgressService` | `POST /twirp/livekit.Egress/{method}` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
13
16
|
| `SipService` | `POST /twirp/livekit.SIP/{method}` | ✅ supported | ⚠️ unsafe (opt-in) | |
|