Spaces:
Sleeping
Sleeping
add svelte-kit
Browse files- .svelte-kit/ambient.d.ts +350 -0
- .svelte-kit/generated/client/app.js +35 -0
- .svelte-kit/generated/client/matchers.js +1 -0
- .svelte-kit/generated/client/nodes/0.js +1 -0
- .svelte-kit/generated/client/nodes/1.js +1 -0
- .svelte-kit/generated/client/nodes/10.js +0 -0
- .svelte-kit/generated/client/nodes/2.js +1 -0
- .svelte-kit/generated/client/nodes/3.js +1 -0
- .svelte-kit/generated/client/nodes/4.js +0 -0
- .svelte-kit/generated/client/nodes/5.js +0 -0
- .svelte-kit/generated/client/nodes/6.js +0 -0
- .svelte-kit/generated/client/nodes/7.js +0 -0
- .svelte-kit/generated/client/nodes/8.js +1 -0
- .svelte-kit/generated/client/nodes/9.js +1 -0
- .svelte-kit/generated/root.svelte +56 -0
- .svelte-kit/generated/server/internal.js +30 -0
- .svelte-kit/tsconfig.json +45 -0
- .svelte-kit/types/route_meta_data.json +68 -0
- .svelte-kit/types/src/routes/$types.d.ts +24 -0
- .svelte-kit/types/src/routes/admin/export/$types.d.ts +8 -0
- .svelte-kit/types/src/routes/conversation/$types.d.ts +8 -0
- .svelte-kit/types/src/routes/conversation/[id]/$types.d.ts +24 -0
- .svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/prompt/$types.d.ts +9 -0
- .svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/vote/$types.d.ts +9 -0
- .svelte-kit/types/src/routes/conversation/[id]/share/$types.d.ts +9 -0
- .svelte-kit/types/src/routes/conversation/[id]/stop-generating/$types.d.ts +9 -0
- .svelte-kit/types/src/routes/conversation/[id]/summarize/$types.d.ts +9 -0
- .svelte-kit/types/src/routes/conversation/[id]/web-search/$types.d.ts +9 -0
- .svelte-kit/types/src/routes/conversations/$types.d.ts +28 -0
- .svelte-kit/types/src/routes/login/$types.d.ts +28 -0
- .svelte-kit/types/src/routes/login/callback/$types.d.ts +22 -0
- .svelte-kit/types/src/routes/logout/$types.d.ts +28 -0
- .svelte-kit/types/src/routes/privacy/$types.d.ts +15 -0
- .svelte-kit/types/src/routes/proxy+layout.server.ts +66 -0
- .svelte-kit/types/src/routes/r/[id]/$types.d.ts +23 -0
- .svelte-kit/types/src/routes/r/[id]/message/[messageId]/prompt/$types.d.ts +9 -0
- .svelte-kit/types/src/routes/r/[id]/proxy+page.server.ts +35 -0
- .svelte-kit/types/src/routes/search/[id]/$types.d.ts +9 -0
- .svelte-kit/types/src/routes/settings/$types.d.ts +28 -0
.svelte-kit/ambient.d.ts
ADDED
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
// this file is generated — do not edit it
|
3 |
+
|
4 |
+
|
5 |
+
/// <reference types="@sveltejs/kit" />
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
|
9 |
+
*
|
10 |
+
* _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
11 |
+
*
|
12 |
+
* ```ts
|
13 |
+
* import { API_KEY } from '$env/static/private';
|
14 |
+
* ```
|
15 |
+
*
|
16 |
+
* Note that all 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:
|
17 |
+
*
|
18 |
+
* ```
|
19 |
+
* MY_FEATURE_FLAG=""
|
20 |
+
* ```
|
21 |
+
*
|
22 |
+
* You can override `.env` values from the command line like so:
|
23 |
+
*
|
24 |
+
* ```bash
|
25 |
+
* MY_FEATURE_FLAG="enabled" npm run dev
|
26 |
+
* ```
|
27 |
+
*/
|
28 |
+
declare module '$env/static/private' {
|
29 |
+
export const MONGODB_URL: string;
|
30 |
+
export const MONGODB_DB_NAME: string;
|
31 |
+
export const MONGODB_DIRECT_CONNECTION: string;
|
32 |
+
export const COOKIE_NAME: string;
|
33 |
+
export const HF_ACCESS_TOKEN: string;
|
34 |
+
export const HF_API_ROOT: string;
|
35 |
+
export const SERPER_API_KEY: string;
|
36 |
+
export const SERPAPI_KEY: string;
|
37 |
+
export const OPENID_CLIENT_ID: string;
|
38 |
+
export const OPENID_CLIENT_SECRET: string;
|
39 |
+
export const OPENID_SCOPES: string;
|
40 |
+
export const OPENID_PROVIDER_URL: string;
|
41 |
+
export const USE_CLIENT_CERTIFICATE: string;
|
42 |
+
export const CERT_PATH: string;
|
43 |
+
export const KEY_PATH: string;
|
44 |
+
export const CA_PATH: string;
|
45 |
+
export const CLIENT_KEY_PASSWORD: string;
|
46 |
+
export const REJECT_UNAUTHORIZED: string;
|
47 |
+
export const MODELS: string;
|
48 |
+
export const OLD_MODELS: string;
|
49 |
+
export const PARQUET_EXPORT_DATASET: string;
|
50 |
+
export const PARQUET_EXPORT_HF_TOKEN: string;
|
51 |
+
export const PARQUET_EXPORT_SECRET: string;
|
52 |
+
export const RATE_LIMIT: string;
|
53 |
+
export const MESSAGES_BEFORE_LOGIN: string;
|
54 |
+
export const LESSOPEN: string;
|
55 |
+
export const LANGUAGE: string;
|
56 |
+
export const USER: string;
|
57 |
+
export const npm_config_user_agent: string;
|
58 |
+
export const XDG_SEAT: string;
|
59 |
+
export const XDG_SESSION_TYPE: string;
|
60 |
+
export const GIT_ASKPASS: string;
|
61 |
+
export const npm_node_execpath: string;
|
62 |
+
export const SHLVL: string;
|
63 |
+
export const npm_config_noproxy: string;
|
64 |
+
export const HOME: string;
|
65 |
+
export const CHROME_DESKTOP: string;
|
66 |
+
export const OLDPWD: string;
|
67 |
+
export const TERM_PROGRAM_VERSION: string;
|
68 |
+
export const DESKTOP_SESSION: string;
|
69 |
+
export const NVM_BIN: string;
|
70 |
+
export const npm_package_json: string;
|
71 |
+
export const NVM_INC: string;
|
72 |
+
export const HOMEBREW_PREFIX: string;
|
73 |
+
export const GTK_MODULES: string;
|
74 |
+
export const XDG_SEAT_PATH: string;
|
75 |
+
export const VSCODE_GIT_ASKPASS_MAIN: string;
|
76 |
+
export const LC_MONETARY: string;
|
77 |
+
export const VSCODE_GIT_ASKPASS_NODE: string;
|
78 |
+
export const npm_config_userconfig: string;
|
79 |
+
export const npm_config_local_prefix: string;
|
80 |
+
export const CINNAMON_VERSION: string;
|
81 |
+
export const DBUS_SESSION_BUS_ADDRESS: string;
|
82 |
+
export const npm_config_engine_strict: string;
|
83 |
+
export const COLORTERM: string;
|
84 |
+
export const COLOR: string;
|
85 |
+
export const NVM_DIR: string;
|
86 |
+
export const npm_config_metrics_registry: string;
|
87 |
+
export const QT_QPA_PLATFORMTHEME: string;
|
88 |
+
export const INFOPATH: string;
|
89 |
+
export const LOGNAME: string;
|
90 |
+
export const _: string;
|
91 |
+
export const npm_config_prefix: string;
|
92 |
+
export const XDG_SESSION_CLASS: string;
|
93 |
+
export const TERM: string;
|
94 |
+
export const GTK_OVERLAY_SCROLLING: string;
|
95 |
+
export const XDG_SESSION_ID: string;
|
96 |
+
export const npm_config_cache: string;
|
97 |
+
export const GNOME_DESKTOP_SESSION_ID: string;
|
98 |
+
export const npm_config_node_gyp: string;
|
99 |
+
export const PATH: string;
|
100 |
+
export const SESSION_MANAGER: string;
|
101 |
+
export const GDM_LANG: string;
|
102 |
+
export const HOMEBREW_CELLAR: string;
|
103 |
+
export const GTK3_MODULES: string;
|
104 |
+
export const NODE: string;
|
105 |
+
export const npm_package_name: string;
|
106 |
+
export const XDG_SESSION_PATH: string;
|
107 |
+
export const LC_ADDRESS: string;
|
108 |
+
export const GNOME_TERMINAL_SCREEN: string;
|
109 |
+
export const XDG_RUNTIME_DIR: string;
|
110 |
+
export const GDK_BACKEND: string;
|
111 |
+
export const DISPLAY: string;
|
112 |
+
export const LANG: string;
|
113 |
+
export const XDG_CURRENT_DESKTOP: string;
|
114 |
+
export const LC_TELEPHONE: string;
|
115 |
+
export const XDG_SESSION_DESKTOP: string;
|
116 |
+
export const XAUTHORITY: string;
|
117 |
+
export const LS_COLORS: string;
|
118 |
+
export const VSCODE_GIT_IPC_HANDLE: string;
|
119 |
+
export const GNOME_TERMINAL_SERVICE: string;
|
120 |
+
export const TERM_PROGRAM: string;
|
121 |
+
export const npm_lifecycle_script: string;
|
122 |
+
export const SSH_AUTH_SOCK: string;
|
123 |
+
export const XDG_GREETER_DATA_DIR: string;
|
124 |
+
export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
125 |
+
export const SHELL: string;
|
126 |
+
export const LC_NAME: string;
|
127 |
+
export const npm_package_version: string;
|
128 |
+
export const npm_lifecycle_event: string;
|
129 |
+
export const QT_ACCESSIBILITY: string;
|
130 |
+
export const NO_AT_BRIDGE: string;
|
131 |
+
export const GDMSESSION: string;
|
132 |
+
export const LESSCLOSE: string;
|
133 |
+
export const LC_MEASUREMENT: string;
|
134 |
+
export const GPG_AGENT_INFO: string;
|
135 |
+
export const LC_IDENTIFICATION: string;
|
136 |
+
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
137 |
+
export const XDG_VTNR: string;
|
138 |
+
export const npm_config_globalconfig: string;
|
139 |
+
export const npm_config_init_module: string;
|
140 |
+
export const PWD: string;
|
141 |
+
export const npm_execpath: string;
|
142 |
+
export const XDG_CONFIG_DIRS: string;
|
143 |
+
export const NVM_CD_FLAGS: string;
|
144 |
+
export const XDG_DATA_DIRS: string;
|
145 |
+
export const npm_config_global_prefix: string;
|
146 |
+
export const HOMEBREW_REPOSITORY: string;
|
147 |
+
export const LC_NUMERIC: string;
|
148 |
+
export const npm_command: string;
|
149 |
+
export const LC_PAPER: string;
|
150 |
+
export const MANPATH: string;
|
151 |
+
export const VTE_VERSION: string;
|
152 |
+
export const INIT_CWD: string;
|
153 |
+
export const EDITOR: string;
|
154 |
+
export const NODE_ENV: string;
|
155 |
+
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
159 |
+
*
|
160 |
+
* Values are replaced statically at build time.
|
161 |
+
*
|
162 |
+
* ```ts
|
163 |
+
* import { PUBLIC_BASE_URL } from '$env/static/public';
|
164 |
+
* ```
|
165 |
+
*/
|
166 |
+
declare module '$env/static/public' {
|
167 |
+
export const PUBLIC_ORIGIN: string;
|
168 |
+
export const PUBLIC_SHARE_PREFIX: string;
|
169 |
+
export const PUBLIC_GOOGLE_ANALYTICS_ID: string;
|
170 |
+
export const PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID: string;
|
171 |
+
export const PUBLIC_ANNOUNCEMENT_BANNERS: string;
|
172 |
+
export const PUBLIC_APP_NAME: string;
|
173 |
+
export const PUBLIC_APP_ASSETS: string;
|
174 |
+
export const PUBLIC_APP_COLOR: string;
|
175 |
+
export const PUBLIC_APP_DATA_SHARING: string;
|
176 |
+
export const PUBLIC_APP_DISCLAIMER: string;
|
177 |
+
export const PUBLIC_VERSION: string;
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/master/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
|
182 |
+
*
|
183 |
+
* This module cannot be imported into client-side code.
|
184 |
+
*
|
185 |
+
* ```ts
|
186 |
+
* import { env } from '$env/dynamic/private';
|
187 |
+
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
|
188 |
+
* ```
|
189 |
+
*
|
190 |
+
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
191 |
+
*/
|
192 |
+
declare module '$env/dynamic/private' {
|
193 |
+
export const env: {
|
194 |
+
MONGODB_URL: string;
|
195 |
+
MONGODB_DB_NAME: string;
|
196 |
+
MONGODB_DIRECT_CONNECTION: string;
|
197 |
+
COOKIE_NAME: string;
|
198 |
+
HF_ACCESS_TOKEN: string;
|
199 |
+
HF_API_ROOT: string;
|
200 |
+
SERPER_API_KEY: string;
|
201 |
+
SERPAPI_KEY: string;
|
202 |
+
OPENID_CLIENT_ID: string;
|
203 |
+
OPENID_CLIENT_SECRET: string;
|
204 |
+
OPENID_SCOPES: string;
|
205 |
+
OPENID_PROVIDER_URL: string;
|
206 |
+
USE_CLIENT_CERTIFICATE: string;
|
207 |
+
CERT_PATH: string;
|
208 |
+
KEY_PATH: string;
|
209 |
+
CA_PATH: string;
|
210 |
+
CLIENT_KEY_PASSWORD: string;
|
211 |
+
REJECT_UNAUTHORIZED: string;
|
212 |
+
MODELS: string;
|
213 |
+
OLD_MODELS: string;
|
214 |
+
PARQUET_EXPORT_DATASET: string;
|
215 |
+
PARQUET_EXPORT_HF_TOKEN: string;
|
216 |
+
PARQUET_EXPORT_SECRET: string;
|
217 |
+
RATE_LIMIT: string;
|
218 |
+
MESSAGES_BEFORE_LOGIN: string;
|
219 |
+
LESSOPEN: string;
|
220 |
+
LANGUAGE: string;
|
221 |
+
USER: string;
|
222 |
+
npm_config_user_agent: string;
|
223 |
+
XDG_SEAT: string;
|
224 |
+
XDG_SESSION_TYPE: string;
|
225 |
+
GIT_ASKPASS: string;
|
226 |
+
npm_node_execpath: string;
|
227 |
+
SHLVL: string;
|
228 |
+
npm_config_noproxy: string;
|
229 |
+
HOME: string;
|
230 |
+
CHROME_DESKTOP: string;
|
231 |
+
OLDPWD: string;
|
232 |
+
TERM_PROGRAM_VERSION: string;
|
233 |
+
DESKTOP_SESSION: string;
|
234 |
+
NVM_BIN: string;
|
235 |
+
npm_package_json: string;
|
236 |
+
NVM_INC: string;
|
237 |
+
HOMEBREW_PREFIX: string;
|
238 |
+
GTK_MODULES: string;
|
239 |
+
XDG_SEAT_PATH: string;
|
240 |
+
VSCODE_GIT_ASKPASS_MAIN: string;
|
241 |
+
LC_MONETARY: string;
|
242 |
+
VSCODE_GIT_ASKPASS_NODE: string;
|
243 |
+
npm_config_userconfig: string;
|
244 |
+
npm_config_local_prefix: string;
|
245 |
+
CINNAMON_VERSION: string;
|
246 |
+
DBUS_SESSION_BUS_ADDRESS: string;
|
247 |
+
npm_config_engine_strict: string;
|
248 |
+
COLORTERM: string;
|
249 |
+
COLOR: string;
|
250 |
+
NVM_DIR: string;
|
251 |
+
npm_config_metrics_registry: string;
|
252 |
+
QT_QPA_PLATFORMTHEME: string;
|
253 |
+
INFOPATH: string;
|
254 |
+
LOGNAME: string;
|
255 |
+
_: string;
|
256 |
+
npm_config_prefix: string;
|
257 |
+
XDG_SESSION_CLASS: string;
|
258 |
+
TERM: string;
|
259 |
+
GTK_OVERLAY_SCROLLING: string;
|
260 |
+
XDG_SESSION_ID: string;
|
261 |
+
npm_config_cache: string;
|
262 |
+
GNOME_DESKTOP_SESSION_ID: string;
|
263 |
+
npm_config_node_gyp: string;
|
264 |
+
PATH: string;
|
265 |
+
SESSION_MANAGER: string;
|
266 |
+
GDM_LANG: string;
|
267 |
+
HOMEBREW_CELLAR: string;
|
268 |
+
GTK3_MODULES: string;
|
269 |
+
NODE: string;
|
270 |
+
npm_package_name: string;
|
271 |
+
XDG_SESSION_PATH: string;
|
272 |
+
LC_ADDRESS: string;
|
273 |
+
GNOME_TERMINAL_SCREEN: string;
|
274 |
+
XDG_RUNTIME_DIR: string;
|
275 |
+
GDK_BACKEND: string;
|
276 |
+
DISPLAY: string;
|
277 |
+
LANG: string;
|
278 |
+
XDG_CURRENT_DESKTOP: string;
|
279 |
+
LC_TELEPHONE: string;
|
280 |
+
XDG_SESSION_DESKTOP: string;
|
281 |
+
XAUTHORITY: string;
|
282 |
+
LS_COLORS: string;
|
283 |
+
VSCODE_GIT_IPC_HANDLE: string;
|
284 |
+
GNOME_TERMINAL_SERVICE: string;
|
285 |
+
TERM_PROGRAM: string;
|
286 |
+
npm_lifecycle_script: string;
|
287 |
+
SSH_AUTH_SOCK: string;
|
288 |
+
XDG_GREETER_DATA_DIR: string;
|
289 |
+
ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
290 |
+
SHELL: string;
|
291 |
+
LC_NAME: string;
|
292 |
+
npm_package_version: string;
|
293 |
+
npm_lifecycle_event: string;
|
294 |
+
QT_ACCESSIBILITY: string;
|
295 |
+
NO_AT_BRIDGE: string;
|
296 |
+
GDMSESSION: string;
|
297 |
+
LESSCLOSE: string;
|
298 |
+
LC_MEASUREMENT: string;
|
299 |
+
GPG_AGENT_INFO: string;
|
300 |
+
LC_IDENTIFICATION: string;
|
301 |
+
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
302 |
+
XDG_VTNR: string;
|
303 |
+
npm_config_globalconfig: string;
|
304 |
+
npm_config_init_module: string;
|
305 |
+
PWD: string;
|
306 |
+
npm_execpath: string;
|
307 |
+
XDG_CONFIG_DIRS: string;
|
308 |
+
NVM_CD_FLAGS: string;
|
309 |
+
XDG_DATA_DIRS: string;
|
310 |
+
npm_config_global_prefix: string;
|
311 |
+
HOMEBREW_REPOSITORY: string;
|
312 |
+
LC_NUMERIC: string;
|
313 |
+
npm_command: string;
|
314 |
+
LC_PAPER: string;
|
315 |
+
MANPATH: string;
|
316 |
+
VTE_VERSION: string;
|
317 |
+
INIT_CWD: string;
|
318 |
+
EDITOR: string;
|
319 |
+
NODE_ENV: string;
|
320 |
+
[key: `PUBLIC_${string}`]: undefined;
|
321 |
+
[key: `${string}`]: string | undefined;
|
322 |
+
}
|
323 |
+
}
|
324 |
+
|
325 |
+
/**
|
326 |
+
* Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
327 |
+
*
|
328 |
+
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
|
329 |
+
*
|
330 |
+
* ```ts
|
331 |
+
* import { env } from '$env/dynamic/public';
|
332 |
+
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
|
333 |
+
* ```
|
334 |
+
*/
|
335 |
+
declare module '$env/dynamic/public' {
|
336 |
+
export const env: {
|
337 |
+
PUBLIC_ORIGIN: string;
|
338 |
+
PUBLIC_SHARE_PREFIX: string;
|
339 |
+
PUBLIC_GOOGLE_ANALYTICS_ID: string;
|
340 |
+
PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID: string;
|
341 |
+
PUBLIC_ANNOUNCEMENT_BANNERS: string;
|
342 |
+
PUBLIC_APP_NAME: string;
|
343 |
+
PUBLIC_APP_ASSETS: string;
|
344 |
+
PUBLIC_APP_COLOR: string;
|
345 |
+
PUBLIC_APP_DATA_SHARING: string;
|
346 |
+
PUBLIC_APP_DISCLAIMER: string;
|
347 |
+
PUBLIC_VERSION: string;
|
348 |
+
[key: `PUBLIC_${string}`]: string | undefined;
|
349 |
+
}
|
350 |
+
}
|
.svelte-kit/generated/client/app.js
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export { matchers } from './matchers.js';
|
2 |
+
|
3 |
+
export const nodes = [
|
4 |
+
() => import('./nodes/0'),
|
5 |
+
() => import('./nodes/1'),
|
6 |
+
() => import('./nodes/2'),
|
7 |
+
() => import('./nodes/3'),
|
8 |
+
() => import('./nodes/4'),
|
9 |
+
() => import('./nodes/5'),
|
10 |
+
() => import('./nodes/6'),
|
11 |
+
() => import('./nodes/7'),
|
12 |
+
() => import('./nodes/8'),
|
13 |
+
() => import('./nodes/9'),
|
14 |
+
() => import('./nodes/10')
|
15 |
+
];
|
16 |
+
|
17 |
+
export const server_loads = [0];
|
18 |
+
|
19 |
+
export const dictionary = {
|
20 |
+
"/": [2],
|
21 |
+
"/conversations": [~4],
|
22 |
+
"/conversation/[id]": [~3],
|
23 |
+
"/login": [~5],
|
24 |
+
"/login/callback": [~6],
|
25 |
+
"/logout": [~7],
|
26 |
+
"/privacy": [8],
|
27 |
+
"/r/[id]": [~9],
|
28 |
+
"/settings": [~10]
|
29 |
+
};
|
30 |
+
|
31 |
+
export const hooks = {
|
32 |
+
handleError: (({ error }) => { console.error(error) }),
|
33 |
+
};
|
34 |
+
|
35 |
+
export { default as root } from '../root.svelte';
|
.svelte-kit/generated/client/matchers.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
export const matchers = {};
|
.svelte-kit/generated/client/nodes/0.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
export { default as component } from "../../../../src/routes/+layout.svelte";
|
.svelte-kit/generated/client/nodes/1.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
export { default as component } from "../../../../src/routes/+error.svelte";
|
.svelte-kit/generated/client/nodes/10.js
ADDED
File without changes
|
.svelte-kit/generated/client/nodes/2.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
export { default as component } from "../../../../src/routes/+page.svelte";
|
.svelte-kit/generated/client/nodes/3.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
export { default as component } from "../../../../src/routes/conversation/[id]/+page.svelte";
|
.svelte-kit/generated/client/nodes/4.js
ADDED
File without changes
|
.svelte-kit/generated/client/nodes/5.js
ADDED
File without changes
|
.svelte-kit/generated/client/nodes/6.js
ADDED
File without changes
|
.svelte-kit/generated/client/nodes/7.js
ADDED
File without changes
|
.svelte-kit/generated/client/nodes/8.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
export { default as component } from "../../../../src/routes/privacy/+page.svelte";
|
.svelte-kit/generated/client/nodes/9.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
export { default as component } from "../../../../src/routes/r/[id]/+page.svelte";
|
.svelte-kit/generated/root.svelte
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- This file is generated by @sveltejs/kit — do not edit it! -->
|
2 |
+
<script>
|
3 |
+
import { setContext, afterUpdate, onMount, tick } from 'svelte';
|
4 |
+
import { browser } from '$app/environment';
|
5 |
+
|
6 |
+
// stores
|
7 |
+
export let stores;
|
8 |
+
export let page;
|
9 |
+
|
10 |
+
export let constructors;
|
11 |
+
export let components = [];
|
12 |
+
export let form;
|
13 |
+
export let data_0 = null;
|
14 |
+
export let data_1 = null;
|
15 |
+
|
16 |
+
if (!browser) {
|
17 |
+
setContext('__svelte__', stores);
|
18 |
+
}
|
19 |
+
|
20 |
+
$: stores.page.set(page);
|
21 |
+
afterUpdate(stores.page.notify);
|
22 |
+
|
23 |
+
let mounted = false;
|
24 |
+
let navigated = false;
|
25 |
+
let title = null;
|
26 |
+
|
27 |
+
onMount(() => {
|
28 |
+
const unsubscribe = stores.page.subscribe(() => {
|
29 |
+
if (mounted) {
|
30 |
+
navigated = true;
|
31 |
+
tick().then(() => {
|
32 |
+
title = document.title || 'untitled page';
|
33 |
+
});
|
34 |
+
}
|
35 |
+
});
|
36 |
+
|
37 |
+
mounted = true;
|
38 |
+
return unsubscribe;
|
39 |
+
});
|
40 |
+
</script>
|
41 |
+
|
42 |
+
{#if constructors[1]}
|
43 |
+
<svelte:component this={constructors[0]} bind:this={components[0]} data={data_0}>
|
44 |
+
<svelte:component this={constructors[1]} bind:this={components[1]} data={data_1} {form} />
|
45 |
+
</svelte:component>
|
46 |
+
{:else}
|
47 |
+
<svelte:component this={constructors[0]} bind:this={components[0]} data={data_0} {form} />
|
48 |
+
{/if}
|
49 |
+
|
50 |
+
{#if mounted}
|
51 |
+
<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px">
|
52 |
+
{#if navigated}
|
53 |
+
{title}
|
54 |
+
{/if}
|
55 |
+
</div>
|
56 |
+
{/if}
|
.svelte-kit/generated/server/internal.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import root from '../root.svelte';
|
3 |
+
import { set_building } from '__sveltekit/environment';
|
4 |
+
import { set_assets } from '__sveltekit/paths';
|
5 |
+
import { set_private_env, set_public_env } from '../../../node_modules/@sveltejs/kit/src/runtime/shared-server.js';
|
6 |
+
|
7 |
+
export const options = {
|
8 |
+
app_template_contains_nonce: false,
|
9 |
+
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
|
10 |
+
csrf_check_origin: false,
|
11 |
+
track_server_fetches: false,
|
12 |
+
embedded: false,
|
13 |
+
env_public_prefix: 'PUBLIC_',
|
14 |
+
env_private_prefix: '',
|
15 |
+
hooks: null, // added lazily, via `get_hooks`
|
16 |
+
preload_strategy: "modulepreload",
|
17 |
+
root,
|
18 |
+
service_worker: false,
|
19 |
+
templates: {
|
20 |
+
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\" class=\"h-full\">\n\t<link rel=\"stylesheet\" href=\"https://www.w3schools.com/w3css/4/w3.css\" />\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\" />\n\t\t<script>\n\t\t\tif (\n\t\t\t\tlocalStorage.theme === \"dark\" ||\n\t\t\t\t(!(\"theme\" in localStorage) && window.matchMedia(\"(prefers-color-scheme: dark)\").matches)\n\t\t\t) {\n\t\t\t\tdocument.documentElement.classList.add(\"dark\");\n\t\t\t}\n\n\t\t\t// For some reason, Sveltekit doesn't let us load env variables from .env here, so we load it from hooks.server.ts\n\t\t\twindow.gaId = \"%gaId%\";\n\t\t\twindow.gaIdDeprecated = \"%gaIdDeprecated%\";\n\t\t</script>\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\" class=\"h-full dark:bg-gray-900\">\n\t\t<div id=\"app\" class=\"contents h-full\">" + body + "</div>\n\n\t\t<!-- Google Tag Manager -->\n\t\t<script>\n\t\t\tif (window.gaId) {\n\t\t\t\tconst script = document.createElement(\"script\");\n\t\t\t\tscript.src = \"https://www.googletagmanager.com/gtag/js?id=\" + window.gaId;\n\t\t\t\tscript.async = true;\n\t\t\t\tdocument.head.appendChild(script);\n\n\t\t\t\twindow.dataLayer = window.dataLayer || [];\n\t\t\t\tfunction gtag() {\n\t\t\t\t\tdataLayer.push(arguments);\n\t\t\t\t}\n\t\t\t\tgtag(\"js\", new Date());\n\t\t\t\t/// ^ See https://developers.google.com/tag-platform/gtagjs/install\n\t\t\t\tgtag(\"config\", window.gaId);\n\t\t\t\tgtag(\"consent\", \"default\", { ad_storage: \"denied\", analytics_storage: \"denied\" });\n\t\t\t\t/// ^ See https://developers.google.com/tag-platform/gtagjs/reference#consent\n\t\t\t\t/// TODO: ask the user for their consent and update this with gtag('consent', 'update')\n\t\t\t}\n\t\t</script>\n\n\t\t<!-- Google Analytics v3 (deprecated on 1 July 2023) -->\n\t\t<script>\n\t\t\tif (window.gaIdDeprecated) {\n\t\t\t\t(function (i, s, o, g, r, a, m) {\n\t\t\t\t\ti[\"GoogleAnalyticsObject\"] = r;\n\t\t\t\t\t(i[r] =\n\t\t\t\t\t\ti[r] ||\n\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t(i[r].q = i[r].q || []).push(arguments);\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(i[r].l = 1 * new Date());\n\t\t\t\t\t(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);\n\t\t\t\t\ta.async = 1;\n\t\t\t\t\ta.src = g;\n\t\t\t\t\tm.parentNode.insertBefore(a, m);\n\t\t\t\t})(\n\t\t\t\t\twindow,\n\t\t\t\t\tdocument,\n\t\t\t\t\t\"script\",\n\t\t\t\t\t\"https://www.google-analytics.com/analytics.js\",\n\t\t\t\t\t\"ganalytics\"\n\t\t\t\t);\n\t\t\t\tganalytics(\"create\", window.gaIdDeprecated, \"auto\");\n\t\t\t\tganalytics(\"send\", \"pageview\");\n\t\t\t}\n\t\t</script>\n\t</body>\n</html>\n",
|
21 |
+
error: ({ 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: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,\n\t\t\t\t\tUbuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-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"
|
22 |
+
},
|
23 |
+
version_hash: "1ji7gzf"
|
24 |
+
};
|
25 |
+
|
26 |
+
export function get_hooks() {
|
27 |
+
return import("../../../src/hooks.server.ts");
|
28 |
+
}
|
29 |
+
|
30 |
+
export { set_assets, set_building, set_private_env, set_public_env };
|
.svelte-kit/tsconfig.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"compilerOptions": {
|
3 |
+
"paths": {
|
4 |
+
"$lib": [
|
5 |
+
"../src/lib"
|
6 |
+
],
|
7 |
+
"$lib/*": [
|
8 |
+
"../src/lib/*"
|
9 |
+
]
|
10 |
+
},
|
11 |
+
"rootDirs": [
|
12 |
+
"..",
|
13 |
+
"./types"
|
14 |
+
],
|
15 |
+
"importsNotUsedAsValues": "error",
|
16 |
+
"isolatedModules": true,
|
17 |
+
"preserveValueImports": true,
|
18 |
+
"lib": [
|
19 |
+
"esnext",
|
20 |
+
"DOM",
|
21 |
+
"DOM.Iterable"
|
22 |
+
],
|
23 |
+
"moduleResolution": "node",
|
24 |
+
"module": "esnext",
|
25 |
+
"target": "esnext"
|
26 |
+
},
|
27 |
+
"include": [
|
28 |
+
"ambient.d.ts",
|
29 |
+
"./types/**/$types.d.ts",
|
30 |
+
"../vite.config.ts",
|
31 |
+
"../src/**/*.js",
|
32 |
+
"../src/**/*.ts",
|
33 |
+
"../src/**/*.svelte",
|
34 |
+
"../tests/**/*.js",
|
35 |
+
"../tests/**/*.ts",
|
36 |
+
"../tests/**/*.svelte"
|
37 |
+
],
|
38 |
+
"exclude": [
|
39 |
+
"../node_modules/**",
|
40 |
+
"./[!ambient.d.ts]**",
|
41 |
+
"../src/service-worker.js",
|
42 |
+
"../src/service-worker.ts",
|
43 |
+
"../src/service-worker.d.ts"
|
44 |
+
]
|
45 |
+
}
|
.svelte-kit/types/route_meta_data.json
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"/": [
|
3 |
+
"src/routes/+layout.server.ts",
|
4 |
+
"src/routes/+layout.server.ts"
|
5 |
+
],
|
6 |
+
"/admin/export": [
|
7 |
+
"src/routes/admin/export/+server.ts"
|
8 |
+
],
|
9 |
+
"/conversations": [
|
10 |
+
"src/routes/conversations/+page.server.ts",
|
11 |
+
"src/routes/+layout.server.ts"
|
12 |
+
],
|
13 |
+
"/conversation": [
|
14 |
+
"src/routes/conversation/+server.ts"
|
15 |
+
],
|
16 |
+
"/conversation/[id]": [
|
17 |
+
"src/routes/conversation/[id]/+page.server.ts",
|
18 |
+
"src/routes/+layout.server.ts",
|
19 |
+
"src/routes/conversation/[id]/+server.ts"
|
20 |
+
],
|
21 |
+
"/conversation/[id]/message/[messageId]/prompt": [
|
22 |
+
"src/routes/conversation/[id]/message/[messageId]/prompt/+server.ts"
|
23 |
+
],
|
24 |
+
"/conversation/[id]/message/[messageId]/vote": [
|
25 |
+
"src/routes/conversation/[id]/message/[messageId]/vote/+server.ts"
|
26 |
+
],
|
27 |
+
"/conversation/[id]/share": [
|
28 |
+
"src/routes/conversation/[id]/share/+server.ts"
|
29 |
+
],
|
30 |
+
"/conversation/[id]/stop-generating": [
|
31 |
+
"src/routes/conversation/[id]/stop-generating/+server.ts"
|
32 |
+
],
|
33 |
+
"/conversation/[id]/summarize": [
|
34 |
+
"src/routes/conversation/[id]/summarize/+server.ts"
|
35 |
+
],
|
36 |
+
"/conversation/[id]/web-search": [
|
37 |
+
"src/routes/conversation/[id]/web-search/+server.ts"
|
38 |
+
],
|
39 |
+
"/login": [
|
40 |
+
"src/routes/login/+page.server.ts",
|
41 |
+
"src/routes/+layout.server.ts"
|
42 |
+
],
|
43 |
+
"/login/callback": [
|
44 |
+
"src/routes/login/callback/+page.server.ts",
|
45 |
+
"src/routes/+layout.server.ts"
|
46 |
+
],
|
47 |
+
"/logout": [
|
48 |
+
"src/routes/logout/+page.server.ts",
|
49 |
+
"src/routes/+layout.server.ts"
|
50 |
+
],
|
51 |
+
"/privacy": [
|
52 |
+
"src/routes/+layout.server.ts"
|
53 |
+
],
|
54 |
+
"/r/[id]": [
|
55 |
+
"src/routes/r/[id]/+page.server.ts",
|
56 |
+
"src/routes/+layout.server.ts"
|
57 |
+
],
|
58 |
+
"/r/[id]/message/[messageId]/prompt": [
|
59 |
+
"src/routes/r/[id]/message/[messageId]/prompt/+server.ts"
|
60 |
+
],
|
61 |
+
"/search/[id]": [
|
62 |
+
"src/routes/search/[id]/+server.ts"
|
63 |
+
],
|
64 |
+
"/settings": [
|
65 |
+
"src/routes/settings/+page.server.ts",
|
66 |
+
"src/routes/+layout.server.ts"
|
67 |
+
]
|
68 |
+
}
|
.svelte-kit/types/src/routes/$types.d.ts
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageParentData = EnsureDefined<LayoutData>;
|
13 |
+
type LayoutRouteId = RouteId | "/" | "/conversation/[id]" | "/conversations" | "/login" | "/login/callback" | "/logout" | "/privacy" | "/r/[id]" | "/settings" | null
|
14 |
+
type LayoutParams = RouteParams & { id?: string }
|
15 |
+
type LayoutServerParentData = EnsureDefined<{}>;
|
16 |
+
type LayoutParentData = EnsureDefined<{}>;
|
17 |
+
|
18 |
+
export type PageServerData = null;
|
19 |
+
export type PageData = Expand<PageParentData>;
|
20 |
+
export type LayoutServerLoad<OutputData extends OutputDataShape<LayoutServerParentData> = OutputDataShape<LayoutServerParentData>> = Kit.ServerLoad<LayoutParams, LayoutServerParentData, OutputData, LayoutRouteId>;
|
21 |
+
export type LayoutServerLoadEvent = Parameters<LayoutServerLoad>[0];
|
22 |
+
export type LayoutServerData = Expand<OptionalUnion<EnsureDefined<Kit.AwaitedProperties<Awaited<ReturnType<typeof import('./proxy+layout.server.js').load>>>>>>;
|
23 |
+
export type LayoutData = Expand<Omit<LayoutParentData, keyof LayoutServerData> & EnsureDefined<LayoutServerData>>;
|
24 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/admin/export/$types.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/admin/export';
|
6 |
+
|
7 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
8 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversation/$types.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/conversation';
|
6 |
+
|
7 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
8 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversation/[id]/$types.d.ts
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string }
|
5 |
+
type RouteId = '/conversation/[id]';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageServerParentData = EnsureDefined<import('../../$types.js').LayoutServerData>;
|
13 |
+
type PageParentData = EnsureDefined<import('../../$types.js').LayoutData>;
|
14 |
+
|
15 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
16 |
+
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
|
17 |
+
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
|
18 |
+
export type ActionData = unknown;
|
19 |
+
export type PageServerData = Expand<OptionalUnion<EnsureDefined<Kit.AwaitedProperties<Awaited<ReturnType<typeof import('../../../../../../src/routes/conversation/[id]/+page.server.js').load>>>>>>;
|
20 |
+
export type PageData = Expand<Omit<PageParentData, keyof PageServerData> & EnsureDefined<PageServerData>>;
|
21 |
+
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
|
22 |
+
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
|
23 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
24 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/prompt/$types.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string; messageId: string }
|
5 |
+
type RouteId = '/conversation/[id]/message/[messageId]/prompt';
|
6 |
+
|
7 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/vote/$types.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string; messageId: string }
|
5 |
+
type RouteId = '/conversation/[id]/message/[messageId]/vote';
|
6 |
+
|
7 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversation/[id]/share/$types.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string }
|
5 |
+
type RouteId = '/conversation/[id]/share';
|
6 |
+
|
7 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversation/[id]/stop-generating/$types.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string }
|
5 |
+
type RouteId = '/conversation/[id]/stop-generating';
|
6 |
+
|
7 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversation/[id]/summarize/$types.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string }
|
5 |
+
type RouteId = '/conversation/[id]/summarize';
|
6 |
+
|
7 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversation/[id]/web-search/$types.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string }
|
5 |
+
type RouteId = '/conversation/[id]/web-search';
|
6 |
+
|
7 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/conversations/$types.d.ts
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/conversations';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageServerParentData = EnsureDefined<import('../$types.js').LayoutServerData>;
|
13 |
+
type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
|
14 |
+
|
15 |
+
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
|
16 |
+
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
|
17 |
+
type ExcludeActionFailure<T> = T extends Kit.ActionFailure<any> ? never : T extends void ? never : T;
|
18 |
+
type ActionsSuccess<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: ExcludeActionFailure<Awaited<ReturnType<T[Key]>>>; }[keyof T];
|
19 |
+
type ExtractActionFailure<T> = T extends Kit.ActionFailure<infer X> ? X extends void ? never : X : never;
|
20 |
+
type ActionsFailure<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: Exclude<ExtractActionFailure<Awaited<ReturnType<T[Key]>>>, void>; }[keyof T];
|
21 |
+
type ActionsExport = typeof import('../../../../../src/routes/conversations/+page.server.js').actions
|
22 |
+
export type SubmitFunction = Kit.SubmitFunction<Expand<ActionsSuccess<ActionsExport>>, Expand<ActionsFailure<ActionsExport>>>
|
23 |
+
export type ActionData = Expand<Kit.AwaitedActions<ActionsExport>> | null;
|
24 |
+
export type PageServerData = null;
|
25 |
+
export type PageData = Expand<PageParentData>;
|
26 |
+
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
|
27 |
+
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
|
28 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/login/$types.d.ts
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/login';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageServerParentData = EnsureDefined<import('../$types.js').LayoutServerData>;
|
13 |
+
type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
|
14 |
+
|
15 |
+
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
|
16 |
+
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
|
17 |
+
type ExcludeActionFailure<T> = T extends Kit.ActionFailure<any> ? never : T extends void ? never : T;
|
18 |
+
type ActionsSuccess<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: ExcludeActionFailure<Awaited<ReturnType<T[Key]>>>; }[keyof T];
|
19 |
+
type ExtractActionFailure<T> = T extends Kit.ActionFailure<infer X> ? X extends void ? never : X : never;
|
20 |
+
type ActionsFailure<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: Exclude<ExtractActionFailure<Awaited<ReturnType<T[Key]>>>, void>; }[keyof T];
|
21 |
+
type ActionsExport = typeof import('../../../../../src/routes/login/+page.server.js').actions
|
22 |
+
export type SubmitFunction = Kit.SubmitFunction<Expand<ActionsSuccess<ActionsExport>>, Expand<ActionsFailure<ActionsExport>>>
|
23 |
+
export type ActionData = Expand<Kit.AwaitedActions<ActionsExport>> | null;
|
24 |
+
export type PageServerData = null;
|
25 |
+
export type PageData = Expand<PageParentData>;
|
26 |
+
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
|
27 |
+
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
|
28 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/login/callback/$types.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/login/callback';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageServerParentData = EnsureDefined<import('../../$types.js').LayoutServerData>;
|
13 |
+
type PageParentData = EnsureDefined<import('../../$types.js').LayoutData>;
|
14 |
+
|
15 |
+
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
|
16 |
+
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
|
17 |
+
export type ActionData = unknown;
|
18 |
+
export type PageServerData = Expand<OptionalUnion<EnsureDefined<Kit.AwaitedProperties<Awaited<ReturnType<typeof import('../../../../../../src/routes/login/callback/+page.server.js').load>>>>>>;
|
19 |
+
export type PageData = Expand<Omit<PageParentData, keyof PageServerData> & EnsureDefined<PageServerData>>;
|
20 |
+
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
|
21 |
+
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
|
22 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/logout/$types.d.ts
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/logout';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageServerParentData = EnsureDefined<import('../$types.js').LayoutServerData>;
|
13 |
+
type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
|
14 |
+
|
15 |
+
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
|
16 |
+
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
|
17 |
+
type ExcludeActionFailure<T> = T extends Kit.ActionFailure<any> ? never : T extends void ? never : T;
|
18 |
+
type ActionsSuccess<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: ExcludeActionFailure<Awaited<ReturnType<T[Key]>>>; }[keyof T];
|
19 |
+
type ExtractActionFailure<T> = T extends Kit.ActionFailure<infer X> ? X extends void ? never : X : never;
|
20 |
+
type ActionsFailure<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: Exclude<ExtractActionFailure<Awaited<ReturnType<T[Key]>>>, void>; }[keyof T];
|
21 |
+
type ActionsExport = typeof import('../../../../../src/routes/logout/+page.server.js').actions
|
22 |
+
export type SubmitFunction = Kit.SubmitFunction<Expand<ActionsSuccess<ActionsExport>>, Expand<ActionsFailure<ActionsExport>>>
|
23 |
+
export type ActionData = Expand<Kit.AwaitedActions<ActionsExport>> | null;
|
24 |
+
export type PageServerData = null;
|
25 |
+
export type PageData = Expand<PageParentData>;
|
26 |
+
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
|
27 |
+
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
|
28 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/privacy/$types.d.ts
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/privacy';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
|
13 |
+
|
14 |
+
export type PageServerData = null;
|
15 |
+
export type PageData = Expand<PageParentData>;
|
.svelte-kit/types/src/routes/proxy+layout.server.ts
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// @ts-nocheck
|
2 |
+
import { redirect } from "@sveltejs/kit";
|
3 |
+
import type { LayoutServerLoad } from "./$types";
|
4 |
+
import { collections } from "$lib/server/database";
|
5 |
+
import type { Conversation } from "$lib/types/Conversation";
|
6 |
+
import { UrlDependency } from "$lib/types/UrlDependency";
|
7 |
+
import { defaultModel, models, oldModels, validateModel } from "$lib/server/models";
|
8 |
+
import { authCondition, requiresUser } from "$lib/server/auth";
|
9 |
+
import { DEFAULT_SETTINGS } from "$lib/types/Settings";
|
10 |
+
import { SERPAPI_KEY, SERPER_API_KEY, MESSAGES_BEFORE_LOGIN } from "$env/static/private";
|
11 |
+
|
12 |
+
export const load = async ({ locals, depends, url }: Parameters<LayoutServerLoad>[0]) => {
|
13 |
+
const { conversations } = collections;
|
14 |
+
const urlModel = url.searchParams.get("model");
|
15 |
+
|
16 |
+
depends(UrlDependency.ConversationList);
|
17 |
+
|
18 |
+
if (urlModel) {
|
19 |
+
const isValidModel = validateModel(models).safeParse(urlModel).success;
|
20 |
+
|
21 |
+
if (isValidModel) {
|
22 |
+
await collections.settings.updateOne(
|
23 |
+
authCondition(locals),
|
24 |
+
{ $set: { activeModel: urlModel } },
|
25 |
+
{ upsert: true }
|
26 |
+
);
|
27 |
+
}
|
28 |
+
|
29 |
+
throw redirect(302, url.pathname);
|
30 |
+
}
|
31 |
+
|
32 |
+
|
33 |
+
return {
|
34 |
+
conversations: [],
|
35 |
+
settings: {
|
36 |
+
shareConversationsWithModelAuthors:
|
37 |
+
DEFAULT_SETTINGS.shareConversationsWithModelAuthors,
|
38 |
+
ethicsModalAcceptedAt: null,
|
39 |
+
activeModel: DEFAULT_SETTINGS.activeModel,
|
40 |
+
searchEnabled: false,
|
41 |
+
customPrompts: {},
|
42 |
+
},
|
43 |
+
models: models.map((model) => ({
|
44 |
+
id: model.id,
|
45 |
+
name: model.name,
|
46 |
+
websiteUrl: model.websiteUrl,
|
47 |
+
modelUrl: model.modelUrl,
|
48 |
+
is_local: model.is_local,
|
49 |
+
datasetName: model.datasetName,
|
50 |
+
datasetUrl: model.datasetUrl,
|
51 |
+
displayName: model.displayName,
|
52 |
+
description: model.description,
|
53 |
+
promptExamples: model.promptExamples,
|
54 |
+
parameters: model.parameters,
|
55 |
+
preprompt: model.preprompt,
|
56 |
+
})),
|
57 |
+
oldModels,
|
58 |
+
user: locals.user && {
|
59 |
+
username: locals.user.username,
|
60 |
+
avatarUrl: locals.user.avatarUrl,
|
61 |
+
email: locals.user.email,
|
62 |
+
},
|
63 |
+
requiresLogin: requiresUser,
|
64 |
+
messagesBeforeLogin: MESSAGES_BEFORE_LOGIN ? parseInt(MESSAGES_BEFORE_LOGIN) : 0,
|
65 |
+
};
|
66 |
+
};
|
.svelte-kit/types/src/routes/r/[id]/$types.d.ts
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string }
|
5 |
+
type RouteId = '/r/[id]';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageServerParentData = EnsureDefined<import('../../$types.js').LayoutServerData>;
|
13 |
+
type PageParentData = EnsureDefined<import('../../$types.js').LayoutData>;
|
14 |
+
|
15 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
16 |
+
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
|
17 |
+
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
|
18 |
+
export type ActionData = unknown;
|
19 |
+
export type PageServerData = Expand<OptionalUnion<EnsureDefined<Kit.AwaitedProperties<Awaited<ReturnType<typeof import('./proxy+page.server.js').load>>>>>>;
|
20 |
+
export type PageData = Expand<Omit<PageParentData, keyof PageServerData> & EnsureDefined<PageServerData>>;
|
21 |
+
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
|
22 |
+
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
|
23 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/r/[id]/message/[messageId]/prompt/$types.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string; messageId: string }
|
5 |
+
type RouteId = '/r/[id]/message/[messageId]/prompt';
|
6 |
+
|
7 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/r/[id]/proxy+page.server.ts
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// @ts-nocheck
|
2 |
+
import type { PageServerLoad } from "./$types";
|
3 |
+
import { collections } from "$lib/server/database";
|
4 |
+
import { error } from "@sveltejs/kit";
|
5 |
+
import type { WebSearchMessageResult } from "$lib/types/WebSearch";
|
6 |
+
|
7 |
+
export const load = async ({ params }: Parameters<PageServerLoad>[0]) => {
|
8 |
+
/*const conversation = await collections.sharedConversations.findOne({
|
9 |
+
_id: params.id,
|
10 |
+
});
|
11 |
+
|
12 |
+
if (!conversation) {
|
13 |
+
throw error(404, "Conversation not found");
|
14 |
+
}
|
15 |
+
|
16 |
+
const webSearchesId = conversation.messages
|
17 |
+
.filter((message) => message.webSearchId)
|
18 |
+
.map((message) => new ObjectId(message.webSearchId));
|
19 |
+
|
20 |
+
const results = await collections.webSearches.find({ _id: { $in: webSearchesId } }).toArray();
|
21 |
+
|
22 |
+
const searches = Object.fromEntries(
|
23 |
+
results.map((x) => [
|
24 |
+
x._id.toString(),
|
25 |
+
[...x.messages, { type: "result", id: x._id.toString() } satisfies WebSearchMessageResult],
|
26 |
+
])
|
27 |
+
);
|
28 |
+
|
29 |
+
return {
|
30 |
+
messages: conversation.messages,
|
31 |
+
title: conversation.title,
|
32 |
+
model: conversation.model,
|
33 |
+
searches,
|
34 |
+
};*/
|
35 |
+
};
|
.svelte-kit/types/src/routes/search/[id]/$types.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { id: string }
|
5 |
+
type RouteId = '/search/[id]';
|
6 |
+
|
7 |
+
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
+
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
.svelte-kit/types/src/routes/settings/$types.d.ts
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type * as Kit from '@sveltejs/kit';
|
2 |
+
|
3 |
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
+
type RouteParams = { }
|
5 |
+
type RouteId = '/settings';
|
6 |
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
7 |
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
8 |
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
9 |
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
10 |
+
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;
|
11 |
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
12 |
+
type PageServerParentData = EnsureDefined<import('../$types.js').LayoutServerData>;
|
13 |
+
type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
|
14 |
+
|
15 |
+
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
|
16 |
+
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
|
17 |
+
type ExcludeActionFailure<T> = T extends Kit.ActionFailure<any> ? never : T extends void ? never : T;
|
18 |
+
type ActionsSuccess<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: ExcludeActionFailure<Awaited<ReturnType<T[Key]>>>; }[keyof T];
|
19 |
+
type ExtractActionFailure<T> = T extends Kit.ActionFailure<infer X> ? X extends void ? never : X : never;
|
20 |
+
type ActionsFailure<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: Exclude<ExtractActionFailure<Awaited<ReturnType<T[Key]>>>, void>; }[keyof T];
|
21 |
+
type ActionsExport = typeof import('../../../../../src/routes/settings/+page.server.js').actions
|
22 |
+
export type SubmitFunction = Kit.SubmitFunction<Expand<ActionsSuccess<ActionsExport>>, Expand<ActionsFailure<ActionsExport>>>
|
23 |
+
export type ActionData = Expand<Kit.AwaitedActions<ActionsExport>> | null;
|
24 |
+
export type PageServerData = null;
|
25 |
+
export type PageData = Expand<PageParentData>;
|
26 |
+
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
|
27 |
+
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
|
28 |
+
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|