Spaces:
Sleeping
Sleeping
add svelte-kit
Browse filesFiles changed (39)
- .svelte-kit/ambient.d.tsAdded+350
- .svelte-kit/generated/client/app.jsAdded+35
- .svelte-kit/generated/client/matchers.jsAdded+1
- .svelte-kit/generated/client/nodes/0.jsAdded+1
- .svelte-kit/generated/client/nodes/1.jsAdded+1
- .svelte-kit/generated/client/nodes/10.jsAdded
- .svelte-kit/generated/client/nodes/2.jsAdded+1
- .svelte-kit/generated/client/nodes/3.jsAdded+1
- .svelte-kit/generated/client/nodes/4.jsAdded
- .svelte-kit/generated/client/nodes/5.jsAdded
- .svelte-kit/generated/client/nodes/6.jsAdded
- .svelte-kit/generated/client/nodes/7.jsAdded
- .svelte-kit/generated/client/nodes/8.jsAdded+1
- .svelte-kit/generated/client/nodes/9.jsAdded+1
- .svelte-kit/generated/root.svelteAdded+56
- .svelte-kit/generated/server/internal.jsAdded+30
- .svelte-kit/tsconfig.jsonAdded+45
- .svelte-kit/types/route_meta_data.jsonAdded+68
- .svelte-kit/types/src/routes/$types.d.tsAdded+24
- .svelte-kit/types/src/routes/admin/export/$types.d.tsAdded+8
- .svelte-kit/types/src/routes/conversation/$types.d.tsAdded+8
- .svelte-kit/types/src/routes/conversation/[id]/$types.d.tsAdded+24
- .svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/prompt/$types.d.tsAdded+9
- .svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/vote/$types.d.tsAdded+9
- .svelte-kit/types/src/routes/conversation/[id]/share/$types.d.tsAdded+9
- .svelte-kit/types/src/routes/conversation/[id]/stop-generating/$types.d.tsAdded+9
- .svelte-kit/types/src/routes/conversation/[id]/summarize/$types.d.tsAdded+9
- .svelte-kit/types/src/routes/conversation/[id]/web-search/$types.d.tsAdded+9
- .svelte-kit/types/src/routes/conversations/$types.d.tsAdded+28
- .svelte-kit/types/src/routes/login/$types.d.tsAdded+28
- .svelte-kit/types/src/routes/login/callback/$types.d.tsAdded+22
- .svelte-kit/types/src/routes/logout/$types.d.tsAdded+28
- .svelte-kit/types/src/routes/privacy/$types.d.tsAdded+15
- .svelte-kit/types/src/routes/proxy+layout.server.tsAdded+66
- .svelte-kit/types/src/routes/r/[id]/$types.d.tsAdded+23
- .svelte-kit/types/src/routes/r/[id]/message/[messageId]/prompt/$types.d.tsAdded+9
- .svelte-kit/types/src/routes/r/[id]/proxy+page.server.tsAdded+35
- .svelte-kit/types/src/routes/search/[id]/$types.d.tsAdded+9
- .svelte-kit/types/src/routes/settings/$types.d.tsAdded+28
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
// this file is generated — do not edit it
/// <reference types="@sveltejs/kit" />
/** * 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). * * _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. * * ```ts * import { API_KEY } from '$env/static/private'; * ``` * * 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: * * ``` * MY_FEATURE_FLAG="" * ``` * * You can override `.env` values from the command line like so: * * ```bash * MY_FEATURE_FLAG="enabled" npm run dev * ``` */declare module '$env/static/private' { export const MONGODB_URL: string; export const MONGODB_DB_NAME: string; export const MONGODB_DIRECT_CONNECTION: string; export const COOKIE_NAME: string; export const HF_ACCESS_TOKEN: string; export const HF_API_ROOT: string; export const SERPER_API_KEY: string; export const SERPAPI_KEY: string; export const OPENID_CLIENT_ID: string; export const OPENID_CLIENT_SECRET: string; export const OPENID_SCOPES: string; export const OPENID_PROVIDER_URL: string; export const USE_CLIENT_CERTIFICATE: string; export const CERT_PATH: string; export const KEY_PATH: string; export const CA_PATH: string; export const CLIENT_KEY_PASSWORD: string; export const REJECT_UNAUTHORIZED: string; export const MODELS: string; export const OLD_MODELS: string; export const PARQUET_EXPORT_DATASET: string; export const PARQUET_EXPORT_HF_TOKEN: string; export const PARQUET_EXPORT_SECRET: string; export const RATE_LIMIT: string; export const MESSAGES_BEFORE_LOGIN: string; export const LESSOPEN: string; export const LANGUAGE: string; export const USER: string; export const npm_config_user_agent: string; export const XDG_SEAT: string; export const XDG_SESSION_TYPE: string; export const GIT_ASKPASS: string; export const npm_node_execpath: string; export const SHLVL: string; export const npm_config_noproxy: string; export const HOME: string; export const CHROME_DESKTOP: string; export const OLDPWD: string; export const TERM_PROGRAM_VERSION: string; export const DESKTOP_SESSION: string; export const NVM_BIN: string; export const npm_package_json: string; export const NVM_INC: string; export const HOMEBREW_PREFIX: string; export const GTK_MODULES: string; export const XDG_SEAT_PATH: string; export const VSCODE_GIT_ASKPASS_MAIN: string; export const LC_MONETARY: string; export const VSCODE_GIT_ASKPASS_NODE: string; export const npm_config_userconfig: string; export const npm_config_local_prefix: string; export const CINNAMON_VERSION: string; export const DBUS_SESSION_BUS_ADDRESS: string; export const npm_config_engine_strict: string; export const COLORTERM: string; export const COLOR: string; export const NVM_DIR: string; export const npm_config_metrics_registry: string; export const QT_QPA_PLATFORMTHEME: string; export const INFOPATH: string; export const LOGNAME: string; export const _: string; export const npm_config_prefix: string; export const XDG_SESSION_CLASS: string; export const TERM: string; export const GTK_OVERLAY_SCROLLING: string; export const XDG_SESSION_ID: string; export const npm_config_cache: string; export const GNOME_DESKTOP_SESSION_ID: string; export const npm_config_node_gyp: string; export const PATH: string; export const SESSION_MANAGER: string; export const GDM_LANG: string; export const HOMEBREW_CELLAR: string; export const GTK3_MODULES: string; export const NODE: string; export const npm_package_name: string; export const XDG_SESSION_PATH: string; export const LC_ADDRESS: string; export const GNOME_TERMINAL_SCREEN: string; export const XDG_RUNTIME_DIR: string; export const GDK_BACKEND: string; export const DISPLAY: string; export const LANG: string; export const XDG_CURRENT_DESKTOP: string; export const LC_TELEPHONE: string; export const XDG_SESSION_DESKTOP: string; export const XAUTHORITY: string; export const LS_COLORS: string; export const VSCODE_GIT_IPC_HANDLE: string; export const GNOME_TERMINAL_SERVICE: string; export const TERM_PROGRAM: string; export const npm_lifecycle_script: string; export const SSH_AUTH_SOCK: string; export const XDG_GREETER_DATA_DIR: string; export const ORIGINAL_XDG_CURRENT_DESKTOP: string; export const SHELL: string; export const LC_NAME: string; export const npm_package_version: string; export const npm_lifecycle_event: string; export const QT_ACCESSIBILITY: string; export const NO_AT_BRIDGE: string; export const GDMSESSION: string; export const LESSCLOSE: string; export const LC_MEASUREMENT: string; export const GPG_AGENT_INFO: string; export const LC_IDENTIFICATION: string; export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string; export const XDG_VTNR: string; export const npm_config_globalconfig: string; export const npm_config_init_module: string; export const PWD: string; export const npm_execpath: string; export const XDG_CONFIG_DIRS: string; export const NVM_CD_FLAGS: string; export const XDG_DATA_DIRS: string; export const npm_config_global_prefix: string; export const HOMEBREW_REPOSITORY: string; export const LC_NUMERIC: string; export const npm_command: string; export const LC_PAPER: string; export const MANPATH: string; export const VTE_VERSION: string; export const INIT_CWD: string; export const EDITOR: string; export const NODE_ENV: string;}
/** * 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. * * Values are replaced statically at build time. * * ```ts * import { PUBLIC_BASE_URL } from '$env/static/public'; * ``` */declare module '$env/static/public' { export const PUBLIC_ORIGIN: string; export const PUBLIC_SHARE_PREFIX: string; export const PUBLIC_GOOGLE_ANALYTICS_ID: string; export const PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID: string; export const PUBLIC_ANNOUNCEMENT_BANNERS: string; export const PUBLIC_APP_NAME: string; export const PUBLIC_APP_ASSETS: string; export const PUBLIC_APP_COLOR: string; export const PUBLIC_APP_DATA_SHARING: string; export const PUBLIC_APP_DISCLAIMER: string; export const PUBLIC_VERSION: string;}
/** * 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). * * This module cannot be imported into client-side code. * * ```ts * import { env } from '$env/dynamic/private'; * console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE); * ``` * * > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter. */declare module '$env/dynamic/private' { export const env: { MONGODB_URL: string; MONGODB_DB_NAME: string; MONGODB_DIRECT_CONNECTION: string; COOKIE_NAME: string; HF_ACCESS_TOKEN: string; HF_API_ROOT: string; SERPER_API_KEY: string; SERPAPI_KEY: string; OPENID_CLIENT_ID: string; OPENID_CLIENT_SECRET: string; OPENID_SCOPES: string; OPENID_PROVIDER_URL: string; USE_CLIENT_CERTIFICATE: string; CERT_PATH: string; KEY_PATH: string; CA_PATH: string; CLIENT_KEY_PASSWORD: string; REJECT_UNAUTHORIZED: string; MODELS: string; OLD_MODELS: string; PARQUET_EXPORT_DATASET: string; PARQUET_EXPORT_HF_TOKEN: string; PARQUET_EXPORT_SECRET: string; RATE_LIMIT: string; MESSAGES_BEFORE_LOGIN: string; LESSOPEN: string; LANGUAGE: string; USER: string; npm_config_user_agent: string; XDG_SEAT: string; XDG_SESSION_TYPE: string; GIT_ASKPASS: string; npm_node_execpath: string; SHLVL: string; npm_config_noproxy: string; HOME: string; CHROME_DESKTOP: string; OLDPWD: string; TERM_PROGRAM_VERSION: string; DESKTOP_SESSION: string; NVM_BIN: string; npm_package_json: string; NVM_INC: string; HOMEBREW_PREFIX: string; GTK_MODULES: string; XDG_SEAT_PATH: string; VSCODE_GIT_ASKPASS_MAIN: string; LC_MONETARY: string; VSCODE_GIT_ASKPASS_NODE: string; npm_config_userconfig: string; npm_config_local_prefix: string; CINNAMON_VERSION: string; DBUS_SESSION_BUS_ADDRESS: string; npm_config_engine_strict: string; COLORTERM: string; COLOR: string; NVM_DIR: string; npm_config_metrics_registry: string; QT_QPA_PLATFORMTHEME: string; INFOPATH: string; LOGNAME: string; _: string; npm_config_prefix: string; XDG_SESSION_CLASS: string; TERM: string; GTK_OVERLAY_SCROLLING: string; XDG_SESSION_ID: string; npm_config_cache: string; GNOME_DESKTOP_SESSION_ID: string; npm_config_node_gyp: string; PATH: string; SESSION_MANAGER: string; GDM_LANG: string; HOMEBREW_CELLAR: string; GTK3_MODULES: string; NODE: string; npm_package_name: string; XDG_SESSION_PATH: string; LC_ADDRESS: string; GNOME_TERMINAL_SCREEN: string; XDG_RUNTIME_DIR: string; GDK_BACKEND: string; DISPLAY: string; LANG: string; XDG_CURRENT_DESKTOP: string; LC_TELEPHONE: string; XDG_SESSION_DESKTOP: string; XAUTHORITY: string; LS_COLORS: string; VSCODE_GIT_IPC_HANDLE: string; GNOME_TERMINAL_SERVICE: string; TERM_PROGRAM: string; npm_lifecycle_script: string; SSH_AUTH_SOCK: string; XDG_GREETER_DATA_DIR: string; ORIGINAL_XDG_CURRENT_DESKTOP: string; SHELL: string; LC_NAME: string; npm_package_version: string; npm_lifecycle_event: string; QT_ACCESSIBILITY: string; NO_AT_BRIDGE: string; GDMSESSION: string; LESSCLOSE: string; LC_MEASUREMENT: string; GPG_AGENT_INFO: string; LC_IDENTIFICATION: string; VSCODE_GIT_ASKPASS_EXTRA_ARGS: string; XDG_VTNR: string; npm_config_globalconfig: string; npm_config_init_module: string; PWD: string; npm_execpath: string; XDG_CONFIG_DIRS: string; NVM_CD_FLAGS: string; XDG_DATA_DIRS: string; npm_config_global_prefix: string; HOMEBREW_REPOSITORY: string; LC_NUMERIC: string; npm_command: string; LC_PAPER: string; MANPATH: string; VTE_VERSION: string; INIT_CWD: string; EDITOR: string; NODE_ENV: string; [key: `PUBLIC_${string}`]: undefined; [key: `${string}`]: string | undefined; }}
/** * 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. * * 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. * * ```ts * import { env } from '$env/dynamic/public'; * console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE); * ``` */declare module '$env/dynamic/public' { export const env: { PUBLIC_ORIGIN: string; PUBLIC_SHARE_PREFIX: string; PUBLIC_GOOGLE_ANALYTICS_ID: string; PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID: string; PUBLIC_ANNOUNCEMENT_BANNERS: string; PUBLIC_APP_NAME: string; PUBLIC_APP_ASSETS: string; PUBLIC_APP_COLOR: string; PUBLIC_APP_DATA_SHARING: string; PUBLIC_APP_DISCLAIMER: string; PUBLIC_VERSION: string; [key: `PUBLIC_${string}`]: string | undefined; }}1234567891011121314151617181920212223242526272829303132333435export { matchers } from './matchers.js';
export const nodes = [ () => import('./nodes/0'), () => import('./nodes/1'), () => import('./nodes/2'), () => import('./nodes/3'), () => import('./nodes/4'), () => import('./nodes/5'), () => import('./nodes/6'), () => import('./nodes/7'), () => import('./nodes/8'), () => import('./nodes/9'), () => import('./nodes/10')];
export const server_loads = [0];
export const dictionary = { "/": [2], "/conversations": [~4], "/conversation/[id]": [~3], "/login": [~5], "/login/callback": [~6], "/logout": [~7], "/privacy": [8], "/r/[id]": [~9], "/settings": [~10] };
export const hooks = { handleError: (({ error }) => { console.error(error) }),};
export { default as root } from '../root.svelte';1export const matchers = {};1export { default as component } from "../../../../src/routes/+layout.svelte";1export { default as component } from "../../../../src/routes/+error.svelte";1export { default as component } from "../../../../src/routes/+page.svelte";1export { default as component } from "../../../../src/routes/conversation/[id]/+page.svelte";1export { default as component } from "../../../../src/routes/privacy/+page.svelte";1export { default as component } from "../../../../src/routes/r/[id]/+page.svelte";1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556<!-- This file is generated by @sveltejs/kit — do not edit it! --><script> import { setContext, afterUpdate, onMount, tick } from 'svelte'; import { browser } from '$app/environment';
// stores export let stores; export let page;
export let constructors; export let components = []; export let form; export let data_0 = null; export let data_1 = null;
if (!browser) { setContext('__svelte__', stores); }
$: stores.page.set(page); afterUpdate(stores.page.notify);
let mounted = false; let navigated = false; let title = null;
onMount(() => { const unsubscribe = stores.page.subscribe(() => { if (mounted) { navigated = true; tick().then(() => { title = document.title || 'untitled page'; }); } });
mounted = true; return unsubscribe; });</script>
{#if constructors[1]} <svelte:component this={constructors[0]} bind:this={components[0]} data={data_0}> <svelte:component this={constructors[1]} bind:this={components[1]} data={data_1} {form} /> </svelte:component>{:else} <svelte:component this={constructors[0]} bind:this={components[0]} data={data_0} {form} />{/if}
{#if mounted} <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"> {#if navigated} {title} {/if} </div>{/if}123456789101112131415161718192021222324252627282930
import root from '../root.svelte';import { set_building } from '__sveltekit/environment';import { set_assets } from '__sveltekit/paths';import { set_private_env, set_public_env } from '../../../node_modules/@sveltejs/kit/src/runtime/shared-server.js';
export const options = { app_template_contains_nonce: false, csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}}, csrf_check_origin: false, track_server_fetches: false, embedded: false, env_public_prefix: 'PUBLIC_', env_private_prefix: '', hooks: null, // added lazily, via `get_hooks` preload_strategy: "modulepreload", root, service_worker: false, templates: { 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", 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" }, version_hash: "1ji7gzf"};
export function get_hooks() { return import("../../../src/hooks.server.ts");}
export { set_assets, set_building, set_private_env, set_public_env };123456789101112131415161718192021222324252627282930313233343536373839404142434445{ "compilerOptions": { "paths": { "$lib": [ "../src/lib" ], "$lib/*": [ "../src/lib/*" ] }, "rootDirs": [ "..", "./types" ], "importsNotUsedAsValues": "error", "isolatedModules": true, "preserveValueImports": true, "lib": [ "esnext", "DOM", "DOM.Iterable" ], "moduleResolution": "node", "module": "esnext", "target": "esnext" }, "include": [ "ambient.d.ts", "./types/**/$types.d.ts", "../vite.config.ts", "../src/**/*.js", "../src/**/*.ts", "../src/**/*.svelte", "../tests/**/*.js", "../tests/**/*.ts", "../tests/**/*.svelte" ], "exclude": [ "../node_modules/**", "./[!ambient.d.ts]**", "../src/service-worker.js", "../src/service-worker.ts", "../src/service-worker.d.ts" ]}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "/": [ "src/routes/+layout.server.ts", "src/routes/+layout.server.ts" ], "/admin/export": [ "src/routes/admin/export/+server.ts" ], "/conversations": [ "src/routes/conversations/+page.server.ts", "src/routes/+layout.server.ts" ], "/conversation": [ "src/routes/conversation/+server.ts" ], "/conversation/[id]": [ "src/routes/conversation/[id]/+page.server.ts", "src/routes/+layout.server.ts", "src/routes/conversation/[id]/+server.ts" ], "/conversation/[id]/message/[messageId]/prompt": [ "src/routes/conversation/[id]/message/[messageId]/prompt/+server.ts" ], "/conversation/[id]/message/[messageId]/vote": [ "src/routes/conversation/[id]/message/[messageId]/vote/+server.ts" ], "/conversation/[id]/share": [ "src/routes/conversation/[id]/share/+server.ts" ], "/conversation/[id]/stop-generating": [ "src/routes/conversation/[id]/stop-generating/+server.ts" ], "/conversation/[id]/summarize": [ "src/routes/conversation/[id]/summarize/+server.ts" ], "/conversation/[id]/web-search": [ "src/routes/conversation/[id]/web-search/+server.ts" ], "/login": [ "src/routes/login/+page.server.ts", "src/routes/+layout.server.ts" ], "/login/callback": [ "src/routes/login/callback/+page.server.ts", "src/routes/+layout.server.ts" ], "/logout": [ "src/routes/logout/+page.server.ts", "src/routes/+layout.server.ts" ], "/privacy": [ "src/routes/+layout.server.ts" ], "/r/[id]": [ "src/routes/r/[id]/+page.server.ts", "src/routes/+layout.server.ts" ], "/r/[id]/message/[messageId]/prompt": [ "src/routes/r/[id]/message/[messageId]/prompt/+server.ts" ], "/search/[id]": [ "src/routes/search/[id]/+server.ts" ], "/settings": [ "src/routes/settings/+page.server.ts", "src/routes/+layout.server.ts" ]}123456789101112131415161718192021222324import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageParentData = EnsureDefined<LayoutData>;type LayoutRouteId = RouteId | "/" | "/conversation/[id]" | "/conversations" | "/login" | "/login/callback" | "/logout" | "/privacy" | "/r/[id]" | "/settings" | nulltype LayoutParams = RouteParams & { id?: string }type LayoutServerParentData = EnsureDefined<{}>;type LayoutParentData = EnsureDefined<{}>;
export type PageServerData = null;export type PageData = Expand<PageParentData>;export type LayoutServerLoad<OutputData extends OutputDataShape<LayoutServerParentData> = OutputDataShape<LayoutServerParentData>> = Kit.ServerLoad<LayoutParams, LayoutServerParentData, OutputData, LayoutRouteId>;export type LayoutServerLoadEvent = Parameters<LayoutServerLoad>[0];export type LayoutServerData = Expand<OptionalUnion<EnsureDefined<Kit.AwaitedProperties<Awaited<ReturnType<typeof import('./proxy+layout.server.js').load>>>>>>;export type LayoutData = Expand<Omit<LayoutParentData, keyof LayoutServerData> & EnsureDefined<LayoutServerData>>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;12345678import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/admin/export';
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;12345678import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/conversation';
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789101112131415161718192021222324import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string }type RouteId = '/conversation/[id]';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageServerParentData = EnsureDefined<import('../../$types.js').LayoutServerData>;type PageParentData = EnsureDefined<import('../../$types.js').LayoutData>;
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;export type PageServerLoadEvent = Parameters<PageServerLoad>[0];export type ActionData = unknown;export type PageServerData = Expand<OptionalUnion<EnsureDefined<Kit.AwaitedProperties<Awaited<ReturnType<typeof import('../../../../../../src/routes/conversation/[id]/+page.server.js').load>>>>>>;export type PageData = Expand<Omit<PageParentData, keyof PageServerData> & EnsureDefined<PageServerData>>;export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string; messageId: string }type RouteId = '/conversation/[id]/message/[messageId]/prompt';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string; messageId: string }type RouteId = '/conversation/[id]/message/[messageId]/vote';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string }type RouteId = '/conversation/[id]/share';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string }type RouteId = '/conversation/[id]/stop-generating';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string }type RouteId = '/conversation/[id]/summarize';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string }type RouteId = '/conversation/[id]/web-search';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;12345678910111213141516171819202122232425262728import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/conversations';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageServerParentData = EnsureDefined<import('../$types.js').LayoutServerData>;type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;export type PageServerLoadEvent = Parameters<PageServerLoad>[0];type ExcludeActionFailure<T> = T extends Kit.ActionFailure<any> ? never : T extends void ? never : T;type ActionsSuccess<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: ExcludeActionFailure<Awaited<ReturnType<T[Key]>>>; }[keyof T];type ExtractActionFailure<T> = T extends Kit.ActionFailure<infer X> ? X extends void ? never : X : never;type ActionsFailure<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: Exclude<ExtractActionFailure<Awaited<ReturnType<T[Key]>>>, void>; }[keyof T];type ActionsExport = typeof import('../../../../../src/routes/conversations/+page.server.js').actionsexport type SubmitFunction = Kit.SubmitFunction<Expand<ActionsSuccess<ActionsExport>>, Expand<ActionsFailure<ActionsExport>>>export type ActionData = Expand<Kit.AwaitedActions<ActionsExport>> | null;export type PageServerData = null;export type PageData = Expand<PageParentData>;export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;12345678910111213141516171819202122232425262728import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/login';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageServerParentData = EnsureDefined<import('../$types.js').LayoutServerData>;type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;export type PageServerLoadEvent = Parameters<PageServerLoad>[0];type ExcludeActionFailure<T> = T extends Kit.ActionFailure<any> ? never : T extends void ? never : T;type ActionsSuccess<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: ExcludeActionFailure<Awaited<ReturnType<T[Key]>>>; }[keyof T];type ExtractActionFailure<T> = T extends Kit.ActionFailure<infer X> ? X extends void ? never : X : never;type ActionsFailure<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: Exclude<ExtractActionFailure<Awaited<ReturnType<T[Key]>>>, void>; }[keyof T];type ActionsExport = typeof import('../../../../../src/routes/login/+page.server.js').actionsexport type SubmitFunction = Kit.SubmitFunction<Expand<ActionsSuccess<ActionsExport>>, Expand<ActionsFailure<ActionsExport>>>export type ActionData = Expand<Kit.AwaitedActions<ActionsExport>> | null;export type PageServerData = null;export type PageData = Expand<PageParentData>;export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;12345678910111213141516171819202122import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/login/callback';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageServerParentData = EnsureDefined<import('../../$types.js').LayoutServerData>;type PageParentData = EnsureDefined<import('../../$types.js').LayoutData>;
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;export type PageServerLoadEvent = Parameters<PageServerLoad>[0];export type ActionData = unknown;export type PageServerData = Expand<OptionalUnion<EnsureDefined<Kit.AwaitedProperties<Awaited<ReturnType<typeof import('../../../../../../src/routes/login/callback/+page.server.js').load>>>>>>;export type PageData = Expand<Omit<PageParentData, keyof PageServerData> & EnsureDefined<PageServerData>>;export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;12345678910111213141516171819202122232425262728import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/logout';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageServerParentData = EnsureDefined<import('../$types.js').LayoutServerData>;type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;export type PageServerLoadEvent = Parameters<PageServerLoad>[0];type ExcludeActionFailure<T> = T extends Kit.ActionFailure<any> ? never : T extends void ? never : T;type ActionsSuccess<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: ExcludeActionFailure<Awaited<ReturnType<T[Key]>>>; }[keyof T];type ExtractActionFailure<T> = T extends Kit.ActionFailure<infer X> ? X extends void ? never : X : never;type ActionsFailure<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: Exclude<ExtractActionFailure<Awaited<ReturnType<T[Key]>>>, void>; }[keyof T];type ActionsExport = typeof import('../../../../../src/routes/logout/+page.server.js').actionsexport type SubmitFunction = Kit.SubmitFunction<Expand<ActionsSuccess<ActionsExport>>, Expand<ActionsFailure<ActionsExport>>>export type ActionData = Expand<Kit.AwaitedActions<ActionsExport>> | null;export type PageServerData = null;export type PageData = Expand<PageParentData>;export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789101112131415import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/privacy';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
export type PageServerData = null;export type PageData = Expand<PageParentData>;123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566// @ts-nocheckimport { redirect } from "@sveltejs/kit";import type { LayoutServerLoad } from "./$types";import { collections } from "$lib/server/database";import type { Conversation } from "$lib/types/Conversation";import { UrlDependency } from "$lib/types/UrlDependency";import { defaultModel, models, oldModels, validateModel } from "$lib/server/models";import { authCondition, requiresUser } from "$lib/server/auth";import { DEFAULT_SETTINGS } from "$lib/types/Settings";import { SERPAPI_KEY, SERPER_API_KEY, MESSAGES_BEFORE_LOGIN } from "$env/static/private";
export const load = async ({ locals, depends, url }: Parameters<LayoutServerLoad>[0]) => { const { conversations } = collections; const urlModel = url.searchParams.get("model");
depends(UrlDependency.ConversationList);
if (urlModel) { const isValidModel = validateModel(models).safeParse(urlModel).success;
if (isValidModel) { await collections.settings.updateOne( authCondition(locals), { $set: { activeModel: urlModel } }, { upsert: true } ); }
throw redirect(302, url.pathname); }
return { conversations: [], settings: { shareConversationsWithModelAuthors: DEFAULT_SETTINGS.shareConversationsWithModelAuthors, ethicsModalAcceptedAt: null, activeModel: DEFAULT_SETTINGS.activeModel, searchEnabled: false, customPrompts: {}, }, models: models.map((model) => ({ id: model.id, name: model.name, websiteUrl: model.websiteUrl, modelUrl: model.modelUrl, is_local: model.is_local, datasetName: model.datasetName, datasetUrl: model.datasetUrl, displayName: model.displayName, description: model.description, promptExamples: model.promptExamples, parameters: model.parameters, preprompt: model.preprompt, })), oldModels, user: locals.user && { username: locals.user.username, avatarUrl: locals.user.avatarUrl, email: locals.user.email, }, requiresLogin: requiresUser, messagesBeforeLogin: MESSAGES_BEFORE_LOGIN ? parseInt(MESSAGES_BEFORE_LOGIN) : 0, };};1234567891011121314151617181920212223import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string }type RouteId = '/r/[id]';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageServerParentData = EnsureDefined<import('../../$types.js').LayoutServerData>;type PageParentData = EnsureDefined<import('../../$types.js').LayoutData>;
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;export type PageServerLoadEvent = Parameters<PageServerLoad>[0];export type ActionData = unknown;export type PageServerData = Expand<OptionalUnion<EnsureDefined<Kit.AwaitedProperties<Awaited<ReturnType<typeof import('./proxy+page.server.js').load>>>>>>;export type PageData = Expand<Omit<PageParentData, keyof PageServerData> & EnsureDefined<PageServerData>>;export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;123456789import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string; messageId: string }type RouteId = '/r/[id]/message/[messageId]/prompt';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;1234567891011121314151617181920212223242526272829303132333435// @ts-nocheckimport type { PageServerLoad } from "./$types";import { collections } from "$lib/server/database";import { error } from "@sveltejs/kit";import type { WebSearchMessageResult } from "$lib/types/WebSearch";
export const load = async ({ params }: Parameters<PageServerLoad>[0]) => { /*const conversation = await collections.sharedConversations.findOne({ _id: params.id, });
if (!conversation) { throw error(404, "Conversation not found"); }
const webSearchesId = conversation.messages .filter((message) => message.webSearchId) .map((message) => new ObjectId(message.webSearchId));
const results = await collections.webSearches.find({ _id: { $in: webSearchesId } }).toArray();
const searches = Object.fromEntries( results.map((x) => [ x._id.toString(), [...x.messages, { type: "result", id: x._id.toString() } satisfies WebSearchMessageResult], ]) );
return { messages: conversation.messages, title: conversation.title, model: conversation.model, searches, };*/};123456789import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { id: string }type RouteId = '/search/[id]';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;12345678910111213141516171819202122232425262728import type * as Kit from '@sveltejs/kit';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;type RouteParams = { }type RouteId = '/settings';type MaybeWithVoid<T> = {} extends T ? T | void : T;export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>type EnsureDefined<T> = T extends null | undefined ? {} : T;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;export type Snapshot<T = any> = Kit.Snapshot<T>;type PageServerParentData = EnsureDefined<import('../$types.js').LayoutServerData>;type PageParentData = EnsureDefined<import('../$types.js').LayoutData>;
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;export type PageServerLoadEvent = Parameters<PageServerLoad>[0];type ExcludeActionFailure<T> = T extends Kit.ActionFailure<any> ? never : T extends void ? never : T;type ActionsSuccess<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: ExcludeActionFailure<Awaited<ReturnType<T[Key]>>>; }[keyof T];type ExtractActionFailure<T> = T extends Kit.ActionFailure<infer X> ? X extends void ? never : X : never;type ActionsFailure<T extends Record<string, (...args: any) => any>> = { [Key in keyof T]: Exclude<ExtractActionFailure<Awaited<ReturnType<T[Key]>>>, void>; }[keyof T];type ActionsExport = typeof import('../../../../../src/routes/settings/+page.server.js').actionsexport type SubmitFunction = Kit.SubmitFunction<Expand<ActionsSuccess<ActionsExport>>, Expand<ActionsFailure<ActionsExport>>>export type ActionData = Expand<Kit.AwaitedActions<ActionsExport>> | null;export type PageServerData = null;export type PageData = Expand<PageParentData>;export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;.svelte-kit/ambient.d.tsAdded+350
.svelte-kit/generated/client/app.jsAdded+35
.svelte-kit/generated/client/matchers.jsAdded+1
.svelte-kit/generated/client/nodes/0.jsAdded+1
.svelte-kit/generated/client/nodes/1.jsAdded+1
.svelte-kit/generated/client/nodes/10.jsAdded
.svelte-kit/generated/client/nodes/2.jsAdded+1
.svelte-kit/generated/client/nodes/3.jsAdded+1
.svelte-kit/generated/client/nodes/4.jsAdded
.svelte-kit/generated/client/nodes/5.jsAdded
.svelte-kit/generated/client/nodes/6.jsAdded
.svelte-kit/generated/client/nodes/7.jsAdded
.svelte-kit/generated/client/nodes/8.jsAdded+1
.svelte-kit/generated/client/nodes/9.jsAdded+1
.svelte-kit/generated/root.svelteAdded+56
.svelte-kit/generated/server/internal.jsAdded+30
.svelte-kit/tsconfig.jsonAdded+45
.svelte-kit/types/route_meta_data.jsonAdded+68
.svelte-kit/types/src/routes/$types.d.tsAdded+24
.svelte-kit/types/src/routes/admin/export/$types.d.tsAdded+8
.svelte-kit/types/src/routes/conversation/$types.d.tsAdded+8
.svelte-kit/types/src/routes/conversation/[id]/$types.d.tsAdded+24
.svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/prompt/$types.d.tsAdded+9
.svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/vote/$types.d.tsAdded+9
.svelte-kit/types/src/routes/conversation/[id]/share/$types.d.tsAdded+9
.svelte-kit/types/src/routes/conversation/[id]/stop-generating/$types.d.tsAdded+9
.svelte-kit/types/src/routes/conversation/[id]/summarize/$types.d.tsAdded+9
.svelte-kit/types/src/routes/conversation/[id]/web-search/$types.d.tsAdded+9
.svelte-kit/types/src/routes/conversations/$types.d.tsAdded+28
.svelte-kit/types/src/routes/login/$types.d.tsAdded+28
.svelte-kit/types/src/routes/login/callback/$types.d.tsAdded+22
.svelte-kit/types/src/routes/logout/$types.d.tsAdded+28
.svelte-kit/types/src/routes/privacy/$types.d.tsAdded+15
.svelte-kit/types/src/routes/proxy+layout.server.tsAdded+66
.svelte-kit/types/src/routes/r/[id]/$types.d.tsAdded+23
.svelte-kit/types/src/routes/r/[id]/message/[messageId]/prompt/$types.d.tsAdded+9
.svelte-kit/types/src/routes/r/[id]/proxy+page.server.tsAdded+35
.svelte-kit/types/src/routes/search/[id]/$types.d.tsAdded+9
.svelte-kit/types/src/routes/settings/$types.d.tsAdded+28