@assistant-ui/mcp-docs-server 0.2.1 → 0.2.3

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.
Files changed (187) hide show
  1. package/.docs/organized/code-examples/waterfall.md +3 -3
  2. package/.docs/organized/code-examples/with-a2a.md +5 -4
  3. package/.docs/organized/code-examples/with-ag-ui.md +7 -6
  4. package/.docs/organized/code-examples/with-ai-sdk-v7.md +14 -13
  5. package/.docs/organized/code-examples/with-artifacts.md +12 -11
  6. package/.docs/organized/code-examples/with-assistant-transport.md +6 -5
  7. package/.docs/organized/code-examples/with-browser-extension.md +6 -6
  8. package/.docs/organized/code-examples/with-chain-of-thought.md +16 -14
  9. package/.docs/organized/code-examples/with-cloud-standalone.md +7 -7
  10. package/.docs/organized/code-examples/with-cloud.md +11 -10
  11. package/.docs/organized/code-examples/with-custom-thread-list.md +11 -10
  12. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +14 -13
  13. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +15 -14
  14. package/.docs/organized/code-examples/with-eve.md +6 -5
  15. package/.docs/organized/code-examples/with-expo.md +213 -36
  16. package/.docs/organized/code-examples/with-external-store.md +6 -5
  17. package/.docs/organized/code-examples/with-ffmpeg.md +11 -10
  18. package/.docs/organized/code-examples/with-generative-ui.md +263 -29
  19. package/.docs/organized/code-examples/with-google-adk.md +5 -4
  20. package/.docs/organized/code-examples/with-heat-graph.md +3 -3
  21. package/.docs/organized/code-examples/with-image-generation.md +8 -7
  22. package/.docs/organized/code-examples/with-interactables.md +11 -10
  23. package/.docs/organized/code-examples/with-langchain.md +10 -9
  24. package/.docs/organized/code-examples/with-langgraph.md +7 -6
  25. package/.docs/organized/code-examples/with-livekit.md +15 -14
  26. package/.docs/organized/code-examples/with-mcp.md +14 -12
  27. package/.docs/organized/code-examples/with-nuxt.md +511 -575
  28. package/.docs/organized/code-examples/with-opencode.md +4 -4
  29. package/.docs/organized/code-examples/with-openui.md +450 -0
  30. package/.docs/organized/code-examples/with-pi.md +6 -5
  31. package/.docs/organized/code-examples/with-react-hook-form.md +16 -13
  32. package/.docs/organized/code-examples/with-react-ink-web.md +65 -15
  33. package/.docs/organized/code-examples/with-react-ink.md +5 -4
  34. package/.docs/organized/code-examples/with-react-router.md +8 -7
  35. package/.docs/organized/code-examples/with-resumable-stream.md +13 -12
  36. package/.docs/organized/code-examples/with-store.md +3 -3
  37. package/.docs/organized/code-examples/with-svelte.md +415 -0
  38. package/.docs/organized/code-examples/with-sveltekit.md +1061 -0
  39. package/.docs/organized/code-examples/with-tanstack.md +10 -9
  40. package/.docs/organized/code-examples/with-tap-runtime.md +5 -4
  41. package/.docs/organized/code-examples/with-virtualized-thread.md +6 -5
  42. package/.docs/organized/code-examples/with-vue.md +2 -2
  43. package/.docs/raw/docs/{(docs) → (getting-started)}/cli.mdx +6 -1
  44. package/.docs/raw/docs/{(docs) → (getting-started)}/devtools.mdx +1 -1
  45. package/.docs/raw/docs/{(docs) → (getting-started)}/index.mdx +4 -2
  46. package/.docs/raw/docs/{(docs) → (getting-started)}/installation.mdx +26 -26
  47. package/.docs/raw/docs/(reference)/api-reference/adapters/suggestions.mdx +6 -0
  48. package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +1 -1
  49. package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +6 -1
  50. package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +5 -1
  51. package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +9 -2
  52. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +2 -2
  53. package/.docs/raw/docs/(reference)/api-reference/integrations/{react-ai-sdk.mdx → ai-sdk.mdx} +43 -18
  54. package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +61 -2
  55. package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +3 -3
  56. package/.docs/raw/docs/(reference)/api-reference/overview.mdx +2 -2
  57. package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +20 -2
  58. package/.docs/raw/docs/(reference)/api-reference/tools/interactables.mdx +1 -1
  59. package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +1 -1
  60. package/.docs/raw/docs/(reference)/api-reference/transport/frame.mdx +1 -1
  61. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +32 -1
  62. package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +1 -1
  63. package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +10 -10
  64. package/.docs/raw/docs/cloud/ai-sdk.mdx +4 -2
  65. package/.docs/raw/docs/cloud/index.mdx +1 -1
  66. package/.docs/raw/docs/copilots/assistant-frame.mdx +19 -8
  67. package/.docs/raw/docs/guides/attachments.mdx +4 -4
  68. package/.docs/raw/docs/guides/branching.mdx +1 -1
  69. package/.docs/raw/docs/guides/chatgpt-subscription.mdx +1 -1
  70. package/.docs/raw/docs/guides/context-api.mdx +15 -17
  71. package/.docs/raw/docs/guides/dictation.mdx +2 -2
  72. package/.docs/raw/docs/guides/electron.mdx +1 -1
  73. package/.docs/raw/docs/guides/latex.mdx +1 -1
  74. package/.docs/raw/docs/guides/mentions.mdx +2 -0
  75. package/.docs/raw/docs/guides/message-timing.mdx +11 -5
  76. package/.docs/raw/docs/guides/quoting.mdx +1 -1
  77. package/.docs/raw/docs/guides/resumable-streams.mdx +3 -3
  78. package/.docs/raw/docs/guides/speech.mdx +1 -1
  79. package/.docs/raw/docs/guides/suggestions.mdx +8 -5
  80. package/.docs/raw/docs/guides/voice.mdx +1 -1
  81. package/.docs/raw/docs/ink/hooks.mdx +1 -1
  82. package/.docs/raw/docs/ink/index.mdx +3 -2
  83. package/.docs/raw/docs/ink/migration.mdx +1 -1
  84. package/.docs/raw/docs/ink/primitives.mdx +1 -1
  85. package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +3 -3
  86. package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +3 -3
  87. package/.docs/raw/docs/integrations/frameworks/{cloudflare-agents/overview.mdx → cloudflare-agents.mdx} +4 -3
  88. package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +1 -1
  89. package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
  90. package/.docs/raw/docs/integrations/index.mdx +2 -2
  91. package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +149 -131
  92. package/.docs/raw/docs/migrations/toolkit-tools.mdx +2 -2
  93. package/.docs/raw/docs/migrations/v0-15.mdx +34 -0
  94. package/.docs/raw/docs/primitives/action-bar.mdx +1 -1
  95. package/.docs/raw/docs/primitives/assistant-modal.mdx +1 -1
  96. package/.docs/raw/docs/primitives/attachment.mdx +1 -1
  97. package/.docs/raw/docs/primitives/branch-picker.mdx +1 -1
  98. package/.docs/raw/docs/primitives/chain-of-thought.mdx +3 -3
  99. package/.docs/raw/docs/primitives/composer.mdx +1 -1
  100. package/.docs/raw/docs/primitives/error.mdx +1 -1
  101. package/.docs/raw/docs/primitives/message.mdx +1 -1
  102. package/.docs/raw/docs/primitives/selection-toolbar.mdx +1 -1
  103. package/.docs/raw/docs/primitives/suggestion.mdx +4 -2
  104. package/.docs/raw/docs/primitives/thread-list.mdx +1 -1
  105. package/.docs/raw/docs/primitives/thread.mdx +2 -2
  106. package/.docs/raw/docs/react-native/adapters.mdx +1 -1
  107. package/.docs/raw/docs/react-native/index.mdx +2 -2
  108. package/.docs/raw/docs/react-native/migration.mdx +2 -2
  109. package/.docs/raw/docs/react-native/primitives.mdx +142 -5
  110. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +48 -6
  111. package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +3 -3
  112. package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +4 -4
  113. package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +31 -16
  114. package/.docs/raw/docs/runtimes/claude-managed-agents.mdx +118 -0
  115. package/.docs/raw/docs/runtimes/concepts/adapters.mdx +3 -3
  116. package/.docs/raw/docs/runtimes/concepts/architecture.mdx +3 -3
  117. package/.docs/raw/docs/runtimes/concepts/stability.mdx +2 -1
  118. package/.docs/raw/docs/runtimes/concepts/threads.mdx +73 -33
  119. package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +1 -1
  120. package/.docs/raw/docs/runtimes/custom/external-store.mdx +6 -2
  121. package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
  122. package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +4 -0
  123. package/.docs/raw/docs/runtimes/opencode/quickstart.mdx +1 -1
  124. package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +9 -2
  125. package/.docs/raw/docs/tools/backend.mdx +4 -4
  126. package/.docs/raw/docs/tools/defining-tools.mdx +21 -2
  127. package/.docs/raw/docs/tools/generative-ui-primitive.mdx +180 -0
  128. package/.docs/raw/docs/tools/generative-ui-slack.mdx +167 -0
  129. package/.docs/raw/docs/tools/generative-ui-teams.mdx +160 -0
  130. package/.docs/raw/docs/tools/generative-ui.mdx +224 -211
  131. package/.docs/raw/docs/tools/index.mdx +2 -1
  132. package/.docs/raw/docs/tools/interactables.mdx +8 -7
  133. package/.docs/raw/docs/tools/mcp-apps.mdx +18 -1
  134. package/.docs/raw/docs/tools/mcp.mdx +2 -2
  135. package/.docs/raw/docs/tools/openui.mdx +175 -0
  136. package/.docs/raw/docs/tools/tool-ui.mdx +18 -7
  137. package/.docs/raw/docs/tools/user-managed-mcp.mdx +7 -3
  138. package/.docs/raw/docs/ui/assistant-modal.mdx +3 -3
  139. package/.docs/raw/docs/ui/assistant-sidebar.mdx +1 -1
  140. package/.docs/raw/docs/ui/attachment.mdx +50 -3
  141. package/.docs/raw/docs/ui/composer-trigger-popover.mdx +36 -1
  142. package/.docs/raw/docs/ui/context-display.mdx +1 -1
  143. package/.docs/raw/docs/ui/directive-text.mdx +1 -1
  144. package/.docs/raw/docs/ui/file.mdx +2 -2
  145. package/.docs/raw/docs/ui/follow-up-suggestions.mdx +1 -1
  146. package/.docs/raw/docs/ui/image.mdx +2 -2
  147. package/.docs/raw/docs/ui/markdown.mdx +40 -1
  148. package/.docs/raw/docs/ui/mermaid.mdx +1 -1
  149. package/.docs/raw/docs/ui/message-timing.mdx +1 -1
  150. package/.docs/raw/docs/ui/model-selector.mdx +4 -4
  151. package/.docs/raw/docs/ui/part-grouping.mdx +1 -1
  152. package/.docs/raw/docs/ui/quote.mdx +3 -3
  153. package/.docs/raw/docs/ui/reasoning.mdx +31 -3
  154. package/.docs/raw/docs/ui/scrollbar.mdx +1 -1
  155. package/.docs/raw/docs/ui/sources.mdx +10 -1
  156. package/.docs/raw/docs/ui/streamdown.mdx +2 -2
  157. package/.docs/raw/docs/ui/syntax-highlighting.mdx +1 -1
  158. package/.docs/raw/docs/ui/thread-list.mdx +40 -1
  159. package/.docs/raw/docs/ui/thread.mdx +49 -2
  160. package/.docs/raw/docs/ui/tool-fallback.mdx +23 -9
  161. package/.docs/raw/docs/ui/tool-group.mdx +1 -1
  162. package/.docs/raw/docs/ui/voice.mdx +1 -1
  163. package/.docs/raw/docs/utilities/react-o11y.mdx +2 -2
  164. package/dist/xulux/catalog-client.d.ts.map +1 -1
  165. package/dist/xulux/catalog-client.js +51 -6
  166. package/dist/xulux/catalog-client.js.map +1 -1
  167. package/dist/xulux/types.d.ts +7 -7
  168. package/dist/xulux/types.d.ts.map +1 -1
  169. package/dist/xulux/types.js.map +1 -1
  170. package/package.json +5 -5
  171. package/src/tools/tests/docs.test.ts +10 -7
  172. package/src/tools/tests/path-traversal.test.ts +5 -2
  173. package/src/tools/tests/xulux-templates.test.ts +63 -0
  174. package/src/xulux/catalog-client.ts +68 -23
  175. package/src/xulux/types.ts +17 -13
  176. package/.docs/raw/docs/tools/interactables-legacy.mdx +0 -423
  177. package/.docs/raw/docs/ui/accordion.mdx +0 -266
  178. package/.docs/raw/docs/ui/badge.mdx +0 -150
  179. package/.docs/raw/docs/ui/diff-viewer.mdx +0 -280
  180. package/.docs/raw/docs/ui/dot-matrix.mdx +0 -133
  181. package/.docs/raw/docs/ui/number-roll.mdx +0 -154
  182. package/.docs/raw/docs/ui/select.mdx +0 -254
  183. package/.docs/raw/docs/ui/tabs.mdx +0 -271
  184. /package/.docs/raw/docs/{(docs) → (getting-started)}/architecture.mdx +0 -0
  185. /package/.docs/raw/docs/{(docs) → (getting-started)}/base-ui.mdx +0 -0
  186. /package/.docs/raw/docs/{(docs) → (getting-started)}/llm.mdx +0 -0
  187. /package/.docs/raw/docs/{(docs) → (getting-started)}/rtl.mdx +0 -0
@@ -1,271 +0,0 @@
1
- ---
2
- title: Tabs
3
- description: A multi-variant tabs component for organizing content into switchable panels.
4
- links:
5
- - label: Radix UI Tabs (Radix styles)
6
- url: https://www.radix-ui.com/primitives/docs/components/tabs
7
- - label: Base UI Tabs (base styles)
8
- url: https://base-ui.com/react/components/tabs
9
- platforms: ["react"]
10
- ---
11
-
12
- import { PreviewCode } from "@/components/docs/preview-code.server";
13
- import {
14
- TabsSample,
15
- TabsVariantsSample,
16
- TabsSizesSample,
17
- TabsWithIconsSample,
18
- TabsControlledSample,
19
- TabsAsLinkSample,
20
- TabsAnimatedIndicatorSample,
21
- } from "@/components/docs/samples/tabs";
22
- import * as TabsRadixSamples from "@/components/docs/samples/tabs.radix";
23
- import { Flavored, FlavorSwitcher } from "@/components/docs/contexts/flavor.server";
24
-
25
- <Callout>
26
- This is a **standalone component** that does not depend on the assistant-ui runtime. Use it anywhere in your application.
27
- </Callout>
28
-
29
- <FlavorSwitcher />
30
-
31
- <Flavored radix={<TabsRadixSamples.TabsSample />} base={<TabsSample />} />
32
-
33
- ## Installation
34
-
35
- <InstallCommand shadcn={["tabs"]} />
36
-
37
- ## Usage
38
-
39
- ```tsx
40
- import {
41
- Tabs,
42
- TabsList,
43
- TabsTrigger,
44
- TabsContent,
45
- } from "@/components/assistant-ui/tabs";
46
-
47
- export function Example() {
48
- return (
49
- <Tabs defaultValue="account">
50
- <TabsList>
51
- <TabsTrigger value="account">Account</TabsTrigger>
52
- <TabsTrigger value="password">Password</TabsTrigger>
53
- </TabsList>
54
- <TabsContent value="account">Account settings here.</TabsContent>
55
- <TabsContent value="password">Password settings here.</TabsContent>
56
- </Tabs>
57
- );
58
- }
59
- ```
60
-
61
- ## Examples
62
-
63
- ### Variants
64
-
65
- Use the `variant` prop on `TabsList` to change the visual style. Child components inherit the variant automatically.
66
-
67
- <Flavored radix={<TabsRadixSamples.TabsVariantsSample />} base={<TabsVariantsSample />} />
68
-
69
- ```tsx
70
- <TabsList variant="default" /> // Muted background with shadow (default)
71
- <TabsList variant="line" /> // Underline indicator
72
- <TabsList variant="ghost" /> // Transparent with hover states
73
- <TabsList variant="pills" /> // Rounded pill buttons
74
- <TabsList variant="outline" /> // Border with background on active
75
- ```
76
-
77
- ### Sizes
78
-
79
- Use the `size` prop on `TabsList` to change the tab height. Child components inherit the size automatically.
80
-
81
- <Flavored radix={<TabsRadixSamples.TabsSizesSample />} base={<TabsSizesSample />} />
82
-
83
- ```tsx
84
- <TabsList size="sm" /> // 32px height
85
- <TabsList size="default" /> // 36px height
86
- <TabsList size="lg" /> // 40px height
87
- ```
88
-
89
- ### With Icons
90
-
91
- Tabs automatically style SVG icons placed inside triggers.
92
-
93
- <PreviewCode file="components/docs/samples/tabs" name="TabsWithIconsSample" base={<TabsWithIconsSample />}>
94
- <TabsRadixSamples.TabsWithIconsSample />
95
- </PreviewCode>
96
-
97
- ### Controlled
98
-
99
- Use `value` and `onValueChange` for controlled tab state.
100
-
101
- <PreviewCode file="components/docs/samples/tabs" name="TabsControlledSample" base={<TabsControlledSample />}>
102
- <TabsRadixSamples.TabsControlledSample />
103
- </PreviewCode>
104
-
105
- ### As Link
106
-
107
- Compose with `render` (Base UI) or `asChild` (Radix) on `TabsTrigger` to render as a different element, like a navigation link.
108
-
109
- <PreviewCode file="components/docs/samples/tabs" name="TabsAsLinkSample" base={<TabsAsLinkSample />}>
110
- <TabsRadixSamples.TabsAsLinkSample />
111
- </PreviewCode>
112
-
113
- ### Animated Indicator
114
-
115
- All variants feature smooth animated indicators that slide between tabs:
116
-
117
- | Variant | Indicator Style |
118
- |---------|-----------------|
119
- | `default` | Sliding background with shadow |
120
- | `line` | Sliding underline |
121
- | `ghost` | Sliding background with hover effect |
122
- | `pills` | Sliding pill background |
123
- | `outline` | Sliding border |
124
-
125
- <PreviewCode file="components/docs/samples/tabs" name="TabsAnimatedIndicatorSample" base={<TabsAnimatedIndicatorSample />}>
126
- <TabsRadixSamples.TabsAnimatedIndicatorSample />
127
- </PreviewCode>
128
-
129
- ## API Reference
130
-
131
- ### Composable API
132
-
133
- | Component | Description |
134
- |-----------|-------------|
135
- | `Tabs` | The root component that manages tab state. |
136
- | `TabsList` | The container for tab triggers. Set `variant` and `size` here. |
137
- | `TabsTrigger` | An individual tab button. Inherits variant/size from TabsList. |
138
- | `TabsContent` | The content panel for a tab. |
139
-
140
- ### Tabs
141
-
142
- The root component that manages tab state.
143
-
144
- <ParametersTable
145
- type="TabsProps"
146
- parameters={[
147
- {
148
- name: "defaultValue",
149
- type: "string",
150
- description: "The default active tab value (uncontrolled).",
151
- },
152
- {
153
- name: "value",
154
- type: "string",
155
- description: "The controlled active tab value.",
156
- },
157
- {
158
- name: "onValueChange",
159
- type: "(value: string) => void",
160
- description: "Callback when the active tab changes.",
161
- },
162
- {
163
- name: "className",
164
- type: "string",
165
- description: "Additional CSS classes.",
166
- },
167
- ]}
168
- />
169
-
170
- ### TabsList
171
-
172
- The container for tab triggers. Set `variant` and `size` here to style all child components.
173
-
174
- <ParametersTable
175
- type="TabsListProps"
176
- parameters={[
177
- {
178
- name: "variant",
179
- type: '"default" | "line" | "ghost" | "pills" | "outline"',
180
- default: '"default"',
181
- description: "The visual style of the tabs. Child components inherit this automatically.",
182
- },
183
- {
184
- name: "size",
185
- type: '"sm" | "default" | "lg"',
186
- default: '"default"',
187
- description: "The size of the tabs. Child components inherit this automatically.",
188
- },
189
- {
190
- name: "className",
191
- type: "string",
192
- description: "Additional CSS classes.",
193
- },
194
- ]}
195
- />
196
-
197
- ### TabsTrigger
198
-
199
- An individual tab button.
200
-
201
- <ParametersTable
202
- type="TabsTriggerProps"
203
- parameters={[
204
- {
205
- name: "value",
206
- type: "string",
207
- required: true,
208
- description: "The unique value for this tab.",
209
- },
210
- {
211
- name: "render",
212
- type: "ReactElement | function",
213
- description: "Base UI: compose as a different element instead of rendering a button.",
214
- },
215
- {
216
- name: "asChild",
217
- type: "boolean",
218
- default: "false",
219
- description: "Radix: merge props with a child element instead of rendering a button.",
220
- },
221
- {
222
- name: "disabled",
223
- type: "boolean",
224
- description: "Whether the tab is disabled.",
225
- },
226
- {
227
- name: "className",
228
- type: "string",
229
- description: "Additional CSS classes.",
230
- },
231
- ]}
232
- />
233
-
234
- ### TabsContent
235
-
236
- The content panel for a tab.
237
-
238
- <ParametersTable
239
- type="TabsContentProps"
240
- parameters={[
241
- {
242
- name: "value",
243
- type: "string",
244
- required: true,
245
- description: "The value matching the corresponding TabsTrigger.",
246
- },
247
- {
248
- name: "className",
249
- type: "string",
250
- description: "Additional CSS classes.",
251
- },
252
- ]}
253
- />
254
-
255
- ### Style Variants (CVA)
256
-
257
- | Export | Description |
258
- |--------|-------------|
259
- | `tabsListVariants` | Styles for the tabs list container. |
260
- | `tabsActiveIndicatorVariants` | Styles for the animated active indicator. |
261
-
262
- ```tsx
263
- import {
264
- tabsListVariants,
265
- tabsActiveIndicatorVariants,
266
- } from "@/components/assistant-ui/tabs";
267
-
268
- <div className={tabsListVariants({ variant: "ghost", size: "sm" })}>
269
- Custom Tabs Container
270
- </div>
271
- ```