mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
f878892761
## Problem Shell-docs had conflicting v2 guidance around the provider import path. Some migration/reference/quickstart pages either recommended `CopilotKitProvider` or kept `CopilotKit` examples on the root `@copilotkit/react-core` package even though v2 docs should import the `CopilotKit` component from `@copilotkit/react-core/v2`. ## Why The correct recommendation is the `CopilotKit` component name, imported from the v2 entrypoint. Leaving root-package imports in v2-facing docs makes the migration and reference guidance contradict the v2 package layout. ## Fix - Recommend `CopilotKit` from `@copilotkit/react-core/v2`, not `CopilotKitProvider`. - Update v2 migration, reference, and quickstart examples to use the v2 provider/style entrypoints. - Leave root `@copilotkit/react-core` imports only in v1 docs and explicit migration “Before” examples. - Add regression coverage for stale provider/style package paths. - Fix the shell-docs SignupLink SSR test typing exposed by typecheck. Closes #5153