Skip to content

Fix llmock import: rename to @copilotkit/aimock#4

Merged
jpr5 merged 1 commit into
mainfrom
fix/llmock-import
May 12, 2026
Merged

Fix llmock import: rename to @copilotkit/aimock#4
jpr5 merged 1 commit into
mainfrom
fix/llmock-import

Conversation

@jpr5
Copy link
Copy Markdown

@jpr5 jpr5 commented May 12, 2026

Summary

  • Replace stale @copilotkit/llmock@^1.4.0 with @copilotkit/aimock@^1.22.0 (package was renamed)
  • Update imports in test/llmock-setup.ts and test/copilot-workflows.test.ts
  • Regenerate lockfiles

The old @copilotkit/llmock version was incompatible with current Vite/Vitest bundling, causing Class extends value undefined is not a constructor or null on every CI run.

Test plan

  • All 8 tests in copilot-workflows.test.ts pass locally
  • API surface unchanged (LLMock class with same methods)

The @copilotkit/llmock package was renamed to @copilotkit/aimock.
The stale dependency caused test imports to fail with
"Class extends value undefined is not a constructor or null".

Updated package.json, bun.lock, and test imports to use the
new package name. The LLMock class is still exported from
@copilotkit/aimock for backward compatibility, so no API
changes were needed.
@jpr5 jpr5 merged commit 08c0e1e into main May 12, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant