@assistant-ui/mcp-docs-server 0.1.38 → 0.2.0

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 (258) hide show
  1. package/.docs/organized/code-examples/waterfall.md +11 -12
  2. package/.docs/organized/code-examples/with-a2a.md +18 -13
  3. package/.docs/organized/code-examples/with-ag-ui.md +19 -14
  4. package/.docs/organized/code-examples/{with-ai-sdk-v6.md → with-ai-sdk-v7.md} +34 -23
  5. package/.docs/organized/code-examples/with-artifacts.md +473 -141
  6. package/.docs/organized/code-examples/with-assistant-transport.md +17 -10
  7. package/.docs/organized/code-examples/with-browser-extension.md +17 -10
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +21 -14
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +12 -11
  10. package/.docs/organized/code-examples/with-cloud.md +20 -15
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +19 -12
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +22 -15
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +22 -15
  14. package/.docs/organized/code-examples/with-eve.md +18 -11
  15. package/.docs/organized/code-examples/with-expo.md +35 -52
  16. package/.docs/organized/code-examples/with-external-store.md +18 -13
  17. package/.docs/organized/code-examples/with-ffmpeg.md +20 -15
  18. package/.docs/organized/code-examples/with-generative-ui.md +22 -17
  19. package/.docs/organized/code-examples/with-google-adk.md +18 -11
  20. package/.docs/organized/code-examples/with-heat-graph.md +10 -11
  21. package/.docs/organized/code-examples/with-image-generation.md +19 -12
  22. package/.docs/organized/code-examples/with-interactables.md +21 -17
  23. package/.docs/organized/code-examples/with-langchain.md +19 -12
  24. package/.docs/organized/code-examples/with-langgraph.md +19 -12
  25. package/.docs/organized/code-examples/with-livekit.md +23 -16
  26. package/.docs/organized/code-examples/with-mcp.md +46 -28
  27. package/.docs/organized/code-examples/with-opencode.md +25 -23
  28. package/.docs/organized/code-examples/with-pi.md +54 -19
  29. package/.docs/organized/code-examples/with-react-hook-form.md +21 -16
  30. package/.docs/organized/code-examples/with-react-ink-web.md +9 -9
  31. package/.docs/organized/code-examples/with-react-ink.md +4 -4
  32. package/.docs/organized/code-examples/with-react-router.md +22 -17
  33. package/.docs/organized/code-examples/with-resumable-stream.md +21 -14
  34. package/.docs/organized/code-examples/with-store.md +10 -11
  35. package/.docs/organized/code-examples/with-tanstack.md +19 -13
  36. package/.docs/organized/code-examples/with-tap-runtime.md +18 -13
  37. package/.docs/organized/code-examples/with-virtualized-thread.md +19 -14
  38. package/.docs/raw/docs/(docs)/base-ui.mdx +39 -0
  39. package/.docs/raw/docs/(docs)/cli.mdx +19 -1
  40. package/.docs/raw/docs/(docs)/devtools.mdx +7 -2
  41. package/.docs/raw/docs/(docs)/installation.mdx +15 -1
  42. package/.docs/raw/docs/(docs)/rtl.mdx +2 -4
  43. package/.docs/raw/docs/(reference)/api-reference/generative-ui/a2ui.mdx +40 -0
  44. package/.docs/raw/docs/(reference)/api-reference/generative-ui/actions.mdx +56 -0
  45. package/.docs/raw/docs/(reference)/api-reference/generative-ui/components.mdx +86 -0
  46. package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +22 -1
  47. package/.docs/raw/docs/(reference)/api-reference/generative-ui/json-generative-ui.mdx +42 -0
  48. package/.docs/raw/docs/(reference)/api-reference/generative-ui/rendering.mdx +53 -2
  49. package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +81 -0
  50. package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +86 -0
  51. package/.docs/raw/docs/(reference)/api-reference/generative-ui/tokens.mdx +62 -0
  52. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +19 -420
  53. package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +4 -1
  54. package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +4 -1
  55. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +25 -2
  56. package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +37 -0
  57. package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -9
  58. package/.docs/raw/docs/(reference)/api-reference/overview.mdx +1 -0
  59. package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +14 -31
  60. package/.docs/raw/docs/(reference)/api-reference/primitives/composition.mdx +1 -0
  61. package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +3 -0
  62. package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +2 -0
  63. package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +0 -2
  64. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +12 -9
  65. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +4 -0
  66. package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +7 -1
  67. package/.docs/raw/docs/cloud/langgraph.mdx +4 -2
  68. package/.docs/raw/docs/copilots/model-context.mdx +1 -1
  69. package/.docs/raw/docs/copilots/motivation.mdx +1 -1
  70. package/.docs/raw/docs/guides/attachments.mdx +3 -3
  71. package/.docs/raw/docs/guides/branching.mdx +2 -2
  72. package/.docs/raw/docs/guides/chatgpt-subscription.mdx +108 -0
  73. package/.docs/raw/docs/guides/context-api.mdx +89 -111
  74. package/.docs/raw/docs/guides/dictation.mdx +185 -257
  75. package/.docs/raw/docs/guides/editing.mdx +5 -5
  76. package/.docs/raw/docs/guides/electron.mdx +369 -0
  77. package/.docs/raw/docs/guides/index.mdx +20 -0
  78. package/.docs/raw/docs/guides/mentions.mdx +31 -3
  79. package/.docs/raw/docs/guides/quoting.mdx +3 -3
  80. package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +2 -2
  81. package/.docs/raw/docs/guides/resumable-streams.mdx +12 -1
  82. package/.docs/raw/docs/guides/speech.mdx +47 -29
  83. package/.docs/raw/docs/guides/suggestions.mdx +70 -1
  84. package/.docs/raw/docs/guides/voice.mdx +197 -267
  85. package/.docs/raw/docs/ink/hooks.mdx +3 -3
  86. package/.docs/raw/docs/ink/primitives.mdx +49 -8
  87. package/.docs/raw/docs/integrations/auth/better-auth.mdx +2 -2
  88. package/.docs/raw/docs/integrations/auth/clerk.mdx +2 -2
  89. package/.docs/raw/docs/integrations/auth/next-auth.mdx +3 -3
  90. package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +10 -4
  91. package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +3 -3
  92. package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +1 -1
  93. package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +3 -3
  94. package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
  95. package/.docs/raw/docs/integrations/gateways/index.mdx +2 -2
  96. package/.docs/raw/docs/integrations/observability/helicone.mdx +1 -1
  97. package/.docs/raw/docs/integrations/observability/langfuse.mdx +1 -1
  98. package/.docs/raw/docs/integrations/observability/langsmith.mdx +2 -2
  99. package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +36 -9
  100. package/.docs/raw/docs/migrations/index.mdx +50 -0
  101. package/.docs/raw/docs/migrations/toolkit-tools.mdx +4 -2
  102. package/.docs/raw/docs/migrations/v0-15.mdx +156 -0
  103. package/.docs/raw/docs/primitives/chain-of-thought.mdx +6 -1
  104. package/.docs/raw/docs/primitives/composer.mdx +17 -1
  105. package/.docs/raw/docs/primitives/selection-toolbar.mdx +25 -0
  106. package/.docs/raw/docs/primitives/thread-list.mdx +2 -2
  107. package/.docs/raw/docs/react-native/hooks.mdx +3 -3
  108. package/.docs/raw/docs/react-native/index.mdx +2 -2
  109. package/.docs/raw/docs/react-native/primitives.mdx +62 -5
  110. package/.docs/raw/docs/runtimes/ag-ui/agent-state.mdx +124 -0
  111. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +10 -1
  112. package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +14 -5
  113. package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +15 -15
  114. package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +8 -8
  115. package/.docs/raw/docs/runtimes/ai-sdk/{v6.mdx → v6-legacy.mdx} +11 -9
  116. package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +717 -0
  117. package/.docs/raw/docs/runtimes/concepts/adapters.mdx +1 -1
  118. package/.docs/raw/docs/runtimes/concepts/architecture.mdx +1 -1
  119. package/.docs/raw/docs/runtimes/concepts/threads.mdx +10 -10
  120. package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +2 -2
  121. package/.docs/raw/docs/runtimes/custom/data-stream.mdx +10 -19
  122. package/.docs/raw/docs/runtimes/custom/external-store.mdx +2 -2
  123. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +5 -3
  124. package/.docs/raw/docs/runtimes/eve/overview.mdx +1 -1
  125. package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
  126. package/.docs/raw/docs/runtimes/langgraph/agent-state.mdx +181 -0
  127. package/.docs/raw/docs/runtimes/langgraph/overview.mdx +1 -1
  128. package/.docs/raw/docs/runtimes/opencode/hooks.mdx +3 -1
  129. package/.docs/raw/docs/tools/a2ui.mdx +107 -0
  130. package/.docs/raw/docs/tools/backend.mdx +6 -3
  131. package/.docs/raw/docs/tools/defining-tools.mdx +7 -1
  132. package/.docs/raw/docs/tools/generative-ui.mdx +60 -2
  133. package/.docs/raw/docs/tools/interactables-legacy.mdx +4 -4
  134. package/.docs/raw/docs/tools/interactables.mdx +3 -3
  135. package/.docs/raw/docs/tools/mcp-apps.mdx +90 -13
  136. package/.docs/raw/docs/tools/mcp.mdx +100 -3
  137. package/.docs/raw/docs/tools/tool-ui.mdx +6 -4
  138. package/.docs/raw/docs/tools/user-managed-mcp.mdx +77 -9
  139. package/.docs/raw/docs/ui/accordion.mdx +16 -10
  140. package/.docs/raw/docs/ui/assistant-modal.mdx +8 -4
  141. package/.docs/raw/docs/ui/attachment.mdx +5 -1
  142. package/.docs/raw/docs/ui/badge.mdx +23 -12
  143. package/.docs/raw/docs/ui/follow-up-suggestions.mdx +4 -2
  144. package/.docs/raw/docs/ui/model-selector.mdx +33 -3
  145. package/.docs/raw/docs/ui/part-grouping.mdx +0 -4
  146. package/.docs/raw/docs/ui/reasoning.mdx +1 -1
  147. package/.docs/raw/docs/ui/select.mdx +22 -14
  148. package/.docs/raw/docs/ui/sources.mdx +1 -1
  149. package/.docs/raw/docs/ui/tabs.mdx +25 -14
  150. package/.docs/raw/docs/utilities/heat-graph.mdx +2 -2
  151. package/dist/constants.d.ts.map +1 -1
  152. package/dist/index.d.ts +1 -2
  153. package/dist/index.d.ts.map +1 -1
  154. package/dist/index.js +41 -2
  155. package/dist/index.js.map +1 -1
  156. package/dist/prepare-docs/code-examples.d.ts.map +1 -1
  157. package/dist/prepare-docs/code-examples.js.map +1 -1
  158. package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
  159. package/dist/prepare-docs/prepare.d.ts +1 -1
  160. package/dist/prompts/xulux-playground.d.ts +12 -0
  161. package/dist/prompts/xulux-playground.d.ts.map +1 -0
  162. package/dist/prompts/xulux-playground.js +33 -0
  163. package/dist/prompts/xulux-playground.js.map +1 -0
  164. package/dist/stdio.d.ts +1 -1
  165. package/dist/tools/docs.d.ts +8 -14
  166. package/dist/tools/docs.d.ts.map +1 -1
  167. package/dist/tools/docs.js +26 -10
  168. package/dist/tools/docs.js.map +1 -1
  169. package/dist/tools/examples.d.ts +6 -12
  170. package/dist/tools/examples.d.ts.map +1 -1
  171. package/dist/tools/examples.js +11 -8
  172. package/dist/tools/examples.js.map +1 -1
  173. package/dist/tools/resources.d.ts +1 -2
  174. package/dist/tools/resources.d.ts.map +1 -1
  175. package/dist/tools/resources.js +1 -1
  176. package/dist/tools/resources.js.map +1 -1
  177. package/dist/tools/search.d.ts +6 -15
  178. package/dist/tools/search.d.ts.map +1 -1
  179. package/dist/tools/search.js +2 -2
  180. package/dist/tools/search.js.map +1 -1
  181. package/dist/tools/tests/mcp-test-client.d.ts +15 -0
  182. package/dist/tools/tests/mcp-test-client.d.ts.map +1 -0
  183. package/dist/tools/tests/mcp-test-client.js +68 -0
  184. package/dist/tools/tests/mcp-test-client.js.map +1 -0
  185. package/dist/tools/tests/test-setup.d.ts.map +1 -1
  186. package/dist/tools/tests/test-setup.js +5 -1
  187. package/dist/tools/tests/test-setup.js.map +1 -1
  188. package/dist/tools/xulux-templates.d.ts +58 -0
  189. package/dist/tools/xulux-templates.d.ts.map +1 -0
  190. package/dist/tools/xulux-templates.js +82 -0
  191. package/dist/tools/xulux-templates.js.map +1 -0
  192. package/dist/utils/cache.d.ts +5 -0
  193. package/dist/utils/cache.d.ts.map +1 -0
  194. package/dist/utils/cache.js +18 -0
  195. package/dist/utils/cache.js.map +1 -0
  196. package/dist/utils/logger.d.ts.map +1 -1
  197. package/dist/utils/mcp-format.d.ts +1 -0
  198. package/dist/utils/mcp-format.d.ts.map +1 -1
  199. package/dist/utils/mcp-format.js +7 -4
  200. package/dist/utils/mcp-format.js.map +1 -1
  201. package/dist/utils/mdx.d.ts.map +1 -1
  202. package/dist/utils/paths.d.ts +1 -1
  203. package/dist/utils/paths.d.ts.map +1 -1
  204. package/dist/utils/paths.js +3 -1
  205. package/dist/utils/paths.js.map +1 -1
  206. package/dist/utils/search.d.ts.map +1 -1
  207. package/dist/utils/security.d.ts.map +1 -1
  208. package/dist/utils/security.js.map +1 -1
  209. package/dist/xulux/catalog-client.d.ts +14 -0
  210. package/dist/xulux/catalog-client.d.ts.map +1 -0
  211. package/dist/xulux/catalog-client.js +67 -0
  212. package/dist/xulux/catalog-client.js.map +1 -0
  213. package/dist/xulux/fallback-catalog.d.ts +7 -0
  214. package/dist/xulux/fallback-catalog.d.ts.map +1 -0
  215. package/dist/xulux/fallback-catalog.js +47 -0
  216. package/dist/xulux/fallback-catalog.js.map +1 -0
  217. package/dist/xulux/fetch-sandbox.d.ts +5 -0
  218. package/dist/xulux/fetch-sandbox.d.ts.map +1 -0
  219. package/dist/xulux/fetch-sandbox.js +40 -0
  220. package/dist/xulux/fetch-sandbox.js.map +1 -0
  221. package/dist/xulux/template-service.d.ts +84 -0
  222. package/dist/xulux/template-service.d.ts.map +1 -0
  223. package/dist/xulux/template-service.js +223 -0
  224. package/dist/xulux/template-service.js.map +1 -0
  225. package/dist/xulux/types.d.ts +55 -0
  226. package/dist/xulux/types.d.ts.map +1 -0
  227. package/dist/xulux/types.js +6 -0
  228. package/dist/xulux/types.js.map +1 -0
  229. package/package.json +7 -6
  230. package/src/index.ts +55 -2
  231. package/src/prompts/xulux-playground.ts +36 -0
  232. package/src/tools/docs.ts +27 -5
  233. package/src/tools/examples.ts +17 -12
  234. package/src/tools/resources.ts +1 -4
  235. package/src/tools/search.ts +2 -2
  236. package/src/tools/tests/completions.test.ts +40 -26
  237. package/src/tools/tests/docs.test.ts +20 -0
  238. package/src/tools/tests/examples.test.ts +5 -5
  239. package/src/tools/tests/integration.test.ts +3 -4
  240. package/src/tools/tests/listings-cache.test.ts +19 -0
  241. package/src/tools/tests/mcp-protocol.test.ts +173 -108
  242. package/src/tools/tests/mcp-test-client.ts +111 -0
  243. package/src/tools/tests/resources.test.ts +97 -66
  244. package/src/tools/tests/test-setup.ts +8 -0
  245. package/src/tools/tests/xulux-templates.test.ts +262 -0
  246. package/src/tools/xulux-templates.ts +141 -0
  247. package/src/utils/cache.ts +20 -0
  248. package/src/utils/mcp-format.ts +8 -6
  249. package/src/utils/paths.ts +4 -1
  250. package/src/utils/tests/cache.test.ts +51 -0
  251. package/src/utils/tests/mcp-format.test.ts +22 -0
  252. package/src/utils/tests/security.test.ts +1 -1
  253. package/src/xulux/catalog-client.ts +105 -0
  254. package/src/xulux/fallback-catalog.ts +63 -0
  255. package/src/xulux/fetch-sandbox.ts +56 -0
  256. package/src/xulux/template-service.ts +406 -0
  257. package/src/xulux/types.ts +60 -0
  258. package/.docs/raw/docs/(reference)/api-reference/hooks/utilities.mdx +0 -464
@@ -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]:[-rotate-90] size-3.5 transition-transform"
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
  >
@@ -749,9 +749,7 @@ export function WaterfallTimeline() {
749
749
  import { withAui } from "@assistant-ui/next";
750
750
  import type { NextConfig } from "next";
751
751
 
752
- const nextConfig: NextConfig = {
753
- /* config options here */
754
- };
752
+ const nextConfig: NextConfig = {/* config options here */};
755
753
 
756
754
  export default withAui(nextConfig);
757
755
 
@@ -774,20 +772,21 @@ export default withAui(nextConfig);
774
772
  "@assistant-ui/react-o11y": "workspace:*",
775
773
  "@assistant-ui/store": "workspace:*",
776
774
  "@assistant-ui/tap": "workspace:*",
777
- "next": "^16.2.9",
778
- "react": "^19.2.7",
779
- "react-dom": "^19.2.7"
775
+ "next": "^16.2.11",
776
+ "react": "^19.2.8",
777
+ "react-dom": "^19.2.8"
780
778
  },
781
779
  "devDependencies": {
782
780
  "@assistant-ui/next": "workspace:*",
783
781
  "@assistant-ui/x-buildutils": "workspace:*",
784
- "@tailwindcss/postcss": "^4.3.1",
785
- "@types/node": "^26.0.0",
782
+ "@tailwindcss/postcss": "^4.3.3",
783
+ "@types/node": "^26.1.1",
786
784
  "@types/react": "^19.2.17",
787
785
  "@types/react-dom": "^19.2.3",
788
- "postcss": "^8.5.15",
789
- "tailwindcss": "^4.3.1",
790
- "typescript": "^6.0.3"
786
+ "postcss": "^8.5.23",
787
+ "tailwindcss": "^4.3.3",
788
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
789
+ "typescript-7": "npm:typescript@^7.0.2"
791
790
  }
792
791
  }
793
792
 
@@ -527,9 +527,7 @@ export default function Home() {
527
527
  import { withAui } from "@assistant-ui/next";
528
528
  import type { NextConfig } from "next";
529
529
 
530
- const nextConfig: NextConfig = {
531
- /* config options here */
532
- };
530
+ const nextConfig: NextConfig = {/* config options here */};
533
531
 
534
532
  export default withAui(nextConfig);
535
533
 
@@ -555,23 +553,24 @@ export default withAui(nextConfig);
555
553
  "@assistant-ui/ui": "workspace:*",
556
554
  "class-variance-authority": "^0.7.1",
557
555
  "clsx": "^2.1.1",
558
- "lucide-react": "^1.21.0",
559
- "next": "^16.2.9",
560
- "react": "^19.2.7",
561
- "react-dom": "^19.2.7",
556
+ "lucide-react": "^1.26.0",
557
+ "next": "^16.2.11",
558
+ "react": "^19.2.8",
559
+ "react-dom": "^19.2.8",
562
560
  "tailwind-merge": "^3.6.0"
563
561
  },
564
562
  "devDependencies": {
565
563
  "@assistant-ui/next": "workspace:*",
566
564
  "@assistant-ui/x-buildutils": "workspace:*",
567
- "@tailwindcss/postcss": "^4.3.1",
568
- "@types/node": "^26.0.0",
565
+ "@tailwindcss/postcss": "^4.3.3",
566
+ "@types/node": "^26.1.1",
569
567
  "@types/react": "^19.2.17",
570
568
  "@types/react-dom": "^19.2.3",
571
- "postcss": "^8.5.15",
572
- "tailwindcss": "^4.3.1",
569
+ "postcss": "^8.5.23",
570
+ "tailwindcss": "^4.3.3",
573
571
  "tw-animate-css": "^1.4.0",
574
- "typescript": "^6.0.3"
572
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
573
+ "typescript-7": "npm:typescript@^7.0.2"
575
574
  }
576
575
  }
577
576
 
@@ -651,7 +650,13 @@ No proxy backend needed. `@assistant-ui/react-a2a` handles the full A2A protocol
651
650
  "@/components/assistant-ui/*": [
652
651
  "../../packages/ui/src/components/assistant-ui/*"
653
652
  ],
654
- "@/components/ui/*": ["../../packages/ui/src/components/ui/*"],
653
+ "@/components/ui/*": [
654
+ "../../packages/ui/src/components/ui/base/*",
655
+ "../../packages/ui/src/components/ui/radix/*"
656
+ ],
657
+ "@/components/ui/radix/*": [
658
+ "../../packages/ui/src/components/ui/radix/*"
659
+ ],
655
660
  "@/lib/utils": ["../../packages/ui/src/lib/utils"],
656
661
  "@assistant-ui/ui/*": ["../../packages/ui/src/*"]
657
662
  }
@@ -314,7 +314,7 @@ function NewThreadButton() {
314
314
  return (
315
315
  <button
316
316
  type="button"
317
- onClick={() => aui.threads().switchToNewThread()}
317
+ onClick={() => aui.threads.switchToNewThread()}
318
318
  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
319
  >
320
320
  <PlusIcon className="size-4" />
@@ -398,9 +398,7 @@ export default function Home() {
398
398
  import { withAui } from "@assistant-ui/next";
399
399
  import type { NextConfig } from "next";
400
400
 
401
- const nextConfig: NextConfig = {
402
- /* config options here */
403
- };
401
+ const nextConfig: NextConfig = {/* config options here */};
404
402
 
405
403
  export default withAui(nextConfig);
406
404
 
@@ -427,23 +425,24 @@ export default withAui(nextConfig);
427
425
  "@assistant-ui/ui": "workspace:*",
428
426
  "class-variance-authority": "^0.7.1",
429
427
  "clsx": "^2.1.1",
430
- "lucide-react": "^1.21.0",
431
- "next": "^16.2.9",
432
- "react": "^19.2.7",
433
- "react-dom": "^19.2.7",
428
+ "lucide-react": "^1.26.0",
429
+ "next": "^16.2.11",
430
+ "react": "^19.2.8",
431
+ "react-dom": "^19.2.8",
434
432
  "tailwind-merge": "^3.6.0"
435
433
  },
436
434
  "devDependencies": {
437
435
  "@assistant-ui/next": "workspace:*",
438
436
  "@assistant-ui/x-buildutils": "workspace:*",
439
- "@tailwindcss/postcss": "^4.3.1",
440
- "@types/node": "^26.0.0",
437
+ "@tailwindcss/postcss": "^4.3.3",
438
+ "@types/node": "^26.1.1",
441
439
  "@types/react": "^19.2.17",
442
440
  "@types/react-dom": "^19.2.3",
443
- "postcss": "^8.5.15",
444
- "tailwindcss": "^4.3.1",
441
+ "postcss": "^8.5.23",
442
+ "tailwindcss": "^4.3.3",
445
443
  "tw-animate-css": "^1.4.0",
446
- "typescript": "^6.0.3"
444
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
445
+ "typescript-7": "npm:typescript@^7.0.2"
447
446
  }
448
447
  }
449
448
 
@@ -532,7 +531,13 @@ The included `server/agent.py` provides:
532
531
  "@/components/assistant-ui/*": [
533
532
  "../../packages/ui/src/components/assistant-ui/*"
534
533
  ],
535
- "@/components/ui/*": ["../../packages/ui/src/components/ui/*"],
534
+ "@/components/ui/*": [
535
+ "../../packages/ui/src/components/ui/base/*",
536
+ "../../packages/ui/src/components/ui/radix/*"
537
+ ],
538
+ "@/components/ui/radix/*": [
539
+ "../../packages/ui/src/components/ui/radix/*"
540
+ ],
536
541
  "@/lib/utils": ["../../packages/ui/src/lib/utils"],
537
542
  "@assistant-ui/ui/*": ["../../packages/ui/src/*"]
538
543
  }
@@ -1,4 +1,4 @@
1
- # Example: with-ai-sdk-v6
1
+ # Example: with-ai-sdk-v7
2
2
 
3
3
  ## app/api/chat/route.ts
4
4
 
@@ -13,6 +13,8 @@ import {
13
13
  tool,
14
14
  stepCountIs,
15
15
  zodSchema,
16
+ createUIMessageStreamResponse,
17
+ toUIMessageStream,
16
18
  } from "ai";
17
19
  import { z } from "zod";
18
20
 
@@ -51,7 +53,9 @@ export async function POST(req: Request) {
51
53
  },
52
54
  });
53
55
 
54
- return result.toUIMessageStreamResponse();
56
+ return createUIMessageStreamResponse({
57
+ stream: toUIMessageStream({ stream: result.stream }),
58
+ });
55
59
  }
56
60
 
57
61
  ```
@@ -191,8 +195,8 @@ import type { Metadata } from "next";
191
195
  import "./globals.css";
192
196
 
193
197
  export const metadata: Metadata = {
194
- title: "AI SDK v6 Example",
195
- description: "Example using @assistant-ui/react with AI SDK v6",
198
+ title: "AI SDK v7 Example",
199
+ description: "Example using @assistant-ui/react with AI SDK v7",
196
200
  };
197
201
 
198
202
  export default function RootLayout({
@@ -306,7 +310,7 @@ export default withAui(nextConfig);
306
310
 
307
311
  ```json
308
312
  {
309
- "name": "with-ai-sdk-v6",
313
+ "name": "with-ai-sdk-v7",
310
314
  "version": "0.0.0",
311
315
  "private": true,
312
316
  "type": "module",
@@ -316,32 +320,33 @@ export default withAui(nextConfig);
316
320
  "start": "next start"
317
321
  },
318
322
  "dependencies": {
319
- "@ai-sdk/openai": "^3.0.74",
323
+ "@ai-sdk/openai": "^4.0.20",
320
324
  "@assistant-ui/react": "workspace:*",
321
325
  "@assistant-ui/react-ai-sdk": "workspace:*",
322
326
  "@assistant-ui/react-markdown": "workspace:*",
323
327
  "@assistant-ui/ui": "workspace:*",
324
- "ai": "^6.0.209",
328
+ "ai": "^7.0.37",
325
329
  "class-variance-authority": "^0.7.1",
326
330
  "clsx": "^2.1.1",
327
- "lucide-react": "^1.21.0",
328
- "next": "^16.2.9",
329
- "react": "^19.2.7",
330
- "react-dom": "^19.2.7",
331
+ "lucide-react": "^1.26.0",
332
+ "next": "^16.2.11",
333
+ "react": "^19.2.8",
334
+ "react-dom": "^19.2.8",
331
335
  "tailwind-merge": "^3.6.0",
332
336
  "zod": "^4.4.3"
333
337
  },
334
338
  "devDependencies": {
335
339
  "@assistant-ui/next": "workspace:*",
336
340
  "@assistant-ui/x-buildutils": "workspace:*",
337
- "@tailwindcss/postcss": "^4.3.1",
338
- "@types/node": "^26.0.0",
341
+ "@tailwindcss/postcss": "^4.3.3",
342
+ "@types/node": "^26.1.1",
339
343
  "@types/react": "^19.2.17",
340
344
  "@types/react-dom": "^19.2.3",
341
- "postcss": "^8.5.15",
342
- "tailwindcss": "^4.3.1",
345
+ "postcss": "^8.5.23",
346
+ "tailwindcss": "^4.3.3",
343
347
  "tw-animate-css": "^1.4.0",
344
- "typescript": "^6.0.3"
348
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
349
+ "typescript-7": "npm:typescript@^7.0.2"
345
350
  }
346
351
  }
347
352
 
@@ -350,16 +355,16 @@ export default withAui(nextConfig);
350
355
  ## README.md
351
356
 
352
357
  ```markdown
353
- # AI SDK v6 Example
358
+ # AI SDK v7 Example
354
359
 
355
- This example demonstrates how to use `@assistant-ui/react-ai-sdk` with the Vercel AI SDK v6.
360
+ This example demonstrates how to use `@assistant-ui/react-ai-sdk` with the Vercel AI SDK v7.
356
361
 
357
362
  ## Quick Start
358
363
 
359
364
  ### Using CLI (Recommended)
360
365
 
361
366
  ```bash
362
- npx assistant-ui@latest create my-app --example with-ai-sdk-v6
367
+ npx assistant-ui@latest create my-app --example with-ai-sdk-v7
363
368
  cd my-app
364
369
  ```
365
370
 
@@ -382,10 +387,10 @@ Open [http://localhost:3000](http://localhost:3000) to see the result.
382
387
 
383
388
  ## Key Features
384
389
 
385
- - Uses the new AI SDK v6 with `@ai-sdk/openai`
390
+ - Uses the new AI SDK v7 with `@ai-sdk/openai`
386
391
  - Integrates with `@assistant-ui/react` using the new `useChatRuntime` hook
387
392
  - No RSC support (client-side only)
388
- - Simplified integration with the `useChatRuntime` hook that wraps AI SDK v6's `useChat`
393
+ - Simplified integration with the `useChatRuntime` hook that wraps AI SDK v7's `useChat`
389
394
  - Uses `AssistantChatTransport` to pass system messages and frontend tools to the backend
390
395
 
391
396
  ## Custom Transport Configuration
@@ -420,7 +425,7 @@ const runtime = useChatRuntime({
420
425
 
421
426
  ## API Route
422
427
 
423
- The API route at `/api/chat` uses AI SDK v6 `streamText`, forwards `system` and frontend `tools`, and merges them with a server-defined weather tool.
428
+ The API route at `/api/chat` uses AI SDK v7 `streamText`, forwards `system` and frontend `tools`, and merges them with a server-defined weather tool.
424
429
 
425
430
  ## Related Documentation
426
431
 
@@ -440,7 +445,13 @@ The API route at `/api/chat` uses AI SDK v6 `streamText`, forwards `system` and
440
445
  "@/components/assistant-ui/*": [
441
446
  "../../packages/ui/src/components/assistant-ui/*"
442
447
  ],
443
- "@/components/ui/*": ["../../packages/ui/src/components/ui/*"],
448
+ "@/components/ui/*": [
449
+ "../../packages/ui/src/components/ui/base/*",
450
+ "../../packages/ui/src/components/ui/radix/*"
451
+ ],
452
+ "@/components/ui/radix/*": [
453
+ "../../packages/ui/src/components/ui/radix/*"
454
+ ],
444
455
  "@/lib/utils": ["../../packages/ui/src/lib/utils"],
445
456
  "@assistant-ui/ui/*": ["../../packages/ui/src/*"]
446
457
  }