unstale

npm / @copilotkit/aimock

@copilotkit/aimock

What changed in @copilotkit/aimock 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-21.

9 breaking4 security2 deprecations90 new APIs and options29 behavior and defaults4 tooling83 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@copilotkit/aimock 1221 changes

Breaking changes 9

  • Non-streaming responses use streamingProfile timing only when opted in.

    1.46.0release notes

  • Realtime now returns the actual Beta sunset rejection instead of a handshake.

    1.43.0release notes

  • Non-string inputs and out-of-range dimensions are rejected with 400 responses.

    1.42.0release notes

  • Non-object JSON bodies now return 400 instead of 500.

    1.42.0release notes

  • The combined reset endpoint was split into /reset/fixtures and /reset/journal.

    1.29.0release notes

  • Adds a separate endpoint for resetting fixtures.

    1.29.0release notes

  • Adds a separate endpoint for resetting the journal.

    1.29.0release notes

  • The spurious type field was removed from converse-stream delta and start events.

    1.19.4release notes

  • Metrics now use the aimock_* prefix.

    1.7.0release notes

Security 4

  • Adds API key validation.

    1.38.0release notes

  • Adds support for transcription replay.

    1.38.0release notes

  • Embeds testId in Veo/Grok video poll ids to provide multi-tenant isolation.

    1.35.0release notes

  • Records gpt-oss Harmony tool calls; stream and recorder handling was hardened.

    1.28.0release notes

Deprecations 2

  • The package is now named @copilotkit/aimock, replacing @copilotkit/llmock.

    1.7.0release notes

  • The old package name remains available as a re-export with deprecation.

    1.7.0release notes

New APIs and options 90

  • Adds record-and-replay support for Audio Isolation.

    1.48.0release notes

  • Adds deterministic multi-turn conversations for A2A.

    1.48.0release notes

  • Adds record-and-replay support for ElevenLabs Scribe.

    1.48.0release notes

  • Adds record-and-replay support for Seed Speech TTS.

    1.48.0release notes

  • Gemini and the remaining providers support model-generated files.

    1.47.0release notes

  • All providers support opt-in timing for non-streaming requests.

    1.47.0release notes

  • Responses supports scriptable citations, allowing developers to use citations with that provider.

    1.47.0release notes

  • Supports explicit message phases in Responses.

    1.46.0release notes

  • Deterministic model misbehavior faults are added, with the new behavior opt-in.

    1.45.0release notes

  • MCP recording is added.

    1.45.0release notes

  • Per-test fake reports are added.

    1.45.0release notes

  • Namespaced function calls and custom tool calls are supported on the Responses API; the new behavior is opt-in.

    1.45.0release notes

  • Workflow targets are added.

    1.45.0release notes

  • Fixtures can now provide scenario-scoped MCP tool fakes.

    1.44.0release notes

  • The mock now supports the OpenAI Vector Stores API, including files, batches, and search.

    1.44.0release notes

  • A machine-readable catalog of control routes is now available.

    1.44.0release notes

  • Chaos testing adds a 429 rate-limit fault for simulating rate-limited responses.

    1.43.0release notes

  • A CLI subcommand lints fixtures offline.

    1.43.0release notes

  • ElevenLabs Voice Design supports recording and replay.

    1.43.0release notes

  • Fine-tuning jobs can be mocked with a deterministic lifecycle and events.

    1.43.0release notes

  • GPT-Live WebSocket sessions can be mocked, recorded, and replayed.

    1.43.0release notes

  • Chaos testing adds latency injection so developers can simulate slow responses.

    1.43.0release notes

  • The mock supports the OpenAI Batches API with deterministic poll progression.

    1.43.0release notes

  • The mock supports the OpenAI Files API with JSON and multipart uploads.

    1.43.0release notes

  • The journal can be filtered by requestId to inspect a specific request.

    1.43.0release notes

  • Control API adds a fixtures dump.

    1.42.0release notes

  • Control API adds journal filters.

    1.42.0release notes

  • Control API adds runtime chaos control.

    1.42.0release notes

  • BytePlus Ark (Seedance) video task lifecycle can now be recorded and replayed.

    1.41.0release notes

  • Adds a fixtures introspection endpoint.

    1.40.0release notes

  • Capture and replay OpenAI and OpenRouter stream usage, including cost.

    1.40.0release notes

  • Exports the subagent types.

    1.40.0release notes

  • Adds OpenRouter chat/LLM router simulation.

    1.38.0release notes

  • Synthesizes reasoning.encrypted_content when requested.

    1.38.0release notes

  • Adds a match gate on the last tool-result payload.

    1.37.0release notes

  • Adds a blocks array to fixtures for tool-first or interleaved ordering across providers, and supports blocks-only fixtures as a first-class option.

    1.35.0release notes

  • Adds a native asynchronous video provider for Google Veo.

    1.35.0release notes

  • Adds a native asynchronous video provider for xAI Grok Imagine.

    1.35.0release notes

  • Fal queue responses can emit the x-fal-billable-units header when opted in.

    1.32.0release notes

  • OpenRouter async video generation endpoints now support the job lifecycle.

    1.31.0release notes

  • Record-mode proxying is available for the OpenRouter video surface.

    1.31.0release notes

  • Adds pytest option forwarding to aimock-pytest.

    1.29.0release notes

  • Added an Ollama /api/embed alias.

    1.27.3release notes

  • Adds support for recording and replaying HITL continuations.

    1.27.0release notes

  • Fixture routing can use the context specified by the X-AIMock-Context header.

    1.26.1release notes

  • Adds a replay-speed multiplier for timing-aware recording and replay.

    1.26.0release notes

  • Six new endpoints were added.

    1.25.0release notes

  • Rate limiting headers were added.

    1.25.0release notes

  • RecordConfig now supports configurable upstream and body-idle timeouts.

    1.25.0release notes

  • Streaming usage was added.

    1.25.0release notes

  • Adds typed helpers for fal image and video functionality.

    1.24.0release notes

  • Requests can use the X-AIMock-Strict header to enable strict mode.

    1.22.0release notes

  • match.systemMessage now accepts string[] as well as a string.

    1.21.0release notes

  • Adds a fixture matcher for system messages.

    1.20.0release notes

  • Adds support for async function responses in fixtures.

    1.19.0release notes

  • Adds snapshot-style fixture recording by test ID, allowing fixtures to be recorded and associated with a test ID.

    1.19.0release notes

  • Added fal.ai as a first-class provider for record and replay.

    1.18.0release notes

  • Adds record/replay support for the Gemini Interactions API.

    1.17.0release notes

  • Adds mocking for non-speech audio generation with ElevenLabs, fal.ai, and Gemini.

    1.17.0release notes

  • Added hasToolResult as a stateless match criterion.

    1.16.0release notes

  • Added turnIndex as a stateless match criterion.

    1.16.0release notes

  • Adds chaos behavior in proxy mode, including drop, disconnect, and malformed responses.

    1.15.0release notes

  • Adds reasoning_content support for OpenRouter chat completions.

    1.9.0release notes

  • Adds per-test sequence isolation via the X-Test-Id header.

    1.9.0release notes

  • Adds reasoning support across all providers.

    1.8.0release notes

  • Adds requestTransform for deterministic matching and recording.

    1.8.0release notes

  • Adds Agent-to-Agent mocking for agent cards, message routing, and SSE streaming.

    1.7.0release notes

  • The CLI supports a config file.

    1.7.0release notes

  • Adds a control API for managing fixtures externally.

    1.7.0release notes

  • Adds JSON-RPC 2.0 transport with batch, notifications, and error handling.

    1.7.0release notes

  • Adds Model Context Protocol mocking for tools, resources, prompts, and session management.

    1.7.0release notes

  • Multiple protocol handlers can be mounted on one server.

    1.7.0release notes

  • Adds mocks for Tavily search, Cohere rerank, and OpenAI moderation.

    1.7.0release notes

  • Adds a vector database mock compatible with Pinecone, Qdrant, and ChromaDB.

    1.7.0release notes

  • Chaos is included among the v1.6.0 changes.

    1.6.0release notes

  • Metrics are included among the v1.6.0 changes.

    1.6.0release notes

  • Provider endpoints are included among the v1.6.0 changes.

    1.6.0release notes

  • Record-and-replay is included among the v1.6.0 changes.

    1.6.0release notes

  • Adds the --log-level CLI flag.

    1.4.0release notes

  • Adds the --validate-on-load CLI flag.

    1.4.0release notes

  • Adds the --watch CLI flag.

    1.4.0release notes

  • Adds a Claude Code skill for writing llmock fixtures.

    1.3.1release notes

  • Adds AbortSignal support for interrupting streams.

    1.3.0release notes

  • Adds disconnectAfterMs for interrupting streams after a specified duration.

    1.3.0release notes

  • Adds truncateAfterChunks for interrupting streams after a specified number of chunks.

    1.3.0release notes

  • WebSocket support is added for Gemini Live.

    1.2.0release notes

  • WebSocket support is added for the Realtime API.

    1.2.0release notes

  • WebSocket support is added for the Responses API.

    1.2.0release notes

  • Adds the public API method getFixtures().

    1.1.0release notes

  • Adds the public API method prependFixture().

    1.1.0release notes

Behavior and default changes 29

  • Native citations are preserved during record and replay.

    1.48.0release notes

  • Keeps the endpoint in OpenAI format by default for v1.46.0 compatibility.

    1.46.0release notes

  • Recordings retain Responses namespace and custom tool calls.

    1.45.0release notes

  • The journal now reports what happened.

    1.43.0release notes

  • Metrics now report what happened.

    1.43.0release notes

  • One-shot error injection now reports what happened.

    1.43.0release notes

  • The record proxy now forwards inbound headers and the raw body.

    1.43.0release notes

  • Request IDs are propagated for observability, and the journal can be filtered by requestId.

    1.43.0release notes

  • Every wrapper response path is now journaled, including vector, a2a, mcp, and agui.

    1.42.0release notes

  • Applying drift-sync re-pins classifications and adds an exclude path, closing the classification loop.

    1.41.0release notes

  • Header parsing is now case-insensitive and tolerates whitespace.

    1.40.0release notes

  • Made POST /__aimock/reset the canonical full reset and aligned llmock.reset() with it.

    1.39.0release notes

  • Fixture-miss passthrough can use aimock-owned upstream provider keys.

    1.36.0release notes

  • New voice/audio model families are flagged even when their names do not contain the "realtime" substring.

    1.36.0release notes

  • Fixture matching is now content-anchored.

    1.34.0release notes

  • Migrated the emitter to the SDK 2.x event protocol.

    1.34.0release notes

  • Divergence warnings are relaxed for turnIndex, with an opt-out.

    1.34.0release notes

  • Fal queue responses now emit the x-fal-request-id header.

    1.32.0release notes

  • The recorder now supports faithful reasoning capture and replay.

    1.30.0release notes

  • Reasoning-channel emission is now aware of model capabilities, so behavior can vary according to what a model supports.

    1.30.0release notes

  • Reasoning emission is gated on the tool-call-only path across providers.

    1.30.0release notes

  • Fixture loading now supports full recursion.

    1.27.2release notes

  • Makes fal queue polling more realistic.

    1.24.0release notes

  • NDJSON and Bedrock streams are relayed progressively.

    1.22.0release notes

  • SSE responses add anti-buffering headers.

    1.22.0release notes

  • Aligns with the AG-UI spec and adds automatic remediation of drift.

    1.17.0release notes

  • The --fixtures option now supports HTTPS URL values.

    1.14.7release notes

  • Fixture responses can include content and toolCalls together.

    1.9.0release notes

  • Gemini tool call responses now include function call IDs.

    1.1.1release notes

Tooling 4

Fixes and other changes 83

  • CancelTask tasks are now returned in the result.

    1.48.0release notes

  • GetTask tasks are now returned in the result.

    1.48.0release notes

  • Provider quota exhaustion is reported as infrastructure rather than drift.

    1.48.0release notes

  • Attachment-only user items remain text-less for userMessage matching.

    1.48.0release notes

  • Delivery stops when a client disconnects, across providers.

    1.47.0release notes

  • Corrects AG-UI IDs.

    1.46.0release notes

  • Stops streaming when the client disconnects.

    1.46.0release notes

  • Rejects unknown Anthropic model cursors.

    1.46.0release notes

  • Corrects Bedrock SDK setup.

    1.46.0release notes

  • Keeps 401 response bodies backward-compatible.

    1.46.0release notes

  • Corrects Ollama batch handling.

    1.46.0release notes

  • Returns text or a blob when reading a resource that has no content.

    1.46.0release notes

  • Registered tools returned by tools/list now default inputSchema to {type:"object"}.

    1.45.1release notes

  • Serves OpenRouter's removal rejection for this model.

    1.45.1release notes

  • Malformed tool arguments are preserved across provider wires.

    1.45.0release notes

  • Strict-args behavior is opt-in rather than part of the default behavior.

    1.45.0release notes

  • CORS preflight now advertises PUT for fal queue requests.

    1.44.0release notes

  • Malformed requests and fixture inputs are now handled.

    1.44.0release notes

  • OpenRouter video job creation now returns 202.

    1.44.0release notes

  • Moderation and images stop returning model IDs that were removed.

    1.43.0release notes

  • Blocks now return text payloads and correct provider completion reasons.

    1.43.0release notes

  • Reasoning-first streams containing content and tools are now identified as assistant.

    1.43.0release notes

  • Requests to this removed endpoint now replay the real removal 404.

    1.43.0release notes

  • A hotfix addresses MCP streaming.

    1.42.1release notes

  • Injected errors now validate their status and body.

    1.42.0release notes

  • Multipart boundaries are now unquoted when parsed.

    1.42.0release notes

  • Wrong-typed provider fields now return 400 instead of 500.

    1.42.0release notes

  • Moderation, rerank, and search handlers now honor strict mode.

    1.42.0release notes

  • Restores the docs content class and stops capturing a malformed status.

    1.41.0release notes

  • gpt-image-2.5-flare/sunburst and gpt-live-1 are classified as excluded families for image modality and full-duplex voice, respectively.

    1.41.0release notes

  • Declares metadata on the base event and reads canonical optionality correctly.

    1.40.0release notes

  • Classifies new Gemini model families and resolves Live AUDIO modality from the provider.

    1.40.0release notes

  • Keeps the body available on every supported Node version.

    1.40.0release notes

  • Mirrors subagentRunId onto messages and interrupts and aligns AG-UI with canonical subagent lifecycle events.

    1.40.0release notes

  • Non-websocket upgrade probes no longer return 404.

    1.40.0release notes

  • Fixed handling of ordered blocks and the fallback branch for the Responses API.

    1.39.0release notes

  • OpenAI Responses-API function-call streams are collapsed into toolCalls.

    1.39.0release notes

  • Correctly classifies the gemini-3.5-flash-lite and gemini-3.6-flash model families.

    1.38.0release notes

  • Makes fallback for OpenRouter models[] depend on the error class.

    1.38.0release notes

  • Record and replay handling for hasToolResult is symmetric.

    1.37.4release notes

  • Anthropic tool_result and text scoping was fixed.

    1.37.4release notes

  • hasToolResult is scoped to the current turn during multi-turn replay, preventing tool results from earlier turns from affecting the current turn.

    1.37.3release notes

  • Caps the journal body at 64KB to prevent an Invalid string length crash on GET /__aimock/journal.

    1.37.2release notes

  • Caps auto-remediation PR and issue bodies under GitHub's 65536-character limit.

    1.37.1release notes

  • Drift authenticates using the copilotkit-devops-bot app token.

    1.37.1release notes

  • Requires a genuinely green gate before auto-merge, including pass>0 and required contexts, to prevent false-green results.

    1.37.1release notes

  • Corrected text extraction and empty/regex handling when matching fixtures.

    1.37.1release notes

  • Caps string accumulators to prevent RangeError: Invalid string length.

    1.37.1release notes

  • Fixes chunkSize handling in startFromConfig.

    1.36.1release notes

  • Fixes latency handling in startFromConfig.

    1.36.1release notes

  • Fixes logLevel handling in startFromConfig.

    1.36.1release notes

  • Fixes replaySpeed handling in startFromConfig.

    1.36.1release notes

  • Known-models canary drift is surfaced as critical instead of causing a crash.

    1.36.0release notes

  • The recorder no longer drops fixtures when the SDK closes the socket after data: [DONE].

    1.35.1release notes

  • Adds a proxy buffer cap as part of aimock stabilization.

    1.33.0release notes

  • Anthropic extended-thinking request invariants are now validated.

    1.30.0release notes

  • The router distinguishes sequence or turn exhaustion from no-match in strict 503 responses.

    1.30.0release notes

  • Fixes parsing multipart/form-data create bodies for OpenAI SDK 6.28+ video requests.

    1.29.0release notes

  • Corrected the /v1/images/edits path.

    1.27.3release notes

  • Extracts the user message from AG-UI multimodal user content.

    1.27.0release notes

  • Recognizes a top-level Step[] envelope in gemini-interactions input.

    1.27.0release notes

  • Gemini tool-call response serialization now round-trips functionCall.id.

    1.24.1release notes

  • Preserves functionCall.id when converting Gemini conversation history.

    1.23.1release notes

  • Proxy relay status codes are normalized.

    1.20.0release notes

  • Fixed 29 provider spec conformance violations, which may affect provider behavior.

    1.19.5release notes

  • Multi-turn runs now produce distinct fixtures.

    1.19.3release notes

  • Event Stream payloads are no longer double-wrapped.

    1.19.2release notes

  • Hardens error handling in the AG-UI recorder, mock, and handler.

    1.17.0release notes

  • toolCallId now matches only when the tool message is the last turn.

    1.16.4release notes

  • Bedrock invoke streams now emit native stream chunks.

    1.16.2release notes

  • Fixes debug logging.

    1.16.1release notes

  • Fixes six Responses API schema bugs.

    1.16.1release notes

  • The published package no longer runs the only-allow preinstall hook.

    1.14.9release notes

  • Allows --proxy-only to be used with URL-only --fixtures.

    1.14.8release notes

  • The recorder streams SSE responses instead of buffering them.

    1.14.5release notes

  • Uses action.query for web_search_call items to match the OpenAI API.

    1.9.0release notes

  • The Docker image is now ghcr.io/copilotkit/aimock.

    1.7.0release notes

  • The old Docker image remains available as a compatibility alias.

    1.7.0release notes

  • The recorder decodes base64-encoded embeddings.

    1.6.1release notes

  • The record proxy preserves the base URL path prefix.

    1.6.1release notes

  • The record proxy forwards all request headers.

    1.6.1release notes

  • Fixes the missing refusal field in the API.

    1.3.2release notes

  • Errors are more visible across WebSocket handlers.

    1.2.0release notes