@copilotkit/react-core 1.50.0-beta.4 → 1.50.0-beta.6
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
+
## 1.50.0-beta.6
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Updating dependency versions across all packages
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.6
|
|
13
|
+
- @copilotkit/shared@1.50.0-beta.6
|
|
14
|
+
|
|
3
15
|
## 1.50.0-beta.4
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.50.0-beta.
|
|
12
|
+
"version": "1.50.0-beta.6",
|
|
13
13
|
"sideEffects": [
|
|
14
14
|
"**/*.css"
|
|
15
15
|
],
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"zod": ">=3.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@ag-ui/client": "^0.0.
|
|
39
|
+
"@ag-ui/client": "^0.0.42",
|
|
40
40
|
"@testing-library/react": "^16.3.0",
|
|
41
41
|
"@testing-library/react-hooks": "^8.0.1",
|
|
42
42
|
"@types/jest": "^29.5.4",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"tsconfig": "1.4.6"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@copilotkitnext/core": "0.0.
|
|
60
|
-
"@copilotkitnext/react": "0.0.
|
|
59
|
+
"@copilotkitnext/core": "0.0.25",
|
|
60
|
+
"@copilotkitnext/react": "0.0.25",
|
|
61
61
|
"@scarf/scarf": "^1.3.0",
|
|
62
62
|
"react-markdown": "^8.0.7",
|
|
63
63
|
"untruncate-json": "^0.0.1",
|
|
64
|
-
"@copilotkit/runtime-client-gql": "1.50.0-beta.
|
|
65
|
-
"@copilotkit/shared": "1.50.0-beta.
|
|
64
|
+
"@copilotkit/runtime-client-gql": "1.50.0-beta.6",
|
|
65
|
+
"@copilotkit/shared": "1.50.0-beta.6"
|
|
66
66
|
},
|
|
67
67
|
"keywords": [
|
|
68
68
|
"copilotkit",
|
|
@@ -419,15 +419,14 @@ export function useCopilotChatInternal({
|
|
|
419
419
|
[latestSendMessageFunc],
|
|
420
420
|
);
|
|
421
421
|
|
|
422
|
-
const latestSetMessages = useUpdatedRef(agent?.setMessages);
|
|
423
422
|
const latestSetMessagesFunc = useCallback(
|
|
424
423
|
(messages: Message[] | DeprecatedGqlMessage[]) => {
|
|
425
424
|
if (messages.every((message) => message instanceof DeprecatedGqlMessage)) {
|
|
426
|
-
return
|
|
425
|
+
return agent?.setMessages?.(gqlToAGUI(messages));
|
|
427
426
|
}
|
|
428
|
-
return
|
|
427
|
+
return agent?.setMessages?.(messages);
|
|
429
428
|
},
|
|
430
|
-
[
|
|
429
|
+
[agent?.setMessages, agent],
|
|
431
430
|
);
|
|
432
431
|
|
|
433
432
|
const latestReload = useUpdatedRef(reload);
|
|
@@ -438,10 +437,9 @@ export function useCopilotChatInternal({
|
|
|
438
437
|
[latestReload],
|
|
439
438
|
);
|
|
440
439
|
|
|
441
|
-
const latestStop = useUpdatedRef(agent?.abortRun);
|
|
442
440
|
const latestStopFunc = useCallback(() => {
|
|
443
|
-
return
|
|
444
|
-
}, [
|
|
441
|
+
return agent?.abortRun?.();
|
|
442
|
+
}, [agent?.abortRun]);
|
|
445
443
|
|
|
446
444
|
const latestReset = useUpdatedRef(reset);
|
|
447
445
|
const latestResetFunc = useCallback(() => {
|