mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
bd68aeda32
Picks up ag-ui-protocol/ag-ui#1578 — `import * as jsonpatch from "fast-json-patch"` produced an empty namespace under Node native ESM because fast-json-patch@3.x populates exports via Object.assign, which the CJS→ESM named-export detector cannot see. Result: every STATE_DELTA and ACTIVITY_DELTA event threw "applyPatch is not a function", and LangGraph generative UI streams floods the console with the failure on each patch. 0.0.53 switches to a default import so the emitted bundle works under both ESM and CJS consumers. Bumped @ag-ui/core and @ag-ui/encoder in lockstep since they share the release.
39 lines
831 B
JSON
39 lines
831 B
JSON
{
|
|
"name": "@copilotkit/demo-agents",
|
|
"version": "1.55.0-next.8",
|
|
"private": true,
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.cts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.mjs",
|
|
"require": "./dist/index.cjs"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"scripts": {
|
|
"build": "tsdown",
|
|
"dev": "tsdown --watch",
|
|
"check-types": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@ag-ui/client": "0.0.53",
|
|
"openai": "^4.85.1",
|
|
"rxjs": "^7.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"@copilotkit/typescript-config": "workspace:*",
|
|
"@types/node": "^22.10.5",
|
|
"tsdown": "^0.20.3",
|
|
"typescript": "^5.8.2",
|
|
"vitest": "^4.1.3"
|
|
}
|
|
}
|