@yuriai/web 0.2.38-beta.2 → 0.2.38-beta.4

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 (216) hide show
  1. package/dist/assets/{AgentAvatar-DNVD6VCV.js → AgentAvatar-CjZAr6nn.js} +1 -1
  2. package/dist/assets/AssistantContactStatus-DoZk9r1D.js +3 -0
  3. package/dist/assets/AssistantUnreadBadge-BJHZUf6Z.js +1 -0
  4. package/dist/assets/AssistantView-DkjXm6xL.js +1 -0
  5. package/dist/assets/DiagramView-Byel_g4U.js +1 -0
  6. package/dist/assets/{FadeInOnReveal-CK7jBcu4.js → FadeInOnReveal-BrPG6IFE.js} +1 -1
  7. package/dist/assets/GuiPluginPage-C6iXAYM8.js +1 -0
  8. package/dist/assets/GuiPluginSurface-DPXPl4xG.js +1 -0
  9. package/dist/assets/GuiPluginWindow-BdtIwEmZ.js +1 -0
  10. package/dist/assets/{Icon-DsN23fuV.js → Icon-C5rHjO1K.js} +1 -1
  11. package/dist/assets/ImageLoadingPlaceholder-Cdj2zS3j.js +1 -0
  12. package/dist/assets/LoadingImage-Gh9OduKR.js +1 -0
  13. package/dist/assets/MarkdownRenderer-DErp8UoS.js +2 -0
  14. package/dist/assets/{MarkdownRendererImpl-ecACjpZw.js → MarkdownRendererImpl-H41Q6Ds9.js} +3 -3
  15. package/dist/assets/MarkstreamRendererImpl-CJcHC4Ts.js +3 -0
  16. package/dist/assets/MobileDetailNavigation-fdYiFD76.js +1 -0
  17. package/dist/assets/MobileResizableSheet-DDzgYZmt.js +1 -0
  18. package/dist/assets/MobileShareBridge-BNPPhHGf.js +3 -0
  19. package/dist/assets/MobileTabPageHeader-ZZPrTJl4.js +2 -0
  20. package/dist/assets/MultiRunWindow-DoeszXM5.js +1 -0
  21. package/dist/assets/OnboardingScreen-BrYqOlrO.js +1 -0
  22. package/dist/assets/{OverlayScrollbar-BLhv7Nq-.js → OverlayScrollbar-8lCP3DZq.js} +1 -1
  23. package/dist/assets/SettingsView-UuXi7Uya.js +29 -0
  24. package/dist/assets/SettingsWindow-DIYoXakh.js +1 -0
  25. package/dist/assets/SetupTourDialog-BF50uUTW.js +1 -0
  26. package/dist/assets/TerminalView-uVsRpvjV.js +8 -0
  27. package/dist/assets/ToolOutputDialog-Bz23N8ob.js +10 -0
  28. package/dist/assets/VoiceSettings-DbbeM4JG.js +2 -0
  29. package/dist/assets/YuriLogo-DcoYyXzq.js +1 -0
  30. package/dist/assets/YuriWordmark-Dlsq3scd.js +1 -0
  31. package/dist/assets/appThemeRegistry-DE7vwd6j.js +1 -0
  32. package/dist/assets/{appearance--vFosLNi.js → appearance-DFsI3pnP.js} +1 -1
  33. package/dist/assets/{assistant-attachment-cache-C-SlEpSB.js → assistant-attachment-cache-Cmzt4xXE.js} +1 -1
  34. package/dist/assets/bootstrap-BhC95qVC.js +1 -0
  35. package/dist/assets/{capgoAdapter-DceVw3SM.js → capgoAdapter-BPZyUAQO.js} +1 -1
  36. package/dist/assets/{checkbox-CJsiyoER.js → checkbox-Dgn0NjAK.js} +1 -1
  37. package/dist/assets/{collapsible-B3zojUm2.js → collapsible-DbkDwHwV.js} +1 -1
  38. package/dist/assets/{context-menu-DFRg1NJF.js → context-menu-HomYNhkr.js} +1 -1
  39. package/dist/assets/desktopHosts-DovfbQPm.js +1 -0
  40. package/dist/assets/desktopRelayRestore-D4pbpNKN.js +1 -0
  41. package/dist/assets/device-DNG0cNwQ.js +2 -0
  42. package/dist/assets/{diagram-OTF8YAve.js → diagram-if-ktgjK.js} +1 -1
  43. package/dist/assets/dialog-0fjbRGoX.js +1 -0
  44. package/dist/assets/{es-CrVDn7XV.js → es-30Wqm-Bx.js} +1 -1
  45. package/dist/assets/{fileMentionTouchSelection-CorehkTj.js → fileMentionTouchSelection-OwF_hr-t.js} +1 -1
  46. package/dist/assets/{fileQueries-BaEKb7SZ.js → fileQueries-D9l0crnM.js} +1 -1
  47. package/dist/assets/fileReferenceActions-BRF8f7uA.js +1 -0
  48. package/dist/assets/{fileReferenceParser-BayaidRM.js → fileReferenceParser-1HHDBUum.js} +1 -1
  49. package/dist/assets/{fr-CCwt5AOu.js → fr-BbWLXNYa.js} +1 -1
  50. package/dist/assets/{gitApi-C6rhS4rG.js → gitApi-dAPSCbXA.js} +8 -8
  51. package/dist/assets/gitApiHttp-B1mApXwC.js +9 -0
  52. package/dist/assets/{gui-CFdPKvfq.js → gui-DN2sVP96.js} +1 -1
  53. package/dist/assets/{historyImportQueries-BrhVXQhP.js → historyImportQueries-DkB2_92i.js} +1 -1
  54. package/dist/assets/host-kMLXU0hK.js +1 -0
  55. package/dist/assets/i18n-BU14awhU.js +1 -0
  56. package/dist/assets/image-loading-DEXNCcCm.js +1 -0
  57. package/dist/assets/{input-B7-PmgcW.js → input-DYmLJuhI.js} +1 -1
  58. package/dist/assets/insertionBoundaries-CYfwgLf1.js +1 -0
  59. package/dist/assets/{ja-BfwjUNPc.js → ja-BI7m9bgW.js} +1 -1
  60. package/dist/assets/{ko-CZQZFkal.js → ko-B89SVFZa.js} +1 -1
  61. package/dist/assets/main-CaueNFt7.js +169 -0
  62. package/dist/assets/main-DrIci_pj.js +2 -0
  63. package/dist/assets/{markdownHeightCache-DlRC53XG.js → markdownHeightCache-D8yqNy2h.js} +1 -1
  64. package/dist/assets/mcpQueries-DO2TKARf.js +1 -0
  65. package/dist/assets/miniChat-BTI2ObZ2.js +2 -0
  66. package/dist/assets/mobile-Cf_sQtW6.js +2 -0
  67. package/dist/assets/mobile-html-network-CsjZ_Ur0.js +2 -0
  68. package/dist/assets/mobile-network-bridge-B_h92A-9.js +1 -0
  69. package/dist/assets/mobileBackNavigation-DxG3cz8q.js +1 -0
  70. package/dist/assets/mobileConnections-CK4dMDCg.js +2 -0
  71. package/dist/assets/modulepreload-polyfill-P2Xu9kJm.js +1 -0
  72. package/dist/assets/multirun-Cd2-PUEk.js +3 -0
  73. package/dist/assets/native-config-C_nB8tLu.js +1 -0
  74. package/dist/assets/pages-CYkE04ml.js +1 -0
  75. package/dist/assets/path-utils-jGozTg9d.js +1 -0
  76. package/dist/assets/pathNormalization-ewtPqJWn.js +1 -0
  77. package/dist/assets/{pl-B6C3vXqv.js → pl-B55Lf3HE.js} +1 -1
  78. package/dist/assets/platform-DMsFWy1a.js +1 -0
  79. package/dist/assets/projectMeta-apTlCt8d.js +1 -0
  80. package/dist/assets/{pt-BR-BUDTNopP.js → pt-BR-CFZj-ECy.js} +1 -1
  81. package/dist/assets/pwa-wwvKWKhX.js +2 -0
  82. package/dist/assets/queue-abort-optimistic-BnynR3mX.js +1 -0
  83. package/dist/assets/react-B-mb0CtR.js +1 -0
  84. package/dist/assets/readiness-0tATst8c.js +1 -0
  85. package/dist/assets/reasoning-projection-client-BEhVknv9.js +1 -0
  86. package/dist/assets/renderElectronMiniChatApp-xQdVdaLB.js +2 -0
  87. package/dist/assets/renderMobileApp-D95eHLRE.js +29 -0
  88. package/dist/assets/{runtime-auth-Bh3htXtG.js → runtime-auth-mjIpsk3N.js} +1 -1
  89. package/dist/assets/runtime-fetch-DKZOpfzo.js +1 -0
  90. package/dist/assets/runtime-file-download-DMY1k1af.js +1 -0
  91. package/dist/assets/runtime-file-resource-CL7EVzOG.js +2 -0
  92. package/dist/assets/runtime-switch-BMjl5Y5W.js +1 -0
  93. package/dist/assets/runtimeAPIRegistry-C2VogTny.js +1 -0
  94. package/dist/assets/runtimeConfig-BfzZj4LK.js +2 -0
  95. package/dist/assets/runtimeEndpointReset-CjKHwDvh.js +149 -0
  96. package/dist/assets/{scheduledTaskNavigation-C8tBjNoP.js → scheduledTaskNavigation-PH-etFzZ.js} +1 -1
  97. package/dist/assets/select-B9Km1pk9.js +1 -0
  98. package/dist/assets/sessionLookup-8gdDN8Tx.js +1 -0
  99. package/dist/assets/sortable-tabs-strip-BU0Puyy0.js +1 -0
  100. package/dist/assets/{speechSettingsQueries-CJqxaC2Q.js → speechSettingsQueries-C9LCquzH.js} +1 -1
  101. package/dist/assets/src-BFQde2OG.css +2 -0
  102. package/dist/assets/{store-Myt_Fv8d.js → store-BNNIbb4k.js} +3 -3
  103. package/dist/assets/terminalApi-BXKIVBPo.js +1 -0
  104. package/dist/assets/textarea-bB6aD-GS.js +1 -0
  105. package/dist/assets/{tooltip-D5Xeh6py.js → tooltip-DgWHbKz2.js} +1 -1
  106. package/dist/assets/{types-DXSnGXVb.js → types-CnJjf4tP.js} +1 -1
  107. package/dist/assets/{uk-Ct9y1Y2t.js → uk-CS2c4Dtj.js} +1 -1
  108. package/dist/assets/{useAppFontEffects-Blo2lGTo.js → useAppFontEffects-DJp1u2mc.js} +35 -35
  109. package/dist/assets/{useAssistantUIStore-CVSFSgJV.js → useAssistantUIStore-Du8puXWz.js} +1 -1
  110. package/dist/assets/useDesktopWindowControlsLayout-DOmb8EnW.js +1 -0
  111. package/dist/assets/useDictation-CyWtsxSn.js +1 -0
  112. package/dist/assets/useEffectiveDirectory-DmGrksdp.js +1 -0
  113. package/dist/assets/{useFontPreferences-DqBoLHp6.js → useFontPreferences-CAdw6cBK.js} +1 -1
  114. package/dist/assets/useMobileHtmlPreviewStore-C03uVLfX.js +1 -0
  115. package/dist/assets/useMobileNavigationStore-CJBLQxTz.js +17 -0
  116. package/dist/assets/usePluginsStore-El9Tx9Q3.js +1 -0
  117. package/dist/assets/useStreamingTextThrottle-BbUkYQhX.js +1 -0
  118. package/dist/assets/useUIStore-BF882_0b.js +1 -0
  119. package/dist/assets/useWorkerHighlightedLines-CZ8YG-Hi.js +7 -0
  120. package/dist/assets/{zh-CN-BegPizz4.js → zh-CN-BpiwUUs4.js} +1 -1
  121. package/dist/assets/{zh-TW-4xftqQQG.js → zh-TW-Bl9CnlGi.js} +1 -1
  122. package/dist/index.html +26 -21
  123. package/dist/mini-chat.html +26 -21
  124. package/dist/mobile.html +4 -32
  125. package/package.json +1 -1
  126. package/server/index.js +10 -0
  127. package/server/lib/gui-customization/DOCUMENTATION.md +2 -0
  128. package/server/lib/gui-customization/skill/SKILL.md +1 -1
  129. package/server/lib/gui-customization/skill/references/global-pages.md +19 -4
  130. package/server/lib/gui-customization/skill/references/gui-api.md +1 -1
  131. package/server/lib/gui-customization/skill/references/icons.md +35 -8
  132. package/server/lib/gui-network/DOCUMENTATION.md +123 -0
  133. package/server/lib/gui-network/native-ios.test.js +127 -0
  134. package/server/lib/gui-network/runtime.js +146 -0
  135. package/server/lib/gui-network/runtime.test.js +129 -0
  136. package/server/lib/preview/proxy-runtime.js +1 -1
  137. package/server/lib/preview/proxy-runtime.test.js +4 -0
  138. package/server/lib/relay/DOCUMENTATION.md +5 -0
  139. package/server/lib/relay/tunnel-host.js +2 -1
  140. package/server/lib/ui-auth/DOCUMENTATION.md +8 -0
  141. package/server/lib/ui-auth/ui-auth.js +6 -0
  142. package/server/lib/ui-auth/ui-auth.test.js +10 -0
  143. package/dist/assets/AssistantContactStatus-C5zpVdGa.js +0 -3
  144. package/dist/assets/AssistantUnreadBadge-7KpCtnd3.js +0 -1
  145. package/dist/assets/AssistantView-BZU6TlwK.js +0 -1
  146. package/dist/assets/DiagramView-CXgsVJ3A.js +0 -1
  147. package/dist/assets/GuiPluginSurface-Bk01hnV6.js +0 -1
  148. package/dist/assets/GuiPluginWindow-BgOCEgEb.js +0 -1
  149. package/dist/assets/ImageLoadingPlaceholder-MfVzv_y1.js +0 -1
  150. package/dist/assets/LoadingImage-MAgXscGl.js +0 -1
  151. package/dist/assets/MarkdownRenderer-DswMDaKf.js +0 -2
  152. package/dist/assets/MarkstreamRendererImpl-Bqbq2VPn.js +0 -3
  153. package/dist/assets/MobileDetailNavigation-CXcMdlRH.js +0 -1
  154. package/dist/assets/MobileResizableSheet-D_PnyzR0.js +0 -1
  155. package/dist/assets/MobileShareBridge-DfgyncNh.js +0 -4
  156. package/dist/assets/MobileTabPageHeader-Bm8nYrzH.js +0 -2
  157. package/dist/assets/MultiRunWindow-CvCgKiyV.js +0 -1
  158. package/dist/assets/OnboardingScreen-BwJ3iMGY.js +0 -1
  159. package/dist/assets/SettingsView-DGduWj3I.js +0 -29
  160. package/dist/assets/SettingsWindow-BM8abllV.js +0 -1
  161. package/dist/assets/SetupTourDialog-vmNGHNXl.js +0 -1
  162. package/dist/assets/TerminalView-BZObkK0H.js +0 -8
  163. package/dist/assets/ToolOutputDialog-CbGuK5bP.css +0 -1
  164. package/dist/assets/ToolOutputDialog-D_CH2A0-.js +0 -10
  165. package/dist/assets/VoiceSettings-Ru8tm8eq.js +0 -2
  166. package/dist/assets/YuriLogo-C5K_9jSK.js +0 -1
  167. package/dist/assets/YuriWordmark-CJ8qJ14A.js +0 -1
  168. package/dist/assets/appThemeRegistry-CcdIpK3S.js +0 -1
  169. package/dist/assets/bootstrap-BzeQds0D.js +0 -9
  170. package/dist/assets/desktop-Brp3xDpd.js +0 -1
  171. package/dist/assets/desktopHosts-qQ2Rz26_.js +0 -1
  172. package/dist/assets/desktopRelayRestore-DifJHAur.js +0 -1
  173. package/dist/assets/device-Db_TcRdX.js +0 -2
  174. package/dist/assets/dialog-CgtwKUKd.js +0 -1
  175. package/dist/assets/fileReferenceActions-D06_lyuL.js +0 -1
  176. package/dist/assets/host-8TDDnZXo.js +0 -1
  177. package/dist/assets/image-loading-D1DfK_bJ.js +0 -1
  178. package/dist/assets/insertionBoundaries-B-ncem5c.js +0 -1
  179. package/dist/assets/main-BMvwUUi4.js +0 -2
  180. package/dist/assets/main-Chq1F31E.js +0 -169
  181. package/dist/assets/mcpQueries-BRFr-Gfm.js +0 -1
  182. package/dist/assets/miniChat-C3vDY9WG.js +0 -2
  183. package/dist/assets/mobile-B2KYTY1c.js +0 -2
  184. package/dist/assets/mobileBackNavigation-ByUDCJde.js +0 -1
  185. package/dist/assets/multirun-F1yOJb2_.js +0 -3
  186. package/dist/assets/native-config-C2j59qnN.js +0 -1
  187. package/dist/assets/path-utils-HRmerlyU.js +0 -1
  188. package/dist/assets/platform-Dids8J9D.js +0 -1
  189. package/dist/assets/projectMeta-C08trpZE.js +0 -1
  190. package/dist/assets/pwa-C956NPB0.js +0 -2
  191. package/dist/assets/queue-abort-optimistic-CWyeG_sJ.js +0 -1
  192. package/dist/assets/react-a6PrrNTm.js +0 -1
  193. package/dist/assets/readiness-CUPPcONt.js +0 -1
  194. package/dist/assets/renderElectronMiniChatApp-DNK4YFG8.js +0 -2
  195. package/dist/assets/renderMobileApp-DagPx3n0.js +0 -28
  196. package/dist/assets/runtime-fetch-9B8F_rKW.js +0 -1
  197. package/dist/assets/runtime-file-download-D4WGSMk-.js +0 -1
  198. package/dist/assets/runtime-file-resource-tDTBpJT_.js +0 -2
  199. package/dist/assets/runtime-switch-ibQIZnws.js +0 -1
  200. package/dist/assets/runtimeConfig-D_McrwNd.js +0 -2
  201. package/dist/assets/runtimeEndpointReset-D-aHzKPN.js +0 -149
  202. package/dist/assets/select-DoYUmvbX.js +0 -1
  203. package/dist/assets/sessionLookup-D2JIMvDo.js +0 -1
  204. package/dist/assets/sortable-tabs-strip-B-W7ADKC.js +0 -1
  205. package/dist/assets/src-CzDk_0Pp.css +0 -2
  206. package/dist/assets/terminalApi-BXf0a2VZ.js +0 -1
  207. package/dist/assets/textarea-BCTNmuPZ.js +0 -1
  208. package/dist/assets/url-DO6Zrx1P.js +0 -1
  209. package/dist/assets/useDesktopWindowControlsLayout-YAxhtSDl.js +0 -1
  210. package/dist/assets/useDictation-Dp2Y3X49.js +0 -1
  211. package/dist/assets/useEffectiveDirectory-Uc8I6wXt.js +0 -1
  212. package/dist/assets/useMobileNavigationStore-SCjA_7jP.js +0 -17
  213. package/dist/assets/usePluginsStore-DfksbEZx.js +0 -1
  214. package/dist/assets/useStreamingTextThrottle-BY1Ynoj1.js +0 -1
  215. package/dist/assets/useUIStore-BsCfUWQw.js +0 -1
  216. package/dist/assets/useWorkerHighlightedLines-DAxMD3fK.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-BMvwUUi4.js"></script>
574
+ <script type="module" crossorigin src="/assets/main-DrIci_pj.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/runtime-auth-Bh3htXtG.js">
577
- <link rel="modulepreload" crossorigin href="/assets/runtime-switch-ibQIZnws.js">
578
- <link rel="modulepreload" crossorigin href="/assets/runtime-fetch-9B8F_rKW.js">
579
- <link rel="modulepreload" crossorigin href="/assets/path-utils-HRmerlyU.js">
580
- <link rel="modulepreload" crossorigin href="/assets/desktop-Brp3xDpd.js">
581
- <link rel="modulepreload" crossorigin href="/assets/desktopHosts-qQ2Rz26_.js">
582
- <link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-DifJHAur.js">
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/useUIStore-BsCfUWQw.js">
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-BaEKb7SZ.js">
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/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
597
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-tDTBpJT_.js">
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-BzeQds0D.js">
601
- <link rel="modulepreload" crossorigin href="/assets/terminalApi-BXf0a2VZ.js">
602
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-download-D4WGSMk-.js">
603
- <link rel="modulepreload" crossorigin href="/assets/types-DXSnGXVb.js">
604
- <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-DceVw3SM.js">
605
- <link rel="modulepreload" crossorigin href="/assets/native-config-C2j59qnN.js">
606
- <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-D_McrwNd.js">
607
- <link rel="stylesheet" crossorigin href="/assets/src-CzDk_0Pp.css">
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-CnJjf4tP.js">
609
+ <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-BPZyUAQO.js">
610
+ <link rel="modulepreload" crossorigin href="/assets/native-config-C_nB8tLu.js">
611
+ <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-BfzZj4LK.js">
612
+ <link rel="stylesheet" crossorigin href="/assets/src-BFQde2OG.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
@@ -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-C3vDY9WG.js"></script>
80
+ <script type="module" crossorigin src="/assets/miniChat-BTI2ObZ2.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/runtime-auth-Bh3htXtG.js">
83
- <link rel="modulepreload" crossorigin href="/assets/runtime-switch-ibQIZnws.js">
84
- <link rel="modulepreload" crossorigin href="/assets/runtime-fetch-9B8F_rKW.js">
85
- <link rel="modulepreload" crossorigin href="/assets/path-utils-HRmerlyU.js">
86
- <link rel="modulepreload" crossorigin href="/assets/desktop-Brp3xDpd.js">
87
- <link rel="modulepreload" crossorigin href="/assets/desktopHosts-qQ2Rz26_.js">
88
- <link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-DifJHAur.js">
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/useUIStore-BsCfUWQw.js">
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-BaEKb7SZ.js">
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/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
103
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-tDTBpJT_.js">
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-BzeQds0D.js">
107
- <link rel="modulepreload" crossorigin href="/assets/terminalApi-BXf0a2VZ.js">
108
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-download-D4WGSMk-.js">
109
- <link rel="modulepreload" crossorigin href="/assets/types-DXSnGXVb.js">
110
- <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-DceVw3SM.js">
111
- <link rel="modulepreload" crossorigin href="/assets/native-config-C2j59qnN.js">
112
- <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-D_McrwNd.js">
113
- <link rel="stylesheet" crossorigin href="/assets/src-CzDk_0Pp.css">
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-CnJjf4tP.js">
115
+ <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-BPZyUAQO.js">
116
+ <link rel="modulepreload" crossorigin href="/assets/native-config-C_nB8tLu.js">
117
+ <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-BfzZj4LK.js">
118
+ <link rel="stylesheet" crossorigin href="/assets/src-BFQde2OG.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-B2KYTY1c.js"></script>
67
+ <script type="module" crossorigin src="/assets/mobile-Cf_sQtW6.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/runtime-file-resource-tDTBpJT_.js">
91
- <link rel="modulepreload" crossorigin href="/assets/platform-Dids8J9D.js">
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-DXSnGXVb.js">
97
- <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-DceVw3SM.js">
98
- <link rel="modulepreload" crossorigin href="/assets/native-config-C2j59qnN.js">
99
- <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-D_McrwNd.js">
100
- <link rel="stylesheet" crossorigin href="/assets/src-CzDk_0Pp.css">
71
+ <link rel="modulepreload" crossorigin href="/assets/mobile-network-bridge-B_h92A-9.js">
72
+ <link rel="stylesheet" crossorigin href="/assets/src-BFQde2OG.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuriai/web",
3
- "version": "0.2.38-beta.2",
3
+ "version": "0.2.38-beta.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./server/index.js",
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);
@@ -23,6 +23,8 @@ unsupported; plugin markup, layout and behavior remain plugin-owned.
23
23
  `references/icons.md` distinguishes the upstream generated `IconName` union from
24
24
  Yuri's actual titlebar/sidebar renderer, lists their verified shared names and
25
25
  aliases, and separates entry icons from Settings artwork, file icons and branding.
26
+ It documents Yuri's direct `TitlebarItem.icon` SVG/data-URI string extension,
27
+ static-SVG validation, image fallback, SDK typing and portability boundary.
26
28
  It also documents same-document SVG symbol references, common sprite keys and the
27
29
  current DOM/version boundary without exposing the React Icon component. Update its
28
30
  shared-name list when the renderer or supported SDK catalog changes.
@@ -16,7 +16,7 @@ Use a standard OpenCode GUI plugin to change the running Yuri UI without modifyi
16
16
  - Themes, CSS, logos, Dock icons: [appearance](references/appearance.md).
17
17
  - Global main-content tabs and titlebar entries: [global pages](references/global-pages.md).
18
18
  - Widgets under Changes in the conversation's status column: [work-status widgets](references/work-status.md).
19
- - Entry/tab icons or icons inside plugin content: [icons](references/icons.md), including supported names, same-document SVG usage and artwork boundaries.
19
+ - Entry/tab icons or icons inside plugin content: [icons](references/icons.md), including direct SVG/data-URI icon strings, supported names, same-document SVG usage and artwork boundaries.
20
20
  - Custom file suffixes, parsers, inline/mobile previews and file icons: [file previews](references/file-previews.md).
21
21
  - Preview toolbar placement, PDF/PNG/HTML export and iframe snapshot boundaries: [preview actions and exports](references/preview-exports.md).
22
22
  - Panels, commands, settings, files, RPC, lifecycle, runtime support: [GUI API](references/gui-api.md).
@@ -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
- if (!ctx.layout.narrow() && live.status === 'active' && live.value.open('dashboard')) return
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
- ctx.add(Command, () => ({ id: 'dashboard', title: ctx.t('open'), enabled: !ctx.layout.narrow(), run: open }))
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
- Global pages and their entry points are for desktop/Web desktop layouts and VS Code. On mobile the pages contract is inactive and the page is not mounted; hide the titlebar item and disable its command when `ctx.layout.narrow()`. Use a file Panel for mobile file previews instead. Registration itself does not navigate.
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
 
@@ -74,7 +89,7 @@ Those message names, header and navigation rules form Runmark's service protocol
74
89
 
75
90
  ## Entry icon versus content branding
76
91
 
77
- Choose `TitlebarItem.icon` from the supported catalog names in [plugin entry icons](icons.md), which covers upstream `IconName`, Yuri's compatible names/aliases and fallback behavior. Set it on the entry itself; `yuri.page.icon` does not configure that entry. Top-level `package.json.icon` supplies artwork in Settings plugin details, not the global navigation entry. Application Logo/Dock branding uses `yuri.branding`; see [appearance](appearance.md).
92
+ Set `TitlebarItem.icon` directly to a built-in name, raw SVG or image data URI; [plugin entry icons](icons.md) documents Yuri's image-string extension, SDK typing, compatible names/aliases and fallback behavior. `yuri.page.icon` does not configure that entry. Top-level `package.json.icon` supplies artwork in Settings plugin details, not the global navigation entry. Application Logo/Dock branding uses `yuri.branding`; see [appearance](appearance.md).
78
93
 
79
94
  ## Verification
80
95
 
@@ -5,7 +5,7 @@ The supported contract is OpenCode GUI SDK **2.2.0**. Consult current official d
5
5
  ## Window APIs
6
6
 
7
7
  - `Command`: command palette and plugin management execution; hidden commands can be called by `ctx.commands.run`. No GUI shortcut registration or slash autocomplete yet.
8
- - `TitlebarItem`: global action/status, independent of a session; reactive label/title/icon/busy/pressed. Supported icon names and upstream/Yuri differences: [icons](icons.md).
8
+ - `TitlebarItem`: global action/status, independent of a session; reactive label/title/icon/busy/pressed. Direct SVG/data-URI icon strings, built-in names and upstream/Yuri differences: [icons](icons.md).
9
9
  - `Panel`: Solid `list/render`, reactive session/tab getters; file panels mount in existing file previews. An independent panel uses a dialog/mobile sheet, not upstream's full draggable workspace layout.
10
10
  - `LinkHandler`: match, exists and open file/custom links. Use `ctx.links.open({ href, base, session })` for navigation. Preserve workspace-relative identity; never resolve against a different session's directory.
11
11
  - `SettingsPage`: independent plugin settings pages; host `page/section` injection is unsupported.
@@ -1,10 +1,10 @@
1
1
  # Plugin icons
2
2
 
3
- Use this reference when choosing an entry icon or rendering icons inside plugin-owned Solid/DOM content. Icon names, package artwork, file icons and application branding are separate contracts. Use [plugin styles](plugin-styles.md) for the surrounding text and colors.
3
+ Use this reference when choosing an entry icon or rendering icons inside plugin-owned Solid/DOM content. Entry icons accept built-in names or self-contained image strings in Yuri. Package artwork, file icons and application branding are separate contracts. Use [plugin styles](plugin-styles.md) for the surrounding text and colors.
4
4
 
5
5
  ## Upstream contract
6
6
 
7
- OpenCode's `TitlebarItem.icon` is an optional `IconName`, imported as a **type** from `@opencode/plugin/gui`. Its value is a catalog name such as `globe`, not an SVG string, image URL, CSS class or component. The type is erased at runtime; it is not an exported array or an icon renderer.
7
+ OpenCode's `TitlebarItem.icon` is an optional `IconName`, imported as a **type** from `@opencode/plugin/gui`. Upstream defines it as a catalog name such as `globe`; Yuri additionally accepts image strings as documented below. The type is erased at runtime; it is not an exported array or an icon renderer.
8
8
 
9
9
  Upstream generates the SDK union from the application's icon catalog:
10
10
 
@@ -15,6 +15,33 @@ Upstream generates the SDK union from the application's icon catalog:
15
15
 
16
16
  Use the installed SDK's declaration for its exact version. The links above follow upstream development; a name accepted by a newer SDK is not proof that Yuri renders it.
17
17
 
18
+ ## Custom entry images in Yuri
19
+
20
+ Pass the artwork directly as the existing `TitlebarItem.icon` string. No resource registration, extra field, file path or dependency is needed:
21
+
22
+ ```js
23
+ const { Plugin, TitlebarItem } = require('@opencode/plugin/gui')
24
+
25
+ const icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#6b83d6" d="M3 3h18v18H3z"/></svg>'
26
+
27
+ module.exports = Plugin.define({
28
+ setup(ctx) {
29
+ ctx.add(TitlebarItem, {
30
+ id: 'website', label: 'Studio', icon,
31
+ run: () => ctx.system.openExternal('https://example.com'),
32
+ })
33
+ },
34
+ })
35
+ ```
36
+
37
+ The same field also accepts an SVG data URI (`data:image/svg+xml,` with percent-encoded SVG, or `data:image/svg+xml;base64,...`) or a base64 image data URI for PNG, JPEG, GIF, WebP, AVIF or ICO. Include the `data:image/...;base64,` prefix; bare base64 is not an image declaration. HTTPS URLs and local file paths are not loaded.
38
+
39
+ Yuri validates raw SVG and SVG data URIs with the existing static-SVG rules: a complete `<svg xmlns="http://www.w3.org/2000/svg">` root, at most 16 KiB UTF-8; static geometry, groups, defs, gradients, clip paths, masks, local `#id` references and title/description. Scripts, event attributes, inline `style`, external references, foreign content, DTDs and processing instructions are rejected. All icon strings are bounded to 2 MiB characters. Invalid artwork affects only its icon, not the entry or other plugin contributions.
40
+
41
+ SVG is normalized to a data URI; all custom images render through `<img>`, never injected markup. Images retain their own colors; `currentColor` and host CSS variables do not inherit into the image document. Use explicit artwork colors, or a built-in name for host-colored line icons. The host fits images into the existing 16px sidebar / 14px compact icon slot.
42
+
43
+ This is a **Yuri extension**, not portable upstream `IconName` behavior. Direct CJS needs no type workaround. In TypeScript, use a narrow assertion on this field only, e.g. `icon: svg as TitlebarContribution['icon']` with `import type { TitlebarItem as TitlebarContribution } from '@opencode/plugin/gui'`. Keep the rest of the contribution checked by the SDK. For plugins targeting both hosts, use a shared catalog name instead.
44
+
18
45
  ## Names supported by both hosts
19
46
 
20
47
  For a plugin targeting OpenCode and Yuri, choose from this verified intersection of the upstream SDK catalog and Yuri's current **TitlebarItem** renderer (including aliases):
@@ -54,11 +81,11 @@ module.exports = Plugin.define({
54
81
  })
55
82
  ```
56
83
 
57
- For typed reactive contributions, annotate the return type as in the [global-page example](global-pages.md); otherwise TypeScript can widen `icon` to `string`.
84
+ For typed reactive contributions using catalog names, annotate the return type as in the [global-page example](global-pages.md); otherwise TypeScript can widen `icon` to `string`.
58
85
 
59
86
  ## Yuri resolution and fallback
60
87
 
61
- Yuri resolves `TitlebarItem.icon` through these aliases first, then an exact key in its own sprite:
88
+ For built-in names, Yuri resolves `TitlebarItem.icon` through these aliases first, then an exact key in its own sprite:
62
89
 
63
90
  | SDK name | Yuri sprite key |
64
91
  | --- | --- |
@@ -70,7 +97,7 @@ Yuri resolves `TitlebarItem.icon` through these aliases first, then an exact key
70
97
 
71
98
  Yuri's sprite contains additional names, but those are not automatically valid upstream `IconName` values. Use the shared names above for portable SDK contributions rather than casting a Yuri-only name into the SDK type. For an unlisted name, check the installed SDK and target Yuri version before relying on it.
72
99
 
73
- - Missing or unknown name: Yuri keeps the entry label. Sidebar placement reserves an empty icon slot; titlebar placement renders text instead of an icon. It does not substitute package artwork or the upstream default download arrow.
100
+ - Missing/unknown name, rejected image or image load failure: Yuri keeps the entry label. Sidebar placement reserves an empty icon slot; titlebar placement renders text instead of an icon. It does not substitute package artwork or the upstream default download arrow. A changed image string can render again after failure.
74
101
  - `busy: true`: a loading spinner replaces the icon and disables an actionable entry.
75
102
  - Valid icon: titlebar placement shows the icon with a hover label; sidebar placement shows icon and text. Host styles control size and color.
76
103
  - Registering `yuri.page.icon` alone does not create or configure its navigation entry. Register `TitlebarItem` and set its `icon` separately, as in [global pages](global-pages.md).
@@ -121,14 +148,14 @@ These symbol IDs are current DOM implementation hooks, not an SDK icon-renderer
121
148
 
122
149
  | Surface | Contract |
123
150
  | --- | --- |
124
- | Global plugin page/tab navigation entry | `TitlebarItem.icon`: supported catalog name |
151
+ | Global plugin page/tab navigation entry | `TitlebarItem.icon`: supported catalog name, raw SVG or image data URI |
125
152
  | Plugin artwork in Settings plugin details | Top-level `package.json.icon`: validated image/data resource; not used by the global entry renderer |
126
153
  | Custom file extension icon | `yuri.file-icon`: SVG resource; see [file previews](file-previews.md) |
127
154
  | Application Logo / running macOS Dock icon | `yuri.branding`; see [appearance](appearance.md) |
128
155
  | Artwork inside plugin-owned page content | Render it in the page's own Solid/DOM content |
129
156
 
130
- The current entry contract has no custom-SVG/image field. Supplying an image URL as `TitlebarItem.icon`, or setting `package.json.icon`, does not add one.
157
+ Set entry artwork directly on `TitlebarItem.icon`; `package.json.icon` does not configure it. Remote image URLs and local paths are unsupported for this field.
131
158
 
132
159
  ## Verification
133
160
 
134
- Check the actual entry in each target placement: selected artwork, visible/hover label, `busy` spinner, missing-name fallback, and withdrawal when the plugin is disabled. SDK typechecking alone does not prove Yuri runtime support.
161
+ Check the actual entry in each target placement: selected artwork, visible/hover label, `busy` spinner, missing-name/rejected-image/load-failure fallback, reactive image replacement, and withdrawal when the plugin is disabled. SDK typechecking alone does not prove Yuri runtime support.
@@ -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.