@yuriai/web 0.2.38-beta.3 → 0.2.38-beta.5
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-CAC4rKO_.js → AgentAvatar-CfpejA-o.js} +1 -1
- package/dist/assets/AssistantContactStatus-_0PxmEHN.js +3 -0
- package/dist/assets/AssistantUnreadBadge-O-9phsEJ.js +1 -0
- package/dist/assets/AssistantView-CqFwkHDU.js +1 -0
- package/dist/assets/DiagramView-qYMnnPzv.js +1 -0
- package/dist/assets/{FadeInOnReveal--aVey7kZ.js → FadeInOnReveal-B6GGwaY7.js} +1 -1
- package/dist/assets/GuiPluginPage-D8Tl5eZe.js +1 -0
- package/dist/assets/GuiPluginSurface-CxcYHPiw.js +1 -0
- package/dist/assets/GuiPluginWindow-BuGtfRjB.js +1 -0
- package/dist/assets/{Icon-h0JiZMjp.js → Icon-AqWbQ-aO.js} +1 -1
- package/dist/assets/ImageLoadingPlaceholder-BaWRq0Oj.js +1 -0
- package/dist/assets/LoadingImage-CsNAJ7VA.js +1 -0
- package/dist/assets/MarkdownRenderer-BdfXY4lC.js +2 -0
- package/dist/assets/{MarkdownRendererImpl-MYwBFYBA.js → MarkdownRendererImpl-Dk1Ph8dy.js} +3 -3
- package/dist/assets/MarkstreamRendererImpl-DyPRvrql.js +3 -0
- package/dist/assets/MobileDetailNavigation-EEjgCwp2.js +1 -0
- package/dist/assets/MobileResizableSheet-CBHcyf1Z.js +1 -0
- package/dist/assets/MobileShareBridge-Dswz4WUo.js +3 -0
- package/dist/assets/MobileTabPageHeader-D3SrcPki.js +2 -0
- package/dist/assets/MultiRunWindow-CVicaUFS.js +1 -0
- package/dist/assets/OnboardingScreen-DRunDbYQ.js +1 -0
- package/dist/assets/{OverlayScrollbar-DMbq1jNO.js → OverlayScrollbar-D5p2e1RO.js} +1 -1
- package/dist/assets/SettingsView-U-pIjcB4.js +29 -0
- package/dist/assets/SettingsWindow-hd-ADhd3.js +1 -0
- package/dist/assets/SetupTourDialog-Cahv5gkl.js +1 -0
- package/dist/assets/TerminalView-D2ouVtum.js +8 -0
- package/dist/assets/ToolOutputDialog-CNm-8Knm.js +10 -0
- package/dist/assets/VoiceSettings-BUo82XOD.js +2 -0
- package/dist/assets/YuriLogo-DcoYyXzq.js +1 -0
- package/dist/assets/YuriWordmark-Dlsq3scd.js +1 -0
- package/dist/assets/appThemeRegistry-BbpJh1HH.js +1 -0
- package/dist/assets/{assistant-attachment-cache-C-SlEpSB.js → assistant-attachment-cache-Cmzt4xXE.js} +1 -1
- package/dist/assets/bootstrap-BhC95qVC.js +1 -0
- package/dist/assets/{capgoAdapter-C1AUTwaK.js → capgoAdapter-gTKxaGbj.js} +1 -1
- package/dist/assets/{checkbox-DR7tyhFb.js → checkbox-BQ_mKqEF.js} +1 -1
- package/dist/assets/{collapsible-C8DgipZf.js → collapsible-Dr6Y1Igi.js} +1 -1
- package/dist/assets/{context-menu-BfLJgbjE.js → context-menu-Dfu9gzKB.js} +1 -1
- package/dist/assets/desktopHosts-DovfbQPm.js +1 -0
- package/dist/assets/desktopRelayRestore-D4pbpNKN.js +1 -0
- package/dist/assets/device-DNG0cNwQ.js +2 -0
- package/dist/assets/{diagram-0lT2w7uS.js → diagram-B_HmL8LL.js} +1 -1
- package/dist/assets/dialog-pjai4m5O.js +1 -0
- package/dist/assets/{es-CrVDn7XV.js → es-30Wqm-Bx.js} +1 -1
- package/dist/assets/{fileMentionTouchSelection-BhQqAWYa.js → fileMentionTouchSelection-DxRRqdQ2.js} +1 -1
- package/dist/assets/{fileQueries-BaEKb7SZ.js → fileQueries-D9l0crnM.js} +1 -1
- package/dist/assets/fileReferenceActions-BRF8f7uA.js +1 -0
- package/dist/assets/{fileReferenceParser-BayaidRM.js → fileReferenceParser-1HHDBUum.js} +1 -1
- package/dist/assets/{fr-CCwt5AOu.js → fr-BbWLXNYa.js} +1 -1
- package/dist/assets/{gitApi-CWUhy6kY.js → gitApi-Dj03_3PE.js} +8 -8
- package/dist/assets/gitApiHttp-B1mApXwC.js +9 -0
- package/dist/assets/{gui-CFdPKvfq.js → gui-DN2sVP96.js} +1 -1
- package/dist/assets/{historyImportQueries-BrhVXQhP.js → historyImportQueries-DkB2_92i.js} +1 -1
- package/dist/assets/host-kMLXU0hK.js +1 -0
- package/dist/assets/i18n-BU14awhU.js +1 -0
- package/dist/assets/image-loading-DEXNCcCm.js +1 -0
- package/dist/assets/{input-Baq2dV0C.js → input-BlKTIfXo.js} +1 -1
- package/dist/assets/insertionBoundaries-Dmg74pH8.js +1 -0
- package/dist/assets/{ja-BfwjUNPc.js → ja-BI7m9bgW.js} +1 -1
- package/dist/assets/{ko-CZQZFkal.js → ko-B89SVFZa.js} +1 -1
- package/dist/assets/main-B0RPbUtx.js +2 -0
- package/dist/assets/main-D1vPyHl8.js +169 -0
- package/dist/assets/{markdownHeightCache-BEb1XAlf.js → markdownHeightCache-Ct6RXQq8.js} +1 -1
- package/dist/assets/mcpQueries-DqfD7_kv.js +1 -0
- package/dist/assets/miniChat-xjOkZhpT.js +2 -0
- package/dist/assets/mobile-8PDO4RhV.js +2 -0
- package/dist/assets/mobile-html-network-CPZnAlje.js +2 -0
- package/dist/assets/mobile-network-bridge-B_h92A-9.js +1 -0
- package/dist/assets/mobileBackNavigation-CnA0UqIL.js +1 -0
- package/dist/assets/mobileConnections-DMkh6DCw.js +2 -0
- package/dist/assets/modulepreload-polyfill-P2Xu9kJm.js +1 -0
- package/dist/assets/multirun-DsNq2b4Z.js +3 -0
- package/dist/assets/native-config-DpErLDXn.js +1 -0
- package/dist/assets/pages-CYkE04ml.js +1 -0
- package/dist/assets/path-utils-jGozTg9d.js +1 -0
- package/dist/assets/pathNormalization-ewtPqJWn.js +1 -0
- package/dist/assets/{pl-B6C3vXqv.js → pl-B55Lf3HE.js} +1 -1
- package/dist/assets/platform-DMsFWy1a.js +1 -0
- package/dist/assets/projectMeta-C3NpB0dz.js +1 -0
- package/dist/assets/{pt-BR-BUDTNopP.js → pt-BR-CFZj-ECy.js} +1 -1
- package/dist/assets/pwa-DCktk4PB.js +2 -0
- package/dist/assets/queue-abort-optimistic-BA_Hnkq2.js +1 -0
- package/dist/assets/react-Bch1-zoe.js +1 -0
- package/dist/assets/readiness-_wHN9DvW.js +1 -0
- package/dist/assets/reasoning-projection-client-BEhVknv9.js +1 -0
- package/dist/assets/renderElectronMiniChatApp-Cp7Nw-Bb.js +2 -0
- package/dist/assets/renderMobileApp-C0aEpXl8.js +29 -0
- package/dist/assets/{runtime-auth-Bh3htXtG.js → runtime-auth-mjIpsk3N.js} +1 -1
- package/dist/assets/runtime-fetch-DKZOpfzo.js +1 -0
- package/dist/assets/runtime-file-download-DMY1k1af.js +1 -0
- package/dist/assets/runtime-file-resource-CL7EVzOG.js +2 -0
- package/dist/assets/runtime-switch-BMjl5Y5W.js +1 -0
- package/dist/assets/runtimeAPIRegistry-C2VogTny.js +1 -0
- package/dist/assets/runtimeConfig-DySpB2Ms.js +2 -0
- package/dist/assets/runtimeEndpointReset-CTX1Lp2P.js +149 -0
- package/dist/assets/{scheduledTaskNavigation-C8tBjNoP.js → scheduledTaskNavigation-PH-etFzZ.js} +1 -1
- package/dist/assets/select-dzuHSnKA.js +1 -0
- package/dist/assets/sessionLookup-CEo8HV6T.js +1 -0
- package/dist/assets/sortable-tabs-strip-CQipbMoB.js +1 -0
- package/dist/assets/{speechSettingsQueries-C4eOkV7q.js → speechSettingsQueries-grq8zufg.js} +1 -1
- package/dist/assets/src-ByI2s7WK.css +2 -0
- package/dist/assets/{store-Myt_Fv8d.js → store-BNNIbb4k.js} +3 -3
- package/dist/assets/terminalApi-BXKIVBPo.js +1 -0
- package/dist/assets/textarea-C1IkHndn.js +1 -0
- package/dist/assets/{tooltip-CxneNjeR.js → tooltip-UtVoXY1Q.js} +1 -1
- package/dist/assets/{types-hxNDOWGs.js → types-9U-qp6Dn.js} +1 -1
- package/dist/assets/{uk-Ct9y1Y2t.js → uk-CS2c4Dtj.js} +1 -1
- package/dist/assets/{useAppFontEffects-C9muit_c.js → useAppFontEffects-ji7bphac.js} +50 -50
- package/dist/assets/{useAssistantUIStore-CVSFSgJV.js → useAssistantUIStore-Du8puXWz.js} +1 -1
- package/dist/assets/useDesktopWindowControlsLayout-B0tAK_6s.js +1 -0
- package/dist/assets/useDictation-CyWtsxSn.js +1 -0
- package/dist/assets/useEffectiveDirectory-D5CBpzcV.js +1 -0
- package/dist/assets/{useFontPreferences-DqBoLHp6.js → useFontPreferences-CAdw6cBK.js} +1 -1
- package/dist/assets/useMobileHtmlPreviewStore-C03uVLfX.js +1 -0
- package/dist/assets/useMobileNavigationStore-C90n-pQY.js +17 -0
- package/dist/assets/usePluginsStore-BdCWVg9s.js +1 -0
- package/dist/assets/useStreamingTextThrottle-CDpeNtel.js +1 -0
- package/dist/assets/useUIStore-BF882_0b.js +1 -0
- package/dist/assets/useWorkerHighlightedLines-BFi-QWq2.js +7 -0
- package/dist/assets/{zh-CN-BegPizz4.js → zh-CN-BpiwUUs4.js} +1 -1
- package/dist/assets/{zh-TW-4xftqQQG.js → zh-TW-Bl9CnlGi.js} +1 -1
- package/dist/index.html +26 -21
- package/dist/mini-chat.html +26 -21
- package/dist/mobile.html +4 -32
- package/package.json +1 -1
- package/server/index.js +10 -0
- package/server/lib/gui-customization/skill/references/global-pages.md +18 -3
- package/server/lib/gui-network/DOCUMENTATION.md +123 -0
- package/server/lib/gui-network/native-ios.test.js +127 -0
- package/server/lib/gui-network/runtime.js +146 -0
- package/server/lib/gui-network/runtime.test.js +129 -0
- package/server/lib/preview/proxy-runtime.js +1 -1
- package/server/lib/preview/proxy-runtime.test.js +4 -0
- package/server/lib/relay/DOCUMENTATION.md +5 -0
- package/server/lib/relay/tunnel-host.js +2 -1
- package/server/lib/ui-auth/DOCUMENTATION.md +8 -0
- package/server/lib/ui-auth/ui-auth.js +6 -0
- package/server/lib/ui-auth/ui-auth.test.js +10 -0
- package/dist/assets/AssistantContactStatus-Co_TnYMc.js +0 -3
- package/dist/assets/AssistantUnreadBadge-DqJFhaNg.js +0 -1
- package/dist/assets/AssistantView-D6fdLgFj.js +0 -1
- package/dist/assets/DiagramView-tx4upWOs.js +0 -1
- package/dist/assets/GuiPluginSurface-Bd3v_5A8.js +0 -1
- package/dist/assets/GuiPluginWindow-fy3lT5ns.js +0 -1
- package/dist/assets/ImageLoadingPlaceholder-A2tjfBfo.js +0 -1
- package/dist/assets/LoadingImage-C4DsIEui.js +0 -1
- package/dist/assets/MarkdownRenderer-BfAZBFzv.js +0 -2
- package/dist/assets/MarkstreamRendererImpl-13XA9vlX.js +0 -3
- package/dist/assets/MobileDetailNavigation-UU1cGYp2.js +0 -1
- package/dist/assets/MobileResizableSheet-nUZzBOmQ.js +0 -1
- package/dist/assets/MobileShareBridge-IWtj1SYy.js +0 -4
- package/dist/assets/MobileTabPageHeader-Diplic-W.js +0 -2
- package/dist/assets/MultiRunWindow-CHdpFi_v.js +0 -1
- package/dist/assets/OnboardingScreen-CeQxPD6C.js +0 -1
- package/dist/assets/SettingsView-CxHpCSsu.js +0 -29
- package/dist/assets/SettingsWindow-DEEHLurG.js +0 -1
- package/dist/assets/SetupTourDialog-5w42fqYN.js +0 -1
- package/dist/assets/TerminalView-DAx8JZmn.js +0 -8
- package/dist/assets/ToolOutputDialog-CbGuK5bP.css +0 -1
- package/dist/assets/ToolOutputDialog-CoKt-9rk.js +0 -10
- package/dist/assets/VoiceSettings-BFCJ8d-d.js +0 -2
- package/dist/assets/YuriLogo-BFawEKZ2.js +0 -1
- package/dist/assets/YuriWordmark-CJ8qJ14A.js +0 -1
- package/dist/assets/appThemeRegistry-CbyMACnN.js +0 -1
- package/dist/assets/bootstrap-BzeQds0D.js +0 -9
- package/dist/assets/desktop-Brp3xDpd.js +0 -1
- package/dist/assets/desktopHosts-qQ2Rz26_.js +0 -1
- package/dist/assets/desktopRelayRestore-DifJHAur.js +0 -1
- package/dist/assets/device-Db_TcRdX.js +0 -2
- package/dist/assets/dialog-Kz0pw-SO.js +0 -1
- package/dist/assets/fileReferenceActions-D06_lyuL.js +0 -1
- package/dist/assets/host-D_6AN-1g.js +0 -1
- package/dist/assets/image-loading-D1DfK_bJ.js +0 -1
- package/dist/assets/insertionBoundaries-Bfzw2QQw.js +0 -1
- package/dist/assets/main-CeqfStCn.js +0 -2
- package/dist/assets/main-c0X9U5aG.js +0 -169
- package/dist/assets/mcpQueries-DtBlC0VK.js +0 -1
- package/dist/assets/miniChat-TSOpbP39.js +0 -2
- package/dist/assets/mobile-W2QaGheB.js +0 -2
- package/dist/assets/mobileBackNavigation-Dy-OW7DB.js +0 -1
- package/dist/assets/multirun-O7LH-36l.js +0 -3
- package/dist/assets/native-config-CGAqvpqz.js +0 -1
- package/dist/assets/path-utils-HRmerlyU.js +0 -1
- package/dist/assets/platform-Dids8J9D.js +0 -1
- package/dist/assets/projectMeta-B2LbasoM.js +0 -1
- package/dist/assets/pwa-BHki-tGS.js +0 -2
- package/dist/assets/queue-abort-optimistic-DaJr8CmG.js +0 -1
- package/dist/assets/react-a6PrrNTm.js +0 -1
- package/dist/assets/readiness-DqfcV8R2.js +0 -1
- package/dist/assets/renderElectronMiniChatApp-Dlt2LoM5.js +0 -2
- package/dist/assets/renderMobileApp-BqUbrWSg.js +0 -28
- package/dist/assets/runtime-fetch-9B8F_rKW.js +0 -1
- package/dist/assets/runtime-file-download-D4WGSMk-.js +0 -1
- package/dist/assets/runtime-file-resource-tDTBpJT_.js +0 -2
- package/dist/assets/runtime-switch-ibQIZnws.js +0 -1
- package/dist/assets/runtimeConfig-k2t218IT.js +0 -2
- package/dist/assets/runtimeEndpointReset-_8oYno9l.js +0 -149
- package/dist/assets/select-DV9UcboH.js +0 -1
- package/dist/assets/sessionLookup-BBH2jvTL.js +0 -1
- package/dist/assets/sortable-tabs-strip-M-5RVko_.js +0 -1
- package/dist/assets/src-Bc4Nf__6.css +0 -2
- package/dist/assets/terminalApi-BXf0a2VZ.js +0 -1
- package/dist/assets/textarea-DWw42WmZ.js +0 -1
- package/dist/assets/url-DO6Zrx1P.js +0 -1
- package/dist/assets/useDesktopWindowControlsLayout-3SlaV4G-.js +0 -1
- package/dist/assets/useDictation-CgUBTlk5.js +0 -1
- package/dist/assets/useEffectiveDirectory-Dn3Z6Sbz.js +0 -1
- package/dist/assets/useMobileNavigationStore-ywElU2fl.js +0 -17
- package/dist/assets/usePluginsStore-BD47b67P.js +0 -1
- package/dist/assets/useStreamingTextThrottle-BDPkHk3Z.js +0 -1
- package/dist/assets/useUIStore-BsCfUWQw.js +0 -1
- package/dist/assets/useWorkerHighlightedLines-D9HhL0-T.js +0 -7
package/dist/index.html
CHANGED
|
@@ -571,40 +571,45 @@
|
|
|
571
571
|
opacity: 0.72;
|
|
572
572
|
}
|
|
573
573
|
</style>
|
|
574
|
-
<script type="module" crossorigin src="/assets/main-
|
|
574
|
+
<script type="module" crossorigin src="/assets/main-B0RPbUtx.js"></script>
|
|
575
|
+
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-P2Xu9kJm.js">
|
|
575
576
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
576
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
577
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-
|
|
578
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-
|
|
579
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
580
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
581
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
582
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
577
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
578
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-mjIpsk3N.js">
|
|
579
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-BMjl5Y5W.js">
|
|
580
|
+
<link rel="modulepreload" crossorigin href="/assets/reasoning-projection-client-BEhVknv9.js">
|
|
581
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-DKZOpfzo.js">
|
|
582
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
583
|
+
<link rel="modulepreload" crossorigin href="/assets/platform-DMsFWy1a.js">
|
|
584
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-DovfbQPm.js">
|
|
585
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-D4pbpNKN.js">
|
|
583
586
|
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CzHs0bHY.js">
|
|
584
587
|
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-vDaAPGfl.js">
|
|
585
588
|
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
|
|
586
589
|
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
|
|
587
590
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
588
591
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
589
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
592
|
+
<link rel="modulepreload" crossorigin href="/assets/useMobileHtmlPreviewStore-C03uVLfX.js">
|
|
593
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-BF882_0b.js">
|
|
590
594
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
|
|
591
595
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
592
596
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-Y_YoRHtC.js">
|
|
593
597
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B-Wpqq5J.js">
|
|
594
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-
|
|
598
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-D9l0crnM.js">
|
|
595
599
|
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
596
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
597
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
598
|
-
<link rel="modulepreload" crossorigin href="/assets/platform-Dids8J9D.js">
|
|
600
|
+
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
601
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-CL7EVzOG.js">
|
|
599
602
|
<link rel="modulepreload" crossorigin href="/assets/runtime-ead7P81A.js">
|
|
600
|
-
<link rel="modulepreload" crossorigin href="/assets/bootstrap-
|
|
601
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
602
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
603
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
604
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
605
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
606
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
607
|
-
<link rel="
|
|
603
|
+
<link rel="modulepreload" crossorigin href="/assets/bootstrap-BhC95qVC.js">
|
|
604
|
+
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
605
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-B1mApXwC.js">
|
|
606
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-BXKIVBPo.js">
|
|
607
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-DMY1k1af.js">
|
|
608
|
+
<link rel="modulepreload" crossorigin href="/assets/types-9U-qp6Dn.js">
|
|
609
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-gTKxaGbj.js">
|
|
610
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-DpErLDXn.js">
|
|
611
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-DySpB2Ms.js">
|
|
612
|
+
<link rel="stylesheet" crossorigin href="/assets/src-ByI2s7WK.css">
|
|
608
613
|
</head>
|
|
609
614
|
<body class="h-full bg-background text-foreground">
|
|
610
615
|
<!-- Keep the startup layer outside #root. React replaces every child of
|
package/dist/mini-chat.html
CHANGED
|
@@ -77,40 +77,45 @@
|
|
|
77
77
|
.dark #initial-loading img { filter: invert(1); }
|
|
78
78
|
</style>
|
|
79
79
|
|
|
80
|
-
<script type="module" crossorigin src="/assets/miniChat-
|
|
80
|
+
<script type="module" crossorigin src="/assets/miniChat-xjOkZhpT.js"></script>
|
|
81
|
+
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-P2Xu9kJm.js">
|
|
81
82
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
82
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
83
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-
|
|
84
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-
|
|
85
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
86
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
87
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
83
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
84
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-mjIpsk3N.js">
|
|
85
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-BMjl5Y5W.js">
|
|
86
|
+
<link rel="modulepreload" crossorigin href="/assets/reasoning-projection-client-BEhVknv9.js">
|
|
87
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-DKZOpfzo.js">
|
|
88
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
89
|
+
<link rel="modulepreload" crossorigin href="/assets/platform-DMsFWy1a.js">
|
|
90
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-DovfbQPm.js">
|
|
91
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-D4pbpNKN.js">
|
|
89
92
|
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CzHs0bHY.js">
|
|
90
93
|
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-vDaAPGfl.js">
|
|
91
94
|
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
|
|
92
95
|
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
|
|
93
96
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
94
97
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
98
|
+
<link rel="modulepreload" crossorigin href="/assets/useMobileHtmlPreviewStore-C03uVLfX.js">
|
|
99
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-BF882_0b.js">
|
|
96
100
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
|
|
97
101
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
98
102
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-Y_YoRHtC.js">
|
|
99
103
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B-Wpqq5J.js">
|
|
100
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-
|
|
104
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-D9l0crnM.js">
|
|
101
105
|
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
102
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
103
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
104
|
-
<link rel="modulepreload" crossorigin href="/assets/platform-Dids8J9D.js">
|
|
106
|
+
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
107
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-CL7EVzOG.js">
|
|
105
108
|
<link rel="modulepreload" crossorigin href="/assets/runtime-ead7P81A.js">
|
|
106
|
-
<link rel="modulepreload" crossorigin href="/assets/bootstrap-
|
|
107
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
108
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
109
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
110
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
111
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
112
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
113
|
-
<link rel="
|
|
109
|
+
<link rel="modulepreload" crossorigin href="/assets/bootstrap-BhC95qVC.js">
|
|
110
|
+
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
111
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-B1mApXwC.js">
|
|
112
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-BXKIVBPo.js">
|
|
113
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-DMY1k1af.js">
|
|
114
|
+
<link rel="modulepreload" crossorigin href="/assets/types-9U-qp6Dn.js">
|
|
115
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-gTKxaGbj.js">
|
|
116
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-DpErLDXn.js">
|
|
117
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-DySpB2Ms.js">
|
|
118
|
+
<link rel="stylesheet" crossorigin href="/assets/src-ByI2s7WK.css">
|
|
114
119
|
</head>
|
|
115
120
|
<body class="h-full bg-background text-foreground">
|
|
116
121
|
<div id="root" class="h-full">
|
package/dist/mobile.html
CHANGED
|
@@ -64,40 +64,12 @@
|
|
|
64
64
|
</script>
|
|
65
65
|
|
|
66
66
|
<style>.dark #mobile-startup-logo img { filter: invert(1); }</style>
|
|
67
|
-
<script type="module" crossorigin src="/assets/mobile-
|
|
67
|
+
<script type="module" crossorigin src="/assets/mobile-8PDO4RhV.js"></script>
|
|
68
|
+
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-P2Xu9kJm.js">
|
|
68
69
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
69
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-Bh3htXtG.js">
|
|
70
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-ibQIZnws.js">
|
|
71
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-9B8F_rKW.js">
|
|
72
|
-
<link rel="modulepreload" crossorigin href="/assets/path-utils-HRmerlyU.js">
|
|
73
|
-
<link rel="modulepreload" crossorigin href="/assets/desktop-Brp3xDpd.js">
|
|
74
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-qQ2Rz26_.js">
|
|
75
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-DifJHAur.js">
|
|
76
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CzHs0bHY.js">
|
|
77
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-vDaAPGfl.js">
|
|
78
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
|
|
79
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
|
|
80
|
-
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
81
|
-
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
82
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-BsCfUWQw.js">
|
|
83
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
|
|
84
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
85
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-Y_YoRHtC.js">
|
|
86
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B-Wpqq5J.js">
|
|
87
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-BaEKb7SZ.js">
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
89
70
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
90
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
91
|
-
<link rel="
|
|
92
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-ead7P81A.js">
|
|
93
|
-
<link rel="modulepreload" crossorigin href="/assets/bootstrap-BzeQds0D.js">
|
|
94
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-BXf0a2VZ.js">
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-D4WGSMk-.js">
|
|
96
|
-
<link rel="modulepreload" crossorigin href="/assets/types-hxNDOWGs.js">
|
|
97
|
-
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-C1AUTwaK.js">
|
|
98
|
-
<link rel="modulepreload" crossorigin href="/assets/native-config-CGAqvpqz.js">
|
|
99
|
-
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-k2t218IT.js">
|
|
100
|
-
<link rel="stylesheet" crossorigin href="/assets/src-Bc4Nf__6.css">
|
|
71
|
+
<link rel="modulepreload" crossorigin href="/assets/mobile-network-bridge-B_h92A-9.js">
|
|
72
|
+
<link rel="stylesheet" crossorigin href="/assets/src-ByI2s7WK.css">
|
|
101
73
|
</head>
|
|
102
74
|
<body class="h-full bg-background text-foreground">
|
|
103
75
|
<div id="root" class="h-full">
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -119,6 +119,7 @@ import { createRemoteClientAuthRuntime } from './lib/client-auth/remote-clients.
|
|
|
119
119
|
import { createHostUpdateRuntime } from './lib/host-update/runtime.js';
|
|
120
120
|
import { createCliUpdateAdapter } from './lib/host-update/cli.js';
|
|
121
121
|
import { attachRemoteDesktop } from './lib/remote-desktop/runtime.js';
|
|
122
|
+
import { attachGuiNetwork } from './lib/gui-network/runtime.js';
|
|
122
123
|
import { getOrCreateInstallId } from './lib/package-manager.js';
|
|
123
124
|
import { applyRuntimeCorsHeaders } from './lib/request-cors.js';
|
|
124
125
|
import { createClientPairingRuntime } from './lib/client-auth/pairing.js';
|
|
@@ -1792,6 +1793,14 @@ async function main(options = {}) {
|
|
|
1792
1793
|
}, 0);
|
|
1793
1794
|
}
|
|
1794
1795
|
uiAuthController = bootstrapResult.uiAuthController;
|
|
1796
|
+
const guiNetworkRuntime = attachGuiNetwork({
|
|
1797
|
+
server, uiAuthController, isRequestOriginAllowed,
|
|
1798
|
+
isClientActive: async (id) => {
|
|
1799
|
+
const clients = await remoteClientAuthRuntime.listClients();
|
|
1800
|
+
return clients.some((client) => client.id === id && !client.revokedAt
|
|
1801
|
+
&& (!client.expiresAt || Date.parse(client.expiresAt) > Date.now()));
|
|
1802
|
+
},
|
|
1803
|
+
});
|
|
1795
1804
|
const remoteDesktopRuntime = attachRemoteDesktop({
|
|
1796
1805
|
app, server, adapter: options.remoteDesktopAdapter, uiAuthController, isRequestOriginAllowed,
|
|
1797
1806
|
isClientActive: async (id) => {
|
|
@@ -2099,6 +2108,7 @@ async function main(options = {}) {
|
|
|
2099
2108
|
}
|
|
2100
2109
|
realtimeProxyRuntime.stop();
|
|
2101
2110
|
remoteDesktopRuntime.stop();
|
|
2111
|
+
guiNetworkRuntime.stop();
|
|
2102
2112
|
liveActivityRefreshRuntime.dispose();
|
|
2103
2113
|
notificationTriggerRuntime.dispose();
|
|
2104
2114
|
if (relayReconcileTimer) clearInterval(relayReconcileTimer);
|
|
@@ -35,7 +35,7 @@ export default Plugin.define({
|
|
|
35
35
|
ctx.add(Page, { id: 'dashboard', title: 'Studio', icon: 'window-analytics', render: () => createComponent(Dashboard, {}) })
|
|
36
36
|
const open = () => {
|
|
37
37
|
const live = pages()
|
|
38
|
-
|
|
38
|
+
if (live.status === 'active' && live.value.open('dashboard')) return
|
|
39
39
|
ctx.toast.show({ title: ctx.t('unavailable'), variant: 'error' })
|
|
40
40
|
}
|
|
41
41
|
ctx.add(TitlebarItem, (): TitlebarContribution | undefined => {
|
|
@@ -46,14 +46,29 @@ export default Plugin.define({
|
|
|
46
46
|
pressed: live.status === 'active' && live.value.current() === 'dashboard', run: open,
|
|
47
47
|
}
|
|
48
48
|
})
|
|
49
|
-
|
|
49
|
+
ctx.add(Command, () => ({ id: 'dashboard', title: ctx.t('open'), enabled: pages().status === 'active', run: open }))
|
|
50
50
|
},
|
|
51
51
|
})
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
The host key is `JSON.stringify([pluginId, pageId])`; pass only your **local** page ID to `pages.open`. The API cannot open another plugin's page or override a host contract. It returns false if navigation is unavailable. Access `ctx.use(Pages)()` live when clicking; it can be inactive while a provider is unavailable.
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
Desktop/Web desktop layouts and VS Code use the main-content placement. New
|
|
57
|
+
Capacitor shells show registered pages as icon cards under Projects → Apps and
|
|
58
|
+
mount them in a mobile sheet. Keep the page registration on narrow layouts even
|
|
59
|
+
when hiding its desktop titlebar item. Registration itself does not navigate.
|
|
60
|
+
Use the live pages contract to determine availability rather than treating every
|
|
61
|
+
narrow layout as unsupported. Hosted mobile global pages remain unsupported.
|
|
62
|
+
|
|
63
|
+
Native mobile requires shell API 4, iOS 17+ or Android WebView proxy support, a
|
|
64
|
+
saved Relay pairing and an updated Host. A gateway is prepared at mobile startup
|
|
65
|
+
and switched to Relay before plugin code/setup; rendering stays local. Current
|
|
66
|
+
iOS 26.5 Simulator acceptance still fails for loopback IP literals, including with
|
|
67
|
+
a fresh data store. The supported native bridge therefore does not establish that
|
|
68
|
+
every HTTP(S)/WS(S) request follows Relay. Website CSP, CORS, framing policy and
|
|
69
|
+
authentication still apply. This does not cover WebRTC/UDP, native networking or
|
|
70
|
+
external-browser handoff, and is not a sandbox for arbitrary plugin code. Cleanup
|
|
71
|
+
must still release plugin timers, frames and subscriptions with their owner.
|
|
57
72
|
|
|
58
73
|
## Optional: embed an existing application
|
|
59
74
|
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Mobile GUI network egress
|
|
2
|
+
|
|
3
|
+
`runtime.js` owns `/api/gui-network/ws`: an authenticated, origin-checked TCP
|
|
4
|
+
multiplexer reached through the existing private Relay dispatcher. Target bytes
|
|
5
|
+
are opaque; the Host resolves the destination and dials TCP, while the phone
|
|
6
|
+
WebView owns website TLS, cookies and browser origin checks. Yuri credentials are
|
|
7
|
+
used only for the upgrade, never added to target traffic.
|
|
8
|
+
|
|
9
|
+
## Wire and ownership
|
|
10
|
+
|
|
11
|
+
- Version 1 starts with `ready`. Controls are `open`, `opened`, `credit`, `fin`,
|
|
12
|
+
`close`, `ping`, `pong`. Binary frames start with a big-endian uint32 stream ID.
|
|
13
|
+
- `ready.httpOrigin` optionally advertises `http://localhost:<listening-port>` for
|
|
14
|
+
browser-owned Host assets. Clients accept only that canonical HTTP origin, with
|
|
15
|
+
no credentials, path, query or fragment. Older Hosts can still carry GUI TCP;
|
|
16
|
+
built-in loopback URL previews require this field and fail without it.
|
|
17
|
+
- 16 KiB chunks, 128 KiB credit per direction/stream, 32 streams per connection,
|
|
18
|
+
eight authenticated connections per runtime. Credit returns only after the
|
|
19
|
+
next consumer's write completes. TCP half-close is distinct from reset.
|
|
20
|
+
- Connect timeout: 15 seconds; TCP idle timeout: 120 seconds; client silence:
|
|
21
|
+
60 seconds. Disconnect/shutdown destroys every destination owned by that WS.
|
|
22
|
+
- Host and UI Relay senders immediately flush this exact WS path through the
|
|
23
|
+
unchanged serialized E2EE chain. Both WS path and URL-token allowlists include it.
|
|
24
|
+
- Authentication is the existing paired-client or enabled owner session gate.
|
|
25
|
+
Paired-client revocation is rechecked periodically. Valid authenticated clients
|
|
26
|
+
can reach any valid hostname/port visible to this Host, including private and
|
|
27
|
+
loopback addresses; this endpoint has no per-plugin destination policy.
|
|
28
|
+
|
|
29
|
+
The client owner is `packages/ui/src/lib/gui-plugins/mobile-network.ts`. Its
|
|
30
|
+
native wire factory dials only the saved Relay endpoint using URLSession/OkHttp;
|
|
31
|
+
the existing TypeScript tunnel performs E2EE and multiplexing. It creates an
|
|
32
|
+
independent connection to the same Relay/Host identity, rather than installing a
|
|
33
|
+
WebView hostname bypass. Native sees ciphertext for this wire and bounded opaque
|
|
34
|
+
website bytes for its loopback SOCKS server. The main application tunnel remains
|
|
35
|
+
owned by the runtime.
|
|
36
|
+
|
|
37
|
+
## Native gateway lifecycle
|
|
38
|
+
|
|
39
|
+
`mobile-main.tsx` awaits `prepareMobileGuiNetwork()` before importing runtime
|
|
40
|
+
configuration or mounting the application. `prepare` installs a persistent local
|
|
41
|
+
SOCKS gateway. Without a GUI lease it forwards ordinary application TCP directly.
|
|
42
|
+
`capabilities.supported` means gateway preparation succeeded, not zero-bypass
|
|
43
|
+
network isolation.
|
|
44
|
+
|
|
45
|
+
Before GUI CJS/setup executes, `start` closes old gateway streams and switches
|
|
46
|
+
new streams to the Relay emitter. `start.direct` lists Yuri's own endpoints
|
|
47
|
+
(current Relay server, runtime origin, saved LAN candidates as `host:port`); the
|
|
48
|
+
gateway matches them at SOCKS connect time and forwards those streams directly,
|
|
49
|
+
so the application tunnel is never nested inside plugin egress. All other streams
|
|
50
|
+
use the plugin Relay channel, which the UI opens on the first plugin stream and
|
|
51
|
+
closes after 60 seconds idle. A lost channel fails only in-flight plugin streams;
|
|
52
|
+
the next stream reconnects with backoff while the lease and plugins stay loaded.
|
|
53
|
+
`stop` closes streams/wires and returns the gateway to ordinary application
|
|
54
|
+
forwarding; it does not uninstall the WebView proxy. Native owner destruction owns
|
|
55
|
+
final listener/proxy cleanup. The gateway shares the main iOS data store / Android
|
|
56
|
+
WebView process with ordinary app traffic; the direct list keeps that traffic off
|
|
57
|
+
the plugin channel. The goal is Host-equivalent reachability, not isolation.
|
|
58
|
+
|
|
59
|
+
`ui/src/lib/preview/mobile-html-network.ts` shares this owner between GUI setup and
|
|
60
|
+
built-in HTML previews. The last consumer releases the gateway. Built-in loopback
|
|
61
|
+
links register with `/api/preview/targets`, then load the authenticated Host proxy
|
|
62
|
+
URL through the same native SOCKS path. Website bytes still render on the phone.
|
|
63
|
+
|
|
64
|
+
## Coverage and limits
|
|
65
|
+
|
|
66
|
+
`runtime.test.js` exercises real auth/origin gates, half-close, byte fidelity,
|
|
67
|
+
credit and the Relay dispatcher. `native-ios.test.js` is opt-in via
|
|
68
|
+
`YURI_IOS_TEST_DEVICE` and `YURI_IOS_TEST_PRODUCTS` (Capacitor simulator build
|
|
69
|
+
products). It compiles production Swift into an isolated probe app, bundles the
|
|
70
|
+
production UI transport, and uses the real Relay server and Host E2EE with test
|
|
71
|
+
identities. It removes that app and stops its servers after running. It verifies
|
|
72
|
+
HTTP upload, WebSocket, nested iframe/dynamic script/fetch, HTTPS, failure after
|
|
73
|
+
the Host disconnects and ordinary networking after lease release. The six cases
|
|
74
|
+
combine `localhost` / `127.0.0.1` / `[::1]` with and without a pre-lease fetch
|
|
75
|
+
through the prepared gateway. Target HTTP/WS connections are matched against
|
|
76
|
+
actual Node Host outbound sockets; successful page loads alone do not prove routing.
|
|
77
|
+
Run native probes sequentially.
|
|
78
|
+
|
|
79
|
+
### Built-in URL preview acceptance (iOS 26.5, 2026-11-06)
|
|
80
|
+
|
|
81
|
+
The three additional `preview=true` cases pass for prewarmed `localhost`,
|
|
82
|
+
`127.0.0.1` and `[::1]`: production shared leases and URL mapping, real Host preview
|
|
83
|
+
proxy/auth, upload, WS, nested frames/scripts/fetch, HTTPS, Host-socket attribution,
|
|
84
|
+
failure after Relay loss and normal networking after final release. One shared
|
|
85
|
+
consumer is released early to verify the remaining HTML consumer retains egress.
|
|
86
|
+
Run these with `-t 'preview=true'`; filtering skips the six raw cases below, rather
|
|
87
|
+
than changing their acceptance status. Explicit IPv6 preview targets retain IPv6.
|
|
88
|
+
|
|
89
|
+
This is a scoped workaround for the built-in URL entry. Inline file documents and
|
|
90
|
+
arbitrary plugin JS are not globally rewritten, so the raw-IP bypass remains.
|
|
91
|
+
|
|
92
|
+
### Current failing acceptance (iOS 26.5, 2026-11-06)
|
|
93
|
+
|
|
94
|
+
| Target | Prewarm | Result |
|
|
95
|
+
| --- | --- | --- |
|
|
96
|
+
| `localhost` | No / Yes | Both passed: Host-socket attribution, disconnect and release recovery |
|
|
97
|
+
| `127.0.0.1` | No / Yes | Both failed: HTTP and WS bypass |
|
|
98
|
+
| `[::1]` | No / Yes | Both failed: HTTP and WS bypass |
|
|
99
|
+
|
|
100
|
+
All failing cases reach `/after-disconnect` directly after the Host stops.
|
|
101
|
+
`Cache-Control: no-store` and socket attribution exclude a cache-only explanation.
|
|
102
|
+
The persistent gateway fixed prewarmed `localhost`, but not loopback IP literals:
|
|
103
|
+
**2 passed, 4 failed**. The failing opt-in tests remain acceptance blockers,
|
|
104
|
+
not skipped/expected failures.
|
|
105
|
+
|
|
106
|
+
A separate native control created a new nonpersistent `WKWebsiteDataStore`, set
|
|
107
|
+
SOCKS to an unreachable loopback port with `allowFailover = false`, then created
|
|
108
|
+
the WKWebView and loaded local HTML. It used neither Capacitor nor Relay. HTTP/WS
|
|
109
|
+
to `localhost` failed; HTTP/WS to both loopback IP literals still reached the
|
|
110
|
+
target directly. This rules out Yuri's Relay and reuse of its default data store
|
|
111
|
+
as causes of this simulator result. A fresh container alone is not an evidenced
|
|
112
|
+
fix. Explicit match domains, a hostname proxy endpoint and HTTP CONNECT also
|
|
113
|
+
failed earlier controls; those experimental changes were removed.
|
|
114
|
+
|
|
115
|
+
These observations are from iOS 26.5 Simulator. Physical iOS behavior is still
|
|
116
|
+
unverified; no connected iPhone was available. Latest complete Android debug and
|
|
117
|
+
iOS simulator product builds passed, but Android has no device-network evidence.
|
|
118
|
+
|
|
119
|
+
This is a TCP/WebView proxy, not an OS VPN or a JavaScript sandbox. WebRTC/UDP,
|
|
120
|
+
native network APIs, external-browser handoff and connections created before the
|
|
121
|
+
proxy was installed are not an enforced all-network boundary. Independent plugin
|
|
122
|
+
containers and strict network isolation remain unfinished. See the mobile README
|
|
123
|
+
for scope and the GUI Provider documentation for activation and release ordering.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { expect, test, vi } from 'vitest';
|
|
2
|
+
import { execFile } from 'node:child_process';
|
|
3
|
+
import { promisify } from 'node:util';
|
|
4
|
+
import { cp, mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises';
|
|
5
|
+
import { tmpdir } from 'node:os';
|
|
6
|
+
import { dirname, join, resolve } from 'node:path';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
import crypto from 'node:crypto';
|
|
9
|
+
import http from 'node:http';
|
|
10
|
+
import net from 'node:net';
|
|
11
|
+
import { once } from 'node:events';
|
|
12
|
+
import express from 'express';
|
|
13
|
+
import { createProxyMiddleware, responseInterceptor } from 'http-proxy-middleware';
|
|
14
|
+
import { WebSocketServer } from 'ws';
|
|
15
|
+
import { createPrivateRelayServer } from '../../../../relay-server/src/index.js';
|
|
16
|
+
import { startRelayHost } from '../relay/host-client.js';
|
|
17
|
+
import { generateEcdhKeyPair, exportPublicKeyJwk } from '../relay/e2ee.js';
|
|
18
|
+
import { createUiAuth } from '../ui-auth/ui-auth.js';
|
|
19
|
+
import { createRequestSecurityRuntime } from '../security/request-security.js';
|
|
20
|
+
import { attachGuiNetwork } from './runtime.js';
|
|
21
|
+
import { createPreviewProxyRuntime } from '../preview/proxy-runtime.js';
|
|
22
|
+
|
|
23
|
+
const exec = promisify(execFile);
|
|
24
|
+
const device = process.env.YURI_IOS_TEST_DEVICE;
|
|
25
|
+
const products = process.env.YURI_IOS_TEST_PRODUCTS;
|
|
26
|
+
const cases = ['localhost', '127.0.0.1', '[::1]'].flatMap(targetHost => [
|
|
27
|
+
{ targetHost, prewarm: false, preview: false }, { targetHost, prewarm: true, preview: false },
|
|
28
|
+
{ targetHost, prewarm: true, preview: true },
|
|
29
|
+
]);
|
|
30
|
+
for (const { targetHost, prewarm, preview } of cases) {
|
|
31
|
+
test.skipIf(process.platform !== 'darwin' || !device || !products)(`real WKWebView routes ${targetHost} (prewarm=${prewarm}, preview=${preview}) through encrypted Relay and fails closed`, async () => {
|
|
32
|
+
const root = resolve(dirname(fileURLToPath(import.meta.url)), '../../../../..');
|
|
33
|
+
const work = await mkdtemp(join(tmpdir(), 'yuri-gui-network-'));
|
|
34
|
+
const app = join(work, 'GuiNetworkProbe.app');
|
|
35
|
+
const bundle = 'com.yuri.gui-network-regression';
|
|
36
|
+
const simctl = (...args) => exec('xcrun', ['simctl', ...args], { encoding: 'utf8', timeout: 100000, maxBuffer: 4 * 1024 * 1024 });
|
|
37
|
+
const relay = createPrivateRelayServer();
|
|
38
|
+
const requests = [];
|
|
39
|
+
const hostSockets = new Set();
|
|
40
|
+
const connect = net.Socket.prototype.connect;
|
|
41
|
+
const trackedConnect = vi.spyOn(net.Socket.prototype, 'connect').mockImplementation(function (...args) {
|
|
42
|
+
this.once('connect', () => {
|
|
43
|
+
const port = this.localPort;
|
|
44
|
+
hostSockets.add(port);
|
|
45
|
+
this.once('close', () => hostSockets.delete(port));
|
|
46
|
+
});
|
|
47
|
+
return connect.apply(this, args);
|
|
48
|
+
});
|
|
49
|
+
const origin = http.createServer(async (req, res) => {
|
|
50
|
+
requests.push({ path: req.url, relayed: hostSockets.has(req.socket.remotePort) });
|
|
51
|
+
res.setHeader('Access-Control-Allow-Origin', '*');
|
|
52
|
+
res.setHeader('Cache-Control', 'no-store');
|
|
53
|
+
if (req.url === '/disconnect') { res.end('bye'); setTimeout(() => host.stop(), 25); return; }
|
|
54
|
+
if (req.url === '/upload') { let bytes = 0; for await (const chunk of req) bytes += chunk.length; res.end(String(bytes)); return; }
|
|
55
|
+
res.setHeader('Content-Type', 'text/plain');
|
|
56
|
+
if (req.url === '/frame') { res.setHeader('Content-Type', 'text/html'); res.end(`<head></head><iframe src="/nested"></iframe><script>onmessage=e=>{if(e.data==='nested-pass')parent.postMessage(e.data,'*')}</script>`); }
|
|
57
|
+
else if (req.url === '/nested') { res.setHeader('Content-Type', 'text/html'); res.end(`<head></head><script src="/dynamic.js"></script>`); }
|
|
58
|
+
else if (req.url === '/dynamic.js') { res.setHeader('Content-Type', 'text/javascript'); res.end(`fetch('/resource').then(r=>r.text()).then(x=>parent.postMessage(x,'*'))`); }
|
|
59
|
+
else res.end('nested-pass');
|
|
60
|
+
});
|
|
61
|
+
const echoes = new WebSocketServer({ server: origin });
|
|
62
|
+
origin.on('upgrade', req => requests.push({ path: req.url, relayed: hostSockets.has(req.socket.remotePort) }));
|
|
63
|
+
echoes.on('connection', socket => socket.on('message', data => socket.send(data.toString())));
|
|
64
|
+
const pairedClient = { id: 'probe', authMethod: 'pairing', pairingId: 'probe-pairing', usesRelay: true };
|
|
65
|
+
const auth = createUiAuth({ requireClientAuth: true, clientAuthController: { listClients: async () => [pairedClient], authenticateBearerToken: async token => token === 'probe-client'
|
|
66
|
+
? { ok: true, clientId: 'probe', sessionToken: 'client:probe', client: pairedClient } : { ok: false } } });
|
|
67
|
+
const api = express(); api.post('/auth/url-token', auth.handleUrlAuthToken); api.use(auth.requireAuth);
|
|
68
|
+
const server = http.createServer(api);
|
|
69
|
+
const security = createRequestSecurityRuntime({ readSettingsFromDiskMigrated: async () => ({}) });
|
|
70
|
+
const network = attachGuiNetwork({ server, uiAuthController: auth, isRequestOriginAllowed: security.isRequestOriginAllowed });
|
|
71
|
+
if (preview) createPreviewProxyRuntime({ crypto, URL, createProxyMiddleware, responseInterceptor }).attach(api, {
|
|
72
|
+
server, express, uiAuthController: auth, isRequestOriginAllowed: security.isRequestOriginAllowed,
|
|
73
|
+
rejectWebSocketUpgrade: (socket, status) => socket.end(`HTTP/1.1 ${status} Rejected\r\n\r\n`),
|
|
74
|
+
});
|
|
75
|
+
let host;
|
|
76
|
+
try {
|
|
77
|
+
await relay.start();
|
|
78
|
+
server.listen(0, '127.0.0.1'); await once(server, 'listening');
|
|
79
|
+
origin.listen(0, targetHost === '[::1]' ? '::1' : '127.0.0.1'); await once(origin, 'listening');
|
|
80
|
+
const enc = await generateEcdhKeyPair();
|
|
81
|
+
const sign = crypto.generateKeyPairSync('ec', { namedCurve: 'P-256' });
|
|
82
|
+
const pub = sign.publicKey.export({ format: 'jwk' });
|
|
83
|
+
const canonical = JSON.stringify({ crv: pub.crv, kty: pub.kty, x: pub.x, y: pub.y });
|
|
84
|
+
const serverId = crypto.createHash('sha256').update(canonical).digest('base64url');
|
|
85
|
+
const hostEncPubJwk = await exportPublicKeyJwk(enc.publicKey);
|
|
86
|
+
const identity = { serverId, hostEncPubJwk, hostEncPrivateKey: enc.privateKey, signRelayAuth: (role, connectionId) => {
|
|
87
|
+
const ts = Date.now();
|
|
88
|
+
return { ts, pk: Buffer.from(canonical).toString('base64url'), sig: crypto.sign('SHA256', Buffer.from(`${ts}.${serverId}.${role}.${connectionId ?? ''}`), { key: sign.privateKey, dsaEncoding: 'ieee-p1363' }).toString('base64url') };
|
|
89
|
+
} };
|
|
90
|
+
host = startRelayHost({ relayUrl: relay.wsUrl, identity, authorizeRequest: auth.authorizeRelayRequest, getLocalPort: () => server.address().port, onStatus() {}, logger: { warn() {}, info() {} } });
|
|
91
|
+
await mkdir(join(app, 'Frameworks'), { recursive: true });
|
|
92
|
+
for (const [directory, name] of [['Capacitor', 'Capacitor'], ['CapacitorCordova', 'Cordova']]) {
|
|
93
|
+
await cp(join(products, directory, `${name}.framework`), join(app, 'Frameworks', `${name}.framework`), { recursive: true });
|
|
94
|
+
}
|
|
95
|
+
const sdk = (await exec('xcrun', ['--sdk', 'iphonesimulator', '--show-sdk-path'])).stdout.trim();
|
|
96
|
+
await exec('xcrun', ['--sdk', 'iphonesimulator', 'swiftc', '-sdk', sdk, '-target', 'arm64-apple-ios17.0-simulator',
|
|
97
|
+
'-F', join(app, 'Frameworks'), '-framework', 'Capacitor', '-framework', 'Cordova', '-Xlinker', '-rpath', '-Xlinker', '@executable_path/Frameworks',
|
|
98
|
+
join(root, 'packages/mobile/ios/App/App/YuriGuiNetworkPlugin.swift'), join(root, 'packages/mobile/test/gui-network-ios-probe.swift'), '-o', join(app, 'GuiNetworkProbe')]);
|
|
99
|
+
await mkdir(join(app, 'public'));
|
|
100
|
+
await exec('bun', [join(root, 'packages/mobile/test/gui-network-probe-build.mjs'), join(app, 'public')]);
|
|
101
|
+
const config = { relayUrl: relay.wsUrl, serverId, hostEncPubJwk, target: `http://${targetHost}:${origin.address().port}`, prewarm, preview };
|
|
102
|
+
await writeFile(join(app, 'public/index.html'), `<!doctype html><html><body><script>window.guiProbe=${JSON.stringify(config)}</script><script type="module" src="probe.js"></script></body></html>`);
|
|
103
|
+
await writeFile(join(app, 'capacitor.config.json'), JSON.stringify({ appId: bundle, appName: 'GUI network probe', webDir: 'public', packageClassList: [] }));
|
|
104
|
+
await writeFile(join(app, 'config.xml'), `<widget id="${bundle}" version="1.0.0"/>`);
|
|
105
|
+
await writeFile(join(app, 'Info.plist'), `<?xml version="1.0"?><plist version="1.0"><dict><key>CFBundleIdentifier</key><string>${bundle}</string><key>CFBundleExecutable</key><string>GuiNetworkProbe</string><key>CFBundlePackageType</key><string>APPL</string><key>CFBundleVersion</key><string>1</string><key>UILaunchScreen</key><dict/><key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/></dict></dict></plist>`);
|
|
106
|
+
await simctl('install', device, app);
|
|
107
|
+
let output;
|
|
108
|
+
try { output = (await simctl('launch', '--console', device, bundle)).stdout; }
|
|
109
|
+
catch (error) { throw new Error(`probe failed: ${(error.stdout ?? '').split('\n').filter(line => line.includes('GUI_NETWORK_PROBE')).join('\n')}\n${error.stderr ?? ''}`); }
|
|
110
|
+
const stages = output.split('\n').filter(line => line.includes('GUI_NETWORK_PROBE'));
|
|
111
|
+
console.log(stages.join('\n'));
|
|
112
|
+
expect.soft(requests.filter(request => !['/prewarm', '/after-release'].includes(request.path)), 'every active-lease request must originate at the Host TCP gateway').not.toEqual(expect.arrayContaining([expect.objectContaining({ relayed: false })]));
|
|
113
|
+
expect(stages).toContain('GUI_NETWORK_PROBE PASSED');
|
|
114
|
+
expect(requests.map(request => request.path)).toEqual(expect.arrayContaining(['/upload', '/echo', '/frame', '/nested', '/dynamic.js', '/resource']));
|
|
115
|
+
expect(requests.map(request => request.path)).not.toContain('/after-disconnect');
|
|
116
|
+
expect(requests).toContainEqual({ path: '/after-release', relayed: false });
|
|
117
|
+
} finally {
|
|
118
|
+
try { await simctl('uninstall', device, bundle); } catch { /* The probe may not have installed. */ }
|
|
119
|
+
network.stop(); host?.stop(); await relay.stop(); auth.dispose();
|
|
120
|
+
for (const client of echoes.clients) client.terminate(); echoes.close();
|
|
121
|
+
server.closeAllConnections(); origin.closeAllConnections();
|
|
122
|
+
await Promise.all([new Promise(resolve => server.close(resolve)), new Promise(resolve => origin.close(resolve))]);
|
|
123
|
+
trackedConnect.mockRestore();
|
|
124
|
+
await rm(work, { recursive: true, force: true });
|
|
125
|
+
}
|
|
126
|
+
}, 180000);
|
|
127
|
+
}
|