@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.
- package/dist/{copilotkit-CbZGwElm.d.mts → copilotkit--Jyzm6hS.d.mts} +50 -20
- package/dist/copilotkit--Jyzm6hS.d.mts.map +1 -0
- package/dist/{copilotkit-B7aFKfQR.mjs → copilotkit-B1jSvZeb.mjs} +395 -291
- package/dist/copilotkit-B1jSvZeb.mjs.map +1 -0
- package/dist/{copilotkit-BuzP0VeG.d.cts → copilotkit-BLYaCGcz.d.cts} +50 -20
- package/dist/copilotkit-BLYaCGcz.d.cts.map +1 -0
- package/dist/{copilotkit-BE76j111.cjs → copilotkit-DcFo270Y.cjs} +395 -291
- package/dist/copilotkit-DcFo270Y.cjs.map +1 -0
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +198 -207
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/headless.cjs +58 -1
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.mjs +59 -2
- package/dist/v2/headless.mjs.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.css +1 -1
- package/dist/v2/index.d.cts +1 -1
- package/dist/v2/index.d.mts +1 -1
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +395 -291
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +11 -8
- package/skills/react-core/SKILL.md +1 -1
- package/skills/react-core/references/attachments.md +20 -0
- package/skills/react-core/references/threads.md +1 -1
- package/dist/copilotkit-B7aFKfQR.mjs.map +0 -1
- package/dist/copilotkit-BE76j111.cjs.map +0 -1
- package/dist/copilotkit-BuzP0VeG.d.cts.map +0 -1
- package/dist/copilotkit-CbZGwElm.d.mts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
const require_copilotkit = require('./copilotkit-
|
|
4
|
+
const require_copilotkit = require('./copilotkit-DcFo270Y.cjs');
|
|
5
5
|
let react = require("react");
|
|
6
6
|
react = require_copilotkit.__toESM(react);
|
|
7
7
|
let _copilotkit_core = require("@copilotkit/core");
|
|
@@ -372,7 +372,7 @@ function useCopilotChat(options = {}) {
|
|
|
372
372
|
* `useCopilotChatHeadless_c` is for building fully custom UI (headless UI) implementations.
|
|
373
373
|
*
|
|
374
374
|
* <Callout title="This is a CopilotKit Intelligence feature">
|
|
375
|
-
* Read more about <a href="/
|
|
375
|
+
* Read more about <a href="/intelligence/overview">CopilotKit Intelligence</a>.
|
|
376
376
|
*
|
|
377
377
|
* Usage is generous and **free** to get started.
|
|
378
378
|
* </Callout>
|
|
@@ -603,7 +603,7 @@ function useCopilotChatHeadless_c(options = {}) {
|
|
|
603
603
|
* See https://docs.copilotkit.ai/reference/v2/hooks/useFrontendTool
|
|
604
604
|
*/
|
|
605
605
|
function useFrontendTool(tool, dependencies) {
|
|
606
|
-
const { name, description, parameters, render, followUp, available } = tool;
|
|
606
|
+
const { name, description, parameters, render, followUp, available, webmcp } = tool;
|
|
607
607
|
const zodParameters = (0, _copilotkit_shared.getZodParameters)(parameters);
|
|
608
608
|
const renderRef = (0, react.useRef)(render);
|
|
609
609
|
(0, react.useEffect)(() => {
|
|
@@ -634,7 +634,8 @@ function useFrontendTool(tool, dependencies) {
|
|
|
634
634
|
handler: tool.handler ? (args) => handlerRef.current?.(args) : void 0,
|
|
635
635
|
followUp,
|
|
636
636
|
render: normalizedRender,
|
|
637
|
-
available: available === void 0 ? void 0 : available !== "disabled"
|
|
637
|
+
available: available === void 0 ? void 0 : available !== "disabled",
|
|
638
|
+
webmcp
|
|
638
639
|
});
|
|
639
640
|
}
|
|
640
641
|
|