ameliechatelain commited on
Commit
38694da
路
verified 路
1 Parent(s): b65145a

Remove speed selector and title bar text, shorter footer

Browse files
Files changed (3) hide show
  1. app.js +1 -2
  2. index.html +3 -12
  3. style.css +1 -1
app.js CHANGED
@@ -6,7 +6,7 @@
6
  const state = { data: null, repo: null, runId: 0, instant: false };
7
  const screen = $("#screen"), body = $("#term-body"), input = $("#cmd"), suggest = $("#suggest");
8
 
9
- const speed = () => parseFloat($("#speed").value);
10
  const wait = (ms) => new Promise((r) => setTimeout(r, state.instant || speed() === 0 ? 0 : ms / speed()));
11
  const scrollDown = () => { body.scrollTop = body.scrollHeight; };
12
  const line = (html, cls = "") => { const d = document.createElement("div"); d.className = `line ${cls}`; d.innerHTML = html; screen.appendChild(d); scrollDown(); return d; };
@@ -225,7 +225,6 @@ clear clear the screen</span>`);
225
  async function boot() {
226
  const r = await fetch("data/demo.json");
227
  state.data = await r.json();
228
- $("#term-title").textContent = `${state.data.model} 路 recorded sessions 路 ${state.data.repos.length} repositories`;
229
  renderSuggest();
230
  line(intro(), "intro");
231
  const repo = params.get("repo"), query = params.get("query");
 
6
  const state = { data: null, repo: null, runId: 0, instant: false };
7
  const screen = $("#screen"), body = $("#term-body"), input = $("#cmd"), suggest = $("#suggest");
8
 
9
+ const speed = () => 1;
10
  const wait = (ms) => new Promise((r) => setTimeout(r, state.instant || speed() === 0 ? 0 : ms / speed()));
11
  const scrollDown = () => { body.scrollTop = body.scrollHeight; };
12
  const line = (html, cls = "") => { const d = document.createElement("div"); d.className = `line ${cls}`; d.innerHTML = html; screen.appendChild(d); scrollDown(); return d; };
 
225
  async function boot() {
226
  const r = await fetch("data/demo.json");
227
  state.data = await r.json();
 
228
  renderSuggest();
229
  line(intro(), "intro");
230
  const repo = params.get("repo"), query = params.get("query");
index.html CHANGED
@@ -5,7 +5,7 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
  <title>colgrep --agent, recorded sessions</title>
7
  <meta name="description" content="Watch colgrep-agent-2B, a 2B code-search agent, search a repository with ColGrep and return file and line locations, replayed from recorded evaluation runs.">
8
- <link rel="stylesheet" href="style.css?v=terminal-20261012">
9
  </head>
10
  <body>
11
  <div id="app" class="app">
@@ -25,16 +25,7 @@
25
  <section class="term" aria-label="Terminal">
26
  <div class="term-bar">
27
  <span class="dots" aria-hidden="true"><i></i><i></i><i></i></span>
28
- <span class="term-title" id="term-title">colgrep-agent-2B 路 recorded sessions</span>
29
  <span class="term-controls">
30
- <label class="speed"><span>speed</span>
31
- <select id="speed" aria-label="Replay speed">
32
- <option value="1">normal</option>
33
- <option value="0.5">slow</option>
34
- <option value="2">fast</option>
35
- <option value="0">instant</option>
36
- </select>
37
- </label>
38
  <button id="skip" type="button" hidden>Skip to result</button>
39
  <button id="clear" type="button">Clear</button>
40
  </span>
@@ -50,9 +41,9 @@
50
  </section>
51
 
52
  <footer class="notes">
53
- <p>Companion to the <a href="https://huggingface.co/blog/lightonai/colgrep-agent" target="_blank" rel="noopener">ColGrep-Agent blog post</a>. Replays of recorded runs of <a href="https://huggingface.co/lightonai/colgrep-agent-2B" target="_blank" rel="noopener">colgrep-agent-2B</a> on <a href="https://huggingface.co/datasets/SWE-bench/SWE-bench_Lite" target="_blank" rel="noopener">SWE-bench Lite</a> and <a href="https://huggingface.co/datasets/ByteDance-Seed/Multi-SWE-bench-flash" target="_blank" rel="noopener">Multi-SWE-bench Flash</a> issues (seed 1, temperature 0.6, 10-turn budget). Nothing runs live: the agent's calls and the tool outputs are the recorded ones, shown at a fixed pace. The question typed at the prompt is the issue title; the agent received the full issue text. Reference locations come from the pull request that fixed the issue. Click any step to see its output.</p>
54
  </footer>
55
  </div>
56
- <script src="app.js?v=terminal-20261012"></script>
57
  </body>
58
  </html>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
  <title>colgrep --agent, recorded sessions</title>
7
  <meta name="description" content="Watch colgrep-agent-2B, a 2B code-search agent, search a repository with ColGrep and return file and line locations, replayed from recorded evaluation runs.">
8
+ <link rel="stylesheet" href="style.css?v=terminal-20261012b">
9
  </head>
10
  <body>
11
  <div id="app" class="app">
 
25
  <section class="term" aria-label="Terminal">
26
  <div class="term-bar">
27
  <span class="dots" aria-hidden="true"><i></i><i></i><i></i></span>
 
28
  <span class="term-controls">
 
 
 
 
 
 
 
 
29
  <button id="skip" type="button" hidden>Skip to result</button>
30
  <button id="clear" type="button">Clear</button>
31
  </span>
 
41
  </section>
42
 
43
  <footer class="notes">
44
+ <p>Recorded runs of <a href="https://huggingface.co/lightonai/colgrep-agent-2B" target="_blank" rel="noopener">colgrep-agent-2B</a> on <a href="https://huggingface.co/datasets/SWE-bench/SWE-bench_Lite" target="_blank" rel="noopener">SWE-bench Lite</a> and <a href="https://huggingface.co/datasets/ByteDance-Seed/Multi-SWE-bench-flash" target="_blank" rel="noopener">Multi-SWE-bench Flash</a> issues, from the <a href="https://huggingface.co/blog/lightonai/colgrep-agent" target="_blank" rel="noopener">ColGrep-Agent blog post</a>. Click a step to see its output. Reference locations come from the pull request that fixed the issue.</p>
45
  </footer>
46
  </div>
47
+ <script src="app.js?v=terminal-20261012b"></script>
48
  </body>
49
  </html>
style.css CHANGED
@@ -46,7 +46,7 @@ a { color: var(--accent); }
46
 
47
  /* terminal window */
48
  .term { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 380px; background: var(--t-bg); color: var(--t-text); border: 1px solid var(--t-line); border-radius: 14px; overflow: hidden; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
49
- .term-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); color: var(--t-dim); font-size: 11.5px; }
50
  .dots { display: inline-flex; gap: 6px; }
51
  .dots i { width: 10px; height: 10px; border-radius: 50%; background: #334b63; }
52
  .term-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 
46
 
47
  /* terminal window */
48
  .term { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 380px; background: var(--t-bg); color: var(--t-text); border: 1px solid var(--t-line); border-radius: 14px; overflow: hidden; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
49
+ .term-bar { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 8px 12px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); color: var(--t-dim); font-size: 11.5px; }
50
  .dots { display: inline-flex; gap: 6px; }
51
  .dots i { width: 10px; height: 10px; border-radius: 50%; background: #334b63; }
52
  .term-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }