@assistant-ui/mcp-docs-server 0.1.12 → 0.1.14
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/.docs/organized/code-examples/with-ag-ui.md +1089 -0
- package/.docs/organized/code-examples/with-ai-sdk-v5.md +12 -21
- package/.docs/organized/code-examples/with-assistant-transport.md +10 -19
- package/.docs/organized/code-examples/with-cloud.md +7 -16
- package/.docs/organized/code-examples/with-external-store.md +6 -15
- package/.docs/organized/code-examples/with-ffmpeg.md +14 -21
- package/.docs/organized/code-examples/with-langgraph.md +5 -14
- package/.docs/organized/code-examples/with-parent-id-grouping.md +6 -15
- package/.docs/organized/code-examples/with-react-hook-form.md +10 -19
- package/.docs/raw/docs/api-reference/context-providers/AssistantRuntimeProvider.mdx +6 -1
- package/.docs/raw/docs/api-reference/integrations/vercel-ai-sdk.mdx +179 -70
- package/.docs/raw/docs/cloud/authorization.mdx +2 -2
- package/.docs/raw/docs/copilots/model-context.mdx +4 -5
- package/.docs/raw/docs/copilots/motivation.mdx +4 -4
- package/.docs/raw/docs/getting-started.mdx +8 -4
- package/.docs/raw/docs/guides/Attachments.mdx +2 -2
- package/.docs/raw/docs/guides/Tools.mdx +5 -5
- package/.docs/raw/docs/guides/context-api.mdx +5 -5
- package/.docs/raw/docs/migrations/v0-12.mdx +2 -2
- package/.docs/raw/docs/runtimes/ai-sdk/use-chat.mdx +6 -2
- package/.docs/raw/docs/runtimes/custom/custom-thread-list.mdx +9 -0
- package/.docs/raw/docs/runtimes/custom/local.mdx +77 -4
- package/.docs/raw/docs/runtimes/langgraph/index.mdx +7 -4
- package/.docs/raw/docs/runtimes/langserve.mdx +3 -8
- package/.docs/raw/docs/runtimes/mastra/full-stack-integration.mdx +13 -11
- package/.docs/raw/docs/runtimes/mastra/separate-server-integration.mdx +50 -31
- package/.docs/raw/docs/ui/PartGrouping.mdx +2 -2
- package/.docs/raw/docs/ui/Reasoning.mdx +174 -0
- package/dist/chunk-M2RKUM66.js +3 -3
- package/dist/chunk-NVNFQ5ZO.js +2 -2
- package/package.json +5 -6
|
@@ -1002,13 +1002,6 @@ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
|
1002
1002
|
|
|
1003
1003
|
```
|
|
1004
1004
|
|
|
1005
|
-
## eslint.config.ts
|
|
1006
|
-
|
|
1007
|
-
```typescript
|
|
1008
|
-
export { default } from "@assistant-ui/x-buildutils/eslint";
|
|
1009
|
-
|
|
1010
|
-
```
|
|
1011
|
-
|
|
1012
1005
|
## lib/utils.ts
|
|
1013
1006
|
|
|
1014
1007
|
```typescript
|
|
@@ -1042,34 +1035,32 @@ export default nextConfig;
|
|
|
1042
1035
|
"version": "0.0.0",
|
|
1043
1036
|
"type": "module",
|
|
1044
1037
|
"dependencies": {
|
|
1045
|
-
"@ai-sdk/openai": "^2.0.
|
|
1046
|
-
"@ai-sdk/react": "^2.0.
|
|
1038
|
+
"@ai-sdk/openai": "^2.0.68",
|
|
1039
|
+
"@ai-sdk/react": "^2.0.93",
|
|
1047
1040
|
"@assistant-ui/react": "workspace:^",
|
|
1048
1041
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
1049
1042
|
"@assistant-ui/react-markdown": "workspace:^",
|
|
1050
|
-
"@radix-ui/react-slot": "^1.2.
|
|
1043
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
1051
1044
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
1052
|
-
"@tailwindcss/postcss": "^4.1.
|
|
1053
|
-
"ai": "^5.0.
|
|
1045
|
+
"@tailwindcss/postcss": "^4.1.17",
|
|
1046
|
+
"ai": "^5.0.93",
|
|
1054
1047
|
"class-variance-authority": "^0.7.1",
|
|
1055
1048
|
"clsx": "^2.1.1",
|
|
1056
|
-
"lucide-react": "^0.
|
|
1057
|
-
"next": "16.0.
|
|
1049
|
+
"lucide-react": "^0.554.0",
|
|
1050
|
+
"next": "16.0.3",
|
|
1058
1051
|
"postcss": "^8.5.6",
|
|
1059
1052
|
"react": "19.2.0",
|
|
1060
1053
|
"react-dom": "19.2.0",
|
|
1061
1054
|
"remark-gfm": "^4.0.1",
|
|
1062
|
-
"tailwind-merge": "^3.
|
|
1063
|
-
"tailwindcss": "^4.1.
|
|
1055
|
+
"tailwind-merge": "^3.4.0",
|
|
1056
|
+
"tailwindcss": "^4.1.17",
|
|
1064
1057
|
"zod": "^4.1.12"
|
|
1065
1058
|
},
|
|
1066
1059
|
"devDependencies": {
|
|
1067
1060
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
1068
|
-
"@types/node": "^24.
|
|
1069
|
-
"@types/react": "^19.2.
|
|
1070
|
-
"@types/react-dom": "^19.2.
|
|
1071
|
-
"eslint": "^9",
|
|
1072
|
-
"eslint-config-next": "16.0.0",
|
|
1061
|
+
"@types/node": "^24.10.1",
|
|
1062
|
+
"@types/react": "^19.2.5",
|
|
1063
|
+
"@types/react-dom": "^19.2.3",
|
|
1073
1064
|
"tw-animate-css": "^1.4.0",
|
|
1074
1065
|
"typescript": "^5.9.3"
|
|
1075
1066
|
},
|
|
@@ -1215,13 +1215,6 @@ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
|
1215
1215
|
|
|
1216
1216
|
```
|
|
1217
1217
|
|
|
1218
|
-
## eslint.config.ts
|
|
1219
|
-
|
|
1220
|
-
```typescript
|
|
1221
|
-
export { default } from "@assistant-ui/x-buildutils/eslint";
|
|
1222
|
-
|
|
1223
|
-
```
|
|
1224
|
-
|
|
1225
1218
|
## lib/utils.ts
|
|
1226
1219
|
|
|
1227
1220
|
```typescript
|
|
@@ -1268,31 +1261,29 @@ export default nextConfig;
|
|
|
1268
1261
|
"@assistant-ui/react": "workspace:^",
|
|
1269
1262
|
"@assistant-ui/react-langgraph": "workspace:^",
|
|
1270
1263
|
"@assistant-ui/react-markdown": "workspace:^",
|
|
1271
|
-
"@radix-ui/react-slot": "^1.2.
|
|
1264
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
1272
1265
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
1273
|
-
"@tailwindcss/postcss": "^4.1.
|
|
1274
|
-
"assistant-stream": "^0.2.
|
|
1266
|
+
"@tailwindcss/postcss": "^4.1.17",
|
|
1267
|
+
"assistant-stream": "^0.2.41",
|
|
1275
1268
|
"class-variance-authority": "^0.7.1",
|
|
1276
1269
|
"clsx": "^2.1.1",
|
|
1277
1270
|
"framer-motion": "^12.23.24",
|
|
1278
|
-
"lucide-react": "^0.
|
|
1279
|
-
"next": "16.0.
|
|
1271
|
+
"lucide-react": "^0.554.0",
|
|
1272
|
+
"next": "16.0.3",
|
|
1280
1273
|
"postcss": "^8.5.6",
|
|
1281
1274
|
"react": "19.2.0",
|
|
1282
1275
|
"react-dom": "19.2.0",
|
|
1283
1276
|
"remark-gfm": "^4.0.1",
|
|
1284
|
-
"tailwind-merge": "^3.
|
|
1285
|
-
"tailwindcss": "^4.1.
|
|
1277
|
+
"tailwind-merge": "^3.4.0",
|
|
1278
|
+
"tailwindcss": "^4.1.17",
|
|
1286
1279
|
"tailwindcss-animate": "^1.0.7",
|
|
1287
1280
|
"zod": "^4.1.12"
|
|
1288
1281
|
},
|
|
1289
1282
|
"devDependencies": {
|
|
1290
1283
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
1291
|
-
"@types/node": "^24.
|
|
1292
|
-
"@types/react": "^19.2.
|
|
1293
|
-
"@types/react-dom": "^19.2.
|
|
1294
|
-
"eslint": "^9",
|
|
1295
|
-
"eslint-config-next": "16.0.0",
|
|
1284
|
+
"@types/node": "^24.10.1",
|
|
1285
|
+
"@types/react": "^19.2.5",
|
|
1286
|
+
"@types/react-dom": "^19.2.3",
|
|
1296
1287
|
"tw-animate-css": "^1.4.0",
|
|
1297
1288
|
"typescript": "^5.9.3"
|
|
1298
1289
|
},
|
|
@@ -1044,13 +1044,6 @@ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
|
1044
1044
|
|
|
1045
1045
|
```
|
|
1046
1046
|
|
|
1047
|
-
## eslint.config.ts
|
|
1048
|
-
|
|
1049
|
-
```typescript
|
|
1050
|
-
export { default } from "@assistant-ui/x-buildutils/eslint";
|
|
1051
|
-
|
|
1052
|
-
```
|
|
1053
|
-
|
|
1054
1047
|
## lib/utils.ts
|
|
1055
1048
|
|
|
1056
1049
|
```typescript
|
|
@@ -1090,23 +1083,23 @@ export default nextConfig;
|
|
|
1090
1083
|
"lint": "eslint ."
|
|
1091
1084
|
},
|
|
1092
1085
|
"dependencies": {
|
|
1093
|
-
"@ai-sdk/openai": "^2.0.
|
|
1086
|
+
"@ai-sdk/openai": "^2.0.68",
|
|
1094
1087
|
"@assistant-ui/react": "workspace:*",
|
|
1095
1088
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
1096
1089
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
1097
|
-
"@radix-ui/react-slot": "^1.2.
|
|
1090
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
1098
1091
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
1099
|
-
"ai": "^5.0.
|
|
1092
|
+
"ai": "^5.0.93",
|
|
1100
1093
|
"class-variance-authority": "^0.7.1",
|
|
1101
1094
|
"clsx": "^2.1.1",
|
|
1102
1095
|
"jsonwebtoken": "^9.0.2",
|
|
1103
|
-
"lucide-react": "^0.
|
|
1096
|
+
"lucide-react": "^0.554.0",
|
|
1104
1097
|
"nanoid": "5.1.6",
|
|
1105
|
-
"next": "16.0.
|
|
1098
|
+
"next": "16.0.3",
|
|
1106
1099
|
"react": "19.2.0",
|
|
1107
1100
|
"react-dom": "19.2.0",
|
|
1108
1101
|
"remark-gfm": "^4.0.1",
|
|
1109
|
-
"tailwind-merge": "^3.
|
|
1102
|
+
"tailwind-merge": "^3.4.0",
|
|
1110
1103
|
"tw-animate-css": "^1.4.0"
|
|
1111
1104
|
},
|
|
1112
1105
|
"devDependencies": {
|
|
@@ -1115,10 +1108,8 @@ export default nextConfig;
|
|
|
1115
1108
|
"@types/node": "^24",
|
|
1116
1109
|
"@types/react": "^19",
|
|
1117
1110
|
"@types/react-dom": "^19",
|
|
1118
|
-
"eslint": "^9",
|
|
1119
|
-
"eslint-config-next": "16.0.0",
|
|
1120
1111
|
"postcss": "^8",
|
|
1121
|
-
"tailwindcss": "^4.1.
|
|
1112
|
+
"tailwindcss": "^4.1.17",
|
|
1122
1113
|
"typescript": "^5"
|
|
1123
1114
|
}
|
|
1124
1115
|
}
|
|
@@ -956,13 +956,6 @@ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
|
956
956
|
|
|
957
957
|
```
|
|
958
958
|
|
|
959
|
-
## eslint.config.ts
|
|
960
|
-
|
|
961
|
-
```typescript
|
|
962
|
-
export { default } from "@assistant-ui/x-buildutils/eslint";
|
|
963
|
-
|
|
964
|
-
```
|
|
965
|
-
|
|
966
959
|
## lib/utils.ts
|
|
967
960
|
|
|
968
961
|
```typescript
|
|
@@ -1002,19 +995,19 @@ export default nextConfig;
|
|
|
1002
995
|
"lint": "eslint ."
|
|
1003
996
|
},
|
|
1004
997
|
"dependencies": {
|
|
1005
|
-
"@ai-sdk/openai": "^2.0.
|
|
998
|
+
"@ai-sdk/openai": "^2.0.68",
|
|
1006
999
|
"@assistant-ui/react": "workspace:*",
|
|
1007
1000
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
1008
|
-
"@radix-ui/react-slot": "^1.2.
|
|
1001
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
1009
1002
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
1010
1003
|
"class-variance-authority": "^0.7.1",
|
|
1011
1004
|
"clsx": "^2.1.1",
|
|
1012
|
-
"lucide-react": "^0.
|
|
1013
|
-
"next": "16.0.
|
|
1005
|
+
"lucide-react": "^0.554.0",
|
|
1006
|
+
"next": "16.0.3",
|
|
1014
1007
|
"react": "19.2.0",
|
|
1015
1008
|
"react-dom": "19.2.0",
|
|
1016
1009
|
"remark-gfm": "^4.0.1",
|
|
1017
|
-
"tailwind-merge": "^3.
|
|
1010
|
+
"tailwind-merge": "^3.4.0",
|
|
1018
1011
|
"tw-animate-css": "^1.4.0"
|
|
1019
1012
|
},
|
|
1020
1013
|
"devDependencies": {
|
|
@@ -1022,10 +1015,8 @@ export default nextConfig;
|
|
|
1022
1015
|
"@types/node": "^24",
|
|
1023
1016
|
"@types/react": "^19",
|
|
1024
1017
|
"@types/react-dom": "^19",
|
|
1025
|
-
"eslint": "^9",
|
|
1026
|
-
"eslint-config-next": "16.0.0",
|
|
1027
1018
|
"postcss": "^8",
|
|
1028
|
-
"tailwindcss": "^4.1.
|
|
1019
|
+
"tailwindcss": "^4.1.17",
|
|
1029
1020
|
"typescript": "^5"
|
|
1030
1021
|
}
|
|
1031
1022
|
}
|
|
@@ -268,7 +268,7 @@ export default dynamic(() => Promise.resolve(NoSSRWrapper), {
|
|
|
268
268
|
import {
|
|
269
269
|
useAssistantInstructions,
|
|
270
270
|
useAssistantTool,
|
|
271
|
-
|
|
271
|
+
useAssistantState,
|
|
272
272
|
} from "@assistant-ui/react";
|
|
273
273
|
import { z } from "zod";
|
|
274
274
|
import { FFmpeg } from "@ffmpeg/ffmpeg";
|
|
@@ -417,7 +417,9 @@ const FfmpegTool: FC<{ file: File }> = ({ file }) => {
|
|
|
417
417
|
|
|
418
418
|
export default function Home() {
|
|
419
419
|
const [lastFile, setLastFile] = useState<File | null>(null);
|
|
420
|
-
const attachments =
|
|
420
|
+
const attachments = useAssistantState(
|
|
421
|
+
({ thread }) => thread.composer.attachments,
|
|
422
|
+
);
|
|
421
423
|
useEffect(() => {
|
|
422
424
|
const lastAttachment = attachments[attachments.length - 1];
|
|
423
425
|
if (!lastAttachment) return;
|
|
@@ -1167,13 +1169,6 @@ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
|
1167
1169
|
|
|
1168
1170
|
```
|
|
1169
1171
|
|
|
1170
|
-
## eslint.config.ts
|
|
1171
|
-
|
|
1172
|
-
```typescript
|
|
1173
|
-
export { default } from "@assistant-ui/x-buildutils/eslint";
|
|
1174
|
-
|
|
1175
|
-
```
|
|
1176
|
-
|
|
1177
1172
|
## lib/utils.ts
|
|
1178
1173
|
|
|
1179
1174
|
```typescript
|
|
@@ -1225,7 +1220,7 @@ export default nextConfig;
|
|
|
1225
1220
|
"lint": "eslint ."
|
|
1226
1221
|
},
|
|
1227
1222
|
"dependencies": {
|
|
1228
|
-
"@ai-sdk/openai": "^2.0.
|
|
1223
|
+
"@ai-sdk/openai": "^2.0.68",
|
|
1229
1224
|
"@assistant-ui/react": "workspace:*",
|
|
1230
1225
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
1231
1226
|
"@assistant-ui/react-hook-form": "workspace:*",
|
|
@@ -1233,25 +1228,25 @@ export default nextConfig;
|
|
|
1233
1228
|
"@ffmpeg/ffmpeg": "^0.12.15",
|
|
1234
1229
|
"@ffmpeg/util": "^0.12.2",
|
|
1235
1230
|
"@hookform/resolvers": "^5.2.2",
|
|
1236
|
-
"@radix-ui/react-avatar": "^1.1.
|
|
1231
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
1237
1232
|
"@radix-ui/react-icons": "^1.3.2",
|
|
1238
|
-
"@radix-ui/react-label": "^2.1.
|
|
1239
|
-
"@radix-ui/react-slot": "^1.2.
|
|
1233
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
1234
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
1240
1235
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
1241
1236
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
1242
1237
|
"@react-hook/media-query": "^1.1.1",
|
|
1243
|
-
"ai": "^5.0.
|
|
1238
|
+
"ai": "^5.0.93",
|
|
1244
1239
|
"class-variance-authority": "^0.7.1",
|
|
1245
1240
|
"clsx": "^2.1.1",
|
|
1246
1241
|
"json-schema-to-zod": "^2.6.1",
|
|
1247
|
-
"lucide-react": "^0.
|
|
1248
|
-
"next": "16.0.
|
|
1242
|
+
"lucide-react": "^0.554.0",
|
|
1243
|
+
"next": "16.0.3",
|
|
1249
1244
|
"react": "19.2.0",
|
|
1250
1245
|
"react-dom": "19.2.0",
|
|
1251
|
-
"react-hook-form": "^7.
|
|
1246
|
+
"react-hook-form": "^7.66.1",
|
|
1252
1247
|
"react-resizable-panels": "^3.0.6",
|
|
1253
1248
|
"remark-gfm": "^4.0.1",
|
|
1254
|
-
"tailwind-merge": "^3.
|
|
1249
|
+
"tailwind-merge": "^3.4.0",
|
|
1255
1250
|
"tw-animate-css": "^1.4.0",
|
|
1256
1251
|
"zod": "^4.1.12",
|
|
1257
1252
|
"zustand": "^5.0.8"
|
|
@@ -1261,10 +1256,8 @@ export default nextConfig;
|
|
|
1261
1256
|
"@types/node": "^24",
|
|
1262
1257
|
"@types/react": "^19",
|
|
1263
1258
|
"@types/react-dom": "^19",
|
|
1264
|
-
"eslint": "^9",
|
|
1265
|
-
"eslint-config-next": "16.0.0",
|
|
1266
1259
|
"postcss": "^8",
|
|
1267
|
-
"tailwindcss": "^4.1.
|
|
1260
|
+
"tailwindcss": "^4.1.17",
|
|
1268
1261
|
"typescript": "^5.9.3"
|
|
1269
1262
|
}
|
|
1270
1263
|
}
|
|
@@ -1530,13 +1530,6 @@ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
|
1530
1530
|
|
|
1531
1531
|
```
|
|
1532
1532
|
|
|
1533
|
-
## eslint.config.ts
|
|
1534
|
-
|
|
1535
|
-
```typescript
|
|
1536
|
-
export { default } from "@assistant-ui/x-buildutils/eslint";
|
|
1537
|
-
|
|
1538
|
-
```
|
|
1539
|
-
|
|
1540
1533
|
## lib/chatApi.ts
|
|
1541
1534
|
|
|
1542
1535
|
```typescript
|
|
@@ -1676,19 +1669,19 @@ export default nextConfig;
|
|
|
1676
1669
|
"@assistant-ui/react-langgraph": "workspace:*",
|
|
1677
1670
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
1678
1671
|
"@langchain/langgraph-sdk": "^1.0.0",
|
|
1679
|
-
"@radix-ui/react-slot": "^1.2.
|
|
1672
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
1680
1673
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
1681
1674
|
"class-variance-authority": "^0.7.1",
|
|
1682
1675
|
"clsx": "^2.1.1",
|
|
1683
1676
|
"js-cookie": "^3.0.5",
|
|
1684
1677
|
"jsonwebtoken": "^9.0.2",
|
|
1685
|
-
"lucide-react": "^0.
|
|
1678
|
+
"lucide-react": "^0.554.0",
|
|
1686
1679
|
"nanoid": "5.1.6",
|
|
1687
|
-
"next": "16.0.
|
|
1680
|
+
"next": "16.0.3",
|
|
1688
1681
|
"react": "19.2.0",
|
|
1689
1682
|
"react-dom": "19.2.0",
|
|
1690
1683
|
"remark-gfm": "^4.0.1",
|
|
1691
|
-
"tailwind-merge": "^3.
|
|
1684
|
+
"tailwind-merge": "^3.4.0",
|
|
1692
1685
|
"tw-animate-css": "^1.4.0"
|
|
1693
1686
|
},
|
|
1694
1687
|
"devDependencies": {
|
|
@@ -1698,10 +1691,8 @@ export default nextConfig;
|
|
|
1698
1691
|
"@types/node": "^24",
|
|
1699
1692
|
"@types/react": "^19",
|
|
1700
1693
|
"@types/react-dom": "^19",
|
|
1701
|
-
"eslint": "^9",
|
|
1702
|
-
"eslint-config-next": "16.0.0",
|
|
1703
1694
|
"postcss": "^8",
|
|
1704
|
-
"tailwindcss": "^4.1.
|
|
1695
|
+
"tailwindcss": "^4.1.17",
|
|
1705
1696
|
"typescript": "^5.9.3"
|
|
1706
1697
|
}
|
|
1707
1698
|
}
|
|
@@ -1202,13 +1202,6 @@ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
|
1202
1202
|
|
|
1203
1203
|
```
|
|
1204
1204
|
|
|
1205
|
-
## eslint.config.ts
|
|
1206
|
-
|
|
1207
|
-
```typescript
|
|
1208
|
-
export { default } from "@assistant-ui/x-buildutils/eslint";
|
|
1209
|
-
|
|
1210
|
-
```
|
|
1211
|
-
|
|
1212
1205
|
## lib/utils.ts
|
|
1213
1206
|
|
|
1214
1207
|
```typescript
|
|
@@ -1248,19 +1241,19 @@ export default nextConfig;
|
|
|
1248
1241
|
"lint": "eslint ."
|
|
1249
1242
|
},
|
|
1250
1243
|
"dependencies": {
|
|
1251
|
-
"@ai-sdk/openai": "^2.0.
|
|
1244
|
+
"@ai-sdk/openai": "^2.0.68",
|
|
1252
1245
|
"@assistant-ui/react": "workspace:*",
|
|
1253
1246
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
1254
|
-
"@radix-ui/react-slot": "^1.2.
|
|
1247
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
1255
1248
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
1256
1249
|
"class-variance-authority": "^0.7.1",
|
|
1257
1250
|
"clsx": "^2.1.1",
|
|
1258
|
-
"lucide-react": "^0.
|
|
1259
|
-
"next": "16.0.
|
|
1251
|
+
"lucide-react": "^0.554.0",
|
|
1252
|
+
"next": "16.0.3",
|
|
1260
1253
|
"react": "19.2.0",
|
|
1261
1254
|
"react-dom": "19.2.0",
|
|
1262
1255
|
"remark-gfm": "^4.0.1",
|
|
1263
|
-
"tailwind-merge": "^3.
|
|
1256
|
+
"tailwind-merge": "^3.4.0",
|
|
1264
1257
|
"tw-animate-css": "^1.4.0"
|
|
1265
1258
|
},
|
|
1266
1259
|
"devDependencies": {
|
|
@@ -1268,10 +1261,8 @@ export default nextConfig;
|
|
|
1268
1261
|
"@types/node": "^24",
|
|
1269
1262
|
"@types/react": "^19",
|
|
1270
1263
|
"@types/react-dom": "^19",
|
|
1271
|
-
"eslint": "^9",
|
|
1272
|
-
"eslint-config-next": "16.0.0",
|
|
1273
1264
|
"postcss": "^8",
|
|
1274
|
-
"tailwindcss": "^4.1.
|
|
1265
|
+
"tailwindcss": "^4.1.17",
|
|
1275
1266
|
"typescript": "^5"
|
|
1276
1267
|
}
|
|
1277
1268
|
}
|
|
@@ -1571,13 +1571,6 @@ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
|
1571
1571
|
|
|
1572
1572
|
```
|
|
1573
1573
|
|
|
1574
|
-
## eslint.config.ts
|
|
1575
|
-
|
|
1576
|
-
```typescript
|
|
1577
|
-
export { default } from "@assistant-ui/x-buildutils/eslint";
|
|
1578
|
-
|
|
1579
|
-
```
|
|
1580
|
-
|
|
1581
1574
|
## lib/submitSignup.tsx
|
|
1582
1575
|
|
|
1583
1576
|
```tsx
|
|
@@ -1647,31 +1640,31 @@ export default nextConfig;
|
|
|
1647
1640
|
"lint": "eslint ."
|
|
1648
1641
|
},
|
|
1649
1642
|
"dependencies": {
|
|
1650
|
-
"@ai-sdk/openai": "^2.0.
|
|
1643
|
+
"@ai-sdk/openai": "^2.0.68",
|
|
1651
1644
|
"@assistant-ui/react": "workspace:*",
|
|
1652
1645
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
1653
1646
|
"@assistant-ui/react-hook-form": "workspace:*",
|
|
1654
1647
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
1655
1648
|
"@hookform/resolvers": "^5.2.2",
|
|
1656
|
-
"@radix-ui/react-avatar": "^1.1.
|
|
1649
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
1657
1650
|
"@radix-ui/react-icons": "^1.3.2",
|
|
1658
|
-
"@radix-ui/react-label": "^2.1.
|
|
1659
|
-
"@radix-ui/react-slot": "^1.2.
|
|
1651
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
1652
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
1660
1653
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
1661
1654
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
1662
1655
|
"@react-hook/media-query": "^1.1.1",
|
|
1663
|
-
"ai": "^5.0.
|
|
1656
|
+
"ai": "^5.0.93",
|
|
1664
1657
|
"class-variance-authority": "^0.7.1",
|
|
1665
1658
|
"clsx": "^2.1.1",
|
|
1666
1659
|
"json-schema-to-zod": "^2.6.1",
|
|
1667
|
-
"lucide-react": "^0.
|
|
1668
|
-
"next": "16.0.
|
|
1660
|
+
"lucide-react": "^0.554.0",
|
|
1661
|
+
"next": "16.0.3",
|
|
1669
1662
|
"react": "19.2.0",
|
|
1670
1663
|
"react-dom": "19.2.0",
|
|
1671
|
-
"react-hook-form": "^7.
|
|
1664
|
+
"react-hook-form": "^7.66.1",
|
|
1672
1665
|
"react-resizable-panels": "^3.0.6",
|
|
1673
1666
|
"remark-gfm": "^4.0.1",
|
|
1674
|
-
"tailwind-merge": "^3.
|
|
1667
|
+
"tailwind-merge": "^3.4.0",
|
|
1675
1668
|
"tw-animate-css": "^1.4.0",
|
|
1676
1669
|
"zod": "^4.1.12",
|
|
1677
1670
|
"zustand": "^5.0.8"
|
|
@@ -1681,10 +1674,8 @@ export default nextConfig;
|
|
|
1681
1674
|
"@types/node": "^24",
|
|
1682
1675
|
"@types/react": "^19",
|
|
1683
1676
|
"@types/react-dom": "^19",
|
|
1684
|
-
"eslint": "^9",
|
|
1685
|
-
"eslint-config-next": "16.0.0",
|
|
1686
1677
|
"postcss": "^8",
|
|
1687
|
-
"tailwindcss": "^4.1.
|
|
1678
|
+
"tailwindcss": "^4.1.17",
|
|
1688
1679
|
"typescript": "^5.9.3"
|
|
1689
1680
|
}
|
|
1690
1681
|
}
|
|
@@ -13,9 +13,14 @@ You must either wrap your app in an `AssistantRuntimeProvider` or pass a `runtim
|
|
|
13
13
|
|
|
14
14
|
```tsx {1, 8, 10}
|
|
15
15
|
import { AssistantRuntimeProvider } from "@assistant-ui/react";
|
|
16
|
+
import { useChatRuntime, AssistantChatTransport } from "@assistant-ui/react-ai-sdk";
|
|
16
17
|
|
|
17
18
|
const MyApp = () => {
|
|
18
|
-
const runtime = useChatRuntime({
|
|
19
|
+
const runtime = useChatRuntime({
|
|
20
|
+
transport: new AssistantChatTransport({
|
|
21
|
+
api: "/api/chat",
|
|
22
|
+
}),
|
|
23
|
+
});
|
|
19
24
|
|
|
20
25
|
return (
|
|
21
26
|
<AssistantRuntimeProvider runtime={runtime}>
|