From 35973e33fd1e359cc5e8c11044bef6413b90032e Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Thu, 27 Aug 2026 11:33:26 -0700 Subject: [PATCH] chore: drop unrelated formatting carryover --- ...ubprocess-foreground-degraded-scan.test.ts | 21 ++--- .../rich-markdown-tab-key-handler.test.ts | 1 + .../skills/SkillBundleInstallFlow.tsx | 19 +---- src/renderer/src/i18n/locales/ko.json | 77 ++--------------- src/renderer/src/i18n/locales/zh.json | 85 ++----------------- 5 files changed, 24 insertions(+), 179 deletions(-) diff --git a/src/main/daemon/pty-subprocess-foreground-degraded-scan.test.ts b/src/main/daemon/pty-subprocess-foreground-degraded-scan.test.ts index 8d37578bcf3..2144ca09831 100644 --- a/src/main/daemon/pty-subprocess-foreground-degraded-scan.test.ts +++ b/src/main/daemon/pty-subprocess-foreground-degraded-scan.test.ts @@ -8,19 +8,14 @@ import { mkdtempSync, rmSync } from 'node:fs' import { tmpdir } from 'node:os' import { join } from 'node:path' -const { - spawnMock, - isPwshAvailableMock, - resolveAgentForegroundProcessMock, - readConptyMock, - jobReadableMock -} = vi.hoisted(() => ({ - spawnMock: vi.fn(), - isPwshAvailableMock: vi.fn(), - resolveAgentForegroundProcessMock: vi.fn(), - readConptyMock: vi.fn(), - jobReadableMock: vi.fn() -})) +const { spawnMock, isPwshAvailableMock, resolveAgentForegroundProcessMock, readConptyMock, jobReadableMock } = + vi.hoisted(() => ({ + spawnMock: vi.fn(), + isPwshAvailableMock: vi.fn(), + resolveAgentForegroundProcessMock: vi.fn(), + readConptyMock: vi.fn(), + jobReadableMock: vi.fn() + })) vi.mock('node-pty', () => ({ spawn: spawnMock })) vi.mock('../pwsh', () => ({ isPwshAvailable: isPwshAvailableMock })) diff --git a/src/renderer/src/components/editor/rich-markdown-tab-key-handler.test.ts b/src/renderer/src/components/editor/rich-markdown-tab-key-handler.test.ts index 1d597023b3e..7904f2d673a 100644 --- a/src/renderer/src/components/editor/rich-markdown-tab-key-handler.test.ts +++ b/src/renderer/src/components/editor/rich-markdown-tab-key-handler.test.ts @@ -522,4 +522,5 @@ describe('rich markdown Tab key handler', () => { editor.destroy() } }) + }) diff --git a/src/renderer/src/components/skills/SkillBundleInstallFlow.tsx b/src/renderer/src/components/skills/SkillBundleInstallFlow.tsx index 3663ac4e81a..2040b63682b 100644 --- a/src/renderer/src/components/skills/SkillBundleInstallFlow.tsx +++ b/src/renderer/src/components/skills/SkillBundleInstallFlow.tsx @@ -193,10 +193,7 @@ export function SkillBundleInstallFlow(props: { } else if (operation.status !== 'ok') { setError( operation.status === 'reconnect-required' - ? translate( - 'auto.components.skills.install.reconnectBeforeInstalling', - 'Reconnect your Orca account before installing.' - ) + ? translate('auto.components.skills.install.reconnectBeforeInstalling', 'Reconnect your Orca account before installing.') : operation.message ) } else { @@ -211,12 +208,7 @@ export function SkillBundleInstallFlow(props: { } } catch (cause) { console.warn('[skills] bundle install failed:', cause) - setError( - translate( - 'auto.components.skills.install.bundleVerificationFailed', - 'Installation failed before Orca could verify the requested bundle.' - ) - ) + setError(translate('auto.components.skills.install.bundleVerificationFailed', 'Installation failed before Orca could verify the requested bundle.')) } finally { installProgress.finish() setBusy(false) @@ -233,12 +225,7 @@ export function SkillBundleInstallFlow(props: { ...(environmentId === 'local' || environmentId.startsWith('ssh:') ? {} : { environmentId }) }) if (!cancelled.cancelled) { - setError( - translate( - 'auto.components.skills.install.destinationAlreadyFinished', - 'The destination had already finished this installation.' - ) - ) + setError(translate('auto.components.skills.install.destinationAlreadyFinished', 'The destination had already finished this installation.')) } } diff --git a/src/renderer/src/i18n/locales/ko.json b/src/renderer/src/i18n/locales/ko.json index 5b062ebeeee..e5aefb9291a 100644 --- a/src/renderer/src/i18n/locales/ko.json +++ b/src/renderer/src/i18n/locales/ko.json @@ -3879,82 +3879,17 @@ }, "skills": { "SkillsPage": { - "cb142070b4": "새로 고침", - "a68dee6a32": "스킬 검색", - "f43ad6edf3": "스킬", - "ea72d6185b": "스킬을 검색하지 못했습니다", - "dc4c3328ee": "파일 표시", - "9963dff6d3": "설명을 찾을 수 없습니다.", - "995fde8337": "스킬 파일을 표시하지 못했습니다", - "4acd6d68ec": "스킬을 찾을 수 없습니다", - "6a62a0168c": "일치하는 항목 없음", - "08a321a984": "현재 검색 및 필터와 일치하는 스킬이 없습니다.", - "cd7893fbc1": "스킬 검색 중", - "35b9a724a0": "사용 가능", - "c13b82793c": "설치 관리", - "aee7b99cc6": "링크에서 설치", - "filterProvider": "에이전트별 필터", - "filterSource": "소스별 필터", - "allSources": "전체", - "clearFilters": "필터 지우기", - "closeSkills": "스킬 닫기", - "closeTooltip": "닫기 · Esc", - "moreActions": "추가 작업", - "sharedLinks": "공유 링크", - "emptyCopy": "검색한 스킬 폴더가 비어 있습니다. 공유 번들을 설치하거나 스킬을 추가한 후 새로 고치세요.", - "retry": "다시 시도", - "remoteShareNotice": "이 스킬은 {{host}}에 있습니다. 공유하려면 해당 머신에서 스킬을 여세요.", - "viewSwitch": "표시", - "searchLinks": "링크 검색", - "deleteSkills": "스킬 삭제…" + "cb142070b4": "새로 고침", "a68dee6a32": "스킬 검색", "f43ad6edf3": "스킬", "ea72d6185b": "스킬을 검색하지 못했습니다", "dc4c3328ee": "파일 표시", "9963dff6d3": "설명을 찾을 수 없습니다.", "995fde8337": "스킬 파일을 표시하지 못했습니다", "4acd6d68ec": "스킬을 찾을 수 없습니다", "6a62a0168c": "일치하는 항목 없음", "08a321a984": "현재 검색 및 필터와 일치하는 스킬이 없습니다.", "cd7893fbc1": "스킬 검색 중", "35b9a724a0": "사용 가능", "c13b82793c": "설치 관리", "aee7b99cc6": "링크에서 설치", "filterProvider": "에이전트별 필터", "filterSource": "소스별 필터", "allSources": "전체", "clearFilters": "필터 지우기", "closeSkills": "스킬 닫기", "closeTooltip": "닫기 · Esc", "moreActions": "추가 작업", "sharedLinks": "공유 링크", "emptyCopy": "검색한 스킬 폴더가 비어 있습니다. 공유 번들을 설치하거나 스킬을 추가한 후 새로 고치세요.", "retry": "다시 시도", "remoteShareNotice": "이 스킬은 {{host}}에 있습니다. 공유하려면 해당 머신에서 스킬을 여세요.", "viewSwitch": "표시", "searchLinks": "링크 검색", "deleteSkills": "스킬 삭제…" }, "SkillShareSelectionControls": { "01c5a15e02": "스킬 공유" }, - "SkillRow": { - "updatedUnknown": "날짜 없음", - "pathCopied": "경로 복사됨", - "copyPath": "경로 복사", - "detailPath": "경로", - "skillActions": "{{value0}} 작업", - "viewDetails": "세부 정보 보기", - "deleteSkill": "삭제…" - }, + "SkillRow": { "updatedUnknown": "날짜 없음", "pathCopied": "경로 복사됨", "copyPath": "경로 복사", "detailPath": "경로", "skillActions": "{{value0}} 작업", "viewDetails": "세부 정보 보기", "deleteSkill": "삭제…" }, "SkillsList": { "listLabel": "스킬" }, - "sourceStatus": { - "missing": "폴더를 찾을 수 없음", - "remoteRepo": "원격 리포지토리 — 검색 안 됨", - "unavailable": "검색 안 됨" - }, + "sourceStatus": { "missing": "폴더를 찾을 수 없음", "remoteRepo": "원격 리포지토리 — 검색 안 됨", "unavailable": "검색 안 됨" }, "sources": { "heading": "스킬 폴더" }, - "sourceKind": { - "home": "홈", - "workspace": "워크스페이스", - "bundled": "번들", - "plugin": "플러그인" - }, - "count": { - "skillOne": "스킬 {{count}}개", - "skillOther": "스킬 {{count}}개", - "sourceOne": "소스 {{count}}개", - "sourceOther": "소스 {{count}}개", - "fileOne": "파일 {{count}}개", - "fileOther": "파일 {{count}}개", - "resultOne": "결과 {{count}}개", - "resultOther": "결과 {{count}}개", - "selected": "{{count}}개 선택됨", - "shareOne": "스킬 {{count}}개 공유", - "shareOther": "스킬 {{count}}개 공유", - "linkOne": "링크 {{count}}개", - "linkOther": "링크 {{count}}개" - }, + "sourceKind": { "home": "홈", "workspace": "워크스페이스", "bundled": "번들", "plugin": "플러그인" }, + "count": { "skillOne": "스킬 {{count}}개", "skillOther": "스킬 {{count}}개", "sourceOne": "소스 {{count}}개", "sourceOther": "소스 {{count}}개", "fileOne": "파일 {{count}}개", "fileOther": "파일 {{count}}개", "resultOne": "결과 {{count}}개", "resultOther": "결과 {{count}}개", "selected": "{{count}}개 선택됨", "shareOne": "스킬 {{count}}개 공유", "shareOther": "스킬 {{count}}개 공유", "linkOne": "링크 {{count}}개", "linkOther": "링크 {{count}}개" }, "filter": { "allAgents": "모든 에이전트", "sharedAgent": "공유됨 (.agents)" }, - "SkillsSelectionHeader": { - "exit": "선택 나가기", - "exitTooltip": "선택 나가기 · Esc", - "title": "공유할 스킬 선택", - "selectAll": "가능한 {{count}}개 모두 선택", - "clear": "지우기", - "deleteTitle": "삭제할 스킬 선택" - }, + "SkillsSelectionHeader": { "exit": "선택 나가기", "exitTooltip": "선택 나가기 · Esc", "title": "공유할 스킬 선택", "selectAll": "가능한 {{count}}개 모두 선택", "clear": "지우기", "deleteTitle": "삭제할 스킬 선택" }, "SkillDetailDialog": { "agents": "에이전트", "updated": "업데이트됨", "copy": "복사" }, "SkillFreshnessNudge": { "titleOne": "설치된 Orca 스킬이 오래되었습니다", diff --git a/src/renderer/src/i18n/locales/zh.json b/src/renderer/src/i18n/locales/zh.json index 5a680d43a8b..6b5cae8fc24 100644 --- a/src/renderer/src/i18n/locales/zh.json +++ b/src/renderer/src/i18n/locales/zh.json @@ -3889,90 +3889,17 @@ }, "skills": { "SkillsPage": { - "cb142070b4": "刷新", - "a68dee6a32": "搜索技能", - "f43ad6edf3": "技能", - "ea72d6185b": "无法扫描技能", - "dc4c3328ee": "显示文件", - "9963dff6d3": "未找到说明。", - "995fde8337": "无法显示技能文件", - "4acd6d68ec": "未找到技能", - "6a62a0168c": "无匹配项", - "08a321a984": "没有技能匹配当前搜索和筛选条件。", - "cd7893fbc1": "正在扫描技能", - "35b9a724a0": "可用", - "c13b82793c": "管理安装", - "aee7b99cc6": "从链接安装", - "filterProvider": "按 Agent 筛选", - "filterSource": "按来源筛选", - "allSources": "全部", - "clearFilters": "清除筛选", - "closeSkills": "关闭技能", - "closeTooltip": "关闭 · Esc", - "moreActions": "更多操作", - "sharedLinks": "共享链接", - "emptyCopy": "扫描的技能文件夹为空。请安装共享包,或添加技能后刷新。", - "retry": "重试", - "remoteShareNotice": "这些技能位于 {{host}}。请在该机器上打开“技能”以进行共享。", - "viewSwitch": "显示", - "searchLinks": "搜索链接", - "deleteSkills": "删除技能…" + "cb142070b4": "刷新", "a68dee6a32": "搜索技能", "f43ad6edf3": "技能", "ea72d6185b": "无法扫描技能", "dc4c3328ee": "显示文件", "9963dff6d3": "未找到说明。", "995fde8337": "无法显示技能文件", "4acd6d68ec": "未找到技能", "6a62a0168c": "无匹配项", "08a321a984": "没有技能匹配当前搜索和筛选条件。", "cd7893fbc1": "正在扫描技能", "35b9a724a0": "可用", "c13b82793c": "管理安装", "aee7b99cc6": "从链接安装", "filterProvider": "按 Agent 筛选", "filterSource": "按来源筛选", "allSources": "全部", "clearFilters": "清除筛选", "closeSkills": "关闭技能", "closeTooltip": "关闭 · Esc", "moreActions": "更多操作", "sharedLinks": "共享链接", "emptyCopy": "扫描的技能文件夹为空。请安装共享包,或添加技能后刷新。", "retry": "重试", "remoteShareNotice": "这些技能位于 {{host}}。请在该机器上打开“技能”以进行共享。", "viewSwitch": "显示", "searchLinks": "搜索链接", "deleteSkills": "删除技能…" }, "SkillShareSelectionControls": { "01c5a15e02": "共享技能" }, - "SkillRow": { - "updatedUnknown": "无日期", - "pathCopied": "路径已复制", - "copyPath": "复制路径", - "detailPath": "路径", - "skillActions": "{{value0}} 的操作", - "viewDetails": "查看详情", - "deleteSkill": "删除…" - }, + "SkillRow": { "updatedUnknown": "无日期", "pathCopied": "路径已复制", "copyPath": "复制路径", "detailPath": "路径", "skillActions": "{{value0}} 的操作", "viewDetails": "查看详情", "deleteSkill": "删除…" }, "SkillsList": { "listLabel": "技能" }, - "sourceStatus": { - "missing": "未找到文件夹", - "remoteRepo": "远程仓库 — 未扫描", - "unavailable": "未扫描" - }, + "sourceStatus": { "missing": "未找到文件夹", "remoteRepo": "远程仓库 — 未扫描", "unavailable": "未扫描" }, "sources": { "heading": "技能文件夹" }, - "sourceKind": { - "home": "主目录", - "workspace": "工作区", - "bundled": "内置", - "plugin": "插件" - }, - "count": { - "skillOne": "{{count}} 个技能", - "skillOther": "{{count}} 个技能", - "sourceOne": "{{count}} 个来源", - "sourceOther": "{{count}} 个来源", - "fileOne": "{{count}} 个文件", - "fileOther": "{{count}} 个文件", - "resultOne": "{{count}} 个结果", - "resultOther": "{{count}} 个结果", - "selected": "已选择 {{count}} 个", - "shareOne": "共享 {{count}} 个技能", - "shareOther": "共享 {{count}} 个技能", - "linkOne": "{{count}} 个链接", - "linkOther": "{{count}} 个链接", - "deleteOne": "删除 {{count}} 个技能", - "deleteOther": "删除 {{count}} 个技能", - "deletedOne": "已删除 {{count}} 个技能", - "deletedOther": "已删除 {{count}} 个技能", - "deleteFolderOne": "{{count}} 个文件夹", - "deleteFolderOther": "{{count}} 个文件夹", - "deleteLinkOne": "{{count}} 个链接", - "deleteLinkOther": "{{count}} 个链接" - }, + "sourceKind": { "home": "主目录", "workspace": "工作区", "bundled": "内置", "plugin": "插件" }, + "count": { "skillOne": "{{count}} 个技能", "skillOther": "{{count}} 个技能", "sourceOne": "{{count}} 个来源", "sourceOther": "{{count}} 个来源", "fileOne": "{{count}} 个文件", "fileOther": "{{count}} 个文件", "resultOne": "{{count}} 个结果", "resultOther": "{{count}} 个结果", "selected": "已选择 {{count}} 个", "shareOne": "共享 {{count}} 个技能", "shareOther": "共享 {{count}} 个技能", "linkOne": "{{count}} 个链接", "linkOther": "{{count}} 个链接", "deleteOne": "删除 {{count}} 个技能", "deleteOther": "删除 {{count}} 个技能", "deletedOne": "已删除 {{count}} 个技能", "deletedOther": "已删除 {{count}} 个技能", "deleteFolderOne": "{{count}} 个文件夹", "deleteFolderOther": "{{count}} 个文件夹", "deleteLinkOne": "{{count}} 个链接", "deleteLinkOther": "{{count}} 个链接" }, "filter": { "allAgents": "所有 Agent", "sharedAgent": "共享 (.agents)" }, - "SkillsSelectionHeader": { - "exit": "退出选择", - "exitTooltip": "退出选择 · Esc", - "title": "选择要共享的技能", - "selectAll": "选择全部 {{count}} 个符合条件的项目", - "clear": "清除", - "deleteTitle": "选择要删除的技能" - }, + "SkillsSelectionHeader": { "exit": "退出选择", "exitTooltip": "退出选择 · Esc", "title": "选择要共享的技能", "selectAll": "选择全部 {{count}} 个符合条件的项目", "clear": "清除", "deleteTitle": "选择要删除的技能" }, "SkillDetailDialog": { "agents": "Agent", "updated": "已更新", "copy": "复制" }, "SkillFreshnessNudge": { "titleOne": "已安装的 Orca 技能已过期",