ArshVerma commited on
Commit
5482b12
·
1 Parent(s): 60ecf4d

Premium Dark Mode UI Overhaul and Train.py fixes

Browse files
dashboard/src/App.tsx CHANGED
@@ -9,7 +9,7 @@ const App: React.FC = () => {
9
  useWebSocket();
10
 
11
  return (
12
- <div className="min-h-screen" style={{ backgroundColor: "var(--color-bg)" }}>
13
  <div className="max-w-7xl mx-auto px-6 py-10 space-y-10">
14
  <Header />
15
  <StatsRow />
 
9
  useWebSocket();
10
 
11
  return (
12
+ <div className="min-h-screen bg-transparent">
13
  <div className="max-w-7xl mx-auto px-6 py-10 space-y-10">
14
  <Header />
15
  <StatsRow />
dashboard/src/components/EventFeed.tsx CHANGED
@@ -8,8 +8,7 @@ const EventFeed: React.FC = () => {
8
 
9
  return (
10
  <div
11
- className="bg-white rounded-3xl overflow-hidden flex flex-col h-[600px]"
12
- style={{ border: "1px solid var(--color-border)" }}
13
  >
14
  {/* Header */}
15
  <div
@@ -17,8 +16,8 @@ const EventFeed: React.FC = () => {
17
  style={{ borderBottom: "1px solid var(--color-border)" }}
18
  >
19
  <div className="flex items-center gap-3">
20
- <div className={`p-2 rounded-xl ${connected ? "bg-amber-50" : "bg-zinc-100"}`}>
21
- <Zap className={`w-5 h-5 ${connected ? "text-amber-600" : "text-zinc-400"}`} />
22
  </div>
23
  <h2 className="text-lg font-extrabold tracking-tight" style={{ color: "var(--color-heading)" }}>
24
  Live Feed
@@ -26,7 +25,7 @@ const EventFeed: React.FC = () => {
26
  </div>
27
  <button
28
  onClick={clear}
29
- className="p-2.5 hover:bg-zinc-100 rounded-xl transition-colors"
30
  style={{ color: "var(--color-muted)" }}
31
  title="Clear Feed"
32
  >
@@ -38,8 +37,8 @@ const EventFeed: React.FC = () => {
38
  <div className="flex-1 overflow-auto p-5 space-y-3">
39
  {!connected && (
40
  <div className="flex flex-col items-center justify-center h-full space-y-4 text-center">
41
- <div className="p-5 bg-zinc-50 rounded-2xl">
42
- <Zap className="w-10 h-10 text-zinc-200 animate-pulse" />
43
  </div>
44
  <p className="text-[11px] uppercase tracking-[0.15em] font-bold" style={{ color: "var(--color-muted)" }}>
45
  Connecting to live stream...
@@ -49,8 +48,8 @@ const EventFeed: React.FC = () => {
49
 
50
  {connected && events.length === 0 && (
51
  <div className="flex flex-col items-center justify-center h-full space-y-4 text-center">
52
- <div className="p-5 bg-zinc-50 rounded-2xl">
53
- <Zap className="w-10 h-10 text-zinc-200" />
54
  </div>
55
  <div className="space-y-1.5">
56
  <p className="text-[11px] font-bold uppercase tracking-[0.15em]" style={{ color: "var(--color-muted)" }}>
 
8
 
9
  return (
10
  <div
11
+ className="glass-panel overflow-hidden flex flex-col h-[600px] rounded-3xl"
 
12
  >
13
  {/* Header */}
14
  <div
 
16
  style={{ borderBottom: "1px solid var(--color-border)" }}
17
  >
18
  <div className="flex items-center gap-3">
19
+ <div className={`p-2 rounded-xl transition-all duration-300 ${connected ? "bg-amber-500/10 shadow-[0_0_10px_rgba(251,191,36,0.3)]" : "bg-white/5"}`}>
20
+ <Zap className={`w-5 h-5 ${connected ? "text-amber-400" : "text-zinc-600"}`} />
21
  </div>
22
  <h2 className="text-lg font-extrabold tracking-tight" style={{ color: "var(--color-heading)" }}>
23
  Live Feed
 
25
  </div>
26
  <button
27
  onClick={clear}
28
+ className="p-2.5 hover:bg-white/5 rounded-xl transition-colors"
29
  style={{ color: "var(--color-muted)" }}
30
  title="Clear Feed"
31
  >
 
37
  <div className="flex-1 overflow-auto p-5 space-y-3">
38
  {!connected && (
39
  <div className="flex flex-col items-center justify-center h-full space-y-4 text-center">
40
+ <div className="p-5 bg-white/5 rounded-2xl border border-white/5 shadow-inner">
41
+ <Zap className="w-10 h-10 text-zinc-700 animate-pulse" />
42
  </div>
43
  <p className="text-[11px] uppercase tracking-[0.15em] font-bold" style={{ color: "var(--color-muted)" }}>
44
  Connecting to live stream...
 
48
 
49
  {connected && events.length === 0 && (
50
  <div className="flex flex-col items-center justify-center h-full space-y-4 text-center">
51
+ <div className="p-5 bg-white/5 rounded-2xl border border-white/5 shadow-inner">
52
+ <Zap className="w-10 h-10 text-zinc-700" />
53
  </div>
54
  <div className="space-y-1.5">
55
  <p className="text-[11px] font-bold uppercase tracking-[0.15em]" style={{ color: "var(--color-muted)" }}>
dashboard/src/components/EventRow.tsx CHANGED
@@ -16,11 +16,7 @@ const EventRow: React.FC<EventRowProps> = ({ event }) => {
16
 
17
  return (
18
  <div
19
- className="rounded-2xl p-4 transition-all duration-200 hover:shadow-sm animate-fade-slide-in"
20
- style={{
21
- backgroundColor: "#fafafa",
22
- border: "1px solid var(--color-border)",
23
- }}
24
  >
25
  <div className="flex items-center justify-between mb-2">
26
  <span
@@ -29,7 +25,7 @@ const EventRow: React.FC<EventRowProps> = ({ event }) => {
29
  >
30
  {time}
31
  </span>
32
- <span className="text-[10px] font-mono font-bold bg-indigo-50 text-indigo-600 px-2 py-0.5 rounded-md">
33
  {event.episode_id.slice(0, 8)}
34
  </span>
35
  </div>
@@ -42,12 +38,12 @@ const EventRow: React.FC<EventRowProps> = ({ event }) => {
42
  </span>
43
  <span
44
  className={clsx(
45
- "text-xs font-bold font-mono px-2.5 py-1 rounded-full",
46
  event.reward > 0
47
- ? "text-emerald-700 bg-emerald-50"
48
  : event.reward < 0
49
- ? "text-red-600 bg-red-50"
50
- : "text-zinc-500 bg-zinc-100"
51
  )}
52
  >
53
  {event.reward > 0 ? "+" : ""}
 
16
 
17
  return (
18
  <div
19
+ className="glass-panel hover-lift rounded-2xl p-4 transition-all duration-200 animate-fade-slide-in"
 
 
 
 
20
  >
21
  <div className="flex items-center justify-between mb-2">
22
  <span
 
25
  >
26
  {time}
27
  </span>
28
+ <span className="text-[10px] font-mono font-bold bg-indigo-500/20 text-indigo-300 border border-indigo-500/30 px-2 py-0.5 rounded-md shadow-sm">
29
  {event.episode_id.slice(0, 8)}
30
  </span>
31
  </div>
 
38
  </span>
39
  <span
40
  className={clsx(
41
+ "text-xs font-bold font-mono px-2.5 py-1 rounded-full shadow-sm",
42
  event.reward > 0
43
+ ? "text-emerald-400 bg-emerald-500/10 border border-emerald-500/20 shadow-[0_0_10px_rgba(16,185,129,0.2)]"
44
  : event.reward < 0
45
+ ? "text-red-400 bg-red-500/10 border border-red-500/20 shadow-[0_0_10px_rgba(239,68,68,0.2)]"
46
+ : "text-zinc-400 bg-white/5 border border-white/10"
47
  )}
48
  >
49
  {event.reward > 0 ? "+" : ""}
dashboard/src/components/Header.tsx CHANGED
@@ -19,8 +19,8 @@ const Header: React.FC = () => {
19
  <div className="flex items-center gap-6">
20
  <div className="flex items-center gap-2">
21
  {/* Logo Replacement */}
22
- <img src={logo} className="h-[38px] w-auto" alt="CodeLens." />
23
- <div className="h-5 w-px bg-zinc-200 hidden sm:block mx-2" />
24
  <p className="text-[10px] font-mono font-bold uppercase tracking-[0.3em] hidden sm:block pt-1 opacity-40 group-hover:opacity-60 transition-opacity" style={{ color: "var(--color-heading)" }}>
25
  Evaluation
26
  </p>
@@ -28,10 +28,10 @@ const Header: React.FC = () => {
28
  </div>
29
 
30
  <div className={clsx(
31
- "flex items-center gap-2 px-4 py-2 rounded-full text-xs font-semibold tracking-wide uppercase transition-all",
32
  isConnected
33
- ? "bg-emerald-50 text-emerald-600 ring-1 ring-emerald-200"
34
- : "bg-red-50 text-red-500 ring-1 ring-red-200"
35
  )}>
36
  {isConnected ? (
37
  <>
 
19
  <div className="flex items-center gap-6">
20
  <div className="flex items-center gap-2">
21
  {/* Logo Replacement */}
22
+ <img src={logo} className="h-[38px] w-auto invert opacity-90 hover:opacity-100 transition-opacity drop-shadow-[0_0_10px_rgba(255,255,255,0.2)]" alt="CodeLens." />
23
+ <div className="h-5 w-px bg-white/10 hidden sm:block mx-2" />
24
  <p className="text-[10px] font-mono font-bold uppercase tracking-[0.3em] hidden sm:block pt-1 opacity-40 group-hover:opacity-60 transition-opacity" style={{ color: "var(--color-heading)" }}>
25
  Evaluation
26
  </p>
 
28
  </div>
29
 
30
  <div className={clsx(
31
+ "flex items-center gap-2 px-4 py-2 rounded-full text-xs font-bold tracking-wide uppercase transition-all glass-panel border",
32
  isConnected
33
+ ? "bg-emerald-500/10 text-emerald-400 border-emerald-500/20 shadow-[0_0_15px_rgba(16,185,129,0.2)]"
34
+ : "bg-red-500/10 text-red-400 border-red-500/20 shadow-[0_0_15px_rgba(239,68,68,0.2)]"
35
  )}>
36
  {isConnected ? (
37
  <>
dashboard/src/components/Leaderboard.tsx CHANGED
@@ -22,8 +22,7 @@ const Leaderboard: React.FC = () => {
22
 
23
  return (
24
  <div
25
- className="bg-white rounded-3xl overflow-hidden flex flex-col h-[600px]"
26
- style={{ border: "1px solid var(--color-border)" }}
27
  >
28
  {/* Header */}
29
  <div
@@ -31,8 +30,8 @@ const Leaderboard: React.FC = () => {
31
  style={{ borderBottom: "1px solid var(--color-border)" }}
32
  >
33
  <div className="flex items-center gap-3">
34
- <div className="p-2 bg-amber-50 rounded-xl">
35
- <Trophy className="w-5 h-5 text-amber-600" />
36
  </div>
37
  <h2 className="text-lg font-extrabold tracking-tight" style={{ color: "var(--color-heading)" }}>
38
  Leaderboard
@@ -41,7 +40,7 @@ const Leaderboard: React.FC = () => {
41
  <button
42
  onClick={() => refetch()}
43
  disabled={isLoading || isRefetching}
44
- className="p-2.5 hover:bg-zinc-100 rounded-xl transition-colors disabled:opacity-40"
45
  style={{ color: "var(--color-muted)" }}
46
  >
47
  <RefreshCw className={clsx("w-4 h-4", (isLoading || isRefetching) && "animate-spin")} />
@@ -58,13 +57,13 @@ const Leaderboard: React.FC = () => {
58
  className={clsx(
59
  "py-3.5 text-sm font-semibold transition-all relative whitespace-nowrap",
60
  activeTab === tab.id
61
- ? "text-zinc-900"
62
- : "text-zinc-400 hover:text-zinc-600"
63
  )}
64
  >
65
  {tab.label}
66
  {activeTab === tab.id && (
67
- <div className="absolute bottom-0 left-0 right-0 h-[2px] bg-zinc-900 rounded-full" />
68
  )}
69
  </button>
70
  ))}
@@ -82,8 +81,8 @@ const Leaderboard: React.FC = () => {
82
  <LeaderboardTable entries={entries} />
83
  ) : (
84
  <div className="flex flex-col items-center justify-center h-full space-y-4">
85
- <div className="p-5 bg-zinc-50 rounded-2xl">
86
- <Trophy className="w-10 h-10 text-zinc-200" />
87
  </div>
88
  <p className="text-xs font-bold uppercase tracking-[0.15em]" style={{ color: "var(--color-muted)" }}>
89
  No rankings yet
 
22
 
23
  return (
24
  <div
25
+ className="glass-panel overflow-hidden flex flex-col h-[600px] rounded-3xl"
 
26
  >
27
  {/* Header */}
28
  <div
 
30
  style={{ borderBottom: "1px solid var(--color-border)" }}
31
  >
32
  <div className="flex items-center gap-3">
33
+ <div className="p-2 bg-amber-500/10 rounded-xl">
34
+ <Trophy className="w-5 h-5 text-amber-400" />
35
  </div>
36
  <h2 className="text-lg font-extrabold tracking-tight" style={{ color: "var(--color-heading)" }}>
37
  Leaderboard
 
40
  <button
41
  onClick={() => refetch()}
42
  disabled={isLoading || isRefetching}
43
+ className="p-2.5 hover:bg-white/5 rounded-xl transition-colors disabled:opacity-40"
44
  style={{ color: "var(--color-muted)" }}
45
  >
46
  <RefreshCw className={clsx("w-4 h-4", (isLoading || isRefetching) && "animate-spin")} />
 
57
  className={clsx(
58
  "py-3.5 text-sm font-semibold transition-all relative whitespace-nowrap",
59
  activeTab === tab.id
60
+ ? "text-white drop-shadow-md"
61
+ : "text-zinc-500 hover:text-zinc-300"
62
  )}
63
  >
64
  {tab.label}
65
  {activeTab === tab.id && (
66
+ <div className="absolute bottom-0 left-0 right-0 h-[2px] bg-indigo-400 rounded-full shadow-[0_0_10px_rgba(129,140,248,0.8)]" />
67
  )}
68
  </button>
69
  ))}
 
81
  <LeaderboardTable entries={entries} />
82
  ) : (
83
  <div className="flex flex-col items-center justify-center h-full space-y-4">
84
+ <div className="p-5 bg-white/5 rounded-2xl shadow-inner border border-white/5">
85
+ <Trophy className="w-10 h-10 text-zinc-700" />
86
  </div>
87
  <p className="text-xs font-bold uppercase tracking-[0.15em]" style={{ color: "var(--color-muted)" }}>
88
  No rankings yet
dashboard/src/components/LeaderboardTable.tsx CHANGED
@@ -32,17 +32,17 @@ const LeaderboardTable: React.FC<LeaderboardTableProps> = ({ entries }) => {
32
  {entries.map((entry, idx) => (
33
  <tr
34
  key={idx}
35
- className="group hover:bg-zinc-50/80 transition-colors tabular-nums"
36
  style={{ borderBottom: "1px solid var(--color-border)" }}
37
  >
38
  <td className="px-7 py-5">
39
  {idx < 3 ? (
40
  <span
41
  className={`
42
- inline-flex items-center justify-center w-7 h-7 rounded-lg text-xs font-extrabold
43
- ${idx === 0 ? "bg-amber-50 text-amber-600" : ""}
44
- ${idx === 1 ? "bg-zinc-100 text-zinc-500" : ""}
45
- ${idx === 2 ? "bg-orange-50 text-orange-500" : ""}
46
  `}
47
  >
48
  {entry.rank}
@@ -54,7 +54,7 @@ const LeaderboardTable: React.FC<LeaderboardTableProps> = ({ entries }) => {
54
  )}
55
  </td>
56
  <td className="px-7 py-5">
57
- <span className="font-semibold group-hover:text-zinc-900 transition-colors" style={{ color: "var(--color-heading)" }}>
58
  {entry.agent_name}
59
  </span>
60
  </td>
 
32
  {entries.map((entry, idx) => (
33
  <tr
34
  key={idx}
35
+ className="group hover:bg-white/[0.03] transition-colors tabular-nums"
36
  style={{ borderBottom: "1px solid var(--color-border)" }}
37
  >
38
  <td className="px-7 py-5">
39
  {idx < 3 ? (
40
  <span
41
  className={`
42
+ inline-flex items-center justify-center w-7 h-7 rounded-lg text-xs font-extrabold shadow-sm
43
+ ${idx === 0 ? "bg-amber-500/20 text-amber-300 drop-shadow-[0_0_8px_rgba(251,191,36,0.6)] border border-amber-500/30" : ""}
44
+ ${idx === 1 ? "bg-zinc-400/20 text-zinc-300 drop-shadow-[0_0_8px_rgba(161,161,170,0.6)] border border-zinc-400/30" : ""}
45
+ ${idx === 2 ? "bg-orange-500/20 text-orange-400 drop-shadow-[0_0_8px_rgba(249,115,22,0.6)] border border-orange-500/30" : ""}
46
  `}
47
  >
48
  {entry.rank}
 
54
  )}
55
  </td>
56
  <td className="px-7 py-5">
57
+ <span className="font-semibold group-hover:text-white group-hover:drop-shadow-[0_0_8px_rgba(255,255,255,0.4)] transition-all" style={{ color: "var(--color-heading)" }}>
58
  {entry.agent_name}
59
  </span>
60
  </td>
dashboard/src/components/ScoreBadge.tsx CHANGED
@@ -8,10 +8,10 @@ interface ScoreBadgeProps {
8
  const ScoreBadge: React.FC<ScoreBadgeProps> = ({ score }) => {
9
  const colorClass =
10
  score >= 0.8
11
- ? "text-emerald-700 bg-emerald-50 ring-1 ring-emerald-200"
12
  : score >= 0.5
13
- ? "text-amber-700 bg-amber-50 ring-1 ring-amber-200"
14
- : "text-red-600 bg-red-50 ring-1 ring-red-200";
15
 
16
  return (
17
  <span
 
8
  const ScoreBadge: React.FC<ScoreBadgeProps> = ({ score }) => {
9
  const colorClass =
10
  score >= 0.8
11
+ ? "text-emerald-400 bg-emerald-500/10 border border-emerald-500/20 shadow-[0_0_10px_rgba(16,185,129,0.2)]"
12
  : score >= 0.5
13
+ ? "text-amber-400 bg-amber-500/10 border border-amber-500/20 shadow-[0_0_10px_rgba(251,191,36,0.2)]"
14
+ : "text-red-400 bg-red-500/10 border border-red-500/20 shadow-[0_0_10px_rgba(239,68,68,0.2)]";
15
 
16
  return (
17
  <span
dashboard/src/components/StatCard.tsx CHANGED
@@ -10,8 +10,7 @@ interface StatCardProps {
10
  const StatCard: React.FC<StatCardProps> = ({ label, value, icon, iconBg }) => {
11
  return (
12
  <div
13
- className="bg-white rounded-3xl p-7 transition-all duration-200 hover:shadow-lg hover:-translate-y-0.5 group"
14
- style={{ border: "1px solid var(--color-border)" }}
15
  >
16
  <div className="flex items-start justify-between mb-5">
17
  <p
@@ -26,7 +25,7 @@ const StatCard: React.FC<StatCardProps> = ({ label, value, icon, iconBg }) => {
26
  </div>
27
  <h3
28
  className="text-4xl font-extrabold tracking-tight tabular-nums"
29
- style={{ color: "var(--color-heading)" }}
30
  >
31
  {value}
32
  </h3>
 
10
  const StatCard: React.FC<StatCardProps> = ({ label, value, icon, iconBg }) => {
11
  return (
12
  <div
13
+ className="glass-panel hover-lift rounded-3xl p-7 transition-all duration-200 group"
 
14
  >
15
  <div className="flex items-start justify-between mb-5">
16
  <p
 
25
  </div>
26
  <h3
27
  className="text-4xl font-extrabold tracking-tight tabular-nums"
28
+ style={{ color: "var(--color-heading)", textShadow: "0 0 20px rgba(255,255,255,0.1)" }}
29
  >
30
  {value}
31
  </h3>
dashboard/src/components/StatsRow.tsx CHANGED
@@ -22,20 +22,20 @@ const StatsRow: React.FC = () => {
22
  <StatCard
23
  label="Total Episodes"
24
  value={stats?.total_episodes ?? 0}
25
- icon={<Trophy className="w-5 h-5 text-amber-600" />}
26
- iconBg="bg-amber-50"
27
  />
28
  <StatCard
29
  label="Avg. Score"
30
  value={stats?.avg_score?.toFixed(2) ?? "0.00"}
31
- icon={<Zap className="w-5 h-5 text-blue-600" />}
32
- iconBg="bg-blue-50"
33
  />
34
  <StatCard
35
  label="Active Episodes"
36
  value={health?.active_episodes ?? 0}
37
- icon={<Activity className="w-5 h-5 text-emerald-600" />}
38
- iconBg="bg-emerald-50"
39
  />
40
  </div>
41
  );
 
22
  <StatCard
23
  label="Total Episodes"
24
  value={stats?.total_episodes ?? 0}
25
+ icon={<Trophy className="w-5 h-5 text-amber-400" />}
26
+ iconBg="bg-amber-500/10 shadow-[0_0_15px_rgba(251,191,36,0.2)] border border-amber-500/20"
27
  />
28
  <StatCard
29
  label="Avg. Score"
30
  value={stats?.avg_score?.toFixed(2) ?? "0.00"}
31
+ icon={<Zap className="w-5 h-5 text-blue-400" />}
32
+ iconBg="bg-blue-500/10 shadow-[0_0_15px_rgba(59,130,246,0.2)] border border-blue-500/20"
33
  />
34
  <StatCard
35
  label="Active Episodes"
36
  value={health?.active_episodes ?? 0}
37
+ icon={<Activity className="w-5 h-5 text-emerald-400" />}
38
+ iconBg="bg-emerald-500/10 shadow-[0_0_15px_rgba(16,185,129,0.2)] border border-emerald-500/20"
39
  />
40
  </div>
41
  );
dashboard/src/index.css CHANGED
@@ -1,16 +1,18 @@
1
  @import "tailwindcss";
2
 
3
  :root {
4
- --color-bg: #f4f4f5; /* zinc-100 — soft warm gray */
5
- --color-surface: #ffffff; /* pure white cards */
6
- --color-border: #e4e4e7; /* zinc-200 — subtle borders */
7
- --color-heading: #09090b; /* zinc-950 — near-black headings */
8
- --color-body: #52525b; /* zinc-600 — body text */
9
- --color-muted: #a1a1aa; /* zinc-400 — muted/secondary */
10
- --color-accent: #6366f1; /* indigo-500 */
11
- --color-success: #22c55e; /* green-500 */
12
- --color-warning: #f59e0b; /* amber-500 */
13
- --color-danger: #ef4444; /* red-500 */
 
 
14
  }
15
 
16
  * {
@@ -19,10 +21,23 @@
19
 
20
  body {
21
  background-color: var(--color-bg);
 
 
 
22
  color: var(--color-body);
23
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
24
  -webkit-font-smoothing: antialiased;
25
  -moz-osx-font-smoothing: grayscale;
 
 
 
 
 
 
 
 
 
 
26
  }
27
 
28
  /* Elegant scrollbar */
@@ -33,11 +48,11 @@ body {
33
  background: transparent;
34
  }
35
  ::-webkit-scrollbar-thumb {
36
- background: #d4d4d8;
37
  border-radius: 999px;
38
  }
39
  ::-webkit-scrollbar-thumb:hover {
40
- background: #a1a1aa;
41
  }
42
 
43
  /* Smooth fade-in for event rows */
@@ -53,5 +68,13 @@ body {
53
  }
54
 
55
  .animate-fade-slide-in {
56
- animation: fadeSlideIn 0.3s ease-out forwards;
 
 
 
 
 
 
 
 
57
  }
 
1
  @import "tailwindcss";
2
 
3
  :root {
4
+ /* Premium Dark Mode Glassmorphism Tokens */
5
+ --color-bg: #09090b; /* zinc-950 — deep black background */
6
+ --color-surface: rgba(24, 24, 27, 0.6); /* zinc-900 with opacity for glass */
7
+ --color-border: rgba(255, 255, 255, 0.08); /* subtle white borders */
8
+ --color-heading: #fafafa; /* zinc-50 — pure white text */
9
+ --color-body: #a1a1aa; /* zinc-400 — muted body text */
10
+ --color-muted: #52525b; /* zinc-600 — very muted */
11
+ --color-accent: #818cf8; /* indigo-400 */
12
+ --color-accent-glow: rgba(129, 140, 248, 0.15);
13
+ --color-success: #34d399; /* emerald-400 */
14
+ --color-warning: #fbbf24; /* amber-400 */
15
+ --color-danger: #f87171; /* red-400 */
16
  }
17
 
18
  * {
 
21
 
22
  body {
23
  background-color: var(--color-bg);
24
+ background-image:
25
+ radial-gradient(circle at 15% 50%, rgba(129, 140, 248, 0.04), transparent 25%),
26
+ radial-gradient(circle at 85% 30%, rgba(52, 211, 153, 0.04), transparent 25%);
27
  color: var(--color-body);
28
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
29
  -webkit-font-smoothing: antialiased;
30
  -moz-osx-font-smoothing: grayscale;
31
+ min-height: 100vh;
32
+ }
33
+
34
+ /* Glassmorphism utilities */
35
+ .glass-panel {
36
+ background: var(--color-surface);
37
+ backdrop-filter: blur(12px);
38
+ -webkit-backdrop-filter: blur(12px);
39
+ border: 1px solid var(--color-border);
40
+ box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.5);
41
  }
42
 
43
  /* Elegant scrollbar */
 
48
  background: transparent;
49
  }
50
  ::-webkit-scrollbar-thumb {
51
+ background: #3f3f46;
52
  border-radius: 999px;
53
  }
54
  ::-webkit-scrollbar-thumb:hover {
55
+ background: #52525b;
56
  }
57
 
58
  /* Smooth fade-in for event rows */
 
68
  }
69
 
70
  .animate-fade-slide-in {
71
+ animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
72
+ }
73
+
74
+ .hover-lift {
75
+ transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
76
+ }
77
+ .hover-lift:hover {
78
+ transform: translateY(-2px);
79
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-accent-glow);
80
  }
dataset.jsonl ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add pagination to user list endpoint\nPR Description: Processing elements in the list but missing the last one due to range(len(x)-1).\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/api/users.py\n+++ b/api/users.py\n--- a/api/users.py\n+++ b/api/users.py\n@@ -10,3 +10,3 @@\n def get_users(page, size):\n items = db.get_all_users()\n- return items[page * size : (page + 1) * size]\n+ return items[page * size : page * size + size - 1]\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Off-by-one error in pagination slice loses last item per page\",\n \"filename\": \"api/users.py\",\n \"line_number\": 12,\n \"severity\": \"medium\",\n \"category\": \"bug\"\n}"}]}
2
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add session-based auth check\nPR Description: Lookup user by ID and access properties without guard.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/auth.py\n+++ b/auth.py\n--- a/auth.py\n+++ b/auth.py\n@@ -14,3 +14,3 @@\n def check_auth(session_id):\n user = get_user(session_id)\n- if user and user.is_active:\n+ return user.is_admin\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"None dereference \\u2014 get_user can return None, user.is_admin will crash\",\n \"filename\": \"auth.py\",\n \"line_number\": 16,\n \"severity\": \"high\",\n \"category\": \"bug\"\n}"}]}
3
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Refactor user profile builder\nPR Description: New helper to fetch data with a default empty list for items.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/models/profile.py\n+++ b/models/profile.py\n--- a/models/profile.py\n+++ b/models/profile.py\n@@ -3,3 +3,5 @@\n-def build_profile(name, tags=None):\n- tags = tags or []\n+def build_profile(name, tags=[]):\n+ tags.append(\"user\")\n+ return {\"name\": name, \"tags\": tags}\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Mutable default argument causes state leakage between calls\",\n \"filename\": \"models/profile.py\",\n \"line_number\": 5,\n \"severity\": \"medium\",\n \"category\": \"bug\"\n}"}]}
4
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add global request counter\nPR Description: Parallel threads updating shared cache without locking.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/middleware/counter.py\n+++ b/middleware/counter.py\n--- a/middleware/counter.py\n+++ b/middleware/counter.py\n@@ -5,3 +5,3 @@\n-def increment():\n- with lock:\n- global count\n- count += 1\n+def increment():\n+ global count\n+ count += 1\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Race condition in counter update: multiple threads may overwrite each other's increments.\",\n \"filename\": \"middleware/counter.py\",\n \"line_number\": 7,\n \"severity\": \"high\",\n \"category\": \"bug\"\n}"}]}
5
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Handle DB connection errors\nPR Description: Swallow all errors during data import.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/db/connection.py\n+++ b/db/connection.py\n--- a/db/connection.py\n+++ b/db/connection.py\n@@ -8,3 +8,3 @@\n- except psycopg2.OperationalError:\n- log.error(\"DB down\")\n+ except Exception:\n+ pass\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Broad exception catch-all suppresses real errors and hides bugs.\",\n \"filename\": \"db/connection.py\",\n \"line_number\": 9,\n \"severity\": \"medium\",\n \"category\": \"bug\"\n}"}]}
6
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add score percentage calculator\nPR Description: Integer division result truncated.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/scoring/calc.py\n+++ b/scoring/calc.py\n--- a/scoring/calc.py\n+++ b/scoring/calc.py\n@@ -4,3 +4,3 @@\n def get_percentage(score, total):\n- return (score / total) * 100\n+ return score / total\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Integer division truncation or missing multiplier in percentage calculation\",\n \"filename\": \"scoring/calc.py\",\n \"line_number\": 5,\n \"severity\": \"low\",\n \"category\": \"bug\"\n}"}]}
7
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Simplify status checker\nPR Description: Unreachable code after return.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/utils/status.py\n+++ b/utils/status.py\n--- a/utils/status.py\n+++ b/utils/status.py\n@@ -5,5 +5,3 @@\n def is_active(user):\n- if user.deleted:\n- return False\n- return user.active\n+ return True\n+ log.info(\"Checked user status\")\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Unreachable code after return statement\",\n \"filename\": \"utils/status.py\",\n \"line_number\": 8,\n \"severity\": \"low\",\n \"category\": \"bug\"\n}"}]}
8
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Parse webhook payload\nPR Description: Dict key assumed present \u2014 will KeyError if user absent.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/webhooks/parser.py\n+++ b/webhooks/parser.py\n--- a/webhooks/parser.py\n+++ b/webhooks/parser.py\n@@ -12,2 +12,2 @@\n def parse_event(data):\n- email = data.get(\"user\", {}).get(\"email\")\n+ email = data[\"user\"][\"email\"]\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Unsafe dictionary access will raise KeyError if 'user' or 'email' keys are missing\",\n \"filename\": \"webhooks/parser.py\",\n \"line_number\": 13,\n \"severity\": \"high\",\n \"category\": \"bug\"\n}"}]}
9
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add balance check to payment flow\nPR Description: Check if sensor reading is exactly 0.0.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/payments/validator.py\n+++ b/payments/validator.py\n--- a/payments/validator.py\n+++ b/payments/validator.py\n@@ -7,3 +7,3 @@\n def validate_tx(balance, amount):\n- if balance < 0.01:\n+ if balance == 0.0:\n return False\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Floating point equality comparison is unreliable due to precision issues\",\n \"filename\": \"payments/validator.py\",\n \"line_number\": 8,\n \"severity\": \"medium\",\n \"category\": \"bug\"\n}"}]}
10
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Clone user config before mutation\nPR Description: Shallow copy treated as deep copy \u2014 affects original.\nTask: bug_detection (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.\n\nCode diff:\n```\n--- a/config/user_config.py\n+++ b/config/user_config.py\n--- a/config/user_config.py\n+++ b/config/user_config.py\n@@ -10,3 +10,3 @@\n def update_config(original):\n- import copy\n- cfg = copy.deepcopy(original)\n+ cfg = original.copy()\n+ cfg[\"settings\"][\"theme\"] = \"dark\" \n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Shallow copy used for nested dictionary mutation; will modify the original object\",\n \"filename\": \"config/user_config.py\",\n \"line_number\": 11,\n \"severity\": \"medium\",\n \"category\": \"bug\"\n}"}]}
11
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add user search endpoint\nPR Description: Bypassing ORM for a raw SQL query.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/api/search.py\n+++ b/api/search.py\n--- a/api/search.py\n+++ b/api/search.py\n@@ -15,3 +15,3 @@\n def find_user(name):\n- return db.users.filter(name=name).first()\n+ query = f\"SELECT * FROM users WHERE name = '{name}'\"\n+ return db.execute_raw(query)\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"SQL injection vulnerability via f-string in raw query. Use parameterized queries.\",\n \"filename\": \"api/search.py\",\n \"line_number\": 16,\n \"severity\": \"critical\",\n \"category\": \"security\"\n}"}]}
12
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add Stripe webhook handler\nPR Description: Hardcoded secret key in configuration.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/payments/webhook.py\n+++ b/payments/webhook.py\n--- a/payments/webhook.py\n+++ b/payments/webhook.py\n@@ -5,1 +5,1 @@\n-stripe_secret = os.getenv(\"STRIPE_SECRET\")\n+SECRET_KEY = \"sk_live_dummy_secret_key_for_testing_12345\" \n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Hardcoded sensitive credentials in source code\",\n \"filename\": \"payments/webhook.py\",\n \"line_number\": 5,\n \"severity\": \"critical\",\n \"category\": \"security\"\n}"}]}
13
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add file download endpoint\nPR Description: New endpoint to read local audit logs based on path (no sanitization).\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/api/files.py\n+++ b/api/files.py\n--- a/api/files.py\n+++ b/api/files.py\n@@ -10,3 +10,3 @@\n def download_file(user_input):\n- safe_path = os.path.join(BASE_DIR, os.path.basename(user_input))\n- return open(safe_path, \"rb\").read()\n+ filepath = BASE_DIR + \"/\" + user_input\n+ return open(filepath, \"rb\").read()\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Path traversal vulnerability: user input is directly concatenated to the base path\",\n \"filename\": \"api/files.py\",\n \"line_number\": 11,\n \"severity\": \"high\",\n \"category\": \"security\"\n}"}]}
14
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add system ping utility\nPR Description: Command injection using os.system with user input.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/utils/network.py\n+++ b/utils/network.py\n--- a/utils/network.py\n+++ b/utils/network.py\n@@ -8,3 +8,3 @@\n def ping_host(host):\n- import subprocess\n- return subprocess.run([\"ping\", \"-c\", \"1\", host])\n+ import os\n+ os.system(f\"ping -c 1 {host}\")\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Command injection vulnerability via os.system and shell formatting\",\n \"filename\": \"utils/network.py\",\n \"line_number\": 10,\n \"severity\": \"critical\",\n \"category\": \"security\"\n}"}]}
15
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add session state caching\nPR Description: Faster state loading by using pickle format for internal caches.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/cache/session.py\n+++ b/cache/session.py\n--- a/cache/session.py\n+++ b/cache/session.py\n@@ -10,3 +10,3 @@\n def get_session(key):\n- data = redis.get(key)\n- return json.loads(data)\n+ import pickle\n+ return pickle.loads(redis.get(key))\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Insecure deserialization using pickle leads to Arbitrary Code Execution (RCE)\",\n \"filename\": \"cache/session.py\",\n \"line_number\": 12,\n \"severity\": \"high\",\n \"category\": \"security\"\n}"}]}
16
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add JWT decode helper\nPR Description: Allow bypassing JWT checks for faster local development loop.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/auth/jwt_helper.py\n+++ b/auth/jwt_helper.py\n--- a/auth/jwt_helper.py\n+++ b/auth/jwt_helper.py\n@@ -15,3 +15,3 @@\n def decode_token(token):\n- return jwt.decode(token, SECRET, algorithms=[\"HS256\"])\n+ return jwt.decode(token, options={\"verify_signature\": False})\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"JWT decoded without signature verification; attackers can forge any account\",\n \"filename\": \"auth/jwt_helper.py\",\n \"line_number\": 16,\n \"severity\": \"critical\",\n \"category\": \"security\"\n}"}]}
17
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add login redirect\nPR Description: Allow all origins for login redirect.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/views/auth.py\n+++ b/views/auth.py\n--- a/views/auth.py\n+++ b/views/auth.py\n@@ -20,3 +20,3 @@\n def login_complete(request):\n- next_url = validate_internal_url(request.args.get(\"next\"))\n- return redirect(next_url or \"/dashboard\")\n+ return redirect(request.args.get(\"next\"))\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Open redirect vulnerability allows attackers to phish users\",\n \"filename\": \"views/auth.py\",\n \"line_number\": 21,\n \"severity\": \"medium\",\n \"category\": \"security\"\n}"}]}
18
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Update app configuration\nPR Description: DEBUG mode enabled in production settings.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/config/settings.py\n+++ b/config/settings.py\n--- a/config/settings.py\n+++ b/config/settings.py\n@@ -35,3 +35,4 @@\n-# Production settings\n-DEBUG = False\n-TESTING = False\n+# Debug settings for prod troubleshooting\n+DEBUG = True\n+TESTING = True\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"DEBUG mode enabled in production settings discloses system secrets\",\n \"filename\": \"config/settings.py\",\n \"line_number\": 37,\n \"severity\": \"high\",\n \"category\": \"security\"\n}"}]}
19
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Enable CORS for frontend\nPR Description: Resolving frontend browser errors by allowing all origins.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/app.py\n+++ b/app.py\n--- a/app.py\n+++ b/app.py\n@@ -55,3 +55,3 @@\n app.add_middleware(CORSMiddleware, \n- allow_origins=[\"https://secure.app.com\"],\n+ allow_origins=[\"*\"],\n allow_credentials=True)\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Sensitive CORS policy with wildcard (*) allows data theft via CSRF\",\n \"filename\": \"app.py\",\n \"line_number\": 56,\n \"severity\": \"medium\",\n \"category\": \"security\"\n}"}]}
20
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add admin password check\nPR Description: Faster password check by using native equality.\nTask: security_audit (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.\n\nCode diff:\n```\n--- a/admin/auth.py\n+++ b/admin/auth.py\n--- a/admin/auth.py\n+++ b/admin/auth.py\n@@ -10,3 +10,3 @@\n def verify_admin(provided_password):\n- import secrets\n- return secrets.compare_digest(ADMIN_PASS, provided_password)\n+ return ADMIN_PASS == provided_password\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Timing attack vulnerability in password comparison; use secrets.compare_digest\",\n \"filename\": \"admin/auth.py\",\n \"line_number\": 11,\n \"severity\": \"high\",\n \"category\": \"security\"\n}"}]}
21
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add UserManager service\nPR Description: A 200-line class that handles auth, email sending, billing, and profile.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/services/user_manager.py\n+++ b/services/user_manager.py\n--- a/services/user_manager.py\n+++ b/services/user_manager.py\n@@ -1,5 +1,10 @@\n-class UserAuth: pass\n-class UserBilling: pass\n-class UserEmail: pass\n+class UserManager:\n+ def authenticate(self, user): pass\n+ def process_payment(self, amount): pass\n+ def send_welcome_email(self, email): pass\n+ def update_profile_picture(self, img): pass\n+ def sync_to_marketing_tool(self): pass\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"God class violation: UserManager handles multiple unrelated domains (auth, billing, email)\",\n \"filename\": \"services/user_manager.py\",\n \"line_number\": 2,\n \"severity\": \"high\",\n \"category\": \"architecture\"\n}"}]}
22
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add order details endpoint\nPR Description: Fetching order items inside a loop (N+1 query).\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/api/orders.py\n+++ b/api/orders.py\n--- a/api/orders.py\n+++ b/api/orders.py\n@@ -25,3 +25,4 @@\n def get_order_history(user_id):\n- return db.query(Order).options(joinedload(Order.items)).all()\n+ orders = db.query(Order).filter_by(user_id=user_id).all()\n+ for o in orders:\n+ o.items = db.query(Item).filter_by(order_id=o.id).all()\n+ return orders\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"N+1 query pattern: fetching items in a loop will cause DB performance collapse\",\n \"filename\": \"api/orders.py\",\n \"line_number\": 27,\n \"severity\": \"high\",\n \"category\": \"architecture\"\n}"}]}
23
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add notification system\nPR Description: Tight coupling via hardwired SendGrid import.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/services/notifier.py\n+++ b/services/notifier.py\n--- a/services/notifier.py\n+++ b/services/notifier.py\n@@ -1,3 +1,3 @@\n-from services.interfaces import MailProvider\n+from integrations.sendgrid import send_email\n \n-def notify(user, provider: MailProvider):\n- provider.send(user.email)\n+def notify(user):\n+ send_email(user.email)\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Tight coupling: service depends on concrete implementation instead of abstraction\",\n \"filename\": \"services/notifier.py\",\n \"line_number\": 2,\n \"severity\": \"medium\",\n \"category\": \"architecture\"\n}"}]}
24
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add external price fetch to checkout\nPR Description: Synchronous blocking call inside async checkout handler.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/checkout/handler.py\n+++ b/checkout/handler.py\n--- a/checkout/handler.py\n+++ b/checkout/handler.py\n@@ -10,3 +10,4 @@\n async def checkout(cart):\n- async with aiohttp.ClientSession() as s:\n- price = await s.get(PRICE_API)\n+ import requests\n+ price = requests.get(PRICE_API)\n+ return process_order(price)\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Blocking HTTP call inside async function will stall the entire event loop\",\n \"filename\": \"checkout/handler.py\",\n \"line_number\": 12,\n \"severity\": \"high\",\n \"category\": \"architecture\"\n}"}]}
25
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Integrate weather API\nPR Description: Missing retry/resilience on external call.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/services/weather.py\n+++ b/services/weather.py\n--- a/services/weather.py\n+++ b/services/weather.py\n@@ -5,3 +5,3 @@\n def get_temp(city):\n- return circuit_breaker.call(WEATHER_URL, timeout=2)\n+ return requests.get(WEATHER_URL).json()\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Missing resilience (retry, timeout, circuit breaker) on external API dependency\",\n \"filename\": \"services/weather.py\",\n \"line_number\": 6,\n \"severity\": \"medium\",\n \"category\": \"architecture\"\n}"}]}
26
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Refactor model relationships\nPR Description: Circular import between User and Order models.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/models/order.py\n+++ b/models/order.py\n--- a/models/order.py\n+++ b/models/order.py\n@@ -1,1 +1,2 @@\n+from models.user import User\n class Order(BaseModel):\n- user_id: int\n+ user: User\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Circular dependency risk: order depends on user while user likely imports order\",\n \"filename\": \"models/order.py\",\n \"line_number\": 1,\n \"severity\": \"medium\",\n \"category\": \"architecture\"\n}"}]}
27
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add all-products endpoint\nPR Description: Missing pagination on unbounded list endpoint.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/api/products.py\n+++ b/api/products.py\n--- a/api/products.py\n+++ b/api/products.py\n@@ -10,3 +10,3 @@\n def list_products():\n- return db.query(Product).limit(50).all()\n+ return db.query(Product).all()\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Missing pagination on list endpoint will lead to memory exhaustion\",\n \"filename\": \"api/products.py\",\n \"line_number\": 11,\n \"severity\": \"high\",\n \"category\": \"architecture\"\n}"}]}
28
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Document the payment integration\nPR Description: Sensitive API key included in documentation comment.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/docs/payment_notes.py\n+++ b/docs/payment_notes.py\n--- a/docs/payment_notes.py\n+++ b/docs/payment_notes.py\n@@ -1,2 +1,3 @@\n # Payment integration notes\n+# Use API key: pk_test_abc123 for testing\n def init(): pass\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Secret leaked in code comment; should be in environment variables only\",\n \"filename\": \"docs/payment_notes.py\",\n \"line_number\": 2,\n \"severity\": \"medium\",\n \"category\": \"architecture\"\n}"}]}
29
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Add detailed auth logging\nPR Description: Logging sensitive user password in cleartext.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/auth/logger.py\n+++ b/auth/logger.py\n--- a/auth/logger.py\n+++ b/auth/logger.py\n@@ -5,3 +5,3 @@\n def log_login(email, password):\n- logger.info(f\"Attempt for {email}\")\n+ logger.info(f\"Login attempt: user={email} password={password}\")\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"PII/Security Leak: logging plain-text passwords violates security policy\",\n \"filename\": \"auth/logger.py\",\n \"line_number\": 6,\n \"severity\": \"high\",\n \"category\": \"architecture\"\n}"}]}
30
+ {"messages": [{"role": "system", "content": "You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.\n\nYou will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.\n\nAvailable action types:\n - \"flag_issue\": Flag a specific issue in the code\n - \"approve\": Approve the PR (no issues found / all issues flagged)\n - \"request_changes\": Request changes (issues found that must be fixed)\n - \"ask_question\": Ask a clarifying question\n - \"comment\": Leave a general comment\n\nFor \"flag_issue\", you MUST provide:\n - action_type: \"flag_issue\"\n - body: description of the issue (be specific, mention the root cause)\n - filename: the file containing the issue\n - line_number: approximate line number\n - severity: one of \"low\", \"medium\", \"high\", \"critical\"\n - category: one of \"bug\", \"security\", \"architecture\", \"performance\", \"style\", \"design\"\n\nFor \"approve\" or \"request_changes\", you MUST provide:\n - action_type: \"approve\" or \"request_changes\"\n - body: your overall assessment\n - verdict: \"LGTM\" (for approve) or \"REQUEST_CHANGES\" (for request_changes)\n\nIMPORTANT: Output ONLY a valid JSON object \u2014 no markdown, no explanation.\n"}, {"role": "user", "content": "PR Title: Set up database connection\nPR Description: Hardcoded DB connection string with credentials.\nTask: architectural_review (step 1/10)\nNoise budget remaining: 5 (false positives consume this)\nReview focus: Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O.\n\nCode diff:\n```\n--- a/db/setup.py\n+++ b/db/setup.py\n--- a/db/setup.py\n+++ b/db/setup.py\n@@ -5,3 +5,3 @@\n def connect():\n- url = os.environ.get(\"DATABASE_URL\")\n+ url = \"postgresql://admin:password123@localhost:5432/mydb\"\n return create_engine(url)\n```\n\nOutput a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."}, {"role": "assistant", "content": "{\n \"action_type\": \"flag_issue\",\n \"body\": \"Hardcoded environment configuration and credentials\",\n \"filename\": \"db/setup.py\",\n \"line_number\": 6,\n \"severity\": \"high\",\n \"category\": \"architecture\"\n}"}]}
scripts/augment_dataset.py ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import json
3
+ import argparse
4
+ from openai import OpenAI
5
+ from pydantic import BaseModel, Field
6
+
7
+ # Ensure you have OPENAI_API_KEY set in your environment
8
+ client = OpenAI()
9
+
10
+ SYSTEM_PROMPT = """You are an expert software engineer and data generator.
11
+ Your task is to generate synthetic Pull Request scenarios containing subtle bugs, security flaws, or architectural issues.
12
+ Follow the exact JSON schema provided."""
13
+
14
+ class GeneratedScenario(BaseModel):
15
+ pr_title: str
16
+ pr_description: str
17
+ diff: str
18
+ action_type: str = Field(description="Must be 'flag_issue'")
19
+ body: str = Field(description="Detailed explanation of the issue")
20
+ filename: str
21
+ line_number: int
22
+ severity: str = Field(description="One of: low, medium, high, critical")
23
+ category: str = Field(description="One of: bug, security, architecture, performance, style")
24
+
25
+ def generate_synthetic_data(count: int, output_file: str):
26
+ dataset = []
27
+ print(f"Generating {count} synthetic scenarios...")
28
+
29
+ for i in range(count):
30
+ print(f"Generating scenario {i+1}/{count}...")
31
+ try:
32
+ response = client.beta.chat.completions.parse(
33
+ model="gpt-4o",
34
+ messages=[
35
+ {"role": "system", "content": SYSTEM_PROMPT},
36
+ {"role": "user", "content": "Generate a unique, realistic Python code review scenario. Include a unified diff."}
37
+ ],
38
+ response_format=GeneratedScenario,
39
+ )
40
+ scenario = response.choices[0].message.parsed
41
+
42
+ # Convert to CodeLens instruction format
43
+ user_msg = f"PR Title: {scenario.pr_title}\nPR Description: {scenario.pr_description}\nCode diff:\n```\n{scenario.diff}\n```\nOutput a single JSON action object."
44
+ assistant_msg = json.dumps({
45
+ "action_type": scenario.action_type,
46
+ "body": scenario.body,
47
+ "filename": scenario.filename,
48
+ "line_number": scenario.line_number,
49
+ "severity": scenario.severity,
50
+ "category": scenario.category
51
+ }, indent=2)
52
+
53
+ dataset.append({
54
+ "messages": [
55
+ {"role": "system", "content": "You are an expert code reviewer..."},
56
+ {"role": "user", "content": user_msg},
57
+ {"role": "assistant", "content": assistant_msg}
58
+ ]
59
+ })
60
+
61
+ except Exception as e:
62
+ print(f"Failed on generation {i}: {e}")
63
+
64
+ # Append to existing dataset
65
+ with open(output_file, "a") as f:
66
+ for item in dataset:
67
+ f.write(json.dumps(item) + "\n")
68
+
69
+ print(f"✅ Generated {len(dataset)} scenarios and appended to {output_file}")
70
+
71
+ if __name__ == "__main__":
72
+ parser = argparse.ArgumentParser()
73
+ parser.add_argument("--count", type=int, default=10, help="Number of scenarios to generate")
74
+ parser.add_argument("--output", type=str, default="dataset.jsonl", help="Output file")
75
+ args = parser.parse_args()
76
+
77
+ if not os.getenv("OPENAI_API_KEY"):
78
+ print("ERROR: OPENAI_API_KEY environment variable not set.")
79
+ exit(1)
80
+
81
+ generate_synthetic_data(args.count, args.output)
scripts/export_dataset.py ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import json
3
+ import argparse
4
+ from codelens_env.scenarios import ALL_SCENARIOS
5
+
6
+ SYSTEM_PROMPT = """You are an expert code reviewer specializing in bugs, security vulnerabilities, and architectural issues.
7
+
8
+ You will be given a code diff (PR) to review. Your job is to identify issues and output a single JSON action.
9
+
10
+ Available action types:
11
+ - "flag_issue": Flag a specific issue in the code
12
+ - "approve": Approve the PR (no issues found / all issues flagged)
13
+ - "request_changes": Request changes (issues found that must be fixed)
14
+ - "ask_question": Ask a clarifying question
15
+ - "comment": Leave a general comment
16
+
17
+ For "flag_issue", you MUST provide:
18
+ - action_type: "flag_issue"
19
+ - body: description of the issue (be specific, mention the root cause)
20
+ - filename: the file containing the issue
21
+ - line_number: approximate line number
22
+ - severity: one of "low", "medium", "high", "critical"
23
+ - category: one of "bug", "security", "architecture", "performance", "style", "design"
24
+
25
+ For "approve" or "request_changes", you MUST provide:
26
+ - action_type: "approve" or "request_changes"
27
+ - body: your overall assessment
28
+ - verdict: "LGTM" (for approve) or "REQUEST_CHANGES" (for request_changes)
29
+
30
+ IMPORTANT: Output ONLY a valid JSON object — no markdown, no explanation.
31
+ """
32
+
33
+ def generate_diff(files_changed):
34
+ diff = []
35
+ for f in files_changed:
36
+ diff.append(f"--- a/{f.filename}\n+++ b/{f.filename}\n{f.patch}")
37
+ return "\n".join(diff)
38
+
39
+ def build_user_message(scenario):
40
+ task_hints = {
41
+ "bug_detection": "Focus on: off-by-one errors, None dereferences, type mismatches, mutable defaults, race conditions, exception handling.",
42
+ "security_audit": "Focus on: SQL injection, XSS, hardcoded secrets, JWT issues, insecure deserialization, CORS, timing attacks, path traversal.",
43
+ "architectural_review": "Focus on: SRP violations, direct DB access from wrong layers, N+1 queries, missing retry/circuit-breaker, god objects, blocking I/O."
44
+ }
45
+
46
+ diff = generate_diff(scenario.files_changed)
47
+
48
+ return f"""PR Title: {scenario.pr_title}
49
+ PR Description: {scenario.pr_description}
50
+ Task: {scenario.task_id.value} (step 1/10)
51
+ Noise budget remaining: 5 (false positives consume this)
52
+ Review focus: {task_hints.get(scenario.task_id.value, 'General code review')}
53
+
54
+ Code diff:
55
+ ```
56
+ {diff}
57
+ ```
58
+
59
+ Output a single JSON action object. If you've already flagged the main issues, submit approve or request_changes."""
60
+
61
+ def build_assistant_message(scenario):
62
+ # In CodeLens, we only have the ground truth issues.
63
+ # For a few-shot dataset, we train the model to output the first critical issue it finds.
64
+ if not scenario.ground_truth_issues:
65
+ return json.dumps({
66
+ "action_type": "approve",
67
+ "body": "Code looks good, no issues found.",
68
+ "verdict": "LGTM"
69
+ }, indent=2)
70
+
71
+ issue = scenario.ground_truth_issues[0]
72
+ return json.dumps({
73
+ "action_type": "flag_issue",
74
+ "body": issue.description,
75
+ "filename": issue.filename,
76
+ "line_number": issue.line_number,
77
+ "severity": issue.severity.value,
78
+ "category": issue.category.value
79
+ }, indent=2)
80
+
81
+ def main():
82
+ parser = argparse.ArgumentParser(description="Export CodeLens scenarios to a JSONL dataset for fine-tuning")
83
+ parser.add_argument("--output", default="dataset.jsonl", help="Output file path")
84
+ args = parser.parse_args()
85
+
86
+ dataset = []
87
+ for scenario in ALL_SCENARIOS:
88
+ messages = [
89
+ {"role": "system", "content": SYSTEM_PROMPT},
90
+ {"role": "user", "content": build_user_message(scenario)},
91
+ {"role": "assistant", "content": build_assistant_message(scenario)}
92
+ ]
93
+ # Format for OpenAI / ChatML fine-tuning
94
+ dataset.append({"messages": messages})
95
+
96
+ with open(args.output, "w") as f:
97
+ for item in dataset:
98
+ f.write(json.dumps(item) + "\n")
99
+
100
+ print(f"✅ Successfully exported {len(dataset)} examples to {args.output}")
101
+ print("This dataset is ready to be uploaded to Kaggle for Supervised Fine-Tuning!")
102
+
103
+ if __name__ == "__main__":
104
+ main()
scripts/train.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # =================================================================================
2
+ # 🚀 FOOLPROOF KAGGLE TRAINING SCRIPT FOR CODELENS
3
+ #
4
+ # Step 1: Factory Reset your Kaggle environment to clear any broken libraries.
5
+ # Step 2: Create a code cell and run EXACTLY this (do not restart session after):
6
+ # !pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
7
+ # !pip install --no-deps trl peft accelerate bitsandbytes
8
+ # Step 3: Run this entire script in the next cell!
9
+ # =================================================================================
10
+
11
+ import os
12
+ import torch
13
+ from datasets import load_dataset
14
+ from trl import SFTTrainer, SFTConfig
15
+ from transformers import TrainingArguments
16
+ from unsloth import FastLanguageModel
17
+ from unsloth.chat_templates import get_chat_template
18
+
19
+ # 1. Load the Model (Qwen-2.5-Coder-7B)
20
+ max_seq_length = 2048 # Reduced to 2048 to prevent CUDA Out Of Memory on Kaggle T4
21
+ dtype = None # Auto detects float16/bfloat16
22
+ load_in_4bit = True # 4bit quantization to fit on Kaggle T4 GPUs
23
+
24
+ print("Loading model...")
25
+ model, tokenizer = FastLanguageModel.from_pretrained(
26
+ model_name = "unsloth/Qwen2.5-Coder-7B-Instruct",
27
+ max_seq_length = max_seq_length,
28
+ dtype = dtype,
29
+ load_in_4bit = load_in_4bit,
30
+ )
31
+
32
+ # Apply LoRA adapters
33
+ model = FastLanguageModel.get_peft_model(
34
+ model,
35
+ r = 16, # Choose any number > 0 ! Suggested 8, 16, 32, 64, 128
36
+ target_modules = ["q_proj", "k_proj", "v_proj", "o_proj",
37
+ "gate_proj", "up_proj", "down_proj",],
38
+ lora_alpha = 16,
39
+ lora_dropout = 0,
40
+ bias = "none",
41
+ use_gradient_checkpointing = "unsloth",
42
+ random_state = 3407,
43
+ use_rslora = False,
44
+ loftq_config = None,
45
+ )
46
+
47
+ # 2. Format the Dataset
48
+ tokenizer = get_chat_template(
49
+ tokenizer,
50
+ chat_template = "chatml", # ChatML format
51
+ )
52
+
53
+ def formatting_prompts_func(examples):
54
+ convos = examples["messages"]
55
+ texts = [tokenizer.apply_chat_template(convo, tokenize = False, add_generation_prompt = False) for convo in convos]
56
+ return { "text" : texts, }
57
+
58
+ import glob
59
+ print("Finding dataset...")
60
+ dataset_files = glob.glob("/kaggle/input/**/dataset.jsonl", recursive=True)
61
+ if not dataset_files:
62
+ dataset_files = glob.glob("/kaggle/working/**/dataset.jsonl", recursive=True)
63
+ if not dataset_files:
64
+ raise FileNotFoundError("Could not find dataset.jsonl! Make sure you clicked 'Add Input' and uploaded it.")
65
+
66
+ data_file_path = dataset_files[0]
67
+ print(f"Loading dataset from: {data_file_path}")
68
+ dataset = load_dataset("json", data_files=data_file_path, split="train")
69
+ dataset = dataset.map(formatting_prompts_func, batched = True,)
70
+
71
+ # 3. Setup Trainer
72
+ trainer = SFTTrainer(
73
+ model = model,
74
+ processing_class = tokenizer,
75
+ train_dataset = dataset,
76
+ args = SFTConfig(
77
+ dataset_text_field = "text",
78
+ max_seq_length = max_seq_length,
79
+ dataset_num_proc = 2,
80
+ packing = False, # Can make training 5x faster for short sequences.
81
+ per_device_train_batch_size = 1, # Reduced to 1 to prevent OOM
82
+ gradient_accumulation_steps = 8, # Increased to keep effective batch size the same
83
+ warmup_steps = 5,
84
+ max_steps = 60, # Increase this to ~300 for a real run
85
+ learning_rate = 2e-4,
86
+ fp16 = not torch.cuda.is_bf16_supported(),
87
+ bf16 = torch.cuda.is_bf16_supported(),
88
+ logging_steps = 1,
89
+ optim = "adamw_8bit",
90
+ weight_decay = 0.01,
91
+ lr_scheduler_type = "linear",
92
+ seed = 3407,
93
+ output_dir = "outputs",
94
+ ),
95
+ )
96
+
97
+ # 4. Train!
98
+ print("Starting training...")
99
+ trainer_stats = trainer.train()
100
+
101
+ # 5. Save the fine-tuned model
102
+ print("Saving model to LoRA adapters...")
103
+ model.save_pretrained("codelens_reviewer_lora")
104
+ tokenizer.save_pretrained("codelens_reviewer_lora")
105
+
106
+ print("✅ Training complete! Model saved to codelens_reviewer_lora")
107
+ print("To push to Hugging Face, run: model.push_to_hub('your_username/codelens_reviewer_lora', token='...')")
static/dashboard/assets/index-B51822Cd.css DELETED
@@ -1 +0,0 @@
1
- @font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-ext-400-normal-BQZuk6qB.woff2) format("woff2"),url(./inter-cyrillic-ext-400-normal-DQukG94-.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-400-normal-obahsSVq.woff2) format("woff2"),url(./inter-cyrillic-400-normal-HOLc17fK.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-ext-400-normal-DGGRlc-M.woff2) format("woff2"),url(./inter-greek-ext-400-normal-KugGGMne.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-400-normal-B4URO6DV.woff2) format("woff2"),url(./inter-greek-400-normal-q2sYcFCs.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-vietnamese-400-normal-DMkecbls.woff2) format("woff2"),url(./inter-vietnamese-400-normal-Bbgyi5SW.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-ext-400-normal-C1nco2VV.woff2) format("woff2"),url(./inter-latin-ext-400-normal-77YHD8bZ.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-400-normal-C38fXH4l.woff2) format("woff2"),url(./inter-latin-400-normal-CyCys3Eg.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-ext-600-normal-Dfes3d0z.woff2) format("woff2"),url(./inter-cyrillic-ext-600-normal-Bcila6Z-.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-600-normal-CWCymEST.woff2) format("woff2"),url(./inter-cyrillic-600-normal-4D_pXhcN.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-ext-600-normal-DRtmH8MT.woff2) format("woff2"),url(./inter-greek-ext-600-normal-B8X0CLgF.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-600-normal-plRanbMR.woff2) format("woff2"),url(./inter-greek-600-normal-BZpKdvQh.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-vietnamese-600-normal-Cc8MFFhd.woff2) format("woff2"),url(./inter-vietnamese-600-normal-BuLX-rYi.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-ext-600-normal-D2bJ5OIk.woff2) format("woff2"),url(./inter-latin-ext-600-normal-CIVaiw4L.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-600-normal-LgqL8muc.woff2) format("woff2"),url(./inter-latin-600-normal-CiBQ2DWP.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-cyrillic-ext-700-normal-BjwYoWNd.woff2) format("woff2"),url(./inter-cyrillic-ext-700-normal-LO58E6JB.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-cyrillic-700-normal-CjBOestx.woff2) format("woff2"),url(./inter-cyrillic-700-normal-DrXBdSj3.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-greek-ext-700-normal-qfdV9bQt.woff2) format("woff2"),url(./inter-greek-ext-700-normal-BoQ6DsYi.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-greek-700-normal-C3JjAnD8.woff2) format("woff2"),url(./inter-greek-700-normal-BUv2fZ6O.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-vietnamese-700-normal-DlLaEgI2.woff2) format("woff2"),url(./inter-vietnamese-700-normal-BZaoP0fm.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-latin-ext-700-normal-Ca8adRJv.woff2) format("woff2"),url(./inter-latin-ext-700-normal-TidjK2hL.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-latin-700-normal-Yt3aPRUw.woff2) format("woff2"),url(./inter-latin-700-normal-BLAVimhd.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-orange-50:oklch(98% .016 73.684);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-50:oklch(97% .014 254.604);--color-blue-600:oklch(54.6% .245 262.881);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-600:oklch(51.1% .262 276.966);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-900:oklch(21% .006 285.885);--color-white:#fff;--spacing:.25rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.right-0{right:calc(var(--spacing) * 0)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-10{height:calc(var(--spacing) * 10)}.h-\[2px\]{height:2px}.h-\[38px\]{height:38px}.h-\[600px\]{height:600px}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[140px\]{max-width:140px}.max-w-\[180px\]{max-width:180px}.flex-1{flex:1}.border-collapse{border-collapse:collapse}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.bg-amber-50{background-color:var(--color-amber-50)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-orange-50{background-color:var(--color-orange-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.bg-zinc-50{background-color:var(--color-zinc-50)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-900{background-color:var(--color-zinc-900)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-7{padding:calc(var(--spacing) * 7)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-7{padding-inline:calc(var(--spacing) * 7)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.12em\]{--tw-tracking:.12em;letter-spacing:.12em}.tracking-\[0\.15em\]{--tw-tracking:.15em;letter-spacing:.15em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-600{color:var(--color-blue-600)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-indigo-600{color:var(--color-indigo-600)}.text-orange-500{color:var(--color-orange-500)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-zinc-200{color:var(--color-zinc-200)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-900{color:var(--color-zinc-900)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-40{opacity:.4}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-amber-200{--tw-ring-color:var(--color-amber-200)}.ring-emerald-200{--tw-ring-color:var(--color-emerald-200)}.ring-red-200{--tw-ring-color:var(--color-red-200)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media(hover:hover){.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:text-zinc-900:is(:where(.group):hover *){color:var(--color-zinc-900)}.group-hover\:opacity-60:is(:where(.group):hover *){opacity:.6}.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:bg-zinc-50\/80:hover{background-color:#fafafacc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-zinc-50\/80:hover{background-color:color-mix(in oklab,var(--color-zinc-50) 80%,transparent)}}.hover\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\:text-zinc-600:hover{color:var(--color-zinc-600)}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.disabled\:opacity-40:disabled{opacity:.4}@media(min-width:40rem){.sm\:block{display:block}}@media(min-width:48rem){.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:64rem){.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}:root{--color-bg:#f4f4f5;--color-surface:#fff;--color-border:#e4e4e7;--color-heading:#09090b;--color-body:#52525b;--color-muted:#a1a1aa;--color-accent:#6366f1;--color-success:#22c55e;--color-warning:#f59e0b;--color-danger:#ef4444}*{box-sizing:border-box}body{background-color:var(--color-bg);color:var(--color-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#d4d4d8;border-radius:999px}::-webkit-scrollbar-thumb:hover{background:#a1a1aa}@keyframes fadeSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.animate-fade-slide-in{animation:.3s ease-out forwards fadeSlideIn}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
 
 
static/dashboard/assets/{index-756xQEYX.js → index-BVVzRQkx.js} RENAMED
The diff for this file is too large to render. See raw diff
 
static/dashboard/assets/index-D3SGpkUN.css ADDED
@@ -0,0 +1 @@
 
 
1
+ @font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-ext-400-normal-BQZuk6qB.woff2) format("woff2"),url(./inter-cyrillic-ext-400-normal-DQukG94-.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-400-normal-obahsSVq.woff2) format("woff2"),url(./inter-cyrillic-400-normal-HOLc17fK.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-ext-400-normal-DGGRlc-M.woff2) format("woff2"),url(./inter-greek-ext-400-normal-KugGGMne.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-400-normal-B4URO6DV.woff2) format("woff2"),url(./inter-greek-400-normal-q2sYcFCs.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-vietnamese-400-normal-DMkecbls.woff2) format("woff2"),url(./inter-vietnamese-400-normal-Bbgyi5SW.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-ext-400-normal-C1nco2VV.woff2) format("woff2"),url(./inter-latin-ext-400-normal-77YHD8bZ.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-400-normal-C38fXH4l.woff2) format("woff2"),url(./inter-latin-400-normal-CyCys3Eg.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-ext-600-normal-Dfes3d0z.woff2) format("woff2"),url(./inter-cyrillic-ext-600-normal-Bcila6Z-.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-600-normal-CWCymEST.woff2) format("woff2"),url(./inter-cyrillic-600-normal-4D_pXhcN.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-ext-600-normal-DRtmH8MT.woff2) format("woff2"),url(./inter-greek-ext-600-normal-B8X0CLgF.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-600-normal-plRanbMR.woff2) format("woff2"),url(./inter-greek-600-normal-BZpKdvQh.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-vietnamese-600-normal-Cc8MFFhd.woff2) format("woff2"),url(./inter-vietnamese-600-normal-BuLX-rYi.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-ext-600-normal-D2bJ5OIk.woff2) format("woff2"),url(./inter-latin-ext-600-normal-CIVaiw4L.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-600-normal-LgqL8muc.woff2) format("woff2"),url(./inter-latin-600-normal-CiBQ2DWP.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-cyrillic-ext-700-normal-BjwYoWNd.woff2) format("woff2"),url(./inter-cyrillic-ext-700-normal-LO58E6JB.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-cyrillic-700-normal-CjBOestx.woff2) format("woff2"),url(./inter-cyrillic-700-normal-DrXBdSj3.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-greek-ext-700-normal-qfdV9bQt.woff2) format("woff2"),url(./inter-greek-ext-700-normal-BoQ6DsYi.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-greek-700-normal-C3JjAnD8.woff2) format("woff2"),url(./inter-greek-700-normal-BUv2fZ6O.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-vietnamese-700-normal-DlLaEgI2.woff2) format("woff2"),url(./inter-vietnamese-700-normal-BZaoP0fm.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-latin-ext-700-normal-Ca8adRJv.woff2) format("woff2"),url(./inter-latin-ext-700-normal-TidjK2hL.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(./inter-latin-700-normal-Yt3aPRUw.woff2) format("woff2"),url(./inter-latin-700-normal-BLAVimhd.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-white:#fff;--spacing:.25rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--drop-shadow-md:0 3px 3px #0000001f;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.right-0{right:calc(var(--spacing) * 0)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-10{height:calc(var(--spacing) * 10)}.h-\[2px\]{height:2px}.h-\[38px\]{height:38px}.h-\[600px\]{height:600px}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-10{width:calc(var(--spacing) * 10)}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[140px\]{max-width:140px}.max-w-\[180px\]{max-width:180px}.flex-1{flex:1}.border-collapse{border-collapse:collapse}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-amber-500\/20{border-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/20{border-color:color-mix(in oklab,var(--color-amber-500) 20%,transparent)}}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/30{border-color:color-mix(in oklab,var(--color-amber-500) 30%,transparent)}}.border-blue-500\/20{border-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/20{border-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-indigo-500\/30{border-color:#625fff4d}@supports (color:color-mix(in lab,red,red)){.border-indigo-500\/30{border-color:color-mix(in oklab,var(--color-indigo-500) 30%,transparent)}}.border-orange-500\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/30{border-color:color-mix(in oklab,var(--color-orange-500) 30%,transparent)}}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.border-white\/5{border-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.border-white\/5{border-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.border-zinc-400\/30{border-color:#9f9fa94d}@supports (color:color-mix(in lab,red,red)){.border-zinc-400\/30{border-color:color-mix(in oklab,var(--color-zinc-400) 30%,transparent)}}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/10{background-color:color-mix(in oklab,var(--color-amber-500) 10%,transparent)}}.bg-amber-500\/20{background-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/20{background-color:color-mix(in oklab,var(--color-amber-500) 20%,transparent)}}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-indigo-400{background-color:var(--color-indigo-400)}.bg-indigo-500\/20{background-color:#625fff33}@supports (color:color-mix(in lab,red,red)){.bg-indigo-500\/20{background-color:color-mix(in oklab,var(--color-indigo-500) 20%,transparent)}}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-transparent{background-color:#0000}.bg-white\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.bg-white\/5{background-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-zinc-400\/20{background-color:#9f9fa933}@supports (color:color-mix(in lab,red,red)){.bg-zinc-400\/20{background-color:color-mix(in oklab,var(--color-zinc-400) 20%,transparent)}}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-7{padding:calc(var(--spacing) * 7)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-7{padding-inline:calc(var(--spacing) * 7)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-\[0\.12em\]{--tw-tracking:.12em;letter-spacing:.12em}.tracking-\[0\.15em\]{--tw-tracking:.15em;letter-spacing:.15em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-amber-300{color:var(--color-amber-300)}.text-amber-400{color:var(--color-amber-400)}.text-blue-400{color:var(--color-blue-400)}.text-emerald-400{color:var(--color-emerald-400)}.text-indigo-300{color:var(--color-indigo-300)}.text-orange-400{color:var(--color-orange-400)}.text-red-400{color:var(--color-red-400)}.text-white{color:var(--color-white)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-40{opacity:.4}.opacity-90{opacity:.9}.shadow-\[0_0_10px_rgba\(16\,185\,129\,0\.2\)\]{--tw-shadow:0 0 10px var(--tw-shadow-color,#10b98133);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_10px_rgba\(129\,140\,248\,0\.8\)\]{--tw-shadow:0 0 10px var(--tw-shadow-color,#818cf8cc);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_10px_rgba\(239\,68\,68\,0\.2\)\]{--tw-shadow:0 0 10px var(--tw-shadow-color,#ef444433);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_10px_rgba\(251\,191\,36\,0\.2\)\]{--tw-shadow:0 0 10px var(--tw-shadow-color,#fbbf2433);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_10px_rgba\(251\,191\,36\,0\.3\)\]{--tw-shadow:0 0 10px var(--tw-shadow-color,#fbbf244d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_15px_rgba\(16\,185\,129\,0\.2\)\]{--tw-shadow:0 0 15px var(--tw-shadow-color,#10b98133);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_15px_rgba\(59\,130\,246\,0\.2\)\]{--tw-shadow:0 0 15px var(--tw-shadow-color,#3b82f633);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_15px_rgba\(239\,68\,68\,0\.2\)\]{--tw-shadow:0 0 15px var(--tw-shadow-color,#ef444433);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_15px_rgba\(251\,191\,36\,0\.2\)\]{--tw-shadow:0 0 15px var(--tw-shadow-color,#fbbf2433);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.drop-shadow-\[0_0_8px_rgba\(161\,161\,170\,0\.6\)\]{--tw-drop-shadow-size:drop-shadow(0 0 8px var(--tw-drop-shadow-color,#a1a1aa99));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-\[0_0_8px_rgba\(249\,115\,22\,0\.6\)\]{--tw-drop-shadow-size:drop-shadow(0 0 8px var(--tw-drop-shadow-color,#f9731699));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-\[0_0_8px_rgba\(251\,191\,36\,0\.6\)\]{--tw-drop-shadow-size:drop-shadow(0 0 8px var(--tw-drop-shadow-color,#fbbf2499));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-\[0_0_10px_rgba\(255\,255\,255\,0\.2\)\]{--tw-drop-shadow-size:drop-shadow(0 0 10px var(--tw-drop-shadow-color,#fff3));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-md{--tw-drop-shadow-size:drop-shadow(0 3px 3px var(--tw-drop-shadow-color,#0000001f));--tw-drop-shadow:drop-shadow(var(--drop-shadow-md));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}@media(hover:hover){.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\:opacity-60:is(:where(.group):hover *){opacity:.6}.group-hover\:drop-shadow-\[0_0_8px_rgba\(255\,255\,255\,0\.4\)\]:is(:where(.group):hover *){--tw-drop-shadow-size:drop-shadow(0 0 8px var(--tw-drop-shadow-color,#fff6));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.hover\:bg-white\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/5:hover{background-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.hover\:bg-white\/\[0\.03\]:hover{background-color:#ffffff08}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/\[0\.03\]:hover{background-color:color-mix(in oklab,var(--color-white) 3%,transparent)}}.hover\:text-zinc-300:hover{color:var(--color-zinc-300)}.hover\:opacity-100:hover{opacity:1}}.disabled\:opacity-40:disabled{opacity:.4}@media(min-width:40rem){.sm\:block{display:block}}@media(min-width:48rem){.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:64rem){.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}:root{--color-bg:#09090b;--color-surface:#18181b99;--color-border:#ffffff14;--color-heading:#fafafa;--color-body:#a1a1aa;--color-muted:#52525b;--color-accent:#818cf8;--color-accent-glow:#818cf826;--color-success:#34d399;--color-warning:#fbbf24;--color-danger:#f87171}*{box-sizing:border-box}body{background-color:var(--color-bg);color:var(--color-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:radial-gradient(circle at 15%,#818cf80a,#0000 25%),radial-gradient(circle at 85% 30%,#34d3990a,#0000 25%);min-height:100vh;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}.glass-panel{background:var(--color-surface);-webkit-backdrop-filter:blur(12px);border:1px solid var(--color-border);box-shadow:0 4px 24px -4px #00000080}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#3f3f46;border-radius:999px}::-webkit-scrollbar-thumb:hover{background:#52525b}@keyframes fadeSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.animate-fade-slide-in{animation:.4s cubic-bezier(.16,1,.3,1) forwards fadeSlideIn}.hover-lift{transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s}.hover-lift:hover{box-shadow:0 10px 25px -5px #00000080,0 0 15px var(--color-accent-glow);transform:translateY(-2px)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
static/dashboard/index.html CHANGED
@@ -6,8 +6,8 @@
6
  <title>CodeLens Dashboard</title>
7
  <meta name="description" content="CodeLens Evaluation Dashboard — Live leaderboard, stats, and real-time event feed." />
8
  <link rel="icon" type="image/svg+xml" href="./favicon.svg" />
9
- <script type="module" crossorigin src="./assets/index-756xQEYX.js"></script>
10
- <link rel="stylesheet" crossorigin href="./assets/index-B51822Cd.css">
11
  </head>
12
  <body>
13
  <div id="root"></div>
 
6
  <title>CodeLens Dashboard</title>
7
  <meta name="description" content="CodeLens Evaluation Dashboard — Live leaderboard, stats, and real-time event feed." />
8
  <link rel="icon" type="image/svg+xml" href="./favicon.svg" />
9
+ <script type="module" crossorigin src="./assets/index-BVVzRQkx.js"></script>
10
+ <link rel="stylesheet" crossorigin href="./assets/index-D3SGpkUN.css">
11
  </head>
12
  <body>
13
  <div id="root"></div>