@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
|
@@ -369,18 +369,18 @@ export function WaterfallBar() {
|
|
|
369
369
|
```tsx
|
|
370
370
|
"use client";
|
|
371
371
|
|
|
372
|
-
import {
|
|
372
|
+
import { AuiProvider, AuiConfig } from "@assistant-ui/store";
|
|
373
373
|
import { SpanResource } from "@assistant-ui/react-o11y";
|
|
374
374
|
import { mockSpans } from "./mock-data";
|
|
375
375
|
import { WaterfallTimeline } from "./waterfall-timeline";
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
});
|
|
377
|
+
const config = AuiConfig({
|
|
378
|
+
span: SpanResource({ spans: mockSpans }),
|
|
379
|
+
});
|
|
381
380
|
|
|
381
|
+
export function WaterfallPage() {
|
|
382
382
|
return (
|
|
383
|
-
<AuiProvider
|
|
383
|
+
<AuiProvider config={config}>
|
|
384
384
|
<WaterfallTimeline />
|
|
385
385
|
</AuiProvider>
|
|
386
386
|
);
|
|
@@ -418,7 +418,7 @@ export function WaterfallRow() {
|
|
|
418
418
|
<SpanPrimitive.CollapseToggle className="text-muted-foreground hover:text-foreground flex shrink-0 items-center justify-center rounded p-0.5">
|
|
419
419
|
<svg
|
|
420
420
|
aria-hidden="true"
|
|
421
|
-
className="data-[collapsed=true]
|
|
421
|
+
className="size-3.5 transition-transform group-data-[collapsed=true]:-rotate-90"
|
|
422
422
|
viewBox="0 0 16 16"
|
|
423
423
|
fill="currentColor"
|
|
424
424
|
>
|
|
@@ -772,21 +772,20 @@ export default withAui(nextConfig);
|
|
|
772
772
|
"@assistant-ui/react-o11y": "workspace:*",
|
|
773
773
|
"@assistant-ui/store": "workspace:*",
|
|
774
774
|
"@assistant-ui/tap": "workspace:*",
|
|
775
|
-
"next": "^16.
|
|
776
|
-
"react": "^19.2.
|
|
777
|
-
"react-dom": "^19.2.
|
|
775
|
+
"next": "^16.3.0",
|
|
776
|
+
"react": "^19.2.8",
|
|
777
|
+
"react-dom": "^19.2.8"
|
|
778
778
|
},
|
|
779
779
|
"devDependencies": {
|
|
780
780
|
"@assistant-ui/next": "workspace:*",
|
|
781
781
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
782
|
-
"@tailwindcss/postcss": "^4.3.
|
|
783
|
-
"@types/node": "^26.1.
|
|
784
|
-
"@types/react": "^19.2.
|
|
785
|
-
"@types/react-dom": "^19.2.
|
|
786
|
-
"postcss": "^8.5.
|
|
787
|
-
"tailwindcss": "^4.3.
|
|
788
|
-
"typescript": "
|
|
789
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
782
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
783
|
+
"@types/node": "^26.1.2",
|
|
784
|
+
"@types/react": "^19.2.18",
|
|
785
|
+
"@types/react-dom": "^19.2.4",
|
|
786
|
+
"postcss": "^8.5.26",
|
|
787
|
+
"tailwindcss": "^4.3.3",
|
|
788
|
+
"typescript": "^7.0.2"
|
|
790
789
|
}
|
|
791
790
|
}
|
|
792
791
|
|
|
@@ -191,7 +191,12 @@ export function MyRuntimeProvider({
|
|
|
191
191
|
```tsx
|
|
192
192
|
"use client";
|
|
193
193
|
|
|
194
|
-
import {
|
|
194
|
+
import {
|
|
195
|
+
useAui,
|
|
196
|
+
AuiProvider,
|
|
197
|
+
AuiConfig,
|
|
198
|
+
Suggestions,
|
|
199
|
+
} from "@assistant-ui/react";
|
|
195
200
|
import {
|
|
196
201
|
useA2ATask,
|
|
197
202
|
useA2AArtifacts,
|
|
@@ -440,7 +445,8 @@ function AgentCardBanner() {
|
|
|
440
445
|
}
|
|
441
446
|
|
|
442
447
|
function ThreadWithSuggestions() {
|
|
443
|
-
const aui = useAui(
|
|
448
|
+
const aui = useAui();
|
|
449
|
+
const config = AuiConfig({
|
|
444
450
|
suggestions: Suggestions([
|
|
445
451
|
{
|
|
446
452
|
title: "Chat",
|
|
@@ -470,7 +476,7 @@ function ThreadWithSuggestions() {
|
|
|
470
476
|
]),
|
|
471
477
|
});
|
|
472
478
|
return (
|
|
473
|
-
<AuiProvider
|
|
479
|
+
<AuiProvider extends={aui} config={config}>
|
|
474
480
|
<Thread />
|
|
475
481
|
</AuiProvider>
|
|
476
482
|
);
|
|
@@ -553,24 +559,23 @@ export default withAui(nextConfig);
|
|
|
553
559
|
"@assistant-ui/ui": "workspace:*",
|
|
554
560
|
"class-variance-authority": "^0.7.1",
|
|
555
561
|
"clsx": "^2.1.1",
|
|
556
|
-
"lucide-react": "^1.
|
|
557
|
-
"next": "^16.
|
|
558
|
-
"react": "^19.2.
|
|
559
|
-
"react-dom": "^19.2.
|
|
562
|
+
"lucide-react": "^1.29.0",
|
|
563
|
+
"next": "^16.3.0",
|
|
564
|
+
"react": "^19.2.8",
|
|
565
|
+
"react-dom": "^19.2.8",
|
|
560
566
|
"tailwind-merge": "^3.6.0"
|
|
561
567
|
},
|
|
562
568
|
"devDependencies": {
|
|
563
569
|
"@assistant-ui/next": "workspace:*",
|
|
564
570
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
565
|
-
"@tailwindcss/postcss": "^4.3.
|
|
566
|
-
"@types/node": "^26.1.
|
|
567
|
-
"@types/react": "^19.2.
|
|
568
|
-
"@types/react-dom": "^19.2.
|
|
569
|
-
"postcss": "^8.5.
|
|
570
|
-
"tailwindcss": "^4.3.
|
|
571
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
572
|
+
"@types/node": "^26.1.2",
|
|
573
|
+
"@types/react": "^19.2.18",
|
|
574
|
+
"@types/react-dom": "^19.2.4",
|
|
575
|
+
"postcss": "^8.5.26",
|
|
576
|
+
"tailwindcss": "^4.3.3",
|
|
571
577
|
"tw-animate-css": "^1.4.0",
|
|
572
|
-
"typescript": "
|
|
573
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
578
|
+
"typescript": "^7.0.2"
|
|
574
579
|
}
|
|
575
580
|
}
|
|
576
581
|
|
|
@@ -266,6 +266,7 @@ import {
|
|
|
266
266
|
defineToolkit,
|
|
267
267
|
useAui,
|
|
268
268
|
AuiProvider,
|
|
269
|
+
AuiConfig,
|
|
269
270
|
Suggestions,
|
|
270
271
|
Tools,
|
|
271
272
|
} from "@assistant-ui/react";
|
|
@@ -314,7 +315,7 @@ function NewThreadButton() {
|
|
|
314
315
|
return (
|
|
315
316
|
<button
|
|
316
317
|
type="button"
|
|
317
|
-
onClick={() => aui.threads
|
|
318
|
+
onClick={() => aui.threads.switchToNewThread()}
|
|
318
319
|
className="bg-background hover:bg-accent absolute top-4 right-4 z-10 flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium shadow-sm transition-colors"
|
|
319
320
|
>
|
|
320
321
|
<PlusIcon className="size-4" />
|
|
@@ -324,7 +325,8 @@ function NewThreadButton() {
|
|
|
324
325
|
}
|
|
325
326
|
|
|
326
327
|
function ThreadWithSuggestions() {
|
|
327
|
-
const aui = useAui(
|
|
328
|
+
const aui = useAui();
|
|
329
|
+
const config = AuiConfig({
|
|
328
330
|
suggestions: Suggestions([
|
|
329
331
|
{
|
|
330
332
|
title: "Run a web search",
|
|
@@ -339,19 +341,20 @@ function ThreadWithSuggestions() {
|
|
|
339
341
|
]),
|
|
340
342
|
});
|
|
341
343
|
return (
|
|
342
|
-
<AuiProvider
|
|
344
|
+
<AuiProvider extends={aui} config={config}>
|
|
343
345
|
<Thread />
|
|
344
346
|
</AuiProvider>
|
|
345
347
|
);
|
|
346
348
|
}
|
|
347
349
|
|
|
348
350
|
export default function Home() {
|
|
349
|
-
const aui = useAui(
|
|
351
|
+
const aui = useAui();
|
|
352
|
+
const config = AuiConfig({
|
|
350
353
|
tools: Tools({ toolkit }),
|
|
351
354
|
});
|
|
352
355
|
|
|
353
356
|
return (
|
|
354
|
-
<AuiProvider
|
|
357
|
+
<AuiProvider extends={aui} config={config}>
|
|
355
358
|
<main className="relative h-dvh">
|
|
356
359
|
<NewThreadButton />
|
|
357
360
|
<ThreadWithSuggestions />
|
|
@@ -425,24 +428,23 @@ export default withAui(nextConfig);
|
|
|
425
428
|
"@assistant-ui/ui": "workspace:*",
|
|
426
429
|
"class-variance-authority": "^0.7.1",
|
|
427
430
|
"clsx": "^2.1.1",
|
|
428
|
-
"lucide-react": "^1.
|
|
429
|
-
"next": "^16.
|
|
430
|
-
"react": "^19.2.
|
|
431
|
-
"react-dom": "^19.2.
|
|
431
|
+
"lucide-react": "^1.29.0",
|
|
432
|
+
"next": "^16.3.0",
|
|
433
|
+
"react": "^19.2.8",
|
|
434
|
+
"react-dom": "^19.2.8",
|
|
432
435
|
"tailwind-merge": "^3.6.0"
|
|
433
436
|
},
|
|
434
437
|
"devDependencies": {
|
|
435
438
|
"@assistant-ui/next": "workspace:*",
|
|
436
439
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
437
|
-
"@tailwindcss/postcss": "^4.3.
|
|
438
|
-
"@types/node": "^26.1.
|
|
439
|
-
"@types/react": "^19.2.
|
|
440
|
-
"@types/react-dom": "^19.2.
|
|
441
|
-
"postcss": "^8.5.
|
|
442
|
-
"tailwindcss": "^4.3.
|
|
440
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
441
|
+
"@types/node": "^26.1.2",
|
|
442
|
+
"@types/react": "^19.2.18",
|
|
443
|
+
"@types/react-dom": "^19.2.4",
|
|
444
|
+
"postcss": "^8.5.26",
|
|
445
|
+
"tailwindcss": "^4.3.3",
|
|
443
446
|
"tw-animate-css": "^1.4.0",
|
|
444
|
-
"typescript": "
|
|
445
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
447
|
+
"typescript": "^7.0.2"
|
|
446
448
|
}
|
|
447
449
|
}
|
|
448
450
|
|
|
@@ -223,12 +223,14 @@ import {
|
|
|
223
223
|
AssistantRuntimeProvider,
|
|
224
224
|
useAui,
|
|
225
225
|
AuiProvider,
|
|
226
|
+
AuiConfig,
|
|
226
227
|
Suggestions,
|
|
227
228
|
} from "@assistant-ui/react";
|
|
228
229
|
import { useChatRuntime } from "@assistant-ui/react-ai-sdk";
|
|
229
230
|
|
|
230
231
|
function ThreadWithSuggestions() {
|
|
231
|
-
const aui = useAui(
|
|
232
|
+
const aui = useAui();
|
|
233
|
+
const config = AuiConfig({
|
|
232
234
|
suggestions: Suggestions([
|
|
233
235
|
{
|
|
234
236
|
title: "What's the weather",
|
|
@@ -243,7 +245,7 @@ function ThreadWithSuggestions() {
|
|
|
243
245
|
]),
|
|
244
246
|
});
|
|
245
247
|
return (
|
|
246
|
-
<AuiProvider
|
|
248
|
+
<AuiProvider extends={aui} config={config}>
|
|
247
249
|
<Thread />
|
|
248
250
|
</AuiProvider>
|
|
249
251
|
);
|
|
@@ -320,33 +322,32 @@ export default withAui(nextConfig);
|
|
|
320
322
|
"start": "next start"
|
|
321
323
|
},
|
|
322
324
|
"dependencies": {
|
|
323
|
-
"@ai-sdk/openai": "^4.0.
|
|
325
|
+
"@ai-sdk/openai": "^4.0.34",
|
|
324
326
|
"@assistant-ui/react": "workspace:*",
|
|
325
327
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
326
328
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
327
329
|
"@assistant-ui/ui": "workspace:*",
|
|
328
|
-
"ai": "^7.0.
|
|
330
|
+
"ai": "^7.0.56",
|
|
329
331
|
"class-variance-authority": "^0.7.1",
|
|
330
332
|
"clsx": "^2.1.1",
|
|
331
|
-
"lucide-react": "^1.
|
|
332
|
-
"next": "^16.
|
|
333
|
-
"react": "^19.2.
|
|
334
|
-
"react-dom": "^19.2.
|
|
333
|
+
"lucide-react": "^1.29.0",
|
|
334
|
+
"next": "^16.3.0",
|
|
335
|
+
"react": "^19.2.8",
|
|
336
|
+
"react-dom": "^19.2.8",
|
|
335
337
|
"tailwind-merge": "^3.6.0",
|
|
336
338
|
"zod": "^4.4.3"
|
|
337
339
|
},
|
|
338
340
|
"devDependencies": {
|
|
339
341
|
"@assistant-ui/next": "workspace:*",
|
|
340
342
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
341
|
-
"@tailwindcss/postcss": "^4.3.
|
|
342
|
-
"@types/node": "^26.1.
|
|
343
|
-
"@types/react": "^19.2.
|
|
344
|
-
"@types/react-dom": "^19.2.
|
|
345
|
-
"postcss": "^8.5.
|
|
346
|
-
"tailwindcss": "^4.3.
|
|
343
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
344
|
+
"@types/node": "^26.1.2",
|
|
345
|
+
"@types/react": "^19.2.18",
|
|
346
|
+
"@types/react-dom": "^19.2.4",
|
|
347
|
+
"postcss": "^8.5.26",
|
|
348
|
+
"tailwindcss": "^4.3.3",
|
|
347
349
|
"tw-animate-css": "^1.4.0",
|
|
348
|
-
"typescript": "
|
|
349
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
350
|
+
"typescript": "^7.0.2"
|
|
350
351
|
}
|
|
351
352
|
}
|
|
352
353
|
|