import type { Component } from 'svelte'; import type { WindowType } from '../board.svelte'; import { lazy } from '../lazy'; /** The windows a page has from the start; WindowSlot imports them directly. */ export type Eager = 'session' | 'note' | 'chip'; /** * Every other window's component, loaded the first time one is opened, so a * page that shows only chats never fetches the terminal, the diff highlighter * or settings. */ export const loaders: Record< Exclude, () => Promise> > = { review: lazy(() => import('./ReviewNode.svelte')), terminal: lazy(() => import('./TerminalNode.svelte')), command: lazy(() => import('./ShellCommandNode.svelte')), trace: lazy(() => import('./TraceNode.svelte')), agents: lazy(() => import('./AgentsNode.svelte')), extensions: lazy(() => import('./ExtensionsNode.svelte')), usage: lazy(() => import('./UsageNode.svelte')), artifact: lazy(() => import('./ArtifactNode.svelte')), display: lazy(() => import('./DisplayNode.svelte')), pty: lazy(() => import('./PtyNode.svelte')), settings: lazy(() => import('./SettingsNode.svelte')), };