@yuriai/web 0.3.4 → 0.3.6-beta.10

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 (315) hide show
  1. package/dist/assets/AgentAvatar-C_s-cMy0.js +1 -0
  2. package/dist/assets/AgentSelector-Df4rBNQs.js +1 -0
  3. package/dist/assets/ArchivedSessionsDialog-BQdqEIFM.js +1 -0
  4. package/dist/assets/{AssistantConversationSurface-36aP0hRf.js → AssistantConversationSurface-BOsGik2U.js} +3 -3
  5. package/dist/assets/AssistantSessionCard-DFi6eIIE.js +2 -0
  6. package/dist/assets/AssistantUnreadBadge-B9IS5LPM.js +1 -0
  7. package/dist/assets/AssistantView-yCnV95Dr.js +1 -0
  8. package/dist/assets/AssistantWorkingAvatar-Bp1KXuhO.js +1 -0
  9. package/dist/assets/AssistantsSettingsPage-pPeanepy.js +1 -0
  10. package/dist/assets/BinaryFileFallback-C3sgeTIN.js +1 -0
  11. package/dist/assets/BtwPanel-BvqTaKLQ.js +6 -0
  12. package/dist/assets/BusyDots-CU41Xq9E.js +4 -0
  13. package/dist/assets/ChatContainer-DXRL0aB2.js +65 -0
  14. package/dist/assets/ChatView-AcZ0Fl7_.js +3 -0
  15. package/dist/assets/{DiagramView-DGnmjS2b.js → DiagramView-CyGBR2qn.js} +1 -1
  16. package/dist/assets/{DiffView-Bbit6OZ8.js → DiffView-z4ArmNTm.js} +2 -2
  17. package/dist/assets/DiffViewToggle-BBxj5Yby.js +1 -0
  18. package/dist/assets/ErrorBoundary-B4CbFTTY.js +1 -0
  19. package/dist/assets/FadeInOnReveal-C2UMs63r.js +1 -0
  20. package/dist/assets/{GuiPluginMount-TC5FELtQ.js → GuiPluginMount-JWmLTeLO.js} +1 -1
  21. package/dist/assets/GuiPluginPage-BB6qitNb.js +1 -0
  22. package/dist/assets/GuiPluginSurface-CKW1UPZD.js +1 -0
  23. package/dist/assets/GuiPluginTitlebarItems-Bmo9W0sn.js +1 -0
  24. package/dist/assets/{GuiPluginWindow-BkAFJyFd.js → GuiPluginWindow-B-6WWulE.js} +1 -1
  25. package/dist/assets/Icon-CMNOrIAp.js +1 -0
  26. package/dist/assets/ImageLoadingPlaceholder-FqoECDc5.js +1 -0
  27. package/dist/assets/{LoadingImage-Df22Rkor.js → LoadingImage-U4z75PsW.js} +1 -1
  28. package/dist/assets/MarkdownRenderer-CckbVkti.js +2 -0
  29. package/dist/assets/{MarkdownRendererImpl-D8q0FMnr.js → MarkdownRendererImpl-CO17sAsd.js} +1 -1
  30. package/dist/assets/MarkstreamRendererImpl-FOsYqre1.js +3 -0
  31. package/dist/assets/{MobileAssistantSettingsPage-Dgq5FMho.js → MobileAssistantSettingsPage-CYnXMlRV.js} +1 -1
  32. package/dist/assets/MobileAssistantTab-CtIoTTOV.js +1 -0
  33. package/dist/assets/{MobileBtwPage-DQUkSO6N.js → MobileBtwPage-CqiEtHuG.js} +1 -1
  34. package/dist/assets/{MobileChangesSurface-DsYNmAuM.js → MobileChangesSurface-D7AUZxEK.js} +2 -2
  35. package/dist/assets/MobileChatScreen-CCNqpS3r.js +1 -0
  36. package/dist/assets/MobileDetailNavigation-BncgS1Gb.js +1 -0
  37. package/dist/assets/MobileFilesSurface-D6Fzko7m.js +2 -0
  38. package/dist/assets/MobileHtmlNetworkBoundary-DXkpR8iy.js +2 -0
  39. package/dist/assets/MobileOverlayPanel-dc8EKqfh.js +1 -0
  40. package/dist/assets/MobileResizableSheet-Ddf0s-Dp.js +1 -0
  41. package/dist/assets/{MobileSettingsTab-DaTtRHo1.js → MobileSettingsTab-DoCREe-W.js} +1 -1
  42. package/dist/assets/{MobileShareBridge-CZpFYmiy.js → MobileShareBridge-DIIhDUmO.js} +1 -1
  43. package/dist/assets/MobileSurface-bA5ONMXf.js +1 -0
  44. package/dist/assets/MobileTabPageHeader-DuWdhFAU.js +1 -0
  45. package/dist/assets/ModelLogo-Bb63bM4S.js +1 -0
  46. package/dist/assets/ModelSelector-Dpt_OeOA.js +1 -0
  47. package/dist/assets/MultiRunWindow-CIueenaz.js +1 -0
  48. package/dist/assets/OnboardingScreen-DQz9jluT.js +1 -0
  49. package/dist/assets/OverlayScrollbar-Dsj-t--1.js +1 -0
  50. package/dist/assets/{PierreDiffViewer-DVKsdwJR.js → PierreDiffViewer-BPY2vUDa.js} +3 -3
  51. package/dist/assets/ProviderLogo-pBVtlU5X.js +1 -0
  52. package/dist/assets/{RemoteAssistantSessionCard-DAoFvZht.js → RemoteAssistantSessionCard-DV_D7Lmx.js} +1 -1
  53. package/dist/assets/RemoteDesktopPanel-DvF7mNsC.js +1 -0
  54. package/dist/assets/ScheduledTasksDialog-DbV9D6t0.js +3 -0
  55. package/dist/assets/ScrollableOverlay-T7ADHNbV.js +1 -0
  56. package/dist/assets/SettingsGroup-ZY4tnwQZ.js +1 -0
  57. package/dist/assets/SettingsView-C1cFkPEn.js +29 -0
  58. package/dist/assets/SettingsWindow-CPqIwaDs.js +1 -0
  59. package/dist/assets/SetupTourDialog-D8MqnViH.js +1 -0
  60. package/dist/assets/{SyncActions-CrOoREWF.js → SyncActions-BUkOsuvk.js} +1 -1
  61. package/dist/assets/TerminalView-CoeBAVr1.js +8 -0
  62. package/dist/assets/TextSelectionMenu-CZWUVT4Q.js +11 -0
  63. package/dist/assets/{ToolOutputDialog-DpaaQ1uZ.js → ToolOutputDialog-DLxoc22s.js} +1 -1
  64. package/dist/assets/{YuriLogo-Cp6vWDWp.js → YuriLogo-CnV3RxpE.js} +1 -1
  65. package/dist/assets/{YuriWordmark-CLGHwobA.js → YuriWordmark-Bn5KdqMC.js} +1 -1
  66. package/dist/assets/{assistant-attachment-cache-bRIIESGe.js → assistant-attachment-cache-Y7yhlQcv.js} +1 -1
  67. package/dist/assets/assistantMessagePreview-DyHFl0Zy.js +1 -0
  68. package/dist/assets/assistantQueries-BLm65-22.js +1 -0
  69. package/dist/assets/{auto-read-context-ClBUErN2.js → auto-read-context-eOYxlJjR.js} +1 -1
  70. package/dist/assets/{capgoAdapter-pfQJmvW2.js → capgoAdapter-DYyTs76s.js} +1 -1
  71. package/dist/assets/card-Csh0Af72.js +1 -0
  72. package/dist/assets/chatUpwardIntent-CivAb4ux.js +1 -0
  73. package/dist/assets/checkbox-CK288doZ.js +1 -0
  74. package/dist/assets/{client-B_907PBv.js → client-QcYZg8_d.js} +3 -3
  75. package/dist/assets/collapsible-C8knwYWk.js +1 -0
  76. package/dist/assets/{connection-hint-B-kOWome.js → connection-hint-BboPqLXQ.js} +1 -1
  77. package/dist/assets/context-menu-CBjNNTDr.js +1 -0
  78. package/dist/assets/{desktopHosts-BsTrBVja.js → desktopHosts-DFa3lf0i.js} +1 -1
  79. package/dist/assets/{desktopRelayRestore-BxbRKak_.js → desktopRelayRestore-CGq-Ylgq.js} +1 -1
  80. package/dist/assets/{device-EIfSfSWk.js → device-CtdJ8KBJ.js} +1 -1
  81. package/dist/assets/diagram-DuMpiER6.js +1 -0
  82. package/dist/assets/dialog-BPtWiCtF.js +1 -0
  83. package/dist/assets/dropdown-menu-BWP9Nxwt.js +1 -0
  84. package/dist/assets/{es-DqYZgeC6.js → es-BelVk9R_.js} +3 -3
  85. package/dist/assets/{fileMentionTouchSelection-BQEUty_A.js → fileMentionTouchSelection-3GZYNOSd.js} +1 -1
  86. package/dist/assets/{fileReferenceActions-TmbrIHBI.js → fileReferenceActions-DEUhs_7h.js} +1 -1
  87. package/dist/assets/{fr-BHaun7Zq.js → fr-DtUzwB6h.js} +3 -3
  88. package/dist/assets/{gitApi-CoVwjIDy.js → gitApi-CwF3k_rj.js} +1 -1
  89. package/dist/assets/gitApiHttp-C8AU1uiY.js +3 -0
  90. package/dist/assets/githubAuthQueries-IJPWBo0B.js +1 -0
  91. package/dist/assets/historyImportQueries-B3QBdaKo.js +1 -0
  92. package/dist/assets/host-DchPrZpw.js +1 -0
  93. package/dist/assets/{i18n-DXc6czdR.js → i18n-BU8XOKjS.js} +1 -1
  94. package/dist/assets/{icons-Bd-INsoy.js → icons-C25QjTQy.js} +1 -1
  95. package/dist/assets/{imageSource-BR4C9TuS.js → imageSource-B39pFDdo.js} +1 -1
  96. package/dist/assets/input-DHQ_HUNG.js +1 -0
  97. package/dist/assets/{input-store-BSJBQTMi.js → input-store-PqhVEhUI.js} +1 -1
  98. package/dist/assets/insertionBoundaries-6VDrFW8E.js +1 -0
  99. package/dist/assets/{ja-BGNugvrx.js → ja-CWta3CAu.js} +3 -3
  100. package/dist/assets/kbd-CVXHcAl2.js +1 -0
  101. package/dist/assets/{ko-CGbNBfDe.js → ko-CJFoAZPE.js} +3 -3
  102. package/dist/assets/main-BGVs-a-z.js +2 -0
  103. package/dist/assets/main-CHSIwKhf.js +169 -0
  104. package/dist/assets/{markdownHeightCache-CHGGNhWI.js → markdownHeightCache-BsFEgT5Y.js} +1 -1
  105. package/dist/assets/mcpQueries-BGNMOHKb.js +1 -0
  106. package/dist/assets/miniChat-ByGJ6Q_E.js +2 -0
  107. package/dist/assets/mobile-txc-T67P.js +2 -0
  108. package/dist/assets/{mobileBackNavigation-C94n2eLT.js → mobileBackNavigation-Cpb7IiCG.js} +1 -1
  109. package/dist/assets/mobileConnections-5xypkCyd.js +2 -0
  110. package/dist/assets/multirun-B5_-5JYt.js +3 -0
  111. package/dist/assets/{native-config-DVg8_Zx1.js → native-config-DLw0Zm99.js} +1 -1
  112. package/dist/assets/{nativeComposerCover-Bhv1EKPT.js → nativeComposerCover-Btj57e5V.js} +1 -1
  113. package/dist/assets/navigation-C2qzByuq.js +2 -0
  114. package/dist/assets/openRemoteProjectSession-BFp0YlF-.js +1 -0
  115. package/dist/assets/openSessionFromDeepLink-DUPajGkN.js +2 -0
  116. package/dist/assets/pathNormalization-ewtPqJWn.js +1 -0
  117. package/dist/assets/{pl-k8-4URiE.js → pl-BwZ6CWJm.js} +3 -3
  118. package/dist/assets/platform-CNdx57HN.js +1 -0
  119. package/dist/assets/pluginPresentation-wl8POjDE.js +2 -0
  120. package/dist/assets/{project-preview-BCtFY4Rg.js → project-preview-CIkGbBPZ.js} +1 -1
  121. package/dist/assets/{projectActions-BPmI9_mW.js → projectActions-D84EVh3q.js} +1 -1
  122. package/dist/assets/{prompt-attachment-upload-B5DHrw6U.js → prompt-attachment-upload-D1c308Ba.js} +1 -1
  123. package/dist/assets/{pt-BR-DdwCzXBH.js → pt-BR-DPAcgEDe.js} +3 -3
  124. package/dist/assets/pwa-FAC1qERc.js +2 -0
  125. package/dist/assets/queue-abort-optimistic-s-DVErY6.js +1 -0
  126. package/dist/assets/{quota-CqWNkFzw.js → quota-BEyQ6n-w.js} +1 -1
  127. package/dist/assets/{reference-history-IEuzG8KC.js → reference-history-B9H6MkUC.js} +1 -1
  128. package/dist/assets/{remote-input-store-C6UIEZxp.js → remote-input-store-CquhCIoR.js} +1 -1
  129. package/dist/assets/remoteProjectQueries-BunVM5PM.js +1 -0
  130. package/dist/assets/remoteSessionReference-BHvAalXk.js +1 -0
  131. package/dist/assets/renderElectronMiniChatApp-D3Vd8ffe.js +2 -0
  132. package/dist/assets/renderMobileApp-BulRo1RJ.js +17 -0
  133. package/dist/assets/{runtime-file-download-BWeoSXRb.js → runtime-file-download-wMVtKk2v.js} +1 -1
  134. package/dist/assets/runtime-file-resource-DKJJoOOc.js +6 -0
  135. package/dist/assets/{runtimeConfig-CyvlrO58.js → runtimeConfig-8Z7A5ncj.js} +1 -1
  136. package/dist/assets/runtimeEndpointReset-D5p8n8Z1.js +4 -0
  137. package/dist/assets/{scheduledTaskNavigation-VVTOq9n2.js → scheduledTaskNavigation-DpfZSGu8.js} +1 -1
  138. package/dist/assets/select-BL02HQzN.js +1 -0
  139. package/dist/assets/sessionChangeSummary-BCF9VwAA.js +1 -0
  140. package/dist/assets/sessionLookup-CLqpm_Sq.js +1 -0
  141. package/dist/assets/sessionOwnership-Zl2YX7dC.js +2 -0
  142. package/dist/assets/shortcuts-2XAaIaaK.js +1 -0
  143. package/dist/assets/sortable-tabs-strip-BsjgK90l.js +1 -0
  144. package/dist/assets/speechSettingsQueries-cQ6M7fJ3.js +1 -0
  145. package/dist/assets/src-DYCPWwUH.css +2 -0
  146. package/dist/assets/{store-C1ifDY0C.js → store-DWS9gJPW.js} +4 -4
  147. package/dist/assets/summaries-BQMyJaaw.js +1 -0
  148. package/dist/assets/switch-ps5COI8_.js +1 -0
  149. package/dist/assets/{terminalApi-DXvEquBF.js → terminalApi-D2ECmoAo.js} +1 -1
  150. package/dist/assets/textarea-DXs25Z8k.js +1 -0
  151. package/dist/assets/{timeFormat-dCsf2MQv.js → timeFormat-CUbYRR40.js} +1 -1
  152. package/dist/assets/tooltip-DYZonA8U.js +1 -0
  153. package/dist/assets/truncated-path-DJfRXALm.js +1 -0
  154. package/dist/assets/types-b90cIxfC.js +2 -0
  155. package/dist/assets/ui-z2JsXLmb.js +13 -0
  156. package/dist/assets/{uk-DU-7fAP4.js → uk-Dw75NtHH.js} +3 -3
  157. package/dist/assets/useAppFontEffects-tKUtvOIn.js +7 -0
  158. package/dist/assets/{useAssistantUIStore-CpJZ4Rqs.js → useAssistantUIStore-DEiMjSqf.js} +1 -1
  159. package/dist/assets/useDesktopWindowControlsLayout-CNAzDasQ.js +1 -0
  160. package/dist/assets/{useDictation-CZzAlsW0.js → useDictation-CUADIj-o.js} +1 -1
  161. package/dist/assets/{useEffectiveDirectory-DiJBIfai.js → useEffectiveDirectory-hu13SCnK.js} +1 -1
  162. package/dist/assets/{useFontPreferences-BiRBKhti.js → useFontPreferences-BY0TXvWI.js} +1 -1
  163. package/dist/assets/{useGitStore-Bv8xmXDa.js → useGitStore-Dsh_ZiT1.js} +1 -1
  164. package/dist/assets/{useInlineCommentDraftStore-B2mkmAZd.js → useInlineCommentDraftStore-C75YIRui.js} +1 -1
  165. package/dist/assets/useMcpConfigStore-BfdokvWe.js +1 -0
  166. package/dist/assets/useMobileSwipeActions-jAZpJVTB.js +1 -0
  167. package/dist/assets/useMobileTranscriptSyncHint-XT7TWzKn.js +10 -0
  168. package/dist/assets/useModelLists-DrXScJk8.js +1 -0
  169. package/dist/assets/useOpenCodeReadiness-DLqT6fD5.js +1 -0
  170. package/dist/assets/usePluginsStore-DYO8nss8.js +1 -0
  171. package/dist/assets/useProjectGitActions-CYWPTGNa.js +1 -0
  172. package/dist/assets/{useProjectGitStore-DzU2pvrH.js → useProjectGitStore-C1Tswys-.js} +1 -1
  173. package/dist/assets/{useProjectRuntimeAPIs-tjGuODhu.js → useProjectRuntimeAPIs-BpdOaT67.js} +1 -1
  174. package/dist/assets/useQuotaStore-CZU1NU_Z.js +1 -0
  175. package/dist/assets/{useSessionBtwStore-CwvlMabN.js → useSessionBtwStore-PdQPx7tm.js} +2 -2
  176. package/dist/assets/{useStreamingTextThrottle-C9SaKeil.js → useStreamingTextThrottle-Btl31Wol.js} +1 -1
  177. package/dist/assets/{useUIStore-C3ewjGgP.js → useUIStore-P32bzAJc.js} +1 -1
  178. package/dist/assets/worktreeManager-DIrqBI6K.js +1 -0
  179. package/dist/assets/{worktreeSourceBranchPreference-CuLKwxkx.js → worktreeSourceBranchPreference-DncAXqYk.js} +1 -1
  180. package/dist/assets/{zh-CN-DOHH7nht.js → zh-CN-D5Jwengx.js} +3 -3
  181. package/dist/assets/{zh-TW-t1qlXGOg.js → zh-TW-CbbaPcxZ.js} +3 -3
  182. package/dist/index.html +18 -17
  183. package/dist/mini-chat.html +18 -17
  184. package/dist/mobile.html +2 -2
  185. package/package.json +1 -1
  186. package/server/index.js +1 -0
  187. package/server/lib/assistants/builtin-skills.js +1 -1
  188. package/server/lib/assistants/builtin-skills.test.js +1 -0
  189. package/server/lib/gui-customization/DOCUMENTATION.md +37 -1
  190. package/server/lib/gui-customization/projects-client.mjs +14 -3
  191. package/server/lib/gui-customization/projects-lifecycle.js +89 -0
  192. package/server/lib/gui-customization/projects-lifecycle.test.js +199 -0
  193. package/server/lib/gui-customization/projects.js +19 -3
  194. package/server/lib/gui-customization/projects.test.js +6 -0
  195. package/server/lib/gui-customization/session-skill.js +3 -3
  196. package/server/lib/gui-customization/session-skill.test.js +20 -1
  197. package/server/lib/gui-customization/skill/SKILL.md +5 -1
  198. package/server/lib/gui-customization/skill/references/deep-links.md +43 -0
  199. package/server/lib/gui-customization/skill/references/gui-api.md +50 -1
  200. package/server/lib/gui-customization/skill/references/projects.md +49 -0
  201. package/server/lib/opencode/DOCUMENTATION.md +1 -0
  202. package/server/lib/opencode/custom-provider.test.js +41 -0
  203. package/server/lib/opencode/feature-routes-runtime.js +5 -0
  204. package/server/lib/opencode/feature-routes-runtime.test.js +6 -0
  205. package/server/lib/opencode/settings-helpers.js +9 -0
  206. package/server/lib/opencode/settings-helpers.test.js +10 -0
  207. package/dist/assets/AgentAvatar-CHCjMxCF.js +0 -1
  208. package/dist/assets/AgentSelector-uBoLtut8.js +0 -1
  209. package/dist/assets/ArchivedSessionsDialog-DZcicxVO.js +0 -1
  210. package/dist/assets/AssistantSessionCard-CZ-1oJiE.js +0 -2
  211. package/dist/assets/AssistantUnreadBadge-p9mkpbMC.js +0 -1
  212. package/dist/assets/AssistantView-8fyAae7J.js +0 -1
  213. package/dist/assets/AssistantWorkingAvatar-CoxhuMvM.js +0 -1
  214. package/dist/assets/AssistantsSettingsPage-DD6spbXz.js +0 -1
  215. package/dist/assets/BinaryFileFallback-DgYaMG9f.js +0 -1
  216. package/dist/assets/BtwPanel-BkobGcf3.js +0 -6
  217. package/dist/assets/BusyDots-COTTwItx.js +0 -4
  218. package/dist/assets/ChatContainer-BfQ7RXwY.js +0 -65
  219. package/dist/assets/ChatView-ByMRjY1h.js +0 -3
  220. package/dist/assets/DiffViewToggle-BwJ6MYB7.js +0 -1
  221. package/dist/assets/ErrorBoundary-D7QcwhmL.js +0 -1
  222. package/dist/assets/FadeInOnReveal-B3uT04YJ.js +0 -1
  223. package/dist/assets/GuiPluginPage-BPjU8N49.js +0 -1
  224. package/dist/assets/GuiPluginSurface-CYPH6XzX.js +0 -1
  225. package/dist/assets/GuiPluginTitlebarItems-DxFINwbr.js +0 -1
  226. package/dist/assets/Icon-DmykXZL1.js +0 -1
  227. package/dist/assets/ImageLoadingPlaceholder-DgM_EFHn.js +0 -1
  228. package/dist/assets/MarkdownRenderer-VvziwyJB.js +0 -2
  229. package/dist/assets/MarkstreamRendererImpl-U_m_ZKG7.js +0 -3
  230. package/dist/assets/MobileAssistantTab-CMIQansR.js +0 -1
  231. package/dist/assets/MobileChatScreen-p356_BCN.js +0 -1
  232. package/dist/assets/MobileDetailNavigation-ldTzGo19.js +0 -1
  233. package/dist/assets/MobileFilesSurface-CF3EW_SK.js +0 -2
  234. package/dist/assets/MobileHtmlNetworkBoundary-DlPF4iPS.js +0 -2
  235. package/dist/assets/MobileOverlayPanel-C36VWWmN.js +0 -1
  236. package/dist/assets/MobileResizableSheet-CqphcaKq.js +0 -1
  237. package/dist/assets/MobileSurface-cmaGf3hZ.js +0 -1
  238. package/dist/assets/MobileTabPageHeader-D6P4K98S.js +0 -1
  239. package/dist/assets/ModelLogo-BkbD514M.js +0 -1
  240. package/dist/assets/ModelSelector-EmtltPnd.js +0 -1
  241. package/dist/assets/MultiRunWindow-CeSxAB8w.js +0 -1
  242. package/dist/assets/OnboardingScreen-BubjTNcy.js +0 -1
  243. package/dist/assets/OverlayScrollbar-D6vmoMkQ.js +0 -1
  244. package/dist/assets/ProviderLogo-DA98yu7M.js +0 -1
  245. package/dist/assets/RemoteDesktopPanel-f3vRj4ZP.js +0 -1
  246. package/dist/assets/ScheduledTasksDialog-D_hBP47Y.js +0 -3
  247. package/dist/assets/ScrollableOverlay-stxT7gLf.js +0 -1
  248. package/dist/assets/SettingsGroup-CvaPYznp.js +0 -1
  249. package/dist/assets/SettingsView-DEU94-h1.js +0 -29
  250. package/dist/assets/SettingsWindow-DMVAV_el.js +0 -1
  251. package/dist/assets/SetupTourDialog-BlR7FJvd.js +0 -1
  252. package/dist/assets/TerminalView-Xcwp3SG1.js +0 -8
  253. package/dist/assets/TextSelectionMenu-h8iUeNzE.js +0 -11
  254. package/dist/assets/assistantMessagePreview-DLBvPQtq.js +0 -1
  255. package/dist/assets/assistantQueries-NdPqu6rx.js +0 -1
  256. package/dist/assets/card-DmysoUAV.js +0 -1
  257. package/dist/assets/chatUpwardIntent-B2NrGMm-.js +0 -1
  258. package/dist/assets/checkbox-BMN5hAVm.js +0 -1
  259. package/dist/assets/collapsible-Z0IjDAMO.js +0 -1
  260. package/dist/assets/context-menu-CKlB6wxo.js +0 -1
  261. package/dist/assets/diagram-CzY6n_4N.js +0 -1
  262. package/dist/assets/dialog-BeFBA6ja.js +0 -1
  263. package/dist/assets/dropdown-menu-BblI9sN2.js +0 -1
  264. package/dist/assets/gitApiHttp-Dd-FwgCq.js +0 -3
  265. package/dist/assets/githubAuthQueries-DqregESf.js +0 -1
  266. package/dist/assets/historyImportQueries-D00KjUT2.js +0 -1
  267. package/dist/assets/host-ChBHl_Vl.js +0 -1
  268. package/dist/assets/input-Cf16qJ6g.js +0 -1
  269. package/dist/assets/insertionBoundaries-Btqgsu1M.js +0 -1
  270. package/dist/assets/kbd-CamdaxHJ.js +0 -1
  271. package/dist/assets/main-CXH2hObl.js +0 -169
  272. package/dist/assets/main-ClH7cLKr.js +0 -2
  273. package/dist/assets/mcpQueries-Rmp1BKeo.js +0 -1
  274. package/dist/assets/miniChat-B_Bw6udu.js +0 -2
  275. package/dist/assets/mobile-BR73yoNi.js +0 -2
  276. package/dist/assets/mobileConnections-x07fHO_5.js +0 -2
  277. package/dist/assets/multirun-CKQymP08.js +0 -3
  278. package/dist/assets/navigation-D1klsD7k.js +0 -2
  279. package/dist/assets/openRemoteProjectSession-DNr74gHD.js +0 -1
  280. package/dist/assets/platform-CiUKDeXd.js +0 -1
  281. package/dist/assets/pluginPresentation-DtyC8NF2.js +0 -2
  282. package/dist/assets/pwa-CtDladgB.js +0 -2
  283. package/dist/assets/queue-abort-optimistic-DFbWDRKT.js +0 -1
  284. package/dist/assets/remoteProjectQueries-C8382jM8.js +0 -1
  285. package/dist/assets/remoteSessionReference-ex07CtrZ.js +0 -1
  286. package/dist/assets/renderElectronMiniChatApp-DM9y9qXo.js +0 -2
  287. package/dist/assets/renderMobileApp-DqpPYtZI.js +0 -17
  288. package/dist/assets/runtime-file-resource-Bc_ss-sW.js +0 -2
  289. package/dist/assets/runtimeEndpointReset-C0zNrsI9.js +0 -4
  290. package/dist/assets/select-vZCgcnYG.js +0 -1
  291. package/dist/assets/session-startup-barrier-DT-hIBRf.js +0 -1
  292. package/dist/assets/sessionLookup-DQOiycHr.js +0 -1
  293. package/dist/assets/sessionOwnership-BjhXe6pi.js +0 -2
  294. package/dist/assets/shortcuts-WkN3Gh8v.js +0 -1
  295. package/dist/assets/sortable-tabs-strip-DmtfYPz0.js +0 -1
  296. package/dist/assets/speechSettingsQueries-BmkXNn4w.js +0 -1
  297. package/dist/assets/src-QTj33Z0x.css +0 -2
  298. package/dist/assets/switch-CNmsFYfY.js +0 -1
  299. package/dist/assets/textarea-ZiXxEOHK.js +0 -1
  300. package/dist/assets/tooltip-CpTbxEOE.js +0 -1
  301. package/dist/assets/truncated-path-CcmWjgCQ.js +0 -1
  302. package/dist/assets/types-DpcA-uDW.js +0 -2
  303. package/dist/assets/ui-ee2iN869.js +0 -13
  304. package/dist/assets/useAppFontEffects-rbTKcF0f.js +0 -7
  305. package/dist/assets/useDesktopWindowControlsLayout-BOkRz-p9.js +0 -1
  306. package/dist/assets/useMcpConfigStore-DKTl0PvE.js +0 -1
  307. package/dist/assets/useMobileSwipeActions-XoxrtaUo.js +0 -1
  308. package/dist/assets/useMobileTranscriptSyncHint-DM8WG7kz.js +0 -10
  309. package/dist/assets/useModelLists-Bf60FIJu.js +0 -1
  310. package/dist/assets/useOpenCodeReadiness-Dm6BjA1T.js +0 -1
  311. package/dist/assets/usePluginsStore-Du4WlceO.js +0 -1
  312. package/dist/assets/useProjectGitActions-D3B9ma9z.js +0 -1
  313. package/dist/assets/useQuotaStore-CSn2pk3T.js +0 -1
  314. package/dist/assets/worktreeManager-DGu8M01Z.js +0 -1
  315. package/dist/assets/yuriEvents-BFrD5fMU.js +0 -5
@@ -1,12 +1,14 @@
1
1
  import path from 'node:path';
2
2
  import { authorizeScheduledTaskSkillRequest } from '../scheduled-tasks/session-skill-contract.js';
3
3
  import { remoteProjectOperations, validRemoteProjectInput, runRemoteProjectOperation } from './projects-remote.js';
4
+ import { lifecycleOperations, validLifecycleInput } from './projects-lifecycle.js';
4
5
 
5
6
  export const PROJECTS_SKILL_PATH = '/api/yuri/session-skills/projects';
6
7
 
7
8
  const projectResult = ({ id, path, label }) => ({ id, path, ...(label ? { label } : {}) });
8
9
  const validInput = (operation, input) => {
9
10
  if (remoteProjectOperations.includes(operation)) return validRemoteProjectInput(operation, input);
11
+ if (lifecycleOperations.includes(operation)) return validLifecycleInput(operation, input);
10
12
  if (!input || typeof input !== 'object' || Array.isArray(input)) return false;
11
13
  const allowed = operation === 'add' ? ['path', 'label'] : [];
12
14
  if (Object.keys(input).some((key) => !allowed.includes(key))) return false;
@@ -16,22 +18,31 @@ const validInput = (operation, input) => {
16
18
  };
17
19
 
18
20
  /** Session-bound Host registration; the shared project registry owns persistence. */
19
- export function registerProjectsSkill(app, { express, getIsSharedOpenCodeService, getOpenCodeAuthHeaders, createClient, registerProject, readSettingsFromDiskStrict, sanitizeProjects, remoteHostGateway }) {
21
+ export function registerProjectsSkill(app, { express, getIsSharedOpenCodeService, getOpenCodeAuthHeaders, createClient, registerProject, readSettingsFromDiskStrict, sanitizeProjects, remoteHostGateway, sessionLifecycle }) {
20
22
  app.post(PROJECTS_SKILL_PATH, express.json({ limit: '16kb' }), async (req, res) => {
21
23
  res.setHeader('Cache-Control', 'no-store');
22
24
  if (!getIsSharedOpenCodeService() || !authorizeScheduledTaskSkillRequest(req, getOpenCodeAuthHeaders())) return res.status(403).json({ error: 'Forbidden' });
23
25
  const { sessionID, operation, input = {} } = req.body ?? {};
24
26
  if (typeof sessionID !== 'string' || !sessionID || sessionID.length > 256
25
- || !['describe', 'list', 'add', ...remoteProjectOperations].includes(operation) || !validInput(operation, input)) return res.status(400).json({ code: 'invalid_input', error: 'Invalid project input' });
27
+ || !['describe', 'list', 'add', ...lifecycleOperations, ...remoteProjectOperations].includes(operation) || !validInput(operation, input)) return res.status(400).json({ code: 'invalid_input', error: 'Invalid project input' });
26
28
  try {
27
29
  const session = await createClient().session.get({ sessionID });
28
30
  const hostOrigin = `http://${req.socket.localAddress === '::1' ? '[::1]' : '127.0.0.1'}:${req.socket.localPort}`;
29
31
  if (session.metadata?.yuri?.scheduledTaskSkill?.hostOrigin !== hostOrigin) return res.status(403).json({ error: 'Session is not bound to this Host' });
30
- if (operation === 'describe') return res.json({ supported: true, remoteSupported: Boolean(remoteHostGateway?.supported && remoteHostGateway?.acquireTask), inputs: { add: '{path: existing absolute Host directory, label?: display name}', list: '{}',
32
+ if (operation === 'describe') return res.json({ supported: true, remoteSupported: Boolean(remoteHostGateway?.supported && remoteHostGateway?.acquireTask), lifecycleSupported: Boolean(sessionLifecycle), inputs: { add: '{path: existing absolute Host directory, label?: display name}', list: '{}',
33
+ 'task-sessions': '{directory?: absolute bound-Host directory, cursor?: returned nextCursor} bounded Host index metadata, not full upstream history',
34
+ 'session-state': '{sessionID} read Host archive authority and nullable task projection; not upstream existence or live UI state',
35
+ 'settle-session': '{sessionID} task-view 「归档」: moves the session to the archived shelf; reversible, returns to active on new activity', 'unsettle-session': '{sessionID} restores a task-view-archived session to active',
36
+ 'archive-session': '{sessionID, directory?} session-level archive (archivedAt metadata); not the task-view 「归档」', 'unarchive-session': '{sessionID, directory?}',
31
37
  'remote-hosts': '{}', 'add-remote': '{target: {hubId,hostId,instanceId} from remote-hosts, path: existing absolute remote directory, label?}',
32
38
  'remote-projects': '{}', sessions: '{target, directory, cursor?}', 'read-session': '{target, directory, sessionID, cursor?}',
33
39
  'create-session': '{target, directory, sessionID: new caller-generated ID, title?}', 'prompt-session': '{target, directory, sessionID, messageID: stable caller-generated ID, text}' },
34
40
  completion: 'add and add-remote return the persisted project and created=true/false. add-remote registers on the target Host, then saves the Hub reference. Registration does not clone/create files, open a session or change an existing active selection. Retry the same target and path safely after an interrupted response.' });
41
+ if (lifecycleOperations.includes(operation)) {
42
+ if (!sessionLifecycle) return res.status(501).json({ code: 'unsupported', error: 'Session lifecycle is unavailable on this Host' });
43
+ const result = await sessionLifecycle(operation, input);
44
+ return res.json(result);
45
+ }
35
46
  if (remoteProjectOperations.includes(operation)) {
36
47
  const controller = new AbortController();
37
48
  const abort = () => controller.abort();
@@ -60,6 +71,11 @@ export function registerProjectsSkill(app, { express, getIsSharedOpenCodeService
60
71
  return res.json({ project: projectResult(project), created });
61
72
  } catch (error) {
62
73
  if (res.destroyed) return;
74
+ if (lifecycleOperations.includes(operation)) {
75
+ const status = [400, 403, 404, 409, 501, 503].includes(error?.status) ? error.status : 503;
76
+ const code = ['unsupported', 'session_not_found', 'session_archived', 'not_found', 'directory_mismatch', 'validation_error'].includes(error?.code) ? error.code : 'session_operation_failed';
77
+ return res.status(status).json({ code, error: 'Session operation not confirmed; inspect the same session on the bound Host before retrying.' });
78
+ }
63
79
  const code = ['validation_error', 'project_unavailable', 'remote_unavailable', 'remote_target_mismatch', 'remote_response_invalid'].includes(error?.code) ? error.code : 'project_operation_failed';
64
80
  return res.status(code === 'validation_error' ? 400 : 503).json({ code, error: 'Project operation was not confirmed; inspect the same target before retrying. Never retry against the local Host.' });
65
81
  }
@@ -88,6 +88,12 @@ describe('session project registration API', () => {
88
88
  expect(registerProject).not.toHaveBeenCalled();
89
89
  });
90
90
 
91
+ it('explicitly reports unsupported lifecycle capability instead of falling through to registration', async () => {
92
+ expect(await (await request('describe')).json()).toMatchObject({ lifecycleSupported: false });
93
+ expect((await request('settle-session', { sessionID: 'ses_target' })).status).toBe(501);
94
+ expect(registerProject).not.toHaveBeenCalled();
95
+ });
96
+
91
97
  it('keeps remote discovery under the existing service and per-session admission gate', async () => {
92
98
  expect(await (await request('describe')).json()).toMatchObject({ remoteSupported: true });
93
99
  expect(await (await request('remote-projects')).json()).toEqual({ projects: [], failed: [], complete: true });
@@ -5,7 +5,7 @@ import { remoteConnectionsCommand } from './remote-connections-client.mjs';
5
5
  import { sessionSkillCommand } from './session-skill-command.mjs';
6
6
 
7
7
  const scripts = { 'remote-connections.mjs': './remote-connections-client.mjs', 'projects.mjs': './projects-client.mjs', 'session-skill-command.mjs': './session-skill-command.mjs' };
8
- const files = ['SKILL.md', 'references/projects.md', 'references/appearance.md', 'references/ui-surfaces.md', 'references/plugin-styles.md', 'references/gui-api.md', 'references/workflow.md', 'references/global-pages.md', 'references/work-status.md', 'references/icons.md', 'references/file-previews.md', 'references/preview-exports.md', 'references/remote-connections.md', ...Object.keys(scripts)];
8
+ const files = ['SKILL.md', 'references/projects.md', 'references/appearance.md', 'references/ui-surfaces.md', 'references/plugin-styles.md', 'references/gui-api.md', 'references/workflow.md', 'references/global-pages.md', 'references/work-status.md', 'references/icons.md', 'references/file-previews.md', 'references/preview-exports.md', 'references/remote-connections.md', 'references/deep-links.md', ...Object.keys(scripts)];
9
9
 
10
10
  /** Stage immutable, shipped instructions; never edit the user's global skills/config. */
11
11
  export function createCustomizationSkillInstaller({ yuriDataDir }) {
@@ -31,10 +31,10 @@ export function createCustomizationSkillInstaller({ yuriDataDir }) {
31
31
  };
32
32
  return async (client, sessionID, { remoteBinding, projectBinding } = {}) => {
33
33
  const file = await prepare(Boolean(remoteBinding), Boolean(projectBinding));
34
- const projects = projectBinding ? ` For local/remote project registration, discovering authorized remote machines, or reading/creating/continuing remote sessions, read references/projects.md and run the bound project API helper.\nBound project helper: ${sessionSkillCommand(process.execPath, path.join(path.dirname(file), 'projects.mjs'), Buffer.from(JSON.stringify({ ...projectBinding, sessionID })).toString('base64url'), 'describe')}\n` : ' No bound project helper is provided; project registration and remote project/session access are unavailable through this session skill.';
34
+ const projects = projectBinding ? ` For local/remote project registration, task/session archive and restore, discovering authorized remote machines, or reading/creating/continuing remote sessions, read references/projects.md and run the bound project API helper.\nBound project helper: ${sessionSkillCommand(process.execPath, path.join(path.dirname(file), 'projects.mjs'), Buffer.from(JSON.stringify({ ...projectBinding, sessionID })).toString('base64url'), 'describe')}\n` : ' No bound project helper is provided; project registration, task/session archive and remote project/session access are unavailable through this session skill.';
35
35
  const remote = remoteBinding ? ` For SSH setup/config sync or Relay pairing, use only this bound helper after reading references/remote-connections.md. Bound local desktop helper: ${remoteConnectionsCommand(process.execPath, path.join(path.dirname(file), 'remote-connections.mjs'), Buffer.from(JSON.stringify({ ...remoteBinding, sessionID })).toString('base64url'), 'describe')}` : ' No bound SSH/Relay command is provided: these operations are unavailable in this session. Report that limit and stop this branch; use native Settings or a new supported local desktop session. A script or another capability\'s binding does not enable it. There is no credential/filesystem fallback for this capability.';
36
36
  await client.session.instructions.entry.put({ sessionID, key: 'yuri.customization',
37
- value: `Yuri customization: for adding a directory as a project in Yuri (local or remote), remote sessions, SSH connections, configuration sync, Relay pairing, appearance (themes, CSS/layout, Logo, macOS Dock), work-status widgets, global pages/tabs, custom file parsing/previews, preview exports, or GUI panels/commands/settings, read ${JSON.stringify(file)} first. Use the matching reference and apply changes only when requested.${projects}${remote}`,
37
+ value: `Yuri customization: for adding a directory as a project in Yuri (local or remote), task/session archive or restore (归档/恢复), remote sessions, project/session resource ownership or yuri:// deep links, SSH connections, configuration sync, Relay pairing, appearance (themes, CSS/layout, Logo, macOS Dock), work-status widgets, global pages/tabs, custom file parsing/previews, preview exports, or GUI panels/commands/settings, read ${JSON.stringify(file)} first. Use the matching reference and apply changes only when requested.${projects}${remote}`,
38
38
  });
39
39
  };
40
40
  }
@@ -23,10 +23,24 @@ describe('built-in customization instructions', () => {
23
23
  expect(entry.value.length).toBeLessThan(1500);
24
24
  const file = JSON.parse(entry.value.match(/read (".*?") first/)[1]);
25
25
  expect(await fs.readFile(file, 'utf8')).toContain('name: yuri-customization');
26
- for (const name of ['projects', 'appearance', 'ui-surfaces', 'plugin-styles', 'gui-api', 'workflow', 'global-pages', 'work-status', 'icons', 'file-previews', 'preview-exports', 'remote-connections']) expect((await fs.readFile(path.join(path.dirname(file), 'references', `${name}.md`), 'utf8')).length).toBeGreaterThan(500);
26
+ for (const name of ['projects', 'appearance', 'ui-surfaces', 'plugin-styles', 'gui-api', 'workflow', 'global-pages', 'work-status', 'icons', 'file-previews', 'preview-exports', 'remote-connections', 'deep-links']) expect((await fs.readFile(path.join(path.dirname(file), 'references', `${name}.md`), 'utf8')).length).toBeGreaterThan(500);
27
27
  expect(entry.value).toContain('adding a directory as a project in Yuri');
28
+ expect(entry.value).toContain('task/session archive or restore (归档/恢复)');
28
29
  expect(await fs.readFile(file, 'utf8')).toContain('(references/projects.md)');
30
+ expect(entry.value).toContain('yuri:// deep links');
31
+ expect(entry.value).toContain('project/session resource ownership');
32
+ expect(await fs.readFile(file, 'utf8')).toContain('(references/deep-links.md)');
29
33
  const projects = await fs.readFile(path.join(path.dirname(file), 'references', 'projects.md'), 'utf8');
34
+ expect(await fs.readFile(file, 'utf8')).toContain('(references/projects.md#resource-identity-and-scope)');
35
+ expect(projects).toContain('## Resource identity and scope');
36
+ expect(projects).toContain('target:{hubId,hostId,instanceId}');
37
+ expect(projects).toContain('discovering an identity does not enable another protocol or grant access');
38
+ const deepLinks = await fs.readFile(path.join(path.dirname(file), 'references', 'deep-links.md'), 'utf8');
39
+ expect(deepLinks).toContain('(projects.md#resource-identity-and-scope)');
40
+ expect(deepLinks).toContain('## Resolve before building');
41
+ expect(deepLinks).toContain('remote `sessions` / `read-session` results');
42
+ expect(deepLinks).toContain('`hostId` and `instanceId` are not supported session-link parameters');
43
+ expect(deepLinks).not.toContain('yuri://session/<sessionID>?instanceId=');
30
44
  expect(projects).toContain('POST /api/yuri/session-skills/projects');
31
45
  expect(projects).toContain('commands.add');
32
46
  expect(projects).not.toContain('open \'yuri://');
@@ -55,6 +69,11 @@ describe('built-in customization instructions', () => {
55
69
  expect(projectFile).not.toBe(boundFile);
56
70
  expect(projectEntry).toContain('Bound project helper:');
57
71
  expect(projectEntry).toContain('local/remote project registration');
72
+ expect(projectEntry).toContain('task/session archive and restore');
73
+ expect(projects).toContain('任务归档');
74
+ expect(projects).toContain('会话归档');
75
+ expect(projects).toContain('lifecycleSupported:true');
76
+ expect(await fs.readFile(path.join(path.dirname(projectFile), 'projects.mjs'), 'utf8')).toContain("'settle-session', 'unsettle-session', 'archive-session', 'unarchive-session'");
58
77
  expect(projectEntry).toContain('discovering authorized remote machines');
59
78
  expect(await fs.readFile(path.join(path.dirname(projectFile), 'references', 'projects.md'), 'utf8')).toContain('commands.add-remote');
60
79
  expect(await fs.readFile(path.join(path.dirname(projectFile), 'projects.mjs'), 'utf8')).toContain("'remote-hosts', 'add-remote'");
@@ -1,14 +1,18 @@
1
1
  ---
2
2
  name: yuri-customization
3
- description: Register local or remote Yuri projects, discover authorized remote machines and read/create/continue remote sessions, configure SSH connections, configuration sync and Relay pairing, or customize its GUI through plugins for appearance, pages, widgets, previews, panels and settings.
3
+ description: Register local or remote Yuri projects, archive conversations (task-view 归档 or session archive), discover authorized remote machines and read/create/continue remote sessions, resolve project/session ownership and build yuri:// deep links, configure SSH connections, configuration sync and Relay pairing, or customize its GUI through plugins for appearance, pages, widgets, previews, panels and settings.
4
4
  ---
5
5
 
6
6
  # Yuri customization
7
7
 
8
8
  For adding an existing directory to Yuri's project list, follow [projects](references/projects.md) using this session's bound project API helper. Registration is separate from creating files, cloning or opening a conversation.
9
9
 
10
+ For archiving conversations ("归档", moving tasks to the archived shelf, or session-level archive), use the same bound project helper and [archiving conversations](references/projects.md#archiving-conversations-task-archive-vs-session-archive). The task-view 「归档」 is `settle-session`; do not call UI-authenticated routes or edit Host databases.
11
+
10
12
  For adding a remote project on an authorized machine or working with its sessions, use the same bound project helper and the [remote project workflow](references/projects.md#connected-remote-projects-and-sessions). This grants no SSH setup or new connection permission.
11
13
 
14
+ For locating project/session resources, establish [resource identity and scope](references/projects.md#resource-identity-and-scope) through the available discovery tools. For navigation links, then follow [deep links](references/deep-links.md). Resource discovery, navigation support and authorization are separate capabilities.
15
+
12
16
  For SSH setup, configuration sync or Relay pairing, first check this session's pointer for its exact bound local desktop helper command. Without that command, report unavailable and stop this branch: a script file or another capability's binding does not enable it. With the command, follow [remote connections](references/remote-connections.md). For UI changes, use the plugin workflow below. Its GUI contracts describe Yuri's supported subset of the experimental OpenCode GUI SDK 2.2.0, not every capability in the newest upstream Desktop.
13
17
 
14
18
  ## Workflow
@@ -0,0 +1,43 @@
1
+ # Yuri deep links
2
+
3
+ Use this reference to compose navigation links to Yuri resources. A deep link is navigation only; resource discovery and authorized operations follow [resource identity and scope](projects.md#resource-identity-and-scope).
4
+
5
+ ## Resolve before building
6
+
7
+ 1. Establish the requested resource's owning instance, raw directory and exact existing ID through the available context or discovery tools. For a session ID, use this session's context, the bound helper's `task-sessions`, or remote `sessions` / `read-session` results. `remote-projects` supplies project scope, not session IDs.
8
+ 2. Keep the discovered ownership with the resource, then choose a supported link shape below for the receiving client. Navigation preserves existing IDs; it does not create or rewrite them.
9
+ 3. Report the receiving client's prerequisites separately from the facts confirmed on the generating Host. Finding a remote session does not prove that another client has the corresponding project connected. Missing or ambiguous ownership means report the limitation rather than promise a resolvable link.
10
+
11
+ ## Link shapes
12
+
13
+ Build the URL with `encodeURIComponent` for every id and path. Put paths in the `directory` query key; `dir` and `path` are accepted aliases, but emit `directory`.
14
+
15
+ | Goal | Link | Desktop | Mobile |
16
+ |---|---|---|---|
17
+ | Open a conversation | `yuri://session/<sessionID>?directory=<path>` | yes | yes |
18
+ | Start a new conversation | `yuri://new-session?directory=<path>&prompt=<text>` | yes | yes |
19
+ | Open a project | `yuri://open-project?directory=<path>` | yes | yes |
20
+ | Switch to a configured Host | `yuri://host/<hostId>` | yes | no |
21
+ | Open Settings at a section | `yuri://settings/<section>` | no | yes |
22
+
23
+ `new-session` also accepts `project`, `agent` and `model`; omit them unless the user named them. Unknown routes are ignored without an error.
24
+
25
+ `hostId` and `instanceId` are not supported session-link parameters. The standalone `host` route switches to a saved desktop connection; it does not scope a session link. Discovered target fields are for operations that explicitly accept them, not extra URL fields.
26
+
27
+ Never generate `yuri://connect?...` links yourself. They carry pairing credentials and trigger a user confirmation to import a connection. Do not put tokens, passwords or secrets in any deep link.
28
+
29
+ ## Opening a conversation
30
+
31
+ `sessionID` is the OpenCode session id (`ses_...`). `directory` is the absolute path of the project on the machine where the session runs. Always include it when you know it.
32
+
33
+ Desktop Yuri resolves the link against its local Hub:
34
+
35
+ 1. If the session id is in that Yuri's own session index, it opens it.
36
+ 2. Otherwise `directory` must belong to exactly one Remote Project already connected in that Yuri; Yuri then opens the session through that project.
37
+ 3. In every other case Yuri shows a "conversation not found" notice and opens nothing. It never guesses a machine, and never connects one automatically.
38
+
39
+ A remote link requires the receiving desktop Yuri to have that machine's project associated, using the target machine's own path. After a local-index miss, equal owning paths on different connected machines are ambiguous and will not open. A unique directory match selects the remote route; it does not confirm the session exists or that its content can load. Mobile does not perform this Remote Project lookup; its session links use the connected runtime's session navigation.
40
+
41
+ ## Verification
42
+
43
+ Report the link text, which branch should resolve it (local index or connected Remote Project), and the known limits above. Do not run `open "yuri://..."` to verify unless the user asks, because that moves their running Yuri window.
@@ -4,7 +4,7 @@ The supported contract is OpenCode GUI SDK **2.2.0**. Consult current official d
4
4
 
5
5
  ## Window APIs
6
6
 
7
- - `Command`: command palette and plugin management execution; hidden commands can be called by `ctx.commands.run`. No GUI shortcut registration or slash autocomplete yet.
7
+ - `Command`: palette, plugin management and window keyboard shortcuts. `bind` provides the default chord; hidden commands keep their shortcuts. Users can remap/unbind commands in Settings > Shortcuts. See [Command shortcuts](#command-shortcuts). Slash autocomplete and `ctx.keybinds` remain unsupported.
8
8
  - `TitlebarItem`: global action/status, independent of a session; reactive label/title/icon/busy/pressed. Direct SVG/data-URI icon strings, built-in names and upstream/Yuri differences: [icons](icons.md).
9
9
  - `Panel`: Solid `list/render`, reactive session/tab getters; file panels mount in existing file previews. An independent panel uses a dialog/mobile sheet, not upstream's full draggable workspace layout.
10
10
  - `LinkHandler`: match, exists and open file/custom links. Use `ctx.links.open({ href, base, session })` for navigation. Preserve workspace-relative identity; never resolve against a different session's directory.
@@ -22,6 +22,55 @@ Unsupported registries include upstream `Server`, `ComposerPill`, `Slot`, `FileV
22
22
 
23
23
  Plugin renderers own their Solid/DOM content. Yuri does not implement upstream `ctx.ui` or expose its React components to plugins; follow [CSS variables and styling](plugin-styles.md) and [icons](icons.md) for visual consistency.
24
24
 
25
+ ## Command shortcuts
26
+
27
+ Register one official Command; Yuri owns keyboard dispatch and cleanup:
28
+
29
+ ```ts
30
+ import { Command, Contract, Plugin, Registry, type Command as GuiCommand } from "@opencode/plugin/gui"
31
+
32
+ type YuriCommand = GuiCommand & { readonly priority?: number }
33
+
34
+ export default Plugin.define({
35
+ setup(ctx) {
36
+ ctx.add(Registry.define("yuri.page"), {
37
+ id: "board", title: "Session board",
38
+ render: () => document.createElement("section"),
39
+ })
40
+ const pages = ctx.use(Contract.define<{ open(id: string): boolean }>("yuri.pages"))
41
+ const command: YuriCommand = {
42
+ id: "open-board",
43
+ title: "Open session board",
44
+ bind: "mod+m",
45
+ priority: 10,
46
+ run() {
47
+ const state = pages()
48
+ if (state.status === "active") state.value.open("board")
49
+ },
50
+ }
51
+ ctx.add(Command, command)
52
+ },
53
+ })
54
+ ```
55
+
56
+ `priority` is Yuri-only and finite; upstream hosts may ignore it. Higher wins.
57
+ Built-in defaults have priority 0 and win ties, so a positive value can override
58
+ them. Explicit user mappings always win over developer priority. Equal-priority
59
+ plugins resolve by stable command identity, not asynchronous loading order.
60
+ `mod` means Command on macOS Electron, Ctrl elsewhere (browsers keep their existing
61
+ platform matcher). Electron menu overrides require an updated desktop installer;
62
+ browser/OS/editor shortcuts intercepted before the page are not overridable here.
63
+
64
+ Keep `enabled` reactive when command availability changes. `hidden` hides only
65
+ the palette entry. `scope` limits focus to a CSS selector; unmodified keys yield
66
+ to text fields unless `editable:true`. A synchronous `run()` return of `false`
67
+ declines the key; asynchronous completion cannot undo event consumption.
68
+ Already-consumed events, IME, terminal-owned keys, active leader follow-ups and
69
+ Escape interruption retain host ownership. Prefer declarative commands to
70
+ installing document listeners. Disabling, replacing, failing or unloading a
71
+ plugin revokes its bindings without affecting other plugins.
72
+ Electron's Cmd+Q quit guard remains reserved regardless of plugin priority.
73
+
25
74
  ## Yuri supplemental registries and contracts
26
75
 
27
76
  - `yuri.theme`, `yuri.branding`: see [appearance](appearance.md).
@@ -5,6 +5,25 @@ session's Yuri customization pointer. This is a Host capability, not a GUI plugi
5
5
  or a desktop deep link. Registration does not create files, clone a repository,
6
6
  open a conversation or switch an existing active project.
7
7
 
8
+ ## Resource identity and scope
9
+
10
+ Resolve ownership before operating on a project/session or composing a navigation link:
11
+
12
+ 1. Discover this caller's capabilities through the bound helper's `describe`, or the contact's granted project tools. Use the returned operations and their scope; a missing binding or unsupported capability is an explicit limit.
13
+ 2. For bound-Host resources, use exact IDs and raw directories from this session's context or the relevant `list` / `task-sessions` result. The bound Host is the helper's execution target, not necessarily the computer displaying Yuri. Index results have the completeness limits described below.
14
+ 3. For remote resources, discover the project or machine through `remote-projects` / `remote-hosts`, then query its sessions with `sessions` or `read-session`. Keep the returned `target:{hubId,hostId,instanceId}` with each resource's raw directory and session ID:
15
+
16
+ | Field | Meaning |
17
+ |---|---|
18
+ | `hubId` | The Hub whose authorized connections this caller is using. |
19
+ | `hostId` | A connection identity within that Hub, not a universal machine ID. |
20
+ | `instanceId` | The target Yuri instance's identity, independent of which connection reaches it. |
21
+
22
+ Different Hubs can use different connection IDs for the same instance. A worker on the target instance need not know another Hub's connection ID. Use identities actually returned to this caller; names, addresses, equal paths and session-ID structure are not ownership evidence.
23
+ 4. Preserve the complete reference for operations that accept it. Each operation or navigation route independently defines which fields it accepts; discovering an identity does not enable another protocol or grant access. For links, serialize only the fields documented in [deep links](deep-links.md).
24
+
25
+ When ownership is unknown or ambiguous, report what is missing and use authorized discovery or ask for clarification. A failed lookup stays unconfirmed; changing the target or creating a replacement resource is a separate user decision.
26
+
8
27
  ## Local project registration
9
28
 
10
29
  1. Resolve the user-requested directory to an absolute path on the bound Yuri
@@ -62,6 +81,36 @@ those retain their own capability contract. When the helper is unavailable, use
62
81
  the intended Host's project UI or start a supported session. Keep desktop deep
63
82
  links for their existing navigation purpose, not as an API authorization fallback.
64
83
 
84
+ ## Archiving conversations (task archive vs session archive)
85
+
86
+ Yuri has two different states that the UI labels alike. Pick by what the user sees:
87
+
88
+ | Term | User wording | Operation | What it changes |
89
+ |---|---|---|---|
90
+ | **任务归档 / Task archive** (`settle`) | In the task view, 「归档」 / "move to the archived shelf" / "clear my task list" | `settle-session`, `unsettle-session` | Host session index only. Reversible; a session returns to active on new user activity. |
91
+ | **会话归档 / Session archive** (`archive`) | Explicit "session-level archive", `archivedAt` | `archive-session`, `unarchive-session` | Session metadata `archivedAt`. The session's own lifecycle state. |
92
+
93
+ Use these qualified Chinese terms in agent explanations; the task-view UI keeps its existing 「归档」 label (no new 「已搁置」 term).
94
+
95
+ Default: when the user says 「归档」 about conversations/tasks without further detail, use `settle-session`. Never use `archive-session` for that request; it is not the task-view action. Neither operation deletes content.
96
+
97
+ 1. Run the bound project `describe` command. Continue only when `lifecycleSupported:true`; use the returned commands unchanged. Authentication is owned by the helper: no UI password or browser is required. A missing command or terminal error means stop and request a newly admitted session on an updated Host.
98
+ 2. Discover exact IDs with `commands["task-sessions"]`, supplying `{}` or `{"directory":"/workspace/my-project"}` on stdin. Results contain up to 50 metadata rows (`sessionID`, `directory`, `title`, `settled`, `pinned`, `activityUpdatedAt`) and `nextCursor`. Follow every returned cursor using the same directory filter **before writing**, then select only the user's scope. `indexedOnly:true` means this is the bound Host's task index, not every historical OpenCode session; `historyComplete:false` means full upstream history is not confirmed. Re-read after a concurrent catalog change; never interpret a failed read as an empty list.
99
+ 3. Supply JSON on stdin to the chosen write command, one session per call:
100
+
101
+ ```json
102
+ {"sessionID":"ses_xxxxxxxx"}
103
+ ```
104
+
105
+ `archive-session` / `unarchive-session` also accept an optional absolute `directory` hint. `sessionID` must be an existing OpenCode session ID (`ses…`).
106
+ 4. Completion: settle returns `{"sessionID":"ses_…","settled":true}`, restore returns `settled:false`. Read `commands["session-state"]` with `{"sessionID":"ses_…"}` to verify the Host projection and archive timestamp, or re-list task rows. State returns `indexed`, `archivedAt`, `settled` and `pinned`; the last two are `null` when no task row is projected. It is Host state, not proof of upstream existence or live UI membership. Live running/pending-request sessions may remain visible as active, and settle preserves pins; it does not abort execution or guarantee an empty task view. New user message/inbox activity clears the settle override; assistant completion alone does not.
107
+ Session archive returns `{"sessionID":"ses_…","archived":true,"archivedAt":123,"index":{"ok":true}}`; restore returns `archived:false,archivedAt:0`. `index.ok:false` confirms metadata persistence but not index repair: report partial success and re-check the same ID before retrying; retain the original `archivedAt` receipt.
108
+ 5. `session_not_found`/`not_found` (404) means the selected ID is unavailable, not success. `session_archived` (409) means an existing session-level archive must be restored with `unarchive-session`, not `unsettle-session`. Errors remain unconfirmed and raw credentials/errors are not returned. After an interrupted write, inspect the same IDs before retrying; bulk work reports confirmed counts and per-ID failures.
109
+
110
+ These operations affect only the **bound Host** and its current runtime. Task state for Remote Projects belongs to this connected Hub, never the remote machine's database. A remote `{target,...}` is not accepted here; session-level archive of a remote worker through this helper is unsupported. Keep the full remote target and use its supported workflow rather than falling back to a same-named local session.
111
+
112
+ Archive only sessions the user named or clearly scoped, including the current session only when requested. Use the bound helper rather than UI-authenticated HTTP routes, browser cookies, credential discovery or direct SQLite writes. The Host publishes normal index revisions after confirmed task writes.
113
+
65
114
  ## Connected remote projects and sessions
66
115
 
67
116
  Use this branch to add a remote project on an authorized machine or discover, read, create or continue its sessions. Registration uses the remote machine's filesystem, not this session's local filesystem.
@@ -117,6 +117,7 @@ encoding, not removed V1 endpoints.
117
117
  - Missing theme preferences use `carbonfox-light` / `cursor-dark`, matching the shared UI defaults. Existing per-variant IDs and legacy explicitly selected theme IDs remain authoritative; changing the default does not rewrite a user's saved theme.
118
118
  - Project registry order and `projectSortOrder` are shared Host authority. After a successful changed write, `onProjectOrderChanged` emits `yuri:project-order-changed` on the existing Yuri SSE channel. Clients GET settings on initial mount, tip, and reconnect. Unchanged and failed writes emit no tip; older settings without a sort mode use `manual`.
119
119
  - `packages/web/server/lib/opencode/settings-helpers.js`: Settings payload sanitization/format helpers runtime for response shaping and persisted merge prep.
120
+ - GUI command shortcut overrides use `gui-plugin:` + a JSON tuple of plugin/local command IDs. Keys up to 1024 characters retain their complete identity; oversized plugin keys are omitted rather than truncated into another command's mapping. Existing built-in keys and explicit `__unassigned__` values retain their settings contract.
120
121
  - `packages/web/server/lib/opencode/settings-normalization-runtime.js`: path/settings normalization and sanitization helpers runtime used by settings/routes/config wiring.
121
122
  - `packages/web/server/lib/opencode/theme-runtime.js`: custom theme JSON validation and theme directory loading runtime for settings utility routes.
122
123
  - `packages/web/server/lib/opencode/proxy.js`: OpenCode API/SSE forwarding and readiness-gate route registration.
@@ -96,6 +96,47 @@ describe('custom provider native V2 persistence', () => {
96
96
  expect(JSON.stringify(response.body)).not.toContain('fixture-key');
97
97
  });
98
98
 
99
+ it.each([
100
+ '@opencode/ai/providers/openai-compatible',
101
+ '@opencode/ai/providers/openai-compatible/responses',
102
+ ])('discovers and saves all 12 models from a standard OpenAI list through the HTTP routes (%s)', async (pkg) => {
103
+ const ids = [
104
+ 'gpt-6.1-terra', 'codex-auto-review', 'deepseek-flash', 'gpt-5.6-luna',
105
+ 'gpt-6-astra', 'gpt-reserve', 'deepseek-v4-pro', 'gpt-5.6-sol',
106
+ 'gpt-5.6-terra', 'gpt-6-luna', 'gpt-6-sol', 'gpt-6.1-sol',
107
+ ];
108
+ const payload = {
109
+ data: ids.map((id) => ({ created: 1794458926, id, object: 'model', owned_by: 'openai' })),
110
+ object: 'list',
111
+ };
112
+ const fetch = vi.spyOn(globalThis, 'fetch').mockResolvedValue(new Response(JSON.stringify(payload)));
113
+ configureOpenCodeCredentials(() => client);
114
+ const app = express(); registerCommonRequestMiddleware(app, { express });
115
+ registerOpenCodeRoutes(app, {});
116
+ const discovery = await request(app).post('/api/config/providers/custom/models').send({
117
+ package: pkg, baseURL: 'https://api.example.com/v1', apiKey: 'fixture-key',
118
+ }).expect(200);
119
+ expect(discovery.body).toEqual({ models: ids.map((id) => ({ id, name: id })) });
120
+ expect(fetch).toHaveBeenCalledTimes(1);
121
+ expect(fetch.mock.calls[0][0].toString()).toBe('https://api.example.com/v1/models');
122
+ expect(fetch.mock.calls[0][1].headers.Authorization).toBe('Bearer fixture-key');
123
+ expect(fs.existsSync(file)).toBe(false);
124
+ const config = {
125
+ name: 'Gateway', package: pkg, settings: { baseURL: 'https://api.example.com/v1' },
126
+ models: Object.fromEntries(discovery.body.models.map((model) => [model.id, {
127
+ name: model.name, capabilities: { tools: true, input: ['text'], output: ['text'] },
128
+ }])),
129
+ };
130
+ const saved = await request(app).post('/api/config/providers/custom').send({
131
+ config, apiKey: 'fixture-key',
132
+ }).expect(200);
133
+ const provider = readConfigFile(file).providers[saved.body.providerId];
134
+ expect(provider).toEqual(config);
135
+ expect(Object.keys(provider.models)).toEqual(ids);
136
+ expect(() => Schema.decodeUnknownSync(ConfigProvider.Info)(provider)).not.toThrow();
137
+ expect(fs.readFileSync(file, 'utf8')).not.toContain('fixture-key');
138
+ });
139
+
99
140
  it('does not write for an invalid requested directory', async () => {
100
141
  configureOpenCodeCredentials(() => client);
101
142
  const app = express(); registerCommonRequestMiddleware(app, { express });
@@ -1,6 +1,7 @@
1
1
  import { registerFsRoutes } from '../fs/routes.js';
2
2
  import { registerRemoteConnectionsSkill } from '../gui-customization/remote-connections.js';
3
3
  import { registerProjectsSkill } from '../gui-customization/projects.js';
4
+ import { createProjectSessionLifecycle } from '../gui-customization/projects-lifecycle.js';
4
5
  import { registerQuotaRoutes } from '../quota/routes.js';
5
6
  import { registerSmallModelRoutes } from '../small-model/routes.js';
6
7
  import { registerSessionMetadataRoutes } from '../session-metadata/routes.js';
@@ -161,6 +162,7 @@ export const createFeatureRoutesRuntime = (dependencies) => {
161
162
  globalMessageStreamHub,
162
163
  getServerId,
163
164
  sessionIndexService,
165
+ publishSessionIndexChange = null,
164
166
  notifyContactTurnComplete,
165
167
  sessionMetadataStore = null,
166
168
  sessionArchiveService = null,
@@ -311,6 +313,9 @@ export const createFeatureRoutesRuntime = (dependencies) => {
311
313
  express, getIsSharedOpenCodeService, getOpenCodeAuthHeaders,
312
314
  createClient: () => makeOpenCodeV2Client({ baseUrl: buildOpenCodeUrl('/', ''), authHeaders: getOpenCodeAuthHeaders(), getRuntimeContract }),
313
315
  registerProject: (input) => projectRegistry.register(input), readSettingsFromDiskStrict, sanitizeProjects,
316
+ sessionLifecycle: createProjectSessionLifecycle({
317
+ sessionIndexService, sessionArchiveService, sessionMetadataStore, publishSessionIndexChange,
318
+ }),
314
319
  });
315
320
  historyImportRuntime = registerHistoryImportRoutes(app, {
316
321
  express, uiAuthController, dataDir: yuriDataDir,
@@ -3,6 +3,12 @@ import { describe, expect, it, vi } from 'vitest';
3
3
  import { createWorktreeTopologyBroadcaster } from './feature-routes-runtime.js';
4
4
 
5
5
  describe('feature routes runtime composition', () => {
6
+ it('wires the bound lifecycle helper to the UI-owned services and revision publisher', async () => {
7
+ const routes = await fs.readFile(new URL('./feature-routes-runtime.js', import.meta.url), 'utf8');
8
+ const host = await fs.readFile(new URL('../../index.js', import.meta.url), 'utf8');
9
+ expect(routes).toMatch(/sessionLifecycle: createProjectSessionLifecycle\(\{\s*sessionIndexService, sessionArchiveService, sessionMetadataStore, publishSessionIndexChange/);
10
+ expect(host).toContain('publishSessionIndexChange: () => sessionIndexSyncRuntime?.publishChange?.()');
11
+ });
6
12
  it('wires session project registration to the shared registry and strict settings reader', async () => {
7
13
  const routes = await fs.readFile(new URL('./feature-routes-runtime.js', import.meta.url), 'utf8');
8
14
  expect(routes).toMatch(/registerProjectsSkill\(app, \{[\s\S]*?registerProject: \(input\) => projectRegistry.register\(input\), readSettingsFromDiskStrict, sanitizeProjects/);
@@ -76,6 +76,7 @@ export const createSettingsHelpers = (dependencies) => {
76
76
  const SUMMARY_PROMPT_MAX_LENGTH = 16000;
77
77
  const VERSION_STRING_MAX_LENGTH = 128;
78
78
  const SHORTCUT_OVERRIDE_KEY_MAX_LENGTH = 128;
79
+ const PLUGIN_SHORTCUT_OVERRIDE_KEY_MAX_LENGTH = 1024;
79
80
  const SHORTCUT_OVERRIDE_VALUE_MAX_LENGTH = 128;
80
81
  const PWA_ORIENTATION_VALUES = new Set(['system', 'portrait', 'landscape']);
81
82
  const MOBILE_KEYBOARD_MODE_VALUES = new Set(['native', 'resize-content']);
@@ -92,6 +93,10 @@ export const createSettingsHelpers = (dependencies) => {
92
93
  const key = typeof rawKey === 'string' ? rawKey.trim() : '';
93
94
  const combo = typeof rawValue === 'string' ? rawValue.trim() : '';
94
95
  if (!key || !combo) continue;
96
+ if (key.startsWith('gui-plugin:')) {
97
+ if (key.length <= PLUGIN_SHORTCUT_OVERRIDE_KEY_MAX_LENGTH) result[key] = combo.slice(0, SHORTCUT_OVERRIDE_VALUE_MAX_LENGTH);
98
+ continue;
99
+ }
95
100
  result[key.slice(0, SHORTCUT_OVERRIDE_KEY_MAX_LENGTH)] = combo.slice(0, SHORTCUT_OVERRIDE_VALUE_MAX_LENGTH);
96
101
  }
97
102
  return result;
@@ -676,6 +681,10 @@ export const createSettingsHelpers = (dependencies) => {
676
681
  result.collapsedModelProviders = normalizeStringArray(candidate.collapsedModelProviders);
677
682
  }
678
683
 
684
+ if (Array.isArray(candidate.providerOrder)) {
685
+ result.providerOrder = normalizeStringArray(candidate.providerOrder);
686
+ }
687
+
679
688
  if (Array.isArray(candidate.recentAgents)) {
680
689
  result.recentAgents = normalizeStringArray(candidate.recentAgents);
681
690
  }
@@ -279,6 +279,16 @@ describe('settings helpers', () => {
279
279
  shortcutOverrides: {},
280
280
  });
281
281
  });
282
+ it('round-trips qualified GUI command identities without truncating colliding prefixes', () => {
283
+ const helpers = createTestHelpers();
284
+ const prefix = `gui-plugin:${JSON.stringify(['package-name'.repeat(15), 'first'])}`;
285
+ const second = `gui-plugin:${JSON.stringify(['package-name'.repeat(15), 'second'])}`;
286
+ const shortcutOverrides = { [prefix]: 'mod+m', [second]: '__unassigned__', open_settings: 'mod+comma' };
287
+ expect(helpers.sanitizeSettingsUpdate({ shortcutOverrides })).toEqual({ shortcutOverrides });
288
+ expect(helpers.sanitizeSettingsUpdate({
289
+ shortcutOverrides: { [`gui-plugin:${'a'.repeat(1024)}`]: 'mod+m', ...shortcutOverrides },
290
+ })).toEqual({ shortcutOverrides });
291
+ });
282
292
 
283
293
  it('accepts OpenCode update notification preference as a persisted shared setting', () => {
284
294
  const helpers = createTestHelpers();