forked from kenn-io/agentsview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgentDirSettings.svelte
More file actions
93 lines (85 loc) · 2.03 KB
/
Copy pathAgentDirSettings.svelte
File metadata and controls
93 lines (85 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<script lang="ts">
import SettingsSection from "./SettingsSection.svelte";
import { settings } from "../../stores/settings.svelte.js";
const AGENT_LABELS: Record<string, string> = {
claude: "Claude Code",
cowork: "Claude Cowork",
codex: "Codex",
copilot: "Copilot",
gemini: "Gemini",
opencode: "OpenCode",
openhands: "OpenHands CLI",
cursor: "Cursor",
amp: "Amp",
iflow: "iFlow",
"vscode-copilot": "VSCode Copilot",
pi: "Pi",
"visualstudio-copilot": "Visual Studio Copilot",
qwen: "Qwen Code",
openclaw: "OpenClaw",
qclaw: "QClaw",
zed: "Zed",
kimi: "Kimi",
workbuddy: "WorkBuddy",
piebald: "Piebald",
antigravity: "Antigravity",
"antigravity-cli": "Antigravity CLI",
shelley: "Shelley",
};
</script>
<SettingsSection
title="Agent Directories"
description="Directories scanned for session data. Configured via environment variables or config file."
>
<div class="dir-list">
{#each Object.entries(settings.agentDirs) as [agent, dirs]}
<div class="dir-row">
<span class="dir-agent">{AGENT_LABELS[agent] ?? agent}</span>
<div class="dir-paths">
{#if dirs.length === 0}
<span class="dir-none">Not configured</span>
{:else}
{#each dirs as dir}
<code class="dir-path">{dir}</code>
{/each}
{/if}
</div>
</div>
{/each}
</div>
</SettingsSection>
<style>
.dir-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.dir-row {
display: flex;
align-items: baseline;
gap: 12px;
}
.dir-agent {
font-size: 12px;
font-weight: 500;
color: var(--text-secondary);
min-width: 110px;
flex-shrink: 0;
}
.dir-paths {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.dir-path {
font-size: 11px;
color: var(--text-muted);
word-break: break-all;
}
.dir-none {
font-size: 11px;
color: var(--text-muted);
font-style: italic;
}
</style>