feat: add npm keywords, fixture gallery, CLI converters, and GitHub Action#102
Merged
Conversation
commit: |
jpr5
force-pushed
the
feat/adoption-dx
branch
2 times, most recently
from
April 10, 2026 18:55
41e0990 to
71eddf3
Compare
jpr5
force-pushed
the
feat/adoption-dx
branch
13 times, most recently
from
April 10, 2026 22:52
bdd8523 to
f8c5bb9
Compare
jpr5
added a commit
that referenced
this pull request
Jul 15, 2026
…ction (#102) ## Summary The DX release — everything to make aimock easier to discover, adopt, and integrate. - **npm keywords** — 30 keywords for search discoverability - **Fixture gallery** — 11 example fixtures + browsable docs page at /examples - **CLI converter subcommands** — `npx aimock convert vidaimock/mockllm` + docs on CLI page - **GitHub Action** — `uses: CopilotKit/aimock@v1` for one-line CI setup + docs page - **Vitest plugin** — `import { useAimock } from "@copilotkit/aimock/vitest"` with auto lifecycle + env patching - **Jest plugin** — `import { useAimock } from "@copilotkit/aimock/jest"` same API - **Publish workflow** — strips video URLs from README for npm ## Usage ### Vitest ```ts import { useAimock } from "@copilotkit/aimock/vitest"; const mock = useAimock({ fixtures: "./fixtures" }); it("responds", async () => { // mock().url is the server URL // OPENAI_BASE_URL is auto-patched const res = await myApp.chat("hello"); }); ``` ### GitHub Action ```yaml - uses: CopilotKit/aimock@v1 with: fixtures: ./test/fixtures - run: npm test env: OPENAI_BASE_URL: http://127.0.0.1:4010/v1 ``` ### Converter CLI ```bash npx aimock convert vidaimock ./templates/ ./fixtures/ npx aimock convert mockllm ./config.yaml ./fixtures/ ``` ## Test plan - [x] All 2303 tests pass - [x] Build passes (vitest.js, jest.js, vitest.d.ts, jest.d.ts all emitted) - [x] Sub-path exports resolve correctly - [x] CR loop converged 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
The DX release — everything to make aimock easier to discover, adopt, and integrate.
npx aimock convert vidaimock/mockllm+ docs on CLI pageuses: CopilotKit/aimock@v1for one-line CI setup + docs pageimport { useAimock } from "@copilotkit/aimock/vitest"with auto lifecycle + env patchingimport { useAimock } from "@copilotkit/aimock/jest"same APIUsage
Vitest
GitHub Action
Converter CLI
Test plan
🤖 Generated with Claude Code