@assistant-ui/mcp-docs-server 0.1.33 → 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 (102) hide show
  1. package/.docs/organized/code-examples/waterfall.md +7 -7
  2. package/.docs/organized/code-examples/with-a2a.md +8 -8
  3. package/.docs/organized/code-examples/with-ag-ui.md +12 -12
  4. package/.docs/organized/code-examples/with-ai-sdk-v6.md +10 -10
  5. package/.docs/organized/code-examples/with-artifacts.md +40 -34
  6. package/.docs/organized/code-examples/with-assistant-transport.md +11 -11
  7. package/.docs/organized/code-examples/with-browser-extension.md +9 -9
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +72 -51
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +10 -10
  10. package/.docs/organized/code-examples/with-cloud.md +10 -10
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +10 -10
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +12 -12
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +12 -12
  14. package/.docs/organized/code-examples/with-expo.md +66 -31
  15. package/.docs/organized/code-examples/with-external-store.md +8 -8
  16. package/.docs/organized/code-examples/with-ffmpeg.md +13 -13
  17. package/.docs/organized/code-examples/with-generative-ui.md +98 -368
  18. package/.docs/organized/code-examples/with-google-adk.md +9 -9
  19. package/.docs/organized/code-examples/with-heat-graph.md +7 -7
  20. package/.docs/organized/code-examples/with-image-generation.md +10 -10
  21. package/.docs/organized/code-examples/with-interactables.md +10 -10
  22. package/.docs/organized/code-examples/with-langchain.md +10 -10
  23. package/.docs/organized/code-examples/with-langgraph.md +33 -29
  24. package/.docs/organized/code-examples/with-livekit.md +12 -12
  25. package/.docs/organized/code-examples/with-mcp.md +11 -11
  26. package/.docs/organized/code-examples/with-opencode.md +109 -583
  27. package/.docs/organized/code-examples/with-pi.md +2044 -0
  28. package/.docs/organized/code-examples/with-react-hook-form.md +11 -11
  29. package/.docs/organized/code-examples/with-react-ink-web.md +691 -0
  30. package/.docs/organized/code-examples/with-react-ink.md +309 -102
  31. package/.docs/organized/code-examples/with-react-router.md +14 -14
  32. package/.docs/organized/code-examples/with-resumable-stream.md +11 -11
  33. package/.docs/organized/code-examples/with-store.md +70 -66
  34. package/.docs/organized/code-examples/with-tanstack.md +25 -11
  35. package/.docs/organized/code-examples/with-tap-runtime.md +8 -8
  36. package/.docs/organized/code-examples/with-virtualized-thread.md +656 -0
  37. package/.docs/raw/docs/(docs)/architecture.mdx +65 -53
  38. package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +1 -1
  39. package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +3 -0
  40. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +44 -1
  41. package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +14 -3
  42. package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -1
  43. package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +2 -23
  44. package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +22 -0
  45. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +93 -9
  46. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +21 -86
  47. package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
  48. package/.docs/raw/docs/guides/index.mdx +3 -0
  49. package/.docs/raw/docs/guides/input-history.mdx +55 -0
  50. package/.docs/raw/docs/guides/virtualization.mdx +63 -0
  51. package/.docs/raw/docs/ink/adapters.mdx +23 -1
  52. package/.docs/raw/docs/ink/hooks.mdx +22 -19
  53. package/.docs/raw/docs/migrations/toolkit-tools.mdx +14 -8
  54. package/.docs/raw/docs/react-native/hooks.mdx +26 -18
  55. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +39 -0
  56. package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +3 -3
  57. package/.docs/raw/docs/runtimes/concepts/architecture.mdx +46 -4
  58. package/.docs/raw/docs/runtimes/concepts/stability.mdx +1 -1
  59. package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +54 -12
  60. package/.docs/raw/docs/runtimes/custom/data-stream.mdx +1 -1
  61. package/.docs/raw/docs/runtimes/custom/external-store.mdx +62 -4
  62. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +120 -4
  63. package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +9 -9
  64. package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +13 -0
  65. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +5 -5
  66. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +3 -3
  67. package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +6 -6
  68. package/.docs/raw/docs/tools/backend.mdx +19 -11
  69. package/.docs/raw/docs/tools/defining-tools.mdx +177 -52
  70. package/.docs/raw/docs/tools/index.mdx +7 -12
  71. package/.docs/raw/docs/tools/mcp.mdx +83 -15
  72. package/.docs/raw/docs/tools/multi-agent.mdx +5 -5
  73. package/.docs/raw/docs/tools/tool-ui.mdx +64 -28
  74. package/.docs/raw/docs/tools/user-managed-mcp.mdx +4 -4
  75. package/.docs/raw/docs/ui/dot-matrix.mdx +133 -0
  76. package/.docs/raw/docs/ui/mermaid.mdx +16 -9
  77. package/.docs/raw/docs/ui/model-selector.mdx +219 -52
  78. package/.docs/raw/docs/ui/number-roll.mdx +154 -0
  79. package/.docs/raw/docs/ui/part-grouping.mdx +2 -2
  80. package/.docs/raw/docs/ui/reasoning.mdx +3 -3
  81. package/.docs/raw/docs/ui/streamdown.mdx +2 -0
  82. package/.docs/raw/docs/ui/syntax-highlighting.mdx +1 -1
  83. package/.docs/raw/docs/ui/thread.mdx +52 -0
  84. package/.docs/raw/docs/ui/tool-fallback.mdx +16 -0
  85. package/.docs/raw/docs/utilities/react-o11y.mdx +2 -2
  86. package/dist/constants.js.map +1 -1
  87. package/dist/index.js.map +1 -1
  88. package/dist/prepare-docs/code-examples.js.map +1 -1
  89. package/dist/prepare-docs/copy-raw.js.map +1 -1
  90. package/dist/prepare-docs/prepare.js.map +1 -1
  91. package/dist/stdio.js.map +1 -1
  92. package/dist/tools/docs.js.map +1 -1
  93. package/dist/tools/examples.js.map +1 -1
  94. package/dist/tools/tests/test-setup.js.map +1 -1
  95. package/dist/utils/mdx.js.map +1 -1
  96. package/dist/utils/paths.js.map +1 -1
  97. package/package.json +4 -4
  98. /package/.docs/raw/docs/{(docs)/copilots → copilots}/assistant-frame.mdx +0 -0
  99. /package/.docs/raw/docs/{(docs)/copilots → copilots}/make-assistant-visible.mdx +0 -0
  100. /package/.docs/raw/docs/{(docs)/copilots → copilots}/model-context.mdx +0 -0
  101. /package/.docs/raw/docs/{(docs)/copilots → copilots}/motivation.mdx +0 -0
  102. /package/.docs/raw/docs/{(docs)/copilots → copilots}/use-assistant-instructions.mdx +0 -0
@@ -339,80 +339,84 @@ declare module "@assistant-ui/store" {
339
339
 
340
340
  import "./foo-scope";
341
341
 
342
- import { type ReactNode, useMemo } from "react";
343
- import { resource, tapMemo, tapState } from "@assistant-ui/tap";
342
+ import { type ReactNode, useMemo, useState } from "react";
343
+ import { resource } from "@assistant-ui/tap";
344
344
  import {
345
345
  useAui,
346
346
  useAuiState,
347
347
  AuiProvider,
348
- tapClientList,
348
+ useClientList,
349
349
  Derived,
350
- tapAssistantEmit,
350
+ useAssistantEmit,
351
351
  RenderChildrenWithAccessor,
352
352
  type ClientOutput,
353
353
  } from "@assistant-ui/store";
354
354
 
355
355
  type FooData = { id: string; bar: string };
356
356
 
357
- export const FooItemResource = resource(
358
- ({
359
- getInitialData,
360
- remove,
361
- }: tapClientList.ResourceProps<FooData>): ClientOutput<"foo"> => {
362
- const emit = tapAssistantEmit();
357
+ const useFooItemResource = ({
358
+ getInitialData,
359
+ remove,
360
+ }: useClientList.ResourceProps<FooData>): ClientOutput<"foo"> => {
361
+ const emit = useAssistantEmit();
363
362
 
364
- const [state, setState] = tapState<FooData>(getInitialData);
363
+ const [state, setState] = useState<FooData>(getInitialData);
365
364
 
366
- const updateBar = (newBar: string) => {
367
- setState({ ...state, bar: newBar });
368
- emit("foo.updated", { id: state.id, newValue: newBar });
369
- };
365
+ const updateBar = (newBar: string) => {
366
+ setState({ ...state, bar: newBar });
367
+ emit("foo.updated", { id: state.id, newValue: newBar });
368
+ };
370
369
 
371
- const handleRemove = () => {
372
- emit("foo.removed", { id: state.id });
373
- remove();
374
- };
370
+ const handleRemove = () => {
371
+ emit("foo.removed", { id: state.id });
372
+ remove();
373
+ };
375
374
 
376
- return {
377
- getState: () => state,
378
- updateBar,
379
- remove: handleRemove,
380
- };
381
- },
382
- );
375
+ return {
376
+ getState: () => state,
377
+ updateBar,
378
+ remove: handleRemove,
379
+ };
380
+ };
381
+
382
+ export const FooItemResource = resource(useFooItemResource);
383
383
 
384
384
  let counter = 3;
385
- export const FooListResource = resource(
386
- ({ initialValues }: { initialValues: boolean }): ClientOutput<"fooList"> => {
387
- const emit = tapAssistantEmit();
388
-
389
- const foos = tapClientList({
390
- initialValues: initialValues
391
- ? [
392
- { id: "foo-1", bar: "First Foo" },
393
- { id: "foo-2", bar: "Second Foo" },
394
- { id: "foo-3", bar: "Third Foo" },
395
- ]
396
- : [],
397
- getKey: (foo) => foo.id,
398
- resource: FooItemResource,
399
- });
385
+ const useFooListResource = ({
386
+ initialValues,
387
+ }: {
388
+ initialValues: boolean;
389
+ }): ClientOutput<"fooList"> => {
390
+ const emit = useAssistantEmit();
391
+
392
+ const foos = useClientList({
393
+ initialValues: initialValues
394
+ ? [
395
+ { id: "foo-1", bar: "First Foo" },
396
+ { id: "foo-2", bar: "Second Foo" },
397
+ { id: "foo-3", bar: "Third Foo" },
398
+ ]
399
+ : [],
400
+ getKey: (foo) => foo.id,
401
+ resource: FooItemResource,
402
+ });
400
403
 
401
- const addFoo = () => {
402
- const id = `foo-${++counter}`;
403
- foos.add({ id: id, bar: `New Foo` });
404
- emit("fooList.added", { id: id });
405
- };
404
+ const addFoo = () => {
405
+ const id = `foo-${++counter}`;
406
+ foos.add({ id: id, bar: `New Foo` });
407
+ emit("fooList.added", { id: id });
408
+ };
406
409
 
407
- const state = tapMemo(() => ({ foos: foos.state }), [foos.state]);
410
+ const state = useMemo(() => ({ foos: foos.state }), [foos.state]);
408
411
 
409
- return {
410
- getState: () => state,
411
- foo: foos.get,
412
- addFoo,
413
- };
414
- },
415
- );
412
+ return {
413
+ getState: () => state,
414
+ foo: foos.get,
415
+ addFoo,
416
+ };
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.6",
496
- "react": "^19.2.6",
497
- "react-dom": "^19.2.6"
499
+ "next": "^16.2.9",
500
+ "react": "^19.2.7",
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.1",
504
- "@types/react": "^19.2.15",
506
+ "@tailwindcss/postcss": "^4.3.1",
507
+ "@types/node": "^25.9.3",
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
  }
@@ -522,8 +526,8 @@ This is a Next.js application demonstrating the `@assistant-ui/store` package.
522
526
  ## Features Demonstrated
523
527
 
524
528
  - **Client Registry**: Module augmentation for type-safe client definitions
525
- - **tapClientList**: Managing lists with index and key lookup
526
- - **tapAssistantEmit**: Emitting and subscribing to scoped events
529
+ - **useClientList**: Managing lists with index and key lookup
530
+ - **useAssistantEmit**: Emitting and subscribing to scoped events
527
531
  - **Derived**: Creating derived client scopes from parent resources
528
532
  - **Provider Pattern**: Scoped access to list items via FooProvider
529
533
  - **Component Composition**: Render props pattern with components prop
@@ -587,10 +591,10 @@ declare module "@assistant-ui/store" {
587
591
 
588
592
  ```typescript
589
593
  const FooListResource = resource(
590
- ({ initialValues }): ClientOutput<"fooList"> => {
591
- const emit = tapAssistantEmit();
594
+ function FooListResource({ initialValues }): ClientOutput<"fooList"> {
595
+ const emit = useAssistantEmit();
592
596
 
593
- const foos = tapClientList({
597
+ const foos = useClientList({
594
598
  initialValues: initialValues ? [/* ... */] : [],
595
599
  getKey: (foo) => foo.id,
596
600
  resource: FooItemResource,
@@ -64,29 +64,29 @@
64
64
  "dependencies": {
65
65
  "@assistant-ui/react": "workspace:*",
66
66
  "@assistant-ui/react-markdown": "workspace:*",
67
- "@tailwindcss/vite": "^4.3.0",
68
- "@tanstack/react-router": "^1.170.10",
69
- "@tanstack/react-start": "^1.168.18",
67
+ "@tailwindcss/vite": "^4.3.1",
68
+ "@tanstack/react-router": "^1.170.15",
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
- "openai": "^6.39.1",
75
- "react": "^19.2.6",
76
- "react-dom": "^19.2.6",
74
+ "openai": "^6.42.0",
75
+ "react": "^19.2.7",
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.1",
85
- "@types/react": "^19.2.15",
84
+ "@types/node": "^25.9.3",
85
+ "@types/react": "^19.2.17",
86
86
  "@types/react-dom": "^19.2.3",
87
87
  "@vitejs/plugin-react": "^6.0.2",
88
88
  "typescript": "^6.0.3",
89
- "vite": "^8.0.14"
89
+ "vite": "^8.0.16"
90
90
  }
91
91
  }
92
92
 
@@ -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,21 +602,21 @@ 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.6",
607
- "react": "^19.2.6",
608
- "react-dom": "^19.2.6",
605
+ "lucide-react": "^1.18.0",
606
+ "next": "^16.2.9",
607
+ "react": "^19.2.7",
608
+ "react-dom": "^19.2.7",
609
609
  "tailwind-merge": "^3.6.0"
610
610
  },
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.1",
616
- "@types/react": "^19.2.15",
614
+ "@tailwindcss/postcss": "^4.3.1",
615
+ "@types/node": "^25.9.3",
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
  }