Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
refactor(plugins): 清理统计界面残留文案和冗余注释
nana46f937a39117
diff --git a/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx b/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsxindex 13610f6984..3a86d4e7f9 100644--- a/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx+++ b/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx@@ -748,8 +748,6 @@ export function GhostPluginPage({origin: pluginPresentationOrigin(marketItem),marketItem,author: presentation?.author ?? ghost.manifest.author ?? null,- // 同版本展示刷新由 main 标成 installed;legacy-unresolved 仍保留- // update-available,以便用户用市场包替换未验证的本地字节。marketUpdate: ghost.retirement ? null : pluginUpdateForInstalledVersion(marketItem),};}),@@ -2391,7 +2389,6 @@ export function GhostPluginCard({/** 新版本权限变多、后台更新已暂停等用户确认(Main 按真实包判定)。 */updateNeedsConsent?: boolean;updateBusy?: boolean;- /** 本卡正在更新:更新胶囊换成 Spinner。 */updatePending?: boolean;onUpdate?: () => void;effectiveEnabled?: boolean;@@ -2402,8 +2399,7 @@ export function GhostPluginCard({const { t } = useTranslation();const metadataId = useId();const enabled = effectiveEnabled ?? item.enabled;- // 未读(badge 槽):单条卡片走**呼吸**点(AttentionDot 形态规范——聚合入口- // 静态、单条呼吸)。有摘要时顶替静态描述:用户扫一眼就知道新内容是什么。+ // 单卡未读点使用呼吸动效,未读摘要替换静态描述。const unread = useGhostUnread(item.id);const unreadSummary = useGhostUnreadSummary(item.id);const primary = ghostPrimaryAction(item);@@ -2502,9 +2498,6 @@ export function GhostPluginCard({) : null}{!enabled && !item.retirement ? ` · ${t('settings.ghosts.disabledTag')}` : ''}</span>- {/* 未读摘要顶替静态描述:静态描述用户早读过了,"新内容是什么"才是这一刻- 的信息。摘要文字提到 primary 档以区别于常态描述(不另加色,颜色语义- 留给那颗点)。 */}<spanclassName={cn('mt-1.5 line-clamp-2 text-13 leading-5',@@ -2514,7 +2507,7 @@ export function GhostPluginCard({{item.retirement ? t('settings.ghosts.retirement.cardNotice') : unreadSummary || item.description || item.id}</span></span>- {/* 右列只在真实控件上拦截冒泡;空白与「由 Agent 调用」提示仍走整卡进详情。 */}+ {/* 仅真实控件拦截冒泡,右列空白仍可进入详情。 */}<span className="flex shrink-0 flex-col items-end justify-between gap-2 self-stretch"><span className="flex items-center gap-1.5">{updateVersion && onUpdate ? (diff --git a/apps/desktop/src/renderer/features/plugin/plugin-motion.css b/apps/desktop/src/renderer/features/plugin/plugin-motion.cssindex 506ac9c756..ac06176322 100644--- a/apps/desktop/src/renderer/features/plugin/plugin-motion.css+++ b/apps/desktop/src/renderer/features/plugin/plugin-motion.css@@ -9,12 +9,6 @@filter: invert(1);}-/**- * Shared Plugin / Skill catalog chrome. Catalog pages have no enter-rise- * animation; selection and overflow still ease.- * [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md- */-/* Keep disclosure content mounted so collapse can ease out instead of jumping. */.plugin-installed-overflow {display: grid;diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 21783a741d..3762a00b01 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -6068,7 +6068,6 @@"manageAction": "Manage","manageAria": "Manage {{name}}","agentInvoked": "Invoked by Agent",- "upToDate": "Up to date","oauthAuthorizationExpired": "Authorization expired — reconnect required","installAria": "Install {{name}}"},@@ -6720,10 +6719,7 @@"never": "No calls yet","clearTitle": "Clear this Plugin’s usage records?","clearDescription": "Remove call records and Session links for this account on this computer. New calls start a fresh history. Shared totals already received by the server are not withdrawn.",- "downloads": "Downloads","downloadExplanation": "Cumulative download URL requests. Each successfully issued package URL counts once, including updates, reinstalls and retries that request a new URL. This is not a count of completed installations.",- "refresh": "Refresh records",- "more": "Record options","clearAction": "Clear","downloadsValue": "{{value}} downloads","usesValue": "{{value}} uses",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex 4bc5a770f8..7b32169e41 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -6043,7 +6043,6 @@"manageAction": "管理","manageAria": "{{name}} を管理","agentInvoked": "Agent が自動で呼び出し",- "upToDate": "最新です","oauthAuthorizationExpired": "認証期限切れ・再接続が必要","installAria": "{{name}} をインストール"},@@ -6695,10 +6694,7 @@"never": "呼び出しはまだありません","clearTitle": "このプラグインの使用記録を消去しますか?","clearDescription": "この端末の現在のアカウントの呼び出し記録とセッションへの関連を消去します。以降の呼び出しから記録を再開します。サーバーが受信済みの共有累計は取り消されません。",- "downloads": "ダウンロード","downloadExplanation": "ダウンロード URL の累計リクエスト数です。パッケージ URL の発行成功ごとに 1 回と数え、更新、再インストール、新しい URL を取得する再試行も含みます。インストール成功数ではありません。",- "refresh": "記録を更新",- "more": "記録のオプション","clearAction": "消去","downloadsValue": "{{value}} ダウンロード","usesValue": "{{value}} 利用",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex 3e128397de..457f9d9217 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -6043,7 +6043,6 @@"manageAction": "관리","manageAria": "{{name}} 관리","agentInvoked": "Agent가 자동 호출",- "upToDate": "최신 상태","oauthAuthorizationExpired": "인증 만료 · 다시 연결 필요","installAria": "{{name}} 설치"},@@ -6695,10 +6694,7 @@"never": "아직 호출 없음","clearTitle": "이 플러그인의 사용 기록을 지울까요?","clearDescription": "이 컴퓨터의 현재 계정에서 호출 기록과 세션 연결을 지웁니다. 이후 호출부터 새로 기록합니다. 서버가 이미 받은 공유 합계는 취소되지 않습니다.",- "downloads": "다운로드","downloadExplanation": "누적 다운로드 URL 요청 수입니다. 패키지 URL 발급 성공마다 1회로 집계하며 업데이트, 재설치, 새 URL을 요청하는 재시도도 포함합니다. 설치 완료 횟수가 아닙니다.",- "refresh": "기록 새로고침",- "more": "기록 옵션","clearAction": "지우기","downloadsValue": "{{value}} 다운로드","usesValue": "{{value}} 사용",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex f7c1bf770f..91386d885f 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -6043,7 +6043,6 @@"manageAction": "管理","manageAria": "管理 {{name}}","agentInvoked": "Agent 自动调用",- "upToDate": "已是最新","oauthAuthorizationExpired": "授权已失效,需重新连接","installAria": "安装 {{name}}"},@@ -6695,10 +6694,7 @@"never": "尚未调用","clearTitle": "清除该插件的使用记录?","clearDescription": "清除本机当前账户的调用记录及任务关联,后续调用重新开始记录。已共享的累计统计不会撤回。",- "downloads": "下载","downloadExplanation": "累计下载请求次数:成功获取安装包下载地址后计一次,包括更新、重装及重新获取地址的重试;不代表成功安装次数。",- "refresh": "刷新记录",- "more": "记录选项","clearAction": "清除","downloadsValue": "{{value}} 下载","usesValue": "{{value}} 使用",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex d1ee190d92..ad31df0dd4 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -6043,7 +6043,6 @@"manageAction": "管理","manageAria": "管理 {{name}}","agentInvoked": "Agent 自動呼叫",- "upToDate": "已是最新","oauthAuthorizationExpired": "授權已失效,需重新連線","installAria": "安裝 {{name}}"},@@ -6695,10 +6694,7 @@"never": "尚未呼叫","clearTitle": "清除此插件的使用記錄?","clearDescription": "清除本機目前帳戶的呼叫記錄及任務關聯,後續呼叫重新開始記錄。已共享的累計統計不會撤回。",- "downloads": "下載","downloadExplanation": "累計下載請求次數:成功取得安裝包下載位址後計一次,包括更新、重新安裝及重新取得位址的重試;不代表成功安裝次數。",- "refresh": "重新整理記錄",- "more": "記錄選項","clearAction": "清除","downloadsValue": "{{value}} 下載","usesValue": "{{value}} 使用",