fix(webui): cut help text to the facts a label cannot carry
Drops every page subtitle and the hints that restated their label; the
rest become a few words ('Empty: truncate.', '0 = no limit.'). Empty states
and notes shrink the same way.
This commit is contained in:
1 parent
cc0ecab820
commit
f9974c75ba
21 files changed
+86
-111
No files matched your search
@@ -77,18 +77,17 @@ function addProfile() {
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">The containers agents run in.</p>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
|
||||
|
||||
<template v-if="runtime">
|
||||
<SettingRow label="Image" for="cr-image" hint="The agent image tasks run in by default.">
|
||||
<SettingRow label="Image" for="cr-image">
|
||||
<Input id="cr-image" v-model="runtime.Image" class="font-mono" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Pull policy" hint="If missing pulls only when the image is not present locally.">
|
||||
<SettingRow label="Pull policy">
|
||||
<SegmentedControl v-model="pullPolicy" label="Pull policy" :options="pullPolicies" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Max concurrency" hint="Tasks and containers at once. Tasks in one repository still run one at a time. 0 means no limit.">
|
||||
<SettingRow label="Max concurrency" hint="0 = no limit.">
|
||||
<NumberField v-model="runtime.MaxConcurrency" :min="0" class="w-32">
|
||||
<NumberFieldContent>
|
||||
<NumberFieldDecrement />
|
||||
@@ -97,18 +96,17 @@ function addProfile() {
|
||||
</NumberFieldContent>
|
||||
</NumberField>
|
||||
</SettingRow>
|
||||
<SettingRow label="Max uptime" for="cr-uptime" hint="A container is recycled after running this long.">
|
||||
<SettingRow label="Max uptime" for="cr-uptime">
|
||||
<DurationInput id="cr-uptime" v-model="runtime.MaxUptime" :units="['m', 'h']" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Volume retention" for="cr-ttl" hint="Per-repository storage and the Git object cache are cleaned up after this long.">
|
||||
<SettingRow label="Volume retention" for="cr-ttl">
|
||||
<DurationInput id="cr-ttl" v-model="runtime.VolumeTTL" :units="['h']" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Network" for="cr-network" hint="Docker network agents join. Empty uses the daemon's own network, then the default bridge.">
|
||||
<SettingRow label="Network" for="cr-network" hint="Empty: auto-detect.">
|
||||
<Input id="cr-network" v-model="runtime.Network" class="max-w-sm font-mono" />
|
||||
</SettingRow>
|
||||
|
||||
<h2 class="mt-10 mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">Profiles</h2>
|
||||
<p class="mb-3 text-xs text-fg-subtle">Named environments a workflow picks with <span class="font-mono">profile:</span>.</p>
|
||||
<section
|
||||
v-for="(profile, name) in runtime.Profiles ?? {}"
|
||||
:key="name"
|
||||
@@ -119,10 +117,10 @@ function addProfile() {
|
||||
<h3 class="flex-1 font-mono text-sm font-medium">{{ name }}</h3>
|
||||
<Button variant="ghost" size="icon" :aria-label="`Remove profile ${name}`" @click="delete runtime.Profiles![name]"><Trash2 /></Button>
|
||||
</header>
|
||||
<SettingRow label="Image" :for="`prof-${name}-image`" hint="Empty uses the default image.">
|
||||
<SettingRow label="Image" :for="`prof-${name}-image`" hint="Empty: default image.">
|
||||
<Input :id="`prof-${name}-image`" v-model="profile.Image" class="font-mono" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Tools" hint="MCP servers, repository scripts and skills allowed by name. Empty allows all.">
|
||||
<SettingRow label="Tools" hint="Empty allows all.">
|
||||
<TagsInput
|
||||
:model-value="profile.Tools ?? []"
|
||||
class="font-mono"
|
||||
|
||||
@@ -104,7 +104,6 @@ async function restoreBefore(entry: AuditEntry): Promise<void> {
|
||||
<template>
|
||||
<div>
|
||||
<PageHeader title="History" />
|
||||
<p class="-mt-4 mb-6 text-sm text-fg-muted">Every settings change, newest first.</p>
|
||||
|
||||
<div class="mb-4 flex flex-wrap gap-2">
|
||||
<Select v-model="section">
|
||||
@@ -189,7 +188,7 @@ async function restoreBefore(entry: AuditEntry): Promise<void> {
|
||||
</tr>
|
||||
<tr v-if="!rows.length">
|
||||
<td colspan="7" class="px-4 py-8 text-center text-sm text-fg-muted">
|
||||
{{ entries.length ? "No changes match these filters." : "No changes recorded yet." }}
|
||||
{{ entries.length ? "No matching changes." : "No changes recorded yet." }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -106,7 +106,7 @@ const args = computed({
|
||||
Parallel tool calls
|
||||
</label>
|
||||
<span v-if="server.headers_configured" class="text-xs text-fg-subtle">
|
||||
Request headers come from config.toml, matched by this name
|
||||
Headers set in config.toml
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -67,7 +67,6 @@ function rename(name: string | number) {
|
||||
<PageHeader title="Personas">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">The system prompts chat can run under. One is the default.</p>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
|
||||
{{ catalogError || error }}
|
||||
@@ -117,10 +116,10 @@ function rename(name: string | number) {
|
||||
><Trash2 data-icon="inline-start" /> Delete</Button
|
||||
>
|
||||
</header>
|
||||
<SettingRow label="Name" for="persona-name" hint="How chat refers to it.">
|
||||
<SettingRow label="Name" for="persona-name">
|
||||
<Input id="persona-name" :model-value="current.name" class="max-w-sm font-mono" @update:model-value="rename" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Default persona" hint="Used when a chat does not pick one. Exactly one is the default.">
|
||||
<SettingRow label="Default persona">
|
||||
<Switch
|
||||
:model-value="isDefault"
|
||||
:disabled="isDefault"
|
||||
|
||||
@@ -33,21 +33,20 @@ const error = computed(() => store.stateFor(KIND).error);
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">Directories Archie loads extensions from at startup.</p>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
|
||||
|
||||
<template v-if="dirs">
|
||||
<SettingRow label="Plugin directory" for="pl-plugins" hint="Daemon plugins. Empty loads none.">
|
||||
<SettingRow label="Plugin directory" for="pl-plugins">
|
||||
<Input id="pl-plugins" v-model="dirs.plugin_dir" class="max-w-md font-mono" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Module directory" for="pl-modules" hint="Workflow modules. Empty loads none.">
|
||||
<SettingRow label="Module directory" for="pl-modules">
|
||||
<Input id="pl-modules" v-model="dirs.module_dir" class="max-w-md font-mono" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Secret engine directory" for="pl-secrets" hint="Secret engine plugins. Empty uses the built-in engines only.">
|
||||
<SettingRow label="Secret engine directory" for="pl-secrets" hint="Empty: built-in engines only.">
|
||||
<Input id="pl-secrets" v-model="dirs.secret_engine_dir" class="max-w-md font-mono" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Skills directory" for="pl-skills" hint="Shared SKILL.md skills. Empty uses the work directory.">
|
||||
<SettingRow label="Skills directory" for="pl-skills" hint="Empty: work directory.">
|
||||
<Input id="pl-skills" v-model="dirs.skills_dir" class="max-w-md font-mono" />
|
||||
</SettingRow>
|
||||
</template>
|
||||
|
||||
@@ -25,7 +25,7 @@ const pending = computed(() =>
|
||||
>
|
||||
<p class="font-medium text-warn">Restart pending</p>
|
||||
<p class="mt-0.5 text-fg-muted">
|
||||
{{ pending.join(", ") }} saved; running processes pick them up when archied restarts.
|
||||
{{ pending.join(", ") }}
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -77,7 +77,6 @@ const whenKind = (job: Job) => job.schedule.kind || "interval";
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<Button v-if="jobs?.length" size="sm" @click="add"><Plus data-icon="inline-start" /> Add schedule</Button>
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">Work Archie starts on its own, on a timetable.</p>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
|
||||
{{ catalogError || error }}
|
||||
@@ -89,7 +88,6 @@ const whenKind = (job: Job) => job.schedule.kind || "interval";
|
||||
<CalendarClock class="size-5" aria-hidden="true" />
|
||||
</span>
|
||||
<p class="font-medium">No schedules yet</p>
|
||||
<p class="mt-1 mb-4 text-sm text-fg-muted">A schedule starts a task on an interval, a cron line, or once.</p>
|
||||
<Button size="sm" @click="add"><Plus data-icon="inline-start" /> Add schedule</Button>
|
||||
</div>
|
||||
|
||||
@@ -104,16 +102,16 @@ const whenKind = (job: Job) => job.schedule.kind || "interval";
|
||||
<span v-if="job.next_run" class="text-xs text-fg-subtle">Next run {{ new Date(job.next_run).toLocaleString() }}</span>
|
||||
<Button variant="ghost" size="icon" aria-label="Delete schedule" @click="jobs.splice(i, 1)"><Trash2 /></Button>
|
||||
</header>
|
||||
<SettingRow label="ID" :for="`job-${i}-id`" hint="Unique. Runs are recorded against it.">
|
||||
<SettingRow label="ID" :for="`job-${i}-id`">
|
||||
<Input :id="`job-${i}-id`" v-model="job.id" class="max-w-sm font-mono" :aria-invalid="!job.id.trim() || undefined" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Task title" :for="`job-${i}-title`" hint="The title of each task it starts. Empty uses the ID.">
|
||||
<SettingRow label="Task title" :for="`job-${i}-title`" hint="Empty: the ID.">
|
||||
<Input :id="`job-${i}-title`" v-model="job.detail" class="max-w-md" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Instructions" :for="`job-${i}-text`" hint="What the task is asked to do.">
|
||||
<SettingRow label="Instructions" :for="`job-${i}-text`">
|
||||
<Textarea :id="`job-${i}-text`" v-model="job.payload.text" :rows="3" />
|
||||
</SettingRow>
|
||||
<SettingRow label="When" hint="An interval, a five-field cron line, or a single time.">
|
||||
<SettingRow label="When">
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<SegmentedControl
|
||||
:model-value="whenKind(job)"
|
||||
@@ -139,7 +137,7 @@ const whenKind = (job: Job) => job.schedule.kind || "interval";
|
||||
/>
|
||||
</div>
|
||||
</SettingRow>
|
||||
<SettingRow label="Overlap" hint="Sequential waits for the previous run to finish.">
|
||||
<SettingRow label="Overlap">
|
||||
<SegmentedControl :model-value="job.pool ?? ''" label="Overlap" :options="pools" @update:model-value="(p: string) => (job.pool = p)" />
|
||||
</SettingRow>
|
||||
</section>
|
||||
|
||||
@@ -67,9 +67,6 @@ const labelMissing = computed(
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">
|
||||
How Archie finds issues to work on and marks their state on the forge.
|
||||
</p>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
|
||||
{{ catalogError || error }}
|
||||
@@ -77,14 +74,13 @@ const labelMissing = computed(
|
||||
|
||||
<template v-if="policy">
|
||||
<h2 class="mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">Dispatch</h2>
|
||||
<SettingRow label="Trigger" hint="Which open issues Archie picks up.">
|
||||
<SettingRow label="Trigger">
|
||||
<SegmentedControl v-model="policy.dispatch.trigger" label="Trigger" :options="triggers" />
|
||||
</SettingRow>
|
||||
<SettingRow
|
||||
v-if="policy.dispatch.trigger !== 'assignee'"
|
||||
label="Label"
|
||||
for="sp-label"
|
||||
hint="Issues carrying this label are picked up."
|
||||
>
|
||||
<Input
|
||||
id="sp-label"
|
||||
@@ -97,12 +93,12 @@ const labelMissing = computed(
|
||||
Required: an empty label matches every open issue.
|
||||
</p>
|
||||
</SettingRow>
|
||||
<SettingRow label="Ack reaction" for="sp-ack" hint="Reaction posted when an issue is picked up. Empty posts none.">
|
||||
<SettingRow label="Ack reaction" for="sp-ack" hint="Empty: none.">
|
||||
<Input id="sp-ack" v-model="policy.dispatch.ack_reaction" class="max-w-xs font-mono" />
|
||||
</SettingRow>
|
||||
|
||||
<h2 class="mt-10 mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">State labels</h2>
|
||||
<SettingRow label="Forge labels" hint="The label Archie sets on an issue in each state.">
|
||||
<SettingRow label="Forge labels">
|
||||
<table class="w-full max-w-lg text-sm">
|
||||
<tbody>
|
||||
<tr v-for="state in states" :key="state.key" class="border-b border-border last:border-0">
|
||||
@@ -126,7 +122,7 @@ const labelMissing = computed(
|
||||
</SettingRow>
|
||||
|
||||
<h2 class="mt-10 mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">Retries and polling</h2>
|
||||
<SettingRow label="Max retries" hint="Times a parked task is retried before it is marked dead.">
|
||||
<SettingRow label="Max retries" hint="Then marked dead.">
|
||||
<NumberField v-model="policy.max_retries" :min="0" class="w-32">
|
||||
<NumberFieldContent>
|
||||
<NumberFieldDecrement />
|
||||
@@ -135,7 +131,7 @@ const labelMissing = computed(
|
||||
</NumberFieldContent>
|
||||
</NumberField>
|
||||
</SettingRow>
|
||||
<SettingRow label="Poll interval" for="sp-poll" hint="How often the forge is checked for new issues.">
|
||||
<SettingRow label="Poll interval" for="sp-poll">
|
||||
<DurationInput id="sp-poll" v-model="policy.poll_interval" :units="['s', 'm', 'h']" />
|
||||
<p v-if="intervalInvalid" class="mt-1.5 text-xs text-danger">Must be longer than zero.</p>
|
||||
</SettingRow>
|
||||
|
||||
@@ -75,7 +75,7 @@ async function save() {
|
||||
<SheetTitle>Review {{ count }} {{ count === 1 ? "change" : "changes" }}</SheetTitle>
|
||||
<SheetDescription>
|
||||
{{ sections.length }} {{ sections.length === 1 ? "section" : "sections" }},
|
||||
each saved as its own version, in this order. A failure stops the rest.
|
||||
saved in order; a failure stops the rest.
|
||||
</SheetDescription>
|
||||
</SheetHeader>
|
||||
<div class="flex-1 space-y-3 overflow-y-auto px-4 pb-4">
|
||||
@@ -83,7 +83,7 @@ async function save() {
|
||||
v-if="needsRestart"
|
||||
class="rounded-md border border-warn/40 bg-warn-soft px-3 py-2 text-sm text-warn"
|
||||
>
|
||||
Some of these apply after archied restarts.
|
||||
Some changes apply after restart.
|
||||
</p>
|
||||
<section
|
||||
v-for="section in sections"
|
||||
|
||||
@@ -65,7 +65,6 @@ const lifecycle = {
|
||||
<template>
|
||||
<div>
|
||||
<PageHeader title="Identities" />
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">The actors Archie acts as and on behalf of. Changes apply at once.</p>
|
||||
|
||||
<p v-if="store.error" role="alert" class="mb-4 text-sm text-danger">{{ store.error }}</p>
|
||||
|
||||
@@ -129,7 +128,7 @@ const lifecycle = {
|
||||
<AlertDialogContent>
|
||||
<AlertDialogHeader>
|
||||
<AlertDialogTitle>Retire {{ retiring?.display_name }}?</AlertDialogTitle>
|
||||
<AlertDialogDescription>A retired identity cannot act again, and this cannot be undone.</AlertDialogDescription>
|
||||
<AlertDialogDescription>This cannot be undone.</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
<AlertDialogFooter>
|
||||
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
||||
|
||||
@@ -65,7 +65,6 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">Which model plays each role, and the providers that serve them.</p>
|
||||
|
||||
<p v-for="e in [catalogError, ...errors].filter(Boolean)" :key="String(e)" class="mb-4 text-sm text-danger" role="alert">
|
||||
{{ e }}
|
||||
@@ -112,16 +111,15 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
/>
|
||||
<Button variant="ghost" size="icon" class="ml-auto" :aria-label="`Remove provider ${name}`" @click="delete providers[name]"><Trash2 /></Button>
|
||||
</header>
|
||||
<SettingRow label="Class" :for="`prov-${name}-class`" hint="The provider API it speaks (openai, anthropic, gemini, ollama, ...).">
|
||||
<SettingRow label="Class" :for="`prov-${name}-class`">
|
||||
<Input :id="`prov-${name}-class`" v-model="provider.class" class="max-w-56 font-mono" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Base URL" :for="`prov-${name}-url`" hint="Empty uses the provider's own endpoint.">
|
||||
<SettingRow label="Base URL" :for="`prov-${name}-url`">
|
||||
<Input :id="`prov-${name}-url`" v-model="provider.base_url" class="max-w-md font-mono" />
|
||||
</SettingRow>
|
||||
<SettingRow label="API key" hint="Where Archie reads the key from.">
|
||||
<SettingRow label="API key">
|
||||
<p v-if="provider.api_key_env && !provider.api_key_ref.key" class="mb-2 text-xs text-fg-muted">
|
||||
Passed to agents as <span class="font-mono text-foreground">{{ provider.api_key_env }}</span>; no secret
|
||||
reference is stored for it.
|
||||
Key passed as <span class="font-mono text-foreground">{{ provider.api_key_env }}</span>.
|
||||
</p>
|
||||
<SecretRefField v-model="provider.api_key_ref" :id-prefix="`prov-${name}-key`" />
|
||||
</SettingRow>
|
||||
|
||||
@@ -79,7 +79,6 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">Repositories Archie works in, and the checks each one must pass.</p>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
|
||||
|
||||
@@ -94,10 +93,10 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
|
||||
<h2 class="min-w-0 flex-1 truncate font-mono text-[15px] font-medium">{{ repo.owner }}/{{ repo.name }}</h2>
|
||||
<Button variant="ghost" size="icon" :aria-label="`Remove ${repo.owner}/${repo.name}`" @click="repos.splice(i, 1)"><Trash2 /></Button>
|
||||
</header>
|
||||
<SettingRow label="Base branch" :for="`repo-${i}-base`" hint="The branch pull requests target.">
|
||||
<SettingRow label="Base branch" :for="`repo-${i}-base`">
|
||||
<Input :id="`repo-${i}-base`" v-model="repo.base" class="max-w-56 font-mono" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Ecosystem" hint="Picks the default preflight check and test file pattern.">
|
||||
<SettingRow label="Ecosystem">
|
||||
<Select v-model="repo.ecosystem">
|
||||
<SelectTrigger class="w-40 font-mono" :aria-label="`Ecosystem for ${repo.name}`"><SelectValue /></SelectTrigger>
|
||||
<SelectContent>
|
||||
@@ -105,16 +104,16 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</SettingRow>
|
||||
<SettingRow label="Quality gate" hint="Run in order after each change. The last command is the test runner.">
|
||||
<CommandListEditor v-model="repo.gate" label="Gate" empty-text="No gate: changes are not checked." />
|
||||
<SettingRow label="Quality gate" hint="Last command runs the tests.">
|
||||
<CommandListEditor v-model="repo.gate" label="Gate" empty-text="No gate." />
|
||||
</SettingRow>
|
||||
<SettingRow label="Preflight" hint="Checks run before work starts. Empty uses the ecosystem's default.">
|
||||
<CommandListEditor v-model="repo.preflight" label="Preflight" empty-text="Using the ecosystem default." />
|
||||
<SettingRow label="Preflight" hint="Empty: ecosystem default.">
|
||||
<CommandListEditor v-model="repo.preflight" label="Preflight" empty-text="Ecosystem default." />
|
||||
</SettingRow>
|
||||
<SettingRow label="Test files" :for="`repo-${i}-glob`" hint="Pattern for test files. Empty uses the ecosystem's default.">
|
||||
<SettingRow label="Test files" :for="`repo-${i}-glob`" hint="Empty: ecosystem default.">
|
||||
<Input :id="`repo-${i}-glob`" v-model="repo.test_glob" class="max-w-56 font-mono" placeholder="*_test.go" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Protected paths" hint="Path endings agents must never write, such as generated files.">
|
||||
<SettingRow label="Protected paths" hint="Suffixes agents never write.">
|
||||
<TagsInput
|
||||
:model-value="protectOf(repo)"
|
||||
class="font-mono"
|
||||
@@ -128,7 +127,7 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
|
||||
<TagsInputInput placeholder="_templ.go" />
|
||||
</TagsInput>
|
||||
</SettingRow>
|
||||
<SettingRow label="Max retries" hint="Times a parked task is retried before it is marked dead. 0 uses the scheduling policy's value.">
|
||||
<SettingRow label="Max retries" hint="0 = scheduling policy value.">
|
||||
<NumberField v-model="repo.max_retries" :min="0" class="w-32">
|
||||
<NumberFieldContent>
|
||||
<NumberFieldDecrement />
|
||||
@@ -137,15 +136,15 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
|
||||
</NumberFieldContent>
|
||||
</NumberField>
|
||||
</SettingRow>
|
||||
<SettingRow label="Adversarial review" hint="A fresh reviewer checks each change after the gate passes and before the PR opens.">
|
||||
<SettingRow label="Adversarial review">
|
||||
<Switch v-model="repo.review_enabled" :aria-label="`Adversarial review for ${repo.name}`" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Persistent storage" hint="A Docker volume kept across tasks, for expensive build caches.">
|
||||
<SettingRow label="Persistent storage" hint="Kept across tasks.">
|
||||
<Switch v-model="repo.persistent_storage" :aria-label="`Persistent storage for ${repo.name}`" />
|
||||
</SettingRow>
|
||||
<SettingRow
|
||||
label="Concurrent tasks"
|
||||
hint="On: several tasks run in this repository at once. Only safe when their worktrees cannot collide."
|
||||
hint="Only if worktrees cannot collide."
|
||||
:tone="repo.allow_concurrent ? 'danger' : 'default'"
|
||||
>
|
||||
<Switch v-model="repo.allow_concurrent" :aria-label="`Concurrent tasks for ${repo.name}`" />
|
||||
|
||||
@@ -51,20 +51,19 @@ const taskRuntime = seconds("max_task_runtime_seconds");
|
||||
<PageHeader title="Task execution">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">Limits every task runs under. Zero turns a limit off.</p>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
|
||||
{{ catalogError || error }}
|
||||
</p>
|
||||
|
||||
<template v-if="limits">
|
||||
<SettingRow label="Task time limit" for="te-task" hint="A task still running after this long is parked.">
|
||||
<SettingRow label="Task time limit" for="te-task" hint="Parked after this. 0 disables.">
|
||||
<DurationInput id="te-task" v-model="taskRuntime" :units="['m', 'h']" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Agent call time limit" for="te-call" hint="The longest one agent call inside a stage may run.">
|
||||
<SettingRow label="Agent call time limit" for="te-call" hint="0 disables.">
|
||||
<DurationInput id="te-call" v-model="callRuntime" :units="['s', 'm', 'h']" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Model tool steps" hint="Model and tool round-trips one agent call may take.">
|
||||
<SettingRow label="Model tool steps" hint="Per agent call. 0 disables.">
|
||||
<NumberField v-model="limits.max_model_tool_steps" :min="0" class="w-32">
|
||||
<NumberFieldContent>
|
||||
<NumberFieldDecrement />
|
||||
@@ -73,7 +72,7 @@ const taskRuntime = seconds("max_task_runtime_seconds");
|
||||
</NumberFieldContent>
|
||||
</NumberField>
|
||||
</SettingRow>
|
||||
<SettingRow label="Gate failures in a row" hint="Consecutive failed quality gates before the task is parked.">
|
||||
<SettingRow label="Gate failures in a row" hint="In a row, then parked.">
|
||||
<NumberField v-model="limits.max_consecutive_gate_failures" :min="0" class="w-32">
|
||||
<NumberFieldContent>
|
||||
<NumberFieldDecrement />
|
||||
|
||||
@@ -65,9 +65,6 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
<p class="-mt-4 mb-8 text-sm text-fg-muted">
|
||||
The tools agents can call, and the MCP servers that add more.
|
||||
</p>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
|
||||
{{ catalogError || error }}
|
||||
@@ -83,7 +80,7 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
@remove="tools.mcp_servers.splice(i, 1)"
|
||||
/>
|
||||
<p v-if="!tools.mcp_servers.length" class="text-sm text-fg-muted">
|
||||
No MCP servers. Add one by the way it is reached.
|
||||
No MCP servers.
|
||||
</p>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<Button variant="outline" size="sm" @click="addServer('stdio')">
|
||||
@@ -99,10 +96,10 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
</div>
|
||||
|
||||
<h2 :class="[eyebrow, 'mt-10']">MiniMax</h2>
|
||||
<SettingRow label="Enabled" hint="Offers the MiniMax tools to agents.">
|
||||
<SettingRow label="Enabled">
|
||||
<Switch v-model="tools.minimax.enabled" aria-label="MiniMax enabled" />
|
||||
</SettingRow>
|
||||
<SettingRow label="API key" hint="Where Archie reads the key from.">
|
||||
<SettingRow label="API key">
|
||||
<SecretRefField
|
||||
v-model="tools.minimax.api_key_ref"
|
||||
id-prefix="minimax-key"
|
||||
@@ -111,18 +108,18 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
</SettingRow>
|
||||
|
||||
<h2 :class="[eyebrow, 'mt-10']">Web fetch</h2>
|
||||
<SettingRow label="Enabled" hint="Lets agents fetch a URL.">
|
||||
<SettingRow label="Enabled">
|
||||
<Switch v-model="webFetchOn" aria-label="Web fetch enabled" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Max download" for="wf-bytes" hint="How much of a response body is read.">
|
||||
<SettingRow label="Max download" for="wf-bytes">
|
||||
<ByteSizeInput id="wf-bytes" v-model="tools.web_fetch.max_bytes" :disabled="!webFetchOn" />
|
||||
</SettingRow>
|
||||
<SettingRow label="Timeout" for="wf-timeout" hint="One fetch, redirects included.">
|
||||
<SettingRow label="Timeout" for="wf-timeout">
|
||||
<DurationInput id="wf-timeout" v-model="tools.web_fetch.timeout" :units="['s', 'm']" :disabled="!webFetchOn" />
|
||||
</SettingRow>
|
||||
<SettingRow
|
||||
label="Allow private networks"
|
||||
hint="On: agents can fetch loopback and LAN addresses, including this daemon's own dashboard and the Docker API."
|
||||
hint="Reaches this host's dashboard and Docker API."
|
||||
:tone="tools.web_fetch.allow_private_networks ? 'danger' : 'default'"
|
||||
>
|
||||
<Switch
|
||||
@@ -133,7 +130,7 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
</SettingRow>
|
||||
|
||||
<h2 :class="[eyebrow, 'mt-10']">Tool output</h2>
|
||||
<SettingRow label="Max result length" for="tp-chars" :hint="`About ${Math.round(tools.policy.max_result_chars / 4).toLocaleString()} tokens per tool call.`">
|
||||
<SettingRow label="Max result length" for="tp-chars" :hint="`≈ ${Math.round(tools.policy.max_result_chars / 4).toLocaleString()} tokens`">
|
||||
<InputGroup class="w-48">
|
||||
<InputGroupInput id="tp-chars" v-model.number="tools.policy.max_result_chars" type="number" min="0" class="font-mono" />
|
||||
<InputGroupAddon align="inline-end">
|
||||
@@ -141,7 +138,7 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
</InputGroupAddon>
|
||||
</InputGroup>
|
||||
</SettingRow>
|
||||
<SettingRow label="Spill directory" for="tp-spill" hint="Longer results are written here and the agent gets the path. Empty truncates instead.">
|
||||
<SettingRow label="Spill directory" for="tp-spill" hint="Empty: truncate.">
|
||||
<Input id="tp-spill" v-model="tools.policy.spill_dir" class="max-w-md font-mono" />
|
||||
</SettingRow>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user