@yuriai/web 0.3.6-beta.14 → 0.3.6-beta.15
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-5tMBB3OP.js → AgentAvatar-DmUeOy5j.js} +1 -1
- package/dist/assets/{AgentSelector-Cb7GNCSr.js → AgentSelector-p1Ai0tlg.js} +1 -1
- package/dist/assets/{ArchivedSessionsDialog-8gBAWGWJ.js → ArchivedSessionsDialog-Bjd3hgS2.js} +1 -1
- package/dist/assets/{AssistantConversationSurface-DBgTUUEt.js → AssistantConversationSurface-CTYtqGK_.js} +3 -3
- package/dist/assets/{AssistantSessionCard-_yFsx4WB.js → AssistantSessionCard-CX8zzXnW.js} +2 -2
- package/dist/assets/{AssistantUnreadBadge-a2u_bBfi.js → AssistantUnreadBadge-Nhei_TuI.js} +1 -1
- package/dist/assets/{AssistantView-BxqHaArC.js → AssistantView-BvmJC0q9.js} +1 -1
- package/dist/assets/{AssistantWorkingAvatar-DHZVN5kD.js → AssistantWorkingAvatar-BKPxjA77.js} +1 -1
- package/dist/assets/{AssistantsSettingsPage-CCG2-SGj.js → AssistantsSettingsPage-CPYKT5su.js} +1 -1
- package/dist/assets/{BinaryFileFallback-DyOwcZlP.js → BinaryFileFallback-DAmQpBO1.js} +1 -1
- package/dist/assets/{BtwPanel-BhJA_qnp.js → BtwPanel-BQgdeqj4.js} +2 -2
- package/dist/assets/BusyDots-CyVVXNMc.js +4 -0
- package/dist/assets/{ChatContainer-vX0hPadC.js → ChatContainer-_6gB1Tiu.js} +21 -21
- package/dist/assets/ChatView-DfPX2ADw.js +3 -0
- package/dist/assets/{DiagramView-XjJTNa7h.js → DiagramView-BAZPsxz1.js} +1 -1
- package/dist/assets/{DiffView-B6_7v5dX.js → DiffView-B_03bICv.js} +1 -1
- package/dist/assets/{DiffViewToggle-as2OeoZV.js → DiffViewToggle-CI-tbUKa.js} +1 -1
- package/dist/assets/{ErrorBoundary-6AeJc3yJ.js → ErrorBoundary-B1yQx4PN.js} +1 -1
- package/dist/assets/{FadeInOnReveal-BKAakuxD.js → FadeInOnReveal-CyF7ie8o.js} +1 -1
- package/dist/assets/{GuiPluginMount-DlrUvFjg.js → GuiPluginMount-jUR5ZEw-.js} +1 -1
- package/dist/assets/{GuiPluginPage-DsBH_Y2M.js → GuiPluginPage-Du-pLMlp.js} +1 -1
- package/dist/assets/{GuiPluginSurface-BisC0s24.js → GuiPluginSurface-hCEJJ4PF.js} +1 -1
- package/dist/assets/{GuiPluginTitlebarItems-CraVxzKU.js → GuiPluginTitlebarItems-DrOGcHI0.js} +1 -1
- package/dist/assets/{GuiPluginWindow-DjrDed9m.js → GuiPluginWindow-CDiqRDYz.js} +1 -1
- package/dist/assets/{Icon-zB0u-x9G.js → Icon-D4ELZTbQ.js} +1 -1
- package/dist/assets/{ImageLoadingPlaceholder-COr72scf.js → ImageLoadingPlaceholder-BKk1qYNK.js} +1 -1
- package/dist/assets/{LoadingImage-DCyqFHPY.js → LoadingImage-BWknOYgx.js} +1 -1
- package/dist/assets/{MarkdownRenderer-YxMjOHQg.js → MarkdownRenderer-B8pnxnuP.js} +2 -2
- package/dist/assets/{MarkdownRendererImpl-FJ3saBi-.js → MarkdownRendererImpl-HvxkLk8k.js} +3 -3
- package/dist/assets/{MarkstreamRendererImpl-69EMw8mz.js → MarkstreamRendererImpl-oBJscGhT.js} +1 -1
- package/dist/assets/{MobileAssistantSettingsPage-BoH-3iPc.js → MobileAssistantSettingsPage-ADZ_zb24.js} +1 -1
- package/dist/assets/{MobileAssistantTab-59nMj5dF.js → MobileAssistantTab-D2B1DhXn.js} +1 -1
- package/dist/assets/{MobileBtwPage-EwMOy6Vg.js → MobileBtwPage-D9AHKfUL.js} +1 -1
- package/dist/assets/{MobileChangesSurface-BfMWp6TX.js → MobileChangesSurface-C-fS41BA.js} +1 -1
- package/dist/assets/{MobileChatScreen-CZDiNi7M.js → MobileChatScreen-CpjY3NfP.js} +1 -1
- package/dist/assets/{MobileDetailNavigation-DKv1HfQX.js → MobileDetailNavigation-DyEDDj7j.js} +1 -1
- package/dist/assets/{MobileFilesSurface-BiK7LCem.js → MobileFilesSurface-i1CdOJt_.js} +2 -2
- package/dist/assets/{MobileHtmlNetworkBoundary-BXh_BJ93.js → MobileHtmlNetworkBoundary-B0eGttNW.js} +2 -2
- package/dist/assets/{MobileOverlayPanel-Pr-vLaIF.js → MobileOverlayPanel-BRsSjQB0.js} +1 -1
- package/dist/assets/{MobileResizableSheet-O2gv2sCB.js → MobileResizableSheet-Iz6IOJIC.js} +1 -1
- package/dist/assets/{MobileSettingsTab-DadXop75.js → MobileSettingsTab-IFxVifD4.js} +1 -1
- package/dist/assets/{MobileShareBridge-CaiscA4w.js → MobileShareBridge-CYupKqbK.js} +1 -1
- package/dist/assets/{MobileSurface-B_2aVFm1.js → MobileSurface-Dj0XqWPS.js} +1 -1
- package/dist/assets/{MobileTabPageHeader-T0zUz7Wl.js → MobileTabPageHeader-DyDjEHij.js} +1 -1
- package/dist/assets/{ModelLogo-C1Vv7gz6.js → ModelLogo-Ddsuaz2-.js} +1 -1
- package/dist/assets/{ModelSelector-BP_s_VhY.js → ModelSelector-BLqwVn9h.js} +1 -1
- package/dist/assets/{MultiRunWindow--tNVFKUJ.js → MultiRunWindow-DOpqKyhx.js} +1 -1
- package/dist/assets/{OnboardingScreen-DMdy73Dq.js → OnboardingScreen-CyYxHZ27.js} +1 -1
- package/dist/assets/{OverlayScrollbar-n5T49w2e.js → OverlayScrollbar-DdK6iB_P.js} +1 -1
- package/dist/assets/{PierreDiffViewer-i3OsvUKm.js → PierreDiffViewer-DnLcVaQ_.js} +1 -1
- package/dist/assets/{ProviderLogo-D-ldwq0G.js → ProviderLogo-ClFNH0bR.js} +1 -1
- package/dist/assets/{RemoteAssistantSessionCard-CNpcgVmv.js → RemoteAssistantSessionCard-Bf3dzN6s.js} +1 -1
- package/dist/assets/{RemoteDesktopPanel-hTuLKJZb.js → RemoteDesktopPanel-CYrH1ew9.js} +1 -1
- package/dist/assets/ScheduledTasksDialog-Cjl3xt0U.js +3 -0
- package/dist/assets/{ScrollableOverlay-DAMUOn67.js → ScrollableOverlay-CpChvNBP.js} +1 -1
- package/dist/assets/{SettingsGroup-CwMJmhq2.js → SettingsGroup-DiF6MwFq.js} +1 -1
- package/dist/assets/{SettingsView-bYWNjHtA.js → SettingsView-BG9k0S0n.js} +10 -10
- package/dist/assets/{SettingsWindow-D0ZzAXW0.js → SettingsWindow-CZqmOqJh.js} +1 -1
- package/dist/assets/{SetupTourDialog-CgM5YonA.js → SetupTourDialog-Dm893t6A.js} +1 -1
- package/dist/assets/{SyncActions-Ct2yZTbg.js → SyncActions-DxL0WqMS.js} +1 -1
- package/dist/assets/{TerminalView-BU5w40RA.js → TerminalView-Cm_Az2IR.js} +3 -3
- package/dist/assets/{TextSelectionMenu-a7yyDz5R.js → TextSelectionMenu-C-QA2JSI.js} +2 -2
- package/dist/assets/{ToolOutputDialog-CGYnrXVV.js → ToolOutputDialog-IbK1m1cQ.js} +2 -2
- package/dist/assets/{YuriLogo-Cexwa29m.js → YuriLogo-CdbCjzA8.js} +1 -1
- package/dist/assets/{YuriWordmark-Bn5KdqMC.js → YuriWordmark-rISEHjrd.js} +1 -1
- package/dist/assets/{assistant-attachment-cache-Y7yhlQcv.js → assistant-attachment-cache-BsIYVOYw.js} +1 -1
- package/dist/assets/{assistantMessagePreview-BXNdMDW-.js → assistantMessagePreview-DbTwPLzY.js} +1 -1
- package/dist/assets/{assistantQueries-DkAmjFg7.js → assistantQueries-DJyuR5Cm.js} +1 -1
- package/dist/assets/{auto-read-context-DLilPZMl.js → auto-read-context-B0niCh-F.js} +1 -1
- package/dist/assets/{capgoAdapter-DaIrgBjp.js → capgoAdapter-CXshem6r.js} +1 -1
- package/dist/assets/{card-CXE0ffyH.js → card-BCtykvi_.js} +1 -1
- package/dist/assets/{chatUpwardIntent-DRFjEP4t.js → chatUpwardIntent-DR7dxJwx.js} +1 -1
- package/dist/assets/{checkbox-hYuewn9u.js → checkbox-DsB97EEi.js} +1 -1
- package/dist/assets/{client-QcYZg8_d.js → client-BuCd-T7s.js} +1 -1
- package/dist/assets/{collapsible-C4a0ndbm.js → collapsible-acYUve5w.js} +1 -1
- package/dist/assets/{connection-hint-Ci6c4iij.js → connection-hint-BYkEkoO4.js} +1 -1
- package/dist/assets/{context-menu-D73tnkiI.js → context-menu-HoHZ2sEw.js} +1 -1
- package/dist/assets/{desktopHosts-DFa3lf0i.js → desktopHosts-COI-czjF.js} +1 -1
- package/dist/assets/{desktopRelayRestore-CGq-Ylgq.js → desktopRelayRestore-BEPNc7qb.js} +1 -1
- package/dist/assets/device-TCHW5U2y.js +2 -0
- package/dist/assets/{diagram-B2X1oieg.js → diagram-Bp_Qevoe.js} +1 -1
- package/dist/assets/{dialog-B2Po85oU.js → dialog-CeXUC0Ej.js} +1 -1
- package/dist/assets/{dropdown-menu-vW7wfT5z.js → dropdown-menu-CwcXAdvN.js} +1 -1
- package/dist/assets/{fileMentionTouchSelection-B73h0W0P.js → fileMentionTouchSelection-vrvxc508.js} +1 -1
- package/dist/assets/{fileReferenceActions-DEUhs_7h.js → fileReferenceActions-wN7mWY3w.js} +1 -1
- package/dist/assets/{gitApi-DG2Gj6gC.js → gitApi-Di_eB3Io.js} +1 -1
- package/dist/assets/{gitApiHttp-C8AU1uiY.js → gitApiHttp-CrPYe9Oc.js} +2 -2
- package/dist/assets/{githubAuthQueries-IJPWBo0B.js → githubAuthQueries-CTTiXZ9q.js} +1 -1
- package/dist/assets/{historyImportQueries-B3QBdaKo.js → historyImportQueries-B4DVAuxZ.js} +1 -1
- package/dist/assets/{host-DchPrZpw.js → host-BjnskVUP.js} +1 -1
- package/dist/assets/{i18n-WsU03nwB.js → i18n-CYty_Jft.js} +1 -1
- package/dist/assets/{icons-6sA6AOaU.js → icons-P6A_c8tb.js} +1 -1
- package/dist/assets/{imageSource-B39pFDdo.js → imageSource-BquIRnWW.js} +1 -1
- package/dist/assets/{input-BpDiYSsP.js → input-CozXpDTq.js} +1 -1
- package/dist/assets/{input-store-PqhVEhUI.js → input-store-BtvRZZcg.js} +1 -1
- package/dist/assets/insertionBoundaries-Cw7x86o4.js +1 -0
- package/dist/assets/{kbd-Dd1lM8OM.js → kbd-DPRFdABo.js} +1 -1
- package/dist/assets/{main-BtqqLSTt.js → main-CmWGNM6N.js} +2 -2
- package/dist/assets/main-DxvrNIsv.js +169 -0
- package/dist/assets/{markdownHeightCache-BzWUzccz.js → markdownHeightCache-BIB64pXI.js} +1 -1
- package/dist/assets/{mcpQueries-8frBxd65.js → mcpQueries-WWAWy_n9.js} +1 -1
- package/dist/assets/miniChat-CA9XT4K1.js +2 -0
- package/dist/assets/mobile-BKQlIKz3.js +2 -0
- package/dist/assets/{mobileBackNavigation-Ch0aK3t9.js → mobileBackNavigation-CX_MC0oM.js} +1 -1
- package/dist/assets/{mobileConnections-Bay_JNn0.js → mobileConnections-DuohwVoG.js} +2 -2
- package/dist/assets/{multirun-CQ2v1-nW.js → multirun-DXO3dw9u.js} +1 -1
- package/dist/assets/{native-config-B8eHFnvv.js → native-config-C_hqdruM.js} +1 -1
- package/dist/assets/{nativeComposerCover--wSR2Iru.js → nativeComposerCover-Cyi4eoBm.js} +1 -1
- package/dist/assets/{navigation-33oih6q2.js → navigation-Bxjv649w.js} +2 -2
- package/dist/assets/openRemoteProjectSession-W9p1SC1j.js +1 -0
- package/dist/assets/openSessionFromDeepLink-CeiBnoBN.js +2 -0
- package/dist/assets/platform-B2ylz14u.js +1 -0
- package/dist/assets/{pluginPresentation-BqcbcLYL.js → pluginPresentation-CWyI_3os.js} +2 -2
- package/dist/assets/{project-preview-CIkGbBPZ.js → project-preview-Dq--046z.js} +1 -1
- package/dist/assets/{projectActions-D84EVh3q.js → projectActions-B11KAI3f.js} +1 -1
- package/dist/assets/{prompt-attachment-upload-D1c308Ba.js → prompt-attachment-upload-m0vbcftI.js} +1 -1
- package/dist/assets/{pwa-JM_Ia4Qo.js → pwa-RpFKwS6l.js} +2 -2
- package/dist/assets/{queue-abort-optimistic-BspQeOrZ.js → queue-abort-optimistic-B624kCyc.js} +1 -1
- package/dist/assets/{quota-C7uYEfoX.js → quota-CNmk_bQD.js} +1 -1
- package/dist/assets/{reference-history-DuOv6xPy.js → reference-history-xOIH7D3x.js} +1 -1
- package/dist/assets/{remote-input-store-CquhCIoR.js → remote-input-store-CE88ZLsw.js} +1 -1
- package/dist/assets/{remoteProjectQueries-BunVM5PM.js → remoteProjectQueries-zO4jYbru.js} +1 -1
- package/dist/assets/{remoteSessionReference-brIKt6ea.js → remoteSessionReference-CNows8Mw.js} +1 -1
- package/dist/assets/{renderElectronMiniChatApp-1iiZ6q0N.js → renderElectronMiniChatApp-C0VEQ1ge.js} +2 -2
- package/dist/assets/renderMobileApp-ByzqYif5.js +17 -0
- package/dist/assets/{runtime-file-download-wMVtKk2v.js → runtime-file-download-CzZ_VAoB.js} +1 -1
- package/dist/assets/{runtime-file-resource-DKJJoOOc.js → runtime-file-resource-9kLrAtnQ.js} +1 -1
- package/dist/assets/{runtimeConfig-qjNoqcXT.js → runtimeConfig-CnEfMg7l.js} +1 -1
- package/dist/assets/runtimeEndpointReset-DFqTJZ0I.js +4 -0
- package/dist/assets/{scheduledTaskNavigation-DpfZSGu8.js → scheduledTaskNavigation-r3g3DfXq.js} +1 -1
- package/dist/assets/{select-Ojd202kE.js → select-B2UkBeQN.js} +1 -1
- package/dist/assets/sessionLookup-DCk6ryrM.js +1 -0
- package/dist/assets/{sessionOwnership-Nqb7MQgW.js → sessionOwnership-BAee5GI3.js} +1 -1
- package/dist/assets/{shortcuts-BOzfBNF8.js → shortcuts-CiFlt2ws.js} +1 -1
- package/dist/assets/{sortable-tabs-strip-DlQjS9bw.js → sortable-tabs-strip-Doz9wEki.js} +1 -1
- package/dist/assets/{speechSettingsQueries-DzDLUBnb.js → speechSettingsQueries-DxCvZVJ0.js} +1 -1
- package/dist/assets/{switch-BN9zvb0m.js → switch-YSNGU195.js} +1 -1
- package/dist/assets/{terminalApi-D2ECmoAo.js → terminalApi-CsTh04jY.js} +1 -1
- package/dist/assets/{textarea-ChLN9tnA.js → textarea-DxGZoBdI.js} +1 -1
- package/dist/assets/{timeFormat-D1hdmWbu.js → timeFormat-fIpRkrOb.js} +1 -1
- package/dist/assets/{tooltip-Cdsa-YWG.js → tooltip-D2BtRCgs.js} +1 -1
- package/dist/assets/{truncated-path-DjN9DJvh.js → truncated-path-ouBMaMLS.js} +1 -1
- package/dist/assets/{types-DHO20zYy.js → types-B-Io5z5w.js} +1 -1
- package/dist/assets/ui-BwSpLYDL.js +13 -0
- package/dist/assets/useAppFontEffects-Cuirbagj.js +7 -0
- package/dist/assets/{useAssistantUIStore-DEiMjSqf.js → useAssistantUIStore-BUWPTwNV.js} +1 -1
- package/dist/assets/{useDesktopWindowControlsLayout-OdYH5vsn.js → useDesktopWindowControlsLayout-BBO7snRO.js} +1 -1
- package/dist/assets/{useDictation-DUR68U4T.js → useDictation-C81KyPa6.js} +1 -1
- package/dist/assets/{useEffectiveDirectory-DNVTRp-B.js → useEffectiveDirectory-DeoADFfu.js} +1 -1
- package/dist/assets/{useFontPreferences-BY0TXvWI.js → useFontPreferences-DyMUXTQC.js} +1 -1
- package/dist/assets/{useGitStore-DsxzluvZ.js → useGitStore-BVToTkFp.js} +1 -1
- package/dist/assets/{useInlineCommentDraftStore-DU-yffqD.js → useInlineCommentDraftStore-BN8BgIUL.js} +1 -1
- package/dist/assets/useMcpConfigStore-CFUCk1mM.js +1 -0
- package/dist/assets/{useMobileSwipeActions-rPGl_HNn.js → useMobileSwipeActions-l0OHTMa8.js} +1 -1
- package/dist/assets/useMobileTranscriptSyncHint-LoxQ23zb.js +10 -0
- package/dist/assets/{useModelLists-xVEEc-e7.js → useModelLists-RMIHCaOi.js} +1 -1
- package/dist/assets/{useOpenCodeReadiness-C5D4297L.js → useOpenCodeReadiness-Cw5UOeLB.js} +1 -1
- package/dist/assets/{usePluginsStore-DEctn121.js → usePluginsStore-Cnj8I3MZ.js} +1 -1
- package/dist/assets/{useProjectGitActions-D7yZSor5.js → useProjectGitActions-D9TZc59T.js} +1 -1
- package/dist/assets/{useProjectGitStore-DFz9Eb6v.js → useProjectGitStore-qcnLHK_q.js} +1 -1
- package/dist/assets/{useProjectRuntimeAPIs-TALa4FqO.js → useProjectRuntimeAPIs-BoNGczR0.js} +1 -1
- package/dist/assets/{useQuotaStore-BqPJ1nzk.js → useQuotaStore-B4FEz0gR.js} +1 -1
- package/dist/assets/{useSessionBtwStore-DAQVlbuf.js → useSessionBtwStore-DD2dFcs5.js} +1 -1
- package/dist/assets/{useStreamingTextThrottle-BpC1BNz_.js → useStreamingTextThrottle-Cj6xIVZf.js} +1 -1
- package/dist/assets/{useUIStore-P32bzAJc.js → useUIStore-68ZPpgYA.js} +1 -1
- package/dist/assets/{worktreeManager-D56glCi_.js → worktreeManager-CnxL8GZi.js} +1 -1
- package/dist/assets/{worktreeSourceBranchPreference-CNtT0ymW.js → worktreeSourceBranchPreference-ii7ydXPw.js} +1 -1
- package/dist/index.html +15 -15
- package/dist/mini-chat.html +15 -15
- package/dist/mobile.html +1 -1
- package/package.json +1 -1
- package/server/lib/gui-customization/skill/references/deep-links.md +6 -6
- package/dist/assets/BusyDots-B9Zv4OUg.js +0 -4
- package/dist/assets/ChatView-OJAZBsfN.js +0 -3
- package/dist/assets/ScheduledTasksDialog-dgU5OpBK.js +0 -3
- package/dist/assets/device-CtdJ8KBJ.js +0 -2
- package/dist/assets/insertionBoundaries-Cu6Djn8S.js +0 -1
- package/dist/assets/main-CdUAbE7p.js +0 -169
- package/dist/assets/miniChat-C7JCQrXA.js +0 -2
- package/dist/assets/mobile-CcIasitd.js +0 -2
- package/dist/assets/openRemoteProjectSession-B94TYao_.js +0 -1
- package/dist/assets/openSessionFromDeepLink-C9jS-EIM.js +0 -2
- package/dist/assets/platform-CNdx57HN.js +0 -1
- package/dist/assets/renderMobileApp-CdTenU5H.js +0 -17
- package/dist/assets/runtimeEndpointReset-DKchBECK.js +0 -4
- package/dist/assets/sessionLookup-D299jmfx.js +0 -1
- package/dist/assets/ui-CU6n15y3.js +0 -13
- package/dist/assets/useAppFontEffects-Bqt4cv2k.js +0 -7
- package/dist/assets/useMcpConfigStore-al7LZT72.js +0 -1
- package/dist/assets/useMobileTranscriptSyncHint-BVvgdcp4.js +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as e}from"./runtime-auth-DA-qfGHk.js";import{r as t,t as n}from"./runtime-switch-DEPKHgdL.js";import{t as r}from"./runtimeAPIRegistry-C2VogTny.js";import{t as i}from"./pathNormalization-ewtPqJWn.js";var a=[`local`,`remote`,null],o=[`ok`,`not-configured`,`unreachable`,`pairing-expired`,`incompatible`,`wrong-service`,`missing`];function s(e){if(!e||typeof e!=`object`)return{valid:!1};let t=e,n=t.target,r=t.status;if(n!==null&&(typeof n!=`string`||!a.includes(n))||typeof r!=`string`||!o.includes(r))return{valid:!1};if(n===`remote`||n===`local`){if(r===`ok`&&n===`local`)return{valid:!0,outcome:{target:`local`,status:`ok`}};if(r===`ok`&&n===`remote`)return typeof t.hostId!=`string`||typeof t.url!=`string`?{valid:!1}:{valid:!0,outcome:{target:`remote`,status:`ok`,hostId:t.hostId,url:t.url}};if(r===`unreachable`)return n===`local`?{valid:!0,outcome:{target:`local`,status:`unreachable`}}:typeof t.hostId!=`string`||typeof t.url!=`string`?{valid:!1}:{valid:!0,outcome:{target:`remote`,status:`unreachable`,hostId:t.hostId,url:t.url}};if(r===`incompatible`||r===`wrong-service`||r===`pairing-expired`)return n!==`remote`||typeof t.hostId!=`string`||typeof t.url!=`string`?{valid:!1}:{valid:!0,outcome:{target:`remote`,status:r,hostId:t.hostId,url:t.url}};if(r===`missing`)return n!==`remote`||typeof t.hostId!=`string`?{valid:!1}:{valid:!0,outcome:{target:`remote`,status:`missing`,hostId:t.hostId}}}if(n===null){if(r===`not-configured`)return{valid:!0,outcome:{target:null,status:`not-configured`}};if(r===`missing`)return{valid:!1}}return{valid:!1}}function c(e){if(!e.isDesktopShell)return null;let t=e.bootOutcome;if(!t)return null;if(t.status===`ok`){if(t.target===`local`)return{screen:`main`};if(t.target===`remote`)return{screen:`main`,hostId:t.hostId,url:t.url}}if(t.target===null&&t.status===`not-configured`)return{screen:`chooser`};if(t.target===`local`&&t.status===`unreachable`)return{screen:`recovery`,variant:`local-unavailable`};if(t.target===`remote`){if(t.status===`unreachable`)return{screen:`recovery`,variant:`remote-unreachable`,hostId:t.hostId,url:t.url};if(t.status===`pairing-expired`)return{screen:`recovery`,variant:`remote-pairing-expired`,hostId:t.hostId,url:t.url};if(t.status===`incompatible`)return{screen:`recovery`,variant:`remote-incompatible`,hostId:t.hostId,url:t.url};if(t.status===`wrong-service`)return{screen:`recovery`,variant:`remote-wrong-service`,hostId:t.hostId,url:t.url};if(t.status===`missing`)return{screen:`recovery`,variant:`remote-missing`,hostId:t.hostId}}return null}function l(e){return e.isDesktopShell?e.bootOutcomeKnown?e.bootViewIsMain===!1||e.isInitialized:!1:e.isInitialized}function ee(e){return e.isDesktopShell&&!e.isDesktopLocalOriginActive}function u(){if(f()!==`valid`)return null;let e=s(d());return e.valid?e.outcome:null}var d=()=>{if(typeof window>`u`)return;let e=window.__YURI_DESKTOP_BOOT_OUTCOME__;if(e!=null)return e;let t=window.__YURI_DESKTOP_BOOT__;if(t&&typeof t.getOutcome==`function`)try{return t.getOutcome()}catch{return}return e};function f(){if(typeof window>`u`)return`not-injected`;let e=d();return e==null?`not-injected`:s(e).valid?`valid`:`malformed`}var p=()=>typeof window>`u`?null:window.__YURI_ELECTRON__??null,m=()=>typeof window>`u`?null:window.__YURI_DESKTOP__??null,h=()=>p()?.runtime===`electron`,g=()=>h()&&p()?.packaged===!0,te=e=>{if(!h())return null;let t=m()?.getPathForFile?.(e);return typeof t==`string`&&t.trim()?t:null},_=()=>{if(typeof window>`u`)return null;let e=window.__YURI_PLATFORM__;return typeof e==`string`?e:null},ne=()=>{if(!h())return!1;let e=_();return e===`win32`||e===`linux`},re=(e=_())=>e===`linux`?`left`:`right`,v=(e,t=_())=>e===`left`||e===`right`?e:re(t),y=()=>typeof m()?.invoke==`function`,b=()=>h()&&y(),x=()=>y()&&M()&&m()?.isDocumentRestricted?.()!==!0,S=()=>h()&&M()?m()?.guiPlugins:void 0,C=()=>h()?m()?.guiPlugins:void 0,w=()=>h()?m()?.viewExport:void 0,T=()=>h()?m()?.menuShortcuts:void 0,ie=()=>h()?m()?.sessionLinks:void 0,E=async(e,t)=>{let n=m();return typeof n?.invoke==`function`?n.invoke(e,t??{}):null},ae=async e=>{if(!b()||!M())throw Error(`unsupported`);let t=await E(e.type===`status`?`desktop_remote_desktop_status`:e.type===`enabled`?`desktop_remote_desktop_enable`:`desktop_remote_desktop_permission`,{...e});if(!t||typeof t.supported!=`boolean`||typeof t.enabled!=`boolean`||typeof t.screenRecording!=`string`||typeof t.accessibility!=`boolean`||typeof t.helperAvailable!=`boolean`||typeof t.ready!=`boolean`)throw Error(`invalid_desktop_status`);return t},oe=async()=>{if(!b()||!M())return null;try{let e=await E(`desktop_get_launch_at_login`);return!e||typeof e.supported!=`boolean`||typeof e.enabled!=`boolean`?null:e}catch(e){return console.warn(`Failed to get launch at login status`,e),null}},se=async e=>{if(!b()||!M())return null;try{let t=await E(`desktop_set_launch_at_login`,{enabled:e});return!t||typeof t.supported!=`boolean`||typeof t.enabled!=`boolean`?null:t}catch(e){return console.warn(`Failed to set launch at login status`,e),null}},ce=async()=>{if(!b()||!M())return null;try{let e=await E(`desktop_get_minimize_to_tray`);return!e||typeof e.supported!=`boolean`||typeof e.enabled!=`boolean`?null:e}catch(e){return console.warn(`Failed to get minimize to tray status`,e),null}},le=async e=>{if(!b()||!M())return null;try{let t=await E(`desktop_set_minimize_to_tray`,{enabled:e});return!t||typeof t.supported!=`boolean`||typeof t.enabled!=`boolean`?null:t}catch(e){return console.warn(`Failed to set minimize to tray status`,e),null}},ue=async()=>{if(!b()||!M())return null;try{let e=await E(`desktop_get_keep_awake`);return!e||typeof e.supported!=`boolean`||typeof e.enabled!=`boolean`||typeof e.active!=`boolean`?null:e}catch(e){return console.warn(`Failed to get keep awake status`,e),null}},D=async e=>{if(!b()||!M())return null;try{let t=await E(`desktop_set_keep_awake`,{enabled:e});return!t||typeof t.supported!=`boolean`||typeof t.enabled!=`boolean`||typeof t.active!=`boolean`?null:t}catch(e){return console.warn(`Failed to set keep awake status`,e),null}},O=e=>{let t=e.trim();if(!t)return null;try{return new URL(t).origin}catch{try{return new URL(t.endsWith(`/`)?t:`${t}/`).origin}catch{return null}}},k=e=>{let t=e.trim();if(!t)return null;try{return new URL(t)}catch{try{return new URL(t.endsWith(`/`)?t:`${t}/`)}catch{return null}}},A=e=>e.replace(/^\[|\]$/g,``).toLowerCase(),j=e=>{let t=A(e);return t===`localhost`||t===`127.0.0.1`||t===`::1`},M=()=>{if(typeof window>`u`||!N()||e())return!1;let r=t();if(r.startsWith(`host:`))return!1;if(r===`local`)return!0;let i=typeof window.__YURI_LOCAL_ORIGIN__==`string`?window.__YURI_LOCAL_ORIGIN__:``,a=k(i),o=k(n());if(!o&&a&&u()?.target===`local`)return!0;if(a&&o){if(a.origin===o.origin)return!0;let e=a.port||(a.protocol===`https:`?`443`:`80`),t=o.port||(o.protocol===`https:`?`443`:`80`);return a.protocol===o.protocol&&e===t&&j(a.hostname)&&j(o.hostname)}let s=k(window.location.origin);if(a&&s){if(a.origin===s.origin)return!0;let e=a.port||(a.protocol===`https:`?`443`:`80`),t=s.port||(s.protocol===`https:`?`443`:`80`);return a.protocol===s.protocol&&e===t&&j(a.hostname)&&j(s.hostname)}let c=O(i),l=O(window.location.origin)||window.location.origin;return c&&l&&c===l?!0:!!(s&&j(s.hostname))},N=()=>typeof window>`u`?!1:h(),P=async()=>{if(!N())return!1;try{return await E(`desktop_start_window_drag`),!0}catch{return!1}},F=()=>r()?.runtime?.isVSCode===!0,I=()=>{let e=r()?.runtime?.platform;return e===`web`?!0:e===`desktop`||e===`vscode`?!1:!F()},L=async()=>{if(typeof window<`u`){let e=window.__YURI_HOME__;if(e&&e.length>0)return e}return null},R=async e=>{if(y()&&M())try{let e=await m()?.openDialog?.({directory:!0,multiple:!1,title:`Select Working Directory`});return!e||typeof e!=`string`?{success:!1,error:`Directory selection cancelled`}:{success:!0,path:e}}catch(e){return console.warn(`Failed to request directory access`,e),{success:!1,error:e instanceof Error?e.message:String(e)}}return{success:!0,path:e}},z=e=>typeof e==`object`&&!!e&&!Array.isArray(e),B=async e=>{if(y()&&M())try{let t=await m()?.openDialog?.({directory:!1,multiple:!1,title:`Select File`,returnGrant:!0,...e?.filters?{filters:e.filters}:{},...e?.defaultPath?{defaultPath:e.defaultPath}:{}});if(!t)return{success:!1,error:`File selection cancelled`};if(typeof t==`string`)return{success:!0,path:t};if(!z(t))return{success:!1,error:`File selection cancelled`};let n=typeof t.path==`string`?t.path:``;return n?{success:!0,path:n,outsideFileGrant:typeof t.outsideFileGrant==`string`?t.outsideFileGrant:void 0}:{success:!1,error:`File selection cancelled`}}catch(e){return console.warn(`Failed to request file access`,e),{success:!1,error:e instanceof Error?e.message:String(e)}}return{success:!1,error:`Native file picker not available`}},V=async e=>{let t=typeof e==`string`?e.trim():``;if(!t)return{success:!1,error:`Path is required`};if(!y()||!M())return{success:!1,error:`Native file access not available`};try{let e=await m()?.grantFileAccess?.(t);if(!z(e))return{success:!1,error:`File access was not granted`};let n=typeof e.path==`string`?e.path:``,r=typeof e.outsideFileGrant==`string`?e.outsideFileGrant:``;return!n||!r?{success:!1,error:`File access was not granted`}:{success:!0,path:n,outsideFileGrant:r}}catch(e){return console.warn(`Failed to request existing file access`,e),{success:!1,error:e instanceof Error?e.message:String(e)}}},H=async e=>({success:!0}),U=async e=>({success:!0}),W=async e=>{if(!y())throw Error(`Desktop update checker is unavailable`);let t=await E(`desktop_check_for_updates`,{channelOverride:e});if(!t)throw Error(`Desktop update checker returned no result`);return t},de=async e=>{y()&&await E(`desktop_ota_ready`,{version:e})},fe=()=>E(`desktop_get_app_version`),pe=async e=>{let t=m();return typeof t?.listen==`function`?t.listen(`yuri:update-progress`,t=>{let n=t?.payload;if(!n||typeof n!=`object`)return;let r=n;e({event:typeof r.event==`string`?r.event:void 0,data:r.data&&typeof r.data==`object`?r.data:void 0})}):null},me=async e=>{let t=m();return typeof t?.listen==`function`?t.listen(`yuri:update-ready`,t=>{let n=t?.payload;if(!n||typeof n!=`object`)return;let r=n;e({version:typeof r.version==`string`?r.version:null,downloaded:r.downloaded===!0})}):null},he=async e=>{if(!y())return!1;let t=m(),n=null,r=0,i;try{return typeof e==`function`&&t?.listen&&(n=await t.listen(`yuri:update-progress`,t=>{let n=t?.payload;if(!n||typeof n!=`object`)return;let a=n,o=typeof a.event==`string`?a.event:null,s=a.data&&typeof a.data==`object`?a.data:null;if(o===`Started`){r=0,i=typeof s?.contentLength==`number`?s.contentLength:void 0,e({downloaded:r,total:i});return}if(o===`Progress`){let t=s?.downloaded,n=s?.total;typeof t==`number`&&(r=t),typeof n==`number`&&(i=n),e({downloaded:r,total:i});return}o===`Finished`&&e({downloaded:r,total:i})})),await E(`desktop_download_and_install_update`),!0}catch(e){throw e instanceof Error?e:Error(String(e))}finally{if(n)try{let e=n();e instanceof Promise&&await e}catch{}}},ge=async()=>y()?G({applyUpdate:!0}):!1,G=async({applyUpdate:e=!1}={})=>{if(!y())return!1;try{return await E(`desktop_restart`,e?{applyUpdate:!0}:void 0),!0}catch(e){return console.warn(`Failed to restart desktop app`,e),!1}},_e=async()=>{if(!y()||!M())return null;try{let e=await E(`desktop_get_lan_address`);return typeof e==`string`&&e.trim().length>0?e.trim():null}catch(e){return console.warn(`Failed to get desktop LAN address`,e),null}},K=async()=>{if(!y())return!1;if(M())return!0;try{return await E(`desktop_runtime_is_local_machine`)===!0}catch{return!1}},q=async(e,t)=>{if(!await K())return!1;let n=e?.trim();if(!n)return!1;try{return await E(`desktop_open_path`,{path:n,app:typeof t==`string`&&t.trim().length>0?t.trim():void 0}),!0}catch(e){return console.warn(`Failed to open path`,e),!1}},ve=async e=>{if(!y()||!M())return null;let t=e?.trim();if(!t)return null;try{let e=await E(`desktop_is_binary_path`,{path:t});return typeof e==`boolean`?e:null}catch{return null}},ye=async e=>{if(!y()||!M()||!e.trim())return!1;try{return await E(`desktop_is_directory_path`,{path:e.trim()})===!0}catch{return!1}},be=async e=>{if(!y()||!M())return!1;let t=e?.trim();if(!t)return!1;try{return await E(`desktop_reveal_path`,{path:t}),!0}catch{return q(t)}},xe=async(e,t)=>{if(!y()||!M())return null;let n=e?.trim();if(!n)return null;try{let e=await E(`desktop_save_markdown_file`,{defaultFileName:n,content:t});return typeof e==`string`&&e.trim().length>0?e:null}catch(e){return console.warn(`Failed to save markdown file`,e),null}},Se=async(e,n,r,i)=>{if(!y()||!i&&!M())return!1;if(i)return t()===`host:${i}`&&(await E(`desktop_open_ssh_in_app`,{projectPath:e,appId:n,hostId:i}),!0);let a=e?.trim(),o=n?.trim(),s=r?.trim();if(!a||!o||!s)return!1;try{return await E(`desktop_open_in_app`,{projectPath:a,appId:o,appName:s}),!0}catch(e){return console.warn(`Failed to open project in app`,e),!1}},Ce=async(e,t,n)=>{if(!y()||!M())return!1;let r=e?.trim(),i=t?.trim(),a=n?.trim();if(!r||!i||!a)return!1;try{return await E(`desktop_open_file_in_app`,{filePath:r,appId:i,appName:a}),!0}catch(e){return console.warn(`Failed to open file in app`,e),!1}},we=async(e,t)=>{if(!y())return{apps:[],success:!1,hasCache:!1,isCacheStale:!1};if(_()===`linux`)return{apps:[],success:!0,hasCache:!1,isCacheStale:!1};let n=Array.isArray(e)?e.filter(e=>typeof e==`string`):[];if(n.length===0)return{apps:[],success:!0,hasCache:!1,isCacheStale:!1};try{let e=await E(`desktop_get_installed_apps`,{apps:n,force:t===!0||void 0});if(!e||typeof e!=`object`)return{apps:[],success:!1,hasCache:!1,isCacheStale:!1};let r=e;return r.supported===!1?{apps:[],success:!0,hasCache:!1,isCacheStale:!1}:Array.isArray(r.apps)?{apps:r.apps.filter(e=>e&&typeof e==`object`).map(e=>{let t=e;return{name:typeof t.name==`string`?t.name:``,appName:typeof t.appName==`string`?t.appName:void 0,label:typeof t.label==`string`?t.label:void 0,iconDataUrl:typeof t.iconDataUrl==`string`?t.iconDataUrl:null}}).filter(e=>e.name.length>0),success:!0,hasCache:r.hasCache===!0,isCacheStale:r.isCacheStale===!0}:{apps:[],success:!1,hasCache:!1,isCacheStale:!1}}catch(e){return console.warn(`Failed to fetch installed apps`,e),{apps:[],success:!1,hasCache:!1,isCacheStale:!1}}},J=`yuri-remote-location:`,Te=`yuri-remote-session:`,Ee=`remote-new-session`,Y=(e,t)=>{if(!e||e!==e.trim()||Array.from(e).some(e=>e.charCodeAt(0)<32))throw Error(`Invalid ${t}`);return e},X=e=>{let t=i(e.directory);if(!t)throw Error(`A Location requires a directory`);return e.hostId?J+JSON.stringify([Y(e.hubId,`Hub identity`),Y(e.hostId,`Host identity`),t]):t},Z=(e,t)=>{if(!e.startsWith(J))return{hubId:t,directory:e};let n=JSON.parse(e.slice(21));if(!Array.isArray(n)||n.length!==3||!n.every(e=>typeof e==`string`))throw Error(`Invalid remote Location key`);let[r,a,o]=n;if(Y(r,`Hub identity`),Y(a,`Host identity`),!i(o))throw Error(`Invalid Location directory`);return{hubId:r,hostId:a,directory:o}},De=e=>X(Z(e,`local`)),Oe=(e,t)=>(Y(t,`Session identity`),e.hostId?Te+JSON.stringify([X(e),t]):t),ke=(e,t)=>{if(!e)return t;if(Y(e,`Host identity`),!(t===`/api`||t.startsWith(`/api/`)||t===`/health`))throw Error(`Only runtime API paths can be routed to a Remote Host`);let n=t.split(`?`)[0];if(n===`/api/hosts`||n.startsWith(`/api/hosts/`))throw Error(`Nested Remote Host aggregation is not supported`);return`/api/hosts/${encodeURIComponent(e)}${t}`},Ae=e=>e.hostId?JSON.stringify([e.hubId,e.hostId]):e.hubId,Q=()=>typeof window>`u`?!1:window.Capacitor?.isNativePlatform?.()===!0||window.location.protocol===`capacitor:`,je=()=>{if(typeof window>`u`||!Q()||$()!==`ios`)return!1;let e=navigator.userAgent||``,t=navigator.maxTouchPoints??0;return/iPad/i.test(e)||/Macintosh|MacIntel/i.test(e)&&t>1},$=()=>{if(typeof window<`u`){let e=window.Capacitor?.getPlatform?.();if(e===`ios`||e===`android`)return e}return F()?`vscode`:N()?`desktop`:`web`};export{be as $,y as A,I as B,oe as C,w as D,ie as E,M as F,q as G,me as H,N as I,V as J,Se as K,h as L,ve as M,ye as N,te as O,K as P,ge as Q,g as R,_e as S,ce as T,de as U,pe as V,Ce as W,v as X,B as Y,G as Z,fe as _,ke as a,P as at,L as b,Oe as c,l as ct,x as d,c as dt,xe as et,b as f,ee as ft,we as g,he as h,Ee as i,H as it,E as j,_ as k,De as l,f as lt,ae as m,Q as n,se as nt,Ae as o,U as ot,W as p,R as q,je as r,le as rt,X as s,ne as st,$ as t,D as tt,Z as u,u as ut,S as v,T as w,ue as x,C as y,F as z};
|