@assistant-ui/mcp-docs-server 0.1.30 → 0.1.32
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/waterfall.md +8 -8
- package/.docs/organized/code-examples/with-a2a.md +10 -10
- package/.docs/organized/code-examples/with-ag-ui.md +12 -12
- package/.docs/organized/code-examples/with-ai-sdk-v6.md +14 -14
- package/.docs/organized/code-examples/with-artifacts.md +14 -14
- package/.docs/organized/code-examples/with-assistant-transport.md +11 -11
- package/.docs/organized/code-examples/with-browser-extension.md +345 -0
- package/.docs/organized/code-examples/with-chain-of-thought.md +129 -63
- package/.docs/organized/code-examples/with-cloud-standalone.md +13 -13
- package/.docs/organized/code-examples/with-cloud.md +13 -13
- package/.docs/organized/code-examples/with-custom-thread-list.md +65 -20
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +18 -17
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +18 -17
- package/.docs/organized/code-examples/with-expo.md +25 -25
- package/.docs/organized/code-examples/with-external-store.md +10 -10
- package/.docs/organized/code-examples/with-ffmpeg.md +14 -14
- package/.docs/organized/code-examples/with-generative-ui.md +211 -14
- package/.docs/organized/code-examples/with-google-adk.md +12 -12
- package/.docs/organized/code-examples/with-heat-graph.md +8 -8
- package/.docs/organized/code-examples/with-image-generation.md +454 -0
- package/.docs/organized/code-examples/with-interactables.md +14 -14
- package/.docs/organized/code-examples/with-langchain.md +12 -12
- package/.docs/organized/code-examples/with-langgraph.md +15 -12
- package/.docs/organized/code-examples/with-livekit.md +19 -18
- package/.docs/organized/code-examples/with-mcp.md +748 -0
- package/.docs/organized/code-examples/with-opencode.md +107 -62
- package/.docs/organized/code-examples/with-parent-id-grouping.md +12 -12
- package/.docs/organized/code-examples/with-react-hook-form.md +14 -14
- package/.docs/organized/code-examples/with-react-ink.md +4 -4
- package/.docs/organized/code-examples/with-react-router.md +16 -16
- package/.docs/organized/code-examples/with-resumable-stream.md +660 -0
- package/.docs/organized/code-examples/with-store.md +8 -8
- package/.docs/organized/code-examples/with-tanstack.md +14 -14
- package/.docs/organized/code-examples/with-tap-runtime.md +11 -10
- package/.docs/raw/docs/(docs)/cli.mdx +3 -1
- package/.docs/raw/docs/(docs)/copilots/assistant-frame.mdx +1 -0
- package/.docs/raw/docs/(docs)/copilots/make-assistant-tool-ui.mdx +10 -3
- package/.docs/raw/docs/(docs)/copilots/make-assistant-tool.mdx +8 -3
- package/.docs/raw/docs/(docs)/copilots/make-assistant-visible.mdx +1 -0
- package/.docs/raw/docs/(docs)/copilots/model-context.mdx +1 -0
- package/.docs/raw/docs/(docs)/copilots/motivation.mdx +1 -0
- package/.docs/raw/docs/(docs)/copilots/use-assistant-instructions.mdx +1 -0
- package/.docs/raw/docs/(docs)/devtools.mdx +1 -0
- package/.docs/raw/docs/(docs)/index.mdx +3 -2
- package/.docs/raw/docs/(docs)/installation.mdx +2 -1
- package/.docs/raw/docs/(docs)/rtl.mdx +1 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/attachments.mdx +36 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/feedback.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/index.mdx +34 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/model.mdx +44 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/persistence.mdx +55 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/runtime.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/suggestions.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +37 -8
- package/.docs/raw/docs/(reference)/api-reference/context-providers/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/context-providers/scoped-providers.mdx +64 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +52 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +36 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/composer-triggers.mdx +98 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/index.mdx +31 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/model-context.mdx +33 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +640 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/runtimes.mdx +28 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +94 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/utilities.mdx +464 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/cloud-ai-sdk.mdx +24 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +79 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +52 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/registry.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/overview.mdx +125 -125
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar-more.mdx +78 -221
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar.mdx +127 -242
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +46 -20
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-modal.mdx +66 -87
- package/.docs/raw/docs/(reference)/api-reference/primitives/attachment.mdx +50 -58
- package/.docs/raw/docs/(reference)/api-reference/primitives/branch-picker.mdx +80 -48
- package/.docs/raw/docs/(reference)/api-reference/primitives/chain-of-thought.mdx +67 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +323 -461
- package/.docs/raw/docs/(reference)/api-reference/primitives/error.mdx +36 -43
- package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +70 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/message-part.mdx +63 -245
- package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +182 -554
- package/.docs/raw/docs/(reference)/api-reference/primitives/queue-item.mdx +65 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +35 -22
- package/.docs/raw/docs/(reference)/api-reference/primitives/suggestion.mdx +57 -140
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item-more.mdx +70 -161
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item.mdx +84 -108
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list.mdx +82 -86
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread.mdx +173 -314
- package/.docs/raw/docs/(reference)/api-reference/runtimes/assistant-runtime.mdx +9 -21
- package/.docs/raw/docs/(reference)/api-reference/runtimes/attachment-runtime.mdx +10 -21
- package/.docs/raw/docs/(reference)/api-reference/runtimes/composer-runtime.mdx +15 -70
- package/.docs/raw/docs/(reference)/api-reference/runtimes/index.mdx +43 -0
- package/.docs/raw/docs/(reference)/api-reference/runtimes/message-part-runtime.mdx +25 -28
- package/.docs/raw/docs/(reference)/api-reference/runtimes/message-runtime.mdx +11 -63
- package/.docs/raw/docs/(reference)/api-reference/runtimes/queue-state.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-item-runtime.mdx +11 -48
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-runtime.mdx +10 -42
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-runtime.mdx +18 -30
- package/.docs/raw/docs/(reference)/api-reference/tools/component-tools.mdx +68 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/index.mdx +39 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +79 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +42 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +92 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/assistant-transport.mdx +48 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/frame.mdx +62 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/utilities/index.mdx +19 -0
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +131 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +54 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/speech-dictation.mdx +36 -0
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +230 -2
- package/.docs/raw/docs/cloud/ai-sdk.mdx +222 -4
- package/.docs/raw/docs/cloud/index.mdx +2 -2
- package/.docs/raw/docs/cloud/langgraph.mdx +274 -2
- package/.docs/raw/docs/{(docs)/guides → guides}/attachments.mdx +45 -40
- package/.docs/raw/docs/guides/branching.mdx +76 -0
- package/.docs/raw/docs/guides/chain-of-thought.mdx +166 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/context-api.mdx +54 -26
- package/.docs/raw/docs/{(docs)/guides → guides}/dictation.mdx +3 -1
- package/.docs/raw/docs/guides/editing.mdx +102 -0
- package/.docs/raw/docs/guides/generative-ui.mdx +142 -0
- package/.docs/raw/docs/guides/image-generation.mdx +74 -0
- package/.docs/raw/docs/guides/index.mdx +103 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/interactables.mdx +51 -2
- package/.docs/raw/docs/{(docs)/guides → guides}/latex.mdx +53 -10
- package/.docs/raw/docs/guides/mcp-apps.mdx +231 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/mentions.mdx +63 -88
- package/.docs/raw/docs/{(docs)/guides → guides}/message-timing.mdx +45 -6
- package/.docs/raw/docs/{(docs)/guides → guides}/multi-agent.mdx +66 -6
- package/.docs/raw/docs/{(docs)/guides → guides}/quoting.mdx +11 -18
- package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +212 -0
- package/.docs/raw/docs/guides/resumable-stream-stores.mdx +152 -0
- package/.docs/raw/docs/guides/resumable-streams.mdx +210 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/slash-commands.mdx +104 -38
- package/.docs/raw/docs/guides/speech.mdx +156 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/suggestions.mdx +91 -69
- package/.docs/raw/docs/{(docs)/guides → guides}/tool-ui.mdx +110 -38
- package/.docs/raw/docs/{(docs)/guides → guides}/tools.mdx +197 -40
- package/.docs/raw/docs/{(docs)/guides → guides}/voice.mdx +41 -2
- package/.docs/raw/docs/ink/adapters.mdx +37 -1
- package/.docs/raw/docs/ink/custom-backend.mdx +59 -8
- package/.docs/raw/docs/ink/index.mdx +11 -14
- package/.docs/raw/docs/ink/migration.mdx +1 -3
- package/.docs/raw/docs/ink/primitives.mdx +386 -9
- package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +520 -0
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +191 -0
- package/.docs/raw/docs/integrations/auth/clerk.mdx +172 -0
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +196 -0
- package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +79 -0
- package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +282 -0
- package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +188 -0
- package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +57 -0
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +201 -0
- package/.docs/raw/docs/integrations/gateways/index.mdx +162 -0
- package/.docs/raw/docs/integrations/index.mdx +185 -0
- package/.docs/raw/docs/integrations/observability/helicone.mdx +130 -0
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +163 -0
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +150 -0
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +712 -0
- package/.docs/raw/docs/integrations/tools/mcp.mdx +267 -0
- package/.docs/raw/docs/integrations/tools/react-mcp.mdx +337 -0
- package/.docs/raw/docs/migrations/v0-14.mdx +297 -0
- package/.docs/raw/docs/primitives/action-bar.mdx +1 -0
- package/.docs/raw/docs/primitives/assistant-modal.mdx +1 -0
- package/.docs/raw/docs/primitives/attachment.mdx +1 -0
- package/.docs/raw/docs/primitives/branch-picker.mdx +1 -0
- package/.docs/raw/docs/primitives/chain-of-thought.mdx +90 -85
- package/.docs/raw/docs/primitives/composer.mdx +55 -1
- package/.docs/raw/docs/primitives/error.mdx +1 -0
- package/.docs/raw/docs/primitives/index.mdx +4 -3
- package/.docs/raw/docs/primitives/message.mdx +68 -5
- package/.docs/raw/docs/primitives/selection-toolbar.mdx +1 -0
- package/.docs/raw/docs/primitives/suggestion.mdx +10 -0
- package/.docs/raw/docs/primitives/thread-list.mdx +39 -0
- package/.docs/raw/docs/primitives/thread.mdx +16 -13
- package/.docs/raw/docs/react-native/hooks.mdx +2 -2
- package/.docs/raw/docs/react-native/index.mdx +5 -7
- package/.docs/raw/docs/react-native/migration.mdx +1 -3
- package/.docs/raw/docs/runtimes/a2a/client-and-hooks.mdx +396 -0
- package/.docs/raw/docs/runtimes/a2a/overview.mdx +60 -0
- package/.docs/raw/docs/runtimes/a2a/quickstart.mdx +216 -0
- package/.docs/raw/docs/runtimes/ag-ui/overview.mdx +70 -0
- package/.docs/raw/docs/runtimes/ag-ui/quickstart.mdx +243 -0
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +154 -0
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +52 -0
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +73 -128
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +70 -64
- package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +337 -123
- package/.docs/raw/docs/runtimes/concepts/adapters.mdx +265 -0
- package/.docs/raw/docs/runtimes/concepts/architecture.mdx +125 -0
- package/.docs/raw/docs/runtimes/concepts/stability.mdx +67 -0
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +428 -0
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +703 -0
- package/.docs/raw/docs/runtimes/custom/data-stream.mdx +348 -0
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +261 -1236
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +746 -0
- package/.docs/raw/docs/runtimes/custom/overview.mdx +71 -0
- package/.docs/raw/docs/runtimes/google-adk/api.mdx +256 -0
- package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +717 -0
- package/.docs/raw/docs/runtimes/google-adk/overview.mdx +69 -0
- package/.docs/raw/docs/runtimes/google-adk/quickstart.mdx +229 -0
- package/.docs/raw/docs/runtimes/langchain.mdx +533 -0
- package/.docs/raw/docs/runtimes/langgraph/generative-ui.mdx +305 -0
- package/.docs/raw/docs/runtimes/langgraph/interrupts.mdx +104 -0
- package/.docs/raw/docs/runtimes/langgraph/overview.mdx +84 -0
- package/.docs/raw/docs/runtimes/langgraph/quickstart.mdx +496 -0
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +127 -0
- package/.docs/raw/docs/runtimes/langgraph/threads.mdx +113 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/introduction.mdx +3 -3
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-1.mdx +0 -23
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +1 -1
- package/.docs/raw/docs/runtimes/opencode/hooks.mdx +191 -0
- package/.docs/raw/docs/runtimes/opencode/overview.mdx +48 -0
- package/.docs/raw/docs/runtimes/opencode/quickstart.mdx +119 -0
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +78 -203
- package/.docs/raw/docs/ui/accordion.mdx +1 -0
- package/.docs/raw/docs/ui/assistant-modal.mdx +1 -0
- package/.docs/raw/docs/ui/assistant-sidebar.mdx +1 -0
- package/.docs/raw/docs/ui/attachment.mdx +1 -0
- package/.docs/raw/docs/ui/badge.mdx +1 -0
- package/.docs/raw/docs/ui/composer-trigger-popover.mdx +12 -1
- package/.docs/raw/docs/ui/context-display.mdx +1 -0
- package/.docs/raw/docs/ui/diff-viewer.mdx +1 -0
- package/.docs/raw/docs/ui/directive-text.mdx +1 -0
- package/.docs/raw/docs/ui/file.mdx +1 -0
- package/.docs/raw/docs/ui/image.mdx +1 -0
- package/.docs/raw/docs/ui/markdown.mdx +2 -14
- package/.docs/raw/docs/ui/mcp-config.mdx +102 -0
- package/.docs/raw/docs/ui/mermaid.mdx +1 -0
- package/.docs/raw/docs/ui/message-timing.mdx +3 -2
- package/.docs/raw/docs/ui/model-selector.mdx +9 -8
- package/.docs/raw/docs/ui/part-grouping.mdx +325 -313
- package/.docs/raw/docs/ui/quote.mdx +1 -0
- package/.docs/raw/docs/ui/reasoning.mdx +66 -33
- package/.docs/raw/docs/ui/scrollbar.mdx +1 -0
- package/.docs/raw/docs/ui/select.mdx +1 -0
- package/.docs/raw/docs/ui/sources.mdx +18 -0
- package/.docs/raw/docs/ui/streamdown.mdx +35 -2
- package/.docs/raw/docs/ui/syntax-highlighting.mdx +1 -0
- package/.docs/raw/docs/ui/tabs.mdx +1 -0
- package/.docs/raw/docs/ui/thread-list.mdx +19 -2
- package/.docs/raw/docs/ui/thread.mdx +58 -3
- package/.docs/raw/docs/ui/tool-fallback.mdx +1 -0
- package/.docs/raw/docs/ui/tool-group.mdx +39 -11
- package/.docs/raw/docs/ui/voice.mdx +1 -0
- package/.docs/raw/docs/utilities/heat-graph.mdx +1 -0
- package/.docs/raw/docs/utilities/react-o11y.mdx +278 -0
- package/.docs/raw/docs/utilities/tw-shimmer.mdx +1 -0
- package/README.md +14 -72
- package/dist/constants.d.ts +12 -9
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +13 -9
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -24
- package/dist/index.js.map +1 -1
- package/dist/prepare-docs/code-examples.d.ts +4 -1
- package/dist/prepare-docs/code-examples.d.ts.map +1 -1
- package/dist/prepare-docs/code-examples.js +109 -121
- package/dist/prepare-docs/code-examples.js.map +1 -1
- package/dist/prepare-docs/copy-raw.d.ts +4 -1
- package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
- package/dist/prepare-docs/copy-raw.js +45 -42
- package/dist/prepare-docs/copy-raw.js.map +1 -1
- package/dist/prepare-docs/prepare.d.ts +1 -2
- package/dist/prepare-docs/prepare.js +17 -17
- package/dist/prepare-docs/prepare.js.map +1 -1
- package/dist/stdio.d.ts +1 -3
- package/dist/stdio.js +6 -3
- package/dist/stdio.js.map +1 -1
- package/dist/tools/docs.d.ts +20 -15
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/docs.js +140 -161
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.d.ts +20 -15
- package/dist/tools/examples.d.ts.map +1 -1
- package/dist/tools/examples.js +74 -86
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/tests/test-setup.d.ts +5 -2
- package/dist/tools/tests/test-setup.d.ts.map +1 -1
- package/dist/tools/tests/test-setup.js +21 -28
- package/dist/tools/tests/test-setup.js.map +1 -1
- package/dist/utils/logger.d.ts +8 -5
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +17 -17
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/mcp-format.d.ts +8 -5
- package/dist/utils/mcp-format.d.ts.map +1 -1
- package/dist/utils/mcp-format.js +9 -9
- package/dist/utils/mcp-format.js.map +1 -1
- package/dist/utils/mdx.d.ts +8 -6
- package/dist/utils/mdx.d.ts.map +1 -1
- package/dist/utils/mdx.js +22 -22
- package/dist/utils/mdx.js.map +1 -1
- package/dist/utils/paths.d.ts +9 -6
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +66 -76
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/security.d.ts +4 -1
- package/dist/utils/security.d.ts.map +1 -1
- package/dist/utils/security.js +19 -40
- package/dist/utils/security.js.map +1 -1
- package/package.json +6 -6
- package/src/tools/tests/path-traversal.test.ts +1 -1
- package/.docs/raw/docs/(docs)/guides/branching.mdx +0 -65
- package/.docs/raw/docs/(docs)/guides/chain-of-thought.mdx +0 -164
- package/.docs/raw/docs/(docs)/guides/editing.mdx +0 -66
- package/.docs/raw/docs/(docs)/guides/speech.mdx +0 -38
- package/.docs/raw/docs/(reference)/api-reference/context-providers/text-message-part-provider.mdx +0 -40
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +0 -260
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-hook-form.mdx +0 -103
- package/.docs/raw/docs/(reference)/api-reference/integrations/vercel-ai-sdk.mdx +0 -254
- package/.docs/raw/docs/(reference)/migrations/v0-14.mdx +0 -159
- package/.docs/raw/docs/runtimes/a2a/index.mdx +0 -298
- package/.docs/raw/docs/runtimes/assistant-transport.mdx +0 -1033
- package/.docs/raw/docs/runtimes/custom/custom-thread-list.mdx +0 -314
- package/.docs/raw/docs/runtimes/custom/local.mdx +0 -1464
- package/.docs/raw/docs/runtimes/data-stream.mdx +0 -422
- package/.docs/raw/docs/runtimes/google-adk/index.mdx +0 -686
- package/.docs/raw/docs/runtimes/helicone.mdx +0 -61
- package/.docs/raw/docs/runtimes/langchain/comparison.mdx +0 -60
- package/.docs/raw/docs/runtimes/langchain/index.mdx +0 -210
- package/.docs/raw/docs/runtimes/langgraph/index.mdx +0 -699
- package/.docs/raw/docs/runtimes/langgraph/tutorial/index.mdx +0 -12
- package/.docs/raw/docs/runtimes/langserve.mdx +0 -116
- package/.docs/raw/docs/runtimes/mastra/full-stack-integration.mdx +0 -218
- package/.docs/raw/docs/runtimes/mastra/overview.mdx +0 -18
- package/.docs/raw/docs/runtimes/mastra/separate-server-integration.mdx +0 -217
- package/dist/prepare-docs/prepare.d.ts.map +0 -1
- package/dist/stdio.d.ts.map +0 -1
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/deprecation-policy.mdx +0 -0
- /package/.docs/raw/docs/{(reference) → migrations}/react-compatibility.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/react-langgraph-v0-7.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/v0-11.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/v0-12.mdx +0 -0
|
@@ -21,7 +21,7 @@ export async function POST(req: Request) {
|
|
|
21
21
|
const { messages }: { messages: UIMessage[] } = await req.json();
|
|
22
22
|
|
|
23
23
|
const result = streamText({
|
|
24
|
-
model: openai("gpt-
|
|
24
|
+
model: openai("gpt-5.4-nano"),
|
|
25
25
|
messages: await convertToModelMessages(messages),
|
|
26
26
|
stopWhen: stepCountIs(10),
|
|
27
27
|
tools: {
|
|
@@ -562,31 +562,31 @@ export default nextConfig;
|
|
|
562
562
|
"version": "0.0.0",
|
|
563
563
|
"type": "module",
|
|
564
564
|
"dependencies": {
|
|
565
|
-
"@ai-sdk/openai": "^3.0.
|
|
566
|
-
"@ai-sdk/react": "^3.0.
|
|
565
|
+
"@ai-sdk/openai": "^3.0.64",
|
|
566
|
+
"@ai-sdk/react": "^3.0.190",
|
|
567
567
|
"@assistant-ui/react": "workspace:^",
|
|
568
568
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
569
569
|
"@assistant-ui/react-markdown": "workspace:^",
|
|
570
570
|
"@assistant-ui/ui": "workspace:*",
|
|
571
|
-
"@elevenlabs/client": "^1.
|
|
572
|
-
"@tailwindcss/postcss": "^4.
|
|
573
|
-
"ai": "^6.0.
|
|
571
|
+
"@elevenlabs/client": "^1.8.0",
|
|
572
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
573
|
+
"ai": "^6.0.188",
|
|
574
574
|
"class-variance-authority": "^0.7.1",
|
|
575
575
|
"clsx": "^2.1.1",
|
|
576
|
-
"lucide-react": "^1.
|
|
577
|
-
"motion": "^12.
|
|
578
|
-
"next": "^16.2.
|
|
579
|
-
"postcss": "^8.5.
|
|
580
|
-
"react": "^19.2.
|
|
581
|
-
"react-dom": "^19.2.
|
|
582
|
-
"tailwind-merge": "^3.
|
|
583
|
-
"tailwindcss": "^4.
|
|
584
|
-
"zod": "^4.3
|
|
576
|
+
"lucide-react": "^1.16.0",
|
|
577
|
+
"motion": "^12.39.0",
|
|
578
|
+
"next": "^16.2.6",
|
|
579
|
+
"postcss": "^8.5.15",
|
|
580
|
+
"react": "^19.2.6",
|
|
581
|
+
"react-dom": "^19.2.6",
|
|
582
|
+
"tailwind-merge": "^3.6.0",
|
|
583
|
+
"tailwindcss": "^4.3.0",
|
|
584
|
+
"zod": "^4.4.3"
|
|
585
585
|
},
|
|
586
586
|
"devDependencies": {
|
|
587
587
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
588
|
-
"@types/node": "^25.
|
|
589
|
-
"@types/react": "^19.2.
|
|
588
|
+
"@types/node": "^25.9.1",
|
|
589
|
+
"@types/react": "^19.2.15",
|
|
590
590
|
"@types/react-dom": "^19.2.3",
|
|
591
591
|
"tw-animate-css": "^1.4.0",
|
|
592
592
|
"typescript": "^6.0.3"
|
|
@@ -671,6 +671,7 @@ npm run dev
|
|
|
671
671
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
672
672
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
673
673
|
"@assistant-ui/*": ["../../packages/*/src"],
|
|
674
|
+
"@assistant-ui/core/*": ["../../packages/core/src/*"],
|
|
674
675
|
"@assistant-ui/react/*": ["../../packages/react/src/*"],
|
|
675
676
|
"@assistant-ui/tap/*": ["../../packages/tap/src/*"],
|
|
676
677
|
"assistant-stream": ["../../packages/assistant-stream/src"],
|
|
@@ -178,7 +178,7 @@ export async function POST(req: Request) {
|
|
|
178
178
|
const body = await req.json();
|
|
179
179
|
const { messages, tools } = body;
|
|
180
180
|
|
|
181
|
-
const model = openai("gpt-
|
|
181
|
+
const model = openai("gpt-5.4-nano");
|
|
182
182
|
|
|
183
183
|
const prunedMessages = pruneMessages({
|
|
184
184
|
messages: await convertToModelMessages(messages),
|
|
@@ -1944,38 +1944,38 @@ module.exports = config;
|
|
|
1944
1944
|
"export:web": "expo export --platform web && node scripts/flatten-assets.mjs"
|
|
1945
1945
|
},
|
|
1946
1946
|
"dependencies": {
|
|
1947
|
-
"@ai-sdk/openai": "^3.0.
|
|
1948
|
-
"@ai-sdk/react": "^3.0.
|
|
1947
|
+
"@ai-sdk/openai": "^3.0.64",
|
|
1948
|
+
"@ai-sdk/react": "^3.0.190",
|
|
1949
1949
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
1950
1950
|
"@assistant-ui/react-native": "workspace:*",
|
|
1951
1951
|
"@expo/vector-icons": "^15.1.1",
|
|
1952
1952
|
"@react-navigation/drawer": "7.9.4",
|
|
1953
1953
|
"@react-navigation/native": "7.1.33",
|
|
1954
|
-
"ai": "^6.0.
|
|
1955
|
-
"expo": "~
|
|
1956
|
-
"expo-constants": "~
|
|
1957
|
-
"expo-font": "~
|
|
1958
|
-
"expo-image-picker": "~
|
|
1959
|
-
"expo-linking": "~
|
|
1960
|
-
"expo-router": "~
|
|
1961
|
-
"expo-server": "~
|
|
1962
|
-
"expo-splash-screen": "~
|
|
1963
|
-
"expo-status-bar": "~
|
|
1964
|
-
"expo-system-ui": "~
|
|
1965
|
-
"react": "19.2.
|
|
1966
|
-
"react-dom": "19.2.
|
|
1967
|
-
"react-native": "0.
|
|
1968
|
-
"react-native-gesture-handler": "2.
|
|
1969
|
-
"react-native-reanimated": "4.
|
|
1970
|
-
"react-native-safe-area-context": "5.
|
|
1971
|
-
"react-native-screens": "4.
|
|
1954
|
+
"ai": "^6.0.188",
|
|
1955
|
+
"expo": "~56.0.4",
|
|
1956
|
+
"expo-constants": "~56.0.15",
|
|
1957
|
+
"expo-font": "~56.0.5",
|
|
1958
|
+
"expo-image-picker": "~56.0.13",
|
|
1959
|
+
"expo-linking": "~56.0.11",
|
|
1960
|
+
"expo-router": "~56.2.6",
|
|
1961
|
+
"expo-server": "~56.0.4",
|
|
1962
|
+
"expo-splash-screen": "~56.0.10",
|
|
1963
|
+
"expo-status-bar": "~56.0.4",
|
|
1964
|
+
"expo-system-ui": "~56.0.5",
|
|
1965
|
+
"react": "19.2.3",
|
|
1966
|
+
"react-dom": "19.2.3",
|
|
1967
|
+
"react-native": "0.85.3",
|
|
1968
|
+
"react-native-gesture-handler": "~2.31.2",
|
|
1969
|
+
"react-native-reanimated": "4.3.1",
|
|
1970
|
+
"react-native-safe-area-context": "~5.7.0",
|
|
1971
|
+
"react-native-screens": "4.25.2",
|
|
1972
1972
|
"react-native-web": "~0.21.2",
|
|
1973
|
-
"react-native-worklets": "0.
|
|
1974
|
-
"zod": "^4.3
|
|
1973
|
+
"react-native-worklets": "0.8.3",
|
|
1974
|
+
"zod": "^4.4.3"
|
|
1975
1975
|
},
|
|
1976
1976
|
"devDependencies": {
|
|
1977
|
-
"@types/react": "~19.2.
|
|
1978
|
-
"typescript": "
|
|
1977
|
+
"@types/react": "~19.2.15",
|
|
1978
|
+
"typescript": "~6.0.3"
|
|
1979
1979
|
},
|
|
1980
1980
|
"private": true
|
|
1981
1981
|
}
|
|
@@ -319,20 +319,20 @@ export default nextConfig;
|
|
|
319
319
|
"@assistant-ui/ui": "workspace:*",
|
|
320
320
|
"class-variance-authority": "^0.7.1",
|
|
321
321
|
"clsx": "^2.1.1",
|
|
322
|
-
"lucide-react": "^1.
|
|
323
|
-
"next": "^16.2.
|
|
324
|
-
"react": "^19.2.
|
|
325
|
-
"react-dom": "^19.2.
|
|
326
|
-
"tailwind-merge": "^3.
|
|
322
|
+
"lucide-react": "^1.16.0",
|
|
323
|
+
"next": "^16.2.6",
|
|
324
|
+
"react": "^19.2.6",
|
|
325
|
+
"react-dom": "^19.2.6",
|
|
326
|
+
"tailwind-merge": "^3.6.0"
|
|
327
327
|
},
|
|
328
328
|
"devDependencies": {
|
|
329
329
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
330
|
-
"@tailwindcss/postcss": "^4.
|
|
331
|
-
"@types/node": "^25.
|
|
332
|
-
"@types/react": "^19.2.
|
|
330
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
331
|
+
"@types/node": "^25.9.1",
|
|
332
|
+
"@types/react": "^19.2.15",
|
|
333
333
|
"@types/react-dom": "^19.2.3",
|
|
334
|
-
"postcss": "^8.5.
|
|
335
|
-
"tailwindcss": "^4.
|
|
334
|
+
"postcss": "^8.5.15",
|
|
335
|
+
"tailwindcss": "^4.3.0",
|
|
336
336
|
"tw-animate-css": "^1.4.0",
|
|
337
337
|
"typescript": "^6.0.3"
|
|
338
338
|
}
|
|
@@ -13,7 +13,7 @@ export async function POST(req: Request) {
|
|
|
13
13
|
const { messages, system, tools } = await req.json();
|
|
14
14
|
|
|
15
15
|
const result = streamText({
|
|
16
|
-
model: openai("gpt-
|
|
16
|
+
model: openai("gpt-5.4-nano"),
|
|
17
17
|
messages: await convertToModelMessages(messages),
|
|
18
18
|
system,
|
|
19
19
|
tools: {
|
|
@@ -682,31 +682,31 @@ export default nextConfig;
|
|
|
682
682
|
"start": "next start"
|
|
683
683
|
},
|
|
684
684
|
"dependencies": {
|
|
685
|
-
"@ai-sdk/openai": "^3.0.
|
|
685
|
+
"@ai-sdk/openai": "^3.0.64",
|
|
686
686
|
"@assistant-ui/react": "workspace:*",
|
|
687
687
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
688
688
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
689
689
|
"@assistant-ui/ui": "workspace:*",
|
|
690
690
|
"@ffmpeg/ffmpeg": "^0.12.15",
|
|
691
691
|
"@ffmpeg/util": "^0.12.2",
|
|
692
|
-
"ai": "^6.0.
|
|
692
|
+
"ai": "^6.0.188",
|
|
693
693
|
"class-variance-authority": "^0.7.1",
|
|
694
694
|
"clsx": "^2.1.1",
|
|
695
|
-
"lucide-react": "^1.
|
|
696
|
-
"next": "^16.2.
|
|
697
|
-
"react": "^19.2.
|
|
698
|
-
"react-dom": "^19.2.
|
|
699
|
-
"tailwind-merge": "^3.
|
|
700
|
-
"zod": "^4.3
|
|
695
|
+
"lucide-react": "^1.16.0",
|
|
696
|
+
"next": "^16.2.6",
|
|
697
|
+
"react": "^19.2.6",
|
|
698
|
+
"react-dom": "^19.2.6",
|
|
699
|
+
"tailwind-merge": "^3.6.0",
|
|
700
|
+
"zod": "^4.4.3"
|
|
701
701
|
},
|
|
702
702
|
"devDependencies": {
|
|
703
703
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
704
|
-
"@tailwindcss/postcss": "^4.
|
|
705
|
-
"@types/node": "^25.
|
|
706
|
-
"@types/react": "^19.2.
|
|
704
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
705
|
+
"@types/node": "^25.9.1",
|
|
706
|
+
"@types/react": "^19.2.15",
|
|
707
707
|
"@types/react-dom": "^19.2.3",
|
|
708
|
-
"postcss": "^8.5.
|
|
709
|
-
"tailwindcss": "^4.
|
|
708
|
+
"postcss": "^8.5.15",
|
|
709
|
+
"tailwindcss": "^4.3.0",
|
|
710
710
|
"tw-animate-css": "^1.4.0",
|
|
711
711
|
"typescript": "^6.0.3"
|
|
712
712
|
}
|
|
@@ -44,7 +44,7 @@ export async function POST(req: Request) {
|
|
|
44
44
|
: {};
|
|
45
45
|
|
|
46
46
|
const result = streamText({
|
|
47
|
-
model: openai("gpt-
|
|
47
|
+
model: openai("gpt-5.4-nano"),
|
|
48
48
|
messages: await convertToModelMessages(messages),
|
|
49
49
|
stopWhen: stepCountIs(10),
|
|
50
50
|
...(system ? { system } : {}),
|
|
@@ -355,6 +355,106 @@ export default function Home() {
|
|
|
355
355
|
|
|
356
356
|
```
|
|
357
357
|
|
|
358
|
+
## app/primitive/page.tsx
|
|
359
|
+
|
|
360
|
+
```tsx
|
|
361
|
+
"use client";
|
|
362
|
+
|
|
363
|
+
import { GenerativeUIRender, type GenerativeUISpec } from "@assistant-ui/react";
|
|
364
|
+
import { componentsAllowlist } from "@/components/gui";
|
|
365
|
+
|
|
366
|
+
const UnknownComponentFallback = ({ component }: { component: string }) => (
|
|
367
|
+
<span className="rounded bg-muted px-1.5 py-0.5 font-mono text-xs">
|
|
368
|
+
unknown component: {component}
|
|
369
|
+
</span>
|
|
370
|
+
);
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Self-contained demo of the GenerativeUI primitive.
|
|
374
|
+
*
|
|
375
|
+
* Renders a hand-written `GenerativeUISpec` directly via `GenerativeUIRender`,
|
|
376
|
+
* the same renderer that backs `MessagePrimitive.GenerativeUI` when a
|
|
377
|
+
* `generative-ui` part flows through `MessagePrimitive.Parts`.
|
|
378
|
+
*
|
|
379
|
+
* In a real integration the spec arrives as a `generative-ui` message part
|
|
380
|
+
* from the agent; the consumer-provided allowlist is the security boundary.
|
|
381
|
+
*/
|
|
382
|
+
const exampleSpec: GenerativeUISpec = {
|
|
383
|
+
root: [
|
|
384
|
+
{
|
|
385
|
+
component: "Card",
|
|
386
|
+
props: {
|
|
387
|
+
title: "Welcome",
|
|
388
|
+
description: "An agent-described card with a primary CTA.",
|
|
389
|
+
},
|
|
390
|
+
children: [
|
|
391
|
+
{
|
|
392
|
+
component: "Stack",
|
|
393
|
+
props: { gap: "sm" },
|
|
394
|
+
children: [
|
|
395
|
+
{
|
|
396
|
+
component: "Text",
|
|
397
|
+
children: [
|
|
398
|
+
"This card was rendered from a JSON spec emitted by the agent.",
|
|
399
|
+
],
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
component: "Button",
|
|
403
|
+
props: {
|
|
404
|
+
label: "Get started",
|
|
405
|
+
variant: "primary",
|
|
406
|
+
onClickPrompt: "open onboarding",
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
],
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
component: "Card",
|
|
415
|
+
props: { title: "Stats" },
|
|
416
|
+
children: [
|
|
417
|
+
{
|
|
418
|
+
component: "Stack",
|
|
419
|
+
props: { direction: "row", gap: "md" },
|
|
420
|
+
children: [
|
|
421
|
+
{ component: "Stat", props: { label: "Revenue", value: "$124k" } },
|
|
422
|
+
{
|
|
423
|
+
component: "Stat",
|
|
424
|
+
props: { label: "Active Users", value: "8.2k" },
|
|
425
|
+
},
|
|
426
|
+
{ component: "Stat", props: { label: "Latency", value: "42ms" } },
|
|
427
|
+
],
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
export default function GenerativeUIPrimitivePage() {
|
|
435
|
+
return (
|
|
436
|
+
<main className="mx-auto flex h-full max-w-2xl flex-col gap-6 p-8">
|
|
437
|
+
<header>
|
|
438
|
+
<h1 className="font-bold text-2xl">MessagePrimitive.GenerativeUI</h1>
|
|
439
|
+
<p className="mt-1 text-muted-foreground text-sm">
|
|
440
|
+
Agent-described React UI rendered from a JSON spec via a
|
|
441
|
+
consumer-provided component allowlist.
|
|
442
|
+
</p>
|
|
443
|
+
</header>
|
|
444
|
+
|
|
445
|
+
<section className="flex flex-col gap-4">
|
|
446
|
+
<GenerativeUIRender
|
|
447
|
+
spec={exampleSpec}
|
|
448
|
+
components={componentsAllowlist}
|
|
449
|
+
Fallback={UnknownComponentFallback}
|
|
450
|
+
/>
|
|
451
|
+
</section>
|
|
452
|
+
</main>
|
|
453
|
+
);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
```
|
|
457
|
+
|
|
358
458
|
## components.json
|
|
359
459
|
|
|
360
460
|
```json
|
|
@@ -697,6 +797,103 @@ export const DatePickerToolUI = makeAssistantToolUI<
|
|
|
697
797
|
|
|
698
798
|
```
|
|
699
799
|
|
|
800
|
+
## components/gui/index.tsx
|
|
801
|
+
|
|
802
|
+
```tsx
|
|
803
|
+
"use client";
|
|
804
|
+
|
|
805
|
+
import type { ComponentType, PropsWithChildren } from "react";
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* The component allowlist passed to `<MessagePrimitive.GenerativeUI />`.
|
|
809
|
+
* The agent's JSON spec can reference any of these by name.
|
|
810
|
+
*/
|
|
811
|
+
|
|
812
|
+
const Card: ComponentType<
|
|
813
|
+
PropsWithChildren<{ title?: string; description?: string }>
|
|
814
|
+
> = ({ title, description, children }) => (
|
|
815
|
+
<div className="rounded-xl border bg-card p-4 shadow-sm">
|
|
816
|
+
{title ? <div className="font-semibold text-base">{title}</div> : null}
|
|
817
|
+
{description ? (
|
|
818
|
+
<div className="mt-1 text-muted-foreground text-sm">{description}</div>
|
|
819
|
+
) : null}
|
|
820
|
+
{children ? <div className="mt-3">{children}</div> : null}
|
|
821
|
+
</div>
|
|
822
|
+
);
|
|
823
|
+
|
|
824
|
+
const Button: ComponentType<
|
|
825
|
+
PropsWithChildren<{
|
|
826
|
+
label?: string;
|
|
827
|
+
variant?: "primary" | "secondary";
|
|
828
|
+
onClickPrompt?: string;
|
|
829
|
+
}>
|
|
830
|
+
> = ({ label, variant = "primary", onClickPrompt, children }) => {
|
|
831
|
+
const cls =
|
|
832
|
+
variant === "primary"
|
|
833
|
+
? "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
834
|
+
: "bg-secondary text-secondary-foreground hover:bg-secondary/80";
|
|
835
|
+
return (
|
|
836
|
+
<button
|
|
837
|
+
type="button"
|
|
838
|
+
className={`mt-2 inline-flex items-center rounded-md px-3 py-1.5 font-medium text-sm ${cls}`}
|
|
839
|
+
onClick={() => {
|
|
840
|
+
if (onClickPrompt) {
|
|
841
|
+
// In a richer integration this would call composer.setText / send.
|
|
842
|
+
alert(`button -> ${onClickPrompt}`);
|
|
843
|
+
}
|
|
844
|
+
}}
|
|
845
|
+
>
|
|
846
|
+
{children ?? label ?? "Click"}
|
|
847
|
+
</button>
|
|
848
|
+
);
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
const Stack: ComponentType<
|
|
852
|
+
PropsWithChildren<{ gap?: "sm" | "md" | "lg"; direction?: "row" | "column" }>
|
|
853
|
+
> = ({ gap = "md", direction = "column", children }) => {
|
|
854
|
+
const gapClass = gap === "sm" ? "gap-2" : gap === "lg" ? "gap-6" : "gap-4";
|
|
855
|
+
const dirClass = direction === "row" ? "flex-row" : "flex-col";
|
|
856
|
+
return <div className={`flex ${dirClass} ${gapClass}`}>{children}</div>;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
const Heading: ComponentType<
|
|
860
|
+
PropsWithChildren<{ level?: 1 | 2 | 3; children?: React.ReactNode }>
|
|
861
|
+
> = ({ level = 2, children }) => {
|
|
862
|
+
const cls =
|
|
863
|
+
level === 1
|
|
864
|
+
? "text-2xl font-bold"
|
|
865
|
+
: level === 2
|
|
866
|
+
? "text-lg font-semibold"
|
|
867
|
+
: "text-base font-semibold";
|
|
868
|
+
const Tag = `h${level}` as keyof React.JSX.IntrinsicElements;
|
|
869
|
+
return <Tag className={cls}>{children}</Tag>;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
const Text: ComponentType<PropsWithChildren> = ({ children }) => (
|
|
873
|
+
<p className="text-foreground text-sm leading-6">{children}</p>
|
|
874
|
+
);
|
|
875
|
+
|
|
876
|
+
const Stat: ComponentType<{ label: string; value: string | number }> = ({
|
|
877
|
+
label,
|
|
878
|
+
value,
|
|
879
|
+
}) => (
|
|
880
|
+
<div className="flex flex-col rounded-lg border bg-muted/40 p-3">
|
|
881
|
+
<span className="text-muted-foreground text-xs">{label}</span>
|
|
882
|
+
<span className="font-semibold text-xl">{value}</span>
|
|
883
|
+
</div>
|
|
884
|
+
);
|
|
885
|
+
|
|
886
|
+
export const componentsAllowlist = {
|
|
887
|
+
Card,
|
|
888
|
+
Button,
|
|
889
|
+
Stack,
|
|
890
|
+
Heading,
|
|
891
|
+
Text,
|
|
892
|
+
Stat,
|
|
893
|
+
} as const;
|
|
894
|
+
|
|
895
|
+
```
|
|
896
|
+
|
|
700
897
|
## components/location-tool-ui.tsx
|
|
701
898
|
|
|
702
899
|
```tsx
|
|
@@ -787,29 +984,29 @@ export default nextConfig;
|
|
|
787
984
|
"start": "next start"
|
|
788
985
|
},
|
|
789
986
|
"dependencies": {
|
|
790
|
-
"@ai-sdk/openai": "^3.0.
|
|
987
|
+
"@ai-sdk/openai": "^3.0.64",
|
|
791
988
|
"@assistant-ui/react": "workspace:*",
|
|
792
989
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
793
990
|
"@assistant-ui/ui": "workspace:*",
|
|
794
|
-
"ai": "^6.0.
|
|
991
|
+
"ai": "^6.0.188",
|
|
795
992
|
"class-variance-authority": "^0.7.1",
|
|
796
993
|
"clsx": "^2.1.1",
|
|
797
|
-
"lucide-react": "^1.
|
|
798
|
-
"next": "^16.2.
|
|
799
|
-
"react": "^19.2.
|
|
800
|
-
"react-dom": "^19.2.
|
|
994
|
+
"lucide-react": "^1.16.0",
|
|
995
|
+
"next": "^16.2.6",
|
|
996
|
+
"react": "^19.2.6",
|
|
997
|
+
"react-dom": "^19.2.6",
|
|
801
998
|
"recharts": "^3.8.1",
|
|
802
|
-
"tailwind-merge": "^3.
|
|
803
|
-
"zod": "^4.3
|
|
999
|
+
"tailwind-merge": "^3.6.0",
|
|
1000
|
+
"zod": "^4.4.3"
|
|
804
1001
|
},
|
|
805
1002
|
"devDependencies": {
|
|
806
1003
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
807
|
-
"@tailwindcss/postcss": "^4.
|
|
808
|
-
"@types/node": "^25.
|
|
809
|
-
"@types/react": "^19.2.
|
|
1004
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
1005
|
+
"@types/node": "^25.9.1",
|
|
1006
|
+
"@types/react": "^19.2.15",
|
|
810
1007
|
"@types/react-dom": "^19.2.3",
|
|
811
|
-
"postcss": "^8.5.
|
|
812
|
-
"tailwindcss": "^4.
|
|
1008
|
+
"postcss": "^8.5.15",
|
|
1009
|
+
"tailwindcss": "^4.3.0",
|
|
813
1010
|
"tw-animate-css": "^1.4.0",
|
|
814
1011
|
"typescript": "^6.0.3"
|
|
815
1012
|
}
|
|
@@ -304,24 +304,24 @@ export default nextConfig;
|
|
|
304
304
|
"@assistant-ui/react-google-adk": "workspace:*",
|
|
305
305
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
306
306
|
"@assistant-ui/ui": "workspace:*",
|
|
307
|
-
"@google/adk": "^1.
|
|
307
|
+
"@google/adk": "^1.1.0",
|
|
308
308
|
"class-variance-authority": "^0.7.1",
|
|
309
309
|
"clsx": "^2.1.1",
|
|
310
|
-
"lucide-react": "^1.
|
|
311
|
-
"next": "^16.2.
|
|
312
|
-
"react": "^19.2.
|
|
313
|
-
"react-dom": "^19.2.
|
|
314
|
-
"tailwind-merge": "^3.
|
|
315
|
-
"zod": "^4.3
|
|
310
|
+
"lucide-react": "^1.16.0",
|
|
311
|
+
"next": "^16.2.6",
|
|
312
|
+
"react": "^19.2.6",
|
|
313
|
+
"react-dom": "^19.2.6",
|
|
314
|
+
"tailwind-merge": "^3.6.0",
|
|
315
|
+
"zod": "^4.4.3"
|
|
316
316
|
},
|
|
317
317
|
"devDependencies": {
|
|
318
318
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
319
|
-
"@tailwindcss/postcss": "^4.
|
|
320
|
-
"@types/node": "^25.
|
|
321
|
-
"@types/react": "^19.2.
|
|
319
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
320
|
+
"@types/node": "^25.9.1",
|
|
321
|
+
"@types/react": "^19.2.15",
|
|
322
322
|
"@types/react-dom": "^19.2.3",
|
|
323
|
-
"postcss": "^8.5.
|
|
324
|
-
"tailwindcss": "^4.
|
|
323
|
+
"postcss": "^8.5.15",
|
|
324
|
+
"tailwindcss": "^4.3.0",
|
|
325
325
|
"tw-animate-css": "^1.4.0",
|
|
326
326
|
"typescript": "^6.0.3"
|
|
327
327
|
}
|
|
@@ -270,18 +270,18 @@ export default nextConfig;
|
|
|
270
270
|
},
|
|
271
271
|
"dependencies": {
|
|
272
272
|
"heat-graph": "workspace:*",
|
|
273
|
-
"next": "^16.2.
|
|
274
|
-
"react": "^19.2.
|
|
275
|
-
"react-dom": "^19.2.
|
|
273
|
+
"next": "^16.2.6",
|
|
274
|
+
"react": "^19.2.6",
|
|
275
|
+
"react-dom": "^19.2.6"
|
|
276
276
|
},
|
|
277
277
|
"devDependencies": {
|
|
278
278
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
279
|
-
"@tailwindcss/postcss": "^4.
|
|
280
|
-
"@types/node": "^25.
|
|
281
|
-
"@types/react": "^19.2.
|
|
279
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
280
|
+
"@types/node": "^25.9.1",
|
|
281
|
+
"@types/react": "^19.2.15",
|
|
282
282
|
"@types/react-dom": "^19.2.3",
|
|
283
|
-
"postcss": "^8.5.
|
|
284
|
-
"tailwindcss": "^4.
|
|
283
|
+
"postcss": "^8.5.15",
|
|
284
|
+
"tailwindcss": "^4.3.0",
|
|
285
285
|
"typescript": "^6.0.3"
|
|
286
286
|
}
|
|
287
287
|
}
|