@crvouga/mockingbird-service-bedrock 3.0.0 → 3.1.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 +10 -4
- package/DISCOVERY.md +2 -2
- package/README.md +9 -9
- package/SUPPORT.md +2 -2
- package/dist/{chunk-SAHNVO2E.js → chunk-AWLKTLE4.js} +3 -3
- package/dist/{chunk-SAHNVO2E.js.map → chunk-AWLKTLE4.js.map} +1 -1
- package/dist/{chunk-XBSIT753.js → chunk-LTTTTWN5.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/cli.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/server.js +2 -2
- package/package.json +3 -3
- /package/dist/{chunk-XBSIT753.js.map → chunk-LTTTTWN5.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-bedrock
|
|
2
2
|
|
|
3
|
+
## 3.1.0 (2026-10-08)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- redesign emulator experience ([d6038c2](https://github.com/crvouga/mockingbird/commit/d6038c27eebbaa1751f02bc9305002a5b1304779))
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
12
|
+
|
|
3
13
|
## 3.0.0 (2026-10-07)
|
|
4
14
|
|
|
5
15
|
### ⚠️ Breaking changes
|
|
@@ -15,10 +25,6 @@
|
|
|
15
25
|
- format the emulates records query ([8698872](https://github.com/crvouga/mockingbird/commit/8698872509d06002be5a8fcdc85d79f8462320c3))
|
|
16
26
|
- align rename fixtures and formatting ([69e0bee](https://github.com/crvouga/mockingbird/commit/69e0beefe44c9541e46740d3c177bde832340f90))
|
|
17
27
|
|
|
18
|
-
### Dependencies
|
|
19
|
-
|
|
20
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
21
|
-
|
|
22
28
|
## 2.3.0 (2026-10-04)
|
|
23
29
|
|
|
24
30
|
### Features
|
package/DISCOVERY.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @crvouga/mockingbird-service-bedrock discovery
|
|
2
2
|
|
|
3
3
|
This is the installed-package index for coding agents and tooling. All relative links resolve
|
|
4
|
-
inside `node_modules/@crvouga/mockingbird-service-bedrock/`; no repository checkout is needed to discover the
|
|
4
|
+
inside `node_modules/@crvouga/mockingbird-service-bedrock/`; no repository checkout is needed to discover the emulator's
|
|
5
5
|
supported surface or documented behavior.
|
|
6
6
|
|
|
7
7
|
## Capability and behavior sources
|
|
@@ -48,7 +48,7 @@ designed for assertions and diagnosis by consuming test suites.
|
|
|
48
48
|
## Report a mismatch or missing capability
|
|
49
49
|
|
|
50
50
|
Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
|
|
51
|
-
operation/command, a minimal redacted request, actual
|
|
51
|
+
operation/command, a minimal redacted request, actual emulator result, expected oracle result or vendor
|
|
52
52
|
documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
|
|
53
53
|
customer data, prompts, PHI, card data, or unredacted recordings.
|
|
54
54
|
|
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @crvouga/mockingbird-service-bedrock
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
|
|
4
4
|
|
|
5
|
-
Stateful, scriptable
|
|
5
|
+
Stateful, scriptable emulator of **Amazon Bedrock Runtime** for test suites: `Converse`,
|
|
6
6
|
`ConverseStream` (byte-exact `application/vnd.amazon.eventstream` frames), `InvokeModel`
|
|
7
7
|
(Anthropic Messages bodies and Titan text embeddings), `InvokeModelWithBidirectionalStream`
|
|
8
8
|
(Nova Sonic over HTTP/2 duplex), and the AgentCore `InvokeHarness` event stream.
|
|
9
9
|
|
|
10
|
-
The
|
|
10
|
+
The emulator never generates language. It replays **scripts**: a test says "when the chat model
|
|
11
11
|
sees *dizzy* with `report_rx_symptom` available, emit this `toolUse`; after the tool result
|
|
12
12
|
comes back, say this". Chat turns, approval cards, guardrail blocks, structured output and
|
|
13
13
|
throttles become deterministic and take milliseconds.
|
|
@@ -112,7 +112,7 @@ how many calls it answers.
|
|
|
112
112
|
conversation starts over. `expectToolResult: {name}` makes a turn answer only when the last
|
|
113
113
|
user message carries that tool's result. Nova Sonic counts answers within the session.
|
|
114
114
|
- **A turn** is any of: `text` (streamed in `chunkSize`-character deltas, `delayMsPerChunk`
|
|
115
|
-
|
|
115
|
+
emulator-clock ms apart), `reasoning`, `toolUse` (`{name, input, toolUseId?}` or a list), `json`
|
|
116
116
|
(structured output, rendered in the form the request asked for — see below), `guardrail`
|
|
117
117
|
(`true` or `{text, trace}`: `guardrail_intervened` with Bedrock's refusal text and a trace),
|
|
118
118
|
`toolResult` (harness), `userTranscript` (Nova Sonic), `stopReason`, `usage`, `fault`.
|
|
@@ -140,11 +140,11 @@ applies to every model and harness call in the calling namespace):
|
|
|
140
140
|
| `mid_stream_throttling` | the same with a `throttlingException` frame |
|
|
141
141
|
| `validation_exception` / `validation` | 400 `ValidationException` |
|
|
142
142
|
| `max_tokens` | output cut in half, `stopReason: "max_tokens"` |
|
|
143
|
-
| `latency` (`latencyMs`) | the response starts after 2 s on the
|
|
143
|
+
| `latency` (`latencyMs`) | the response starts after 2 s on the emulator clock |
|
|
144
144
|
| `truncated_frame` | the stream stops half-way through a frame (both decoders throw) |
|
|
145
145
|
| `model_timeout`, `service_unavailable`, `access_denied`, `internal_server` | 408 / 503 / 403 / 500 with the matching `x-amzn-ErrorType` |
|
|
146
146
|
|
|
147
|
-
Chunk pacing and latency wait on the **
|
|
147
|
+
Chunk pacing and latency wait on the **emulator clock**: freeze it (`POST /__admin/clock
|
|
148
148
|
{"freeze": true}`) and advance it to release each chunk, so time-to-first-token tests are exact.
|
|
149
149
|
|
|
150
150
|
### Admin (beyond the standard contract)
|
|
@@ -182,13 +182,13 @@ cannot add headers, so map each worker's access key id:
|
|
|
182
182
|
|
|
183
183
|
| Export | Kind | Description |
|
|
184
184
|
| --- | --- | --- |
|
|
185
|
-
| `BedrockAPI` | class | The in-process
|
|
186
|
-
| `createRuntime` | function | The
|
|
185
|
+
| `BedrockAPI` | class | The in-process emulator: `fetch`, `reset`, `scripts()`, `putScripts(scripts, replace?)`, `removeScripts(id?)`, `stats()`. Options: `sqlite`, `now`, `namespace`, `settings`, `scripts`, `sleep`. |
|
|
186
|
+
| `createRuntime` | function | The emulator with the full service contract (health, admin, namespaces, SigV4 credentials, presets, scripts). Options: `settings`, `scripts`, `clock`, `seed`, `adminKey`, `onLog`, `sqlite`. |
|
|
187
187
|
| `BEDROCK_PRESETS` | object | Every named fault preset. |
|
|
188
188
|
| `BEDROCK_NAMESPACE` | string | The service name, `"bedrock"`. |
|
|
189
189
|
| `bedrockError` | function | A Bedrock error response (`status`, `x-amzn-ErrorType`, `{message}`). |
|
|
190
190
|
| `accessKeyCredential` | function | The SigV4 access key id of a request (how credentials map to namespaces). |
|
|
191
|
-
| `clockSleep` | function | A sleep that waits on a (possibly frozen)
|
|
191
|
+
| `clockSleep` | function | A sleep that waits on a (possibly frozen) emulator clock. |
|
|
192
192
|
| `titanEmbedding` | function | The deterministic unit vector Titan answers with. |
|
|
193
193
|
| `sampleSchema` | function | The minimal instance of a JSON Schema (the unscripted structured output). |
|
|
194
194
|
| `parseScript` | function | Validate one script (what `PUT /__admin/scripts` runs). |
|
package/SUPPORT.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Generated from `openapi.yaml`; do not edit by hand.
|
|
4
4
|
|
|
5
5
|
- operations in spec: **6**
|
|
6
|
-
- supported by the
|
|
6
|
+
- supported by the emulator: **5**
|
|
7
7
|
- parity enabled: **4**
|
|
8
8
|
|
|
9
|
-
| operationId | route |
|
|
9
|
+
| operationId | route | emulator | parity | notes |
|
|
10
10
|
| --- | --- | --- | --- | --- |
|
|
11
11
|
| `Converse` | `POST /model/{modelId}/converse` | ✅ supported | ✅ | |
|
|
12
12
|
| `ConverseStream` | `POST /model/{modelId}/converse-stream` | ✅ supported | ✅ | |
|