@yuriai/web 0.2.28 → 0.2.29-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/dist/assets/AgentAvatar-GVufO03R.js +1 -0
  2. package/dist/assets/AssistantContactStatus-B67HXRUY.js +3 -0
  3. package/dist/assets/{AssistantUnreadBadge-DqThZdCe.js → AssistantUnreadBadge-Xz7kMLSv.js} +1 -1
  4. package/dist/assets/{AssistantView-DPUDCXoY.js → AssistantView-YVdgtBeh.js} +1 -1
  5. package/dist/assets/{DiagramView-CHVLoYrV.js → DiagramView-DCrAY37j.js} +1 -1
  6. package/dist/assets/{FadeInOnReveal-Cj3JXYvE.js → FadeInOnReveal-8NiBU75a.js} +1 -1
  7. package/dist/assets/{GuiPluginSurface-CBZYeKHb.js → GuiPluginSurface-u815jFNI.js} +1 -1
  8. package/dist/assets/{GuiPluginWindow-_Z5wycnH.js → GuiPluginWindow-CW0-Tapi.js} +1 -1
  9. package/dist/assets/{Icon-CeRMtJa8.js → Icon-CLLDJn-P.js} +1 -1
  10. package/dist/assets/{ImageLoadingPlaceholder-DjLaKB4o.js → ImageLoadingPlaceholder-DTWzB26a.js} +1 -1
  11. package/dist/assets/LoadingImage-B89ghYMH.js +1 -0
  12. package/dist/assets/MarkdownRenderer-DZXM92vp.js +2 -0
  13. package/dist/assets/{MarkdownRendererImpl-_plqOlsV.js → MarkdownRendererImpl-BLzRLmeZ.js} +3 -3
  14. package/dist/assets/MarkstreamRendererImpl-MqrsrtVx.js +3 -0
  15. package/dist/assets/{MobileDetailNavigation-SeT764Ps.js → MobileDetailNavigation-CozkWJ5y.js} +1 -1
  16. package/dist/assets/{MobileResizableSheet-BY1-oo_E.js → MobileResizableSheet-CAj4YGtu.js} +1 -1
  17. package/dist/assets/{MobileShareBridge-Dw8gLtJD.js → MobileShareBridge-yWj21Mpo.js} +2 -2
  18. package/dist/assets/MobileTabPageHeader-BSbOGw3M.js +2 -0
  19. package/dist/assets/MultiRunWindow-BDh7FxgY.js +1 -0
  20. package/dist/assets/{OnboardingScreen-CGqabMbp.js → OnboardingScreen-BdU6Tyax.js} +1 -1
  21. package/dist/assets/{OverlayScrollbar-AGSWQKg-.js → OverlayScrollbar-CzQC0JQI.js} +1 -1
  22. package/dist/assets/SettingsView-C0HSdVvS.css +1 -0
  23. package/dist/assets/SettingsView-C1dLufb0.js +30 -0
  24. package/dist/assets/SettingsWindow-DZFZJ8PI.js +1 -0
  25. package/dist/assets/{TerminalView-OHqpkHzz.js → TerminalView-2DhtuWTv.js} +3 -3
  26. package/dist/assets/ToolOutputDialog-COWWhGPD.js +10 -0
  27. package/dist/assets/YuriLogo-BZC0ckt0.js +1 -0
  28. package/dist/assets/{appThemeRegistry-9j-rCSlE.js → appThemeRegistry-CPa7wDcf.js} +1 -1
  29. package/dist/assets/appearance--vFosLNi.js +1 -0
  30. package/dist/assets/{assistant-attachment-cache-B_qRvy-k.js → assistant-attachment-cache-DMw2Smc8.js} +1 -1
  31. package/dist/assets/{button-Bjh2BSXh.js → button-BF2cNEuq.js} +1 -1
  32. package/dist/assets/{capgoAdapter-DERfot6h.js → capgoAdapter-CQz-vZo-.js} +1 -1
  33. package/dist/assets/collapsible-CS5qCQRU.js +1 -0
  34. package/dist/assets/context-menu-C6l4ycZG.js +1 -0
  35. package/dist/assets/desktopRelayRestore-C7pjf6fE.js +1 -0
  36. package/dist/assets/{device-BcRP6Tjd.js → device-DN1GigI_.js} +1 -1
  37. package/dist/assets/{diagram-CXVm2vzI.js → diagram-D9-jif9d.js} +1 -1
  38. package/dist/assets/dialog-r7RRePv5.js +1 -0
  39. package/dist/assets/{dropdown-menu.styles-M78xpvb2.js → dropdown-menu.styles-CX8oXdks.js} +1 -1
  40. package/dist/assets/es-C8kGYKZo.js +15 -0
  41. package/dist/assets/{fileMentionTouchSelection-B9NbPN9D.js → fileMentionTouchSelection-dpFpcetU.js} +2 -2
  42. package/dist/assets/{fileQueries-BeXkd3o6.js → fileQueries-DWj9yB2g.js} +1 -1
  43. package/dist/assets/{fileReferenceActions-CrIAce3K.js → fileReferenceActions-BBLYnGEx.js} +1 -1
  44. package/dist/assets/{fr-CIGqV46N.js → fr-BV_9HcN9.js} +3 -3
  45. package/dist/assets/{gitApi-CY3D5CF0.js → gitApi-CXkfrI_H.js} +1 -1
  46. package/dist/assets/{gitApiHttp-B7vYwgBh.js → gitApiHttp-DGAlAuET.js} +4 -4
  47. package/dist/assets/host-DB6QzbOw.js +1 -0
  48. package/dist/assets/image-loading-BUouaouB.js +1 -0
  49. package/dist/assets/input-DvF_mp0Y.js +1 -0
  50. package/dist/assets/insertionBoundaries-CmxtGojv.js +1 -0
  51. package/dist/assets/{ja-DAhnTq6V.js → ja-CIMpz4Z2.js} +3 -3
  52. package/dist/assets/{ko-FbMgNKcI.js → ko-DPUsuWV1.js} +3 -3
  53. package/dist/assets/magpie-BuRvkGVQ.svg +1 -0
  54. package/dist/assets/main-CJAnB1m1.js +169 -0
  55. package/dist/assets/main-DuN735GT.js +2 -0
  56. package/dist/assets/{markdownHeightCache-DVWGXtAX.js → markdownHeightCache-D02GlOiy.js} +1 -1
  57. package/dist/assets/{markdownTheme-hpURsgju.js → markdownTheme-CHNl6tUv.js} +1 -1
  58. package/dist/assets/{mcpQueries-CdOYmUdO.js → mcpQueries-Ls770ehB.js} +1 -1
  59. package/dist/assets/miniChat-BibI1YhA.js +2 -0
  60. package/dist/assets/mobile-DNvOl_GU.js +2 -0
  61. package/dist/assets/{mobileBackNavigation-CgZndzFA.js → mobileBackNavigation-CXfKEN3p.js} +1 -1
  62. package/dist/assets/multirun-CicU-KQt.js +3 -0
  63. package/dist/assets/native-CILcYDJz.js +1 -0
  64. package/dist/assets/{native-config-BpsFKLGl.js → native-config-BHa0LfdJ.js} +1 -1
  65. package/dist/assets/persistence-Dta0OwIa.js +3 -0
  66. package/dist/assets/{pl-DzX0cbiQ.js → pl-ChxP5OZm.js} +3 -3
  67. package/dist/assets/projectMeta-D3GYq5jV.js +1 -0
  68. package/dist/assets/pt-BR-9N8nJVqC.js +15 -0
  69. package/dist/assets/{queue-abort-optimistic-DCLBpirg.js → queue-abort-optimistic-DRJa-BrH.js} +1 -1
  70. package/dist/assets/{react-DRe85o5s.js → react-Bwr5-XPi.js} +1 -1
  71. package/dist/assets/readiness-lO-fOlzd.js +1 -0
  72. package/dist/assets/renderElectronMiniChatApp-DnzgZv3d.js +2 -0
  73. package/dist/assets/renderMobileApp-DLFGqfxp.js +28 -0
  74. package/dist/assets/{runtime-file-download-Cf1WxfeW.js → runtime-file-download-o29morT6.js} +1 -1
  75. package/dist/assets/{runtime-file-resource-UJjHUF2C.js → runtime-file-resource-qB_oVdE6.js} +1 -1
  76. package/dist/assets/{runtimeConfig-BBgkLVr_.js → runtimeConfig-Be6cMHuS.js} +1 -1
  77. package/dist/assets/runtimeEndpointReset-DeWcqIyJ.js +149 -0
  78. package/dist/assets/scheduledTaskNavigation-BqkeRfVc.js +1 -0
  79. package/dist/assets/sessionLookup-qvz-n65R.js +1 -0
  80. package/dist/assets/sortable-tabs-strip-Dc4Jr4ml.js +1 -0
  81. package/dist/assets/{speechSettingsQueries-CBSEAKyj.js → speechSettingsQueries-CsCKPsRU.js} +2 -2
  82. package/dist/assets/src-DME3XM8W.css +2 -0
  83. package/dist/assets/{store-DVfZQktm.js → store-BPYoxYhv.js} +4 -4
  84. package/dist/assets/{terminalApi-rl9mZAlB.js → terminalApi-CPVNQ5DH.js} +1 -1
  85. package/dist/assets/{textarea-C6VQ7dHH.js → textarea-CIhiRPB2.js} +1 -1
  86. package/dist/assets/theme-validation-BGYdrOu7.js +1 -0
  87. package/dist/assets/themes-BgDJcxRc.js +1 -0
  88. package/dist/assets/tooltip-BoAbDVNP.js +1 -0
  89. package/dist/assets/{touch-gestures-K2_ZOkKW.js → touch-gestures-CErgaXZ7.js} +1 -1
  90. package/dist/assets/types-CTkS0uZU.js +2 -0
  91. package/dist/assets/uk-C-aeGNQI.js +15 -0
  92. package/dist/assets/{useAppFontEffects-CEgDiZHu.js → useAppFontEffects-Cs_0mUpl.js} +43 -43
  93. package/dist/assets/{useAssistantUIStore-CfaQV3ID.js → useAssistantUIStore-CYyXdd5c.js} +1 -1
  94. package/dist/assets/useDesktopWindowControlsLayout-avf-_JWZ.js +1 -0
  95. package/dist/assets/{useEffectiveDirectory-BOYMJ6k7.js → useEffectiveDirectory-esZ8PL08.js} +1 -1
  96. package/dist/assets/{useFontPreferences-DeqW9nRx.js → useFontPreferences-UzjDmx4b.js} +1 -1
  97. package/dist/assets/useMobileNavigationStore-9lAGHZos.js +17 -0
  98. package/dist/assets/{useThemeSystem-CGF5jnIh.js → useThemeSystem-CNzUUkFn.js} +1 -1
  99. package/dist/assets/useUIStore-BDZCXouA.js +1 -0
  100. package/dist/assets/{useWorkerHighlightedLines-EcJThS4x.js → useWorkerHighlightedLines-BxqdOw1S.js} +1 -1
  101. package/dist/assets/vendor-base-ui-CzHs0bHY.js +1 -0
  102. package/dist/assets/{vendor-cmdk-C3oBVL9X.js → vendor-cmdk-C_tivUtr.js} +1 -1
  103. package/dist/assets/vendor-codemirror-autocomplete-C0FrlFqZ.js +12 -0
  104. package/dist/assets/vendor-codemirror-commands-5saeUOVY.js +1 -0
  105. package/dist/assets/vendor-codemirror-lang-angular-Cm7vBE3E.js +23 -0
  106. package/dist/assets/vendor-codemirror-lang-cpp-BjixvwC2.js +1 -0
  107. package/dist/assets/vendor-codemirror-lang-go-DFb2d_8t.js +11 -0
  108. package/dist/assets/vendor-codemirror-lang-java-CHitPigf.js +1 -0
  109. package/dist/assets/vendor-codemirror-lang-jinja-B8yrwpok.js +1 -0
  110. package/dist/assets/{vendor-codemirror-lang-json-mLulNbwB.js → vendor-codemirror-lang-json-DowyFczU.js} +1 -1
  111. package/dist/assets/{vendor-codemirror-lang-less-CNvptX3P.js → vendor-codemirror-lang-less-B1_0-sTl.js} +1 -1
  112. package/dist/assets/vendor-codemirror-lang-liquid-FIsA7YFN.js +1 -0
  113. package/dist/assets/vendor-codemirror-lang-markdown-npWBZIoE.js +6 -0
  114. package/dist/assets/vendor-codemirror-lang-php-wyEc0fdz.js +1 -0
  115. package/dist/assets/vendor-codemirror-lang-python-OPRdU26g.js +9 -0
  116. package/dist/assets/{vendor-codemirror-lang-rust-CtafR0gt.js → vendor-codemirror-lang-rust-DgovszuH.js} +1 -1
  117. package/dist/assets/vendor-codemirror-lang-sass-BdU-i07o.js +1 -0
  118. package/dist/assets/{vendor-codemirror-lang-sql-C6q09UUZ.js → vendor-codemirror-lang-sql-DUutq98l.js} +2 -2
  119. package/dist/assets/{vendor-codemirror-lang-vue-DIB78UsR.js → vendor-codemirror-lang-vue-CuRNbe8H.js} +1 -1
  120. package/dist/assets/{vendor-codemirror-lang-wast-C_JVdOCF.js → vendor-codemirror-lang-wast-CGFAOCoB.js} +1 -1
  121. package/dist/assets/vendor-codemirror-lang-xml-CMKBqGXF.js +1 -0
  122. package/dist/assets/{vendor-codemirror-lang-yaml-BO0hIfQM.js → vendor-codemirror-lang-yaml-CH9a1QiY.js} +1 -1
  123. package/dist/assets/{vendor-codemirror-language-data-Ctd4WxgW.js → vendor-codemirror-language-data-B3pLWvv-.js} +2 -2
  124. package/dist/assets/vendor-codemirror-search-hZY-L2l8.js +2 -0
  125. package/dist/assets/{vendor-dnd-kit-accessibility-DxpFzZhi.js → vendor-dnd-kit-accessibility-BOtnpZt5.js} +1 -1
  126. package/dist/assets/{vendor-dnd-kit-core-B3g3zWQd.js → vendor-dnd-kit-core-DK4OoOTr.js} +1 -1
  127. package/dist/assets/{vendor-dnd-kit-sortable-BKewx0Py.js → vendor-dnd-kit-sortable-Cv69eQm1.js} +1 -1
  128. package/dist/assets/{vendor-framer-motion-C1twy-GF.js → vendor-framer-motion-DDMKlXiP.js} +1 -1
  129. package/dist/assets/vendor-lodash-es-BS45jPoZ.js +1 -0
  130. package/dist/assets/{vendor-markstream-react-BlbOg72y.js → vendor-markstream-react-DfLaSG3W.js} +3 -3
  131. package/dist/assets/vendor-motion-C9oiAdx-.js +1 -0
  132. package/dist/assets/{vendor-pierre-diffs-Bj9Nqn6w.js → vendor-pierre-diffs-BFiZ3IhI.js} +2 -2
  133. package/dist/assets/{vendor-react-D5d-V1vN.js → vendor-react-DlzBev0S.js} +1 -1
  134. package/dist/assets/{vendor-react-drawio-C-iPmmED.js → vendor-react-drawio-Dyg1-39Q.js} +1 -1
  135. package/dist/assets/vendor-reactuses-core-DWo5Wn6R.js +1 -0
  136. package/dist/assets/{vendor-replit-codemirror-vim-DCdAdxvE.js → vendor-replit-codemirror-vim-BmQmU1lR.js} +6 -6
  137. package/dist/assets/{vendor-sonner-r2EJnfoo.js → vendor-sonner-BEHGipm5.js} +1 -1
  138. package/dist/assets/{vendor-stream-diffs-BnLmeqg2.js → vendor-stream-diffs-wcQxoPZk.js} +2 -2
  139. package/dist/assets/{vendor-tanstack-react-query-C4SG3JZB.js → vendor-tanstack-react-query-B2psfNaU.js} +1 -1
  140. package/dist/assets/{vendor-tanstack-react-virtual-BeZn51tF.js → vendor-tanstack-react-virtual-DSFNK3qc.js} +1 -1
  141. package/dist/assets/{vendor-zustand-B43HCgwC.js → vendor-zustand-vDaAPGfl.js} +1 -1
  142. package/dist/assets/zh-CN-DOchDQti.js +15 -0
  143. package/dist/assets/zh-TW-Dtigv2CE.js +15 -0
  144. package/dist/index.html +18 -18
  145. package/dist/mini-chat.html +18 -18
  146. package/dist/mobile.html +18 -18
  147. package/package.json +2 -1
  148. package/server/lib/config-sync/DOCUMENTATION.md +1 -0
  149. package/server/lib/config-sync/config-sync.test.js +22 -0
  150. package/server/lib/config-sync/constants.js +0 -3
  151. package/server/lib/gui-customization/DOCUMENTATION.md +45 -0
  152. package/server/lib/gui-customization/session-skill.js +58 -0
  153. package/server/lib/gui-customization/session-skill.test.js +53 -0
  154. package/server/lib/gui-customization/skill/SKILL.md +33 -0
  155. package/server/lib/gui-customization/skill/references/appearance.md +79 -0
  156. package/server/lib/gui-customization/skill/references/file-previews.md +113 -0
  157. package/server/lib/gui-customization/skill/references/global-pages.md +81 -0
  158. package/server/lib/gui-customization/skill/references/gui-api.md +37 -0
  159. package/server/lib/gui-customization/skill/references/preview-exports.md +74 -0
  160. package/server/lib/gui-customization/skill/references/workflow.md +81 -0
  161. package/server/lib/opencode/DOCUMENTATION.md +74 -1
  162. package/server/lib/opencode/config-entity-routes.js +2 -4
  163. package/server/lib/opencode/config-entity-routes.test.js +16 -13
  164. package/server/lib/opencode/core-routes.js +2 -0
  165. package/server/lib/opencode/core-routes.test.js +2 -2
  166. package/server/lib/opencode/custom-provider-models.d.ts +2 -0
  167. package/server/lib/opencode/custom-provider-models.js +71 -0
  168. package/server/lib/opencode/custom-provider-models.test.js +90 -0
  169. package/server/lib/opencode/custom-provider.d.ts +2 -0
  170. package/server/lib/opencode/custom-provider.js +107 -0
  171. package/server/lib/opencode/custom-provider.test.js +211 -0
  172. package/server/lib/opencode/feature-routes-runtime.js +5 -0
  173. package/server/lib/opencode/provider-catalog.js +14 -0
  174. package/server/lib/opencode/provider-catalog.test.js +15 -0
  175. package/server/lib/opencode/provider-configuration.test.js +64 -0
  176. package/server/lib/opencode/provider-model-config.d.ts +1 -0
  177. package/server/lib/opencode/provider-model-config.js +39 -0
  178. package/server/lib/opencode/provider-model-config.test.js +69 -0
  179. package/server/lib/opencode/provider-sources.d.ts +10 -0
  180. package/server/lib/opencode/provider-sources.js +52 -0
  181. package/server/lib/opencode/provider-sources.test.js +73 -0
  182. package/server/lib/opencode/providers.d.ts +5 -0
  183. package/server/lib/opencode/providers.js +28 -0
  184. package/server/lib/opencode/routes.js +50 -1
  185. package/server/lib/remote-desktop/DOCUMENTATION.md +6 -2
  186. package/server/lib/remote-desktop/runtime.js +3 -2
  187. package/server/lib/remote-desktop/runtime.test.js +20 -0
  188. package/server/lib/scheduled-tasks/session-skill.js +3 -0
  189. package/server/lib/scheduled-tasks/session-skill.test.js +4 -2
  190. package/shared/custom-provider-protocol.d.ts +4 -0
  191. package/shared/custom-provider-protocol.js +32 -0
  192. package/dist/assets/AgentAvatar-BybF1ayP.js +0 -1
  193. package/dist/assets/AssistantContactStatus-BwpxTn0d.js +0 -3
  194. package/dist/assets/LoadingImage-DG3otL5V.js +0 -1
  195. package/dist/assets/MarkdownRenderer-C8rv6z7p.js +0 -2
  196. package/dist/assets/MarkstreamRendererImpl-bs8HZ4Ra.js +0 -3
  197. package/dist/assets/MobileTabPageHeader-EsrOCLyg.js +0 -2
  198. package/dist/assets/MultiRunWindow-C-Qw_g7N.js +0 -1
  199. package/dist/assets/SettingsView-BLfFnnnX.js +0 -29
  200. package/dist/assets/SettingsView-BRIvklfP.css +0 -1
  201. package/dist/assets/SettingsWindow-lyYO8Byy.js +0 -1
  202. package/dist/assets/ToolOutputDialog-DU4Pb1s0.js +0 -10
  203. package/dist/assets/YuriLogo-Bb6yHagP.js +0 -1
  204. package/dist/assets/collapsible-BEAHoxNi.js +0 -1
  205. package/dist/assets/context-menu-BxLcot-3.js +0 -1
  206. package/dist/assets/desktopRelayRestore-D1UX7HW2.js +0 -1
  207. package/dist/assets/dialog-nshKUSE5.js +0 -1
  208. package/dist/assets/es-N9ZkQwG9.js +0 -15
  209. package/dist/assets/host-CnVx34Dh.js +0 -1
  210. package/dist/assets/image-loading-D6kOgU4w.js +0 -1
  211. package/dist/assets/input-3Re4pmHm.js +0 -1
  212. package/dist/assets/insertionBoundaries-DK7XYF8d.js +0 -1
  213. package/dist/assets/main-B_THXYMs.js +0 -2
  214. package/dist/assets/main-CpcudEZb.js +0 -169
  215. package/dist/assets/miniChat-DxZiTnAZ.js +0 -2
  216. package/dist/assets/mobile-BJuATiaC.js +0 -2
  217. package/dist/assets/multirun-BlaYsQi2.js +0 -3
  218. package/dist/assets/native-BYMhr-xH.js +0 -1
  219. package/dist/assets/persistence-CWuLIq1J.js +0 -3
  220. package/dist/assets/projectMeta-CnXHTolN.js +0 -1
  221. package/dist/assets/pt-BR-C5yvwyDK.js +0 -15
  222. package/dist/assets/readiness-U16Qor79.js +0 -1
  223. package/dist/assets/renderElectronMiniChatApp-n-nhgy1V.js +0 -2
  224. package/dist/assets/renderMobileApp-DBj_7RlD.js +0 -28
  225. package/dist/assets/runtimeEndpointReset-BvSQVFfx.js +0 -149
  226. package/dist/assets/scheduledTaskNavigation-EomDNVu2.js +0 -1
  227. package/dist/assets/sessionLookup-C_CCp7MJ.js +0 -1
  228. package/dist/assets/sortable-tabs-strip-p16Pn6Zz.js +0 -1
  229. package/dist/assets/src-u-YDfCVw.css +0 -2
  230. package/dist/assets/tooltip-Dnc6GA-X.js +0 -1
  231. package/dist/assets/types-DnZw0gLD.js +0 -2
  232. package/dist/assets/uk-zbDcUpBy.js +0 -15
  233. package/dist/assets/useDesktopWindowControlsLayout-B2o4IFmd.js +0 -1
  234. package/dist/assets/useMobileNavigationStore-DlvrZQ49.js +0 -17
  235. package/dist/assets/useUIStore-C6CE42oh.js +0 -1
  236. package/dist/assets/vendor-base-ui-BQjbsJ43.js +0 -1
  237. package/dist/assets/vendor-codemirror-autocomplete-7c2L_4dM.js +0 -12
  238. package/dist/assets/vendor-codemirror-commands-B8KrBQ9B.js +0 -1
  239. package/dist/assets/vendor-codemirror-lang-angular-DXOgWEVj.js +0 -23
  240. package/dist/assets/vendor-codemirror-lang-cpp-Dh8C3xqP.js +0 -1
  241. package/dist/assets/vendor-codemirror-lang-go-BXAJ1_dh.js +0 -11
  242. package/dist/assets/vendor-codemirror-lang-java-DAyCHRhk.js +0 -1
  243. package/dist/assets/vendor-codemirror-lang-jinja-0TICrMfO.js +0 -1
  244. package/dist/assets/vendor-codemirror-lang-liquid-8g5seytq.js +0 -1
  245. package/dist/assets/vendor-codemirror-lang-markdown-CV1IO6Qs.js +0 -6
  246. package/dist/assets/vendor-codemirror-lang-php-xP7rf28_.js +0 -1
  247. package/dist/assets/vendor-codemirror-lang-python-YM2WVLHF.js +0 -9
  248. package/dist/assets/vendor-codemirror-lang-sass-B4iav_Ps.js +0 -1
  249. package/dist/assets/vendor-codemirror-lang-xml-DIuzY_d4.js +0 -1
  250. package/dist/assets/vendor-codemirror-search-DiPwvA-6.js +0 -2
  251. package/dist/assets/vendor-lodash-es-DfLbG5Af.js +0 -1
  252. package/dist/assets/vendor-motion-BmLx2V78.js +0 -1
  253. package/dist/assets/vendor-reactuses-core-BcebBLwF.js +0 -1
  254. package/dist/assets/zh-CN-BHRJ7CF3.js +0 -15
  255. package/dist/assets/zh-TW-BFI_YFd-.js +0 -15
package/dist/index.html CHANGED
@@ -560,7 +560,7 @@
560
560
  opacity: 0.72;
561
561
  }
562
562
  </style>
563
- <script type="module" crossorigin src="/assets/main-B_THXYMs.js"></script>
563
+ <script type="module" crossorigin src="/assets/main-DuN735GT.js"></script>
564
564
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
565
565
  <link rel="modulepreload" crossorigin href="/assets/runtime-auth-DBn9yahL.js">
566
566
  <link rel="modulepreload" crossorigin href="/assets/runtime-switch-DEZ1K7qW.js">
@@ -568,35 +568,35 @@
568
568
  <link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
569
569
  <link rel="modulepreload" crossorigin href="/assets/desktop-JwYqThiw.js">
570
570
  <link rel="modulepreload" crossorigin href="/assets/desktopHosts-CB0CTcMg.js">
571
- <link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-D1UX7HW2.js">
572
- <link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-BQjbsJ43.js">
573
- <link rel="modulepreload" crossorigin href="/assets/vendor-zustand-B43HCgwC.js">
571
+ <link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-C7pjf6fE.js">
572
+ <link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CzHs0bHY.js">
573
+ <link rel="modulepreload" crossorigin href="/assets/vendor-zustand-vDaAPGfl.js">
574
574
  <link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
575
575
  <link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
576
576
  <link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
577
577
  <link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
578
- <link rel="modulepreload" crossorigin href="/assets/useUIStore-C6CE42oh.js">
579
- <link rel="modulepreload" crossorigin href="/assets/vendor-react-D5d-V1vN.js">
578
+ <link rel="modulepreload" crossorigin href="/assets/useUIStore-BDZCXouA.js">
579
+ <link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
580
580
  <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
581
581
  <link rel="modulepreload" crossorigin href="/assets/queryRuntime-CTcigFdj.js">
582
582
  <link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
583
583
  <link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
584
- <link rel="modulepreload" crossorigin href="/assets/persistence-CWuLIq1J.js">
585
- <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-C4SG3JZB.js">
586
- <link rel="modulepreload" crossorigin href="/assets/fileQueries-BeXkd3o6.js">
584
+ <link rel="modulepreload" crossorigin href="/assets/persistence-Dta0OwIa.js">
585
+ <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B2psfNaU.js">
586
+ <link rel="modulepreload" crossorigin href="/assets/fileQueries-DWj9yB2g.js">
587
587
  <link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
588
588
  <link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
589
589
  <link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
590
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-UJjHUF2C.js">
591
- <link rel="modulepreload" crossorigin href="/assets/gitApiHttp-B7vYwgBh.js">
592
- <link rel="modulepreload" crossorigin href="/assets/terminalApi-rl9mZAlB.js">
593
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-download-Cf1WxfeW.js">
590
+ <link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-qB_oVdE6.js">
591
+ <link rel="modulepreload" crossorigin href="/assets/gitApiHttp-DGAlAuET.js">
592
+ <link rel="modulepreload" crossorigin href="/assets/terminalApi-CPVNQ5DH.js">
593
+ <link rel="modulepreload" crossorigin href="/assets/runtime-file-download-o29morT6.js">
594
594
  <link rel="modulepreload" crossorigin href="/assets/platform-DFJEtBlo.js">
595
- <link rel="modulepreload" crossorigin href="/assets/types-DnZw0gLD.js">
596
- <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-DERfot6h.js">
597
- <link rel="modulepreload" crossorigin href="/assets/native-config-BpsFKLGl.js">
598
- <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-BBgkLVr_.js">
599
- <link rel="stylesheet" crossorigin href="/assets/src-u-YDfCVw.css">
595
+ <link rel="modulepreload" crossorigin href="/assets/types-CTkS0uZU.js">
596
+ <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-CQz-vZo-.js">
597
+ <link rel="modulepreload" crossorigin href="/assets/native-config-BHa0LfdJ.js">
598
+ <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-Be6cMHuS.js">
599
+ <link rel="stylesheet" crossorigin href="/assets/src-DME3XM8W.css">
600
600
  </head>
601
601
  <body class="h-full bg-background text-foreground">
602
602
  <!-- Keep the startup layer outside #root. React replaces every child of
@@ -77,7 +77,7 @@
77
77
  .dark #initial-loading img { filter: invert(1); }
78
78
  </style>
79
79
 
80
- <script type="module" crossorigin src="/assets/miniChat-DxZiTnAZ.js"></script>
80
+ <script type="module" crossorigin src="/assets/miniChat-BibI1YhA.js"></script>
81
81
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
82
82
  <link rel="modulepreload" crossorigin href="/assets/runtime-auth-DBn9yahL.js">
83
83
  <link rel="modulepreload" crossorigin href="/assets/runtime-switch-DEZ1K7qW.js">
@@ -85,35 +85,35 @@
85
85
  <link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
86
86
  <link rel="modulepreload" crossorigin href="/assets/desktop-JwYqThiw.js">
87
87
  <link rel="modulepreload" crossorigin href="/assets/desktopHosts-CB0CTcMg.js">
88
- <link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-D1UX7HW2.js">
89
- <link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-BQjbsJ43.js">
90
- <link rel="modulepreload" crossorigin href="/assets/vendor-zustand-B43HCgwC.js">
88
+ <link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-C7pjf6fE.js">
89
+ <link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CzHs0bHY.js">
90
+ <link rel="modulepreload" crossorigin href="/assets/vendor-zustand-vDaAPGfl.js">
91
91
  <link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
92
92
  <link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
93
93
  <link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
94
94
  <link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
95
- <link rel="modulepreload" crossorigin href="/assets/useUIStore-C6CE42oh.js">
96
- <link rel="modulepreload" crossorigin href="/assets/vendor-react-D5d-V1vN.js">
95
+ <link rel="modulepreload" crossorigin href="/assets/useUIStore-BDZCXouA.js">
96
+ <link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
97
97
  <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
98
98
  <link rel="modulepreload" crossorigin href="/assets/queryRuntime-CTcigFdj.js">
99
99
  <link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
100
100
  <link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
101
- <link rel="modulepreload" crossorigin href="/assets/persistence-CWuLIq1J.js">
102
- <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-C4SG3JZB.js">
103
- <link rel="modulepreload" crossorigin href="/assets/fileQueries-BeXkd3o6.js">
101
+ <link rel="modulepreload" crossorigin href="/assets/persistence-Dta0OwIa.js">
102
+ <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B2psfNaU.js">
103
+ <link rel="modulepreload" crossorigin href="/assets/fileQueries-DWj9yB2g.js">
104
104
  <link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
105
105
  <link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
106
106
  <link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
107
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-UJjHUF2C.js">
108
- <link rel="modulepreload" crossorigin href="/assets/gitApiHttp-B7vYwgBh.js">
109
- <link rel="modulepreload" crossorigin href="/assets/terminalApi-rl9mZAlB.js">
110
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-download-Cf1WxfeW.js">
107
+ <link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-qB_oVdE6.js">
108
+ <link rel="modulepreload" crossorigin href="/assets/gitApiHttp-DGAlAuET.js">
109
+ <link rel="modulepreload" crossorigin href="/assets/terminalApi-CPVNQ5DH.js">
110
+ <link rel="modulepreload" crossorigin href="/assets/runtime-file-download-o29morT6.js">
111
111
  <link rel="modulepreload" crossorigin href="/assets/platform-DFJEtBlo.js">
112
- <link rel="modulepreload" crossorigin href="/assets/types-DnZw0gLD.js">
113
- <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-DERfot6h.js">
114
- <link rel="modulepreload" crossorigin href="/assets/native-config-BpsFKLGl.js">
115
- <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-BBgkLVr_.js">
116
- <link rel="stylesheet" crossorigin href="/assets/src-u-YDfCVw.css">
112
+ <link rel="modulepreload" crossorigin href="/assets/types-CTkS0uZU.js">
113
+ <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-CQz-vZo-.js">
114
+ <link rel="modulepreload" crossorigin href="/assets/native-config-BHa0LfdJ.js">
115
+ <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-Be6cMHuS.js">
116
+ <link rel="stylesheet" crossorigin href="/assets/src-DME3XM8W.css">
117
117
  </head>
118
118
  <body class="h-full bg-background text-foreground">
119
119
  <div id="root" class="h-full">
package/dist/mobile.html CHANGED
@@ -64,7 +64,7 @@
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-BJuATiaC.js"></script>
67
+ <script type="module" crossorigin src="/assets/mobile-DNvOl_GU.js"></script>
68
68
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
69
69
  <link rel="modulepreload" crossorigin href="/assets/runtime-auth-DBn9yahL.js">
70
70
  <link rel="modulepreload" crossorigin href="/assets/runtime-switch-DEZ1K7qW.js">
@@ -72,35 +72,35 @@
72
72
  <link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
73
73
  <link rel="modulepreload" crossorigin href="/assets/desktop-JwYqThiw.js">
74
74
  <link rel="modulepreload" crossorigin href="/assets/desktopHosts-CB0CTcMg.js">
75
- <link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-D1UX7HW2.js">
76
- <link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-BQjbsJ43.js">
77
- <link rel="modulepreload" crossorigin href="/assets/vendor-zustand-B43HCgwC.js">
75
+ <link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-C7pjf6fE.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
78
  <link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
79
79
  <link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
80
80
  <link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
81
81
  <link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
82
- <link rel="modulepreload" crossorigin href="/assets/useUIStore-C6CE42oh.js">
83
- <link rel="modulepreload" crossorigin href="/assets/vendor-react-D5d-V1vN.js">
82
+ <link rel="modulepreload" crossorigin href="/assets/useUIStore-BDZCXouA.js">
83
+ <link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
84
84
  <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
85
85
  <link rel="modulepreload" crossorigin href="/assets/queryRuntime-CTcigFdj.js">
86
86
  <link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
87
87
  <link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
88
- <link rel="modulepreload" crossorigin href="/assets/persistence-CWuLIq1J.js">
89
- <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-C4SG3JZB.js">
90
- <link rel="modulepreload" crossorigin href="/assets/fileQueries-BeXkd3o6.js">
88
+ <link rel="modulepreload" crossorigin href="/assets/persistence-Dta0OwIa.js">
89
+ <link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B2psfNaU.js">
90
+ <link rel="modulepreload" crossorigin href="/assets/fileQueries-DWj9yB2g.js">
91
91
  <link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
92
92
  <link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
93
93
  <link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
94
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-UJjHUF2C.js">
95
- <link rel="modulepreload" crossorigin href="/assets/gitApiHttp-B7vYwgBh.js">
96
- <link rel="modulepreload" crossorigin href="/assets/terminalApi-rl9mZAlB.js">
97
- <link rel="modulepreload" crossorigin href="/assets/runtime-file-download-Cf1WxfeW.js">
94
+ <link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-qB_oVdE6.js">
95
+ <link rel="modulepreload" crossorigin href="/assets/gitApiHttp-DGAlAuET.js">
96
+ <link rel="modulepreload" crossorigin href="/assets/terminalApi-CPVNQ5DH.js">
97
+ <link rel="modulepreload" crossorigin href="/assets/runtime-file-download-o29morT6.js">
98
98
  <link rel="modulepreload" crossorigin href="/assets/platform-DFJEtBlo.js">
99
- <link rel="modulepreload" crossorigin href="/assets/types-DnZw0gLD.js">
100
- <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-DERfot6h.js">
101
- <link rel="modulepreload" crossorigin href="/assets/native-config-BpsFKLGl.js">
102
- <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-BBgkLVr_.js">
103
- <link rel="stylesheet" crossorigin href="/assets/src-u-YDfCVw.css">
99
+ <link rel="modulepreload" crossorigin href="/assets/types-CTkS0uZU.js">
100
+ <link rel="modulepreload" crossorigin href="/assets/capgoAdapter-CQz-vZo-.js">
101
+ <link rel="modulepreload" crossorigin href="/assets/native-config-BHa0LfdJ.js">
102
+ <link rel="modulepreload" crossorigin href="/assets/runtimeConfig-Be6cMHuS.js">
103
+ <link rel="stylesheet" crossorigin href="/assets/src-DME3XM8W.css">
104
104
  </head>
105
105
  <body class="h-full bg-background text-foreground">
106
106
  <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.28",
3
+ "version": "0.2.29-beta.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./server/index.js",
@@ -119,6 +119,7 @@
119
119
  "files": [
120
120
  "dist",
121
121
  "server",
122
+ "shared",
122
123
  "bin",
123
124
  "public",
124
125
  "package.json",
@@ -45,6 +45,7 @@ Within one direction, scope changes retain the displayed preview and discovered
45
45
 
46
46
  ## Invariants
47
47
 
48
+ - The allowlist includes OpenCode configuration and generic extension directories, not plugin-specific configuration files or private state directories. Existing excluded files are neither copied nor deleted.
48
49
  - Plan is computed on the source filesystem/inventory snapshot; destination executors never re-walk the source.
49
50
  - All local, HTTP and SSH archive builders exclude `node_modules`, `.venv-asc` and `*.backup`
50
51
  at every depth, including followed symlinks, matching the inventory walk. Keep
@@ -38,6 +38,28 @@ afterEach(async () => {
38
38
  });
39
39
 
40
40
  describe('config-sync contract', () => {
41
+ it('excludes plugin-specific configuration and state from sync and deletion plans', async () => {
42
+ const home = await makeTempDir();
43
+ const configDir = path.join(home, '.config', 'opencode');
44
+ await fsp.mkdir(path.join(configDir, '.oh-my-opencode-slim'), { recursive: true });
45
+ await fsp.writeFile(path.join(configDir, 'opencode.jsonc'), '{}');
46
+ for (const target of ['oh-my-opencode', 'oh-my-opencode-slim', 'oh-my-openagent']) {
47
+ for (const extension of ['json', 'jsonc']) {
48
+ await fsp.writeFile(path.join(configDir, `${target}.${extension}`), '{}');
49
+ }
50
+ }
51
+ await fsp.writeFile(path.join(configDir, '.oh-my-opencode-slim', 'state.json'), '{}');
52
+ for (const direction of [SYNC_DIRECTION_PUSH, SYNC_DIRECTION_PULL]) {
53
+ const plan = planOpenCodeConfigSync(home, { direction, includeProviderCredentials: false });
54
+ expect(plan.files.map((entry) => entry.path)).toEqual(['opencode.jsonc']);
55
+ expect(plan.directories).toEqual([]);
56
+ expect(plan.deletes.every((entry) => !entry.includes('oh-my-'))).toBe(true);
57
+ }
58
+ expect(buildDefaultSyncSelections().fileGroups).toHaveLength(1);
59
+ expect(buildDefaultSyncSelections().directories).toHaveLength(6);
60
+ expect(buildRemoteSyncInventoryScript()).not.toContain('oh-my-');
61
+ });
62
+
41
63
  it('requires direction on plans and accepts push/pull', () => {
42
64
  expect(assertPlanDirection({ direction: SYNC_DIRECTION_PUSH })).toBe('push');
43
65
  expect(assertPlanDirection({ direction: SYNC_DIRECTION_PULL })).toBe('pull');
@@ -3,8 +3,6 @@ export const OPENCODE_CONFIG_SYNC_ALLOWLIST = {
3
3
  // Mutually exclusive groups: first existing local file wins; other members are deleted on remote.
4
4
  fileGroups: [
5
5
  ['config.json', 'opencode.json', 'opencode.jsonc'],
6
- ['oh-my-opencode-slim.json', 'oh-my-opencode-slim.jsonc'],
7
- ['oh-my-openagent.json', 'oh-my-openagent.jsonc'],
8
6
  ],
9
7
  singleFiles: ['AGENTS.md', 'cursor-models.json'],
10
8
  directories: [
@@ -14,7 +12,6 @@ export const OPENCODE_CONFIG_SYNC_ALLOWLIST = {
14
12
  { path: 'snippet' },
15
13
  { path: 'snippets' },
16
14
  { path: 'plugins', excludeNames: ['node_modules'] },
17
- { path: '.oh-my-opencode-slim' },
18
15
  ],
19
16
  };
20
17
 
@@ -0,0 +1,45 @@
1
+ # Built-in Yuri customization skill
2
+
3
+ `session-skill.js` stages the shipped `skill/SKILL.md` and its six references in
4
+ an application-owned, content-fingerprinted `session-skills` directory. Only a
5
+ short discovery pointer enters `session.instructions.entry` under
6
+ `yuri.customization`. Agents load the skill and matching references on demand;
7
+ no global OpenCode config, installed user skills, project files or old sessions
8
+ are modified.
9
+
10
+ References are organized by capability: window APIs, appearance, global pages,
11
+ file parsing/previews, preview actions/exports, and package workflow. Host contracts
12
+ and verification criteria are separate from illustrative templates and case
13
+ studies. Runmark and Eficy remain integration references; their service protocols,
14
+ renderers and compatibility choices are not requirements for unrelated plugins.
15
+
16
+ ## Admission ownership
17
+
18
+ - Shared-service sessions: the existing scheduled-task admission route installs
19
+ this instruction after its authenticated scheduled-task preflight. Both must
20
+ finish before returning the session. Existing rollback semantics apply.
21
+ - Managed local OpenCode: `registerCustomizationSessionSkill` owns session create
22
+ and this instruction only, before the generic proxy. A failed installation
23
+ removes a newly allocated session; an explicitly supplied/adopted session is
24
+ retained. If removal fails, the response includes the retained session ID.
25
+ - External OpenCode and VS Code's independent extension-host session creation:
26
+ no local-file pointer is injected, because the agent is not proven to share
27
+ this Host's filesystem. GUI plugin contracts themselves remain available on
28
+ their supported clients. Existing sessions do not gain the pointer retroactively.
29
+
30
+ The feature adds no HTTP resource endpoint, credential or native privilege.
31
+ Package publishing includes the entire web `server` directory, so the Markdown
32
+ resources ship with the backend and resolve relative to this module in packaged
33
+ Electron as well as web installs. Fingerprinted resources remain readable by old
34
+ sessions across backend upgrades.
35
+
36
+ ## Validation
37
+
38
+ `session-skill.test.js` exercises staging, complete resource availability, short
39
+ per-session pointers, managed admission/rollback/adopted sessions and external
40
+ ownership. Shared-service admission is covered by
41
+ `../scheduled-tasks/session-skill.test.js`. The UI test
42
+ `packages/ui/src/lib/gui-plugins/skill-examples.test.ts` transpiles the shipped
43
+ global-page and custom-file templates and runs them through the real GUI host,
44
+ plugin context, navigation, file read, mount and cleanup. These are contract
45
+ fixtures, not live Runmark/Eficy backend tests.
@@ -0,0 +1,58 @@
1
+ import { readFile, mkdir, writeFile, rename, rm } from 'node:fs/promises';
2
+ import { createHash, randomUUID } from 'node:crypto';
3
+ import path from 'node:path';
4
+
5
+ const files = ['SKILL.md', 'references/appearance.md', 'references/gui-api.md', 'references/workflow.md', 'references/global-pages.md', 'references/file-previews.md', 'references/preview-exports.md'];
6
+
7
+ /** Stage immutable, shipped instructions; never edit the user's global skills/config. */
8
+ export function createCustomizationSkillInstaller({ yuriDataDir }) {
9
+ let resources;
10
+ const prepare = () => {
11
+ resources ??= (async () => {
12
+ const contents = await Promise.all(files.map((name) => readFile(new URL(`./skill/${name}`, import.meta.url), 'utf8')));
13
+ const hash = createHash('sha256').update(contents.join('\0')).digest('hex').slice(0, 16);
14
+ const directory = path.join(yuriDataDir, 'session-skills', `yuri-customization-${hash}`);
15
+ await mkdir(path.join(directory, 'references'), { recursive: true, mode: 0o700 });
16
+ await Promise.all(files.map(async (name, index) => {
17
+ const target = path.join(directory, name);
18
+ const temporary = `${target}.${randomUUID()}.tmp`;
19
+ try { await writeFile(temporary, contents[index], { mode: 0o600 }); await rename(temporary, target); }
20
+ finally { await rm(temporary, { force: true }); }
21
+ }));
22
+ return path.join(directory, 'SKILL.md');
23
+ })().catch((error) => { resources = undefined; throw error; });
24
+ return resources;
25
+ };
26
+ return async (client, sessionID) => {
27
+ const file = await prepare();
28
+ await client.session.instructions.entry.put({ sessionID, key: 'yuri.customization',
29
+ value: `Yuri customization: for appearance (themes, CSS/layout, Logo, macOS Dock), global pages/tabs, custom file parsing/previews, preview exports, or GUI panels/commands/settings, read ${JSON.stringify(file)} before choosing a plugin API. Use its capability references for supported contracts and runtime limits, and its workflow for building, installation and rollback. Install or apply changes only when requested.`,
30
+ });
31
+ };
32
+ }
33
+
34
+ /** Managed local servers share the resource filesystem; external servers do not. */
35
+ export function registerCustomizationSessionSkill(app, { express, yuriDataDir, getIsSharedOpenCodeService, getIsExternalOpenCode, waitForOpenCodeReady, createClient }) {
36
+ const install = createCustomizationSkillInstaller({ yuriDataDir });
37
+ app.post('/api/session', express.json({ limit: '1mb' }), async (req, res, next) => {
38
+ if (getIsSharedOpenCodeService() || getIsExternalOpenCode()) return next();
39
+ const body = req.body ?? {};
40
+ if (!body || typeof body !== 'object' || Array.isArray(body)) return res.status(400).json({ error: 'Session input must be an object' });
41
+ let client, created;
42
+ try {
43
+ await waitForOpenCodeReady();
44
+ client = createClient();
45
+ created = await client.session.create(body);
46
+ if (!created?.id) throw new Error('Session creation was not confirmed');
47
+ await install(client, created.id);
48
+ return res.json({ data: created });
49
+ } catch {
50
+ let retainedSessionID = created?.id;
51
+ if (created?.id && !body.id) {
52
+ try { await client.session.remove({ sessionID: created.id }); retainedSessionID = undefined; }
53
+ catch { /* Preserve the ID when rollback cannot be confirmed. */ }
54
+ }
55
+ return res.status(503).json({ code: 'session_skill_initialization_failed', error: 'New session capability initialization failed', ...(retainedSessionID ? { sessionID: retainedSessionID } : {}) });
56
+ }
57
+ });
58
+ }
@@ -0,0 +1,53 @@
1
+ import { afterEach, describe, expect, it, vi } from 'vitest';
2
+ import fs from 'node:fs/promises';
3
+ import os from 'node:os';
4
+ import path from 'node:path';
5
+ import express from 'express';
6
+ import { createCustomizationSkillInstaller, registerCustomizationSessionSkill } from './session-skill.js';
7
+
8
+ const cleanup = [];
9
+ afterEach(async () => { for (const dispose of cleanup.splice(0)) await dispose(); });
10
+ async function directory() {
11
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'yuri-customization-'));
12
+ cleanup.push(() => fs.rm(root, { recursive: true, force: true }));
13
+ return root;
14
+ }
15
+ describe('built-in customization instructions', () => {
16
+ it('stages a complete skill and references and installs only a short session-scoped pointer', async () => {
17
+ const root = await directory();
18
+ const put = vi.fn(); const client = { session: { instructions: { entry: { put } } } };
19
+ const install = createCustomizationSkillInstaller({ yuriDataDir: root });
20
+ await install(client, 'ses_one'); await install(client, 'ses_two');
21
+ const entry = put.mock.calls[0][0];
22
+ expect(entry).toMatchObject({ sessionID: 'ses_one', key: 'yuri.customization' });
23
+ expect(entry.value.length).toBeLessThan(1500);
24
+ const file = JSON.parse(entry.value.match(/read (".*?") before/)[1]);
25
+ expect(await fs.readFile(file, 'utf8')).toContain('name: yuri-customization');
26
+ for (const name of ['appearance', 'gui-api', 'workflow', 'global-pages', 'file-previews', 'preview-exports']) expect((await fs.readFile(path.join(path.dirname(file), 'references', `${name}.md`), 'utf8')).length).toBeGreaterThan(500);
27
+ expect(await fs.readFile(path.join(path.dirname(file), 'references', 'appearance.md'), 'utf8')).toContain('yuri.branding');
28
+ expect(put.mock.calls[1][0].value).toBe(entry.value);
29
+ });
30
+ it('initializes managed sessions, rolls back failures, preserves adopted sessions and skips external/shared ownership', async () => {
31
+ const root = await directory();
32
+ let external = false, shared = false, failed = false;
33
+ const client = { session: {
34
+ create: vi.fn(async (body) => ({ ...body, id: body.id ?? 'ses_new' })), remove: vi.fn(),
35
+ instructions: { entry: { put: vi.fn(async () => { if (failed) throw new Error('unavailable'); }) } },
36
+ } };
37
+ const app = express();
38
+ registerCustomizationSessionSkill(app, { express, yuriDataDir: root, getIsExternalOpenCode: () => external, getIsSharedOpenCodeService: () => shared, waitForOpenCodeReady: async () => {}, createClient: () => client });
39
+ app.post('/api/session', (_, res) => res.status(202).json({ delegated: true }));
40
+ const server = await new Promise((resolve) => { const s = app.listen(0, '127.0.0.1', () => resolve(s)); });
41
+ cleanup.unshift(() => new Promise((resolve) => server.close(resolve)));
42
+ const request = (body = {}) => fetch(`http://127.0.0.1:${server.address().port}/api/session`, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(body) });
43
+ expect((await (await request({ title: 'Keep' })).json()).data.title).toBe('Keep');
44
+ expect(client.session.instructions.entry.put).toHaveBeenCalledWith(expect.objectContaining({ sessionID: 'ses_new', key: 'yuri.customization' }));
45
+ failed = true; expect((await request()).status).toBe(503);
46
+ expect(client.session.remove).toHaveBeenCalledExactlyOnceWith({ sessionID: 'ses_new' });
47
+ expect((await (await request({ id: 'ses_existing' })).json()).sessionID).toBe('ses_existing');
48
+ expect(client.session.remove).toHaveBeenCalledTimes(1);
49
+ external = true; expect((await request()).status).toBe(202);
50
+ external = false; shared = true; expect((await request()).status).toBe(202);
51
+ expect(client.session.create).toHaveBeenCalledTimes(3);
52
+ });
53
+ });
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: yuri-customization
3
+ description: Customize Yuri through GUI plugins for appearance, global pages, custom file previews, export actions, panels, commands, and settings.
4
+ ---
5
+
6
+ # Yuri customization
7
+
8
+ Use a standard OpenCode GUI plugin to change the running Yuri UI without modifying Yuri's source or installation. This skill describes Yuri's supported subset of the experimental OpenCode GUI SDK 2.2.0, not every capability in the newest upstream Desktop.
9
+
10
+ ## Workflow
11
+
12
+ 1. Identify the requested change and target client: Web, Electron, VS Code, hosted mobile, or Capacitor. Separate visual changes from backend behavior. Inspect the user's existing plugin/config before changing it. An explanation request does not authorize installation.
13
+ 2. Choose the extension point by the requested capability and read its reference:
14
+ - Themes, CSS, logos, Dock icons: [appearance](references/appearance.md).
15
+ - Global main-content tabs and titlebar entries: [global pages](references/global-pages.md).
16
+ - Custom file suffixes, parsers, inline/mobile previews and file icons: [file previews](references/file-previews.md).
17
+ - Preview toolbar placement, PDF/PNG/HTML export and iframe snapshot boundaries: [preview actions and exports](references/preview-exports.md).
18
+ - Panels, commands, settings, files, RPC, lifecycle, runtime support: [GUI API](references/gui-api.md).
19
+ - Every implementation: [package, build, install, verification and rollback](references/workflow.md).
20
+ 3. Build only the requested capabilities in a user-approved plugin directory. Use declarative registries for appearance, window APIs for GUI behavior, and a server or native part only when the required capability needs it. Keep dependencies aligned with the supported SDK contract and emit the GUI as one prebuilt CommonJS file.
21
+ 4. Build and inspect the actual artifact. Preserve unrelated global OpenCode configuration. Install only when asked, using the plugin package's global config entry; project-only configuration does not provide window GUI inventory.
22
+ 5. Verify each requested capability in the target client, including its failure and cleanup behavior; use the matching reference's verification criteria. Finish with the plugin directory, changed settings, verified behavior, known limits, and how to undo it.
23
+
24
+ References distinguish host contracts from illustrative templates and case studies. Choose rendering, authentication and file formats for the current requirement; case-study protocols and dependencies belong to those integrations.
25
+
26
+ ## Boundaries
27
+
28
+ - `Style` can affect the whole document. A GUI plugin is trusted JavaScript, not a sandbox. Prefer tokens and narrow, stable selectors; arbitrary CSS can hide controls or trigger network requests.
29
+ - Yuri themes and branding are host-consumed custom registries, declared with official `Registry.define`; they are not official OpenCode built-ins. Other hosts may ignore them.
30
+ - Enabled plugins apply their appearance contributions automatically; [appearance](references/appearance.md) defines priority and fallback. Saved base theme preferences remain separate.
31
+ - macOS customization means the running Dock icon only. Keep signed `.app` resources, Finder/Launchpad icons, bundle identifiers and update origins unchanged.
32
+ - Native `main` runs only for trusted local Electron connections. Remote/Relay, Web, VS Code and mobile cannot execute local Node/Electron code. Use supported window APIs there; never bypass the native gate.
33
+ - Pre-JavaScript startup screens retain Yuri's built-in branding. Plugins load after the usable shell; never delay startup to apply a skin.
@@ -0,0 +1,79 @@
1
+ # Appearance contracts
2
+
3
+ Use `Plugin`, `Registry`, and `Style` from `@opencode/plugin/gui`. The package build/install instructions are in [workflow](workflow.md).
4
+
5
+ ## Activation and priority
6
+
7
+ Enabled plugins apply themes, CSS, Logo and supported Dock icons automatically. There is no separate plugin-appearance selector. For each resource kind (and each theme variant), the last matching contribution wins: later plugins in the service's global inventory take priority, then later contributions within that plugin. Priority follows inventory order, not asynchronous bundle arrival or plugin names.
8
+
9
+ Disabling, failure or withdrawal reveals the preceding active contribution, then the user's base theme or Yuri's default branding. Existing light/dark mode and saved base theme choices remain unchanged. Expose only the intended active resources; if a plugin needs its own variants, choose which to register through its own configuration.
10
+
11
+ ## Theme contributions: `yuri.theme`
12
+
13
+ Each contribution is:
14
+
15
+ ```ts
16
+ type ThemeContribution = {
17
+ id: string
18
+ title: string
19
+ variant: 'light' | 'dark'
20
+ colors?: Record<string, unknown>
21
+ config?: {
22
+ fonts?: { sans?: string; mono?: string; heading?: string }
23
+ spacing?: { xs?: string; sm?: string; md?: string; lg?: string; xl?: string }
24
+ transitions?: { fast?: string; normal?: string; slow?: string }
25
+ }
26
+ }
27
+ ```
28
+
29
+ `colors` is a deep partial Yuri theme, merged onto the built-in default for the variant. Common families: `primary` (base/foreground/hover/active), `surface` (background/foreground/muted/mutedForeground/elevated/elevatedForeground/overlay/subtle), `interactive` (border/hover/active/selection/selectionForeground/focusRing), `status`, `syntax`, `chat`, `markdown`, `tools`. Preserve the schema's nested string/color structure. Required resulting tokens are validated. Neutral base-text brightness floors still apply; syntax, secondary and accent colors remain theme-owned.
30
+
31
+ ```ts
32
+ const Theme = Registry.define<ThemeContribution>('yuri.theme')
33
+ ctx.add(Theme, {
34
+ id: 'ink-dark', title: 'Ink Dark', variant: 'dark',
35
+ colors: {
36
+ primary: { base: '#8dafff' },
37
+ surface: { background: '#151820', muted: '#202532' },
38
+ },
39
+ })
40
+ ```
41
+
42
+ The host owns a collision-free theme ID `gui:` + `JSON.stringify([pluginId, id])`; authors supply only the local `id`. Themes override the current matching light/dark variant while enabled and are not added as Settings choices. Up to 16 themes per plugin, 128 per window, 64 KiB per theme. VS Code continues to follow its editor theme; embedded views follow their parent theme.
43
+
44
+ ## CSS: official `Style`
45
+
46
+ ```ts
47
+ import css from './skin.css?inline'
48
+ ctx.add(Style, css)
49
+ ```
50
+
51
+ CSS is active immediately while the plugin is enabled. Host base theme variables stay before plugin styles, including after theme switches. Ordinary CSS specificity and source order still apply; the declarative resource priority above does not reorder style elements. Base light tokens include `:root:not(.dark)` (two class-level selectors), so a plain `:root` override has lower specificity; use `html[data-theme="light"]` / `html[data-theme="dark"]` or matching specificity. Tailwind aliases such as `--background` / `--primary` are important declarations and require an important override if you deliberately bypass a registered theme. Common semantic tokens: `--surface-background`, `--surface-foreground`, `--surface-muted-foreground`, `--primary-base`, `--interactive-selection`, and `--font-mono`. Inspect actual current DOM/tokens before targeting a specific layout; generated Tailwind classes are not a stable plugin API. `[data-yuri-logo]` identifies the shared application logo. CSS does not cross iframe or native-window boundaries.
52
+
53
+ ## Branding: `yuri.branding`
54
+
55
+ ```ts
56
+ type Branding = {
57
+ id: string
58
+ title: string
59
+ logo?: { svg: string; lightSvg?: string }
60
+ dockIcon?: { png: string; lightPng?: string }
61
+ }
62
+ const Branding = Registry.define<Branding>('yuri.branding')
63
+ ctx.add(Branding, {
64
+ id: 'studio', title: 'Studio',
65
+ logo: { svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="#8dafff"/></svg>' },
66
+ })
67
+ ```
68
+
69
+ At least one of `logo` / `dockIcon` is required. `svg` / `png` are the dark/default resource; the `light*` resource is optional. Logo and Dock are resolved independently, so a Logo-only plugin does not suppress another plugin's Dock icon. Branding does not rename the app or replace its wordmark text.
70
+
71
+ - Logos: inline complete SVG text with SVG namespace; maximum 16 KiB UTF-8 each. Static geometry, groups, gradients, defs, clipPath, mask and local `#id` references are allowed. Scripts, event handlers, embedded HTML, stylesheets, inline style, external references, DTD and processing instructions are rejected. Resources render as images, never injected SVG markup.
72
+ - Dock: inline `data:image/png;base64,...`, at most 2 MiB of URL text, valid PNG, dimensions 1–1024 per side. Import with `?inline` as text only when it really yields a PNG data URL, or generate the data URL at build time. No filesystem path or remote image URL. Requires trusted local macOS Electron; no plugin `main` needed. Preview builds or older shells may reject the capability. Other runtimes still support the logo.
73
+ - Maximum 8 branding entries/plugin, 64/window; combined serialized appearance contributions 8 MiB/plugin, 16 MiB/window. IDs/titles are nonempty strings up to 128 characters; IDs are unique within each registry/plugin.
74
+ - Unregister, disable, reload, failure and runtime switch withdraw resources. If several local windows apply a Dock icon, the newest active window update wins; closing/releasing it restores the previous window's icon or Yuri default. System appearance changes cannot overwrite an active plugin icon.
75
+ - Invalid appearance contributions or a failed Dock application fail the owning plugin and clean its contributions; unrelated plugins remain active. Diagnostics appear in plugin settings. These contracts do not grant a JS sandbox.
76
+
77
+ ## Verification
78
+
79
+ For each supplied appearance resource, verify automatic activation, light/dark behavior, disable restoring the fallback, re-enable restoring the resource, and hot rebuild removing obsolete resources. Confirm saved base theme preferences remain intact and multiple providers follow inventory priority. CSS overrides must retain their intended precedence after theme switches. Check Logo changes in the running UI; startup branding remains built-in. Dock verification requires a real trusted local macOS Electron window, including lease release and multiple-window ownership when applicable.