@geminilight/mindos 0.5.8 → 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 +9 -10
- package/README_zh.md +8 -9
- package/app/app/api/mcp/agents/route.ts +7 -0
- package/app/app/api/mcp/install-skill/route.ts +6 -0
- package/app/app/api/setup/check-port/route.ts +27 -3
- package/app/app/api/setup/route.ts +2 -9
- package/app/app/api/skills/route.ts +1 -1
- package/app/app/globals.css +28 -4
- package/app/app/login/page.tsx +2 -2
- package/app/app/view/[...path]/ViewPageClient.tsx +15 -10
- package/app/app/view/[...path]/not-found.tsx +1 -1
- package/app/components/AskModal.tsx +5 -5
- package/app/components/Breadcrumb.tsx +2 -2
- package/app/components/DirView.tsx +6 -6
- package/app/components/FileTree.tsx +7 -7
- package/app/components/HomeContent.tsx +8 -8
- 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 -1258
- package/app/components/Sidebar.tsx +4 -4
- package/app/components/SidebarLayout.tsx +9 -0
- package/app/components/SyncStatusBar.tsx +6 -6
- 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 +3 -3
- package/app/components/ask/SessionHistory.tsx +3 -3
- package/app/components/renderers/agent-inspector/AgentInspectorRenderer.tsx +5 -5
- package/app/components/renderers/config/ConfigRenderer.tsx +4 -4
- 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/csv/types.ts +1 -1
- package/app/components/renderers/diff/DiffRenderer.tsx +9 -9
- package/app/components/renderers/graph/GraphRenderer.tsx +1 -1
- package/app/components/renderers/summary/SummaryRenderer.tsx +1 -1
- package/app/components/renderers/timeline/TimelineRenderer.tsx +1 -1
- package/app/components/renderers/workflow/WorkflowRenderer.tsx +4 -4
- package/app/components/settings/KnowledgeTab.tsx +1 -1
- package/app/components/settings/McpTab.tsx +93 -47
- package/app/components/settings/PluginsTab.tsx +4 -4
- package/app/components/settings/Primitives.tsx +4 -4
- package/app/components/settings/SyncTab.tsx +13 -13
- 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 +52 -8
- package/app/lib/mcp-agents.ts +81 -0
- package/bin/lib/gateway.js +44 -4
- package/bin/lib/mcp-agents.js +81 -0
- package/bin/lib/mcp-install.js +34 -4
- package/package.json +3 -1
- package/scripts/setup.js +43 -6
- package/skills/project-wiki/SKILL.md +92 -63
- package/app/public/landing/index.html +0 -353
- package/app/public/landing/style.css +0 -216
|
@@ -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,10 +20,10 @@ 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
|
-
conflicts: 'bg-
|
|
26
|
-
error: 'bg-
|
|
25
|
+
conflicts: 'bg-error', // #6 — conflicts more prominent than unpushed
|
|
26
|
+
error: 'bg-error',
|
|
27
27
|
off: 'bg-muted-foreground/40',
|
|
28
28
|
syncing: 'bg-blue-500',
|
|
29
29
|
};
|
|
@@ -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,8 +231,8 @@ 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-
|
|
235
|
-
{syncResult === 'error' && <XCircle size={12} className="text-
|
|
234
|
+
{(syncResult === 'success' || toast) && <CheckCircle2 size={12} className="text-success animate-in fade-in duration-200" />}
|
|
235
|
+
{syncResult === 'error' && <XCircle size={12} className="text-error animate-in fade-in duration-200" />}
|
|
236
236
|
<button
|
|
237
237
|
onClick={handleSyncNow}
|
|
238
238
|
disabled={syncing}
|
|
@@ -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,13 +89,13 @@ 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>
|
|
96
96
|
) : m.content.startsWith('__error__') ? (
|
|
97
|
-
<div className="max-w-[85%] px-3 py-2.5 rounded-xl rounded-bl-sm border border-
|
|
98
|
-
<div className="flex items-start gap-2 text-
|
|
97
|
+
<div className="max-w-[85%] px-3 py-2.5 rounded-xl rounded-bl-sm border border-error/20 bg-error/8 text-sm">
|
|
98
|
+
<div className="flex items-start gap-2 text-error">
|
|
99
99
|
<AlertCircle size={14} className="shrink-0 mt-0.5" />
|
|
100
100
|
<span className="leading-relaxed">{m.content.slice(9)}</span>
|
|
101
101
|
</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,12 +31,12 @@ 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"
|
|
38
38
|
onClick={() => onDelete(s.id)}
|
|
39
|
-
className="p-1 rounded text-muted-foreground hover:text-
|
|
39
|
+
className="p-1 rounded text-muted-foreground hover:text-error hover:bg-muted"
|
|
40
40
|
title="Delete session"
|
|
41
41
|
>
|
|
42
42
|
<Trash2 size={12} />
|
|
@@ -59,8 +59,8 @@ function opKind(tool: string): OpKind {
|
|
|
59
59
|
const KIND_STYLE: Record<OpKind, { bg: string; text: string; border: string }> = {
|
|
60
60
|
read: { bg: 'rgba(138,180,216,0.10)', text: '#8ab4d8', border: 'rgba(138,180,216,0.25)' },
|
|
61
61
|
write: { bg: 'rgba(200,135,58,0.10)', text: 'var(--amber)', border: 'rgba(200,135,58,0.25)' },
|
|
62
|
-
create: { bg: 'rgba(122,173,128,0.10)', text: '
|
|
63
|
-
delete: { bg: 'rgba(200,80,80,0.10)', text: '
|
|
62
|
+
create: { bg: 'rgba(122,173,128,0.10)', text: 'var(--success)', border: 'rgba(122,173,128,0.25)' },
|
|
63
|
+
delete: { bg: 'rgba(200,80,80,0.10)', text: 'var(--error)', border: 'rgba(200,80,80,0.25)' },
|
|
64
64
|
search: { bg: 'rgba(200,160,216,0.10)', text: '#c8a0d8', border: 'rgba(200,160,216,0.25)' },
|
|
65
65
|
other: { bg: 'var(--muted)', text: 'var(--muted-foreground)', border: 'var(--border)' },
|
|
66
66
|
};
|
|
@@ -159,8 +159,8 @@ function OpCard({ op }: { op: AgentOp }) {
|
|
|
159
159
|
<div style={{ marginLeft: 'auto', display: 'flex', alignItems: 'center', gap: 8, flexShrink: 0 }}>
|
|
160
160
|
{/* result */}
|
|
161
161
|
{op.result === 'ok'
|
|
162
|
-
? <CheckCircle2 size={13} style={{ color: '
|
|
163
|
-
: <AlertCircle size={13} style={{ color: '
|
|
162
|
+
? <CheckCircle2 size={13} style={{ color: 'var(--success)' }} />
|
|
163
|
+
: <AlertCircle size={13} style={{ color: 'var(--error)' }} />
|
|
164
164
|
}
|
|
165
165
|
{/* timestamp */}
|
|
166
166
|
<span className="font-display" style={{ fontSize: '0.68rem', color: 'var(--muted-foreground)', opacity: 0.6 }} title={formatTs(op.ts)}>
|
|
@@ -191,7 +191,7 @@ function OpCard({ op }: { op: AgentOp }) {
|
|
|
191
191
|
{op.message && (
|
|
192
192
|
<div className="font-display" style={{ marginTop: 6, padding: '5px 9px', borderRadius: 5, fontSize: '0.72rem',
|
|
193
193
|
background: op.result === 'error' ? 'rgba(200,80,80,0.08)' : 'rgba(122,173,128,0.08)',
|
|
194
|
-
color: op.result === 'error' ? '
|
|
194
|
+
color: op.result === 'error' ? 'var(--error)' : 'var(--success)',
|
|
195
195
|
border: `1px solid ${op.result === 'error' ? 'rgba(200,80,80,0.2)' : 'rgba(122,173,128,0.2)'}`,
|
|
196
196
|
}}>
|
|
197
197
|
{op.message}
|
|
@@ -98,7 +98,7 @@ export function ConfigRenderer({ content, saveAction }: RendererContext) {
|
|
|
98
98
|
|
|
99
99
|
if (!parsed || !data) {
|
|
100
100
|
return (
|
|
101
|
-
<div className="rounded-xl border border-border p-4 text-sm text-
|
|
101
|
+
<div className="rounded-xl border border-border p-4 text-sm text-error">
|
|
102
102
|
CONFIG.json parse failed. Please check JSON format.
|
|
103
103
|
</div>
|
|
104
104
|
);
|
|
@@ -110,11 +110,11 @@ export function ConfigRenderer({ content, saveAction }: RendererContext) {
|
|
|
110
110
|
<div className="text-xs text-muted-foreground">CONFIG Control Panel</div>
|
|
111
111
|
<div className="text-xs flex items-center gap-2">
|
|
112
112
|
{saving && <span className="inline-flex items-center gap-1 text-muted-foreground"><Loader2 size={12} className="animate-spin" />Saving</span>}
|
|
113
|
-
{!saving && saved && <span className="inline-flex items-center gap-1" style={{ color: '
|
|
113
|
+
{!saving && saved && <span className="inline-flex items-center gap-1" style={{ color: 'var(--success)' }}><Check size={12} />Saved</span>}
|
|
114
114
|
</div>
|
|
115
115
|
</div>
|
|
116
116
|
|
|
117
|
-
{error && <div className="rounded-lg border border-
|
|
117
|
+
{error && <div className="rounded-lg border border-error/30 bg-error/10 px-3 py-2 text-xs text-error">{error}</div>}
|
|
118
118
|
|
|
119
119
|
{sections.map((section) => (
|
|
120
120
|
<div key={section.id} className="rounded-xl border border-border bg-card p-4">
|
|
@@ -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>}
|
|
@@ -73,7 +73,7 @@ export function serializeCSV(headers: string[], rows: string[][]) {
|
|
|
73
73
|
|
|
74
74
|
const TAG_COLORS = [
|
|
75
75
|
{ bg: 'rgba(200,135,58,0.12)', text: 'var(--amber)' },
|
|
76
|
-
{ bg: 'rgba(122,173,128,0.12)', text: '
|
|
76
|
+
{ bg: 'rgba(122,173,128,0.12)', text: 'var(--success)' },
|
|
77
77
|
{ bg: 'rgba(138,180,216,0.12)', text: '#8ab4d8' },
|
|
78
78
|
{ bg: 'rgba(200,160,216,0.12)', text: '#c8a0d8' },
|
|
79
79
|
{ bg: 'rgba(200,96,96,0.12)', text: '#c86060' },
|
|
@@ -191,8 +191,8 @@ function DiffCard({ entry, saveAction, fullContent }: {
|
|
|
191
191
|
</span>
|
|
192
192
|
|
|
193
193
|
{/* diff stats */}
|
|
194
|
-
<span className="font-display" style={{ fontSize: '0.7rem', color: '
|
|
195
|
-
<span className="font-display" style={{ fontSize: '0.7rem', color: '
|
|
194
|
+
<span className="font-display" style={{ fontSize: '0.7rem', color: 'var(--success)', flexShrink: 0 }}>+{added}</span>
|
|
195
|
+
<span className="font-display" style={{ fontSize: '0.7rem', color: 'var(--error)', flexShrink: 0 }}>−{removed}</span>
|
|
196
196
|
|
|
197
197
|
{/* tool badge */}
|
|
198
198
|
<span className="font-display" style={{ fontSize: '0.65rem', padding: '1px 7px', borderRadius: 999, background: 'var(--muted)', color: 'var(--muted-foreground)', flexShrink: 0 }}>
|
|
@@ -210,20 +210,20 @@ function DiffCard({ entry, saveAction, fullContent }: {
|
|
|
210
210
|
<button
|
|
211
211
|
onClick={handleApprove}
|
|
212
212
|
title="Approve this change"
|
|
213
|
-
style={{ background: 'none', border: 'none', cursor: 'pointer', padding: 2, color: '
|
|
213
|
+
style={{ background: 'none', border: 'none', cursor: 'pointer', padding: 2, color: 'var(--success)', display: 'flex', alignItems: 'center' }}
|
|
214
214
|
>
|
|
215
215
|
<CheckCircle2 size={15} />
|
|
216
216
|
</button>
|
|
217
217
|
<button
|
|
218
218
|
onClick={handleReject}
|
|
219
219
|
title="Reject & revert this change"
|
|
220
|
-
style={{ background: 'none', border: 'none', cursor: 'pointer', padding: 2, color: '
|
|
220
|
+
style={{ background: 'none', border: 'none', cursor: 'pointer', padding: 2, color: 'var(--error)', display: 'flex', alignItems: 'center' }}
|
|
221
221
|
>
|
|
222
222
|
<XCircle size={15} />
|
|
223
223
|
</button>
|
|
224
224
|
</>
|
|
225
225
|
) : (
|
|
226
|
-
<span className="font-display" style={{ fontSize: '0.68rem', color: approved ? '
|
|
226
|
+
<span className="font-display" style={{ fontSize: '0.68rem', color: approved ? 'var(--success)' : 'var(--error)' }}>
|
|
227
227
|
{approved ? '✓ approved' : '✕ reverted'}
|
|
228
228
|
</span>
|
|
229
229
|
)}
|
|
@@ -252,8 +252,8 @@ function DiffCard({ entry, saveAction, fullContent }: {
|
|
|
252
252
|
line.type === 'delete' ? 'rgba(200,80,80,0.10)' :
|
|
253
253
|
'transparent';
|
|
254
254
|
const color =
|
|
255
|
-
line.type === 'insert' ? '
|
|
256
|
-
line.type === 'delete' ? '
|
|
255
|
+
line.type === 'insert' ? 'var(--success)' :
|
|
256
|
+
line.type === 'delete' ? 'var(--error)' :
|
|
257
257
|
'var(--muted-foreground)';
|
|
258
258
|
const prefix =
|
|
259
259
|
line.type === 'insert' ? '+' :
|
|
@@ -299,8 +299,8 @@ export function DiffRenderer({ content, saveAction }: RendererContext) {
|
|
|
299
299
|
{/* stats bar */}
|
|
300
300
|
<div className="font-display" style={{ display: 'flex', alignItems: 'center', gap: 12, marginBottom: '1.2rem', fontSize: 11, color: 'var(--muted-foreground)' }}>
|
|
301
301
|
<span>{entries.length} change{entries.length !== 1 ? 's' : ''}</span>
|
|
302
|
-
<span style={{ color: '
|
|
303
|
-
<span style={{ color: '
|
|
302
|
+
<span style={{ color: 'var(--success)' }}>+{totalAdded}</span>
|
|
303
|
+
<span style={{ color: 'var(--error)' }}>−{totalRemoved}</span>
|
|
304
304
|
</div>
|
|
305
305
|
|
|
306
306
|
{entries.map((entry, i) => (
|
|
@@ -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
|
}}
|
|
@@ -110,7 +110,7 @@ function renderBody(body: string): string {
|
|
|
110
110
|
|
|
111
111
|
const TAG_PALETTE = [
|
|
112
112
|
{ bg: 'rgba(200,135,58,0.12)', text: 'var(--amber)' },
|
|
113
|
-
{ bg: 'rgba(122,173,128,0.12)', text: '
|
|
113
|
+
{ bg: 'rgba(122,173,128,0.12)', text: 'var(--success)' },
|
|
114
114
|
{ bg: 'rgba(138,180,216,0.12)', text: '#8ab4d8' },
|
|
115
115
|
{ bg: 'rgba(200,160,216,0.12)', text: '#c8a0d8' },
|
|
116
116
|
];
|
|
@@ -92,9 +92,9 @@ function renderBody(body: string): string {
|
|
|
92
92
|
function StatusIcon({ status }: { status: StepStatus }) {
|
|
93
93
|
if (status === 'pending') return <Circle size={15} style={{ color: 'var(--border)' }} />;
|
|
94
94
|
if (status === 'running') return <Loader2 size={15} style={{ color: 'var(--amber)', animation: 'spin 1s linear infinite' }} />;
|
|
95
|
-
if (status === 'done') return <CheckCircle2 size={15} style={{ color: '
|
|
95
|
+
if (status === 'done') return <CheckCircle2 size={15} style={{ color: 'var(--success)' }} />;
|
|
96
96
|
if (status === 'skipped') return <SkipForward size={15} style={{ color: 'var(--muted-foreground)', opacity: .5 }} />;
|
|
97
|
-
return <AlertCircle size={15} style={{ color: '
|
|
97
|
+
return <AlertCircle size={15} style={{ color: 'var(--error)' }} />;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
const STATUS_BORDER: Record<StepStatus, string> = {
|
|
@@ -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>
|