@assistant-ui/react 0.14.19 → 0.14.20
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.
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
//#region src/utils/useToolArgsFieldStatus.d.ts
|
|
2
2
|
declare const useToolArgsFieldStatus: (fieldPath: (string | number)[]) => {
|
|
3
|
-
type: string;
|
|
4
|
-
} | {
|
|
5
3
|
readonly type: "running";
|
|
6
4
|
} | {
|
|
7
5
|
readonly type: "complete";
|
|
@@ -9,6 +7,8 @@ declare const useToolArgsFieldStatus: (fieldPath: (string | number)[]) => {
|
|
|
9
7
|
readonly type: "incomplete";
|
|
10
8
|
readonly reason: "cancelled" | "length" | "content-filter" | "other" | "error";
|
|
11
9
|
readonly error?: unknown;
|
|
10
|
+
} | {
|
|
11
|
+
type: string;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { useToolArgsFieldStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToolArgsFieldStatus.d.ts","names":[],"sources":["../../src/utils/useToolArgsFieldStatus.ts"],"mappings":";cAKa,sBAAA,GAA0B,SAAA"}
|
|
1
|
+
{"version":3,"file":"useToolArgsFieldStatus.d.ts","names":[],"sources":["../../src/utils/useToolArgsFieldStatus.ts"],"mappings":";cAKa,sBAAA,GAA0B,SAAA;EAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assistant-ui/react",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.20",
|
|
4
4
|
"description": "Open-source TypeScript/React library for building production-grade AI chat experiences",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
],
|
|
56
56
|
"sideEffects": false,
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@assistant-ui/core": "^0.2.
|
|
59
|
-
"@assistant-ui/store": "^0.2.
|
|
60
|
-
"@assistant-ui/tap": "^0.
|
|
58
|
+
"@assistant-ui/core": "^0.2.16",
|
|
59
|
+
"@assistant-ui/store": "^0.2.18",
|
|
60
|
+
"@assistant-ui/tap": "^0.9.1",
|
|
61
61
|
"@radix-ui/primitive": "^1.1.4",
|
|
62
62
|
"@radix-ui/react-compose-refs": "^1.1.3",
|
|
63
63
|
"@radix-ui/react-context": "^1.1.4",
|
|
64
64
|
"@radix-ui/react-primitive": "^2.1.5",
|
|
65
65
|
"@radix-ui/react-use-callback-ref": "^1.1.2",
|
|
66
66
|
"@radix-ui/react-use-escape-keydown": "^1.1.2",
|
|
67
|
-
"assistant-cloud": "^0.1.
|
|
68
|
-
"assistant-stream": "^0.3.
|
|
67
|
+
"assistant-cloud": "^0.1.33",
|
|
68
|
+
"assistant-stream": "^0.3.23",
|
|
69
69
|
"nanoid": "^5.1.11",
|
|
70
70
|
"radix-ui": "^1.5.0",
|
|
71
71
|
"react-textarea-autosize": "^8.5.9",
|
|
@@ -90,15 +90,15 @@
|
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@testing-library/react": "^16.3.2",
|
|
92
92
|
"@types/json-schema": "^7.0.15",
|
|
93
|
-
"@types/node": "^25.9.
|
|
93
|
+
"@types/node": "^25.9.3",
|
|
94
94
|
"@types/react": "^19.2.17",
|
|
95
95
|
"@types/react-dom": "^19.2.3",
|
|
96
96
|
"jsdom": "^29.1.1",
|
|
97
97
|
"react": "^19.2.7",
|
|
98
98
|
"react-dom": "^19.2.7",
|
|
99
99
|
"vitest": "^4.1.8",
|
|
100
|
-
"@assistant-ui/vite": "0.0.
|
|
101
|
-
"@assistant-ui/x-buildutils": "0.0.
|
|
100
|
+
"@assistant-ui/vite": "0.0.5",
|
|
101
|
+
"@assistant-ui/x-buildutils": "0.0.14"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public",
|
|
@@ -29,12 +29,16 @@ const createResponse = (
|
|
|
29
29
|
chunks: readonly string[],
|
|
30
30
|
replayContentLength?: number | string,
|
|
31
31
|
) =>
|
|
32
|
-
new Response(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
new Response(
|
|
33
|
+
createBody(chunks),
|
|
34
|
+
replayContentLength === undefined
|
|
35
|
+
? undefined
|
|
36
|
+
: {
|
|
37
|
+
headers: {
|
|
38
|
+
[REPLAY_CONTENT_LENGTH_HEADER]: String(replayContentLength),
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
);
|
|
38
42
|
|
|
39
43
|
const createRenderWait = () => {
|
|
40
44
|
const pending: Array<() => void> = [];
|