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

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 (207) hide show
  1. package/.docs/organized/code-examples/waterfall.md +8 -9
  2. package/.docs/organized/code-examples/with-a2a.md +16 -11
  3. package/.docs/organized/code-examples/with-ag-ui.md +16 -11
  4. package/.docs/organized/code-examples/{with-ai-sdk-v6.md → with-ai-sdk-v7.md} +32 -21
  5. package/.docs/organized/code-examples/with-artifacts.md +17 -10
  6. package/.docs/organized/code-examples/with-assistant-transport.md +15 -8
  7. package/.docs/organized/code-examples/with-browser-extension.md +15 -8
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +17 -10
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +10 -9
  10. package/.docs/organized/code-examples/with-cloud.md +18 -13
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +17 -10
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +20 -13
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +20 -13
  14. package/.docs/organized/code-examples/with-eve.md +16 -9
  15. package/.docs/organized/code-examples/with-expo.md +27 -24
  16. package/.docs/organized/code-examples/with-external-store.md +16 -11
  17. package/.docs/organized/code-examples/with-ffmpeg.md +18 -13
  18. package/.docs/organized/code-examples/with-generative-ui.md +20 -15
  19. package/.docs/organized/code-examples/with-google-adk.md +15 -8
  20. package/.docs/organized/code-examples/with-heat-graph.md +8 -9
  21. package/.docs/organized/code-examples/with-image-generation.md +17 -10
  22. package/.docs/organized/code-examples/with-interactables.md +19 -15
  23. package/.docs/organized/code-examples/with-langchain.md +17 -10
  24. package/.docs/organized/code-examples/with-langgraph.md +17 -10
  25. package/.docs/organized/code-examples/with-livekit.md +21 -14
  26. package/.docs/organized/code-examples/with-mcp.md +25 -12
  27. package/.docs/organized/code-examples/with-opencode.md +22 -17
  28. package/.docs/organized/code-examples/with-pi.md +47 -12
  29. package/.docs/organized/code-examples/with-react-hook-form.md +19 -14
  30. package/.docs/organized/code-examples/with-react-ink-web.md +6 -6
  31. package/.docs/organized/code-examples/with-react-ink.md +2 -2
  32. package/.docs/organized/code-examples/with-react-router.md +20 -15
  33. package/.docs/organized/code-examples/with-resumable-stream.md +19 -12
  34. package/.docs/organized/code-examples/with-store.md +8 -9
  35. package/.docs/organized/code-examples/with-tanstack.md +16 -10
  36. package/.docs/organized/code-examples/with-tap-runtime.md +16 -11
  37. package/.docs/organized/code-examples/with-virtualized-thread.md +17 -12
  38. package/.docs/raw/docs/(docs)/base-ui.mdx +39 -0
  39. package/.docs/raw/docs/(docs)/cli.mdx +17 -1
  40. package/.docs/raw/docs/(docs)/installation.mdx +15 -1
  41. package/.docs/raw/docs/(docs)/rtl.mdx +2 -4
  42. package/.docs/raw/docs/(reference)/api-reference/generative-ui/actions.mdx +56 -0
  43. package/.docs/raw/docs/(reference)/api-reference/generative-ui/components.mdx +86 -0
  44. package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +19 -1
  45. package/.docs/raw/docs/(reference)/api-reference/generative-ui/json-generative-ui.mdx +42 -0
  46. package/.docs/raw/docs/(reference)/api-reference/generative-ui/rendering.mdx +53 -2
  47. package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +81 -0
  48. package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +86 -0
  49. package/.docs/raw/docs/(reference)/api-reference/generative-ui/tokens.mdx +62 -0
  50. package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +4 -1
  51. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +4 -2
  52. package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +37 -0
  53. package/.docs/raw/docs/(reference)/api-reference/overview.mdx +1 -0
  54. package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +29 -29
  55. package/.docs/raw/docs/(reference)/api-reference/primitives/composition.mdx +1 -0
  56. package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +3 -0
  57. package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +2 -0
  58. package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +0 -2
  59. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +12 -9
  60. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +4 -0
  61. package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +7 -1
  62. package/.docs/raw/docs/cloud/langgraph.mdx +3 -1
  63. package/.docs/raw/docs/guides/chatgpt-subscription.mdx +108 -0
  64. package/.docs/raw/docs/guides/dictation.mdx +185 -257
  65. package/.docs/raw/docs/guides/index.mdx +10 -0
  66. package/.docs/raw/docs/guides/mentions.mdx +31 -3
  67. package/.docs/raw/docs/guides/resumable-streams.mdx +12 -1
  68. package/.docs/raw/docs/guides/speech.mdx +47 -29
  69. package/.docs/raw/docs/guides/suggestions.mdx +70 -1
  70. package/.docs/raw/docs/guides/voice.mdx +197 -267
  71. package/.docs/raw/docs/ink/primitives.mdx +35 -1
  72. package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +10 -4
  73. package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +3 -3
  74. package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +1 -1
  75. package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +3 -3
  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 +1 -1
  79. package/.docs/raw/docs/integrations/observability/langfuse.mdx +1 -1
  80. package/.docs/raw/docs/integrations/observability/langsmith.mdx +1 -1
  81. package/.docs/raw/docs/migrations/index.mdx +50 -0
  82. package/.docs/raw/docs/migrations/toolkit-tools.mdx +4 -2
  83. package/.docs/raw/docs/primitives/chain-of-thought.mdx +6 -1
  84. package/.docs/raw/docs/primitives/composer.mdx +16 -0
  85. package/.docs/raw/docs/primitives/selection-toolbar.mdx +25 -0
  86. package/.docs/raw/docs/react-native/primitives.mdx +23 -0
  87. package/.docs/raw/docs/runtimes/ag-ui/agent-state.mdx +124 -0
  88. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +10 -1
  89. package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +13 -4
  90. package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +11 -11
  91. package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +5 -5
  92. package/.docs/raw/docs/runtimes/ai-sdk/{v6.mdx → v6-legacy.mdx} +8 -6
  93. package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +717 -0
  94. package/.docs/raw/docs/runtimes/concepts/adapters.mdx +1 -1
  95. package/.docs/raw/docs/runtimes/concepts/architecture.mdx +1 -1
  96. package/.docs/raw/docs/runtimes/custom/data-stream.mdx +10 -19
  97. package/.docs/raw/docs/runtimes/custom/external-store.mdx +1 -1
  98. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +2 -0
  99. package/.docs/raw/docs/runtimes/eve/overview.mdx +1 -1
  100. package/.docs/raw/docs/runtimes/langgraph/agent-state.mdx +181 -0
  101. package/.docs/raw/docs/tools/backend.mdx +6 -3
  102. package/.docs/raw/docs/tools/defining-tools.mdx +7 -1
  103. package/.docs/raw/docs/tools/generative-ui.mdx +60 -2
  104. package/.docs/raw/docs/tools/mcp-apps.mdx +29 -11
  105. package/.docs/raw/docs/tools/mcp.mdx +100 -3
  106. package/.docs/raw/docs/tools/tool-ui.mdx +6 -4
  107. package/.docs/raw/docs/tools/user-managed-mcp.mdx +26 -3
  108. package/.docs/raw/docs/ui/accordion.mdx +16 -10
  109. package/.docs/raw/docs/ui/assistant-modal.mdx +8 -4
  110. package/.docs/raw/docs/ui/attachment.mdx +5 -1
  111. package/.docs/raw/docs/ui/badge.mdx +23 -12
  112. package/.docs/raw/docs/ui/follow-up-suggestions.mdx +2 -2
  113. package/.docs/raw/docs/ui/model-selector.mdx +32 -2
  114. package/.docs/raw/docs/ui/select.mdx +22 -14
  115. package/.docs/raw/docs/ui/sources.mdx +1 -1
  116. package/.docs/raw/docs/ui/tabs.mdx +25 -14
  117. package/.docs/raw/docs/utilities/heat-graph.mdx +2 -2
  118. package/dist/constants.d.ts.map +1 -1
  119. package/dist/index.d.ts +0 -1
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +39 -0
  122. package/dist/index.js.map +1 -1
  123. package/dist/prepare-docs/code-examples.d.ts.map +1 -1
  124. package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
  125. package/dist/prompts/xulux-playground.d.ts +12 -0
  126. package/dist/prompts/xulux-playground.d.ts.map +1 -0
  127. package/dist/prompts/xulux-playground.js +33 -0
  128. package/dist/prompts/xulux-playground.js.map +1 -0
  129. package/dist/tools/docs.d.ts +2 -4
  130. package/dist/tools/docs.d.ts.map +1 -1
  131. package/dist/tools/docs.js +24 -8
  132. package/dist/tools/docs.js.map +1 -1
  133. package/dist/tools/examples.d.ts +2 -4
  134. package/dist/tools/examples.d.ts.map +1 -1
  135. package/dist/tools/examples.js +9 -6
  136. package/dist/tools/examples.js.map +1 -1
  137. package/dist/tools/resources.d.ts +0 -1
  138. package/dist/tools/resources.d.ts.map +1 -1
  139. package/dist/tools/search.d.ts +2 -5
  140. package/dist/tools/search.d.ts.map +1 -1
  141. package/dist/tools/tests/test-setup.d.ts.map +1 -1
  142. package/dist/tools/tests/test-setup.js +5 -1
  143. package/dist/tools/tests/test-setup.js.map +1 -1
  144. package/dist/tools/xulux-templates.d.ts +72 -0
  145. package/dist/tools/xulux-templates.d.ts.map +1 -0
  146. package/dist/tools/xulux-templates.js +82 -0
  147. package/dist/tools/xulux-templates.js.map +1 -0
  148. package/dist/utils/cache.d.ts +5 -0
  149. package/dist/utils/cache.d.ts.map +1 -0
  150. package/dist/utils/cache.js +18 -0
  151. package/dist/utils/cache.js.map +1 -0
  152. package/dist/utils/logger.d.ts.map +1 -1
  153. package/dist/utils/mcp-format.d.ts +1 -0
  154. package/dist/utils/mcp-format.d.ts.map +1 -1
  155. package/dist/utils/mcp-format.js +7 -4
  156. package/dist/utils/mcp-format.js.map +1 -1
  157. package/dist/utils/mdx.d.ts.map +1 -1
  158. package/dist/utils/paths.d.ts +1 -1
  159. package/dist/utils/paths.d.ts.map +1 -1
  160. package/dist/utils/paths.js +3 -1
  161. package/dist/utils/paths.js.map +1 -1
  162. package/dist/utils/search.d.ts.map +1 -1
  163. package/dist/utils/security.d.ts.map +1 -1
  164. package/dist/xulux/catalog-client.d.ts +14 -0
  165. package/dist/xulux/catalog-client.d.ts.map +1 -0
  166. package/dist/xulux/catalog-client.js +67 -0
  167. package/dist/xulux/catalog-client.js.map +1 -0
  168. package/dist/xulux/fallback-catalog.d.ts +7 -0
  169. package/dist/xulux/fallback-catalog.d.ts.map +1 -0
  170. package/dist/xulux/fallback-catalog.js +47 -0
  171. package/dist/xulux/fallback-catalog.js.map +1 -0
  172. package/dist/xulux/fetch-sandbox.d.ts +5 -0
  173. package/dist/xulux/fetch-sandbox.d.ts.map +1 -0
  174. package/dist/xulux/fetch-sandbox.js +40 -0
  175. package/dist/xulux/fetch-sandbox.js.map +1 -0
  176. package/dist/xulux/template-service.d.ts +84 -0
  177. package/dist/xulux/template-service.d.ts.map +1 -0
  178. package/dist/xulux/template-service.js +223 -0
  179. package/dist/xulux/template-service.js.map +1 -0
  180. package/dist/xulux/types.d.ts +55 -0
  181. package/dist/xulux/types.d.ts.map +1 -0
  182. package/dist/xulux/types.js +6 -0
  183. package/dist/xulux/types.js.map +1 -0
  184. package/package.json +5 -5
  185. package/src/index.ts +53 -0
  186. package/src/prompts/xulux-playground.ts +36 -0
  187. package/src/tools/docs.ts +25 -3
  188. package/src/tools/examples.ts +15 -10
  189. package/src/tools/tests/docs.test.ts +20 -0
  190. package/src/tools/tests/examples.test.ts +5 -5
  191. package/src/tools/tests/listings-cache.test.ts +19 -0
  192. package/src/tools/tests/mcp-protocol.test.ts +81 -1
  193. package/src/tools/tests/test-setup.ts +8 -0
  194. package/src/tools/tests/xulux-templates.test.ts +262 -0
  195. package/src/tools/xulux-templates.ts +141 -0
  196. package/src/utils/cache.ts +20 -0
  197. package/src/utils/mcp-format.ts +8 -6
  198. package/src/utils/paths.ts +4 -1
  199. package/src/utils/tests/cache.test.ts +51 -0
  200. package/src/utils/tests/mcp-format.test.ts +22 -0
  201. package/src/utils/tests/security.test.ts +1 -1
  202. package/src/xulux/catalog-client.ts +105 -0
  203. package/src/xulux/fallback-catalog.ts +63 -0
  204. package/src/xulux/fetch-sandbox.ts +56 -0
  205. package/src/xulux/template-service.ts +406 -0
  206. package/src/xulux/types.ts +60 -0
  207. package/.docs/raw/docs/(reference)/api-reference/hooks/utilities.mdx +0 -464
@@ -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",
775
+ "next": "^16.2.10",
778
776
  "react": "^19.2.7",
779
777
  "react-dom": "^19.2.7"
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.2",
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.19",
787
+ "tailwindcss": "^4.3.2",
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,8 +553,8 @@ 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",
556
+ "lucide-react": "^1.24.0",
557
+ "next": "^16.2.10",
560
558
  "react": "^19.2.7",
561
559
  "react-dom": "^19.2.7",
562
560
  "tailwind-merge": "^3.6.0"
@@ -564,14 +562,15 @@ export default withAui(nextConfig);
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.2",
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.19",
570
+ "tailwindcss": "^4.3.2",
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
  }
@@ -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,8 +425,8 @@ 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",
428
+ "lucide-react": "^1.24.0",
429
+ "next": "^16.2.10",
432
430
  "react": "^19.2.7",
433
431
  "react-dom": "^19.2.7",
434
432
  "tailwind-merge": "^3.6.0"
@@ -436,14 +434,15 @@ export default withAui(nextConfig);
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.2",
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.19",
442
+ "tailwindcss": "^4.3.2",
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,16 +320,16 @@ 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.14",
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.28",
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",
331
+ "lucide-react": "^1.24.0",
332
+ "next": "^16.2.10",
329
333
  "react": "^19.2.7",
330
334
  "react-dom": "^19.2.7",
331
335
  "tailwind-merge": "^3.6.0",
@@ -334,14 +338,15 @@ export default withAui(nextConfig);
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.2",
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.19",
346
+ "tailwindcss": "^4.3.2",
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
  }
@@ -426,16 +426,16 @@ export default withAui(nextConfig);
426
426
  "start": "next start"
427
427
  },
428
428
  "dependencies": {
429
- "@ai-sdk/openai": "^3.0.74",
429
+ "@ai-sdk/openai": "^4.0.14",
430
430
  "@assistant-ui/react": "workspace:*",
431
431
  "@assistant-ui/react-ai-sdk": "workspace:*",
432
432
  "@assistant-ui/react-markdown": "workspace:*",
433
433
  "@assistant-ui/ui": "workspace:*",
434
- "ai": "^6.0.209",
434
+ "ai": "^7.0.28",
435
435
  "class-variance-authority": "^0.7.1",
436
436
  "clsx": "^2.1.1",
437
- "lucide-react": "^1.21.0",
438
- "next": "^16.2.9",
437
+ "lucide-react": "^1.24.0",
438
+ "next": "^16.2.10",
439
439
  "react": "^19.2.7",
440
440
  "react-dom": "^19.2.7",
441
441
  "tailwind-merge": "^3.6.0",
@@ -444,14 +444,15 @@ export default withAui(nextConfig);
444
444
  "devDependencies": {
445
445
  "@assistant-ui/next": "workspace:*",
446
446
  "@assistant-ui/x-buildutils": "workspace:*",
447
- "@tailwindcss/postcss": "^4.3.1",
448
- "@types/node": "^26.0.0",
447
+ "@tailwindcss/postcss": "^4.3.2",
448
+ "@types/node": "^26.1.1",
449
449
  "@types/react": "^19.2.17",
450
450
  "@types/react-dom": "^19.2.3",
451
- "postcss": "^8.5.15",
452
- "tailwindcss": "^4.3.1",
451
+ "postcss": "^8.5.19",
452
+ "tailwindcss": "^4.3.2",
453
453
  "tw-animate-css": "^1.4.0",
454
- "typescript": "^6.0.3"
454
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
455
+ "typescript-7": "npm:typescript@^7.0.2"
455
456
  }
456
457
  }
457
458
 
@@ -468,7 +469,13 @@ export default withAui(nextConfig);
468
469
  "@/components/assistant-ui/*": [
469
470
  "../../packages/ui/src/components/assistant-ui/*"
470
471
  ],
471
- "@/components/ui/*": ["../../packages/ui/src/components/ui/*"],
472
+ "@/components/ui/*": [
473
+ "../../packages/ui/src/components/ui/base/*",
474
+ "../../packages/ui/src/components/ui/radix/*"
475
+ ],
476
+ "@/components/ui/radix/*": [
477
+ "../../packages/ui/src/components/ui/radix/*"
478
+ ],
472
479
  "@/lib/utils": ["../../packages/ui/src/lib/utils"],
473
480
  "@assistant-ui/ui/*": ["../../packages/ui/src/*"]
474
481
  }
@@ -449,8 +449,8 @@ export default withAui(nextConfig);
449
449
  "@assistant-ui/ui": "workspace:*",
450
450
  "class-variance-authority": "^0.7.1",
451
451
  "clsx": "^2.1.1",
452
- "lucide-react": "^1.21.0",
453
- "next": "^16.2.9",
452
+ "lucide-react": "^1.24.0",
453
+ "next": "^16.2.10",
454
454
  "react": "^19.2.7",
455
455
  "react-dom": "^19.2.7",
456
456
  "tailwind-merge": "^3.6.0",
@@ -459,14 +459,15 @@ export default withAui(nextConfig);
459
459
  "devDependencies": {
460
460
  "@assistant-ui/next": "workspace:*",
461
461
  "@assistant-ui/x-buildutils": "workspace:*",
462
- "@tailwindcss/postcss": "^4.3.1",
463
- "@types/node": "^26.0.0",
462
+ "@tailwindcss/postcss": "^4.3.2",
463
+ "@types/node": "^26.1.1",
464
464
  "@types/react": "^19.2.17",
465
465
  "@types/react-dom": "^19.2.3",
466
- "postcss": "^8.5.15",
467
- "tailwindcss": "^4.3.1",
466
+ "postcss": "^8.5.19",
467
+ "tailwindcss": "^4.3.2",
468
468
  "tw-animate-css": "^1.4.0",
469
- "typescript": "^6.0.3"
469
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
470
+ "typescript-7": "npm:typescript@^7.0.2"
470
471
  }
471
472
  }
472
473
 
@@ -563,7 +564,13 @@ Your backend server should:
563
564
  "@/components/assistant-ui/*": [
564
565
  "../../packages/ui/src/components/assistant-ui/*"
565
566
  ],
566
- "@/components/ui/*": ["../../packages/ui/src/components/ui/*"],
567
+ "@/components/ui/*": [
568
+ "../../packages/ui/src/components/ui/base/*",
569
+ "../../packages/ui/src/components/ui/radix/*"
570
+ ],
571
+ "@/components/ui/radix/*": [
572
+ "../../packages/ui/src/components/ui/radix/*"
573
+ ],
567
574
  "@/lib/utils": ["../../packages/ui/src/lib/utils"],
568
575
  "@assistant-ui/ui/*": ["../../packages/ui/src/*"]
569
576
  }
@@ -79,6 +79,13 @@ chrome.action.onClicked.addListener((tab) => {
79
79
 
80
80
  ```
81
81
 
82
+ ## globals.d.ts
83
+
84
+ ```typescript
85
+ declare module "*.css";
86
+
87
+ ```
88
+
82
89
  ## manifest.json
83
90
 
84
91
  ```json
@@ -229,23 +236,23 @@ export function MyThread() {
229
236
  "@assistant-ui/ui": "workspace:*",
230
237
  "class-variance-authority": "^0.7.1",
231
238
  "clsx": "^2.1.1",
232
- "lucide-react": "^1.21.0",
239
+ "lucide-react": "^1.24.0",
233
240
  "react": "^19.2.7",
234
241
  "react-dom": "^19.2.7",
235
242
  "tailwind-merge": "^3.6.0"
236
243
  },
237
244
  "devDependencies": {
238
- "@tailwindcss/postcss": "^4.3.1",
239
- "@types/chrome": "^0.2.0",
240
- "@types/node": "^26.0.0",
245
+ "@tailwindcss/postcss": "^4.3.2",
246
+ "@types/chrome": "^0.2.2",
247
+ "@types/node": "^26.1.1",
241
248
  "@types/react": "^19.2.17",
242
249
  "@types/react-dom": "^19.2.3",
243
250
  "esbuild": "^0.28.1",
244
- "postcss": "^8.5.15",
245
- "tailwindcss": "^4.3.1",
246
- "tsx": "^4.22.4",
251
+ "postcss": "^8.5.19",
252
+ "tailwindcss": "^4.3.2",
253
+ "tsx": "^4.23.1",
247
254
  "tw-animate-css": "^1.4.0",
248
- "typescript": "^6.0.3"
255
+ "typescript": "^7.0.2"
249
256
  }
250
257
  }
251
258
 
@@ -800,16 +800,16 @@ export default withAui(nextConfig);
800
800
  "start": "next start"
801
801
  },
802
802
  "dependencies": {
803
- "@ai-sdk/openai": "^3.0.74",
803
+ "@ai-sdk/openai": "^4.0.14",
804
804
  "@assistant-ui/react": "workspace:*",
805
805
  "@assistant-ui/react-ai-sdk": "workspace:*",
806
806
  "@assistant-ui/react-markdown": "workspace:*",
807
807
  "@assistant-ui/ui": "workspace:*",
808
- "ai": "^6.0.209",
808
+ "ai": "^7.0.28",
809
809
  "class-variance-authority": "^0.7.1",
810
810
  "clsx": "^2.1.1",
811
- "lucide-react": "^1.21.0",
812
- "next": "^16.2.9",
811
+ "lucide-react": "^1.24.0",
812
+ "next": "^16.2.10",
813
813
  "react": "^19.2.7",
814
814
  "react-dom": "^19.2.7",
815
815
  "tailwind-merge": "^3.6.0",
@@ -818,14 +818,15 @@ export default withAui(nextConfig);
818
818
  "devDependencies": {
819
819
  "@assistant-ui/next": "workspace:*",
820
820
  "@assistant-ui/x-buildutils": "workspace:*",
821
- "@tailwindcss/postcss": "^4.3.1",
822
- "@types/node": "^26.0.0",
821
+ "@tailwindcss/postcss": "^4.3.2",
822
+ "@types/node": "^26.1.1",
823
823
  "@types/react": "^19.2.17",
824
824
  "@types/react-dom": "^19.2.3",
825
- "postcss": "^8.5.15",
826
- "tailwindcss": "^4.3.1",
825
+ "postcss": "^8.5.19",
826
+ "tailwindcss": "^4.3.2",
827
827
  "tw-animate-css": "^1.4.0",
828
- "typescript": "^6.0.3"
828
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
829
+ "typescript-7": "npm:typescript@^7.0.2"
829
830
  }
830
831
  }
831
832
 
@@ -933,7 +934,13 @@ Chain-of-thought, tool calls, and citation sources are the parts of an assistant
933
934
  "@/components/assistant-ui/*": [
934
935
  "../../packages/ui/src/components/assistant-ui/*"
935
936
  ],
936
- "@/components/ui/*": ["../../packages/ui/src/components/ui/*"],
937
+ "@/components/ui/*": [
938
+ "../../packages/ui/src/components/ui/base/*",
939
+ "../../packages/ui/src/components/ui/radix/*"
940
+ ],
941
+ "@/components/ui/radix/*": [
942
+ "../../packages/ui/src/components/ui/radix/*"
943
+ ],
937
944
  "@/lib/utils": ["../../packages/ui/src/lib/utils"],
938
945
  "@assistant-ui/ui/*": ["../../packages/ui/src/*"],
939
946
  "@assistant-ui/*": ["../../packages/*/src"],
@@ -568,13 +568,13 @@ export default withAui(nextConfig);
568
568
  "start": "next start"
569
569
  },
570
570
  "dependencies": {
571
- "@ai-sdk/openai": "^3.0.74",
571
+ "@ai-sdk/openai": "^4.0.14",
572
572
  "@assistant-ui/cloud-ai-sdk": "workspace:*",
573
- "ai": "^6.0.209",
573
+ "ai": "^7.0.28",
574
574
  "class-variance-authority": "^0.7.1",
575
575
  "clsx": "^2.1.1",
576
- "lucide-react": "^1.21.0",
577
- "next": "^16.2.9",
576
+ "lucide-react": "^1.24.0",
577
+ "next": "^16.2.10",
578
578
  "react": "^19.2.7",
579
579
  "react-dom": "^19.2.7",
580
580
  "tailwind-merge": "^3.6.0"
@@ -582,14 +582,15 @@ export default withAui(nextConfig);
582
582
  "devDependencies": {
583
583
  "@assistant-ui/next": "workspace:*",
584
584
  "@assistant-ui/x-buildutils": "workspace:*",
585
- "@tailwindcss/postcss": "^4.3.1",
586
- "@types/node": "^26.0.0",
585
+ "@tailwindcss/postcss": "^4.3.2",
586
+ "@types/node": "^26.1.1",
587
587
  "@types/react": "^19.2.17",
588
588
  "@types/react-dom": "^19.2.3",
589
- "postcss": "^8.5.15",
590
- "tailwindcss": "^4.3.1",
589
+ "postcss": "^8.5.19",
590
+ "tailwindcss": "^4.3.2",
591
591
  "tw-animate-css": "^1.4.0",
592
- "typescript": "^6.0.3"
592
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
593
+ "typescript-7": "npm:typescript@^7.0.2"
593
594
  }
594
595
  }
595
596
 
@@ -306,9 +306,7 @@ export default function Home() {
306
306
  import { withAui } from "@assistant-ui/next";
307
307
  import type { NextConfig } from "next";
308
308
 
309
- const nextConfig: NextConfig = {
310
- /* config options here */
311
- };
309
+ const nextConfig: NextConfig = {/* config options here */};
312
310
 
313
311
  export default withAui(nextConfig);
314
312
 
@@ -328,16 +326,16 @@ export default withAui(nextConfig);
328
326
  "start": "next start"
329
327
  },
330
328
  "dependencies": {
331
- "@ai-sdk/openai": "^3.0.74",
329
+ "@ai-sdk/openai": "^4.0.14",
332
330
  "@assistant-ui/react": "workspace:*",
333
331
  "@assistant-ui/react-ai-sdk": "workspace:*",
334
332
  "@assistant-ui/react-markdown": "workspace:*",
335
333
  "@assistant-ui/ui": "workspace:*",
336
- "ai": "^6.0.209",
334
+ "ai": "^7.0.28",
337
335
  "class-variance-authority": "^0.7.1",
338
336
  "clsx": "^2.1.1",
339
- "lucide-react": "^1.21.0",
340
- "next": "^16.2.9",
337
+ "lucide-react": "^1.24.0",
338
+ "next": "^16.2.10",
341
339
  "react": "^19.2.7",
342
340
  "react-dom": "^19.2.7",
343
341
  "tailwind-merge": "^3.6.0"
@@ -345,14 +343,15 @@ export default withAui(nextConfig);
345
343
  "devDependencies": {
346
344
  "@assistant-ui/next": "workspace:*",
347
345
  "@assistant-ui/x-buildutils": "workspace:*",
348
- "@tailwindcss/postcss": "^4.3.1",
349
- "@types/node": "^26.0.0",
346
+ "@tailwindcss/postcss": "^4.3.2",
347
+ "@types/node": "^26.1.1",
350
348
  "@types/react": "^19.2.17",
351
349
  "@types/react-dom": "^19.2.3",
352
- "postcss": "^8.5.15",
353
- "tailwindcss": "^4.3.1",
350
+ "postcss": "^8.5.19",
351
+ "tailwindcss": "^4.3.2",
354
352
  "tw-animate-css": "^1.4.0",
355
- "typescript": "^6.0.3"
353
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
354
+ "typescript-7": "npm:typescript@^7.0.2"
356
355
  }
357
356
  }
358
357
 
@@ -415,7 +414,13 @@ npm run dev
415
414
  "@/components/assistant-ui/*": [
416
415
  "../../packages/ui/src/components/assistant-ui/*"
417
416
  ],
418
- "@/components/ui/*": ["../../packages/ui/src/components/ui/*"],
417
+ "@/components/ui/*": [
418
+ "../../packages/ui/src/components/ui/base/*",
419
+ "../../packages/ui/src/components/ui/radix/*"
420
+ ],
421
+ "@/components/ui/radix/*": [
422
+ "../../packages/ui/src/components/ui/radix/*"
423
+ ],
419
424
  "@/lib/utils": ["../../packages/ui/src/lib/utils"],
420
425
  "@assistant-ui/ui/*": ["../../packages/ui/src/*"]
421
426
  }