@assistant-ui/mcp-docs-server 0.1.38 → 0.2.0
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 +11 -12
- package/.docs/organized/code-examples/with-a2a.md +18 -13
- package/.docs/organized/code-examples/with-ag-ui.md +19 -14
- package/.docs/organized/code-examples/{with-ai-sdk-v6.md → with-ai-sdk-v7.md} +34 -23
- package/.docs/organized/code-examples/with-artifacts.md +473 -141
- package/.docs/organized/code-examples/with-assistant-transport.md +17 -10
- package/.docs/organized/code-examples/with-browser-extension.md +17 -10
- package/.docs/organized/code-examples/with-chain-of-thought.md +21 -14
- package/.docs/organized/code-examples/with-cloud-standalone.md +12 -11
- package/.docs/organized/code-examples/with-cloud.md +20 -15
- package/.docs/organized/code-examples/with-custom-thread-list.md +19 -12
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +22 -15
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +22 -15
- package/.docs/organized/code-examples/with-eve.md +18 -11
- package/.docs/organized/code-examples/with-expo.md +35 -52
- package/.docs/organized/code-examples/with-external-store.md +18 -13
- package/.docs/organized/code-examples/with-ffmpeg.md +20 -15
- package/.docs/organized/code-examples/with-generative-ui.md +22 -17
- package/.docs/organized/code-examples/with-google-adk.md +18 -11
- package/.docs/organized/code-examples/with-heat-graph.md +10 -11
- package/.docs/organized/code-examples/with-image-generation.md +19 -12
- package/.docs/organized/code-examples/with-interactables.md +21 -17
- package/.docs/organized/code-examples/with-langchain.md +19 -12
- package/.docs/organized/code-examples/with-langgraph.md +19 -12
- package/.docs/organized/code-examples/with-livekit.md +23 -16
- package/.docs/organized/code-examples/with-mcp.md +46 -28
- package/.docs/organized/code-examples/with-opencode.md +25 -23
- package/.docs/organized/code-examples/with-pi.md +54 -19
- package/.docs/organized/code-examples/with-react-hook-form.md +21 -16
- package/.docs/organized/code-examples/with-react-ink-web.md +9 -9
- package/.docs/organized/code-examples/with-react-ink.md +4 -4
- package/.docs/organized/code-examples/with-react-router.md +22 -17
- package/.docs/organized/code-examples/with-resumable-stream.md +21 -14
- package/.docs/organized/code-examples/with-store.md +10 -11
- package/.docs/organized/code-examples/with-tanstack.md +19 -13
- package/.docs/organized/code-examples/with-tap-runtime.md +18 -13
- package/.docs/organized/code-examples/with-virtualized-thread.md +19 -14
- package/.docs/raw/docs/(docs)/base-ui.mdx +39 -0
- package/.docs/raw/docs/(docs)/cli.mdx +19 -1
- package/.docs/raw/docs/(docs)/devtools.mdx +7 -2
- package/.docs/raw/docs/(docs)/installation.mdx +15 -1
- package/.docs/raw/docs/(docs)/rtl.mdx +2 -4
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/a2ui.mdx +40 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/actions.mdx +56 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/components.mdx +86 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +22 -1
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/json-generative-ui.mdx +42 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/rendering.mdx +53 -2
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +81 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +86 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/tokens.mdx +62 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +19 -420
- package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +4 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +4 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +25 -2
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +37 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -9
- package/.docs/raw/docs/(reference)/api-reference/overview.mdx +1 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +14 -31
- package/.docs/raw/docs/(reference)/api-reference/primitives/composition.mdx +1 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +3 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +2 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +0 -2
- package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +12 -9
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +4 -0
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +7 -1
- package/.docs/raw/docs/cloud/langgraph.mdx +4 -2
- package/.docs/raw/docs/copilots/model-context.mdx +1 -1
- package/.docs/raw/docs/copilots/motivation.mdx +1 -1
- package/.docs/raw/docs/guides/attachments.mdx +3 -3
- package/.docs/raw/docs/guides/branching.mdx +2 -2
- package/.docs/raw/docs/guides/chatgpt-subscription.mdx +108 -0
- package/.docs/raw/docs/guides/context-api.mdx +89 -111
- package/.docs/raw/docs/guides/dictation.mdx +185 -257
- package/.docs/raw/docs/guides/editing.mdx +5 -5
- package/.docs/raw/docs/guides/electron.mdx +369 -0
- package/.docs/raw/docs/guides/index.mdx +20 -0
- package/.docs/raw/docs/guides/mentions.mdx +31 -3
- package/.docs/raw/docs/guides/quoting.mdx +3 -3
- package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +2 -2
- package/.docs/raw/docs/guides/resumable-streams.mdx +12 -1
- package/.docs/raw/docs/guides/speech.mdx +47 -29
- package/.docs/raw/docs/guides/suggestions.mdx +70 -1
- package/.docs/raw/docs/guides/voice.mdx +197 -267
- package/.docs/raw/docs/ink/hooks.mdx +3 -3
- package/.docs/raw/docs/ink/primitives.mdx +49 -8
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +2 -2
- package/.docs/raw/docs/integrations/auth/clerk.mdx +2 -2
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +10 -4
- package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +1 -1
- package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
- package/.docs/raw/docs/integrations/gateways/index.mdx +2 -2
- package/.docs/raw/docs/integrations/observability/helicone.mdx +1 -1
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +1 -1
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +2 -2
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +36 -9
- package/.docs/raw/docs/migrations/index.mdx +50 -0
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +4 -2
- package/.docs/raw/docs/migrations/v0-15.mdx +156 -0
- package/.docs/raw/docs/primitives/chain-of-thought.mdx +6 -1
- package/.docs/raw/docs/primitives/composer.mdx +17 -1
- package/.docs/raw/docs/primitives/selection-toolbar.mdx +25 -0
- package/.docs/raw/docs/primitives/thread-list.mdx +2 -2
- package/.docs/raw/docs/react-native/hooks.mdx +3 -3
- package/.docs/raw/docs/react-native/index.mdx +2 -2
- package/.docs/raw/docs/react-native/primitives.mdx +62 -5
- package/.docs/raw/docs/runtimes/ag-ui/agent-state.mdx +124 -0
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +10 -1
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +14 -5
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +15 -15
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +8 -8
- package/.docs/raw/docs/runtimes/ai-sdk/{v6.mdx → v6-legacy.mdx} +11 -9
- package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +717 -0
- package/.docs/raw/docs/runtimes/concepts/adapters.mdx +1 -1
- package/.docs/raw/docs/runtimes/concepts/architecture.mdx +1 -1
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +10 -10
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +2 -2
- package/.docs/raw/docs/runtimes/custom/data-stream.mdx +10 -19
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +2 -2
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +5 -3
- package/.docs/raw/docs/runtimes/eve/overview.mdx +1 -1
- package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
- package/.docs/raw/docs/runtimes/langgraph/agent-state.mdx +181 -0
- package/.docs/raw/docs/runtimes/langgraph/overview.mdx +1 -1
- package/.docs/raw/docs/runtimes/opencode/hooks.mdx +3 -1
- package/.docs/raw/docs/tools/a2ui.mdx +107 -0
- package/.docs/raw/docs/tools/backend.mdx +6 -3
- package/.docs/raw/docs/tools/defining-tools.mdx +7 -1
- package/.docs/raw/docs/tools/generative-ui.mdx +60 -2
- package/.docs/raw/docs/tools/interactables-legacy.mdx +4 -4
- package/.docs/raw/docs/tools/interactables.mdx +3 -3
- package/.docs/raw/docs/tools/mcp-apps.mdx +90 -13
- package/.docs/raw/docs/tools/mcp.mdx +100 -3
- package/.docs/raw/docs/tools/tool-ui.mdx +6 -4
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +77 -9
- package/.docs/raw/docs/ui/accordion.mdx +16 -10
- package/.docs/raw/docs/ui/assistant-modal.mdx +8 -4
- package/.docs/raw/docs/ui/attachment.mdx +5 -1
- package/.docs/raw/docs/ui/badge.mdx +23 -12
- package/.docs/raw/docs/ui/follow-up-suggestions.mdx +4 -2
- package/.docs/raw/docs/ui/model-selector.mdx +33 -3
- package/.docs/raw/docs/ui/part-grouping.mdx +0 -4
- package/.docs/raw/docs/ui/reasoning.mdx +1 -1
- package/.docs/raw/docs/ui/select.mdx +22 -14
- package/.docs/raw/docs/ui/sources.mdx +1 -1
- package/.docs/raw/docs/ui/tabs.mdx +25 -14
- package/.docs/raw/docs/utilities/heat-graph.mdx +2 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -2
- package/dist/index.js.map +1 -1
- package/dist/prepare-docs/code-examples.d.ts.map +1 -1
- package/dist/prepare-docs/code-examples.js.map +1 -1
- package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
- package/dist/prepare-docs/prepare.d.ts +1 -1
- package/dist/prompts/xulux-playground.d.ts +12 -0
- package/dist/prompts/xulux-playground.d.ts.map +1 -0
- package/dist/prompts/xulux-playground.js +33 -0
- package/dist/prompts/xulux-playground.js.map +1 -0
- package/dist/stdio.d.ts +1 -1
- package/dist/tools/docs.d.ts +8 -14
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/docs.js +26 -10
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.d.ts +6 -12
- package/dist/tools/examples.d.ts.map +1 -1
- package/dist/tools/examples.js +11 -8
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/resources.d.ts +1 -2
- package/dist/tools/resources.d.ts.map +1 -1
- package/dist/tools/resources.js +1 -1
- package/dist/tools/resources.js.map +1 -1
- package/dist/tools/search.d.ts +6 -15
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/search.js +2 -2
- package/dist/tools/search.js.map +1 -1
- package/dist/tools/tests/mcp-test-client.d.ts +15 -0
- package/dist/tools/tests/mcp-test-client.d.ts.map +1 -0
- package/dist/tools/tests/mcp-test-client.js +68 -0
- package/dist/tools/tests/mcp-test-client.js.map +1 -0
- package/dist/tools/tests/test-setup.d.ts.map +1 -1
- package/dist/tools/tests/test-setup.js +5 -1
- package/dist/tools/tests/test-setup.js.map +1 -1
- package/dist/tools/xulux-templates.d.ts +58 -0
- package/dist/tools/xulux-templates.d.ts.map +1 -0
- package/dist/tools/xulux-templates.js +82 -0
- package/dist/tools/xulux-templates.js.map +1 -0
- package/dist/utils/cache.d.ts +5 -0
- package/dist/utils/cache.d.ts.map +1 -0
- package/dist/utils/cache.js +18 -0
- package/dist/utils/cache.js.map +1 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/mcp-format.d.ts +1 -0
- package/dist/utils/mcp-format.d.ts.map +1 -1
- package/dist/utils/mcp-format.js +7 -4
- package/dist/utils/mcp-format.js.map +1 -1
- package/dist/utils/mdx.d.ts.map +1 -1
- package/dist/utils/paths.d.ts +1 -1
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +3 -1
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/search.d.ts.map +1 -1
- package/dist/utils/security.d.ts.map +1 -1
- package/dist/utils/security.js.map +1 -1
- package/dist/xulux/catalog-client.d.ts +14 -0
- package/dist/xulux/catalog-client.d.ts.map +1 -0
- package/dist/xulux/catalog-client.js +67 -0
- package/dist/xulux/catalog-client.js.map +1 -0
- package/dist/xulux/fallback-catalog.d.ts +7 -0
- package/dist/xulux/fallback-catalog.d.ts.map +1 -0
- package/dist/xulux/fallback-catalog.js +47 -0
- package/dist/xulux/fallback-catalog.js.map +1 -0
- package/dist/xulux/fetch-sandbox.d.ts +5 -0
- package/dist/xulux/fetch-sandbox.d.ts.map +1 -0
- package/dist/xulux/fetch-sandbox.js +40 -0
- package/dist/xulux/fetch-sandbox.js.map +1 -0
- package/dist/xulux/template-service.d.ts +84 -0
- package/dist/xulux/template-service.d.ts.map +1 -0
- package/dist/xulux/template-service.js +223 -0
- package/dist/xulux/template-service.js.map +1 -0
- package/dist/xulux/types.d.ts +55 -0
- package/dist/xulux/types.d.ts.map +1 -0
- package/dist/xulux/types.js +6 -0
- package/dist/xulux/types.js.map +1 -0
- package/package.json +7 -6
- package/src/index.ts +55 -2
- package/src/prompts/xulux-playground.ts +36 -0
- package/src/tools/docs.ts +27 -5
- package/src/tools/examples.ts +17 -12
- package/src/tools/resources.ts +1 -4
- package/src/tools/search.ts +2 -2
- package/src/tools/tests/completions.test.ts +40 -26
- package/src/tools/tests/docs.test.ts +20 -0
- package/src/tools/tests/examples.test.ts +5 -5
- package/src/tools/tests/integration.test.ts +3 -4
- package/src/tools/tests/listings-cache.test.ts +19 -0
- package/src/tools/tests/mcp-protocol.test.ts +173 -108
- package/src/tools/tests/mcp-test-client.ts +111 -0
- package/src/tools/tests/resources.test.ts +97 -66
- package/src/tools/tests/test-setup.ts +8 -0
- package/src/tools/tests/xulux-templates.test.ts +262 -0
- package/src/tools/xulux-templates.ts +141 -0
- package/src/utils/cache.ts +20 -0
- package/src/utils/mcp-format.ts +8 -6
- package/src/utils/paths.ts +4 -1
- package/src/utils/tests/cache.test.ts +51 -0
- package/src/utils/tests/mcp-format.test.ts +22 -0
- package/src/utils/tests/security.test.ts +1 -1
- package/src/xulux/catalog-client.ts +105 -0
- package/src/xulux/fallback-catalog.ts +63 -0
- package/src/xulux/fetch-sandbox.ts +56 -0
- package/src/xulux/template-service.ts +406 -0
- package/src/xulux/types.ts +60 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/utilities.mdx +0 -464
|
@@ -418,7 +418,7 @@ export function WaterfallRow() {
|
|
|
418
418
|
<SpanPrimitive.CollapseToggle className="text-muted-foreground hover:text-foreground flex shrink-0 items-center justify-center rounded p-0.5">
|
|
419
419
|
<svg
|
|
420
420
|
aria-hidden="true"
|
|
421
|
-
className="data-[collapsed=true]
|
|
421
|
+
className="size-3.5 transition-transform group-data-[collapsed=true]:-rotate-90"
|
|
422
422
|
viewBox="0 0 16 16"
|
|
423
423
|
fill="currentColor"
|
|
424
424
|
>
|
|
@@ -749,9 +749,7 @@ export function WaterfallTimeline() {
|
|
|
749
749
|
import { withAui } from "@assistant-ui/next";
|
|
750
750
|
import type { NextConfig } from "next";
|
|
751
751
|
|
|
752
|
-
const nextConfig: NextConfig = {
|
|
753
|
-
/* config options here */
|
|
754
|
-
};
|
|
752
|
+
const nextConfig: NextConfig = {/* config options here */};
|
|
755
753
|
|
|
756
754
|
export default withAui(nextConfig);
|
|
757
755
|
|
|
@@ -774,20 +772,21 @@ export default withAui(nextConfig);
|
|
|
774
772
|
"@assistant-ui/react-o11y": "workspace:*",
|
|
775
773
|
"@assistant-ui/store": "workspace:*",
|
|
776
774
|
"@assistant-ui/tap": "workspace:*",
|
|
777
|
-
"next": "^16.2.
|
|
778
|
-
"react": "^19.2.
|
|
779
|
-
"react-dom": "^19.2.
|
|
775
|
+
"next": "^16.2.11",
|
|
776
|
+
"react": "^19.2.8",
|
|
777
|
+
"react-dom": "^19.2.8"
|
|
780
778
|
},
|
|
781
779
|
"devDependencies": {
|
|
782
780
|
"@assistant-ui/next": "workspace:*",
|
|
783
781
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
784
|
-
"@tailwindcss/postcss": "^4.3.
|
|
785
|
-
"@types/node": "^26.
|
|
782
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
783
|
+
"@types/node": "^26.1.1",
|
|
786
784
|
"@types/react": "^19.2.17",
|
|
787
785
|
"@types/react-dom": "^19.2.3",
|
|
788
|
-
"postcss": "^8.5.
|
|
789
|
-
"tailwindcss": "^4.3.
|
|
790
|
-
"typescript": "
|
|
786
|
+
"postcss": "^8.5.23",
|
|
787
|
+
"tailwindcss": "^4.3.3",
|
|
788
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
789
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
791
790
|
}
|
|
792
791
|
}
|
|
793
792
|
|
|
@@ -527,9 +527,7 @@ export default function Home() {
|
|
|
527
527
|
import { withAui } from "@assistant-ui/next";
|
|
528
528
|
import type { NextConfig } from "next";
|
|
529
529
|
|
|
530
|
-
const nextConfig: NextConfig = {
|
|
531
|
-
/* config options here */
|
|
532
|
-
};
|
|
530
|
+
const nextConfig: NextConfig = {/* config options here */};
|
|
533
531
|
|
|
534
532
|
export default withAui(nextConfig);
|
|
535
533
|
|
|
@@ -555,23 +553,24 @@ export default withAui(nextConfig);
|
|
|
555
553
|
"@assistant-ui/ui": "workspace:*",
|
|
556
554
|
"class-variance-authority": "^0.7.1",
|
|
557
555
|
"clsx": "^2.1.1",
|
|
558
|
-
"lucide-react": "^1.
|
|
559
|
-
"next": "^16.2.
|
|
560
|
-
"react": "^19.2.
|
|
561
|
-
"react-dom": "^19.2.
|
|
556
|
+
"lucide-react": "^1.26.0",
|
|
557
|
+
"next": "^16.2.11",
|
|
558
|
+
"react": "^19.2.8",
|
|
559
|
+
"react-dom": "^19.2.8",
|
|
562
560
|
"tailwind-merge": "^3.6.0"
|
|
563
561
|
},
|
|
564
562
|
"devDependencies": {
|
|
565
563
|
"@assistant-ui/next": "workspace:*",
|
|
566
564
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
567
|
-
"@tailwindcss/postcss": "^4.3.
|
|
568
|
-
"@types/node": "^26.
|
|
565
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
566
|
+
"@types/node": "^26.1.1",
|
|
569
567
|
"@types/react": "^19.2.17",
|
|
570
568
|
"@types/react-dom": "^19.2.3",
|
|
571
|
-
"postcss": "^8.5.
|
|
572
|
-
"tailwindcss": "^4.3.
|
|
569
|
+
"postcss": "^8.5.23",
|
|
570
|
+
"tailwindcss": "^4.3.3",
|
|
573
571
|
"tw-animate-css": "^1.4.0",
|
|
574
|
-
"typescript": "
|
|
572
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
573
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
575
574
|
}
|
|
576
575
|
}
|
|
577
576
|
|
|
@@ -651,7 +650,13 @@ No proxy backend needed. `@assistant-ui/react-a2a` handles the full A2A protocol
|
|
|
651
650
|
"@/components/assistant-ui/*": [
|
|
652
651
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
653
652
|
],
|
|
654
|
-
"@/components/ui/*": [
|
|
653
|
+
"@/components/ui/*": [
|
|
654
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
655
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
656
|
+
],
|
|
657
|
+
"@/components/ui/radix/*": [
|
|
658
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
659
|
+
],
|
|
655
660
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
656
661
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"]
|
|
657
662
|
}
|
|
@@ -314,7 +314,7 @@ function NewThreadButton() {
|
|
|
314
314
|
return (
|
|
315
315
|
<button
|
|
316
316
|
type="button"
|
|
317
|
-
onClick={() => aui.threads
|
|
317
|
+
onClick={() => aui.threads.switchToNewThread()}
|
|
318
318
|
className="bg-background hover:bg-accent absolute top-4 right-4 z-10 flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium shadow-sm transition-colors"
|
|
319
319
|
>
|
|
320
320
|
<PlusIcon className="size-4" />
|
|
@@ -398,9 +398,7 @@ export default function Home() {
|
|
|
398
398
|
import { withAui } from "@assistant-ui/next";
|
|
399
399
|
import type { NextConfig } from "next";
|
|
400
400
|
|
|
401
|
-
const nextConfig: NextConfig = {
|
|
402
|
-
/* config options here */
|
|
403
|
-
};
|
|
401
|
+
const nextConfig: NextConfig = {/* config options here */};
|
|
404
402
|
|
|
405
403
|
export default withAui(nextConfig);
|
|
406
404
|
|
|
@@ -427,23 +425,24 @@ export default withAui(nextConfig);
|
|
|
427
425
|
"@assistant-ui/ui": "workspace:*",
|
|
428
426
|
"class-variance-authority": "^0.7.1",
|
|
429
427
|
"clsx": "^2.1.1",
|
|
430
|
-
"lucide-react": "^1.
|
|
431
|
-
"next": "^16.2.
|
|
432
|
-
"react": "^19.2.
|
|
433
|
-
"react-dom": "^19.2.
|
|
428
|
+
"lucide-react": "^1.26.0",
|
|
429
|
+
"next": "^16.2.11",
|
|
430
|
+
"react": "^19.2.8",
|
|
431
|
+
"react-dom": "^19.2.8",
|
|
434
432
|
"tailwind-merge": "^3.6.0"
|
|
435
433
|
},
|
|
436
434
|
"devDependencies": {
|
|
437
435
|
"@assistant-ui/next": "workspace:*",
|
|
438
436
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
439
|
-
"@tailwindcss/postcss": "^4.3.
|
|
440
|
-
"@types/node": "^26.
|
|
437
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
438
|
+
"@types/node": "^26.1.1",
|
|
441
439
|
"@types/react": "^19.2.17",
|
|
442
440
|
"@types/react-dom": "^19.2.3",
|
|
443
|
-
"postcss": "^8.5.
|
|
444
|
-
"tailwindcss": "^4.3.
|
|
441
|
+
"postcss": "^8.5.23",
|
|
442
|
+
"tailwindcss": "^4.3.3",
|
|
445
443
|
"tw-animate-css": "^1.4.0",
|
|
446
|
-
"typescript": "
|
|
444
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
445
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
447
446
|
}
|
|
448
447
|
}
|
|
449
448
|
|
|
@@ -532,7 +531,13 @@ The included `server/agent.py` provides:
|
|
|
532
531
|
"@/components/assistant-ui/*": [
|
|
533
532
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
534
533
|
],
|
|
535
|
-
"@/components/ui/*": [
|
|
534
|
+
"@/components/ui/*": [
|
|
535
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
536
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
537
|
+
],
|
|
538
|
+
"@/components/ui/radix/*": [
|
|
539
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
540
|
+
],
|
|
536
541
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
537
542
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"]
|
|
538
543
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Example: with-ai-sdk-
|
|
1
|
+
# Example: with-ai-sdk-v7
|
|
2
2
|
|
|
3
3
|
## app/api/chat/route.ts
|
|
4
4
|
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
tool,
|
|
14
14
|
stepCountIs,
|
|
15
15
|
zodSchema,
|
|
16
|
+
createUIMessageStreamResponse,
|
|
17
|
+
toUIMessageStream,
|
|
16
18
|
} from "ai";
|
|
17
19
|
import { z } from "zod";
|
|
18
20
|
|
|
@@ -51,7 +53,9 @@ export async function POST(req: Request) {
|
|
|
51
53
|
},
|
|
52
54
|
});
|
|
53
55
|
|
|
54
|
-
return
|
|
56
|
+
return createUIMessageStreamResponse({
|
|
57
|
+
stream: toUIMessageStream({ stream: result.stream }),
|
|
58
|
+
});
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
```
|
|
@@ -191,8 +195,8 @@ import type { Metadata } from "next";
|
|
|
191
195
|
import "./globals.css";
|
|
192
196
|
|
|
193
197
|
export const metadata: Metadata = {
|
|
194
|
-
title: "AI SDK
|
|
195
|
-
description: "Example using @assistant-ui/react with AI SDK
|
|
198
|
+
title: "AI SDK v7 Example",
|
|
199
|
+
description: "Example using @assistant-ui/react with AI SDK v7",
|
|
196
200
|
};
|
|
197
201
|
|
|
198
202
|
export default function RootLayout({
|
|
@@ -306,7 +310,7 @@ export default withAui(nextConfig);
|
|
|
306
310
|
|
|
307
311
|
```json
|
|
308
312
|
{
|
|
309
|
-
"name": "with-ai-sdk-
|
|
313
|
+
"name": "with-ai-sdk-v7",
|
|
310
314
|
"version": "0.0.0",
|
|
311
315
|
"private": true,
|
|
312
316
|
"type": "module",
|
|
@@ -316,32 +320,33 @@ export default withAui(nextConfig);
|
|
|
316
320
|
"start": "next start"
|
|
317
321
|
},
|
|
318
322
|
"dependencies": {
|
|
319
|
-
"@ai-sdk/openai": "^
|
|
323
|
+
"@ai-sdk/openai": "^4.0.20",
|
|
320
324
|
"@assistant-ui/react": "workspace:*",
|
|
321
325
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
322
326
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
323
327
|
"@assistant-ui/ui": "workspace:*",
|
|
324
|
-
"ai": "^
|
|
328
|
+
"ai": "^7.0.37",
|
|
325
329
|
"class-variance-authority": "^0.7.1",
|
|
326
330
|
"clsx": "^2.1.1",
|
|
327
|
-
"lucide-react": "^1.
|
|
328
|
-
"next": "^16.2.
|
|
329
|
-
"react": "^19.2.
|
|
330
|
-
"react-dom": "^19.2.
|
|
331
|
+
"lucide-react": "^1.26.0",
|
|
332
|
+
"next": "^16.2.11",
|
|
333
|
+
"react": "^19.2.8",
|
|
334
|
+
"react-dom": "^19.2.8",
|
|
331
335
|
"tailwind-merge": "^3.6.0",
|
|
332
336
|
"zod": "^4.4.3"
|
|
333
337
|
},
|
|
334
338
|
"devDependencies": {
|
|
335
339
|
"@assistant-ui/next": "workspace:*",
|
|
336
340
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
337
|
-
"@tailwindcss/postcss": "^4.3.
|
|
338
|
-
"@types/node": "^26.
|
|
341
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
342
|
+
"@types/node": "^26.1.1",
|
|
339
343
|
"@types/react": "^19.2.17",
|
|
340
344
|
"@types/react-dom": "^19.2.3",
|
|
341
|
-
"postcss": "^8.5.
|
|
342
|
-
"tailwindcss": "^4.3.
|
|
345
|
+
"postcss": "^8.5.23",
|
|
346
|
+
"tailwindcss": "^4.3.3",
|
|
343
347
|
"tw-animate-css": "^1.4.0",
|
|
344
|
-
"typescript": "
|
|
348
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
349
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
345
350
|
}
|
|
346
351
|
}
|
|
347
352
|
|
|
@@ -350,16 +355,16 @@ export default withAui(nextConfig);
|
|
|
350
355
|
## README.md
|
|
351
356
|
|
|
352
357
|
```markdown
|
|
353
|
-
# AI SDK
|
|
358
|
+
# AI SDK v7 Example
|
|
354
359
|
|
|
355
|
-
This example demonstrates how to use `@assistant-ui/react-ai-sdk` with the Vercel AI SDK
|
|
360
|
+
This example demonstrates how to use `@assistant-ui/react-ai-sdk` with the Vercel AI SDK v7.
|
|
356
361
|
|
|
357
362
|
## Quick Start
|
|
358
363
|
|
|
359
364
|
### Using CLI (Recommended)
|
|
360
365
|
|
|
361
366
|
```bash
|
|
362
|
-
npx assistant-ui@latest create my-app --example with-ai-sdk-
|
|
367
|
+
npx assistant-ui@latest create my-app --example with-ai-sdk-v7
|
|
363
368
|
cd my-app
|
|
364
369
|
```
|
|
365
370
|
|
|
@@ -382,10 +387,10 @@ Open [http://localhost:3000](http://localhost:3000) to see the result.
|
|
|
382
387
|
|
|
383
388
|
## Key Features
|
|
384
389
|
|
|
385
|
-
- Uses the new AI SDK
|
|
390
|
+
- Uses the new AI SDK v7 with `@ai-sdk/openai`
|
|
386
391
|
- Integrates with `@assistant-ui/react` using the new `useChatRuntime` hook
|
|
387
392
|
- No RSC support (client-side only)
|
|
388
|
-
- Simplified integration with the `useChatRuntime` hook that wraps AI SDK
|
|
393
|
+
- Simplified integration with the `useChatRuntime` hook that wraps AI SDK v7's `useChat`
|
|
389
394
|
- Uses `AssistantChatTransport` to pass system messages and frontend tools to the backend
|
|
390
395
|
|
|
391
396
|
## Custom Transport Configuration
|
|
@@ -420,7 +425,7 @@ const runtime = useChatRuntime({
|
|
|
420
425
|
|
|
421
426
|
## API Route
|
|
422
427
|
|
|
423
|
-
The API route at `/api/chat` uses AI SDK
|
|
428
|
+
The API route at `/api/chat` uses AI SDK v7 `streamText`, forwards `system` and frontend `tools`, and merges them with a server-defined weather tool.
|
|
424
429
|
|
|
425
430
|
## Related Documentation
|
|
426
431
|
|
|
@@ -440,7 +445,13 @@ The API route at `/api/chat` uses AI SDK v6 `streamText`, forwards `system` and
|
|
|
440
445
|
"@/components/assistant-ui/*": [
|
|
441
446
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
442
447
|
],
|
|
443
|
-
"@/components/ui/*": [
|
|
448
|
+
"@/components/ui/*": [
|
|
449
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
450
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
451
|
+
],
|
|
452
|
+
"@/components/ui/radix/*": [
|
|
453
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
454
|
+
],
|
|
444
455
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
445
456
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"]
|
|
446
457
|
}
|