@yuriai/web 0.2.28 → 0.2.29-beta.11

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 (291) hide show
  1. package/README.md +3 -1
  2. package/dist/assets/AgentAvatar-CR6dX_XT.js +1 -0
  3. package/dist/assets/AssistantContactStatus-B0bsfDtC.js +3 -0
  4. package/dist/assets/{AssistantUnreadBadge-DqThZdCe.js → AssistantUnreadBadge-D2z3wH6e.js} +1 -1
  5. package/dist/assets/{AssistantView-DPUDCXoY.js → AssistantView-1I_CxjRT.js} +1 -1
  6. package/dist/assets/{DiagramView-CHVLoYrV.js → DiagramView-CDnuxs05.js} +1 -1
  7. package/dist/assets/{FadeInOnReveal-Cj3JXYvE.js → FadeInOnReveal-CuOJu25b.js} +1 -1
  8. package/dist/assets/{GuiPluginSurface-CBZYeKHb.js → GuiPluginSurface-Fz1jDjmD.js} +1 -1
  9. package/dist/assets/{GuiPluginWindow-_Z5wycnH.js → GuiPluginWindow-CIVNyw4s.js} +1 -1
  10. package/dist/assets/Icon-BQczEnxm.js +1 -0
  11. package/dist/assets/{ImageLoadingPlaceholder-DjLaKB4o.js → ImageLoadingPlaceholder-KksxJaKp.js} +1 -1
  12. package/dist/assets/LoadingImage-Ch5MyA20.js +1 -0
  13. package/dist/assets/MarkdownRenderer-2h3s-QAX.js +2 -0
  14. package/dist/assets/{MarkdownRendererImpl-_plqOlsV.js → MarkdownRendererImpl-D-6DekL9.js} +3 -3
  15. package/dist/assets/MarkstreamRendererImpl-HnrHSasB.js +3 -0
  16. package/dist/assets/{MobileDetailNavigation-SeT764Ps.js → MobileDetailNavigation-D-Jwj-Fz.js} +1 -1
  17. package/dist/assets/{MobileResizableSheet-BY1-oo_E.js → MobileResizableSheet-Bk3z4g6T.js} +1 -1
  18. package/dist/assets/{MobileShareBridge-Dw8gLtJD.js → MobileShareBridge-BjNcovRh.js} +2 -2
  19. package/dist/assets/MobileTabPageHeader-o3h0Die1.js +2 -0
  20. package/dist/assets/MultiRunWindow-BHY_fvEe.js +1 -0
  21. package/dist/assets/{OnboardingScreen-CGqabMbp.js → OnboardingScreen-CgQGvlEs.js} +1 -1
  22. package/dist/assets/{OverlayScrollbar-AGSWQKg-.js → OverlayScrollbar-C9Ac564a.js} +1 -1
  23. package/dist/assets/SettingsView-BlOWs55G.js +29 -0
  24. package/dist/assets/SettingsWindow-EosRcZmc.js +1 -0
  25. package/dist/assets/SetupTourDialog-CUzqT2sw.css +1 -0
  26. package/dist/assets/SetupTourDialog-_DdUf4Np.js +1 -0
  27. package/dist/assets/{TerminalView-OHqpkHzz.js → TerminalView-BrTVmvyd.js} +3 -3
  28. package/dist/assets/ToolOutputDialog-DVVOJVDJ.js +10 -0
  29. package/dist/assets/VoiceSettings-C0HSdVvS.css +1 -0
  30. package/dist/assets/VoiceSettings-UNCCasqF.js +2 -0
  31. package/dist/assets/YuriLogo-CpccdHvS.js +1 -0
  32. package/dist/assets/YuriWordmark-hZ6K7Smk.js +1 -0
  33. package/dist/assets/{appThemeRegistry-9j-rCSlE.js → appThemeRegistry-B8qob2l9.js} +1 -1
  34. package/dist/assets/appearance--vFosLNi.js +1 -0
  35. package/dist/assets/{assistant-attachment-cache-B_qRvy-k.js → assistant-attachment-cache-oatc8F4t.js} +1 -1
  36. package/dist/assets/{button-Bjh2BSXh.js → button-Cjciq1yh.js} +1 -1
  37. package/dist/assets/{capgoAdapter-DERfot6h.js → capgoAdapter-YgVOiKZO.js} +1 -1
  38. package/dist/assets/collapsible-BzCn4-sd.js +1 -0
  39. package/dist/assets/context-menu-BIjCIXOg.js +1 -0
  40. package/dist/assets/desktopRelayRestore-C7pjf6fE.js +1 -0
  41. package/dist/assets/{device-BcRP6Tjd.js → device-DN1GigI_.js} +1 -1
  42. package/dist/assets/{diagram-CXVm2vzI.js → diagram--zTR0vWJ.js} +1 -1
  43. package/dist/assets/dialog-rVkj8VgE.js +1 -0
  44. package/dist/assets/dropdown-menu.styles-BDla58Rm.js +1 -0
  45. package/dist/assets/es-B8dNq0Lv.js +15 -0
  46. package/dist/assets/{fileMentionTouchSelection-B9NbPN9D.js → fileMentionTouchSelection-CmdNi_d0.js} +2 -2
  47. package/dist/assets/{fileQueries-BeXkd3o6.js → fileQueries-C2Rs6TPz.js} +1 -1
  48. package/dist/assets/{fileReferenceActions-CrIAce3K.js → fileReferenceActions-CvDFcgBH.js} +1 -1
  49. package/dist/assets/{fr-CIGqV46N.js → fr-DbzWoYOD.js} +4 -4
  50. package/dist/assets/{gitApi-CY3D5CF0.js → gitApi-CEtJm-Si.js} +3 -3
  51. package/dist/assets/{gitApiHttp-B7vYwgBh.js → gitApiHttp-Ddik7PM_.js} +4 -4
  52. package/dist/assets/host-D776RHTx.js +1 -0
  53. package/dist/assets/image-loading-DKQOYtti.js +1 -0
  54. package/dist/assets/input-GVRUiwuQ.js +1 -0
  55. package/dist/assets/insertionBoundaries-DQcca8Jd.js +1 -0
  56. package/dist/assets/{ja-DAhnTq6V.js → ja-BGk5BIrz.js} +4 -4
  57. package/dist/assets/{ko-FbMgNKcI.js → ko-Broo5A8H.js} +4 -4
  58. package/dist/assets/magpie-BuRvkGVQ.svg +1 -0
  59. package/dist/assets/main-BY3PGnZf.js +169 -0
  60. package/dist/assets/main-CMMAJcu3.js +2 -0
  61. package/dist/assets/{markdownHeightCache-DVWGXtAX.js → markdownHeightCache-C7UOJdkN.js} +1 -1
  62. package/dist/assets/{markdownTheme-hpURsgju.js → markdownTheme-CHNl6tUv.js} +1 -1
  63. package/dist/assets/{mcpQueries-CdOYmUdO.js → mcpQueries-Cb3fyXbV.js} +1 -1
  64. package/dist/assets/miniChat-Dez8HIZj.js +2 -0
  65. package/dist/assets/mobile-CE0hClMx.js +2 -0
  66. package/dist/assets/{mobileBackNavigation-CgZndzFA.js → mobileBackNavigation-HtKkSk0m.js} +1 -1
  67. package/dist/assets/multirun-CIbNS1L_.js +3 -0
  68. package/dist/assets/native-DsqzO52u.js +1 -0
  69. package/dist/assets/{native-config-BpsFKLGl.js → native-config-D-sxhX53.js} +1 -1
  70. package/dist/assets/persistence-D-rnhgr4.js +3 -0
  71. package/dist/assets/{pl-DzX0cbiQ.js → pl-not4wEra.js} +4 -4
  72. package/dist/assets/projectMeta-DMn_yra8.js +1 -0
  73. package/dist/assets/pt-BR-3OzFQDGv.js +15 -0
  74. package/dist/assets/pwa-CnptYkbA.js +2 -0
  75. package/dist/assets/{queryRuntime-CTcigFdj.js → queryRuntime-2dx7jbt9.js} +1 -1
  76. package/dist/assets/{queue-abort-optimistic-DCLBpirg.js → queue-abort-optimistic-CShE2znR.js} +1 -1
  77. package/dist/assets/{react-DRe85o5s.js → react-Bwr5-XPi.js} +1 -1
  78. package/dist/assets/readiness-gqLkYnM4.js +1 -0
  79. package/dist/assets/renderElectronMiniChatApp-CY9Z1Vhr.js +2 -0
  80. package/dist/assets/renderMobileApp-BCwgH2Gn.js +28 -0
  81. package/dist/assets/{runtime-file-download-Cf1WxfeW.js → runtime-file-download-D6bwc3Kj.js} +1 -1
  82. package/dist/assets/{runtime-file-resource-UJjHUF2C.js → runtime-file-resource-BP4P52ry.js} +1 -1
  83. package/dist/assets/{runtimeConfig-BBgkLVr_.js → runtimeConfig-BjAB7T92.js} +1 -1
  84. package/dist/assets/runtimeEndpointReset-b_8lxjHW.js +149 -0
  85. package/dist/assets/scheduledTaskNavigation-Bp5rGr3m.js +1 -0
  86. package/dist/assets/select-DeP9bukP.js +1 -0
  87. package/dist/assets/sessionLookup-CvwAHpsq.js +1 -0
  88. package/dist/assets/sortable-tabs-strip-BloEQRck.js +1 -0
  89. package/dist/assets/speechSettingsQueries-B-JHilmU.js +3 -0
  90. package/dist/assets/src-EZMbcCtg.css +2 -0
  91. package/dist/assets/{store-DVfZQktm.js → store-CKIMMlXR.js} +5 -4
  92. package/dist/assets/{terminalApi-rl9mZAlB.js → terminalApi-ChZhb60_.js} +1 -1
  93. package/dist/assets/{textarea-C6VQ7dHH.js → textarea-B4mWtnN5.js} +1 -1
  94. package/dist/assets/theme-validation-BGYdrOu7.js +1 -0
  95. package/dist/assets/themes-BgDJcxRc.js +1 -0
  96. package/dist/assets/tooltip-BuZ86ipm.js +1 -0
  97. package/dist/assets/{touch-gestures-K2_ZOkKW.js → touch-gestures-CErgaXZ7.js} +1 -1
  98. package/dist/assets/tour-Db44qwfs.js +1 -0
  99. package/dist/assets/types-B5Nt6TGt.js +2 -0
  100. package/dist/assets/uk-DyZ2SwUJ.js +15 -0
  101. package/dist/assets/{useAppFontEffects-CEgDiZHu.js → useAppFontEffects-CN6GxBsA.js} +43 -43
  102. package/dist/assets/{useAssistantUIStore-CfaQV3ID.js → useAssistantUIStore-BI_dAUjx.js} +1 -1
  103. package/dist/assets/useDesktopWindowControlsLayout-DtGw4mOb.js +1 -0
  104. package/dist/assets/{dropdown-menu.styles-M78xpvb2.js → useDictation-CwX05CAo.js} +1 -1
  105. package/dist/assets/{useEffectiveDirectory-BOYMJ6k7.js → useEffectiveDirectory-BcjGq1gO.js} +1 -1
  106. package/dist/assets/{useFontPreferences-DeqW9nRx.js → useFontPreferences-EsJ4FlIp.js} +1 -1
  107. package/dist/assets/useMobileNavigationStore-CIldW1SJ.js +17 -0
  108. package/dist/assets/usePluginsStore-CBQx059k.js +1 -0
  109. package/dist/assets/{useThemeSystem-CGF5jnIh.js → useThemeSystem-CNzUUkFn.js} +1 -1
  110. package/dist/assets/useUIStore-CoWJ3ROq.js +1 -0
  111. package/dist/assets/{useWorkerHighlightedLines-EcJThS4x.js → useWorkerHighlightedLines-jLLdysNE.js} +1 -1
  112. package/dist/assets/vendor-base-ui-CzHs0bHY.js +1 -0
  113. package/dist/assets/{vendor-cmdk-C3oBVL9X.js → vendor-cmdk-C_tivUtr.js} +1 -1
  114. package/dist/assets/vendor-codemirror-autocomplete-C0FrlFqZ.js +12 -0
  115. package/dist/assets/vendor-codemirror-commands-5saeUOVY.js +1 -0
  116. package/dist/assets/vendor-codemirror-lang-angular-Cm7vBE3E.js +23 -0
  117. package/dist/assets/vendor-codemirror-lang-cpp-BjixvwC2.js +1 -0
  118. package/dist/assets/vendor-codemirror-lang-go-DFb2d_8t.js +11 -0
  119. package/dist/assets/vendor-codemirror-lang-java-CHitPigf.js +1 -0
  120. package/dist/assets/vendor-codemirror-lang-jinja-B8yrwpok.js +1 -0
  121. package/dist/assets/{vendor-codemirror-lang-json-mLulNbwB.js → vendor-codemirror-lang-json-DowyFczU.js} +1 -1
  122. package/dist/assets/{vendor-codemirror-lang-less-CNvptX3P.js → vendor-codemirror-lang-less-B1_0-sTl.js} +1 -1
  123. package/dist/assets/vendor-codemirror-lang-liquid-FIsA7YFN.js +1 -0
  124. package/dist/assets/vendor-codemirror-lang-markdown-npWBZIoE.js +6 -0
  125. package/dist/assets/vendor-codemirror-lang-php-wyEc0fdz.js +1 -0
  126. package/dist/assets/vendor-codemirror-lang-python-OPRdU26g.js +9 -0
  127. package/dist/assets/{vendor-codemirror-lang-rust-CtafR0gt.js → vendor-codemirror-lang-rust-DgovszuH.js} +1 -1
  128. package/dist/assets/vendor-codemirror-lang-sass-BdU-i07o.js +1 -0
  129. package/dist/assets/{vendor-codemirror-lang-sql-C6q09UUZ.js → vendor-codemirror-lang-sql-DUutq98l.js} +2 -2
  130. package/dist/assets/{vendor-codemirror-lang-vue-DIB78UsR.js → vendor-codemirror-lang-vue-CuRNbe8H.js} +1 -1
  131. package/dist/assets/{vendor-codemirror-lang-wast-C_JVdOCF.js → vendor-codemirror-lang-wast-CGFAOCoB.js} +1 -1
  132. package/dist/assets/vendor-codemirror-lang-xml-CMKBqGXF.js +1 -0
  133. package/dist/assets/{vendor-codemirror-lang-yaml-BO0hIfQM.js → vendor-codemirror-lang-yaml-CH9a1QiY.js} +1 -1
  134. package/dist/assets/{vendor-codemirror-language-data-Ctd4WxgW.js → vendor-codemirror-language-data-B3pLWvv-.js} +2 -2
  135. package/dist/assets/vendor-codemirror-search-hZY-L2l8.js +2 -0
  136. package/dist/assets/{vendor-dnd-kit-accessibility-DxpFzZhi.js → vendor-dnd-kit-accessibility-BOtnpZt5.js} +1 -1
  137. package/dist/assets/{vendor-dnd-kit-core-B3g3zWQd.js → vendor-dnd-kit-core-DK4OoOTr.js} +1 -1
  138. package/dist/assets/{vendor-dnd-kit-sortable-BKewx0Py.js → vendor-dnd-kit-sortable-Cv69eQm1.js} +1 -1
  139. package/dist/assets/{vendor-framer-motion-C1twy-GF.js → vendor-framer-motion-DDMKlXiP.js} +1 -1
  140. package/dist/assets/vendor-lodash-es-BS45jPoZ.js +1 -0
  141. package/dist/assets/{vendor-markstream-react-BlbOg72y.js → vendor-markstream-react-DfLaSG3W.js} +3 -3
  142. package/dist/assets/vendor-motion-C9oiAdx-.js +1 -0
  143. package/dist/assets/{vendor-pierre-diffs-Bj9Nqn6w.js → vendor-pierre-diffs-BFiZ3IhI.js} +2 -2
  144. package/dist/assets/{vendor-react-D5d-V1vN.js → vendor-react-DlzBev0S.js} +1 -1
  145. package/dist/assets/{vendor-react-drawio-C-iPmmED.js → vendor-react-drawio-Dyg1-39Q.js} +1 -1
  146. package/dist/assets/vendor-reactuses-core-DWo5Wn6R.js +1 -0
  147. package/dist/assets/{vendor-replit-codemirror-vim-DCdAdxvE.js → vendor-replit-codemirror-vim-BmQmU1lR.js} +6 -6
  148. package/dist/assets/{vendor-sonner-r2EJnfoo.js → vendor-sonner-BEHGipm5.js} +1 -1
  149. package/dist/assets/{vendor-stream-diffs-BnLmeqg2.js → vendor-stream-diffs-wcQxoPZk.js} +2 -2
  150. package/dist/assets/vendor-tanstack-query-core-Y_YoRHtC.js +1 -0
  151. package/dist/assets/vendor-tanstack-react-query-B-Wpqq5J.js +1 -0
  152. package/dist/assets/{vendor-tanstack-react-virtual-BeZn51tF.js → vendor-tanstack-react-virtual-DSFNK3qc.js} +1 -1
  153. package/dist/assets/{vendor-zustand-B43HCgwC.js → vendor-zustand-vDaAPGfl.js} +1 -1
  154. package/dist/assets/zh-CN-aNIWxYun.js +15 -0
  155. package/dist/assets/zh-TW-B1IdCz5g.js +15 -0
  156. package/dist/index.html +20 -20
  157. package/dist/mini-chat.html +20 -20
  158. package/dist/mobile.html +20 -20
  159. package/package.json +5 -3
  160. package/server/lib/assistants/DOCUMENTATION.md +1 -1
  161. package/server/lib/assistants/contact-tools.js +1 -1
  162. package/server/lib/assistants/harness.js +3 -3
  163. package/server/lib/client-auth/pairing.js +4 -1
  164. package/server/lib/client-auth/pairing.test.js +41 -0
  165. package/server/lib/client-auth/remote-clients.js +6 -2
  166. package/server/lib/client-auth/remote-clients.test.js +42 -0
  167. package/server/lib/config-sync/DOCUMENTATION.md +1 -0
  168. package/server/lib/config-sync/config-sync.test.js +22 -0
  169. package/server/lib/config-sync/constants.js +0 -3
  170. package/server/lib/gui-customization/DOCUMENTATION.md +56 -0
  171. package/server/lib/gui-customization/session-skill.js +58 -0
  172. package/server/lib/gui-customization/session-skill.test.js +53 -0
  173. package/server/lib/gui-customization/skill/SKILL.md +38 -0
  174. package/server/lib/gui-customization/skill/references/appearance.md +79 -0
  175. package/server/lib/gui-customization/skill/references/file-previews.md +113 -0
  176. package/server/lib/gui-customization/skill/references/global-pages.md +81 -0
  177. package/server/lib/gui-customization/skill/references/gui-api.md +37 -0
  178. package/server/lib/gui-customization/skill/references/preview-exports.md +74 -0
  179. package/server/lib/gui-customization/skill/references/ui-surfaces.md +228 -0
  180. package/server/lib/gui-customization/skill/references/workflow.md +80 -0
  181. package/server/lib/llm/DOCUMENTATION.md +14 -1
  182. package/server/lib/llm/bridge-plugin.bundle.js +13 -1136
  183. package/server/lib/llm/bridge-plugin.js +4 -4
  184. package/server/lib/llm/bridge-plugin.test.js +31 -4
  185. package/server/lib/opencode/DOCUMENTATION.md +82 -1
  186. package/server/lib/opencode/config-entity-routes.js +2 -4
  187. package/server/lib/opencode/config-entity-routes.test.js +16 -13
  188. package/server/lib/opencode/core-routes.js +5 -2
  189. package/server/lib/opencode/core-routes.test.js +14 -4
  190. package/server/lib/opencode/custom-provider-models.d.ts +2 -0
  191. package/server/lib/opencode/custom-provider-models.js +71 -0
  192. package/server/lib/opencode/custom-provider-models.test.js +90 -0
  193. package/server/lib/opencode/custom-provider.d.ts +2 -0
  194. package/server/lib/opencode/custom-provider.js +107 -0
  195. package/server/lib/opencode/custom-provider.test.js +211 -0
  196. package/server/lib/opencode/feature-routes-runtime.js +5 -0
  197. package/server/lib/opencode/npm-registry.js +9 -2
  198. package/server/lib/opencode/npm-registry.test.js +22 -1
  199. package/server/lib/opencode/plugin-routes.js +1 -0
  200. package/server/lib/opencode/provider-catalog.js +14 -0
  201. package/server/lib/opencode/provider-catalog.test.js +15 -0
  202. package/server/lib/opencode/provider-configuration.test.js +64 -0
  203. package/server/lib/opencode/provider-model-config.d.ts +1 -0
  204. package/server/lib/opencode/provider-model-config.js +39 -0
  205. package/server/lib/opencode/provider-model-config.test.js +69 -0
  206. package/server/lib/opencode/provider-sources.d.ts +10 -0
  207. package/server/lib/opencode/provider-sources.js +52 -0
  208. package/server/lib/opencode/provider-sources.test.js +73 -0
  209. package/server/lib/opencode/providers.d.ts +5 -0
  210. package/server/lib/opencode/providers.js +28 -0
  211. package/server/lib/opencode/routes.js +50 -1
  212. package/server/lib/opencode/settings-helpers.js +0 -3
  213. package/server/lib/opencode/settings-helpers.test.js +8 -0
  214. package/server/lib/opencode/static-routes-runtime.js +5 -3
  215. package/server/lib/opencode/static-routes-runtime.test.js +23 -10
  216. package/server/lib/remote-desktop/DOCUMENTATION.md +10 -2
  217. package/server/lib/remote-desktop/runtime.js +3 -2
  218. package/server/lib/remote-desktop/runtime.test.js +20 -0
  219. package/server/lib/scheduled-tasks/session-skill.js +3 -0
  220. package/server/lib/scheduled-tasks/session-skill.test.js +4 -2
  221. package/server/lib/ui-auth/DOCUMENTATION.md +2 -0
  222. package/shared/custom-provider-protocol.d.ts +4 -0
  223. package/shared/custom-provider-protocol.js +32 -0
  224. package/dist/assets/AgentAvatar-BybF1ayP.js +0 -1
  225. package/dist/assets/AssistantContactStatus-BwpxTn0d.js +0 -3
  226. package/dist/assets/Icon-CeRMtJa8.js +0 -1
  227. package/dist/assets/LoadingImage-DG3otL5V.js +0 -1
  228. package/dist/assets/MarkdownRenderer-C8rv6z7p.js +0 -2
  229. package/dist/assets/MarkstreamRendererImpl-bs8HZ4Ra.js +0 -3
  230. package/dist/assets/MobileTabPageHeader-EsrOCLyg.js +0 -2
  231. package/dist/assets/MultiRunWindow-C-Qw_g7N.js +0 -1
  232. package/dist/assets/SettingsView-BLfFnnnX.js +0 -29
  233. package/dist/assets/SettingsView-BRIvklfP.css +0 -1
  234. package/dist/assets/SettingsWindow-lyYO8Byy.js +0 -1
  235. package/dist/assets/ToolOutputDialog-DU4Pb1s0.js +0 -10
  236. package/dist/assets/YuriLogo-Bb6yHagP.js +0 -1
  237. package/dist/assets/collapsible-BEAHoxNi.js +0 -1
  238. package/dist/assets/context-menu-BxLcot-3.js +0 -1
  239. package/dist/assets/desktopRelayRestore-D1UX7HW2.js +0 -1
  240. package/dist/assets/dialog-nshKUSE5.js +0 -1
  241. package/dist/assets/es-N9ZkQwG9.js +0 -15
  242. package/dist/assets/host-CnVx34Dh.js +0 -1
  243. package/dist/assets/image-loading-D6kOgU4w.js +0 -1
  244. package/dist/assets/input-3Re4pmHm.js +0 -1
  245. package/dist/assets/insertionBoundaries-DK7XYF8d.js +0 -1
  246. package/dist/assets/main-B_THXYMs.js +0 -2
  247. package/dist/assets/main-CpcudEZb.js +0 -169
  248. package/dist/assets/miniChat-DxZiTnAZ.js +0 -2
  249. package/dist/assets/mobile-BJuATiaC.js +0 -2
  250. package/dist/assets/multirun-BlaYsQi2.js +0 -3
  251. package/dist/assets/native-BYMhr-xH.js +0 -1
  252. package/dist/assets/persistence-CWuLIq1J.js +0 -3
  253. package/dist/assets/projectMeta-CnXHTolN.js +0 -1
  254. package/dist/assets/pt-BR-C5yvwyDK.js +0 -15
  255. package/dist/assets/readiness-U16Qor79.js +0 -1
  256. package/dist/assets/renderElectronMiniChatApp-n-nhgy1V.js +0 -2
  257. package/dist/assets/renderMobileApp-DBj_7RlD.js +0 -28
  258. package/dist/assets/runtimeEndpointReset-BvSQVFfx.js +0 -149
  259. package/dist/assets/scheduledTaskNavigation-EomDNVu2.js +0 -1
  260. package/dist/assets/sessionLookup-C_CCp7MJ.js +0 -1
  261. package/dist/assets/sortable-tabs-strip-p16Pn6Zz.js +0 -1
  262. package/dist/assets/speechSettingsQueries-CBSEAKyj.js +0 -4
  263. package/dist/assets/src-u-YDfCVw.css +0 -2
  264. package/dist/assets/tooltip-Dnc6GA-X.js +0 -1
  265. package/dist/assets/types-DnZw0gLD.js +0 -2
  266. package/dist/assets/uk-zbDcUpBy.js +0 -15
  267. package/dist/assets/useDesktopWindowControlsLayout-B2o4IFmd.js +0 -1
  268. package/dist/assets/useMobileNavigationStore-DlvrZQ49.js +0 -17
  269. package/dist/assets/useUIStore-C6CE42oh.js +0 -1
  270. package/dist/assets/vendor-base-ui-BQjbsJ43.js +0 -1
  271. package/dist/assets/vendor-codemirror-autocomplete-7c2L_4dM.js +0 -12
  272. package/dist/assets/vendor-codemirror-commands-B8KrBQ9B.js +0 -1
  273. package/dist/assets/vendor-codemirror-lang-angular-DXOgWEVj.js +0 -23
  274. package/dist/assets/vendor-codemirror-lang-cpp-Dh8C3xqP.js +0 -1
  275. package/dist/assets/vendor-codemirror-lang-go-BXAJ1_dh.js +0 -11
  276. package/dist/assets/vendor-codemirror-lang-java-DAyCHRhk.js +0 -1
  277. package/dist/assets/vendor-codemirror-lang-jinja-0TICrMfO.js +0 -1
  278. package/dist/assets/vendor-codemirror-lang-liquid-8g5seytq.js +0 -1
  279. package/dist/assets/vendor-codemirror-lang-markdown-CV1IO6Qs.js +0 -6
  280. package/dist/assets/vendor-codemirror-lang-php-xP7rf28_.js +0 -1
  281. package/dist/assets/vendor-codemirror-lang-python-YM2WVLHF.js +0 -9
  282. package/dist/assets/vendor-codemirror-lang-sass-B4iav_Ps.js +0 -1
  283. package/dist/assets/vendor-codemirror-lang-xml-DIuzY_d4.js +0 -1
  284. package/dist/assets/vendor-codemirror-search-DiPwvA-6.js +0 -2
  285. package/dist/assets/vendor-lodash-es-DfLbG5Af.js +0 -1
  286. package/dist/assets/vendor-motion-BmLx2V78.js +0 -1
  287. package/dist/assets/vendor-reactuses-core-BcebBLwF.js +0 -1
  288. package/dist/assets/vendor-tanstack-query-core-BWz0ose6.js +0 -1
  289. package/dist/assets/vendor-tanstack-react-query-C4SG3JZB.js +0 -1
  290. package/dist/assets/zh-CN-BHRJ7CF3.js +0 -15
  291. package/dist/assets/zh-TW-BFI_YFd-.js +0 -15
@@ -0,0 +1,228 @@
1
+ # Built-in UI structure and styles
2
+
3
+ Read this for changes to existing Yuri blocks: backgrounds, sidebar, header, chat, composer, preview, Settings or overlays. For contribution schemas and activation, use [appearance](appearance.md). This map travels with Yuri so plugin authors can start without a source checkout or unpacking the application.
4
+
5
+ ## Fast path
6
+
7
+ 1. Locate the requested block in the table below. Prefer a theme contribution for coordinated colors, or a scoped `Style` rule for one block's material/geometry.
8
+ 2. Inspect only that block's computed styles and ancestors in the target client. Installed plugins may already override the built-in styles; the live result is not necessarily the default.
9
+ 3. Apply the smallest override, then check the changed block in light/dark and its relevant interaction states. A missing selector means a different view/version or an unmounted block, not permission to broaden the selector to the whole app.
10
+
11
+ `yuri.*` registries are contracts. DOM attributes and named classes below are current implementation hooks: prefer them over utility-class strings, translated labels, `nth-child` or generated IDs, and check their presence on the installed version. Preserve scroll ownership, resize handles and input layout while changing materials.
12
+
13
+ ## Layout map
14
+
15
+ Desktop session view, simplified ownership (wrappers omitted; not a selector chain):
16
+
17
+ ```text
18
+ html → body → #root → .main-content-safe-area
19
+ aside.yuri-vibrancy-surface → .yuri-session-sidebar
20
+ [data-chat-area]
21
+ main[data-primary-chat]
22
+ header.header-safe-area
23
+ [data-primary-chat-content]
24
+ transcript [data-scrollbar="chat"] → .yuri-chat-scroll-content
25
+ [data-message-id] → .chat-message-column → message content
26
+ .chat-input-column → composer surface
27
+ aside[data-context-panel] → [data-context-layout] → preview / file rail
28
+ body → portalled dialogs / menus / tooltips
29
+ ```
30
+
31
+ Settings and global plugin pages can replace the session view. Mobile uses page/sheet/composer-foot surfaces rather than this full desktop split. Mini Chat and VS Code have different outer shells; shared composer/message hooks still need their enclosing scope checked.
32
+
33
+ | Block | Locate | Built-in material / useful knobs |
34
+ | --- | --- | --- |
35
+ | App canvas | `body`, `#root`, `.main-content-safe-area` | `--background`; several nested wrappers also paint `bg-background`. Clearing only `body` does not clear its children. |
36
+ | Left sidebar | `aside.yuri-vibrancy-surface`; contents `.yuri-session-sidebar` | `--sidebar`, `--sidebar-vibrancy-overlay`; native vibrancy rules described below. Dark sidebar text has local overrides. |
37
+ | Header | `header.header-safe-area` | `--background`; native Windows chrome can use `--surface-background`. Preserve `.app-region-no-drag` controls and titlebar drag geometry. |
38
+ | Primary chat | `[data-primary-chat]`, `[data-primary-chat-content]` | Main and inner ChatContainer wrappers paint `--background`. Chat workspace and preview are siblings. |
39
+ | Transcript | `[data-scrollbar="chat"]`, `.yuri-chat-scroll-content` | Scroll viewport and content, respectively. `.chat-column` / `.chat-message-column` own reading width. Message roots carry `data-message-id`; IDs are runtime data, not style keys. |
40
+ | Composer column | `.chat-input-column` | Shares `--yuri-chat-column-max` and `--yuri-chat-column-max-wide` with transcript. Also used by draft headings/presets, so not itself the input card. |
41
+ | Composer card | `.chat-input-column div:has(> [data-composer-content="true"])` | `ChatComposerSurface`: light background/border/shadow; dark foreground mix (8%, hover/focus 11%). Radius is inline `var(--radius-xl)`. This structural selector is version-sensitive. |
42
+ | Composer content | `[data-composer-content="true"]` → `[data-composer-input-shell="true"]` → `textarea[data-chat-input="true"]` | Content/layout owner, highlight/input stack, then transparent native textarea. The textarea is not the card's material owner. Footer: `[data-chat-input-footer="true"]`; actions: `[data-composer-send]`, `[data-composer-stop]`. |
43
+ | Preview | `[data-context-panel="true"]`, `[data-context-layout="single"]` / `[data-context-layout="split"]` | Outer panel is transparent; editors, web previews and file rails can paint their own backgrounds. CSS in the host does not style an iframe's document or a native webview. |
44
+ | Settings | `.yuri-settings-workspace`, `.yuri-settings-sidebar` | Workspace owns local form tokens. Group structure: `.yuri-settings-group` → label + `.yuri-settings-group-card` → `.yuri-settings-group-row`. |
45
+ | Settings card | `.yuri-settings-group-card` | `--yuri-settings-group-background`, `--yuri-settings-group-border`, `--yuri-settings-group-radius`; row padding/dividers are separate tokens. |
46
+ | Form controls | `[data-slot="input"]`, `[data-slot="textarea"]`, `[data-slot="select-trigger"]` | `--form-control-*`; Settings adds `--yuri-settings-control-*`. Compound textarea material lives on its wrapper; simple textarea mode puts the slot on the textarea. |
47
+ | Dialogs | `[data-slot="dialog-content"]`, `[data-slot="dialog-overlay"]` | Ordinary dialog content uses `--background`; scrim is separate. Picker dialogs use `.yuri-picker-dialog` and glass material. Settings has its own dialog surface, not necessarily `dialog-content`. |
48
+ | Anchored menus / selects | `[data-slot="dropdown-menu-content"]`, `[data-slot="dropdown-menu-sub-content"]`, `[data-slot="select-content"]`, `.yuri-popup-surface` | Shared glass uses `--yuri-popup-fill` (an elevated-color mix), `--yuri-popup-edge`, `--yuri-popup-shadow`, `--yuri-popup-divider`. Changing `--popover` alone does not reach every popup. |
49
+ | Logo | `[data-yuri-logo]` | May be built-in `svg` or plugin `img`. Replace artwork with `yuri.branding`, not an SVG-path CSS selector. Does not include the wordmark, agent avatars, provider logos or startup splash. |
50
+ | Mobile / glass materials | `.yuri-mobile-composer-surface`, `.yuri-mobile-overlay-surface` | Additional glass, pseudo-element and keyboard/safe-area layers. The overlay class is also used on desktop. Inspect `::before` / `::after` as well as background; retain positioning and viewport insets. |
51
+
52
+ ### Chat paint layers
53
+
54
+ `ChatWorkspace` exposes the outer boundaries. Inside `[data-primary-chat-content]`, the active `ChatContainerContent` has its own full-height `bg-background` root. It is separate from the transparent workspace boundary. The normal conversation branch contains:
55
+
56
+ ```text
57
+ [data-primary-chat-content] transparent boundary
58
+ … session-host wrappers …
59
+ div.relative.flex.flex-col.h-full.bg-background ChatContainerContent root
60
+ div.relative.min-h-0.flex-1 ChatViewport allocation
61
+ div.absolute.inset-0 viewport positioner
62
+ [data-scrollbar="chat"].chat-scroll actual ScrollShadow viewport
63
+ .yuri-chat-scroll-content scroll content
64
+ … MessageList / turn / virtualizer wrappers …
65
+ [data-message-id] message root
66
+ .chat-message-column reading-width wrapper
67
+ [data-user-message-bubble="true"] user bubble, nested in layout/animation wrappers
68
+ div.relative.z-10.bg-background composer foot (viewport sibling)
69
+ div[aria-hidden="true"] desktop edge-fade gradient
70
+ … .chat-input-column …
71
+ div:has(> [data-composer-content="true"]) composer card
72
+ [data-composer-content="true"]
73
+ … [data-composer-input-shell="true"] …
74
+ [data-composer-highlight="true"] optional highlight layer
75
+ … textarea[data-chat-input="true"]
76
+ [data-chat-input-footer="true"] stacked-layout footer
77
+ ```
78
+
79
+ The class-only root, positioner, desktop composer foot and edge fade have **no dedicated data selector**. Their utility classes describe the current structure, not unique identifiers. The desktop fade is an absolute `bottom-full` element with a background-image gradient from `--surface-background` to transparent; it is not the scroll viewport's background color. Mobile composer feet use `.yuri-mobile-composer-foot`, optionally `.yuri-mobile-composer-foot--overlay`.
80
+
81
+ | State / content | Actual selector or structure | Paint ownership |
82
+ | --- | --- | --- |
83
+ | Normal conversation | `[data-scrollbar="chat"]` inside the ChatContainer root | Viewport/content wrappers normally have no background fill; root and composer foot independently use `--background`. |
84
+ | Session hydration | `.chat-scroll` inside the ChatContainer root; no `data-scrollbar="chat"` on this branch | Skeleton scroll viewport additionally has `bg-background`. |
85
+ | Session loading placeholder | `[data-session-view-loading="true"]` | Own `bg-background`; no transcript viewport yet. |
86
+ | Draft / empty conversation | `.yuri-draft-center` when compact draft layout is active; otherwise unnamed layout wrappers | Root and composer placement wrappers use `bg-background`; a transcript selector need not exist. |
87
+ | User message | `[data-message-id] [data-user-message-bubble="true"]` | Inline `background-color: var(--chat-user-message-bg)`; inline radius `--radius-xl`, bottom-right `--radius-sm`. The message root and `.chat-message-column` are not the bubble. |
88
+ | User shell output | `[data-shell-result="true"]` | Replaces the ordinary user-bubble branch; no user-bubble fill/radius from `ChatMessage`. |
89
+ | Assistant message | `[data-message-id].yuri-message-hover-scope` → `.chat-message-column` → content | Ordinary assistant wrapper is transparent, not a symmetric user bubble. Code, tools and other cards own their materials. `--chat-assistant-message-bg` exists as a token but is not applied to this outer wrapper. |
90
+ | Composer card | `.chat-input-column div:has(> [data-composer-content="true"])` | Own fill, border, shadow and inline radius; its parent foot is a separate painted layer. |
91
+ | Composer send / stop glyph | `[data-composer-send]`, `[data-composer-stop]` contain the circular icon | Inner icon uses `bg-foreground text-background`: `--foreground` paints the disk, `--background` paints the glyph via `currentColor`. |
92
+
93
+ Source owners: `ChatWorkspace.tsx`, `ChatContainer.tsx`, `ChatMessage.tsx`, `ChatPromptComposer.tsx`, `ChatComposerSurface.tsx`, and `components/icons/StopIcon.tsx` under `packages/ui/src` (layout/chat subdirectories as listed below).
94
+
95
+ ## Token map and cascade
96
+
97
+ Theme values are CSS colors, not HSL channel tuples: use `var(--background)`, not `hsl(var(--background))`.
98
+
99
+ | Theme field | Semantic variable | Generated alias / common consumer |
100
+ | --- | --- | --- |
101
+ | `surface.background` | `--surface-background` | `--background` → `bg-background`, app/chat/header |
102
+ | `surface.foreground` | `--surface-foreground` | `--foreground` → ordinary text |
103
+ | `surface.muted` | `--surface-muted` | `--muted`, `--secondary`, `--sidebar-base` → `--sidebar` |
104
+ | `surface.mutedForeground` | `--surface-muted-foreground` | `--muted-foreground`, `--sidebar-foreground` |
105
+ | `surface.elevated` | `--surface-elevated` | `--card`, `--popover` |
106
+ | `surface.elevatedForeground` | `--surface-elevated-foreground` | `--card-foreground`, `--popover-foreground` |
107
+ | `surface.subtle` | `--surface-subtle` | `--accent`, `--sidebar-accent-base` → `--sidebar-accent` |
108
+ | `primary.base` | `--primary-base` | `--primary`; default action buttons instead use neutral surfaces |
109
+ | `interactive.border` | `--interactive-border` | `--border`, `--input` (border, not input fill) |
110
+ | `interactive.hover` / `selection` / `focusRing` | `--interactive-hover`, `--interactive-selection`, `--interactive-focus-ring` | Interaction fills and focus; `--ring` aliases focusRing |
111
+
112
+ The generator writes semantic variables and aliases as **separate values**. Changing only `--surface-background` does not update `--background`. A `yuri.theme` contribution keeps them coordinated automatically. For CSS-only overrides, change the variables actually consumed by the target.
113
+
114
+ Variables are shared by consumers, not exclusively by visual regions. `--background` also supplies inverse foregrounds (`text-background`), while `--surface-background` supplies composer fills and edge gradients. `--chat-user-message-bg` comes from `chat.userMessageBackground`, falling back to `surface.elevated`; `--chat-assistant-message-bg` comes from `chat.assistantMessageBackground`, falling back to `surface.muted`. An element's `background` property affects that element's paint; changing an inherited variable affects all descendant consumers, including text and nested cards.
115
+
116
+ Base variables live in `style#opencode-theme-variables`; plugin styles in `style[data-yuri-plugin-style]` follow that block. Light variables use `:root:not(.dark)` (specificity 0,2,0); dark uses `:root` and `.dark`. Aliases such as `--background`, `--sidebar` and `--popover` are `!important`. Later position alone cannot beat specificity or importance. Neither `html:root` nor `html[data-theme="light"]` beats `:root:not(.dark)` at equal importance. Use `:root:root` for a mode-independent equal-specificity rule, or `:root[data-theme="light"]` / `:root[data-theme="dark"]` for a mode-specific one, with `!important` only for important declarations you intend to override.
117
+
118
+ `data-theme="light|dark"` describes the effective mode; `.light` / `.dark` also exist. `.desktop-runtime` means the native desktop runtime; `.device-desktop` is layout/device classification and also occurs in a desktop browser. A plugin's `Style` participates in the CSS cascade; declarative appearance contribution priority is a separate mechanism.
119
+
120
+ In light mode, the generated selection fill derives from foreground/background, rather than copying `interactive.selection` directly. Inspect `--interactive-selection` when styling selected states.
121
+
122
+ ### Geometry and text
123
+
124
+ - Reading/input width: `--yuri-chat-column-max`, `--yuri-chat-column-max-wide`; `.wide-chat-layout` selects the latter. Change both only when both modes are requested.
125
+ - Typography: `--font-sans`, `--font-mono`, `--text-markdown`, `--text-code`, `--text-ui-header`, `--text-ui-label`, `--text-meta`, `--text-micro`; corresponding `.typography-*` classes consume the size tokens.
126
+ - Settings: `--yuri-settings-group-radius`, `--yuri-settings-row-min-height`, `--yuri-settings-row-block-padding`, `--yuri-settings-row-inset`, `--yuri-settings-section-stack-gap`. Put overrides on `.yuri-settings-workspace`, where defaults are declared, rather than on an ancestor that would be shadowed.
127
+ - Controls: `--form-control-height`, `--form-control-radius`, `--form-control-background`, `--form-control-border`. Settings can override these through its local material tokens.
128
+
129
+ ## Scoped recipes
130
+
131
+ Register these through official `Style`; choose the relevant recipe rather than applying all of them. Colors and dimensions below are illustrative.
132
+
133
+ ### Coordinate canvas tokens
134
+
135
+ ```css
136
+ :root[data-theme="light"] {
137
+ --surface-background: #f5f7fa;
138
+ --background: #f5f7fa !important;
139
+ }
140
+ :root[data-theme="dark"] {
141
+ --surface-background: #171b22;
142
+ --background: #171b22 !important;
143
+ }
144
+ ```
145
+
146
+ This changes all consumers of these canvas tokens, including the composer base and ordinary dialogs. For a single block, set that block's `background-color` instead. `--card`, `--popover`, sidebar, glass-popup and syntax surfaces remain independently owned. When another enabled plugin already overrides a semantic token with `!important`, resolve that conflict explicitly; these examples target the built-in styles.
147
+
148
+ ### Composer material
149
+
150
+ ```css
151
+ .chat-input-column div:has(> [data-composer-content="true"]) {
152
+ background: var(--surface-elevated);
153
+ border-color: var(--interactive-border);
154
+ box-shadow: none;
155
+ border-radius: 18px !important;
156
+ }
157
+ ```
158
+
159
+ The radius override is important because this component writes radius inline. Input and highlight layers must keep identical typography, padding and line wrapping. Scope the selector under `[data-primary-chat]` when only the primary session composer should change; shared composers can also appear in Bot and mini-chat surfaces.
160
+
161
+ ### Settings card and row spacing
162
+
163
+ ```css
164
+ .yuri-settings-workspace {
165
+ --yuri-settings-group-radius: 12px;
166
+ --yuri-settings-row-block-padding: 0.75rem;
167
+ --yuri-settings-group-background: var(--surface-elevated);
168
+ }
169
+ ```
170
+
171
+ Applies to standard group cards. Specialized list surfaces can deliberately replace the material (for example, `.yuri-provider-collection-card` stays transparent and square); inspect that block's owning rule when it is the requested target.
172
+
173
+ ### Reading width
174
+
175
+ ```css
176
+ :root:root {
177
+ --yuri-chat-column-max: 54rem;
178
+ --yuri-chat-column-max-wide: 68rem;
179
+ }
180
+ ```
181
+
182
+ This keeps transcript, input and column-aligned controls on the same width system rather than stretching only the textarea.
183
+
184
+ ## Transparency and glass
185
+
186
+ Distinguish three layers: **CSS paint**, **browser canvas**, **native window material**. `background: transparent` removes only that element's paint; descendants, ancestors, pseudo-elements, gradients and native material may still be visible. `opacity` affects text and controls too, so it is not a substitute for background alpha.
187
+
188
+ - For a translucent block, change its material and preserve foreground/hover/focus contrast. Inspect all painted layers in the block before broadening the override.
189
+ - Canvas wrappers, message bubbles, composer cards and popups are separate paint owners. Their shared color variables also serve foregrounds and gradients; the ownership table above identifies element backgrounds separately from those tokens.
190
+ - Native macOS vibrancy uses `data-yuri-vibrancy`, `data-yuri-vibrancy-ready` and `.yuri-vibrancy-surface`. The sidebar paints `--sidebar` until ready, then `--sidebar-vibrancy-overlay`. Suppressed/native-browser-visible states and reduced-transparency preferences restore opacity. These are host state signals; CSS must not manufacture them to enable native behavior.
191
+ - CSS `backdrop-filter` and native vibrancy are different layers. Removing CSS blur does not remove native blur. GUI appearance contracts expose Logo/Dock resources and CSS, not a general transparent-window/vibrancy control. A web preview cannot prove desktop see-through behavior.
192
+ - Host CSS stops at iframe/native-webview boundaries; use the embedded content's own theming contract where available.
193
+
194
+ ## Bounded inspection
195
+
196
+ Run in the target page's browser evaluation context. Replace the selector list with only the affected blocks; this reads geometry/materials without dumping conversation text or configuration.
197
+
198
+ ```js
199
+ const selectors = ['[data-primary-chat]', '.header-safe-area', '.yuri-vibrancy-surface'];
200
+ selectors.map(selector => ({
201
+ selector,
202
+ count: document.querySelectorAll(selector).length,
203
+ samples: [...document.querySelectorAll(selector)].slice(0, 2).map(element => {
204
+ const style = getComputedStyle(element);
205
+ return {
206
+ background: style.backgroundColor,
207
+ image: style.backgroundImage,
208
+ backdrop: style.backdropFilter,
209
+ before: getComputedStyle(element, '::before').backgroundColor,
210
+ after: getComputedStyle(element, '::after').backgroundColor,
211
+ canvas: style.getPropertyValue('--background').trim(),
212
+ surface: style.getPropertyValue('--surface-background').trim(),
213
+ };
214
+ }),
215
+ }));
216
+ ```
217
+
218
+ If an override loses, inspect the matching rule in `opencode-theme-variables`, the target's inline style and the relevant plugin style. Resolve that cascade conflict before scanning unrelated source or application bundles. Verify the requested block, relevant hover/focus/disabled states, mode switch, and removal of the plugin override.
219
+
220
+ ## Source owners (when a checkout is available)
221
+
222
+ Paths are relative to the Yuri repository; installed-plugin work does not require these files.
223
+
224
+ - Shell: `packages/ui/src/components/layout/{MainLayout,Sidebar,Header,ChatWorkspace,ContextPanel}.tsx`.
225
+ - Composer: `packages/ui/src/components/chat/{ChatComposerSurface,ChatPromptComposer,ChatInput}.tsx`; transcript: `ChatContainer.tsx`, `ChatMessage.tsx` in the same directory.
226
+ - Theme variables: `packages/ui/src/lib/theme/cssGenerator.ts`; base materials/native transparency: `packages/ui/src/index.css`, `packages/ui/src/styles/design-system.css`.
227
+ - Width/type: `packages/ui/src/styles/typography.css`; Settings: `packages/ui/src/styles/settings.css`; mobile materials: `packages/ui/src/styles/mobile.css`.
228
+ - Primitives and Logo: `packages/ui/src/components/ui/`; native window material: `packages/electron/main.mjs`.
@@ -0,0 +1,80 @@
1
+ # Package, install, update
2
+
3
+ ## Complete minimal appearance plugin
4
+
5
+ Default to a directly authored CommonJS file in a separate plugin directory. These two files are a complete theme + logo + CSS plugin: no dependency installation, compiler or dev server is needed. Include only the contributions requested by the user.
6
+
7
+ `package.json`:
8
+
9
+ ```json
10
+ {
11
+ "name": "yuri-studio-skin",
12
+ "version": "0.1.0",
13
+ "private": true,
14
+ "exports": { "./gui-experimental": "./gui-experimental.cjs" },
15
+ "files": ["gui-experimental.cjs"]
16
+ }
17
+ ```
18
+
19
+ `gui-experimental.cjs`:
20
+
21
+ ```js
22
+ const { Plugin, Registry, Style } = require('@opencode/plugin/gui')
23
+
24
+ const Theme = Registry.define('yuri.theme')
25
+ const Branding = Registry.define('yuri.branding')
26
+
27
+ module.exports = Plugin.define({
28
+ setup(ctx) {
29
+ ctx.add(Theme, {
30
+ id: 'studio-dark', title: 'Studio Dark', variant: 'dark',
31
+ colors: { primary: { base: '#8dafff' }, surface: { background: '#151820' } },
32
+ })
33
+ ctx.add(Branding, {
34
+ id: 'studio', title: 'Studio',
35
+ logo: {
36
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="#8dafff"/></svg>',
37
+ lightSvg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="#3155a0"/></svg>',
38
+ },
39
+ })
40
+ ctx.add(Style, '[data-yuri-logo] { border-radius: 12%; }')
41
+ },
42
+ })
43
+ ```
44
+
45
+ This package has no server entry and no `main`; its package name becomes its plugin ID. For a mixed server/GUI plugin, use the server part's `Plugin.define` ID consistently. The host supplies the SDK through `require`; a standalone Node `require` is not the plugin runtime. Use `node --check gui-experimental.cjs` for a quick syntax check.
46
+
47
+ Keep CSS/SVG as strings and Dock PNGs as data URLs in this file. Window DOM APIs and host-provided Solid helpers work without JSX. The host resolves only its shared modules, not relative `require('./style.css')`, sibling source files, or arbitrary installed dependencies. TypeScript snippets in other references describe contracts; direct CJS uses plain JavaScript, `require` and `module.exports` without type annotations.
48
+
49
+ ## Installation and updates
50
+
51
+ 1. Write the two files above and syntax-check the `.cjs`. Installation follows the user's requested scope; a direct-CJS plugin needs no package-manager step. The GUI entry is executable CommonJS JavaScript, not TS/TSX or ESM source.
52
+ 2. Inspect the user's **global** `opencode.json(c)` and preserve unrelated configuration/comments. Add the absolute plugin directory to `plugins`, or use the documented OpenCode plugin installation command after checking that CLI's current help/docs. Do not invent CLI flags. For example:
53
+
54
+ ```jsonc
55
+ { "plugins": ["/absolute/path/to/yuri-studio-skin"] }
56
+ ```
57
+
58
+ 3. Yuri loads GUI entries from the connected service's global inventory. A project-only plugin entry will not supply a window GUI. Save changes directly to the exported `.cjs`; the local-file watcher updates the GUI revision and reloads the plugin. No build, version bump or application restart is needed for this edit loop. Confirm the plugin appears active in plugin settings; explicit refresh can retry a failed instance. The GUI enable switch is separate from server plugin loading.
59
+ 4. Verify appearance contributions apply when the GUI is enabled, using [appearance](appearance.md) for priority and fallback. For other capabilities, verify their registered entry points.
60
+ 5. For publication, remove `private` only when requested and include the exported CJS file in the package. Use a new npm version for published updates. No publishing is implied by a local customization request.
61
+
62
+ ## Optional: compiled source
63
+
64
+ Use a build only when the implementation needs TS/TSX, JSX, bundled dependencies or split source/assets, or when maintaining an existing compiled plugin. The GUI host still receives one CommonJS file; OpenCode's ability to load server-side TypeScript does not extend to the GUI entry.
65
+
66
+ For this branch, put the source in `src/gui.tsx`, point `./gui-experimental` at `./dist/gui-experimental.cjs`, and include `dist` in `files`. Use `@opencode/plugin` 2.2.0 with compatible `vite`, `vite-plugin-solid` and `solid-js` development dependencies and these scripts: `build: vite build`, `dev: vite build --watch`. Install dependencies only within the authorized plugin scope.
67
+
68
+ ```ts
69
+ import { defineConfig } from 'vite'
70
+ import { gui } from '@opencode/plugin/gui/vite'
71
+ export default defineConfig({ plugins: [gui()] })
72
+ ```
73
+
74
+ The official preset compiles Solid JSX and emits one CJS file, inlining dynamic imports and non-shared dependencies. SDK/Solid/Effect shared modules remain host-provided. Here, saving source requires a rebuild (or `vite build --watch`) before the exported file changes and reloads.
75
+
76
+ ## Verification and rollback
77
+
78
+ Verify each implemented capability in the target client. Check its normal, failed and unavailable states, cleanup on disable/reload, and isolation from unrelated plugins. Capability-specific checks belong to the matching reference. Report checks not performed rather than inferring cross-platform success.
79
+
80
+ Rollback: disable this GUI plugin or remove only its config entry. Disabling cleans contributions and native leases; appearance falls back according to its resource priority. Preserve unrelated plugins, user data and Yuri app resources.
@@ -80,7 +80,20 @@ on its own filesystem. No automatic remote installation or global config edit
80
80
  is performed. Web, Electron, hosted mobile and Capacitor clients use the Host's
81
81
  same bridge. VS Code's extension-owned runtime does not gain a local Host.
82
82
 
83
- `build:llm-bridge` generates `bridge-plugin.bundle.js` with the inference SDK and service tags, not a driver registry.
83
+ `build:llm-bridge` uses tsdown under the repository-pinned Bun runtime to generate `bridge-plugin.bundle.js`
84
+ with the inference SDK and service tags, not a driver registry. OpenCode core/AI
85
+ are build-only dependencies. The build reads the installed core's two service
86
+ keys and emits lookup-only Effect tags, excluding the host's service layers,
87
+ database and tool implementations. The plugin still gets the actual resolver
88
+ and hooks from the external service's Context. The output is one self-contained
89
+ ESM file because staging copies a single plugin file; no external chunks or
90
+ Yuri node_modules are required. The provider regression suite runs against both
91
+ source and the isolated prebundle, including a Bun import outside the workspace.
92
+ The build must not execute upstream core sources under Node 22: they contain
93
+ `await using`, which Node 22 cannot parse. `scripts/build-llm-bridge.test.js`
94
+ exercises the package command with the test runner's Node first on PATH and
95
+ loads the isolated output with that Node; run it on Node 22 and 24 for build
96
+ runtime changes. The generated plugin remains compatible with both runtimes.
84
97
  It is ignored in source control and included in the web package's `server`
85
98
  files. Web build, prepack and development API scripts build it. At runtime the
86
99
  Host copies its bytes into the temporary directory, including when the Host