Files
copilotkit__copilotkit/packages/react-native/package.json
Benjamin Taylor b8c0ce99ed fix(deps): bump @ag-ui/core family 0.0.57 -> 0.0.58 (OSS-924)
Our packages pinned @ag-ui/{core,client,encoder,proto} exactly at 0.0.57.
@ag-ui/mastra@1.1.2 imports `tokenUsageFromAiSdkUsage`, which only exists
from @ag-ui/core@0.0.58, while declaring a loose `>=0.0.44` peer. Any app
that pins core to whatever our runtime pins therefore installs cleanly and
then fails at bundle time on a missing export.

0.0.58 is additive over 0.0.57 (TokenUsage schema + helpers, optional
`usage` field) plus one input-widening: TOOL_CALL_START.parentMessageId now
accepts null and coerces it to undefined instead of rejecting it.

That widening makes two channels-core negative-control tests stale. They
asserted that a null parentMessageId aborts a run when sanitizeAgentEventStream
is not applied -- the upstream bug the sanitizer works around. Core 0.0.58
fixes it upstream, so those runs now succeed; the tests are updated to assert
the new behavior. The sanitizer is kept: it normalizes null to "" whereas core
coerces to undefined, and it is public API.

Scope note: showcase/integrations and the examples that pin published
@copilotkit versions are deliberately NOT bumped. They have no @ag-ui
override, so raising only their direct pin would hoist 0.0.58 at the root
while @copilotkit/* keep nested 0.0.57 copies -- turning one coherent copy
into a split. They pick up 0.0.58 when they bump their @copilotkit pins.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-25 08:53:54 -05:00

137 lines
3.5 KiB
JSON

{
"name": "@copilotkit/react-native",
"version": "1.69.0",
"private": false,
"keywords": [
"ai",
"assistant",
"copilot",
"copilotkit",
"mobile",
"react-native"
],
"homepage": "https://github.com/CopilotKit/CopilotKit",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/CopilotKit/CopilotKit.git"
},
"type": "module",
"sideEffects": [
"./dist/index.*",
"./dist/headless.*",
"./dist/polyfills.*",
"./dist/polyfills/**/*"
],
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./headless": {
"import": "./dist/headless.mjs",
"require": "./dist/headless.cjs"
},
"./polyfills": {
"import": "./dist/polyfills.mjs",
"require": "./dist/polyfills.cjs"
},
"./polyfills/streams": {
"import": "./dist/polyfills/streams.mjs",
"require": "./dist/polyfills/streams.cjs"
},
"./polyfills/encoding": {
"import": "./dist/polyfills/encoding.mjs",
"require": "./dist/polyfills/encoding.cjs"
},
"./polyfills/crypto": {
"import": "./dist/polyfills/crypto.mjs",
"require": "./dist/polyfills/crypto.cjs"
},
"./polyfills/dom": {
"import": "./dist/polyfills/dom.mjs",
"require": "./dist/polyfills/dom.cjs"
},
"./polyfills/location": {
"import": "./dist/polyfills/location.mjs",
"require": "./dist/polyfills/location.cjs"
},
"./components": {
"import": "./dist/components/index.mjs",
"require": "./dist/components/index.cjs"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"test": "vitest run && pnpm run test:scripts",
"test:scripts": "node --test scripts/__tests__/measure-headless.test.mjs",
"check-types": "tsc --noEmit",
"publint": "publint .",
"attw": "attw --pack . --profile node16 --ignore-rules internal-resolution-error",
"link:global": "pnpm link --global",
"unlink:global": "pnpm unlink --global",
"size:headless": "node scripts/measure-headless.mjs"
},
"dependencies": {
"@ag-ui/client": "0.0.58",
"@copilotkit/core": "workspace:*",
"@copilotkit/react-core": "workspace:*",
"@copilotkit/shared": "workspace:*",
"text-encoding": "^0.7.0",
"web-streams-polyfill": "^4.2.0"
},
"devDependencies": {
"@testing-library/react": "^16.3.0",
"@types/react": "^19.2.0",
"esbuild": "^0.27.0",
"jsdom": "^26.1.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tsdown": "^0.20.3",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"peerDependencies": {
"@gorhom/bottom-sheet": "^5.0.0",
"expo-document-picker": ">=12.0.0",
"expo-file-system": ">=17.0.0",
"react": "^18 || ^19",
"react-native": ">=0.70",
"react-native-gesture-handler": ">=2.0.0",
"react-native-reanimated": ">=3.0.0",
"react-native-streamdown": ">=0.1.0",
"zod": ">=3.0.0"
},
"peerDependenciesMeta": {
"@gorhom/bottom-sheet": {
"optional": true
},
"expo-document-picker": {
"optional": true
},
"expo-file-system": {
"optional": true
},
"react-native-gesture-handler": {
"optional": true
},
"react-native-reanimated": {
"optional": true
},
"react-native-streamdown": {
"optional": true
},
"zod": {
"optional": true
}
}
}