@assistant-ui/mcp-docs-server 0.1.34 → 0.1.35

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 (64) hide show
  1. package/.docs/organized/code-examples/waterfall.md +4 -4
  2. package/.docs/organized/code-examples/with-a2a.md +5 -5
  3. package/.docs/organized/code-examples/with-ag-ui.md +6 -6
  4. package/.docs/organized/code-examples/with-ai-sdk-v6.md +7 -7
  5. package/.docs/organized/code-examples/with-artifacts.md +7 -7
  6. package/.docs/organized/code-examples/with-assistant-transport.md +5 -5
  7. package/.docs/organized/code-examples/with-browser-extension.md +5 -5
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +8 -8
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +7 -7
  10. package/.docs/organized/code-examples/with-cloud.md +7 -7
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +7 -7
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +9 -9
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +9 -9
  14. package/.docs/organized/code-examples/with-expo.md +43 -17
  15. package/.docs/organized/code-examples/with-external-store.md +5 -5
  16. package/.docs/organized/code-examples/with-ffmpeg.md +7 -7
  17. package/.docs/organized/code-examples/with-generative-ui.md +32 -308
  18. package/.docs/organized/code-examples/with-google-adk.md +5 -5
  19. package/.docs/organized/code-examples/with-heat-graph.md +4 -4
  20. package/.docs/organized/code-examples/with-image-generation.md +7 -7
  21. package/.docs/organized/code-examples/with-interactables.md +7 -7
  22. package/.docs/organized/code-examples/with-langchain.md +7 -7
  23. package/.docs/organized/code-examples/with-langgraph.md +6 -6
  24. package/.docs/organized/code-examples/with-livekit.md +9 -9
  25. package/.docs/organized/code-examples/with-mcp.md +7 -7
  26. package/.docs/organized/code-examples/with-opencode.md +106 -580
  27. package/.docs/organized/code-examples/with-pi.md +2044 -0
  28. package/.docs/organized/code-examples/with-react-hook-form.md +8 -8
  29. package/.docs/organized/code-examples/with-react-ink-web.md +691 -0
  30. package/.docs/organized/code-examples/with-react-ink.md +28 -16
  31. package/.docs/organized/code-examples/with-react-router.md +5 -5
  32. package/.docs/organized/code-examples/with-resumable-stream.md +8 -8
  33. package/.docs/organized/code-examples/with-store.md +14 -10
  34. package/.docs/organized/code-examples/with-tanstack.md +18 -4
  35. package/.docs/organized/code-examples/with-tap-runtime.md +5 -5
  36. package/.docs/organized/code-examples/with-virtualized-thread.md +656 -0
  37. package/.docs/raw/docs/(docs)/architecture.mdx +13 -12
  38. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +44 -1
  39. package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -1
  40. package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +2 -23
  41. package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +22 -0
  42. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +0 -7
  43. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +20 -21
  44. package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
  45. package/.docs/raw/docs/guides/index.mdx +3 -0
  46. package/.docs/raw/docs/guides/input-history.mdx +55 -0
  47. package/.docs/raw/docs/guides/virtualization.mdx +63 -0
  48. package/.docs/raw/docs/ink/hooks.mdx +2 -2
  49. package/.docs/raw/docs/react-native/hooks.mdx +1 -1
  50. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +1 -3
  51. package/.docs/raw/docs/runtimes/concepts/stability.mdx +1 -1
  52. package/.docs/raw/docs/runtimes/custom/data-stream.mdx +1 -1
  53. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +108 -4
  54. package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +6 -6
  55. package/.docs/raw/docs/tools/tool-ui.mdx +37 -1
  56. package/.docs/raw/docs/ui/dot-matrix.mdx +133 -0
  57. package/.docs/raw/docs/ui/model-selector.mdx +219 -52
  58. package/.docs/raw/docs/ui/number-roll.mdx +154 -0
  59. package/.docs/raw/docs/ui/reasoning.mdx +3 -3
  60. package/.docs/raw/docs/ui/streamdown.mdx +2 -0
  61. package/.docs/raw/docs/ui/syntax-highlighting.mdx +1 -1
  62. package/.docs/raw/docs/ui/thread.mdx +52 -0
  63. package/.docs/raw/docs/ui/tool-fallback.mdx +2 -2
  64. package/package.json +3 -3
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/react": "^19.2.17",
24
- "esbuild": "^0.28.0",
24
+ "esbuild": "^0.28.1",
25
25
  "tsx": "^4.22.4",
26
26
  "typescript": "^6.0.3"
27
27
  }
@@ -38,10 +38,12 @@ import {
38
38
  AssistantRuntimeProvider,
39
39
  useLocalRuntime,
40
40
  StatusBarPrimitive,
41
+ Tools,
42
+ useAui,
41
43
  } from "@assistant-ui/react-ink";
42
44
  import { Thread } from "./components/thread.js";
43
45
  import { createScriptedAdapter, MODEL_NAME } from "./scripted-adapter.js";
44
- import { ApplyPatchToolUI } from "./tools.js";
46
+ import toolkit from "./tools.js";
45
47
 
46
48
  const StatusBar = () => (
47
49
  <StatusBarPrimitive.Root>
@@ -55,10 +57,12 @@ const StatusBar = () => (
55
57
  export const App = () => {
56
58
  const adapter = useMemo(() => createScriptedAdapter(), []);
57
59
  const runtime = useLocalRuntime(adapter);
60
+ const aui = useAui({
61
+ tools: Tools({ toolkit }),
62
+ });
58
63
 
59
64
  return (
60
- <AssistantRuntimeProvider runtime={runtime}>
61
- <ApplyPatchToolUI />
65
+ <AssistantRuntimeProvider aui={aui} runtime={runtime}>
62
66
  <Box flexDirection="column" padding={1}>
63
67
  <Box>
64
68
  <Text bold color="cyan">
@@ -417,21 +421,29 @@ export const createScriptedAdapter = (): ChatModelAdapter => ({
417
421
 
418
422
  ```tsx
419
423
  import { Box, Text } from "ink";
420
- import { makeAssistantToolUI, DiffView } from "@assistant-ui/react-ink";
424
+ import {
425
+ defineToolkit,
426
+ DiffView,
427
+ type ToolCallMessagePartComponent,
428
+ } from "@assistant-ui/react-ink";
421
429
 
422
- export const ApplyPatchToolUI = makeAssistantToolUI<
430
+ const ApplyPatchToolUI: ToolCallMessagePartComponent<
423
431
  { path: string; patch: string },
424
432
  unknown
425
- >({
426
- toolName: "apply_patch",
427
- render: ({ args }) => {
428
- if (!args?.patch) return null;
429
- return (
430
- <Box flexDirection="column" marginBottom={1}>
431
- <Text color="cyan">edit {args.path}</Text>
432
- <DiffView patch={args.patch} showLineNumbers />
433
- </Box>
434
- );
433
+ > = ({ args }) => {
434
+ if (!args?.patch) return null;
435
+ return (
436
+ <Box flexDirection="column" marginBottom={1}>
437
+ <Text color="cyan">edit {args.path}</Text>
438
+ <DiffView patch={args.patch} showLineNumbers />
439
+ </Box>
440
+ );
441
+ };
442
+
443
+ export default defineToolkit({
444
+ apply_patch: {
445
+ type: "backend",
446
+ render: ApplyPatchToolUI,
435
447
  },
436
448
  });
437
449
 
@@ -778,8 +778,8 @@ export default function Home() {
778
778
  "class-variance-authority": "^0.7.1",
779
779
  "clsx": "^2.1.1",
780
780
  "eventsource-parser": "^3.1.0",
781
- "isbot": "^5.1.41",
782
- "lucide-react": "^1.17.0",
781
+ "isbot": "^5.1.42",
782
+ "lucide-react": "^1.18.0",
783
783
  "openai": "^6.42.0",
784
784
  "react": "^19.2.7",
785
785
  "react-dom": "^19.2.7",
@@ -789,11 +789,11 @@ export default function Home() {
789
789
  },
790
790
  "devDependencies": {
791
791
  "@react-router/dev": "^7.17.0",
792
- "@tailwindcss/vite": "^4.3.0",
793
- "@types/node": "^25.9.2",
792
+ "@tailwindcss/vite": "^4.3.1",
793
+ "@types/node": "^25.9.3",
794
794
  "@types/react": "^19.2.17",
795
795
  "@types/react-dom": "^19.2.3",
796
- "tailwindcss": "^4.3.0",
796
+ "tailwindcss": "^4.3.1",
797
797
  "tw-animate-css": "^1.4.0",
798
798
  "typescript": "^6.0.3",
799
799
  "vite": "^8.0.16",
@@ -514,20 +514,20 @@ export default withAui(nextConfig);
514
514
  "start": "next start"
515
515
  },
516
516
  "dependencies": {
517
- "@ai-sdk/openai": "^3.0.68",
518
- "@ai-sdk/react": "^3.0.199",
517
+ "@ai-sdk/openai": "^3.0.71",
518
+ "@ai-sdk/react": "^3.0.206",
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": "^6.0.197",
525
+ "ai": "^6.0.204",
526
526
  "assistant-stream": "workspace:*",
527
527
  "class-variance-authority": "^0.7.1",
528
528
  "clsx": "^2.1.1",
529
- "lucide-react": "^1.17.0",
530
- "next": "^16.2.7",
529
+ "lucide-react": "^1.18.0",
530
+ "next": "^16.2.9",
531
531
  "react": "^19.2.7",
532
532
  "react-dom": "^19.2.7",
533
533
  "redis": "^6.0.0",
@@ -537,12 +537,12 @@ export default withAui(nextConfig);
537
537
  "devDependencies": {
538
538
  "@assistant-ui/next": "workspace:*",
539
539
  "@assistant-ui/x-buildutils": "workspace:*",
540
- "@tailwindcss/postcss": "^4.3.0",
541
- "@types/node": "^25.9.2",
540
+ "@tailwindcss/postcss": "^4.3.1",
541
+ "@types/node": "^25.9.3",
542
542
  "@types/react": "^19.2.17",
543
543
  "@types/react-dom": "^19.2.3",
544
544
  "postcss": "^8.5.15",
545
- "tailwindcss": "^4.3.0",
545
+ "tailwindcss": "^4.3.1",
546
546
  "tw-animate-css": "^1.4.0",
547
547
  "typescript": "^6.0.3"
548
548
  }
@@ -354,10 +354,10 @@ import {
354
354
 
355
355
  type FooData = { id: string; bar: string };
356
356
 
357
- export const FooItemResource = resource(function FooItemResource({
357
+ const useFooItemResource = ({
358
358
  getInitialData,
359
359
  remove,
360
- }: useClientList.ResourceProps<FooData>): ClientOutput<"foo"> {
360
+ }: useClientList.ResourceProps<FooData>): ClientOutput<"foo"> => {
361
361
  const emit = useAssistantEmit();
362
362
 
363
363
  const [state, setState] = useState<FooData>(getInitialData);
@@ -377,14 +377,16 @@ export const FooItemResource = resource(function FooItemResource({
377
377
  updateBar,
378
378
  remove: handleRemove,
379
379
  };
380
- });
380
+ };
381
+
382
+ export const FooItemResource = resource(useFooItemResource);
381
383
 
382
384
  let counter = 3;
383
- export const FooListResource = resource(function FooListResource({
385
+ const useFooListResource = ({
384
386
  initialValues,
385
387
  }: {
386
388
  initialValues: boolean;
387
- }): ClientOutput<"fooList"> {
389
+ }): ClientOutput<"fooList"> => {
388
390
  const emit = useAssistantEmit();
389
391
 
390
392
  const foos = useClientList({
@@ -412,7 +414,9 @@ export const FooListResource = resource(function FooListResource({
412
414
  foo: foos.get,
413
415
  addFoo,
414
416
  };
415
- });
417
+ };
418
+
419
+ export const FooListResource = resource(useFooListResource);
416
420
 
417
421
  const FooProvider = ({
418
422
  index,
@@ -492,19 +496,19 @@ export default withAui(nextConfig);
492
496
  "dependencies": {
493
497
  "@assistant-ui/store": "workspace:*",
494
498
  "@assistant-ui/tap": "workspace:*",
495
- "next": "^16.2.7",
499
+ "next": "^16.2.9",
496
500
  "react": "^19.2.7",
497
501
  "react-dom": "^19.2.7"
498
502
  },
499
503
  "devDependencies": {
500
504
  "@assistant-ui/next": "workspace:*",
501
505
  "@assistant-ui/x-buildutils": "workspace:*",
502
- "@tailwindcss/postcss": "^4.3.0",
503
- "@types/node": "^25.9.2",
506
+ "@tailwindcss/postcss": "^4.3.1",
507
+ "@types/node": "^25.9.3",
504
508
  "@types/react": "^19.2.17",
505
509
  "@types/react-dom": "^19.2.3",
506
510
  "postcss": "^8.5.15",
507
- "tailwindcss": "^4.3.0",
511
+ "tailwindcss": "^4.3.1",
508
512
  "tw-animate-css": "^1.4.0",
509
513
  "typescript": "^6.0.3"
510
514
  }
@@ -64,24 +64,24 @@
64
64
  "dependencies": {
65
65
  "@assistant-ui/react": "workspace:*",
66
66
  "@assistant-ui/react-markdown": "workspace:*",
67
- "@tailwindcss/vite": "^4.3.0",
67
+ "@tailwindcss/vite": "^4.3.1",
68
68
  "@tanstack/react-router": "^1.170.15",
69
69
  "@tanstack/react-start": "^1.168.25",
70
70
  "class-variance-authority": "^0.7.1",
71
71
  "clsx": "^2.1.1",
72
- "lucide-react": "^1.17.0",
72
+ "lucide-react": "^1.18.0",
73
73
  "nitro": "^3.0.260311-beta",
74
74
  "openai": "^6.42.0",
75
75
  "react": "^19.2.7",
76
76
  "react-dom": "^19.2.7",
77
77
  "remark-gfm": "^4.0.1",
78
78
  "tailwind-merge": "^3.6.0",
79
- "tailwindcss": "^4.3.0",
79
+ "tailwindcss": "^4.3.1",
80
80
  "vite-tsconfig-paths": "^6.1.1"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@assistant-ui/x-buildutils": "workspace:*",
84
- "@types/node": "^25.9.2",
84
+ "@types/node": "^25.9.3",
85
85
  "@types/react": "^19.2.17",
86
86
  "@types/react-dom": "^19.2.3",
87
87
  "@vitejs/plugin-react": "^6.0.2",
@@ -764,11 +764,25 @@ import tailwindcss from "@tailwindcss/vite";
764
764
  import { nitro } from "nitro/vite";
765
765
 
766
766
  const config = defineConfig({
767
+ build: {
768
+ rolldownOptions: {
769
+ external: ["shiki/wasm"],
770
+ },
771
+ },
772
+ ssr: {
773
+ external: ["shiki/wasm"],
774
+ },
767
775
  plugins: [
768
776
  nitro({
769
777
  output: {
770
778
  dir: "dist",
771
779
  },
780
+ // Nitro enables wasm by default, which adds the "unwasm" export
781
+ // condition. That routes `shiki/wasm` to its raw `onig.wasm` file, which
782
+ // Vite/Rolldown cannot load during the SSR build ([UNLOADABLE_DEPENDENCY]).
783
+ // Disabling it resolves `shiki/wasm` to its base64-inlined default — same
784
+ // Oniguruma engine, no separate .wasm asset.
785
+ wasm: false,
772
786
  }),
773
787
  viteTsConfigPaths({
774
788
  projects: ["./tsconfig.json", "../../packages/ui/tsconfig.json"],
@@ -602,8 +602,8 @@ export default withAui(nextConfig);
602
602
  "@assistant-ui/ui": "workspace:*",
603
603
  "class-variance-authority": "^0.7.1",
604
604
  "clsx": "^2.1.1",
605
- "lucide-react": "^1.17.0",
606
- "next": "^16.2.7",
605
+ "lucide-react": "^1.18.0",
606
+ "next": "^16.2.9",
607
607
  "react": "^19.2.7",
608
608
  "react-dom": "^19.2.7",
609
609
  "tailwind-merge": "^3.6.0"
@@ -611,12 +611,12 @@ export default withAui(nextConfig);
611
611
  "devDependencies": {
612
612
  "@assistant-ui/next": "workspace:*",
613
613
  "@assistant-ui/x-buildutils": "workspace:*",
614
- "@tailwindcss/postcss": "^4.3.0",
615
- "@types/node": "^25.9.2",
614
+ "@tailwindcss/postcss": "^4.3.1",
615
+ "@types/node": "^25.9.3",
616
616
  "@types/react": "^19.2.17",
617
617
  "@types/react-dom": "^19.2.3",
618
618
  "postcss": "^8.5.15",
619
- "tailwindcss": "^4.3.0",
619
+ "tailwindcss": "^4.3.1",
620
620
  "tw-animate-css": "^1.4.0",
621
621
  "typescript": "^6.0.3"
622
622
  }