feat(webui): localize agent activity

Localize frontend-owned activity presentation while preserving raw tool data and current controls. Include locale-aware model memoization and integration with current main.

Co-authored-by: Xubin Ren <52506698+Re-bin@users.noreply.github.com>
This commit is contained in:
ZhouandXubin Ren authored and Xubin Ren committed 2026-09-25 01:50:12 +08:00
1 parent f57cc3aad2
commit 796e1cb0e6
23 files changed
+1704 -128

No files matched your search

@@ -26,6 +26,7 @@ import { ActivityStep } from "@/components/thread/activity/ActivityStep";
import { coalesceActivityMessages } from "@/components/thread/activity/activity-message-model";
import {
compactActivityPath,
formatActivityTarget,
redactShellCommand,
} from "@/components/thread/activity/activity-text";
import { FileEditGroup, type FileEditSummary } from "@/components/thread/activity/FileEditRow";
@@ -798,8 +799,9 @@ function ActivityTraceRow({
active: boolean;
state?: GenericToolState;
}) {
const { t } = useTranslation();
const status = state?.status ?? (active ? "running" : "done");
const trace = describeTraceLine(line, status, state?.result);
const trace = describeTraceLine(line, status, t, state?.result);
const rowActive = status === "running" && active;
const Icon = trace.icon === "clock" ? Clock3 : (trace.kind === "search"
? Search
@@ -825,7 +827,7 @@ function ActivityTraceRow({
marker={<TraceIconMark trace={trace} fallbackIcon={Icon} active={rowActive} />}
active={rowActive && trace.kind !== "done"}
tone={status === "error" ? "error" : status === "done" ? "success" : "active"}
label={[trace.label, trace.detail].filter(Boolean).join(" ")}
label={formatActivityTarget(t, trace.label, trace.detail)}
/>
);
}
@@ -1264,6 +1266,7 @@ function CliRunGroup({
}
function CliRunRow({ run, active, app }: { run: CliRunSummary; active: boolean; app?: CliAppInfo }) {
const { t } = useTranslation();
const args = compactActivityPath(redactShellCommand(formatCliArgs(run)));
const failed = run.status === "error";
const rowActive = active && run.status === "running";
@@ -1271,8 +1274,10 @@ function CliRunRow({ run, active, app }: { run: CliRunSummary; active: boolean;
const logoUrls = useMemo(() => logoFallbackUrls(app?.logo_url), [app?.logo_url]);
const { logoUrl, onLogoError, onLogoLoad } = useLogoFallback(logoUrls);
const displayName = app?.display_name || titleFromPresetName(run.name);
const action = failed ? "Could not use" : rowActive ? "Using" : "Used";
const label = `${action} ${displayName}${args ? ` · ${args}` : ""}`;
const label = `${t(
`message.${failed ? "cliActivityFailedOne" : rowActive ? "cliActivityRunningOne" : "cliActivityRanOne"}`,
{ name: displayName },
)}${args ? ` · ${args}` : ""}`;
return (
<ActivityStep
@@ -1339,6 +1344,7 @@ function McpRunGroup({
}
function McpRunRow({ run, active, preset }: { run: McpRunSummary; active: boolean; preset?: McpPresetInfo }) {
const { t } = useTranslation();
const failed = run.status === "error";
const rowActive = active && run.status === "running";
const color = failed ? "#DC2626" : preset?.brand_color || "#6D5DF6";
@@ -1349,8 +1355,9 @@ function McpRunRow({ run, active, preset }: { run: McpRunSummary; active: boolea
run.toolName,
run.args,
failed ? "error" : rowActive ? "running" : "done",
t,
);
const label = `${activity.action}${activity.target ? ` ${activity.target}` : ""} · ${displayName}`;
const label = `${formatActivityTarget(t, activity.action, activity.target ?? "")} · ${displayName}`;
return (
<ActivityStep
@@ -6,7 +6,7 @@ import {
ChevronUp,
ExternalLink,
} from "lucide-react";
import { useTranslation } from "react-i18next";
import { Trans, useTranslation } from "react-i18next";
import { FileReferenceChip } from "@/components/FileReferenceChip";
import { codeLanguageFromPath } from "@/lib/code-language";
@@ -21,6 +21,7 @@ import type { UIFileDiff, UIFileEdit } from "@/lib/types";
import { cn } from "@/lib/utils";
import { ActivityStep } from "./ActivityStep";
import { formatActivityTarget } from "./activity-text";
import { DiffPair } from "./DiffPair";
import { DiffSyntaxHighlight } from "./DiffSyntaxHighlight";
@@ -90,7 +91,7 @@ function FileEditRow({
const { t } = useTranslation();
const editing = edit.status === "editing";
const failed = edit.status === "error";
const action = fileEditAction(edit, editing, failed);
const action = fileEditAction(edit, editing, failed, t);
const hasCountedDiff = !failed && !edit.binary && hasVisibleDiffStats(edit);
const showDiff = canRenderDiff(edit, displayMode);
@@ -101,21 +102,29 @@ function FileEditRow({
active={editing}
tone={failed ? "error" : editing ? "active" : "success"}
className="text-xs"
ariaLabel={edit.path ? `${action} ${edit.path}` : action}
ariaLabel={formatActivityTarget(t, action, edit.path)}
label={edit.pending && !edit.path
? t("message.fileEditPreparing", { defaultValue: "Preparing file edit…" })
: (
<span className="flex min-w-0 items-center gap-1.5 overflow-hidden whitespace-nowrap">
<span className={cn("shrink-0", failed && "text-destructive/80")}>{action}</span>
<FileReferenceChip
path={edit.path}
previewPath={edit.absolute_path || edit.path}
onOpen={onOpenFilePreview}
display="path"
active={editing}
className="min-w-0"
textClassName="truncate text-[12px]"
testId="activity-file-reference"
<Trans
i18nKey="message.agentActivity.actionTargetRich"
values={{ action }}
components={{
action: <span className={cn("shrink-0", failed && "text-destructive/80")} />,
target: (
<FileReferenceChip
path={edit.path}
previewPath={edit.absolute_path || edit.path}
onOpen={onOpenFilePreview}
display="path"
active={editing}
className="min-w-0"
textClassName="truncate text-[12px]"
testId="activity-file-reference"
/>
),
}}
/>
{hasCountedDiff ? <DiffPair added={edit.added} deleted={edit.deleted} /> : null}
</span>
@@ -137,11 +146,16 @@ function hasVisibleDiffStats(edit: Pick<FileEditSummary, "added" | "deleted">):
return edit.added > 0 || edit.deleted > 0;
}
function fileEditAction(edit: FileEditSummary, editing: boolean, failed: boolean): string {
function fileEditAction(
edit: FileEditSummary,
editing: boolean,
failed: boolean,
t: ReturnType<typeof useTranslation>["t"],
): string {
const deleting = edit.operation === "delete";
if (failed) return deleting ? "Could not delete" : "Could not edit";
if (editing) return deleting ? "Deleting" : "Editing";
return deleting ? "Deleted" : "Edited";
if (failed) return t(`message.agentActivity.${deleting ? "deleteFileFailed" : "editFileFailedShort"}`);
if (editing) return t(`message.agentActivity.${deleting ? "deletingFile" : "editingFileShort"}`);
return t(`message.agentActivity.${deleting ? "deletedFile" : "editedFileShort"}`);
}
function canRenderDiff(edit: FileEditSummary, displayMode: FileEditDisplayMode): boolean {
@@ -8,6 +8,7 @@ import {
type LucideIcon,
} from "lucide-react";
import { useMemo } from "react";
import { useTranslation } from "react-i18next";
import { ActivityStep } from "@/components/thread/activity/ActivityStep";
import {
@@ -16,6 +17,7 @@ import {
type GenericToolStatus,
type ToolFamily,
} from "@/components/thread/activity/generic-tool-model";
import { formatActivityTarget } from "@/components/thread/activity/activity-text";
interface GenericToolRunModel {
status: GenericToolStatus;
@@ -26,8 +28,9 @@ interface GenericToolRunModel {
}
export function GenericToolRun({ items }: { items: GenericToolRunItem[] }) {
const model = useMemo(() => buildModel(items), [items]);
const action = [model.label, model.detail].filter(Boolean).join(" ");
const { t } = useTranslation();
const model = useMemo(() => buildModel(items, t), [items, t]);
const action = formatActivityTarget(t, model.label, model.detail);
const label = model.aside ? `${action} · ${model.aside}` : action;
return (
@@ -40,9 +43,9 @@ export function GenericToolRun({ items }: { items: GenericToolRunItem[] }) {
);
}
function buildModel(items: GenericToolRunItem[]): GenericToolRunModel {
function buildModel(items: GenericToolRunItem[], t: ReturnType<typeof useTranslation>["t"]): GenericToolRunModel {
const family = items[0]?.trace.family ?? "generic";
const presentation = describeGenericToolRun(items);
const presentation = describeGenericToolRun(items, t);
return {
...presentation,
icon: activityIcon(family),
@@ -1,4 +1,5 @@
import { AlertCircle, Search } from "lucide-react";
import { useTranslation } from "react-i18next";
import { ActivityStep } from "@/components/thread/activity/ActivityStep";
import { WebActivityRow } from "@/components/thread/activity/WebActivityRow";
@@ -8,9 +9,10 @@ import {
} from "@/components/thread/activity/web-search-model";
export function WebSearchRun({ run, turnActive }: { run: WebSearchRunModel; turnActive: boolean }) {
const { t } = useTranslation();
const active = run.status === "running" && turnActive;
const status = run.status === "running" && !turnActive ? "done" : run.status;
const label = presentWebSearchAction(run.query, status, run.target);
const label = presentWebSearchAction(run.query, status, run.target, t);
return (
<>
@@ -1,3 +1,5 @@
import type { TFunction } from "i18next";
export function redactActivityText(value: string): string {
return value
.replace(/(https?:\/\/)[^/@\s]+@/gi, "$1<redacted>@")
@@ -48,16 +50,22 @@ export function safeActivityDetail(value: string, maxLength = 96): string {
);
}
export function summarizeShellCommand(command: string): string {
export function formatActivityTarget(t: TFunction, action: string, target: string): string {
return target
? t("message.agentActivity.actionTarget", { action, target })
: action;
}
export function summarizeShellCommand(command: string, t: TFunction): string {
const lines = redactShellCommand(command.replace(/\r\n/g, "\n"))
.split("\n")
.map((line) => line.trim())
.filter(Boolean);
const firstLine = compactActivityPath(lines[0] || "command");
const firstLine = compactActivityPath(lines[0] || t("message.agentActivity.command"));
const firstPreview = truncateMiddle(firstLine, 92);
return lines.length <= 1
? firstPreview
: `${firstPreview} · script, ${lines.length} lines`;
: `${firstPreview} · ${t("message.agentActivity.scriptLines", { count: lines.length })}`;
}
function truncateMiddle(value: string, maxLength: number): string {
@@ -1,3 +1,5 @@
import type { TFunction } from "i18next";
import { compactActivityPath, redactActivityText } from "./activity-text";
export type GenericToolStatus = "running" | "done" | "error";
@@ -110,16 +112,19 @@ function compactGenericToolPath(value: string): string {
return compactActivityPath(normalized);
}
export function describeGenericToolRun(items: GenericToolRunItem[]): GenericToolPresentation {
export function describeGenericToolRun(
items: GenericToolRunItem[],
t: TFunction,
): GenericToolPresentation {
const status = aggregateStatus(items);
const family = items[0]?.trace.family ?? "generic";
const name = items[0]?.trace.name ?? "tool";
const collected = items.length > 0 && items.every((item) => item.trace.collectedSource);
return {
status,
label: activityLabel(family, status, collected, name, items),
label: activityLabel(family, status, collected, name, items, t),
detail: activityDetail(items, family, name),
aside: activityAside(items, family),
aside: activityAside(items, family, t),
};
}
@@ -193,67 +198,83 @@ function activityLabel(
collected: boolean,
name: string,
items: GenericToolRunItem[],
t: TFunction,
): string {
if (family === "content-search") {
return statusCopy(
status,
collected ? "Reviewing sources" : "Searching files",
collected ? "Reviewed sources" : "Searched files",
collected ? "Could not review sources" : "Could not search files",
collected ? t("message.agentActivity.reviewingSources") : t("message.agentActivity.searchingFiles"),
collected ? t("message.agentActivity.reviewedSources") : t("message.agentActivity.searchedFiles"),
collected ? t("message.agentActivity.reviewSourcesFailed") : t("message.agentActivity.searchFilesFailed"),
);
}
if (family === "file-search") {
return statusCopy(status, "Finding files", "Found files", "Could not find files");
return statusCopy(
status,
t("message.agentActivity.findingFiles"),
t("message.agentActivity.foundFiles"),
t("message.agentActivity.findFilesFailed"),
);
}
if (family === "list") {
return statusCopy(status, "Listing files", "Listed files", "Could not list files");
return statusCopy(
status,
t("message.agentActivity.listingFiles"),
t("message.agentActivity.listedFiles"),
t("message.agentActivity.listFilesFailed"),
);
}
if (family === "read") {
return statusCopy(
status,
collected ? "Reading source" : "Reading file",
collected ? "Read source" : "Read file",
collected ? "Could not read source" : "Could not read file",
collected ? t("message.agentActivity.readingSource") : t("message.agentActivity.readingFile"),
collected ? t("message.agentActivity.readSource") : t("message.agentActivity.readFile"),
collected ? t("message.agentActivity.readSourceFailed") : t("message.agentActivity.readFileFailed"),
);
}
if (family === "memory") {
return statusCopy(status, "Searching memory", "Searched memory", "Could not search memory");
return statusCopy(
status,
t("message.agentActivity.searchingMemory"),
t("message.agentActivity.searchedMemory"),
t("message.agentActivity.searchMemoryFailed"),
);
}
const action = fieldValue(items[0]?.trace, "action").toLowerCase();
switch (name) {
case "generate_image":
return statusCopy(status, "Generating image", "Generated image", "Could not generate image");
return activityStatus(t, status, "generatingImage", "generatedImage", "generateImageFailed");
case "spawn":
return statusCopy(status, "Delegating task", "Delegated task", "Could not delegate task");
return activityStatus(t, status, "delegatingTask", "delegatedTask", "delegateTaskFailed");
case "message":
return statusCopy(status, "Sending message", "Sent message", "Could not send message");
return activityStatus(t, status, "sendingMessage", "sentMessage", "sendMessageFailed");
case "my":
return action === "set" || action === "modify"
? statusCopy(status, "Updating agent settings", "Updated agent settings", "Could not update agent settings")
: statusCopy(status, "Checking agent settings", "Checked agent settings", "Could not check agent settings");
? activityStatus(t, status, "updatingAgentSettings", "updatedAgentSettings", "updateAgentSettingsFailed")
: activityStatus(t, status, "checkingAgentSettings", "checkedAgentSettings", "checkAgentSettingsFailed");
case "cron":
if (action === "add") return statusCopy(status, "Scheduling automation", "Scheduled automation", "Could not schedule automation");
if (action === "remove") return statusCopy(status, "Removing automation", "Removed automation", "Could not remove automation");
return statusCopy(status, "Checking automations", "Checked automations", "Could not check automations");
if (action === "add") return activityStatus(t, status, "schedulingAutomation", "scheduledAutomation", "scheduleAutomationFailed");
if (action === "remove") return activityStatus(t, status, "removingAutomation", "removedAutomation", "removeAutomationFailed");
return activityStatus(t, status, "checkingAutomations", "checkedAutomations", "checkAutomationsFailed");
case "create_goal":
return statusCopy(status, "Starting long task", "Started long task", "Could not start long task");
return activityStatus(t, status, "startingLongTask", "startedLongTask", "startLongTaskFailed");
case "update_goal":
return statusCopy(status, "Updating long task", "Updated long task", "Could not update long task");
return activityStatus(t, status, "updatingLongTask", "updatedLongTask", "updateLongTaskFailed");
case "exec_session":
return statusCopy(status, "Continuing command", "Continued command", "Could not continue command");
return activityStatus(t, status, "continuingCommand", "continuedCommand", "continueCommandFailed");
case "list_exec_sessions":
return statusCopy(status, "Checking running commands", "Checked running commands", "Could not check running commands");
return activityStatus(t, status, "checkingRunningCommands", "checkedRunningCommands", "checkRunningCommandsFailed");
case "screenshot":
case "capture_screenshot":
return statusCopy(status, "Capturing screenshot", "Captured screenshot", "Could not capture screenshot");
return activityStatus(t, status, "capturingScreenshot", "capturedScreenshot", "captureScreenshotFailed");
default: {
const humanName = humanizeToolName(name);
return statusCopy(
status,
`Running ${humanName}`,
`Completed ${humanName}`,
`Could not complete ${humanName}`,
t("message.agentActivity.runningTool", { name: humanName }),
t("message.agentActivity.completedTool", { name: humanName }),
t("message.agentActivity.completeToolFailed", { name: humanName }),
);
}
}
@@ -301,14 +322,14 @@ function activityDetail(items: GenericToolRunItem[], family: ToolFamily, name: s
}
}
function activityAside(items: GenericToolRunItem[], family: ToolFamily): string {
function activityAside(items: GenericToolRunItem[], family: ToolFamily, t: TFunction): string {
const pathCount = uniqueValues(items, ["path", "file_path"]).length;
if (pathCount > 1) return `${pathCount} files`;
if (pathCount > 1) return t("message.agentActivity.files", { count: pathCount });
if (items.length <= 1) return "";
if (family === "content-search" || family === "file-search" || family === "memory") {
return `${items.length} searches`;
return t("message.agentActivity.searches", { count: items.length });
}
return `${items.length} actions`;
return t("message.agentActivity.actions", { count: items.length });
}
function fieldValue(trace: GenericToolTrace | undefined, key: ToolField["key"]): string {
@@ -326,6 +347,21 @@ function statusCopy(status: GenericToolStatus, running: string, done: string, fa
return status === "running" ? running : status === "error" ? failed : done;
}
function activityStatus(
t: TFunction,
status: GenericToolStatus,
running: string,
done: string,
failed: string,
): string {
return statusCopy(
status,
t(`message.agentActivity.${running}`),
t(`message.agentActivity.${done}`),
t(`message.agentActivity.${failed}`),
);
}
function compactDetail(value: string): string {
return value ? truncateMiddle(compactGenericToolPath(value), 88) : "";
}
@@ -1,3 +1,5 @@
import type { TFunction } from "i18next";
import { safeActivityDetail } from "./activity-text";
import { formatCompactWebUrl, parseSafeActivityHttpUrl } from "./web-url";
@@ -12,57 +14,59 @@ export function describeMcpActivity(
toolName: string,
args: unknown,
status: McpActivityStatus,
t: TFunction,
): McpActivityDescription {
const name = toolName.toLowerCase();
if (matches(name, "navigate", "goto", "open_url", "visit")) {
return describe(status, "Opening", "Opened", "Could not open", value(args, ["url"]));
return describe(status, t, "opening", "opened", "openFailed", value(args, ["url"]));
}
if (matches(name, "click", "tap")) {
return describe(status, "Clicking", "Clicked", "Could not click", elementTarget(args));
return describe(status, t, "clicking", "clicked", "clickFailed", elementTarget(args));
}
if (matches(name, "type", "fill", "enter_text", "insert_text")) {
const target = value(args, ["element", "selector", "ref", "name"]);
return describe(status, "Entering text", "Entered text", "Could not enter text", target && `in ${target}`);
return describe(status, t, "enteringText", "enteredText", "enterTextFailed", target && t("message.agentActivity.inTarget", { target }));
}
if (matches(name, "press_key", "keypress")) {
return describe(status, "Pressing", "Pressed", "Could not press", value(args, ["key"]));
return describe(status, t, "pressing", "pressed", "pressFailed", value(args, ["key"]));
}
if (matches(name, "hover")) {
return describe(status, "Hovering over", "Hovered over", "Could not hover over", elementTarget(args));
return describe(status, t, "hovering", "hovered", "hoverFailed", elementTarget(args));
}
if (matches(name, "select", "select_option")) {
return describe(status, "Selecting", "Selected", "Could not select", elementTarget(args));
return describe(status, t, "selecting", "selected", "selectFailed", elementTarget(args));
}
if (matches(name, "snapshot", "inspect", "get_page_content", "page_content")) {
return describe(status, "Inspecting page", "Inspected page", "Could not inspect page");
return describe(status, t, "inspectingPage", "inspectedPage", "inspectPageFailed");
}
if (matches(name, "screenshot", "capture_screenshot")) {
return describe(status, "Capturing screenshot", "Captured screenshot", "Could not capture screenshot");
return describe(status, t, "capturingScreenshot", "capturedScreenshot", "captureScreenshotFailed");
}
if (matches(name, "wait", "wait_for")) {
return describe(status, "Waiting for page", "Waited for page", "Page did not become ready");
return describe(status, t, "waitingForPage", "waitedForPage", "pageNotReady");
}
if (matches(name, "search", "web_search")) {
return describe(status, "Searching", "Searched", "Could not search", value(args, ["query", "q"]));
return describe(status, t, "searchingPlain", "searchedPlain", "searchFailedPlain", value(args, ["query", "q"]));
}
const action = humanizeToolName(toolName);
if (status === "running") return { action: `Running ${action}` };
if (status === "error") return { action: `${action} failed` };
return { action: `${action} completed` };
const action = humanizeToolName(toolName, t);
if (status === "running") return { action: t("message.agentActivity.runningTool", { name: action }) };
if (status === "error") return { action: t("message.agentActivity.toolFailed", { name: action }) };
return { action: t("message.agentActivity.toolCompleted", { name: action }) };
}
function describe(
status: McpActivityStatus,
t: TFunction,
running: string,
done: string,
failed: string,
target?: string,
): McpActivityDescription {
return {
action: status === "running" ? running : status === "error" ? failed : done,
target: target ? compactUrl(target) : undefined,
action: t(`message.agentActivity.${status === "running" ? running : status === "error" ? failed : done}`),
target: target ? compactUrl(target, t) : undefined,
};
}
@@ -85,14 +89,14 @@ function value(args: unknown, keys: string[]): string | undefined {
return undefined;
}
function compactUrl(value: string): string {
function compactUrl(value: string, t: TFunction): string {
const url = parseSafeActivityHttpUrl(value);
if (url) return formatCompactWebUrl(url);
if (/^https?:\/\//i.test(value.trim())) return "Private address";
if (/^https?:\/\//i.test(value.trim())) return t("message.agentActivity.privateAddress");
return safeActivityDetail(value, 80);
}
function humanizeToolName(value: string): string {
function humanizeToolName(value: string, t: TFunction): string {
const words = value
.replace(/^(?:browser|page|playwright)[_.-]+/i, "")
.replace(/([a-z0-9])([A-Z])/g, "$1 $2")
@@ -100,5 +104,5 @@ function humanizeToolName(value: string): string {
.replace(/\s+/g, " ")
.trim()
.toLowerCase();
return words ? `${words[0].toUpperCase()}${words.slice(1)}` : "Tool call";
return words ? `${words[0].toUpperCase()}${words.slice(1)}` : t("message.agentActivity.toolCall");
}
@@ -1,3 +1,5 @@
import type { TFunction } from "i18next";
import type { GenericToolStatus } from "./generic-tool-model";
import { safeActivityDetail, summarizeShellCommand } from "./activity-text";
import { presentWebSearchAction } from "./web-search-model";
@@ -15,6 +17,7 @@ export interface TraceDescription {
export function describeTraceLine(
line: string,
status: GenericToolStatus,
t: TFunction,
result?: unknown,
): TraceDescription {
const trimmed = line.trim();
@@ -30,7 +33,7 @@ export function describeTraceLine(
const query = traceFieldFromArgs(args, ["query", "q", "text"]) || args;
return {
kind: "search",
label: presentWebSearchAction(query, status, name === "x_search" ? "x" : "web"),
label: presentWebSearchAction(query, status, name === "x_search" ? "x" : "web", t),
detail: "",
};
}
@@ -39,20 +42,20 @@ export function describeTraceLine(
const pageTitle = parsedUrl ? webPageTitle(result) : "";
return {
kind: "tool",
label: pageTitle || statusCopy(status, "Reading", "Read", "Could not read"),
label: pageTitle || activityStatus(t, status, "reading", "read", "readFailed"),
detail: webDetail || (/^https?:\/\//i.test(rawTarget.trim())
? "Private address"
? t("message.agentActivity.privateAddress")
: safeActivityDetail(rawTarget)),
url: parsedUrl?.href,
host: parsedUrl ? displayWebHost(parsedUrl.hostname) : undefined,
};
}
if (isShellTraceName(name)) return describeShellTrace(args, trimmed, status);
if (isShellTraceName(name)) return describeShellTrace(args, trimmed, status, t);
if (name === "write_file") {
return describeFileMutationTrace(args, status, "Writing file", "Wrote file", "Could not write file");
return describeFileMutationTrace(args, status, t, "writingFile", "wroteFile", "writeFileFailed");
}
if (name === "edit_file" || name === "apply_patch") {
return describeFileMutationTrace(args, status, "Editing file", "Edited file", "Could not edit file");
return describeFileMutationTrace(args, status, t, "editingFile", "editedFile", "editFileFailed");
}
if (name) {
const action = humanizeTraceToolName(name);
@@ -60,19 +63,19 @@ export function describeTraceLine(
kind: "tool",
label: statusCopy(
status,
`Running ${action}`,
`Completed ${action}`,
`Could not complete ${action}`,
t("message.agentActivity.runningTool", { name: action }),
t("message.agentActivity.completedTool", { name: action }),
t("message.agentActivity.completeToolFailed", { name: action }),
),
detail: "",
};
}
if (/done|complete|success/i.test(trimmed)) {
return { kind: "done", label: "Completed step", detail: safeActivityDetail(trimmed) };
return { kind: "done", label: t("message.agentActivity.completedStep"), detail: safeActivityDetail(trimmed) };
}
return {
kind: status === "done" ? "done" : "trace",
label: statusCopy(status, "Working", "Completed step", "Step failed"),
label: activityStatus(t, status, "working", "completedStep", "stepFailed"),
detail: safeActivityDetail(trimmed),
};
}
@@ -91,31 +94,28 @@ function describeShellTrace(
args: string,
fallback: string,
status: GenericToolStatus,
t: TFunction,
): TraceDescription {
const command = shellCommandFromArgs(args) || fallback;
if (/^(?:\/(?:usr\/)?bin\/)?date(?:\s|$)/i.test(command.trim())) {
return {
kind: "tool",
label: statusCopy(
status,
"Checking current time",
"Checked current time",
"Could not check current time",
),
label: activityStatus(t, status, "checkingCurrentTime", "checkedCurrentTime", "checkCurrentTimeFailed"),
detail: "",
icon: "clock",
};
}
return {
kind: "tool",
label: statusCopy(status, "Running command", "Ran command", "Command failed"),
detail: summarizeShellCommand(command),
label: activityStatus(t, status, "runningCommand", "ranCommand", "commandFailed"),
detail: summarizeShellCommand(command, t),
};
}
function describeFileMutationTrace(
args: string,
status: GenericToolStatus,
t: TFunction,
running: string,
done: string,
failed: string,
@@ -123,7 +123,7 @@ function describeFileMutationTrace(
const path = traceFieldFromArgs(args, ["path", "file_path"]);
return {
kind: "tool",
label: statusCopy(status, running, done, failed),
label: activityStatus(t, status, running, done, failed),
detail: path ? safeActivityDetail(path) : "",
};
}
@@ -137,6 +137,21 @@ function statusCopy(
return status === "running" ? running : status === "error" ? failed : done;
}
function activityStatus(
t: TFunction,
status: GenericToolStatus,
running: string,
done: string,
failed: string,
): string {
return statusCopy(
status,
t(`message.agentActivity.${running}`),
t(`message.agentActivity.${done}`),
t(`message.agentActivity.${failed}`),
);
}
function traceFieldFromArgs(args: string, keys: string[]): string {
const compactArgs = args.trim();
if (!compactArgs) return "";
@@ -1,3 +1,5 @@
import type { TFunction } from "i18next";
import { canonicalToolTrace, formatToolCallTrace } from "@/lib/tool-traces";
import type { ToolProgressEvent } from "@/lib/types";
@@ -94,18 +96,15 @@ export function presentWebSearchAction(
query: string,
status: WebSearchStatus,
target: WebSearchTarget = "web",
t: TFunction,
): string {
const presentation = presentWebSearchQuery(query);
const verb = status === "error"
? "Could not search"
: status === "running"
? "Searching"
: "Searched";
const queryTarget = [presentation.scope, presentation.query].filter(Boolean).join(" · ");
if (target === "x") {
return queryTarget ? `${verb} X · ${queryTarget}` : `${verb} X`;
}
return queryTarget ? `${verb} ${queryTarget}` : `${verb} the web`;
const key = status === "error" ? "searchFailed" : status === "running" ? "searching" : "searched";
const searchTarget = target === "x"
? (queryTarget ? `X · ${queryTarget}` : "X")
: queryTarget || t("message.agentActivity.web");
return t(`message.agentActivity.${key}`, { target: searchTarget });
}
function mergeWebSearchRun(
+137 -1
View File
@@ -1852,6 +1852,142 @@
"activityWorkingFor": "Working for {{duration}}",
"activityWorked": "Worked",
"activityWorkedFor": "Worked for {{duration}}",
"agentActivity": {
"reviewingSources": "Reviewing sources",
"reviewedSources": "Reviewed sources",
"reviewSourcesFailed": "Could not review sources",
"searchingFiles": "Searching files",
"searchedFiles": "Searched files",
"searchFilesFailed": "Could not search files",
"findingFiles": "Finding files",
"foundFiles": "Found files",
"findFilesFailed": "Could not find files",
"listingFiles": "Listing files",
"listedFiles": "Listed files",
"listFilesFailed": "Could not list files",
"readingSource": "Reading source",
"readSource": "Read source",
"readSourceFailed": "Could not read source",
"readingFile": "Reading file",
"readFile": "Read file",
"readFileFailed": "Could not read file",
"searchingMemory": "Searching memory",
"searchedMemory": "Searched memory",
"searchMemoryFailed": "Could not search memory",
"generatingImage": "Generating image",
"generatedImage": "Generated image",
"generateImageFailed": "Could not generate image",
"delegatingTask": "Delegating task",
"delegatedTask": "Delegated task",
"delegateTaskFailed": "Could not delegate task",
"sendingMessage": "Sending message",
"sentMessage": "Sent message",
"sendMessageFailed": "Could not send message",
"updatingAgentSettings": "Updating agent settings",
"updatedAgentSettings": "Updated agent settings",
"updateAgentSettingsFailed": "Could not update agent settings",
"checkingAgentSettings": "Checking agent settings",
"checkedAgentSettings": "Checked agent settings",
"checkAgentSettingsFailed": "Could not check agent settings",
"schedulingAutomation": "Scheduling automation",
"scheduledAutomation": "Scheduled automation",
"scheduleAutomationFailed": "Could not schedule automation",
"removingAutomation": "Removing automation",
"removedAutomation": "Removed automation",
"removeAutomationFailed": "Could not remove automation",
"checkingAutomations": "Checking automations",
"checkedAutomations": "Checked automations",
"checkAutomationsFailed": "Could not check automations",
"startingLongTask": "Starting long task",
"startedLongTask": "Started long task",
"startLongTaskFailed": "Could not start long task",
"updatingLongTask": "Updating long task",
"updatedLongTask": "Updated long task",
"updateLongTaskFailed": "Could not update long task",
"continuingCommand": "Continuing command",
"continuedCommand": "Continued command",
"continueCommandFailed": "Could not continue command",
"checkingRunningCommands": "Checking running commands",
"checkedRunningCommands": "Checked running commands",
"checkRunningCommandsFailed": "Could not check running commands",
"capturingScreenshot": "Capturing screenshot",
"capturedScreenshot": "Captured screenshot",
"captureScreenshotFailed": "Could not capture screenshot",
"runningTool": "Running {{name}}",
"completedTool": "Completed {{name}}",
"completeToolFailed": "Could not complete {{name}}",
"files_one": "{{count}} file",
"files_other": "{{count}} files",
"searches_one": "{{count}} search",
"searches_other": "{{count}} searches",
"actions_one": "{{count}} action",
"actions_other": "{{count}} actions",
"searching": "Searching {{target}}",
"searched": "Searched {{target}}",
"searchFailed": "Could not search {{target}}",
"web": "the web",
"reading": "Reading",
"read": "Read",
"readFailed": "Could not read",
"privateAddress": "Private address",
"writingFile": "Writing file",
"wroteFile": "Wrote file",
"writeFileFailed": "Could not write file",
"editingFile": "Editing file",
"editedFile": "Edited file",
"editFileFailed": "Could not edit file",
"working": "Working",
"completedStep": "Completed step",
"stepFailed": "Step failed",
"checkingCurrentTime": "Checking current time",
"checkedCurrentTime": "Checked current time",
"checkCurrentTimeFailed": "Could not check current time",
"runningCommand": "Running command",
"ranCommand": "Ran command",
"commandFailed": "Command failed",
"command": "command",
"scriptLines_one": "script, {{count}} line",
"scriptLines_other": "script, {{count}} lines",
"opening": "Opening",
"opened": "Opened",
"openFailed": "Could not open",
"clicking": "Clicking",
"clicked": "Clicked",
"clickFailed": "Could not click",
"enteringText": "Entering text",
"enteredText": "Entered text",
"enterTextFailed": "Could not enter text",
"inTarget": "in {{target}}",
"pressing": "Pressing",
"pressed": "Pressed",
"pressFailed": "Could not press",
"hovering": "Hovering over",
"hovered": "Hovered over",
"hoverFailed": "Could not hover over",
"selecting": "Selecting",
"selected": "Selected",
"selectFailed": "Could not select",
"inspectingPage": "Inspecting page",
"inspectedPage": "Inspected page",
"inspectPageFailed": "Could not inspect page",
"waitingForPage": "Waiting for page",
"waitedForPage": "Waited for page",
"pageNotReady": "Page did not become ready",
"searchingPlain": "Searching",
"searchedPlain": "Searched",
"searchFailedPlain": "Could not search",
"toolFailed": "{{name}} failed",
"toolCompleted": "{{name}} completed",
"toolCall": "Tool call",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "Could not delete",
"editFileFailedShort": "Could not edit",
"deletingFile": "Deleting",
"editingFileShort": "Editing",
"deletedFile": "Deleted",
"editedFileShort": "Edited"
},
"collapseActivity": "Collapse activity details",
"activityShow": "View activity",
"activityShowFor": "View activity {{duration}}",
@@ -1867,7 +2003,7 @@
"retryExhausted": "{{error}} · ending turn",
"cliActivityRunningOne": "Using {{name}}",
"cliActivityRanOne": "Used {{name}}",
"cliActivityFailedOne": "{{name}} failed",
"cliActivityFailedOne": "Could not use {{name}}",
"cliActivityRunningMany": "Using {{count}} CLI apps",
"cliActivityRanMany": "Used {{count}} CLI apps",
"cliActivityFailedMany": "{{count}} CLI apps failed",
+137 -1
View File
@@ -1681,6 +1681,142 @@
"activityWorkingFor": "Trabajando durante {{duration}}",
"activityWorked": "Trabajo completado",
"activityWorkedFor": "Trabajó durante {{duration}}",
"agentActivity": {
"reviewingSources": "Revisando fuentes",
"reviewedSources": "Fuentes revisadas",
"reviewSourcesFailed": "No se pudieron revisar las fuentes",
"searchingFiles": "Buscando en archivos",
"searchedFiles": "Búsqueda en archivos completada",
"searchFilesFailed": "No se pudo buscar en los archivos",
"findingFiles": "Buscando archivos",
"foundFiles": "Archivos encontrados",
"findFilesFailed": "No se pudieron encontrar archivos",
"listingFiles": "Listando archivos",
"listedFiles": "Archivos listados",
"listFilesFailed": "No se pudieron listar los archivos",
"readingSource": "Leyendo fuente",
"readSource": "Fuente leída",
"readSourceFailed": "No se pudo leer la fuente",
"readingFile": "Leyendo archivo",
"readFile": "Archivo leído",
"readFileFailed": "No se pudo leer el archivo",
"searchingMemory": "Buscando en la memoria",
"searchedMemory": "Búsqueda en la memoria completada",
"searchMemoryFailed": "No se pudo buscar en la memoria",
"generatingImage": "Generando imagen",
"generatedImage": "Imagen generada",
"generateImageFailed": "No se pudo generar la imagen",
"delegatingTask": "Delegando tarea",
"delegatedTask": "Tarea delegada",
"delegateTaskFailed": "No se pudo delegar la tarea",
"sendingMessage": "Enviando mensaje",
"sentMessage": "Mensaje enviado",
"sendMessageFailed": "No se pudo enviar el mensaje",
"updatingAgentSettings": "Actualizando ajustes del agente",
"updatedAgentSettings": "Ajustes del agente actualizados",
"updateAgentSettingsFailed": "No se pudieron actualizar los ajustes del agente",
"checkingAgentSettings": "Comprobando ajustes del agente",
"checkedAgentSettings": "Ajustes del agente comprobados",
"checkAgentSettingsFailed": "No se pudieron comprobar los ajustes del agente",
"schedulingAutomation": "Programando automatización",
"scheduledAutomation": "Automatización programada",
"scheduleAutomationFailed": "No se pudo programar la automatización",
"removingAutomation": "Eliminando automatización",
"removedAutomation": "Automatización eliminada",
"removeAutomationFailed": "No se pudo eliminar la automatización",
"checkingAutomations": "Comprobando automatizaciones",
"checkedAutomations": "Automatizaciones comprobadas",
"checkAutomationsFailed": "No se pudieron comprobar las automatizaciones",
"startingLongTask": "Iniciando tarea larga",
"startedLongTask": "Tarea larga iniciada",
"startLongTaskFailed": "No se pudo iniciar la tarea larga",
"updatingLongTask": "Actualizando tarea larga",
"updatedLongTask": "Tarea larga actualizada",
"updateLongTaskFailed": "No se pudo actualizar la tarea larga",
"continuingCommand": "Continuando comando",
"continuedCommand": "Comando continuado",
"continueCommandFailed": "No se pudo continuar el comando",
"checkingRunningCommands": "Comprobando comandos en ejecución",
"checkedRunningCommands": "Comandos en ejecución comprobados",
"checkRunningCommandsFailed": "No se pudieron comprobar los comandos en ejecución",
"capturingScreenshot": "Capturando pantalla",
"capturedScreenshot": "Captura de pantalla realizada",
"captureScreenshotFailed": "No se pudo capturar la pantalla",
"runningTool": "Ejecutando {{name}}",
"completedTool": "{{name}} completado",
"completeToolFailed": "No se pudo completar {{name}}",
"files_one": "{{count}} archivo",
"files_other": "{{count}} archivos",
"searches_one": "{{count}} búsqueda",
"searches_other": "{{count}} búsquedas",
"actions_one": "{{count}} acción",
"actions_other": "{{count}} acciones",
"searching": "Buscando {{target}}",
"searched": "Búsqueda completada: {{target}}",
"searchFailed": "No se pudo buscar {{target}}",
"web": "la web",
"reading": "Leyendo",
"read": "Leído",
"readFailed": "No se pudo leer",
"privateAddress": "Dirección privada",
"writingFile": "Escribiendo archivo",
"wroteFile": "Archivo escrito",
"writeFileFailed": "No se pudo escribir el archivo",
"editingFile": "Editando archivo",
"editedFile": "Archivo editado",
"editFileFailed": "No se pudo editar el archivo",
"working": "Trabajando",
"completedStep": "Paso completado",
"stepFailed": "El paso falló",
"checkingCurrentTime": "Comprobando la hora actual",
"checkedCurrentTime": "Hora actual comprobada",
"checkCurrentTimeFailed": "No se pudo comprobar la hora actual",
"runningCommand": "Ejecutando comando",
"ranCommand": "Comando ejecutado",
"commandFailed": "El comando falló",
"command": "comando",
"scriptLines_one": "script, {{count}} línea",
"scriptLines_other": "script, {{count}} líneas",
"opening": "Abriendo",
"opened": "Abierto",
"openFailed": "No se pudo abrir",
"clicking": "Haciendo clic",
"clicked": "Clic realizado",
"clickFailed": "No se pudo hacer clic",
"enteringText": "Introduciendo texto",
"enteredText": "Texto introducido",
"enterTextFailed": "No se pudo introducir texto",
"inTarget": "en {{target}}",
"pressing": "Pulsando",
"pressed": "Pulsado",
"pressFailed": "No se pudo pulsar",
"hovering": "Pasando el cursor sobre",
"hovered": "Cursor situado sobre",
"hoverFailed": "No se pudo pasar el cursor sobre",
"selecting": "Seleccionando",
"selected": "Seleccionado",
"selectFailed": "No se pudo seleccionar",
"inspectingPage": "Inspeccionando página",
"inspectedPage": "Página inspeccionada",
"inspectPageFailed": "No se pudo inspeccionar la página",
"waitingForPage": "Esperando la página",
"waitedForPage": "Espera de la página completada",
"pageNotReady": "La página no estuvo lista",
"searchingPlain": "Buscando",
"searchedPlain": "Búsqueda completada",
"searchFailedPlain": "No se pudo buscar",
"toolFailed": "{{name}} falló",
"toolCompleted": "{{name}} completado",
"toolCall": "Llamada de herramienta",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "No se pudo eliminar",
"editFileFailedShort": "No se pudo editar",
"deletingFile": "Eliminando",
"editingFileShort": "Editando",
"deletedFile": "Eliminado",
"editedFileShort": "Editado"
},
"collapseActivity": "Contraer detalles de actividad",
"activityShow": "Ver actividad",
"activityShowFor": "Ver actividad {{duration}}",
@@ -1696,7 +1832,7 @@
"retryExhausted": "{{error}} · finalizando el turno",
"cliActivityRunningOne": "Usando {{name}}",
"cliActivityRanOne": "Usó {{name}}",
"cliActivityFailedOne": "Falló {{name}}",
"cliActivityFailedOne": "No se pudo usar {{name}}",
"cliActivityRunningMany": "Usando {{count}} aplicaciones CLI",
"cliActivityRanMany": "Usó {{count}} aplicaciones CLI",
"cliActivityFailedMany": "Fallaron {{count}} aplicaciones CLI",
+137 -1
View File
@@ -1680,6 +1680,142 @@
"activityWorkingFor": "Travail en cours depuis {{duration}}",
"activityWorked": "Travail terminé",
"activityWorkedFor": "Travail terminé en {{duration}}",
"agentActivity": {
"reviewingSources": "Vérification des sources",
"reviewedSources": "Sources vérifiées",
"reviewSourcesFailed": "Impossible de vérifier les sources",
"searchingFiles": "Recherche dans les fichiers",
"searchedFiles": "Recherche terminée dans les fichiers",
"searchFilesFailed": "Impossible de rechercher dans les fichiers",
"findingFiles": "Recherche de fichiers",
"foundFiles": "Fichiers trouvés",
"findFilesFailed": "Impossible de trouver les fichiers",
"listingFiles": "Liste des fichiers",
"listedFiles": "Fichiers listés",
"listFilesFailed": "Impossible de lister les fichiers",
"readingSource": "Lecture de la source",
"readSource": "Source lue",
"readSourceFailed": "Impossible de lire la source",
"readingFile": "Lecture du fichier",
"readFile": "Fichier lu",
"readFileFailed": "Impossible de lire le fichier",
"searchingMemory": "Recherche dans la mémoire",
"searchedMemory": "Recherche terminée dans la mémoire",
"searchMemoryFailed": "Impossible de rechercher dans la mémoire",
"generatingImage": "Génération de l’image",
"generatedImage": "Image générée",
"generateImageFailed": "Impossible de générer l’image",
"delegatingTask": "Délégation de la tâche",
"delegatedTask": "Tâche déléguée",
"delegateTaskFailed": "Impossible de déléguer la tâche",
"sendingMessage": "Envoi du message",
"sentMessage": "Message envoyé",
"sendMessageFailed": "Impossible d’envoyer le message",
"updatingAgentSettings": "Mise à jour des paramètres de l’agent",
"updatedAgentSettings": "Paramètres de l’agent mis à jour",
"updateAgentSettingsFailed": "Impossible de mettre à jour les paramètres de l’agent",
"checkingAgentSettings": "Vérification des paramètres de l’agent",
"checkedAgentSettings": "Paramètres de l’agent vérifiés",
"checkAgentSettingsFailed": "Impossible de vérifier les paramètres de l’agent",
"schedulingAutomation": "Planification de l’automatisation",
"scheduledAutomation": "Automatisation planifiée",
"scheduleAutomationFailed": "Impossible de planifier l’automatisation",
"removingAutomation": "Suppression de l’automatisation",
"removedAutomation": "Automatisation supprimée",
"removeAutomationFailed": "Impossible de supprimer l’automatisation",
"checkingAutomations": "Vérification des automatisations",
"checkedAutomations": "Automatisations vérifiées",
"checkAutomationsFailed": "Impossible de vérifier les automatisations",
"startingLongTask": "Démarrage de la tâche longue",
"startedLongTask": "Tâche longue démarrée",
"startLongTaskFailed": "Impossible de démarrer la tâche longue",
"updatingLongTask": "Mise à jour de la tâche longue",
"updatedLongTask": "Tâche longue mise à jour",
"updateLongTaskFailed": "Impossible de mettre à jour la tâche longue",
"continuingCommand": "Poursuite de la commande",
"continuedCommand": "Commande poursuivie",
"continueCommandFailed": "Impossible de poursuivre la commande",
"checkingRunningCommands": "Vérification des commandes en cours",
"checkedRunningCommands": "Commandes en cours vérifiées",
"checkRunningCommandsFailed": "Impossible de vérifier les commandes en cours",
"capturingScreenshot": "Capture d’écran en cours",
"capturedScreenshot": "Capture d’écran effectuée",
"captureScreenshotFailed": "Impossible d’effectuer la capture d’écran",
"runningTool": "Exécution de {{name}}",
"completedTool": "Exécution de {{name}} terminée",
"completeToolFailed": "Impossible de terminer {{name}}",
"files_one": "{{count}} fichier",
"files_other": "{{count}} fichiers",
"searches_one": "{{count}} recherche",
"searches_other": "{{count}} recherches",
"actions_one": "{{count}} action",
"actions_other": "{{count}} actions",
"searching": "Recherche de {{target}}",
"searched": "Recherche terminée pour {{target}}",
"searchFailed": "Impossible de rechercher {{target}}",
"web": "le Web",
"reading": "Lecture en cours",
"read": "Lu",
"readFailed": "Impossible de lire",
"privateAddress": "Adresse privée",
"writingFile": "Écriture du fichier",
"wroteFile": "Fichier écrit",
"writeFileFailed": "Impossible d’écrire le fichier",
"editingFile": "Modification du fichier",
"editedFile": "Fichier modifié",
"editFileFailed": "Impossible de modifier le fichier",
"working": "Traitement en cours",
"completedStep": "Étape terminée",
"stepFailed": "Échec de l’étape",
"checkingCurrentTime": "Vérification de l’heure actuelle",
"checkedCurrentTime": "Heure actuelle vérifiée",
"checkCurrentTimeFailed": "Impossible de vérifier l’heure actuelle",
"runningCommand": "Exécution de la commande",
"ranCommand": "Commande exécutée",
"commandFailed": "Échec de la commande",
"command": "commande",
"scriptLines_one": "script, {{count}} ligne",
"scriptLines_other": "script, {{count}} lignes",
"opening": "Ouverture",
"opened": "Ouvert",
"openFailed": "Impossible d’ouvrir",
"clicking": "Clic en cours",
"clicked": "Clic effectué",
"clickFailed": "Impossible de cliquer",
"enteringText": "Saisie du texte",
"enteredText": "Texte saisi",
"enterTextFailed": "Impossible de saisir le texte",
"inTarget": "dans {{target}}",
"pressing": "Appui sur",
"pressed": "Touche activée",
"pressFailed": "Impossible d’appuyer",
"hovering": "Survol de",
"hovered": "Survol effectué sur",
"hoverFailed": "Impossible de survoler",
"selecting": "Sélection de",
"selected": "Sélection effectuée",
"selectFailed": "Impossible de sélectionner",
"inspectingPage": "Inspection de la page",
"inspectedPage": "Page inspectée",
"inspectPageFailed": "Impossible d’inspecter la page",
"waitingForPage": "Attente de la page",
"waitedForPage": "Page attendue",
"pageNotReady": "La page n’est pas devenue disponible",
"searchingPlain": "Recherche en cours",
"searchedPlain": "Recherche terminée",
"searchFailedPlain": "Impossible d’effectuer la recherche",
"toolFailed": "Échec de {{name}}",
"toolCompleted": "{{name}} terminé",
"toolCall": "Appel d’outil",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "Impossible de supprimer",
"editFileFailedShort": "Impossible de modifier",
"deletingFile": "Suppression",
"editingFileShort": "Modification",
"deletedFile": "Supprimé",
"editedFileShort": "Modifié"
},
"collapseActivity": "Réduire les détails de l’activité",
"activityShow": "Voir l’activité",
"activityShowFor": "Voir l’activité {{duration}}",
@@ -1695,7 +1831,7 @@
"retryExhausted": "{{error}} · fin du tour",
"cliActivityRunningOne": "Utilisation de {{name}}",
"cliActivityRanOne": "{{name}} utilisé",
"cliActivityFailedOne": "Échec de {{name}}",
"cliActivityFailedOne": "Impossible d’utiliser {{name}}",
"cliActivityRunningMany": "Utilisation de {{count}} applications CLI",
"cliActivityRanMany": "{{count}} applications CLI utilisées",
"cliActivityFailedMany": "Échec de {{count}} applications CLI",
+137 -1
View File
@@ -1680,6 +1680,142 @@
"activityWorkingFor": "Memproses selama {{duration}}",
"activityWorked": "Selesai memproses",
"activityWorkedFor": "Diproses selama {{duration}}",
"agentActivity": {
"reviewingSources": "Meninjau sumber",
"reviewedSources": "Sumber ditinjau",
"reviewSourcesFailed": "Tidak dapat meninjau sumber",
"searchingFiles": "Mencari di file",
"searchedFiles": "Pencarian file selesai",
"searchFilesFailed": "Tidak dapat mencari di file",
"findingFiles": "Mencari file",
"foundFiles": "File ditemukan",
"findFilesFailed": "Tidak dapat menemukan file",
"listingFiles": "Membuat daftar file",
"listedFiles": "File terdaftar",
"listFilesFailed": "Tidak dapat membuat daftar file",
"readingSource": "Membaca sumber",
"readSource": "Sumber dibaca",
"readSourceFailed": "Tidak dapat membaca sumber",
"readingFile": "Membaca file",
"readFile": "File dibaca",
"readFileFailed": "Tidak dapat membaca file",
"searchingMemory": "Mencari di memori",
"searchedMemory": "Pencarian memori selesai",
"searchMemoryFailed": "Tidak dapat mencari di memori",
"generatingImage": "Membuat gambar",
"generatedImage": "Gambar dibuat",
"generateImageFailed": "Tidak dapat membuat gambar",
"delegatingTask": "Mendelegasikan tugas",
"delegatedTask": "Tugas didelegasikan",
"delegateTaskFailed": "Tidak dapat mendelegasikan tugas",
"sendingMessage": "Mengirim pesan",
"sentMessage": "Pesan terkirim",
"sendMessageFailed": "Tidak dapat mengirim pesan",
"updatingAgentSettings": "Memperbarui pengaturan agen",
"updatedAgentSettings": "Pengaturan agen diperbarui",
"updateAgentSettingsFailed": "Tidak dapat memperbarui pengaturan agen",
"checkingAgentSettings": "Memeriksa pengaturan agen",
"checkedAgentSettings": "Pengaturan agen diperiksa",
"checkAgentSettingsFailed": "Tidak dapat memeriksa pengaturan agen",
"schedulingAutomation": "Menjadwalkan otomatisasi",
"scheduledAutomation": "Otomatisasi dijadwalkan",
"scheduleAutomationFailed": "Tidak dapat menjadwalkan otomatisasi",
"removingAutomation": "Menghapus otomatisasi",
"removedAutomation": "Otomatisasi dihapus",
"removeAutomationFailed": "Tidak dapat menghapus otomatisasi",
"checkingAutomations": "Memeriksa otomatisasi",
"checkedAutomations": "Otomatisasi diperiksa",
"checkAutomationsFailed": "Tidak dapat memeriksa otomatisasi",
"startingLongTask": "Memulai tugas panjang",
"startedLongTask": "Tugas panjang dimulai",
"startLongTaskFailed": "Tidak dapat memulai tugas panjang",
"updatingLongTask": "Memperbarui tugas panjang",
"updatedLongTask": "Tugas panjang diperbarui",
"updateLongTaskFailed": "Tidak dapat memperbarui tugas panjang",
"continuingCommand": "Melanjutkan perintah",
"continuedCommand": "Perintah dilanjutkan",
"continueCommandFailed": "Tidak dapat melanjutkan perintah",
"checkingRunningCommands": "Memeriksa perintah yang berjalan",
"checkedRunningCommands": "Perintah yang berjalan diperiksa",
"checkRunningCommandsFailed": "Tidak dapat memeriksa perintah yang berjalan",
"capturingScreenshot": "Mengambil tangkapan layar",
"capturedScreenshot": "Tangkapan layar diambil",
"captureScreenshotFailed": "Tidak dapat mengambil tangkapan layar",
"runningTool": "Menjalankan {{name}}",
"completedTool": "{{name}} selesai",
"completeToolFailed": "Tidak dapat menyelesaikan {{name}}",
"files_one": "{{count}} file",
"files_other": "{{count}} file",
"searches_one": "{{count}} pencarian",
"searches_other": "{{count}} pencarian",
"actions_one": "{{count}} tindakan",
"actions_other": "{{count}} tindakan",
"searching": "Mencari {{target}}",
"searched": "Pencarian selesai: {{target}}",
"searchFailed": "Tidak dapat mencari {{target}}",
"web": "web",
"reading": "Membaca",
"read": "Dibaca",
"readFailed": "Tidak dapat membaca",
"privateAddress": "Alamat privat",
"writingFile": "Menulis file",
"wroteFile": "File ditulis",
"writeFileFailed": "Tidak dapat menulis file",
"editingFile": "Mengedit file",
"editedFile": "File diedit",
"editFileFailed": "Tidak dapat mengedit file",
"working": "Bekerja",
"completedStep": "Langkah selesai",
"stepFailed": "Langkah gagal",
"checkingCurrentTime": "Memeriksa waktu saat ini",
"checkedCurrentTime": "Waktu saat ini diperiksa",
"checkCurrentTimeFailed": "Tidak dapat memeriksa waktu saat ini",
"runningCommand": "Menjalankan perintah",
"ranCommand": "Perintah dijalankan",
"commandFailed": "Perintah gagal",
"command": "perintah",
"scriptLines_one": "skrip, {{count}} baris",
"scriptLines_other": "skrip, {{count}} baris",
"opening": "Membuka",
"opened": "Dibuka",
"openFailed": "Tidak dapat membuka",
"clicking": "Mengeklik",
"clicked": "Diklik",
"clickFailed": "Tidak dapat mengeklik",
"enteringText": "Memasukkan teks",
"enteredText": "Teks dimasukkan",
"enterTextFailed": "Tidak dapat memasukkan teks",
"inTarget": "di {{target}}",
"pressing": "Menekan",
"pressed": "Ditekan",
"pressFailed": "Tidak dapat menekan",
"hovering": "Mengarahkan kursor ke",
"hovered": "Kursor diarahkan ke",
"hoverFailed": "Tidak dapat mengarahkan kursor ke",
"selecting": "Memilih",
"selected": "Dipilih",
"selectFailed": "Tidak dapat memilih",
"inspectingPage": "Memeriksa halaman",
"inspectedPage": "Halaman diperiksa",
"inspectPageFailed": "Tidak dapat memeriksa halaman",
"waitingForPage": "Menunggu halaman",
"waitedForPage": "Halaman selesai ditunggu",
"pageNotReady": "Halaman belum siap",
"searchingPlain": "Mencari",
"searchedPlain": "Pencarian selesai",
"searchFailedPlain": "Tidak dapat mencari",
"toolFailed": "{{name}} gagal",
"toolCompleted": "{{name}} selesai",
"toolCall": "Pemanggilan alat",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "Tidak dapat menghapus",
"editFileFailedShort": "Tidak dapat mengedit",
"deletingFile": "Menghapus",
"editingFileShort": "Mengedit",
"deletedFile": "Dihapus",
"editedFileShort": "Diedit"
},
"collapseActivity": "Ciutkan detail aktivitas",
"activityShow": "Lihat aktivitas",
"activityShowFor": "Lihat aktivitas {{duration}}",
@@ -1695,7 +1831,7 @@
"retryExhausted": "{{error}} · mengakhiri giliran",
"cliActivityRunningOne": "Menggunakan {{name}}",
"cliActivityRanOne": "Menggunakan {{name}} selesai",
"cliActivityFailedOne": "{{name}} gagal",
"cliActivityFailedOne": "Tidak dapat menggunakan {{name}}",
"cliActivityRunningMany": "Menggunakan {{count}} aplikasi CLI",
"cliActivityRanMany": "{{count}} aplikasi CLI digunakan",
"cliActivityFailedMany": "{{count}} aplikasi CLI gagal",
+137 -1
View File
@@ -1680,6 +1680,142 @@
"activityWorkingFor": "{{duration}}作業中",
"activityWorked": "作業しました",
"activityWorkedFor": "{{duration}}作業しました",
"agentActivity": {
"reviewingSources": "ソースを確認中",
"reviewedSources": "ソースを確認しました",
"reviewSourcesFailed": "ソースを確認できませんでした",
"searchingFiles": "ファイルを検索中",
"searchedFiles": "ファイルを検索しました",
"searchFilesFailed": "ファイルを検索できませんでした",
"findingFiles": "ファイルを探索中",
"foundFiles": "ファイルを見つけました",
"findFilesFailed": "ファイルを見つけられませんでした",
"listingFiles": "ファイルを一覧表示中",
"listedFiles": "ファイルを一覧表示しました",
"listFilesFailed": "ファイルを一覧表示できませんでした",
"readingSource": "ソースを読み取り中",
"readSource": "ソースを読み取りました",
"readSourceFailed": "ソースを読み取れませんでした",
"readingFile": "ファイルを読み取り中",
"readFile": "ファイルを読み取りました",
"readFileFailed": "ファイルを読み取れませんでした",
"searchingMemory": "メモリを検索中",
"searchedMemory": "メモリを検索しました",
"searchMemoryFailed": "メモリを検索できませんでした",
"generatingImage": "画像を生成中",
"generatedImage": "画像を生成しました",
"generateImageFailed": "画像を生成できませんでした",
"delegatingTask": "タスクを委任中",
"delegatedTask": "タスクを委任しました",
"delegateTaskFailed": "タスクを委任できませんでした",
"sendingMessage": "メッセージを送信中",
"sentMessage": "メッセージを送信しました",
"sendMessageFailed": "メッセージを送信できませんでした",
"updatingAgentSettings": "エージェント設定を更新中",
"updatedAgentSettings": "エージェント設定を更新しました",
"updateAgentSettingsFailed": "エージェント設定を更新できませんでした",
"checkingAgentSettings": "エージェント設定を確認中",
"checkedAgentSettings": "エージェント設定を確認しました",
"checkAgentSettingsFailed": "エージェント設定を確認できませんでした",
"schedulingAutomation": "自動化をスケジュール中",
"scheduledAutomation": "自動化をスケジュールしました",
"scheduleAutomationFailed": "自動化をスケジュールできませんでした",
"removingAutomation": "自動化を削除中",
"removedAutomation": "自動化を削除しました",
"removeAutomationFailed": "自動化を削除できませんでした",
"checkingAutomations": "自動化を確認中",
"checkedAutomations": "自動化を確認しました",
"checkAutomationsFailed": "自動化を確認できませんでした",
"startingLongTask": "長期タスクを開始中",
"startedLongTask": "長期タスクを開始しました",
"startLongTaskFailed": "長期タスクを開始できませんでした",
"updatingLongTask": "長期タスクを更新中",
"updatedLongTask": "長期タスクを更新しました",
"updateLongTaskFailed": "長期タスクを更新できませんでした",
"continuingCommand": "コマンドを続行中",
"continuedCommand": "コマンドを続行しました",
"continueCommandFailed": "コマンドを続行できませんでした",
"checkingRunningCommands": "実行中のコマンドを確認中",
"checkedRunningCommands": "実行中のコマンドを確認しました",
"checkRunningCommandsFailed": "実行中のコマンドを確認できませんでした",
"capturingScreenshot": "スクリーンショットを撮影中",
"capturedScreenshot": "スクリーンショットを撮影しました",
"captureScreenshotFailed": "スクリーンショットを撮影できませんでした",
"runningTool": "{{name}} を実行中",
"completedTool": "{{name}} を完了しました",
"completeToolFailed": "{{name}} を完了できませんでした",
"files_one": "{{count}} 件のファイル",
"files_other": "{{count}} 件のファイル",
"searches_one": "{{count}} 回の検索",
"searches_other": "{{count}} 回の検索",
"actions_one": "{{count}} 件の操作",
"actions_other": "{{count}} 件の操作",
"searching": "{{target}} を検索中",
"searched": "{{target}} を検索しました",
"searchFailed": "{{target}} を検索できませんでした",
"web": "ウェブ",
"reading": "読み取り中",
"read": "読み取りました",
"readFailed": "読み取れませんでした",
"privateAddress": "プライベートアドレス",
"writingFile": "ファイルに書き込み中",
"wroteFile": "ファイルに書き込みました",
"writeFileFailed": "ファイルに書き込めませんでした",
"editingFile": "ファイルを編集中",
"editedFile": "ファイルを編集しました",
"editFileFailed": "ファイルを編集できませんでした",
"working": "処理中",
"completedStep": "ステップを完了しました",
"stepFailed": "ステップに失敗しました",
"checkingCurrentTime": "現在時刻を確認中",
"checkedCurrentTime": "現在時刻を確認しました",
"checkCurrentTimeFailed": "現在時刻を確認できませんでした",
"runningCommand": "コマンドを実行中",
"ranCommand": "コマンドを実行しました",
"commandFailed": "コマンドに失敗しました",
"command": "コマンド",
"scriptLines_one": "スクリプト、{{count}} 行",
"scriptLines_other": "スクリプト、{{count}} 行",
"opening": "開いています",
"opened": "開きました",
"openFailed": "開けませんでした",
"clicking": "クリック中",
"clicked": "クリックしました",
"clickFailed": "クリックできませんでした",
"enteringText": "テキストを入力中",
"enteredText": "テキストを入力しました",
"enterTextFailed": "テキストを入力できませんでした",
"inTarget": "{{target}} に",
"pressing": "押しています",
"pressed": "押しました",
"pressFailed": "押せませんでした",
"hovering": "カーソルを合わせています",
"hovered": "カーソルを合わせました",
"hoverFailed": "カーソルを合わせられませんでした",
"selecting": "選択中",
"selected": "選択しました",
"selectFailed": "選択できませんでした",
"inspectingPage": "ページを確認中",
"inspectedPage": "ページを確認しました",
"inspectPageFailed": "ページを確認できませんでした",
"waitingForPage": "ページを待機中",
"waitedForPage": "ページを待機しました",
"pageNotReady": "ページの準備が整いませんでした",
"searchingPlain": "検索中",
"searchedPlain": "検索しました",
"searchFailedPlain": "検索できませんでした",
"toolFailed": "{{name}} に失敗しました",
"toolCompleted": "{{name}} を完了しました",
"toolCall": "ツール呼び出し",
"actionTarget": "{{target}} · {{action}}",
"actionTargetRich": "<target></target> · <action>{{action}}</action>",
"deleteFileFailed": "削除できませんでした",
"editFileFailedShort": "編集できませんでした",
"deletingFile": "削除中",
"editingFileShort": "編集中",
"deletedFile": "削除しました",
"editedFileShort": "編集しました"
},
"collapseActivity": "アクティビティの詳細を折りたたむ",
"activityShow": "処理過程を表示",
"activityShowFor": "処理過程を表示 {{duration}}",
@@ -1695,7 +1831,7 @@
"retryExhausted": "{{error}} · ターンを終了します",
"cliActivityRunningOne": "{{name}} を使用中",
"cliActivityRanOne": "{{name}} を使用しました",
"cliActivityFailedOne": "{{name}} が失敗しました",
"cliActivityFailedOne": "{{name}} を使用できませんでした",
"cliActivityRunningMany": "{{count}} 個の CLI アプリを使用中",
"cliActivityRanMany": "{{count}} 個の CLI アプリを使用しました",
"cliActivityFailedMany": "{{count}} 個の CLI アプリが失敗しました",
+137 -1
View File
@@ -1680,6 +1680,142 @@
"activityWorkingFor": "{{duration}} 동안 작업 중",
"activityWorked": "작업함",
"activityWorkedFor": "{{duration}} 동안 작업함",
"agentActivity": {
"reviewingSources": "소스 검토 중",
"reviewedSources": "소스 검토 완료",
"reviewSourcesFailed": "소스를 검토하지 못함",
"searchingFiles": "파일 검색 중",
"searchedFiles": "파일 검색 완료",
"searchFilesFailed": "파일을 검색하지 못함",
"findingFiles": "파일 찾는 중",
"foundFiles": "파일 찾음",
"findFilesFailed": "파일을 찾지 못함",
"listingFiles": "파일 목록 작성 중",
"listedFiles": "파일 목록 작성 완료",
"listFilesFailed": "파일 목록을 작성하지 못함",
"readingSource": "소스 읽는 중",
"readSource": "소스 읽음",
"readSourceFailed": "소스를 읽지 못함",
"readingFile": "파일 읽는 중",
"readFile": "파일 읽음",
"readFileFailed": "파일을 읽지 못함",
"searchingMemory": "메모리 검색 중",
"searchedMemory": "메모리 검색 완료",
"searchMemoryFailed": "메모리를 검색하지 못함",
"generatingImage": "이미지 생성 중",
"generatedImage": "이미지 생성 완료",
"generateImageFailed": "이미지를 생성하지 못함",
"delegatingTask": "작업 위임 중",
"delegatedTask": "작업 위임 완료",
"delegateTaskFailed": "작업을 위임하지 못함",
"sendingMessage": "메시지 전송 중",
"sentMessage": "메시지 전송 완료",
"sendMessageFailed": "메시지를 보내지 못함",
"updatingAgentSettings": "에이전트 설정 업데이트 중",
"updatedAgentSettings": "에이전트 설정 업데이트 완료",
"updateAgentSettingsFailed": "에이전트 설정을 업데이트하지 못함",
"checkingAgentSettings": "에이전트 설정 확인 중",
"checkedAgentSettings": "에이전트 설정 확인 완료",
"checkAgentSettingsFailed": "에이전트 설정을 확인하지 못함",
"schedulingAutomation": "자동화 예약 중",
"scheduledAutomation": "자동화 예약 완료",
"scheduleAutomationFailed": "자동화를 예약하지 못함",
"removingAutomation": "자동화 제거 중",
"removedAutomation": "자동화 제거 완료",
"removeAutomationFailed": "자동화를 제거하지 못함",
"checkingAutomations": "자동화 확인 중",
"checkedAutomations": "자동화 확인 완료",
"checkAutomationsFailed": "자동화를 확인하지 못함",
"startingLongTask": "장기 작업 시작 중",
"startedLongTask": "장기 작업 시작 완료",
"startLongTaskFailed": "장기 작업을 시작하지 못함",
"updatingLongTask": "장기 작업 업데이트 중",
"updatedLongTask": "장기 작업 업데이트 완료",
"updateLongTaskFailed": "장기 작업을 업데이트하지 못함",
"continuingCommand": "명령 계속 진행 중",
"continuedCommand": "명령 계속 진행 완료",
"continueCommandFailed": "명령을 계속 진행하지 못함",
"checkingRunningCommands": "실행 중인 명령 확인 중",
"checkedRunningCommands": "실행 중인 명령 확인 완료",
"checkRunningCommandsFailed": "실행 중인 명령을 확인하지 못함",
"capturingScreenshot": "스크린샷 캡처 중",
"capturedScreenshot": "스크린샷 캡처 완료",
"captureScreenshotFailed": "스크린샷을 캡처하지 못함",
"runningTool": "{{name}} 실행 중",
"completedTool": "{{name}} 완료",
"completeToolFailed": "{{name}}을(를) 완료하지 못함",
"files_one": "파일 {{count}}개",
"files_other": "파일 {{count}}개",
"searches_one": "검색 {{count}}회",
"searches_other": "검색 {{count}}회",
"actions_one": "작업 {{count}}개",
"actions_other": "작업 {{count}}개",
"searching": "{{target}} 검색 중",
"searched": "{{target}} 검색 완료",
"searchFailed": "{{target}}을(를) 검색하지 못함",
"web": "웹",
"reading": "읽는 중",
"read": "읽음",
"readFailed": "읽지 못함",
"privateAddress": "비공개 주소",
"writingFile": "파일 쓰는 중",
"wroteFile": "파일 작성 완료",
"writeFileFailed": "파일을 쓰지 못함",
"editingFile": "파일 편집 중",
"editedFile": "파일 편집 완료",
"editFileFailed": "파일을 편집하지 못함",
"working": "작업 중",
"completedStep": "단계 완료",
"stepFailed": "단계 실패",
"checkingCurrentTime": "현재 시간 확인 중",
"checkedCurrentTime": "현재 시간 확인 완료",
"checkCurrentTimeFailed": "현재 시간을 확인하지 못함",
"runningCommand": "명령 실행 중",
"ranCommand": "명령 실행 완료",
"commandFailed": "명령 실패",
"command": "명령",
"scriptLines_one": "스크립트, {{count}}줄",
"scriptLines_other": "스크립트, {{count}}줄",
"opening": "여는 중",
"opened": "열기 완료",
"openFailed": "열지 못함",
"clicking": "클릭 중",
"clicked": "클릭 완료",
"clickFailed": "클릭하지 못함",
"enteringText": "텍스트 입력 중",
"enteredText": "텍스트 입력 완료",
"enterTextFailed": "텍스트를 입력하지 못함",
"inTarget": "{{target}}에",
"pressing": "누르는 중",
"pressed": "누르기 완료",
"pressFailed": "누르지 못함",
"hovering": "마우스 올리는 중",
"hovered": "마우스 올리기 완료",
"hoverFailed": "마우스를 올리지 못함",
"selecting": "선택 중",
"selected": "선택 완료",
"selectFailed": "선택하지 못함",
"inspectingPage": "페이지 검사 중",
"inspectedPage": "페이지 검사 완료",
"inspectPageFailed": "페이지를 검사하지 못함",
"waitingForPage": "페이지 대기 중",
"waitedForPage": "페이지 대기 완료",
"pageNotReady": "페이지가 준비되지 않음",
"searchingPlain": "검색 중",
"searchedPlain": "검색 완료",
"searchFailedPlain": "검색하지 못함",
"toolFailed": "{{name}} 실패",
"toolCompleted": "{{name}} 완료",
"toolCall": "도구 호출",
"actionTarget": "{{target}} · {{action}}",
"actionTargetRich": "<target></target> · <action>{{action}}</action>",
"deleteFileFailed": "삭제하지 못함",
"editFileFailedShort": "편집하지 못함",
"deletingFile": "삭제 중",
"editingFileShort": "편집 중",
"deletedFile": "삭제 완료",
"editedFileShort": "편집 완료"
},
"collapseActivity": "활동 세부 정보 접기",
"activityShow": "작업 과정 보기",
"activityShowFor": "작업 과정 보기 {{duration}}",
@@ -1695,7 +1831,7 @@
"retryExhausted": "{{error}} · 턴 종료 중",
"cliActivityRunningOne": "{{name}} 사용 중",
"cliActivityRanOne": "{{name}} 사용함",
"cliActivityFailedOne": "{{name}} 실패",
"cliActivityFailedOne": "{{name}} 사용 실패",
"cliActivityRunningMany": "CLI 앱 {{count}}개 사용 중",
"cliActivityRanMany": "CLI 앱 {{count}}개 사용함",
"cliActivityFailedMany": "CLI 앱 {{count}}개 실패",
+137 -1
View File
@@ -1666,6 +1666,142 @@
"activityWorkingFor": "Trabalhando por {{duration}}",
"activityWorked": "Trabalhou",
"activityWorkedFor": "Trabalhou por {{duration}}",
"agentActivity": {
"reviewingSources": "Revisando fontes",
"reviewedSources": "Fontes revisadas",
"reviewSourcesFailed": "Não foi possível revisar as fontes",
"searchingFiles": "Pesquisando nos arquivos",
"searchedFiles": "Pesquisa nos arquivos concluída",
"searchFilesFailed": "Não foi possível pesquisar nos arquivos",
"findingFiles": "Procurando arquivos",
"foundFiles": "Arquivos encontrados",
"findFilesFailed": "Não foi possível encontrar arquivos",
"listingFiles": "Listando arquivos",
"listedFiles": "Arquivos listados",
"listFilesFailed": "Não foi possível listar os arquivos",
"readingSource": "Lendo fonte",
"readSource": "Fonte lida",
"readSourceFailed": "Não foi possível ler a fonte",
"readingFile": "Lendo arquivo",
"readFile": "Arquivo lido",
"readFileFailed": "Não foi possível ler o arquivo",
"searchingMemory": "Pesquisando na memória",
"searchedMemory": "Pesquisa na memória concluída",
"searchMemoryFailed": "Não foi possível pesquisar na memória",
"generatingImage": "Gerando imagem",
"generatedImage": "Imagem gerada",
"generateImageFailed": "Não foi possível gerar a imagem",
"delegatingTask": "Delegando tarefa",
"delegatedTask": "Tarefa delegada",
"delegateTaskFailed": "Não foi possível delegar a tarefa",
"sendingMessage": "Enviando mensagem",
"sentMessage": "Mensagem enviada",
"sendMessageFailed": "Não foi possível enviar a mensagem",
"updatingAgentSettings": "Atualizando configurações do agente",
"updatedAgentSettings": "Configurações do agente atualizadas",
"updateAgentSettingsFailed": "Não foi possível atualizar as configurações do agente",
"checkingAgentSettings": "Verificando configurações do agente",
"checkedAgentSettings": "Configurações do agente verificadas",
"checkAgentSettingsFailed": "Não foi possível verificar as configurações do agente",
"schedulingAutomation": "Agendando automação",
"scheduledAutomation": "Automação agendada",
"scheduleAutomationFailed": "Não foi possível agendar a automação",
"removingAutomation": "Removendo automação",
"removedAutomation": "Automação removida",
"removeAutomationFailed": "Não foi possível remover a automação",
"checkingAutomations": "Verificando automações",
"checkedAutomations": "Automações verificadas",
"checkAutomationsFailed": "Não foi possível verificar as automações",
"startingLongTask": "Iniciando tarefa longa",
"startedLongTask": "Tarefa longa iniciada",
"startLongTaskFailed": "Não foi possível iniciar a tarefa longa",
"updatingLongTask": "Atualizando tarefa longa",
"updatedLongTask": "Tarefa longa atualizada",
"updateLongTaskFailed": "Não foi possível atualizar a tarefa longa",
"continuingCommand": "Continuando comando",
"continuedCommand": "Comando continuado",
"continueCommandFailed": "Não foi possível continuar o comando",
"checkingRunningCommands": "Verificando comandos em execução",
"checkedRunningCommands": "Comandos em execução verificados",
"checkRunningCommandsFailed": "Não foi possível verificar os comandos em execução",
"capturingScreenshot": "Capturando tela",
"capturedScreenshot": "Captura de tela realizada",
"captureScreenshotFailed": "Não foi possível capturar a tela",
"runningTool": "Executando {{name}}",
"completedTool": "{{name}} concluído",
"completeToolFailed": "Não foi possível concluir {{name}}",
"files_one": "{{count}} arquivo",
"files_other": "{{count}} arquivos",
"searches_one": "{{count}} pesquisa",
"searches_other": "{{count}} pesquisas",
"actions_one": "{{count}} ação",
"actions_other": "{{count}} ações",
"searching": "Pesquisando {{target}}",
"searched": "Pesquisa concluída: {{target}}",
"searchFailed": "Não foi possível pesquisar {{target}}",
"web": "a web",
"reading": "Lendo",
"read": "Lido",
"readFailed": "Não foi possível ler",
"privateAddress": "Endereço privado",
"writingFile": "Gravando arquivo",
"wroteFile": "Arquivo gravado",
"writeFileFailed": "Não foi possível gravar o arquivo",
"editingFile": "Editando arquivo",
"editedFile": "Arquivo editado",
"editFileFailed": "Não foi possível editar o arquivo",
"working": "Trabalhando",
"completedStep": "Etapa concluída",
"stepFailed": "Falha na etapa",
"checkingCurrentTime": "Verificando a hora atual",
"checkedCurrentTime": "Hora atual verificada",
"checkCurrentTimeFailed": "Não foi possível verificar a hora atual",
"runningCommand": "Executando comando",
"ranCommand": "Comando executado",
"commandFailed": "Falha no comando",
"command": "comando",
"scriptLines_one": "script, {{count}} linha",
"scriptLines_other": "script, {{count}} linhas",
"opening": "Abrindo",
"opened": "Aberto",
"openFailed": "Não foi possível abrir",
"clicking": "Clicando",
"clicked": "Clique realizado",
"clickFailed": "Não foi possível clicar",
"enteringText": "Inserindo texto",
"enteredText": "Texto inserido",
"enterTextFailed": "Não foi possível inserir o texto",
"inTarget": "em {{target}}",
"pressing": "Pressionando",
"pressed": "Pressionado",
"pressFailed": "Não foi possível pressionar",
"hovering": "Passando o cursor sobre",
"hovered": "Cursor posicionado sobre",
"hoverFailed": "Não foi possível passar o cursor sobre",
"selecting": "Selecionando",
"selected": "Selecionado",
"selectFailed": "Não foi possível selecionar",
"inspectingPage": "Inspecionando página",
"inspectedPage": "Página inspecionada",
"inspectPageFailed": "Não foi possível inspecionar a página",
"waitingForPage": "Aguardando página",
"waitedForPage": "Espera pela página concluída",
"pageNotReady": "A página não ficou pronta",
"searchingPlain": "Pesquisando",
"searchedPlain": "Pesquisa concluída",
"searchFailedPlain": "Não foi possível pesquisar",
"toolFailed": "Falha em {{name}}",
"toolCompleted": "{{name}} concluído",
"toolCall": "Chamada de ferramenta",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "Não foi possível excluir",
"editFileFailedShort": "Não foi possível editar",
"deletingFile": "Excluindo",
"editingFileShort": "Editando",
"deletedFile": "Excluído",
"editedFileShort": "Editado"
},
"collapseActivity": "Recolher detalhes da atividade",
"activityShow": "Ver atividade",
"activityShowFor": "Ver atividade {{duration}}",
@@ -1681,7 +1817,7 @@
"retryExhausted": "{{error}} · encerrando o turno",
"cliActivityRunningOne": "Usando {{name}}",
"cliActivityRanOne": "Usou {{name}}",
"cliActivityFailedOne": "Falhou em {{name}}",
"cliActivityFailedOne": "Não foi possível usar {{name}}",
"cliActivityRunningMany": "Usando {{count}} aplicativos CLI",
"cliActivityRanMany": "Usou {{count}} aplicativos CLI",
"cliActivityFailedMany": "{{count}} aplicativos CLI falharam",
+137 -1
View File
@@ -1680,6 +1680,142 @@
"activityWorkingFor": "Đang xử lý trong {{duration}}",
"activityWorked": "Đã xử lý",
"activityWorkedFor": "Đã xử lý trong {{duration}}",
"agentActivity": {
"reviewingSources": "Đang xem lại nguồn",
"reviewedSources": "Đã xem lại nguồn",
"reviewSourcesFailed": "Không thể xem lại nguồn",
"searchingFiles": "Đang tìm trong tệp",
"searchedFiles": "Đã tìm trong tệp",
"searchFilesFailed": "Không thể tìm trong tệp",
"findingFiles": "Đang tìm tệp",
"foundFiles": "Đã tìm thấy tệp",
"findFilesFailed": "Không thể tìm thấy tệp",
"listingFiles": "Đang liệt kê tệp",
"listedFiles": "Đã liệt kê tệp",
"listFilesFailed": "Không thể liệt kê tệp",
"readingSource": "Đang đọc nguồn",
"readSource": "Đã đọc nguồn",
"readSourceFailed": "Không thể đọc nguồn",
"readingFile": "Đang đọc tệp",
"readFile": "Đã đọc tệp",
"readFileFailed": "Không thể đọc tệp",
"searchingMemory": "Đang tìm trong bộ nhớ",
"searchedMemory": "Đã tìm trong bộ nhớ",
"searchMemoryFailed": "Không thể tìm trong bộ nhớ",
"generatingImage": "Đang tạo ảnh",
"generatedImage": "Đã tạo ảnh",
"generateImageFailed": "Không thể tạo ảnh",
"delegatingTask": "Đang giao nhiệm vụ",
"delegatedTask": "Đã giao nhiệm vụ",
"delegateTaskFailed": "Không thể giao nhiệm vụ",
"sendingMessage": "Đang gửi tin nhắn",
"sentMessage": "Đã gửi tin nhắn",
"sendMessageFailed": "Không thể gửi tin nhắn",
"updatingAgentSettings": "Đang cập nhật cài đặt tác nhân",
"updatedAgentSettings": "Đã cập nhật cài đặt tác nhân",
"updateAgentSettingsFailed": "Không thể cập nhật cài đặt tác nhân",
"checkingAgentSettings": "Đang kiểm tra cài đặt tác nhân",
"checkedAgentSettings": "Đã kiểm tra cài đặt tác nhân",
"checkAgentSettingsFailed": "Không thể kiểm tra cài đặt tác nhân",
"schedulingAutomation": "Đang lên lịch tự động hóa",
"scheduledAutomation": "Đã lên lịch tự động hóa",
"scheduleAutomationFailed": "Không thể lên lịch tự động hóa",
"removingAutomation": "Đang xóa tự động hóa",
"removedAutomation": "Đã xóa tự động hóa",
"removeAutomationFailed": "Không thể xóa tự động hóa",
"checkingAutomations": "Đang kiểm tra tự động hóa",
"checkedAutomations": "Đã kiểm tra tự động hóa",
"checkAutomationsFailed": "Không thể kiểm tra tự động hóa",
"startingLongTask": "Đang bắt đầu tác vụ dài",
"startedLongTask": "Đã bắt đầu tác vụ dài",
"startLongTaskFailed": "Không thể bắt đầu tác vụ dài",
"updatingLongTask": "Đang cập nhật tác vụ dài",
"updatedLongTask": "Đã cập nhật tác vụ dài",
"updateLongTaskFailed": "Không thể cập nhật tác vụ dài",
"continuingCommand": "Đang tiếp tục lệnh",
"continuedCommand": "Đã tiếp tục lệnh",
"continueCommandFailed": "Không thể tiếp tục lệnh",
"checkingRunningCommands": "Đang kiểm tra lệnh đang chạy",
"checkedRunningCommands": "Đã kiểm tra lệnh đang chạy",
"checkRunningCommandsFailed": "Không thể kiểm tra lệnh đang chạy",
"capturingScreenshot": "Đang chụp màn hình",
"capturedScreenshot": "Đã chụp màn hình",
"captureScreenshotFailed": "Không thể chụp màn hình",
"runningTool": "Đang chạy {{name}}",
"completedTool": "Đã hoàn tất {{name}}",
"completeToolFailed": "Không thể hoàn tất {{name}}",
"files_one": "{{count}} tệp",
"files_other": "{{count}} tệp",
"searches_one": "{{count}} lượt tìm kiếm",
"searches_other": "{{count}} lượt tìm kiếm",
"actions_one": "{{count}} hành động",
"actions_other": "{{count}} hành động",
"searching": "Đang tìm kiếm {{target}}",
"searched": "Đã tìm kiếm {{target}}",
"searchFailed": "Không thể tìm kiếm {{target}}",
"web": "trên web",
"reading": "Đang đọc",
"read": "Đã đọc",
"readFailed": "Không thể đọc",
"privateAddress": "Địa chỉ riêng tư",
"writingFile": "Đang ghi tệp",
"wroteFile": "Đã ghi tệp",
"writeFileFailed": "Không thể ghi tệp",
"editingFile": "Đang chỉnh sửa tệp",
"editedFile": "Đã chỉnh sửa tệp",
"editFileFailed": "Không thể chỉnh sửa tệp",
"working": "Đang xử lý",
"completedStep": "Đã hoàn tất bước",
"stepFailed": "Bước thất bại",
"checkingCurrentTime": "Đang kiểm tra thời gian hiện tại",
"checkedCurrentTime": "Đã kiểm tra thời gian hiện tại",
"checkCurrentTimeFailed": "Không thể kiểm tra thời gian hiện tại",
"runningCommand": "Đang chạy lệnh",
"ranCommand": "Đã chạy lệnh",
"commandFailed": "Lệnh thất bại",
"command": "lệnh",
"scriptLines_one": "tập lệnh, {{count}} dòng",
"scriptLines_other": "tập lệnh, {{count}} dòng",
"opening": "Đang mở",
"opened": "Đã mở",
"openFailed": "Không thể mở",
"clicking": "Đang nhấp",
"clicked": "Đã nhấp",
"clickFailed": "Không thể nhấp",
"enteringText": "Đang nhập văn bản",
"enteredText": "Đã nhập văn bản",
"enterTextFailed": "Không thể nhập văn bản",
"inTarget": "vào {{target}}",
"pressing": "Đang nhấn",
"pressed": "Đã nhấn",
"pressFailed": "Không thể nhấn",
"hovering": "Đang di chuột qua",
"hovered": "Đã di chuột qua",
"hoverFailed": "Không thể di chuột qua",
"selecting": "Đang chọn",
"selected": "Đã chọn",
"selectFailed": "Không thể chọn",
"inspectingPage": "Đang kiểm tra trang",
"inspectedPage": "Đã kiểm tra trang",
"inspectPageFailed": "Không thể kiểm tra trang",
"waitingForPage": "Đang chờ trang",
"waitedForPage": "Đã chờ trang",
"pageNotReady": "Trang chưa sẵn sàng",
"searchingPlain": "Đang tìm kiếm",
"searchedPlain": "Đã tìm kiếm",
"searchFailedPlain": "Không thể tìm kiếm",
"toolFailed": "{{name}} thất bại",
"toolCompleted": "{{name}} đã hoàn tất",
"toolCall": "Lệnh gọi công cụ",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "Không thể xóa",
"editFileFailedShort": "Không thể chỉnh sửa",
"deletingFile": "Đang xóa",
"editingFileShort": "Đang chỉnh sửa",
"deletedFile": "Đã xóa",
"editedFileShort": "Đã chỉnh sửa"
},
"collapseActivity": "Thu gọn chi tiết hoạt động",
"activityShow": "Xem quá trình",
"activityShowFor": "Xem quá trình {{duration}}",
@@ -1695,7 +1831,7 @@
"retryExhausted": "{{error}} · đang kết thúc lượt",
"cliActivityRunningOne": "Đang dùng {{name}}",
"cliActivityRanOne": "Đã dùng {{name}}",
"cliActivityFailedOne": "{{name}} thất bại",
"cliActivityFailedOne": "Không thể dùng {{name}}",
"cliActivityRunningMany": "Đang dùng {{count}} ứng dụng CLI",
"cliActivityRanMany": "Đã dùng {{count}} ứng dụng CLI",
"cliActivityFailedMany": "{{count}} ứng dụng CLI thất bại",
+137 -1
View File
@@ -1851,6 +1851,142 @@
"activityThoughtFor": "思考了 {{duration}}",
"activityWorkingFor": "处理中 {{duration}}",
"activityWorked": "已处理",
"agentActivity": {
"reviewingSources": "正在检查来源",
"reviewedSources": "已检查来源",
"reviewSourcesFailed": "无法检查来源",
"searchingFiles": "正在搜索文件",
"searchedFiles": "已搜索文件",
"searchFilesFailed": "无法搜索文件",
"findingFiles": "正在查找文件",
"foundFiles": "已找到文件",
"findFilesFailed": "无法查找文件",
"listingFiles": "正在列出文件",
"listedFiles": "已列出文件",
"listFilesFailed": "无法列出文件",
"readingSource": "正在读取来源",
"readSource": "已读取来源",
"readSourceFailed": "无法读取来源",
"readingFile": "正在读取文件",
"readFile": "已读取文件",
"readFileFailed": "无法读取文件",
"searchingMemory": "正在搜索记忆",
"searchedMemory": "已搜索记忆",
"searchMemoryFailed": "无法搜索记忆",
"generatingImage": "正在生成图片",
"generatedImage": "已生成图片",
"generateImageFailed": "无法生成图片",
"delegatingTask": "正在委派任务",
"delegatedTask": "已委派任务",
"delegateTaskFailed": "无法委派任务",
"sendingMessage": "正在发送消息",
"sentMessage": "已发送消息",
"sendMessageFailed": "无法发送消息",
"updatingAgentSettings": "正在更新智能体设置",
"updatedAgentSettings": "已更新智能体设置",
"updateAgentSettingsFailed": "无法更新智能体设置",
"checkingAgentSettings": "正在检查智能体设置",
"checkedAgentSettings": "已检查智能体设置",
"checkAgentSettingsFailed": "无法检查智能体设置",
"schedulingAutomation": "正在安排自动化",
"scheduledAutomation": "已安排自动化",
"scheduleAutomationFailed": "无法安排自动化",
"removingAutomation": "正在移除自动化",
"removedAutomation": "已移除自动化",
"removeAutomationFailed": "无法移除自动化",
"checkingAutomations": "正在检查自动化",
"checkedAutomations": "已检查自动化",
"checkAutomationsFailed": "无法检查自动化",
"startingLongTask": "正在启动长期任务",
"startedLongTask": "已启动长期任务",
"startLongTaskFailed": "无法启动长期任务",
"updatingLongTask": "正在更新长期任务",
"updatedLongTask": "已更新长期任务",
"updateLongTaskFailed": "无法更新长期任务",
"continuingCommand": "正在继续命令",
"continuedCommand": "已继续命令",
"continueCommandFailed": "无法继续命令",
"checkingRunningCommands": "正在检查运行中的命令",
"checkedRunningCommands": "已检查运行中的命令",
"checkRunningCommandsFailed": "无法检查运行中的命令",
"capturingScreenshot": "正在截取屏幕截图",
"capturedScreenshot": "已截取屏幕截图",
"captureScreenshotFailed": "无法截取屏幕截图",
"runningTool": "正在运行 {{name}}",
"completedTool": "已完成 {{name}}",
"completeToolFailed": "无法完成 {{name}}",
"files_one": "{{count}} 个文件",
"files_other": "{{count}} 个文件",
"searches_one": "{{count}} 次搜索",
"searches_other": "{{count}} 次搜索",
"actions_one": "{{count}} 个操作",
"actions_other": "{{count}} 个操作",
"searching": "正在搜索 {{target}}",
"searched": "已搜索 {{target}}",
"searchFailed": "无法搜索 {{target}}",
"web": "网页",
"reading": "正在读取",
"read": "已读取",
"readFailed": "无法读取",
"privateAddress": "私有地址",
"writingFile": "正在写入文件",
"wroteFile": "已写入文件",
"writeFileFailed": "无法写入文件",
"editingFile": "正在编辑文件",
"editedFile": "已编辑文件",
"editFileFailed": "无法编辑文件",
"working": "正在处理",
"completedStep": "已完成步骤",
"stepFailed": "步骤失败",
"checkingCurrentTime": "正在检查当前时间",
"checkedCurrentTime": "已检查当前时间",
"checkCurrentTimeFailed": "无法检查当前时间",
"runningCommand": "正在运行命令",
"ranCommand": "已运行命令",
"commandFailed": "命令运行失败",
"command": "命令",
"scriptLines_one": "脚本,{{count}} 行",
"scriptLines_other": "脚本,{{count}} 行",
"opening": "正在打开",
"opened": "已打开",
"openFailed": "无法打开",
"clicking": "正在点击",
"clicked": "已点击",
"clickFailed": "无法点击",
"enteringText": "正在输入文本",
"enteredText": "已输入文本",
"enterTextFailed": "无法输入文本",
"inTarget": "至 {{target}}",
"pressing": "正在按下",
"pressed": "已按下",
"pressFailed": "无法按下",
"hovering": "正在悬停于",
"hovered": "已悬停于",
"hoverFailed": "无法悬停于",
"selecting": "正在选择",
"selected": "已选择",
"selectFailed": "无法选择",
"inspectingPage": "正在检查页面",
"inspectedPage": "已检查页面",
"inspectPageFailed": "无法检查页面",
"waitingForPage": "正在等待页面",
"waitedForPage": "已等待页面",
"pageNotReady": "页面未就绪",
"searchingPlain": "正在搜索",
"searchedPlain": "已搜索",
"searchFailedPlain": "无法搜索",
"toolFailed": "{{name}} 失败",
"toolCompleted": "{{name}} 已完成",
"toolCall": "工具调用",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "无法删除",
"editFileFailedShort": "无法编辑",
"deletingFile": "正在删除",
"editingFileShort": "正在编辑",
"deletedFile": "已删除",
"editedFileShort": "已编辑"
},
"activityWorkedFor": "已处理 {{duration}}",
"collapseActivity": "收起处理过程",
"activityShow": "查看过程",
@@ -1867,7 +2003,7 @@
"retryExhausted": "{{error}} · 正在结束本次任务",
"cliActivityRunningOne": "正在使用 {{name}}",
"cliActivityRanOne": "已使用 {{name}}",
"cliActivityFailedOne": "使用 {{name}} 失败",
"cliActivityFailedOne": "无法使用 {{name}}",
"cliActivityRunningMany": "正在使用 {{count}} 个 CLI 应用",
"cliActivityRanMany": "已使用 {{count}} 个 CLI 应用",
"cliActivityFailedMany": "{{count}} 个 CLI 应用失败",
+139 -3
View File
@@ -1679,6 +1679,145 @@
"activityWorkingFor": "處理中,已 {{duration}}",
"activityWorked": "已處理",
"activityWorkedFor": "已處理 {{duration}}",
"agentActivity": {
"reviewingSources": "正在檢查來源",
"reviewedSources": "已檢查來源",
"reviewSourcesFailed": "無法檢查來源",
"searchingFiles": "正在搜尋檔案",
"searchedFiles": "已搜尋檔案",
"searchFilesFailed": "無法搜尋檔案",
"findingFiles": "正在尋找檔案",
"foundFiles": "已找到檔案",
"findFilesFailed": "無法尋找檔案",
"listingFiles": "正在列出檔案",
"listedFiles": "已列出檔案",
"listFilesFailed": "無法列出檔案",
"readingSource": "正在讀取來源",
"readSource": "已讀取來源",
"readSourceFailed": "無法讀取來源",
"readingFile": "正在讀取檔案",
"readFile": "已讀取檔案",
"readFileFailed": "無法讀取檔案",
"searchingMemory": "正在搜尋記憶",
"searchedMemory": "已搜尋記憶",
"searchMemoryFailed": "無法搜尋記憶",
"generatingImage": "正在產生圖片",
"generatedImage": "已產生圖片",
"generateImageFailed": "無法產生圖片",
"delegatingTask": "正在委派任務",
"delegatedTask": "已委派任務",
"delegateTaskFailed": "無法委派任務",
"sendingMessage": "正在傳送訊息",
"sentMessage": "已傳送訊息",
"sendMessageFailed": "無法傳送訊息",
"updatingAgentSettings": "正在更新智能體設定",
"updatedAgentSettings": "已更新智能體設定",
"updateAgentSettingsFailed": "無法更新智能體設定",
"checkingAgentSettings": "正在檢查智能體設定",
"checkedAgentSettings": "已檢查智能體設定",
"checkAgentSettingsFailed": "無法檢查智能體設定",
"schedulingAutomation": "正在排程自動化",
"scheduledAutomation": "已排程自動化",
"scheduleAutomationFailed": "無法排程自動化",
"removingAutomation": "正在移除自動化",
"removedAutomation": "已移除自動化",
"removeAutomationFailed": "無法移除自動化",
"checkingAutomations": "正在檢查自動化",
"checkedAutomations": "已檢查自動化",
"checkAutomationsFailed": "無法檢查自動化",
"startingLongTask": "正在啟動長期任務",
"startedLongTask": "已啟動長期任務",
"startLongTaskFailed": "無法啟動長期任務",
"updatingLongTask": "正在更新長期任務",
"updatedLongTask": "已更新長期任務",
"updateLongTaskFailed": "無法更新長期任務",
"continuingCommand": "正在繼續命令",
"continuedCommand": "已繼續命令",
"continueCommandFailed": "無法繼續命令",
"checkingRunningCommands": "正在檢查執行中的命令",
"checkedRunningCommands": "已檢查執行中的命令",
"checkRunningCommandsFailed": "無法檢查執行中的命令",
"capturingScreenshot": "正在擷取螢幕截圖",
"capturedScreenshot": "已擷取螢幕截圖",
"captureScreenshotFailed": "無法擷取螢幕截圖",
"runningTool": "正在執行 {{name}}",
"completedTool": "已完成 {{name}}",
"completeToolFailed": "無法完成 {{name}}",
"files_one": "{{count}} 個檔案",
"files_other": "{{count}} 個檔案",
"searches_one": "{{count}} 次搜尋",
"searches_other": "{{count}} 次搜尋",
"actions_one": "{{count}} 個操作",
"actions_other": "{{count}} 個操作",
"searching": "正在搜尋 {{target}}",
"searched": "已搜尋 {{target}}",
"searchFailed": "無法搜尋 {{target}}",
"web": "網頁",
"reading": "正在讀取",
"read": "已讀取",
"readFailed": "無法讀取",
"privateAddress": "私人位址",
"writingFile": "正在寫入檔案",
"wroteFile": "已寫入檔案",
"writeFileFailed": "無法寫入檔案",
"editingFile": "正在編輯檔案",
"editedFile": "已編輯檔案",
"editFileFailed": "無法編輯檔案",
"working": "正在處理",
"completedStep": "已完成步驟",
"stepFailed": "步驟失敗",
"checkingCurrentTime": "正在檢查目前時間",
"checkedCurrentTime": "已檢查目前時間",
"checkCurrentTimeFailed": "無法檢查目前時間",
"runningCommand": "正在執行命令",
"ranCommand": "已執行命令",
"commandFailed": "命令執行失敗",
"command": "命令",
"scriptLines_one": "指令碼,{{count}} 行",
"scriptLines_other": "指令碼,{{count}} 行",
"opening": "正在開啟",
"opened": "已開啟",
"openFailed": "無法開啟",
"clicking": "正在點擊",
"clicked": "已點擊",
"clickFailed": "無法點擊",
"enteringText": "正在輸入文字",
"enteredText": "已輸入文字",
"enterTextFailed": "無法輸入文字",
"inTarget": "至 {{target}}",
"pressing": "正在按下",
"pressed": "已按下",
"pressFailed": "無法按下",
"hovering": "正在停留於",
"hovered": "已停留於",
"hoverFailed": "無法停留於",
"selecting": "正在選取",
"selected": "已選取",
"selectFailed": "無法選取",
"inspectingPage": "正在檢查頁面",
"inspectedPage": "已檢查頁面",
"inspectPageFailed": "無法檢查頁面",
"waitingForPage": "正在等待頁面",
"waitedForPage": "已等待頁面",
"pageNotReady": "頁面尚未就緒",
"searchingPlain": "正在搜尋",
"searchedPlain": "已搜尋",
"searchFailedPlain": "無法搜尋",
"toolFailed": "{{name}} 失敗",
"toolCompleted": "{{name}} 已完成",
"toolCall": "工具呼叫",
"actionTarget": "{{action}} {{target}}",
"actionTargetRich": "<action>{{action}}</action> <target></target>",
"deleteFileFailed": "無法刪除",
"editFileFailedShort": "無法編輯",
"deletingFile": "正在刪除",
"editingFileShort": "正在編輯",
"deletedFile": "已刪除",
"editedFileShort": "已編輯"
},
"cliActivityRunningOne": "正在使用 {{name}}",
"cliActivityRanOne": "已使用 {{name}}",
"cliActivityFailedOne": "無法使用 {{name}}",
"collapseActivity": "收合處理過程",
"activityShow": "查看過程",
"activityShowFor": "查看過程 {{duration}}",
@@ -1692,9 +1831,6 @@
"retryUnknown": "模型請求失敗",
"retryWaiting": "{{error}} · {{seconds}} 秒後重試 · 第 {{attempt}} 次",
"retryExhausted": "{{error}} · 正在結束本輪",
"cliActivityRunningOne": "正在使用 @{{name}}",
"cliActivityRanOne": "已使用 @{{name}}",
"cliActivityFailedOne": "使用 @{{name}} 失敗",
"cliActivityRunningMany": "正在使用 {{count}} 個 CLI 應用程式",
"cliActivityRanMany": "已使用 {{count}} 個 CLI 應用程式",
"cliActivityFailedMany": "{{count}} 個 CLI 應用程式失敗",
@@ -3,6 +3,7 @@ import { describe, expect, it, vi } from "vitest";
import { AgentActivityCluster } from "@/components/thread/AgentActivityCluster";
import { preloadMarkdownText } from "@/components/MarkdownText";
import { setAppLanguage } from "@/i18n";
import { DEFAULT_LOCAL_PREFS, writeLocalPreferences } from "@/lib/local-preferences";
import type { CliAppInfo, McpPresetInfo, UIMessage } from "@/lib/types";
@@ -97,6 +98,77 @@ function installReducedMotion() {
}
describe("AgentActivityCluster", () => {
it("updates existing activity when the language changes without altering raw values", async () => {
const query = "release notes";
const path = "src/app.tsx";
const cliLine = 'run_cli_app({"name":"blender","args":["--background","scene.blend"],"json":true})';
render(
<AgentActivityCluster
messages={[
{
id: "localized-activity",
role: "tool",
kind: "trace",
content: cliLine,
traces: [
`grep(${JSON.stringify({ pattern: query })})`,
`read_file(${JSON.stringify({ path })})`,
cliLine,
'mcp_browserbase_browser_navigate({"url":"https://example.com"})',
"edit_file()",
],
toolEvents: [{
phase: "start",
call_id: "localized-browserbase",
name: "mcp_browserbase_browser_navigate",
arguments: { url: "https://example.com" },
}],
fileEdits: [{
call_id: "localized-file-edit",
tool: "edit_file",
path,
phase: "end",
added: 1,
deleted: 0,
approximate: false,
status: "done",
}],
createdAt: 1,
},
]}
isTurnStreaming
hasBodyBelow={false}
cliApps={[BLENDER_CLI_APP]}
mcpPresets={[BROWSERBASE_MCP]}
/>,
);
expect(screen.getByText(`Searched files “${query}”`)).toBeInTheDocument();
expect(screen.getByText(`Reading file ${path}`)).toBeInTheDocument();
expect(screen.getByText("Using Blender · --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByText("Opening example.com · Browserbase")).toBeInTheDocument();
expect(screen.getByText("Edited")).toBeInTheDocument();
expect(screen.getByTestId("activity-file-reference")).toHaveTextContent(path);
await act(async () => setAppLanguage("zh-CN"));
expect(screen.getByText(`已搜索文件 “${query}”`)).toBeInTheDocument();
expect(screen.getByText(`正在读取文件 ${path}`)).toBeInTheDocument();
expect(screen.getByText("正在使用 Blender · --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByText("正在打开 example.com · Browserbase")).toBeInTheDocument();
expect(screen.getByText("已编辑")).toBeInTheDocument();
expect(screen.getByTestId("activity-file-reference")).toHaveTextContent(path);
await act(async () => setAppLanguage("ja"));
expect(screen.getByText(`“${query}” · ファイルを検索しました`)).toBeInTheDocument();
expect(screen.getByText(`${path} · ファイルを読み取り中`)).toBeInTheDocument();
expect(screen.getByText("Blender を使用中 · --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByText("example.com · 開いています · Browserbase")).toBeInTheDocument();
expect(screen.getByTestId("activity-file-reference").closest('[data-testid="activity-step"]'))
.toHaveTextContent(`${path} · 編集しました`);
});
it("loads deferred trace details only after completed activity is expanded", async () => {
const onLoadTraceDetails = vi.fn();
render(
+30 -2
View File
@@ -6,11 +6,12 @@ import {
parseGenericToolTrace,
type GenericToolStatus,
} from "@/components/thread/activity/generic-tool-model";
import i18n, { setAppLanguage } from "@/i18n";
function describeRun(line: string, status: GenericToolStatus = "done") {
const trace = parseGenericToolTrace(line);
expect(trace).not.toBeNull();
return describeGenericToolRun([{ trace: trace!, status }]);
return describeGenericToolRun([{ trace: trace!, status }], i18n.t);
}
describe("generic tool activity semantics", () => {
@@ -59,7 +60,7 @@ describe("generic tool activity semantics", () => {
const presentation = describeGenericToolRun([
{ trace: first, status: "done" },
{ trace: second, status: "done" },
]);
], i18n.t);
expect(presentation).toMatchObject({ label: "Reviewed sources", detail: "", aside: "2 files" });
expect(JSON.stringify(presentation)).not.toContain("/Users/test");
@@ -80,6 +81,33 @@ describe("generic tool activity semantics", () => {
}
});
it("localizes labels and counts without translating raw search text", async () => {
await setAppLanguage("zh-CN");
const first = parseGenericToolTrace('grep({"pattern":"release notes"})')!;
const second = parseGenericToolTrace('grep({"pattern":"API changes"})')!;
expect(describeGenericToolRun([
{ trace: first, status: "done" },
{ trace: second, status: "done" },
], i18n.t)).toMatchObject({
label: "已搜索文件",
aside: "2 次搜索",
});
});
it("localizes command continuation events", async () => {
await setAppLanguage("zh-CN");
const line = 'exec_session({"session_id":"session-1234567890-secret"})';
for (const status of ["running", "done", "error"] as const) {
const key = status === "running" ? "continuingCommand"
: status === "done" ? "continuedCommand" : "continueCommandFailed";
expect(describeRun(line, status)).toMatchObject({
label: i18n.t(`message.agentActivity.${key}`),
detail: "session…ecret",
});
}
});
it.each([
["Authorization: Bearer top-secret-token", "Authorization: <redacted>"],
["API_KEY=sk-proj-1234567890abcdef", "API_KEY=<redacted>"],
+16 -2
View File
@@ -1,6 +1,7 @@
import { describe, expect, it } from "vitest";
import { describeMcpActivity } from "@/components/thread/activity/mcp-activity-model";
import i18n, { setAppLanguage } from "@/i18n";
describe("describeMcpActivity", () => {
it.each([
@@ -10,7 +11,7 @@ describe("describeMcpActivity", () => {
["browser_screenshot", {}, "done", "Captured screenshot", undefined],
["browser_press_key", { key: "Enter" }, "error", "Could not press", "Enter"],
] as const)("turns %s into user-facing activity copy", (tool, args, status, action, target) => {
expect(describeMcpActivity(tool, args, status)).toEqual({ action, target });
expect(describeMcpActivity(tool, args, status, i18n.t)).toEqual({ action, target });
});
it("does not expose entered text in the activity timeline", () => {
@@ -18,6 +19,7 @@ describe("describeMcpActivity", () => {
"browser_fill",
{ element: "Password", text: "not-for-the-timeline" },
"done",
i18n.t,
)).toEqual({ action: "Entered text", target: "in Password" });
});
@@ -26,12 +28,24 @@ describe("describeMcpActivity", () => {
"browser_navigate",
{ url: "https://user:password@example.com/docs?token=private#section" },
"done",
i18n.t,
)).toEqual({ action: "Opened", target: "example.com/docs" });
});
it("humanizes unknown tool names instead of exposing function syntax", () => {
expect(describeMcpActivity("browser_export_report", {}, "done")).toEqual({
expect(describeMcpActivity("browser_export_report", {}, "done", i18n.t)).toEqual({
action: "Export report completed",
});
});
it("localizes browser actions without translating targets", async () => {
await setAppLanguage("zh-CN");
expect(describeMcpActivity(
"browser_fill",
{ element: "Password", text: "not-for-the-timeline" },
"done",
i18n.t,
)).toEqual({ action: "已输入文本", target: "至 Password" });
});
});
+15 -1
View File
@@ -2,9 +2,10 @@ import { describe, expect, it } from "vitest";
import { describeTraceLine } from "@/components/thread/activity/trace-activity-model";
import type { GenericToolStatus } from "@/components/thread/activity/generic-tool-model";
import i18n, { setAppLanguage } from "@/i18n";
function describeTrace(line: string, status: GenericToolStatus = "done") {
return describeTraceLine(line, status);
return describeTraceLine(line, status, i18n.t);
}
describe("trace activity semantics", () => {
@@ -66,4 +67,17 @@ describe("trace activity semantics", () => {
});
expect(result.detail).not.toContain("second-secret-line");
});
it("localizes generated copy while preserving paths and commands", async () => {
await setAppLanguage("zh-CN");
expect(describeTrace('read_file({"path":"src/app.tsx"})')).toMatchObject({
label: "已读取",
detail: "src/app.tsx",
});
expect(describeTrace('exec({"command":"bun test"})')).toMatchObject({
label: "已运行命令",
detail: "bun test",
});
});
});