@geminilight/mindos 0.5.9 → 0.5.10
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/README.md +1 -1
- package/app/app/api/skills/route.ts +1 -1
- package/app/app/globals.css +10 -2
- package/app/app/login/page.tsx +1 -1
- package/app/app/view/[...path]/ViewPageClient.tsx +6 -1
- package/app/app/view/[...path]/not-found.tsx +1 -1
- package/app/components/AskModal.tsx +4 -4
- package/app/components/Breadcrumb.tsx +2 -2
- package/app/components/DirView.tsx +6 -6
- package/app/components/FileTree.tsx +2 -2
- package/app/components/HomeContent.tsx +7 -7
- package/app/components/OnboardingView.tsx +1 -1
- package/app/components/SearchModal.tsx +1 -1
- package/app/components/SettingsModal.tsx +2 -2
- package/app/components/SetupWizard.tsx +1 -1400
- package/app/components/Sidebar.tsx +4 -4
- package/app/components/SidebarLayout.tsx +9 -0
- package/app/components/SyncStatusBar.tsx +3 -3
- package/app/components/TableOfContents.tsx +1 -1
- package/app/components/UpdateBanner.tsx +1 -1
- package/app/components/ask/FileChip.tsx +1 -1
- package/app/components/ask/MentionPopover.tsx +4 -4
- package/app/components/ask/MessageList.tsx +1 -1
- package/app/components/ask/SessionHistory.tsx +2 -2
- package/app/components/renderers/config/ConfigRenderer.tsx +1 -1
- package/app/components/renderers/csv/BoardView.tsx +2 -2
- package/app/components/renderers/csv/ConfigPanel.tsx +5 -5
- package/app/components/renderers/csv/GalleryView.tsx +1 -1
- package/app/components/renderers/graph/GraphRenderer.tsx +1 -1
- package/app/components/renderers/summary/SummaryRenderer.tsx +1 -1
- package/app/components/renderers/workflow/WorkflowRenderer.tsx +2 -2
- package/app/components/settings/KnowledgeTab.tsx +1 -1
- package/app/components/settings/McpTab.tsx +27 -23
- package/app/components/settings/PluginsTab.tsx +4 -4
- package/app/components/settings/Primitives.tsx +1 -1
- package/app/components/settings/SyncTab.tsx +8 -8
- package/app/components/setup/StepAI.tsx +67 -0
- package/app/components/setup/StepAgents.tsx +237 -0
- package/app/components/setup/StepDots.tsx +39 -0
- package/app/components/setup/StepKB.tsx +237 -0
- package/app/components/setup/StepPorts.tsx +121 -0
- package/app/components/setup/StepReview.tsx +211 -0
- package/app/components/setup/StepSecurity.tsx +78 -0
- package/app/components/setup/constants.tsx +13 -0
- package/app/components/setup/index.tsx +464 -0
- package/app/components/setup/types.ts +53 -0
- package/app/lib/i18n.ts +4 -4
- package/package.json +1 -1
- package/skills/project-wiki/SKILL.md +92 -63
|
@@ -121,7 +121,7 @@ export default function Sidebar({ fileTree, collapsed = false, onCollapse, onExp
|
|
|
121
121
|
|
|
122
122
|
{/* Mobile navbar */}
|
|
123
123
|
<header className="md:hidden fixed top-0 left-0 right-0 z-30 bg-card border-b border-border flex items-center justify-between px-3 py-2" style={{ paddingTop: 'env(safe-area-inset-top, 0px)' }}>
|
|
124
|
-
<button onClick={() => setMobileOpen(true)} className="p-
|
|
124
|
+
<button onClick={() => setMobileOpen(true)} className="p-3 -ml-1 rounded-lg hover:bg-muted text-muted-foreground hover:text-foreground transition-colors active:bg-accent" aria-label="Open menu">
|
|
125
125
|
<Menu size={20} />
|
|
126
126
|
</button>
|
|
127
127
|
<Link href="/" className="flex items-center gap-2 hover:opacity-80 transition-opacity">
|
|
@@ -132,15 +132,15 @@ export default function Sidebar({ fileTree, collapsed = false, onCollapse, onExp
|
|
|
132
132
|
{/* #8 — Mobile sync dot: visible when there's a problem */}
|
|
133
133
|
<button
|
|
134
134
|
onClick={openSyncSettings}
|
|
135
|
-
className="p-
|
|
135
|
+
className="p-3 rounded-lg hover:bg-muted text-muted-foreground hover:text-foreground transition-colors active:bg-accent flex items-center justify-center"
|
|
136
136
|
aria-label="Sync status"
|
|
137
137
|
>
|
|
138
138
|
<MobileSyncDot status={syncStatus} />
|
|
139
139
|
</button>
|
|
140
|
-
<button onClick={() => setSearchOpen(true)} className="p-
|
|
140
|
+
<button onClick={() => setSearchOpen(true)} className="p-3 rounded-lg hover:bg-muted text-muted-foreground hover:text-foreground transition-colors active:bg-accent" aria-label={t.sidebar.searchTitle}>
|
|
141
141
|
<Search size={20} />
|
|
142
142
|
</button>
|
|
143
|
-
<button onClick={() => setSettingsOpen(true)} className="p-
|
|
143
|
+
<button onClick={() => setSettingsOpen(true)} className="p-3 -mr-1 rounded-lg hover:bg-muted text-muted-foreground hover:text-foreground transition-colors active:bg-accent" aria-label={t.sidebar.settingsTitle}>
|
|
144
144
|
<Settings size={20} />
|
|
145
145
|
</button>
|
|
146
146
|
</div>
|
|
@@ -15,6 +15,14 @@ export default function SidebarLayout({ fileTree, children }: SidebarLayoutProps
|
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<>
|
|
18
|
+
{/* Skip to main content — accessibility for keyboard users */}
|
|
19
|
+
<a
|
|
20
|
+
href="#main-content"
|
|
21
|
+
className="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[60] focus:px-4 focus:py-2 focus:rounded-lg focus:text-sm focus:font-medium focus:font-display"
|
|
22
|
+
style={{ background: 'var(--amber)', color: 'var(--amber-foreground)' }}
|
|
23
|
+
>
|
|
24
|
+
Skip to main content
|
|
25
|
+
</a>
|
|
18
26
|
<Sidebar
|
|
19
27
|
fileTree={fileTree}
|
|
20
28
|
collapsed={collapsed}
|
|
@@ -22,6 +30,7 @@ export default function SidebarLayout({ fileTree, children }: SidebarLayoutProps
|
|
|
22
30
|
onExpand={() => setCollapsed(false)}
|
|
23
31
|
/>
|
|
24
32
|
<main
|
|
33
|
+
id="main-content"
|
|
25
34
|
className={`min-h-screen transition-all duration-300 pt-[52px] md:pt-0 ${
|
|
26
35
|
collapsed ? 'md:pl-0' : 'md:pl-[280px]'
|
|
27
36
|
}`}
|
|
@@ -20,7 +20,7 @@ export function getStatusLevel(status: SyncStatus | null, syncing: boolean): Sta
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export const DOT_COLORS: Record<StatusLevel, string> = {
|
|
23
|
-
synced: 'bg-
|
|
23
|
+
synced: 'bg-success',
|
|
24
24
|
unpushed: 'bg-yellow-500',
|
|
25
25
|
conflicts: 'bg-error', // #6 — conflicts more prominent than unpushed
|
|
26
26
|
error: 'bg-error',
|
|
@@ -173,7 +173,7 @@ export default function SyncStatusBar({ collapsed, onOpenSyncSettings }: SyncSta
|
|
|
173
173
|
className="p-1 rounded hover:bg-muted hover:text-foreground transition-colors shrink-0 ml-2 text-muted-foreground/50 hover:text-muted-foreground"
|
|
174
174
|
title="Dismiss"
|
|
175
175
|
>
|
|
176
|
-
<span className="text-
|
|
176
|
+
<span className="text-2xs">✕</span>
|
|
177
177
|
</button>
|
|
178
178
|
</div>
|
|
179
179
|
);
|
|
@@ -231,7 +231,7 @@ export default function SyncStatusBar({ collapsed, onOpenSyncSettings }: SyncSta
|
|
|
231
231
|
</button>
|
|
232
232
|
<div className="flex items-center gap-1 shrink-0 ml-2">
|
|
233
233
|
{/* #2 — sync result flash */}
|
|
234
|
-
{(syncResult === 'success' || toast) && <CheckCircle2 size={12} className="text-
|
|
234
|
+
{(syncResult === 'success' || toast) && <CheckCircle2 size={12} className="text-success animate-in fade-in duration-200" />}
|
|
235
235
|
{syncResult === 'error' && <XCircle size={12} className="text-error animate-in fade-in duration-200" />}
|
|
236
236
|
<button
|
|
237
237
|
onClick={handleSyncNow}
|
|
@@ -111,7 +111,7 @@ export default function TableOfContents({ content }: TableOfContentsProps) {
|
|
|
111
111
|
style={{ background: 'var(--background)' }}
|
|
112
112
|
>
|
|
113
113
|
<p
|
|
114
|
-
className="text-
|
|
114
|
+
className="text-2xs font-semibold uppercase tracking-wider px-2 mb-1"
|
|
115
115
|
style={{ color: 'var(--muted-foreground)', opacity: 0.5 }}
|
|
116
116
|
>
|
|
117
117
|
On this page
|
|
@@ -60,7 +60,7 @@ export default function UpdateBanner() {
|
|
|
60
60
|
</span>
|
|
61
61
|
<span className="text-muted-foreground">
|
|
62
62
|
{updateT?.runUpdate ?? 'Run'}{' '}
|
|
63
|
-
<code className="px-1 py-0.5 rounded bg-muted font-mono text-
|
|
63
|
+
<code className="px-1 py-0.5 rounded bg-muted font-mono text-xs">mindos update</code>
|
|
64
64
|
{updateT?.orSee ? (
|
|
65
65
|
<>
|
|
66
66
|
{' '}{updateT.orSee}{' '}
|
|
@@ -12,7 +12,7 @@ export default function FileChip({ path, onRemove, variant = 'kb' }: FileChipPro
|
|
|
12
12
|
const name = path.split('/').pop() ?? path;
|
|
13
13
|
const isCsv = name.endsWith('.csv');
|
|
14
14
|
const Icon = variant === 'upload' ? Paperclip : isCsv ? Table : FileText;
|
|
15
|
-
const iconClass = variant === 'upload' ? 'text-
|
|
15
|
+
const iconClass = variant === 'upload' ? 'text-muted-foreground' : isCsv ? 'text-success' : 'text-muted-foreground';
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-md text-xs border border-border bg-muted text-foreground max-w-[220px]">
|
|
@@ -31,18 +31,18 @@ export default function MentionPopover({ results, selectedIndex, onSelect }: Men
|
|
|
31
31
|
}`}
|
|
32
32
|
>
|
|
33
33
|
{isCsv ? (
|
|
34
|
-
<Table size={13} className="text-
|
|
34
|
+
<Table size={13} className="text-success shrink-0" />
|
|
35
35
|
) : (
|
|
36
|
-
<FileText size={13} className="text-
|
|
36
|
+
<FileText size={13} className="text-muted-foreground shrink-0" />
|
|
37
37
|
)}
|
|
38
38
|
<span className="truncate flex-1">{name}</span>
|
|
39
|
-
<span className="text-
|
|
39
|
+
<span className="text-2xs text-muted-foreground/50 truncate max-w-[140px] shrink-0">
|
|
40
40
|
{f.split('/').slice(0, -1).join('/')}
|
|
41
41
|
</span>
|
|
42
42
|
</button>
|
|
43
43
|
);
|
|
44
44
|
})}
|
|
45
|
-
<div className="px-3 py-1.5 border-t border-border flex gap-3 text-
|
|
45
|
+
<div className="px-3 py-1.5 border-t border-border flex gap-3 text-2xs text-muted-foreground/50">
|
|
46
46
|
<span>↑↓ navigate</span>
|
|
47
47
|
<span>↵ select</span>
|
|
48
48
|
<span>ESC dismiss</span>
|
|
@@ -89,7 +89,7 @@ export default function MessageList({
|
|
|
89
89
|
{m.role === 'user' ? (
|
|
90
90
|
<div
|
|
91
91
|
className="max-w-[85%] px-3 py-2 rounded-xl rounded-br-sm text-sm leading-relaxed whitespace-pre-wrap"
|
|
92
|
-
style={{ background: 'var(--amber)', color: '
|
|
92
|
+
style={{ background: 'var(--amber)', color: 'var(--amber-foreground)' }}
|
|
93
93
|
>
|
|
94
94
|
{m.content}
|
|
95
95
|
</div>
|
|
@@ -14,7 +14,7 @@ interface SessionHistoryProps {
|
|
|
14
14
|
export default function SessionHistory({ sessions, activeSessionId, onLoad, onDelete }: SessionHistoryProps) {
|
|
15
15
|
return (
|
|
16
16
|
<div className="border-b border-border px-4 py-2.5 max-h-[190px] overflow-y-auto">
|
|
17
|
-
<div className="text-
|
|
17
|
+
<div className="text-xs text-muted-foreground mb-2">Session History</div>
|
|
18
18
|
<div className="flex flex-col gap-1.5">
|
|
19
19
|
{sessions.length === 0 && (
|
|
20
20
|
<div className="text-xs text-muted-foreground/70">No saved sessions.</div>
|
|
@@ -31,7 +31,7 @@ export default function SessionHistory({ sessions, activeSessionId, onLoad, onDe
|
|
|
31
31
|
}`}
|
|
32
32
|
>
|
|
33
33
|
<div className="truncate">{sessionTitle(s)}</div>
|
|
34
|
-
<div className="text-
|
|
34
|
+
<div className="text-2xs opacity-60">{new Date(s.updatedAt).toLocaleString()}</div>
|
|
35
35
|
</button>
|
|
36
36
|
<button
|
|
37
37
|
type="button"
|
|
@@ -144,7 +144,7 @@ export function ConfigRenderer({ content, saveAction }: RendererContext) {
|
|
|
144
144
|
className="px-2.5 py-1 rounded-md text-xs font-medium"
|
|
145
145
|
style={{
|
|
146
146
|
background: value ? 'var(--amber)' : 'var(--muted)',
|
|
147
|
-
color: value ? '
|
|
147
|
+
color: value ? 'var(--amber-foreground)' : 'var(--muted-foreground)',
|
|
148
148
|
}}
|
|
149
149
|
>
|
|
150
150
|
{value ? 'ON' : 'OFF'}
|
|
@@ -80,7 +80,7 @@ export function BoardView({ headers, rows, cfg, saveAction }: {
|
|
|
80
80
|
{headers.map((h, ci) => {
|
|
81
81
|
if (ci === groupIdx || ci === titleIdx || ci === descIdx) return null;
|
|
82
82
|
const v = row[ci]; if (!v) return null;
|
|
83
|
-
return <span key={ci} className="text-
|
|
83
|
+
return <span key={ci} className="text-2xs px-1.5 py-0.5 rounded font-display"
|
|
84
84
|
style={{ background: 'var(--muted)', color: 'var(--muted-foreground)' }}
|
|
85
85
|
>{h}: {v}</span>;
|
|
86
86
|
})}
|
|
@@ -124,7 +124,7 @@ export function BoardView({ headers, rows, cfg, saveAction }: {
|
|
|
124
124
|
setShowNewCol(false);
|
|
125
125
|
}}
|
|
126
126
|
className="text-xs px-2 py-1 rounded font-display"
|
|
127
|
-
style={{ background: 'var(--amber)', color: '
|
|
127
|
+
style={{ background: 'var(--amber)', color: 'var(--amber-foreground)' }}
|
|
128
128
|
>Create</button>
|
|
129
129
|
<button onClick={() => { setNewColInput(''); setShowNewCol(false); }}
|
|
130
130
|
className="text-xs px-2 py-1 rounded font-display"
|
|
@@ -39,7 +39,7 @@ export function ConfigPanel({ headers, cfg, view, onClose, onChange }: {
|
|
|
39
39
|
{view === 'table' && (
|
|
40
40
|
<>
|
|
41
41
|
<div className="h-px" style={{ background: 'var(--border)' }} />
|
|
42
|
-
<p className="text-
|
|
42
|
+
<p className="text-xs font-semibold uppercase tracking-wider" style={labelStyle}>Sort</p>
|
|
43
43
|
<FieldSelect label="Sort by" value={cfg.table.sortField}
|
|
44
44
|
onChange={v => onChange({ ...cfg, table: { ...cfg.table, sortField: v } })} />
|
|
45
45
|
<div className="flex items-center justify-between gap-2">
|
|
@@ -51,7 +51,7 @@ export function ConfigPanel({ headers, cfg, view, onClose, onChange }: {
|
|
|
51
51
|
style={{
|
|
52
52
|
fontSize: '0.72rem',
|
|
53
53
|
background: cfg.table.sortDir === d ? 'var(--amber)' : 'var(--background)',
|
|
54
|
-
color: cfg.table.sortDir === d ? '
|
|
54
|
+
color: cfg.table.sortDir === d ? 'var(--amber-foreground)' : 'var(--muted-foreground)',
|
|
55
55
|
}}
|
|
56
56
|
>{d}</button>
|
|
57
57
|
))}
|
|
@@ -59,12 +59,12 @@ export function ConfigPanel({ headers, cfg, view, onClose, onChange }: {
|
|
|
59
59
|
</div>
|
|
60
60
|
|
|
61
61
|
<div className="h-px" style={{ background: 'var(--border)' }} />
|
|
62
|
-
<p className="text-
|
|
62
|
+
<p className="text-xs font-semibold uppercase tracking-wider" style={labelStyle}>Group</p>
|
|
63
63
|
<FieldSelect label="Group by" value={cfg.table.groupField}
|
|
64
64
|
onChange={v => onChange({ ...cfg, table: { ...cfg.table, groupField: v } })} />
|
|
65
65
|
|
|
66
66
|
<div className="h-px" style={{ background: 'var(--border)' }} />
|
|
67
|
-
<p className="text-
|
|
67
|
+
<p className="text-xs font-semibold uppercase tracking-wider" style={labelStyle}>Columns</p>
|
|
68
68
|
<div className="flex flex-col gap-1.5">
|
|
69
69
|
{headers.map(h => {
|
|
70
70
|
const hidden = cfg.table.hiddenFields.includes(h);
|
|
@@ -77,7 +77,7 @@ export function ConfigPanel({ headers, cfg, view, onClose, onChange }: {
|
|
|
77
77
|
: [...cfg.table.hiddenFields, h];
|
|
78
78
|
onChange({ ...cfg, table: { ...cfg.table, hiddenFields: next } });
|
|
79
79
|
}}
|
|
80
|
-
className="text-
|
|
80
|
+
className="text-xs px-2 py-0.5 rounded transition-colors font-display"
|
|
81
81
|
style={{
|
|
82
82
|
background: hidden ? 'var(--muted)' : 'var(--amber-dim)',
|
|
83
83
|
color: hidden ? 'var(--muted-foreground)' : 'var(--amber)',
|
|
@@ -18,7 +18,7 @@ export function GalleryView({ headers, rows, cfg }: { headers: string[]; rows: s
|
|
|
18
18
|
<div key={i} className="rounded-xl border p-4 flex flex-col gap-2 hover:bg-muted/50 transition-colors"
|
|
19
19
|
style={{ borderColor: 'var(--border)', background: 'var(--card)' }}
|
|
20
20
|
>
|
|
21
|
-
{tag && tc && <span className="self-start text-
|
|
21
|
+
{tag && tc && <span className="self-start text-xs px-2 py-0.5 rounded-full font-medium"
|
|
22
22
|
style={{ background: tc.bg, color: tc.text }}>{tag}</span>}
|
|
23
23
|
<p className="text-sm font-semibold leading-snug" style={{ color: 'var(--foreground)' }}>{title}</p>
|
|
24
24
|
{desc && <p className="text-xs leading-relaxed line-clamp-3" style={{ color: 'var(--muted-foreground)' }}>{desc}</p>}
|
|
@@ -149,7 +149,7 @@ const WikiNode = memo(function WikiNode({ data }: NodeProps) {
|
|
|
149
149
|
textOverflow: 'ellipsis',
|
|
150
150
|
opacity: isOrphan ? 0.4 : 1,
|
|
151
151
|
background: isCurrent ? 'var(--amber)' : 'var(--card)',
|
|
152
|
-
color: isCurrent ? '
|
|
152
|
+
color: isCurrent ? 'var(--amber-foreground)' : 'var(--foreground)',
|
|
153
153
|
border: `1.5px solid ${isCurrent ? 'var(--amber)' : 'var(--border)'}`,
|
|
154
154
|
boxShadow: isCurrent
|
|
155
155
|
? '0 0 20px var(--amber-dim), 0 0 0 2px var(--amber-dim)'
|
|
@@ -155,7 +155,7 @@ Be specific. Reference actual content from the files. Keep the total response un
|
|
|
155
155
|
cursor: streaming || recentFiles.length === 0 ? 'not-allowed' : 'pointer',
|
|
156
156
|
border: 'none',
|
|
157
157
|
background: streaming ? 'var(--muted)' : 'var(--amber)',
|
|
158
|
-
color: streaming ? 'var(--muted-foreground)' : '
|
|
158
|
+
color: streaming ? 'var(--muted-foreground)' : 'var(--amber-foreground)',
|
|
159
159
|
opacity: recentFiles.length === 0 ? 0.5 : 1,
|
|
160
160
|
transition: 'opacity .15s',
|
|
161
161
|
}}
|
|
@@ -206,7 +206,7 @@ function StepCard({
|
|
|
206
206
|
padding: '3px 10px', borderRadius: 6, fontSize: '0.72rem',
|
|
207
207
|
cursor: canRun ? 'pointer' : 'not-allowed',
|
|
208
208
|
border: 'none', background: canRun ? 'var(--amber)' : 'var(--muted)',
|
|
209
|
-
color: canRun ? '
|
|
209
|
+
color: canRun ? 'var(--amber-foreground)' : 'var(--muted-foreground)',
|
|
210
210
|
opacity: canRun ? 1 : 0.5,
|
|
211
211
|
}}
|
|
212
212
|
>
|
|
@@ -362,7 +362,7 @@ export function WorkflowRenderer({ filePath, content }: RendererContext) {
|
|
|
362
362
|
padding: '4px 12px', borderRadius: 7, fontSize: '0.75rem',
|
|
363
363
|
cursor: running ? 'not-allowed' : 'pointer',
|
|
364
364
|
border: 'none', background: running ? 'var(--muted)' : 'var(--amber)',
|
|
365
|
-
color: running ? 'var(--muted-foreground)' : '
|
|
365
|
+
color: running ? 'var(--muted-foreground)' : 'var(--amber-foreground)',
|
|
366
366
|
opacity: running ? 0.7 : 1,
|
|
367
367
|
}}
|
|
368
368
|
>
|
|
@@ -114,7 +114,7 @@ export function KnowledgeTab({ data, setData, t }: KnowledgeTabProps) {
|
|
|
114
114
|
className="shrink-0 p-1 rounded text-muted-foreground hover:text-foreground transition-colors"
|
|
115
115
|
title={k.authTokenCopy}
|
|
116
116
|
>
|
|
117
|
-
{copied ? <Check size={13} className="text-
|
|
117
|
+
{copied ? <Check size={13} className="text-success" /> : <Copy size={13} />}
|
|
118
118
|
</button>
|
|
119
119
|
)}
|
|
120
120
|
</div>
|
|
@@ -94,8 +94,8 @@ function ServerStatus({ status, t }: { status: McpStatus | null; t: any }) {
|
|
|
94
94
|
<div className="space-y-1.5 text-sm pl-11">
|
|
95
95
|
<div className="flex items-center gap-2">
|
|
96
96
|
<span className="text-muted-foreground w-20 shrink-0 text-xs">{m?.status ?? 'Status'}</span>
|
|
97
|
-
<span className={`text-xs flex items-center gap-1 ${status.running ? 'text-
|
|
98
|
-
<span className={`inline-block w-1.5 h-1.5 rounded-full ${status.running ? 'bg-
|
|
97
|
+
<span className={`text-xs flex items-center gap-1 ${status.running ? 'text-success' : 'text-muted-foreground'}`}>
|
|
98
|
+
<span className={`inline-block w-1.5 h-1.5 rounded-full ${status.running ? 'bg-success' : 'bg-muted-foreground'}`} />
|
|
99
99
|
{status.running ? (m?.running ?? 'Running') : (m?.stopped ?? 'Stopped')}
|
|
100
100
|
</span>
|
|
101
101
|
</div>
|
|
@@ -115,7 +115,7 @@ function ServerStatus({ status, t }: { status: McpStatus | null; t: any }) {
|
|
|
115
115
|
<span className="text-muted-foreground w-20 shrink-0 text-xs">{m?.auth ?? 'Auth'}</span>
|
|
116
116
|
<span className="text-xs">
|
|
117
117
|
{status.authConfigured
|
|
118
|
-
? <span className="text-
|
|
118
|
+
? <span className="text-success">{m?.authSet ?? 'Token set'}</span>
|
|
119
119
|
: <span className="text-muted-foreground">{m?.authNotSet ?? 'No token'}</span>}
|
|
120
120
|
</span>
|
|
121
121
|
</div>
|
|
@@ -214,22 +214,23 @@ function AgentInstall({ agents, t, onRefresh }: { agents: AgentInfo[]; t: any; o
|
|
|
214
214
|
type="checkbox"
|
|
215
215
|
checked={selected.has(agent.key)}
|
|
216
216
|
onChange={() => toggle(agent.key)}
|
|
217
|
-
className="rounded border-border
|
|
217
|
+
className="rounded border-border"
|
|
218
|
+
style={{ accentColor: 'var(--amber)' }}
|
|
218
219
|
/>
|
|
219
220
|
<span className="w-28 shrink-0 text-xs">{agent.name}</span>
|
|
220
|
-
<span className="text-
|
|
221
|
+
<span className="text-2xs px-1.5 py-0.5 rounded font-mono"
|
|
221
222
|
style={{ background: 'rgba(100,100,120,0.08)' }}>
|
|
222
223
|
{getEffectiveTransport(agent)}
|
|
223
224
|
</span>
|
|
224
225
|
{agent.installed ? (
|
|
225
226
|
<>
|
|
226
|
-
<span className="text-
|
|
227
|
+
<span className="text-2xs px-1.5 py-0.5 rounded bg-success/15 text-success font-mono">
|
|
227
228
|
{agent.transport}
|
|
228
229
|
</span>
|
|
229
|
-
<span className="text-
|
|
230
|
+
<span className="text-2xs text-muted-foreground">{agent.scope}</span>
|
|
230
231
|
</>
|
|
231
232
|
) : (
|
|
232
|
-
<span className="text-
|
|
233
|
+
<span className="text-2xs text-muted-foreground">
|
|
233
234
|
{agent.present ? (m?.detected ?? 'Detected') : (m?.notFound ?? 'Not found')}
|
|
234
235
|
</span>
|
|
235
236
|
)}
|
|
@@ -238,7 +239,7 @@ function AgentInstall({ agents, t, onRefresh }: { agents: AgentInfo[]; t: any; o
|
|
|
238
239
|
<select
|
|
239
240
|
value={scopes[agent.key] || 'project'}
|
|
240
241
|
onChange={e => setScopes({ ...scopes, [agent.key]: e.target.value as 'project' | 'global' })}
|
|
241
|
-
className="ml-auto text-
|
|
242
|
+
className="ml-auto text-2xs px-1.5 py-0.5 rounded border border-border bg-background text-foreground"
|
|
242
243
|
>
|
|
243
244
|
<option value="project">{m?.project ?? 'Project'}</option>
|
|
244
245
|
<option value="global">{m?.global ?? 'Global'}</option>
|
|
@@ -273,7 +274,8 @@ function AgentInstall({ agents, t, onRefresh }: { agents: AgentInfo[]; t: any; o
|
|
|
273
274
|
name="transport"
|
|
274
275
|
checked={transport === 'auto'}
|
|
275
276
|
onChange={() => setTransport('auto')}
|
|
276
|
-
className="
|
|
277
|
+
className=""
|
|
278
|
+
style={{ accentColor: 'var(--amber)' }}
|
|
277
279
|
/>
|
|
278
280
|
{m?.transportAuto ?? 'auto (recommended)'}
|
|
279
281
|
</label>
|
|
@@ -283,7 +285,8 @@ function AgentInstall({ agents, t, onRefresh }: { agents: AgentInfo[]; t: any; o
|
|
|
283
285
|
name="transport"
|
|
284
286
|
checked={transport === 'stdio'}
|
|
285
287
|
onChange={() => setTransport('stdio')}
|
|
286
|
-
className="
|
|
288
|
+
className=""
|
|
289
|
+
style={{ accentColor: 'var(--amber)' }}
|
|
287
290
|
/>
|
|
288
291
|
{m?.transportStdio ?? 'stdio'}
|
|
289
292
|
</label>
|
|
@@ -293,7 +296,8 @@ function AgentInstall({ agents, t, onRefresh }: { agents: AgentInfo[]; t: any; o
|
|
|
293
296
|
name="transport"
|
|
294
297
|
checked={transport === 'http'}
|
|
295
298
|
onChange={() => setTransport('http')}
|
|
296
|
-
className="
|
|
299
|
+
className=""
|
|
300
|
+
style={{ accentColor: 'var(--amber)' }}
|
|
297
301
|
/>
|
|
298
302
|
{m?.transportHttp ?? 'http'}
|
|
299
303
|
</label>
|
|
@@ -329,7 +333,7 @@ function AgentInstall({ agents, t, onRefresh }: { agents: AgentInfo[]; t: any; o
|
|
|
329
333
|
onClick={handleInstall}
|
|
330
334
|
disabled={selected.size === 0 || installing}
|
|
331
335
|
className="flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-lg transition-colors disabled:opacity-40 disabled:cursor-not-allowed"
|
|
332
|
-
style={{ background: 'var(--amber)', color: '
|
|
336
|
+
style={{ background: 'var(--amber)', color: 'var(--amber-foreground)' }}
|
|
333
337
|
>
|
|
334
338
|
{installing && <Loader2 size={12} className="animate-spin" />}
|
|
335
339
|
{installing ? (m?.installing ?? 'Installing...') : (m?.installSelected ?? 'Install Selected')}
|
|
@@ -339,7 +343,7 @@ function AgentInstall({ agents, t, onRefresh }: { agents: AgentInfo[]; t: any; o
|
|
|
339
343
|
{message && (
|
|
340
344
|
<div className="flex items-center gap-1.5 text-xs" role="status">
|
|
341
345
|
{message.type === 'success' ? (
|
|
342
|
-
<><CheckCircle2 size={12} className="text-
|
|
346
|
+
<><CheckCircle2 size={12} className="text-success" /><span className="text-success">{message.text}</span></>
|
|
343
347
|
) : (
|
|
344
348
|
<><AlertCircle size={12} className="text-destructive" /><span className="text-destructive">{message.text}</span></>
|
|
345
349
|
)}
|
|
@@ -480,7 +484,7 @@ function SkillsSection({ t }: { t: any }) {
|
|
|
480
484
|
>
|
|
481
485
|
{expanded === skill.name ? <ChevronDown size={12} /> : <ChevronRight size={12} />}
|
|
482
486
|
<span className="text-xs font-medium flex-1">{skill.name}</span>
|
|
483
|
-
<span className={`text-
|
|
487
|
+
<span className={`text-2xs px-1.5 py-0.5 rounded ${
|
|
484
488
|
skill.source === 'builtin' ? 'bg-blue-500/15 text-blue-500' : 'bg-purple-500/15 text-purple-500'
|
|
485
489
|
}`}>
|
|
486
490
|
{skill.source === 'builtin' ? (m?.skillBuiltin ?? 'Built-in') : (m?.skillUser ?? 'Custom')}
|
|
@@ -489,7 +493,7 @@ function SkillsSection({ t }: { t: any }) {
|
|
|
489
493
|
<button
|
|
490
494
|
onClick={e => { e.stopPropagation(); handleToggle(skill.name, !skill.enabled); }}
|
|
491
495
|
className={`relative inline-flex h-4 w-7 items-center rounded-full transition-colors ${
|
|
492
|
-
skill.enabled ? 'bg-
|
|
496
|
+
skill.enabled ? 'bg-success' : 'bg-muted-foreground/30'
|
|
493
497
|
}`}
|
|
494
498
|
>
|
|
495
499
|
<span className={`inline-block h-3 w-3 rounded-full bg-white transition-transform ${
|
|
@@ -501,11 +505,11 @@ function SkillsSection({ t }: { t: any }) {
|
|
|
501
505
|
{expanded === skill.name && (
|
|
502
506
|
<div className="px-3 py-2 border-t border-border text-xs space-y-1.5 bg-muted/20">
|
|
503
507
|
<p className="text-muted-foreground">{skill.description || 'No description'}</p>
|
|
504
|
-
<p className="text-muted-foreground font-mono text-
|
|
508
|
+
<p className="text-muted-foreground font-mono text-2xs">{skill.path}</p>
|
|
505
509
|
{skill.editable && (
|
|
506
510
|
<button
|
|
507
511
|
onClick={() => handleDelete(skill.name)}
|
|
508
|
-
className="flex items-center gap-1 text-
|
|
512
|
+
className="flex items-center gap-1 text-2xs text-destructive hover:underline"
|
|
509
513
|
>
|
|
510
514
|
<Trash2 size={10} />
|
|
511
515
|
{m?.deleteSkill ?? 'Delete'}
|
|
@@ -526,7 +530,7 @@ function SkillsSection({ t }: { t: any }) {
|
|
|
526
530
|
</button>
|
|
527
531
|
</div>
|
|
528
532
|
<div className="space-y-1">
|
|
529
|
-
<label className="text-
|
|
533
|
+
<label className="text-2xs text-muted-foreground">{m?.skillName ?? 'Name'}</label>
|
|
530
534
|
<input
|
|
531
535
|
type="text"
|
|
532
536
|
value={newName}
|
|
@@ -536,7 +540,7 @@ function SkillsSection({ t }: { t: any }) {
|
|
|
536
540
|
/>
|
|
537
541
|
</div>
|
|
538
542
|
<div className="space-y-1">
|
|
539
|
-
<label className="text-
|
|
543
|
+
<label className="text-2xs text-muted-foreground">{m?.skillDesc ?? 'Description'}</label>
|
|
540
544
|
<input
|
|
541
545
|
type="text"
|
|
542
546
|
value={newDesc}
|
|
@@ -546,7 +550,7 @@ function SkillsSection({ t }: { t: any }) {
|
|
|
546
550
|
/>
|
|
547
551
|
</div>
|
|
548
552
|
<div className="space-y-1">
|
|
549
|
-
<label className="text-
|
|
553
|
+
<label className="text-2xs text-muted-foreground">{m?.skillContent ?? 'Content'}</label>
|
|
550
554
|
<textarea
|
|
551
555
|
value={newContent}
|
|
552
556
|
onChange={e => setNewContent(e.target.value)}
|
|
@@ -556,7 +560,7 @@ function SkillsSection({ t }: { t: any }) {
|
|
|
556
560
|
/>
|
|
557
561
|
</div>
|
|
558
562
|
{error && (
|
|
559
|
-
<p className="text-
|
|
563
|
+
<p className="text-2xs text-destructive flex items-center gap-1">
|
|
560
564
|
<AlertCircle size={10} />
|
|
561
565
|
{error}
|
|
562
566
|
</p>
|
|
@@ -566,7 +570,7 @@ function SkillsSection({ t }: { t: any }) {
|
|
|
566
570
|
onClick={handleCreate}
|
|
567
571
|
disabled={!newName.trim() || saving}
|
|
568
572
|
className="flex items-center gap-1 px-2.5 py-1 text-xs rounded-md disabled:opacity-40 disabled:cursor-not-allowed transition-colors"
|
|
569
|
-
style={{ background: 'var(--amber)', color: '
|
|
573
|
+
style={{ background: 'var(--amber)', color: 'var(--amber-foreground)' }}
|
|
570
574
|
>
|
|
571
575
|
{saving && <Loader2 size={10} className="animate-spin" />}
|
|
572
576
|
{m?.saveSkill ?? 'Save'}
|
|
@@ -33,25 +33,25 @@ export function PluginsTab({ pluginStates, setPluginStates, t }: PluginsTabProps
|
|
|
33
33
|
<div className="flex items-center gap-2 flex-wrap">
|
|
34
34
|
<span className="text-sm font-medium text-foreground">{renderer.name}</span>
|
|
35
35
|
{isCore && (
|
|
36
|
-
<span className="text-
|
|
36
|
+
<span className="text-2xs px-1.5 py-0.5 rounded bg-amber-600/15 text-amber-600 font-mono">
|
|
37
37
|
core
|
|
38
38
|
</span>
|
|
39
39
|
)}
|
|
40
40
|
{renderer.builtin && !isCore && (
|
|
41
|
-
<span className="text-
|
|
41
|
+
<span className="text-2xs px-1.5 py-0.5 rounded bg-muted text-muted-foreground font-mono">
|
|
42
42
|
{t.settings.plugins.builtinBadge}
|
|
43
43
|
</span>
|
|
44
44
|
)}
|
|
45
45
|
<div className="flex gap-1 flex-wrap">
|
|
46
46
|
{renderer.tags.map(tag => (
|
|
47
|
-
<span key={tag} className="text-
|
|
47
|
+
<span key={tag} className="text-2xs px-1.5 py-0.5 rounded bg-muted/60 text-muted-foreground">
|
|
48
48
|
{tag}
|
|
49
49
|
</span>
|
|
50
50
|
))}
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
<p className="text-xs text-muted-foreground mt-1 leading-relaxed">{renderer.description}</p>
|
|
54
|
-
<p className="text-
|
|
54
|
+
<p className="text-xs text-muted-foreground/60 mt-1.5 font-mono">
|
|
55
55
|
{t.settings.plugins.matchHint}: <code className="bg-muted px-1 rounded">{renderer.match.toString().match(/\/(.+)\//)?.[1] ?? '—'}</code>
|
|
56
56
|
</p>
|
|
57
57
|
</div>
|
|
@@ -35,7 +35,7 @@ export function Select({ className = '', ...props }: React.SelectHTMLAttributes<
|
|
|
35
35
|
export function EnvBadge({ overridden }: { overridden: boolean }) {
|
|
36
36
|
if (!overridden) return null;
|
|
37
37
|
return (
|
|
38
|
-
<span className="text-
|
|
38
|
+
<span className="text-2xs px-1.5 py-0.5 rounded bg-amber-500/15 text-amber-500 font-mono ml-1.5">env</span>
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -111,12 +111,12 @@ function SyncEmptyState({ t, onInitComplete }: { t: any; onInitComplete: () => v
|
|
|
111
111
|
}}
|
|
112
112
|
/>
|
|
113
113
|
{remoteUrl.trim() && !isValid && (
|
|
114
|
-
<p className="text-
|
|
114
|
+
<p className="text-xs" style={{ color: 'var(--destructive, red)' }}>
|
|
115
115
|
{syncT?.invalidUrl ?? 'Invalid Git URL — use HTTPS (https://...) or SSH (git@...)'}
|
|
116
116
|
</p>
|
|
117
117
|
)}
|
|
118
118
|
{urlType === 'ssh' && (
|
|
119
|
-
<p className="text-
|
|
119
|
+
<p className="text-xs text-muted-foreground flex items-center gap-1">
|
|
120
120
|
<AlertCircle size={11} className="shrink-0" />
|
|
121
121
|
{syncT?.sshHint ?? 'SSH URLs require SSH key configured on this machine. HTTPS with token recommended.'}
|
|
122
122
|
</p>
|
|
@@ -147,7 +147,7 @@ function SyncEmptyState({ t, onInitComplete }: { t: any; onInitComplete: () => v
|
|
|
147
147
|
{showToken ? <EyeOff size={14} /> : <Eye size={14} />}
|
|
148
148
|
</button>
|
|
149
149
|
</div>
|
|
150
|
-
<p className="text-
|
|
150
|
+
<p className="text-xs text-muted-foreground">
|
|
151
151
|
{syncT?.tokenHint ?? 'GitHub: Settings → Developer settings → Personal access tokens → repo scope'}
|
|
152
152
|
</p>
|
|
153
153
|
</div>
|
|
@@ -174,7 +174,7 @@ function SyncEmptyState({ t, onInitComplete }: { t: any; onInitComplete: () => v
|
|
|
174
174
|
onClick={handleConnect}
|
|
175
175
|
disabled={!isValid || connecting}
|
|
176
176
|
className="flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg transition-colors disabled:opacity-40 disabled:cursor-not-allowed"
|
|
177
|
-
style={{ background: 'var(--amber)', color: '
|
|
177
|
+
style={{ background: 'var(--amber)', color: 'var(--amber-foreground)' }}
|
|
178
178
|
>
|
|
179
179
|
{connecting && <Loader2 size={14} className="animate-spin" />}
|
|
180
180
|
{connecting
|
|
@@ -191,7 +191,7 @@ function SyncEmptyState({ t, onInitComplete }: { t: any; onInitComplete: () => v
|
|
|
191
191
|
)}
|
|
192
192
|
|
|
193
193
|
{/* Features */}
|
|
194
|
-
<div className="grid grid-cols-2 gap-2 text-
|
|
194
|
+
<div className="grid grid-cols-2 gap-2 text-xs text-muted-foreground pt-2">
|
|
195
195
|
{[
|
|
196
196
|
syncT?.featureAutoCommit ?? 'Auto-commit on save',
|
|
197
197
|
syncT?.featureAutoPull ?? 'Auto-pull from remote',
|
|
@@ -199,7 +199,7 @@ function SyncEmptyState({ t, onInitComplete }: { t: any; onInitComplete: () => v
|
|
|
199
199
|
syncT?.featureMultiDevice ?? 'Works across devices',
|
|
200
200
|
].map((f, i) => (
|
|
201
201
|
<div key={i} className="flex items-center gap-1.5">
|
|
202
|
-
<CheckCircle2 size={11} className="text-
|
|
202
|
+
<CheckCircle2 size={11} className="text-success/60 shrink-0" />
|
|
203
203
|
<span>{f}</span>
|
|
204
204
|
</div>
|
|
205
205
|
))}
|
|
@@ -336,7 +336,7 @@ export function SyncTab({ t }: SyncTabProps) {
|
|
|
336
336
|
className={`flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-lg border transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${
|
|
337
337
|
status.enabled
|
|
338
338
|
? 'border-border text-muted-foreground hover:text-destructive hover:border-destructive/50'
|
|
339
|
-
: 'border-
|
|
339
|
+
: 'border-success/30 text-success hover:bg-success/10'
|
|
340
340
|
}`}
|
|
341
341
|
>
|
|
342
342
|
{status.enabled ? 'Disable Auto-sync' : 'Enable Auto-sync'}
|
|
@@ -347,7 +347,7 @@ export function SyncTab({ t }: SyncTabProps) {
|
|
|
347
347
|
{message && (
|
|
348
348
|
<div className="flex items-center gap-1.5 text-xs" role="status" aria-live="polite">
|
|
349
349
|
{message.type === 'success' ? (
|
|
350
|
-
<><CheckCircle2 size={13} className="text-
|
|
350
|
+
<><CheckCircle2 size={13} className="text-success" /><span className="text-success">{message.text}</span></>
|
|
351
351
|
) : (
|
|
352
352
|
<><AlertCircle size={13} className="text-destructive" /><span className="text-destructive">{message.text}</span></>
|
|
353
353
|
)}
|