@assistant-ui/mcp-docs-server 0.1.3 → 0.1.5

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 (48) hide show
  1. package/.docs/organized/code-examples/local-ollama.md +13 -13
  2. package/.docs/organized/code-examples/search-agent-for-e-commerce.md +18 -18
  3. package/.docs/organized/code-examples/{with-vercel-ai-rsc.md → with-ai-sdk-v5.md} +225 -230
  4. package/.docs/organized/code-examples/with-ai-sdk.md +13 -13
  5. package/.docs/organized/code-examples/with-cloud.md +12 -12
  6. package/.docs/organized/code-examples/with-external-store.md +9 -9
  7. package/.docs/organized/code-examples/with-ffmpeg.md +19 -19
  8. package/.docs/organized/code-examples/with-langgraph.md +14 -14
  9. package/.docs/organized/code-examples/with-openai-assistants.md +12 -12
  10. package/.docs/organized/code-examples/with-parent-id-grouping.md +1374 -0
  11. package/.docs/organized/code-examples/with-react-hook-form.md +18 -18
  12. package/.docs/raw/docs/about-assistantui.mdx +9 -0
  13. package/.docs/raw/docs/api-reference/context-providers/{TextContentPartProvider.mdx → TextMessagePartProvider.mdx} +3 -3
  14. package/.docs/raw/docs/api-reference/integrations/react-hook-form.mdx +2 -2
  15. package/.docs/raw/docs/api-reference/overview.mdx +23 -23
  16. package/.docs/raw/docs/api-reference/primitives/Error.mdx +5 -3
  17. package/.docs/raw/docs/api-reference/primitives/Message.mdx +32 -0
  18. package/.docs/raw/docs/api-reference/primitives/{ContentPart.mdx → MessagePart.mdx} +41 -41
  19. package/.docs/raw/docs/api-reference/runtimes/MessagePartRuntime.mdx +22 -0
  20. package/.docs/raw/docs/api-reference/runtimes/ThreadListRuntime.mdx +1 -0
  21. package/.docs/raw/docs/api-reference/runtimes/ThreadRuntime.mdx +1 -0
  22. package/.docs/raw/docs/cloud/persistence/ai-sdk.mdx +89 -32
  23. package/.docs/raw/docs/cloud/persistence/langgraph.mdx +187 -32
  24. package/.docs/raw/docs/concepts/runtime-layer.mdx +7 -7
  25. package/.docs/raw/docs/copilots/make-assistant-tool-ui.mdx +22 -13
  26. package/.docs/raw/docs/copilots/make-assistant-tool.mdx +20 -14
  27. package/.docs/raw/docs/getting-started.mdx +11 -10
  28. package/.docs/raw/docs/guides/Attachments.mdx +24 -21
  29. package/.docs/raw/docs/guides/Latex.mdx +81 -0
  30. package/.docs/raw/docs/guides/ToolUI.mdx +13 -8
  31. package/.docs/raw/docs/migrations/v0-11.mdx +169 -0
  32. package/.docs/raw/docs/migrations/v0-7.mdx +8 -8
  33. package/.docs/raw/docs/migrations/v0-8.mdx +14 -14
  34. package/.docs/raw/docs/migrations/v0-9.mdx +3 -3
  35. package/.docs/raw/docs/runtimes/ai-sdk/rsc.mdx +2 -2
  36. package/.docs/raw/docs/runtimes/ai-sdk/use-assistant-hook.mdx +1 -1
  37. package/.docs/raw/docs/runtimes/ai-sdk/use-chat-hook.mdx +2 -2
  38. package/.docs/raw/docs/runtimes/ai-sdk/use-chat-v5.mdx +129 -0
  39. package/.docs/raw/docs/runtimes/ai-sdk/use-chat.mdx +3 -3
  40. package/.docs/raw/docs/runtimes/custom/external-store.mdx +5 -5
  41. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +2 -2
  42. package/.docs/raw/docs/ui/Attachment.mdx +5 -2
  43. package/.docs/raw/docs/ui/Markdown.mdx +2 -3
  44. package/.docs/raw/docs/ui/PartGrouping.mdx +540 -0
  45. package/.docs/raw/docs/ui/ToolFallback.mdx +2 -2
  46. package/.docs/raw/docs/ui/ToolGroup.mdx +96 -0
  47. package/package.json +8 -8
  48. package/.docs/raw/docs/api-reference/runtimes/ContentPartRuntime.mdx +0 -22
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```typescript
6
6
  import { ollama } from "ollama-ai-provider";
7
- import { frontendTools } from "@assistant-ui/react-ai-sdk";
7
+ import { frontendTools } from "@assistant-ui/react-ai-sdk-v4";
8
8
  import { streamText } from "ai";
9
9
 
10
10
  export const runtime = "edge";
@@ -35,7 +35,7 @@ export async function POST(req: Request) {
35
35
  "use client";
36
36
 
37
37
  import { AssistantRuntimeProvider } from "@assistant-ui/react";
38
- import { useChatRuntime } from "@assistant-ui/react-ai-sdk";
38
+ import { useChatRuntime } from "@assistant-ui/react-ai-sdk-v4";
39
39
  import { Thread } from "@/components/assistant-ui/thread";
40
40
 
41
41
  export const Assistant = () => {
@@ -651,7 +651,7 @@ const UserMessage: FC = () => {
651
651
  <UserActionBar />
652
652
 
653
653
  <div className="bg-muted text-foreground col-start-2 row-start-2 max-w-[calc(var(--thread-max-width)*0.8)] break-words rounded-3xl px-5 py-2.5">
654
- <MessagePrimitive.Content />
654
+ <MessagePrimitive.Parts />
655
655
  </div>
656
656
 
657
657
  <BranchPicker className="col-span-full col-start-1 row-start-3 -mr-1 justify-end" />
@@ -696,7 +696,7 @@ const AssistantMessage: FC = () => {
696
696
  return (
697
697
  <MessagePrimitive.Root className="relative grid w-full max-w-[var(--thread-max-width)] grid-cols-[auto_auto_1fr] grid-rows-[auto_1fr] py-4">
698
698
  <div className="text-foreground col-span-2 col-start-2 row-start-1 my-1.5 max-w-[calc(var(--thread-max-width)*0.8)] break-words leading-7">
699
- <MessagePrimitive.Content components={{ Text: MarkdownText }} />
699
+ <MessagePrimitive.Parts components={{ Text: MarkdownText }} />
700
700
  </div>
701
701
 
702
702
  <AssistantActionBar />
@@ -1005,22 +1005,22 @@ export default nextConfig;
1005
1005
  },
1006
1006
  "dependencies": {
1007
1007
  "@assistant-ui/react": "workspace:*",
1008
- "@assistant-ui/react-ai-sdk": "workspace:*",
1008
+ "@assistant-ui/react-ai-sdk-v4": "workspace:*",
1009
1009
  "@assistant-ui/react-markdown": "workspace:*",
1010
1010
  "@radix-ui/react-slot": "^1.2.3",
1011
1011
  "@radix-ui/react-tooltip": "^1.2.7",
1012
1012
  "ai": "^4.3.16",
1013
1013
  "class-variance-authority": "^0.7.1",
1014
1014
  "clsx": "^2.1.1",
1015
- "lucide-react": "^0.515.0",
1016
- "next": "15.3.3",
1015
+ "lucide-react": "^0.535.0",
1016
+ "next": "15.4.5",
1017
1017
  "ollama-ai-provider": "^1.2.0",
1018
- "react": "19.1.0",
1019
- "react-dom": "19.1.0",
1018
+ "react": "19.1.1",
1019
+ "react-dom": "19.1.1",
1020
1020
  "remark-gfm": "^4.0.1",
1021
1021
  "tailwind-merge": "^3.3.1",
1022
- "tw-animate-css": "^1.3.4",
1023
- "zod": "^3.25.64"
1022
+ "tw-animate-css": "^1.3.6",
1023
+ "zod": "^4.0.14"
1024
1024
  },
1025
1025
  "devDependencies": {
1026
1026
  "@assistant-ui/x-buildutils": "workspace:*",
@@ -1028,9 +1028,9 @@ export default nextConfig;
1028
1028
  "@types/react": "^19",
1029
1029
  "@types/react-dom": "^19",
1030
1030
  "eslint": "^9",
1031
- "eslint-config-next": "15.3.3",
1031
+ "eslint-config-next": "15.4.5",
1032
1032
  "postcss": "^8",
1033
- "tailwindcss": "^4.1.10",
1033
+ "tailwindcss": "^4.1.11",
1034
1034
  "typescript": "^5"
1035
1035
  }
1036
1036
  }
@@ -410,7 +410,7 @@ import {
410
410
  type AppendMessage,
411
411
  AssistantRuntimeProvider,
412
412
  } from "@assistant-ui/react";
413
- import { useVercelRSCRuntime } from "@assistant-ui/react-ai-sdk";
413
+ import { useVercelRSCRuntime } from "@assistant-ui/react-ai-sdk-v4";
414
414
  import { useActions, useUIState } from "ai/rsc";
415
415
  import { nanoid } from "nanoid";
416
416
 
@@ -618,7 +618,7 @@ import {
618
618
  import { cn } from "@/lib/utils";
619
619
  import { ArrowDownIcon, SendHorizontalIcon } from "lucide-react";
620
620
  import Image from "next/image";
621
- import { RSCDisplay } from "@assistant-ui/react-ai-sdk";
621
+ import { RSCDisplay } from "@assistant-ui/react-ai-sdk-v4";
622
622
 
623
623
  export const Thread: FC = () => {
624
624
  return (
@@ -739,7 +739,7 @@ const UserMessage: FC = () => {
739
739
  <MessagePrimitive.Root className="relative mb-6 flex w-full max-w-2xl flex-col items-end gap-2 pl-24">
740
740
  <div className="relative mr-1 flex items-start gap-3">
741
741
  <p className="bg-foreground/5 text-foreground max-w-xl whitespace-pre-line break-words rounded-3xl px-5 py-2.5">
742
- <MessagePrimitive.Content components={{ Text: RSCDisplay }} />
742
+ <MessagePrimitive.Parts components={{ Text: RSCDisplay }} />
743
743
  </p>
744
744
  </div>
745
745
  </MessagePrimitive.Root>
@@ -755,7 +755,7 @@ const AssistantMessage: FC = () => {
755
755
 
756
756
  <div className="mt-2 flex-grow">
757
757
  <p className="text-foreground max-w-xl whitespace-pre-line break-words">
758
- <MessagePrimitive.Content components={{ Text: RSCDisplay }} />
758
+ <MessagePrimitive.Parts components={{ Text: RSCDisplay }} />
759
759
  </p>
760
760
  </div>
761
761
  </MessagePrimitive.Root>
@@ -1575,7 +1575,7 @@ export default nextConfig;
1575
1575
  "dependencies": {
1576
1576
  "@ai-sdk/openai": "^1.3.22",
1577
1577
  "@assistant-ui/react": "workspace:*",
1578
- "@assistant-ui/react-ai-sdk": "workspace:*",
1578
+ "@assistant-ui/react-ai-sdk-v4": "workspace:*",
1579
1579
  "@radix-ui/react-avatar": "^1.1.10",
1580
1580
  "@radix-ui/react-popover": "^1.1.14",
1581
1581
  "@radix-ui/react-slot": "^1.2.3",
@@ -1585,25 +1585,25 @@ export default nextConfig;
1585
1585
  "clsx": "^2.1.1",
1586
1586
  "embla-carousel-autoplay": "^8.6.0",
1587
1587
  "embla-carousel-react": "^8.6.0",
1588
- "lucide-react": "^0.515.0",
1588
+ "lucide-react": "^0.535.0",
1589
1589
  "nanoid": "5.1.5",
1590
- "next": "15.3.3",
1591
- "react": "19.1.0",
1592
- "react-dom": "19.1.0",
1590
+ "next": "15.4.5",
1591
+ "react": "19.1.1",
1592
+ "react-dom": "19.1.1",
1593
1593
  "tailwind-merge": "^3.3.1",
1594
- "tw-animate-css": "^1.3.4",
1595
- "zod": "^3.25.64"
1594
+ "tw-animate-css": "^1.3.6",
1595
+ "zod": "^4.0.14"
1596
1596
  },
1597
1597
  "devDependencies": {
1598
1598
  "@assistant-ui/x-buildutils": "workspace:*",
1599
- "@types/node": "^24.0.1",
1600
- "@types/react": "^19.1.8",
1601
- "@types/react-dom": "^19.1.6",
1599
+ "@types/node": "^24.1.0",
1600
+ "@types/react": "^19.1.9",
1601
+ "@types/react-dom": "^19.1.7",
1602
1602
  "eslint": "^9",
1603
- "eslint-config-next": "15.3.3",
1604
- "postcss": "^8.5.5",
1605
- "tailwindcss": "^4.1.10",
1606
- "typescript": "^5.8.3"
1603
+ "eslint-config-next": "15.4.5",
1604
+ "postcss": "^8.5.6",
1605
+ "tailwindcss": "^4.1.11",
1606
+ "typescript": "^5.9.2"
1607
1607
  }
1608
1608
  }
1609
1609