Library as its own page; cards show what each member makes; Anthropic-calm palette; artifact previews in answers
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- APPLY-AND-PUSH.batAdded+17
- assets/library-demos/academy_guide-1.gif
- assets/library-demos/academy_guide-1.webpAdded
- assets/library-demos/algorithmic_art-1.gif
- assets/library-demos/algorithmic_art-1.webpAdded
- assets/library-demos/brand_guidelines-1.gif
- assets/library-demos/brand_guidelines-1.webpAdded
- assets/library-demos/canvas_design-1.gif
- assets/library-demos/canvas_design-1.webpAdded
- assets/library-demos/claude_api-1.gif
- assets/library-demos/claude_api-1.webpAdded
- assets/library-demos/create_deck-1.gif
- assets/library-demos/create_deck-1.webpAdded
- assets/library-demos/create_docx-1.gif
- assets/library-demos/create_docx-1.webpAdded
- assets/library-demos/create_pdf-1.gif
- assets/library-demos/create_pdf-1.webpAdded
- assets/library-demos/create_xlsx-1.gif
- assets/library-demos/create_xlsx-1.webpAdded
- assets/library-demos/csv_table-1.gif
- assets/library-demos/csv_table-1.webpAdded
- assets/library-demos/discernment_nudge-1.gif
- assets/library-demos/discernment_nudge-1.webpAdded
- assets/library-demos/frontend_design-1.gif
- assets/library-demos/frontend_design-1.webpAdded
- assets/library-demos/make_plan-1.gif
- assets/library-demos/make_plan-1.webpAdded
- assets/library-demos/mcp_builder-1.gif
- assets/library-demos/mcp_builder-1.webpAdded
- assets/library-demos/review_checklist-1.gif
- assets/library-demos/review_checklist-1.webpAdded
- assets/library-demos/skill_scaffold-1.gif
- assets/library-demos/skill_scaffold-1.webpAdded
- assets/library-demos/slack_gif_creator-1.gif
- assets/library-demos/slack_gif_creator-1.webpAdded
- assets/library-demos/status_update-1.gif
- assets/library-demos/status_update-1.webpAdded
- assets/library-demos/theme_factory-1.gif
- assets/library-demos/theme_factory-1.webpAdded
- assets/library-demos/web_artifacts_builder-1.gif
- assets/library-demos/web_artifacts_builder-1.webpAdded
- assets/library-demos/webapp_testing-1.gif
- assets/library-demos/webapp_testing-1.webpAdded
- distinct-update.zipAdded+3
- distinct_agent/runners.py+2-3
- distinct_server.egg-info/SOURCES.txt+41
- distinct_server/presentation.py+438-142
- distinct_server/render.py+585-221
- distinct_server/ui.py+392-285
- distinct_skills/manifest.py+10-10
1234567891011121314151617cd /d "%~dp0"@echo off(echo ===== APPLY =====powershell -NoProfile -Command "Expand-Archive -LiteralPath distinct-update.zip -DestinationPath . -Force"echo EXPAND_EXIT=%ERRORLEVEL%git lfs install --localgit lfs track "*.gif"git lfs track "*.webp"git add -Agit -c user.name=User1342 -c user.email=User1342@users.noreply.huggingface.co commit -m "Library as its own page; cards show what each member makes; Anthropic-calm palette; artifact previews in answers"echo COMMIT_EXIT=%ERRORLEVEL%git push origin mainecho PUSH_EXIT=%ERRORLEVEL%git log --oneline -1git ls-remote origin main) >> push-log6.txt 2>&1123version https://git-lfs.github.com/spec/v1oid sha256:bf6567abd8ff59b1041ca1e41072335eebeff321526bb347d243f08f8abefad1size 2613564171 unmodified lines172173174175176177178179180171 unmodified lines"type": "final","answer": (f"[demo:{model.manifest.id}] ran "f"{len(directives)} requested library call(s); ""results are in the trace and any artifact is in ""your session outputs."),},ensure_ascii=False,171 unmodified lines172173174175176177178179171 unmodified lines"type": "final","answer": (f"[demo:{model.manifest.id}] ran "f"{len(directives)} requested library call(s). ""Here is what came back."),},ensure_ascii=False,
35 unmodified lines36373839404127 unmodified lines69707172737475761 unmodified line78798081828384858635 unmodified linesdistinct_agent/isolation/windows_appcontainer.pydistinct_mcp/__init__.pydistinct_mcp/common.pydistinct_mcp/files.pydistinct_mcp/lists.pydistinct_mcp/numbers.py27 unmodified linesdistinct_skills/handlers.pydistinct_skills/loader.pydistinct_skills/manifest.pydistinct_skills/skills/csv-table/SKILL.mddistinct_skills/skills/csv-table/tool.jsondistinct_skills/skills/review-checklist/SKILL.mddistinct_skills/skills/review-checklist/tool.jsondistinct_skills/skills/review-checklist/assets/checklist.md1 unmodified linedistinct_skills/skills/skill-scaffold/SKILL.mddistinct_skills/skills/skill-scaffold/tool.jsondistinct_skills/skills/skill-scaffold/assets/skill-template.mddistinct_skills/skills/status-update/SKILL.mddistinct_skills/skills/status-update/tool.jsondistinct_skills/skills/status-update/assets/status-update.mddistinct_tools/__init__.pydistinct_tools/approval.pydistinct_tools/core.py35 unmodified lines3637383940414227 unmodified lines7071727374757677787980818283848586878889909192939495969798991001011021031041051061 unmodified line10810911011111211311411511611711811912012112212312412512612735 unmodified linesdistinct_agent/isolation/windows_appcontainer.pydistinct_mcp/__init__.pydistinct_mcp/common.pydistinct_mcp/external.pydistinct_mcp/files.pydistinct_mcp/lists.pydistinct_mcp/numbers.py27 unmodified linesdistinct_skills/handlers.pydistinct_skills/loader.pydistinct_skills/manifest.pydistinct_skills/skills/academy-guide/SKILL.mddistinct_skills/skills/academy-guide/tool.jsondistinct_skills/skills/academy-guide/assets/guide.mddistinct_skills/skills/algorithmic-art/SKILL.mddistinct_skills/skills/algorithmic-art/tool.jsondistinct_skills/skills/algorithmic-art/assets/guide.mddistinct_skills/skills/brand-guidelines/SKILL.mddistinct_skills/skills/brand-guidelines/tool.jsondistinct_skills/skills/brand-guidelines/assets/guide.mddistinct_skills/skills/canvas-design/SKILL.mddistinct_skills/skills/canvas-design/tool.jsondistinct_skills/skills/canvas-design/assets/guide.mddistinct_skills/skills/claude-api/SKILL.mddistinct_skills/skills/claude-api/tool.jsondistinct_skills/skills/claude-api/assets/guide.mddistinct_skills/skills/create-deck/SKILL.mddistinct_skills/skills/create-deck/tool.jsondistinct_skills/skills/create-docx/SKILL.mddistinct_skills/skills/create-docx/tool.jsondistinct_skills/skills/create-xlsx/SKILL.mddistinct_skills/skills/create-xlsx/tool.jsondistinct_skills/skills/csv-table/SKILL.mddistinct_skills/skills/csv-table/tool.jsondistinct_skills/skills/discernment-nudge/SKILL.mddistinct_skills/skills/discernment-nudge/tool.jsondistinct_skills/skills/discernment-nudge/assets/guide.mddistinct_skills/skills/frontend-design/SKILL.mddistinct_skills/skills/frontend-design/tool.jsondistinct_skills/skills/mcp-builder/SKILL.mddistinct_skills/skills/mcp-builder/tool.jsondistinct_skills/skills/mcp-builder/assets/guide.mddistinct_skills/skills/review-checklist/SKILL.mddistinct_skills/skills/review-checklist/tool.jsondistinct_skills/skills/review-checklist/assets/checklist.md1 unmodified linedistinct_skills/skills/skill-scaffold/SKILL.mddistinct_skills/skills/skill-scaffold/tool.jsondistinct_skills/skills/skill-scaffold/assets/skill-template.mddistinct_skills/skills/slack-gif-creator/SKILL.mddistinct_skills/skills/slack-gif-creator/tool.jsondistinct_skills/skills/slack-gif-creator/assets/guide.mddistinct_skills/skills/status-update/SKILL.mddistinct_skills/skills/status-update/tool.jsondistinct_skills/skills/status-update/assets/status-update.mddistinct_skills/skills/theme-factory/SKILL.mddistinct_skills/skills/theme-factory/tool.jsondistinct_skills/skills/web-artifacts-builder/SKILL.mddistinct_skills/skills/web-artifacts-builder/tool.jsondistinct_skills/skills/web-artifacts-builder/assets/guide.mddistinct_skills/skills/webapp-testing/SKILL.mddistinct_skills/skills/webapp-testing/tool.jsondistinct_skills/skills/webapp-testing/assets/guide.mddistinct_tools/__init__.pydistinct_tools/approval.pydistinct_tools/core.py
17 unmodified lines1819202122232425262728293031323334353637383914 unmodified lines5455565758596061626364656667686970717214 unmodified lines878889909192937 unmodified lines1011021031041051061071081091101111121131141151161171181191201215 unmodified lines1271281291301311321331341351361371387 unmodified lines146147148149150151152153154155156157158159160161162109 unmodified lines27227327427527627727827928063 unmodified lines344345346347348349350351352353354355356357358359360361362132 unmodified lines4954964974984995005015025035046 unmodified lines5115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595606 unmodified lines567568569570571572573743 unmodified lines1317131813191320132113221323132413251326132713281329133025 unmodified lines1356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214032 unmodified lines1406140714081409141014111412141314144 unmodified lines141914201421142214231424142514261427142814296 unmodified lines1436143714381439144014411442144314441445144617 unmodified linesmeasured.**2. WCAG AA, computed rather than assumed.**Contrast against the canvas ``#F7FAF3``:=============== ========= ====== ==========================================Colour Ratio AA? Used for=============== ========= ====== ==========================================``#203127`` 13.3:1 pass body text``#4A5A50`` 6.0:1 pass secondary text``#5F7064`` 4.9:1 pass muted text``#2F4A38`` 9.2:1 pass accent text``#3F6349`` 6.8:1* pass primary button (*white on it)``#557E5E`` 4.3:1 FAIL borders, focus rings, 24px+ only``#6E9B76`` 3.0:1 FAIL decorative fill only=============== ========= ====== ==========================================The spec's two greens fail AA for body text, so neither is ever used for bodytext. The darker values are shades of the same hue, not new colours.**Layout: the shell decides its own height.**The previous sheet locked ``.gradio-container`` and ``.c-shell`` to ``100vh``14 unmodified linesfrom __future__ import annotationsPALETTE = {"canvas": "#F7FAF3","surface": "#FFFFFF","mint": "#DDECD7","sage": "#6E9B76","sage_dark": "#557E5E","border": "#BDD2B7","text": "#203127","muted": "#5F7064",# Accessible shades of the same hue; see the table above."sage_deep": "#2F4A38","sage_button": "#3F6349","text_secondary": "#4A5A50","hairline": "#E6EDE1",}# Loaded via launch(head=...) so the font arrives before first paint rather than14 unmodified lines<script>(function(){function media(el){return el.closest ? el.closest('.c-libcard__media') : null;}function show(m){if(!m || m.classList.contains('is-playing')) return;var src = m.getAttribute('data-gif');7 unmodified linesm.classList.remove('is-playing');m.querySelectorAll('img').forEach(function(i){i.remove();});}document.addEventListener('mouseover', function(e){show(media(e.target));});document.addEventListener('mouseout', function(e){var m = media(e.target);if(m && !m.contains(e.relatedTarget)) hide(m);});var holdTimer=null;document.addEventListener('touchstart', function(e){var m = media(e.target); if(!m) return;holdTimer = setTimeout(function(){show(m);}, 300);}, {passive:true});['touchend','touchcancel'].forEach(function(name){document.addEventListener(name, function(e){clearTimeout(holdTimer); hide(media(e.target));}, {passive:true});});})();</script>"""5 unmodified lines==================================================================== */:root{/* colour */--c-canvas:#F7FAF3; --c-surface:#FFFFFF; --c-mint:#DDECD7;--c-sage:#6E9B76; --c-sage-dark:#557E5E; --c-sage-deep:#2F4A38;--c-accent:#3F6349; --c-accent-hover:#33523B;--c-text:#203127; --c-text-2:#4A5A50; --c-muted:#5F7064;--c-hairline:#E6EDE1; --c-border:#BDD2B7; --c-fill:#F1F5EE;--c-warn-bg:#FDF8EA; --c-warn-rule:#8A6D23;/* spacing: 4px base, no value outside this scale */--s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;7 unmodified lines--r-md:12px; --r-lg:16px; --r-pill:999px;/* elevation: two levels */--e1:0 1px 2px rgba(32,49,39,.05);--e2:0 8px 28px -12px rgba(32,49,39,.18);--font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;/* DISPLAY FACE. Option A is live. Comment it out and uncomment option B tocompare; nothing else in the sheet changes. */--font-display:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; /* A *//* --font-display:'Fraunces','Iowan Old Style',Georgia,serif; */ /* B */--measure:68ch;/* One shell geometry, referenced by every top-level block so there is109 unmodified linesline-height:1; white-space:nowrap; overflow:hidden;text-overflow:ellipsis; padding-left:var(--s3);border-left:1px solid var(--c-hairline);}.c-identity{font-size:var(--t-micro); color:var(--c-text-2);background:var(--c-surface); padding:5px 12px;border-radius:var(--r-pill); box-shadow:var(--e1); white-space:nowrap;}.c-identity--link{text-decoration:underline; cursor:pointer;}/* ========================================================================63 unmodified lines/* ========================================================================NOTICE==================================================================== */.c-notice{background:var(--c-warn-bg); border-radius:var(--r-md);padding:var(--s3) var(--s4);}.c-notice__summary{display:flex; align-items:center; gap:var(--s3);cursor:pointer; list-style:none;font-size:var(--t-label); color:var(--c-text-2);line-height:1.45;}.c-notice__summary::-webkit-details-marker{display:none;}.c-notice__summary strong{color:var(--c-text); font-weight:600;}.c-notice__mark{flex:none; width:16px; height:16px; border-radius:50%;background:var(--c-warn-rule); color:#fff; font-size:11px;font-weight:700; display:grid; place-items:center;}.c-notice__toggle{margin-left:auto; white-space:nowrap; font-size:var(--t-micro);color:var(--c-muted); text-decoration:underline;}.c-notice__body{margin:var(--s3) 0 var(--s1) 28px; font-size:var(--t-micro);line-height:1.6; color:var(--c-text-2); max-width:var(--measure);}.c-notice__summary:focus-visible{outline:3px solid var(--c-sage); outline-offset:3px;132 unmodified lines.c-grade-card__name{font-size:var(--t-body); font-weight:600; color:var(--c-text);}.c-grade-card__link{font-size:var(--t-micro); color:var(--c-sage-deep);text-decoration:underline; white-space:nowrap;}.c-grade-card__overall{display:flex; align-items:center; gap:var(--s3);margin:0; flex-wrap:wrap;}/* Coverage is never separated from the overall result. A letter with nodenominator beside it is the thing this panel must not produce. */.c-grade-card__coverage{font-size:var(--t-micro); color:var(--c-text-2);font-variant-numeric:tabular-nums;}.c-grade-card__note{margin:0; padding-top:var(--s3); font-size:var(--t-micro);6 unmodified lines.c-grade-row:last-child{border-bottom:none;}.c-grade-row__label{font-size:var(--t-label); color:var(--c-text-2);}/* ONE TOKEN, NOT A LETTER WITH A CAPTION.The scale name, the letter and the coverage share a single border and asingle overflow context, so there is no crop, no skim and no line break thatcan separate a letter from the coverage it was drawn from. "B" over two ofsix areas cannot be quoted as "B" because the two of six is inside the box.Impact and evidence are told apart three ways at once: the word inside thetoken, the corner radius (rectangle against pill) and the fill. Three signalsbecause one is a column heading away from being lost, and the palette has asingle hue so colour cannot be one of them. */.c-score{display:inline-flex; align-items:stretch; flex:none; line-height:1;border:1px solid var(--c-border); overflow:hidden;font-variant-numeric:tabular-nums;}.c-score--performance{border-radius:8px;}.c-score--evidence{border-radius:var(--r-pill);}.c-score__scale{display:flex; align-items:center; padding:0 8px;font-size:9.5px; font-weight:600; letter-spacing:.08em;text-transform:uppercase; color:var(--c-muted);background:var(--c-fill); border-right:1px solid var(--c-border);}.c-score__letter{display:flex; align-items:center; justify-content:center;min-width:30px; padding:6px 8px; font-size:var(--t-body);font-weight:700; color:#22402C; background:var(--c-mint);}.c-score--evidence .c-score__letter{background:transparent; color:var(--c-text);}.c-score__coverage{display:flex; align-items:center; padding:0 9px;font-size:var(--t-micro); color:var(--c-text-2);background:var(--c-surface);border-left:1px solid var(--c-border); white-space:nowrap;}/* An absence keeps its scale label, so a reader knows which question wentunanswered, and is dashed and lowercase so it cannot be mistaken for aresult on either scale. */.c-score--none{border-style:dashed; background:transparent;}.c-score--none .c-score__scale{background:transparent; border-right-style:dashed;}.c-score__word{display:flex; align-items:center; padding:6px 10px;font-size:var(--t-micro); font-weight:500; color:var(--c-muted);white-space:nowrap;}/* A reported value is published fact without a letter: solid border, no fill,value text where a letter would sit. Distinct from both a grade (filledletter) and an absence (dashed). */.c-score--reported{background:transparent;}.c-score--reported .c-score__word{color:var(--c-text-2); white-space:normal;}.c-grade-row__value{font-size:var(--t-micro); color:var(--c-text-2);margin-left:var(--s2); white-space:nowrap;}.c-grade-card__evidence-detail{font-size:var(--t-micro); color:var(--c-muted);align-self:center;}.c-rubric__warning{margin:0; padding:var(--s3); background:var(--c-mint);border-radius:var(--r-md); font-size:var(--t-micro);line-height:1.55; color:var(--c-text);}6 unmodified lines.c-legend__scale-body{margin:0; font-size:var(--t-micro); line-height:1.55;color:var(--c-text-2);}.c-legend__scale-body strong{color:var(--c-text); font-weight:600;}.c-grade-card__scores{display:flex; flex-wrap:wrap; gap:var(--s2);}/* ========================================================================EMPTY STATES: no dashed drop-zone rectangles743 unmodified lines.c-grade-row{flex-wrap:wrap; gap:var(--s2);}}/* The score token never breaks up, at any width. Coverage sharing a borderwith its letter is the whole design, so the cells are explicitly notallowed to wrap and the token is not allowed to shrink below its content.The row around it wraps instead. */.c-score{flex-wrap:nowrap !important; flex:none !important;}.c-score__scale,.c-score__letter,.c-score__coverage,.c-score__word{white-space:nowrap; flex:none;}.c-grade-row__label{min-width:0; overflow-wrap:anywhere;}@media (prefers-reduced-motion:reduce){25 unmodified lines}/* ---- Library page: cards over tick boxes ------------------------------ */.c-library-section{scroll-margin-top:24px;}.c-libgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:var(--s4); margin:var(--s4) 0;}.c-libcard{background:var(--c-surface); border:1px solid var(--c-hairline);border-radius:var(--r-lg); padding:var(--s4);display:flex; flex-direction:column; gap:6px;transition:box-shadow .18s ease, transform .18s ease;}.c-libcard:hover{box-shadow:var(--e2); transform:translateY(-2px);}.c-libcard__media{margin:calc(var(--s4)*-1) calc(var(--s4)*-1) var(--s2);aspect-ratio:16/9; border-radius:var(--r-lg) var(--r-lg) 0 0;background:var(--c-fill) center/cover no-repeat;display:flex; align-items:center; justify-content:center;overflow:hidden; position:relative;}.c-libcard__media img{width:100%; height:100%; object-fit:cover; display:block;}.c-libcard__play{font-size:22px; color:var(--c-muted); opacity:.8;}.c-libcard__media.is-playing .c-libcard__play{display:none;}.c-libcard__head{display:flex; align-items:center; gap:var(--s2);}.c-libcard__kind{font-size:var(--t-micro); letter-spacing:.06em; text-transform:uppercase;padding:2px 8px; border-radius:999px; background:var(--c-fill);color:var(--c-text-2);}.c-libcard__kind--skill{background:var(--c-sage-wash, #e7efe7); color:var(--c-sage-deep);}.c-libcard__default{margin-left:auto; font-size:var(--t-micro); color:var(--c-sage-deep);border:1px solid currentColor; border-radius:999px; padding:1px 8px;}.c-libcard__name{margin:0; font-size:var(--t-body); font-weight:650; color:var(--c-text);text-transform:capitalize;}.c-libcard__author{margin:0; font-size:var(--t-micro); color:var(--c-muted);}.c-libcard__desc{margin:2px 0 0; font-size:var(--t-small, 13px); line-height:1.5;color:var(--c-text-2);display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical;overflow:hidden;}.c-libcard__ref{margin-top:auto; padding-top:var(--s2); font-family:var(--mono);font-size:11px; color:var(--c-muted);}.c-librarydefaults-head{margin-top:var(--s4);}/* ---- Quick nav under the identity box --------------------------------- */.c-quicknav{display:flex; gap:var(--s3); justify-content:flex-end;margin:calc(var(--s2)*-1) 0 var(--s2);}.c-quicknav__link{font-size:var(--t-micro); letter-spacing:.04em; text-decoration:none;color:var(--c-sage-deep); border:1px solid var(--c-hairline);background:var(--c-surface); padding:4px 12px; border-radius:999px;}.c-quicknav__link:hover{border-color:var(--c-sage-deep);}/* ---- The no-agents veil ----------------------------------------------- *//* Shown only while somebody is signed in (the identity span has text) and2 unmodified lines.c-conversation{position:relative;}.c-shell:has(.c-identity:not(:empty)):has(.c-noworker-hook) .c-veil{display:flex; position:absolute; inset:0; z-index:12;align-items:center; justify-content:center; padding:var(--s5);background:color-mix(in srgb, var(--c-bg, #f7f9f3) 62%, transparent);backdrop-filter:blur(2.5px); border-radius:var(--r-lg);/* The veil informs; it does not imprison. Pointer events pass througheverywhere except its own panel, so a transient no-worker blip (a pollgap, a mode change) can never trap a click mid-flow. */4 unmodified lines.c-veil__panel{max-width:380px; text-align:center; background:var(--c-surface);border:1px solid var(--c-hairline); border-radius:var(--r-lg);box-shadow:var(--e2); padding:var(--s5);}.c-veil__title{margin:0 0 6px; font-weight:650; font-size:var(--t-lg); color:var(--c-text);}.c-veil__body{margin:0 0 var(--s4); color:var(--c-text-2); line-height:1.55;}.c-veil__action{display:inline-block; text-decoration:none; background:var(--c-sage-deep);color:#fff; padding:10px 20px; border-radius:999px; font-weight:600;}.c-veil__action:hover{filter:brightness(1.08);}/* ---- Professional polish pass ----------------------------------------- *//* Calmer sections: the tail accordions read as pages, not widgets. */6 unmodified lines/* Inputs: quiet until focused. */.gradio-container input[type="text"], .gradio-container textarea{border-radius:var(--r-md) !important;}@media (max-width:700px){.c-libgrid{grid-template-columns:1fr 1fr; gap:var(--s3);}.c-quicknav{justify-content:flex-start;}}@media (max-width:460px){.c-libgrid{grid-template-columns:1fr;}}"""17 unmodified lines181920212223242526272829303132333435363738394014 unmodified lines5556575859606162636465666768697071727374757677787914 unmodified lines9495969798991001017 unmodified lines1091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721735 unmodified lines1791801811821831841851861871881891907 unmodified lines198199200201202203204205206207208209210211212213214215216217109 unmodified lines32732832933033133233333433533633763 unmodified lines401402403404405406407408409410411412413414415416417418419420421422423424132 unmodified lines5575585595605615625635645656 unmodified lines5725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536 unmodified lines660661662663664665743 unmodified lines14091410141114121413141414151416141714181419142025 unmodified lines14461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716082 unmodified lines16111612161316141615161616171618161916201621162216234 unmodified lines16281629163016311632163316341635163616371638163916401641164216436 unmodified lines16501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217 unmodified linesmeasured.**2. WCAG AA, computed rather than assumed.**Contrast against the canvas ``#FAF9F5``:=============== ========= ====== ==========================================Colour Ratio AA? Used for=============== ========= ====== ==========================================``#1F1E1A`` 15.6:1 pass body text``#504D45`` 7.6:1 pass secondary text``#6C6961`` 4.6:1 pass muted text``#174F37`` 9.3:1 pass accent text``#1E6E4B`` 6.0:1* pass primary button (*white on it: 6.2:1)``#4E7561`` 4.2:1 FAIL borders, strokes, 24px+ only``#5E8A73`` 3.2:1 FAIL decorative fill only=============== ========= ====== ==========================================The two lighter greens fail AA for body text, so neither is ever used forbody text. Every neutral is warm-grey over ivory; green appears only whereit means something (the action, the selection, the focus).**Layout: the shell decides its own height.**The previous sheet locked ``.gradio-container`` and ``.c-shell`` to ``100vh``14 unmodified linesfrom __future__ import annotationsPALETTE = {# A warm paper ground with exactly one accent. The previous sheet tinted# the canvas, the borders, the fills and the pills green all at once, and# four tinted neutrals beside one another read as a colour scheme fighting# itself. Now the neutrals are neutral (warm greys over an ivory ground)# and green appears only where it means something: the primary action,# the selected state, the focus ring."canvas": "#FAF9F5","surface": "#FFFFFF","mint": "#E8F0EA", # selection tint, the only coloured fill"sage": "#5E8A73", # decorative strokes over 24px"sage_dark": "#4E7561","border": "#D8D3C7","text": "#1F1E1A","muted": "#6C6961",# Accessible shades of the accent; see the table above."sage_deep": "#174F37","sage_button": "#1E6E4B","text_secondary": "#504D45","hairline": "#EAE7DF",}# Loaded via launch(head=...) so the font arrives before first paint rather than14 unmodified lines<script>(function(){function card(el){return el && el.closest ? el.closest('.c-libcard') : null;}function mediaOf(c){return c ? c.querySelector('.c-libcard__media') : null;}function show(m){if(!m || m.classList.contains('is-playing')) return;var src = m.getAttribute('data-gif');7 unmodified linesm.classList.remove('is-playing');m.querySelectorAll('img').forEach(function(i){i.remove();});}/* Hover previews, scoped to the media block so sweeping the grid does notstart twenty GIFs at once. */document.addEventListener('mouseover', function(e){var m = e.target.closest ? e.target.closest('.c-libcard__media') : null; show(m);});document.addEventListener('mouseout', function(e){var m = e.target.closest ? e.target.closest('.c-libcard__media') : null;if(m && !m.contains(e.relatedTarget)) hide(m);});/* Press-and-hold anywhere on the card previews on a phone; a plain tap isthe selection. The two must not fire together, hence the flag. */var holdTimer=null, held=false;document.addEventListener('touchstart', function(e){var c = card(e.target); if(!c) return;held=false;holdTimer = setTimeout(function(){held=true; show(mediaOf(c));}, 350);}, {passive:true});['touchend','touchcancel'].forEach(function(name){document.addEventListener(name, function(e){clearTimeout(holdTimer); hide(mediaOf(card(e.target)));}, {passive:true});});/* THE CARD IS THE CONTROL, and the way it saves is by forwarding its clickto the framework's own box for that member. Writing a hidden field'svalue and dispatching an input event was tried first: it updates the DOMand never reaches the server, because the framework listens to its ownbinding rather than to the element. Clicking its control cannot driftfrom it. The boxes are labelled with the bare reference, so the mappingis an exact string rather than a position two lists could disagree on. */function boxFor(ref){var group = document.getElementById('library-choice');if(!group) return null;var labels = group.querySelectorAll('label');for(var i=0;i<labels.length;i++){if((labels[i].textContent||'').trim() === ref){return labels[i].querySelector('input[type=checkbox]');}}return null;}document.addEventListener('click', function(e){var c = card(e.target);if(!c || !c.hasAttribute('data-ref')) return;if(held){held=false; return;}if(e.target.closest && e.target.closest('a')) return;var box = boxFor(c.getAttribute('data-ref'));if(!box) return; /* no transport, no pretend selection *//* Paint first so the card answers the tap immediately; the count catchesup when the save returns. */c.classList.toggle('is-on');c.setAttribute('aria-pressed', c.classList.contains('is-on') ? 'true' : 'false');box.click();});document.addEventListener('keydown', function(e){if(e.key !== ' ' && e.key !== 'Enter') return;var c = card(e.target);if(!c || e.target !== c) return;e.preventDefault(); c.click();});})();</script>"""5 unmodified lines==================================================================== */:root{/* colour */--c-canvas:#FAF9F5; --c-surface:#FFFFFF; --c-mint:#E8F0EA;--c-sage:#5E8A73; --c-sage-dark:#4E7561; --c-sage-deep:#174F37;--c-accent:#1E6E4B; --c-accent-hover:#185C3E;--c-text:#1F1E1A; --c-text-2:#504D45; --c-muted:#6C6961;--c-hairline:#EAE7DF; --c-border:#D8D3C7; --c-fill:#F4F1EA;--c-warn-bg:#FBF6E8; --c-warn-rule:#7A6420;/* spacing: 4px base, no value outside this scale */--s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;7 unmodified lines--r-md:12px; --r-lg:16px; --r-pill:999px;/* elevation: two levels */--e1:0 1px 2px rgba(35,32,26,.05);--e2:0 8px 28px -12px rgba(35,32,26,.16);--font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;/* DISPLAY FACE. Option B is live: the serif display over a warm paperground is what carries the editorial, Anthropic-adjacent register; thesans stays for everything set smaller than a title. Swap the live lineto compare; nothing else in the sheet changes. *//* --font-display:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; */ /* A */--font-display:'Fraunces','Iowan Old Style',Georgia,serif; /* B */--c-focus:rgba(30,110,75,.4);--measure:68ch;/* One shell geometry, referenced by every top-level block so there is109 unmodified linesline-height:1; white-space:nowrap; overflow:hidden;text-overflow:ellipsis; padding-left:var(--s3);border-left:1px solid var(--c-hairline);}/* Who you are, said quietly. This was a floating white pill with a shadow,which gave the top of the page a second object competing with thewordmark for the eye; it is a caption, so it is set like one. */.c-identity{font-size:var(--t-micro); color:var(--c-muted); white-space:nowrap;overflow:hidden; text-overflow:ellipsis; max-width:38ch;}.c-identity--link{text-decoration:underline; cursor:pointer;}/* ========================================================================63 unmodified lines/* ========================================================================NOTICE==================================================================== *//* A caution, not an alarm: paper surface and a hairline, with the mark theonly saturated pixel. The previous amber flood shouted over the page andwas the loudest colour on it. */.c-notice{background:var(--c-surface); border:1px solid var(--c-hairline);border-radius:var(--r-md); padding:var(--s3) var(--s4);}.c-notice__summary{display:flex; align-items:baseline; gap:var(--s3);flex-wrap:wrap; cursor:pointer; list-style:none;font-size:var(--t-label); color:var(--c-text-2);line-height:1.5;}.c-notice__summary::-webkit-details-marker{display:none;}.c-notice__summary strong{color:var(--c-text); font-weight:600;}.c-notice__mark{flex:none; width:16px; height:16px; border-radius:50%;align-self:center;border:1.5px solid var(--c-warn-rule); color:var(--c-warn-rule);font-size:10px; font-weight:700; display:grid; place-items:center;}.c-notice__toggle{margin-left:auto; white-space:nowrap; font-size:var(--t-micro);color:var(--c-muted); text-decoration:underline;text-underline-offset:2px; padding-left:var(--s3);}.c-notice__body{margin:var(--s3) 0 var(--s1) 28px; font-size:var(--t-micro);line-height:1.6; color:var(--c-text-2); max-width:var(--measure);}.c-notice__summary:focus-visible{outline:3px solid var(--c-sage); outline-offset:3px;132 unmodified lines.c-grade-card__name{font-size:var(--t-body); font-weight:600; color:var(--c-text);}.c-grade-card__link{font-size:var(--t-micro); color:var(--c-sage-deep);text-decoration:underline; white-space:nowrap;}/* Coverage sits in the card head, beside the name, because it qualifies thewhole card. "three of six areas published" is not a score and must never beread as one, so it is set as quiet metadata rather than as a result. */.c-grade-card__coverage{font-size:var(--t-micro); color:var(--c-text-2);font-variant-numeric:tabular-nums;}.c-grade-card__note{margin:0; padding-top:var(--s3); font-size:var(--t-micro);6 unmodified lines.c-grade-row:last-child{border-bottom:none;}.c-grade-row__label{font-size:var(--t-label); color:var(--c-text-2);}/* ONE TOKEN, NOT A NUMBER WITH A CAPTION.The figure and the method that produced it share a single border and a singleoverflow context, so there is no crop, no skim and no line break that canseparate them. "54 MWh" metered at the socket and "54 MWh" inferred from achip's rated wattage are different claims, and the word that tells them apartis inside the box rather than beside it.Method is told apart three ways at once: the word itself, the fill, and theborder. Three signals because one is a heading away from being lost, and thepalette has a single hue so colour cannot carry it alone. */.c-fig{display:inline-flex; align-items:stretch; flex:none; line-height:1;border:1px solid var(--c-border); border-radius:8px; overflow:hidden;font-variant-numeric:tabular-nums;}.c-fig__value{display:flex; align-items:center; padding:6px 9px;font-size:var(--t-label); font-weight:600; color:#22402C;background:var(--c-mint); white-space:nowrap;}.c-fig__method{display:flex; align-items:center; padding:0 8px;font-size:9.5px; font-weight:600; letter-spacing:.08em;text-transform:uppercase; color:var(--c-muted);background:var(--c-surface);border-left:1px solid var(--c-border); white-space:nowrap;}/* A measured figure is the only one that gets the filled value. A modelled oneis the same shape unfilled, because it is a real published number arrived atby calculation rather than by metering, and the difference should read at aglance without either being dressed as a fault. */.c-fig--modelled .c-fig__value,.c-fig--proxy .c-fig__value{background:var(--c-fill); color:var(--c-text);}.c-fig--unknown{border-style:dotted;}.c-fig--unknown .c-fig__value{background:transparent; color:var(--c-text-2);}/* An absence is dashed, wordy and unfilled: it differs from a figure in shape,fill and content, because an absence drawn as a small number asserts a lightresult that nobody measured. */.c-fig--none{border-style:dashed; background:transparent;}.c-fig__word{display:flex; align-items:center; padding:6px 10px;font-size:var(--t-micro); font-weight:500; color:var(--c-muted);white-space:nowrap;}/* The card's own prose. Summary sits above the figures because a reader whostops after one paragraph should stop having read the caveat, not theheadline number. */.c-grade-card__summary{margin:0; font-size:var(--t-label); line-height:1.6;color:var(--c-text-2);}.c-grade-card__covers{margin:0; font-size:var(--t-micro); line-height:1.55;color:var(--c-muted);}.c-grade-card__covers strong{color:var(--c-text-2); font-weight:600;}.c-grade-card__links{display:flex; flex-wrap:wrap; gap:var(--s3); margin:0;padding-top:var(--s3);border-top:1px solid var(--c-hairline);}/* THE WORKING, ONE CLICK AWAY.Six notes and six citations on the face of the card bury the figures; hidingthem makes the figures unverifiable. A disclosure is the only arrangementthat is both complete and readable. */.c-sources{border-top:1px solid var(--c-hairline); padding-top:var(--s3);}.c-sources__summary{cursor:pointer; font-size:var(--t-micro); font-weight:600;letter-spacing:.04em; color:var(--c-sage-deep);}.c-sources__summary:focus-visible{outline:2px solid var(--c-sage);outline-offset:2px; border-radius:3px;}.c-sources__body{display:flex; flex-direction:column; gap:var(--s2);margin-top:var(--s3);}.c-source{display:grid; grid-template-columns:minmax(88px,auto) 1fr;gap:var(--s1) var(--s3); margin:0; font-size:var(--t-micro);line-height:1.55;}.c-source__label{color:var(--c-text-2); font-weight:600;}.c-source__body{color:var(--c-muted);}.c-source__link{color:var(--c-sage-deep); text-decoration:underline;white-space:nowrap;}.c-reading{padding-top:var(--s3); border-top:1px dashed var(--c-border);}.c-reading__title{margin:0 0 var(--s2); font-size:var(--t-micro); font-weight:600;letter-spacing:.06em; text-transform:uppercase;color:var(--c-muted);}.c-reading__links{display:flex; flex-direction:column; gap:var(--s1); margin:0;}.c-reading__link{font-size:var(--t-micro); color:var(--c-sage-deep);text-decoration:underline;}.c-rubric__warning{margin:0; padding:var(--s3); background:var(--c-mint);border-radius:var(--r-md); font-size:var(--t-micro);line-height:1.55; color:var(--c-text);}6 unmodified lines.c-legend__scale-body{margin:0; font-size:var(--t-micro); line-height:1.55;color:var(--c-text-2);}.c-legend__scale-body strong{color:var(--c-text); font-weight:600;}/* ========================================================================EMPTY STATES: no dashed drop-zone rectangles743 unmodified lines.c-grade-row{flex-wrap:wrap; gap:var(--s2);}}/* The figure token never breaks up, at any width. The method word sharing aborder with its number is the whole design, so the cells are explicitly notallowed to wrap and the token is not allowed to shrink below its content.The row around it wraps instead. */.c-fig{flex-wrap:nowrap !important; flex:none !important;}.c-fig__value,.c-fig__method,.c-fig__word{white-space:nowrap; flex:none;}.c-grade-row__label{min-width:0; overflow-wrap:anywhere;}@media (prefers-reduced-motion:reduce){25 unmodified lines}/* ---- Library page ------------------------------------------------------Its own page, reached from the quick nav. One control: the card. Clickingor tapping a card makes that member a default and the page saves at once;there is no separate list of tick boxes to reconcile with the grid. Theselected state has to survive a squint test: accent border, filled check,tinted wash — three signals, any one of which is enough. */.c-libpage{max-width:var(--shell-max); margin:0 auto; padding:var(--s5) var(--shell-pad) var(--s8);}.c-libpage__back{font-size:var(--t-label); color:var(--c-text-2); text-decoration:none;display:inline-flex; align-items:center; gap:6px;}.c-libpage__back:hover{color:var(--c-text);}.c-libpage__title{margin:var(--s3) 0 4px; font-family:var(--font-display);font-weight:600; font-size:clamp(26px,4vw,34px); letter-spacing:-.015em;color:var(--c-text);}.c-libpage__lede{margin:0 0 var(--s5); max-width:var(--measure); color:var(--c-text-2);}.c-libsave{position:sticky; top:0; z-index:9; display:flex; align-items:center; gap:var(--s3);background:color-mix(in srgb, var(--c-canvas) 88%, transparent);backdrop-filter:blur(6px); padding:var(--s2) 0; margin-bottom:var(--s2);}.c-libsave__count{font-size:var(--t-label); color:var(--c-text-2);}.c-libsave__count strong{color:var(--c-sage-deep); font-weight:650;}.c-libgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:var(--s4); margin:var(--s4) 0;}.c-libcard{position:relative; background:var(--c-surface);border:1.5px solid var(--c-hairline); border-radius:var(--r-lg);padding:var(--s4); cursor:pointer; -webkit-tap-highlight-color:transparent;display:flex; flex-direction:column; gap:6px; text-align:left;transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;}.c-libcard:hover{border-color:var(--c-border); box-shadow:var(--e1);}.c-libcard:focus-visible{outline:3px solid var(--c-focus, rgba(30,110,75,.4)); outline-offset:2px;}.c-libcard.is-on{border-color:var(--c-accent); background:color-mix(in srgb, var(--c-mint) 38%, var(--c-surface));}.c-libcard.is-on:hover{box-shadow:var(--e1);}/* The check is a real mark, not a decoration: absent = a quiet plus, present= a filled tick. It is what makes the card legible as a control at all. */.c-libcard__check{position:absolute; top:10px; right:10px; z-index:2;width:24px; height:24px; border-radius:50%;display:flex; align-items:center; justify-content:center;font-size:14px; line-height:1;border:1.5px solid var(--c-border); color:var(--c-muted);background:var(--c-surface);transition:all .15s ease;}.c-libcard.is-on .c-libcard__check{border-color:var(--c-accent);background:var(--c-accent); color:#fff;}.c-libcard__check::before{content:"+";}.c-libcard.is-on .c-libcard__check::before{content:"✓";}.c-libcard__media{margin:calc(var(--s4)*-1) calc(var(--s4)*-1) var(--s2);aspect-ratio:16/9; border-radius:calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px) 0 0;background:var(--c-fill) center/cover no-repeat;display:flex; align-items:center; justify-content:center;overflow:hidden; position:relative;}.c-libcard__media img{width:100%; height:100%; object-fit:cover;object-position:top center; display:block;position:absolute; inset:0;}/* The still is the run's own result. It sits under the animation, and it iswhat the card shows on a phone, where nothing hovers. */.c-libcard__poster{z-index:0;}.c-libcard__media.is-playing .c-libcard__poster{opacity:0;}.c-libcard__play{position:relative; z-index:1;display:inline-flex; align-items:center; gap:6px;font-size:var(--t-micro); color:var(--c-text-2);background:color-mix(in srgb, var(--c-surface) 92%, transparent);border:1px solid var(--c-hairline); backdrop-filter:blur(3px);border-radius:999px; padding:4px 10px; opacity:0;transition:opacity .15s ease;}.c-libcard__play::before{content:"▶"; font-size:9px; color:var(--c-sage-deep);}/* The invitation appears on approach and never sits permanently over theresult it is inviting you to watch. Always visible where there is noposter to obscure, since then it is the only thing in the frame. */.c-libcard:hover .c-libcard__play,.c-libcard:focus-visible .c-libcard__play{opacity:1;}.c-libcard__media:not(:has(.c-libcard__poster)) .c-libcard__play{opacity:1;}.c-libcard__media.is-playing .c-libcard__play{display:none;}.c-libcard__head{display:flex; align-items:center; gap:var(--s2); padding-right:28px;}.c-libcard__kind{font-size:var(--t-micro); letter-spacing:.06em; text-transform:uppercase;padding:2px 8px; border-radius:999px; background:var(--c-fill);color:var(--c-text-2); flex:none;}.c-libcard__kind--skill{background:var(--c-mint); color:var(--c-sage-deep);}.c-libcard__name{margin:0; font-size:var(--t-body); font-weight:650; color:var(--c-text);text-transform:capitalize;}.c-libcard__author{margin:0; font-size:var(--t-micro); color:var(--c-muted);}.c-libcard__desc{margin:2px 0 0; font-size:13px; line-height:1.5;color:var(--c-text-2);display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical;overflow:hidden;}.c-libcard__ref{margin-top:auto; padding-top:var(--s2); font-family:var(--mono);font-size:11px; color:var(--c-muted);}/* ---- Navigation, in the header band -----------------------------------A button (the library, which navigates) beside a link (a section of thispage). They must look like one row of controls, so the button is styled tomatch the link rather than the other way round.The row is pulled up against the header rule and the sign-in control sitswith it, because a site's navigation belongs to its header. Left where itwas, the page opened with a rule, a band of nothing, two floating pills,another band of nothing, and only then the product. */.c-quicknav{display:flex !important; flex-wrap:wrap !important; gap:var(--s2) !important;justify-content:flex-end !important; align-items:center !important;/* Pulled tight against the header rule on both sides. The shellputs a 24px gap between every child, which around a 34px row ofpills left the page opening on a band of nothing; these marginsspend that gap rather than adding to it. */margin:calc(var(--s4)*-1) 0 calc(var(--s2)*-1) !important;min-height:0 !important;}/* The row hugs its controls. Gradio wraps the anchor in a block that keeps a60px minimum, which made a 32px row of pills reserve twice its own height;the wrapper is told to be the size of what it contains. */.c-quicknav>*{min-height:0 !important; margin:0 !important; align-self:center !important;}.c-quicknav .block,.c-quicknav .prose,.c-quicknav nav{min-height:0 !important;padding:0 !important; margin:0 !important; display:flex !important;align-items:center !important;}.c-quicknav .prose p{margin:0 !important;}/* The wrapper keeps a 60px floor that no rule on it reaches, so the row isgiven the height of its own controls and allowed to overflow it. On anarrow screen the pills wrap, so the height goes back to automatic. */@media (min-width:701px){.c-quicknav{height:34px !important; overflow:visible !important;}}/* The Hugging Face control keeps company with the nav rather than spanningthe page as a full-width slab. */.c-shell>.gradio-button.huggingface,.c-shell button.huggingface{width:auto !important; max-width:280px;margin-left:auto !important; margin-top:calc(var(--s3)*-1) !important;}.c-quicknav>*{flex:0 0 auto !important; width:auto !important; min-width:0 !important;}.c-quicknav__link,.c-quicknav .c-quicknav__btn button,.c-quicknav button.c-quicknav__btn{display:inline-flex !important; align-items:center !important;font-size:var(--t-label) !important; text-decoration:none; font-weight:550 !important;color:var(--c-text-2) !important; border:1px solid var(--c-hairline) !important;background:var(--c-surface) !important; padding:5px 14px !important;border-radius:999px !important; min-height:0 !important; height:auto !important;line-height:1.5 !important;transition:border-color .15s ease, color .15s ease;}.c-quicknav__link:hover,.c-quicknav .c-quicknav__btn button:hover,.c-quicknav button.c-quicknav__btn:hover{border-color:var(--c-accent) !important; color:var(--c-sage-deep) !important;}/* The library page's own way back, set as a quiet control at the top left. */.c-libpage .c-libpage__backbtn button,.c-libpage button.c-libpage__backbtn{background:transparent !important; border:none !important; padding:0 !important;color:var(--c-text-2) !important; font-size:var(--t-label) !important;font-weight:550 !important; min-height:0 !important;}.c-libpage .c-libpage__backbtn button:hover,.c-libpage button.c-libpage__backbtn:hover{color:var(--c-text) !important;}.c-libpage .c-librarysearch input,.c-libpage .c-librarysearch textarea{max-width:420px;}/* The transport, present in the document and not on the page.``display:none`` rather than the usual clip-to-1px trick: a clippedelement still occupies a box the browser hit-tests, so a stray box landedin the corner of the page and could take a click meant for something else.A synthetic ``click()`` — which is how a card forwards its selection —dispatches on a hidden element exactly as it does on a shown one, sonothing is lost by removing it from the layout entirely. It must neverbecome ``visible=False`` in Python: gradio 6 leaves that out of the DOM. */.c-hiddenfield{display:none !important;}/* ---- The no-agents veil ----------------------------------------------- *//* Shown only while somebody is signed in (the identity span has text) and2 unmodified lines.c-conversation{position:relative;}.c-shell:has(.c-identity:not(:empty)):has(.c-noworker-hook) .c-veil{display:flex; position:absolute; inset:0; z-index:12;/* Aligned to the top of the column rather than its centre. Centred, thepanel sat across the privacy notice above the conversation and read asa modal over the whole page instead of an explanation of this column. */align-items:flex-start; justify-content:center;padding:var(--s7) var(--s5) var(--s5);background:color-mix(in srgb, var(--c-canvas) 72%, transparent);backdrop-filter:blur(2px); border-radius:var(--r-lg);/* The veil informs; it does not imprison. Pointer events pass througheverywhere except its own panel, so a transient no-worker blip (a pollgap, a mode change) can never trap a click mid-flow. */4 unmodified lines.c-veil__panel{max-width:380px; text-align:center; background:var(--c-surface);border:1px solid var(--c-hairline); border-radius:var(--r-lg);box-shadow:var(--e2); padding:var(--s5);}@media (max-width:700px){.c-shell:has(.c-identity:not(:empty)):has(.c-noworker-hook) .c-veil{padding:var(--s5) var(--s4);}.c-veil__panel{padding:var(--s4);}}.c-veil__title{margin:0 0 6px; font-weight:650; font-size:var(--t-lg); color:var(--c-text);}.c-veil__body{margin:0 0 var(--s4); color:var(--c-text-2); line-height:1.55;}.c-veil__action{display:inline-block; text-decoration:none; background:var(--c-accent);color:#fff; padding:10px 22px; border-radius:var(--r-md); font-weight:600;}.c-veil__action:hover{background:var(--c-accent-hover);}/* ---- Professional polish pass ----------------------------------------- *//* Calmer sections: the tail accordions read as pages, not widgets. */6 unmodified lines/* Inputs: quiet until focused. */.gradio-container input[type="text"], .gradio-container textarea{border-radius:var(--r-md) !important;}/* Buttons: one radius, one accent. The pill-shaped navy is gone; a primaryaction is the accent green, a secondary is paper with a hairline, and theHugging Face sign-in follows the secondary language rather than bringing afourth colour to the page. */.gradio-container button{border-radius:var(--r-md) !important; font-weight:600 !important;letter-spacing:0 !important; transition:background .15s ease, border-color .15s ease !important;}.gradio-container button.primary{background:var(--c-accent) !important; color:#fff !important;border:1px solid var(--c-accent) !important;}.gradio-container button.primary:hover{background:var(--c-accent-hover) !important;border-color:var(--c-accent-hover) !important;}.gradio-container button.secondary{background:var(--c-surface) !important;color:var(--c-text) !important; border:1px solid var(--c-border) !important;}.gradio-container button.secondary:hover{border-color:var(--c-accent) !important;color:var(--c-sage-deep) !important;}.gradio-container button.huggingface{background:var(--c-surface) !important;color:var(--c-text) !important; border:1px solid var(--c-border) !important;border-radius:var(--r-md) !important;}.gradio-container button.huggingface:hover{border-color:var(--c-accent) !important;}/* Focus is the accent, everywhere, and only on focus. */.gradio-container :is(button,a,input,textarea,select,[role="button"]):focus-visible{outline:3px solid rgba(30,110,75,.4) !important; outline-offset:2px !important;}/* Gradio's multipage navbar duplicates the quick nav; the page carries itsown way back. Belt and braces beside gr.Navbar(visible=False). */nav.navbar, .gradio-container .navbar{display:none !important;}/* ---- Answer artifacts: show the thing that came out -------------------- *//* A run that produced a file shows the file's own content, styled as thekind of thing it is, inside the answer. The GIF demos end on this block,because "generate a PDF" is only demonstrated by a PDF appearing. */.c-made{margin:var(--s3) 0 0; display:flex; flex-direction:column; gap:var(--s3);}.c-madecard{background:var(--c-surface); border:1px solid var(--c-hairline);border-radius:var(--r-md); overflow:hidden; max-width:520px;box-shadow:var(--e1);}.c-madecard__bar{display:flex; align-items:center; gap:var(--s2);padding:8px var(--s3); border-bottom:1px solid var(--c-hairline);background:var(--c-fill);}.c-madecard__dot{width:8px; height:8px; border-radius:50%; background:var(--c-accent); flex:none;}.c-madecard__name{font-family:var(--mono); font-size:12px; color:var(--c-text);overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}.c-madecard__kind{margin-left:auto; flex:none; font-size:var(--t-micro); color:var(--c-muted);letter-spacing:.05em; text-transform:uppercase;}/* A glance, not a document viewer. The preview sits inside a conversationand has to read as one object at one glance; at 340px it was a scrollingpanel taller than most of the answers around it. */.c-madecard__body{padding:var(--s3) var(--s4); max-height:210px; overflow:hidden;position:relative;}/* What is cut off is said with a fade rather than left as a hard edge, so atruncated preview reads as "there is more in the file" instead of as arendering fault. The file itself is complete in Outputs. */.c-madecard__body::after{content:""; position:absolute; left:0; right:0; bottom:0;height:34px; pointer-events:none;background:linear-gradient(to bottom, transparent, var(--c-surface));}/* A document page: a white sheet with real margins and the actual text. */.c-made--doc .c-madecard__body{font-family:Georgia,'Times New Roman',serif;color:#26241F; line-height:1.6; font-size:13.5px;}.c-made--doc .c-madecard__body h4{margin:0 0 8px; font-size:16px; font-weight:700;}.c-made--doc .c-madecard__body p{margin:0 0 8px;}/* A sheet: a real grid of the actual cells. */.c-madegrid{border-collapse:collapse; width:100%; font-size:12px; font-family:var(--font);}.c-madegrid th{background:var(--c-fill); font-weight:650; text-align:left;}.c-madegrid th,.c-madegrid td{border:1px solid var(--c-hairline); padding:4px 8px;white-space:nowrap; max-width:180px; overflow:hidden; text-overflow:ellipsis;}/* A deck: each slide a 16:9 miniature with its actual title. */.c-madeslides{display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:var(--s2);}.c-madeslide{aspect-ratio:16/9; border:1px solid var(--c-hairline); border-radius:6px;background:#fff; padding:8px; display:flex; flex-direction:column; gap:3px; overflow:hidden;}.c-madeslide__no{font-size:9px; color:var(--c-muted);}.c-madeslide__title{font-size:11px; font-weight:650; color:var(--c-text); line-height:1.25;}.c-madeslide__line{height:3px; border-radius:2px; background:var(--c-fill); width:86%;}.c-madeslide__line+.c-madeslide__line{width:70%;}/* Code or plain text: the content itself, monospaced. */.c-made--text .c-madecard__body{padding:0;}.c-made--text .c-madecard__body::after{height:30px;}/* One height for every preview, whatever is inside it. The code preview keptits own taller cap, which meant a stylesheet came back twice the height ofa document and the shelf of results had no common measure. */.c-made--text pre{margin:0; padding:var(--s3) var(--s4); font-family:var(--mono);font-size:12px; line-height:1.55; color:var(--c-text); overflow:hidden; max-height:210px;white-space:pre-wrap; overflow-wrap:anywhere;}.c-made__foot{padding:6px var(--s3); border-top:1px solid var(--c-hairline);font-size:var(--t-micro); color:var(--c-muted);}@media (max-width:700px){.c-libgrid{grid-template-columns:1fr; gap:var(--s3);}.c-quicknav{justify-content:flex-start;}.c-libpage{padding:var(--s4) var(--s4) var(--s7);}.c-madecard{max-width:none;}}"""
36 unmodified lines3738394041421 unmodified line4445464748495051525354555657585960616263157 unmodified lines22122222322422522622733 unmodified lines261262263264265266267268269270271272273274570 unmodified lines84584684784884985040 unmodified lines891892893894895896897898899900901283 unmodified lines11851186118711881189119011911192119311941195119611971198119912001201120219 unmodified lines122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245255 unmodified lines150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175336 unmodified lines__all__ = ["activity","chip","comparator","credit",1 unmodified line"empty_state","energy_headline","energy_panel","format_joules","esc","footer","grade_token","header","join_this_server","library_help","library_summary","live_steps","model_grade_card","no_tools_note","notice","rubric_legend","rubric_section","run_receipts","section_heading","spinner",157 unmodified lines# into every shell anybody actually uses.command = (f"python -m distinct_agent --server {first} "f"--pair {code or 'YOUR-CODE'} --models qwen3-0.6b --tools {tools or 'local'}")picture = f'<div class="c-join__qr">{qr}</div>' if qr else ""return (33 unmodified lineselse:body = f"All {total} members."kept = ("No defaults chosen yet."if not chosenelse f"{chosen} chosen as {'a default' if chosen == 1 else 'defaults'}.")return ('<p class="c-note"><span class="c-note__text">'f"{esc(body)} {esc(kept)} A default is ticked automatically when a worker ""offers it, and can be unticked for any single run.</span></p>")570 unmodified lines}def run_steps(steps: Sequence[Mapping[str, object]]) -> str:"""The agent's turns, in order, kept after the run that took them.40 unmodified lines#: The wash each conversation state gets in the rail. Faint on purpose: see#: the note in presentation.py. A state with no entry gets no wash, which is#: how "idle" and "completed" are drawn.CONVERSATION_TONES = {"waiting": "#FBF6E8","generating": "#EAF3E6","failed": "#F9EDE8",}283 unmodified lines_DEMO_BASE = f"/gradio_api/file={_DEMO_DIR.as_posix()}"def _demo_gif(ref: str) -> str:"""The demo GIF's URL for a library member, or nothing.The file is looked for on disk at render time so a card never promises ademonstration the repository does not carry. Slug: the ref with ``@`` and``.`` flattened, which is how the recorder names them."""slug = ref.replace("@", "-").replace(".", "-")if (_DEMO_DIR / f"{slug}.gif").is_file():return f"{_DEMO_BASE}/{slug}.gif"return ""def library_cards(rows: Sequence[Mapping[str, object]], chosen: Sequence[str]) -> str:19 unmodified linesname = str(row.get("name", ref))author = str(row.get("author", "distinct"))description = str(row.get("description", ""))gif = _demo_gif(ref)media = (f'<figure class="c-libcard__media" data-gif="{esc(gif)}">''<span class="c-libcard__play" aria-hidden="true">▸</span>'"<figcaption class=\"c-visually-hidden\">Hover or hold to preview</figcaption>""</figure>"if gifelse "")default_mark = ('<span class="c-libcard__default">default</span>' if ref in picked else "")cards.append(f'<article class="c-libcard c-libcard--{esc(kind)}">'f"{media}"'<div class="c-libcard__head">'f'<span class="c-libcard__kind c-libcard__kind--{esc(kind)}">{esc(kind)}</span>'f"{default_mark}""</div>"f'<h3 class="c-libcard__name">{esc(name)}</h3>'f'<p class="c-libcard__author">by {esc(author)}</p>'255 unmodified lines#: reader who conflates them draws exactly the wrong conclusion, so each token#: carries its own scale name inside it rather than relying on a column header#: that may be scrolled away, screenshotted off, or read past.PERFORMANCE = "performance"EVIDENCE = "evidence"_SCALE_LABELS: Mapping[str, str] = {PERFORMANCE: "impact",EVIDENCE: "evidence",}def grade_token(letter: Optional[str],*,scale: str = PERFORMANCE,assessed: Optional[int] = None,total: Optional[int] = None,absent_word: str = "not assessed",) -> str:"""One score, as one indivisible unit.Three rules are enforced here rather than left to the caller.**A missing value is never a letter.** Not an F, not a D, not a dash in aletter-shaped box. It is a dashed lozenge carrying words, which differs froma grade in shape, fill, case and content. An absence drawn as a low gradeasserts a poor result that nobody measured.**A performance letter never appears without its coverage.** They are onetoken with one border, not a letter with a caption beside it, because acaption can be cropped, skimmed or read as belonging to the next row. "B"over two of six areas is not a B, and this is the markup that makes the twoimpossible to separate.**The two scales are told apart by more than a column heading.** Aperformance letter is a filled square on a pill; an evidence letter isoutlined; and both name their own scale inside the token."""scale_key = scale if scale in _SCALE_LABELS else PERFORMANCEname = _SCALE_LABELS[scale_key]tag = f'<span class="c-score__scale">{esc(name)}</span>'if letter is None or not str(letter).strip():# ``absent_word`` distinguishes the two absences the rubric names:# "not assessed" (nothing published) and "withheld" (published, but# coverage too thin for an overall letter). Both are absences, never# letters, and a withheld overall still carries its coverage so the# reader can see why it was withheld.word = esc(absent_word if str(absent_word).strip() else "not assessed")coverage = ""if assessed is not None and total is not None:coverage = (f'<span class="c-score__coverage">{esc(assessed)} of {esc(total)}</span>')return (f'<span class="c-score c-score--{esc(scale_key)} c-score--none">'f'{tag}<span class="c-score__word">{word}</span>{coverage}</span>')body = f'<span class="c-score__letter">{esc(letter)}</span>'if assessed is not None and total is not None:body += (f'<span class="c-score__coverage">{esc(assessed)} of {esc(total)}</span>')return f'<span class="c-score c-score--{esc(scale_key)}">{tag}{body}</span>'def rubric_legend() -> str:"""Two scales, what each one answers, and the case where they disagree.The worked example is the load-bearing part. Both misreadings this guardsagainst are the first reading most people take, so the legend shows themhappening rather than only warning against them."""return ('<section class="c-legend">''<p class="c-legend__title">Two scales, two questions</p>''<div class="c-legend__pair">''<div class="c-legend__scale">'+ grade_token("A", scale=PERFORMANCE, assessed=6, total=6)+ '<p class="c-legend__scale-body"><strong>Impact.</strong> How heavily the release '"weighed on energy, water, land and the rest. A is the lightest. The coverage inside ""the token is part of the score: a letter drawn from two areas out of six describes ""two areas out of six, and the other four are unknown rather than fine.</p>""</div>"'<div class="c-legend__scale">'+ grade_token("A", scale=EVIDENCE)+ '<p class="c-legend__scale-body"><strong>Evidence.</strong> How good the published '"working is: method, boundary, primary sources. It says nothing about the size of ""the impact, only about how much you can rely on the figure beside it.</p>""</div>""</div>"'<p class="c-legend__example"><span class="c-legend__example-mark" ''aria-hidden="true">?</span><span><strong>The two come apart, and that is the '"point.</strong> Lucie-7B has the best method quality of anything reviewed here and ""still carries no impact letter, because too few areas have a published result to ""score. A smaller model can show a B on the strength of a single measurement. The ""high-evidence model is the better-documented one; the B is the thinner claim.""</span></p>"'<p class="c-legend__never">Cradle to release. Never added to, and never compared '"with, the use-phase energy this network measures per run.</p>""</section>")def _category_cell(entry: object) -> str:"""Render one category cell in one of its three states.A tuple ``(label_ignored, letter)`` is the legacy grade-or-absent form. Amapping carries the display contract's full state vocabulary:* ``state == "grade"``: render the letter (with its value as detail text);* ``state == "reported"``: render the published value, never a letter,because the value is not in the reference's unit;* anything else: an explicit "not assessed" absence."""if isinstance(entry, Mapping):state = str(entry.get("state") or "not_assessed")letter = entry.get("letter")value = entry.get("value")if state == "grade" and letter is not None and str(letter).strip():token = grade_token(str(letter), scale=PERFORMANCE)if isinstance(value, str) and value.strip():token += f'<span class="c-grade-row__value">{esc(value)}</span>'return tokenif state == "reported" and isinstance(value, str) and value.strip():return (f'<span class="c-score c-score--{PERFORMANCE} c-score--reported">''<span class="c-score__scale">impact</span>'f'<span class="c-score__word">{esc(value)} · reported, no letter</span>'"</span>")return grade_token(None, scale=PERFORMANCE)return grade_token(entry, scale=PERFORMANCE)def model_grade_card(*,name: str,impact: Optional[str],assessed: int,total: int,evidence: Optional[str] = None,evidence_detail: str = "",categories: Sequence[object] = (),download_url: str = "",download_label: str = "",note: str = "",impact_absent_word: str = "not assessed",) -> str:"""One model release, on both scales.``impact`` and ``evidence`` are passed straight through and are **neverderived here**. When the catalogue withholds one, this renders an explicitabsence. Computing a letter from partial categories is exactly theassessor-created estimate the rubric prohibits, so there is no code paththat could, and the coverage that caused the absence travels inside thetoken that reports it.``categories`` entries are either legacy ``(label, letter)`` tuples ormappings ``{"label", "state", "letter", "value"}`` following the displaycontract in ``model_assessments.json``: read ``state`` before renderinganything, and never render a letter for a category whose state is not``grade``."""def _label(entry: object) -> str:if isinstance(entry, Mapping):return str(entry.get("label") or "")if isinstance(entry, Sequence) and not isinstance(entry, str) and entry:return str(entry[0])return ""def _cell(entry: object) -> str:if isinstance(entry, Mapping):return _category_cell(entry)if isinstance(entry, Sequence) and not isinstance(entry, str) and len(entry) >= 2:return _category_cell(entry[1])return _category_cell(None)rows = "".join(f'<p class="c-grade-row"><span class="c-grade-row__label">{esc(_label(entry))}</span>'f"{_cell(entry)}</p>"for entry in categories)href = _safe_url(download_url)link = (f'<a class="c-grade-card__link" href="{esc(href)}" target="_blank" 'f'rel="noopener noreferrer">{esc(download_label or "Weights on Hugging Face")}</a>'if hrefelse "")reason = f'<p class="c-grade-card__note">{esc(note)}</p>' if note else ""evidence_note = (f'<span class="c-grade-card__evidence-detail">{esc(evidence_detail)}</span>'if evidence_detailelse "")return ('<article class="c-grade-card">''<p class="c-grade-card__head">'f'<span class="c-grade-card__name">{esc(name)}</span>{link}</p>''<div class="c-grade-card__scores">'+ grade_token(impact,scale=PERFORMANCE,assessed=assessed,total=total,absent_word=impact_absent_word,)+ grade_token(evidence, scale=EVIDENCE)+ evidence_note+ "</div>"+ (f'<div class="c-grade-rows">{rows}</div>' if rows else "")+ reason+ "</article>")def rubric_section(cards: Iterable[str], *, warning: str = "") -> str:"""The legend, the assessment set's warning, and the model cards.``warning`` is the data file's own caveat and renders **before** thegrades, as its display contract requires, never in a footnote."""body = "".join(cards)if not body:body = empty_state(glyph="○",title="No assessed releases",body=("No model in this catalogue has a published, model-specific assessment ""recorded here yet. Nothing is graded until one exists."),)caution = (f'<p class="c-rubric__warning">{esc(warning)}</p>' if warning else "")return ('<div class="c-rubric">'+ rubric_legend()+ caution+ f'<div class="c-grade-cards">{body}</div>'+ "</div>")36 unmodified lines37383940414243441 unmodified line464748495051525354555657585960616263157 unmodified lines22122222322422522622733 unmodified lines261262263264265266267268269270271272273570 unmodified lines84484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121240 unmodified lines125312541255125612571258125912601261126212631264283 unmodified lines154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157519 unmodified lines1595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631255 unmodified lines18871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211736 unmodified lines__all__ = ["activity","assessment_legend","assessment_section","chip","comparator","credit",1 unmodified line"empty_state","energy_headline","energy_panel","esc","figure_token","footer","format_joules","header","join_this_server","library_help","library_summary","live_steps","model_evidence_card","no_tools_note","notice","run_receipts","section_heading","spinner",157 unmodified lines# into every shell anybody actually uses.command = (f"python -m distinct_agent --server {first} "f"--pair {code or 'YOUR-CODE'} --models olmoe-1b-7b-0924-instruct --tools {tools or 'local'}")picture = f'<div class="c-join__qr">{qr}</div>' if qr else ""return (33 unmodified lineselse:body = f"All {total} members."kept = ("Tap a card to make it a default — it saves at once."if not chosenelse f"<strong>{chosen}</strong> saved as {'a default' if chosen == 1 else 'defaults'}.")return ('<div class="c-libsave"><span class="c-libsave__count">'f"{esc(body)} {kept}</span></div>")570 unmodified lines}# --------------------------------------------------------------------------# What the run made: the artifact's own content, in the answer# --------------------------------------------------------------------------## A run that produced a file used to say so with a count in the receipt and a# row in the Outputs panel. Both are true and neither shows the thing. These# two functions close that gap: `artifact_preview_data` reads the stored file# once, at the moment the answer is claimed, and reduces it to a small plain# record; `made_things` renders those records as the kind of object each one# is — a document page, a sheet of cells, a fan of slides, the text itself.## The split matters. Derivation happens once and the record rides in browser# state beside the answer, so the transcript can re-render every two seconds# without re-opening zip files. And because the record is data assembled here# from bytes the worker sent, rendering it is the same trust exercise as the# rest of this file: every string is escaped, structure comes from this# module, and a file that cannot be parsed degrades to its name and size# rather than to an error.#: Reading cap per artifact. Files are small (the job budget bounds them);#: this is the backstop that keeps a surprise out of the render path._PREVIEW_READ_CAP = 400_000_TEXT_SUFFIXES = {".txt", ".css", ".json", ".mermaid", ".py", ".js", ".html", ".svg",".yaml", ".yml", ".toml", ".xml",}def _xml_texts(blob: bytes, pattern: str) -> list[str]:import re as _rereturn [escape_entities(match)for match in _re.findall(pattern, blob.decode("utf-8", "replace"), _re.S)]def escape_entities(text: str) -> str:"""Resolve the five XML entities OOXML writes; nothing else."""return (text.replace("<", "<").replace(">", ">").replace(""", '"').replace("'", "'").replace("&", "&"))def _docx_preview(blob: bytes) -> Optional[Mapping[str, object]]:import io as _ioimport re as _reimport zipfile as _zipfiletry:with _zipfile.ZipFile(_io.BytesIO(blob)) as archive:document = archive.read("word/document.xml")except Exception:return Noneparagraphs: list[str] = []for paragraph in _re.findall(rb"<w:p[ >].*?</w:p>", document, _re.S):runs = _xml_texts(paragraph, r"<w:t[^>]*>(.*?)</w:t>")text = "".join(runs).strip()if text:paragraphs.append(text)if not paragraphs:return Nonereturn {"kind": "doc", "title": paragraphs[0][:160], "paras": paragraphs[1:5]}def _xlsx_preview(blob: bytes) -> Optional[Mapping[str, object]]:import io as _ioimport re as _reimport zipfile as _zipfiletry:with _zipfile.ZipFile(_io.BytesIO(blob)) as archive:sheet = archive.read("xl/worksheets/sheet1.xml")try:shared = archive.read("xl/sharedStrings.xml")except KeyError:shared = b""except Exception:return Nonestrings = _xml_texts(shared, r"<t[^>]*>(.*?)</t>") if shared else []rows: list[list[str]] = []# CELLS IN DOCUMENT ORDER, WHATEVER KIND THEY ARE.## The first version of this pulled the numbers out with one pattern and# the inline strings with another, then concatenated the two lists. Every# mixed row came out rotated — "Widget | 4 | 9.50" rendered as# "4 | 9.50 | Widget" — because the text cells were appended after the# numeric ones rather than kept in their columns. A preview that reorders# somebody's spreadsheet is worse than no preview, so the cells are now# walked once, in order, and each is read according to its own type.for row in _re.findall(rb"<row[ >].*?</row>", sheet, _re.S)[:8]:cells: list[str] = []for cell in _re.findall(rb"<c[ >].*?(?:</c>|/>)", row, _re.S):kind = _re.search(rb'\st="(\w+)"', cell)kind = kind.group(1).decode() if kind else "n"inline = _xml_texts(cell, r"<t[^>]*>(.*?)</t>")if inline:cells.append(inline[0])continuevalue = _re.search(rb"<v>(.*?)</v>", cell, _re.S)if value is None:cells.append("")continueraw = escape_entities(value.group(1).decode("utf-8", "replace"))if kind == "s":try:raw = strings[int(raw)]except (ValueError, IndexError):passcells.append(raw)while cells and cells[-1] == "":cells.pop()if cells:rows.append(cells[:8])if not rows:return Nonereturn {"kind": "sheet", "rows": rows}def _pptx_preview(blob: bytes) -> Optional[Mapping[str, object]]:import io as _ioimport re as _reimport zipfile as _zipfiletry:with _zipfile.ZipFile(_io.BytesIO(blob)) as archive:names = sorted(namefor name in archive.namelist()if _re.fullmatch(r"ppt/slides/slide\d+\.xml", name))slides: list[Mapping[str, str]] = []for name in names[:8]:texts = _xml_texts(archive.read(name), r"<a:t>(.*?)</a:t>")texts = [text for text in (t.strip() for t in texts) if text]if texts:slides.append({"title": texts[0][:120]})except Exception:return Noneif not slides:return Nonereturn {"kind": "deck", "slides": slides}def _pdf_preview(blob: bytes) -> Optional[Mapping[str, object]]:import re as _reimport zlib as _zlibpages = len(_re.findall(rb"/Type\s*/Page\b(?!s)", blob))# Content streams are flate-compressed (the PDF this product writes says so# in its own builder), so the text operators only exist after inflating.# Streams that will not inflate are skipped rather than guessed at, and a# PDF nobody can read still reports its page count, which is a fact.chunks = [blob]for raw in _re.findall(rb"stream\r?\n(.*?)\r?\nendstream", blob, _re.S):try:chunks.append(_zlib.decompress(raw))except Exception:continuelines: list[str] = []seen: set[str] = set()for chunk in chunks:for raw in _re.findall(rb"\(((?:[^()\\]|\\.)*)\)\s*Tj", chunk):text = raw.decode("latin-1", "replace")text = _re.sub(r"\\([()\\])", r"\1", text).strip()if text and text not in seen:seen.add(text)lines.append(text)if len(lines) >= 14:breaklines = lines[:14]if not lines and not pages:return Nonerecord: dict[str, object] = {"kind": "doc", "note": f"{pages or 1} page PDF"}if lines:record["title"] = lines[0][:160]record["paras"] = lines[1:5]else:record["title"] = "PDF document"record["paras"] = []return recorddef _markdown_preview(text: str) -> Optional[Mapping[str, object]]:"""Markdown as the page it describes, not as its source.A guide rendered as a wall of hashes and asterisks demonstrates nothing:the person is looking at the thing the run made, and the thing the runmade is a document. Headings become the title, bullets keep their bullet,and everything else is a paragraph."""lines = [line.rstrip() for line in text.splitlines()]title = ""paras: list[str] = []for line in lines:stripped = line.strip()if not stripped:continueif stripped.startswith("#"):heading = stripped.lstrip("#").strip()if not title:title = heading[:160]elif len(paras) < 4:paras.append(heading[:200])continueif stripped.startswith(("-", "*", "+")) and len(stripped) > 1:stripped = "• " + stripped[1:].strip()cleaned = stripped.replace("**", "").replace("`", "")if not title:title = cleaned[:160]elif len(paras) < 4:paras.append(cleaned[:200])if len(paras) >= 4:breakif not title:return Nonereturn {"kind": "doc", "title": title, "paras": paras}def _table_preview(text: str) -> Optional[Mapping[str, object]]:rows = [line for line in text.splitlines() if line.strip()][:8]if not rows:return Nonesplit = [row.split(",") if "," in rows[0] else row.split("|") for row in rows]return {"kind": "sheet", "rows": [[cell.strip() for cell in row][:8] for row in split]}def artifact_preview_data(paths: Sequence[str]) -> list[Mapping[str, object]]:"""Small, renderable records of what a run's files contain.Read once per file, capped, every failure downgraded to name-and-size.The records are plain data so they can live in browser state beside theanswer they belong to."""records: list[Mapping[str, object]] = []for item in paths:path = Path(str(item))try:size = path.stat().st_sizeblob = path.read_bytes()[:_PREVIEW_READ_CAP]except OSError:continuesuffix = path.suffix.lower()parsed: Optional[Mapping[str, object]] = Noneif suffix == ".docx":parsed = _docx_preview(blob)elif suffix == ".xlsx":parsed = _xlsx_preview(blob)elif suffix == ".pptx":parsed = _pptx_preview(blob)elif suffix == ".pdf":parsed = _pdf_preview(blob)elif suffix == ".csv":parsed = _table_preview(blob.decode("utf-8", "replace"))elif suffix == ".md":parsed = _markdown_preview(blob.decode("utf-8", "replace"))elif suffix in _TEXT_SUFFIXES:text = blob.decode("utf-8", "replace").strip()parsed = {"kind": "text", "text": text[:1400]} if text else Nonerecord: dict[str, object] = {"name": path.name,"size": size,"kind": "file",}if parsed:record.update(parsed)records.append(record)return recordsdef _human_size(size: object) -> str:try:value = float(size) # type: ignore[arg-type]except (TypeError, ValueError):return ""if value >= 1_048_576:return f"{value / 1_048_576:.1f} MB"if value >= 1024:return f"{value / 1024:.1f} KB"return f"{int(value)} B"_MADE_KIND_WORDS = {"doc": "document","sheet": "spreadsheet","deck": "slides","text": "text","file": "file",}def made_things(previews: Sequence[Mapping[str, object]]) -> str:"""The artifacts a run produced, rendered as the things they are.Structure is fixed here; every string is escaped; a record whose kind isunknown renders as a plain file card. The block sits inside the answer,after the model's words, because "make me a PDF" is answered by the PDF."""if not previews:return ""cards: list[str] = []for record in previews:if not isinstance(record, Mapping):continuename = esc(str(record.get("name") or "file"))kind = str(record.get("kind") or "file")kind_word = _MADE_KIND_WORDS.get(kind, "file")body = ""if kind == "doc":title = esc(str(record.get("title") or ""))paras = "".join(f"<p>{esc(str(para))}</p>" for para in record.get("paras") or ()if isinstance(para, str))body = f"<h4>{title}</h4>{paras}" if title else paraselif kind == "sheet":rows = [row for row in record.get("rows") or () if isinstance(row, (list, tuple))]if rows:head = "".join(f"<th>{esc(str(cell))}</th>" for cell in rows[0])rest = "".join("<tr>" + "".join(f"<td>{esc(str(cell))}</td>" for cell in row) + "</tr>"for row in rows[1:])body = f'<table class="c-madegrid"><tr>{head}</tr>{rest}</table>'elif kind == "deck":slides = [slide for slide in record.get("slides") or () if isinstance(slide, Mapping)]body = '<div class="c-madeslides">' + "".join(f'<div class="c-madeslide"><span class="c-madeslide__no">{index}</span>'f'<span class="c-madeslide__title">{esc(str(slide.get("title") or ""))}</span>''<span class="c-madeslide__line"></span><span class="c-madeslide__line"></span>'"</div>"for index, slide in enumerate(slides, start=1)) + "</div>"elif kind == "text":body = f"<pre>{esc(str(record.get('text') or ''))}</pre>"note = str(record.get("note") or "")size = _human_size(record.get("size"))foot_parts = [part for part in (note, size, "in Outputs, left panel") if part]modifier = kind if kind in ("doc", "sheet", "deck", "text") else "file"cards.append(f'<figure class="c-madecard c-made--{modifier}">''<div class="c-madecard__bar">''<span class="c-madecard__dot" aria-hidden="true"></span>'f'<span class="c-madecard__name">{name}</span>'f'<span class="c-madecard__kind">{esc(kind_word)}</span>'"</div>"+ (f'<div class="c-madecard__body">{body}</div>' if body else "")+ f'<figcaption class="c-made__foot">{esc(" · ".join(foot_parts))}</figcaption>'"</figure>")if not cards:return ""return '<div class="c-made">' + "".join(cards) + "</div>"def run_steps(steps: Sequence[Mapping[str, object]]) -> str:"""The agent's turns, in order, kept after the run that took them.40 unmodified lines#: The wash each conversation state gets in the rail. Faint on purpose: see#: the note in presentation.py. A state with no entry gets no wash, which is#: how "idle" and "completed" are drawn. Warm washes over the ivory canvas:#: the only saturated green on the page stays the accent.CONVERSATION_TONES = {"waiting": "#F7F1E1","generating": "#E8F0EA","failed": "#F7ECE7",}283 unmodified lines_DEMO_BASE = f"/gradio_api/file={_DEMO_DIR.as_posix()}"def _demo_media(ref: str) -> tuple[str, str]:"""``(poster, gif)`` URLs for a member's demonstration, either may be empty.Both are looked for on disk at render time so a card never promises ademonstration the repository does not carry. Slug: the ref with ``@`` and``.`` flattened, which is how the recorder names them.The poster is the recording's last frame — the artifact the run produced —so a card at rest already shows what the member makes. That matters moston a phone, where there is no hover and the GIF is a deliberate act."""slug = ref.replace("@", "-").replace(".", "-")poster = f"{_DEMO_BASE}/{slug}.webp" if (_DEMO_DIR / f"{slug}.webp").is_file() else ""gif = f"{_DEMO_BASE}/{slug}.gif" if (_DEMO_DIR / f"{slug}.gif").is_file() else ""return poster, gifdef _demo_gif(ref: str) -> str:"""The demo GIF's URL for a library member, or nothing."""return _demo_media(ref)[1]def library_cards(rows: Sequence[Mapping[str, object]], chosen: Sequence[str]) -> str:19 unmodified linesname = str(row.get("name", ref))author = str(row.get("author", "distinct"))description = str(row.get("description", ""))poster, gif = _demo_media(ref)media = ""if poster or gif:still = (f'<img class="c-libcard__poster" src="{esc(poster)}" alt="" loading="lazy">'if posterelse "")media = (f'<figure class="c-libcard__media" data-gif="{esc(gif)}">'f"{still}"'<span class="c-libcard__play">watch it work</span>''<figcaption class="c-visually-hidden">'"Hover, or press and hold, to play this member's demonstration""</figcaption>""</figure>")on = ref in picked# The card itself is the control: role, state and keyboard focus are# its own, and the check mark is drawn by the stylesheet from the# ``is-on`` class so the page script and this renderer cannot# disagree about what selected looks like.cards.append(f'<article class="c-libcard c-libcard--{esc(kind)}{" is-on" if on else ""}"'f' data-ref="{esc(ref)}" role="button" tabindex="0"'f' aria-pressed="{"true" if on else "false"}"'f' aria-label="{esc(name)}: use as a default">'f'<span class="c-libcard__check" aria-hidden="true"></span>'f"{media}"'<div class="c-libcard__head">'f'<span class="c-libcard__kind c-libcard__kind--{esc(kind)}">{esc(kind)}</span>'"</div>"f'<h3 class="c-libcard__name">{esc(name)}</h3>'f'<p class="c-libcard__author">by {esc(author)}</p>'255 unmodified lines#: reader who conflates them draws exactly the wrong conclusion, so each token#: carries its own scale name inside it rather than relying on a column header#: that may be scrolled away, screenshotted off, or read past.#: Method words this surface knows, and the modifier each one paints with.#: A word outside this map is rendered verbatim but styled as unknown rather#: than silently promoted into one of the confident states._METHOD_SLUGS: Mapping[str, str] = {"Measured": "measured","Modelled": "modelled","Proxy-based": "proxy",}def figure_token(*,value: str = "",unit: str = "",status: str = "",absent_word: str = "Missing",) -> str:"""One published figure, or one explicit absence, as one indivisible unit.This replaces the letter grade that used to sit here, and the replacement isthe point rather than a restyling. A letter was this catalogue's ranking ofsomebody else's number; a figure is the number. Three rules survive from thegrade token because they were never about letters:**An absence is never a low value.** Missing is a dashed lozenge carrying aword, differing from a figure in shape, fill and content. Nobody measured it,so nothing may be drawn that looks like a small result.**A figure never appears without its method.** "54 MWh" measured at thesocket and "54 MWh" inferred from a chip's rated wattage are differentclaims, and a method printed as a caption beside the number can be cropped,skimmed, or read as belonging to the next row. One token, one border.**Nothing is computed here.** Value, unit and method are passed straightthrough. There is no code path that could derive one from the others."""text = str(value).strip()if not text:word = esc(str(absent_word).strip() or "Missing")return ('<span class="c-fig c-fig--none">'f'<span class="c-fig__word">{word}</span></span>')method = str(status).strip()slug = _METHOD_SLUGS.get(method, "unknown")shown = f"{text} {unit}".strip() if str(unit).strip() else textreturn (f'<span class="c-fig c-fig--{esc(slug)}">'f'<span class="c-fig__value">{esc(shown)}</span>'f'<span class="c-fig__method">{esc(method or "method not stated")}</span>'"</span>")def _source_row(entry: Mapping[str, object]) -> str:"""One area's working: what the note says, and where the number came from."""label = esc(str(entry.get("label") or ""))note = str(entry.get("note") or "")href = _safe_url(entry.get("source_url"))cite = (f'<a class="c-source__link" href="{esc(href)}" target="_blank" ''rel="noopener noreferrer">primary source</a>'if hrefelse "")body = esc(note) if note else "No note recorded."return ('<p class="c-source"><span class="c-source__label">'f"{label}</span><span class=\"c-source__body\">{body} {cite}</span></p>")def model_evidence_card(*,name: str,coverage: str = "",summary: str = "",covers: str = "",categories: Sequence[Mapping[str, object]] = (),links: Sequence[Mapping[str, str]] = (),note: str = "",) -> str:"""One model release, showing what was published about it and nothing else.Every area is always present. An area with no published result renders theword rather than being dropped, because a six-row card missing three rowsreads as a model with three areas rather than a model with three unknowns.The workings sit behind a disclosure rather than on the face of the card:six notes and six citations inline would bury the figures, and hiding thementirely would make the figures unverifiable. Complete, one click away."""rows = "".join('<p class="c-grade-row">'f'<span class="c-grade-row__label">{esc(str(entry.get("label") or ""))}</span>'+ figure_token(value=str(entry.get("value") or ""),unit=str(entry.get("unit") or ""),status=str(entry.get("status") or ""),)+ "</p>"for entry in categories)link_html = "".join(f'<a class="c-grade-card__link" href="{esc(href)}" target="_blank" 'f'rel="noopener noreferrer">{esc(str(link.get("label") or "Source"))}</a>'for link in linksif (href := _safe_url(link.get("url"))))sources = "".join(_source_row(entry) for entry in categories)workings = ("<details class=\"c-sources\"><summary class=\"c-sources__summary\">""Where these figures come from</summary>"f'<div class="c-sources__body">{sources}</div></details>'if sourceselse "")head_coverage = (f'<span class="c-grade-card__coverage">{esc(coverage)}</span>' if coverage else "")return ('<article class="c-grade-card">''<p class="c-grade-card__head">'f'<span class="c-grade-card__name">{esc(name)}</span>{head_coverage}</p>'+ (f'<p class="c-grade-card__summary">{esc(summary)}</p>' if summary else "")+ (f'<div class="c-grade-rows">{rows}</div>' if rows else "")+ (f'<p class="c-grade-card__covers"><strong>Covers.</strong> {esc(covers)}</p>' if covers else "")+ workings+ (f'<p class="c-grade-card__note">{esc(note)}</p>' if note else "")+ (f'<p class="c-grade-card__links">{link_html}</p>' if link_html else "")+ "</article>")def assessment_legend() -> str:"""What the words mean, and the two readings this surface has to prevent.The legend used to explain two letter scales and the case where theydisagree. There are no letters now, so it explains the two things a readercan still get wrong: that Missing is a result, and that a small number isa good model."""return ('<section class="c-legend">''<p class="c-legend__title">How to read these</p>''<div class="c-legend__pair">''<div class="c-legend__scale">'+ figure_token(value="54", unit="MWh", status="Measured")+ '<p class="c-legend__scale-body"><strong>A figure and its method.</strong> '"Measured means somebody metered the hardware. Modelled means they computed it ""from something they did meter, or from rated specifications. The number is ""reproduced exactly as published; nothing here is converted, scaled or combined.""</p>""</div>"'<div class="c-legend__scale">'+ figure_token()+ '<p class="c-legend__scale-body"><strong>Missing is not zero.</strong> '"It means nobody published a usable result for that area. It is not a low score, ""not a failure, and not evidence that the impact was small. Every area is shown ""for every model so an absence has to be stated rather than quietly omitted.</p>""</div>""</div>"'<p class="c-legend__example"><span class="c-legend__example-mark" ''aria-hidden="true">?</span><span><strong>A smaller number is not automatically '"a better model.</strong> One OLMo 7B shows zero carbon and zero water because it ""trained on hydroelectric power in Finland, while still drawing more electricity ""than any other 7B in its cohort. Another drank four times the water of its sibling ""for no reason except which state the data centre stood in. Read the figure with ""the area beside it, and read both with where the run happened.""</span></p>"'<p class="c-legend__never">Cradle to release. Never added to, and never compared '"with, the use-phase energy this network measures per run.</p>""</section>")def assessment_section(cards: Iterable[str],*,warning: str = "",further_reading: Sequence[Mapping[str, str]] = (),) -> str:"""The legend, the assessment set's own caveat, the cards, and the reading.``warning`` is the data file's caveat and renders **before** the figures, asits display contract requires, never in a footnote."""body = "".join(cards)if not body:body = empty_state(glyph="\u25cb",title="No assessed releases",body=("No model in this catalogue has a published, model-specific assessment ""recorded here yet. Nothing is shown until one exists."),)caution = f'<p class="c-rubric__warning">{esc(warning)}</p>' if warning else ""reading = "".join(f'<a class="c-reading__link" href="{esc(href)}" target="_blank" 'f'rel="noopener noreferrer">{esc(str(item.get("label") or "Source"))}</a>'for item in further_readingif (href := _safe_url(item.get("url"))))tail = ('<section class="c-reading"><p class="c-reading__title">Further reading</p>'f'<p class="c-reading__links">{reading}</p></section>'if readingelse "")return ('<div class="c-rubric">'+ assessment_legend()+ caution+ f'<div class="c-grade-cards">{body}</div>'+ tail+ "</div>")
49 unmodified lines505152535455835 unmodified lines8918928938948958968978988999009019029039049059069079089099109119129139149159169179189199202 unmodified lines9239249259269279289292 unmodified lines93293393493593693793893994094194294394494594694794894995095195295395495595695795895996017 unmodified lines97897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710486 unmodified lines10551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941 unmodified line1096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311945 unmodified lines12001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240247 unmodified lines148814891490149114921493149414951496149714981499150024 unmodified lines152515261527152815291530153115321533153415351536153715381539154011 unmodified lines15521553155415551556155715581559306 unmodified lines18661867186818691870187118729 unmodified lines1882188318841885188618871888188918901891889 unmodified lines27812782278327842785278641 unmodified lines282828292830283128322833275 unmodified lines31093110311131123113311431153116311731183119312031213122312376 unmodified lines3200320132023203320432053206248 unmodified lines34553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351147 unmodified lines35593560356135623563356449 unmodified linesRELEASE_BOUNDARY,RUBRIC_AREAS,USE_PHASE_BOUNDARY,model_choices,)from .control_plane import ControlPlane835 unmodified linesdef _catalogue_markdown() -> str:lines = ["#### Release assessment · cradle to release","",f"_{RELEASE_BOUNDARY}_","","Grades assess **evidence quality only**. They are absolute, never relative ""between models, and this list is not a ranking. `No data` is not a grade and ""is not zero.","",]for model_id, manifest in MODEL_CATALOG.items():assessment = RELEASE_ASSESSMENT[model_id]areas = " · ".join(f"{AREA_LABELS[area]}: {assessment.areas[area].display}" for area in RUBRIC_AREAS)lines.append(f"- **{manifest.label}** — evidence: {assessment.grade_display} — "f"weights identity: {manifest.identity_status} — hardware requirement: "f"{manifest.min_ram_gb:g} GB RAM")lines.append(f" <br>{areas}")if assessment.reason:lines.append(f" <br>_{assessment.reason}_")lines += ["","#### Use-phase energy · per run","",2 unmodified lines"Shown on each completed run and totalled per conversation, partitioned by ""measurement scope. It is never added to a release figure, and never converted ""into CO2e, water, land, materials or pollution — those conversions would be ""assessor-created estimates, which the rubric prohibits.","","Minimum RAM is a disclosed hardware requirement of the file, not an ""environmental result. This catalogue deliberately carries no model-size or "2 unmodified linesreturn "\n".join(lines)#: Where the catalogue will publish the restructured rubric. Owned by the#: catalogue, read here. Absent for now, which is handled rather than guarded#: against: the fallback below reads the assessments already in catalog.py, and#: those are all "no data", which is the state this surface has to render well#: anyway.ASSESSMENTS_PATH = Path(__file__).resolve().parent.parent / "model_assessments.json"def _letter(value: Any) -> Optional[str]:"""A single grade letter, or ``None``. Never a substitute for one.Anything that is not a plausible letter becomes ``None`` and renders as anexplicit absence. That direction is deliberate and one-way: a malformedrecord must be able to degrade into "not assessed", and must never be ableto acquire a letter it was not given."""if value is None:return Nonetext = str(value).strip().upper()return text if text in {"A", "B", "C", "D", "E", "F"} else Nonedef _rubric_display() -> Mapping[str, Any]:"""The assessment file's ``website_display`` block, or an empty mapping.17 unmodified linesreturn warning if isinstance(warning, str) else ""def _display_card(record: Mapping[str, Any], *, unranked_note: str = "") -> str:"""One ``website_display.models`` record as a grade card.State discipline, verbatim from the file's rendering rules: read ``state``before rendering anything; never render a letter for a category whosestate is not ``grade``; render the overall's coverage beside it whicheverstate it is in; and a withheld overall renders the word "withheld", whichis an absence and not last place."""overall = record.get("overall") if isinstance(record.get("overall"), Mapping) else {}evidence = record.get("evidence") if isinstance(record.get("evidence"), Mapping) else {}categories = record.get("categories")rows: list[Mapping[str, Any]] = []if isinstance(categories, Mapping):for area in RUBRIC_AREAS:cell = categories.get(area)cell = cell if isinstance(cell, Mapping) else {}rows.append({"label": AREA_LABELS.get(area, area),"state": str(cell.get("state") or "not_assessed"),"letter": _letter(cell.get("letter")),"value": cell.get("value") if isinstance(cell.get("value"), str) else None,})overall_state = str(overall.get("state") or "withheld")assessed = overall.get("areas_assessed")total = overall.get("areas_total")download = record.get("download") if isinstance(record.get("download"), Mapping) else {}note_parts = [str(record.get("boundary") or "")]if unranked_note:note_parts.insert(0, unranked_note)return render.model_grade_card(name=str(record.get("name") or record.get("model_id") or "unnamed"),impact=_letter(overall.get("letter")) if overall_state == "grade" else None,assessed=int(assessed) if isinstance(assessed, int) else 0,total=int(total) if isinstance(total, int) else 6,evidence=_letter(evidence.get("letter")),evidence_detail=str(evidence.get("detail") or ""),categories=rows,download_url=str(download.get("url") or record.get("source_url") or ""),download_label="Weights on Hugging Face" if download.get("url") else "Source",note=" · ".join(part for part in note_parts if part),impact_absent_word="withheld" if overall_state != "grade" else "not assessed",)#: The model selected when a session opens.DEFAULT_MODEL_ID = "qwen3-0.6b"def _assessment_by_model_id() -> Mapping[str, Mapping[str, Any]]:"""``website_display.models`` keyed by model id, exact matches only.Deliberately no fuzzy matching, and no alias table invented here. Theassessment records name releases ("OLMo 2 7B", "OLMo 1B"); the cataloguenames specific quantised checkpoints ("OLMo 2 0425 1B Instruct, Q4_K_M").Those are not the same object, and a rubric whose first rule is that agrade belongs to the thing that was assessed cannot have its own rendererguessing which grade goes with which file.So a catalogue entry gets a grade when the assessment file uses the sameid, and renders as not assessed otherwise. Extending the coverage is achange to the assessment data, which is where the evidence lives."""records = _rubric_display().get("models")6 unmodified lines}#: Which assessment record covers which catalogue entry, and what it covers.#:#: The rubric's two scales behave differently under this mapping, and the#: difference is the whole reason the table exists rather than a fuzzy match.#:#: **Evidence can always transfer within a release, because it grades#: disclosure.** Whether a publisher published energy, carbon and water for a#: release is a fact about the publisher's release, and it is the same fact for#: every checkpoint in it. Silence transfers just as cleanly: Qwen disclosed#: nothing for Qwen3, so every Qwen3 checkpoint earns the same F. This is what#: makes "all models are assessed" achievable without inventing anything, and#: it is the brief's own rule: evidence can always exist, because silence is#: assessable.#:#: **Impact cannot transfer between checkpoints.** It grades a *published#: result* against a budget, and a figure published for a 7B model is not a#: figure for a 1B one. Where the assessed record is a different checkpoint,#: impact is withheld and says so. Withheld is not last place.RUBRIC_ASSIGNMENT: Mapping[str, Mapping[str, Any]] = {"qwen3-0.6b": {"record": "qwen3-4b","impact": False,"note": "assessed across the Qwen3 release, which discloses nothing",},"qwen3-4b": {"record": "qwen3-4b", "impact": True, "note": ""},"olmo-2-1b-instruct": {"record": "olmo-2-7b","impact": False,"note": "evidence assessed across the OLMo 2 release; no published figure for this checkpoint",},"olmoe-1b-7b-instruct": {"record": "olmoe-1b-7b","impact": False,"note": "evidence assessed across the OLMoE release; no published figure for this checkpoint",},}1 unmodified linedef _assignment(model_id: str) -> tuple[Mapping[str, Any] | None, Mapping[str, Any]]:"""``(assessment record, assignment rules)`` for one catalogue model."""rules = RUBRIC_ASSIGNMENT.get(model_id)if rules is None:return None, {}return _assessment_by_model_id().get(str(rules["record"])), rulesdef _grade_suffix(model_id: str) -> str:"""The grade fragment appended to a model's name in the chooser.Reads ``state`` before reading ``letter``, per the assessment file's ownrendering rules: a withheld overall renders the word, never a letter, andcoverage always travels with the letter so "E on two of six areas" cannotbe shortened into "E"."""record, rules = _assignment(model_id)if record is None:return "no assessment recorded"overall = record.get("overall") if isinstance(record.get("overall"), Mapping) else {}evidence = record.get("evidence") if isinstance(record.get("evidence"), Mapping) else {}letter = _letter(overall.get("letter"))if rules.get("impact") and str(overall.get("state") or "") == "grade" and letter:assessed = overall.get("areas_assessed")total = overall.get("areas_total")coverage = (f" on {assessed} of {total}"if isinstance(assessed, int) and isinstance(total, int)else "")impact = f"impact {letter}{coverage}"else:impact = "impact withheld"evidence_letter = _letter(evidence.get("letter"))evidence_part = (f"evidence {evidence_letter}" if evidence_letter else "evidence not assessed")# Evidence first, because the chooser is 280px wide and the operating# system truncates from the right. With impact leading, every option in# the list read "Qwen3 0.6B · unsloth · impact with..." and the grade this# product exists to show was the part that fell off the end. The order is# a presentation decision about which fact survives a narrow control, not# a claim that one grade outranks the other; both are still here, and the# rubric panel still shows them in full.return " · ".join((evidence_part, impact))def _short_label(label: str) -> str:"""The model's name, without the packager that follows it.``model_choices`` yields "Qwen3 0.6B · unsloth"; the part before the firstseparator is the model, and that is what a chooser needs."""return label.split(" · ", 1)[0].strip() or labeldef model_choices_with_grades() -> list[tuple[str, str]]:"""Model options carrying their assessment rather than their RAM figure.Higher letter means lower impact, and the letters are not comparableacross models graded on different categories. That caveat lives in therubric panel; what belongs here is the fact that a grade exists at all,beside the name, at the moment of choosing."""# The publisher is dropped from the option text and not from the product:# it is on the worker card, in the rubric panel and in the manifest the# digest is checked against. In a 280px control it was 9 characters that# pushed the grade out of view.offered = [(f"{_short_label(label)} · {_grade_suffix(model_id)}", model_id)for label, model_id in model_choices()if model_id in RUBRIC_ASSIGNMENT]# A model with no assessment is not offered for selection. That is a# stronger rule than it looks: this product's only claim is about measured# and disclosed environmental cost, so a model nobody can say anything# about is a model it has no business recommending. Such entries stay in# the catalogue, where the rubric panel names them and says what is# missing, rather than disappearing.return offered or [(f"{_short_label(label)} · {_grade_suffix(model_id)}", model_id)for label, model_id in model_choices()]def _rubric_cards() -> list[str]:"""Build the grade cards from the assessment file's display block.Ranked models first, in the file's impact order (lowest impact first),then the withheld models under their own marker: unranked is not lastplace. No overall letter is computed anywhere in this function; bothscales are read as published or rendered as explicit absences."""display = _rubric_display()5 unmodified linesfor record in records:if isinstance(record, Mapping) and record.get("model_id"):by_id[str(record["model_id"])] = recordranking = display.get("impact_ranking")ranking = ranking if isinstance(ranking, Mapping) else {}ranked_ids = [str(v) for v in ranking.get("order") or () if str(v) in by_id]withheld_ids = [str(v) for v in ranking.get("withheld") or () if str(v) in by_id]leftover = [model_idfor model_id in by_idif model_id not in set(ranked_ids) | set(withheld_ids)]withheld_note = str(ranking.get("withheld_note") or "Unranked, not last place.")for model_id in ranked_ids + leftover:cards.append(_display_card(by_id[model_id]))for model_id in withheld_ids:cards.append(_display_card(by_id[model_id], unranked_note=withheld_note))return cards# Fallback: the assessments already in the catalogue. Every one of them is# "no data", so this is the all-absent rendering, which is the state the# design has to carry well rather than an edge case to apologise for.for model_id, manifest in MODEL_CATALOG.items():assessment = RELEASE_ASSESSMENT[model_id]# Every area in the current catalogue is Missing, and Missing is not a# letter, so every row is an explicit absence. Passing None rather than# mapping a status onto a letter is the whole point: there is no# translation table here that a future edit could extend into grading# an absence.rows = [(AREA_LABELS[area], None) for area in RUBRIC_AREAS]cards.append(render.model_grade_card(name=manifest.label,impact=None,assessed=0,total=len(RUBRIC_AREAS),evidence=_letter(assessment.evidence_grade),categories=rows,note=assessment.reason,))247 unmodified linesdef _library_page(self, query: str, defaults: Sequence[str]) -> tuple[Any, str, str]:"""The page a person picks their defaults on: cards, summary, picker."""rows, matched = self._library_rows(query)total = len(_library_specs())choices = [(f"{row['name']} · {row['kind']}", row["ref"]) for row in rows]# Defaults outside the current filter are preserved rather than# dropped. Searching is a way of looking, not a way of deselecting,# and a search box that quietly unticked everything it hid would be24 unmodified linesprofile: "gr.OAuthProfile | None" = None,request: "gr.Request | None" = None,) -> tuple[Any, Any, str, str, Any, str]:"""Record the defaults, merging the visible page into the kept set.The subtlety is that the component only reports what it can see. Aperson who searches "pdf", unticks one member and then searches"plan" has changed their mind about one member, not about everymember the filter was hiding. So the members currently on screen arereplaced wholesale and everything off screen is left exactly as itwas."""rows, _ = self._library_rows(query)on_screen = {row["ref"] for row in rows}previous = set(_library_defaults(state))11 unmodified linesdefaults=_library_defaults(updated),viewer_id=viewer_id,)_, summary, cards = self._library_page(query, _library_defaults(updated))return updated, updated, summary, cards, selector, note# Outputs ----------------------------------------------------------306 unmodified lineslibrary, library_note = self._library_components(None, defaults=_library_defaults(updated), viewer_id=user_id)page, page_summary, page_cards = self._library_page("", _library_defaults(updated))return (updated,updated,9 unmodified lineslibrary_note,self._outputs_component(updated),activity,# The library page is filled on arrival rather than on first# open, so a browser that already has defaults shows them ticked# the moment the accordion is expanded.page,page_summary,page_cards,)889 unmodified linesstate["session_id"], job_id, raw_artifacts)answer["artifacts"] = [Path(item).name for item in stored]updated = record_answer(updated, job_id=job_id, answer=answer)if answer is not None:41 unmodified lines_step_messages(answer.get("steps") or (), running=False))messages.append({"role": "assistant", "content": str(answer.get("output", ""))})status_label = "completed"outcome = ""elif view is None:275 unmodified lines# button below is the one sign-in control, so a header link# would only duplicate it.identity = gr.HTML(_identity_html(""))# The quick nav sits directly under the identity box: one# anchor per page-worthy section. Links, not buttons, because# they navigate rather than act.gr.HTML('<nav class="c-quicknav" aria-label="Sections">''<a class="c-quicknav__link" href="#library">Library</a>''<a class="c-quicknav__link" href="#join-agent">Run an agent</a>'"</nav>")# THE SIGN-IN CONTROL, AND WHY IT IS CONDITIONAL.#76 unmodified lines# the model.model = gr.Dropdown(label="Model",choices=model_choices_with_grades(),value=DEFAULT_MODEL_ID,container=True,)248 unmodified linescreate_code = gr.Button("Generate pairing code")gr.Markdown()# THE LIBRARY, AT THE SIZE IT IS GOING TO BE.## The composer's picker shows what the chosen worker is# actually offering, which is a handful. This page is the# whole library, which is meant to reach the hundreds, and# a list of hundreds is only usable through search. What a# person does here is choose their defaults once; those# are remembered in this browser and tick themselves on# every run where a worker offers them.with gr.Accordion("Library", open=True, elem_id="library",elem_classes="c-library-section",):gr.Markdown("Every tool and skill this server can offer, who wrote ""it, and what it does. Hover a card — or press and hold ""on a phone — to watch its demonstration. Tick the ""members you usually want below: they select themselves ""whenever a worker offers them, and any run can untick ""them without changing what is saved.")library_search = gr.Textbox(label="Search the library",show_label=False,placeholder="Search by name, reference or what it does…",container=False,elem_classes="c-librarysearch",)library_summary = gr.HTML(render.library_summary(shown=0, matched=0, total=0, chosen=0))library_cards_html = gr.HTML(elem_classes="c-librarycards")gr.Markdown("**Your defaults**", elem_classes="c-librarydefaults-head")library_defaults = gr.CheckboxGroup(label="Your defaults",show_label=False,choices=[],value=[],elem_classes="c-librarypage",)with gr.Accordion("Model grades and the rubric", open=False):gr.HTML('<p class="c-panel__head">''<span class="c-panel__title">Release assessment</span>''<span class="c-panel__boundary">boundary 2 of 2</span></p>')gr.HTML(render.rubric_section(_rubric_cards(), warning=_rubric_warning()))# Hidden component bindings form the machine API consumed by gradio_client.with gr.Column(visible=False):api_pair_code = gr.Textbox()47 unmodified linesqueue=False,api_visibility="private",)new_conversation_button.click(self.new_conversation,inputs=[session_state],49 unmodified lines50515253545556835 unmodified lines8928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219222 unmodified lines9259269279289299309312 unmodified lines93493593693793893994094194294394494594617 unmodified lines9649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710686 unmodified lines1075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161 unmodified line1118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012015 unmodified lines120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257247 unmodified lines15051506150715081509151015111512151315141515151615171518151915201521152224 unmodified lines154715481549155015511552155315541555155615571558155915601561156215631564156511 unmodified lines1577157815791580158115821583158415851586158715881589306 unmodified lines1896189718981899190019011902190319049 unmodified lines1914191519161917191819191920192119221923889 unmodified lines281328142815281628172818281928202821282228232824282528262827282841 unmodified lines287028712872287328742875287628772878287928802881275 unmodified lines31573158315931603161316231633164316531663167316831693170317131723173317476 unmodified lines3251325232533254325532563257248 unmodified lines350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359647 unmodified lines364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367149 unmodified linesRELEASE_BOUNDARY,RUBRIC_AREAS,USE_PHASE_BOUNDARY,AreaStatus,model_choices,)from .control_plane import ControlPlane835 unmodified linesdef _catalogue_markdown() -> str:"""The two boundaries in prose, and where the working is.This used to print the whole assessment inline as a bullet per model. Theassessment surface now renders the figures, their method, their notes andtheir primary sources as cards, so repeating them here produced two copiesof the same claims that could drift apart. What stays is the part the cardscannot carry: what the two boundaries are, and why they never meet."""lines = ["#### Release assessment · cradle to release","",f"_{RELEASE_BOUNDARY}_","","Every model offered here has a published, model-specific assessment of its ""training. Each figure is shown exactly as its publisher stated it, with the ""method that produced it and a link to the document it came from, so you can ""check the claim rather than take ours for it. Nothing on this surface is ""ranked: a figure and an absence are not two points on one scale, and `Missing` ""is neither zero nor a low score.","","Models with no published assessment are not listed. That is a stronger rule ""than it looks — this project's only claim is about disclosed and measured ""environmental cost, so a release nobody has published anything about is one ""it has no business recommending.","","#### Use-phase energy · per run","",2 unmodified lines"Shown on each completed run and totalled per conversation, partitioned by ""measurement scope. It is never added to a release figure, and never converted ""into CO2e, water, land, materials or pollution — those conversions would be ""assessor-created estimates, which this catalogue does not make.","","Minimum RAM is a disclosed hardware requirement of the file, not an ""environmental result. This catalogue deliberately carries no model-size or "2 unmodified linesreturn "\n".join(lines)#: Where the catalogue publishes the assessment set. Owned by the catalogue,#: read here. Absent is handled rather than guarded against: the fallback below#: reads the assessments in catalog.py, which now carry real published figures,#: so an absent file degrades to a smaller surface rather than an empty one.ASSESSMENTS_PATH = Path(__file__).resolve().parent.parent / "model_assessments.json"def _rubric_display() -> Mapping[str, Any]:"""The assessment file's ``website_display`` block, or an empty mapping.17 unmodified linesreturn warning if isinstance(warning, str) else ""def _further_reading() -> list[Mapping[str, str]]:items = _rubric_display().get("further_reading")if not isinstance(items, (list, tuple)):return []return [{"label": str(item.get("label") or ""), "url": str(item.get("url") or "")}for item in itemsif isinstance(item, Mapping) and item.get("url")]#: The published method words this surface will display. Anything else is shown#: as stated but not painted as one of the confident states, and an area with no#: value renders as an absence whatever its status field says._METHOD_WORDS = frozenset({"Measured", "Modelled", "Proxy-based"})def _category_rows(record: Mapping[str, Any]) -> list[Mapping[str, Any]]:"""The six areas of one record, in the catalogue's order, always all six.State is read before value, per the assessment file's own rendering rules.A record that omits an area entirely gets an explicit absence rather than amissing row, because a card with four rows reads as a model with four areas."""categories = record.get("categories")categories = categories if isinstance(categories, Mapping) else {}rows: list[Mapping[str, Any]] = []for area in RUBRIC_AREAS:cell = categories.get(area)cell = cell if isinstance(cell, Mapping) else {}reported = str(cell.get("state") or "missing") == "reported"value = cell.get("value")rows.append({"label": AREA_LABELS.get(area, area),"status": str(cell.get("status") or "") if reported else "","value": str(value) if reported and isinstance(value, (str, int, float)) else "","unit": str(cell.get("unit") or "") if reported else "","note": str(cell.get("note") or ""),"source_url": str(cell.get("source_url") or "") if reported else "",})return rowsdef _evidence_card(record: Mapping[str, Any], *, note: str = "") -> str:"""One ``website_display.models`` record as an evidence card.No letter is computed, because there are no letters. Values, units andmethod words are passed through exactly as the file states them; a cellwhose state is not ``reported`` renders as an absence regardless of whatelse it carries, so a malformed record can only ever lose a figure, neveracquire one."""assessed = sum(1 for row in _category_rows(record) if row["value"])coverage = str(record.get("coverage") or "").strip()coverage_text = (f"{coverage.lower()} · {assessed} of {len(RUBRIC_AREAS)} areas published"if coverage and assessedelse "no published result")links = record.get("links")links = links if isinstance(links, (list, tuple)) else ()return render.model_evidence_card(name=str(record.get("name") or record.get("model_id") or "unnamed"),coverage=coverage_text,summary=str(record.get("summary") or ""),covers=str(record.get("covers") or ""),categories=_category_rows(record),links=[{"label": str(item.get("label") or ""), "url": str(item.get("url") or "")}for item in linksif isinstance(item, Mapping) and item.get("url")],note=note or str(record.get("boundary") or ""),)#: The model selected when a session opens. The lowest published figures of any#: assessed release this network can run; see model_assessments.json.DEFAULT_MODEL_ID = "olmoe-1b-7b-0924-instruct"def _assessment_by_model_id() -> Mapping[str, Mapping[str, Any]]:"""``website_display.models`` keyed by record id, exact matches only.Deliberately no fuzzy matching, and no alias table invented here. Theassessment records name releases ("OLMo 2 7B", "OLMoE 1B-7B 0924"); thecatalogue names specific quantised checkpoints ("OLMo 2 1124 7B Instruct,Q4_K_M"). Those are not the same object, and a surface whose first rule isthat a figure belongs to the thing that was assessed cannot have its ownrenderer guessing which figure goes with which file.So a catalogue entry gets an assessment when ``ASSESSMENT_ASSIGNMENT`` sayswhich record covers it, and renders as not assessed otherwise. Extending thecoverage is a change to the assessment data, which is where the evidencelives."""records = _rubric_display().get("models")6 unmodified lines}#: Which assessment record covers which catalogue entry, and what it leaves out.#:#: This table used to carry an ``impact`` boolean, because the surface had two#: ordinal scales and one of them could transfer between checkpoints while the#: other could not. Both scales are gone, and with them the reason for that#: flag: a published figure either covers the checkpoint being offered or it#: does not, and where it does not the card says so in words rather than#: withholding a letter.#:#: The mapping itself stays, and stays explicit, for the reason it always#: existed. Every entry below is a *pretraining* result being shown beside an#: *instruction-tuned* checkpoint built on that pretraining run. That is a#: partial coverage claim, not a complete one, and it is one substitution away#: from the thing this catalogue refuses — quietly transferring a figure from#: one release to another. Writing it down is what keeps the two apart.ASSESSMENT_ASSIGNMENT: Mapping[str, Mapping[str, Any]] = {"olmoe-1b-7b-0924-instruct": {"record": "olmoe-1b-7b-0924","note": ("Figures cover the 0924 pretraining run; the tuning stage that produced this ""checkpoint is not separately costed in the source."),},"olmo-2-1124-7b-instruct": {"record": "olmo-2-1124-7b","note": ("Figures cover the 1124 pretraining run; the tuning stage that produced this ""checkpoint is not separately costed in the source."),},"llama-2-7b-chat": {"record": "llama-2-7b","note": ("Figures cover Llama 2 7B pretraining; Meta report fine-tuning compute inside ""the family total without breaking it out per checkpoint."),},}1 unmodified linedef _assignment(model_id: str) -> tuple[Mapping[str, Any] | None, Mapping[str, Any]]:"""``(assessment record, assignment rules)`` for one catalogue model."""rules = ASSESSMENT_ASSIGNMENT.get(model_id)if rules is None:return None, {}return _assessment_by_model_id().get(str(rules["record"])), rulesdef _evidence_suffix(model_id: str) -> str:"""The fragment appended to a model's name in the chooser.A letter used to go here. What replaced it is the fact the letter wasstanding in for: which areas somebody actually published, and how. That islonger, and it is the thing a person choosing a model can act on -- "energy,climate, water · measured" says what is known; "B" said what we thought of it."""record, _ = _assignment(model_id)if record is None:assessment = RELEASE_ASSESSMENT.get(model_id)if assessment is None or not assessment.has_any_result:return "no published assessment"published = [AREA_LABELS[area].split(" /", 1)[0].lower()for area in RUBRIC_AREASif assessment.areas[area].status is not AreaStatus.MISSING]return ", ".join(published) + " published"rows = _category_rows(record)published = [row["label"].split(" /", 1)[0].lower() for row in rows if row["value"]]if not published:return "no published assessment"methods = {row["status"] for row in rows if row["value"] and row["status"] in _METHOD_WORDS}if methods == {"Measured"}:method = "measured"elif "Measured" in methods:# Not "partly measured", which reads as a hedge about the measuring.# Some of these figures were metered and some were calculated from the# metered ones, and both halves of that belong in the phrase.method = "measured and modelled"elif methods:method = "modelled"else:method = "method not stated"return f"{', '.join(published)} · {method}"def _short_label(label: str) -> str:"""The model's name, without the packager that follows it.``model_choices`` yields "OLMoE 1B-7B 0924 Instruct · Ai2 first-party GGUF";the part before the first separator is the model, and that is what a chooserneeds."""return label.split(" · ", 1)[0].strip() or labeldef model_choices_with_evidence() -> list[tuple[str, str]]:"""Model options carrying what was published about them, not their RAM.The publisher is dropped from the option text and not from the product: itis on the worker card, on the assessment card and in the manifest the digestis checked against. In a 280px control it was 9 characters that pushed thedisclosure out of view."""return [(f"{_short_label(label)} · {_evidence_suffix(model_id)}", model_id)for label, model_id in model_choices()]def _assessment_cards() -> list[str]:"""Build the evidence cards from the assessment file's display block.Ordering follows the catalogue, and no ordering here implies a ranking:these are not scores, and two models with published figures in differentareas are not on one scale."""display = _rubric_display()5 unmodified linesfor record in records:if isinstance(record, Mapping) and record.get("model_id"):by_id[str(record["model_id"])] = record# Catalogue order first, so the surface matches the chooser; anything the# file carries that the catalogue does not is appended rather than# dropped, because a record for a model we no longer ship is still a# published result somebody may be looking for.seen: set[str] = set()for model_id in MODEL_CATALOG:rules = ASSESSMENT_ASSIGNMENT.get(model_id) or {}record_id = str(rules.get("record") or "")record = by_id.get(record_id)if record is None:continueseen.add(record_id)cards.append(_evidence_card(record, note=str(rules.get("note") or "")))for record_id, record in by_id.items():if record_id not in seen:cards.append(_evidence_card(record))return cards# Fallback: the assessments in the catalogue itself. These now carry real# published figures rather than a uniform "no data", so an absent or# unreadable assessment file degrades to a smaller surface rather than an# empty one.for model_id, manifest in MODEL_CATALOG.items():assessment = RELEASE_ASSESSMENT[model_id]rows = [{"label": AREA_LABELS[area],"status": assessment.areas[area].status.valueif assessment.areas[area].status is not AreaStatus.MISSINGelse "","value": assessment.areas[area].value or "","unit": assessment.areas[area].unit or "","note": assessment.areas[area].note,"source_url": assessment.areas[area].source_url or "",}for area in RUBRIC_AREAS]cards.append(render.model_evidence_card(name=manifest.label,coverage=assessment.coverage_display,summary=assessment.summary,covers=assessment.covers,categories=rows,links=list(assessment.links),note=assessment.reason,))247 unmodified linesdef _library_page(self, query: str, defaults: Sequence[str]) -> tuple[Any, str, str]:"""The page a person picks their defaults on: the transport, then what is drawn.The checkbox group is not a second way to choose; it is the samechoice, off the screen, because the framework only reports its owncontrols. Every box is labelled with the bare reference so the cardthat forwards a click to it can find it by an exact string rather thanby its position in a list that a filter can reorder."""rows, matched = self._library_rows(query)total = len(_library_specs())choices = [(row["ref"], row["ref"]) for row in rows]# Defaults outside the current filter are preserved rather than# dropped. Searching is a way of looking, not a way of deselecting,# and a search box that quietly unticked everything it hid would be24 unmodified linesprofile: "gr.OAuthProfile | None" = None,request: "gr.Request | None" = None,) -> tuple[Any, Any, str, str, Any, str]:"""Record the defaults the page's cards are currently showing as on.The merge only ever replaces members currently on screen. Somebody whosearches "pdf", drops one member and then searches "plan" has changedtheir mind about one member, not about every member the filter washiding, and a page whose whole job is to remember a choice must notforget one because it was scrolled out of a filter.Values arrive from the page's own hidden group and are still filteredagainst the library, because a control in a browser is a suggestion."""visible_choice = [item for item in visible_choice or () if isinstance(item, str)]rows, _ = self._library_rows(query)on_screen = {row["ref"] for row in rows}previous = set(_library_defaults(state))11 unmodified linesdefaults=_library_defaults(updated),viewer_id=viewer_id,)_group, summary, _cards = self._library_page(query, _library_defaults(updated))# The cards are NOT re-rendered here. The click already moved the card# in the browser, and pushing fresh markup back would rebuild the grid# under the user's cursor — losing a hover preview mid-play and, on a# phone, moving the thing they just tapped. The summary updates# because it is the count, which is the feedback that matters.return updated, updated, summary, gr.skip(), selector, note# Outputs ----------------------------------------------------------306 unmodified lineslibrary, library_note = self._library_components(None, defaults=_library_defaults(updated), viewer_id=user_id)page_group, page_summary, page_cards = self._library_page("", _library_defaults(updated))return (updated,updated,9 unmodified lineslibrary_note,self._outputs_component(updated),activity,# The library page is filled on arrival rather than on first open,# so a browser that already has defaults shows those cards already# selected the moment the page is opened.page_group,page_summary,page_cards,)889 unmodified linesstate["session_id"], job_id, raw_artifacts)answer["artifacts"] = [Path(item).name for item in stored]# WHAT THE RUN MADE, READ ONCE.## A file the run produced is the answer to "make me a# PDF", and until now the transcript said "1 file" and# left the thing itself in a panel. The preview is# derived here, at claim time, and travels in browser# state with the answer: the transcript re-renders# every two seconds and must never re-open a zip to# do it.answer["made"] = render.artifact_preview_data(stored)updated = record_answer(updated, job_id=job_id, answer=answer)if answer is not None:41 unmodified lines_step_messages(answer.get("steps") or (), running=False))messages.append({"role": "assistant", "content": str(answer.get("output", ""))})# The artifact, immediately under the words that announced it.# A run whose whole purpose was to produce a file ends on the# file, not on a sentence about a file.made = render.made_things(answer.get("made") or ())if made:messages.append({"role": "assistant", "content": made})status_label = "completed"outcome = ""elif view is None:275 unmodified lines# button below is the one sign-in control, so a header link# would only duplicate it.identity = gr.HTML(_identity_html(""))# The quick nav sits directly under the identity box. The# library is a destination rather than a section, so its# control is a button that swaps the view; "Run an agent" is# still a section of this page, so it stays an anchor.with gr.Row(elem_classes="c-quicknav"):open_library = gr.Button("Library", size="sm", variant="secondary",elem_classes="c-quicknav__btn", scale=0,)gr.HTML('<a class="c-quicknav__link" href="#join-agent">Run an agent</a>')# THE SIGN-IN CONTROL, AND WHY IT IS CONDITIONAL.#76 unmodified lines# the model.model = gr.Dropdown(label="Model",choices=model_choices_with_evidence(),value=DEFAULT_MODEL_ID,container=True,)248 unmodified linescreate_code = gr.Button("Generate pairing code")gr.Markdown()with gr.Accordion("Model assessments and their sources", open=False):gr.HTML('<p class="c-panel__head">''<span class="c-panel__title">Release assessment</span>''<span class="c-panel__boundary">boundary 2 of 2</span></p>')gr.HTML(render.assessment_section(_assessment_cards(),warning=_rubric_warning(),further_reading=_further_reading(),))# THE LIBRARY IS A PAGE, NOT A SECTION.## It used to be an accordion at the bottom of the chat page, which# is where a person found it after scrolling past the conversation,# the composer and the agent panel — that is a footnote, not a# destination. It is now a full view of its own, reached from the# control under the sign-in box and leaving by the same route.## A view rather than a Gradio route, deliberately. A second route# is a second Blocks with its own state, and the defaults live in# this browser's own storage beside the transcript; two pages# writing that one key is how a person loses their history to a# visit to the library. One Blocks, two views, one copy of the# state.with gr.Column(elem_classes="c-libpage", visible=False) as library_view:close_library = gr.Button("\u2190 Back to the conversation", size="sm",variant="secondary", elem_classes="c-libpage__backbtn", scale=0,)gr.HTML('<h1 class="c-libpage__title">Library</h1>''<p class="c-libpage__lede">Every tool and skill this server can '"offer, who wrote it, and what it does. Hover a card — or press ""and hold on a phone — to watch it work. Tap a card to keep it as ""a default: it selects itself whenever a worker offers it, and any ""single run can drop it without changing what is saved.</p>")library_search = gr.Textbox(label="Search the library",show_label=False,placeholder="Search by name, reference or what it does…",container=False,elem_classes="c-librarysearch",)library_summary = gr.HTML(render.library_summary(shown=0, matched=0, total=0, chosen=0))library_cards_html = gr.HTML(elem_classes="c-librarycards")# THE CARDS ARE THE CONTROL; THIS IS HOW THEY REACH PYTHON.## The page used to carry a grid of cards *and* a visible list# of tick boxes naming the same members again: two controls for# one decision, and the reason the page was unreadable on a# phone. The grid is the only control a person sees now. This# group is its transport, off the screen, and the click handler# forwards a card's click to the box that belongs to it.## Forwarding a real click rather than writing a value is the# whole trick, and it was arrived at the hard way: setting a# hidden field's ``value`` and dispatching ``input`` looks# right, changes the DOM, and never reaches the server, because# the framework's own binding is what it listens to. Clicking# the framework's own control cannot drift from it.## Each box is labelled with its bare reference so the mapping# from card to box is an exact string match rather than a# position, which would silently mis-tick the moment a filter# reordered one list and not the other. Hidden in CSS, never# with ``visible=False``: gradio 6 leaves an invisible block# out of the document altogether, and a transport the page# cannot find is a page that silently never saves.library_defaults = gr.CheckboxGroup(label="Saved defaults",show_label=False,choices=[],value=[],container=False,elem_id="library-choice",elem_classes="c-hiddenfield",)# Hidden component bindings form the machine API consumed by gradio_client.with gr.Column(visible=False):api_pair_code = gr.Textbox()47 unmodified linesqueue=False,api_visibility="private",)# THE LIBRARY VIEW SWAP.## Two columns, one visible at a time, and the scroll position reset# on arrival: a page that opens halfway down is the single clearest# sign that nothing really navigated. The transition is instant# because both views are already in the document; nothing is# fetched to change page._scroll_top = "() => { window.scrollTo({top: 0, behavior: 'instant'}); }"open_library.click(lambda: (gr.Column(visible=False), gr.Column(visible=True)),outputs=[app_view, library_view],queue=False,api_visibility="private",js=_scroll_top,)close_library.click(lambda: (gr.Column(visible=True), gr.Column(visible=False)),outputs=[app_view, library_view],queue=False,api_visibility="private",js=_scroll_top,)new_conversation_button.click(self.new_conversation,inputs=[session_state],
43 unmodified lines4445464748495051525354555657585960616263646566676843 unmodified lines#: expect the review to ask why the digest changed.PINNED_DIGESTS: Mapping[str, str] = MappingProxyType({"academy-guide": "489ddd4c963552d243d68aa71af3e9f86ea58b6eb15fa77676eb21297d20e683","algorithmic-art": "a20eeb2e787e8f01f66fefc61fa34d84c7046015ba39728952f97ebe29709822","brand-guidelines": "bf9abe6506aa7785d36b027fd90f5a5552b40a36f1201ee09b3a680bbfff74d3","canvas-design": "776e112543645c5b22515c6e503ab572cde35c4633e0fd09e2d7c53ed912cde0","claude-api": "7f41a0e79797eb14c67e8a7fbfbabdb02da229829997496d719af141a597d0ce","create-deck": "e7c9a709f4609af0e5560544ecd8b05cb32fe5e52c147a23690f700700ec5b88","create-docx": "b1e950ab46f324bca84f6aade1d6772f13090e1fb1cb57df761c41bcb4764b7d","create-xlsx": "73325b2bd0d99ec781610ed9da1af59fef2655fb6e7b3766a29e2915d5ec449d","csv-table": "ff87a44fe03901f0cfb61f46209b6cc7138acf07d87279c936cd8711b0a5e455","discernment-nudge": "1901fbb6a6a0980fe3c8fc5297d492c39ef02f1c46bbcd77223cf7622cabcd5b","frontend-design": "283205e755626aae7c517f6a3b0f9b8d16b2d30f32d24822080b58393eae689a","mcp-builder": "fafc5acb2b8e408182ed8f2be49e9c1dcf41827ceca7bba6aacaccce3393b37b","review-checklist": "98af818e3e4c178021bb87bcf355934b5effca7240b738f48ee344f7c6b6686f","skill-scaffold": "158d1d1ff1ff3ad83865537708cd4464cdd114f420912136917b9c143c32e18e","slack-gif-creator": "854f079d2843b80cbf3bd261c099f187c07ad0edf69646ca122eee7e77007ae9","status-update": "48b7b1914de88b70e0ff9d19262987aca01696f6ebce061d0793543cbacc309e","theme-factory": "1b5d9800d869e902757d1b1733f98f3936319ee090035ffe9a82603662ccebe8","web-artifacts-builder": "4d0576368ca16dea4d5dea809b4766146d49ef84354269289843f55e76f9615e","webapp-testing": "cde6767ba5c2fd1cca6e86007010b228cb9296ffe3764485122ade9dd88c52fd",})43 unmodified lines4445464748495051525354555657585960616263646566676843 unmodified lines#: expect the review to ask why the digest changed.PINNED_DIGESTS: Mapping[str, str] = MappingProxyType({"academy-guide": "47c88cbeb129c2edcb68176bc09621df72557200d253c2a5795e8f76603d6b45","algorithmic-art": "15adcdf6e2f9a51d1a2cf9a0cfa636970c53c5f464fe6ef96b5144a72cc95dbd","brand-guidelines": "d4443542e29d6b91234dffd31a65ed7df578adea5f58dfc70af068ad82dae1e5","canvas-design": "fc44c8a8552c1c6bfc5f92f115d07082a9ae3a1a174333b9689abf1d6b8d3a69","claude-api": "23a386a66bce1123f0765779966b802279c23eff956932d3283cc9ba60ecea9e","create-deck": "e7c9a709f4609af0e5560544ecd8b05cb32fe5e52c147a23690f700700ec5b88","create-docx": "b1e950ab46f324bca84f6aade1d6772f13090e1fb1cb57df761c41bcb4764b7d","create-xlsx": "73325b2bd0d99ec781610ed9da1af59fef2655fb6e7b3766a29e2915d5ec449d","csv-table": "ff87a44fe03901f0cfb61f46209b6cc7138acf07d87279c936cd8711b0a5e455","discernment-nudge": "d83200e87cae43adbd61ff7277fc08e14c1f032f11590fb5a04bfbf55eb16fdd","frontend-design": "283205e755626aae7c517f6a3b0f9b8d16b2d30f32d24822080b58393eae689a","mcp-builder": "0c714adae4963be9411e061647f4efa3820b06d2974a2b319aa93330afc8eb82","review-checklist": "98af818e3e4c178021bb87bcf355934b5effca7240b738f48ee344f7c6b6686f","skill-scaffold": "158d1d1ff1ff3ad83865537708cd4464cdd114f420912136917b9c143c32e18e","slack-gif-creator": "d1c7506e4c0bb3dfb17608e7e2909a91083d6f7323702a2b70bd5d3efc98c6b9","status-update": "48b7b1914de88b70e0ff9d19262987aca01696f6ebce061d0793543cbacc309e","theme-factory": "1b5d9800d869e902757d1b1733f98f3936319ee090035ffe9a82603662ccebe8","web-artifacts-builder": "c57043ce13ad02df16ce717da8572fc59ec309bf9326a1e7d8b2f4f6cbc7e962","webapp-testing": "c2202ffb51483464e7a485ffa704899f20bcb2feb71073689ed678af7b55e7a4",})
APPLY-AND-PUSH.batAdded+17
assets/library-demos/academy_guide-1.gif

Large File Pointer Details
- SHA256: a7581db4887795b4376d8bcaba304403a05335dceffa67020ebcdc9a9a3e1d7b
- Pointer size: 131 Bytes
- Size of remote file: 131 kB

Large File Pointer Details
- SHA256: f7b8b9b58839c535ed845c92370af525d9fbb9baf725489dbaa311a5a0234cd4
- Pointer size: 130 Bytes
- Size of remote file: 90.4 kB
assets/library-demos/academy_guide-1.webpAdded

Large File Pointer Details
- SHA256: 82080fe65ae6385d14a510b0de3a5e7152ec42277b6b7ead1854a3050172c4fb
- Pointer size: 130 Bytes
- Size of remote file: 21.3 kB
assets/library-demos/algorithmic_art-1.gif

Large File Pointer Details
- SHA256: 24e948eb23740a9cd7690a6a0176918b7223deeded1cbc91a52f35550edbaa55
- Pointer size: 131 Bytes
- Size of remote file: 134 kB

Large File Pointer Details
- SHA256: 0b6402435472af80c6a46ec98d5225fb37ed301b6ab9f2b29bd26fbbb115f904
- Pointer size: 131 Bytes
- Size of remote file: 125 kB
assets/library-demos/algorithmic_art-1.webpAdded

Large File Pointer Details
- SHA256: ab2f0738377734c8f8e59e7eda6514d73111c3d56d16b0623bb486bd930a2b72
- Pointer size: 130 Bytes
- Size of remote file: 21 kB
assets/library-demos/brand_guidelines-1.gif

Large File Pointer Details
- SHA256: 8b92458e28f5a7aeb240f12f753869fee5c3c37de187eb62e0ede6dc3afa91a0
- Pointer size: 131 Bytes
- Size of remote file: 169 kB

Large File Pointer Details
- SHA256: e71800aa51a67ccbac19113728f90048b14cbb5fe847bac9f3c893c7f78d31f1
- Pointer size: 131 Bytes
- Size of remote file: 115 kB
assets/library-demos/brand_guidelines-1.webpAdded

Large File Pointer Details
- SHA256: e45cdad8e194ed0cecb8c79010e665ce9dd353a4cc6397be1ec2b599d0b4c5d4
- Pointer size: 130 Bytes
- Size of remote file: 21.2 kB
assets/library-demos/canvas_design-1.gif

Large File Pointer Details
- SHA256: 2a660604fce9e8c84c25a5d96e7b75698e65c6e6ace781e4ab1e4a5bbcb9a80a
- Pointer size: 131 Bytes
- Size of remote file: 138 kB

Large File Pointer Details
- SHA256: 6f9af576a25d840bb43ad3477423ab6166f4ad2cda83b135ce3453611186dc9e
- Pointer size: 131 Bytes
- Size of remote file: 112 kB
assets/library-demos/canvas_design-1.webpAdded

Large File Pointer Details
- SHA256: de62403c2e78ae0ea914eaf3dc2764e9d88178a993ad4c0c34ab24a925d514d0
- Pointer size: 130 Bytes
- Size of remote file: 18.2 kB
assets/library-demos/claude_api-1.gif

Large File Pointer Details
- SHA256: e2ca63522dbecadd19d8388f5724b780807ce01fba702d5a8d4a9058e02f4e6f
- Pointer size: 131 Bytes
- Size of remote file: 181 kB

Large File Pointer Details
- SHA256: b3042a2895d944c91279f20d2ea609de99c9cf1cb34a721718c2d18658129256
- Pointer size: 131 Bytes
- Size of remote file: 115 kB
assets/library-demos/claude_api-1.webpAdded

Large File Pointer Details
- SHA256: 4012a926acd5a57cb878bf51897aac01719e1999c2181925db0c01cba47adea0
- Pointer size: 130 Bytes
- Size of remote file: 21.9 kB
assets/library-demos/create_deck-1.gif

Large File Pointer Details
- SHA256: 2902674f868d902a4a98700ffbb2db616d84ddae0ca509b237b336a98daad504
- Pointer size: 131 Bytes
- Size of remote file: 135 kB

Large File Pointer Details
- SHA256: 23b29e3f009fb409031418d92292d83f50f9a578d41479860f31c8db7430a4a2
- Pointer size: 130 Bytes
- Size of remote file: 68.7 kB
assets/library-demos/create_deck-1.webpAdded

Large File Pointer Details
- SHA256: e28f20549d198317ddf12e878e9aa3339774bab4da590f8abb77df91f81f5aaa
- Pointer size: 129 Bytes
- Size of remote file: 5.64 kB
assets/library-demos/create_docx-1.gif

Large File Pointer Details
- SHA256: 0c558b81576b98aca28e913552f3f441b15580a46a557ddeee603160948ce846
- Pointer size: 131 Bytes
- Size of remote file: 151 kB

Large File Pointer Details
- SHA256: f79068f86deb34d02cf7e8c5228b5515c38a91055d6315d7da876892f39577b3
- Pointer size: 130 Bytes
- Size of remote file: 80.4 kB
assets/library-demos/create_docx-1.webpAdded

Large File Pointer Details
- SHA256: ec773cfe779ddc84113fc96152fd644ad9d5f081da3a28c0d0abdec88b17925e
- Pointer size: 129 Bytes
- Size of remote file: 8.07 kB
assets/library-demos/create_pdf-1.gif

Large File Pointer Details
- SHA256: ae39a352baddd190fb4334d3afe6a4c03e5de9e22adf05479244874ddc2036e4
- Pointer size: 131 Bytes
- Size of remote file: 145 kB

Large File Pointer Details
- SHA256: e50294206ddbca9ffd0dcf194dd6ee802caf1d2c419127f01e7cccc7f9813c21
- Pointer size: 130 Bytes
- Size of remote file: 88 kB
assets/library-demos/create_pdf-1.webpAdded

Large File Pointer Details
- SHA256: 5adf90bbecae8e930bf559f2d5ff066fc6ffae3af68f86c3c79ffd0417b4e2c3
- Pointer size: 130 Bytes
- Size of remote file: 10.4 kB
assets/library-demos/create_xlsx-1.gif

Large File Pointer Details
- SHA256: 3ab1c433d970104069aeca9a50d26b849f55ab27a213fe19e799e7679e3c6fb5
- Pointer size: 131 Bytes
- Size of remote file: 144 kB

Large File Pointer Details
- SHA256: 10786266bc1cafef302bf156977d78e21a1b00f2687320fd334c8a0f3c94ce74
- Pointer size: 130 Bytes
- Size of remote file: 86.2 kB
assets/library-demos/create_xlsx-1.webpAdded

Large File Pointer Details
- SHA256: 8a8ceaf23219b1715a00f6cd7cf6dfa070640226a7cb3632d54acc46e98de75d
- Pointer size: 129 Bytes
- Size of remote file: 7.7 kB
assets/library-demos/csv_table-1.gif

Large File Pointer Details
- SHA256: bdab202b76de062b9823051efbe93c52f7efb88e2c44ac71e05c1ffcdef76bb2
- Pointer size: 131 Bytes
- Size of remote file: 162 kB

Large File Pointer Details
- SHA256: 8b4962a4f78d9fd23f898c01b1580afef1b46c9b55d5be558b3fe678348c5d8b
- Pointer size: 130 Bytes
- Size of remote file: 62 kB
assets/library-demos/csv_table-1.webpAdded

Large File Pointer Details
- SHA256: cd67791a142b1e932d4c4d2245f4233de1f68d2263835dc1e97b5f9be73194dd
- Pointer size: 129 Bytes
- Size of remote file: 6.75 kB
assets/library-demos/discernment_nudge-1.gif

Large File Pointer Details
- SHA256: a5d5fc150d2d405d5ac77b89cdae61b8e5a6f48f65bed92f84c3c141ceb53342
- Pointer size: 131 Bytes
- Size of remote file: 196 kB

Large File Pointer Details
- SHA256: 254e810eb3817945fa95f09a8502e4e110b898190f5b1594ff59646ac6ab4ead
- Pointer size: 131 Bytes
- Size of remote file: 110 kB
assets/library-demos/discernment_nudge-1.webpAdded

Large File Pointer Details
- SHA256: b357f4dcc21c9a405807d9fef3c9adca9f42d4a229bcf25e36adec225bb734cc
- Pointer size: 130 Bytes
- Size of remote file: 21.2 kB
assets/library-demos/frontend_design-1.gif

Large File Pointer Details
- SHA256: 64b742dbd12476e11be711c461ccf0a624d9c033d0320889ec5be7e4da7980d1
- Pointer size: 131 Bytes
- Size of remote file: 151 kB

Large File Pointer Details
- SHA256: 3797dccb5e149355dfff3a56f6d8b50d0cd06744fd3bc14e4e903eb9cf29049c
- Pointer size: 131 Bytes
- Size of remote file: 136 kB
assets/library-demos/frontend_design-1.webpAdded

Large File Pointer Details
- SHA256: 9cdfdc9aa099348b4bf6a0f8e9f7d05f2b5c223f550b0acdb9245ab335a73278
- Pointer size: 130 Bytes
- Size of remote file: 32.8 kB
assets/library-demos/make_plan-1.gif

Large File Pointer Details
- SHA256: 7dbcf416da1c6b49034fcfab2e9c8ec4d86166d6a1fc09e7a2161a456f83db9d
- Pointer size: 131 Bytes
- Size of remote file: 170 kB

Large File Pointer Details
- SHA256: 27db0e2a367fc92148dd4071bf468cf4ee0f8ff3bc3432741031dfeee999c73c
- Pointer size: 131 Bytes
- Size of remote file: 108 kB
assets/library-demos/make_plan-1.webpAdded

Large File Pointer Details
- SHA256: 1cbc4842ce3481ac01ff642e3ea312083a55f3f682c52e76d30436e7f7a3eacb
- Pointer size: 129 Bytes
- Size of remote file: 9.27 kB
assets/library-demos/mcp_builder-1.gif

Large File Pointer Details
- SHA256: 4e5ba79a1825fcf96898da76fab8aafd47827a90e74cab97e82beac37e4c7579
- Pointer size: 131 Bytes
- Size of remote file: 201 kB

Large File Pointer Details
- SHA256: f21732700f5f69495bd38d34e926cf231003493bc51064c7fdfa082aa0b7e88a
- Pointer size: 130 Bytes
- Size of remote file: 81.1 kB
assets/library-demos/mcp_builder-1.webpAdded

Large File Pointer Details
- SHA256: 874c55caf4d8ee1814afbd66083bef507a14b15ccbbd88a6cc418db33b0e3bc8
- Pointer size: 130 Bytes
- Size of remote file: 19.4 kB
assets/library-demos/review_checklist-1.gif

Large File Pointer Details
- SHA256: 1c263afc4154698eec30f16ee621304b783cfc3451db346cb4ae6a59970cb8f8
- Pointer size: 131 Bytes
- Size of remote file: 201 kB

Large File Pointer Details
- SHA256: 1ccd7e1d9c5d1482009992578a8e6c5d8db517c53e62d102290e4eadefbddb89
- Pointer size: 131 Bytes
- Size of remote file: 120 kB
assets/library-demos/review_checklist-1.webpAdded

Large File Pointer Details
- SHA256: 2af80caf9c787efdceebd849d3d1a36aa87af753a2c50aa66cc94f09599fd4c7
- Pointer size: 130 Bytes
- Size of remote file: 21.8 kB
assets/library-demos/skill_scaffold-1.gif

Large File Pointer Details
- SHA256: 73e61434456717ab60604722e2b5424cc69c17a0d1ac449fb4678be4b9a5b2a0
- Pointer size: 131 Bytes
- Size of remote file: 156 kB

Large File Pointer Details
- SHA256: 0902e9fcca3d231cc81528919fccbd656c38c768e86fd7a1ddcd41c60bba307c
- Pointer size: 131 Bytes
- Size of remote file: 108 kB
assets/library-demos/skill_scaffold-1.webpAdded

Large File Pointer Details
- SHA256: 0f47dbf3ff56eea681c17e3a93679197ee1e72fc884e5c57bea206b612a1958b
- Pointer size: 130 Bytes
- Size of remote file: 11.5 kB
assets/library-demos/slack_gif_creator-1.gif

Large File Pointer Details
- SHA256: 97931b56d97ce6c9a0fc833f3c087c3a5929ff8a41a2d25e031f84a09ab3b35d
- Pointer size: 131 Bytes
- Size of remote file: 154 kB

Large File Pointer Details
- SHA256: 8aace9eff595a3c0f074634b0b683042465fc6d7c1561da34c24f82c1f1f7052
- Pointer size: 131 Bytes
- Size of remote file: 114 kB
assets/library-demos/slack_gif_creator-1.webpAdded

Large File Pointer Details
- SHA256: bdeef3b8919635c984c414364cfe06cf83a86dc636222413ebe16776d3b532e0
- Pointer size: 130 Bytes
- Size of remote file: 21.5 kB
assets/library-demos/status_update-1.gif

Large File Pointer Details
- SHA256: 09c8214372ba172b41d55d17d7095fc0fd6216c67cc864dff8c73f2fbd6259fa
- Pointer size: 131 Bytes
- Size of remote file: 199 kB

Large File Pointer Details
- SHA256: f4ca8f05752e8169b14c8c98fc856a1f97a1841a03e45231d8b6ae454ddb260a
- Pointer size: 130 Bytes
- Size of remote file: 81.4 kB
assets/library-demos/status_update-1.webpAdded

Large File Pointer Details
- SHA256: 69c5386dcc5f77fe1364e281b556503c1c099f5973af4e13563c4d629edffe73
- Pointer size: 130 Bytes
- Size of remote file: 16.2 kB
assets/library-demos/theme_factory-1.gif

Large File Pointer Details
- SHA256: 04966f0ef15defdc90afcf15243dbc07cd159c8679d1c9adc2e0512ed4ee4f58
- Pointer size: 131 Bytes
- Size of remote file: 159 kB

Large File Pointer Details
- SHA256: ba557bae19c19551179bdc07d4d33db46a99655799228a9a6f8f84c27fa99523
- Pointer size: 131 Bytes
- Size of remote file: 114 kB
assets/library-demos/theme_factory-1.webpAdded

Large File Pointer Details
- SHA256: 4dfa2c9a2772b31619173449eb49479b4542d55da562b294fdac300a809a8e83
- Pointer size: 130 Bytes
- Size of remote file: 16.6 kB
assets/library-demos/web_artifacts_builder-1.gif

Large File Pointer Details
- SHA256: 33109a137efdc9958bfbd459e89b98d6c914e6d39a764304395dd6bcd808a6bd
- Pointer size: 131 Bytes
- Size of remote file: 162 kB

Large File Pointer Details
- SHA256: ea5a1ce194e452ea1e5848e6b600764db1dce6d97a4432b0634830cb1c0b37eb
- Pointer size: 131 Bytes
- Size of remote file: 115 kB
assets/library-demos/web_artifacts_builder-1.webpAdded

Large File Pointer Details
- SHA256: 670490cb1fb61c78f43fd66802353920266bd8832045051a42f202f6c28e0252
- Pointer size: 130 Bytes
- Size of remote file: 20.7 kB
assets/library-demos/webapp_testing-1.gif

Large File Pointer Details
- SHA256: 27e5bb56ece3ab1bc3487031b161c96d0369c86063ee3c50fcdf9f7a8ca2d14f
- Pointer size: 131 Bytes
- Size of remote file: 204 kB

Large File Pointer Details
- SHA256: 27d6484c71f1e61ec2031508eb10e2da78415aa39012ceadc2526149461fef34
- Pointer size: 131 Bytes
- Size of remote file: 125 kB
assets/library-demos/webapp_testing-1.webpAdded

Large File Pointer Details
- SHA256: 6bd4d447231e25943f36a3a56b6e83b285e61e10d21c4ef5ac73dcdc16606543
- Pointer size: 130 Bytes
- Size of remote file: 21.5 kB
distinct-update.zipAdded+3
distinct_agent/runners.py+2-3
distinct_server.egg-info/SOURCES.txt+41
distinct_server/presentation.py+438-142
distinct_server/render.py+585-221
distinct_server/ui.py+392-285
distinct_skills/manifest.py+10-10