@assistant-ui/mcp-docs-server 0.2.0 → 0.2.2
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 +12 -13
- package/.docs/organized/code-examples/with-a2a.md +16 -11
- package/.docs/organized/code-examples/with-ag-ui.md +15 -13
- package/.docs/organized/code-examples/with-ai-sdk-v7.md +14 -13
- package/.docs/organized/code-examples/with-artifacts.md +14 -13
- package/.docs/organized/code-examples/with-assistant-transport.md +20 -28
- package/.docs/organized/code-examples/with-browser-extension.md +18 -11
- package/.docs/organized/code-examples/with-chain-of-thought.md +17 -15
- package/.docs/organized/code-examples/with-cloud-standalone.md +10 -11
- package/.docs/organized/code-examples/with-cloud.md +19 -14
- package/.docs/organized/code-examples/with-custom-thread-list.md +15 -14
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +14 -14
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +19 -17
- package/.docs/organized/code-examples/with-eve.md +66 -12
- package/.docs/organized/code-examples/with-expo.md +26 -31
- package/.docs/organized/code-examples/with-external-store.md +17 -12
- package/.docs/organized/code-examples/with-ffmpeg.md +21 -15
- package/.docs/organized/code-examples/with-generative-ui.md +271 -36
- package/.docs/organized/code-examples/with-google-adk.md +17 -12
- package/.docs/organized/code-examples/with-heat-graph.md +6 -7
- package/.docs/organized/code-examples/with-image-generation.md +9 -10
- package/.docs/organized/code-examples/with-interactables.md +14 -13
- package/.docs/organized/code-examples/with-langchain.md +12 -13
- package/.docs/organized/code-examples/with-langgraph.md +19 -13
- package/.docs/organized/code-examples/with-livekit.md +13 -13
- package/.docs/organized/code-examples/with-mcp.md +14 -15
- package/.docs/organized/code-examples/with-nuxt.md +2428 -0
- package/.docs/organized/code-examples/with-opencode.md +23 -14
- package/.docs/organized/code-examples/with-openui.md +449 -0
- package/.docs/organized/code-examples/with-pi.md +59 -57
- package/.docs/organized/code-examples/with-react-hook-form.md +16 -15
- package/.docs/organized/code-examples/with-react-ink-web.md +7 -8
- package/.docs/organized/code-examples/with-react-ink.md +6 -6
- package/.docs/organized/code-examples/with-react-router.md +17 -11
- package/.docs/organized/code-examples/with-resumable-stream.md +12 -13
- package/.docs/organized/code-examples/with-store.md +27 -16
- package/.docs/organized/code-examples/with-svelte.md +415 -0
- package/.docs/organized/code-examples/with-sveltekit.md +1061 -0
- package/.docs/organized/code-examples/with-tanstack.md +19 -13
- package/.docs/organized/code-examples/with-tap-runtime.md +15 -15
- package/.docs/organized/code-examples/with-virtualized-thread.md +8 -9
- package/.docs/organized/code-examples/with-vue.md +408 -0
- package/.docs/raw/docs/(docs)/cli.mdx +7 -2
- package/.docs/raw/docs/(docs)/index.mdx +9 -76
- package/.docs/raw/docs/(docs)/installation.mdx +6 -20
- package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +24 -4
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +5 -1
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +9 -2
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +2 -2
- package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +47 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +29 -4
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +52 -1
- package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +1 -1
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +2 -2
- package/.docs/raw/docs/cloud/ai-sdk.mdx +4 -4
- package/.docs/raw/docs/cloud/index.mdx +1 -1
- package/.docs/raw/docs/copilots/model-context.mdx +4 -3
- package/.docs/raw/docs/copilots/motivation.mdx +4 -4
- package/.docs/raw/docs/guides/attachments.mdx +2 -2
- package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
- package/.docs/raw/docs/guides/context-api.mdx +15 -17
- package/.docs/raw/docs/guides/dictation.mdx +1 -1
- package/.docs/raw/docs/guides/electron.mdx +1 -1
- package/.docs/raw/docs/guides/mentions.mdx +2 -0
- package/.docs/raw/docs/guides/resumable-streams.mdx +74 -3
- package/.docs/raw/docs/guides/suggestions.mdx +15 -12
- package/.docs/raw/docs/ink/hooks.mdx +9 -4
- package/.docs/raw/docs/ink/primitives.mdx +5 -4
- package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +16 -0
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +1 -1
- package/.docs/raw/docs/integrations/auth/clerk.mdx +1 -1
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +1 -1
- 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 +2 -2
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +146 -128
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +15 -13
- package/.docs/raw/docs/migrations/v0-15.mdx +118 -4
- package/.docs/raw/docs/primitives/attachment.mdx +2 -2
- package/.docs/raw/docs/primitives/composer.mdx +2 -2
- package/.docs/raw/docs/primitives/message.mdx +33 -1
- package/.docs/raw/docs/primitives/suggestion.mdx +4 -2
- package/.docs/raw/docs/primitives/thread.mdx +1 -1
- package/.docs/raw/docs/react-native/hooks.mdx +14 -4
- package/.docs/raw/docs/react-native/index.mdx +1 -1
- package/.docs/raw/docs/react-native/primitives.mdx +2 -2
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +35 -5
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +1 -1
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +1 -1
- package/.docs/raw/docs/runtimes/ai-sdk/v6-legacy.mdx +9 -10
- package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +9 -10
- package/.docs/raw/docs/runtimes/claude-managed-agents.mdx +118 -0
- package/.docs/raw/docs/runtimes/concepts/stability.mdx +2 -1
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +106 -27
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +19 -1
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +34 -1
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +36 -9
- 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 +1 -1
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +5 -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 +1 -0
- package/.docs/raw/docs/runtimes/opencode/overview.mdx +10 -0
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +8 -1
- package/.docs/raw/docs/tools/backend.mdx +2 -2
- package/.docs/raw/docs/tools/defining-tools.mdx +28 -7
- package/.docs/raw/docs/tools/dynamic-tools.mdx +6 -4
- package/.docs/raw/docs/tools/generative-ui-primitive.mdx +180 -0
- package/.docs/raw/docs/tools/generative-ui-slack.mdx +167 -0
- package/.docs/raw/docs/tools/generative-ui-teams.mdx +160 -0
- package/.docs/raw/docs/tools/generative-ui.mdx +224 -211
- package/.docs/raw/docs/tools/index.mdx +2 -1
- package/.docs/raw/docs/tools/interactables.mdx +29 -17
- package/.docs/raw/docs/tools/mcp-apps.mdx +35 -6
- package/.docs/raw/docs/tools/mcp.mdx +9 -7
- package/.docs/raw/docs/tools/openui.mdx +175 -0
- package/.docs/raw/docs/tools/tool-ui.mdx +27 -24
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +17 -8
- package/.docs/raw/docs/ui/attachment.mdx +27 -0
- package/.docs/raw/docs/ui/file.mdx +7 -2
- package/.docs/raw/docs/ui/image.mdx +1 -1
- package/.docs/raw/docs/ui/mcp-config.mdx +8 -3
- package/.docs/raw/docs/ui/model-selector.mdx +8 -8
- package/.docs/raw/docs/ui/part-grouping.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.js.map +1 -1
- package/dist/prepare-docs/prepare.js.map +1 -1
- package/dist/tools/docs.js +4 -2
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.js +2 -1
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/resources.js +2 -1
- package/dist/tools/resources.js.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.js +4 -2
- package/dist/tools/xulux-templates.js.map +1 -1
- package/dist/utils/mdx.js +2 -1
- package/dist/utils/mdx.js.map +1 -1
- package/dist/xulux/catalog-client.js +1 -1
- package/dist/xulux/catalog-client.js.map +1 -1
- package/package.json +4 -4
- package/src/tools/tests/docs.test.ts +2 -2
- package/.docs/raw/docs/tools/interactables-legacy.mdx +0 -410
|
@@ -30,7 +30,7 @@ export async function POST(req: Request) {
|
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
const result = streamText({
|
|
33
|
-
model: openai("gpt-5.
|
|
33
|
+
model: openai("gpt-5.6-luna"),
|
|
34
34
|
messages: modelMessages,
|
|
35
35
|
stopWhen: stepCountIs(10),
|
|
36
36
|
...(system ? { system } : {}),
|
|
@@ -206,6 +206,7 @@ import { Thread } from "@/components/assistant-ui/thread";
|
|
|
206
206
|
import {
|
|
207
207
|
AssistantRuntimeProvider,
|
|
208
208
|
AuiProvider,
|
|
209
|
+
AuiConfig,
|
|
209
210
|
unstable_Interactables,
|
|
210
211
|
Suggestions,
|
|
211
212
|
useAui,
|
|
@@ -461,7 +462,8 @@ const persistenceAdapter = {
|
|
|
461
462
|
};
|
|
462
463
|
|
|
463
464
|
function InteractablesExample() {
|
|
464
|
-
const aui = useAui(
|
|
465
|
+
const aui = useAui();
|
|
466
|
+
const config = AuiConfig({
|
|
465
467
|
unstable_interactables: unstable_Interactables({
|
|
466
468
|
persistence: persistenceAdapter,
|
|
467
469
|
}),
|
|
@@ -486,7 +488,7 @@ function InteractablesExample() {
|
|
|
486
488
|
});
|
|
487
489
|
|
|
488
490
|
return (
|
|
489
|
-
<AuiProvider
|
|
491
|
+
<AuiProvider extends={aui} config={config}>
|
|
490
492
|
<main className="flex h-full min-h-0">
|
|
491
493
|
<div className="min-w-0 flex-1">
|
|
492
494
|
<Thread />
|
|
@@ -624,15 +626,15 @@ export default nextConfig;
|
|
|
624
626
|
"start": "next start"
|
|
625
627
|
},
|
|
626
628
|
"dependencies": {
|
|
627
|
-
"@ai-sdk/openai": "^4.0.
|
|
629
|
+
"@ai-sdk/openai": "^4.0.40",
|
|
628
630
|
"@assistant-ui/react": "workspace:*",
|
|
629
631
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
630
632
|
"@assistant-ui/ui": "workspace:*",
|
|
631
|
-
"ai": "^7.0.
|
|
633
|
+
"ai": "^7.0.62",
|
|
632
634
|
"class-variance-authority": "^0.7.1",
|
|
633
635
|
"clsx": "^2.1.1",
|
|
634
|
-
"lucide-react": "^1.
|
|
635
|
-
"next": "^16.
|
|
636
|
+
"lucide-react": "^1.31.0",
|
|
637
|
+
"next": "^16.3.0",
|
|
636
638
|
"react": "^19.2.8",
|
|
637
639
|
"react-dom": "^19.2.8",
|
|
638
640
|
"tailwind-merge": "^3.6.0",
|
|
@@ -641,14 +643,13 @@ export default nextConfig;
|
|
|
641
643
|
"devDependencies": {
|
|
642
644
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
643
645
|
"@tailwindcss/postcss": "^4.3.3",
|
|
644
|
-
"@types/node": "^26.
|
|
645
|
-
"@types/react": "^19.2.
|
|
646
|
-
"@types/react-dom": "^19.2.
|
|
647
|
-
"postcss": "^8.5.
|
|
646
|
+
"@types/node": "^26.2.0",
|
|
647
|
+
"@types/react": "^19.2.18",
|
|
648
|
+
"@types/react-dom": "^19.2.4",
|
|
649
|
+
"postcss": "^8.5.26",
|
|
648
650
|
"tailwindcss": "^4.3.3",
|
|
649
651
|
"tw-animate-css": "^1.4.0",
|
|
650
|
-
"typescript": "
|
|
651
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
652
|
+
"typescript": "^7.0.2"
|
|
652
653
|
}
|
|
653
654
|
}
|
|
654
655
|
|
|
@@ -336,12 +336,12 @@ export default withAui(nextConfig);
|
|
|
336
336
|
"@assistant-ui/react-langchain": "workspace:*",
|
|
337
337
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
338
338
|
"@assistant-ui/ui": "workspace:*",
|
|
339
|
-
"@langchain/langgraph-sdk": "^1.9.
|
|
340
|
-
"@langchain/react": "^1.0.
|
|
339
|
+
"@langchain/langgraph-sdk": "^1.9.29",
|
|
340
|
+
"@langchain/react": "^1.0.30",
|
|
341
341
|
"class-variance-authority": "^0.7.1",
|
|
342
342
|
"clsx": "^2.1.1",
|
|
343
|
-
"lucide-react": "^1.
|
|
344
|
-
"next": "^16.
|
|
343
|
+
"lucide-react": "^1.31.0",
|
|
344
|
+
"next": "^16.3.0",
|
|
345
345
|
"react": "^19.2.8",
|
|
346
346
|
"react-dom": "^19.2.8",
|
|
347
347
|
"tailwind-merge": "^3.6.0"
|
|
@@ -350,14 +350,13 @@ export default withAui(nextConfig);
|
|
|
350
350
|
"@assistant-ui/next": "workspace:*",
|
|
351
351
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
352
352
|
"@tailwindcss/postcss": "^4.3.3",
|
|
353
|
-
"@types/node": "^26.
|
|
354
|
-
"@types/react": "^19.2.
|
|
355
|
-
"@types/react-dom": "^19.2.
|
|
356
|
-
"postcss": "^8.5.
|
|
353
|
+
"@types/node": "^26.2.0",
|
|
354
|
+
"@types/react": "^19.2.18",
|
|
355
|
+
"@types/react-dom": "^19.2.4",
|
|
356
|
+
"postcss": "^8.5.26",
|
|
357
357
|
"tailwindcss": "^4.3.3",
|
|
358
358
|
"tw-animate-css": "^1.4.0",
|
|
359
|
-
"typescript": "
|
|
360
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
359
|
+
"typescript": "^7.0.2"
|
|
361
360
|
}
|
|
362
361
|
}
|
|
363
362
|
|
|
@@ -370,7 +369,7 @@ export default withAui(nextConfig);
|
|
|
370
369
|
|
|
371
370
|
Demonstrates `@assistant-ui/react-langchain`, which wraps `useStream` from `@langchain/react` and exposes it as an assistant-ui runtime.
|
|
372
371
|
|
|
373
|
-
> assistant-ui also ships `@assistant-ui/react-langgraph`, which integrates with `@langchain/langgraph-sdk` directly and currently has a broader feature set. Pick the adapter that matches your upstream choice. See [the comparison](https://www.assistant-ui.com/docs/runtimes/langchain
|
|
372
|
+
> assistant-ui also ships `@assistant-ui/react-langgraph`, which integrates with `@langchain/langgraph-sdk` directly and currently has a broader feature set. Pick the adapter that matches your upstream choice. See [the comparison](https://www.assistant-ui.com/docs/runtimes/langchain#comparison-with-react-langgraph).
|
|
374
373
|
|
|
375
374
|
## Quick Start
|
|
376
375
|
|
|
@@ -387,7 +386,7 @@ NEXT_PUBLIC_LANGGRAPH_API_URL=http://localhost:2024
|
|
|
387
386
|
NEXT_PUBLIC_LANGGRAPH_ASSISTANT_ID=your_graph_id
|
|
388
387
|
```
|
|
389
388
|
|
|
390
|
-
Start a local LangGraph server
|
|
389
|
+
Start a local LangGraph server with [`npx @langchain/langgraph-cli dev`](https://docs.langchain.com/oss/javascript/langgraph/local-server), then inspect it in [LangSmith Studio](https://docs.langchain.com/langsmith/quick-start-studio). For a hosted deployment, use [LangSmith](https://www.langchain.com/langsmith).
|
|
391
390
|
|
|
392
391
|
### Run
|
|
393
392
|
|
|
@@ -412,7 +411,7 @@ Open [http://localhost:3000](http://localhost:3000).
|
|
|
412
411
|
|
|
413
412
|
- [assistant-ui Documentation](https://www.assistant-ui.com/docs)
|
|
414
413
|
- [LangChain useStream Integration](https://www.assistant-ui.com/docs/runtimes/langchain)
|
|
415
|
-
- [react-langgraph vs react-langchain](https://www.assistant-ui.com/docs/runtimes/langchain
|
|
414
|
+
- [react-langgraph vs react-langchain](https://www.assistant-ui.com/docs/runtimes/langchain#comparison-with-react-langgraph)
|
|
416
415
|
|
|
417
416
|
```
|
|
418
417
|
|
|
@@ -284,11 +284,18 @@ export function MyRuntimeProvider({
|
|
|
284
284
|
|
|
285
285
|
import { Thread } from "@/components/assistant-ui/thread";
|
|
286
286
|
import { ThreadList } from "@/components/assistant-ui/thread-list";
|
|
287
|
-
import {
|
|
287
|
+
import {
|
|
288
|
+
useAui,
|
|
289
|
+
AuiProvider,
|
|
290
|
+
AuiConfig,
|
|
291
|
+
Suggestions,
|
|
292
|
+
Tools,
|
|
293
|
+
} from "@assistant-ui/react";
|
|
288
294
|
import toolkit from "./toolkit";
|
|
289
295
|
|
|
290
296
|
function ThreadWithSuggestions() {
|
|
291
|
-
const aui = useAui(
|
|
297
|
+
const aui = useAui();
|
|
298
|
+
const config = AuiConfig({
|
|
292
299
|
tools: Tools({ toolkit }),
|
|
293
300
|
suggestions: Suggestions([
|
|
294
301
|
{
|
|
@@ -304,7 +311,7 @@ function ThreadWithSuggestions() {
|
|
|
304
311
|
]),
|
|
305
312
|
});
|
|
306
313
|
return (
|
|
307
|
-
<AuiProvider
|
|
314
|
+
<AuiProvider extends={aui} config={config}>
|
|
308
315
|
<Thread />
|
|
309
316
|
</AuiProvider>
|
|
310
317
|
);
|
|
@@ -740,12 +747,12 @@ export default withAui(nextConfig);
|
|
|
740
747
|
"@assistant-ui/react-langchain": "workspace:*",
|
|
741
748
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
742
749
|
"@assistant-ui/ui": "workspace:*",
|
|
743
|
-
"@langchain/langgraph-sdk": "^1.9.
|
|
744
|
-
"@langchain/react": "^1.0.
|
|
750
|
+
"@langchain/langgraph-sdk": "^1.9.29",
|
|
751
|
+
"@langchain/react": "^1.0.30",
|
|
745
752
|
"class-variance-authority": "^0.7.1",
|
|
746
753
|
"clsx": "^2.1.1",
|
|
747
|
-
"lucide-react": "^1.
|
|
748
|
-
"next": "^16.
|
|
754
|
+
"lucide-react": "^1.31.0",
|
|
755
|
+
"next": "^16.3.0",
|
|
749
756
|
"react": "^19.2.8",
|
|
750
757
|
"react-dom": "^19.2.8",
|
|
751
758
|
"tailwind-merge": "^3.6.0"
|
|
@@ -754,14 +761,13 @@ export default withAui(nextConfig);
|
|
|
754
761
|
"@assistant-ui/next": "workspace:*",
|
|
755
762
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
756
763
|
"@tailwindcss/postcss": "^4.3.3",
|
|
757
|
-
"@types/node": "^26.
|
|
758
|
-
"@types/react": "^19.2.
|
|
759
|
-
"@types/react-dom": "^19.2.
|
|
760
|
-
"postcss": "^8.5.
|
|
764
|
+
"@types/node": "^26.2.0",
|
|
765
|
+
"@types/react": "^19.2.18",
|
|
766
|
+
"@types/react-dom": "^19.2.4",
|
|
767
|
+
"postcss": "^8.5.26",
|
|
761
768
|
"tailwindcss": "^4.3.3",
|
|
762
769
|
"tw-animate-css": "^1.4.0",
|
|
763
|
-
"typescript": "
|
|
764
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
770
|
+
"typescript": "^7.0.2"
|
|
765
771
|
}
|
|
766
772
|
}
|
|
767
773
|
|
|
@@ -17,7 +17,7 @@ export async function POST(req: Request) {
|
|
|
17
17
|
const { messages }: { messages: UIMessage[] } = await req.json();
|
|
18
18
|
|
|
19
19
|
const result = streamText({
|
|
20
|
-
model: openai("gpt-5.
|
|
20
|
+
model: openai("gpt-5.6-luna"),
|
|
21
21
|
messages: await convertToModelMessages(messages),
|
|
22
22
|
stopWhen: stepCountIs(10),
|
|
23
23
|
});
|
|
@@ -554,22 +554,22 @@ export default withAui(nextConfig);
|
|
|
554
554
|
"version": "0.0.0",
|
|
555
555
|
"type": "module",
|
|
556
556
|
"dependencies": {
|
|
557
|
-
"@ai-sdk/openai": "^4.0.
|
|
558
|
-
"@ai-sdk/react": "^4.0.
|
|
557
|
+
"@ai-sdk/openai": "^4.0.40",
|
|
558
|
+
"@ai-sdk/react": "^4.0.65",
|
|
559
559
|
"@assistant-ui/react": "workspace:^",
|
|
560
560
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
561
561
|
"@assistant-ui/react-markdown": "workspace:^",
|
|
562
562
|
"@assistant-ui/ui": "workspace:*",
|
|
563
563
|
"@tailwindcss/postcss": "^4.3.3",
|
|
564
|
-
"ai": "^7.0.
|
|
564
|
+
"ai": "^7.0.62",
|
|
565
565
|
"class-variance-authority": "^0.7.1",
|
|
566
566
|
"clsx": "^2.1.1",
|
|
567
567
|
"livekit-client": "^2.21.0",
|
|
568
568
|
"livekit-server-sdk": "^2.17.0",
|
|
569
|
-
"lucide-react": "^1.
|
|
570
|
-
"motion": "^
|
|
571
|
-
"next": "^16.
|
|
572
|
-
"postcss": "^8.5.
|
|
569
|
+
"lucide-react": "^1.31.0",
|
|
570
|
+
"motion": "^13.1.0",
|
|
571
|
+
"next": "^16.3.0",
|
|
572
|
+
"postcss": "^8.5.26",
|
|
573
573
|
"react": "^19.2.8",
|
|
574
574
|
"react-dom": "^19.2.8",
|
|
575
575
|
"tailwind-merge": "^3.6.0",
|
|
@@ -579,12 +579,11 @@ export default withAui(nextConfig);
|
|
|
579
579
|
"devDependencies": {
|
|
580
580
|
"@assistant-ui/next": "workspace:*",
|
|
581
581
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
582
|
-
"@types/node": "^26.
|
|
583
|
-
"@types/react": "^19.2.
|
|
584
|
-
"@types/react-dom": "^19.2.
|
|
582
|
+
"@types/node": "^26.2.0",
|
|
583
|
+
"@types/react": "^19.2.18",
|
|
584
|
+
"@types/react-dom": "^19.2.4",
|
|
585
585
|
"tw-animate-css": "^1.4.0",
|
|
586
|
-
"typescript": "
|
|
587
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
586
|
+
"typescript": "^7.0.2"
|
|
588
587
|
},
|
|
589
588
|
"scripts": {
|
|
590
589
|
"dev": "next dev",
|
|
@@ -626,6 +625,7 @@ export default withAui(nextConfig);
|
|
|
626
625
|
],
|
|
627
626
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
628
627
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
628
|
+
"@assistant-ui/store/client": ["../../packages/store/src/client"],
|
|
629
629
|
"@assistant-ui/*": ["../../packages/*/src"],
|
|
630
630
|
"@assistant-ui/core/*": ["../../packages/core/src/*"],
|
|
631
631
|
"@assistant-ui/react/*": ["../../packages/react/src/*"],
|
|
@@ -12,7 +12,7 @@ export const maxDuration = 30;
|
|
|
12
12
|
export async function POST(req: Request) {
|
|
13
13
|
const { messages, system, tools } = await req.json();
|
|
14
14
|
const result = streamText({
|
|
15
|
-
model: openai("gpt-5.
|
|
15
|
+
model: openai("gpt-5.6-luna"),
|
|
16
16
|
messages: await convertToModelMessages(messages),
|
|
17
17
|
system,
|
|
18
18
|
tools: { ...frontendTools(tools) },
|
|
@@ -251,7 +251,7 @@ export default function Home() {
|
|
|
251
251
|
"use client";
|
|
252
252
|
|
|
253
253
|
import type { ReactNode } from "react";
|
|
254
|
-
import { AssistantRuntimeProvider,
|
|
254
|
+
import { AssistantRuntimeProvider, AuiConfig } from "@assistant-ui/react";
|
|
255
255
|
import { useChatRuntime } from "@assistant-ui/react-ai-sdk";
|
|
256
256
|
import { McpManagerResource, defineConnector } from "@assistant-ui/react-mcp";
|
|
257
257
|
|
|
@@ -265,10 +265,10 @@ const connectors = [
|
|
|
265
265
|
];
|
|
266
266
|
|
|
267
267
|
export function Providers({ children }: { children: ReactNode }) {
|
|
268
|
-
const
|
|
268
|
+
const config = AuiConfig({ mcp: McpManagerResource({ connectors }) });
|
|
269
269
|
const runtime = useChatRuntime();
|
|
270
270
|
return (
|
|
271
|
-
<AssistantRuntimeProvider runtime={runtime}
|
|
271
|
+
<AssistantRuntimeProvider runtime={runtime} config={config}>
|
|
272
272
|
{children}
|
|
273
273
|
</AssistantRuntimeProvider>
|
|
274
274
|
);
|
|
@@ -382,7 +382,7 @@ export default nextConfig;
|
|
|
382
382
|
"start:server": "tsx server/server.ts"
|
|
383
383
|
},
|
|
384
384
|
"dependencies": {
|
|
385
|
-
"@ai-sdk/openai": "^4.0.
|
|
385
|
+
"@ai-sdk/openai": "^4.0.40",
|
|
386
386
|
"@assistant-ui/react": "workspace:*",
|
|
387
387
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
388
388
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
@@ -394,14 +394,14 @@ export default nextConfig;
|
|
|
394
394
|
"@modelcontextprotocol/node": "^2.0.0",
|
|
395
395
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
396
396
|
"@modelcontextprotocol/server-legacy": "^2.0.0",
|
|
397
|
-
"ai": "^7.0.
|
|
397
|
+
"ai": "^7.0.62",
|
|
398
398
|
"assistant-stream": "workspace:*",
|
|
399
399
|
"class-variance-authority": "^0.7.1",
|
|
400
400
|
"clsx": "^2.1.1",
|
|
401
401
|
"cors": "^2.8.6",
|
|
402
402
|
"express": "^5.2.1",
|
|
403
|
-
"lucide-react": "^1.
|
|
404
|
-
"next": "^16.
|
|
403
|
+
"lucide-react": "^1.31.0",
|
|
404
|
+
"next": "^16.3.0",
|
|
405
405
|
"react": "^19.2.8",
|
|
406
406
|
"react-dom": "^19.2.8",
|
|
407
407
|
"tailwind-merge": "^3.6.0",
|
|
@@ -412,16 +412,15 @@ export default nextConfig;
|
|
|
412
412
|
"@tailwindcss/postcss": "^4.3.3",
|
|
413
413
|
"@types/cors": "^2.8.19",
|
|
414
414
|
"@types/express": "^5.0.6",
|
|
415
|
-
"@types/node": "^26.
|
|
416
|
-
"@types/react": "^19.2.
|
|
417
|
-
"@types/react-dom": "^19.2.
|
|
415
|
+
"@types/node": "^26.2.0",
|
|
416
|
+
"@types/react": "^19.2.18",
|
|
417
|
+
"@types/react-dom": "^19.2.4",
|
|
418
418
|
"concurrently": "^10.0.4",
|
|
419
|
-
"postcss": "^8.5.
|
|
419
|
+
"postcss": "^8.5.26",
|
|
420
420
|
"tailwindcss": "^4.3.3",
|
|
421
|
-
"tsx": "^4.23.
|
|
421
|
+
"tsx": "^4.23.12",
|
|
422
422
|
"tw-animate-css": "^1.4.0",
|
|
423
|
-
"typescript": "
|
|
424
|
-
"typescript-7": "npm:typescript@^7.0.2"
|
|
423
|
+
"typescript": "^7.0.2"
|
|
425
424
|
}
|
|
426
425
|
}
|
|
427
426
|
|