@rekayasa/copilotkit-core
v1.55.3-erica.1
Published
Core web utilities for CopilotKit2
Readme
Erica CopilotKit Core (Unofficial Fork)
This is an unofficial fork, not an official CopilotKit release. It is independently maintained for Erica and is not affiliated with or endorsed by the upstream CopilotKit project.
- Package:
@rekayasa/copilotkit-core - Fork version:
1.55.3-erica.1 - Upstream:
@copilotkit/coreat CopilotKit v1.55.3
Purpose and changes
This fork contains a focused optimization for repeated state-snapshot allocations during chat rendering. It is intended to be used with the matching @rekayasa/copilotkit-react-core fork.
The patch adds an internal getStateByRunForMemoization() method that returns a serialized string token for render memoization instead of creating another state object through JSON.parse(JSON.stringify(state)).
- Public
getStateByRun()behavior is unchanged: callers still receive defensive copies. - Custom renderers retain their existing defensive-copy boundary.
- Tokens are serialized on each read; no long-lived snapshot cache is introduced.
- This optimization does not eliminate all serialization or guarantee that every large-output workload is free of out-of-memory failures.
getStateByRunForMemoization() is an internal integration detail, not a new supported public application API.
Dependency compatibility
Use this package with @rekayasa/[email protected]. To preserve existing import paths, the dependency can be installed under the original name using an npm alias:
{
"@copilotkit/core": "npm:@rekayasa/[email protected]"
}This is a dependency entry, not a complete application configuration. Other CopilotKit packages can still request upstream Core or React Core versions. Align the consuming application's dependency graph and peer requirements so the patched and upstream implementations are not installed in parallel. Any npm overrides must be configured in the consuming application's root manifest; overrides in an installed library do not propagate to its consumers.
Upstream documentation
For the original project and documentation, see CopilotKit. Upstream documentation describes the upstream project and does not imply endorsement or support of this fork.
License and attribution
Distributed under the MIT License. CopilotKit's original copyright notices and license terms are retained. See LICENSE for the original attribution and full terms.
