@assistant-ui/react 0.11.43 → 0.11.45
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/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.d.ts +3 -0
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js +4 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/utils.d.ts +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/utils.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/utils.js.map +1 -1
- package/dist/tests/setup.js +8 -8
- package/dist/tests/setup.js.map +1 -1
- package/package.json +9 -10
- package/src/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.ts +7 -3
- package/src/legacy-runtime/runtime-cores/assistant-transport/utils.ts +1 -1
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"conversational-ui",
|
|
29
29
|
"conversational-ai"
|
|
30
30
|
],
|
|
31
|
-
"version": "0.11.
|
|
31
|
+
"version": "0.11.45",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"type": "module",
|
|
34
34
|
"exports": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
],
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"assistant-cloud": "^0.1.
|
|
52
|
-
"@assistant-ui/tap": "^0.3.
|
|
51
|
+
"assistant-cloud": "^0.1.9",
|
|
52
|
+
"@assistant-ui/tap": "^0.3.1",
|
|
53
53
|
"@radix-ui/primitive": "^1.1.3",
|
|
54
54
|
"@radix-ui/react-compose-refs": "^1.1.2",
|
|
55
55
|
"@radix-ui/react-context": "^1.1.3",
|
|
@@ -59,11 +59,10 @@
|
|
|
59
59
|
"@radix-ui/react-use-callback-ref": "^1.1.1",
|
|
60
60
|
"@radix-ui/react-use-escape-keydown": "^1.1.1",
|
|
61
61
|
"@standard-schema/spec": "^1.0.0",
|
|
62
|
-
"assistant-stream": "^0.2.
|
|
63
|
-
"json-schema": "^0.4.0",
|
|
62
|
+
"assistant-stream": "^0.2.42",
|
|
64
63
|
"nanoid": "5.1.6",
|
|
65
64
|
"react-textarea-autosize": "^8.5.9",
|
|
66
|
-
"zod": "^4.1.
|
|
65
|
+
"zod": "^4.1.13",
|
|
67
66
|
"zustand": "^5.0.8"
|
|
68
67
|
},
|
|
69
68
|
"peerDependencies": {
|
|
@@ -81,14 +80,14 @@
|
|
|
81
80
|
}
|
|
82
81
|
},
|
|
83
82
|
"devDependencies": {
|
|
84
|
-
"@stryker-mutator/core": "^9.
|
|
85
|
-
"@stryker-mutator/vitest-runner": "^9.
|
|
83
|
+
"@stryker-mutator/core": "^9.4.0",
|
|
84
|
+
"@stryker-mutator/vitest-runner": "^9.4.0",
|
|
86
85
|
"@types/json-schema": "^7.0.15",
|
|
87
86
|
"@types/node": "^24.10.1",
|
|
88
87
|
"eslint": "^9",
|
|
89
|
-
"eslint-config-next": "16.0.
|
|
88
|
+
"eslint-config-next": "16.0.4",
|
|
90
89
|
"tsx": "^4.20.6",
|
|
91
|
-
"vitest": "^4.0.
|
|
90
|
+
"vitest": "^4.0.14",
|
|
92
91
|
"@assistant-ui/x-buildutils": "0.0.1"
|
|
93
92
|
},
|
|
94
93
|
"publishConfig": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from "react";
|
|
2
2
|
import {
|
|
3
3
|
createAssistantStreamController,
|
|
4
|
-
ToolCallStreamController,
|
|
4
|
+
type ToolCallStreamController,
|
|
5
5
|
ToolResponse,
|
|
6
6
|
unstable_toolResultStream,
|
|
7
7
|
type Tool,
|
|
@@ -39,7 +39,8 @@ type UseToolInvocationsParams = {
|
|
|
39
39
|
|
|
40
40
|
export type ToolExecutionStatus =
|
|
41
41
|
| { type: "executing" }
|
|
42
|
-
| { type: "interrupt"; payload: { type: "human"; payload: unknown } }
|
|
42
|
+
| { type: "interrupt"; payload: { type: "human"; payload: unknown } }
|
|
43
|
+
| { type: "cancelled"; reason: string };
|
|
43
44
|
|
|
44
45
|
export function useToolInvocations({
|
|
45
46
|
state,
|
|
@@ -166,7 +167,10 @@ export function useToolInvocations({
|
|
|
166
167
|
if (process.env["NODE_ENV"] !== "production") {
|
|
167
168
|
console.warn(
|
|
168
169
|
"argsText updated after controller was closed:",
|
|
169
|
-
{
|
|
170
|
+
{
|
|
171
|
+
previous: lastState.argsText,
|
|
172
|
+
next: content.argsText,
|
|
173
|
+
},
|
|
170
174
|
);
|
|
171
175
|
}
|
|
172
176
|
} else {
|