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
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"source": {
"source": "npm",
"package": "@copilotkit/aimock",
"version": "^1.48.1"
"version": "^1.49.0"
},
"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"
}
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aimock",
"version": "1.48.1",
"version": "1.49.0",
"description": "Fixture authoring guidance for @copilotkit/aimock — LLM, multimedia, MCP, A2A, AG-UI, vector, and service mocking",
"author": {
"name": "CopilotKit"
Expand Down
15 changes: 8 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# @copilotkit/aimock

## [Unreleased]
## [1.49.0] - 2026-11-30

### Added

- Seeded chaos: `chaos.seed`, `--chaos-seed`, `x-aimock-chaos-seed`, `resetChaosOccurrences` (#618)
- Seeded hits add headers and journal fields; `chaosKeysMax`/`--chaos-keys-max` cap keys (#618)
- Recorder writes `requestHash`; changed replays get journal `staleFixture` and a warning (#638)
- 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 prompt + image-only turns match `userMessage` on Anthropic, Gemini, Bedrock, Cohere (#643)
- Split prompt + image-only turns match `userMessage` on Gemini Live too (#648)
- 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)
- Stale fixtures served via the OpenRouter `models` fallback get `staleFixture` and a warning (#651)

## [1.48.1] - 2026-11-20

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Run them all on one port with `npx @copilotkit/aimock --config aimock.json`, or

## Features

- **[Record & Replay](https://aimock.copilotkit.dev/record-replay)** — Proxy real APIs, save as fixtures, replay deterministically forever
- **[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
- **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
- **[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
- **[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
Expand Down
2 changes: 1 addition & 1 deletion charts/aimock/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name: aimock
description: Mock infrastructure for AI application testing (OpenAI, Anthropic, Gemini, MCP, A2A, vector)
type: application
version: 0.1.0
appVersion: "1.48.1"
appVersion: "1.49.0"
5 changes: 4 additions & 1 deletion docs/fixtures/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ <h3>1. <code>userMessage</code> matches only the LAST user message</h3>
<code>userMessage</code> is compared against the content of the <em>last</em> message with
<code>role: "user"</code> in the request. Earlier user messages in the conversation
history are ignored. A request that contains ten turns of prior history plus one new user
turn only matches against that final turn &mdash; never against anything earlier.
turn only matches against that final turn &mdash; never against anything earlier. A
trailing user message that holds only images is skipped, so a prompt sent as text and then
an image-only message still matches on the prompt (OpenAI, Anthropic, Gemini, Gemini Live,
Bedrock and Cohere).
</p>
<p>
This is the single rule that trips people up most often. If you need to differentiate
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3162,7 +3162,7 @@ <h2 class="fade-in">
<div class="demo-body">
<pre><span class="t-green">$</span> npx @copilotkit/aimock --config aimock.json

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

<span class="t-green">&#10003;</span> LLM <span class="t-dim">mounted at</span> /v1/chat/completions
<span class="t-green">&#10003;</span> LLM <span class="t-dim">mounted at</span> /v1/messages
Expand Down
17 changes: 17 additions & 0 deletions docs/record-replay/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,25 @@ <h2>Record &amp; Replay CLI Flags</h2>
mid-stream
</td>
</tr>
<tr>
<td><code>--chaos-seed &lt;seed&gt;</code></td>
<td>
Seed that makes chaos verdicts and jitter reproducible (see
<a href="/chaos-testing">Chaos Testing</a>)
</td>
</tr>
<tr>
<td><code>--chaos-keys-max &lt;n&gt;</code></td>
<td>Max seeded-chaos occurrence counters kept (default: <code>10000</code>, LRU)</td>
</tr>
</tbody>
</table>
<p>
A blank value for <code>--port</code>, <code>--host</code>, <code>--latency</code>,
<code>--journal-max</code> or <code>--fixture-counts-max</code> is a usage error (<code
>Error: --port requires a non-empty value.</code
>), not a silent default.
</p>

<h2>Programmatic API</h2>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@copilotkit/aimock",
"version": "1.48.1",
"version": "1.49.0",
"description": "Mock infrastructure for AI application testing — point your SDK at one local port and every provider, protocol, and service answers deterministically.",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/aimock-pytest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ These need aimock 1.45.0 or later.

```
--aimock-node PATH Path to node binary
--aimock-version VER aimock npm version (default: 1.48.1)
--aimock-version VER aimock npm version (default: 1.49.0)
--aimock-api-key KEY Inbound API key for the aimock child process
```

Expand Down
2 changes: 1 addition & 1 deletion packages/aimock-pytest/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "aimock-pytest"
version = "0.7.3"
version = "0.7.4"
description = "pytest fixtures for aimock — mock LLM APIs, multimedia, MCP, A2A, AG-UI, vector DBs, and more"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion packages/aimock-pytest/src/aimock_pytest/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
a wheel. Keep it tracking npm releases.
"""

AIMOCK_VERSION = "1.48.1"
AIMOCK_VERSION = "1.49.0"
Loading