@yuriai/web 0.2.27 → 0.2.29-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/assets/AgentAvatar-CR6dX_XT.js +1 -0
- package/dist/assets/AssistantContactStatus-B0bsfDtC.js +3 -0
- package/dist/assets/{AssistantUnreadBadge-BssH-RvV.js → AssistantUnreadBadge-D2z3wH6e.js} +1 -1
- package/dist/assets/{AssistantView-CxQv-9Ms.js → AssistantView-1I_CxjRT.js} +1 -1
- package/dist/assets/{DiagramView-DPpG0fwx.js → DiagramView-CDnuxs05.js} +1 -1
- package/dist/assets/{FadeInOnReveal-S6UbimjB.js → FadeInOnReveal-CuOJu25b.js} +1 -1
- package/dist/assets/{GuiPluginSurface-BOf0JA1T.js → GuiPluginSurface-Fz1jDjmD.js} +1 -1
- package/dist/assets/{GuiPluginWindow-OrYkfQ4m.js → GuiPluginWindow-CIVNyw4s.js} +1 -1
- package/dist/assets/Icon-BQczEnxm.js +1 -0
- package/dist/assets/{ImageLoadingPlaceholder-CBFJC_KD.js → ImageLoadingPlaceholder-KksxJaKp.js} +1 -1
- package/dist/assets/LoadingImage-Ch5MyA20.js +1 -0
- package/dist/assets/MarkdownRenderer-2h3s-QAX.js +2 -0
- package/dist/assets/{MarkdownRendererImpl-Cv6UnGG7.js → MarkdownRendererImpl-D-6DekL9.js} +3 -3
- package/dist/assets/MarkstreamRendererImpl-HnrHSasB.js +3 -0
- package/dist/assets/{MobileDetailNavigation-CK4KbkeS.js → MobileDetailNavigation-D-Jwj-Fz.js} +1 -1
- package/dist/assets/{MobileResizableSheet-Deidw1br.js → MobileResizableSheet-Bk3z4g6T.js} +1 -1
- package/dist/assets/{MobileShareBridge-CO_OWEfq.js → MobileShareBridge-BjNcovRh.js} +2 -2
- package/dist/assets/MobileTabPageHeader-o3h0Die1.js +2 -0
- package/dist/assets/MultiRunWindow-BHY_fvEe.js +1 -0
- package/dist/assets/{OnboardingScreen-C8ld4wO7.js → OnboardingScreen-CgQGvlEs.js} +1 -1
- package/dist/assets/{OverlayScrollbar-B3auC2WH.js → OverlayScrollbar-C9Ac564a.js} +1 -1
- package/dist/assets/SettingsView-BlOWs55G.js +29 -0
- package/dist/assets/SettingsWindow-EosRcZmc.js +1 -0
- package/dist/assets/SetupTourDialog-CUzqT2sw.css +1 -0
- package/dist/assets/SetupTourDialog-_DdUf4Np.js +1 -0
- package/dist/assets/{TerminalView-CwRB6Yyr.js → TerminalView-BrTVmvyd.js} +3 -3
- package/dist/assets/ToolOutputDialog-DVVOJVDJ.js +10 -0
- package/dist/assets/VoiceSettings-C0HSdVvS.css +1 -0
- package/dist/assets/VoiceSettings-UNCCasqF.js +2 -0
- package/dist/assets/YuriLogo-CpccdHvS.js +1 -0
- package/dist/assets/YuriWordmark-hZ6K7Smk.js +1 -0
- package/dist/assets/{appThemeRegistry-B6woJIX5.js → appThemeRegistry-B8qob2l9.js} +1 -1
- package/dist/assets/appearance--vFosLNi.js +1 -0
- package/dist/assets/{assistant-attachment-cache-B_qRvy-k.js → assistant-attachment-cache-oatc8F4t.js} +1 -1
- package/dist/assets/{button-BXxwtxsG.js → button-Cjciq1yh.js} +1 -1
- package/dist/assets/{capgoAdapter-C5HFS-rx.js → capgoAdapter-YgVOiKZO.js} +1 -1
- package/dist/assets/collapsible-BzCn4-sd.js +1 -0
- package/dist/assets/context-menu-BIjCIXOg.js +1 -0
- package/dist/assets/desktopRelayRestore-C7pjf6fE.js +1 -0
- package/dist/assets/{device-BcRP6Tjd.js → device-DN1GigI_.js} +1 -1
- package/dist/assets/{diagram-DyY8dxjZ.js → diagram--zTR0vWJ.js} +1 -1
- package/dist/assets/dialog-rVkj8VgE.js +1 -0
- package/dist/assets/dropdown-menu.styles-BDla58Rm.js +1 -0
- package/dist/assets/es-B8dNq0Lv.js +15 -0
- package/dist/assets/{fileMentionTouchSelection-C4dvP8GY.js → fileMentionTouchSelection-CmdNi_d0.js} +2 -2
- package/dist/assets/{fileQueries-BeXkd3o6.js → fileQueries-C2Rs6TPz.js} +1 -1
- package/dist/assets/{fileReferenceActions-CrIAce3K.js → fileReferenceActions-CvDFcgBH.js} +1 -1
- package/dist/assets/{fr-CEgiRlfa.js → fr-DbzWoYOD.js} +4 -4
- package/dist/assets/{gitApi-D2G9ny2O.js → gitApi-CEtJm-Si.js} +3 -3
- package/dist/assets/{gitApiHttp-B7vYwgBh.js → gitApiHttp-Ddik7PM_.js} +4 -4
- package/dist/assets/host-D776RHTx.js +1 -0
- package/dist/assets/image-loading-DKQOYtti.js +1 -0
- package/dist/assets/input-GVRUiwuQ.js +1 -0
- package/dist/assets/insertionBoundaries-DQcca8Jd.js +1 -0
- package/dist/assets/{ja-CX-_p9jZ.js → ja-BGk5BIrz.js} +4 -4
- package/dist/assets/{ko-D5xlLYJM.js → ko-Broo5A8H.js} +4 -4
- package/dist/assets/magpie-BuRvkGVQ.svg +1 -0
- package/dist/assets/main-BY3PGnZf.js +169 -0
- package/dist/assets/main-CMMAJcu3.js +2 -0
- package/dist/assets/{markdownHeightCache-D2VWb_4E.js → markdownHeightCache-C7UOJdkN.js} +1 -1
- package/dist/assets/{markdownTheme-hpURsgju.js → markdownTheme-CHNl6tUv.js} +1 -1
- package/dist/assets/{mcpQueries-DQ3KthDF.js → mcpQueries-Cb3fyXbV.js} +1 -1
- package/dist/assets/miniChat-Dez8HIZj.js +2 -0
- package/dist/assets/mobile-CE0hClMx.js +2 -0
- package/dist/assets/{mobileBackNavigation-BJqt3oHk.js → mobileBackNavigation-HtKkSk0m.js} +1 -1
- package/dist/assets/multirun-CIbNS1L_.js +3 -0
- package/dist/assets/native-DsqzO52u.js +1 -0
- package/dist/assets/{native-config-BIY0Cr-l.js → native-config-D-sxhX53.js} +1 -1
- package/dist/assets/persistence-D-rnhgr4.js +3 -0
- package/dist/assets/{pl-BjH81A_q.js → pl-not4wEra.js} +4 -4
- package/dist/assets/projectMeta-DMn_yra8.js +1 -0
- package/dist/assets/pt-BR-3OzFQDGv.js +15 -0
- package/dist/assets/pwa-CnptYkbA.js +2 -0
- package/dist/assets/{queryRuntime-CTcigFdj.js → queryRuntime-2dx7jbt9.js} +1 -1
- package/dist/assets/{queue-abort-optimistic-CS5jTJq-.js → queue-abort-optimistic-CShE2znR.js} +1 -1
- package/dist/assets/{react-DRe85o5s.js → react-Bwr5-XPi.js} +1 -1
- package/dist/assets/readiness-gqLkYnM4.js +1 -0
- package/dist/assets/renderElectronMiniChatApp-CY9Z1Vhr.js +2 -0
- package/dist/assets/renderMobileApp-BCwgH2Gn.js +28 -0
- package/dist/assets/{runtime-file-download-Cf1WxfeW.js → runtime-file-download-D6bwc3Kj.js} +1 -1
- package/dist/assets/{runtime-file-resource-UJjHUF2C.js → runtime-file-resource-BP4P52ry.js} +1 -1
- package/dist/assets/{runtimeConfig-BX8JirIc.js → runtimeConfig-BjAB7T92.js} +1 -1
- package/dist/assets/runtimeEndpointReset-b_8lxjHW.js +149 -0
- package/dist/assets/scheduledTaskNavigation-Bp5rGr3m.js +1 -0
- package/dist/assets/select-DeP9bukP.js +1 -0
- package/dist/assets/sessionLookup-CvwAHpsq.js +1 -0
- package/dist/assets/sortable-tabs-strip-BloEQRck.js +1 -0
- package/dist/assets/speechSettingsQueries-B-JHilmU.js +3 -0
- package/dist/assets/src-EZMbcCtg.css +2 -0
- package/dist/assets/{store-CkIHVrmT.js → store-CKIMMlXR.js} +5 -4
- package/dist/assets/{terminalApi-rl9mZAlB.js → terminalApi-ChZhb60_.js} +1 -1
- package/dist/assets/{textarea-7eTptEtD.js → textarea-B4mWtnN5.js} +1 -1
- package/dist/assets/theme-validation-BGYdrOu7.js +1 -0
- package/dist/assets/themes-BgDJcxRc.js +1 -0
- package/dist/assets/tooltip-BuZ86ipm.js +1 -0
- package/dist/assets/{touch-gestures-K2_ZOkKW.js → touch-gestures-CErgaXZ7.js} +1 -1
- package/dist/assets/tour-Db44qwfs.js +1 -0
- package/dist/assets/types-B5Nt6TGt.js +2 -0
- package/dist/assets/uk-DyZ2SwUJ.js +15 -0
- package/dist/assets/{useAppFontEffects-Ck2PdQRx.js → useAppFontEffects-CN6GxBsA.js} +54 -54
- package/dist/assets/{useAssistantUIStore-CfaQV3ID.js → useAssistantUIStore-BI_dAUjx.js} +1 -1
- package/dist/assets/useDesktopWindowControlsLayout-DtGw4mOb.js +1 -0
- package/dist/assets/{dropdown-menu.styles-DGaALKP0.js → useDictation-CwX05CAo.js} +1 -1
- package/dist/assets/{useEffectiveDirectory-CNCQfN_x.js → useEffectiveDirectory-BcjGq1gO.js} +1 -1
- package/dist/assets/{useFontPreferences-DeqW9nRx.js → useFontPreferences-EsJ4FlIp.js} +1 -1
- package/dist/assets/useMobileNavigationStore-CIldW1SJ.js +17 -0
- package/dist/assets/usePluginsStore-CBQx059k.js +1 -0
- package/dist/assets/{useThemeSystem-CGF5jnIh.js → useThemeSystem-CNzUUkFn.js} +1 -1
- package/dist/assets/useUIStore-CoWJ3ROq.js +1 -0
- package/dist/assets/{useWorkerHighlightedLines-CN_RGaSw.js → useWorkerHighlightedLines-jLLdysNE.js} +1 -1
- package/dist/assets/vendor-base-ui-CzHs0bHY.js +1 -0
- package/dist/assets/{vendor-cmdk-C3oBVL9X.js → vendor-cmdk-C_tivUtr.js} +1 -1
- package/dist/assets/vendor-codemirror-autocomplete-C0FrlFqZ.js +12 -0
- package/dist/assets/vendor-codemirror-commands-5saeUOVY.js +1 -0
- package/dist/assets/vendor-codemirror-lang-angular-Cm7vBE3E.js +23 -0
- package/dist/assets/vendor-codemirror-lang-cpp-BjixvwC2.js +1 -0
- package/dist/assets/vendor-codemirror-lang-go-DFb2d_8t.js +11 -0
- package/dist/assets/vendor-codemirror-lang-java-CHitPigf.js +1 -0
- package/dist/assets/vendor-codemirror-lang-jinja-B8yrwpok.js +1 -0
- package/dist/assets/{vendor-codemirror-lang-json-mLulNbwB.js → vendor-codemirror-lang-json-DowyFczU.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-less-CNvptX3P.js → vendor-codemirror-lang-less-B1_0-sTl.js} +1 -1
- package/dist/assets/vendor-codemirror-lang-liquid-FIsA7YFN.js +1 -0
- package/dist/assets/vendor-codemirror-lang-markdown-npWBZIoE.js +6 -0
- package/dist/assets/vendor-codemirror-lang-php-wyEc0fdz.js +1 -0
- package/dist/assets/vendor-codemirror-lang-python-OPRdU26g.js +9 -0
- package/dist/assets/{vendor-codemirror-lang-rust-CtafR0gt.js → vendor-codemirror-lang-rust-DgovszuH.js} +1 -1
- package/dist/assets/vendor-codemirror-lang-sass-BdU-i07o.js +1 -0
- package/dist/assets/{vendor-codemirror-lang-sql-C6q09UUZ.js → vendor-codemirror-lang-sql-DUutq98l.js} +2 -2
- package/dist/assets/{vendor-codemirror-lang-vue-DIB78UsR.js → vendor-codemirror-lang-vue-CuRNbe8H.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-wast-C_JVdOCF.js → vendor-codemirror-lang-wast-CGFAOCoB.js} +1 -1
- package/dist/assets/vendor-codemirror-lang-xml-CMKBqGXF.js +1 -0
- package/dist/assets/{vendor-codemirror-lang-yaml-BO0hIfQM.js → vendor-codemirror-lang-yaml-CH9a1QiY.js} +1 -1
- package/dist/assets/{vendor-codemirror-language-data-Ctd4WxgW.js → vendor-codemirror-language-data-B3pLWvv-.js} +2 -2
- package/dist/assets/vendor-codemirror-search-hZY-L2l8.js +2 -0
- package/dist/assets/{vendor-dnd-kit-accessibility-DxpFzZhi.js → vendor-dnd-kit-accessibility-BOtnpZt5.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-core-B3g3zWQd.js → vendor-dnd-kit-core-DK4OoOTr.js} +1 -1
- package/dist/assets/{vendor-dnd-kit-sortable-BKewx0Py.js → vendor-dnd-kit-sortable-Cv69eQm1.js} +1 -1
- package/dist/assets/{vendor-framer-motion-C1twy-GF.js → vendor-framer-motion-DDMKlXiP.js} +1 -1
- package/dist/assets/vendor-lodash-es-BS45jPoZ.js +1 -0
- package/dist/assets/{vendor-markstream-react-BlbOg72y.js → vendor-markstream-react-DfLaSG3W.js} +3 -3
- package/dist/assets/vendor-motion-C9oiAdx-.js +1 -0
- package/dist/assets/{vendor-pierre-diffs-Bj9Nqn6w.js → vendor-pierre-diffs-BFiZ3IhI.js} +2 -2
- package/dist/assets/{vendor-react-D5d-V1vN.js → vendor-react-DlzBev0S.js} +1 -1
- package/dist/assets/{vendor-react-drawio-C-iPmmED.js → vendor-react-drawio-Dyg1-39Q.js} +1 -1
- package/dist/assets/vendor-reactuses-core-DWo5Wn6R.js +1 -0
- package/dist/assets/{vendor-replit-codemirror-vim-DCdAdxvE.js → vendor-replit-codemirror-vim-BmQmU1lR.js} +6 -6
- package/dist/assets/{vendor-sonner-r2EJnfoo.js → vendor-sonner-BEHGipm5.js} +1 -1
- package/dist/assets/{vendor-stream-diffs-BnLmeqg2.js → vendor-stream-diffs-wcQxoPZk.js} +2 -2
- package/dist/assets/vendor-tanstack-query-core-Y_YoRHtC.js +1 -0
- package/dist/assets/vendor-tanstack-react-query-B-Wpqq5J.js +1 -0
- package/dist/assets/{vendor-tanstack-react-virtual-BeZn51tF.js → vendor-tanstack-react-virtual-DSFNK3qc.js} +1 -1
- package/dist/assets/{vendor-zustand-B43HCgwC.js → vendor-zustand-vDaAPGfl.js} +1 -1
- package/dist/assets/zh-CN-aNIWxYun.js +15 -0
- package/dist/assets/zh-TW-B1IdCz5g.js +15 -0
- package/dist/index.html +20 -20
- package/dist/mini-chat.html +20 -20
- package/dist/mobile.html +20 -20
- package/package.json +5 -3
- package/server/lib/assistants/DOCUMENTATION.md +8 -1
- package/server/lib/assistants/channel-output.integration.test.js +15 -1
- package/server/lib/assistants/contact-tools.js +1 -1
- package/server/lib/assistants/harness.js +4 -3
- package/server/lib/assistants/harness.test.js +16 -0
- package/server/lib/client-auth/pairing.js +4 -1
- package/server/lib/client-auth/pairing.test.js +41 -0
- package/server/lib/client-auth/remote-clients.js +6 -2
- package/server/lib/client-auth/remote-clients.test.js +42 -0
- package/server/lib/config-sync/DOCUMENTATION.md +1 -0
- package/server/lib/config-sync/config-sync.test.js +22 -0
- package/server/lib/config-sync/constants.js +0 -3
- package/server/lib/gui-customization/DOCUMENTATION.md +56 -0
- package/server/lib/gui-customization/session-skill.js +58 -0
- package/server/lib/gui-customization/session-skill.test.js +53 -0
- package/server/lib/gui-customization/skill/SKILL.md +38 -0
- package/server/lib/gui-customization/skill/references/appearance.md +79 -0
- package/server/lib/gui-customization/skill/references/file-previews.md +113 -0
- package/server/lib/gui-customization/skill/references/global-pages.md +81 -0
- package/server/lib/gui-customization/skill/references/gui-api.md +37 -0
- package/server/lib/gui-customization/skill/references/preview-exports.md +74 -0
- package/server/lib/gui-customization/skill/references/ui-surfaces.md +228 -0
- package/server/lib/gui-customization/skill/references/workflow.md +80 -0
- package/server/lib/llm/DOCUMENTATION.md +14 -1
- package/server/lib/llm/bridge-plugin.bundle.js +13 -1136
- package/server/lib/llm/bridge-plugin.js +4 -4
- package/server/lib/llm/bridge-plugin.test.js +31 -4
- package/server/lib/opencode/DOCUMENTATION.md +82 -1
- package/server/lib/opencode/config-entity-routes.js +2 -4
- package/server/lib/opencode/config-entity-routes.test.js +16 -13
- package/server/lib/opencode/core-routes.js +5 -2
- package/server/lib/opencode/core-routes.test.js +14 -4
- package/server/lib/opencode/custom-provider-models.d.ts +2 -0
- package/server/lib/opencode/custom-provider-models.js +71 -0
- package/server/lib/opencode/custom-provider-models.test.js +90 -0
- package/server/lib/opencode/custom-provider.d.ts +2 -0
- package/server/lib/opencode/custom-provider.js +107 -0
- package/server/lib/opencode/custom-provider.test.js +211 -0
- package/server/lib/opencode/feature-routes-runtime.js +5 -0
- package/server/lib/opencode/npm-registry.js +9 -2
- package/server/lib/opencode/npm-registry.test.js +22 -1
- package/server/lib/opencode/plugin-routes.js +1 -0
- package/server/lib/opencode/provider-catalog.js +14 -0
- package/server/lib/opencode/provider-catalog.test.js +15 -0
- package/server/lib/opencode/provider-configuration.test.js +64 -0
- package/server/lib/opencode/provider-model-config.d.ts +1 -0
- package/server/lib/opencode/provider-model-config.js +39 -0
- package/server/lib/opencode/provider-model-config.test.js +69 -0
- package/server/lib/opencode/provider-sources.d.ts +10 -0
- package/server/lib/opencode/provider-sources.js +52 -0
- package/server/lib/opencode/provider-sources.test.js +73 -0
- package/server/lib/opencode/providers.d.ts +5 -0
- package/server/lib/opencode/providers.js +28 -0
- package/server/lib/opencode/routes.js +50 -1
- package/server/lib/opencode/settings-helpers.js +0 -3
- package/server/lib/opencode/settings-helpers.test.js +8 -0
- package/server/lib/opencode/static-routes-runtime.js +5 -3
- package/server/lib/opencode/static-routes-runtime.test.js +23 -10
- package/server/lib/remote-desktop/DOCUMENTATION.md +10 -2
- package/server/lib/remote-desktop/runtime.js +3 -2
- package/server/lib/remote-desktop/runtime.test.js +20 -0
- package/server/lib/scheduled-tasks/session-skill.js +3 -0
- package/server/lib/scheduled-tasks/session-skill.test.js +4 -2
- package/server/lib/ui-auth/DOCUMENTATION.md +2 -0
- package/shared/custom-provider-protocol.d.ts +4 -0
- package/shared/custom-provider-protocol.js +32 -0
- package/dist/assets/AgentAvatar-DNm_jMna.js +0 -1
- package/dist/assets/AssistantContactStatus-BPRpgMFh.js +0 -3
- package/dist/assets/Icon-BE4mEwzV.js +0 -1
- package/dist/assets/LoadingImage-NLq7_P-i.js +0 -1
- package/dist/assets/MarkdownRenderer-BaMotAOQ.js +0 -2
- package/dist/assets/MarkstreamRendererImpl-Rb9O6wkW.js +0 -3
- package/dist/assets/MobileTabPageHeader-DbC8L6A4.js +0 -2
- package/dist/assets/MultiRunWindow-DtVW9NTV.js +0 -1
- package/dist/assets/SettingsView-BRIvklfP.css +0 -1
- package/dist/assets/SettingsView-Cm7woZWl.js +0 -29
- package/dist/assets/SettingsWindow-CdL4PFxW.js +0 -1
- package/dist/assets/ToolOutputDialog-B4BfmoVH.js +0 -10
- package/dist/assets/YuriLogo-BOx0s0Ue.js +0 -1
- package/dist/assets/collapsible-BEm0787p.js +0 -1
- package/dist/assets/context-menu-DUwvVUDY.js +0 -1
- package/dist/assets/desktopRelayRestore-D1UX7HW2.js +0 -1
- package/dist/assets/dialog-CLca6ojn.js +0 -1
- package/dist/assets/es-CrsHvgue.js +0 -15
- package/dist/assets/host-CnVx34Dh.js +0 -1
- package/dist/assets/image-loading-D5UhMj7Z.js +0 -1
- package/dist/assets/input-D59Q2pm8.js +0 -1
- package/dist/assets/insertionBoundaries-CedfTSM5.js +0 -1
- package/dist/assets/main-CxpUooVS.js +0 -2
- package/dist/assets/main-Dpm4KxWX.js +0 -169
- package/dist/assets/miniChat-CTdj8Ug9.js +0 -2
- package/dist/assets/mobile-ChbA3Q8j.js +0 -2
- package/dist/assets/multirun-BILeETbd.js +0 -3
- package/dist/assets/native-BYMhr-xH.js +0 -1
- package/dist/assets/persistence-CWuLIq1J.js +0 -3
- package/dist/assets/projectMeta-B9_Uh8YH.js +0 -1
- package/dist/assets/pt-BR-Dp5oK2x3.js +0 -15
- package/dist/assets/readiness-BNIgH81X.js +0 -1
- package/dist/assets/renderElectronMiniChatApp-asOqV7FB.js +0 -2
- package/dist/assets/renderMobileApp-DAfque7-.js +0 -28
- package/dist/assets/runtimeEndpointReset-CFQgUiUr.js +0 -149
- package/dist/assets/scheduledTaskNavigation-EomDNVu2.js +0 -1
- package/dist/assets/sessionLookup-BxAaxPOw.js +0 -1
- package/dist/assets/sortable-tabs-strip-DpbW5MqX.js +0 -1
- package/dist/assets/speechSettingsQueries-CC0fusUo.js +0 -4
- package/dist/assets/src-BMKjN2ip.css +0 -2
- package/dist/assets/tooltip-BPwoSTzO.js +0 -1
- package/dist/assets/types-CUtSV1V8.js +0 -2
- package/dist/assets/uk-BEfkaLtM.js +0 -15
- package/dist/assets/useDesktopWindowControlsLayout-DxxOUZj1.js +0 -1
- package/dist/assets/useMobileNavigationStore-BmVr5a5c.js +0 -17
- package/dist/assets/useUIStore-C6CE42oh.js +0 -1
- package/dist/assets/vendor-base-ui-BQjbsJ43.js +0 -1
- package/dist/assets/vendor-codemirror-autocomplete-7c2L_4dM.js +0 -12
- package/dist/assets/vendor-codemirror-commands-B8KrBQ9B.js +0 -1
- package/dist/assets/vendor-codemirror-lang-angular-DXOgWEVj.js +0 -23
- package/dist/assets/vendor-codemirror-lang-cpp-Dh8C3xqP.js +0 -1
- package/dist/assets/vendor-codemirror-lang-go-BXAJ1_dh.js +0 -11
- package/dist/assets/vendor-codemirror-lang-java-DAyCHRhk.js +0 -1
- package/dist/assets/vendor-codemirror-lang-jinja-0TICrMfO.js +0 -1
- package/dist/assets/vendor-codemirror-lang-liquid-8g5seytq.js +0 -1
- package/dist/assets/vendor-codemirror-lang-markdown-CV1IO6Qs.js +0 -6
- package/dist/assets/vendor-codemirror-lang-php-xP7rf28_.js +0 -1
- package/dist/assets/vendor-codemirror-lang-python-YM2WVLHF.js +0 -9
- package/dist/assets/vendor-codemirror-lang-sass-B4iav_Ps.js +0 -1
- package/dist/assets/vendor-codemirror-lang-xml-DIuzY_d4.js +0 -1
- package/dist/assets/vendor-codemirror-search-DiPwvA-6.js +0 -2
- package/dist/assets/vendor-lodash-es-DfLbG5Af.js +0 -1
- package/dist/assets/vendor-motion-BmLx2V78.js +0 -1
- package/dist/assets/vendor-reactuses-core-BcebBLwF.js +0 -1
- package/dist/assets/vendor-tanstack-query-core-BWz0ose6.js +0 -1
- package/dist/assets/vendor-tanstack-react-query-C4SG3JZB.js +0 -1
- package/dist/assets/zh-CN-DipfA56P.js +0 -15
- package/dist/assets/zh-TW-B7pXMVjt.js +0 -15
package/dist/index.html
CHANGED
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
opacity: 0.72;
|
|
561
561
|
}
|
|
562
562
|
</style>
|
|
563
|
-
<script type="module" crossorigin src="/assets/main-
|
|
563
|
+
<script type="module" crossorigin src="/assets/main-CMMAJcu3.js"></script>
|
|
564
564
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
565
565
|
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-DBn9yahL.js">
|
|
566
566
|
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-DEZ1K7qW.js">
|
|
@@ -568,35 +568,35 @@
|
|
|
568
568
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
569
569
|
<link rel="modulepreload" crossorigin href="/assets/desktop-JwYqThiw.js">
|
|
570
570
|
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-CB0CTcMg.js">
|
|
571
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-
|
|
572
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-
|
|
573
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-
|
|
571
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-C7pjf6fE.js">
|
|
572
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CzHs0bHY.js">
|
|
573
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-vDaAPGfl.js">
|
|
574
574
|
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
|
|
575
575
|
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
|
|
576
576
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
577
577
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
578
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
579
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-react-
|
|
580
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-
|
|
581
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
578
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-CoWJ3ROq.js">
|
|
579
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
|
|
580
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-Y_YoRHtC.js">
|
|
581
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-2dx7jbt9.js">
|
|
582
582
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
583
583
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
584
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
585
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-
|
|
586
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-
|
|
584
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-D-rnhgr4.js">
|
|
585
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B-Wpqq5J.js">
|
|
586
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-C2Rs6TPz.js">
|
|
587
587
|
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
588
588
|
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
589
589
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
590
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
591
|
-
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-
|
|
592
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
593
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
590
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-BP4P52ry.js">
|
|
591
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-Ddik7PM_.js">
|
|
592
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-ChZhb60_.js">
|
|
593
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-D6bwc3Kj.js">
|
|
594
594
|
<link rel="modulepreload" crossorigin href="/assets/platform-DFJEtBlo.js">
|
|
595
|
-
<link rel="modulepreload" crossorigin href="/assets/types-
|
|
596
|
-
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-
|
|
597
|
-
<link rel="modulepreload" crossorigin href="/assets/native-config-
|
|
598
|
-
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-
|
|
599
|
-
<link rel="stylesheet" crossorigin href="/assets/src-
|
|
595
|
+
<link rel="modulepreload" crossorigin href="/assets/types-B5Nt6TGt.js">
|
|
596
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-YgVOiKZO.js">
|
|
597
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-D-sxhX53.js">
|
|
598
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-BjAB7T92.js">
|
|
599
|
+
<link rel="stylesheet" crossorigin href="/assets/src-EZMbcCtg.css">
|
|
600
600
|
</head>
|
|
601
601
|
<body class="h-full bg-background text-foreground">
|
|
602
602
|
<!-- Keep the startup layer outside #root. React replaces every child of
|
package/dist/mini-chat.html
CHANGED
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
.dark #initial-loading img { filter: invert(1); }
|
|
78
78
|
</style>
|
|
79
79
|
|
|
80
|
-
<script type="module" crossorigin src="/assets/miniChat-
|
|
80
|
+
<script type="module" crossorigin src="/assets/miniChat-Dez8HIZj.js"></script>
|
|
81
81
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
82
82
|
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-DBn9yahL.js">
|
|
83
83
|
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-DEZ1K7qW.js">
|
|
@@ -85,35 +85,35 @@
|
|
|
85
85
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
86
86
|
<link rel="modulepreload" crossorigin href="/assets/desktop-JwYqThiw.js">
|
|
87
87
|
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-CB0CTcMg.js">
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-
|
|
89
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-
|
|
90
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-
|
|
88
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-C7pjf6fE.js">
|
|
89
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CzHs0bHY.js">
|
|
90
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-vDaAPGfl.js">
|
|
91
91
|
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
|
|
92
92
|
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
|
|
93
93
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
94
94
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
96
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-react-
|
|
97
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-
|
|
98
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
95
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-CoWJ3ROq.js">
|
|
96
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
|
|
97
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-Y_YoRHtC.js">
|
|
98
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-2dx7jbt9.js">
|
|
99
99
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
100
100
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
101
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
102
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-
|
|
103
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-
|
|
101
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-D-rnhgr4.js">
|
|
102
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B-Wpqq5J.js">
|
|
103
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-C2Rs6TPz.js">
|
|
104
104
|
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
105
105
|
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
106
106
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
107
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
108
|
-
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-
|
|
109
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
110
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
107
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-BP4P52ry.js">
|
|
108
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-Ddik7PM_.js">
|
|
109
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-ChZhb60_.js">
|
|
110
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-D6bwc3Kj.js">
|
|
111
111
|
<link rel="modulepreload" crossorigin href="/assets/platform-DFJEtBlo.js">
|
|
112
|
-
<link rel="modulepreload" crossorigin href="/assets/types-
|
|
113
|
-
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-
|
|
114
|
-
<link rel="modulepreload" crossorigin href="/assets/native-config-
|
|
115
|
-
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-
|
|
116
|
-
<link rel="stylesheet" crossorigin href="/assets/src-
|
|
112
|
+
<link rel="modulepreload" crossorigin href="/assets/types-B5Nt6TGt.js">
|
|
113
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-YgVOiKZO.js">
|
|
114
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-D-sxhX53.js">
|
|
115
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-BjAB7T92.js">
|
|
116
|
+
<link rel="stylesheet" crossorigin href="/assets/src-EZMbcCtg.css">
|
|
117
117
|
</head>
|
|
118
118
|
<body class="h-full bg-background text-foreground">
|
|
119
119
|
<div id="root" class="h-full">
|
package/dist/mobile.html
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
</script>
|
|
65
65
|
|
|
66
66
|
<style>.dark #mobile-startup-logo img { filter: invert(1); }</style>
|
|
67
|
-
<script type="module" crossorigin src="/assets/mobile-
|
|
67
|
+
<script type="module" crossorigin src="/assets/mobile-CE0hClMx.js"></script>
|
|
68
68
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
69
69
|
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-DBn9yahL.js">
|
|
70
70
|
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-DEZ1K7qW.js">
|
|
@@ -72,35 +72,35 @@
|
|
|
72
72
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
73
73
|
<link rel="modulepreload" crossorigin href="/assets/desktop-JwYqThiw.js">
|
|
74
74
|
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-CB0CTcMg.js">
|
|
75
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-
|
|
76
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-
|
|
77
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-
|
|
75
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-C7pjf6fE.js">
|
|
76
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CzHs0bHY.js">
|
|
77
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-vDaAPGfl.js">
|
|
78
78
|
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-X1Hqc7ba.js">
|
|
79
79
|
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-cQ47ywrT.js">
|
|
80
80
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
81
81
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
82
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
83
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-react-
|
|
84
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-
|
|
85
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
82
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-CoWJ3ROq.js">
|
|
83
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-react-DlzBev0S.js">
|
|
84
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-Y_YoRHtC.js">
|
|
85
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-2dx7jbt9.js">
|
|
86
86
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
87
87
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
89
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-
|
|
90
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-
|
|
88
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-D-rnhgr4.js">
|
|
89
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-B-Wpqq5J.js">
|
|
90
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-C2Rs6TPz.js">
|
|
91
91
|
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
92
92
|
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
93
93
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
94
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-
|
|
96
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
97
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
94
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-BP4P52ry.js">
|
|
95
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-Ddik7PM_.js">
|
|
96
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-ChZhb60_.js">
|
|
97
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-D6bwc3Kj.js">
|
|
98
98
|
<link rel="modulepreload" crossorigin href="/assets/platform-DFJEtBlo.js">
|
|
99
|
-
<link rel="modulepreload" crossorigin href="/assets/types-
|
|
100
|
-
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-
|
|
101
|
-
<link rel="modulepreload" crossorigin href="/assets/native-config-
|
|
102
|
-
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-
|
|
103
|
-
<link rel="stylesheet" crossorigin href="/assets/src-
|
|
99
|
+
<link rel="modulepreload" crossorigin href="/assets/types-B5Nt6TGt.js">
|
|
100
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-YgVOiKZO.js">
|
|
101
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-D-sxhX53.js">
|
|
102
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-BjAB7T92.js">
|
|
103
|
+
<link rel="stylesheet" crossorigin href="/assets/src-EZMbcCtg.css">
|
|
104
104
|
</head>
|
|
105
105
|
<body class="h-full bg-background text-foreground">
|
|
106
106
|
<div id="root" class="h-full">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuriai/web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29-beta.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./server/index.js",
|
|
@@ -31,9 +31,7 @@
|
|
|
31
31
|
"@larksuite/channel": "0.7.1",
|
|
32
32
|
"@larksuite/vercel-chat-adapter": "0.3.0",
|
|
33
33
|
"@octokit/rest": "^22.0.1",
|
|
34
|
-
"@opencode/ai": "2.2.1",
|
|
35
34
|
"@opencode/client": "^2.0.23",
|
|
36
|
-
"@opencode/core": "2.2.1",
|
|
37
35
|
"@opencode/schema": "^2.0.23",
|
|
38
36
|
"@simplewebauthn/server": "13.3.1",
|
|
39
37
|
"adm-zip": "^0.5.16",
|
|
@@ -60,6 +58,8 @@
|
|
|
60
58
|
"yaml": "^2.8.1"
|
|
61
59
|
},
|
|
62
60
|
"devDependencies": {
|
|
61
|
+
"@opencode/ai": "2.2.1",
|
|
62
|
+
"@opencode/core": "2.2.1",
|
|
63
63
|
"@base-ui/react": "^1.4.0",
|
|
64
64
|
"@codemirror/lang-cpp": "^6.0.3",
|
|
65
65
|
"@codemirror/lang-go": "^6.0.1",
|
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
"supertest": "^7.2.2",
|
|
109
109
|
"tailwindcss": "^4.0.0",
|
|
110
110
|
"tsx": "^4.20.6",
|
|
111
|
+
"tsdown": "0.23.5",
|
|
111
112
|
"tw-animate-css": "^1.3.8",
|
|
112
113
|
"typescript": "~5.9.0",
|
|
113
114
|
"typescript-eslint": "^8.39.1",
|
|
@@ -119,6 +120,7 @@
|
|
|
119
120
|
"files": [
|
|
120
121
|
"dist",
|
|
121
122
|
"server",
|
|
123
|
+
"shared",
|
|
122
124
|
"bin",
|
|
123
125
|
"public",
|
|
124
126
|
"package.json",
|
|
@@ -27,6 +27,13 @@ Bot permissions, durable receipts, output and lifecycle, not a second Chat bot e
|
|
|
27
27
|
See `channels/DOCUMENTATION.md` for enterprise configuration and SDK integration.
|
|
28
28
|
|
|
29
29
|
Published image output is shared by all four channels through `channel-output.js`.
|
|
30
|
+
The contact prompt teaches `` in public replies as the image
|
|
31
|
+
delivery interface: a real public HTTPS image URL or absolute Host file path,
|
|
32
|
+
with angle brackets for paths containing spaces. No image-send tool is required;
|
|
33
|
+
image Markdown belongs directly in the reply body, outside code fences or inline
|
|
34
|
+
code, so it renders rather than displaying a syntax example. Reading an image by
|
|
35
|
+
itself does not publish it. Existing source/size restrictions
|
|
36
|
+
and source-channel routing still apply.
|
|
30
37
|
It extracts actual Markdown images (including reference images) and image file
|
|
31
38
|
parts, not ordinary links, code examples or tool traces, preserving prose/image
|
|
32
39
|
order. `service.prepareChannelImage()` snapshots bytes into the existing private
|
|
@@ -503,7 +510,7 @@ and keep their existing error result handling.
|
|
|
503
510
|
|
|
504
511
|
- Tools use native function calling only (`message.tool_calls`); text is never parsed for tool calls and no schema catalog is repeated in the prompt. A response without tool calls is the final reply.
|
|
505
512
|
- Public progress uses the harness-owned `notify_user` tool `{ text }` (max 2,000 characters), usually batched with the next call. Its text emits `done:true` bubbles when the response arrives, before the batch executes. Batched notes are dropped from execution and stored as the assistant message's public text (`contactPublicText`); a notes-only response executes and the loop continues. Text beside tool calls is model narration and stays private. Later rounds replay delivered notes to the model as `notify_user` calls.
|
|
506
|
-
- The model
|
|
513
|
+
- The model defaults to quiet execution and one short final reply, usually one or two sentences, expanding only as the requested deliverable needs. Before any public message it checks necessity, repetition against earlier delivered messages, and brevity. Progress is reserved for new information needing attention before the final answer (a decision/blocker, consequential direction change, or unexpected delay affecting expectations); novelty alone is insufficient. Updates that can wait are combined into the final outcome without recapping earlier messages. The `notify_user` description carries the same policy. Public messages share the existing SSE, durable contact rows, and turn-global indices across web, desktop, VS Code, hosted mobile, and Capacitor. No timer narration, tool logs, progress widgets, or synthetic chat messages are added. Timing of model-authored milestones remains model policy; the transport guarantees immediate delivery once an explicit public record arrives.
|
|
507
514
|
- Completion notifications use the latest spoken message, keeping earlier progress out of the final notification body. Transcript persistence reconciles by stable bubble IDs and adds only remaining messages.
|
|
508
515
|
- Tool results remain model context for every tool. The outcome projector uses assistant-authored text only. Terminal operations retain the mutation stop gate. Successful interactive assign/watch gets a result-only Agent on the same provider/model with **only** `reference_resource`, followed by a final reply; no coding, loader or business mutation tool is available. Other terminal operations, failures and resets retain their tools-disabled summary. A failed/empty summary surfaces a turn error; a completed side effect stays committed and is never replayed by the result phase.
|
|
509
516
|
- Tools-disabled summaries project actual completed tool results into labeled, quoted user-role evidence (tool name, error flag and public text only), removing native call/result framing. Some providers reject historical native calls when their tool definitions are absent. The reference-only phase and ordinary Agent rounds retain native call/result association; no execution or permission fallback is introduced. Reset summaries still receive only the current user request and the successful reset result.
|
|
@@ -16,6 +16,9 @@ describe('real contact output → all native image channels', () => {
|
|
|
16
16
|
await fs.writeFile(imagePath, png);
|
|
17
17
|
let enterprise;
|
|
18
18
|
let weixin;
|
|
19
|
+
let releaseTurn;
|
|
20
|
+
let turnStarted = false;
|
|
21
|
+
const blockedTurn = new Promise((resolve) => { releaseTurn = resolve; });
|
|
19
22
|
const service = createAssistantsService({ dbPath: path.join(directory, 'assistants.sqlite'), dataDir: directory,
|
|
20
23
|
buildOpenCodeUrl: () => 'http://127.0.0.1:1', getOpenCodeAuthHeaders: () => ({}), getAllowedRoots: () => [directory],
|
|
21
24
|
clientFactory: () => ({ message: { list: async () => ({ data: [], cursor: {} }) } }),
|
|
@@ -24,6 +27,10 @@ describe('real contact output → all native image channels', () => {
|
|
|
24
27
|
syncScheduledTaskProject: async () => {},
|
|
25
28
|
createChatCompletion: async () => ({ choices: [] }),
|
|
26
29
|
runContactTurn: async ({ userText, tools, onBubbleDelta }) => {
|
|
30
|
+
if (userText === 'draw') {
|
|
31
|
+
turnStarted = true;
|
|
32
|
+
await blockedTurn;
|
|
33
|
+
}
|
|
27
34
|
if (userText === 'draw again') {
|
|
28
35
|
const scheduled = await tools.find((tool) => tool.name === 'schedule_task').execute('schedule', {
|
|
29
36
|
name: 'Draw daily', prompt: 'Draw an image', time: '18:00', timezone: 'UTC',
|
|
@@ -84,7 +91,14 @@ describe('real contact output → all native image channels', () => {
|
|
|
84
91
|
if (source === 'weixin') incoming.push({ message_id: 'in', from_user_id: 'owner', message_type: 1,
|
|
85
92
|
context_token: 'test-context', item_list: [{ type: 1, text_item: { text: 'draw' } }] });
|
|
86
93
|
else await connections.get(source).onMessage({ id: 'in', senderID: 'owner', chatType: 'private', text: 'draw' });
|
|
94
|
+
await vi.waitFor(() => expect(turnStarted).toBe(true));
|
|
95
|
+
expect(service.snapshot().assistants.find(({ id }) => id === bot.id)).toMatchObject({
|
|
96
|
+
working: true,
|
|
97
|
+
activeContactTurn: { status: 'running', turnID: expect.stringMatching(/^(weixin:|channel:)/) },
|
|
98
|
+
});
|
|
99
|
+
releaseTurn();
|
|
87
100
|
await vi.waitFor(() => expect(sends[source]).toHaveBeenCalledOnce());
|
|
101
|
+
expect(service.snapshot().assistants.find(({ id }) => id === bot.id).working).toBe(false);
|
|
88
102
|
expect(sends[source].mock.calls[0][0].image.buffer).toEqual(png);
|
|
89
103
|
for (const [provider, send] of Object.entries(sends)) if (provider !== source) expect(send).not.toHaveBeenCalled();
|
|
90
104
|
await service.send(bot.id, { messageID: 'app-turn', parts: [{ type: 'text', text: 'draw again' }] });
|
|
@@ -109,6 +123,6 @@ describe('real contact output → all native image channels', () => {
|
|
|
109
123
|
});
|
|
110
124
|
for (const send of Object.values(sends)) expect(send.mock.calls.at(-1)[0].image.buffer).toEqual(png);
|
|
111
125
|
expect(api.sendText).not.toHaveBeenCalled();
|
|
112
|
-
} finally { await enterprise?.close(); await weixin?.close(); service.close(); await fs.rm(directory, { recursive: true, force: true }); }
|
|
126
|
+
} finally { releaseTurn(); await enterprise?.close(); await weixin?.close(); service.close(); await fs.rm(directory, { recursive: true, force: true }); }
|
|
113
127
|
});
|
|
114
128
|
});
|
|
@@ -66,7 +66,7 @@ export function createNotifyUserTool() {
|
|
|
66
66
|
return {
|
|
67
67
|
name: NOTIFY_USER_TOOL_NAME,
|
|
68
68
|
label: 'Notify user',
|
|
69
|
-
description: 'Send
|
|
69
|
+
description: 'Send a brief progress message only when new information needs user attention before the final answer: a decision or blocker, a consequential change of direction, or an unexpected delay that changes expectations. Default to working quietly; if the information can wait, include it in the final answer instead. Check earlier public messages to avoid repetition and combine related updates. Batch with your next tool call. The final answer is your plain reply, not this tool.',
|
|
70
70
|
parameters: typeboxObject({ text: typeboxString('Short message in the user language.') }),
|
|
71
71
|
execute: async (_toolCallId, params) => {
|
|
72
72
|
const text = typeof params?.text === 'string' ? params.text.trim() : '';
|
|
@@ -107,15 +107,16 @@ export const CONTACT_SYSTEM_PROMPT = [
|
|
|
107
107
|
"You are Yuri's in-app assistant — a personable contact focused on understanding the user, communicating naturally, coordinating work, and following up on results.",
|
|
108
108
|
'For substantive tasks, default to finding the relevant existing OpenCode workspace and handing the task to a worker session with assign_session. Carry the user goal, relevant context, constraints, and verification expectations into that session; follow its results and explain the outcome in normal conversation.',
|
|
109
109
|
'Handle simple questions, file lookups, and small, clearly scoped configuration changes directly when their scope and verification are straightforward. As a task grows into implementation, multi-step debugging, or broad changes, hand it to a worker session. An explicit user request to handle a bounded task yourself can use the direct tools.',
|
|
110
|
-
'
|
|
111
|
-
'Talk
|
|
110
|
+
'Default to one short final reply per user request, usually one or two sentences. Lead with the answer and include only what the user needs; expand when the requested deliverable requires detail. Do not split one answer into multiple chat bubbles unnecessarily.',
|
|
111
|
+
'Talk naturally and say less. Before sending any public message, check that it is necessary, adds information not already delivered in this conversation, and cannot be shortened without losing something the user needs. Omit repeated acknowledgments, plans, status, and conclusions; mention an earlier point again only when requested or needed to explain a change.',
|
|
112
112
|
'Reply in the language of the user\'s messages, unless they explicitly request another language. Infer it from their latest substantive message and conversation context, never from the app interface locale. For ambiguous messages or background follow-ups, continue the established conversation language.',
|
|
113
113
|
'Keep private reasoning and tool traces private.',
|
|
114
|
-
'Send a progress message when
|
|
114
|
+
'Work quietly by default. Send a progress message only when new information needs the user\'s attention before the final answer: a decision or blocker, a consequential change of direction, or an unexpected delay that changes their expectations. Novelty alone is not a reason to send. If it can wait, fold it into the final reply; combine related updates instead of sending them separately. Keep the final answer to the remaining outcome without recapping earlier messages.',
|
|
115
115
|
'Progress messages go only through notify_user, batched with your next tool call; it is delivered immediately. Any other text alongside a tool call is never shown to the user. A response without tool calls is your final reply. Tool results are evidence for you to summarize in your own words; never copy their stock confirmation wording into your reply.',
|
|
116
116
|
'Do not expose tool traces, Activity, or editor actions.',
|
|
117
117
|
'Use list_scheduled_tasks to review tasks. To create, change, enable or pause tasks, first load yuri.tasks and use its returned schemas with exact IDs from the listing.',
|
|
118
118
|
'Use reference_resource to send the user an existing session, Bot, or scheduled-task card using exact IDs from lookup or creation results. Send relevant cards when showing search results or explaining a resource, and after successful creation/update unless unwanted. Other tools do not send cards automatically. Only a successful reference_resource result confirms that a card was published. Referencing is not watching or starting work.',
|
|
119
|
+
'Images are reply content: when asked to send, show, or reference an image, deliver the rendered image itself using  directly in the public reply body. Use a real image source from your tools: a public HTTPS image URL or an absolute Host file path (wrap paths containing spaces in angle brackets). Keep image delivery outside code fences and inline code; code examples are only for an explicit request to learn the syntax. Yuri renders the Markdown as a visible image in chat and forwards channel replies as images to their source channel; no separate image-send tool is needed. A bare path, a metadata report, or reading the image is not image delivery. Image delivery remains subject to source access and size limits.',
|
|
119
120
|
'Use update_assistant_settings for ALL of your editable settings: name, avatarSeed, defaultPrompt, providerID, modelID, agent, variant, mode and workspacePath. For 给自己改名, save settings.name; choose a name yourself when requested. This updates your real contact, not just persona text. Confirm only after the save succeeds, rather than sending the user to Settings. Read live settings when needed and pass only changed fields. Model/persona changes take effect on later turns.',
|
|
120
121
|
'You have bash, read, write, and edit in the working directory. Use them for pwd, files, and shell. Never say you have no terminal or cannot read files. Ignore any temporary generator workspace in the environment.',
|
|
121
122
|
'Load opencode.web for online search, opencode.activity for live running-session membership, or opencode.catalog for connected skills, agents, commands, MCP and references. Direct operations use the Host current authenticated connection and workspace; do not switch servers or substitute unauthenticated CLI calls. Load skill instructions only when relevant, not before every lookup. Missing live membership is not proof of successful completion; failed reads mean unknown. Native/MCP capabilities not directly offered here run in an assigned OpenCode worker with its normal permissions. Catalog discovery and reading instructions are not execution; only actual results support claims that you searched or verified something.',
|
|
@@ -26,6 +26,22 @@ const toolCall = (name, args, id) => toolBatch([[name, args, id]])
|
|
|
26
26
|
const notifyCall = (text, id) => ['notify_user', { text }, id]
|
|
27
27
|
|
|
28
28
|
describe('createContactStreamFn', () => {
|
|
29
|
+
it('explains Markdown image delivery in the model prompt and publishes the image reply unchanged', async () => {
|
|
30
|
+
const image = '';
|
|
31
|
+
const result = await runContactTurn({ assistant: { providerID: 'p', modelID: 'm' }, history: [], userText: '找张图片发我',
|
|
32
|
+
createChatCompletion: async ({ body }) => {
|
|
33
|
+
const prompt = body.messages.find((message) => message.role === 'system').content;
|
|
34
|
+
expect(prompt).toContain('');
|
|
35
|
+
expect(prompt).toContain('absolute Host file path');
|
|
36
|
+
expect(prompt).toContain('source channel');
|
|
37
|
+
expect(prompt).toContain('outside code fences and inline code');
|
|
38
|
+
expect(prompt).toContain('deliver the rendered image itself');
|
|
39
|
+
return { text: image };
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
expect(result.bubbles).toEqual([image]);
|
|
43
|
+
});
|
|
44
|
+
|
|
29
45
|
it.each(['success', 'returned-error', 'thrown-error'])('preserves the %s tool outcome through the real Agent without exposing internal details', async (outcome) => {
|
|
30
46
|
const execute = vi.fn(async () => {
|
|
31
47
|
if (outcome === 'thrown-error') throw new Error('Operation failed.');
|
|
@@ -138,6 +138,7 @@ export const createClientPairingRuntime = ({
|
|
|
138
138
|
allowedClientKinds: normalizeAllowedClientKinds(session.allowedClientKinds),
|
|
139
139
|
createdByClientId: normalizeOptionalString(session.createdByClientId),
|
|
140
140
|
usesRelay: session.usesRelay === true,
|
|
141
|
+
relayUrl: session.usesRelay === true ? normalizeOptionalString(session.relayUrl) : null,
|
|
141
142
|
}))
|
|
142
143
|
.filter((session) => session.secretHash.length > 0)
|
|
143
144
|
: [],
|
|
@@ -176,7 +177,7 @@ export const createClientPairingRuntime = ({
|
|
|
176
177
|
});
|
|
177
178
|
};
|
|
178
179
|
|
|
179
|
-
const createPairingSession = async ({ label, allowedClientKinds, createdByClientId, usesRelay } = {}) => {
|
|
180
|
+
const createPairingSession = async ({ label, allowedClientKinds, createdByClientId, usesRelay, relayUrl } = {}) => {
|
|
180
181
|
return withStoreMutation(async () => {
|
|
181
182
|
const store = await readStore();
|
|
182
183
|
sweepExpiredSessionsFromStore(store);
|
|
@@ -194,6 +195,7 @@ export const createClientPairingRuntime = ({
|
|
|
194
195
|
allowedClientKinds: normalizeAllowedClientKinds(allowedClientKinds),
|
|
195
196
|
createdByClientId: normalizeOptionalString(createdByClientId),
|
|
196
197
|
usesRelay: usesRelay === true,
|
|
198
|
+
relayUrl: usesRelay === true ? normalizeOptionalString(relayUrl) : null,
|
|
197
199
|
};
|
|
198
200
|
store.sessions.push(session);
|
|
199
201
|
await writeStore(store);
|
|
@@ -279,6 +281,7 @@ export const createClientPairingRuntime = ({
|
|
|
279
281
|
deviceModel,
|
|
280
282
|
appVersion,
|
|
281
283
|
usesRelay: session.usesRelay === true,
|
|
284
|
+
relayUrl: session.relayUrl,
|
|
282
285
|
});
|
|
283
286
|
session.usedAt = nowIso();
|
|
284
287
|
session.clientId = result.client?.id || null;
|
|
@@ -5,6 +5,7 @@ import path from 'node:path';
|
|
|
5
5
|
import crypto from 'node:crypto';
|
|
6
6
|
|
|
7
7
|
import { createClientPairingRuntime } from './pairing.js';
|
|
8
|
+
import { createRemoteClientAuthRuntime } from './remote-clients.js';
|
|
8
9
|
|
|
9
10
|
const makeRuntime = async (options = {}) => {
|
|
10
11
|
const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'yuri-pairing-test-'));
|
|
@@ -35,6 +36,46 @@ const makeRuntime = async (options = {}) => {
|
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
describe('client auth pairing runtime', () => {
|
|
39
|
+
it('keeps the same device paired through different relays independently across restart', async () => {
|
|
40
|
+
const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'yuri-pairing-relays-test-'));
|
|
41
|
+
const authOptions = { fsPromises: fs, path, crypto, storePath: path.join(dir, 'clients.json') };
|
|
42
|
+
const clients = createRemoteClientAuthRuntime(authOptions);
|
|
43
|
+
const pairingOptions = {
|
|
44
|
+
fsPromises: fs, path, crypto, storePath: path.join(dir, 'pairing.json'), remoteClientAuthRuntime: clients,
|
|
45
|
+
};
|
|
46
|
+
const pair = async (relayUrl, label) => {
|
|
47
|
+
const { pairing } = await createClientPairingRuntime(pairingOptions).createPairingSession({
|
|
48
|
+
label, usesRelay: Boolean(relayUrl), relayUrl,
|
|
49
|
+
});
|
|
50
|
+
return createClientPairingRuntime(pairingOptions).redeemPairingSession({
|
|
51
|
+
pairingId: pairing.id, secret: pairing.secret, clientKind: 'mobile', dedupeKey: 'same-device',
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
try {
|
|
55
|
+
const first = await pair('wss://relay-one.example/ws', 'Phone via first relay');
|
|
56
|
+
const second = await pair('wss://relay-two.example/ws', 'Phone via second relay');
|
|
57
|
+
const reopened = createRemoteClientAuthRuntime(authOptions);
|
|
58
|
+
expect((await reopened.listClients()).map((client) => client.id)).toEqual([first.client.id, second.client.id]);
|
|
59
|
+
expect((await reopened.authenticateBearerToken(first.token))?.ok).toBe(true);
|
|
60
|
+
expect((await reopened.authenticateBearerToken(second.token))?.ok).toBe(true);
|
|
61
|
+
|
|
62
|
+
const replacement = await pair('wss://relay-one.example/ws', 'Phone via first relay again');
|
|
63
|
+
expect(await reopened.authenticateBearerToken(first.token)).toBe(null);
|
|
64
|
+
expect((await reopened.authenticateBearerToken(second.token))?.ok).toBe(true);
|
|
65
|
+
expect((await reopened.authenticateBearerToken(replacement.token))?.ok).toBe(true);
|
|
66
|
+
expect(await reopened.listClients()).toHaveLength(2);
|
|
67
|
+
|
|
68
|
+
const direct = await pair(null, 'Phone via LAN');
|
|
69
|
+
expect(await reopened.listClients()).toHaveLength(3);
|
|
70
|
+
await reopened.revokeClient(second.client.id);
|
|
71
|
+
expect(await reopened.authenticateBearerToken(second.token)).toBe(null);
|
|
72
|
+
expect((await reopened.authenticateBearerToken(replacement.token))?.ok).toBe(true);
|
|
73
|
+
expect((await reopened.authenticateBearerToken(direct.token))?.ok).toBe(true);
|
|
74
|
+
} finally {
|
|
75
|
+
await fs.rm(dir, { recursive: true, force: true });
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
38
79
|
it('redeems a pairing session once and propagates client metadata', async () => {
|
|
39
80
|
const { runtime, remoteClientAuthRuntime } = await makeRuntime();
|
|
40
81
|
const created = await runtime.createPairingSession({ allowedClientKinds: ['mobile'] });
|
|
@@ -87,6 +87,7 @@ export const createRemoteClientAuthRuntime = ({ fsPromises, path, crypto, storeP
|
|
|
87
87
|
clientKind: normalizeOptionalString(client.clientKind),
|
|
88
88
|
dedupeKey: normalizeOptionalString(client.dedupeKey),
|
|
89
89
|
usesRelay: client.usesRelay === true,
|
|
90
|
+
relayUrl: client.usesRelay === true ? normalizeOptionalString(client.relayUrl) : null,
|
|
90
91
|
lastTransport: client.lastTransport === 'relay' || client.lastTransport === 'direct' ? client.lastTransport : null,
|
|
91
92
|
...normalizeMetadata(client),
|
|
92
93
|
}))
|
|
@@ -164,6 +165,7 @@ export const createRemoteClientAuthRuntime = ({ fsPromises, path, crypto, storeP
|
|
|
164
165
|
deviceModel,
|
|
165
166
|
appVersion,
|
|
166
167
|
usesRelay,
|
|
168
|
+
relayUrl,
|
|
167
169
|
} = {}) => {
|
|
168
170
|
return withStoreMutation(async () => {
|
|
169
171
|
const store = await readStore();
|
|
@@ -186,16 +188,18 @@ export const createRemoteClientAuthRuntime = ({ fsPromises, path, crypto, storeP
|
|
|
186
188
|
deviceModel: normalizeOptionalString(deviceModel),
|
|
187
189
|
appVersion: normalizeOptionalString(appVersion),
|
|
188
190
|
usesRelay: usesRelay === true,
|
|
191
|
+
relayUrl: usesRelay === true ? normalizeOptionalString(relayUrl) : null,
|
|
189
192
|
};
|
|
190
193
|
if (normalizedDedupeKey) {
|
|
191
|
-
|
|
194
|
+
const sameConnection = (entry) => entry.usesRelay === client.usesRelay && entry.relayUrl === client.relayUrl;
|
|
195
|
+
store.clients = store.clients.filter((entry) => !(sameConnection(entry) && entry.dedupeKey === normalizedDedupeKey));
|
|
192
196
|
// Migrate pre-clientKind desktop tokens: a deduped, kind-tagged mint
|
|
193
197
|
// supersedes legacy records with the same label that carry neither a
|
|
194
198
|
// kind nor a dedupe key — those tokens can no longer pass the
|
|
195
199
|
// desktop-local client-create gate and would otherwise linger forever.
|
|
196
200
|
if (client.clientKind) {
|
|
197
201
|
store.clients = store.clients.filter((entry) =>
|
|
198
|
-
!(entry.label === client.label && !entry.clientKind && !entry.dedupeKey));
|
|
202
|
+
!(sameConnection(entry) && entry.label === client.label && !entry.clientKind && !entry.dedupeKey));
|
|
199
203
|
}
|
|
200
204
|
}
|
|
201
205
|
store.clients.push(client);
|
|
@@ -153,6 +153,48 @@ describe('remote client auth runtime', () => {
|
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
+
it('preserves legacy relay credentials whose endpoint is unknown', async () => {
|
|
157
|
+
const { dir, runtime } = await createRuntime();
|
|
158
|
+
try {
|
|
159
|
+
const legacy = await runtime.createClient({ label: 'Phone', clientKind: 'mobile', dedupeKey: 'phone', usesRelay: true });
|
|
160
|
+
const untagged = await runtime.createClient({ label: 'Phone', usesRelay: true });
|
|
161
|
+
const storePath = path.join(dir, 'remote-clients.json');
|
|
162
|
+
const store = JSON.parse(await fs.readFile(storePath, 'utf8'));
|
|
163
|
+
for (const client of store.clients) delete client.relayUrl;
|
|
164
|
+
await fs.writeFile(storePath, JSON.stringify(store));
|
|
165
|
+
|
|
166
|
+
const relay = await runtime.createClient({
|
|
167
|
+
label: 'Phone', clientKind: 'mobile', dedupeKey: 'phone', usesRelay: true, relayUrl: 'wss://relay.example/ws',
|
|
168
|
+
});
|
|
169
|
+
const direct = await runtime.createClient({ label: 'Phone', clientKind: 'mobile', dedupeKey: 'phone' });
|
|
170
|
+
expect(await runtime.listClients()).toHaveLength(4);
|
|
171
|
+
for (const connection of [legacy, untagged, relay, direct]) {
|
|
172
|
+
expect((await runtime.authenticateBearerToken(connection.token))?.ok).toBe(true);
|
|
173
|
+
}
|
|
174
|
+
} finally {
|
|
175
|
+
await fs.rm(dir, { recursive: true, force: true });
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
it('keeps every connection credential when a scoped replacement write fails', async () => {
|
|
180
|
+
const { dir, runtime } = await createRuntime();
|
|
181
|
+
try {
|
|
182
|
+
const input = { label: 'Phone', clientKind: 'mobile', dedupeKey: 'phone', usesRelay: true };
|
|
183
|
+
const first = await runtime.createClient({ ...input, relayUrl: 'wss://relay-one.example/ws' });
|
|
184
|
+
const second = await runtime.createClient({ ...input, relayUrl: 'wss://relay-two.example/ws' });
|
|
185
|
+
const failing = createRemoteClientAuthRuntime({
|
|
186
|
+
fsPromises: { ...fs, writeFile: async () => { throw new Error('Write failed'); } },
|
|
187
|
+
path, crypto, storePath: path.join(dir, 'remote-clients.json'),
|
|
188
|
+
});
|
|
189
|
+
await expect(failing.createClient({ ...input, relayUrl: 'wss://relay-one.example/ws' })).rejects.toThrow('Write failed');
|
|
190
|
+
expect((await runtime.listClients()).map((client) => client.id)).toEqual([first.client.id, second.client.id]);
|
|
191
|
+
expect((await runtime.authenticateBearerToken(first.token))?.ok).toBe(true);
|
|
192
|
+
expect((await runtime.authenticateBearerToken(second.token))?.ok).toBe(true);
|
|
193
|
+
} finally {
|
|
194
|
+
await fs.rm(dir, { recursive: true, force: true });
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
|
|
156
198
|
it('does not resurrect revoked clients after concurrent auth traffic', async () => {
|
|
157
199
|
const { dir, runtime } = await createRuntime();
|
|
158
200
|
try {
|
|
@@ -45,6 +45,7 @@ Within one direction, scope changes retain the displayed preview and discovered
|
|
|
45
45
|
|
|
46
46
|
## Invariants
|
|
47
47
|
|
|
48
|
+
- The allowlist includes OpenCode configuration and generic extension directories, not plugin-specific configuration files or private state directories. Existing excluded files are neither copied nor deleted.
|
|
48
49
|
- Plan is computed on the source filesystem/inventory snapshot; destination executors never re-walk the source.
|
|
49
50
|
- All local, HTTP and SSH archive builders exclude `node_modules`, `.venv-asc` and `*.backup`
|
|
50
51
|
at every depth, including followed symlinks, matching the inventory walk. Keep
|
|
@@ -38,6 +38,28 @@ afterEach(async () => {
|
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
describe('config-sync contract', () => {
|
|
41
|
+
it('excludes plugin-specific configuration and state from sync and deletion plans', async () => {
|
|
42
|
+
const home = await makeTempDir();
|
|
43
|
+
const configDir = path.join(home, '.config', 'opencode');
|
|
44
|
+
await fsp.mkdir(path.join(configDir, '.oh-my-opencode-slim'), { recursive: true });
|
|
45
|
+
await fsp.writeFile(path.join(configDir, 'opencode.jsonc'), '{}');
|
|
46
|
+
for (const target of ['oh-my-opencode', 'oh-my-opencode-slim', 'oh-my-openagent']) {
|
|
47
|
+
for (const extension of ['json', 'jsonc']) {
|
|
48
|
+
await fsp.writeFile(path.join(configDir, `${target}.${extension}`), '{}');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
await fsp.writeFile(path.join(configDir, '.oh-my-opencode-slim', 'state.json'), '{}');
|
|
52
|
+
for (const direction of [SYNC_DIRECTION_PUSH, SYNC_DIRECTION_PULL]) {
|
|
53
|
+
const plan = planOpenCodeConfigSync(home, { direction, includeProviderCredentials: false });
|
|
54
|
+
expect(plan.files.map((entry) => entry.path)).toEqual(['opencode.jsonc']);
|
|
55
|
+
expect(plan.directories).toEqual([]);
|
|
56
|
+
expect(plan.deletes.every((entry) => !entry.includes('oh-my-'))).toBe(true);
|
|
57
|
+
}
|
|
58
|
+
expect(buildDefaultSyncSelections().fileGroups).toHaveLength(1);
|
|
59
|
+
expect(buildDefaultSyncSelections().directories).toHaveLength(6);
|
|
60
|
+
expect(buildRemoteSyncInventoryScript()).not.toContain('oh-my-');
|
|
61
|
+
});
|
|
62
|
+
|
|
41
63
|
it('requires direction on plans and accepts push/pull', () => {
|
|
42
64
|
expect(assertPlanDirection({ direction: SYNC_DIRECTION_PUSH })).toBe('push');
|
|
43
65
|
expect(assertPlanDirection({ direction: SYNC_DIRECTION_PULL })).toBe('pull');
|