前端聚合当前轮次工具调用数,替代每轮清零的完成计数,进度文案改轮次+累计口径 完成聚合语义由执行轨迹卡承接,工具卡复读修复与默认折叠收敛 流式与工具事件配套调整,新增轮次轨迹收集 composable
77 lines
4.8 KiB
TypeScript
77 lines
4.8 KiB
TypeScript
export default {
|
|
ai: {
|
|
assistant: 'AI Assistant',
|
|
toolName: {
|
|
readFile: 'Read File',
|
|
listDirectory: 'List Directory',
|
|
writeFile: 'Write File',
|
|
fileInfo: 'File Info',
|
|
appendFile: 'Append File',
|
|
searchFiles: 'Search Files',
|
|
patchFile: 'Patch File',
|
|
deleteFile: 'Delete File',
|
|
renameFile: 'Rename/Move File',
|
|
},
|
|
aiTool: {
|
|
fileInfoDesc: 'Get file or directory metadata (exists, size, line count, modified time, is binary, is directory) without reading content',
|
|
appendFileDesc: 'Append content to end of file. Creates file if not exists. Returns bytes written and new file size',
|
|
searchFilesDesc: 'Search for files matching a pattern (case-insensitive substring match) in a directory. Supports recursive search, max 50 results with total count and has_more flag',
|
|
renameFileDesc: 'Rename or move a file (one tool covers both rename and move). from=source path, to=target path, overwrite=default false (reject if target exists). Atomic rename on same volume, auto copy+remove across volumes',
|
|
},
|
|
errorNotFound: 'Request failed: the endpoint or model does not exist. Please check the Provider configuration.',
|
|
errorAuth: 'Request failed: the API key is invalid or lacks permission.',
|
|
errorTimeout: 'The response timed out. Please try again.',
|
|
errorNetwork: 'Network connection failed. Please check your network.',
|
|
// CR-30-2 / F-260616-07(d) / decision a1: stream pre-failure retry bubble copy
|
|
// clarify this is an AI response (network/rate-limit) retry, not a tool failure (shown in card)
|
|
aiStreamRetry: '⚠ AI response failed, retrying ({attempt}/{max})…',
|
|
// Fatal errors (4xx/auth) are not retryable — prompt user to check settings instead
|
|
notRetryable: 'This error cannot be resolved by retrying. Please check the configuration.',
|
|
streamInterruptedAfterTool: '⚠ The tool finished, but the following reply was interrupted (no data stream for a long time). You can click Continue to retry.',
|
|
streamInterrupted: '⚠ The response was interrupted (no data stream for a long time). This may be due to a network disconnection or a backend error. Please try again.',
|
|
// UX-2025-04 / CR-30-2 / decision a1: system notice bubble after mid-stream failure preserve (frontend mirrors backend session.messages)
|
|
responseIncomplete: '⚠ The response is incomplete due to a network interruption. The above is the partial content received. You can resend to get a full reply.',
|
|
queueFull: 'Send queue is full (max {limit} items)',
|
|
forceSendConfirm: 'AI generation appears stuck. Force-stop and send anyway? (This may interrupt the current response)',
|
|
forceSendBtn: 'Force Send',
|
|
queueTimedOut: 'Queue timed out',
|
|
approvalNotDelivered: 'Approval operation failed to reach the backend: {error}',
|
|
queuedSendFailed: 'Failed to send queued message: {error}',
|
|
approvalTimeout: '⚰ Approval timed out, automatically rejected: {toolName}',
|
|
// conversation load/switch failure feedback (network jitter/IPC down → empty list/blank, was silent)
|
|
loadConvFail: 'Failed to load conversations. Please check your network or backend connection.',
|
|
switchConvFail: 'Failed to switch conversation. Please retry.',
|
|
// M30: rename/archive/pin IPC failure feedback (was no try/catch, exceptions leaked to unhandledrejection)
|
|
renameConvFail: 'Failed to rename. Please retry.',
|
|
archiveConvFail: 'Failed to {action}. Please retry.',
|
|
pinConvFail: 'Failed to {action}. Please retry.',
|
|
// G3.4: new/delete conversation failure feedback (was bare await → unhandledrejection, user no feedback)
|
|
newConvFail: 'Failed to create a new conversation. Please retry.',
|
|
deleteConvFail: 'Failed to delete conversation. Please retry.',
|
|
archiveAction: 'archive',
|
|
unarchiveAction: 'unarchive',
|
|
pinAction: 'pin',
|
|
unpinAction: 'unpin',
|
|
// Agentic loop progress bar copy (status semantics: round N · M calls total · running/pending)
|
|
// total is aggregated on the frontend from current-turn toolCalls (useTurnTrace), not a backend field
|
|
// Note: max round is not surfaced by backend; template conditionally omits it.
|
|
agenticProgress: 'Round {round} · {total} calls total · ⏳{pending} pending',
|
|
agenticProgressNoPending: 'Round {round} · {total} calls total · running',
|
|
// Shared semantics for execution trace card / live step summary (A) and aggregate group row (B)
|
|
trace: {
|
|
title: 'Execution Trace',
|
|
calls: '{n} calls',
|
|
ok: '{n} ok',
|
|
fail: '{n} failed',
|
|
rejected: '{n} rejected',
|
|
duration: 'total {time}',
|
|
expand: 'Expand trace',
|
|
collapse: 'Collapse trace',
|
|
processOnly: 'Process log',
|
|
stepDone: '✓ {n} calls done',
|
|
stepRunning: 'running {name}',
|
|
stepPending: '⏳ {n} pending approval',
|
|
},
|
|
},
|
|
}
|