重构: 审批交互重设计

This commit is contained in:
lxy
2026-10-05 14:59:12 +08:00
parent 24d6803ecc
commit 2eea0118db
7 changed files with 254 additions and 30 deletions
+10
View File
@@ -1,10 +1,20 @@
export default {
aiTool: {
running: 'Running…',
streamMore: '… {n} earlier hidden',
approve: 'Approve',
reject: 'Reject',
approveAll: 'Approve All ({n})',
rejectAll: 'Reject All',
// risk level badge (approval card color bar + badge; medium registry-only, no fallback)
riskHigh: 'HIGH RISK',
riskMedium: 'MEDIUM RISK',
// args folding (multi-arg default shows first, "N more" expands)
argsMore: '{n} more',
argsCollapse: 'Collapse args',
// batch approve high-risk interception (count badge + confirm text)
batchHighRiskHint: '{n} high-risk',
batchHighRiskConfirm: 'Batch approval includes {n} high-risk operations (e.g. delete/command execution/network requests). Approve all?',
rejectedHint: 'User rejected this action',
// tool execution slow hint (frontend fallback, no backend cancel IPC)
executionSlow: 'Tool "{name}" is taking longer than expected, please wait…',