@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.
Files changed (155) hide show
  1. package/.docs/organized/code-examples/waterfall.md +12 -13
  2. package/.docs/organized/code-examples/with-a2a.md +16 -11
  3. package/.docs/organized/code-examples/with-ag-ui.md +15 -13
  4. package/.docs/organized/code-examples/with-ai-sdk-v7.md +14 -13
  5. package/.docs/organized/code-examples/with-artifacts.md +14 -13
  6. package/.docs/organized/code-examples/with-assistant-transport.md +20 -28
  7. package/.docs/organized/code-examples/with-browser-extension.md +18 -11
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +17 -15
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +10 -11
  10. package/.docs/organized/code-examples/with-cloud.md +19 -14
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +15 -14
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +14 -14
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +19 -17
  14. package/.docs/organized/code-examples/with-eve.md +66 -12
  15. package/.docs/organized/code-examples/with-expo.md +26 -31
  16. package/.docs/organized/code-examples/with-external-store.md +17 -12
  17. package/.docs/organized/code-examples/with-ffmpeg.md +21 -15
  18. package/.docs/organized/code-examples/with-generative-ui.md +271 -36
  19. package/.docs/organized/code-examples/with-google-adk.md +17 -12
  20. package/.docs/organized/code-examples/with-heat-graph.md +6 -7
  21. package/.docs/organized/code-examples/with-image-generation.md +9 -10
  22. package/.docs/organized/code-examples/with-interactables.md +14 -13
  23. package/.docs/organized/code-examples/with-langchain.md +12 -13
  24. package/.docs/organized/code-examples/with-langgraph.md +19 -13
  25. package/.docs/organized/code-examples/with-livekit.md +13 -13
  26. package/.docs/organized/code-examples/with-mcp.md +14 -15
  27. package/.docs/organized/code-examples/with-nuxt.md +2428 -0
  28. package/.docs/organized/code-examples/with-opencode.md +23 -14
  29. package/.docs/organized/code-examples/with-openui.md +449 -0
  30. package/.docs/organized/code-examples/with-pi.md +59 -57
  31. package/.docs/organized/code-examples/with-react-hook-form.md +16 -15
  32. package/.docs/organized/code-examples/with-react-ink-web.md +7 -8
  33. package/.docs/organized/code-examples/with-react-ink.md +6 -6
  34. package/.docs/organized/code-examples/with-react-router.md +17 -11
  35. package/.docs/organized/code-examples/with-resumable-stream.md +12 -13
  36. package/.docs/organized/code-examples/with-store.md +27 -16
  37. package/.docs/organized/code-examples/with-svelte.md +415 -0
  38. package/.docs/organized/code-examples/with-sveltekit.md +1061 -0
  39. package/.docs/organized/code-examples/with-tanstack.md +19 -13
  40. package/.docs/organized/code-examples/with-tap-runtime.md +15 -15
  41. package/.docs/organized/code-examples/with-virtualized-thread.md +8 -9
  42. package/.docs/organized/code-examples/with-vue.md +408 -0
  43. package/.docs/raw/docs/(docs)/cli.mdx +7 -2
  44. package/.docs/raw/docs/(docs)/index.mdx +9 -76
  45. package/.docs/raw/docs/(docs)/installation.mdx +6 -20
  46. package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +24 -4
  47. package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +5 -1
  48. package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +9 -2
  49. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +2 -2
  50. package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +47 -1
  51. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +29 -4
  52. package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +1 -1
  53. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +52 -1
  54. package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +1 -1
  55. package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +2 -2
  56. package/.docs/raw/docs/cloud/ai-sdk.mdx +4 -4
  57. package/.docs/raw/docs/cloud/index.mdx +1 -1
  58. package/.docs/raw/docs/copilots/model-context.mdx +4 -3
  59. package/.docs/raw/docs/copilots/motivation.mdx +4 -4
  60. package/.docs/raw/docs/guides/attachments.mdx +2 -2
  61. package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
  62. package/.docs/raw/docs/guides/context-api.mdx +15 -17
  63. package/.docs/raw/docs/guides/dictation.mdx +1 -1
  64. package/.docs/raw/docs/guides/electron.mdx +1 -1
  65. package/.docs/raw/docs/guides/mentions.mdx +2 -0
  66. package/.docs/raw/docs/guides/resumable-streams.mdx +74 -3
  67. package/.docs/raw/docs/guides/suggestions.mdx +15 -12
  68. package/.docs/raw/docs/ink/hooks.mdx +9 -4
  69. package/.docs/raw/docs/ink/primitives.mdx +5 -4
  70. package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +16 -0
  71. package/.docs/raw/docs/integrations/auth/better-auth.mdx +1 -1
  72. package/.docs/raw/docs/integrations/auth/clerk.mdx +1 -1
  73. package/.docs/raw/docs/integrations/auth/next-auth.mdx +1 -1
  74. package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +1 -1
  75. package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +2 -2
  76. package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
  77. package/.docs/raw/docs/integrations/gateways/index.mdx +2 -2
  78. package/.docs/raw/docs/integrations/observability/helicone.mdx +2 -2
  79. package/.docs/raw/docs/integrations/observability/langfuse.mdx +1 -1
  80. package/.docs/raw/docs/integrations/observability/langsmith.mdx +2 -2
  81. package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +146 -128
  82. package/.docs/raw/docs/migrations/toolkit-tools.mdx +15 -13
  83. package/.docs/raw/docs/migrations/v0-15.mdx +118 -4
  84. package/.docs/raw/docs/primitives/attachment.mdx +2 -2
  85. package/.docs/raw/docs/primitives/composer.mdx +2 -2
  86. package/.docs/raw/docs/primitives/message.mdx +33 -1
  87. package/.docs/raw/docs/primitives/suggestion.mdx +4 -2
  88. package/.docs/raw/docs/primitives/thread.mdx +1 -1
  89. package/.docs/raw/docs/react-native/hooks.mdx +14 -4
  90. package/.docs/raw/docs/react-native/index.mdx +1 -1
  91. package/.docs/raw/docs/react-native/primitives.mdx +2 -2
  92. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +35 -5
  93. package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +1 -1
  94. package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +1 -1
  95. package/.docs/raw/docs/runtimes/ai-sdk/v6-legacy.mdx +9 -10
  96. package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +9 -10
  97. package/.docs/raw/docs/runtimes/claude-managed-agents.mdx +118 -0
  98. package/.docs/raw/docs/runtimes/concepts/stability.mdx +2 -1
  99. package/.docs/raw/docs/runtimes/concepts/threads.mdx +106 -27
  100. package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +19 -1
  101. package/.docs/raw/docs/runtimes/custom/external-store.mdx +34 -1
  102. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +36 -9
  103. package/.docs/raw/docs/runtimes/eve/overview.mdx +51 -0
  104. package/.docs/raw/docs/runtimes/eve/quickstart.mdx +51 -2
  105. package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +9 -12
  106. package/.docs/raw/docs/runtimes/langchain.mdx +1 -1
  107. package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +5 -1
  108. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +7 -7
  109. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +4 -4
  110. package/.docs/raw/docs/runtimes/opencode/hooks.mdx +1 -0
  111. package/.docs/raw/docs/runtimes/opencode/overview.mdx +10 -0
  112. package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +8 -1
  113. package/.docs/raw/docs/tools/backend.mdx +2 -2
  114. package/.docs/raw/docs/tools/defining-tools.mdx +28 -7
  115. package/.docs/raw/docs/tools/dynamic-tools.mdx +6 -4
  116. package/.docs/raw/docs/tools/generative-ui-primitive.mdx +180 -0
  117. package/.docs/raw/docs/tools/generative-ui-slack.mdx +167 -0
  118. package/.docs/raw/docs/tools/generative-ui-teams.mdx +160 -0
  119. package/.docs/raw/docs/tools/generative-ui.mdx +224 -211
  120. package/.docs/raw/docs/tools/index.mdx +2 -1
  121. package/.docs/raw/docs/tools/interactables.mdx +29 -17
  122. package/.docs/raw/docs/tools/mcp-apps.mdx +35 -6
  123. package/.docs/raw/docs/tools/mcp.mdx +9 -7
  124. package/.docs/raw/docs/tools/openui.mdx +175 -0
  125. package/.docs/raw/docs/tools/tool-ui.mdx +27 -24
  126. package/.docs/raw/docs/tools/user-managed-mcp.mdx +17 -8
  127. package/.docs/raw/docs/ui/attachment.mdx +27 -0
  128. package/.docs/raw/docs/ui/file.mdx +7 -2
  129. package/.docs/raw/docs/ui/image.mdx +1 -1
  130. package/.docs/raw/docs/ui/mcp-config.mdx +8 -3
  131. package/.docs/raw/docs/ui/model-selector.mdx +8 -8
  132. package/.docs/raw/docs/ui/part-grouping.mdx +1 -1
  133. package/.docs/raw/docs/ui/thread.mdx +24 -5
  134. package/.docs/raw/docs/utilities/react-o11y.mdx +7 -9
  135. package/dist/constants.js +2 -2
  136. package/dist/constants.js.map +1 -1
  137. package/dist/index.js.map +1 -1
  138. package/dist/prepare-docs/prepare.js.map +1 -1
  139. package/dist/tools/docs.js +4 -2
  140. package/dist/tools/docs.js.map +1 -1
  141. package/dist/tools/examples.js +2 -1
  142. package/dist/tools/examples.js.map +1 -1
  143. package/dist/tools/resources.js +2 -1
  144. package/dist/tools/resources.js.map +1 -1
  145. package/dist/tools/tests/test-setup.js +2 -1
  146. package/dist/tools/tests/test-setup.js.map +1 -1
  147. package/dist/tools/xulux-templates.js +4 -2
  148. package/dist/tools/xulux-templates.js.map +1 -1
  149. package/dist/utils/mdx.js +2 -1
  150. package/dist/utils/mdx.js.map +1 -1
  151. package/dist/xulux/catalog-client.js +1 -1
  152. package/dist/xulux/catalog-client.js.map +1 -1
  153. package/package.json +4 -4
  154. package/src/tools/tests/docs.test.ts +2 -2
  155. package/.docs/raw/docs/tools/interactables-legacy.mdx +0 -410
@@ -18,7 +18,7 @@ export async function POST(req: Request) {
18
18
  const { messages, system, tools } = await req.json();
19
19
 
20
20
  const result = streamText({
21
- model: openai("gpt-5.4-nano"),
21
+ model: openai("gpt-5.6-luna"),
22
22
  messages: await convertToModelMessages(messages),
23
23
  system,
24
24
  tools: {
@@ -248,6 +248,7 @@ import {
248
248
  useAssistantInstructions,
249
249
  useAui,
250
250
  AuiProvider,
251
+ AuiConfig,
251
252
  Suggestions,
252
253
  } from "@assistant-ui/react";
253
254
 
@@ -292,7 +293,8 @@ export default function Home() {
292
293
  },
293
294
  });
294
295
 
295
- const aui = useAui({
296
+ const aui = useAui();
297
+ const config = AuiConfig({
296
298
  suggestions: Suggestions([
297
299
  {
298
300
  title: "Fill out the form",
@@ -309,7 +311,7 @@ export default function Home() {
309
311
  });
310
312
 
311
313
  return (
312
- <AuiProvider value={aui}>
314
+ <AuiProvider extends={aui} config={config}>
313
315
  <ResizablePanelGroup orientation="horizontal">
314
316
  <ResizablePanel defaultSize={60} minSize={40} style={panelStyle}>
315
317
  <div className="bg-muted/30 h-full overflow-y-auto">
@@ -615,34 +617,33 @@ export default withAui(nextConfig);
615
617
  "start": "next start"
616
618
  },
617
619
  "dependencies": {
618
- "@ai-sdk/openai": "^4.0.20",
620
+ "@ai-sdk/openai": "^4.0.40",
619
621
  "@assistant-ui/react": "workspace:*",
620
622
  "@assistant-ui/react-ai-sdk": "workspace:*",
621
623
  "@assistant-ui/react-hook-form": "workspace:*",
622
624
  "@assistant-ui/react-markdown": "workspace:*",
623
625
  "@assistant-ui/ui": "workspace:*",
624
- "ai": "^7.0.37",
626
+ "ai": "^7.0.62",
625
627
  "class-variance-authority": "^0.7.1",
626
628
  "clsx": "^2.1.1",
627
- "lucide-react": "^1.26.0",
628
- "next": "^16.2.11",
629
+ "lucide-react": "^1.31.0",
630
+ "next": "^16.3.0",
629
631
  "react": "^19.2.8",
630
632
  "react-dom": "^19.2.8",
631
- "react-hook-form": "^7.83.0",
633
+ "react-hook-form": "^7.85.0",
632
634
  "tailwind-merge": "^3.6.0"
633
635
  },
634
636
  "devDependencies": {
635
637
  "@assistant-ui/next": "workspace:*",
636
638
  "@assistant-ui/x-buildutils": "workspace:*",
637
639
  "@tailwindcss/postcss": "^4.3.3",
638
- "@types/node": "^26.1.1",
639
- "@types/react": "^19.2.17",
640
- "@types/react-dom": "^19.2.3",
641
- "postcss": "^8.5.23",
640
+ "@types/node": "^26.2.0",
641
+ "@types/react": "^19.2.18",
642
+ "@types/react-dom": "^19.2.4",
643
+ "postcss": "^8.5.26",
642
644
  "tailwindcss": "^4.3.3",
643
645
  "tw-animate-css": "^1.4.0",
644
- "typescript": "npm:@typescript/typescript6@^6.0.2",
645
- "typescript-7": "npm:typescript@^7.0.2"
646
+ "typescript": "^7.0.2"
646
647
  }
647
648
  }
648
649
 
@@ -689,7 +690,7 @@ npm run dev
689
690
  ## Related Documentation
690
691
 
691
692
  - [assistant-ui Documentation](https://www.assistant-ui.com/docs)
692
- - [React Hook Form Integration](https://www.assistant-ui.com/docs/integrations/react-hook-form)
693
+ - [Form-Filling AI Copilot Example](https://www.assistant-ui.com/examples/form-demo)
693
694
 
694
695
  ```
695
696
 
@@ -554,22 +554,21 @@ export default config;
554
554
  "@assistant-ui/react-ai-sdk": "workspace:*",
555
555
  "@assistant-ui/react-ink": "workspace:*",
556
556
  "@assistant-ui/react-ink-markdown": "workspace:*",
557
- "@wterm/dom": "^0.3.0",
558
- "@wterm/react": "^0.3.0",
559
- "ai": "^7.0.37",
557
+ "@wterm/dom": "^0.3.3",
558
+ "@wterm/react": "^0.3.3",
559
+ "ai": "^7.0.62",
560
560
  "ink": "^7.1.1",
561
561
  "ink-web": "^0.2.0",
562
- "next": "^16.2.11",
562
+ "next": "^16.3.0",
563
563
  "react": "^19.2.8",
564
564
  "react-dom": "^19.2.8",
565
565
  "react-reconciler": "^0.33.0",
566
566
  "scheduler": "^0.27.0"
567
567
  },
568
568
  "devDependencies": {
569
- "@types/node": "^26.1.1",
570
- "@types/react": "^19.2.17",
571
- "typescript": "npm:@typescript/typescript6@^6.0.2",
572
- "typescript-7": "npm:typescript@^7.0.2"
569
+ "@types/node": "^26.2.0",
570
+ "@types/react": "^19.2.18",
571
+ "typescript": "^7.0.2"
573
572
  }
574
573
  }
575
574
 
@@ -20,9 +20,9 @@
20
20
  "react": "^19.2.8"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/react": "^19.2.17",
24
- "esbuild": "^0.28.1",
25
- "tsx": "^4.23.1",
23
+ "@types/react": "^19.2.18",
24
+ "esbuild": "^0.28.2",
25
+ "tsx": "^4.23.12",
26
26
  "typescript": "^7.0.2"
27
27
  }
28
28
  }
@@ -36,10 +36,10 @@ import { useMemo } from "react";
36
36
  import { Box, Text } from "ink";
37
37
  import {
38
38
  AssistantRuntimeProvider,
39
+ AuiConfig,
39
40
  useLocalRuntime,
40
41
  StatusBarPrimitive,
41
42
  Tools,
42
- useAui,
43
43
  } from "@assistant-ui/react-ink";
44
44
  import { Thread } from "./components/thread.js";
45
45
  import { createScriptedAdapter, MODEL_NAME } from "./scripted-adapter.js";
@@ -57,12 +57,12 @@ const StatusBar = () => (
57
57
  export const App = () => {
58
58
  const adapter = useMemo(() => createScriptedAdapter(), []);
59
59
  const runtime = useLocalRuntime(adapter);
60
- const aui = useAui({
60
+ const config = AuiConfig({
61
61
  tools: Tools({ toolkit }),
62
62
  });
63
63
 
64
64
  return (
65
- <AssistantRuntimeProvider aui={aui} runtime={runtime}>
65
+ <AssistantRuntimeProvider runtime={runtime} config={config}>
66
66
  <Box flexDirection="column" padding={1}>
67
67
  <Box>
68
68
  <Text bold color="cyan">
@@ -520,7 +520,7 @@ export async function action({ request }: Route.ActionArgs) {
520
520
 
521
521
  while (continueLoop) {
522
522
  const response = await openai.chat.completions.create({
523
- model: "gpt-5.4-nano",
523
+ model: "gpt-5.6-luna",
524
524
  messages: openaiMessages,
525
525
  tools,
526
526
  stream: true,
@@ -686,7 +686,12 @@ export async function action({ request }: Route.ActionArgs) {
686
686
 
687
687
  ```tsx
688
688
  import { Thread } from "@/components/assistant-ui/thread";
689
- import { useAui, AuiProvider, Suggestions } from "@assistant-ui/react";
689
+ import {
690
+ useAui,
691
+ AuiProvider,
692
+ AuiConfig,
693
+ Suggestions,
694
+ } from "@assistant-ui/react";
690
695
 
691
696
  export function meta() {
692
697
  return [
@@ -696,7 +701,8 @@ export function meta() {
696
701
  }
697
702
 
698
703
  function ThreadWithSuggestions() {
699
- const aui = useAui({
704
+ const aui = useAui();
705
+ const config = AuiConfig({
700
706
  suggestions: Suggestions([
701
707
  {
702
708
  title: "Hello!",
@@ -711,7 +717,7 @@ function ThreadWithSuggestions() {
711
717
  ]),
712
718
  });
713
719
  return (
714
- <AuiProvider value={aui}>
720
+ <AuiProvider extends={aui} config={config}>
715
721
  <Thread />
716
722
  </AuiProvider>
717
723
  );
@@ -777,10 +783,10 @@ export default function Home() {
777
783
  "@react-router/serve": "^8.3.0",
778
784
  "class-variance-authority": "^0.7.1",
779
785
  "clsx": "^2.1.1",
780
- "eventsource-parser": "^3.1.0",
786
+ "eventsource-parser": "^4.0.0",
781
787
  "isbot": "^5.2.1",
782
- "lucide-react": "^1.26.0",
783
- "openai": "^6.49.0",
788
+ "lucide-react": "^1.31.0",
789
+ "openai": "^7.4.0",
784
790
  "react": "^19.2.8",
785
791
  "react-dom": "^19.2.8",
786
792
  "react-router": "^8.3.0",
@@ -790,14 +796,14 @@ export default function Home() {
790
796
  "devDependencies": {
791
797
  "@react-router/dev": "^8.3.0",
792
798
  "@tailwindcss/vite": "^4.3.3",
793
- "@types/node": "^26.1.1",
794
- "@types/react": "^19.2.17",
795
- "@types/react-dom": "^19.2.3",
799
+ "@types/node": "^26.2.0",
800
+ "@types/react": "^19.2.18",
801
+ "@types/react-dom": "^19.2.4",
796
802
  "tailwindcss": "^4.3.3",
797
803
  "tw-animate-css": "^1.4.0",
798
804
  "typescript": "npm:@typescript/typescript6@^6.0.2",
799
805
  "typescript-7": "npm:typescript@^7.0.2",
800
- "vite": "^8.1.5",
806
+ "vite": "^8.2.1",
801
807
  "vite-tsconfig-paths": "^6.1.1"
802
808
  }
803
809
  }
@@ -120,7 +120,7 @@ async function buildOpenAIBody({
120
120
  }),
121
121
  });
122
122
  const result = streamText({
123
- model: openai("gpt-5.4-nano"),
123
+ model: openai("gpt-5.6-luna"),
124
124
  messages: await convertToModelMessages(messages),
125
125
  ...(system ? { system } : {}),
126
126
  stopWhen: stepCountIs(10),
@@ -514,23 +514,23 @@ export default withAui(nextConfig);
514
514
  "start": "next start"
515
515
  },
516
516
  "dependencies": {
517
- "@ai-sdk/openai": "^4.0.20",
518
- "@ai-sdk/react": "^4.0.40",
517
+ "@ai-sdk/openai": "^4.0.40",
518
+ "@ai-sdk/react": "^4.0.65",
519
519
  "@assistant-ui/react": "workspace:*",
520
520
  "@assistant-ui/react-ai-sdk": "workspace:*",
521
521
  "@assistant-ui/react-markdown": "workspace:*",
522
522
  "@assistant-ui/store": "workspace:*",
523
523
  "@assistant-ui/tap": "workspace:*",
524
524
  "@assistant-ui/ui": "workspace:*",
525
- "ai": "^7.0.37",
525
+ "ai": "^7.0.62",
526
526
  "assistant-stream": "workspace:*",
527
527
  "class-variance-authority": "^0.7.1",
528
528
  "clsx": "^2.1.1",
529
- "lucide-react": "^1.26.0",
530
- "next": "^16.2.11",
529
+ "lucide-react": "^1.31.0",
530
+ "next": "^16.3.0",
531
531
  "react": "^19.2.8",
532
532
  "react-dom": "^19.2.8",
533
- "redis": "^6.1.0",
533
+ "redis": "^6.2.1",
534
534
  "tailwind-merge": "^3.6.0",
535
535
  "zod": "^4.4.3"
536
536
  },
@@ -538,14 +538,13 @@ export default withAui(nextConfig);
538
538
  "@assistant-ui/next": "workspace:*",
539
539
  "@assistant-ui/x-buildutils": "workspace:*",
540
540
  "@tailwindcss/postcss": "^4.3.3",
541
- "@types/node": "^26.1.1",
542
- "@types/react": "^19.2.17",
543
- "@types/react-dom": "^19.2.3",
544
- "postcss": "^8.5.23",
541
+ "@types/node": "^26.2.0",
542
+ "@types/react": "^19.2.18",
543
+ "@types/react-dom": "^19.2.4",
544
+ "postcss": "^8.5.26",
545
545
  "tailwindcss": "^4.3.3",
546
546
  "tw-animate-css": "^1.4.0",
547
- "typescript": "npm:@typescript/typescript6@^6.0.2",
548
- "typescript-7": "npm:typescript@^7.0.2"
547
+ "typescript": "^7.0.2"
549
548
  }
550
549
  }
551
550
 
@@ -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
- export const ExampleApp = () => {
260
- const aui = useAui({
261
- fooList: FooListResource({ initialValues: true }),
262
- });
260
+ const config = AuiConfig({
261
+ fooList: FooListResource({ initialValues: true }),
262
+ });
263
263
 
264
+ export const ExampleApp = () => {
264
265
  return (
265
- <AuiProvider value={aui}>
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 <AuiProvider value={aui}>{children}</AuiProvider>;
439
+ return (
440
+ <AuiProvider extends={aui} config={config}>
441
+ {children}
442
+ </AuiProvider>
443
+ );
437
444
  };
438
445
 
439
446
  export const FooList = ({
@@ -494,7 +501,7 @@ export default withAui(nextConfig);
494
501
  "dependencies": {
495
502
  "@assistant-ui/store": "workspace:*",
496
503
  "@assistant-ui/tap": "workspace:*",
497
- "next": "^16.2.11",
504
+ "next": "^16.3.0",
498
505
  "react": "^19.2.8",
499
506
  "react-dom": "^19.2.8"
500
507
  },
@@ -502,14 +509,13 @@ export default withAui(nextConfig);
502
509
  "@assistant-ui/next": "workspace:*",
503
510
  "@assistant-ui/x-buildutils": "workspace:*",
504
511
  "@tailwindcss/postcss": "^4.3.3",
505
- "@types/node": "^26.1.1",
506
- "@types/react": "^19.2.17",
507
- "@types/react-dom": "^19.2.3",
508
- "postcss": "^8.5.23",
512
+ "@types/node": "^26.2.0",
513
+ "@types/react": "^19.2.18",
514
+ "@types/react-dom": "^19.2.4",
515
+ "postcss": "^8.5.26",
509
516
  "tailwindcss": "^4.3.3",
510
517
  "tw-animate-css": "^1.4.0",
511
- "typescript": "npm:@typescript/typescript6@^6.0.2",
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 <AuiProvider value={aui}>{children}</AuiProvider>;
632
+ return (
633
+ <AuiProvider extends={aui} config={config}>
634
+ {children}
635
+ </AuiProvider>
636
+ );
626
637
  };
627
638
  ```
628
639