Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Owner round 6: short model names, one logs button, plain Monitor sentence, Privacy notes, Tasks cleanup

Niko1221837f992bd94b
diff --git a/apps/host/src/app/TaskTree.tsx b/apps/host/src/app/TaskTree.tsx
index 33f78ec99..6d20b04ca 100644
--- a/apps/host/src/app/TaskTree.tsx
+++ b/apps/host/src/app/TaskTree.tsx
@@ -55,7 +55,7 @@ export function TaskTree({ collapsed }: {
leavingRef.current = task.id;
setLeaving(task.id);
setRemove(null);
- pushToast('success', 'Task deleted', `“${task.title}” has stopped. Restore it from Deleted tasks whenever you need it.`);
+ pushToast('success', 'Task removed');
if (location.param === task.id)
navigate('tasks');
animationTimer.current = setTimeout(() => { setTasks(ts => ts.filter(t => t.id !== task.id)); leavingRef.current = null; setLeaving(null); window.dispatchEvent(new Event('strata:tasks')); }, 240);
@@ -73,6 +73,6 @@ export function TaskTree({ collapsed }: {
<div className="ws__head"><button className="navgroup__label task-tree__heading" aria-expanded={open} onClick={() => { setOpen(!open); localStorage.setItem('strata.tasks-open', String(!open)); }}>{tr("Tasks")}<Icon name="chevron" size={12} className={`ws__chev ${open ? 'is-open' : ''}`}/></button><div className="ws__tools"><IconBtn name="plus" title={tr("Add a task")} onClick={() => setEditor(blankTask())}/></div></div>
{tr(open ? <div className="navsessions">{tr(tasks.map(t => <div className="ws__session row task-tree-row" data-leaving={leaving === t.id || undefined} key={t.id}><a className="navsession" href={href('tasks', t.id)} aria-current={location.route === 'tasks' && location.param === t.id ? 'page' : undefined} title={t.title}><span className="navsession__title">{t.title}</span>{tr(!t.enabled ? <Icon name="clock" size={12}/> : null)}</a><button className="st-btn st-btn--icon session-overflow" aria-label={tr("Edit task {0}", [t.title])} title={tr("Edit {0}", [t.title])} disabled={t.status === 'running'} onClick={() => setEditor({ ...t })}><Icon name="pencil" size={15}/></button><button className="st-btn st-btn--icon session-overflow" aria-label={tr("Delete task {0}", [t.title])} disabled={t.status === 'running'} title={tr(t.status === 'running' ? 'Stop this task before deleting' : `Delete ${t.title}`)} onClick={() => { setRemove(t); setError(''); }}><Icon name="trash" size={15}/></button></div>))}{tr(!tasks.length ? <p className="small muted ws__empty">{tr("No tasks yet")}</p> : null)}{tr(error && !remove ? <p className="xs inline-error">{tr("Couldn\u2019t load tasks.")}</p> : null)}</div> : null)}
{tr(editor ? <TaskEditor task={editor} onClose={() => setEditor(null)}/> : null)}
- <Dialog open={!!remove} compact title={tr("Delete this task?")} onClose={() => !busy && setRemove(null)} actions={<><Btn disabled={busy} onClick={() => setRemove(null)}>{tr("Keep task")}</Btn><Btn variant="danger" disabled={busy} onClick={() => void deleteTask()}>{tr(busy ? 'Deleting…' : 'Delete task')}</Btn></>}><div className="stack stack--sm"><p><strong>“{remove?.title}”</strong>{tr(" will stop running and be removed from your active tasks.")}</p><p className="small muted">{tr("Your instructions and last result are kept in Deleted tasks. You can restore the task there; its schedule will stay paused.")}</p></div>{tr(error ? <p className="inline-error" role="alert">{tr(error)}</p> : null)}</Dialog>
+ <Dialog open={!!remove} compact title={tr("Remove this task?")} onClose={() => !busy && setRemove(null)} actions={<><Btn disabled={busy} onClick={() => setRemove(null)}>{tr("Keep task")}</Btn><Btn variant="danger" disabled={busy} onClick={() => void deleteTask()}>{tr(busy ? 'Removing…' : 'Remove task')}</Btn></>}><div className="stack stack--sm"><p><strong>“{remove?.title}”</strong>{tr(" will stop running and be removed.")}</p></div>{tr(error ? <p className="inline-error" role="alert">{tr(error)}</p> : null)}</Dialog>
</section>;
}
diff --git a/apps/host/src/components/NativeOperations.tsx b/apps/host/src/components/NativeOperations.tsx
index f058becc4..3805f0096 100644
--- a/apps/host/src/components/NativeOperations.tsx
+++ b/apps/host/src/components/NativeOperations.tsx
@@ -99,7 +99,11 @@ export function NativeOperations() {
}
return <div className="stack stack--lg native-engine-settings">
<section className="st-card"><div className="section-toolbar"><h2 className="h3">{tr("Update component")}</h2>{tr(update === 'available' ? <Btn size="sm" variant="primary" disabled={!!active || (native?.instances.length ?? 0) > 0} onClick={() => setConfirm(true)}>{tr("Update available")}</Btn> : null)}</div><p className="small muted">{tr("Update the engine for this computer. Your models and settings are kept.")}</p>{tr(update === 'current' ? <p className="small muted">{tr("Up to date")}</p> : null)}{tr(update === 'available' && (native?.instances.length ?? 0) > 0 ? <p className="small muted">{tr("Open Models and unload the running native models first.")}</p> : null)}</section>
- <section className="st-card"><div className="section-toolbar"><h2 className="h3">{tr("Diagnostics")}</h2><Btn size="sm" onClick={() => setShowLogs(v => !v)}>{tr(showLogs ? 'Hide logs' : 'View engine logs')}</Btn></div><p className="small muted">{tr("Downloads, preparation and engine failures include their original messages here.")}</p>{tr(showLogs ? <pre className="native-log" aria-label={tr("Engine log")}>{logs.length ? logs.map(l => `${l.at} · ${l.line}`).join(String.fromCharCode(10)) : 'No engine messages yet.'}</pre> : null)}<div className="native-settings-actions"><Btn size="sm" icon="download" disabled={saving} onClick={() => void saveLogs()}>{tr(saving ? 'Working…' : 'Save logs')}</Btn></div>{tr(saved ? <p className="small" role="status">{tr("Saved to {0}", [saved])}</p> : null)}{tr(native?.jobs.filter(j => j.state === 'error').slice(-3).map(j => <ErrorNotice key={j.id} message={j.error ?? j.summary} detail={j.details}/>))}</section>
+ <section className="st-card"><div className="section-toolbar"><h2 className="h3">{tr("Diagnostics")}</h2><Btn size="sm" onClick={() => setShowLogs(true)}>{tr("View logs")}</Btn></div><p className="small muted">{tr("Downloads, preparation and engine failures include their original messages here.")}</p>{tr(native?.jobs.filter(j => j.state === 'error').slice(-3).map(j => <ErrorNotice key={j.id} message={j.error ?? j.summary} detail={j.details}/>))}</section>
+ <Dialog open={showLogs} wide title={tr("Engine logs")} onClose={() => setShowLogs(false)} actions={<><Btn icon="download" disabled={saving} onClick={() => void saveLogs()}>{tr(saving ? 'Working…' : 'Save logs')}</Btn><Btn variant="primary" onClick={() => setShowLogs(false)}>{tr("Close")}</Btn></>}>
+ <pre className="native-log" aria-label={tr("Engine log")}>{logs.length ? logs.map(l => `${l.at} · ${l.line}`).join(String.fromCharCode(10)) : tr('No engine messages yet.')}</pre>
+ {tr(saved ? <p className="small" role="status">{tr("Saved to {0}", [saved])}</p> : null)}
+ </Dialog>
{tr(active ? <NativeProgress job={active}/> : null)}{tr(error ? <ErrorNotice message={error}/> : null)}
<Dialog open={confirm} compact title={tr("Update engine?")} onClose={() => setConfirm(false)} actions={<><Btn onClick={() => setConfirm(false)}>{tr("Cancel")}</Btn><Btn variant="primary" disabled={!!active || (native?.instances.length ?? 0) > 0} onClick={() => void updateEngine()}>{tr("Update")}</Btn></>}><p>{tr("The native installer updates the installation. Model files and settings are kept. Unload native models before updating.")}</p></Dialog>
</div>;
diff --git a/apps/host/src/components/PrivacyNotes.tsx b/apps/host/src/components/PrivacyNotes.tsx
new file mode 100644
index 000000000..77f1dee50
--- /dev/null
+++ b/apps/host/src/components/PrivacyNotes.tsx
@@ -0,0 +1,18 @@
+import { tr } from '../lib/i18n';
+import { Icon, type IconName } from './ui';
+
+const NOTES: { icon: IconName; text: string; strong?: boolean }[] = [
+ { icon: 'shield', text: 'Strata sends no usage telemetry.', strong: true },
+ { icon: 'file', text: 'Conversations stay in browser storage.' },
+ { icon: 'link', text: 'When you choose an API model, that conversation and enabled skill instructions are sent to its provider.' },
+ { icon: 'activity', text: 'The UI request log keeps client, timing and token metadata in memory.' },
+ { icon: 'memory', text: 'Native API monitoring can retain request content in memory when enabled.' },
+ { icon: 'tool', text: 'Connected tools access the resources you configure.' },
+];
+
+/** What Strata collects and where things go: short lines across the box, nothing long to read through. */
+export function PrivacyNotes() {
+ return <ul className="privacy-notes" aria-label={tr("Collection and logs")}>
+ {NOTES.map(n => <li key={n.text} data-strong={n.strong || undefined}><Icon name={n.icon} size={15}/><span>{tr(n.text)}</span></li>)}
+ </ul>;
+}
diff --git a/apps/host/src/components/SettingsStorage.tsx b/apps/host/src/components/SettingsStorage.tsx
index a78520bf5..1f7778fc5 100644
--- a/apps/host/src/components/SettingsStorage.tsx
+++ b/apps/host/src/components/SettingsStorage.tsx
@@ -6,6 +6,7 @@ import { pickerGroups, pickerVersionState } from '../lib/model-picker';
import { sizeGb } from '../lib/format';
import { useNative } from '../lib/native';
import { NativeDeleteDialog } from './NativeDelete';
+import { nativeShortName } from '../lib/native-names';
export function SettingsStorage() {
const state = useStore(s => s);
const native = useNative();
@@ -98,7 +99,7 @@ export function SettingsStorage() {
]} onChange={id => { setError(''); setSelected(id); }}/>
</Field>
{tr(native?.installed?.models.length ? <Field label={tr("Downloaded models")} hint={tr("{0} on this computer. Choose a version to delete its files.", [sizeGb((native.installed.models).reduce((n, m) => n + (m.diskGb ?? 0), 0))])}>
- <div className="stack">{tr(native.installed.models.map(m => <div className="row" key={m.model}><span><strong>{tr(m.model_name || m.model)}</strong> <small className="muted">{tr(m.model)} · {tr(sizeGb(m.diskGb ?? 0))}{tr(native.instances.some(i => i.model === m.model) ? <> · {tr('Loaded')}</> : null)}</small></span><Btn size="sm" variant="danger" disabled={!!native.jobs.some(j => j.state === 'running')} onClick={() => setNativeDeleting(m.model)}>{tr("Delete")}</Btn></div>))}</div>
+ <ul className="storage-models">{tr(native.installed.models.map(m => <li className="storage-model" key={m.model}><span className="storage-model__name" title={m.model_name || m.model}><strong>{nativeShortName(m.model)}</strong>{tr(native.instances.some(i => i.model === m.model) ? <small className="muted">{tr('Loaded')}</small> : null)}</span><span className="storage-model__size muted">{tr(sizeGb(m.diskGb ?? 0))}</span><Btn size="sm" variant="danger" disabled={!!native.jobs.some(j => j.state === 'running')} onClick={() => setNativeDeleting(m.model)}>{tr("Delete")}</Btn></li>))}</ul>
</Field> : null)}
<NativeDeleteDialog id={nativeDeleting} onClose={() => setNativeDeleting(null)}/>
<Dialog open={!!selected} compact title={tr(version?.local ? 'Remove from Strata?' : `Delete ${version?.quant ?? 'model version'}?`)} onClose={close} actions={<><Btn disabled={pending} onClick={close}>{tr("Keep version")}</Btn><Btn variant="danger" disabled={pending || unavailable} onClick={() => void remove()}>{tr(pending ? 'Working…' : version?.local ? 'Remove model' : 'Delete version')}</Btn></>}>
diff --git a/apps/host/src/components/TaskDetail.tsx b/apps/host/src/components/TaskDetail.tsx
index 24015efe0..14df1451f 100644
--- a/apps/host/src/components/TaskDetail.tsx
+++ b/apps/host/src/components/TaskDetail.tsx
@@ -6,7 +6,7 @@ import type { Task } from '../lib/tasks';
const FREQUENCY: Record<string, string> = { hourly: 'Every hour', daily: 'Every day', weekdays: 'Weekdays', weekly: 'Every week' };
const WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
-const MODE: Record<string, string> = { plan: 'Look only, change nothing', manual: 'Stop and tell me before changing anything', bypass: 'Allowed to make changes' };
+const MODE: Record<string, string> = { plan: 'Look only, change nothing', manual: 'Stop and tell me before changing anything', bypass: 'Bypass permissions' };
const when = (iso?: string) => (iso ? new Date(iso).toLocaleString(localeTag(), { dateStyle: 'medium', timeStyle: 'short' }) : '');
@@ -24,22 +24,22 @@ export const taskState = (t: Task): TaskState => (t.status === 'running' ? 'runn
* An opened task, skimmable: when it runs, what it may do, what it did last, then the instructions and the last answer.
* The title, the state and the actions (pause or resume, delete, Edit, Run now) are in the header the screen draws.
*/
-export function TaskDetail({ task, modelName }: { task: Task; modelName: string | null }) {
+export function TaskDetail({ task }: { task: Task }) {
const state = taskState(task);
const result = task.status === 'running' ? { label: 'Running…', tone: '' }
: task.error ? { label: 'Last run failed', tone: 'is-bad' }
: task.lastRunAt || task.output ? { label: 'Done', tone: 'is-good' } : { label: 'Not run yet', tone: '' };
return <div className="task-detail">
+ <h2 className="task-name">{task.title}</h2>
<section className="st-card task-facts" aria-label={tr("Task summary")}>
<div><span className="label">{tr("Schedule")}</span><strong><Icon name="clock" size={16}/>{scheduleText(task)}</strong>
<span className="small muted">{tr(state === 'paused' ? 'Paused' : task.nextRunAt ? tr("Next: {0}", [when(task.nextRunAt)]) : 'Calculating the next run…')}</span></div>
<div><span className="label">{tr("What it may do")}</span><strong><Icon name="shield" size={16}/>{tr(MODE[task.mode ?? 'plan'])}</strong></div>
- {modelName ? <div><span className="label">{tr("Model")}</span><strong><Icon name="models" size={16}/>{modelName}</strong></div> : null}
<div><span className="label">{tr("Last result")}</span><strong className={result.tone}>{result.tone === 'is-good' ? <Icon name="check" size={16}/> : null}{tr(result.label)}</strong>
<span className="small muted">{when(task.lastRunAt)}</span></div>
</section>
<section className="st-card"><h2 className="label">{tr("What it does")}</h2><p className="task-instructions">{task.prompt}</p></section>
<section className="st-card"><h2 className="label">{tr("Last answer")}{task.demo ? tr(' · Example') : ''}</h2>
- {task.error ? <ErrorNotice message={task.error} next={tr("Try running this task again.")}/> : task.output ? <Markdown text={task.output}/> : <p className="small muted">{tr("Run this task to see its first result here.")}</p>}</section>
+ {task.error ? <ErrorNotice message={task.error} next={tr("Try running this task again.")}/> : task.output ? <div className="task-answer"><Markdown text={task.output}/></div> : <p className="small muted">{tr("Run this task to see its first result here.")}</p>}</section>
</div>;
}
diff --git a/apps/host/src/components/TaskEditor.tsx b/apps/host/src/components/TaskEditor.tsx
index 8b23a3c2d..6ac190755 100644
--- a/apps/host/src/components/TaskEditor.tsx
+++ b/apps/host/src/components/TaskEditor.tsx
@@ -11,7 +11,7 @@ export function TaskEditor({ task, assistant = false, onClose, onSaved }: {
onSaved?: () => void;
}) {
const [editor, setEditor] = useState<Task>({ ...task });
- const [step, setStep] = useState<0 | 1>(0);
+ const [step, setStep] = useState<0 | 1>(0), [ai, setAi] = useState(assistant);
const [description, setDescription] = useState(''), [suggestion, setSuggestion] = useState(false), [pending, setPending] = useState(false), [error, setError] = useState('');
const library = useStore(s => s.library);
const valid = !!editor.title.trim() && !!editor.prompt.trim();
@@ -27,7 +27,7 @@ export function TaskEditor({ task, assistant = false, onClose, onSaved }: {
setPending(false);
} }
async function save() { await (editor.id ? api.patch(`/api/tasks/${editor.id}`, editor) : api.post('/api/tasks', editor)); onClose(); }
- return <Dialog open title={tr(editor.id ? 'Edit task' : assistant ? 'Create with AI' : 'New task')} onClose={() => !pending && onClose()} actions={<>
+ return <Dialog open title={tr(editor.id ? 'Edit task' : ai ? 'Create with AI' : 'New task')} onClose={() => !pending && onClose()} actions={<>
<Btn disabled={pending} onClick={() => step ? setStep(0) : onClose()}>{tr(step ? 'Back' : 'Cancel')}</Btn>
{tr(step === 0 ? <Btn variant="primary" disabled={pending || !valid} onClick={() => setStep(1)}>{tr("Choose schedule ")}<Icon name="chevron" className="wizard-next" size={14}/></Btn> : <Btn variant="primary" disabled={pending || !valid} onClick={() => void action(save)}>{tr(pending ? 'Saving…' : editor.id ? 'Save changes' : 'Create task')}</Btn>)}
</>}>
@@ -43,17 +43,18 @@ export function TaskEditor({ task, assistant = false, onClose, onSaved }: {
</div>
<div className="form-stack task-editor-panel settings-tab-panel" role="tabpanel" id={`task-step-${step}`} aria-labelledby={`task-tab-${step}`}>
{tr(step === 0 ? <>
- {tr(assistant && !suggestion ? <div className="task-assistant"><label className="input-field"><span>{tr("What would you like Strata to do?")}</span><textarea className="st-input task-instructions" rows={5} value={description} onChange={e => setDescription(e.target.value)} placeholder={tr("Help me practise Spanish every morning…")}/></label><Btn disabled={!description.trim() || pending} onClick={() => void action(async () => { const draft = await api.post<{
+ {tr(!editor.id && !ai && !!library?.loaded ? <button type="button" className="text-action task-ai-link" onClick={() => setAi(true)}><Icon name="thinking" size={14}/>{tr("Draft it with AI")}</button> : null)}
+ {tr(ai && !suggestion ? <div className="task-assistant"><label className="input-field"><span>{tr("What would you like Strata to do?")}</span><textarea className="st-input task-instructions" rows={5} value={description} onChange={e => setDescription(e.target.value)} placeholder={tr("Help me practise Spanish every morning…")}/></label><Btn disabled={!description.trim() || pending} onClick={() => void action(async () => { const draft = await api.post<{
draft: Task;
}>('/api/tasks/draft', { description, timeZone: editor.timeZone }); setEditor({ ...editor, ...draft.draft }); setSuggestion(true); })}>{tr(pending ? 'Drafting…' : 'Suggest a task')}</Btn></div> : <>
<label className="input-field"><span>{tr("Name")}</span><input className="st-input" maxLength={120} disabled={pending} value={editor.title} onChange={e => setEditor({ ...editor, title: e.target.value })}/></label>
<label className="input-field"><span>{tr("Instructions")}</span><textarea className="st-input task-instructions" rows={5} maxLength={12000} placeholder={tr("Example: Review this project and summarize what changed.")} disabled={pending} value={editor.prompt} onChange={e => setEditor({ ...editor, prompt: e.target.value })}/></label>
- {tr(assistant ? <p className="xs muted">{tr(library?.mode === 'simulated' ? 'Example suggestion. ' : '')}{tr("Review the instructions, then choose a schedule.")}</p> : null)}
+ {tr(ai ? <p className="xs muted">{tr(library?.mode === 'simulated' ? 'Example suggestion. ' : '')}{tr("Review the instructions, then choose a schedule.")}</p> : null)}
</>)}
</> : <>
<div className="task-schedule-summary"><strong>{editor.title}</strong><p className="small muted">{editor.prompt}</p></div>
<div className="task-schedule"><div className="input-field"><span>{tr("Repeat")}</span><Select ariaLabel={tr("Repeat task")} value={editor.frequency} options={[{ value: 'hourly', label: 'Every hour' }, { value: 'daily', label: 'Every day' }, { value: 'weekdays', label: 'Weekdays' }, { value: 'weekly', label: 'Every week' }]} onChange={frequency => setEditor({ ...editor, frequency })}/></div>{tr(editor.frequency !== 'hourly' ? <label className="input-field"><span>{tr("Time")}</span><input type="time" className="st-input" disabled={pending} value={editor.at} onChange={e => setEditor({ ...editor, at: e.target.value })}/></label> : null)}{tr(editor.frequency === 'weekly' ? <div className="input-field"><span>{tr("Day")}</span><Select ariaLabel={tr("Day of week")} value={String(editor.weekday)} options={['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'].map((label, i) => ({ value: String(i), label }))} onChange={v => setEditor({ ...editor, weekday: Number(v) })}/></div> : null)}</div>
- <div className="input-field"><span>{tr("What this task may do")}</span><Select ariaLabel={tr("What this task may do")} value={editor.mode ?? 'plan'} options={[{ value: 'plan', label: 'Look only, change nothing' }, { value: 'manual', label: 'Stop and tell me before changing anything' }, { value: 'bypass', label: 'Allowed to make changes' }]} onChange={mode => setEditor({ ...editor, mode: mode as Task['mode'] })}/></div>
+ <div className="input-field"><span>{tr("What this task may do")}</span><Select ariaLabel={tr("What this task may do")} value={editor.mode ?? 'plan'} options={[{ value: 'plan', label: 'Look only, change nothing' }, { value: 'manual', label: 'Stop and tell me before changing anything' }, { value: 'bypass', label: 'Bypass permissions' }]} onChange={mode => setEditor({ ...editor, mode: mode as Task['mode'] })}/></div>
<label className="row small"><input type="checkbox" disabled={pending} checked={editor.enabled} onChange={e => setEditor({ ...editor, enabled: e.target.checked })}/>{tr("Run on schedule")}</label>
<p className="xs muted">{tr(editor.timeZone)}{tr(" \u00B7 Missed runs are skipped while Strata is closed.")}</p>
</>)}
diff --git a/apps/host/src/lib/monitor-summary.ts b/apps/host/src/lib/monitor-summary.ts
new file mode 100644
index 000000000..96e9255d2
--- /dev/null
+++ b/apps/host/src/lib/monitor-summary.ts
@@ -0,0 +1,16 @@
+import { tr } from './i18n';
+
+/**
+ * The sentence under the request table, in plain words: how many requests, the average output speed, the speed of reading prompts and how much
+ * was reused ("In 18 requests your average output was 47.4 tok/s and prompt reading 1,332 tok/s, reusing 91K tokens."). Parts the engine has
+ * not reported are left out of the sentence rather than shown as dashes.
+ */
+export function requestSummary(input: { requests: number; output?: number | null; reading?: number | null; reused?: number | null }, format: { number: (n: number, digits?: number) => string; tokens: (n: number) => string }): string {
+ const has = (n: number | null | undefined): n is number => typeof n === 'number' && Number.isFinite(n) && n > 0;
+ const requests = format.tokens(input.requests);
+ if (has(input.output) && has(input.reading) && has(input.reused)) return tr('In {0} requests your average output was {1} tok/s and prompt reading {2} tok/s, reusing {3} tokens.', [requests, format.number(input.output, 1), format.number(input.reading), format.tokens(input.reused)]);
+ if (has(input.output) && has(input.reading)) return tr('In {0} requests your average output was {1} tok/s and prompt reading {2} tok/s.', [requests, format.number(input.output, 1), format.number(input.reading)]);
+ if (has(input.output) && has(input.reused)) return tr('In {0} requests your average output was {1} tok/s, reusing {2} tokens.', [requests, format.number(input.output, 1), format.tokens(input.reused)]);
+ if (has(input.output)) return tr('In {0} requests your average output was {1} tok/s.', [requests, format.number(input.output, 1)]);
+ return tr('{0} requests so far.', [requests]);
+}
diff --git a/apps/host/src/lib/native-names.ts b/apps/host/src/lib/native-names.ts
new file mode 100644
index 000000000..de2ef322f
--- /dev/null
+++ b/apps/host/src/lib/native-names.ts
@@ -0,0 +1,16 @@
+/**
+ * A short name for a downloaded optimized model: the family and the quantization ("Swift IQ2_XS", "Gyro-S", "IQ3_S"), made from the id the
+ * installation gives it (the family tag in front of the lower-cased quantization). The long name stays available as a tooltip.
+ */
+const FAMILIES: [string, string][] = [['swift-', 'Swift'], ['coder-', 'Coder'], ['unsloth-', 'Unsloth'], ['gyro-gyro-', 'Gyro'], ['gyro-', 'Gyro'], ['nvfp4-', 'NVFP4'], ['qwen36-', 'Qwen3.6']];
+
+export function nativeShortName(id: string): string {
+ const lower = String(id ?? '').toLowerCase();
+ for (const [prefix, label] of FAMILIES) {
+ if (!lower.startsWith(prefix)) continue;
+ const rest = lower.slice(prefix.length).toUpperCase();
+ if (!rest) return label;
+ return label === 'Gyro' ? `Gyro-${rest.replace(/^GYRO-/, '')}` : `${label} ${rest}`;
+ }
+ return lower.toUpperCase() || String(id);
+}
diff --git a/apps/host/src/lib/snapshot.ts b/apps/host/src/lib/snapshot.ts
index 159e2e51e..b296503c2 100644
--- a/apps/host/src/lib/snapshot.ts
+++ b/apps/host/src/lib/snapshot.ts
@@ -8,6 +8,8 @@ export async function monitorPng(element: HTMLElement) {
clone.style.width = `${element.getBoundingClientRect().width}px`;
clone.style.position = 'fixed'; clone.style.left = '-100000px'; clone.style.top = '0';
clone.setAttribute('aria-hidden', 'true');
+ // What is only live state (the model state and the conversation cache) is not part of the picture.
+ clone.querySelectorAll('[data-snapshot-skip]').forEach(node => node.remove());
for (const use of clone.querySelectorAll('svg use')) {
const id = use.getAttribute('href')?.split('#')[1];
const symbol = id && sprite.getElementById(id), svg = use.parentElement;
diff --git a/apps/host/src/lib/tasks.ts b/apps/host/src/lib/tasks.ts
index d86878cac..c19e20750 100644
--- a/apps/host/src/lib/tasks.ts
+++ b/apps/host/src/lib/tasks.ts
@@ -1,2 +1,2 @@
export interface Task { id?: string; title: string; prompt: string; frequency: string; at: string; weekday: number; timeZone: string; mode?: 'plan' | 'manual' | 'bypass'; enabled: boolean; archived?: boolean; nextRunAt?: string; lastRunAt?: string; status?: string; output?: string; demo?: boolean; error?: string; attention?: string | null; }
-export const blankTask = (): Task => ({ title:'', prompt:'', frequency:'daily', at:'09:00', weekday:1, timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone, mode:'plan', enabled:true });
+export const blankTask = (): Task => ({ title:'', prompt:'', frequency:'daily', at:'09:00', weekday:1, timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone, mode:'bypass', enabled:true });
diff --git a/apps/host/src/locales/de.json b/apps/host/src/locales/de.json
index 124e034b0..f9542efd1 100644
--- a/apps/host/src/locales/de.json
+++ b/apps/host/src/locales/de.json
@@ -2616,7 +2616,6 @@
"s2615": "Was diese Aufgabe darf",
"s2616": "Nur ansehen, nichts ändern",
"s2617": "Vor jeder Änderung anhalten und mir Bescheid geben",
- "s2618": "Darf Änderungen vornehmen",
"s2619": "Aufgabe abgeschlossen",
"s2620": "Aufgabe braucht Ihr Ja",
"s2621": "Aufgabe fehlgeschlagen",
@@ -3037,8 +3036,43 @@
"s3039": "Das Ergebnis wird geprüft…",
"s3040": "Die beiden Versionen werden verglichen…",
"s3041": "Neuer Skill",
- "s3042": "Skill speichern",
- "s3043": "Dein Skill wird geladen",
- "s3044": "Deinen Skill geladen",
- "s3045": "Der Skill ließ sich nicht laden"
+ "s3042": "Protokolle anzeigen",
+ "s3043": "Engine-Protokolle",
+ "s3044": "Strata sendet keine Nutzungstelemetrie.",
+ "s3045": "Unterhaltungen bleiben im Browser-Speicher.",
+ "s3046": "Wenn Sie ein API-Modell wählen, werden diese Unterhaltung und die aktivierten Skill-Anweisungen an den Anbieter gesendet.",
+ "s3047": "Das UI-Anfrageprotokoll behält Client-, Zeit- und Token-Metadaten nur im Arbeitsspeicher.",
+ "s3048": "Die native API-Überwachung kann bei Aktivierung Anfrageinhalte im Arbeitsspeicher behalten.",
+ "s3049": "Verbundene Werkzeuge greifen auf die von Ihnen konfigurierten Ressourcen zu.",
+ "s3050": "In {0} Anfragen lag Ihre durchschnittliche Ausgabe bei {1} tok/s und das Lesen der Prompts bei {2} tok/s; {3} Tokens wurden wiederverwendet.",
+ "s3051": "In {0} Anfragen lag Ihre durchschnittliche Ausgabe bei {1} tok/s und das Lesen der Prompts bei {2} tok/s.",
+ "s3052": "In {0} Anfragen lag Ihre durchschnittliche Ausgabe bei {1} tok/s; {2} Tokens wurden wiederverwendet.",
+ "s3053": "In {0} Anfragen lag Ihre durchschnittliche Ausgabe bei {1} tok/s.",
+ "s3054": "Bisher {0} Anfragen.",
+ "s3055": "Aufgabe entfernt",
+ "s3056": "Diese Aufgabe entfernen?",
+ "s3057": "{0}% schneller",
+ "s3058": "Bereits am schnellsten",
+ "s3059": "Noch genauso schnell wie vorher",
+ "s3060": "Langsamer als vorher",
+ "s3061": "Konnte nicht zuverlässig messen",
+ "s3062": "Im Moment nicht zu beurteilen",
+ "s3063": "Die Optimierung wurde nicht abgeschlossen",
+ "s3064": "Ihre Antworten kommen jetzt schneller. Die Qualität bleibt gleich.",
+ "s3065": "Nichts, was wir ausprobiert haben, war besser als Ihre aktuellen Einstellungen. Daher wurde nichts geändert.",
+ "s3066": "Ihre gespeicherte Optimierung wirkt noch genauso gut wie beim Speichern.",
+ "s3067": "Ihre Optimierung wurde beibehalten. Versuchen Sie die Prüfung später noch einmal.",
+ "s3068": "Ihr PC war zu beschäftigt, um andere Einstellungen auszuprobieren. Es wurde nichts geändert. Versuchen Sie es erneut, wenn andere Programme geschlossen sind.",
+ "s3069": "Ihr PC war während des Tests beschäftigt, daher konnten wir nicht zuverlässig messen. Es wurde nichts geändert. Versuchen Sie es erneut, wenn andere Programme geschlossen sind.",
+ "s3070": "Es war nicht genug freier Speicher zum Testen vorhanden. Es wurde nichts geändert. Schließen Sie andere Programme und versuchen Sie es erneut.",
+ "s3071": "Die Engine ließ sich mit diesen Einstellungen nicht starten. Es wurde nichts geändert.",
+ "s3072": "Die Engine wurde während der Messung beendet. Es wurde nichts geändert.",
+ "s3073": "Es wurde nichts geändert.",
+ "s3074": "Gespeichert als",
+ "s3075": "Dauer",
+ "s3076": "{0} Min.",
+ "s3077": "Zeigt die Werte Ihrer Optimierung „{0}“.",
+ "s3078": "Ihre Optimierung „{0}“ setzt",
+ "s3079": "war {0}",
+ "s3080": "Erneut optimieren"
}
diff --git a/apps/host/src/locales/en.json b/apps/host/src/locales/en.json
index 9870caad1..fece1b23b 100644
--- a/apps/host/src/locales/en.json
+++ b/apps/host/src/locales/en.json
@@ -2616,7 +2616,6 @@
"s2615": "What this task may do",
"s2616": "Look only, change nothing",
"s2617": "Stop and tell me before changing anything",
- "s2618": "Allowed to make changes",
"s2619": "Task finished",
"s2620": "Task needs your yes",
"s2621": "Task failed",
@@ -3037,8 +3036,43 @@
"s3039": "Checking the result…",
"s3040": "Comparing the two versions…",
"s3041": "New skill",
- "s3042": "Save skill",
- "s3043": "Loading your skill",
- "s3044": "Loaded your skill",
- "s3045": "Couldn't load the skill"
+ "s3042": "View logs",
+ "s3043": "Engine logs",
+ "s3044": "Strata sends no usage telemetry.",
+ "s3045": "Conversations stay in browser storage.",
+ "s3046": "When you choose an API model, that conversation and enabled skill instructions are sent to its provider.",
+ "s3047": "The UI request log keeps client, timing and token metadata in memory.",
+ "s3048": "Native API monitoring can retain request content in memory when enabled.",
+ "s3049": "Connected tools access the resources you configure.",
+ "s3050": "In {0} requests your average output was {1} tok/s and prompt reading {2} tok/s, reusing {3} tokens.",
+ "s3051": "In {0} requests your average output was {1} tok/s and prompt reading {2} tok/s.",
+ "s3052": "In {0} requests your average output was {1} tok/s, reusing {2} tokens.",
+ "s3053": "In {0} requests your average output was {1} tok/s.",
+ "s3054": "{0} requests so far.",
+ "s3055": "Task removed",
+ "s3056": "Remove this task?",
+ "s3057": "{0}% faster",
+ "s3058": "Already the fastest",
+ "s3059": "Still as fast as before",
+ "s3060": "Slower than before",
+ "s3061": "Couldn't measure reliably",
+ "s3062": "Couldn't tell right now",
+ "s3063": "Tuning didn't finish",
+ "s3064": "Your answers now arrive sooner. Quality is the same.",
+ "s3065": "Nothing we tried beat your current settings, so nothing was changed.",
+ "s3066": "Your saved tuning is still working as well as when it was saved.",
+ "s3067": "Your tuning was kept. Try the check again later.",
+ "s3068": "Your PC was too busy to try other settings, so nothing was changed. Try again when other programs are closed.",
+ "s3069": "Your PC was busy during the test, so we couldn't measure reliably. Nothing was changed. Try again when other programs are closed.",
+ "s3070": "There wasn't enough free memory to test. Nothing was changed. Close other programs and try again.",
+ "s3071": "The engine could not start with these settings. Nothing was changed.",
+ "s3072": "The engine stopped while we were measuring. Nothing was changed.",
+ "s3073": "Nothing was changed.",
+ "s3074": "Saved as",
+ "s3075": "Took",
+ "s3076": "{0} min",
+ "s3077": "Showing the values of your tuning '{0}'.",
+ "s3078": "Your tuning '{0}' sets",
+ "s3079": "was {0}",
+ "s3080": "Tune again"
}
diff --git a/apps/host/src/locales/es.json b/apps/host/src/locales/es.json
index c5c323468..475676f1c 100644
--- a/apps/host/src/locales/es.json
+++ b/apps/host/src/locales/es.json
@@ -2616,7 +2616,6 @@
"s2615": "Qué puede hacer esta tarea",
"s2616": "Solo mirar, no cambiar nada",
"s2617": "Detenerse y avisarme antes de cambiar algo",
- "s2618": "Puede hacer cambios",
"s2619": "Tarea terminada",
"s2620": "La tarea necesita tu visto bueno",
"s2621": "La tarea falló",
@@ -3037,8 +3036,43 @@
"s3039": "Comprobando el resultado…",
"s3040": "Comparando las dos versiones…",
"s3041": "Nueva habilidad",
- "s3042": "Guardar habilidad",
- "s3043": "Cargando tu habilidad",
- "s3044": "Cargó tu habilidad",
- "s3045": "No se pudo cargar la habilidad"
+ "s3042": "Ver registros",
+ "s3043": "Registros del motor",
+ "s3044": "Strata no envía telemetría de uso.",
+ "s3045": "Las conversaciones se quedan en el almacenamiento del navegador.",
+ "s3046": "Si eliges un modelo de API, esa conversación y las instrucciones de las habilidades activadas se envían a su proveedor.",
+ "s3047": "El registro de solicitudes de la interfaz guarda en memoria metadatos de cliente, tiempo y tokens.",
+ "s3048": "Si se activa, la supervisión de la API nativa puede conservar en memoria el contenido de las solicitudes.",
+ "s3049": "Las herramientas conectadas acceden a los recursos que configuraste.",
+ "s3050": "En {0} solicitudes, tu salida media fue de {1} tok/s y la lectura del prompt de {2} tok/s, reutilizando {3} tokens.",
+ "s3051": "En {0} solicitudes, tu salida media fue de {1} tok/s y la lectura del prompt de {2} tok/s.",
+ "s3052": "En {0} solicitudes, tu salida media fue de {1} tok/s, reutilizando {2} tokens.",
+ "s3053": "En {0} solicitudes, tu salida media fue de {1} tok/s.",
+ "s3054": "{0} solicitudes hasta ahora.",
+ "s3055": "Tarea eliminada",
+ "s3056": "¿Eliminar esta tarea?",
+ "s3057": "{0}% más rápido",
+ "s3058": "Ya es lo más rápido",
+ "s3059": "Sigue igual de rápido",
+ "s3060": "Más lento que antes",
+ "s3061": "No se pudo medir con fiabilidad",
+ "s3062": "No se puede saber ahora",
+ "s3063": "El ajuste no terminó",
+ "s3064": "Tus respuestas ahora llegan antes. La calidad es la misma.",
+ "s3065": "Nada de lo que probamos superó tu configuración actual, así que no se cambió nada.",
+ "s3066": "Tu ajuste guardado sigue funcionando igual de bien que al guardarlo.",
+ "s3067": "Se conservó tu ajuste. Vuelve a comprobarlo más tarde.",
+ "s3068": "Tu PC estaba demasiado ocupado para probar otros ajustes, así que no se cambió nada. Inténtalo de nuevo cuando otros programas estén cerrados.",
+ "s3069": "Tu PC estaba ocupado durante la prueba, así que no pudimos medir con fiabilidad. No se cambió nada. Inténtalo de nuevo cuando otros programas estén cerrados.",
+ "s3070": "No había memoria libre suficiente para probar. No se cambió nada. Cierra otros programas e inténtalo de nuevo.",
+ "s3071": "El motor no pudo iniciarse con estos ajustes. No se cambió nada.",
+ "s3072": "El motor se detuvo mientras medíamos. No se cambió nada.",
+ "s3073": "No se cambió nada.",
+ "s3074": "Guardado como",
+ "s3075": "Duración",
+ "s3076": "{0} min",
+ "s3077": "Mostrando los valores de tu ajuste «{0}».",
+ "s3078": "Tu ajuste «{0}» establece",
+ "s3079": "antes {0}",
+ "s3080": "Ajustar de nuevo"
}
diff --git a/apps/host/src/locales/ja.json b/apps/host/src/locales/ja.json
index e4fb7050a..caf9b4e95 100644
--- a/apps/host/src/locales/ja.json
+++ b/apps/host/src/locales/ja.json
@@ -2616,7 +2616,6 @@
"s2615": "このタスクができること",
"s2616": "見るだけで何も変更しない",
"s2617": "変更の前に止まって知らせる",
- "s2618": "変更を許可する",
"s2619": "タスクが完了しました",
"s2620": "タスクに許可が必要です",
"s2621": "タスクが失敗しました",
@@ -3037,8 +3036,43 @@
"s3039": "結果を確認しています…",
"s3040": "2つの版を比較しています…",
"s3041": "新しいスキル",
- "s3042": "スキルを保存",
- "s3043": "スキルを読み込んでいます",
- "s3044": "スキルを読み込みました",
- "s3045": "スキルを読み込めませんでした"
+ "s3042": "ログを見る",
+ "s3043": "エンジンのログ",
+ "s3044": "Strata は利用状況のテレメトリーを送信しません。",
+ "s3045": "会話はブラウザーのストレージに保存されます。",
+ "s3046": "API モデルを選ぶと、その会話と有効なスキルの指示がプロバイダーに送信されます。",
+ "s3047": "UI のリクエストログは、クライアント・時間・トークンのメタデータをメモリ上にのみ保持します。",
+ "s3048": "有効にすると、ネイティブ API の監視はリクエスト内容をメモリ上に保持することがあります。",
+ "s3049": "接続したツールは、あなたが設定したリソースにアクセスします。",
+ "s3050": "{0} 件のリクエストで、平均出力は {1} tok/s、プロンプトの読み込みは {2} tok/s で、{3} トークンを再利用しました。",
+ "s3051": "{0} 件のリクエストで、平均出力は {1} tok/s、プロンプトの読み込みは {2} tok/s でした。",
+ "s3052": "{0} 件のリクエストで、平均出力は {1} tok/s で、{2} トークンを再利用しました。",
+ "s3053": "{0} 件のリクエストで、平均出力は {1} tok/s でした。",
+ "s3054": "これまでに {0} 件のリクエスト。",
+ "s3055": "タスクを削除しました",
+ "s3056": "このタスクを削除しますか?",
+ "s3057": "{0}% 高速化",
+ "s3058": "すでに最速です",
+ "s3059": "以前と同じ速さです",
+ "s3060": "以前より遅くなりました",
+ "s3061": "確実に測定できませんでした",
+ "s3062": "今は判断できません",
+ "s3063": "チューニングが完了しませんでした",
+ "s3064": "回答が以前より早く届きます。品質は同じです。",
+ "s3065": "試した設定はどれも現在の設定を上回らなかったため、何も変更していません。",
+ "s3066": "保存したチューニングは、保存時と同じように機能しています。",
+ "s3067": "チューニングは保持されました。後でもう一度確認してください。",
+ "s3068": "PC が忙しく他の設定を試せなかったため、何も変更していません。ほかのプログラムを閉じてからもう一度お試しください。",
+ "s3069": "テスト中に PC が忙しく、確実に測定できませんでした。何も変更していません。ほかのプログラムを閉じてからもう一度お試しください。",
+ "s3070": "テストに使える空きメモリが足りませんでした。何も変更していません。ほかのプログラムを閉じてからもう一度お試しください。",
+ "s3071": "これらの設定ではエンジンを起動できませんでした。何も変更していません。",
+ "s3072": "測定中にエンジンが停止しました。何も変更していません。",
+ "s3073": "何も変更していません。",
+ "s3074": "保存名",
+ "s3075": "所要時間",
+ "s3076": "{0} 分",
+ "s3077": "チューニング「{0}」の値を表示しています。",
+ "s3078": "チューニング「{0}」の設定",
+ "s3079": "以前は {0}",
+ "s3080": "もう一度チューニング"
}
diff --git a/apps/host/src/locales/ko.json b/apps/host/src/locales/ko.json
index 64b494ab0..168471ea9 100644
--- a/apps/host/src/locales/ko.json
+++ b/apps/host/src/locales/ko.json
@@ -2616,7 +2616,6 @@
"s2615": "이 작업이 할 수 있는 일",
"s2616": "보기만 하고 아무것도 바꾸지 않기",
"s2617": "변경하기 전에 멈추고 알려 주기",
- "s2618": "변경 허용",
"s2619": "작업 완료",
"s2620": "작업에 승인이 필요합니다",
"s2621": "작업 실패",
@@ -3037,8 +3036,43 @@
"s3039": "결과를 확인하는 중…",
"s3040": "두 버전을 비교하는 중…",
"s3041": "새 스킬",
- "s3042": "스킬 저장",
- "s3043": "스킬을 불러오는 중",
- "s3044": "스킬을 불러왔습니다",
- "s3045": "스킬을 불러올 수 없었습니다"
+ "s3042": "로그 보기",
+ "s3043": "엔진 로그",
+ "s3044": "Strata는 사용 현황 텔레메트리를 전송하지 않습니다.",
+ "s3045": "대화는 브라우저 저장소에 남습니다.",
+ "s3046": "API 모델을 선택하면 해당 대화와 활성화된 스킬 지침이 제공업체로 전송됩니다.",
+ "s3047": "UI 요청 로그는 클라이언트, 시간, 토큰 메타데이터를 메모리에만 보관합니다.",
+ "s3048": "활성화하면 네이티브 API 모니터링이 요청 내용을 메모리에 보관할 수 있습니다.",
+ "s3049": "연결된 도구는 사용자가 설정한 리소스에 접근합니다.",
+ "s3050": "{0}개 요청에서 평균 출력 속도는 {1} tok/s, 프롬프트 읽기는 {2} tok/s였고 {3}개 토큰을 재사용했습니다.",
+ "s3051": "{0}개 요청에서 평균 출력 속도는 {1} tok/s, 프롬프트 읽기는 {2} tok/s였습니다.",
+ "s3052": "{0}개 요청에서 평균 출력 속도는 {1} tok/s였고 {2}개 토큰을 재사용했습니다.",
+ "s3053": "{0}개 요청에서 평균 출력 속도는 {1} tok/s였습니다.",
+ "s3054": "지금까지 {0}개 요청.",
+ "s3055": "작업을 제거했습니다",
+ "s3056": "이 작업을 제거할까요?",
+ "s3057": "{0}% 빨라짐",
+ "s3058": "이미 가장 빠릅니다",
+ "s3059": "이전과 같은 속도입니다",
+ "s3060": "이전보다 느립니다",
+ "s3061": "안정적으로 측정하지 못했습니다",
+ "s3062": "지금은 판단할 수 없습니다",
+ "s3063": "튜닝이 끝나지 않았습니다",
+ "s3064": "이제 답변이 더 빨리 도착합니다. 품질은 그대로입니다.",
+ "s3065": "시도한 설정 중 현재 설정보다 나은 것이 없어 아무것도 바꾸지 않았습니다.",
+ "s3066": "저장한 튜닝이 저장했을 때처럼 잘 작동하고 있습니다.",
+ "s3067": "튜닝은 유지되었습니다. 나중에 다시 확인해 보세요.",
+ "s3068": "PC가 너무 바빠 다른 설정을 시도하지 못했고, 아무것도 바꾸지 않았습니다. 다른 프로그램을 닫은 뒤 다시 시도하세요.",
+ "s3069": "테스트 중 PC가 바빠 안정적으로 측정하지 못했습니다. 아무것도 바꾸지 않았습니다. 다른 프로그램을 닫은 뒤 다시 시도하세요.",
+ "s3070": "테스트할 여유 메모리가 부족했습니다. 아무것도 바꾸지 않았습니다. 다른 프로그램을 닫고 다시 시도하세요.",
+ "s3071": "이 설정으로는 엔진을 시작하지 못했습니다. 아무것도 바꾸지 않았습니다.",
+ "s3072": "측정 중에 엔진이 멈췄습니다. 아무것도 바꾸지 않았습니다.",
+ "s3073": "아무것도 바꾸지 않았습니다.",
+ "s3074": "저장 이름",
+ "s3075": "소요 시간",
+ "s3076": "{0}분",
+ "s3077": "튜닝 '{0}'의 값을 표시하고 있습니다.",
+ "s3078": "튜닝 '{0}'이(가) 설정하는 값",
+ "s3079": "이전 {0}",
+ "s3080": "다시 튜닝"
}
diff --git a/apps/host/src/locales/pt.json b/apps/host/src/locales/pt.json
index 1982b966a..211a7105b 100644
--- a/apps/host/src/locales/pt.json
+++ b/apps/host/src/locales/pt.json
@@ -2616,7 +2616,6 @@
"s2615": "O que esta tarefa pode fazer",
"s2616": "Só olhar, sem alterar nada",
"s2617": "Parar e avisar antes de alterar algo",
- "s2618": "Pode fazer alterações",
"s2619": "Tarefa concluída",
"s2620": "A tarefa precisa do seu sim",
"s2621": "A tarefa falhou",
@@ -3037,8 +3036,43 @@
"s3039": "Verificando o resultado…",
"s3040": "Comparando as duas versões…",
"s3041": "Nova habilidade",
- "s3042": "Salvar habilidade",
- "s3043": "Carregando a sua habilidade",
- "s3044": "Carregou a sua habilidade",
- "s3045": "Não foi possível carregar a habilidade"
+ "s3042": "Ver registros",
+ "s3043": "Registros do mecanismo",
+ "s3044": "O Strata não envia telemetria de uso.",
+ "s3045": "As conversas ficam no armazenamento do navegador.",
+ "s3046": "Ao escolher um modelo de API, essa conversa e as instruções das habilidades ativadas são enviadas ao provedor.",
+ "s3047": "O registro de solicitações da interface guarda na memória metadados de cliente, tempo e tokens.",
+ "s3048": "Quando ativado, o monitoramento da API nativa pode manter o conteúdo das solicitações na memória.",
+ "s3049": "As ferramentas conectadas acessam os recursos que você configurou.",
+ "s3050": "Em {0} solicitações, sua saída média foi de {1} tok/s e a leitura do prompt de {2} tok/s, reutilizando {3} tokens.",
+ "s3051": "Em {0} solicitações, sua saída média foi de {1} tok/s e a leitura do prompt de {2} tok/s.",
+ "s3052": "Em {0} solicitações, sua saída média foi de {1} tok/s, reutilizando {2} tokens.",
+ "s3053": "Em {0} solicitações, sua saída média foi de {1} tok/s.",
+ "s3054": "{0} solicitações até agora.",
+ "s3055": "Tarefa removida",
+ "s3056": "Remover esta tarefa?",
+ "s3057": "{0}% mais rápido",
+ "s3058": "Já é o mais rápido",
+ "s3059": "Continua tão rápido quanto antes",
+ "s3060": "Mais lento do que antes",
+ "s3061": "Não foi possível medir com confiabilidade",
+ "s3062": "Não foi possível dizer agora",
+ "s3063": "O ajuste não terminou",
+ "s3064": "Suas respostas agora chegam mais rápido. A qualidade é a mesma.",
+ "s3065": "Nada do que testamos superou suas configurações atuais, então nada foi alterado.",
+ "s3066": "Seu ajuste salvo continua funcionando tão bem quanto quando foi salvo.",
+ "s3067": "Seu ajuste foi mantido. Tente a verificação de novo mais tarde.",
+ "s3068": "Seu PC estava ocupado demais para testar outras configurações, então nada foi alterado. Tente de novo quando outros programas estiverem fechados.",
+ "s3069": "Seu PC estava ocupado durante o teste, então não foi possível medir com confiabilidade. Nada foi alterado. Tente de novo quando outros programas estiverem fechados.",
+ "s3070": "Não havia memória livre suficiente para testar. Nada foi alterado. Feche outros programas e tente de novo.",
+ "s3071": "O mecanismo não conseguiu iniciar com essas configurações. Nada foi alterado.",
+ "s3072": "O mecanismo parou durante a medição. Nada foi alterado.",
+ "s3073": "Nada foi alterado.",
+ "s3074": "Salvo como",
+ "s3075": "Duração",
+ "s3076": "{0} min",
+ "s3077": "Mostrando os valores do seu ajuste “{0}”.",
+ "s3078": "Seu ajuste “{0}” define",
+ "s3079": "era {0}",
+ "s3080": "Ajustar de novo"
}
diff --git a/apps/host/src/locales/ru.json b/apps/host/src/locales/ru.json
index 390f06723..4e773ab8e 100644
--- a/apps/host/src/locales/ru.json
+++ b/apps/host/src/locales/ru.json
@@ -2616,7 +2616,6 @@
"s2615": "Что может делать эта задача",
"s2616": "Только смотреть, ничего не менять",
"s2617": "Остановиться и сообщить перед изменением",
- "s2618": "Разрешено вносить изменения",
"s2619": "Задача выполнена",
"s2620": "Задаче нужно ваше согласие",
"s2621": "Задача не удалась",
@@ -3037,8 +3036,43 @@
"s3039": "Проверка результата…",
"s3040": "Сравнение двух версий…",
"s3041": "Новый навык",
- "s3042": "Сохранить навык",
- "s3043": "Загрузка вашего навыка",
- "s3044": "Ваш навык загружен",
- "s3045": "Не удалось загрузить навык"
+ "s3042": "Показать журналы",
+ "s3043": "Журналы движка",
+ "s3044": "Strata не отправляет телеметрию использования.",
+ "s3045": "Беседы хранятся в хранилище браузера.",
+ "s3046": "Если вы выбираете API-модель, эта беседа и инструкции включённых навыков отправляются её провайдеру.",
+ "s3047": "Журнал запросов интерфейса хранит в памяти данные о клиенте, времени и токенах.",
+ "s3048": "Если включён мониторинг нативного API, содержимое запросов может храниться в памяти.",
+ "s3049": "Подключённые инструменты обращаются к ресурсам, которые вы настроили.",
+ "s3050": "За {0} запросов ваша средняя скорость вывода была {1} ток/с, а чтение промпта — {2} ток/с, с повторным использованием {3} токенов.",
+ "s3051": "За {0} запросов ваша средняя скорость вывода была {1} ток/с, а чтение промпта — {2} ток/с.",
+ "s3052": "За {0} запросов ваша средняя скорость вывода была {1} ток/с, с повторным использованием {2} токенов.",
+ "s3053": "За {0} запросов ваша средняя скорость вывода была {1} ток/с.",
+ "s3054": "Пока {0} запросов.",
+ "s3055": "Задача удалена",
+ "s3056": "Удалить эту задачу?",
+ "s3057": "На {0}% быстрее",
+ "s3058": "Уже максимально быстро",
+ "s3059": "По-прежнему так же быстро",
+ "s3060": "Медленнее, чем раньше",
+ "s3061": "Не удалось измерить надёжно",
+ "s3062": "Сейчас определить нельзя",
+ "s3063": "Настройка не завершилась",
+ "s3064": "Ответы теперь приходят быстрее. Качество прежнее.",
+ "s3065": "Ничто из проверенного не оказалось лучше ваших текущих настроек, поэтому ничего не изменено.",
+ "s3066": "Сохранённая настройка работает так же хорошо, как при сохранении.",
+ "s3067": "Настройка сохранена. Повторите проверку позже.",
+ "s3068": "Компьютер был слишком занят, чтобы проверить другие настройки, поэтому ничего не изменено. Повторите, когда другие программы закрыты.",
+ "s3069": "Во время теста компьютер был занят, поэтому измерить надёжно не удалось. Ничего не изменено. Повторите, когда другие программы закрыты.",
+ "s3070": "Для теста не хватило свободной памяти. Ничего не изменено. Закройте другие программы и повторите.",
+ "s3071": "Движок не удалось запустить с этими настройками. Ничего не изменено.",
+ "s3072": "Движок остановился во время измерения. Ничего не изменено.",
+ "s3073": "Ничего не изменено.",
+ "s3074": "Сохранено как",
+ "s3075": "Заняло",
+ "s3076": "{0} мин",
+ "s3077": "Показаны значения вашей настройки «{0}».",
+ "s3078": "Ваша настройка «{0}» задаёт",
+ "s3079": "было {0}",
+ "s3080": "Настроить снова"
}
diff --git a/apps/host/src/locales/zh.json b/apps/host/src/locales/zh.json
index 4eb36ff55..0a15a5a7a 100644
--- a/apps/host/src/locales/zh.json
+++ b/apps/host/src/locales/zh.json
@@ -2616,7 +2616,6 @@
"s2615": "此任务可以做什么",
"s2616": "只查看,不做任何更改",
"s2617": "更改前先停下并告诉我",
- "s2618": "允许进行更改",
"s2619": "任务已完成",
"s2620": "任务需要你的确认",
"s2621": "任务失败",
@@ -3037,8 +3036,43 @@
"s3039": "正在检查结果…",
"s3040": "正在比较两个版本…",
"s3041": "新建技能",
- "s3042": "保存技能",
- "s3043": "正在加载你的技能",
- "s3044": "已加载你的技能",
- "s3045": "无法加载技能"
+ "s3042": "查看日志",
+ "s3043": "引擎日志",
+ "s3044": "Strata 不发送任何使用遥测数据。",
+ "s3045": "对话保存在浏览器存储中。",
+ "s3046": "当你选择 API 模型时,该对话和已启用的技能说明会发送给其提供商。",
+ "s3047": "界面请求日志只在内存中保留客户端、时间和令牌元数据。",
+ "s3048": "启用后,原生 API 监控可能会在内存中保留请求内容。",
+ "s3049": "已连接的工具只会访问你配置的资源。",
+ "s3050": "在 {0} 次请求中,你的平均输出速度为 {1} tok/s,提示词读取速度为 {2} tok/s,复用了 {3} 个词元。",
+ "s3051": "在 {0} 次请求中,你的平均输出速度为 {1} tok/s,提示词读取速度为 {2} tok/s。",
+ "s3052": "在 {0} 次请求中,你的平均输出速度为 {1} tok/s,复用了 {2} 个词元。",
+ "s3053": "在 {0} 次请求中,你的平均输出速度为 {1} tok/s。",
+ "s3054": "目前共 {0} 次请求。",
+ "s3055": "任务已移除",
+ "s3056": "移除这个任务?",
+ "s3057": "快了 {0}%",
+ "s3058": "已经是最快的",
+ "s3059": "速度和之前一样快",
+ "s3060": "比之前慢",
+ "s3061": "无法可靠测量",
+ "s3062": "暂时无法判断",
+ "s3063": "调优未完成",
+ "s3064": "现在回答来得更快,质量不变。",
+ "s3065": "我们尝试的设置都没有超过你当前的设置,所以没有做任何更改。",
+ "s3066": "你保存的调优仍和保存时一样有效。",
+ "s3067": "你的调优已保留。请稍后再检查。",
+ "s3068": "你的电脑太忙,无法尝试其他设置,所以没有做任何更改。请在关闭其他程序后重试。",
+ "s3069": "测试期间你的电脑很忙,所以我们无法可靠测量。没有做任何更改。请在关闭其他程序后重试。",
+ "s3070": "没有足够的可用内存来测试。没有做任何更改。请关闭其他程序后重试。",
+ "s3071": "引擎无法用这些设置启动。没有做任何更改。",
+ "s3072": "测量期间引擎停止了。没有做任何更改。",
+ "s3073": "没有做任何更改。",
+ "s3074": "保存为",
+ "s3075": "用时",
+ "s3076": "{0} 分钟",
+ "s3077": "显示你的调优“{0}”的值。",
+ "s3078": "你的调优“{0}”设置了",
+ "s3079": "原为 {0}",
+ "s3080": "再次调优"
}
diff --git a/apps/host/src/screens/Monitor.tsx b/apps/host/src/screens/Monitor.tsx
index 543c78fb6..4444cb494 100644
--- a/apps/host/src/screens/Monitor.tsx
+++ b/apps/host/src/screens/Monitor.tsx
@@ -5,6 +5,7 @@ import { scopedMonitor, instanceLabel, deviceLabel } from '../lib/runtime-models
import { useRef, useState, type ReactNode } from 'react';
import { flushSync } from 'react-dom';
import { SnapshotDialog } from '../components/SnapshotDialog';
+import { requestSummary } from '../lib/monitor-summary';
import { monitorPng } from '../lib/snapshot';
import { Gauge, ReferenceSpark } from '../components/charts';
import { Brand } from '../components/Brand';
@@ -153,7 +154,7 @@ function LegacyMonitorScreen({ native }: {
{tr(frozen ? <header className="section-toolbar"><div><div className="snapshot__brand-title"><Brand variant="lockup" height={24} decorative/><h1 className="h2">{tr("Monitor")}</h1></div><p className="small muted">{tr(frozen.modelLabel)} · {tr(frozen.time)}</p></div></header> : null)}
{tr(multipleModels ? <section className="st-card"><h2 className="h4">{tr("Model performance")}</h2><div className="st-tablewrap"><table className="st-table native-performance-table"><thead><tr><th>{tr("Model / device")}</th><th>{tr("Generating tok/s")}</th><th>{tr("Reading tok/s")}</th><th>{tr("State")}</th><th>{tr("Active / queued")}</th></tr></thead><tbody>{tr(runtime?.instances.map(i => { const recent = (data.requests ?? []).find(r => r.instanceId === i.id); const writing = i.phase === 'generating' || i.phase === 'thinking', reading = i.phase === 'reading'; return <tr key={i.id}><td><button className="text-btn strong" onClick={() => chooseInstance(i.id)}>{tr(instanceLabel(i))}</button><small>{tr(deviceLabel(i.gpuIds, inventory))}</small></td><td>{tr(number(writing ? i.outputTps : recent?.tps, 1))}<small>{tr(writing ? 'Now' : recent ? 'Last request' : 'No request yet')}</small></td><td>{tr(number(reading ? i.promptTps : recent?.promptTps, 0))}<small>{tr(reading ? 'Now' : recent ? 'Last request' : 'No request yet')}</small></td><td>{tr(i.phase)}{tr(runtime.mode === 'simulated' ? <small>{tr("Illustrative")}</small> : null)}</td><td>{tr(number(i.active))} / {tr(number(i.queued))}</td></tr>; }))}</tbody></table></div></section> : null)}
{tr(multipleModels ? <p className="xs muted monitor-scope-note">{tr(selectedInstance ? selectedInstance.gpuIds.length ? 'Requests, context and speed are scoped to this model. GPU readings include all work on the selected devices.' : 'CPU-only model. Requests and context are scoped to this model; system metrics are shared host measurements.' : 'Select a model for its context and speed. GPU readings and system RAM are shared host measurements.')}</p> : null)}
- <section className="st-card monitor-state" aria-label={tr("Model state")}>
+ <section className="st-card monitor-state" aria-label={tr("Model state")} data-snapshot-skip>
<div className="monitor-state__head"><h2 className="h4">{tr(multipleScope ? 'Model activity' : 'Model state')}</h2><div className="monitor-state__badges">{tr([{ id: 'idle', label: 'Idle' }, { id: 'reading', label: 'Reading' }, { id: 'generating', label: 'Generating' }, { id: 'queued', label: 'Queued' }, { id: 'error', label: 'Error' }].map(s => <span key={s.id} className="st-badge" data-phase={s.id} data-active={phase === s.id || s.id === 'queued' && data.queue.waiting > 0}>{tr(s.label)}{tr(s.id === 'queued' && data.queue.waiting > 0 ? ` (${data.queue.waiting})` : '')}</span>))}</div><div className="monitor-device-selectors">{tr(devices.length > 1 ? <Select ariaLabel={tr("Monitor GPU")} value={gpuChoice} options={[...(selectedInstance ? [{ value: 'assigned', label: 'Assigned GPUs' }] : []), { value: 'all', label: `All GPUs (${devices.length})` }, ...devices.map((gpu, i) => ({ value: gpuId(gpu), label: `GPU ${i + 1} · ${gpu.name}` }))]} onChange={setGpuSelection}/> : null)}{tr(processors.length > 1 ? <Select ariaLabel={tr("Monitor processor")} value={cpuChoice} options={[{ value: 'all', label: `All processors (${processors.length})` }, ...processors.map((p, i) => ({ value: p.id, label: `CPU ${i + 1} · ${p.model}` }))]} onChange={setCpuSelection}/> : null)}</div></div>
<div className="monitor-state__reading small"><span>{tr(multipleScope ? `${number(data.queue.running)} active · ${number(data.queue.waiting)} queued` : data.phase === 'idle' ? 'Waiting for a request' : data.phaseLabel)}</span><span className="muted num">{tr(statusDetail)}</span></div>
{tr(!multipleScope ? <Bar label={tr("Model progress")} value={progress ?? 0} indeterminate={writing && !hasReading(progress)} tone={data.phase === 'reading' ? 'info' : 'accent'}/> : null)}
@@ -176,10 +177,10 @@ function LegacyMonitorScreen({ native }: {
</section>
<section className="st-card monitor-requests"><div className="section-toolbar"><h2 className="h4">{tr("Recent requests")}</h2>{tr(requests.length > 12 ? <Btn size="sm" onClick={() => setShowAll(!showAll)}>{tr(showAll ? 'Show fewer' : `Show all (${requests.length})`)}</Btn> : null)}</div>
<div className="st-tablewrap monitor-request-table" data-expanded={showAll}><table className="st-table"><thead><tr><th>{tr("Time")}</th><th>{tr("Status")}</th>{tr(multipleModels ? <th>{tr("Model")}</th> : null)}<th className="num">{tr("Prompt")}</th><th className="num">{tr("Reused")}</th><th className="num">{tr("Output")}</th><th className="num">{tr("Tok/s")}</th><th className="num" title={tr("Experts already in GPU memory; PCIe share is shown separately when reported.")}>{tr("VRAM hit rate")}</th><th className="num">{tr("Duration")}</th></tr></thead><tbody>{tr(visibleRequests.length ? visibleRequests.map(r => <tr key={r.id}><td>{tr(new Date(r.at).toLocaleTimeString(localeTag(), { hour: '2-digit', minute: '2-digit', second: '2-digit' }))}</td><td><span className="request-status" data-state={r.state}>{tr(requestStatus(r))}</span>{tr(r.usageSource === 'demo' ? <span className="monitor-request-source xs muted">{tr("Illustrative")}</span> : null)}</td>{tr(multipleModels ? <td><span className="xs">{tr(r.model)}</span></td> : null)}<td className="num">{tr(number(r.tokensIn))}</td><td className="num">{tr(number(r.cachedTokens))}</td><td className="num">{tr(number(r.tokensOut))}</td><td className="num">{tr(number(r.tps, 1))}</td><td className="num">{tr(hasReading(r.hitRate) ? `${number(r.hitRate * 100, 1)}%` : '—')}{tr(hasReading(r.pcieShare) && r.pcieShare > 0 ? <span className="xs muted"> +{tr(number(r.pcieShare * 100, 1))}{tr("% PCIe")}</span> : null)}</td><td className="num">{tr(r.durationMs ? duration(r.durationMs) : '—')}</td></tr>) : <tr><td colSpan={multipleModels ? 9 : 8} className="muted">{tr("No requests yet")}</td></tr>)}</tbody></table></div>
- {tr(data.totals.requests > 0 ? <p className="small muted monitor-request-totals">{tr("Since {0}: {1} requests · {2} prompt tokens · {3} output tokens", [new Date(data.totals.since).toLocaleTimeString(localeTag(), {hour:'2-digit',minute:'2-digit'}),tokens(data.totals.requests),tokens(data.totals.tokensIn),tokens(data.totals.tokensOut)])}{hasReading(promptSpeed) ? ` · ${tr("Reading: {0} tok/s", [number(promptSpeed)])}` : ''}{hasReading(outputSpeed) ? ` · ${tr("Generating: {0} tok/s", [number(outputSpeed,1)])}` : ''}{hasReading(reusedTotal) ? ` · ${tr("Reused: {0} tokens", [tokens(data.totals.cachedTokens)])}` : ''}</p> : null)}
+ {tr(data.totals.requests > 0 ? <p className="small muted monitor-request-totals">{requestSummary({ requests: data.totals.requests, output: outputSpeed, reading: promptSpeed, reused: data.totals.cachedTokens }, { number, tokens })}</p> : null)}
</section>
</div>
- <section className="st-card monitor-cache"><div className="section-toolbar"><h2 className="h4">{tr("Conversation cache")}</h2>{tr(lastReused ? <span className="small muted">{tr("{0} of {1} requests reused prompt tokens", [number(cache?.requestsReused ?? reused.filter(r => (r.cachedTokens ?? 0) > 0).length),number(cache?.requests ?? requests.length)])}</span> : null)}</div>
+ <section className="st-card monitor-cache" data-snapshot-skip><div className="section-toolbar"><h2 className="h4">{tr("Conversation cache")}</h2>{tr(lastReused ? <span className="small muted">{tr("{0} of {1} requests reused prompt tokens", [number(cache?.requestsReused ?? reused.filter(r => (r.cachedTokens ?? 0) > 0).length),number(cache?.requests ?? requests.length)])}</span> : null)}</div>
{tr(cache?.enabled ? <div className="monitor-cache-bars"><div><div className="monitor-bar-reading"><span>{tr("Parked conversations")}</span><span className="muted num">{tr(number(cache.parked))} / {tr(number(cache.slots))}</span></div><ReadingBar label={tr("Parked conversations")} value={percent(cache.parked, cache.slots)}/></div><div><div className="monitor-bar-reading"><span>{tr("Their memory (RAM)")}</span><span className="muted num">{tr(number(cache.memoryGb, 1))} / {tr(number(cache.budgetGb, 1))}{tr(" GB")}</span></div><ReadingBar label={tr("Conversation cache memory")} value={percent(cache.memoryGb, cache.budgetGb)}/></div></div> : null)}
<dl className="monitor-cache-facts"><div><dt>{tr("Last request")}</dt><dd>{tr(lastCacheText)}</dd></div><div><dt>{tr("Reused since start")}</dt><dd>{tr(hasReading(reusedTotal) ? `${tokens(data.totals.cachedTokens)} tokens` : '—')}</dd></div>{tr(cache?.enabled ? <><div><dt>{tr("Parked / restored")}</dt><dd>{tr(number(cache.parks))} / {tr(number(cache.restores))}{tr(cache.evictions ? ` · ${number(cache.evictions)} evicted` : '')}</dd></div>{tr(cache.lastEvent ? <div><dt>{tr("Last switch")}</dt><dd>{tr(cache.lastEvent === 'parked' ? 'Parked' : 'Restored')} {tr(tokens(cache.lastTokens))}{tr(" tokens")}{tr(cache.lastAt ? ` · ${new Date(cache.lastAt * 1000).toLocaleTimeString(localeTag())}` : '')}</dd></div> : null)}</> : null)}</dl>
<p className="small muted">{tr(cache?.enabled ? 'Parked conversations resume from their saved state. The oldest is removed when the cache fills.' : lastReused ? 'Follow-up requests can reuse the previous prompt’s cached tokens.' : 'Cache details appear when the engine reports prompt reuse.')}</p>
diff --git a/apps/host/src/screens/Settings.tsx b/apps/host/src/screens/Settings.tsx
index 4976a7657..d608f2d9c 100644
--- a/apps/host/src/screens/Settings.tsx
+++ b/apps/host/src/screens/Settings.tsx
@@ -6,6 +6,7 @@ import { Brand } from '../components/Brand';
import { SettingsModels } from '../components/SettingsModels';
import { SettingsTools } from '../components/SettingsTools';
import { SettingsStorage } from '../components/SettingsStorage';
+import { PrivacyNotes } from '../components/PrivacyNotes';
import { SettingsUpdates } from '../components/SettingsUpdates';
import { NativeOperations } from '../components/NativeOperations';
import { FontChoice } from '../components/FontChoice';
@@ -34,7 +35,6 @@ export function SettingsScreen() {
{ section: 'Reading & focus', label: 'Motion', hint: 'Reduced motion also disables smooth scrolling.', aliases: 'animation system full reduced', control: <Select value={prefs.motion} ariaLabel={tr("Motion")} options={[{ value: 'system', label: 'Follow system' }, { value: 'full', label: 'Full' }, { value: 'reduced', label: 'Reduced' }]} onChange={setMotion}/> },
{ section: 'Reading & focus', label: 'Transparency', hint: 'Translucent controls or solid surfaces. Text stays opaque.', aliases: 'blur glass liquid opaque translucent', control: <Select value={prefs.transparency} ariaLabel={tr("Transparency")} options={[{ value: 'translucent', label: 'Translucent' }, { value: 'opaque', label: 'Opaque' }]} onChange={setTransparency}/> },
{ section: 'Reading & focus', label: 'Focus reading', hint: 'Hides navigation in chat. Settings stays open above the conversation.', aliases: 'distraction quiet', control: <button className="st-toggle" role="switch" aria-checked={prefs.focus} aria-label={tr("Focus reading")} onClick={() => setFocus(!prefs.focus)}/> },
- { section: 'Privacy', label: 'Collection and logs', hint: 'Strata sends no usage telemetry. Conversations stay in browser storage. When you choose an API model, that conversation and enabled skill instructions are sent to its provider. The UI request log keeps client, timing and token metadata in memory. Native API monitoring can retain request content in memory when enabled. Connected tools access the resources you configure.', aliases: 'telemetry reporting tracking privacy logging requests', control: null },
];
function activate(name: typeof PANELS[number]['name']) {
setSettingsSection(name);
@@ -60,6 +60,7 @@ export function SettingsScreen() {
<div className="st-card st-card--flush">
{tr(section === 'About' ? <div className="settings-about-brand"><Brand variant="lockup" height={28}/></div> : null)}
{tr(section === 'Storage' ? <SettingsStorage /> : null)}
+ {tr(section === 'Privacy' ? <PrivacyNotes /> : null)}
{tr(section === 'Update' ? <SettingsUpdates /> : null)}
{tr(fields.filter(f => f.section === section).map(f => <Field key={f.label} label={tr(f.label)} hint={tr(f.hint)}>{tr(f.control)}</Field>))}
</div>
diff --git a/apps/host/src/screens/Tasks.tsx b/apps/host/src/screens/Tasks.tsx
index 5d04d614f..98082a5ac 100644
--- a/apps/host/src/screens/Tasks.tsx
+++ b/apps/host/src/screens/Tasks.tsx
@@ -1,30 +1,21 @@
import {localeTag} from '../lib/i18n';
import { tr } from '../lib/i18n';
import { useLocation, navigate } from '../lib/router';
-import { FloatingMenu } from '../components/FloatingMenu';
-import { useEffect, useRef, useState } from 'react';
+import { useEffect, useState } from 'react';
import { Btn, Dialog, Icon, IconBtn, Select, ErrorNotice } from '../components/ui';
import { Markdown } from '../components/Markdown';
import { Screen } from '../components/layout';
import { api } from '../lib/client';
-import { useStore } from '../lib/store';
+import { pushToast, useStore } from '../lib/store';
import { blankTask as blank, type Task } from '../lib/tasks';
import { TaskEditor } from '../components/TaskEditor';
-import { TaskDetail, taskState } from '../components/TaskDetail';
-import { useNative } from '../lib/native';
-const templates = [
- { title: 'Daily briefing', icon: 'sun' as const, prompt: 'Write a short briefing from the notes below. Highlight decisions, open questions and next actions.\n\n[Add your notes here]', frequency: 'weekdays', at: '08:00', detail: 'Turn your notes into a focused morning plan.' },
- { title: 'Weekly review', icon: 'check' as const, prompt: 'Review the updates below. Summarize progress, risks and priorities for next week.\n\n[Add your updates here]', frequency: 'weekly', at: '16:00', detail: 'Reflect on progress and plan the next week.' },
- { title: 'Writing practice', icon: 'pencil' as const, prompt: 'Give me one short writing exercise and an example answer. Keep it practical and under 200 words.', frequency: 'daily', at: '09:00', detail: 'A small daily exercise to sharpen your writing.' },
- { title: 'Learning prompt', icon: 'thinking' as const, prompt: 'Teach me one useful concept about statistics. Include a simple example and one question to check my understanding.', frequency: 'daily', at: '18:00', detail: 'Learn one useful concept at a time.' },
-];
+import { TaskDetail } from '../components/TaskDetail';
export function TasksScreen() {
const location = useLocation();
const library = useStore(s => s.library);
const loaded = library?.variants.find(v => v.id === library.loaded);
- const [tasks, setTasks] = useState<Task[]>([]), [query, setQuery] = useState(''), [sort, setSort] = useState('next'), [archived, setArchived] = useState(false);
- const [editor, setEditor] = useState<Task | null>(null), [assistant, setAssistant] = useState(false), [menu, setMenu] = useState(false), [pending, setPending] = useState(false), [error, setError] = useState(''), [ready, setReady] = useState(false), [result, setResult] = useState<string | null>(null), [removeTask, setRemoveTask] = useState(false);
- const trigger = useRef<HTMLButtonElement>(null);
+ const [tasks, setTasks] = useState<Task[]>([]), [query, setQuery] = useState(''), [sort, setSort] = useState('next'), archived = false;
+ const [editor, setEditor] = useState<Task | null>(null), [assistant, setAssistant] = useState(false), [pending, setPending] = useState(false), [error, setError] = useState(''), [ready, setReady] = useState(false), [result, setResult] = useState<string | null>(null), [removeTask, setRemoveTask] = useState(false);
async function refresh() {
const data = await api.get<{
tasks: Task[];
@@ -63,7 +54,7 @@ export function TasksScreen() {
setPending(false);
}
}
- function open(task: Task, assist = false) { setEditor({ ...task }); setAssistant(assist); setMenu(false); setError(''); }
+ function open(task: Task, assist = false) { setEditor({ ...task }); setAssistant(assist); setError(''); }
useEffect(() => {
if (location.query.has('new'))
open(blank());
@@ -76,26 +67,22 @@ export function TasksScreen() {
const currentTask = tasks.find(t => t.id === location.param);
const visible = tasks.filter(t => (!location.param || t.id === location.param) && !!t.archived === archived && `${t.title} ${t.prompt}`.toLowerCase().includes(query.toLowerCase())).sort((a, b) => sort === 'name' ? a.title.localeCompare(b.title) : (a.nextRunAt ?? 'z').localeCompare(b.nextRunAt ?? 'z'));
const selected = tasks.find(t => t.id === result);
- const nativeModel = useNative()?.instances.find(i => i.status === 'ready');
const taskHeader = currentTask ? <div className="task-header-actions">
<IconBtn name={currentTask.enabled ? 'pause' : 'play'} title={tr(currentTask.enabled ? "Pause {0}" : "Resume {0}", [currentTask.title])} disabled={pending || currentTask.status === 'running' || !!currentTask.archived} onClick={() => void action(() => api.patch(`/api/tasks/${currentTask.id}`, { enabled: !currentTask.enabled }))}/>
<IconBtn name="trash" title={tr("Delete {0}", [currentTask.title])} disabled={pending || !!currentTask.archived} onClick={() => setRemoveTask(true)}/>
<Btn icon="pencil" disabled={pending || currentTask.status === 'running'} onClick={() => open(currentTask)}>{tr("Edit")}</Btn>
<Btn variant="primary" icon={currentTask.status === 'running' ? 'stop' : 'bolt'} disabled={pending || !loaded && currentTask.status !== 'running'} onClick={() => void action(() => api.post(`/api/tasks/${currentTask.id}/${currentTask.status === 'running' ? 'stop' : 'run'}`))}>{tr(currentTask.status === 'running' ? 'Stop' : 'Run now')}</Btn>
</div> : null;
- return <Screen title={currentTask ? currentTask.title : "Tasks"} back={currentTask ? { label: 'Tasks', onClick: () => navigate('tasks') } : undefined} titleDetail={currentTask ? <span className="task-state" data-state={taskState(currentTask)}>{tr(({ running: 'Running…', active: 'Active', paused: 'Paused' } as const)[taskState(currentTask)])}</span> : undefined} sub={currentTask ? undefined : "Run a prompt on a schedule, or whenever you need it."} actions={currentTask ? taskHeader : <div className="tasks-actions"><input className="st-input tasks-search" type="search" aria-label={tr("Search tasks")} placeholder={tr("Search tasks…")} value={query} onChange={e => setQuery(e.target.value)}/><Select ariaLabel={tr("Sort tasks")} value={sort} options={[{ value: 'next', label: 'Next run' }, { value: 'name', label: 'Name' }]} onChange={setSort}/><button ref={trigger} className="st-btn st-btn--primary" aria-haspopup="menu" aria-expanded={menu} onClick={() => setMenu(v => !v)}>{tr("New task")}<Icon name="chevron" size={16}/></button></div>}>
+ return <Screen title={currentTask ? <span className="sr-only">{currentTask.title}</span> : "Tasks"} sub={currentTask ? undefined : "Run a prompt on a schedule, or whenever you need it."} actions={currentTask ? taskHeader : <div className="tasks-actions"><input className="st-input tasks-search" type="search" aria-label={tr("Search tasks")} placeholder={tr("Search tasks…")} value={query} onChange={e => setQuery(e.target.value)}/><Select ariaLabel={tr("Sort tasks")} value={sort} options={[{ value: 'next', label: 'Next run' }, { value: 'name', label: 'Name' }]} onChange={setSort}/><IconBtn name="plus" title={tr("New task")} onClick={() => open(blank())}/></div>}>
<div className="tasks-page">
{tr(!currentTask && <p className="task-runtime small muted"><Icon name="clock" size={16}/>{tr(library?.mode === 'simulated' ? 'Example model · sample answers. ' : '')}{tr("Runs while Strata\u2019s host is open. Runs saved instructions using the loaded model.")}</p>)}
- {tr(!currentTask && <label className="row small muted"><input type="checkbox" checked={archived} onChange={e => setArchived(e.target.checked)}/>{tr("Deleted tasks")}</label>)}
{tr(error && !editor ? <ErrorNotice message={error} onRetry={() => void refresh()}/> : null)}
- {tr(currentTask ? null : !ready ? <p className="muted">{tr("Loading tasks\u2026")}</p> : !visible.length ? <div className="tasks-empty"><Icon name="clock" size={72}/><h2 className="h3">{tr(query ? 'No matching tasks' : archived ? 'No deleted tasks' : 'No scheduled tasks yet')}</h2><p className="muted">{tr(query ? 'Try another search.' : 'Start with an idea below, or create your own.')}</p></div> : <div className="task-list">{tr(visible.map(t => <article key={t.id} className="task-row"><span className="task-icon"><Icon name="clock" size={24}/></span><div className="task-copy"><h2 className="h4">{t.title}</h2><p className="small muted">{tr(t.status === 'running' ? 'Running…' : t.enabled ? (t.nextRunAt ? `Next: ${new Date(t.nextRunAt).toLocaleString(localeTag(), { dateStyle: 'medium', timeStyle: 'short' })}` : 'Scheduled · calculating next run') : 'Paused')} · {tr(t.timeZone)}</p>{tr(t.error ? <button className="task-failed text-action" onClick={() => setResult(t.id!)}>{tr("Last run failed \u00B7 View")}</button> : null)}{tr(t.output ? <button className="text-action" onClick={() => setResult(t.id!)}>{tr("View last result")}{tr(t.demo ? ' · Example' : '')}</button> : null)}</div><div className="row">{tr(t.archived ? <Btn size="sm" onClick={() => void action(() => api.patch(`/api/tasks/${t.id}`, { archived: false, enabled: false }))}>{tr("Restore")}</Btn> : <><IconBtn name="pencil" title={tr("Edit {0}", [t.title])} disabled={pending || t.status === 'running'} onClick={() => open(t)}/><Btn size="sm" icon={t.status === 'running' ? 'stop' : 'bolt'} title={tr(t.status === 'running' ? `Stop ${t.title}` : `Run ${t.title} now`)} disabled={pending || !loaded} onClick={() => void action(() => api.post(`/api/tasks/${t.id}/${t.status === 'running' ? 'stop' : 'run'}`))}>{tr(t.status === 'running' ? 'Stop' : 'Run now')}</Btn><label className="row small"><span>{tr("On schedule")}</span><button className="st-toggle" role="switch" aria-label={tr("Schedule {0}", [t.title])} aria-checked={t.enabled} disabled={pending || t.status === 'running'} onClick={() => void action(() => api.patch(`/api/tasks/${t.id}`, { enabled: !t.enabled }))}/></label></>)}</div></article>))}</div>)}
- {tr(currentTask ? <TaskDetail task={currentTask} modelName={nativeModel?.label ?? null}/> : null)}
- {tr(!tasks.some(t => !t.archived) && !query && !archived ? <section className="task-templates" aria-label={tr("Task ideas")}>{tr(templates.map(t => <button key={t.title} className="task-template" onClick={() => open({ ...blank(), ...t, title: tr(t.title), prompt: tr(t.prompt), weekday: 5 })}><span className="task-icon"><Icon name={t.icon} size={24}/></span><span><strong>{tr(t.title)}</strong><span className="small muted">{tr(t.detail)}</span><span className="xs muted"><Icon name="clock" size={13}/>{tr(t.frequency === 'weekly' ? 'Fridays' : t.frequency === 'weekdays' ? 'Weekdays' : 'Daily')} · {tr(t.at)}</span></span></button>))}</section> : null)}
+ {tr(currentTask ? null : !ready ? <p className="muted">{tr("Loading tasks\u2026")}</p> : !visible.length ? <div className="tasks-empty"><Icon name="clock" size={72}/><h2 className="h3">{tr(query ? 'No matching tasks' : 'No scheduled tasks yet')}</h2><p className="muted">{tr(query ? 'Try another search.' : 'Create one with the + button.')}</p></div> : <div className="task-list">{tr(visible.map(t => <article key={t.id} className="task-row"><span className="task-icon"><Icon name="clock" size={24}/></span><div className="task-copy"><h2 className="h4">{t.title}</h2><p className="small muted">{tr(t.status === 'running' ? 'Running…' : t.enabled ? (t.nextRunAt ? `Next: ${new Date(t.nextRunAt).toLocaleString(localeTag(), { dateStyle: 'medium', timeStyle: 'short' })}` : 'Scheduled · calculating next run') : 'Paused')} · {tr(t.timeZone)}</p>{tr(t.error ? <button className="task-failed text-action" onClick={() => setResult(t.id!)}>{tr("Last run failed \u00B7 View")}</button> : null)}{tr(t.output ? <button className="text-action" onClick={() => setResult(t.id!)}>{tr("View last result")}{tr(t.demo ? ' · Example' : '')}</button> : null)}</div><div className="row"><><IconBtn name="pencil" title={tr("Edit {0}", [t.title])} disabled={pending || t.status === 'running'} onClick={() => open(t)}/><Btn size="sm" icon={t.status === 'running' ? 'stop' : 'bolt'} title={tr(t.status === 'running' ? `Stop ${t.title}` : `Run ${t.title} now`)} disabled={pending || !loaded} onClick={() => void action(() => api.post(`/api/tasks/${t.id}/${t.status === 'running' ? 'stop' : 'run'}`))}>{tr(t.status === 'running' ? 'Stop' : 'Run now')}</Btn><label className="row small"><span>{tr("On schedule")}</span><button className="st-toggle" role="switch" aria-label={tr("Schedule {0}", [t.title])} aria-checked={t.enabled} disabled={pending || t.status === 'running'} onClick={() => void action(() => api.patch(`/api/tasks/${t.id}`, { enabled: !t.enabled }))}/></label></></div></article>))}</div>)}
+ {tr(currentTask ? <TaskDetail task={currentTask}/> : null)}
</div>
- {tr(menu ? <FloatingMenu anchor={trigger.current} title={tr("New task")} onClose={() => setMenu(false)}><button role="menuitem" className="menu__item" disabled={!loaded} onClick={() => open(blank(), true)}><Icon name="thinking"/>{tr("Create with AI")}</button><button role="menuitem" className="menu__item" onClick={() => open(blank())}><Icon name="sliders"/>{tr("Set up manually")}</button></FloatingMenu> : null)}
{tr(editor ? <TaskEditor task={editor} assistant={assistant} onClose={closeEditor}/> : null)}
<Dialog open={!!result} title={selected ? <span>{selected.title}</span> : tr('Task result')} onClose={() => setResult(null)} sheet>{tr(selected ? <><p className="small muted">{tr(selected.lastRunAt ? new Date(selected.lastRunAt).toLocaleString(localeTag()) : '')}{tr(selected.demo ? ' · Example result' : '')}</p><div className="document-markdown">{tr(selected.error ? <ErrorNotice message={selected.error} next={tr("Try running this task again.")}/> : <Markdown text={selected.output ?? tr('No result yet.')}/>)}</div></> : null)}</Dialog>
- <Dialog open={removeTask && !!currentTask} compact title={tr("Delete this task?")} onClose={() => !pending && setRemoveTask(false)} actions={<><Btn disabled={pending} onClick={() => setRemoveTask(false)}>{tr("Keep task")}</Btn><Btn variant="danger" disabled={pending} onClick={() => { const id = currentTask?.id; void action(() => api.patch(`/api/tasks/${id}`, { archived: true, enabled: false })).then(() => { setRemoveTask(false); navigate('tasks'); }); }}>{tr("Delete task")}</Btn></>}><div className="stack stack--sm"><p><strong>“{currentTask?.title}”</strong>{tr(" will stop running and be removed from your active tasks.")}</p><p className="small muted">{tr("Your instructions and last result are kept in Deleted tasks. You can restore the task there; its schedule will stay paused.")}</p></div></Dialog>
+ <Dialog open={removeTask && !!currentTask} compact title={tr("Remove this task?")} onClose={() => !pending && setRemoveTask(false)} actions={<><Btn disabled={pending} onClick={() => setRemoveTask(false)}>{tr("Keep task")}</Btn><Btn variant="danger" disabled={pending} onClick={() => { const id = currentTask?.id; void action(() => api.patch(`/api/tasks/${id}`, { archived: true, enabled: false })).then(() => { setRemoveTask(false); pushToast('success', 'Task removed'); navigate('tasks'); }); }}>{tr("Remove task")}</Btn></>}><div className="stack stack--sm"><p><strong>“{currentTask?.title}”</strong>{tr(" will stop running and be removed.")}</p></div></Dialog>
</Screen>;
}
diff --git a/apps/host/src/styles/app.css b/apps/host/src/styles/app.css
index e6285b09f..0963645c4 100644
--- a/apps/host/src/styles/app.css
+++ b/apps/host/src/styles/app.css
@@ -7230,3 +7230,46 @@ textarea {
.tsc-diff__row--add { background: var(--st-accent-tint); } .tsc-diff__row--del { background: var(--st-danger-tint); }
.tsc-diff__gap { padding: 2px 8px; color: var(--st-ink-muted); font-family: var(--st-font); font-size: var(--st-fs-xs); background: var(--st-surface-2); margin: 2px 0; }
@media (max-width: 560px) { .tsc-pair, .tsc-heads { grid-template-columns: 1fr; } .tsc-pair--text > div + div { border-left: 0; padding-left: 0; } }
+
+/* ---- Settings > Storage: downloaded optimized models ---- */
+.storage-models { list-style: none; margin: 0; padding: 0; border: 1px solid var(--st-line); border-radius: var(--st-r-md); overflow: hidden; }
+.storage-model { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 8px 12px 8px 14px; }
+.storage-model + .storage-model { border-top: 1px solid var(--st-line-soft); }
+.storage-model__name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
+.storage-model__name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.storage-model__size { font-variant-numeric: tabular-nums; font-size: var(--st-fs-sm); }
+
+/* ---- Settings > Storage: downloaded optimized models ---- */
+.storage-models { list-style: none; margin: 0; padding: 0; border: 1px solid var(--st-line); border-radius: var(--st-r-md); overflow: hidden; }
+.storage-model { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 8px 12px 8px 14px; }
+.storage-model + .storage-model { border-top: 1px solid var(--st-line-soft); }
+.storage-model__name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
+.storage-model__name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.storage-model__size { font-variant-numeric: tabular-nums; font-size: var(--st-fs-sm); }
+
+/* ---- Settings > Storage: downloaded optimized models ---- */
+.storage-models { list-style: none; margin: 0; padding: 0; border: 1px solid var(--st-line); border-radius: var(--st-r-md); overflow: hidden; }
+.storage-model { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 8px 12px 8px 14px; }
+.storage-model + .storage-model { border-top: 1px solid var(--st-line-soft); }
+.storage-model__name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
+.storage-model__name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.storage-model__size { font-variant-numeric: tabular-nums; font-size: var(--st-fs-sm); }
+
+/* ---- About > Privacy ---- */
+.privacy-notes { list-style: none; margin: 0; padding: 4px 4px 2px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
+.privacy-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--st-fs-sm); line-height: 1.45; color: var(--st-ink-soft); }
+.privacy-notes li svg { flex: none; margin-top: 2px; color: var(--st-icon); }
+.privacy-notes li[data-strong] { grid-column: 1 / -1; color: var(--st-ink); font-weight: 700; }
+.privacy-notes li[data-strong] svg { color: var(--st-accent-text); }
+@media (max-width: 720px) { .privacy-notes { grid-template-columns: 1fr; } }
+
+/* ---- an opened task: the name, and a last answer that is easy to read ---- */
+.task-name { margin: 0 0 2px; font-size: var(--st-fs-xl); letter-spacing: -.02em; }
+.task-answer { font-size: var(--st-fs-md); line-height: 1.65; color: var(--st-ink); max-width: 72ch; }
+.task-answer > * + * { margin-top: 12px; }
+.task-answer h1, .task-answer h2, .task-answer h3 { margin: 18px 0 6px; line-height: 1.3; letter-spacing: -.01em; }
+.task-answer h1 { font-size: var(--st-fs-lg); } .task-answer h2, .task-answer h3 { font-size: var(--st-fs-base); }
+.task-answer p { margin: 0; }
+.task-answer ul, .task-answer ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
+.task-answer pre { max-height: 260px; overflow: auto; }
+.task-answer table { font-size: var(--st-fs-sm); }
diff --git a/apps/host/tests/ui4-fixes.test.mjs b/apps/host/tests/ui4-fixes.test.mjs
new file mode 100644
index 000000000..b42749f26
--- /dev/null
+++ b/apps/host/tests/ui4-fixes.test.mjs
@@ -0,0 +1,60 @@
+/** Owner test round 6: short model names, one logs button, the Monitor sentence and screenshot, Tasks without the deleted list and the suggestions. */
+import test from 'node:test';
+import assert from 'node:assert/strict';
+import { readFile } from 'node:fs/promises';
+import { build } from 'esbuild';
+import { fileURLToPath } from 'node:url';
+
+const src = f => fileURLToPath(new URL(`../src/${f}`, import.meta.url));
+const read = f => readFile(src(f), 'utf8');
+async function load(file) {
+ const result = await build({ entryPoints: [src(`lib/${file}`)], bundle: true, format: 'esm', platform: 'node', write: false, alias: { react: fileURLToPath(new URL('./helpers/react-stub.mjs', import.meta.url)) }, logLevel: 'silent', loader: { '.json': 'json' } });
+ return import(`data:text/javascript;base64,${Buffer.from(result.outputFiles[0].text).toString('base64')}`);
+}
+globalThis.window ??= globalThis; globalThis.localStorage ??= { getItem: () => null, setItem: () => {} };
+globalThis.navigator ??= { language: 'en' };
+
+test('item 1: downloaded models get a short name, family and quantization', async () => {
+ const { nativeShortName } = await load('native-names.ts');
+ assert.equal(nativeShortName('swift-iq2_xs'), 'Swift IQ2_XS');
+ assert.equal(nativeShortName('iq3_s'), 'IQ3_S');
+ assert.equal(nativeShortName('unsloth-ud-q4_k_xl'), 'Unsloth UD-Q4_K_XL');
+ assert.equal(nativeShortName('gyro-gyro-s'), 'Gyro-S');
+ assert.equal(nativeShortName('coder-iq1_m'), 'Coder IQ1_M');
+ assert.equal(nativeShortName('nvfp4-nvfp4'), 'NVFP4 NVFP4');
+ const storage = await read('components/SettingsStorage.tsx');
+ assert.match(storage, /title=\{m\.model_name \|\| m\.model\}/, 'the full name is the tooltip');
+});
+
+test('item 2: Diagnostics has one button, View logs; Save logs lives in the logs view', async () => {
+ const ops = await read('components/NativeOperations.tsx');
+ const card = ops.slice(ops.indexOf('tr("Diagnostics")'), ops.indexOf('<Dialog open={showLogs}'));
+ assert.equal((card.match(/<Btn /g) ?? []).length, 1, 'one button in the Diagnostics card');
+ assert.match(card, /View logs/); assert.ok(!/Save logs/.test(card));
+ const dialog = ops.slice(ops.indexOf('<Dialog open={showLogs}'), ops.indexOf('</Dialog>', ops.indexOf('<Dialog open={showLogs}')));
+ assert.match(dialog, /Save logs/);
+});
+
+test('item 4: the Monitor sentence is plain words; the screenshot leaves out the model state and the conversation cache', async () => {
+ const { requestSummary } = await load('monitor-summary.ts');
+ const f = { number: (n, d = 0) => n.toLocaleString('en', { maximumFractionDigits: d, minimumFractionDigits: d }), tokens: n => n >= 1000 ? `${Math.round(n / 1000)}K` : String(n) };
+ assert.equal(requestSummary({ requests: 18, output: 47.4, reading: 1332, reused: 91000 }, f), 'In 18 requests your average output was 47.4 tok/s and prompt reading 1,332 tok/s, reusing 91K tokens.');
+ assert.equal(requestSummary({ requests: 3, output: 40 }, f), 'In 3 requests your average output was 40.0 tok/s.');
+ assert.equal(requestSummary({ requests: 2 }, f), '2 requests so far.');
+ const monitor = await read('screens/Monitor.tsx');
+ assert.match(monitor, /monitor-state" aria-label=\{tr\("Model state"\)\} data-snapshot-skip/);
+ assert.match(monitor, /monitor-cache" data-snapshot-skip/);
+ assert.match(await read('lib/snapshot.ts'), /querySelectorAll\('\[data-snapshot-skip\]'\)/);
+});
+
+test('items 6, 7, 8: Bypass permissions everywhere, no deleted-tasks list or suggestions, a + icon, and a plain "Task removed"', async () => {
+ const tasks = await read('screens/Tasks.tsx'), detail = await read('components/TaskDetail.tsx'), editor = await read('components/TaskEditor.tsx'), tree = await read('app/TaskTree.tsx'), lib = await read('lib/tasks.ts');
+ for (const [name, text] of [['Tasks', tasks], ['TaskDetail', detail], ['TaskEditor', editor], ['TaskTree', tree]]) assert.ok(!/Allowed to make changes/.test(text), `${name} still says it`);
+ assert.match(detail, /Bypass permissions/); assert.match(editor, /Bypass permissions/);
+ assert.match(lib, /mode:'bypass'/, 'a new task starts as Bypass permissions');
+ assert.ok(!/Deleted tasks|task-templates|Restore/.test(tasks), 'no deleted list, suggestions or restore on the Tasks screen');
+ assert.match(tasks, /IconBtn name="plus"/);
+ assert.ok(!/back=\{|titleDetail=/.test(tasks), 'nothing on the left of the navbar of an opened task');
+ assert.ok(!/modelName|"Model"/.test(detail), 'no Model section');
+ assert.match(tree, /pushToast\('success', 'Task removed'\)/); assert.match(tasks, /pushToast\('success', 'Task removed'\)/);
+});