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
@@ -27,6 +27,94 @@ export const dict: Record<I18nKey, string> = {
"layout.mainTab.files": "Файли",
"layout.mainTab.terminal": "Термінал",
"layout.mainTab.context": "Контекст",
"mobile.nav.aria": "Мобільна навігація",
"mobile.nav.changes": "Зміни",
"mobile.nav.settings": "Налаштування",
"mobile.surface.closeAria": "Закрити",
"mobile.header.openMenuAria": "Відкрити меню",
"mobile.menu.titleAria": "Інструменти робочого простору",
"mobile.menu.files": "Файли",
"mobile.menu.changes": "Зміни",
"mobile.menu.settings": "Налаштування",
"mobile.sessions.newChatCta": "Новий чат у {project}",
"mobile.sessions.dateGroup.today": "Сьогодні",
"mobile.sessions.dateGroup.yesterday": "Вчора",
"mobile.sessions.dateGroup.thisWeek": "Раніше цього тижня",
"mobile.sessions.dateGroup.older": "Давніше",
"mobile.sessions.section.worktrees": "Worktrees",
"mobile.sessions.section.otherProjects": "Інші проєкти",
"mobile.sessions.section.projects": "Проєкти",
"mobile.sessions.empty.noProjectsTitle": "Ще немає проєктів",
"mobile.sessions.empty.noProjectsDescription": "Додай проєкт, щоб почати спілкування з кодом.",
"mobile.sessions.empty.noSessionsTitle": "Ще немає сесій",
"mobile.sessions.empty.noSessionsDescription": "Почни перший чат, щоб побачити його тут.",
"mobile.sessions.empty.searchTitle": "Нічого не знайдено",
"mobile.sessions.empty.searchDescription": "Спробуй інший запит.",
"mobile.sessions.showArchived": "Показати архівовані ({count})",
"mobile.sessions.hideArchived": "Сховати архівовані",
"mobile.sessions.activeWorktreeAria": "Активний worktree",
"mobile.sessions.activeProjectAria": "Активний проєкт",
"mobile.sessions.startNewChat": "Почати новий чат",
"mobile.sessions.newChat": "Новий чат",
"mobile.sessions.editOrder": "Змінити порядок проєктів",
"mobile.sessions.doneEditing": "Готово",
"mobile.sessions.editOrderHint": "Перетягни ручку або скористайся стрілками, щоб змінити порядок проєктів. Натисни галочку щоб завершити.",
"mobile.sessions.dragHandleAria": "Перетягни {label}, щоб змінити порядок",
"mobile.sessions.moveUpAria": "Перемістити {label} вгору",
"mobile.sessions.moveDownAria": "Перемістити {label} вниз",
"mobile.sessions.removeProjectAria": "Видалити {label}",
"mobile.sessions.cancelRemoveProjectAria": "Скасувати видалення {label}",
"mobile.sessions.confirmRemoveProject": "Видалити",
"mobile.sessions.confirmRemoveProjectAria": "Підтвердити видалення {label}",
"mobile.sessions.toast.projectRemoved": "Видалено {label}",
"mobile.sessions.showMore": "Показати ще {count}",
"mobile.sessions.search.section.sessions": "Сесії",
"mobile.sessions.search.section.archived": "Архів",
"mobile.sessions.search.section.projects": "Проєкти",
"mobile.sessions.clearSearchAria": "Очистити пошук",
"mobile.header.noProject": "Виберіть проєкт",
"mobile.header.activeSession": "Активна сесія",
"mobile.header.noSession": "Немає активної сесії",
"mobile.sessions.openSheetAria": "Відкрити сесії та проєкти",
"mobile.sessions.closeSheetAria": "Закрити сесії та проєкти",
"mobile.sessions.sheet.title": "Сесії",
"mobile.sessions.sheet.description": "Перемикайте проєкти, відкривайте сесії або починайте новий чат.",
"mobile.sessions.search.placeholder": "Пошук сесій",
"mobile.sessions.empty": "Сесій не знайдено.",
"mobile.sessions.unassignedProject": "Інші сесії",
"mobile.sessions.newSessionAria": "Почати нову сесію в цьому проєкті",
"mobile.sessions.untitled": "Сесія без назви",
"mobile.sessions.project.sessionsSingle": "1 сесія",
"mobile.sessions.project.sessionsPlural": "Сесій: {count}",
"mobile.files.refreshAria": "Оновити файли",
"mobile.files.backToParentAria": "Назад до {name}",
"mobile.files.rootDirectory": "Файли проєкту",
"mobile.files.search.placeholder": "Шукати файли",
"mobile.files.search.empty": "Файлів не знайдено.",
"mobile.files.parentDirectory": "Батьківська тека",
"mobile.files.empty.noDirectory": "Виберіть проєкт, щоб переглядати файли.",
"mobile.files.empty.directory": "Ця тека порожня.",
"mobile.files.error.listFailed": "Не вдалося завантажити файли",
"mobile.files.error.readUnavailable": "Попередній перегляд файлу недоступний у цьому середовищі.",
"mobile.files.file.truncated": "Попередній перегляд файлу обрізано для мобільного режиму.",
"mobile.files.copyPathAria": "Скопіювати шлях до файлу",
"mobile.files.copyContent": "Скопіювати вміст",
"mobile.files.copyContentAria": "Скопіювати вміст файлу",
"mobile.files.toast.pathCopied": "Шлях скопійовано",
"mobile.files.toast.contentCopied": "Вміст скопійовано",
"mobile.files.toast.copyFailed": "Не вдалося скопіювати",
"mobile.changes.placeholder.title": "Зміни",
"mobile.changes.placeholder.description": "Тут буде review робочого дерева, sync і commit actions.",
"mobile.changes.branchLabel": "Гілка: {branch}",
"mobile.changes.noRemote": "Немає доступного remote",
"mobile.changes.cleanDescription": "У цьому workspace немає змінених файлів.",
"mobile.changes.diffDetail.subtitle": "Read-only diff",
"mobile.changes.diffDetail.loadFailed": "Не вдалося завантажити diff",
"mobile.changes.diffDetail.missingTitle": "Файл більше не змінений",
"mobile.changes.diffDetail.missingDescription": "Поверніться до Змін і оновіть список.",
"mobile.changes.diffDetail.imageUnavailable": "Image diffs поки недоступні в мобільних Змінах.",
"mobile.settings.placeholder.title": "Налаштування",
"mobile.settings.placeholder.description": "Тут будуть сфокусовані мобільні налаштування підключення та апки.",
"layout.rightSidebar.git": "Git",
"layout.rightSidebar.files": "Файли",
"layout.rightSidebar.context": "Контекст",
@@ -1125,6 +1213,12 @@ export const dict: Record<I18nKey, string> = {
"header.services.refreshRateLimitsAria": "Оновити ліміти запитів",
"header.services.noRateLimits": "Ліміти запитів недоступні.",
"header.services.noRateLimitsReported": "Ліміти запитів не надходять.",
"header.services.remoteUpdate.title": "Оновлення віддаленого інстанса",
"header.services.remoteUpdate.checking": "Шукаємо оновлення...",
"header.services.remoteUpdate.upToDate": "Цей інстанс уже оновлений.",
"header.services.remoteUpdate.available": "Для цього інстанса доступна версія {version}.",
"header.services.remoteUpdate.error": "Не вдалося перевірити оновлення віддаленого інстанса",
"header.services.remoteUpdate.actions.open": "Оновити",
"header.services.used": "Використано",
"header.services.remaining": "Залишилося",
"header.services.shutdownDev": "Зупинити OpenChamber",
@@ -2035,6 +2129,9 @@ export const dict: Record<I18nKey, string> = {
"desktopHostSwitcher.header.currentDefaultColon": "Поточне значення за умовчанням:",
"desktopHostSwitcher.status.connected": "Підключено",
"desktopHostSwitcher.status.authRequired": "Потрібна авторизація",
"desktopHostSwitcher.status.checking": "Перевірка",
"desktopHostSwitcher.status.updateRecommended": "Рекомендовано оновити",
"desktopHostSwitcher.status.incompatible": "Несумісний",
"desktopHostSwitcher.status.wrongService": "Неправильний сервіс",
"desktopHostSwitcher.status.unreachable": "Недосяжний",
"desktopHostSwitcher.status.unknown": "Невідомий",
@@ -2221,6 +2318,8 @@ export const dict: Record<I18nKey, string> = {
"onboarding.remoteConnection.actions.chooseDifferentServer": "Вибрати інший сервер",
"onboarding.remoteConnection.actions.useLocalInstead": "Натомість використовувати Local",
"onboarding.remoteConnection.probe.authMessage": "Сервер вимагає автентифікації. Ви все ще можете підключитися, але, можливо, знадобиться надати облікові дані.",
"onboarding.remoteConnection.probe.updateRecommendedMessage": "Цей інстанс працює з іншою версією OpenChamber. Можна підключитися, але оновіть обидва застосунки, якщо щось не працюватиме.",
"onboarding.remoteConnection.probe.incompatibleMessage": "Сервер працює з OpenChamber, але несумісний із цією версією застосунку. Оновіть OpenChamber на сервері та повторіть спробу.",
"onboarding.remoteConnection.probe.wrongServiceMessage": "Сервер відповів, але не працює OpenChamber. Перевірте, чи адреса вказує на сервер OpenChamber.",
"onboarding.remoteConnection.probe.unreachableMessage": "Сервер недоступний. Перевірте підключення до мережі та адресу сервера.",
"onboarding.desktopRecovery.localUnavailable.title": "OpenCode Local недоступний",
@@ -2234,6 +2333,8 @@ export const dict: Record<I18nKey, string> = {
"onboarding.desktopRecovery.remoteUnreachable.retry": "Повторити підключення",
"onboarding.desktopRecovery.incompatibleServer.title": "Несумісний сервер",
"onboarding.desktopRecovery.incompatibleServer.description": "На сервері \"{host}\" не запущено OpenChamber. Перевірте, чи адреса вказує на сервер OpenChamber.",
"onboarding.desktopRecovery.remoteIncompatible.title": "Потрібне оновлення сервера",
"onboarding.desktopRecovery.remoteIncompatible.description": "Сервер OpenChamber на \"{host}\" несумісний із цією версією застосунку. Оновіть OpenChamber на сервері та повторіть спробу.",
"onboarding.desktopRecovery.common.useLocal": "Використовувати Local",
"onboarding.desktopRecovery.common.useRemote": "Використовувати Remote",
"onboarding.desktopRecovery.actions.retrying": "Повторна спроба…",