Decouple bundled UI from runtime API and add remote instance tooling (#1228)

Add a packaged-client runtime boundary so the shared UI can talk to local,
desktop, remote, and VS Code runtimes through the right transport instead of
assuming one same-origin web server.

Centralize OpenChamber-owned API access behind RuntimeAPIs, runtimeFetch, and
runtime URL helpers, while keeping official OpenCode traffic on the SDK path.
Support runtime switching, remote host selection, desktop client credentials,
and headless connection links for pairing packaged clients with remote
OpenChamber servers.

Harden the new auth model by moving long-lived client tokens out of browser
URLs, introducing short-lived scoped URL tokens for browser-owned transports,
restricting URL-token access to explicit readable/realtime routes, and making
client-token management session-scoped or self-scoped as appropriate.

Update browser-owned assets and preview proxy flows to work with the split
runtime model, including authenticated project icons, preview token propagation,
CSP-safe preview bridge injection, and preview proxy auth that survives
short-lived URL-token expiry.

Tighten Electron security boundaries for packaged clients by gating privileged
preload state to trusted origins and requiring explicit confirmation before
connect deep-links import or switch remote runtimes.

Also refresh agent guidance and project skills so future runtime/API, auth,
preview, UI, CLI, settings, locale, and drag-to-reorder work follows the new
architecture.
This commit is contained in:
Bohdan Triapitsyn
2026-06-02 00:43:05 +03:00
committed by GitHub
parent a4314c189b
commit 2031e3b4a8
282 changed files with 16524 additions and 4259 deletions
+101
View File
@@ -28,6 +28,94 @@ export const dict: Record<I18nKey, string> = {
'layout.mainTab.files': 'Pliki',
'layout.mainTab.terminal': 'Terminal',
'layout.mainTab.context': 'Kontekst',
'mobile.nav.aria': 'Nawigacja mobilna',
'mobile.nav.changes': 'Zmiany',
'mobile.nav.settings': 'Ustawienia',
'mobile.surface.closeAria': 'Zamknij',
'mobile.header.openMenuAria': 'Otwórz menu',
'mobile.menu.titleAria': 'Narzędzia obszaru roboczego',
'mobile.menu.files': 'Pliki',
'mobile.menu.changes': 'Zmiany',
'mobile.menu.settings': 'Ustawienia',
'mobile.sessions.newChatCta': 'Nowy czat w {project}',
'mobile.sessions.dateGroup.today': 'Dzisiaj',
'mobile.sessions.dateGroup.yesterday': 'Wczoraj',
'mobile.sessions.dateGroup.thisWeek': 'Wcześniej w tym tygodniu',
'mobile.sessions.dateGroup.older': 'Starsze',
'mobile.sessions.section.worktrees': 'Worktrees',
'mobile.sessions.section.otherProjects': 'Zmień projekt',
'mobile.sessions.section.projects': 'Projekty',
'mobile.sessions.empty.noProjectsTitle': 'Brak projektów',
'mobile.sessions.empty.noProjectsDescription': 'Dodaj projekt, aby zacząć rozmawiać ze swoim kodem.',
'mobile.sessions.empty.noSessionsTitle': 'Brak sesji',
'mobile.sessions.empty.noSessionsDescription': 'Rozpocznij pierwszy czat, aby zobaczyć go tutaj.',
'mobile.sessions.empty.searchTitle': 'Brak wyników',
'mobile.sessions.empty.searchDescription': 'Spróbuj innego zapytania.',
'mobile.sessions.showArchived': 'Pokaż zarchiwizowane ({count})',
'mobile.sessions.hideArchived': 'Ukryj zarchiwizowane',
'mobile.sessions.activeWorktreeAria': 'Aktywny worktree',
'mobile.sessions.activeProjectAria': 'Aktywny projekt',
'mobile.sessions.startNewChat': 'Rozpocznij nowy czat',
'mobile.sessions.newChat': 'Nowy czat',
'mobile.sessions.editOrder': 'Zmień kolejność projektów',
'mobile.sessions.doneEditing': 'Gotowe',
'mobile.sessions.editOrderHint': 'Przeciągnij uchwyt lub użyj strzałek, aby zmienić kolejność. Naciśnij znacznik, aby zakończyć.',
'mobile.sessions.dragHandleAria': 'Przeciągnij {label}, aby zmienić kolejność',
'mobile.sessions.moveUpAria': 'Przenieś {label} w górę',
'mobile.sessions.moveDownAria': 'Przenieś {label} w dół',
'mobile.sessions.removeProjectAria': 'Usuń {label}',
'mobile.sessions.cancelRemoveProjectAria': 'Anuluj usuwanie {label}',
'mobile.sessions.confirmRemoveProject': 'Usuń',
'mobile.sessions.confirmRemoveProjectAria': 'Potwierdź usunięcie {label}',
'mobile.sessions.toast.projectRemoved': 'Usunięto {label}',
'mobile.sessions.showMore': 'Pokaż jeszcze {count}',
'mobile.sessions.search.section.sessions': 'Sesje',
'mobile.sessions.search.section.archived': 'Zarchiwizowane',
'mobile.sessions.search.section.projects': 'Projekty',
'mobile.sessions.clearSearchAria': 'Wyczyść wyszukiwanie',
'mobile.header.noProject': 'Wybierz projekt',
'mobile.header.activeSession': 'Aktywna sesja',
'mobile.header.noSession': 'Brak aktywnej sesji',
'mobile.sessions.openSheetAria': 'Otwórz sesje i projekty',
'mobile.sessions.closeSheetAria': 'Zamknij sesje i projekty',
'mobile.sessions.sheet.title': 'Sesje',
'mobile.sessions.sheet.description': 'Przełączaj projekty, otwieraj sesje albo zacznij nowy czat.',
'mobile.sessions.search.placeholder': 'Szukaj sesji',
'mobile.sessions.empty': 'Nie znaleziono sesji.',
'mobile.sessions.unassignedProject': 'Inne sesje',
'mobile.sessions.newSessionAria': 'Rozpocznij nową sesję w tym projekcie',
'mobile.sessions.untitled': 'Sesja bez tytułu',
'mobile.sessions.project.sessionsSingle': '1 sesja',
'mobile.sessions.project.sessionsPlural': 'Sesje: {count}',
'mobile.files.refreshAria': 'Odśwież pliki',
'mobile.files.backToParentAria': 'Wróć do {name}',
'mobile.files.rootDirectory': 'Pliki projektu',
'mobile.files.search.placeholder': 'Szukaj plików',
'mobile.files.search.empty': 'Nie znaleziono plików.',
'mobile.files.parentDirectory': 'Katalog nadrzędny',
'mobile.files.empty.noDirectory': 'Wybierz projekt, aby przeglądać pliki.',
'mobile.files.empty.directory': 'Ten katalog jest pusty.',
'mobile.files.error.listFailed': 'Nie udało się załadować plików',
'mobile.files.error.readUnavailable': 'Podgląd pliku jest niedostępny w tym środowisku.',
'mobile.files.file.truncated': 'Podgląd pliku został skrócony dla trybu mobilnego.',
'mobile.files.copyPathAria': 'Kopiuj ścieżkę pliku',
'mobile.files.copyContent': 'Kopiuj zawartość',
'mobile.files.copyContentAria': 'Kopiuj zawartość pliku',
'mobile.files.toast.pathCopied': 'Ścieżka skopiowana',
'mobile.files.toast.contentCopied': 'Zawartość skopiowana',
'mobile.files.toast.copyFailed': 'Kopiowanie nie powiodło się',
'mobile.changes.placeholder.title': 'Zmiany',
'mobile.changes.placeholder.description': 'Tutaj będą przegląd drzewa roboczego, sync i commity.',
'mobile.changes.branchLabel': 'Gałąź: {branch}',
'mobile.changes.noRemote': 'Brak dostępnego remote',
'mobile.changes.cleanDescription': 'W tym workspace nie ma zmienionych plików.',
'mobile.changes.diffDetail.subtitle': 'Diff tylko do odczytu',
'mobile.changes.diffDetail.loadFailed': 'Nie udało się wczytać diff',
'mobile.changes.diffDetail.missingTitle': 'Plik nie jest już zmieniony',
'mobile.changes.diffDetail.missingDescription': 'Wróć do Zmian i odśwież listę.',
'mobile.changes.diffDetail.imageUnavailable': 'Diffy obrazów nie są jeszcze dostępne w mobilnych Zmianach.',
'mobile.settings.placeholder.title': 'Ustawienia',
'mobile.settings.placeholder.description': 'Tutaj będą mobilne ustawienia połączenia i aplikacji.',
'layout.rightSidebar.git': 'Git',
'layout.rightSidebar.files': 'Pliki',
'layout.rightSidebar.context': 'Kontekst',
@@ -721,6 +809,8 @@ export const dict: Record<I18nKey, string> = {
'onboarding.remoteConnection.actions.chooseDifferentServer': 'Wybierz inny serwer',
'onboarding.remoteConnection.actions.useLocalInstead': 'Użyj lokalnego zamiast',
'onboarding.remoteConnection.probe.authMessage': 'Serwer wymaga uwierzytelnienia. Nadal możesz się połączyć, ale może być konieczne podanie danych uwierzytelniających.',
'onboarding.remoteConnection.probe.updateRecommendedMessage': 'Ta instancja używa innej wersji OpenChamber. Możesz się połączyć, ale zaktualizuj obie aplikacje, jeśli coś nie działa.',
'onboarding.remoteConnection.probe.incompatibleMessage': 'Serwer uruchamia OpenChamber, ale nie jest zgodny z tą wersją aplikacji. Zaktualizuj OpenChamber na serwerze i spróbuj ponownie.',
'onboarding.remoteConnection.probe.wrongServiceMessage': 'Serwer odpowiedział, ale nie uruchomiono na nim OpenChamber. Zweryfikuj czy adres wskazuje na serwer OpenChamber.',
'onboarding.remoteConnection.probe.unreachableMessage': 'Serwer jest nieosiągalny. Sprawdź swoje połączenie sieciowe i zweryfikuj adres serwera.',
'onboarding.desktopRecovery.localUnavailable.title': 'OpenCode lokalny niedostępny',
@@ -734,6 +824,8 @@ export const dict: Record<I18nKey, string> = {
'onboarding.desktopRecovery.remoteUnreachable.retry': 'Ponów połączenie',
'onboarding.desktopRecovery.incompatibleServer.title': 'Niekompatybilny serwer',
'onboarding.desktopRecovery.incompatibleServer.description': 'Serwer pod adresem "{host}" nie uruchamia OpenChamber. Zweryfikuj czy adres wskazuje na serwer OpenChamber.',
'onboarding.desktopRecovery.remoteIncompatible.title': 'Wymagana aktualizacja serwera',
'onboarding.desktopRecovery.remoteIncompatible.description': 'Serwer OpenChamber pod adresem "{host}" nie jest zgodny z tą wersją aplikacji. Zaktualizuj OpenChamber na serwerze i spróbuj ponownie.',
'onboarding.desktopRecovery.common.useLocal': 'Użyj lokalnego',
'onboarding.desktopRecovery.common.useRemote': 'Użyj zdalnego',
'onboarding.desktopRecovery.actions.retrying': 'Ponawianie...',
@@ -1257,6 +1349,9 @@ export const dict: Record<I18nKey, string> = {
'desktopHostSwitcher.state.loading': 'Ładowanie...',
'desktopHostSwitcher.status.authRequired': 'Wymagane uwierzytelnienie',
'desktopHostSwitcher.status.connected': 'Połączono',
'desktopHostSwitcher.status.checking': 'Sprawdzanie',
'desktopHostSwitcher.status.updateRecommended': 'Zalecana aktualizacja',
'desktopHostSwitcher.status.incompatible': 'Niekompatybilna',
'desktopHostSwitcher.status.ping': ' · {ms}ms ping',
'desktopHostSwitcher.status.unknown': 'Nieznany',
'desktopHostSwitcher.status.unreachable': 'Nieosiągalna',
@@ -1817,6 +1912,12 @@ export const dict: Record<I18nKey, string> = {
'header.services.modelFamily.other': 'Inne',
'header.services.noRateLimits': 'Brak dostępnych limitów użycia.',
'header.services.noRateLimitsReported': 'Nie zgłoszono limitów użycia.',
'header.services.remoteUpdate.title': 'Aktualizacja zdalnej instancji',
'header.services.remoteUpdate.checking': 'Sprawdzanie aktualizacji...',
'header.services.remoteUpdate.upToDate': 'Ta instancja jest aktualna.',
'header.services.remoteUpdate.available': 'Wersja {version} jest dostępna dla tej instancji.',
'header.services.remoteUpdate.error': 'Nie udało się sprawdzić aktualizacji zdalnej instancji',
'header.services.remoteUpdate.actions.open': 'Aktualizuj',
'header.services.open': 'Otwórz instancję, użycie i MCP',
'header.services.openWithCurrent': 'Otwórz instancję, użycie i MCP (bieżąca: {current})',
'header.services.rateLimits': 'Limity użycia',