Spaces:
Sleeping
Sleeping
havinashpatil commited on
Commit ·
03defc2
1
Parent(s): 646409d
Upload meta
Browse files- CodeArenaRL.jsx +1078 -0
- frontend/.gitignore +24 -0
- frontend/README.md +16 -0
- frontend/eslint.config.js +29 -0
- frontend/index.html +14 -0
- frontend/package-lock.json +2628 -0
- frontend/package.json +27 -0
- frontend/public/favicon.svg +1 -0
- frontend/public/icons.svg +24 -0
- frontend/src/App.css +184 -0
- frontend/src/App.jsx +4 -0
- frontend/src/CodeArenaRL.jsx +1083 -0
- frontend/src/assets/hero.png +0 -0
- frontend/src/assets/react.svg +1 -0
- frontend/src/assets/vite.svg +1 -0
- frontend/src/index.css +1 -0
- frontend/src/main.jsx +9 -0
- frontend/vite.config.js +16 -0
- push_to_hf.py +33 -0
- server/app.py +16 -3
- server/env.py +5 -2
- server/grader.py +25 -5
CodeArenaRL.jsx
ADDED
|
@@ -0,0 +1,1078 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import React, { useState, useEffect, useRef, useCallback } from "react";
|
| 3 |
+
|
| 4 |
+
/* ─────────────────────────────────────────────
|
| 5 |
+
GOOGLE FONTS
|
| 6 |
+
───────────────────────────────────────────── */
|
| 7 |
+
const FontLoader = () => {
|
| 8 |
+
useEffect(() => {
|
| 9 |
+
const link = document.createElement("link");
|
| 10 |
+
link.rel = "stylesheet";
|
| 11 |
+
link.href =
|
| 12 |
+
"https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Rajdhani:wght@400;500;600;700&display=swap";
|
| 13 |
+
document.head.appendChild(link);
|
| 14 |
+
return () => document.head.removeChild(link);
|
| 15 |
+
}, []);
|
| 16 |
+
return null;
|
| 17 |
+
};
|
| 18 |
+
|
| 19 |
+
/* ─────────────────────────────────────────────
|
| 20 |
+
GLOBAL STYLES
|
| 21 |
+
───────────────────────────────────────────── */
|
| 22 |
+
const GlobalStyles = () => (
|
| 23 |
+
<style>{`
|
| 24 |
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
| 25 |
+
body { background: #0a0e1a; color: #e2e8f0; font-family: 'Rajdhani', sans-serif; }
|
| 26 |
+
::-webkit-scrollbar { width: 6px; height: 6px; }
|
| 27 |
+
::-webkit-scrollbar-track { background: #0a0e1a; }
|
| 28 |
+
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
|
| 29 |
+
::-webkit-scrollbar-thumb:hover { background: #334155; }
|
| 30 |
+
|
| 31 |
+
@keyframes pulse-border {
|
| 32 |
+
0%,100%{box-shadow:0 0 0 0 rgba(0,255,136,0.4),inset 0 0 20px rgba(0,255,136,0.05);}
|
| 33 |
+
50%{box-shadow:0 0 0 6px rgba(0,255,136,0),inset 0 0 30px rgba(0,255,136,0.12);}
|
| 34 |
+
}
|
| 35 |
+
@keyframes blink{0%,49%{opacity:1}50%,100%{opacity:0}}
|
| 36 |
+
@keyframes slide-in-right{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:translateX(0)}}
|
| 37 |
+
@keyframes success-glow{0%,100%{box-shadow:0 0 30px rgba(0,255,136,0.15)}50%{box-shadow:0 0 60px rgba(0,255,136,0.35)}}
|
| 38 |
+
@keyframes spin{to{transform:rotate(360deg)}}
|
| 39 |
+
@keyframes dot-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.4;transform:scale(0.7)}}
|
| 40 |
+
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
|
| 41 |
+
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
|
| 42 |
+
|
| 43 |
+
.thinking-border{animation:pulse-border 1.5s ease-in-out infinite;}
|
| 44 |
+
.success-glow{animation:success-glow 2s ease-in-out infinite;}
|
| 45 |
+
.blink{animation:blink 1s step-end infinite;}
|
| 46 |
+
.fade-in{animation:fadeIn 0.3s ease both;}
|
| 47 |
+
|
| 48 |
+
.code-block{
|
| 49 |
+
font-family:'JetBrains Mono',monospace;font-size:12px;line-height:1.7;
|
| 50 |
+
background:#0d1117;border:1px solid #1e293b;border-radius:8px;
|
| 51 |
+
padding:14px;overflow:auto;color:#a8d8a8;white-space:pre;tab-size:4;
|
| 52 |
+
}
|
| 53 |
+
.terminal-block{
|
| 54 |
+
font-family:'JetBrains Mono',monospace;font-size:11.5px;line-height:1.75;
|
| 55 |
+
background:#050810;border:1px solid #1e293b;border-radius:8px;
|
| 56 |
+
padding:14px;overflow:auto;white-space:pre-wrap;
|
| 57 |
+
}
|
| 58 |
+
.btn{
|
| 59 |
+
font-family:'Rajdhani',sans-serif;font-weight:600;font-size:13px;
|
| 60 |
+
letter-spacing:0.05em;border:none;border-radius:6px;cursor:pointer;
|
| 61 |
+
padding:8px 18px;transition:all 0.18s ease;display:inline-flex;align-items:center;gap:6px;
|
| 62 |
+
}
|
| 63 |
+
.btn:disabled{opacity:0.4;cursor:not-allowed;}
|
| 64 |
+
.btn-primary{background:linear-gradient(135deg,#00ff88 0%,#00c96f 100%);color:#0a0e1a;}
|
| 65 |
+
.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#33ffaa 0%,#00e07a 100%);box-shadow:0 0 16px rgba(0,255,136,0.4);transform:translateY(-1px);}
|
| 66 |
+
.btn-danger{background:linear-gradient(135deg,#ff4455 0%,#cc1122 100%);color:#fff;}
|
| 67 |
+
.btn-danger:hover:not(:disabled){box-shadow:0 0 16px rgba(255,68,85,0.4);transform:translateY(-1px);}
|
| 68 |
+
.btn-ghost{background:transparent;border:1px solid #1e293b;color:#94a3b8;}
|
| 69 |
+
.btn-ghost:hover:not(:disabled){border-color:#334155;color:#e2e8f0;background:#111827;}
|
| 70 |
+
.btn-amber{background:linear-gradient(135deg,#ffaa00 0%,#cc8800 100%);color:#0a0e1a;}
|
| 71 |
+
.btn-amber:hover:not(:disabled){box-shadow:0 0 16px rgba(255,170,0,0.4);transform:translateY(-1px);}
|
| 72 |
+
|
| 73 |
+
.panel{background:#111827;border:1px solid #1e293b;border-radius:12px;overflow:hidden;}
|
| 74 |
+
.panel-header{
|
| 75 |
+
background:#0d1117;border-bottom:1px solid #1e293b;padding:10px 16px;
|
| 76 |
+
display:flex;align-items:center;gap:8px;font-family:'Rajdhani',sans-serif;
|
| 77 |
+
font-weight:700;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#64748b;
|
| 78 |
+
}
|
| 79 |
+
.badge{font-size:10px;font-weight:700;letter-spacing:0.08em;padding:2px 8px;border-radius:4px;text-transform:uppercase;}
|
| 80 |
+
.badge-easy{background:rgba(0,255,136,0.15);color:#00ff88;border:1px solid rgba(0,255,136,0.3);}
|
| 81 |
+
.badge-medium{background:rgba(255,170,0,0.15);color:#ffaa00;border:1px solid rgba(255,170,0,0.3);}
|
| 82 |
+
.badge-hard{background:rgba(255,68,85,0.15);color:#ff4455;border:1px solid rgba(255,68,85,0.3);}
|
| 83 |
+
.badge-info{background:rgba(99,179,237,0.15);color:#63b3ed;border:1px solid rgba(99,179,237,0.3);}
|
| 84 |
+
.badge-ollama{background:rgba(139,92,246,0.15);color:#a78bfa;border:1px solid rgba(139,92,246,0.3);}
|
| 85 |
+
|
| 86 |
+
.task-btn{
|
| 87 |
+
width:100%;text-align:left;background:#1a2235;border:1px solid #1e293b;
|
| 88 |
+
border-radius:8px;padding:12px 14px;cursor:pointer;transition:all 0.18s ease;
|
| 89 |
+
font-family:'Rajdhani',sans-serif;color:#e2e8f0;
|
| 90 |
+
}
|
| 91 |
+
.task-btn:hover{border-color:#334155;background:#1f2d45;}
|
| 92 |
+
.task-btn.active{border-color:#00ff88;background:rgba(0,255,136,0.08);}
|
| 93 |
+
.task-btn.active-medium{border-color:#ffaa00;background:rgba(255,170,0,0.08);}
|
| 94 |
+
.task-btn.active-hard{border-color:#ff4455;background:rgba(255,68,85,0.08);}
|
| 95 |
+
|
| 96 |
+
.stat-card{background:#1a2235;border:1px solid #1e293b;border-radius:8px;padding:10px 14px;}
|
| 97 |
+
.reward-bar-outer{height:6px;background:#1e293b;border-radius:3px;overflow:hidden;margin-top:6px;}
|
| 98 |
+
.reward-bar-inner{height:100%;border-radius:3px;transition:width 0.8s cubic-bezier(0.25,0.46,0.45,0.94);}
|
| 99 |
+
.log-entry{
|
| 100 |
+
background:#1a2235;border:1px solid #1e293b;border-radius:8px;
|
| 101 |
+
padding:10px 12px;margin-bottom:8px;
|
| 102 |
+
animation:slide-in-right 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both;
|
| 103 |
+
}
|
| 104 |
+
.dot-live{width:8px;height:8px;border-radius:50%;background:#00ff88;animation:dot-pulse 1.5s ease-in-out infinite;display:inline-block;}
|
| 105 |
+
.spinner{width:14px;height:14px;border:2px solid rgba(0,255,136,0.2);border-top-color:#00ff88;border-radius:50%;animation:spin 0.8s linear infinite;display:inline-block;}
|
| 106 |
+
|
| 107 |
+
.cfg-input{
|
| 108 |
+
width:100%;font-family:'JetBrains Mono',monospace;font-size:12px;
|
| 109 |
+
background:#0d1117;border:1px solid #1e293b;border-radius:6px;
|
| 110 |
+
color:#e2e8f0;padding:8px 12px;outline:none;letter-spacing:0.04em;
|
| 111 |
+
}
|
| 112 |
+
.cfg-input:focus{border-color:#a78bfa;}
|
| 113 |
+
select.cfg-input{cursor:pointer;}
|
| 114 |
+
textarea{
|
| 115 |
+
font-family:'JetBrains Mono',monospace;font-size:12px;line-height:1.7;
|
| 116 |
+
background:#0d1117;border:1px solid #1e293b;border-radius:8px;
|
| 117 |
+
color:#a8d8a8;padding:14px;resize:vertical;outline:none;width:100%;
|
| 118 |
+
}
|
| 119 |
+
textarea:focus{border-color:#00ff88;box-shadow:0 0 0 2px rgba(0,255,136,0.15);}
|
| 120 |
+
|
| 121 |
+
.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px;}
|
| 122 |
+
.status-dot.online{background:#00ff88;box-shadow:0 0 6px rgba(0,255,136,0.5);}
|
| 123 |
+
.status-dot.offline{background:#ff4455;box-shadow:0 0 6px rgba(255,68,85,0.5);}
|
| 124 |
+
.status-dot.checking{background:#ffaa00;animation:dot-pulse 1s ease-in-out infinite;}
|
| 125 |
+
`}</style>
|
| 126 |
+
);
|
| 127 |
+
|
| 128 |
+
/* ─────────────────────────────────────────────
|
| 129 |
+
TASKS (mirrors server tasks — display only)
|
| 130 |
+
───────────────────────────────────────────── */
|
| 131 |
+
const TASKS = {
|
| 132 |
+
"easy-1": {
|
| 133 |
+
id: "easy-1", label: "Easy", name: "Fix average_list()", difficulty: "easy",
|
| 134 |
+
description: "Fix syntax errors: missing colon after def and uses length() instead of len().",
|
| 135 |
+
hints: ["Missing colon after def", "length() → len()"],
|
| 136 |
+
buggy_code: `def average_list(numbers)\n if length(numbers) == 0:\n return 0\n return sum(numbers) / length(numbers)`,
|
| 137 |
+
},
|
| 138 |
+
"medium-1": {
|
| 139 |
+
id: "medium-1", label: "Medium", name: "Fix binary_search()", difficulty: "medium",
|
| 140 |
+
description: "Fix logical bugs: loop condition skips last element; left pointer causes infinite loop.",
|
| 141 |
+
hints: ["left < right → left <= right", "left = mid → left = mid + 1"],
|
| 142 |
+
buggy_code: `def binary_search(arr, target):\n left, right = 0, len(arr) - 1\n while left < right:\n mid = (left + right) // 2\n if arr[mid] == target:\n return mid\n elif arr[mid] < target:\n left = mid\n else:\n right = mid - 1\n return -1`,
|
| 143 |
+
},
|
| 144 |
+
"hard-1": {
|
| 145 |
+
id: "hard-1", label: "Hard", name: "Optimize max_subarray_sum()", difficulty: "hard",
|
| 146 |
+
description: "Replace O(N³) brute-force with Kadane's O(N) algorithm.",
|
| 147 |
+
hints: ["Use Kadane's algorithm", "Eliminate triple nested loop"],
|
| 148 |
+
buggy_code: `def max_subarray_sum(arr):\n if not arr:\n return 0\n max_sum = arr[0]\n for i in range(len(arr)):\n for j in range(i, len(arr)):\n for k in range(i, j+1):\n current = sum(arr[i:j+1])\n if current > max_sum:\n max_sum = current\n return max_sum`,
|
| 149 |
+
},
|
| 150 |
+
};
|
| 151 |
+
|
| 152 |
+
/* ─────────────────────────────────────────────
|
| 153 |
+
REWARD COLOR
|
| 154 |
+
───────────────────────────────────────────── */
|
| 155 |
+
function rewardColor(r) {
|
| 156 |
+
if (r >= 0.85) return "#00ff88";
|
| 157 |
+
if (r >= 0.5) return "#ffaa00";
|
| 158 |
+
return "#ff4455";
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
/* ─────────────────────────────────────────────
|
| 162 |
+
ANSI LINE RENDERER
|
| 163 |
+
───────────────────────────────────────────── */
|
| 164 |
+
function AnsiLine({ text }) {
|
| 165 |
+
const parts = text.split(/\x1b\[(\d+)m/);
|
| 166 |
+
let color = null;
|
| 167 |
+
const els = [];
|
| 168 |
+
parts.forEach((p, i) => {
|
| 169 |
+
if (p === "32") color = "#00ff88";
|
| 170 |
+
else if (p === "33") color = "#ffaa00";
|
| 171 |
+
else if (p === "31") color = "#ff4455";
|
| 172 |
+
else if (p === "0") color = null;
|
| 173 |
+
else els.push(<span key={i} style={color ? { color } : {}}>{p}</span>);
|
| 174 |
+
});
|
| 175 |
+
return <span>{els}</span>;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
/* ─────────────────────────────────────────────
|
| 179 |
+
REWARD CHART
|
| 180 |
+
───────────────────────────────────────────── */
|
| 181 |
+
function RewardChart({ rewards }) {
|
| 182 |
+
const W = 260, H = 100, PAD = 20;
|
| 183 |
+
const pts = rewards.map((r, i) => ({
|
| 184 |
+
x: PAD + (i / Math.max(4, 1)) * (W - PAD * 2),
|
| 185 |
+
y: PAD + (1 - r) * (H - PAD * 2),
|
| 186 |
+
r,
|
| 187 |
+
}));
|
| 188 |
+
const pathD = pts.length > 1 ? pts.reduce((a, p, i) => i === 0 ? `M${p.x},${p.y}` : a + ` L${p.x},${p.y}`, "") : "";
|
| 189 |
+
const areaD = pts.length > 1 ? `${pathD} L${pts[pts.length - 1].x},${H - PAD} L${pts[0].x},${H - PAD} Z` : "";
|
| 190 |
+
return (
|
| 191 |
+
<svg width="100%" viewBox={`0 0 ${W} ${H}`}>
|
| 192 |
+
<defs>
|
| 193 |
+
<linearGradient id="rg" x1="0" y1="0" x2="0" y2="1">
|
| 194 |
+
<stop offset="0%" stopColor="#00ff88" stopOpacity="0.3" />
|
| 195 |
+
<stop offset="100%" stopColor="#00ff88" stopOpacity="0" />
|
| 196 |
+
</linearGradient>
|
| 197 |
+
</defs>
|
| 198 |
+
{[0, 0.5, 1].map(v => {
|
| 199 |
+
const y = PAD + (1 - v) * (H - PAD * 2);
|
| 200 |
+
return <line key={v} x1={PAD} y1={y} x2={W - PAD} y2={y} stroke="#1e293b" strokeWidth="1" strokeDasharray="3,3" />;
|
| 201 |
+
})}
|
| 202 |
+
{[1, 2, 3, 4, 5].map(s => (
|
| 203 |
+
<text key={s} x={PAD + ((s - 1) / 4) * (W - PAD * 2)} y={H - 4}
|
| 204 |
+
fill="#334155" fontSize="8" textAnchor="middle" fontFamily="JetBrains Mono">{s}</text>
|
| 205 |
+
))}
|
| 206 |
+
{areaD && <path d={areaD} fill="url(#rg)" />}
|
| 207 |
+
{pathD && <path d={pathD} fill="none" stroke="#00ff88" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />}
|
| 208 |
+
{pts.map((p, i) => <circle key={i} cx={p.x} cy={p.y} r="4" fill="#0a0e1a" stroke={rewardColor(p.r)} strokeWidth="2" />)}
|
| 209 |
+
</svg>
|
| 210 |
+
);
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
/* ─────────────────────────────────────────────
|
| 214 |
+
MAIN APP
|
| 215 |
+
───────────────────────────────────────────── */
|
| 216 |
+
export default function CodeArenaRL() {
|
| 217 |
+
/* ── Ollama config ── */
|
| 218 |
+
const [ollamaUrl, setOllamaUrl] = useState("http://localhost:11434");
|
| 219 |
+
const [ollamaModel, setOllamaModel] = useState("codellama");
|
| 220 |
+
const [availableModels, setAvailableModels] = useState([]);
|
| 221 |
+
const [ollamaStatus, setOllamaStatus] = useState("checking"); // checking | online | offline
|
| 222 |
+
|
| 223 |
+
/* ── OpenEnv (FastAPI) config ── */
|
| 224 |
+
const [envUrl, setEnvUrl] = useState("http://localhost:7860");
|
| 225 |
+
const [envStatus, setEnvStatus] = useState("checking");
|
| 226 |
+
|
| 227 |
+
/* ── Task & episode state ── */
|
| 228 |
+
const [selectedTask, setSelectedTask] = useState("easy-1");
|
| 229 |
+
const [envState, setEnvState] = useState(null); // observation from server
|
| 230 |
+
const [uiMode, setUiMode] = useState("idle"); // idle|resetting|agent_thinking|executing|done
|
| 231 |
+
const [episodeLog, setEpisodeLog] = useState([]);
|
| 232 |
+
const [rewards, setRewards] = useState([]);
|
| 233 |
+
const [stepCount, setStepCount] = useState(0);
|
| 234 |
+
const [isDone, setIsDone] = useState(false);
|
| 235 |
+
|
| 236 |
+
/* ── Code display ── */
|
| 237 |
+
const [streamingCode, setStreamingCode] = useState("");
|
| 238 |
+
const [agentCode, setAgentCode] = useState("");
|
| 239 |
+
const [isTyping, setIsTyping] = useState(false);
|
| 240 |
+
const [execOutput, setExecOutput] = useState([]); // lines from /step response
|
| 241 |
+
|
| 242 |
+
/* ── Manual mode ── */
|
| 243 |
+
const [manualMode, setManualMode] = useState(false);
|
| 244 |
+
const [manualCode, setManualCode] = useState("");
|
| 245 |
+
|
| 246 |
+
/* ── Speed ── */
|
| 247 |
+
const [speed, setSpeed] = useState("normal");
|
| 248 |
+
const speedMap = { slow: 3, normal: 1, fast: 0.25 };
|
| 249 |
+
|
| 250 |
+
/* ── Misc ── */
|
| 251 |
+
const [tokenEst, setTokenEst] = useState(0);
|
| 252 |
+
const [collapsedEntries, setCollapsedEntries] = useState(new Set());
|
| 253 |
+
const [copied, setCopied] = useState(false);
|
| 254 |
+
const [errorBanner, setErrorBanner] = useState("");
|
| 255 |
+
|
| 256 |
+
const runningRef = useRef(false);
|
| 257 |
+
const logRef = useRef(null);
|
| 258 |
+
const task = TASKS[selectedTask];
|
| 259 |
+
|
| 260 |
+
/* ──────────────────────────────────────────
|
| 261 |
+
STATUS PROBES
|
| 262 |
+
─────────────────────────────────────────── */
|
| 263 |
+
const probeOllama = useCallback(async () => {
|
| 264 |
+
setOllamaStatus("checking");
|
| 265 |
+
try {
|
| 266 |
+
const res = await fetch(`${ollamaUrl}/api/tags`, { signal: AbortSignal.timeout(3000) });
|
| 267 |
+
if (res.ok) {
|
| 268 |
+
const data = await res.json();
|
| 269 |
+
const names = (data.models || []).map(m => m.name);
|
| 270 |
+
setAvailableModels(names.length > 0 ? names : ["codellama", "llama3", "mistral", "deepseek-coder"]);
|
| 271 |
+
setOllamaStatus("online");
|
| 272 |
+
} else {
|
| 273 |
+
setOllamaStatus("offline");
|
| 274 |
+
}
|
| 275 |
+
} catch {
|
| 276 |
+
setOllamaStatus("offline");
|
| 277 |
+
setAvailableModels(["codellama", "llama3", "mistral", "deepseek-coder"]);
|
| 278 |
+
}
|
| 279 |
+
}, [ollamaUrl]);
|
| 280 |
+
|
| 281 |
+
const probeEnv = useCallback(async () => {
|
| 282 |
+
setEnvStatus("checking");
|
| 283 |
+
try {
|
| 284 |
+
const res = await fetch(`${envUrl}/`, { signal: AbortSignal.timeout(3000) });
|
| 285 |
+
setEnvStatus(res.ok ? "online" : "offline");
|
| 286 |
+
} catch {
|
| 287 |
+
setEnvStatus("offline");
|
| 288 |
+
}
|
| 289 |
+
}, [envUrl]);
|
| 290 |
+
|
| 291 |
+
useEffect(() => { probeOllama(); }, [probeOllama]);
|
| 292 |
+
useEffect(() => { probeEnv(); }, [probeEnv]);
|
| 293 |
+
|
| 294 |
+
/* ──────────────────────────────────────────
|
| 295 |
+
OPENENV API CALLS
|
| 296 |
+
─────────────────────────────────────────── */
|
| 297 |
+
const envReset = useCallback(async (taskId) => {
|
| 298 |
+
const res = await fetch(`${envUrl}/reset`, {
|
| 299 |
+
method: "POST",
|
| 300 |
+
headers: { "Content-Type": "application/json" },
|
| 301 |
+
body: JSON.stringify({ task_id: taskId }),
|
| 302 |
+
});
|
| 303 |
+
if (!res.ok) throw new Error(`/reset failed: ${res.status}`);
|
| 304 |
+
const data = await res.json();
|
| 305 |
+
return data.observation; // { buggy_code, error_log, test_results, previous_attempts }
|
| 306 |
+
}, [envUrl]);
|
| 307 |
+
|
| 308 |
+
const envStep = useCallback(async (proposedFix) => {
|
| 309 |
+
const res = await fetch(`${envUrl}/step`, {
|
| 310 |
+
method: "POST",
|
| 311 |
+
headers: { "Content-Type": "application/json" },
|
| 312 |
+
body: JSON.stringify({ proposed_fix: proposedFix }),
|
| 313 |
+
});
|
| 314 |
+
if (!res.ok) throw new Error(`/step failed: ${res.status}`);
|
| 315 |
+
const data = await res.json();
|
| 316 |
+
// { observation, reward, done, info }
|
| 317 |
+
return data;
|
| 318 |
+
}, [envUrl]);
|
| 319 |
+
|
| 320 |
+
/* ──────────────────────────────────────────
|
| 321 |
+
OLLAMA CALL
|
| 322 |
+
─────────────────────────────────────────── */
|
| 323 |
+
const callOllama = useCallback(async (obs) => {
|
| 324 |
+
const prompt = [
|
| 325 |
+
`You are an expert Python debugging agent in a reinforcement learning environment.`,
|
| 326 |
+
`Return ONLY the fixed Python code — no explanation, no markdown, no code fences.`,
|
| 327 |
+
``,
|
| 328 |
+
`Task: ${task.description}`,
|
| 329 |
+
``,
|
| 330 |
+
`BUGGY CODE:`,
|
| 331 |
+
obs.buggy_code,
|
| 332 |
+
``,
|
| 333 |
+
`ERROR LOG:`,
|
| 334 |
+
obs.error_log || "No errors yet",
|
| 335 |
+
``,
|
| 336 |
+
`TEST RESULTS:`,
|
| 337 |
+
obs.test_results || "No tests run yet",
|
| 338 |
+
``,
|
| 339 |
+
`PREVIOUS FAILED ATTEMPTS (${(obs.previous_attempts || []).length}):`,
|
| 340 |
+
(obs.previous_attempts || []).length > 0
|
| 341 |
+
? obs.previous_attempts.join("\n---\n")
|
| 342 |
+
: "None",
|
| 343 |
+
``,
|
| 344 |
+
`Return ONLY the corrected Python code:`,
|
| 345 |
+
].join("\n");
|
| 346 |
+
|
| 347 |
+
setTokenEst(Math.ceil(prompt.length / 4));
|
| 348 |
+
|
| 349 |
+
const res = await fetch(`${ollamaUrl}/api/generate`, {
|
| 350 |
+
method: "POST",
|
| 351 |
+
headers: { "Content-Type": "application/json" },
|
| 352 |
+
body: JSON.stringify({
|
| 353 |
+
model: ollamaModel,
|
| 354 |
+
prompt,
|
| 355 |
+
stream: false,
|
| 356 |
+
options: { temperature: 0.2, num_predict: 512 },
|
| 357 |
+
}),
|
| 358 |
+
});
|
| 359 |
+
|
| 360 |
+
if (!res.ok) {
|
| 361 |
+
const errText = await res.text();
|
| 362 |
+
throw new Error(`Ollama error ${res.status}: ${errText}`);
|
| 363 |
+
}
|
| 364 |
+
|
| 365 |
+
const data = await res.json();
|
| 366 |
+
let code = (data.response || "").trim();
|
| 367 |
+
|
| 368 |
+
// Strip markdown code fences if model adds them
|
| 369 |
+
code = code.replace(/^```[\w]*\n?/gm, "").replace(/```\s*$/gm, "").trim();
|
| 370 |
+
return code;
|
| 371 |
+
}, [ollamaUrl, ollamaModel, task]);
|
| 372 |
+
|
| 373 |
+
/* ──────────────────────────────────────────
|
| 374 |
+
STREAM TEXT (typing animation)
|
| 375 |
+
─────────────────────────────────────────── */
|
| 376 |
+
const streamText = useCallback((text, setter, onDone) => {
|
| 377 |
+
const delay = Math.max(4, 18 * speedMap[speed]);
|
| 378 |
+
let i = 0;
|
| 379 |
+
setter("");
|
| 380 |
+
setIsTyping(true);
|
| 381 |
+
const iv = setInterval(() => {
|
| 382 |
+
if (!runningRef.current) { clearInterval(iv); return; }
|
| 383 |
+
i++;
|
| 384 |
+
setter(text.slice(0, i));
|
| 385 |
+
if (i >= text.length) { clearInterval(iv); setIsTyping(false); if (onDone) onDone(); }
|
| 386 |
+
}, delay);
|
| 387 |
+
}, [speed]);
|
| 388 |
+
|
| 389 |
+
/* ──────────────────────────────────────────
|
| 390 |
+
BUILD EXECUTION OUTPUT LINES from /step
|
| 391 |
+
─────────────────────────────────────────── */
|
| 392 |
+
const buildOutputLines = (stepResp) => {
|
| 393 |
+
const { reward, done, info, observation } = stepResp;
|
| 394 |
+
const meta = info?.execution_metadata || {};
|
| 395 |
+
const passed = meta.test_passed ?? "?";
|
| 396 |
+
const total = meta.test_total ?? "?";
|
| 397 |
+
const elapsed = (Math.random() * 0.003 + 0.001).toFixed(3);
|
| 398 |
+
const errors = meta.runtime_errors || observation?.error_log || "";
|
| 399 |
+
|
| 400 |
+
const lines = [];
|
| 401 |
+
if (reward >= 0.99 || (passed !== "?" && passed >= total)) {
|
| 402 |
+
lines.push(`\x1b[32m${"." .repeat(typeof total === "number" ? total : 3)}\x1b[0m`);
|
| 403 |
+
lines.push(`----------------------------------------------------------------------`);
|
| 404 |
+
lines.push(`Ran ${total} tests in ${elapsed}s`);
|
| 405 |
+
lines.push(``);
|
| 406 |
+
lines.push(`\x1b[32mOK\x1b[0m`);
|
| 407 |
+
} else if (passed > 0) {
|
| 408 |
+
const fail = total - passed;
|
| 409 |
+
lines.push(`\x1b[33m${"F".repeat(fail)}${"." .repeat(passed)}\x1b[0m`);
|
| 410 |
+
lines.push(``);
|
| 411 |
+
lines.push(`FAIL: partial solution — ${fail} test(s) failed`);
|
| 412 |
+
if (errors) lines.push(`RuntimeError: ${errors.split("\n")[0]}`);
|
| 413 |
+
lines.push(`----------------------------------------------------------------------`);
|
| 414 |
+
lines.push(`Ran ${total} tests in ${elapsed}s`);
|
| 415 |
+
lines.push(``);
|
| 416 |
+
lines.push(`\x1b[33mFAILED (failures=${fail})\x1b[0m`);
|
| 417 |
+
} else {
|
| 418 |
+
lines.push(`\x1b[31m${"F".repeat(typeof total === "number" ? total : 3)}\x1b[0m`);
|
| 419 |
+
lines.push(``);
|
| 420 |
+
if (errors) {
|
| 421 |
+
errors.split("\n").slice(0, 3).forEach(l => lines.push(l));
|
| 422 |
+
} else {
|
| 423 |
+
lines.push(`FAIL: all tests failed`);
|
| 424 |
+
}
|
| 425 |
+
lines.push(`----------------------------------------------------------------------`);
|
| 426 |
+
lines.push(`Ran ${total} tests in ${elapsed}s`);
|
| 427 |
+
lines.push(``);
|
| 428 |
+
lines.push(`\x1b[31mFAILED (errors=${typeof total === "number" ? total : "?"})\x1b[0m`);
|
| 429 |
+
}
|
| 430 |
+
return lines;
|
| 431 |
+
};
|
| 432 |
+
|
| 433 |
+
/* ──────────────────────────────────────────
|
| 434 |
+
STREAM OUTPUT LINES
|
| 435 |
+
─────────────────────────────────────────── */
|
| 436 |
+
const streamLines = useCallback((lines, onDone) => {
|
| 437 |
+
const delay = Math.max(60, 180 * speedMap[speed]);
|
| 438 |
+
let i = 0;
|
| 439 |
+
setExecOutput([]);
|
| 440 |
+
const iv = setInterval(() => {
|
| 441 |
+
if (!runningRef.current) { clearInterval(iv); return; }
|
| 442 |
+
i++;
|
| 443 |
+
setExecOutput(lines.slice(0, i));
|
| 444 |
+
if (i >= lines.length) { clearInterval(iv); if (onDone) onDone(); }
|
| 445 |
+
}, delay);
|
| 446 |
+
}, [speed]);
|
| 447 |
+
|
| 448 |
+
/* ──────────────────────────────────────────
|
| 449 |
+
RESET EPISODE
|
| 450 |
+
─────────────────────────────────────────── */
|
| 451 |
+
const resetEpisode = useCallback(() => {
|
| 452 |
+
runningRef.current = false;
|
| 453 |
+
setEnvState(null); setUiMode("idle");
|
| 454 |
+
setEpisodeLog([]); setRewards([]);
|
| 455 |
+
setStepCount(0); setIsDone(false);
|
| 456 |
+
setStreamingCode(""); setAgentCode("");
|
| 457 |
+
setExecOutput([]); setIsTyping(false);
|
| 458 |
+
setManualCode(""); setTokenEst(0);
|
| 459 |
+
setCollapsedEntries(new Set());
|
| 460 |
+
setErrorBanner("");
|
| 461 |
+
}, []);
|
| 462 |
+
|
| 463 |
+
/* ──────────────────────────────────────────
|
| 464 |
+
RUN ONE STEP
|
| 465 |
+
─────────────────────────────────────────── */
|
| 466 |
+
const runStep = useCallback(async (currentObs, currentStepCount) => {
|
| 467 |
+
if (!runningRef.current) return;
|
| 468 |
+
|
| 469 |
+
const mult = speedMap[speed];
|
| 470 |
+
const interStepDelay = Math.max(400, 1200 * mult);
|
| 471 |
+
|
| 472 |
+
/* 1. Agent thinking */
|
| 473 |
+
setUiMode("agent_thinking");
|
| 474 |
+
|
| 475 |
+
let fixedCode;
|
| 476 |
+
try {
|
| 477 |
+
fixedCode = manualMode
|
| 478 |
+
? (manualCode.trim() || currentObs.buggy_code)
|
| 479 |
+
: await callOllama(currentObs);
|
| 480 |
+
} catch (err) {
|
| 481 |
+
if (!runningRef.current) return;
|
| 482 |
+
setErrorBanner(`🦙 Ollama Error: ${err.message}`);
|
| 483 |
+
setUiMode("idle");
|
| 484 |
+
runningRef.current = false;
|
| 485 |
+
return;
|
| 486 |
+
}
|
| 487 |
+
if (!runningRef.current) return;
|
| 488 |
+
|
| 489 |
+
/* 2. Stream agent code */
|
| 490 |
+
await new Promise(resolve => streamText(fixedCode, setStreamingCode, resolve));
|
| 491 |
+
if (!runningRef.current) return;
|
| 492 |
+
setAgentCode(fixedCode);
|
| 493 |
+
|
| 494 |
+
/* 3. Call OpenEnv /step */
|
| 495 |
+
setUiMode("executing");
|
| 496 |
+
let stepResult;
|
| 497 |
+
try {
|
| 498 |
+
stepResult = await envStep(fixedCode);
|
| 499 |
+
} catch (err) {
|
| 500 |
+
if (!runningRef.current) return;
|
| 501 |
+
setErrorBanner(`🌐 OpenEnv Error: ${err.message}`);
|
| 502 |
+
setUiMode("idle");
|
| 503 |
+
runningRef.current = false;
|
| 504 |
+
return;
|
| 505 |
+
}
|
| 506 |
+
if (!runningRef.current) return;
|
| 507 |
+
|
| 508 |
+
const { observation: newObs, reward, done } = stepResult;
|
| 509 |
+
const meta = stepResult.info?.execution_metadata || {};
|
| 510 |
+
const passed = meta.test_passed ?? 0;
|
| 511 |
+
const total = meta.test_total ?? task.hints.length + 1;
|
| 512 |
+
const newStep = currentStepCount + 1;
|
| 513 |
+
|
| 514 |
+
/* 4. Stream execution output */
|
| 515 |
+
const outputLines = buildOutputLines(stepResult);
|
| 516 |
+
await new Promise(resolve => streamLines(outputLines, resolve));
|
| 517 |
+
if (!runningRef.current) return;
|
| 518 |
+
|
| 519 |
+
/* 5. Update state */
|
| 520 |
+
setEnvState(newObs);
|
| 521 |
+
setStepCount(newStep);
|
| 522 |
+
setRewards(prev => [...prev, reward]);
|
| 523 |
+
setIsDone(done);
|
| 524 |
+
|
| 525 |
+
const logEntry = {
|
| 526 |
+
step: newStep,
|
| 527 |
+
code_submitted: fixedCode,
|
| 528 |
+
reward, done, passed, total,
|
| 529 |
+
error_log: newObs?.error_log || "",
|
| 530 |
+
test_results: newObs?.test_results || "",
|
| 531 |
+
timestamp: new Date().toISOString(),
|
| 532 |
+
};
|
| 533 |
+
setEpisodeLog(prev => [logEntry, ...prev]);
|
| 534 |
+
|
| 535 |
+
/* 6. Done or continue */
|
| 536 |
+
if (done) {
|
| 537 |
+
setUiMode("done");
|
| 538 |
+
runningRef.current = false;
|
| 539 |
+
return;
|
| 540 |
+
}
|
| 541 |
+
|
| 542 |
+
/* Wait then continue */
|
| 543 |
+
await new Promise(r => setTimeout(r, interStepDelay));
|
| 544 |
+
if (!runningRef.current) return;
|
| 545 |
+
runStep(newObs, newStep);
|
| 546 |
+
}, [speed, manualMode, manualCode, callOllama, streamText, streamLines, envStep, task]);
|
| 547 |
+
|
| 548 |
+
/* ──────────────────────────────────────────
|
| 549 |
+
START EPISODE
|
| 550 |
+
─────────────────────────────────────────── */
|
| 551 |
+
const startEpisode = useCallback(async () => {
|
| 552 |
+
if (ollamaStatus !== "online" && !manualMode) {
|
| 553 |
+
setErrorBanner("🦙 Ollama is offline. Start Ollama or enable Manual Mode.");
|
| 554 |
+
return;
|
| 555 |
+
}
|
| 556 |
+
if (envStatus !== "online") {
|
| 557 |
+
setErrorBanner("🌐 OpenEnv server is offline. Run: uvicorn server.app:app --port 7860");
|
| 558 |
+
return;
|
| 559 |
+
}
|
| 560 |
+
|
| 561 |
+
resetEpisode();
|
| 562 |
+
setErrorBanner("");
|
| 563 |
+
|
| 564 |
+
await new Promise(r => setTimeout(r, 60));
|
| 565 |
+
runningRef.current = true;
|
| 566 |
+
setUiMode("resetting");
|
| 567 |
+
|
| 568 |
+
let initialObs;
|
| 569 |
+
try {
|
| 570 |
+
initialObs = await envReset(selectedTask);
|
| 571 |
+
} catch (err) {
|
| 572 |
+
setErrorBanner(`🌐 OpenEnv /reset Error: ${err.message}`);
|
| 573 |
+
setUiMode("idle");
|
| 574 |
+
runningRef.current = false;
|
| 575 |
+
return;
|
| 576 |
+
}
|
| 577 |
+
|
| 578 |
+
setEnvState(initialObs);
|
| 579 |
+
setTimeout(() => runStep(initialObs, 0), 400);
|
| 580 |
+
}, [ollamaStatus, envStatus, manualMode, resetEpisode, envReset, selectedTask, runStep]);
|
| 581 |
+
|
| 582 |
+
/* ──────────────────────────────────────────
|
| 583 |
+
COPY EPISODE JSON
|
| 584 |
+
─────────────────────────────────────────── */
|
| 585 |
+
const copyJSON = useCallback(() => {
|
| 586 |
+
const data = {
|
| 587 |
+
task: selectedTask,
|
| 588 |
+
model: ollamaModel,
|
| 589 |
+
timestamp: new Date().toISOString(),
|
| 590 |
+
total_steps: episodeLog.length,
|
| 591 |
+
final_reward: rewards[rewards.length - 1] ?? 0,
|
| 592 |
+
success: (rewards[rewards.length - 1] ?? 0) >= 0.99,
|
| 593 |
+
episode_log: [...episodeLog].reverse(),
|
| 594 |
+
};
|
| 595 |
+
navigator.clipboard.writeText(JSON.stringify(data, null, 2)).then(() => {
|
| 596 |
+
setCopied(true);
|
| 597 |
+
setTimeout(() => setCopied(false), 2200);
|
| 598 |
+
});
|
| 599 |
+
}, [selectedTask, ollamaModel, episodeLog, rewards]);
|
| 600 |
+
|
| 601 |
+
useEffect(() => { if (logRef.current) logRef.current.scrollTop = 0; }, [episodeLog.length]);
|
| 602 |
+
|
| 603 |
+
const totalReward = rewards.reduce((a, b) => a + b, 0);
|
| 604 |
+
const finalReward = rewards[rewards.length - 1] ?? 0;
|
| 605 |
+
const success = finalReward >= 0.99;
|
| 606 |
+
const isRunning = ["agent_thinking", "executing", "resetting"].includes(uiMode);
|
| 607 |
+
|
| 608 |
+
const termColor = line => {
|
| 609 |
+
if (line.includes("OK")) return "#00ff88";
|
| 610 |
+
if (line.includes("FAIL") || line.includes("Error") || line.includes("error")) return "#ff4455";
|
| 611 |
+
if (line.includes("---") || line.includes("Ran")) return "#64748b";
|
| 612 |
+
return "#94a3b8";
|
| 613 |
+
};
|
| 614 |
+
|
| 615 |
+
/* ──────────────────────────────────────────
|
| 616 |
+
RENDER
|
| 617 |
+
─────────────────────────────────────────── */
|
| 618 |
+
return (
|
| 619 |
+
<>
|
| 620 |
+
<FontLoader />
|
| 621 |
+
<GlobalStyles />
|
| 622 |
+
<div style={{ minHeight: "100vh", background: "#0a0e1a", display: "flex", flexDirection: "column" }}>
|
| 623 |
+
|
| 624 |
+
{/* ── NAVBAR ── */}
|
| 625 |
+
<nav style={{
|
| 626 |
+
background: "#070b14", borderBottom: "1px solid #1e293b",
|
| 627 |
+
padding: "0 24px", height: 54, display: "flex", alignItems: "center",
|
| 628 |
+
justifyContent: "space-between", position: "sticky", top: 0, zIndex: 100,
|
| 629 |
+
}}>
|
| 630 |
+
<div style={{ display: "flex", alignItems: "center", gap: 10 }}>
|
| 631 |
+
<div style={{ position: "relative" }}>
|
| 632 |
+
<span style={{ fontFamily: "'Rajdhani',sans-serif", fontWeight: 700, fontSize: 20, letterSpacing: "0.06em", color: "#e2e8f0" }}>
|
| 633 |
+
Code<span style={{ color: "#00ff88" }}>Arena</span>
|
| 634 |
+
<span style={{ color: "#a78bfa" }}> RL</span>
|
| 635 |
+
</span>
|
| 636 |
+
<span className="dot-live" style={{ position: "absolute", top: 2, right: -12, width: 7, height: 7 }} />
|
| 637 |
+
</div>
|
| 638 |
+
<span className="badge badge-ollama" style={{ marginLeft: 4 }}>🦙 Ollama</span>
|
| 639 |
+
</div>
|
| 640 |
+
|
| 641 |
+
<div style={{ overflow: "hidden", flex: 1, margin: "0 32px", maxWidth: 360 }}>
|
| 642 |
+
<div style={{ display: "flex", gap: 32, animation: "ticker 14s linear infinite", whiteSpace: "nowrap", fontFamily: "'JetBrains Mono',monospace", fontSize: 10, color: "#1e293b", letterSpacing: "0.08em" }}>
|
| 643 |
+
{[...Array(4)].map((_, i) => <span key={i}>AGENT BENCHMARKING · PYTHON DEBUG · RL EVAL · OPENENV · OLLAMA · </span>)}
|
| 644 |
+
</div>
|
| 645 |
+
</div>
|
| 646 |
+
|
| 647 |
+
<div style={{ display: "flex", alignItems: "center", gap: 10 }}>
|
| 648 |
+
{/* Live status pills */}
|
| 649 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace", display: "flex", alignItems: "center", gap: 4, color: "#64748b" }}>
|
| 650 |
+
<span className={`status-dot ${ollamaStatus}`} />
|
| 651 |
+
Ollama
|
| 652 |
+
</div>
|
| 653 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace", display: "flex", alignItems: "center", gap: 4, color: "#64748b" }}>
|
| 654 |
+
<span className={`status-dot ${envStatus}`} />
|
| 655 |
+
OpenEnv
|
| 656 |
+
</div>
|
| 657 |
+
<span className="badge badge-info">Scaler SST 2025</span>
|
| 658 |
+
<span className="badge" style={{ background: "rgba(139,92,246,0.15)", color: "#a78bfa", border: "1px solid rgba(139,92,246,0.3)" }}>
|
| 659 |
+
Theme #3 · World Modeling
|
| 660 |
+
</span>
|
| 661 |
+
</div>
|
| 662 |
+
</nav>
|
| 663 |
+
|
| 664 |
+
{/* ── ERROR BANNER ── */}
|
| 665 |
+
{errorBanner && (
|
| 666 |
+
<div style={{
|
| 667 |
+
background: "rgba(255,68,85,0.12)", borderBottom: "1px solid rgba(255,68,85,0.3)",
|
| 668 |
+
padding: "10px 24px", fontFamily: "'JetBrains Mono',monospace", fontSize: 12,
|
| 669 |
+
color: "#ff8899", display: "flex", justifyContent: "space-between", alignItems: "center",
|
| 670 |
+
}}>
|
| 671 |
+
{errorBanner}
|
| 672 |
+
<button onClick={() => setErrorBanner("")} className="btn btn-ghost" style={{ fontSize: 11, padding: "2px 10px" }}>✕</button>
|
| 673 |
+
</div>
|
| 674 |
+
)}
|
| 675 |
+
|
| 676 |
+
{/* ── MAIN GRID ── */}
|
| 677 |
+
<div style={{ flex: 1, display: "grid", gridTemplateColumns: "25% 45% 30%", height: `calc(100vh - ${54 + (errorBanner ? 41 : 0)}px)`, overflow: "hidden" }}>
|
| 678 |
+
|
| 679 |
+
{/* ════════════════════ LEFT PANEL ════════════════════ */}
|
| 680 |
+
<div style={{ padding: "16px 14px", borderRight: "1px solid #1e293b", overflowY: "auto", display: "flex", flexDirection: "column", gap: 14 }}>
|
| 681 |
+
|
| 682 |
+
{/* Ollama Config */}
|
| 683 |
+
<div className="panel">
|
| 684 |
+
<div className="panel-header">🦙 Ollama Config</div>
|
| 685 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 10 }}>
|
| 686 |
+
<div>
|
| 687 |
+
<div style={{ fontSize: 10, color: "#64748b", marginBottom: 4, letterSpacing: "0.08em", textTransform: "uppercase" }}>Base URL</div>
|
| 688 |
+
<input className="cfg-input" value={ollamaUrl} onChange={e => setOllamaUrl(e.target.value)} placeholder="http://localhost:11434" />
|
| 689 |
+
</div>
|
| 690 |
+
<div>
|
| 691 |
+
<div style={{ fontSize: 10, color: "#64748b", marginBottom: 4, letterSpacing: "0.08em", textTransform: "uppercase" }}>Model</div>
|
| 692 |
+
{availableModels.length > 0 ? (
|
| 693 |
+
<select className="cfg-input" value={ollamaModel} onChange={e => setOllamaModel(e.target.value)}>
|
| 694 |
+
{availableModels.map(m => <option key={m} value={m}>{m}</option>)}
|
| 695 |
+
</select>
|
| 696 |
+
) : (
|
| 697 |
+
<input className="cfg-input" value={ollamaModel} onChange={e => setOllamaModel(e.target.value)} placeholder="codellama" />
|
| 698 |
+
)}
|
| 699 |
+
</div>
|
| 700 |
+
<div style={{ display: "flex", gap: 6 }}>
|
| 701 |
+
<button className="btn btn-ghost" style={{ flex: 1, justifyContent: "center", fontSize: 11 }} onClick={probeOllama}>
|
| 702 |
+
{ollamaStatus === "checking" ? <><span className="spinner" />Checking...</> : `↻ ${ollamaStatus === "online" ? "✓ Online" : "✗ Offline"}`}
|
| 703 |
+
</button>
|
| 704 |
+
</div>
|
| 705 |
+
{ollamaStatus === "offline" && (
|
| 706 |
+
<div style={{ fontSize: 10, color: "#ffaa00", fontFamily: "'JetBrains Mono',monospace", background: "rgba(255,170,0,0.08)", border: "1px solid rgba(255,170,0,0.2)", borderRadius: 4, padding: "6px 8px" }}>
|
| 707 |
+
💡 Run: <strong>ollama serve</strong><br />
|
| 708 |
+
Then pull a model:<br />
|
| 709 |
+
<strong>ollama pull codellama</strong>
|
| 710 |
+
</div>
|
| 711 |
+
)}
|
| 712 |
+
</div>
|
| 713 |
+
</div>
|
| 714 |
+
|
| 715 |
+
{/* OpenEnv Config */}
|
| 716 |
+
<div className="panel">
|
| 717 |
+
<div className="panel-header">🌐 OpenEnv Server</div>
|
| 718 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 10 }}>
|
| 719 |
+
<div>
|
| 720 |
+
<div style={{ fontSize: 10, color: "#64748b", marginBottom: 4, letterSpacing: "0.08em", textTransform: "uppercase" }}>FastAPI URL</div>
|
| 721 |
+
<input className="cfg-input" value={envUrl} onChange={e => setEnvUrl(e.target.value)} placeholder="http://localhost:7860" />
|
| 722 |
+
</div>
|
| 723 |
+
<div style={{ display: "flex", gap: 6 }}>
|
| 724 |
+
<button className="btn btn-ghost" style={{ flex: 1, justifyContent: "center", fontSize: 11 }} onClick={probeEnv}>
|
| 725 |
+
{envStatus === "checking" ? <><span className="spinner" />Checking...</> : `↻ ${envStatus === "online" ? "✓ Online" : "✗ Offline"}`}
|
| 726 |
+
</button>
|
| 727 |
+
</div>
|
| 728 |
+
{envStatus === "offline" && (
|
| 729 |
+
<div style={{ fontSize: 10, color: "#ff8899", fontFamily: "'JetBrains Mono',monospace", background: "rgba(255,68,85,0.08)", border: "1px solid rgba(255,68,85,0.2)", borderRadius: 4, padding: "6px 8px" }}>
|
| 730 |
+
⚠ Start server:<br />
|
| 731 |
+
<strong>uvicorn server.app:app --port 7860</strong>
|
| 732 |
+
</div>
|
| 733 |
+
)}
|
| 734 |
+
</div>
|
| 735 |
+
</div>
|
| 736 |
+
|
| 737 |
+
{/* Task Selector */}
|
| 738 |
+
<div className="panel">
|
| 739 |
+
<div className="panel-header">🎯 Select Task</div>
|
| 740 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 8 }}>
|
| 741 |
+
{Object.values(TASKS).map(t => {
|
| 742 |
+
const isActive = selectedTask === t.id;
|
| 743 |
+
const ac = t.difficulty === "easy" ? "active" : t.difficulty === "medium" ? "active-medium" : "active-hard";
|
| 744 |
+
return (
|
| 745 |
+
<button key={t.id} className={`task-btn ${isActive ? ac : ""}`} disabled={isRunning}
|
| 746 |
+
onClick={() => { setSelectedTask(t.id); resetEpisode(); }}>
|
| 747 |
+
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 4 }}>
|
| 748 |
+
<span style={{ fontWeight: 700, fontSize: 13 }}>{t.name}</span>
|
| 749 |
+
<span className={`badge badge-${t.difficulty}`}>{t.label}</span>
|
| 750 |
+
</div>
|
| 751 |
+
<div style={{ fontSize: 11, color: "#64748b" }}>{t.id}</div>
|
| 752 |
+
</button>
|
| 753 |
+
);
|
| 754 |
+
})}
|
| 755 |
+
</div>
|
| 756 |
+
</div>
|
| 757 |
+
|
| 758 |
+
{/* Task Info */}
|
| 759 |
+
<div className="panel">
|
| 760 |
+
<div className="panel-header">📋 Task Info</div>
|
| 761 |
+
<div style={{ padding: "12px 14px" }}>
|
| 762 |
+
<p style={{ fontSize: 12, color: "#94a3b8", lineHeight: 1.6, marginBottom: 10 }}>{task.description}</p>
|
| 763 |
+
<div style={{ display: "flex", flexDirection: "column", gap: 6 }}>
|
| 764 |
+
{task.hints.map((h, i) => (
|
| 765 |
+
<div key={i} style={{ fontSize: 11, color: "#ffaa00", fontFamily: "'JetBrains Mono',monospace", background: "rgba(255,170,0,0.08)", border: "1px solid rgba(255,170,0,0.2)", borderRadius: 4, padding: "4px 8px" }}>
|
| 766 |
+
💡 {h}
|
| 767 |
+
</div>
|
| 768 |
+
))}
|
| 769 |
+
</div>
|
| 770 |
+
</div>
|
| 771 |
+
</div>
|
| 772 |
+
|
| 773 |
+
{/* Options */}
|
| 774 |
+
<div className="panel">
|
| 775 |
+
<div className="panel-header">⚙️ Options</div>
|
| 776 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 12 }}>
|
| 777 |
+
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
|
| 778 |
+
<div>
|
| 779 |
+
<div style={{ fontSize: 12, color: "#94a3b8" }}>Manual Mode</div>
|
| 780 |
+
<div style={{ fontSize: 10, color: "#334155" }}>Type fix yourself</div>
|
| 781 |
+
</div>
|
| 782 |
+
<button onClick={() => setManualMode(m => !m)} style={{
|
| 783 |
+
width: 44, height: 24, borderRadius: 12, border: "none", cursor: "pointer",
|
| 784 |
+
background: manualMode ? "#00ff88" : "#1e293b", position: "relative", transition: "background 0.2s",
|
| 785 |
+
}}>
|
| 786 |
+
<span style={{ position: "absolute", top: 3, left: manualMode ? 22 : 3, width: 18, height: 18, background: "#fff", borderRadius: "50%", transition: "left 0.2s", display: "block" }} />
|
| 787 |
+
</button>
|
| 788 |
+
</div>
|
| 789 |
+
<div>
|
| 790 |
+
<div style={{ display: "flex", justifyContent: "space-between", marginBottom: 6 }}>
|
| 791 |
+
<span style={{ fontSize: 12, color: "#94a3b8" }}>Speed</span>
|
| 792 |
+
<span style={{ fontSize: 11, color: "#00ff88", fontFamily: "'JetBrains Mono',monospace" }}>{speed.toUpperCase()}</span>
|
| 793 |
+
</div>
|
| 794 |
+
<div style={{ display: "flex", gap: 6 }}>
|
| 795 |
+
{["slow", "normal", "fast"].map(s => (
|
| 796 |
+
<button key={s} className="btn btn-ghost" style={{ flex: 1, padding: "5px 0", fontSize: 10, borderColor: speed === s ? "#00ff88" : "#1e293b", color: speed === s ? "#00ff88" : "#64748b" }}
|
| 797 |
+
onClick={() => setSpeed(s)}>{s.charAt(0).toUpperCase() + s.slice(1)}</button>
|
| 798 |
+
))}
|
| 799 |
+
</div>
|
| 800 |
+
</div>
|
| 801 |
+
</div>
|
| 802 |
+
</div>
|
| 803 |
+
|
| 804 |
+
{/* Episode Controls */}
|
| 805 |
+
<div className="panel">
|
| 806 |
+
<div className="panel-header">▶ Episode Controls</div>
|
| 807 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 8 }}>
|
| 808 |
+
<button className="btn btn-primary" style={{ width: "100%", justifyContent: "center" }}
|
| 809 |
+
disabled={isRunning} onClick={startEpisode}>
|
| 810 |
+
{isRunning ? <><span className="spinner" />Running...</> : "▶ Start Episode"}
|
| 811 |
+
</button>
|
| 812 |
+
<button className="btn btn-danger" style={{ width: "100%", justifyContent: "center" }}
|
| 813 |
+
onClick={() => { runningRef.current = false; resetEpisode(); }}>
|
| 814 |
+
⏹ Reset
|
| 815 |
+
</button>
|
| 816 |
+
</div>
|
| 817 |
+
</div>
|
| 818 |
+
|
| 819 |
+
{/* Episode Stats */}
|
| 820 |
+
{stepCount > 0 && (
|
| 821 |
+
<div className="panel fade-in">
|
| 822 |
+
<div className="panel-header">📊 Episode Stats</div>
|
| 823 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 8 }}>
|
| 824 |
+
<div className="stat-card">
|
| 825 |
+
<div style={{ fontSize: 10, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.1em" }}>Step</div>
|
| 826 |
+
<div style={{ fontSize: 22, fontWeight: 700, color: "#e2e8f0", fontFamily: "'JetBrains Mono',monospace" }}>
|
| 827 |
+
{stepCount}<span style={{ fontSize: 12, color: "#64748b" }}> /5</span>
|
| 828 |
+
</div>
|
| 829 |
+
</div>
|
| 830 |
+
<div className="stat-card">
|
| 831 |
+
<div style={{ fontSize: 10, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.1em" }}>Cumulative Reward</div>
|
| 832 |
+
<div style={{ fontSize: 22, fontWeight: 700, color: rewardColor(totalReward / (rewards.length || 1)), fontFamily: "'JetBrains Mono',monospace" }}>
|
| 833 |
+
{totalReward.toFixed(3)}
|
| 834 |
+
</div>
|
| 835 |
+
</div>
|
| 836 |
+
<div className="stat-card">
|
| 837 |
+
<div style={{ fontSize: 10, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.1em", marginBottom: 4 }}>Status</div>
|
| 838 |
+
<span className="badge" style={{
|
| 839 |
+
background: uiMode === "done" && success ? "rgba(0,255,136,0.15)" : uiMode === "done" ? "rgba(255,68,85,0.15)" : "rgba(99,179,237,0.15)",
|
| 840 |
+
color: uiMode === "done" && success ? "#00ff88" : uiMode === "done" ? "#ff4455" : "#63b3ed",
|
| 841 |
+
border: `1px solid ${uiMode === "done" && success ? "rgba(0,255,136,0.3)" : uiMode === "done" ? "rgba(255,68,85,0.3)" : "rgba(99,179,237,0.3)"}`,
|
| 842 |
+
}}>
|
| 843 |
+
{{ idle: "IDLE", resetting: "RESETTING", agent_thinking: "THINKING", executing: "EXECUTING", done: success ? "✓ SUCCESS" : "✗ FAILED" }[uiMode]}
|
| 844 |
+
</span>
|
| 845 |
+
</div>
|
| 846 |
+
{tokenEst > 0 && (
|
| 847 |
+
<div style={{ fontSize: 10, color: "#334155", fontFamily: "'JetBrains Mono',monospace", textAlign: "right" }}>
|
| 848 |
+
~{tokenEst} prompt tokens
|
| 849 |
+
</div>
|
| 850 |
+
)}
|
| 851 |
+
</div>
|
| 852 |
+
</div>
|
| 853 |
+
)}
|
| 854 |
+
</div>
|
| 855 |
+
|
| 856 |
+
{/* ════════════════════ CENTER PANEL ════════════════════ */}
|
| 857 |
+
<div style={{ padding: "16px 14px", borderRight: "1px solid #1e293b", overflowY: "auto", display: "flex", flexDirection: "column", gap: 14 }}>
|
| 858 |
+
|
| 859 |
+
{/* Buggy Code */}
|
| 860 |
+
<div className="panel">
|
| 861 |
+
<div className="panel-header">
|
| 862 |
+
<span style={{ color: "#ff4455" }}>⚠</span> Buggy Code
|
| 863 |
+
<span style={{ marginLeft: "auto" }}><span className={`badge badge-${task.difficulty}`}>{task.id}</span></span>
|
| 864 |
+
</div>
|
| 865 |
+
<div style={{ padding: 14 }}>
|
| 866 |
+
<pre className="code-block" style={{ color: "#f8c8c8", maxHeight: 170, overflowY: "auto" }}>
|
| 867 |
+
{/* Show real buggy code from env if available, else fallback to hardcoded */}
|
| 868 |
+
{(envState?.buggy_code) || task.buggy_code}
|
| 869 |
+
</pre>
|
| 870 |
+
</div>
|
| 871 |
+
</div>
|
| 872 |
+
|
| 873 |
+
{/* Agent's Fix */}
|
| 874 |
+
<div
|
| 875 |
+
className={`panel ${uiMode === "agent_thinking" ? "thinking-border" : ""} ${uiMode === "done" && success ? "success-glow" : ""}`}
|
| 876 |
+
style={{ transition: "box-shadow 0.3s ease" }}
|
| 877 |
+
>
|
| 878 |
+
<div className="panel-header">
|
| 879 |
+
<span style={{ color: "#a78bfa" }}>🦙</span> Agent's Fix
|
| 880 |
+
{uiMode === "agent_thinking" && (
|
| 881 |
+
<span style={{ marginLeft: 8, display: "flex", alignItems: "center", gap: 6 }}>
|
| 882 |
+
<span className="spinner" />
|
| 883 |
+
<span className="blink" style={{ color: "#a78bfa", fontSize: 10 }}>OLLAMA THINKING...</span>
|
| 884 |
+
</span>
|
| 885 |
+
)}
|
| 886 |
+
<span style={{ marginLeft: "auto", fontSize: 10, color: "#334155", fontFamily: "'JetBrains Mono',monospace" }}>
|
| 887 |
+
{ollamaModel}
|
| 888 |
+
</span>
|
| 889 |
+
</div>
|
| 890 |
+
<div style={{ padding: 14 }}>
|
| 891 |
+
{manualMode && uiMode === "idle" ? (
|
| 892 |
+
<textarea rows={8} value={manualCode} onChange={e => setManualCode(e.target.value)}
|
| 893 |
+
placeholder={`# Enter your fix here...\n${task.buggy_code}`} style={{ minHeight: 160 }} />
|
| 894 |
+
) : (
|
| 895 |
+
<pre className="code-block" style={{ minHeight: 160, maxHeight: 240, overflowY: "auto" }}>
|
| 896 |
+
{streamingCode || agentCode || (
|
| 897 |
+
<span style={{ color: "#334155" }}>
|
| 898 |
+
{uiMode === "idle" ? "// Agent's fix will appear here..." : uiMode === "resetting" ? "// Calling /reset on OpenEnv..." : ""}
|
| 899 |
+
</span>
|
| 900 |
+
)}
|
| 901 |
+
{isTyping && <span className="blink" style={{ borderRight: "2px solid #a78bfa" }}> </span>}
|
| 902 |
+
</pre>
|
| 903 |
+
)}
|
| 904 |
+
</div>
|
| 905 |
+
</div>
|
| 906 |
+
|
| 907 |
+
{/* Execution Output (from real /step endpoint) */}
|
| 908 |
+
<div className="panel">
|
| 909 |
+
<div className="panel-header">
|
| 910 |
+
💻 Execution Output
|
| 911 |
+
<span style={{ marginLeft: 6, fontSize: 9, color: "#334155", fontFamily: "'JetBrains Mono',monospace" }}>via OpenEnv /step</span>
|
| 912 |
+
{uiMode === "executing" && (
|
| 913 |
+
<span style={{ marginLeft: 8, display: "flex", alignItems: "center", gap: 6 }}>
|
| 914 |
+
<span className="spinner" />
|
| 915 |
+
<span style={{ color: "#ffaa00", fontSize: 10 }}>RUNNING TESTS...</span>
|
| 916 |
+
</span>
|
| 917 |
+
)}
|
| 918 |
+
</div>
|
| 919 |
+
<div style={{ padding: 14 }}>
|
| 920 |
+
<div className="terminal-block" style={{ minHeight: 120, maxHeight: 200, overflowY: "auto" }}>
|
| 921 |
+
{execOutput.length === 0 ? (
|
| 922 |
+
<span style={{ color: "#334155" }}>$ python -m pytest // awaiting /step...</span>
|
| 923 |
+
) : (
|
| 924 |
+
execOutput.map((line, i) => (
|
| 925 |
+
<div key={i} style={{ color: termColor(line) }}><AnsiLine text={line} /></div>
|
| 926 |
+
))
|
| 927 |
+
)}
|
| 928 |
+
{uiMode === "executing" && <span className="blink" style={{ color: "#00ff88" }}>█</span>}
|
| 929 |
+
</div>
|
| 930 |
+
</div>
|
| 931 |
+
</div>
|
| 932 |
+
|
| 933 |
+
{/* Done Card */}
|
| 934 |
+
{uiMode === "done" && (
|
| 935 |
+
<div className={`panel fade-in ${success ? "success-glow" : ""}`} style={{
|
| 936 |
+
border: `1px solid ${success ? "#00ff88" : "#ff4455"}`,
|
| 937 |
+
background: success ? "rgba(0,255,136,0.05)" : "rgba(255,68,85,0.05)",
|
| 938 |
+
}}>
|
| 939 |
+
<div style={{ padding: 20, textAlign: "center" }}>
|
| 940 |
+
<div style={{ fontSize: 36, marginBottom: 8 }}>{success ? "🏆" : "💀"}</div>
|
| 941 |
+
<div style={{ fontFamily: "'Rajdhani',sans-serif", fontWeight: 700, fontSize: 22, color: success ? "#00ff88" : "#ff4455", letterSpacing: "0.08em", marginBottom: 4 }}>
|
| 942 |
+
{success ? "EPISODE SUCCESS!" : "EPISODE FAILED"}
|
| 943 |
+
</div>
|
| 944 |
+
<div style={{ fontSize: 12, color: "#64748b", marginBottom: 16 }}>
|
| 945 |
+
Model: <span style={{ color: "#a78bfa", fontFamily: "'JetBrains Mono',monospace" }}>{ollamaModel}</span>
|
| 946 |
+
· Steps: {stepCount}
|
| 947 |
+
· Final Reward:
|
| 948 |
+
<span style={{ color: rewardColor(finalReward), fontFamily: "'JetBrains Mono',monospace" }}>{finalReward.toFixed(4)}</span>
|
| 949 |
+
</div>
|
| 950 |
+
<div style={{ display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: 8 }}>
|
| 951 |
+
{[
|
| 952 |
+
{ label: "Steps", value: stepCount },
|
| 953 |
+
{ label: "Avg Reward", value: (totalReward / (rewards.length || 1)).toFixed(3) },
|
| 954 |
+
{ label: "Final Reward", value: finalReward.toFixed(3) },
|
| 955 |
+
].map(s => (
|
| 956 |
+
<div className="stat-card" key={s.label} style={{ textAlign: "center" }}>
|
| 957 |
+
<div style={{ fontSize: 10, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.1em" }}>{s.label}</div>
|
| 958 |
+
<div style={{ fontSize: 18, fontWeight: 700, color: success ? "#00ff88" : "#ff4455", fontFamily: "'JetBrains Mono',monospace" }}>{s.value}</div>
|
| 959 |
+
</div>
|
| 960 |
+
))}
|
| 961 |
+
</div>
|
| 962 |
+
</div>
|
| 963 |
+
</div>
|
| 964 |
+
)}
|
| 965 |
+
</div>
|
| 966 |
+
|
| 967 |
+
{/* ════════════════════ RIGHT PANEL ════════════════════ */}
|
| 968 |
+
<div style={{ padding: "16px 14px", overflowY: "auto", display: "flex", flexDirection: "column", gap: 14 }}>
|
| 969 |
+
|
| 970 |
+
{/* Reward Chart */}
|
| 971 |
+
<div className="panel">
|
| 972 |
+
<div className="panel-header">
|
| 973 |
+
📈 Reward Chart
|
| 974 |
+
<span style={{ marginLeft: "auto", fontSize: 10, fontFamily: "'JetBrains Mono',monospace", color: "#334155" }}>Steps 1–5</span>
|
| 975 |
+
</div>
|
| 976 |
+
<div style={{ padding: "8px 14px 14px" }}>
|
| 977 |
+
<RewardChart rewards={rewards} />
|
| 978 |
+
{rewards.length === 0 && (
|
| 979 |
+
<div style={{ textAlign: "center", color: "#334155", fontSize: 11, fontFamily: "'JetBrains Mono',monospace", marginTop: 4 }}>
|
| 980 |
+
// No data yet
|
| 981 |
+
</div>
|
| 982 |
+
)}
|
| 983 |
+
</div>
|
| 984 |
+
</div>
|
| 985 |
+
|
| 986 |
+
{/* OpenEnv Live State */}
|
| 987 |
+
{envState && (
|
| 988 |
+
<div className="panel fade-in">
|
| 989 |
+
<div className="panel-header">🔭 OpenEnv State</div>
|
| 990 |
+
<div style={{ padding: "10px 14px", display: "flex", flexDirection: "column", gap: 8 }}>
|
| 991 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace" }}>
|
| 992 |
+
<span style={{ color: "#64748b" }}>test_results: </span>
|
| 993 |
+
<span style={{ color: "#00ff88" }}>{envState.test_results || "—"}</span>
|
| 994 |
+
</div>
|
| 995 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace" }}>
|
| 996 |
+
<span style={{ color: "#64748b" }}>error_log: </span>
|
| 997 |
+
<span style={{ color: "#ff8899" }}>{envState.error_log ? envState.error_log.slice(0, 80) + "..." : "—"}</span>
|
| 998 |
+
</div>
|
| 999 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace" }}>
|
| 1000 |
+
<span style={{ color: "#64748b" }}>prev_attempts: </span>
|
| 1001 |
+
<span style={{ color: "#ffaa00" }}>{(envState.previous_attempts || []).length}</span>
|
| 1002 |
+
</div>
|
| 1003 |
+
</div>
|
| 1004 |
+
</div>
|
| 1005 |
+
)}
|
| 1006 |
+
|
| 1007 |
+
{/* Episode Log */}
|
| 1008 |
+
<div className="panel" style={{ flex: 1, display: "flex", flexDirection: "column" }}>
|
| 1009 |
+
<div className="panel-header" style={{ justifyContent: "space-between" }}>
|
| 1010 |
+
<div style={{ display: "flex", alignItems: "center", gap: 8 }}>
|
| 1011 |
+
📜 Episode Log
|
| 1012 |
+
{episodeLog.length > 0 && (
|
| 1013 |
+
<span className="badge badge-info" style={{ fontSize: 9 }}>{episodeLog.length} step{episodeLog.length !== 1 ? "s" : ""}</span>
|
| 1014 |
+
)}
|
| 1015 |
+
</div>
|
| 1016 |
+
{episodeLog.length > 0 && (
|
| 1017 |
+
<button className="btn btn-ghost" style={{ padding: "3px 10px", fontSize: 10 }} onClick={copyJSON}>
|
| 1018 |
+
{copied ? "✓ Copied!" : "⧉ Copy JSON"}
|
| 1019 |
+
</button>
|
| 1020 |
+
)}
|
| 1021 |
+
</div>
|
| 1022 |
+
<div ref={logRef} style={{ flex: 1, overflowY: "auto", padding: "10px 12px", minHeight: 200, maxHeight: 420 }}>
|
| 1023 |
+
{episodeLog.length === 0 ? (
|
| 1024 |
+
<div style={{ textAlign: "center", color: "#334155", fontSize: 11, fontFamily: "'JetBrains Mono',monospace", padding: "30px 0" }}>
|
| 1025 |
+
// Episode log will appear here
|
| 1026 |
+
</div>
|
| 1027 |
+
) : (
|
| 1028 |
+
episodeLog.map((entry, idx) => {
|
| 1029 |
+
const isCollapsed = collapsedEntries.has(idx);
|
| 1030 |
+
return (
|
| 1031 |
+
<div key={idx} className="log-entry">
|
| 1032 |
+
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", cursor: "pointer" }}
|
| 1033 |
+
onClick={() => setCollapsedEntries(s => { const ns = new Set(s); ns.has(idx) ? ns.delete(idx) : ns.add(idx); return ns; })}>
|
| 1034 |
+
<span style={{ fontFamily: "'JetBrains Mono',monospace", fontSize: 11, color: "#64748b" }}>STEP {entry.step}</span>
|
| 1035 |
+
<span style={{ display: "flex", alignItems: "center", gap: 6 }}>
|
| 1036 |
+
<span style={{ fontFamily: "'JetBrains Mono',monospace", fontSize: 12, fontWeight: 700, color: rewardColor(entry.reward) }}>
|
| 1037 |
+
R={entry.reward.toFixed(3)}
|
| 1038 |
+
</span>
|
| 1039 |
+
<span style={{ color: "#334155", fontSize: 10 }}>{isCollapsed ? "▶" : "▼"}</span>
|
| 1040 |
+
</span>
|
| 1041 |
+
</div>
|
| 1042 |
+
<div className="reward-bar-outer">
|
| 1043 |
+
<div className="reward-bar-inner" style={{
|
| 1044 |
+
width: `${entry.reward * 100}%`,
|
| 1045 |
+
background: `linear-gradient(90deg, ${rewardColor(0)}, ${rewardColor(entry.reward)})`,
|
| 1046 |
+
}} />
|
| 1047 |
+
</div>
|
| 1048 |
+
<div style={{ fontSize: 10, color: "#64748b", fontFamily: "'JetBrains Mono',monospace", marginTop: 6 }}>
|
| 1049 |
+
{entry.passed}/{entry.total} tests ·{" "}
|
| 1050 |
+
{entry.done ? (entry.reward >= 0.99 ? "✅ SUCCESS" : "❌ DONE") : "⏳ continuing"}
|
| 1051 |
+
</div>
|
| 1052 |
+
{!isCollapsed && (
|
| 1053 |
+
<>
|
| 1054 |
+
{entry.test_results && (
|
| 1055 |
+
<div style={{ fontSize: 10, color: "#a78bfa", fontFamily: "'JetBrains Mono',monospace", marginTop: 4 }}>
|
| 1056 |
+
{entry.test_results}
|
| 1057 |
+
</div>
|
| 1058 |
+
)}
|
| 1059 |
+
{entry.code_submitted && (
|
| 1060 |
+
<pre className="code-block" style={{
|
| 1061 |
+
marginTop: 8, fontSize: 10, maxHeight: 100, overflowY: "auto",
|
| 1062 |
+
color: entry.reward >= 0.99 ? "#a8d8a8" : entry.reward >= 0.5 ? "#ffd580" : "#f8c8c8",
|
| 1063 |
+
}}>{entry.code_submitted}</pre>
|
| 1064 |
+
)}
|
| 1065 |
+
</>
|
| 1066 |
+
)}
|
| 1067 |
+
</div>
|
| 1068 |
+
);
|
| 1069 |
+
})
|
| 1070 |
+
)}
|
| 1071 |
+
</div>
|
| 1072 |
+
</div>
|
| 1073 |
+
</div>
|
| 1074 |
+
</div>
|
| 1075 |
+
</div>
|
| 1076 |
+
</>
|
| 1077 |
+
);
|
| 1078 |
+
}
|
frontend/.gitignore
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Logs
|
| 2 |
+
logs
|
| 3 |
+
*.log
|
| 4 |
+
npm-debug.log*
|
| 5 |
+
yarn-debug.log*
|
| 6 |
+
yarn-error.log*
|
| 7 |
+
pnpm-debug.log*
|
| 8 |
+
lerna-debug.log*
|
| 9 |
+
|
| 10 |
+
node_modules
|
| 11 |
+
dist
|
| 12 |
+
dist-ssr
|
| 13 |
+
*.local
|
| 14 |
+
|
| 15 |
+
# Editor directories and files
|
| 16 |
+
.vscode/*
|
| 17 |
+
!.vscode/extensions.json
|
| 18 |
+
.idea
|
| 19 |
+
.DS_Store
|
| 20 |
+
*.suo
|
| 21 |
+
*.ntvs*
|
| 22 |
+
*.njsproj
|
| 23 |
+
*.sln
|
| 24 |
+
*.sw?
|
frontend/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# React + Vite
|
| 2 |
+
|
| 3 |
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
| 4 |
+
|
| 5 |
+
Currently, two official plugins are available:
|
| 6 |
+
|
| 7 |
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
| 8 |
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
| 9 |
+
|
| 10 |
+
## React Compiler
|
| 11 |
+
|
| 12 |
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
| 13 |
+
|
| 14 |
+
## Expanding the ESLint configuration
|
| 15 |
+
|
| 16 |
+
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
|
frontend/eslint.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import js from '@eslint/js'
|
| 2 |
+
import globals from 'globals'
|
| 3 |
+
import reactHooks from 'eslint-plugin-react-hooks'
|
| 4 |
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
| 5 |
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
| 6 |
+
|
| 7 |
+
export default defineConfig([
|
| 8 |
+
globalIgnores(['dist']),
|
| 9 |
+
{
|
| 10 |
+
files: ['**/*.{js,jsx}'],
|
| 11 |
+
extends: [
|
| 12 |
+
js.configs.recommended,
|
| 13 |
+
reactHooks.configs.flat.recommended,
|
| 14 |
+
reactRefresh.configs.vite,
|
| 15 |
+
],
|
| 16 |
+
languageOptions: {
|
| 17 |
+
ecmaVersion: 2020,
|
| 18 |
+
globals: globals.browser,
|
| 19 |
+
parserOptions: {
|
| 20 |
+
ecmaVersion: 'latest',
|
| 21 |
+
ecmaFeatures: { jsx: true },
|
| 22 |
+
sourceType: 'module',
|
| 23 |
+
},
|
| 24 |
+
},
|
| 25 |
+
rules: {
|
| 26 |
+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
| 27 |
+
},
|
| 28 |
+
},
|
| 29 |
+
])
|
frontend/index.html
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>CodeArena RL — Scaler SST Hackathon 2025</title>
|
| 8 |
+
<style>body{margin:0;background:#0a0e1a;}</style>
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<div id="root"></div>
|
| 12 |
+
<script type="module" src="/src/main.jsx"></script>
|
| 13 |
+
</body>
|
| 14 |
+
</html>
|
frontend/package-lock.json
ADDED
|
@@ -0,0 +1,2628 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "frontend",
|
| 3 |
+
"version": "0.0.0",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"name": "frontend",
|
| 9 |
+
"version": "0.0.0",
|
| 10 |
+
"dependencies": {
|
| 11 |
+
"react": "^19.2.5",
|
| 12 |
+
"react-dom": "^19.2.5"
|
| 13 |
+
},
|
| 14 |
+
"devDependencies": {
|
| 15 |
+
"@eslint/js": "^9.39.4",
|
| 16 |
+
"@types/react": "^19.2.14",
|
| 17 |
+
"@types/react-dom": "^19.2.3",
|
| 18 |
+
"@vitejs/plugin-react": "^6.0.1",
|
| 19 |
+
"eslint": "^9.39.4",
|
| 20 |
+
"eslint-plugin-react-hooks": "^7.1.1",
|
| 21 |
+
"eslint-plugin-react-refresh": "^0.5.2",
|
| 22 |
+
"globals": "^17.5.0",
|
| 23 |
+
"vite": "^8.0.9"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
"node_modules/@babel/code-frame": {
|
| 27 |
+
"version": "7.29.0",
|
| 28 |
+
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
|
| 29 |
+
"integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
|
| 30 |
+
"dev": true,
|
| 31 |
+
"license": "MIT",
|
| 32 |
+
"dependencies": {
|
| 33 |
+
"@babel/helper-validator-identifier": "^7.28.5",
|
| 34 |
+
"js-tokens": "^4.0.0",
|
| 35 |
+
"picocolors": "^1.1.1"
|
| 36 |
+
},
|
| 37 |
+
"engines": {
|
| 38 |
+
"node": ">=6.9.0"
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"node_modules/@babel/compat-data": {
|
| 42 |
+
"version": "7.29.0",
|
| 43 |
+
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",
|
| 44 |
+
"integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",
|
| 45 |
+
"dev": true,
|
| 46 |
+
"license": "MIT",
|
| 47 |
+
"engines": {
|
| 48 |
+
"node": ">=6.9.0"
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
"node_modules/@babel/core": {
|
| 52 |
+
"version": "7.29.0",
|
| 53 |
+
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
|
| 54 |
+
"integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
|
| 55 |
+
"dev": true,
|
| 56 |
+
"license": "MIT",
|
| 57 |
+
"peer": true,
|
| 58 |
+
"dependencies": {
|
| 59 |
+
"@babel/code-frame": "^7.29.0",
|
| 60 |
+
"@babel/generator": "^7.29.0",
|
| 61 |
+
"@babel/helper-compilation-targets": "^7.28.6",
|
| 62 |
+
"@babel/helper-module-transforms": "^7.28.6",
|
| 63 |
+
"@babel/helpers": "^7.28.6",
|
| 64 |
+
"@babel/parser": "^7.29.0",
|
| 65 |
+
"@babel/template": "^7.28.6",
|
| 66 |
+
"@babel/traverse": "^7.29.0",
|
| 67 |
+
"@babel/types": "^7.29.0",
|
| 68 |
+
"@jridgewell/remapping": "^2.3.5",
|
| 69 |
+
"convert-source-map": "^2.0.0",
|
| 70 |
+
"debug": "^4.1.0",
|
| 71 |
+
"gensync": "^1.0.0-beta.2",
|
| 72 |
+
"json5": "^2.2.3",
|
| 73 |
+
"semver": "^6.3.1"
|
| 74 |
+
},
|
| 75 |
+
"engines": {
|
| 76 |
+
"node": ">=6.9.0"
|
| 77 |
+
},
|
| 78 |
+
"funding": {
|
| 79 |
+
"type": "opencollective",
|
| 80 |
+
"url": "https://opencollective.com/babel"
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"node_modules/@babel/generator": {
|
| 84 |
+
"version": "7.29.1",
|
| 85 |
+
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
|
| 86 |
+
"integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
|
| 87 |
+
"dev": true,
|
| 88 |
+
"license": "MIT",
|
| 89 |
+
"dependencies": {
|
| 90 |
+
"@babel/parser": "^7.29.0",
|
| 91 |
+
"@babel/types": "^7.29.0",
|
| 92 |
+
"@jridgewell/gen-mapping": "^0.3.12",
|
| 93 |
+
"@jridgewell/trace-mapping": "^0.3.28",
|
| 94 |
+
"jsesc": "^3.0.2"
|
| 95 |
+
},
|
| 96 |
+
"engines": {
|
| 97 |
+
"node": ">=6.9.0"
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"node_modules/@babel/helper-compilation-targets": {
|
| 101 |
+
"version": "7.28.6",
|
| 102 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
|
| 103 |
+
"integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
|
| 104 |
+
"dev": true,
|
| 105 |
+
"license": "MIT",
|
| 106 |
+
"dependencies": {
|
| 107 |
+
"@babel/compat-data": "^7.28.6",
|
| 108 |
+
"@babel/helper-validator-option": "^7.27.1",
|
| 109 |
+
"browserslist": "^4.24.0",
|
| 110 |
+
"lru-cache": "^5.1.1",
|
| 111 |
+
"semver": "^6.3.1"
|
| 112 |
+
},
|
| 113 |
+
"engines": {
|
| 114 |
+
"node": ">=6.9.0"
|
| 115 |
+
}
|
| 116 |
+
},
|
| 117 |
+
"node_modules/@babel/helper-globals": {
|
| 118 |
+
"version": "7.28.0",
|
| 119 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
|
| 120 |
+
"integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
|
| 121 |
+
"dev": true,
|
| 122 |
+
"license": "MIT",
|
| 123 |
+
"engines": {
|
| 124 |
+
"node": ">=6.9.0"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"node_modules/@babel/helper-module-imports": {
|
| 128 |
+
"version": "7.28.6",
|
| 129 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
|
| 130 |
+
"integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
|
| 131 |
+
"dev": true,
|
| 132 |
+
"license": "MIT",
|
| 133 |
+
"dependencies": {
|
| 134 |
+
"@babel/traverse": "^7.28.6",
|
| 135 |
+
"@babel/types": "^7.28.6"
|
| 136 |
+
},
|
| 137 |
+
"engines": {
|
| 138 |
+
"node": ">=6.9.0"
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
+
"node_modules/@babel/helper-module-transforms": {
|
| 142 |
+
"version": "7.28.6",
|
| 143 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
|
| 144 |
+
"integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
|
| 145 |
+
"dev": true,
|
| 146 |
+
"license": "MIT",
|
| 147 |
+
"dependencies": {
|
| 148 |
+
"@babel/helper-module-imports": "^7.28.6",
|
| 149 |
+
"@babel/helper-validator-identifier": "^7.28.5",
|
| 150 |
+
"@babel/traverse": "^7.28.6"
|
| 151 |
+
},
|
| 152 |
+
"engines": {
|
| 153 |
+
"node": ">=6.9.0"
|
| 154 |
+
},
|
| 155 |
+
"peerDependencies": {
|
| 156 |
+
"@babel/core": "^7.0.0"
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
"node_modules/@babel/helper-string-parser": {
|
| 160 |
+
"version": "7.27.1",
|
| 161 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
|
| 162 |
+
"integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
|
| 163 |
+
"dev": true,
|
| 164 |
+
"license": "MIT",
|
| 165 |
+
"engines": {
|
| 166 |
+
"node": ">=6.9.0"
|
| 167 |
+
}
|
| 168 |
+
},
|
| 169 |
+
"node_modules/@babel/helper-validator-identifier": {
|
| 170 |
+
"version": "7.28.5",
|
| 171 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
|
| 172 |
+
"integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
|
| 173 |
+
"dev": true,
|
| 174 |
+
"license": "MIT",
|
| 175 |
+
"engines": {
|
| 176 |
+
"node": ">=6.9.0"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"node_modules/@babel/helper-validator-option": {
|
| 180 |
+
"version": "7.27.1",
|
| 181 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
|
| 182 |
+
"integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
|
| 183 |
+
"dev": true,
|
| 184 |
+
"license": "MIT",
|
| 185 |
+
"engines": {
|
| 186 |
+
"node": ">=6.9.0"
|
| 187 |
+
}
|
| 188 |
+
},
|
| 189 |
+
"node_modules/@babel/helpers": {
|
| 190 |
+
"version": "7.29.2",
|
| 191 |
+
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",
|
| 192 |
+
"integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",
|
| 193 |
+
"dev": true,
|
| 194 |
+
"license": "MIT",
|
| 195 |
+
"dependencies": {
|
| 196 |
+
"@babel/template": "^7.28.6",
|
| 197 |
+
"@babel/types": "^7.29.0"
|
| 198 |
+
},
|
| 199 |
+
"engines": {
|
| 200 |
+
"node": ">=6.9.0"
|
| 201 |
+
}
|
| 202 |
+
},
|
| 203 |
+
"node_modules/@babel/parser": {
|
| 204 |
+
"version": "7.29.2",
|
| 205 |
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz",
|
| 206 |
+
"integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==",
|
| 207 |
+
"dev": true,
|
| 208 |
+
"license": "MIT",
|
| 209 |
+
"dependencies": {
|
| 210 |
+
"@babel/types": "^7.29.0"
|
| 211 |
+
},
|
| 212 |
+
"bin": {
|
| 213 |
+
"parser": "bin/babel-parser.js"
|
| 214 |
+
},
|
| 215 |
+
"engines": {
|
| 216 |
+
"node": ">=6.0.0"
|
| 217 |
+
}
|
| 218 |
+
},
|
| 219 |
+
"node_modules/@babel/template": {
|
| 220 |
+
"version": "7.28.6",
|
| 221 |
+
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
|
| 222 |
+
"integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
|
| 223 |
+
"dev": true,
|
| 224 |
+
"license": "MIT",
|
| 225 |
+
"dependencies": {
|
| 226 |
+
"@babel/code-frame": "^7.28.6",
|
| 227 |
+
"@babel/parser": "^7.28.6",
|
| 228 |
+
"@babel/types": "^7.28.6"
|
| 229 |
+
},
|
| 230 |
+
"engines": {
|
| 231 |
+
"node": ">=6.9.0"
|
| 232 |
+
}
|
| 233 |
+
},
|
| 234 |
+
"node_modules/@babel/traverse": {
|
| 235 |
+
"version": "7.29.0",
|
| 236 |
+
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
|
| 237 |
+
"integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
|
| 238 |
+
"dev": true,
|
| 239 |
+
"license": "MIT",
|
| 240 |
+
"dependencies": {
|
| 241 |
+
"@babel/code-frame": "^7.29.0",
|
| 242 |
+
"@babel/generator": "^7.29.0",
|
| 243 |
+
"@babel/helper-globals": "^7.28.0",
|
| 244 |
+
"@babel/parser": "^7.29.0",
|
| 245 |
+
"@babel/template": "^7.28.6",
|
| 246 |
+
"@babel/types": "^7.29.0",
|
| 247 |
+
"debug": "^4.3.1"
|
| 248 |
+
},
|
| 249 |
+
"engines": {
|
| 250 |
+
"node": ">=6.9.0"
|
| 251 |
+
}
|
| 252 |
+
},
|
| 253 |
+
"node_modules/@babel/types": {
|
| 254 |
+
"version": "7.29.0",
|
| 255 |
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
|
| 256 |
+
"integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
|
| 257 |
+
"dev": true,
|
| 258 |
+
"license": "MIT",
|
| 259 |
+
"dependencies": {
|
| 260 |
+
"@babel/helper-string-parser": "^7.27.1",
|
| 261 |
+
"@babel/helper-validator-identifier": "^7.28.5"
|
| 262 |
+
},
|
| 263 |
+
"engines": {
|
| 264 |
+
"node": ">=6.9.0"
|
| 265 |
+
}
|
| 266 |
+
},
|
| 267 |
+
"node_modules/@emnapi/core": {
|
| 268 |
+
"version": "1.9.2",
|
| 269 |
+
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.2.tgz",
|
| 270 |
+
"integrity": "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==",
|
| 271 |
+
"dev": true,
|
| 272 |
+
"license": "MIT",
|
| 273 |
+
"optional": true,
|
| 274 |
+
"peer": true,
|
| 275 |
+
"dependencies": {
|
| 276 |
+
"@emnapi/wasi-threads": "1.2.1",
|
| 277 |
+
"tslib": "^2.4.0"
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
"node_modules/@emnapi/runtime": {
|
| 281 |
+
"version": "1.9.2",
|
| 282 |
+
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz",
|
| 283 |
+
"integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==",
|
| 284 |
+
"dev": true,
|
| 285 |
+
"license": "MIT",
|
| 286 |
+
"optional": true,
|
| 287 |
+
"peer": true,
|
| 288 |
+
"dependencies": {
|
| 289 |
+
"tslib": "^2.4.0"
|
| 290 |
+
}
|
| 291 |
+
},
|
| 292 |
+
"node_modules/@emnapi/wasi-threads": {
|
| 293 |
+
"version": "1.2.1",
|
| 294 |
+
"resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",
|
| 295 |
+
"integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",
|
| 296 |
+
"dev": true,
|
| 297 |
+
"license": "MIT",
|
| 298 |
+
"optional": true,
|
| 299 |
+
"dependencies": {
|
| 300 |
+
"tslib": "^2.4.0"
|
| 301 |
+
}
|
| 302 |
+
},
|
| 303 |
+
"node_modules/@eslint-community/eslint-utils": {
|
| 304 |
+
"version": "4.9.1",
|
| 305 |
+
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
|
| 306 |
+
"integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
|
| 307 |
+
"dev": true,
|
| 308 |
+
"license": "MIT",
|
| 309 |
+
"dependencies": {
|
| 310 |
+
"eslint-visitor-keys": "^3.4.3"
|
| 311 |
+
},
|
| 312 |
+
"engines": {
|
| 313 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 314 |
+
},
|
| 315 |
+
"funding": {
|
| 316 |
+
"url": "https://opencollective.com/eslint"
|
| 317 |
+
},
|
| 318 |
+
"peerDependencies": {
|
| 319 |
+
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
|
| 323 |
+
"version": "3.4.3",
|
| 324 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
|
| 325 |
+
"integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
| 326 |
+
"dev": true,
|
| 327 |
+
"license": "Apache-2.0",
|
| 328 |
+
"engines": {
|
| 329 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 330 |
+
},
|
| 331 |
+
"funding": {
|
| 332 |
+
"url": "https://opencollective.com/eslint"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"node_modules/@eslint-community/regexpp": {
|
| 336 |
+
"version": "4.12.2",
|
| 337 |
+
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
|
| 338 |
+
"integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
|
| 339 |
+
"dev": true,
|
| 340 |
+
"license": "MIT",
|
| 341 |
+
"engines": {
|
| 342 |
+
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
|
| 343 |
+
}
|
| 344 |
+
},
|
| 345 |
+
"node_modules/@eslint/config-array": {
|
| 346 |
+
"version": "0.21.2",
|
| 347 |
+
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz",
|
| 348 |
+
"integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==",
|
| 349 |
+
"dev": true,
|
| 350 |
+
"license": "Apache-2.0",
|
| 351 |
+
"dependencies": {
|
| 352 |
+
"@eslint/object-schema": "^2.1.7",
|
| 353 |
+
"debug": "^4.3.1",
|
| 354 |
+
"minimatch": "^3.1.5"
|
| 355 |
+
},
|
| 356 |
+
"engines": {
|
| 357 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 358 |
+
}
|
| 359 |
+
},
|
| 360 |
+
"node_modules/@eslint/config-helpers": {
|
| 361 |
+
"version": "0.4.2",
|
| 362 |
+
"resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",
|
| 363 |
+
"integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",
|
| 364 |
+
"dev": true,
|
| 365 |
+
"license": "Apache-2.0",
|
| 366 |
+
"dependencies": {
|
| 367 |
+
"@eslint/core": "^0.17.0"
|
| 368 |
+
},
|
| 369 |
+
"engines": {
|
| 370 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 371 |
+
}
|
| 372 |
+
},
|
| 373 |
+
"node_modules/@eslint/core": {
|
| 374 |
+
"version": "0.17.0",
|
| 375 |
+
"resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",
|
| 376 |
+
"integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",
|
| 377 |
+
"dev": true,
|
| 378 |
+
"license": "Apache-2.0",
|
| 379 |
+
"dependencies": {
|
| 380 |
+
"@types/json-schema": "^7.0.15"
|
| 381 |
+
},
|
| 382 |
+
"engines": {
|
| 383 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 384 |
+
}
|
| 385 |
+
},
|
| 386 |
+
"node_modules/@eslint/eslintrc": {
|
| 387 |
+
"version": "3.3.5",
|
| 388 |
+
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz",
|
| 389 |
+
"integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==",
|
| 390 |
+
"dev": true,
|
| 391 |
+
"license": "MIT",
|
| 392 |
+
"dependencies": {
|
| 393 |
+
"ajv": "^6.14.0",
|
| 394 |
+
"debug": "^4.3.2",
|
| 395 |
+
"espree": "^10.0.1",
|
| 396 |
+
"globals": "^14.0.0",
|
| 397 |
+
"ignore": "^5.2.0",
|
| 398 |
+
"import-fresh": "^3.2.1",
|
| 399 |
+
"js-yaml": "^4.1.1",
|
| 400 |
+
"minimatch": "^3.1.5",
|
| 401 |
+
"strip-json-comments": "^3.1.1"
|
| 402 |
+
},
|
| 403 |
+
"engines": {
|
| 404 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 405 |
+
},
|
| 406 |
+
"funding": {
|
| 407 |
+
"url": "https://opencollective.com/eslint"
|
| 408 |
+
}
|
| 409 |
+
},
|
| 410 |
+
"node_modules/@eslint/eslintrc/node_modules/globals": {
|
| 411 |
+
"version": "14.0.0",
|
| 412 |
+
"resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
|
| 413 |
+
"integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
|
| 414 |
+
"dev": true,
|
| 415 |
+
"license": "MIT",
|
| 416 |
+
"engines": {
|
| 417 |
+
"node": ">=18"
|
| 418 |
+
},
|
| 419 |
+
"funding": {
|
| 420 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 421 |
+
}
|
| 422 |
+
},
|
| 423 |
+
"node_modules/@eslint/js": {
|
| 424 |
+
"version": "9.39.4",
|
| 425 |
+
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz",
|
| 426 |
+
"integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==",
|
| 427 |
+
"dev": true,
|
| 428 |
+
"license": "MIT",
|
| 429 |
+
"engines": {
|
| 430 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 431 |
+
},
|
| 432 |
+
"funding": {
|
| 433 |
+
"url": "https://eslint.org/donate"
|
| 434 |
+
}
|
| 435 |
+
},
|
| 436 |
+
"node_modules/@eslint/object-schema": {
|
| 437 |
+
"version": "2.1.7",
|
| 438 |
+
"resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",
|
| 439 |
+
"integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",
|
| 440 |
+
"dev": true,
|
| 441 |
+
"license": "Apache-2.0",
|
| 442 |
+
"engines": {
|
| 443 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 444 |
+
}
|
| 445 |
+
},
|
| 446 |
+
"node_modules/@eslint/plugin-kit": {
|
| 447 |
+
"version": "0.4.1",
|
| 448 |
+
"resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",
|
| 449 |
+
"integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",
|
| 450 |
+
"dev": true,
|
| 451 |
+
"license": "Apache-2.0",
|
| 452 |
+
"dependencies": {
|
| 453 |
+
"@eslint/core": "^0.17.0",
|
| 454 |
+
"levn": "^0.4.1"
|
| 455 |
+
},
|
| 456 |
+
"engines": {
|
| 457 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 458 |
+
}
|
| 459 |
+
},
|
| 460 |
+
"node_modules/@humanfs/core": {
|
| 461 |
+
"version": "0.19.2",
|
| 462 |
+
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
|
| 463 |
+
"integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
|
| 464 |
+
"dev": true,
|
| 465 |
+
"license": "Apache-2.0",
|
| 466 |
+
"dependencies": {
|
| 467 |
+
"@humanfs/types": "^0.15.0"
|
| 468 |
+
},
|
| 469 |
+
"engines": {
|
| 470 |
+
"node": ">=18.18.0"
|
| 471 |
+
}
|
| 472 |
+
},
|
| 473 |
+
"node_modules/@humanfs/node": {
|
| 474 |
+
"version": "0.16.8",
|
| 475 |
+
"resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",
|
| 476 |
+
"integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
|
| 477 |
+
"dev": true,
|
| 478 |
+
"license": "Apache-2.0",
|
| 479 |
+
"dependencies": {
|
| 480 |
+
"@humanfs/core": "^0.19.2",
|
| 481 |
+
"@humanfs/types": "^0.15.0",
|
| 482 |
+
"@humanwhocodes/retry": "^0.4.0"
|
| 483 |
+
},
|
| 484 |
+
"engines": {
|
| 485 |
+
"node": ">=18.18.0"
|
| 486 |
+
}
|
| 487 |
+
},
|
| 488 |
+
"node_modules/@humanfs/types": {
|
| 489 |
+
"version": "0.15.0",
|
| 490 |
+
"resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",
|
| 491 |
+
"integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
|
| 492 |
+
"dev": true,
|
| 493 |
+
"license": "Apache-2.0",
|
| 494 |
+
"engines": {
|
| 495 |
+
"node": ">=18.18.0"
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"node_modules/@humanwhocodes/module-importer": {
|
| 499 |
+
"version": "1.0.1",
|
| 500 |
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
|
| 501 |
+
"integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
|
| 502 |
+
"dev": true,
|
| 503 |
+
"license": "Apache-2.0",
|
| 504 |
+
"engines": {
|
| 505 |
+
"node": ">=12.22"
|
| 506 |
+
},
|
| 507 |
+
"funding": {
|
| 508 |
+
"type": "github",
|
| 509 |
+
"url": "https://github.com/sponsors/nzakas"
|
| 510 |
+
}
|
| 511 |
+
},
|
| 512 |
+
"node_modules/@humanwhocodes/retry": {
|
| 513 |
+
"version": "0.4.3",
|
| 514 |
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
|
| 515 |
+
"integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
|
| 516 |
+
"dev": true,
|
| 517 |
+
"license": "Apache-2.0",
|
| 518 |
+
"engines": {
|
| 519 |
+
"node": ">=18.18"
|
| 520 |
+
},
|
| 521 |
+
"funding": {
|
| 522 |
+
"type": "github",
|
| 523 |
+
"url": "https://github.com/sponsors/nzakas"
|
| 524 |
+
}
|
| 525 |
+
},
|
| 526 |
+
"node_modules/@jridgewell/gen-mapping": {
|
| 527 |
+
"version": "0.3.13",
|
| 528 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
|
| 529 |
+
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
|
| 530 |
+
"dev": true,
|
| 531 |
+
"license": "MIT",
|
| 532 |
+
"dependencies": {
|
| 533 |
+
"@jridgewell/sourcemap-codec": "^1.5.0",
|
| 534 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
| 535 |
+
}
|
| 536 |
+
},
|
| 537 |
+
"node_modules/@jridgewell/remapping": {
|
| 538 |
+
"version": "2.3.5",
|
| 539 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
|
| 540 |
+
"integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
|
| 541 |
+
"dev": true,
|
| 542 |
+
"license": "MIT",
|
| 543 |
+
"dependencies": {
|
| 544 |
+
"@jridgewell/gen-mapping": "^0.3.5",
|
| 545 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
| 546 |
+
}
|
| 547 |
+
},
|
| 548 |
+
"node_modules/@jridgewell/resolve-uri": {
|
| 549 |
+
"version": "3.1.2",
|
| 550 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
| 551 |
+
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
| 552 |
+
"dev": true,
|
| 553 |
+
"license": "MIT",
|
| 554 |
+
"engines": {
|
| 555 |
+
"node": ">=6.0.0"
|
| 556 |
+
}
|
| 557 |
+
},
|
| 558 |
+
"node_modules/@jridgewell/sourcemap-codec": {
|
| 559 |
+
"version": "1.5.5",
|
| 560 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
| 561 |
+
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
| 562 |
+
"dev": true,
|
| 563 |
+
"license": "MIT"
|
| 564 |
+
},
|
| 565 |
+
"node_modules/@jridgewell/trace-mapping": {
|
| 566 |
+
"version": "0.3.31",
|
| 567 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
|
| 568 |
+
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
|
| 569 |
+
"dev": true,
|
| 570 |
+
"license": "MIT",
|
| 571 |
+
"dependencies": {
|
| 572 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
| 573 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
| 574 |
+
}
|
| 575 |
+
},
|
| 576 |
+
"node_modules/@napi-rs/wasm-runtime": {
|
| 577 |
+
"version": "1.1.4",
|
| 578 |
+
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz",
|
| 579 |
+
"integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==",
|
| 580 |
+
"dev": true,
|
| 581 |
+
"license": "MIT",
|
| 582 |
+
"optional": true,
|
| 583 |
+
"dependencies": {
|
| 584 |
+
"@tybys/wasm-util": "^0.10.1"
|
| 585 |
+
},
|
| 586 |
+
"funding": {
|
| 587 |
+
"type": "github",
|
| 588 |
+
"url": "https://github.com/sponsors/Brooooooklyn"
|
| 589 |
+
},
|
| 590 |
+
"peerDependencies": {
|
| 591 |
+
"@emnapi/core": "^1.7.1",
|
| 592 |
+
"@emnapi/runtime": "^1.7.1"
|
| 593 |
+
}
|
| 594 |
+
},
|
| 595 |
+
"node_modules/@oxc-project/types": {
|
| 596 |
+
"version": "0.126.0",
|
| 597 |
+
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.126.0.tgz",
|
| 598 |
+
"integrity": "sha512-oGfVtjAgwQVVpfBrbtk4e1XDyWHRFta6BS3GWVzrF8xYBT2VGQAk39yJS/wFSMrZqoiCU4oghT3Ch0HaHGIHcQ==",
|
| 599 |
+
"dev": true,
|
| 600 |
+
"license": "MIT",
|
| 601 |
+
"funding": {
|
| 602 |
+
"url": "https://github.com/sponsors/Boshen"
|
| 603 |
+
}
|
| 604 |
+
},
|
| 605 |
+
"node_modules/@rolldown/binding-android-arm64": {
|
| 606 |
+
"version": "1.0.0-rc.16",
|
| 607 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.16.tgz",
|
| 608 |
+
"integrity": "sha512-rhY3k7Bsae9qQfOtph2Pm2jZEA+s8Gmjoz4hhmx70K9iMQ/ddeae+xhRQcM5IuVx5ry1+bGfkvMn7D6MJggVSA==",
|
| 609 |
+
"cpu": [
|
| 610 |
+
"arm64"
|
| 611 |
+
],
|
| 612 |
+
"dev": true,
|
| 613 |
+
"license": "MIT",
|
| 614 |
+
"optional": true,
|
| 615 |
+
"os": [
|
| 616 |
+
"android"
|
| 617 |
+
],
|
| 618 |
+
"engines": {
|
| 619 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 620 |
+
}
|
| 621 |
+
},
|
| 622 |
+
"node_modules/@rolldown/binding-darwin-arm64": {
|
| 623 |
+
"version": "1.0.0-rc.16",
|
| 624 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.16.tgz",
|
| 625 |
+
"integrity": "sha512-rNz0yK078yrNn3DrdgN+PKiMOW8HfQ92jQiXxwX8yW899ayV00MLVdaCNeVBhG/TbH3ouYVObo8/yrkiectkcQ==",
|
| 626 |
+
"cpu": [
|
| 627 |
+
"arm64"
|
| 628 |
+
],
|
| 629 |
+
"dev": true,
|
| 630 |
+
"license": "MIT",
|
| 631 |
+
"optional": true,
|
| 632 |
+
"os": [
|
| 633 |
+
"darwin"
|
| 634 |
+
],
|
| 635 |
+
"engines": {
|
| 636 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 637 |
+
}
|
| 638 |
+
},
|
| 639 |
+
"node_modules/@rolldown/binding-darwin-x64": {
|
| 640 |
+
"version": "1.0.0-rc.16",
|
| 641 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.16.tgz",
|
| 642 |
+
"integrity": "sha512-r/OmdR00HmD4i79Z//xO06uEPOq5hRXdhw7nzkxQxwSavs3PSHa1ijntdpOiZ2mzOQ3fVVu8C1M19FoNM+dMUQ==",
|
| 643 |
+
"cpu": [
|
| 644 |
+
"x64"
|
| 645 |
+
],
|
| 646 |
+
"dev": true,
|
| 647 |
+
"license": "MIT",
|
| 648 |
+
"optional": true,
|
| 649 |
+
"os": [
|
| 650 |
+
"darwin"
|
| 651 |
+
],
|
| 652 |
+
"engines": {
|
| 653 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 654 |
+
}
|
| 655 |
+
},
|
| 656 |
+
"node_modules/@rolldown/binding-freebsd-x64": {
|
| 657 |
+
"version": "1.0.0-rc.16",
|
| 658 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.16.tgz",
|
| 659 |
+
"integrity": "sha512-KcRE5w8h0OnjUatG8pldyD14/CQ5Phs1oxfR+3pKDjboHRo9+MkqQaiIZlZRpsxC15paeXme/I127tUa9TXJ6g==",
|
| 660 |
+
"cpu": [
|
| 661 |
+
"x64"
|
| 662 |
+
],
|
| 663 |
+
"dev": true,
|
| 664 |
+
"license": "MIT",
|
| 665 |
+
"optional": true,
|
| 666 |
+
"os": [
|
| 667 |
+
"freebsd"
|
| 668 |
+
],
|
| 669 |
+
"engines": {
|
| 670 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 671 |
+
}
|
| 672 |
+
},
|
| 673 |
+
"node_modules/@rolldown/binding-linux-arm-gnueabihf": {
|
| 674 |
+
"version": "1.0.0-rc.16",
|
| 675 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.16.tgz",
|
| 676 |
+
"integrity": "sha512-bT0guA1bpxEJ/ZhTRniQf7rNF8ybvXOuWbNIeLABaV5NGjx4EtOWBTSRGWFU9ZWVkPOZ+HNFP8RMcBokBiZ0Kg==",
|
| 677 |
+
"cpu": [
|
| 678 |
+
"arm"
|
| 679 |
+
],
|
| 680 |
+
"dev": true,
|
| 681 |
+
"license": "MIT",
|
| 682 |
+
"optional": true,
|
| 683 |
+
"os": [
|
| 684 |
+
"linux"
|
| 685 |
+
],
|
| 686 |
+
"engines": {
|
| 687 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 688 |
+
}
|
| 689 |
+
},
|
| 690 |
+
"node_modules/@rolldown/binding-linux-arm64-gnu": {
|
| 691 |
+
"version": "1.0.0-rc.16",
|
| 692 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.16.tgz",
|
| 693 |
+
"integrity": "sha512-+tHktCHWV8BDQSjemUqm/Jl/TPk3QObCTIjmdDy/nlupcujZghmKK2962LYrqFpWu+ai01AN/REOH3NEpqvYQg==",
|
| 694 |
+
"cpu": [
|
| 695 |
+
"arm64"
|
| 696 |
+
],
|
| 697 |
+
"dev": true,
|
| 698 |
+
"license": "MIT",
|
| 699 |
+
"optional": true,
|
| 700 |
+
"os": [
|
| 701 |
+
"linux"
|
| 702 |
+
],
|
| 703 |
+
"engines": {
|
| 704 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 705 |
+
}
|
| 706 |
+
},
|
| 707 |
+
"node_modules/@rolldown/binding-linux-arm64-musl": {
|
| 708 |
+
"version": "1.0.0-rc.16",
|
| 709 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.16.tgz",
|
| 710 |
+
"integrity": "sha512-3fPzdREH806oRLxpTWW1Gt4tQHs0TitZFOECB2xzCFLPKnSOy90gwA7P29cksYilFO6XVRY1kzga0cL2nRjKPg==",
|
| 711 |
+
"cpu": [
|
| 712 |
+
"arm64"
|
| 713 |
+
],
|
| 714 |
+
"dev": true,
|
| 715 |
+
"license": "MIT",
|
| 716 |
+
"optional": true,
|
| 717 |
+
"os": [
|
| 718 |
+
"linux"
|
| 719 |
+
],
|
| 720 |
+
"engines": {
|
| 721 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 722 |
+
}
|
| 723 |
+
},
|
| 724 |
+
"node_modules/@rolldown/binding-linux-ppc64-gnu": {
|
| 725 |
+
"version": "1.0.0-rc.16",
|
| 726 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.16.tgz",
|
| 727 |
+
"integrity": "sha512-EKwI1tSrLs7YVw+JPJT/G2dJQ1jl9qlTTTEG0V2Ok/RdOenRfBw2PQdLPyjhIu58ocdBfP7vIRN/pvMsPxs/AQ==",
|
| 728 |
+
"cpu": [
|
| 729 |
+
"ppc64"
|
| 730 |
+
],
|
| 731 |
+
"dev": true,
|
| 732 |
+
"license": "MIT",
|
| 733 |
+
"optional": true,
|
| 734 |
+
"os": [
|
| 735 |
+
"linux"
|
| 736 |
+
],
|
| 737 |
+
"engines": {
|
| 738 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 739 |
+
}
|
| 740 |
+
},
|
| 741 |
+
"node_modules/@rolldown/binding-linux-s390x-gnu": {
|
| 742 |
+
"version": "1.0.0-rc.16",
|
| 743 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.16.tgz",
|
| 744 |
+
"integrity": "sha512-Uknladnb3Sxqu6SEcqBldQyJUpk8NleooZEc0MbRBJ4inEhRYWZX0NJu12vNf2mqAq7gsofAxHrGghiUYjhaLQ==",
|
| 745 |
+
"cpu": [
|
| 746 |
+
"s390x"
|
| 747 |
+
],
|
| 748 |
+
"dev": true,
|
| 749 |
+
"license": "MIT",
|
| 750 |
+
"optional": true,
|
| 751 |
+
"os": [
|
| 752 |
+
"linux"
|
| 753 |
+
],
|
| 754 |
+
"engines": {
|
| 755 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 756 |
+
}
|
| 757 |
+
},
|
| 758 |
+
"node_modules/@rolldown/binding-linux-x64-gnu": {
|
| 759 |
+
"version": "1.0.0-rc.16",
|
| 760 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.16.tgz",
|
| 761 |
+
"integrity": "sha512-FIb8+uG49sZBtLTn+zt1AJ20TqVcqWeSIyoVt0or7uAWesgKaHbiBh6OpA/k9v0LTt+PTrb1Lao133kP4uVxkg==",
|
| 762 |
+
"cpu": [
|
| 763 |
+
"x64"
|
| 764 |
+
],
|
| 765 |
+
"dev": true,
|
| 766 |
+
"license": "MIT",
|
| 767 |
+
"optional": true,
|
| 768 |
+
"os": [
|
| 769 |
+
"linux"
|
| 770 |
+
],
|
| 771 |
+
"engines": {
|
| 772 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 773 |
+
}
|
| 774 |
+
},
|
| 775 |
+
"node_modules/@rolldown/binding-linux-x64-musl": {
|
| 776 |
+
"version": "1.0.0-rc.16",
|
| 777 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.16.tgz",
|
| 778 |
+
"integrity": "sha512-RuERhF9/EgWxZEXYWCOaViUWHIboceK4/ivdtQ3R0T44NjLkIIlGIAVAuCddFxsZ7vnRHtNQUrt2vR2n2slB2w==",
|
| 779 |
+
"cpu": [
|
| 780 |
+
"x64"
|
| 781 |
+
],
|
| 782 |
+
"dev": true,
|
| 783 |
+
"license": "MIT",
|
| 784 |
+
"optional": true,
|
| 785 |
+
"os": [
|
| 786 |
+
"linux"
|
| 787 |
+
],
|
| 788 |
+
"engines": {
|
| 789 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 790 |
+
}
|
| 791 |
+
},
|
| 792 |
+
"node_modules/@rolldown/binding-openharmony-arm64": {
|
| 793 |
+
"version": "1.0.0-rc.16",
|
| 794 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.16.tgz",
|
| 795 |
+
"integrity": "sha512-mXcXnvd9GpazCxeUCCnZ2+YF7nut+ZOEbE4GtaiPtyY6AkhZWbK70y1KK3j+RDhjVq5+U8FySkKRb/+w0EeUwA==",
|
| 796 |
+
"cpu": [
|
| 797 |
+
"arm64"
|
| 798 |
+
],
|
| 799 |
+
"dev": true,
|
| 800 |
+
"license": "MIT",
|
| 801 |
+
"optional": true,
|
| 802 |
+
"os": [
|
| 803 |
+
"openharmony"
|
| 804 |
+
],
|
| 805 |
+
"engines": {
|
| 806 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 807 |
+
}
|
| 808 |
+
},
|
| 809 |
+
"node_modules/@rolldown/binding-wasm32-wasi": {
|
| 810 |
+
"version": "1.0.0-rc.16",
|
| 811 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.16.tgz",
|
| 812 |
+
"integrity": "sha512-3Q2KQxnC8IJOLqXmUMoYwyIPZU9hzRbnHaoV3Euz+VVnjZKcY8ktnNP8T9R4/GGQtb27C/UYKABxesKWb8lsvQ==",
|
| 813 |
+
"cpu": [
|
| 814 |
+
"wasm32"
|
| 815 |
+
],
|
| 816 |
+
"dev": true,
|
| 817 |
+
"license": "MIT",
|
| 818 |
+
"optional": true,
|
| 819 |
+
"dependencies": {
|
| 820 |
+
"@emnapi/core": "1.9.2",
|
| 821 |
+
"@emnapi/runtime": "1.9.2",
|
| 822 |
+
"@napi-rs/wasm-runtime": "^1.1.4"
|
| 823 |
+
},
|
| 824 |
+
"engines": {
|
| 825 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 826 |
+
}
|
| 827 |
+
},
|
| 828 |
+
"node_modules/@rolldown/binding-win32-arm64-msvc": {
|
| 829 |
+
"version": "1.0.0-rc.16",
|
| 830 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.16.tgz",
|
| 831 |
+
"integrity": "sha512-tj7XRemQcOcFwv7qhpUxMTBbI5mWMlE4c1Omhg5+h8GuLXzyj8HviYgR+bB2DMDgRqUE+jiDleqSCRjx4aYk/Q==",
|
| 832 |
+
"cpu": [
|
| 833 |
+
"arm64"
|
| 834 |
+
],
|
| 835 |
+
"dev": true,
|
| 836 |
+
"license": "MIT",
|
| 837 |
+
"optional": true,
|
| 838 |
+
"os": [
|
| 839 |
+
"win32"
|
| 840 |
+
],
|
| 841 |
+
"engines": {
|
| 842 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 843 |
+
}
|
| 844 |
+
},
|
| 845 |
+
"node_modules/@rolldown/binding-win32-x64-msvc": {
|
| 846 |
+
"version": "1.0.0-rc.16",
|
| 847 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.16.tgz",
|
| 848 |
+
"integrity": "sha512-PH5DRZT+F4f2PTXRXR8uJxnBq2po/xFtddyabTJVJs/ZYVHqXPEgNIr35IHTEa6bpa0Q8Awg+ymkTaGnKITw4g==",
|
| 849 |
+
"cpu": [
|
| 850 |
+
"x64"
|
| 851 |
+
],
|
| 852 |
+
"dev": true,
|
| 853 |
+
"license": "MIT",
|
| 854 |
+
"optional": true,
|
| 855 |
+
"os": [
|
| 856 |
+
"win32"
|
| 857 |
+
],
|
| 858 |
+
"engines": {
|
| 859 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 860 |
+
}
|
| 861 |
+
},
|
| 862 |
+
"node_modules/@rolldown/pluginutils": {
|
| 863 |
+
"version": "1.0.0-rc.7",
|
| 864 |
+
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz",
|
| 865 |
+
"integrity": "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==",
|
| 866 |
+
"dev": true,
|
| 867 |
+
"license": "MIT"
|
| 868 |
+
},
|
| 869 |
+
"node_modules/@tybys/wasm-util": {
|
| 870 |
+
"version": "0.10.1",
|
| 871 |
+
"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",
|
| 872 |
+
"integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",
|
| 873 |
+
"dev": true,
|
| 874 |
+
"license": "MIT",
|
| 875 |
+
"optional": true,
|
| 876 |
+
"dependencies": {
|
| 877 |
+
"tslib": "^2.4.0"
|
| 878 |
+
}
|
| 879 |
+
},
|
| 880 |
+
"node_modules/@types/estree": {
|
| 881 |
+
"version": "1.0.8",
|
| 882 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
|
| 883 |
+
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
|
| 884 |
+
"dev": true,
|
| 885 |
+
"license": "MIT"
|
| 886 |
+
},
|
| 887 |
+
"node_modules/@types/json-schema": {
|
| 888 |
+
"version": "7.0.15",
|
| 889 |
+
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
|
| 890 |
+
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
|
| 891 |
+
"dev": true,
|
| 892 |
+
"license": "MIT"
|
| 893 |
+
},
|
| 894 |
+
"node_modules/@types/react": {
|
| 895 |
+
"version": "19.2.14",
|
| 896 |
+
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
|
| 897 |
+
"integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
|
| 898 |
+
"dev": true,
|
| 899 |
+
"license": "MIT",
|
| 900 |
+
"peer": true,
|
| 901 |
+
"dependencies": {
|
| 902 |
+
"csstype": "^3.2.2"
|
| 903 |
+
}
|
| 904 |
+
},
|
| 905 |
+
"node_modules/@types/react-dom": {
|
| 906 |
+
"version": "19.2.3",
|
| 907 |
+
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
|
| 908 |
+
"integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
|
| 909 |
+
"dev": true,
|
| 910 |
+
"license": "MIT",
|
| 911 |
+
"peerDependencies": {
|
| 912 |
+
"@types/react": "^19.2.0"
|
| 913 |
+
}
|
| 914 |
+
},
|
| 915 |
+
"node_modules/@vitejs/plugin-react": {
|
| 916 |
+
"version": "6.0.1",
|
| 917 |
+
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.1.tgz",
|
| 918 |
+
"integrity": "sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==",
|
| 919 |
+
"dev": true,
|
| 920 |
+
"license": "MIT",
|
| 921 |
+
"dependencies": {
|
| 922 |
+
"@rolldown/pluginutils": "1.0.0-rc.7"
|
| 923 |
+
},
|
| 924 |
+
"engines": {
|
| 925 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 926 |
+
},
|
| 927 |
+
"peerDependencies": {
|
| 928 |
+
"@rolldown/plugin-babel": "^0.1.7 || ^0.2.0",
|
| 929 |
+
"babel-plugin-react-compiler": "^1.0.0",
|
| 930 |
+
"vite": "^8.0.0"
|
| 931 |
+
},
|
| 932 |
+
"peerDependenciesMeta": {
|
| 933 |
+
"@rolldown/plugin-babel": {
|
| 934 |
+
"optional": true
|
| 935 |
+
},
|
| 936 |
+
"babel-plugin-react-compiler": {
|
| 937 |
+
"optional": true
|
| 938 |
+
}
|
| 939 |
+
}
|
| 940 |
+
},
|
| 941 |
+
"node_modules/acorn": {
|
| 942 |
+
"version": "8.16.0",
|
| 943 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
|
| 944 |
+
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
|
| 945 |
+
"dev": true,
|
| 946 |
+
"license": "MIT",
|
| 947 |
+
"peer": true,
|
| 948 |
+
"bin": {
|
| 949 |
+
"acorn": "bin/acorn"
|
| 950 |
+
},
|
| 951 |
+
"engines": {
|
| 952 |
+
"node": ">=0.4.0"
|
| 953 |
+
}
|
| 954 |
+
},
|
| 955 |
+
"node_modules/acorn-jsx": {
|
| 956 |
+
"version": "5.3.2",
|
| 957 |
+
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
|
| 958 |
+
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
|
| 959 |
+
"dev": true,
|
| 960 |
+
"license": "MIT",
|
| 961 |
+
"peerDependencies": {
|
| 962 |
+
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
| 963 |
+
}
|
| 964 |
+
},
|
| 965 |
+
"node_modules/ajv": {
|
| 966 |
+
"version": "6.14.0",
|
| 967 |
+
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",
|
| 968 |
+
"integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==",
|
| 969 |
+
"dev": true,
|
| 970 |
+
"license": "MIT",
|
| 971 |
+
"dependencies": {
|
| 972 |
+
"fast-deep-equal": "^3.1.1",
|
| 973 |
+
"fast-json-stable-stringify": "^2.0.0",
|
| 974 |
+
"json-schema-traverse": "^0.4.1",
|
| 975 |
+
"uri-js": "^4.2.2"
|
| 976 |
+
},
|
| 977 |
+
"funding": {
|
| 978 |
+
"type": "github",
|
| 979 |
+
"url": "https://github.com/sponsors/epoberezkin"
|
| 980 |
+
}
|
| 981 |
+
},
|
| 982 |
+
"node_modules/ansi-styles": {
|
| 983 |
+
"version": "4.3.0",
|
| 984 |
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 985 |
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 986 |
+
"dev": true,
|
| 987 |
+
"license": "MIT",
|
| 988 |
+
"dependencies": {
|
| 989 |
+
"color-convert": "^2.0.1"
|
| 990 |
+
},
|
| 991 |
+
"engines": {
|
| 992 |
+
"node": ">=8"
|
| 993 |
+
},
|
| 994 |
+
"funding": {
|
| 995 |
+
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
| 996 |
+
}
|
| 997 |
+
},
|
| 998 |
+
"node_modules/argparse": {
|
| 999 |
+
"version": "2.0.1",
|
| 1000 |
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
| 1001 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 1002 |
+
"dev": true,
|
| 1003 |
+
"license": "Python-2.0"
|
| 1004 |
+
},
|
| 1005 |
+
"node_modules/balanced-match": {
|
| 1006 |
+
"version": "1.0.2",
|
| 1007 |
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
| 1008 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 1009 |
+
"dev": true,
|
| 1010 |
+
"license": "MIT"
|
| 1011 |
+
},
|
| 1012 |
+
"node_modules/baseline-browser-mapping": {
|
| 1013 |
+
"version": "2.10.20",
|
| 1014 |
+
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.20.tgz",
|
| 1015 |
+
"integrity": "sha512-1AaXxEPfXT+GvTBJFuy4yXVHWJBXa4OdbIebGN/wX5DlsIkU0+wzGnd2lOzokSk51d5LUmqjgBLRLlypLUqInQ==",
|
| 1016 |
+
"dev": true,
|
| 1017 |
+
"license": "Apache-2.0",
|
| 1018 |
+
"bin": {
|
| 1019 |
+
"baseline-browser-mapping": "dist/cli.cjs"
|
| 1020 |
+
},
|
| 1021 |
+
"engines": {
|
| 1022 |
+
"node": ">=6.0.0"
|
| 1023 |
+
}
|
| 1024 |
+
},
|
| 1025 |
+
"node_modules/brace-expansion": {
|
| 1026 |
+
"version": "1.1.14",
|
| 1027 |
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz",
|
| 1028 |
+
"integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==",
|
| 1029 |
+
"dev": true,
|
| 1030 |
+
"license": "MIT",
|
| 1031 |
+
"dependencies": {
|
| 1032 |
+
"balanced-match": "^1.0.0",
|
| 1033 |
+
"concat-map": "0.0.1"
|
| 1034 |
+
}
|
| 1035 |
+
},
|
| 1036 |
+
"node_modules/browserslist": {
|
| 1037 |
+
"version": "4.28.2",
|
| 1038 |
+
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
|
| 1039 |
+
"integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
|
| 1040 |
+
"dev": true,
|
| 1041 |
+
"funding": [
|
| 1042 |
+
{
|
| 1043 |
+
"type": "opencollective",
|
| 1044 |
+
"url": "https://opencollective.com/browserslist"
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "tidelift",
|
| 1048 |
+
"url": "https://tidelift.com/funding/github/npm/browserslist"
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "github",
|
| 1052 |
+
"url": "https://github.com/sponsors/ai"
|
| 1053 |
+
}
|
| 1054 |
+
],
|
| 1055 |
+
"license": "MIT",
|
| 1056 |
+
"peer": true,
|
| 1057 |
+
"dependencies": {
|
| 1058 |
+
"baseline-browser-mapping": "^2.10.12",
|
| 1059 |
+
"caniuse-lite": "^1.0.30001782",
|
| 1060 |
+
"electron-to-chromium": "^1.5.328",
|
| 1061 |
+
"node-releases": "^2.0.36",
|
| 1062 |
+
"update-browserslist-db": "^1.2.3"
|
| 1063 |
+
},
|
| 1064 |
+
"bin": {
|
| 1065 |
+
"browserslist": "cli.js"
|
| 1066 |
+
},
|
| 1067 |
+
"engines": {
|
| 1068 |
+
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
| 1069 |
+
}
|
| 1070 |
+
},
|
| 1071 |
+
"node_modules/callsites": {
|
| 1072 |
+
"version": "3.1.0",
|
| 1073 |
+
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
| 1074 |
+
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
| 1075 |
+
"dev": true,
|
| 1076 |
+
"license": "MIT",
|
| 1077 |
+
"engines": {
|
| 1078 |
+
"node": ">=6"
|
| 1079 |
+
}
|
| 1080 |
+
},
|
| 1081 |
+
"node_modules/caniuse-lite": {
|
| 1082 |
+
"version": "1.0.30001788",
|
| 1083 |
+
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001788.tgz",
|
| 1084 |
+
"integrity": "sha512-6q8HFp+lOQtcf7wBK+uEenxymVWkGKkjFpCvw5W25cmMwEDU45p1xQFBQv8JDlMMry7eNxyBaR+qxgmTUZkIRQ==",
|
| 1085 |
+
"dev": true,
|
| 1086 |
+
"funding": [
|
| 1087 |
+
{
|
| 1088 |
+
"type": "opencollective",
|
| 1089 |
+
"url": "https://opencollective.com/browserslist"
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "tidelift",
|
| 1093 |
+
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "github",
|
| 1097 |
+
"url": "https://github.com/sponsors/ai"
|
| 1098 |
+
}
|
| 1099 |
+
],
|
| 1100 |
+
"license": "CC-BY-4.0"
|
| 1101 |
+
},
|
| 1102 |
+
"node_modules/chalk": {
|
| 1103 |
+
"version": "4.1.2",
|
| 1104 |
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 1105 |
+
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 1106 |
+
"dev": true,
|
| 1107 |
+
"license": "MIT",
|
| 1108 |
+
"dependencies": {
|
| 1109 |
+
"ansi-styles": "^4.1.0",
|
| 1110 |
+
"supports-color": "^7.1.0"
|
| 1111 |
+
},
|
| 1112 |
+
"engines": {
|
| 1113 |
+
"node": ">=10"
|
| 1114 |
+
},
|
| 1115 |
+
"funding": {
|
| 1116 |
+
"url": "https://github.com/chalk/chalk?sponsor=1"
|
| 1117 |
+
}
|
| 1118 |
+
},
|
| 1119 |
+
"node_modules/color-convert": {
|
| 1120 |
+
"version": "2.0.1",
|
| 1121 |
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 1122 |
+
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 1123 |
+
"dev": true,
|
| 1124 |
+
"license": "MIT",
|
| 1125 |
+
"dependencies": {
|
| 1126 |
+
"color-name": "~1.1.4"
|
| 1127 |
+
},
|
| 1128 |
+
"engines": {
|
| 1129 |
+
"node": ">=7.0.0"
|
| 1130 |
+
}
|
| 1131 |
+
},
|
| 1132 |
+
"node_modules/color-name": {
|
| 1133 |
+
"version": "1.1.4",
|
| 1134 |
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 1135 |
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 1136 |
+
"dev": true,
|
| 1137 |
+
"license": "MIT"
|
| 1138 |
+
},
|
| 1139 |
+
"node_modules/concat-map": {
|
| 1140 |
+
"version": "0.0.1",
|
| 1141 |
+
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
| 1142 |
+
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
| 1143 |
+
"dev": true,
|
| 1144 |
+
"license": "MIT"
|
| 1145 |
+
},
|
| 1146 |
+
"node_modules/convert-source-map": {
|
| 1147 |
+
"version": "2.0.0",
|
| 1148 |
+
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
|
| 1149 |
+
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
|
| 1150 |
+
"dev": true,
|
| 1151 |
+
"license": "MIT"
|
| 1152 |
+
},
|
| 1153 |
+
"node_modules/cross-spawn": {
|
| 1154 |
+
"version": "7.0.6",
|
| 1155 |
+
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
| 1156 |
+
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
| 1157 |
+
"dev": true,
|
| 1158 |
+
"license": "MIT",
|
| 1159 |
+
"dependencies": {
|
| 1160 |
+
"path-key": "^3.1.0",
|
| 1161 |
+
"shebang-command": "^2.0.0",
|
| 1162 |
+
"which": "^2.0.1"
|
| 1163 |
+
},
|
| 1164 |
+
"engines": {
|
| 1165 |
+
"node": ">= 8"
|
| 1166 |
+
}
|
| 1167 |
+
},
|
| 1168 |
+
"node_modules/csstype": {
|
| 1169 |
+
"version": "3.2.3",
|
| 1170 |
+
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
|
| 1171 |
+
"integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
|
| 1172 |
+
"dev": true,
|
| 1173 |
+
"license": "MIT"
|
| 1174 |
+
},
|
| 1175 |
+
"node_modules/debug": {
|
| 1176 |
+
"version": "4.4.3",
|
| 1177 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
| 1178 |
+
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
| 1179 |
+
"dev": true,
|
| 1180 |
+
"license": "MIT",
|
| 1181 |
+
"dependencies": {
|
| 1182 |
+
"ms": "^2.1.3"
|
| 1183 |
+
},
|
| 1184 |
+
"engines": {
|
| 1185 |
+
"node": ">=6.0"
|
| 1186 |
+
},
|
| 1187 |
+
"peerDependenciesMeta": {
|
| 1188 |
+
"supports-color": {
|
| 1189 |
+
"optional": true
|
| 1190 |
+
}
|
| 1191 |
+
}
|
| 1192 |
+
},
|
| 1193 |
+
"node_modules/deep-is": {
|
| 1194 |
+
"version": "0.1.4",
|
| 1195 |
+
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
| 1196 |
+
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
|
| 1197 |
+
"dev": true,
|
| 1198 |
+
"license": "MIT"
|
| 1199 |
+
},
|
| 1200 |
+
"node_modules/detect-libc": {
|
| 1201 |
+
"version": "2.1.2",
|
| 1202 |
+
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
|
| 1203 |
+
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
|
| 1204 |
+
"dev": true,
|
| 1205 |
+
"license": "Apache-2.0",
|
| 1206 |
+
"engines": {
|
| 1207 |
+
"node": ">=8"
|
| 1208 |
+
}
|
| 1209 |
+
},
|
| 1210 |
+
"node_modules/electron-to-chromium": {
|
| 1211 |
+
"version": "1.5.343",
|
| 1212 |
+
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.343.tgz",
|
| 1213 |
+
"integrity": "sha512-YHnQ3MXI08icvL9ZKnEBy05F2EQ8ob01UaMOuMbM8l+4UcAq6MPPbBTJBbsBUg3H8JeZNt+O4fjsoWth3p6IFg==",
|
| 1214 |
+
"dev": true,
|
| 1215 |
+
"license": "ISC"
|
| 1216 |
+
},
|
| 1217 |
+
"node_modules/escalade": {
|
| 1218 |
+
"version": "3.2.0",
|
| 1219 |
+
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
|
| 1220 |
+
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
| 1221 |
+
"dev": true,
|
| 1222 |
+
"license": "MIT",
|
| 1223 |
+
"engines": {
|
| 1224 |
+
"node": ">=6"
|
| 1225 |
+
}
|
| 1226 |
+
},
|
| 1227 |
+
"node_modules/escape-string-regexp": {
|
| 1228 |
+
"version": "4.0.0",
|
| 1229 |
+
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
|
| 1230 |
+
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
|
| 1231 |
+
"dev": true,
|
| 1232 |
+
"license": "MIT",
|
| 1233 |
+
"engines": {
|
| 1234 |
+
"node": ">=10"
|
| 1235 |
+
},
|
| 1236 |
+
"funding": {
|
| 1237 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1238 |
+
}
|
| 1239 |
+
},
|
| 1240 |
+
"node_modules/eslint": {
|
| 1241 |
+
"version": "9.39.4",
|
| 1242 |
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz",
|
| 1243 |
+
"integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==",
|
| 1244 |
+
"dev": true,
|
| 1245 |
+
"license": "MIT",
|
| 1246 |
+
"peer": true,
|
| 1247 |
+
"dependencies": {
|
| 1248 |
+
"@eslint-community/eslint-utils": "^4.8.0",
|
| 1249 |
+
"@eslint-community/regexpp": "^4.12.1",
|
| 1250 |
+
"@eslint/config-array": "^0.21.2",
|
| 1251 |
+
"@eslint/config-helpers": "^0.4.2",
|
| 1252 |
+
"@eslint/core": "^0.17.0",
|
| 1253 |
+
"@eslint/eslintrc": "^3.3.5",
|
| 1254 |
+
"@eslint/js": "9.39.4",
|
| 1255 |
+
"@eslint/plugin-kit": "^0.4.1",
|
| 1256 |
+
"@humanfs/node": "^0.16.6",
|
| 1257 |
+
"@humanwhocodes/module-importer": "^1.0.1",
|
| 1258 |
+
"@humanwhocodes/retry": "^0.4.2",
|
| 1259 |
+
"@types/estree": "^1.0.6",
|
| 1260 |
+
"ajv": "^6.14.0",
|
| 1261 |
+
"chalk": "^4.0.0",
|
| 1262 |
+
"cross-spawn": "^7.0.6",
|
| 1263 |
+
"debug": "^4.3.2",
|
| 1264 |
+
"escape-string-regexp": "^4.0.0",
|
| 1265 |
+
"eslint-scope": "^8.4.0",
|
| 1266 |
+
"eslint-visitor-keys": "^4.2.1",
|
| 1267 |
+
"espree": "^10.4.0",
|
| 1268 |
+
"esquery": "^1.5.0",
|
| 1269 |
+
"esutils": "^2.0.2",
|
| 1270 |
+
"fast-deep-equal": "^3.1.3",
|
| 1271 |
+
"file-entry-cache": "^8.0.0",
|
| 1272 |
+
"find-up": "^5.0.0",
|
| 1273 |
+
"glob-parent": "^6.0.2",
|
| 1274 |
+
"ignore": "^5.2.0",
|
| 1275 |
+
"imurmurhash": "^0.1.4",
|
| 1276 |
+
"is-glob": "^4.0.0",
|
| 1277 |
+
"json-stable-stringify-without-jsonify": "^1.0.1",
|
| 1278 |
+
"lodash.merge": "^4.6.2",
|
| 1279 |
+
"minimatch": "^3.1.5",
|
| 1280 |
+
"natural-compare": "^1.4.0",
|
| 1281 |
+
"optionator": "^0.9.3"
|
| 1282 |
+
},
|
| 1283 |
+
"bin": {
|
| 1284 |
+
"eslint": "bin/eslint.js"
|
| 1285 |
+
},
|
| 1286 |
+
"engines": {
|
| 1287 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1288 |
+
},
|
| 1289 |
+
"funding": {
|
| 1290 |
+
"url": "https://eslint.org/donate"
|
| 1291 |
+
},
|
| 1292 |
+
"peerDependencies": {
|
| 1293 |
+
"jiti": "*"
|
| 1294 |
+
},
|
| 1295 |
+
"peerDependenciesMeta": {
|
| 1296 |
+
"jiti": {
|
| 1297 |
+
"optional": true
|
| 1298 |
+
}
|
| 1299 |
+
}
|
| 1300 |
+
},
|
| 1301 |
+
"node_modules/eslint-plugin-react-hooks": {
|
| 1302 |
+
"version": "7.1.1",
|
| 1303 |
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz",
|
| 1304 |
+
"integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",
|
| 1305 |
+
"dev": true,
|
| 1306 |
+
"license": "MIT",
|
| 1307 |
+
"dependencies": {
|
| 1308 |
+
"@babel/core": "^7.24.4",
|
| 1309 |
+
"@babel/parser": "^7.24.4",
|
| 1310 |
+
"hermes-parser": "^0.25.1",
|
| 1311 |
+
"zod": "^3.25.0 || ^4.0.0",
|
| 1312 |
+
"zod-validation-error": "^3.5.0 || ^4.0.0"
|
| 1313 |
+
},
|
| 1314 |
+
"engines": {
|
| 1315 |
+
"node": ">=18"
|
| 1316 |
+
},
|
| 1317 |
+
"peerDependencies": {
|
| 1318 |
+
"eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"
|
| 1319 |
+
}
|
| 1320 |
+
},
|
| 1321 |
+
"node_modules/eslint-plugin-react-refresh": {
|
| 1322 |
+
"version": "0.5.2",
|
| 1323 |
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz",
|
| 1324 |
+
"integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==",
|
| 1325 |
+
"dev": true,
|
| 1326 |
+
"license": "MIT",
|
| 1327 |
+
"peerDependencies": {
|
| 1328 |
+
"eslint": "^9 || ^10"
|
| 1329 |
+
}
|
| 1330 |
+
},
|
| 1331 |
+
"node_modules/eslint-scope": {
|
| 1332 |
+
"version": "8.4.0",
|
| 1333 |
+
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",
|
| 1334 |
+
"integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
|
| 1335 |
+
"dev": true,
|
| 1336 |
+
"license": "BSD-2-Clause",
|
| 1337 |
+
"dependencies": {
|
| 1338 |
+
"esrecurse": "^4.3.0",
|
| 1339 |
+
"estraverse": "^5.2.0"
|
| 1340 |
+
},
|
| 1341 |
+
"engines": {
|
| 1342 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1343 |
+
},
|
| 1344 |
+
"funding": {
|
| 1345 |
+
"url": "https://opencollective.com/eslint"
|
| 1346 |
+
}
|
| 1347 |
+
},
|
| 1348 |
+
"node_modules/eslint-visitor-keys": {
|
| 1349 |
+
"version": "4.2.1",
|
| 1350 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
| 1351 |
+
"integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
|
| 1352 |
+
"dev": true,
|
| 1353 |
+
"license": "Apache-2.0",
|
| 1354 |
+
"engines": {
|
| 1355 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1356 |
+
},
|
| 1357 |
+
"funding": {
|
| 1358 |
+
"url": "https://opencollective.com/eslint"
|
| 1359 |
+
}
|
| 1360 |
+
},
|
| 1361 |
+
"node_modules/espree": {
|
| 1362 |
+
"version": "10.4.0",
|
| 1363 |
+
"resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
|
| 1364 |
+
"integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
|
| 1365 |
+
"dev": true,
|
| 1366 |
+
"license": "BSD-2-Clause",
|
| 1367 |
+
"dependencies": {
|
| 1368 |
+
"acorn": "^8.15.0",
|
| 1369 |
+
"acorn-jsx": "^5.3.2",
|
| 1370 |
+
"eslint-visitor-keys": "^4.2.1"
|
| 1371 |
+
},
|
| 1372 |
+
"engines": {
|
| 1373 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1374 |
+
},
|
| 1375 |
+
"funding": {
|
| 1376 |
+
"url": "https://opencollective.com/eslint"
|
| 1377 |
+
}
|
| 1378 |
+
},
|
| 1379 |
+
"node_modules/esquery": {
|
| 1380 |
+
"version": "1.7.0",
|
| 1381 |
+
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
|
| 1382 |
+
"integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
|
| 1383 |
+
"dev": true,
|
| 1384 |
+
"license": "BSD-3-Clause",
|
| 1385 |
+
"dependencies": {
|
| 1386 |
+
"estraverse": "^5.1.0"
|
| 1387 |
+
},
|
| 1388 |
+
"engines": {
|
| 1389 |
+
"node": ">=0.10"
|
| 1390 |
+
}
|
| 1391 |
+
},
|
| 1392 |
+
"node_modules/esrecurse": {
|
| 1393 |
+
"version": "4.3.0",
|
| 1394 |
+
"resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
|
| 1395 |
+
"integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
|
| 1396 |
+
"dev": true,
|
| 1397 |
+
"license": "BSD-2-Clause",
|
| 1398 |
+
"dependencies": {
|
| 1399 |
+
"estraverse": "^5.2.0"
|
| 1400 |
+
},
|
| 1401 |
+
"engines": {
|
| 1402 |
+
"node": ">=4.0"
|
| 1403 |
+
}
|
| 1404 |
+
},
|
| 1405 |
+
"node_modules/estraverse": {
|
| 1406 |
+
"version": "5.3.0",
|
| 1407 |
+
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 1408 |
+
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 1409 |
+
"dev": true,
|
| 1410 |
+
"license": "BSD-2-Clause",
|
| 1411 |
+
"engines": {
|
| 1412 |
+
"node": ">=4.0"
|
| 1413 |
+
}
|
| 1414 |
+
},
|
| 1415 |
+
"node_modules/esutils": {
|
| 1416 |
+
"version": "2.0.3",
|
| 1417 |
+
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 1418 |
+
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 1419 |
+
"dev": true,
|
| 1420 |
+
"license": "BSD-2-Clause",
|
| 1421 |
+
"engines": {
|
| 1422 |
+
"node": ">=0.10.0"
|
| 1423 |
+
}
|
| 1424 |
+
},
|
| 1425 |
+
"node_modules/fast-deep-equal": {
|
| 1426 |
+
"version": "3.1.3",
|
| 1427 |
+
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
|
| 1428 |
+
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
|
| 1429 |
+
"dev": true,
|
| 1430 |
+
"license": "MIT"
|
| 1431 |
+
},
|
| 1432 |
+
"node_modules/fast-json-stable-stringify": {
|
| 1433 |
+
"version": "2.1.0",
|
| 1434 |
+
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
| 1435 |
+
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
|
| 1436 |
+
"dev": true,
|
| 1437 |
+
"license": "MIT"
|
| 1438 |
+
},
|
| 1439 |
+
"node_modules/fast-levenshtein": {
|
| 1440 |
+
"version": "2.0.6",
|
| 1441 |
+
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
|
| 1442 |
+
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
| 1443 |
+
"dev": true,
|
| 1444 |
+
"license": "MIT"
|
| 1445 |
+
},
|
| 1446 |
+
"node_modules/fdir": {
|
| 1447 |
+
"version": "6.5.0",
|
| 1448 |
+
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
| 1449 |
+
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
|
| 1450 |
+
"dev": true,
|
| 1451 |
+
"license": "MIT",
|
| 1452 |
+
"engines": {
|
| 1453 |
+
"node": ">=12.0.0"
|
| 1454 |
+
},
|
| 1455 |
+
"peerDependencies": {
|
| 1456 |
+
"picomatch": "^3 || ^4"
|
| 1457 |
+
},
|
| 1458 |
+
"peerDependenciesMeta": {
|
| 1459 |
+
"picomatch": {
|
| 1460 |
+
"optional": true
|
| 1461 |
+
}
|
| 1462 |
+
}
|
| 1463 |
+
},
|
| 1464 |
+
"node_modules/file-entry-cache": {
|
| 1465 |
+
"version": "8.0.0",
|
| 1466 |
+
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
|
| 1467 |
+
"integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
|
| 1468 |
+
"dev": true,
|
| 1469 |
+
"license": "MIT",
|
| 1470 |
+
"dependencies": {
|
| 1471 |
+
"flat-cache": "^4.0.0"
|
| 1472 |
+
},
|
| 1473 |
+
"engines": {
|
| 1474 |
+
"node": ">=16.0.0"
|
| 1475 |
+
}
|
| 1476 |
+
},
|
| 1477 |
+
"node_modules/find-up": {
|
| 1478 |
+
"version": "5.0.0",
|
| 1479 |
+
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
|
| 1480 |
+
"integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
|
| 1481 |
+
"dev": true,
|
| 1482 |
+
"license": "MIT",
|
| 1483 |
+
"dependencies": {
|
| 1484 |
+
"locate-path": "^6.0.0",
|
| 1485 |
+
"path-exists": "^4.0.0"
|
| 1486 |
+
},
|
| 1487 |
+
"engines": {
|
| 1488 |
+
"node": ">=10"
|
| 1489 |
+
},
|
| 1490 |
+
"funding": {
|
| 1491 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1492 |
+
}
|
| 1493 |
+
},
|
| 1494 |
+
"node_modules/flat-cache": {
|
| 1495 |
+
"version": "4.0.1",
|
| 1496 |
+
"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
|
| 1497 |
+
"integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
|
| 1498 |
+
"dev": true,
|
| 1499 |
+
"license": "MIT",
|
| 1500 |
+
"dependencies": {
|
| 1501 |
+
"flatted": "^3.2.9",
|
| 1502 |
+
"keyv": "^4.5.4"
|
| 1503 |
+
},
|
| 1504 |
+
"engines": {
|
| 1505 |
+
"node": ">=16"
|
| 1506 |
+
}
|
| 1507 |
+
},
|
| 1508 |
+
"node_modules/flatted": {
|
| 1509 |
+
"version": "3.4.2",
|
| 1510 |
+
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
|
| 1511 |
+
"integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
|
| 1512 |
+
"dev": true,
|
| 1513 |
+
"license": "ISC"
|
| 1514 |
+
},
|
| 1515 |
+
"node_modules/fsevents": {
|
| 1516 |
+
"version": "2.3.3",
|
| 1517 |
+
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
| 1518 |
+
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
| 1519 |
+
"dev": true,
|
| 1520 |
+
"hasInstallScript": true,
|
| 1521 |
+
"license": "MIT",
|
| 1522 |
+
"optional": true,
|
| 1523 |
+
"os": [
|
| 1524 |
+
"darwin"
|
| 1525 |
+
],
|
| 1526 |
+
"engines": {
|
| 1527 |
+
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
| 1528 |
+
}
|
| 1529 |
+
},
|
| 1530 |
+
"node_modules/gensync": {
|
| 1531 |
+
"version": "1.0.0-beta.2",
|
| 1532 |
+
"resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
|
| 1533 |
+
"integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
|
| 1534 |
+
"dev": true,
|
| 1535 |
+
"license": "MIT",
|
| 1536 |
+
"engines": {
|
| 1537 |
+
"node": ">=6.9.0"
|
| 1538 |
+
}
|
| 1539 |
+
},
|
| 1540 |
+
"node_modules/glob-parent": {
|
| 1541 |
+
"version": "6.0.2",
|
| 1542 |
+
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
|
| 1543 |
+
"integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
|
| 1544 |
+
"dev": true,
|
| 1545 |
+
"license": "ISC",
|
| 1546 |
+
"dependencies": {
|
| 1547 |
+
"is-glob": "^4.0.3"
|
| 1548 |
+
},
|
| 1549 |
+
"engines": {
|
| 1550 |
+
"node": ">=10.13.0"
|
| 1551 |
+
}
|
| 1552 |
+
},
|
| 1553 |
+
"node_modules/globals": {
|
| 1554 |
+
"version": "17.5.0",
|
| 1555 |
+
"resolved": "https://registry.npmjs.org/globals/-/globals-17.5.0.tgz",
|
| 1556 |
+
"integrity": "sha512-qoV+HK2yFl/366t2/Cb3+xxPUo5BuMynomoDmiaZBIdbs+0pYbjfZU+twLhGKp4uCZ/+NbtpVepH5bGCxRyy2g==",
|
| 1557 |
+
"dev": true,
|
| 1558 |
+
"license": "MIT",
|
| 1559 |
+
"engines": {
|
| 1560 |
+
"node": ">=18"
|
| 1561 |
+
},
|
| 1562 |
+
"funding": {
|
| 1563 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1564 |
+
}
|
| 1565 |
+
},
|
| 1566 |
+
"node_modules/has-flag": {
|
| 1567 |
+
"version": "4.0.0",
|
| 1568 |
+
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 1569 |
+
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 1570 |
+
"dev": true,
|
| 1571 |
+
"license": "MIT",
|
| 1572 |
+
"engines": {
|
| 1573 |
+
"node": ">=8"
|
| 1574 |
+
}
|
| 1575 |
+
},
|
| 1576 |
+
"node_modules/hermes-estree": {
|
| 1577 |
+
"version": "0.25.1",
|
| 1578 |
+
"resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",
|
| 1579 |
+
"integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",
|
| 1580 |
+
"dev": true,
|
| 1581 |
+
"license": "MIT"
|
| 1582 |
+
},
|
| 1583 |
+
"node_modules/hermes-parser": {
|
| 1584 |
+
"version": "0.25.1",
|
| 1585 |
+
"resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",
|
| 1586 |
+
"integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",
|
| 1587 |
+
"dev": true,
|
| 1588 |
+
"license": "MIT",
|
| 1589 |
+
"dependencies": {
|
| 1590 |
+
"hermes-estree": "0.25.1"
|
| 1591 |
+
}
|
| 1592 |
+
},
|
| 1593 |
+
"node_modules/ignore": {
|
| 1594 |
+
"version": "5.3.2",
|
| 1595 |
+
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
| 1596 |
+
"integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
|
| 1597 |
+
"dev": true,
|
| 1598 |
+
"license": "MIT",
|
| 1599 |
+
"engines": {
|
| 1600 |
+
"node": ">= 4"
|
| 1601 |
+
}
|
| 1602 |
+
},
|
| 1603 |
+
"node_modules/import-fresh": {
|
| 1604 |
+
"version": "3.3.1",
|
| 1605 |
+
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
|
| 1606 |
+
"integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
|
| 1607 |
+
"dev": true,
|
| 1608 |
+
"license": "MIT",
|
| 1609 |
+
"dependencies": {
|
| 1610 |
+
"parent-module": "^1.0.0",
|
| 1611 |
+
"resolve-from": "^4.0.0"
|
| 1612 |
+
},
|
| 1613 |
+
"engines": {
|
| 1614 |
+
"node": ">=6"
|
| 1615 |
+
},
|
| 1616 |
+
"funding": {
|
| 1617 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1618 |
+
}
|
| 1619 |
+
},
|
| 1620 |
+
"node_modules/imurmurhash": {
|
| 1621 |
+
"version": "0.1.4",
|
| 1622 |
+
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
|
| 1623 |
+
"integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
|
| 1624 |
+
"dev": true,
|
| 1625 |
+
"license": "MIT",
|
| 1626 |
+
"engines": {
|
| 1627 |
+
"node": ">=0.8.19"
|
| 1628 |
+
}
|
| 1629 |
+
},
|
| 1630 |
+
"node_modules/is-extglob": {
|
| 1631 |
+
"version": "2.1.1",
|
| 1632 |
+
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
| 1633 |
+
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
| 1634 |
+
"dev": true,
|
| 1635 |
+
"license": "MIT",
|
| 1636 |
+
"engines": {
|
| 1637 |
+
"node": ">=0.10.0"
|
| 1638 |
+
}
|
| 1639 |
+
},
|
| 1640 |
+
"node_modules/is-glob": {
|
| 1641 |
+
"version": "4.0.3",
|
| 1642 |
+
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
| 1643 |
+
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
|
| 1644 |
+
"dev": true,
|
| 1645 |
+
"license": "MIT",
|
| 1646 |
+
"dependencies": {
|
| 1647 |
+
"is-extglob": "^2.1.1"
|
| 1648 |
+
},
|
| 1649 |
+
"engines": {
|
| 1650 |
+
"node": ">=0.10.0"
|
| 1651 |
+
}
|
| 1652 |
+
},
|
| 1653 |
+
"node_modules/isexe": {
|
| 1654 |
+
"version": "2.0.0",
|
| 1655 |
+
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
|
| 1656 |
+
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
|
| 1657 |
+
"dev": true,
|
| 1658 |
+
"license": "ISC"
|
| 1659 |
+
},
|
| 1660 |
+
"node_modules/js-tokens": {
|
| 1661 |
+
"version": "4.0.0",
|
| 1662 |
+
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
| 1663 |
+
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
| 1664 |
+
"dev": true,
|
| 1665 |
+
"license": "MIT"
|
| 1666 |
+
},
|
| 1667 |
+
"node_modules/js-yaml": {
|
| 1668 |
+
"version": "4.1.1",
|
| 1669 |
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
|
| 1670 |
+
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
|
| 1671 |
+
"dev": true,
|
| 1672 |
+
"license": "MIT",
|
| 1673 |
+
"dependencies": {
|
| 1674 |
+
"argparse": "^2.0.1"
|
| 1675 |
+
},
|
| 1676 |
+
"bin": {
|
| 1677 |
+
"js-yaml": "bin/js-yaml.js"
|
| 1678 |
+
}
|
| 1679 |
+
},
|
| 1680 |
+
"node_modules/jsesc": {
|
| 1681 |
+
"version": "3.1.0",
|
| 1682 |
+
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
|
| 1683 |
+
"integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
|
| 1684 |
+
"dev": true,
|
| 1685 |
+
"license": "MIT",
|
| 1686 |
+
"bin": {
|
| 1687 |
+
"jsesc": "bin/jsesc"
|
| 1688 |
+
},
|
| 1689 |
+
"engines": {
|
| 1690 |
+
"node": ">=6"
|
| 1691 |
+
}
|
| 1692 |
+
},
|
| 1693 |
+
"node_modules/json-buffer": {
|
| 1694 |
+
"version": "3.0.1",
|
| 1695 |
+
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
|
| 1696 |
+
"integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
|
| 1697 |
+
"dev": true,
|
| 1698 |
+
"license": "MIT"
|
| 1699 |
+
},
|
| 1700 |
+
"node_modules/json-schema-traverse": {
|
| 1701 |
+
"version": "0.4.1",
|
| 1702 |
+
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
| 1703 |
+
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
|
| 1704 |
+
"dev": true,
|
| 1705 |
+
"license": "MIT"
|
| 1706 |
+
},
|
| 1707 |
+
"node_modules/json-stable-stringify-without-jsonify": {
|
| 1708 |
+
"version": "1.0.1",
|
| 1709 |
+
"resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
|
| 1710 |
+
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
|
| 1711 |
+
"dev": true,
|
| 1712 |
+
"license": "MIT"
|
| 1713 |
+
},
|
| 1714 |
+
"node_modules/json5": {
|
| 1715 |
+
"version": "2.2.3",
|
| 1716 |
+
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
| 1717 |
+
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
| 1718 |
+
"dev": true,
|
| 1719 |
+
"license": "MIT",
|
| 1720 |
+
"bin": {
|
| 1721 |
+
"json5": "lib/cli.js"
|
| 1722 |
+
},
|
| 1723 |
+
"engines": {
|
| 1724 |
+
"node": ">=6"
|
| 1725 |
+
}
|
| 1726 |
+
},
|
| 1727 |
+
"node_modules/keyv": {
|
| 1728 |
+
"version": "4.5.4",
|
| 1729 |
+
"resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
|
| 1730 |
+
"integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
|
| 1731 |
+
"dev": true,
|
| 1732 |
+
"license": "MIT",
|
| 1733 |
+
"dependencies": {
|
| 1734 |
+
"json-buffer": "3.0.1"
|
| 1735 |
+
}
|
| 1736 |
+
},
|
| 1737 |
+
"node_modules/levn": {
|
| 1738 |
+
"version": "0.4.1",
|
| 1739 |
+
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
|
| 1740 |
+
"integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
|
| 1741 |
+
"dev": true,
|
| 1742 |
+
"license": "MIT",
|
| 1743 |
+
"dependencies": {
|
| 1744 |
+
"prelude-ls": "^1.2.1",
|
| 1745 |
+
"type-check": "~0.4.0"
|
| 1746 |
+
},
|
| 1747 |
+
"engines": {
|
| 1748 |
+
"node": ">= 0.8.0"
|
| 1749 |
+
}
|
| 1750 |
+
},
|
| 1751 |
+
"node_modules/lightningcss": {
|
| 1752 |
+
"version": "1.32.0",
|
| 1753 |
+
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
|
| 1754 |
+
"integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
|
| 1755 |
+
"dev": true,
|
| 1756 |
+
"license": "MPL-2.0",
|
| 1757 |
+
"dependencies": {
|
| 1758 |
+
"detect-libc": "^2.0.3"
|
| 1759 |
+
},
|
| 1760 |
+
"engines": {
|
| 1761 |
+
"node": ">= 12.0.0"
|
| 1762 |
+
},
|
| 1763 |
+
"funding": {
|
| 1764 |
+
"type": "opencollective",
|
| 1765 |
+
"url": "https://opencollective.com/parcel"
|
| 1766 |
+
},
|
| 1767 |
+
"optionalDependencies": {
|
| 1768 |
+
"lightningcss-android-arm64": "1.32.0",
|
| 1769 |
+
"lightningcss-darwin-arm64": "1.32.0",
|
| 1770 |
+
"lightningcss-darwin-x64": "1.32.0",
|
| 1771 |
+
"lightningcss-freebsd-x64": "1.32.0",
|
| 1772 |
+
"lightningcss-linux-arm-gnueabihf": "1.32.0",
|
| 1773 |
+
"lightningcss-linux-arm64-gnu": "1.32.0",
|
| 1774 |
+
"lightningcss-linux-arm64-musl": "1.32.0",
|
| 1775 |
+
"lightningcss-linux-x64-gnu": "1.32.0",
|
| 1776 |
+
"lightningcss-linux-x64-musl": "1.32.0",
|
| 1777 |
+
"lightningcss-win32-arm64-msvc": "1.32.0",
|
| 1778 |
+
"lightningcss-win32-x64-msvc": "1.32.0"
|
| 1779 |
+
}
|
| 1780 |
+
},
|
| 1781 |
+
"node_modules/lightningcss-android-arm64": {
|
| 1782 |
+
"version": "1.32.0",
|
| 1783 |
+
"resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
|
| 1784 |
+
"integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
|
| 1785 |
+
"cpu": [
|
| 1786 |
+
"arm64"
|
| 1787 |
+
],
|
| 1788 |
+
"dev": true,
|
| 1789 |
+
"license": "MPL-2.0",
|
| 1790 |
+
"optional": true,
|
| 1791 |
+
"os": [
|
| 1792 |
+
"android"
|
| 1793 |
+
],
|
| 1794 |
+
"engines": {
|
| 1795 |
+
"node": ">= 12.0.0"
|
| 1796 |
+
},
|
| 1797 |
+
"funding": {
|
| 1798 |
+
"type": "opencollective",
|
| 1799 |
+
"url": "https://opencollective.com/parcel"
|
| 1800 |
+
}
|
| 1801 |
+
},
|
| 1802 |
+
"node_modules/lightningcss-darwin-arm64": {
|
| 1803 |
+
"version": "1.32.0",
|
| 1804 |
+
"resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
|
| 1805 |
+
"integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
|
| 1806 |
+
"cpu": [
|
| 1807 |
+
"arm64"
|
| 1808 |
+
],
|
| 1809 |
+
"dev": true,
|
| 1810 |
+
"license": "MPL-2.0",
|
| 1811 |
+
"optional": true,
|
| 1812 |
+
"os": [
|
| 1813 |
+
"darwin"
|
| 1814 |
+
],
|
| 1815 |
+
"engines": {
|
| 1816 |
+
"node": ">= 12.0.0"
|
| 1817 |
+
},
|
| 1818 |
+
"funding": {
|
| 1819 |
+
"type": "opencollective",
|
| 1820 |
+
"url": "https://opencollective.com/parcel"
|
| 1821 |
+
}
|
| 1822 |
+
},
|
| 1823 |
+
"node_modules/lightningcss-darwin-x64": {
|
| 1824 |
+
"version": "1.32.0",
|
| 1825 |
+
"resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
|
| 1826 |
+
"integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
|
| 1827 |
+
"cpu": [
|
| 1828 |
+
"x64"
|
| 1829 |
+
],
|
| 1830 |
+
"dev": true,
|
| 1831 |
+
"license": "MPL-2.0",
|
| 1832 |
+
"optional": true,
|
| 1833 |
+
"os": [
|
| 1834 |
+
"darwin"
|
| 1835 |
+
],
|
| 1836 |
+
"engines": {
|
| 1837 |
+
"node": ">= 12.0.0"
|
| 1838 |
+
},
|
| 1839 |
+
"funding": {
|
| 1840 |
+
"type": "opencollective",
|
| 1841 |
+
"url": "https://opencollective.com/parcel"
|
| 1842 |
+
}
|
| 1843 |
+
},
|
| 1844 |
+
"node_modules/lightningcss-freebsd-x64": {
|
| 1845 |
+
"version": "1.32.0",
|
| 1846 |
+
"resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
|
| 1847 |
+
"integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
|
| 1848 |
+
"cpu": [
|
| 1849 |
+
"x64"
|
| 1850 |
+
],
|
| 1851 |
+
"dev": true,
|
| 1852 |
+
"license": "MPL-2.0",
|
| 1853 |
+
"optional": true,
|
| 1854 |
+
"os": [
|
| 1855 |
+
"freebsd"
|
| 1856 |
+
],
|
| 1857 |
+
"engines": {
|
| 1858 |
+
"node": ">= 12.0.0"
|
| 1859 |
+
},
|
| 1860 |
+
"funding": {
|
| 1861 |
+
"type": "opencollective",
|
| 1862 |
+
"url": "https://opencollective.com/parcel"
|
| 1863 |
+
}
|
| 1864 |
+
},
|
| 1865 |
+
"node_modules/lightningcss-linux-arm-gnueabihf": {
|
| 1866 |
+
"version": "1.32.0",
|
| 1867 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
|
| 1868 |
+
"integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
|
| 1869 |
+
"cpu": [
|
| 1870 |
+
"arm"
|
| 1871 |
+
],
|
| 1872 |
+
"dev": true,
|
| 1873 |
+
"license": "MPL-2.0",
|
| 1874 |
+
"optional": true,
|
| 1875 |
+
"os": [
|
| 1876 |
+
"linux"
|
| 1877 |
+
],
|
| 1878 |
+
"engines": {
|
| 1879 |
+
"node": ">= 12.0.0"
|
| 1880 |
+
},
|
| 1881 |
+
"funding": {
|
| 1882 |
+
"type": "opencollective",
|
| 1883 |
+
"url": "https://opencollective.com/parcel"
|
| 1884 |
+
}
|
| 1885 |
+
},
|
| 1886 |
+
"node_modules/lightningcss-linux-arm64-gnu": {
|
| 1887 |
+
"version": "1.32.0",
|
| 1888 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
|
| 1889 |
+
"integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
|
| 1890 |
+
"cpu": [
|
| 1891 |
+
"arm64"
|
| 1892 |
+
],
|
| 1893 |
+
"dev": true,
|
| 1894 |
+
"license": "MPL-2.0",
|
| 1895 |
+
"optional": true,
|
| 1896 |
+
"os": [
|
| 1897 |
+
"linux"
|
| 1898 |
+
],
|
| 1899 |
+
"engines": {
|
| 1900 |
+
"node": ">= 12.0.0"
|
| 1901 |
+
},
|
| 1902 |
+
"funding": {
|
| 1903 |
+
"type": "opencollective",
|
| 1904 |
+
"url": "https://opencollective.com/parcel"
|
| 1905 |
+
}
|
| 1906 |
+
},
|
| 1907 |
+
"node_modules/lightningcss-linux-arm64-musl": {
|
| 1908 |
+
"version": "1.32.0",
|
| 1909 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
|
| 1910 |
+
"integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
|
| 1911 |
+
"cpu": [
|
| 1912 |
+
"arm64"
|
| 1913 |
+
],
|
| 1914 |
+
"dev": true,
|
| 1915 |
+
"license": "MPL-2.0",
|
| 1916 |
+
"optional": true,
|
| 1917 |
+
"os": [
|
| 1918 |
+
"linux"
|
| 1919 |
+
],
|
| 1920 |
+
"engines": {
|
| 1921 |
+
"node": ">= 12.0.0"
|
| 1922 |
+
},
|
| 1923 |
+
"funding": {
|
| 1924 |
+
"type": "opencollective",
|
| 1925 |
+
"url": "https://opencollective.com/parcel"
|
| 1926 |
+
}
|
| 1927 |
+
},
|
| 1928 |
+
"node_modules/lightningcss-linux-x64-gnu": {
|
| 1929 |
+
"version": "1.32.0",
|
| 1930 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
|
| 1931 |
+
"integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
|
| 1932 |
+
"cpu": [
|
| 1933 |
+
"x64"
|
| 1934 |
+
],
|
| 1935 |
+
"dev": true,
|
| 1936 |
+
"license": "MPL-2.0",
|
| 1937 |
+
"optional": true,
|
| 1938 |
+
"os": [
|
| 1939 |
+
"linux"
|
| 1940 |
+
],
|
| 1941 |
+
"engines": {
|
| 1942 |
+
"node": ">= 12.0.0"
|
| 1943 |
+
},
|
| 1944 |
+
"funding": {
|
| 1945 |
+
"type": "opencollective",
|
| 1946 |
+
"url": "https://opencollective.com/parcel"
|
| 1947 |
+
}
|
| 1948 |
+
},
|
| 1949 |
+
"node_modules/lightningcss-linux-x64-musl": {
|
| 1950 |
+
"version": "1.32.0",
|
| 1951 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
|
| 1952 |
+
"integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
|
| 1953 |
+
"cpu": [
|
| 1954 |
+
"x64"
|
| 1955 |
+
],
|
| 1956 |
+
"dev": true,
|
| 1957 |
+
"license": "MPL-2.0",
|
| 1958 |
+
"optional": true,
|
| 1959 |
+
"os": [
|
| 1960 |
+
"linux"
|
| 1961 |
+
],
|
| 1962 |
+
"engines": {
|
| 1963 |
+
"node": ">= 12.0.0"
|
| 1964 |
+
},
|
| 1965 |
+
"funding": {
|
| 1966 |
+
"type": "opencollective",
|
| 1967 |
+
"url": "https://opencollective.com/parcel"
|
| 1968 |
+
}
|
| 1969 |
+
},
|
| 1970 |
+
"node_modules/lightningcss-win32-arm64-msvc": {
|
| 1971 |
+
"version": "1.32.0",
|
| 1972 |
+
"resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
|
| 1973 |
+
"integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
|
| 1974 |
+
"cpu": [
|
| 1975 |
+
"arm64"
|
| 1976 |
+
],
|
| 1977 |
+
"dev": true,
|
| 1978 |
+
"license": "MPL-2.0",
|
| 1979 |
+
"optional": true,
|
| 1980 |
+
"os": [
|
| 1981 |
+
"win32"
|
| 1982 |
+
],
|
| 1983 |
+
"engines": {
|
| 1984 |
+
"node": ">= 12.0.0"
|
| 1985 |
+
},
|
| 1986 |
+
"funding": {
|
| 1987 |
+
"type": "opencollective",
|
| 1988 |
+
"url": "https://opencollective.com/parcel"
|
| 1989 |
+
}
|
| 1990 |
+
},
|
| 1991 |
+
"node_modules/lightningcss-win32-x64-msvc": {
|
| 1992 |
+
"version": "1.32.0",
|
| 1993 |
+
"resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
|
| 1994 |
+
"integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
|
| 1995 |
+
"cpu": [
|
| 1996 |
+
"x64"
|
| 1997 |
+
],
|
| 1998 |
+
"dev": true,
|
| 1999 |
+
"license": "MPL-2.0",
|
| 2000 |
+
"optional": true,
|
| 2001 |
+
"os": [
|
| 2002 |
+
"win32"
|
| 2003 |
+
],
|
| 2004 |
+
"engines": {
|
| 2005 |
+
"node": ">= 12.0.0"
|
| 2006 |
+
},
|
| 2007 |
+
"funding": {
|
| 2008 |
+
"type": "opencollective",
|
| 2009 |
+
"url": "https://opencollective.com/parcel"
|
| 2010 |
+
}
|
| 2011 |
+
},
|
| 2012 |
+
"node_modules/locate-path": {
|
| 2013 |
+
"version": "6.0.0",
|
| 2014 |
+
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
|
| 2015 |
+
"integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
|
| 2016 |
+
"dev": true,
|
| 2017 |
+
"license": "MIT",
|
| 2018 |
+
"dependencies": {
|
| 2019 |
+
"p-locate": "^5.0.0"
|
| 2020 |
+
},
|
| 2021 |
+
"engines": {
|
| 2022 |
+
"node": ">=10"
|
| 2023 |
+
},
|
| 2024 |
+
"funding": {
|
| 2025 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2026 |
+
}
|
| 2027 |
+
},
|
| 2028 |
+
"node_modules/lodash.merge": {
|
| 2029 |
+
"version": "4.6.2",
|
| 2030 |
+
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
|
| 2031 |
+
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
| 2032 |
+
"dev": true,
|
| 2033 |
+
"license": "MIT"
|
| 2034 |
+
},
|
| 2035 |
+
"node_modules/lru-cache": {
|
| 2036 |
+
"version": "5.1.1",
|
| 2037 |
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
|
| 2038 |
+
"integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
|
| 2039 |
+
"dev": true,
|
| 2040 |
+
"license": "ISC",
|
| 2041 |
+
"dependencies": {
|
| 2042 |
+
"yallist": "^3.0.2"
|
| 2043 |
+
}
|
| 2044 |
+
},
|
| 2045 |
+
"node_modules/minimatch": {
|
| 2046 |
+
"version": "3.1.5",
|
| 2047 |
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
|
| 2048 |
+
"integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
|
| 2049 |
+
"dev": true,
|
| 2050 |
+
"license": "ISC",
|
| 2051 |
+
"dependencies": {
|
| 2052 |
+
"brace-expansion": "^1.1.7"
|
| 2053 |
+
},
|
| 2054 |
+
"engines": {
|
| 2055 |
+
"node": "*"
|
| 2056 |
+
}
|
| 2057 |
+
},
|
| 2058 |
+
"node_modules/ms": {
|
| 2059 |
+
"version": "2.1.3",
|
| 2060 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 2061 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 2062 |
+
"dev": true,
|
| 2063 |
+
"license": "MIT"
|
| 2064 |
+
},
|
| 2065 |
+
"node_modules/nanoid": {
|
| 2066 |
+
"version": "3.3.11",
|
| 2067 |
+
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
|
| 2068 |
+
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
|
| 2069 |
+
"dev": true,
|
| 2070 |
+
"funding": [
|
| 2071 |
+
{
|
| 2072 |
+
"type": "github",
|
| 2073 |
+
"url": "https://github.com/sponsors/ai"
|
| 2074 |
+
}
|
| 2075 |
+
],
|
| 2076 |
+
"license": "MIT",
|
| 2077 |
+
"bin": {
|
| 2078 |
+
"nanoid": "bin/nanoid.cjs"
|
| 2079 |
+
},
|
| 2080 |
+
"engines": {
|
| 2081 |
+
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
| 2082 |
+
}
|
| 2083 |
+
},
|
| 2084 |
+
"node_modules/natural-compare": {
|
| 2085 |
+
"version": "1.4.0",
|
| 2086 |
+
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
|
| 2087 |
+
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
|
| 2088 |
+
"dev": true,
|
| 2089 |
+
"license": "MIT"
|
| 2090 |
+
},
|
| 2091 |
+
"node_modules/node-releases": {
|
| 2092 |
+
"version": "2.0.38",
|
| 2093 |
+
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz",
|
| 2094 |
+
"integrity": "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==",
|
| 2095 |
+
"dev": true,
|
| 2096 |
+
"license": "MIT"
|
| 2097 |
+
},
|
| 2098 |
+
"node_modules/optionator": {
|
| 2099 |
+
"version": "0.9.4",
|
| 2100 |
+
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
|
| 2101 |
+
"integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
|
| 2102 |
+
"dev": true,
|
| 2103 |
+
"license": "MIT",
|
| 2104 |
+
"dependencies": {
|
| 2105 |
+
"deep-is": "^0.1.3",
|
| 2106 |
+
"fast-levenshtein": "^2.0.6",
|
| 2107 |
+
"levn": "^0.4.1",
|
| 2108 |
+
"prelude-ls": "^1.2.1",
|
| 2109 |
+
"type-check": "^0.4.0",
|
| 2110 |
+
"word-wrap": "^1.2.5"
|
| 2111 |
+
},
|
| 2112 |
+
"engines": {
|
| 2113 |
+
"node": ">= 0.8.0"
|
| 2114 |
+
}
|
| 2115 |
+
},
|
| 2116 |
+
"node_modules/p-limit": {
|
| 2117 |
+
"version": "3.1.0",
|
| 2118 |
+
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
|
| 2119 |
+
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
|
| 2120 |
+
"dev": true,
|
| 2121 |
+
"license": "MIT",
|
| 2122 |
+
"dependencies": {
|
| 2123 |
+
"yocto-queue": "^0.1.0"
|
| 2124 |
+
},
|
| 2125 |
+
"engines": {
|
| 2126 |
+
"node": ">=10"
|
| 2127 |
+
},
|
| 2128 |
+
"funding": {
|
| 2129 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2130 |
+
}
|
| 2131 |
+
},
|
| 2132 |
+
"node_modules/p-locate": {
|
| 2133 |
+
"version": "5.0.0",
|
| 2134 |
+
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
|
| 2135 |
+
"integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
|
| 2136 |
+
"dev": true,
|
| 2137 |
+
"license": "MIT",
|
| 2138 |
+
"dependencies": {
|
| 2139 |
+
"p-limit": "^3.0.2"
|
| 2140 |
+
},
|
| 2141 |
+
"engines": {
|
| 2142 |
+
"node": ">=10"
|
| 2143 |
+
},
|
| 2144 |
+
"funding": {
|
| 2145 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2146 |
+
}
|
| 2147 |
+
},
|
| 2148 |
+
"node_modules/parent-module": {
|
| 2149 |
+
"version": "1.0.1",
|
| 2150 |
+
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
| 2151 |
+
"integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
|
| 2152 |
+
"dev": true,
|
| 2153 |
+
"license": "MIT",
|
| 2154 |
+
"dependencies": {
|
| 2155 |
+
"callsites": "^3.0.0"
|
| 2156 |
+
},
|
| 2157 |
+
"engines": {
|
| 2158 |
+
"node": ">=6"
|
| 2159 |
+
}
|
| 2160 |
+
},
|
| 2161 |
+
"node_modules/path-exists": {
|
| 2162 |
+
"version": "4.0.0",
|
| 2163 |
+
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
| 2164 |
+
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
| 2165 |
+
"dev": true,
|
| 2166 |
+
"license": "MIT",
|
| 2167 |
+
"engines": {
|
| 2168 |
+
"node": ">=8"
|
| 2169 |
+
}
|
| 2170 |
+
},
|
| 2171 |
+
"node_modules/path-key": {
|
| 2172 |
+
"version": "3.1.1",
|
| 2173 |
+
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
|
| 2174 |
+
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
|
| 2175 |
+
"dev": true,
|
| 2176 |
+
"license": "MIT",
|
| 2177 |
+
"engines": {
|
| 2178 |
+
"node": ">=8"
|
| 2179 |
+
}
|
| 2180 |
+
},
|
| 2181 |
+
"node_modules/picocolors": {
|
| 2182 |
+
"version": "1.1.1",
|
| 2183 |
+
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
| 2184 |
+
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
| 2185 |
+
"dev": true,
|
| 2186 |
+
"license": "ISC"
|
| 2187 |
+
},
|
| 2188 |
+
"node_modules/picomatch": {
|
| 2189 |
+
"version": "4.0.4",
|
| 2190 |
+
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
|
| 2191 |
+
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
|
| 2192 |
+
"dev": true,
|
| 2193 |
+
"license": "MIT",
|
| 2194 |
+
"peer": true,
|
| 2195 |
+
"engines": {
|
| 2196 |
+
"node": ">=12"
|
| 2197 |
+
},
|
| 2198 |
+
"funding": {
|
| 2199 |
+
"url": "https://github.com/sponsors/jonschlinkert"
|
| 2200 |
+
}
|
| 2201 |
+
},
|
| 2202 |
+
"node_modules/postcss": {
|
| 2203 |
+
"version": "8.5.10",
|
| 2204 |
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.10.tgz",
|
| 2205 |
+
"integrity": "sha512-pMMHxBOZKFU6HgAZ4eyGnwXF/EvPGGqUr0MnZ5+99485wwW41kW91A4LOGxSHhgugZmSChL5AlElNdwlNgcnLQ==",
|
| 2206 |
+
"dev": true,
|
| 2207 |
+
"funding": [
|
| 2208 |
+
{
|
| 2209 |
+
"type": "opencollective",
|
| 2210 |
+
"url": "https://opencollective.com/postcss/"
|
| 2211 |
+
},
|
| 2212 |
+
{
|
| 2213 |
+
"type": "tidelift",
|
| 2214 |
+
"url": "https://tidelift.com/funding/github/npm/postcss"
|
| 2215 |
+
},
|
| 2216 |
+
{
|
| 2217 |
+
"type": "github",
|
| 2218 |
+
"url": "https://github.com/sponsors/ai"
|
| 2219 |
+
}
|
| 2220 |
+
],
|
| 2221 |
+
"license": "MIT",
|
| 2222 |
+
"dependencies": {
|
| 2223 |
+
"nanoid": "^3.3.11",
|
| 2224 |
+
"picocolors": "^1.1.1",
|
| 2225 |
+
"source-map-js": "^1.2.1"
|
| 2226 |
+
},
|
| 2227 |
+
"engines": {
|
| 2228 |
+
"node": "^10 || ^12 || >=14"
|
| 2229 |
+
}
|
| 2230 |
+
},
|
| 2231 |
+
"node_modules/prelude-ls": {
|
| 2232 |
+
"version": "1.2.1",
|
| 2233 |
+
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
|
| 2234 |
+
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
|
| 2235 |
+
"dev": true,
|
| 2236 |
+
"license": "MIT",
|
| 2237 |
+
"engines": {
|
| 2238 |
+
"node": ">= 0.8.0"
|
| 2239 |
+
}
|
| 2240 |
+
},
|
| 2241 |
+
"node_modules/punycode": {
|
| 2242 |
+
"version": "2.3.1",
|
| 2243 |
+
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
|
| 2244 |
+
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
|
| 2245 |
+
"dev": true,
|
| 2246 |
+
"license": "MIT",
|
| 2247 |
+
"engines": {
|
| 2248 |
+
"node": ">=6"
|
| 2249 |
+
}
|
| 2250 |
+
},
|
| 2251 |
+
"node_modules/react": {
|
| 2252 |
+
"version": "19.2.5",
|
| 2253 |
+
"resolved": "https://registry.npmjs.org/react/-/react-19.2.5.tgz",
|
| 2254 |
+
"integrity": "sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA==",
|
| 2255 |
+
"license": "MIT",
|
| 2256 |
+
"peer": true,
|
| 2257 |
+
"engines": {
|
| 2258 |
+
"node": ">=0.10.0"
|
| 2259 |
+
}
|
| 2260 |
+
},
|
| 2261 |
+
"node_modules/react-dom": {
|
| 2262 |
+
"version": "19.2.5",
|
| 2263 |
+
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.5.tgz",
|
| 2264 |
+
"integrity": "sha512-J5bAZz+DXMMwW/wV3xzKke59Af6CHY7G4uYLN1OvBcKEsWOs4pQExj86BBKamxl/Ik5bx9whOrvBlSDfWzgSag==",
|
| 2265 |
+
"license": "MIT",
|
| 2266 |
+
"dependencies": {
|
| 2267 |
+
"scheduler": "^0.27.0"
|
| 2268 |
+
},
|
| 2269 |
+
"peerDependencies": {
|
| 2270 |
+
"react": "^19.2.5"
|
| 2271 |
+
}
|
| 2272 |
+
},
|
| 2273 |
+
"node_modules/resolve-from": {
|
| 2274 |
+
"version": "4.0.0",
|
| 2275 |
+
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
|
| 2276 |
+
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
|
| 2277 |
+
"dev": true,
|
| 2278 |
+
"license": "MIT",
|
| 2279 |
+
"engines": {
|
| 2280 |
+
"node": ">=4"
|
| 2281 |
+
}
|
| 2282 |
+
},
|
| 2283 |
+
"node_modules/rolldown": {
|
| 2284 |
+
"version": "1.0.0-rc.16",
|
| 2285 |
+
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.16.tgz",
|
| 2286 |
+
"integrity": "sha512-rzi5WqKzEZw3SooTt7cgm4eqIoujPIyGcJNGFL7iPEuajQw7vxMHUkXylu4/vhCkJGXsgRmxqMKXUpT6FEgl0g==",
|
| 2287 |
+
"dev": true,
|
| 2288 |
+
"license": "MIT",
|
| 2289 |
+
"dependencies": {
|
| 2290 |
+
"@oxc-project/types": "=0.126.0",
|
| 2291 |
+
"@rolldown/pluginutils": "1.0.0-rc.16"
|
| 2292 |
+
},
|
| 2293 |
+
"bin": {
|
| 2294 |
+
"rolldown": "bin/cli.mjs"
|
| 2295 |
+
},
|
| 2296 |
+
"engines": {
|
| 2297 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 2298 |
+
},
|
| 2299 |
+
"optionalDependencies": {
|
| 2300 |
+
"@rolldown/binding-android-arm64": "1.0.0-rc.16",
|
| 2301 |
+
"@rolldown/binding-darwin-arm64": "1.0.0-rc.16",
|
| 2302 |
+
"@rolldown/binding-darwin-x64": "1.0.0-rc.16",
|
| 2303 |
+
"@rolldown/binding-freebsd-x64": "1.0.0-rc.16",
|
| 2304 |
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.16",
|
| 2305 |
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.16",
|
| 2306 |
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-rc.16",
|
| 2307 |
+
"@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.16",
|
| 2308 |
+
"@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.16",
|
| 2309 |
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-rc.16",
|
| 2310 |
+
"@rolldown/binding-linux-x64-musl": "1.0.0-rc.16",
|
| 2311 |
+
"@rolldown/binding-openharmony-arm64": "1.0.0-rc.16",
|
| 2312 |
+
"@rolldown/binding-wasm32-wasi": "1.0.0-rc.16",
|
| 2313 |
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.16",
|
| 2314 |
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-rc.16"
|
| 2315 |
+
}
|
| 2316 |
+
},
|
| 2317 |
+
"node_modules/rolldown/node_modules/@rolldown/pluginutils": {
|
| 2318 |
+
"version": "1.0.0-rc.16",
|
| 2319 |
+
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.16.tgz",
|
| 2320 |
+
"integrity": "sha512-45+YtqxLYKDWQouLKCrpIZhke+nXxhsw+qAHVzHDVwttyBlHNBVs2K25rDXrZzhpTp9w1FlAlvweV1H++fdZoA==",
|
| 2321 |
+
"dev": true,
|
| 2322 |
+
"license": "MIT"
|
| 2323 |
+
},
|
| 2324 |
+
"node_modules/scheduler": {
|
| 2325 |
+
"version": "0.27.0",
|
| 2326 |
+
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
|
| 2327 |
+
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
|
| 2328 |
+
"license": "MIT"
|
| 2329 |
+
},
|
| 2330 |
+
"node_modules/semver": {
|
| 2331 |
+
"version": "6.3.1",
|
| 2332 |
+
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
| 2333 |
+
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
|
| 2334 |
+
"dev": true,
|
| 2335 |
+
"license": "ISC",
|
| 2336 |
+
"bin": {
|
| 2337 |
+
"semver": "bin/semver.js"
|
| 2338 |
+
}
|
| 2339 |
+
},
|
| 2340 |
+
"node_modules/shebang-command": {
|
| 2341 |
+
"version": "2.0.0",
|
| 2342 |
+
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
|
| 2343 |
+
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
|
| 2344 |
+
"dev": true,
|
| 2345 |
+
"license": "MIT",
|
| 2346 |
+
"dependencies": {
|
| 2347 |
+
"shebang-regex": "^3.0.0"
|
| 2348 |
+
},
|
| 2349 |
+
"engines": {
|
| 2350 |
+
"node": ">=8"
|
| 2351 |
+
}
|
| 2352 |
+
},
|
| 2353 |
+
"node_modules/shebang-regex": {
|
| 2354 |
+
"version": "3.0.0",
|
| 2355 |
+
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
|
| 2356 |
+
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
|
| 2357 |
+
"dev": true,
|
| 2358 |
+
"license": "MIT",
|
| 2359 |
+
"engines": {
|
| 2360 |
+
"node": ">=8"
|
| 2361 |
+
}
|
| 2362 |
+
},
|
| 2363 |
+
"node_modules/source-map-js": {
|
| 2364 |
+
"version": "1.2.1",
|
| 2365 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
| 2366 |
+
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
| 2367 |
+
"dev": true,
|
| 2368 |
+
"license": "BSD-3-Clause",
|
| 2369 |
+
"engines": {
|
| 2370 |
+
"node": ">=0.10.0"
|
| 2371 |
+
}
|
| 2372 |
+
},
|
| 2373 |
+
"node_modules/strip-json-comments": {
|
| 2374 |
+
"version": "3.1.1",
|
| 2375 |
+
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
|
| 2376 |
+
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
| 2377 |
+
"dev": true,
|
| 2378 |
+
"license": "MIT",
|
| 2379 |
+
"engines": {
|
| 2380 |
+
"node": ">=8"
|
| 2381 |
+
},
|
| 2382 |
+
"funding": {
|
| 2383 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2384 |
+
}
|
| 2385 |
+
},
|
| 2386 |
+
"node_modules/supports-color": {
|
| 2387 |
+
"version": "7.2.0",
|
| 2388 |
+
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 2389 |
+
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 2390 |
+
"dev": true,
|
| 2391 |
+
"license": "MIT",
|
| 2392 |
+
"dependencies": {
|
| 2393 |
+
"has-flag": "^4.0.0"
|
| 2394 |
+
},
|
| 2395 |
+
"engines": {
|
| 2396 |
+
"node": ">=8"
|
| 2397 |
+
}
|
| 2398 |
+
},
|
| 2399 |
+
"node_modules/tinyglobby": {
|
| 2400 |
+
"version": "0.2.16",
|
| 2401 |
+
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
|
| 2402 |
+
"integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",
|
| 2403 |
+
"dev": true,
|
| 2404 |
+
"license": "MIT",
|
| 2405 |
+
"dependencies": {
|
| 2406 |
+
"fdir": "^6.5.0",
|
| 2407 |
+
"picomatch": "^4.0.4"
|
| 2408 |
+
},
|
| 2409 |
+
"engines": {
|
| 2410 |
+
"node": ">=12.0.0"
|
| 2411 |
+
},
|
| 2412 |
+
"funding": {
|
| 2413 |
+
"url": "https://github.com/sponsors/SuperchupuDev"
|
| 2414 |
+
}
|
| 2415 |
+
},
|
| 2416 |
+
"node_modules/tslib": {
|
| 2417 |
+
"version": "2.8.1",
|
| 2418 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 2419 |
+
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 2420 |
+
"dev": true,
|
| 2421 |
+
"license": "0BSD",
|
| 2422 |
+
"optional": true
|
| 2423 |
+
},
|
| 2424 |
+
"node_modules/type-check": {
|
| 2425 |
+
"version": "0.4.0",
|
| 2426 |
+
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
|
| 2427 |
+
"integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
|
| 2428 |
+
"dev": true,
|
| 2429 |
+
"license": "MIT",
|
| 2430 |
+
"dependencies": {
|
| 2431 |
+
"prelude-ls": "^1.2.1"
|
| 2432 |
+
},
|
| 2433 |
+
"engines": {
|
| 2434 |
+
"node": ">= 0.8.0"
|
| 2435 |
+
}
|
| 2436 |
+
},
|
| 2437 |
+
"node_modules/update-browserslist-db": {
|
| 2438 |
+
"version": "1.2.3",
|
| 2439 |
+
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
|
| 2440 |
+
"integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
|
| 2441 |
+
"dev": true,
|
| 2442 |
+
"funding": [
|
| 2443 |
+
{
|
| 2444 |
+
"type": "opencollective",
|
| 2445 |
+
"url": "https://opencollective.com/browserslist"
|
| 2446 |
+
},
|
| 2447 |
+
{
|
| 2448 |
+
"type": "tidelift",
|
| 2449 |
+
"url": "https://tidelift.com/funding/github/npm/browserslist"
|
| 2450 |
+
},
|
| 2451 |
+
{
|
| 2452 |
+
"type": "github",
|
| 2453 |
+
"url": "https://github.com/sponsors/ai"
|
| 2454 |
+
}
|
| 2455 |
+
],
|
| 2456 |
+
"license": "MIT",
|
| 2457 |
+
"dependencies": {
|
| 2458 |
+
"escalade": "^3.2.0",
|
| 2459 |
+
"picocolors": "^1.1.1"
|
| 2460 |
+
},
|
| 2461 |
+
"bin": {
|
| 2462 |
+
"update-browserslist-db": "cli.js"
|
| 2463 |
+
},
|
| 2464 |
+
"peerDependencies": {
|
| 2465 |
+
"browserslist": ">= 4.21.0"
|
| 2466 |
+
}
|
| 2467 |
+
},
|
| 2468 |
+
"node_modules/uri-js": {
|
| 2469 |
+
"version": "4.4.1",
|
| 2470 |
+
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
|
| 2471 |
+
"integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
|
| 2472 |
+
"dev": true,
|
| 2473 |
+
"license": "BSD-2-Clause",
|
| 2474 |
+
"dependencies": {
|
| 2475 |
+
"punycode": "^2.1.0"
|
| 2476 |
+
}
|
| 2477 |
+
},
|
| 2478 |
+
"node_modules/vite": {
|
| 2479 |
+
"version": "8.0.9",
|
| 2480 |
+
"resolved": "https://registry.npmjs.org/vite/-/vite-8.0.9.tgz",
|
| 2481 |
+
"integrity": "sha512-t7g7GVRpMXjNpa67HaVWI/8BWtdVIQPCL2WoozXXA7LBGEFK4AkkKkHx2hAQf5x1GZSlcmEDPkVLSGahxnEEZw==",
|
| 2482 |
+
"dev": true,
|
| 2483 |
+
"license": "MIT",
|
| 2484 |
+
"peer": true,
|
| 2485 |
+
"dependencies": {
|
| 2486 |
+
"lightningcss": "^1.32.0",
|
| 2487 |
+
"picomatch": "^4.0.4",
|
| 2488 |
+
"postcss": "^8.5.10",
|
| 2489 |
+
"rolldown": "1.0.0-rc.16",
|
| 2490 |
+
"tinyglobby": "^0.2.16"
|
| 2491 |
+
},
|
| 2492 |
+
"bin": {
|
| 2493 |
+
"vite": "bin/vite.js"
|
| 2494 |
+
},
|
| 2495 |
+
"engines": {
|
| 2496 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 2497 |
+
},
|
| 2498 |
+
"funding": {
|
| 2499 |
+
"url": "https://github.com/vitejs/vite?sponsor=1"
|
| 2500 |
+
},
|
| 2501 |
+
"optionalDependencies": {
|
| 2502 |
+
"fsevents": "~2.3.3"
|
| 2503 |
+
},
|
| 2504 |
+
"peerDependencies": {
|
| 2505 |
+
"@types/node": "^20.19.0 || >=22.12.0",
|
| 2506 |
+
"@vitejs/devtools": "^0.1.0",
|
| 2507 |
+
"esbuild": "^0.27.0 || ^0.28.0",
|
| 2508 |
+
"jiti": ">=1.21.0",
|
| 2509 |
+
"less": "^4.0.0",
|
| 2510 |
+
"sass": "^1.70.0",
|
| 2511 |
+
"sass-embedded": "^1.70.0",
|
| 2512 |
+
"stylus": ">=0.54.8",
|
| 2513 |
+
"sugarss": "^5.0.0",
|
| 2514 |
+
"terser": "^5.16.0",
|
| 2515 |
+
"tsx": "^4.8.1",
|
| 2516 |
+
"yaml": "^2.4.2"
|
| 2517 |
+
},
|
| 2518 |
+
"peerDependenciesMeta": {
|
| 2519 |
+
"@types/node": {
|
| 2520 |
+
"optional": true
|
| 2521 |
+
},
|
| 2522 |
+
"@vitejs/devtools": {
|
| 2523 |
+
"optional": true
|
| 2524 |
+
},
|
| 2525 |
+
"esbuild": {
|
| 2526 |
+
"optional": true
|
| 2527 |
+
},
|
| 2528 |
+
"jiti": {
|
| 2529 |
+
"optional": true
|
| 2530 |
+
},
|
| 2531 |
+
"less": {
|
| 2532 |
+
"optional": true
|
| 2533 |
+
},
|
| 2534 |
+
"sass": {
|
| 2535 |
+
"optional": true
|
| 2536 |
+
},
|
| 2537 |
+
"sass-embedded": {
|
| 2538 |
+
"optional": true
|
| 2539 |
+
},
|
| 2540 |
+
"stylus": {
|
| 2541 |
+
"optional": true
|
| 2542 |
+
},
|
| 2543 |
+
"sugarss": {
|
| 2544 |
+
"optional": true
|
| 2545 |
+
},
|
| 2546 |
+
"terser": {
|
| 2547 |
+
"optional": true
|
| 2548 |
+
},
|
| 2549 |
+
"tsx": {
|
| 2550 |
+
"optional": true
|
| 2551 |
+
},
|
| 2552 |
+
"yaml": {
|
| 2553 |
+
"optional": true
|
| 2554 |
+
}
|
| 2555 |
+
}
|
| 2556 |
+
},
|
| 2557 |
+
"node_modules/which": {
|
| 2558 |
+
"version": "2.0.2",
|
| 2559 |
+
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
| 2560 |
+
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
|
| 2561 |
+
"dev": true,
|
| 2562 |
+
"license": "ISC",
|
| 2563 |
+
"dependencies": {
|
| 2564 |
+
"isexe": "^2.0.0"
|
| 2565 |
+
},
|
| 2566 |
+
"bin": {
|
| 2567 |
+
"node-which": "bin/node-which"
|
| 2568 |
+
},
|
| 2569 |
+
"engines": {
|
| 2570 |
+
"node": ">= 8"
|
| 2571 |
+
}
|
| 2572 |
+
},
|
| 2573 |
+
"node_modules/word-wrap": {
|
| 2574 |
+
"version": "1.2.5",
|
| 2575 |
+
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
|
| 2576 |
+
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
|
| 2577 |
+
"dev": true,
|
| 2578 |
+
"license": "MIT",
|
| 2579 |
+
"engines": {
|
| 2580 |
+
"node": ">=0.10.0"
|
| 2581 |
+
}
|
| 2582 |
+
},
|
| 2583 |
+
"node_modules/yallist": {
|
| 2584 |
+
"version": "3.1.1",
|
| 2585 |
+
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
|
| 2586 |
+
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
|
| 2587 |
+
"dev": true,
|
| 2588 |
+
"license": "ISC"
|
| 2589 |
+
},
|
| 2590 |
+
"node_modules/yocto-queue": {
|
| 2591 |
+
"version": "0.1.0",
|
| 2592 |
+
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
| 2593 |
+
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
|
| 2594 |
+
"dev": true,
|
| 2595 |
+
"license": "MIT",
|
| 2596 |
+
"engines": {
|
| 2597 |
+
"node": ">=10"
|
| 2598 |
+
},
|
| 2599 |
+
"funding": {
|
| 2600 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2601 |
+
}
|
| 2602 |
+
},
|
| 2603 |
+
"node_modules/zod": {
|
| 2604 |
+
"version": "4.3.6",
|
| 2605 |
+
"resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",
|
| 2606 |
+
"integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",
|
| 2607 |
+
"dev": true,
|
| 2608 |
+
"license": "MIT",
|
| 2609 |
+
"peer": true,
|
| 2610 |
+
"funding": {
|
| 2611 |
+
"url": "https://github.com/sponsors/colinhacks"
|
| 2612 |
+
}
|
| 2613 |
+
},
|
| 2614 |
+
"node_modules/zod-validation-error": {
|
| 2615 |
+
"version": "4.0.2",
|
| 2616 |
+
"resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",
|
| 2617 |
+
"integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",
|
| 2618 |
+
"dev": true,
|
| 2619 |
+
"license": "MIT",
|
| 2620 |
+
"engines": {
|
| 2621 |
+
"node": ">=18.0.0"
|
| 2622 |
+
},
|
| 2623 |
+
"peerDependencies": {
|
| 2624 |
+
"zod": "^3.25.0 || ^4.0.0"
|
| 2625 |
+
}
|
| 2626 |
+
}
|
| 2627 |
+
}
|
| 2628 |
+
}
|
frontend/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "frontend",
|
| 3 |
+
"private": true,
|
| 4 |
+
"version": "0.0.0",
|
| 5 |
+
"type": "module",
|
| 6 |
+
"scripts": {
|
| 7 |
+
"dev": "vite",
|
| 8 |
+
"build": "vite build",
|
| 9 |
+
"lint": "eslint .",
|
| 10 |
+
"preview": "vite preview"
|
| 11 |
+
},
|
| 12 |
+
"dependencies": {
|
| 13 |
+
"react": "^19.2.5",
|
| 14 |
+
"react-dom": "^19.2.5"
|
| 15 |
+
},
|
| 16 |
+
"devDependencies": {
|
| 17 |
+
"@eslint/js": "^9.39.4",
|
| 18 |
+
"@types/react": "^19.2.14",
|
| 19 |
+
"@types/react-dom": "^19.2.3",
|
| 20 |
+
"@vitejs/plugin-react": "^6.0.1",
|
| 21 |
+
"eslint": "^9.39.4",
|
| 22 |
+
"eslint-plugin-react-hooks": "^7.1.1",
|
| 23 |
+
"eslint-plugin-react-refresh": "^0.5.2",
|
| 24 |
+
"globals": "^17.5.0",
|
| 25 |
+
"vite": "^8.0.9"
|
| 26 |
+
}
|
| 27 |
+
}
|
frontend/public/favicon.svg
ADDED
|
|
frontend/public/icons.svg
ADDED
|
|
frontend/src/App.css
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.counter {
|
| 2 |
+
font-size: 16px;
|
| 3 |
+
padding: 5px 10px;
|
| 4 |
+
border-radius: 5px;
|
| 5 |
+
color: var(--accent);
|
| 6 |
+
background: var(--accent-bg);
|
| 7 |
+
border: 2px solid transparent;
|
| 8 |
+
transition: border-color 0.3s;
|
| 9 |
+
margin-bottom: 24px;
|
| 10 |
+
|
| 11 |
+
&:hover {
|
| 12 |
+
border-color: var(--accent-border);
|
| 13 |
+
}
|
| 14 |
+
&:focus-visible {
|
| 15 |
+
outline: 2px solid var(--accent);
|
| 16 |
+
outline-offset: 2px;
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.hero {
|
| 21 |
+
position: relative;
|
| 22 |
+
|
| 23 |
+
.base,
|
| 24 |
+
.framework,
|
| 25 |
+
.vite {
|
| 26 |
+
inset-inline: 0;
|
| 27 |
+
margin: 0 auto;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.base {
|
| 31 |
+
width: 170px;
|
| 32 |
+
position: relative;
|
| 33 |
+
z-index: 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.framework,
|
| 37 |
+
.vite {
|
| 38 |
+
position: absolute;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.framework {
|
| 42 |
+
z-index: 1;
|
| 43 |
+
top: 34px;
|
| 44 |
+
height: 28px;
|
| 45 |
+
transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg)
|
| 46 |
+
scale(1.4);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.vite {
|
| 50 |
+
z-index: 0;
|
| 51 |
+
top: 107px;
|
| 52 |
+
height: 26px;
|
| 53 |
+
width: auto;
|
| 54 |
+
transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg)
|
| 55 |
+
scale(0.8);
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
#center {
|
| 60 |
+
display: flex;
|
| 61 |
+
flex-direction: column;
|
| 62 |
+
gap: 25px;
|
| 63 |
+
place-content: center;
|
| 64 |
+
place-items: center;
|
| 65 |
+
flex-grow: 1;
|
| 66 |
+
|
| 67 |
+
@media (max-width: 1024px) {
|
| 68 |
+
padding: 32px 20px 24px;
|
| 69 |
+
gap: 18px;
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
#next-steps {
|
| 74 |
+
display: flex;
|
| 75 |
+
border-top: 1px solid var(--border);
|
| 76 |
+
text-align: left;
|
| 77 |
+
|
| 78 |
+
& > div {
|
| 79 |
+
flex: 1 1 0;
|
| 80 |
+
padding: 32px;
|
| 81 |
+
@media (max-width: 1024px) {
|
| 82 |
+
padding: 24px 20px;
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.icon {
|
| 87 |
+
margin-bottom: 16px;
|
| 88 |
+
width: 22px;
|
| 89 |
+
height: 22px;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
@media (max-width: 1024px) {
|
| 93 |
+
flex-direction: column;
|
| 94 |
+
text-align: center;
|
| 95 |
+
}
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
#docs {
|
| 99 |
+
border-right: 1px solid var(--border);
|
| 100 |
+
|
| 101 |
+
@media (max-width: 1024px) {
|
| 102 |
+
border-right: none;
|
| 103 |
+
border-bottom: 1px solid var(--border);
|
| 104 |
+
}
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
#next-steps ul {
|
| 108 |
+
list-style: none;
|
| 109 |
+
padding: 0;
|
| 110 |
+
display: flex;
|
| 111 |
+
gap: 8px;
|
| 112 |
+
margin: 32px 0 0;
|
| 113 |
+
|
| 114 |
+
.logo {
|
| 115 |
+
height: 18px;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
a {
|
| 119 |
+
color: var(--text-h);
|
| 120 |
+
font-size: 16px;
|
| 121 |
+
border-radius: 6px;
|
| 122 |
+
background: var(--social-bg);
|
| 123 |
+
display: flex;
|
| 124 |
+
padding: 6px 12px;
|
| 125 |
+
align-items: center;
|
| 126 |
+
gap: 8px;
|
| 127 |
+
text-decoration: none;
|
| 128 |
+
transition: box-shadow 0.3s;
|
| 129 |
+
|
| 130 |
+
&:hover {
|
| 131 |
+
box-shadow: var(--shadow);
|
| 132 |
+
}
|
| 133 |
+
.button-icon {
|
| 134 |
+
height: 18px;
|
| 135 |
+
width: 18px;
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
@media (max-width: 1024px) {
|
| 140 |
+
margin-top: 20px;
|
| 141 |
+
flex-wrap: wrap;
|
| 142 |
+
justify-content: center;
|
| 143 |
+
|
| 144 |
+
li {
|
| 145 |
+
flex: 1 1 calc(50% - 8px);
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
a {
|
| 149 |
+
width: 100%;
|
| 150 |
+
justify-content: center;
|
| 151 |
+
box-sizing: border-box;
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
#spacer {
|
| 157 |
+
height: 88px;
|
| 158 |
+
border-top: 1px solid var(--border);
|
| 159 |
+
@media (max-width: 1024px) {
|
| 160 |
+
height: 48px;
|
| 161 |
+
}
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
.ticks {
|
| 165 |
+
position: relative;
|
| 166 |
+
width: 100%;
|
| 167 |
+
|
| 168 |
+
&::before,
|
| 169 |
+
&::after {
|
| 170 |
+
content: '';
|
| 171 |
+
position: absolute;
|
| 172 |
+
top: -4.5px;
|
| 173 |
+
border: 5px solid transparent;
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
&::before {
|
| 177 |
+
left: 0;
|
| 178 |
+
border-left-color: var(--border);
|
| 179 |
+
}
|
| 180 |
+
&::after {
|
| 181 |
+
right: 0;
|
| 182 |
+
border-right-color: var(--border);
|
| 183 |
+
}
|
| 184 |
+
}
|
frontend/src/App.jsx
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import CodeArenaRL from './CodeArenaRL';
|
| 2 |
+
export default function App() {
|
| 3 |
+
return <CodeArenaRL />;
|
| 4 |
+
}
|
frontend/src/CodeArenaRL.jsx
ADDED
|
@@ -0,0 +1,1083 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import React, { useState, useEffect, useRef, useCallback } from "react";
|
| 3 |
+
|
| 4 |
+
/* ─────────────────────────────────────────────
|
| 5 |
+
GOOGLE FONTS
|
| 6 |
+
───────────────────────────────────────────── */
|
| 7 |
+
const FontLoader = () => {
|
| 8 |
+
useEffect(() => {
|
| 9 |
+
const link = document.createElement("link");
|
| 10 |
+
link.rel = "stylesheet";
|
| 11 |
+
link.href =
|
| 12 |
+
"https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Rajdhani:wght@400;500;600;700&display=swap";
|
| 13 |
+
document.head.appendChild(link);
|
| 14 |
+
return () => document.head.removeChild(link);
|
| 15 |
+
}, []);
|
| 16 |
+
return null;
|
| 17 |
+
};
|
| 18 |
+
|
| 19 |
+
/* ─────────────────────────────────────────────
|
| 20 |
+
GLOBAL STYLES
|
| 21 |
+
───────────────────────────────────────────── */
|
| 22 |
+
const GlobalStyles = () => (
|
| 23 |
+
<style>{`
|
| 24 |
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
| 25 |
+
body { background: #0a0e1a; color: #e2e8f0; font-family: 'Rajdhani', sans-serif; }
|
| 26 |
+
::-webkit-scrollbar { width: 6px; height: 6px; }
|
| 27 |
+
::-webkit-scrollbar-track { background: #0a0e1a; }
|
| 28 |
+
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
|
| 29 |
+
::-webkit-scrollbar-thumb:hover { background: #334155; }
|
| 30 |
+
|
| 31 |
+
@keyframes pulse-border {
|
| 32 |
+
0%,100%{box-shadow:0 0 0 0 rgba(0,255,136,0.4),inset 0 0 20px rgba(0,255,136,0.05);}
|
| 33 |
+
50%{box-shadow:0 0 0 6px rgba(0,255,136,0),inset 0 0 30px rgba(0,255,136,0.12);}
|
| 34 |
+
}
|
| 35 |
+
@keyframes blink{0%,49%{opacity:1}50%,100%{opacity:0}}
|
| 36 |
+
@keyframes slide-in-right{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:translateX(0)}}
|
| 37 |
+
@keyframes success-glow{0%,100%{box-shadow:0 0 30px rgba(0,255,136,0.15)}50%{box-shadow:0 0 60px rgba(0,255,136,0.35)}}
|
| 38 |
+
@keyframes spin{to{transform:rotate(360deg)}}
|
| 39 |
+
@keyframes dot-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.4;transform:scale(0.7)}}
|
| 40 |
+
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
|
| 41 |
+
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
|
| 42 |
+
|
| 43 |
+
.thinking-border{animation:pulse-border 1.5s ease-in-out infinite;}
|
| 44 |
+
.success-glow{animation:success-glow 2s ease-in-out infinite;}
|
| 45 |
+
.blink{animation:blink 1s step-end infinite;}
|
| 46 |
+
.fade-in{animation:fadeIn 0.3s ease both;}
|
| 47 |
+
|
| 48 |
+
.code-block{
|
| 49 |
+
font-family:'JetBrains Mono',monospace;font-size:12px;line-height:1.7;
|
| 50 |
+
background:#0d1117;border:1px solid #1e293b;border-radius:8px;
|
| 51 |
+
padding:14px;overflow:auto;color:#a8d8a8;white-space:pre;tab-size:4;
|
| 52 |
+
}
|
| 53 |
+
.terminal-block{
|
| 54 |
+
font-family:'JetBrains Mono',monospace;font-size:11.5px;line-height:1.75;
|
| 55 |
+
background:#050810;border:1px solid #1e293b;border-radius:8px;
|
| 56 |
+
padding:14px;overflow:auto;white-space:pre-wrap;
|
| 57 |
+
}
|
| 58 |
+
.btn{
|
| 59 |
+
font-family:'Rajdhani',sans-serif;font-weight:600;font-size:13px;
|
| 60 |
+
letter-spacing:0.05em;border:none;border-radius:6px;cursor:pointer;
|
| 61 |
+
padding:8px 18px;transition:all 0.18s ease;display:inline-flex;align-items:center;gap:6px;
|
| 62 |
+
}
|
| 63 |
+
.btn:disabled{opacity:0.4;cursor:not-allowed;}
|
| 64 |
+
.btn-primary{background:linear-gradient(135deg,#00ff88 0%,#00c96f 100%);color:#0a0e1a;}
|
| 65 |
+
.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#33ffaa 0%,#00e07a 100%);box-shadow:0 0 16px rgba(0,255,136,0.4);transform:translateY(-1px);}
|
| 66 |
+
.btn-danger{background:linear-gradient(135deg,#ff4455 0%,#cc1122 100%);color:#fff;}
|
| 67 |
+
.btn-danger:hover:not(:disabled){box-shadow:0 0 16px rgba(255,68,85,0.4);transform:translateY(-1px);}
|
| 68 |
+
.btn-ghost{background:transparent;border:1px solid #1e293b;color:#94a3b8;}
|
| 69 |
+
.btn-ghost:hover:not(:disabled){border-color:#334155;color:#e2e8f0;background:#111827;}
|
| 70 |
+
.btn-amber{background:linear-gradient(135deg,#ffaa00 0%,#cc8800 100%);color:#0a0e1a;}
|
| 71 |
+
.btn-amber:hover:not(:disabled){box-shadow:0 0 16px rgba(255,170,0,0.4);transform:translateY(-1px);}
|
| 72 |
+
|
| 73 |
+
.panel{background:#111827;border:1px solid #1e293b;border-radius:12px;overflow:hidden;}
|
| 74 |
+
.panel-header{
|
| 75 |
+
background:#0d1117;border-bottom:1px solid #1e293b;padding:10px 16px;
|
| 76 |
+
display:flex;align-items:center;gap:8px;font-family:'Rajdhani',sans-serif;
|
| 77 |
+
font-weight:700;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#64748b;
|
| 78 |
+
}
|
| 79 |
+
.badge{font-size:10px;font-weight:700;letter-spacing:0.08em;padding:2px 8px;border-radius:4px;text-transform:uppercase;}
|
| 80 |
+
.badge-easy{background:rgba(0,255,136,0.15);color:#00ff88;border:1px solid rgba(0,255,136,0.3);}
|
| 81 |
+
.badge-medium{background:rgba(255,170,0,0.15);color:#ffaa00;border:1px solid rgba(255,170,0,0.3);}
|
| 82 |
+
.badge-hard{background:rgba(255,68,85,0.15);color:#ff4455;border:1px solid rgba(255,68,85,0.3);}
|
| 83 |
+
.badge-info{background:rgba(99,179,237,0.15);color:#63b3ed;border:1px solid rgba(99,179,237,0.3);}
|
| 84 |
+
.badge-ollama{background:rgba(139,92,246,0.15);color:#a78bfa;border:1px solid rgba(139,92,246,0.3);}
|
| 85 |
+
|
| 86 |
+
.task-btn{
|
| 87 |
+
width:100%;text-align:left;background:#1a2235;border:1px solid #1e293b;
|
| 88 |
+
border-radius:8px;padding:12px 14px;cursor:pointer;transition:all 0.18s ease;
|
| 89 |
+
font-family:'Rajdhani',sans-serif;color:#e2e8f0;
|
| 90 |
+
}
|
| 91 |
+
.task-btn:hover{border-color:#334155;background:#1f2d45;}
|
| 92 |
+
.task-btn.active{border-color:#00ff88;background:rgba(0,255,136,0.08);}
|
| 93 |
+
.task-btn.active-medium{border-color:#ffaa00;background:rgba(255,170,0,0.08);}
|
| 94 |
+
.task-btn.active-hard{border-color:#ff4455;background:rgba(255,68,85,0.08);}
|
| 95 |
+
|
| 96 |
+
.stat-card{background:#1a2235;border:1px solid #1e293b;border-radius:8px;padding:10px 14px;}
|
| 97 |
+
.reward-bar-outer{height:6px;background:#1e293b;border-radius:3px;overflow:hidden;margin-top:6px;}
|
| 98 |
+
.reward-bar-inner{height:100%;border-radius:3px;transition:width 0.8s cubic-bezier(0.25,0.46,0.45,0.94);}
|
| 99 |
+
.log-entry{
|
| 100 |
+
background:#1a2235;border:1px solid #1e293b;border-radius:8px;
|
| 101 |
+
padding:10px 12px;margin-bottom:8px;
|
| 102 |
+
animation:slide-in-right 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both;
|
| 103 |
+
}
|
| 104 |
+
.dot-live{width:8px;height:8px;border-radius:50%;background:#00ff88;animation:dot-pulse 1.5s ease-in-out infinite;display:inline-block;}
|
| 105 |
+
.spinner{width:14px;height:14px;border:2px solid rgba(0,255,136,0.2);border-top-color:#00ff88;border-radius:50%;animation:spin 0.8s linear infinite;display:inline-block;}
|
| 106 |
+
|
| 107 |
+
.cfg-input{
|
| 108 |
+
width:100%;font-family:'JetBrains Mono',monospace;font-size:12px;
|
| 109 |
+
background:#0d1117;border:1px solid #1e293b;border-radius:6px;
|
| 110 |
+
color:#e2e8f0;padding:8px 12px;outline:none;letter-spacing:0.04em;
|
| 111 |
+
}
|
| 112 |
+
.cfg-input:focus{border-color:#a78bfa;}
|
| 113 |
+
select.cfg-input{cursor:pointer;}
|
| 114 |
+
textarea{
|
| 115 |
+
font-family:'JetBrains Mono',monospace;font-size:12px;line-height:1.7;
|
| 116 |
+
background:#0d1117;border:1px solid #1e293b;border-radius:8px;
|
| 117 |
+
color:#a8d8a8;padding:14px;resize:vertical;outline:none;width:100%;
|
| 118 |
+
}
|
| 119 |
+
textarea:focus{border-color:#00ff88;box-shadow:0 0 0 2px rgba(0,255,136,0.15);}
|
| 120 |
+
|
| 121 |
+
.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px;}
|
| 122 |
+
.status-dot.online{background:#00ff88;box-shadow:0 0 6px rgba(0,255,136,0.5);}
|
| 123 |
+
.status-dot.offline{background:#ff4455;box-shadow:0 0 6px rgba(255,68,85,0.5);}
|
| 124 |
+
.status-dot.checking{background:#ffaa00;animation:dot-pulse 1s ease-in-out infinite;}
|
| 125 |
+
`}</style>
|
| 126 |
+
);
|
| 127 |
+
|
| 128 |
+
/* ─────────────────────────────────────────────
|
| 129 |
+
TASKS (mirrors server tasks — display only)
|
| 130 |
+
───────────────────────────────────────────── */
|
| 131 |
+
const TASKS = {
|
| 132 |
+
"easy-1": {
|
| 133 |
+
id: "easy-1", label: "Easy", name: "Fix average_list()", difficulty: "easy",
|
| 134 |
+
description: "Fix syntax errors: missing colon after def and uses length() instead of len().",
|
| 135 |
+
hints: ["Missing colon after def", "length() → len()"],
|
| 136 |
+
buggy_code: `def average_list(numbers)\n if length(numbers) == 0:\n return 0\n return sum(numbers) / length(numbers)`,
|
| 137 |
+
},
|
| 138 |
+
"medium-1": {
|
| 139 |
+
id: "medium-1", label: "Medium", name: "Fix binary_search()", difficulty: "medium",
|
| 140 |
+
description: "Fix logical bugs: loop condition skips last element; left pointer causes infinite loop.",
|
| 141 |
+
hints: ["left < right → left <= right", "left = mid → left = mid + 1"],
|
| 142 |
+
buggy_code: `def binary_search(arr, target):\n left, right = 0, len(arr) - 1\n while left < right:\n mid = (left + right) // 2\n if arr[mid] == target:\n return mid\n elif arr[mid] < target:\n left = mid\n else:\n right = mid - 1\n return -1`,
|
| 143 |
+
},
|
| 144 |
+
"hard-1": {
|
| 145 |
+
id: "hard-1", label: "Hard", name: "Optimize max_subarray_sum()", difficulty: "hard",
|
| 146 |
+
description: "Replace O(N³) brute-force with Kadane's O(N) algorithm.",
|
| 147 |
+
hints: ["Use Kadane's algorithm", "Eliminate triple nested loop"],
|
| 148 |
+
buggy_code: `def max_subarray_sum(arr):\n if not arr:\n return 0\n max_sum = arr[0]\n for i in range(len(arr)):\n for j in range(i, len(arr)):\n for k in range(i, j+1):\n current = sum(arr[i:j+1])\n if current > max_sum:\n max_sum = current\n return max_sum`,
|
| 149 |
+
},
|
| 150 |
+
};
|
| 151 |
+
|
| 152 |
+
/* ─────────────────────────────────────────────
|
| 153 |
+
REWARD COLOR
|
| 154 |
+
───────────────────────────────────────────── */
|
| 155 |
+
function rewardColor(r) {
|
| 156 |
+
if (r >= 0.85) return "#00ff88";
|
| 157 |
+
if (r >= 0.5) return "#ffaa00";
|
| 158 |
+
return "#ff4455";
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
/* ─────────────────────────────────────────────
|
| 162 |
+
ANSI LINE RENDERER
|
| 163 |
+
───────────────────────────────────────────── */
|
| 164 |
+
function AnsiLine({ text }) {
|
| 165 |
+
const parts = text.split(/\x1b\[(\d+)m/);
|
| 166 |
+
let color = null;
|
| 167 |
+
const els = [];
|
| 168 |
+
parts.forEach((p, i) => {
|
| 169 |
+
if (p === "32") color = "#00ff88";
|
| 170 |
+
else if (p === "33") color = "#ffaa00";
|
| 171 |
+
else if (p === "31") color = "#ff4455";
|
| 172 |
+
else if (p === "0") color = null;
|
| 173 |
+
else els.push(<span key={i} style={color ? { color } : {}}>{p}</span>);
|
| 174 |
+
});
|
| 175 |
+
return <span>{els}</span>;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
/* ─────────────────────────────────────────────
|
| 179 |
+
REWARD CHART
|
| 180 |
+
───────────────────────────────────────────── */
|
| 181 |
+
function RewardChart({ rewards }) {
|
| 182 |
+
const W = 260, H = 100, PAD = 20;
|
| 183 |
+
const pts = rewards.map((r, i) => ({
|
| 184 |
+
x: PAD + (i / Math.max(4, 1)) * (W - PAD * 2),
|
| 185 |
+
y: PAD + (1 - r) * (H - PAD * 2),
|
| 186 |
+
r,
|
| 187 |
+
}));
|
| 188 |
+
const pathD = pts.length > 1 ? pts.reduce((a, p, i) => i === 0 ? `M${p.x},${p.y}` : a + ` L${p.x},${p.y}`, "") : "";
|
| 189 |
+
const areaD = pts.length > 1 ? `${pathD} L${pts[pts.length - 1].x},${H - PAD} L${pts[0].x},${H - PAD} Z` : "";
|
| 190 |
+
return (
|
| 191 |
+
<svg width="100%" viewBox={`0 0 ${W} ${H}`}>
|
| 192 |
+
<defs>
|
| 193 |
+
<linearGradient id="rg" x1="0" y1="0" x2="0" y2="1">
|
| 194 |
+
<stop offset="0%" stopColor="#00ff88" stopOpacity="0.3" />
|
| 195 |
+
<stop offset="100%" stopColor="#00ff88" stopOpacity="0" />
|
| 196 |
+
</linearGradient>
|
| 197 |
+
</defs>
|
| 198 |
+
{[0, 0.5, 1].map(v => {
|
| 199 |
+
const y = PAD + (1 - v) * (H - PAD * 2);
|
| 200 |
+
return <line key={v} x1={PAD} y1={y} x2={W - PAD} y2={y} stroke="#1e293b" strokeWidth="1" strokeDasharray="3,3" />;
|
| 201 |
+
})}
|
| 202 |
+
{[1, 2, 3, 4, 5].map(s => (
|
| 203 |
+
<text key={s} x={PAD + ((s - 1) / 4) * (W - PAD * 2)} y={H - 4}
|
| 204 |
+
fill="#334155" fontSize="8" textAnchor="middle" fontFamily="JetBrains Mono">{s}</text>
|
| 205 |
+
))}
|
| 206 |
+
{areaD && <path d={areaD} fill="url(#rg)" />}
|
| 207 |
+
{pathD && <path d={pathD} fill="none" stroke="#00ff88" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />}
|
| 208 |
+
{pts.map((p, i) => <circle key={i} cx={p.x} cy={p.y} r="4" fill="#0a0e1a" stroke={rewardColor(p.r)} strokeWidth="2" />)}
|
| 209 |
+
</svg>
|
| 210 |
+
);
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
/* ─────────────────────────────────────────────
|
| 214 |
+
MAIN APP
|
| 215 |
+
───────────────────────────────────────────── */
|
| 216 |
+
export default function CodeArenaRL() {
|
| 217 |
+
/* ── Ollama config ── */
|
| 218 |
+
const [ollamaUrl, setOllamaUrl] = useState("http://localhost:11434");
|
| 219 |
+
const [ollamaModel, setOllamaModel] = useState("codellama");
|
| 220 |
+
const [availableModels, setAvailableModels] = useState([]);
|
| 221 |
+
const [ollamaStatus, setOllamaStatus] = useState("checking"); // checking | online | offline
|
| 222 |
+
|
| 223 |
+
/* ── OpenEnv (FastAPI) config ── */
|
| 224 |
+
const [envUrl, setEnvUrl] = useState("http://localhost:7860");
|
| 225 |
+
const [envStatus, setEnvStatus] = useState("checking");
|
| 226 |
+
|
| 227 |
+
/* ── Task & episode state ── */
|
| 228 |
+
const [selectedTask, setSelectedTask] = useState("easy-1");
|
| 229 |
+
const [envState, setEnvState] = useState(null); // observation from server
|
| 230 |
+
const [uiMode, setUiMode] = useState("idle"); // idle|resetting|agent_thinking|executing|done
|
| 231 |
+
const [episodeLog, setEpisodeLog] = useState([]);
|
| 232 |
+
const [rewards, setRewards] = useState([]);
|
| 233 |
+
const [stepCount, setStepCount] = useState(0);
|
| 234 |
+
const [isDone, setIsDone] = useState(false);
|
| 235 |
+
|
| 236 |
+
/* ── Code display ── */
|
| 237 |
+
const [streamingCode, setStreamingCode] = useState("");
|
| 238 |
+
const [agentCode, setAgentCode] = useState("");
|
| 239 |
+
const [isTyping, setIsTyping] = useState(false);
|
| 240 |
+
const [execOutput, setExecOutput] = useState([]); // lines from /step response
|
| 241 |
+
|
| 242 |
+
/* ── Manual mode ── */
|
| 243 |
+
const [manualMode, setManualMode] = useState(false);
|
| 244 |
+
const [manualCode, setManualCode] = useState("");
|
| 245 |
+
|
| 246 |
+
/* ── Speed ── */
|
| 247 |
+
const [speed, setSpeed] = useState("normal");
|
| 248 |
+
const speedMap = { slow: 3, normal: 1, fast: 0.25 };
|
| 249 |
+
|
| 250 |
+
/* ── Misc ── */
|
| 251 |
+
const [tokenEst, setTokenEst] = useState(0);
|
| 252 |
+
const [collapsedEntries, setCollapsedEntries] = useState(new Set());
|
| 253 |
+
const [copied, setCopied] = useState(false);
|
| 254 |
+
const [errorBanner, setErrorBanner] = useState("");
|
| 255 |
+
|
| 256 |
+
const runningRef = useRef(false);
|
| 257 |
+
const logRef = useRef(null);
|
| 258 |
+
const task = TASKS[selectedTask];
|
| 259 |
+
|
| 260 |
+
/* ──────────────────────────────────────────
|
| 261 |
+
STATUS PROBES
|
| 262 |
+
─────────────────────────────────────────── */
|
| 263 |
+
const probeOllama = useCallback(async () => {
|
| 264 |
+
setOllamaStatus("checking");
|
| 265 |
+
try {
|
| 266 |
+
const baseUrl = ollamaUrl.replace(/\/+$/, "");
|
| 267 |
+
const res = await fetch(`${baseUrl}/api/tags`, { signal: AbortSignal.timeout(3000) });
|
| 268 |
+
if (res.ok) {
|
| 269 |
+
const data = await res.json();
|
| 270 |
+
const names = (data.models || []).map(m => m.name);
|
| 271 |
+
setAvailableModels(names.length > 0 ? names : ["codellama", "llama3", "mistral", "deepseek-coder"]);
|
| 272 |
+
setOllamaStatus("online");
|
| 273 |
+
} else {
|
| 274 |
+
setOllamaStatus("offline");
|
| 275 |
+
}
|
| 276 |
+
} catch {
|
| 277 |
+
setOllamaStatus("offline");
|
| 278 |
+
setAvailableModels(["codellama", "llama3", "mistral", "deepseek-coder"]);
|
| 279 |
+
}
|
| 280 |
+
}, [ollamaUrl]);
|
| 281 |
+
|
| 282 |
+
const probeEnv = useCallback(async () => {
|
| 283 |
+
setEnvStatus("checking");
|
| 284 |
+
try {
|
| 285 |
+
const baseUrl = envUrl.replace(/\/+$/, "");
|
| 286 |
+
const res = await fetch(`${baseUrl}/`, { signal: AbortSignal.timeout(3000) });
|
| 287 |
+
setEnvStatus(res.ok ? "online" : "offline");
|
| 288 |
+
} catch {
|
| 289 |
+
setEnvStatus("offline");
|
| 290 |
+
}
|
| 291 |
+
}, [envUrl]);
|
| 292 |
+
|
| 293 |
+
useEffect(() => { probeOllama(); }, [probeOllama]);
|
| 294 |
+
useEffect(() => { probeEnv(); }, [probeEnv]);
|
| 295 |
+
|
| 296 |
+
/* ──────────────────────────────────────────
|
| 297 |
+
OPENENV API CALLS
|
| 298 |
+
─────────────────────────────────────────── */
|
| 299 |
+
const envReset = useCallback(async (taskId) => {
|
| 300 |
+
const baseUrl = envUrl.replace(/\/+$/, "");
|
| 301 |
+
const res = await fetch(`${baseUrl}/reset`, {
|
| 302 |
+
method: "POST",
|
| 303 |
+
headers: { "Content-Type": "application/json" },
|
| 304 |
+
body: JSON.stringify({ task_id: taskId }),
|
| 305 |
+
});
|
| 306 |
+
if (!res.ok) throw new Error(`/reset failed: ${res.status}`);
|
| 307 |
+
const data = await res.json();
|
| 308 |
+
return data.observation; // { buggy_code, error_log, test_results, previous_attempts }
|
| 309 |
+
}, [envUrl]);
|
| 310 |
+
|
| 311 |
+
const envStep = useCallback(async (proposedFix) => {
|
| 312 |
+
const baseUrl = envUrl.replace(/\/+$/, "");
|
| 313 |
+
const res = await fetch(`${baseUrl}/step`, {
|
| 314 |
+
method: "POST",
|
| 315 |
+
headers: { "Content-Type": "application/json" },
|
| 316 |
+
body: JSON.stringify({ proposed_fix: proposedFix }),
|
| 317 |
+
});
|
| 318 |
+
if (!res.ok) throw new Error(`/step failed: ${res.status}`);
|
| 319 |
+
const data = await res.json();
|
| 320 |
+
// { observation, reward, done, info }
|
| 321 |
+
return data;
|
| 322 |
+
}, [envUrl]);
|
| 323 |
+
|
| 324 |
+
/* ──────────────────────────────────────────
|
| 325 |
+
OLLAMA CALL
|
| 326 |
+
─────────────────────────────────────────── */
|
| 327 |
+
const callOllama = useCallback(async (obs) => {
|
| 328 |
+
const prompt = [
|
| 329 |
+
`You are an expert Python debugging agent in a reinforcement learning environment.`,
|
| 330 |
+
`Return ONLY the fixed Python code — no explanation, no markdown, no code fences.`,
|
| 331 |
+
``,
|
| 332 |
+
`Task: ${task.description}`,
|
| 333 |
+
``,
|
| 334 |
+
`BUGGY CODE:`,
|
| 335 |
+
obs.buggy_code,
|
| 336 |
+
``,
|
| 337 |
+
`ERROR LOG:`,
|
| 338 |
+
obs.error_log || "No errors yet",
|
| 339 |
+
``,
|
| 340 |
+
`TEST RESULTS:`,
|
| 341 |
+
obs.test_results || "No tests run yet",
|
| 342 |
+
``,
|
| 343 |
+
`PREVIOUS FAILED ATTEMPTS (${(obs.previous_attempts || []).length}):`,
|
| 344 |
+
(obs.previous_attempts || []).length > 0
|
| 345 |
+
? obs.previous_attempts.join("\n---\n")
|
| 346 |
+
: "None",
|
| 347 |
+
``,
|
| 348 |
+
`Return ONLY the corrected Python code:`,
|
| 349 |
+
].join("\n");
|
| 350 |
+
|
| 351 |
+
setTokenEst(Math.ceil(prompt.length / 4));
|
| 352 |
+
|
| 353 |
+
const baseUrl = ollamaUrl.replace(/\/+$/, "");
|
| 354 |
+
const res = await fetch(`${baseUrl}/api/generate`, {
|
| 355 |
+
method: "POST",
|
| 356 |
+
headers: { "Content-Type": "application/json" },
|
| 357 |
+
body: JSON.stringify({
|
| 358 |
+
model: ollamaModel,
|
| 359 |
+
prompt,
|
| 360 |
+
stream: false,
|
| 361 |
+
options: { temperature: 0.2, num_predict: 512 },
|
| 362 |
+
}),
|
| 363 |
+
});
|
| 364 |
+
|
| 365 |
+
if (!res.ok) {
|
| 366 |
+
const errText = await res.text();
|
| 367 |
+
throw new Error(`Ollama error ${res.status}: ${errText}`);
|
| 368 |
+
}
|
| 369 |
+
|
| 370 |
+
const data = await res.json();
|
| 371 |
+
let code = (data.response || "").trim();
|
| 372 |
+
|
| 373 |
+
// Strip markdown code fences if model adds them
|
| 374 |
+
code = code.replace(/^```[\w]*\n?/gm, "").replace(/```\s*$/gm, "").trim();
|
| 375 |
+
return code;
|
| 376 |
+
}, [ollamaUrl, ollamaModel, task]);
|
| 377 |
+
|
| 378 |
+
/* ──────────────────────────────────────────
|
| 379 |
+
STREAM TEXT (typing animation)
|
| 380 |
+
─────────────────────────────────────────── */
|
| 381 |
+
const streamText = useCallback((text, setter, onDone) => {
|
| 382 |
+
const delay = Math.max(4, 18 * speedMap[speed]);
|
| 383 |
+
let i = 0;
|
| 384 |
+
setter("");
|
| 385 |
+
setIsTyping(true);
|
| 386 |
+
const iv = setInterval(() => {
|
| 387 |
+
if (!runningRef.current) { clearInterval(iv); return; }
|
| 388 |
+
i++;
|
| 389 |
+
setter(text.slice(0, i));
|
| 390 |
+
if (i >= text.length) { clearInterval(iv); setIsTyping(false); if (onDone) onDone(); }
|
| 391 |
+
}, delay);
|
| 392 |
+
}, [speed]);
|
| 393 |
+
|
| 394 |
+
/* ────────────────────���─────────────────────
|
| 395 |
+
BUILD EXECUTION OUTPUT LINES from /step
|
| 396 |
+
─────────────────────────────────────────── */
|
| 397 |
+
const buildOutputLines = (stepResp) => {
|
| 398 |
+
const { reward, done, info, observation } = stepResp;
|
| 399 |
+
const meta = info?.execution_metadata || {};
|
| 400 |
+
const passed = meta.test_passed ?? "?";
|
| 401 |
+
const total = meta.test_total ?? "?";
|
| 402 |
+
const elapsed = (Math.random() * 0.003 + 0.001).toFixed(3);
|
| 403 |
+
const errors = meta.runtime_errors || observation?.error_log || "";
|
| 404 |
+
|
| 405 |
+
const lines = [];
|
| 406 |
+
if (reward >= 0.99 || (passed !== "?" && passed >= total)) {
|
| 407 |
+
lines.push(`\x1b[32m${"." .repeat(typeof total === "number" ? total : 3)}\x1b[0m`);
|
| 408 |
+
lines.push(`----------------------------------------------------------------------`);
|
| 409 |
+
lines.push(`Ran ${total} tests in ${elapsed}s`);
|
| 410 |
+
lines.push(``);
|
| 411 |
+
lines.push(`\x1b[32mOK\x1b[0m`);
|
| 412 |
+
} else if (passed > 0) {
|
| 413 |
+
const fail = total - passed;
|
| 414 |
+
lines.push(`\x1b[33m${"F".repeat(fail)}${"." .repeat(passed)}\x1b[0m`);
|
| 415 |
+
lines.push(``);
|
| 416 |
+
lines.push(`FAIL: partial solution — ${fail} test(s) failed`);
|
| 417 |
+
if (errors) lines.push(`RuntimeError: ${errors.split("\n")[0]}`);
|
| 418 |
+
lines.push(`----------------------------------------------------------------------`);
|
| 419 |
+
lines.push(`Ran ${total} tests in ${elapsed}s`);
|
| 420 |
+
lines.push(``);
|
| 421 |
+
lines.push(`\x1b[33mFAILED (failures=${fail})\x1b[0m`);
|
| 422 |
+
} else {
|
| 423 |
+
lines.push(`\x1b[31m${"F".repeat(typeof total === "number" ? total : 3)}\x1b[0m`);
|
| 424 |
+
lines.push(``);
|
| 425 |
+
if (errors) {
|
| 426 |
+
errors.split("\n").slice(0, 3).forEach(l => lines.push(l));
|
| 427 |
+
} else {
|
| 428 |
+
lines.push(`FAIL: all tests failed`);
|
| 429 |
+
}
|
| 430 |
+
lines.push(`----------------------------------------------------------------------`);
|
| 431 |
+
lines.push(`Ran ${total} tests in ${elapsed}s`);
|
| 432 |
+
lines.push(``);
|
| 433 |
+
lines.push(`\x1b[31mFAILED (errors=${typeof total === "number" ? total : "?"})\x1b[0m`);
|
| 434 |
+
}
|
| 435 |
+
return lines;
|
| 436 |
+
};
|
| 437 |
+
|
| 438 |
+
/* ──────────────────────────────────────────
|
| 439 |
+
STREAM OUTPUT LINES
|
| 440 |
+
─────────────────────────────────────────── */
|
| 441 |
+
const streamLines = useCallback((lines, onDone) => {
|
| 442 |
+
const delay = Math.max(60, 180 * speedMap[speed]);
|
| 443 |
+
let i = 0;
|
| 444 |
+
setExecOutput([]);
|
| 445 |
+
const iv = setInterval(() => {
|
| 446 |
+
if (!runningRef.current) { clearInterval(iv); return; }
|
| 447 |
+
i++;
|
| 448 |
+
setExecOutput(lines.slice(0, i));
|
| 449 |
+
if (i >= lines.length) { clearInterval(iv); if (onDone) onDone(); }
|
| 450 |
+
}, delay);
|
| 451 |
+
}, [speed]);
|
| 452 |
+
|
| 453 |
+
/* ──────────────────────────────────────────
|
| 454 |
+
RESET EPISODE
|
| 455 |
+
─────────────────────────────────────────── */
|
| 456 |
+
const resetEpisode = useCallback(() => {
|
| 457 |
+
runningRef.current = false;
|
| 458 |
+
setEnvState(null); setUiMode("idle");
|
| 459 |
+
setEpisodeLog([]); setRewards([]);
|
| 460 |
+
setStepCount(0); setIsDone(false);
|
| 461 |
+
setStreamingCode(""); setAgentCode("");
|
| 462 |
+
setExecOutput([]); setIsTyping(false);
|
| 463 |
+
setManualCode(""); setTokenEst(0);
|
| 464 |
+
setCollapsedEntries(new Set());
|
| 465 |
+
setErrorBanner("");
|
| 466 |
+
}, []);
|
| 467 |
+
|
| 468 |
+
/* ──────────────────────────────────────────
|
| 469 |
+
RUN ONE STEP
|
| 470 |
+
─────────────────────────────────────────── */
|
| 471 |
+
const runStep = useCallback(async (currentObs, currentStepCount) => {
|
| 472 |
+
if (!runningRef.current) return;
|
| 473 |
+
|
| 474 |
+
const mult = speedMap[speed];
|
| 475 |
+
const interStepDelay = Math.max(400, 1200 * mult);
|
| 476 |
+
|
| 477 |
+
/* 1. Agent thinking */
|
| 478 |
+
setUiMode("agent_thinking");
|
| 479 |
+
|
| 480 |
+
let fixedCode;
|
| 481 |
+
try {
|
| 482 |
+
fixedCode = manualMode
|
| 483 |
+
? (manualCode.trim() || currentObs.buggy_code)
|
| 484 |
+
: await callOllama(currentObs);
|
| 485 |
+
} catch (err) {
|
| 486 |
+
if (!runningRef.current) return;
|
| 487 |
+
setErrorBanner(`🦙 Ollama Error: ${err.message}`);
|
| 488 |
+
setUiMode("idle");
|
| 489 |
+
runningRef.current = false;
|
| 490 |
+
return;
|
| 491 |
+
}
|
| 492 |
+
if (!runningRef.current) return;
|
| 493 |
+
|
| 494 |
+
/* 2. Stream agent code */
|
| 495 |
+
await new Promise(resolve => streamText(fixedCode, setStreamingCode, resolve));
|
| 496 |
+
if (!runningRef.current) return;
|
| 497 |
+
setAgentCode(fixedCode);
|
| 498 |
+
|
| 499 |
+
/* 3. Call OpenEnv /step */
|
| 500 |
+
setUiMode("executing");
|
| 501 |
+
let stepResult;
|
| 502 |
+
try {
|
| 503 |
+
stepResult = await envStep(fixedCode);
|
| 504 |
+
} catch (err) {
|
| 505 |
+
if (!runningRef.current) return;
|
| 506 |
+
setErrorBanner(`🌐 OpenEnv Error: ${err.message}`);
|
| 507 |
+
setUiMode("idle");
|
| 508 |
+
runningRef.current = false;
|
| 509 |
+
return;
|
| 510 |
+
}
|
| 511 |
+
if (!runningRef.current) return;
|
| 512 |
+
|
| 513 |
+
const { observation: newObs, reward, done } = stepResult;
|
| 514 |
+
const meta = stepResult.info?.execution_metadata || {};
|
| 515 |
+
const passed = meta.test_passed ?? 0;
|
| 516 |
+
const total = meta.test_total ?? task.hints.length + 1;
|
| 517 |
+
const newStep = currentStepCount + 1;
|
| 518 |
+
|
| 519 |
+
/* 4. Stream execution output */
|
| 520 |
+
const outputLines = buildOutputLines(stepResult);
|
| 521 |
+
await new Promise(resolve => streamLines(outputLines, resolve));
|
| 522 |
+
if (!runningRef.current) return;
|
| 523 |
+
|
| 524 |
+
/* 5. Update state */
|
| 525 |
+
setEnvState(newObs);
|
| 526 |
+
setStepCount(newStep);
|
| 527 |
+
setRewards(prev => [...prev, reward]);
|
| 528 |
+
setIsDone(done);
|
| 529 |
+
|
| 530 |
+
const logEntry = {
|
| 531 |
+
step: newStep,
|
| 532 |
+
code_submitted: fixedCode,
|
| 533 |
+
reward, done, passed, total,
|
| 534 |
+
error_log: newObs?.error_log || "",
|
| 535 |
+
test_results: newObs?.test_results || "",
|
| 536 |
+
timestamp: new Date().toISOString(),
|
| 537 |
+
};
|
| 538 |
+
setEpisodeLog(prev => [logEntry, ...prev]);
|
| 539 |
+
|
| 540 |
+
/* 6. Done or continue */
|
| 541 |
+
if (done) {
|
| 542 |
+
setUiMode("done");
|
| 543 |
+
runningRef.current = false;
|
| 544 |
+
return;
|
| 545 |
+
}
|
| 546 |
+
|
| 547 |
+
/* Wait then continue */
|
| 548 |
+
await new Promise(r => setTimeout(r, interStepDelay));
|
| 549 |
+
if (!runningRef.current) return;
|
| 550 |
+
runStep(newObs, newStep);
|
| 551 |
+
}, [speed, manualMode, manualCode, callOllama, streamText, streamLines, envStep, task]);
|
| 552 |
+
|
| 553 |
+
/* ──────────────────────────────────────────
|
| 554 |
+
START EPISODE
|
| 555 |
+
─────────────────────────────────────────── */
|
| 556 |
+
const startEpisode = useCallback(async () => {
|
| 557 |
+
if (ollamaStatus !== "online" && !manualMode) {
|
| 558 |
+
setErrorBanner("🦙 Ollama is offline. Start Ollama or enable Manual Mode.");
|
| 559 |
+
return;
|
| 560 |
+
}
|
| 561 |
+
if (envStatus !== "online") {
|
| 562 |
+
setErrorBanner("🌐 OpenEnv server is offline. Run: uvicorn server.app:app --port 7860");
|
| 563 |
+
return;
|
| 564 |
+
}
|
| 565 |
+
|
| 566 |
+
resetEpisode();
|
| 567 |
+
setErrorBanner("");
|
| 568 |
+
|
| 569 |
+
await new Promise(r => setTimeout(r, 60));
|
| 570 |
+
runningRef.current = true;
|
| 571 |
+
setUiMode("resetting");
|
| 572 |
+
|
| 573 |
+
let initialObs;
|
| 574 |
+
try {
|
| 575 |
+
initialObs = await envReset(selectedTask);
|
| 576 |
+
} catch (err) {
|
| 577 |
+
setErrorBanner(`🌐 OpenEnv /reset Error: ${err.message}`);
|
| 578 |
+
setUiMode("idle");
|
| 579 |
+
runningRef.current = false;
|
| 580 |
+
return;
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
setEnvState(initialObs);
|
| 584 |
+
setTimeout(() => runStep(initialObs, 0), 400);
|
| 585 |
+
}, [ollamaStatus, envStatus, manualMode, resetEpisode, envReset, selectedTask, runStep]);
|
| 586 |
+
|
| 587 |
+
/* ──────────────────────────────────────────
|
| 588 |
+
COPY EPISODE JSON
|
| 589 |
+
─────────────────────────────────────────── */
|
| 590 |
+
const copyJSON = useCallback(() => {
|
| 591 |
+
const data = {
|
| 592 |
+
task: selectedTask,
|
| 593 |
+
model: ollamaModel,
|
| 594 |
+
timestamp: new Date().toISOString(),
|
| 595 |
+
total_steps: episodeLog.length,
|
| 596 |
+
final_reward: rewards[rewards.length - 1] ?? 0,
|
| 597 |
+
success: (rewards[rewards.length - 1] ?? 0) >= 0.99,
|
| 598 |
+
episode_log: [...episodeLog].reverse(),
|
| 599 |
+
};
|
| 600 |
+
navigator.clipboard.writeText(JSON.stringify(data, null, 2)).then(() => {
|
| 601 |
+
setCopied(true);
|
| 602 |
+
setTimeout(() => setCopied(false), 2200);
|
| 603 |
+
});
|
| 604 |
+
}, [selectedTask, ollamaModel, episodeLog, rewards]);
|
| 605 |
+
|
| 606 |
+
useEffect(() => { if (logRef.current) logRef.current.scrollTop = 0; }, [episodeLog.length]);
|
| 607 |
+
|
| 608 |
+
const totalReward = rewards.reduce((a, b) => a + b, 0);
|
| 609 |
+
const finalReward = rewards[rewards.length - 1] ?? 0;
|
| 610 |
+
const success = finalReward >= 0.99;
|
| 611 |
+
const isRunning = ["agent_thinking", "executing", "resetting"].includes(uiMode);
|
| 612 |
+
|
| 613 |
+
const termColor = line => {
|
| 614 |
+
if (line.includes("OK")) return "#00ff88";
|
| 615 |
+
if (line.includes("FAIL") || line.includes("Error") || line.includes("error")) return "#ff4455";
|
| 616 |
+
if (line.includes("---") || line.includes("Ran")) return "#64748b";
|
| 617 |
+
return "#94a3b8";
|
| 618 |
+
};
|
| 619 |
+
|
| 620 |
+
/* ──────────────────────────────────────────
|
| 621 |
+
RENDER
|
| 622 |
+
─────────────────────────────────────────── */
|
| 623 |
+
return (
|
| 624 |
+
<>
|
| 625 |
+
<FontLoader />
|
| 626 |
+
<GlobalStyles />
|
| 627 |
+
<div style={{ minHeight: "100vh", background: "#0a0e1a", display: "flex", flexDirection: "column" }}>
|
| 628 |
+
|
| 629 |
+
{/* ── NAVBAR ── */}
|
| 630 |
+
<nav style={{
|
| 631 |
+
background: "#070b14", borderBottom: "1px solid #1e293b",
|
| 632 |
+
padding: "0 24px", height: 54, display: "flex", alignItems: "center",
|
| 633 |
+
justifyContent: "space-between", position: "sticky", top: 0, zIndex: 100,
|
| 634 |
+
}}>
|
| 635 |
+
<div style={{ display: "flex", alignItems: "center", gap: 10 }}>
|
| 636 |
+
<div style={{ position: "relative" }}>
|
| 637 |
+
<span style={{ fontFamily: "'Rajdhani',sans-serif", fontWeight: 700, fontSize: 20, letterSpacing: "0.06em", color: "#e2e8f0" }}>
|
| 638 |
+
Code<span style={{ color: "#00ff88" }}>Arena</span>
|
| 639 |
+
<span style={{ color: "#a78bfa" }}> RL</span>
|
| 640 |
+
</span>
|
| 641 |
+
<span className="dot-live" style={{ position: "absolute", top: 2, right: -12, width: 7, height: 7 }} />
|
| 642 |
+
</div>
|
| 643 |
+
<span className="badge badge-ollama" style={{ marginLeft: 4 }}>🦙 Ollama</span>
|
| 644 |
+
</div>
|
| 645 |
+
|
| 646 |
+
<div style={{ overflow: "hidden", flex: 1, margin: "0 32px", maxWidth: 360 }}>
|
| 647 |
+
<div style={{ display: "flex", gap: 32, animation: "ticker 14s linear infinite", whiteSpace: "nowrap", fontFamily: "'JetBrains Mono',monospace", fontSize: 10, color: "#1e293b", letterSpacing: "0.08em" }}>
|
| 648 |
+
{[...Array(4)].map((_, i) => <span key={i}>AGENT BENCHMARKING · PYTHON DEBUG · RL EVAL · OPENENV · OLLAMA · </span>)}
|
| 649 |
+
</div>
|
| 650 |
+
</div>
|
| 651 |
+
|
| 652 |
+
<div style={{ display: "flex", alignItems: "center", gap: 10 }}>
|
| 653 |
+
{/* Live status pills */}
|
| 654 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace", display: "flex", alignItems: "center", gap: 4, color: "#64748b" }}>
|
| 655 |
+
<span className={`status-dot ${ollamaStatus}`} />
|
| 656 |
+
Ollama
|
| 657 |
+
</div>
|
| 658 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace", display: "flex", alignItems: "center", gap: 4, color: "#64748b" }}>
|
| 659 |
+
<span className={`status-dot ${envStatus}`} />
|
| 660 |
+
OpenEnv
|
| 661 |
+
</div>
|
| 662 |
+
<span className="badge badge-info">Scaler SST 2025</span>
|
| 663 |
+
<span className="badge" style={{ background: "rgba(139,92,246,0.15)", color: "#a78bfa", border: "1px solid rgba(139,92,246,0.3)" }}>
|
| 664 |
+
Theme #3 · World Modeling
|
| 665 |
+
</span>
|
| 666 |
+
</div>
|
| 667 |
+
</nav>
|
| 668 |
+
|
| 669 |
+
{/* ── ERROR BANNER ── */}
|
| 670 |
+
{errorBanner && (
|
| 671 |
+
<div style={{
|
| 672 |
+
background: "rgba(255,68,85,0.12)", borderBottom: "1px solid rgba(255,68,85,0.3)",
|
| 673 |
+
padding: "10px 24px", fontFamily: "'JetBrains Mono',monospace", fontSize: 12,
|
| 674 |
+
color: "#ff8899", display: "flex", justifyContent: "space-between", alignItems: "center",
|
| 675 |
+
}}>
|
| 676 |
+
{errorBanner}
|
| 677 |
+
<button onClick={() => setErrorBanner("")} className="btn btn-ghost" style={{ fontSize: 11, padding: "2px 10px" }}>✕</button>
|
| 678 |
+
</div>
|
| 679 |
+
)}
|
| 680 |
+
|
| 681 |
+
{/* ── MAIN GRID ── */}
|
| 682 |
+
<div style={{ flex: 1, display: "grid", gridTemplateColumns: "25% 45% 30%", height: `calc(100vh - ${54 + (errorBanner ? 41 : 0)}px)`, overflow: "hidden" }}>
|
| 683 |
+
|
| 684 |
+
{/* ════════════════════ LEFT PANEL ════════════════════ */}
|
| 685 |
+
<div style={{ padding: "16px 14px", borderRight: "1px solid #1e293b", overflowY: "auto", display: "flex", flexDirection: "column", gap: 14 }}>
|
| 686 |
+
|
| 687 |
+
{/* Ollama Config */}
|
| 688 |
+
<div className="panel">
|
| 689 |
+
<div className="panel-header">🦙 Ollama Config</div>
|
| 690 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 10 }}>
|
| 691 |
+
<div>
|
| 692 |
+
<div style={{ fontSize: 10, color: "#64748b", marginBottom: 4, letterSpacing: "0.08em", textTransform: "uppercase" }}>Base URL</div>
|
| 693 |
+
<input className="cfg-input" value={ollamaUrl} onChange={e => setOllamaUrl(e.target.value)} placeholder="http://localhost:11434" />
|
| 694 |
+
</div>
|
| 695 |
+
<div>
|
| 696 |
+
<div style={{ fontSize: 10, color: "#64748b", marginBottom: 4, letterSpacing: "0.08em", textTransform: "uppercase" }}>Model</div>
|
| 697 |
+
{availableModels.length > 0 ? (
|
| 698 |
+
<select className="cfg-input" value={ollamaModel} onChange={e => setOllamaModel(e.target.value)}>
|
| 699 |
+
{availableModels.map(m => <option key={m} value={m}>{m}</option>)}
|
| 700 |
+
</select>
|
| 701 |
+
) : (
|
| 702 |
+
<input className="cfg-input" value={ollamaModel} onChange={e => setOllamaModel(e.target.value)} placeholder="codellama" />
|
| 703 |
+
)}
|
| 704 |
+
</div>
|
| 705 |
+
<div style={{ display: "flex", gap: 6 }}>
|
| 706 |
+
<button className="btn btn-ghost" style={{ flex: 1, justifyContent: "center", fontSize: 11 }} onClick={probeOllama}>
|
| 707 |
+
{ollamaStatus === "checking" ? <><span className="spinner" />Checking...</> : `↻ ${ollamaStatus === "online" ? "✓ Online" : "✗ Offline"}`}
|
| 708 |
+
</button>
|
| 709 |
+
</div>
|
| 710 |
+
{ollamaStatus === "offline" && (
|
| 711 |
+
<div style={{ fontSize: 10, color: "#ffaa00", fontFamily: "'JetBrains Mono',monospace", background: "rgba(255,170,0,0.08)", border: "1px solid rgba(255,170,0,0.2)", borderRadius: 4, padding: "6px 8px" }}>
|
| 712 |
+
💡 Run: <strong>ollama serve</strong><br />
|
| 713 |
+
Then pull a model:<br />
|
| 714 |
+
<strong>ollama pull codellama</strong>
|
| 715 |
+
</div>
|
| 716 |
+
)}
|
| 717 |
+
</div>
|
| 718 |
+
</div>
|
| 719 |
+
|
| 720 |
+
{/* OpenEnv Config */}
|
| 721 |
+
<div className="panel">
|
| 722 |
+
<div className="panel-header">🌐 OpenEnv Server</div>
|
| 723 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 10 }}>
|
| 724 |
+
<div>
|
| 725 |
+
<div style={{ fontSize: 10, color: "#64748b", marginBottom: 4, letterSpacing: "0.08em", textTransform: "uppercase" }}>FastAPI URL</div>
|
| 726 |
+
<input className="cfg-input" value={envUrl} onChange={e => setEnvUrl(e.target.value)} placeholder="http://localhost:7860" />
|
| 727 |
+
</div>
|
| 728 |
+
<div style={{ display: "flex", gap: 6 }}>
|
| 729 |
+
<button className="btn btn-ghost" style={{ flex: 1, justifyContent: "center", fontSize: 11 }} onClick={probeEnv}>
|
| 730 |
+
{envStatus === "checking" ? <><span className="spinner" />Checking...</> : `↻ ${envStatus === "online" ? "✓ Online" : "✗ Offline"}`}
|
| 731 |
+
</button>
|
| 732 |
+
</div>
|
| 733 |
+
{envStatus === "offline" && (
|
| 734 |
+
<div style={{ fontSize: 10, color: "#ff8899", fontFamily: "'JetBrains Mono',monospace", background: "rgba(255,68,85,0.08)", border: "1px solid rgba(255,68,85,0.2)", borderRadius: 4, padding: "6px 8px" }}>
|
| 735 |
+
⚠ Start server:<br />
|
| 736 |
+
<strong>uvicorn server.app:app --port 7860</strong>
|
| 737 |
+
</div>
|
| 738 |
+
)}
|
| 739 |
+
</div>
|
| 740 |
+
</div>
|
| 741 |
+
|
| 742 |
+
{/* Task Selector */}
|
| 743 |
+
<div className="panel">
|
| 744 |
+
<div className="panel-header">🎯 Select Task</div>
|
| 745 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 8 }}>
|
| 746 |
+
{Object.values(TASKS).map(t => {
|
| 747 |
+
const isActive = selectedTask === t.id;
|
| 748 |
+
const ac = t.difficulty === "easy" ? "active" : t.difficulty === "medium" ? "active-medium" : "active-hard";
|
| 749 |
+
return (
|
| 750 |
+
<button key={t.id} className={`task-btn ${isActive ? ac : ""}`} disabled={isRunning}
|
| 751 |
+
onClick={() => { setSelectedTask(t.id); resetEpisode(); }}>
|
| 752 |
+
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 4 }}>
|
| 753 |
+
<span style={{ fontWeight: 700, fontSize: 13 }}>{t.name}</span>
|
| 754 |
+
<span className={`badge badge-${t.difficulty}`}>{t.label}</span>
|
| 755 |
+
</div>
|
| 756 |
+
<div style={{ fontSize: 11, color: "#64748b" }}>{t.id}</div>
|
| 757 |
+
</button>
|
| 758 |
+
);
|
| 759 |
+
})}
|
| 760 |
+
</div>
|
| 761 |
+
</div>
|
| 762 |
+
|
| 763 |
+
{/* Task Info */}
|
| 764 |
+
<div className="panel">
|
| 765 |
+
<div className="panel-header">📋 Task Info</div>
|
| 766 |
+
<div style={{ padding: "12px 14px" }}>
|
| 767 |
+
<p style={{ fontSize: 12, color: "#94a3b8", lineHeight: 1.6, marginBottom: 10 }}>{task.description}</p>
|
| 768 |
+
<div style={{ display: "flex", flexDirection: "column", gap: 6 }}>
|
| 769 |
+
{task.hints.map((h, i) => (
|
| 770 |
+
<div key={i} style={{ fontSize: 11, color: "#ffaa00", fontFamily: "'JetBrains Mono',monospace", background: "rgba(255,170,0,0.08)", border: "1px solid rgba(255,170,0,0.2)", borderRadius: 4, padding: "4px 8px" }}>
|
| 771 |
+
💡 {h}
|
| 772 |
+
</div>
|
| 773 |
+
))}
|
| 774 |
+
</div>
|
| 775 |
+
</div>
|
| 776 |
+
</div>
|
| 777 |
+
|
| 778 |
+
{/* Options */}
|
| 779 |
+
<div className="panel">
|
| 780 |
+
<div className="panel-header">⚙️ Options</div>
|
| 781 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 12 }}>
|
| 782 |
+
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
|
| 783 |
+
<div>
|
| 784 |
+
<div style={{ fontSize: 12, color: "#94a3b8" }}>Manual Mode</div>
|
| 785 |
+
<div style={{ fontSize: 10, color: "#334155" }}>Type fix yourself</div>
|
| 786 |
+
</div>
|
| 787 |
+
<button onClick={() => setManualMode(m => !m)} style={{
|
| 788 |
+
width: 44, height: 24, borderRadius: 12, border: "none", cursor: "pointer",
|
| 789 |
+
background: manualMode ? "#00ff88" : "#1e293b", position: "relative", transition: "background 0.2s",
|
| 790 |
+
}}>
|
| 791 |
+
<span style={{ position: "absolute", top: 3, left: manualMode ? 22 : 3, width: 18, height: 18, background: "#fff", borderRadius: "50%", transition: "left 0.2s", display: "block" }} />
|
| 792 |
+
</button>
|
| 793 |
+
</div>
|
| 794 |
+
<div>
|
| 795 |
+
<div style={{ display: "flex", justifyContent: "space-between", marginBottom: 6 }}>
|
| 796 |
+
<span style={{ fontSize: 12, color: "#94a3b8" }}>Speed</span>
|
| 797 |
+
<span style={{ fontSize: 11, color: "#00ff88", fontFamily: "'JetBrains Mono',monospace" }}>{speed.toUpperCase()}</span>
|
| 798 |
+
</div>
|
| 799 |
+
<div style={{ display: "flex", gap: 6 }}>
|
| 800 |
+
{["slow", "normal", "fast"].map(s => (
|
| 801 |
+
<button key={s} className="btn btn-ghost" style={{ flex: 1, padding: "5px 0", fontSize: 10, borderColor: speed === s ? "#00ff88" : "#1e293b", color: speed === s ? "#00ff88" : "#64748b" }}
|
| 802 |
+
onClick={() => setSpeed(s)}>{s.charAt(0).toUpperCase() + s.slice(1)}</button>
|
| 803 |
+
))}
|
| 804 |
+
</div>
|
| 805 |
+
</div>
|
| 806 |
+
</div>
|
| 807 |
+
</div>
|
| 808 |
+
|
| 809 |
+
{/* Episode Controls */}
|
| 810 |
+
<div className="panel">
|
| 811 |
+
<div className="panel-header">▶ Episode Controls</div>
|
| 812 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 8 }}>
|
| 813 |
+
<button className="btn btn-primary" style={{ width: "100%", justifyContent: "center" }}
|
| 814 |
+
disabled={isRunning} onClick={startEpisode}>
|
| 815 |
+
{isRunning ? <><span className="spinner" />Running...</> : "▶ Start Episode"}
|
| 816 |
+
</button>
|
| 817 |
+
<button className="btn btn-danger" style={{ width: "100%", justifyContent: "center" }}
|
| 818 |
+
onClick={() => { runningRef.current = false; resetEpisode(); }}>
|
| 819 |
+
⏹ Reset
|
| 820 |
+
</button>
|
| 821 |
+
</div>
|
| 822 |
+
</div>
|
| 823 |
+
|
| 824 |
+
{/* Episode Stats */}
|
| 825 |
+
{stepCount > 0 && (
|
| 826 |
+
<div className="panel fade-in">
|
| 827 |
+
<div className="panel-header">📊 Episode Stats</div>
|
| 828 |
+
<div style={{ padding: "12px 14px", display: "flex", flexDirection: "column", gap: 8 }}>
|
| 829 |
+
<div className="stat-card">
|
| 830 |
+
<div style={{ fontSize: 10, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.1em" }}>Step</div>
|
| 831 |
+
<div style={{ fontSize: 22, fontWeight: 700, color: "#e2e8f0", fontFamily: "'JetBrains Mono',monospace" }}>
|
| 832 |
+
{stepCount}<span style={{ fontSize: 12, color: "#64748b" }}> /5</span>
|
| 833 |
+
</div>
|
| 834 |
+
</div>
|
| 835 |
+
<div className="stat-card">
|
| 836 |
+
<div style={{ fontSize: 10, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.1em" }}>Cumulative Reward</div>
|
| 837 |
+
<div style={{ fontSize: 22, fontWeight: 700, color: rewardColor(totalReward / (rewards.length || 1)), fontFamily: "'JetBrains Mono',monospace" }}>
|
| 838 |
+
{totalReward.toFixed(3)}
|
| 839 |
+
</div>
|
| 840 |
+
</div>
|
| 841 |
+
<div className="stat-card">
|
| 842 |
+
<div style={{ fontSize: 10, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.1em", marginBottom: 4 }}>Status</div>
|
| 843 |
+
<span className="badge" style={{
|
| 844 |
+
background: uiMode === "done" && success ? "rgba(0,255,136,0.15)" : uiMode === "done" ? "rgba(255,68,85,0.15)" : "rgba(99,179,237,0.15)",
|
| 845 |
+
color: uiMode === "done" && success ? "#00ff88" : uiMode === "done" ? "#ff4455" : "#63b3ed",
|
| 846 |
+
border: `1px solid ${uiMode === "done" && success ? "rgba(0,255,136,0.3)" : uiMode === "done" ? "rgba(255,68,85,0.3)" : "rgba(99,179,237,0.3)"}`,
|
| 847 |
+
}}>
|
| 848 |
+
{{ idle: "IDLE", resetting: "RESETTING", agent_thinking: "THINKING", executing: "EXECUTING", done: success ? "✓ SUCCESS" : "✗ FAILED" }[uiMode]}
|
| 849 |
+
</span>
|
| 850 |
+
</div>
|
| 851 |
+
{tokenEst > 0 && (
|
| 852 |
+
<div style={{ fontSize: 10, color: "#334155", fontFamily: "'JetBrains Mono',monospace", textAlign: "right" }}>
|
| 853 |
+
~{tokenEst} prompt tokens
|
| 854 |
+
</div>
|
| 855 |
+
)}
|
| 856 |
+
</div>
|
| 857 |
+
</div>
|
| 858 |
+
)}
|
| 859 |
+
</div>
|
| 860 |
+
|
| 861 |
+
{/* ════════════════════ CENTER PANEL ════════════════════ */}
|
| 862 |
+
<div style={{ padding: "16px 14px", borderRight: "1px solid #1e293b", overflowY: "auto", display: "flex", flexDirection: "column", gap: 14 }}>
|
| 863 |
+
|
| 864 |
+
{/* Buggy Code */}
|
| 865 |
+
<div className="panel">
|
| 866 |
+
<div className="panel-header">
|
| 867 |
+
<span style={{ color: "#ff4455" }}>⚠</span> Buggy Code
|
| 868 |
+
<span style={{ marginLeft: "auto" }}><span className={`badge badge-${task.difficulty}`}>{task.id}</span></span>
|
| 869 |
+
</div>
|
| 870 |
+
<div style={{ padding: 14 }}>
|
| 871 |
+
<pre className="code-block" style={{ color: "#f8c8c8", maxHeight: 170, overflowY: "auto" }}>
|
| 872 |
+
{/* Show real buggy code from env if available, else fallback to hardcoded */}
|
| 873 |
+
{(envState?.buggy_code) || task.buggy_code}
|
| 874 |
+
</pre>
|
| 875 |
+
</div>
|
| 876 |
+
</div>
|
| 877 |
+
|
| 878 |
+
{/* Agent's Fix */}
|
| 879 |
+
<div
|
| 880 |
+
className={`panel ${uiMode === "agent_thinking" ? "thinking-border" : ""} ${uiMode === "done" && success ? "success-glow" : ""}`}
|
| 881 |
+
style={{ transition: "box-shadow 0.3s ease" }}
|
| 882 |
+
>
|
| 883 |
+
<div className="panel-header">
|
| 884 |
+
<span style={{ color: "#a78bfa" }}>🦙</span> Agent's Fix
|
| 885 |
+
{uiMode === "agent_thinking" && (
|
| 886 |
+
<span style={{ marginLeft: 8, display: "flex", alignItems: "center", gap: 6 }}>
|
| 887 |
+
<span className="spinner" />
|
| 888 |
+
<span className="blink" style={{ color: "#a78bfa", fontSize: 10 }}>OLLAMA THINKING...</span>
|
| 889 |
+
</span>
|
| 890 |
+
)}
|
| 891 |
+
<span style={{ marginLeft: "auto", fontSize: 10, color: "#334155", fontFamily: "'JetBrains Mono',monospace" }}>
|
| 892 |
+
{ollamaModel}
|
| 893 |
+
</span>
|
| 894 |
+
</div>
|
| 895 |
+
<div style={{ padding: 14 }}>
|
| 896 |
+
{manualMode && uiMode === "idle" ? (
|
| 897 |
+
<textarea rows={8} value={manualCode} onChange={e => setManualCode(e.target.value)}
|
| 898 |
+
placeholder={`# Enter your fix here...\n${task.buggy_code}`} style={{ minHeight: 160 }} />
|
| 899 |
+
) : (
|
| 900 |
+
<pre className="code-block" style={{ minHeight: 160, maxHeight: 240, overflowY: "auto" }}>
|
| 901 |
+
{streamingCode || agentCode || (
|
| 902 |
+
<span style={{ color: "#334155" }}>
|
| 903 |
+
{uiMode === "idle" ? "// Agent's fix will appear here..." : uiMode === "resetting" ? "// Calling /reset on OpenEnv..." : ""}
|
| 904 |
+
</span>
|
| 905 |
+
)}
|
| 906 |
+
{isTyping && <span className="blink" style={{ borderRight: "2px solid #a78bfa" }}> </span>}
|
| 907 |
+
</pre>
|
| 908 |
+
)}
|
| 909 |
+
</div>
|
| 910 |
+
</div>
|
| 911 |
+
|
| 912 |
+
{/* Execution Output (from real /step endpoint) */}
|
| 913 |
+
<div className="panel">
|
| 914 |
+
<div className="panel-header">
|
| 915 |
+
💻 Execution Output
|
| 916 |
+
<span style={{ marginLeft: 6, fontSize: 9, color: "#334155", fontFamily: "'JetBrains Mono',monospace" }}>via OpenEnv /step</span>
|
| 917 |
+
{uiMode === "executing" && (
|
| 918 |
+
<span style={{ marginLeft: 8, display: "flex", alignItems: "center", gap: 6 }}>
|
| 919 |
+
<span className="spinner" />
|
| 920 |
+
<span style={{ color: "#ffaa00", fontSize: 10 }}>RUNNING TESTS...</span>
|
| 921 |
+
</span>
|
| 922 |
+
)}
|
| 923 |
+
</div>
|
| 924 |
+
<div style={{ padding: 14 }}>
|
| 925 |
+
<div className="terminal-block" style={{ minHeight: 120, maxHeight: 200, overflowY: "auto" }}>
|
| 926 |
+
{execOutput.length === 0 ? (
|
| 927 |
+
<span style={{ color: "#334155" }}>$ python -m pytest // awaiting /step...</span>
|
| 928 |
+
) : (
|
| 929 |
+
execOutput.map((line, i) => (
|
| 930 |
+
<div key={i} style={{ color: termColor(line) }}><AnsiLine text={line} /></div>
|
| 931 |
+
))
|
| 932 |
+
)}
|
| 933 |
+
{uiMode === "executing" && <span className="blink" style={{ color: "#00ff88" }}>█</span>}
|
| 934 |
+
</div>
|
| 935 |
+
</div>
|
| 936 |
+
</div>
|
| 937 |
+
|
| 938 |
+
{/* Done Card */}
|
| 939 |
+
{uiMode === "done" && (
|
| 940 |
+
<div className={`panel fade-in ${success ? "success-glow" : ""}`} style={{
|
| 941 |
+
border: `1px solid ${success ? "#00ff88" : "#ff4455"}`,
|
| 942 |
+
background: success ? "rgba(0,255,136,0.05)" : "rgba(255,68,85,0.05)",
|
| 943 |
+
}}>
|
| 944 |
+
<div style={{ padding: 20, textAlign: "center" }}>
|
| 945 |
+
<div style={{ fontSize: 36, marginBottom: 8 }}>{success ? "🏆" : "💀"}</div>
|
| 946 |
+
<div style={{ fontFamily: "'Rajdhani',sans-serif", fontWeight: 700, fontSize: 22, color: success ? "#00ff88" : "#ff4455", letterSpacing: "0.08em", marginBottom: 4 }}>
|
| 947 |
+
{success ? "EPISODE SUCCESS!" : "EPISODE FAILED"}
|
| 948 |
+
</div>
|
| 949 |
+
<div style={{ fontSize: 12, color: "#64748b", marginBottom: 16 }}>
|
| 950 |
+
Model: <span style={{ color: "#a78bfa", fontFamily: "'JetBrains Mono',monospace" }}>{ollamaModel}</span>
|
| 951 |
+
· Steps: {stepCount}
|
| 952 |
+
· Final Reward:
|
| 953 |
+
<span style={{ color: rewardColor(finalReward), fontFamily: "'JetBrains Mono',monospace" }}>{finalReward.toFixed(4)}</span>
|
| 954 |
+
</div>
|
| 955 |
+
<div style={{ display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: 8 }}>
|
| 956 |
+
{[
|
| 957 |
+
{ label: "Steps", value: stepCount },
|
| 958 |
+
{ label: "Avg Reward", value: (totalReward / (rewards.length || 1)).toFixed(3) },
|
| 959 |
+
{ label: "Final Reward", value: finalReward.toFixed(3) },
|
| 960 |
+
].map(s => (
|
| 961 |
+
<div className="stat-card" key={s.label} style={{ textAlign: "center" }}>
|
| 962 |
+
<div style={{ fontSize: 10, color: "#64748b", textTransform: "uppercase", letterSpacing: "0.1em" }}>{s.label}</div>
|
| 963 |
+
<div style={{ fontSize: 18, fontWeight: 700, color: success ? "#00ff88" : "#ff4455", fontFamily: "'JetBrains Mono',monospace" }}>{s.value}</div>
|
| 964 |
+
</div>
|
| 965 |
+
))}
|
| 966 |
+
</div>
|
| 967 |
+
</div>
|
| 968 |
+
</div>
|
| 969 |
+
)}
|
| 970 |
+
</div>
|
| 971 |
+
|
| 972 |
+
{/* ════════════════════ RIGHT PANEL ════════════════════ */}
|
| 973 |
+
<div style={{ padding: "16px 14px", overflowY: "auto", display: "flex", flexDirection: "column", gap: 14 }}>
|
| 974 |
+
|
| 975 |
+
{/* Reward Chart */}
|
| 976 |
+
<div className="panel">
|
| 977 |
+
<div className="panel-header">
|
| 978 |
+
📈 Reward Chart
|
| 979 |
+
<span style={{ marginLeft: "auto", fontSize: 10, fontFamily: "'JetBrains Mono',monospace", color: "#334155" }}>Steps 1–5</span>
|
| 980 |
+
</div>
|
| 981 |
+
<div style={{ padding: "8px 14px 14px" }}>
|
| 982 |
+
<RewardChart rewards={rewards} />
|
| 983 |
+
{rewards.length === 0 && (
|
| 984 |
+
<div style={{ textAlign: "center", color: "#334155", fontSize: 11, fontFamily: "'JetBrains Mono',monospace", marginTop: 4 }}>
|
| 985 |
+
// No data yet
|
| 986 |
+
</div>
|
| 987 |
+
)}
|
| 988 |
+
</div>
|
| 989 |
+
</div>
|
| 990 |
+
|
| 991 |
+
{/* OpenEnv Live State */}
|
| 992 |
+
{envState && (
|
| 993 |
+
<div className="panel fade-in">
|
| 994 |
+
<div className="panel-header">🔭 OpenEnv State</div>
|
| 995 |
+
<div style={{ padding: "10px 14px", display: "flex", flexDirection: "column", gap: 8 }}>
|
| 996 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace" }}>
|
| 997 |
+
<span style={{ color: "#64748b" }}>test_results: </span>
|
| 998 |
+
<span style={{ color: "#00ff88" }}>{envState.test_results || "—"}</span>
|
| 999 |
+
</div>
|
| 1000 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace" }}>
|
| 1001 |
+
<span style={{ color: "#64748b" }}>error_log: </span>
|
| 1002 |
+
<span style={{ color: "#ff8899" }}>{envState.error_log ? envState.error_log.slice(0, 80) + "..." : "—"}</span>
|
| 1003 |
+
</div>
|
| 1004 |
+
<div style={{ fontSize: 11, fontFamily: "'JetBrains Mono',monospace" }}>
|
| 1005 |
+
<span style={{ color: "#64748b" }}>prev_attempts: </span>
|
| 1006 |
+
<span style={{ color: "#ffaa00" }}>{(envState.previous_attempts || []).length}</span>
|
| 1007 |
+
</div>
|
| 1008 |
+
</div>
|
| 1009 |
+
</div>
|
| 1010 |
+
)}
|
| 1011 |
+
|
| 1012 |
+
{/* Episode Log */}
|
| 1013 |
+
<div className="panel" style={{ flex: 1, display: "flex", flexDirection: "column" }}>
|
| 1014 |
+
<div className="panel-header" style={{ justifyContent: "space-between" }}>
|
| 1015 |
+
<div style={{ display: "flex", alignItems: "center", gap: 8 }}>
|
| 1016 |
+
📜 Episode Log
|
| 1017 |
+
{episodeLog.length > 0 && (
|
| 1018 |
+
<span className="badge badge-info" style={{ fontSize: 9 }}>{episodeLog.length} step{episodeLog.length !== 1 ? "s" : ""}</span>
|
| 1019 |
+
)}
|
| 1020 |
+
</div>
|
| 1021 |
+
{episodeLog.length > 0 && (
|
| 1022 |
+
<button className="btn btn-ghost" style={{ padding: "3px 10px", fontSize: 10 }} onClick={copyJSON}>
|
| 1023 |
+
{copied ? "✓ Copied!" : "⧉ Copy JSON"}
|
| 1024 |
+
</button>
|
| 1025 |
+
)}
|
| 1026 |
+
</div>
|
| 1027 |
+
<div ref={logRef} style={{ flex: 1, overflowY: "auto", padding: "10px 12px", minHeight: 200, maxHeight: 420 }}>
|
| 1028 |
+
{episodeLog.length === 0 ? (
|
| 1029 |
+
<div style={{ textAlign: "center", color: "#334155", fontSize: 11, fontFamily: "'JetBrains Mono',monospace", padding: "30px 0" }}>
|
| 1030 |
+
// Episode log will appear here
|
| 1031 |
+
</div>
|
| 1032 |
+
) : (
|
| 1033 |
+
episodeLog.map((entry, idx) => {
|
| 1034 |
+
const isCollapsed = collapsedEntries.has(idx);
|
| 1035 |
+
return (
|
| 1036 |
+
<div key={idx} className="log-entry">
|
| 1037 |
+
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", cursor: "pointer" }}
|
| 1038 |
+
onClick={() => setCollapsedEntries(s => { const ns = new Set(s); ns.has(idx) ? ns.delete(idx) : ns.add(idx); return ns; })}>
|
| 1039 |
+
<span style={{ fontFamily: "'JetBrains Mono',monospace", fontSize: 11, color: "#64748b" }}>STEP {entry.step}</span>
|
| 1040 |
+
<span style={{ display: "flex", alignItems: "center", gap: 6 }}>
|
| 1041 |
+
<span style={{ fontFamily: "'JetBrains Mono',monospace", fontSize: 12, fontWeight: 700, color: rewardColor(entry.reward) }}>
|
| 1042 |
+
R={entry.reward.toFixed(3)}
|
| 1043 |
+
</span>
|
| 1044 |
+
<span style={{ color: "#334155", fontSize: 10 }}>{isCollapsed ? "▶" : "▼"}</span>
|
| 1045 |
+
</span>
|
| 1046 |
+
</div>
|
| 1047 |
+
<div className="reward-bar-outer">
|
| 1048 |
+
<div className="reward-bar-inner" style={{
|
| 1049 |
+
width: `${entry.reward * 100}%`,
|
| 1050 |
+
background: `linear-gradient(90deg, ${rewardColor(0)}, ${rewardColor(entry.reward)})`,
|
| 1051 |
+
}} />
|
| 1052 |
+
</div>
|
| 1053 |
+
<div style={{ fontSize: 10, color: "#64748b", fontFamily: "'JetBrains Mono',monospace", marginTop: 6 }}>
|
| 1054 |
+
{entry.passed}/{entry.total} tests ·{" "}
|
| 1055 |
+
{entry.done ? (entry.reward >= 0.99 ? "✅ SUCCESS" : "❌ DONE") : "⏳ continuing"}
|
| 1056 |
+
</div>
|
| 1057 |
+
{!isCollapsed && (
|
| 1058 |
+
<>
|
| 1059 |
+
{entry.test_results && (
|
| 1060 |
+
<div style={{ fontSize: 10, color: "#a78bfa", fontFamily: "'JetBrains Mono',monospace", marginTop: 4 }}>
|
| 1061 |
+
{entry.test_results}
|
| 1062 |
+
</div>
|
| 1063 |
+
)}
|
| 1064 |
+
{entry.code_submitted && (
|
| 1065 |
+
<pre className="code-block" style={{
|
| 1066 |
+
marginTop: 8, fontSize: 10, maxHeight: 100, overflowY: "auto",
|
| 1067 |
+
color: entry.reward >= 0.99 ? "#a8d8a8" : entry.reward >= 0.5 ? "#ffd580" : "#f8c8c8",
|
| 1068 |
+
}}>{entry.code_submitted}</pre>
|
| 1069 |
+
)}
|
| 1070 |
+
</>
|
| 1071 |
+
)}
|
| 1072 |
+
</div>
|
| 1073 |
+
);
|
| 1074 |
+
})
|
| 1075 |
+
)}
|
| 1076 |
+
</div>
|
| 1077 |
+
</div>
|
| 1078 |
+
</div>
|
| 1079 |
+
</div>
|
| 1080 |
+
</div>
|
| 1081 |
+
</>
|
| 1082 |
+
);
|
| 1083 |
+
}
|
frontend/src/assets/hero.png
ADDED
|
frontend/src/assets/react.svg
ADDED
|
|
frontend/src/assets/vite.svg
ADDED
|
|
frontend/src/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
/* Reset handled inside CodeArenaRL GlobalStyles */
|
frontend/src/main.jsx
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react'
|
| 2 |
+
import ReactDOM from 'react-dom/client'
|
| 3 |
+
import App from './App.jsx'
|
| 4 |
+
|
| 5 |
+
ReactDOM.createRoot(document.getElementById('root')).render(
|
| 6 |
+
<React.StrictMode>
|
| 7 |
+
<App />
|
| 8 |
+
</React.StrictMode>,
|
| 9 |
+
)
|
frontend/vite.config.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
import react from '@vitejs/plugin-react'
|
| 3 |
+
|
| 4 |
+
// https://vite.dev/config/
|
| 5 |
+
export default defineConfig({
|
| 6 |
+
plugins: [react()],
|
| 7 |
+
server: {
|
| 8 |
+
port: 3000,
|
| 9 |
+
proxy: {
|
| 10 |
+
// Proxy OpenEnv FastAPI calls → avoids CORS
|
| 11 |
+
'/reset': { target: 'http://localhost:7860', changeOrigin: true },
|
| 12 |
+
'/step': { target: 'http://localhost:7860', changeOrigin: true },
|
| 13 |
+
'/state': { target: 'http://localhost:7860', changeOrigin: true },
|
| 14 |
+
},
|
| 15 |
+
},
|
| 16 |
+
})
|
push_to_hf.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Push changed files to Hugging Face Space."""
|
| 2 |
+
from huggingface_hub import HfApi
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
TOKEN = os.environ.get("HF_TOKEN", "your_hf_token_here")
|
| 6 |
+
REPO_ID = "adityanaikhpt/codeareana"
|
| 7 |
+
REPO_TYPE = "space"
|
| 8 |
+
BASE = "e:/meta"
|
| 9 |
+
|
| 10 |
+
# Only the files that were modified
|
| 11 |
+
FILES_TO_PUSH = [
|
| 12 |
+
"server/grader.py",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
api = HfApi(token=TOKEN)
|
| 16 |
+
|
| 17 |
+
print(f"Pushing to: {REPO_ID}")
|
| 18 |
+
for rel_path in FILES_TO_PUSH:
|
| 19 |
+
local_path = os.path.join(BASE, rel_path.replace("/", os.sep))
|
| 20 |
+
if os.path.exists(local_path):
|
| 21 |
+
print(f" Uploading: {rel_path} ...", end=" ", flush=True)
|
| 22 |
+
api.upload_file(
|
| 23 |
+
path_or_fileobj=local_path,
|
| 24 |
+
path_in_repo=rel_path,
|
| 25 |
+
repo_id=REPO_ID,
|
| 26 |
+
repo_type=REPO_TYPE,
|
| 27 |
+
commit_message=f"fix: clamp strictly to 0.01 and 0.99 to prevent .2f rounding to 1.00",
|
| 28 |
+
)
|
| 29 |
+
print("OK")
|
| 30 |
+
else:
|
| 31 |
+
print(f" SKIP (not found): {rel_path}")
|
| 32 |
+
|
| 33 |
+
print("\nDone. All files pushed successfully.")
|
server/app.py
CHANGED
|
@@ -9,11 +9,12 @@ import traceback
|
|
| 9 |
from typing import Optional
|
| 10 |
|
| 11 |
from fastapi import FastAPI
|
|
|
|
| 12 |
from pydantic import BaseModel
|
| 13 |
|
| 14 |
from server.models import CodeArenaObservation, CodeArenaAction, TaskInfo
|
| 15 |
from server.executor import run_code_with_tests
|
| 16 |
-
from server.grader import calculate_reward, safe_reward
|
| 17 |
from tasks import ALL_TASKS
|
| 18 |
|
| 19 |
|
|
@@ -103,6 +104,15 @@ _env = CodeArenaEnv()
|
|
| 103 |
|
| 104 |
app = FastAPI(title="CodeArena RL Environment")
|
| 105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
@app.get("/")
|
| 108 |
def health():
|
|
@@ -138,9 +148,12 @@ def api_reset(body: ResetRequest = ResetRequest()):
|
|
| 138 |
def api_step(action: CodeArenaAction):
|
| 139 |
try:
|
| 140 |
obs, reward, done, info = _env.step(action)
|
|
|
|
|
|
|
|
|
|
| 141 |
return {
|
| 142 |
"observation": obs.model_dump(),
|
| 143 |
-
"reward":
|
| 144 |
"done": done,
|
| 145 |
"info": info,
|
| 146 |
}
|
|
@@ -155,7 +168,7 @@ def api_step(action: CodeArenaAction):
|
|
| 155 |
"test_results": "",
|
| 156 |
"previous_attempts": [],
|
| 157 |
},
|
| 158 |
-
"reward":
|
| 159 |
"done": True,
|
| 160 |
"info": {},
|
| 161 |
}
|
|
|
|
| 9 |
from typing import Optional
|
| 10 |
|
| 11 |
from fastapi import FastAPI
|
| 12 |
+
from fastapi.middleware.cors import CORSMiddleware
|
| 13 |
from pydantic import BaseModel
|
| 14 |
|
| 15 |
from server.models import CodeArenaObservation, CodeArenaAction, TaskInfo
|
| 16 |
from server.executor import run_code_with_tests
|
| 17 |
+
from server.grader import calculate_reward, safe_reward, force_valid_reward
|
| 18 |
from tasks import ALL_TASKS
|
| 19 |
|
| 20 |
|
|
|
|
| 104 |
|
| 105 |
app = FastAPI(title="CodeArena RL Environment")
|
| 106 |
|
| 107 |
+
# Allow the Vite dev server (port 3000) and any other origin to call this API
|
| 108 |
+
app.add_middleware(
|
| 109 |
+
CORSMiddleware,
|
| 110 |
+
allow_origins=["*"],
|
| 111 |
+
allow_credentials=True,
|
| 112 |
+
allow_methods=["*"],
|
| 113 |
+
allow_headers=["*"],
|
| 114 |
+
)
|
| 115 |
+
|
| 116 |
|
| 117 |
@app.get("/")
|
| 118 |
def health():
|
|
|
|
| 148 |
def api_step(action: CodeArenaAction):
|
| 149 |
try:
|
| 150 |
obs, reward, done, info = _env.step(action)
|
| 151 |
+
# Safety fallback before force_valid_reward
|
| 152 |
+
if reward is None:
|
| 153 |
+
reward = 0.5
|
| 154 |
return {
|
| 155 |
"observation": obs.model_dump(),
|
| 156 |
+
"reward": force_valid_reward(reward),
|
| 157 |
"done": done,
|
| 158 |
"info": info,
|
| 159 |
}
|
|
|
|
| 168 |
"test_results": "",
|
| 169 |
"previous_attempts": [],
|
| 170 |
},
|
| 171 |
+
"reward": force_valid_reward(0.1),
|
| 172 |
"done": True,
|
| 173 |
"info": {},
|
| 174 |
}
|
server/env.py
CHANGED
|
@@ -4,7 +4,7 @@ from contextlib import asynccontextmanager
|
|
| 4 |
|
| 5 |
from .models import CodeArenaObservation, CodeArenaAction, TaskInfo
|
| 6 |
from .executor import run_code_with_tests
|
| 7 |
-
from .grader import calculate_reward, safe_reward
|
| 8 |
from tasks import ALL_TASKS
|
| 9 |
|
| 10 |
class CodeArenaEnv:
|
|
@@ -95,9 +95,12 @@ def api_reset(body: dict = None):
|
|
| 95 |
def api_step(action: CodeArenaAction):
|
| 96 |
try:
|
| 97 |
obs, reward, done, info = _env.step(action)
|
|
|
|
|
|
|
|
|
|
| 98 |
return {
|
| 99 |
"observation": obs.model_dump(),
|
| 100 |
-
"reward": reward,
|
| 101 |
"done": done,
|
| 102 |
"info": info
|
| 103 |
}
|
|
|
|
| 4 |
|
| 5 |
from .models import CodeArenaObservation, CodeArenaAction, TaskInfo
|
| 6 |
from .executor import run_code_with_tests
|
| 7 |
+
from .grader import calculate_reward, safe_reward, force_valid_reward
|
| 8 |
from tasks import ALL_TASKS
|
| 9 |
|
| 10 |
class CodeArenaEnv:
|
|
|
|
| 95 |
def api_step(action: CodeArenaAction):
|
| 96 |
try:
|
| 97 |
obs, reward, done, info = _env.step(action)
|
| 98 |
+
# Safety fallback before force_valid_reward
|
| 99 |
+
if reward is None:
|
| 100 |
+
reward = 0.5
|
| 101 |
return {
|
| 102 |
"observation": obs.model_dump(),
|
| 103 |
+
"reward": force_valid_reward(reward),
|
| 104 |
"done": done,
|
| 105 |
"info": info
|
| 106 |
}
|
server/grader.py
CHANGED
|
@@ -1,20 +1,40 @@
|
|
| 1 |
from .models import ExecutionResult, TaskInfo
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
try:
|
| 5 |
-
r = float(
|
| 6 |
except Exception:
|
| 7 |
return 0.5
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
def normalize_reward(passed: int, total: int) -> float:
|
| 11 |
if total == 0:
|
| 12 |
return 0.5
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
|
| 15 |
def calculate_reward(exec_result: ExecutionResult, task_info: TaskInfo) -> float:
|
| 16 |
reward = normalize_reward(exec_result.test_passed, exec_result.test_total)
|
| 17 |
-
return
|
|
|
|
| 18 |
|
| 19 |
def grade(*args, **kwargs) -> float:
|
| 20 |
try:
|
|
|
|
| 1 |
from .models import ExecutionResult, TaskInfo
|
| 2 |
|
| 3 |
+
|
| 4 |
+
def force_valid_reward(value) -> float:
|
| 5 |
+
"""Hard guarantee: reward is strictly in (0, 1) — never 0 or 1, no exceptions."""
|
| 6 |
try:
|
| 7 |
+
r = float(value)
|
| 8 |
except Exception:
|
| 9 |
return 0.5
|
| 10 |
+
|
| 11 |
+
# HARD GUARANTEE: prevent .2f formatting from rounding to 1.00 or 0.00
|
| 12 |
+
if r <= 0.01:
|
| 13 |
+
return 0.01
|
| 14 |
+
if r >= 0.99:
|
| 15 |
+
return 0.99
|
| 16 |
+
|
| 17 |
+
return r
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def safe_reward(reward) -> float:
|
| 21 |
+
"""Clamp reward to open interval (0, 1) via force_valid_reward."""
|
| 22 |
+
if reward is None:
|
| 23 |
+
reward = 0.5
|
| 24 |
+
return force_valid_reward(reward)
|
| 25 |
+
|
| 26 |
|
| 27 |
def normalize_reward(passed: int, total: int) -> float:
|
| 28 |
if total == 0:
|
| 29 |
return 0.5
|
| 30 |
+
raw = passed / total
|
| 31 |
+
return force_valid_reward(raw)
|
| 32 |
+
|
| 33 |
|
| 34 |
def calculate_reward(exec_result: ExecutionResult, task_info: TaskInfo) -> float:
|
| 35 |
reward = normalize_reward(exec_result.test_passed, exec_result.test_total)
|
| 36 |
+
return force_valid_reward(reward)
|
| 37 |
+
|
| 38 |
|
| 39 |
def grade(*args, **kwargs) -> float:
|
| 40 |
try:
|