@yuriai/web 0.3.2-beta.1 → 0.3.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-B4_d0rQt.js → AgentAvatar-DEFsZEmz.js} +1 -1
- package/dist/assets/AssistantConversationSurface-Dv5EUOyi.js +3 -0
- package/dist/assets/AssistantSessionCard-Bltga-i7.js +2 -0
- package/dist/assets/{AssistantUnreadBadge-DzxFnL8M.js → AssistantUnreadBadge-CTXv15Hu.js} +1 -1
- package/dist/assets/{AssistantView-TODFoL2I.js → AssistantView-jFFTgQjt.js} +1 -1
- package/dist/assets/{DiagramView-x3sdXc97.js → DiagramView-BWmLp7hy.js} +1 -1
- package/dist/assets/{FadeInOnReveal-C5qpH3TY.js → FadeInOnReveal-CAUN0CLN.js} +1 -1
- package/dist/assets/{GuiPluginPage-D5ajS2AA.js → GuiPluginPage-C-ba8EBi.js} +1 -1
- package/dist/assets/{GuiPluginSurface-bwXAUscV.js → GuiPluginSurface-BXD7VSy-.js} +1 -1
- package/dist/assets/{GuiPluginWindow-SsWHnc4g.js → GuiPluginWindow-DrBQ8ig5.js} +1 -1
- package/dist/assets/{Icon-DBOSvb4U.js → Icon-CWw2bUr_.js} +1 -1
- package/dist/assets/{ImageLoadingPlaceholder-CrJp1f5y.js → ImageLoadingPlaceholder-BunwTGdg.js} +1 -1
- package/dist/assets/{LoadingImage-zXRrm9H9.js → LoadingImage-BwuyM06-.js} +1 -1
- package/dist/assets/{MarkdownRenderer-eeOXke_U.js → MarkdownRenderer-DBiJPyID.js} +2 -2
- package/dist/assets/{MarkdownRendererImpl-BeJCqK7P.js → MarkdownRendererImpl-DVYVKsuL.js} +2 -2
- package/dist/assets/{MarkstreamRendererImpl-DOYwdhQ_.js → MarkstreamRendererImpl-DZX9o9OO.js} +2 -2
- package/dist/assets/{MobileDetailNavigation-DVbLG15P.js → MobileDetailNavigation-CYqota_p.js} +1 -1
- package/dist/assets/{MobileResizableSheet-WTfrQdK8.js → MobileResizableSheet-Be4ev9vj.js} +1 -1
- package/dist/assets/{MobileShareBridge-CgVEGvAL.js → MobileShareBridge-CbtO4v1w.js} +1 -1
- package/dist/assets/MobileSurface-BsNRnAku.js +2 -0
- package/dist/assets/{MultiRunWindow-CMBcfCOh.js → MultiRunWindow-lwPMnpaH.js} +1 -1
- package/dist/assets/{OnboardingScreen-DLMYQLFn.js → OnboardingScreen-CNLtVzgH.js} +1 -1
- package/dist/assets/{OverlayScrollbar-CwmXL6W2.js → OverlayScrollbar-dFYzZtN7.js} +1 -1
- package/dist/assets/{RemoteAssistantSessionCard-vCSOg3_8.js → RemoteAssistantSessionCard-BJYmBRJm.js} +1 -1
- package/dist/assets/{SettingsView-DeS2ph7b.js → SettingsView-CHApPouO.js} +13 -13
- package/dist/assets/{SettingsWindow-CBh8oudq.js → SettingsWindow-lhGgHfD5.js} +1 -1
- package/dist/assets/{SetupTourDialog-C6SfskP3.js → SetupTourDialog-B46Tyvcn.js} +1 -1
- package/dist/assets/{TerminalView-CJDYSJWP.js → TerminalView-D8V8eOVt.js} +1 -1
- package/dist/assets/ToolOutputDialog-Cwlx7FjV.js +16 -0
- package/dist/assets/{VoiceSettings-C-W8KWvQ.js → VoiceSettings-CB9qkMjr.js} +2 -2
- package/dist/assets/{YuriLogo-VXtP1vhh.js → YuriLogo-DNvrroBa.js} +1 -1
- package/dist/assets/{YuriWordmark-B7lmpLRB.js → YuriWordmark-bJX68f2Y.js} +1 -1
- package/dist/assets/{assistant-attachment-cache-D-LmCflm.js → assistant-attachment-cache-zu9sz4ex.js} +1 -1
- package/dist/assets/{capgoAdapter-vPx0i-Ad.js → capgoAdapter-DmQmlaD4.js} +1 -1
- package/dist/assets/{checkbox-QxG9Mpbu.js → checkbox-BF6Ew27G.js} +1 -1
- package/dist/assets/{client-1Fk5IbQR.js → client-CgAFd1ew.js} +1 -1
- package/dist/assets/{collapsible-BvteRbPh.js → collapsible-D6SmW6dp.js} +1 -1
- package/dist/assets/context-menu-0FkJFPFb.js +1 -0
- package/dist/assets/{device-QL8KNSLM.js → device-C8ZHblkr.js} +1 -1
- package/dist/assets/{diagram-D6B_k7M5.js → diagram-BBuHtBwt.js} +1 -1
- package/dist/assets/dialog-Ctkzc2Zz.js +1 -0
- package/dist/assets/dialog-DYOEW9DC.css +1 -0
- package/dist/assets/{fileMentionTouchSelection-DiKjZQEm.js → fileMentionTouchSelection-Ctt4StcZ.js} +1 -1
- package/dist/assets/{fileReferenceActions-cYqdsXFz.js → fileReferenceActions-DX-Stroq.js} +1 -1
- package/dist/assets/{gitApi-CtJXK0WM.js → gitApi-DBBc9J6o.js} +1 -1
- package/dist/assets/{gitApiHttp-B0FJaIhU.js → gitApiHttp-BEMPJCIG.js} +1 -1
- package/dist/assets/{historyImportQueries-D_9RlrLp.js → historyImportQueries-eR7Bj6VN.js} +1 -1
- package/dist/assets/{host-Bx9gj-ju.js → host-iM7aLAip.js} +1 -1
- package/dist/assets/{i18n-qHllte6P.js → i18n-OsFhnlRH.js} +1 -1
- package/dist/assets/{image-loading-DBqnxgDH.js → image-loading-ZB1bYt51.js} +1 -1
- package/dist/assets/{input-C16jIASm.js → input-dbArHWaP.js} +1 -1
- package/dist/assets/{input-store-CsY-uaSj.js → input-store-DRTu4uZc.js} +1 -1
- package/dist/assets/{insertionBoundaries-62IwW9Ka.js → insertionBoundaries-BGTaMvws.js} +1 -1
- package/dist/assets/{main-DZedJhQx.js → main-BF3h13M0.js} +2 -2
- package/dist/assets/main-D-BEO915.js +169 -0
- package/dist/assets/{markdownHeightCache-CDcoG7oI.js → markdownHeightCache-B9zDETOW.js} +1 -1
- package/dist/assets/{markdownTheme-DFDWa8Gh.js → markdownTheme-C2LJ3cJo.js} +1 -1
- package/dist/assets/{mcpQueries-CQjcxaDQ.js → mcpQueries-CVzK-E8k.js} +1 -1
- package/dist/assets/miniChat-DaSVRLIT.js +2 -0
- package/dist/assets/mobile-BxYzuzvw.js +2 -0
- package/dist/assets/{mobileBackNavigation-BPncsZvR.js → mobileBackNavigation-CKLNMUuZ.js} +1 -1
- package/dist/assets/mobileConnections-TY8B_vJJ.js +2 -0
- package/dist/assets/{multirun-B5DvrZRF.js → multirun-YEb0yxyy.js} +1 -1
- package/dist/assets/{native-config-1ijMxxRj.js → native-config-iKs3QC84.js} +1 -1
- package/dist/assets/{navigation-guYHqUd5.js → navigation-DwodsHzA.js} +2 -2
- package/dist/assets/openRemoteProjectSession-B7tp7K6E.js +1 -0
- package/dist/assets/{project-preview-2H-TmJkd.js → project-preview-BhNspxqe.js} +1 -1
- package/dist/assets/projectMeta-b96xwStQ.js +1 -0
- package/dist/assets/{prompt-attachment-upload-9fjmgafL.js → prompt-attachment-upload-8bssUUT3.js} +1 -1
- package/dist/assets/pwa-CXclRR5h.js +2 -0
- package/dist/assets/{queue-abort-optimistic-BuYzwR0N.js → queue-abort-optimistic-CxSpYsNp.js} +1 -1
- package/dist/assets/{react-DEouUmkV.js → react-BcKSvwr4.js} +1 -1
- package/dist/assets/{readiness-CzHlOvNr.js → readiness-CjM_fPUz.js} +2 -2
- package/dist/assets/{reference-history-Dyzfrmw-.js → reference-history-BhDcCRSh.js} +1 -1
- package/dist/assets/{remote-input-store-84i8uDyM.js → remote-input-store-DFBMyVS-.js} +1 -1
- package/dist/assets/{remoteProjectQueries-Dfms-cCx.js → remoteProjectQueries-8giIAvzL.js} +1 -1
- package/dist/assets/{remoteSessionReference-CqNXv4Qg.js → remoteSessionReference-CcAQSJBP.js} +1 -1
- package/dist/assets/{renderElectronMiniChatApp-S8GzGGR7.js → renderElectronMiniChatApp-D7LRyQ0q.js} +2 -2
- package/dist/assets/renderMobileApp-CoKCXfEA.js +29 -0
- package/dist/assets/{runtime-file-download-D11Nnedg.js → runtime-file-download-Dc459c9e.js} +1 -1
- package/dist/assets/{runtime-file-resource-CuLP3xp7.js → runtime-file-resource-DnhWnndu.js} +1 -1
- package/dist/assets/{runtimeConfig-oElsA8Cz.js → runtimeConfig-XD_Q8p-7.js} +1 -1
- package/dist/assets/{runtimeEndpointReset-BUGfn7y0.css → runtimeEndpointReset-BIrMtGn5.css} +1 -1
- package/dist/assets/{runtimeEndpointReset-DT9dHdmQ.js → runtimeEndpointReset-CLOWf55R.js} +9 -9
- package/dist/assets/{scheduledTaskNavigation-y5g8D2ee.js → scheduledTaskNavigation-Bi7sRiFW.js} +1 -1
- package/dist/assets/{select-DpKqX1V6.js → select-DpIon12c.js} +1 -1
- package/dist/assets/{sessionLookup-BHJgGHf0.js → sessionLookup-Bgl1T8Xy.js} +1 -1
- package/dist/assets/{sortable-tabs-strip-a2sshnFf.js → sortable-tabs-strip-BNUSKRdi.js} +1 -1
- package/dist/assets/{speechSettingsQueries-DKesZuQ3.js → speechSettingsQueries-Qp_K7NEi.js} +1 -1
- package/dist/assets/src-DRyZ4dLj.css +2 -0
- package/dist/assets/{store-BOD3jjMl.js → store-Dj5cSf8B.js} +1 -1
- package/dist/assets/{terminalApi-Cq0vjFe1.js → terminalApi-eR_918UZ.js} +1 -1
- package/dist/assets/{textarea-DPrUh2E_.js → textarea-Cl9UwJTL.js} +1 -1
- package/dist/assets/{tooltip-JO7-ziD9.js → tooltip-Pge3VQEi.js} +1 -1
- package/dist/assets/{types-CxdhW05G.js → types-zQujo_Lh.js} +1 -1
- package/dist/assets/{useAppFontEffects-DhmTAaeq.js → useAppFontEffects-CA0RAFjg.js} +62 -61
- package/dist/assets/{useAssistantUIStore-jOKVcBK8.js → useAssistantUIStore-CphyXHEY.js} +1 -1
- package/dist/assets/{useDesktopWindowControlsLayout-C3Bhl4tF.js → useDesktopWindowControlsLayout-xvFTC44C.js} +1 -1
- package/dist/assets/{useDictation-De8WB_Z7.js → useDictation-Do12BpsS.js} +1 -1
- package/dist/assets/{useEffectiveDirectory-DsQiUzq0.js → useEffectiveDirectory-DUB24zcV.js} +1 -1
- package/dist/assets/{useFontPreferences-CO-L-Gd7.js → useFontPreferences-DFF-uEAD.js} +1 -1
- package/dist/assets/{useMobileHtmlPreviewStore-EOAzZiAy.js → useMobileHtmlPreviewStore-DUquFMmd.js} +1 -1
- package/dist/assets/useMobileNavigationStore-CU0KrVK0.js +13 -0
- package/dist/assets/{usePluginsStore-nTVPoJCl.js → usePluginsStore-Cdk11zAA.js} +1 -1
- package/dist/assets/{useProjectRuntimeAPIs-CHhK626l.js → useProjectRuntimeAPIs-LShklsHL.js} +1 -1
- package/dist/assets/{useStreamingTextThrottle-CNJGj-_8.js → useStreamingTextThrottle-4QIDm_ui.js} +1 -1
- package/dist/assets/{useThemeSystem-C57Z9mV2.js → useThemeSystem-D2YBbLma.js} +1 -1
- package/dist/assets/{useUIStore-Cfmg-aDQ.js → useUIStore-CYex4rbF.js} +1 -1
- package/dist/assets/{vendor-base-ui-z2M4boRm.js → vendor-base-ui-fom6orB6.js} +1 -1
- package/dist/assets/{vendor-cmdk-BgHvMv5l.js → vendor-cmdk-BKc6RGpL.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-accessibility-gVi9ga0x.js → vendor-dnd-kit-accessibility-Cf9EEJvm.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-core-Dd5yS2-T.js → vendor-dnd-kit-core-DRyd7I0I.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-sortable-CV-SGi8y.js → vendor-dnd-kit-sortable-C8S8cyRO.js} +1 -1
- package/dist/assets/{vendor-framer-motion-CF9BQLta.js → vendor-framer-motion-DiGWHm7K.js} +1 -1
- package/dist/assets/{vendor-markstream-react-TwEpkgfP.js → vendor-markstream-react-Cwc-VXWM.js} +3 -3
- package/dist/assets/vendor-motion-DtmZZeEm.js +1 -0
- package/dist/assets/{vendor-pierre-diffs-tqo4Z3TC.js → vendor-pierre-diffs-HJfPTtu2.js} +1 -1
- package/dist/assets/{vendor-react-P8wFrkcT.js → vendor-react-D5BntRmA.js} +1 -1
- package/dist/assets/{vendor-react-drawio-CQW1YP2l.js → vendor-react-drawio-DXADKcSU.js} +1 -1
- package/dist/assets/{vendor-reactuses-core-Dyjw5sZR.js → vendor-reactuses-core-B8s-Rcd-.js} +1 -1
- package/dist/assets/{vendor-sonner-B5HgJenP.js → vendor-sonner-Y-KPX915.js} +1 -1
- package/dist/assets/{vendor-stream-diffs-DCMtZcS3.js → vendor-stream-diffs-BMT21f-n.js} +2 -2
- package/dist/assets/{vendor-tanstack-react-query-B-KblYBV.js → vendor-tanstack-react-query-ChSd65dm.js} +1 -1
- package/dist/assets/{vendor-tanstack-react-virtual-BkuqzrEV.js → vendor-tanstack-react-virtual-WY42p6U6.js} +1 -1
- package/dist/assets/{vendor-zustand-Cwko4FG1.js → vendor-zustand-CNn3HHhT.js} +1 -1
- package/dist/index.html +19 -19
- package/dist/mini-chat.html +19 -19
- package/dist/mobile.html +2 -2
- package/package.json +1 -1
- package/server/lib/notifications/DOCUMENTATION.md +11 -1
- package/server/lib/notifications/session-unread-store.js +20 -6
- package/server/lib/notifications/session-unread.test.js +80 -0
- package/server/lib/scheduled-tasks/DOCUMENTATION.md +14 -5
- package/server/lib/scheduled-tasks/runtime.js +29 -25
- package/server/lib/scheduled-tasks/runtime.test.js +88 -1
- package/dist/assets/AssistantConversationSurface-BlrOfc3x.js +0 -3
- package/dist/assets/AssistantSessionCard-B7cmrLAe.js +0 -2
- package/dist/assets/MobileSurface-BL4nGTY5.js +0 -2
- package/dist/assets/ToolOutputDialog-DF8dWVTm.js +0 -16
- package/dist/assets/context-menu-BYPUMFAX.js +0 -1
- package/dist/assets/dialog-BfjbsTOP.js +0 -1
- package/dist/assets/dialog-CTYD3Sbr.css +0 -1
- package/dist/assets/main-CAyhodbD.js +0 -169
- package/dist/assets/miniChat-DFXcicxI.js +0 -2
- package/dist/assets/mobile-CKNvVIUj.js +0 -2
- package/dist/assets/mobileConnections-BBNhczt8.js +0 -2
- package/dist/assets/openRemoteProjectSession-Dvg3pCz-.js +0 -1
- package/dist/assets/projectMeta-BOcz1XpN.js +0 -1
- package/dist/assets/pwa-D4vcI8VD.js +0 -2
- package/dist/assets/renderMobileApp-Bbs497wM.js +0 -29
- package/dist/assets/src-INJJ62RE.css +0 -2
- package/dist/assets/useMobileNavigationStore-2N3dS8vX.js +0 -13
- package/dist/assets/vendor-motion-Dv27UnOI.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zh-CN-D2ENuI1-.js","assets/tour-CMXP3Kif.js","assets/fr-C_XToFWm.js","assets/zh-TW-C40BXFhK.js","assets/es-DuTK1iYh.js","assets/pt-BR-D71qrP91.js","assets/uk-C7c1Zece.js","assets/ko-CAzlaaDJ.js","assets/pl-BvjbUcJV.js","assets/ja-D0pDybpB.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as e}from"./rolldown-runtime-hePW80VL.js";import{a as t}from"./vendor-zustand-Cwko4FG1.js";import{o as n}from"./vendor-aparajita-capacitor-secure-storage-xol_6BsB.js";import{i as r,r as i}from"./runtime-ead7P81A.js";import{n as a,t as o}from"./tour-CMXP3Kif.js";var s={"settings.providers.custom.emptyModels":`No models yet. Click + to add one, or sync models.`,"settings.providers.custom.description":`Gateways, local deployments, or compatible APIs`,"settings.providers.delete.description":`Delete this provider’s configuration from the user, custom and current project files, and remove its saved credentials. Removing shared configuration or credentials also affects other projects that use them.`,"settings.providers.delete.success":`Provider deleted.`,"settings.providers.delete.failed":`Could not finish deleting this provider. Some changes may already be applied; retry to finish.`,"settings.providers.custom.title":`Custom`,"settings.providers.custom.moreSettings":`More settings`,"settings.providers.custom.urlRules":`URL completion rules`,"settings.providers.custom.toggleKey":`Show or hide API key`,"settings.providers.custom.configPreview":`Preview configuration · no credentials`,"settings.providers.page.auth.waiting":`Waiting for authorization`,"settings.providers.page.auth.configured":`Provider configured`,"settings.providers.models.limit":`Showing the first 100 of {count} matches`,"settings.providers.models.removed":`Removed {name}`,"settings.providers.models.undo":`Undo`,"settings.providers.custom.protocol":`API protocol`,"settings.providers.custom.name":`Provider name`,"settings.providers.custom.baseURL":`Base URL`,"settings.providers.custom.urlAuto":`API version added automatically. Request URL: {url}. End the base URL with # to disable version completion.`,"settings.providers.custom.urlExact":`Request URL: {url}`,"settings.providers.custom.fetchModels":`Sync models`,"settings.providers.custom.discoveryFailed":`Could not fetch models. Check the address, protocol and key, or add models manually.`,"settings.providers.custom.discoveryEmpty":`The service returned no models.`,"settings.providers.custom.optionalKey":`Optional for services that do not require authentication.`,"settings.providers.custom.model":`Model {index}`,"settings.providers.custom.modelId":`Model ID`,"settings.providers.custom.modelName":`Display name`,"settings.providers.custom.context":`Context limit (tokens)`,"settings.providers.custom.output":`Output limit (tokens)`,"settings.providers.custom.tools":`Tool calling`,"settings.providers.custom.vision":`Image input`,"settings.providers.custom.addModel":`Add model`,"settings.providers.custom.addAllModels":`Add all`,"settings.providers.models.removeAll":`Remove all`,"settings.providers.delete.environmentHint":`Remove the corresponding environment variables and restart OpenCode. To only hide models, use “Remove all” below.`,"settings.providers.delete.runtimeHint":`Disable this provider in its plugin or runtime configuration. To only hide models, use “Remove all” below.`,"settings.providers.auth.account":`Account authorization`,"settings.providers.auth.environment":`Environment variables`,"settings.providers.auth.managed":`Managed by runtime`,"settings.providers.auth.noMethods":`Manage this connection at its source.`,"settings.providers.quota.title":`Usage tracking`,"settings.providers.quota.description":`Optional credentials for reading usage. These are separate from model access and account authorization.`,"settings.providers.quota.configured":`Configured`,"settings.providers.quota.optional":`Optional`,"settings.providers.quota.manage":`Configure`,"settings.providers.quota.retry":`Retry`,"settings.providers.quota.loadFailed":`Status unavailable`,"settings.providers.quota.failed":`Could not complete the operation. Check the credentials and try again.`,"settings.providers.quota.validated":`Usage credentials are valid.`,"settings.providers.quota.deleted":`Usage credentials deleted.`,"settings.providers.quota.accessToken":`Access token`,"settings.providers.quota.refreshToken":`Refresh token (optional)`,"settings.providers.quota.importCursor":`Import from local Cursor`,"settings.providers.quota.deleteHint":`Delete usage credentials? Model access stays unchanged.`,"settings.providers.source.runtime":`Runtime injection (such as a plugin)`,"settings.providers.source.builtin":`Built-in / in-memory configuration`,"settings.providers.delete.unavailable":`This provider has no independent configuration or credentials to delete. Manage it at its source (such as the supplying plugin).`,"settings.providers.custom.editModel":`Edit model`,"settings.providers.custom.modelsCount":`Models · {count} added`,"settings.providers.custom.modelsEmpty":`Add at least one model.`,"settings.providers.custom.invalidModel":`Enter a valid model ID and positive whole-number token limits. Output cannot exceed context.`,"settings.providers.custom.removeModel":`Remove model`,"settings.providers.custom.invalidModels":`Model IDs must be unique.`,"settings.providers.custom.saveFailed":`Could not save the provider. Check the URL and model configuration, then retry.`,"settings.providers.custom.cleanupFailed":`The provider was not saved, and the new credential could not be removed. Remove this account from OpenCode before retrying.`,"settings.providers.custom.refreshFailed":`The provider was saved, but the model list is not ready. Retry to refresh without saving again.`,"assistants.channels.discovery.start":`Detect user ID`,"assistants.channels.discovery.hint":`Enter the robot credentials, then detect your ID or enter it manually before saving.`,"assistants.channels.discovery.waiting":`Send this robot a private message within 90 seconds. The first sender’s ID will be filled in; this message will not run a task. Verify the ID before saving.`,"assistants.channels.discovery.timeout":`No private message received. Start detection again and send the robot a message.`,"assistants.channels.saved":`Message channel configuration saved`,"assistants.channels.title":`Message channels`,"assistants.weixin.title":`WeChat`,"assistants.weixin.description":`Scan to use this bot from WeChat, with its existing tools and host permissions. New replies also sync to the linked account. Keep the Yuri host online.`,"assistants.weixin.connect":`Connect with QR code`,"assistants.weixin.transfer":`Move connection to this bot`,"assistants.weixin.transferFrom":`Currently linked to {name}`,"assistants.weixin.transferConfirm":`Confirm move`,"assistants.weixin.transferWarning":`The previous bot will stop syncing. Unprocessed messages and unsent replies will be discarded. Chat history stays in place and started tasks are not cancelled.`,"assistants.weixin.error.bindingChanged":`The binding changed. Refresh and select again. The existing connection was not overwritten.`,"assistants.weixin.disconnect":`Disconnect`,"assistants.weixin.scan":`Scan and confirm in WeChat`,"assistants.weixin.qrAlt":`WeChat connection QR code`,"assistants.weixin.verify":`Verification code shown in WeChat`,"assistants.weixin.verifySubmit":`Confirm`,"assistants.weixin.attention":`Connection needs attention`,"assistants.weixin.status.disconnected":`Not connected`,"assistants.weixin.status.disabled":`WeChat is disabled. Development builds do not connect by default; use a release build or enable channels in the host configuration, then reopen this dialog.`,"assistants.weixin.status.waiting":`Waiting for scan`,"assistants.weixin.status.scanned":`Confirm the connection in WeChat`,"assistants.weixin.status.verify":`Enter the verification code`,"assistants.weixin.status.connected":`Connected · Text messages`,"assistants.weixin.status.reconnecting":`Reconnecting…`,"assistants.weixin.status.expired":`Authorization or QR code expired. Connect again.`,"assistants.weixin.status.error":`Could not connect`,"assistants.weixin.status.unsupported":`This host does not support WeChat. Update Yuri or use a Yuri host.`,"assistants.weixin.error.accountInUse":`This WeChat entry is already linked. Move an existing connection on this host, or unlink it in the other app before scanning again.`,"assistants.weixin.error.authExpired":`WeChat authorization expired. Disconnect and scan again.`,"assistants.weixin.error.deliveryUnknown":`Delivery could not be confirmed. Check WeChat before retrying to avoid duplicate replies.`,"assistants.weixin.error.replyUnavailable":`WeChat rejected the reply. Send this bot a new message in WeChat, then retry.`,"assistants.weixin.error.channelInUse":`Another Yuri process owns this connection. Configure it on that host or wait for it to stop.`,"assistants.weixin.error.generic":`WeChat is temporarily unavailable. Check the network and retry.`,"assistants.channels.description":`Connect this Bot to a chat platform. Open a channel to configure it; the Yuri host must stay online.`,"assistants.channels.wecom.title":`WeCom`,"assistants.channels.feishu.title":`Feishu`,"assistants.channels.dingtalk.title":`DingTalk`,"assistants.channels.wechat.summary":`Link with a QR code`,"assistants.channels.wecom.summary":`Bot ID and secret`,"assistants.channels.feishu.summary":`App ID and secret`,"assistants.channels.dingtalk.summary":`Client ID and secret`,"assistants.channels.dialog.description":`Uses the platform's native long-lived connection, not MCP streamable HTTP. Only one private-chat sender is allowed.`,"assistants.channels.sharedContext":`All channels on this Bot share one conversation context. Replies go only to the originating channel; messages without a channel source are pushed to bound platforms.`,"assistants.channels.status.disabled":`Message channels are disabled in development builds. Use a release build, or enable channels in the host configuration, then reopen this dialog.`,"assistants.channels.status.disconnected":`Not connected`,"assistants.channels.status.connecting":`Connecting…`,"assistants.channels.status.connected":`Connected`,"assistants.channels.status.reconnecting":`Reconnecting…`,"assistants.channels.status.error":`Connection error`,"assistants.channels.status.unsupported":`This host does not support this channel. Update Yuri or use a supported host.`,"assistants.channels.field.wecom.clientID":`Bot ID`,"assistants.channels.field.wecom.secret":`Bot secret`,"assistants.channels.field.wecom.ownerID":`Bound user ID`,"assistants.channels.field.feishu.clientID":`App ID`,"assistants.channels.field.feishu.secret":`App secret`,"assistants.channels.field.feishu.ownerID":`Bound user Open ID`,"assistants.channels.field.dingtalk.clientID":`Client ID`,"assistants.channels.field.dingtalk.secret":`Client secret`,"assistants.channels.field.dingtalk.ownerID":`Bound user staff ID`,"assistants.channels.field.clientIDDescription":`The platform-issued Bot or app identifier.`,"assistants.channels.field.secretKeep":`A secret is already saved. Leave this empty to keep it.`,"assistants.channels.field.secretRequired":`Required for the first configuration or when the client ID changes.`,"assistants.channels.field.ownerDescription":`Only this user can send private messages to the Bot and receive proactive messages. Detect the ID or enter it manually before saving. Group chats are not supported.`,"assistants.channels.field.wecom.ownerHelp":`To find the ID, send the bot a private message and read body.from.userid in the message callback.`,"assistants.channels.field.feishu.ownerHelp":`Query the user by phone or email with this app and user_id_type=open_id, or read sender.sender_id.open_id in a message event.`,"assistants.channels.field.dingtalk.ownerHelp":`Send the bot a private message and read senderStaffId (the enterprise user ID) in the callback, not the encrypted senderId.`,"assistants.channels.field.ownerHelpLink":`Official documentation`,"assistants.channels.saveHint":`Saving starts platform authentication. Connected appears only after the platform confirms it. All channels on this Bot share one context.`,"assistants.channels.actions.save":`Save and connect`,"assistants.channels.actions.retry":`Reconnect`,"assistants.channels.actions.disconnect":`Disconnect and remove`,"assistants.channels.actions.confirmDisconnect":`Remove configuration`,"assistants.channels.disconnectWarning":`Removes the saved credentials and stops this connection. Other channels stay bound and share the same context. The Bot's chat history is kept.`,"assistants.channels.error.invalidCredentials":`The platform rejected these credentials. Check the IDs and secret.`,"assistants.channels.error.authExpired":`Platform authorization expired. Save the credentials again.`,"assistants.channels.error.channelInUse":`Another process is using this connection. Stop it there or wait, then retry.`,"assistants.channels.error.ownerRequired":`Enter the one sender ID that may operate this Bot.`,"assistants.channels.error.deliveryUnknown":`Delivery could not be confirmed. Reconnecting will not resend the message; check the platform first.`,"assistants.channels.error.connectionReplaced":`Another session replaced this connection. Reconnecting takes over from that session; continue only if this Bot should own it.`,"assistants.channels.error.accountInUse":`This account is already bound to another Bot or process. Unlink or stop it there before reconnecting.`,"assistants.channels.error.generic":`Could not reach the platform. Check the network and retry.`,"assistants.channels.attention":`Channel needs attention`,"settings.remoteDesktop.enable":`Allow remote desktop control`,"settings.remoteDesktop.description":`Off by default. Complete the permission checks below before enabling.`,"settings.remoteDesktop.devices":`After permissions are granted and remote desktop is enabled, paired devices connect directly without another confirmation or sharing window. Turn this off to stop control, or revoke a device’s pairing. This shares the physical primary display, not a private desktop.`,"settings.remoteDesktop.recheck":`Check permissions again`,"settings.remoteDesktop.status":`Status`,"settings.remoteDesktop.screen":`Screen Recording`,"settings.remoteDesktop.screenHint":`Allows sharing the screen. Restart Yuri if a new grant does not take effect.`,"settings.remoteDesktop.accessibility":`Accessibility`,"settings.remoteDesktop.accessibilityHint":`Allows mouse and keyboard input. Checks both Yuri and its input helper.`,"settings.remoteDesktop.authorize":`Authorize`,"settings.remoteDesktop.granted":`Granted`,"settings.remoteDesktop.required":`Permission needed`,"settings.remoteDesktop.helper":`Native input helper`,"settings.remoteDesktop.helperHint":`Requires the new desktop installer; a UI-only update is not enough.`,"settings.remoteDesktop.installed":`Installed`,"settings.remoteDesktop.reinstall":`New installer required`,"settings.remoteDesktop.failed":`Could not complete the operation. Check permissions and try again. If turning off could not be saved, remote control stays blocked for this app run.`,"settings.remoteDesktop.disabled":`Remote desktop is off on this Mac. Enable it in Settings → Remote instances → Remote desktop and complete the permission checks.`,"settings.yuri.about.hostUpdate.title":`Update this instance`,"settings.yuri.about.hostUpdate.description":`Updates the connected Host. It reconnects after restart.`,"settings.yuri.about.hostUpdate.available":`Update available`,"settings.yuri.about.hostUpdate.confirm":`Update and restart`,"settings.yuri.about.hostUpdate.reconnecting":`Waiting for the Host to reconnect…`,"settings.yuri.about.hostUpdate.unsupported":`Automatic updates are unavailable for this installation. Use its installation or service manager.`,"settings.yuri.about.hostUpdate.downgrade":`Confirming will switch to stable and install an older version.`,"settings.yuri.about.hostUpdate.noNotes":`Release notes are unavailable.`,"settings.yuri.about.hostUpdate.kind.ota":`OTA update`,"settings.yuri.about.hostUpdate.kind.installer":`Full desktop installer`,"settings.yuri.about.hostUpdate.kind.cli-package":`CLI package update`,"settings.yuri.about.hostUpdate.status.checking":`Validating update`,"settings.yuri.about.hostUpdate.status.downloading":`Downloading`,"settings.yuri.about.hostUpdate.status.installing":`Installing`,"settings.yuri.about.hostUpdate.status.restarting":`Restarting`,"settings.yuri.about.hostUpdate.status.succeeded":`Update complete`,"settings.yuri.about.hostUpdate.status.failed":`Update failed. Check the Host and retry.`,"settings.voice.volcengine.save":`Save`,"settings.voice.volcengine.saveFailed":`Save failed. Your changes are retained; try again.`,"settings.voice.volcengine.loadFailed":`Could not load speech settings from this server.`,"settings.voice.volcengine.retry":`Retry`,"chat.dictation.error.microphoneNotFound":`No microphone detected. Connect one and try again.`,"settings.voice.volcengine.name":`Volcengine (Doubao)`,"settings.voice.volcengine.providerOption":`Volcengine Doubao (Recommended | Paid)`,"settings.voice.volcengine.keyHelp":`Get it here:`,"settings.voice.volcengine.openLink":`Click to open`,"settings.voice.volcengine.asrResource":`Streaming ASR resource ID`,"settings.voice.volcengine.asrContext":`Recognition context`,"settings.voice.volcengine.asrContextHelp":`Describe the topic and terminology. Clear to disable; save for the next recording. Up to 2,000 characters.`,"settings.voice.volcengine.custom":`Custom ID`,"settings.voice.volcengine.durationHelp":`Hourly plan, billed by recognition duration.`,"settings.voice.volcengine.concurrentHelp":`Concurrency plan, uses purchased concurrent capacity.`,"settings.voice.volcengine.resource":`TTS resource ID`,"settings.voice.volcengine.speaker":`TTS speaker ID`,"settings.voice.volcengine.asrTest":`Microphone test`,"settings.voice.volcengine.testHelp":`Record with the current settings and view live recognition results.`,"settings.voice.volcengine.startRecording":`Start recording`,"settings.voice.volcengine.finishRecording":`Stop and transcribe`,"settings.voice.volcengine.recordingUnsupported":`Recording is unavailable here. Use HTTPS or the mobile app.`,"settings.voice.volcengine.fileLimit":`WAV, MP3 or OGG, up to 20 MB. This tests file recognition, not live captions.`,"settings.voice.volcengine.invalidTranscript":`Invalid transcription response`,"settings.voice.volcengine.silence":`No speech detected`,"settings.voice.volcengine.stop":`Stop`,"settings.voice.volcengine.setup":`Open speech console`,"settings.remoteInstances.pairing.advanced":`Advanced settings`,"settings.remoteInstances.pairing.relayHint":`Configure the relay server for internet connections. Not used for direct local or LAN connections.`,"settings.remoteInstances.pairing.downloadStep":`Get the app`,"settings.remoteInstances.pairing.name":`Server name`,"settings.remoteInstances.pairing.anywhere":`At home or away`,"settings.remoteInstances.pairing.lan":`Same Wi-Fi network`,"settings.remoteInstances.pairing.local":`On this computer`,"settings.remoteInstances.quick.sshTitle":`Work on another computer`,"settings.remoteInstances.quick.sshHint":`Add an SSH address to run Yuri on a remote computer and work with its projects here. You will need SSH access to that computer.`,"settings.remoteInstances.quick.emptyHint":`Connect a phone or computer to continue here.`,"settings.remoteInstances.quick.title":`Connected devices`,"settings.remoteInstances.quick.error":`Could not refresh device status.`,"settings.remoteInstances.quick.download":`Download the Yuri app`,"settings.usage.magpie.url":`Additional Magpie URL`,"settings.usage.magpie.description":`Magpie on this server is detected automatically. Start Magpie, then refresh usage. No configuration needed.`,"settings.usage.magpie.connected":`Connected · providers: {count}`,"settings.usage.magpie.manual":`Connect another Magpie…`,"settings.usage.magpie.unavailable":`Magpie is temporarily unavailable. Refresh to retry.`,"settings.usage.magpie.cached":`Cached reading; awaiting fresh quota data`,"settings.usage.magpie.save":`Save`,"settings.remoteInstances.clientAuth.edit.title":`Edit device`,"settings.remoteInstances.clientAuth.edit.action":`Edit`,"settings.remoteInstances.clientAuth.edit.name":`Device name`,"settings.yuri.about.opencodeGuidance.manualGlobal":`Upgrade the configured OpenCode CLI with its package manager, then restart the service.`,"settings.yuri.about.opencodeGuidance.manualExternal":`Upgrade and restart the external OpenCode service through its owner.`,"settings.yuri.about.opencodeGuidance.bundled":`Update Yuri Desktop to update its bundled OpenCode.`,"settings.chat.questionDelegate.label":`Automatically delegate unanswered questions`,"settings.chat.questionDelegate.description":`After 30 seconds without a reply, the model decides and continues.`,"settings.chat.questionDelegate.saveFailed":`Could not save automatic delegation. Check the current status before retrying.`,"settings.globalConfig.title":`Global Configuration`,"settings.jsonEditor.fold":`Fold code`,"settings.jsonEditor.unfold":`Unfold code`,"settings.jsonEditor.foldedCode":`Folded code`,"settings.globalConfig.description":`Edit the configuration files currently used from ~/.config/opencode.`,"settings.globalConfig.actions.reload":`Reload file`,"settings.globalConfig.toast.loadFailed":`Failed to load configuration file`,"settings.globalConfig.toast.saveFailed":`Failed to save configuration file`,"settings.globalConfig.toast.saved":`Configuration saved.`,"settings.providers.page.openCodeGo.title":`OpenCode Go usage tracking`,"settings.providers.page.openCodeGo.description":`Connect the OpenCode Go dashboard to show rolling, weekly, and monthly quota.`,"settings.providers.page.openCodeGo.workspaceId":`Workspace ID`,"settings.providers.page.openCodeGo.authCookie":`Auth cookie`,"settings.providers.page.openCodeGo.consoleSignIn":`Sign in with OpenCode Console`,"settings.providers.page.openCodeGo.consoleConnected":`OpenCode Console is connected. OpenCode Go can use these credentials.`,"settings.providers.page.openCodeGo.consoleHint":`OpenCode Go signs in through OpenCode Console. Service account keys below still work.`,"settings.providers.page.openCodeGo.help":`Copy the workspace ID from the dashboard URL and the auth cookie from your browser developer tools. Yuri never scans browser cookie storage.`,"settings.providers.page.openCodeGo.save":`Save and validate`,"settings.providers.page.openCodeGo.replace":`Replace`,"settings.providers.page.openCodeGo.validate":`Validate`,"settings.providers.page.openCodeGo.delete":`Delete`,"settings.providers.page.quotaCredentials.saved":`{provider} credentials saved.`,"settings.providers.page.openCodeGo.saveFailed":`Could not validate OpenCode Go credentials.`,"settings.providers.page.openCodeGo.valid":`OpenCode Go credentials are valid.`,"settings.providers.page.openCodeGo.invalid":`OpenCode Go credentials are invalid or expired.`,"settings.providers.page.openCodeGo.deleted":`OpenCode Go credentials deleted.`,"settings.providers.page.openCodeGo.deleteFailed":`Could not delete OpenCode Go credentials.`,"settings.appearance.language.label":`Language`,"settings.appearance.language.description":`Choose the interface language.`,"settings.appearance.language.select":`Select language`,"settings.window.description":`Yuri settings window.`,"settings.view.home.title":`Settings`,"settings.view.home.description":`Jump to common pages.`,"settings.view.home.cards.providers.title":`Providers`,"settings.view.home.cards.providers.description":`Connect models + credentials`,"settings.view.home.cards.agents.title":`Agents`,"settings.view.home.cards.agents.description":`Prompts, permissions, and runtime limits`,"settings.view.home.cards.skillsCatalog.title":`Skills Catalog`,"settings.view.home.cards.skillsCatalog.description":`Install skills from catalogs`,"settings.view.home.cards.mcp.title":`MCP`,"settings.view.home.cards.mcp.description":`Configure MCP servers + connections`,"settings.view.home.cards.plugins.title":`Plugins`,"settings.view.home.cards.plugins.description":`Manage opencode plugins`,"settings.view.home.cards.usage.title":`Usage`,"settings.view.home.cards.usage.description":`Quota + spend visibility`,"settings.view.unavailable.title":`Not available`,"settings.view.unavailable.description":`This settings page is not available in this runtime.`,"settings.view.badge.beta":`beta`,"settings.view.actions.reloadOpenCode":`Reload OpenCode`,"settings.view.actions.reloadOpenCodeTooltip":`Reload OpenCode runtime configuration without restarting the service.`,"settings.view.actions.backToSettings":`Back to Settings`,"settings.view.actions.closeSettings":`Close settings`,"settings.view.actions.openSectionList":`Open section list`,"settings.view.actions.closeSettingsWithShortcut":`Close Settings ({shortcut}+,)`,"settings.view.actions.back":`Back`,"settings.view.actions.resizeNavigation":`Resize settings navigation`,"settings.view.navigation.groups.connection":`Connection`,"settings.view.navigation.groups.personalization":`Personalization`,"settings.view.navigation.groups.workspace":`Workspace`,"settings.view.navigation.groups.opencode":`OpenCode`,"settings.view.navigation.groups.content":`Content & Automation`,"settings.view.navigation.groups.system":`System`,"settings.view.search.placeholder":`Search settings`,"settings.view.search.aria":`Search settings`,"settings.view.search.clear":`Clear settings search`,"settings.view.search.noResults":`No matching settings`,"settings.page.projects.title":`Projects`,"settings.page.remoteInstances.title":`Remote Instances`,"settings.page.providers.title":`Providers`,"settings.page.usage.title":`Usage`,"settings.page.agents.title":`Agents`,"settings.page.commands.title":`Commands`,"settings.page.mcp.title":`MCP`,"settings.page.plugins.title":`Plugins`,"settings.page.skills.title":`Skills`,"settings.page.skillsCatalog.title":`Skills Catalog`,"settings.page.git.title":`Git`,"settings.page.appearance.title":`Appearance`,"settings.page.chat.title":`Chat`,"settings.page.shortcuts.title":`Shortcuts`,"settings.page.sessions.title":`Sessions`,"settings.page.archivedSessions.title":`Archived sessions`,"settings.page.summaryAI.title":`Summary AI`,"settings.page.magicPrompts.title":`Magic Prompts`,"settings.page.notifications.title":`Notifications`,"settings.page.voice.title":`Voice`,"settings.page.about.title":`About`,"settings.page.promptTemplates.title":`Prompt Templates`,"settings.promptTemplates.sidebar.title":`Prompt Templates`,"settings.promptTemplates.sidebar.total":`Total: {count}`,"settings.promptTemplates.sidebar.empty.title":`No prompt templates`,"settings.promptTemplates.sidebar.empty.description":`Create a prompt template to get started.`,"settings.promptTemplates.sidebar.toast.deleted":`Template "{name}" deleted`,"settings.promptTemplates.sidebar.toast.deleteFailed":`Failed to delete template`,"settings.promptTemplates.sidebar.toast.nameRequired":`Template name is required`,"settings.promptTemplates.sidebar.toast.renamed":`Template renamed`,"settings.promptTemplates.sidebar.toast.renameFailed":`Failed to rename template`,"settings.promptTemplates.sidebar.dialog.deleteTitle":`Delete template?`,"settings.promptTemplates.sidebar.dialog.deleteDescription":`This will permanently delete "{name}". This action cannot be undone.`,"settings.promptTemplates.sidebar.renameDialog.title":`Rename template`,"settings.promptTemplates.sidebar.renameDialog.description":`Enter a new name for "{name}".`,"settings.promptTemplates.sidebar.renameDialog.placeholder":`Template name`,"settings.promptTemplates.sidebar.badge.default":`default`,"settings.promptTemplates.page.empty.title":`Select a template`,"settings.promptTemplates.page.empty.description":`Choose a template from the sidebar to edit it.`,"settings.promptTemplates.page.title.new":`New template`,"settings.promptTemplates.page.subtitle.edit":`Edit template`,"settings.promptTemplates.page.subtitle.new":`Create a new prompt template`,"settings.promptTemplates.page.section.identity":`Identity`,"settings.promptTemplates.page.field.name":`Name`,"settings.promptTemplates.page.field.namePlaceholder":`Template name`,"settings.promptTemplates.page.section.template":`Template`,"settings.promptTemplates.page.field.templatePlaceholder":`Enter the prompt template text...`,"settings.promptTemplates.page.templateHint":`This text will be prepended to the user's prompt when selected in a multi-run group.`,"settings.promptTemplates.page.toast.nameRequired":`Template name is required`,"settings.promptTemplates.page.toast.updated":`Template updated`,"settings.promptTemplates.page.toast.updateFailed":`Failed to update template`,"settings.promptTemplates.page.toast.created":`Template created`,"settings.promptTemplates.page.toast.createFailed":`Failed to create template`,"settings.promptTemplates.page.toast.saveUnexpectedError":`An unexpected error occurred while saving`,"settings.magicPrompts.sidebar.title":`Magic Prompts`,"settings.magicPrompts.sidebar.description":`Select a prompt template to edit.`,"settings.magicPrompts.sidebar.group.git":`Git`,"settings.magicPrompts.sidebar.group.github":`GitHub`,"settings.magicPrompts.sidebar.group.session":`Session`,"settings.magicPrompts.sidebar.item.gitCommitGenerate":`Commit Generation`,"settings.magicPrompts.sidebar.item.gitPrGenerate":`PR Generation`,"settings.magicPrompts.sidebar.item.gitConflictResolve":`Merge/Rebase Conflict Resolution`,"settings.magicPrompts.sidebar.item.gitCherrypickConflictResolve":`Cherry-pick Conflict Resolution`,"settings.magicPrompts.sidebar.item.githubPrReview":`PR Review`,"settings.magicPrompts.sidebar.item.githubIssueReview":`Issue Review`,"settings.magicPrompts.sidebar.item.githubPrFailedChecksReview":`PR Failed Checks Review`,"settings.magicPrompts.sidebar.item.githubPrCommentsReview":`PR Comments Review`,"settings.magicPrompts.sidebar.item.githubSinglePrCommentReview":`Single PR Comment Review`,"settings.magicPrompts.sidebar.item.sessionSummary":`Session Summary`,"settings.magicPrompts.sidebar.item.sessionWorkspaceReview":`Workspace Review`,"settings.magicPrompts.sidebar.item.sessionExplore":`Codebase Tour`,"settings.magicPrompts.sidebar.item.sessionCraftGoal":`Goal Crafting`,"settings.magicPrompts.page.group.sessionCraftGoal.title":`Goal Crafting`,"settings.magicPrompts.page.group.sessionCraftGoal.description":`Prompts used by the /craft-goal slash command: visible user message + hidden instructions. Turns an idea or task into a clear, evidence-verifiable Goal through guided discovery.`,"settings.magicPrompts.sidebar.item.sessionCatchUp":`Catch Up`,"settings.magicPrompts.sidebar.item.sessionDebug":`Debugging`,"settings.magicPrompts.sidebar.item.sessionWeigh":`Weigh Options`,"settings.magicPrompts.sidebar.item.sessionFusion":`Fusion`,"settings.remoteInstances.sidebar.title":`Remote Instances`,"settings.remoteInstances.sidebar.description":`Connect to other Yuri servers via an import link or SSH.`,"settings.remoteInstances.sidebar.empty":`No remote instances yet. Import a link or add an SSH connection.`,"settings.remoteInstances.channel.link":`Link`,"settings.remoteInstances.channel.ssh":`SSH`,"settings.remoteInstances.sidebar.total":`Total {count}`,"settings.remoteInstances.sidebar.newSshInstanceName":`New SSH connection`,"settings.remoteInstances.sidebar.actions.addSshInstance":`Add SSH connection`,"settings.remoteInstances.sidebar.actions.connect":`Connect`,"settings.remoteInstances.sidebar.actions.disconnect":`Disconnect`,"settings.remoteInstances.sidebar.actions.retry":`Retry`,"settings.remoteInstances.sidebar.actions.remove":`Remove`,"settings.remoteInstances.sidebar.confirm.localPortInUseRetry":`Local port is already in use. Pick a random free local port and retry?`,"settings.remoteInstances.sidebar.toast.createFailed":`Failed to create SSH connection`,"settings.remoteInstances.sidebar.toast.retriedWithRandomPort":`Retried with a random local port`,"settings.remoteInstances.sidebar.toast.connectFailed":`Failed to connect instance`,"settings.remoteInstances.sidebar.toast.disconnectFailed":`Failed to disconnect instance`,"settings.remoteInstances.sidebar.toast.retryFailed":`Failed to retry connection`,"settings.remoteInstances.sidebar.toast.removeFailed":`Failed to remove instance`,"settings.remoteInstances.direct.sidebarTitle":`Server links`,"settings.remoteInstances.direct.sidebarDescription":`Connect with a pairing link`,"settings.remoteInstances.direct.title":`Other Yuri servers`,"settings.remoteInstances.direct.description":`Servers this app can switch to. Import a pairing link from another Yuri server.`,"settings.remoteInstances.direct.import.description":`Paste a connection link from another Yuri server.`,"settings.remoteInstances.direct.import.placeholder":`yuri://connect?...`,"settings.remoteInstances.direct.import.action":`Import Link`,"settings.remoteInstances.direct.error.invalidConnectLink":`Invalid Yuri connection link.`,"settings.remoteInstances.direct.error.pairingFailed":`Could not complete pairing. Check that the server is online and try a new connection link.`,"settings.remoteInstances.direct.state.loading":`Loading instances...`,"settings.remoteInstances.direct.state.empty":`No imported servers yet.`,"settings.remoteInstances.clientAuth.title":`Connect to this server`,"settings.remoteInstances.clientAuth.description":`Create a secure link or token so Yuri Desktop can connect to this server.`,"settings.remoteInstances.clientAuth.field.labelPlaceholder":`Instance name — e.g. Home Mac`,"settings.remoteInstances.clientAuth.field.labelHint":`The other device will show this name for this server.`,"settings.remoteInstances.clientAuth.actions.create":`Create Token`,"settings.remoteInstances.clientAuth.actions.pair":`Create Link`,"settings.remoteInstances.clientAuth.actions.revoke":`Revoke`,"settings.remoteInstances.clientAuth.actions.clearRevoked":`Clear revoked`,"settings.remoteInstances.clientAuth.qrAlt":`Yuri connection QR code`,"settings.remoteInstances.clientAuth.qrEnlarge":`Enlarge QR code`,"settings.remoteInstances.clientAuth.qrScanHint":`Scan this with the Yuri app on your other device. It is single-use and expires.`,"settings.remoteInstances.clientAuth.qrDialogTitle":`Scan to connect`,"settings.remoteInstances.clientAuth.actions.addDevice":`Add a device`,"settings.remoteInstances.clientAuth.actions.copied":`Copied`,"settings.remoteInstances.clientAuth.addDevice.transportLabel":`Where will you use this device?`,"settings.remoteInstances.clientAuth.addDevice.subtitle":`Create a one-time QR code that connects another device to this server.`,"settings.remoteInstances.clientAuth.addDevice.transport.local":`This computer only`,"settings.remoteInstances.clientAuth.addDevice.transport.localHint":`For apps running on this same machine.`,"settings.remoteInstances.clientAuth.addDevice.transport.lan":`Home network only`,"settings.remoteInstances.clientAuth.addDevice.transport.lanHint":`Connects directly over your Wi-Fi. Does not work away from this network.`,"settings.remoteInstances.clientAuth.addDevice.transport.relay":`Anywhere`,"settings.remoteInstances.clientAuth.addDevice.transport.relayHint":`Works at home and away. Away traffic goes through Yuri Private Relay — an end-to-end encrypted tunnel. No setup needed.`,"settings.remoteInstances.clientAuth.addDevice.fallback.relay":`Also allow the encrypted relay when away from home`,"settings.remoteInstances.clientAuth.addDevice.fallback.preferLocal":`Prefer the direct home connection when available`,"settings.remoteInstances.clientAuth.addDevice.relayUrlLabel":`Relay server`,"settings.remoteInstances.clientAuth.addDevice.relayUrlHint":`Use the official Yuri Relay, or enter your own ws:// or wss:// endpoint. This device will save the endpoint from the QR code.`,"settings.remoteInstances.clientAuth.addDevice.relayUrlDeployLink":`Deploy your own Relay.`,"settings.remoteInstances.clientAuth.addDevice.relayUrlLockedHint":`This server pins the Relay endpoint with YURI_RELAY_URL.`,"settings.remoteInstances.clientAuth.addDevice.relayUrlRemoteHostHint":`Set by the connected host. Pairing uses the host's current Relay endpoint.`,"settings.remoteInstances.clientAuth.addDevice.relayUrlCustomOption":`Custom endpoint…`,"settings.remoteInstances.clientAuth.addDevice.relayUrlInvalid":`Enter a valid Relay endpoint that starts with ws:// or wss://.`,"settings.remoteInstances.clientAuth.addDevice.create":`Create QR code`,"settings.remoteInstances.clientAuth.addDevice.targetLabel":`Target instance`,"settings.remoteInstances.clientAuth.addDevice.target.local":`This desktop`,"settings.remoteInstances.clientAuth.addDevice.target.sshEmpty":`No connected SSH instances`,"settings.remoteInstances.clientAuth.addDevice.target.sshNotReady":`Connect the SSH instance first`,"settings.remoteInstances.sidebar.actions.switchInstanceDisabled":`Connect this SSH instance before switching`,"settings.remoteInstances.sidebar.actions.syncConfig":`Sync config`,"settings.remoteInstances.sidebar.actions.syncConfigDisabled":`Connect this instance to sync its config`,"settings.remoteInstances.clientAuth.addDevice.done":`Done`,"settings.remoteInstances.clientAuth.addDevice.connectedToast":`Device connected.`,"settings.remoteInstances.clientAuth.pairingUrl":`Connection link`,"settings.remoteInstances.clientAuth.createdToken":`Copy this token now. For security, it will not be shown again.`,"settings.remoteInstances.clientAuth.state.loading":`Loading tokens...`,"settings.remoteInstances.clientAuth.state.empty":`No devices connected yet.`,"settings.remoteInstances.clientAuth.state.revoked":`Revoked`,"settings.remoteInstances.clientAuth.state.thisDevice":`This device`,"settings.remoteInstances.clientAuth.state.pending":`Waiting to connect…`,"settings.remoteInstances.clientAuth.state.viaRelay":`Relay`,"settings.remoteInstances.clientAuth.state.connectedDirect":`Connected · Local network`,"settings.remoteInstances.clientAuth.state.connectedRelay":`Connected · Relay`,"settings.remoteInstances.clientAuth.lastUsed":`Last used {date}`,"settings.remoteInstances.clientAuth.neverUsed":`Never used`,"settings.remoteInstances.relay.title":`Yuri Relay`,"settings.remoteInstances.relay.autoHint":`Turns on automatically when you pair a device over the relay.`,"settings.remoteInstances.relay.description":`Let your other devices connect from anywhere without opening ports. Traffic is end-to-end encrypted — the relay cannot read it.`,"settings.remoteInstances.relay.enableHint":`Nothing is shared until you enable the relay on this server.`,"settings.remoteInstances.relay.actions.enable":`Enable Relay`,"settings.remoteInstances.relay.actions.disable":`Disable`,"settings.remoteInstances.relay.confirm.disable":`Disable the relay? Devices connected through it will be disconnected immediately.`,"settings.remoteInstances.relay.state.loading":`Checking relay status...`,"settings.remoteInstances.relay.state.disabled":`Disabled`,"settings.remoteInstances.relay.state.connecting":`Connecting`,"settings.remoteInstances.relay.state.connected":`Connected`,"settings.remoteInstances.relay.state.reconnecting":`Reconnecting`,"settings.remoteInstances.relay.state.error":`Error`,"settings.remoteInstances.relay.status.clientsOne":`{count} device connected`,"settings.remoteInstances.relay.status.clientsMany":`{count} devices connected`,"settings.remoteInstances.relay.pair.title":`Pair a device`,"settings.remoteInstances.relay.pair.labelPlaceholder":`Device name (optional)`,"settings.remoteInstances.relay.pair.includeToken":`Include access token (one-scan pairing)`,"settings.remoteInstances.relay.pair.noTokenHint":`Without a token, the device signs in with this server’s UI password after connecting.`,"settings.remoteInstances.relay.pair.generate":`Create pairing link`,"settings.remoteInstances.relay.pair.requiresConnected":`Pairing becomes available once the relay is connected.`,"settings.remoteInstances.relay.pair.linkLabel":`Pairing link`,"settings.remoteInstances.relay.pair.warning":`This link grants access to this server. Do not share it.`,"settings.remoteInstances.relay.pair.qrAlt":`Relay pairing QR code`,"settings.remoteInstances.relay.pair.showQr":`Show QR code`,"settings.remoteInstances.relay.pair.qrDialogTitle":`Scan to pair`,"settings.remoteInstances.relay.pair.qrDialogDescription":`Scan this QR code with the Yuri app on your other device.`,"settings.remoteInstances.relay.pair.manageHint":`Manage or revoke paired devices in the “Connect to this server” list above.`,"settings.remoteInstances.relay.toast.enableFailed":`Failed to enable relay`,"settings.remoteInstances.relay.toast.disableFailed":`Failed to disable relay`,"settings.remoteInstances.relay.toast.offerFailed":`Failed to create pairing link`,"settings.remoteInstances.relay.toast.linkCopied":`Pairing link copied`,"settings.remoteInstances.sidebar.phase.ready":`Ready`,"settings.remoteInstances.sidebar.phase.error":`Error`,"settings.remoteInstances.sidebar.phase.reconnect":`Reconnect`,"settings.remoteInstances.sidebar.phase.installing":`Installing`,"settings.remoteInstances.sidebar.phase.updating":`Updating`,"settings.remoteInstances.sidebar.phase.forwarding":`Forwarding`,"settings.remoteInstances.sidebar.phase.starting":`Starting`,"settings.remoteInstances.sidebar.phase.connecting":`Connecting`,"settings.remoteInstances.sidebar.phase.idle":`Idle`,"settings.remoteInstances.page.section.instance":`Instance`,"settings.remoteInstances.page.section.instanceDescription":`Choose the SSH command and a display name for this connection.`,"settings.remoteInstances.page.field.mode":`Mode`,"settings.remoteInstances.page.field.modeHint":`Choose whether Yuri should start the server for you, or connect to one that is already running.`,"settings.remoteInstances.page.field.modePlaceholder":`Select mode`,"settings.remoteInstances.page.field.modeManaged":`Start it for me`,"settings.remoteInstances.page.field.modeExternal":`Already running`,"settings.remoteInstances.page.field.preferredRemotePort":`Preferred remote port`,"settings.remoteInstances.page.field.preferredRemotePortHint":`Port to use on the remote machine. Leave empty to choose one automatically.`,"settings.remoteInstances.page.field.keepServerRunning":`Keep server running`,"settings.remoteInstances.page.field.keepServerRunningHint":`Keep Yuri running on the remote machine after you disconnect.`,"settings.remoteInstances.page.field.bindHost":`Bind host`,"settings.remoteInstances.page.field.bindHostHint":`Where the local connection should listen. Use 127.0.0.1 or localhost unless you need LAN access.`,"settings.remoteInstances.page.field.preferredLocalPort":`Preferred local port`,"settings.remoteInstances.page.field.preferredLocalPortHint":`Local port to open for this connection. Leave empty to choose one automatically.`,"settings.remoteInstances.page.field.forwardType":`Forward type`,"settings.remoteInstances.page.field.localListen":`Local listen`,"settings.remoteInstances.page.field.localTarget":`Local target`,"settings.remoteInstances.page.field.remoteListen":`Remote listen`,"settings.remoteInstances.page.field.remoteTarget":`Remote target`,"settings.remoteInstances.page.field.localHostPlaceholder":`127.0.0.1`,"settings.remoteInstances.page.field.remoteHostPlaceholder":`127.0.0.1`,"settings.remoteInstances.page.field.auto":`Auto`,"settings.remoteInstances.page.confirm.bindAllInterfaces":`Binding to 0.0.0.0 exposes forwarded ports to your local network. Continue?`,"settings.remoteInstances.page.preview.localSocks5":`(local SOCKS5)`,"settings.remoteInstances.page.preview.local":`(local)`,"settings.remoteInstances.page.preview.remote":`(remote)`,"settings.remoteInstances.page.toast.openLocalEndpointFailed":`Failed to open local address`,"settings.remoteInstances.page.toast.localUrlCopied":`Local URL copied`,"settings.remoteInstances.page.actions.copyLocalUrl":`Copy local URL`,"settings.remoteInstances.page.actions.open":`Open`,"settings.remoteInstances.page.logsDialog.selectedInstanceFallback":`Selected instance`,"settings.remoteInstances.page.patternDialog.descriptionWithHost":`{host} requires a concrete destination.`,"settings.remoteInstances.page.patternDialog.description":`Enter destination.`,"settings.common.actions.cancel":`Cancel`,"settings.common.actions.create":`Create`,"settings.common.actions.delete":`Delete`,"settings.common.actions.reset":`Reset`,"settings.common.actions.rename":`Rename`,"settings.common.actions.duplicate":`Duplicate`,"settings.common.actions.import":`Import`,"settings.common.actions.copyAll":`Copy all`,"settings.common.actions.clear":`Clear`,"settings.common.actions.saving":`Saving...`,"settings.common.actions.saveChanges":`Save Changes`,"settings.common.scope.global":`Global`,"settings.common.scope.project":`Project`,"settings.common.field.description":`Description`,"settings.common.badge.new":`New`,"settings.common.badge.modified":`Modified`,"settings.common.permission.allow":`Allow`,"settings.common.permission.ask":`Ask`,"settings.common.permission.deny":`Deny`,"settings.common.state.comingSoon":`Coming soon...`,"settings.projects.actions.title":`Actions`,"settings.projects.actions.description":`Per-project commands shown in header next to project name.`,"settings.projects.actions.validation.fillNameAndCommand":`Fill action name and command before saving.`,"settings.projects.actions.state.loading":`Loading...`,"settings.projects.actions.state.empty":`No actions configured yet.`,"settings.projects.actions.state.untitled":`Untitled action`,"settings.projects.actions.state.noDesktopSshForwards":`No enabled local SSH forwards available.`,"settings.projects.actions.field.selectIconAria":`Select icon`,"settings.projects.actions.field.iconAria":`Icon {icon}`,"settings.projects.actions.field.actionNamePlaceholder":`Action name`,"settings.projects.actions.field.command":`Command`,"settings.projects.actions.field.commandPlaceholder":`e.g. bun run lint`,"settings.projects.actions.field.autoOpenUrl":`Auto-open URL`,"settings.projects.actions.field.autoOpenUrlForAria":`Auto-open URL for {title}`,"settings.projects.actions.field.autoOpenUrlDescription":`Open URL from output or custom URL below`,"settings.projects.actions.field.overrideUrlPlaceholder":`Override URL (optional)`,"settings.projects.actions.field.overrideUrlTooltip":`If this field is filled, custom URL is used. If empty, app opens best URL from output.`,"settings.projects.actions.field.desktopSshForward":`Desktop SSH forward`,"settings.projects.actions.field.useOutputManualUrl":`Use output/manual URL`,"settings.projects.actions.actions.add":`Add action`,"settings.projects.actions.actions.save":`Save Actions`,"settings.projects.actions.toast.saveFailed":`Failed to save actions`,"settings.projects.actions.toast.saved":`Project actions saved`,"settings.yuri.about.title":`About Yuri`,"settings.yuri.about.field.version":`Version`,"settings.yuri.about.field.clientVersion":`Yuri Client`,"settings.yuri.about.field.webBundle":`Web bundle`,"settings.yuri.about.field.instanceYuriVersion":`Yuri Service`,"settings.yuri.about.field.instanceOpenCodeVersion":`OpenCode`,"settings.yuri.about.field.openCodeVersion":`OpenCode version`,"settings.yuri.about.opencodeVersionWithManagement":`{version} ({management})`,"settings.yuri.about.opencodeManagement.manual-global":`global CLI — upgrade manually`,"settings.yuri.about.opencodeManagement.manual-external":`external serve — manage outside the app`,"settings.yuri.about.opencodeManagement.bundled":`bundled with the app`,"settings.yuri.about.opencodeManagement.in-app":`managed by Yuri`,"settings.yuri.about.opencodeManagement.none":`ownership unknown`,"settings.yuri.about.state.checking":`Checking...`,"settings.yuri.about.state.upToDate":`Up to date`,"settings.yuri.about.state.unknown":`unknown`,"settings.yuri.about.state.builtin":`builtin`,"settings.yuri.about.actions.checkUpdates":`Check updates`,"settings.yuri.about.actions.update":`Update`,"settings.yuri.about.actions.updateToVersion":`Update to {version}`,"settings.yuri.about.actions.applyOtaToVersion":`Update to {version}`,"settings.yuri.about.actions.installNativeToVersion":`Install {version}`,"settings.yuri.about.actions.checkForUpdates":`Check updates`,"settings.yuri.about.actions.submitFeedback":`Feedback`,"settings.yuri.about.toast.latestVersion":`You are on the latest version`,"settings.yuri.about.toast.checkFailed":`Could not check for updates`,"settings.yuri.about.betaUpdates.label":`Join Beta updates`,"settings.yuri.about.betaUpdates.description":`Get early app updates on this device.`,"settings.yuri.about.betaUpdates.rollback.title":`Roll back to stable?`,"settings.yuri.about.betaUpdates.rollback.description":`You are running a beta version. Turning off Beta updates will roll back Yuri to stable version v{version}. Restart the app to apply the change.`,"settings.yuri.about.betaUpdates.rollback.actions.cancel":`Keep Beta`,"settings.yuri.about.betaUpdates.rollback.actions.confirm":`Roll back`,"settings.yuri.about.diagnostics.label":`Diagnostics log`,"settings.yuri.about.diagnostics.description":`Export local diagnostic feats for display and sync issues. No message bodies or tokens are included.`,"settings.yuri.about.diagnostics.export":`Export log`,"settings.yuri.about.diagnostics.exporting":`Exporting…`,"settings.yuri.about.diagnostics.enable":`Record diagnostic feats`,"settings.yuri.about.diagnostics.enableHint":`Available in beta builds. Records transcript sync and display lifecycle facts on this device.`,"settings.yuri.about.diagnostics.toast.exported":`Diagnostics log exported`,"settings.yuri.about.diagnostics.toast.failed":`Could not export diagnostics log`,"settings.yuri.about.diagnostics.toast.empty":`Diagnostics log exported. No events were recorded yet.`,"settings.agents.sidebar.title":`Agents`,"settings.agents.sidebar.total":`Total {count}`,"settings.agents.sidebar.empty.title":`No agents configured`,"settings.agents.sidebar.empty.description":`Use the + button above to create one`,"settings.agents.sidebar.section.builtIn":`Built-in Agents`,"settings.agents.sidebar.section.custom":`Custom Agents`,"settings.agents.sidebar.badge.system":`system`,"settings.agents.sidebar.badge.disabled":`Disabled`,"settings.agents.sidebar.dialog.deleteTitle":`Delete Agent`,"settings.agents.sidebar.dialog.resetTitle":`Reset Agent`,"settings.agents.sidebar.dialog.deleteDescription":`Are you sure you want to delete Agent "{name}"?`,"settings.agents.sidebar.dialog.resetDescription":`Are you sure you want to reset Agent "{name}" to its default configuration?`,"settings.agents.sidebar.renameDialog.title":`Rename Agent`,"settings.agents.sidebar.renameDialog.description":`Enter a new name for Agent "@{name}"`,"settings.agents.sidebar.renameDialog.placeholder":`New Agent name...`,"settings.agents.sidebar.toast.builtInCannotDelete":`Built-in agents cannot be deleted`,"settings.agents.sidebar.toast.agentDeleted":`Agent "{name}" deleted successfully`,"settings.agents.sidebar.toast.agentReset":`Agent "{name}" reset to default`,"settings.agents.sidebar.toast.deleteFailed":`Failed to delete Agent`,"settings.agents.sidebar.toast.definitionNotFound":`Agent definition not found. Nothing was changed.`,"settings.agents.sidebar.toast.resetFailed":`Failed to reset Agent`,"settings.agents.sidebar.toast.agentNameRequired":`Agent name is required`,"settings.agents.sidebar.toast.agentExists":`An Agent with this name already exists`,"settings.agents.sidebar.toast.removeOldAfterRenameFailed":`Failed to remove old Agent after rename`,"settings.agents.sidebar.toast.renameFailed":`Failed to rename Agent`,"settings.agents.sidebar.toast.agentRenamed":`Agent renamed to "{name}"`,"settings.agents.page.toast.permissionNameRequired":`Permission name is required`,"settings.agents.page.toast.created":`Agent created successfully`,"settings.agents.page.toast.updated":`Agent updated successfully`,"settings.agents.page.toast.createFailed":`Failed to create Agent`,"settings.agents.page.toast.updateFailed":`Failed to update Agent`,"settings.agents.page.toast.saveUnexpectedError":`An error occurred while saving`,"settings.agents.page.toast.savedManualRestart":`Saved to disk. Restart your connected OpenCode server to apply the changes.`,"settings.agents.page.empty.title":`Select an Agent from the sidebar`,"settings.agents.page.empty.description":`Or create a new one`,"settings.agents.page.title.new":`New Agent`,"settings.agents.page.subtitle.new":`Configure a new assistant persona`,"settings.agents.page.subtitle.edit":`Edit Agent settings`,"settings.agents.page.section.identityRole":`Identity & Role`,"settings.agents.page.section.modelParameters":`Model`,"settings.agents.page.section.runtime":`Runtime`,"settings.agents.page.field.steps":`Step limit`,"settings.agents.page.field.stepsHint":`Empty means no limit. At the limit, the next request can only answer in text.`,"settings.agents.page.field.hidden":`Hidden`,"settings.agents.page.field.hiddenHint":`Hide this Agent from the primary switcher and from @ mentions. Task can still call it when permissions allow.`,"settings.agents.page.field.disabled":`Disabled`,"settings.agents.page.field.disabledHint":`Remove this Agent from the catalog. Turn it off and save to bring the Agent back.`,"settings.agents.page.field.color":`Color`,"settings.agents.page.field.colorHint":`Hex color, such as #FF6B6B.`,"settings.agents.page.field.colorInvalid":`Enter a hex color like #FF6B6B.`,"settings.agents.page.field.clearColorAria":`Clear color`,"settings.agents.page.field.modelHint":`Leave empty to keep the caller’s model. A variant is saved with the model.`,"settings.agents.page.system.inheritHint":`Empty keeps the built-in prompt. Text here replaces that prompt. Project instructions are still added after it.`,"settings.agents.page.apply.hint":`Applies on the next request and for new sessions. A session that is already running keeps its current model.`,"settings.agents.page.legacy.convertible":`Saving converts this Agent file to the current format.`,"settings.agents.page.legacy.dropped":`These fields will not be kept: {fields}. They do not change the next request.`,"settings.agents.page.legacy.confirmDrop":`Convert and drop those fields`,"settings.agents.page.toast.savedNextRequest":`Saved. The next request and new sessions use this Agent. A running session keeps its current model.`,"settings.agents.page.section.systemPrompt":`System Prompt`,"settings.agents.page.section.toolPermissions":`Tool Permissions`,"settings.agents.page.field.agentName":`Agent Name`,"settings.agents.page.field.agentNamePlaceholder":`agent-name`,"settings.agents.page.field.scope":`Scope`,"settings.agents.page.field.scopePlaceholder":`Scope`,"settings.agents.page.field.descriptionPlaceholder":`What does this Agent do?`,"settings.agents.page.field.mode":`Mode`,"settings.agents.page.field.modeTooltip":`Primary vs Subagent visibility`,"settings.agents.page.field.overrideModel":`Override Model`,"settings.agents.page.field.temperature":`Temperature`,"settings.agents.page.field.temperatureTooltip":`Controls randomness. Higher = creative, Lower = focused.`,"settings.agents.page.field.temperatureRange":`0.0 to 2.0`,"settings.agents.page.field.clearTemperatureAria":`Clear temperature override`,"settings.agents.page.field.topP":`Top P`,"settings.agents.page.field.topPTooltip":`Nucleus sampling diversity. Lower = likely tokens only.`,"settings.agents.page.field.topPRange":`0.0 to 1.0`,"settings.agents.page.field.clearTopPAria":`Clear top p override`,"settings.agents.page.field.variant":`Thinking Variant`,"settings.agents.page.field.variantTooltip":`Controls the thinking/reasoning depth for this Agent. Maps to provider-specific parameters (e.g. Anthropic variant, OpenAI reasoning effort).`,"settings.agents.page.field.variantHint":`e.g. high, max, low`,"settings.agents.page.field.variantPlaceholder":`default`,"settings.agents.page.field.systemPromptPlaceholder":`You are an expert coding assistant...`,"settings.agents.page.mode.primary":`Primary`,"settings.agents.page.mode.subagent":`Sub Agent`,"settings.agents.page.mode.all":`All`,"settings.agents.page.permissions.defaultLabel":`Default`,"settings.agents.page.permissions.shell":`Shell`,"settings.agents.page.permissions.subagent":`Sub Agent`,"settings.agents.page.permissions.edit":`Edit`,"settings.agents.page.permissions.externalDirectory":`External directory`,"settings.agents.page.permissions.question":`Question`,"settings.agents.page.permissions.read":`Read`,"settings.agents.page.permissions.glob":`Find files`,"settings.agents.page.permissions.grep":`Search`,"settings.agents.page.permissions.skill":`Skill`,"settings.agents.page.permissions.webfetch":`Fetch page`,"settings.agents.page.permissions.websearch":`Web search`,"settings.agents.page.permissions.execute":`Execute`,"settings.agents.page.permissions.browser":`Browser`,"settings.agents.page.permissions.hideEditor":`Hide Editor`,"settings.agents.page.permissions.advancedEditor":`Advanced Editor`,"settings.agents.page.permissions.globalSummary":`Global: {summary}`,"settings.agents.page.permissions.rulesSummary":`Rules: {summary}`,"settings.agents.page.permissions.globalDefault":`Global Default`,"settings.agents.page.permissions.pattern":`Pattern`,"settings.agents.page.permissions.addCustomRule":`Add Custom Rule`,"settings.agents.page.permissions.permissionPlaceholder":`Permission...`,"settings.agents.page.permissions.patternPlaceholder":`Pattern (e.g. *)`,"settings.permissions.saved.retry":`Retry`,"settings.permissions.saved.title":`Saved project permissions`,"settings.permissions.saved.empty":`No saved permissions for this project`,"settings.permissions.saved.delete":`Delete`,"settings.permissions.saved.deleteFailed":`Could not delete saved permission`,"settings.permissions.saved.loadFailed":`Could not load saved permissions`,"settings.agents.page.permissions.lastMatchHint":`Last matching rule wins`,"settings.page.behavior.title":`Behavior`,"settings.behavior.page.title":`Behavior`,"settings.behavior.page.warning.title":`Global rules are combined with project rules`,"settings.behavior.page.warning.description":`Changes made here update {path}. OpenCode also includes any project-level AGENTS.md rules when they exist.`,"settings.behavior.page.section.systemPrompt":`Global AGENTS.md`,"settings.behavior.page.field.systemPromptPlaceholder":`You are a helpful AI assistant...
|
|
2
|
+
import{n as e}from"./rolldown-runtime-hePW80VL.js";import{a as t}from"./vendor-zustand-CNn3HHhT.js";import{o as n}from"./vendor-aparajita-capacitor-secure-storage-xol_6BsB.js";import{i as r,r as i}from"./runtime-ead7P81A.js";import{n as a,t as o}from"./tour-CMXP3Kif.js";var s={"settings.providers.custom.emptyModels":`No models yet. Click + to add one, or sync models.`,"settings.providers.custom.description":`Gateways, local deployments, or compatible APIs`,"settings.providers.delete.description":`Delete this provider’s configuration from the user, custom and current project files, and remove its saved credentials. Removing shared configuration or credentials also affects other projects that use them.`,"settings.providers.delete.success":`Provider deleted.`,"settings.providers.delete.failed":`Could not finish deleting this provider. Some changes may already be applied; retry to finish.`,"settings.providers.custom.title":`Custom`,"settings.providers.custom.moreSettings":`More settings`,"settings.providers.custom.urlRules":`URL completion rules`,"settings.providers.custom.toggleKey":`Show or hide API key`,"settings.providers.custom.configPreview":`Preview configuration · no credentials`,"settings.providers.page.auth.waiting":`Waiting for authorization`,"settings.providers.page.auth.configured":`Provider configured`,"settings.providers.models.limit":`Showing the first 100 of {count} matches`,"settings.providers.models.removed":`Removed {name}`,"settings.providers.models.undo":`Undo`,"settings.providers.custom.protocol":`API protocol`,"settings.providers.custom.name":`Provider name`,"settings.providers.custom.baseURL":`Base URL`,"settings.providers.custom.urlAuto":`API version added automatically. Request URL: {url}. End the base URL with # to disable version completion.`,"settings.providers.custom.urlExact":`Request URL: {url}`,"settings.providers.custom.fetchModels":`Sync models`,"settings.providers.custom.discoveryFailed":`Could not fetch models. Check the address, protocol and key, or add models manually.`,"settings.providers.custom.discoveryEmpty":`The service returned no models.`,"settings.providers.custom.optionalKey":`Optional for services that do not require authentication.`,"settings.providers.custom.model":`Model {index}`,"settings.providers.custom.modelId":`Model ID`,"settings.providers.custom.modelName":`Display name`,"settings.providers.custom.context":`Context limit (tokens)`,"settings.providers.custom.output":`Output limit (tokens)`,"settings.providers.custom.tools":`Tool calling`,"settings.providers.custom.vision":`Image input`,"settings.providers.custom.addModel":`Add model`,"settings.providers.custom.addAllModels":`Add all`,"settings.providers.models.removeAll":`Remove all`,"settings.providers.delete.environmentHint":`Remove the corresponding environment variables and restart OpenCode. To only hide models, use “Remove all” below.`,"settings.providers.delete.runtimeHint":`Disable this provider in its plugin or runtime configuration. To only hide models, use “Remove all” below.`,"settings.providers.auth.account":`Account authorization`,"settings.providers.auth.environment":`Environment variables`,"settings.providers.auth.managed":`Managed by runtime`,"settings.providers.auth.noMethods":`Manage this connection at its source.`,"settings.providers.quota.title":`Usage tracking`,"settings.providers.quota.description":`Optional credentials for reading usage. These are separate from model access and account authorization.`,"settings.providers.quota.configured":`Configured`,"settings.providers.quota.optional":`Optional`,"settings.providers.quota.manage":`Configure`,"settings.providers.quota.retry":`Retry`,"settings.providers.quota.loadFailed":`Status unavailable`,"settings.providers.quota.failed":`Could not complete the operation. Check the credentials and try again.`,"settings.providers.quota.validated":`Usage credentials are valid.`,"settings.providers.quota.deleted":`Usage credentials deleted.`,"settings.providers.quota.accessToken":`Access token`,"settings.providers.quota.refreshToken":`Refresh token (optional)`,"settings.providers.quota.importCursor":`Import from local Cursor`,"settings.providers.quota.deleteHint":`Delete usage credentials? Model access stays unchanged.`,"settings.providers.source.runtime":`Runtime injection (such as a plugin)`,"settings.providers.source.builtin":`Built-in / in-memory configuration`,"settings.providers.delete.unavailable":`This provider has no independent configuration or credentials to delete. Manage it at its source (such as the supplying plugin).`,"settings.providers.custom.editModel":`Edit model`,"settings.providers.custom.modelsCount":`Models · {count} added`,"settings.providers.custom.modelsEmpty":`Add at least one model.`,"settings.providers.custom.invalidModel":`Enter a valid model ID and positive whole-number token limits. Output cannot exceed context.`,"settings.providers.custom.removeModel":`Remove model`,"settings.providers.custom.invalidModels":`Model IDs must be unique.`,"settings.providers.custom.saveFailed":`Could not save the provider. Check the URL and model configuration, then retry.`,"settings.providers.custom.cleanupFailed":`The provider was not saved, and the new credential could not be removed. Remove this account from OpenCode before retrying.`,"settings.providers.custom.refreshFailed":`The provider was saved, but the model list is not ready. Retry to refresh without saving again.`,"assistants.channels.discovery.start":`Detect user ID`,"assistants.channels.discovery.hint":`Enter the robot credentials, then detect your ID or enter it manually before saving.`,"assistants.channels.discovery.waiting":`Send this robot a private message within 90 seconds. The first sender’s ID will be filled in; this message will not run a task. Verify the ID before saving.`,"assistants.channels.discovery.timeout":`No private message received. Start detection again and send the robot a message.`,"assistants.channels.saved":`Message channel configuration saved`,"assistants.channels.title":`Message channels`,"assistants.weixin.title":`WeChat`,"assistants.weixin.description":`Scan to use this bot from WeChat, with its existing tools and host permissions. New replies also sync to the linked account. Keep the Yuri host online.`,"assistants.weixin.connect":`Connect with QR code`,"assistants.weixin.transfer":`Move connection to this bot`,"assistants.weixin.transferFrom":`Currently linked to {name}`,"assistants.weixin.transferConfirm":`Confirm move`,"assistants.weixin.transferWarning":`The previous bot will stop syncing. Unprocessed messages and unsent replies will be discarded. Chat history stays in place and started tasks are not cancelled.`,"assistants.weixin.error.bindingChanged":`The binding changed. Refresh and select again. The existing connection was not overwritten.`,"assistants.weixin.disconnect":`Disconnect`,"assistants.weixin.scan":`Scan and confirm in WeChat`,"assistants.weixin.qrAlt":`WeChat connection QR code`,"assistants.weixin.verify":`Verification code shown in WeChat`,"assistants.weixin.verifySubmit":`Confirm`,"assistants.weixin.attention":`Connection needs attention`,"assistants.weixin.status.disconnected":`Not connected`,"assistants.weixin.status.disabled":`WeChat is disabled. Development builds do not connect by default; use a release build or enable channels in the host configuration, then reopen this dialog.`,"assistants.weixin.status.waiting":`Waiting for scan`,"assistants.weixin.status.scanned":`Confirm the connection in WeChat`,"assistants.weixin.status.verify":`Enter the verification code`,"assistants.weixin.status.connected":`Connected · Text messages`,"assistants.weixin.status.reconnecting":`Reconnecting…`,"assistants.weixin.status.expired":`Authorization or QR code expired. Connect again.`,"assistants.weixin.status.error":`Could not connect`,"assistants.weixin.status.unsupported":`This host does not support WeChat. Update Yuri or use a Yuri host.`,"assistants.weixin.error.accountInUse":`This WeChat entry is already linked. Move an existing connection on this host, or unlink it in the other app before scanning again.`,"assistants.weixin.error.authExpired":`WeChat authorization expired. Disconnect and scan again.`,"assistants.weixin.error.deliveryUnknown":`Delivery could not be confirmed. Check WeChat before retrying to avoid duplicate replies.`,"assistants.weixin.error.replyUnavailable":`WeChat rejected the reply. Send this bot a new message in WeChat, then retry.`,"assistants.weixin.error.channelInUse":`Another Yuri process owns this connection. Configure it on that host or wait for it to stop.`,"assistants.weixin.error.generic":`WeChat is temporarily unavailable. Check the network and retry.`,"assistants.channels.description":`Connect this Bot to a chat platform. Open a channel to configure it; the Yuri host must stay online.`,"assistants.channels.wecom.title":`WeCom`,"assistants.channels.feishu.title":`Feishu`,"assistants.channels.dingtalk.title":`DingTalk`,"assistants.channels.wechat.summary":`Link with a QR code`,"assistants.channels.wecom.summary":`Bot ID and secret`,"assistants.channels.feishu.summary":`App ID and secret`,"assistants.channels.dingtalk.summary":`Client ID and secret`,"assistants.channels.dialog.description":`Uses the platform's native long-lived connection, not MCP streamable HTTP. Only one private-chat sender is allowed.`,"assistants.channels.sharedContext":`All channels on this Bot share one conversation context. Replies go only to the originating channel; messages without a channel source are pushed to bound platforms.`,"assistants.channels.status.disabled":`Message channels are disabled in development builds. Use a release build, or enable channels in the host configuration, then reopen this dialog.`,"assistants.channels.status.disconnected":`Not connected`,"assistants.channels.status.connecting":`Connecting…`,"assistants.channels.status.connected":`Connected`,"assistants.channels.status.reconnecting":`Reconnecting…`,"assistants.channels.status.error":`Connection error`,"assistants.channels.status.unsupported":`This host does not support this channel. Update Yuri or use a supported host.`,"assistants.channels.field.wecom.clientID":`Bot ID`,"assistants.channels.field.wecom.secret":`Bot secret`,"assistants.channels.field.wecom.ownerID":`Bound user ID`,"assistants.channels.field.feishu.clientID":`App ID`,"assistants.channels.field.feishu.secret":`App secret`,"assistants.channels.field.feishu.ownerID":`Bound user Open ID`,"assistants.channels.field.dingtalk.clientID":`Client ID`,"assistants.channels.field.dingtalk.secret":`Client secret`,"assistants.channels.field.dingtalk.ownerID":`Bound user staff ID`,"assistants.channels.field.clientIDDescription":`The platform-issued Bot or app identifier.`,"assistants.channels.field.secretKeep":`A secret is already saved. Leave this empty to keep it.`,"assistants.channels.field.secretRequired":`Required for the first configuration or when the client ID changes.`,"assistants.channels.field.ownerDescription":`Only this user can send private messages to the Bot and receive proactive messages. Detect the ID or enter it manually before saving. Group chats are not supported.`,"assistants.channels.field.wecom.ownerHelp":`To find the ID, send the bot a private message and read body.from.userid in the message callback.`,"assistants.channels.field.feishu.ownerHelp":`Query the user by phone or email with this app and user_id_type=open_id, or read sender.sender_id.open_id in a message event.`,"assistants.channels.field.dingtalk.ownerHelp":`Send the bot a private message and read senderStaffId (the enterprise user ID) in the callback, not the encrypted senderId.`,"assistants.channels.field.ownerHelpLink":`Official documentation`,"assistants.channels.saveHint":`Saving starts platform authentication. Connected appears only after the platform confirms it. All channels on this Bot share one context.`,"assistants.channels.actions.save":`Save and connect`,"assistants.channels.actions.retry":`Reconnect`,"assistants.channels.actions.disconnect":`Disconnect and remove`,"assistants.channels.actions.confirmDisconnect":`Remove configuration`,"assistants.channels.disconnectWarning":`Removes the saved credentials and stops this connection. Other channels stay bound and share the same context. The Bot's chat history is kept.`,"assistants.channels.error.invalidCredentials":`The platform rejected these credentials. Check the IDs and secret.`,"assistants.channels.error.authExpired":`Platform authorization expired. Save the credentials again.`,"assistants.channels.error.channelInUse":`Another process is using this connection. Stop it there or wait, then retry.`,"assistants.channels.error.ownerRequired":`Enter the one sender ID that may operate this Bot.`,"assistants.channels.error.deliveryUnknown":`Delivery could not be confirmed. Reconnecting will not resend the message; check the platform first.`,"assistants.channels.error.connectionReplaced":`Another session replaced this connection. Reconnecting takes over from that session; continue only if this Bot should own it.`,"assistants.channels.error.accountInUse":`This account is already bound to another Bot or process. Unlink or stop it there before reconnecting.`,"assistants.channels.error.generic":`Could not reach the platform. Check the network and retry.`,"assistants.channels.attention":`Channel needs attention`,"settings.remoteDesktop.enable":`Allow remote desktop control`,"settings.remoteDesktop.description":`Off by default. Complete the permission checks below before enabling.`,"settings.remoteDesktop.devices":`After permissions are granted and remote desktop is enabled, paired devices connect directly without another confirmation or sharing window. Turn this off to stop control, or revoke a device’s pairing. This shares the physical primary display, not a private desktop.`,"settings.remoteDesktop.recheck":`Check permissions again`,"settings.remoteDesktop.status":`Status`,"settings.remoteDesktop.screen":`Screen Recording`,"settings.remoteDesktop.screenHint":`Allows sharing the screen. Restart Yuri if a new grant does not take effect.`,"settings.remoteDesktop.accessibility":`Accessibility`,"settings.remoteDesktop.accessibilityHint":`Allows mouse and keyboard input. Checks both Yuri and its input helper.`,"settings.remoteDesktop.authorize":`Authorize`,"settings.remoteDesktop.granted":`Granted`,"settings.remoteDesktop.required":`Permission needed`,"settings.remoteDesktop.helper":`Native input helper`,"settings.remoteDesktop.helperHint":`Requires the new desktop installer; a UI-only update is not enough.`,"settings.remoteDesktop.installed":`Installed`,"settings.remoteDesktop.reinstall":`New installer required`,"settings.remoteDesktop.failed":`Could not complete the operation. Check permissions and try again. If turning off could not be saved, remote control stays blocked for this app run.`,"settings.remoteDesktop.disabled":`Remote desktop is off on this Mac. Enable it in Settings → Remote instances → Remote desktop and complete the permission checks.`,"settings.yuri.about.hostUpdate.title":`Update this instance`,"settings.yuri.about.hostUpdate.description":`Updates the connected Host. It reconnects after restart.`,"settings.yuri.about.hostUpdate.available":`Update available`,"settings.yuri.about.hostUpdate.confirm":`Update and restart`,"settings.yuri.about.hostUpdate.reconnecting":`Waiting for the Host to reconnect…`,"settings.yuri.about.hostUpdate.unsupported":`Automatic updates are unavailable for this installation. Use its installation or service manager.`,"settings.yuri.about.hostUpdate.downgrade":`Confirming will switch to stable and install an older version.`,"settings.yuri.about.hostUpdate.noNotes":`Release notes are unavailable.`,"settings.yuri.about.hostUpdate.kind.ota":`OTA update`,"settings.yuri.about.hostUpdate.kind.installer":`Full desktop installer`,"settings.yuri.about.hostUpdate.kind.cli-package":`CLI package update`,"settings.yuri.about.hostUpdate.status.checking":`Validating update`,"settings.yuri.about.hostUpdate.status.downloading":`Downloading`,"settings.yuri.about.hostUpdate.status.installing":`Installing`,"settings.yuri.about.hostUpdate.status.restarting":`Restarting`,"settings.yuri.about.hostUpdate.status.succeeded":`Update complete`,"settings.yuri.about.hostUpdate.status.failed":`Update failed. Check the Host and retry.`,"settings.voice.volcengine.save":`Save`,"settings.voice.volcengine.saveFailed":`Save failed. Your changes are retained; try again.`,"settings.voice.volcengine.loadFailed":`Could not load speech settings from this server.`,"settings.voice.volcengine.retry":`Retry`,"chat.dictation.error.microphoneNotFound":`No microphone detected. Connect one and try again.`,"settings.voice.volcengine.name":`Volcengine (Doubao)`,"settings.voice.volcengine.providerOption":`Volcengine Doubao (Recommended | Paid)`,"settings.voice.volcengine.keyHelp":`Get it here:`,"settings.voice.volcengine.openLink":`Click to open`,"settings.voice.volcengine.asrResource":`Streaming ASR resource ID`,"settings.voice.volcengine.asrContext":`Recognition context`,"settings.voice.volcengine.asrContextHelp":`Describe the topic and terminology. Clear to disable; save for the next recording. Up to 2,000 characters.`,"settings.voice.volcengine.custom":`Custom ID`,"settings.voice.volcengine.durationHelp":`Hourly plan, billed by recognition duration.`,"settings.voice.volcengine.concurrentHelp":`Concurrency plan, uses purchased concurrent capacity.`,"settings.voice.volcengine.resource":`TTS resource ID`,"settings.voice.volcengine.speaker":`TTS speaker ID`,"settings.voice.volcengine.asrTest":`Microphone test`,"settings.voice.volcengine.testHelp":`Record with the current settings and view live recognition results.`,"settings.voice.volcengine.startRecording":`Start recording`,"settings.voice.volcengine.finishRecording":`Stop and transcribe`,"settings.voice.volcengine.recordingUnsupported":`Recording is unavailable here. Use HTTPS or the mobile app.`,"settings.voice.volcengine.fileLimit":`WAV, MP3 or OGG, up to 20 MB. This tests file recognition, not live captions.`,"settings.voice.volcengine.invalidTranscript":`Invalid transcription response`,"settings.voice.volcengine.silence":`No speech detected`,"settings.voice.volcengine.stop":`Stop`,"settings.voice.volcengine.setup":`Open speech console`,"settings.remoteInstances.pairing.advanced":`Advanced settings`,"settings.remoteInstances.pairing.relayHint":`Configure the relay server for internet connections. Not used for direct local or LAN connections.`,"settings.remoteInstances.pairing.downloadStep":`Get the app`,"settings.remoteInstances.pairing.name":`Server name`,"settings.remoteInstances.pairing.anywhere":`At home or away`,"settings.remoteInstances.pairing.lan":`Same Wi-Fi network`,"settings.remoteInstances.pairing.local":`On this computer`,"settings.remoteInstances.quick.sshTitle":`Work on another computer`,"settings.remoteInstances.quick.sshHint":`Add an SSH address to run Yuri on a remote computer and work with its projects here. You will need SSH access to that computer.`,"settings.remoteInstances.quick.emptyHint":`Connect a phone or computer to continue here.`,"settings.remoteInstances.quick.title":`Connected devices`,"settings.remoteInstances.quick.error":`Could not refresh device status.`,"settings.remoteInstances.quick.download":`Download the Yuri app`,"settings.usage.magpie.url":`Additional Magpie URL`,"settings.usage.magpie.description":`Magpie on this server is detected automatically. Start Magpie, then refresh usage. No configuration needed.`,"settings.usage.magpie.connected":`Connected · providers: {count}`,"settings.usage.magpie.manual":`Connect another Magpie…`,"settings.usage.magpie.unavailable":`Magpie is temporarily unavailable. Refresh to retry.`,"settings.usage.magpie.cached":`Cached reading; awaiting fresh quota data`,"settings.usage.magpie.save":`Save`,"settings.remoteInstances.clientAuth.edit.title":`Edit device`,"settings.remoteInstances.clientAuth.edit.action":`Edit`,"settings.remoteInstances.clientAuth.edit.name":`Device name`,"settings.yuri.about.opencodeGuidance.manualGlobal":`Upgrade the configured OpenCode CLI with its package manager, then restart the service.`,"settings.yuri.about.opencodeGuidance.manualExternal":`Upgrade and restart the external OpenCode service through its owner.`,"settings.yuri.about.opencodeGuidance.bundled":`Update Yuri Desktop to update its bundled OpenCode.`,"settings.chat.questionDelegate.label":`Automatically delegate unanswered questions`,"settings.chat.questionDelegate.description":`After 30 seconds without a reply, the model decides and continues.`,"settings.chat.questionDelegate.saveFailed":`Could not save automatic delegation. Check the current status before retrying.`,"settings.globalConfig.title":`Global Configuration`,"settings.jsonEditor.fold":`Fold code`,"settings.jsonEditor.unfold":`Unfold code`,"settings.jsonEditor.foldedCode":`Folded code`,"settings.globalConfig.description":`Edit the configuration files currently used from ~/.config/opencode.`,"settings.globalConfig.actions.reload":`Reload file`,"settings.globalConfig.toast.loadFailed":`Failed to load configuration file`,"settings.globalConfig.toast.saveFailed":`Failed to save configuration file`,"settings.globalConfig.toast.saved":`Configuration saved.`,"settings.providers.page.openCodeGo.title":`OpenCode Go usage tracking`,"settings.providers.page.openCodeGo.description":`Connect the OpenCode Go dashboard to show rolling, weekly, and monthly quota.`,"settings.providers.page.openCodeGo.workspaceId":`Workspace ID`,"settings.providers.page.openCodeGo.authCookie":`Auth cookie`,"settings.providers.page.openCodeGo.consoleSignIn":`Sign in with OpenCode Console`,"settings.providers.page.openCodeGo.consoleConnected":`OpenCode Console is connected. OpenCode Go can use these credentials.`,"settings.providers.page.openCodeGo.consoleHint":`OpenCode Go signs in through OpenCode Console. Service account keys below still work.`,"settings.providers.page.openCodeGo.help":`Copy the workspace ID from the dashboard URL and the auth cookie from your browser developer tools. Yuri never scans browser cookie storage.`,"settings.providers.page.openCodeGo.save":`Save and validate`,"settings.providers.page.openCodeGo.replace":`Replace`,"settings.providers.page.openCodeGo.validate":`Validate`,"settings.providers.page.openCodeGo.delete":`Delete`,"settings.providers.page.quotaCredentials.saved":`{provider} credentials saved.`,"settings.providers.page.openCodeGo.saveFailed":`Could not validate OpenCode Go credentials.`,"settings.providers.page.openCodeGo.valid":`OpenCode Go credentials are valid.`,"settings.providers.page.openCodeGo.invalid":`OpenCode Go credentials are invalid or expired.`,"settings.providers.page.openCodeGo.deleted":`OpenCode Go credentials deleted.`,"settings.providers.page.openCodeGo.deleteFailed":`Could not delete OpenCode Go credentials.`,"settings.appearance.language.label":`Language`,"settings.appearance.language.description":`Choose the interface language.`,"settings.appearance.language.select":`Select language`,"settings.window.description":`Yuri settings window.`,"settings.view.home.title":`Settings`,"settings.view.home.description":`Jump to common pages.`,"settings.view.home.cards.providers.title":`Providers`,"settings.view.home.cards.providers.description":`Connect models + credentials`,"settings.view.home.cards.agents.title":`Agents`,"settings.view.home.cards.agents.description":`Prompts, permissions, and runtime limits`,"settings.view.home.cards.skillsCatalog.title":`Skills Catalog`,"settings.view.home.cards.skillsCatalog.description":`Install skills from catalogs`,"settings.view.home.cards.mcp.title":`MCP`,"settings.view.home.cards.mcp.description":`Configure MCP servers + connections`,"settings.view.home.cards.plugins.title":`Plugins`,"settings.view.home.cards.plugins.description":`Manage opencode plugins`,"settings.view.home.cards.usage.title":`Usage`,"settings.view.home.cards.usage.description":`Quota + spend visibility`,"settings.view.unavailable.title":`Not available`,"settings.view.unavailable.description":`This settings page is not available in this runtime.`,"settings.view.badge.beta":`beta`,"settings.view.actions.reloadOpenCode":`Reload OpenCode`,"settings.view.actions.reloadOpenCodeTooltip":`Reload OpenCode runtime configuration without restarting the service.`,"settings.view.actions.backToSettings":`Back to Settings`,"settings.view.actions.closeSettings":`Close settings`,"settings.view.actions.openSectionList":`Open section list`,"settings.view.actions.closeSettingsWithShortcut":`Close Settings ({shortcut}+,)`,"settings.view.actions.back":`Back`,"settings.view.actions.resizeNavigation":`Resize settings navigation`,"settings.view.navigation.groups.connection":`Connection`,"settings.view.navigation.groups.personalization":`Personalization`,"settings.view.navigation.groups.workspace":`Workspace`,"settings.view.navigation.groups.opencode":`OpenCode`,"settings.view.navigation.groups.content":`Content & Automation`,"settings.view.navigation.groups.system":`System`,"settings.view.search.placeholder":`Search settings`,"settings.view.search.aria":`Search settings`,"settings.view.search.clear":`Clear settings search`,"settings.view.search.noResults":`No matching settings`,"settings.page.projects.title":`Projects`,"settings.page.remoteInstances.title":`Remote Instances`,"settings.page.providers.title":`Providers`,"settings.page.usage.title":`Usage`,"settings.page.agents.title":`Agents`,"settings.page.commands.title":`Commands`,"settings.page.mcp.title":`MCP`,"settings.page.plugins.title":`Plugins`,"settings.page.skills.title":`Skills`,"settings.page.skillsCatalog.title":`Skills Catalog`,"settings.page.git.title":`Git`,"settings.page.appearance.title":`Appearance`,"settings.page.chat.title":`Chat`,"settings.page.shortcuts.title":`Shortcuts`,"settings.page.sessions.title":`Sessions`,"settings.page.archivedSessions.title":`Archived sessions`,"settings.page.summaryAI.title":`Summary AI`,"settings.page.magicPrompts.title":`Magic Prompts`,"settings.page.notifications.title":`Notifications`,"settings.page.voice.title":`Voice`,"settings.page.about.title":`About`,"settings.page.promptTemplates.title":`Prompt Templates`,"settings.promptTemplates.sidebar.title":`Prompt Templates`,"settings.promptTemplates.sidebar.total":`Total: {count}`,"settings.promptTemplates.sidebar.empty.title":`No prompt templates`,"settings.promptTemplates.sidebar.empty.description":`Create a prompt template to get started.`,"settings.promptTemplates.sidebar.toast.deleted":`Template "{name}" deleted`,"settings.promptTemplates.sidebar.toast.deleteFailed":`Failed to delete template`,"settings.promptTemplates.sidebar.toast.nameRequired":`Template name is required`,"settings.promptTemplates.sidebar.toast.renamed":`Template renamed`,"settings.promptTemplates.sidebar.toast.renameFailed":`Failed to rename template`,"settings.promptTemplates.sidebar.dialog.deleteTitle":`Delete template?`,"settings.promptTemplates.sidebar.dialog.deleteDescription":`This will permanently delete "{name}". This action cannot be undone.`,"settings.promptTemplates.sidebar.renameDialog.title":`Rename template`,"settings.promptTemplates.sidebar.renameDialog.description":`Enter a new name for "{name}".`,"settings.promptTemplates.sidebar.renameDialog.placeholder":`Template name`,"settings.promptTemplates.sidebar.badge.default":`default`,"settings.promptTemplates.page.empty.title":`Select a template`,"settings.promptTemplates.page.empty.description":`Choose a template from the sidebar to edit it.`,"settings.promptTemplates.page.title.new":`New template`,"settings.promptTemplates.page.subtitle.edit":`Edit template`,"settings.promptTemplates.page.subtitle.new":`Create a new prompt template`,"settings.promptTemplates.page.section.identity":`Identity`,"settings.promptTemplates.page.field.name":`Name`,"settings.promptTemplates.page.field.namePlaceholder":`Template name`,"settings.promptTemplates.page.section.template":`Template`,"settings.promptTemplates.page.field.templatePlaceholder":`Enter the prompt template text...`,"settings.promptTemplates.page.templateHint":`This text will be prepended to the user's prompt when selected in a multi-run group.`,"settings.promptTemplates.page.toast.nameRequired":`Template name is required`,"settings.promptTemplates.page.toast.updated":`Template updated`,"settings.promptTemplates.page.toast.updateFailed":`Failed to update template`,"settings.promptTemplates.page.toast.created":`Template created`,"settings.promptTemplates.page.toast.createFailed":`Failed to create template`,"settings.promptTemplates.page.toast.saveUnexpectedError":`An unexpected error occurred while saving`,"settings.magicPrompts.sidebar.title":`Magic Prompts`,"settings.magicPrompts.sidebar.description":`Select a prompt template to edit.`,"settings.magicPrompts.sidebar.group.git":`Git`,"settings.magicPrompts.sidebar.group.github":`GitHub`,"settings.magicPrompts.sidebar.group.session":`Session`,"settings.magicPrompts.sidebar.item.gitCommitGenerate":`Commit Generation`,"settings.magicPrompts.sidebar.item.gitPrGenerate":`PR Generation`,"settings.magicPrompts.sidebar.item.gitConflictResolve":`Merge/Rebase Conflict Resolution`,"settings.magicPrompts.sidebar.item.gitCherrypickConflictResolve":`Cherry-pick Conflict Resolution`,"settings.magicPrompts.sidebar.item.githubPrReview":`PR Review`,"settings.magicPrompts.sidebar.item.githubIssueReview":`Issue Review`,"settings.magicPrompts.sidebar.item.githubPrFailedChecksReview":`PR Failed Checks Review`,"settings.magicPrompts.sidebar.item.githubPrCommentsReview":`PR Comments Review`,"settings.magicPrompts.sidebar.item.githubSinglePrCommentReview":`Single PR Comment Review`,"settings.magicPrompts.sidebar.item.sessionSummary":`Session Summary`,"settings.magicPrompts.sidebar.item.sessionWorkspaceReview":`Workspace Review`,"settings.magicPrompts.sidebar.item.sessionExplore":`Codebase Tour`,"settings.magicPrompts.sidebar.item.sessionCraftGoal":`Goal Crafting`,"settings.magicPrompts.page.group.sessionCraftGoal.title":`Goal Crafting`,"settings.magicPrompts.page.group.sessionCraftGoal.description":`Prompts used by the /craft-goal slash command: visible user message + hidden instructions. Turns an idea or task into a clear, evidence-verifiable Goal through guided discovery.`,"settings.magicPrompts.sidebar.item.sessionCatchUp":`Catch Up`,"settings.magicPrompts.sidebar.item.sessionDebug":`Debugging`,"settings.magicPrompts.sidebar.item.sessionWeigh":`Weigh Options`,"settings.magicPrompts.sidebar.item.sessionFusion":`Fusion`,"settings.remoteInstances.sidebar.title":`Remote Instances`,"settings.remoteInstances.sidebar.description":`Connect to other Yuri servers via an import link or SSH.`,"settings.remoteInstances.sidebar.empty":`No remote instances yet. Import a link or add an SSH connection.`,"settings.remoteInstances.channel.link":`Link`,"settings.remoteInstances.channel.ssh":`SSH`,"settings.remoteInstances.sidebar.total":`Total {count}`,"settings.remoteInstances.sidebar.newSshInstanceName":`New SSH connection`,"settings.remoteInstances.sidebar.actions.addSshInstance":`Add SSH connection`,"settings.remoteInstances.sidebar.actions.connect":`Connect`,"settings.remoteInstances.sidebar.actions.disconnect":`Disconnect`,"settings.remoteInstances.sidebar.actions.retry":`Retry`,"settings.remoteInstances.sidebar.actions.remove":`Remove`,"settings.remoteInstances.sidebar.confirm.localPortInUseRetry":`Local port is already in use. Pick a random free local port and retry?`,"settings.remoteInstances.sidebar.toast.createFailed":`Failed to create SSH connection`,"settings.remoteInstances.sidebar.toast.retriedWithRandomPort":`Retried with a random local port`,"settings.remoteInstances.sidebar.toast.connectFailed":`Failed to connect instance`,"settings.remoteInstances.sidebar.toast.disconnectFailed":`Failed to disconnect instance`,"settings.remoteInstances.sidebar.toast.retryFailed":`Failed to retry connection`,"settings.remoteInstances.sidebar.toast.removeFailed":`Failed to remove instance`,"settings.remoteInstances.direct.sidebarTitle":`Server links`,"settings.remoteInstances.direct.sidebarDescription":`Connect with a pairing link`,"settings.remoteInstances.direct.title":`Other Yuri servers`,"settings.remoteInstances.direct.description":`Servers this app can switch to. Import a pairing link from another Yuri server.`,"settings.remoteInstances.direct.import.description":`Paste a connection link from another Yuri server.`,"settings.remoteInstances.direct.import.placeholder":`yuri://connect?...`,"settings.remoteInstances.direct.import.action":`Import Link`,"settings.remoteInstances.direct.error.invalidConnectLink":`Invalid Yuri connection link.`,"settings.remoteInstances.direct.error.pairingFailed":`Could not complete pairing. Check that the server is online and try a new connection link.`,"settings.remoteInstances.direct.state.loading":`Loading instances...`,"settings.remoteInstances.direct.state.empty":`No imported servers yet.`,"settings.remoteInstances.clientAuth.title":`Connect to this server`,"settings.remoteInstances.clientAuth.description":`Create a secure link or token so Yuri Desktop can connect to this server.`,"settings.remoteInstances.clientAuth.field.labelPlaceholder":`Instance name — e.g. Home Mac`,"settings.remoteInstances.clientAuth.field.labelHint":`The other device will show this name for this server.`,"settings.remoteInstances.clientAuth.actions.create":`Create Token`,"settings.remoteInstances.clientAuth.actions.pair":`Create Link`,"settings.remoteInstances.clientAuth.actions.revoke":`Revoke`,"settings.remoteInstances.clientAuth.actions.clearRevoked":`Clear revoked`,"settings.remoteInstances.clientAuth.qrAlt":`Yuri connection QR code`,"settings.remoteInstances.clientAuth.qrEnlarge":`Enlarge QR code`,"settings.remoteInstances.clientAuth.qrScanHint":`Scan this with the Yuri app on your other device. It is single-use and expires.`,"settings.remoteInstances.clientAuth.qrDialogTitle":`Scan to connect`,"settings.remoteInstances.clientAuth.actions.addDevice":`Add a device`,"settings.remoteInstances.clientAuth.actions.copied":`Copied`,"settings.remoteInstances.clientAuth.addDevice.transportLabel":`Where will you use this device?`,"settings.remoteInstances.clientAuth.addDevice.subtitle":`Create a one-time QR code that connects another device to this server.`,"settings.remoteInstances.clientAuth.addDevice.transport.local":`This computer only`,"settings.remoteInstances.clientAuth.addDevice.transport.localHint":`For apps running on this same machine.`,"settings.remoteInstances.clientAuth.addDevice.transport.lan":`Home network only`,"settings.remoteInstances.clientAuth.addDevice.transport.lanHint":`Connects directly over your Wi-Fi. Does not work away from this network.`,"settings.remoteInstances.clientAuth.addDevice.transport.relay":`Anywhere`,"settings.remoteInstances.clientAuth.addDevice.transport.relayHint":`Works at home and away. Away traffic goes through Yuri Private Relay — an end-to-end encrypted tunnel. No setup needed.`,"settings.remoteInstances.clientAuth.addDevice.fallback.relay":`Also allow the encrypted relay when away from home`,"settings.remoteInstances.clientAuth.addDevice.fallback.preferLocal":`Prefer the direct home connection when available`,"settings.remoteInstances.clientAuth.addDevice.relayUrlLabel":`Relay server`,"settings.remoteInstances.clientAuth.addDevice.relayUrlHint":`Use the official Yuri Relay, or enter your own ws:// or wss:// endpoint. This device will save the endpoint from the QR code.`,"settings.remoteInstances.clientAuth.addDevice.relayUrlDeployLink":`Deploy your own Relay.`,"settings.remoteInstances.clientAuth.addDevice.relayUrlLockedHint":`This server pins the Relay endpoint with YURI_RELAY_URL.`,"settings.remoteInstances.clientAuth.addDevice.relayUrlRemoteHostHint":`Set by the connected host. Pairing uses the host's current Relay endpoint.`,"settings.remoteInstances.clientAuth.addDevice.relayUrlCustomOption":`Custom endpoint…`,"settings.remoteInstances.clientAuth.addDevice.relayUrlInvalid":`Enter a valid Relay endpoint that starts with ws:// or wss://.`,"settings.remoteInstances.clientAuth.addDevice.create":`Create QR code`,"settings.remoteInstances.clientAuth.addDevice.targetLabel":`Target instance`,"settings.remoteInstances.clientAuth.addDevice.target.local":`This desktop`,"settings.remoteInstances.clientAuth.addDevice.target.sshEmpty":`No connected SSH instances`,"settings.remoteInstances.clientAuth.addDevice.target.sshNotReady":`Connect the SSH instance first`,"settings.remoteInstances.sidebar.actions.switchInstanceDisabled":`Connect this SSH instance before switching`,"settings.remoteInstances.sidebar.actions.syncConfig":`Sync config`,"settings.remoteInstances.sidebar.actions.syncConfigDisabled":`Connect this instance to sync its config`,"settings.remoteInstances.clientAuth.addDevice.done":`Done`,"settings.remoteInstances.clientAuth.addDevice.connectedToast":`Device connected.`,"settings.remoteInstances.clientAuth.pairingUrl":`Connection link`,"settings.remoteInstances.clientAuth.createdToken":`Copy this token now. For security, it will not be shown again.`,"settings.remoteInstances.clientAuth.state.loading":`Loading tokens...`,"settings.remoteInstances.clientAuth.state.empty":`No devices connected yet.`,"settings.remoteInstances.clientAuth.state.revoked":`Revoked`,"settings.remoteInstances.clientAuth.state.thisDevice":`This device`,"settings.remoteInstances.clientAuth.state.pending":`Waiting to connect…`,"settings.remoteInstances.clientAuth.state.viaRelay":`Relay`,"settings.remoteInstances.clientAuth.state.connectedDirect":`Connected · Local network`,"settings.remoteInstances.clientAuth.state.connectedRelay":`Connected · Relay`,"settings.remoteInstances.clientAuth.lastUsed":`Last used {date}`,"settings.remoteInstances.clientAuth.neverUsed":`Never used`,"settings.remoteInstances.relay.title":`Yuri Relay`,"settings.remoteInstances.relay.autoHint":`Turns on automatically when you pair a device over the relay.`,"settings.remoteInstances.relay.description":`Let your other devices connect from anywhere without opening ports. Traffic is end-to-end encrypted — the relay cannot read it.`,"settings.remoteInstances.relay.enableHint":`Nothing is shared until you enable the relay on this server.`,"settings.remoteInstances.relay.actions.enable":`Enable Relay`,"settings.remoteInstances.relay.actions.disable":`Disable`,"settings.remoteInstances.relay.confirm.disable":`Disable the relay? Devices connected through it will be disconnected immediately.`,"settings.remoteInstances.relay.state.loading":`Checking relay status...`,"settings.remoteInstances.relay.state.disabled":`Disabled`,"settings.remoteInstances.relay.state.connecting":`Connecting`,"settings.remoteInstances.relay.state.connected":`Connected`,"settings.remoteInstances.relay.state.reconnecting":`Reconnecting`,"settings.remoteInstances.relay.state.error":`Error`,"settings.remoteInstances.relay.status.clientsOne":`{count} device connected`,"settings.remoteInstances.relay.status.clientsMany":`{count} devices connected`,"settings.remoteInstances.relay.pair.title":`Pair a device`,"settings.remoteInstances.relay.pair.labelPlaceholder":`Device name (optional)`,"settings.remoteInstances.relay.pair.includeToken":`Include access token (one-scan pairing)`,"settings.remoteInstances.relay.pair.noTokenHint":`Without a token, the device signs in with this server’s UI password after connecting.`,"settings.remoteInstances.relay.pair.generate":`Create pairing link`,"settings.remoteInstances.relay.pair.requiresConnected":`Pairing becomes available once the relay is connected.`,"settings.remoteInstances.relay.pair.linkLabel":`Pairing link`,"settings.remoteInstances.relay.pair.warning":`This link grants access to this server. Do not share it.`,"settings.remoteInstances.relay.pair.qrAlt":`Relay pairing QR code`,"settings.remoteInstances.relay.pair.showQr":`Show QR code`,"settings.remoteInstances.relay.pair.qrDialogTitle":`Scan to pair`,"settings.remoteInstances.relay.pair.qrDialogDescription":`Scan this QR code with the Yuri app on your other device.`,"settings.remoteInstances.relay.pair.manageHint":`Manage or revoke paired devices in the “Connect to this server” list above.`,"settings.remoteInstances.relay.toast.enableFailed":`Failed to enable relay`,"settings.remoteInstances.relay.toast.disableFailed":`Failed to disable relay`,"settings.remoteInstances.relay.toast.offerFailed":`Failed to create pairing link`,"settings.remoteInstances.relay.toast.linkCopied":`Pairing link copied`,"settings.remoteInstances.sidebar.phase.ready":`Ready`,"settings.remoteInstances.sidebar.phase.error":`Error`,"settings.remoteInstances.sidebar.phase.reconnect":`Reconnect`,"settings.remoteInstances.sidebar.phase.installing":`Installing`,"settings.remoteInstances.sidebar.phase.updating":`Updating`,"settings.remoteInstances.sidebar.phase.forwarding":`Forwarding`,"settings.remoteInstances.sidebar.phase.starting":`Starting`,"settings.remoteInstances.sidebar.phase.connecting":`Connecting`,"settings.remoteInstances.sidebar.phase.idle":`Idle`,"settings.remoteInstances.page.section.instance":`Instance`,"settings.remoteInstances.page.section.instanceDescription":`Choose the SSH command and a display name for this connection.`,"settings.remoteInstances.page.field.mode":`Mode`,"settings.remoteInstances.page.field.modeHint":`Choose whether Yuri should start the server for you, or connect to one that is already running.`,"settings.remoteInstances.page.field.modePlaceholder":`Select mode`,"settings.remoteInstances.page.field.modeManaged":`Start it for me`,"settings.remoteInstances.page.field.modeExternal":`Already running`,"settings.remoteInstances.page.field.preferredRemotePort":`Preferred remote port`,"settings.remoteInstances.page.field.preferredRemotePortHint":`Port to use on the remote machine. Leave empty to choose one automatically.`,"settings.remoteInstances.page.field.keepServerRunning":`Keep server running`,"settings.remoteInstances.page.field.keepServerRunningHint":`Keep Yuri running on the remote machine after you disconnect.`,"settings.remoteInstances.page.field.bindHost":`Bind host`,"settings.remoteInstances.page.field.bindHostHint":`Where the local connection should listen. Use 127.0.0.1 or localhost unless you need LAN access.`,"settings.remoteInstances.page.field.preferredLocalPort":`Preferred local port`,"settings.remoteInstances.page.field.preferredLocalPortHint":`Local port to open for this connection. Leave empty to choose one automatically.`,"settings.remoteInstances.page.field.forwardType":`Forward type`,"settings.remoteInstances.page.field.localListen":`Local listen`,"settings.remoteInstances.page.field.localTarget":`Local target`,"settings.remoteInstances.page.field.remoteListen":`Remote listen`,"settings.remoteInstances.page.field.remoteTarget":`Remote target`,"settings.remoteInstances.page.field.localHostPlaceholder":`127.0.0.1`,"settings.remoteInstances.page.field.remoteHostPlaceholder":`127.0.0.1`,"settings.remoteInstances.page.field.auto":`Auto`,"settings.remoteInstances.page.confirm.bindAllInterfaces":`Binding to 0.0.0.0 exposes forwarded ports to your local network. Continue?`,"settings.remoteInstances.page.preview.localSocks5":`(local SOCKS5)`,"settings.remoteInstances.page.preview.local":`(local)`,"settings.remoteInstances.page.preview.remote":`(remote)`,"settings.remoteInstances.page.toast.openLocalEndpointFailed":`Failed to open local address`,"settings.remoteInstances.page.toast.localUrlCopied":`Local URL copied`,"settings.remoteInstances.page.actions.copyLocalUrl":`Copy local URL`,"settings.remoteInstances.page.actions.open":`Open`,"settings.remoteInstances.page.logsDialog.selectedInstanceFallback":`Selected instance`,"settings.remoteInstances.page.patternDialog.descriptionWithHost":`{host} requires a concrete destination.`,"settings.remoteInstances.page.patternDialog.description":`Enter destination.`,"settings.common.actions.cancel":`Cancel`,"settings.common.actions.create":`Create`,"settings.common.actions.delete":`Delete`,"settings.common.actions.reset":`Reset`,"settings.common.actions.rename":`Rename`,"settings.common.actions.duplicate":`Duplicate`,"settings.common.actions.import":`Import`,"settings.common.actions.copyAll":`Copy all`,"settings.common.actions.clear":`Clear`,"settings.common.actions.saving":`Saving...`,"settings.common.actions.saveChanges":`Save Changes`,"settings.common.scope.global":`Global`,"settings.common.scope.project":`Project`,"settings.common.field.description":`Description`,"settings.common.badge.new":`New`,"settings.common.badge.modified":`Modified`,"settings.common.permission.allow":`Allow`,"settings.common.permission.ask":`Ask`,"settings.common.permission.deny":`Deny`,"settings.common.state.comingSoon":`Coming soon...`,"settings.projects.actions.title":`Actions`,"settings.projects.actions.description":`Per-project commands shown in header next to project name.`,"settings.projects.actions.validation.fillNameAndCommand":`Fill action name and command before saving.`,"settings.projects.actions.state.loading":`Loading...`,"settings.projects.actions.state.empty":`No actions configured yet.`,"settings.projects.actions.state.untitled":`Untitled action`,"settings.projects.actions.state.noDesktopSshForwards":`No enabled local SSH forwards available.`,"settings.projects.actions.field.selectIconAria":`Select icon`,"settings.projects.actions.field.iconAria":`Icon {icon}`,"settings.projects.actions.field.actionNamePlaceholder":`Action name`,"settings.projects.actions.field.command":`Command`,"settings.projects.actions.field.commandPlaceholder":`e.g. bun run lint`,"settings.projects.actions.field.autoOpenUrl":`Auto-open URL`,"settings.projects.actions.field.autoOpenUrlForAria":`Auto-open URL for {title}`,"settings.projects.actions.field.autoOpenUrlDescription":`Open URL from output or custom URL below`,"settings.projects.actions.field.overrideUrlPlaceholder":`Override URL (optional)`,"settings.projects.actions.field.overrideUrlTooltip":`If this field is filled, custom URL is used. If empty, app opens best URL from output.`,"settings.projects.actions.field.desktopSshForward":`Desktop SSH forward`,"settings.projects.actions.field.useOutputManualUrl":`Use output/manual URL`,"settings.projects.actions.actions.add":`Add action`,"settings.projects.actions.actions.save":`Save Actions`,"settings.projects.actions.toast.saveFailed":`Failed to save actions`,"settings.projects.actions.toast.saved":`Project actions saved`,"settings.yuri.about.title":`About Yuri`,"settings.yuri.about.field.version":`Version`,"settings.yuri.about.field.clientVersion":`Yuri Client`,"settings.yuri.about.field.webBundle":`Web bundle`,"settings.yuri.about.field.instanceYuriVersion":`Yuri Service`,"settings.yuri.about.field.instanceOpenCodeVersion":`OpenCode`,"settings.yuri.about.field.openCodeVersion":`OpenCode version`,"settings.yuri.about.opencodeVersionWithManagement":`{version} ({management})`,"settings.yuri.about.opencodeManagement.manual-global":`global CLI — upgrade manually`,"settings.yuri.about.opencodeManagement.manual-external":`external serve — manage outside the app`,"settings.yuri.about.opencodeManagement.bundled":`bundled with the app`,"settings.yuri.about.opencodeManagement.in-app":`managed by Yuri`,"settings.yuri.about.opencodeManagement.none":`ownership unknown`,"settings.yuri.about.state.checking":`Checking...`,"settings.yuri.about.state.upToDate":`Up to date`,"settings.yuri.about.state.unknown":`unknown`,"settings.yuri.about.state.builtin":`builtin`,"settings.yuri.about.actions.checkUpdates":`Check updates`,"settings.yuri.about.actions.update":`Update`,"settings.yuri.about.actions.updateToVersion":`Update to {version}`,"settings.yuri.about.actions.applyOtaToVersion":`Update to {version}`,"settings.yuri.about.actions.installNativeToVersion":`Install {version}`,"settings.yuri.about.actions.checkForUpdates":`Check updates`,"settings.yuri.about.actions.submitFeedback":`Feedback`,"settings.yuri.about.toast.latestVersion":`You are on the latest version`,"settings.yuri.about.toast.checkFailed":`Could not check for updates`,"settings.yuri.about.betaUpdates.label":`Join Beta updates`,"settings.yuri.about.betaUpdates.description":`Get early app updates on this device.`,"settings.yuri.about.betaUpdates.rollback.title":`Roll back to stable?`,"settings.yuri.about.betaUpdates.rollback.description":`You are running a beta version. Turning off Beta updates will roll back Yuri to stable version v{version}. Restart the app to apply the change.`,"settings.yuri.about.betaUpdates.rollback.actions.cancel":`Keep Beta`,"settings.yuri.about.betaUpdates.rollback.actions.confirm":`Roll back`,"settings.yuri.about.diagnostics.label":`Diagnostics log`,"settings.yuri.about.diagnostics.description":`Export local diagnostic feats for display and sync issues. No message bodies or tokens are included.`,"settings.yuri.about.diagnostics.export":`Export log`,"settings.yuri.about.diagnostics.exporting":`Exporting…`,"settings.yuri.about.diagnostics.enable":`Record diagnostic feats`,"settings.yuri.about.diagnostics.enableHint":`Available in beta builds. Records transcript sync and display lifecycle facts on this device.`,"settings.yuri.about.diagnostics.toast.exported":`Diagnostics log exported`,"settings.yuri.about.diagnostics.toast.failed":`Could not export diagnostics log`,"settings.yuri.about.diagnostics.toast.empty":`Diagnostics log exported. No events were recorded yet.`,"settings.agents.sidebar.title":`Agents`,"settings.agents.sidebar.total":`Total {count}`,"settings.agents.sidebar.empty.title":`No agents configured`,"settings.agents.sidebar.empty.description":`Use the + button above to create one`,"settings.agents.sidebar.section.builtIn":`Built-in Agents`,"settings.agents.sidebar.section.custom":`Custom Agents`,"settings.agents.sidebar.badge.system":`system`,"settings.agents.sidebar.badge.disabled":`Disabled`,"settings.agents.sidebar.dialog.deleteTitle":`Delete Agent`,"settings.agents.sidebar.dialog.resetTitle":`Reset Agent`,"settings.agents.sidebar.dialog.deleteDescription":`Are you sure you want to delete Agent "{name}"?`,"settings.agents.sidebar.dialog.resetDescription":`Are you sure you want to reset Agent "{name}" to its default configuration?`,"settings.agents.sidebar.renameDialog.title":`Rename Agent`,"settings.agents.sidebar.renameDialog.description":`Enter a new name for Agent "@{name}"`,"settings.agents.sidebar.renameDialog.placeholder":`New Agent name...`,"settings.agents.sidebar.toast.builtInCannotDelete":`Built-in agents cannot be deleted`,"settings.agents.sidebar.toast.agentDeleted":`Agent "{name}" deleted successfully`,"settings.agents.sidebar.toast.agentReset":`Agent "{name}" reset to default`,"settings.agents.sidebar.toast.deleteFailed":`Failed to delete Agent`,"settings.agents.sidebar.toast.definitionNotFound":`Agent definition not found. Nothing was changed.`,"settings.agents.sidebar.toast.resetFailed":`Failed to reset Agent`,"settings.agents.sidebar.toast.agentNameRequired":`Agent name is required`,"settings.agents.sidebar.toast.agentExists":`An Agent with this name already exists`,"settings.agents.sidebar.toast.removeOldAfterRenameFailed":`Failed to remove old Agent after rename`,"settings.agents.sidebar.toast.renameFailed":`Failed to rename Agent`,"settings.agents.sidebar.toast.agentRenamed":`Agent renamed to "{name}"`,"settings.agents.page.toast.permissionNameRequired":`Permission name is required`,"settings.agents.page.toast.created":`Agent created successfully`,"settings.agents.page.toast.updated":`Agent updated successfully`,"settings.agents.page.toast.createFailed":`Failed to create Agent`,"settings.agents.page.toast.updateFailed":`Failed to update Agent`,"settings.agents.page.toast.saveUnexpectedError":`An error occurred while saving`,"settings.agents.page.toast.savedManualRestart":`Saved to disk. Restart your connected OpenCode server to apply the changes.`,"settings.agents.page.empty.title":`Select an Agent from the sidebar`,"settings.agents.page.empty.description":`Or create a new one`,"settings.agents.page.title.new":`New Agent`,"settings.agents.page.subtitle.new":`Configure a new assistant persona`,"settings.agents.page.subtitle.edit":`Edit Agent settings`,"settings.agents.page.section.identityRole":`Identity & Role`,"settings.agents.page.section.modelParameters":`Model`,"settings.agents.page.section.runtime":`Runtime`,"settings.agents.page.field.steps":`Step limit`,"settings.agents.page.field.stepsHint":`Empty means no limit. At the limit, the next request can only answer in text.`,"settings.agents.page.field.hidden":`Hidden`,"settings.agents.page.field.hiddenHint":`Hide this Agent from the primary switcher and from @ mentions. Task can still call it when permissions allow.`,"settings.agents.page.field.disabled":`Disabled`,"settings.agents.page.field.disabledHint":`Remove this Agent from the catalog. Turn it off and save to bring the Agent back.`,"settings.agents.page.field.color":`Color`,"settings.agents.page.field.colorHint":`Hex color, such as #FF6B6B.`,"settings.agents.page.field.colorInvalid":`Enter a hex color like #FF6B6B.`,"settings.agents.page.field.clearColorAria":`Clear color`,"settings.agents.page.field.modelHint":`Leave empty to keep the caller’s model. A variant is saved with the model.`,"settings.agents.page.system.inheritHint":`Empty keeps the built-in prompt. Text here replaces that prompt. Project instructions are still added after it.`,"settings.agents.page.apply.hint":`Applies on the next request and for new sessions. A session that is already running keeps its current model.`,"settings.agents.page.legacy.convertible":`Saving converts this Agent file to the current format.`,"settings.agents.page.legacy.dropped":`These fields will not be kept: {fields}. They do not change the next request.`,"settings.agents.page.legacy.confirmDrop":`Convert and drop those fields`,"settings.agents.page.toast.savedNextRequest":`Saved. The next request and new sessions use this Agent. A running session keeps its current model.`,"settings.agents.page.section.systemPrompt":`System Prompt`,"settings.agents.page.section.toolPermissions":`Tool Permissions`,"settings.agents.page.field.agentName":`Agent Name`,"settings.agents.page.field.agentNamePlaceholder":`agent-name`,"settings.agents.page.field.scope":`Scope`,"settings.agents.page.field.scopePlaceholder":`Scope`,"settings.agents.page.field.descriptionPlaceholder":`What does this Agent do?`,"settings.agents.page.field.mode":`Mode`,"settings.agents.page.field.modeTooltip":`Primary vs Subagent visibility`,"settings.agents.page.field.overrideModel":`Override Model`,"settings.agents.page.field.temperature":`Temperature`,"settings.agents.page.field.temperatureTooltip":`Controls randomness. Higher = creative, Lower = focused.`,"settings.agents.page.field.temperatureRange":`0.0 to 2.0`,"settings.agents.page.field.clearTemperatureAria":`Clear temperature override`,"settings.agents.page.field.topP":`Top P`,"settings.agents.page.field.topPTooltip":`Nucleus sampling diversity. Lower = likely tokens only.`,"settings.agents.page.field.topPRange":`0.0 to 1.0`,"settings.agents.page.field.clearTopPAria":`Clear top p override`,"settings.agents.page.field.variant":`Thinking Variant`,"settings.agents.page.field.variantTooltip":`Controls the thinking/reasoning depth for this Agent. Maps to provider-specific parameters (e.g. Anthropic variant, OpenAI reasoning effort).`,"settings.agents.page.field.variantHint":`e.g. high, max, low`,"settings.agents.page.field.variantPlaceholder":`default`,"settings.agents.page.field.systemPromptPlaceholder":`You are an expert coding assistant...`,"settings.agents.page.mode.primary":`Primary`,"settings.agents.page.mode.subagent":`Sub Agent`,"settings.agents.page.mode.all":`All`,"settings.agents.page.permissions.defaultLabel":`Default`,"settings.agents.page.permissions.shell":`Shell`,"settings.agents.page.permissions.subagent":`Sub Agent`,"settings.agents.page.permissions.edit":`Edit`,"settings.agents.page.permissions.externalDirectory":`External directory`,"settings.agents.page.permissions.question":`Question`,"settings.agents.page.permissions.read":`Read`,"settings.agents.page.permissions.glob":`Find files`,"settings.agents.page.permissions.grep":`Search`,"settings.agents.page.permissions.skill":`Skill`,"settings.agents.page.permissions.webfetch":`Fetch page`,"settings.agents.page.permissions.websearch":`Web search`,"settings.agents.page.permissions.execute":`Execute`,"settings.agents.page.permissions.browser":`Browser`,"settings.agents.page.permissions.hideEditor":`Hide Editor`,"settings.agents.page.permissions.advancedEditor":`Advanced Editor`,"settings.agents.page.permissions.globalSummary":`Global: {summary}`,"settings.agents.page.permissions.rulesSummary":`Rules: {summary}`,"settings.agents.page.permissions.globalDefault":`Global Default`,"settings.agents.page.permissions.pattern":`Pattern`,"settings.agents.page.permissions.addCustomRule":`Add Custom Rule`,"settings.agents.page.permissions.permissionPlaceholder":`Permission...`,"settings.agents.page.permissions.patternPlaceholder":`Pattern (e.g. *)`,"settings.permissions.saved.retry":`Retry`,"settings.permissions.saved.title":`Saved project permissions`,"settings.permissions.saved.empty":`No saved permissions for this project`,"settings.permissions.saved.delete":`Delete`,"settings.permissions.saved.deleteFailed":`Could not delete saved permission`,"settings.permissions.saved.loadFailed":`Could not load saved permissions`,"settings.agents.page.permissions.lastMatchHint":`Last matching rule wins`,"settings.page.behavior.title":`Behavior`,"settings.behavior.page.title":`Behavior`,"settings.behavior.page.warning.title":`Global rules are combined with project rules`,"settings.behavior.page.warning.description":`Changes made here update {path}. OpenCode also includes any project-level AGENTS.md rules when they exist.`,"settings.behavior.page.section.systemPrompt":`Global AGENTS.md`,"settings.behavior.page.field.systemPromptPlaceholder":`You are a helpful AI assistant...
|
|
3
3
|
|
|
4
4
|
Use this space to define absolute rules for how the AI should behave across all sessions and providers.`,"settings.behavior.page.section.responseStyle":`Custom response style`,"settings.behavior.page.responseStyle.tooltip":`When enabled, these instructions guide how the assistant responds in each new conversation. They are sent with your first message and do not change your global AGENTS.md rules.`,"settings.behavior.page.responseStyle.enableAria":`Enable response style instructions`,"settings.behavior.page.responseStyle.preset":`Preset`,"settings.behavior.page.responseStyle.option.concise":`Concise`,"settings.behavior.page.responseStyle.option.detailed":`Detailed`,"settings.behavior.page.responseStyle.option.mentor":`Mentor`,"settings.behavior.page.responseStyle.option.pushback":`Pushback`,"settings.behavior.page.responseStyle.option.noFiller":`No filler`,"settings.behavior.page.responseStyle.option.matchEnergy":`Match my energy`,"settings.behavior.page.responseStyle.option.warmPeer":`Warm peer`,"settings.behavior.page.responseStyle.option.custom":`Custom`,"settings.behavior.page.responseStyle.customPlaceholder":`Write the instruction to add to the first message...`,"settings.behavior.page.toast.saved":`Behavior saved successfully`,"settings.behavior.page.toast.saveFailed":`Failed to save behavior`,"settings.commands.sidebar.title":`Commands`,"settings.commands.sidebar.total":`Total {count}`,"settings.commands.sidebar.empty.title":`No commands configured`,"settings.commands.sidebar.empty.description":`Use the + button above to create one`,"settings.commands.sidebar.section.builtIn":`Built-in Commands`,"settings.commands.sidebar.section.custom":`Custom Commands`,"settings.commands.sidebar.dialog.deleteTitle":`Delete Command`,"settings.commands.sidebar.dialog.resetTitle":`Reset Command`,"settings.commands.sidebar.dialog.deleteDescription":`Are you sure you want to delete command "{name}"?`,"settings.commands.sidebar.dialog.resetDescription":`Are you sure you want to reset command "{name}" to its default configuration?`,"settings.commands.sidebar.renameDialog.title":`Rename Command`,"settings.commands.sidebar.renameDialog.description":`Enter a new name for the command "/{name}"`,"settings.commands.sidebar.renameDialog.placeholder":`New command name...`,"settings.commands.sidebar.toast.builtInCannotDelete":`Built-in commands cannot be deleted`,"settings.commands.sidebar.toast.commandDeleted":`Command "{name}" deleted successfully`,"settings.commands.sidebar.toast.commandReset":`Command "{name}" reset to default`,"settings.commands.sidebar.toast.deleteFailed":`Failed to delete command`,"settings.commands.sidebar.toast.resetFailed":`Failed to reset command`,"settings.commands.sidebar.toast.commandNameRequired":`Command name is required`,"settings.commands.sidebar.toast.commandExists":`A command with this name already exists`,"settings.commands.sidebar.toast.removeOldAfterRenameFailed":`Failed to remove old command after rename`,"settings.commands.sidebar.toast.renameFailed":`Failed to rename command`,"settings.commands.page.toast.templateRequired":`Command template is required`,"settings.commands.page.toast.created":`Command created successfully`,"settings.commands.page.toast.updated":`Command updated successfully`,"settings.commands.page.toast.createFailed":`Failed to create command`,"settings.commands.page.toast.updateFailed":`Failed to update command`,"settings.commands.page.toast.saveUnexpectedError":`An error occurred while saving`,"settings.commands.page.empty.title":`Select a command from the sidebar`,"settings.commands.page.empty.description":`Or create a new one`,"settings.commands.page.title.new":`New Command`,"settings.commands.page.subtitle.new":`Configure a new slash command`,"settings.commands.page.subtitle.edit":`Edit command settings`,"settings.commands.page.section.identity":`Identity`,"settings.commands.page.section.executionContext":`Execution Context`,"settings.commands.page.section.template":`Command Template`,"settings.commands.page.field.commandName":`Command Name`,"settings.commands.page.field.commandNamePlaceholder":`command-name`,"settings.commands.page.field.descriptionPlaceholder":`What does this command do?`,"settings.commands.page.field.overrideAgent":`Override Agent`,"settings.commands.page.field.templatePlaceholder":`Your command template here...
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,p as t}from"./runtime-auth-mjIpsk3N.js";import{c as n,f as r}from"./runtime-switch-BMjl5Y5W.js";import{n as i}from"./runtime-fetch-DKZOpfzo.js";import{a}from"./platform-wF65ZFgV.js";import{xt as o}from"./gitApiHttp-B0FJaIhU.js";import{z as s}from"./runtime-file-resource-CuLP3xp7.js";var c=1,l=1,u=0,d=`/api/terminal/ws`,f=1200,p=250,m=2e4,h=5e3,g=`__yuriTerminalTransportState`,_=new TextEncoder,v=new TextDecoder,y=e=>r().websocket(e),b=e=>{let t=_.encode(JSON.stringify(e)),n=new Uint8Array(t.length+1);return n[0]=c,n.set(t,1),n},x=e=>e?((e.transports??[]).includes(`ws`)||e.preferred===`ws`)&&typeof e.ws?.path==`string`&&e.ws.path.length>0:!1,S=e=>e.streamCapability?.ws?.path??e.inputCapability?.ws?.path??d,C=e=>{switch(e){case`SESSION_NOT_FOUND`:return Error(`Terminal session not found`);case`NOT_BOUND`:return Error(`Terminal session is not bound`);case`WRITE_FAIL`:return Error(`Failed to write to terminal`);case`RATE_LIMIT`:return Error(`Terminal websocket is rate limited`);case`BAD_FRAME`:return Error(`Terminal websocket protocol violation`);default:return Error(`Terminal websocket error`)}},w=class{resolveSocketUrl;assertCurrent;constructor(e=y,t=()=>{}){this.resolveSocketUrl=e,this.assertCurrent=t}socket=null;socketUrl=``;boundSessionId=null;requestedSessionId=null;openPromise=null;reconnectTimeout=null;keepaliveInterval=null;closed=!1;subscriptions=new Map;activeSubscriptionToken=null;replayCursorBySession=new Map;configure(e){if(e){if(this.socketUrl===e){this.closed=!1,this.isConnectedOrConnecting()||this.ensureConnected();return}this.socketUrl=e,this.closed=!1,this.resetConnection(),this.ensureConnected()}}subscribe(e,t,n,r){let i=Symbol(e),a={token:i,sessionId:e,onEvent:t,onError:n,maxRetries:r?.maxRetries??3,initialRetryDelay:r?.initialRetryDelay??1e3,maxRetryDelay:r?.maxRetryDelay??8e3,connectionTimeout:r?.connectionTimeout??1e4,retryCount:0,connected:!1,connectionTimeoutId:null};return this.subscriptions.set(i,a),this.activeSubscriptionToken=i,this.requestedSessionId=e,this.ensureConnected(),this.boundSessionId===e&&this.socket&&this.socket.readyState===l?(a.retryCount=0,a.connected=!0,a.onEvent({type:`connected`})):(this.boundSessionId=null,this.startConnectionTimeout(a),this.bindActiveSession()),()=>{if(this.clearConnectionTimeout(a),this.subscriptions.delete(i),this.activeSubscriptionToken===i&&(this.activeSubscriptionToken=null),this.hasSubscriptionForSession(e)||(this.boundSessionId===e&&(this.boundSessionId=null),this.requestedSessionId===e&&(this.requestedSessionId=null)),this.subscriptions.size===0){this.clearReconnectTimeout(),this.resetConnection();return}this.promoteActiveSubscription()}}async sendInput(e,t){if(!e||!t||this.closed||!this.socketUrl)return!1;let n=await this.getOpenSocket(f);if(!n||n.readyState!==l)return!1;try{return this.boundSessionId!==e&&(this.requestedSessionId=e,n.send(b({t:`b`,s:e,r:this.replayCursorBySession.get(e)??0,v:2}))),n.send(t),!0}catch{return this.handleSocketFailure(Error(`Terminal websocket send failed`)),!1}}unbindSession(e){e&&(this.boundSessionId===e&&(this.boundSessionId=null),this.requestedSessionId===e&&(this.requestedSessionId=null))}close(){this.closed=!0,this.clearReconnectTimeout();for(let e of this.subscriptions.values())this.clearConnectionTimeout(e);this.resetConnection(),this.socketUrl=``,this.subscriptions.clear(),this.activeSubscriptionToken=null,this.replayCursorBySession.clear()}prime(){this.closed||!this.socketUrl||this.isConnectedOrConnecting()||this.ensureConnected()}isConnectedOrConnecting(e){return this.closed||e&&this.socketUrl!==e?!1:this.socket&&(this.socket.readyState===l||this.socket.readyState===u)?!0:this.openPromise!==null}getActiveSubscription(){return this.activeSubscriptionToken?this.subscriptions.get(this.activeSubscriptionToken)??null:null}hasSubscriptionForSession(e){for(let t of this.subscriptions.values())if(t.sessionId===e)return!0;return!1}promoteActiveSubscription(){if(this.getActiveSubscription())return;let e=this.subscriptions.values().next().value;if(!e){this.activeSubscriptionToken=null;return}this.activeSubscriptionToken=e.token,this.requestedSessionId=e.sessionId,this.boundSessionId===e.sessionId?e.connected||(e.retryCount=0,e.connected=!0,this.clearConnectionTimeout(e),e.onEvent({type:`connected`})):(this.boundSessionId=null,this.startConnectionTimeout(e),this.bindActiveSession())}emitToSession(e,t){for(let n of this.subscriptions.values())n.sessionId===e&&n.onEvent(t)}markSessionConnected(e,t){for(let n of this.subscriptions.values())n.sessionId===e&&(n.retryCount=0,n.connected=!0,this.clearConnectionTimeout(n),n.onEvent(t))}emitErrorToSession(e,t,n){for(let r of this.subscriptions.values())r.sessionId===e&&(r.connected=!1,n&&this.clearConnectionTimeout(r),r.onError?.(t,n))}startConnectionTimeout(e){this.clearConnectionTimeout(e),e.connectionTimeoutId=setTimeout(()=>{e.connected||!this.subscriptions.has(e.token)||this.getActiveSubscription()?.token===e.token&&this.handleSocketFailure(Error(`Connection timeout`))},e.connectionTimeout)}clearConnectionTimeout(e){e.connectionTimeoutId&&=(clearTimeout(e.connectionTimeoutId),null)}async getOpenSocket(e){if(this.socket&&this.socket.readyState===l||(this.ensureConnected(),this.socket&&this.socket.readyState===l))return this.socket;let t=await Promise.race([this.openPromise??Promise.resolve(null),new Promise(t=>{setTimeout(()=>t(null),e)})]);return t&&t.readyState===l?t:this.socket&&this.socket.readyState===l?this.socket:null}ensureConnected(){this.closed||!this.socketUrl||this.socket&&(this.socket.readyState===l||this.socket.readyState===u)||(this.openPromise||=(this.clearReconnectTimeout(),(async()=>{try{await t()}catch{}return this.closed?null:new Promise(e=>{let t=!1,n=null,r=r=>{t||(t=!0,n&&=(clearTimeout(n),null),this.openPromise=null,e(r))};try{this.assertCurrent();let e=o(this.resolveSocketUrl(this.socketUrl));e.binaryType=`arraybuffer`,e.onopen=()=>{try{this.assertCurrent()}catch{e.close(),r(null);return}this.socket=e,this.startKeepalive(),r(e)},e.onmessage=e=>{try{this.assertCurrent()}catch{this.close();return}this.handleSocketMessage(e.data)},e.onerror=()=>{!this.closed&&!this.getActiveSubscription()&&this.scheduleReconnect(Error(`Terminal websocket error`))},e.onclose=()=>{this.socket===e&&(this.socket=null,this.boundSessionId=null,this.stopKeepalive(),this.closed||this.scheduleReconnect(Error(`Terminal stream connection error`))),r(null)},this.socket=e,n=setTimeout(()=>{e.readyState===u&&(e.close(),r(null))},h)}catch{r(null),this.closed||this.scheduleReconnect(Error(`Terminal websocket open failed`))}})})()))}bindActiveSession(){let e=this.getActiveSubscription();if(!(!e||!this.socket||this.socket.readyState!==l)){this.requestedSessionId=e.sessionId;try{this.socket.send(b({t:`b`,s:e.sessionId,r:this.replayCursorBySession.get(e.sessionId)??0,v:2}))}catch{this.handleSocketFailure(Error(`Terminal websocket bind failed`))}}}scheduleReconnect(e){if(this.closed||!this.socketUrl||this.reconnectTimeout)return;this.promoteActiveSubscription();let t=this.getActiveSubscription();if(!t)return;let n=t.retryCount+1,r=t.initialRetryDelay,i=t.maxRetryDelay,a=t.maxRetries;if(n>a){this.clearConnectionTimeout(t),this.emitErrorToSession(t.sessionId,e,!0);return}t.retryCount=n;for(let e of this.subscriptions.values())e.sessionId===t.sessionId&&(e.connected=!1,e.retryCount=n,e.onEvent({type:`reconnecting`,attempt:n,maxAttempts:a}));this.startConnectionTimeout(t);let o=Math.min(r*2**Math.max(n-1,0),i)+Math.floor(Math.random()*p);this.reconnectTimeout=setTimeout(()=>{this.reconnectTimeout=null,this.ensureConnected(),this.bindActiveSession()},o)}clearReconnectTimeout(){this.reconnectTimeout&&=(clearTimeout(this.reconnectTimeout),null)}sendControl(e){if(!this.socket||this.socket.readyState!==l)return!1;try{return this.socket.send(b(e)),!0}catch{return this.handleSocketFailure(Error(`Terminal websocket control send failed`)),!1}}startKeepalive(){this.stopKeepalive(),this.keepaliveInterval=setInterval(()=>{this.closed||this.sendControl({t:`p`,v:2})},m)}stopKeepalive(){this.keepaliveInterval&&=(clearInterval(this.keepaliveInterval),null)}async handleSocketMessage(e){let t=await this.asUint8Array(e);if(t&&t.length>0&&t[0]===c){this.handleControlMessage(t);return}let n=await this.asText(e);if(!n)return;let r=this.boundSessionId??this.requestedSessionId??this.getActiveSubscription()?.sessionId;r&&this.emitToSession(r,{type:`data`,data:n})}handleControlMessage(e){if(e.length<2)return;let t;try{t=JSON.parse(v.decode(e.subarray(1)))}catch{this.handleSocketFailure(Error(`Terminal websocket control parse failed`));return}let n=this.getActiveSubscription();switch(t.t){case`ok`:this.bindActiveSession();return;case`po`:return;case`d`:{let e=t.s??this.boundSessionId??this.requestedSessionId;if(!e)return;typeof t.i==`number`&&Number.isFinite(t.i)&&this.replayCursorBySession.set(e,Math.max(this.replayCursorBySession.get(e)??0,Math.trunc(t.i))),typeof t.d==`string`&&t.d.length>0&&this.emitToSession(e,{type:`data`,data:t.d});return}case`bok`:{let e=t.s??this.requestedSessionId;if(this.boundSessionId=e,!e)return;this.markSessionConnected(e,{type:`connected`,runtime:t.runtime,ptyBackend:t.ptyBackend});return}case`x`:{let e=t.s??this.boundSessionId??n?.sessionId??null;if(!e){this.boundSessionId=null;return}this.boundSessionId===e&&(this.boundSessionId=null),this.requestedSessionId===e&&(this.requestedSessionId=null),this.replayCursorBySession.delete(e);for(let n of this.subscriptions.values())n.sessionId===e&&(n.connected=!1,this.clearConnectionTimeout(n),n.onEvent({type:`exit`,exitCode:t.exitCode,signal:t.signal??null}));return}case`e`:{let e=C(t.c),r=t.f===!0;(t.c===`NOT_BOUND`||t.c===`SESSION_NOT_FOUND`)&&(this.boundSessionId=null);let i=t.s??this.requestedSessionId??n?.sessionId??null;if(i){if(t.c===`SESSION_NOT_FOUND`){this.emitErrorToSession(i,e,!0);return}this.emitErrorToSession(i,e,r)}else n&&(n.connected=!1,r&&this.clearConnectionTimeout(n),n.onError?.(e,r));t.f===!0&&this.handleSocketFailure(e);return}default:return}}async asUint8Array(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Uint8Array)return e;if(typeof Blob<`u`&&e instanceof Blob){let t=await e.arrayBuffer();return new Uint8Array(t)}return null}async asText(e){if(typeof e==`string`)return e;let t=await this.asUint8Array(e);return t?v.decode(t):``}handleSocketFailure(e){this.boundSessionId=null,this.requestedSessionId=null,this.resetConnection(),this.scheduleReconnect(e)}resetConnection(){if(this.openPromise=null,this.stopKeepalive(),this.socket){let e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null,(e.readyState===l||e.readyState===u)&&e.close()}this.boundSessionId=null}},T=()=>{let e=globalThis;return e[g]||(e[g]={inputCapability:null,streamCapability:null,manager:null}),e[g]},E=()=>{let e=T();return e.manager||=new w,e.manager},D=e=>{let t=T();if(t.inputCapability=e?.input??null,t.streamCapability=e?.stream??null,!x(t.inputCapability)&&!x(t.streamCapability)){t.manager?.close(),t.manager=null;return}let n=y(S(t));n&&E().configure(n)},O=async(e,t)=>{let n=await i(`/api/terminal/${e}/input`,{method:`POST`,headers:{"Content-Type":`text/plain`},body:t});if(!n.ok){let e=await n.json().catch(()=>({error:`Failed to send terminal input`}));throw Error(e.error||`Failed to send terminal input`)}},k=t=>{let i=s(t),o=!1,c=()=>{if(o)throw new DOMException(`Terminal disposed`,`AbortError`);i.assertCurrent()},l=new w(e=>{if(c(),!/^\/api\/terminal\/(?:ws|[^/?#]+\/ws)(?:\?|$)/.test(e))throw Error(`Invalid terminal socket path`);return r().websocket(a(t.location.hostId,e))},c),u=()=>{o||(o=!0,l.close(),f(),p())},f=n(u),p=e(u),m=d,h=e=>{if(c(),e.capabilities?.stream&&!x(e.capabilities.stream))throw Error(`Remote project terminal requires WebSocket transport`);return m=e.capabilities?.stream?.ws?.path??d,e},g=async(e,n,r)=>(c(),i.json(e,{method:n,headers:{"Content-Type":`application/json`,"x-opencode-directory":t.location.directory},...r===void 0?{}:{body:JSON.stringify(r)}})),_=e=>`/api/terminal/${encodeURIComponent(e)}`,v=async e=>{if(o){let t=await i.fetch(_(e.sessionId),{method:`DELETE`});if(!t.ok)throw Error(`Terminal cleanup failed (${t.status})`);c()}return h(e)};return{createTerminalSession:async e=>v(await g(`/api/terminal/create`,`POST`,{...e,cols:e.cols??80,rows:e.rows??24})),restartTerminalSession:async(e,t)=>{let n=await v(await g(`${_(e)}/restart`,`POST`,t));return l.unbindSession(e),n},connectTerminalStream:(e,t,n,r)=>(c(),l.configure(m),l.subscribe(e,t,n,r)),sendTerminalInput:async(e,t)=>{if(c(),await l.sendInput(e,t)){c();return}let n=await i.fetch(`${_(e)}/input`,{method:`POST`,headers:{"Content-Type":`text/plain`},body:t});if(!n.ok)throw Error(`Terminal input failed (${n.status})`);c()},resizeTerminal:(e,t,n)=>g(`${_(e)}/resize`,`POST`,{cols:t,rows:n}),closeTerminal:async e=>{c();let t=await i.fetch(_(e),{method:`DELETE`});if(!t.ok)throw Error(`Terminal close failed (${t.status})`);c(),l.unbindSession(e)},dispose:u}};async function A(e){let t=await i(`/api/terminal/create`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({cwd:e.cwd,cols:e.cols??80,rows:e.rows??24})});if(!t.ok){let e=await t.json().catch(()=>({error:`Failed to create terminal`}));throw Error(e.error||`Failed to create terminal session`)}let n=await t.json();return D(n.capabilities),n}var j=(e,t,n,i={})=>{let a=i.maxRetries??3,o=i.initialRetryDelay??1e3,s=i.maxRetryDelay??8e3,c=i.connectionTimeout??1e4,l=null,u=0,d=null,f=null,p=!1,m=!1,h=()=>{d&&=(clearTimeout(d),null),f&&=(clearTimeout(f),null)},g=()=>{p||(p=!0,h(),l&&=(l.close(),null))},_=(e,r)=>{if(!(p||m)){if(u<a&&!r){u+=1;let e=Math.min(o*2**(u-1),s);t({type:`reconnecting`,attempt:u,maxAttempts:a}),d=setTimeout(()=>{!p&&!m&&v()},e);return}n?.(e,!0),g()}},v=()=>{if(p||m||l&&l.readyState!==EventSource.CLOSED)return;l=new EventSource(r().sse(`/api/terminal/${e}/stream`));let i=!1;f=setTimeout(()=>{!i&&l?.readyState!==EventSource.OPEN&&(l?.close(),_(Error(`Connection timeout`),!1))},c),l.onopen=()=>{i||(i=!0,u=0,h(),t({type:`connected`}))},l.onmessage=r=>{try{let n=JSON.parse(r.data);n.type===`exit`&&(T().manager?.unbindSession(e),m=!0,g()),t(n)}catch(e){n?.(e,!1)}},l.onerror=()=>{h();let e=m||l?.readyState===EventSource.CLOSED;l?.close(),l=null,m||_(Error(`Terminal stream connection error`),e)}};return v(),g};function M(e,t,n,r={}){let i=T();if(i.streamCapability&&!x(i.streamCapability))return j(e,t,n,r);let a=E(),o=y(S(i));return o?(a.configure(o),a.subscribe(e,t,n,r)):j(e,t,n,r)}async function N(e,t){let n=T();n.manager&&await n.manager.sendInput(e,t)||await O(e,t)}async function P(e,t,n){let r=await i(`/api/terminal/${e}/resize`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({cols:t,rows:n})});if(!r.ok){let e=await r.json().catch(()=>({error:`Failed to resize terminal`}));throw Error(e.error||`Failed to resize terminal`)}}async function F(e){T().manager?.unbindSession(e);let t=await i(`/api/terminal/${e}`,{method:`DELETE`});if(!t.ok){let e=await t.json().catch(()=>({error:`Failed to close terminal`}));throw Error(e.error||`Failed to close terminal`)}}async function I(e,t){T().manager?.unbindSession(e);let n=await i(`/api/terminal/${e}/restart`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({cwd:t.cwd,cols:t.cols??80,rows:t.rows??24})});if(!n.ok){let e=await n.json().catch(()=>({error:`Failed to restart terminal`}));throw Error(e.error||`Failed to restart terminal`)}let r=await n.json();return D(r.capabilities),r}async function L(e){let t=await i(`/api/terminal/force-kill`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok){let e=await t.json().catch(()=>({error:`Failed to force kill terminal`}));throw Error(e.error||`Failed to force kill terminal`)}e.sessionId&&T().manager?.unbindSession(e.sessionId)}function R(){let e=T();e.manager?.close(),e.manager=null,e.inputCapability=null,e.streamCapability=null}function z(){let e=T();if(e.inputCapability&&e.streamCapability&&!x(e.inputCapability)&&!x(e.streamCapability))return;let t=y(S(e)||d);if(!t)return;let n=E();n.isConnectedOrConnecting(t)||(n.configure(t),n.prime())}export{R as a,P as c,A as i,I as l,M as n,L as o,k as r,z as s,F as t,N as u};
|
|
1
|
+
import{_ as e,p as t}from"./runtime-auth-mjIpsk3N.js";import{c as n,f as r}from"./runtime-switch-BMjl5Y5W.js";import{n as i}from"./runtime-fetch-DKZOpfzo.js";import{a}from"./platform-wF65ZFgV.js";import{xt as o}from"./gitApiHttp-BEMPJCIG.js";import{z as s}from"./runtime-file-resource-DnhWnndu.js";var c=1,l=1,u=0,d=`/api/terminal/ws`,f=1200,p=250,m=2e4,h=5e3,g=`__yuriTerminalTransportState`,_=new TextEncoder,v=new TextDecoder,y=e=>r().websocket(e),b=e=>{let t=_.encode(JSON.stringify(e)),n=new Uint8Array(t.length+1);return n[0]=c,n.set(t,1),n},x=e=>e?((e.transports??[]).includes(`ws`)||e.preferred===`ws`)&&typeof e.ws?.path==`string`&&e.ws.path.length>0:!1,S=e=>e.streamCapability?.ws?.path??e.inputCapability?.ws?.path??d,C=e=>{switch(e){case`SESSION_NOT_FOUND`:return Error(`Terminal session not found`);case`NOT_BOUND`:return Error(`Terminal session is not bound`);case`WRITE_FAIL`:return Error(`Failed to write to terminal`);case`RATE_LIMIT`:return Error(`Terminal websocket is rate limited`);case`BAD_FRAME`:return Error(`Terminal websocket protocol violation`);default:return Error(`Terminal websocket error`)}},w=class{resolveSocketUrl;assertCurrent;constructor(e=y,t=()=>{}){this.resolveSocketUrl=e,this.assertCurrent=t}socket=null;socketUrl=``;boundSessionId=null;requestedSessionId=null;openPromise=null;reconnectTimeout=null;keepaliveInterval=null;closed=!1;subscriptions=new Map;activeSubscriptionToken=null;replayCursorBySession=new Map;configure(e){if(e){if(this.socketUrl===e){this.closed=!1,this.isConnectedOrConnecting()||this.ensureConnected();return}this.socketUrl=e,this.closed=!1,this.resetConnection(),this.ensureConnected()}}subscribe(e,t,n,r){let i=Symbol(e),a={token:i,sessionId:e,onEvent:t,onError:n,maxRetries:r?.maxRetries??3,initialRetryDelay:r?.initialRetryDelay??1e3,maxRetryDelay:r?.maxRetryDelay??8e3,connectionTimeout:r?.connectionTimeout??1e4,retryCount:0,connected:!1,connectionTimeoutId:null};return this.subscriptions.set(i,a),this.activeSubscriptionToken=i,this.requestedSessionId=e,this.ensureConnected(),this.boundSessionId===e&&this.socket&&this.socket.readyState===l?(a.retryCount=0,a.connected=!0,a.onEvent({type:`connected`})):(this.boundSessionId=null,this.startConnectionTimeout(a),this.bindActiveSession()),()=>{if(this.clearConnectionTimeout(a),this.subscriptions.delete(i),this.activeSubscriptionToken===i&&(this.activeSubscriptionToken=null),this.hasSubscriptionForSession(e)||(this.boundSessionId===e&&(this.boundSessionId=null),this.requestedSessionId===e&&(this.requestedSessionId=null)),this.subscriptions.size===0){this.clearReconnectTimeout(),this.resetConnection();return}this.promoteActiveSubscription()}}async sendInput(e,t){if(!e||!t||this.closed||!this.socketUrl)return!1;let n=await this.getOpenSocket(f);if(!n||n.readyState!==l)return!1;try{return this.boundSessionId!==e&&(this.requestedSessionId=e,n.send(b({t:`b`,s:e,r:this.replayCursorBySession.get(e)??0,v:2}))),n.send(t),!0}catch{return this.handleSocketFailure(Error(`Terminal websocket send failed`)),!1}}unbindSession(e){e&&(this.boundSessionId===e&&(this.boundSessionId=null),this.requestedSessionId===e&&(this.requestedSessionId=null))}close(){this.closed=!0,this.clearReconnectTimeout();for(let e of this.subscriptions.values())this.clearConnectionTimeout(e);this.resetConnection(),this.socketUrl=``,this.subscriptions.clear(),this.activeSubscriptionToken=null,this.replayCursorBySession.clear()}prime(){this.closed||!this.socketUrl||this.isConnectedOrConnecting()||this.ensureConnected()}isConnectedOrConnecting(e){return this.closed||e&&this.socketUrl!==e?!1:this.socket&&(this.socket.readyState===l||this.socket.readyState===u)?!0:this.openPromise!==null}getActiveSubscription(){return this.activeSubscriptionToken?this.subscriptions.get(this.activeSubscriptionToken)??null:null}hasSubscriptionForSession(e){for(let t of this.subscriptions.values())if(t.sessionId===e)return!0;return!1}promoteActiveSubscription(){if(this.getActiveSubscription())return;let e=this.subscriptions.values().next().value;if(!e){this.activeSubscriptionToken=null;return}this.activeSubscriptionToken=e.token,this.requestedSessionId=e.sessionId,this.boundSessionId===e.sessionId?e.connected||(e.retryCount=0,e.connected=!0,this.clearConnectionTimeout(e),e.onEvent({type:`connected`})):(this.boundSessionId=null,this.startConnectionTimeout(e),this.bindActiveSession())}emitToSession(e,t){for(let n of this.subscriptions.values())n.sessionId===e&&n.onEvent(t)}markSessionConnected(e,t){for(let n of this.subscriptions.values())n.sessionId===e&&(n.retryCount=0,n.connected=!0,this.clearConnectionTimeout(n),n.onEvent(t))}emitErrorToSession(e,t,n){for(let r of this.subscriptions.values())r.sessionId===e&&(r.connected=!1,n&&this.clearConnectionTimeout(r),r.onError?.(t,n))}startConnectionTimeout(e){this.clearConnectionTimeout(e),e.connectionTimeoutId=setTimeout(()=>{e.connected||!this.subscriptions.has(e.token)||this.getActiveSubscription()?.token===e.token&&this.handleSocketFailure(Error(`Connection timeout`))},e.connectionTimeout)}clearConnectionTimeout(e){e.connectionTimeoutId&&=(clearTimeout(e.connectionTimeoutId),null)}async getOpenSocket(e){if(this.socket&&this.socket.readyState===l||(this.ensureConnected(),this.socket&&this.socket.readyState===l))return this.socket;let t=await Promise.race([this.openPromise??Promise.resolve(null),new Promise(t=>{setTimeout(()=>t(null),e)})]);return t&&t.readyState===l?t:this.socket&&this.socket.readyState===l?this.socket:null}ensureConnected(){this.closed||!this.socketUrl||this.socket&&(this.socket.readyState===l||this.socket.readyState===u)||(this.openPromise||=(this.clearReconnectTimeout(),(async()=>{try{await t()}catch{}return this.closed?null:new Promise(e=>{let t=!1,n=null,r=r=>{t||(t=!0,n&&=(clearTimeout(n),null),this.openPromise=null,e(r))};try{this.assertCurrent();let e=o(this.resolveSocketUrl(this.socketUrl));e.binaryType=`arraybuffer`,e.onopen=()=>{try{this.assertCurrent()}catch{e.close(),r(null);return}this.socket=e,this.startKeepalive(),r(e)},e.onmessage=e=>{try{this.assertCurrent()}catch{this.close();return}this.handleSocketMessage(e.data)},e.onerror=()=>{!this.closed&&!this.getActiveSubscription()&&this.scheduleReconnect(Error(`Terminal websocket error`))},e.onclose=()=>{this.socket===e&&(this.socket=null,this.boundSessionId=null,this.stopKeepalive(),this.closed||this.scheduleReconnect(Error(`Terminal stream connection error`))),r(null)},this.socket=e,n=setTimeout(()=>{e.readyState===u&&(e.close(),r(null))},h)}catch{r(null),this.closed||this.scheduleReconnect(Error(`Terminal websocket open failed`))}})})()))}bindActiveSession(){let e=this.getActiveSubscription();if(!(!e||!this.socket||this.socket.readyState!==l)){this.requestedSessionId=e.sessionId;try{this.socket.send(b({t:`b`,s:e.sessionId,r:this.replayCursorBySession.get(e.sessionId)??0,v:2}))}catch{this.handleSocketFailure(Error(`Terminal websocket bind failed`))}}}scheduleReconnect(e){if(this.closed||!this.socketUrl||this.reconnectTimeout)return;this.promoteActiveSubscription();let t=this.getActiveSubscription();if(!t)return;let n=t.retryCount+1,r=t.initialRetryDelay,i=t.maxRetryDelay,a=t.maxRetries;if(n>a){this.clearConnectionTimeout(t),this.emitErrorToSession(t.sessionId,e,!0);return}t.retryCount=n;for(let e of this.subscriptions.values())e.sessionId===t.sessionId&&(e.connected=!1,e.retryCount=n,e.onEvent({type:`reconnecting`,attempt:n,maxAttempts:a}));this.startConnectionTimeout(t);let o=Math.min(r*2**Math.max(n-1,0),i)+Math.floor(Math.random()*p);this.reconnectTimeout=setTimeout(()=>{this.reconnectTimeout=null,this.ensureConnected(),this.bindActiveSession()},o)}clearReconnectTimeout(){this.reconnectTimeout&&=(clearTimeout(this.reconnectTimeout),null)}sendControl(e){if(!this.socket||this.socket.readyState!==l)return!1;try{return this.socket.send(b(e)),!0}catch{return this.handleSocketFailure(Error(`Terminal websocket control send failed`)),!1}}startKeepalive(){this.stopKeepalive(),this.keepaliveInterval=setInterval(()=>{this.closed||this.sendControl({t:`p`,v:2})},m)}stopKeepalive(){this.keepaliveInterval&&=(clearInterval(this.keepaliveInterval),null)}async handleSocketMessage(e){let t=await this.asUint8Array(e);if(t&&t.length>0&&t[0]===c){this.handleControlMessage(t);return}let n=await this.asText(e);if(!n)return;let r=this.boundSessionId??this.requestedSessionId??this.getActiveSubscription()?.sessionId;r&&this.emitToSession(r,{type:`data`,data:n})}handleControlMessage(e){if(e.length<2)return;let t;try{t=JSON.parse(v.decode(e.subarray(1)))}catch{this.handleSocketFailure(Error(`Terminal websocket control parse failed`));return}let n=this.getActiveSubscription();switch(t.t){case`ok`:this.bindActiveSession();return;case`po`:return;case`d`:{let e=t.s??this.boundSessionId??this.requestedSessionId;if(!e)return;typeof t.i==`number`&&Number.isFinite(t.i)&&this.replayCursorBySession.set(e,Math.max(this.replayCursorBySession.get(e)??0,Math.trunc(t.i))),typeof t.d==`string`&&t.d.length>0&&this.emitToSession(e,{type:`data`,data:t.d});return}case`bok`:{let e=t.s??this.requestedSessionId;if(this.boundSessionId=e,!e)return;this.markSessionConnected(e,{type:`connected`,runtime:t.runtime,ptyBackend:t.ptyBackend});return}case`x`:{let e=t.s??this.boundSessionId??n?.sessionId??null;if(!e){this.boundSessionId=null;return}this.boundSessionId===e&&(this.boundSessionId=null),this.requestedSessionId===e&&(this.requestedSessionId=null),this.replayCursorBySession.delete(e);for(let n of this.subscriptions.values())n.sessionId===e&&(n.connected=!1,this.clearConnectionTimeout(n),n.onEvent({type:`exit`,exitCode:t.exitCode,signal:t.signal??null}));return}case`e`:{let e=C(t.c),r=t.f===!0;(t.c===`NOT_BOUND`||t.c===`SESSION_NOT_FOUND`)&&(this.boundSessionId=null);let i=t.s??this.requestedSessionId??n?.sessionId??null;if(i){if(t.c===`SESSION_NOT_FOUND`){this.emitErrorToSession(i,e,!0);return}this.emitErrorToSession(i,e,r)}else n&&(n.connected=!1,r&&this.clearConnectionTimeout(n),n.onError?.(e,r));t.f===!0&&this.handleSocketFailure(e);return}default:return}}async asUint8Array(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Uint8Array)return e;if(typeof Blob<`u`&&e instanceof Blob){let t=await e.arrayBuffer();return new Uint8Array(t)}return null}async asText(e){if(typeof e==`string`)return e;let t=await this.asUint8Array(e);return t?v.decode(t):``}handleSocketFailure(e){this.boundSessionId=null,this.requestedSessionId=null,this.resetConnection(),this.scheduleReconnect(e)}resetConnection(){if(this.openPromise=null,this.stopKeepalive(),this.socket){let e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null,(e.readyState===l||e.readyState===u)&&e.close()}this.boundSessionId=null}},T=()=>{let e=globalThis;return e[g]||(e[g]={inputCapability:null,streamCapability:null,manager:null}),e[g]},E=()=>{let e=T();return e.manager||=new w,e.manager},D=e=>{let t=T();if(t.inputCapability=e?.input??null,t.streamCapability=e?.stream??null,!x(t.inputCapability)&&!x(t.streamCapability)){t.manager?.close(),t.manager=null;return}let n=y(S(t));n&&E().configure(n)},O=async(e,t)=>{let n=await i(`/api/terminal/${e}/input`,{method:`POST`,headers:{"Content-Type":`text/plain`},body:t});if(!n.ok){let e=await n.json().catch(()=>({error:`Failed to send terminal input`}));throw Error(e.error||`Failed to send terminal input`)}},k=t=>{let i=s(t),o=!1,c=()=>{if(o)throw new DOMException(`Terminal disposed`,`AbortError`);i.assertCurrent()},l=new w(e=>{if(c(),!/^\/api\/terminal\/(?:ws|[^/?#]+\/ws)(?:\?|$)/.test(e))throw Error(`Invalid terminal socket path`);return r().websocket(a(t.location.hostId,e))},c),u=()=>{o||(o=!0,l.close(),f(),p())},f=n(u),p=e(u),m=d,h=e=>{if(c(),e.capabilities?.stream&&!x(e.capabilities.stream))throw Error(`Remote project terminal requires WebSocket transport`);return m=e.capabilities?.stream?.ws?.path??d,e},g=async(e,n,r)=>(c(),i.json(e,{method:n,headers:{"Content-Type":`application/json`,"x-opencode-directory":t.location.directory},...r===void 0?{}:{body:JSON.stringify(r)}})),_=e=>`/api/terminal/${encodeURIComponent(e)}`,v=async e=>{if(o){let t=await i.fetch(_(e.sessionId),{method:`DELETE`});if(!t.ok)throw Error(`Terminal cleanup failed (${t.status})`);c()}return h(e)};return{createTerminalSession:async e=>v(await g(`/api/terminal/create`,`POST`,{...e,cols:e.cols??80,rows:e.rows??24})),restartTerminalSession:async(e,t)=>{let n=await v(await g(`${_(e)}/restart`,`POST`,t));return l.unbindSession(e),n},connectTerminalStream:(e,t,n,r)=>(c(),l.configure(m),l.subscribe(e,t,n,r)),sendTerminalInput:async(e,t)=>{if(c(),await l.sendInput(e,t)){c();return}let n=await i.fetch(`${_(e)}/input`,{method:`POST`,headers:{"Content-Type":`text/plain`},body:t});if(!n.ok)throw Error(`Terminal input failed (${n.status})`);c()},resizeTerminal:(e,t,n)=>g(`${_(e)}/resize`,`POST`,{cols:t,rows:n}),closeTerminal:async e=>{c();let t=await i.fetch(_(e),{method:`DELETE`});if(!t.ok)throw Error(`Terminal close failed (${t.status})`);c(),l.unbindSession(e)},dispose:u}};async function A(e){let t=await i(`/api/terminal/create`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({cwd:e.cwd,cols:e.cols??80,rows:e.rows??24})});if(!t.ok){let e=await t.json().catch(()=>({error:`Failed to create terminal`}));throw Error(e.error||`Failed to create terminal session`)}let n=await t.json();return D(n.capabilities),n}var j=(e,t,n,i={})=>{let a=i.maxRetries??3,o=i.initialRetryDelay??1e3,s=i.maxRetryDelay??8e3,c=i.connectionTimeout??1e4,l=null,u=0,d=null,f=null,p=!1,m=!1,h=()=>{d&&=(clearTimeout(d),null),f&&=(clearTimeout(f),null)},g=()=>{p||(p=!0,h(),l&&=(l.close(),null))},_=(e,r)=>{if(!(p||m)){if(u<a&&!r){u+=1;let e=Math.min(o*2**(u-1),s);t({type:`reconnecting`,attempt:u,maxAttempts:a}),d=setTimeout(()=>{!p&&!m&&v()},e);return}n?.(e,!0),g()}},v=()=>{if(p||m||l&&l.readyState!==EventSource.CLOSED)return;l=new EventSource(r().sse(`/api/terminal/${e}/stream`));let i=!1;f=setTimeout(()=>{!i&&l?.readyState!==EventSource.OPEN&&(l?.close(),_(Error(`Connection timeout`),!1))},c),l.onopen=()=>{i||(i=!0,u=0,h(),t({type:`connected`}))},l.onmessage=r=>{try{let n=JSON.parse(r.data);n.type===`exit`&&(T().manager?.unbindSession(e),m=!0,g()),t(n)}catch(e){n?.(e,!1)}},l.onerror=()=>{h();let e=m||l?.readyState===EventSource.CLOSED;l?.close(),l=null,m||_(Error(`Terminal stream connection error`),e)}};return v(),g};function M(e,t,n,r={}){let i=T();if(i.streamCapability&&!x(i.streamCapability))return j(e,t,n,r);let a=E(),o=y(S(i));return o?(a.configure(o),a.subscribe(e,t,n,r)):j(e,t,n,r)}async function N(e,t){let n=T();n.manager&&await n.manager.sendInput(e,t)||await O(e,t)}async function P(e,t,n){let r=await i(`/api/terminal/${e}/resize`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({cols:t,rows:n})});if(!r.ok){let e=await r.json().catch(()=>({error:`Failed to resize terminal`}));throw Error(e.error||`Failed to resize terminal`)}}async function F(e){T().manager?.unbindSession(e);let t=await i(`/api/terminal/${e}`,{method:`DELETE`});if(!t.ok){let e=await t.json().catch(()=>({error:`Failed to close terminal`}));throw Error(e.error||`Failed to close terminal`)}}async function I(e,t){T().manager?.unbindSession(e);let n=await i(`/api/terminal/${e}/restart`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({cwd:t.cwd,cols:t.cols??80,rows:t.rows??24})});if(!n.ok){let e=await n.json().catch(()=>({error:`Failed to restart terminal`}));throw Error(e.error||`Failed to restart terminal`)}let r=await n.json();return D(r.capabilities),r}async function L(e){let t=await i(`/api/terminal/force-kill`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok){let e=await t.json().catch(()=>({error:`Failed to force kill terminal`}));throw Error(e.error||`Failed to force kill terminal`)}e.sessionId&&T().manager?.unbindSession(e.sessionId)}function R(){let e=T();e.manager?.close(),e.manager=null,e.inputCapability=null,e.streamCapability=null}function z(){let e=T();if(e.inputCapability&&e.streamCapability&&!x(e.inputCapability)&&!x(e.streamCapability))return;let t=y(S(e)||d);if(!t)return;let n=E();n.isConnectedOrConnecting(t)||(n.configure(t),n.prime())}export{R as a,P as c,A as i,I as l,M as n,L as o,k as r,z as s,F as t,N as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-z2M4boRm.js";import{n as r}from"./vendor-react-P8wFrkcT.js";import{t as i}from"./i18n-qHllte6P.js";import{Rn as a}from"./useMobileNavigationStore-2N3dS8vX.js";import{t as o}from"./OverlayScrollbar-CwmXL6W2.js";var s=r(),c=e(n(),1),l=t();function u(e,t){let n=(0,s.c)(3),r;return n[0]!==e||n[1]!==t?(r=n=>{[e,t].forEach(e=>{typeof e==`function`?e(n):e&&typeof e==`object`&&(e.current=n)})},n[0]=e,n[1]=t,n[2]=r):r=n[2],r}var d=c.forwardRef((e,t)=>{let n=(0,s.c)(28),{as:r,orientation:i,offset:a,size:o,isEnabled:d,hideTopShadow:m,hideBottomShadow:h,observeMutations:g,onVisibilityChange:_,style:v,className:y,children:b,...x}=e,S=r===void 0?`div`:r,C=i===void 0?`vertical`:i,w=a===void 0?0:a,T=o===void 0?48:o,E=d===void 0||d,D=m!==void 0&&m,O=h!==void 0&&h,k=g===void 0||g,A=c.useRef(null),j=c.useRef(`none`),M=x[`data-scroll-shadow`];delete x[`data-scroll-shadow`];let N=v,P;n[0]!==T||n[1]!==N?(P={...N},P[`--scroll-shadow-size`]=`${T}px`,n[0]=T,n[1]=N,n[2]=P):P=n[2];let F=P,I=f,L=p,R;n[3]!==O||n[4]!==D||n[5]!==E||n[6]!==w||n[7]!==_||n[8]!==C?(R=()=>{let e=A.current;if(!e)return;if(!E){L(e),j.current!==`none`&&(j.current=`none`,_?.(`none`));return}let t=C===`vertical`?e.scrollTop>w+1:e.scrollLeft>w+1,n=C===`vertical`?e.scrollHeight-(e.scrollTop+e.clientHeight)>w+1:e.scrollWidth-(e.scrollLeft+e.clientWidth)>w+1,r=D&&C===`vertical`?!1:t;O&&C===`vertical`&&(n=!1),I(e,r,n,C===`vertical`?`top`:`left`,C===`vertical`?`bottom`:`right`);let i=r&&n?`both`:r?C===`vertical`?`top`:`left`:n?C===`vertical`?`bottom`:`right`:`none`;i!==j.current&&(j.current=i,_?.(i))},n[3]=O,n[4]=D,n[5]=E,n[6]=w,n[7]=_,n[8]=C,n[9]=R):R=n[9];let z=R,B,V;n[10]!==z||n[11]!==E?(B=()=>{E||z()},V=[z,E],n[10]=z,n[11]=E,n[12]=B,n[13]=V):(B=n[12],V=n[13]),c.useLayoutEffect(B,V);let H,U;n[14]!==z||n[15]!==E||n[16]!==k?(H=()=>{let e=A.current;if(!e||!E)return;let t=null,n=()=>{t===null&&(t=requestAnimationFrame(()=>{t=null,z()}))},r=n,i=typeof ResizeObserver<`u`?new ResizeObserver(n):null,a=k&&typeof MutationObserver<`u`?new MutationObserver(n):null;return z(),e.addEventListener(`scroll`,r,{passive:!0}),i?.observe(e),a?.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t!==null&&cancelAnimationFrame(t),e.removeEventListener(`scroll`,r),i?.disconnect(),a?.disconnect()}},U=[z,E,k],n[14]=z,n[15]=E,n[16]=k,n[17]=H,n[18]=U):(H=n[17],U=n[18]),c.useEffect(H,U);let W=u(A,t),G=M??!0,K;return n[19]!==S||n[20]!==b||n[21]!==y||n[22]!==W||n[23]!==F||n[24]!==C||n[25]!==x||n[26]!==G?(K=(0,l.jsx)(S,{...x,ref:W,className:y,"data-orientation":C,"data-scroll-shadow":G,style:F,children:b}),n[19]=S,n[20]=b,n[21]=y,n[22]=W,n[23]=F,n[24]=C,n[25]=x,n[26]=G,n[27]=K):K=n[27],K});d.displayName=`ScrollShadow`;function f(e,t,n,r,i){let a=`${r}${i.charAt(0).toUpperCase()}${i.slice(1)}Scroll`;t&&n?(e.dataset[a]=`true`,e.removeAttribute(`data-${r}-scroll`),e.removeAttribute(`data-${i}-scroll`)):(e.dataset[`${r}Scroll`]=String(t),e.dataset[`${i}Scroll`]=String(n),e.removeAttribute(`data-${r}-${i}-scroll`))}function p(e){[`top`,`bottom`,`top-bottom`,`left`,`right`,`left-right`].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})}var m=c.forwardRef((e,t)=>{let n=(0,s.c)(45),r,i,u,f,p,m,h,g,_,v,y,b,x,S,C,w;n[0]===e?(r=n[1],i=n[2],u=n[3],f=n[4],p=n[5],m=n[6],h=n[7],g=n[8],_=n[9],v=n[10],y=n[11],b=n[12],x=n[13],S=n[14],C=n[15],w=n[16]):({className:i,outerClassName:p,children:r,style:_,minThumbSize:f,hideDelayMs:u,as:v,scrollbarClassName:g,disableHorizontal:y,observeMutations:b,fillContainer:x,preventOverscroll:S,useScrollShadow:C,scrollShadowSize:h,userIntentOnly:w,...m}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=u,n[4]=f,n[5]=p,n[6]=m,n[7]=h,n[8]=g,n[9]=_,n[10]=v,n[11]=y,n[12]=b,n[13]=x,n[14]=S,n[15]=C,n[16]=w);let T=v===void 0?`div`:v,E=y!==void 0&&y,D=b===void 0||b,O=x===void 0||x,k=S!==void 0&&S,A=C!==void 0&&C,j=w!==void 0&&w,M=c.useRef(null),N,P;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>M.current,P=[],n[17]=N,n[18]=P):(N=n[17],P=n[18]),c.useImperativeHandle(t,N,P);let F=k&&`overscroll-none`,I;n[19]!==p||n[20]!==F?(I=a(`relative flex flex-col min-h-0 w-full overflow-hidden`,F,p),n[19]=p,n[20]=F,n[21]=I):I=n[21];let L;n[22]!==T||n[23]!==r||n[24]!==i||n[25]!==E||n[26]!==O||n[27]!==D||n[28]!==k||n[29]!==m||n[30]!==h||n[31]!==_||n[32]!==A?(L=A?(0,l.jsx)(d,{as:T,ref:M,size:h,className:a(`overlay-scrollbar-target overlay-scrollbar-container`,k&&`overscroll-none`,O?`flex-1 min-h-0 w-full`:`flex-none w-full h-auto`,E?`overflow-y-auto overflow-x-hidden`:`overflow-auto`,i),style:_,observeMutations:D,...m,children:r}):(0,l.jsx)(T,{ref:M,className:a(`overlay-scrollbar-target overlay-scrollbar-container`,k&&`overscroll-none`,O?`flex-1 min-h-0 w-full`:`flex-none w-full h-auto`,E?`overflow-y-auto overflow-x-hidden`:`overflow-auto`,i),style:_,...m,children:r}),n[22]=T,n[23]=r,n[24]=i,n[25]=E,n[26]=O,n[27]=D,n[28]=k,n[29]=m,n[30]=h,n[31]=_,n[32]=A,n[33]=L):L=n[33];let R;n[34]!==E||n[35]!==u||n[36]!==f||n[37]!==D||n[38]!==g||n[39]!==j?(R=(0,l.jsx)(o,{containerRef:M,minThumbSize:f,hideDelayMs:u,className:g,disableHorizontal:E,observeMutations:D,userIntentOnly:j}),n[34]=E,n[35]=u,n[36]=f,n[37]=D,n[38]=g,n[39]=j,n[40]=R):R=n[40];let z;return n[41]!==I||n[42]!==L||n[43]!==R?(z=(0,l.jsxs)(`div`,{className:I,children:[L,R]}),n[41]=I,n[42]=L,n[43]=R,n[44]=z):z=n[44],z});m.displayName=`ScrollableOverlay`;function h(e){let t=(0,s.c)(4),{onResizeStart:n,ariaLabel:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":!0,children:(0,l.jsx)(`path`,{d:`M9.11111 2L2 9.11111M10 6.44444L6.44444 10`,className:`stroke-muted-foreground`,strokeLinecap:`round`})}),t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,l.jsx)(`div`,{role:`separator`,"aria-orientation":`horizontal`,"aria-label":r,onPointerDown:n,className:`pointer-events-auto -m-2 flex size-7 cursor-ns-resize items-end justify-end p-2 touch-none select-none`,children:i}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}var g=c.forwardRef((e,t)=>{let n=(0,s.c)(69),r,o,u,d,f,p,g,_,v,y,b,x,S,C;n[0]===e?(r=n[1],o=n[2],u=n[3],d=n[4],f=n[5],p=n[6],g=n[7],_=n[8],v=n[9],y=n[10],b=n[11],x=n[12],S=n[13],C=n[14]):({className:r,outerClassName:g,scrollbarClassName:y,fillContainer:x,useScrollShadow:S,scrollShadowSize:v,hasError:f,resizedHeight:o,onResizeHeightChange:p,disabled:u,simple:b,embedded:C,endSlot:d,..._}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=u,n[4]=d,n[5]=f,n[6]=p,n[7]=g,n[8]=_,n[9]=v,n[10]=y,n[11]=b,n[12]=x,n[13]=S,n[14]=C);let w=x!==void 0&&x,T=S!==void 0&&S,E=C!==void 0&&C,{t:D}=i(),O=c.useRef(null),k=c.useRef(null),[A,j]=c.useState(null),M=o??A,N;n[15]===p?N=n[16]:(N=e=>{let t=O.current;if(!t)return;k.current={startY:e.clientY,startHeight:t.getBoundingClientRect().height};let n=e.currentTarget;n.setPointerCapture(e.pointerId);let r=e=>{let t=k.current;if(!t)return;let n=t.startHeight+(e.clientY-t.startY),r=Math.max(82,n);p?p(r):j(r)},i=()=>{k.current=null,n.removeEventListener(`pointermove`,r),n.removeEventListener(`pointerup`,i),n.removeEventListener(`pointercancel`,i)};n.addEventListener(`pointermove`,r),n.addEventListener(`pointerup`,i),n.addEventListener(`pointercancel`,i),e.preventDefault()},n[15]=p,n[16]=N);let P=N,F;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{if(e.target.closest(`textarea, button, [role="separator"]`))return;let t=O.current?.querySelector(`textarea`);t&&document.activeElement!==t&&(e.preventDefault(),t.focus())},n[17]=F):F=n[17];let I=F;if(b){let e=f||void 0,i=t,o;n[18]===g?o=n[19]:(o=a(`yuri-textarea-simple`,g),n[18]=g,n[19]=o);let s=w?`[field-sizing:fixed]`:`field-sizing-content`,c;n[20]!==r||n[21]!==s?(c=a(`block w-full appearance-none resize-none bg-transparent text-foreground typography-markdown outline-none`,`px-3 py-2 md:typography-ui-label`,`placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50`,s,r),n[20]=r,n[21]=s,n[22]=c):c=n[22];let d;return n[23]!==u||n[24]!==w||n[25]!==_||n[26]!==v||n[27]!==y||n[28]!==c||n[29]!==e||n[30]!==i||n[31]!==o||n[32]!==T?(d=(0,l.jsx)(m,{as:`textarea`,"data-slot":`textarea`,"aria-invalid":e,ref:i,disableHorizontal:!0,fillContainer:w,useScrollShadow:T,scrollShadowSize:v,outerClassName:o,scrollbarClassName:y,className:c,spellCheck:!1,autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`off`,disabled:u,..._}),n[23]=u,n[24]=w,n[25]=_,n[26]=v,n[27]=y,n[28]=c,n[29]=e,n[30]=i,n[31]=o,n[32]=T,n[33]=d):d=n[33],d}let L=f||void 0,R;n[34]===M?R=n[35]:(R=M===null?void 0:{height:`${M}px`},n[34]=M,n[35]=R);let z;if(n[36]!==E||n[37]!==f||n[38]!==g){let e;n[40]===f?e=n[41]:(e=f&&[`ring-[var(--status-error)]`,`focus-within:ring-2 focus-within:ring-[var(--status-error)]`],n[40]=f,n[41]=e);let t;n[42]===E?t=n[43]:(t=E&&[`rounded-none bg-transparent ring-0`,`hover:[&:not(:focus-within)]:bg-transparent`,`has-[[disabled]]:bg-transparent`],n[42]=E,n[43]=t),z=a(`group/textarea relative flex w-full flex-col rounded-[var(--radius-xl)] bg-[var(--surface-elevated)] pb-2.5`,`ring-1 ring-inset ring-border/60 transition duration-200 ease-out`,`hover:[&:not(:focus-within)]:bg-[var(--surface-subtle)]`,`has-[[disabled]]:pointer-events-none has-[[disabled]]:bg-[var(--surface-subtle)] has-[[disabled]]:ring-transparent`,!f&&[`hover:[&:not(:focus-within)]:ring-transparent`,`focus-within:ring-2 focus-within:ring-[var(--interactive-focus-ring)]`],e,t,g),n[36]=E,n[37]=f,n[38]=g,n[39]=z}else z=n[39];let B=f||void 0,V;n[44]!==r||n[45]!==u?(V=a(`block w-full flex-1 min-h-0 appearance-none resize-none bg-transparent text-foreground typography-markdown outline-none`,`min-h-[82px] pl-3 pr-2.5 pt-2.5 md:typography-ui-label`,`focus-visible:outline-none disabled:cursor-not-allowed`,!u&&[`placeholder:select-none placeholder:text-muted-foreground placeholder:transition placeholder:duration-200 placeholder:ease-out`,`group-hover/textarea:placeholder:text-foreground/80`,`focus:placeholder:text-foreground/80`],u&&`text-muted-foreground/60 placeholder:text-muted-foreground/60`,r),n[44]=r,n[45]=u,n[46]=V):V=n[46];let H;n[47]!==u||n[48]!==_||n[49]!==t||n[50]!==V||n[51]!==B?(H=(0,l.jsx)(`textarea`,{ref:t,"data-slot":`textarea-input`,"aria-invalid":B,className:V,spellCheck:!1,autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`off`,disabled:u,..._}),n[47]=u,n[48]=_,n[49]=t,n[50]=V,n[51]=B,n[52]=H):H=n[52];let U;n[53]===D?U=n[54]:(U=D(`textarea.resizeHandleAria`),n[53]=D,n[54]=U);let W;n[55]!==P||n[56]!==U?(W=(0,l.jsx)(h,{onResizeStart:P,ariaLabel:U}),n[55]=P,n[56]=U,n[57]=W):W=n[57];let G;n[58]!==d||n[59]!==W?(G=(0,l.jsxs)(`div`,{className:`flex items-center justify-end gap-1.5 pl-3 pr-2.5`,children:[d,W]}),n[58]=d,n[59]=W,n[60]=G):G=n[60];let K;n[61]!==H||n[62]!==G?(K=(0,l.jsxs)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col gap-2`,children:[H,G]}),n[61]=H,n[62]=G,n[63]=K):K=n[63];let q;return n[64]!==K||n[65]!==L||n[66]!==R||n[67]!==z?(q=(0,l.jsx)(`div`,{ref:O,"data-slot":`textarea`,"data-invalid":L,onPointerDown:I,style:R,className:z,children:K}),n[64]=K,n[65]=L,n[66]=R,n[67]=z,n[68]=q):q=n[68],q});g.displayName=`Textarea`;export{m as n,d as r,g as t};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-fom6orB6.js";import{n as r}from"./vendor-react-D5BntRmA.js";import{t as i}from"./i18n-OsFhnlRH.js";import{Rn as a}from"./useMobileNavigationStore-CU0KrVK0.js";import{t as o}from"./OverlayScrollbar-dFYzZtN7.js";var s=r(),c=e(n(),1),l=t();function u(e,t){let n=(0,s.c)(3),r;return n[0]!==e||n[1]!==t?(r=n=>{[e,t].forEach(e=>{typeof e==`function`?e(n):e&&typeof e==`object`&&(e.current=n)})},n[0]=e,n[1]=t,n[2]=r):r=n[2],r}var d=c.forwardRef((e,t)=>{let n=(0,s.c)(28),{as:r,orientation:i,offset:a,size:o,isEnabled:d,hideTopShadow:m,hideBottomShadow:h,observeMutations:g,onVisibilityChange:_,style:v,className:y,children:b,...x}=e,S=r===void 0?`div`:r,C=i===void 0?`vertical`:i,w=a===void 0?0:a,T=o===void 0?48:o,E=d===void 0||d,D=m!==void 0&&m,O=h!==void 0&&h,k=g===void 0||g,A=c.useRef(null),j=c.useRef(`none`),M=x[`data-scroll-shadow`];delete x[`data-scroll-shadow`];let N=v,P;n[0]!==T||n[1]!==N?(P={...N},P[`--scroll-shadow-size`]=`${T}px`,n[0]=T,n[1]=N,n[2]=P):P=n[2];let F=P,I=f,L=p,R;n[3]!==O||n[4]!==D||n[5]!==E||n[6]!==w||n[7]!==_||n[8]!==C?(R=()=>{let e=A.current;if(!e)return;if(!E){L(e),j.current!==`none`&&(j.current=`none`,_?.(`none`));return}let t=C===`vertical`?e.scrollTop>w+1:e.scrollLeft>w+1,n=C===`vertical`?e.scrollHeight-(e.scrollTop+e.clientHeight)>w+1:e.scrollWidth-(e.scrollLeft+e.clientWidth)>w+1,r=D&&C===`vertical`?!1:t;O&&C===`vertical`&&(n=!1),I(e,r,n,C===`vertical`?`top`:`left`,C===`vertical`?`bottom`:`right`);let i=r&&n?`both`:r?C===`vertical`?`top`:`left`:n?C===`vertical`?`bottom`:`right`:`none`;i!==j.current&&(j.current=i,_?.(i))},n[3]=O,n[4]=D,n[5]=E,n[6]=w,n[7]=_,n[8]=C,n[9]=R):R=n[9];let z=R,B,V;n[10]!==z||n[11]!==E?(B=()=>{E||z()},V=[z,E],n[10]=z,n[11]=E,n[12]=B,n[13]=V):(B=n[12],V=n[13]),c.useLayoutEffect(B,V);let H,U;n[14]!==z||n[15]!==E||n[16]!==k?(H=()=>{let e=A.current;if(!e||!E)return;let t=null,n=()=>{t===null&&(t=requestAnimationFrame(()=>{t=null,z()}))},r=n,i=typeof ResizeObserver<`u`?new ResizeObserver(n):null,a=k&&typeof MutationObserver<`u`?new MutationObserver(n):null;return z(),e.addEventListener(`scroll`,r,{passive:!0}),i?.observe(e),a?.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t!==null&&cancelAnimationFrame(t),e.removeEventListener(`scroll`,r),i?.disconnect(),a?.disconnect()}},U=[z,E,k],n[14]=z,n[15]=E,n[16]=k,n[17]=H,n[18]=U):(H=n[17],U=n[18]),c.useEffect(H,U);let W=u(A,t),G=M??!0,K;return n[19]!==S||n[20]!==b||n[21]!==y||n[22]!==W||n[23]!==F||n[24]!==C||n[25]!==x||n[26]!==G?(K=(0,l.jsx)(S,{...x,ref:W,className:y,"data-orientation":C,"data-scroll-shadow":G,style:F,children:b}),n[19]=S,n[20]=b,n[21]=y,n[22]=W,n[23]=F,n[24]=C,n[25]=x,n[26]=G,n[27]=K):K=n[27],K});d.displayName=`ScrollShadow`;function f(e,t,n,r,i){let a=`${r}${i.charAt(0).toUpperCase()}${i.slice(1)}Scroll`;t&&n?(e.dataset[a]=`true`,e.removeAttribute(`data-${r}-scroll`),e.removeAttribute(`data-${i}-scroll`)):(e.dataset[`${r}Scroll`]=String(t),e.dataset[`${i}Scroll`]=String(n),e.removeAttribute(`data-${r}-${i}-scroll`))}function p(e){[`top`,`bottom`,`top-bottom`,`left`,`right`,`left-right`].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})}var m=c.forwardRef((e,t)=>{let n=(0,s.c)(45),r,i,u,f,p,m,h,g,_,v,y,b,x,S,C,w;n[0]===e?(r=n[1],i=n[2],u=n[3],f=n[4],p=n[5],m=n[6],h=n[7],g=n[8],_=n[9],v=n[10],y=n[11],b=n[12],x=n[13],S=n[14],C=n[15],w=n[16]):({className:i,outerClassName:p,children:r,style:_,minThumbSize:f,hideDelayMs:u,as:v,scrollbarClassName:g,disableHorizontal:y,observeMutations:b,fillContainer:x,preventOverscroll:S,useScrollShadow:C,scrollShadowSize:h,userIntentOnly:w,...m}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=u,n[4]=f,n[5]=p,n[6]=m,n[7]=h,n[8]=g,n[9]=_,n[10]=v,n[11]=y,n[12]=b,n[13]=x,n[14]=S,n[15]=C,n[16]=w);let T=v===void 0?`div`:v,E=y!==void 0&&y,D=b===void 0||b,O=x===void 0||x,k=S!==void 0&&S,A=C!==void 0&&C,j=w!==void 0&&w,M=c.useRef(null),N,P;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>M.current,P=[],n[17]=N,n[18]=P):(N=n[17],P=n[18]),c.useImperativeHandle(t,N,P);let F=k&&`overscroll-none`,I;n[19]!==p||n[20]!==F?(I=a(`relative flex flex-col min-h-0 w-full overflow-hidden`,F,p),n[19]=p,n[20]=F,n[21]=I):I=n[21];let L;n[22]!==T||n[23]!==r||n[24]!==i||n[25]!==E||n[26]!==O||n[27]!==D||n[28]!==k||n[29]!==m||n[30]!==h||n[31]!==_||n[32]!==A?(L=A?(0,l.jsx)(d,{as:T,ref:M,size:h,className:a(`overlay-scrollbar-target overlay-scrollbar-container`,k&&`overscroll-none`,O?`flex-1 min-h-0 w-full`:`flex-none w-full h-auto`,E?`overflow-y-auto overflow-x-hidden`:`overflow-auto`,i),style:_,observeMutations:D,...m,children:r}):(0,l.jsx)(T,{ref:M,className:a(`overlay-scrollbar-target overlay-scrollbar-container`,k&&`overscroll-none`,O?`flex-1 min-h-0 w-full`:`flex-none w-full h-auto`,E?`overflow-y-auto overflow-x-hidden`:`overflow-auto`,i),style:_,...m,children:r}),n[22]=T,n[23]=r,n[24]=i,n[25]=E,n[26]=O,n[27]=D,n[28]=k,n[29]=m,n[30]=h,n[31]=_,n[32]=A,n[33]=L):L=n[33];let R;n[34]!==E||n[35]!==u||n[36]!==f||n[37]!==D||n[38]!==g||n[39]!==j?(R=(0,l.jsx)(o,{containerRef:M,minThumbSize:f,hideDelayMs:u,className:g,disableHorizontal:E,observeMutations:D,userIntentOnly:j}),n[34]=E,n[35]=u,n[36]=f,n[37]=D,n[38]=g,n[39]=j,n[40]=R):R=n[40];let z;return n[41]!==I||n[42]!==L||n[43]!==R?(z=(0,l.jsxs)(`div`,{className:I,children:[L,R]}),n[41]=I,n[42]=L,n[43]=R,n[44]=z):z=n[44],z});m.displayName=`ScrollableOverlay`;function h(e){let t=(0,s.c)(4),{onResizeStart:n,ariaLabel:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":!0,children:(0,l.jsx)(`path`,{d:`M9.11111 2L2 9.11111M10 6.44444L6.44444 10`,className:`stroke-muted-foreground`,strokeLinecap:`round`})}),t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,l.jsx)(`div`,{role:`separator`,"aria-orientation":`horizontal`,"aria-label":r,onPointerDown:n,className:`pointer-events-auto -m-2 flex size-7 cursor-ns-resize items-end justify-end p-2 touch-none select-none`,children:i}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}var g=c.forwardRef((e,t)=>{let n=(0,s.c)(69),r,o,u,d,f,p,g,_,v,y,b,x,S,C;n[0]===e?(r=n[1],o=n[2],u=n[3],d=n[4],f=n[5],p=n[6],g=n[7],_=n[8],v=n[9],y=n[10],b=n[11],x=n[12],S=n[13],C=n[14]):({className:r,outerClassName:g,scrollbarClassName:y,fillContainer:x,useScrollShadow:S,scrollShadowSize:v,hasError:f,resizedHeight:o,onResizeHeightChange:p,disabled:u,simple:b,embedded:C,endSlot:d,..._}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=u,n[4]=d,n[5]=f,n[6]=p,n[7]=g,n[8]=_,n[9]=v,n[10]=y,n[11]=b,n[12]=x,n[13]=S,n[14]=C);let w=x!==void 0&&x,T=S!==void 0&&S,E=C!==void 0&&C,{t:D}=i(),O=c.useRef(null),k=c.useRef(null),[A,j]=c.useState(null),M=o??A,N;n[15]===p?N=n[16]:(N=e=>{let t=O.current;if(!t)return;k.current={startY:e.clientY,startHeight:t.getBoundingClientRect().height};let n=e.currentTarget;n.setPointerCapture(e.pointerId);let r=e=>{let t=k.current;if(!t)return;let n=t.startHeight+(e.clientY-t.startY),r=Math.max(82,n);p?p(r):j(r)},i=()=>{k.current=null,n.removeEventListener(`pointermove`,r),n.removeEventListener(`pointerup`,i),n.removeEventListener(`pointercancel`,i)};n.addEventListener(`pointermove`,r),n.addEventListener(`pointerup`,i),n.addEventListener(`pointercancel`,i),e.preventDefault()},n[15]=p,n[16]=N);let P=N,F;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{if(e.target.closest(`textarea, button, [role="separator"]`))return;let t=O.current?.querySelector(`textarea`);t&&document.activeElement!==t&&(e.preventDefault(),t.focus())},n[17]=F):F=n[17];let I=F;if(b){let e=f||void 0,i=t,o;n[18]===g?o=n[19]:(o=a(`yuri-textarea-simple`,g),n[18]=g,n[19]=o);let s=w?`[field-sizing:fixed]`:`field-sizing-content`,c;n[20]!==r||n[21]!==s?(c=a(`block w-full appearance-none resize-none bg-transparent text-foreground typography-markdown outline-none`,`px-3 py-2 md:typography-ui-label`,`placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50`,s,r),n[20]=r,n[21]=s,n[22]=c):c=n[22];let d;return n[23]!==u||n[24]!==w||n[25]!==_||n[26]!==v||n[27]!==y||n[28]!==c||n[29]!==e||n[30]!==i||n[31]!==o||n[32]!==T?(d=(0,l.jsx)(m,{as:`textarea`,"data-slot":`textarea`,"aria-invalid":e,ref:i,disableHorizontal:!0,fillContainer:w,useScrollShadow:T,scrollShadowSize:v,outerClassName:o,scrollbarClassName:y,className:c,spellCheck:!1,autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`off`,disabled:u,..._}),n[23]=u,n[24]=w,n[25]=_,n[26]=v,n[27]=y,n[28]=c,n[29]=e,n[30]=i,n[31]=o,n[32]=T,n[33]=d):d=n[33],d}let L=f||void 0,R;n[34]===M?R=n[35]:(R=M===null?void 0:{height:`${M}px`},n[34]=M,n[35]=R);let z;if(n[36]!==E||n[37]!==f||n[38]!==g){let e;n[40]===f?e=n[41]:(e=f&&[`ring-[var(--status-error)]`,`focus-within:ring-2 focus-within:ring-[var(--status-error)]`],n[40]=f,n[41]=e);let t;n[42]===E?t=n[43]:(t=E&&[`rounded-none bg-transparent ring-0`,`hover:[&:not(:focus-within)]:bg-transparent`,`has-[[disabled]]:bg-transparent`],n[42]=E,n[43]=t),z=a(`group/textarea relative flex w-full flex-col rounded-[var(--radius-xl)] bg-[var(--surface-elevated)] pb-2.5`,`ring-1 ring-inset ring-border/60 transition duration-200 ease-out`,`hover:[&:not(:focus-within)]:bg-[var(--surface-subtle)]`,`has-[[disabled]]:pointer-events-none has-[[disabled]]:bg-[var(--surface-subtle)] has-[[disabled]]:ring-transparent`,!f&&[`hover:[&:not(:focus-within)]:ring-transparent`,`focus-within:ring-2 focus-within:ring-[var(--interactive-focus-ring)]`],e,t,g),n[36]=E,n[37]=f,n[38]=g,n[39]=z}else z=n[39];let B=f||void 0,V;n[44]!==r||n[45]!==u?(V=a(`block w-full flex-1 min-h-0 appearance-none resize-none bg-transparent text-foreground typography-markdown outline-none`,`min-h-[82px] pl-3 pr-2.5 pt-2.5 md:typography-ui-label`,`focus-visible:outline-none disabled:cursor-not-allowed`,!u&&[`placeholder:select-none placeholder:text-muted-foreground placeholder:transition placeholder:duration-200 placeholder:ease-out`,`group-hover/textarea:placeholder:text-foreground/80`,`focus:placeholder:text-foreground/80`],u&&`text-muted-foreground/60 placeholder:text-muted-foreground/60`,r),n[44]=r,n[45]=u,n[46]=V):V=n[46];let H;n[47]!==u||n[48]!==_||n[49]!==t||n[50]!==V||n[51]!==B?(H=(0,l.jsx)(`textarea`,{ref:t,"data-slot":`textarea-input`,"aria-invalid":B,className:V,spellCheck:!1,autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`off`,disabled:u,..._}),n[47]=u,n[48]=_,n[49]=t,n[50]=V,n[51]=B,n[52]=H):H=n[52];let U;n[53]===D?U=n[54]:(U=D(`textarea.resizeHandleAria`),n[53]=D,n[54]=U);let W;n[55]!==P||n[56]!==U?(W=(0,l.jsx)(h,{onResizeStart:P,ariaLabel:U}),n[55]=P,n[56]=U,n[57]=W):W=n[57];let G;n[58]!==d||n[59]!==W?(G=(0,l.jsxs)(`div`,{className:`flex items-center justify-end gap-1.5 pl-3 pr-2.5`,children:[d,W]}),n[58]=d,n[59]=W,n[60]=G):G=n[60];let K;n[61]!==H||n[62]!==G?(K=(0,l.jsxs)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col gap-2`,children:[H,G]}),n[61]=H,n[62]=G,n[63]=K):K=n[63];let q;return n[64]!==K||n[65]!==L||n[66]!==R||n[67]!==z?(q=(0,l.jsx)(`div`,{ref:O,"data-slot":`textarea`,"data-invalid":L,onPointerDown:I,style:R,className:z,children:K}),n[64]=K,n[65]=L,n[66]=R,n[67]=z,n[68]=q):q=n[68],q});g.displayName=`Textarea`;export{m as n,d as r,g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{G as t,H as n,K as r,U as i,V as a,W as o,ot as s,q as c,st as l}from"./vendor-base-ui-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{G as t,H as n,K as r,U as i,V as a,W as o,ot as s,q as c,st as l}from"./vendor-base-ui-fom6orB6.js";import{n as u}from"./vendor-react-D5BntRmA.js";import{Rn as d}from"./useMobileNavigationStore-CU0KrVK0.js";var f=u(),p=e(l(),1),m=s(),h=600,g=1600,_=12,v=p.createContext(null),y=class extends p.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback??null:this.props.children}};function b(e){let t=(0,f.c)(12),n,r,i,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],c=t[6]):({delayDuration:s,skipDelayDuration:o,delay:r,closeDelay:n,timeout:c,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=c);let l=r??(s===void 0?0:s),u=n??o,d;return t[7]!==i||t[8]!==l||t[9]!==u||t[10]!==c?(d=(0,m.jsx)(a,{delay:l,closeDelay:u,timeout:c,...i}),t[7]=i,t[8]=l,t[9]=u,t[10]=c,t[11]=d):d=t[11],d}function x(e){let t=(0,f.c)(35),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({delayDuration:n,open:i,onOpenChange:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let[o,s]=p.useState(!1),l=p.useRef(null),u=p.useRef(null),d=p.useRef(null),y=p.useRef(!1),x=i!==void 0,S=x?i:o,C;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>{l.current!==null&&(window.clearTimeout(l.current),l.current=null)},t[5]=C):C=t[5];let w=C,T;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{u.current!==null&&(window.clearTimeout(u.current),u.current=null)},t[6]=T):T=t[6];let E=T,D;t[7]===x?D=t[8]:(D=e=>{x||s(e)},t[7]=x,t[8]=D);let O=D,k;t[9]!==x||t[10]!==O?(k=e=>{(e.pointerType===`touch`||e.pointerType===`pen`)&&(w(),E(),d.current={x:e.clientX,y:e.clientY},l.current=window.setTimeout(()=>{x||(y.current=!0,O(!0))},h))},t[9]=x,t[10]=O,t[11]=k):k=t[11];let A;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>{let t=d.current;if(!t)return;let n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);(n>_||r>_)&&(w(),d.current=null)},t[12]=A):A=t[12];let j;t[13]===O?j=t[14]:(j=()=>{w(),d.current=null,y.current&&(E(),u.current=window.setTimeout(()=>{y.current=!1,O(!1)},g))},t[13]=O,t[14]=j);let M,N;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=e=>{y.current&&(y.current=!1,e.preventDefault(),e.stopPropagation())},N=e=>{y.current&&e.preventDefault()},t[15]=M,t[16]=N):(M=t[15],N=t[16]);let P;t[17]!==k||t[18]!==j?(P={handlePointerDown:k,handlePointerMove:A,handlePointerEnd:j,handleClickCapture:M,handleContextMenu:N},t[17]=k,t[18]=j,t[19]=P):P=t[19];let F=P,I,L;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>()=>{w(),E()},L=[E,w],t[20]=I,t[21]=L):(I=t[20],L=t[21]),p.useEffect(I,L);let R;t[22]!==x||t[23]!==r?(R=(e,t)=>{x||s(e),r?.(e,t)},t[22]=x,t[23]=r,t[24]=R):R=t[24];let z=R,B;t[25]!==z||t[26]!==a||t[27]!==S?(B=(0,m.jsx)(c,{open:S,onOpenChange:z,...a}),t[25]=z,t[26]=a,t[27]=S,t[28]=B):B=t[28];let V;t[29]!==F||t[30]!==B?(V=(0,m.jsx)(v.Provider,{value:F,children:B}),t[29]=F,t[30]=B,t[31]=V):V=t[31];let H=V;if(n===void 0)return H;let U;return t[32]!==n||t[33]!==H?(U=(0,m.jsx)(b,{delayDuration:n,children:H}),t[32]=n,t[33]=H,t[34]=U):U=t[34],U}function S(e){let t=(0,f.c)(43),n,i,a,o,s,c,l,u,d;t[0]===e?(n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9]):({asChild:n,children:i,onPointerDown:c,onPointerMove:l,onPointerUp:u,onPointerCancel:s,onClickCapture:a,onContextMenu:o,...d}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d);let h=p.useContext(v),g;t[10]!==n||t[11]!==i?(g=n&&p.isValidElement(i)?{render:i}:{children:i},t[10]=n,t[11]=i,t[12]=g):g=t[12];let _=g,b;t[13]!==h||t[14]!==c?(b=e=>{c?.(e),h?.handlePointerDown(e)},t[13]=h,t[14]=c,t[15]=b):b=t[15];let x;t[16]!==h||t[17]!==l?(x=e=>{l?.(e),h?.handlePointerMove(e)},t[16]=h,t[17]=l,t[18]=x):x=t[18];let S;t[19]!==h||t[20]!==u?(S=e=>{u?.(e),h?.handlePointerEnd()},t[19]=h,t[20]=u,t[21]=S):S=t[21];let C;t[22]!==h||t[23]!==s?(C=e=>{s?.(e),h?.handlePointerEnd()},t[22]=h,t[23]=s,t[24]=C):C=t[24];let w;t[25]!==h||t[26]!==a?(w=e=>{h?.handleClickCapture(e),!e.defaultPrevented&&a?.(e)},t[25]=h,t[26]=a,t[27]=w):w=t[27];let T;t[28]!==h||t[29]!==o?(T=e=>{h?.handleContextMenu(e),!e.defaultPrevented&&o?.(e)},t[28]=h,t[29]=o,t[30]=T):T=t[30];let E;t[31]!==d||t[32]!==_||t[33]!==b||t[34]!==x||t[35]!==S||t[36]!==C||t[37]!==w||t[38]!==T?(E=(0,m.jsx)(r,{"data-slot":`tooltip-trigger`,onPointerDown:b,onPointerMove:x,onPointerUp:S,onPointerCancel:C,onClickCapture:w,onContextMenu:T,...d,..._}),t[31]=d,t[32]=_,t[33]=b,t[34]=x,t[35]=S,t[36]=C,t[37]=w,t[38]=T,t[39]=E):E=t[39];let D;return t[40]!==i||t[41]!==E?(D=(0,m.jsx)(y,{fallback:i,children:E}),t[40]=i,t[41]=E,t[42]=D):D=t[42],D}function C(e){let r=(0,f.c)(29),a,s,c,l,u,p,h,g,_;r[0]===e?(a=r[1],s=r[2],c=r[3],l=r[4],u=r[5],p=r[6],h=r[7],g=r[8],_=r[9]):({className:l,positionerClassName:u,sideOffset:_,side:h,align:a,anchor:s,children:c,style:g,...p}=e,r[0]=e,r[1]=a,r[2]=s,r[3]=c,r[4]=l,r[5]=u,r[6]=p,r[7]=h,r[8]=g,r[9]=_);let v=_===void 0?0:_,b;r[10]===u?b=r[11]:(b=d(`z-50`,u),r[10]=u,r[11]=b);let x;r[12]===l?x=r[13]:(x=d(`bg-[var(--surface-elevated)] text-[var(--surface-elevated-foreground)] border border-border/60 transition-all duration-150 ease-out data-[starting-style]:opacity-0 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[ending-style]:scale-95 z-50 w-fit origin-[var(--transform-origin)] rounded-xl px-3 py-1.5 typography-meta text-balance overflow-hidden`,l),r[12]=l,r[13]=x);let S;r[14]===g?S=r[15]:(S={...g},r[14]=g,r[15]=S);let C;r[16]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,m.jsx)(n,{className:`fill-[var(--surface-elevated)] z-50 size-2`}),r[16]=C):C=r[16];let w;r[17]!==c||r[18]!==p||r[19]!==x||r[20]!==S?(w=(0,m.jsxs)(i,{"data-slot":`tooltip-content`,className:x,style:S,...p,children:[c,C]}),r[17]=c,r[18]=p,r[19]=x,r[20]=S,r[21]=w):w=r[21];let T;return r[22]!==a||r[23]!==s||r[24]!==h||r[25]!==v||r[26]!==b||r[27]!==w?(T=(0,m.jsx)(y,{children:(0,m.jsx)(t,{children:(0,m.jsx)(o,{sideOffset:v,side:h,align:a,anchor:s,className:b,children:w})})}),r[22]=a,r[23]=s,r[24]=h,r[25]=v,r[26]=b,r[27]=w,r[28]=T):T=r[28],T}export{S as i,C as n,b as r,x as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-capacitor-app-B5H_XtmE.js","assets/rolldown-runtime-hePW80VL.js","assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as e}from"./platform-wF65ZFgV.js";import{o as t}from"./vendor-aparajita-capacitor-secure-storage-xol_6BsB.js";var n=async()=>{if(!e())return null;let{App:n}=await t(async()=>{let{App:e}=await import(`./vendor-capacitor-app-B5H_XtmE.js`).then(e=>e.t);return{App:e}},__vite__mapDeps([0,1,2])),{id:r}=await n.getInfo();if(typeof r!=`string`||!/^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+$/.test(r))throw Error(`Native app identity unavailable`);return r},r=e=>typeof e==`string`&&e.trim().length>0?e.trim():null,i=()=>r(`0.3.2-beta.
|
|
2
|
+
import{n as e}from"./platform-wF65ZFgV.js";import{o as t}from"./vendor-aparajita-capacitor-secure-storage-xol_6BsB.js";var n=async()=>{if(!e())return null;let{App:n}=await t(async()=>{let{App:e}=await import(`./vendor-capacitor-app-B5H_XtmE.js`).then(e=>e.t);return{App:e}},__vite__mapDeps([0,1,2])),{id:r}=await n.getInfo();if(typeof r!=`string`||!/^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+$/.test(r))throw Error(`Native app identity unavailable`);return r},r=e=>typeof e==`string`&&e.trim().length>0?e.trim():null,i=()=>r(`0.3.2-beta.3`),a=(e,t)=>r(t)||r(e),o=(e,t)=>{let n=r(e);return n?typeof t!=`number`||!Number.isFinite(t)?n:`${n} (${t})`:null},s=async()=>{let n=i();if(!e())return n;try{let{App:e}=await t(async()=>{let{App:e}=await import(`./vendor-capacitor-app-B5H_XtmE.js`).then(e=>e.t);return{App:e}},__vite__mapDeps([0,1,2]));return a((await e.getInfo()).version,n)}catch{return n}},c=async()=>{if(!e())return null;try{let{App:e}=await t(async()=>{let{App:e}=await import(`./vendor-capacitor-app-B5H_XtmE.js`).then(e=>e.t);return{App:e}},__vite__mapDeps([0,1,2])),n=await e.getInfo(),r=typeof n.build==`string`?n.build.trim():``;if(r.length===0)return null;let i=Number.parseInt(r,10);return Number.isFinite(i)?i:null}catch{return null}},l=class extends Error{code=`mobile_updates_unsupported`;constructor(e=`Mobile OTA updates are only available in the Capacitor native app`){super(e),this.name=`MobileUpdatesUnsupportedError`}};export{s as a,c as i,o as n,n as r,l as t};
|