@yuriai/web 0.3.6-beta.13 → 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.
Files changed (198) hide show
  1. package/dist/assets/{AgentAvatar-CEr1CtLO.js → AgentAvatar-DmUeOy5j.js} +1 -1
  2. package/dist/assets/{AgentSelector-B0Owr1ZK.js → AgentSelector-p1Ai0tlg.js} +1 -1
  3. package/dist/assets/{ArchivedSessionsDialog-cbyQcG7B.js → ArchivedSessionsDialog-Bjd3hgS2.js} +1 -1
  4. package/dist/assets/{AssistantConversationSurface-DOwN0Ip3.js → AssistantConversationSurface-CTYtqGK_.js} +3 -3
  5. package/dist/assets/{AssistantSessionCard-1CWSy8Bt.js → AssistantSessionCard-CX8zzXnW.js} +2 -2
  6. package/dist/assets/{AssistantUnreadBadge-Bi7Dojgx.js → AssistantUnreadBadge-Nhei_TuI.js} +1 -1
  7. package/dist/assets/{AssistantView-D91RZ13W.js → AssistantView-BvmJC0q9.js} +1 -1
  8. package/dist/assets/{AssistantWorkingAvatar-DgzJEVuK.js → AssistantWorkingAvatar-BKPxjA77.js} +1 -1
  9. package/dist/assets/{AssistantsSettingsPage-DmwV91xW.js → AssistantsSettingsPage-CPYKT5su.js} +1 -1
  10. package/dist/assets/{BinaryFileFallback-1wT0ClU8.js → BinaryFileFallback-DAmQpBO1.js} +1 -1
  11. package/dist/assets/{BtwPanel-FrJmmj9W.js → BtwPanel-BQgdeqj4.js} +2 -2
  12. package/dist/assets/BusyDots-CyVVXNMc.js +4 -0
  13. package/dist/assets/{ChatContainer-BJadx4zz.js → ChatContainer-_6gB1Tiu.js} +21 -21
  14. package/dist/assets/ChatView-DfPX2ADw.js +3 -0
  15. package/dist/assets/{DiagramView-CUCcpmvd.js → DiagramView-BAZPsxz1.js} +1 -1
  16. package/dist/assets/{DiffView-CMWTZ175.js → DiffView-B_03bICv.js} +1 -1
  17. package/dist/assets/{DiffViewToggle-BVpHBxQo.js → DiffViewToggle-CI-tbUKa.js} +1 -1
  18. package/dist/assets/{ErrorBoundary-74-IYvi5.js → ErrorBoundary-B1yQx4PN.js} +1 -1
  19. package/dist/assets/{FadeInOnReveal-5j0frOAV.js → FadeInOnReveal-CyF7ie8o.js} +1 -1
  20. package/dist/assets/{GuiPluginMount-CXnJtW4N.js → GuiPluginMount-jUR5ZEw-.js} +1 -1
  21. package/dist/assets/{GuiPluginPage-BrRwHot0.js → GuiPluginPage-Du-pLMlp.js} +1 -1
  22. package/dist/assets/{GuiPluginSurface-BMM8XK9q.js → GuiPluginSurface-hCEJJ4PF.js} +1 -1
  23. package/dist/assets/{GuiPluginTitlebarItems-YkwCMWDl.js → GuiPluginTitlebarItems-DrOGcHI0.js} +1 -1
  24. package/dist/assets/{GuiPluginWindow-D49q7RQT.js → GuiPluginWindow-CDiqRDYz.js} +1 -1
  25. package/dist/assets/{Icon-BxuNTD1G.js → Icon-D4ELZTbQ.js} +1 -1
  26. package/dist/assets/{ImageLoadingPlaceholder-wOEYYae9.js → ImageLoadingPlaceholder-BKk1qYNK.js} +1 -1
  27. package/dist/assets/{LoadingImage-fSoPxfqK.js → LoadingImage-BWknOYgx.js} +1 -1
  28. package/dist/assets/{MarkdownRenderer-BcCmyx3J.js → MarkdownRenderer-B8pnxnuP.js} +2 -2
  29. package/dist/assets/{MarkdownRendererImpl-BBxjlBBW.js → MarkdownRendererImpl-HvxkLk8k.js} +3 -3
  30. package/dist/assets/{MarkstreamRendererImpl-asOdM6LF.js → MarkstreamRendererImpl-oBJscGhT.js} +1 -1
  31. package/dist/assets/{MobileAssistantSettingsPage-B3nRw-O9.js → MobileAssistantSettingsPage-ADZ_zb24.js} +1 -1
  32. package/dist/assets/{MobileAssistantTab-DTvSg17F.js → MobileAssistantTab-D2B1DhXn.js} +1 -1
  33. package/dist/assets/{MobileBtwPage-CaaoPuuZ.js → MobileBtwPage-D9AHKfUL.js} +1 -1
  34. package/dist/assets/{MobileChangesSurface-BPI4-e0L.js → MobileChangesSurface-C-fS41BA.js} +1 -1
  35. package/dist/assets/{MobileChatScreen-CWBCZ4IZ.js → MobileChatScreen-CpjY3NfP.js} +1 -1
  36. package/dist/assets/{MobileDetailNavigation-CXC4GjdP.js → MobileDetailNavigation-DyEDDj7j.js} +1 -1
  37. package/dist/assets/{MobileFilesSurface-WPw1GU8X.js → MobileFilesSurface-i1CdOJt_.js} +2 -2
  38. package/dist/assets/{MobileHtmlNetworkBoundary-CToMn0v-.js → MobileHtmlNetworkBoundary-B0eGttNW.js} +2 -2
  39. package/dist/assets/{MobileOverlayPanel-DRs4pHcd.js → MobileOverlayPanel-BRsSjQB0.js} +1 -1
  40. package/dist/assets/{MobileResizableSheet-DaQdMNe9.js → MobileResizableSheet-Iz6IOJIC.js} +1 -1
  41. package/dist/assets/{MobileSettingsTab-BzAKd9oe.js → MobileSettingsTab-IFxVifD4.js} +1 -1
  42. package/dist/assets/{MobileShareBridge-BU4o7zvA.js → MobileShareBridge-CYupKqbK.js} +1 -1
  43. package/dist/assets/{MobileSurface-BAhIeu5y.js → MobileSurface-Dj0XqWPS.js} +1 -1
  44. package/dist/assets/{MobileTabPageHeader-BuGRgBJG.js → MobileTabPageHeader-DyDjEHij.js} +1 -1
  45. package/dist/assets/{ModelLogo-B4ia9c7r.js → ModelLogo-Ddsuaz2-.js} +1 -1
  46. package/dist/assets/{ModelSelector-CoV0ELh9.js → ModelSelector-BLqwVn9h.js} +1 -1
  47. package/dist/assets/{MultiRunWindow-CyGYoQ6V.js → MultiRunWindow-DOpqKyhx.js} +1 -1
  48. package/dist/assets/{OnboardingScreen-Bctdl4oS.js → OnboardingScreen-CyYxHZ27.js} +1 -1
  49. package/dist/assets/{OverlayScrollbar-BbUv42hT.js → OverlayScrollbar-DdK6iB_P.js} +1 -1
  50. package/dist/assets/{PierreDiffViewer-0bSxnzcB.js → PierreDiffViewer-DnLcVaQ_.js} +1 -1
  51. package/dist/assets/{ProviderLogo-BhzPiC4G.js → ProviderLogo-ClFNH0bR.js} +1 -1
  52. package/dist/assets/{RemoteAssistantSessionCard-BDsAcZX4.js → RemoteAssistantSessionCard-Bf3dzN6s.js} +1 -1
  53. package/dist/assets/{RemoteDesktopPanel-yBr4UO58.js → RemoteDesktopPanel-CYrH1ew9.js} +1 -1
  54. package/dist/assets/ScheduledTasksDialog-Cjl3xt0U.js +3 -0
  55. package/dist/assets/{ScrollableOverlay-CAdxdD7C.js → ScrollableOverlay-CpChvNBP.js} +1 -1
  56. package/dist/assets/{SettingsGroup-C1ui69yn.js → SettingsGroup-DiF6MwFq.js} +1 -1
  57. package/dist/assets/{SettingsView-RULyRRQP.js → SettingsView-BG9k0S0n.js} +10 -10
  58. package/dist/assets/{SettingsWindow-DPPmIElK.js → SettingsWindow-CZqmOqJh.js} +1 -1
  59. package/dist/assets/{SetupTourDialog-D5UX8kw1.js → SetupTourDialog-Dm893t6A.js} +1 -1
  60. package/dist/assets/{SyncActions-CtuW0cF8.js → SyncActions-DxL0WqMS.js} +1 -1
  61. package/dist/assets/{TerminalView-CvTlu81P.js → TerminalView-Cm_Az2IR.js} +3 -3
  62. package/dist/assets/{TextSelectionMenu-Cnd0PPeZ.js → TextSelectionMenu-C-QA2JSI.js} +2 -2
  63. package/dist/assets/{ToolOutputDialog-Bk8GsZTN.js → ToolOutputDialog-IbK1m1cQ.js} +2 -2
  64. package/dist/assets/{YuriLogo-Cexwa29m.js → YuriLogo-CdbCjzA8.js} +1 -1
  65. package/dist/assets/{YuriWordmark-Bn5KdqMC.js → YuriWordmark-rISEHjrd.js} +1 -1
  66. package/dist/assets/{assistant-attachment-cache-Y7yhlQcv.js → assistant-attachment-cache-BsIYVOYw.js} +1 -1
  67. package/dist/assets/{assistantMessagePreview-DsmKo-Rd.js → assistantMessagePreview-DbTwPLzY.js} +1 -1
  68. package/dist/assets/{assistantQueries-DFR7-2m4.js → assistantQueries-DJyuR5Cm.js} +1 -1
  69. package/dist/assets/{auto-read-context-CFc8sopy.js → auto-read-context-B0niCh-F.js} +1 -1
  70. package/dist/assets/{capgoAdapter-CrrR1sb7.js → capgoAdapter-CXshem6r.js} +1 -1
  71. package/dist/assets/{card-Bjer7G59.js → card-BCtykvi_.js} +1 -1
  72. package/dist/assets/{chatUpwardIntent-ZOlImhuf.js → chatUpwardIntent-DR7dxJwx.js} +1 -1
  73. package/dist/assets/{checkbox-BnafV7fE.js → checkbox-DsB97EEi.js} +1 -1
  74. package/dist/assets/{client-QcYZg8_d.js → client-BuCd-T7s.js} +1 -1
  75. package/dist/assets/{collapsible-J-qWuNzr.js → collapsible-acYUve5w.js} +1 -1
  76. package/dist/assets/{connection-hint-CVsiZdCj.js → connection-hint-BYkEkoO4.js} +1 -1
  77. package/dist/assets/{context-menu-0Bkpdmag.js → context-menu-HoHZ2sEw.js} +1 -1
  78. package/dist/assets/{desktopHosts-DFa3lf0i.js → desktopHosts-COI-czjF.js} +1 -1
  79. package/dist/assets/{desktopRelayRestore-CGq-Ylgq.js → desktopRelayRestore-BEPNc7qb.js} +1 -1
  80. package/dist/assets/device-TCHW5U2y.js +2 -0
  81. package/dist/assets/{diagram-Clzpe5jY.js → diagram-Bp_Qevoe.js} +1 -1
  82. package/dist/assets/{dialog-BhhUro-8.js → dialog-CeXUC0Ej.js} +1 -1
  83. package/dist/assets/{dropdown-menu-low64f9u.js → dropdown-menu-CwcXAdvN.js} +1 -1
  84. package/dist/assets/{fileMentionTouchSelection-B48eLkS9.js → fileMentionTouchSelection-vrvxc508.js} +1 -1
  85. package/dist/assets/{fileReferenceActions-DEUhs_7h.js → fileReferenceActions-wN7mWY3w.js} +1 -1
  86. package/dist/assets/{gitApi-uOSHjWy6.js → gitApi-Di_eB3Io.js} +1 -1
  87. package/dist/assets/{gitApiHttp-C8AU1uiY.js → gitApiHttp-CrPYe9Oc.js} +2 -2
  88. package/dist/assets/{githubAuthQueries-IJPWBo0B.js → githubAuthQueries-CTTiXZ9q.js} +1 -1
  89. package/dist/assets/{historyImportQueries-B3QBdaKo.js → historyImportQueries-B4DVAuxZ.js} +1 -1
  90. package/dist/assets/{host-DchPrZpw.js → host-BjnskVUP.js} +1 -1
  91. package/dist/assets/{i18n-WsU03nwB.js → i18n-CYty_Jft.js} +1 -1
  92. package/dist/assets/{icons-BjHPg9QC.js → icons-P6A_c8tb.js} +1 -1
  93. package/dist/assets/{imageSource-B39pFDdo.js → imageSource-BquIRnWW.js} +1 -1
  94. package/dist/assets/{input-Bn5-lrjt.js → input-CozXpDTq.js} +1 -1
  95. package/dist/assets/{input-store-PqhVEhUI.js → input-store-BtvRZZcg.js} +1 -1
  96. package/dist/assets/insertionBoundaries-Cw7x86o4.js +1 -0
  97. package/dist/assets/{kbd-BiidNm-N.js → kbd-DPRFdABo.js} +1 -1
  98. package/dist/assets/{main-4G_VHm4a.js → main-CmWGNM6N.js} +2 -2
  99. package/dist/assets/main-DxvrNIsv.js +169 -0
  100. package/dist/assets/{markdownHeightCache-CfBcQ5c-.js → markdownHeightCache-BIB64pXI.js} +1 -1
  101. package/dist/assets/{mcpQueries-BDdMur9_.js → mcpQueries-WWAWy_n9.js} +1 -1
  102. package/dist/assets/miniChat-CA9XT4K1.js +2 -0
  103. package/dist/assets/mobile-BKQlIKz3.js +2 -0
  104. package/dist/assets/{mobileBackNavigation-CihY-ZWs.js → mobileBackNavigation-CX_MC0oM.js} +1 -1
  105. package/dist/assets/{mobileConnections-C6FuJ0fM.js → mobileConnections-DuohwVoG.js} +2 -2
  106. package/dist/assets/{multirun-D3ah7H0A.js → multirun-DXO3dw9u.js} +1 -1
  107. package/dist/assets/{native-config-6EqKnDU2.js → native-config-C_hqdruM.js} +1 -1
  108. package/dist/assets/{nativeComposerCover-F38clCeD.js → nativeComposerCover-Cyi4eoBm.js} +1 -1
  109. package/dist/assets/{navigation-BFoRE4u8.js → navigation-Bxjv649w.js} +2 -2
  110. package/dist/assets/openRemoteProjectSession-W9p1SC1j.js +1 -0
  111. package/dist/assets/openSessionFromDeepLink-CeiBnoBN.js +2 -0
  112. package/dist/assets/platform-B2ylz14u.js +1 -0
  113. package/dist/assets/{pluginPresentation-BnpV06pV.js → pluginPresentation-CWyI_3os.js} +2 -2
  114. package/dist/assets/{project-preview-CIkGbBPZ.js → project-preview-Dq--046z.js} +1 -1
  115. package/dist/assets/{projectActions-D84EVh3q.js → projectActions-B11KAI3f.js} +1 -1
  116. package/dist/assets/{prompt-attachment-upload-D1c308Ba.js → prompt-attachment-upload-m0vbcftI.js} +1 -1
  117. package/dist/assets/{pwa-BsyIaDZ4.js → pwa-RpFKwS6l.js} +2 -2
  118. package/dist/assets/{queue-abort-optimistic-BrAat9L-.js → queue-abort-optimistic-B624kCyc.js} +1 -1
  119. package/dist/assets/{quota-C7uYEfoX.js → quota-CNmk_bQD.js} +1 -1
  120. package/dist/assets/{reference-history-B5vQfNKz.js → reference-history-xOIH7D3x.js} +1 -1
  121. package/dist/assets/{remote-input-store-CquhCIoR.js → remote-input-store-CE88ZLsw.js} +1 -1
  122. package/dist/assets/{remoteProjectQueries-BunVM5PM.js → remoteProjectQueries-zO4jYbru.js} +1 -1
  123. package/dist/assets/{remoteSessionReference-d8IANkUB.js → remoteSessionReference-CNows8Mw.js} +1 -1
  124. package/dist/assets/{renderElectronMiniChatApp-DZV4b3Rq.js → renderElectronMiniChatApp-C0VEQ1ge.js} +2 -2
  125. package/dist/assets/renderMobileApp-ByzqYif5.js +17 -0
  126. package/dist/assets/{runtime-file-download-wMVtKk2v.js → runtime-file-download-CzZ_VAoB.js} +1 -1
  127. package/dist/assets/{runtime-file-resource-DKJJoOOc.js → runtime-file-resource-9kLrAtnQ.js} +1 -1
  128. package/dist/assets/{runtimeConfig-DILpDGx-.js → runtimeConfig-CnEfMg7l.js} +1 -1
  129. package/dist/assets/runtimeEndpointReset-DFqTJZ0I.js +4 -0
  130. package/dist/assets/{scheduledTaskNavigation-DpfZSGu8.js → scheduledTaskNavigation-r3g3DfXq.js} +1 -1
  131. package/dist/assets/{select-CETtrHQE.js → select-B2UkBeQN.js} +1 -1
  132. package/dist/assets/sessionLookup-DCk6ryrM.js +1 -0
  133. package/dist/assets/{sessionOwnership-nyTiak2m.js → sessionOwnership-BAee5GI3.js} +1 -1
  134. package/dist/assets/{shortcuts-DFgnwGd5.js → shortcuts-CiFlt2ws.js} +1 -1
  135. package/dist/assets/{sortable-tabs-strip-D6tQk6nW.js → sortable-tabs-strip-Doz9wEki.js} +1 -1
  136. package/dist/assets/{speechSettingsQueries-B8UP0Kkn.js → speechSettingsQueries-DxCvZVJ0.js} +1 -1
  137. package/dist/assets/{switch-B8h1KUmC.js → switch-YSNGU195.js} +1 -1
  138. package/dist/assets/{terminalApi-D2ECmoAo.js → terminalApi-CsTh04jY.js} +1 -1
  139. package/dist/assets/{textarea-f9PtvCNG.js → textarea-DxGZoBdI.js} +1 -1
  140. package/dist/assets/{timeFormat-D1hdmWbu.js → timeFormat-fIpRkrOb.js} +1 -1
  141. package/dist/assets/{tooltip-BQKvkayK.js → tooltip-D2BtRCgs.js} +1 -1
  142. package/dist/assets/{truncated-path-DUsIWNhL.js → truncated-path-ouBMaMLS.js} +1 -1
  143. package/dist/assets/{types-B0G9z6G6.js → types-B-Io5z5w.js} +1 -1
  144. package/dist/assets/ui-BwSpLYDL.js +13 -0
  145. package/dist/assets/useAppFontEffects-Cuirbagj.js +7 -0
  146. package/dist/assets/{useAssistantUIStore-DEiMjSqf.js → useAssistantUIStore-BUWPTwNV.js} +1 -1
  147. package/dist/assets/{useDesktopWindowControlsLayout-BiQv3xA1.js → useDesktopWindowControlsLayout-BBO7snRO.js} +1 -1
  148. package/dist/assets/{useDictation-DUR68U4T.js → useDictation-C81KyPa6.js} +1 -1
  149. package/dist/assets/{useEffectiveDirectory-DynS0IQR.js → useEffectiveDirectory-DeoADFfu.js} +1 -1
  150. package/dist/assets/{useFontPreferences-BY0TXvWI.js → useFontPreferences-DyMUXTQC.js} +1 -1
  151. package/dist/assets/{useGitStore-CHE0pTk_.js → useGitStore-BVToTkFp.js} +1 -1
  152. package/dist/assets/{useInlineCommentDraftStore-CvpvoffS.js → useInlineCommentDraftStore-BN8BgIUL.js} +1 -1
  153. package/dist/assets/useMcpConfigStore-CFUCk1mM.js +1 -0
  154. package/dist/assets/{useMobileSwipeActions-BYD4Qa5k.js → useMobileSwipeActions-l0OHTMa8.js} +1 -1
  155. package/dist/assets/useMobileTranscriptSyncHint-LoxQ23zb.js +10 -0
  156. package/dist/assets/{useModelLists-85Cks36l.js → useModelLists-RMIHCaOi.js} +1 -1
  157. package/dist/assets/{useOpenCodeReadiness-BvD_kM-L.js → useOpenCodeReadiness-Cw5UOeLB.js} +1 -1
  158. package/dist/assets/{usePluginsStore-DEIJXUJp.js → usePluginsStore-Cnj8I3MZ.js} +1 -1
  159. package/dist/assets/{useProjectGitActions-DQvIHmjR.js → useProjectGitActions-D9TZc59T.js} +1 -1
  160. package/dist/assets/{useProjectGitStore-BZLEIJPC.js → useProjectGitStore-qcnLHK_q.js} +1 -1
  161. package/dist/assets/{useProjectRuntimeAPIs-Ct3aOMyH.js → useProjectRuntimeAPIs-BoNGczR0.js} +1 -1
  162. package/dist/assets/{useQuotaStore-BqPJ1nzk.js → useQuotaStore-B4FEz0gR.js} +1 -1
  163. package/dist/assets/{useSessionBtwStore-DWvYSycl.js → useSessionBtwStore-DD2dFcs5.js} +1 -1
  164. package/dist/assets/{useStreamingTextThrottle-B8qFhmN9.js → useStreamingTextThrottle-Cj6xIVZf.js} +1 -1
  165. package/dist/assets/{useUIStore-P32bzAJc.js → useUIStore-68ZPpgYA.js} +1 -1
  166. package/dist/assets/{worktreeManager-DcqLFxEk.js → worktreeManager-CnxL8GZi.js} +1 -1
  167. package/dist/assets/{worktreeSourceBranchPreference-DyEaTtIU.js → worktreeSourceBranchPreference-ii7ydXPw.js} +1 -1
  168. package/dist/index.html +15 -15
  169. package/dist/mini-chat.html +15 -15
  170. package/dist/mobile.html +1 -1
  171. package/package.json +1 -1
  172. package/server/lib/assistants/DOCUMENTATION.md +4 -3
  173. package/server/lib/assistants/contact-tools.js +47 -3
  174. package/server/lib/assistants/contact-tools.test.js +59 -0
  175. package/server/lib/assistants/harness.js +3 -1
  176. package/server/lib/assistants/harness.test.js +1 -1
  177. package/server/lib/assistants/service.js +1 -0
  178. package/server/lib/assistants/yuri-tools.js +1 -1
  179. package/server/lib/assistants/yuri-tools.test.js +1 -1
  180. package/server/lib/gui-customization/skill/references/deep-links.md +6 -6
  181. package/dist/assets/BusyDots-DWKGX3Sn.js +0 -4
  182. package/dist/assets/ChatView-Bb-K_GE2.js +0 -3
  183. package/dist/assets/ScheduledTasksDialog-1HTvbmGQ.js +0 -3
  184. package/dist/assets/device-CtdJ8KBJ.js +0 -2
  185. package/dist/assets/insertionBoundaries-B--nM0ah.js +0 -1
  186. package/dist/assets/main-D0KOHcSW.js +0 -169
  187. package/dist/assets/miniChat-SErezL-O.js +0 -2
  188. package/dist/assets/mobile-IIghKCW_.js +0 -2
  189. package/dist/assets/openRemoteProjectSession-FtIejPwF.js +0 -1
  190. package/dist/assets/openSessionFromDeepLink-DMS6SIo7.js +0 -2
  191. package/dist/assets/platform-CNdx57HN.js +0 -1
  192. package/dist/assets/renderMobileApp-C6zKgF6w.js +0 -17
  193. package/dist/assets/runtimeEndpointReset-r655-D3H.js +0 -4
  194. package/dist/assets/sessionLookup-D0gUdT8J.js +0 -1
  195. package/dist/assets/ui-CBjYsEHe.js +0 -13
  196. package/dist/assets/useAppFontEffects-BQLHroVK.js +0 -7
  197. package/dist/assets/useMcpConfigStore-CGenk3_j.js +0 -1
  198. package/dist/assets/useMobileTranscriptSyncHint-CDAa-k2e.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};