diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextActions/ActionCatalog.swift b/Packages/macOS/CmuxNext/Sources/CmuxNextActions/ActionCatalog.swift index 24efc139f28b..73b93383f0a8 100644 --- a/Packages/macOS/CmuxNext/Sources/CmuxNextActions/ActionCatalog.swift +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextActions/ActionCatalog.swift @@ -124,6 +124,7 @@ public nonisolated enum ActionCatalog { SidebarActionCatalog.self, NotificationActionCatalog.self, AgentActionCatalog.self, + AgentTranscriptActionCatalog.self, AgentChatIdentifierActionCatalog.self, AgentHarnessActionCatalog.self, CloudActionCatalog.self, diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextActions/ActionCatalog.xcstrings b/Packages/macOS/CmuxNext/Sources/CmuxNextActions/ActionCatalog.xcstrings index 7fd1d4bb9c0e..d6c5343ab578 100644 --- a/Packages/macOS/CmuxNext/Sources/CmuxNextActions/ActionCatalog.xcstrings +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextActions/ActionCatalog.xcstrings @@ -1,1967 +1,1574 @@ { "sourceLanguage": "en", "strings": { - "action.links.openInCmuxBrowser": { + "action.workspace.closeAll": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Links: Open in cmux Browser" + "value": "Close All Workspaces" + } + }, + "ja": { + "stringUnit": { + "state": "translated", + "value": "すべてのワークスペースを閉じる" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "الروابط: فتح في متصفح cmux" + "value": "إغلاق كل مساحات العمل" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Linkovi: Otvori u cmux pregledniku" + "value": "Zatvori sve radne prostore" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Links: Åbn i cmux-browser" + "value": "Luk alle arbejdsområder" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Links: In cmux-Browser öffnen" + "value": "Alle Arbeitsbereiche schließen" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Enlaces: Abrir en el navegador de cmux" + "value": "Cerrar todos los espacios de trabajo" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Liens : Ouvrir dans le navigateur cmux" + "value": "Fermer tous les espaces de travail" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Link: Apri nel browser di cmux" - } - }, - "ja": { - "stringUnit": { - "state": "needs_review", - "value": "リンク: cmux ブラウザで開く" + "value": "Chiudi tutte le aree di lavoro" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "តំណ៖ បើកក្នុងកម្មវិធីរុករក cmux" + "value": "បិទកន្លែងធ្វើការទាំងអស់" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "링크: cmux 브라우저에서 열기" + "value": "모든 작업 공간 닫기" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Lenker: Åpne i cmux-nettleser" + "value": "Lukk alle arbeidsområder" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Linki: Otwieraj w przeglądarce cmux" + "value": "Zamknij wszystkie przestrzenie robocze" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Links: Abrir no navegador do cmux" + "value": "Fechar Todas as Áreas de Trabalho" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Ссылки: открывать в браузере cmux" + "value": "Закрыть все рабочие пространства" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ลิงก์: เปิดในเบราว์เซอร์ cmux" + "value": "ปิดเวิร์กสเปซทั้งหมด" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Bağlantılar: cmux Tarayıcısında Aç" + "value": "Tüm Çalışma Alanlarını Kapat" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Посилання: відкривати в браузері cmux" + "value": "Закрити всі робочі області" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Liên kết: Mở trong trình duyệt cmux" + "value": "Đóng tất cả không gian làm việc" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "链接:在 cmux 浏览器中打开" + "value": "关闭所有工作区" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "連結:在 cmux 瀏覽器中開啟" + "value": "關閉所有工作區" } } } }, - "action.links.openInDefaultBrowser": { + "action.workspace.closeAllInAllWindows": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Links: Open in Default Browser" + "value": "Close All Workspaces in All Windows" + } + }, + "ja": { + "stringUnit": { + "state": "translated", + "value": "すべてのウィンドウのワークスペースをすべて閉じる" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "الروابط: فتح في المتصفح الافتراضي" + "value": "إغلاق كل مساحات العمل في كل النوافذ" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Linkovi: Otvori u zadanom pregledniku" + "value": "Zatvori sve radne prostore u svim prozorima" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Links: Åbn i standardbrowser" + "value": "Luk alle arbejdsområder i alle vinduer" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Links: Im Standardbrowser öffnen" + "value": "Alle Arbeitsbereiche in allen Fenstern schließen" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Enlaces: Abrir en el navegador predeterminado" + "value": "Cerrar todos los espacios de trabajo en todas las ventanas" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Liens : Ouvrir dans le navigateur par défaut" + "value": "Fermer tous les espaces de travail de toutes les fenêtres" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Link: Apri nel browser predefinito" - } - }, - "ja": { - "stringUnit": { - "state": "needs_review", - "value": "リンク: デフォルトのブラウザで開く" + "value": "Chiudi tutte le aree di lavoro in tutte le finestre" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "តំណ៖ បើកក្នុងកម្មវិធីរុករកលំនាំដើម" + "value": "បិទកន្លែងធ្វើការទាំងអស់ក្នុងបង្អួចទាំងអស់" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "링크: 기본 브라우저에서 열기" + "value": "모든 윈도우의 모든 작업 공간 닫기" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Lenker: Åpne i standardnettleser" + "value": "Lukk alle arbeidsområder i alle vinduer" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Linki: Otwieraj w domyślnej przeglądarce" + "value": "Zamknij wszystkie przestrzenie robocze we wszystkich oknach" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Links: Abrir no navegador padrão" + "value": "Fechar Todas as Áreas de Trabalho em Todas as Janelas" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Ссылки: открывать в браузере по умолчанию" + "value": "Закрыть все рабочие пространства во всех окнах" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ลิงก์: เปิดในเบราว์เซอร์เริ่มต้น" + "value": "ปิดเวิร์กสเปซทั้งหมดในทุกหน้าต่าง" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Bağlantılar: Varsayılan Tarayıcıda Aç" + "value": "Tüm Pencerelerdeki Tüm Çalışma Alanlarını Kapat" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Посилання: відкривати в типовому браузері" + "value": "Закрити всі робочі області в усіх вікнах" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Liên kết: Mở trong trình duyệt mặc định" + "value": "Đóng tất cả không gian làm việc trong mọi cửa sổ" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "链接:在默认浏览器中打开" + "value": "关闭所有窗口中的所有工作区" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "連結:在預設瀏覽器中開啟" + "value": "關閉所有視窗中的所有工作區" } } } }, - "action.browserFit": { + "action.newTab.horizontal": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Fit as Desktop…" - } - }, - "ja": { - "stringUnit": { - "state": "translated", - "value": "デスクトップ表示に合わせる…" + "value": "New Horizontal Tab" } }, "ar": { "stringUnit": { - "state": "needs_review", - "value": "ملاءمة كسطح مكتب…" + "state": "translated", + "value": "علامة تبويب أفقية جديدة" } }, "bs": { "stringUnit": { - "state": "needs_review", - "value": "Prilagodi kao desktop…" + "state": "translated", + "value": "Nova horizontalna kartica" } }, "da": { "stringUnit": { - "state": "needs_review", - "value": "Tilpas som skrivebord…" + "state": "translated", + "value": "Ny vandret fane" } }, "de": { "stringUnit": { - "state": "needs_review", - "value": "Als Desktop einpassen …" + "state": "translated", + "value": "Neuer horizontaler Tab" } }, "es": { "stringUnit": { - "state": "needs_review", - "value": "Ajustar como escritorio…" + "state": "translated", + "value": "Nueva pestaña horizontal" } }, "fr": { "stringUnit": { - "state": "needs_review", - "value": "Ajuster en bureau…" + "state": "translated", + "value": "Nouvel onglet horizontal" } }, "it": { "stringUnit": { - "state": "needs_review", - "value": "Adatta come desktop…" + "state": "translated", + "value": "Nuova scheda orizzontale" + } + }, + "ja": { + "stringUnit": { + "state": "translated", + "value": "新規水平タブ" } }, "km": { "stringUnit": { - "state": "needs_review", - "value": "សមជាផ្ទៃតុ…" + "state": "translated", + "value": "ផ្ទាំងផ្ដេកថ្មី" } }, "ko": { "stringUnit": { - "state": "needs_review", - "value": "데스크톱에 맞추기…" + "state": "translated", + "value": "새 가로 탭" } }, "nb": { "stringUnit": { - "state": "needs_review", - "value": "Tilpass som skrivebord…" + "state": "translated", + "value": "Ny vannrett fane" } }, "pl": { "stringUnit": { - "state": "needs_review", - "value": "Dopasuj jako pulpit…" + "state": "translated", + "value": "Nowa karta pozioma" } }, "pt-BR": { "stringUnit": { - "state": "needs_review", - "value": "Ajustar como desktop…" + "state": "translated", + "value": "Nova aba horizontal" } }, "ru": { "stringUnit": { - "state": "needs_review", - "value": "Вписать как рабочий стол…" + "state": "translated", + "value": "Новая горизонтальная вкладка" } }, "th": { "stringUnit": { - "state": "needs_review", - "value": "พอดีแบบเดสก์ท็อป…" + "state": "translated", + "value": "แท็บแนวนอนใหม่" } }, "tr": { "stringUnit": { - "state": "needs_review", - "value": "Masaüstü Olarak Sığdır…" + "state": "translated", + "value": "Yeni yatay sekme" } }, "uk": { "stringUnit": { - "state": "needs_review", - "value": "Вмістити як робочий стіл…" + "state": "translated", + "value": "Нова горизонтальна вкладка" } }, "vi": { "stringUnit": { - "state": "needs_review", - "value": "Vừa khít như màn hình máy tính…" + "state": "translated", + "value": "Tab ngang mới" } }, "zh-Hans": { "stringUnit": { - "state": "needs_review", - "value": "适配为桌面…" + "state": "translated", + "value": "新建水平标签页" } }, "zh-Hant": { "stringUnit": { - "state": "needs_review", - "value": "調整為桌面…" + "state": "translated", + "value": "新增水平分頁" } } } }, - "action.browserFitDesktop1280": { + "action.palette.startAgentFromAnyApp": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Fit as Desktop (1280)" + "value": "Start Agent from Any App" } }, "ja": { "stringUnit": { "state": "translated", - "value": "デスクトップ表示に合わせる(1280)" + "value": "どのアプリからでもエージェントを開始" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "ملاءمة كسطح مكتب (1280)" + "value": "بدء وكيل من أي تطبيق" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Prilagodi kao desktop (1280)" + "value": "Pokreni agenta iz bilo koje aplikacije" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Tilpas som skrivebord (1280)" + "value": "Start agent fra enhver app" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Als Desktop einpassen (1280)" + "value": "Agent aus jeder App starten" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Ajustar como escritorio (1280)" + "value": "Iniciar agente desde cualquier app" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Ajuster en bureau (1280)" + "value": "Démarrer un agent depuis n’importe quelle app" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Adatta come desktop (1280)" + "value": "Avvia agente da qualsiasi app" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "សមជាផ្ទៃតុ (1280)" + "value": "ចាប់ផ្តើមភ្នាក់ងារពីកម្មវិធីណាមួយ" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "데스크톱에 맞추기(1280)" + "value": "모든 앱에서 에이전트 시작" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Tilpass som skrivebord (1280)" + "value": "Start agent fra hvilken som helst app" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Dopasuj jako pulpit (1280)" + "value": "Uruchom agenta z dowolnej aplikacji" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Ajustar como desktop (1280)" + "value": "Iniciar agente de qualquer app" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Вписать как рабочий стол (1280)" + "value": "Запуск агента из любого приложения" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "พอดีแบบเดสก์ท็อป (1280)" + "value": "เริ่มเอเจนต์จากแอปใดก็ได้" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Masaüstü Olarak Sığdır (1280)" + "value": "Herhangi Bir Uygulamadan Ajan Başlat" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Вмістити як робочий стіл (1280)" + "value": "Запуск агента з будь-якої програми" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Vừa khít như màn hình máy tính (1280)" + "value": "Bắt đầu tác tử từ mọi ứng dụng" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "适配为桌面(1280)" + "value": "从任意应用启动智能体" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "調整為桌面(1280)" + "value": "從任何 App 啟動代理" } } } }, - "action.browserFitDesktop": { + "action.palette.quickAgentChat": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Fit as 16:9 Desktop" + "value": "Start Agent…" } }, "ja": { "stringUnit": { "state": "translated", - "value": "16:9 のデスクトップ表示に合わせる" + "value": "エージェントを開始…" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "ملاءمة كسطح مكتب 16:9" + "value": "بدء وكيل…" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Prilagodi kao desktop 16:9" + "value": "Pokreni agenta…" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Tilpas som 16:9-skrivebord" + "value": "Start agent…" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Als 16:9-Desktop einpassen" + "value": "Agent starten…" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Ajustar como escritorio 16:9" + "value": "Iniciar agente…" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Ajuster en bureau 16:9" + "value": "Démarrer un agent…" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Adatta come desktop 16:9" + "value": "Avvia agente…" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "សមជាផ្ទៃតុ 16:9" + "value": "ចាប់ផ្តើមភ្នាក់ងារ…" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "16:9 데스크톱에 맞추기" + "value": "에이전트 시작…" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Tilpass som 16:9-skrivebord" + "value": "Start agent…" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Dopasuj jako pulpit 16:9" + "value": "Uruchom agenta…" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Ajustar como desktop 16:9" + "value": "Iniciar agente…" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Вписать как рабочий стол 16:9" + "value": "Запустить агента…" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "พอดีแบบเดสก์ท็อป 16:9" + "value": "เริ่มเอเจนต์…" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "16:9 Masaüstü Olarak Sığdır" + "value": "Ajan Başlat…" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Вмістити як робочий стіл 16:9" + "value": "Запустити агента…" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Vừa khít như màn hình máy tính 16:9" + "value": "Bắt đầu tác tử…" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "适配为 16:9 桌面" + "value": "启动智能体…" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "調整為 16:9 桌面" + "value": "啟動代理…" } } } }, - "action.workspace.closeAll": { + "action.about": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Close All Workspaces" + "value": "About cmux" } }, "ja": { "stringUnit": { "state": "translated", - "value": "すべてのワークスペースを閉じる" + "value": "cmux について" } }, "ar": { "stringUnit": { - "state": "needs_review", - "value": "إغلاق كل مساحات العمل" + "state": "translated", + "value": "حول cmux" } }, "bs": { "stringUnit": { - "state": "needs_review", - "value": "Zatvori sve radne prostore" + "state": "translated", + "value": "O programu cmux" } }, "da": { "stringUnit": { - "state": "needs_review", - "value": "Luk alle arbejdsområder" + "state": "translated", + "value": "Om cmux" } }, "de": { "stringUnit": { - "state": "needs_review", - "value": "Alle Arbeitsbereiche schließen" + "state": "translated", + "value": "Über cmux" } }, "es": { "stringUnit": { - "state": "needs_review", - "value": "Cerrar todos los espacios de trabajo" + "state": "translated", + "value": "Acerca de cmux" } }, "fr": { "stringUnit": { - "state": "needs_review", - "value": "Fermer tous les espaces de travail" + "state": "translated", + "value": "À propos de cmux" } }, "it": { "stringUnit": { - "state": "needs_review", - "value": "Chiudi tutte le aree di lavoro" + "state": "translated", + "value": "Informazioni su cmux" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "បិទកន្លែងធ្វើការទាំងអស់" + "value": "អំពី cmux" } }, "ko": { "stringUnit": { - "state": "needs_review", - "value": "모든 작업 공간 닫기" + "state": "translated", + "value": "cmux에 관하여" } }, "nb": { "stringUnit": { - "state": "needs_review", - "value": "Lukk alle arbeidsområder" + "state": "translated", + "value": "Om cmux" } }, "pl": { "stringUnit": { - "state": "needs_review", - "value": "Zamknij wszystkie przestrzenie robocze" + "state": "translated", + "value": "O cmux" } }, "pt-BR": { "stringUnit": { - "state": "needs_review", - "value": "Fechar Todas as Áreas de Trabalho" + "state": "translated", + "value": "Sobre o cmux" } }, "ru": { "stringUnit": { - "state": "needs_review", - "value": "Закрыть все рабочие пространства" + "state": "translated", + "value": "О программе cmux" } }, "th": { "stringUnit": { - "state": "needs_review", - "value": "ปิดเวิร์กสเปซทั้งหมด" + "state": "translated", + "value": "เกี่ยวกับ cmux" } }, "tr": { "stringUnit": { - "state": "needs_review", - "value": "Tüm Çalışma Alanlarını Kapat" + "state": "translated", + "value": "cmux Hakkında" } }, "uk": { "stringUnit": { - "state": "needs_review", - "value": "Закрити всі робочі області" + "state": "translated", + "value": "Про cmux" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Đóng tất cả không gian làm việc" + "value": "Giới thiệu về cmux" } }, "zh-Hans": { "stringUnit": { - "state": "needs_review", - "value": "关闭所有工作区" + "state": "translated", + "value": "关于 cmux" } }, "zh-Hant": { "stringUnit": { - "state": "needs_review", - "value": "關閉所有工作區" + "state": "translated", + "value": "關於 cmux" } } } }, - "action.workspace.closeAllInAllWindows": { + "action.agentActivity.open": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Close All Workspaces in All Windows" + "value": "Agent Activity" } }, "ja": { "stringUnit": { - "state": "translated", - "value": "すべてのウィンドウのワークスペースをすべて閉じる" + "state": "needs_review", + "value": "エージェントのアクティビティ" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "إغلاق كل مساحات العمل في كل النوافذ" + "value": "نشاط الوكيل" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Zatvori sve radne prostore u svim prozorima" + "value": "Aktivnost agenta" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Luk alle arbejdsområder i alle vinduer" + "value": "Agentaktivitet" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Alle Arbeitsbereiche in allen Fenstern schließen" + "value": "Agentenaktivität" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Cerrar todos los espacios de trabajo en todas las ventanas" + "value": "Actividad de agentes" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Fermer tous les espaces de travail de toutes les fenêtres" + "value": "Activité des agents" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Chiudi tutte le aree di lavoro in tutte le finestre" + "value": "Attività degli agenti" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "បិទកន្លែងធ្វើការទាំងអស់ក្នុងបង្អួចទាំងអស់" + "value": "សកម្មភាពភ្នាក់ងារ" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "모든 윈도우의 모든 작업 공간 닫기" + "value": "에이전트 활동" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Lukk alle arbeidsområder i alle vinduer" + "value": "Agentaktivitet" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Zamknij wszystkie przestrzenie robocze we wszystkich oknach" + "value": "Aktywność agentów" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Fechar Todas as Áreas de Trabalho em Todas as Janelas" + "value": "Atividade de agentes" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Закрыть все рабочие пространства во всех окнах" + "value": "Активность агентов" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ปิดเวิร์กสเปซทั้งหมดในทุกหน้าต่าง" + "value": "กิจกรรมของเอเจนต์" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Tüm Pencerelerdeki Tüm Çalışma Alanlarını Kapat" + "value": "Ajan etkinliği" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Закрити всі робочі області в усіх вікнах" + "value": "Активність агентів" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Đóng tất cả không gian làm việc trong mọi cửa sổ" + "value": "Hoạt động của tác tử" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "关闭所有窗口中的所有工作区" + "value": "代理活动" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "關閉所有視窗中的所有工作區" + "value": "代理活動" } } } }, - "action.newTab.horizontal": { + "action.agentPane.continueIn": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "New Horizontal Tab" + "value": "Continue in…" + } + }, + "ja": { + "stringUnit": { + "state": "translated", + "value": "…で続行" } }, "ar": { "stringUnit": { "state": "translated", - "value": "علامة تبويب أفقية جديدة" + "value": "المتابعة في…" } }, "bs": { "stringUnit": { "state": "translated", - "value": "Nova horizontalna kartica" + "value": "Nastavi u…" } }, "da": { "stringUnit": { "state": "translated", - "value": "Ny vandret fane" + "value": "Fortsæt i…" } }, "de": { "stringUnit": { "state": "translated", - "value": "Neuer horizontaler Tab" + "value": "Weiter in…" } }, "es": { "stringUnit": { "state": "translated", - "value": "Nueva pestaña horizontal" + "value": "Continuar en…" } }, "fr": { "stringUnit": { "state": "translated", - "value": "Nouvel onglet horizontal" + "value": "Continuer dans…" } }, "it": { "stringUnit": { "state": "translated", - "value": "Nuova scheda orizzontale" - } - }, - "ja": { - "stringUnit": { - "state": "translated", - "value": "新規水平タブ" + "value": "Continua in…" } }, "km": { "stringUnit": { "state": "translated", - "value": "ផ្ទាំងផ្ដេកថ្មី" + "value": "បន្តក្នុង…" } }, "ko": { "stringUnit": { "state": "translated", - "value": "새 가로 탭" + "value": "다음에서 계속…" } }, "nb": { "stringUnit": { "state": "translated", - "value": "Ny vannrett fane" + "value": "Fortsett i…" } }, "pl": { "stringUnit": { "state": "translated", - "value": "Nowa karta pozioma" + "value": "Kontynuuj w…" } }, "pt-BR": { "stringUnit": { "state": "translated", - "value": "Nova aba horizontal" + "value": "Continuar em…" } }, "ru": { "stringUnit": { "state": "translated", - "value": "Новая горизонтальная вкладка" + "value": "Продолжить в…" } }, "th": { "stringUnit": { "state": "translated", - "value": "แท็บแนวนอนใหม่" + "value": "ดำเนินการต่อใน…" } }, "tr": { "stringUnit": { "state": "translated", - "value": "Yeni yatay sekme" + "value": "Şurada devam et…" } }, "uk": { "stringUnit": { "state": "translated", - "value": "Нова горизонтальна вкладка" + "value": "Продовжити в…" } }, "vi": { "stringUnit": { "state": "translated", - "value": "Tab ngang mới" + "value": "Tiếp tục trong…" } }, "zh-Hans": { "stringUnit": { "state": "translated", - "value": "新建水平标签页" + "value": "继续使用…" } }, "zh-Hant": { "stringUnit": { "state": "translated", - "value": "新增水平分頁" + "value": "繼續使用…" } } } }, - "action.palette.startAgentFromAnyApp": { + "action.agentPane.createCheckpoint": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Start Agent from Any App" + "value": "Create Checkpoint" } }, "ja": { "stringUnit": { "state": "translated", - "value": "どのアプリからでもエージェントを開始" + "value": "チェックポイントを作成する" } }, "ar": { "stringUnit": { - "state": "needs_review", - "value": "بدء وكيل من أي تطبيق" + "state": "translated", + "value": "إنشاء نقطة تفتيش" } }, "bs": { "stringUnit": { - "state": "needs_review", - "value": "Pokreni agenta iz bilo koje aplikacije" + "state": "translated", + "value": "Kreirajte kontrolni punkt" } }, "da": { "stringUnit": { - "state": "needs_review", - "value": "Start agent fra enhver app" + "state": "translated", + "value": "Opret kontrolpunkt" } }, "de": { "stringUnit": { - "state": "needs_review", - "value": "Agent aus jeder App starten" + "state": "translated", + "value": "Kontrollpunkt erstellen" } }, "es": { "stringUnit": { - "state": "needs_review", - "value": "Iniciar agente desde cualquier app" + "state": "translated", + "value": "Crear punto de control" } }, "fr": { "stringUnit": { - "state": "needs_review", - "value": "Démarrer un agent depuis n’importe quelle app" + "state": "translated", + "value": "Créer un point de contrôle" } }, "it": { "stringUnit": { - "state": "needs_review", - "value": "Avvia agente da qualsiasi app" + "state": "translated", + "value": "Crea punto di controllo" } }, "km": { "stringUnit": { - "state": "needs_review", - "value": "ចាប់ផ្តើមភ្នាក់ងារពីកម្មវិធីណាមួយ" + "state": "translated", + "value": "បង្កើតចំណុចត្រួតពិនិត្យ" } }, "ko": { "stringUnit": { - "state": "needs_review", - "value": "모든 앱에서 에이전트 시작" + "state": "translated", + "value": "체크포인트 생성" } }, "nb": { "stringUnit": { - "state": "needs_review", - "value": "Start agent fra hvilken som helst app" + "state": "translated", + "value": "Opprett kontrollpunkt" } }, "pl": { - "stringUnit": { - "state": "needs_review", - "value": "Uruchom agenta z dowolnej aplikacji" - } - }, - "pt-BR": { - "stringUnit": { - "state": "needs_review", - "value": "Iniciar agente de qualquer app" - } - }, - "ru": { - "stringUnit": { - "state": "needs_review", - "value": "Запуск агента из любого приложения" - } - }, - "th": { - "stringUnit": { - "state": "needs_review", - "value": "เริ่มเอเจนต์จากแอปใดก็ได้" - } - }, - "tr": { - "stringUnit": { - "state": "needs_review", - "value": "Herhangi Bir Uygulamadan Ajan Başlat" - } - }, - "uk": { - "stringUnit": { - "state": "needs_review", - "value": "Запуск агента з будь-якої програми" - } - }, - "vi": { - "stringUnit": { - "state": "needs_review", - "value": "Bắt đầu tác tử từ mọi ứng dụng" - } - }, - "zh-Hans": { - "stringUnit": { - "state": "needs_review", - "value": "从任意应用启动智能体" - } - }, - "zh-Hant": { - "stringUnit": { - "state": "needs_review", - "value": "從任何 App 啟動代理" - } - } - } - }, - "action.palette.quickAgentChat": { - "extractionState": "manual", - "localizations": { - "en": { - "stringUnit": { - "state": "translated", - "value": "Start Agent…" - } - }, - "ja": { "stringUnit": { "state": "translated", - "value": "エージェントを開始…" - } - }, - "ar": { - "stringUnit": { - "state": "needs_review", - "value": "بدء وكيل…" - } - }, - "bs": { - "stringUnit": { - "state": "needs_review", - "value": "Pokreni agenta…" - } - }, - "da": { - "stringUnit": { - "state": "needs_review", - "value": "Start agent…" - } - }, - "de": { - "stringUnit": { - "state": "needs_review", - "value": "Agent starten…" - } - }, - "es": { - "stringUnit": { - "state": "needs_review", - "value": "Iniciar agente…" - } - }, - "fr": { - "stringUnit": { - "state": "needs_review", - "value": "Démarrer un agent…" - } - }, - "it": { - "stringUnit": { - "state": "needs_review", - "value": "Avvia agente…" - } - }, - "km": { - "stringUnit": { - "state": "needs_review", - "value": "ចាប់ផ្តើមភ្នាក់ងារ…" - } - }, - "ko": { - "stringUnit": { - "state": "needs_review", - "value": "에이전트 시작…" - } - }, - "nb": { - "stringUnit": { - "state": "needs_review", - "value": "Start agent…" - } - }, - "pl": { - "stringUnit": { - "state": "needs_review", - "value": "Uruchom agenta…" - } - }, - "pt-BR": { - "stringUnit": { - "state": "needs_review", - "value": "Iniciar agente…" - } - }, - "ru": { - "stringUnit": { - "state": "needs_review", - "value": "Запустить агента…" - } - }, - "th": { - "stringUnit": { - "state": "needs_review", - "value": "เริ่มเอเจนต์…" - } - }, - "tr": { - "stringUnit": { - "state": "needs_review", - "value": "Ajan Başlat…" - } - }, - "uk": { - "stringUnit": { - "state": "needs_review", - "value": "Запустити агента…" - } - }, - "vi": { - "stringUnit": { - "state": "needs_review", - "value": "Bắt đầu tác tử…" - } - }, - "zh-Hans": { - "stringUnit": { - "state": "needs_review", - "value": "启动智能体…" - } - }, - "zh-Hant": { - "stringUnit": { - "state": "needs_review", - "value": "啟動代理…" - } - } - } - }, - "action.about": { - "extractionState": "manual", - "localizations": { - "en": { - "stringUnit": { - "state": "translated", - "value": "About cmux" - } - }, - "ja": { - "stringUnit": { - "state": "translated", - "value": "cmux について" - } - }, - "ar": { - "stringUnit": { - "state": "translated", - "value": "حول cmux" - } - }, - "bs": { - "stringUnit": { - "state": "translated", - "value": "O programu cmux" - } - }, - "da": { - "stringUnit": { - "state": "translated", - "value": "Om cmux" - } - }, - "de": { - "stringUnit": { - "state": "translated", - "value": "Über cmux" - } - }, - "es": { - "stringUnit": { - "state": "translated", - "value": "Acerca de cmux" - } - }, - "fr": { - "stringUnit": { - "state": "translated", - "value": "À propos de cmux" - } - }, - "it": { - "stringUnit": { - "state": "translated", - "value": "Informazioni su cmux" - } - }, - "km": { - "stringUnit": { - "state": "needs_review", - "value": "អំពី cmux" - } - }, - "ko": { - "stringUnit": { - "state": "translated", - "value": "cmux에 관하여" - } - }, - "nb": { - "stringUnit": { - "state": "translated", - "value": "Om cmux" - } - }, - "pl": { - "stringUnit": { - "state": "translated", - "value": "O cmux" + "value": "Utwórz punkt kontrolny" } }, "pt-BR": { "stringUnit": { "state": "translated", - "value": "Sobre o cmux" + "value": "Criar ponto de verificação" } }, "ru": { "stringUnit": { "state": "translated", - "value": "О программе cmux" + "value": "Создать контрольную точку" } }, "th": { "stringUnit": { "state": "translated", - "value": "เกี่ยวกับ cmux" + "value": "สร้างจุดตรวจสอบ" } }, "tr": { "stringUnit": { "state": "translated", - "value": "cmux Hakkında" + "value": "Kontrol noktası oluştur" } }, "uk": { "stringUnit": { "state": "translated", - "value": "Про cmux" + "value": "Створити блок-пост" } }, "vi": { "stringUnit": { - "state": "needs_review", - "value": "Giới thiệu về cmux" + "state": "translated", + "value": "Tạo điểm kiểm tra" } }, "zh-Hans": { "stringUnit": { "state": "translated", - "value": "关于 cmux" + "value": "创建检查点" } }, "zh-Hant": { "stringUnit": { "state": "translated", - "value": "關於 cmux" + "value": "建立檢查點" } } } }, - "action.agentActivity.open": { + "action.agentPane.nextTurn": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Agent Activity" + "value": "Next Turn" } }, "ja": { "stringUnit": { "state": "needs_review", - "value": "エージェントのアクティビティ" + "value": "次のターン" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "نشاط الوكيل" + "value": "الدور التالي" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Aktivnost agenta" + "value": "Sljedeći krug" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Agentaktivitet" + "value": "Næste tur" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Agentenaktivität" + "value": "Nächste Runde" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Actividad de agentes" + "value": "Siguiente turno" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Activité des agents" + "value": "Tour suivant" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Attività degli agenti" + "value": "Turno successivo" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "សកម្មភាពភ្នាក់ងារ" + "value": "វេនបន្ទាប់" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "에이전트 활동" + "value": "다음 턴" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Agentaktivitet" + "value": "Neste runde" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Aktywność agentów" + "value": "Następna tura" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Atividade de agentes" + "value": "Próximo turno" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Активность агентов" + "value": "Следующий ход" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "กิจกรรมของเอเจนต์" + "value": "เทิร์นถัดไป" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Ajan etkinliği" + "value": "Sonraki tur" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Активність агентів" + "value": "Наступний хід" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Hoạt động của tác tử" + "value": "Lượt tiếp theo" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "代理活动" + "value": "下一轮" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "代理活動" + "value": "下一輪" } } } }, - "action.agentPane.continueIn": { + "action.agentPane.previousBookmarkedPrompt": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Continue in…" + "value": "Previous Bookmarked Prompt" } }, "ja": { "stringUnit": { "state": "translated", - "value": "…で続行" + "value": "前のブックマークしたプロンプト" } }, "ar": { "stringUnit": { "state": "translated", - "value": "المتابعة في…" + "value": "المطالبة المحفوظة السابقة" } }, "bs": { "stringUnit": { "state": "translated", - "value": "Nastavi u…" + "value": "Prethodni označeni upit" } }, "da": { "stringUnit": { "state": "translated", - "value": "Fortsæt i…" + "value": "Forrige bogmærkede prompt" } }, "de": { "stringUnit": { "state": "translated", - "value": "Weiter in…" + "value": "Vorheriger markierter Prompt" } }, "es": { "stringUnit": { "state": "translated", - "value": "Continuar en…" + "value": "Indicación marcada anterior" } }, "fr": { "stringUnit": { "state": "translated", - "value": "Continuer dans…" + "value": "Invite marquée précédente" } }, "it": { "stringUnit": { "state": "translated", - "value": "Continua in…" + "value": "Prompt contrassegnato precedente" } }, "km": { "stringUnit": { "state": "translated", - "value": "បន្តក្នុង…" + "value": "ប្រអប់បញ្ចូលដែលបានចំណាំមុន" } }, "ko": { "stringUnit": { "state": "translated", - "value": "다음에서 계속…" + "value": "이전 북마크한 프롬프트" } }, "nb": { "stringUnit": { "state": "translated", - "value": "Fortsett i…" + "value": "Forrige bokmerkede ledetekst" } }, "pl": { "stringUnit": { "state": "translated", - "value": "Kontynuuj w…" + "value": "Poprzedni zakładkowany prompt" } }, "pt-BR": { "stringUnit": { "state": "translated", - "value": "Continuar em…" + "value": "Prompt marcado anterior" } }, "ru": { "stringUnit": { "state": "translated", - "value": "Продолжить в…" + "value": "Предыдущий запрос в закладках" } }, "th": { "stringUnit": { "state": "translated", - "value": "ดำเนินการต่อใน…" + "value": "พรอมต์ที่บุ๊กมาร์กก่อนหน้า" } }, "tr": { "stringUnit": { "state": "translated", - "value": "Şurada devam et…" + "value": "Önceki yer imli istem" } }, "uk": { "stringUnit": { "state": "translated", - "value": "Продовжити в…" + "value": "Попередній запит у закладках" } }, "vi": { "stringUnit": { "state": "translated", - "value": "Tiếp tục trong…" + "value": "Lời nhắc đã đánh dấu trước" } }, "zh-Hans": { "stringUnit": { "state": "translated", - "value": "继续使用…" + "value": "上一个已加书签的提示" } }, "zh-Hant": { "stringUnit": { "state": "translated", - "value": "繼續使用…" + "value": "上一個已加書籤的提示" } } } }, - "action.agentPane.createCheckpoint": { + "action.agentPane.nextBookmarkedPrompt": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Create Checkpoint" + "value": "Next Bookmarked Prompt" } }, "ja": { "stringUnit": { "state": "translated", - "value": "チェックポイントを作成する" + "value": "次のブックマークしたプロンプト" } }, "ar": { "stringUnit": { "state": "translated", - "value": "إنشاء نقطة تفتيش" + "value": "المطالبة المحفوظة التالية" } }, "bs": { "stringUnit": { "state": "translated", - "value": "Kreirajte kontrolni punkt" + "value": "Sljedeći označeni upit" } }, "da": { "stringUnit": { "state": "translated", - "value": "Opret kontrolpunkt" + "value": "Næste bogmærkede prompt" } }, "de": { "stringUnit": { "state": "translated", - "value": "Kontrollpunkt erstellen" + "value": "Nächster markierter Prompt" } }, "es": { "stringUnit": { "state": "translated", - "value": "Crear punto de control" + "value": "Siguiente indicación marcada" } }, "fr": { "stringUnit": { "state": "translated", - "value": "Créer un point de contrôle" + "value": "Invite marquée suivante" } }, "it": { "stringUnit": { "state": "translated", - "value": "Crea punto di controllo" + "value": "Prompt contrassegnato successivo" } }, "km": { "stringUnit": { "state": "translated", - "value": "បង្កើតចំណុចត្រួតពិនិត្យ" + "value": "ប្រអប់បញ្ចូលដែលបានចំណាំបន្ទាប់" } }, "ko": { "stringUnit": { "state": "translated", - "value": "체크포인트 생성" + "value": "다음 북마크한 프롬프트" } }, "nb": { "stringUnit": { "state": "translated", - "value": "Opprett kontrollpunkt" + "value": "Neste bokmerkede ledetekst" } }, "pl": { "stringUnit": { "state": "translated", - "value": "Utwórz punkt kontrolny" + "value": "Następny zakładkowany prompt" } }, "pt-BR": { "stringUnit": { "state": "translated", - "value": "Criar ponto de verificação" + "value": "Próximo prompt marcado" } }, "ru": { "stringUnit": { "state": "translated", - "value": "Создать контрольную точку" + "value": "Следующий запрос в закладках" } }, "th": { "stringUnit": { "state": "translated", - "value": "สร้างจุดตรวจสอบ" + "value": "พรอมต์ที่บุ๊กมาร์กถัดไป" } }, "tr": { "stringUnit": { "state": "translated", - "value": "Kontrol noktası oluştur" + "value": "Sonraki yer imli istem" } }, "uk": { "stringUnit": { "state": "translated", - "value": "Створити блок-пост" + "value": "Наступний запит у закладках" } }, "vi": { "stringUnit": { "state": "translated", - "value": "Tạo điểm kiểm tra" + "value": "Lời nhắc đã đánh dấu tiếp theo" } }, "zh-Hans": { "stringUnit": { "state": "translated", - "value": "创建检查点" + "value": "下一个已加书签的提示" } }, "zh-Hant": { "stringUnit": { "state": "translated", - "value": "建立檢查點" - } - } - } - }, - "action.agentPane.nextTurn": { - "extractionState": "manual", - "localizations": { - "en": { - "stringUnit": { - "state": "translated", - "value": "Next Turn" - } - }, - "ja": { - "stringUnit": { - "state": "needs_review", - "value": "次のターン" - } - }, - "ar": { - "stringUnit": { - "state": "needs_review", - "value": "الدور التالي" - } - }, - "bs": { - "stringUnit": { - "state": "needs_review", - "value": "Sljedeći krug" - } - }, - "da": { - "stringUnit": { - "state": "needs_review", - "value": "Næste tur" - } - }, - "de": { - "stringUnit": { - "state": "needs_review", - "value": "Nächste Runde" - } - }, - "es": { - "stringUnit": { - "state": "needs_review", - "value": "Siguiente turno" - } - }, - "fr": { - "stringUnit": { - "state": "needs_review", - "value": "Tour suivant" - } - }, - "it": { - "stringUnit": { - "state": "needs_review", - "value": "Turno successivo" - } - }, - "km": { - "stringUnit": { - "state": "needs_review", - "value": "វេនបន្ទាប់" - } - }, - "ko": { - "stringUnit": { - "state": "needs_review", - "value": "다음 턴" - } - }, - "nb": { - "stringUnit": { - "state": "needs_review", - "value": "Neste runde" - } - }, - "pl": { - "stringUnit": { - "state": "needs_review", - "value": "Następna tura" - } - }, - "pt-BR": { - "stringUnit": { - "state": "needs_review", - "value": "Próximo turno" - } - }, - "ru": { - "stringUnit": { - "state": "needs_review", - "value": "Следующий ход" - } - }, - "th": { - "stringUnit": { - "state": "needs_review", - "value": "เทิร์นถัดไป" - } - }, - "tr": { - "stringUnit": { - "state": "needs_review", - "value": "Sonraki tur" - } - }, - "uk": { - "stringUnit": { - "state": "needs_review", - "value": "Наступний хід" - } - }, - "vi": { - "stringUnit": { - "state": "needs_review", - "value": "Lượt tiếp theo" - } - }, - "zh-Hans": { - "stringUnit": { - "state": "needs_review", - "value": "下一轮" - } - }, - "zh-Hant": { - "stringUnit": { - "state": "needs_review", - "value": "下一輪" + "value": "下一個已加書籤的提示" } } } @@ -78488,6 +78095,530 @@ } } }, + "action.jumpToLastPrompt": { + "extractionState": "manual", + "localizations": { + "en": { + "stringUnit": { + "state": "translated", + "value": "Jump to Last Prompt" + } + }, + "ja": { + "stringUnit": { + "state": "needs_review", + "value": "最後のプロンプトへ移動" + } + }, + "ar": { + "stringUnit": { + "state": "needs_review", + "value": "الانتقال إلى آخر موجّه" + } + }, + "bs": { + "stringUnit": { + "state": "needs_review", + "value": "Idi na posljednji upit" + } + }, + "da": { + "stringUnit": { + "state": "needs_review", + "value": "Gå til seneste prompt" + } + }, + "de": { + "stringUnit": { + "state": "needs_review", + "value": "Zum letzten Prompt springen" + } + }, + "es": { + "stringUnit": { + "state": "needs_review", + "value": "Ir al último prompt" + } + }, + "fr": { + "stringUnit": { + "state": "needs_review", + "value": "Aller au dernier prompt" + } + }, + "it": { + "stringUnit": { + "state": "needs_review", + "value": "Vai all’ultimo prompt" + } + }, + "km": { + "stringUnit": { + "state": "needs_review", + "value": "ទៅកាន់សំណើចុងក្រោយ" + } + }, + "ko": { + "stringUnit": { + "state": "needs_review", + "value": "마지막 프롬프트로 이동" + } + }, + "nb": { + "stringUnit": { + "state": "needs_review", + "value": "Gå til siste ledetekst" + } + }, + "pl": { + "stringUnit": { + "state": "needs_review", + "value": "Przejdź do ostatniego polecenia" + } + }, + "pt-BR": { + "stringUnit": { + "state": "needs_review", + "value": "Ir para o último prompt" + } + }, + "ru": { + "stringUnit": { + "state": "needs_review", + "value": "Перейти к последнему запросу" + } + }, + "th": { + "stringUnit": { + "state": "needs_review", + "value": "ไปยังพรอมต์ล่าสุด" + } + }, + "tr": { + "stringUnit": { + "state": "needs_review", + "value": "Son isteme git" + } + }, + "uk": { + "stringUnit": { + "state": "needs_review", + "value": "Перейти до останнього запиту" + } + }, + "vi": { + "stringUnit": { + "state": "needs_review", + "value": "Chuyển đến lời nhắc gần nhất" + } + }, + "zh-Hans": { + "stringUnit": { + "state": "needs_review", + "value": "跳转到最后的提示" + } + }, + "zh-Hant": { + "stringUnit": { + "state": "needs_review", + "value": "跳至最後的提示" + } + } + } + }, + "action.window.closeOthers": { + "extractionState": "manual", + "localizations": { + "en": { + "stringUnit": { + "state": "translated", + "value": "Close Other Windows" + } + }, + "ja": { + "stringUnit": { + "state": "translated", + "value": "ほかのウィンドウを閉じる" + } + }, + "ar": { + "stringUnit": { + "state": "needs_review", + "value": "إغلاق النوافذ الأخرى" + } + }, + "bs": { + "stringUnit": { + "state": "needs_review", + "value": "Zatvori ostale prozore" + } + }, + "da": { + "stringUnit": { + "state": "needs_review", + "value": "Luk andre vinduer" + } + }, + "de": { + "stringUnit": { + "state": "needs_review", + "value": "Andere Fenster schließen" + } + }, + "es": { + "stringUnit": { + "state": "needs_review", + "value": "Cerrar las demás ventanas" + } + }, + "fr": { + "stringUnit": { + "state": "needs_review", + "value": "Fermer les autres fenêtres" + } + }, + "it": { + "stringUnit": { + "state": "needs_review", + "value": "Chiudi le altre finestre" + } + }, + "km": { + "stringUnit": { + "state": "needs_review", + "value": "បិទបង្អួចផ្សេងទៀត" + } + }, + "ko": { + "stringUnit": { + "state": "needs_review", + "value": "다른 윈도우 닫기" + } + }, + "nb": { + "stringUnit": { + "state": "needs_review", + "value": "Lukk andre vinduer" + } + }, + "pl": { + "stringUnit": { + "state": "needs_review", + "value": "Zamknij pozostałe okna" + } + }, + "pt-BR": { + "stringUnit": { + "state": "needs_review", + "value": "Fechar Outras Janelas" + } + }, + "ru": { + "stringUnit": { + "state": "needs_review", + "value": "Закрыть другие окна" + } + }, + "th": { + "stringUnit": { + "state": "needs_review", + "value": "ปิดหน้าต่างอื่น" + } + }, + "tr": { + "stringUnit": { + "state": "needs_review", + "value": "Diğer Pencereleri Kapat" + } + }, + "uk": { + "stringUnit": { + "state": "needs_review", + "value": "Закрити інші вікна" + } + }, + "vi": { + "stringUnit": { + "state": "needs_review", + "value": "Đóng các cửa sổ khác" + } + }, + "zh-Hans": { + "stringUnit": { + "state": "needs_review", + "value": "关闭其他窗口" + } + }, + "zh-Hant": { + "stringUnit": { + "state": "needs_review", + "value": "關閉其他視窗" + } + } + } + }, + "action.workspaceGroup.closeOthers": { + "extractionState": "manual", + "localizations": { + "en": { + "stringUnit": { + "state": "translated", + "value": "Close Other Groups" + } + }, + "ja": { + "stringUnit": { + "state": "translated", + "value": "ほかのグループを閉じる" + } + }, + "ar": { + "stringUnit": { + "state": "needs_review", + "value": "إغلاق المجموعات الأخرى" + } + }, + "bs": { + "stringUnit": { + "state": "needs_review", + "value": "Zatvori ostale grupe" + } + }, + "da": { + "stringUnit": { + "state": "needs_review", + "value": "Luk andre grupper" + } + }, + "de": { + "stringUnit": { + "state": "needs_review", + "value": "Andere Gruppen schließen" + } + }, + "es": { + "stringUnit": { + "state": "needs_review", + "value": "Cerrar los demás grupos" + } + }, + "fr": { + "stringUnit": { + "state": "needs_review", + "value": "Fermer les autres groupes" + } + }, + "it": { + "stringUnit": { + "state": "needs_review", + "value": "Chiudi gli altri gruppi" + } + }, + "km": { + "stringUnit": { + "state": "needs_review", + "value": "បិទក្រុមផ្សេងទៀត" + } + }, + "ko": { + "stringUnit": { + "state": "needs_review", + "value": "다른 그룹 닫기" + } + }, + "nb": { + "stringUnit": { + "state": "needs_review", + "value": "Lukk andre grupper" + } + }, + "pl": { + "stringUnit": { + "state": "needs_review", + "value": "Zamknij pozostałe grupy" + } + }, + "pt-BR": { + "stringUnit": { + "state": "needs_review", + "value": "Fechar Outros Grupos" + } + }, + "ru": { + "stringUnit": { + "state": "needs_review", + "value": "Закрыть другие группы" + } + }, + "th": { + "stringUnit": { + "state": "needs_review", + "value": "ปิดกลุ่มอื่น" + } + }, + "tr": { + "stringUnit": { + "state": "needs_review", + "value": "Diğer Grupları Kapat" + } + }, + "uk": { + "stringUnit": { + "state": "needs_review", + "value": "Закрити інші групи" + } + }, + "vi": { + "stringUnit": { + "state": "needs_review", + "value": "Đóng các nhóm khác" + } + }, + "zh-Hans": { + "stringUnit": { + "state": "needs_review", + "value": "关闭其他分组" + } + }, + "zh-Hant": { + "stringUnit": { + "state": "needs_review", + "value": "關閉其他群組" + } + } + } + }, + "action.workspaceGroup.duplicate": { + "extractionState": "manual", + "localizations": { + "en": { + "stringUnit": { + "state": "translated", + "value": "Duplicate Workspace Group" + } + }, + "ja": { + "stringUnit": { + "state": "translated", + "value": "ワークスペースグループを複製" + } + }, + "ar": { + "stringUnit": { + "state": "needs_review", + "value": "تكرار مجموعة مساحات العمل" + } + }, + "bs": { + "stringUnit": { + "state": "needs_review", + "value": "Dupliciraj grupu radnih prostora" + } + }, + "da": { + "stringUnit": { + "state": "needs_review", + "value": "Dupliker arbejdsområdegruppe" + } + }, + "de": { + "stringUnit": { + "state": "needs_review", + "value": "Arbeitsbereichsgruppe duplizieren" + } + }, + "es": { + "stringUnit": { + "state": "needs_review", + "value": "Duplicar grupo de espacios de trabajo" + } + }, + "fr": { + "stringUnit": { + "state": "needs_review", + "value": "Dupliquer le groupe d’espaces de travail" + } + }, + "it": { + "stringUnit": { + "state": "needs_review", + "value": "Duplica gruppo di aree di lavoro" + } + }, + "km": { + "stringUnit": { + "state": "needs_review", + "value": "ចម្លងក្រុមកន្លែងធ្វើការ" + } + }, + "ko": { + "stringUnit": { + "state": "needs_review", + "value": "작업 공간 그룹 복제" + } + }, + "nb": { + "stringUnit": { + "state": "needs_review", + "value": "Dupliser arbeidsområdegruppe" + } + }, + "pl": { + "stringUnit": { + "state": "needs_review", + "value": "Duplikuj grupę przestrzeni roboczych" + } + }, + "pt-BR": { + "stringUnit": { + "state": "needs_review", + "value": "Duplicar Grupo de Áreas de Trabalho" + } + }, + "ru": { + "stringUnit": { + "state": "needs_review", + "value": "Дублировать группу рабочих пространств" + } + }, + "th": { + "stringUnit": { + "state": "needs_review", + "value": "ทำสำเนากลุ่มเวิร์กสเปซ" + } + }, + "tr": { + "stringUnit": { + "state": "needs_review", + "value": "Çalışma Alanı Grubunu Çoğalt" + } + }, + "uk": { + "stringUnit": { + "state": "needs_review", + "value": "Дублювати групу робочих областей" + } + }, + "vi": { + "stringUnit": { + "state": "needs_review", + "value": "Nhân bản nhóm không gian làm việc" + } + }, + "zh-Hans": { + "stringUnit": { + "state": "needs_review", + "value": "复制工作区分组" + } + }, + "zh-Hant": { + "stringUnit": { + "state": "needs_review", + "value": "複製工作區群組" + } + } + } + }, "action.agentChat.copyIdentifier": { "extractionState": "manual", "localizations": { @@ -78557,1244 +78688,1375 @@ "value": "Kopiér agent-id" } }, - "it": { + "it": { + "stringUnit": { + "state": "translated", + "value": "Copia identificatore dell’agente" + } + }, + "km": { + "stringUnit": { + "state": "translated", + "value": "ចម្លងលេខសម្គាល់ភ្នាក់ងារ" + } + }, + "nb": { + "stringUnit": { + "state": "translated", + "value": "Kopier agent-ID" + } + }, + "pl": { + "stringUnit": { + "state": "translated", + "value": "Kopiuj identyfikator agenta" + } + }, + "pt-BR": { + "stringUnit": { + "state": "translated", + "value": "Copiar identificador do agente" + } + }, + "ru": { + "stringUnit": { + "state": "translated", + "value": "Скопировать идентификатор агента" + } + }, + "th": { + "stringUnit": { + "state": "translated", + "value": "คัดลอกตัวระบุเอเจนต์" + } + }, + "tr": { + "stringUnit": { + "state": "translated", + "value": "Ajan Tanımlayıcısını Kopyala" + } + }, + "uk": { + "stringUnit": { + "state": "translated", + "value": "Скопіювати ідентифікатор агента" + } + }, + "vi": { + "stringUnit": { + "state": "translated", + "value": "Sao chép mã định danh tác tử" + } + } + } + }, + "action.stats.show": { + "comment": "Command palette: opens the Agent Stats page (a preview feature)", + "extractionState": "manual", + "localizations": { + "en": { + "stringUnit": { + "state": "translated", + "value": "Show Agent Stats" + } + }, + "ar": { + "stringUnit": { + "state": "translated", + "value": "عرض إحصاءات الوكلاء" + } + }, + "bs": { + "stringUnit": { + "state": "translated", + "value": "Prikaži statistiku agenata" + } + }, + "da": { + "stringUnit": { + "state": "translated", + "value": "Vis agentstatistik" + } + }, + "de": { + "stringUnit": { + "state": "translated", + "value": "Agent-Statistik anzeigen" + } + }, + "es": { + "stringUnit": { + "state": "translated", + "value": "Mostrar estadísticas de agentes" + } + }, + "fr": { + "stringUnit": { + "state": "translated", + "value": "Afficher les statistiques des agents" + } + }, + "it": { + "stringUnit": { + "state": "translated", + "value": "Mostra statistiche degli agenti" + } + }, + "ja": { + "stringUnit": { + "state": "translated", + "value": "エージェント統計を表示" + } + }, + "km": { "stringUnit": { "state": "translated", - "value": "Copia identificatore dell’agente" + "value": "បង្ហាញស្ថិតិភ្នាក់ងារ" } }, - "km": { + "ko": { "stringUnit": { "state": "translated", - "value": "ចម្លងលេខសម្គាល់ភ្នាក់ងារ" + "value": "에이전트 통계 보기" } }, "nb": { "stringUnit": { "state": "translated", - "value": "Kopier agent-ID" + "value": "Vis agentstatistikk" } }, "pl": { "stringUnit": { "state": "translated", - "value": "Kopiuj identyfikator agenta" + "value": "Pokaż statystyki agentów" } }, "pt-BR": { "stringUnit": { "state": "translated", - "value": "Copiar identificador do agente" + "value": "Mostrar estatísticas dos agentes" } }, "ru": { "stringUnit": { "state": "translated", - "value": "Скопировать идентификатор агента" + "value": "Показать статистику агентов" } }, "th": { "stringUnit": { "state": "translated", - "value": "คัดลอกตัวระบุเอเจนต์" + "value": "แสดงสถิติเอเจนต์" } }, "tr": { "stringUnit": { "state": "translated", - "value": "Ajan Tanımlayıcısını Kopyala" + "value": "Ajan istatistiklerini göster" } }, "uk": { "stringUnit": { "state": "translated", - "value": "Скопіювати ідентифікатор агента" + "value": "Показати статистику агентів" } }, "vi": { "stringUnit": { "state": "translated", - "value": "Sao chép mã định danh tác tử" + "value": "Hiện thống kê tác tử" + } + }, + "zh-Hans": { + "stringUnit": { + "state": "translated", + "value": "显示智能体统计" + } + }, + "zh-Hant": { + "stringUnit": { + "state": "translated", + "value": "顯示代理程式統計" } } } }, - "action.jumpToLastPrompt": { + "action.appearance.animations.newTab.toggle": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Jump to Last Prompt" + "value": "Toggle New Tab Animations" } }, "ja": { "stringUnit": { "state": "needs_review", - "value": "最後のプロンプトへ移動" + "value": "新しいタブのアニメーションを切り替え" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "الانتقال إلى آخر موجّه" + "value": "تبديل حركة علامات التبويب الجديدة" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Idi na posljednji upit" + "value": "Uključi/isključi animacije novih kartica" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Gå til seneste prompt" + "value": "Slå animationer af nye faner til/fra" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Zum letzten Prompt springen" + "value": "Animationen neuer Tabs ein/aus" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Ir al último prompt" + "value": "Activar o desactivar animaciones de pestañas nuevas" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Aller au dernier prompt" + "value": "Activer/désactiver les animations des nouveaux onglets" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Vai all’ultimo prompt" + "value": "Attiva/disattiva animazioni delle nuove schede" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "ទៅកាន់សំណើចុងក្រោយ" + "value": "បិទ/បើកចលនាផ្ទាំងថ្មី" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "마지막 프롬프트로 이동" + "value": "새 탭 애니메이션 전환" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Gå til siste ledetekst" + "value": "Slå animasjoner av nye faner av/på" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Przejdź do ostatniego polecenia" + "value": "Przełącz animacje nowych kart" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Ir para o último prompt" + "value": "Alternar animações de novas abas" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Перейти к последнему запросу" + "value": "Переключить анимацию новых вкладок" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ไปยังพรอมต์ล่าสุด" + "value": "สลับภาพเคลื่อนไหวแท็บใหม่" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Son isteme git" + "value": "Yeni sekme animasyonlarını aç/kapat" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Перейти до останнього запиту" + "value": "Перемкнути анімацію нових вкладок" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Chuyển đến lời nhắc gần nhất" + "value": "Bật/tắt hiệu ứng tab mới" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "跳转到最后的提示" + "value": "切换新标签页动画" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "跳至最後的提示" + "value": "切換新分頁動畫" } } } }, - "action.window.closeOthers": { + "action.appearance.animations.newWorkspace.toggle": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Close Other Windows" + "value": "Toggle New Workspace Animations" } }, "ja": { "stringUnit": { - "state": "translated", - "value": "ほかのウィンドウを閉じる" + "state": "needs_review", + "value": "新しいワークスペースのアニメーションを切り替え" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "إغلاق النوافذ الأخرى" + "value": "تبديل حركة مساحات العمل الجديدة" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Zatvori ostale prozore" + "value": "Uključi/isključi animacije novih radnih prostora" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Luk andre vinduer" + "value": "Slå animationer af nye arbejdsområder til/fra" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Andere Fenster schließen" + "value": "Animationen neuer Arbeitsbereiche ein/aus" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Cerrar las demás ventanas" + "value": "Activar o desactivar animaciones de espacios de trabajo nuevos" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Fermer les autres fenêtres" + "value": "Activer/désactiver les animations des nouveaux espaces de travail" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Chiudi le altre finestre" + "value": "Attiva/disattiva animazioni dei nuovi spazi di lavoro" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "បិទបង្អួចផ្សេងទៀត" + "value": "បិទ/បើកចលនាកន្លែងធ្វើការថ្មី" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "다른 윈도우 닫기" + "value": "새 작업 공간 애니메이션 전환" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Lukk andre vinduer" + "value": "Slå animasjoner av nye arbeidsområder av/på" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Zamknij pozostałe okna" + "value": "Przełącz animacje nowych obszarów roboczych" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Fechar Outras Janelas" + "value": "Alternar animações de novos espaços de trabalho" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Закрыть другие окна" + "value": "Переключить анимацию новых рабочих пространств" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ปิดหน้าต่างอื่น" + "value": "สลับภาพเคลื่อนไหวพื้นที่ทำงานใหม่" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Diğer Pencereleri Kapat" + "value": "Yeni çalışma alanı animasyonlarını aç/kapat" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Закрити інші вікна" + "value": "Перемкнути анімацію нових робочих просторів" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Đóng các cửa sổ khác" + "value": "Bật/tắt hiệu ứng không gian làm việc mới" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "关闭其他窗口" + "value": "切换新工作区动画" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "關閉其他視窗" + "value": "切換新工作區動畫" } } } }, - "action.workspaceGroup.closeOthers": { + "action.appearance.animations.bounce.subtle": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Close Other Groups" + "value": "Use Bouncy Animations" } }, "ja": { "stringUnit": { - "state": "translated", - "value": "ほかのグループを閉じる" + "state": "needs_review", + "value": "弾むアニメーションを使用" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "إغلاق المجموعات الأخرى" + "value": "استخدام حركة مرتدة" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Zatvori ostale grupe" + "value": "Koristi animacije s odskokom" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Luk andre grupper" + "value": "Brug fjedrende animationer" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Andere Gruppen schließen" + "value": "Federnde Animationen verwenden" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Cerrar los demás grupos" + "value": "Usar animaciones con rebote" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Fermer les autres groupes" + "value": "Utiliser des animations avec rebond" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Chiudi gli altri gruppi" + "value": "Usa animazioni con rimbalzo" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "បិទក្រុមផ្សេងទៀត" + "value": "ប្រើចលនាលោត" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "다른 그룹 닫기" + "value": "통통 튀는 애니메이션 사용" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Lukk andre grupper" + "value": "Bruk fjærende animasjoner" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Zamknij pozostałe grupy" + "value": "Używaj animacji z odbiciem" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Fechar Outros Grupos" + "value": "Usar animações com quique" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Закрыть другие группы" + "value": "Использовать пружинистую анимацию" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ปิดกลุ่มอื่น" + "value": "ใช้ภาพเคลื่อนไหวแบบเด้ง" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Diğer Grupları Kapat" + "value": "Sekmeli animasyonlar kullan" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Закрити інші групи" + "value": "Використовувати пружну анімацію" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Đóng các nhóm khác" + "value": "Dùng hiệu ứng có độ nảy" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "关闭其他分组" + "value": "使用弹跳动画" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "關閉其他群組" + "value": "使用彈跳動畫" } } } }, - "action.workspaceGroup.duplicate": { + "action.appearance.animations.bounce.none": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Duplicate Workspace Group" + "value": "Use Animations Without Bounce" } }, "ja": { "stringUnit": { - "state": "translated", - "value": "ワークスペースグループを複製" + "state": "needs_review", + "value": "弾まないアニメーションを使用" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "تكرار مجموعة مساحات العمل" + "value": "استخدام حركة بلا ارتداد" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Dupliciraj grupu radnih prostora" + "value": "Koristi animacije bez odskoka" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Dupliker arbejdsområdegruppe" + "value": "Brug animationer uden fjedring" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Arbeitsbereichsgruppe duplizieren" + "value": "Animationen ohne Federn verwenden" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Duplicar grupo de espacios de trabajo" + "value": "Usar animaciones sin rebote" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Dupliquer le groupe d’espaces de travail" + "value": "Utiliser des animations sans rebond" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Duplica gruppo di aree di lavoro" + "value": "Usa animazioni senza rimbalzo" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "ចម្លងក្រុមកន្លែងធ្វើការ" + "value": "ប្រើចលនាគ្មានការលោត" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "작업 공간 그룹 복제" + "value": "바운스 없는 애니메이션 사용" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Dupliser arbeidsområdegruppe" + "value": "Bruk animasjoner uten fjæring" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Duplikuj grupę przestrzeni roboczych" + "value": "Używaj animacji bez odbicia" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Duplicar Grupo de Áreas de Trabalho" + "value": "Usar animações sem quique" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Дублировать группу рабочих пространств" + "value": "Использовать анимацию без отскока" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ทำสำเนากลุ่มเวิร์กสเปซ" + "value": "ใช้ภาพเคลื่อนไหวแบบไม่เด้ง" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Çalışma Alanı Grubunu Çoğalt" + "value": "Sekmesiz animasyonlar kullan" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Дублювати групу робочих областей" + "value": "Використовувати анімацію без відскоку" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Nhân bản nhóm không gian làm việc" + "value": "Dùng hiệu ứng không nảy" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "复制工作区分组" + "value": "使用无弹跳动画" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "複製工作區群組" + "value": "使用無彈跳動畫" } } } }, - "action.stats.show": { - "comment": "Command palette: opens the Agent Stats page (a preview feature)", + "action.browserFitDesktop": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Show Agent Stats" + "value": "Fit as 16:9 Desktop" } }, - "ar": { + "ja": { "stringUnit": { "state": "translated", - "value": "عرض إحصاءات الوكلاء" + "value": "16:9 のデスクトップ表示に合わせる" + } + }, + "ar": { + "stringUnit": { + "state": "needs_review", + "value": "ملاءمة كسطح مكتب 16:9" } }, "bs": { "stringUnit": { - "state": "translated", - "value": "Prikaži statistiku agenata" + "state": "needs_review", + "value": "Prilagodi kao desktop 16:9" } }, "da": { "stringUnit": { - "state": "translated", - "value": "Vis agentstatistik" + "state": "needs_review", + "value": "Tilpas som 16:9-skrivebord" } }, "de": { "stringUnit": { - "state": "translated", - "value": "Agent-Statistik anzeigen" + "state": "needs_review", + "value": "Als 16:9-Desktop einpassen" } }, "es": { "stringUnit": { - "state": "translated", - "value": "Mostrar estadísticas de agentes" + "state": "needs_review", + "value": "Ajustar como escritorio 16:9" } }, "fr": { "stringUnit": { - "state": "translated", - "value": "Afficher les statistiques des agents" + "state": "needs_review", + "value": "Ajuster en bureau 16:9" } }, "it": { "stringUnit": { - "state": "translated", - "value": "Mostra statistiche degli agenti" - } - }, - "ja": { - "stringUnit": { - "state": "translated", - "value": "エージェント統計を表示" + "state": "needs_review", + "value": "Adatta come desktop 16:9" } }, "km": { "stringUnit": { - "state": "translated", - "value": "បង្ហាញស្ថិតិភ្នាក់ងារ" + "state": "needs_review", + "value": "សមជាផ្ទៃតុ 16:9" } }, "ko": { "stringUnit": { - "state": "translated", - "value": "에이전트 통계 보기" + "state": "needs_review", + "value": "16:9 데스크톱에 맞추기" } }, "nb": { "stringUnit": { - "state": "translated", - "value": "Vis agentstatistikk" + "state": "needs_review", + "value": "Tilpass som 16:9-skrivebord" } }, "pl": { "stringUnit": { - "state": "translated", - "value": "Pokaż statystyki agentów" + "state": "needs_review", + "value": "Dopasuj jako pulpit 16:9" } }, "pt-BR": { "stringUnit": { - "state": "translated", - "value": "Mostrar estatísticas dos agentes" + "state": "needs_review", + "value": "Ajustar como desktop 16:9" } }, "ru": { "stringUnit": { - "state": "translated", - "value": "Показать статистику агентов" + "state": "needs_review", + "value": "Вписать как рабочий стол 16:9" } }, "th": { "stringUnit": { - "state": "translated", - "value": "แสดงสถิติเอเจนต์" + "state": "needs_review", + "value": "พอดีแบบเดสก์ท็อป 16:9" } }, "tr": { "stringUnit": { - "state": "translated", - "value": "Ajan istatistiklerini göster" + "state": "needs_review", + "value": "16:9 Masaüstü Olarak Sığdır" } }, "uk": { "stringUnit": { - "state": "translated", - "value": "Показати статистику агентів" + "state": "needs_review", + "value": "Вмістити як робочий стіл 16:9" } }, "vi": { "stringUnit": { - "state": "translated", - "value": "Hiện thống kê tác tử" + "state": "needs_review", + "value": "Vừa khít như màn hình máy tính 16:9" } }, "zh-Hans": { "stringUnit": { - "state": "translated", - "value": "显示智能体统计" + "state": "needs_review", + "value": "适配为 16:9 桌面" } }, "zh-Hant": { "stringUnit": { - "state": "translated", - "value": "顯示代理程式統計" + "state": "needs_review", + "value": "調整為 16:9 桌面" } } } }, - "action.appearance.animations.newTab.toggle": { + "action.browserFitDesktop1280": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Toggle New Tab Animations" + "value": "Fit as Desktop (1280)" } }, "ja": { "stringUnit": { - "state": "needs_review", - "value": "新しいタブのアニメーションを切り替え" + "state": "translated", + "value": "デスクトップ表示に合わせる(1280)" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "تبديل حركة علامات التبويب الجديدة" + "value": "ملاءمة كسطح مكتب (1280)" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Uključi/isključi animacije novih kartica" + "value": "Prilagodi kao desktop (1280)" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Slå animationer af nye faner til/fra" + "value": "Tilpas som skrivebord (1280)" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Animationen neuer Tabs ein/aus" + "value": "Als Desktop einpassen (1280)" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Activar o desactivar animaciones de pestañas nuevas" + "value": "Ajustar como escritorio (1280)" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Activer/désactiver les animations des nouveaux onglets" + "value": "Ajuster en bureau (1280)" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Attiva/disattiva animazioni delle nuove schede" + "value": "Adatta come desktop (1280)" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "បិទ/បើកចលនាផ្ទាំងថ្មី" + "value": "សមជាផ្ទៃតុ (1280)" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "새 탭 애니메이션 전환" + "value": "데스크톱에 맞추기(1280)" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Slå animasjoner av nye faner av/på" + "value": "Tilpass som skrivebord (1280)" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Przełącz animacje nowych kart" + "value": "Dopasuj jako pulpit (1280)" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Alternar animações de novas abas" + "value": "Ajustar como desktop (1280)" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Переключить анимацию новых вкладок" + "value": "Вписать как рабочий стол (1280)" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "สลับภาพเคลื่อนไหวแท็บใหม่" + "value": "พอดีแบบเดสก์ท็อป (1280)" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Yeni sekme animasyonlarını aç/kapat" + "value": "Masaüstü Olarak Sığdır (1280)" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Перемкнути анімацію нових вкладок" + "value": "Вмістити як робочий стіл (1280)" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Bật/tắt hiệu ứng tab mới" + "value": "Vừa khít như màn hình máy tính (1280)" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "切换新标签页动画" + "value": "适配为桌面(1280)" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "切換新分頁動畫" + "value": "調整為桌面(1280)" } } } }, - "action.appearance.animations.newWorkspace.toggle": { + "action.links.openInCmuxBrowser": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Toggle New Workspace Animations" - } - }, - "ja": { - "stringUnit": { - "state": "needs_review", - "value": "新しいワークスペースのアニメーションを切り替え" + "value": "Links: Open in cmux Browser" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "تبديل حركة مساحات العمل الجديدة" + "value": "الروابط: فتح في متصفح cmux" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Uključi/isključi animacije novih radnih prostora" + "value": "Linkovi: Otvori u cmux pregledniku" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Slå animationer af nye arbejdsområder til/fra" + "value": "Links: Åbn i cmux-browser" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Animationen neuer Arbeitsbereiche ein/aus" + "value": "Links: In cmux-Browser öffnen" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Activar o desactivar animaciones de espacios de trabajo nuevos" + "value": "Enlaces: Abrir en el navegador de cmux" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Activer/désactiver les animations des nouveaux espaces de travail" + "value": "Liens : Ouvrir dans le navigateur cmux" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Attiva/disattiva animazioni dei nuovi spazi di lavoro" + "value": "Link: Apri nel browser di cmux" + } + }, + "ja": { + "stringUnit": { + "state": "needs_review", + "value": "リンク: cmux ブラウザで開く" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "បិទ/បើកចលនាកន្លែងធ្វើការថ្មី" + "value": "តំណ៖ បើកក្នុងកម្មវិធីរុករក cmux" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "새 작업 공간 애니메이션 전환" + "value": "링크: cmux 브라우저에서 열기" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Slå animasjoner av nye arbeidsområder av/på" + "value": "Lenker: Åpne i cmux-nettleser" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Przełącz animacje nowych obszarów roboczych" + "value": "Linki: Otwieraj w przeglądarce cmux" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Alternar animações de novos espaços de trabalho" + "value": "Links: Abrir no navegador do cmux" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Переключить анимацию новых рабочих пространств" + "value": "Ссылки: открывать в браузере cmux" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "สลับภาพเคลื่อนไหวพื้นที่ทำงานใหม่" + "value": "ลิงก์: เปิดในเบราว์เซอร์ cmux" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Yeni çalışma alanı animasyonlarını aç/kapat" + "value": "Bağlantılar: cmux Tarayıcısında Aç" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Перемкнути анімацію нових робочих просторів" + "value": "Посилання: відкривати в браузері cmux" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Bật/tắt hiệu ứng không gian làm việc mới" + "value": "Liên kết: Mở trong trình duyệt cmux" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "切换新工作区动画" + "value": "链接:在 cmux 浏览器中打开" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "切換新工作區動畫" + "value": "連結:在 cmux 瀏覽器中開啟" } } } }, - "action.appearance.animations.bounce.subtle": { + "action.links.openInDefaultBrowser": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Use Bouncy Animations" - } - }, - "ja": { - "stringUnit": { - "state": "needs_review", - "value": "弾むアニメーションを使用" + "value": "Links: Open in Default Browser" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "استخدام حركة مرتدة" + "value": "الروابط: فتح في المتصفح الافتراضي" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Koristi animacije s odskokom" + "value": "Linkovi: Otvori u zadanom pregledniku" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Brug fjedrende animationer" + "value": "Links: Åbn i standardbrowser" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Federnde Animationen verwenden" + "value": "Links: Im Standardbrowser öffnen" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Usar animaciones con rebote" + "value": "Enlaces: Abrir en el navegador predeterminado" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Utiliser des animations avec rebond" + "value": "Liens : Ouvrir dans le navigateur par défaut" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Usa animazioni con rimbalzo" + "value": "Link: Apri nel browser predefinito" + } + }, + "ja": { + "stringUnit": { + "state": "needs_review", + "value": "リンク: デフォルトのブラウザで開く" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "ប្រើចលនាលោត" + "value": "តំណ៖ បើកក្នុងកម្មវិធីរុករកលំនាំដើម" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "통통 튀는 애니메이션 사용" + "value": "링크: 기본 브라우저에서 열기" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Bruk fjærende animasjoner" + "value": "Lenker: Åpne i standardnettleser" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Używaj animacji z odbiciem" + "value": "Linki: Otwieraj w domyślnej przeglądarce" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Usar animações com quique" + "value": "Links: Abrir no navegador padrão" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Использовать пружинистую анимацию" + "value": "Ссылки: открывать в браузере по умолчанию" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ใช้ภาพเคลื่อนไหวแบบเด้ง" + "value": "ลิงก์: เปิดในเบราว์เซอร์เริ่มต้น" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Sekmeli animasyonlar kullan" + "value": "Bağlantılar: Varsayılan Tarayıcıda Aç" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Використовувати пружну анімацію" + "value": "Посилання: відкривати в типовому браузері" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Dùng hiệu ứng có độ nảy" + "value": "Liên kết: Mở trong trình duyệt mặc định" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "使用弹跳动画" + "value": "链接:在默认浏览器中打开" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "使用彈跳動畫" + "value": "連結:在預設瀏覽器中開啟" } } } }, - "action.appearance.animations.bounce.none": { + "action.browserFit": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Use Animations Without Bounce" + "value": "Fit as Desktop…" } }, "ja": { "stringUnit": { - "state": "needs_review", - "value": "弾まないアニメーションを使用" + "state": "translated", + "value": "デスクトップ表示に合わせる…" } }, "ar": { "stringUnit": { "state": "needs_review", - "value": "استخدام حركة بلا ارتداد" + "value": "ملاءمة كسطح مكتب…" } }, "bs": { "stringUnit": { "state": "needs_review", - "value": "Koristi animacije bez odskoka" + "value": "Prilagodi kao desktop…" } }, "da": { "stringUnit": { "state": "needs_review", - "value": "Brug animationer uden fjedring" + "value": "Tilpas som skrivebord…" } }, "de": { "stringUnit": { "state": "needs_review", - "value": "Animationen ohne Federn verwenden" + "value": "Als Desktop einpassen …" } }, "es": { "stringUnit": { "state": "needs_review", - "value": "Usar animaciones sin rebote" + "value": "Ajustar como escritorio…" } }, "fr": { "stringUnit": { "state": "needs_review", - "value": "Utiliser des animations sans rebond" + "value": "Ajuster en bureau…" } }, "it": { "stringUnit": { "state": "needs_review", - "value": "Usa animazioni senza rimbalzo" + "value": "Adatta come desktop…" } }, "km": { "stringUnit": { "state": "needs_review", - "value": "ប្រើចលនាគ្មានការលោត" + "value": "សមជាផ្ទៃតុ…" } }, "ko": { "stringUnit": { "state": "needs_review", - "value": "바운스 없는 애니메이션 사용" + "value": "데스크톱에 맞추기…" } }, "nb": { "stringUnit": { "state": "needs_review", - "value": "Bruk animasjoner uten fjæring" + "value": "Tilpass som skrivebord…" } }, "pl": { "stringUnit": { "state": "needs_review", - "value": "Używaj animacji bez odbicia" + "value": "Dopasuj jako pulpit…" } }, "pt-BR": { "stringUnit": { "state": "needs_review", - "value": "Usar animações sem quique" + "value": "Ajustar como desktop…" } }, "ru": { "stringUnit": { "state": "needs_review", - "value": "Использовать анимацию без отскока" + "value": "Вписать как рабочий стол…" } }, "th": { "stringUnit": { "state": "needs_review", - "value": "ใช้ภาพเคลื่อนไหวแบบไม่เด้ง" + "value": "พอดีแบบเดสก์ท็อป…" } }, "tr": { "stringUnit": { "state": "needs_review", - "value": "Sekmesiz animasyonlar kullan" + "value": "Masaüstü Olarak Sığdır…" } }, "uk": { "stringUnit": { "state": "needs_review", - "value": "Використовувати анімацію без відскоку" + "value": "Вмістити як робочий стіл…" } }, "vi": { "stringUnit": { "state": "needs_review", - "value": "Dùng hiệu ứng không nảy" + "value": "Vừa khít như màn hình máy tính…" } }, "zh-Hans": { "stringUnit": { "state": "needs_review", - "value": "使用无弹跳动画" + "value": "适配为桌面…" } }, "zh-Hant": { "stringUnit": { "state": "needs_review", - "value": "使用無彈跳動畫" + "value": "調整為桌面…" } } } diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextActions/Catalog/AgentActionCatalog.swift b/Packages/macOS/CmuxNext/Sources/CmuxNextActions/Catalog/AgentActionCatalog.swift index 0abbc88798ad..016e37c54f21 100644 --- a/Packages/macOS/CmuxNext/Sources/CmuxNextActions/Catalog/AgentActionCatalog.swift +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextActions/Catalog/AgentActionCatalog.swift @@ -202,27 +202,6 @@ nonisolated enum AgentActionCatalog: ActionCatalogGroup { // unset. The command palette's chats page lists every chat. category: .agents, symbol: "magnifyingglass", surfaces: [.palette, .keyboard] ), - // Previous Turn and Next Turn step the agent chat's transcript from prompt to prompt, as the - // thread minimap's ticks do (cx-f7c). The page handles them; a script reads the transcript instead. - // Ctrl-Opt arrows: Ctrl-Cmd arrows are the pane-resize aliases (KeyBindingDefaults). - ActionDescriptor( - id: "agentPane.previousTurn", - title: String(localized: "action.agentPane.previousTurn", defaultValue: "Previous Turn", bundle: .module), - keywords: ["agent", "chat", "turn", "prompt", "message", "previous", "up", "minimap"], - defaultShortcut: Shortcut(Shortcut.upArrowKey, modifiers: [.control, .option]), - category: .agents, symbol: "chevron.up", surfaces: [.palette, .keyboard], - requires: [.agentPaneFocused], targets: [.pane], - surfacePlan: ActionSurfacePlan(cli: .exempt(.guiOnly), contextMenuExemption: .guiOnly) - ), - ActionDescriptor( - id: "agentPane.nextTurn", - title: String(localized: "action.agentPane.nextTurn", defaultValue: "Next Turn", bundle: .module), - keywords: ["agent", "chat", "turn", "prompt", "message", "next", "down", "minimap"], - defaultShortcut: Shortcut(Shortcut.downArrowKey, modifiers: [.control, .option]), - category: .agents, symbol: "chevron.down", surfaces: [.palette, .keyboard], - requires: [.agentPaneFocused], targets: [.pane], - surfacePlan: ActionSurfacePlan(cli: .exempt(.guiOnly), contextMenuExemption: .guiOnly) - ), permissionAction("allowOnce", title: String(localized: "action.agentPane.permission.allowOnce", defaultValue: "Allow Once", bundle: .module), symbol: "checkmark", shortcut: Shortcut("1", modifiers: [.command, .option])), permissionAction("allowChat", title: String(localized: "action.agentPane.permission.allowChat", defaultValue: "Allow for This Chat", bundle: .module), symbol: "checkmark.circle", shortcut: Shortcut("2", modifiers: [.command, .option])), permissionAction("deny", title: String(localized: "action.agentPane.permission.deny", defaultValue: "Deny", bundle: .module), symbol: "xmark", shortcut: Shortcut("3", modifiers: [.command, .option])), diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextActions/Catalog/AgentTranscriptActionCatalog.swift b/Packages/macOS/CmuxNext/Sources/CmuxNextActions/Catalog/AgentTranscriptActionCatalog.swift new file mode 100644 index 000000000000..7d4c5e99e6e1 --- /dev/null +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextActions/Catalog/AgentTranscriptActionCatalog.swift @@ -0,0 +1,49 @@ +// Catalog rows for stepping an agent chat's transcript from prompt to prompt. Titles live in +// ActionCatalog.xcstrings. The app binds them by AgentTranscriptStep (CmuxNextAgentPane), which sends +// each to the page as its own command. + +nonisolated enum AgentTranscriptActionCatalog: ActionCatalogGroup { + static func descriptors() -> [ActionDescriptor] { + [ + // Previous Turn and Next Turn step the agent chat's transcript from prompt to prompt, as the + // thread minimap's ticks do (cx-f7c). The page handles them; a script reads the transcript instead. + // Ctrl-Opt arrows: Ctrl-Cmd arrows are the pane-resize aliases (KeyBindingDefaults). + ActionDescriptor( + id: "agentPane.previousTurn", + title: String(localized: "action.agentPane.previousTurn", defaultValue: "Previous Turn", bundle: .module), + keywords: ["agent", "chat", "turn", "prompt", "message", "previous", "up", "minimap"], + defaultShortcut: Shortcut(Shortcut.upArrowKey, modifiers: [.control, .option]), + category: .agents, symbol: "chevron.up", surfaces: [.palette, .keyboard], + requires: [.agentPaneFocused], targets: [.pane], + surfacePlan: ActionSurfacePlan(cli: .exempt(.guiOnly), contextMenuExemption: .guiOnly) + ), + ActionDescriptor( + id: "agentPane.nextTurn", + title: String(localized: "action.agentPane.nextTurn", defaultValue: "Next Turn", bundle: .module), + keywords: ["agent", "chat", "turn", "prompt", "message", "next", "down", "minimap"], + defaultShortcut: Shortcut(Shortcut.downArrowKey, modifiers: [.control, .option]), + category: .agents, symbol: "chevron.down", surfaces: [.palette, .keyboard], + requires: [.agentPaneFocused], targets: [.pane], + surfacePlan: ActionSurfacePlan(cli: .exempt(.guiOnly), contextMenuExemption: .guiOnly) + ), + // Previous and Next Bookmarked Prompt step to the prompts bookmarked in the thread minimap or + // on their rows. Palette only: no default key (a default key needs a design call). + ActionDescriptor( + id: "agentPane.previousBookmarkedPrompt", + title: String(localized: "action.agentPane.previousBookmarkedPrompt", defaultValue: "Previous Bookmarked Prompt", bundle: .module), + keywords: ["agent", "chat", "bookmark", "bookmarked", "prompt", "turn", "previous", "minimap"], + category: .agents, symbol: "bookmark", surfaces: [.palette, .keyboard], + requires: [.agentPaneFocused], targets: [.pane], + surfacePlan: ActionSurfacePlan(cli: .exempt(.guiOnly), contextMenuExemption: .guiOnly) + ), + ActionDescriptor( + id: "agentPane.nextBookmarkedPrompt", + title: String(localized: "action.agentPane.nextBookmarkedPrompt", defaultValue: "Next Bookmarked Prompt", bundle: .module), + keywords: ["agent", "chat", "bookmark", "bookmarked", "prompt", "turn", "next", "minimap"], + category: .agents, symbol: "bookmark.fill", surfaces: [.palette, .keyboard], + requires: [.agentPaneFocused], targets: [.pane], + surfacePlan: ActionSurfacePlan(cli: .exempt(.guiOnly), contextMenuExemption: .guiOnly) + ), + ] + } +} diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/AgentPaneView+Commands.swift b/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/AgentPaneView+Commands.swift index a53dd453798d..c111d64234c5 100644 --- a/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/AgentPaneView+Commands.swift +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/AgentPaneView+Commands.swift @@ -21,9 +21,9 @@ extension AgentPaneView { } /// Palette and page buttons enter the same inline checkpoint review. public func showCreateCheckpoint() { if model.checkpointAvailable { send("createCheckpoint") } } - /// Previous Turn and Next Turn (Ctrl-Opt-Up, Ctrl-Opt-Down): the page steps its transcript to the - /// prompt before or after the one being read, as the thread minimap's ticks do (cx-f7c). - public func stepTurn(forward: Bool) { send(forward ? "nextTurn" : "previousTurn") } + /// Previous and Next Turn (Ctrl-Opt-Up, Ctrl-Opt-Down) and Previous and Next Bookmarked Prompt + /// (palette only): the page steps its transcript to that prompt, as the thread minimap does. + public func step(_ step: AgentTranscriptStep) { send(step.pageCommand) } /// Runs a grouped-permission action from the app shortcut registry. The /// page keeps the decision scoped to its selected session and refuses /// stale, collecting, or unavailable groups before sending anything. diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/AgentTranscriptStep.swift b/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/AgentTranscriptStep.swift new file mode 100644 index 000000000000..6ef38e48cb72 --- /dev/null +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/AgentTranscriptStep.swift @@ -0,0 +1,12 @@ +/// The agent chat's transcript steps: each is a catalog action (``actionID``) the app binds to the +/// focused chat, and a page command (``pageCommand``) the page turns into the window event its +/// thread minimap handles (App.tsx `command`). +public nonisolated enum AgentTranscriptStep: String, CaseIterable, Sendable { + /// Ctrl-Opt-Up and Ctrl-Opt-Down: the prompt before or after the one being read (cx-f7c). + case previousTurn, nextTurn + /// No default key: the bookmarked prompt before or after the one being read. + case previousBookmarkedPrompt, nextBookmarkedPrompt + + public var actionID: String { "agentPane.\(rawValue)" } + public var pageCommand: String { rawValue } +} diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextApp/Control/DebugAgentPane.swift b/Packages/macOS/CmuxNext/Sources/CmuxNextApp/Control/DebugAgentPane.swift index b1ee68025674..511ad3367ce7 100644 --- a/Packages/macOS/CmuxNext/Sources/CmuxNextApp/Control/DebugAgentPane.swift +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextApp/Control/DebugAgentPane.swift @@ -14,7 +14,8 @@ import WebKit /// the page to the menu's button, as a click does. /// /// `action`: `seed_rows` (`count`, default 5000; `fixture: "worked-turn"` -/// seeds a turn that edits three files instead, for the changes view), `fling` (`seconds`, +/// seeds a turn that edits three files instead, for the changes view, and `"short"` one-line +/// turns answered "ok N", for the thread minimap's density), `fling` (`seconds`, /// default 3; `nominal_ms`; `wait` returns the stats when the fling ends), /// `fling_stats`, `perf_stats` (`raw` adds every frame), `load_seed` (`turns`, default 5000: /// a mock session of heavy turns opened through the real client; needs `--showcase`'s mock diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextApp/Handlers/AgentHandlers.swift b/Packages/macOS/CmuxNext/Sources/CmuxNextApp/Handlers/AgentHandlers.swift index 61e6c8f798d1..0347b966450b 100644 --- a/Packages/macOS/CmuxNext/Sources/CmuxNextApp/Handlers/AgentHandlers.swift +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextApp/Handlers/AgentHandlers.swift @@ -120,15 +120,14 @@ enum AgentHandlers { view.runPermissionAction(command, byPerson: invocation.origin == .user) }) } - // Previous Turn and Next Turn step the agent chat's transcript from prompt to prompt (cx-f7c). - let turnSteps: [(ActionID, Bool)] = [("agentPane.previousTurn", false), ("agentPane.nextTurn", true)] - for (id, forward) in turnSteps { - registry.bind(id, run: { invocation in + // Previous and Next Turn and Bookmarked Prompt step the agent chat's transcript (cx-f7c). + for step in AgentTranscriptStep.allCases { + registry.bind(ActionID(rawValue: step.actionID), run: { invocation in guard let pane = context.scope(invocation).pane, let key = pane.currentTabKey, let view = context.services.agentTabs.existingView(key) else { return context.refuse(MiscHandlerStrings.noAgentChat) } - view.stepTurn(forward: forward) + view.step(step) }) } // Continue in… is a user-facing chooser. Headless callers use the diff --git a/Packages/macOS/CmuxNext/Tests/CmuxNextAgentPaneTests/AgentPaneTranscriptStepTests.swift b/Packages/macOS/CmuxNext/Tests/CmuxNextAgentPaneTests/AgentPaneTranscriptStepTests.swift new file mode 100644 index 000000000000..c80a75192bdd --- /dev/null +++ b/Packages/macOS/CmuxNext/Tests/CmuxNextAgentPaneTests/AgentPaneTranscriptStepTests.swift @@ -0,0 +1,66 @@ +import AppKit +import CmuxNextActions +import CmuxNextPages +import CmuxNextSettings +import Foundation +import Testing +@testable import CmuxNextAgentPane + +/// The agent chat's transcript steps at the action boundary: Previous Turn and Next Turn keep their +/// Ctrl-Opt arrow keys, and Previous and Next Bookmarked Prompt are command palette actions with no +/// default key. Each step reaches the page as its own command, which the page turns into the window +/// event the thread minimap handles (App.tsx `command`, ThreadMinimap.tsx). +@Suite(.serialized) +@MainActor +struct AgentPaneTranscriptStepTests { + private actor NoHost: AgentPaneHostProviding { + func handshake(sessionId: String?) async throws -> AgentPaneHandshake { throw AgentPaneHostError.daemonStopped } + } + + /// Collects the host events a subscribed page receives. + private final class Received { + var events: [JSONValue] = [] + } + + @Test func bookmarkStepsArePaletteActionsWithNoDefaultKey() throws { + for id in ["agentPane.previousBookmarkedPrompt", "agentPane.nextBookmarkedPrompt"] { + let descriptor = try #require(ActionCatalog.all.first { $0.id.rawValue == id }, "\(id) is not in the catalog") + #expect(descriptor.defaultShortcut == nil, "\(id) has a default key") + #expect(descriptor.surfaces.contains(.palette), "\(id) is not in the command palette") + #expect(descriptor.requires.contains(.agentPaneFocused)) + } + // The turn steps keep their keys. + for id in ["agentPane.previousTurn", "agentPane.nextTurn"] { + let descriptor = try #require(ActionCatalog.all.first { $0.id.rawValue == id }) + #expect(descriptor.defaultShortcut?.modifiers == [.control, .option]) + } + // Every step is a catalog action the app binds by its id. + for step in AgentTranscriptStep.allCases { + #expect(ActionCatalog.all.contains { $0.id.rawValue == step.actionID }, "\(step.actionID) is not in the catalog") + } + } + + @Test func eachStepSendsItsPageCommand() async throws { + let directory = FileManager.default.temporaryDirectory.appending(path: "transcript-step-\(UUID().uuidString)") + try FileManager.default.createDirectory(at: directory, withIntermediateDirectories: true) + defer { try? FileManager.default.removeItem(at: directory) } + let file = directory.appending(path: "index.html") + try Data("".utf8).write(to: file) + let view = try #require(AgentPaneView(model: AgentPaneModel(host: NoHost()), source: .bundled(file), pageHost: true)) + let provider = try #require(view.pageEvents, "the shared page host has no event stream") + let received = Received() + let subscription = try await provider.subscribe( + AgentPageProvider.hostEvents, filter: .null, context: PageCallContext(page: PageDescriptor.agent.id) + ) { event in received.events.append(event) } + defer { subscription.cancel() } + + for step in AgentTranscriptStep.allCases { view.step(step) } + let commands = received.events.filter { $0["kind"] == .string("command") } + #expect(commands == [ + AgentPageEvent.command("previousTurn").data, + AgentPageEvent.command("nextTurn").data, + AgentPageEvent.command("previousBookmarkedPrompt").data, + AgentPageEvent.command("nextBookmarkedPrompt").data, + ]) + } +} diff --git a/Packages/macOS/CmuxNext/ci-target-graph.json b/Packages/macOS/CmuxNext/ci-target-graph.json index ce4d16183480..5ee3a31f35aa 100644 --- a/Packages/macOS/CmuxNext/ci-target-graph.json +++ b/Packages/macOS/CmuxNext/ci-target-graph.json @@ -268,6 +268,7 @@ "CmuxNextDaemonRecovery", "CmuxNextDaemonService", "CmuxNextDiff", + "CmuxNextFeed", "CmuxNextFileGrid", "CmuxNextFloating", "CmuxNextFocus", diff --git a/plans/cmux-next/action-surfaces.json b/plans/cmux-next/action-surfaces.json index 3d86609d51fa..29db47c8a41c 100644 --- a/plans/cmux-next/action-surfaces.json +++ b/plans/cmux-next/action-surfaces.json @@ -7221,9 +7221,9 @@ "title_table" : "ActionCatalog" }, { - "cli" : "unimplemented", + "cli" : "offered", "cli_name" : "pane open-cloud-as", - "context_menu" : "unimplemented", + "context_menu" : "noObject", "context_menus" : [ ], @@ -7233,8 +7233,8 @@ "default_chord" : null, "default_shortcut" : null, "id" : "palette.openCloudPane", - "main_menu" : null, - "mcp" : "unimplemented", + "main_menu" : "window", + "mcp" : "offered", "palette" : "offered", "palette_section" : { "id" : "category.pane", @@ -13378,9 +13378,9 @@ { "cli" : "guiOnly", "cli_name" : "browser toggle-react-grab", - "context_menu" : "offered", + "context_menu" : "unimplemented", "context_menus" : [ - "browserPage" + ], "default_aliases" : [ @@ -19368,74 +19368,6 @@ "title_key" : "action.agentPane.searchChats", "title_table" : "ActionCatalog" }, - { - "cli" : "guiOnly", - "cli_name" : "action agent-pane-previous-turn", - "context_menu" : "guiOnly", - "context_menus" : [ - - ], - "default_aliases" : [ - - ], - "default_chord" : null, - "default_shortcut" : { - "key" : "", - "modifiers" : [ - "ctrl", - "opt" - ] - }, - "id" : "agentPane.previousTurn", - "main_menu" : null, - "mcp" : "guiOnly", - "palette" : "offered", - "palette_section" : { - "id" : "category.agents", - "order" : 109, - "title" : "Agents", - "title_key" : "category.agents", - "title_table" : "Localizable" - }, - "palette_suggested" : null, - "title" : "Previous Turn", - "title_key" : "action.agentPane.previousTurn", - "title_table" : "ActionCatalog" - }, - { - "cli" : "guiOnly", - "cli_name" : "action agent-pane-next-turn", - "context_menu" : "guiOnly", - "context_menus" : [ - - ], - "default_aliases" : [ - - ], - "default_chord" : null, - "default_shortcut" : { - "key" : "", - "modifiers" : [ - "ctrl", - "opt" - ] - }, - "id" : "agentPane.nextTurn", - "main_menu" : null, - "mcp" : "guiOnly", - "palette" : "offered", - "palette_section" : { - "id" : "category.agents", - "order" : 109, - "title" : "Agents", - "title_key" : "category.agents", - "title_table" : "Localizable" - }, - "palette_suggested" : null, - "title" : "Next Turn", - "title_key" : "action.agentPane.nextTurn", - "title_table" : "ActionCatalog" - }, { "cli" : "guiOnly", "cli_name" : "action agent-pane-permission-allow-once", @@ -20216,6 +20148,130 @@ "title_key" : "action.computerUseStop", "title_table" : "ActionCatalog" }, + { + "cli" : "guiOnly", + "cli_name" : "action agent-pane-previous-turn", + "context_menu" : "guiOnly", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : { + "key" : "", + "modifiers" : [ + "ctrl", + "opt" + ] + }, + "id" : "agentPane.previousTurn", + "main_menu" : null, + "mcp" : "guiOnly", + "palette" : "offered", + "palette_section" : { + "id" : "category.agents", + "order" : 109, + "title" : "Agents", + "title_key" : "category.agents", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Previous Turn", + "title_key" : "action.agentPane.previousTurn", + "title_table" : "ActionCatalog" + }, + { + "cli" : "guiOnly", + "cli_name" : "action agent-pane-next-turn", + "context_menu" : "guiOnly", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : { + "key" : "", + "modifiers" : [ + "ctrl", + "opt" + ] + }, + "id" : "agentPane.nextTurn", + "main_menu" : null, + "mcp" : "guiOnly", + "palette" : "offered", + "palette_section" : { + "id" : "category.agents", + "order" : 109, + "title" : "Agents", + "title_key" : "category.agents", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Next Turn", + "title_key" : "action.agentPane.nextTurn", + "title_table" : "ActionCatalog" + }, + { + "cli" : "guiOnly", + "cli_name" : "action agent-pane-previous-bookmarked-prompt", + "context_menu" : "guiOnly", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "agentPane.previousBookmarkedPrompt", + "main_menu" : null, + "mcp" : "guiOnly", + "palette" : "offered", + "palette_section" : { + "id" : "category.agents", + "order" : 109, + "title" : "Agents", + "title_key" : "category.agents", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Previous Bookmarked Prompt", + "title_key" : "action.agentPane.previousBookmarkedPrompt", + "title_table" : "ActionCatalog" + }, + { + "cli" : "guiOnly", + "cli_name" : "action agent-pane-next-bookmarked-prompt", + "context_menu" : "guiOnly", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "agentPane.nextBookmarkedPrompt", + "main_menu" : null, + "mcp" : "guiOnly", + "palette" : "offered", + "palette_section" : { + "id" : "category.agents", + "order" : 109, + "title" : "Agents", + "title_key" : "category.agents", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Next Bookmarked Prompt", + "title_key" : "action.agentPane.nextBookmarkedPrompt", + "title_table" : "ActionCatalog" + }, { "cli" : "clipboard", "cli_name" : "action agent-chat-copy-identifier", @@ -21718,7 +21774,7 @@ "title_table" : "ActionCatalog" }, { - "cli" : "offered", + "cli" : "guiOnly", "cli_name" : "cloud open-mobile-pairing", "context_menu" : "noObject", "context_menus" : [ @@ -21730,8 +21786,8 @@ "default_chord" : null, "default_shortcut" : null, "id" : "palette.mobileConnect", - "main_menu" : "window", - "mcp" : "offered", + "main_menu" : null, + "mcp" : "guiOnly", "palette" : "offered", "palette_section" : { "id" : "category.cloud", @@ -26314,90 +26370,230 @@ }, { "cli" : "offered", - "cli_name" : "bookmark add-page", + "cli_name" : "media play-pause", "context_menu" : "offered", "context_menus" : [ - "browserPage", - "bookmark", - "bookmarksBar" + "nowPlayingCard" ], "default_aliases" : [ ], "default_chord" : null, "default_shortcut" : null, - "id" : "bookmark.addPage", - "main_menu" : "view", + "id" : "nowPlaying.playPause", + "main_menu" : null, "mcp" : "offered", "palette" : "offered", "palette_section" : { - "id" : "category.browser", - "order" : 106, - "title" : "Browser and Viewers", - "title_key" : "category.browser", + "id" : "category.window", + "order" : 100, + "title" : "Window", + "title_key" : "category.window", "title_table" : "Localizable" }, "palette_suggested" : null, - "title" : "Bookmark This Page", - "title_key" : "action.bookmark.addPage", - "title_table" : "BookmarkActions" + "title" : "Play\/Pause Media", + "title_key" : "action.nowPlaying.playPause", + "title_table" : "MusicActions" }, { "cli" : "offered", - "cli_name" : "bookmark add-all-tabs", + "cli_name" : "media hide-card", "context_menu" : "offered", "context_menus" : [ - "bookmarksBar", - "bookmark" + "nowPlayingCard" ], "default_aliases" : [ ], "default_chord" : null, "default_shortcut" : null, - "id" : "bookmark.addAllTabs", - "main_menu" : "view", + "id" : "nowPlaying.hideCard", + "main_menu" : null, "mcp" : "offered", "palette" : "offered", "palette_section" : { - "id" : "category.browser", - "order" : 106, - "title" : "Browser and Viewers", - "title_key" : "category.browser", + "id" : "category.window", + "order" : 100, + "title" : "Window", + "title_key" : "category.window", "title_table" : "Localizable" }, "palette_suggested" : null, - "title" : "Bookmark All Tabs…", - "title_key" : "action.bookmark.addAllTabs", - "title_table" : "BookmarkActions" + "title" : "Hide Media Card", + "title_key" : "action.nowPlaying.hideCard", + "title_table" : "MusicActions" }, { "cli" : "offered", - "cli_name" : "bookmark add", - "context_menu" : "noObject", + "cli_name" : "media hide-card-until-relaunch", + "context_menu" : "offered", "context_menus" : [ - + "nowPlayingCard" ], "default_aliases" : [ ], "default_chord" : null, "default_shortcut" : null, - "id" : "bookmark.add", + "id" : "nowPlaying.hideCardUntilRelaunch", "main_menu" : null, "mcp" : "offered", "palette" : "offered", "palette_section" : { - "id" : "category.browser", - "order" : 106, - "title" : "Browser and Viewers", - "title_key" : "category.browser", + "id" : "category.window", + "order" : 100, + "title" : "Window", + "title_key" : "category.window", "title_table" : "Localizable" }, "palette_suggested" : null, - "title" : "Add Bookmark…", - "title_key" : "action.bookmark.add", - "title_table" : "BookmarkActions" + "title" : "Hide Media Card Until Relaunch", + "title_key" : "action.nowPlaying.hideCardUntilRelaunch", + "title_table" : "MusicActions" + }, + { + "cli" : "offered", + "cli_name" : "media disable-card", + "context_menu" : "offered", + "context_menus" : [ + "nowPlayingCard" + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "nowPlaying.disableCard", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.settings", + "order" : 112, + "title" : "Settings and Help", + "title_key" : "category.settings", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Never Show Media Card", + "title_key" : "action.nowPlaying.disableCard", + "title_table" : "MusicActions" + }, + { + "cli" : "offered", + "cli_name" : "media show-card", + "context_menu" : "offered", + "context_menus" : [ + "sidebarFooter" + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "nowPlaying.showCard", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.settings", + "order" : 112, + "title" : "Settings and Help", + "title_key" : "category.settings", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Show Media Card", + "title_key" : "action.nowPlaying.showCard", + "title_table" : "MusicActions" + }, + { + "cli" : "offered", + "cli_name" : "bookmark add-page", + "context_menu" : "offered", + "context_menus" : [ + "browserPage", + "bookmark", + "bookmarksBar" + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "bookmark.addPage", + "main_menu" : "view", + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Bookmark This Page", + "title_key" : "action.bookmark.addPage", + "title_table" : "BookmarkActions" + }, + { + "cli" : "offered", + "cli_name" : "bookmark add-all-tabs", + "context_menu" : "offered", + "context_menus" : [ + "bookmarksBar", + "bookmark" + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "bookmark.addAllTabs", + "main_menu" : "view", + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Bookmark All Tabs…", + "title_key" : "action.bookmark.addAllTabs", + "title_table" : "BookmarkActions" + }, + { + "cli" : "offered", + "cli_name" : "bookmark add", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "bookmark.add", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Add Bookmark…", + "title_key" : "action.bookmark.add", + "title_table" : "BookmarkActions" }, { "cli" : "offered", @@ -28260,6 +28456,230 @@ "title_key" : "action.tasks.showMine", "title_table" : "TasksActions" }, + { + "cli" : "offered", + "cli_name" : "phone open", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "phone.show", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Open Phone", + "title_key" : "action.phone.show", + "title_table" : "PhoneActions" + }, + { + "cli" : "offered", + "cli_name" : "phone boot", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "phone.boot", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Boot Phone", + "title_key" : "action.phone.boot", + "title_table" : "PhoneActions" + }, + { + "cli" : "offered", + "cli_name" : "phone screenshot", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "phone.screenshot", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Take Phone Screenshot", + "title_key" : "action.phone.screenshot", + "title_table" : "PhoneActions" + }, + { + "cli" : "offered", + "cli_name" : "phone record", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "phone.recordStart", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Record Phone", + "title_key" : "action.phone.recordStart", + "title_table" : "PhoneActions" + }, + { + "cli" : "offered", + "cli_name" : "phone stop", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "phone.recordStop", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Stop Phone Recording", + "title_key" : "action.phone.recordStop", + "title_table" : "PhoneActions" + }, + { + "cli" : "offered", + "cli_name" : "phone feedback", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "phone.sendFeedback", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Send Phone Recording to Chief", + "title_key" : "action.phone.sendFeedback", + "title_table" : "PhoneActions" + }, + { + "cli" : "offered", + "cli_name" : "phone open-url", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "phone.openURL", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Open URL on Phone", + "title_key" : "action.phone.openURL", + "title_table" : "PhoneActions" + }, + { + "cli" : "offered", + "cli_name" : "phone paste", + "context_menu" : "noObject", + "context_menus" : [ + + ], + "default_aliases" : [ + + ], + "default_chord" : null, + "default_shortcut" : null, + "id" : "phone.paste", + "main_menu" : null, + "mcp" : "offered", + "palette" : "offered", + "palette_section" : { + "id" : "category.browser", + "order" : 106, + "title" : "Browser and Viewers", + "title_key" : "category.browser", + "title_table" : "Localizable" + }, + "palette_suggested" : null, + "title" : "Copy Text to Phone", + "title_key" : "action.phone.paste", + "title_table" : "PhoneActions" + }, { "cli" : "offered", "cli_name" : "link open", @@ -30270,19 +30690,6 @@ "browserFocused" ] } - }, - { - "enabled_when" : "can_perform", - "id" : "toggleReactGrab", - "kind" : "action", - "order" : 2, - "visible_when" : { - "debug_only" : false, - "feature" : null, - "requires" : [ - "browserFocused" - ] - } } ], "folder" : "options", @@ -31698,6 +32105,76 @@ ] }, + "nowPlayingCard" : { + "entries" : [ + { + "enabled_when" : "can_perform", + "id" : "nowPlaying.playPause", + "kind" : "action", + "label" : "Play\/Pause", + "order" : 0, + "visible_when" : { + "debug_only" : false, + "feature" : null, + "requires" : [ + + ] + } + }, + { + "kind" : "separator", + "order" : 1 + }, + { + "enabled_when" : "can_perform", + "id" : "nowPlaying.hideCard", + "kind" : "action", + "label" : "Hide", + "order" : 2, + "visible_when" : { + "debug_only" : false, + "feature" : null, + "requires" : [ + + ] + } + }, + { + "enabled_when" : "can_perform", + "id" : "nowPlaying.hideCardUntilRelaunch", + "kind" : "action", + "label" : "Hide Until Relaunch", + "order" : 3, + "visible_when" : { + "debug_only" : false, + "feature" : null, + "requires" : [ + + ] + } + }, + { + "kind" : "separator", + "order" : 4 + }, + { + "enabled_when" : "can_perform", + "id" : "nowPlaying.disableCard", + "kind" : "action", + "order" : 5, + "visible_when" : { + "debug_only" : false, + "feature" : null, + "requires" : [ + + ] + } + } + ], + "implied" : [ + + ] + }, "pane" : { "entries" : [ { @@ -33870,6 +34347,19 @@ "feature" : null, "requires" : [ + ] + } + }, + { + "enabled_when" : "can_perform", + "id" : "nowPlaying.showCard", + "kind" : "action", + "order" : 2, + "visible_when" : { + "debug_only" : false, + "feature" : null, + "requires" : [ + ] } } diff --git a/plans/cmux-next/actions.md b/plans/cmux-next/actions.md index 58aa16838c69..d19dda9b9213 100644 --- a/plans/cmux-next/actions.md +++ b/plans/cmux-next/actions.md @@ -35,23 +35,23 @@ Declare its placements (menu, group, rank) and whether the CLI offers it, or nam ## Catalog counts -- `window`: 77 +- `window`: 80 - `workspace`: 156 - `pane`: 80 - `screen`: 65 - `tab`: 90 - `terminal`: 36 -- `browser`: 172 +- `browser`: 180 - `sidebar`: 75 - `notifications`: 21 -- `agents`: 60 +- `agents`: 62 - `cloud`: 52 - `remote`: 11 -- `settings`: 89 +- `settings`: 91 -## Counts (984 actions) +## Counts (999 actions) -Palette 948, CLI verbs 541, right-click 509, MCP tools 466. +Palette 963, CLI verbs 555, right-click 513, MCP tools 480. ## Menus @@ -64,7 +64,7 @@ Palette 948, CLI verbs 541, right-click 509, MCP tools 466. - **workspaceGroup**: workspaceGroup.newWorkspace workspaceGroup.duplicate | workspaceGroup.rename workspaceGroup.togglePin [appearance] > (workspaceGroup.setColor > (workspaceGroup.color.grey workspaceGroup.color.blue workspaceGroup.color.red workspaceGroup.color.yellow workspaceGroup.color.green workspaceGroup.color.pink workspaceGroup.color.purple workspaceGroup.color.cyan workspaceGroup.color.orange) workspaceGroup.setIcon workspaceGroup.clearIcon) [options] > (workspaceGroup.markRead workspaceGroup.markUnread workspaceGroup.clearNotifications) | toggleFocusedWorkspaceGroupCollapsed [group] > (workspaceGroup.collapseAll workspaceGroup.expandAll workspaceGroup.collapseOthers | workspaceGroup.sortByName workspaceGroup.sortByLastUsed workspaceGroup.sortByDirectory) | [move] > (workspaceGroup.moveToTop workspaceGroup.moveUp workspaceGroup.moveDown workspaceGroup.moveToBottom workspaceGroup.moveToNewWindow workspaceGroup.moveToWindow workspaceGroup.moveToSpace workspaceGroup.addToSection) | workspaceGroup.editConfig workspaceGroup.copyID | [close] > (workspaceGroup.ungroup workspaceGroup.closeWorkspaces workspaceGroup.delete workspaceGroup.closeOthers) - **sidebarBackground**: newTab newBrowserWorkspace openFolder newWorkspaceGroup [new] > (workspace.newAtTop workspace.newAtBottom workspace.newOnMachine space.new reopenClosedWorkspace reopenPreviousSession | newCloudWorkspace remote.connect | sidebar.home.add sidebar.item.add sidebar.section.add) | [options] > (sidebar.workspaceTabs.toggle palette.enableMinimalMode palette.disableMinimalMode sidebar.density.compact sidebar.density.comfortable sidebar.density.expanded | sidebar.layout.reset) | [group] > (workspaceGroup.collapseAll workspaceGroup.expandAll sidebar.groupBy.none sidebar.groupBy.folder) | [sort] > (workspace.sortByName workspace.sortByLastUsed workspace.sortByDirectory) | sidebar.projects.hide sidebar.sections.showHidden | toggleSidebar appStore.show - **terminalSelection**: terminalCopy terminalPaste terminal.selectAll useSelectionForFind terminal.sendText | [split] > (splitRight splitDown splitLeft splitUp) [agent] > (palette.forkAgentConversationRight palette.forkAgentConversationNewTab palette.forkAgentConversationLeft palette.forkAgentConversationTop palette.forkAgentConversationBottom palette.forkAgentConversationNewWorkspace) | [options] > (clearScreenKeepScrollback resetTerminal terminal.clear) | toggleSplitZoom | palette.terminalOpenDirectory -- **browserPage**: browserBack browserForward browserReload browserHardReload browser.copyURL browser.openLocally | browserTheme[choices] [options] > (toggleBrowserFocusMode toggleBrowserDesignMode toggleReactGrab) | browserPrint | bookmark.addPage | toggleBrowserDeveloperTools [tools] > (palette.browserOpenDefault browserScreenshotPage browserScreenshotSection browserDevice browserFitDesktop browserFitDesktop1280 browserFit[choices] | browser.pageInfo > (browser.pageInfo browser.pageInfo.connection browser.pageInfo.certificate browser.pageInfo.reenableCertificateWarnings | browser.pageInfo.setPermission browser.pageInfo.resetPermissions | browser.pageInfo.cookies browser.pageInfo.manageSiteData browser.pageInfo.deleteSiteData | browser.pageInfo.siteSettings browser.pageInfo.aboutThisPage) showBrowserJavaScriptConsole inspectBrowserElement | browser.extensions.menu browser.extensions.manage browser.extensions.webStore browser.extensions.loadUnpacked) +- **browserPage**: browserBack browserForward browserReload browserHardReload browser.copyURL browser.openLocally | browserTheme[choices] [options] > (toggleBrowserFocusMode toggleBrowserDesignMode) | browserPrint | bookmark.addPage | toggleBrowserDeveloperTools [tools] > (palette.browserOpenDefault browserScreenshotPage browserScreenshotSection browserDevice browserFitDesktop browserFitDesktop1280 browserFit[choices] | browser.pageInfo > (browser.pageInfo browser.pageInfo.connection browser.pageInfo.certificate browser.pageInfo.reenableCertificateWarnings | browser.pageInfo.setPermission browser.pageInfo.resetPermissions | browser.pageInfo.cookies browser.pageInfo.manageSiteData browser.pageInfo.deleteSiteData | browser.pageInfo.siteSettings browser.pageInfo.aboutThisPage) showBrowserJavaScriptConsole inspectBrowserElement | browser.extensions.menu browser.extensions.manage browser.extensions.webStore browser.extensions.loadUnpacked) - **browserLink**: browser.link.openInNewTab browser.link.openInNewWindow browser.link.openInNewSpace browser.link.openInNewWorkspace browser.link.openInSplit openLinkInDefaultBrowser | browser.link.openInIncognitoWindow | browser.link.saveAs browser.link.copy browser.link.copyText - **browserImage**: browser.image.openInNewTab | browser.image.saveAs browser.image.copy browser.image.copyAddress - **browserSelection**: browser.selection.copy | browser.selection.search browser.selection.lookUp @@ -79,10 +79,11 @@ Palette 948, CLI verbs 541, right-click 509, MCP tools 466. - **screenBar**: screen.new screen.newWith screen.reopenClosed - **notification**: notificationOpen | notificationToggleRead | notificationCopy | notificationDismiss - **sidebarItem**: sidebar.item.toggleLabel | sidebar.profileControl.hide | sidebar.item.removeEverywhere sidebar.item.remove sidebar.item.hideApp -- **sidebarFooter**: sidebar.spaces.show sidebar.profileControl.show +- **sidebarFooter**: sidebar.spaces.show sidebar.profileControl.show nowPlaying.showCard - **sidebarSection**: sidebar.section.add sidebar.section.newWorkspace sidebar.item.add | sidebar.section.rename [appearance] > (sidebar.section.useBuiltInLook sidebar.section.useListLook sidebar.section.toggleTitle sidebar.section.layoutList sidebar.section.layoutInline sidebar.section.layoutGrid sidebar.section.setAlignment sidebar.section.setGap sidebar.section.setColumns) [options] > (sidebar.section.toggleSpaceScope sidebar.section.setMaxRows) | sidebar.section.toggleCollapsed | [move] > (sidebar.section.moveToTop sidebar.section.moveToScrolling sidebar.section.moveToBottom) | sidebar.section.hide | sidebar.section.remove sidebar.section.closeWorkspaces sidebar.item.hideApp - **agentChat**: appearance.changeBackground workspace.setTheme[choices] | cloudMove cloudBringBack | agentPaneZoomIn agentPaneZoomOut agentPaneZoomReset | find | agentPane.toggleInspector agentChat.copyIdentifier - **windowBackground**: appearance.changeBackground +- **nowPlayingCard**: nowPlaying.playPause | nowPlaying.hideCard nowPlaying.hideCardUntilRelaunch | nowPlaying.disableCard ## Exemptions: palette @@ -112,7 +113,7 @@ Palette 948, CLI verbs 541, right-click 509, MCP tools 466. **liveInput** (96): `taskManager.killProcess`, `toggleChecklistItemComplete`, `groupSelectedWorkspaces`, `canvasAlignLeft`, `canvasAlignRight`, `canvasAlignTop`, `canvasAlignBottom`, `canvasEqualizeWidths`, `canvasEqualizeHeights`, `canvasDistributeHorizontally`, `canvasDistributeVertically`, `simulatorHome`, `simulatorRotateLeft`, `simulatorRotateRight`, `simulatorToggleAppearance`, `simulatorToggleSoftwareKeyboard`, `toggleTerminalCopyMode`, `palette.terminalToggleTextBoxInput`, `cycleTextBoxSubmitAction`, `attachTextBoxFile`, `sendCtrlFToTerminal`, `pasteLastScreenshot`, `find`, `findInDirectory`, `findNext`, `findPrevious`, `hideFind`, `useSelectionForFind`, `terminalCopy`, `terminalPaste`, `browserScreenshotSection`, `saveFilePreview`, `toggleFileEditorWordWrap`, `diffViewerNextLine`, `diffViewerPreviousLine`, `diffViewerHalfPageDown`, `diffViewerHalfPageUp`, `diffViewerNextHunk`, `diffViewerPreviousHunk`, `diffViewerGoToBottom`, `diffViewerGoToTop`, `diffViewerSearch`, `diffViewerNextFile`, `diffViewerPreviousFile`, `omnibar.openInBackgroundTab`, `omnibar.openInForegroundTab`, `browser.prompt.allow`, `browser.prompt.block`, `fileEditorGotoLine`, `fileEditorReplace`, `fileEditorAction`, `fileExplorerOpenSelection`, `fileExplorerOpenSelectionFinderAlias`, `fileExplorerOpenInCmux`, `fileExplorerReveal`, `fileExplorerCopyPath`, `fileExplorerCopyRelativePath`, `fileExplorerOpenWith`, `vaultOpenSession`, `vaultResumeInNewWorkspace`, `vaultCopyResumeCommand`, `vaultOpenPullRequest`, `checklistEditItem`, `checklistMarkInProgress`, `checklistCompleteItem`, `checklistRemoveItem`, `checklistOpenAsPane`, `checklistAttachImages`, `toggleUnread`, `notificationCopy`, `notificationToggleRead`, `notificationDismiss`, `palette.toggleDictation`, `terminal.selectAll`, `terminal.scrollToSelection`, `markdownSave`, `markdownLink`, `markdownBack`, `markdownForward`, `list.next`, `list.previous`, `paletteKey.firstItem`, `paletteKey.lastItem`, `paletteKey.pageUp`, `paletteKey.pageDown`, `paletteKey.submit`, `paletteKey.submitAlternate`, `paletteKey.openActions`, `paletteKey.closeActions`, `paletteKey.toggleActions`, `paletteKey.escape`, `paletteKey.enterRow`, `paletteKey.leaveLevel`, `paletteKey.back`, `paletteKey.filterDeleteBackward`, `paletteKey.closeItem` -**guiOnly** (147): `openSettings`, `zoomWindow`, `selectNextWindow`, `selectPreviousWindow`, `minimizeWindow`, `toggleFullScreen`, `globalSearch`, `commandPalette`, `palette.openTaskManager`, `palette.sleepyMode`, `about`, `revealWorkspaceInFinder`, `workspaceGroup.editConfig`, `manageLayouts`, `palette.openWorkspacePullRequests`, `palette.findWork`, `toggleSplitZoom`, `canvasOverview`, `hints.show`, `palette.toggleFullWidthTab`, `tab.showResources`, `workspace.showResources`, `home.newMessage`, `toggleBrowserDeveloperTools`, `showBrowserJavaScriptConsole`, `inspectBrowserElement`, `toggleBrowserFocusMode`, `toggleBrowserDesignMode`, `toggleReactGrab`, `browserLinkHints`, `browserLinkHintsNewSplit`, `palette.browserToggleOmnibar`, `importFromBrowser`, `password.importCSV`, `passwords.open`, `openLinkInDefaultBrowser`, `browserPrint`, `filePreviewOpenWith`, `filePreviewOpenExternally`, `filePreviewRevealInFinder`, `palette.vscodeServeWebStop`, `palette.vscodeServeWebRestart`, `browser.allowAgentWithExtensions`, `browser.importFromFiles`, `browser.media.show`, `browser.downloads.show`, `browser.profile.choose`, `browser.overflow.menu`, `browser.openLocally`, `browser.openOnMachine`, `browser.download.openBlockedSiteSettings`, `browser.link.saveAs`, `browser.image.saveAs`, `browser.selection.lookUp`, `browser.pageInfo`, `browser.pageInfo.connection`, `browser.pageInfo.certificate`, `browser.pageInfo.cookies`, `browser.pageInfo.manageSiteData`, `browser.pageInfo.siteSettings`, `browser.pageInfo.aboutThisPage`, `browser.certificateWarning.proceed`, `browser.certificateWarning.goBack`, `browser.extensions.menu`, `browser.extensions.manage`, `browser.extensions.webStore`, `browser.extension.options`, `browserProfile.delete`, `browserProfile.manageExtensions`, `sidebar.profileMenu`, `browser.downloads.showFolder`, `toggleSidebar`, `toggleRightSidebar`, `switchRightSidebarToFiles`, `switchRightSidebarToFind`, `switchRightSidebarToSessions`, `switchRightSidebarToFeed`, `switchRightSidebarToDock`, `switchRightSidebarToMachines`, `feed.show`, `showNotifications`, `notifications.dismissHighlight`, `palette.addHarness`, `stats.show`, `agentPane.continueIn`, `agentPane.switchModel`, `agentPane.createCheckpoint`, `agentPane.searchFiles`, `agentPane.copyLastCodeBlock`, `agentPane.searchChats`, `agentPane.previousTurn`, `agentPane.nextTurn`, `agentPane.permission.allowOnce`, `agentPane.permission.allowChat`, `agentPane.permission.deny`, `agentPane.permission.expand`, `agentPane.permission.retry`, `agentPane.permission.revoke`, `agentPane.permission.refresh`, `palette.openTerminalChatView`, `palette.computerUse.setup`, `palette.computerUse.accessibility`, `palette.computerUse.screenRecording`, `home.toggleChiefSettings`, `home.stopChief`, `agent.harness.addFromRegistry`, `agent.harness.updateAll`, `palette.cloud.tools`, `cloudOpenMachine`, `openTeamPicker`, `palette.mobileConnect`, `palette.openCmuxSettingsFile`, `palette.openGhosttySettings`, `ghostty.showDiagnostics`, `palette.searchShortcuts`, `palette.pro.upgrade`, `sendFeedback`, `help.featureFlags`, `help.documentation`, `appearance.customize`, `recentlyFocused`, `recentlyClosed`, `history.commands`, `agentHistory.show`, `browserShowHistory`, `history.search`, `music.open`, `music.stop`, `bookmark.toggleBar`, `bookmark.manager`, `sidebar.section.hide`, `sidebar.projects.hide`, `sidebar.sections.showHidden`, `sidebar.spaces.hide`, `sidebar.spaces.show`, `sidebar.profileControl.hide`, `sidebar.profileControl.show`, `sidebar.groupBy.none`, `sidebar.groupBy.folder`, `sidebar.density.compact`, `sidebar.density.comfortable`, `sidebar.density.expanded`, `sidebar.workspaceTabs.toggle`, `appStore.showInstalled`, `tasks.new`, `app.shareCmux`, `server.showPanel` +**guiOnly** (149): `openSettings`, `zoomWindow`, `selectNextWindow`, `selectPreviousWindow`, `minimizeWindow`, `toggleFullScreen`, `globalSearch`, `commandPalette`, `palette.openTaskManager`, `palette.sleepyMode`, `about`, `revealWorkspaceInFinder`, `workspaceGroup.editConfig`, `manageLayouts`, `palette.openWorkspacePullRequests`, `palette.findWork`, `toggleSplitZoom`, `canvasOverview`, `hints.show`, `palette.toggleFullWidthTab`, `tab.showResources`, `workspace.showResources`, `home.newMessage`, `toggleBrowserDeveloperTools`, `showBrowserJavaScriptConsole`, `inspectBrowserElement`, `toggleBrowserFocusMode`, `toggleBrowserDesignMode`, `toggleReactGrab`, `browserLinkHints`, `browserLinkHintsNewSplit`, `palette.browserToggleOmnibar`, `importFromBrowser`, `password.importCSV`, `passwords.open`, `openLinkInDefaultBrowser`, `browserPrint`, `filePreviewOpenWith`, `filePreviewOpenExternally`, `filePreviewRevealInFinder`, `palette.vscodeServeWebStop`, `palette.vscodeServeWebRestart`, `browser.allowAgentWithExtensions`, `browser.importFromFiles`, `browser.media.show`, `browser.downloads.show`, `browser.profile.choose`, `browser.overflow.menu`, `browser.openLocally`, `browser.openOnMachine`, `browser.download.openBlockedSiteSettings`, `browser.link.saveAs`, `browser.image.saveAs`, `browser.selection.lookUp`, `browser.pageInfo`, `browser.pageInfo.connection`, `browser.pageInfo.certificate`, `browser.pageInfo.cookies`, `browser.pageInfo.manageSiteData`, `browser.pageInfo.siteSettings`, `browser.pageInfo.aboutThisPage`, `browser.certificateWarning.proceed`, `browser.certificateWarning.goBack`, `browser.extensions.menu`, `browser.extensions.manage`, `browser.extensions.webStore`, `browser.extension.options`, `browserProfile.delete`, `browserProfile.manageExtensions`, `sidebar.profileMenu`, `browser.downloads.showFolder`, `toggleSidebar`, `toggleRightSidebar`, `switchRightSidebarToFiles`, `switchRightSidebarToFind`, `switchRightSidebarToSessions`, `switchRightSidebarToFeed`, `switchRightSidebarToDock`, `switchRightSidebarToMachines`, `feed.show`, `showNotifications`, `notifications.dismissHighlight`, `palette.addHarness`, `stats.show`, `agentPane.continueIn`, `agentPane.switchModel`, `agentPane.createCheckpoint`, `agentPane.searchFiles`, `agentPane.copyLastCodeBlock`, `agentPane.searchChats`, `agentPane.permission.allowOnce`, `agentPane.permission.allowChat`, `agentPane.permission.deny`, `agentPane.permission.expand`, `agentPane.permission.retry`, `agentPane.permission.revoke`, `agentPane.permission.refresh`, `palette.openTerminalChatView`, `palette.computerUse.setup`, `palette.computerUse.accessibility`, `palette.computerUse.screenRecording`, `home.toggleChiefSettings`, `home.stopChief`, `agentPane.previousTurn`, `agentPane.nextTurn`, `agentPane.previousBookmarkedPrompt`, `agentPane.nextBookmarkedPrompt`, `agent.harness.addFromRegistry`, `agent.harness.updateAll`, `palette.cloud.tools`, `cloudOpenMachine`, `openTeamPicker`, `palette.mobileConnect`, `palette.openCmuxSettingsFile`, `palette.openGhosttySettings`, `ghostty.showDiagnostics`, `palette.searchShortcuts`, `palette.pro.upgrade`, `sendFeedback`, `help.featureFlags`, `help.documentation`, `appearance.customize`, `recentlyFocused`, `recentlyClosed`, `history.commands`, `agentHistory.show`, `browserShowHistory`, `history.search`, `music.open`, `music.stop`, `bookmark.toggleBar`, `bookmark.manager`, `sidebar.section.hide`, `sidebar.projects.hide`, `sidebar.sections.showHidden`, `sidebar.spaces.hide`, `sidebar.spaces.show`, `sidebar.profileControl.hide`, `sidebar.profileControl.show`, `sidebar.groupBy.none`, `sidebar.groupBy.folder`, `sidebar.density.compact`, `sidebar.density.comfortable`, `sidebar.density.expanded`, `sidebar.workspaceTabs.toggle`, `appStore.showInstalled`, `tasks.new`, `app.shareCmux`, `server.showPanel` **clipboard** (23): `copyWorkspaceSSHError`, `palette.copyWorkspaceID`, `palette.copyWorkspaceIDAndRef`, `palette.copyWorkspaceLink`, `workspace.copyPath`, `workspaceGroup.copyID`, `palette.copyIdentifiers`, `palette.copyPaneID`, `palette.copyPaneLink`, `palette.copySurfaceID`, `palette.copySurfaceLink`, `browser.copyURL`, `browser.link.copy`, `browser.link.copyText`, `browser.image.copy`, `browser.image.copyAddress`, `browser.selection.copy`, `agentChat.copyIdentifier`, `cloudCopyLink`, `cloudCopyPort`, `cloudCopyMachineID`, `remote.copyError`, `bookmark.copyLink` @@ -136,9 +137,9 @@ Palette 948, CLI verbs 541, right-click 509, MCP tools 466. **liveInput** (22): `hints.show`, `toggleTerminalCopyMode`, `palette.terminalToggleTextBoxInput`, `cycleTextBoxSubmitAction`, `attachTextBoxFile`, `sendCtrlFToTerminal`, `pasteLastScreenshot`, `findInDirectory`, `findNext`, `findPrevious`, `hideFind`, `browserLinkHints`, `browserLinkHintsNewSplit`, `omnibar.openInBackgroundTab`, `omnibar.openInForegroundTab`, `browser.prompt.allow`, `browser.prompt.block`, `toggleUnread`, `palette.toggleDictation`, `terminal.scrollToSelection`, `list.next`, `list.previous` -**guiOnly** (20): `browser.media.show`, `browser.downloads.show`, `browser.profile.choose`, `browser.overflow.menu`, `browser.download.openBlockedSiteSettings`, `agentPane.continueIn`, `agentPane.switchModel`, `agentPane.createCheckpoint`, `agentPane.searchFiles`, `agentPane.copyLastCodeBlock`, `agentPane.archiveChat`, `agentPane.previousTurn`, `agentPane.nextTurn`, `agentPane.permission.allowOnce`, `agentPane.permission.allowChat`, `agentPane.permission.deny`, `agentPane.permission.expand`, `agentPane.permission.retry`, `agentPane.permission.revoke`, `agentPane.permission.refresh` +**guiOnly** (22): `browser.media.show`, `browser.downloads.show`, `browser.profile.choose`, `browser.overflow.menu`, `browser.download.openBlockedSiteSettings`, `agentPane.continueIn`, `agentPane.switchModel`, `agentPane.createCheckpoint`, `agentPane.searchFiles`, `agentPane.copyLastCodeBlock`, `agentPane.archiveChat`, `agentPane.permission.allowOnce`, `agentPane.permission.allowChat`, `agentPane.permission.deny`, `agentPane.permission.expand`, `agentPane.permission.retry`, `agentPane.permission.revoke`, `agentPane.permission.refresh`, `agentPane.previousTurn`, `agentPane.nextTurn`, `agentPane.previousBookmarkedPrompt`, `agentPane.nextBookmarkedPrompt` -**noObject** (204): `openSettings`, `newWindow`, `newIncognitoWindow`, `closeWindow`, `window.closeOthers`, `closeAllWindows`, `zoomWindow`, `selectNextWindow`, `selectPreviousWindow`, `minimizeWindow`, `toggleFullScreen`, `quit`, `quitKeepSessions`, `quitEndSessions`, `quitEndEverything`, `globalSearch`, `palette.open`, `commandPalette`, `palette.openTaskManager`, `palette.sleepyMode`, `keepMacAwake`, `about`, `workspace.closeAllInAllWindows`, `manageLayouts`, `palette.findWork`, `workspace.importClassic`, `reopenClosedBrowserPanel`, `home.show`, `home.tab`, `home.channels`, `home.switchView`, `home.enableChannels`, `home.disableChannels`, `home.attachFiles`, `home.newMessage`, `home.invite`, `home.newChief`, `home.saveFlightRecording`, `palette.browserClearHistory`, `importFromBrowser`, `password.importCSV`, `passwords.open`, `palette.enableBrowser`, `palette.disableBrowser`, `browser.allowAgentWithExtensions`, `browser.importFromFiles`, `browser.importCookies`, `sidebar.profileMenu`, `browser.downloads.showFolder`, `toggleRightSidebar`, `switchRightSidebarToFiles`, `switchRightSidebarToFind`, `switchRightSidebarToSessions`, `switchRightSidebarToFeed`, `switchRightSidebarToDock`, `switchRightSidebarToMachines`, `palette.toggleMatchTerminalBackground`, `feed.show`, `showNotifications`, `markAllNotificationsRead`, `clearAllNotifications`, `notifications.toggleBanners`, `notifications.dismissal.keystroke`, `notifications.dismissal.focus`, `notifications.dismissal.click`, `notifications.dismissal.explicit`, `notifications.dismissal.timeout`, `notifications.dismissal.never`, `palette.quickAgentChat`, `palette.startAgentFromAnyApp`, `palette.addHarness`, `stats.show`, `palette.openTerminalChatView`, `palette.launchClaudeTeams`, `palette.launchCodexTeams`, `palette.computerUse.setup`, `palette.computerUse.accessibility`, `palette.computerUse.screenRecording`, `agent.openSessionWorkspace`, `home.toggleChiefSettings`, `home.stopChief`, `chief.openMemoryInspector`, `agentActivity.open`, `computerUseStop`, `agent.harness.add`, `agent.harness.addFromRegistry`, `agent.harness.remove`, `agent.harness.restore`, `agent.harness.doctor`, `agent.harness.updateAll`, `newCloudMachine`, `cloudDiagnostics`, `openTeamPicker`, `palette.auth.signIn`, `palette.auth.signOut`, `palette.mobileConnect`, `accounts.show`, `accounts.refresh`, `accounts.reauthenticate`, `accounts.connect`, `accounts.remove`, `remote.openBrowserTab`, `remote.openLocalBrowserTab`, `reloadConfiguration`, `palette.openCmuxSettingsFile`, `palette.openGhosttySettings`, `ghostty.showDiagnostics`, `palette.makeDefaultBrowser`, `palette.makeDefaultTerminal`, `palette.toggleSetting`, `palette.shortcutKeymap`, `palette.searchShortcuts`, `keybindings.open`, `palette.installCLI`, `palette.uninstallCLI`, `palette.restartSocketListener`, `palette.checkForUpdates`, `updates.whatsNew`, `announcements.show`, `announcements.hide`, `palette.applyUpdateIfAvailable`, `palette.switchAppChannel`, `palette.pro.upgrade`, `sendFeedback`, `help.showCrashLogs`, `help.featureFlags`, `help.documentation`, `appearance.density.compact`, `appearance.density.comfortable`, `appearance.animationSpeed.fast`, `appearance.animationSpeed.normal`, `appearance.animationSpeed.off`, `appearance.animations.newTab.toggle`, `appearance.animations.newWorkspace.toggle`, `appearance.animations.bounce.subtle`, `appearance.animations.bounce.none`, `browser.defaultEngine.chromium`, `browser.defaultEngine.webkit`, `appearance.paneBorder.toggle`, `appearance.panePadding.toggle`, `appearance.paneCorners.toggle`, `layout.centerFocusedColumn.never`, `layout.centerFocusedColumn.always`, `layout.centerFocusedColumn.onOverflow`, `tabs.overflow.scroll`, `tabs.overflow.shrink`, `links.openInCmuxBrowser`, `links.openInDefaultBrowser`, `focusRing.toggle`, `focusRing.style.ring`, `focusRing.style.glow`, `focusRing.singlePane.toggle`, `appearance.paneBorderWidth.toggle`, `appearance.paneBorderColor.reset`, `appearance.titlebar.minimal`, `appearance.titlebar.standard`, `appearance.customize`, `appearance.chromeStyle.default`, `appearance.chromeStyle.card`, `appearance.chromeStyle.cardOutlined`, `appearance.chromeStyle.flat`, `appearance.chromeStyle.flatSidebarLine`, `appearance.chromeStyle.bare`, `appearance.chromeStyle.panes`, `appearance.chromeStyle.twoTone`, `appearance.chromeStyle.floating`, `browser.hibernation.off`, `browser.hibernation.moderate`, `browser.hibernation.aggressive`, `layout.toggleStripScrollbar`, `recentlyFocused`, `recentlyClosed`, `history.commands`, `history.show`, `agentHistory.show`, `browserShowHistory`, `history.search`, `history.resumeAgentSession`, `history.reopen`, `history.open`, `history.clear`, `layout.undo`, `music.open`, `music.stop`, `bookmark.add`, `bookmark.import`, `bookmark.importFromBrowser`, `bookmark.export`, `appStore.showInstalled`, `app.hide`, `app.unhide`, `app.open`, `app.command.run`, `tasks.show`, `tasks.new`, `tasks.showMine`, `link.open`, `app.shareCmux`, `server.makeThisMacAServer`, `server.stopServing`, `server.addServer`, `server.showPanel`, `server.showHealth`, `palette.openCloudPane` +**noObject** (212): `openSettings`, `newWindow`, `newIncognitoWindow`, `closeWindow`, `window.closeOthers`, `closeAllWindows`, `zoomWindow`, `selectNextWindow`, `selectPreviousWindow`, `minimizeWindow`, `toggleFullScreen`, `quit`, `quitKeepSessions`, `quitEndSessions`, `quitEndEverything`, `globalSearch`, `palette.open`, `commandPalette`, `palette.openTaskManager`, `palette.sleepyMode`, `keepMacAwake`, `about`, `workspace.closeAllInAllWindows`, `manageLayouts`, `palette.findWork`, `workspace.importClassic`, `palette.openCloudPane`, `reopenClosedBrowserPanel`, `home.show`, `home.tab`, `home.channels`, `home.switchView`, `home.enableChannels`, `home.disableChannels`, `home.attachFiles`, `home.newMessage`, `home.invite`, `home.newChief`, `home.saveFlightRecording`, `palette.browserClearHistory`, `importFromBrowser`, `password.importCSV`, `passwords.open`, `palette.enableBrowser`, `palette.disableBrowser`, `browser.allowAgentWithExtensions`, `browser.importFromFiles`, `browser.importCookies`, `sidebar.profileMenu`, `browser.downloads.showFolder`, `toggleRightSidebar`, `switchRightSidebarToFiles`, `switchRightSidebarToFind`, `switchRightSidebarToSessions`, `switchRightSidebarToFeed`, `switchRightSidebarToDock`, `switchRightSidebarToMachines`, `palette.toggleMatchTerminalBackground`, `feed.show`, `showNotifications`, `markAllNotificationsRead`, `clearAllNotifications`, `notifications.toggleBanners`, `notifications.dismissal.keystroke`, `notifications.dismissal.focus`, `notifications.dismissal.click`, `notifications.dismissal.explicit`, `notifications.dismissal.timeout`, `notifications.dismissal.never`, `palette.quickAgentChat`, `palette.startAgentFromAnyApp`, `palette.addHarness`, `stats.show`, `palette.openTerminalChatView`, `palette.launchClaudeTeams`, `palette.launchCodexTeams`, `palette.computerUse.setup`, `palette.computerUse.accessibility`, `palette.computerUse.screenRecording`, `agent.openSessionWorkspace`, `home.toggleChiefSettings`, `home.stopChief`, `chief.openMemoryInspector`, `agentActivity.open`, `computerUseStop`, `agent.harness.add`, `agent.harness.addFromRegistry`, `agent.harness.remove`, `agent.harness.restore`, `agent.harness.doctor`, `agent.harness.updateAll`, `newCloudMachine`, `cloudDiagnostics`, `openTeamPicker`, `palette.auth.signIn`, `palette.auth.signOut`, `palette.mobileConnect`, `accounts.show`, `accounts.refresh`, `accounts.reauthenticate`, `accounts.connect`, `accounts.remove`, `remote.openBrowserTab`, `remote.openLocalBrowserTab`, `reloadConfiguration`, `palette.openCmuxSettingsFile`, `palette.openGhosttySettings`, `ghostty.showDiagnostics`, `palette.makeDefaultBrowser`, `palette.makeDefaultTerminal`, `palette.toggleSetting`, `palette.shortcutKeymap`, `palette.searchShortcuts`, `keybindings.open`, `palette.installCLI`, `palette.uninstallCLI`, `palette.restartSocketListener`, `palette.checkForUpdates`, `updates.whatsNew`, `announcements.show`, `announcements.hide`, `palette.applyUpdateIfAvailable`, `palette.switchAppChannel`, `palette.pro.upgrade`, `sendFeedback`, `help.showCrashLogs`, `help.featureFlags`, `help.documentation`, `appearance.density.compact`, `appearance.density.comfortable`, `appearance.animationSpeed.fast`, `appearance.animationSpeed.normal`, `appearance.animationSpeed.off`, `appearance.animations.newTab.toggle`, `appearance.animations.newWorkspace.toggle`, `appearance.animations.bounce.subtle`, `appearance.animations.bounce.none`, `browser.defaultEngine.chromium`, `browser.defaultEngine.webkit`, `appearance.paneBorder.toggle`, `appearance.panePadding.toggle`, `appearance.paneCorners.toggle`, `layout.centerFocusedColumn.never`, `layout.centerFocusedColumn.always`, `layout.centerFocusedColumn.onOverflow`, `tabs.overflow.scroll`, `tabs.overflow.shrink`, `links.openInCmuxBrowser`, `links.openInDefaultBrowser`, `focusRing.toggle`, `focusRing.style.ring`, `focusRing.style.glow`, `focusRing.singlePane.toggle`, `appearance.paneBorderWidth.toggle`, `appearance.paneBorderColor.reset`, `appearance.titlebar.minimal`, `appearance.titlebar.standard`, `appearance.customize`, `appearance.chromeStyle.default`, `appearance.chromeStyle.card`, `appearance.chromeStyle.cardOutlined`, `appearance.chromeStyle.flat`, `appearance.chromeStyle.flatSidebarLine`, `appearance.chromeStyle.bare`, `appearance.chromeStyle.panes`, `appearance.chromeStyle.twoTone`, `appearance.chromeStyle.floating`, `browser.hibernation.off`, `browser.hibernation.moderate`, `browser.hibernation.aggressive`, `layout.toggleStripScrollbar`, `recentlyFocused`, `recentlyClosed`, `history.commands`, `history.show`, `agentHistory.show`, `browserShowHistory`, `history.search`, `history.resumeAgentSession`, `history.reopen`, `history.open`, `history.clear`, `layout.undo`, `music.open`, `music.stop`, `bookmark.add`, `bookmark.import`, `bookmark.importFromBrowser`, `bookmark.export`, `appStore.showInstalled`, `app.hide`, `app.unhide`, `app.open`, `app.command.run`, `tasks.show`, `tasks.new`, `tasks.showMine`, `phone.show`, `phone.boot`, `phone.screenshot`, `phone.recordStart`, `phone.recordStop`, `phone.sendFeedback`, `phone.openURL`, `phone.paste`, `link.open`, `app.shareCmux`, `server.makeThisMacAServer`, `server.stopServing`, `server.addServer`, `server.showPanel`, `server.showHealth` **noTargetSurface** (81): `taskManager.killProcess`, `toggleChecklistItemComplete`, `canvasOverview`, `canvasTidy`, `canvasAlignLeft`, `canvasAlignRight`, `canvasAlignTop`, `canvasAlignBottom`, `canvasEqualizeWidths`, `canvasEqualizeHeights`, `canvasDistributeHorizontally`, `canvasDistributeVertically`, `simulatorHome`, `simulatorRotateLeft`, `simulatorRotateRight`, `simulatorToggleAppearance`, `simulatorToggleSoftwareKeyboard`, `file.open`, `home.archiveChief`, `tabGroup.deleteSaved`, `tabGroup.reopenSaved`, `screenGroup.reopenSaved`, `screenGroup.deleteSaved`, `resumeCommandSet`, `resumeCommandEdit`, `resumeCommandClear`, `saveFilePreview`, `toggleFileEditorWordWrap`, `filePreviewOpenWith`, `filePreviewOpenExternally`, `filePreviewRevealInFinder`, `diffViewerNextLine`, `diffViewerPreviousLine`, `diffViewerHalfPageDown`, `diffViewerHalfPageUp`, `diffViewerNextHunk`, `diffViewerPreviousHunk`, `diffViewerGoToBottom`, `diffViewerGoToTop`, `diffViewerSearch`, `diffViewerNextFile`, `diffViewerPreviousFile`, `palette.vscodeServeWebStop`, `palette.vscodeServeWebRestart`, `browser.openOnMachine`, `openDiffViewer`, `palette.openDirectoryDiffViewer`, `openMarkdownFile`, `fileEditorGotoLine`, `fileEditorReplace`, `fileEditorAction`, `browser.certificateWarning.proceed`, `browser.certificateWarning.goBack`, `browserProfile.openLink`, `fileExplorerOpenSelection`, `fileExplorerOpenSelectionFinderAlias`, `fileExplorerOpenInCmux`, `fileExplorerReveal`, `fileExplorerCopyPath`, `fileExplorerCopyRelativePath`, `fileExplorerOpenWith`, `vaultOpenSession`, `vaultResumeInNewWorkspace`, `vaultCopyResumeCommand`, `vaultOpenPullRequest`, `checklistEditItem`, `checklistMarkInProgress`, `checklistCompleteItem`, `checklistRemoveItem`, `checklistOpenAsPane`, `checklistAttachImages`, `agentPane.git.commit`, `agentPane.git.push`, `agentPane.searchChats`, `cloudExec`, `cloudDomainList`, `cloudPublicationList`, `markdownSave`, `markdownLink`, `markdownBack`, `markdownForward` @@ -146,7 +147,7 @@ Palette 948, CLI verbs 541, right-click 509, MCP tools 466. **dragGesture** (5): `space.moveLeft`, `space.moveRight`, `space.move`, `browser.extension.move`, `bookmark.move` -**unimplemented** (4): `palette.openFilesPane`, `palette.openFindPane`, `palette.openVaultPane`, `palette.browserToggleOmnibar` +**unimplemented** (5): `palette.openFilesPane`, `palette.openFindPane`, `palette.openVaultPane`, `toggleReactGrab`, `palette.browserToggleOmnibar` **secondaryEngine** (2): `openBrowser.webkit`, `browser.openInWebKit` diff --git a/web/data/cmux-shortcuts.generated.json b/web/data/cmux-shortcuts.generated.json index 2cb085832ff3..e6981ec12668 100644 --- a/web/data/cmux-shortcuts.generated.json +++ b/web/data/cmux-shortcuts.generated.json @@ -7641,76 +7641,6 @@ } ] }, - { - "id": "agentPane.previousTurn", - "title": { - "en": "Previous Turn", - "ar": "الدور السابق", - "bs": "Prethodni krug", - "da": "Forrige tur", - "de": "Vorherige Runde", - "es": "Turno anterior", - "fr": "Tour précédent", - "it": "Turno precedente", - "ja": "前のターン", - "km": "វេនមុន", - "ko": "이전 턴", - "no": "Forrige runde", - "pl": "Poprzednia tura", - "pt-BR": "Turno anterior", - "ru": "Предыдущий ход", - "th": "เทิร์นก่อนหน้า", - "tr": "Önceki tur", - "uk": "Попередній хід", - "vi": "Lượt trước", - "zh-CN": "上一轮", - "zh-TW": "上一輪" - }, - "shortcut": { - "key": "", - "modifiers": [ - "ctrl", - "opt" - ] - }, - "chord": null, - "aliases": [] - }, - { - "id": "agentPane.nextTurn", - "title": { - "en": "Next Turn", - "ar": "الدور التالي", - "bs": "Sljedeći krug", - "da": "Næste tur", - "de": "Nächste Runde", - "es": "Siguiente turno", - "fr": "Tour suivant", - "it": "Turno successivo", - "ja": "次のターン", - "km": "វេនបន្ទាប់", - "ko": "다음 턴", - "no": "Neste runde", - "pl": "Następna tura", - "pt-BR": "Próximo turno", - "ru": "Следующий ход", - "th": "เทิร์นถัดไป", - "tr": "Sonraki tur", - "uk": "Наступний хід", - "vi": "Lượt tiếp theo", - "zh-CN": "下一轮", - "zh-TW": "下一輪" - }, - "shortcut": { - "key": "", - "modifiers": [ - "ctrl", - "opt" - ] - }, - "chord": null, - "aliases": [] - }, { "id": "agentPane.permission.allowOnce", "title": { @@ -7850,6 +7780,76 @@ }, "chord": null, "aliases": [] + }, + { + "id": "agentPane.previousTurn", + "title": { + "en": "Previous Turn", + "ar": "الدور السابق", + "bs": "Prethodni krug", + "da": "Forrige tur", + "de": "Vorherige Runde", + "es": "Turno anterior", + "fr": "Tour précédent", + "it": "Turno precedente", + "ja": "前のターン", + "km": "វេនមុន", + "ko": "이전 턴", + "no": "Forrige runde", + "pl": "Poprzednia tura", + "pt-BR": "Turno anterior", + "ru": "Предыдущий ход", + "th": "เทิร์นก่อนหน้า", + "tr": "Önceki tur", + "uk": "Попередній хід", + "vi": "Lượt trước", + "zh-CN": "上一轮", + "zh-TW": "上一輪" + }, + "shortcut": { + "key": "", + "modifiers": [ + "ctrl", + "opt" + ] + }, + "chord": null, + "aliases": [] + }, + { + "id": "agentPane.nextTurn", + "title": { + "en": "Next Turn", + "ar": "الدور التالي", + "bs": "Sljedeći krug", + "da": "Næste tur", + "de": "Nächste Runde", + "es": "Siguiente turno", + "fr": "Tour suivant", + "it": "Turno successivo", + "ja": "次のターン", + "km": "វេនបន្ទាប់", + "ko": "다음 턴", + "no": "Neste runde", + "pl": "Następna tura", + "pt-BR": "Próximo turno", + "ru": "Следующий ход", + "th": "เทิร์นถัดไป", + "tr": "Sonraki tur", + "uk": "Наступний хід", + "vi": "Lượt tiếp theo", + "zh-CN": "下一轮", + "zh-TW": "下一輪" + }, + "shortcut": { + "key": "", + "modifiers": [ + "ctrl", + "opt" + ] + }, + "chord": null, + "aliases": [] } ] }, diff --git a/webviews/src/agent-session/acpmux/App.tsx b/webviews/src/agent-session/acpmux/App.tsx index be2c34d8ae02..0dd0527aa75a 100644 --- a/webviews/src/agent-session/acpmux/App.tsx +++ b/webviews/src/agent-session/acpmux/App.tsx @@ -56,6 +56,7 @@ import { pageStyle, pickNewTabStyle, screenTemplate, shownTemplate } from "./new import { newTabPageSubmit } from "./newtab/pageSubmit"; import { isAgentHome, projectLabel } from "./sessionList"; import { ThreadMinimap } from "./threadMinimap/ThreadMinimap"; +import { PromptMarksSession } from "./threadMinimap/promptMarks"; import { setBookmarkTransport } from "./threadMinimap/bookmarks"; import { composerDraft, notifyDraftActionsChanged } from "./composerDraft"; import { paneContext } from "./paneContext"; @@ -1256,6 +1257,24 @@ function JumpToLatest({ ); } +/// What the transcript's rows read from it: Find's reveal target and, for a prompt's own bookmark +/// button, the session its marks key into (threadMinimap/promptMarks.ts). +function TranscriptContext({ + find, + sessionId, + children, +}: { + find: React.ContextType; + sessionId?: string; + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} + export function VirtualTranscript({ rows, sessionId, @@ -2342,7 +2361,7 @@ export function VirtualTranscript({ width={width} /> {find?.open && } - +
- +
{jumpButton && } @@ -3918,9 +3937,12 @@ function AcpmuxPane() { "permissionRetry", "permissionRevoke", "permissionRefresh", - // Previous Turn and Next Turn (Ctrl-Opt-Up, Ctrl-Opt-Down): the thread minimap steps the transcript. + // Previous Turn and Next Turn (Ctrl-Opt-Up, Ctrl-Opt-Down), and Previous and Next Bookmarked + // Prompt (the palette's): the thread minimap steps the transcript. "previousTurn", "nextTurn", + "previousBookmarkedPrompt", + "nextBookmarkedPrompt", // Search Files… (the command palette; no default key: Cmd-P is the native Go to): the composer opens its file search. "searchFiles", ].includes(name) diff --git a/webviews/src/agent-session/acpmux/conversation/UserBubble.tsx b/webviews/src/agent-session/acpmux/conversation/UserBubble.tsx index 437b67eddb68..46fb1834cfc4 100644 --- a/webviews/src/agent-session/acpmux/conversation/UserBubble.tsx +++ b/webviews/src/agent-session/acpmux/conversation/UserBubble.tsx @@ -1,4 +1,4 @@ -// A prompt's bubble, with Copy and Edit under it (cx-ncc.60, Claude parity). Edit opens the prompt in +// A prompt's bubble, with Copy, Bookmark and Edit under it (cx-ncc.60, Claude parity). Edit opens the prompt in // place; Send forks the chat through the turn before it and sends the edited text there (the App's // `edit.send`), Escape or Cancel puts the bubble back. Edit shows only on a prompt the chat can fork // before (`editableTurns`), so it is never dead. A prompt with versions (an edit made it, or replaced @@ -15,6 +15,8 @@ import { copyText } from "./clipboard"; import { ChevronLeft, ChevronRight, Copy, Pencil } from "./icons"; import { ImageViewerContext } from "./imageViewerContext"; import { TurnActionsContext } from "./turnActions"; +import { BookmarkIcon } from "../threadMinimap/BookmarkIcon"; +import { usePromptRowMark } from "../threadMinimap/promptMarks"; export function UserBubble({ row, text }: { row: AcpmuxRow; text: string }) { const t = useT(); @@ -22,6 +24,7 @@ export function UserBubble({ row, text }: { row: AcpmuxRow; text: string }) { const branch = branches?.of.get(row.id); const [editing, setEditing] = useState(false); const [copied, setCopied] = useState(false); + const mark = usePromptRowMark(row); const through = edit?.seqs.get(row.id); const copies = experimentArm(hoverActions) === "all"; // An open editor stays while the chat changes under it (a reconnect, a turn starting), so the @@ -44,7 +47,7 @@ export function UserBubble({ row, text }: { row: AcpmuxRow; text: string }) { <> {row.images && row.images.length > 0 && }
{text}
- {text && !row.failed && !row.queued && (copies || branch || through !== undefined) && ( + {text && !row.failed && !row.queued && (copies || branch || through !== undefined || mark.can) && (
{branch && branches && ( @@ -92,6 +95,19 @@ export function UserBubble({ row, text }: { row: AcpmuxRow; text: string }) { )} + {/* The prompt's bookmark, the same mark as the thread minimap's dot and card. */} + {mark.can && ( + + )} {through !== undefined && ( - )} -
- {turn.reply.length > 0 && ( -
- {turn.reply.map((block, blockIndex) => ( -

- {block.spans.map((span, spanIndex) => - span.bold ? {span.text} : span.text, - )} -

- ))} -
+ const index = indexAt(event.clientY); + if (index === state.at) return; + state.at = index; + setHovered(index); + setCardRow(index); + jump(index, "scrub"); + }} + onPointerUp={endScrub} + onPointerCancel={endScrub} + > + {turns.map((turn, index) => ( + = onScreen.first && index <= onScreen.last} + marked={marks.has(turn)} + describedBy={showCard && cardRow === index ? cardId : undefined} + label={t(marks.has(turn) ? "minimap.tickBookmarked" : "minimap.tick", { + index: index + 1, + count: turns.length, + prompt: turn.prompt, + })} + actions={actions} + /> + ))} + + + {showCard && ( +
{ + // Back onto the rail keeps it (its row takes over); anywhere else it goes. + if (!within(rail.current, event.relatedTarget)) intend(null); + }} + > +
+ {cardTurn.prompt} + {marks.can(cardTurn) && ( + )}
- )} - + {cardTurn.reply.length > 0 && ( +
+ {cardTurn.reply.map((block, blockIndex) => ( +

+ {block.spans.map((span, spanIndex) => + span.bold ? {span.text} : span.text, + )} +

+ ))} +
+ )} +
+ )} ); } -function isMarked(marks: ReadonlySet, rowId: string): boolean { - const seq = promptSeq(rowId); - return seq !== undefined && marks.has(seq); -} +type TickActions = { + enter(index: number): void; + focus(index: number): void; + blur(index: number): void; + escape(): void; + click(index: number, target: EventTarget): void; +}; +/// One prompt's row: a 10 px by 36 px button with its tick and, past the tick, the bookmark dot. const Tick = memo(function Tick({ index, - top, - pitch, - width, - tone, - tabbable, + last, + progress, + active, current, + marked, + describedBy, label, - onJump, - onFocusTick, - onMove, - last, + actions, }: { index: number; - top: number; - pitch: number; - width: number; - tone: "rest" | "current" | "active"; - tabbable: boolean; + last: number; + progress: number; + active: boolean; current: boolean; + marked: boolean; + describedBy?: string; label: string; - onJump: (index: number) => void; - onFocusTick: (index: number, immediately: boolean) => void; - onMove: (index: number) => void; - last: number; + actions: TickActions; }) { + const length = tickLength(progress); return ( onJump(index)} - onFocus={(event) => { - if (event.currentTarget.matches(":focus-visible")) onFocusTick(index, true); - }} + aria-current={current ? "true" : undefined} + aria-describedby={describedBy} + onPointerEnter={() => actions.enter(index)} + onFocus={() => actions.focus(index)} + onBlur={() => actions.blur(index)} + onClick={(event) => actions.click(index, event.target)} keyboard={(event) => { + if (event.key === "Escape") actions.escape(); const to = event.key === "ArrowUp" ? index - 1 @@ -333,27 +472,15 @@ const Tick = memo(function Tick({ : event.key === "End" ? last : undefined; - if (to !== undefined) onMove(to); + if (to !== undefined) + event.currentTarget.parentElement + ?.querySelector(`[data-tick="${Math.max(0, Math.min(last, to))}"]`) + ?.focus(); }} > - + + + ); }); - -function BookmarkIcon({ filled }: { filled: boolean }) { - return ( - - ); -} diff --git a/webviews/src/agent-session/acpmux/threadMinimap/model.ts b/webviews/src/agent-session/acpmux/threadMinimap/model.ts index ff94d86bf725..04289b3bf338 100644 --- a/webviews/src/agent-session/acpmux/threadMinimap/model.ts +++ b/webviews/src/agent-session/acpmux/threadMinimap/model.ts @@ -1,6 +1,5 @@ // The thread minimap's model: one tick per user message at the transcript's left edge -// (the Codex app's thread minimap). Pure functions, so geometry and previews test without a DOM. -// Measurements are in the lane notes (.cmux-scratch/pane-protocol/thread-minimap/minimap-spec.md). +// (the Codex desktop app's prompt rail). Pure functions, so geometry and previews need no DOM. import type { AcpmuxRow } from "../model"; export type ReplySpan = { text: string; bold: boolean }; @@ -19,45 +18,70 @@ export type MinimapTurn = { reply: ReplyBlock[]; }; -/// Tick geometry (CSS px); the drawn sizes live in threadMinimap.css. The offsets are transforms. -export const TICK_PITCH = 10; -export const TICK_LEFT = 15.5; -/// Where the popover's left edge sits: 35 px right of the ticks. -export const POPOVER_LEFT = TICK_LEFT + 35; -/// Fisheye widths by index distance from the hovered tick; farther ticks rest at the last. -const TICK_WIDTHS = [26, 20, 14, 10, 6] as const; -export const TICK_MAX_WIDTH = TICK_WIDTHS[0]; -export const TICK_REST_WIDTH = TICK_WIDTHS[TICK_WIDTHS.length - 1]; -/// The turn being read rests longer than the others (and in the accent, threadMinimap.css), so the -/// reader sees where they are in the thread at a glance (cx-f7c). -export const TICK_CURRENT_WIDTH = TICK_WIDTHS[2]; -/// Space kept free above and below the column and the popover. +/// The rail's geometry and timing, measured from 60 Hz recordings of the Codex desktop app's prompt +/// rail (lane notes: minimap-ref/SPEC.md). CSS px and ms; the drawn sizes live in threadMinimap.css. +/// The rail shows from this many prompts... +export const MIN_PROMPTS = 4; +/// ...and only when the transcript column starts this far right of the scroller's left edge. +export const MIN_GUTTER = 48; +/// The rail's left edge, in from the scroller's. +export const RAIL_LEFT = 16; +/// One row per prompt: a fixed 10 px pitch (not proportional to the thread), 36 px wide to hit. +export const ROW_PITCH = 10; +export const ROW_WIDTH = 36; +/// The tick's line box; a tick draws `tickLength(progress)` of it from the left. +export const TICK_BOX = 26; +/// Rows past this many, or past 70% of the window's height, scroll inside the rail. +export const RAIL_MAX_ROWS = 64; +export const RAIL_MAX_SHARE = 0.7; +/// The fisheye by row distance from the hovered (or scrubbed) row: 26, 20, 14, 10, then 6 px. +const PROGRESS = [1, 0.7, 0.4, 0.2] as const; +/// Space kept free above and below the card inside the transcript's viewport. export const EDGE_MARGIN = 8; -/// Blocks of a reply the preview keeps (the popover clamps to three lines). +/// A jump lands the prompt's bubble this far below the top of the transcript's viewport. +export const LANDING_OFFSET = 35; +/// The transcript thread's top padding (.acpmux-thread): row tops start this far down the scroller. +export const THREAD_PADDING_TOP = 16; +/// A click's smooth scroll (Codex's Chromium smooth scroll, fitted), and a Previous or Next Turn step's. +export const JUMP_CURVE = [0.35, 0.05, 0, 1] as const; +export const STEP_CURVE = [0.3, 0.2, 0, 1] as const; +export const STEP_MS = 200; +/// The landing highlight on the prompt's bubble. +export const HIGHLIGHT_MS = 1400; +export const HIGHLIGHT_EASING = "cubic-bezier(0.23, 1, 0.32, 1)"; +/// Blocks of a reply the preview keeps (the card clamps to three lines). const PREVIEW_BLOCKS = 4; const PREVIEW_CHARS = 360; -export function tickWidth(distance: number | undefined): number { - if (distance === undefined) return TICK_REST_WIDTH; - return TICK_WIDTHS[Math.min(Math.abs(distance), TICK_WIDTHS.length - 1)]; +/// How magnified a row is (0 to 1) at `distance` rows from the hovered one; undefined is no hover. +export function tickProgress(distance: number | undefined): number { + if (distance === undefined) return 0; + return PROGRESS[Math.abs(distance)] ?? 0; } -/// The first tick's center and the pitch, for `count` ticks centered in a viewport `height` tall. -export function tickLayout(count: number, height: number): { first: number; pitch: number } { - if (count <= 1) return { first: height / 2, pitch: TICK_PITCH }; - const room = Math.max(0, height - 2 * EDGE_MARGIN); - // Many turns share the column: the pitch tightens until the column fits the viewport. - const pitch = Math.min(TICK_PITCH, room / (count - 1)); - return { first: (height - pitch * (count - 1)) / 2, pitch }; +/// The drawn length of a tick at `progress`: 6 px at rest, 26 px hovered. +export const tickLength = (progress: number) => TICK_BOX * (0.2308 + 0.7692 * progress); + +/// The rail's height for `count` rows in a window `windowHeight` tall: every row up to 64 rows or +/// 70% of the window, after which the rows scroll. +export function railHeight(count: number, windowHeight: number): number { + return Math.min(count * ROW_PITCH, RAIL_MAX_ROWS * ROW_PITCH, Math.floor(windowHeight * RAIL_MAX_SHARE)); } -/// The popover's top for a tick centered at `center`: centered on it, kept inside the viewport. -export function popoverOffset(center: number, popoverHeight: number, viewportHeight: number): number { - const top = center - popoverHeight / 2; - const max = viewportHeight - EDGE_MARGIN - popoverHeight; +/// The card's top for a row centered at `center`: centered on it, kept inside the viewport. +export function cardOffset(center: number, cardHeight: number, viewportHeight: number): number { + const top = center - cardHeight / 2; + const max = viewportHeight - EDGE_MARGIN - cardHeight; return Math.max(EDGE_MARGIN, Math.min(top, max)); } +/// How long a click's smooth scroll takes for `distance` px: about 200 ms for 150 px up to 400 ms +/// for 650 px and more, as the recorded Chromium scrolls took. +export function jumpDuration(distance: number): number { + const share = Math.min(1, Math.max(0, (Math.abs(distance) - 150) / 500)); + return Math.round(200 + 200 * share); +} + /// Each prompt's turn and the reply it previews, by row object: rows are immutable, so a long /// chat's snapshot hashes and previews only the turns that changed. const turnsByPrompt = new WeakMap(); @@ -156,9 +180,9 @@ export function visibleTurns( return { first, last }; } -/// The scroll offset that puts a turn's prompt at the top of the viewport (the thread's padding stays above it). +/// The scroll offset that lands a turn's prompt bubble LANDING_OFFSET below the viewport's top. export function turnScrollTop(turn: MinimapTurn, tops: Float64Array): number { - return Math.max(0, tops[turn.index] ?? 0); + return Math.max(0, THREAD_PADDING_TOP + (tops[turn.index] ?? 0) - LANDING_OFFSET); } /// The start of a reply as plain blocks with bold spans; code, headings' marks and link targets drop. diff --git a/webviews/src/agent-session/acpmux/threadMinimap/parity.html b/webviews/src/agent-session/acpmux/threadMinimap/parity.html index f59ab15bb005..01eba3b90cec 100644 --- a/webviews/src/agent-session/acpmux/threadMinimap/parity.html +++ b/webviews/src/agent-session/acpmux/threadMinimap/parity.html @@ -2,7 +2,7 @@ - + Thread minimap parity diff --git a/webviews/src/agent-session/acpmux/threadMinimap/parity.tsx b/webviews/src/agent-session/acpmux/threadMinimap/parity.tsx index 23ff35aedc27..b76f0442edbe 100644 --- a/webviews/src/agent-session/acpmux/threadMinimap/parity.tsx +++ b/webviews/src/agent-session/acpmux/threadMinimap/parity.tsx @@ -1,85 +1,51 @@ -// Dev server only (threadMinimap/parity.html): the minimap over the Codex reference's nine turns, -// in the reference theme, so a capture compares frame by frame with reference.mov. The transcript -// rows are absent; the layout gives each turn a fixed height. +// l10n-allow-file: dev page fixture prompts (the Codex reference thread), not shipped UI. +// Dev server only (threadMinimap/parity.html): the transcript and its minimap over the Codex +// reference thread (eighteen "Reply with only the word ok and the number N" prompts) in the dark +// reference theme, at the recorded window's size, so a capture of hover, the card, a click jump +// with its highlight, Tab, a scrub and a bookmark compares with the Codex clips (minimap-ref). +// `?w=` and `?h=` size the page; `?prompts=` changes the count. import "../../shared/styles.css"; +import "../styles.css"; +import "../conversation/conversation.css"; import "./threadMinimap.css"; -import React, { useRef } from "react"; import { createRoot } from "react-dom/client"; import type { AcpmuxRow } from "../model"; -import { ThreadMinimap } from "./ThreadMinimap"; +import { turnView } from "../conversation/turns"; +import { VirtualTranscript } from "../App"; globalThis.__cmuxPaneStrings ??= (await import("../generated/strings.json")).default; -const turns: [string, string][] = [ - [ - "let's work on harness research stuff together, starting from the chief of staff idea", - "My starting hypothesis: **one chief of staff that owns priorities, saved state for each project, and temporary workers for specific tasks.**", - ], - [ - "let's enumerate every possible topology and compare them", - "Yes. The “chief plus workers” design assumes a human organization: one accountable coordinator, delegated labor, and summarized reporting back up the chain.", - ], - [ - "i want to see visualizations of each open it the right panel", - "I created an interactive topology explorer and opened it in the right panel. It includes:\n\n- Central planner\n- Blackboard\n- Market", - ], - [ - "```mermaid flowchart TD U[You] <--> C[Chief] C --> W1[Worker]", - "I will replace the node diagrams with Mermaid flowcharts for all topology families, start a local preview, and open that preview in the right panel.", - ], - [ - "u opened the file but not browser? maybe open it in chrome", - "The Mermaid flowcharts are now open in Chrome in the right panel. I corrected the rendering issue, and all topology diagrams display: chief, swarm, market and pipeline.", - ], - [ - "RLM techinically encompasses the chief of staff design right?", - "Yes, with an important distinction.\n\nAn **RLM is a control strategy for inference**:", - ], - [ - "is there a more generalized thing than RLM?", - "Yes. The more general concept is an **environment-interacting agent runtime**.\n\nAn RLM is one particular operator inside that runtime, alongside tools and memory.", - ], - [ - "what are the main issues with rlms", - "The main issue is that **recursion is not automatically intelligence**. It gives a model more ways to inspect context, but it also gives it more ways to fail.", - ], - [ - "remember my idea about convergent thing where events start agents", - "Built and running: **Convergent**.\n\n- Each event starts a fresh coding agent with an event-file pointer. The agent reads it and converges.", - ], -]; -const rows: AcpmuxRow[] = turns.flatMap(([prompt, reply], index) => [ - { id: `user-${index}`, version: 1, at: index + 1, kind: "user", text: prompt }, - { id: `reply-${index}`, version: 1, at: index + 1, kind: "assistant", text: reply }, -]); -const TURN = 400; -const tops = new Float64Array(rows.map((_, index) => (index >> 1) * TURN + (index & 1) * 60)); -const heights = new Float64Array(rows.map((_, index) => (index & 1 ? TURN - 60 : 60))); -const layout = { tops, heights, totalHeight: turns.length * TURN }; const params = new URLSearchParams(location.search); -const width = Number(params.get("w") ?? 546); -const height = Number(params.get("h") ?? 336); -/// The reference rests on its seventh turn. -const scrollTop = Number(params.get("top") ?? 6 * TURN); +const width = Number(params.get("w") ?? 1280); +const height = Number(params.get("h") ?? 820); +const prompts = Number(params.get("prompts") ?? 18); +const row = (id: string, kind: string, text?: string, extra: Partial = {}): AcpmuxRow => ({ + id, + kind, + text, + version: 1, + at: 1, + ...extra, +}); +const rows = Array.from({ length: prompts }, (_, index) => [ + row(`user-${index + 1}`, "user", `Reply with only the word ok and the number ${index + 1}. No tools.`), + row(`answer-${index + 1}`, "assistant", `ok ${index + 1}`), + row(`end-${index + 1}`, "turnSummary", undefined, { status: "completed", durationMs: 32_000 }), +]).flat(); -function Parity() { - const scroller = useRef(null); - return ( -
- -
- ); -} - -document.documentElement.style.setProperty("--agent-text", "rgb(255 255 254)"); -document.documentElement.style.setProperty("--agent-page-bg", "rgb(33 33 28)"); -document.documentElement.style.setProperty("--acpmux-base", "rgb(33 33 28)"); -document.body.style.cssText = "margin:0;background:rgb(33 33 28)"; -createRoot(document.getElementById("root")!).render(); +const style = document.documentElement.style; +style.setProperty("--agent-text", "rgb(218 218 218)"); +style.setProperty("--agent-muted", "rgb(129 129 129)"); +style.setProperty("--agent-page-bg", "rgb(22 22 22)"); +style.setProperty("--acpmux-base", "rgb(22 22 22)"); +document.body.style.cssText = "margin:0;background:rgb(22 22 22)"; +const root = document.getElementById("root")!; +Object.assign(root.style, { width: `${width}px`, height: `${height}px`, display: "flex", flexDirection: "column" }); +createRoot(root).render( + {}} + expanded={new Set()} + />, +); diff --git a/webviews/src/agent-session/acpmux/threadMinimap/promptMarks.ts b/webviews/src/agent-session/acpmux/threadMinimap/promptMarks.ts new file mode 100644 index 000000000000..9be3fe1470c3 --- /dev/null +++ b/webviews/src/agent-session/acpmux/threadMinimap/promptMarks.ts @@ -0,0 +1,45 @@ +// Bookmarked prompts as the rail, its card and the transcript's own prompt rows see them. acpmux +// keeps the marks with the session (bookmarks.ts, `_acpmux/bookmark_set`): a mark is the seq of the +// prompt's `user_message` record, which is its row id (`user-`). This is the one place that +// reads that API, so the rail and the rows never key a mark on their own. +import { createContext, useContext } from "react"; +import { promptSeq, useBookmarks } from "./bookmarks"; + +/// A prompt as a mark names it: its row id. +export type MarkedPrompt = { id: string }; + +/// The transcript's session, for prompt rows that mark themselves (VirtualTranscript provides it). +export const PromptMarksSession = createContext(undefined); + +/// The session acpmux keeps marks for: none for a subagent's view (`:subagent:`), whose +/// prompts are not the chat's. +const markedSession = (sessionId: string | undefined) => + sessionId && !sessionId.includes(":subagent:") ? sessionId : undefined; + +export function usePromptMarks(sessionId: string | undefined): { + has: (prompt: MarkedPrompt) => boolean; + /// Whether a prompt can carry a mark: acpmux has logged it. + can: (prompt: MarkedPrompt) => boolean; + toggle: (prompt: MarkedPrompt) => void; +} { + const session = markedSession(sessionId); + const { marks, toggle } = useBookmarks(session); + const can = (prompt: MarkedPrompt) => session !== undefined && promptSeq(prompt.id) !== undefined; + return { + has: (prompt) => { + const seq = promptSeq(prompt.id); + return seq !== undefined && marks.has(seq); + }, + can, + toggle: (prompt) => { + const seq = promptSeq(prompt.id); + if (seq !== undefined) toggle(seq); + }, + }; +} + +/// The mark of a transcript prompt row in the session being shown. +export function usePromptRowMark(row: { id: string }): { can: boolean; marked: boolean; toggle: () => void } { + const marks = usePromptMarks(useContext(PromptMarksSession)); + return { can: marks.can(row), marked: marks.has(row), toggle: () => marks.toggle(row) }; +} diff --git a/webviews/src/agent-session/acpmux/threadMinimap/scrollMotion.ts b/webviews/src/agent-session/acpmux/threadMinimap/scrollMotion.ts new file mode 100644 index 000000000000..819d1472a073 --- /dev/null +++ b/webviews/src/agent-session/acpmux/threadMinimap/scrollMotion.ts @@ -0,0 +1,72 @@ +// Scroll motion for the thread minimap: a JS-driven scroll on a cubic-bezier curve (the browser's +// smooth scroll cannot take a curve), the landing highlight on a prompt's bubble, and the Reduce +// Motion check both use. One scroll runs per scroller; the reader's own wheel, touch, pointer or key +// ends it where it is. +import { bezierAt, type CubicBezier } from "../../../ui/cubicBezier"; +import { HIGHLIGHT_EASING, HIGHLIGHT_MS } from "./model"; + +const running = new WeakMap void>(); +const READER_INPUTS = ["wheel", "pointerdown", "touchstart", "keydown"] as const; + +/// Reduce Motion: the system's, or the app's (its motion tokens are 0 when Reduce Motion is on or +/// ui.animationSpeed is off; AgentPaneTheme.motion). +export function reducedMotion(): boolean { + if (globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return true; + try { + const value = getComputedStyle(document.documentElement).getPropertyValue("--agent-motion-in").trim(); + return value === "0s" || value === "0ms"; + } catch { + return false; + } +} + +/// Ends the scroll running on `node`, if any, where it is. +export function stopScroll(node: HTMLElement): void { + running.get(node)?.(); +} + +/// Scrolls `node` to `target()` over `duration` ms on `curve`. The target is read each frame, so rows +/// that measure meanwhile move the landing with them. A zero duration jumps. +export function animateScroll(node: HTMLElement, target: () => number, duration: number, curve: CubicBezier): void { + stopScroll(node); + if (duration <= 0 || typeof requestAnimationFrame !== "function") { + node.scrollTop = target(); + return; + } + const from = node.scrollTop; + const start = performance.now(); + let frame = 0; + const end = () => { + cancelAnimationFrame(frame); + for (const name of READER_INPUTS) node.removeEventListener(name, end); + if (running.get(node) === end) running.delete(node); + }; + const step = (now: number) => { + const progress = Math.min(1, Math.max(0, (now - start) / duration)); + node.scrollTop = from + (target() - from) * bezierAt(curve, progress); + if (progress < 1) frame = requestAnimationFrame(step); + else end(); + }; + for (const name of READER_INPUTS) node.addEventListener(name, end, { passive: true }); + running.set(node, end); + frame = requestAnimationFrame(step); +} + +/// The landing highlight: the bubble's background starts at `--acpmux-landing-highlight` and eases +/// back to its own over HIGHLIGHT_MS. None under Reduce Motion. +export function highlightBubble(bubble: HTMLElement | null | undefined): void { + if (!bubble || typeof bubble.animate !== "function" || reducedMotion()) return; + const style = getComputedStyle(bubble); + const highlight = style.getPropertyValue("--acpmux-landing-highlight").trim(); + if (!highlight) return; + for (const animation of bubble.getAnimations?.() ?? []) if (animation.id === "acpmux-landing") animation.cancel(); + const animation = bubble.animate( + [ + { backgroundColor: highlight }, + { backgroundColor: highlight, offset: 0.35 }, + { backgroundColor: style.backgroundColor }, + ], + { duration: HIGHLIGHT_MS, easing: HIGHLIGHT_EASING }, + ); + animation.id = "acpmux-landing"; +} diff --git a/webviews/src/agent-session/acpmux/threadMinimap/threadMinimap.css b/webviews/src/agent-session/acpmux/threadMinimap/threadMinimap.css index 44a838da8b40..89876539596e 100644 --- a/webviews/src/agent-session/acpmux/threadMinimap/threadMinimap.css +++ b/webviews/src/agent-session/acpmux/threadMinimap/threadMinimap.css @@ -1,6 +1,7 @@ -/* Thread minimap (ThreadMinimap.tsx). Values are measured from the Codex app recording - (lane notes: thread-minimap/minimap-spec.md). Colors mix the theme's text into its page - color; motion is transform only, and opacity changes on the frame the hovered tick does. */ +/* Thread minimap (ThreadMinimap.tsx), as the Codex desktop app's prompt rail; numbers from its 60 Hz + recordings (minimap-ref SPEC, model.ts). Colors are the theme's tokens: in the dark reference + theme a resting tick is the muted text at 40% (#3d3d3d on #161616), a current one the text at + 60%, a hovered or focused one the text. Motion is transform only. */ .acpmux-minimap { position: sticky; top: 0; @@ -8,7 +9,12 @@ height: 0; /* Mixed into the opaque base (styles.css --acpmux-base), as the menus are: the page color can be clear. */ --acpmux-minimap-base: var(--acpmux-base, var(--agent-page-bg)); - --acpmux-minimap-fill: color-mix(in srgb, var(--agent-text) 7.2%, var(--acpmux-minimap-base)); + --acpmux-minimap-rest: var(--agent-muted); + --acpmux-minimap-text: var(--agent-text); + --acpmux-minimap-card: color-mix(in srgb, var(--agent-text) 7.5%, var(--acpmux-minimap-base)); + --acpmux-minimap-card-ring: color-mix(in srgb, var(--agent-text) 5%, var(--acpmux-minimap-base)); + /* The Codex rail's spring: 160 ms with about 0.8% overshoot. */ + --acpmux-minimap-spring: linear(0, 0.398 10%, 0.682 20%, 0.843 30%, 0.925 40%, 0.972 50%, 1.004 60%, 1.008 70%, 1.003 80%, 1); } /* appearance.borders none clears the popover's rim in place, as it clears the popups'. */ :root[data-borders="none"] .acpmux-minimap { @@ -16,85 +22,163 @@ } .acpmux-minimap__rail { position: absolute; - top: 0; - left: 0; - width: 50.5px; - font: 13px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; + margin: 0; + animation: acpmux-minimap-in 150ms cubic-bezier(0.23, 1, 0.32, 1); +} +@keyframes acpmux-minimap-in { + from { + opacity: 0; + } +} +.acpmux-minimap__list { + display: flex; + flex-direction: column; + height: 100%; + overflow-x: hidden; + overflow-y: auto; + overscroll-behavior: contain; + scrollbar-width: none; +} +.acpmux-minimap__list::-webkit-scrollbar { + display: none; +} +/* A rail longer than its room fades 2.5rem at an edge with more rows past it. */ +.acpmux-minimap__list[data-fade-top] { + mask-image: linear-gradient(to bottom, transparent, #000 2.5rem); +} +.acpmux-minimap__list[data-fade-bottom] { + mask-image: linear-gradient(to top, transparent, #000 2.5rem); +} +.acpmux-minimap__list[data-fade-top][data-fade-bottom] { + mask-image: linear-gradient(to bottom, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); } .acpmux-minimap__tick { - position: absolute; - top: 0; - left: 0; - width: 100%; + position: relative; + flex: none; + display: block; + width: 36px; + height: 10px; margin: 0; padding: 0; border: 0; background: none; + color: var(--acpmux-minimap-rest); cursor: pointer; outline: none; + contain: layout paint; } -.acpmux-minimap__bar { +.acpmux-minimap__bar, +.acpmux-minimap__dot { position: absolute; - top: 50%; + top: 4px; left: 0; - width: 26px; - height: 1.8px; - margin-top: -0.9px; - background: var(--agent-text); - opacity: 0.19; + background: currentColor; + opacity: 0.4; transform-origin: 0 50%; - transition: transform 50ms cubic-bezier(0.33, 1, 0.68, 1); + /* Hovering in: the spring (the first line is the fallback for an engine without linear()). */ + transition: transform 160ms cubic-bezier(0.25, 1, 0.5, 1); + transition: transform 160ms var(--acpmux-minimap-spring); } -/* Leaving the column settles faster than hovering grows (reference frames 151-155). */ -.acpmux-minimap__rail:not([data-hovering]) .acpmux-minimap__bar { - transition-duration: 35ms; +.acpmux-minimap__bar { + width: 26px; + height: 2px; +} +/* The bookmark dot: 2 px round, 2 px past the tick's end; it moves with the tick. */ +.acpmux-minimap__dot { + left: 2px; + width: 2px; + height: 2px; + border-radius: 50%; + opacity: 0; +} +/* Leaving the rail: every row eases back to rest in 150 ms. */ +.acpmux-minimap__rail:not([data-hovering]) .acpmux-minimap__bar, +.acpmux-minimap__rail:not([data-hovering]) .acpmux-minimap__dot { + transition-duration: 150ms; +} +/* A scrub switches rows with no transition; so does Reduce Motion. */ +.acpmux-minimap__rail[data-scrubbing] .acpmux-minimap__bar, +.acpmux-minimap__rail[data-scrubbing] .acpmux-minimap__dot, +.acpmux-minimap__rail[data-reduce] .acpmux-minimap__bar, +.acpmux-minimap__rail[data-reduce] .acpmux-minimap__dot { + transition: none; +} +@media (prefers-reduced-motion: reduce) { + .acpmux-minimap__rail { + animation: none; + } + .acpmux-minimap__bar, + .acpmux-minimap__dot { + transition: none; + } +} +/* Prompts on screen: the text at 60%; back to rest while the pointer is on the rail. */ +.acpmux-minimap__tick[data-tone="current"] { + color: var(--acpmux-minimap-text); } .acpmux-minimap__tick[data-tone="current"] .acpmux-minimap__bar { - opacity: 0.54; + opacity: 0.6; +} +.acpmux-minimap__rail[data-hovering] .acpmux-minimap__tick[data-tone="current"] { + color: var(--acpmux-minimap-rest); +} +.acpmux-minimap__rail[data-hovering] .acpmux-minimap__tick[data-tone="current"] .acpmux-minimap__bar { + opacity: 0.4; +} +/* The hovered, scrubbed or focused row: the text, at once (no color transition). */ +.acpmux-minimap__tick[data-tone="active"] { + color: var(--acpmux-minimap-text); } .acpmux-minimap__tick[data-tone="active"] .acpmux-minimap__bar { opacity: 1; } -/* The turn being read: longer (ThreadMinimap TICK_CURRENT_WIDTH) and in the accent (cx-f7c). */ -.acpmux-minimap__tick[data-current] .acpmux-minimap__bar { - background: var(--agent-accent); +/* A bookmarked prompt draws its tick and dot at full opacity in its color. */ +.acpmux-minimap__tick[data-bookmarked] .acpmux-minimap__bar, +.acpmux-minimap__tick[data-bookmarked] .acpmux-minimap__dot, +.acpmux-minimap__rail[data-hovering] .acpmux-minimap__tick[data-bookmarked] .acpmux-minimap__bar { opacity: 1; } -.acpmux-minimap__tick:focus-visible .acpmux-minimap__bar { - opacity: 1; - box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--agent-text) 45%, transparent); +/* No bookmark yet: the hovered row shows a faint dot where a click would set one, a little + stronger over the spot itself. */ +.acpmux-minimap__tick[data-tone="active"]:hover:not([data-bookmarked]) .acpmux-minimap__dot { + opacity: 0.3; +} +.acpmux-minimap__tick[data-tone="active"]:not([data-bookmarked]):has(.acpmux-minimap__dot-hit:hover) .acpmux-minimap__dot { + opacity: 0.6; +} +/* The dot's hit area: the row's right end past a hovered tick (26 px), so the tick keeps its click. */ +.acpmux-minimap__dot-hit { + position: absolute; + top: 0; + right: 0; + width: 9px; + height: 10px; } -.acpmux-minimap__popover { +.acpmux-minimap__card { position: absolute; top: 0; left: 0; - width: 321px; - max-width: calc(100vw - 58.5px); + width: 320px; + max-width: calc(100vw - 16px); box-sizing: border-box; - /* The edge is an inset shadow one device pixel wide (--cmux-hairline): a 0.5 px border draws two - device pixels wide. */ - padding: 8.5px 9px 7px; - border-radius: 11px; - background: var(--acpmux-minimap-fill); + /* The edge is an inset shadow one device pixel wide (--cmux-hairline, #20713); appearance.borders + none clears it through --acpmux-minimap-rim. */ + padding: 8px; + border-radius: 12px; + background: var(--acpmux-minimap-card); box-shadow: - inset 0 0 0 var(--cmux-hairline, 0.5px) - var(--acpmux-minimap-rim, color-mix(in srgb, var(--agent-text) 12.6%, var(--acpmux-minimap-base))), + inset 0 0 0 var(--cmux-hairline, 0.5px) var(--acpmux-minimap-rim, var(--acpmux-minimap-card-ring)), var(--elevation-2); color: var(--agent-text); + font: var(--text-body, 13px) / 20px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased; cursor: default; } -.acpmux-minimap__popover[hidden] { - display: block; - visibility: hidden; - pointer-events: none; -} .acpmux-minimap__title { display: flex; align-items: center; - gap: 9px; + gap: 8px; height: 20px; - line-height: 20px; font-weight: 500; } .acpmux-minimap__prompt { @@ -107,19 +191,24 @@ .acpmux-minimap__bookmark { flex: none; display: inline-flex; - width: 16px; - height: 16px; + align-items: center; + justify-content: center; + width: 20px; + height: 20px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; - color: color-mix(in srgb, var(--agent-text) 48%, transparent); + color: var(--agent-muted); cursor: pointer; } -.acpmux-minimap__bookmark:hover, +.acpmux-minimap__bookmark:hover { + background: color-mix(in srgb, var(--agent-text) 8%, transparent); + color: var(--agent-text); +} .acpmux-minimap__bookmark[aria-pressed="true"] { - color: color-mix(in srgb, var(--agent-text) 80%, transparent); + color: var(--agent-text); } .acpmux-minimap__bookmark:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--agent-text) 45%, transparent); @@ -130,19 +219,14 @@ -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; - margin-top: 5px; - line-height: 21px; - color: color-mix(in srgb, var(--agent-text) 45%, transparent); + margin-top: 4px; + color: var(--agent-muted); } .acpmux-minimap__reply p { margin: 0; } .acpmux-minimap__reply p + p { - margin-top: 13px; -} -.acpmux-minimap__reply p + .acpmux-minimap__item, -.acpmux-minimap__item + .acpmux-minimap__item { - margin-top: 3.5px; + margin-top: 4px; } .acpmux-minimap__reply strong { font-weight: 600; @@ -157,8 +241,8 @@ width: 10px; text-indent: 0; } -@media (prefers-reduced-motion: reduce) { - .acpmux-minimap__bar { - transition: none; - } +/* The landing highlight's first color (scrollMotion.ts highlightBubble): the bubble's own fill, a + step brighter (#2d2d2d over #1e1e1e in the dark reference theme). */ +.acpmux-row .cv-user__bubble { + --acpmux-landing-highlight: color-mix(in srgb, var(--agent-text) 22%, var(--acpmux-base, var(--agent-page-bg))); } diff --git a/webviews/src/agent-session/acpmux/threadMinimap/threadMinimap.gallery.ts b/webviews/src/agent-session/acpmux/threadMinimap/threadMinimap.gallery.ts index 3bc0213950c6..2e2f8d36bdbf 100644 --- a/webviews/src/agent-session/acpmux/threadMinimap/threadMinimap.gallery.ts +++ b/webviews/src/agent-session/acpmux/threadMinimap/threadMinimap.gallery.ts @@ -1,6 +1,21 @@ // l10n-allow-file: gallery fixtures (sample prompts and replies), not shipped UI. import { agentPaneEntry } from "../../../gallery/format"; import { assistant, chat, summary, user } from "../../../gallery/fixtures/acpmux"; +import { setBookmarkTransport } from "./bookmarks"; + +// The gallery has no acpmux: the chat's marks live in this page, answered as acpmux answers them. +const galleryMarks = new Map>(); +const marksOf = (sessionId: string) => galleryMarks.get(sessionId) ?? new Set(); +setBookmarkTransport({ + get: async (sessionId) => ({ sessionId, bookmarks: [...marksOf(sessionId)] }), + set: async (sessionId, seq, bookmarked) => { + const marks = marksOf(sessionId); + if (bookmarked) marks.add(seq); + else marks.delete(seq); + galleryMarks.set(sessionId, marks); + return { sessionId, bookmarks: [...marks] }; + }, +}); const turns: Array<[string, string]> = [ [ @@ -17,7 +32,7 @@ const turns: Array<[string, string]> = [ ], [ "Make the overview easy to scan while scrolling", - "The current turn uses a brighter tick, while every turn in the viewport is lit together. Hovering grows nearby ticks with a short fisheye transition.", + "Every turn in the viewport is lit together. Hovering grows nearby ticks with a 160 ms spring, all rows at once.", ], [ "Add a preview without making the transcript jump", @@ -25,7 +40,7 @@ const turns: Array<[string, string]> = [ ], [ "Keep keyboard navigation predictable", - "The rail is a roving-tabindex navigation. Arrow keys move one turn, Home and End jump to the bounds, and Enter or Space follows the turn into the transcript.", + "Every row is a tab stop, as in Codex. Focus grows the row and opens its card at once; Enter or Space follows the turn into the transcript and Escape closes the card.", ], [ "Let me mark turns I want to revisit", @@ -33,7 +48,7 @@ const turns: Array<[string, string]> = [ ], [ "Check the long-chat recording against the implementation", - "The measured reference has a 10 px pitch, 6 px resting ticks, a 26 px hovered tick, and a 110 ms preview delay. The parity fixture replays those timings frame by frame.", + "The measured reference has a 10 px pitch, 6 px resting ticks, a 26 px hovered tick, and a 250 ms preview delay. The parity page replays those timings.", ], [ "Summarize what is ready to land", @@ -41,10 +56,18 @@ const turns: Array<[string, string]> = [ ], ]; -const rows = turns.flatMap(([prompt, reply], index) => [ - user(prompt, 30 - index * 2), - assistant(reply, 29.8 - index * 2), - summary(29.6 - index * 2, { status: "completed" }), +/// Eighteen prompts, as the Codex reference thread has: the nine above, then short follow-ups. +const all: Array<[string, string]> = [ + ...turns, + ...Array.from({ length: 9 }, (_, index): [string, string] => [ + `Follow-up ${index + 1}: tighten the rail's spacing check`, + `Checked again: the rows keep a 10 px pitch and the card stays flush right of row ${index + 10}.`, + ]), +]; +const rows = all.flatMap(([prompt, reply], index) => [ + user(prompt, 60 - index * 2), + assistant(reply, 59.8 - index * 2), + summary(59.6 - index * 2, { status: "completed" }), ]); export default agentPaneEntry({ @@ -57,17 +80,31 @@ export default agentPaneEntry({ covers: [ "agent-session/acpmux/App.tsx#VirtualTranscript", "agent-session/acpmux/threadMinimap/ThreadMinimap.tsx#ThreadMinimap", + "agent-session/acpmux/threadMinimap/BookmarkIcon.tsx#BookmarkIcon", ], variants: { "long-chat": { - note: "A long conversation with one overview tick per prompt, a viewport run of lit turns, and the turn being read as a longer accent tick. The narrow gallery width stays above the minimap's 28 px gutter threshold.", + note: "Eighteen prompts as the Codex rail: 10 px rows 16 px from the left edge, the prompts on screen brighter. Hovering row 8 magnifies it and its neighbors (26, 20, 14, 10 px) and opens the preview card 250 ms later, flush right of the row.", snapshot: chat(rows, { title: "Thread minimap review" }), play: async (ctx) => { - // The PR diff runner also replays removed base widths, where the product intentionally - // hides the minimap below its gutter threshold. Current head widths always expose tick 4. - if (!ctx.document.querySelector('[data-tick="4"]')) return; - await ctx.hover({ selector: '[data-tick="4"]' }); - await ctx.waitFor(() => ctx.document.querySelector(".acpmux-minimap__popover:not([hidden])")); + // The PR diff runner also replays base widths where the rail can be hidden; skip there. + if (!ctx.document.querySelector('[data-tick="8"]')) return; + await ctx.hover({ selector: '[data-tick="8"]' }); + await ctx.waitFor(() => ctx.document.querySelector(".acpmux-minimap__card")); + }, + }, + bookmarked: { + note: "A bookmarked prompt: its tick at full opacity with the 2 px dot past it, and the card's bookmark filled. The card's button (or a click on the dot's spot, or the prompt's own row button) sets it.", + snapshot: chat(rows, { title: "Thread minimap bookmarks" }), + play: async (ctx) => { + if (!ctx.document.querySelector('[data-tick="5"]')) return; + await ctx.focus({ selector: '[data-tick="5"]' }); + await ctx.waitFor(() => ctx.document.querySelector(".acpmux-minimap__card")); + if (!ctx.document.querySelector('[data-tick="5"][data-bookmarked]')) + await ctx.click({ selector: ".acpmux-minimap__bookmark" }); + await ctx.waitFor(() => ctx.document.querySelector('[data-tick="5"][data-bookmarked]')); + await ctx.hover({ selector: '[data-tick="5"]' }); + await ctx.waitFor(() => ctx.document.querySelector('.acpmux-minimap__bookmark[aria-pressed="true"]')); }, }, }, diff --git a/webviews/test/browser/thread-minimap.harness.tsx b/webviews/test/browser/thread-minimap.harness.tsx new file mode 100644 index 000000000000..1c2e560de739 --- /dev/null +++ b/webviews/test/browser/thread-minimap.harness.tsx @@ -0,0 +1,51 @@ +// The chat's transcript with its thread minimap, as the agent pane lays it out (App.tsx), in the +// dark reference theme the minimap's numbers were measured in. The test hands it rows +// (`window.__showRows`); thread-minimap-motion.test.ts measures the rail's motion here. +import { createRoot } from "react-dom/client"; +import { VirtualTranscript } from "../../src/agent-session/acpmux/App"; +import type { AcpmuxRow } from "../../src/agent-session/acpmux/model"; +import { turnView } from "../../src/agent-session/acpmux/conversation/turns"; +// The pane's styles, as its dev entry loads them (acpmux/dev.tsx). +import "../../src/pages/shared/desktop.css"; +import "../../src/ui/popupSurface.css"; +import "../../src/agent-session/shared/styles.css"; +import "../../src/agent-session/acpmux/styles.css"; +import "katex/dist/katex.min.css"; +import "../../src/agent-session/acpmux/conversation/conversation.css"; +import "../../src/agent-session/acpmux/chips/chips.css"; +import "../../src/agent-session/acpmux/previewCard/previewCard.css"; +import "../../src/agent-session/acpmux/changes/changes.css"; +import "../../src/agent-session/acpmux/turnChanges/turnChanges.css"; +import "../../src/agent-session/acpmux/summary/summary.css"; +import "../../src/agent-session/acpmux/subagents/subagents.css"; +import "../../src/agent-session/acpmux/header/header.css"; +import "../../src/agent-session/acpmux/composerControls.css"; +import "../../src/agent-session/acpmux/composerStates.css"; +import "../../src/agent-session/acpmux/composerLocation.css"; +import "../../src/agent-session/acpmux/composerAttachments.css"; +import "../../src/agent-session/acpmux/markdownField.css"; +import "../../src/agent-session/acpmux/modelPicker.css"; +import "../../src/agent-session/acpmux/keys.css"; +import "../../src/agent-session/acpmux/newtab/screen.css"; +import "../../src/agent-session/acpmux/newtab/history.css"; +import "../../src/agent-session/acpmux/threadMinimap/threadMinimap.css"; + +const root = document.getElementById("root")!; +document.documentElement.style.height = document.body.style.height = "100%"; +document.body.style.margin = "0"; +document.documentElement.style.setProperty("--agent-text", "rgb(218 218 218)"); +document.documentElement.style.setProperty("--agent-page-bg", "rgb(22 22 22)"); +document.documentElement.style.setProperty("--acpmux-base", "rgb(22 22 22)"); +document.body.style.background = "rgb(22 22 22)"; +Object.assign(root.style, { height: "100%", display: "flex", flexDirection: "column" }); + +const view = createRoot(root); +(window as unknown as { __showRows: (rows: AcpmuxRow[]) => void }).__showRows = (rows) => + view.render( + {}} + expanded={new Set()} + />, + ); diff --git a/webviews/test/browser/thread-minimap.html b/webviews/test/browser/thread-minimap.html new file mode 100644 index 000000000000..7e05d47918f8 --- /dev/null +++ b/webviews/test/browser/thread-minimap.html @@ -0,0 +1,12 @@ + + + + + + thread minimap harness + + +
+ + + diff --git a/webviews/test/hover-intent-cards.test.tsx b/webviews/test/hover-intent-cards.test.tsx index a9d2618fa788..f6adc7b691f9 100644 --- a/webviews/test/hover-intent-cards.test.tsx +++ b/webviews/test/hover-intent-cards.test.tsx @@ -80,17 +80,27 @@ test("the minimap's turn preview waits the hover delay, then follows the pointer ); const rail = dom.window.document.querySelector(".acpmux-minimap__rail")!; expect(rail).not.toBeNull(); - const pitch = Number.parseFloat(rail.style.height) / TURNS; - const popover = () => dom.window.document.querySelector(".acpmux-minimap__popover"); + const tick = (index: number) => dom.window.document.querySelectorAll(".acpmux-minimap__tick")[index]!; + const popover = () => dom.window.document.querySelector(".acpmux-minimap__card"); const visible = () => popover() !== null && !popover()!.hidden; + // The rail's rows take the pointer (their pointerenter and pointerleave, which React draws + // from pointerover and pointerout): onto the rail from outside, then from row to row. + let under: number | undefined; + const pointer = (type: string, target: Element, relatedTarget: Element | null) => + target.dispatchEvent(new dom.window.MouseEvent(type, { bubbles: true, relatedTarget })); const move = (index: number) => act(async () => { - rail.dispatchEvent(new dom.window.MouseEvent("pointermove", { bubbles: true, clientY: pitch * index + 1 })); + if (under === undefined) pointer("pointerover", tick(index), dom.window.document.body); + else if (under !== index) { + pointer("pointerout", tick(under), tick(index)); + pointer("pointerover", tick(index), tick(under)); + } + under = index; }); const leave = () => act(async () => { - rail.dispatchEvent(new dom.window.MouseEvent("pointerout", { bubbles: true, relatedTarget: null })); - rail.dispatchEvent(new dom.window.MouseEvent("pointerleave", { bubbles: false, relatedTarget: null })); + if (under !== undefined) pointer("pointerout", tick(under), null); + under = undefined; }); await move(2); diff --git a/webviews/test/subtle-elevation.test.ts b/webviews/test/subtle-elevation.test.ts index 7e37fac68b6e..b301680c6ca9 100644 --- a/webviews/test/subtle-elevation.test.ts +++ b/webviews/test/subtle-elevation.test.ts @@ -247,7 +247,7 @@ describe("one subtle elevation scale", () => { ["agent-session/acpmux/styles.css", ".acpmux-shell[data-sidebar=open] .acpmux-sidebar", "--elevation-2"], ["agent-session/acpmux/conversation/conversation.css", ".acpmux-find__bar", "--elevation-2"], ["agent-session/acpmux/conversation/conversation.css", ".acpmux-jump-latest", "--elevation-2"], - ["agent-session/acpmux/threadMinimap/threadMinimap.css", ".acpmux-minimap__popover", "--elevation-2"], + ["agent-session/acpmux/threadMinimap/threadMinimap.css", ".acpmux-minimap__card", "--elevation-2"], ["agent-session/acpmux/summary/summary.css", ".acpmux-summary-card", "--elevation-2"], ["agent-session/acpmux/addProject.css", ".acpmux-add-project-dialog", "--elevation-2"], ["agent-session/acpmux/composerAttachments.css", ".acpmux-pdf-viewer", "--elevation-2"], diff --git a/webviews/test/thread-bookmarks.test.tsx b/webviews/test/thread-bookmarks.test.tsx index f446a7765be0..719eec2f5439 100644 --- a/webviews/test/thread-bookmarks.test.tsx +++ b/webviews/test/thread-bookmarks.test.tsx @@ -45,17 +45,15 @@ afterAll(() => { }); const row = (id: string, kind: string, text: string): AcpmuxRow => ({ id, kind, text, version: 1, at: 1 }); -// Two prompts (acpmux seqs 3 and 7), each with a reply. -const rows = [ - row("user-3", "user", "first prompt"), - row("assistant-4", "assistant", "first reply"), - row("user-7", "user", "second prompt"), - row("assistant-8", "assistant", "second reply"), -]; +// Four prompts (acpmux seqs 3, 7, 11 and 15; the rail shows from four), each with a reply. +const rows = [3, 7, 11, 15].flatMap((seq, index) => [ + row(`user-${seq}`, "user", `prompt ${index + 1}`), + row(`assistant-${seq + 1}`, "assistant", `reply ${index + 1}`), +]); const layout: ConversationLayout = { - tops: Float64Array.from([0, 100, 200, 300]), - heights: Float64Array.from([100, 100, 100, 100]), - totalHeight: 400, + tops: Float64Array.from(rows.map((_, index) => index * 100)), + heights: Float64Array.from(rows.map(() => 100)), + totalHeight: rows.length * 100, }; type Call = { sessionId: string; seq: number; bookmarked: boolean }; @@ -109,14 +107,9 @@ async function mount() { return { host, root }; } -/// Points at tick `index` (jsdom lays nothing out: the rail starts at 0) and returns its popover button. +/// Focuses tick `index` (its card opens at once) and returns the card's bookmark button. async function bookmarkOf(host: HTMLElement, index: number): Promise { - const rail = host.querySelector(".acpmux-minimap__rail")!; - const tick = host.querySelector(`[data-tick="${index}"]`)!; - const pitch = parseFloat(tick.style.height); - await act(async () => { - rail.dispatchEvent(new dom.window.MouseEvent("pointermove", { bubbles: true, clientY: pitch * index + 1 })); - }); + await act(async () => host.querySelector(`[data-tick="${index}"]`)!.focus()); return host.querySelector(".acpmux-minimap__bookmark")!; } diff --git a/webviews/test/thread-minimap-current.test.tsx b/webviews/test/thread-minimap-current.test.tsx index 95850c8f5d96..79cde16a628b 100644 --- a/webviews/test/thread-minimap-current.test.tsx +++ b/webviews/test/thread-minimap-current.test.tsx @@ -1,5 +1,5 @@ -// The thread minimap's current turn (cx-f7c): the turn being read is a longer tick in the accent, -// so the reader sees where they are in the thread at a glance (Codex style). +// The thread minimap's current prompts (cx-f7c, as the Codex rail draws them): every prompt whose +// turn is on screen is current, a brighter 6 px tick, so the reader sees where they are at a glance. import { afterAll, expect, test } from "bun:test"; import { JSDOM, VirtualConsole } from "jsdom"; import type { AcpmuxRow } from "../src/agent-session/acpmux/model"; @@ -86,7 +86,7 @@ const turns = Array.from({ length: TURNS }, (_, index) => [ const scale = (tick: Element) => tick.querySelector(".acpmux-minimap__bar")!.style.transform; -test("the minimap draws the turn being read longer than the others, in the accent", async () => { +test("the minimap marks every prompt on screen as current, at the resting length", async () => { const root = createRoot(dom.window.document.getElementById("root")!); try { await act(async () => @@ -96,24 +96,24 @@ test("the minimap draws the turn being read longer than the others, in the accen ); const ticks = () => [...dom.window.document.querySelectorAll(".acpmux-minimap__tick")]; expect(ticks()).toHaveLength(TURNS); - /// The tick marked as the turn being read; every tick is checked against it. + /// The current ticks, checked to be one run, every tick at the 6 px rest. const check = () => { - const current = ticks().findIndex((tick) => tick.getAttribute("aria-current") === "location"); - ticks().forEach((tick, index) => { - const reading = index === current; - // The accent and the length: data-current (threadMinimap.css) and a 14 px bar against the 6 px rest. - expect(tick.dataset.current).toBe(reading ? "" : undefined); - expect(scale(tick)).toContain(`scaleX(${(reading ? 14 : 6) / 26})`); - }); + const current = ticks().flatMap((tick, index) => (tick.getAttribute("aria-current") === "true" ? [index] : [])); + expect(current.length).toBeGreaterThan(0); + expect(current).toEqual(Array.from({ length: current.length }, (_, offset) => current[0]! + offset)); + for (const tick of ticks()) { + expect(scale(tick)).toContain(`scaleX(${(26 * 0.2308) / 26})`); + expect(tick.dataset.tone).toBe(tick.getAttribute("aria-current") === "true" ? "current" : "rest"); + } return current; }; - // It opens at the latest message: a turn near the end is the one being read. - expect(check()).toBeGreaterThanOrEqual(TURNS - 2); - // Scrolled to the top, the first is. + // It opens at the latest message: the last prompt is on screen. + expect(check().at(-1)).toBe(TURNS - 1); + // Scrolled to the top, the first is, with the ones below it in the viewport. const scroller = dom.window.document.querySelector(".acpmux-scroll")!; scroller.scrollTop = 0; await act(async () => void scroller.dispatchEvent(new dom.window.Event("scroll"))); - expect(check()).toBe(0); + expect(check()[0]).toBe(0); } finally { await act(async () => root.unmount()); } diff --git a/webviews/test/thread-minimap-motion.test.ts b/webviews/test/thread-minimap-motion.test.ts new file mode 100644 index 000000000000..74feebc29857 --- /dev/null +++ b/webviews/test/thread-minimap-motion.test.ts @@ -0,0 +1,258 @@ +// l10n-allow-file: test fixture prompts and replies, not shipped UI. +// The thread minimap's motion, measured in WebKit (the engine the app draws the pane in) against the +// Codex desktop app's recordings (minimap-ref SPEC): hover grows the tick to 26 px within 160 ms +// with no delay; a click scrolls on cubic-bezier(0.35, 0.05, 0, 1) for about 400 ms and lands the +// prompt's bubble 35 px below the transcript's top; its bubble's highlight runs 1400 ms. Under +// Reduce Motion none of them animate. +import { afterAll, beforeAll, describe, expect, setDefaultTimeout, test } from "bun:test"; +import path from "node:path"; +import { webkit, type Browser, type Page } from "playwright"; +import { requireBrowserLane } from "./support/requireBrowserLane"; +import { warmViteServer } from "./support/warmDevServer"; + +await requireBrowserLane("thread-minimap-motion.test.ts", async () => { + setDefaultTimeout(120_000); + try { + await (await webkit.launch({ headless: true })).close(); + } catch { + console.warn("thread-minimap-motion: skipping (run `bunx playwright install webkit`)"); + describe.skip("thread minimap motion", () => test("webkit", () => {})); + return; + } + const { createServer } = await import("vite"); + const webviews = path.resolve(import.meta.dir, ".."); + let vite: Awaited> | undefined; + let browser: Browser | undefined; + beforeAll(async () => { + vite = await createServer({ + root: webviews, + configFile: path.join(webviews, "vite.config.ts"), + server: { port: 0, host: "127.0.0.1", strictPort: false }, + logLevel: "error", + }); + await vite.listen(); + await warmViteServer(vite, "/test/browser/thread-minimap.html"); + browser = await webkit.launch({ headless: true }); + }); + afterAll(async () => { + await browser?.close(); + await vite?.close(); + }); + + const row = (id: string, kind: string, text?: string, extra: Record = {}) => ({ + id, + kind, + text, + version: 1, + at: 1, + ...extra, + }); + /// Eighteen prompts, as the reference thread has, with replies tall enough to scroll between. + const rows = Array.from({ length: 18 }, (_, index) => [ + row(`t${index}-user`, "user", `Reply with only the word ok and the number ${index + 1}. No tools.`), + row(`t${index}-answer`, "assistant", `ok ${index + 1}\n\nA second paragraph so the turn has some height.`), + row(`t${index}-end`, "turnSummary", undefined, { status: "completed", durationMs: 1_000 }), + ]).flat(); + + async function open(reduce: boolean): Promise { + const { port } = vite!.httpServer!.address() as { port: number }; + const page = await browser!.newPage({ viewport: { width: 1280, height: 820 } }); + await page.emulateMedia({ reducedMotion: reduce ? "reduce" : "no-preference" }); + await page.goto(`http://127.0.0.1:${port}/test/browser/thread-minimap.html`); + await page.waitForFunction(() => "__showRows" in window); + await page.evaluate((shown) => (window as unknown as { __showRows(rows: unknown): void }).__showRows(shown), rows); + await page.waitForSelector(".acpmux-minimap__tick"); + // To the top, where the later prompts are below and still mounted. + await page.evaluate(async () => { + document.querySelector(".acpmux-scroll")!.scrollTop = 0; + await new Promise((resolve) => setTimeout(resolve, 300)); + }); + return page; + } + + /// Samples, every frame for `ms` from now, `probe` (an expression over the page) with its time. + const sample = (page: Page, ms: number) => + page.evaluate((duration) => { + const samples: { t: number; width: number; scroll: number }[] = []; + (window as unknown as { __samples: typeof samples }).__samples = samples; + const start = performance.now(); + return new Promise((resolve) => { + const step = () => { + const bar = document.querySelector('[data-tick="5"] .acpmux-minimap__bar'); + const matrix = bar ? new DOMMatrixReadOnly(getComputedStyle(bar).transform) : undefined; + samples.push({ + t: performance.now(), + width: 26 * (matrix?.a ?? 0), + scroll: document.querySelector(".acpmux-scroll")!.scrollTop, + }); + if (performance.now() - start < duration) requestAnimationFrame(step); + else resolve(); + }; + requestAnimationFrame(step); + }); + }, ms); + const samples = (page: Page) => + page.evaluate(() => (window as unknown as { __samples: { t: number; width: number; scroll: number }[] }).__samples); + /// The center of row `index`'s tick, in page coordinates. + const tickPoint = (page: Page, index: number) => + page.evaluate((at) => { + const box = document.querySelector(`[data-tick="${at}"]`)!.getBoundingClientRect(); + return { x: box.left + 8, y: box.top + box.height / 2 }; + }, index); + test("hover grows the tick to 26 px within 160 ms, with no delay, on the spring curve", async () => { + const page = await open(false); + const style = await page.evaluate(() => { + const css = getComputedStyle(document.querySelector('[data-tick="5"] .acpmux-minimap__bar')!); + return { delay: css.transitionDelay, duration: css.transitionDuration, easing: css.transitionTimingFunction }; + }); + expect(style.delay).toBe("0s"); + expect(style.duration).toBe("0.15s"); // at rest: the 150 ms settle; hovered rows use 160 ms + const point = await tickPoint(page, 5); + await page.mouse.move(point.x + 300, point.y); + // The pointer's arrival starts a transform transition at once (no dwell). Its timeline is read + // by holding and seeking it, not by sampling frames: a CI runner's headless WebKit paces + // frames unevenly. The hold starts in the transition's own `transitionrun`. + await page.evaluate(() => { + const bar = document.querySelector('[data-tick="5"] .acpmux-minimap__bar')!; + const held = window as unknown as { __held?: Animation; __over: number }; + held.__over = 0; + document.addEventListener("pointerover", () => (held.__over = performance.now()), { once: true, capture: true }); + bar.addEventListener( + "transitionrun", + () => { + const running = bar + .getAnimations() + .find((entry) => (entry as CSSTransition).transitionProperty === "transform"); + running?.pause(); + held.__held = running; + (held as unknown as { __run: number }).__run = performance.now(); + }, + { once: true }, + ); + }); + await page.mouse.move(point.x, point.y); + await page.waitForFunction(() => "__held" in window, undefined, { timeout: 5_000 }); + const transition = await page.evaluate(() => { + const bar = document.querySelector('[data-tick="5"] .acpmux-minimap__bar')!; + const held = window as unknown as { __held?: Animation; __over: number; __run: number }; + const running = held.__held; + if (!running) return undefined; + const timing = running.effect!.getComputedTiming(); + const width = (ms: number) => { + running.pause(); + running.currentTime = ms; + return 26 * new DOMMatrixReadOnly(getComputedStyle(bar).transform).a; + }; + const widths = [0, 40, 80, 112, 160].map(width); + running.currentTime = 160; + running.play(); + return { + duration: timing.duration, + delay: timing.delay, + // From the pointer reaching the row to the transition starting. + wait: held.__run - held.__over, + widths, + }; + }); + expect(transition).toBeDefined(); + expect(transition!.wait).toBeLessThan(60); + // 160 ms, no delay, on the spring (the CSS `linear()` curve, or its cubic-bezier fallback). + expect(transition!.duration).toBe(160); + expect(transition!.delay).toBe(0); + const [w0, w40, w80, w112, w160] = transition!.widths; + // From the 6 px rest through the lengths between (a transition, not a jump) to 26 px. + expect(Math.round(w0!)).toBe(6); + expect(w40!).toBeGreaterThan(8); + expect(w40!).toBeLessThan(25.4); + expect(w80!).toBeGreaterThan(w40!); + // The spring's small overshoot (about 0.8%), then 26 px. + expect(w112!).toBeLessThan(26 * 1.012); + expect(Math.round(w160!)).toBe(26); + const hovered = await page.evaluate(() => { + const css = getComputedStyle(document.querySelector('[data-tick="5"] .acpmux-minimap__bar')!); + return { delay: css.transitionDelay, duration: css.transitionDuration }; + }); + expect(hovered).toEqual({ delay: "0s", duration: "0.16s" }); + await page.close(); + }); + + test("a click scrolls about 400 ms on the measured curve, lands the bubble 35 px down and highlights it 1400 ms", async () => { + const page = await open(false); + // The mounted prompt about 650 px down. + const target = await page.evaluate(() => { + const view = document.querySelector(".acpmux-scroll")!.getBoundingClientRect(); + const prompts = [...document.querySelectorAll(".acpmux-row.acpmux-user")]; + const pick = prompts.find((node) => node.getBoundingClientRect().top - view.top > 620)!; + return Number(pick.dataset.rowId!.replace(/^t(\d+)-user$/, "$1")); + }); + const point = await tickPoint(page, target); + await page.mouse.move(point.x, point.y); + await page.waitForTimeout(400); + const sampling = sample(page, 900); + // The click, while the target's row is mounted (an unmounted one jumps at once, by design). + const mounted = await page.evaluate((index) => { + const row = document.querySelector(`.acpmux-row[data-row-id="t${index}-user"]`); + (window as unknown as { __over: number }).__over = performance.now(); + document.querySelector(`[data-tick="${index}"]`)!.click(); + return row !== null; + }, target); + expect(mounted).toBe(true); + await sampling; + const clicked = await page.evaluate(() => (window as unknown as { __over: number }).__over); + const scrolls = (await samples(page)).filter((entry) => entry.t >= clicked); + const final = scrolls.at(-1)!.scroll; + expect(final).toBeGreaterThan(500); + const landed = scrolls.find((entry) => Math.abs(entry.scroll - final) < 0.5)!; + // About 400 ms for about 650 px. + expect(landed.t - clicked).toBeGreaterThan(320); + expect(landed.t - clicked).toBeLessThan(500); + // The curve: slow out of the start (cubic-bezier(0.35, 0.05, 0, 1)), past 85% by 60% of the time. + const progress = (ms: number) => scrolls.find((entry) => entry.t - clicked >= ms)!.scroll / final; + expect(progress(40)).toBeLessThan(0.12); + expect(progress(240)).toBeGreaterThan(0.85); + const landing = await page.evaluate((index) => { + const view = document.querySelector(".acpmux-scroll")!.getBoundingClientRect(); + const bubble = document.querySelector(`.acpmux-row[data-row-id="t${index}-user"] .cv-user__bubble`)!; + const animation = bubble.getAnimations().find((entry) => entry.id === "acpmux-landing"); + const timing = animation?.effect?.getTiming(); + return { + offset: bubble.getBoundingClientRect().top - view.top, + duration: timing?.duration, + easing: timing?.easing, + }; + }, target); + expect(Math.abs(landing.offset - 35)).toBeLessThanOrEqual(1); + expect(landing.duration).toBe(1400); + expect(landing.easing?.replace(/\s/g, "")).toBe("cubic-bezier(0.23,1,0.32,1)"); + await page.close(); + }); + + test("under Reduce Motion the tick, the scroll and the highlight do not animate", async () => { + const page = await open(true); + const point = await tickPoint(page, 9); + await page.mouse.move(point.x, point.y); + await page.waitForTimeout(50); + const hovered = await page.evaluate(() => { + const css = getComputedStyle(document.querySelector('[data-tick="9"] .acpmux-minimap__bar')!); + return { duration: css.transitionDuration, width: 26 * new DOMMatrixReadOnly(css.transform).a }; + }); + // No transition (an engine may report a stylesheet's near-zero reduce-motion duration). + expect(parseFloat(hovered.duration)).toBeLessThan(0.001); + expect(Math.round(hovered.width)).toBe(26); + const result = await page.evaluate(async () => { + const scroller = document.querySelector(".acpmux-scroll")!; + const before = scroller.scrollTop; + document.querySelector('[data-tick="9"]')!.click(); + const after = scroller.scrollTop; + await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve))); + const bubble = document.querySelector('.acpmux-row[data-row-id="t9-user"] .cv-user__bubble'); + return { + moved: after !== before, + settled: scroller.scrollTop === after, + animations: bubble?.getAnimations().filter((entry) => entry.id === "acpmux-landing").length ?? 0, + }; + }); + expect(result).toEqual({ moved: true, settled: true, animations: 0 }); + await page.close(); + }); +}); diff --git a/webviews/test/thread-minimap-rail.test.tsx b/webviews/test/thread-minimap-rail.test.tsx new file mode 100644 index 000000000000..3fd84314deef --- /dev/null +++ b/webviews/test/thread-minimap-rail.test.tsx @@ -0,0 +1,368 @@ +// The thread minimap as the Codex desktop app's prompt rail (minimap-ref SPEC): it shows from four +// prompts with room left of the column; hover magnifies like the Dock and opens a preview card on +// Codex's timing; every row is a tab stop whose focus opens the card at once; a click or Return +// jumps; a drag scrubs; bookmarks show as a dot past the tick, toggle from the dot, the card and +// the prompt's own row, and the Previous and Next Bookmarked Prompt actions step through them. +// Scroll motion and the landing highlight run under Reduce Motion here (instant); the browser test +// (thread-minimap-motion.test.ts) checks their curves. +import { afterAll, afterEach, expect, jest, test } from "bun:test"; +import { JSDOM, VirtualConsole } from "jsdom"; +import type { AcpmuxRow } from "../src/agent-session/acpmux/model"; +import { turnView } from "../src/agent-session/acpmux/conversation/turns"; + +const dom = new JSDOM("
", { + url: "http://localhost/", + pretendToBeVisual: true, + virtualConsole: new VirtualConsole(), +}); +const scope = globalThis as Record; +const replacements: Record = { + window: dom.window, + document: dom.window.document, + navigator: dom.window.navigator, + HTMLElement: dom.window.HTMLElement, + Element: dom.window.Element, + customElements: dom.window.customElements, + Node: dom.window.Node, + MutationObserver: dom.window.MutationObserver, + getComputedStyle: dom.window.getComputedStyle.bind(dom.window), + // Reduce Motion: scrolls land at once, so a test reads where they land. + matchMedia: (query: string) => ({ matches: query.includes("reduce"), media: query }), + IntersectionObserver: class { + observe() {} + unobserve() {} + disconnect() {} + }, + ResizeObserver: class { + observe() {} + unobserve() {} + disconnect() {} + }, + requestAnimationFrame: dom.window.requestAnimationFrame.bind(dom.window), + cancelAnimationFrame: dom.window.cancelAnimationFrame.bind(dom.window), + IS_REACT_ACT_ENVIRONMENT: true, +}; +for (const key of Object.getOwnPropertyNames(dom.window)) + if (/^(HTML|SVG|CSS|Shadow|Document|Mutation)/.test(key) && !(key in scope)) + replacements[key] = (dom.window as unknown as Record)[key]; +const saved = Object.keys(replacements).map((key) => [key, key in scope, scope[key]] as const); +Object.assign(scope, replacements); + +// jsdom has no layout: a 600 px viewport, a pane `paneWidth` wide, and a scroll offset. +const VIEWPORT = 600; +let paneWidth = 1040; +Object.defineProperty(dom.window.HTMLElement.prototype, "clientHeight", { configurable: true, get: () => VIEWPORT }); +Object.defineProperty(dom.window.HTMLElement.prototype, "clientWidth", { configurable: true, get: () => paneWidth }); +const offsets = new WeakMap(); +Object.defineProperty(dom.window.HTMLElement.prototype, "scrollTop", { + configurable: true, + get(this: object) { + return offsets.get(this) ?? 0; + }, + set(this: object, value: number) { + offsets.set(this, value); + }, +}); +dom.window.HTMLElement.prototype.scrollTo = function (this: HTMLElement, options?: ScrollToOptions | number) { + this.scrollTop = typeof options === "number" ? 0 : (options?.top ?? 0); +} as typeof HTMLElement.prototype.scrollTo; + +const { act } = await import("react"); +const { createRoot } = await import("react-dom/client"); +const { VirtualTranscript } = await import("../src/agent-session/acpmux/App"); +const { setBookmarkTransport } = await import("../src/agent-session/acpmux/threadMinimap/bookmarks"); +// acpmux's bookmarks for the chat, answering at once (thread-bookmarks.test.tsx covers its replies). +const acpmuxMarks = new Set(); +setBookmarkTransport({ + get: async (sessionId) => ({ sessionId, bookmarks: [...acpmuxMarks] }), + set: async (sessionId, seq, bookmarked) => { + if (bookmarked) acpmuxMarks.add(seq); + else acpmuxMarks.delete(seq); + return { sessionId, bookmarks: [...acpmuxMarks] }; + }, +}); + +afterAll(() => { + setBookmarkTransport(undefined); + dom.window.close(); + for (const [key, had, value] of saved) { + if (had) scope[key] = value; + else delete scope[key]; + } +}); +afterEach(() => { + jest.useRealTimers(); + paneWidth = 1040; +}); + +const document = dom.window.document; +const row = (id: string, kind: string, text?: string): AcpmuxRow => ({ id, kind, text, version: 1, at: 1 }); +const chat = (count: number) => + Array.from({ length: count }, (_, index) => [ + // Prompt rows are `user-`, the seq acpmux logs them at (a bookmark names it). + row(`user-${index + 1}`, "user", `Question ${index}`), + row(`t${index}-answer`, "assistant", `Answer ${index}.\n\nWith a second paragraph so the turn has height.`), + { ...row(`t${index}-end`, "turnSummary"), status: "completed", durationMs: 1_000 }, + ]).flat(); + +async function mount(prompts: number) { + const root = createRoot(document.getElementById("root")!); + await act(async () => + root.render( + {}} + expanded={new Set()} + />, + ), + ); + const scroller = document.querySelector(".acpmux-scroll")!; + const scrolled = () => act(async () => void scroller.dispatchEvent(new dom.window.Event("scroll"))); + await act(async () => { + scroller.scrollTop = 0; + scroller.dispatchEvent(new dom.window.Event("scroll")); + }); + return { root, scroller, scrolled, unmount: () => act(async () => root.unmount()) }; +} + +const ticks = () => [...document.querySelectorAll(".acpmux-minimap__tick")]; +const tick = (index: number) => ticks()[index]!; +const card = () => document.querySelector(".acpmux-minimap__card"); +/// A tick's drawn length in px, from its bar's scale of the 26 px box. +const length = (index: number) => + 26 * + Number( + /scaleX\(([\d.]+)\)/.exec(tick(index).querySelector(".acpmux-minimap__bar")!.style.transform)?.[1], + ); +const pointer = (type: string, target: Element, init: Record = {}) => + act(async () => { + const Event = (dom.window as unknown as { PointerEvent?: typeof MouseEvent }).PointerEvent ?? dom.window.MouseEvent; + target.dispatchEvent(new Event(type, { bubbles: true, cancelable: true, button: 0, ...init })); + }); +const enter = (index: number) => pointer("pointerover", tick(index), { relatedTarget: document.body }); +const leave = (index: number) => pointer("pointerout", tick(index), { relatedTarget: document.body }); +const advance = (ms: number) => act(async () => void jest.advanceTimersByTime(ms)); +/// The top of a mounted row in the thread, from its transform. +const rowTop = (id: string) => + Number( + /translateY\(([\d.]+)px\)/.exec( + document.querySelector(`.acpmux-row[data-row-id="${id}"]`)!.style.transform, + )?.[1], + ); +/// Where a jump to turn `index` leaves the scroller: the prompt's bubble 35 px below the viewport +/// top (the thread pads its rows 16 px down). +const landing = (index: number) => { + const total = parseFloat(document.querySelector(".acpmux-spacer")!.style.height); + return Math.max(0, Math.min(16 + rowTop(`user-${index + 1}`) - 35, total - VIEWPORT)); +}; + +test("the rail shows from four prompts, and only with 48 px of room left of the column", async () => { + for (const [prompts, width, shown] of [ + [3, 1040, false], + [4, 1040, true], + // An 800 px pane starts the column 40 px in: no room. + [6, 800, false], + [6, 1040, true], + ] as const) { + paneWidth = width; + const view = await mount(prompts); + try { + expect({ prompts, width, shown: document.querySelector(".acpmux-minimap__rail") !== null }).toEqual({ + prompts, + width, + shown, + }); + } finally { + await view.unmount(); + } + } +}); + +test("rows are 10 px tab stops; every prompt on screen is current; hover magnifies like the Dock", async () => { + const view = await mount(12); + try { + expect(ticks()).toHaveLength(12); + // Every row is a tab stop (Tab and Shift-Tab walk them), each a button in the nav. + expect(ticks().every((node) => node.tabIndex === 0 && node.tagName === "BUTTON")).toBe(true); + // At rest every tick is 6 px, and the prompts on screen are all current. + expect(ticks().map((_, index) => Math.round(length(index)))).toEqual(Array(12).fill(6)); + expect(tick(0).getAttribute("aria-current")).toBe("true"); + expect(ticks().filter((node) => node.getAttribute("aria-current") === "true").length).toBeGreaterThan(1); + // Hovering row 5: 26 px, then 20, 14 and 10 px either side, 6 px beyond. + await enter(5); + expect(ticks().map((_, index) => Math.round(length(index)))).toEqual([6, 6, 10, 14, 20, 26, 20, 14, 10, 6, 6, 6]); + expect(tick(5).dataset.tone).toBe("active"); + // Leaving the rail puts every tick back to rest. + await leave(5); + expect(ticks().map((_, index) => Math.round(length(index)))).toEqual(Array(12).fill(6)); + } finally { + await view.unmount(); + } +}); + +test("the card follows the app's hover intent: it waits the hover delay, follows the pointer at once while warm, and goes as the pointer leaves", async () => { + const view = await mount(8); + jest.useFakeTimers(); + try { + await enter(3); + await advance(400); + expect(card()).toBeNull(); + await advance(60); + expect(card()).not.toBeNull(); + expect(card()!.textContent).toContain("Question 3"); + // Moving to another row moves the card with it, on the same frame. + await enter(4); + expect(card()!.textContent).toContain("Question 4"); + expect(tick(4).getAttribute("aria-describedby")).toBe(card()!.id); + // Leaving the rail (not for the card): the card goes at once. + await leave(4); + expect(card()).toBeNull(); + // Back while the rail is warm: at once. + await advance(300); + await enter(2); + expect(card()!.textContent).toContain("Question 2"); + // Into the card: it stays. + await pointer("pointerout", tick(2), { relatedTarget: card() }); + await advance(1_000); + expect(card()!.textContent).toContain("Question 2"); + await pointer("pointerout", card()!, { relatedTarget: document.body }); + expect(card()).toBeNull(); + await advance(600); + // Cooled: the hover delay again. + await enter(6); + expect(card()).toBeNull(); + await advance(460); + expect(card()).not.toBeNull(); + } finally { + await view.unmount(); + } +}); + +test("keyboard focus grows its row alone and opens the card at once; Escape closes it; Return jumps", async () => { + const view = await mount(12); + try { + await act(async () => tick(6).focus()); + expect(card()?.textContent).toContain("Question 6"); + expect(Math.round(length(6))).toBe(26); + // No neighbor magnification for focus. + expect([5, 7].map((index) => Math.round(length(index)))).toEqual([6, 6]); + await act(async () => { + tick(6).dispatchEvent(new dom.window.KeyboardEvent("keydown", { key: "Escape", bubbles: true })); + }); + expect(card()).toBeNull(); + expect(document.activeElement).toBe(tick(6)); + // Return on a button is its click: the transcript lands on the prompt. + await act(async () => tick(6).click()); + await view.scrolled(); + expect(view.scroller.scrollTop).toBe(landing(6)); + } finally { + await view.unmount(); + } +}); + +test("a clicked row takes focus, as a clicked button does in Codex, so Tab goes on from the rail; the click does not hold the card open", async () => { + const view = await mount(12); + jest.useFakeTimers(); + try { + await enter(4); + await advance(500); + expect(card()?.textContent).toContain("Question 4"); + // WebKit does not focus a clicked button; the rail does, so Tab moves to the next row. + await act(async () => tick(4).click()); + expect(document.activeElement).toBe(tick(4)); + await leave(4); + await advance(200); + expect(card()).toBeNull(); + expect(Math.round(length(4))).toBe(6); + } finally { + await view.unmount(); + } +}); + +test("dragging on the rail scrubs: each row crossed jumps the transcript to it, and the drag's click does not", async () => { + const view = await mount(12); + try { + const list = document.querySelector(".acpmux-minimap__list")!; + // jsdom lays nothing out: the list's top is 0, so row n spans n*10 to n*10+10. + await pointer("pointerdown", tick(1), { clientY: 15 }); + await pointer("pointermove", list, { clientY: 45 }); + await view.scrolled(); + expect(list.closest("nav")!.hasAttribute("data-scrubbing")).toBe(true); + expect(view.scroller.scrollTop).toBe(landing(4)); + await pointer("pointermove", list, { clientY: 75 }); + await view.scrolled(); + expect(view.scroller.scrollTop).toBe(landing(7)); + expect(Math.round(length(7))).toBe(26); + await pointer("pointerup", list, { clientY: 75 }); + await act(async () => tick(1).click()); + await view.scrolled(); + expect(view.scroller.scrollTop).toBe(landing(7)); + expect(list.closest("nav")!.hasAttribute("data-scrubbing")).toBe(false); + } finally { + await view.unmount(); + } +}); + +test("a bookmark shows as the tick's dot and in the prompt's row; the dot, the card and the row toggle it", async () => { + const view = await mount(8); + const rowButton = (index: number) => + document.querySelector(`.acpmux-row[data-row-id="user-${index + 1}"] .cv-user__bookmark`)!; + try { + expect(tick(2).hasAttribute("data-bookmarked")).toBe(false); + expect(rowButton(2).getAttribute("aria-pressed")).toBe("false"); + // The prompt's own row marks it: the rail's tick gets its dot. + await act(async () => rowButton(2).click()); + expect(tick(2).hasAttribute("data-bookmarked")).toBe(true); + expect(tick(2).querySelector(".acpmux-minimap__dot")).not.toBeNull(); + expect(rowButton(2).getAttribute("aria-pressed")).toBe("true"); + // The card shows it filled, and its button removes it. + await act(async () => tick(2).focus()); + const cardButton = card()!.querySelector(".acpmux-minimap__bookmark")!; + expect(cardButton.getAttribute("aria-pressed")).toBe("true"); + await act(async () => cardButton.click()); + expect(tick(2).hasAttribute("data-bookmarked")).toBe(false); + expect(rowButton(2).getAttribute("aria-pressed")).toBe("false"); + // A click on the dot's spot past a hovered tick toggles the mark and does not jump. + const before = view.scroller.scrollTop; + await enter(5); + await act(async () => tick(5).querySelector("[data-dot-hit]")!.click()); + expect(tick(5).hasAttribute("data-bookmarked")).toBe(true); + expect(rowButton(5).getAttribute("aria-pressed")).toBe("true"); + expect(view.scroller.scrollTop).toBe(before); + await act(async () => tick(5).querySelector("[data-dot-hit]")!.click()); + expect(tick(5).hasAttribute("data-bookmarked")).toBe(false); + } finally { + await view.unmount(); + } +}); + +test("Next and Previous Bookmarked Prompt scroll to the bookmarked prompts after and before the one being read", async () => { + const view = await mount(12); + // Marked from the card: the later prompts' rows are not mounted at the top of the chat. + const mark = async (index: number) => { + await act(async () => tick(index).focus()); + await act(async () => card()!.querySelector(".acpmux-minimap__bookmark")!.click()); + }; + const step = async (name: "nextBookmarkedPrompt" | "previousBookmarkedPrompt") => { + await act(async () => void dom.window.dispatchEvent(new dom.window.CustomEvent(`cmux-acpmux-${name}`))); + await view.scrolled(); + }; + try { + await mark(2); + await mark(8); + await step("nextBookmarkedPrompt"); + expect(view.scroller.scrollTop).toBe(landing(2)); + await step("nextBookmarkedPrompt"); + expect(view.scroller.scrollTop).toBe(landing(8)); + // Past the last mark, Next stays. + await step("nextBookmarkedPrompt"); + expect(view.scroller.scrollTop).toBe(landing(8)); + await step("previousBookmarkedPrompt"); + expect(view.scroller.scrollTop).toBe(landing(2)); + await mark(2); + await mark(8); + } finally { + await view.unmount(); + } +}); diff --git a/webviews/test/thread-turn-keys.test.tsx b/webviews/test/thread-turn-keys.test.tsx index f3a1d9a0f945..792bb13bd4e1 100644 --- a/webviews/test/thread-turn-keys.test.tsx +++ b/webviews/test/thread-turn-keys.test.tsx @@ -32,6 +32,8 @@ const replacements: Record = { }, requestAnimationFrame: dom.window.requestAnimationFrame.bind(dom.window), cancelAnimationFrame: dom.window.cancelAnimationFrame.bind(dom.window), + // Reduce Motion: a step lands at once (the browser test checks its curve). + matchMedia: (query: string) => ({ matches: query.includes("reduce"), media: query }), IS_REACT_ACT_ENVIRONMENT: true, }; // Pierre's registered elements read their own DOM constructors at import time. @@ -57,11 +59,8 @@ Object.defineProperty(dom.window.HTMLElement.prototype, "scrollTop", { offsets.set(this, value); }, }); -const jumps: number[] = []; dom.window.HTMLElement.prototype.scrollTo = function (this: HTMLElement, options?: ScrollToOptions | number) { - const top = typeof options === "number" ? 0 : (options?.top ?? 0); - jumps.push(top); - this.scrollTop = top; + this.scrollTop = typeof options === "number" ? 0 : (options?.top ?? 0); } as typeof HTMLElement.prototype.scrollTo; const { act } = await import("react"); @@ -101,11 +100,18 @@ test("Previous Turn and Next Turn step the transcript through its prompts", asyn dom.window.dispatchEvent(new dom.window.CustomEvent(`cmux-acpmux-${name}`)); await scrolled(); }); - /// The turn being read, from the minimap's current tick. - const reading = () => - Number( - dom.window.document.querySelector('.acpmux-minimap__tick[aria-current="location"]')?.dataset.tick, - ); + /// The turn being read: the last whose prompt bubble is at or below 35 px under the viewport's + /// top, where a step lands it (the thread pads its rows 16 px down); the first before any is. + const reading = () => { + const prompts = turns.filter((entry) => entry.kind === "user"); + let read = 0; + prompts.forEach((entry, index) => { + const node = dom.window.document.querySelector(`.acpmux-row[data-row-id="${entry.id}"]`); + const top = Number(/translateY\(([\d.]+)px\)/.exec(node?.style.transform ?? "")?.[1] ?? NaN); + if (Math.max(0, 16 + top - 35) <= scroller.scrollTop + 1) read = index; + }); + return read; + }; await act(async () => { scroller.scrollTop = 0; await scrolled(); @@ -120,9 +126,9 @@ test("Previous Turn and Next Turn step the transcript through its prompts", asyn // At the first prompt, Previous Turn stays. await step("previousTurn"); expect(reading()).toBe(0); - jumps.length = 0; + const before = scroller.scrollTop; await step("previousTurn"); - expect(jumps).toEqual([]); + expect(scroller.scrollTop).toBe(before); expect(reading()).toBe(0); // A step counts from where the reader is, not from an earlier step's target: Next twice, then