@yuriai/web 0.2.40-beta.3 → 0.2.40-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-kQhfwlay.js → AgentAvatar-B7KbxN8Y.js} +1 -1
- package/dist/assets/AssistantConversationSurface-BnK_KTBO.js +3 -0
- package/dist/assets/{AssistantUnreadBadge-B2SY-_-u.js → AssistantUnreadBadge-vu4ZhTft.js} +1 -1
- package/dist/assets/{AssistantView-C_hiAuTd.js → AssistantView-CEfEWUIr.js} +1 -1
- package/dist/assets/DiagramView-Dlzr08J_.js +1 -0
- package/dist/assets/{FadeInOnReveal-CMeIdEKz.js → FadeInOnReveal-DMRmNsau.js} +1 -1
- package/dist/assets/{GuiPluginPage-WXqykPAg.js → GuiPluginPage-DVug4z_p.js} +1 -1
- package/dist/assets/GuiPluginSurface-L43o6Xv8.js +1 -0
- package/dist/assets/{GuiPluginWindow-BLzchKn7.js → GuiPluginWindow-tHXkS18H.js} +1 -1
- package/dist/assets/{Icon-DygEqfgq.js → Icon-DizeYahT.js} +1 -1
- package/dist/assets/{ImageLoadingPlaceholder-kbBRpDSD.js → ImageLoadingPlaceholder-BZC5m_km.js} +1 -1
- package/dist/assets/LoadingImage-Csw4L-Dr.js +1 -0
- package/dist/assets/MarkdownRenderer-D_0iKhQN.js +2 -0
- package/dist/assets/MarkdownRendererImpl-BZ0XgjS0.js +10 -0
- package/dist/assets/MarkstreamRendererImpl-DBd6Glg9.js +3 -0
- package/dist/assets/MobileDetailNavigation-xgwvsQuR.js +1 -0
- package/dist/assets/{MobileResizableSheet-Dt2U0JHY.js → MobileResizableSheet-CQQ7O-2X.js} +1 -1
- package/dist/assets/MobileShareBridge-IO45gM2G.js +3 -0
- package/dist/assets/MobileSurface-DmYgZONB.js +2 -0
- package/dist/assets/{MultiRunWindow-BuRo90Ma.js → MultiRunWindow-fJ3XfntS.js} +1 -1
- package/dist/assets/OnboardingScreen-MJS5T5rL.js +1 -0
- package/dist/assets/{OverlayScrollbar-B0X61qR-.js → OverlayScrollbar-jtMYTn1y.js} +1 -1
- package/dist/assets/SettingsView-ZWFLpPSI.js +29 -0
- package/dist/assets/{SettingsWindow-kCbf8IoB.js → SettingsWindow-DGRmrIWz.js} +1 -1
- package/dist/assets/SetupTourDialog-BYbAubwA.js +1 -0
- package/dist/assets/TerminalView-CoJ6_9P1.js +8 -0
- package/dist/assets/ToolOutputDialog-5xBwOJ6a.js +16 -0
- package/dist/assets/VoiceSettings-CN33koSc.js +2 -0
- package/dist/assets/{YuriLogo-B58GIl2v.js → YuriLogo-CvyJy_R9.js} +1 -1
- package/dist/assets/YuriWordmark-DnFAS-Ko.js +1 -0
- package/dist/assets/{assistant-attachment-cache-Cmzt4xXE.js → assistant-attachment-cache-D-LmCflm.js} +1 -1
- package/dist/assets/bootstrap-eLlfzqAI.js +1 -0
- package/dist/assets/{capgoAdapter-DO1rEVQf.js → capgoAdapter-CCLtBZL1.js} +1 -1
- package/dist/assets/{checkbox-BW80bcK5.js → checkbox-rOV6DjeG.js} +1 -1
- package/dist/assets/client-uz8O6TPX.js +7 -0
- package/dist/assets/{collapsible-BOL5Wx2J.js → collapsible-CKswuqAw.js} +1 -1
- package/dist/assets/{context-menu-CiFnjP1q.js → context-menu-B4njwT_M.js} +1 -1
- package/dist/assets/{desktopHosts-DovfbQPm.js → desktopHosts-135cuRCE.js} +1 -1
- package/dist/assets/{desktopRelayRestore-D4pbpNKN.js → desktopRelayRestore-1aUztDPU.js} +1 -1
- package/dist/assets/{device-DNG0cNwQ.js → device-QL8KNSLM.js} +1 -1
- package/dist/assets/{diagram-DRn8iIs1.js → diagram-BppQ_USn.js} +1 -1
- package/dist/assets/{dialog-DQp289fr.js → dialog-Bg8MJnOV.js} +1 -1
- package/dist/assets/{es-D0Q_CV0t.js → es-Ba3NUCtE.js} +3 -3
- package/dist/assets/{fileMentionTouchSelection-582p0uCX.js → fileMentionTouchSelection-D-AdTJVr.js} +1 -1
- package/dist/assets/fileReferenceActions-cYqdsXFz.js +1 -0
- package/dist/assets/{fr-DrO5SAKl.js → fr-CRhp3hyT.js} +3 -3
- package/dist/assets/{gitApi-vYBmQIuU.js → gitApi-DVx_V1x6.js} +11 -7
- package/dist/assets/gitApiHttp-DvTBxvX8.js +3 -0
- package/dist/assets/historyImportQueries-D_9RlrLp.js +1 -0
- package/dist/assets/host-DrGjjO6K.js +1 -0
- package/dist/assets/{i18n-UaLestuf.js → i18n-RH7UieOS.js} +1 -1
- package/dist/assets/image-loading-DBqnxgDH.js +1 -0
- package/dist/assets/{input-B281XcMR.js → input-DRjuZMeA.js} +1 -1
- package/dist/assets/input-store-CjUOfpyA.js +1 -0
- package/dist/assets/insertionBoundaries-DZtQt2Ah.js +1 -0
- package/dist/assets/{ja-BNeP9_GU.js → ja-D-UPjDY2.js} +3 -3
- package/dist/assets/{ko-DRRFD_7l.js → ko-x-z9J5z7.js} +3 -3
- package/dist/assets/main-BMFY9mtb.js +2 -0
- package/dist/assets/main-D2s9J_jN.js +169 -0
- package/dist/assets/{markdownHeightCache-BgYJswDy.js → markdownHeightCache-BL99DlhC.js} +1 -1
- package/dist/assets/{markdownTheme-CHNl6tUv.js → markdownTheme-DFDWa8Gh.js} +1 -1
- package/dist/assets/mcpQueries-HzYMEVWd.js +1 -0
- package/dist/assets/miniChat-BbJ0GKpk.js +2 -0
- package/dist/assets/mobile-_zUth69Z.js +2 -0
- package/dist/assets/mobileBackNavigation--ZdrI-Yj.js +1 -0
- package/dist/assets/mobileConnections-C3eGEOPy.js +2 -0
- package/dist/assets/multirun-CDYNyLBH.js +3 -0
- package/dist/assets/{native-config-BOaqa45X.js → native-config-DOawZfln.js} +1 -1
- package/dist/assets/navigation-Ibk_Pw-q.js +2 -0
- package/dist/assets/{pl-BnW5wJrl.js → pl-Cqo1FJwM.js} +3 -3
- package/dist/assets/platform-wF65ZFgV.js +1 -0
- package/dist/assets/project-preview-2H-TmJkd.js +1 -0
- package/dist/assets/projectActions-50e_f9dI.js +1 -0
- package/dist/assets/projectMeta-D1Ytss9U.js +1 -0
- package/dist/assets/prompt-attachment-upload-BNhDXymd.js +1 -0
- package/dist/assets/{pt-BR-fZW8CCVQ.js → pt-BR-C930XU1k.js} +3 -3
- package/dist/assets/pwa-CXupOTsD.js +2 -0
- package/dist/assets/queue-abort-optimistic-CQXpIlq6.js +1 -0
- package/dist/assets/{react-DPhQUTaH.js → react-CgRToPwO.js} +1 -1
- package/dist/assets/{readiness-BpVAjFhF.js → readiness-BfuZm6Yw.js} +2 -2
- package/dist/assets/relay-preview-frame-src-BPyz3nXA.js +1 -0
- package/dist/assets/remote-input-store-BOdCWpQY.js +1 -0
- package/dist/assets/remoteProjectQueries-CkxdZNw4.js +1 -0
- package/dist/assets/renderElectronMiniChatApp-pJ59iC34.js +2 -0
- package/dist/assets/renderMobileApp-BQFC-gOA.js +29 -0
- package/dist/assets/{runtime-file-download-DMY1k1af.js → runtime-file-download-D11Nnedg.js} +1 -1
- package/dist/assets/runtime-file-resource-CuLP3xp7.js +6 -0
- package/dist/assets/runtimeConfig-tHm7o_0I.js +2 -0
- package/dist/assets/{runtimeEndpointReset-BOdd_mJM.css → runtimeEndpointReset-BUGfn7y0.css} +1 -1
- package/dist/assets/runtimeEndpointReset-BhHWFNvo.js +150 -0
- package/dist/assets/safeStorage-DTOhKN0V.js +1 -0
- package/dist/assets/scheduledTaskNavigation-BIDtQ4wN.js +1 -0
- package/dist/assets/{select-CyPxbnW8.js → select-B1On-Y4Z.js} +1 -1
- package/dist/assets/sessionLookup-RcyTTDOy.js +1 -0
- package/dist/assets/sortable-tabs-strip-nD1Me06z.js +1 -0
- package/dist/assets/{speechSettingsQueries-CTsBn-Ib.js → speechSettingsQueries-BYhNpzDJ.js} +1 -1
- package/dist/assets/src-BZCFf9_1.css +2 -0
- package/dist/assets/{store-CzVMz42v.js → store-DunGyOfe.js} +4 -4
- package/dist/assets/terminalApi-madXrfqA.js +1 -0
- package/dist/assets/{textarea-CjJsstUF.js → textarea-Qt06OhhX.js} +1 -1
- package/dist/assets/{tooltip-Di_DSZ8p.js → tooltip-D382RCy1.js} +1 -1
- package/dist/assets/tour-CQMBn8gJ.js +1 -0
- package/dist/assets/{types-wnqkJWYs.js → types-CHszLAS3.js} +1 -1
- package/dist/assets/{uk-C4OKsNRv.js → uk-OXQSdzuT.js} +3 -3
- package/dist/assets/{useAppFontEffects-BRMf55oN.js → useAppFontEffects-CqXrCJVt.js} +63 -58
- package/dist/assets/useAppFontEffects-K31q-1OV.css +1 -0
- package/dist/assets/useAssistantUIStore-jOKVcBK8.js +1 -0
- package/dist/assets/useDesktopWindowControlsLayout-KH4UP7Gj.js +1 -0
- package/dist/assets/{useDictation-Sk20Gi0T.js → useDictation-Bs7TWO9r.js} +1 -1
- package/dist/assets/useEffectiveDirectory-CCKRdyK9.js +1 -0
- package/dist/assets/useFontPreferences-CPrl1_3z.js +1 -0
- package/dist/assets/{useMobileHtmlPreviewStore-C03uVLfX.js → useMobileHtmlPreviewStore-EOAzZiAy.js} +1 -1
- package/dist/assets/useMobileNavigationStore-BNtVrnSw.js +13 -0
- package/dist/assets/usePluginsStore-bMuGciUE.js +1 -0
- package/dist/assets/useProjectRuntimeAPIs-BFCXBu2J.js +1 -0
- package/dist/assets/{useStreamingTextThrottle-CjMALEr7.js → useStreamingTextThrottle-C8xAqcgP.js} +1 -1
- package/dist/assets/{useThemeSystem-CNzUUkFn.js → useThemeSystem-C57Z9mV2.js} +1 -1
- package/dist/assets/useUIStore-Cfmg-aDQ.js +1 -0
- package/dist/assets/uuid-D-SDZijH.js +1 -0
- package/dist/assets/{vendor-base-ui-CzHs0bHY.js → vendor-base-ui-z2M4boRm.js} +1 -1
- package/dist/assets/{vendor-cmdk-C_tivUtr.js → vendor-cmdk-BgHvMv5l.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-accessibility-BOtnpZt5.js → vendor-dnd-kit-accessibility-gVi9ga0x.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-core-DK4OoOTr.js → vendor-dnd-kit-core-Dd5yS2-T.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-sortable-Cv69eQm1.js → vendor-dnd-kit-sortable-CV-SGi8y.js} +1 -1
- package/dist/assets/{vendor-framer-motion-DDMKlXiP.js → vendor-framer-motion-CF9BQLta.js} +1 -1
- package/dist/assets/{vendor-markstream-react-6zxyQLCD.js → vendor-markstream-react-TwEpkgfP.js} +3 -3
- package/dist/assets/vendor-motion-Dv27UnOI.js +1 -0
- package/dist/assets/{vendor-pierre-diffs-BFiZ3IhI.js → vendor-pierre-diffs-tqo4Z3TC.js} +1 -1
- package/dist/assets/{vendor-react-DlzBev0S.js → vendor-react-P8wFrkcT.js} +1 -1
- package/dist/assets/{vendor-react-drawio-Dyg1-39Q.js → vendor-react-drawio-CQW1YP2l.js} +1 -1
- package/dist/assets/vendor-reactuses-core-Dyjw5sZR.js +1 -0
- package/dist/assets/{vendor-sonner-BEHGipm5.js → vendor-sonner-B5HgJenP.js} +1 -1
- package/dist/assets/{vendor-stream-diffs-wcQxoPZk.js → vendor-stream-diffs-DCMtZcS3.js} +2 -2
- package/dist/assets/vendor-tanstack-query-core-BSjXNgF_.js +1 -0
- package/dist/assets/vendor-tanstack-react-query-B-KblYBV.js +1 -0
- package/dist/assets/{vendor-tanstack-react-virtual-DSFNK3qc.js → vendor-tanstack-react-virtual-BkuqzrEV.js} +1 -1
- package/dist/assets/{vendor-zustand-vDaAPGfl.js → vendor-zustand-Cwko4FG1.js} +1 -1
- package/dist/assets/{zh-CN-ieAs59w6.js → zh-CN-B5X8yCZV.js} +3 -3
- package/dist/assets/{zh-TW-WWTW1fkP.js → zh-TW-CF6zr1fk.js} +3 -3
- package/dist/index.html +32 -27
- package/dist/mini-chat.html +32 -27
- package/dist/mobile.html +2 -2
- package/package.json +3 -2
- package/server/index.d.ts +19 -0
- package/server/index.js +35 -5
- package/server/lib/assistants/builtin-skills.js +1 -1
- package/server/lib/assistants/builtin-skills.test.js +2 -0
- package/server/lib/client-auth/remote-clients.js +11 -0
- package/server/lib/content-search/DOCUMENTATION.md +5 -0
- package/server/lib/content-search/routes.js +4 -0
- package/server/lib/content-search/routes.test.js +10 -0
- package/server/lib/event-stream/DOCUMENTATION.md +5 -0
- package/server/lib/event-stream/runtime.js +3 -0
- package/server/lib/event-stream/upstream-reader.js +1 -1
- package/server/lib/gui-customization/DOCUMENTATION.md +25 -1
- package/server/lib/gui-customization/projects-client.mjs +59 -0
- package/server/lib/gui-customization/projects.js +43 -0
- package/server/lib/gui-customization/projects.test.js +103 -0
- package/server/lib/gui-customization/remote-connections-client.mjs +2 -8
- package/server/lib/gui-customization/session-skill-command.mjs +8 -0
- package/server/lib/gui-customization/session-skill.js +15 -10
- package/server/lib/gui-customization/session-skill.test.js +21 -2
- package/server/lib/gui-customization/skill/SKILL.md +3 -1
- package/server/lib/gui-customization/skill/references/projects.md +63 -0
- package/server/lib/gui-customization/skill/references/remote-connections.md +11 -0
- package/server/lib/message-queue/DOCUMENTATION.md +4 -0
- package/server/lib/message-queue/service.js +2 -1
- package/server/lib/message-queue/service.test.js +11 -0
- package/server/lib/notifications/DOCUMENTATION.md +12 -0
- package/server/lib/notifications/emitter-runtime.js +5 -0
- package/server/lib/notifications/runtime.js +20 -2
- package/server/lib/notifications/runtime.test.js +21 -0
- package/server/lib/notifications/session-unread-runtime.js +51 -13
- package/server/lib/notifications/session-unread.test.js +113 -1
- package/server/lib/opencode/DOCUMENTATION.md +28 -0
- package/server/lib/opencode/core-routes.js +16 -3
- package/server/lib/opencode/core-routes.test.js +28 -0
- package/server/lib/opencode/feature-routes-runtime.js +12 -1
- package/server/lib/opencode/feature-routes-runtime.test.js +4 -0
- package/server/lib/opencode/proxy.js +1 -0
- package/server/lib/opencode/routes.js +18 -4
- package/server/lib/opencode/routes.test.js +22 -0
- package/server/lib/opencode/settings-helpers.js +26 -0
- package/server/lib/opencode/settings-helpers.test.js +20 -0
- package/server/lib/opencode/settings-runtime.js +5 -3
- package/server/lib/opencode/settings-runtime.test.js +35 -0
- package/server/lib/preview/DOCUMENTATION.md +73 -0
- package/server/lib/preview/file-preview-path.js +37 -0
- package/server/lib/preview/file-target.js +38 -0
- package/server/lib/preview/file-target.test.js +111 -0
- package/server/lib/preview/proxy-runtime.js +110 -17
- package/server/lib/projects/DOCUMENTATION.md +12 -3
- package/server/lib/relay/tunnel-host.js +1 -0
- package/server/lib/remote-hosts/DOCUMENTATION.md +269 -0
- package/server/lib/remote-hosts/configuration.js +15 -0
- package/server/lib/remote-hosts/deadline.js +22 -0
- package/server/lib/remote-hosts/deadline.test.js +64 -0
- package/server/lib/remote-hosts/fixtures/settings-server.mjs +26 -0
- package/server/lib/remote-hosts/gateway.js +644 -0
- package/server/lib/remote-hosts/json-lifecycle.test.js +55 -0
- package/server/lib/remote-hosts/preview-scope.js +23 -0
- package/server/lib/remote-hosts/relay-client.ts +3 -0
- package/server/lib/remote-hosts/routes.js +432 -0
- package/server/lib/remote-hosts/routes.test.js +1176 -0
- package/server/lib/remote-hosts/settings-production.test.js +145 -0
- package/server/lib/remote-hosts/store.js +110 -0
- package/server/lib/remote-hosts/store.test.js +33 -0
- package/server/lib/remote-hosts/transport.js +113 -0
- package/server/lib/scheduled-tasks/session-skill.js +2 -1
- package/server/lib/scheduled-tasks/session-skill.test.js +34 -1
- package/server/lib/session-folders/routes.js +1 -0
- package/server/lib/session-index/DOCUMENTATION.md +4 -1
- package/server/lib/session-index/event-ingest.js +8 -0
- package/server/lib/session-index/event-ingest.test.js +16 -0
- package/server/lib/session-index/service.js +1 -0
- package/server/lib/session-index/service.test.js +3 -1
- package/server/lib/session-metadata/DOCUMENTATION.md +18 -1
- package/server/lib/session-title/DOCUMENTATION.md +3 -0
- package/server/lib/session-title/runtime.js +1 -0
- package/server/lib/session-title/runtime.test.js +2 -0
- package/server/lib/transcript-cache/DOCUMENTATION.md +4 -0
- package/server/lib/transcript-cache/routes.js +3 -0
- package/server/lib/transcript-cache/service.js +15 -0
- package/server/lib/transcript-cache/service.test.js +13 -0
- package/server/lib/ui-auth/DOCUMENTATION.md +18 -0
- package/server/lib/ui-auth/ui-auth.js +30 -2
- package/server/lib/ui-auth/ui-auth.test.js +46 -1
- package/dist/assets/AssistantConversationSurface-CW3U6Lhp.js +0 -3
- package/dist/assets/DiagramView-CzhdZEw4.js +0 -1
- package/dist/assets/GuiPluginSurface-BG3hENTt.js +0 -1
- package/dist/assets/LoadingImage-DmucvXdY.js +0 -1
- package/dist/assets/MarkdownRenderer-BkOMcK8x.js +0 -2
- package/dist/assets/MarkdownRendererImpl-B5vJtPoa.js +0 -10
- package/dist/assets/MarkstreamRendererImpl-1J-Gu2M2.js +0 -3
- package/dist/assets/MobileDetailNavigation-48o8aG28.js +0 -1
- package/dist/assets/MobileShareBridge-DnYT3Dbz.js +0 -3
- package/dist/assets/MobileTabPageHeader-D6kqRFm0.js +0 -2
- package/dist/assets/OnboardingScreen-Bn0RgrJU.js +0 -1
- package/dist/assets/SettingsView-Bla2lVqS.js +0 -29
- package/dist/assets/SetupTourDialog-GDRS3gDa.js +0 -1
- package/dist/assets/TerminalView-B1u3s7IN.js +0 -8
- package/dist/assets/ToolOutputDialog-CYUPmbtq.js +0 -10
- package/dist/assets/VoiceSettings-Dy6-nkQo.js +0 -2
- package/dist/assets/YuriWordmark--S-QEpRp.js +0 -1
- package/dist/assets/appThemeRegistry--G1XaYmo.js +0 -1
- package/dist/assets/bootstrap-BhC95qVC.js +0 -1
- package/dist/assets/fileQueries-D9l0crnM.js +0 -1
- package/dist/assets/fileReferenceActions-BmquJskG.js +0 -1
- package/dist/assets/gitApiHttp-D4d-rgcR.js +0 -9
- package/dist/assets/historyImportQueries-DkB2_92i.js +0 -1
- package/dist/assets/host-kMLXU0hK.js +0 -1
- package/dist/assets/image-loading-BrDob6MW.js +0 -1
- package/dist/assets/insertionBoundaries-CB4gv9rr.js +0 -1
- package/dist/assets/main-B1KrAdkh.js +0 -2
- package/dist/assets/main-Caf-6KmT.js +0 -169
- package/dist/assets/mcpQueries-CQyOFjX2.js +0 -1
- package/dist/assets/miniChat-zEoOVjOQ.js +0 -2
- package/dist/assets/mobile-Dt8wAkc4.js +0 -2
- package/dist/assets/mobileBackNavigation-BbKMa0Jb.js +0 -1
- package/dist/assets/mobileConnections-CXYj4P9M.js +0 -2
- package/dist/assets/multirun-9v2r_beX.js +0 -3
- package/dist/assets/pathNormalization-ewtPqJWn.js +0 -1
- package/dist/assets/platform-DMsFWy1a.js +0 -1
- package/dist/assets/projectActions-C-9Z8R7y.js +0 -1
- package/dist/assets/projectMeta-ZouOo-T_.js +0 -1
- package/dist/assets/pwa-syKJBLoe.js +0 -2
- package/dist/assets/queue-abort-optimistic-BYH5yLM2.js +0 -1
- package/dist/assets/renderElectronMiniChatApp-DprABvit.js +0 -2
- package/dist/assets/renderMobileApp-DQmX6iak.js +0 -29
- package/dist/assets/runtime-file-resource-CL7EVzOG.js +0 -2
- package/dist/assets/runtimeConfig-7Umh9QWi.js +0 -2
- package/dist/assets/runtimeEndpointReset-BYtLmSuX.js +0 -149
- package/dist/assets/scheduledTaskNavigation-FMDNRUnX.js +0 -1
- package/dist/assets/sessionLookup-D_fPlqqT.js +0 -1
- package/dist/assets/sortable-tabs-strip-BclS0Hnd.js +0 -1
- package/dist/assets/src-HgtAe3Q4.css +0 -2
- package/dist/assets/terminalApi-DK4KmfFn.js +0 -1
- package/dist/assets/touch-gestures-CErgaXZ7.js +0 -1
- package/dist/assets/tour-DDI0Zg7l.js +0 -1
- package/dist/assets/useAppFontEffects-RpgNbjA4.css +0 -1
- package/dist/assets/useAssistantUIStore-nNYL140o.js +0 -1
- package/dist/assets/useDesktopWindowControlsLayout-Bq9DFNYn.js +0 -1
- package/dist/assets/useEffectiveDirectory-5RwQ_nuK.js +0 -1
- package/dist/assets/useFontPreferences-DxzruDDQ.js +0 -1
- package/dist/assets/useMobileNavigationStore-ePbEoQwb.js +0 -17
- package/dist/assets/usePluginsStore-HJJZ65gd.js +0 -1
- package/dist/assets/useUIStore-vvNwcOk3.js +0 -1
- package/dist/assets/useWorkerHighlightedLines-6x1R4afJ.js +0 -7
- package/dist/assets/vendor-motion-C9oiAdx-.js +0 -1
- package/dist/assets/vendor-reactuses-core-CuTmqEMK.js +0 -1
- package/dist/assets/vendor-tanstack-query-core-Y_YoRHtC.js +0 -1
- package/dist/assets/vendor-tanstack-react-query-B-Wpqq5J.js +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { authorizeScheduledTaskSkillRequest } from '../scheduled-tasks/session-skill-contract.js';
|
|
3
|
+
|
|
4
|
+
export const PROJECTS_SKILL_PATH = '/api/yuri/session-skills/projects';
|
|
5
|
+
|
|
6
|
+
const projectResult = ({ id, path, label }) => ({ id, path, ...(label ? { label } : {}) });
|
|
7
|
+
const validInput = (operation, input) => {
|
|
8
|
+
if (!input || typeof input !== 'object' || Array.isArray(input)) return false;
|
|
9
|
+
const allowed = operation === 'add' ? ['path', 'label'] : [];
|
|
10
|
+
if (Object.keys(input).some((key) => !allowed.includes(key))) return false;
|
|
11
|
+
if (Object.entries(input).some(([key, value]) => typeof value !== 'string' || !value.trim()
|
|
12
|
+
|| value.length > (key === 'label' ? 80 : 4096) || /[\x00-\x1f]/.test(value))) return false;
|
|
13
|
+
return operation !== 'add' || (typeof input.path === 'string' && path.isAbsolute(input.path.trim()));
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** Session-bound Host registration; the shared project registry owns persistence. */
|
|
17
|
+
export function registerProjectsSkill(app, { express, getIsSharedOpenCodeService, getOpenCodeAuthHeaders, createClient, registerProject, readSettingsFromDiskStrict, sanitizeProjects }) {
|
|
18
|
+
app.post(PROJECTS_SKILL_PATH, express.json({ limit: '16kb' }), async (req, res) => {
|
|
19
|
+
res.setHeader('Cache-Control', 'no-store');
|
|
20
|
+
if (!getIsSharedOpenCodeService() || !authorizeScheduledTaskSkillRequest(req, getOpenCodeAuthHeaders())) return res.status(403).json({ error: 'Forbidden' });
|
|
21
|
+
const { sessionID, operation, input = {} } = req.body ?? {};
|
|
22
|
+
if (typeof sessionID !== 'string' || !sessionID || sessionID.length > 256
|
|
23
|
+
|| !['describe', 'list', 'add'].includes(operation) || !validInput(operation, input)) return res.status(400).json({ code: 'invalid_input', error: 'Invalid project input' });
|
|
24
|
+
try {
|
|
25
|
+
const session = await createClient().session.get({ sessionID });
|
|
26
|
+
const hostOrigin = `http://${req.socket.localAddress === '::1' ? '[::1]' : '127.0.0.1'}:${req.socket.localPort}`;
|
|
27
|
+
if (session.metadata?.yuri?.scheduledTaskSkill?.hostOrigin !== hostOrigin) return res.status(403).json({ error: 'Session is not bound to this Host' });
|
|
28
|
+
if (operation === 'describe') return res.json({ supported: true, inputs: { add: '{path: existing absolute Host directory, label?: display name}', list: '{}' },
|
|
29
|
+
completion: 'add returns the persisted project and created=true/false. Registration does not clone/create files, open a session or change an existing active selection. Retry the same path safely after an interrupted response.' });
|
|
30
|
+
if (operation === 'list') {
|
|
31
|
+
const settings = await readSettingsFromDiskStrict();
|
|
32
|
+
if (!settings || typeof settings !== 'object' || Array.isArray(settings)
|
|
33
|
+
|| (settings.projects !== undefined && !Array.isArray(settings.projects))) throw new Error('Invalid project settings');
|
|
34
|
+
return res.json({ projects: (sanitizeProjects(settings.projects) || []).map(projectResult) });
|
|
35
|
+
}
|
|
36
|
+
const { project, created } = await registerProject(input);
|
|
37
|
+
return res.json({ project: projectResult(project), created });
|
|
38
|
+
} catch (error) {
|
|
39
|
+
const code = ['validation_error', 'project_unavailable'].includes(error?.code) ? error.code : 'project_operation_failed';
|
|
40
|
+
return res.status(code === 'validation_error' ? 400 : 503).json({ code, error: 'Project operation was not confirmed; check the path or retry the same path after recovery' });
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import crypto from 'node:crypto';
|
|
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 { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
7
|
+
import { createProjectRegistry } from '../projects/registry.js';
|
|
8
|
+
import { createProjectIdFromPath } from '../projects/project-id.js';
|
|
9
|
+
import { createSettingsRuntime } from '../opencode/settings-runtime.js';
|
|
10
|
+
import { createSettingsNormalizationRuntime } from '../opencode/settings-normalization-runtime.js';
|
|
11
|
+
import { createProjectDirectoryRuntime } from '../opencode/project-directory-runtime.js';
|
|
12
|
+
import { registerProjectsSkill, PROJECTS_SKILL_PATH } from './projects.js';
|
|
13
|
+
|
|
14
|
+
describe('session project registration API', () => {
|
|
15
|
+
let root, workspace, settingsPath, runtime, server, origin, getSession, binding, registerProject, shared, failWrites, tips;
|
|
16
|
+
const auth = { Authorization: `Basic ${Buffer.from('opencode:fixture').toString('base64')}` };
|
|
17
|
+
beforeEach(async () => {
|
|
18
|
+
root = await fs.mkdtemp(path.join(os.tmpdir(), 'project-skill-'));
|
|
19
|
+
workspace = path.join(root, '项目 & # 100%');
|
|
20
|
+
await fs.mkdir(workspace);
|
|
21
|
+
settingsPath = path.join(root, 'settings.json');
|
|
22
|
+
const normalization = createSettingsNormalizationRuntime({ os, path, processLike: process });
|
|
23
|
+
tips = vi.fn(); failWrites = false; shared = true;
|
|
24
|
+
runtime = createSettingsRuntime({ fsPromises: { ...fs, rename: (...args) => failWrites ? Promise.reject(new Error('private-write-error')) : fs.rename(...args) },
|
|
25
|
+
path, crypto, SETTINGS_FILE_PATH: settingsPath, ...normalization,
|
|
26
|
+
sanitizeSettingsUpdate: (patch) => patch, mergePersistedSettings: (current, patch) => ({ ...current, ...patch }),
|
|
27
|
+
formatSettingsResponse: (value) => value, resolveDirectoryCandidate: (value) => value, onProjectOrderChanged: tips,
|
|
28
|
+
});
|
|
29
|
+
const { validateDirectoryPath } = createProjectDirectoryRuntime({ fsPromises: fs, path, normalizeDirectoryPath: normalization.normalizeDirectoryPath });
|
|
30
|
+
const registry = createProjectRegistry({ persistSettings: runtime.persistSettings, validateDirectoryPath });
|
|
31
|
+
registerProject = vi.fn((input) => registry.register(input));
|
|
32
|
+
getSession = vi.fn(async () => ({ metadata: { yuri: { scheduledTaskSkill: { hostOrigin: binding } } } }));
|
|
33
|
+
const app = express();
|
|
34
|
+
registerProjectsSkill(app, { express, getIsSharedOpenCodeService: () => shared, getOpenCodeAuthHeaders: () => auth,
|
|
35
|
+
createClient: () => ({ session: { get: getSession } }), registerProject, readSettingsFromDiskStrict: runtime.readSettingsFromDiskStrict,
|
|
36
|
+
sanitizeProjects: normalization.sanitizeProjects,
|
|
37
|
+
});
|
|
38
|
+
server = await new Promise((resolve) => { const s = app.listen(0, '127.0.0.1', () => resolve(s)); });
|
|
39
|
+
origin = `http://127.0.0.1:${server.address().port}`; binding = origin;
|
|
40
|
+
});
|
|
41
|
+
afterEach(async () => { await new Promise((resolve) => server.close(resolve)); await fs.rm(root, { recursive: true, force: true }); });
|
|
42
|
+
const request = (operation, input = {}, headers = auth) => fetch(`${origin}${PROJECTS_SKILL_PATH}`, { method: 'POST',
|
|
43
|
+
headers: { 'content-type': 'application/json', ...headers }, body: JSON.stringify({ sessionID: 'ses_one', operation, input }) });
|
|
44
|
+
|
|
45
|
+
it('confirms persisted registration, deduplicates canonical paths and preserves existing selection/settings', async () => {
|
|
46
|
+
const oldPath = path.join(root, 'offline');
|
|
47
|
+
const oldId = createProjectIdFromPath(oldPath);
|
|
48
|
+
await fs.writeFile(settingsPath, JSON.stringify({ secret: 'private-settings', projects: [{ id: oldId, path: oldPath, label: 'Old' }], activeProjectId: oldId }));
|
|
49
|
+
const response = await request('add', { path: workspace, label: 'App' });
|
|
50
|
+
expect(response.status).toBe(200);
|
|
51
|
+
expect(response.headers.get('cache-control')).toBe('no-store');
|
|
52
|
+
const added = await response.json();
|
|
53
|
+
expect(added).toEqual({ created: true, project: { id: expect.any(String), path: await fs.realpath(workspace), label: 'App' } });
|
|
54
|
+
const alias = path.join(root, 'alias'); await fs.symlink(workspace, alias);
|
|
55
|
+
expect(await (await request('add', { path: alias, label: 'Do not rename' })).json()).toEqual({ ...added, created: false });
|
|
56
|
+
const persisted = await runtime.readSettingsFromDiskStrict();
|
|
57
|
+
expect(persisted.projects).toHaveLength(2);
|
|
58
|
+
expect(persisted.activeProjectId).toBe(oldId);
|
|
59
|
+
expect(persisted.secret).toBe('private-settings');
|
|
60
|
+
expect(tips).toHaveBeenCalledTimes(1);
|
|
61
|
+
const listed = await (await request('list')).json();
|
|
62
|
+
expect(listed.projects).toContainEqual(added.project);
|
|
63
|
+
expect(JSON.stringify({ added, listed })).not.toContain('private-settings');
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('rejects invalid input and nonexistent/file paths without changing saved state', async () => {
|
|
67
|
+
await fs.writeFile(settingsPath, JSON.stringify({ projects: [], secret: 'saved' }));
|
|
68
|
+
const before = await fs.readFile(settingsPath, 'utf8');
|
|
69
|
+
for (const input of [{}, [], null, { path: 'relative' }, { path: workspace, activate: true }, { path: workspace, label: '' },
|
|
70
|
+
{ path: workspace, label: 'x'.repeat(81) }, { path: workspace + '\u0000' }, { path: path.join(root, 'missing') }, { path: settingsPath }]) {
|
|
71
|
+
expect((await request('add', input)).status).toBe(400);
|
|
72
|
+
}
|
|
73
|
+
expect((await request('remove', { path: workspace })).status).toBe(400);
|
|
74
|
+
expect((await request('list', { path: workspace })).status).toBe(400);
|
|
75
|
+
expect(await fs.readFile(settingsPath, 'utf8')).toBe(before);
|
|
76
|
+
expect(tips).not.toHaveBeenCalled();
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it('requires service authentication, shared ownership and the admitted Host before registration', async () => {
|
|
80
|
+
for (const headers of [{}, { Authorization: 'Bearer browser' }, { ...auth, Origin: origin }]) expect((await request('add', { path: workspace }, headers)).status).toBe(403);
|
|
81
|
+
shared = false;
|
|
82
|
+
expect((await request('describe')).status).toBe(403);
|
|
83
|
+
expect(getSession).not.toHaveBeenCalled();
|
|
84
|
+
shared = true; binding = 'http://127.0.0.1:1';
|
|
85
|
+
for (const operation of ['describe', 'list', 'add']) expect((await request(operation, operation === 'add' ? { path: workspace } : {})).status).toBe(403);
|
|
86
|
+
expect(registerProject).not.toHaveBeenCalled();
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('never reports corrupt reads or failed persistence as successful empty or added results', async () => {
|
|
90
|
+
for (const corrupt of ['{broken', '[]', 'null', '{"projects":{}}']) {
|
|
91
|
+
await fs.writeFile(settingsPath, corrupt);
|
|
92
|
+
expect((await request('list')).status).toBe(503);
|
|
93
|
+
expect(await fs.readFile(settingsPath, 'utf8')).toBe(corrupt);
|
|
94
|
+
}
|
|
95
|
+
await fs.writeFile(settingsPath, '{"projects":[]}');
|
|
96
|
+
failWrites = true;
|
|
97
|
+
const response = await request('add', { path: workspace });
|
|
98
|
+
expect(response.status).toBe(503);
|
|
99
|
+
expect(await response.text()).not.toContain('private-write-error');
|
|
100
|
+
expect(await fs.readFile(settingsPath, 'utf8')).toBe('{"projects":[]}');
|
|
101
|
+
expect(tips).not.toHaveBeenCalled();
|
|
102
|
+
});
|
|
103
|
+
});
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { realpathSync } from 'node:fs';
|
|
3
3
|
import { pathToFileURL } from 'node:url';
|
|
4
|
+
import { sessionSkillCommand } from './session-skill-command.mjs';
|
|
4
5
|
|
|
5
|
-
export const remoteConnectionsCommand =
|
|
6
|
-
const args = [executable, script, encoded, operation];
|
|
7
|
-
const quote = (value) => `'${String(value).replaceAll("'", "'\\''")}'`;
|
|
8
|
-
if (process.platform !== 'win32') return `ELECTRON_RUN_AS_NODE=1 ${args.map(quote).join(' ')}`;
|
|
9
|
-
const psQuote = (value) => `'${String(value).replaceAll("'", "''")}'`;
|
|
10
|
-
const ps = `$env:ELECTRON_RUN_AS_NODE='1'; & ${args.map(psQuote).join(' ')}`;
|
|
11
|
-
return `powershell.exe -NoProfile -NonInteractive -WindowStyle Hidden -EncodedCommand ${Buffer.from(ps, 'utf16le').toString('base64')}`;
|
|
12
|
-
};
|
|
6
|
+
export const remoteConnectionsCommand = sessionSkillCommand;
|
|
13
7
|
|
|
14
8
|
async function main() {
|
|
15
9
|
try {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const sessionSkillCommand = (executable, script, encoded, operation) => {
|
|
2
|
+
const args = [executable, script, encoded, operation];
|
|
3
|
+
const quote = (value) => `'${String(value).replaceAll("'", "'\\''")}'`;
|
|
4
|
+
if (process.platform !== 'win32') return `ELECTRON_RUN_AS_NODE=1 ${args.map(quote).join(' ')}`;
|
|
5
|
+
const psQuote = (value) => `'${String(value).replaceAll("'", "''")}'`;
|
|
6
|
+
const ps = `$env:ELECTRON_RUN_AS_NODE='1'; & ${args.map(psQuote).join(' ')}`;
|
|
7
|
+
return `powershell.exe -NoProfile -NonInteractive -WindowStyle Hidden -EncodedCommand ${Buffer.from(ps, 'utf16le').toString('base64')}`;
|
|
8
|
+
};
|
|
@@ -2,16 +2,20 @@ import { readFile, mkdir, writeFile, rename, rm } from 'node:fs/promises';
|
|
|
2
2
|
import { createHash, randomUUID } from 'node:crypto';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { remoteConnectionsCommand } from './remote-connections-client.mjs';
|
|
5
|
+
import { sessionSkillCommand } from './session-skill-command.mjs';
|
|
5
6
|
|
|
6
|
-
const
|
|
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)];
|
|
7
9
|
|
|
8
10
|
/** Stage immutable, shipped instructions; never edit the user's global skills/config. */
|
|
9
11
|
export function createCustomizationSkillInstaller({ yuriDataDir }) {
|
|
10
12
|
const resources = new Map();
|
|
11
|
-
const prepare = (withRemote) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
13
|
+
const prepare = (withRemote, withProjects) => {
|
|
14
|
+
const key = `${withRemote}:${withProjects}`;
|
|
15
|
+
if (!resources.has(key)) resources.set(key, (async () => {
|
|
16
|
+
const stagedFiles = files.filter((name) => (name !== 'remote-connections.mjs' || withRemote)
|
|
17
|
+
&& (name !== 'projects.mjs' || withProjects) && (name !== 'session-skill-command.mjs' || withRemote || withProjects));
|
|
18
|
+
const contents = await Promise.all(stagedFiles.map((name) => readFile(new URL(scripts[name] ?? `./skill/${name}`, import.meta.url), 'utf8')));
|
|
15
19
|
const hash = createHash('sha256').update(contents.join('\0')).digest('hex').slice(0, 16);
|
|
16
20
|
const directory = path.join(yuriDataDir, 'session-skills', `yuri-customization-${hash}`);
|
|
17
21
|
await mkdir(path.join(directory, 'references'), { recursive: true, mode: 0o700 });
|
|
@@ -22,14 +26,15 @@ export function createCustomizationSkillInstaller({ yuriDataDir }) {
|
|
|
22
26
|
finally { await rm(temporary, { force: true }); }
|
|
23
27
|
}));
|
|
24
28
|
return path.join(directory, 'SKILL.md');
|
|
25
|
-
})().catch((error) => { resources.delete(
|
|
26
|
-
return resources.get(
|
|
29
|
+
})().catch((error) => { resources.delete(key); throw error; }));
|
|
30
|
+
return resources.get(key);
|
|
27
31
|
};
|
|
28
|
-
return async (client, sessionID, remoteBinding) => {
|
|
29
|
-
const file = await prepare(Boolean(remoteBinding));
|
|
32
|
+
return async (client, sessionID, { remoteBinding, projectBinding } = {}) => {
|
|
33
|
+
const file = await prepare(Boolean(remoteBinding), Boolean(projectBinding));
|
|
34
|
+
const projects = projectBinding ? ` For project registration, 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 is unavailable through this session skill.';
|
|
30
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.';
|
|
31
36
|
await client.session.instructions.entry.put({ sessionID, key: 'yuri.customization',
|
|
32
|
-
value: `Yuri customization: for 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.${remote}`,
|
|
37
|
+
value: `Yuri customization: for adding a directory as a project in Yuri, 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}`,
|
|
33
38
|
});
|
|
34
39
|
};
|
|
35
40
|
}
|
|
@@ -23,7 +23,15 @@ 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 ['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']) expect((await fs.readFile(path.join(path.dirname(file), 'references', `${name}.md`), 'utf8')).length).toBeGreaterThan(500);
|
|
27
|
+
expect(entry.value).toContain('adding a directory as a project in Yuri');
|
|
28
|
+
expect(await fs.readFile(file, 'utf8')).toContain('(references/projects.md)');
|
|
29
|
+
const projects = await fs.readFile(path.join(path.dirname(file), 'references', 'projects.md'), 'utf8');
|
|
30
|
+
expect(projects).toContain('POST /api/yuri/session-skills/projects');
|
|
31
|
+
expect(projects).toContain('commands.add');
|
|
32
|
+
expect(projects).not.toContain('open \'yuri://');
|
|
33
|
+
expect(entry.value).toContain('No bound project helper is provided');
|
|
34
|
+
await expect(fs.stat(path.join(path.dirname(file), 'projects.mjs'))).rejects.toMatchObject({ code: 'ENOENT' });
|
|
27
35
|
expect(entry.value).not.toContain('Bound local desktop helper');
|
|
28
36
|
expect(entry.value).toContain('No bound SSH/Relay command is provided');
|
|
29
37
|
expect(entry.value).toContain('There is no credential/filesystem fallback');
|
|
@@ -32,12 +40,23 @@ describe('built-in customization instructions', () => {
|
|
|
32
40
|
expect(await fs.readFile(path.join(path.dirname(file), 'references', 'global-pages.md'), 'utf8')).toContain('(icons.md)');
|
|
33
41
|
expect(await fs.readFile(path.join(path.dirname(file), 'references', 'appearance.md'), 'utf8')).toContain('yuri.branding');
|
|
34
42
|
expect(put.mock.calls[1][0].value).toBe(entry.value);
|
|
35
|
-
|
|
43
|
+
const binding = { hostOrigin: 'http://127.0.0.1:4000', upstreamOrigin: 'http://127.0.0.1:4096', registrationFile: path.join(root, 'service.json') };
|
|
44
|
+
await install(client, 'ses_bound', { remoteBinding: binding });
|
|
36
45
|
const bound = put.mock.calls[2][0].value;
|
|
37
46
|
const boundFile = JSON.parse(bound.match(/read (".*?") first/)[1]);
|
|
38
47
|
expect(boundFile).not.toBe(file);
|
|
39
48
|
expect(bound).toContain('Bound local desktop helper:');
|
|
49
|
+
expect(await fs.readFile(path.join(path.dirname(boundFile), 'references', 'projects.md'), 'utf8')).toBe(projects);
|
|
40
50
|
expect(await fs.readFile(path.join(path.dirname(boundFile), 'remote-connections.mjs'), 'utf8')).toContain('/api/yuri/session-skills/remote-connections');
|
|
51
|
+
expect(await fs.readFile(path.join(path.dirname(boundFile), 'session-skill-command.mjs'), 'utf8')).toContain('sessionSkillCommand');
|
|
52
|
+
await install(client, 'ses_project', { projectBinding: binding });
|
|
53
|
+
const projectEntry = put.mock.calls[3][0].value;
|
|
54
|
+
const projectFile = JSON.parse(projectEntry.match(/read (".*?") first/)[1]);
|
|
55
|
+
expect(projectFile).not.toBe(boundFile);
|
|
56
|
+
expect(projectEntry).toContain('Bound project helper:');
|
|
57
|
+
expect(projectEntry).toContain('No bound SSH/Relay command is provided');
|
|
58
|
+
expect(await fs.readFile(path.join(path.dirname(projectFile), 'projects.mjs'), 'utf8')).toContain('/api/yuri/session-skills/projects');
|
|
59
|
+
await expect(fs.stat(path.join(path.dirname(projectFile), 'remote-connections.mjs'))).rejects.toMatchObject({ code: 'ENOENT' });
|
|
41
60
|
});
|
|
42
61
|
it('initializes managed sessions, rolls back failures, preserves adopted sessions and skips external/shared ownership', async () => {
|
|
43
62
|
const root = await directory();
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: yuri-customization
|
|
3
|
-
description:
|
|
3
|
+
description: Add existing directories as Yuri projects through its API, 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
|
+
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
|
+
|
|
8
10
|
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.
|
|
9
11
|
|
|
10
12
|
## Workflow
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Add a project
|
|
2
|
+
|
|
3
|
+
Register an existing directory through the **bound project API helper** in this
|
|
4
|
+
session's Yuri customization pointer. This is a Host capability, not a GUI plugin
|
|
5
|
+
or a desktop deep link. Registration does not create files, clone a repository,
|
|
6
|
+
open a conversation or switch an existing active project.
|
|
7
|
+
|
|
8
|
+
## Workflow
|
|
9
|
+
|
|
10
|
+
1. Resolve the user-requested directory to an absolute path on the bound Yuri
|
|
11
|
+
Host. Reuse a known directory; directory creation/cloning is a separate action
|
|
12
|
+
requiring the user's request. Paths in JSON are literal strings, not
|
|
13
|
+
percent-encoded URL parameters.
|
|
14
|
+
2. Run this session's exact `Bound project helper` command (`describe`). It returns
|
|
15
|
+
the supported operations and ready-to-run `commands.add` and `commands.list`.
|
|
16
|
+
The helper owns authentication; no credential discovery or browser login is
|
|
17
|
+
needed. If the pointer has no bound project command, report unavailable.
|
|
18
|
+
3. Run the returned `add` command unchanged, supplying JSON on stdin:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{"path":"/workspace/my-project","label":"My project"}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`path` is required; `label` is optional (up to 80 characters). The Host validates
|
|
25
|
+
the existing directory and canonicalizes its path, then registers it through
|
|
26
|
+
Yuri's shared project registry and serialized settings writer. Repeat calls
|
|
27
|
+
for the same canonical directory reuse the existing project and preserve its
|
|
28
|
+
name, order and metadata.
|
|
29
|
+
4. A successful result is `{"project":{"id":"…","path":"…","label":"…"},"created":true}`.
|
|
30
|
+
`created:false` means it was already registered. Both confirm the saved project;
|
|
31
|
+
use the returned canonical `project.path` and report the result briefly. The
|
|
32
|
+
`label` field can be absent. No browser check is required to prove registration.
|
|
33
|
+
|
|
34
|
+
`list` returns `{"projects":[{"id":"…","path":"…","label":"…"}]}` from the
|
|
35
|
+
authoritative settings store. After an interrupted response, list or retry add
|
|
36
|
+
with the same path: registration is idempotent. A failure is unconfirmed, never an
|
|
37
|
+
empty-success result. Missing paths, files and inaccessible directories fail
|
|
38
|
+
without implicit filesystem creation. A `terminal:true` helper error stops this
|
|
39
|
+
workflow until a new supported session's bound describe succeeds.
|
|
40
|
+
|
|
41
|
+
## Interface and scope
|
|
42
|
+
|
|
43
|
+
The helper calls `POST /api/yuri/session-skills/projects` with
|
|
44
|
+
`{sessionID, operation: "describe" | "list" | "add", input}`. It uses the same
|
|
45
|
+
loopback service authentication and admitted-session Host binding as the other
|
|
46
|
+
built-in session helpers. Only affected project metadata is returned, never full
|
|
47
|
+
settings or credentials. Use the bound command rather than reconstructing auth or
|
|
48
|
+
calling the route with browser tokens.
|
|
49
|
+
|
|
50
|
+
The existing UI API `POST /api/opencode/directory` and this bridge share
|
|
51
|
+
`projects/registry.js`; the UI API additionally activates the directory. The skill
|
|
52
|
+
registers only, preserving an existing active selection (the first project may
|
|
53
|
+
become active through normal settings initialization). Existing project-order
|
|
54
|
+
notifications distribute the saved registry to connected clients.
|
|
55
|
+
|
|
56
|
+
New shared-service sessions admitted by a Yuri Host receive the helper whether
|
|
57
|
+
the UI is Electron, web or connected mobile. The directory belongs to that Host,
|
|
58
|
+
not the phone or another machine. Private/external OpenCode, standalone VS Code,
|
|
59
|
+
old sessions and contacts without a bound command gain no API access from reading
|
|
60
|
+
this file. Contacts may instead have their own granted `yuri.projects` tools;
|
|
61
|
+
those retain their own capability contract. When the helper is unavailable, use
|
|
62
|
+
the intended Host's project UI or start a supported session. Keep desktop deep
|
|
63
|
+
links for their existing navigation purpose, not as an API authorization fallback.
|
|
@@ -15,6 +15,17 @@ The local Host is the configuration source, regardless of other windows' selecte
|
|
|
15
15
|
|
|
16
16
|
Remote Magpie startup reuses a healthy gateway or the `yuri-magpie` tmux session. Automatic startup requires a POSIX target with tmux. No desktop environment is needed. Missing tmux, gateway health failure or sync failure leaves a working SSH connection intact with warnings; retry setup after fixing that target. Configuration/accounts already applied remain and existing sync backup rules apply. External/probe-only SSH instances are not modified by this workflow.
|
|
17
17
|
|
|
18
|
+
### Reconnection and update acceptance
|
|
19
|
+
|
|
20
|
+
For managed SSH connections, report these checks separately. Use the bound helper or Settings → Remote instances; the availability gate below still applies.
|
|
21
|
+
|
|
22
|
+
- **Reconnect:** retry the saved instance ID after disconnecting, and again after restarting the desktop. Each attempt must finish with `running:false` and `phase:ready`; open that remote workspace and verify an authenticated operation against its OpenCode service. A prior ready receipt or a standalone web server's health response does not establish this result.
|
|
23
|
+
- **Runtime readiness:** the executable selected by managed SSH startup must load its server dependencies, load native modules in the selected runtime, and reach authenticated service readiness. A CLI version response or successful package installation alone is insufficient. Record the actual runtime/package versions when available; otherwise mark that evidence unavailable.
|
|
24
|
+
- **Update:** when a different target version is available, reconnect through the normal managed entry. Verify that version alignment completes, the running remote Host reports the target version, and its workspace remains usable. Disconnect and reconnect once more to confirm the updated installation is selected again. Record the before/target/running versions; without a version transition, report update acceptance as unverified.
|
|
25
|
+
- **Installation ownership:** the executable used on subsequent connections must resolve to the installation that the managed updater replaces. A manually deployed checkout, wrapper or redirected executable requires evidence that an update replaces the selected installation and the next connection uses it; successful startup alone does not prove updateability.
|
|
26
|
+
|
|
27
|
+
Report connection, runtime and update evidence independently from configuration-sync and gateway receipts. If an update or startup fails, report its failed stage and retain the saved instance for retry; success requires a subsequent normal managed connection to reach readiness. These are acceptance criteria, not authorization to rewrite runtime files, executable links or credentials outside the supported setup flow.
|
|
28
|
+
|
|
18
29
|
## Relay pairing
|
|
19
30
|
|
|
20
31
|
Pipe `{}` to `pair` to create a one-time Relay link for **this local desktop**. Use `{"id":"<ready SSH instance>"}` to create one on that remote Host instead. An explicitly requested Relay endpoint can be supplied as `relayUrl`; `label` names the pairing. The normal Host pairing API owns expiry, redemption, Relay enablement and authorization.
|
|
@@ -8,6 +8,10 @@ Assistant text delivery parts may carry the optional boolean `synthetic` marker.
|
|
|
8
8
|
|
|
9
9
|
## Authority modes: shadow / active / cutover
|
|
10
10
|
|
|
11
|
+
Remote Project queue calls execute on the target through the Host-prefixed
|
|
12
|
+
Gateway. This local service rejects serialized remote Location/session identities
|
|
13
|
+
before admission, so their content cannot accidentally enter the Hub queue DB.
|
|
14
|
+
|
|
11
15
|
Runtime authority is durable per runtime through `getQueueAuthority`/`setQueueAuthority` (`shadow`, `active`, `paused`) with generation CAS, activation epoch, timestamp, manifest hash, and protocol 4.
|
|
12
16
|
|
|
13
17
|
| Authority | Role |
|
|
@@ -57,6 +57,7 @@ const fail = (code) => { throw new MessageQueueError(code); };
|
|
|
57
57
|
const plainObject = (value) => value !== null && typeof value === 'object' && !Array.isArray(value) && (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null);
|
|
58
58
|
const normalizeDirectory = (value) => {
|
|
59
59
|
if (typeof value !== 'string' || !value.trim()) return null;
|
|
60
|
+
if (value.startsWith('yuri-remote-location:')) return null;
|
|
60
61
|
const normalized = value.trim().replace(/\\/g, '/').replace(/\/+$/, '') || '/';
|
|
61
62
|
return normalized.length <= MAX_PATH ? normalized : null;
|
|
62
63
|
};
|
|
@@ -321,7 +322,7 @@ export const createMessageQueueService = ({ dbPath, getRuntimeConfig = () => nul
|
|
|
321
322
|
const validateAdmission = (input) => {
|
|
322
323
|
const item = input?.item;
|
|
323
324
|
if (!plainObject(input) || Object.keys(input).some((key) => !ADMISSION_KEYS.has(key)) || !plainObject(input.scope) || Object.keys(input.scope).some((key) => !SCOPE_KEYS.has(key)) || !plainObject(item) || Object.keys(item).some((key) => !ITEM_KEYS.has(key))) fail('validation_error');
|
|
324
|
-
if (!normalizeDirectory(input.scope.directory) || !nonEmptyString(input.scope.sessionID) || !nonEmptyString(item.queueItemID) || !nonEmptyString(item.operationID) || !nonEmptyString(item.messageID) || typeof item.content !== 'string' || item.content.length > MAX_CONTENT || !Number.isInteger(item.createdAt) || item.createdAt < 0) fail('validation_error');
|
|
325
|
+
if (!normalizeDirectory(input.scope.directory) || !nonEmptyString(input.scope.sessionID) || input.scope.sessionID.startsWith('yuri-remote-session:') || !nonEmptyString(item.queueItemID) || !nonEmptyString(item.operationID) || !nonEmptyString(item.messageID) || typeof item.content !== 'string' || item.content.length > MAX_CONTENT || !Number.isInteger(item.createdAt) || item.createdAt < 0) fail('validation_error');
|
|
325
326
|
const attachments = validateAttachments(item); const composerAttachmentIdentities = validateComposer(item.composerDocument, item.content); validateComposerMentions(item.composerMentions, item.composerDocument); validateSendConfig(item.sendConfig); validateDeliveryParts(item.deliveryParts, false, { migrationImport: item.migrationImport === true }); validateAssistantAttachmentParts(item.deliveryParts, attachments, { migrationImport: item.migrationImport === true }); validateSyntheticParts(item.syntheticParts, attachments, item.deliveryParts); captureDeliveryTarget(item.deliveryTarget, input.scope, item);
|
|
326
327
|
if (item.dueAt !== undefined && (!Number.isSafeInteger(item.dueAt) || item.dueAt < 0)) fail('validation_error');
|
|
327
328
|
if (item.migrationState !== undefined) {
|
|
@@ -46,6 +46,17 @@ const createV1Fixture = (pathname, version = '1') => {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
describe('message queue service', () => {
|
|
49
|
+
it('rejects remote location/session identities without retaining queue content', () => {
|
|
50
|
+
const service = createService(dbPath());
|
|
51
|
+
try {
|
|
52
|
+
for (const scope of [
|
|
53
|
+
{ directory: 'yuri-remote-location:["hub","host","/repo"]', sessionID: 's' },
|
|
54
|
+
{ directory: '/repo', sessionID: 'yuri-remote-session:["hub","host","s"]' },
|
|
55
|
+
]) expect(() => service.admit({ ...admission(), scope })).toThrow(expect.objectContaining({ code: 'validation_error' }));
|
|
56
|
+
expect(service.snapshot().revision).toBe(0);
|
|
57
|
+
} finally { service.close(); }
|
|
58
|
+
});
|
|
59
|
+
|
|
49
60
|
it('persists message attempts and replays identical receipts after restart', () => {
|
|
50
61
|
const pathname = dbPath();
|
|
51
62
|
const first = createService(pathname);
|
|
@@ -12,6 +12,18 @@ delivery settings and the legacy in-memory attention/presence endpoints.
|
|
|
12
12
|
success/error (including legacy idle/error) increments attention without requiring
|
|
13
13
|
an online client. Root/system visibility uses the session-index policy and an
|
|
14
14
|
authoritative session record; child sessions do not create unread badges.
|
|
15
|
+
Explicit CLI-worker ownership (`metadata.yuri.worker.parentSessionID`) uses the
|
|
16
|
+
same exclusion as the session catalog, even if native `parentID` is absent.
|
|
17
|
+
Metadata lifecycle updates remove existing hidden attention without waiting for
|
|
18
|
+
another completion. The first unread GET after Host startup reconciles persisted
|
|
19
|
+
unread rows against current session records, with at most four identity reads in
|
|
20
|
+
flight and one shared reconciliation for concurrent clients. Already-read rows
|
|
21
|
+
are skipped and successful identities are not reread on later GETs. Failed
|
|
22
|
+
identity/cleanup writes retain that row, return retryable 503, and retry only the
|
|
23
|
+
unresolved rows; independent successful cleanup stays committed. No transcript
|
|
24
|
+
scan or title/agent-name heuristic is used. Unmarked CLI roots remain ordinary
|
|
25
|
+
conversations; verified historical workers must first receive their explicit
|
|
26
|
+
ownership marker through the metadata store.
|
|
15
27
|
Token/part/message deltas do no work. Each session serializes lifecycle boundaries
|
|
16
28
|
and independently retries failed identity reads/writes with capped backoff.
|
|
17
29
|
New execution rearms terminal deduplication and clears its previous error marker;
|
|
@@ -46,6 +46,7 @@ export const createNotificationEmitterRuntime = (dependencies) => {
|
|
|
46
46
|
desktopNotifyPrefix,
|
|
47
47
|
getUiNotificationClients,
|
|
48
48
|
getBroadcastGlobalUiEvent,
|
|
49
|
+
getInstanceId,
|
|
49
50
|
// Optional: in-process desktop shells (Electron main) inject a callback so
|
|
50
51
|
// notifications are delivered as a direct function call instead of a stdout
|
|
51
52
|
// stringly-typed IPC.
|
|
@@ -107,6 +108,8 @@ export const createNotificationEmitterRuntime = (dependencies) => {
|
|
|
107
108
|
};
|
|
108
109
|
|
|
109
110
|
const emitDesktopNotification = (payload) => {
|
|
111
|
+
const instanceId = getInstanceId?.();
|
|
112
|
+
if (instanceId && payload && typeof payload === 'object') payload = { ...payload, instanceId };
|
|
110
113
|
const desktopNotifyEnabled = getDesktopNotifyEnabled();
|
|
111
114
|
if (!desktopNotifyEnabled) {
|
|
112
115
|
return false;
|
|
@@ -138,6 +141,8 @@ export const createNotificationEmitterRuntime = (dependencies) => {
|
|
|
138
141
|
};
|
|
139
142
|
|
|
140
143
|
const broadcastUiNotification = (payload, options = {}) => {
|
|
144
|
+
const instanceId = getInstanceId?.();
|
|
145
|
+
if (instanceId && payload && typeof payload === 'object') payload = { ...payload, instanceId };
|
|
141
146
|
const desktopNotifyEnabled = getDesktopNotifyEnabled();
|
|
142
147
|
if (!payload || typeof payload !== 'object') {
|
|
143
148
|
return;
|
|
@@ -218,7 +218,8 @@ export const createNotificationTriggerRuntime = (deps) => {
|
|
|
218
218
|
);
|
|
219
219
|
|
|
220
220
|
const getCachedSessionMeta = (sessionId, directory) => {
|
|
221
|
-
const
|
|
221
|
+
const requestedKey = getSessionMetaCacheKey(sessionId, directory);
|
|
222
|
+
const cacheKey = sessionMetaCache.has(requestedKey) ? requestedKey : getSessionMetaCacheKey(sessionId, undefined);
|
|
222
223
|
const entry = sessionMetaCache.get(cacheKey);
|
|
223
224
|
if (!entry) return undefined;
|
|
224
225
|
if (Date.now() - entry.at > SESSION_META_CACHE_TTL_MS) {
|
|
@@ -232,6 +233,8 @@ export const createNotificationTriggerRuntime = (deps) => {
|
|
|
232
233
|
const previous = getCachedSessionMeta(sessionId, directory);
|
|
233
234
|
sessionMetaCache.set(getSessionMetaCacheKey(sessionId, directory), {
|
|
234
235
|
parentID: meta.parentID !== undefined ? meta.parentID : (previous?.parentID ?? null),
|
|
236
|
+
workerParentSessionID: meta.workerParentSessionID !== undefined
|
|
237
|
+
? meta.workerParentSessionID : (previous?.workerParentSessionID ?? null),
|
|
235
238
|
smallModelPurpose: meta.smallModelPurpose !== undefined
|
|
236
239
|
? meta.smallModelPurpose
|
|
237
240
|
: (previous?.smallModelPurpose ?? null),
|
|
@@ -254,6 +257,7 @@ export const createNotificationTriggerRuntime = (deps) => {
|
|
|
254
257
|
? yuri.assigned.from
|
|
255
258
|
: null;
|
|
256
259
|
return {
|
|
260
|
+
workerParentSessionID: normalizeParentID(yuri?.worker?.parentSessionID),
|
|
257
261
|
smallModelPurpose: normalizeSmallModelPurpose(yuri?.smallModel?.purpose),
|
|
258
262
|
// Throwaway LLM gateway sessions (`metadata.yuri.llm.purpose`) share
|
|
259
263
|
// the same sidebar-hidden contract as small-model system sessions.
|
|
@@ -271,6 +275,19 @@ export const createNotificationTriggerRuntime = (deps) => {
|
|
|
271
275
|
|
|
272
276
|
const maybeCacheSessionMetaFromPayload = (payload) => {
|
|
273
277
|
if (!payload || typeof payload !== 'object') return;
|
|
278
|
+
if (payload.type === 'session.metadata.updated') {
|
|
279
|
+
const data = payload.data ?? payload.properties;
|
|
280
|
+
if (typeof data?.sessionID === 'string' && data.metadata && typeof data.metadata === 'object') {
|
|
281
|
+
const meta = metaFromYuri(data.metadata.yuri);
|
|
282
|
+
for (const key of sessionMetaCache.keys()) {
|
|
283
|
+
if (key.endsWith(`\0${data.sessionID}`)) {
|
|
284
|
+
setCachedSessionMeta(data.sessionID, key.slice(0, -data.sessionID.length - 1), meta);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
setCachedSessionMeta(data.sessionID, undefined, meta);
|
|
288
|
+
}
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
274
291
|
if (payload.type !== 'session.created' && payload.type !== 'session.updated') return;
|
|
275
292
|
const info = payload.properties?.info;
|
|
276
293
|
if (!info || typeof info !== 'object') return;
|
|
@@ -289,7 +306,7 @@ export const createNotificationTriggerRuntime = (deps) => {
|
|
|
289
306
|
if (!sessionId) return undefined;
|
|
290
307
|
|
|
291
308
|
const cached = getCachedSessionMeta(sessionId, directory);
|
|
292
|
-
if (cached?.complete) return cached;
|
|
309
|
+
if (cached?.complete || isHiddenFromNavSession(cached)) return cached;
|
|
293
310
|
|
|
294
311
|
try {
|
|
295
312
|
const base = buildOpenCodeUrl(`/session/${encodeURIComponent(sessionId)}`, '');
|
|
@@ -347,6 +364,7 @@ export const createNotificationTriggerRuntime = (deps) => {
|
|
|
347
364
|
const isHiddenFromNavSession = (meta) => {
|
|
348
365
|
if (!meta) return false;
|
|
349
366
|
if (typeof meta.parentID === 'string' && meta.parentID.length > 0) return true;
|
|
367
|
+
if (meta.workerParentSessionID) return true;
|
|
350
368
|
if (typeof meta.smallModelPurpose === 'string' && meta.smallModelPurpose.length > 0) return true;
|
|
351
369
|
if (typeof meta.llmPurpose === 'string' && meta.llmPurpose.length > 0) return true;
|
|
352
370
|
if (typeof meta.assistantID === 'string' && meta.assistantID.length > 0 && meta.assignedFrom !== 'contact') {
|
|
@@ -368,6 +368,27 @@ describe('notification trigger runtime llm system-session suppression', () => {
|
|
|
368
368
|
expectAllOutletsSilent(outlets);
|
|
369
369
|
});
|
|
370
370
|
|
|
371
|
+
it('skips completion/error outlets for explicitly linked CLI workers without native parentID', async () => {
|
|
372
|
+
vi.stubGlobal('fetch', vi.fn(async () => jsonResponse({
|
|
373
|
+
id: 'worker', title: 'Ordinary title', metadata: { yuri: { worker: { parentSessionID: 'root' } } },
|
|
374
|
+
})));
|
|
375
|
+
const outlets = createRuntime();
|
|
376
|
+
await outlets.runtime.maybeSendPushForTrigger(completionPayload('worker'));
|
|
377
|
+
await outlets.runtime.maybeSendPushForTrigger({ type: 'session.error', properties: { sessionID: 'worker', error: 'boom' } });
|
|
378
|
+
expectAllOutletsSilent(outlets);
|
|
379
|
+
});
|
|
380
|
+
|
|
381
|
+
it('refreshes cached CLI-worker ownership from a native metadata-only event', async () => {
|
|
382
|
+
vi.stubGlobal('fetch', vi.fn(async () => jsonResponse({ id: 'worker', metadata: {} })));
|
|
383
|
+
const outlets = createRuntime();
|
|
384
|
+
await outlets.runtime.maybeSendPushForTrigger({ type: 'session.updated', properties: { info: { id: 'worker' } } });
|
|
385
|
+
await outlets.runtime.maybeSendPushForTrigger({ type: 'session.metadata.updated', data: {
|
|
386
|
+
sessionID: 'worker', metadata: { yuri: { worker: { parentSessionID: 'root' } } },
|
|
387
|
+
} });
|
|
388
|
+
await outlets.runtime.maybeSendPushForTrigger(completionPayload('worker'));
|
|
389
|
+
expectAllOutletsSilent(outlets);
|
|
390
|
+
});
|
|
391
|
+
|
|
371
392
|
it('skips ready notifications synthesized from session.idle for llm sessions', async () => {
|
|
372
393
|
vi.stubGlobal('fetch', vi.fn(async () => llmSessionResponse()));
|
|
373
394
|
const outlets = createRuntime();
|