diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 110df1a3..55377493 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -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" } diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index fb3f32e3..b1e146d1 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -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" diff --git a/CHANGELOG.md b/CHANGELOG.md index c04d8543..0dafcf13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 89b185c1..c3de0ee7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/charts/aimock/Chart.yaml b/charts/aimock/Chart.yaml index 68267fb2..7cf47081 100644 --- a/charts/aimock/Chart.yaml +++ b/charts/aimock/Chart.yaml @@ -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" diff --git a/docs/fixtures/index.html b/docs/fixtures/index.html index c12b47a0..e71ebf36 100644 --- a/docs/fixtures/index.html +++ b/docs/fixtures/index.html @@ -262,7 +262,10 @@
userMessage matches only the LAST user messageuserMessage is compared against the content of the last message with
role: "user" 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 — never against anything earlier.
+ turn only matches against that final turn — 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).
This is the single rule that trips people up most often. If you need to differentiate diff --git a/docs/index.html b/docs/index.html index 7f35d14c..f66642e9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3162,7 +3162,7 @@
$ npx @copilotkit/aimock --config aimock.json -⚡ aimock v1.48.1 +⚡ aimock v1.49.0 ✓ LLM mounted at /v1/chat/completions ✓ LLM mounted at /v1/messages diff --git a/docs/record-replay/index.html b/docs/record-replay/index.html index 512dc8cf..031306ca 100644 --- a/docs/record-replay/index.html +++ b/docs/record-replay/index.html @@ -338,8 +338,25 @@Record & Replay CLI Flags
mid-stream ++ ++ --chaos-seed <seed>+ Seed that makes chaos verdicts and jitter reproducible (see + Chaos Testing) + ++ ++ --chaos-keys-max <n>Max seeded-chaos occurrence counters kept (default: +10000, LRU)+ A blank value for
--port,--host,--latency, +--journal-maxor--fixture-counts-maxis a usage error (Error: --port requires a non-empty value.), not a silent default. +Programmatic API
diff --git a/package.json b/package.json index 43363e33..21f6677d 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/packages/aimock-pytest/README.md b/packages/aimock-pytest/README.md index 774752d2..13ceaeb2 100644 --- a/packages/aimock-pytest/README.md +++ b/packages/aimock-pytest/README.md @@ -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 ``` diff --git a/packages/aimock-pytest/pyproject.toml b/packages/aimock-pytest/pyproject.toml index 8b77914f..5c9194fb 100644 --- a/packages/aimock-pytest/pyproject.toml +++ b/packages/aimock-pytest/pyproject.toml @@ -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" diff --git a/packages/aimock-pytest/src/aimock_pytest/_version.py b/packages/aimock-pytest/src/aimock_pytest/_version.py index 48477e20..8fb9e6dc 100644 --- a/packages/aimock-pytest/src/aimock_pytest/_version.py +++ b/packages/aimock-pytest/src/aimock_pytest/_version.py @@ -11,4 +11,4 @@ a wheel. Keep it tracking npm releases. """ -AIMOCK_VERSION = "1.48.1" +AIMOCK_VERSION = "1.49.0"