@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
@@ -0,0 +1,1061 @@
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
+