@assistant-ui/mcp-docs-server 0.2.3 → 0.3.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.
Files changed (452) hide show
  1. package/README.md +16 -43
  2. package/dist/index.d.ts +2 -3
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +3 -91
  5. package/dist/index.js.map +1 -1
  6. package/dist/proxy.d.ts +9 -0
  7. package/dist/proxy.d.ts.map +1 -0
  8. package/dist/proxy.js +76 -0
  9. package/dist/proxy.js.map +1 -0
  10. package/package.json +8 -12
  11. package/src/index.ts +3 -115
  12. package/src/proxy.test.ts +250 -0
  13. package/src/proxy.ts +111 -0
  14. package/.docs/organized/code-examples/waterfall.md +0 -807
  15. package/.docs/organized/code-examples/with-a2a.md +0 -675
  16. package/.docs/organized/code-examples/with-ag-ui.md +0 -553
  17. package/.docs/organized/code-examples/with-ai-sdk-v7.md +0 -466
  18. package/.docs/organized/code-examples/with-artifacts.md +0 -815
  19. package/.docs/organized/code-examples/with-assistant-transport.md +0 -576
  20. package/.docs/organized/code-examples/with-browser-extension.md +0 -371
  21. package/.docs/organized/code-examples/with-chain-of-thought.md +0 -962
  22. package/.docs/organized/code-examples/with-cloud-standalone.md +0 -681
  23. package/.docs/organized/code-examples/with-cloud.md +0 -439
  24. package/.docs/organized/code-examples/with-custom-thread-list.md +0 -569
  25. package/.docs/organized/code-examples/with-elevenlabs-conversational.md +0 -527
  26. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +0 -697
  27. package/.docs/organized/code-examples/with-eve.md +0 -405
  28. package/.docs/organized/code-examples/with-expo.md +0 -2246
  29. package/.docs/organized/code-examples/with-external-store.md +0 -421
  30. package/.docs/organized/code-examples/with-ffmpeg.md +0 -829
  31. package/.docs/organized/code-examples/with-generative-ui.md +0 -1810
  32. package/.docs/organized/code-examples/with-google-adk.md +0 -368
  33. package/.docs/organized/code-examples/with-heat-graph.md +0 -304
  34. package/.docs/organized/code-examples/with-image-generation.md +0 -463
  35. package/.docs/organized/code-examples/with-interactables.md +0 -733
  36. package/.docs/organized/code-examples/with-langchain.md +0 -446
  37. package/.docs/organized/code-examples/with-langgraph.md +0 -855
  38. package/.docs/organized/code-examples/with-livekit.md +0 -643
  39. package/.docs/organized/code-examples/with-mcp.md +0 -782
  40. package/.docs/organized/code-examples/with-nuxt.md +0 -2428
  41. package/.docs/organized/code-examples/with-opencode.md +0 -1974
  42. package/.docs/organized/code-examples/with-openui.md +0 -450
  43. package/.docs/organized/code-examples/with-pi.md +0 -2084
  44. package/.docs/organized/code-examples/with-react-hook-form.md +0 -727
  45. package/.docs/organized/code-examples/with-react-ink-web.md +0 -740
  46. package/.docs/organized/code-examples/with-react-ink.md +0 -473
  47. package/.docs/organized/code-examples/with-react-router.md +0 -936
  48. package/.docs/organized/code-examples/with-resumable-stream.md +0 -668
  49. package/.docs/organized/code-examples/with-store.md +0 -679
  50. package/.docs/organized/code-examples/with-svelte.md +0 -415
  51. package/.docs/organized/code-examples/with-sveltekit.md +0 -1061
  52. package/.docs/organized/code-examples/with-tanstack.md +0 -812
  53. package/.docs/organized/code-examples/with-tap-runtime.md +0 -813
  54. package/.docs/organized/code-examples/with-virtualized-thread.md +0 -681
  55. package/.docs/organized/code-examples/with-vue.md +0 -408
  56. package/.docs/raw/docs/(getting-started)/architecture.mdx +0 -146
  57. package/.docs/raw/docs/(getting-started)/base-ui.mdx +0 -39
  58. package/.docs/raw/docs/(getting-started)/cli.mdx +0 -542
  59. package/.docs/raw/docs/(getting-started)/devtools.mdx +0 -79
  60. package/.docs/raw/docs/(getting-started)/index.mdx +0 -23
  61. package/.docs/raw/docs/(getting-started)/installation.mdx +0 -483
  62. package/.docs/raw/docs/(getting-started)/llm.mdx +0 -211
  63. package/.docs/raw/docs/(getting-started)/rtl.mdx +0 -78
  64. package/.docs/raw/docs/(reference)/api-reference/adapters/attachments.mdx +0 -36
  65. package/.docs/raw/docs/(reference)/api-reference/adapters/feedback.mdx +0 -20
  66. package/.docs/raw/docs/(reference)/api-reference/adapters/index.mdx +0 -34
  67. package/.docs/raw/docs/(reference)/api-reference/adapters/model.mdx +0 -44
  68. package/.docs/raw/docs/(reference)/api-reference/adapters/persistence.mdx +0 -59
  69. package/.docs/raw/docs/(reference)/api-reference/adapters/runtime.mdx +0 -20
  70. package/.docs/raw/docs/(reference)/api-reference/adapters/suggestions.mdx +0 -26
  71. package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +0 -84
  72. package/.docs/raw/docs/(reference)/api-reference/context-providers/index.mdx +0 -22
  73. package/.docs/raw/docs/(reference)/api-reference/context-providers/scoped-providers.mdx +0 -64
  74. package/.docs/raw/docs/(reference)/api-reference/external-store/index.mdx +0 -22
  75. package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +0 -57
  76. package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +0 -49
  77. package/.docs/raw/docs/(reference)/api-reference/generative-ui/a2ui.mdx +0 -40
  78. package/.docs/raw/docs/(reference)/api-reference/generative-ui/actions.mdx +0 -56
  79. package/.docs/raw/docs/(reference)/api-reference/generative-ui/components.mdx +0 -86
  80. package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +0 -39
  81. package/.docs/raw/docs/(reference)/api-reference/generative-ui/json-generative-ui.mdx +0 -42
  82. package/.docs/raw/docs/(reference)/api-reference/generative-ui/rendering.mdx +0 -84
  83. package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +0 -85
  84. package/.docs/raw/docs/(reference)/api-reference/generative-ui/spec.mdx +0 -45
  85. package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +0 -93
  86. package/.docs/raw/docs/(reference)/api-reference/generative-ui/tokens.mdx +0 -62
  87. package/.docs/raw/docs/(reference)/api-reference/hooks/composer-triggers.mdx +0 -129
  88. package/.docs/raw/docs/(reference)/api-reference/hooks/index.mdx +0 -31
  89. package/.docs/raw/docs/(reference)/api-reference/hooks/model-context.mdx +0 -34
  90. package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +0 -350
  91. package/.docs/raw/docs/(reference)/api-reference/hooks/runtimes.mdx +0 -28
  92. package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +0 -97
  93. package/.docs/raw/docs/(reference)/api-reference/integrations/ai-sdk.mdx +0 -200
  94. package/.docs/raw/docs/(reference)/api-reference/integrations/cloud-ai-sdk.mdx +0 -24
  95. package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +0 -118
  96. package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +0 -28
  97. package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +0 -37
  98. package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +0 -50
  99. package/.docs/raw/docs/(reference)/api-reference/model-context/index.mdx +0 -22
  100. package/.docs/raw/docs/(reference)/api-reference/model-context/registry.mdx +0 -20
  101. package/.docs/raw/docs/(reference)/api-reference/overview.mdx +0 -566
  102. package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar-more.mdx +0 -152
  103. package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar.mdx +0 -239
  104. package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +0 -208
  105. package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-modal.mdx +0 -108
  106. package/.docs/raw/docs/(reference)/api-reference/primitives/attachment.mdx +0 -99
  107. package/.docs/raw/docs/(reference)/api-reference/primitives/branch-picker.mdx +0 -145
  108. package/.docs/raw/docs/(reference)/api-reference/primitives/chain-of-thought.mdx +0 -82
  109. package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +0 -637
  110. package/.docs/raw/docs/(reference)/api-reference/primitives/composition.mdx +0 -22
  111. package/.docs/raw/docs/(reference)/api-reference/primitives/error.mdx +0 -65
  112. package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +0 -73
  113. package/.docs/raw/docs/(reference)/api-reference/primitives/message-part.mdx +0 -117
  114. package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +0 -339
  115. package/.docs/raw/docs/(reference)/api-reference/primitives/queue-item.mdx +0 -77
  116. package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +0 -88
  117. package/.docs/raw/docs/(reference)/api-reference/primitives/suggestion.mdx +0 -81
  118. package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item-more.mdx +0 -129
  119. package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item.mdx +0 -138
  120. package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list.mdx +0 -122
  121. package/.docs/raw/docs/(reference)/api-reference/primitives/thread.mdx +0 -289
  122. package/.docs/raw/docs/(reference)/api-reference/runtimes/assistant-runtime.mdx +0 -20
  123. package/.docs/raw/docs/(reference)/api-reference/runtimes/attachment-runtime.mdx +0 -24
  124. package/.docs/raw/docs/(reference)/api-reference/runtimes/composer-runtime.mdx +0 -32
  125. package/.docs/raw/docs/(reference)/api-reference/runtimes/index.mdx +0 -43
  126. package/.docs/raw/docs/(reference)/api-reference/runtimes/message-part-runtime.mdx +0 -43
  127. package/.docs/raw/docs/(reference)/api-reference/runtimes/message-runtime.mdx +0 -24
  128. package/.docs/raw/docs/(reference)/api-reference/runtimes/queue-state.mdx +0 -20
  129. package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-item-runtime.mdx +0 -24
  130. package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-runtime.mdx +0 -24
  131. package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-runtime.mdx +0 -36
  132. package/.docs/raw/docs/(reference)/api-reference/tools/component-tools.mdx +0 -85
  133. package/.docs/raw/docs/(reference)/api-reference/tools/index.mdx +0 -45
  134. package/.docs/raw/docs/(reference)/api-reference/tools/interactables-legacy.mdx +0 -55
  135. package/.docs/raw/docs/(reference)/api-reference/tools/interactables.mdx +0 -151
  136. package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +0 -106
  137. package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +0 -62
  138. package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +0 -178
  139. package/.docs/raw/docs/(reference)/api-reference/transport/assistant-transport.mdx +0 -48
  140. package/.docs/raw/docs/(reference)/api-reference/transport/frame.mdx +0 -62
  141. package/.docs/raw/docs/(reference)/api-reference/transport/index.mdx +0 -22
  142. package/.docs/raw/docs/(reference)/api-reference/utilities/index.mdx +0 -19
  143. package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +0 -152
  144. package/.docs/raw/docs/(reference)/api-reference/voice/index.mdx +0 -22
  145. package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +0 -54
  146. package/.docs/raw/docs/(reference)/api-reference/voice/speech-dictation.mdx +0 -36
  147. package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +0 -527
  148. package/.docs/raw/docs/cloud/ai-sdk.mdx +0 -604
  149. package/.docs/raw/docs/cloud/authorization.mdx +0 -252
  150. package/.docs/raw/docs/cloud/index.mdx +0 -46
  151. package/.docs/raw/docs/cloud/langgraph.mdx +0 -554
  152. package/.docs/raw/docs/copilots/assistant-frame.mdx +0 -411
  153. package/.docs/raw/docs/copilots/make-assistant-visible.mdx +0 -82
  154. package/.docs/raw/docs/copilots/model-context.mdx +0 -156
  155. package/.docs/raw/docs/copilots/motivation.mdx +0 -202
  156. package/.docs/raw/docs/copilots/use-assistant-instructions.mdx +0 -64
  157. package/.docs/raw/docs/guides/attachments.mdx +0 -619
  158. package/.docs/raw/docs/guides/branching.mdx +0 -76
  159. package/.docs/raw/docs/guides/chain-of-thought.mdx +0 -164
  160. package/.docs/raw/docs/guides/chatgpt-subscription.mdx +0 -108
  161. package/.docs/raw/docs/guides/context-api.mdx +0 -619
  162. package/.docs/raw/docs/guides/dictation.mdx +0 -298
  163. package/.docs/raw/docs/guides/editing.mdx +0 -102
  164. package/.docs/raw/docs/guides/electron.mdx +0 -369
  165. package/.docs/raw/docs/guides/headless-composer-input.mdx +0 -113
  166. package/.docs/raw/docs/guides/image-generation.mdx +0 -74
  167. package/.docs/raw/docs/guides/index.mdx +0 -117
  168. package/.docs/raw/docs/guides/input-history.mdx +0 -55
  169. package/.docs/raw/docs/guides/latex.mdx +0 -158
  170. package/.docs/raw/docs/guides/mentions.mdx +0 -575
  171. package/.docs/raw/docs/guides/message-timing.mdx +0 -215
  172. package/.docs/raw/docs/guides/quoting.mdx +0 -169
  173. package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +0 -212
  174. package/.docs/raw/docs/guides/resumable-stream-stores.mdx +0 -152
  175. package/.docs/raw/docs/guides/resumable-streams.mdx +0 -292
  176. package/.docs/raw/docs/guides/slash-commands.mdx +0 -358
  177. package/.docs/raw/docs/guides/speech.mdx +0 -172
  178. package/.docs/raw/docs/guides/suggestions.mdx +0 -384
  179. package/.docs/raw/docs/guides/virtualization.mdx +0 -133
  180. package/.docs/raw/docs/guides/voice.mdx +0 -310
  181. package/.docs/raw/docs/ink/adapters.mdx +0 -99
  182. package/.docs/raw/docs/ink/custom-backend.mdx +0 -254
  183. package/.docs/raw/docs/ink/hooks.mdx +0 -469
  184. package/.docs/raw/docs/ink/index.mdx +0 -237
  185. package/.docs/raw/docs/ink/migration.mdx +0 -138
  186. package/.docs/raw/docs/ink/primitives.mdx +0 -1259
  187. package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +0 -528
  188. package/.docs/raw/docs/integrations/auth/better-auth.mdx +0 -188
  189. package/.docs/raw/docs/integrations/auth/clerk.mdx +0 -166
  190. package/.docs/raw/docs/integrations/auth/next-auth.mdx +0 -191
  191. package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +0 -88
  192. package/.docs/raw/docs/integrations/frameworks/cloudflare-agents.mdx +0 -283
  193. package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +0 -188
  194. package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +0 -57
  195. package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +0 -201
  196. package/.docs/raw/docs/integrations/gateways/index.mdx +0 -162
  197. package/.docs/raw/docs/integrations/index.mdx +0 -178
  198. package/.docs/raw/docs/integrations/observability/helicone.mdx +0 -129
  199. package/.docs/raw/docs/integrations/observability/langfuse.mdx +0 -161
  200. package/.docs/raw/docs/integrations/observability/langsmith.mdx +0 -151
  201. package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +0 -773
  202. package/.docs/raw/docs/migrations/deprecation-policy.mdx +0 -42
  203. package/.docs/raw/docs/migrations/index.mdx +0 -50
  204. package/.docs/raw/docs/migrations/react-compatibility.mdx +0 -74
  205. package/.docs/raw/docs/migrations/react-langgraph-v0-7.mdx +0 -328
  206. package/.docs/raw/docs/migrations/toolkit-tools.mdx +0 -236
  207. package/.docs/raw/docs/migrations/v0-11.mdx +0 -172
  208. package/.docs/raw/docs/migrations/v0-12.mdx +0 -302
  209. package/.docs/raw/docs/migrations/v0-14.mdx +0 -297
  210. package/.docs/raw/docs/migrations/v0-15.mdx +0 -270
  211. package/.docs/raw/docs/primitives/action-bar.mdx +0 -352
  212. package/.docs/raw/docs/primitives/assistant-modal.mdx +0 -216
  213. package/.docs/raw/docs/primitives/attachment.mdx +0 -217
  214. package/.docs/raw/docs/primitives/branch-picker.mdx +0 -222
  215. package/.docs/raw/docs/primitives/chain-of-thought.mdx +0 -315
  216. package/.docs/raw/docs/primitives/composer.mdx +0 -659
  217. package/.docs/raw/docs/primitives/error.mdx +0 -142
  218. package/.docs/raw/docs/primitives/index.mdx +0 -99
  219. package/.docs/raw/docs/primitives/message.mdx +0 -618
  220. package/.docs/raw/docs/primitives/selection-toolbar.mdx +0 -191
  221. package/.docs/raw/docs/primitives/suggestion.mdx +0 -254
  222. package/.docs/raw/docs/primitives/thread-list.mdx +0 -467
  223. package/.docs/raw/docs/primitives/thread.mdx +0 -509
  224. package/.docs/raw/docs/react-native/adapters.mdx +0 -94
  225. package/.docs/raw/docs/react-native/custom-backend.mdx +0 -207
  226. package/.docs/raw/docs/react-native/hooks.mdx +0 -339
  227. package/.docs/raw/docs/react-native/index.mdx +0 -289
  228. package/.docs/raw/docs/react-native/migration.mdx +0 -142
  229. package/.docs/raw/docs/react-native/primitives.mdx +0 -976
  230. package/.docs/raw/docs/runtimes/a2a/client-and-hooks.mdx +0 -399
  231. package/.docs/raw/docs/runtimes/a2a/overview.mdx +0 -60
  232. package/.docs/raw/docs/runtimes/a2a/quickstart.mdx +0 -216
  233. package/.docs/raw/docs/runtimes/ag-ui/agent-state.mdx +0 -124
  234. package/.docs/raw/docs/runtimes/ag-ui/overview.mdx +0 -70
  235. package/.docs/raw/docs/runtimes/ag-ui/quickstart.mdx +0 -243
  236. package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +0 -267
  237. package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +0 -61
  238. package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +0 -122
  239. package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +0 -135
  240. package/.docs/raw/docs/runtimes/ai-sdk/v6-legacy.mdx +0 -636
  241. package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +0 -731
  242. package/.docs/raw/docs/runtimes/claude-managed-agents.mdx +0 -118
  243. package/.docs/raw/docs/runtimes/concepts/adapters.mdx +0 -265
  244. package/.docs/raw/docs/runtimes/concepts/architecture.mdx +0 -167
  245. package/.docs/raw/docs/runtimes/concepts/stability.mdx +0 -68
  246. package/.docs/raw/docs/runtimes/concepts/threads.mdx +0 -513
  247. package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +0 -763
  248. package/.docs/raw/docs/runtimes/custom/data-stream.mdx +0 -339
  249. package/.docs/raw/docs/runtimes/custom/external-store.mdx +0 -957
  250. package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +0 -902
  251. package/.docs/raw/docs/runtimes/custom/overview.mdx +0 -71
  252. package/.docs/raw/docs/runtimes/eve/overview.mdx +0 -151
  253. package/.docs/raw/docs/runtimes/eve/quickstart.mdx +0 -192
  254. package/.docs/raw/docs/runtimes/google-adk/api.mdx +0 -256
  255. package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +0 -784
  256. package/.docs/raw/docs/runtimes/google-adk/overview.mdx +0 -69
  257. package/.docs/raw/docs/runtimes/google-adk/quickstart.mdx +0 -229
  258. package/.docs/raw/docs/runtimes/langchain.mdx +0 -901
  259. package/.docs/raw/docs/runtimes/langgraph/agent-state.mdx +0 -181
  260. package/.docs/raw/docs/runtimes/langgraph/generative-ui.mdx +0 -305
  261. package/.docs/raw/docs/runtimes/langgraph/interrupts.mdx +0 -104
  262. package/.docs/raw/docs/runtimes/langgraph/overview.mdx +0 -84
  263. package/.docs/raw/docs/runtimes/langgraph/quickstart.mdx +0 -496
  264. package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +0 -144
  265. package/.docs/raw/docs/runtimes/langgraph/threads.mdx +0 -113
  266. package/.docs/raw/docs/runtimes/langgraph/tutorial/introduction.mdx +0 -29
  267. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-1.mdx +0 -93
  268. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +0 -347
  269. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +0 -393
  270. package/.docs/raw/docs/runtimes/opencode/hooks.mdx +0 -194
  271. package/.docs/raw/docs/runtimes/opencode/overview.mdx +0 -58
  272. package/.docs/raw/docs/runtimes/opencode/quickstart.mdx +0 -119
  273. package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +0 -133
  274. package/.docs/raw/docs/tools/a2ui.mdx +0 -107
  275. package/.docs/raw/docs/tools/backend.mdx +0 -147
  276. package/.docs/raw/docs/tools/defining-tools.mdx +0 -574
  277. package/.docs/raw/docs/tools/dynamic-tools.mdx +0 -112
  278. package/.docs/raw/docs/tools/generative-ui-primitive.mdx +0 -180
  279. package/.docs/raw/docs/tools/generative-ui-slack.mdx +0 -167
  280. package/.docs/raw/docs/tools/generative-ui-teams.mdx +0 -160
  281. package/.docs/raw/docs/tools/generative-ui.mdx +0 -322
  282. package/.docs/raw/docs/tools/index.mdx +0 -72
  283. package/.docs/raw/docs/tools/interactables.mdx +0 -1084
  284. package/.docs/raw/docs/tools/mcp-apps.mdx +0 -363
  285. package/.docs/raw/docs/tools/mcp.mdx +0 -466
  286. package/.docs/raw/docs/tools/multi-agent.mdx +0 -237
  287. package/.docs/raw/docs/tools/openui.mdx +0 -175
  288. package/.docs/raw/docs/tools/tool-ui.mdx +0 -1020
  289. package/.docs/raw/docs/tools/user-managed-mcp.mdx +0 -428
  290. package/.docs/raw/docs/ui/assistant-modal.mdx +0 -166
  291. package/.docs/raw/docs/ui/assistant-sidebar.mdx +0 -89
  292. package/.docs/raw/docs/ui/attachment.mdx +0 -279
  293. package/.docs/raw/docs/ui/composer-trigger-popover.mdx +0 -247
  294. package/.docs/raw/docs/ui/context-display.mdx +0 -148
  295. package/.docs/raw/docs/ui/directive-text.mdx +0 -114
  296. package/.docs/raw/docs/ui/file.mdx +0 -159
  297. package/.docs/raw/docs/ui/follow-up-suggestions.mdx +0 -82
  298. package/.docs/raw/docs/ui/image.mdx +0 -102
  299. package/.docs/raw/docs/ui/markdown.mdx +0 -103
  300. package/.docs/raw/docs/ui/mcp-config.mdx +0 -107
  301. package/.docs/raw/docs/ui/mermaid.mdx +0 -92
  302. package/.docs/raw/docs/ui/message-timing.mdx +0 -93
  303. package/.docs/raw/docs/ui/model-selector.mdx +0 -455
  304. package/.docs/raw/docs/ui/part-grouping.mdx +0 -614
  305. package/.docs/raw/docs/ui/quote.mdx +0 -211
  306. package/.docs/raw/docs/ui/reasoning.mdx +0 -214
  307. package/.docs/raw/docs/ui/scrollbar.mdx +0 -77
  308. package/.docs/raw/docs/ui/sources.mdx +0 -186
  309. package/.docs/raw/docs/ui/streamdown.mdx +0 -392
  310. package/.docs/raw/docs/ui/syntax-highlighting.mdx +0 -205
  311. package/.docs/raw/docs/ui/thread-list.mdx +0 -411
  312. package/.docs/raw/docs/ui/thread.mdx +0 -559
  313. package/.docs/raw/docs/ui/tool-fallback.mdx +0 -141
  314. package/.docs/raw/docs/ui/tool-group.mdx +0 -240
  315. package/.docs/raw/docs/ui/voice.mdx +0 -173
  316. package/.docs/raw/docs/utilities/heat-graph.mdx +0 -237
  317. package/.docs/raw/docs/utilities/react-o11y.mdx +0 -362
  318. package/.docs/raw/docs/utilities/tw-shimmer.mdx +0 -212
  319. package/dist/constants.d.ts +0 -14
  320. package/dist/constants.d.ts.map +0 -1
  321. package/dist/constants.js +0 -19
  322. package/dist/constants.js.map +0 -1
  323. package/dist/prepare-docs/code-examples.d.ts +0 -5
  324. package/dist/prepare-docs/code-examples.d.ts.map +0 -1
  325. package/dist/prepare-docs/code-examples.js +0 -117
  326. package/dist/prepare-docs/code-examples.js.map +0 -1
  327. package/dist/prepare-docs/copy-raw.d.ts +0 -5
  328. package/dist/prepare-docs/copy-raw.d.ts.map +0 -1
  329. package/dist/prepare-docs/copy-raw.js +0 -49
  330. package/dist/prepare-docs/copy-raw.js.map +0 -1
  331. package/dist/prepare-docs/prepare.d.ts +0 -1
  332. package/dist/prepare-docs/prepare.js +0 -22
  333. package/dist/prepare-docs/prepare.js.map +0 -1
  334. package/dist/prompts/xulux-playground.d.ts +0 -12
  335. package/dist/prompts/xulux-playground.d.ts.map +0 -1
  336. package/dist/prompts/xulux-playground.js +0 -33
  337. package/dist/prompts/xulux-playground.js.map +0 -1
  338. package/dist/tools/docs.d.ts +0 -22
  339. package/dist/tools/docs.d.ts.map +0 -1
  340. package/dist/tools/docs.js +0 -177
  341. package/dist/tools/docs.js.map +0 -1
  342. package/dist/tools/examples.d.ts +0 -24
  343. package/dist/tools/examples.d.ts.map +0 -1
  344. package/dist/tools/examples.js +0 -87
  345. package/dist/tools/examples.js.map +0 -1
  346. package/dist/tools/resources.d.ts +0 -6
  347. package/dist/tools/resources.d.ts.map +0 -1
  348. package/dist/tools/resources.js +0 -75
  349. package/dist/tools/resources.js.map +0 -1
  350. package/dist/tools/search.d.ts +0 -24
  351. package/dist/tools/search.d.ts.map +0 -1
  352. package/dist/tools/search.js +0 -39
  353. package/dist/tools/search.js.map +0 -1
  354. package/dist/tools/tests/mcp-test-client.d.ts +0 -15
  355. package/dist/tools/tests/mcp-test-client.d.ts.map +0 -1
  356. package/dist/tools/tests/mcp-test-client.js +0 -68
  357. package/dist/tools/tests/mcp-test-client.js.map +0 -1
  358. package/dist/tools/tests/test-setup.d.ts +0 -7
  359. package/dist/tools/tests/test-setup.d.ts.map +0 -1
  360. package/dist/tools/tests/test-setup.js +0 -36
  361. package/dist/tools/tests/test-setup.js.map +0 -1
  362. package/dist/tools/xulux-templates.d.ts +0 -58
  363. package/dist/tools/xulux-templates.d.ts.map +0 -1
  364. package/dist/tools/xulux-templates.js +0 -84
  365. package/dist/tools/xulux-templates.js.map +0 -1
  366. package/dist/utils/cache.d.ts +0 -5
  367. package/dist/utils/cache.d.ts.map +0 -1
  368. package/dist/utils/cache.js +0 -18
  369. package/dist/utils/cache.js.map +0 -1
  370. package/dist/utils/logger.d.ts +0 -10
  371. package/dist/utils/logger.d.ts.map +0 -1
  372. package/dist/utils/logger.js +0 -20
  373. package/dist/utils/logger.js.map +0 -1
  374. package/dist/utils/mcp-format.d.ts +0 -11
  375. package/dist/utils/mcp-format.d.ts.map +0 -1
  376. package/dist/utils/mcp-format.js +0 -14
  377. package/dist/utils/mcp-format.js.map +0 -1
  378. package/dist/utils/mdx.d.ts +0 -12
  379. package/dist/utils/mdx.d.ts.map +0 -1
  380. package/dist/utils/mdx.js +0 -45
  381. package/dist/utils/mdx.js.map +0 -1
  382. package/dist/utils/paths.d.ts +0 -12
  383. package/dist/utils/paths.d.ts.map +0 -1
  384. package/dist/utils/paths.js +0 -93
  385. package/dist/utils/paths.js.map +0 -1
  386. package/dist/utils/search.d.ts +0 -10
  387. package/dist/utils/search.d.ts.map +0 -1
  388. package/dist/utils/search.js +0 -97
  389. package/dist/utils/search.js.map +0 -1
  390. package/dist/utils/security.d.ts +0 -5
  391. package/dist/utils/security.d.ts.map +0 -1
  392. package/dist/utils/security.js +0 -22
  393. package/dist/utils/security.js.map +0 -1
  394. package/dist/xulux/catalog-client.d.ts +0 -14
  395. package/dist/xulux/catalog-client.d.ts.map +0 -1
  396. package/dist/xulux/catalog-client.js +0 -112
  397. package/dist/xulux/catalog-client.js.map +0 -1
  398. package/dist/xulux/fallback-catalog.d.ts +0 -7
  399. package/dist/xulux/fallback-catalog.d.ts.map +0 -1
  400. package/dist/xulux/fallback-catalog.js +0 -47
  401. package/dist/xulux/fallback-catalog.js.map +0 -1
  402. package/dist/xulux/fetch-sandbox.d.ts +0 -5
  403. package/dist/xulux/fetch-sandbox.d.ts.map +0 -1
  404. package/dist/xulux/fetch-sandbox.js +0 -40
  405. package/dist/xulux/fetch-sandbox.js.map +0 -1
  406. package/dist/xulux/template-service.d.ts +0 -84
  407. package/dist/xulux/template-service.d.ts.map +0 -1
  408. package/dist/xulux/template-service.js +0 -223
  409. package/dist/xulux/template-service.js.map +0 -1
  410. package/dist/xulux/types.d.ts +0 -55
  411. package/dist/xulux/types.d.ts.map +0 -1
  412. package/dist/xulux/types.js +0 -6
  413. package/dist/xulux/types.js.map +0 -1
  414. package/src/constants.ts +0 -24
  415. package/src/prepare-docs/code-examples.ts +0 -158
  416. package/src/prepare-docs/copy-raw.ts +0 -50
  417. package/src/prepare-docs/prepare.ts +0 -24
  418. package/src/prompts/xulux-playground.ts +0 -36
  419. package/src/tools/docs.ts +0 -255
  420. package/src/tools/examples.ts +0 -114
  421. package/src/tools/resources.ts +0 -111
  422. package/src/tools/search.ts +0 -46
  423. package/src/tools/tests/completions.test.ts +0 -60
  424. package/src/tools/tests/directory-size-cap.test.ts +0 -50
  425. package/src/tools/tests/docs.test.ts +0 -147
  426. package/src/tools/tests/examples.test.ts +0 -94
  427. package/src/tools/tests/integration.test.ts +0 -45
  428. package/src/tools/tests/json-parsing.test.ts +0 -23
  429. package/src/tools/tests/listings-cache.test.ts +0 -19
  430. package/src/tools/tests/mcp-protocol.test.ts +0 -216
  431. package/src/tools/tests/mcp-test-client.ts +0 -111
  432. package/src/tools/tests/path-traversal.test.ts +0 -84
  433. package/src/tools/tests/resources.test.ts +0 -133
  434. package/src/tools/tests/search.test.ts +0 -37
  435. package/src/tools/tests/test-setup.ts +0 -50
  436. package/src/tools/tests/xulux-templates.test.ts +0 -325
  437. package/src/tools/xulux-templates.ts +0 -141
  438. package/src/utils/cache.ts +0 -20
  439. package/src/utils/logger.ts +0 -20
  440. package/src/utils/mcp-format.ts +0 -14
  441. package/src/utils/mdx.ts +0 -59
  442. package/src/utils/paths.ts +0 -139
  443. package/src/utils/search.ts +0 -131
  444. package/src/utils/security.ts +0 -52
  445. package/src/utils/tests/cache.test.ts +0 -51
  446. package/src/utils/tests/mcp-format.test.ts +0 -22
  447. package/src/utils/tests/security.test.ts +0 -119
  448. package/src/xulux/catalog-client.ts +0 -150
  449. package/src/xulux/fallback-catalog.ts +0 -63
  450. package/src/xulux/fetch-sandbox.ts +0 -56
  451. package/src/xulux/template-service.ts +0 -406
  452. package/src/xulux/types.ts +0 -64
@@ -1,1061 +0,0 @@
1
- # Example: with-sveltekit
2
-
3
- ## .svelte-kit/ambient.d.ts
4
-
5
- ```typescript
6
-
7
- // this file is generated — do not edit it
8
-
9
-
10
- /// <reference types="@sveltejs/kit" />
11
-
12
- /**
13
- * This module provides access to environment variables that are injected _statically_ into your bundle at build time and are limited to _private_ access.
14
- *
15
- * | | Runtime | Build time |
16
- * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
17
- * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
18
- * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
19
- *
20
- * Static environment variables are [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env` at build time and then statically injected into your bundle at build time, enabling optimisations like dead code elimination.
21
- *
22
- * **_Private_ access:**
23
- *
24
- * - This module cannot be imported into client-side code
25
- * - This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured)
26
- *
27
- * For example, given the following build time environment:
28
- *
29
- * ```env
30
- * ENVIRONMENT=production
31
- * PUBLIC_BASE_URL=http://site.com
32
- * ```
33
- *
34
- * With the default `publicPrefix` and `privatePrefix`:
35
- *
36
- * ```ts
37
- * import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/private';
38
- *
39
- * console.log(ENVIRONMENT); // => "production"
40
- * console.log(PUBLIC_BASE_URL); // => throws error during build
41
- * ```
42
- *
43
- * The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values.
44
- */
45
- declare module '$env/static/private' {
46
- export const GITHUB_STATE: string;
47
- export const DOTNET_NOLOGO: string;
48
- export const USER: string;
49
- export const npm_config_user_agent: string;
50
- export const CI: string;
51
- export const USE_BAZEL_FALLBACK_VERSION: string;
52
- export const RUNNER_ENVIRONMENT: string;
53
- export const GITHUB_ENV: string;
54
- export const PIPX_HOME: string;
55
- export const npm_node_execpath: string;
56
- export const JAVA_HOME_8_X64: string;
57
- export const SHLVL: string;
58
- export const HCA_CLOUD_PROVIDER: string;
59
- export const HOME: string;
60
- export const RUNNER_TEMP: string;
61
- export const GITHUB_EVENT_PATH: string;
62
- export const npm_package_json: string;
63
- export const JAVA_HOME_11_X64: string;
64
- export const PIPX_BIN_DIR: string;
65
- export const GITHUB_REPOSITORY_OWNER: string;
66
- export const GRADLE_HOME: string;
67
- export const ANDROID_NDK_LATEST_HOME: string;
68
- export const JAVA_HOME_21_X64: string;
69
- export const GITHUB_RETENTION_DAYS: string;
70
- export const GITHUB_REPOSITORY_OWNER_ID: string;
71
- export const POWERSHELL_DISTRIBUTION_CHANNEL: string;
72
- export const AZURE_EXTENSION_DIR: string;
73
- export const GITHUB_HEAD_REF: string;
74
- export const SYSTEMD_EXEC_PID: string;
75
- export const ACTIONS_ORCHESTRATION_ID: string;
76
- export const GITHUB_GRAPHQL_URL: string;
77
- export const JAVA_HOME_25_X64: string;
78
- export const NVM_DIR: string;
79
- export const DOTNET_SKIP_FIRST_TIME_EXPERIENCE: string;
80
- export const JAVA_HOME_17_X64: string;
81
- export const ImageVersion: string;
82
- export const LOGNAME: string;
83
- export const RUNNER_OS: string;
84
- export const GITHUB_API_URL: string;
85
- export const GITHUB_ARTIFACTS: string;
86
- export const SWIFT_PATH: string;
87
- export const pnpm_config_verify_deps_before_run: string;
88
- export const CHROMEWEBDRIVER: string;
89
- export const JOURNAL_STREAM: string;
90
- export const GITHUB_WORKFLOW: string;
91
- export const _: string;
92
- export const MEMORY_PRESSURE_WATCH: string;
93
- export const GOROOT_1_24_X64: string;
94
- export const ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: string;
95
- export const GOROOT_1_25_X64: string;
96
- export const GITHUB_RUN_ID: string;
97
- export const GITHUB_REF_TYPE: string;
98
- export const BOOTSTRAP_HASKELL_NONINTERACTIVE: string;
99
- export const GITHUB_WORKFLOW_SHA: string;
100
- export const GOROOT_1_26_X64: string;
101
- export const GITHUB_BASE_REF: string;
102
- export const ImageOS: string;
103
- export const GITHUB_WORKFLOW_REF: string;
104
- export const ACTIONS_ID_TOKEN_REQUEST_TOKEN: string;
105
- export const GITHUB_ACTION_REPOSITORY: string;
106
- export const ENABLE_RUNNER_TRACING: string;
107
- export const npm_config_node_gyp: string;
108
- export const PATH: string;
109
- export const ANT_HOME: string;
110
- export const DOTNET_MULTILEVEL_LOOKUP: string;
111
- export const RUNNER_TRACKING_ID: string;
112
- export const INVOCATION_ID: string;
113
- export const RUNNER_TOOL_CACHE: string;
114
- export const npm_package_name: string;
115
- export const NODE: string;
116
- export const GITHUB_ACTION: string;
117
- export const GITHUB_RUN_NUMBER: string;
118
- export const GITHUB_TRIGGERING_ACTOR: string;
119
- export const RUNNER_ARCH: string;
120
- export const XDG_RUNTIME_DIR: string;
121
- export const AGENT_TOOLSDIRECTORY: string;
122
- export const LANG: string;
123
- export const VCPKG_INSTALLATION_ROOT: string;
124
- export const CONDA: string;
125
- export const RUNNER_NAME: string;
126
- export const XDG_CONFIG_HOME: string;
127
- export const GITHUB_REF_NAME: string;
128
- export const GITHUB_REPOSITORY: string;
129
- export const npm_lifecycle_script: string;
130
- export const ANDROID_NDK_ROOT: string;
131
- export const GITHUB_ACTION_REF: string;
132
- export const DEBIAN_FRONTEND: string;
133
- export const SHELL: string;
134
- export const GITHUB_REPOSITORY_ID: string;
135
- export const GITHUB_ACTIONS: string;
136
- export const npm_package_version: string;
137
- export const npm_lifecycle_event: string;
138
- export const NODE_PATH: string;
139
- export const GITHUB_REF_PROTECTED: string;
140
- export const GITHUB_WORKSPACE: string;
141
- export const ACCEPT_EULA: string;
142
- export const GITHUB_JOB: string;
143
- export const GITHUB_SHA: string;
144
- export const GITHUB_RUN_ATTEMPT: string;
145
- export const ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: string;
146
- export const GITHUB_REF: string;
147
- export const GITHUB_ACTOR: string;
148
- export const ANDROID_SDK_ROOT: string;
149
- export const GITHUB_PATH: string;
150
- export const JAVA_HOME: string;
151
- export const PWD: string;
152
- export const GITHUB_ACTOR_ID: string;
153
- export const RUNNER_WORKSPACE: string;
154
- export const npm_execpath: string;
155
- export const RELEASE_SHA: string;
156
- export const HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: string;
157
- export const GITHUB_EVENT_NAME: string;
158
- export const HOMEBREW_NO_AUTO_UPDATE: string;
159
- export const ANDROID_HOME: string;
160
- export const GITHUB_SERVER_URL: string;
161
- export const GECKOWEBDRIVER: string;
162
- export const ACTIONS_ID_TOKEN_REQUEST_URL: string;
163
- export const GHCUP_INSTALL_BASE_PREFIX: string;
164
- export const GITHUB_OUTPUT: string;
165
- export const EDGEWEBDRIVER: string;
166
- export const npm_command: string;
167
- export const PNPM_SCRIPT_SRC_DIR: string;
168
- export const ANDROID_NDK: string;
169
- export const GITHUB_ARTIFACTS_LIST: string;
170
- export const SGX_AESM_ADDR: string;
171
- export const PSModulePath: string;
172
- export const CHROME_BIN: string;
173
- export const SELENIUM_JAR_PATH: string;
174
- export const MEMORY_PRESSURE_WRITE: string;
175
- export const PNPM_HOME: string;
176
- export const ANDROID_NDK_HOME: string;
177
- export const GITHUB_STEP_SUMMARY: string;
178
- export const INIT_CWD: string;
179
- export const NODE_ENV: string;
180
- }
181
-
182
- /**
183
- * This module provides access to environment variables that are injected _statically_ into your bundle at build time and are _publicly_ accessible.
184
- *
185
- * | | Runtime | Build time |
186
- * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
187
- * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
188
- * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
189
- *
190
- * Static environment variables are [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env` at build time and then statically injected into your bundle at build time, enabling optimisations like dead code elimination.
191
- *
192
- * **_Public_ access:**
193
- *
194
- * - This module _can_ be imported into client-side code
195
- * - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
196
- *
197
- * For example, given the following build time environment:
198
- *
199
- * ```env
200
- * ENVIRONMENT=production
201
- * PUBLIC_BASE_URL=http://site.com
202
- * ```
203
- *
204
- * With the default `publicPrefix` and `privatePrefix`:
205
- *
206
- * ```ts
207
- * import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/public';
208
- *
209
- * console.log(ENVIRONMENT); // => throws error during build
210
- * console.log(PUBLIC_BASE_URL); // => "http://site.com"
211
- * ```
212
- *
213
- * The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values.
214
- */
215
- declare module '$env/static/public' {
216
-
217
- }
218
-
219
- /**
220
- * This module provides access to environment variables set _dynamically_ at runtime and that are limited to _private_ access.
221
- *
222
- * | | Runtime | Build time |
223
- * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
224
- * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
225
- * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
226
- *
227
- * Dynamic environment variables are defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`.
228
- *
229
- * **_Private_ access:**
230
- *
231
- * - This module cannot be imported into client-side code
232
- * - This module includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured)
233
- *
234
- * > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
235
- *
236
- * > [!NOTE] To get correct types, environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
237
- * >
238
- * > ```env
239
- * > MY_FEATURE_FLAG=
240
- * > ```
241
- * >
242
- * > You can override `.env` values from the command line like so:
243
- * >
244
- * > ```sh
245
- * > MY_FEATURE_FLAG="enabled" npm run dev
246
- * > ```
247
- *
248
- * For example, given the following runtime environment:
249
- *
250
- * ```env
251
- * ENVIRONMENT=production
252
- * PUBLIC_BASE_URL=http://site.com
253
- * ```
254
- *
255
- * With the default `publicPrefix` and `privatePrefix`:
256
- *
257
- * ```ts
258
- * import { env } from '$env/dynamic/private';
259
- *
260
- * console.log(env.ENVIRONMENT); // => "production"
261
- * console.log(env.PUBLIC_BASE_URL); // => undefined
262
- * ```
263
- */
264
- declare module '$env/dynamic/private' {
265
- export const env: {
266
- GITHUB_STATE: string;
267
- DOTNET_NOLOGO: string;
268
- USER: string;
269
- npm_config_user_agent: string;
270
- CI: string;
271
- USE_BAZEL_FALLBACK_VERSION: string;
272
- RUNNER_ENVIRONMENT: string;
273
- GITHUB_ENV: string;
274
- PIPX_HOME: string;
275
- npm_node_execpath: string;
276
- JAVA_HOME_8_X64: string;
277
- SHLVL: string;
278
- HCA_CLOUD_PROVIDER: string;
279
- HOME: string;
280
- RUNNER_TEMP: string;
281
- GITHUB_EVENT_PATH: string;
282
- npm_package_json: string;
283
- JAVA_HOME_11_X64: string;
284
- PIPX_BIN_DIR: string;
285
- GITHUB_REPOSITORY_OWNER: string;
286
- GRADLE_HOME: string;
287
- ANDROID_NDK_LATEST_HOME: string;
288
- JAVA_HOME_21_X64: string;
289
- GITHUB_RETENTION_DAYS: string;
290
- GITHUB_REPOSITORY_OWNER_ID: string;
291
- POWERSHELL_DISTRIBUTION_CHANNEL: string;
292
- AZURE_EXTENSION_DIR: string;
293
- GITHUB_HEAD_REF: string;
294
- SYSTEMD_EXEC_PID: string;
295
- ACTIONS_ORCHESTRATION_ID: string;
296
- GITHUB_GRAPHQL_URL: string;
297
- JAVA_HOME_25_X64: string;
298
- NVM_DIR: string;
299
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: string;
300
- JAVA_HOME_17_X64: string;
301
- ImageVersion: string;
302
- LOGNAME: string;
303
- RUNNER_OS: string;
304
- GITHUB_API_URL: string;
305
- GITHUB_ARTIFACTS: string;
306
- SWIFT_PATH: string;
307
- pnpm_config_verify_deps_before_run: string;
308
- CHROMEWEBDRIVER: string;
309
- JOURNAL_STREAM: string;
310
- GITHUB_WORKFLOW: string;
311
- _: string;
312
- MEMORY_PRESSURE_WATCH: string;
313
- GOROOT_1_24_X64: string;
314
- ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: string;
315
- GOROOT_1_25_X64: string;
316
- GITHUB_RUN_ID: string;
317
- GITHUB_REF_TYPE: string;
318
- BOOTSTRAP_HASKELL_NONINTERACTIVE: string;
319
- GITHUB_WORKFLOW_SHA: string;
320
- GOROOT_1_26_X64: string;
321
- GITHUB_BASE_REF: string;
322
- ImageOS: string;
323
- GITHUB_WORKFLOW_REF: string;
324
- ACTIONS_ID_TOKEN_REQUEST_TOKEN: string;
325
- GITHUB_ACTION_REPOSITORY: string;
326
- ENABLE_RUNNER_TRACING: string;
327
- npm_config_node_gyp: string;
328
- PATH: string;
329
- ANT_HOME: string;
330
- DOTNET_MULTILEVEL_LOOKUP: string;
331
- RUNNER_TRACKING_ID: string;
332
- INVOCATION_ID: string;
333
- RUNNER_TOOL_CACHE: string;
334
- npm_package_name: string;
335
- NODE: string;
336
- GITHUB_ACTION: string;
337
- GITHUB_RUN_NUMBER: string;
338
- GITHUB_TRIGGERING_ACTOR: string;
339
- RUNNER_ARCH: string;
340
- XDG_RUNTIME_DIR: string;
341
- AGENT_TOOLSDIRECTORY: string;
342
- LANG: string;
343
- VCPKG_INSTALLATION_ROOT: string;
344
- CONDA: string;
345
- RUNNER_NAME: string;
346
- XDG_CONFIG_HOME: string;
347
- GITHUB_REF_NAME: string;
348
- GITHUB_REPOSITORY: string;
349
- npm_lifecycle_script: string;
350
- ANDROID_NDK_ROOT: string;
351
- GITHUB_ACTION_REF: string;
352
- DEBIAN_FRONTEND: string;
353
- SHELL: string;
354
- GITHUB_REPOSITORY_ID: string;
355
- GITHUB_ACTIONS: string;
356
- npm_package_version: string;
357
- npm_lifecycle_event: string;
358
- NODE_PATH: string;
359
- GITHUB_REF_PROTECTED: string;
360
- GITHUB_WORKSPACE: string;
361
- ACCEPT_EULA: string;
362
- GITHUB_JOB: string;
363
- GITHUB_SHA: string;
364
- GITHUB_RUN_ATTEMPT: string;
365
- ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: string;
366
- GITHUB_REF: string;
367
- GITHUB_ACTOR: string;
368
- ANDROID_SDK_ROOT: string;
369
- GITHUB_PATH: string;
370
- JAVA_HOME: string;
371
- PWD: string;
372
- GITHUB_ACTOR_ID: string;
373
- RUNNER_WORKSPACE: string;
374
- npm_execpath: string;
375
- RELEASE_SHA: string;
376
- HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: string;
377
- GITHUB_EVENT_NAME: string;
378
- HOMEBREW_NO_AUTO_UPDATE: string;
379
- ANDROID_HOME: string;
380
- GITHUB_SERVER_URL: string;
381
- GECKOWEBDRIVER: string;
382
- ACTIONS_ID_TOKEN_REQUEST_URL: string;
383
- GHCUP_INSTALL_BASE_PREFIX: string;
384
- GITHUB_OUTPUT: string;
385
- EDGEWEBDRIVER: string;
386
- npm_command: string;
387
- PNPM_SCRIPT_SRC_DIR: string;
388
- ANDROID_NDK: string;
389
- GITHUB_ARTIFACTS_LIST: string;
390
- SGX_AESM_ADDR: string;
391
- PSModulePath: string;
392
- CHROME_BIN: string;
393
- SELENIUM_JAR_PATH: string;
394
- MEMORY_PRESSURE_WRITE: string;
395
- PNPM_HOME: string;
396
- ANDROID_NDK_HOME: string;
397
- GITHUB_STEP_SUMMARY: string;
398
- INIT_CWD: string;
399
- NODE_ENV: string;
400
- [key: `PUBLIC_${string}`]: undefined;
401
- [key: `${string}`]: string | undefined;
402
- }
403
- }
404
-
405
- /**
406
- * This module provides access to environment variables set _dynamically_ at runtime and that are _publicly_ accessible.
407
- *
408
- * | | Runtime | Build time |
409
- * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
410
- * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
411
- * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
412
- *
413
- * Dynamic environment variables are defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`.
414
- *
415
- * **_Public_ access:**
416
- *
417
- * - This module _can_ be imported into client-side code
418
- * - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
419
- *
420
- * > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
421
- *
422
- * > [!NOTE] To get correct types, environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
423
- * >
424
- * > ```env
425
- * > MY_FEATURE_FLAG=
426
- * > ```
427
- * >
428
- * > You can override `.env` values from the command line like so:
429
- * >
430
- * > ```sh
431
- * > MY_FEATURE_FLAG="enabled" npm run dev
432
- * > ```
433
- *
434
- * For example, given the following runtime environment:
435
- *
436
- * ```env
437
- * ENVIRONMENT=production
438
- * PUBLIC_BASE_URL=http://example.com
439
- * ```
440
- *
441
- * With the default `publicPrefix` and `privatePrefix`:
442
- *
443
- * ```ts
444
- * import { env } from '$env/dynamic/public';
445
- * console.log(env.ENVIRONMENT); // => undefined, not public
446
- * console.log(env.PUBLIC_BASE_URL); // => "http://example.com"
447
- * ```
448
- *
449
- * ```
450
- *
451
- * ```
452
- */
453
- declare module '$env/dynamic/public' {
454
- export const env: {
455
- [key: `PUBLIC_${string}`]: string | undefined;
456
- }
457
- }
458
-
459
- ```
460
-
461
- ## .svelte-kit/env.d.ts
462
-
463
- ```typescript
464
- // See https://svelte.dev/docs/kit/environment-variables for more information
465
- ```
466
-
467
- ## .svelte-kit/generated/client/app.js
468
-
469
- ```javascript
470
- // in dev, this makes Vite inject its client as this module's first dependency,
471
- // so that global constant replacements are installed before any other module
472
- // (including user hooks) evaluates. In build it's inert.
473
- import.meta.hot;
474
-
475
-
476
-
477
-
478
- export { matchers } from './matchers.js';
479
-
480
- export const nodes = [
481
- () => import('./nodes/0'),
482
- () => import('./nodes/1'),
483
- () => import('./nodes/2')
484
- ];
485
-
486
- export const server_loads = [];
487
-
488
- export const dictionary = {
489
- "/": [2]
490
- };
491
-
492
- export const hooks = {
493
- handleError: (({ error }) => { console.error(error) }),
494
-
495
- reroute: (() => {}),
496
- transport: {}
497
- };
498
-
499
- export const decoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.decode]));
500
- export const encoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.encode]));
501
-
502
- export const hash = false;
503
-
504
- export const decode = (type, value) => decoders[type](value);
505
-
506
- export { default as root } from '../root.js';
507
-
508
- export const get_error_template = () => import('../shared/error-template.js').then(m => m.default);
509
- ```
510
-
511
- ## .svelte-kit/generated/client/matchers.js
512
-
513
- ```javascript
514
- export const matchers = {};
515
- ```
516
-
517
- ## .svelte-kit/generated/client/nodes/0.js
518
-
519
- ```javascript
520
- import * as universal from "../../../../src/routes/+layout.ts";
521
- export { universal };
522
- export { default as component } from "../../../../src/routes/+layout.svelte";
523
- ```
524
-
525
- ## .svelte-kit/generated/client/nodes/1.js
526
-
527
- ```javascript
528
- export { default as component } from "../../../../../../node_modules/.pnpm/@sveltejs+kit@2.70.3_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.0_svelte_26c48ee4bd9841fd149819be187666ea/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte";
529
- ```
530
-
531
- ## .svelte-kit/generated/client/nodes/2.js
532
-
533
- ```javascript
534
- export { default as component } from "../../../../src/routes/+page.svelte";
535
- ```
536
-
537
- ## .svelte-kit/generated/root.js
538
-
539
- ```javascript
540
- import { asClassComponent } from 'svelte/legacy';
541
- import Root from './root.svelte';
542
- export default asClassComponent(Root);
543
- ```
544
-
545
- ## .svelte-kit/generated/server/internal.js
546
-
547
- ```javascript
548
-
549
- import root from '../root.js';
550
- import { set_building, set_prerendering } from '$app/env/internal';
551
- import { set_assets } from '$app/paths/internal/server';
552
- import { set_manifest, set_read_implementation } from '__sveltekit/server';
553
- import { set_private_env, set_public_env } from '../../../../../node_modules/.pnpm/@sveltejs+kit@2.70.3_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.3.0_svelte_26c48ee4bd9841fd149819be187666ea/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
554
- import error from '../shared/error-template.js';
555
-
556
- export const options = {
557
- app_template_contains_nonce: false,
558
- async: false,
559
- csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
560
- csrf_check_origin: true,
561
- csrf_trusted_origins: [],
562
- embedded: false,
563
- env_public_prefix: 'PUBLIC_',
564
- env_private_prefix: '',
565
- hash_routing: false,
566
- hooks: null, // added lazily, via `get_hooks`
567
- preload_strategy: "modulepreload",
568
- root,
569
- service_worker: false,
570
- service_worker_options: undefined,
571
- server_error_boundaries: false,
572
- templates: {
573
- app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>assistant-ui × SvelteKit</title>\n " + head + "\n </head>\n <body>\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
574
- error
575
- },
576
- version_hash: "13eazmc"
577
- };
578
-
579
- export async function get_hooks() {
580
- let handle;
581
- let handleFetch;
582
- let handleError;
583
- let handleValidationError;
584
- let init;
585
-
586
-
587
- let reroute;
588
- let transport;
589
-
590
-
591
- return {
592
- handle,
593
- handleFetch,
594
- handleError,
595
- handleValidationError,
596
- init,
597
- reroute,
598
- transport
599
- };
600
- }
601
-
602
- export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation };
603
-
604
- ```
605
-
606
- ## .svelte-kit/generated/shared/error-template.js
607
-
608
- ```javascript
609
- export default ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n";
610
- ```
611
-
612
- ## .svelte-kit/non-ambient.d.ts
613
-
614
- ```typescript
615
-
616
- // this file is generated — do not edit it
617
-
618
-
619
- declare module "svelte/elements" {
620
- export interface HTMLAttributes<T> {
621
- 'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
622
- 'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
623
- 'data-sveltekit-preload-code'?:
624
- | true
625
- | ''
626
- | 'eager'
627
- | 'viewport'
628
- | 'hover'
629
- | 'tap'
630
- | 'off'
631
- | undefined
632
- | null;
633
- 'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;
634
- 'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
635
- 'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
636
- }
637
- }
638
-
639
- export {};
640
-
641
-
642
- declare module "$app/types" {
643
- type MatcherParam<M> = M extends (param : string) => param is (infer U extends string) ? U : string;
644
-
645
- export interface AppTypes {
646
- RouteId(): "/" | "/api" | "/api/chat";
647
- RouteParams(): {
648
-
649
- };
650
- LayoutParams(): {
651
- "/": Record<string, never>;
652
- "/api": Record<string, never>;
653
- "/api/chat": Record<string, never>
654
- };
655
- Pathname(): "/" | "/api/chat";
656
- ResolvedPathname(): `${"" | `/${string}`}${ReturnType<AppTypes['Pathname']>}`;
657
- Asset(): string & {};
658
- }
659
- }
660
- ```
661
-
662
- ## .svelte-kit/tsconfig.json
663
-
664
- ```json
665
- {
666
- "compilerOptions": {
667
- "paths": {
668
- "$lib": [
669
- "../src/lib"
670
- ],
671
- "$lib/*": [
672
- "../src/lib/*"
673
- ],
674
- "$app/types": [
675
- "./types/index.d.ts"
676
- ]
677
- },
678
- "rootDirs": [
679
- "..",
680
- "./types"
681
- ],
682
- "verbatimModuleSyntax": true,
683
- "isolatedModules": true,
684
- "lib": [
685
- "esnext",
686
- "DOM",
687
- "DOM.Iterable"
688
- ],
689
- "moduleResolution": "bundler",
690
- "module": "esnext",
691
- "noEmit": true,
692
- "target": "esnext"
693
- },
694
- "include": [
695
- "ambient.d.ts",
696
- "env.d.ts",
697
- "non-ambient.d.ts",
698
- "./types/**/$types.d.ts",
699
- "../vite.config.js",
700
- "../vite.config.ts",
701
- "../src/**/*.js",
702
- "../src/**/*.ts",
703
- "../src/**/*.svelte",
704
- "../test/**/*.js",
705
- "../test/**/*.ts",
706
- "../test/**/*.svelte",
707
- "../tests/**/*.js",
708
- "../tests/**/*.ts",
709
- "../tests/**/*.svelte"
710
- ],
711
- "exclude": [
712
- "../node_modules/**",
713
- "../src/service-worker.js",
714
- "../src/service-worker/**/*.js",
715
- "../src/service-worker.ts",
716
- "../src/service-worker/**/*.ts",
717
- "../src/service-worker.d.ts",
718
- "../src/service-worker/**/*.d.ts"
719
- ]
720
- }
721
- ```
722
-
723
- ## .svelte-kit/types/route_meta_data.json
724
-
725
- ```json
726
- {
727
- "/": [
728
- "src/routes/+layout.ts",
729
- "src/routes/+layout.ts"
730
- ],
731
- "/api/chat": [
732
- "src/routes/api/chat/+server.ts"
733
- ]
734
- }
735
- ```
736
-
737
- ## .svelte-kit/types/src/routes/$types.d.ts
738
-
739
- ```typescript
740
- import type * as Kit from '@sveltejs/kit';
741
-
742
- type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
743
- type MatcherParam<M> = M extends (param : string) => param is (infer U extends string) ? U : string;
744
- type RouteParams = { };
745
- type RouteId = '/';
746
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
747
- export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
748
- type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
749
- type EnsureDefined<T> = T extends null | undefined ? {} : T;
750
- type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;
751
- export type Snapshot<T = any> = Kit.Snapshot<T>;
752
- type PageParentData = EnsureDefined<LayoutData>;
753
- type LayoutRouteId = RouteId | "/" | null
754
- type LayoutParams = RouteParams & { }
755
- type LayoutParentData = EnsureDefined<{}>;
756
-
757
- export type PageServerData = null;
758
- export type PageData = Expand<PageParentData>;
759
- export type PageProps = { params: RouteParams; data: PageData }
760
- export type LayoutServerData = null;
761
- export type LayoutLoad<OutputData extends OutputDataShape<LayoutParentData> = OutputDataShape<LayoutParentData>> = Kit.Load<LayoutParams, LayoutServerData, LayoutParentData, OutputData, LayoutRouteId>;
762
- export type LayoutLoadEvent = Parameters<LayoutLoad>[0];
763
- export type LayoutData = Expand<Omit<LayoutParentData, keyof unknown> & OptionalUnion<EnsureDefined<unknown>>>;
764
- export type LayoutProps = { params: LayoutParams; data: LayoutData; children: import("svelte").Snippet }
765
- ```
766
-
767
- ## .svelte-kit/types/src/routes/api/chat/$types.d.ts
768
-
769
- ```typescript
770
- import type * as Kit from '@sveltejs/kit';
771
-
772
- type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
773
- type MatcherParam<M> = M extends (param : string) => param is (infer U extends string) ? U : string;
774
- type RouteParams = { };
775
- type RouteId = '/api/chat';
776
-
777
- export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
778
- export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
779
- ```
780
-
781
- ## package.json
782
-
783
- ```json
784
- {
785
- "name": "with-sveltekit",
786
- "version": "0.0.0",
787
- "private": true,
788
- "type": "module",
789
- "scripts": {
790
- "prepare": "svelte-kit sync",
791
- "dev": "vite dev --port 3000",
792
- "build": "vite build",
793
- "preview": "vite preview"
794
- },
795
- "dependencies": {
796
- "@ai-sdk/openai": "^4.0.46",
797
- "@assistant-ui/ai-sdk": "workspace:*",
798
- "@assistant-ui/core": "workspace:*",
799
- "@assistant-ui/store": "workspace:*",
800
- "@assistant-ui/svelte": "workspace:*",
801
- "@assistant-ui/tap": "workspace:*",
802
- "@lucide/svelte": "^1.33.0",
803
- "ai": "^7.0.77",
804
- "react": "^19.2.8",
805
- "svelte": "^5.56.10"
806
- },
807
- "devDependencies": {
808
- "@sveltejs/adapter-auto": "^7.0.1",
809
- "@sveltejs/kit": "^2.70.3",
810
- "@sveltejs/vite-plugin-svelte": "^7.3.0",
811
- "@tailwindcss/vite": "^4.3.3",
812
- "@types/react": "^19.2.18",
813
- "tailwindcss": "^4.3.3",
814
- "typescript": "^7.0.2",
815
- "vite": "^8.2.2"
816
- }
817
- }
818
-
819
- ```
820
-
821
- ## README.md
822
-
823
- ```markdown
824
- # SvelteKit Example
825
-
826
- assistant-ui in a SvelteKit app: `@assistant-ui/svelte` builders on the client, streaming from a SvelteKit server route via the AI SDK.
827
-
828
- ## How it works
829
-
830
- - `src/routes/+page.svelte` wires the thread with `AISDKChat()` from `@assistant-ui/ai-sdk`: the AI SDK chat runs as the `threads` scope of the assistant client, no React host required. Edit, reload, and branch switching come with it.
831
- - `src/routes/api/chat/+server.ts` runs `streamText` over `convertToModelMessages` and returns the AI SDK UI message stream, exactly like the Next.js templates; the default `AssistantChatTransport` posts the `UIMessage` array to `/api/chat`.
832
- - `src/routes/+layout.ts` disables SSR. `provideAui` creates the runtime client in component init, so rendering on the server would build a throwaway runtime per request for a page that is entirely client-driven.
833
- - React is a small runtime dependency of the AI SDK integration: `@assistant-ui/tap` installs its hook dispatcher while the chat resource renders, so `useChat`'s React hook calls route to tap and React never renders anything.
834
- - Messages render as plain text. `@assistant-ui/svelte` has no markdown renderer yet.
835
-
836
- ## Run
837
-
838
- ```sh
839
- cp .env.example .env # set OPENAI_API_KEY
840
- pnpm install
841
- pnpm dev
842
- ```
843
-
844
- `pnpm install` runs `svelte-kit sync`, which generates the `.svelte-kit/` directory that `tsconfig.json` extends.
845
-
846
- ```
847
-
848
- ## src/app.css
849
-
850
- ```css
851
- @import "tailwindcss";
852
-
853
- @custom-variant dark (&:is(.dark *));
854
-
855
- @theme inline {
856
- --radius-sm: calc(var(--radius) - 4px);
857
- --radius-md: calc(var(--radius) - 2px);
858
- --radius-lg: var(--radius);
859
- --radius-xl: calc(var(--radius) + 4px);
860
- --color-background: var(--background);
861
- --color-foreground: var(--foreground);
862
- --color-card: var(--card);
863
- --color-card-foreground: var(--card-foreground);
864
- --color-popover: var(--popover);
865
- --color-popover-foreground: var(--popover-foreground);
866
- --color-primary: var(--primary);
867
- --color-primary-foreground: var(--primary-foreground);
868
- --color-secondary: var(--secondary);
869
- --color-secondary-foreground: var(--secondary-foreground);
870
- --color-muted: var(--muted);
871
- --color-muted-foreground: var(--muted-foreground);
872
- --color-accent: var(--accent);
873
- --color-accent-foreground: var(--accent-foreground);
874
- --color-destructive: var(--destructive);
875
- --color-border: var(--border);
876
- --color-input: var(--input);
877
- --color-ring: var(--ring);
878
- --color-chart-1: var(--chart-1);
879
- --color-chart-2: var(--chart-2);
880
- --color-chart-3: var(--chart-3);
881
- --color-chart-4: var(--chart-4);
882
- --color-chart-5: var(--chart-5);
883
- --color-sidebar: var(--sidebar);
884
- --color-sidebar-foreground: var(--sidebar-foreground);
885
- --color-sidebar-primary: var(--sidebar-primary);
886
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
887
- --color-sidebar-accent: var(--sidebar-accent);
888
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
889
- --color-sidebar-border: var(--sidebar-border);
890
- --color-sidebar-ring: var(--sidebar-ring);
891
- }
892
-
893
- :root {
894
- --radius: 0.625rem;
895
- --background: oklch(1 0 0);
896
- --foreground: oklch(0.141 0.005 285.823);
897
- --card: oklch(1 0 0);
898
- --card-foreground: oklch(0.141 0.005 285.823);
899
- --popover: oklch(1 0 0);
900
- --popover-foreground: oklch(0.141 0.005 285.823);
901
- --primary: oklch(0.21 0.006 285.885);
902
- --primary-foreground: oklch(0.985 0 0);
903
- --secondary: oklch(0.967 0.001 286.375);
904
- --secondary-foreground: oklch(0.21 0.006 285.885);
905
- --muted: oklch(0.967 0.001 286.375);
906
- --muted-foreground: oklch(0.552 0.016 285.938);
907
- --accent: oklch(0.967 0.001 286.375);
908
- --accent-foreground: oklch(0.21 0.006 285.885);
909
- --destructive: oklch(0.577 0.245 27.325);
910
- --border: oklch(0.92 0.004 286.32);
911
- --input: oklch(0.92 0.004 286.32);
912
- --ring: oklch(0.705 0.015 286.067);
913
- --chart-1: oklch(0.646 0.222 41.116);
914
- --chart-2: oklch(0.6 0.118 184.704);
915
- --chart-3: oklch(0.398 0.07 227.392);
916
- --chart-4: oklch(0.828 0.189 84.429);
917
- --chart-5: oklch(0.769 0.188 70.08);
918
- --sidebar: oklch(0.985 0 0);
919
- --sidebar-foreground: oklch(0.141 0.005 285.823);
920
- --sidebar-primary: oklch(0.21 0.006 285.885);
921
- --sidebar-primary-foreground: oklch(0.985 0 0);
922
- --sidebar-accent: oklch(0.967 0.001 286.375);
923
- --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
924
- --sidebar-border: oklch(0.92 0.004 286.32);
925
- --sidebar-ring: oklch(0.705 0.015 286.067);
926
- }
927
-
928
- .dark {
929
- --background: oklch(0.141 0.005 285.823);
930
- --foreground: oklch(0.985 0 0);
931
- --card: oklch(0.21 0.006 285.885);
932
- --card-foreground: oklch(0.985 0 0);
933
- --popover: oklch(0.21 0.006 285.885);
934
- --popover-foreground: oklch(0.985 0 0);
935
- --primary: oklch(0.92 0.004 286.32);
936
- --primary-foreground: oklch(0.21 0.006 285.885);
937
- --secondary: oklch(0.274 0.006 286.033);
938
- --secondary-foreground: oklch(0.985 0 0);
939
- --muted: oklch(0.274 0.006 286.033);
940
- --muted-foreground: oklch(0.705 0.015 286.067);
941
- --accent: oklch(0.274 0.006 286.033);
942
- --accent-foreground: oklch(0.985 0 0);
943
- --destructive: oklch(0.704 0.191 22.216);
944
- --border: oklch(1 0 0 / 10%);
945
- --input: oklch(1 0 0 / 15%);
946
- --ring: oklch(0.552 0.016 285.938);
947
- --chart-1: oklch(0.488 0.243 264.376);
948
- --chart-2: oklch(0.696 0.17 162.48);
949
- --chart-3: oklch(0.769 0.188 70.08);
950
- --chart-4: oklch(0.627 0.265 303.9);
951
- --chart-5: oklch(0.645 0.246 16.439);
952
- --sidebar: oklch(0.21 0.006 285.885);
953
- --sidebar-foreground: oklch(0.985 0 0);
954
- --sidebar-primary: oklch(0.488 0.243 264.376);
955
- --sidebar-primary-foreground: oklch(0.985 0 0);
956
- --sidebar-accent: oklch(0.274 0.006 286.033);
957
- --sidebar-accent-foreground: oklch(0.985 0 0);
958
- --sidebar-border: oklch(1 0 0 / 10%);
959
- --sidebar-ring: oklch(0.552 0.016 285.938);
960
- }
961
-
962
- @layer base {
963
- * {
964
- @apply border-border outline-ring/50;
965
- }
966
- body {
967
- @apply bg-background text-foreground;
968
- }
969
- }
970
-
971
- html,
972
- body {
973
- height: 100%;
974
- }
975
-
976
- ```
977
-
978
- ## src/routes/+layout.ts
979
-
980
- ```typescript
981
- export const ssr = false;
982
-
983
- ```
984
-
985
- ## src/routes/api/chat/+server.ts
986
-
987
- ```typescript
988
- import { createOpenAI } from "@ai-sdk/openai";
989
- import { convertToModelMessages, streamText, type UIMessage } from "ai";
990
- import { env } from "$env/dynamic/private";
991
- import type { RequestHandler } from "./$types";
992
-
993
- export const POST: RequestHandler = async ({ request }) => {
994
- const { messages, system } = (await request.json()) as {
995
- messages: UIMessage[];
996
- system?: string;
997
- };
998
-
999
- const openai = createOpenAI({ apiKey: env.OPENAI_API_KEY });
1000
- const result = streamText({
1001
- model: openai("gpt-5.6-luna"),
1002
- messages: await convertToModelMessages(messages),
1003
- system,
1004
- });
1005
-
1006
- return result.toUIMessageStreamResponse({
1007
- onError: (error) =>
1008
- error instanceof Error ? error.message : String(error),
1009
- });
1010
- };
1011
-
1012
- ```
1013
-
1014
- ## svelte.config.js
1015
-
1016
- ```javascript
1017
- import adapter from "@sveltejs/adapter-auto";
1018
- import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
1019
-
1020
- export default {
1021
- preprocess: vitePreprocess(),
1022
- kit: {
1023
- adapter: adapter(),
1024
- },
1025
- };
1026
-
1027
- ```
1028
-
1029
- ## tsconfig.json
1030
-
1031
- ```json
1032
- {
1033
- "extends": "./.svelte-kit/tsconfig.json",
1034
- "compilerOptions": {
1035
- "allowJs": true,
1036
- "checkJs": true,
1037
- "esModuleInterop": true,
1038
- "forceConsistentCasingInFileNames": true,
1039
- "resolveJsonModule": true,
1040
- "skipLibCheck": true,
1041
- "sourceMap": true,
1042
- "strict": true,
1043
- "moduleResolution": "bundler"
1044
- }
1045
- }
1046
-
1047
- ```
1048
-
1049
- ## vite.config.ts
1050
-
1051
- ```typescript
1052
- import { sveltekit } from "@sveltejs/kit/vite";
1053
- import tailwindcss from "@tailwindcss/vite";
1054
- import { defineConfig } from "vite";
1055
-
1056
- export default defineConfig({
1057
- plugins: [sveltekit(), tailwindcss()],
1058
- });
1059
-
1060
- ```
1061
-