Open
Conversation
commit: |
…g, CLI Mountable interface for composing protocol handlers on a single server. JSON-RPC 2.0 transport with batch, notifications (null id), error codes. Config loader, suite runner, aimock CLI with port validation. /__aimock/* control API (health, fixtures CRUD, reset, journal, errors). Server catches unhandled rejections on HTTP and WebSocket paths.
Tools, resources, prompts with JSON-RPC dispatch. Session lifecycle with initialize/notifications/initialized handshake and enforcement. Standalone and mounted modes. Metrics via aimock_mcp_requests_total.
Agent cards, message routing, task management, SSE streaming. Terminal state preservation (COMPLETED/FAILED/CANCELED). Metrics via aimock_a2a_requests_total. Standalone and mounted modes.
In-memory vector store with upsert, query, delete, list, fetch, describe.
Three vendor-compatible endpoint sets. Auto-collection creation.
Metrics via aimock_vector_requests_total{operation,provider}.
Tavily-compatible search, Cohere v2 rerank, OpenAI moderation endpoints. Pattern matching with case-insensitive string and regex support.
Logger [aimock], chaos headers x-aimock-chaos-*, CLI aimock server listening, owned_by aimock. Prometheus metrics renamed aimock_*. New counters: aimock_mcp_requests_total, aimock_a2a_requests_total, aimock_vector_requests_total.
Expand tests for bedrock, cohere, ollama, responses, messages, embeddings, gemini, ws-framing, ws-realtime, ws-gemini-live, and recorder to meet >= 85% branch coverage.
convert-vidaimock.ts: Tera → aimock fixture JSON (19 tests) convert-mockllm.ts: YAML → aimock fixture JSON with MCP (17 tests) fix-drift.ts: BUILDER_TO_SKILL_SECTION mapping, affectedSkillSections(), buildPrompt includes skill update instructions, 35 tests.
NodeManager: node detection, npm tarball download + cache, fcntl/Windows guard. AIMockServer: subprocess lifecycle, /__aimock/* control API, temp fixtures dir. Plugin: auto-registered aimock + aimock_session pytest fixtures. AIMOCK_CLI_PATH env var for local dev (bypasses npm download). CI: Python 3.10-3.13 x Node 20/22 test matrix, PyPI publish workflow.
Treatment 3 Progressive Disclosure homepage with animated terminal demo. sidebar.js (single nav source of truth), cli-tabs.js (CLI/Docker tabs). All 30+ pages rebranded: titles, nav, footer, prose, imports → aimock. Docker refs → ghcr.io/copilotkit/aimock. Font ligatures disabled. 6 migration guides: MSW, VidaiMock, mock-llm, piyook, Python, Mokksy. Competitive matrix with 25 rows. Sticky table header. "Ready to switch?" + "Built for production" (AG-UI) sections.
f9e21bc to
346dbdb
Compare
…ills package.json name → @copilotkit/aimock, bin: aimock + llmock alias. Docker: dual-push ghcr.io/copilotkit/aimock + llmock compat. Helm chart: charts/aimock/ with updated templates. Dockerfile OCI labels. Plugin versions bumped to 1.7.0. CHANGELOG, README, skills/write-fixtures all rebranded. CI: unreleased-check, tag safety in publish-release. vitest coverage excludes aimock-cli.ts. __pycache__ gitignored.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Transforms llmock from an LLM mock server into aimock — a complete mock infrastructure suite for AI application testing. One package, one port, zero dependencies.
New Mock Tools
Core Infrastructure
aimockCLI with port validation and graceful shutdown/__aimock/*control API for external fixture management (pytest foundation)aimock Rebrand
[aimock], chaos headersx-aimock-chaos-*, metricsaimock_*Metrics
llmock_*→aimock_*aimock_mcp_requests_total,aimock_a2a_requests_total,aimock_vector_requests_totalDrift Automation
fix-drift.tsnow updates write-fixtures skill alongside source fixesQuality
Test plan
pnpm test— 1,953 tests passpnpm run lint— cleanpnpm run build— clean