1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- Agent-assisted SvelteKit page -->
<script lang="ts">
import AgentPanel from '$lib/AgentPanel.svelte';
import { onMount } from 'svelte';
import type { Agent } from '$lib/types';
let agents: Agent[] = $state([]);
let loading = $state(true);
onMount(async () => {
agents = await fetchAgents();
loading = false;
});
</script>
<main class="workspace">
<AgentPanel bind:agents={agents} bind:loading={loading} />
<section class="editor-body">
{#if loading}
<div class="skeleton"></div>
{:else}
{#each agents as agent}
<div class="agent-card">{agent.name}</div>
Terminal
Problems 1
Output
Debug