@assistant-ui/mcp-docs-server 0.1.17 → 0.1.19
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.
- package/.docs/organized/code-examples/with-ag-ui.md +518 -234
- package/.docs/organized/code-examples/{with-ai-sdk-v5.md → with-ai-sdk-v6.md} +476 -189
- package/.docs/organized/code-examples/with-assistant-transport.md +503 -301
- package/.docs/organized/code-examples/with-cloud.md +524 -226
- package/.docs/organized/code-examples/with-custom-thread-list.md +433 -146
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +2241 -0
- package/.docs/organized/code-examples/with-external-store.md +517 -231
- package/.docs/organized/code-examples/with-ffmpeg.md +500 -220
- package/.docs/organized/code-examples/with-langgraph.md +630 -319
- package/.docs/organized/code-examples/with-parent-id-grouping.md +517 -231
- package/.docs/organized/code-examples/with-react-hook-form.md +517 -233
- package/.docs/organized/code-examples/with-react-router.md +2167 -0
- package/.docs/organized/code-examples/{store-example.md → with-store.md} +18 -22
- package/.docs/organized/code-examples/with-tanstack.md +23 -41
- package/.docs/raw/blog/2025-01-31-changelog/index.mdx +0 -2
- package/.docs/raw/docs/{about-assistantui.mdx → (docs)/about-assistantui.mdx} +2 -1
- package/.docs/raw/docs/{architecture.mdx → (docs)/architecture.mdx} +3 -2
- package/.docs/raw/docs/{cli.mdx → (docs)/cli.mdx} +1 -19
- package/.docs/raw/docs/{copilots → (docs)/copilots}/make-assistant-readable.mdx +1 -0
- package/.docs/raw/docs/{copilots → (docs)/copilots}/make-assistant-tool-ui.mdx +2 -1
- package/.docs/raw/docs/{copilots → (docs)/copilots}/make-assistant-tool.mdx +2 -1
- package/.docs/raw/docs/{copilots → (docs)/copilots}/model-context.mdx +1 -0
- package/.docs/raw/docs/{copilots → (docs)/copilots}/motivation.mdx +1 -0
- package/.docs/raw/docs/{copilots → (docs)/copilots}/use-assistant-instructions.mdx +1 -0
- package/.docs/raw/docs/{devtools.mdx → (docs)/devtools.mdx} +4 -4
- package/.docs/raw/docs/{guides/Attachments.mdx → (docs)/guides/attachments.mdx} +4 -5
- package/.docs/raw/docs/{guides/Branching.mdx → (docs)/guides/branching.mdx} +2 -1
- package/.docs/raw/docs/{guides → (docs)/guides}/context-api.mdx +1 -0
- package/.docs/raw/docs/(docs)/guides/dictation.mdx +370 -0
- package/.docs/raw/docs/{guides/Editing.mdx → (docs)/guides/editing.mdx} +1 -0
- package/.docs/raw/docs/{guides/Latex.mdx → (docs)/guides/latex.mdx} +1 -2
- package/.docs/raw/docs/{guides/Speech.mdx → (docs)/guides/speech.mdx} +9 -10
- package/.docs/raw/docs/{guides/ToolUI.mdx → (docs)/guides/tool-ui.mdx} +15 -14
- package/.docs/raw/docs/{guides/Tools.mdx → (docs)/guides/tools.mdx} +10 -7
- package/.docs/raw/docs/{getting-started.mdx → (docs)/index.mdx} +17 -22
- package/.docs/raw/docs/{mcp-docs-server.mdx → (docs)/mcp-docs-server.mdx} +1 -2
- package/.docs/raw/docs/{api-reference/context-providers/AssistantRuntimeProvider.mdx → (reference)/api-reference/context-providers/assistant-runtime-provider.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/context-providers/TextMessagePartProvider.mdx → (reference)/api-reference/context-providers/text-message-part-provider.mdx} +2 -1
- package/.docs/raw/docs/{api-reference → (reference)/api-reference}/integrations/react-data-stream.mdx +2 -1
- package/.docs/raw/docs/{api-reference → (reference)/api-reference}/integrations/react-hook-form.mdx +2 -1
- package/.docs/raw/docs/{api-reference → (reference)/api-reference}/integrations/vercel-ai-sdk.mdx +2 -2
- package/.docs/raw/docs/{api-reference → (reference)/api-reference}/overview.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar-more.mdx +327 -0
- package/.docs/raw/docs/{api-reference/primitives/ActionBar.mdx → (reference)/api-reference/primitives/action-bar.mdx} +3 -1
- package/.docs/raw/docs/{api-reference/primitives/AssistantIf.mdx → (reference)/api-reference/primitives/assistant-if.mdx} +2 -2
- package/.docs/raw/docs/{api-reference/primitives/AssistantModal.mdx → (reference)/api-reference/primitives/assistant-modal.mdx} +3 -1
- package/.docs/raw/docs/{api-reference/primitives/Attachment.mdx → (reference)/api-reference/primitives/attachment.mdx} +3 -2
- package/.docs/raw/docs/{api-reference/primitives/BranchPicker.mdx → (reference)/api-reference/primitives/branch-picker.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/primitives/Composer.mdx → (reference)/api-reference/primitives/composer.mdx} +101 -2
- package/.docs/raw/docs/{api-reference → (reference)/api-reference}/primitives/composition.mdx +1 -0
- package/.docs/raw/docs/{api-reference/primitives/Error.mdx → (reference)/api-reference/primitives/error.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/primitives/MessagePart.mdx → (reference)/api-reference/primitives/message-part.mdx} +2 -2
- package/.docs/raw/docs/{api-reference/primitives/Message.mdx → (reference)/api-reference/primitives/message.mdx} +2 -1
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item-more.mdx +221 -0
- package/.docs/raw/docs/{api-reference/primitives/ThreadListItem.mdx → (reference)/api-reference/primitives/thread-list-item.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/primitives/ThreadList.mdx → (reference)/api-reference/primitives/thread-list.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/primitives/Thread.mdx → (reference)/api-reference/primitives/thread.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/runtimes/AssistantRuntime.mdx → (reference)/api-reference/runtimes/assistant-runtime.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/runtimes/AttachmentRuntime.mdx → (reference)/api-reference/runtimes/attachment-runtime.mdx} +3 -2
- package/.docs/raw/docs/{api-reference/runtimes/ComposerRuntime.mdx → (reference)/api-reference/runtimes/composer-runtime.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/runtimes/MessagePartRuntime.mdx → (reference)/api-reference/runtimes/message-part-runtime.mdx} +3 -2
- package/.docs/raw/docs/{api-reference/runtimes/MessageRuntime.mdx → (reference)/api-reference/runtimes/message-runtime.mdx} +3 -2
- package/.docs/raw/docs/{api-reference/runtimes/ThreadListItemRuntime.mdx → (reference)/api-reference/runtimes/thread-list-item-runtime.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/runtimes/ThreadListRuntime.mdx → (reference)/api-reference/runtimes/thread-list-runtime.mdx} +2 -1
- package/.docs/raw/docs/{api-reference/runtimes/ThreadRuntime.mdx → (reference)/api-reference/runtimes/thread-runtime.mdx} +3 -5
- package/.docs/raw/docs/{legacy/styled/AssistantModal.mdx → (reference)/legacy/styled/assistant-modal.mdx} +2 -3
- package/.docs/raw/docs/{legacy/styled/Decomposition.mdx → (reference)/legacy/styled/decomposition.mdx} +1 -0
- package/.docs/raw/docs/{legacy/styled/Markdown.mdx → (reference)/legacy/styled/markdown.mdx} +2 -4
- package/.docs/raw/docs/{legacy/styled/Scrollbar.mdx → (reference)/legacy/styled/scrollbar.mdx} +2 -1
- package/.docs/raw/docs/{legacy/styled/ThreadWidth.mdx → (reference)/legacy/styled/thread-width.mdx} +1 -0
- package/.docs/raw/docs/{legacy/styled/Thread.mdx → (reference)/legacy/styled/thread.mdx} +2 -3
- package/.docs/raw/docs/{migrations → (reference)/migrations}/deprecation-policy.mdx +1 -0
- package/.docs/raw/docs/{migrations → (reference)/migrations}/react-langgraph-v0-7.mdx +1 -2
- package/.docs/raw/docs/{migrations → (reference)/migrations}/v0-11.mdx +1 -0
- package/.docs/raw/docs/{migrations → (reference)/migrations}/v0-12.mdx +1 -0
- package/.docs/raw/docs/{react-compatibility.mdx → (reference)/react-compatibility.mdx} +2 -3
- package/.docs/raw/docs/cloud/authorization.mdx +1 -0
- package/.docs/raw/docs/cloud/overview.mdx +1 -0
- package/.docs/raw/docs/cloud/persistence/ai-sdk.mdx +2 -3
- package/.docs/raw/docs/cloud/persistence/langgraph.mdx +5 -7
- package/.docs/raw/docs/runtimes/ai-sdk/use-chat.mdx +9 -8
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +2 -3
- package/.docs/raw/docs/runtimes/assistant-transport.mdx +7 -6
- package/.docs/raw/docs/runtimes/custom/custom-thread-list.mdx +38 -3
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +6 -8
- package/.docs/raw/docs/runtimes/custom/local.mdx +43 -16
- package/.docs/raw/docs/runtimes/data-stream.mdx +32 -4
- package/.docs/raw/docs/runtimes/helicone.mdx +1 -0
- package/.docs/raw/docs/runtimes/langgraph/index.mdx +3 -3
- package/.docs/raw/docs/runtimes/langgraph/tutorial/index.mdx +1 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/introduction.mdx +1 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-1.mdx +1 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +1 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +2 -1
- package/.docs/raw/docs/runtimes/langserve.mdx +2 -2
- package/.docs/raw/docs/runtimes/mastra/full-stack-integration.mdx +4 -5
- package/.docs/raw/docs/runtimes/mastra/overview.mdx +1 -0
- package/.docs/raw/docs/runtimes/mastra/separate-server-integration.mdx +3 -4
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +2 -4
- package/.docs/raw/docs/ui/assistant-modal.mdx +163 -0
- package/.docs/raw/docs/ui/assistant-sidebar.mdx +90 -0
- package/.docs/raw/docs/ui/attachment.mdx +227 -0
- package/.docs/raw/docs/ui/{Markdown.mdx → markdown.mdx} +11 -6
- package/.docs/raw/docs/ui/{Mermaid.mdx → mermaid.mdx} +12 -5
- package/.docs/raw/docs/ui/{PartGrouping.mdx → part-grouping.mdx} +4 -6
- package/.docs/raw/docs/ui/reasoning.mdx +148 -0
- package/.docs/raw/docs/ui/{Scrollbar.mdx → scrollbar.mdx} +9 -7
- package/.docs/raw/docs/ui/sources.mdx +87 -0
- package/.docs/raw/docs/ui/{SyntaxHighlighting.mdx → syntax-highlighting.mdx} +9 -5
- package/.docs/raw/docs/ui/thread-list.mdx +275 -0
- package/.docs/raw/docs/ui/{Thread.mdx → thread.mdx} +5 -6
- package/.docs/raw/docs/ui/tool-fallback.mdx +112 -0
- package/.docs/raw/docs/ui/tool-group.mdx +214 -0
- package/dist/constants.d.ts +10 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +14 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33 -1
- package/dist/index.js.map +1 -0
- package/dist/prepare-docs/code-examples.d.ts +2 -0
- package/dist/prepare-docs/code-examples.d.ts.map +1 -0
- package/dist/prepare-docs/code-examples.js +129 -0
- package/dist/prepare-docs/code-examples.js.map +1 -0
- package/dist/prepare-docs/copy-raw.d.ts +2 -0
- package/dist/prepare-docs/copy-raw.d.ts.map +1 -0
- package/dist/prepare-docs/copy-raw.js +50 -0
- package/dist/prepare-docs/copy-raw.js.map +1 -0
- package/dist/prepare-docs/prepare.d.ts +2 -0
- package/dist/prepare-docs/prepare.d.ts.map +1 -0
- package/dist/prepare-docs/prepare.js +18 -195
- package/dist/prepare-docs/prepare.js.map +1 -0
- package/dist/stdio.d.ts +3 -0
- package/dist/stdio.d.ts.map +1 -0
- package/dist/stdio.js +4 -5
- package/dist/stdio.js.map +1 -0
- package/dist/tools/docs.d.ts +23 -0
- package/dist/tools/docs.d.ts.map +1 -0
- package/dist/tools/docs.js +168 -0
- package/dist/tools/docs.js.map +1 -0
- package/dist/tools/examples.d.ts +23 -0
- package/dist/tools/examples.d.ts.map +1 -0
- package/dist/tools/examples.js +95 -0
- package/dist/tools/examples.js.map +1 -0
- package/dist/tools/tests/test-setup.d.ts +4 -0
- package/dist/tools/tests/test-setup.d.ts.map +1 -0
- package/dist/tools/tests/test-setup.js +36 -0
- package/dist/tools/tests/test-setup.js.map +1 -0
- package/dist/utils/logger.d.ts +7 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +20 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/mcp-format.d.ts +7 -0
- package/dist/utils/mcp-format.d.ts.map +1 -0
- package/dist/utils/mcp-format.js +11 -0
- package/dist/utils/mcp-format.js.map +1 -0
- package/dist/utils/mdx.d.ts +9 -0
- package/dist/utils/mdx.d.ts.map +1 -0
- package/dist/utils/mdx.js +27 -0
- package/dist/utils/mdx.js.map +1 -0
- package/dist/utils/paths.d.ts +8 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +84 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/security.d.ts +2 -0
- package/dist/utils/security.d.ts.map +1 -0
- package/dist/utils/security.js +43 -0
- package/dist/utils/security.js.map +1 -0
- package/package.json +37 -19
- package/src/constants.ts +22 -0
- package/src/index.ts +51 -0
- package/src/prepare-docs/code-examples.ts +158 -0
- package/src/prepare-docs/copy-raw.ts +55 -0
- package/src/prepare-docs/prepare.ts +24 -0
- package/src/stdio.ts +7 -0
- package/src/tools/docs.ts +207 -0
- package/src/tools/examples.ts +107 -0
- package/src/tools/tests/docs.test.ts +124 -0
- package/src/tools/tests/examples.test.ts +94 -0
- package/src/tools/tests/integration.test.ts +46 -0
- package/src/tools/tests/json-parsing.test.ts +23 -0
- package/src/tools/tests/mcp-protocol.test.ts +133 -0
- package/src/tools/tests/path-traversal.test.ts +81 -0
- package/src/tools/tests/test-setup.ts +40 -0
- package/src/utils/logger.ts +20 -0
- package/src/utils/mcp-format.ts +12 -0
- package/src/utils/mdx.ts +39 -0
- package/src/utils/paths.ts +114 -0
- package/src/utils/security.ts +52 -0
- package/src/utils/tests/security.test.ts +119 -0
- package/.docs/raw/docs/index.mdx +0 -7
- package/.docs/raw/docs/ui/AssistantModal.mdx +0 -45
- package/.docs/raw/docs/ui/AssistantSidebar.mdx +0 -41
- package/.docs/raw/docs/ui/Attachment.mdx +0 -84
- package/.docs/raw/docs/ui/Reasoning.mdx +0 -152
- package/.docs/raw/docs/ui/ThreadList.mdx +0 -90
- package/.docs/raw/docs/ui/ToolFallback.mdx +0 -63
- package/.docs/raw/docs/ui/ToolGroup.mdx +0 -96
- package/dist/chunk-M2RKUM66.js +0 -38
- package/dist/chunk-NVNFQ5ZO.js +0 -423
- /package/.docs/raw/docs/{copilots → (docs)/copilots}/assistant-frame.mdx +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Example: store
|
|
1
|
+
# Example: with-store
|
|
2
2
|
|
|
3
3
|
## app/globals.css
|
|
4
4
|
|
|
@@ -473,9 +473,10 @@ export default nextConfig;
|
|
|
473
473
|
|
|
474
474
|
```json
|
|
475
475
|
{
|
|
476
|
-
"name": "store
|
|
477
|
-
"version": "0.
|
|
476
|
+
"name": "with-store",
|
|
477
|
+
"version": "0.0.0",
|
|
478
478
|
"private": true,
|
|
479
|
+
"type": "module",
|
|
479
480
|
"scripts": {
|
|
480
481
|
"dev": "next dev",
|
|
481
482
|
"build": "next build",
|
|
@@ -484,18 +485,20 @@ export default nextConfig;
|
|
|
484
485
|
"dependencies": {
|
|
485
486
|
"@assistant-ui/store": "workspace:*",
|
|
486
487
|
"@assistant-ui/tap": "workspace:*",
|
|
487
|
-
"next": "16.
|
|
488
|
-
"react": "19.2.3",
|
|
489
|
-
"react-dom": "19.2.3"
|
|
488
|
+
"next": "^16.1.4",
|
|
489
|
+
"react": "^19.2.3",
|
|
490
|
+
"react-dom": "^19.2.3"
|
|
490
491
|
},
|
|
491
492
|
"devDependencies": {
|
|
492
493
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
493
|
-
"@tailwindcss/postcss": "^4",
|
|
494
|
-
"@types/node": "^25",
|
|
495
|
-
"@types/react": "19.2.
|
|
496
|
-
"@types/react-dom": "19.2.3",
|
|
497
|
-
"
|
|
498
|
-
"
|
|
494
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
495
|
+
"@types/node": "^25.0.9",
|
|
496
|
+
"@types/react": "^19.2.9",
|
|
497
|
+
"@types/react-dom": "^19.2.3",
|
|
498
|
+
"postcss": "^8.5.6",
|
|
499
|
+
"tailwindcss": "^4.1.18",
|
|
500
|
+
"tw-animate-css": "^1.4.0",
|
|
501
|
+
"typescript": "^5.9.3"
|
|
499
502
|
}
|
|
500
503
|
}
|
|
501
504
|
|
|
@@ -637,18 +640,11 @@ useAssistantEvent("*", (data) => {
|
|
|
637
640
|
|
|
638
641
|
```json
|
|
639
642
|
{
|
|
640
|
-
"extends": "@assistant-ui/x-buildutils/ts/
|
|
643
|
+
"extends": "@assistant-ui/x-buildutils/ts/next",
|
|
641
644
|
"compilerOptions": {
|
|
642
|
-
"paths": {
|
|
643
|
-
"@/*": ["./*"],
|
|
644
|
-
"@assistant-ui/*": ["../../packages/*/src"],
|
|
645
|
-
"@assistant-ui/react/*": ["../../packages/react/src/*"],
|
|
646
|
-
"@assistant-ui/tap/*": ["../../packages/tap/src/*"],
|
|
647
|
-
"assistant-stream": ["../../packages/assistant-stream/src"],
|
|
648
|
-
"assistant-stream/*": ["../../packages/assistant-stream/src/*"]
|
|
649
|
-
}
|
|
645
|
+
"paths": { "@/*": ["./*"] }
|
|
650
646
|
},
|
|
651
|
-
"include": ["
|
|
647
|
+
"include": ["**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
652
648
|
"exclude": ["node_modules"]
|
|
653
649
|
}
|
|
654
650
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```json
|
|
6
6
|
{
|
|
7
|
-
"projectName": "
|
|
7
|
+
"projectName": "with-tanstack",
|
|
8
8
|
"mode": "file-router",
|
|
9
9
|
"typescript": true,
|
|
10
10
|
"tailwind": true,
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
```json
|
|
24
24
|
{
|
|
25
|
-
"name": "
|
|
25
|
+
"name": "with-tanstack",
|
|
26
|
+
"version": "0.0.0",
|
|
26
27
|
"private": true,
|
|
27
28
|
"type": "module",
|
|
28
29
|
"scripts": {
|
|
@@ -36,28 +37,28 @@
|
|
|
36
37
|
"@radix-ui/react-slot": "^1.2.4",
|
|
37
38
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
38
39
|
"@tailwindcss/vite": "^4.1.18",
|
|
39
|
-
"@tanstack/react-router": "^1.
|
|
40
|
-
"@tanstack/react-start": "^1.
|
|
41
|
-
"@tanstack/router-plugin": "^1.141.1",
|
|
40
|
+
"@tanstack/react-router": "^1.153.2",
|
|
41
|
+
"@tanstack/react-start": "^1.154.0",
|
|
42
42
|
"class-variance-authority": "^0.7.1",
|
|
43
43
|
"clsx": "^2.1.1",
|
|
44
|
-
"lucide-react": "^0.
|
|
45
|
-
"nitro": "
|
|
46
|
-
"openai": "^6.
|
|
44
|
+
"lucide-react": "^0.562.0",
|
|
45
|
+
"nitro": "^3.0.1-alpha.1",
|
|
46
|
+
"openai": "^6.16.0",
|
|
47
47
|
"react": "^19.2.3",
|
|
48
48
|
"react-dom": "^19.2.3",
|
|
49
49
|
"remark-gfm": "^4.0.1",
|
|
50
50
|
"tailwind-merge": "^3.4.0",
|
|
51
51
|
"tailwindcss": "^4.1.18",
|
|
52
|
-
"vite-tsconfig-paths": "^
|
|
52
|
+
"vite-tsconfig-paths": "^6.0.4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@
|
|
56
|
-
"@types/
|
|
55
|
+
"@assistant-ui/x-buildutils": "workspace:*",
|
|
56
|
+
"@types/node": "^25.0.9",
|
|
57
|
+
"@types/react": "^19.2.9",
|
|
57
58
|
"@types/react-dom": "^19.2.3",
|
|
58
59
|
"@vitejs/plugin-react": "^5.1.2",
|
|
59
60
|
"typescript": "^5.9.3",
|
|
60
|
-
"vite": "^7.
|
|
61
|
+
"vite": "^7.3.1"
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -368,7 +369,7 @@ const ThreadScrollToBottom: FC = () => {
|
|
|
368
369
|
<TooltipIconButton
|
|
369
370
|
tooltip="Scroll to bottom"
|
|
370
371
|
variant="outline"
|
|
371
|
-
className="aui-thread-scroll-to-bottom -top-12
|
|
372
|
+
className="aui-thread-scroll-to-bottom absolute -top-12 z-10 self-center rounded-full p-4 disabled:invisible dark:bg-background dark:hover:bg-accent"
|
|
372
373
|
>
|
|
373
374
|
<ArrowDownIcon />
|
|
374
375
|
</TooltipIconButton>
|
|
@@ -541,7 +542,7 @@ const AssistantActionBar: FC = () => {
|
|
|
541
542
|
hideWhenRunning
|
|
542
543
|
autohide="not-last"
|
|
543
544
|
autohideFloat="single-branch"
|
|
544
|
-
className="aui-assistant-action-bar-root
|
|
545
|
+
className="aui-assistant-action-bar-root col-start-3 row-start-2 -ml-1 flex gap-1 text-muted-foreground data-floating:absolute data-floating:rounded-md data-floating:border data-floating:bg-background data-floating:p-1 data-floating:shadow-sm"
|
|
545
546
|
>
|
|
546
547
|
<ActionBarPrimitive.Copy asChild>
|
|
547
548
|
<TooltipIconButton tooltip="Copy">
|
|
@@ -572,12 +573,12 @@ const UserMessage: FC = () => {
|
|
|
572
573
|
<div className="aui-user-message-content wrap-break-word rounded-3xl bg-muted px-5 py-2.5 text-foreground">
|
|
573
574
|
<MessagePrimitive.Parts />
|
|
574
575
|
</div>
|
|
575
|
-
<div className="aui-user-action-bar-wrapper -translate-x-full -translate-y-1/2
|
|
576
|
+
<div className="aui-user-action-bar-wrapper absolute top-1/2 left-0 -translate-x-full -translate-y-1/2 pr-2">
|
|
576
577
|
<UserActionBar />
|
|
577
578
|
</div>
|
|
578
579
|
</div>
|
|
579
580
|
|
|
580
|
-
<BranchPicker className="aui-user-branch-picker
|
|
581
|
+
<BranchPicker className="aui-user-branch-picker col-span-full col-start-1 row-start-3 -mr-1 justify-end" />
|
|
581
582
|
</MessagePrimitive.Root>
|
|
582
583
|
);
|
|
583
584
|
};
|
|
@@ -632,7 +633,7 @@ const BranchPicker: FC<BranchPickerPrimitive.Root.Props> = ({
|
|
|
632
633
|
<BranchPickerPrimitive.Root
|
|
633
634
|
hideWhenSingleBranch
|
|
634
635
|
className={cn(
|
|
635
|
-
"aui-branch-picker-root -
|
|
636
|
+
"aui-branch-picker-root mr-2 -ml-2 inline-flex items-center text-muted-foreground text-xs",
|
|
636
637
|
className,
|
|
637
638
|
)}
|
|
638
639
|
{...rest}
|
|
@@ -1516,32 +1517,13 @@ export const chatStream = createServerFn({ method: "POST" })
|
|
|
1516
1517
|
|
|
1517
1518
|
```json
|
|
1518
1519
|
{
|
|
1519
|
-
"
|
|
1520
|
+
"extends": "@assistant-ui/x-buildutils/ts/base",
|
|
1520
1521
|
"compilerOptions": {
|
|
1521
|
-
"target": "ES2022",
|
|
1522
|
-
"jsx": "react-jsx",
|
|
1523
|
-
"module": "ESNext",
|
|
1524
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
1525
1522
|
"types": ["vite/client"],
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
"verbatimModuleSyntax": false,
|
|
1531
|
-
"noEmit": true,
|
|
1532
|
-
|
|
1533
|
-
/* Linting */
|
|
1534
|
-
"skipLibCheck": true,
|
|
1535
|
-
"strict": true,
|
|
1536
|
-
"noUnusedLocals": true,
|
|
1537
|
-
"noUnusedParameters": true,
|
|
1538
|
-
"noFallthroughCasesInSwitch": true,
|
|
1539
|
-
"noUncheckedSideEffectImports": true,
|
|
1540
|
-
"baseUrl": ".",
|
|
1541
|
-
"paths": {
|
|
1542
|
-
"@/*": ["./src/*"]
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1523
|
+
"paths": { "@/*": ["./src/*"] }
|
|
1524
|
+
},
|
|
1525
|
+
"include": ["**/*.ts", "**/*.tsx"],
|
|
1526
|
+
"exclude": ["node_modules"]
|
|
1545
1527
|
}
|
|
1546
1528
|
|
|
1547
1529
|
```
|
|
@@ -5,8 +5,6 @@ author: Simon Farshid
|
|
|
5
5
|
date: 2025-01-31T12:00:00
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { Callout } from "fumadocs-ui/components/callout";
|
|
9
|
-
|
|
10
8
|
<Callout emoji="🎉">
|
|
11
9
|
This is the first edition of our changelog. We post these updates on a monthly
|
|
12
10
|
basis. If you want more frequent updates about our new features, join our
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "About assistant-ui"
|
|
3
|
+
description: Why assistant-ui? Composable primitives, runtime agnostic, and production-ready.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
import { Sparkles, PanelsTopLeft, Database, Terminal } from "lucide-react";
|
|
@@ -38,7 +39,7 @@ assistant-ui helps you create beautiful, enterprise-grade AI chat interfaces in
|
|
|
38
39
|
</Cards>
|
|
39
40
|
|
|
40
41
|
<Callout title="Want to try it out?">
|
|
41
|
-
[Get Started in 30 Seconds](/docs
|
|
42
|
+
[Get Started in 30 Seconds](/docs).
|
|
42
43
|
</Callout>
|
|
43
44
|
|
|
44
45
|
## AI Accessible Documentation
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Architecture"
|
|
3
|
+
description: How components, runtimes, and cloud services fit together.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
import { Sparkles, PanelsTopLeft, Database, Terminal } from "lucide-react";
|
|
6
7
|
|
|
7
8
|
## assistant-ui is built on these main pillars:
|
|
8
9
|
|
|
9
|
-
<div className="grid grid-cols-1 md:grid-cols-3 gap-4
|
|
10
|
+
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
10
11
|
<Card title='1. Frontend components'>
|
|
11
12
|
Shadcn UI chat components with built-in state management
|
|
12
13
|
</Card>
|
|
@@ -23,7 +24,7 @@ import { Sparkles, PanelsTopLeft, Database, Terminal } from "lucide-react";
|
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
### 1. Frontend components
|
|
26
|
-
Stylized and functional chat components built on top of Shadcn components that have context state management provided by the assistantUI runtime provider. These pre-built React components come with intelligent state management. [View our components](/docs/ui/
|
|
27
|
+
Stylized and functional chat components built on top of Shadcn components that have context state management provided by the assistantUI runtime provider. These pre-built React components come with intelligent state management. [View our components](/docs/ui/thread)
|
|
27
28
|
|
|
28
29
|
### 2. Runtime
|
|
29
30
|
A React state management context for assistant chat. The runtime handles data conversions between the local state and calls to backends and LLMs. We offer different runtime solutions that work with various frameworks like Vercel AI SDK, LangGraph, LangChain, Helicone, local runtime, and an ExternalStore when you need full control of the frontend message state. [You can view the runtimes we support](/docs/runtimes/pick-a-runtime)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: CLI
|
|
3
|
-
description:
|
|
3
|
+
description: Scaffold projects, add components, and manage updates from the command line.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Use the `assistant-ui` CLI to quickly set up new projects and add components to existing ones.
|
|
@@ -37,8 +37,6 @@ Options:
|
|
|
37
37
|
-h, --help display help for command
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
---
|
|
41
|
-
|
|
42
40
|
## create
|
|
43
41
|
|
|
44
42
|
Use the `create` command to scaffold a new Next.js project with assistant-ui pre-configured.
|
|
@@ -94,8 +92,6 @@ Options:
|
|
|
94
92
|
-h, --help display help for command
|
|
95
93
|
```
|
|
96
94
|
|
|
97
|
-
---
|
|
98
|
-
|
|
99
95
|
## add
|
|
100
96
|
|
|
101
97
|
Use the `add` command to add individual components to your project.
|
|
@@ -143,8 +139,6 @@ Options:
|
|
|
143
139
|
-h, --help display help for command
|
|
144
140
|
```
|
|
145
141
|
|
|
146
|
-
---
|
|
147
|
-
|
|
148
142
|
## update
|
|
149
143
|
|
|
150
144
|
Use the `update` command to update all `@assistant-ui/*` packages to their latest versions.
|
|
@@ -181,8 +175,6 @@ Options:
|
|
|
181
175
|
-h, --help display help for command
|
|
182
176
|
```
|
|
183
177
|
|
|
184
|
-
---
|
|
185
|
-
|
|
186
178
|
## upgrade
|
|
187
179
|
|
|
188
180
|
Use the `upgrade` command to automatically migrate your codebase when there are breaking changes.
|
|
@@ -228,8 +220,6 @@ Options:
|
|
|
228
220
|
-h, --help display help for command
|
|
229
221
|
```
|
|
230
222
|
|
|
231
|
-
---
|
|
232
|
-
|
|
233
223
|
## codemod
|
|
234
224
|
|
|
235
225
|
Use the `codemod` command to run a specific codemod transformation.
|
|
@@ -272,8 +262,6 @@ Options:
|
|
|
272
262
|
-h, --help display help for command
|
|
273
263
|
```
|
|
274
264
|
|
|
275
|
-
---
|
|
276
|
-
|
|
277
265
|
## Common Workflows
|
|
278
266
|
|
|
279
267
|
### Starting a new project
|
|
@@ -328,8 +316,6 @@ npx assistant-ui@latest codemod v0-11/content-part-to-message-part ./src
|
|
|
328
316
|
npx assistant-ui@latest update
|
|
329
317
|
```
|
|
330
318
|
|
|
331
|
-
---
|
|
332
|
-
|
|
333
319
|
## Component Registry
|
|
334
320
|
|
|
335
321
|
The CLI pulls components from our public registry at [r.assistant-ui.com](https://r.assistant-ui.com).
|
|
@@ -342,8 +328,6 @@ Each component includes:
|
|
|
342
328
|
|
|
343
329
|
Components are added directly to your project's source code, giving you full control to customize them.
|
|
344
330
|
|
|
345
|
-
---
|
|
346
|
-
|
|
347
331
|
## Troubleshooting
|
|
348
332
|
|
|
349
333
|
### Command not found
|
|
@@ -384,8 +368,6 @@ Use the `--overwrite` flag to replace existing components:
|
|
|
384
368
|
npx assistant-ui@latest add thread --overwrite
|
|
385
369
|
```
|
|
386
370
|
|
|
387
|
-
---
|
|
388
|
-
|
|
389
371
|
## Configuration
|
|
390
372
|
|
|
391
373
|
The CLI respects your project's configuration:
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: makeAssistantVisible
|
|
3
|
+
description: Make React components visible and interactive to assistants via higher-order component wrapping.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
`makeAssistantVisible` is a higher-order component (HOC) that makes React components "visible" by the assistant, allowing it to understand and interact with the component's HTML structure.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: makeAssistantToolUI
|
|
3
|
+
description: Register custom UI components to render tool executions and their status.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
import { ParametersTable } from "@/components/docs";
|
|
6
|
+
import { ParametersTable } from "@/components/docs/tables/ParametersTable";
|
|
6
7
|
|
|
7
8
|
The `makeAssistantToolUI` utility is used to register a tool UI component with the Assistant.
|
|
8
9
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: makeAssistantTool
|
|
3
|
+
description: Create React components that provide reusable tools to the assistant.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
import { ParametersTable } from "@/components/docs";
|
|
6
|
+
import { ParametersTable } from "@/components/docs/tables/ParametersTable";
|
|
6
7
|
|
|
7
8
|
`makeAssistantTool` creates a React component that provides a tool to the assistant. This is useful for defining reusable tools that can be composed into your application.
|
|
8
9
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Model Context
|
|
3
|
+
description: Configure assistant behavior through system instructions, tools, and context providers.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
Model Context is the foundation of intelligence in assistant-ui components. It provides configuration and capabilities to the assistant through a context provider system.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Intelligent Components
|
|
3
|
+
description: Add intelligence to React components through readable interfaces and assistant tools.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
React revolutionized web development with components that combine logic, structure, and style. Now, with assistant-ui, we're adding a fourth dimension: intelligence. Let's learn how to build smart components through a practical banking app example.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: DevTools
|
|
3
|
+
description: Inspect runtime state, context, and events in the browser.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
import {
|
|
6
|
-
import { InstallCommand } from "@/components/docs/install-command";
|
|
6
|
+
import { InstallCommand } from "@/components/docs/fumadocs/install/install-command";
|
|
7
7
|
|
|
8
8
|
Hey, the assistant-ui DevTools allows you to debug the assistant-ui state and context, and events without resorting to `console.log`. It's an easy way to see how data flows to the assistant-ui's runtime layer.
|
|
9
9
|
|
|
10
|
-

|
|
11
11
|
|
|
12
12
|
## Setup
|
|
13
13
|
|
|
@@ -44,7 +44,7 @@ export function AssistantApp() {
|
|
|
44
44
|
|
|
45
45
|
That's it! In development builds you should now see the DevTools in the lower-right corner of your site.
|
|
46
46
|
|
|
47
|
-

|
|
48
48
|
|
|
49
49
|
</Step>
|
|
50
50
|
</Steps>
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Attachments
|
|
3
|
+
description: Let users attach files, images, and documents to messages.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
import { AttachmentSample } from "@/components/samples/attachment
|
|
6
|
-
import {
|
|
7
|
-
import { Callout } from "fumadocs-ui/components/callout";
|
|
8
|
-
import { InstallCommand } from "@/components/docs/install-command";
|
|
6
|
+
import { AttachmentSample } from "@/components/docs/samples/attachment";
|
|
7
|
+
import { InstallCommand } from "@/components/docs/fumadocs/install/install-command";
|
|
9
8
|
|
|
10
9
|
Enable users to attach files to their messages, enhancing conversations with images, documents, and other content.
|
|
11
10
|
|
|
@@ -530,5 +529,5 @@ Attachments work with all assistant-ui runtimes:
|
|
|
530
529
|
|
|
531
530
|
## Resources
|
|
532
531
|
|
|
533
|
-
- [Attachment UI Components](/docs/ui/
|
|
532
|
+
- [Attachment UI Components](/docs/ui/attachment) - UI implementation details
|
|
534
533
|
- [API Reference](/docs/api-reference) - Detailed type definitions
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Message Branching
|
|
3
|
+
description: Navigate between different conversation branches when editing or reloading messages.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
import { BranchingSample } from "@/components/samples/branching
|
|
6
|
+
import { BranchingSample } from "@/components/docs/samples/branching";
|
|
6
7
|
|
|
7
8
|
Switch between different conversation branches.
|
|
8
9
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Context API
|
|
3
|
+
description: Read and update assistant state to build custom components.
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
The Context API provides direct access to assistant-ui's state management system, enabling you to build custom components that integrate seamlessly with the assistant runtime.
|