@copilotkit/react-core 1.70.0 → 1.70.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/{copilotkit-CbZGwElm.d.mts → copilotkit--Jyzm6hS.d.mts} +50 -20
  2. package/dist/copilotkit--Jyzm6hS.d.mts.map +1 -0
  3. package/dist/{copilotkit-B7aFKfQR.mjs → copilotkit-B1jSvZeb.mjs} +395 -291
  4. package/dist/copilotkit-B1jSvZeb.mjs.map +1 -0
  5. package/dist/{copilotkit-BuzP0VeG.d.cts → copilotkit-BLYaCGcz.d.cts} +50 -20
  6. package/dist/copilotkit-BLYaCGcz.d.cts.map +1 -0
  7. package/dist/{copilotkit-BE76j111.cjs → copilotkit-DcFo270Y.cjs} +395 -291
  8. package/dist/copilotkit-DcFo270Y.cjs.map +1 -0
  9. package/dist/index.cjs +5 -4
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +2 -2
  12. package/dist/index.d.cts.map +1 -1
  13. package/dist/index.d.mts +2 -2
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +5 -4
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/index.umd.js +198 -207
  18. package/dist/index.umd.js.map +1 -1
  19. package/dist/v2/headless.cjs +58 -1
  20. package/dist/v2/headless.cjs.map +1 -1
  21. package/dist/v2/headless.mjs +59 -2
  22. package/dist/v2/headless.mjs.map +1 -1
  23. package/dist/v2/index.cjs +1 -1
  24. package/dist/v2/index.css +1 -1
  25. package/dist/v2/index.d.cts +1 -1
  26. package/dist/v2/index.d.mts +1 -1
  27. package/dist/v2/index.mjs +1 -1
  28. package/dist/v2/index.umd.js +395 -291
  29. package/dist/v2/index.umd.js.map +1 -1
  30. package/package.json +11 -8
  31. package/skills/react-core/SKILL.md +1 -1
  32. package/skills/react-core/references/attachments.md +20 -0
  33. package/skills/react-core/references/threads.md +1 -1
  34. package/dist/copilotkit-B7aFKfQR.mjs.map +0 -1
  35. package/dist/copilotkit-BE76j111.cjs.map +0 -1
  36. package/dist/copilotkit-BuzP0VeG.d.cts.map +0 -1
  37. package/dist/copilotkit-CbZGwElm.d.mts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/react-core",
3
- "version": "1.70.0",
3
+ "version": "1.70.2",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -61,6 +61,7 @@
61
61
  "@ag-ui/client": "0.0.59",
62
62
  "@ag-ui/core": "0.0.59",
63
63
  "@jetbrains/websandbox": "^1.1.3",
64
+ "@modelcontextprotocol/ext-apps": "^1.7.5",
64
65
  "@radix-ui/react-dropdown-menu": "^2.1.15",
65
66
  "@radix-ui/react-slot": "^1.2.3",
66
67
  "@radix-ui/react-tooltip": "^1.2.7",
@@ -79,18 +80,19 @@
79
80
  "untruncate-json": "^0.0.1",
80
81
  "use-stick-to-bottom": "^1.1.1",
81
82
  "zod-to-json-schema": "^3.24.5",
82
- "@copilotkit/a2ui-renderer": "1.70.0",
83
- "@copilotkit/core": "1.70.0",
84
- "@copilotkit/runtime-client-gql": "1.70.0",
85
- "@copilotkit/web-components": "1.70.0",
86
- "@copilotkit/web-inspector": "1.70.0",
87
- "@copilotkit/shared": "1.70.0"
83
+ "@copilotkit/core": "1.70.2",
84
+ "@copilotkit/a2ui-renderer": "1.70.2",
85
+ "@copilotkit/runtime-client-gql": "1.70.2",
86
+ "@copilotkit/web-components": "1.70.2",
87
+ "@copilotkit/shared": "1.70.2",
88
+ "@copilotkit/web-inspector": "1.70.2"
88
89
  },
89
90
  "devDependencies": {
90
91
  "@tailwindcss/cli": "^4.1.11",
91
92
  "esbuild": "^0.27.0",
92
93
  "@tailwindcss/postcss": "^4.1.11",
93
94
  "@tailwindcss/typography": "^0.5.16",
95
+ "@modelcontextprotocol/sdk": "^1.29.0",
94
96
  "@tanstack/intent": "^0.0.29",
95
97
  "@testing-library/jest-dom": "^6.0.0",
96
98
  "@testing-library/react": "^16.3.0",
@@ -117,9 +119,10 @@
117
119
  "tsconfig": "1.4.12"
118
120
  },
119
121
  "peerDependencies": {
122
+ "@modelcontextprotocol/sdk": "^1.29.0",
120
123
  "react": "^18 || ^19 || ^19.0.0-rc",
121
124
  "react-dom": "^18 || ^19 || ^19.0.0-rc",
122
- "zod": ">=3.0.0"
125
+ "zod": ">=3.25"
123
126
  },
124
127
  "scripts": {
125
128
  "build:css": "tailwindcss -i ./src/v2/styles/globals.css -o ./dist/v2/index.css -m && node scripts/scope-preflight.mjs ./dist/v2/index.css",
@@ -13,7 +13,7 @@ description: >
13
13
  alias). Load the reference under references/ that matches your task.
14
14
  type: framework
15
15
  library: copilotkit
16
- library_version: "1.70.0"
16
+ library_version: "1.70.2"
17
17
  requires:
18
18
  - copilotkit/runtime
19
19
  sources:
@@ -137,6 +137,26 @@ useAttachments({
137
137
  });
138
138
  ```
139
139
 
140
+ ### Upload concurrency
141
+
142
+ Multi-file selections upload one file at a time by default, and the whole
143
+ selection is queued as `status: "uploading"` right away. Raise
144
+ `maxConcurrentUploads` to run several together — the rest then start as slots
145
+ free up, `Infinity` lifts the limit, and `onUpload` may be called concurrently,
146
+ so above `1` it must not assume the previous file finished. The pool is per hook,
147
+ not per call, so a paste landing mid-upload shares the same slots instead of
148
+ opening its own.
149
+
150
+ ```tsx
151
+ useAttachments({
152
+ config: {
153
+ enabled: true,
154
+ maxConcurrentUploads: 6,
155
+ onUpload: async (file) => uploadToStorage(file),
156
+ },
157
+ });
158
+ ```
159
+
140
160
  ### Feedback on failed uploads
141
161
 
142
162
  ```tsx
@@ -193,7 +193,7 @@ import {
193
193
 
194
194
  const intelligence = new CopilotKitIntelligence({
195
195
  // apiUrl / wsUrl default to cloud-hosted CopilotKit Intelligence — leave unset.
196
- apiKey: process.env.INTELLIGENCE_API_KEY!,
196
+ apiKey: process.env.CPK_INTELLIGENCE_API_KEY!,
197
197
  });
198
198
 
199
199
  const runtime = new CopilotIntelligenceRuntime({