@webmcp-auto-ui/ui 2.5.8 → 2.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/agent/AgentConsole.svelte +1 -1
- package/src/agent/GemmaLoader.svelte +4 -4
- package/src/agent/McpConnector.svelte +2 -2
- package/src/agent/RemoteMCPserversDemo.svelte +5 -5
- package/src/agent/SettingsPanel.svelte +3 -3
- package/src/primitives/List.svelte +1 -1
- package/src/widgets/rich/Cards.svelte +1 -1
- package/src/widgets/rich/Chart.svelte +1 -1
- package/src/widgets/rich/D3Widget.svelte +5 -5
- package/src/widgets/rich/DataTable.svelte +1 -1
- package/src/widgets/rich/GridData.svelte +1 -1
- package/src/widgets/rich/Hemicycle.svelte +4 -4
- package/src/widgets/rich/LogViewer.svelte +1 -1
- package/src/widgets/rich/Sankey.svelte +2 -2
- package/src/widgets/rich/Timeline.svelte +1 -1
- package/src/widgets/simple/StatBlock.svelte +1 -1
package/package.json
CHANGED
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
110
110
|
<div class="ac-modal" onclick={(e) => e.stopPropagation()}>
|
|
111
111
|
<div class="ac-modal-header">
|
|
112
|
-
<span class="ac-title">
|
|
112
|
+
<span class="ac-title">Detail</span>
|
|
113
113
|
<button class="ac-clear" onclick={() => modalContent = null}>✕</button>
|
|
114
114
|
</div>
|
|
115
115
|
<pre class="ac-modal-content">{modalContent}</pre>
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
<div class="flex items-center justify-between">
|
|
109
109
|
<span class="text-teal font-medium">
|
|
110
110
|
{#if fromCache}
|
|
111
|
-
⚡ {modelName} (
|
|
111
|
+
⚡ {modelName} (from cache) · {elapsed}s
|
|
112
112
|
{:else}
|
|
113
|
-
✓ {modelName}
|
|
113
|
+
✓ {modelName} ready
|
|
114
114
|
{#if totalMB && totalMB > 0} · {fmt(totalMB)}{/if}
|
|
115
115
|
{#if elapsed > 0} · {elapsed}s{/if}
|
|
116
116
|
{/if}
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<button
|
|
120
120
|
class="text-text2 hover:text-accent2 transition-colors ml-2"
|
|
121
121
|
onclick={onunload}
|
|
122
|
-
>
|
|
122
|
+
>Unload</button>
|
|
123
123
|
{/if}
|
|
124
124
|
</div>
|
|
125
125
|
</div>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
{:else if status === 'error'}
|
|
129
129
|
<div class="bg-surface/90 backdrop-blur-md border border-accent2 rounded-xl shadow-2xl p-4 font-mono text-xs">
|
|
130
130
|
<div class="flex items-center justify-between">
|
|
131
|
-
<span class="text-accent2 font-medium">✕ {modelName} —
|
|
131
|
+
<span class="text-accent2 font-medium">✕ {modelName} — failed</span>
|
|
132
132
|
</div>
|
|
133
133
|
{#if error}
|
|
134
134
|
<p class="text-accent2/80 mt-1.5 break-words">{error}</p>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
disabled={!url.trim() || connecting}
|
|
70
70
|
class="text-xs font-mono px-2 h-7 rounded border border-border2 bg-surface2 hover:border-accent/50 hover:text-accent text-text2 transition-colors disabled:opacity-40 disabled:cursor-not-allowed flex-shrink-0"
|
|
71
71
|
>
|
|
72
|
-
{connecting ? '
|
|
72
|
+
{connecting ? 'connecting…' : 'connect'}
|
|
73
73
|
</button>
|
|
74
74
|
{:else}
|
|
75
75
|
<button
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
disconnect
|
|
80
80
|
</button>
|
|
81
81
|
{/if}
|
|
82
|
-
<McpStatus {connecting} {connected} name={serverName || '
|
|
82
|
+
<McpStatus {connecting} {connected} name={serverName || 'not connected'} />
|
|
83
83
|
</div>
|
|
84
84
|
|
|
85
85
|
{#if !compact}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
<div class="flex flex-col gap-2">
|
|
44
44
|
<span class="text-[9px] font-mono uppercase tracking-wider text-text2">
|
|
45
|
-
|
|
45
|
+
Available MCP servers
|
|
46
46
|
</span>
|
|
47
47
|
|
|
48
48
|
<div class="flex flex-col gap-1">
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<button
|
|
76
76
|
onclick={() => ondisconnect?.(server.url)}
|
|
77
77
|
class="text-xs font-mono px-1.5 h-6 rounded text-teal group-hover:text-accent2 transition-colors"
|
|
78
|
-
title="
|
|
78
|
+
title="Disconnect"
|
|
79
79
|
>
|
|
80
80
|
<span class="group-hover:hidden">✓</span>
|
|
81
81
|
<span class="hidden group-hover:inline text-accent2">×</span>
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
onclick={() => onconnect?.(server.url)}
|
|
86
86
|
class="text-[10px] font-mono px-1.5 h-6 rounded border border-border2 bg-surface2 hover:border-accent/50 hover:text-accent text-text2 transition-colors"
|
|
87
87
|
>
|
|
88
|
-
|
|
88
|
+
connect
|
|
89
89
|
</button>
|
|
90
90
|
{/if}
|
|
91
91
|
</div>
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
disabled={allConnected}
|
|
101
101
|
class="text-xs font-mono px-2 h-7 rounded border border-accent/40 bg-accent/10 text-accent hover:bg-accent/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed"
|
|
102
102
|
>
|
|
103
|
-
|
|
103
|
+
Load all
|
|
104
104
|
</button>
|
|
105
105
|
{#if anyConnected}
|
|
106
106
|
<button
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}}
|
|
112
112
|
class="text-xs font-mono px-2 h-7 rounded border border-border2 bg-surface2 hover:border-accent2/50 hover:text-accent2 text-text2 transition-colors"
|
|
113
113
|
>
|
|
114
|
-
|
|
114
|
+
Disconnect all
|
|
115
115
|
</button>
|
|
116
116
|
{/if}
|
|
117
117
|
</div>
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
</label>
|
|
232
232
|
{#if contextRAGEnabled}
|
|
233
233
|
<div class="text-[9px] font-mono text-text2/60 pl-5">
|
|
234
|
-
|
|
234
|
+
Semantic context compaction via vector embeddings
|
|
235
235
|
</div>
|
|
236
236
|
{/if}
|
|
237
237
|
</section>
|
|
@@ -246,9 +246,9 @@
|
|
|
246
246
|
/>
|
|
247
247
|
<span class="text-xs font-mono text-text1">Prompt caching</span>
|
|
248
248
|
{#if modelType === 'wasm'}
|
|
249
|
-
<span class="text-[10px] font-mono text-text2/50 ml-auto">API
|
|
249
|
+
<span class="text-[10px] font-mono text-text2/50 ml-auto">Anthropic API only</span>
|
|
250
250
|
{:else}
|
|
251
|
-
<span class="text-[10px] font-mono text-text2 ml-auto"
|
|
251
|
+
<span class="text-[10px] font-mono text-text2 ml-auto">saves ~80% tokens</span>
|
|
252
252
|
{/if}
|
|
253
253
|
</label>
|
|
254
254
|
</div>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
<div class="overflow-y-auto divide-y divide-border {cls}" style="max-height: {maxHeight};">
|
|
7
7
|
{#if items.length === 0}
|
|
8
|
-
{#if empty}{@render empty()}{:else}<p class="py-4 text-center text-sm text-text2">
|
|
8
|
+
{#if empty}{@render empty()}{:else}<p class="py-4 text-center text-sm text-text2">No items</p>{/if}
|
|
9
9
|
{:else}
|
|
10
10
|
{#each items as it, i (i)}{@render item(it, i)}{/each}
|
|
11
11
|
{/if}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</script>
|
|
13
13
|
<div class="bg-surface border border-border rounded-lg p-3 md:p-4 font-sans">
|
|
14
14
|
{#if spec.title}<h3 class="text-sm font-semibold text-text1 mb-3">{spec.title}</h3>{/if}
|
|
15
|
-
{#if cards.length===0}<p class="text-text2 text-sm">{spec.emptyMessage??'
|
|
15
|
+
{#if cards.length===0}<p class="text-text2 text-sm">{spec.emptyMessage??'No items'}</p>
|
|
16
16
|
{:else}
|
|
17
17
|
<div class="grid" style="grid-template-columns: repeat(auto-fill, minmax({spec.minCardWidth??'180px'}, 1fr)); gap: {spec.gap??'1rem'};">
|
|
18
18
|
{#each cards as card}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</script>
|
|
46
46
|
<div class="bg-surface border border-border rounded-lg p-3 md:p-4 font-sans">
|
|
47
47
|
{#if spec.title}<h3 class="text-sm font-semibold text-text1 mb-3">{spec.title}</h3>{/if}
|
|
48
|
-
{#if !datasets.length}<p class="text-text2 text-sm">
|
|
48
|
+
{#if !datasets.length}<p class="text-text2 text-sm">No data</p>
|
|
49
49
|
{:else if isPie}
|
|
50
50
|
<div class="relative flex flex-col sm:flex-row items-center gap-4 sm:gap-6">
|
|
51
51
|
<svg viewBox="-1 -1 2 2" class="w-40 h-40 flex-shrink-0" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
function renderHexHeatmap(d3: typeof import('d3'), el: HTMLDivElement, d: D3Spec) {
|
|
30
30
|
const values = (d.data as { values?: number[][] })?.values;
|
|
31
31
|
if (!values || values.length === 0) {
|
|
32
|
-
el.innerHTML = '<p class="text-xs text-text2 p-2">
|
|
32
|
+
el.innerHTML = '<p class="text-xs text-text2 p-2">No data (values missing)</p>';
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
const cfg = d.config ?? {};
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
function renderRadial(d3: typeof import('d3'), el: HTMLDivElement, d: D3Spec) {
|
|
91
91
|
const segments = (d.data as { segments?: { label: string; value: number; color?: string }[] })?.segments;
|
|
92
92
|
if (!segments || segments.length === 0) {
|
|
93
|
-
el.innerHTML = '<p class="text-xs text-text2 p-2">
|
|
93
|
+
el.innerHTML = '<p class="text-xs text-text2 p-2">No data (segments missing)</p>';
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
const cfg = d.config ?? {};
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
type TreeNode = { name: string; value?: number; children?: TreeNode[] };
|
|
156
156
|
const rawData = d.data as { children?: TreeNode[] };
|
|
157
157
|
if (!rawData?.children || rawData.children.length === 0) {
|
|
158
|
-
el.innerHTML = '<p class="text-xs text-text2 p-2">
|
|
158
|
+
el.innerHTML = '<p class="text-xs text-text2 p-2">No data (children missing)</p>';
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
const cfg = d.config ?? {};
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
type FLink = { source: string; target: string; value?: number };
|
|
220
220
|
const rawData = d.data as { nodes?: FNode[]; links?: FLink[] };
|
|
221
221
|
if (!rawData?.nodes || rawData.nodes.length === 0) {
|
|
222
|
-
el.innerHTML = '<p class="text-xs text-text2 p-2">
|
|
222
|
+
el.innerHTML = '<p class="text-xs text-text2 p-2">No data (nodes missing)</p>';
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
225
|
const nodes: FNode[] = rawData.nodes.map((n) => ({ ...n }));
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
if (!container) return;
|
|
315
315
|
container.innerHTML = '';
|
|
316
316
|
if (!spec?.preset) {
|
|
317
|
-
container.innerHTML = '<p class="text-xs text-text2 p-2">
|
|
317
|
+
container.innerHTML = '<p class="text-xs text-text2 p-2">No preset specified.</p>';
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
switch (spec.preset) {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div class="bg-surface border border-border rounded-lg p-3 md:p-4 font-sans">
|
|
21
21
|
{#if spec.title}<h3 class="text-sm font-semibold text-text1 mb-3">{spec.title}</h3>{/if}
|
|
22
22
|
{#if columns.length===0&&rows.length===0}
|
|
23
|
-
<p class="text-text2 text-sm">{spec.emptyMessage??'
|
|
23
|
+
<p class="text-text2 text-sm">{spec.emptyMessage??'No data'}</p>
|
|
24
24
|
{:else}
|
|
25
25
|
<div class="overflow-auto max-h-[480px] rounded border border-border">
|
|
26
26
|
<table class="w-full border-collapse">
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</script>
|
|
14
14
|
<div class="bg-surface border border-border rounded-lg p-3 md:p-4 font-sans">
|
|
15
15
|
{#if spec.title}<h3 class="text-sm font-semibold text-text1 mb-3">{spec.title}</h3>{/if}
|
|
16
|
-
{#if !columns.length&&!rows.length}<p class="text-text2 text-sm">
|
|
16
|
+
{#if !columns.length&&!rows.length}<p class="text-text2 text-sm">No data</p>
|
|
17
17
|
{:else}
|
|
18
18
|
<div class="overflow-auto rounded border border-border">
|
|
19
19
|
<table class="w-full border-collapse text-xs font-mono">
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</script>
|
|
38
38
|
<div class="bg-surface border border-border rounded-lg p-3 md:p-4 font-sans">
|
|
39
39
|
{#if spec.title}<h3 class="text-sm font-semibold text-text1 mb-3">{spec.title}</h3>{/if}
|
|
40
|
-
{#if !groups.length||!total}<p class="text-text2 text-sm">
|
|
40
|
+
{#if !groups.length||!total}<p class="text-text2 text-sm">No data</p>
|
|
41
41
|
{:else}
|
|
42
42
|
<div class="relative">
|
|
43
43
|
<svg viewBox="0 0 {W} {H}" class="block w-full max-h-[220px]" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
onmouseenter={()=>{const g=groups.find(g=>g.id===s.gid);if(g)tooltip={label:g.label,seats:g.seats};}}
|
|
53
53
|
onmouseleave={()=>tooltip=null}
|
|
54
54
|
ondblclick={()=>{const g=groups.find(g=>g.id===s.gid);if(g)ongroupclick?.(g);}}>
|
|
55
|
-
{#if s.gid}<title>Double-
|
|
55
|
+
{#if s.gid}<title>Double-click to interact</title>{/if}
|
|
56
56
|
</circle>
|
|
57
57
|
{/each}
|
|
58
|
-
<text x={cx} y={cy+18} text-anchor="middle" font-size="11" fill="var(--color-text2)" font-family="system-ui">{total}
|
|
58
|
+
<text x={cx} y={cy+18} text-anchor="middle" font-size="11" fill="var(--color-text2)" font-family="system-ui">{total} seats</text>
|
|
59
59
|
</svg>
|
|
60
60
|
{#if tooltip}
|
|
61
61
|
<div class="absolute top-0 right-0 bg-surface2 border border-border2 rounded px-2 py-1 text-xs text-text1 pointer-events-none">
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
{#each legend as g}
|
|
68
68
|
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
|
69
69
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
70
|
-
<div class="flex items-center gap-1.5 text-xs cursor-pointer hover:opacity-80" role="button" tabindex="0" title="Double-
|
|
70
|
+
<div class="flex items-center gap-1.5 text-xs cursor-pointer hover:opacity-80" role="button" tabindex="0" title="Double-click to interact" ondblclick={()=>ongroupclick?.(g)} onkeydown={(e)=>{if(e.key==="Enter")ongroupclick?.(g)}}>
|
|
71
71
|
<div class="w-3 h-3 rounded-full flex-shrink-0" style="background:{g.color};"></div>
|
|
72
72
|
<span class="text-text2">{g.label}</span>
|
|
73
73
|
<span class="text-text2">{g.seats}</span>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="bg-bg border border-border rounded-lg font-mono">
|
|
10
10
|
{#if spec.title}<div class="px-4 py-2 border-b border-border text-xs text-text2">{spec.title}</div>{/if}
|
|
11
11
|
<div class="overflow-y-auto text-xs leading-5 p-3 flex flex-col gap-0.5" style="max-height:{spec.maxHeight??'320px'};">
|
|
12
|
-
{#if !entries.length}<span class="text-text2">
|
|
12
|
+
{#if !entries.length}<span class="text-text2">No log entries</span>
|
|
13
13
|
{:else}
|
|
14
14
|
{#each entries as e}
|
|
15
15
|
<div class="flex gap-2 items-start hover:bg-surface2 px-1 rounded">
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
</script>
|
|
13
13
|
<div class="bg-surface border border-border rounded-lg p-3 md:p-4 font-sans">
|
|
14
14
|
{#if spec.title}<h3 class="text-sm font-semibold text-text1 mb-3">{spec.title}</h3>{/if}
|
|
15
|
-
{#if !nodes.length||!links.length}<p class="text-text2 text-sm">
|
|
15
|
+
{#if !nodes.length||!links.length}<p class="text-text2 text-sm">No flow data</p>
|
|
16
16
|
{:else}
|
|
17
|
-
<div class="text-xs text-text2 mb-2 font-mono">{nodes.length}
|
|
17
|
+
<div class="text-xs text-text2 mb-2 font-mono">{nodes.length} nodes · {links.length} flows</div>
|
|
18
18
|
<div class="flex flex-col gap-1.5">
|
|
19
19
|
{#each sorted as link}
|
|
20
20
|
{@const src=nodeMap.get(link.source)}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</script>
|
|
9
9
|
<div class="bg-surface border border-border rounded-lg p-3 md:p-4 font-sans">
|
|
10
10
|
{#if spec.title}<h3 class="text-sm font-semibold text-text1 mb-3">{spec.title}</h3>{/if}
|
|
11
|
-
{#if events.length===0}<p class="text-text2 text-sm">
|
|
11
|
+
{#if events.length===0}<p class="text-text2 text-sm">No events</p>
|
|
12
12
|
{:else}
|
|
13
13
|
<div class="py-1">
|
|
14
14
|
{#each events as event, i}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const trendArrow = $derived(data.trendDir === 'up' ? '↑' : data.trendDir === 'down' ? '↓' : '→');
|
|
7
7
|
</script>
|
|
8
8
|
<div class="p-4 md:p-5">
|
|
9
|
-
<div class="text-[11px] font-mono text-text2 mb-1 uppercase tracking-widest">{data.label ?? '
|
|
9
|
+
<div class="text-[11px] font-mono text-text2 mb-1 uppercase tracking-widest">{data.label ?? 'Metric'}</div>
|
|
10
10
|
<div class="text-3xl md:text-4xl font-bold text-text1 leading-none">{data.value ?? '—'}</div>
|
|
11
11
|
{#if data.trend}
|
|
12
12
|
<div class="text-xs font-mono mt-2 {trendColor}">{trendArrow} {data.trend}</div>
|