fix(mcp): add OAuth skip endpoint and streamline in-chat interaction cards

Add a dedicated cancel route so users can skip mid-conversation OAuth without
token verification, and restyle OAuth/approval cards to match AgentStreamDisplay
with compact inline actions.
This commit is contained in:
wizardchen
2026-06-29 23:20:00 +08:00
committed by lyingbug
parent 505195865a
commit b5a1c88f75
10 changed files with 499 additions and 508 deletions
+16
View File
@@ -5052,11 +5052,17 @@ export default {
agentStream: {
toolApproval: {
banner: '이 MCP 도구는 수동 승인이 필요합니다. 실행 전 매개변수를 확인하세요.',
waiting: '승인 대기 · {target}',
targetWithTool: '{service} › {tool}',
titleWithTarget: '검토 · {service} › {tool}',
resolvedApproved: '승인됨 · {target}',
resolvedRejected: '거부됨 · {target}',
service: '서비스',
tool: '도구',
argsLabel: '인수',
argsModified: '수정됨',
countdown: '약 {seconds}초 남음',
countdownShort: '{seconds}초',
approve: '승인 후 실행',
reject: '거부',
approvedTag: '승인됨',
@@ -5068,15 +5074,25 @@ export default {
},
mcpOAuth: {
banner: '이 MCP 서비스는 OAuth 인증 후에 사용할 수 있습니다',
waiting: '인증 대기 · {target}',
targetWithTool: '{service} › {tool}',
titleWithService: 'OAuth · {service}',
titleWithTool: 'OAuth · {service} › {tool}',
resolvedAuthorized: '인증됨 · {target}',
resolvedTimedOut: '시간 초과 · {target}',
resolvedCanceled: '건너뜀 · {target}',
desc: '인증을 누르면 새 창에서 로그인합니다. 인증이 완료되면 이 도구 호출이 자동으로 계속됩니다.',
authorize: '인증하기',
skip: '건너뛰기',
countdown: '약 {seconds}초 남음',
countdownShort: '{seconds}초',
authorizedTag: '인증됨',
timedOutTag: '인증 시간 초과',
canceledTag: '취소됨',
authorizedToast: '인증 성공, 계속 진행 중',
startFailed: '인증 시작 실패',
resumeFailed: '실행 재개 실패, 다시 시도하세요',
skipFailed: '건너뛰기 실패, 다시 시도하세요',
},
tools: {
searchKnowledge: '지식베이스 검색',