@assistant-ui/mcp-docs-server 0.1.33 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/organized/code-examples/waterfall.md +7 -7
- package/.docs/organized/code-examples/with-a2a.md +8 -8
- package/.docs/organized/code-examples/with-ag-ui.md +12 -12
- package/.docs/organized/code-examples/with-ai-sdk-v6.md +10 -10
- package/.docs/organized/code-examples/with-artifacts.md +40 -34
- package/.docs/organized/code-examples/with-assistant-transport.md +11 -11
- package/.docs/organized/code-examples/with-browser-extension.md +9 -9
- package/.docs/organized/code-examples/with-chain-of-thought.md +72 -51
- package/.docs/organized/code-examples/with-cloud-standalone.md +10 -10
- package/.docs/organized/code-examples/with-cloud.md +10 -10
- package/.docs/organized/code-examples/with-custom-thread-list.md +10 -10
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +12 -12
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +12 -12
- package/.docs/organized/code-examples/with-expo.md +66 -31
- package/.docs/organized/code-examples/with-external-store.md +8 -8
- package/.docs/organized/code-examples/with-ffmpeg.md +13 -13
- package/.docs/organized/code-examples/with-generative-ui.md +98 -368
- package/.docs/organized/code-examples/with-google-adk.md +9 -9
- package/.docs/organized/code-examples/with-heat-graph.md +7 -7
- package/.docs/organized/code-examples/with-image-generation.md +10 -10
- package/.docs/organized/code-examples/with-interactables.md +10 -10
- package/.docs/organized/code-examples/with-langchain.md +10 -10
- package/.docs/organized/code-examples/with-langgraph.md +33 -29
- package/.docs/organized/code-examples/with-livekit.md +12 -12
- package/.docs/organized/code-examples/with-mcp.md +11 -11
- package/.docs/organized/code-examples/with-opencode.md +109 -583
- package/.docs/organized/code-examples/with-pi.md +2044 -0
- package/.docs/organized/code-examples/with-react-hook-form.md +11 -11
- package/.docs/organized/code-examples/with-react-ink-web.md +691 -0
- package/.docs/organized/code-examples/with-react-ink.md +309 -102
- package/.docs/organized/code-examples/with-react-router.md +14 -14
- package/.docs/organized/code-examples/with-resumable-stream.md +11 -11
- package/.docs/organized/code-examples/with-store.md +70 -66
- package/.docs/organized/code-examples/with-tanstack.md +25 -11
- package/.docs/organized/code-examples/with-tap-runtime.md +8 -8
- package/.docs/organized/code-examples/with-virtualized-thread.md +656 -0
- package/.docs/raw/docs/(docs)/architecture.mdx +65 -53
- package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +3 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +44 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +14 -3
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +2 -23
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +93 -9
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +21 -86
- package/.docs/raw/docs/guides/chain-of-thought.mdx +1 -1
- package/.docs/raw/docs/guides/index.mdx +3 -0
- package/.docs/raw/docs/guides/input-history.mdx +55 -0
- package/.docs/raw/docs/guides/virtualization.mdx +63 -0
- package/.docs/raw/docs/ink/adapters.mdx +23 -1
- package/.docs/raw/docs/ink/hooks.mdx +22 -19
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +14 -8
- package/.docs/raw/docs/react-native/hooks.mdx +26 -18
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +39 -0
- package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +3 -3
- package/.docs/raw/docs/runtimes/concepts/architecture.mdx +46 -4
- package/.docs/raw/docs/runtimes/concepts/stability.mdx +1 -1
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +54 -12
- package/.docs/raw/docs/runtimes/custom/data-stream.mdx +1 -1
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +62 -4
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +120 -4
- package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +9 -9
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +13 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +5 -5
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +3 -3
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +6 -6
- package/.docs/raw/docs/tools/backend.mdx +19 -11
- package/.docs/raw/docs/tools/defining-tools.mdx +177 -52
- package/.docs/raw/docs/tools/index.mdx +7 -12
- package/.docs/raw/docs/tools/mcp.mdx +83 -15
- package/.docs/raw/docs/tools/multi-agent.mdx +5 -5
- package/.docs/raw/docs/tools/tool-ui.mdx +64 -28
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +4 -4
- package/.docs/raw/docs/ui/dot-matrix.mdx +133 -0
- package/.docs/raw/docs/ui/mermaid.mdx +16 -9
- 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 +2 -2
- 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 +16 -0
- package/.docs/raw/docs/utilities/react-o11y.mdx +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/prepare-docs/code-examples.js.map +1 -1
- package/dist/prepare-docs/copy-raw.js.map +1 -1
- package/dist/prepare-docs/prepare.js.map +1 -1
- package/dist/stdio.js.map +1 -1
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/tests/test-setup.js.map +1 -1
- package/dist/utils/mdx.js.map +1 -1
- package/dist/utils/paths.js.map +1 -1
- package/package.json +4 -4
- /package/.docs/raw/docs/{(docs)/copilots → copilots}/assistant-frame.mdx +0 -0
- /package/.docs/raw/docs/{(docs)/copilots → copilots}/make-assistant-visible.mdx +0 -0
- /package/.docs/raw/docs/{(docs)/copilots → copilots}/model-context.mdx +0 -0
- /package/.docs/raw/docs/{(docs)/copilots → copilots}/motivation.mdx +0 -0
- /package/.docs/raw/docs/{(docs)/copilots → copilots}/use-assistant-instructions.mdx +0 -0
|
@@ -339,80 +339,84 @@ declare module "@assistant-ui/store" {
|
|
|
339
339
|
|
|
340
340
|
import "./foo-scope";
|
|
341
341
|
|
|
342
|
-
import { type ReactNode, useMemo } from "react";
|
|
343
|
-
import { resource
|
|
342
|
+
import { type ReactNode, useMemo, useState } from "react";
|
|
343
|
+
import { resource } from "@assistant-ui/tap";
|
|
344
344
|
import {
|
|
345
345
|
useAui,
|
|
346
346
|
useAuiState,
|
|
347
347
|
AuiProvider,
|
|
348
|
-
|
|
348
|
+
useClientList,
|
|
349
349
|
Derived,
|
|
350
|
-
|
|
350
|
+
useAssistantEmit,
|
|
351
351
|
RenderChildrenWithAccessor,
|
|
352
352
|
type ClientOutput,
|
|
353
353
|
} from "@assistant-ui/store";
|
|
354
354
|
|
|
355
355
|
type FooData = { id: string; bar: string };
|
|
356
356
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
const emit = tapAssistantEmit();
|
|
357
|
+
const useFooItemResource = ({
|
|
358
|
+
getInitialData,
|
|
359
|
+
remove,
|
|
360
|
+
}: useClientList.ResourceProps<FooData>): ClientOutput<"foo"> => {
|
|
361
|
+
const emit = useAssistantEmit();
|
|
363
362
|
|
|
364
|
-
|
|
363
|
+
const [state, setState] = useState<FooData>(getInitialData);
|
|
365
364
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
365
|
+
const updateBar = (newBar: string) => {
|
|
366
|
+
setState({ ...state, bar: newBar });
|
|
367
|
+
emit("foo.updated", { id: state.id, newValue: newBar });
|
|
368
|
+
};
|
|
370
369
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
370
|
+
const handleRemove = () => {
|
|
371
|
+
emit("foo.removed", { id: state.id });
|
|
372
|
+
remove();
|
|
373
|
+
};
|
|
375
374
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
375
|
+
return {
|
|
376
|
+
getState: () => state,
|
|
377
|
+
updateBar,
|
|
378
|
+
remove: handleRemove,
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
export const FooItemResource = resource(useFooItemResource);
|
|
383
383
|
|
|
384
384
|
let counter = 3;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
385
|
+
const useFooListResource = ({
|
|
386
|
+
initialValues,
|
|
387
|
+
}: {
|
|
388
|
+
initialValues: boolean;
|
|
389
|
+
}): ClientOutput<"fooList"> => {
|
|
390
|
+
const emit = useAssistantEmit();
|
|
391
|
+
|
|
392
|
+
const foos = useClientList({
|
|
393
|
+
initialValues: initialValues
|
|
394
|
+
? [
|
|
395
|
+
{ id: "foo-1", bar: "First Foo" },
|
|
396
|
+
{ id: "foo-2", bar: "Second Foo" },
|
|
397
|
+
{ id: "foo-3", bar: "Third Foo" },
|
|
398
|
+
]
|
|
399
|
+
: [],
|
|
400
|
+
getKey: (foo) => foo.id,
|
|
401
|
+
resource: FooItemResource,
|
|
402
|
+
});
|
|
400
403
|
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
const addFoo = () => {
|
|
405
|
+
const id = `foo-${++counter}`;
|
|
406
|
+
foos.add({ id: id, bar: `New Foo` });
|
|
407
|
+
emit("fooList.added", { id: id });
|
|
408
|
+
};
|
|
406
409
|
|
|
407
|
-
|
|
410
|
+
const state = useMemo(() => ({ foos: foos.state }), [foos.state]);
|
|
408
411
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
412
|
+
return {
|
|
413
|
+
getState: () => state,
|
|
414
|
+
foo: foos.get,
|
|
415
|
+
addFoo,
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
export const FooListResource = resource(useFooListResource);
|
|
416
420
|
|
|
417
421
|
const FooProvider = ({
|
|
418
422
|
index,
|
|
@@ -492,19 +496,19 @@ export default withAui(nextConfig);
|
|
|
492
496
|
"dependencies": {
|
|
493
497
|
"@assistant-ui/store": "workspace:*",
|
|
494
498
|
"@assistant-ui/tap": "workspace:*",
|
|
495
|
-
"next": "^16.2.
|
|
496
|
-
"react": "^19.2.
|
|
497
|
-
"react-dom": "^19.2.
|
|
499
|
+
"next": "^16.2.9",
|
|
500
|
+
"react": "^19.2.7",
|
|
501
|
+
"react-dom": "^19.2.7"
|
|
498
502
|
},
|
|
499
503
|
"devDependencies": {
|
|
500
504
|
"@assistant-ui/next": "workspace:*",
|
|
501
505
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
502
|
-
"@tailwindcss/postcss": "^4.3.
|
|
503
|
-
"@types/node": "^25.9.
|
|
504
|
-
"@types/react": "^19.2.
|
|
506
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
507
|
+
"@types/node": "^25.9.3",
|
|
508
|
+
"@types/react": "^19.2.17",
|
|
505
509
|
"@types/react-dom": "^19.2.3",
|
|
506
510
|
"postcss": "^8.5.15",
|
|
507
|
-
"tailwindcss": "^4.3.
|
|
511
|
+
"tailwindcss": "^4.3.1",
|
|
508
512
|
"tw-animate-css": "^1.4.0",
|
|
509
513
|
"typescript": "^6.0.3"
|
|
510
514
|
}
|
|
@@ -522,8 +526,8 @@ This is a Next.js application demonstrating the `@assistant-ui/store` package.
|
|
|
522
526
|
## Features Demonstrated
|
|
523
527
|
|
|
524
528
|
- **Client Registry**: Module augmentation for type-safe client definitions
|
|
525
|
-
- **
|
|
526
|
-
- **
|
|
529
|
+
- **useClientList**: Managing lists with index and key lookup
|
|
530
|
+
- **useAssistantEmit**: Emitting and subscribing to scoped events
|
|
527
531
|
- **Derived**: Creating derived client scopes from parent resources
|
|
528
532
|
- **Provider Pattern**: Scoped access to list items via FooProvider
|
|
529
533
|
- **Component Composition**: Render props pattern with components prop
|
|
@@ -587,10 +591,10 @@ declare module "@assistant-ui/store" {
|
|
|
587
591
|
|
|
588
592
|
```typescript
|
|
589
593
|
const FooListResource = resource(
|
|
590
|
-
({ initialValues }): ClientOutput<"fooList">
|
|
591
|
-
const emit =
|
|
594
|
+
function FooListResource({ initialValues }): ClientOutput<"fooList"> {
|
|
595
|
+
const emit = useAssistantEmit();
|
|
592
596
|
|
|
593
|
-
const foos =
|
|
597
|
+
const foos = useClientList({
|
|
594
598
|
initialValues: initialValues ? [/* ... */] : [],
|
|
595
599
|
getKey: (foo) => foo.id,
|
|
596
600
|
resource: FooItemResource,
|
|
@@ -64,29 +64,29 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@assistant-ui/react": "workspace:*",
|
|
66
66
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
67
|
-
"@tailwindcss/vite": "^4.3.
|
|
68
|
-
"@tanstack/react-router": "^1.170.
|
|
69
|
-
"@tanstack/react-start": "^1.168.
|
|
67
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
68
|
+
"@tanstack/react-router": "^1.170.15",
|
|
69
|
+
"@tanstack/react-start": "^1.168.25",
|
|
70
70
|
"class-variance-authority": "^0.7.1",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
|
-
"lucide-react": "^1.
|
|
72
|
+
"lucide-react": "^1.18.0",
|
|
73
73
|
"nitro": "^3.0.260311-beta",
|
|
74
|
-
"openai": "^6.
|
|
75
|
-
"react": "^19.2.
|
|
76
|
-
"react-dom": "^19.2.
|
|
74
|
+
"openai": "^6.42.0",
|
|
75
|
+
"react": "^19.2.7",
|
|
76
|
+
"react-dom": "^19.2.7",
|
|
77
77
|
"remark-gfm": "^4.0.1",
|
|
78
78
|
"tailwind-merge": "^3.6.0",
|
|
79
|
-
"tailwindcss": "^4.3.
|
|
79
|
+
"tailwindcss": "^4.3.1",
|
|
80
80
|
"vite-tsconfig-paths": "^6.1.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
84
|
-
"@types/node": "^25.9.
|
|
85
|
-
"@types/react": "^19.2.
|
|
84
|
+
"@types/node": "^25.9.3",
|
|
85
|
+
"@types/react": "^19.2.17",
|
|
86
86
|
"@types/react-dom": "^19.2.3",
|
|
87
87
|
"@vitejs/plugin-react": "^6.0.2",
|
|
88
88
|
"typescript": "^6.0.3",
|
|
89
|
-
"vite": "^8.0.
|
|
89
|
+
"vite": "^8.0.16"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -764,11 +764,25 @@ import tailwindcss from "@tailwindcss/vite";
|
|
|
764
764
|
import { nitro } from "nitro/vite";
|
|
765
765
|
|
|
766
766
|
const config = defineConfig({
|
|
767
|
+
build: {
|
|
768
|
+
rolldownOptions: {
|
|
769
|
+
external: ["shiki/wasm"],
|
|
770
|
+
},
|
|
771
|
+
},
|
|
772
|
+
ssr: {
|
|
773
|
+
external: ["shiki/wasm"],
|
|
774
|
+
},
|
|
767
775
|
plugins: [
|
|
768
776
|
nitro({
|
|
769
777
|
output: {
|
|
770
778
|
dir: "dist",
|
|
771
779
|
},
|
|
780
|
+
// Nitro enables wasm by default, which adds the "unwasm" export
|
|
781
|
+
// condition. That routes `shiki/wasm` to its raw `onig.wasm` file, which
|
|
782
|
+
// Vite/Rolldown cannot load during the SSR build ([UNLOADABLE_DEPENDENCY]).
|
|
783
|
+
// Disabling it resolves `shiki/wasm` to its base64-inlined default — same
|
|
784
|
+
// Oniguruma engine, no separate .wasm asset.
|
|
785
|
+
wasm: false,
|
|
772
786
|
}),
|
|
773
787
|
viteTsConfigPaths({
|
|
774
788
|
projects: ["./tsconfig.json", "../../packages/ui/tsconfig.json"],
|
|
@@ -602,21 +602,21 @@ export default withAui(nextConfig);
|
|
|
602
602
|
"@assistant-ui/ui": "workspace:*",
|
|
603
603
|
"class-variance-authority": "^0.7.1",
|
|
604
604
|
"clsx": "^2.1.1",
|
|
605
|
-
"lucide-react": "^1.
|
|
606
|
-
"next": "^16.2.
|
|
607
|
-
"react": "^19.2.
|
|
608
|
-
"react-dom": "^19.2.
|
|
605
|
+
"lucide-react": "^1.18.0",
|
|
606
|
+
"next": "^16.2.9",
|
|
607
|
+
"react": "^19.2.7",
|
|
608
|
+
"react-dom": "^19.2.7",
|
|
609
609
|
"tailwind-merge": "^3.6.0"
|
|
610
610
|
},
|
|
611
611
|
"devDependencies": {
|
|
612
612
|
"@assistant-ui/next": "workspace:*",
|
|
613
613
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
614
|
-
"@tailwindcss/postcss": "^4.3.
|
|
615
|
-
"@types/node": "^25.9.
|
|
616
|
-
"@types/react": "^19.2.
|
|
614
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
615
|
+
"@types/node": "^25.9.3",
|
|
616
|
+
"@types/react": "^19.2.17",
|
|
617
617
|
"@types/react-dom": "^19.2.3",
|
|
618
618
|
"postcss": "^8.5.15",
|
|
619
|
-
"tailwindcss": "^4.3.
|
|
619
|
+
"tailwindcss": "^4.3.1",
|
|
620
620
|
"tw-animate-css": "^1.4.0",
|
|
621
621
|
"typescript": "^6.0.3"
|
|
622
622
|
}
|