@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
|
@@ -108,6 +108,7 @@ import { useState } from "react";
|
|
|
108
108
|
import {
|
|
109
109
|
useAui,
|
|
110
110
|
AuiProvider,
|
|
111
|
+
AuiConfig,
|
|
111
112
|
useAuiState,
|
|
112
113
|
useAuiEvent,
|
|
113
114
|
} from "@assistant-ui/store";
|
|
@@ -256,13 +257,13 @@ const EventLog = () => {
|
|
|
256
257
|
* Note: The fooList scope is also registered in foo-scope.ts as a default,
|
|
257
258
|
* but we're explicitly passing it here for clarity in the example.
|
|
258
259
|
*/
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
});
|
|
260
|
+
const config = AuiConfig({
|
|
261
|
+
fooList: FooListResource({ initialValues: true }),
|
|
262
|
+
});
|
|
263
263
|
|
|
264
|
+
export const ExampleApp = () => {
|
|
264
265
|
return (
|
|
265
|
-
<AuiProvider
|
|
266
|
+
<AuiProvider config={config}>
|
|
266
267
|
<div className="space-y-6">
|
|
267
268
|
<div className="rounded-lg border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-700 dark:bg-gray-800">
|
|
268
269
|
<div className="flex items-center justify-between">
|
|
@@ -345,6 +346,7 @@ import {
|
|
|
345
346
|
useAui,
|
|
346
347
|
useAuiState,
|
|
347
348
|
AuiProvider,
|
|
349
|
+
AuiConfig,
|
|
348
350
|
useClientList,
|
|
349
351
|
Derived,
|
|
350
352
|
useAssistantEmit,
|
|
@@ -425,7 +427,8 @@ const FooProvider = ({
|
|
|
425
427
|
index: number;
|
|
426
428
|
children: ReactNode;
|
|
427
429
|
}) => {
|
|
428
|
-
const aui = useAui(
|
|
430
|
+
const aui = useAui();
|
|
431
|
+
const config = AuiConfig({
|
|
429
432
|
foo: Derived({
|
|
430
433
|
source: "fooList",
|
|
431
434
|
query: { index },
|
|
@@ -433,7 +436,11 @@ const FooProvider = ({
|
|
|
433
436
|
}),
|
|
434
437
|
});
|
|
435
438
|
|
|
436
|
-
return
|
|
439
|
+
return (
|
|
440
|
+
<AuiProvider extends={aui} config={config}>
|
|
441
|
+
{children}
|
|
442
|
+
</AuiProvider>
|
|
443
|
+
);
|
|
437
444
|
};
|
|
438
445
|
|
|
439
446
|
export const FooList = ({
|
|
@@ -494,22 +501,21 @@ export default withAui(nextConfig);
|
|
|
494
501
|
"dependencies": {
|
|
495
502
|
"@assistant-ui/store": "workspace:*",
|
|
496
503
|
"@assistant-ui/tap": "workspace:*",
|
|
497
|
-
"next": "^16.
|
|
498
|
-
"react": "^19.2.
|
|
499
|
-
"react-dom": "^19.2.
|
|
504
|
+
"next": "^16.3.0",
|
|
505
|
+
"react": "^19.2.8",
|
|
506
|
+
"react-dom": "^19.2.8"
|
|
500
507
|
},
|
|
501
508
|
"devDependencies": {
|
|
502
509
|
"@assistant-ui/next": "workspace:*",
|
|
503
510
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
504
|
-
"@tailwindcss/postcss": "^4.3.
|
|
505
|
-
"@types/node": "^26.1.
|
|
506
|
-
"@types/react": "^19.2.
|
|
507
|
-
"@types/react-dom": "^19.2.
|
|
508
|
-
"postcss": "^8.5.
|
|
509
|
-
"tailwindcss": "^4.3.
|
|
511
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
512
|
+
"@types/node": "^26.1.2",
|
|
513
|
+
"@types/react": "^19.2.18",
|
|
514
|
+
"@types/react-dom": "^19.2.4",
|
|
515
|
+
"postcss": "^8.5.26",
|
|
516
|
+
"tailwindcss": "^4.3.3",
|
|
510
517
|
"tw-animate-css": "^1.4.0",
|
|
511
|
-
"typescript": "
|
|
512
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
518
|
+
"typescript": "^7.0.2"
|
|
513
519
|
}
|
|
514
520
|
}
|
|
515
521
|
|
|
@@ -615,14 +621,19 @@ const FooListResource = resource(
|
|
|
615
621
|
|
|
616
622
|
```typescript
|
|
617
623
|
const FooProvider = ({ index, children }) => {
|
|
618
|
-
const aui = useAui(
|
|
624
|
+
const aui = useAui();
|
|
625
|
+
const config = AuiConfig({
|
|
619
626
|
foo: Derived({
|
|
620
627
|
source: "fooList",
|
|
621
628
|
query: { index },
|
|
622
629
|
get: (aui) => aui.fooList().foo({ index }),
|
|
623
630
|
}),
|
|
624
631
|
});
|
|
625
|
-
return
|
|
632
|
+
return (
|
|
633
|
+
<AuiProvider extends={aui} config={config}>
|
|
634
|
+
{children}
|
|
635
|
+
</AuiProvider>
|
|
636
|
+
);
|
|
626
637
|
};
|
|
627
638
|
```
|
|
628
639
|
|
|
@@ -64,29 +64,29 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@assistant-ui/react": "workspace:*",
|
|
66
66
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
67
|
-
"@tailwindcss/vite": "^4.3.
|
|
68
|
-
"@tanstack/react-router": "^1.170.
|
|
69
|
-
"@tanstack/react-start": "^1.168.
|
|
67
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
68
|
+
"@tanstack/react-router": "^1.170.21",
|
|
69
|
+
"@tanstack/react-start": "^1.168.38",
|
|
70
70
|
"class-variance-authority": "^0.7.1",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
|
-
"lucide-react": "^1.
|
|
72
|
+
"lucide-react": "^1.29.0",
|
|
73
73
|
"nitro": "^3.0.260311-beta",
|
|
74
|
-
"openai": "^
|
|
75
|
-
"react": "^19.2.
|
|
76
|
-
"react-dom": "^19.2.
|
|
74
|
+
"openai": "^7.4.0",
|
|
75
|
+
"react": "^19.2.8",
|
|
76
|
+
"react-dom": "^19.2.8",
|
|
77
77
|
"remark-gfm": "^4.0.1",
|
|
78
78
|
"tailwind-merge": "^3.6.0",
|
|
79
|
-
"tailwindcss": "^4.3.
|
|
79
|
+
"tailwindcss": "^4.3.3",
|
|
80
80
|
"vite-tsconfig-paths": "^6.1.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
84
|
-
"@types/node": "^26.1.
|
|
85
|
-
"@types/react": "^19.2.
|
|
86
|
-
"@types/react-dom": "^19.2.
|
|
87
|
-
"@vitejs/plugin-react": "^6.0.
|
|
84
|
+
"@types/node": "^26.1.2",
|
|
85
|
+
"@types/react": "^19.2.18",
|
|
86
|
+
"@types/react-dom": "^19.2.4",
|
|
87
|
+
"@vitejs/plugin-react": "^6.0.5",
|
|
88
88
|
"typescript": "^7.0.2",
|
|
89
|
-
"vite": "^8.1
|
|
89
|
+
"vite": "^8.2.1"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -321,13 +321,19 @@ function RootDocument({ children }: { children: React.ReactNode }) {
|
|
|
321
321
|
```tsx
|
|
322
322
|
import { createFileRoute } from "@tanstack/react-router";
|
|
323
323
|
import { Thread } from "@/components/assistant-ui/thread";
|
|
324
|
-
import {
|
|
324
|
+
import {
|
|
325
|
+
useAui,
|
|
326
|
+
AuiProvider,
|
|
327
|
+
AuiConfig,
|
|
328
|
+
Suggestions,
|
|
329
|
+
} from "@assistant-ui/react";
|
|
325
330
|
import { MyRuntimeProvider } from "@/components/MyRuntimeProvider";
|
|
326
331
|
|
|
327
332
|
export const Route = createFileRoute("/")({ component: App });
|
|
328
333
|
|
|
329
334
|
function ThreadWithSuggestions() {
|
|
330
|
-
const aui = useAui(
|
|
335
|
+
const aui = useAui();
|
|
336
|
+
const config = AuiConfig({
|
|
331
337
|
suggestions: Suggestions([
|
|
332
338
|
{
|
|
333
339
|
title: "Hello!",
|
|
@@ -342,7 +348,7 @@ function ThreadWithSuggestions() {
|
|
|
342
348
|
]),
|
|
343
349
|
});
|
|
344
350
|
return (
|
|
345
|
-
<AuiProvider
|
|
351
|
+
<AuiProvider extends={aui} config={config}>
|
|
346
352
|
<Thread />
|
|
347
353
|
</AuiProvider>
|
|
348
354
|
);
|
|
@@ -165,8 +165,8 @@ export default function RootLayout({
|
|
|
165
165
|
|
|
166
166
|
import { useState } from "react";
|
|
167
167
|
import {
|
|
168
|
-
useAui,
|
|
169
168
|
AuiProvider,
|
|
169
|
+
AuiConfig,
|
|
170
170
|
useAuiState,
|
|
171
171
|
ExternalThread,
|
|
172
172
|
InMemoryThreadList,
|
|
@@ -214,7 +214,7 @@ const SIMPLE_MESSAGES: SimpleMessage[] = [
|
|
|
214
214
|
id: "4",
|
|
215
215
|
role: "assistant",
|
|
216
216
|
content:
|
|
217
|
-
'Sure! Here\'s how to use the tap-native runtime:\n\n```typescript\nconst messages = [\n { id: "1", role: "user", content: [{ type: "text", text: "Hello!" }] }\n];\n\nconst
|
|
217
|
+
'Sure! Here\'s how to use the tap-native runtime:\n\n```typescript\nconst messages = [\n { id: "1", role: "user", content: [{ type: "text", text: "Hello!" }] }\n];\n\nconst config = AuiConfig({\n threads: InMemoryThreadList({\n thread: (threadId) => ExternalThread({ messages, isRunning: false })\n })\n});\n\n<AuiProvider config={config}>{children}</AuiProvider>\n```\n\nTry using the thread list on the left to create and switch between threads!',
|
|
218
218
|
status: { type: "complete", reason: "stop" },
|
|
219
219
|
},
|
|
220
220
|
];
|
|
@@ -255,7 +255,7 @@ export function MyRuntimeProvider({ children }: { children: React.ReactNode }) {
|
|
|
255
255
|
isRunning,
|
|
256
256
|
}) as ExternalThreadMessage[];
|
|
257
257
|
|
|
258
|
-
const
|
|
258
|
+
const config = AuiConfig({
|
|
259
259
|
threads: InMemoryThreadList({
|
|
260
260
|
thread: (threadId) =>
|
|
261
261
|
ExternalThread({
|
|
@@ -353,7 +353,7 @@ export function MyRuntimeProvider({ children }: { children: React.ReactNode }) {
|
|
|
353
353
|
});
|
|
354
354
|
|
|
355
355
|
return (
|
|
356
|
-
<AuiProvider
|
|
356
|
+
<AuiProvider config={config}>
|
|
357
357
|
<div className="flex h-full">
|
|
358
358
|
{/* Thread List Sidebar */}
|
|
359
359
|
<ThreadListSidebar />
|
|
@@ -600,24 +600,23 @@ export default withAui(nextConfig);
|
|
|
600
600
|
"@assistant-ui/ui": "workspace:*",
|
|
601
601
|
"class-variance-authority": "^0.7.1",
|
|
602
602
|
"clsx": "^2.1.1",
|
|
603
|
-
"lucide-react": "^1.
|
|
604
|
-
"next": "^16.
|
|
605
|
-
"react": "^19.2.
|
|
606
|
-
"react-dom": "^19.2.
|
|
603
|
+
"lucide-react": "^1.29.0",
|
|
604
|
+
"next": "^16.3.0",
|
|
605
|
+
"react": "^19.2.8",
|
|
606
|
+
"react-dom": "^19.2.8",
|
|
607
607
|
"tailwind-merge": "^3.6.0"
|
|
608
608
|
},
|
|
609
609
|
"devDependencies": {
|
|
610
610
|
"@assistant-ui/next": "workspace:*",
|
|
611
611
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
612
|
-
"@tailwindcss/postcss": "^4.3.
|
|
613
|
-
"@types/node": "^26.1.
|
|
614
|
-
"@types/react": "^19.2.
|
|
615
|
-
"@types/react-dom": "^19.2.
|
|
616
|
-
"postcss": "^8.5.
|
|
617
|
-
"tailwindcss": "^4.3.
|
|
612
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
613
|
+
"@types/node": "^26.1.2",
|
|
614
|
+
"@types/react": "^19.2.18",
|
|
615
|
+
"@types/react-dom": "^19.2.4",
|
|
616
|
+
"postcss": "^8.5.26",
|
|
617
|
+
"tailwindcss": "^4.3.3",
|
|
618
618
|
"tw-animate-css": "^1.4.0",
|
|
619
|
-
"typescript": "
|
|
620
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
619
|
+
"typescript": "^7.0.2"
|
|
621
620
|
}
|
|
622
621
|
}
|
|
623
622
|
|
|
@@ -672,10 +671,10 @@ const messages: ExternalThreadMessage[] = [
|
|
|
672
671
|
];
|
|
673
672
|
```
|
|
674
673
|
|
|
675
|
-
### 2. Create
|
|
674
|
+
### 2. Create Config
|
|
676
675
|
|
|
677
676
|
```typescript
|
|
678
|
-
const
|
|
677
|
+
const config = AuiConfig({
|
|
679
678
|
threads: InMemoryThreadList({
|
|
680
679
|
thread: () => ExternalThread({ messages, isRunning: false }),
|
|
681
680
|
}),
|
|
@@ -685,7 +684,7 @@ const aui = useAui({
|
|
|
685
684
|
### 3. Provide to App
|
|
686
685
|
|
|
687
686
|
```typescript
|
|
688
|
-
<AuiProvider
|
|
687
|
+
<AuiProvider config={config}>
|
|
689
688
|
<Thread.Root>
|
|
690
689
|
<Thread.Messages />
|
|
691
690
|
</Thread.Root>
|
|
@@ -795,6 +794,7 @@ You can extend this example to:
|
|
|
795
794
|
],
|
|
796
795
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
797
796
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
797
|
+
"@assistant-ui/store/client": ["../../packages/store/src/client"],
|
|
798
798
|
"@assistant-ui/*": ["../../packages/*/src"],
|
|
799
799
|
"@assistant-ui/core/*": ["../../packages/core/src/*"],
|
|
800
800
|
"@assistant-ui/react/*": ["../../packages/react/src/*"],
|
|
@@ -597,27 +597,26 @@ export default withAui(nextConfig);
|
|
|
597
597
|
"@assistant-ui/react": "workspace:*",
|
|
598
598
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
599
599
|
"@assistant-ui/ui": "workspace:*",
|
|
600
|
-
"@tanstack/react-virtual": "^3.14.
|
|
600
|
+
"@tanstack/react-virtual": "^3.14.9",
|
|
601
601
|
"class-variance-authority": "^0.7.1",
|
|
602
602
|
"clsx": "^2.1.1",
|
|
603
|
-
"lucide-react": "^1.
|
|
604
|
-
"next": "^16.
|
|
605
|
-
"react": "^19.2.
|
|
606
|
-
"react-dom": "^19.2.
|
|
603
|
+
"lucide-react": "^1.29.0",
|
|
604
|
+
"next": "^16.3.0",
|
|
605
|
+
"react": "^19.2.8",
|
|
606
|
+
"react-dom": "^19.2.8",
|
|
607
607
|
"tailwind-merge": "^3.6.0"
|
|
608
608
|
},
|
|
609
609
|
"devDependencies": {
|
|
610
610
|
"@assistant-ui/next": "workspace:*",
|
|
611
611
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
612
|
-
"@tailwindcss/postcss": "^4.3.
|
|
613
|
-
"@types/node": "^26.1.
|
|
614
|
-
"@types/react": "^19.2.
|
|
615
|
-
"@types/react-dom": "^19.2.
|
|
616
|
-
"postcss": "^8.5.
|
|
617
|
-
"tailwindcss": "^4.3.
|
|
612
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
613
|
+
"@types/node": "^26.1.2",
|
|
614
|
+
"@types/react": "^19.2.18",
|
|
615
|
+
"@types/react-dom": "^19.2.4",
|
|
616
|
+
"postcss": "^8.5.26",
|
|
617
|
+
"tailwindcss": "^4.3.3",
|
|
618
618
|
"tw-animate-css": "^1.4.0",
|
|
619
|
-
"typescript": "
|
|
620
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
619
|
+
"typescript": "^7.0.2"
|
|
621
620
|
}
|
|
622
621
|
}
|
|
623
622
|
|