@assistant-ui/mcp-docs-server 0.1.39 → 0.2.1
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/waterfall.md +17 -18
- package/.docs/organized/code-examples/with-a2a.md +20 -15
- package/.docs/organized/code-examples/with-ag-ui.md +19 -17
- package/.docs/organized/code-examples/with-ai-sdk-v7.md +17 -16
- package/.docs/organized/code-examples/with-artifacts.md +471 -145
- package/.docs/organized/code-examples/with-assistant-transport.md +23 -31
- package/.docs/organized/code-examples/with-browser-extension.md +21 -14
- package/.docs/organized/code-examples/with-chain-of-thought.md +22 -20
- package/.docs/organized/code-examples/with-cloud-standalone.md +13 -14
- package/.docs/organized/code-examples/with-cloud.md +22 -17
- package/.docs/organized/code-examples/with-custom-thread-list.md +17 -16
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +17 -17
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +21 -19
- package/.docs/organized/code-examples/with-eve.md +70 -16
- package/.docs/organized/code-examples/with-expo.md +32 -51
- package/.docs/organized/code-examples/with-external-store.md +20 -15
- package/.docs/organized/code-examples/with-ffmpeg.md +24 -18
- package/.docs/organized/code-examples/with-generative-ui.md +20 -21
- package/.docs/organized/code-examples/with-google-adk.md +21 -16
- package/.docs/organized/code-examples/with-heat-graph.md +10 -11
- package/.docs/organized/code-examples/with-image-generation.md +13 -14
- package/.docs/organized/code-examples/with-interactables.md +17 -16
- package/.docs/organized/code-examples/with-langchain.md +13 -14
- package/.docs/organized/code-examples/with-langgraph.md +23 -17
- package/.docs/organized/code-examples/with-livekit.md +17 -17
- package/.docs/organized/code-examples/with-mcp.md +36 -32
- package/.docs/organized/code-examples/with-nuxt.md +2492 -0
- package/.docs/organized/code-examples/with-opencode.md +27 -21
- package/.docs/organized/code-examples/with-pi.md +69 -67
- package/.docs/organized/code-examples/with-react-hook-form.md +18 -17
- package/.docs/organized/code-examples/with-react-ink-web.md +10 -11
- package/.docs/organized/code-examples/with-react-ink.md +7 -7
- package/.docs/organized/code-examples/with-react-router.md +23 -17
- package/.docs/organized/code-examples/with-resumable-stream.md +15 -16
- package/.docs/organized/code-examples/with-store.md +31 -20
- package/.docs/organized/code-examples/with-tanstack.md +22 -16
- package/.docs/organized/code-examples/with-tap-runtime.md +19 -19
- package/.docs/organized/code-examples/with-virtualized-thread.md +12 -13
- package/.docs/organized/code-examples/with-vue.md +408 -0
- package/.docs/raw/docs/(docs)/cli.mdx +3 -1
- package/.docs/raw/docs/(docs)/devtools.mdx +7 -2
- package/.docs/raw/docs/(docs)/index.mdx +9 -76
- package/.docs/raw/docs/(docs)/installation.mdx +4 -18
- package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +24 -4
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/a2ui.mdx +40 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +3 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +19 -420
- package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +4 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +8 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +21 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -9
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +1 -18
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +24 -1
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +1 -1
- package/.docs/raw/docs/cloud/ai-sdk.mdx +2 -2
- package/.docs/raw/docs/cloud/langgraph.mdx +1 -1
- package/.docs/raw/docs/copilots/model-context.mdx +5 -4
- package/.docs/raw/docs/copilots/motivation.mdx +5 -5
- package/.docs/raw/docs/guides/attachments.mdx +3 -3
- package/.docs/raw/docs/guides/branching.mdx +2 -2
- package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
- package/.docs/raw/docs/guides/context-api.mdx +89 -111
- package/.docs/raw/docs/guides/editing.mdx +5 -5
- package/.docs/raw/docs/guides/electron.mdx +369 -0
- package/.docs/raw/docs/guides/index.mdx +10 -0
- package/.docs/raw/docs/guides/quoting.mdx +3 -3
- package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +2 -2
- package/.docs/raw/docs/guides/resumable-streams.mdx +74 -3
- package/.docs/raw/docs/guides/suggestions.mdx +9 -9
- package/.docs/raw/docs/ink/hooks.mdx +12 -7
- package/.docs/raw/docs/ink/primitives.mdx +18 -10
- package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +16 -0
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +3 -3
- package/.docs/raw/docs/integrations/auth/clerk.mdx +3 -3
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +4 -4
- package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +1 -1
- package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +2 -2
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
- package/.docs/raw/docs/integrations/gateways/index.mdx +2 -2
- package/.docs/raw/docs/integrations/observability/helicone.mdx +2 -2
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +1 -1
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +3 -3
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +36 -9
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +15 -13
- package/.docs/raw/docs/migrations/v0-15.mdx +236 -0
- package/.docs/raw/docs/primitives/attachment.mdx +2 -2
- package/.docs/raw/docs/primitives/composer.mdx +3 -3
- package/.docs/raw/docs/primitives/message.mdx +33 -1
- package/.docs/raw/docs/primitives/suggestion.mdx +1 -1
- package/.docs/raw/docs/primitives/thread-list.mdx +2 -2
- package/.docs/raw/docs/react-native/hooks.mdx +17 -7
- package/.docs/raw/docs/react-native/index.mdx +3 -3
- package/.docs/raw/docs/react-native/primitives.mdx +41 -7
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +3 -3
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +5 -5
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +5 -5
- package/.docs/raw/docs/runtimes/ai-sdk/v6-legacy.mdx +13 -14
- package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +11 -12
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +50 -11
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +20 -2
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +31 -2
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +39 -12
- package/.docs/raw/docs/runtimes/eve/overview.mdx +51 -0
- package/.docs/raw/docs/runtimes/eve/quickstart.mdx +51 -2
- package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +9 -12
- package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
- package/.docs/raw/docs/runtimes/langgraph/overview.mdx +1 -1
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +1 -1
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +7 -7
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +4 -4
- package/.docs/raw/docs/runtimes/opencode/hooks.mdx +4 -1
- package/.docs/raw/docs/runtimes/opencode/overview.mdx +10 -0
- package/.docs/raw/docs/tools/a2ui.mdx +107 -0
- package/.docs/raw/docs/tools/backend.mdx +2 -2
- package/.docs/raw/docs/tools/defining-tools.mdx +9 -7
- package/.docs/raw/docs/tools/dynamic-tools.mdx +6 -4
- package/.docs/raw/docs/tools/interactables-legacy.mdx +28 -15
- package/.docs/raw/docs/tools/interactables.mdx +27 -16
- package/.docs/raw/docs/tools/mcp-apps.mdx +96 -8
- package/.docs/raw/docs/tools/mcp.mdx +9 -7
- package/.docs/raw/docs/tools/tool-ui.mdx +26 -22
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +64 -14
- package/.docs/raw/docs/ui/file.mdx +6 -1
- package/.docs/raw/docs/ui/follow-up-suggestions.mdx +2 -0
- package/.docs/raw/docs/ui/mcp-config.mdx +8 -3
- package/.docs/raw/docs/ui/model-selector.mdx +9 -9
- package/.docs/raw/docs/ui/part-grouping.mdx +1 -5
- package/.docs/raw/docs/ui/reasoning.mdx +1 -1
- package/.docs/raw/docs/ui/thread.mdx +24 -5
- package/.docs/raw/docs/utilities/react-o11y.mdx +7 -9
- package/dist/constants.js +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/prepare-docs/code-examples.js.map +1 -1
- package/dist/prepare-docs/prepare.d.ts +1 -1
- package/dist/prepare-docs/prepare.js.map +1 -1
- package/dist/stdio.d.ts +1 -1
- package/dist/tools/docs.d.ts +6 -10
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/docs.js +6 -4
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.d.ts +4 -8
- package/dist/tools/examples.d.ts.map +1 -1
- package/dist/tools/examples.js +4 -3
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/resources.d.ts +1 -1
- package/dist/tools/resources.d.ts.map +1 -1
- package/dist/tools/resources.js +3 -2
- package/dist/tools/resources.js.map +1 -1
- package/dist/tools/search.d.ts +4 -10
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/search.js +2 -2
- package/dist/tools/search.js.map +1 -1
- package/dist/tools/tests/mcp-test-client.d.ts +15 -0
- package/dist/tools/tests/mcp-test-client.d.ts.map +1 -0
- package/dist/tools/tests/mcp-test-client.js +68 -0
- package/dist/tools/tests/mcp-test-client.js.map +1 -0
- package/dist/tools/tests/test-setup.d.ts.map +1 -1
- package/dist/tools/tests/test-setup.js +2 -1
- package/dist/tools/tests/test-setup.js.map +1 -1
- package/dist/tools/xulux-templates.d.ts +9 -23
- package/dist/tools/xulux-templates.d.ts.map +1 -1
- package/dist/tools/xulux-templates.js +8 -6
- package/dist/tools/xulux-templates.js.map +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/mdx.js +2 -1
- package/dist/utils/mdx.js.map +1 -1
- package/dist/utils/security.js.map +1 -1
- package/dist/xulux/catalog-client.js +1 -1
- package/dist/xulux/catalog-client.js.map +1 -1
- package/package.json +6 -5
- package/src/index.ts +2 -2
- package/src/tools/docs.ts +2 -2
- package/src/tools/examples.ts +2 -2
- package/src/tools/resources.ts +1 -4
- package/src/tools/search.ts +2 -2
- package/src/tools/tests/completions.test.ts +40 -26
- package/src/tools/tests/docs.test.ts +2 -2
- package/src/tools/tests/integration.test.ts +3 -4
- package/src/tools/tests/mcp-protocol.test.ts +160 -175
- package/src/tools/tests/mcp-test-client.ts +111 -0
- package/src/tools/tests/resources.test.ts +97 -66
- package/src/tools/xulux-templates.ts +4 -4
|
@@ -170,10 +170,10 @@ export default function RootLayout({
|
|
|
170
170
|
|
|
171
171
|
import {
|
|
172
172
|
AssistantRuntimeProvider,
|
|
173
|
+
AuiConfig,
|
|
173
174
|
Tools,
|
|
174
175
|
type AssistantTransportConnectionMetadata,
|
|
175
176
|
unstable_createMessageConverter as createMessageConverter,
|
|
176
|
-
useAui,
|
|
177
177
|
useAssistantTransportRuntime,
|
|
178
178
|
} from "@assistant-ui/react";
|
|
179
179
|
import {
|
|
@@ -257,12 +257,12 @@ export function MyRuntimeProvider({ children }: MyRuntimeProviderProps) {
|
|
|
257
257
|
console.log("Request cancelled");
|
|
258
258
|
},
|
|
259
259
|
});
|
|
260
|
-
const
|
|
260
|
+
const config = AuiConfig({
|
|
261
261
|
tools: Tools({ toolkit }),
|
|
262
262
|
});
|
|
263
263
|
|
|
264
264
|
return (
|
|
265
|
-
<AssistantRuntimeProvider
|
|
265
|
+
<AssistantRuntimeProvider config={config} runtime={runtime}>
|
|
266
266
|
{children}
|
|
267
267
|
</AssistantRuntimeProvider>
|
|
268
268
|
);
|
|
@@ -276,11 +276,17 @@ export function MyRuntimeProvider({ children }: MyRuntimeProviderProps) {
|
|
|
276
276
|
"use client";
|
|
277
277
|
|
|
278
278
|
import { Thread } from "@/components/assistant-ui/thread";
|
|
279
|
-
import {
|
|
279
|
+
import {
|
|
280
|
+
useAui,
|
|
281
|
+
AuiProvider,
|
|
282
|
+
AuiConfig,
|
|
283
|
+
Suggestions,
|
|
284
|
+
} from "@assistant-ui/react";
|
|
280
285
|
import { MyRuntimeProvider } from "./MyRuntimeProvider";
|
|
281
286
|
|
|
282
287
|
function ThreadWithSuggestions() {
|
|
283
|
-
const aui = useAui(
|
|
288
|
+
const aui = useAui();
|
|
289
|
+
const config = AuiConfig({
|
|
284
290
|
suggestions: Suggestions([
|
|
285
291
|
{
|
|
286
292
|
title: "What's the weather",
|
|
@@ -295,7 +301,7 @@ function ThreadWithSuggestions() {
|
|
|
295
301
|
]),
|
|
296
302
|
});
|
|
297
303
|
return (
|
|
298
|
-
<AuiProvider
|
|
304
|
+
<AuiProvider extends={aui} config={config}>
|
|
299
305
|
<Thread />
|
|
300
306
|
</AuiProvider>
|
|
301
307
|
);
|
|
@@ -449,43 +455,29 @@ export default withAui(nextConfig);
|
|
|
449
455
|
"@assistant-ui/ui": "workspace:*",
|
|
450
456
|
"class-variance-authority": "^0.7.1",
|
|
451
457
|
"clsx": "^2.1.1",
|
|
452
|
-
"lucide-react": "^1.
|
|
453
|
-
"next": "^16.
|
|
454
|
-
"react": "^19.2.
|
|
455
|
-
"react-dom": "^19.2.
|
|
458
|
+
"lucide-react": "^1.29.0",
|
|
459
|
+
"next": "^16.3.0",
|
|
460
|
+
"react": "^19.2.8",
|
|
461
|
+
"react-dom": "^19.2.8",
|
|
456
462
|
"tailwind-merge": "^3.6.0",
|
|
457
463
|
"zod": "^4.4.3"
|
|
458
464
|
},
|
|
459
465
|
"devDependencies": {
|
|
460
466
|
"@assistant-ui/next": "workspace:*",
|
|
461
467
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
462
|
-
"@tailwindcss/postcss": "^4.3.
|
|
463
|
-
"@types/node": "^26.1.
|
|
464
|
-
"@types/react": "^19.2.
|
|
465
|
-
"@types/react-dom": "^19.2.
|
|
466
|
-
"postcss": "^8.5.
|
|
467
|
-
"tailwindcss": "^4.3.
|
|
468
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
469
|
+
"@types/node": "^26.1.2",
|
|
470
|
+
"@types/react": "^19.2.18",
|
|
471
|
+
"@types/react-dom": "^19.2.4",
|
|
472
|
+
"postcss": "^8.5.26",
|
|
473
|
+
"tailwindcss": "^4.3.3",
|
|
468
474
|
"tw-animate-css": "^1.4.0",
|
|
469
|
-
"typescript": "
|
|
470
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
475
|
+
"typescript": "^7.0.2"
|
|
471
476
|
}
|
|
472
477
|
}
|
|
473
478
|
|
|
474
479
|
```
|
|
475
480
|
|
|
476
|
-
## postcss.config.js
|
|
477
|
-
|
|
478
|
-
```javascript
|
|
479
|
-
const config = {
|
|
480
|
-
plugins: {
|
|
481
|
-
"@tailwindcss/postcss": {},
|
|
482
|
-
},
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
export default config;
|
|
486
|
-
|
|
487
|
-
```
|
|
488
|
-
|
|
489
481
|
## README.md
|
|
490
482
|
|
|
491
483
|
```markdown
|
|
@@ -193,7 +193,12 @@ export function useMockStore() {
|
|
|
193
193
|
|
|
194
194
|
```tsx
|
|
195
195
|
import { Thread } from "@assistant-ui/ui/components/assistant-ui/thread.tsx";
|
|
196
|
-
import {
|
|
196
|
+
import {
|
|
197
|
+
useAui,
|
|
198
|
+
AuiProvider,
|
|
199
|
+
AuiConfig,
|
|
200
|
+
Suggestions,
|
|
201
|
+
} from "@assistant-ui/react";
|
|
197
202
|
|
|
198
203
|
const suggestions = Suggestions([
|
|
199
204
|
{
|
|
@@ -208,10 +213,12 @@ const suggestions = Suggestions([
|
|
|
208
213
|
},
|
|
209
214
|
]);
|
|
210
215
|
|
|
216
|
+
const config = AuiConfig({ suggestions });
|
|
217
|
+
|
|
211
218
|
export function MyThread() {
|
|
212
|
-
const aui = useAui(
|
|
219
|
+
const aui = useAui();
|
|
213
220
|
return (
|
|
214
|
-
<AuiProvider
|
|
221
|
+
<AuiProvider extends={aui} config={config}>
|
|
215
222
|
<Thread />
|
|
216
223
|
</AuiProvider>
|
|
217
224
|
);
|
|
@@ -236,21 +243,21 @@ export function MyThread() {
|
|
|
236
243
|
"@assistant-ui/ui": "workspace:*",
|
|
237
244
|
"class-variance-authority": "^0.7.1",
|
|
238
245
|
"clsx": "^2.1.1",
|
|
239
|
-
"lucide-react": "^1.
|
|
240
|
-
"react": "^19.2.
|
|
241
|
-
"react-dom": "^19.2.
|
|
246
|
+
"lucide-react": "^1.29.0",
|
|
247
|
+
"react": "^19.2.8",
|
|
248
|
+
"react-dom": "^19.2.8",
|
|
242
249
|
"tailwind-merge": "^3.6.0"
|
|
243
250
|
},
|
|
244
251
|
"devDependencies": {
|
|
245
|
-
"@tailwindcss/postcss": "^4.3.
|
|
246
|
-
"@types/chrome": "^0.2.
|
|
247
|
-
"@types/node": "^26.1.
|
|
248
|
-
"@types/react": "^19.2.
|
|
249
|
-
"@types/react-dom": "^19.2.
|
|
252
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
253
|
+
"@types/chrome": "^0.2.5",
|
|
254
|
+
"@types/node": "^26.1.2",
|
|
255
|
+
"@types/react": "^19.2.18",
|
|
256
|
+
"@types/react-dom": "^19.2.4",
|
|
250
257
|
"esbuild": "^0.28.1",
|
|
251
|
-
"postcss": "^8.5.
|
|
252
|
-
"tailwindcss": "^4.3.
|
|
253
|
-
"tsx": "^4.23.
|
|
258
|
+
"postcss": "^8.5.26",
|
|
259
|
+
"tailwindcss": "^4.3.3",
|
|
260
|
+
"tsx": "^4.23.10",
|
|
254
261
|
"tw-animate-css": "^1.4.0",
|
|
255
262
|
"typescript": "^7.0.2"
|
|
256
263
|
}
|
|
@@ -429,7 +429,7 @@ import {
|
|
|
429
429
|
MessagePrimitive,
|
|
430
430
|
SuggestionPrimitive,
|
|
431
431
|
ThreadPrimitive,
|
|
432
|
-
|
|
432
|
+
useAuiState,
|
|
433
433
|
} from "@assistant-ui/react";
|
|
434
434
|
import { ArrowDownIcon, ArrowUpIcon, SquareIcon } from "lucide-react";
|
|
435
435
|
|
|
@@ -588,7 +588,7 @@ const SourcesLayout: FC<PropsWithChildren> = ({ children }) => {
|
|
|
588
588
|
};
|
|
589
589
|
|
|
590
590
|
const Composer: FC = () => {
|
|
591
|
-
const isRunning =
|
|
591
|
+
const isRunning = useAuiState((s) => s.thread.isRunning);
|
|
592
592
|
|
|
593
593
|
return (
|
|
594
594
|
<ComposerPrimitive.Root className="border-input bg-background has-[textarea:focus-visible]:border-foreground/60 flex w-full flex-col rounded-2xl border px-1 pt-2 transition-colors outline-none">
|
|
@@ -637,6 +637,7 @@ const Composer: FC = () => {
|
|
|
637
637
|
|
|
638
638
|
import {
|
|
639
639
|
AssistantRuntimeProvider,
|
|
640
|
+
AuiConfig,
|
|
640
641
|
Tools,
|
|
641
642
|
useAui,
|
|
642
643
|
AuiProvider,
|
|
@@ -648,7 +649,8 @@ import { lastAssistantMessageIsCompleteWithApprovalResponses } from "ai";
|
|
|
648
649
|
import toolkit from "./toolkit";
|
|
649
650
|
|
|
650
651
|
function MyThreadWithSuggestions() {
|
|
651
|
-
const aui = useAui(
|
|
652
|
+
const aui = useAui();
|
|
653
|
+
const config = AuiConfig({
|
|
652
654
|
suggestions: Suggestions([
|
|
653
655
|
{
|
|
654
656
|
title: "Calculate Fibonacci(20)",
|
|
@@ -665,7 +667,7 @@ function MyThreadWithSuggestions() {
|
|
|
665
667
|
]),
|
|
666
668
|
});
|
|
667
669
|
return (
|
|
668
|
-
<AuiProvider
|
|
670
|
+
<AuiProvider extends={aui} config={config}>
|
|
669
671
|
<MyThread />
|
|
670
672
|
</AuiProvider>
|
|
671
673
|
);
|
|
@@ -675,12 +677,12 @@ export default function Home() {
|
|
|
675
677
|
const runtime = useChatRuntime({
|
|
676
678
|
sendAutomaticallyWhen: lastAssistantMessageIsCompleteWithApprovalResponses,
|
|
677
679
|
});
|
|
678
|
-
const
|
|
680
|
+
const config = AuiConfig({
|
|
679
681
|
tools: Tools({ toolkit }),
|
|
680
682
|
});
|
|
681
683
|
|
|
682
684
|
return (
|
|
683
|
-
<AssistantRuntimeProvider
|
|
685
|
+
<AssistantRuntimeProvider config={config} runtime={runtime}>
|
|
684
686
|
<div className="h-full">
|
|
685
687
|
<MyThreadWithSuggestions />
|
|
686
688
|
</div>
|
|
@@ -800,33 +802,32 @@ export default withAui(nextConfig);
|
|
|
800
802
|
"start": "next start"
|
|
801
803
|
},
|
|
802
804
|
"dependencies": {
|
|
803
|
-
"@ai-sdk/openai": "^4.0.
|
|
805
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
804
806
|
"@assistant-ui/react": "workspace:*",
|
|
805
807
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
806
808
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
807
809
|
"@assistant-ui/ui": "workspace:*",
|
|
808
|
-
"ai": "^7.0.
|
|
810
|
+
"ai": "^7.0.56",
|
|
809
811
|
"class-variance-authority": "^0.7.1",
|
|
810
812
|
"clsx": "^2.1.1",
|
|
811
|
-
"lucide-react": "^1.
|
|
812
|
-
"next": "^16.
|
|
813
|
-
"react": "^19.2.
|
|
814
|
-
"react-dom": "^19.2.
|
|
813
|
+
"lucide-react": "^1.29.0",
|
|
814
|
+
"next": "^16.3.0",
|
|
815
|
+
"react": "^19.2.8",
|
|
816
|
+
"react-dom": "^19.2.8",
|
|
815
817
|
"tailwind-merge": "^3.6.0",
|
|
816
818
|
"zod": "^4.4.3"
|
|
817
819
|
},
|
|
818
820
|
"devDependencies": {
|
|
819
821
|
"@assistant-ui/next": "workspace:*",
|
|
820
822
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
821
|
-
"@tailwindcss/postcss": "^4.3.
|
|
822
|
-
"@types/node": "^26.1.
|
|
823
|
-
"@types/react": "^19.2.
|
|
824
|
-
"@types/react-dom": "^19.2.
|
|
825
|
-
"postcss": "^8.5.
|
|
826
|
-
"tailwindcss": "^4.3.
|
|
823
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
824
|
+
"@types/node": "^26.1.2",
|
|
825
|
+
"@types/react": "^19.2.18",
|
|
826
|
+
"@types/react-dom": "^19.2.4",
|
|
827
|
+
"postcss": "^8.5.26",
|
|
828
|
+
"tailwindcss": "^4.3.3",
|
|
827
829
|
"tw-animate-css": "^1.4.0",
|
|
828
|
-
"typescript": "
|
|
829
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
830
|
+
"typescript": "^7.0.2"
|
|
830
831
|
}
|
|
831
832
|
}
|
|
832
833
|
|
|
@@ -943,6 +944,7 @@ Chain-of-thought, tool calls, and citation sources are the parts of an assistant
|
|
|
943
944
|
],
|
|
944
945
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
945
946
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
947
|
+
"@assistant-ui/store/client": ["../../packages/store/src/client"],
|
|
946
948
|
"@assistant-ui/*": ["../../packages/*/src"],
|
|
947
949
|
"@assistant-ui/core/*": ["../../packages/core/src/*"],
|
|
948
950
|
"@assistant-ui/react/*": ["../../packages/react/src/*"],
|
|
@@ -568,29 +568,28 @@ export default withAui(nextConfig);
|
|
|
568
568
|
"start": "next start"
|
|
569
569
|
},
|
|
570
570
|
"dependencies": {
|
|
571
|
-
"@ai-sdk/openai": "^4.0.
|
|
571
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
572
572
|
"@assistant-ui/cloud-ai-sdk": "workspace:*",
|
|
573
|
-
"ai": "^7.0.
|
|
573
|
+
"ai": "^7.0.56",
|
|
574
574
|
"class-variance-authority": "^0.7.1",
|
|
575
575
|
"clsx": "^2.1.1",
|
|
576
|
-
"lucide-react": "^1.
|
|
577
|
-
"next": "^16.
|
|
578
|
-
"react": "^19.2.
|
|
579
|
-
"react-dom": "^19.2.
|
|
576
|
+
"lucide-react": "^1.29.0",
|
|
577
|
+
"next": "^16.3.0",
|
|
578
|
+
"react": "^19.2.8",
|
|
579
|
+
"react-dom": "^19.2.8",
|
|
580
580
|
"tailwind-merge": "^3.6.0"
|
|
581
581
|
},
|
|
582
582
|
"devDependencies": {
|
|
583
583
|
"@assistant-ui/next": "workspace:*",
|
|
584
584
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
585
|
-
"@tailwindcss/postcss": "^4.3.
|
|
586
|
-
"@types/node": "^26.1.
|
|
587
|
-
"@types/react": "^19.2.
|
|
588
|
-
"@types/react-dom": "^19.2.
|
|
589
|
-
"postcss": "^8.5.
|
|
590
|
-
"tailwindcss": "^4.3.
|
|
585
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
586
|
+
"@types/node": "^26.1.2",
|
|
587
|
+
"@types/react": "^19.2.18",
|
|
588
|
+
"@types/react-dom": "^19.2.4",
|
|
589
|
+
"postcss": "^8.5.26",
|
|
590
|
+
"tailwindcss": "^4.3.3",
|
|
591
591
|
"tw-animate-css": "^1.4.0",
|
|
592
|
-
"typescript": "
|
|
593
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
592
|
+
"typescript": "^7.0.2"
|
|
594
593
|
}
|
|
595
594
|
}
|
|
596
595
|
|
|
@@ -235,10 +235,16 @@ export function MyRuntimeProvider({
|
|
|
235
235
|
|
|
236
236
|
import { Thread } from "@/components/assistant-ui/thread";
|
|
237
237
|
import { ThreadList } from "@/components/assistant-ui/thread-list";
|
|
238
|
-
import {
|
|
238
|
+
import {
|
|
239
|
+
useAui,
|
|
240
|
+
AuiProvider,
|
|
241
|
+
AuiConfig,
|
|
242
|
+
Suggestions,
|
|
243
|
+
} from "@assistant-ui/react";
|
|
239
244
|
|
|
240
245
|
function ThreadWithSuggestions() {
|
|
241
|
-
const aui = useAui(
|
|
246
|
+
const aui = useAui();
|
|
247
|
+
const config = AuiConfig({
|
|
242
248
|
suggestions: Suggestions([
|
|
243
249
|
{
|
|
244
250
|
title: "Start a conversation",
|
|
@@ -253,7 +259,7 @@ function ThreadWithSuggestions() {
|
|
|
253
259
|
]),
|
|
254
260
|
});
|
|
255
261
|
return (
|
|
256
|
-
<AuiProvider
|
|
262
|
+
<AuiProvider extends={aui} config={config}>
|
|
257
263
|
<Thread />
|
|
258
264
|
</AuiProvider>
|
|
259
265
|
);
|
|
@@ -326,32 +332,31 @@ export default withAui(nextConfig);
|
|
|
326
332
|
"start": "next start"
|
|
327
333
|
},
|
|
328
334
|
"dependencies": {
|
|
329
|
-
"@ai-sdk/openai": "^4.0.
|
|
335
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
330
336
|
"@assistant-ui/react": "workspace:*",
|
|
331
337
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
332
338
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
333
339
|
"@assistant-ui/ui": "workspace:*",
|
|
334
|
-
"ai": "^7.0.
|
|
340
|
+
"ai": "^7.0.56",
|
|
335
341
|
"class-variance-authority": "^0.7.1",
|
|
336
342
|
"clsx": "^2.1.1",
|
|
337
|
-
"lucide-react": "^1.
|
|
338
|
-
"next": "^16.
|
|
339
|
-
"react": "^19.2.
|
|
340
|
-
"react-dom": "^19.2.
|
|
343
|
+
"lucide-react": "^1.29.0",
|
|
344
|
+
"next": "^16.3.0",
|
|
345
|
+
"react": "^19.2.8",
|
|
346
|
+
"react-dom": "^19.2.8",
|
|
341
347
|
"tailwind-merge": "^3.6.0"
|
|
342
348
|
},
|
|
343
349
|
"devDependencies": {
|
|
344
350
|
"@assistant-ui/next": "workspace:*",
|
|
345
351
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
346
|
-
"@tailwindcss/postcss": "^4.3.
|
|
347
|
-
"@types/node": "^26.1.
|
|
348
|
-
"@types/react": "^19.2.
|
|
349
|
-
"@types/react-dom": "^19.2.
|
|
350
|
-
"postcss": "^8.5.
|
|
351
|
-
"tailwindcss": "^4.3.
|
|
352
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
353
|
+
"@types/node": "^26.1.2",
|
|
354
|
+
"@types/react": "^19.2.18",
|
|
355
|
+
"@types/react-dom": "^19.2.4",
|
|
356
|
+
"postcss": "^8.5.26",
|
|
357
|
+
"tailwindcss": "^4.3.3",
|
|
352
358
|
"tw-animate-css": "^1.4.0",
|
|
353
|
-
"typescript": "
|
|
354
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
359
|
+
"typescript": "^7.0.2"
|
|
355
360
|
}
|
|
356
361
|
}
|
|
357
362
|
|
|
@@ -342,6 +342,7 @@ export function MyRuntimeProvider({
|
|
|
342
342
|
|
|
343
343
|
import { Thread } from "@/components/assistant-ui/thread";
|
|
344
344
|
import {
|
|
345
|
+
AuiConfig,
|
|
345
346
|
AuiProvider,
|
|
346
347
|
Suggestions,
|
|
347
348
|
ThreadListItemPrimitive,
|
|
@@ -372,7 +373,8 @@ function ThreadList() {
|
|
|
372
373
|
}
|
|
373
374
|
|
|
374
375
|
function ThreadWithSuggestions() {
|
|
375
|
-
const aui = useAui(
|
|
376
|
+
const aui = useAui();
|
|
377
|
+
const config = AuiConfig({
|
|
376
378
|
suggestions: Suggestions([
|
|
377
379
|
{
|
|
378
380
|
title: "Start a new topic",
|
|
@@ -387,7 +389,7 @@ function ThreadWithSuggestions() {
|
|
|
387
389
|
]),
|
|
388
390
|
});
|
|
389
391
|
return (
|
|
390
|
-
<AuiProvider
|
|
392
|
+
<AuiProvider extends={aui} config={config}>
|
|
391
393
|
<Thread />
|
|
392
394
|
</AuiProvider>
|
|
393
395
|
);
|
|
@@ -460,34 +462,33 @@ export default withAui(nextConfig);
|
|
|
460
462
|
"start": "next start"
|
|
461
463
|
},
|
|
462
464
|
"dependencies": {
|
|
463
|
-
"@ai-sdk/openai": "^4.0.
|
|
465
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
464
466
|
"@assistant-ui/react": "workspace:*",
|
|
465
467
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
466
468
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
467
469
|
"@assistant-ui/ui": "workspace:*",
|
|
468
|
-
"ai": "^7.0.
|
|
470
|
+
"ai": "^7.0.56",
|
|
469
471
|
"assistant-stream": "workspace:*",
|
|
470
472
|
"class-variance-authority": "^0.7.1",
|
|
471
473
|
"clsx": "^2.1.1",
|
|
472
|
-
"lucide-react": "^1.
|
|
473
|
-
"next": "^16.
|
|
474
|
-
"react": "^19.2.
|
|
475
|
-
"react-dom": "^19.2.
|
|
474
|
+
"lucide-react": "^1.29.0",
|
|
475
|
+
"next": "^16.3.0",
|
|
476
|
+
"react": "^19.2.8",
|
|
477
|
+
"react-dom": "^19.2.8",
|
|
476
478
|
"tailwind-merge": "^3.6.0",
|
|
477
479
|
"zod": "^4.4.3"
|
|
478
480
|
},
|
|
479
481
|
"devDependencies": {
|
|
480
482
|
"@assistant-ui/next": "workspace:*",
|
|
481
483
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
482
|
-
"@tailwindcss/postcss": "^4.3.
|
|
483
|
-
"@types/node": "^26.1.
|
|
484
|
-
"@types/react": "^19.2.
|
|
485
|
-
"@types/react-dom": "^19.2.
|
|
486
|
-
"postcss": "^8.5.
|
|
487
|
-
"tailwindcss": "^4.3.
|
|
484
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
485
|
+
"@types/node": "^26.1.2",
|
|
486
|
+
"@types/react": "^19.2.18",
|
|
487
|
+
"@types/react-dom": "^19.2.4",
|
|
488
|
+
"postcss": "^8.5.26",
|
|
489
|
+
"tailwindcss": "^4.3.3",
|
|
488
490
|
"tw-animate-css": "^1.4.0",
|
|
489
|
-
"typescript": "
|
|
490
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
491
|
+
"typescript": "^7.0.2"
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
494
|
|
|
@@ -439,36 +439,35 @@ export default withAui(nextConfig);
|
|
|
439
439
|
"version": "0.0.0",
|
|
440
440
|
"type": "module",
|
|
441
441
|
"dependencies": {
|
|
442
|
-
"@ai-sdk/openai": "^4.0.
|
|
443
|
-
"@ai-sdk/react": "^4.0.
|
|
442
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
443
|
+
"@ai-sdk/react": "^4.0.59",
|
|
444
444
|
"@assistant-ui/react": "workspace:^",
|
|
445
445
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
446
446
|
"@assistant-ui/react-markdown": "workspace:^",
|
|
447
447
|
"@assistant-ui/ui": "workspace:*",
|
|
448
|
-
"@elevenlabs/client": "^1.
|
|
449
|
-
"@tailwindcss/postcss": "^4.3.
|
|
450
|
-
"ai": "^7.0.
|
|
448
|
+
"@elevenlabs/client": "^1.17.0",
|
|
449
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
450
|
+
"ai": "^7.0.56",
|
|
451
451
|
"class-variance-authority": "^0.7.1",
|
|
452
452
|
"clsx": "^2.1.1",
|
|
453
|
-
"lucide-react": "^1.
|
|
454
|
-
"motion": "^
|
|
455
|
-
"next": "^16.
|
|
456
|
-
"postcss": "^8.5.
|
|
457
|
-
"react": "^19.2.
|
|
458
|
-
"react-dom": "^19.2.
|
|
453
|
+
"lucide-react": "^1.29.0",
|
|
454
|
+
"motion": "^13.0.0",
|
|
455
|
+
"next": "^16.3.0",
|
|
456
|
+
"postcss": "^8.5.26",
|
|
457
|
+
"react": "^19.2.8",
|
|
458
|
+
"react-dom": "^19.2.8",
|
|
459
459
|
"tailwind-merge": "^3.6.0",
|
|
460
|
-
"tailwindcss": "^4.3.
|
|
460
|
+
"tailwindcss": "^4.3.3",
|
|
461
461
|
"zod": "^4.4.3"
|
|
462
462
|
},
|
|
463
463
|
"devDependencies": {
|
|
464
464
|
"@assistant-ui/next": "workspace:*",
|
|
465
465
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
466
|
-
"@types/node": "^26.1.
|
|
467
|
-
"@types/react": "^19.2.
|
|
468
|
-
"@types/react-dom": "^19.2.
|
|
466
|
+
"@types/node": "^26.1.2",
|
|
467
|
+
"@types/react": "^19.2.18",
|
|
468
|
+
"@types/react-dom": "^19.2.4",
|
|
469
469
|
"tw-animate-css": "^1.4.0",
|
|
470
|
-
"typescript": "
|
|
471
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
470
|
+
"typescript": "^7.0.2"
|
|
472
471
|
},
|
|
473
472
|
"scripts": {
|
|
474
473
|
"dev": "next dev",
|
|
@@ -510,6 +509,7 @@ export default withAui(nextConfig);
|
|
|
510
509
|
],
|
|
511
510
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
512
511
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
512
|
+
"@assistant-ui/store/client": ["../../packages/store/src/client"],
|
|
513
513
|
"@assistant-ui/*": ["../../packages/*/src"],
|
|
514
514
|
"@assistant-ui/core/*": ["../../packages/core/src/*"],
|
|
515
515
|
"@assistant-ui/react/*": ["../../packages/react/src/*"],
|
|
@@ -237,13 +237,15 @@ import {
|
|
|
237
237
|
AssistantRuntimeProvider,
|
|
238
238
|
useAui,
|
|
239
239
|
AuiProvider,
|
|
240
|
+
AuiConfig,
|
|
240
241
|
Suggestions,
|
|
241
242
|
} from "@assistant-ui/react";
|
|
242
243
|
import { useChatRuntime } from "@assistant-ui/react-ai-sdk";
|
|
243
244
|
import { ElevenLabsScribeAdapter } from "@/lib/elevenlabs-scribe-adapter";
|
|
244
245
|
|
|
245
246
|
function ThreadWithSuggestions() {
|
|
246
|
-
const aui = useAui(
|
|
247
|
+
const aui = useAui();
|
|
248
|
+
const config = AuiConfig({
|
|
247
249
|
suggestions: Suggestions([
|
|
248
250
|
{
|
|
249
251
|
title: "Try dictating a message",
|
|
@@ -258,7 +260,7 @@ function ThreadWithSuggestions() {
|
|
|
258
260
|
]),
|
|
259
261
|
});
|
|
260
262
|
return (
|
|
261
|
-
<AuiProvider
|
|
263
|
+
<AuiProvider extends={aui} config={config}>
|
|
262
264
|
<Thread />
|
|
263
265
|
</AuiProvider>
|
|
264
266
|
);
|
|
@@ -562,36 +564,35 @@ export default withAui(nextConfig);
|
|
|
562
564
|
"version": "0.0.0",
|
|
563
565
|
"type": "module",
|
|
564
566
|
"dependencies": {
|
|
565
|
-
"@ai-sdk/openai": "^4.0.
|
|
566
|
-
"@ai-sdk/react": "^4.0.
|
|
567
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
568
|
+
"@ai-sdk/react": "^4.0.59",
|
|
567
569
|
"@assistant-ui/react": "workspace:^",
|
|
568
570
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
569
571
|
"@assistant-ui/react-markdown": "workspace:^",
|
|
570
572
|
"@assistant-ui/ui": "workspace:*",
|
|
571
|
-
"@elevenlabs/client": "^1.
|
|
572
|
-
"@tailwindcss/postcss": "^4.3.
|
|
573
|
-
"ai": "^7.0.
|
|
573
|
+
"@elevenlabs/client": "^1.17.0",
|
|
574
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
575
|
+
"ai": "^7.0.56",
|
|
574
576
|
"class-variance-authority": "^0.7.1",
|
|
575
577
|
"clsx": "^2.1.1",
|
|
576
|
-
"lucide-react": "^1.
|
|
577
|
-
"motion": "^
|
|
578
|
-
"next": "^16.
|
|
579
|
-
"postcss": "^8.5.
|
|
580
|
-
"react": "^19.2.
|
|
581
|
-
"react-dom": "^19.2.
|
|
578
|
+
"lucide-react": "^1.29.0",
|
|
579
|
+
"motion": "^13.0.0",
|
|
580
|
+
"next": "^16.3.0",
|
|
581
|
+
"postcss": "^8.5.26",
|
|
582
|
+
"react": "^19.2.8",
|
|
583
|
+
"react-dom": "^19.2.8",
|
|
582
584
|
"tailwind-merge": "^3.6.0",
|
|
583
|
-
"tailwindcss": "^4.3.
|
|
585
|
+
"tailwindcss": "^4.3.3",
|
|
584
586
|
"zod": "^4.4.3"
|
|
585
587
|
},
|
|
586
588
|
"devDependencies": {
|
|
587
589
|
"@assistant-ui/next": "workspace:*",
|
|
588
590
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
589
|
-
"@types/node": "^26.1.
|
|
590
|
-
"@types/react": "^19.2.
|
|
591
|
-
"@types/react-dom": "^19.2.
|
|
591
|
+
"@types/node": "^26.1.2",
|
|
592
|
+
"@types/react": "^19.2.18",
|
|
593
|
+
"@types/react-dom": "^19.2.4",
|
|
592
594
|
"tw-animate-css": "^1.4.0",
|
|
593
|
-
"typescript": "
|
|
594
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
595
|
+
"typescript": "^7.0.2"
|
|
595
596
|
},
|
|
596
597
|
"scripts": {
|
|
597
598
|
"dev": "next dev",
|
|
@@ -678,6 +679,7 @@ npm run dev
|
|
|
678
679
|
],
|
|
679
680
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
680
681
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
682
|
+
"@assistant-ui/store/client": ["../../packages/store/src/client"],
|
|
681
683
|
"@assistant-ui/*": ["../../packages/*/src"],
|
|
682
684
|
"@assistant-ui/core/*": ["../../packages/core/src/*"],
|
|
683
685
|
"@assistant-ui/react/*": ["../../packages/react/src/*"],
|