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++
calmer Time-skip wording (one note, no repeated reassurance), plain Manual reason for the person's command tools, agent README for Settings Tools
Niko12218075af7c2a48
diff --git a/apps/host/server/agent/README.md b/apps/host/server/agent/README.mdindex d7418ff7f..d7959a86d 100644--- a/apps/host/server/agent/README.md+++ b/apps/host/server/agent/README.md@@ -61,7 +61,17 @@ The chat's Mode menu is real Harness behaviour. Each turn the page sends the cha## Tools-`preset.mjs` is the agent preset: the Harness `standard` preset minus the scheduler (Tasks is the only one), web search (needs a key the app has none of; `search: true` switches it on), the agent's own question tool (no place to answer) and the Harness's plan mode. `tests/agent-tools.test.mjs` compares the list with the pinned Harness's own preset file and the tools it actually offers. The model's tool servers (Settings, Tools) are connected as Harness MCP client rows (`mcpRows` in `profile.mjs`); their secrets travel in the agent's environment, never in the profile file.+`preset.mjs` is the agent preset: the Harness `standard` preset minus the scheduler (Tasks is the only one), the agent's own question tool (no place to answer) and the Harness's plan mode. `tests/agent-tools.test.mjs` compares the list with the pinned Harness's own file, so a Harness update that adds or renames a plugin fails a test instead of silently dropping a tool.++### Settings -> Tools++What the person chose is saved by `tools-settings.mjs` (inside the host's settings file) and shown by `src/components/SettingsTools.tsx` (`GET/PUT /api/agent/tools`, `POST/PATCH/DELETE /api/agent/tools/custom[/id]`). A change reaches the agent from the next message: the profile carries a `toolsSignature`, and the bridge restarts the Harness (after the running turns end) when it differs.++- Tool groups (`tools-catalog.mjs`): each is one switch in plain words and is one or more preset plugins (`withoutDisabled`); `fetch` and `search` are the two halves of the Harness's `tool-web` (both off drops it). Goals off: `/goal` answers that goals are turned off.+- Web search needs no account. The default is DuckDuckGo's HTML result page (`../web-search-ddg.mjs`): a browser User-Agent, one request at a time at least 1.5 s apart, at most 20 a minute, a 10 minute cache per query, a 15 s limit, the lite page as a fallback, and a plain message when DuckDuckGo asks for a human check ("limiting searches from this computer"). **The results come from DuckDuckGo**; they are not ranked or filtered here. The person may switch to Exa, Perplexity or DeepSeek with their own key (`../web-search-keyed.mjs`; DeepSeek uses the Harness's own provider): the key is saved in the settings file, reaches the agent only as the environment variable `STRATA_SEARCH_KEY`, never the profile file and never the screen (it only learns `keySet`). A keyed service without its key falls back to DuckDuckGo. The profile pins `web.searchProvider` to the chosen id so two usable backends cannot make the choice ambiguous.+- The browser: Playwright's MCP server (`@playwright/mcp`, staged next to the Harness by `apps/desktop/scripts/stage-harness.mjs`) on the person's own Chrome, Edge or Chromium (`browser-probe.mjs`), `--isolated` so it never sees their profile. Tools appear as `mcp__browser__browser_*`. In Manual, opening a page, clicking, typing, uploading, running a script in the page and closing tabs ask (plain reasons: "Open the web page ...", "Click on the page: ..."); looking (snapshot, screenshot, console, network, waiting, listing tabs) does not. Plan refuses every connected tool. The screen says plainly when no browser, or no tool server, is found.+- The person's own tools: `instructions` (the tool returns their text; look-only, never asks), `command` (runs their command with the assistant's text in the `STRATA_INPUT` environment variable, never spliced into the command line; asks in Manual, refused in Plan) and `server` (a web address or a program, added as `mcp__custom-<name>__*`; asks in Manual). Instruction and command tools are served by `custom-tools-mcp.mjs` (stdio MCP) from a JSON file the settings module rewrites on every change, so a switch in Settings is seen without a restart.+- `strata-gate.mjs` implements the Manual/Plan rules above (`planDecision`, `browserDecision`, the look-only instruction server).## Helper agents (subagents)@@ -90,6 +100,6 @@ Failures the person sees are plain sentences with a next step (`AgentUnavailable## Tests-`tests/agent-events.test.mjs` (pure), `tests/agent-bridge.test.mjs`, `tests/agent-modes.test.mjs` and `tests/agent-host.test.mjs` (need a built Harness:+`tests/agent-events.test.mjs` (pure), `tests/agent-tools-settings.test.mjs` (Settings -> Tools, web search, the browser and the person's own tools; the Harness-backed ones need STRATA_HARNESS_DIR and the browser one also Chrome or Edge), `tests/agent-bridge.test.mjs`, `tests/agent-modes.test.mjs` and `tests/agent-host.test.mjs` (need a built Harness:`STRATA_HARNESS_DIR=<checkout>`, otherwise they skip and say so). The model in those tests is `tests/helpers/scripted-worker.mjs`.`scripts/agent-flow.mjs` drives the real app in Chrome and takes screenshots.diff --git a/apps/host/server/agent/plugins/strata-gate.mjs b/apps/host/server/agent/plugins/strata-gate.mjsindex 743a68b84..b8640bf4a 100644--- a/apps/host/server/agent/plugins/strata-gate.mjs+++ b/apps/host/server/agent/plugins/strata-gate.mjs@@ -30,6 +30,8 @@ export const MANUAL_PRESET = 'strata-manual';export const PLAN_PRESET = 'strata-plan';/** The app's own look-only tool server (the person's instruction tools): it only hands back text. */const LOOK_ONLY_SERVER = 'mcp__strata-instructions__';+/** The tools a person wrote as commands (Settings -> Tools): the card says which one runs and with what text. */+const COMMANDS_SERVER = 'mcp__strata-commands__';/** The browser tool server's name in the agent (Settings -> Tools). Looking at the page does not ask; acting on it does. */const BROWSER_SERVER = 'mcp__browser__';const BROWSER_LOOKING = new Set(['browser_snapshot', 'browser_take_screenshot', 'browser_console_messages', 'browser_network_requests', 'browser_wait_for']);@@ -120,6 +122,7 @@ export function manualDecision(exec) {if (tool === 'job_kill') return { kind: 'ask', reason: 'Stop a background task' };if (tool.startsWith(LOOK_ONLY_SERVER)) return null;if (tool.startsWith(BROWSER_SERVER)) return browserDecision(tool.slice(BROWSER_SERVER.length), args);+ if (tool.startsWith(COMMANDS_SERVER)) return { kind: 'ask', reason: `Run your tool “${tool.slice(COMMANDS_SERVER.length).replace(/_/g, ' ')}”${args.input ? ` with: ${clip(args.input, 120)}` : ''}` };if (tool.startsWith('mcp__')) return { kind: 'ask', reason: `Use the connected tool ${tool.split('__').slice(1).join(' / ')}` };return { kind: 'ask', reason: `Use the tool ${tool}` };}diff --git a/apps/host/src/lib/store.ts b/apps/host/src/lib/store.tsindex 89e27cc1e..21d9629ae 100644--- a/apps/host/src/lib/store.ts+++ b/apps/host/src/lib/store.ts@@ -1113,8 +1113,8 @@ export function setTimeSkipResult(sessionId: string, runId: string, version: TimThe host copies the chat's folder, lets the assistant change the copy, checks it and keeps the original untouched until theperson chooses. The sidebar follows the job's own record; nothing here invents progress. */const TS_TERMINAL = ['completed', 'cancelled', 'failed', 'interrupted'];-const TS_WORKING = () => tr('Working on a copy of your files. Your files are not touched until you choose to keep the update. Follow the progress in the sidebar.');-const TS_READY = () => tr('The result is ready. Switch between Original and Updated, or compare them side by side. Your files stay as they are until you keep the update.');+const TS_WORKING = () => tr('Working on a copy of your files. Follow the progress in the sidebar.');+const TS_READY = () => tr('The result is ready. Switch between Original and Updated, or compare them side by side.');function patchRun(sessionId: string, runId: string, fn: (run: TimeSkipRun) => TimeSkipRun, content?: string) {patchSession(sessionId, s => ({ ...s, updatedAt: new Date().toISOString(),@@ -1218,7 +1218,7 @@ export async function keepTimeSkip(sessionId: string, runId: string, version: Tiif (version === 'updated') await api.post('/api/timeskip/apply', { id: job.id, attempt: job.applyAttempt ?? null });else await api.post('/api/timeskip/apply', { id: job.id, restore: true });patchRun(sessionId, runId, r => ({ ...r, retainedVersion: version }));- pushToast('success', version === 'updated' ? tr('The update is now in your files') : tr('Your original files are back'), version === 'updated' ? tr('You can switch back to the original any time from this panel.') : undefined);+ pushToast('success', version === 'updated' ? tr('The update is now in your files') : tr('Your original files are back'));} catch (e) {pushToast('error', tr('Your files were not changed'), plainTimeSkipError(e instanceof Error ? e.message : String(e)));}diff --git a/apps/host/src/locales/de.json b/apps/host/src/locales/de.jsonindex ab88e60c6..01bdc0e8a 100644--- a/apps/host/src/locales/de.json+++ b/apps/host/src/locales/de.json@@ -2709,8 +2709,6 @@"s2708": "Die Schleife ist gestoppt.","s2709": "Die Schleife wurde nach {0} Durchläufen gestoppt. Tippe erneut /loop, um sie neu zu starten.","s2710": "Dieser Chat hat bereits eine Schleife. Tippe zuerst /loop stop und starte dann eine neue.",- "s2711": "Es wird an einer Kopie deiner Dateien gearbeitet. Deine Dateien bleiben unberührt, bis du die Aktualisierung behältst. Den Fortschritt siehst du in der Seitenleiste.",- "s2712": "Das Ergebnis ist fertig. Wechsle zwischen Original und Aktualisiert oder vergleiche beide nebeneinander. Deine Dateien bleiben unverändert, bis du die Aktualisierung behältst.","s2713": "Deine Dateien haben sich nach dem Start dieses Versuchs geändert, daher wurde nichts überschrieben. Starte Time-skip erneut.","s2714": "Lade zuerst ein Modell und versuche Time-skip dann erneut.","s2715": "Der Assistent war nicht erreichbar. Versuche es erneut.",@@ -2721,7 +2719,6 @@"s2720": "Time-skip hat die Verbindung zur App verloren und wurde gestoppt. Deine Dateien wurden nicht geändert.","s2721": "Die Aktualisierung ist jetzt in deinen Dateien","s2722": "Deine ursprünglichen Dateien sind wieder da",- "s2723": "Du kannst jederzeit in diesem Bereich zum Original zurückwechseln.","s2724": "Deine Dateien wurden nicht geändert","s2725": "Die Werkzeugliste wird geladen…","s2726": "Wähle, was der Assistent in deinen Chats verwenden darf. Eine Änderung gilt ab deiner nächsten Nachricht. Im manuellen Modus fragt alles, was deinen Computer verändert, weiterhin zuerst bei dir nach.",@@ -2803,5 +2800,7 @@"s2802": "Die Änderung konnte nicht gespeichert werden.","s2803": "Das Werkzeug konnte nicht gespeichert werden.","s2804": "Das Werkzeug konnte nicht entfernt werden.",- "s2805": "Das Browser-Werkzeug gehört nicht zu dieser Installation."+ "s2805": "Das Browser-Werkzeug gehört nicht zu dieser Installation.",+ "s2806": "Es wird an einer Kopie deiner Dateien gearbeitet. Den Fortschritt siehst du in der Seitenleiste.",+ "s2807": "Das Ergebnis ist fertig. Wechsle zwischen Original und Aktualisiert oder vergleiche beide nebeneinander."}diff --git a/apps/host/src/locales/en.json b/apps/host/src/locales/en.jsonindex 140abb79b..7cad65942 100644--- a/apps/host/src/locales/en.json+++ b/apps/host/src/locales/en.json@@ -2709,8 +2709,6 @@"s2708": "The loop is stopped.","s2709": "The loop stopped after {0} runs. Type /loop again to start it again.","s2710": "This chat already has a loop. Type /loop stop first, then start a new one.",- "s2711": "Working on a copy of your files. Your files are not touched until you choose to keep the update. Follow the progress in the sidebar.",- "s2712": "The result is ready. Switch between Original and Updated, or compare them side by side. Your files stay as they are until you keep the update.","s2713": "Your files changed after this trial started, so nothing was overwritten. Run Time-skip again.","s2714": "Load a model first, then try Time-skip again.","s2715": "The assistant could not be reached. Try again.",@@ -2721,7 +2719,6 @@"s2720": "Time-skip lost contact with the app and stopped. Your files were not changed.","s2721": "The update is now in your files","s2722": "Your original files are back",- "s2723": "You can switch back to the original any time from this panel.","s2724": "Your files were not changed","s2725": "Loading the tool list…","s2726": "Choose what the assistant may use in your chats. A change applies from your next message. In Manual mode, anything that changes your computer still asks you first.",@@ -2803,5 +2800,7 @@"s2802": "The change could not be saved.","s2803": "The tool could not be saved.","s2804": "The tool could not be removed.",- "s2805": "The browser tool is not part of this installation."+ "s2805": "The browser tool is not part of this installation.",+ "s2806": "Working on a copy of your files. Follow the progress in the sidebar.",+ "s2807": "The result is ready. Switch between Original and Updated, or compare them side by side."}diff --git a/apps/host/src/locales/es.json b/apps/host/src/locales/es.jsonindex 77c4e2dea..84736fd7e 100644--- a/apps/host/src/locales/es.json+++ b/apps/host/src/locales/es.json@@ -2709,8 +2709,6 @@"s2708": "El bucle se ha detenido.","s2709": "El bucle se detuvo tras {0} ejecuciones. Escribe /loop otra vez para iniciarlo de nuevo.","s2710": "Este chat ya tiene un bucle. Escribe primero /loop stop y luego inicia uno nuevo.",- "s2711": "Trabajando en una copia de tus archivos. Tus archivos no se tocan hasta que elijas conservar la actualización. Sigue el progreso en la barra lateral.",- "s2712": "El resultado está listo. Cambia entre Original y Actualizado, o compáralos lado a lado. Tus archivos siguen igual hasta que conserves la actualización.","s2713": "Tus archivos cambiaron después de empezar esta prueba, así que no se sobrescribió nada. Ejecuta Time-skip de nuevo.","s2714": "Carga primero un modelo y vuelve a probar Time-skip.","s2715": "No se pudo contactar con el asistente. Inténtalo de nuevo.",@@ -2721,7 +2719,6 @@"s2720": "Time-skip perdió el contacto con la aplicación y se detuvo. Tus archivos no han cambiado.","s2721": "La actualización ya está en tus archivos","s2722": "Tus archivos originales han vuelto",- "s2723": "Puedes volver al original en cualquier momento desde este panel.","s2724": "Tus archivos no han cambiado","s2725": "Cargando la lista de herramientas…","s2726": "Elige qué puede usar el asistente en tus chats. Un cambio se aplica desde tu próximo mensaje. En modo Manual, todo lo que cambie tu ordenador sigue pidiéndote permiso antes.",@@ -2803,5 +2800,7 @@"s2802": "No se pudo guardar el cambio.","s2803": "No se pudo guardar la herramienta.","s2804": "No se pudo quitar la herramienta.",- "s2805": "La herramienta de navegador no forma parte de esta instalación."+ "s2805": "La herramienta de navegador no forma parte de esta instalación.",+ "s2806": "Trabajando en una copia de tus archivos. Sigue el progreso en la barra lateral.",+ "s2807": "El resultado está listo. Cambia entre Original y Actualizado, o compáralos lado a lado."}diff --git a/apps/host/src/locales/ja.json b/apps/host/src/locales/ja.jsonindex b22f15316..7af3baef2 100644--- a/apps/host/src/locales/ja.json+++ b/apps/host/src/locales/ja.json@@ -2709,8 +2709,6 @@"s2708": "ループを停止しました。","s2709": "ループは {0} 回の実行後に停止しました。もう一度始めるには /loop と入力してください。","s2710": "このチャットにはすでにループがあります。先に /loop stop で止めてから、新しく始めてください。",- "s2711": "ファイルのコピーで作業しています。更新を残すと選ぶまで、元のファイルには手を加えません。進み具合はサイドバーで確認できます。",- "s2712": "結果の準備ができました。「元の結果」と「更新後」を切り替えたり、並べて比較したりできます。更新を残すまで、ファイルはそのままです。","s2713": "この試行の開始後にファイルが変更されたため、何も上書きしませんでした。Time-skip をもう一度実行してください。","s2714": "先にモデルを読み込んでから、もう一度 Time-skip をお試しください。","s2715": "アシスタントに接続できませんでした。もう一度お試しください。",@@ -2721,7 +2719,6 @@"s2720": "Time-skip はアプリとの接続が切れて停止しました。ファイルは変更されていません。","s2721": "更新がファイルに反映されました","s2722": "元のファイルに戻りました",- "s2723": "このパネルからいつでも元に戻せます。","s2724": "ファイルは変更されていません","s2725": "ツールの一覧を読み込んでいます…","s2726": "チャットでアシスタントが使えるものを選びます。変更は次のメッセージから反映されます。手動モードでは、コンピューターを変更する操作は引き続き事前に確認します。",@@ -2803,5 +2800,7 @@"s2802": "変更を保存できませんでした。","s2803": "ツールを保存できませんでした。","s2804": "ツールを削除できませんでした。",- "s2805": "ブラウザーのツールは、このインストールには含まれていません。"+ "s2805": "ブラウザーのツールは、このインストールには含まれていません。",+ "s2806": "ファイルのコピーで作業しています。進み具合はサイドバーで確認できます。",+ "s2807": "結果の準備ができました。「元の結果」と「更新後」を切り替えたり、並べて比較したりできます。"}diff --git a/apps/host/src/locales/ko.json b/apps/host/src/locales/ko.jsonindex f1f2c446a..71a259335 100644--- a/apps/host/src/locales/ko.json+++ b/apps/host/src/locales/ko.json@@ -2709,8 +2709,6 @@"s2708": "반복을 중지했습니다.","s2709": "반복이 {0}회 실행 후 중지되었습니다. 다시 시작하려면 /loop를 다시 입력하세요.","s2710": "이 채팅에는 이미 반복이 있습니다. 먼저 /loop stop으로 중지한 뒤 새로 시작하세요.",- "s2711": "파일의 복사본에서 작업 중입니다. 업데이트를 유지하기로 선택하기 전까지 파일은 건드리지 않습니다. 진행 상황은 사이드바에서 확인하세요.",- "s2712": "결과가 준비되었습니다. 원본과 업데이트됨을 전환하거나 나란히 비교해 보세요. 업데이트를 유지하기 전까지 파일은 그대로입니다.","s2713": "이 시도를 시작한 뒤 파일이 변경되어 아무것도 덮어쓰지 않았습니다. Time-skip을 다시 실행하세요.","s2714": "먼저 모델을 불러온 뒤 Time-skip을 다시 시도하세요.","s2715": "어시스턴트에 연결할 수 없었습니다. 다시 시도하세요.",@@ -2721,7 +2719,6 @@"s2720": "Time-skip이 앱과의 연결을 잃고 중지되었습니다. 파일은 변경되지 않았습니다.","s2721": "업데이트가 이제 파일에 적용되었습니다","s2722": "원본 파일로 되돌렸습니다",- "s2723": "이 패널에서 언제든 원본으로 되돌릴 수 있습니다.","s2724": "파일은 변경되지 않았습니다","s2725": "도구 목록을 불러오는 중…","s2726": "채팅에서 어시스턴트가 사용할 수 있는 것을 선택하세요. 변경 사항은 다음 메시지부터 적용됩니다. 수동 모드에서는 컴퓨터를 바꾸는 작업이 여전히 먼저 확인을 요청합니다.",@@ -2803,5 +2800,7 @@"s2802": "변경 사항을 저장할 수 없었습니다.","s2803": "도구를 저장할 수 없었습니다.","s2804": "도구를 제거할 수 없었습니다.",- "s2805": "브라우저 도구는 이 설치에 포함되어 있지 않습니다."+ "s2805": "브라우저 도구는 이 설치에 포함되어 있지 않습니다.",+ "s2806": "파일의 복사본에서 작업 중입니다. 진행 상황은 사이드바에서 확인하세요.",+ "s2807": "결과가 준비되었습니다. 원본과 업데이트됨을 전환하거나 나란히 비교해 보세요."}diff --git a/apps/host/src/locales/pt.json b/apps/host/src/locales/pt.jsonindex 21176ba2b..cb417dd7c 100644--- a/apps/host/src/locales/pt.json+++ b/apps/host/src/locales/pt.json@@ -2709,8 +2709,6 @@"s2708": "O loop foi parado.","s2709": "O loop parou após {0} execuções. Digite /loop novamente para reiniciá-lo.","s2710": "Este chat já tem um loop. Digite /loop stop primeiro e depois inicie um novo.",- "s2711": "Trabalhando numa cópia dos seus arquivos. Seus arquivos não são alterados até você escolher manter a atualização. Acompanhe o progresso na barra lateral.",- "s2712": "O resultado está pronto. Alterne entre Original e Atualizado, ou compare lado a lado. Seus arquivos ficam como estão até você manter a atualização.","s2713": "Seus arquivos mudaram depois que esta tentativa começou, então nada foi sobrescrito. Execute o Time-skip novamente.","s2714": "Carregue um modelo primeiro e tente o Time-skip novamente.","s2715": "Não foi possível alcançar o assistente. Tente novamente.",@@ -2721,7 +2719,6 @@"s2720": "O Time-skip perdeu contato com o app e parou. Seus arquivos não foram alterados.","s2721": "A atualização agora está nos seus arquivos","s2722": "Seus arquivos originais voltaram",- "s2723": "Você pode voltar ao original a qualquer momento neste painel.","s2724": "Seus arquivos não foram alterados","s2725": "Carregando a lista de ferramentas…","s2726": "Escolha o que o assistente pode usar nos seus chats. Uma alteração vale a partir da sua próxima mensagem. No modo Manual, tudo o que altera o seu computador continua pedindo sua permissão antes.",@@ -2803,5 +2800,7 @@"s2802": "Não foi possível salvar a alteração.","s2803": "Não foi possível salvar a ferramenta.","s2804": "Não foi possível remover a ferramenta.",- "s2805": "A ferramenta de navegador não faz parte desta instalação."+ "s2805": "A ferramenta de navegador não faz parte desta instalação.",+ "s2806": "Trabalhando numa cópia dos seus arquivos. Acompanhe o progresso na barra lateral.",+ "s2807": "O resultado está pronto. Alterne entre Original e Atualizado, ou compare lado a lado."}diff --git a/apps/host/src/locales/ru.json b/apps/host/src/locales/ru.jsonindex 99657a166..ec1eff25d 100644--- a/apps/host/src/locales/ru.json+++ b/apps/host/src/locales/ru.json@@ -2709,8 +2709,6 @@"s2708": "Повтор остановлен.","s2709": "Повтор остановлен после {0} запусков. Введите /loop ещё раз, чтобы запустить его снова.","s2710": "В этом чате уже есть повтор. Сначала введите /loop stop, затем запустите новый.",- "s2711": "Идёт работа над копией ваших файлов. Ваши файлы не затрагиваются, пока вы не решите оставить обновление. Ход работы виден на боковой панели.",- "s2712": "Результат готов. Переключайтесь между «Оригинал» и «Обновлено» или сравнивайте их рядом. Ваши файлы остаются прежними, пока вы не оставите обновление.","s2713": "Ваши файлы изменились после начала этой попытки, поэтому ничего не перезаписано. Запустите Time-skip ещё раз.","s2714": "Сначала загрузите модель, затем повторите Time-skip.","s2715": "Не удалось связаться с помощником. Повторите попытку.",@@ -2721,7 +2719,6 @@"s2720": "Time-skip потерял связь с приложением и остановился. Ваши файлы не изменены.","s2721": "Обновление теперь в ваших файлах","s2722": "Ваши исходные файлы восстановлены",- "s2723": "Вернуться к оригиналу можно в любой момент из этой панели.","s2724": "Ваши файлы не изменены","s2725": "Загрузка списка инструментов…","s2726": "Выберите, что помощник может использовать в ваших чатах. Изменение вступает в силу со следующего сообщения. В ручном режиме всё, что меняет ваш компьютер, по-прежнему сначала спрашивает вас.",@@ -2803,5 +2800,7 @@"s2802": "Не удалось сохранить изменение.","s2803": "Не удалось сохранить инструмент.","s2804": "Не удалось удалить инструмент.",- "s2805": "Инструмент браузера не входит в эту установку."+ "s2805": "Инструмент браузера не входит в эту установку.",+ "s2806": "Идёт работа над копией ваших файлов. Ход работы виден на боковой панели.",+ "s2807": "Результат готов. Переключайтесь между «Оригинал» и «Обновлено» или сравнивайте их рядом."}diff --git a/apps/host/src/locales/zh.json b/apps/host/src/locales/zh.jsonindex 29e52bd42..bf4e9da6f 100644--- a/apps/host/src/locales/zh.json+++ b/apps/host/src/locales/zh.json@@ -2709,8 +2709,6 @@"s2708": "循环已停止。","s2709": "循环在运行 {0} 次后停止。再次输入 /loop 可重新开始。","s2710": "此聊天已有一个循环。请先输入 /loop stop,再开始新的循环。",- "s2711": "正在对你的文件副本进行处理。在你选择保留更新之前,不会改动你的文件。请在侧边栏查看进度。",- "s2712": "结果已准备好。你可以在“原版”和“更新版”之间切换,也可以并排比较。在你保留更新之前,文件保持不变。","s2713": "这次尝试开始后你的文件发生了变化,因此没有覆盖任何内容。请重新运行 Time-skip。","s2714": "请先加载模型,然后再试 Time-skip。","s2715": "无法连接到助手。请重试。",@@ -2721,7 +2719,6 @@"s2720": "Time-skip 与应用失去联系并已停止。你的文件没有改动。","s2721": "更新现已写入你的文件","s2722": "你的原始文件已恢复",- "s2723": "你可以随时在此面板中切换回原版。","s2724": "你的文件没有改动","s2725": "正在加载工具列表…","s2726": "选择助手在你的聊天中可以使用什么。更改将从你的下一条消息开始生效。在手动模式下,任何会改动你电脑的操作仍会先征求你的同意。",@@ -2803,5 +2800,7 @@"s2802": "无法保存更改。","s2803": "无法保存工具。","s2804": "无法移除工具。",- "s2805": "此安装中不包含浏览器工具。"+ "s2805": "此安装中不包含浏览器工具。",+ "s2806": "正在对你的文件副本进行处理。请在侧边栏查看进度。",+ "s2807": "结果已准备好。你可以在“原版”和“更新版”之间切换,也可以并排比较。"}diff --git a/apps/host/tests/agent-tools-settings.test.mjs b/apps/host/tests/agent-tools-settings.test.mjsindex c55d4b75b..a7bd3f1c8 100644--- a/apps/host/tests/agent-tools-settings.test.mjs+++ b/apps/host/tests/agent-tools-settings.test.mjs@@ -149,6 +149,7 @@ test('profile: the person\'s instruction and command tools are the app\'s own totest('the gate: instruction tools only hand back text, so they do not ask; commands, servers and the browser ask in Manual and are refused in Plan', () => {assert.equal(manualDecision({ name: 'mcp__strata-instructions__notes', arguments: {} }), null);assert.equal(manualDecision({ name: 'mcp__strata-commands__run_it', arguments: {} })?.kind, 'ask');+ assert.equal(manualDecision({ name: 'mcp__strata-commands__check_site', arguments: { input: 'example.com' } }).reason, 'Run your tool “check site” with: example.com');assert.equal(manualDecision({ name: 'mcp__custom-remote__lookup', arguments: {} })?.kind, 'ask');assert.equal(planDecision({ name: 'mcp__strata-instructions__notes' }), null);assert.equal(planDecision({ name: 'read' }), null);