diff --git a/.claude/rules/ui.md b/.claude/rules/ui.md index b9a8f230..c7fcdfca 100644 --- a/.claude/rules/ui.md +++ b/.claude/rules/ui.md @@ -42,5 +42,7 @@ also supports `--only KEY` for a focused benchmark check. - Collapsible content uses the shared thin chevron and sliding transition in `app/static/disclosures.js`; navigation groups use the same animation. Respect reduced motion and keyboard activation. Filter menus and popovers are separate. +- **One icon, one meaning.** A new kind of thing gets its own icon, never a + neighbour's. - Catalogue Add actions share one dialog with the entry type preselected from the page. Keep generated prompts short and refer to import skills instead of duplicating their instructions. diff --git a/.claude/skills/import-standard/SKILL.md b/.claude/skills/import-standard/SKILL.md index a09f7857..8de551fa 100644 --- a/.claude/skills/import-standard/SKILL.md +++ b/.claude/skills/import-standard/SKILL.md @@ -341,7 +341,7 @@ output to stderr: stdout carries the JSON lines. (and `model`); then `cli prove KEY` (its controls, units, no leak). An agent or capability: `cli conform KEY --model [--unsandboxed]`. A value that needs a `host` requirement this machine lacks (a GPU) is - proven on a machine that has it: choose a run host from Settings and + proven on a machine that has it: choose a host from Settings and launch the short trial from the builder's Review step. Execution snapshots the current standard runtime and effective catalogue, including user additions, and sends that payload to the host. A `git archive` of the diff --git a/AGENTS.md b/AGENTS.md index be935542..9aeb60b9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -423,7 +423,7 @@ One line each; the code and the pages carry the rest. upstream's own code at a pin, its dependencies in its own environment, and any code of ours beyond glue is asked about first - Settings, its variables and their validation — `app/nullius/settings.py`; - run hosts, keys and the connection test — `app/nullius/hosts.py` + hosts, keys and the connection test — `app/nullius/hosts.py` - Removing a benchmark, agent or capability throughout the app, including generated artifacts and requested runtime data — `/remove-integration` (`.claude/skills/remove-integration/SKILL.md`) diff --git a/app/site/mkdocs.yml b/app/site/mkdocs.yml index e9762c73..82ac2df5 100644 --- a/app/site/mkdocs.yml +++ b/app/site/mkdocs.yml @@ -113,7 +113,7 @@ nav: - LLM judge provider: settings/llm-judge.md - Custom keys: settings/agent-keys.md - Model prices: settings/model-prices.md - - Run hosts: settings/run-hosts.md + - Hosts: settings/run-hosts.md - Data providers: settings/data-providers.md - Sandbox: settings/sandbox.md - Other: settings/other.md diff --git a/app/static/builder/command-builder.js b/app/static/builder/command-builder.js index e30501ac..1f242b0b 100644 --- a/app/static/builder/command-builder.js +++ b/app/static/builder/command-builder.js @@ -381,7 +381,7 @@ const web = agentRun && Object.values((b || {}).environments || {}).some(e => e.network); // an agent's public web proxy return '

Where does it run?

' + `
${machine('local', 'This machine', 'Nullius runs it here, in runs/' + rec.name + '.')}${H.map(h => machine(h.entry, h.label, 'Over ssh: the standard\'s code at this commit is sent there, uv put there if missing; its job comes back as it runs.')).join('')}
` - + (H.length ? (list.some(w => w !== 'local') ? button('Test connection', 'id="nb-test-host"') + ' ' : '') : `

Hosts are named in ${button('Settings → Run hosts', 'data-href="/settings#HOSTS"', 'nb-inlinebutton')}; this machine is the only choice until then.

`) + + (H.length ? (list.some(w => w !== 'local') ? button('Test connection', 'id="nb-test-host"') + ' ' : '') : `

Hosts are named in ${button('Settings → Hosts', 'data-href="/settings#HOSTS"', 'nb-inlinebutton')}; this machine is the only choice until then.

`) + '

How it runs there

' + `
${how('local', 'Local processes', 'Its commands run as you, not sandboxed.', '')}` + how('container', 'Container', web ? 'Sandboxed: each unit in a container whose only ways out are its relay and a public web proxy.' @@ -724,7 +724,7 @@ const H=schema.hosts||[], rec2=r(), on=v=>rec2.where===v; html='

Where does it run?

' +`
${[['local','This machine','Nullius runs the script here, in runs/'+esc(rec2.name)+'.'],...H.map(h=>[h.entry,h.label,own?'Over ssh. uv and a snapshot of this runner are put there if missing; results and proofs come back as it runs.':'Over ssh. The tasks are sent there, and a repository’s Harbor as the wheels built here; uv runs the Harbor the recipe pins; the job comes back as it runs.'])].map(([v,t,sub])=>machineTile('where',v,t,sub,on(v))).join('')}
` - +(H.length?button('Test connection','id="nb-test-host"'+(rec2.where==='local'?' disabled':''))+' ':note('No host yet','Hosts are named in Settings → Run hosts; this machine is the only choice until then.')); + +(H.length?button('Test connection','id="nb-test-host"'+(rec2.where==='local'?' disabled':''))+' ':note('No host yet','Hosts are named in Settings → Hosts; this machine is the only choice until then.')); } if(step===REVIEW){ // the standard's review names Where itself (recipe.py): its machines and its backend diff --git a/app/static/catalogue/catalogue.css b/app/static/catalogue/catalogue.css index 3eb80aa7..1fb1e407 100644 --- a/app/static/catalogue/catalogue.css +++ b/app/static/catalogue/catalogue.css @@ -130,7 +130,7 @@ @media(max-width:640px){.setup-wrap.import-setup{margin:0}.import-setup h1{font-size:29px}.import-setup .setup-card{padding:22px 18px}.import-setup .drop{padding:26px 17px}.import-setup .field-label{font-size:12px}.import-setup .path-row input{font-size:16px}} @media(pointer:coarse){.import-setup .add-btn,.import-setup .row-x{min-width:44px;min-height:44px}} -/* Settings: what testing a run host said. */ +/* Settings: what testing a host said. */ .settings-page .settings-test { font-size: 12px; color: var(--text-dim); } .settings-page .settings-test:empty { display: none; } .settings-page .settings-test.ok { color: var(--ok); } diff --git a/app/static/settings/constraints.js b/app/static/settings/constraints.js index ddfcfe34..eb6946ac 100644 --- a/app/static/settings/constraints.js +++ b/app/static/settings/constraints.js @@ -1,4 +1,4 @@ -// Constraints, in each machine's Constraints panel of the Run hosts list. Each edit rewrites the hidden JSON, which +// Constraints, in each machine's Constraints panel of the Hosts list. Each edit rewrites the hidden JSON, which // autosave saves. × empties one field, Remove all a machine's; an empty field is no constraint. Memory is kept in MB // and shown in MB or GB. Where the capacity is known, a slider moves with CPUs and Memory: continuous from one step // to a tick at the capacity, then one jump to No limit (the field empty) at the far end. A value above the capacity diff --git a/app/static/settings/hosts.js b/app/static/settings/hosts.js index 416e783b..a4cfc55d 100644 --- a/app/static/settings/hosts.js +++ b/app/static/settings/hosts.js @@ -1,4 +1,4 @@ -// Run hosts: a table, a row per machine, this machine first. A row's actions (Info, Connection, Constraints, Delete) open a panel +// Hosts: a table, a row per machine, this machine first. A row's actions (Info, Connection, Constraints, Delete) open a panel // in a row below it, one at a time, with the shared sliding disclosure. Test asks the machine and redraws its Info; Connection and // Delete go through the settings save with the form token, then the list is drawn again from the answer. (() => { diff --git a/app/static/settings/settings.css b/app/static/settings/settings.css index b101a29e..ee07cdfb 100644 --- a/app/static/settings/settings.css +++ b/app/static/settings/settings.css @@ -92,7 +92,7 @@ .st-key-new-fields { grid-template-columns: minmax(0, 1fr); } } -/* run hosts: a row each - its name tests it, the result says what answered */ +/* hosts: a row each - its name tests it, the result says what answered */ .st-hosts { padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); } .host-table { width: 100%; border-collapse: collapse; font-size: 14px; } .host-table th, .host-table td { padding: 6px 4px; text-align: left; vertical-align: middle; font-weight: 400; } @@ -299,6 +299,9 @@ .st-provider-choice { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: 500 14px/1.5 var(--sans); text-align: left; cursor: pointer; } .st-provider-choice:hover { background: var(--nav-hover); border-color: var(--text-faint); } .st-provider-choice .st-logo { width: 28px; height: 28px; } +/* A custom provider's logo: the first two letters of its name, on the workspace badge. */ +.ws-avatar.st-logo { width: 20px; height: 20px; font-size: .5rem; border-radius: 5px; color: var(--accent); letter-spacing: 0; } +.st-provider-choice .ws-avatar.st-logo { width: 28px; height: 28px; font-size: .64rem; border-radius: 7px; } .st-provider-summary { display: flex; align-items: center; gap: 14px; min-width: 0; } .st-provider-summary > div { flex: 1; min-width: 0; } .st-provider-summary h3 { overflow-wrap: anywhere; } diff --git a/app/templates/base.html b/app/templates/base.html index 3f0a79ae..08c97a7f 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -44,8 +44,15 @@ - - + + + + + + + + + diff --git a/app/templates/settings/settings.html b/app/templates/settings/settings.html index 95f68edb..d321c70f 100644 --- a/app/templates/settings/settings.html +++ b/app/templates/settings/settings.html @@ -3,7 +3,7 @@ {% block crumb %}/ settings{% endblock %} {% block head %}{% endblock %} {% block body %} -{#- A section per thing a run needs - the model providers, the judge, the run hosts - and the file they +{#- A section per thing a run needs - the model providers, the judge, the hosts - and the file they are kept in, one at a time from the menu beside them; the strip above says what a run can use today. The menu's entries are links to the sections, so without a script every section shows. -#} {% set by = {} %}{% set held = [] %} @@ -53,7 +53,7 @@

Settings

{% endfor %} Custom{{ ': set' if ns.custom else ': not set' }} {% for jj, name in [(judges[0], 'System One'), (judges[1], 'LLM judge')] %} {{ name }}{{ ': set' if jj else ': not set' }}{% endfor %} - {% for item in chosen %} {{ item.split('=', 1)[0] if '=' in item.split('@', 1)[0] else item.split(':/')[0].split(':~')[0] }}{% else %} no run host{% endfor %} + {% for item in chosen %} {{ item.split('=', 1)[0] if '=' in item.split('@', 1)[0] else item.split(':/')[0].split(':~')[0] }}{% else %} no host{% endfor %}
{% if not writable %} @@ -78,19 +78,19 @@

Settings

{{ section_link('providers', 'Model providers', 'capability', 'openrouter openai anthropic openai-compatible local endpoint ollama vllm api key model_api_url') }} {% set access_search = namespace(words='agent keys agent_keys cursor copilot dataset credentials token licence benchmark access') %} {% for b in benchmark_access %}{% set access_search.words = access_search.words ~ ' ' ~ b.title %}{% for s in b.needs %}{% set access_search.words = access_search.words ~ ' ' ~ s.name ~ ' ' ~ s.summary %}{% endfor %}{% endfor %} - {{ section_link('data-providers', 'Data providers', 'ws', 'hugging face huggingface hf_token docker hub login registry token dataset pull limit') }} - {{ section_link('custom-keys', 'Custom keys', 'agent', access_search.words) }} - {{ section_link('judge', 'Judges', 'compare', 'typesafe system one llm model judgement') }} + {{ section_link('data-providers', 'Data providers', 'cloud-down', 'hugging face huggingface hf_token docker hub login registry token dataset pull limit') }} + {{ section_link('custom-keys', 'Custom keys', 'key', access_search.words) }} + {{ section_link('judge', 'Judges', 'scale', 'typesafe system one llm model judgement') }} {{ section_link('prices', 'Model prices', 'dollar', 'cost price estimate usd tokens list update') }}
Execution
- {{ section_link('hosts', 'Run hosts', 'runs', 'ssh remote machines server hosts') }} + {{ section_link('hosts', 'Hosts', 'server', 'ssh remote machines server hosts') }} {{ section_link('sandbox', 'Sandbox', 'kit', 'docker container') }}
Application
- {{ section_link('storage', 'Local data', 'ws', 'settings.json config catalogue workspaces runs cache licences storage paths file') }} + {{ section_link('storage', 'Local data', 'disk', 'settings.json config catalogue workspaces runs cache licences storage paths file') }}
@@ -106,7 +106,7 @@

Settings

Manage the providers available for runs and judges.

- {% macro provider_logo(key) %}{% if key == 'typesafe' %}{% elif key.startswith('custom') %}{% else %}{% endif %}{% endmacro %} + {% macro provider_logo(key, title='Custom') %}{% if key == 'typesafe' %}{% elif key.startswith('custom') %}{% else %}{% endif %}{% endmacro %}