Sources are public: drop the private-access notes
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Files changed (3)
- README.md+2-3
- app.py+2-2
- static/app.js+1-2
49 unmodified lines50515253545556575849 unmodified lines## AccessThe three source artifacts are private for now. The Space reads them with the Space secret`HF_TOKEN` (a read token for the `HuggingFaceSwarms` org). Once they are public the secret can beremoved; nothing else changes.## Rebuilding the data49 unmodified lines505152535455565749 unmodified lines## AccessAll sources are public, so the Space needs no token. If an `HF_TOKEN` environment variable is set,reads of the commit history and the traces use it.## Rebuilding the data
298 unmodified lines29930030130230330430515 unmodified lines321322323324325326327298 unmodified linesdef read_range(lane, agent, start, end):from huggingface_hub import HfFileSystem # token from HF_TOKEN; none needed once publicreturn HfFileSystem().cat_file(f"buckets/{TRACES_BUCKET}/traces/{lane}/{agent}.jsonl", start=start, end=end)15 unmodified linestry:data = read_range(f["lane"], agent, start, b["offset"] + b["length"])except Exception as e: # missing token, network, rate limitraise HTTPException(503, f"trace storage unavailable ({type(e).__name__}); is HF_TOKEN set?")read += len(data)pos = startfor line in data.splitlines(keepends=True):298 unmodified lines29930030130230330430515 unmodified lines321322323324325326327298 unmodified linesdef read_range(lane, agent, start, end):from huggingface_hub import HfFileSystem # uses HF_TOKEN if set; the bucket is publicreturn HfFileSystem().cat_file(f"buckets/{TRACES_BUCKET}/traces/{lane}/{agent}.jsonl", start=start, end=end)15 unmodified linestry:data = read_range(f["lane"], agent, start, b["offset"] + b["length"])except Exception as e: # missing token, network, rate limitraise HTTPException(503, f"trace storage unavailable ({type(e).__name__}); try again shortly")read += len(data)pos = startfor line in data.splitlines(keepends=True):
571 unmodified lines572573574575576577578579571 unmodified lines<section class="card src"><header><h3>${d.name}</h3><span class="muted">${d.kind}</span><a href="${d.url}" target="_blank" rel="noopener">${d.repo} ↗</a>${d.viewer ? ` <a href="${d.viewer}" target="_blank" rel="noopener">viewer ↗</a>` : ''}</header><div class="body md"><p>${esc(d.what)}</p><p class="muted">${esc(d.layout)}</p><pre><code>${d.cmds.map(esc).join('\n')}</code></pre></div></section>`).join('')}<p class="muted">While the repositories are private, these links and commands need a Hugging Face login (or HF_TOKEN) with access.</p>`;}async function messagePage(id) {571 unmodified lines572573574575576577578571 unmodified lines<section class="card src"><header><h3>${d.name}</h3><span class="muted">${d.kind}</span><a href="${d.url}" target="_blank" rel="noopener">${d.repo} ↗</a>${d.viewer ? ` <a href="${d.viewer}" target="_blank" rel="noopener">viewer ↗</a>` : ''}</header><div class="body md"><p>${esc(d.what)}</p><p class="muted">${esc(d.layout)}</p><pre><code>${d.cmds.map(esc).join('\n')}</code></pre></div></section>`).join('')}`;}async function messagePage(id) {
README.md+2-3
app.py+2-2
static/app.js+1-2