@assistant-ui/mcp-docs-server 0.1.34 → 0.1.36
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 +4 -4
- package/.docs/organized/code-examples/with-a2a.md +5 -5
- package/.docs/organized/code-examples/with-ag-ui.md +6 -6
- package/.docs/organized/code-examples/with-ai-sdk-v6.md +7 -7
- package/.docs/organized/code-examples/with-artifacts.md +7 -7
- package/.docs/organized/code-examples/with-assistant-transport.md +73 -57
- package/.docs/organized/code-examples/with-browser-extension.md +7 -7
- package/.docs/organized/code-examples/with-chain-of-thought.md +44 -93
- package/.docs/organized/code-examples/with-cloud-standalone.md +7 -7
- package/.docs/organized/code-examples/with-cloud.md +7 -7
- package/.docs/organized/code-examples/with-custom-thread-list.md +7 -7
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +9 -9
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +9 -9
- package/.docs/organized/code-examples/with-eve.md +343 -0
- package/.docs/organized/code-examples/with-expo.md +943 -940
- package/.docs/organized/code-examples/with-external-store.md +5 -5
- package/.docs/organized/code-examples/with-ffmpeg.md +8 -11
- package/.docs/organized/code-examples/with-generative-ui.md +33 -309
- package/.docs/organized/code-examples/with-google-adk.md +5 -5
- package/.docs/organized/code-examples/with-heat-graph.md +4 -4
- package/.docs/organized/code-examples/with-image-generation.md +7 -7
- package/.docs/organized/code-examples/with-interactables.md +169 -341
- package/.docs/organized/code-examples/with-langchain.md +7 -7
- package/.docs/organized/code-examples/with-langgraph.md +23 -160
- package/.docs/organized/code-examples/with-livekit.md +10 -10
- package/.docs/organized/code-examples/with-mcp.md +7 -7
- package/.docs/organized/code-examples/with-opencode.md +106 -580
- package/.docs/organized/code-examples/with-pi.md +2046 -0
- package/.docs/organized/code-examples/with-react-hook-form.md +16 -9
- package/.docs/organized/code-examples/with-react-ink-web.md +691 -0
- package/.docs/organized/code-examples/with-react-ink.md +29 -17
- package/.docs/organized/code-examples/with-react-router.md +12 -12
- package/.docs/organized/code-examples/with-resumable-stream.md +8 -8
- package/.docs/organized/code-examples/with-store.md +14 -10
- package/.docs/organized/code-examples/with-tanstack.md +21 -7
- package/.docs/organized/code-examples/with-tap-runtime.md +5 -5
- package/.docs/organized/code-examples/with-virtualized-thread.md +676 -0
- package/.docs/raw/docs/(docs)/architecture.mdx +13 -12
- package/.docs/raw/docs/(docs)/cli.mdx +4 -2
- package/.docs/raw/docs/(docs)/devtools.mdx +25 -2
- package/.docs/raw/docs/(docs)/index.mdx +5 -2
- package/.docs/raw/docs/(docs)/installation.mdx +5 -2
- package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +16 -16
- package/.docs/raw/docs/(reference)/api-reference/hooks/composer-triggers.mdx +73 -42
- package/.docs/raw/docs/(reference)/api-reference/hooks/model-context.mdx +3 -20
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +234 -123
- package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +51 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +4 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +70 -38
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar.mdx +30 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/attachment.mdx +7 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/branch-picker.mdx +26 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/chain-of-thought.mdx +15 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +103 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/message-part.mdx +16 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +56 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/queue-item.mdx +12 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +12 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/suggestion.mdx +14 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread.mdx +57 -1
- package/.docs/raw/docs/(reference)/api-reference/tools/index.mdx +6 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/interactables-legacy.mdx +55 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/interactables.mdx +151 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +17 -38
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +20 -27
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +40 -25
- package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
- package/.docs/raw/docs/guides/headless-composer-input.mdx +113 -0
- package/.docs/raw/docs/guides/index.mdx +3 -0
- package/.docs/raw/docs/guides/input-history.mdx +55 -0
- package/.docs/raw/docs/guides/latex.mdx +28 -22
- package/.docs/raw/docs/guides/mentions.mdx +32 -7
- package/.docs/raw/docs/guides/slash-commands.mdx +3 -6
- package/.docs/raw/docs/guides/speech.mdx +5 -7
- package/.docs/raw/docs/guides/virtualization.mdx +133 -0
- package/.docs/raw/docs/guides/voice.mdx +3 -2
- package/.docs/raw/docs/ink/hooks.mdx +2 -2
- package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +4 -12
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +7 -10
- package/.docs/raw/docs/integrations/auth/clerk.mdx +3 -9
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +3 -8
- package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +8 -5
- package/.docs/raw/docs/integrations/index.mdx +5 -12
- package/.docs/raw/docs/integrations/observability/helicone.mdx +3 -4
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +3 -5
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +3 -2
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +4 -3
- package/.docs/raw/docs/primitives/composer.mdx +8 -0
- package/.docs/raw/docs/primitives/thread.mdx +24 -0
- package/.docs/raw/docs/react-native/hooks.mdx +1 -1
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +22 -3
- package/.docs/raw/docs/runtimes/concepts/stability.mdx +1 -1
- package/.docs/raw/docs/runtimes/custom/data-stream.mdx +1 -1
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +54 -0
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +108 -4
- package/.docs/raw/docs/runtimes/eve/overview.mdx +100 -0
- package/.docs/raw/docs/runtimes/eve/quickstart.mdx +143 -0
- package/.docs/raw/docs/runtimes/langchain.mdx +386 -18
- package/.docs/raw/docs/runtimes/langgraph/quickstart.mdx +1 -1
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-1.mdx +1 -1
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +12 -6
- package/.docs/raw/docs/tools/defining-tools.mdx +4 -0
- package/.docs/raw/docs/tools/interactables-legacy.mdx +410 -0
- package/.docs/raw/docs/tools/interactables.mdx +892 -223
- package/.docs/raw/docs/tools/mcp.mdx +4 -4
- package/.docs/raw/docs/tools/multi-agent.mdx +5 -0
- package/.docs/raw/docs/tools/tool-ui.mdx +37 -1
- package/.docs/raw/docs/ui/composer-trigger-popover.mdx +2 -0
- package/.docs/raw/docs/ui/dot-matrix.mdx +133 -0
- package/.docs/raw/docs/ui/file.mdx +1 -1
- package/.docs/raw/docs/ui/model-selector.mdx +219 -52
- package/.docs/raw/docs/ui/number-roll.mdx +154 -0
- package/.docs/raw/docs/ui/part-grouping.mdx +38 -0
- package/.docs/raw/docs/ui/reasoning.mdx +3 -3
- package/.docs/raw/docs/ui/streamdown.mdx +2 -0
- package/.docs/raw/docs/ui/syntax-highlighting.mdx +1 -1
- package/.docs/raw/docs/ui/thread.mdx +52 -0
- package/.docs/raw/docs/ui/tool-fallback.mdx +2 -2
- package/.docs/raw/docs/utilities/react-o11y.mdx +92 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +14 -6
- package/src/tools/tests/mcp-protocol.test.ts +9 -0
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@assistant-ui/react-ink": "workspace:*",
|
|
18
18
|
"@assistant-ui/react-ink-markdown": "workspace:*",
|
|
19
|
-
"ink": "^7.0
|
|
19
|
+
"ink": "^7.1.0",
|
|
20
20
|
"react": "^19.2.7"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/react": "^19.2.17",
|
|
24
|
-
"esbuild": "^0.28.
|
|
24
|
+
"esbuild": "^0.28.1",
|
|
25
25
|
"tsx": "^4.22.4",
|
|
26
26
|
"typescript": "^6.0.3"
|
|
27
27
|
}
|
|
@@ -38,10 +38,12 @@ import {
|
|
|
38
38
|
AssistantRuntimeProvider,
|
|
39
39
|
useLocalRuntime,
|
|
40
40
|
StatusBarPrimitive,
|
|
41
|
+
Tools,
|
|
42
|
+
useAui,
|
|
41
43
|
} from "@assistant-ui/react-ink";
|
|
42
44
|
import { Thread } from "./components/thread.js";
|
|
43
45
|
import { createScriptedAdapter, MODEL_NAME } from "./scripted-adapter.js";
|
|
44
|
-
import
|
|
46
|
+
import toolkit from "./tools.js";
|
|
45
47
|
|
|
46
48
|
const StatusBar = () => (
|
|
47
49
|
<StatusBarPrimitive.Root>
|
|
@@ -55,10 +57,12 @@ const StatusBar = () => (
|
|
|
55
57
|
export const App = () => {
|
|
56
58
|
const adapter = useMemo(() => createScriptedAdapter(), []);
|
|
57
59
|
const runtime = useLocalRuntime(adapter);
|
|
60
|
+
const aui = useAui({
|
|
61
|
+
tools: Tools({ toolkit }),
|
|
62
|
+
});
|
|
58
63
|
|
|
59
64
|
return (
|
|
60
|
-
<AssistantRuntimeProvider runtime={runtime}>
|
|
61
|
-
<ApplyPatchToolUI />
|
|
65
|
+
<AssistantRuntimeProvider aui={aui} runtime={runtime}>
|
|
62
66
|
<Box flexDirection="column" padding={1}>
|
|
63
67
|
<Box>
|
|
64
68
|
<Text bold color="cyan">
|
|
@@ -417,21 +421,29 @@ export const createScriptedAdapter = (): ChatModelAdapter => ({
|
|
|
417
421
|
|
|
418
422
|
```tsx
|
|
419
423
|
import { Box, Text } from "ink";
|
|
420
|
-
import {
|
|
424
|
+
import {
|
|
425
|
+
defineToolkit,
|
|
426
|
+
DiffView,
|
|
427
|
+
type ToolCallMessagePartComponent,
|
|
428
|
+
} from "@assistant-ui/react-ink";
|
|
421
429
|
|
|
422
|
-
|
|
430
|
+
const ApplyPatchToolUI: ToolCallMessagePartComponent<
|
|
423
431
|
{ path: string; patch: string },
|
|
424
432
|
unknown
|
|
425
|
-
>({
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
<
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
433
|
+
> = ({ args }) => {
|
|
434
|
+
if (!args?.patch) return null;
|
|
435
|
+
return (
|
|
436
|
+
<Box flexDirection="column" marginBottom={1}>
|
|
437
|
+
<Text color="cyan">edit {args.path}</Text>
|
|
438
|
+
<DiffView patch={args.patch} showLineNumbers />
|
|
439
|
+
</Box>
|
|
440
|
+
);
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export default defineToolkit({
|
|
444
|
+
apply_patch: {
|
|
445
|
+
type: "backend",
|
|
446
|
+
render: ApplyPatchToolUI,
|
|
435
447
|
},
|
|
436
448
|
});
|
|
437
449
|
|
|
@@ -773,27 +773,27 @@ export default function Home() {
|
|
|
773
773
|
"dependencies": {
|
|
774
774
|
"@assistant-ui/react": "workspace:*",
|
|
775
775
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
776
|
-
"@react-router/node": "^
|
|
777
|
-
"@react-router/serve": "^
|
|
776
|
+
"@react-router/node": "^8.0.1",
|
|
777
|
+
"@react-router/serve": "^8.0.1",
|
|
778
778
|
"class-variance-authority": "^0.7.1",
|
|
779
779
|
"clsx": "^2.1.1",
|
|
780
780
|
"eventsource-parser": "^3.1.0",
|
|
781
|
-
"isbot": "^5.1.
|
|
782
|
-
"lucide-react": "^1.
|
|
783
|
-
"openai": "^6.
|
|
781
|
+
"isbot": "^5.1.43",
|
|
782
|
+
"lucide-react": "^1.21.0",
|
|
783
|
+
"openai": "^6.44.0",
|
|
784
784
|
"react": "^19.2.7",
|
|
785
785
|
"react-dom": "^19.2.7",
|
|
786
|
-
"react-router": "^
|
|
786
|
+
"react-router": "^8.0.1",
|
|
787
787
|
"remark-gfm": "^4.0.1",
|
|
788
788
|
"tailwind-merge": "^3.6.0"
|
|
789
789
|
},
|
|
790
790
|
"devDependencies": {
|
|
791
|
-
"@react-router/dev": "^
|
|
792
|
-
"@tailwindcss/vite": "^4.3.
|
|
793
|
-
"@types/node": "^
|
|
791
|
+
"@react-router/dev": "^8.0.1",
|
|
792
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
793
|
+
"@types/node": "^26.0.0",
|
|
794
794
|
"@types/react": "^19.2.17",
|
|
795
795
|
"@types/react-dom": "^19.2.3",
|
|
796
|
-
"tailwindcss": "^4.3.
|
|
796
|
+
"tailwindcss": "^4.3.1",
|
|
797
797
|
"tw-animate-css": "^1.4.0",
|
|
798
798
|
"typescript": "^6.0.3",
|
|
799
799
|
"vite": "^8.0.16",
|
|
@@ -821,7 +821,7 @@ export default {
|
|
|
821
821
|
```markdown
|
|
822
822
|
# React Router Integration
|
|
823
823
|
|
|
824
|
-
This example demonstrates how to use assistant-ui with React Router (
|
|
824
|
+
This example demonstrates how to use assistant-ui with React Router (v8) and Vite.
|
|
825
825
|
|
|
826
826
|
## Quick Start
|
|
827
827
|
|
|
@@ -849,7 +849,7 @@ npm run dev
|
|
|
849
849
|
|
|
850
850
|
## Features
|
|
851
851
|
|
|
852
|
-
- React Router
|
|
852
|
+
- React Router v8 integration
|
|
853
853
|
- Vite-based development server
|
|
854
854
|
- OpenAI streaming chat
|
|
855
855
|
- Zustand for state management
|
|
@@ -514,20 +514,20 @@ export default withAui(nextConfig);
|
|
|
514
514
|
"start": "next start"
|
|
515
515
|
},
|
|
516
516
|
"dependencies": {
|
|
517
|
-
"@ai-sdk/openai": "^3.0.
|
|
518
|
-
"@ai-sdk/react": "^3.0.
|
|
517
|
+
"@ai-sdk/openai": "^3.0.73",
|
|
518
|
+
"@ai-sdk/react": "^3.0.210",
|
|
519
519
|
"@assistant-ui/react": "workspace:*",
|
|
520
520
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
521
521
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
522
522
|
"@assistant-ui/store": "workspace:*",
|
|
523
523
|
"@assistant-ui/tap": "workspace:*",
|
|
524
524
|
"@assistant-ui/ui": "workspace:*",
|
|
525
|
-
"ai": "^6.0.
|
|
525
|
+
"ai": "^6.0.208",
|
|
526
526
|
"assistant-stream": "workspace:*",
|
|
527
527
|
"class-variance-authority": "^0.7.1",
|
|
528
528
|
"clsx": "^2.1.1",
|
|
529
|
-
"lucide-react": "^1.
|
|
530
|
-
"next": "^16.2.
|
|
529
|
+
"lucide-react": "^1.21.0",
|
|
530
|
+
"next": "^16.2.9",
|
|
531
531
|
"react": "^19.2.7",
|
|
532
532
|
"react-dom": "^19.2.7",
|
|
533
533
|
"redis": "^6.0.0",
|
|
@@ -537,12 +537,12 @@ export default withAui(nextConfig);
|
|
|
537
537
|
"devDependencies": {
|
|
538
538
|
"@assistant-ui/next": "workspace:*",
|
|
539
539
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
540
|
-
"@tailwindcss/postcss": "^4.3.
|
|
541
|
-
"@types/node": "^
|
|
540
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
541
|
+
"@types/node": "^26.0.0",
|
|
542
542
|
"@types/react": "^19.2.17",
|
|
543
543
|
"@types/react-dom": "^19.2.3",
|
|
544
544
|
"postcss": "^8.5.15",
|
|
545
|
-
"tailwindcss": "^4.3.
|
|
545
|
+
"tailwindcss": "^4.3.1",
|
|
546
546
|
"tw-animate-css": "^1.4.0",
|
|
547
547
|
"typescript": "^6.0.3"
|
|
548
548
|
}
|
|
@@ -354,10 +354,10 @@ import {
|
|
|
354
354
|
|
|
355
355
|
type FooData = { id: string; bar: string };
|
|
356
356
|
|
|
357
|
-
|
|
357
|
+
const useFooItemResource = ({
|
|
358
358
|
getInitialData,
|
|
359
359
|
remove,
|
|
360
|
-
}: useClientList.ResourceProps<FooData>): ClientOutput<"foo"> {
|
|
360
|
+
}: useClientList.ResourceProps<FooData>): ClientOutput<"foo"> => {
|
|
361
361
|
const emit = useAssistantEmit();
|
|
362
362
|
|
|
363
363
|
const [state, setState] = useState<FooData>(getInitialData);
|
|
@@ -377,14 +377,16 @@ export const FooItemResource = resource(function FooItemResource({
|
|
|
377
377
|
updateBar,
|
|
378
378
|
remove: handleRemove,
|
|
379
379
|
};
|
|
380
|
-
}
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
export const FooItemResource = resource(useFooItemResource);
|
|
381
383
|
|
|
382
384
|
let counter = 3;
|
|
383
|
-
|
|
385
|
+
const useFooListResource = ({
|
|
384
386
|
initialValues,
|
|
385
387
|
}: {
|
|
386
388
|
initialValues: boolean;
|
|
387
|
-
}): ClientOutput<"fooList"> {
|
|
389
|
+
}): ClientOutput<"fooList"> => {
|
|
388
390
|
const emit = useAssistantEmit();
|
|
389
391
|
|
|
390
392
|
const foos = useClientList({
|
|
@@ -412,7 +414,9 @@ export const FooListResource = resource(function FooListResource({
|
|
|
412
414
|
foo: foos.get,
|
|
413
415
|
addFoo,
|
|
414
416
|
};
|
|
415
|
-
}
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
export const FooListResource = resource(useFooListResource);
|
|
416
420
|
|
|
417
421
|
const FooProvider = ({
|
|
418
422
|
index,
|
|
@@ -492,19 +496,19 @@ export default withAui(nextConfig);
|
|
|
492
496
|
"dependencies": {
|
|
493
497
|
"@assistant-ui/store": "workspace:*",
|
|
494
498
|
"@assistant-ui/tap": "workspace:*",
|
|
495
|
-
"next": "^16.2.
|
|
499
|
+
"next": "^16.2.9",
|
|
496
500
|
"react": "^19.2.7",
|
|
497
501
|
"react-dom": "^19.2.7"
|
|
498
502
|
},
|
|
499
503
|
"devDependencies": {
|
|
500
504
|
"@assistant-ui/next": "workspace:*",
|
|
501
505
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
502
|
-
"@tailwindcss/postcss": "^4.3.
|
|
503
|
-
"@types/node": "^
|
|
506
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
507
|
+
"@types/node": "^26.0.0",
|
|
504
508
|
"@types/react": "^19.2.17",
|
|
505
509
|
"@types/react-dom": "^19.2.3",
|
|
506
510
|
"postcss": "^8.5.15",
|
|
507
|
-
"tailwindcss": "^4.3.
|
|
511
|
+
"tailwindcss": "^4.3.1",
|
|
508
512
|
"tw-animate-css": "^1.4.0",
|
|
509
513
|
"typescript": "^6.0.3"
|
|
510
514
|
}
|
|
@@ -64,24 +64,24 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@assistant-ui/react": "workspace:*",
|
|
66
66
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
67
|
-
"@tailwindcss/vite": "^4.3.
|
|
68
|
-
"@tanstack/react-router": "^1.170.
|
|
69
|
-
"@tanstack/react-start": "^1.168.
|
|
67
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
68
|
+
"@tanstack/react-router": "^1.170.16",
|
|
69
|
+
"@tanstack/react-start": "^1.168.26",
|
|
70
70
|
"class-variance-authority": "^0.7.1",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
|
-
"lucide-react": "^1.
|
|
72
|
+
"lucide-react": "^1.21.0",
|
|
73
73
|
"nitro": "^3.0.260311-beta",
|
|
74
|
-
"openai": "^6.
|
|
74
|
+
"openai": "^6.44.0",
|
|
75
75
|
"react": "^19.2.7",
|
|
76
76
|
"react-dom": "^19.2.7",
|
|
77
77
|
"remark-gfm": "^4.0.1",
|
|
78
78
|
"tailwind-merge": "^3.6.0",
|
|
79
|
-
"tailwindcss": "^4.3.
|
|
79
|
+
"tailwindcss": "^4.3.1",
|
|
80
80
|
"vite-tsconfig-paths": "^6.1.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
84
|
-
"@types/node": "^
|
|
84
|
+
"@types/node": "^26.0.0",
|
|
85
85
|
"@types/react": "^19.2.17",
|
|
86
86
|
"@types/react-dom": "^19.2.3",
|
|
87
87
|
"@vitejs/plugin-react": "^6.0.2",
|
|
@@ -764,11 +764,25 @@ import tailwindcss from "@tailwindcss/vite";
|
|
|
764
764
|
import { nitro } from "nitro/vite";
|
|
765
765
|
|
|
766
766
|
const config = defineConfig({
|
|
767
|
+
build: {
|
|
768
|
+
rolldownOptions: {
|
|
769
|
+
external: ["shiki/wasm"],
|
|
770
|
+
},
|
|
771
|
+
},
|
|
772
|
+
ssr: {
|
|
773
|
+
external: ["shiki/wasm"],
|
|
774
|
+
},
|
|
767
775
|
plugins: [
|
|
768
776
|
nitro({
|
|
769
777
|
output: {
|
|
770
778
|
dir: "dist",
|
|
771
779
|
},
|
|
780
|
+
// Nitro enables wasm by default, which adds the "unwasm" export
|
|
781
|
+
// condition. That routes `shiki/wasm` to its raw `onig.wasm` file, which
|
|
782
|
+
// Vite/Rolldown cannot load during the SSR build ([UNLOADABLE_DEPENDENCY]).
|
|
783
|
+
// Disabling it resolves `shiki/wasm` to its base64-inlined default — same
|
|
784
|
+
// Oniguruma engine, no separate .wasm asset.
|
|
785
|
+
wasm: false,
|
|
772
786
|
}),
|
|
773
787
|
viteTsConfigPaths({
|
|
774
788
|
projects: ["./tsconfig.json", "../../packages/ui/tsconfig.json"],
|
|
@@ -602,8 +602,8 @@ export default withAui(nextConfig);
|
|
|
602
602
|
"@assistant-ui/ui": "workspace:*",
|
|
603
603
|
"class-variance-authority": "^0.7.1",
|
|
604
604
|
"clsx": "^2.1.1",
|
|
605
|
-
"lucide-react": "^1.
|
|
606
|
-
"next": "^16.2.
|
|
605
|
+
"lucide-react": "^1.21.0",
|
|
606
|
+
"next": "^16.2.9",
|
|
607
607
|
"react": "^19.2.7",
|
|
608
608
|
"react-dom": "^19.2.7",
|
|
609
609
|
"tailwind-merge": "^3.6.0"
|
|
@@ -611,12 +611,12 @@ export default withAui(nextConfig);
|
|
|
611
611
|
"devDependencies": {
|
|
612
612
|
"@assistant-ui/next": "workspace:*",
|
|
613
613
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
614
|
-
"@tailwindcss/postcss": "^4.3.
|
|
615
|
-
"@types/node": "^
|
|
614
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
615
|
+
"@types/node": "^26.0.0",
|
|
616
616
|
"@types/react": "^19.2.17",
|
|
617
617
|
"@types/react-dom": "^19.2.3",
|
|
618
618
|
"postcss": "^8.5.15",
|
|
619
|
-
"tailwindcss": "^4.3.
|
|
619
|
+
"tailwindcss": "^4.3.1",
|
|
620
620
|
"tw-animate-css": "^1.4.0",
|
|
621
621
|
"typescript": "^6.0.3"
|
|
622
622
|
}
|