Spaces:
Running on Zero
Running on Zero
refactor: remove submission ui leftovers
Browse filesCo-authored-by: Codex <noreply@openai.com>
- hackathon_advisor/submission_packet.py +4 -4
- static/app.js +1 -142
- static/styles.css +4 -99
- tests/test_submission_packet.py +2 -1
hackathon_advisor/submission_packet.py
CHANGED
|
@@ -80,14 +80,14 @@ def _demo_script(
|
|
| 80 |
return [
|
| 81 |
"## Demo Script",
|
| 82 |
"",
|
| 83 |
-
"| Time | Beat |
|
| 84 |
"| --- | --- | --- |",
|
| 85 |
-
|
| 86 |
f"| 0:10 | Type the project instinct for `{title}`. | Streaming response starts, then the seal reads {verdict} at {overall}/10. |",
|
| 87 |
f"| 0:30 | Show the nearest echo. | Page {page}: {echo_title}. |",
|
| 88 |
f"| 0:45 | Press Gap or Plan to move from diagnosis to build path. | {plan_step} |",
|
| 89 |
-
f"| 1:05 | Export
|
| 90 |
-
"| 1:20 |
|
| 91 |
"",
|
| 92 |
]
|
| 93 |
|
|
|
|
| 80 |
return [
|
| 81 |
"## Demo Script",
|
| 82 |
"",
|
| 83 |
+
"| Time | Beat | Proof |",
|
| 84 |
"| --- | --- | --- |",
|
| 85 |
+
"| 0:00 | Open The Unwritten Almanac and point to the local snapshot count. | Snapshot metadata is visible in the provenance line. |",
|
| 86 |
f"| 0:10 | Type the project instinct for `{title}`. | Streaming response starts, then the seal reads {verdict} at {overall}/10. |",
|
| 87 |
f"| 0:30 | Show the nearest echo. | Page {page}: {echo_title}. |",
|
| 88 |
f"| 0:45 | Press Gap or Plan to move from diagnosis to build path. | {plan_step} |",
|
| 89 |
+
f"| 1:05 | Export builder-facing artifacts. | Notes, Chapter, and PNG are available in the app after {turn_count} recorded turns. |",
|
| 90 |
+
"| 1:20 | Check submission evidence outside the main UI. | `/api/prize-ledger` separates ready and planned badge states; `/api/demo-bundle.zip` contains JSONL, LoRA, and packet exports. |",
|
| 91 |
"",
|
| 92 |
]
|
| 93 |
|
static/app.js
CHANGED
|
@@ -10,23 +10,16 @@ const whitespaceEl = document.querySelector("#whitespace");
|
|
| 10 |
const ideasEl = document.querySelector("#ideas");
|
| 11 |
const targetsEl = document.querySelector("#targets");
|
| 12 |
const profileEl = document.querySelector("#profile");
|
| 13 |
-
const prizeLedgerEl = document.querySelector("#prize-ledger");
|
| 14 |
const woodMapEl = document.querySelector("#wood-map");
|
| 15 |
const scoreEl = document.querySelector("#score");
|
| 16 |
const planEl = document.querySelector("#plan");
|
| 17 |
-
const traceEl = document.querySelector("#trace");
|
| 18 |
const provenanceEl = document.querySelector("#provenance");
|
| 19 |
const verdictEl = document.querySelector("#verdict");
|
| 20 |
const overallEl = document.querySelector("#overall");
|
| 21 |
const demoButton = document.querySelector("#load-demo");
|
| 22 |
const exportButton = document.querySelector("#export-artifact");
|
| 23 |
-
const exportTraceButton = document.querySelector("#export-trace");
|
| 24 |
const exportNotesButton = document.querySelector("#export-notes");
|
| 25 |
const exportChapterButton = document.querySelector("#export-chapter");
|
| 26 |
-
const exportLoraButton = document.querySelector("#export-lora");
|
| 27 |
-
const exportTrainKitButton = document.querySelector("#export-train-kit");
|
| 28 |
-
const exportPacketButton = document.querySelector("#export-packet");
|
| 29 |
-
const exportBundleButton = document.querySelector("#export-bundle");
|
| 30 |
const resetButton = document.querySelector("#reset-session");
|
| 31 |
|
| 32 |
const SESSION_STORAGE_KEY = "hackathon-advisor-session-v1";
|
|
@@ -63,10 +56,6 @@ exportButton.addEventListener("click", () => {
|
|
| 63 |
exportArtifact(currentArtifact);
|
| 64 |
});
|
| 65 |
|
| 66 |
-
exportTraceButton?.addEventListener("click", async () => {
|
| 67 |
-
await exportTrace();
|
| 68 |
-
});
|
| 69 |
-
|
| 70 |
exportNotesButton.addEventListener("click", async () => {
|
| 71 |
await exportNotes();
|
| 72 |
});
|
|
@@ -75,22 +64,6 @@ exportChapterButton.addEventListener("click", async () => {
|
|
| 75 |
await exportChapter();
|
| 76 |
});
|
| 77 |
|
| 78 |
-
exportLoraButton?.addEventListener("click", async () => {
|
| 79 |
-
await exportLoraDataset();
|
| 80 |
-
});
|
| 81 |
-
|
| 82 |
-
exportTrainKitButton?.addEventListener("click", () => {
|
| 83 |
-
window.location.assign("/api/lora-training-kit.zip");
|
| 84 |
-
});
|
| 85 |
-
|
| 86 |
-
exportPacketButton?.addEventListener("click", async () => {
|
| 87 |
-
await exportSubmissionPacket();
|
| 88 |
-
});
|
| 89 |
-
|
| 90 |
-
exportBundleButton?.addEventListener("click", () => {
|
| 91 |
-
window.location.assign("/api/demo-bundle.zip");
|
| 92 |
-
});
|
| 93 |
-
|
| 94 |
resetButton.addEventListener("click", () => {
|
| 95 |
clearSavedSession();
|
| 96 |
window.location.reload();
|
|
@@ -171,7 +144,6 @@ async function bootstrap() {
|
|
| 171 |
renderProvenance(data);
|
| 172 |
renderTargets(session.targets);
|
| 173 |
renderProfile(session.profile);
|
| 174 |
-
renderPrizeLedger(data.prize_ledger || null);
|
| 175 |
renderRestoredSession(data);
|
| 176 |
renderWhitespace(data.whitespace || []);
|
| 177 |
}
|
|
@@ -215,7 +187,6 @@ function applyDemoSession(data) {
|
|
| 215 |
renderTargets(session.targets);
|
| 216 |
renderProfile(session.profile);
|
| 217 |
renderIdeas(session.ideas || []);
|
| 218 |
-
renderTrace(session.trace || []);
|
| 219 |
renderPlan(data.plan || session.last_plan || []);
|
| 220 |
renderWhitespace(data.whitespace || []);
|
| 221 |
if (currentArtifact?.wood_map) renderWoodMap(currentArtifact.wood_map);
|
|
@@ -225,11 +196,8 @@ function applyDemoSession(data) {
|
|
| 225 |
renderProjects(data.projects || []);
|
| 226 |
}
|
| 227 |
exportButton.disabled = !currentArtifact;
|
| 228 |
-
setButtonDisabled(exportTraceButton, !(session.trace?.length));
|
| 229 |
setButtonDisabled(exportNotesButton, !(session.trace?.length));
|
| 230 |
setButtonDisabled(exportChapterButton, !(session.ideas?.length));
|
| 231 |
-
setButtonDisabled(exportLoraButton, !(session.trace?.length));
|
| 232 |
-
setButtonDisabled(exportPacketButton, !(session.trace?.length));
|
| 233 |
corrections.textContent = `example loaded: ${data.turn_count || 0} advisor turns`;
|
| 234 |
saveSession();
|
| 235 |
}
|
|
@@ -262,12 +230,8 @@ function renderRestoredSession(data) {
|
|
| 262 |
}
|
| 263 |
renderIdeas(session.ideas || []);
|
| 264 |
renderPlan(session.last_plan || []);
|
| 265 |
-
renderTrace(session.trace || []);
|
| 266 |
-
setButtonDisabled(exportTraceButton, !(session.trace?.length));
|
| 267 |
setButtonDisabled(exportNotesButton, !(session.trace?.length));
|
| 268 |
setButtonDisabled(exportChapterButton, !(session.ideas?.length));
|
| 269 |
-
setButtonDisabled(exportLoraButton, !(session.trace?.length));
|
| 270 |
-
setButtonDisabled(exportPacketButton, !(session.trace?.length));
|
| 271 |
}
|
| 272 |
|
| 273 |
function readSavedSession() {
|
|
@@ -353,53 +317,6 @@ function renderProfile(profile) {
|
|
| 353 |
}
|
| 354 |
}
|
| 355 |
|
| 356 |
-
function renderPrizeLedger(ledger) {
|
| 357 |
-
if (!prizeLedgerEl) return;
|
| 358 |
-
prizeLedgerEl.innerHTML = "";
|
| 359 |
-
if (!ledger) {
|
| 360 |
-
prizeLedgerEl.innerHTML = `<div class="empty">No prize ledger loaded.</div>`;
|
| 361 |
-
return;
|
| 362 |
-
}
|
| 363 |
-
const readyBadges = (ledger.badges || []).filter((badge) => badge.status === "ready").length;
|
| 364 |
-
const badgeCount = (ledger.badges || []).length;
|
| 365 |
-
const header = document.createElement("div");
|
| 366 |
-
header.className = "ledger-summary";
|
| 367 |
-
header.innerHTML = `
|
| 368 |
-
<strong>${Number(ledger.total_params_b || 0).toFixed(2)}B params</strong>
|
| 369 |
-
<span>${ledger.tiny_titan_eligible ? "Tiny Titan eligible" : "Over Tiny Titan limit"}</span>
|
| 370 |
-
<span>${readyBadges}/${badgeCount} ready</span>
|
| 371 |
-
<span>${escapeHtml(ledger.runtime?.backend || "runtime")}</span>
|
| 372 |
-
`;
|
| 373 |
-
const badges = document.createElement("div");
|
| 374 |
-
badges.className = "badge-list";
|
| 375 |
-
for (const badge of (ledger.badges || []).slice(0, 7)) {
|
| 376 |
-
const item = document.createElement("div");
|
| 377 |
-
item.className = `badge-item ${badge.status || "planned"}`;
|
| 378 |
-
item.title = badge.evidence || badge.name;
|
| 379 |
-
item.innerHTML = `
|
| 380 |
-
<strong>${escapeHtml(badge.name)}</strong>
|
| 381 |
-
<span>${escapeHtml(badge.status)}</span>
|
| 382 |
-
`;
|
| 383 |
-
badges.append(item);
|
| 384 |
-
}
|
| 385 |
-
prizeLedgerEl.append(header, badges);
|
| 386 |
-
if (ledger.training_artifacts?.length) {
|
| 387 |
-
const artifacts = document.createElement("div");
|
| 388 |
-
artifacts.className = "training-artifact-list";
|
| 389 |
-
for (const artifact of ledger.training_artifacts.slice(0, 3)) {
|
| 390 |
-
const item = document.createElement("div");
|
| 391 |
-
item.className = "training-artifact";
|
| 392 |
-
item.title = artifact.endpoint || artifact.name;
|
| 393 |
-
item.innerHTML = `
|
| 394 |
-
<strong>${escapeHtml(artifact.name)}</strong>
|
| 395 |
-
<span>${escapeHtml(artifact.status)} · ${escapeHtml(artifact.format || "jsonl")}</span>
|
| 396 |
-
`;
|
| 397 |
-
artifacts.append(item);
|
| 398 |
-
}
|
| 399 |
-
prizeLedgerEl.append(artifacts);
|
| 400 |
-
}
|
| 401 |
-
}
|
| 402 |
-
|
| 403 |
function handleEvent(event) {
|
| 404 |
if (event.type === "start") {
|
| 405 |
if (event.corrections?.length) {
|
|
@@ -434,7 +351,6 @@ function handleEvent(event) {
|
|
| 434 |
renderTargets(session.targets);
|
| 435 |
renderProfile(session.profile);
|
| 436 |
renderIdeas(session.ideas || []);
|
| 437 |
-
renderTrace(session.trace || []);
|
| 438 |
renderPlan(event.plan || []);
|
| 439 |
if (event.score) {
|
| 440 |
verdictEl.textContent = event.score.verdict;
|
|
@@ -448,11 +364,8 @@ function handleEvent(event) {
|
|
| 448 |
renderWoodMap(event.artifact.wood_map || null);
|
| 449 |
exportButton.disabled = false;
|
| 450 |
}
|
| 451 |
-
setButtonDisabled(exportTraceButton, !(session.trace?.length));
|
| 452 |
setButtonDisabled(exportNotesButton, !(session.trace?.length));
|
| 453 |
setButtonDisabled(exportChapterButton, !(session.ideas?.length));
|
| 454 |
-
setButtonDisabled(exportLoraButton, !(session.trace?.length));
|
| 455 |
-
setButtonDisabled(exportPacketButton, !(session.trace?.length));
|
| 456 |
saveSession();
|
| 457 |
}
|
| 458 |
}
|
|
@@ -604,47 +517,20 @@ function renderPlan(steps) {
|
|
| 604 |
}
|
| 605 |
}
|
| 606 |
|
| 607 |
-
function renderTrace(trace) {
|
| 608 |
-
if (!traceEl) return;
|
| 609 |
-
traceEl.innerHTML = "";
|
| 610 |
-
if (!trace.length) {
|
| 611 |
-
traceEl.innerHTML = `<div class="empty">No tool marks yet.</div>`;
|
| 612 |
-
return;
|
| 613 |
-
}
|
| 614 |
-
for (const event of trace.slice(-4).reverse()) {
|
| 615 |
-
const item = document.createElement("div");
|
| 616 |
-
item.className = "trace";
|
| 617 |
-
const tools = (event.tools || []).map((tool) => tool.name).join(" -> ") || "reply";
|
| 618 |
-
item.innerHTML = `
|
| 619 |
-
<strong>${escapeHtml(event.verdict || "TURN")} ${event.overall ? Number(event.overall).toFixed(1) : ""}</strong>
|
| 620 |
-
<p>${escapeHtml(tools)}</p>
|
| 621 |
-
`;
|
| 622 |
-
traceEl.append(item);
|
| 623 |
-
}
|
| 624 |
-
}
|
| 625 |
-
|
| 626 |
function setButtonDisabled(button, disabled) {
|
| 627 |
if (button) button.disabled = disabled;
|
| 628 |
}
|
| 629 |
|
| 630 |
function setCommandDisabled(disabled) {
|
| 631 |
document.querySelectorAll(".command-row button").forEach((button) => {
|
| 632 |
-
if (button.id === "export-train-kit") return;
|
| 633 |
-
if (button.id === "export-bundle") return;
|
| 634 |
const isArtifact = button.id === "export-artifact";
|
| 635 |
-
const isTrace = button.id === "export-trace";
|
| 636 |
const isNotes = button.id === "export-notes";
|
| 637 |
const isChapter = button.id === "export-chapter";
|
| 638 |
-
const isLora = button.id === "export-lora";
|
| 639 |
-
const isPacket = button.id === "export-packet";
|
| 640 |
button.disabled =
|
| 641 |
disabled ||
|
| 642 |
(isArtifact && !currentArtifact) ||
|
| 643 |
-
(isTrace && !session.trace?.length) ||
|
| 644 |
(isNotes && !session.trace?.length) ||
|
| 645 |
-
(isChapter && !session.ideas?.length)
|
| 646 |
-
(isLora && !session.trace?.length) ||
|
| 647 |
-
(isPacket && !session.trace?.length);
|
| 648 |
});
|
| 649 |
}
|
| 650 |
|
|
@@ -681,15 +567,6 @@ function syncCurrentIdeaTargets() {
|
|
| 681 |
if (idea) idea.targets = [...(session.targets || [])];
|
| 682 |
}
|
| 683 |
|
| 684 |
-
async function exportTrace() {
|
| 685 |
-
const client = await clientPromise;
|
| 686 |
-
const result = await client.predict("/trace_artifact", {
|
| 687 |
-
session_json: JSON.stringify(session),
|
| 688 |
-
});
|
| 689 |
-
const data = Array.isArray(result.data) ? result.data[0] : result.data;
|
| 690 |
-
downloadText("hackathon-advisor-trace.jsonl", String(data || ""));
|
| 691 |
-
}
|
| 692 |
-
|
| 693 |
async function exportNotes() {
|
| 694 |
const client = await clientPromise;
|
| 695 |
const result = await client.predict("/field_notes", {
|
|
@@ -708,24 +585,6 @@ async function exportChapter() {
|
|
| 708 |
downloadText("hackathon-advisor-chapter.md", String(data || ""), "text/markdown;charset=utf-8");
|
| 709 |
}
|
| 710 |
|
| 711 |
-
async function exportLoraDataset() {
|
| 712 |
-
const client = await clientPromise;
|
| 713 |
-
const result = await client.predict("/lora_dataset", {
|
| 714 |
-
session_json: JSON.stringify(session),
|
| 715 |
-
});
|
| 716 |
-
const data = Array.isArray(result.data) ? result.data[0] : result.data;
|
| 717 |
-
downloadText("hackathon-advisor-lora-sft.jsonl", String(data || ""));
|
| 718 |
-
}
|
| 719 |
-
|
| 720 |
-
async function exportSubmissionPacket() {
|
| 721 |
-
const client = await clientPromise;
|
| 722 |
-
const result = await client.predict("/submission_packet", {
|
| 723 |
-
session_json: JSON.stringify(session),
|
| 724 |
-
});
|
| 725 |
-
const data = Array.isArray(result.data) ? result.data[0] : result.data;
|
| 726 |
-
downloadText("hackathon-advisor-submission-packet.md", String(data || ""), "text/markdown;charset=utf-8");
|
| 727 |
-
}
|
| 728 |
-
|
| 729 |
function exportArtifact(artifact) {
|
| 730 |
const canvas = document.createElement("canvas");
|
| 731 |
canvas.width = 1200;
|
|
|
|
| 10 |
const ideasEl = document.querySelector("#ideas");
|
| 11 |
const targetsEl = document.querySelector("#targets");
|
| 12 |
const profileEl = document.querySelector("#profile");
|
|
|
|
| 13 |
const woodMapEl = document.querySelector("#wood-map");
|
| 14 |
const scoreEl = document.querySelector("#score");
|
| 15 |
const planEl = document.querySelector("#plan");
|
|
|
|
| 16 |
const provenanceEl = document.querySelector("#provenance");
|
| 17 |
const verdictEl = document.querySelector("#verdict");
|
| 18 |
const overallEl = document.querySelector("#overall");
|
| 19 |
const demoButton = document.querySelector("#load-demo");
|
| 20 |
const exportButton = document.querySelector("#export-artifact");
|
|
|
|
| 21 |
const exportNotesButton = document.querySelector("#export-notes");
|
| 22 |
const exportChapterButton = document.querySelector("#export-chapter");
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
const resetButton = document.querySelector("#reset-session");
|
| 24 |
|
| 25 |
const SESSION_STORAGE_KEY = "hackathon-advisor-session-v1";
|
|
|
|
| 56 |
exportArtifact(currentArtifact);
|
| 57 |
});
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
exportNotesButton.addEventListener("click", async () => {
|
| 60 |
await exportNotes();
|
| 61 |
});
|
|
|
|
| 64 |
await exportChapter();
|
| 65 |
});
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
resetButton.addEventListener("click", () => {
|
| 68 |
clearSavedSession();
|
| 69 |
window.location.reload();
|
|
|
|
| 144 |
renderProvenance(data);
|
| 145 |
renderTargets(session.targets);
|
| 146 |
renderProfile(session.profile);
|
|
|
|
| 147 |
renderRestoredSession(data);
|
| 148 |
renderWhitespace(data.whitespace || []);
|
| 149 |
}
|
|
|
|
| 187 |
renderTargets(session.targets);
|
| 188 |
renderProfile(session.profile);
|
| 189 |
renderIdeas(session.ideas || []);
|
|
|
|
| 190 |
renderPlan(data.plan || session.last_plan || []);
|
| 191 |
renderWhitespace(data.whitespace || []);
|
| 192 |
if (currentArtifact?.wood_map) renderWoodMap(currentArtifact.wood_map);
|
|
|
|
| 196 |
renderProjects(data.projects || []);
|
| 197 |
}
|
| 198 |
exportButton.disabled = !currentArtifact;
|
|
|
|
| 199 |
setButtonDisabled(exportNotesButton, !(session.trace?.length));
|
| 200 |
setButtonDisabled(exportChapterButton, !(session.ideas?.length));
|
|
|
|
|
|
|
| 201 |
corrections.textContent = `example loaded: ${data.turn_count || 0} advisor turns`;
|
| 202 |
saveSession();
|
| 203 |
}
|
|
|
|
| 230 |
}
|
| 231 |
renderIdeas(session.ideas || []);
|
| 232 |
renderPlan(session.last_plan || []);
|
|
|
|
|
|
|
| 233 |
setButtonDisabled(exportNotesButton, !(session.trace?.length));
|
| 234 |
setButtonDisabled(exportChapterButton, !(session.ideas?.length));
|
|
|
|
|
|
|
| 235 |
}
|
| 236 |
|
| 237 |
function readSavedSession() {
|
|
|
|
| 317 |
}
|
| 318 |
}
|
| 319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
function handleEvent(event) {
|
| 321 |
if (event.type === "start") {
|
| 322 |
if (event.corrections?.length) {
|
|
|
|
| 351 |
renderTargets(session.targets);
|
| 352 |
renderProfile(session.profile);
|
| 353 |
renderIdeas(session.ideas || []);
|
|
|
|
| 354 |
renderPlan(event.plan || []);
|
| 355 |
if (event.score) {
|
| 356 |
verdictEl.textContent = event.score.verdict;
|
|
|
|
| 364 |
renderWoodMap(event.artifact.wood_map || null);
|
| 365 |
exportButton.disabled = false;
|
| 366 |
}
|
|
|
|
| 367 |
setButtonDisabled(exportNotesButton, !(session.trace?.length));
|
| 368 |
setButtonDisabled(exportChapterButton, !(session.ideas?.length));
|
|
|
|
|
|
|
| 369 |
saveSession();
|
| 370 |
}
|
| 371 |
}
|
|
|
|
| 517 |
}
|
| 518 |
}
|
| 519 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 520 |
function setButtonDisabled(button, disabled) {
|
| 521 |
if (button) button.disabled = disabled;
|
| 522 |
}
|
| 523 |
|
| 524 |
function setCommandDisabled(disabled) {
|
| 525 |
document.querySelectorAll(".command-row button").forEach((button) => {
|
|
|
|
|
|
|
| 526 |
const isArtifact = button.id === "export-artifact";
|
|
|
|
| 527 |
const isNotes = button.id === "export-notes";
|
| 528 |
const isChapter = button.id === "export-chapter";
|
|
|
|
|
|
|
| 529 |
button.disabled =
|
| 530 |
disabled ||
|
| 531 |
(isArtifact && !currentArtifact) ||
|
|
|
|
| 532 |
(isNotes && !session.trace?.length) ||
|
| 533 |
+
(isChapter && !session.ideas?.length);
|
|
|
|
|
|
|
| 534 |
});
|
| 535 |
}
|
| 536 |
|
|
|
|
| 567 |
if (idea) idea.targets = [...(session.targets || [])];
|
| 568 |
}
|
| 569 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 570 |
async function exportNotes() {
|
| 571 |
const client = await clientPromise;
|
| 572 |
const result = await client.predict("/field_notes", {
|
|
|
|
| 585 |
downloadText("hackathon-advisor-chapter.md", String(data || ""), "text/markdown;charset=utf-8");
|
| 586 |
}
|
| 587 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 588 |
function exportArtifact(artifact) {
|
| 589 |
const canvas = document.createElement("canvas");
|
| 590 |
canvas.width = 1200;
|
static/styles.css
CHANGED
|
@@ -299,11 +299,9 @@ button:disabled {
|
|
| 299 |
.project-list,
|
| 300 |
.whitespace-list,
|
| 301 |
.idea-list,
|
| 302 |
-
.trace-list,
|
| 303 |
.target-list,
|
| 304 |
.profile-grid,
|
| 305 |
-
.wood-map
|
| 306 |
-
.prize-ledger {
|
| 307 |
display: grid;
|
| 308 |
gap: 9px;
|
| 309 |
}
|
|
@@ -311,10 +309,8 @@ button:disabled {
|
|
| 311 |
.project,
|
| 312 |
.gap,
|
| 313 |
.idea,
|
| 314 |
-
.trace,
|
| 315 |
.target-toggle,
|
| 316 |
-
.profile-field
|
| 317 |
-
.training-artifact {
|
| 318 |
border-left: 3px solid rgba(80, 47, 22, 0.48);
|
| 319 |
padding: 8px 10px;
|
| 320 |
background: rgba(255, 241, 196, 0.34);
|
|
@@ -323,8 +319,7 @@ button:disabled {
|
|
| 323 |
|
| 324 |
.project strong,
|
| 325 |
.gap strong,
|
| 326 |
-
.idea strong
|
| 327 |
-
.trace strong {
|
| 328 |
display: block;
|
| 329 |
color: #2a170d;
|
| 330 |
font-size: 0.98rem;
|
|
@@ -333,8 +328,7 @@ button:disabled {
|
|
| 333 |
|
| 334 |
.project p,
|
| 335 |
.gap p,
|
| 336 |
-
.idea p
|
| 337 |
-
.trace p {
|
| 338 |
margin: 4px 0 0;
|
| 339 |
color: var(--muted-ink);
|
| 340 |
font-size: 0.86rem;
|
|
@@ -428,90 +422,6 @@ button:disabled {
|
|
| 428 |
box-shadow: 0 0 0 3px rgba(47, 122, 73, 0.13);
|
| 429 |
}
|
| 430 |
|
| 431 |
-
.ledger-summary {
|
| 432 |
-
display: grid;
|
| 433 |
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
| 434 |
-
gap: 8px;
|
| 435 |
-
}
|
| 436 |
-
|
| 437 |
-
.ledger-summary strong,
|
| 438 |
-
.ledger-summary span,
|
| 439 |
-
.badge-item {
|
| 440 |
-
min-width: 0;
|
| 441 |
-
border-left: 3px solid rgba(80, 47, 22, 0.48);
|
| 442 |
-
border-radius: 0 8px 8px 0;
|
| 443 |
-
background: rgba(255, 241, 196, 0.34);
|
| 444 |
-
padding: 8px 10px;
|
| 445 |
-
color: #2a170d;
|
| 446 |
-
font-size: 0.76rem;
|
| 447 |
-
line-height: 1.25;
|
| 448 |
-
font-weight: 900;
|
| 449 |
-
}
|
| 450 |
-
|
| 451 |
-
.badge-list {
|
| 452 |
-
display: grid;
|
| 453 |
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 454 |
-
gap: 7px;
|
| 455 |
-
}
|
| 456 |
-
|
| 457 |
-
.badge-item {
|
| 458 |
-
display: flex;
|
| 459 |
-
align-items: center;
|
| 460 |
-
justify-content: space-between;
|
| 461 |
-
gap: 8px;
|
| 462 |
-
}
|
| 463 |
-
|
| 464 |
-
.badge-item.ready {
|
| 465 |
-
border-left-color: var(--leaf);
|
| 466 |
-
}
|
| 467 |
-
|
| 468 |
-
.badge-item.eligible {
|
| 469 |
-
border-left-color: var(--gold);
|
| 470 |
-
}
|
| 471 |
-
|
| 472 |
-
.badge-item.dataset-ready {
|
| 473 |
-
border-left-color: #5f6d38;
|
| 474 |
-
}
|
| 475 |
-
|
| 476 |
-
.badge-item.training-kit-ready {
|
| 477 |
-
border-left-color: #5f6d38;
|
| 478 |
-
}
|
| 479 |
-
|
| 480 |
-
.badge-item.planned {
|
| 481 |
-
border-left-color: var(--muted-ink);
|
| 482 |
-
}
|
| 483 |
-
|
| 484 |
-
.badge-item span {
|
| 485 |
-
color: var(--muted-ink);
|
| 486 |
-
font-size: 0.68rem;
|
| 487 |
-
text-transform: uppercase;
|
| 488 |
-
}
|
| 489 |
-
|
| 490 |
-
.training-artifact-list {
|
| 491 |
-
display: grid;
|
| 492 |
-
gap: 7px;
|
| 493 |
-
}
|
| 494 |
-
|
| 495 |
-
.training-artifact {
|
| 496 |
-
display: grid;
|
| 497 |
-
gap: 4px;
|
| 498 |
-
min-width: 0;
|
| 499 |
-
}
|
| 500 |
-
|
| 501 |
-
.training-artifact strong {
|
| 502 |
-
color: #2a170d;
|
| 503 |
-
font-size: 0.82rem;
|
| 504 |
-
line-height: 1.25;
|
| 505 |
-
}
|
| 506 |
-
|
| 507 |
-
.training-artifact span {
|
| 508 |
-
color: var(--muted-ink);
|
| 509 |
-
font-size: 0.72rem;
|
| 510 |
-
line-height: 1.25;
|
| 511 |
-
font-weight: 900;
|
| 512 |
-
overflow-wrap: anywhere;
|
| 513 |
-
}
|
| 514 |
-
|
| 515 |
.wood-map-field {
|
| 516 |
position: relative;
|
| 517 |
min-height: 138px;
|
|
@@ -612,11 +522,6 @@ button:disabled {
|
|
| 612 |
grid-template-columns: 1fr;
|
| 613 |
}
|
| 614 |
|
| 615 |
-
.ledger-summary,
|
| 616 |
-
.badge-list {
|
| 617 |
-
grid-template-columns: 1fr;
|
| 618 |
-
}
|
| 619 |
-
|
| 620 |
.command-row {
|
| 621 |
grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 622 |
}
|
|
|
|
| 299 |
.project-list,
|
| 300 |
.whitespace-list,
|
| 301 |
.idea-list,
|
|
|
|
| 302 |
.target-list,
|
| 303 |
.profile-grid,
|
| 304 |
+
.wood-map {
|
|
|
|
| 305 |
display: grid;
|
| 306 |
gap: 9px;
|
| 307 |
}
|
|
|
|
| 309 |
.project,
|
| 310 |
.gap,
|
| 311 |
.idea,
|
|
|
|
| 312 |
.target-toggle,
|
| 313 |
+
.profile-field {
|
|
|
|
| 314 |
border-left: 3px solid rgba(80, 47, 22, 0.48);
|
| 315 |
padding: 8px 10px;
|
| 316 |
background: rgba(255, 241, 196, 0.34);
|
|
|
|
| 319 |
|
| 320 |
.project strong,
|
| 321 |
.gap strong,
|
| 322 |
+
.idea strong {
|
|
|
|
| 323 |
display: block;
|
| 324 |
color: #2a170d;
|
| 325 |
font-size: 0.98rem;
|
|
|
|
| 328 |
|
| 329 |
.project p,
|
| 330 |
.gap p,
|
| 331 |
+
.idea p {
|
|
|
|
| 332 |
margin: 4px 0 0;
|
| 333 |
color: var(--muted-ink);
|
| 334 |
font-size: 0.86rem;
|
|
|
|
| 422 |
box-shadow: 0 0 0 3px rgba(47, 122, 73, 0.13);
|
| 423 |
}
|
| 424 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 425 |
.wood-map-field {
|
| 426 |
position: relative;
|
| 427 |
min-height: 138px;
|
|
|
|
| 522 |
grid-template-columns: 1fr;
|
| 523 |
}
|
| 524 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 525 |
.command-row {
|
| 526 |
grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 527 |
}
|
tests/test_submission_packet.py
CHANGED
|
@@ -32,7 +32,8 @@ def test_submission_packet_contains_demo_and_prize_evidence() -> None:
|
|
| 32 |
assert "Hackathon Advisor" in markdown
|
| 33 |
assert "Well-Tuned | training-kit-ready" in markdown
|
| 34 |
assert "MiniCPM5 LoRA SFT JSONL | ready | lora_dataset" in markdown
|
| 35 |
-
assert "
|
|
|
|
| 36 |
assert "A local-first archive cartographer for family photos" in markdown
|
| 37 |
|
| 38 |
|
|
|
|
| 32 |
assert "Hackathon Advisor" in markdown
|
| 33 |
assert "Well-Tuned | training-kit-ready" in markdown
|
| 34 |
assert "MiniCPM5 LoRA SFT JSONL | ready | lora_dataset" in markdown
|
| 35 |
+
assert "Notes, Chapter, and PNG are available in the app" in markdown
|
| 36 |
+
assert "`/api/prize-ledger` separates ready and planned badge states" in markdown
|
| 37 |
assert "A local-first archive cartographer for family photos" in markdown
|
| 38 |
|
| 39 |
|