@assistant-ui/react 0.8.16 → 0.8.18
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/api/ThreadRuntime.d.ts.map +1 -1
- package/dist/api/ThreadRuntime.js +1 -0
- package/dist/api/ThreadRuntime.js.map +1 -1
- package/dist/api/ThreadRuntime.mjs +1 -0
- package/dist/api/ThreadRuntime.mjs.map +1 -1
- package/dist/runtimes/edge/streams/toolResultStream.js +3 -3
- package/dist/runtimes/edge/streams/toolResultStream.js.map +1 -1
- package/dist/runtimes/edge/streams/toolResultStream.mjs +1 -1
- package/dist/runtimes/edge/streams/toolResultStream.mjs.map +1 -1
- package/dist/tests/setup.js +2272 -1930
- package/dist/tests/setup.js.map +1 -1
- package/dist/tests/setup.mjs +2277 -1935
- package/dist/tests/setup.mjs.map +1 -1
- package/package.json +11 -11
- package/src/api/ThreadRuntime.ts +1 -0
- package/src/runtimes/edge/streams/toolResultStream.ts +1 -1
package/package.json
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
"conversational-ui",
|
30
30
|
"conversational-ai"
|
31
31
|
],
|
32
|
-
"version": "0.8.
|
32
|
+
"version": "0.8.18",
|
33
33
|
"license": "MIT",
|
34
34
|
"exports": {
|
35
35
|
".": {
|
@@ -65,13 +65,13 @@
|
|
65
65
|
"@radix-ui/react-slot": "^1.1.2",
|
66
66
|
"@radix-ui/react-use-callback-ref": "^1.1.0",
|
67
67
|
"@radix-ui/react-use-escape-keydown": "^1.1.0",
|
68
|
-
"assistant-stream": "^0.0.
|
68
|
+
"assistant-stream": "^0.0.30",
|
69
69
|
"json-schema": "^0.4.0",
|
70
|
-
"nanoid": "
|
71
|
-
"react-textarea-autosize": "^8.5.
|
72
|
-
"secure-json-parse": "^
|
73
|
-
"zod": "^3.24.
|
74
|
-
"zod-to-json-schema": "^3.24.
|
70
|
+
"nanoid": "5.1.5",
|
71
|
+
"react-textarea-autosize": "^8.5.9",
|
72
|
+
"secure-json-parse": "^4.0.0",
|
73
|
+
"zod": "^3.24.2",
|
74
|
+
"zod-to-json-schema": "^3.24.5",
|
75
75
|
"zustand": "^5.0.3"
|
76
76
|
},
|
77
77
|
"peerDependencies": {
|
@@ -92,11 +92,11 @@
|
|
92
92
|
"@stryker-mutator/core": "^8.7.1",
|
93
93
|
"@stryker-mutator/vitest-runner": "^8.7.1",
|
94
94
|
"@types/json-schema": "^7.0.15",
|
95
|
-
"@types/node": "^22.
|
95
|
+
"@types/node": "^22.14.0",
|
96
96
|
"eslint": "^9",
|
97
|
-
"eslint-config-next": "15.
|
98
|
-
"tsx": "^4.19.
|
99
|
-
"vitest": "^1.
|
97
|
+
"eslint-config-next": "15.2.4",
|
98
|
+
"tsx": "^4.19.3",
|
99
|
+
"vitest": "^3.1.1",
|
100
100
|
"@assistant-ui/tsbuildutils": "^0.0.1",
|
101
101
|
"@assistant-ui/tsconfig": "0.0.0"
|
102
102
|
},
|
package/src/api/ThreadRuntime.ts
CHANGED
@@ -314,6 +314,7 @@ export class ThreadRuntimeImpl implements ThreadRuntime {
|
|
314
314
|
|
315
315
|
protected __internal_bindMethods() {
|
316
316
|
this.append = this.append.bind(this);
|
317
|
+
this.unstable_resumeRun = this.unstable_resumeRun.bind(this);
|
317
318
|
this.startRun = this.startRun.bind(this);
|
318
319
|
this.cancelRun = this.cancelRun.bind(this);
|
319
320
|
this.stopSpeaking = this.stopSpeaking.bind(this);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Tool } from "../../../model-context/ModelContextTypes";
|
2
2
|
import { z } from "zod";
|
3
3
|
import { AssistantMessage, ToolExecutionStream } from "assistant-stream";
|
4
|
-
import { ToolResponse } from "assistant-stream
|
4
|
+
import { ToolResponse } from "assistant-stream";
|
5
5
|
|
6
6
|
function getToolResponse(
|
7
7
|
tools: Record<string, Tool<any, any>> | undefined,
|