Skip to content

Commit 706c192

Browse files
authored
chore: release v1.49.0 (#654)
**Merging this publishes @copilotkit/aimock 1.49.0 to npm and aimock-pytest 0.7.4 to PyPI.** ## [1.49.0] - 2026-11-30 ### Added - Replayable seeded chaos: `--chaos-seed`/`x-aimock-chaos-seed`; journal `chaosOrigin` (#618, #653) - Recorder writes `requestHash`; stale replays get journal `staleFixture` and a warning (#640, #651) ### Changed - `aimock-pytest` 0.7.4 defaults to `@copilotkit/aimock` 1.49.0 ### Fixed - Split image turns match `userMessage` on Anthropic, Gemini (+Live), Bedrock, Cohere (#643, #648) - `llmock` now errors on blank `--port`/`--host`/`--latency`/... values instead of starting (#644) Two new features, so this is a minor release. ## Version carriers (from `git grep -F 1.48.1`) Bumped to 1.49.0: - `package.json` version - `charts/aimock/Chart.yaml` appVersion - `.claude-plugin/plugin.json` version - `.claude-plugin/marketplace.json` source version (`^1.49.0`) - `docs/index.html` banner - `packages/aimock-pytest/README.md` `--aimock-version` default - `packages/aimock-pytest/src/aimock_pytest/_version.py` `AIMOCK_VERSION` Also bumped: `packages/aimock-pytest/pyproject.toml` 0.7.3 → 0.7.4, because the pin moved (same pattern as #628). Left as is: the `## [1.48.1]` CHANGELOG section. ## CHANGELOG edits - `## [Unreleased]` becomes `## [1.49.0] - 2026-11-30`. - Seven bullets became four, plus the aimock-pytest `Changed` line: the two #618 lines are one, #643 and #648 are one, and #651 joins the stale-fixture line. - The stale-fixture line now references PR #640 instead of issue #638. ## Docs - `docs/record-replay`: the `llmock` flag table gets `--chaos-seed` and `--chaos-keys-max`, and a note that blank `--port`/`--host`/`--latency`/`--journal-max`/`--fixture-counts-max` values are a usage error (#644). - `docs/fixtures`: the "last user message" rule now says a trailing image-only user message is skipped (#643, #648). - `README.md`: the Record & Replay line mentions stale-fixture flagging. Seeded chaos was already in the Chaos Testing line. Already covered, left alone: `docs/chaos-testing` (seeds, `x-aimock-chaos-seed`, `chaosOrigin`, `--chaos-keys-max`) and the Stale Fixtures section of `docs/record-replay` (`requestHash`, `staleFixture`, the `STALE FIXTURE` warning, `requestTransform`). The `package.json` description already matches the README subtitle. ## Local checks - `pnpm install --frozen-lockfile`, `format:check`, `lint`, `typecheck`, `build`: pass - `api:report`: 14 entries, 0 failed, no report change - `vitest run`: 503 files, 20,346 passed, 11 skipped
2 parents 579fa9c + 2cd42ce commit 706c192

12 files changed

Lines changed: 38 additions & 17 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"source": {
1010
"source": "npm",
1111
"package": "@copilotkit/aimock",
12-
"version": "^1.48.1"
12+
"version": "^1.49.0"
1313
},
1414
"description": "Fixture authoring skill for @copilotkit/aimock — LLM, multimedia (image/TTS/transcription/video), MCP, A2A, AG-UI, vector, embeddings, structured output, sequential responses, streaming physics, record/replay, agent loop patterns, and debugging"
1515
}

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aimock",
3-
"version": "1.48.1",
3+
"version": "1.49.0",
44
"description": "Fixture authoring guidance for @copilotkit/aimock — LLM, multimedia, MCP, A2A, AG-UI, vector, and service mocking",
55
"author": {
66
"name": "CopilotKit"

‎CHANGELOG.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# @copilotkit/aimock
22

3-
## [Unreleased]
3+
## [1.49.0] - 2026-11-30
44

55
### Added
66

7-
- Seeded chaos: `chaos.seed`, `--chaos-seed`, `x-aimock-chaos-seed`, `resetChaosOccurrences` (#618)
8-
- Seeded hits add headers and journal fields; `chaosKeysMax`/`--chaos-keys-max` cap keys (#618)
9-
- Recorder writes `requestHash`; changed replays get journal `staleFixture` and a warning (#638)
7+
- Replayable seeded chaos: `--chaos-seed`/`x-aimock-chaos-seed`; journal `chaosOrigin` (#618, #653)
8+
- Recorder writes `requestHash`; stale replays get journal `staleFixture` and a warning (#640, #651)
9+
10+
### Changed
11+
12+
- `aimock-pytest` 0.7.4 defaults to `@copilotkit/aimock` 1.49.0
1013

1114
### Fixed
1215

13-
- Split prompt + image-only turns match `userMessage` on Anthropic, Gemini, Bedrock, Cohere (#643)
14-
- Split prompt + image-only turns match `userMessage` on Gemini Live too (#648)
16+
- Split image turns match `userMessage` on Anthropic, Gemini (+Live), Bedrock, Cohere (#643, #648)
1517
- `llmock` now errors on blank `--port`/`--host`/`--latency`/... values instead of starting (#644)
16-
- Stale fixtures served via the OpenRouter `models` fallback get `staleFixture` and a warning (#651)
1718

1819
## [1.48.1] - 2026-11-20
1920

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Run them all on one port with `npx @copilotkit/aimock --config aimock.json`, or
6969

7070
## Features
7171

72-
- **[Record & Replay](https://aimock.copilotkit.dev/record-replay)** — Proxy real APIs, save as fixtures, replay deterministically forever
72+
- **[Record & Replay](https://aimock.copilotkit.dev/record-replay)** — Proxy real APIs, save as fixtures, replay deterministically forever; replays whose recorded request changed are flagged as stale
7373
- **Timing-aware recording and replay** — Recorded fixtures capture per-frame arrival timestamps; replay uses recorded timings for approximate timing reproduction based on recorded TTFT and inter-frame cadence (replay chunk count may differ from recording — TTFT and average pace are preserved, not per-token fidelity) with configurable `--replay-speed` multiplier
7474
- **[Recorded token usage and cost](https://aimock.copilotkit.dev/record-replay)** — Recording captures the final usage frame of a streaming completion, so replayed fixtures serve real `prompt_tokens` / `completion_tokens` instead of a length estimate; OpenRouter's provider-reported `usage.cost` and its `cost_details` / `*_tokens_details` breakdowns are captured too, so an app that bills from real provider cost can e2e-test its wallet path from a tape
7575
- **[Multi-turn Conversations](https://aimock.copilotkit.dev/multi-turn)** — Record and replay multi-turn traces with tool rounds; match distinct turns via `turnIndex`, `hasToolResult`, `toolCallId`, `toolResultContains` (gate on the tool-result payload), `sequenceIndex`, `systemMessage` (gate on host-supplied agent context), or custom predicates

‎charts/aimock/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: aimock
33
description: Mock infrastructure for AI application testing (OpenAI, Anthropic, Gemini, MCP, A2A, vector)
44
type: application
55
version: 0.1.0
6-
appVersion: "1.48.1"
6+
appVersion: "1.49.0"

‎docs/fixtures/index.html‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ <h3>1. <code>userMessage</code> matches only the LAST user message</h3>
262262
<code>userMessage</code> is compared against the content of the <em>last</em> message with
263263
<code>role: "user"</code> in the request. Earlier user messages in the conversation
264264
history are ignored. A request that contains ten turns of prior history plus one new user
265-
turn only matches against that final turn &mdash; never against anything earlier.
265+
turn only matches against that final turn &mdash; never against anything earlier. A
266+
trailing user message that holds only images is skipped, so a prompt sent as text and then
267+
an image-only message still matches on the prompt (OpenAI, Anthropic, Gemini, Gemini Live,
268+
Bedrock and Cohere).
266269
</p>
267270
<p>
268271
This is the single rule that trips people up most often. If you need to differentiate

‎docs/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3162,7 +3162,7 @@ <h2 class="fade-in">
31623162
<div class="demo-body">
31633163
<pre><span class="t-green">$</span> npx @copilotkit/aimock --config aimock.json
31643164

3165-
<span class="t-blue">&#9889;</span> aimock v1.48.1
3165+
<span class="t-blue">&#9889;</span> aimock v1.49.0
31663166

31673167
<span class="t-green">&#10003;</span> LLM <span class="t-dim">mounted at</span> /v1/chat/completions
31683168
<span class="t-green">&#10003;</span> LLM <span class="t-dim">mounted at</span> /v1/messages

‎docs/record-replay/index.html‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,25 @@ <h2>Record &amp; Replay CLI Flags</h2>
338338
mid-stream
339339
</td>
340340
</tr>
341+
<tr>
342+
<td><code>--chaos-seed &lt;seed&gt;</code></td>
343+
<td>
344+
Seed that makes chaos verdicts and jitter reproducible (see
345+
<a href="/chaos-testing">Chaos Testing</a>)
346+
</td>
347+
</tr>
348+
<tr>
349+
<td><code>--chaos-keys-max &lt;n&gt;</code></td>
350+
<td>Max seeded-chaos occurrence counters kept (default: <code>10000</code>, LRU)</td>
351+
</tr>
341352
</tbody>
342353
</table>
354+
<p>
355+
A blank value for <code>--port</code>, <code>--host</code>, <code>--latency</code>,
356+
<code>--journal-max</code> or <code>--fixture-counts-max</code> is a usage error (<code
357+
>Error: --port requires a non-empty value.</code
358+
>), not a silent default.
359+
</p>
343360

344361
<h2>Programmatic API</h2>
345362

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@copilotkit/aimock",
3-
"version": "1.48.1",
3+
"version": "1.49.0",
44
"description": "Mock infrastructure for AI application testing — point your SDK at one local port and every provider, protocol, and service answers deterministically.",
55
"license": "MIT",
66
"keywords": [

‎packages/aimock-pytest/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ These need aimock 1.45.0 or later.
9595

9696
```
9797
--aimock-node PATH Path to node binary
98-
--aimock-version VER aimock npm version (default: 1.48.1)
98+
--aimock-version VER aimock npm version (default: 1.49.0)
9999
--aimock-api-key KEY Inbound API key for the aimock child process
100100
```
101101

0 commit comments

Comments
 (0)